diff --git a/db/migrations-goose-postgres/20241108062011_compliance.sql b/db/migrations-goose-postgres/20241108062011_compliance.sql new file mode 100644 index 00000000..62635007 --- /dev/null +++ b/db/migrations-goose-postgres/20241108062011_compliance.sql @@ -0,0 +1,303 @@ +-- +goose Up +-- create "action_plans" table +CREATE TABLE "action_plans" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "due_date" timestamptz NULL, "priority" character varying NULL, "source" character varying NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "action_plans_mapping_id_key" to table: "action_plans" +CREATE UNIQUE INDEX "action_plans_mapping_id_key" ON "action_plans" ("mapping_id"); +-- create "action_plan_history" table +CREATE TABLE "action_plan_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "due_date" timestamptz NULL, "priority" character varying NULL, "source" character varying NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "actionplanhistory_history_time" to table: "action_plan_history" +CREATE INDEX "actionplanhistory_history_time" ON "action_plan_history" ("history_time"); +-- create "controls" table +CREATE TABLE "controls" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "control_type" character varying NULL, "version" character varying NULL, "control_number" character varying NULL, "family" text NULL, "class" character varying NULL, "source" character varying NULL, "satisfies" text NULL, "mapped_frameworks" text NULL, "details" jsonb NULL, "control_objective_controls" character varying NULL, "internal_policy_controls" character varying NULL, PRIMARY KEY ("id")); +-- create index "controls_mapping_id_key" to table: "controls" +CREATE UNIQUE INDEX "controls_mapping_id_key" ON "controls" ("mapping_id"); +-- create "control_history" table +CREATE TABLE "control_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "control_type" character varying NULL, "version" character varying NULL, "control_number" character varying NULL, "family" text NULL, "class" character varying NULL, "source" character varying NULL, "satisfies" text NULL, "mapped_frameworks" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "controlhistory_history_time" to table: "control_history" +CREATE INDEX "controlhistory_history_time" ON "control_history" ("history_time"); +-- create "control_objectives" table +CREATE TABLE "control_objectives" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "control_objective_type" character varying NULL, "version" character varying NULL, "control_number" character varying NULL, "family" text NULL, "class" character varying NULL, "source" character varying NULL, "mapped_frameworks" text NULL, "details" jsonb NULL, "control_controlobjectives" character varying NULL, PRIMARY KEY ("id")); +-- create index "control_objectives_mapping_id_key" to table: "control_objectives" +CREATE UNIQUE INDEX "control_objectives_mapping_id_key" ON "control_objectives" ("mapping_id"); +-- create "control_objective_history" table +CREATE TABLE "control_objective_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "control_objective_type" character varying NULL, "version" character varying NULL, "control_number" character varying NULL, "family" text NULL, "class" character varying NULL, "source" character varying NULL, "mapped_frameworks" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "controlobjectivehistory_history_time" to table: "control_objective_history" +CREATE INDEX "controlobjectivehistory_history_time" ON "control_objective_history" ("history_time"); +-- create "internal_policies" table +CREATE TABLE "internal_policies" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NOT NULL, "status" character varying NULL, "policy_type" character varying NULL, "version" character varying NULL, "purpose_and_scope" text NULL, "background" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "internal_policies_mapping_id_key" to table: "internal_policies" +CREATE UNIQUE INDEX "internal_policies_mapping_id_key" ON "internal_policies" ("mapping_id"); +-- create "internal_policy_history" table +CREATE TABLE "internal_policy_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NOT NULL, "status" character varying NULL, "policy_type" character varying NULL, "version" character varying NULL, "purpose_and_scope" text NULL, "background" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "internalpolicyhistory_history_time" to table: "internal_policy_history" +CREATE INDEX "internalpolicyhistory_history_time" ON "internal_policy_history" ("history_time"); +-- create "narratives" table +CREATE TABLE "narratives" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "satisfies" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "narratives_mapping_id_key" to table: "narratives" +CREATE UNIQUE INDEX "narratives_mapping_id_key" ON "narratives" ("mapping_id"); +-- create "narrative_history" table +CREATE TABLE "narrative_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "satisfies" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "narrativehistory_history_time" to table: "narrative_history" +CREATE INDEX "narrativehistory_history_time" ON "narrative_history" ("history_time"); +-- create "procedures" table +CREATE TABLE "procedures" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "procedure_type" character varying NULL, "version" character varying NULL, "purpose_and_scope" text NULL, "background" text NULL, "satisfies" text NULL, "details" jsonb NULL, "control_objective_procedures" character varying NULL, "standard_procedures" character varying NULL, PRIMARY KEY ("id")); +-- create index "procedures_mapping_id_key" to table: "procedures" +CREATE UNIQUE INDEX "procedures_mapping_id_key" ON "procedures" ("mapping_id"); +-- create "procedure_history" table +CREATE TABLE "procedure_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "procedure_type" character varying NULL, "version" character varying NULL, "purpose_and_scope" text NULL, "background" text NULL, "satisfies" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "procedurehistory_history_time" to table: "procedure_history" +CREATE INDEX "procedurehistory_history_time" ON "procedure_history" ("history_time"); +-- create "risks" table +CREATE TABLE "risks" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "risk_type" character varying NULL, "business_costs" text NULL, "impact" character varying NULL, "likelihood" character varying NULL, "mitigation" text NULL, "satisfies" text NULL, "details" jsonb NULL, "control_objective_risks" character varying NULL, PRIMARY KEY ("id")); +-- create index "risks_mapping_id_key" to table: "risks" +CREATE UNIQUE INDEX "risks_mapping_id_key" ON "risks" ("mapping_id"); +-- create "risk_history" table +CREATE TABLE "risk_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "risk_type" character varying NULL, "business_costs" text NULL, "impact" character varying NULL, "likelihood" character varying NULL, "mitigation" text NULL, "satisfies" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "riskhistory_history_time" to table: "risk_history" +CREATE INDEX "riskhistory_history_time" ON "risk_history" ("history_time"); +-- create "standards" table +CREATE TABLE "standards" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "family" character varying NULL, "status" character varying NULL, "standard_type" character varying NULL, "version" character varying NULL, "purpose_and_scope" text NULL, "background" text NULL, "satisfies" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "standards_mapping_id_key" to table: "standards" +CREATE UNIQUE INDEX "standards_mapping_id_key" ON "standards" ("mapping_id"); +-- create "standard_history" table +CREATE TABLE "standard_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "family" character varying NULL, "status" character varying NULL, "standard_type" character varying NULL, "version" character varying NULL, "purpose_and_scope" text NULL, "background" text NULL, "satisfies" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "standardhistory_history_time" to table: "standard_history" +CREATE INDEX "standardhistory_history_time" ON "standard_history" ("history_time"); +-- create "subcontrols" table +CREATE TABLE "subcontrols" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "subcontrol_type" character varying NULL, "version" character varying NULL, "subcontrol_number" character varying NULL, "family" text NULL, "class" character varying NULL, "source" character varying NULL, "mapped_frameworks" text NULL, "implementation_evidence" character varying NULL, "implementation_status" character varying NULL, "implementation_date" timestamptz NULL, "implementation_verification" character varying NULL, "implementation_verification_date" timestamptz NULL, "details" jsonb NULL, "control_objective_subcontrols" character varying NULL, "note_subcontrols" character varying NULL, PRIMARY KEY ("id")); +-- create index "subcontrols_mapping_id_key" to table: "subcontrols" +CREATE UNIQUE INDEX "subcontrols_mapping_id_key" ON "subcontrols" ("mapping_id"); +-- create "subcontrol_history" table +CREATE TABLE "subcontrol_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "subcontrol_type" character varying NULL, "version" character varying NULL, "subcontrol_number" character varying NULL, "family" text NULL, "class" character varying NULL, "source" character varying NULL, "mapped_frameworks" text NULL, "implementation_evidence" character varying NULL, "implementation_status" character varying NULL, "implementation_date" timestamptz NULL, "implementation_verification" character varying NULL, "implementation_verification_date" timestamptz NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- create index "subcontrolhistory_history_time" to table: "subcontrol_history" +CREATE INDEX "subcontrolhistory_history_time" ON "subcontrol_history" ("history_time"); +-- create "control_procedures" table +CREATE TABLE "control_procedures" ("control_id" character varying NOT NULL, "procedure_id" character varying NOT NULL, PRIMARY KEY ("control_id", "procedure_id")); +-- create "control_subcontrols" table +CREATE TABLE "control_subcontrols" ("control_id" character varying NOT NULL, "subcontrol_id" character varying NOT NULL, PRIMARY KEY ("control_id", "subcontrol_id")); +-- create "control_narratives" table +CREATE TABLE "control_narratives" ("control_id" character varying NOT NULL, "narrative_id" character varying NOT NULL, PRIMARY KEY ("control_id", "narrative_id")); +-- create "control_risks" table +CREATE TABLE "control_risks" ("control_id" character varying NOT NULL, "risk_id" character varying NOT NULL, PRIMARY KEY ("control_id", "risk_id")); +-- create "control_actionplans" table +CREATE TABLE "control_actionplans" ("control_id" character varying NOT NULL, "action_plan_id" character varying NOT NULL, PRIMARY KEY ("control_id", "action_plan_id")); +-- create "control_objective_narratives" table +CREATE TABLE "control_objective_narratives" ("control_objective_id" character varying NOT NULL, "narrative_id" character varying NOT NULL, PRIMARY KEY ("control_objective_id", "narrative_id")); +-- create "internal_policy_controlobjectives" table +CREATE TABLE "internal_policy_controlobjectives" ("internal_policy_id" character varying NOT NULL, "control_objective_id" character varying NOT NULL, PRIMARY KEY ("internal_policy_id", "control_objective_id")); +-- create "internal_policy_procedures" table +CREATE TABLE "internal_policy_procedures" ("internal_policy_id" character varying NOT NULL, "procedure_id" character varying NOT NULL, PRIMARY KEY ("internal_policy_id", "procedure_id")); +-- create "internal_policy_narratives" table +CREATE TABLE "internal_policy_narratives" ("internal_policy_id" character varying NOT NULL, "narrative_id" character varying NOT NULL, PRIMARY KEY ("internal_policy_id", "narrative_id")); +-- create "procedure_narratives" table +CREATE TABLE "procedure_narratives" ("procedure_id" character varying NOT NULL, "narrative_id" character varying NOT NULL, PRIMARY KEY ("procedure_id", "narrative_id")); +-- create "procedure_risks" table +CREATE TABLE "procedure_risks" ("procedure_id" character varying NOT NULL, "risk_id" character varying NOT NULL, PRIMARY KEY ("procedure_id", "risk_id")); +-- create "risk_actionplans" table +CREATE TABLE "risk_actionplans" ("risk_id" character varying NOT NULL, "action_plan_id" character varying NOT NULL, PRIMARY KEY ("risk_id", "action_plan_id")); +-- create "standard_controlobjectives" table +CREATE TABLE "standard_controlobjectives" ("standard_id" character varying NOT NULL, "control_objective_id" character varying NOT NULL, PRIMARY KEY ("standard_id", "control_objective_id")); +-- create "standard_controls" table +CREATE TABLE "standard_controls" ("standard_id" character varying NOT NULL, "control_id" character varying NOT NULL, PRIMARY KEY ("standard_id", "control_id")); +-- create "standard_actionplans" table +CREATE TABLE "standard_actionplans" ("standard_id" character varying NOT NULL, "action_plan_id" character varying NOT NULL, PRIMARY KEY ("standard_id", "action_plan_id")); +-- create "user_actionplans" table +CREATE TABLE "user_actionplans" ("user_id" character varying NOT NULL, "action_plan_id" character varying NOT NULL, PRIMARY KEY ("user_id", "action_plan_id")); +-- create "user_subcontrols" table +CREATE TABLE "user_subcontrols" ("user_id" character varying NOT NULL, "subcontrol_id" character varying NOT NULL, PRIMARY KEY ("user_id", "subcontrol_id")); +-- modify "controls" table +ALTER TABLE "controls" ADD CONSTRAINT "controls_control_objectives_controls" FOREIGN KEY ("control_objective_controls") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "controls_internal_policies_controls" FOREIGN KEY ("internal_policy_controls") REFERENCES "internal_policies" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; +-- modify "control_objectives" table +ALTER TABLE "control_objectives" ADD CONSTRAINT "control_objectives_controls_controlobjectives" FOREIGN KEY ("control_controlobjectives") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; +-- modify "procedures" table +ALTER TABLE "procedures" ADD CONSTRAINT "procedures_control_objectives_procedures" FOREIGN KEY ("control_objective_procedures") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "procedures_standards_procedures" FOREIGN KEY ("standard_procedures") REFERENCES "standards" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; +-- modify "risks" table +ALTER TABLE "risks" ADD CONSTRAINT "risks_control_objectives_risks" FOREIGN KEY ("control_objective_risks") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; +-- modify "subcontrols" table +ALTER TABLE "subcontrols" ADD CONSTRAINT "subcontrols_control_objectives_subcontrols" FOREIGN KEY ("control_objective_subcontrols") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "subcontrols_notes_subcontrols" FOREIGN KEY ("note_subcontrols") REFERENCES "notes" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; +-- modify "control_procedures" table +ALTER TABLE "control_procedures" ADD CONSTRAINT "control_procedures_control_id" FOREIGN KEY ("control_id") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "control_procedures_procedure_id" FOREIGN KEY ("procedure_id") REFERENCES "procedures" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "control_subcontrols" table +ALTER TABLE "control_subcontrols" ADD CONSTRAINT "control_subcontrols_control_id" FOREIGN KEY ("control_id") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "control_subcontrols_subcontrol_id" FOREIGN KEY ("subcontrol_id") REFERENCES "subcontrols" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "control_narratives" table +ALTER TABLE "control_narratives" ADD CONSTRAINT "control_narratives_control_id" FOREIGN KEY ("control_id") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "control_narratives_narrative_id" FOREIGN KEY ("narrative_id") REFERENCES "narratives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "control_risks" table +ALTER TABLE "control_risks" ADD CONSTRAINT "control_risks_control_id" FOREIGN KEY ("control_id") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "control_risks_risk_id" FOREIGN KEY ("risk_id") REFERENCES "risks" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "control_actionplans" table +ALTER TABLE "control_actionplans" ADD CONSTRAINT "control_actionplans_action_plan_id" FOREIGN KEY ("action_plan_id") REFERENCES "action_plans" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "control_actionplans_control_id" FOREIGN KEY ("control_id") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "control_objective_narratives" table +ALTER TABLE "control_objective_narratives" ADD CONSTRAINT "control_objective_narratives_control_objective_id" FOREIGN KEY ("control_objective_id") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "control_objective_narratives_narrative_id" FOREIGN KEY ("narrative_id") REFERENCES "narratives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "internal_policy_controlobjectives" table +ALTER TABLE "internal_policy_controlobjectives" ADD CONSTRAINT "internal_policy_controlobjectives_control_objective_id" FOREIGN KEY ("control_objective_id") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "internal_policy_controlobjectives_internal_policy_id" FOREIGN KEY ("internal_policy_id") REFERENCES "internal_policies" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "internal_policy_procedures" table +ALTER TABLE "internal_policy_procedures" ADD CONSTRAINT "internal_policy_procedures_internal_policy_id" FOREIGN KEY ("internal_policy_id") REFERENCES "internal_policies" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "internal_policy_procedures_procedure_id" FOREIGN KEY ("procedure_id") REFERENCES "procedures" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "internal_policy_narratives" table +ALTER TABLE "internal_policy_narratives" ADD CONSTRAINT "internal_policy_narratives_internal_policy_id" FOREIGN KEY ("internal_policy_id") REFERENCES "internal_policies" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "internal_policy_narratives_narrative_id" FOREIGN KEY ("narrative_id") REFERENCES "narratives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "procedure_narratives" table +ALTER TABLE "procedure_narratives" ADD CONSTRAINT "procedure_narratives_narrative_id" FOREIGN KEY ("narrative_id") REFERENCES "narratives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "procedure_narratives_procedure_id" FOREIGN KEY ("procedure_id") REFERENCES "procedures" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "procedure_risks" table +ALTER TABLE "procedure_risks" ADD CONSTRAINT "procedure_risks_procedure_id" FOREIGN KEY ("procedure_id") REFERENCES "procedures" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "procedure_risks_risk_id" FOREIGN KEY ("risk_id") REFERENCES "risks" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "risk_actionplans" table +ALTER TABLE "risk_actionplans" ADD CONSTRAINT "risk_actionplans_action_plan_id" FOREIGN KEY ("action_plan_id") REFERENCES "action_plans" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "risk_actionplans_risk_id" FOREIGN KEY ("risk_id") REFERENCES "risks" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "standard_controlobjectives" table +ALTER TABLE "standard_controlobjectives" ADD CONSTRAINT "standard_controlobjectives_control_objective_id" FOREIGN KEY ("control_objective_id") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "standard_controlobjectives_standard_id" FOREIGN KEY ("standard_id") REFERENCES "standards" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "standard_controls" table +ALTER TABLE "standard_controls" ADD CONSTRAINT "standard_controls_control_id" FOREIGN KEY ("control_id") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "standard_controls_standard_id" FOREIGN KEY ("standard_id") REFERENCES "standards" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "standard_actionplans" table +ALTER TABLE "standard_actionplans" ADD CONSTRAINT "standard_actionplans_action_plan_id" FOREIGN KEY ("action_plan_id") REFERENCES "action_plans" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "standard_actionplans_standard_id" FOREIGN KEY ("standard_id") REFERENCES "standards" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "user_actionplans" table +ALTER TABLE "user_actionplans" ADD CONSTRAINT "user_actionplans_action_plan_id" FOREIGN KEY ("action_plan_id") REFERENCES "action_plans" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "user_actionplans_user_id" FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- modify "user_subcontrols" table +ALTER TABLE "user_subcontrols" ADD CONSTRAINT "user_subcontrols_subcontrol_id" FOREIGN KEY ("subcontrol_id") REFERENCES "subcontrols" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "user_subcontrols_user_id" FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; + +-- +goose Down +-- reverse: modify "user_subcontrols" table +ALTER TABLE "user_subcontrols" DROP CONSTRAINT "user_subcontrols_user_id", DROP CONSTRAINT "user_subcontrols_subcontrol_id"; +-- reverse: modify "user_actionplans" table +ALTER TABLE "user_actionplans" DROP CONSTRAINT "user_actionplans_user_id", DROP CONSTRAINT "user_actionplans_action_plan_id"; +-- reverse: modify "standard_actionplans" table +ALTER TABLE "standard_actionplans" DROP CONSTRAINT "standard_actionplans_standard_id", DROP CONSTRAINT "standard_actionplans_action_plan_id"; +-- reverse: modify "standard_controls" table +ALTER TABLE "standard_controls" DROP CONSTRAINT "standard_controls_standard_id", DROP CONSTRAINT "standard_controls_control_id"; +-- reverse: modify "standard_controlobjectives" table +ALTER TABLE "standard_controlobjectives" DROP CONSTRAINT "standard_controlobjectives_standard_id", DROP CONSTRAINT "standard_controlobjectives_control_objective_id"; +-- reverse: modify "risk_actionplans" table +ALTER TABLE "risk_actionplans" DROP CONSTRAINT "risk_actionplans_risk_id", DROP CONSTRAINT "risk_actionplans_action_plan_id"; +-- reverse: modify "procedure_risks" table +ALTER TABLE "procedure_risks" DROP CONSTRAINT "procedure_risks_risk_id", DROP CONSTRAINT "procedure_risks_procedure_id"; +-- reverse: modify "procedure_narratives" table +ALTER TABLE "procedure_narratives" DROP CONSTRAINT "procedure_narratives_procedure_id", DROP CONSTRAINT "procedure_narratives_narrative_id"; +-- reverse: modify "internal_policy_narratives" table +ALTER TABLE "internal_policy_narratives" DROP CONSTRAINT "internal_policy_narratives_narrative_id", DROP CONSTRAINT "internal_policy_narratives_internal_policy_id"; +-- reverse: modify "internal_policy_procedures" table +ALTER TABLE "internal_policy_procedures" DROP CONSTRAINT "internal_policy_procedures_procedure_id", DROP CONSTRAINT "internal_policy_procedures_internal_policy_id"; +-- reverse: modify "internal_policy_controlobjectives" table +ALTER TABLE "internal_policy_controlobjectives" DROP CONSTRAINT "internal_policy_controlobjectives_internal_policy_id", DROP CONSTRAINT "internal_policy_controlobjectives_control_objective_id"; +-- reverse: modify "control_objective_narratives" table +ALTER TABLE "control_objective_narratives" DROP CONSTRAINT "control_objective_narratives_narrative_id", DROP CONSTRAINT "control_objective_narratives_control_objective_id"; +-- reverse: modify "control_actionplans" table +ALTER TABLE "control_actionplans" DROP CONSTRAINT "control_actionplans_control_id", DROP CONSTRAINT "control_actionplans_action_plan_id"; +-- reverse: modify "control_risks" table +ALTER TABLE "control_risks" DROP CONSTRAINT "control_risks_risk_id", DROP CONSTRAINT "control_risks_control_id"; +-- reverse: modify "control_narratives" table +ALTER TABLE "control_narratives" DROP CONSTRAINT "control_narratives_narrative_id", DROP CONSTRAINT "control_narratives_control_id"; +-- reverse: modify "control_subcontrols" table +ALTER TABLE "control_subcontrols" DROP CONSTRAINT "control_subcontrols_subcontrol_id", DROP CONSTRAINT "control_subcontrols_control_id"; +-- reverse: modify "control_procedures" table +ALTER TABLE "control_procedures" DROP CONSTRAINT "control_procedures_procedure_id", DROP CONSTRAINT "control_procedures_control_id"; +-- reverse: modify "subcontrols" table +ALTER TABLE "subcontrols" DROP CONSTRAINT "subcontrols_notes_subcontrols", DROP CONSTRAINT "subcontrols_control_objectives_subcontrols"; +-- reverse: modify "risks" table +ALTER TABLE "risks" DROP CONSTRAINT "risks_control_objectives_risks"; +-- reverse: modify "procedures" table +ALTER TABLE "procedures" DROP CONSTRAINT "procedures_standards_procedures", DROP CONSTRAINT "procedures_control_objectives_procedures"; +-- reverse: modify "control_objectives" table +ALTER TABLE "control_objectives" DROP CONSTRAINT "control_objectives_controls_controlobjectives"; +-- reverse: modify "controls" table +ALTER TABLE "controls" DROP CONSTRAINT "controls_internal_policies_controls", DROP CONSTRAINT "controls_control_objectives_controls"; +-- reverse: create "user_subcontrols" table +DROP TABLE "user_subcontrols"; +-- reverse: create "user_actionplans" table +DROP TABLE "user_actionplans"; +-- reverse: create "standard_actionplans" table +DROP TABLE "standard_actionplans"; +-- reverse: create "standard_controls" table +DROP TABLE "standard_controls"; +-- reverse: create "standard_controlobjectives" table +DROP TABLE "standard_controlobjectives"; +-- reverse: create "risk_actionplans" table +DROP TABLE "risk_actionplans"; +-- reverse: create "procedure_risks" table +DROP TABLE "procedure_risks"; +-- reverse: create "procedure_narratives" table +DROP TABLE "procedure_narratives"; +-- reverse: create "internal_policy_narratives" table +DROP TABLE "internal_policy_narratives"; +-- reverse: create "internal_policy_procedures" table +DROP TABLE "internal_policy_procedures"; +-- reverse: create "internal_policy_controlobjectives" table +DROP TABLE "internal_policy_controlobjectives"; +-- reverse: create "control_objective_narratives" table +DROP TABLE "control_objective_narratives"; +-- reverse: create "control_actionplans" table +DROP TABLE "control_actionplans"; +-- reverse: create "control_risks" table +DROP TABLE "control_risks"; +-- reverse: create "control_narratives" table +DROP TABLE "control_narratives"; +-- reverse: create "control_subcontrols" table +DROP TABLE "control_subcontrols"; +-- reverse: create "control_procedures" table +DROP TABLE "control_procedures"; +-- reverse: create index "subcontrolhistory_history_time" to table: "subcontrol_history" +DROP INDEX "subcontrolhistory_history_time"; +-- reverse: create "subcontrol_history" table +DROP TABLE "subcontrol_history"; +-- reverse: create index "subcontrols_mapping_id_key" to table: "subcontrols" +DROP INDEX "subcontrols_mapping_id_key"; +-- reverse: create "subcontrols" table +DROP TABLE "subcontrols"; +-- reverse: create index "standardhistory_history_time" to table: "standard_history" +DROP INDEX "standardhistory_history_time"; +-- reverse: create "standard_history" table +DROP TABLE "standard_history"; +-- reverse: create index "standards_mapping_id_key" to table: "standards" +DROP INDEX "standards_mapping_id_key"; +-- reverse: create "standards" table +DROP TABLE "standards"; +-- reverse: create index "riskhistory_history_time" to table: "risk_history" +DROP INDEX "riskhistory_history_time"; +-- reverse: create "risk_history" table +DROP TABLE "risk_history"; +-- reverse: create index "risks_mapping_id_key" to table: "risks" +DROP INDEX "risks_mapping_id_key"; +-- reverse: create "risks" table +DROP TABLE "risks"; +-- reverse: create index "procedurehistory_history_time" to table: "procedure_history" +DROP INDEX "procedurehistory_history_time"; +-- reverse: create "procedure_history" table +DROP TABLE "procedure_history"; +-- reverse: create index "procedures_mapping_id_key" to table: "procedures" +DROP INDEX "procedures_mapping_id_key"; +-- reverse: create "procedures" table +DROP TABLE "procedures"; +-- reverse: create index "narrativehistory_history_time" to table: "narrative_history" +DROP INDEX "narrativehistory_history_time"; +-- reverse: create "narrative_history" table +DROP TABLE "narrative_history"; +-- reverse: create index "narratives_mapping_id_key" to table: "narratives" +DROP INDEX "narratives_mapping_id_key"; +-- reverse: create "narratives" table +DROP TABLE "narratives"; +-- reverse: create index "internalpolicyhistory_history_time" to table: "internal_policy_history" +DROP INDEX "internalpolicyhistory_history_time"; +-- reverse: create "internal_policy_history" table +DROP TABLE "internal_policy_history"; +-- reverse: create index "internal_policies_mapping_id_key" to table: "internal_policies" +DROP INDEX "internal_policies_mapping_id_key"; +-- reverse: create "internal_policies" table +DROP TABLE "internal_policies"; +-- reverse: create index "controlobjectivehistory_history_time" to table: "control_objective_history" +DROP INDEX "controlobjectivehistory_history_time"; +-- reverse: create "control_objective_history" table +DROP TABLE "control_objective_history"; +-- reverse: create index "control_objectives_mapping_id_key" to table: "control_objectives" +DROP INDEX "control_objectives_mapping_id_key"; +-- reverse: create "control_objectives" table +DROP TABLE "control_objectives"; +-- reverse: create index "controlhistory_history_time" to table: "control_history" +DROP INDEX "controlhistory_history_time"; +-- reverse: create "control_history" table +DROP TABLE "control_history"; +-- reverse: create index "controls_mapping_id_key" to table: "controls" +DROP INDEX "controls_mapping_id_key"; +-- reverse: create "controls" table +DROP TABLE "controls"; +-- reverse: create index "actionplanhistory_history_time" to table: "action_plan_history" +DROP INDEX "actionplanhistory_history_time"; +-- reverse: create "action_plan_history" table +DROP TABLE "action_plan_history"; +-- reverse: create index "action_plans_mapping_id_key" to table: "action_plans" +DROP INDEX "action_plans_mapping_id_key"; +-- reverse: create "action_plans" table +DROP TABLE "action_plans"; diff --git a/db/migrations-goose-postgres/atlas.sum b/db/migrations-goose-postgres/atlas.sum index 4870d464..87eaafb2 100644 --- a/db/migrations-goose-postgres/atlas.sum +++ b/db/migrations-goose-postgres/atlas.sum @@ -1,4 +1,5 @@ -h1:Svrsvb3yvv5Ya7U+l/qsi70Gq8d3AG+BdYRFYGtuwqk= +h1:0ZnIDaDgNEJIUlXIF8nwPX2SGF4LQ8tjYsS23GD25Fk= 20240827061503_init.sql h1:D0Ce7h0FSKpjtQOHZK5gXOpaPvlNAFHHzqfQQ8re0T4= 20241014185634_object_upload.sql h1:xeeCqYCpQ3RFWgNjnKV1GMHgTEoZK2aWv5a2EvU4DP8= 20241030173034_base.sql h1:+eJ3JGD5lzsP16mz7q+yD78Jvs7sTX8nBZQmS68hjoA= +20241108062011_compliance.sql h1:BnIBv9UvNo5a1Jnlce0VelxW+w9+ukGce1apTvbPxBo= diff --git a/db/migrations/20241108062010_compliance.sql b/db/migrations/20241108062010_compliance.sql new file mode 100644 index 00000000..08185c7e --- /dev/null +++ b/db/migrations/20241108062010_compliance.sql @@ -0,0 +1,150 @@ +-- Create "action_plans" table +CREATE TABLE "action_plans" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "due_date" timestamptz NULL, "priority" character varying NULL, "source" character varying NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "action_plans_mapping_id_key" to table: "action_plans" +CREATE UNIQUE INDEX "action_plans_mapping_id_key" ON "action_plans" ("mapping_id"); +-- Create "action_plan_history" table +CREATE TABLE "action_plan_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "due_date" timestamptz NULL, "priority" character varying NULL, "source" character varying NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "actionplanhistory_history_time" to table: "action_plan_history" +CREATE INDEX "actionplanhistory_history_time" ON "action_plan_history" ("history_time"); +-- Create "controls" table +CREATE TABLE "controls" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "control_type" character varying NULL, "version" character varying NULL, "control_number" character varying NULL, "family" text NULL, "class" character varying NULL, "source" character varying NULL, "satisfies" text NULL, "mapped_frameworks" text NULL, "details" jsonb NULL, "control_objective_controls" character varying NULL, "internal_policy_controls" character varying NULL, PRIMARY KEY ("id")); +-- Create index "controls_mapping_id_key" to table: "controls" +CREATE UNIQUE INDEX "controls_mapping_id_key" ON "controls" ("mapping_id"); +-- Create "control_history" table +CREATE TABLE "control_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "control_type" character varying NULL, "version" character varying NULL, "control_number" character varying NULL, "family" text NULL, "class" character varying NULL, "source" character varying NULL, "satisfies" text NULL, "mapped_frameworks" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "controlhistory_history_time" to table: "control_history" +CREATE INDEX "controlhistory_history_time" ON "control_history" ("history_time"); +-- Create "control_objectives" table +CREATE TABLE "control_objectives" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "control_objective_type" character varying NULL, "version" character varying NULL, "control_number" character varying NULL, "family" text NULL, "class" character varying NULL, "source" character varying NULL, "mapped_frameworks" text NULL, "details" jsonb NULL, "control_controlobjectives" character varying NULL, PRIMARY KEY ("id")); +-- Create index "control_objectives_mapping_id_key" to table: "control_objectives" +CREATE UNIQUE INDEX "control_objectives_mapping_id_key" ON "control_objectives" ("mapping_id"); +-- Create "control_objective_history" table +CREATE TABLE "control_objective_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "control_objective_type" character varying NULL, "version" character varying NULL, "control_number" character varying NULL, "family" text NULL, "class" character varying NULL, "source" character varying NULL, "mapped_frameworks" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "controlobjectivehistory_history_time" to table: "control_objective_history" +CREATE INDEX "controlobjectivehistory_history_time" ON "control_objective_history" ("history_time"); +-- Create "internal_policies" table +CREATE TABLE "internal_policies" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NOT NULL, "status" character varying NULL, "policy_type" character varying NULL, "version" character varying NULL, "purpose_and_scope" text NULL, "background" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "internal_policies_mapping_id_key" to table: "internal_policies" +CREATE UNIQUE INDEX "internal_policies_mapping_id_key" ON "internal_policies" ("mapping_id"); +-- Create "internal_policy_history" table +CREATE TABLE "internal_policy_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NOT NULL, "status" character varying NULL, "policy_type" character varying NULL, "version" character varying NULL, "purpose_and_scope" text NULL, "background" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "internalpolicyhistory_history_time" to table: "internal_policy_history" +CREATE INDEX "internalpolicyhistory_history_time" ON "internal_policy_history" ("history_time"); +-- Create "narratives" table +CREATE TABLE "narratives" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "satisfies" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "narratives_mapping_id_key" to table: "narratives" +CREATE UNIQUE INDEX "narratives_mapping_id_key" ON "narratives" ("mapping_id"); +-- Create "narrative_history" table +CREATE TABLE "narrative_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "satisfies" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "narrativehistory_history_time" to table: "narrative_history" +CREATE INDEX "narrativehistory_history_time" ON "narrative_history" ("history_time"); +-- Create "procedures" table +CREATE TABLE "procedures" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "procedure_type" character varying NULL, "version" character varying NULL, "purpose_and_scope" text NULL, "background" text NULL, "satisfies" text NULL, "details" jsonb NULL, "control_objective_procedures" character varying NULL, "standard_procedures" character varying NULL, PRIMARY KEY ("id")); +-- Create index "procedures_mapping_id_key" to table: "procedures" +CREATE UNIQUE INDEX "procedures_mapping_id_key" ON "procedures" ("mapping_id"); +-- Create "procedure_history" table +CREATE TABLE "procedure_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "procedure_type" character varying NULL, "version" character varying NULL, "purpose_and_scope" text NULL, "background" text NULL, "satisfies" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "procedurehistory_history_time" to table: "procedure_history" +CREATE INDEX "procedurehistory_history_time" ON "procedure_history" ("history_time"); +-- Create "risks" table +CREATE TABLE "risks" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "risk_type" character varying NULL, "business_costs" text NULL, "impact" character varying NULL, "likelihood" character varying NULL, "mitigation" text NULL, "satisfies" text NULL, "details" jsonb NULL, "control_objective_risks" character varying NULL, PRIMARY KEY ("id")); +-- Create index "risks_mapping_id_key" to table: "risks" +CREATE UNIQUE INDEX "risks_mapping_id_key" ON "risks" ("mapping_id"); +-- Create "risk_history" table +CREATE TABLE "risk_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "risk_type" character varying NULL, "business_costs" text NULL, "impact" character varying NULL, "likelihood" character varying NULL, "mitigation" text NULL, "satisfies" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "riskhistory_history_time" to table: "risk_history" +CREATE INDEX "riskhistory_history_time" ON "risk_history" ("history_time"); +-- Create "standards" table +CREATE TABLE "standards" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "family" character varying NULL, "status" character varying NULL, "standard_type" character varying NULL, "version" character varying NULL, "purpose_and_scope" text NULL, "background" text NULL, "satisfies" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "standards_mapping_id_key" to table: "standards" +CREATE UNIQUE INDEX "standards_mapping_id_key" ON "standards" ("mapping_id"); +-- Create "standard_history" table +CREATE TABLE "standard_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "family" character varying NULL, "status" character varying NULL, "standard_type" character varying NULL, "version" character varying NULL, "purpose_and_scope" text NULL, "background" text NULL, "satisfies" text NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "standardhistory_history_time" to table: "standard_history" +CREATE INDEX "standardhistory_history_time" ON "standard_history" ("history_time"); +-- Create "subcontrols" table +CREATE TABLE "subcontrols" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "subcontrol_type" character varying NULL, "version" character varying NULL, "subcontrol_number" character varying NULL, "family" text NULL, "class" character varying NULL, "source" character varying NULL, "mapped_frameworks" text NULL, "implementation_evidence" character varying NULL, "implementation_status" character varying NULL, "implementation_date" timestamptz NULL, "implementation_verification" character varying NULL, "implementation_verification_date" timestamptz NULL, "details" jsonb NULL, "control_objective_subcontrols" character varying NULL, "note_subcontrols" character varying NULL, PRIMARY KEY ("id")); +-- Create index "subcontrols_mapping_id_key" to table: "subcontrols" +CREATE UNIQUE INDEX "subcontrols_mapping_id_key" ON "subcontrols" ("mapping_id"); +-- Create "subcontrol_history" table +CREATE TABLE "subcontrol_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, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" text NULL, "status" character varying NULL, "subcontrol_type" character varying NULL, "version" character varying NULL, "subcontrol_number" character varying NULL, "family" text NULL, "class" character varying NULL, "source" character varying NULL, "mapped_frameworks" text NULL, "implementation_evidence" character varying NULL, "implementation_status" character varying NULL, "implementation_date" timestamptz NULL, "implementation_verification" character varying NULL, "implementation_verification_date" timestamptz NULL, "details" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "subcontrolhistory_history_time" to table: "subcontrol_history" +CREATE INDEX "subcontrolhistory_history_time" ON "subcontrol_history" ("history_time"); +-- Create "control_procedures" table +CREATE TABLE "control_procedures" ("control_id" character varying NOT NULL, "procedure_id" character varying NOT NULL, PRIMARY KEY ("control_id", "procedure_id")); +-- Create "control_subcontrols" table +CREATE TABLE "control_subcontrols" ("control_id" character varying NOT NULL, "subcontrol_id" character varying NOT NULL, PRIMARY KEY ("control_id", "subcontrol_id")); +-- Create "control_narratives" table +CREATE TABLE "control_narratives" ("control_id" character varying NOT NULL, "narrative_id" character varying NOT NULL, PRIMARY KEY ("control_id", "narrative_id")); +-- Create "control_risks" table +CREATE TABLE "control_risks" ("control_id" character varying NOT NULL, "risk_id" character varying NOT NULL, PRIMARY KEY ("control_id", "risk_id")); +-- Create "control_actionplans" table +CREATE TABLE "control_actionplans" ("control_id" character varying NOT NULL, "action_plan_id" character varying NOT NULL, PRIMARY KEY ("control_id", "action_plan_id")); +-- Create "control_objective_narratives" table +CREATE TABLE "control_objective_narratives" ("control_objective_id" character varying NOT NULL, "narrative_id" character varying NOT NULL, PRIMARY KEY ("control_objective_id", "narrative_id")); +-- Create "internal_policy_controlobjectives" table +CREATE TABLE "internal_policy_controlobjectives" ("internal_policy_id" character varying NOT NULL, "control_objective_id" character varying NOT NULL, PRIMARY KEY ("internal_policy_id", "control_objective_id")); +-- Create "internal_policy_procedures" table +CREATE TABLE "internal_policy_procedures" ("internal_policy_id" character varying NOT NULL, "procedure_id" character varying NOT NULL, PRIMARY KEY ("internal_policy_id", "procedure_id")); +-- Create "internal_policy_narratives" table +CREATE TABLE "internal_policy_narratives" ("internal_policy_id" character varying NOT NULL, "narrative_id" character varying NOT NULL, PRIMARY KEY ("internal_policy_id", "narrative_id")); +-- Create "procedure_narratives" table +CREATE TABLE "procedure_narratives" ("procedure_id" character varying NOT NULL, "narrative_id" character varying NOT NULL, PRIMARY KEY ("procedure_id", "narrative_id")); +-- Create "procedure_risks" table +CREATE TABLE "procedure_risks" ("procedure_id" character varying NOT NULL, "risk_id" character varying NOT NULL, PRIMARY KEY ("procedure_id", "risk_id")); +-- Create "risk_actionplans" table +CREATE TABLE "risk_actionplans" ("risk_id" character varying NOT NULL, "action_plan_id" character varying NOT NULL, PRIMARY KEY ("risk_id", "action_plan_id")); +-- Create "standard_controlobjectives" table +CREATE TABLE "standard_controlobjectives" ("standard_id" character varying NOT NULL, "control_objective_id" character varying NOT NULL, PRIMARY KEY ("standard_id", "control_objective_id")); +-- Create "standard_controls" table +CREATE TABLE "standard_controls" ("standard_id" character varying NOT NULL, "control_id" character varying NOT NULL, PRIMARY KEY ("standard_id", "control_id")); +-- Create "standard_actionplans" table +CREATE TABLE "standard_actionplans" ("standard_id" character varying NOT NULL, "action_plan_id" character varying NOT NULL, PRIMARY KEY ("standard_id", "action_plan_id")); +-- Create "user_actionplans" table +CREATE TABLE "user_actionplans" ("user_id" character varying NOT NULL, "action_plan_id" character varying NOT NULL, PRIMARY KEY ("user_id", "action_plan_id")); +-- Create "user_subcontrols" table +CREATE TABLE "user_subcontrols" ("user_id" character varying NOT NULL, "subcontrol_id" character varying NOT NULL, PRIMARY KEY ("user_id", "subcontrol_id")); +-- Modify "controls" table +ALTER TABLE "controls" ADD CONSTRAINT "controls_control_objectives_controls" FOREIGN KEY ("control_objective_controls") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "controls_internal_policies_controls" FOREIGN KEY ("internal_policy_controls") REFERENCES "internal_policies" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; +-- Modify "control_objectives" table +ALTER TABLE "control_objectives" ADD CONSTRAINT "control_objectives_controls_controlobjectives" FOREIGN KEY ("control_controlobjectives") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; +-- Modify "procedures" table +ALTER TABLE "procedures" ADD CONSTRAINT "procedures_control_objectives_procedures" FOREIGN KEY ("control_objective_procedures") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "procedures_standards_procedures" FOREIGN KEY ("standard_procedures") REFERENCES "standards" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; +-- Modify "risks" table +ALTER TABLE "risks" ADD CONSTRAINT "risks_control_objectives_risks" FOREIGN KEY ("control_objective_risks") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; +-- Modify "subcontrols" table +ALTER TABLE "subcontrols" ADD CONSTRAINT "subcontrols_control_objectives_subcontrols" FOREIGN KEY ("control_objective_subcontrols") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "subcontrols_notes_subcontrols" FOREIGN KEY ("note_subcontrols") REFERENCES "notes" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; +-- Modify "control_procedures" table +ALTER TABLE "control_procedures" ADD CONSTRAINT "control_procedures_control_id" FOREIGN KEY ("control_id") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "control_procedures_procedure_id" FOREIGN KEY ("procedure_id") REFERENCES "procedures" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "control_subcontrols" table +ALTER TABLE "control_subcontrols" ADD CONSTRAINT "control_subcontrols_control_id" FOREIGN KEY ("control_id") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "control_subcontrols_subcontrol_id" FOREIGN KEY ("subcontrol_id") REFERENCES "subcontrols" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "control_narratives" table +ALTER TABLE "control_narratives" ADD CONSTRAINT "control_narratives_control_id" FOREIGN KEY ("control_id") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "control_narratives_narrative_id" FOREIGN KEY ("narrative_id") REFERENCES "narratives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "control_risks" table +ALTER TABLE "control_risks" ADD CONSTRAINT "control_risks_control_id" FOREIGN KEY ("control_id") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "control_risks_risk_id" FOREIGN KEY ("risk_id") REFERENCES "risks" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "control_actionplans" table +ALTER TABLE "control_actionplans" ADD CONSTRAINT "control_actionplans_action_plan_id" FOREIGN KEY ("action_plan_id") REFERENCES "action_plans" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "control_actionplans_control_id" FOREIGN KEY ("control_id") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "control_objective_narratives" table +ALTER TABLE "control_objective_narratives" ADD CONSTRAINT "control_objective_narratives_control_objective_id" FOREIGN KEY ("control_objective_id") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "control_objective_narratives_narrative_id" FOREIGN KEY ("narrative_id") REFERENCES "narratives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "internal_policy_controlobjectives" table +ALTER TABLE "internal_policy_controlobjectives" ADD CONSTRAINT "internal_policy_controlobjectives_control_objective_id" FOREIGN KEY ("control_objective_id") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "internal_policy_controlobjectives_internal_policy_id" FOREIGN KEY ("internal_policy_id") REFERENCES "internal_policies" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "internal_policy_procedures" table +ALTER TABLE "internal_policy_procedures" ADD CONSTRAINT "internal_policy_procedures_internal_policy_id" FOREIGN KEY ("internal_policy_id") REFERENCES "internal_policies" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "internal_policy_procedures_procedure_id" FOREIGN KEY ("procedure_id") REFERENCES "procedures" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "internal_policy_narratives" table +ALTER TABLE "internal_policy_narratives" ADD CONSTRAINT "internal_policy_narratives_internal_policy_id" FOREIGN KEY ("internal_policy_id") REFERENCES "internal_policies" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "internal_policy_narratives_narrative_id" FOREIGN KEY ("narrative_id") REFERENCES "narratives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "procedure_narratives" table +ALTER TABLE "procedure_narratives" ADD CONSTRAINT "procedure_narratives_narrative_id" FOREIGN KEY ("narrative_id") REFERENCES "narratives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "procedure_narratives_procedure_id" FOREIGN KEY ("procedure_id") REFERENCES "procedures" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "procedure_risks" table +ALTER TABLE "procedure_risks" ADD CONSTRAINT "procedure_risks_procedure_id" FOREIGN KEY ("procedure_id") REFERENCES "procedures" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "procedure_risks_risk_id" FOREIGN KEY ("risk_id") REFERENCES "risks" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "risk_actionplans" table +ALTER TABLE "risk_actionplans" ADD CONSTRAINT "risk_actionplans_action_plan_id" FOREIGN KEY ("action_plan_id") REFERENCES "action_plans" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "risk_actionplans_risk_id" FOREIGN KEY ("risk_id") REFERENCES "risks" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "standard_controlobjectives" table +ALTER TABLE "standard_controlobjectives" ADD CONSTRAINT "standard_controlobjectives_control_objective_id" FOREIGN KEY ("control_objective_id") REFERENCES "control_objectives" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "standard_controlobjectives_standard_id" FOREIGN KEY ("standard_id") REFERENCES "standards" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "standard_controls" table +ALTER TABLE "standard_controls" ADD CONSTRAINT "standard_controls_control_id" FOREIGN KEY ("control_id") REFERENCES "controls" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "standard_controls_standard_id" FOREIGN KEY ("standard_id") REFERENCES "standards" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "standard_actionplans" table +ALTER TABLE "standard_actionplans" ADD CONSTRAINT "standard_actionplans_action_plan_id" FOREIGN KEY ("action_plan_id") REFERENCES "action_plans" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "standard_actionplans_standard_id" FOREIGN KEY ("standard_id") REFERENCES "standards" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "user_actionplans" table +ALTER TABLE "user_actionplans" ADD CONSTRAINT "user_actionplans_action_plan_id" FOREIGN KEY ("action_plan_id") REFERENCES "action_plans" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "user_actionplans_user_id" FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; +-- Modify "user_subcontrols" table +ALTER TABLE "user_subcontrols" ADD CONSTRAINT "user_subcontrols_subcontrol_id" FOREIGN KEY ("subcontrol_id") REFERENCES "subcontrols" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, ADD CONSTRAINT "user_subcontrols_user_id" FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON UPDATE NO ACTION ON DELETE CASCADE; diff --git a/db/migrations/atlas.sum b/db/migrations/atlas.sum index cd538f27..26c73890 100644 --- a/db/migrations/atlas.sum +++ b/db/migrations/atlas.sum @@ -1,3 +1,4 @@ -h1:H8I8c8yUEvZZvk8/JbKgPW24wWNXspYD+WwBHZB4pNo= +h1:PhmbjWEJPWKMAiMUIUB3Yz8IBqrbWyDDKTwc10GsQgM= 20240827061437_init.sql h1:9pQTZIsiDF3hW0HraVTzaU3M25iiy3MdxvhsZosxgvo= 20241014185633_object_upload.sql h1:0lzY0vj0gav3gMHGc8gm793zPeSQSMMHjt4c2V+7Eok= +20241108062010_compliance.sql h1:vmJyf1VhoKSRw9zRQKXsRtWJEEUYDbqZmpkyp89O/Tc= diff --git a/internal/ent/generated/actionplan.go b/internal/ent/generated/actionplan.go new file mode 100644 index 00000000..01cddee9 --- /dev/null +++ b/internal/ent/generated/actionplan.go @@ -0,0 +1,442 @@ +// 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/internal/ent/generated/actionplan" +) + +// ActionPlan is the model entity for the ActionPlan schema. +type ActionPlan 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the action plan + Name string `json:"name,omitempty"` + // description of the action plan + Description string `json:"description,omitempty"` + // status of the action plan + Status string `json:"status,omitempty"` + // due date of the action plan + DueDate time.Time `json:"due_date,omitempty"` + // priority of the action plan + Priority string `json:"priority,omitempty"` + // source of the action plan + Source string `json:"source,omitempty"` + // json data including details of the action plan + Details map[string]interface{} `json:"details,omitempty"` + // Edges holds the relations/edges for other nodes in the graph. + // The values are being populated by the ActionPlanQuery when eager-loading is set. + Edges ActionPlanEdges `json:"edges"` + selectValues sql.SelectValues +} + +// ActionPlanEdges holds the relations/edges for other nodes in the graph. +type ActionPlanEdges struct { + // Standard holds the value of the standard edge. + Standard []*Standard `json:"standard,omitempty"` + // Risk holds the value of the risk edge. + Risk []*Risk `json:"risk,omitempty"` + // Control holds the value of the control edge. + Control []*Control `json:"control,omitempty"` + // User holds the value of the user edge. + User []*User `json:"user,omitempty"` + // loadedTypes holds the information for reporting if a + // type was loaded (or requested) in eager-loading or not. + loadedTypes [4]bool + // totalCount holds the count of the edges above. + totalCount [4]map[string]int + + namedStandard map[string][]*Standard + namedRisk map[string][]*Risk + namedControl map[string][]*Control + namedUser map[string][]*User +} + +// StandardOrErr returns the Standard value or an error if the edge +// was not loaded in eager-loading. +func (e ActionPlanEdges) StandardOrErr() ([]*Standard, error) { + if e.loadedTypes[0] { + return e.Standard, nil + } + return nil, &NotLoadedError{edge: "standard"} +} + +// RiskOrErr returns the Risk value or an error if the edge +// was not loaded in eager-loading. +func (e ActionPlanEdges) RiskOrErr() ([]*Risk, error) { + if e.loadedTypes[1] { + return e.Risk, nil + } + return nil, &NotLoadedError{edge: "risk"} +} + +// ControlOrErr returns the Control value or an error if the edge +// was not loaded in eager-loading. +func (e ActionPlanEdges) ControlOrErr() ([]*Control, error) { + if e.loadedTypes[2] { + return e.Control, nil + } + return nil, &NotLoadedError{edge: "control"} +} + +// UserOrErr returns the User value or an error if the edge +// was not loaded in eager-loading. +func (e ActionPlanEdges) UserOrErr() ([]*User, error) { + if e.loadedTypes[3] { + return e.User, nil + } + return nil, &NotLoadedError{edge: "user"} +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*ActionPlan) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case actionplan.FieldTags, actionplan.FieldDetails: + values[i] = new([]byte) + case actionplan.FieldID, actionplan.FieldCreatedBy, actionplan.FieldUpdatedBy, actionplan.FieldDeletedBy, actionplan.FieldMappingID, actionplan.FieldName, actionplan.FieldDescription, actionplan.FieldStatus, actionplan.FieldPriority, actionplan.FieldSource: + values[i] = new(sql.NullString) + case actionplan.FieldCreatedAt, actionplan.FieldUpdatedAt, actionplan.FieldDeletedAt, actionplan.FieldDueDate: + 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 ActionPlan fields. +func (ap *ActionPlan) 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 actionplan.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + ap.ID = value.String + } + case actionplan.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 { + ap.CreatedAt = value.Time + } + case actionplan.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 { + ap.UpdatedAt = value.Time + } + case actionplan.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 { + ap.CreatedBy = value.String + } + case actionplan.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 { + ap.UpdatedBy = value.String + } + case actionplan.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 { + ap.DeletedAt = value.Time + } + case actionplan.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 { + ap.DeletedBy = value.String + } + case actionplan.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + ap.MappingID = value.String + } + case actionplan.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, &ap.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case actionplan.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + ap.Name = value.String + } + case actionplan.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + ap.Description = value.String + } + case actionplan.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + ap.Status = value.String + } + case actionplan.FieldDueDate: + if value, ok := values[i].(*sql.NullTime); !ok { + return fmt.Errorf("unexpected type %T for field due_date", values[i]) + } else if value.Valid { + ap.DueDate = value.Time + } + case actionplan.FieldPriority: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field priority", values[i]) + } else if value.Valid { + ap.Priority = value.String + } + case actionplan.FieldSource: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field source", values[i]) + } else if value.Valid { + ap.Source = value.String + } + case actionplan.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &ap.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + ap.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the ActionPlan. +// This includes values selected through modifiers, order, etc. +func (ap *ActionPlan) Value(name string) (ent.Value, error) { + return ap.selectValues.Get(name) +} + +// QueryStandard queries the "standard" edge of the ActionPlan entity. +func (ap *ActionPlan) QueryStandard() *StandardQuery { + return NewActionPlanClient(ap.config).QueryStandard(ap) +} + +// QueryRisk queries the "risk" edge of the ActionPlan entity. +func (ap *ActionPlan) QueryRisk() *RiskQuery { + return NewActionPlanClient(ap.config).QueryRisk(ap) +} + +// QueryControl queries the "control" edge of the ActionPlan entity. +func (ap *ActionPlan) QueryControl() *ControlQuery { + return NewActionPlanClient(ap.config).QueryControl(ap) +} + +// QueryUser queries the "user" edge of the ActionPlan entity. +func (ap *ActionPlan) QueryUser() *UserQuery { + return NewActionPlanClient(ap.config).QueryUser(ap) +} + +// Update returns a builder for updating this ActionPlan. +// Note that you need to call ActionPlan.Unwrap() before calling this method if this ActionPlan +// was returned from a transaction, and the transaction was committed or rolled back. +func (ap *ActionPlan) Update() *ActionPlanUpdateOne { + return NewActionPlanClient(ap.config).UpdateOne(ap) +} + +// Unwrap unwraps the ActionPlan 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 (ap *ActionPlan) Unwrap() *ActionPlan { + _tx, ok := ap.config.driver.(*txDriver) + if !ok { + panic("generated: ActionPlan is not a transactional entity") + } + ap.config.driver = _tx.drv + return ap +} + +// String implements the fmt.Stringer. +func (ap *ActionPlan) String() string { + var builder strings.Builder + builder.WriteString("ActionPlan(") + builder.WriteString(fmt.Sprintf("id=%v, ", ap.ID)) + builder.WriteString("created_at=") + builder.WriteString(ap.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(ap.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(ap.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(ap.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(ap.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(ap.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(ap.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", ap.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(ap.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(ap.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(ap.Status) + builder.WriteString(", ") + builder.WriteString("due_date=") + builder.WriteString(ap.DueDate.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("priority=") + builder.WriteString(ap.Priority) + builder.WriteString(", ") + builder.WriteString("source=") + builder.WriteString(ap.Source) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", ap.Details)) + builder.WriteByte(')') + return builder.String() +} + +// NamedStandard returns the Standard named value or an error if the edge was not +// loaded in eager-loading with this name. +func (ap *ActionPlan) NamedStandard(name string) ([]*Standard, error) { + if ap.Edges.namedStandard == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := ap.Edges.namedStandard[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (ap *ActionPlan) appendNamedStandard(name string, edges ...*Standard) { + if ap.Edges.namedStandard == nil { + ap.Edges.namedStandard = make(map[string][]*Standard) + } + if len(edges) == 0 { + ap.Edges.namedStandard[name] = []*Standard{} + } else { + ap.Edges.namedStandard[name] = append(ap.Edges.namedStandard[name], edges...) + } +} + +// NamedRisk returns the Risk named value or an error if the edge was not +// loaded in eager-loading with this name. +func (ap *ActionPlan) NamedRisk(name string) ([]*Risk, error) { + if ap.Edges.namedRisk == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := ap.Edges.namedRisk[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (ap *ActionPlan) appendNamedRisk(name string, edges ...*Risk) { + if ap.Edges.namedRisk == nil { + ap.Edges.namedRisk = make(map[string][]*Risk) + } + if len(edges) == 0 { + ap.Edges.namedRisk[name] = []*Risk{} + } else { + ap.Edges.namedRisk[name] = append(ap.Edges.namedRisk[name], edges...) + } +} + +// NamedControl returns the Control named value or an error if the edge was not +// loaded in eager-loading with this name. +func (ap *ActionPlan) NamedControl(name string) ([]*Control, error) { + if ap.Edges.namedControl == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := ap.Edges.namedControl[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (ap *ActionPlan) appendNamedControl(name string, edges ...*Control) { + if ap.Edges.namedControl == nil { + ap.Edges.namedControl = make(map[string][]*Control) + } + if len(edges) == 0 { + ap.Edges.namedControl[name] = []*Control{} + } else { + ap.Edges.namedControl[name] = append(ap.Edges.namedControl[name], edges...) + } +} + +// NamedUser returns the User named value or an error if the edge was not +// loaded in eager-loading with this name. +func (ap *ActionPlan) NamedUser(name string) ([]*User, error) { + if ap.Edges.namedUser == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := ap.Edges.namedUser[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (ap *ActionPlan) appendNamedUser(name string, edges ...*User) { + if ap.Edges.namedUser == nil { + ap.Edges.namedUser = make(map[string][]*User) + } + if len(edges) == 0 { + ap.Edges.namedUser[name] = []*User{} + } else { + ap.Edges.namedUser[name] = append(ap.Edges.namedUser[name], edges...) + } +} + +// ActionPlans is a parsable slice of ActionPlan. +type ActionPlans []*ActionPlan diff --git a/internal/ent/generated/actionplan/actionplan.go b/internal/ent/generated/actionplan/actionplan.go new file mode 100644 index 00000000..32a3b235 --- /dev/null +++ b/internal/ent/generated/actionplan/actionplan.go @@ -0,0 +1,302 @@ +// Code generated by ent, DO NOT EDIT. + +package actionplan + +import ( + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" +) + +const ( + // Label holds the string label denoting the actionplan type in the database. + Label = "action_plan" + // 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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldDueDate holds the string denoting the due_date field in the database. + FieldDueDate = "due_date" + // FieldPriority holds the string denoting the priority field in the database. + FieldPriority = "priority" + // FieldSource holds the string denoting the source field in the database. + FieldSource = "source" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // EdgeStandard holds the string denoting the standard edge name in mutations. + EdgeStandard = "standard" + // EdgeRisk holds the string denoting the risk edge name in mutations. + EdgeRisk = "risk" + // EdgeControl holds the string denoting the control edge name in mutations. + EdgeControl = "control" + // EdgeUser holds the string denoting the user edge name in mutations. + EdgeUser = "user" + // Table holds the table name of the actionplan in the database. + Table = "action_plans" + // StandardTable is the table that holds the standard relation/edge. The primary key declared below. + StandardTable = "standard_actionplans" + // StandardInverseTable is the table name for the Standard entity. + // It exists in this package in order to avoid circular dependency with the "standard" package. + StandardInverseTable = "standards" + // RiskTable is the table that holds the risk relation/edge. The primary key declared below. + RiskTable = "risk_actionplans" + // RiskInverseTable is the table name for the Risk entity. + // It exists in this package in order to avoid circular dependency with the "risk" package. + RiskInverseTable = "risks" + // ControlTable is the table that holds the control relation/edge. The primary key declared below. + ControlTable = "control_actionplans" + // ControlInverseTable is the table name for the Control entity. + // It exists in this package in order to avoid circular dependency with the "control" package. + ControlInverseTable = "controls" + // UserTable is the table that holds the user relation/edge. The primary key declared below. + UserTable = "user_actionplans" + // 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" +) + +// Columns holds all SQL columns for actionplan fields. +var Columns = []string{ + FieldID, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldDueDate, + FieldPriority, + FieldSource, + FieldDetails, +} + +var ( + // StandardPrimaryKey and StandardColumn2 are the table columns denoting the + // primary key for the standard relation (M2M). + StandardPrimaryKey = []string{"standard_id", "action_plan_id"} + // RiskPrimaryKey and RiskColumn2 are the table columns denoting the + // primary key for the risk relation (M2M). + RiskPrimaryKey = []string{"risk_id", "action_plan_id"} + // ControlPrimaryKey and ControlColumn2 are the table columns denoting the + // primary key for the control relation (M2M). + ControlPrimaryKey = []string{"control_id", "action_plan_id"} + // UserPrimaryKey and UserColumn2 are the table columns denoting the + // primary key for the user relation (M2M). + UserPrimaryKey = []string{"user_id", "action_plan_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/internal/ent/generated/runtime" +var ( + Hooks [2]ent.Hook + Interceptors [1]ent.Interceptor + // 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 + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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 +) + +// OrderOption defines the ordering options for the ActionPlan 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByDueDate orders the results by the due_date field. +func ByDueDate(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDueDate, opts...).ToFunc() +} + +// ByPriority orders the results by the priority field. +func ByPriority(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldPriority, opts...).ToFunc() +} + +// BySource orders the results by the source field. +func BySource(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSource, opts...).ToFunc() +} + +// ByStandardCount orders the results by standard count. +func ByStandardCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newStandardStep(), opts...) + } +} + +// ByStandard orders the results by standard terms. +func ByStandard(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newStandardStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByRiskCount orders the results by risk count. +func ByRiskCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newRiskStep(), opts...) + } +} + +// ByRisk orders the results by risk terms. +func ByRisk(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newRiskStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByControlCount orders the results by control count. +func ByControlCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlStep(), opts...) + } +} + +// ByControl orders the results by control terms. +func ByControl(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByUserCount orders the results by user count. +func ByUserCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newUserStep(), opts...) + } +} + +// ByUser orders the results by user terms. +func ByUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newUserStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} +func newStandardStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(StandardInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, StandardTable, StandardPrimaryKey...), + ) +} +func newRiskStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(RiskInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, RiskTable, RiskPrimaryKey...), + ) +} +func newControlStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ControlInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ControlTable, ControlPrimaryKey...), + ) +} +func newUserStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(UserInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, UserTable, UserPrimaryKey...), + ) +} diff --git a/internal/ent/generated/actionplan/where.go b/internal/ent/generated/actionplan/where.go new file mode 100644 index 00000000..b9e90823 --- /dev/null +++ b/internal/ent/generated/actionplan/where.go @@ -0,0 +1,1139 @@ +// Code generated by ent, DO NOT EDIT. + +package actionplan + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.ActionPlan { + return predicate.ActionPlan(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.ActionPlan { + return predicate.ActionPlan(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.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldStatus, v)) +} + +// DueDate applies equality check predicate on the "due_date" field. It's identical to DueDateEQ. +func DueDate(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldDueDate, v)) +} + +// Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ. +func Priority(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldPriority, v)) +} + +// Source applies equality check predicate on the "source" field. It's identical to SourceEQ. +func Source(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldSource, v)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContainsFold(FieldStatus, v)) +} + +// DueDateEQ applies the EQ predicate on the "due_date" field. +func DueDateEQ(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldDueDate, v)) +} + +// DueDateNEQ applies the NEQ predicate on the "due_date" field. +func DueDateNEQ(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldDueDate, v)) +} + +// DueDateIn applies the In predicate on the "due_date" field. +func DueDateIn(vs ...time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldDueDate, vs...)) +} + +// DueDateNotIn applies the NotIn predicate on the "due_date" field. +func DueDateNotIn(vs ...time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldDueDate, vs...)) +} + +// DueDateGT applies the GT predicate on the "due_date" field. +func DueDateGT(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldDueDate, v)) +} + +// DueDateGTE applies the GTE predicate on the "due_date" field. +func DueDateGTE(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldDueDate, v)) +} + +// DueDateLT applies the LT predicate on the "due_date" field. +func DueDateLT(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldDueDate, v)) +} + +// DueDateLTE applies the LTE predicate on the "due_date" field. +func DueDateLTE(v time.Time) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldDueDate, v)) +} + +// DueDateIsNil applies the IsNil predicate on the "due_date" field. +func DueDateIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldDueDate)) +} + +// DueDateNotNil applies the NotNil predicate on the "due_date" field. +func DueDateNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldDueDate)) +} + +// PriorityEQ applies the EQ predicate on the "priority" field. +func PriorityEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldPriority, v)) +} + +// PriorityNEQ applies the NEQ predicate on the "priority" field. +func PriorityNEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldPriority, v)) +} + +// PriorityIn applies the In predicate on the "priority" field. +func PriorityIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldPriority, vs...)) +} + +// PriorityNotIn applies the NotIn predicate on the "priority" field. +func PriorityNotIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldPriority, vs...)) +} + +// PriorityGT applies the GT predicate on the "priority" field. +func PriorityGT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldPriority, v)) +} + +// PriorityGTE applies the GTE predicate on the "priority" field. +func PriorityGTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldPriority, v)) +} + +// PriorityLT applies the LT predicate on the "priority" field. +func PriorityLT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldPriority, v)) +} + +// PriorityLTE applies the LTE predicate on the "priority" field. +func PriorityLTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldPriority, v)) +} + +// PriorityContains applies the Contains predicate on the "priority" field. +func PriorityContains(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContains(FieldPriority, v)) +} + +// PriorityHasPrefix applies the HasPrefix predicate on the "priority" field. +func PriorityHasPrefix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasPrefix(FieldPriority, v)) +} + +// PriorityHasSuffix applies the HasSuffix predicate on the "priority" field. +func PriorityHasSuffix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasSuffix(FieldPriority, v)) +} + +// PriorityIsNil applies the IsNil predicate on the "priority" field. +func PriorityIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldPriority)) +} + +// PriorityNotNil applies the NotNil predicate on the "priority" field. +func PriorityNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldPriority)) +} + +// PriorityEqualFold applies the EqualFold predicate on the "priority" field. +func PriorityEqualFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEqualFold(FieldPriority, v)) +} + +// PriorityContainsFold applies the ContainsFold predicate on the "priority" field. +func PriorityContainsFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContainsFold(FieldPriority, v)) +} + +// SourceEQ applies the EQ predicate on the "source" field. +func SourceEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEQ(FieldSource, v)) +} + +// SourceNEQ applies the NEQ predicate on the "source" field. +func SourceNEQ(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNEQ(FieldSource, v)) +} + +// SourceIn applies the In predicate on the "source" field. +func SourceIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIn(FieldSource, vs...)) +} + +// SourceNotIn applies the NotIn predicate on the "source" field. +func SourceNotIn(vs ...string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotIn(FieldSource, vs...)) +} + +// SourceGT applies the GT predicate on the "source" field. +func SourceGT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGT(FieldSource, v)) +} + +// SourceGTE applies the GTE predicate on the "source" field. +func SourceGTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldGTE(FieldSource, v)) +} + +// SourceLT applies the LT predicate on the "source" field. +func SourceLT(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLT(FieldSource, v)) +} + +// SourceLTE applies the LTE predicate on the "source" field. +func SourceLTE(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldLTE(FieldSource, v)) +} + +// SourceContains applies the Contains predicate on the "source" field. +func SourceContains(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContains(FieldSource, v)) +} + +// SourceHasPrefix applies the HasPrefix predicate on the "source" field. +func SourceHasPrefix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasPrefix(FieldSource, v)) +} + +// SourceHasSuffix applies the HasSuffix predicate on the "source" field. +func SourceHasSuffix(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldHasSuffix(FieldSource, v)) +} + +// SourceIsNil applies the IsNil predicate on the "source" field. +func SourceIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldSource)) +} + +// SourceNotNil applies the NotNil predicate on the "source" field. +func SourceNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldSource)) +} + +// SourceEqualFold applies the EqualFold predicate on the "source" field. +func SourceEqualFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldEqualFold(FieldSource, v)) +} + +// SourceContainsFold applies the ContainsFold predicate on the "source" field. +func SourceContainsFold(v string) predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldContainsFold(FieldSource, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.ActionPlan { + return predicate.ActionPlan(sql.FieldNotNull(FieldDetails)) +} + +// HasStandard applies the HasEdge predicate on the "standard" edge. +func HasStandard() predicate.ActionPlan { + return predicate.ActionPlan(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, StandardTable, StandardPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.StandardActionplans + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasStandardWith applies the HasEdge predicate on the "standard" edge with a given conditions (other predicates). +func HasStandardWith(preds ...predicate.Standard) predicate.ActionPlan { + return predicate.ActionPlan(func(s *sql.Selector) { + step := newStandardStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.StandardActionplans + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasRisk applies the HasEdge predicate on the "risk" edge. +func HasRisk() predicate.ActionPlan { + return predicate.ActionPlan(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, RiskTable, RiskPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.RiskActionplans + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasRiskWith applies the HasEdge predicate on the "risk" edge with a given conditions (other predicates). +func HasRiskWith(preds ...predicate.Risk) predicate.ActionPlan { + return predicate.ActionPlan(func(s *sql.Selector) { + step := newRiskStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.RiskActionplans + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasControl applies the HasEdge predicate on the "control" edge. +func HasControl() predicate.ActionPlan { + return predicate.ActionPlan(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ControlTable, ControlPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlActionplans + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlWith applies the HasEdge predicate on the "control" edge with a given conditions (other predicates). +func HasControlWith(preds ...predicate.Control) predicate.ActionPlan { + return predicate.ActionPlan(func(s *sql.Selector) { + step := newControlStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlActionplans + 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.ActionPlan { + return predicate.ActionPlan(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, UserTable, UserPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.UserActionplans + 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.ActionPlan { + return predicate.ActionPlan(func(s *sql.Selector) { + step := newUserStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.UserActionplans + 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.ActionPlan) predicate.ActionPlan { + return predicate.ActionPlan(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.ActionPlan) predicate.ActionPlan { + return predicate.ActionPlan(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.ActionPlan) predicate.ActionPlan { + return predicate.ActionPlan(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/actionplan_create.go b/internal/ent/generated/actionplan_create.go new file mode 100644 index 00000000..c065576e --- /dev/null +++ b/internal/ent/generated/actionplan_create.go @@ -0,0 +1,616 @@ +// 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/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/user" +) + +// ActionPlanCreate is the builder for creating a ActionPlan entity. +type ActionPlanCreate struct { + config + mutation *ActionPlanMutation + hooks []Hook +} + +// SetCreatedAt sets the "created_at" field. +func (apc *ActionPlanCreate) SetCreatedAt(t time.Time) *ActionPlanCreate { + apc.mutation.SetCreatedAt(t) + return apc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillableCreatedAt(t *time.Time) *ActionPlanCreate { + if t != nil { + apc.SetCreatedAt(*t) + } + return apc +} + +// SetUpdatedAt sets the "updated_at" field. +func (apc *ActionPlanCreate) SetUpdatedAt(t time.Time) *ActionPlanCreate { + apc.mutation.SetUpdatedAt(t) + return apc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillableUpdatedAt(t *time.Time) *ActionPlanCreate { + if t != nil { + apc.SetUpdatedAt(*t) + } + return apc +} + +// SetCreatedBy sets the "created_by" field. +func (apc *ActionPlanCreate) SetCreatedBy(s string) *ActionPlanCreate { + apc.mutation.SetCreatedBy(s) + return apc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillableCreatedBy(s *string) *ActionPlanCreate { + if s != nil { + apc.SetCreatedBy(*s) + } + return apc +} + +// SetUpdatedBy sets the "updated_by" field. +func (apc *ActionPlanCreate) SetUpdatedBy(s string) *ActionPlanCreate { + apc.mutation.SetUpdatedBy(s) + return apc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillableUpdatedBy(s *string) *ActionPlanCreate { + if s != nil { + apc.SetUpdatedBy(*s) + } + return apc +} + +// SetDeletedAt sets the "deleted_at" field. +func (apc *ActionPlanCreate) SetDeletedAt(t time.Time) *ActionPlanCreate { + apc.mutation.SetDeletedAt(t) + return apc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillableDeletedAt(t *time.Time) *ActionPlanCreate { + if t != nil { + apc.SetDeletedAt(*t) + } + return apc +} + +// SetDeletedBy sets the "deleted_by" field. +func (apc *ActionPlanCreate) SetDeletedBy(s string) *ActionPlanCreate { + apc.mutation.SetDeletedBy(s) + return apc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillableDeletedBy(s *string) *ActionPlanCreate { + if s != nil { + apc.SetDeletedBy(*s) + } + return apc +} + +// SetMappingID sets the "mapping_id" field. +func (apc *ActionPlanCreate) SetMappingID(s string) *ActionPlanCreate { + apc.mutation.SetMappingID(s) + return apc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillableMappingID(s *string) *ActionPlanCreate { + if s != nil { + apc.SetMappingID(*s) + } + return apc +} + +// SetTags sets the "tags" field. +func (apc *ActionPlanCreate) SetTags(s []string) *ActionPlanCreate { + apc.mutation.SetTags(s) + return apc +} + +// SetName sets the "name" field. +func (apc *ActionPlanCreate) SetName(s string) *ActionPlanCreate { + apc.mutation.SetName(s) + return apc +} + +// SetDescription sets the "description" field. +func (apc *ActionPlanCreate) SetDescription(s string) *ActionPlanCreate { + apc.mutation.SetDescription(s) + return apc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillableDescription(s *string) *ActionPlanCreate { + if s != nil { + apc.SetDescription(*s) + } + return apc +} + +// SetStatus sets the "status" field. +func (apc *ActionPlanCreate) SetStatus(s string) *ActionPlanCreate { + apc.mutation.SetStatus(s) + return apc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillableStatus(s *string) *ActionPlanCreate { + if s != nil { + apc.SetStatus(*s) + } + return apc +} + +// SetDueDate sets the "due_date" field. +func (apc *ActionPlanCreate) SetDueDate(t time.Time) *ActionPlanCreate { + apc.mutation.SetDueDate(t) + return apc +} + +// SetNillableDueDate sets the "due_date" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillableDueDate(t *time.Time) *ActionPlanCreate { + if t != nil { + apc.SetDueDate(*t) + } + return apc +} + +// SetPriority sets the "priority" field. +func (apc *ActionPlanCreate) SetPriority(s string) *ActionPlanCreate { + apc.mutation.SetPriority(s) + return apc +} + +// SetNillablePriority sets the "priority" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillablePriority(s *string) *ActionPlanCreate { + if s != nil { + apc.SetPriority(*s) + } + return apc +} + +// SetSource sets the "source" field. +func (apc *ActionPlanCreate) SetSource(s string) *ActionPlanCreate { + apc.mutation.SetSource(s) + return apc +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillableSource(s *string) *ActionPlanCreate { + if s != nil { + apc.SetSource(*s) + } + return apc +} + +// SetDetails sets the "details" field. +func (apc *ActionPlanCreate) SetDetails(m map[string]interface{}) *ActionPlanCreate { + apc.mutation.SetDetails(m) + return apc +} + +// SetID sets the "id" field. +func (apc *ActionPlanCreate) SetID(s string) *ActionPlanCreate { + apc.mutation.SetID(s) + return apc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (apc *ActionPlanCreate) SetNillableID(s *string) *ActionPlanCreate { + if s != nil { + apc.SetID(*s) + } + return apc +} + +// AddStandardIDs adds the "standard" edge to the Standard entity by IDs. +func (apc *ActionPlanCreate) AddStandardIDs(ids ...string) *ActionPlanCreate { + apc.mutation.AddStandardIDs(ids...) + return apc +} + +// AddStandard adds the "standard" edges to the Standard entity. +func (apc *ActionPlanCreate) AddStandard(s ...*Standard) *ActionPlanCreate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return apc.AddStandardIDs(ids...) +} + +// AddRiskIDs adds the "risk" edge to the Risk entity by IDs. +func (apc *ActionPlanCreate) AddRiskIDs(ids ...string) *ActionPlanCreate { + apc.mutation.AddRiskIDs(ids...) + return apc +} + +// AddRisk adds the "risk" edges to the Risk entity. +func (apc *ActionPlanCreate) AddRisk(r ...*Risk) *ActionPlanCreate { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return apc.AddRiskIDs(ids...) +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (apc *ActionPlanCreate) AddControlIDs(ids ...string) *ActionPlanCreate { + apc.mutation.AddControlIDs(ids...) + return apc +} + +// AddControl adds the "control" edges to the Control entity. +func (apc *ActionPlanCreate) AddControl(c ...*Control) *ActionPlanCreate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return apc.AddControlIDs(ids...) +} + +// AddUserIDs adds the "user" edge to the User entity by IDs. +func (apc *ActionPlanCreate) AddUserIDs(ids ...string) *ActionPlanCreate { + apc.mutation.AddUserIDs(ids...) + return apc +} + +// AddUser adds the "user" edges to the User entity. +func (apc *ActionPlanCreate) AddUser(u ...*User) *ActionPlanCreate { + ids := make([]string, len(u)) + for i := range u { + ids[i] = u[i].ID + } + return apc.AddUserIDs(ids...) +} + +// Mutation returns the ActionPlanMutation object of the builder. +func (apc *ActionPlanCreate) Mutation() *ActionPlanMutation { + return apc.mutation +} + +// Save creates the ActionPlan in the database. +func (apc *ActionPlanCreate) Save(ctx context.Context) (*ActionPlan, error) { + if err := apc.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, apc.sqlSave, apc.mutation, apc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (apc *ActionPlanCreate) SaveX(ctx context.Context) *ActionPlan { + v, err := apc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (apc *ActionPlanCreate) Exec(ctx context.Context) error { + _, err := apc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (apc *ActionPlanCreate) ExecX(ctx context.Context) { + if err := apc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (apc *ActionPlanCreate) defaults() error { + if _, ok := apc.mutation.CreatedAt(); !ok { + if actionplan.DefaultCreatedAt == nil { + return fmt.Errorf("generated: uninitialized actionplan.DefaultCreatedAt (forgotten import generated/runtime?)") + } + v := actionplan.DefaultCreatedAt() + apc.mutation.SetCreatedAt(v) + } + if _, ok := apc.mutation.UpdatedAt(); !ok { + if actionplan.DefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized actionplan.DefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := actionplan.DefaultUpdatedAt() + apc.mutation.SetUpdatedAt(v) + } + if _, ok := apc.mutation.MappingID(); !ok { + if actionplan.DefaultMappingID == nil { + return fmt.Errorf("generated: uninitialized actionplan.DefaultMappingID (forgotten import generated/runtime?)") + } + v := actionplan.DefaultMappingID() + apc.mutation.SetMappingID(v) + } + if _, ok := apc.mutation.Tags(); !ok { + v := actionplan.DefaultTags + apc.mutation.SetTags(v) + } + if _, ok := apc.mutation.ID(); !ok { + if actionplan.DefaultID == nil { + return fmt.Errorf("generated: uninitialized actionplan.DefaultID (forgotten import generated/runtime?)") + } + v := actionplan.DefaultID() + apc.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (apc *ActionPlanCreate) check() error { + if _, ok := apc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "ActionPlan.mapping_id"`)} + } + if _, ok := apc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "ActionPlan.name"`)} + } + return nil +} + +func (apc *ActionPlanCreate) sqlSave(ctx context.Context) (*ActionPlan, error) { + if err := apc.check(); err != nil { + return nil, err + } + _node, _spec := apc.createSpec() + if err := sqlgraph.CreateNode(ctx, apc.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 ActionPlan.ID type: %T", _spec.ID.Value) + } + } + apc.mutation.id = &_node.ID + apc.mutation.done = true + return _node, nil +} + +func (apc *ActionPlanCreate) createSpec() (*ActionPlan, *sqlgraph.CreateSpec) { + var ( + _node = &ActionPlan{config: apc.config} + _spec = sqlgraph.NewCreateSpec(actionplan.Table, sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString)) + ) + _spec.Schema = apc.schemaConfig.ActionPlan + if id, ok := apc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := apc.mutation.CreatedAt(); ok { + _spec.SetField(actionplan.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := apc.mutation.UpdatedAt(); ok { + _spec.SetField(actionplan.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := apc.mutation.CreatedBy(); ok { + _spec.SetField(actionplan.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := apc.mutation.UpdatedBy(); ok { + _spec.SetField(actionplan.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := apc.mutation.DeletedAt(); ok { + _spec.SetField(actionplan.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := apc.mutation.DeletedBy(); ok { + _spec.SetField(actionplan.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := apc.mutation.MappingID(); ok { + _spec.SetField(actionplan.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := apc.mutation.Tags(); ok { + _spec.SetField(actionplan.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := apc.mutation.Name(); ok { + _spec.SetField(actionplan.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := apc.mutation.Description(); ok { + _spec.SetField(actionplan.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := apc.mutation.Status(); ok { + _spec.SetField(actionplan.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := apc.mutation.DueDate(); ok { + _spec.SetField(actionplan.FieldDueDate, field.TypeTime, value) + _node.DueDate = value + } + if value, ok := apc.mutation.Priority(); ok { + _spec.SetField(actionplan.FieldPriority, field.TypeString, value) + _node.Priority = value + } + if value, ok := apc.mutation.Source(); ok { + _spec.SetField(actionplan.FieldSource, field.TypeString, value) + _node.Source = value + } + if value, ok := apc.mutation.Details(); ok { + _spec.SetField(actionplan.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + if nodes := apc.mutation.StandardIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.StandardTable, + Columns: actionplan.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = apc.schemaConfig.StandardActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := apc.mutation.RiskIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.RiskTable, + Columns: actionplan.RiskPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = apc.schemaConfig.RiskActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := apc.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.ControlTable, + Columns: actionplan.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = apc.schemaConfig.ControlActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := apc.mutation.UserIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.UserTable, + Columns: actionplan.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = apc.schemaConfig.UserActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + return _node, _spec +} + +// ActionPlanCreateBulk is the builder for creating many ActionPlan entities in bulk. +type ActionPlanCreateBulk struct { + config + err error + builders []*ActionPlanCreate +} + +// Save creates the ActionPlan entities in the database. +func (apcb *ActionPlanCreateBulk) Save(ctx context.Context) ([]*ActionPlan, error) { + if apcb.err != nil { + return nil, apcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(apcb.builders)) + nodes := make([]*ActionPlan, len(apcb.builders)) + mutators := make([]Mutator, len(apcb.builders)) + for i := range apcb.builders { + func(i int, root context.Context) { + builder := apcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*ActionPlanMutation) + 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, apcb.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, apcb.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, apcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (apcb *ActionPlanCreateBulk) SaveX(ctx context.Context) []*ActionPlan { + v, err := apcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (apcb *ActionPlanCreateBulk) Exec(ctx context.Context) error { + _, err := apcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (apcb *ActionPlanCreateBulk) ExecX(ctx context.Context) { + if err := apcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/actionplan_delete.go b/internal/ent/generated/actionplan_delete.go new file mode 100644 index 00000000..aaafb98c --- /dev/null +++ b/internal/ent/generated/actionplan_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ActionPlanDelete is the builder for deleting a ActionPlan entity. +type ActionPlanDelete struct { + config + hooks []Hook + mutation *ActionPlanMutation +} + +// Where appends a list predicates to the ActionPlanDelete builder. +func (apd *ActionPlanDelete) Where(ps ...predicate.ActionPlan) *ActionPlanDelete { + apd.mutation.Where(ps...) + return apd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (apd *ActionPlanDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, apd.sqlExec, apd.mutation, apd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (apd *ActionPlanDelete) ExecX(ctx context.Context) int { + n, err := apd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (apd *ActionPlanDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(actionplan.Table, sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString)) + _spec.Node.Schema = apd.schemaConfig.ActionPlan + ctx = internal.NewSchemaConfigContext(ctx, apd.schemaConfig) + if ps := apd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, apd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + apd.mutation.done = true + return affected, err +} + +// ActionPlanDeleteOne is the builder for deleting a single ActionPlan entity. +type ActionPlanDeleteOne struct { + apd *ActionPlanDelete +} + +// Where appends a list predicates to the ActionPlanDelete builder. +func (apdo *ActionPlanDeleteOne) Where(ps ...predicate.ActionPlan) *ActionPlanDeleteOne { + apdo.apd.mutation.Where(ps...) + return apdo +} + +// Exec executes the deletion query. +func (apdo *ActionPlanDeleteOne) Exec(ctx context.Context) error { + n, err := apdo.apd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{actionplan.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (apdo *ActionPlanDeleteOne) ExecX(ctx context.Context) { + if err := apdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/actionplan_query.go b/internal/ent/generated/actionplan_query.go new file mode 100644 index 00000000..97242328 --- /dev/null +++ b/internal/ent/generated/actionplan_query.go @@ -0,0 +1,1094 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "database/sql/driver" + "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/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/user" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ActionPlanQuery is the builder for querying ActionPlan entities. +type ActionPlanQuery struct { + config + ctx *QueryContext + order []actionplan.OrderOption + inters []Interceptor + predicates []predicate.ActionPlan + withStandard *StandardQuery + withRisk *RiskQuery + withControl *ControlQuery + withUser *UserQuery + loadTotal []func(context.Context, []*ActionPlan) error + modifiers []func(*sql.Selector) + withNamedStandard map[string]*StandardQuery + withNamedRisk map[string]*RiskQuery + withNamedControl map[string]*ControlQuery + withNamedUser map[string]*UserQuery + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the ActionPlanQuery builder. +func (apq *ActionPlanQuery) Where(ps ...predicate.ActionPlan) *ActionPlanQuery { + apq.predicates = append(apq.predicates, ps...) + return apq +} + +// Limit the number of records to be returned by this query. +func (apq *ActionPlanQuery) Limit(limit int) *ActionPlanQuery { + apq.ctx.Limit = &limit + return apq +} + +// Offset to start from. +func (apq *ActionPlanQuery) Offset(offset int) *ActionPlanQuery { + apq.ctx.Offset = &offset + return apq +} + +// 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 (apq *ActionPlanQuery) Unique(unique bool) *ActionPlanQuery { + apq.ctx.Unique = &unique + return apq +} + +// Order specifies how the records should be ordered. +func (apq *ActionPlanQuery) Order(o ...actionplan.OrderOption) *ActionPlanQuery { + apq.order = append(apq.order, o...) + return apq +} + +// QueryStandard chains the current query on the "standard" edge. +func (apq *ActionPlanQuery) QueryStandard() *StandardQuery { + query := (&StandardClient{config: apq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := apq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := apq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(actionplan.Table, actionplan.FieldID, selector), + sqlgraph.To(standard.Table, standard.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, actionplan.StandardTable, actionplan.StandardPrimaryKey...), + ) + schemaConfig := apq.schemaConfig + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.StandardActionplans + fromU = sqlgraph.SetNeighbors(apq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryRisk chains the current query on the "risk" edge. +func (apq *ActionPlanQuery) QueryRisk() *RiskQuery { + query := (&RiskClient{config: apq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := apq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := apq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(actionplan.Table, actionplan.FieldID, selector), + sqlgraph.To(risk.Table, risk.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, actionplan.RiskTable, actionplan.RiskPrimaryKey...), + ) + schemaConfig := apq.schemaConfig + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.RiskActionplans + fromU = sqlgraph.SetNeighbors(apq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryControl chains the current query on the "control" edge. +func (apq *ActionPlanQuery) QueryControl() *ControlQuery { + query := (&ControlClient{config: apq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := apq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := apq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(actionplan.Table, actionplan.FieldID, selector), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, actionplan.ControlTable, actionplan.ControlPrimaryKey...), + ) + schemaConfig := apq.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlActionplans + fromU = sqlgraph.SetNeighbors(apq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryUser chains the current query on the "user" edge. +func (apq *ActionPlanQuery) QueryUser() *UserQuery { + query := (&UserClient{config: apq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := apq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := apq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(actionplan.Table, actionplan.FieldID, selector), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, actionplan.UserTable, actionplan.UserPrimaryKey...), + ) + schemaConfig := apq.schemaConfig + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.UserActionplans + fromU = sqlgraph.SetNeighbors(apq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// First returns the first ActionPlan entity from the query. +// Returns a *NotFoundError when no ActionPlan was found. +func (apq *ActionPlanQuery) First(ctx context.Context) (*ActionPlan, error) { + nodes, err := apq.Limit(1).All(setContextOp(ctx, apq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{actionplan.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (apq *ActionPlanQuery) FirstX(ctx context.Context) *ActionPlan { + node, err := apq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first ActionPlan ID from the query. +// Returns a *NotFoundError when no ActionPlan ID was found. +func (apq *ActionPlanQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = apq.Limit(1).IDs(setContextOp(ctx, apq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{actionplan.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (apq *ActionPlanQuery) FirstIDX(ctx context.Context) string { + id, err := apq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single ActionPlan entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one ActionPlan entity is found. +// Returns a *NotFoundError when no ActionPlan entities are found. +func (apq *ActionPlanQuery) Only(ctx context.Context) (*ActionPlan, error) { + nodes, err := apq.Limit(2).All(setContextOp(ctx, apq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{actionplan.Label} + default: + return nil, &NotSingularError{actionplan.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (apq *ActionPlanQuery) OnlyX(ctx context.Context) *ActionPlan { + node, err := apq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only ActionPlan ID in the query. +// Returns a *NotSingularError when more than one ActionPlan ID is found. +// Returns a *NotFoundError when no entities are found. +func (apq *ActionPlanQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = apq.Limit(2).IDs(setContextOp(ctx, apq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{actionplan.Label} + default: + err = &NotSingularError{actionplan.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (apq *ActionPlanQuery) OnlyIDX(ctx context.Context) string { + id, err := apq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of ActionPlans. +func (apq *ActionPlanQuery) All(ctx context.Context) ([]*ActionPlan, error) { + ctx = setContextOp(ctx, apq.ctx, ent.OpQueryAll) + if err := apq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*ActionPlan, *ActionPlanQuery]() + return withInterceptors[[]*ActionPlan](ctx, apq, qr, apq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (apq *ActionPlanQuery) AllX(ctx context.Context) []*ActionPlan { + nodes, err := apq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of ActionPlan IDs. +func (apq *ActionPlanQuery) IDs(ctx context.Context) (ids []string, err error) { + if apq.ctx.Unique == nil && apq.path != nil { + apq.Unique(true) + } + ctx = setContextOp(ctx, apq.ctx, ent.OpQueryIDs) + if err = apq.Select(actionplan.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (apq *ActionPlanQuery) IDsX(ctx context.Context) []string { + ids, err := apq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (apq *ActionPlanQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, apq.ctx, ent.OpQueryCount) + if err := apq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, apq, querierCount[*ActionPlanQuery](), apq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (apq *ActionPlanQuery) CountX(ctx context.Context) int { + count, err := apq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (apq *ActionPlanQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, apq.ctx, ent.OpQueryExist) + switch _, err := apq.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 (apq *ActionPlanQuery) ExistX(ctx context.Context) bool { + exist, err := apq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the ActionPlanQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (apq *ActionPlanQuery) Clone() *ActionPlanQuery { + if apq == nil { + return nil + } + return &ActionPlanQuery{ + config: apq.config, + ctx: apq.ctx.Clone(), + order: append([]actionplan.OrderOption{}, apq.order...), + inters: append([]Interceptor{}, apq.inters...), + predicates: append([]predicate.ActionPlan{}, apq.predicates...), + withStandard: apq.withStandard.Clone(), + withRisk: apq.withRisk.Clone(), + withControl: apq.withControl.Clone(), + withUser: apq.withUser.Clone(), + // clone intermediate query. + sql: apq.sql.Clone(), + path: apq.path, + modifiers: append([]func(*sql.Selector){}, apq.modifiers...), + } +} + +// WithStandard tells the query-builder to eager-load the nodes that are connected to +// the "standard" edge. The optional arguments are used to configure the query builder of the edge. +func (apq *ActionPlanQuery) WithStandard(opts ...func(*StandardQuery)) *ActionPlanQuery { + query := (&StandardClient{config: apq.config}).Query() + for _, opt := range opts { + opt(query) + } + apq.withStandard = query + return apq +} + +// WithRisk tells the query-builder to eager-load the nodes that are connected to +// the "risk" edge. The optional arguments are used to configure the query builder of the edge. +func (apq *ActionPlanQuery) WithRisk(opts ...func(*RiskQuery)) *ActionPlanQuery { + query := (&RiskClient{config: apq.config}).Query() + for _, opt := range opts { + opt(query) + } + apq.withRisk = query + return apq +} + +// WithControl tells the query-builder to eager-load the nodes that are connected to +// the "control" edge. The optional arguments are used to configure the query builder of the edge. +func (apq *ActionPlanQuery) WithControl(opts ...func(*ControlQuery)) *ActionPlanQuery { + query := (&ControlClient{config: apq.config}).Query() + for _, opt := range opts { + opt(query) + } + apq.withControl = query + return apq +} + +// 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 (apq *ActionPlanQuery) WithUser(opts ...func(*UserQuery)) *ActionPlanQuery { + query := (&UserClient{config: apq.config}).Query() + for _, opt := range opts { + opt(query) + } + apq.withUser = query + return apq +} + +// 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.ActionPlan.Query(). +// GroupBy(actionplan.FieldCreatedAt). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (apq *ActionPlanQuery) GroupBy(field string, fields ...string) *ActionPlanGroupBy { + apq.ctx.Fields = append([]string{field}, fields...) + grbuild := &ActionPlanGroupBy{build: apq} + grbuild.flds = &apq.ctx.Fields + grbuild.label = actionplan.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.ActionPlan.Query(). +// Select(actionplan.FieldCreatedAt). +// Scan(ctx, &v) +func (apq *ActionPlanQuery) Select(fields ...string) *ActionPlanSelect { + apq.ctx.Fields = append(apq.ctx.Fields, fields...) + sbuild := &ActionPlanSelect{ActionPlanQuery: apq} + sbuild.label = actionplan.Label + sbuild.flds, sbuild.scan = &apq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a ActionPlanSelect configured with the given aggregations. +func (apq *ActionPlanQuery) Aggregate(fns ...AggregateFunc) *ActionPlanSelect { + return apq.Select().Aggregate(fns...) +} + +func (apq *ActionPlanQuery) prepareQuery(ctx context.Context) error { + for _, inter := range apq.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, apq); err != nil { + return err + } + } + } + for _, f := range apq.ctx.Fields { + if !actionplan.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if apq.path != nil { + prev, err := apq.path(ctx) + if err != nil { + return err + } + apq.sql = prev + } + return nil +} + +func (apq *ActionPlanQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*ActionPlan, error) { + var ( + nodes = []*ActionPlan{} + _spec = apq.querySpec() + loadedTypes = [4]bool{ + apq.withStandard != nil, + apq.withRisk != nil, + apq.withControl != nil, + apq.withUser != nil, + } + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*ActionPlan).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &ActionPlan{config: apq.config} + nodes = append(nodes, node) + node.Edges.loadedTypes = loadedTypes + return node.assignValues(columns, values) + } + _spec.Node.Schema = apq.schemaConfig.ActionPlan + ctx = internal.NewSchemaConfigContext(ctx, apq.schemaConfig) + if len(apq.modifiers) > 0 { + _spec.Modifiers = apq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, apq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + if query := apq.withStandard; query != nil { + if err := apq.loadStandard(ctx, query, nodes, + func(n *ActionPlan) { n.Edges.Standard = []*Standard{} }, + func(n *ActionPlan, e *Standard) { n.Edges.Standard = append(n.Edges.Standard, e) }); err != nil { + return nil, err + } + } + if query := apq.withRisk; query != nil { + if err := apq.loadRisk(ctx, query, nodes, + func(n *ActionPlan) { n.Edges.Risk = []*Risk{} }, + func(n *ActionPlan, e *Risk) { n.Edges.Risk = append(n.Edges.Risk, e) }); err != nil { + return nil, err + } + } + if query := apq.withControl; query != nil { + if err := apq.loadControl(ctx, query, nodes, + func(n *ActionPlan) { n.Edges.Control = []*Control{} }, + func(n *ActionPlan, e *Control) { n.Edges.Control = append(n.Edges.Control, e) }); err != nil { + return nil, err + } + } + if query := apq.withUser; query != nil { + if err := apq.loadUser(ctx, query, nodes, + func(n *ActionPlan) { n.Edges.User = []*User{} }, + func(n *ActionPlan, e *User) { n.Edges.User = append(n.Edges.User, e) }); err != nil { + return nil, err + } + } + for name, query := range apq.withNamedStandard { + if err := apq.loadStandard(ctx, query, nodes, + func(n *ActionPlan) { n.appendNamedStandard(name) }, + func(n *ActionPlan, e *Standard) { n.appendNamedStandard(name, e) }); err != nil { + return nil, err + } + } + for name, query := range apq.withNamedRisk { + if err := apq.loadRisk(ctx, query, nodes, + func(n *ActionPlan) { n.appendNamedRisk(name) }, + func(n *ActionPlan, e *Risk) { n.appendNamedRisk(name, e) }); err != nil { + return nil, err + } + } + for name, query := range apq.withNamedControl { + if err := apq.loadControl(ctx, query, nodes, + func(n *ActionPlan) { n.appendNamedControl(name) }, + func(n *ActionPlan, e *Control) { n.appendNamedControl(name, e) }); err != nil { + return nil, err + } + } + for name, query := range apq.withNamedUser { + if err := apq.loadUser(ctx, query, nodes, + func(n *ActionPlan) { n.appendNamedUser(name) }, + func(n *ActionPlan, e *User) { n.appendNamedUser(name, e) }); err != nil { + return nil, err + } + } + for i := range apq.loadTotal { + if err := apq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (apq *ActionPlanQuery) loadStandard(ctx context.Context, query *StandardQuery, nodes []*ActionPlan, init func(*ActionPlan), assign func(*ActionPlan, *Standard)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*ActionPlan) + nids := make(map[string]map[*ActionPlan]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(actionplan.StandardTable) + joinT.Schema(apq.schemaConfig.StandardActionplans) + s.Join(joinT).On(s.C(standard.FieldID), joinT.C(actionplan.StandardPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(actionplan.StandardPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(actionplan.StandardPrimaryKey[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[*ActionPlan]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Standard](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 "standard" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (apq *ActionPlanQuery) loadRisk(ctx context.Context, query *RiskQuery, nodes []*ActionPlan, init func(*ActionPlan), assign func(*ActionPlan, *Risk)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*ActionPlan) + nids := make(map[string]map[*ActionPlan]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(actionplan.RiskTable) + joinT.Schema(apq.schemaConfig.RiskActionplans) + s.Join(joinT).On(s.C(risk.FieldID), joinT.C(actionplan.RiskPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(actionplan.RiskPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(actionplan.RiskPrimaryKey[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[*ActionPlan]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Risk](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 "risk" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (apq *ActionPlanQuery) loadControl(ctx context.Context, query *ControlQuery, nodes []*ActionPlan, init func(*ActionPlan), assign func(*ActionPlan, *Control)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*ActionPlan) + nids := make(map[string]map[*ActionPlan]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(actionplan.ControlTable) + joinT.Schema(apq.schemaConfig.ControlActionplans) + s.Join(joinT).On(s.C(control.FieldID), joinT.C(actionplan.ControlPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(actionplan.ControlPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(actionplan.ControlPrimaryKey[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[*ActionPlan]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Control](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 "control" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (apq *ActionPlanQuery) loadUser(ctx context.Context, query *UserQuery, nodes []*ActionPlan, init func(*ActionPlan), assign func(*ActionPlan, *User)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*ActionPlan) + nids := make(map[string]map[*ActionPlan]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(actionplan.UserTable) + joinT.Schema(apq.schemaConfig.UserActionplans) + s.Join(joinT).On(s.C(user.FieldID), joinT.C(actionplan.UserPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(actionplan.UserPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(actionplan.UserPrimaryKey[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[*ActionPlan]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*User](ctx, query, qr, query.inters) + if err != nil { + return err + } + for _, n := range neighbors { + nodes, ok := nids[n.ID] + if !ok { + return fmt.Errorf(`unexpected "user" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} + +func (apq *ActionPlanQuery) sqlCount(ctx context.Context) (int, error) { + _spec := apq.querySpec() + _spec.Node.Schema = apq.schemaConfig.ActionPlan + ctx = internal.NewSchemaConfigContext(ctx, apq.schemaConfig) + if len(apq.modifiers) > 0 { + _spec.Modifiers = apq.modifiers + } + _spec.Node.Columns = apq.ctx.Fields + if len(apq.ctx.Fields) > 0 { + _spec.Unique = apq.ctx.Unique != nil && *apq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, apq.driver, _spec) +} + +func (apq *ActionPlanQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(actionplan.Table, actionplan.Columns, sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString)) + _spec.From = apq.sql + if unique := apq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if apq.path != nil { + _spec.Unique = true + } + if fields := apq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, actionplan.FieldID) + for i := range fields { + if fields[i] != actionplan.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := apq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := apq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := apq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := apq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (apq *ActionPlanQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(apq.driver.Dialect()) + t1 := builder.Table(actionplan.Table) + columns := apq.ctx.Fields + if len(columns) == 0 { + columns = actionplan.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if apq.sql != nil { + selector = apq.sql + selector.Select(selector.Columns(columns...)...) + } + if apq.ctx.Unique != nil && *apq.ctx.Unique { + selector.Distinct() + } + t1.Schema(apq.schemaConfig.ActionPlan) + ctx = internal.NewSchemaConfigContext(ctx, apq.schemaConfig) + selector.WithContext(ctx) + for _, m := range apq.modifiers { + m(selector) + } + for _, p := range apq.predicates { + p(selector) + } + for _, p := range apq.order { + p(selector) + } + if offset := apq.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 := apq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (apq *ActionPlanQuery) Modify(modifiers ...func(s *sql.Selector)) *ActionPlanSelect { + apq.modifiers = append(apq.modifiers, modifiers...) + return apq.Select() +} + +// WithNamedStandard tells the query-builder to eager-load the nodes that are connected to the "standard" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (apq *ActionPlanQuery) WithNamedStandard(name string, opts ...func(*StandardQuery)) *ActionPlanQuery { + query := (&StandardClient{config: apq.config}).Query() + for _, opt := range opts { + opt(query) + } + if apq.withNamedStandard == nil { + apq.withNamedStandard = make(map[string]*StandardQuery) + } + apq.withNamedStandard[name] = query + return apq +} + +// WithNamedRisk tells the query-builder to eager-load the nodes that are connected to the "risk" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (apq *ActionPlanQuery) WithNamedRisk(name string, opts ...func(*RiskQuery)) *ActionPlanQuery { + query := (&RiskClient{config: apq.config}).Query() + for _, opt := range opts { + opt(query) + } + if apq.withNamedRisk == nil { + apq.withNamedRisk = make(map[string]*RiskQuery) + } + apq.withNamedRisk[name] = query + return apq +} + +// WithNamedControl tells the query-builder to eager-load the nodes that are connected to the "control" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (apq *ActionPlanQuery) WithNamedControl(name string, opts ...func(*ControlQuery)) *ActionPlanQuery { + query := (&ControlClient{config: apq.config}).Query() + for _, opt := range opts { + opt(query) + } + if apq.withNamedControl == nil { + apq.withNamedControl = make(map[string]*ControlQuery) + } + apq.withNamedControl[name] = query + return apq +} + +// WithNamedUser tells the query-builder to eager-load the nodes that are connected to the "user" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (apq *ActionPlanQuery) WithNamedUser(name string, opts ...func(*UserQuery)) *ActionPlanQuery { + query := (&UserClient{config: apq.config}).Query() + for _, opt := range opts { + opt(query) + } + if apq.withNamedUser == nil { + apq.withNamedUser = make(map[string]*UserQuery) + } + apq.withNamedUser[name] = query + return apq +} + +// ActionPlanGroupBy is the group-by builder for ActionPlan entities. +type ActionPlanGroupBy struct { + selector + build *ActionPlanQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (apgb *ActionPlanGroupBy) Aggregate(fns ...AggregateFunc) *ActionPlanGroupBy { + apgb.fns = append(apgb.fns, fns...) + return apgb +} + +// Scan applies the selector query and scans the result into the given value. +func (apgb *ActionPlanGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, apgb.build.ctx, ent.OpQueryGroupBy) + if err := apgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ActionPlanQuery, *ActionPlanGroupBy](ctx, apgb.build, apgb, apgb.build.inters, v) +} + +func (apgb *ActionPlanGroupBy) sqlScan(ctx context.Context, root *ActionPlanQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(apgb.fns)) + for _, fn := range apgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*apgb.flds)+len(apgb.fns)) + for _, f := range *apgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*apgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := apgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// ActionPlanSelect is the builder for selecting fields of ActionPlan entities. +type ActionPlanSelect struct { + *ActionPlanQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (aps *ActionPlanSelect) Aggregate(fns ...AggregateFunc) *ActionPlanSelect { + aps.fns = append(aps.fns, fns...) + return aps +} + +// Scan applies the selector query and scans the result into the given value. +func (aps *ActionPlanSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, aps.ctx, ent.OpQuerySelect) + if err := aps.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ActionPlanQuery, *ActionPlanSelect](ctx, aps.ActionPlanQuery, aps, aps.inters, v) +} + +func (aps *ActionPlanSelect) sqlScan(ctx context.Context, root *ActionPlanQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(aps.fns)) + for _, fn := range aps.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*aps.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 := aps.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 (aps *ActionPlanSelect) Modify(modifiers ...func(s *sql.Selector)) *ActionPlanSelect { + aps.modifiers = append(aps.modifiers, modifiers...) + return aps +} diff --git a/internal/ent/generated/actionplan_update.go b/internal/ent/generated/actionplan_update.go new file mode 100644 index 00000000..e1446215 --- /dev/null +++ b/internal/ent/generated/actionplan_update.go @@ -0,0 +1,1497 @@ +// 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/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/user" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ActionPlanUpdate is the builder for updating ActionPlan entities. +type ActionPlanUpdate struct { + config + hooks []Hook + mutation *ActionPlanMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the ActionPlanUpdate builder. +func (apu *ActionPlanUpdate) Where(ps ...predicate.ActionPlan) *ActionPlanUpdate { + apu.mutation.Where(ps...) + return apu +} + +// SetUpdatedAt sets the "updated_at" field. +func (apu *ActionPlanUpdate) SetUpdatedAt(t time.Time) *ActionPlanUpdate { + apu.mutation.SetUpdatedAt(t) + return apu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (apu *ActionPlanUpdate) ClearUpdatedAt() *ActionPlanUpdate { + apu.mutation.ClearUpdatedAt() + return apu +} + +// SetUpdatedBy sets the "updated_by" field. +func (apu *ActionPlanUpdate) SetUpdatedBy(s string) *ActionPlanUpdate { + apu.mutation.SetUpdatedBy(s) + return apu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (apu *ActionPlanUpdate) SetNillableUpdatedBy(s *string) *ActionPlanUpdate { + if s != nil { + apu.SetUpdatedBy(*s) + } + return apu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (apu *ActionPlanUpdate) ClearUpdatedBy() *ActionPlanUpdate { + apu.mutation.ClearUpdatedBy() + return apu +} + +// SetDeletedAt sets the "deleted_at" field. +func (apu *ActionPlanUpdate) SetDeletedAt(t time.Time) *ActionPlanUpdate { + apu.mutation.SetDeletedAt(t) + return apu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (apu *ActionPlanUpdate) SetNillableDeletedAt(t *time.Time) *ActionPlanUpdate { + if t != nil { + apu.SetDeletedAt(*t) + } + return apu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (apu *ActionPlanUpdate) ClearDeletedAt() *ActionPlanUpdate { + apu.mutation.ClearDeletedAt() + return apu +} + +// SetDeletedBy sets the "deleted_by" field. +func (apu *ActionPlanUpdate) SetDeletedBy(s string) *ActionPlanUpdate { + apu.mutation.SetDeletedBy(s) + return apu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (apu *ActionPlanUpdate) SetNillableDeletedBy(s *string) *ActionPlanUpdate { + if s != nil { + apu.SetDeletedBy(*s) + } + return apu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (apu *ActionPlanUpdate) ClearDeletedBy() *ActionPlanUpdate { + apu.mutation.ClearDeletedBy() + return apu +} + +// SetTags sets the "tags" field. +func (apu *ActionPlanUpdate) SetTags(s []string) *ActionPlanUpdate { + apu.mutation.SetTags(s) + return apu +} + +// AppendTags appends s to the "tags" field. +func (apu *ActionPlanUpdate) AppendTags(s []string) *ActionPlanUpdate { + apu.mutation.AppendTags(s) + return apu +} + +// ClearTags clears the value of the "tags" field. +func (apu *ActionPlanUpdate) ClearTags() *ActionPlanUpdate { + apu.mutation.ClearTags() + return apu +} + +// SetName sets the "name" field. +func (apu *ActionPlanUpdate) SetName(s string) *ActionPlanUpdate { + apu.mutation.SetName(s) + return apu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (apu *ActionPlanUpdate) SetNillableName(s *string) *ActionPlanUpdate { + if s != nil { + apu.SetName(*s) + } + return apu +} + +// SetDescription sets the "description" field. +func (apu *ActionPlanUpdate) SetDescription(s string) *ActionPlanUpdate { + apu.mutation.SetDescription(s) + return apu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (apu *ActionPlanUpdate) SetNillableDescription(s *string) *ActionPlanUpdate { + if s != nil { + apu.SetDescription(*s) + } + return apu +} + +// ClearDescription clears the value of the "description" field. +func (apu *ActionPlanUpdate) ClearDescription() *ActionPlanUpdate { + apu.mutation.ClearDescription() + return apu +} + +// SetStatus sets the "status" field. +func (apu *ActionPlanUpdate) SetStatus(s string) *ActionPlanUpdate { + apu.mutation.SetStatus(s) + return apu +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (apu *ActionPlanUpdate) SetNillableStatus(s *string) *ActionPlanUpdate { + if s != nil { + apu.SetStatus(*s) + } + return apu +} + +// ClearStatus clears the value of the "status" field. +func (apu *ActionPlanUpdate) ClearStatus() *ActionPlanUpdate { + apu.mutation.ClearStatus() + return apu +} + +// SetDueDate sets the "due_date" field. +func (apu *ActionPlanUpdate) SetDueDate(t time.Time) *ActionPlanUpdate { + apu.mutation.SetDueDate(t) + return apu +} + +// SetNillableDueDate sets the "due_date" field if the given value is not nil. +func (apu *ActionPlanUpdate) SetNillableDueDate(t *time.Time) *ActionPlanUpdate { + if t != nil { + apu.SetDueDate(*t) + } + return apu +} + +// ClearDueDate clears the value of the "due_date" field. +func (apu *ActionPlanUpdate) ClearDueDate() *ActionPlanUpdate { + apu.mutation.ClearDueDate() + return apu +} + +// SetPriority sets the "priority" field. +func (apu *ActionPlanUpdate) SetPriority(s string) *ActionPlanUpdate { + apu.mutation.SetPriority(s) + return apu +} + +// SetNillablePriority sets the "priority" field if the given value is not nil. +func (apu *ActionPlanUpdate) SetNillablePriority(s *string) *ActionPlanUpdate { + if s != nil { + apu.SetPriority(*s) + } + return apu +} + +// ClearPriority clears the value of the "priority" field. +func (apu *ActionPlanUpdate) ClearPriority() *ActionPlanUpdate { + apu.mutation.ClearPriority() + return apu +} + +// SetSource sets the "source" field. +func (apu *ActionPlanUpdate) SetSource(s string) *ActionPlanUpdate { + apu.mutation.SetSource(s) + return apu +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (apu *ActionPlanUpdate) SetNillableSource(s *string) *ActionPlanUpdate { + if s != nil { + apu.SetSource(*s) + } + return apu +} + +// ClearSource clears the value of the "source" field. +func (apu *ActionPlanUpdate) ClearSource() *ActionPlanUpdate { + apu.mutation.ClearSource() + return apu +} + +// SetDetails sets the "details" field. +func (apu *ActionPlanUpdate) SetDetails(m map[string]interface{}) *ActionPlanUpdate { + apu.mutation.SetDetails(m) + return apu +} + +// ClearDetails clears the value of the "details" field. +func (apu *ActionPlanUpdate) ClearDetails() *ActionPlanUpdate { + apu.mutation.ClearDetails() + return apu +} + +// AddStandardIDs adds the "standard" edge to the Standard entity by IDs. +func (apu *ActionPlanUpdate) AddStandardIDs(ids ...string) *ActionPlanUpdate { + apu.mutation.AddStandardIDs(ids...) + return apu +} + +// AddStandard adds the "standard" edges to the Standard entity. +func (apu *ActionPlanUpdate) AddStandard(s ...*Standard) *ActionPlanUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return apu.AddStandardIDs(ids...) +} + +// AddRiskIDs adds the "risk" edge to the Risk entity by IDs. +func (apu *ActionPlanUpdate) AddRiskIDs(ids ...string) *ActionPlanUpdate { + apu.mutation.AddRiskIDs(ids...) + return apu +} + +// AddRisk adds the "risk" edges to the Risk entity. +func (apu *ActionPlanUpdate) AddRisk(r ...*Risk) *ActionPlanUpdate { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return apu.AddRiskIDs(ids...) +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (apu *ActionPlanUpdate) AddControlIDs(ids ...string) *ActionPlanUpdate { + apu.mutation.AddControlIDs(ids...) + return apu +} + +// AddControl adds the "control" edges to the Control entity. +func (apu *ActionPlanUpdate) AddControl(c ...*Control) *ActionPlanUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return apu.AddControlIDs(ids...) +} + +// AddUserIDs adds the "user" edge to the User entity by IDs. +func (apu *ActionPlanUpdate) AddUserIDs(ids ...string) *ActionPlanUpdate { + apu.mutation.AddUserIDs(ids...) + return apu +} + +// AddUser adds the "user" edges to the User entity. +func (apu *ActionPlanUpdate) AddUser(u ...*User) *ActionPlanUpdate { + ids := make([]string, len(u)) + for i := range u { + ids[i] = u[i].ID + } + return apu.AddUserIDs(ids...) +} + +// Mutation returns the ActionPlanMutation object of the builder. +func (apu *ActionPlanUpdate) Mutation() *ActionPlanMutation { + return apu.mutation +} + +// ClearStandard clears all "standard" edges to the Standard entity. +func (apu *ActionPlanUpdate) ClearStandard() *ActionPlanUpdate { + apu.mutation.ClearStandard() + return apu +} + +// RemoveStandardIDs removes the "standard" edge to Standard entities by IDs. +func (apu *ActionPlanUpdate) RemoveStandardIDs(ids ...string) *ActionPlanUpdate { + apu.mutation.RemoveStandardIDs(ids...) + return apu +} + +// RemoveStandard removes "standard" edges to Standard entities. +func (apu *ActionPlanUpdate) RemoveStandard(s ...*Standard) *ActionPlanUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return apu.RemoveStandardIDs(ids...) +} + +// ClearRisk clears all "risk" edges to the Risk entity. +func (apu *ActionPlanUpdate) ClearRisk() *ActionPlanUpdate { + apu.mutation.ClearRisk() + return apu +} + +// RemoveRiskIDs removes the "risk" edge to Risk entities by IDs. +func (apu *ActionPlanUpdate) RemoveRiskIDs(ids ...string) *ActionPlanUpdate { + apu.mutation.RemoveRiskIDs(ids...) + return apu +} + +// RemoveRisk removes "risk" edges to Risk entities. +func (apu *ActionPlanUpdate) RemoveRisk(r ...*Risk) *ActionPlanUpdate { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return apu.RemoveRiskIDs(ids...) +} + +// ClearControl clears all "control" edges to the Control entity. +func (apu *ActionPlanUpdate) ClearControl() *ActionPlanUpdate { + apu.mutation.ClearControl() + return apu +} + +// RemoveControlIDs removes the "control" edge to Control entities by IDs. +func (apu *ActionPlanUpdate) RemoveControlIDs(ids ...string) *ActionPlanUpdate { + apu.mutation.RemoveControlIDs(ids...) + return apu +} + +// RemoveControl removes "control" edges to Control entities. +func (apu *ActionPlanUpdate) RemoveControl(c ...*Control) *ActionPlanUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return apu.RemoveControlIDs(ids...) +} + +// ClearUser clears all "user" edges to the User entity. +func (apu *ActionPlanUpdate) ClearUser() *ActionPlanUpdate { + apu.mutation.ClearUser() + return apu +} + +// RemoveUserIDs removes the "user" edge to User entities by IDs. +func (apu *ActionPlanUpdate) RemoveUserIDs(ids ...string) *ActionPlanUpdate { + apu.mutation.RemoveUserIDs(ids...) + return apu +} + +// RemoveUser removes "user" edges to User entities. +func (apu *ActionPlanUpdate) RemoveUser(u ...*User) *ActionPlanUpdate { + ids := make([]string, len(u)) + for i := range u { + ids[i] = u[i].ID + } + return apu.RemoveUserIDs(ids...) +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (apu *ActionPlanUpdate) Save(ctx context.Context) (int, error) { + if err := apu.defaults(); err != nil { + return 0, err + } + return withHooks(ctx, apu.sqlSave, apu.mutation, apu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (apu *ActionPlanUpdate) SaveX(ctx context.Context) int { + affected, err := apu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (apu *ActionPlanUpdate) Exec(ctx context.Context) error { + _, err := apu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (apu *ActionPlanUpdate) ExecX(ctx context.Context) { + if err := apu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (apu *ActionPlanUpdate) defaults() error { + if _, ok := apu.mutation.UpdatedAt(); !ok && !apu.mutation.UpdatedAtCleared() { + if actionplan.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized actionplan.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := actionplan.UpdateDefaultUpdatedAt() + apu.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (apu *ActionPlanUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ActionPlanUpdate { + apu.modifiers = append(apu.modifiers, modifiers...) + return apu +} + +func (apu *ActionPlanUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(actionplan.Table, actionplan.Columns, sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString)) + if ps := apu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if apu.mutation.CreatedAtCleared() { + _spec.ClearField(actionplan.FieldCreatedAt, field.TypeTime) + } + if value, ok := apu.mutation.UpdatedAt(); ok { + _spec.SetField(actionplan.FieldUpdatedAt, field.TypeTime, value) + } + if apu.mutation.UpdatedAtCleared() { + _spec.ClearField(actionplan.FieldUpdatedAt, field.TypeTime) + } + if apu.mutation.CreatedByCleared() { + _spec.ClearField(actionplan.FieldCreatedBy, field.TypeString) + } + if value, ok := apu.mutation.UpdatedBy(); ok { + _spec.SetField(actionplan.FieldUpdatedBy, field.TypeString, value) + } + if apu.mutation.UpdatedByCleared() { + _spec.ClearField(actionplan.FieldUpdatedBy, field.TypeString) + } + if value, ok := apu.mutation.DeletedAt(); ok { + _spec.SetField(actionplan.FieldDeletedAt, field.TypeTime, value) + } + if apu.mutation.DeletedAtCleared() { + _spec.ClearField(actionplan.FieldDeletedAt, field.TypeTime) + } + if value, ok := apu.mutation.DeletedBy(); ok { + _spec.SetField(actionplan.FieldDeletedBy, field.TypeString, value) + } + if apu.mutation.DeletedByCleared() { + _spec.ClearField(actionplan.FieldDeletedBy, field.TypeString) + } + if value, ok := apu.mutation.Tags(); ok { + _spec.SetField(actionplan.FieldTags, field.TypeJSON, value) + } + if value, ok := apu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, actionplan.FieldTags, value) + }) + } + if apu.mutation.TagsCleared() { + _spec.ClearField(actionplan.FieldTags, field.TypeJSON) + } + if value, ok := apu.mutation.Name(); ok { + _spec.SetField(actionplan.FieldName, field.TypeString, value) + } + if value, ok := apu.mutation.Description(); ok { + _spec.SetField(actionplan.FieldDescription, field.TypeString, value) + } + if apu.mutation.DescriptionCleared() { + _spec.ClearField(actionplan.FieldDescription, field.TypeString) + } + if value, ok := apu.mutation.Status(); ok { + _spec.SetField(actionplan.FieldStatus, field.TypeString, value) + } + if apu.mutation.StatusCleared() { + _spec.ClearField(actionplan.FieldStatus, field.TypeString) + } + if value, ok := apu.mutation.DueDate(); ok { + _spec.SetField(actionplan.FieldDueDate, field.TypeTime, value) + } + if apu.mutation.DueDateCleared() { + _spec.ClearField(actionplan.FieldDueDate, field.TypeTime) + } + if value, ok := apu.mutation.Priority(); ok { + _spec.SetField(actionplan.FieldPriority, field.TypeString, value) + } + if apu.mutation.PriorityCleared() { + _spec.ClearField(actionplan.FieldPriority, field.TypeString) + } + if value, ok := apu.mutation.Source(); ok { + _spec.SetField(actionplan.FieldSource, field.TypeString, value) + } + if apu.mutation.SourceCleared() { + _spec.ClearField(actionplan.FieldSource, field.TypeString) + } + if value, ok := apu.mutation.Details(); ok { + _spec.SetField(actionplan.FieldDetails, field.TypeJSON, value) + } + if apu.mutation.DetailsCleared() { + _spec.ClearField(actionplan.FieldDetails, field.TypeJSON) + } + if apu.mutation.StandardCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.StandardTable, + Columns: actionplan.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = apu.schemaConfig.StandardActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apu.mutation.RemovedStandardIDs(); len(nodes) > 0 && !apu.mutation.StandardCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.StandardTable, + Columns: actionplan.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = apu.schemaConfig.StandardActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apu.mutation.StandardIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.StandardTable, + Columns: actionplan.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = apu.schemaConfig.StandardActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if apu.mutation.RiskCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.RiskTable, + Columns: actionplan.RiskPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = apu.schemaConfig.RiskActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apu.mutation.RemovedRiskIDs(); len(nodes) > 0 && !apu.mutation.RiskCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.RiskTable, + Columns: actionplan.RiskPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = apu.schemaConfig.RiskActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apu.mutation.RiskIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.RiskTable, + Columns: actionplan.RiskPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = apu.schemaConfig.RiskActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if apu.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.ControlTable, + Columns: actionplan.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = apu.schemaConfig.ControlActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apu.mutation.RemovedControlIDs(); len(nodes) > 0 && !apu.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.ControlTable, + Columns: actionplan.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = apu.schemaConfig.ControlActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apu.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.ControlTable, + Columns: actionplan.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = apu.schemaConfig.ControlActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if apu.mutation.UserCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.UserTable, + Columns: actionplan.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = apu.schemaConfig.UserActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apu.mutation.RemovedUserIDs(); len(nodes) > 0 && !apu.mutation.UserCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.UserTable, + Columns: actionplan.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = apu.schemaConfig.UserActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apu.mutation.UserIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.UserTable, + Columns: actionplan.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = apu.schemaConfig.UserActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = apu.schemaConfig.ActionPlan + ctx = internal.NewSchemaConfigContext(ctx, apu.schemaConfig) + _spec.AddModifiers(apu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, apu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{actionplan.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + apu.mutation.done = true + return n, nil +} + +// ActionPlanUpdateOne is the builder for updating a single ActionPlan entity. +type ActionPlanUpdateOne struct { + config + fields []string + hooks []Hook + mutation *ActionPlanMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (apuo *ActionPlanUpdateOne) SetUpdatedAt(t time.Time) *ActionPlanUpdateOne { + apuo.mutation.SetUpdatedAt(t) + return apuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (apuo *ActionPlanUpdateOne) ClearUpdatedAt() *ActionPlanUpdateOne { + apuo.mutation.ClearUpdatedAt() + return apuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (apuo *ActionPlanUpdateOne) SetUpdatedBy(s string) *ActionPlanUpdateOne { + apuo.mutation.SetUpdatedBy(s) + return apuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (apuo *ActionPlanUpdateOne) SetNillableUpdatedBy(s *string) *ActionPlanUpdateOne { + if s != nil { + apuo.SetUpdatedBy(*s) + } + return apuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (apuo *ActionPlanUpdateOne) ClearUpdatedBy() *ActionPlanUpdateOne { + apuo.mutation.ClearUpdatedBy() + return apuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (apuo *ActionPlanUpdateOne) SetDeletedAt(t time.Time) *ActionPlanUpdateOne { + apuo.mutation.SetDeletedAt(t) + return apuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (apuo *ActionPlanUpdateOne) SetNillableDeletedAt(t *time.Time) *ActionPlanUpdateOne { + if t != nil { + apuo.SetDeletedAt(*t) + } + return apuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (apuo *ActionPlanUpdateOne) ClearDeletedAt() *ActionPlanUpdateOne { + apuo.mutation.ClearDeletedAt() + return apuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (apuo *ActionPlanUpdateOne) SetDeletedBy(s string) *ActionPlanUpdateOne { + apuo.mutation.SetDeletedBy(s) + return apuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (apuo *ActionPlanUpdateOne) SetNillableDeletedBy(s *string) *ActionPlanUpdateOne { + if s != nil { + apuo.SetDeletedBy(*s) + } + return apuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (apuo *ActionPlanUpdateOne) ClearDeletedBy() *ActionPlanUpdateOne { + apuo.mutation.ClearDeletedBy() + return apuo +} + +// SetTags sets the "tags" field. +func (apuo *ActionPlanUpdateOne) SetTags(s []string) *ActionPlanUpdateOne { + apuo.mutation.SetTags(s) + return apuo +} + +// AppendTags appends s to the "tags" field. +func (apuo *ActionPlanUpdateOne) AppendTags(s []string) *ActionPlanUpdateOne { + apuo.mutation.AppendTags(s) + return apuo +} + +// ClearTags clears the value of the "tags" field. +func (apuo *ActionPlanUpdateOne) ClearTags() *ActionPlanUpdateOne { + apuo.mutation.ClearTags() + return apuo +} + +// SetName sets the "name" field. +func (apuo *ActionPlanUpdateOne) SetName(s string) *ActionPlanUpdateOne { + apuo.mutation.SetName(s) + return apuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (apuo *ActionPlanUpdateOne) SetNillableName(s *string) *ActionPlanUpdateOne { + if s != nil { + apuo.SetName(*s) + } + return apuo +} + +// SetDescription sets the "description" field. +func (apuo *ActionPlanUpdateOne) SetDescription(s string) *ActionPlanUpdateOne { + apuo.mutation.SetDescription(s) + return apuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (apuo *ActionPlanUpdateOne) SetNillableDescription(s *string) *ActionPlanUpdateOne { + if s != nil { + apuo.SetDescription(*s) + } + return apuo +} + +// ClearDescription clears the value of the "description" field. +func (apuo *ActionPlanUpdateOne) ClearDescription() *ActionPlanUpdateOne { + apuo.mutation.ClearDescription() + return apuo +} + +// SetStatus sets the "status" field. +func (apuo *ActionPlanUpdateOne) SetStatus(s string) *ActionPlanUpdateOne { + apuo.mutation.SetStatus(s) + return apuo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (apuo *ActionPlanUpdateOne) SetNillableStatus(s *string) *ActionPlanUpdateOne { + if s != nil { + apuo.SetStatus(*s) + } + return apuo +} + +// ClearStatus clears the value of the "status" field. +func (apuo *ActionPlanUpdateOne) ClearStatus() *ActionPlanUpdateOne { + apuo.mutation.ClearStatus() + return apuo +} + +// SetDueDate sets the "due_date" field. +func (apuo *ActionPlanUpdateOne) SetDueDate(t time.Time) *ActionPlanUpdateOne { + apuo.mutation.SetDueDate(t) + return apuo +} + +// SetNillableDueDate sets the "due_date" field if the given value is not nil. +func (apuo *ActionPlanUpdateOne) SetNillableDueDate(t *time.Time) *ActionPlanUpdateOne { + if t != nil { + apuo.SetDueDate(*t) + } + return apuo +} + +// ClearDueDate clears the value of the "due_date" field. +func (apuo *ActionPlanUpdateOne) ClearDueDate() *ActionPlanUpdateOne { + apuo.mutation.ClearDueDate() + return apuo +} + +// SetPriority sets the "priority" field. +func (apuo *ActionPlanUpdateOne) SetPriority(s string) *ActionPlanUpdateOne { + apuo.mutation.SetPriority(s) + return apuo +} + +// SetNillablePriority sets the "priority" field if the given value is not nil. +func (apuo *ActionPlanUpdateOne) SetNillablePriority(s *string) *ActionPlanUpdateOne { + if s != nil { + apuo.SetPriority(*s) + } + return apuo +} + +// ClearPriority clears the value of the "priority" field. +func (apuo *ActionPlanUpdateOne) ClearPriority() *ActionPlanUpdateOne { + apuo.mutation.ClearPriority() + return apuo +} + +// SetSource sets the "source" field. +func (apuo *ActionPlanUpdateOne) SetSource(s string) *ActionPlanUpdateOne { + apuo.mutation.SetSource(s) + return apuo +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (apuo *ActionPlanUpdateOne) SetNillableSource(s *string) *ActionPlanUpdateOne { + if s != nil { + apuo.SetSource(*s) + } + return apuo +} + +// ClearSource clears the value of the "source" field. +func (apuo *ActionPlanUpdateOne) ClearSource() *ActionPlanUpdateOne { + apuo.mutation.ClearSource() + return apuo +} + +// SetDetails sets the "details" field. +func (apuo *ActionPlanUpdateOne) SetDetails(m map[string]interface{}) *ActionPlanUpdateOne { + apuo.mutation.SetDetails(m) + return apuo +} + +// ClearDetails clears the value of the "details" field. +func (apuo *ActionPlanUpdateOne) ClearDetails() *ActionPlanUpdateOne { + apuo.mutation.ClearDetails() + return apuo +} + +// AddStandardIDs adds the "standard" edge to the Standard entity by IDs. +func (apuo *ActionPlanUpdateOne) AddStandardIDs(ids ...string) *ActionPlanUpdateOne { + apuo.mutation.AddStandardIDs(ids...) + return apuo +} + +// AddStandard adds the "standard" edges to the Standard entity. +func (apuo *ActionPlanUpdateOne) AddStandard(s ...*Standard) *ActionPlanUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return apuo.AddStandardIDs(ids...) +} + +// AddRiskIDs adds the "risk" edge to the Risk entity by IDs. +func (apuo *ActionPlanUpdateOne) AddRiskIDs(ids ...string) *ActionPlanUpdateOne { + apuo.mutation.AddRiskIDs(ids...) + return apuo +} + +// AddRisk adds the "risk" edges to the Risk entity. +func (apuo *ActionPlanUpdateOne) AddRisk(r ...*Risk) *ActionPlanUpdateOne { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return apuo.AddRiskIDs(ids...) +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (apuo *ActionPlanUpdateOne) AddControlIDs(ids ...string) *ActionPlanUpdateOne { + apuo.mutation.AddControlIDs(ids...) + return apuo +} + +// AddControl adds the "control" edges to the Control entity. +func (apuo *ActionPlanUpdateOne) AddControl(c ...*Control) *ActionPlanUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return apuo.AddControlIDs(ids...) +} + +// AddUserIDs adds the "user" edge to the User entity by IDs. +func (apuo *ActionPlanUpdateOne) AddUserIDs(ids ...string) *ActionPlanUpdateOne { + apuo.mutation.AddUserIDs(ids...) + return apuo +} + +// AddUser adds the "user" edges to the User entity. +func (apuo *ActionPlanUpdateOne) AddUser(u ...*User) *ActionPlanUpdateOne { + ids := make([]string, len(u)) + for i := range u { + ids[i] = u[i].ID + } + return apuo.AddUserIDs(ids...) +} + +// Mutation returns the ActionPlanMutation object of the builder. +func (apuo *ActionPlanUpdateOne) Mutation() *ActionPlanMutation { + return apuo.mutation +} + +// ClearStandard clears all "standard" edges to the Standard entity. +func (apuo *ActionPlanUpdateOne) ClearStandard() *ActionPlanUpdateOne { + apuo.mutation.ClearStandard() + return apuo +} + +// RemoveStandardIDs removes the "standard" edge to Standard entities by IDs. +func (apuo *ActionPlanUpdateOne) RemoveStandardIDs(ids ...string) *ActionPlanUpdateOne { + apuo.mutation.RemoveStandardIDs(ids...) + return apuo +} + +// RemoveStandard removes "standard" edges to Standard entities. +func (apuo *ActionPlanUpdateOne) RemoveStandard(s ...*Standard) *ActionPlanUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return apuo.RemoveStandardIDs(ids...) +} + +// ClearRisk clears all "risk" edges to the Risk entity. +func (apuo *ActionPlanUpdateOne) ClearRisk() *ActionPlanUpdateOne { + apuo.mutation.ClearRisk() + return apuo +} + +// RemoveRiskIDs removes the "risk" edge to Risk entities by IDs. +func (apuo *ActionPlanUpdateOne) RemoveRiskIDs(ids ...string) *ActionPlanUpdateOne { + apuo.mutation.RemoveRiskIDs(ids...) + return apuo +} + +// RemoveRisk removes "risk" edges to Risk entities. +func (apuo *ActionPlanUpdateOne) RemoveRisk(r ...*Risk) *ActionPlanUpdateOne { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return apuo.RemoveRiskIDs(ids...) +} + +// ClearControl clears all "control" edges to the Control entity. +func (apuo *ActionPlanUpdateOne) ClearControl() *ActionPlanUpdateOne { + apuo.mutation.ClearControl() + return apuo +} + +// RemoveControlIDs removes the "control" edge to Control entities by IDs. +func (apuo *ActionPlanUpdateOne) RemoveControlIDs(ids ...string) *ActionPlanUpdateOne { + apuo.mutation.RemoveControlIDs(ids...) + return apuo +} + +// RemoveControl removes "control" edges to Control entities. +func (apuo *ActionPlanUpdateOne) RemoveControl(c ...*Control) *ActionPlanUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return apuo.RemoveControlIDs(ids...) +} + +// ClearUser clears all "user" edges to the User entity. +func (apuo *ActionPlanUpdateOne) ClearUser() *ActionPlanUpdateOne { + apuo.mutation.ClearUser() + return apuo +} + +// RemoveUserIDs removes the "user" edge to User entities by IDs. +func (apuo *ActionPlanUpdateOne) RemoveUserIDs(ids ...string) *ActionPlanUpdateOne { + apuo.mutation.RemoveUserIDs(ids...) + return apuo +} + +// RemoveUser removes "user" edges to User entities. +func (apuo *ActionPlanUpdateOne) RemoveUser(u ...*User) *ActionPlanUpdateOne { + ids := make([]string, len(u)) + for i := range u { + ids[i] = u[i].ID + } + return apuo.RemoveUserIDs(ids...) +} + +// Where appends a list predicates to the ActionPlanUpdate builder. +func (apuo *ActionPlanUpdateOne) Where(ps ...predicate.ActionPlan) *ActionPlanUpdateOne { + apuo.mutation.Where(ps...) + return apuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (apuo *ActionPlanUpdateOne) Select(field string, fields ...string) *ActionPlanUpdateOne { + apuo.fields = append([]string{field}, fields...) + return apuo +} + +// Save executes the query and returns the updated ActionPlan entity. +func (apuo *ActionPlanUpdateOne) Save(ctx context.Context) (*ActionPlan, error) { + if err := apuo.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, apuo.sqlSave, apuo.mutation, apuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (apuo *ActionPlanUpdateOne) SaveX(ctx context.Context) *ActionPlan { + node, err := apuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (apuo *ActionPlanUpdateOne) Exec(ctx context.Context) error { + _, err := apuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (apuo *ActionPlanUpdateOne) ExecX(ctx context.Context) { + if err := apuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (apuo *ActionPlanUpdateOne) defaults() error { + if _, ok := apuo.mutation.UpdatedAt(); !ok && !apuo.mutation.UpdatedAtCleared() { + if actionplan.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized actionplan.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := actionplan.UpdateDefaultUpdatedAt() + apuo.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (apuo *ActionPlanUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ActionPlanUpdateOne { + apuo.modifiers = append(apuo.modifiers, modifiers...) + return apuo +} + +func (apuo *ActionPlanUpdateOne) sqlSave(ctx context.Context) (_node *ActionPlan, err error) { + _spec := sqlgraph.NewUpdateSpec(actionplan.Table, actionplan.Columns, sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString)) + id, ok := apuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "ActionPlan.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := apuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, actionplan.FieldID) + for _, f := range fields { + if !actionplan.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != actionplan.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := apuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if apuo.mutation.CreatedAtCleared() { + _spec.ClearField(actionplan.FieldCreatedAt, field.TypeTime) + } + if value, ok := apuo.mutation.UpdatedAt(); ok { + _spec.SetField(actionplan.FieldUpdatedAt, field.TypeTime, value) + } + if apuo.mutation.UpdatedAtCleared() { + _spec.ClearField(actionplan.FieldUpdatedAt, field.TypeTime) + } + if apuo.mutation.CreatedByCleared() { + _spec.ClearField(actionplan.FieldCreatedBy, field.TypeString) + } + if value, ok := apuo.mutation.UpdatedBy(); ok { + _spec.SetField(actionplan.FieldUpdatedBy, field.TypeString, value) + } + if apuo.mutation.UpdatedByCleared() { + _spec.ClearField(actionplan.FieldUpdatedBy, field.TypeString) + } + if value, ok := apuo.mutation.DeletedAt(); ok { + _spec.SetField(actionplan.FieldDeletedAt, field.TypeTime, value) + } + if apuo.mutation.DeletedAtCleared() { + _spec.ClearField(actionplan.FieldDeletedAt, field.TypeTime) + } + if value, ok := apuo.mutation.DeletedBy(); ok { + _spec.SetField(actionplan.FieldDeletedBy, field.TypeString, value) + } + if apuo.mutation.DeletedByCleared() { + _spec.ClearField(actionplan.FieldDeletedBy, field.TypeString) + } + if value, ok := apuo.mutation.Tags(); ok { + _spec.SetField(actionplan.FieldTags, field.TypeJSON, value) + } + if value, ok := apuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, actionplan.FieldTags, value) + }) + } + if apuo.mutation.TagsCleared() { + _spec.ClearField(actionplan.FieldTags, field.TypeJSON) + } + if value, ok := apuo.mutation.Name(); ok { + _spec.SetField(actionplan.FieldName, field.TypeString, value) + } + if value, ok := apuo.mutation.Description(); ok { + _spec.SetField(actionplan.FieldDescription, field.TypeString, value) + } + if apuo.mutation.DescriptionCleared() { + _spec.ClearField(actionplan.FieldDescription, field.TypeString) + } + if value, ok := apuo.mutation.Status(); ok { + _spec.SetField(actionplan.FieldStatus, field.TypeString, value) + } + if apuo.mutation.StatusCleared() { + _spec.ClearField(actionplan.FieldStatus, field.TypeString) + } + if value, ok := apuo.mutation.DueDate(); ok { + _spec.SetField(actionplan.FieldDueDate, field.TypeTime, value) + } + if apuo.mutation.DueDateCleared() { + _spec.ClearField(actionplan.FieldDueDate, field.TypeTime) + } + if value, ok := apuo.mutation.Priority(); ok { + _spec.SetField(actionplan.FieldPriority, field.TypeString, value) + } + if apuo.mutation.PriorityCleared() { + _spec.ClearField(actionplan.FieldPriority, field.TypeString) + } + if value, ok := apuo.mutation.Source(); ok { + _spec.SetField(actionplan.FieldSource, field.TypeString, value) + } + if apuo.mutation.SourceCleared() { + _spec.ClearField(actionplan.FieldSource, field.TypeString) + } + if value, ok := apuo.mutation.Details(); ok { + _spec.SetField(actionplan.FieldDetails, field.TypeJSON, value) + } + if apuo.mutation.DetailsCleared() { + _spec.ClearField(actionplan.FieldDetails, field.TypeJSON) + } + if apuo.mutation.StandardCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.StandardTable, + Columns: actionplan.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = apuo.schemaConfig.StandardActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apuo.mutation.RemovedStandardIDs(); len(nodes) > 0 && !apuo.mutation.StandardCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.StandardTable, + Columns: actionplan.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = apuo.schemaConfig.StandardActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apuo.mutation.StandardIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.StandardTable, + Columns: actionplan.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = apuo.schemaConfig.StandardActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if apuo.mutation.RiskCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.RiskTable, + Columns: actionplan.RiskPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = apuo.schemaConfig.RiskActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apuo.mutation.RemovedRiskIDs(); len(nodes) > 0 && !apuo.mutation.RiskCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.RiskTable, + Columns: actionplan.RiskPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = apuo.schemaConfig.RiskActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apuo.mutation.RiskIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.RiskTable, + Columns: actionplan.RiskPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = apuo.schemaConfig.RiskActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if apuo.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.ControlTable, + Columns: actionplan.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = apuo.schemaConfig.ControlActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apuo.mutation.RemovedControlIDs(); len(nodes) > 0 && !apuo.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.ControlTable, + Columns: actionplan.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = apuo.schemaConfig.ControlActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apuo.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.ControlTable, + Columns: actionplan.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = apuo.schemaConfig.ControlActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if apuo.mutation.UserCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.UserTable, + Columns: actionplan.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = apuo.schemaConfig.UserActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apuo.mutation.RemovedUserIDs(); len(nodes) > 0 && !apuo.mutation.UserCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.UserTable, + Columns: actionplan.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = apuo.schemaConfig.UserActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := apuo.mutation.UserIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.UserTable, + Columns: actionplan.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = apuo.schemaConfig.UserActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = apuo.schemaConfig.ActionPlan + ctx = internal.NewSchemaConfigContext(ctx, apuo.schemaConfig) + _spec.AddModifiers(apuo.modifiers...) + _node = &ActionPlan{config: apuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, apuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{actionplan.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + apuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/actionplanhistory.go b/internal/ent/generated/actionplanhistory.go new file mode 100644 index 00000000..12c0164f --- /dev/null +++ b/internal/ent/generated/actionplanhistory.go @@ -0,0 +1,301 @@ +// 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/internal/ent/generated/actionplanhistory" + "github.com/theopenlane/entx/history" +) + +// ActionPlanHistory is the model entity for the ActionPlanHistory schema. +type ActionPlanHistory 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the action plan + Name string `json:"name,omitempty"` + // description of the action plan + Description string `json:"description,omitempty"` + // status of the action plan + Status string `json:"status,omitempty"` + // due date of the action plan + DueDate time.Time `json:"due_date,omitempty"` + // priority of the action plan + Priority string `json:"priority,omitempty"` + // source of the action plan + Source string `json:"source,omitempty"` + // json data including details of the action plan + Details map[string]interface{} `json:"details,omitempty"` + selectValues sql.SelectValues +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*ActionPlanHistory) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case actionplanhistory.FieldTags, actionplanhistory.FieldDetails: + values[i] = new([]byte) + case actionplanhistory.FieldOperation: + values[i] = new(history.OpType) + case actionplanhistory.FieldID, actionplanhistory.FieldRef, actionplanhistory.FieldCreatedBy, actionplanhistory.FieldUpdatedBy, actionplanhistory.FieldDeletedBy, actionplanhistory.FieldMappingID, actionplanhistory.FieldName, actionplanhistory.FieldDescription, actionplanhistory.FieldStatus, actionplanhistory.FieldPriority, actionplanhistory.FieldSource: + values[i] = new(sql.NullString) + case actionplanhistory.FieldHistoryTime, actionplanhistory.FieldCreatedAt, actionplanhistory.FieldUpdatedAt, actionplanhistory.FieldDeletedAt, actionplanhistory.FieldDueDate: + 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 ActionPlanHistory fields. +func (aph *ActionPlanHistory) 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 actionplanhistory.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + aph.ID = value.String + } + case actionplanhistory.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 { + aph.HistoryTime = value.Time + } + case actionplanhistory.FieldRef: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field ref", values[i]) + } else if value.Valid { + aph.Ref = value.String + } + case actionplanhistory.FieldOperation: + if value, ok := values[i].(*history.OpType); !ok { + return fmt.Errorf("unexpected type %T for field operation", values[i]) + } else if value != nil { + aph.Operation = *value + } + case actionplanhistory.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 { + aph.CreatedAt = value.Time + } + case actionplanhistory.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 { + aph.UpdatedAt = value.Time + } + case actionplanhistory.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 { + aph.CreatedBy = value.String + } + case actionplanhistory.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 { + aph.UpdatedBy = value.String + } + case actionplanhistory.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 { + aph.DeletedAt = value.Time + } + case actionplanhistory.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 { + aph.DeletedBy = value.String + } + case actionplanhistory.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + aph.MappingID = value.String + } + case actionplanhistory.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, &aph.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case actionplanhistory.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + aph.Name = value.String + } + case actionplanhistory.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + aph.Description = value.String + } + case actionplanhistory.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + aph.Status = value.String + } + case actionplanhistory.FieldDueDate: + if value, ok := values[i].(*sql.NullTime); !ok { + return fmt.Errorf("unexpected type %T for field due_date", values[i]) + } else if value.Valid { + aph.DueDate = value.Time + } + case actionplanhistory.FieldPriority: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field priority", values[i]) + } else if value.Valid { + aph.Priority = value.String + } + case actionplanhistory.FieldSource: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field source", values[i]) + } else if value.Valid { + aph.Source = value.String + } + case actionplanhistory.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &aph.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + aph.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the ActionPlanHistory. +// This includes values selected through modifiers, order, etc. +func (aph *ActionPlanHistory) Value(name string) (ent.Value, error) { + return aph.selectValues.Get(name) +} + +// Update returns a builder for updating this ActionPlanHistory. +// Note that you need to call ActionPlanHistory.Unwrap() before calling this method if this ActionPlanHistory +// was returned from a transaction, and the transaction was committed or rolled back. +func (aph *ActionPlanHistory) Update() *ActionPlanHistoryUpdateOne { + return NewActionPlanHistoryClient(aph.config).UpdateOne(aph) +} + +// Unwrap unwraps the ActionPlanHistory 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 (aph *ActionPlanHistory) Unwrap() *ActionPlanHistory { + _tx, ok := aph.config.driver.(*txDriver) + if !ok { + panic("generated: ActionPlanHistory is not a transactional entity") + } + aph.config.driver = _tx.drv + return aph +} + +// String implements the fmt.Stringer. +func (aph *ActionPlanHistory) String() string { + var builder strings.Builder + builder.WriteString("ActionPlanHistory(") + builder.WriteString(fmt.Sprintf("id=%v, ", aph.ID)) + builder.WriteString("history_time=") + builder.WriteString(aph.HistoryTime.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("ref=") + builder.WriteString(aph.Ref) + builder.WriteString(", ") + builder.WriteString("operation=") + builder.WriteString(fmt.Sprintf("%v", aph.Operation)) + builder.WriteString(", ") + builder.WriteString("created_at=") + builder.WriteString(aph.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(aph.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(aph.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(aph.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(aph.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(aph.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(aph.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", aph.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(aph.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(aph.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(aph.Status) + builder.WriteString(", ") + builder.WriteString("due_date=") + builder.WriteString(aph.DueDate.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("priority=") + builder.WriteString(aph.Priority) + builder.WriteString(", ") + builder.WriteString("source=") + builder.WriteString(aph.Source) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", aph.Details)) + builder.WriteByte(')') + return builder.String() +} + +// ActionPlanHistories is a parsable slice of ActionPlanHistory. +type ActionPlanHistories []*ActionPlanHistory diff --git a/internal/ent/generated/actionplanhistory/actionplanhistory.go b/internal/ent/generated/actionplanhistory/actionplanhistory.go new file mode 100644 index 00000000..2bf2b61f --- /dev/null +++ b/internal/ent/generated/actionplanhistory/actionplanhistory.go @@ -0,0 +1,212 @@ +// Code generated by ent, DO NOT EDIT. + +package actionplanhistory + +import ( + "fmt" + "time" + + "entgo.io/ent/dialect/sql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/entx/history" +) + +const ( + // Label holds the string label denoting the actionplanhistory type in the database. + Label = "action_plan_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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldDueDate holds the string denoting the due_date field in the database. + FieldDueDate = "due_date" + // FieldPriority holds the string denoting the priority field in the database. + FieldPriority = "priority" + // FieldSource holds the string denoting the source field in the database. + FieldSource = "source" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // Table holds the table name of the actionplanhistory in the database. + Table = "action_plan_history" +) + +// Columns holds all SQL columns for actionplanhistory fields. +var Columns = []string{ + FieldID, + FieldHistoryTime, + FieldRef, + FieldOperation, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldDueDate, + FieldPriority, + FieldSource, + FieldDetails, +} + +// 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 +} + +var ( + // 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 + // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. + UpdateDefaultUpdatedAt func() time.Time + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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("actionplanhistory: invalid enum value for operation field: %q", o) + } +} + +// OrderOption defines the ordering options for the ActionPlanHistory 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByDueDate orders the results by the due_date field. +func ByDueDate(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDueDate, opts...).ToFunc() +} + +// ByPriority orders the results by the priority field. +func ByPriority(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldPriority, opts...).ToFunc() +} + +// BySource orders the results by the source field. +func BySource(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSource, 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/generated/actionplanhistory/where.go b/internal/ent/generated/actionplanhistory/where.go new file mode 100644 index 00000000..ac148d98 --- /dev/null +++ b/internal/ent/generated/actionplanhistory/where.go @@ -0,0 +1,1166 @@ +// Code generated by ent, DO NOT EDIT. + +package actionplanhistory + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/entx/history" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(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.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// Ref applies equality check predicate on the "ref" field. It's identical to RefEQ. +func Ref(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(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.ActionPlanHistory { + return predicate.ActionPlanHistory(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.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldStatus, v)) +} + +// DueDate applies equality check predicate on the "due_date" field. It's identical to DueDateEQ. +func DueDate(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldDueDate, v)) +} + +// Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ. +func Priority(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldPriority, v)) +} + +// Source applies equality check predicate on the "source" field. It's identical to SourceEQ. +func Source(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldSource, v)) +} + +// HistoryTimeEQ applies the EQ predicate on the "history_time" field. +func HistoryTimeEQ(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// HistoryTimeNEQ applies the NEQ predicate on the "history_time" field. +func HistoryTimeNEQ(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldHistoryTime, v)) +} + +// HistoryTimeIn applies the In predicate on the "history_time" field. +func HistoryTimeIn(vs ...time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeNotIn applies the NotIn predicate on the "history_time" field. +func HistoryTimeNotIn(vs ...time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeGT applies the GT predicate on the "history_time" field. +func HistoryTimeGT(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldHistoryTime, v)) +} + +// HistoryTimeGTE applies the GTE predicate on the "history_time" field. +func HistoryTimeGTE(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldHistoryTime, v)) +} + +// HistoryTimeLT applies the LT predicate on the "history_time" field. +func HistoryTimeLT(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldHistoryTime, v)) +} + +// HistoryTimeLTE applies the LTE predicate on the "history_time" field. +func HistoryTimeLTE(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldHistoryTime, v)) +} + +// RefEQ applies the EQ predicate on the "ref" field. +func RefEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldRef, v)) +} + +// RefNEQ applies the NEQ predicate on the "ref" field. +func RefNEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldRef, v)) +} + +// RefIn applies the In predicate on the "ref" field. +func RefIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldRef, vs...)) +} + +// RefNotIn applies the NotIn predicate on the "ref" field. +func RefNotIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldRef, vs...)) +} + +// RefGT applies the GT predicate on the "ref" field. +func RefGT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldRef, v)) +} + +// RefGTE applies the GTE predicate on the "ref" field. +func RefGTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldRef, v)) +} + +// RefLT applies the LT predicate on the "ref" field. +func RefLT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldRef, v)) +} + +// RefLTE applies the LTE predicate on the "ref" field. +func RefLTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldRef, v)) +} + +// RefContains applies the Contains predicate on the "ref" field. +func RefContains(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContains(FieldRef, v)) +} + +// RefHasPrefix applies the HasPrefix predicate on the "ref" field. +func RefHasPrefix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasPrefix(FieldRef, v)) +} + +// RefHasSuffix applies the HasSuffix predicate on the "ref" field. +func RefHasSuffix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasSuffix(FieldRef, v)) +} + +// RefIsNil applies the IsNil predicate on the "ref" field. +func RefIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldRef)) +} + +// RefNotNil applies the NotNil predicate on the "ref" field. +func RefNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldRef)) +} + +// RefEqualFold applies the EqualFold predicate on the "ref" field. +func RefEqualFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEqualFold(FieldRef, v)) +} + +// RefContainsFold applies the ContainsFold predicate on the "ref" field. +func RefContainsFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContainsFold(FieldRef, v)) +} + +// OperationEQ applies the EQ predicate on the "operation" field. +func OperationEQ(v history.OpType) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldOperation, v)) +} + +// OperationNEQ applies the NEQ predicate on the "operation" field. +func OperationNEQ(v history.OpType) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldOperation, v)) +} + +// OperationIn applies the In predicate on the "operation" field. +func OperationIn(vs ...history.OpType) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldOperation, vs...)) +} + +// OperationNotIn applies the NotIn predicate on the "operation" field. +func OperationNotIn(vs ...history.OpType) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldOperation, vs...)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContainsFold(FieldStatus, v)) +} + +// DueDateEQ applies the EQ predicate on the "due_date" field. +func DueDateEQ(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldDueDate, v)) +} + +// DueDateNEQ applies the NEQ predicate on the "due_date" field. +func DueDateNEQ(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldDueDate, v)) +} + +// DueDateIn applies the In predicate on the "due_date" field. +func DueDateIn(vs ...time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldDueDate, vs...)) +} + +// DueDateNotIn applies the NotIn predicate on the "due_date" field. +func DueDateNotIn(vs ...time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldDueDate, vs...)) +} + +// DueDateGT applies the GT predicate on the "due_date" field. +func DueDateGT(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldDueDate, v)) +} + +// DueDateGTE applies the GTE predicate on the "due_date" field. +func DueDateGTE(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldDueDate, v)) +} + +// DueDateLT applies the LT predicate on the "due_date" field. +func DueDateLT(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldDueDate, v)) +} + +// DueDateLTE applies the LTE predicate on the "due_date" field. +func DueDateLTE(v time.Time) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldDueDate, v)) +} + +// DueDateIsNil applies the IsNil predicate on the "due_date" field. +func DueDateIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldDueDate)) +} + +// DueDateNotNil applies the NotNil predicate on the "due_date" field. +func DueDateNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldDueDate)) +} + +// PriorityEQ applies the EQ predicate on the "priority" field. +func PriorityEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldPriority, v)) +} + +// PriorityNEQ applies the NEQ predicate on the "priority" field. +func PriorityNEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldPriority, v)) +} + +// PriorityIn applies the In predicate on the "priority" field. +func PriorityIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldPriority, vs...)) +} + +// PriorityNotIn applies the NotIn predicate on the "priority" field. +func PriorityNotIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldPriority, vs...)) +} + +// PriorityGT applies the GT predicate on the "priority" field. +func PriorityGT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldPriority, v)) +} + +// PriorityGTE applies the GTE predicate on the "priority" field. +func PriorityGTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldPriority, v)) +} + +// PriorityLT applies the LT predicate on the "priority" field. +func PriorityLT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldPriority, v)) +} + +// PriorityLTE applies the LTE predicate on the "priority" field. +func PriorityLTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldPriority, v)) +} + +// PriorityContains applies the Contains predicate on the "priority" field. +func PriorityContains(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContains(FieldPriority, v)) +} + +// PriorityHasPrefix applies the HasPrefix predicate on the "priority" field. +func PriorityHasPrefix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasPrefix(FieldPriority, v)) +} + +// PriorityHasSuffix applies the HasSuffix predicate on the "priority" field. +func PriorityHasSuffix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasSuffix(FieldPriority, v)) +} + +// PriorityIsNil applies the IsNil predicate on the "priority" field. +func PriorityIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldPriority)) +} + +// PriorityNotNil applies the NotNil predicate on the "priority" field. +func PriorityNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldPriority)) +} + +// PriorityEqualFold applies the EqualFold predicate on the "priority" field. +func PriorityEqualFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEqualFold(FieldPriority, v)) +} + +// PriorityContainsFold applies the ContainsFold predicate on the "priority" field. +func PriorityContainsFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContainsFold(FieldPriority, v)) +} + +// SourceEQ applies the EQ predicate on the "source" field. +func SourceEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEQ(FieldSource, v)) +} + +// SourceNEQ applies the NEQ predicate on the "source" field. +func SourceNEQ(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNEQ(FieldSource, v)) +} + +// SourceIn applies the In predicate on the "source" field. +func SourceIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIn(FieldSource, vs...)) +} + +// SourceNotIn applies the NotIn predicate on the "source" field. +func SourceNotIn(vs ...string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotIn(FieldSource, vs...)) +} + +// SourceGT applies the GT predicate on the "source" field. +func SourceGT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGT(FieldSource, v)) +} + +// SourceGTE applies the GTE predicate on the "source" field. +func SourceGTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldGTE(FieldSource, v)) +} + +// SourceLT applies the LT predicate on the "source" field. +func SourceLT(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLT(FieldSource, v)) +} + +// SourceLTE applies the LTE predicate on the "source" field. +func SourceLTE(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldLTE(FieldSource, v)) +} + +// SourceContains applies the Contains predicate on the "source" field. +func SourceContains(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContains(FieldSource, v)) +} + +// SourceHasPrefix applies the HasPrefix predicate on the "source" field. +func SourceHasPrefix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasPrefix(FieldSource, v)) +} + +// SourceHasSuffix applies the HasSuffix predicate on the "source" field. +func SourceHasSuffix(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldHasSuffix(FieldSource, v)) +} + +// SourceIsNil applies the IsNil predicate on the "source" field. +func SourceIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldSource)) +} + +// SourceNotNil applies the NotNil predicate on the "source" field. +func SourceNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldSource)) +} + +// SourceEqualFold applies the EqualFold predicate on the "source" field. +func SourceEqualFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldEqualFold(FieldSource, v)) +} + +// SourceContainsFold applies the ContainsFold predicate on the "source" field. +func SourceContainsFold(v string) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldContainsFold(FieldSource, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.FieldNotNull(FieldDetails)) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.ActionPlanHistory) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.ActionPlanHistory) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.ActionPlanHistory) predicate.ActionPlanHistory { + return predicate.ActionPlanHistory(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/actionplanhistory_create.go b/internal/ent/generated/actionplanhistory_create.go new file mode 100644 index 00000000..fbd0968c --- /dev/null +++ b/internal/ent/generated/actionplanhistory_create.go @@ -0,0 +1,531 @@ +// 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/internal/ent/generated/actionplanhistory" + "github.com/theopenlane/entx/history" +) + +// ActionPlanHistoryCreate is the builder for creating a ActionPlanHistory entity. +type ActionPlanHistoryCreate struct { + config + mutation *ActionPlanHistoryMutation + hooks []Hook +} + +// SetHistoryTime sets the "history_time" field. +func (aphc *ActionPlanHistoryCreate) SetHistoryTime(t time.Time) *ActionPlanHistoryCreate { + aphc.mutation.SetHistoryTime(t) + return aphc +} + +// SetNillableHistoryTime sets the "history_time" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableHistoryTime(t *time.Time) *ActionPlanHistoryCreate { + if t != nil { + aphc.SetHistoryTime(*t) + } + return aphc +} + +// SetRef sets the "ref" field. +func (aphc *ActionPlanHistoryCreate) SetRef(s string) *ActionPlanHistoryCreate { + aphc.mutation.SetRef(s) + return aphc +} + +// SetNillableRef sets the "ref" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableRef(s *string) *ActionPlanHistoryCreate { + if s != nil { + aphc.SetRef(*s) + } + return aphc +} + +// SetOperation sets the "operation" field. +func (aphc *ActionPlanHistoryCreate) SetOperation(ht history.OpType) *ActionPlanHistoryCreate { + aphc.mutation.SetOperation(ht) + return aphc +} + +// SetCreatedAt sets the "created_at" field. +func (aphc *ActionPlanHistoryCreate) SetCreatedAt(t time.Time) *ActionPlanHistoryCreate { + aphc.mutation.SetCreatedAt(t) + return aphc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableCreatedAt(t *time.Time) *ActionPlanHistoryCreate { + if t != nil { + aphc.SetCreatedAt(*t) + } + return aphc +} + +// SetUpdatedAt sets the "updated_at" field. +func (aphc *ActionPlanHistoryCreate) SetUpdatedAt(t time.Time) *ActionPlanHistoryCreate { + aphc.mutation.SetUpdatedAt(t) + return aphc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableUpdatedAt(t *time.Time) *ActionPlanHistoryCreate { + if t != nil { + aphc.SetUpdatedAt(*t) + } + return aphc +} + +// SetCreatedBy sets the "created_by" field. +func (aphc *ActionPlanHistoryCreate) SetCreatedBy(s string) *ActionPlanHistoryCreate { + aphc.mutation.SetCreatedBy(s) + return aphc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableCreatedBy(s *string) *ActionPlanHistoryCreate { + if s != nil { + aphc.SetCreatedBy(*s) + } + return aphc +} + +// SetUpdatedBy sets the "updated_by" field. +func (aphc *ActionPlanHistoryCreate) SetUpdatedBy(s string) *ActionPlanHistoryCreate { + aphc.mutation.SetUpdatedBy(s) + return aphc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableUpdatedBy(s *string) *ActionPlanHistoryCreate { + if s != nil { + aphc.SetUpdatedBy(*s) + } + return aphc +} + +// SetDeletedAt sets the "deleted_at" field. +func (aphc *ActionPlanHistoryCreate) SetDeletedAt(t time.Time) *ActionPlanHistoryCreate { + aphc.mutation.SetDeletedAt(t) + return aphc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableDeletedAt(t *time.Time) *ActionPlanHistoryCreate { + if t != nil { + aphc.SetDeletedAt(*t) + } + return aphc +} + +// SetDeletedBy sets the "deleted_by" field. +func (aphc *ActionPlanHistoryCreate) SetDeletedBy(s string) *ActionPlanHistoryCreate { + aphc.mutation.SetDeletedBy(s) + return aphc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableDeletedBy(s *string) *ActionPlanHistoryCreate { + if s != nil { + aphc.SetDeletedBy(*s) + } + return aphc +} + +// SetMappingID sets the "mapping_id" field. +func (aphc *ActionPlanHistoryCreate) SetMappingID(s string) *ActionPlanHistoryCreate { + aphc.mutation.SetMappingID(s) + return aphc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableMappingID(s *string) *ActionPlanHistoryCreate { + if s != nil { + aphc.SetMappingID(*s) + } + return aphc +} + +// SetTags sets the "tags" field. +func (aphc *ActionPlanHistoryCreate) SetTags(s []string) *ActionPlanHistoryCreate { + aphc.mutation.SetTags(s) + return aphc +} + +// SetName sets the "name" field. +func (aphc *ActionPlanHistoryCreate) SetName(s string) *ActionPlanHistoryCreate { + aphc.mutation.SetName(s) + return aphc +} + +// SetDescription sets the "description" field. +func (aphc *ActionPlanHistoryCreate) SetDescription(s string) *ActionPlanHistoryCreate { + aphc.mutation.SetDescription(s) + return aphc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableDescription(s *string) *ActionPlanHistoryCreate { + if s != nil { + aphc.SetDescription(*s) + } + return aphc +} + +// SetStatus sets the "status" field. +func (aphc *ActionPlanHistoryCreate) SetStatus(s string) *ActionPlanHistoryCreate { + aphc.mutation.SetStatus(s) + return aphc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableStatus(s *string) *ActionPlanHistoryCreate { + if s != nil { + aphc.SetStatus(*s) + } + return aphc +} + +// SetDueDate sets the "due_date" field. +func (aphc *ActionPlanHistoryCreate) SetDueDate(t time.Time) *ActionPlanHistoryCreate { + aphc.mutation.SetDueDate(t) + return aphc +} + +// SetNillableDueDate sets the "due_date" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableDueDate(t *time.Time) *ActionPlanHistoryCreate { + if t != nil { + aphc.SetDueDate(*t) + } + return aphc +} + +// SetPriority sets the "priority" field. +func (aphc *ActionPlanHistoryCreate) SetPriority(s string) *ActionPlanHistoryCreate { + aphc.mutation.SetPriority(s) + return aphc +} + +// SetNillablePriority sets the "priority" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillablePriority(s *string) *ActionPlanHistoryCreate { + if s != nil { + aphc.SetPriority(*s) + } + return aphc +} + +// SetSource sets the "source" field. +func (aphc *ActionPlanHistoryCreate) SetSource(s string) *ActionPlanHistoryCreate { + aphc.mutation.SetSource(s) + return aphc +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableSource(s *string) *ActionPlanHistoryCreate { + if s != nil { + aphc.SetSource(*s) + } + return aphc +} + +// SetDetails sets the "details" field. +func (aphc *ActionPlanHistoryCreate) SetDetails(m map[string]interface{}) *ActionPlanHistoryCreate { + aphc.mutation.SetDetails(m) + return aphc +} + +// SetID sets the "id" field. +func (aphc *ActionPlanHistoryCreate) SetID(s string) *ActionPlanHistoryCreate { + aphc.mutation.SetID(s) + return aphc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (aphc *ActionPlanHistoryCreate) SetNillableID(s *string) *ActionPlanHistoryCreate { + if s != nil { + aphc.SetID(*s) + } + return aphc +} + +// Mutation returns the ActionPlanHistoryMutation object of the builder. +func (aphc *ActionPlanHistoryCreate) Mutation() *ActionPlanHistoryMutation { + return aphc.mutation +} + +// Save creates the ActionPlanHistory in the database. +func (aphc *ActionPlanHistoryCreate) Save(ctx context.Context) (*ActionPlanHistory, error) { + aphc.defaults() + return withHooks(ctx, aphc.sqlSave, aphc.mutation, aphc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (aphc *ActionPlanHistoryCreate) SaveX(ctx context.Context) *ActionPlanHistory { + v, err := aphc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (aphc *ActionPlanHistoryCreate) Exec(ctx context.Context) error { + _, err := aphc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (aphc *ActionPlanHistoryCreate) ExecX(ctx context.Context) { + if err := aphc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (aphc *ActionPlanHistoryCreate) defaults() { + if _, ok := aphc.mutation.HistoryTime(); !ok { + v := actionplanhistory.DefaultHistoryTime() + aphc.mutation.SetHistoryTime(v) + } + if _, ok := aphc.mutation.CreatedAt(); !ok { + v := actionplanhistory.DefaultCreatedAt() + aphc.mutation.SetCreatedAt(v) + } + if _, ok := aphc.mutation.UpdatedAt(); !ok { + v := actionplanhistory.DefaultUpdatedAt() + aphc.mutation.SetUpdatedAt(v) + } + if _, ok := aphc.mutation.MappingID(); !ok { + v := actionplanhistory.DefaultMappingID() + aphc.mutation.SetMappingID(v) + } + if _, ok := aphc.mutation.Tags(); !ok { + v := actionplanhistory.DefaultTags + aphc.mutation.SetTags(v) + } + if _, ok := aphc.mutation.ID(); !ok { + v := actionplanhistory.DefaultID() + aphc.mutation.SetID(v) + } +} + +// check runs all checks and user-defined validators on the builder. +func (aphc *ActionPlanHistoryCreate) check() error { + if _, ok := aphc.mutation.HistoryTime(); !ok { + return &ValidationError{Name: "history_time", err: errors.New(`generated: missing required field "ActionPlanHistory.history_time"`)} + } + if _, ok := aphc.mutation.Operation(); !ok { + return &ValidationError{Name: "operation", err: errors.New(`generated: missing required field "ActionPlanHistory.operation"`)} + } + if v, ok := aphc.mutation.Operation(); ok { + if err := actionplanhistory.OperationValidator(v); err != nil { + return &ValidationError{Name: "operation", err: fmt.Errorf(`generated: validator failed for field "ActionPlanHistory.operation": %w`, err)} + } + } + if _, ok := aphc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "ActionPlanHistory.mapping_id"`)} + } + if _, ok := aphc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "ActionPlanHistory.name"`)} + } + return nil +} + +func (aphc *ActionPlanHistoryCreate) sqlSave(ctx context.Context) (*ActionPlanHistory, error) { + if err := aphc.check(); err != nil { + return nil, err + } + _node, _spec := aphc.createSpec() + if err := sqlgraph.CreateNode(ctx, aphc.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 ActionPlanHistory.ID type: %T", _spec.ID.Value) + } + } + aphc.mutation.id = &_node.ID + aphc.mutation.done = true + return _node, nil +} + +func (aphc *ActionPlanHistoryCreate) createSpec() (*ActionPlanHistory, *sqlgraph.CreateSpec) { + var ( + _node = &ActionPlanHistory{config: aphc.config} + _spec = sqlgraph.NewCreateSpec(actionplanhistory.Table, sqlgraph.NewFieldSpec(actionplanhistory.FieldID, field.TypeString)) + ) + _spec.Schema = aphc.schemaConfig.ActionPlanHistory + if id, ok := aphc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := aphc.mutation.HistoryTime(); ok { + _spec.SetField(actionplanhistory.FieldHistoryTime, field.TypeTime, value) + _node.HistoryTime = value + } + if value, ok := aphc.mutation.Ref(); ok { + _spec.SetField(actionplanhistory.FieldRef, field.TypeString, value) + _node.Ref = value + } + if value, ok := aphc.mutation.Operation(); ok { + _spec.SetField(actionplanhistory.FieldOperation, field.TypeEnum, value) + _node.Operation = value + } + if value, ok := aphc.mutation.CreatedAt(); ok { + _spec.SetField(actionplanhistory.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := aphc.mutation.UpdatedAt(); ok { + _spec.SetField(actionplanhistory.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := aphc.mutation.CreatedBy(); ok { + _spec.SetField(actionplanhistory.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := aphc.mutation.UpdatedBy(); ok { + _spec.SetField(actionplanhistory.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := aphc.mutation.DeletedAt(); ok { + _spec.SetField(actionplanhistory.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := aphc.mutation.DeletedBy(); ok { + _spec.SetField(actionplanhistory.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := aphc.mutation.MappingID(); ok { + _spec.SetField(actionplanhistory.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := aphc.mutation.Tags(); ok { + _spec.SetField(actionplanhistory.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := aphc.mutation.Name(); ok { + _spec.SetField(actionplanhistory.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := aphc.mutation.Description(); ok { + _spec.SetField(actionplanhistory.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := aphc.mutation.Status(); ok { + _spec.SetField(actionplanhistory.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := aphc.mutation.DueDate(); ok { + _spec.SetField(actionplanhistory.FieldDueDate, field.TypeTime, value) + _node.DueDate = value + } + if value, ok := aphc.mutation.Priority(); ok { + _spec.SetField(actionplanhistory.FieldPriority, field.TypeString, value) + _node.Priority = value + } + if value, ok := aphc.mutation.Source(); ok { + _spec.SetField(actionplanhistory.FieldSource, field.TypeString, value) + _node.Source = value + } + if value, ok := aphc.mutation.Details(); ok { + _spec.SetField(actionplanhistory.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + return _node, _spec +} + +// ActionPlanHistoryCreateBulk is the builder for creating many ActionPlanHistory entities in bulk. +type ActionPlanHistoryCreateBulk struct { + config + err error + builders []*ActionPlanHistoryCreate +} + +// Save creates the ActionPlanHistory entities in the database. +func (aphcb *ActionPlanHistoryCreateBulk) Save(ctx context.Context) ([]*ActionPlanHistory, error) { + if aphcb.err != nil { + return nil, aphcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(aphcb.builders)) + nodes := make([]*ActionPlanHistory, len(aphcb.builders)) + mutators := make([]Mutator, len(aphcb.builders)) + for i := range aphcb.builders { + func(i int, root context.Context) { + builder := aphcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*ActionPlanHistoryMutation) + 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, aphcb.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, aphcb.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, aphcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (aphcb *ActionPlanHistoryCreateBulk) SaveX(ctx context.Context) []*ActionPlanHistory { + v, err := aphcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (aphcb *ActionPlanHistoryCreateBulk) Exec(ctx context.Context) error { + _, err := aphcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (aphcb *ActionPlanHistoryCreateBulk) ExecX(ctx context.Context) { + if err := aphcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/actionplanhistory_delete.go b/internal/ent/generated/actionplanhistory_delete.go new file mode 100644 index 00000000..a986953c --- /dev/null +++ b/internal/ent/generated/actionplanhistory_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ActionPlanHistoryDelete is the builder for deleting a ActionPlanHistory entity. +type ActionPlanHistoryDelete struct { + config + hooks []Hook + mutation *ActionPlanHistoryMutation +} + +// Where appends a list predicates to the ActionPlanHistoryDelete builder. +func (aphd *ActionPlanHistoryDelete) Where(ps ...predicate.ActionPlanHistory) *ActionPlanHistoryDelete { + aphd.mutation.Where(ps...) + return aphd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (aphd *ActionPlanHistoryDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, aphd.sqlExec, aphd.mutation, aphd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (aphd *ActionPlanHistoryDelete) ExecX(ctx context.Context) int { + n, err := aphd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (aphd *ActionPlanHistoryDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(actionplanhistory.Table, sqlgraph.NewFieldSpec(actionplanhistory.FieldID, field.TypeString)) + _spec.Node.Schema = aphd.schemaConfig.ActionPlanHistory + ctx = internal.NewSchemaConfigContext(ctx, aphd.schemaConfig) + if ps := aphd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, aphd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + aphd.mutation.done = true + return affected, err +} + +// ActionPlanHistoryDeleteOne is the builder for deleting a single ActionPlanHistory entity. +type ActionPlanHistoryDeleteOne struct { + aphd *ActionPlanHistoryDelete +} + +// Where appends a list predicates to the ActionPlanHistoryDelete builder. +func (aphdo *ActionPlanHistoryDeleteOne) Where(ps ...predicate.ActionPlanHistory) *ActionPlanHistoryDeleteOne { + aphdo.aphd.mutation.Where(ps...) + return aphdo +} + +// Exec executes the deletion query. +func (aphdo *ActionPlanHistoryDeleteOne) Exec(ctx context.Context) error { + n, err := aphdo.aphd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{actionplanhistory.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (aphdo *ActionPlanHistoryDeleteOne) ExecX(ctx context.Context) { + if err := aphdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/actionplanhistory_query.go b/internal/ent/generated/actionplanhistory_query.go new file mode 100644 index 00000000..c1c06284 --- /dev/null +++ b/internal/ent/generated/actionplanhistory_query.go @@ -0,0 +1,565 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "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/internal/ent/generated/actionplanhistory" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ActionPlanHistoryQuery is the builder for querying ActionPlanHistory entities. +type ActionPlanHistoryQuery struct { + config + ctx *QueryContext + order []actionplanhistory.OrderOption + inters []Interceptor + predicates []predicate.ActionPlanHistory + loadTotal []func(context.Context, []*ActionPlanHistory) 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 ActionPlanHistoryQuery builder. +func (aphq *ActionPlanHistoryQuery) Where(ps ...predicate.ActionPlanHistory) *ActionPlanHistoryQuery { + aphq.predicates = append(aphq.predicates, ps...) + return aphq +} + +// Limit the number of records to be returned by this query. +func (aphq *ActionPlanHistoryQuery) Limit(limit int) *ActionPlanHistoryQuery { + aphq.ctx.Limit = &limit + return aphq +} + +// Offset to start from. +func (aphq *ActionPlanHistoryQuery) Offset(offset int) *ActionPlanHistoryQuery { + aphq.ctx.Offset = &offset + return aphq +} + +// 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 (aphq *ActionPlanHistoryQuery) Unique(unique bool) *ActionPlanHistoryQuery { + aphq.ctx.Unique = &unique + return aphq +} + +// Order specifies how the records should be ordered. +func (aphq *ActionPlanHistoryQuery) Order(o ...actionplanhistory.OrderOption) *ActionPlanHistoryQuery { + aphq.order = append(aphq.order, o...) + return aphq +} + +// First returns the first ActionPlanHistory entity from the query. +// Returns a *NotFoundError when no ActionPlanHistory was found. +func (aphq *ActionPlanHistoryQuery) First(ctx context.Context) (*ActionPlanHistory, error) { + nodes, err := aphq.Limit(1).All(setContextOp(ctx, aphq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{actionplanhistory.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (aphq *ActionPlanHistoryQuery) FirstX(ctx context.Context) *ActionPlanHistory { + node, err := aphq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first ActionPlanHistory ID from the query. +// Returns a *NotFoundError when no ActionPlanHistory ID was found. +func (aphq *ActionPlanHistoryQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = aphq.Limit(1).IDs(setContextOp(ctx, aphq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{actionplanhistory.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (aphq *ActionPlanHistoryQuery) FirstIDX(ctx context.Context) string { + id, err := aphq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single ActionPlanHistory entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one ActionPlanHistory entity is found. +// Returns a *NotFoundError when no ActionPlanHistory entities are found. +func (aphq *ActionPlanHistoryQuery) Only(ctx context.Context) (*ActionPlanHistory, error) { + nodes, err := aphq.Limit(2).All(setContextOp(ctx, aphq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{actionplanhistory.Label} + default: + return nil, &NotSingularError{actionplanhistory.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (aphq *ActionPlanHistoryQuery) OnlyX(ctx context.Context) *ActionPlanHistory { + node, err := aphq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only ActionPlanHistory ID in the query. +// Returns a *NotSingularError when more than one ActionPlanHistory ID is found. +// Returns a *NotFoundError when no entities are found. +func (aphq *ActionPlanHistoryQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = aphq.Limit(2).IDs(setContextOp(ctx, aphq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{actionplanhistory.Label} + default: + err = &NotSingularError{actionplanhistory.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (aphq *ActionPlanHistoryQuery) OnlyIDX(ctx context.Context) string { + id, err := aphq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of ActionPlanHistories. +func (aphq *ActionPlanHistoryQuery) All(ctx context.Context) ([]*ActionPlanHistory, error) { + ctx = setContextOp(ctx, aphq.ctx, ent.OpQueryAll) + if err := aphq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*ActionPlanHistory, *ActionPlanHistoryQuery]() + return withInterceptors[[]*ActionPlanHistory](ctx, aphq, qr, aphq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (aphq *ActionPlanHistoryQuery) AllX(ctx context.Context) []*ActionPlanHistory { + nodes, err := aphq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of ActionPlanHistory IDs. +func (aphq *ActionPlanHistoryQuery) IDs(ctx context.Context) (ids []string, err error) { + if aphq.ctx.Unique == nil && aphq.path != nil { + aphq.Unique(true) + } + ctx = setContextOp(ctx, aphq.ctx, ent.OpQueryIDs) + if err = aphq.Select(actionplanhistory.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (aphq *ActionPlanHistoryQuery) IDsX(ctx context.Context) []string { + ids, err := aphq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (aphq *ActionPlanHistoryQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, aphq.ctx, ent.OpQueryCount) + if err := aphq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, aphq, querierCount[*ActionPlanHistoryQuery](), aphq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (aphq *ActionPlanHistoryQuery) CountX(ctx context.Context) int { + count, err := aphq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (aphq *ActionPlanHistoryQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, aphq.ctx, ent.OpQueryExist) + switch _, err := aphq.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 (aphq *ActionPlanHistoryQuery) ExistX(ctx context.Context) bool { + exist, err := aphq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the ActionPlanHistoryQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (aphq *ActionPlanHistoryQuery) Clone() *ActionPlanHistoryQuery { + if aphq == nil { + return nil + } + return &ActionPlanHistoryQuery{ + config: aphq.config, + ctx: aphq.ctx.Clone(), + order: append([]actionplanhistory.OrderOption{}, aphq.order...), + inters: append([]Interceptor{}, aphq.inters...), + predicates: append([]predicate.ActionPlanHistory{}, aphq.predicates...), + // clone intermediate query. + sql: aphq.sql.Clone(), + path: aphq.path, + modifiers: append([]func(*sql.Selector){}, aphq.modifiers...), + } +} + +// 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.ActionPlanHistory.Query(). +// GroupBy(actionplanhistory.FieldHistoryTime). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (aphq *ActionPlanHistoryQuery) GroupBy(field string, fields ...string) *ActionPlanHistoryGroupBy { + aphq.ctx.Fields = append([]string{field}, fields...) + grbuild := &ActionPlanHistoryGroupBy{build: aphq} + grbuild.flds = &aphq.ctx.Fields + grbuild.label = actionplanhistory.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.ActionPlanHistory.Query(). +// Select(actionplanhistory.FieldHistoryTime). +// Scan(ctx, &v) +func (aphq *ActionPlanHistoryQuery) Select(fields ...string) *ActionPlanHistorySelect { + aphq.ctx.Fields = append(aphq.ctx.Fields, fields...) + sbuild := &ActionPlanHistorySelect{ActionPlanHistoryQuery: aphq} + sbuild.label = actionplanhistory.Label + sbuild.flds, sbuild.scan = &aphq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a ActionPlanHistorySelect configured with the given aggregations. +func (aphq *ActionPlanHistoryQuery) Aggregate(fns ...AggregateFunc) *ActionPlanHistorySelect { + return aphq.Select().Aggregate(fns...) +} + +func (aphq *ActionPlanHistoryQuery) prepareQuery(ctx context.Context) error { + for _, inter := range aphq.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, aphq); err != nil { + return err + } + } + } + for _, f := range aphq.ctx.Fields { + if !actionplanhistory.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if aphq.path != nil { + prev, err := aphq.path(ctx) + if err != nil { + return err + } + aphq.sql = prev + } + return nil +} + +func (aphq *ActionPlanHistoryQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*ActionPlanHistory, error) { + var ( + nodes = []*ActionPlanHistory{} + _spec = aphq.querySpec() + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*ActionPlanHistory).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &ActionPlanHistory{config: aphq.config} + nodes = append(nodes, node) + return node.assignValues(columns, values) + } + _spec.Node.Schema = aphq.schemaConfig.ActionPlanHistory + ctx = internal.NewSchemaConfigContext(ctx, aphq.schemaConfig) + if len(aphq.modifiers) > 0 { + _spec.Modifiers = aphq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, aphq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + for i := range aphq.loadTotal { + if err := aphq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (aphq *ActionPlanHistoryQuery) sqlCount(ctx context.Context) (int, error) { + _spec := aphq.querySpec() + _spec.Node.Schema = aphq.schemaConfig.ActionPlanHistory + ctx = internal.NewSchemaConfigContext(ctx, aphq.schemaConfig) + if len(aphq.modifiers) > 0 { + _spec.Modifiers = aphq.modifiers + } + _spec.Node.Columns = aphq.ctx.Fields + if len(aphq.ctx.Fields) > 0 { + _spec.Unique = aphq.ctx.Unique != nil && *aphq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, aphq.driver, _spec) +} + +func (aphq *ActionPlanHistoryQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(actionplanhistory.Table, actionplanhistory.Columns, sqlgraph.NewFieldSpec(actionplanhistory.FieldID, field.TypeString)) + _spec.From = aphq.sql + if unique := aphq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if aphq.path != nil { + _spec.Unique = true + } + if fields := aphq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, actionplanhistory.FieldID) + for i := range fields { + if fields[i] != actionplanhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := aphq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := aphq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := aphq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := aphq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (aphq *ActionPlanHistoryQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(aphq.driver.Dialect()) + t1 := builder.Table(actionplanhistory.Table) + columns := aphq.ctx.Fields + if len(columns) == 0 { + columns = actionplanhistory.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if aphq.sql != nil { + selector = aphq.sql + selector.Select(selector.Columns(columns...)...) + } + if aphq.ctx.Unique != nil && *aphq.ctx.Unique { + selector.Distinct() + } + t1.Schema(aphq.schemaConfig.ActionPlanHistory) + ctx = internal.NewSchemaConfigContext(ctx, aphq.schemaConfig) + selector.WithContext(ctx) + for _, m := range aphq.modifiers { + m(selector) + } + for _, p := range aphq.predicates { + p(selector) + } + for _, p := range aphq.order { + p(selector) + } + if offset := aphq.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 := aphq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (aphq *ActionPlanHistoryQuery) Modify(modifiers ...func(s *sql.Selector)) *ActionPlanHistorySelect { + aphq.modifiers = append(aphq.modifiers, modifiers...) + return aphq.Select() +} + +// ActionPlanHistoryGroupBy is the group-by builder for ActionPlanHistory entities. +type ActionPlanHistoryGroupBy struct { + selector + build *ActionPlanHistoryQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (aphgb *ActionPlanHistoryGroupBy) Aggregate(fns ...AggregateFunc) *ActionPlanHistoryGroupBy { + aphgb.fns = append(aphgb.fns, fns...) + return aphgb +} + +// Scan applies the selector query and scans the result into the given value. +func (aphgb *ActionPlanHistoryGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, aphgb.build.ctx, ent.OpQueryGroupBy) + if err := aphgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ActionPlanHistoryQuery, *ActionPlanHistoryGroupBy](ctx, aphgb.build, aphgb, aphgb.build.inters, v) +} + +func (aphgb *ActionPlanHistoryGroupBy) sqlScan(ctx context.Context, root *ActionPlanHistoryQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(aphgb.fns)) + for _, fn := range aphgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*aphgb.flds)+len(aphgb.fns)) + for _, f := range *aphgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*aphgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := aphgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// ActionPlanHistorySelect is the builder for selecting fields of ActionPlanHistory entities. +type ActionPlanHistorySelect struct { + *ActionPlanHistoryQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (aphs *ActionPlanHistorySelect) Aggregate(fns ...AggregateFunc) *ActionPlanHistorySelect { + aphs.fns = append(aphs.fns, fns...) + return aphs +} + +// Scan applies the selector query and scans the result into the given value. +func (aphs *ActionPlanHistorySelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, aphs.ctx, ent.OpQuerySelect) + if err := aphs.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ActionPlanHistoryQuery, *ActionPlanHistorySelect](ctx, aphs.ActionPlanHistoryQuery, aphs, aphs.inters, v) +} + +func (aphs *ActionPlanHistorySelect) sqlScan(ctx context.Context, root *ActionPlanHistoryQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(aphs.fns)) + for _, fn := range aphs.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*aphs.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 := aphs.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 (aphs *ActionPlanHistorySelect) Modify(modifiers ...func(s *sql.Selector)) *ActionPlanHistorySelect { + aphs.modifiers = append(aphs.modifiers, modifiers...) + return aphs +} diff --git a/internal/ent/generated/actionplanhistory_update.go b/internal/ent/generated/actionplanhistory_update.go new file mode 100644 index 00000000..f45983c4 --- /dev/null +++ b/internal/ent/generated/actionplanhistory_update.go @@ -0,0 +1,815 @@ +// 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/internal/ent/generated/actionplanhistory" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ActionPlanHistoryUpdate is the builder for updating ActionPlanHistory entities. +type ActionPlanHistoryUpdate struct { + config + hooks []Hook + mutation *ActionPlanHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the ActionPlanHistoryUpdate builder. +func (aphu *ActionPlanHistoryUpdate) Where(ps ...predicate.ActionPlanHistory) *ActionPlanHistoryUpdate { + aphu.mutation.Where(ps...) + return aphu +} + +// SetUpdatedAt sets the "updated_at" field. +func (aphu *ActionPlanHistoryUpdate) SetUpdatedAt(t time.Time) *ActionPlanHistoryUpdate { + aphu.mutation.SetUpdatedAt(t) + return aphu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (aphu *ActionPlanHistoryUpdate) ClearUpdatedAt() *ActionPlanHistoryUpdate { + aphu.mutation.ClearUpdatedAt() + return aphu +} + +// SetUpdatedBy sets the "updated_by" field. +func (aphu *ActionPlanHistoryUpdate) SetUpdatedBy(s string) *ActionPlanHistoryUpdate { + aphu.mutation.SetUpdatedBy(s) + return aphu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (aphu *ActionPlanHistoryUpdate) SetNillableUpdatedBy(s *string) *ActionPlanHistoryUpdate { + if s != nil { + aphu.SetUpdatedBy(*s) + } + return aphu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (aphu *ActionPlanHistoryUpdate) ClearUpdatedBy() *ActionPlanHistoryUpdate { + aphu.mutation.ClearUpdatedBy() + return aphu +} + +// SetDeletedAt sets the "deleted_at" field. +func (aphu *ActionPlanHistoryUpdate) SetDeletedAt(t time.Time) *ActionPlanHistoryUpdate { + aphu.mutation.SetDeletedAt(t) + return aphu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (aphu *ActionPlanHistoryUpdate) SetNillableDeletedAt(t *time.Time) *ActionPlanHistoryUpdate { + if t != nil { + aphu.SetDeletedAt(*t) + } + return aphu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (aphu *ActionPlanHistoryUpdate) ClearDeletedAt() *ActionPlanHistoryUpdate { + aphu.mutation.ClearDeletedAt() + return aphu +} + +// SetDeletedBy sets the "deleted_by" field. +func (aphu *ActionPlanHistoryUpdate) SetDeletedBy(s string) *ActionPlanHistoryUpdate { + aphu.mutation.SetDeletedBy(s) + return aphu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (aphu *ActionPlanHistoryUpdate) SetNillableDeletedBy(s *string) *ActionPlanHistoryUpdate { + if s != nil { + aphu.SetDeletedBy(*s) + } + return aphu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (aphu *ActionPlanHistoryUpdate) ClearDeletedBy() *ActionPlanHistoryUpdate { + aphu.mutation.ClearDeletedBy() + return aphu +} + +// SetTags sets the "tags" field. +func (aphu *ActionPlanHistoryUpdate) SetTags(s []string) *ActionPlanHistoryUpdate { + aphu.mutation.SetTags(s) + return aphu +} + +// AppendTags appends s to the "tags" field. +func (aphu *ActionPlanHistoryUpdate) AppendTags(s []string) *ActionPlanHistoryUpdate { + aphu.mutation.AppendTags(s) + return aphu +} + +// ClearTags clears the value of the "tags" field. +func (aphu *ActionPlanHistoryUpdate) ClearTags() *ActionPlanHistoryUpdate { + aphu.mutation.ClearTags() + return aphu +} + +// SetName sets the "name" field. +func (aphu *ActionPlanHistoryUpdate) SetName(s string) *ActionPlanHistoryUpdate { + aphu.mutation.SetName(s) + return aphu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (aphu *ActionPlanHistoryUpdate) SetNillableName(s *string) *ActionPlanHistoryUpdate { + if s != nil { + aphu.SetName(*s) + } + return aphu +} + +// SetDescription sets the "description" field. +func (aphu *ActionPlanHistoryUpdate) SetDescription(s string) *ActionPlanHistoryUpdate { + aphu.mutation.SetDescription(s) + return aphu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (aphu *ActionPlanHistoryUpdate) SetNillableDescription(s *string) *ActionPlanHistoryUpdate { + if s != nil { + aphu.SetDescription(*s) + } + return aphu +} + +// ClearDescription clears the value of the "description" field. +func (aphu *ActionPlanHistoryUpdate) ClearDescription() *ActionPlanHistoryUpdate { + aphu.mutation.ClearDescription() + return aphu +} + +// SetStatus sets the "status" field. +func (aphu *ActionPlanHistoryUpdate) SetStatus(s string) *ActionPlanHistoryUpdate { + aphu.mutation.SetStatus(s) + return aphu +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (aphu *ActionPlanHistoryUpdate) SetNillableStatus(s *string) *ActionPlanHistoryUpdate { + if s != nil { + aphu.SetStatus(*s) + } + return aphu +} + +// ClearStatus clears the value of the "status" field. +func (aphu *ActionPlanHistoryUpdate) ClearStatus() *ActionPlanHistoryUpdate { + aphu.mutation.ClearStatus() + return aphu +} + +// SetDueDate sets the "due_date" field. +func (aphu *ActionPlanHistoryUpdate) SetDueDate(t time.Time) *ActionPlanHistoryUpdate { + aphu.mutation.SetDueDate(t) + return aphu +} + +// SetNillableDueDate sets the "due_date" field if the given value is not nil. +func (aphu *ActionPlanHistoryUpdate) SetNillableDueDate(t *time.Time) *ActionPlanHistoryUpdate { + if t != nil { + aphu.SetDueDate(*t) + } + return aphu +} + +// ClearDueDate clears the value of the "due_date" field. +func (aphu *ActionPlanHistoryUpdate) ClearDueDate() *ActionPlanHistoryUpdate { + aphu.mutation.ClearDueDate() + return aphu +} + +// SetPriority sets the "priority" field. +func (aphu *ActionPlanHistoryUpdate) SetPriority(s string) *ActionPlanHistoryUpdate { + aphu.mutation.SetPriority(s) + return aphu +} + +// SetNillablePriority sets the "priority" field if the given value is not nil. +func (aphu *ActionPlanHistoryUpdate) SetNillablePriority(s *string) *ActionPlanHistoryUpdate { + if s != nil { + aphu.SetPriority(*s) + } + return aphu +} + +// ClearPriority clears the value of the "priority" field. +func (aphu *ActionPlanHistoryUpdate) ClearPriority() *ActionPlanHistoryUpdate { + aphu.mutation.ClearPriority() + return aphu +} + +// SetSource sets the "source" field. +func (aphu *ActionPlanHistoryUpdate) SetSource(s string) *ActionPlanHistoryUpdate { + aphu.mutation.SetSource(s) + return aphu +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (aphu *ActionPlanHistoryUpdate) SetNillableSource(s *string) *ActionPlanHistoryUpdate { + if s != nil { + aphu.SetSource(*s) + } + return aphu +} + +// ClearSource clears the value of the "source" field. +func (aphu *ActionPlanHistoryUpdate) ClearSource() *ActionPlanHistoryUpdate { + aphu.mutation.ClearSource() + return aphu +} + +// SetDetails sets the "details" field. +func (aphu *ActionPlanHistoryUpdate) SetDetails(m map[string]interface{}) *ActionPlanHistoryUpdate { + aphu.mutation.SetDetails(m) + return aphu +} + +// ClearDetails clears the value of the "details" field. +func (aphu *ActionPlanHistoryUpdate) ClearDetails() *ActionPlanHistoryUpdate { + aphu.mutation.ClearDetails() + return aphu +} + +// Mutation returns the ActionPlanHistoryMutation object of the builder. +func (aphu *ActionPlanHistoryUpdate) Mutation() *ActionPlanHistoryMutation { + return aphu.mutation +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (aphu *ActionPlanHistoryUpdate) Save(ctx context.Context) (int, error) { + aphu.defaults() + return withHooks(ctx, aphu.sqlSave, aphu.mutation, aphu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (aphu *ActionPlanHistoryUpdate) SaveX(ctx context.Context) int { + affected, err := aphu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (aphu *ActionPlanHistoryUpdate) Exec(ctx context.Context) error { + _, err := aphu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (aphu *ActionPlanHistoryUpdate) ExecX(ctx context.Context) { + if err := aphu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (aphu *ActionPlanHistoryUpdate) defaults() { + if _, ok := aphu.mutation.UpdatedAt(); !ok && !aphu.mutation.UpdatedAtCleared() { + v := actionplanhistory.UpdateDefaultUpdatedAt() + aphu.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (aphu *ActionPlanHistoryUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ActionPlanHistoryUpdate { + aphu.modifiers = append(aphu.modifiers, modifiers...) + return aphu +} + +func (aphu *ActionPlanHistoryUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(actionplanhistory.Table, actionplanhistory.Columns, sqlgraph.NewFieldSpec(actionplanhistory.FieldID, field.TypeString)) + if ps := aphu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if aphu.mutation.RefCleared() { + _spec.ClearField(actionplanhistory.FieldRef, field.TypeString) + } + if aphu.mutation.CreatedAtCleared() { + _spec.ClearField(actionplanhistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := aphu.mutation.UpdatedAt(); ok { + _spec.SetField(actionplanhistory.FieldUpdatedAt, field.TypeTime, value) + } + if aphu.mutation.UpdatedAtCleared() { + _spec.ClearField(actionplanhistory.FieldUpdatedAt, field.TypeTime) + } + if aphu.mutation.CreatedByCleared() { + _spec.ClearField(actionplanhistory.FieldCreatedBy, field.TypeString) + } + if value, ok := aphu.mutation.UpdatedBy(); ok { + _spec.SetField(actionplanhistory.FieldUpdatedBy, field.TypeString, value) + } + if aphu.mutation.UpdatedByCleared() { + _spec.ClearField(actionplanhistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := aphu.mutation.DeletedAt(); ok { + _spec.SetField(actionplanhistory.FieldDeletedAt, field.TypeTime, value) + } + if aphu.mutation.DeletedAtCleared() { + _spec.ClearField(actionplanhistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := aphu.mutation.DeletedBy(); ok { + _spec.SetField(actionplanhistory.FieldDeletedBy, field.TypeString, value) + } + if aphu.mutation.DeletedByCleared() { + _spec.ClearField(actionplanhistory.FieldDeletedBy, field.TypeString) + } + if value, ok := aphu.mutation.Tags(); ok { + _spec.SetField(actionplanhistory.FieldTags, field.TypeJSON, value) + } + if value, ok := aphu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, actionplanhistory.FieldTags, value) + }) + } + if aphu.mutation.TagsCleared() { + _spec.ClearField(actionplanhistory.FieldTags, field.TypeJSON) + } + if value, ok := aphu.mutation.Name(); ok { + _spec.SetField(actionplanhistory.FieldName, field.TypeString, value) + } + if value, ok := aphu.mutation.Description(); ok { + _spec.SetField(actionplanhistory.FieldDescription, field.TypeString, value) + } + if aphu.mutation.DescriptionCleared() { + _spec.ClearField(actionplanhistory.FieldDescription, field.TypeString) + } + if value, ok := aphu.mutation.Status(); ok { + _spec.SetField(actionplanhistory.FieldStatus, field.TypeString, value) + } + if aphu.mutation.StatusCleared() { + _spec.ClearField(actionplanhistory.FieldStatus, field.TypeString) + } + if value, ok := aphu.mutation.DueDate(); ok { + _spec.SetField(actionplanhistory.FieldDueDate, field.TypeTime, value) + } + if aphu.mutation.DueDateCleared() { + _spec.ClearField(actionplanhistory.FieldDueDate, field.TypeTime) + } + if value, ok := aphu.mutation.Priority(); ok { + _spec.SetField(actionplanhistory.FieldPriority, field.TypeString, value) + } + if aphu.mutation.PriorityCleared() { + _spec.ClearField(actionplanhistory.FieldPriority, field.TypeString) + } + if value, ok := aphu.mutation.Source(); ok { + _spec.SetField(actionplanhistory.FieldSource, field.TypeString, value) + } + if aphu.mutation.SourceCleared() { + _spec.ClearField(actionplanhistory.FieldSource, field.TypeString) + } + if value, ok := aphu.mutation.Details(); ok { + _spec.SetField(actionplanhistory.FieldDetails, field.TypeJSON, value) + } + if aphu.mutation.DetailsCleared() { + _spec.ClearField(actionplanhistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = aphu.schemaConfig.ActionPlanHistory + ctx = internal.NewSchemaConfigContext(ctx, aphu.schemaConfig) + _spec.AddModifiers(aphu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, aphu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{actionplanhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + aphu.mutation.done = true + return n, nil +} + +// ActionPlanHistoryUpdateOne is the builder for updating a single ActionPlanHistory entity. +type ActionPlanHistoryUpdateOne struct { + config + fields []string + hooks []Hook + mutation *ActionPlanHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (aphuo *ActionPlanHistoryUpdateOne) SetUpdatedAt(t time.Time) *ActionPlanHistoryUpdateOne { + aphuo.mutation.SetUpdatedAt(t) + return aphuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (aphuo *ActionPlanHistoryUpdateOne) ClearUpdatedAt() *ActionPlanHistoryUpdateOne { + aphuo.mutation.ClearUpdatedAt() + return aphuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (aphuo *ActionPlanHistoryUpdateOne) SetUpdatedBy(s string) *ActionPlanHistoryUpdateOne { + aphuo.mutation.SetUpdatedBy(s) + return aphuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (aphuo *ActionPlanHistoryUpdateOne) SetNillableUpdatedBy(s *string) *ActionPlanHistoryUpdateOne { + if s != nil { + aphuo.SetUpdatedBy(*s) + } + return aphuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (aphuo *ActionPlanHistoryUpdateOne) ClearUpdatedBy() *ActionPlanHistoryUpdateOne { + aphuo.mutation.ClearUpdatedBy() + return aphuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (aphuo *ActionPlanHistoryUpdateOne) SetDeletedAt(t time.Time) *ActionPlanHistoryUpdateOne { + aphuo.mutation.SetDeletedAt(t) + return aphuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (aphuo *ActionPlanHistoryUpdateOne) SetNillableDeletedAt(t *time.Time) *ActionPlanHistoryUpdateOne { + if t != nil { + aphuo.SetDeletedAt(*t) + } + return aphuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (aphuo *ActionPlanHistoryUpdateOne) ClearDeletedAt() *ActionPlanHistoryUpdateOne { + aphuo.mutation.ClearDeletedAt() + return aphuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (aphuo *ActionPlanHistoryUpdateOne) SetDeletedBy(s string) *ActionPlanHistoryUpdateOne { + aphuo.mutation.SetDeletedBy(s) + return aphuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (aphuo *ActionPlanHistoryUpdateOne) SetNillableDeletedBy(s *string) *ActionPlanHistoryUpdateOne { + if s != nil { + aphuo.SetDeletedBy(*s) + } + return aphuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (aphuo *ActionPlanHistoryUpdateOne) ClearDeletedBy() *ActionPlanHistoryUpdateOne { + aphuo.mutation.ClearDeletedBy() + return aphuo +} + +// SetTags sets the "tags" field. +func (aphuo *ActionPlanHistoryUpdateOne) SetTags(s []string) *ActionPlanHistoryUpdateOne { + aphuo.mutation.SetTags(s) + return aphuo +} + +// AppendTags appends s to the "tags" field. +func (aphuo *ActionPlanHistoryUpdateOne) AppendTags(s []string) *ActionPlanHistoryUpdateOne { + aphuo.mutation.AppendTags(s) + return aphuo +} + +// ClearTags clears the value of the "tags" field. +func (aphuo *ActionPlanHistoryUpdateOne) ClearTags() *ActionPlanHistoryUpdateOne { + aphuo.mutation.ClearTags() + return aphuo +} + +// SetName sets the "name" field. +func (aphuo *ActionPlanHistoryUpdateOne) SetName(s string) *ActionPlanHistoryUpdateOne { + aphuo.mutation.SetName(s) + return aphuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (aphuo *ActionPlanHistoryUpdateOne) SetNillableName(s *string) *ActionPlanHistoryUpdateOne { + if s != nil { + aphuo.SetName(*s) + } + return aphuo +} + +// SetDescription sets the "description" field. +func (aphuo *ActionPlanHistoryUpdateOne) SetDescription(s string) *ActionPlanHistoryUpdateOne { + aphuo.mutation.SetDescription(s) + return aphuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (aphuo *ActionPlanHistoryUpdateOne) SetNillableDescription(s *string) *ActionPlanHistoryUpdateOne { + if s != nil { + aphuo.SetDescription(*s) + } + return aphuo +} + +// ClearDescription clears the value of the "description" field. +func (aphuo *ActionPlanHistoryUpdateOne) ClearDescription() *ActionPlanHistoryUpdateOne { + aphuo.mutation.ClearDescription() + return aphuo +} + +// SetStatus sets the "status" field. +func (aphuo *ActionPlanHistoryUpdateOne) SetStatus(s string) *ActionPlanHistoryUpdateOne { + aphuo.mutation.SetStatus(s) + return aphuo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (aphuo *ActionPlanHistoryUpdateOne) SetNillableStatus(s *string) *ActionPlanHistoryUpdateOne { + if s != nil { + aphuo.SetStatus(*s) + } + return aphuo +} + +// ClearStatus clears the value of the "status" field. +func (aphuo *ActionPlanHistoryUpdateOne) ClearStatus() *ActionPlanHistoryUpdateOne { + aphuo.mutation.ClearStatus() + return aphuo +} + +// SetDueDate sets the "due_date" field. +func (aphuo *ActionPlanHistoryUpdateOne) SetDueDate(t time.Time) *ActionPlanHistoryUpdateOne { + aphuo.mutation.SetDueDate(t) + return aphuo +} + +// SetNillableDueDate sets the "due_date" field if the given value is not nil. +func (aphuo *ActionPlanHistoryUpdateOne) SetNillableDueDate(t *time.Time) *ActionPlanHistoryUpdateOne { + if t != nil { + aphuo.SetDueDate(*t) + } + return aphuo +} + +// ClearDueDate clears the value of the "due_date" field. +func (aphuo *ActionPlanHistoryUpdateOne) ClearDueDate() *ActionPlanHistoryUpdateOne { + aphuo.mutation.ClearDueDate() + return aphuo +} + +// SetPriority sets the "priority" field. +func (aphuo *ActionPlanHistoryUpdateOne) SetPriority(s string) *ActionPlanHistoryUpdateOne { + aphuo.mutation.SetPriority(s) + return aphuo +} + +// SetNillablePriority sets the "priority" field if the given value is not nil. +func (aphuo *ActionPlanHistoryUpdateOne) SetNillablePriority(s *string) *ActionPlanHistoryUpdateOne { + if s != nil { + aphuo.SetPriority(*s) + } + return aphuo +} + +// ClearPriority clears the value of the "priority" field. +func (aphuo *ActionPlanHistoryUpdateOne) ClearPriority() *ActionPlanHistoryUpdateOne { + aphuo.mutation.ClearPriority() + return aphuo +} + +// SetSource sets the "source" field. +func (aphuo *ActionPlanHistoryUpdateOne) SetSource(s string) *ActionPlanHistoryUpdateOne { + aphuo.mutation.SetSource(s) + return aphuo +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (aphuo *ActionPlanHistoryUpdateOne) SetNillableSource(s *string) *ActionPlanHistoryUpdateOne { + if s != nil { + aphuo.SetSource(*s) + } + return aphuo +} + +// ClearSource clears the value of the "source" field. +func (aphuo *ActionPlanHistoryUpdateOne) ClearSource() *ActionPlanHistoryUpdateOne { + aphuo.mutation.ClearSource() + return aphuo +} + +// SetDetails sets the "details" field. +func (aphuo *ActionPlanHistoryUpdateOne) SetDetails(m map[string]interface{}) *ActionPlanHistoryUpdateOne { + aphuo.mutation.SetDetails(m) + return aphuo +} + +// ClearDetails clears the value of the "details" field. +func (aphuo *ActionPlanHistoryUpdateOne) ClearDetails() *ActionPlanHistoryUpdateOne { + aphuo.mutation.ClearDetails() + return aphuo +} + +// Mutation returns the ActionPlanHistoryMutation object of the builder. +func (aphuo *ActionPlanHistoryUpdateOne) Mutation() *ActionPlanHistoryMutation { + return aphuo.mutation +} + +// Where appends a list predicates to the ActionPlanHistoryUpdate builder. +func (aphuo *ActionPlanHistoryUpdateOne) Where(ps ...predicate.ActionPlanHistory) *ActionPlanHistoryUpdateOne { + aphuo.mutation.Where(ps...) + return aphuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (aphuo *ActionPlanHistoryUpdateOne) Select(field string, fields ...string) *ActionPlanHistoryUpdateOne { + aphuo.fields = append([]string{field}, fields...) + return aphuo +} + +// Save executes the query and returns the updated ActionPlanHistory entity. +func (aphuo *ActionPlanHistoryUpdateOne) Save(ctx context.Context) (*ActionPlanHistory, error) { + aphuo.defaults() + return withHooks(ctx, aphuo.sqlSave, aphuo.mutation, aphuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (aphuo *ActionPlanHistoryUpdateOne) SaveX(ctx context.Context) *ActionPlanHistory { + node, err := aphuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (aphuo *ActionPlanHistoryUpdateOne) Exec(ctx context.Context) error { + _, err := aphuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (aphuo *ActionPlanHistoryUpdateOne) ExecX(ctx context.Context) { + if err := aphuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (aphuo *ActionPlanHistoryUpdateOne) defaults() { + if _, ok := aphuo.mutation.UpdatedAt(); !ok && !aphuo.mutation.UpdatedAtCleared() { + v := actionplanhistory.UpdateDefaultUpdatedAt() + aphuo.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (aphuo *ActionPlanHistoryUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ActionPlanHistoryUpdateOne { + aphuo.modifiers = append(aphuo.modifiers, modifiers...) + return aphuo +} + +func (aphuo *ActionPlanHistoryUpdateOne) sqlSave(ctx context.Context) (_node *ActionPlanHistory, err error) { + _spec := sqlgraph.NewUpdateSpec(actionplanhistory.Table, actionplanhistory.Columns, sqlgraph.NewFieldSpec(actionplanhistory.FieldID, field.TypeString)) + id, ok := aphuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "ActionPlanHistory.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := aphuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, actionplanhistory.FieldID) + for _, f := range fields { + if !actionplanhistory.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != actionplanhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := aphuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if aphuo.mutation.RefCleared() { + _spec.ClearField(actionplanhistory.FieldRef, field.TypeString) + } + if aphuo.mutation.CreatedAtCleared() { + _spec.ClearField(actionplanhistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := aphuo.mutation.UpdatedAt(); ok { + _spec.SetField(actionplanhistory.FieldUpdatedAt, field.TypeTime, value) + } + if aphuo.mutation.UpdatedAtCleared() { + _spec.ClearField(actionplanhistory.FieldUpdatedAt, field.TypeTime) + } + if aphuo.mutation.CreatedByCleared() { + _spec.ClearField(actionplanhistory.FieldCreatedBy, field.TypeString) + } + if value, ok := aphuo.mutation.UpdatedBy(); ok { + _spec.SetField(actionplanhistory.FieldUpdatedBy, field.TypeString, value) + } + if aphuo.mutation.UpdatedByCleared() { + _spec.ClearField(actionplanhistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := aphuo.mutation.DeletedAt(); ok { + _spec.SetField(actionplanhistory.FieldDeletedAt, field.TypeTime, value) + } + if aphuo.mutation.DeletedAtCleared() { + _spec.ClearField(actionplanhistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := aphuo.mutation.DeletedBy(); ok { + _spec.SetField(actionplanhistory.FieldDeletedBy, field.TypeString, value) + } + if aphuo.mutation.DeletedByCleared() { + _spec.ClearField(actionplanhistory.FieldDeletedBy, field.TypeString) + } + if value, ok := aphuo.mutation.Tags(); ok { + _spec.SetField(actionplanhistory.FieldTags, field.TypeJSON, value) + } + if value, ok := aphuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, actionplanhistory.FieldTags, value) + }) + } + if aphuo.mutation.TagsCleared() { + _spec.ClearField(actionplanhistory.FieldTags, field.TypeJSON) + } + if value, ok := aphuo.mutation.Name(); ok { + _spec.SetField(actionplanhistory.FieldName, field.TypeString, value) + } + if value, ok := aphuo.mutation.Description(); ok { + _spec.SetField(actionplanhistory.FieldDescription, field.TypeString, value) + } + if aphuo.mutation.DescriptionCleared() { + _spec.ClearField(actionplanhistory.FieldDescription, field.TypeString) + } + if value, ok := aphuo.mutation.Status(); ok { + _spec.SetField(actionplanhistory.FieldStatus, field.TypeString, value) + } + if aphuo.mutation.StatusCleared() { + _spec.ClearField(actionplanhistory.FieldStatus, field.TypeString) + } + if value, ok := aphuo.mutation.DueDate(); ok { + _spec.SetField(actionplanhistory.FieldDueDate, field.TypeTime, value) + } + if aphuo.mutation.DueDateCleared() { + _spec.ClearField(actionplanhistory.FieldDueDate, field.TypeTime) + } + if value, ok := aphuo.mutation.Priority(); ok { + _spec.SetField(actionplanhistory.FieldPriority, field.TypeString, value) + } + if aphuo.mutation.PriorityCleared() { + _spec.ClearField(actionplanhistory.FieldPriority, field.TypeString) + } + if value, ok := aphuo.mutation.Source(); ok { + _spec.SetField(actionplanhistory.FieldSource, field.TypeString, value) + } + if aphuo.mutation.SourceCleared() { + _spec.ClearField(actionplanhistory.FieldSource, field.TypeString) + } + if value, ok := aphuo.mutation.Details(); ok { + _spec.SetField(actionplanhistory.FieldDetails, field.TypeJSON, value) + } + if aphuo.mutation.DetailsCleared() { + _spec.ClearField(actionplanhistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = aphuo.schemaConfig.ActionPlanHistory + ctx = internal.NewSchemaConfigContext(ctx, aphuo.schemaConfig) + _spec.AddModifiers(aphuo.modifiers...) + _node = &ActionPlanHistory{config: aphuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, aphuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{actionplanhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + aphuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/auditing.go b/internal/ent/generated/auditing.go index 10f98f1c..c6429009 100644 --- a/internal/ent/generated/auditing.go +++ b/internal/ent/generated/auditing.go @@ -12,7 +12,10 @@ import ( "strings" "time" + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" "github.com/theopenlane/core/internal/ent/generated/contacthistory" + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" "github.com/theopenlane/core/internal/ent/generated/documentdatahistory" "github.com/theopenlane/core/internal/ent/generated/entitlementhistory" "github.com/theopenlane/core/internal/ent/generated/entitlementplanfeaturehistory" @@ -27,11 +30,17 @@ import ( "github.com/theopenlane/core/internal/ent/generated/groupsettinghistory" "github.com/theopenlane/core/internal/ent/generated/hushhistory" "github.com/theopenlane/core/internal/ent/generated/integrationhistory" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" "github.com/theopenlane/core/internal/ent/generated/notehistory" "github.com/theopenlane/core/internal/ent/generated/oauthproviderhistory" "github.com/theopenlane/core/internal/ent/generated/organizationhistory" "github.com/theopenlane/core/internal/ent/generated/organizationsettinghistory" "github.com/theopenlane/core/internal/ent/generated/orgmembershiphistory" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" "github.com/theopenlane/core/internal/ent/generated/templatehistory" "github.com/theopenlane/core/internal/ent/generated/userhistory" "github.com/theopenlane/core/internal/ent/generated/usersettinghistory" @@ -64,6 +73,78 @@ var ( IdenticalHistoryError = errors.New("cannot take diff of identical history") ) +func (aph *ActionPlanHistory) changes(new *ActionPlanHistory) []Change { + var changes []Change + if !reflect.DeepEqual(aph.CreatedAt, new.CreatedAt) { + changes = append(changes, NewChange(actionplanhistory.FieldCreatedAt, aph.CreatedAt, new.CreatedAt)) + } + if !reflect.DeepEqual(aph.UpdatedAt, new.UpdatedAt) { + changes = append(changes, NewChange(actionplanhistory.FieldUpdatedAt, aph.UpdatedAt, new.UpdatedAt)) + } + if !reflect.DeepEqual(aph.CreatedBy, new.CreatedBy) { + changes = append(changes, NewChange(actionplanhistory.FieldCreatedBy, aph.CreatedBy, new.CreatedBy)) + } + if !reflect.DeepEqual(aph.DeletedAt, new.DeletedAt) { + changes = append(changes, NewChange(actionplanhistory.FieldDeletedAt, aph.DeletedAt, new.DeletedAt)) + } + if !reflect.DeepEqual(aph.DeletedBy, new.DeletedBy) { + changes = append(changes, NewChange(actionplanhistory.FieldDeletedBy, aph.DeletedBy, new.DeletedBy)) + } + if !reflect.DeepEqual(aph.MappingID, new.MappingID) { + changes = append(changes, NewChange(actionplanhistory.FieldMappingID, aph.MappingID, new.MappingID)) + } + if !reflect.DeepEqual(aph.Tags, new.Tags) { + changes = append(changes, NewChange(actionplanhistory.FieldTags, aph.Tags, new.Tags)) + } + if !reflect.DeepEqual(aph.Name, new.Name) { + changes = append(changes, NewChange(actionplanhistory.FieldName, aph.Name, new.Name)) + } + if !reflect.DeepEqual(aph.Description, new.Description) { + changes = append(changes, NewChange(actionplanhistory.FieldDescription, aph.Description, new.Description)) + } + if !reflect.DeepEqual(aph.Status, new.Status) { + changes = append(changes, NewChange(actionplanhistory.FieldStatus, aph.Status, new.Status)) + } + if !reflect.DeepEqual(aph.DueDate, new.DueDate) { + changes = append(changes, NewChange(actionplanhistory.FieldDueDate, aph.DueDate, new.DueDate)) + } + if !reflect.DeepEqual(aph.Priority, new.Priority) { + changes = append(changes, NewChange(actionplanhistory.FieldPriority, aph.Priority, new.Priority)) + } + if !reflect.DeepEqual(aph.Source, new.Source) { + changes = append(changes, NewChange(actionplanhistory.FieldSource, aph.Source, new.Source)) + } + if !reflect.DeepEqual(aph.Details, new.Details) { + changes = append(changes, NewChange(actionplanhistory.FieldDetails, aph.Details, new.Details)) + } + return changes +} + +func (aph *ActionPlanHistory) Diff(history *ActionPlanHistory) (*HistoryDiff[ActionPlanHistory], error) { + if aph.Ref != history.Ref { + return nil, MismatchedRefError + } + + aphUnix, historyUnix := aph.HistoryTime.Unix(), history.HistoryTime.Unix() + aphOlder := aphUnix < historyUnix || (aphUnix == historyUnix && aph.ID < history.ID) + historyOlder := aphUnix > historyUnix || (aphUnix == historyUnix && aph.ID > history.ID) + + if aphOlder { + return &HistoryDiff[ActionPlanHistory]{ + Old: aph, + New: history, + Changes: aph.changes(history), + }, nil + } else if historyOlder { + return &HistoryDiff[ActionPlanHistory]{ + Old: history, + New: aph, + Changes: history.changes(aph), + }, nil + } + return nil, IdenticalHistoryError +} + func (ch *ContactHistory) changes(new *ContactHistory) []Change { var changes []Change if !reflect.DeepEqual(ch.CreatedAt, new.CreatedAt) { @@ -139,6 +220,177 @@ func (ch *ContactHistory) Diff(history *ContactHistory) (*HistoryDiff[ContactHis return nil, IdenticalHistoryError } +func (ch *ControlHistory) changes(new *ControlHistory) []Change { + var changes []Change + if !reflect.DeepEqual(ch.CreatedAt, new.CreatedAt) { + changes = append(changes, NewChange(controlhistory.FieldCreatedAt, ch.CreatedAt, new.CreatedAt)) + } + if !reflect.DeepEqual(ch.UpdatedAt, new.UpdatedAt) { + changes = append(changes, NewChange(controlhistory.FieldUpdatedAt, ch.UpdatedAt, new.UpdatedAt)) + } + if !reflect.DeepEqual(ch.CreatedBy, new.CreatedBy) { + changes = append(changes, NewChange(controlhistory.FieldCreatedBy, ch.CreatedBy, new.CreatedBy)) + } + if !reflect.DeepEqual(ch.DeletedAt, new.DeletedAt) { + changes = append(changes, NewChange(controlhistory.FieldDeletedAt, ch.DeletedAt, new.DeletedAt)) + } + if !reflect.DeepEqual(ch.DeletedBy, new.DeletedBy) { + changes = append(changes, NewChange(controlhistory.FieldDeletedBy, ch.DeletedBy, new.DeletedBy)) + } + if !reflect.DeepEqual(ch.MappingID, new.MappingID) { + changes = append(changes, NewChange(controlhistory.FieldMappingID, ch.MappingID, new.MappingID)) + } + if !reflect.DeepEqual(ch.Tags, new.Tags) { + changes = append(changes, NewChange(controlhistory.FieldTags, ch.Tags, new.Tags)) + } + if !reflect.DeepEqual(ch.Name, new.Name) { + changes = append(changes, NewChange(controlhistory.FieldName, ch.Name, new.Name)) + } + if !reflect.DeepEqual(ch.Description, new.Description) { + changes = append(changes, NewChange(controlhistory.FieldDescription, ch.Description, new.Description)) + } + if !reflect.DeepEqual(ch.Status, new.Status) { + changes = append(changes, NewChange(controlhistory.FieldStatus, ch.Status, new.Status)) + } + if !reflect.DeepEqual(ch.ControlType, new.ControlType) { + changes = append(changes, NewChange(controlhistory.FieldControlType, ch.ControlType, new.ControlType)) + } + if !reflect.DeepEqual(ch.Version, new.Version) { + changes = append(changes, NewChange(controlhistory.FieldVersion, ch.Version, new.Version)) + } + if !reflect.DeepEqual(ch.ControlNumber, new.ControlNumber) { + changes = append(changes, NewChange(controlhistory.FieldControlNumber, ch.ControlNumber, new.ControlNumber)) + } + if !reflect.DeepEqual(ch.Family, new.Family) { + changes = append(changes, NewChange(controlhistory.FieldFamily, ch.Family, new.Family)) + } + if !reflect.DeepEqual(ch.Class, new.Class) { + changes = append(changes, NewChange(controlhistory.FieldClass, ch.Class, new.Class)) + } + if !reflect.DeepEqual(ch.Source, new.Source) { + changes = append(changes, NewChange(controlhistory.FieldSource, ch.Source, new.Source)) + } + if !reflect.DeepEqual(ch.Satisfies, new.Satisfies) { + changes = append(changes, NewChange(controlhistory.FieldSatisfies, ch.Satisfies, new.Satisfies)) + } + if !reflect.DeepEqual(ch.MappedFrameworks, new.MappedFrameworks) { + changes = append(changes, NewChange(controlhistory.FieldMappedFrameworks, ch.MappedFrameworks, new.MappedFrameworks)) + } + if !reflect.DeepEqual(ch.Details, new.Details) { + changes = append(changes, NewChange(controlhistory.FieldDetails, ch.Details, new.Details)) + } + return changes +} + +func (ch *ControlHistory) Diff(history *ControlHistory) (*HistoryDiff[ControlHistory], error) { + if ch.Ref != history.Ref { + return nil, MismatchedRefError + } + + chUnix, historyUnix := ch.HistoryTime.Unix(), history.HistoryTime.Unix() + chOlder := chUnix < historyUnix || (chUnix == historyUnix && ch.ID < history.ID) + historyOlder := chUnix > historyUnix || (chUnix == historyUnix && ch.ID > history.ID) + + if chOlder { + return &HistoryDiff[ControlHistory]{ + Old: ch, + New: history, + Changes: ch.changes(history), + }, nil + } else if historyOlder { + return &HistoryDiff[ControlHistory]{ + Old: history, + New: ch, + Changes: history.changes(ch), + }, nil + } + return nil, IdenticalHistoryError +} + +func (coh *ControlObjectiveHistory) changes(new *ControlObjectiveHistory) []Change { + var changes []Change + if !reflect.DeepEqual(coh.CreatedAt, new.CreatedAt) { + changes = append(changes, NewChange(controlobjectivehistory.FieldCreatedAt, coh.CreatedAt, new.CreatedAt)) + } + if !reflect.DeepEqual(coh.UpdatedAt, new.UpdatedAt) { + changes = append(changes, NewChange(controlobjectivehistory.FieldUpdatedAt, coh.UpdatedAt, new.UpdatedAt)) + } + if !reflect.DeepEqual(coh.CreatedBy, new.CreatedBy) { + changes = append(changes, NewChange(controlobjectivehistory.FieldCreatedBy, coh.CreatedBy, new.CreatedBy)) + } + if !reflect.DeepEqual(coh.DeletedAt, new.DeletedAt) { + changes = append(changes, NewChange(controlobjectivehistory.FieldDeletedAt, coh.DeletedAt, new.DeletedAt)) + } + if !reflect.DeepEqual(coh.DeletedBy, new.DeletedBy) { + changes = append(changes, NewChange(controlobjectivehistory.FieldDeletedBy, coh.DeletedBy, new.DeletedBy)) + } + if !reflect.DeepEqual(coh.MappingID, new.MappingID) { + changes = append(changes, NewChange(controlobjectivehistory.FieldMappingID, coh.MappingID, new.MappingID)) + } + if !reflect.DeepEqual(coh.Tags, new.Tags) { + changes = append(changes, NewChange(controlobjectivehistory.FieldTags, coh.Tags, new.Tags)) + } + if !reflect.DeepEqual(coh.Name, new.Name) { + changes = append(changes, NewChange(controlobjectivehistory.FieldName, coh.Name, new.Name)) + } + if !reflect.DeepEqual(coh.Description, new.Description) { + changes = append(changes, NewChange(controlobjectivehistory.FieldDescription, coh.Description, new.Description)) + } + if !reflect.DeepEqual(coh.Status, new.Status) { + changes = append(changes, NewChange(controlobjectivehistory.FieldStatus, coh.Status, new.Status)) + } + if !reflect.DeepEqual(coh.ControlObjectiveType, new.ControlObjectiveType) { + changes = append(changes, NewChange(controlobjectivehistory.FieldControlObjectiveType, coh.ControlObjectiveType, new.ControlObjectiveType)) + } + if !reflect.DeepEqual(coh.Version, new.Version) { + changes = append(changes, NewChange(controlobjectivehistory.FieldVersion, coh.Version, new.Version)) + } + if !reflect.DeepEqual(coh.ControlNumber, new.ControlNumber) { + changes = append(changes, NewChange(controlobjectivehistory.FieldControlNumber, coh.ControlNumber, new.ControlNumber)) + } + if !reflect.DeepEqual(coh.Family, new.Family) { + changes = append(changes, NewChange(controlobjectivehistory.FieldFamily, coh.Family, new.Family)) + } + if !reflect.DeepEqual(coh.Class, new.Class) { + changes = append(changes, NewChange(controlobjectivehistory.FieldClass, coh.Class, new.Class)) + } + if !reflect.DeepEqual(coh.Source, new.Source) { + changes = append(changes, NewChange(controlobjectivehistory.FieldSource, coh.Source, new.Source)) + } + if !reflect.DeepEqual(coh.MappedFrameworks, new.MappedFrameworks) { + changes = append(changes, NewChange(controlobjectivehistory.FieldMappedFrameworks, coh.MappedFrameworks, new.MappedFrameworks)) + } + if !reflect.DeepEqual(coh.Details, new.Details) { + changes = append(changes, NewChange(controlobjectivehistory.FieldDetails, coh.Details, new.Details)) + } + return changes +} + +func (coh *ControlObjectiveHistory) Diff(history *ControlObjectiveHistory) (*HistoryDiff[ControlObjectiveHistory], error) { + if coh.Ref != history.Ref { + return nil, MismatchedRefError + } + + cohUnix, historyUnix := coh.HistoryTime.Unix(), history.HistoryTime.Unix() + cohOlder := cohUnix < historyUnix || (cohUnix == historyUnix && coh.ID < history.ID) + historyOlder := cohUnix > historyUnix || (cohUnix == historyUnix && coh.ID > history.ID) + + if cohOlder { + return &HistoryDiff[ControlObjectiveHistory]{ + Old: coh, + New: history, + Changes: coh.changes(history), + }, nil + } else if historyOlder { + return &HistoryDiff[ControlObjectiveHistory]{ + Old: history, + New: coh, + Changes: history.changes(coh), + }, nil + } + return nil, IdenticalHistoryError +} + func (ddh *DocumentDataHistory) changes(new *DocumentDataHistory) []Change { var changes []Change if !reflect.DeepEqual(ddh.CreatedAt, new.CreatedAt) { @@ -1072,6 +1324,144 @@ func (ih *IntegrationHistory) Diff(history *IntegrationHistory) (*HistoryDiff[In return nil, IdenticalHistoryError } +func (iph *InternalPolicyHistory) changes(new *InternalPolicyHistory) []Change { + var changes []Change + if !reflect.DeepEqual(iph.CreatedAt, new.CreatedAt) { + changes = append(changes, NewChange(internalpolicyhistory.FieldCreatedAt, iph.CreatedAt, new.CreatedAt)) + } + if !reflect.DeepEqual(iph.UpdatedAt, new.UpdatedAt) { + changes = append(changes, NewChange(internalpolicyhistory.FieldUpdatedAt, iph.UpdatedAt, new.UpdatedAt)) + } + if !reflect.DeepEqual(iph.CreatedBy, new.CreatedBy) { + changes = append(changes, NewChange(internalpolicyhistory.FieldCreatedBy, iph.CreatedBy, new.CreatedBy)) + } + if !reflect.DeepEqual(iph.DeletedAt, new.DeletedAt) { + changes = append(changes, NewChange(internalpolicyhistory.FieldDeletedAt, iph.DeletedAt, new.DeletedAt)) + } + if !reflect.DeepEqual(iph.DeletedBy, new.DeletedBy) { + changes = append(changes, NewChange(internalpolicyhistory.FieldDeletedBy, iph.DeletedBy, new.DeletedBy)) + } + if !reflect.DeepEqual(iph.MappingID, new.MappingID) { + changes = append(changes, NewChange(internalpolicyhistory.FieldMappingID, iph.MappingID, new.MappingID)) + } + if !reflect.DeepEqual(iph.Tags, new.Tags) { + changes = append(changes, NewChange(internalpolicyhistory.FieldTags, iph.Tags, new.Tags)) + } + if !reflect.DeepEqual(iph.Name, new.Name) { + changes = append(changes, NewChange(internalpolicyhistory.FieldName, iph.Name, new.Name)) + } + if !reflect.DeepEqual(iph.Description, new.Description) { + changes = append(changes, NewChange(internalpolicyhistory.FieldDescription, iph.Description, new.Description)) + } + if !reflect.DeepEqual(iph.Status, new.Status) { + changes = append(changes, NewChange(internalpolicyhistory.FieldStatus, iph.Status, new.Status)) + } + if !reflect.DeepEqual(iph.PolicyType, new.PolicyType) { + changes = append(changes, NewChange(internalpolicyhistory.FieldPolicyType, iph.PolicyType, new.PolicyType)) + } + if !reflect.DeepEqual(iph.Version, new.Version) { + changes = append(changes, NewChange(internalpolicyhistory.FieldVersion, iph.Version, new.Version)) + } + if !reflect.DeepEqual(iph.PurposeAndScope, new.PurposeAndScope) { + changes = append(changes, NewChange(internalpolicyhistory.FieldPurposeAndScope, iph.PurposeAndScope, new.PurposeAndScope)) + } + if !reflect.DeepEqual(iph.Background, new.Background) { + changes = append(changes, NewChange(internalpolicyhistory.FieldBackground, iph.Background, new.Background)) + } + if !reflect.DeepEqual(iph.Details, new.Details) { + changes = append(changes, NewChange(internalpolicyhistory.FieldDetails, iph.Details, new.Details)) + } + return changes +} + +func (iph *InternalPolicyHistory) Diff(history *InternalPolicyHistory) (*HistoryDiff[InternalPolicyHistory], error) { + if iph.Ref != history.Ref { + return nil, MismatchedRefError + } + + iphUnix, historyUnix := iph.HistoryTime.Unix(), history.HistoryTime.Unix() + iphOlder := iphUnix < historyUnix || (iphUnix == historyUnix && iph.ID < history.ID) + historyOlder := iphUnix > historyUnix || (iphUnix == historyUnix && iph.ID > history.ID) + + if iphOlder { + return &HistoryDiff[InternalPolicyHistory]{ + Old: iph, + New: history, + Changes: iph.changes(history), + }, nil + } else if historyOlder { + return &HistoryDiff[InternalPolicyHistory]{ + Old: history, + New: iph, + Changes: history.changes(iph), + }, nil + } + return nil, IdenticalHistoryError +} + +func (nh *NarrativeHistory) changes(new *NarrativeHistory) []Change { + var changes []Change + if !reflect.DeepEqual(nh.CreatedAt, new.CreatedAt) { + changes = append(changes, NewChange(narrativehistory.FieldCreatedAt, nh.CreatedAt, new.CreatedAt)) + } + if !reflect.DeepEqual(nh.UpdatedAt, new.UpdatedAt) { + changes = append(changes, NewChange(narrativehistory.FieldUpdatedAt, nh.UpdatedAt, new.UpdatedAt)) + } + if !reflect.DeepEqual(nh.CreatedBy, new.CreatedBy) { + changes = append(changes, NewChange(narrativehistory.FieldCreatedBy, nh.CreatedBy, new.CreatedBy)) + } + if !reflect.DeepEqual(nh.DeletedAt, new.DeletedAt) { + changes = append(changes, NewChange(narrativehistory.FieldDeletedAt, nh.DeletedAt, new.DeletedAt)) + } + if !reflect.DeepEqual(nh.DeletedBy, new.DeletedBy) { + changes = append(changes, NewChange(narrativehistory.FieldDeletedBy, nh.DeletedBy, new.DeletedBy)) + } + if !reflect.DeepEqual(nh.MappingID, new.MappingID) { + changes = append(changes, NewChange(narrativehistory.FieldMappingID, nh.MappingID, new.MappingID)) + } + if !reflect.DeepEqual(nh.Tags, new.Tags) { + changes = append(changes, NewChange(narrativehistory.FieldTags, nh.Tags, new.Tags)) + } + if !reflect.DeepEqual(nh.Name, new.Name) { + changes = append(changes, NewChange(narrativehistory.FieldName, nh.Name, new.Name)) + } + if !reflect.DeepEqual(nh.Description, new.Description) { + changes = append(changes, NewChange(narrativehistory.FieldDescription, nh.Description, new.Description)) + } + if !reflect.DeepEqual(nh.Satisfies, new.Satisfies) { + changes = append(changes, NewChange(narrativehistory.FieldSatisfies, nh.Satisfies, new.Satisfies)) + } + if !reflect.DeepEqual(nh.Details, new.Details) { + changes = append(changes, NewChange(narrativehistory.FieldDetails, nh.Details, new.Details)) + } + return changes +} + +func (nh *NarrativeHistory) Diff(history *NarrativeHistory) (*HistoryDiff[NarrativeHistory], error) { + if nh.Ref != history.Ref { + return nil, MismatchedRefError + } + + nhUnix, historyUnix := nh.HistoryTime.Unix(), history.HistoryTime.Unix() + nhOlder := nhUnix < historyUnix || (nhUnix == historyUnix && nh.ID < history.ID) + historyOlder := nhUnix > historyUnix || (nhUnix == historyUnix && nh.ID > history.ID) + + if nhOlder { + return &HistoryDiff[NarrativeHistory]{ + Old: nh, + New: history, + Changes: nh.changes(history), + }, nil + } else if historyOlder { + return &HistoryDiff[NarrativeHistory]{ + Old: history, + New: nh, + Changes: history.changes(nh), + }, nil + } + return nil, IdenticalHistoryError +} + func (nh *NoteHistory) changes(new *NoteHistory) []Change { var changes []Change if !reflect.DeepEqual(nh.CreatedAt, new.CreatedAt) { @@ -1414,103 +1804,442 @@ func (osh *OrganizationSettingHistory) Diff(history *OrganizationSettingHistory) return nil, IdenticalHistoryError } -func (th *TemplateHistory) changes(new *TemplateHistory) []Change { +func (ph *ProcedureHistory) changes(new *ProcedureHistory) []Change { var changes []Change - if !reflect.DeepEqual(th.CreatedAt, new.CreatedAt) { - changes = append(changes, NewChange(templatehistory.FieldCreatedAt, th.CreatedAt, new.CreatedAt)) + if !reflect.DeepEqual(ph.CreatedAt, new.CreatedAt) { + changes = append(changes, NewChange(procedurehistory.FieldCreatedAt, ph.CreatedAt, new.CreatedAt)) } - if !reflect.DeepEqual(th.UpdatedAt, new.UpdatedAt) { - changes = append(changes, NewChange(templatehistory.FieldUpdatedAt, th.UpdatedAt, new.UpdatedAt)) + if !reflect.DeepEqual(ph.UpdatedAt, new.UpdatedAt) { + changes = append(changes, NewChange(procedurehistory.FieldUpdatedAt, ph.UpdatedAt, new.UpdatedAt)) } - if !reflect.DeepEqual(th.CreatedBy, new.CreatedBy) { - changes = append(changes, NewChange(templatehistory.FieldCreatedBy, th.CreatedBy, new.CreatedBy)) + if !reflect.DeepEqual(ph.CreatedBy, new.CreatedBy) { + changes = append(changes, NewChange(procedurehistory.FieldCreatedBy, ph.CreatedBy, new.CreatedBy)) } - if !reflect.DeepEqual(th.DeletedAt, new.DeletedAt) { - changes = append(changes, NewChange(templatehistory.FieldDeletedAt, th.DeletedAt, new.DeletedAt)) + if !reflect.DeepEqual(ph.DeletedAt, new.DeletedAt) { + changes = append(changes, NewChange(procedurehistory.FieldDeletedAt, ph.DeletedAt, new.DeletedAt)) } - if !reflect.DeepEqual(th.DeletedBy, new.DeletedBy) { - changes = append(changes, NewChange(templatehistory.FieldDeletedBy, th.DeletedBy, new.DeletedBy)) + if !reflect.DeepEqual(ph.DeletedBy, new.DeletedBy) { + changes = append(changes, NewChange(procedurehistory.FieldDeletedBy, ph.DeletedBy, new.DeletedBy)) } - if !reflect.DeepEqual(th.MappingID, new.MappingID) { - changes = append(changes, NewChange(templatehistory.FieldMappingID, th.MappingID, new.MappingID)) + if !reflect.DeepEqual(ph.MappingID, new.MappingID) { + changes = append(changes, NewChange(procedurehistory.FieldMappingID, ph.MappingID, new.MappingID)) } - if !reflect.DeepEqual(th.Tags, new.Tags) { - changes = append(changes, NewChange(templatehistory.FieldTags, th.Tags, new.Tags)) + if !reflect.DeepEqual(ph.Tags, new.Tags) { + changes = append(changes, NewChange(procedurehistory.FieldTags, ph.Tags, new.Tags)) } - if !reflect.DeepEqual(th.OwnerID, new.OwnerID) { - changes = append(changes, NewChange(templatehistory.FieldOwnerID, th.OwnerID, new.OwnerID)) + if !reflect.DeepEqual(ph.Name, new.Name) { + changes = append(changes, NewChange(procedurehistory.FieldName, ph.Name, new.Name)) } - if !reflect.DeepEqual(th.Name, new.Name) { - changes = append(changes, NewChange(templatehistory.FieldName, th.Name, new.Name)) + if !reflect.DeepEqual(ph.Description, new.Description) { + changes = append(changes, NewChange(procedurehistory.FieldDescription, ph.Description, new.Description)) } - if !reflect.DeepEqual(th.TemplateType, new.TemplateType) { - changes = append(changes, NewChange(templatehistory.FieldTemplateType, th.TemplateType, new.TemplateType)) + if !reflect.DeepEqual(ph.Status, new.Status) { + changes = append(changes, NewChange(procedurehistory.FieldStatus, ph.Status, new.Status)) } - if !reflect.DeepEqual(th.Description, new.Description) { - changes = append(changes, NewChange(templatehistory.FieldDescription, th.Description, new.Description)) + if !reflect.DeepEqual(ph.ProcedureType, new.ProcedureType) { + changes = append(changes, NewChange(procedurehistory.FieldProcedureType, ph.ProcedureType, new.ProcedureType)) } - if !reflect.DeepEqual(th.Jsonconfig, new.Jsonconfig) { - changes = append(changes, NewChange(templatehistory.FieldJsonconfig, th.Jsonconfig, new.Jsonconfig)) + if !reflect.DeepEqual(ph.Version, new.Version) { + changes = append(changes, NewChange(procedurehistory.FieldVersion, ph.Version, new.Version)) } - if !reflect.DeepEqual(th.Uischema, new.Uischema) { - changes = append(changes, NewChange(templatehistory.FieldUischema, th.Uischema, new.Uischema)) + if !reflect.DeepEqual(ph.PurposeAndScope, new.PurposeAndScope) { + changes = append(changes, NewChange(procedurehistory.FieldPurposeAndScope, ph.PurposeAndScope, new.PurposeAndScope)) + } + if !reflect.DeepEqual(ph.Background, new.Background) { + changes = append(changes, NewChange(procedurehistory.FieldBackground, ph.Background, new.Background)) + } + if !reflect.DeepEqual(ph.Satisfies, new.Satisfies) { + changes = append(changes, NewChange(procedurehistory.FieldSatisfies, ph.Satisfies, new.Satisfies)) + } + if !reflect.DeepEqual(ph.Details, new.Details) { + changes = append(changes, NewChange(procedurehistory.FieldDetails, ph.Details, new.Details)) } return changes } -func (th *TemplateHistory) Diff(history *TemplateHistory) (*HistoryDiff[TemplateHistory], error) { - if th.Ref != history.Ref { +func (ph *ProcedureHistory) Diff(history *ProcedureHistory) (*HistoryDiff[ProcedureHistory], error) { + if ph.Ref != history.Ref { return nil, MismatchedRefError } - thUnix, historyUnix := th.HistoryTime.Unix(), history.HistoryTime.Unix() - thOlder := thUnix < historyUnix || (thUnix == historyUnix && th.ID < history.ID) - historyOlder := thUnix > historyUnix || (thUnix == historyUnix && th.ID > history.ID) + phUnix, historyUnix := ph.HistoryTime.Unix(), history.HistoryTime.Unix() + phOlder := phUnix < historyUnix || (phUnix == historyUnix && ph.ID < history.ID) + historyOlder := phUnix > historyUnix || (phUnix == historyUnix && ph.ID > history.ID) - if thOlder { - return &HistoryDiff[TemplateHistory]{ - Old: th, + if phOlder { + return &HistoryDiff[ProcedureHistory]{ + Old: ph, New: history, - Changes: th.changes(history), + Changes: ph.changes(history), }, nil } else if historyOlder { - return &HistoryDiff[TemplateHistory]{ + return &HistoryDiff[ProcedureHistory]{ Old: history, - New: th, - Changes: history.changes(th), + New: ph, + Changes: history.changes(ph), }, nil } return nil, IdenticalHistoryError } -func (uh *UserHistory) changes(new *UserHistory) []Change { +func (rh *RiskHistory) changes(new *RiskHistory) []Change { var changes []Change - if !reflect.DeepEqual(uh.CreatedAt, new.CreatedAt) { - changes = append(changes, NewChange(userhistory.FieldCreatedAt, uh.CreatedAt, new.CreatedAt)) + if !reflect.DeepEqual(rh.CreatedAt, new.CreatedAt) { + changes = append(changes, NewChange(riskhistory.FieldCreatedAt, rh.CreatedAt, new.CreatedAt)) } - if !reflect.DeepEqual(uh.UpdatedAt, new.UpdatedAt) { - changes = append(changes, NewChange(userhistory.FieldUpdatedAt, uh.UpdatedAt, new.UpdatedAt)) + if !reflect.DeepEqual(rh.UpdatedAt, new.UpdatedAt) { + changes = append(changes, NewChange(riskhistory.FieldUpdatedAt, rh.UpdatedAt, new.UpdatedAt)) } - if !reflect.DeepEqual(uh.CreatedBy, new.CreatedBy) { - changes = append(changes, NewChange(userhistory.FieldCreatedBy, uh.CreatedBy, new.CreatedBy)) + if !reflect.DeepEqual(rh.CreatedBy, new.CreatedBy) { + changes = append(changes, NewChange(riskhistory.FieldCreatedBy, rh.CreatedBy, new.CreatedBy)) } - if !reflect.DeepEqual(uh.DeletedAt, new.DeletedAt) { - changes = append(changes, NewChange(userhistory.FieldDeletedAt, uh.DeletedAt, new.DeletedAt)) + if !reflect.DeepEqual(rh.DeletedAt, new.DeletedAt) { + changes = append(changes, NewChange(riskhistory.FieldDeletedAt, rh.DeletedAt, new.DeletedAt)) } - if !reflect.DeepEqual(uh.DeletedBy, new.DeletedBy) { - changes = append(changes, NewChange(userhistory.FieldDeletedBy, uh.DeletedBy, new.DeletedBy)) + if !reflect.DeepEqual(rh.DeletedBy, new.DeletedBy) { + changes = append(changes, NewChange(riskhistory.FieldDeletedBy, rh.DeletedBy, new.DeletedBy)) } - if !reflect.DeepEqual(uh.MappingID, new.MappingID) { - changes = append(changes, NewChange(userhistory.FieldMappingID, uh.MappingID, new.MappingID)) + if !reflect.DeepEqual(rh.MappingID, new.MappingID) { + changes = append(changes, NewChange(riskhistory.FieldMappingID, rh.MappingID, new.MappingID)) } - if !reflect.DeepEqual(uh.Tags, new.Tags) { - changes = append(changes, NewChange(userhistory.FieldTags, uh.Tags, new.Tags)) + if !reflect.DeepEqual(rh.Tags, new.Tags) { + changes = append(changes, NewChange(riskhistory.FieldTags, rh.Tags, new.Tags)) } - if !reflect.DeepEqual(uh.Email, new.Email) { - changes = append(changes, NewChange(userhistory.FieldEmail, uh.Email, new.Email)) + if !reflect.DeepEqual(rh.Name, new.Name) { + changes = append(changes, NewChange(riskhistory.FieldName, rh.Name, new.Name)) } - if !reflect.DeepEqual(uh.FirstName, new.FirstName) { - changes = append(changes, NewChange(userhistory.FieldFirstName, uh.FirstName, new.FirstName)) + if !reflect.DeepEqual(rh.Description, new.Description) { + changes = append(changes, NewChange(riskhistory.FieldDescription, rh.Description, new.Description)) + } + if !reflect.DeepEqual(rh.Status, new.Status) { + changes = append(changes, NewChange(riskhistory.FieldStatus, rh.Status, new.Status)) + } + if !reflect.DeepEqual(rh.RiskType, new.RiskType) { + changes = append(changes, NewChange(riskhistory.FieldRiskType, rh.RiskType, new.RiskType)) + } + if !reflect.DeepEqual(rh.BusinessCosts, new.BusinessCosts) { + changes = append(changes, NewChange(riskhistory.FieldBusinessCosts, rh.BusinessCosts, new.BusinessCosts)) + } + if !reflect.DeepEqual(rh.Impact, new.Impact) { + changes = append(changes, NewChange(riskhistory.FieldImpact, rh.Impact, new.Impact)) + } + if !reflect.DeepEqual(rh.Likelihood, new.Likelihood) { + changes = append(changes, NewChange(riskhistory.FieldLikelihood, rh.Likelihood, new.Likelihood)) + } + if !reflect.DeepEqual(rh.Mitigation, new.Mitigation) { + changes = append(changes, NewChange(riskhistory.FieldMitigation, rh.Mitigation, new.Mitigation)) + } + if !reflect.DeepEqual(rh.Satisfies, new.Satisfies) { + changes = append(changes, NewChange(riskhistory.FieldSatisfies, rh.Satisfies, new.Satisfies)) + } + if !reflect.DeepEqual(rh.Details, new.Details) { + changes = append(changes, NewChange(riskhistory.FieldDetails, rh.Details, new.Details)) + } + return changes +} + +func (rh *RiskHistory) Diff(history *RiskHistory) (*HistoryDiff[RiskHistory], error) { + if rh.Ref != history.Ref { + return nil, MismatchedRefError + } + + rhUnix, historyUnix := rh.HistoryTime.Unix(), history.HistoryTime.Unix() + rhOlder := rhUnix < historyUnix || (rhUnix == historyUnix && rh.ID < history.ID) + historyOlder := rhUnix > historyUnix || (rhUnix == historyUnix && rh.ID > history.ID) + + if rhOlder { + return &HistoryDiff[RiskHistory]{ + Old: rh, + New: history, + Changes: rh.changes(history), + }, nil + } else if historyOlder { + return &HistoryDiff[RiskHistory]{ + Old: history, + New: rh, + Changes: history.changes(rh), + }, nil + } + return nil, IdenticalHistoryError +} + +func (sh *StandardHistory) changes(new *StandardHistory) []Change { + var changes []Change + if !reflect.DeepEqual(sh.CreatedAt, new.CreatedAt) { + changes = append(changes, NewChange(standardhistory.FieldCreatedAt, sh.CreatedAt, new.CreatedAt)) + } + if !reflect.DeepEqual(sh.UpdatedAt, new.UpdatedAt) { + changes = append(changes, NewChange(standardhistory.FieldUpdatedAt, sh.UpdatedAt, new.UpdatedAt)) + } + if !reflect.DeepEqual(sh.CreatedBy, new.CreatedBy) { + changes = append(changes, NewChange(standardhistory.FieldCreatedBy, sh.CreatedBy, new.CreatedBy)) + } + if !reflect.DeepEqual(sh.DeletedAt, new.DeletedAt) { + changes = append(changes, NewChange(standardhistory.FieldDeletedAt, sh.DeletedAt, new.DeletedAt)) + } + if !reflect.DeepEqual(sh.DeletedBy, new.DeletedBy) { + changes = append(changes, NewChange(standardhistory.FieldDeletedBy, sh.DeletedBy, new.DeletedBy)) + } + if !reflect.DeepEqual(sh.MappingID, new.MappingID) { + changes = append(changes, NewChange(standardhistory.FieldMappingID, sh.MappingID, new.MappingID)) + } + if !reflect.DeepEqual(sh.Tags, new.Tags) { + changes = append(changes, NewChange(standardhistory.FieldTags, sh.Tags, new.Tags)) + } + if !reflect.DeepEqual(sh.Name, new.Name) { + changes = append(changes, NewChange(standardhistory.FieldName, sh.Name, new.Name)) + } + if !reflect.DeepEqual(sh.Description, new.Description) { + changes = append(changes, NewChange(standardhistory.FieldDescription, sh.Description, new.Description)) + } + if !reflect.DeepEqual(sh.Family, new.Family) { + changes = append(changes, NewChange(standardhistory.FieldFamily, sh.Family, new.Family)) + } + if !reflect.DeepEqual(sh.Status, new.Status) { + changes = append(changes, NewChange(standardhistory.FieldStatus, sh.Status, new.Status)) + } + if !reflect.DeepEqual(sh.StandardType, new.StandardType) { + changes = append(changes, NewChange(standardhistory.FieldStandardType, sh.StandardType, new.StandardType)) + } + if !reflect.DeepEqual(sh.Version, new.Version) { + changes = append(changes, NewChange(standardhistory.FieldVersion, sh.Version, new.Version)) + } + if !reflect.DeepEqual(sh.PurposeAndScope, new.PurposeAndScope) { + changes = append(changes, NewChange(standardhistory.FieldPurposeAndScope, sh.PurposeAndScope, new.PurposeAndScope)) + } + if !reflect.DeepEqual(sh.Background, new.Background) { + changes = append(changes, NewChange(standardhistory.FieldBackground, sh.Background, new.Background)) + } + if !reflect.DeepEqual(sh.Satisfies, new.Satisfies) { + changes = append(changes, NewChange(standardhistory.FieldSatisfies, sh.Satisfies, new.Satisfies)) + } + if !reflect.DeepEqual(sh.Details, new.Details) { + changes = append(changes, NewChange(standardhistory.FieldDetails, sh.Details, new.Details)) + } + return changes +} + +func (sh *StandardHistory) Diff(history *StandardHistory) (*HistoryDiff[StandardHistory], error) { + if sh.Ref != history.Ref { + return nil, MismatchedRefError + } + + shUnix, historyUnix := sh.HistoryTime.Unix(), history.HistoryTime.Unix() + shOlder := shUnix < historyUnix || (shUnix == historyUnix && sh.ID < history.ID) + historyOlder := shUnix > historyUnix || (shUnix == historyUnix && sh.ID > history.ID) + + if shOlder { + return &HistoryDiff[StandardHistory]{ + Old: sh, + New: history, + Changes: sh.changes(history), + }, nil + } else if historyOlder { + return &HistoryDiff[StandardHistory]{ + Old: history, + New: sh, + Changes: history.changes(sh), + }, nil + } + return nil, IdenticalHistoryError +} + +func (sh *SubcontrolHistory) changes(new *SubcontrolHistory) []Change { + var changes []Change + if !reflect.DeepEqual(sh.CreatedAt, new.CreatedAt) { + changes = append(changes, NewChange(subcontrolhistory.FieldCreatedAt, sh.CreatedAt, new.CreatedAt)) + } + if !reflect.DeepEqual(sh.UpdatedAt, new.UpdatedAt) { + changes = append(changes, NewChange(subcontrolhistory.FieldUpdatedAt, sh.UpdatedAt, new.UpdatedAt)) + } + if !reflect.DeepEqual(sh.CreatedBy, new.CreatedBy) { + changes = append(changes, NewChange(subcontrolhistory.FieldCreatedBy, sh.CreatedBy, new.CreatedBy)) + } + if !reflect.DeepEqual(sh.DeletedAt, new.DeletedAt) { + changes = append(changes, NewChange(subcontrolhistory.FieldDeletedAt, sh.DeletedAt, new.DeletedAt)) + } + if !reflect.DeepEqual(sh.DeletedBy, new.DeletedBy) { + changes = append(changes, NewChange(subcontrolhistory.FieldDeletedBy, sh.DeletedBy, new.DeletedBy)) + } + if !reflect.DeepEqual(sh.MappingID, new.MappingID) { + changes = append(changes, NewChange(subcontrolhistory.FieldMappingID, sh.MappingID, new.MappingID)) + } + if !reflect.DeepEqual(sh.Tags, new.Tags) { + changes = append(changes, NewChange(subcontrolhistory.FieldTags, sh.Tags, new.Tags)) + } + if !reflect.DeepEqual(sh.Name, new.Name) { + changes = append(changes, NewChange(subcontrolhistory.FieldName, sh.Name, new.Name)) + } + if !reflect.DeepEqual(sh.Description, new.Description) { + changes = append(changes, NewChange(subcontrolhistory.FieldDescription, sh.Description, new.Description)) + } + if !reflect.DeepEqual(sh.Status, new.Status) { + changes = append(changes, NewChange(subcontrolhistory.FieldStatus, sh.Status, new.Status)) + } + if !reflect.DeepEqual(sh.SubcontrolType, new.SubcontrolType) { + changes = append(changes, NewChange(subcontrolhistory.FieldSubcontrolType, sh.SubcontrolType, new.SubcontrolType)) + } + if !reflect.DeepEqual(sh.Version, new.Version) { + changes = append(changes, NewChange(subcontrolhistory.FieldVersion, sh.Version, new.Version)) + } + if !reflect.DeepEqual(sh.SubcontrolNumber, new.SubcontrolNumber) { + changes = append(changes, NewChange(subcontrolhistory.FieldSubcontrolNumber, sh.SubcontrolNumber, new.SubcontrolNumber)) + } + if !reflect.DeepEqual(sh.Family, new.Family) { + changes = append(changes, NewChange(subcontrolhistory.FieldFamily, sh.Family, new.Family)) + } + if !reflect.DeepEqual(sh.Class, new.Class) { + changes = append(changes, NewChange(subcontrolhistory.FieldClass, sh.Class, new.Class)) + } + if !reflect.DeepEqual(sh.Source, new.Source) { + changes = append(changes, NewChange(subcontrolhistory.FieldSource, sh.Source, new.Source)) + } + if !reflect.DeepEqual(sh.MappedFrameworks, new.MappedFrameworks) { + changes = append(changes, NewChange(subcontrolhistory.FieldMappedFrameworks, sh.MappedFrameworks, new.MappedFrameworks)) + } + if !reflect.DeepEqual(sh.ImplementationEvidence, new.ImplementationEvidence) { + changes = append(changes, NewChange(subcontrolhistory.FieldImplementationEvidence, sh.ImplementationEvidence, new.ImplementationEvidence)) + } + if !reflect.DeepEqual(sh.ImplementationStatus, new.ImplementationStatus) { + changes = append(changes, NewChange(subcontrolhistory.FieldImplementationStatus, sh.ImplementationStatus, new.ImplementationStatus)) + } + if !reflect.DeepEqual(sh.ImplementationDate, new.ImplementationDate) { + changes = append(changes, NewChange(subcontrolhistory.FieldImplementationDate, sh.ImplementationDate, new.ImplementationDate)) + } + if !reflect.DeepEqual(sh.ImplementationVerification, new.ImplementationVerification) { + changes = append(changes, NewChange(subcontrolhistory.FieldImplementationVerification, sh.ImplementationVerification, new.ImplementationVerification)) + } + if !reflect.DeepEqual(sh.ImplementationVerificationDate, new.ImplementationVerificationDate) { + changes = append(changes, NewChange(subcontrolhistory.FieldImplementationVerificationDate, sh.ImplementationVerificationDate, new.ImplementationVerificationDate)) + } + if !reflect.DeepEqual(sh.Details, new.Details) { + changes = append(changes, NewChange(subcontrolhistory.FieldDetails, sh.Details, new.Details)) + } + return changes +} + +func (sh *SubcontrolHistory) Diff(history *SubcontrolHistory) (*HistoryDiff[SubcontrolHistory], error) { + if sh.Ref != history.Ref { + return nil, MismatchedRefError + } + + shUnix, historyUnix := sh.HistoryTime.Unix(), history.HistoryTime.Unix() + shOlder := shUnix < historyUnix || (shUnix == historyUnix && sh.ID < history.ID) + historyOlder := shUnix > historyUnix || (shUnix == historyUnix && sh.ID > history.ID) + + if shOlder { + return &HistoryDiff[SubcontrolHistory]{ + Old: sh, + New: history, + Changes: sh.changes(history), + }, nil + } else if historyOlder { + return &HistoryDiff[SubcontrolHistory]{ + Old: history, + New: sh, + Changes: history.changes(sh), + }, nil + } + return nil, IdenticalHistoryError +} + +func (th *TemplateHistory) changes(new *TemplateHistory) []Change { + var changes []Change + if !reflect.DeepEqual(th.CreatedAt, new.CreatedAt) { + changes = append(changes, NewChange(templatehistory.FieldCreatedAt, th.CreatedAt, new.CreatedAt)) + } + if !reflect.DeepEqual(th.UpdatedAt, new.UpdatedAt) { + changes = append(changes, NewChange(templatehistory.FieldUpdatedAt, th.UpdatedAt, new.UpdatedAt)) + } + if !reflect.DeepEqual(th.CreatedBy, new.CreatedBy) { + changes = append(changes, NewChange(templatehistory.FieldCreatedBy, th.CreatedBy, new.CreatedBy)) + } + if !reflect.DeepEqual(th.DeletedAt, new.DeletedAt) { + changes = append(changes, NewChange(templatehistory.FieldDeletedAt, th.DeletedAt, new.DeletedAt)) + } + if !reflect.DeepEqual(th.DeletedBy, new.DeletedBy) { + changes = append(changes, NewChange(templatehistory.FieldDeletedBy, th.DeletedBy, new.DeletedBy)) + } + if !reflect.DeepEqual(th.MappingID, new.MappingID) { + changes = append(changes, NewChange(templatehistory.FieldMappingID, th.MappingID, new.MappingID)) + } + if !reflect.DeepEqual(th.Tags, new.Tags) { + changes = append(changes, NewChange(templatehistory.FieldTags, th.Tags, new.Tags)) + } + if !reflect.DeepEqual(th.OwnerID, new.OwnerID) { + changes = append(changes, NewChange(templatehistory.FieldOwnerID, th.OwnerID, new.OwnerID)) + } + if !reflect.DeepEqual(th.Name, new.Name) { + changes = append(changes, NewChange(templatehistory.FieldName, th.Name, new.Name)) + } + if !reflect.DeepEqual(th.TemplateType, new.TemplateType) { + changes = append(changes, NewChange(templatehistory.FieldTemplateType, th.TemplateType, new.TemplateType)) + } + if !reflect.DeepEqual(th.Description, new.Description) { + changes = append(changes, NewChange(templatehistory.FieldDescription, th.Description, new.Description)) + } + if !reflect.DeepEqual(th.Jsonconfig, new.Jsonconfig) { + changes = append(changes, NewChange(templatehistory.FieldJsonconfig, th.Jsonconfig, new.Jsonconfig)) + } + if !reflect.DeepEqual(th.Uischema, new.Uischema) { + changes = append(changes, NewChange(templatehistory.FieldUischema, th.Uischema, new.Uischema)) + } + return changes +} + +func (th *TemplateHistory) Diff(history *TemplateHistory) (*HistoryDiff[TemplateHistory], error) { + if th.Ref != history.Ref { + return nil, MismatchedRefError + } + + thUnix, historyUnix := th.HistoryTime.Unix(), history.HistoryTime.Unix() + thOlder := thUnix < historyUnix || (thUnix == historyUnix && th.ID < history.ID) + historyOlder := thUnix > historyUnix || (thUnix == historyUnix && th.ID > history.ID) + + if thOlder { + return &HistoryDiff[TemplateHistory]{ + Old: th, + New: history, + Changes: th.changes(history), + }, nil + } else if historyOlder { + return &HistoryDiff[TemplateHistory]{ + Old: history, + New: th, + Changes: history.changes(th), + }, nil + } + return nil, IdenticalHistoryError +} + +func (uh *UserHistory) changes(new *UserHistory) []Change { + var changes []Change + if !reflect.DeepEqual(uh.CreatedAt, new.CreatedAt) { + changes = append(changes, NewChange(userhistory.FieldCreatedAt, uh.CreatedAt, new.CreatedAt)) + } + if !reflect.DeepEqual(uh.UpdatedAt, new.UpdatedAt) { + changes = append(changes, NewChange(userhistory.FieldUpdatedAt, uh.UpdatedAt, new.UpdatedAt)) + } + if !reflect.DeepEqual(uh.CreatedBy, new.CreatedBy) { + changes = append(changes, NewChange(userhistory.FieldCreatedBy, uh.CreatedBy, new.CreatedBy)) + } + if !reflect.DeepEqual(uh.DeletedAt, new.DeletedAt) { + changes = append(changes, NewChange(userhistory.FieldDeletedAt, uh.DeletedAt, new.DeletedAt)) + } + if !reflect.DeepEqual(uh.DeletedBy, new.DeletedBy) { + changes = append(changes, NewChange(userhistory.FieldDeletedBy, uh.DeletedBy, new.DeletedBy)) + } + if !reflect.DeepEqual(uh.MappingID, new.MappingID) { + changes = append(changes, NewChange(userhistory.FieldMappingID, uh.MappingID, new.MappingID)) + } + if !reflect.DeepEqual(uh.Tags, new.Tags) { + changes = append(changes, NewChange(userhistory.FieldTags, uh.Tags, new.Tags)) + } + if !reflect.DeepEqual(uh.Email, new.Email) { + changes = append(changes, NewChange(userhistory.FieldEmail, uh.Email, new.Email)) + } + if !reflect.DeepEqual(uh.FirstName, new.FirstName) { + changes = append(changes, NewChange(userhistory.FieldFirstName, uh.FirstName, new.FirstName)) } if !reflect.DeepEqual(uh.LastName, new.LastName) { changes = append(changes, NewChange(userhistory.FieldLastName, uh.LastName, new.LastName)) @@ -1769,12 +2498,30 @@ func (c *Client) Audit(ctx context.Context) ([][]string, error) { } var record [][]string var err error + record, err = auditActionPlanHistory(ctx, c.config) + if err != nil { + return nil, err + } + records = append(records, record...) + record, err = auditContactHistory(ctx, c.config) if err != nil { return nil, err } records = append(records, record...) + record, err = auditControlHistory(ctx, c.config) + if err != nil { + return nil, err + } + records = append(records, record...) + + record, err = auditControlObjectiveHistory(ctx, c.config) + if err != nil { + return nil, err + } + records = append(records, record...) + record, err = auditDocumentDataHistory(ctx, c.config) if err != nil { return nil, err @@ -1859,6 +2606,18 @@ func (c *Client) Audit(ctx context.Context) ([][]string, error) { } records = append(records, record...) + record, err = auditInternalPolicyHistory(ctx, c.config) + if err != nil { + return nil, err + } + records = append(records, record...) + + record, err = auditNarrativeHistory(ctx, c.config) + if err != nil { + return nil, err + } + records = append(records, record...) + record, err = auditNoteHistory(ctx, c.config) if err != nil { return nil, err @@ -1889,6 +2648,30 @@ func (c *Client) Audit(ctx context.Context) ([][]string, error) { } records = append(records, record...) + record, err = auditProcedureHistory(ctx, c.config) + if err != nil { + return nil, err + } + records = append(records, record...) + + record, err = auditRiskHistory(ctx, c.config) + if err != nil { + return nil, err + } + records = append(records, record...) + + record, err = auditStandardHistory(ctx, c.config) + if err != nil { + return nil, err + } + records = append(records, record...) + + record, err = auditSubcontrolHistory(ctx, c.config) + if err != nil { + return nil, err + } + records = append(records, record...) + record, err = auditTemplateHistory(ctx, c.config) if err != nil { return nil, err @@ -1923,6 +2706,15 @@ func (c *Client) AuditWithFilter(ctx context.Context, tableName string) ([][]str var record [][]string var err error + if tableName == "" || tableName == strings.TrimSuffix("ActionPlanHistory", "History") { + record, err = auditActionPlanHistory(ctx, c.config) + if err != nil { + return nil, err + } + + records = append(records, record...) + } + if tableName == "" || tableName == strings.TrimSuffix("ContactHistory", "History") { record, err = auditContactHistory(ctx, c.config) if err != nil { @@ -1932,6 +2724,24 @@ func (c *Client) AuditWithFilter(ctx context.Context, tableName string) ([][]str records = append(records, record...) } + if tableName == "" || tableName == strings.TrimSuffix("ControlHistory", "History") { + record, err = auditControlHistory(ctx, c.config) + if err != nil { + return nil, err + } + + records = append(records, record...) + } + + if tableName == "" || tableName == strings.TrimSuffix("ControlObjectiveHistory", "History") { + record, err = auditControlObjectiveHistory(ctx, c.config) + if err != nil { + return nil, err + } + + records = append(records, record...) + } + if tableName == "" || tableName == strings.TrimSuffix("DocumentDataHistory", "History") { record, err = auditDocumentDataHistory(ctx, c.config) if err != nil { @@ -2058,6 +2868,24 @@ func (c *Client) AuditWithFilter(ctx context.Context, tableName string) ([][]str records = append(records, record...) } + if tableName == "" || tableName == strings.TrimSuffix("InternalPolicyHistory", "History") { + record, err = auditInternalPolicyHistory(ctx, c.config) + if err != nil { + return nil, err + } + + records = append(records, record...) + } + + if tableName == "" || tableName == strings.TrimSuffix("NarrativeHistory", "History") { + record, err = auditNarrativeHistory(ctx, c.config) + if err != nil { + return nil, err + } + + records = append(records, record...) + } + if tableName == "" || tableName == strings.TrimSuffix("NoteHistory", "History") { record, err = auditNoteHistory(ctx, c.config) if err != nil { @@ -2103,6 +2931,42 @@ func (c *Client) AuditWithFilter(ctx context.Context, tableName string) ([][]str records = append(records, record...) } + if tableName == "" || tableName == strings.TrimSuffix("ProcedureHistory", "History") { + record, err = auditProcedureHistory(ctx, c.config) + if err != nil { + return nil, err + } + + records = append(records, record...) + } + + if tableName == "" || tableName == strings.TrimSuffix("RiskHistory", "History") { + record, err = auditRiskHistory(ctx, c.config) + if err != nil { + return nil, err + } + + records = append(records, record...) + } + + if tableName == "" || tableName == strings.TrimSuffix("StandardHistory", "History") { + record, err = auditStandardHistory(ctx, c.config) + if err != nil { + return nil, err + } + + records = append(records, record...) + } + + if tableName == "" || tableName == strings.TrimSuffix("SubcontrolHistory", "History") { + record, err = auditSubcontrolHistory(ctx, c.config) + if err != nil { + return nil, err + } + + records = append(records, record...) + } + if tableName == "" || tableName == strings.TrimSuffix("TemplateHistory", "History") { record, err = auditTemplateHistory(ctx, c.config) if err != nil { @@ -2171,18 +3035,177 @@ func (r *record) toRow() []string { return row } +type actionplanhistoryref struct { + Ref string +} + +func auditActionPlanHistory(ctx context.Context, config config) ([][]string, error) { + var records = [][]string{} + var refs []actionplanhistoryref + client := NewActionPlanHistoryClient(config) + err := client.Query(). + Unique(true). + Order(actionplanhistory.ByRef()). + Select(actionplanhistory.FieldRef). + Scan(ctx, &refs) + + if err != nil { + return nil, err + } + for _, currRef := range refs { + histories, err := client.Query(). + Where(actionplanhistory.Ref(currRef.Ref)). + Order(actionplanhistory.ByHistoryTime()). + All(ctx) + if err != nil { + return nil, err + } + + for i := 0; i < len(histories); i++ { + curr := histories[i] + record := record{ + Table: "ActionPlanHistory", + RefId: curr.Ref, + HistoryTime: curr.HistoryTime, + Operation: curr.Operation, + UpdatedBy: curr.UpdatedBy, + } + switch curr.Operation { + case history.OpTypeInsert: + record.Changes = (&ActionPlanHistory{}).changes(curr) + case history.OpTypeDelete: + record.Changes = curr.changes(&ActionPlanHistory{}) + default: + if i == 0 { + record.Changes = (&ActionPlanHistory{}).changes(curr) + } else { + record.Changes = histories[i-1].changes(curr) + } + } + records = append(records, record.toRow()) + } + } + return records, nil +} + type contacthistoryref struct { Ref string } func auditContactHistory(ctx context.Context, config config) ([][]string, error) { var records = [][]string{} - var refs []contacthistoryref - client := NewContactHistoryClient(config) + var refs []contacthistoryref + client := NewContactHistoryClient(config) + err := client.Query(). + Unique(true). + Order(contacthistory.ByRef()). + Select(contacthistory.FieldRef). + Scan(ctx, &refs) + + if err != nil { + return nil, err + } + for _, currRef := range refs { + histories, err := client.Query(). + Where(contacthistory.Ref(currRef.Ref)). + Order(contacthistory.ByHistoryTime()). + All(ctx) + if err != nil { + return nil, err + } + + for i := 0; i < len(histories); i++ { + curr := histories[i] + record := record{ + Table: "ContactHistory", + RefId: curr.Ref, + HistoryTime: curr.HistoryTime, + Operation: curr.Operation, + UpdatedBy: curr.UpdatedBy, + } + switch curr.Operation { + case history.OpTypeInsert: + record.Changes = (&ContactHistory{}).changes(curr) + case history.OpTypeDelete: + record.Changes = curr.changes(&ContactHistory{}) + default: + if i == 0 { + record.Changes = (&ContactHistory{}).changes(curr) + } else { + record.Changes = histories[i-1].changes(curr) + } + } + records = append(records, record.toRow()) + } + } + return records, nil +} + +type controlhistoryref struct { + Ref string +} + +func auditControlHistory(ctx context.Context, config config) ([][]string, error) { + var records = [][]string{} + var refs []controlhistoryref + client := NewControlHistoryClient(config) + err := client.Query(). + Unique(true). + Order(controlhistory.ByRef()). + Select(controlhistory.FieldRef). + Scan(ctx, &refs) + + if err != nil { + return nil, err + } + for _, currRef := range refs { + histories, err := client.Query(). + Where(controlhistory.Ref(currRef.Ref)). + Order(controlhistory.ByHistoryTime()). + All(ctx) + if err != nil { + return nil, err + } + + for i := 0; i < len(histories); i++ { + curr := histories[i] + record := record{ + Table: "ControlHistory", + RefId: curr.Ref, + HistoryTime: curr.HistoryTime, + Operation: curr.Operation, + UpdatedBy: curr.UpdatedBy, + } + switch curr.Operation { + case history.OpTypeInsert: + record.Changes = (&ControlHistory{}).changes(curr) + case history.OpTypeDelete: + record.Changes = curr.changes(&ControlHistory{}) + default: + if i == 0 { + record.Changes = (&ControlHistory{}).changes(curr) + } else { + record.Changes = histories[i-1].changes(curr) + } + } + records = append(records, record.toRow()) + } + } + return records, nil +} + +type controlobjectivehistoryref struct { + Ref string +} + +func auditControlObjectiveHistory(ctx context.Context, config config) ([][]string, error) { + var records = [][]string{} + var refs []controlobjectivehistoryref + client := NewControlObjectiveHistoryClient(config) err := client.Query(). Unique(true). - Order(contacthistory.ByRef()). - Select(contacthistory.FieldRef). + Order(controlobjectivehistory.ByRef()). + Select(controlobjectivehistory.FieldRef). Scan(ctx, &refs) if err != nil { @@ -2190,8 +3213,8 @@ func auditContactHistory(ctx context.Context, config config) ([][]string, error) } for _, currRef := range refs { histories, err := client.Query(). - Where(contacthistory.Ref(currRef.Ref)). - Order(contacthistory.ByHistoryTime()). + Where(controlobjectivehistory.Ref(currRef.Ref)). + Order(controlobjectivehistory.ByHistoryTime()). All(ctx) if err != nil { return nil, err @@ -2200,7 +3223,7 @@ func auditContactHistory(ctx context.Context, config config) ([][]string, error) for i := 0; i < len(histories); i++ { curr := histories[i] record := record{ - Table: "ContactHistory", + Table: "ControlObjectiveHistory", RefId: curr.Ref, HistoryTime: curr.HistoryTime, Operation: curr.Operation, @@ -2208,12 +3231,12 @@ func auditContactHistory(ctx context.Context, config config) ([][]string, error) } switch curr.Operation { case history.OpTypeInsert: - record.Changes = (&ContactHistory{}).changes(curr) + record.Changes = (&ControlObjectiveHistory{}).changes(curr) case history.OpTypeDelete: - record.Changes = curr.changes(&ContactHistory{}) + record.Changes = curr.changes(&ControlObjectiveHistory{}) default: if i == 0 { - record.Changes = (&ContactHistory{}).changes(curr) + record.Changes = (&ControlObjectiveHistory{}).changes(curr) } else { record.Changes = histories[i-1].changes(curr) } @@ -2966,6 +3989,112 @@ func auditIntegrationHistory(ctx context.Context, config config) ([][]string, er return records, nil } +type internalpolicyhistoryref struct { + Ref string +} + +func auditInternalPolicyHistory(ctx context.Context, config config) ([][]string, error) { + var records = [][]string{} + var refs []internalpolicyhistoryref + client := NewInternalPolicyHistoryClient(config) + err := client.Query(). + Unique(true). + Order(internalpolicyhistory.ByRef()). + Select(internalpolicyhistory.FieldRef). + Scan(ctx, &refs) + + if err != nil { + return nil, err + } + for _, currRef := range refs { + histories, err := client.Query(). + Where(internalpolicyhistory.Ref(currRef.Ref)). + Order(internalpolicyhistory.ByHistoryTime()). + All(ctx) + if err != nil { + return nil, err + } + + for i := 0; i < len(histories); i++ { + curr := histories[i] + record := record{ + Table: "InternalPolicyHistory", + RefId: curr.Ref, + HistoryTime: curr.HistoryTime, + Operation: curr.Operation, + UpdatedBy: curr.UpdatedBy, + } + switch curr.Operation { + case history.OpTypeInsert: + record.Changes = (&InternalPolicyHistory{}).changes(curr) + case history.OpTypeDelete: + record.Changes = curr.changes(&InternalPolicyHistory{}) + default: + if i == 0 { + record.Changes = (&InternalPolicyHistory{}).changes(curr) + } else { + record.Changes = histories[i-1].changes(curr) + } + } + records = append(records, record.toRow()) + } + } + return records, nil +} + +type narrativehistoryref struct { + Ref string +} + +func auditNarrativeHistory(ctx context.Context, config config) ([][]string, error) { + var records = [][]string{} + var refs []narrativehistoryref + client := NewNarrativeHistoryClient(config) + err := client.Query(). + Unique(true). + Order(narrativehistory.ByRef()). + Select(narrativehistory.FieldRef). + Scan(ctx, &refs) + + if err != nil { + return nil, err + } + for _, currRef := range refs { + histories, err := client.Query(). + Where(narrativehistory.Ref(currRef.Ref)). + Order(narrativehistory.ByHistoryTime()). + All(ctx) + if err != nil { + return nil, err + } + + for i := 0; i < len(histories); i++ { + curr := histories[i] + record := record{ + Table: "NarrativeHistory", + RefId: curr.Ref, + HistoryTime: curr.HistoryTime, + Operation: curr.Operation, + UpdatedBy: curr.UpdatedBy, + } + switch curr.Operation { + case history.OpTypeInsert: + record.Changes = (&NarrativeHistory{}).changes(curr) + case history.OpTypeDelete: + record.Changes = curr.changes(&NarrativeHistory{}) + default: + if i == 0 { + record.Changes = (&NarrativeHistory{}).changes(curr) + } else { + record.Changes = histories[i-1].changes(curr) + } + } + records = append(records, record.toRow()) + } + } + return records, nil +} + type notehistoryref struct { Ref string } @@ -3231,6 +4360,218 @@ func auditOrganizationSettingHistory(ctx context.Context, config config) ([][]st return records, nil } +type procedurehistoryref struct { + Ref string +} + +func auditProcedureHistory(ctx context.Context, config config) ([][]string, error) { + var records = [][]string{} + var refs []procedurehistoryref + client := NewProcedureHistoryClient(config) + err := client.Query(). + Unique(true). + Order(procedurehistory.ByRef()). + Select(procedurehistory.FieldRef). + Scan(ctx, &refs) + + if err != nil { + return nil, err + } + for _, currRef := range refs { + histories, err := client.Query(). + Where(procedurehistory.Ref(currRef.Ref)). + Order(procedurehistory.ByHistoryTime()). + All(ctx) + if err != nil { + return nil, err + } + + for i := 0; i < len(histories); i++ { + curr := histories[i] + record := record{ + Table: "ProcedureHistory", + RefId: curr.Ref, + HistoryTime: curr.HistoryTime, + Operation: curr.Operation, + UpdatedBy: curr.UpdatedBy, + } + switch curr.Operation { + case history.OpTypeInsert: + record.Changes = (&ProcedureHistory{}).changes(curr) + case history.OpTypeDelete: + record.Changes = curr.changes(&ProcedureHistory{}) + default: + if i == 0 { + record.Changes = (&ProcedureHistory{}).changes(curr) + } else { + record.Changes = histories[i-1].changes(curr) + } + } + records = append(records, record.toRow()) + } + } + return records, nil +} + +type riskhistoryref struct { + Ref string +} + +func auditRiskHistory(ctx context.Context, config config) ([][]string, error) { + var records = [][]string{} + var refs []riskhistoryref + client := NewRiskHistoryClient(config) + err := client.Query(). + Unique(true). + Order(riskhistory.ByRef()). + Select(riskhistory.FieldRef). + Scan(ctx, &refs) + + if err != nil { + return nil, err + } + for _, currRef := range refs { + histories, err := client.Query(). + Where(riskhistory.Ref(currRef.Ref)). + Order(riskhistory.ByHistoryTime()). + All(ctx) + if err != nil { + return nil, err + } + + for i := 0; i < len(histories); i++ { + curr := histories[i] + record := record{ + Table: "RiskHistory", + RefId: curr.Ref, + HistoryTime: curr.HistoryTime, + Operation: curr.Operation, + UpdatedBy: curr.UpdatedBy, + } + switch curr.Operation { + case history.OpTypeInsert: + record.Changes = (&RiskHistory{}).changes(curr) + case history.OpTypeDelete: + record.Changes = curr.changes(&RiskHistory{}) + default: + if i == 0 { + record.Changes = (&RiskHistory{}).changes(curr) + } else { + record.Changes = histories[i-1].changes(curr) + } + } + records = append(records, record.toRow()) + } + } + return records, nil +} + +type standardhistoryref struct { + Ref string +} + +func auditStandardHistory(ctx context.Context, config config) ([][]string, error) { + var records = [][]string{} + var refs []standardhistoryref + client := NewStandardHistoryClient(config) + err := client.Query(). + Unique(true). + Order(standardhistory.ByRef()). + Select(standardhistory.FieldRef). + Scan(ctx, &refs) + + if err != nil { + return nil, err + } + for _, currRef := range refs { + histories, err := client.Query(). + Where(standardhistory.Ref(currRef.Ref)). + Order(standardhistory.ByHistoryTime()). + All(ctx) + if err != nil { + return nil, err + } + + for i := 0; i < len(histories); i++ { + curr := histories[i] + record := record{ + Table: "StandardHistory", + RefId: curr.Ref, + HistoryTime: curr.HistoryTime, + Operation: curr.Operation, + UpdatedBy: curr.UpdatedBy, + } + switch curr.Operation { + case history.OpTypeInsert: + record.Changes = (&StandardHistory{}).changes(curr) + case history.OpTypeDelete: + record.Changes = curr.changes(&StandardHistory{}) + default: + if i == 0 { + record.Changes = (&StandardHistory{}).changes(curr) + } else { + record.Changes = histories[i-1].changes(curr) + } + } + records = append(records, record.toRow()) + } + } + return records, nil +} + +type subcontrolhistoryref struct { + Ref string +} + +func auditSubcontrolHistory(ctx context.Context, config config) ([][]string, error) { + var records = [][]string{} + var refs []subcontrolhistoryref + client := NewSubcontrolHistoryClient(config) + err := client.Query(). + Unique(true). + Order(subcontrolhistory.ByRef()). + Select(subcontrolhistory.FieldRef). + Scan(ctx, &refs) + + if err != nil { + return nil, err + } + for _, currRef := range refs { + histories, err := client.Query(). + Where(subcontrolhistory.Ref(currRef.Ref)). + Order(subcontrolhistory.ByHistoryTime()). + All(ctx) + if err != nil { + return nil, err + } + + for i := 0; i < len(histories); i++ { + curr := histories[i] + record := record{ + Table: "SubcontrolHistory", + RefId: curr.Ref, + HistoryTime: curr.HistoryTime, + Operation: curr.Operation, + UpdatedBy: curr.UpdatedBy, + } + switch curr.Operation { + case history.OpTypeInsert: + record.Changes = (&SubcontrolHistory{}).changes(curr) + case history.OpTypeDelete: + record.Changes = curr.changes(&SubcontrolHistory{}) + default: + if i == 0 { + record.Changes = (&SubcontrolHistory{}).changes(curr) + } else { + record.Changes = histories[i-1].changes(curr) + } + } + records = append(records, record.toRow()) + } + } + return records, nil +} + type templatehistoryref struct { Ref string } diff --git a/internal/ent/generated/client.go b/internal/ent/generated/client.go index 0d9e7e75..de4c342a 100644 --- a/internal/ent/generated/client.go +++ b/internal/ent/generated/client.go @@ -19,9 +19,15 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "github.com/theopenlane/core/internal/ent/entconfig" + "github.com/theopenlane/core/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" "github.com/theopenlane/core/internal/ent/generated/apitoken" "github.com/theopenlane/core/internal/ent/generated/contact" "github.com/theopenlane/core/internal/ent/generated/contacthistory" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" "github.com/theopenlane/core/internal/ent/generated/documentdata" "github.com/theopenlane/core/internal/ent/generated/documentdatahistory" "github.com/theopenlane/core/internal/ent/generated/emailverificationtoken" @@ -51,7 +57,11 @@ import ( "github.com/theopenlane/core/internal/ent/generated/hushhistory" "github.com/theopenlane/core/internal/ent/generated/integration" "github.com/theopenlane/core/internal/ent/generated/integrationhistory" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" "github.com/theopenlane/core/internal/ent/generated/invite" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/notehistory" "github.com/theopenlane/core/internal/ent/generated/oauthprovider" @@ -65,6 +75,14 @@ import ( "github.com/theopenlane/core/internal/ent/generated/orgmembershiphistory" "github.com/theopenlane/core/internal/ent/generated/passwordresettoken" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" "github.com/theopenlane/core/internal/ent/generated/subscriber" "github.com/theopenlane/core/internal/ent/generated/template" "github.com/theopenlane/core/internal/ent/generated/templatehistory" @@ -97,10 +115,22 @@ type Client struct { Schema *migrate.Schema // APIToken is the client for interacting with the APIToken builders. APIToken *APITokenClient + // ActionPlan is the client for interacting with the ActionPlan builders. + ActionPlan *ActionPlanClient + // ActionPlanHistory is the client for interacting with the ActionPlanHistory builders. + ActionPlanHistory *ActionPlanHistoryClient // Contact is the client for interacting with the Contact builders. Contact *ContactClient // ContactHistory is the client for interacting with the ContactHistory builders. ContactHistory *ContactHistoryClient + // Control is the client for interacting with the Control builders. + Control *ControlClient + // ControlHistory is the client for interacting with the ControlHistory builders. + ControlHistory *ControlHistoryClient + // ControlObjective is the client for interacting with the ControlObjective builders. + ControlObjective *ControlObjectiveClient + // ControlObjectiveHistory is the client for interacting with the ControlObjectiveHistory builders. + ControlObjectiveHistory *ControlObjectiveHistoryClient // DocumentData is the client for interacting with the DocumentData builders. DocumentData *DocumentDataClient // DocumentDataHistory is the client for interacting with the DocumentDataHistory builders. @@ -159,8 +189,16 @@ type Client struct { Integration *IntegrationClient // IntegrationHistory is the client for interacting with the IntegrationHistory builders. IntegrationHistory *IntegrationHistoryClient + // InternalPolicy is the client for interacting with the InternalPolicy builders. + InternalPolicy *InternalPolicyClient + // InternalPolicyHistory is the client for interacting with the InternalPolicyHistory builders. + InternalPolicyHistory *InternalPolicyHistoryClient // Invite is the client for interacting with the Invite builders. Invite *InviteClient + // Narrative is the client for interacting with the Narrative builders. + Narrative *NarrativeClient + // NarrativeHistory is the client for interacting with the NarrativeHistory builders. + NarrativeHistory *NarrativeHistoryClient // Note is the client for interacting with the Note builders. Note *NoteClient // NoteHistory is the client for interacting with the NoteHistory builders. @@ -187,6 +225,22 @@ type Client struct { PasswordResetToken *PasswordResetTokenClient // PersonalAccessToken is the client for interacting with the PersonalAccessToken builders. PersonalAccessToken *PersonalAccessTokenClient + // Procedure is the client for interacting with the Procedure builders. + Procedure *ProcedureClient + // ProcedureHistory is the client for interacting with the ProcedureHistory builders. + ProcedureHistory *ProcedureHistoryClient + // Risk is the client for interacting with the Risk builders. + Risk *RiskClient + // RiskHistory is the client for interacting with the RiskHistory builders. + RiskHistory *RiskHistoryClient + // Standard is the client for interacting with the Standard builders. + Standard *StandardClient + // StandardHistory is the client for interacting with the StandardHistory builders. + StandardHistory *StandardHistoryClient + // Subcontrol is the client for interacting with the Subcontrol builders. + Subcontrol *SubcontrolClient + // SubcontrolHistory is the client for interacting with the SubcontrolHistory builders. + SubcontrolHistory *SubcontrolHistoryClient // Subscriber is the client for interacting with the Subscriber builders. Subscriber *SubscriberClient // TFASetting is the client for interacting with the TFASetting builders. @@ -230,8 +284,14 @@ func NewClient(opts ...Option) *Client { func (c *Client) init() { c.Schema = migrate.NewSchema(c.driver) c.APIToken = NewAPITokenClient(c.config) + c.ActionPlan = NewActionPlanClient(c.config) + c.ActionPlanHistory = NewActionPlanHistoryClient(c.config) c.Contact = NewContactClient(c.config) c.ContactHistory = NewContactHistoryClient(c.config) + c.Control = NewControlClient(c.config) + c.ControlHistory = NewControlHistoryClient(c.config) + c.ControlObjective = NewControlObjectiveClient(c.config) + c.ControlObjectiveHistory = NewControlObjectiveHistoryClient(c.config) c.DocumentData = NewDocumentDataClient(c.config) c.DocumentDataHistory = NewDocumentDataHistoryClient(c.config) c.EmailVerificationToken = NewEmailVerificationTokenClient(c.config) @@ -261,7 +321,11 @@ func (c *Client) init() { c.HushHistory = NewHushHistoryClient(c.config) c.Integration = NewIntegrationClient(c.config) c.IntegrationHistory = NewIntegrationHistoryClient(c.config) + c.InternalPolicy = NewInternalPolicyClient(c.config) + c.InternalPolicyHistory = NewInternalPolicyHistoryClient(c.config) c.Invite = NewInviteClient(c.config) + c.Narrative = NewNarrativeClient(c.config) + c.NarrativeHistory = NewNarrativeHistoryClient(c.config) c.Note = NewNoteClient(c.config) c.NoteHistory = NewNoteHistoryClient(c.config) c.OauthProvider = NewOauthProviderClient(c.config) @@ -275,6 +339,14 @@ func (c *Client) init() { c.OrganizationSettingHistory = NewOrganizationSettingHistoryClient(c.config) c.PasswordResetToken = NewPasswordResetTokenClient(c.config) c.PersonalAccessToken = NewPersonalAccessTokenClient(c.config) + c.Procedure = NewProcedureClient(c.config) + c.ProcedureHistory = NewProcedureHistoryClient(c.config) + c.Risk = NewRiskClient(c.config) + c.RiskHistory = NewRiskHistoryClient(c.config) + c.Standard = NewStandardClient(c.config) + c.StandardHistory = NewStandardHistoryClient(c.config) + c.Subcontrol = NewSubcontrolClient(c.config) + c.SubcontrolHistory = NewSubcontrolHistoryClient(c.config) c.Subscriber = NewSubscriberClient(c.config) c.TFASetting = NewTFASettingClient(c.config) c.Template = NewTemplateClient(c.config) @@ -440,8 +512,14 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { ctx: ctx, config: cfg, APIToken: NewAPITokenClient(cfg), + ActionPlan: NewActionPlanClient(cfg), + ActionPlanHistory: NewActionPlanHistoryClient(cfg), Contact: NewContactClient(cfg), ContactHistory: NewContactHistoryClient(cfg), + Control: NewControlClient(cfg), + ControlHistory: NewControlHistoryClient(cfg), + ControlObjective: NewControlObjectiveClient(cfg), + ControlObjectiveHistory: NewControlObjectiveHistoryClient(cfg), DocumentData: NewDocumentDataClient(cfg), DocumentDataHistory: NewDocumentDataHistoryClient(cfg), EmailVerificationToken: NewEmailVerificationTokenClient(cfg), @@ -471,7 +549,11 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { HushHistory: NewHushHistoryClient(cfg), Integration: NewIntegrationClient(cfg), IntegrationHistory: NewIntegrationHistoryClient(cfg), + InternalPolicy: NewInternalPolicyClient(cfg), + InternalPolicyHistory: NewInternalPolicyHistoryClient(cfg), Invite: NewInviteClient(cfg), + Narrative: NewNarrativeClient(cfg), + NarrativeHistory: NewNarrativeHistoryClient(cfg), Note: NewNoteClient(cfg), NoteHistory: NewNoteHistoryClient(cfg), OauthProvider: NewOauthProviderClient(cfg), @@ -485,6 +567,14 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { OrganizationSettingHistory: NewOrganizationSettingHistoryClient(cfg), PasswordResetToken: NewPasswordResetTokenClient(cfg), PersonalAccessToken: NewPersonalAccessTokenClient(cfg), + Procedure: NewProcedureClient(cfg), + ProcedureHistory: NewProcedureHistoryClient(cfg), + Risk: NewRiskClient(cfg), + RiskHistory: NewRiskHistoryClient(cfg), + Standard: NewStandardClient(cfg), + StandardHistory: NewStandardHistoryClient(cfg), + Subcontrol: NewSubcontrolClient(cfg), + SubcontrolHistory: NewSubcontrolHistoryClient(cfg), Subscriber: NewSubscriberClient(cfg), TFASetting: NewTFASettingClient(cfg), Template: NewTemplateClient(cfg), @@ -516,8 +606,14 @@ func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) ctx: ctx, config: cfg, APIToken: NewAPITokenClient(cfg), + ActionPlan: NewActionPlanClient(cfg), + ActionPlanHistory: NewActionPlanHistoryClient(cfg), Contact: NewContactClient(cfg), ContactHistory: NewContactHistoryClient(cfg), + Control: NewControlClient(cfg), + ControlHistory: NewControlHistoryClient(cfg), + ControlObjective: NewControlObjectiveClient(cfg), + ControlObjectiveHistory: NewControlObjectiveHistoryClient(cfg), DocumentData: NewDocumentDataClient(cfg), DocumentDataHistory: NewDocumentDataHistoryClient(cfg), EmailVerificationToken: NewEmailVerificationTokenClient(cfg), @@ -547,7 +643,11 @@ func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) HushHistory: NewHushHistoryClient(cfg), Integration: NewIntegrationClient(cfg), IntegrationHistory: NewIntegrationHistoryClient(cfg), + InternalPolicy: NewInternalPolicyClient(cfg), + InternalPolicyHistory: NewInternalPolicyHistoryClient(cfg), Invite: NewInviteClient(cfg), + Narrative: NewNarrativeClient(cfg), + NarrativeHistory: NewNarrativeHistoryClient(cfg), Note: NewNoteClient(cfg), NoteHistory: NewNoteHistoryClient(cfg), OauthProvider: NewOauthProviderClient(cfg), @@ -561,6 +661,14 @@ func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) OrganizationSettingHistory: NewOrganizationSettingHistoryClient(cfg), PasswordResetToken: NewPasswordResetTokenClient(cfg), PersonalAccessToken: NewPersonalAccessTokenClient(cfg), + Procedure: NewProcedureClient(cfg), + ProcedureHistory: NewProcedureHistoryClient(cfg), + Risk: NewRiskClient(cfg), + RiskHistory: NewRiskHistoryClient(cfg), + Standard: NewStandardClient(cfg), + StandardHistory: NewStandardHistoryClient(cfg), + Subcontrol: NewSubcontrolClient(cfg), + SubcontrolHistory: NewSubcontrolHistoryClient(cfg), Subscriber: NewSubscriberClient(cfg), TFASetting: NewTFASettingClient(cfg), Template: NewTemplateClient(cfg), @@ -601,20 +709,24 @@ func (c *Client) Close() error { // In order to add hooks to a specific client, call: `client.Node.Use(...)`. func (c *Client) Use(hooks ...Hook) { for _, n := range []interface{ Use(...Hook) }{ - c.APIToken, c.Contact, c.ContactHistory, c.DocumentData, c.DocumentDataHistory, - c.EmailVerificationToken, c.Entitlement, c.EntitlementHistory, - c.EntitlementPlan, c.EntitlementPlanFeature, c.EntitlementPlanFeatureHistory, - c.EntitlementPlanHistory, c.Entity, c.EntityHistory, c.EntityType, - c.EntityTypeHistory, c.Event, c.EventHistory, c.Feature, c.FeatureHistory, - c.File, c.FileHistory, c.Group, c.GroupHistory, c.GroupMembership, - c.GroupMembershipHistory, c.GroupSetting, c.GroupSettingHistory, c.Hush, - c.HushHistory, c.Integration, c.IntegrationHistory, c.Invite, c.Note, - c.NoteHistory, c.OauthProvider, c.OauthProviderHistory, c.OhAuthTooToken, - c.OrgMembership, c.OrgMembershipHistory, c.Organization, c.OrganizationHistory, + c.APIToken, c.ActionPlan, c.ActionPlanHistory, c.Contact, c.ContactHistory, + c.Control, c.ControlHistory, c.ControlObjective, c.ControlObjectiveHistory, + c.DocumentData, c.DocumentDataHistory, c.EmailVerificationToken, c.Entitlement, + c.EntitlementHistory, c.EntitlementPlan, c.EntitlementPlanFeature, + c.EntitlementPlanFeatureHistory, c.EntitlementPlanHistory, c.Entity, + c.EntityHistory, c.EntityType, c.EntityTypeHistory, c.Event, c.EventHistory, + c.Feature, c.FeatureHistory, c.File, c.FileHistory, c.Group, c.GroupHistory, + c.GroupMembership, c.GroupMembershipHistory, c.GroupSetting, + c.GroupSettingHistory, c.Hush, c.HushHistory, c.Integration, + c.IntegrationHistory, c.InternalPolicy, c.InternalPolicyHistory, c.Invite, + c.Narrative, c.NarrativeHistory, c.Note, c.NoteHistory, c.OauthProvider, + c.OauthProviderHistory, c.OhAuthTooToken, c.OrgMembership, + c.OrgMembershipHistory, c.Organization, c.OrganizationHistory, c.OrganizationSetting, c.OrganizationSettingHistory, c.PasswordResetToken, - c.PersonalAccessToken, c.Subscriber, c.TFASetting, c.Template, - c.TemplateHistory, c.User, c.UserHistory, c.UserSetting, c.UserSettingHistory, - c.Webauthn, c.Webhook, c.WebhookHistory, + c.PersonalAccessToken, c.Procedure, c.ProcedureHistory, c.Risk, c.RiskHistory, + c.Standard, c.StandardHistory, c.Subcontrol, c.SubcontrolHistory, c.Subscriber, + c.TFASetting, c.Template, c.TemplateHistory, c.User, c.UserHistory, + c.UserSetting, c.UserSettingHistory, c.Webauthn, c.Webhook, c.WebhookHistory, } { n.Use(hooks...) } @@ -624,20 +736,24 @@ func (c *Client) Use(hooks ...Hook) { // In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`. func (c *Client) Intercept(interceptors ...Interceptor) { for _, n := range []interface{ Intercept(...Interceptor) }{ - c.APIToken, c.Contact, c.ContactHistory, c.DocumentData, c.DocumentDataHistory, - c.EmailVerificationToken, c.Entitlement, c.EntitlementHistory, - c.EntitlementPlan, c.EntitlementPlanFeature, c.EntitlementPlanFeatureHistory, - c.EntitlementPlanHistory, c.Entity, c.EntityHistory, c.EntityType, - c.EntityTypeHistory, c.Event, c.EventHistory, c.Feature, c.FeatureHistory, - c.File, c.FileHistory, c.Group, c.GroupHistory, c.GroupMembership, - c.GroupMembershipHistory, c.GroupSetting, c.GroupSettingHistory, c.Hush, - c.HushHistory, c.Integration, c.IntegrationHistory, c.Invite, c.Note, - c.NoteHistory, c.OauthProvider, c.OauthProviderHistory, c.OhAuthTooToken, - c.OrgMembership, c.OrgMembershipHistory, c.Organization, c.OrganizationHistory, + c.APIToken, c.ActionPlan, c.ActionPlanHistory, c.Contact, c.ContactHistory, + c.Control, c.ControlHistory, c.ControlObjective, c.ControlObjectiveHistory, + c.DocumentData, c.DocumentDataHistory, c.EmailVerificationToken, c.Entitlement, + c.EntitlementHistory, c.EntitlementPlan, c.EntitlementPlanFeature, + c.EntitlementPlanFeatureHistory, c.EntitlementPlanHistory, c.Entity, + c.EntityHistory, c.EntityType, c.EntityTypeHistory, c.Event, c.EventHistory, + c.Feature, c.FeatureHistory, c.File, c.FileHistory, c.Group, c.GroupHistory, + c.GroupMembership, c.GroupMembershipHistory, c.GroupSetting, + c.GroupSettingHistory, c.Hush, c.HushHistory, c.Integration, + c.IntegrationHistory, c.InternalPolicy, c.InternalPolicyHistory, c.Invite, + c.Narrative, c.NarrativeHistory, c.Note, c.NoteHistory, c.OauthProvider, + c.OauthProviderHistory, c.OhAuthTooToken, c.OrgMembership, + c.OrgMembershipHistory, c.Organization, c.OrganizationHistory, c.OrganizationSetting, c.OrganizationSettingHistory, c.PasswordResetToken, - c.PersonalAccessToken, c.Subscriber, c.TFASetting, c.Template, - c.TemplateHistory, c.User, c.UserHistory, c.UserSetting, c.UserSettingHistory, - c.Webauthn, c.Webhook, c.WebhookHistory, + c.PersonalAccessToken, c.Procedure, c.ProcedureHistory, c.Risk, c.RiskHistory, + c.Standard, c.StandardHistory, c.Subcontrol, c.SubcontrolHistory, c.Subscriber, + c.TFASetting, c.Template, c.TemplateHistory, c.User, c.UserHistory, + c.UserSetting, c.UserSettingHistory, c.Webauthn, c.Webhook, c.WebhookHistory, } { n.Intercept(interceptors...) } @@ -716,10 +832,22 @@ func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error) { switch m := m.(type) { case *APITokenMutation: return c.APIToken.mutate(ctx, m) + case *ActionPlanMutation: + return c.ActionPlan.mutate(ctx, m) + case *ActionPlanHistoryMutation: + return c.ActionPlanHistory.mutate(ctx, m) case *ContactMutation: return c.Contact.mutate(ctx, m) case *ContactHistoryMutation: return c.ContactHistory.mutate(ctx, m) + case *ControlMutation: + return c.Control.mutate(ctx, m) + case *ControlHistoryMutation: + return c.ControlHistory.mutate(ctx, m) + case *ControlObjectiveMutation: + return c.ControlObjective.mutate(ctx, m) + case *ControlObjectiveHistoryMutation: + return c.ControlObjectiveHistory.mutate(ctx, m) case *DocumentDataMutation: return c.DocumentData.mutate(ctx, m) case *DocumentDataHistoryMutation: @@ -778,8 +906,16 @@ func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error) { return c.Integration.mutate(ctx, m) case *IntegrationHistoryMutation: return c.IntegrationHistory.mutate(ctx, m) + case *InternalPolicyMutation: + return c.InternalPolicy.mutate(ctx, m) + case *InternalPolicyHistoryMutation: + return c.InternalPolicyHistory.mutate(ctx, m) case *InviteMutation: return c.Invite.mutate(ctx, m) + case *NarrativeMutation: + return c.Narrative.mutate(ctx, m) + case *NarrativeHistoryMutation: + return c.NarrativeHistory.mutate(ctx, m) case *NoteMutation: return c.Note.mutate(ctx, m) case *NoteHistoryMutation: @@ -806,6 +942,22 @@ func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error) { return c.PasswordResetToken.mutate(ctx, m) case *PersonalAccessTokenMutation: return c.PersonalAccessToken.mutate(ctx, m) + case *ProcedureMutation: + return c.Procedure.mutate(ctx, m) + case *ProcedureHistoryMutation: + return c.ProcedureHistory.mutate(ctx, m) + case *RiskMutation: + return c.Risk.mutate(ctx, m) + case *RiskHistoryMutation: + return c.RiskHistory.mutate(ctx, m) + case *StandardMutation: + return c.Standard.mutate(ctx, m) + case *StandardHistoryMutation: + return c.StandardHistory.mutate(ctx, m) + case *SubcontrolMutation: + return c.Subcontrol.mutate(ctx, m) + case *SubcontrolHistoryMutation: + return c.SubcontrolHistory.mutate(ctx, m) case *SubscriberMutation: return c.Subscriber.mutate(ctx, m) case *TFASettingMutation: @@ -987,6 +1139,350 @@ func (c *APITokenClient) mutate(ctx context.Context, m *APITokenMutation) (Value } } +// ActionPlanClient is a client for the ActionPlan schema. +type ActionPlanClient struct { + config +} + +// NewActionPlanClient returns a client for the ActionPlan from the given config. +func NewActionPlanClient(c config) *ActionPlanClient { + return &ActionPlanClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `actionplan.Hooks(f(g(h())))`. +func (c *ActionPlanClient) Use(hooks ...Hook) { + c.hooks.ActionPlan = append(c.hooks.ActionPlan, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `actionplan.Intercept(f(g(h())))`. +func (c *ActionPlanClient) Intercept(interceptors ...Interceptor) { + c.inters.ActionPlan = append(c.inters.ActionPlan, interceptors...) +} + +// Create returns a builder for creating a ActionPlan entity. +func (c *ActionPlanClient) Create() *ActionPlanCreate { + mutation := newActionPlanMutation(c.config, OpCreate) + return &ActionPlanCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of ActionPlan entities. +func (c *ActionPlanClient) CreateBulk(builders ...*ActionPlanCreate) *ActionPlanCreateBulk { + return &ActionPlanCreateBulk{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 *ActionPlanClient) MapCreateBulk(slice any, setFunc func(*ActionPlanCreate, int)) *ActionPlanCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &ActionPlanCreateBulk{err: fmt.Errorf("calling to ActionPlanClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*ActionPlanCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &ActionPlanCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for ActionPlan. +func (c *ActionPlanClient) Update() *ActionPlanUpdate { + mutation := newActionPlanMutation(c.config, OpUpdate) + return &ActionPlanUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *ActionPlanClient) UpdateOne(ap *ActionPlan) *ActionPlanUpdateOne { + mutation := newActionPlanMutation(c.config, OpUpdateOne, withActionPlan(ap)) + return &ActionPlanUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *ActionPlanClient) UpdateOneID(id string) *ActionPlanUpdateOne { + mutation := newActionPlanMutation(c.config, OpUpdateOne, withActionPlanID(id)) + return &ActionPlanUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for ActionPlan. +func (c *ActionPlanClient) Delete() *ActionPlanDelete { + mutation := newActionPlanMutation(c.config, OpDelete) + return &ActionPlanDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *ActionPlanClient) DeleteOne(ap *ActionPlan) *ActionPlanDeleteOne { + return c.DeleteOneID(ap.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *ActionPlanClient) DeleteOneID(id string) *ActionPlanDeleteOne { + builder := c.Delete().Where(actionplan.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &ActionPlanDeleteOne{builder} +} + +// Query returns a query builder for ActionPlan. +func (c *ActionPlanClient) Query() *ActionPlanQuery { + return &ActionPlanQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeActionPlan}, + inters: c.Interceptors(), + } +} + +// Get returns a ActionPlan entity by its id. +func (c *ActionPlanClient) Get(ctx context.Context, id string) (*ActionPlan, error) { + return c.Query().Where(actionplan.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *ActionPlanClient) GetX(ctx context.Context, id string) *ActionPlan { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// QueryStandard queries the standard edge of a ActionPlan. +func (c *ActionPlanClient) QueryStandard(ap *ActionPlan) *StandardQuery { + query := (&StandardClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ap.ID + step := sqlgraph.NewStep( + sqlgraph.From(actionplan.Table, actionplan.FieldID, id), + sqlgraph.To(standard.Table, standard.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, actionplan.StandardTable, actionplan.StandardPrimaryKey...), + ) + schemaConfig := ap.schemaConfig + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.StandardActionplans + fromV = sqlgraph.Neighbors(ap.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryRisk queries the risk edge of a ActionPlan. +func (c *ActionPlanClient) QueryRisk(ap *ActionPlan) *RiskQuery { + query := (&RiskClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ap.ID + step := sqlgraph.NewStep( + sqlgraph.From(actionplan.Table, actionplan.FieldID, id), + sqlgraph.To(risk.Table, risk.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, actionplan.RiskTable, actionplan.RiskPrimaryKey...), + ) + schemaConfig := ap.schemaConfig + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.RiskActionplans + fromV = sqlgraph.Neighbors(ap.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryControl queries the control edge of a ActionPlan. +func (c *ActionPlanClient) QueryControl(ap *ActionPlan) *ControlQuery { + query := (&ControlClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ap.ID + step := sqlgraph.NewStep( + sqlgraph.From(actionplan.Table, actionplan.FieldID, id), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, actionplan.ControlTable, actionplan.ControlPrimaryKey...), + ) + schemaConfig := ap.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlActionplans + fromV = sqlgraph.Neighbors(ap.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryUser queries the user edge of a ActionPlan. +func (c *ActionPlanClient) QueryUser(ap *ActionPlan) *UserQuery { + query := (&UserClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ap.ID + step := sqlgraph.NewStep( + sqlgraph.From(actionplan.Table, actionplan.FieldID, id), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, actionplan.UserTable, actionplan.UserPrimaryKey...), + ) + schemaConfig := ap.schemaConfig + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.UserActionplans + fromV = sqlgraph.Neighbors(ap.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// Hooks returns the client hooks. +func (c *ActionPlanClient) Hooks() []Hook { + hooks := c.hooks.ActionPlan + return append(hooks[:len(hooks):len(hooks)], actionplan.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *ActionPlanClient) Interceptors() []Interceptor { + inters := c.inters.ActionPlan + return append(inters[:len(inters):len(inters)], actionplan.Interceptors[:]...) +} + +func (c *ActionPlanClient) mutate(ctx context.Context, m *ActionPlanMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&ActionPlanCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&ActionPlanUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&ActionPlanUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&ActionPlanDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown ActionPlan mutation op: %q", m.Op()) + } +} + +// ActionPlanHistoryClient is a client for the ActionPlanHistory schema. +type ActionPlanHistoryClient struct { + config +} + +// NewActionPlanHistoryClient returns a client for the ActionPlanHistory from the given config. +func NewActionPlanHistoryClient(c config) *ActionPlanHistoryClient { + return &ActionPlanHistoryClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `actionplanhistory.Hooks(f(g(h())))`. +func (c *ActionPlanHistoryClient) Use(hooks ...Hook) { + c.hooks.ActionPlanHistory = append(c.hooks.ActionPlanHistory, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `actionplanhistory.Intercept(f(g(h())))`. +func (c *ActionPlanHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.ActionPlanHistory = append(c.inters.ActionPlanHistory, interceptors...) +} + +// Create returns a builder for creating a ActionPlanHistory entity. +func (c *ActionPlanHistoryClient) Create() *ActionPlanHistoryCreate { + mutation := newActionPlanHistoryMutation(c.config, OpCreate) + return &ActionPlanHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of ActionPlanHistory entities. +func (c *ActionPlanHistoryClient) CreateBulk(builders ...*ActionPlanHistoryCreate) *ActionPlanHistoryCreateBulk { + return &ActionPlanHistoryCreateBulk{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 *ActionPlanHistoryClient) MapCreateBulk(slice any, setFunc func(*ActionPlanHistoryCreate, int)) *ActionPlanHistoryCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &ActionPlanHistoryCreateBulk{err: fmt.Errorf("calling to ActionPlanHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*ActionPlanHistoryCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &ActionPlanHistoryCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for ActionPlanHistory. +func (c *ActionPlanHistoryClient) Update() *ActionPlanHistoryUpdate { + mutation := newActionPlanHistoryMutation(c.config, OpUpdate) + return &ActionPlanHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *ActionPlanHistoryClient) UpdateOne(aph *ActionPlanHistory) *ActionPlanHistoryUpdateOne { + mutation := newActionPlanHistoryMutation(c.config, OpUpdateOne, withActionPlanHistory(aph)) + return &ActionPlanHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *ActionPlanHistoryClient) UpdateOneID(id string) *ActionPlanHistoryUpdateOne { + mutation := newActionPlanHistoryMutation(c.config, OpUpdateOne, withActionPlanHistoryID(id)) + return &ActionPlanHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for ActionPlanHistory. +func (c *ActionPlanHistoryClient) Delete() *ActionPlanHistoryDelete { + mutation := newActionPlanHistoryMutation(c.config, OpDelete) + return &ActionPlanHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *ActionPlanHistoryClient) DeleteOne(aph *ActionPlanHistory) *ActionPlanHistoryDeleteOne { + return c.DeleteOneID(aph.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *ActionPlanHistoryClient) DeleteOneID(id string) *ActionPlanHistoryDeleteOne { + builder := c.Delete().Where(actionplanhistory.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &ActionPlanHistoryDeleteOne{builder} +} + +// Query returns a query builder for ActionPlanHistory. +func (c *ActionPlanHistoryClient) Query() *ActionPlanHistoryQuery { + return &ActionPlanHistoryQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeActionPlanHistory}, + inters: c.Interceptors(), + } +} + +// Get returns a ActionPlanHistory entity by its id. +func (c *ActionPlanHistoryClient) Get(ctx context.Context, id string) (*ActionPlanHistory, error) { + return c.Query().Where(actionplanhistory.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *ActionPlanHistoryClient) GetX(ctx context.Context, id string) *ActionPlanHistory { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// Hooks returns the client hooks. +func (c *ActionPlanHistoryClient) Hooks() []Hook { + return c.hooks.ActionPlanHistory +} + +// Interceptors returns the client interceptors. +func (c *ActionPlanHistoryClient) Interceptors() []Interceptor { + return c.inters.ActionPlanHistory +} + +func (c *ActionPlanHistoryClient) mutate(ctx context.Context, m *ActionPlanHistoryMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&ActionPlanHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&ActionPlanHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&ActionPlanHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&ActionPlanHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown ActionPlanHistory mutation op: %q", m.Op()) + } +} + // ContactClient is a client for the Contact schema. type ContactClient struct { config @@ -1314,107 +1810,107 @@ func (c *ContactHistoryClient) mutate(ctx context.Context, m *ContactHistoryMuta } } -// DocumentDataClient is a client for the DocumentData schema. -type DocumentDataClient struct { +// ControlClient is a client for the Control schema. +type ControlClient struct { config } -// NewDocumentDataClient returns a client for the DocumentData from the given config. -func NewDocumentDataClient(c config) *DocumentDataClient { - return &DocumentDataClient{config: c} +// NewControlClient returns a client for the Control from the given config. +func NewControlClient(c config) *ControlClient { + return &ControlClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `documentdata.Hooks(f(g(h())))`. -func (c *DocumentDataClient) Use(hooks ...Hook) { - c.hooks.DocumentData = append(c.hooks.DocumentData, hooks...) +// A call to `Use(f, g, h)` equals to `control.Hooks(f(g(h())))`. +func (c *ControlClient) Use(hooks ...Hook) { + c.hooks.Control = append(c.hooks.Control, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `documentdata.Intercept(f(g(h())))`. -func (c *DocumentDataClient) Intercept(interceptors ...Interceptor) { - c.inters.DocumentData = append(c.inters.DocumentData, interceptors...) +// A call to `Intercept(f, g, h)` equals to `control.Intercept(f(g(h())))`. +func (c *ControlClient) Intercept(interceptors ...Interceptor) { + c.inters.Control = append(c.inters.Control, interceptors...) } -// Create returns a builder for creating a DocumentData entity. -func (c *DocumentDataClient) Create() *DocumentDataCreate { - mutation := newDocumentDataMutation(c.config, OpCreate) - return &DocumentDataCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a Control entity. +func (c *ControlClient) Create() *ControlCreate { + mutation := newControlMutation(c.config, OpCreate) + return &ControlCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of DocumentData entities. -func (c *DocumentDataClient) CreateBulk(builders ...*DocumentDataCreate) *DocumentDataCreateBulk { - return &DocumentDataCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of Control entities. +func (c *ControlClient) CreateBulk(builders ...*ControlCreate) *ControlCreateBulk { + return &ControlCreateBulk{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 *DocumentDataClient) MapCreateBulk(slice any, setFunc func(*DocumentDataCreate, int)) *DocumentDataCreateBulk { +func (c *ControlClient) MapCreateBulk(slice any, setFunc func(*ControlCreate, int)) *ControlCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &DocumentDataCreateBulk{err: fmt.Errorf("calling to DocumentDataClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &ControlCreateBulk{err: fmt.Errorf("calling to ControlClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*DocumentDataCreate, rv.Len()) + builders := make([]*ControlCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &DocumentDataCreateBulk{config: c.config, builders: builders} + return &ControlCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for DocumentData. -func (c *DocumentDataClient) Update() *DocumentDataUpdate { - mutation := newDocumentDataMutation(c.config, OpUpdate) - return &DocumentDataUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for Control. +func (c *ControlClient) Update() *ControlUpdate { + mutation := newControlMutation(c.config, OpUpdate) + return &ControlUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *DocumentDataClient) UpdateOne(dd *DocumentData) *DocumentDataUpdateOne { - mutation := newDocumentDataMutation(c.config, OpUpdateOne, withDocumentData(dd)) - return &DocumentDataUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *ControlClient) UpdateOne(co *Control) *ControlUpdateOne { + mutation := newControlMutation(c.config, OpUpdateOne, withControl(co)) + return &ControlUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *DocumentDataClient) UpdateOneID(id string) *DocumentDataUpdateOne { - mutation := newDocumentDataMutation(c.config, OpUpdateOne, withDocumentDataID(id)) - return &DocumentDataUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *ControlClient) UpdateOneID(id string) *ControlUpdateOne { + mutation := newControlMutation(c.config, OpUpdateOne, withControlID(id)) + return &ControlUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for DocumentData. -func (c *DocumentDataClient) Delete() *DocumentDataDelete { - mutation := newDocumentDataMutation(c.config, OpDelete) - return &DocumentDataDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for Control. +func (c *ControlClient) Delete() *ControlDelete { + mutation := newControlMutation(c.config, OpDelete) + return &ControlDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *DocumentDataClient) DeleteOne(dd *DocumentData) *DocumentDataDeleteOne { - return c.DeleteOneID(dd.ID) +func (c *ControlClient) DeleteOne(co *Control) *ControlDeleteOne { + return c.DeleteOneID(co.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *DocumentDataClient) DeleteOneID(id string) *DocumentDataDeleteOne { - builder := c.Delete().Where(documentdata.ID(id)) +func (c *ControlClient) DeleteOneID(id string) *ControlDeleteOne { + builder := c.Delete().Where(control.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &DocumentDataDeleteOne{builder} + return &ControlDeleteOne{builder} } -// Query returns a query builder for DocumentData. -func (c *DocumentDataClient) Query() *DocumentDataQuery { - return &DocumentDataQuery{ +// Query returns a query builder for Control. +func (c *ControlClient) Query() *ControlQuery { + return &ControlQuery{ config: c.config, - ctx: &QueryContext{Type: TypeDocumentData}, + ctx: &QueryContext{Type: TypeControl}, inters: c.Interceptors(), } } -// Get returns a DocumentData entity by its id. -func (c *DocumentDataClient) Get(ctx context.Context, id string) (*DocumentData, error) { - return c.Query().Where(documentdata.ID(id)).Only(ctx) +// Get returns a Control entity by its id. +func (c *ControlClient) Get(ctx context.Context, id string) (*Control, error) { + return c.Query().Where(control.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *DocumentDataClient) GetX(ctx context.Context, id string) *DocumentData { +func (c *ControlClient) GetX(ctx context.Context, id string) *Control { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -1422,210 +1918,267 @@ func (c *DocumentDataClient) GetX(ctx context.Context, id string) *DocumentData return obj } -// QueryOwner queries the owner edge of a DocumentData. -func (c *DocumentDataClient) QueryOwner(dd *DocumentData) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() +// QueryProcedures queries the procedures edge of a Control. +func (c *ControlClient) QueryProcedures(co *Control) *ProcedureQuery { + query := (&ProcedureClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := dd.ID + id := co.ID step := sqlgraph.NewStep( - sqlgraph.From(documentdata.Table, documentdata.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, documentdata.OwnerTable, documentdata.OwnerColumn), + sqlgraph.From(control.Table, control.FieldID, id), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, control.ProceduresTable, control.ProceduresPrimaryKey...), ) - schemaConfig := dd.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.DocumentData - fromV = sqlgraph.Neighbors(dd.driver.Dialect(), step) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.ControlProcedures + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) return fromV, nil } return query } -// QueryTemplate queries the template edge of a DocumentData. -func (c *DocumentDataClient) QueryTemplate(dd *DocumentData) *TemplateQuery { - query := (&TemplateClient{config: c.config}).Query() +// QuerySubcontrols queries the subcontrols edge of a Control. +func (c *ControlClient) QuerySubcontrols(co *Control) *SubcontrolQuery { + query := (&SubcontrolClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := dd.ID + id := co.ID step := sqlgraph.NewStep( - sqlgraph.From(documentdata.Table, documentdata.FieldID, id), - sqlgraph.To(template.Table, template.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, documentdata.TemplateTable, documentdata.TemplateColumn), + sqlgraph.From(control.Table, control.FieldID, id), + sqlgraph.To(subcontrol.Table, subcontrol.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, control.SubcontrolsTable, control.SubcontrolsPrimaryKey...), ) - schemaConfig := dd.schemaConfig - step.To.Schema = schemaConfig.Template - step.Edge.Schema = schemaConfig.DocumentData - fromV = sqlgraph.Neighbors(dd.driver.Dialect(), step) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.ControlSubcontrols + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) return fromV, nil } return query } -// QueryEntity queries the entity edge of a DocumentData. -func (c *DocumentDataClient) QueryEntity(dd *DocumentData) *EntityQuery { - query := (&EntityClient{config: c.config}).Query() +// QueryControlobjectives queries the controlobjectives edge of a Control. +func (c *ControlClient) QueryControlobjectives(co *Control) *ControlObjectiveQuery { + query := (&ControlObjectiveClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := dd.ID + id := co.ID step := sqlgraph.NewStep( - sqlgraph.From(documentdata.Table, documentdata.FieldID, id), - sqlgraph.To(entity.Table, entity.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, documentdata.EntityTable, documentdata.EntityPrimaryKey...), + sqlgraph.From(control.Table, control.FieldID, id), + sqlgraph.To(controlobjective.Table, controlobjective.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, control.ControlobjectivesTable, control.ControlobjectivesColumn), ) - schemaConfig := dd.schemaConfig - step.To.Schema = schemaConfig.Entity - step.Edge.Schema = schemaConfig.EntityDocuments - fromV = sqlgraph.Neighbors(dd.driver.Dialect(), step) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.ControlObjective + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) return fromV, nil } return query } -// QueryFiles queries the files edge of a DocumentData. -func (c *DocumentDataClient) QueryFiles(dd *DocumentData) *FileQuery { - query := (&FileClient{config: c.config}).Query() +// QueryStandard queries the standard edge of a Control. +func (c *ControlClient) QueryStandard(co *Control) *StandardQuery { + query := (&StandardClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := dd.ID + id := co.ID step := sqlgraph.NewStep( - sqlgraph.From(documentdata.Table, documentdata.FieldID, id), - sqlgraph.To(file.Table, file.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, documentdata.FilesTable, documentdata.FilesPrimaryKey...), + sqlgraph.From(control.Table, control.FieldID, id), + sqlgraph.To(standard.Table, standard.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, control.StandardTable, control.StandardPrimaryKey...), ) - schemaConfig := dd.schemaConfig - step.To.Schema = schemaConfig.File - step.Edge.Schema = schemaConfig.DocumentDataFiles - fromV = sqlgraph.Neighbors(dd.driver.Dialect(), step) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.StandardControls + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryNarratives queries the narratives edge of a Control. +func (c *ControlClient) QueryNarratives(co *Control) *NarrativeQuery { + query := (&NarrativeClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := co.ID + step := sqlgraph.NewStep( + sqlgraph.From(control.Table, control.FieldID, id), + sqlgraph.To(narrative.Table, narrative.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, control.NarrativesTable, control.NarrativesPrimaryKey...), + ) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.ControlNarratives + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryRisks queries the risks edge of a Control. +func (c *ControlClient) QueryRisks(co *Control) *RiskQuery { + query := (&RiskClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := co.ID + step := sqlgraph.NewStep( + sqlgraph.From(control.Table, control.FieldID, id), + sqlgraph.To(risk.Table, risk.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, control.RisksTable, control.RisksPrimaryKey...), + ) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.ControlRisks + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryActionplans queries the actionplans edge of a Control. +func (c *ControlClient) QueryActionplans(co *Control) *ActionPlanQuery { + query := (&ActionPlanClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := co.ID + step := sqlgraph.NewStep( + sqlgraph.From(control.Table, control.FieldID, id), + sqlgraph.To(actionplan.Table, actionplan.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, control.ActionplansTable, control.ActionplansPrimaryKey...), + ) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.ControlActionplans + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *DocumentDataClient) Hooks() []Hook { - hooks := c.hooks.DocumentData - return append(hooks[:len(hooks):len(hooks)], documentdata.Hooks[:]...) +func (c *ControlClient) Hooks() []Hook { + hooks := c.hooks.Control + return append(hooks[:len(hooks):len(hooks)], control.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *DocumentDataClient) Interceptors() []Interceptor { - inters := c.inters.DocumentData - return append(inters[:len(inters):len(inters)], documentdata.Interceptors[:]...) +func (c *ControlClient) Interceptors() []Interceptor { + inters := c.inters.Control + return append(inters[:len(inters):len(inters)], control.Interceptors[:]...) } -func (c *DocumentDataClient) mutate(ctx context.Context, m *DocumentDataMutation) (Value, error) { +func (c *ControlClient) mutate(ctx context.Context, m *ControlMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&DocumentDataCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&ControlCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&DocumentDataUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&ControlUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&DocumentDataUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&ControlUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&DocumentDataDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&ControlDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown DocumentData mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown Control mutation op: %q", m.Op()) } } -// DocumentDataHistoryClient is a client for the DocumentDataHistory schema. -type DocumentDataHistoryClient struct { +// ControlHistoryClient is a client for the ControlHistory schema. +type ControlHistoryClient struct { config } -// NewDocumentDataHistoryClient returns a client for the DocumentDataHistory from the given config. -func NewDocumentDataHistoryClient(c config) *DocumentDataHistoryClient { - return &DocumentDataHistoryClient{config: c} +// NewControlHistoryClient returns a client for the ControlHistory from the given config. +func NewControlHistoryClient(c config) *ControlHistoryClient { + return &ControlHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `documentdatahistory.Hooks(f(g(h())))`. -func (c *DocumentDataHistoryClient) Use(hooks ...Hook) { - c.hooks.DocumentDataHistory = append(c.hooks.DocumentDataHistory, hooks...) +// A call to `Use(f, g, h)` equals to `controlhistory.Hooks(f(g(h())))`. +func (c *ControlHistoryClient) Use(hooks ...Hook) { + c.hooks.ControlHistory = append(c.hooks.ControlHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `documentdatahistory.Intercept(f(g(h())))`. -func (c *DocumentDataHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.DocumentDataHistory = append(c.inters.DocumentDataHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `controlhistory.Intercept(f(g(h())))`. +func (c *ControlHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.ControlHistory = append(c.inters.ControlHistory, interceptors...) } -// Create returns a builder for creating a DocumentDataHistory entity. -func (c *DocumentDataHistoryClient) Create() *DocumentDataHistoryCreate { - mutation := newDocumentDataHistoryMutation(c.config, OpCreate) - return &DocumentDataHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a ControlHistory entity. +func (c *ControlHistoryClient) Create() *ControlHistoryCreate { + mutation := newControlHistoryMutation(c.config, OpCreate) + return &ControlHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of DocumentDataHistory entities. -func (c *DocumentDataHistoryClient) CreateBulk(builders ...*DocumentDataHistoryCreate) *DocumentDataHistoryCreateBulk { - return &DocumentDataHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of ControlHistory entities. +func (c *ControlHistoryClient) CreateBulk(builders ...*ControlHistoryCreate) *ControlHistoryCreateBulk { + return &ControlHistoryCreateBulk{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 *DocumentDataHistoryClient) MapCreateBulk(slice any, setFunc func(*DocumentDataHistoryCreate, int)) *DocumentDataHistoryCreateBulk { +func (c *ControlHistoryClient) MapCreateBulk(slice any, setFunc func(*ControlHistoryCreate, int)) *ControlHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &DocumentDataHistoryCreateBulk{err: fmt.Errorf("calling to DocumentDataHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &ControlHistoryCreateBulk{err: fmt.Errorf("calling to ControlHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*DocumentDataHistoryCreate, rv.Len()) + builders := make([]*ControlHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &DocumentDataHistoryCreateBulk{config: c.config, builders: builders} + return &ControlHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for DocumentDataHistory. -func (c *DocumentDataHistoryClient) Update() *DocumentDataHistoryUpdate { - mutation := newDocumentDataHistoryMutation(c.config, OpUpdate) - return &DocumentDataHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for ControlHistory. +func (c *ControlHistoryClient) Update() *ControlHistoryUpdate { + mutation := newControlHistoryMutation(c.config, OpUpdate) + return &ControlHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *DocumentDataHistoryClient) UpdateOne(ddh *DocumentDataHistory) *DocumentDataHistoryUpdateOne { - mutation := newDocumentDataHistoryMutation(c.config, OpUpdateOne, withDocumentDataHistory(ddh)) - return &DocumentDataHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *ControlHistoryClient) UpdateOne(ch *ControlHistory) *ControlHistoryUpdateOne { + mutation := newControlHistoryMutation(c.config, OpUpdateOne, withControlHistory(ch)) + return &ControlHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *DocumentDataHistoryClient) UpdateOneID(id string) *DocumentDataHistoryUpdateOne { - mutation := newDocumentDataHistoryMutation(c.config, OpUpdateOne, withDocumentDataHistoryID(id)) - return &DocumentDataHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *ControlHistoryClient) UpdateOneID(id string) *ControlHistoryUpdateOne { + mutation := newControlHistoryMutation(c.config, OpUpdateOne, withControlHistoryID(id)) + return &ControlHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for DocumentDataHistory. -func (c *DocumentDataHistoryClient) Delete() *DocumentDataHistoryDelete { - mutation := newDocumentDataHistoryMutation(c.config, OpDelete) - return &DocumentDataHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for ControlHistory. +func (c *ControlHistoryClient) Delete() *ControlHistoryDelete { + mutation := newControlHistoryMutation(c.config, OpDelete) + return &ControlHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *DocumentDataHistoryClient) DeleteOne(ddh *DocumentDataHistory) *DocumentDataHistoryDeleteOne { - return c.DeleteOneID(ddh.ID) +func (c *ControlHistoryClient) DeleteOne(ch *ControlHistory) *ControlHistoryDeleteOne { + return c.DeleteOneID(ch.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *DocumentDataHistoryClient) DeleteOneID(id string) *DocumentDataHistoryDeleteOne { - builder := c.Delete().Where(documentdatahistory.ID(id)) +func (c *ControlHistoryClient) DeleteOneID(id string) *ControlHistoryDeleteOne { + builder := c.Delete().Where(controlhistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &DocumentDataHistoryDeleteOne{builder} + return &ControlHistoryDeleteOne{builder} } -// Query returns a query builder for DocumentDataHistory. -func (c *DocumentDataHistoryClient) Query() *DocumentDataHistoryQuery { - return &DocumentDataHistoryQuery{ +// Query returns a query builder for ControlHistory. +func (c *ControlHistoryClient) Query() *ControlHistoryQuery { + return &ControlHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeDocumentDataHistory}, + ctx: &QueryContext{Type: TypeControlHistory}, inters: c.Interceptors(), } } -// Get returns a DocumentDataHistory entity by its id. -func (c *DocumentDataHistoryClient) Get(ctx context.Context, id string) (*DocumentDataHistory, error) { - return c.Query().Where(documentdatahistory.ID(id)).Only(ctx) +// Get returns a ControlHistory entity by its id. +func (c *ControlHistoryClient) Get(ctx context.Context, id string) (*ControlHistory, error) { + return c.Query().Where(controlhistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *DocumentDataHistoryClient) GetX(ctx context.Context, id string) *DocumentDataHistory { +func (c *ControlHistoryClient) GetX(ctx context.Context, id string) *ControlHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -1634,133 +2187,131 @@ func (c *DocumentDataHistoryClient) GetX(ctx context.Context, id string) *Docume } // Hooks returns the client hooks. -func (c *DocumentDataHistoryClient) Hooks() []Hook { - hooks := c.hooks.DocumentDataHistory - return append(hooks[:len(hooks):len(hooks)], documentdatahistory.Hooks[:]...) +func (c *ControlHistoryClient) Hooks() []Hook { + return c.hooks.ControlHistory } // Interceptors returns the client interceptors. -func (c *DocumentDataHistoryClient) Interceptors() []Interceptor { - inters := c.inters.DocumentDataHistory - return append(inters[:len(inters):len(inters)], documentdatahistory.Interceptors[:]...) +func (c *ControlHistoryClient) Interceptors() []Interceptor { + return c.inters.ControlHistory } -func (c *DocumentDataHistoryClient) mutate(ctx context.Context, m *DocumentDataHistoryMutation) (Value, error) { +func (c *ControlHistoryClient) mutate(ctx context.Context, m *ControlHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&DocumentDataHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&ControlHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&DocumentDataHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&ControlHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&DocumentDataHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&ControlHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&DocumentDataHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&ControlHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown DocumentDataHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown ControlHistory mutation op: %q", m.Op()) } } -// EmailVerificationTokenClient is a client for the EmailVerificationToken schema. -type EmailVerificationTokenClient struct { +// ControlObjectiveClient is a client for the ControlObjective schema. +type ControlObjectiveClient struct { config } -// NewEmailVerificationTokenClient returns a client for the EmailVerificationToken from the given config. -func NewEmailVerificationTokenClient(c config) *EmailVerificationTokenClient { - return &EmailVerificationTokenClient{config: c} +// NewControlObjectiveClient returns a client for the ControlObjective from the given config. +func NewControlObjectiveClient(c config) *ControlObjectiveClient { + return &ControlObjectiveClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `emailverificationtoken.Hooks(f(g(h())))`. -func (c *EmailVerificationTokenClient) Use(hooks ...Hook) { - c.hooks.EmailVerificationToken = append(c.hooks.EmailVerificationToken, hooks...) +// A call to `Use(f, g, h)` equals to `controlobjective.Hooks(f(g(h())))`. +func (c *ControlObjectiveClient) Use(hooks ...Hook) { + c.hooks.ControlObjective = append(c.hooks.ControlObjective, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `emailverificationtoken.Intercept(f(g(h())))`. -func (c *EmailVerificationTokenClient) Intercept(interceptors ...Interceptor) { - c.inters.EmailVerificationToken = append(c.inters.EmailVerificationToken, interceptors...) +// A call to `Intercept(f, g, h)` equals to `controlobjective.Intercept(f(g(h())))`. +func (c *ControlObjectiveClient) Intercept(interceptors ...Interceptor) { + c.inters.ControlObjective = append(c.inters.ControlObjective, interceptors...) } -// Create returns a builder for creating a EmailVerificationToken entity. -func (c *EmailVerificationTokenClient) Create() *EmailVerificationTokenCreate { - mutation := newEmailVerificationTokenMutation(c.config, OpCreate) - return &EmailVerificationTokenCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a ControlObjective entity. +func (c *ControlObjectiveClient) Create() *ControlObjectiveCreate { + mutation := newControlObjectiveMutation(c.config, OpCreate) + return &ControlObjectiveCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of EmailVerificationToken entities. -func (c *EmailVerificationTokenClient) CreateBulk(builders ...*EmailVerificationTokenCreate) *EmailVerificationTokenCreateBulk { - return &EmailVerificationTokenCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of ControlObjective entities. +func (c *ControlObjectiveClient) CreateBulk(builders ...*ControlObjectiveCreate) *ControlObjectiveCreateBulk { + return &ControlObjectiveCreateBulk{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 *EmailVerificationTokenClient) MapCreateBulk(slice any, setFunc func(*EmailVerificationTokenCreate, int)) *EmailVerificationTokenCreateBulk { +func (c *ControlObjectiveClient) MapCreateBulk(slice any, setFunc func(*ControlObjectiveCreate, int)) *ControlObjectiveCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &EmailVerificationTokenCreateBulk{err: fmt.Errorf("calling to EmailVerificationTokenClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &ControlObjectiveCreateBulk{err: fmt.Errorf("calling to ControlObjectiveClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*EmailVerificationTokenCreate, rv.Len()) + builders := make([]*ControlObjectiveCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &EmailVerificationTokenCreateBulk{config: c.config, builders: builders} + return &ControlObjectiveCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for EmailVerificationToken. -func (c *EmailVerificationTokenClient) Update() *EmailVerificationTokenUpdate { - mutation := newEmailVerificationTokenMutation(c.config, OpUpdate) - return &EmailVerificationTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for ControlObjective. +func (c *ControlObjectiveClient) Update() *ControlObjectiveUpdate { + mutation := newControlObjectiveMutation(c.config, OpUpdate) + return &ControlObjectiveUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *EmailVerificationTokenClient) UpdateOne(evt *EmailVerificationToken) *EmailVerificationTokenUpdateOne { - mutation := newEmailVerificationTokenMutation(c.config, OpUpdateOne, withEmailVerificationToken(evt)) - return &EmailVerificationTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *ControlObjectiveClient) UpdateOne(co *ControlObjective) *ControlObjectiveUpdateOne { + mutation := newControlObjectiveMutation(c.config, OpUpdateOne, withControlObjective(co)) + return &ControlObjectiveUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *EmailVerificationTokenClient) UpdateOneID(id string) *EmailVerificationTokenUpdateOne { - mutation := newEmailVerificationTokenMutation(c.config, OpUpdateOne, withEmailVerificationTokenID(id)) - return &EmailVerificationTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *ControlObjectiveClient) UpdateOneID(id string) *ControlObjectiveUpdateOne { + mutation := newControlObjectiveMutation(c.config, OpUpdateOne, withControlObjectiveID(id)) + return &ControlObjectiveUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for EmailVerificationToken. -func (c *EmailVerificationTokenClient) Delete() *EmailVerificationTokenDelete { - mutation := newEmailVerificationTokenMutation(c.config, OpDelete) - return &EmailVerificationTokenDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for ControlObjective. +func (c *ControlObjectiveClient) Delete() *ControlObjectiveDelete { + mutation := newControlObjectiveMutation(c.config, OpDelete) + return &ControlObjectiveDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *EmailVerificationTokenClient) DeleteOne(evt *EmailVerificationToken) *EmailVerificationTokenDeleteOne { - return c.DeleteOneID(evt.ID) +func (c *ControlObjectiveClient) DeleteOne(co *ControlObjective) *ControlObjectiveDeleteOne { + return c.DeleteOneID(co.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EmailVerificationTokenClient) DeleteOneID(id string) *EmailVerificationTokenDeleteOne { - builder := c.Delete().Where(emailverificationtoken.ID(id)) +func (c *ControlObjectiveClient) DeleteOneID(id string) *ControlObjectiveDeleteOne { + builder := c.Delete().Where(controlobjective.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &EmailVerificationTokenDeleteOne{builder} + return &ControlObjectiveDeleteOne{builder} } -// Query returns a query builder for EmailVerificationToken. -func (c *EmailVerificationTokenClient) Query() *EmailVerificationTokenQuery { - return &EmailVerificationTokenQuery{ +// Query returns a query builder for ControlObjective. +func (c *ControlObjectiveClient) Query() *ControlObjectiveQuery { + return &ControlObjectiveQuery{ config: c.config, - ctx: &QueryContext{Type: TypeEmailVerificationToken}, + ctx: &QueryContext{Type: TypeControlObjective}, inters: c.Interceptors(), } } -// Get returns a EmailVerificationToken entity by its id. -func (c *EmailVerificationTokenClient) Get(ctx context.Context, id string) (*EmailVerificationToken, error) { - return c.Query().Where(emailverificationtoken.ID(id)).Only(ctx) +// Get returns a ControlObjective entity by its id. +func (c *ControlObjectiveClient) Get(ctx context.Context, id string) (*ControlObjective, error) { + return c.Query().Where(controlobjective.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *EmailVerificationTokenClient) GetX(ctx context.Context, id string) *EmailVerificationToken { +func (c *ControlObjectiveClient) GetX(ctx context.Context, id string) *ControlObjective { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -1768,364 +2319,267 @@ func (c *EmailVerificationTokenClient) GetX(ctx context.Context, id string) *Ema return obj } -// QueryOwner queries the owner edge of a EmailVerificationToken. -func (c *EmailVerificationTokenClient) QueryOwner(evt *EmailVerificationToken) *UserQuery { - query := (&UserClient{config: c.config}).Query() +// QueryPolicy queries the policy edge of a ControlObjective. +func (c *ControlObjectiveClient) QueryPolicy(co *ControlObjective) *InternalPolicyQuery { + query := (&InternalPolicyClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := evt.ID + id := co.ID step := sqlgraph.NewStep( - sqlgraph.From(emailverificationtoken.Table, emailverificationtoken.FieldID, id), - sqlgraph.To(user.Table, user.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, emailverificationtoken.OwnerTable, emailverificationtoken.OwnerColumn), + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, id), + sqlgraph.To(internalpolicy.Table, internalpolicy.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, controlobjective.PolicyTable, controlobjective.PolicyPrimaryKey...), ) - schemaConfig := evt.schemaConfig - step.To.Schema = schemaConfig.User - step.Edge.Schema = schemaConfig.EmailVerificationToken - fromV = sqlgraph.Neighbors(evt.driver.Dialect(), step) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicyControlobjectives + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) return fromV, nil } return query } -// Hooks returns the client hooks. -func (c *EmailVerificationTokenClient) Hooks() []Hook { - hooks := c.hooks.EmailVerificationToken - return append(hooks[:len(hooks):len(hooks)], emailverificationtoken.Hooks[:]...) -} - -// Interceptors returns the client interceptors. -func (c *EmailVerificationTokenClient) Interceptors() []Interceptor { - inters := c.inters.EmailVerificationToken - return append(inters[:len(inters):len(inters)], emailverificationtoken.Interceptors[:]...) +// QueryControls queries the controls edge of a ControlObjective. +func (c *ControlObjectiveClient) QueryControls(co *ControlObjective) *ControlQuery { + query := (&ControlClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := co.ID + step := sqlgraph.NewStep( + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, id), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, controlobjective.ControlsTable, controlobjective.ControlsColumn), + ) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.Control + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) + return fromV, nil + } + return query } -func (c *EmailVerificationTokenClient) mutate(ctx context.Context, m *EmailVerificationTokenMutation) (Value, error) { - switch m.Op() { - case OpCreate: - return (&EmailVerificationTokenCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) - case OpUpdate: - return (&EmailVerificationTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) - case OpUpdateOne: - return (&EmailVerificationTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) - case OpDelete, OpDeleteOne: - return (&EmailVerificationTokenDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) - default: - return nil, fmt.Errorf("generated: unknown EmailVerificationToken mutation op: %q", m.Op()) +// QueryProcedures queries the procedures edge of a ControlObjective. +func (c *ControlObjectiveClient) QueryProcedures(co *ControlObjective) *ProcedureQuery { + query := (&ProcedureClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := co.ID + step := sqlgraph.NewStep( + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, id), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, controlobjective.ProceduresTable, controlobjective.ProceduresColumn), + ) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.Procedure + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) + return fromV, nil } + return query } -// EntitlementClient is a client for the Entitlement schema. -type EntitlementClient struct { - config +// QueryRisks queries the risks edge of a ControlObjective. +func (c *ControlObjectiveClient) QueryRisks(co *ControlObjective) *RiskQuery { + query := (&RiskClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := co.ID + step := sqlgraph.NewStep( + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, id), + sqlgraph.To(risk.Table, risk.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, controlobjective.RisksTable, controlobjective.RisksColumn), + ) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.Risk + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) + return fromV, nil + } + return query } -// NewEntitlementClient returns a client for the Entitlement from the given config. -func NewEntitlementClient(c config) *EntitlementClient { - return &EntitlementClient{config: c} -} - -// Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `entitlement.Hooks(f(g(h())))`. -func (c *EntitlementClient) Use(hooks ...Hook) { - c.hooks.Entitlement = append(c.hooks.Entitlement, hooks...) -} - -// Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `entitlement.Intercept(f(g(h())))`. -func (c *EntitlementClient) Intercept(interceptors ...Interceptor) { - c.inters.Entitlement = append(c.inters.Entitlement, interceptors...) -} - -// Create returns a builder for creating a Entitlement entity. -func (c *EntitlementClient) Create() *EntitlementCreate { - mutation := newEntitlementMutation(c.config, OpCreate) - return &EntitlementCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} -} - -// CreateBulk returns a builder for creating a bulk of Entitlement entities. -func (c *EntitlementClient) CreateBulk(builders ...*EntitlementCreate) *EntitlementCreateBulk { - return &EntitlementCreateBulk{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 *EntitlementClient) MapCreateBulk(slice any, setFunc func(*EntitlementCreate, int)) *EntitlementCreateBulk { - rv := reflect.ValueOf(slice) - if rv.Kind() != reflect.Slice { - return &EntitlementCreateBulk{err: fmt.Errorf("calling to EntitlementClient.MapCreateBulk with wrong type %T, need slice", slice)} - } - builders := make([]*EntitlementCreate, rv.Len()) - for i := 0; i < rv.Len(); i++ { - builders[i] = c.Create() - setFunc(builders[i], i) - } - return &EntitlementCreateBulk{config: c.config, builders: builders} -} - -// Update returns an update builder for Entitlement. -func (c *EntitlementClient) Update() *EntitlementUpdate { - mutation := newEntitlementMutation(c.config, OpUpdate) - return &EntitlementUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} -} - -// UpdateOne returns an update builder for the given entity. -func (c *EntitlementClient) UpdateOne(e *Entitlement) *EntitlementUpdateOne { - mutation := newEntitlementMutation(c.config, OpUpdateOne, withEntitlement(e)) - return &EntitlementUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} -} - -// UpdateOneID returns an update builder for the given id. -func (c *EntitlementClient) UpdateOneID(id string) *EntitlementUpdateOne { - mutation := newEntitlementMutation(c.config, OpUpdateOne, withEntitlementID(id)) - return &EntitlementUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} -} - -// Delete returns a delete builder for Entitlement. -func (c *EntitlementClient) Delete() *EntitlementDelete { - mutation := newEntitlementMutation(c.config, OpDelete) - return &EntitlementDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} -} - -// DeleteOne returns a builder for deleting the given entity. -func (c *EntitlementClient) DeleteOne(e *Entitlement) *EntitlementDeleteOne { - return c.DeleteOneID(e.ID) -} - -// DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EntitlementClient) DeleteOneID(id string) *EntitlementDeleteOne { - builder := c.Delete().Where(entitlement.ID(id)) - builder.mutation.id = &id - builder.mutation.op = OpDeleteOne - return &EntitlementDeleteOne{builder} -} - -// Query returns a query builder for Entitlement. -func (c *EntitlementClient) Query() *EntitlementQuery { - return &EntitlementQuery{ - config: c.config, - ctx: &QueryContext{Type: TypeEntitlement}, - inters: c.Interceptors(), - } -} - -// Get returns a Entitlement entity by its id. -func (c *EntitlementClient) Get(ctx context.Context, id string) (*Entitlement, error) { - return c.Query().Where(entitlement.ID(id)).Only(ctx) -} - -// GetX is like Get, but panics if an error occurs. -func (c *EntitlementClient) GetX(ctx context.Context, id string) *Entitlement { - obj, err := c.Get(ctx, id) - if err != nil { - panic(err) - } - return obj -} - -// QueryOwner queries the owner edge of a Entitlement. -func (c *EntitlementClient) QueryOwner(e *Entitlement) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(entitlement.Table, entitlement.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, entitlement.OwnerTable, entitlement.OwnerColumn), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.Entitlement - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryPlan queries the plan edge of a Entitlement. -func (c *EntitlementClient) QueryPlan(e *Entitlement) *EntitlementPlanQuery { - query := (&EntitlementPlanClient{config: c.config}).Query() +// QuerySubcontrols queries the subcontrols edge of a ControlObjective. +func (c *ControlObjectiveClient) QuerySubcontrols(co *ControlObjective) *SubcontrolQuery { + query := (&SubcontrolClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID + id := co.ID step := sqlgraph.NewStep( - sqlgraph.From(entitlement.Table, entitlement.FieldID, id), - sqlgraph.To(entitlementplan.Table, entitlementplan.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, entitlement.PlanTable, entitlement.PlanColumn), + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, id), + sqlgraph.To(subcontrol.Table, subcontrol.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, controlobjective.SubcontrolsTable, controlobjective.SubcontrolsColumn), ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.EntitlementPlan - step.Edge.Schema = schemaConfig.Entitlement - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.Subcontrol + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) return fromV, nil } return query } -// QueryOrganization queries the organization edge of a Entitlement. -func (c *EntitlementClient) QueryOrganization(e *Entitlement) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() +// QueryStandard queries the standard edge of a ControlObjective. +func (c *ControlObjectiveClient) QueryStandard(co *ControlObjective) *StandardQuery { + query := (&StandardClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID + id := co.ID step := sqlgraph.NewStep( - sqlgraph.From(entitlement.Table, entitlement.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, entitlement.OrganizationTable, entitlement.OrganizationColumn), + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, id), + sqlgraph.To(standard.Table, standard.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, controlobjective.StandardTable, controlobjective.StandardPrimaryKey...), ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.Entitlement - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.StandardControlobjectives + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) return fromV, nil } return query } -// QueryEvents queries the events edge of a Entitlement. -func (c *EntitlementClient) QueryEvents(e *Entitlement) *EventQuery { - query := (&EventClient{config: c.config}).Query() +// QueryNarratives queries the narratives edge of a ControlObjective. +func (c *ControlObjectiveClient) QueryNarratives(co *ControlObjective) *NarrativeQuery { + query := (&NarrativeClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID + id := co.ID step := sqlgraph.NewStep( - sqlgraph.From(entitlement.Table, entitlement.FieldID, id), - sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, entitlement.EventsTable, entitlement.EventsPrimaryKey...), + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, id), + sqlgraph.To(narrative.Table, narrative.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, controlobjective.NarrativesTable, controlobjective.NarrativesPrimaryKey...), ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.EntitlementEvents - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + schemaConfig := co.schemaConfig + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.ControlObjectiveNarratives + fromV = sqlgraph.Neighbors(co.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *EntitlementClient) Hooks() []Hook { - hooks := c.hooks.Entitlement - return append(hooks[:len(hooks):len(hooks)], entitlement.Hooks[:]...) +func (c *ControlObjectiveClient) Hooks() []Hook { + hooks := c.hooks.ControlObjective + return append(hooks[:len(hooks):len(hooks)], controlobjective.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *EntitlementClient) Interceptors() []Interceptor { - inters := c.inters.Entitlement - return append(inters[:len(inters):len(inters)], entitlement.Interceptors[:]...) +func (c *ControlObjectiveClient) Interceptors() []Interceptor { + inters := c.inters.ControlObjective + return append(inters[:len(inters):len(inters)], controlobjective.Interceptors[:]...) } -func (c *EntitlementClient) mutate(ctx context.Context, m *EntitlementMutation) (Value, error) { +func (c *ControlObjectiveClient) mutate(ctx context.Context, m *ControlObjectiveMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&EntitlementCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&ControlObjectiveCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&EntitlementUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&ControlObjectiveUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&EntitlementUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&ControlObjectiveUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&EntitlementDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&ControlObjectiveDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown Entitlement mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown ControlObjective mutation op: %q", m.Op()) } } -// EntitlementHistoryClient is a client for the EntitlementHistory schema. -type EntitlementHistoryClient struct { +// ControlObjectiveHistoryClient is a client for the ControlObjectiveHistory schema. +type ControlObjectiveHistoryClient struct { config } -// NewEntitlementHistoryClient returns a client for the EntitlementHistory from the given config. -func NewEntitlementHistoryClient(c config) *EntitlementHistoryClient { - return &EntitlementHistoryClient{config: c} +// NewControlObjectiveHistoryClient returns a client for the ControlObjectiveHistory from the given config. +func NewControlObjectiveHistoryClient(c config) *ControlObjectiveHistoryClient { + return &ControlObjectiveHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `entitlementhistory.Hooks(f(g(h())))`. -func (c *EntitlementHistoryClient) Use(hooks ...Hook) { - c.hooks.EntitlementHistory = append(c.hooks.EntitlementHistory, hooks...) +// A call to `Use(f, g, h)` equals to `controlobjectivehistory.Hooks(f(g(h())))`. +func (c *ControlObjectiveHistoryClient) Use(hooks ...Hook) { + c.hooks.ControlObjectiveHistory = append(c.hooks.ControlObjectiveHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `entitlementhistory.Intercept(f(g(h())))`. -func (c *EntitlementHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.EntitlementHistory = append(c.inters.EntitlementHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `controlobjectivehistory.Intercept(f(g(h())))`. +func (c *ControlObjectiveHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.ControlObjectiveHistory = append(c.inters.ControlObjectiveHistory, interceptors...) } -// Create returns a builder for creating a EntitlementHistory entity. -func (c *EntitlementHistoryClient) Create() *EntitlementHistoryCreate { - mutation := newEntitlementHistoryMutation(c.config, OpCreate) - return &EntitlementHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a ControlObjectiveHistory entity. +func (c *ControlObjectiveHistoryClient) Create() *ControlObjectiveHistoryCreate { + mutation := newControlObjectiveHistoryMutation(c.config, OpCreate) + return &ControlObjectiveHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of EntitlementHistory entities. -func (c *EntitlementHistoryClient) CreateBulk(builders ...*EntitlementHistoryCreate) *EntitlementHistoryCreateBulk { - return &EntitlementHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of ControlObjectiveHistory entities. +func (c *ControlObjectiveHistoryClient) CreateBulk(builders ...*ControlObjectiveHistoryCreate) *ControlObjectiveHistoryCreateBulk { + return &ControlObjectiveHistoryCreateBulk{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 *EntitlementHistoryClient) MapCreateBulk(slice any, setFunc func(*EntitlementHistoryCreate, int)) *EntitlementHistoryCreateBulk { +func (c *ControlObjectiveHistoryClient) MapCreateBulk(slice any, setFunc func(*ControlObjectiveHistoryCreate, int)) *ControlObjectiveHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &EntitlementHistoryCreateBulk{err: fmt.Errorf("calling to EntitlementHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &ControlObjectiveHistoryCreateBulk{err: fmt.Errorf("calling to ControlObjectiveHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*EntitlementHistoryCreate, rv.Len()) + builders := make([]*ControlObjectiveHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &EntitlementHistoryCreateBulk{config: c.config, builders: builders} + return &ControlObjectiveHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for EntitlementHistory. -func (c *EntitlementHistoryClient) Update() *EntitlementHistoryUpdate { - mutation := newEntitlementHistoryMutation(c.config, OpUpdate) - return &EntitlementHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for ControlObjectiveHistory. +func (c *ControlObjectiveHistoryClient) Update() *ControlObjectiveHistoryUpdate { + mutation := newControlObjectiveHistoryMutation(c.config, OpUpdate) + return &ControlObjectiveHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *EntitlementHistoryClient) UpdateOne(eh *EntitlementHistory) *EntitlementHistoryUpdateOne { - mutation := newEntitlementHistoryMutation(c.config, OpUpdateOne, withEntitlementHistory(eh)) - return &EntitlementHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *ControlObjectiveHistoryClient) UpdateOne(coh *ControlObjectiveHistory) *ControlObjectiveHistoryUpdateOne { + mutation := newControlObjectiveHistoryMutation(c.config, OpUpdateOne, withControlObjectiveHistory(coh)) + return &ControlObjectiveHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *EntitlementHistoryClient) UpdateOneID(id string) *EntitlementHistoryUpdateOne { - mutation := newEntitlementHistoryMutation(c.config, OpUpdateOne, withEntitlementHistoryID(id)) - return &EntitlementHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *ControlObjectiveHistoryClient) UpdateOneID(id string) *ControlObjectiveHistoryUpdateOne { + mutation := newControlObjectiveHistoryMutation(c.config, OpUpdateOne, withControlObjectiveHistoryID(id)) + return &ControlObjectiveHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for EntitlementHistory. -func (c *EntitlementHistoryClient) Delete() *EntitlementHistoryDelete { - mutation := newEntitlementHistoryMutation(c.config, OpDelete) - return &EntitlementHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for ControlObjectiveHistory. +func (c *ControlObjectiveHistoryClient) Delete() *ControlObjectiveHistoryDelete { + mutation := newControlObjectiveHistoryMutation(c.config, OpDelete) + return &ControlObjectiveHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *EntitlementHistoryClient) DeleteOne(eh *EntitlementHistory) *EntitlementHistoryDeleteOne { - return c.DeleteOneID(eh.ID) +func (c *ControlObjectiveHistoryClient) DeleteOne(coh *ControlObjectiveHistory) *ControlObjectiveHistoryDeleteOne { + return c.DeleteOneID(coh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EntitlementHistoryClient) DeleteOneID(id string) *EntitlementHistoryDeleteOne { - builder := c.Delete().Where(entitlementhistory.ID(id)) +func (c *ControlObjectiveHistoryClient) DeleteOneID(id string) *ControlObjectiveHistoryDeleteOne { + builder := c.Delete().Where(controlobjectivehistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &EntitlementHistoryDeleteOne{builder} + return &ControlObjectiveHistoryDeleteOne{builder} } -// Query returns a query builder for EntitlementHistory. -func (c *EntitlementHistoryClient) Query() *EntitlementHistoryQuery { - return &EntitlementHistoryQuery{ +// Query returns a query builder for ControlObjectiveHistory. +func (c *ControlObjectiveHistoryClient) Query() *ControlObjectiveHistoryQuery { + return &ControlObjectiveHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeEntitlementHistory}, + ctx: &QueryContext{Type: TypeControlObjectiveHistory}, inters: c.Interceptors(), } } -// Get returns a EntitlementHistory entity by its id. -func (c *EntitlementHistoryClient) Get(ctx context.Context, id string) (*EntitlementHistory, error) { - return c.Query().Where(entitlementhistory.ID(id)).Only(ctx) +// Get returns a ControlObjectiveHistory entity by its id. +func (c *ControlObjectiveHistoryClient) Get(ctx context.Context, id string) (*ControlObjectiveHistory, error) { + return c.Query().Where(controlobjectivehistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *EntitlementHistoryClient) GetX(ctx context.Context, id string) *EntitlementHistory { +func (c *ControlObjectiveHistoryClient) GetX(ctx context.Context, id string) *ControlObjectiveHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -2134,133 +2588,131 @@ func (c *EntitlementHistoryClient) GetX(ctx context.Context, id string) *Entitle } // Hooks returns the client hooks. -func (c *EntitlementHistoryClient) Hooks() []Hook { - hooks := c.hooks.EntitlementHistory - return append(hooks[:len(hooks):len(hooks)], entitlementhistory.Hooks[:]...) +func (c *ControlObjectiveHistoryClient) Hooks() []Hook { + return c.hooks.ControlObjectiveHistory } // Interceptors returns the client interceptors. -func (c *EntitlementHistoryClient) Interceptors() []Interceptor { - inters := c.inters.EntitlementHistory - return append(inters[:len(inters):len(inters)], entitlementhistory.Interceptors[:]...) +func (c *ControlObjectiveHistoryClient) Interceptors() []Interceptor { + return c.inters.ControlObjectiveHistory } -func (c *EntitlementHistoryClient) mutate(ctx context.Context, m *EntitlementHistoryMutation) (Value, error) { +func (c *ControlObjectiveHistoryClient) mutate(ctx context.Context, m *ControlObjectiveHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&EntitlementHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&ControlObjectiveHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&EntitlementHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&ControlObjectiveHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&EntitlementHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&ControlObjectiveHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&EntitlementHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&ControlObjectiveHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown EntitlementHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown ControlObjectiveHistory mutation op: %q", m.Op()) } } -// EntitlementPlanClient is a client for the EntitlementPlan schema. -type EntitlementPlanClient struct { +// DocumentDataClient is a client for the DocumentData schema. +type DocumentDataClient struct { config } -// NewEntitlementPlanClient returns a client for the EntitlementPlan from the given config. -func NewEntitlementPlanClient(c config) *EntitlementPlanClient { - return &EntitlementPlanClient{config: c} +// NewDocumentDataClient returns a client for the DocumentData from the given config. +func NewDocumentDataClient(c config) *DocumentDataClient { + return &DocumentDataClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `entitlementplan.Hooks(f(g(h())))`. -func (c *EntitlementPlanClient) Use(hooks ...Hook) { - c.hooks.EntitlementPlan = append(c.hooks.EntitlementPlan, hooks...) +// A call to `Use(f, g, h)` equals to `documentdata.Hooks(f(g(h())))`. +func (c *DocumentDataClient) Use(hooks ...Hook) { + c.hooks.DocumentData = append(c.hooks.DocumentData, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `entitlementplan.Intercept(f(g(h())))`. -func (c *EntitlementPlanClient) Intercept(interceptors ...Interceptor) { - c.inters.EntitlementPlan = append(c.inters.EntitlementPlan, interceptors...) -} +// A call to `Intercept(f, g, h)` equals to `documentdata.Intercept(f(g(h())))`. +func (c *DocumentDataClient) Intercept(interceptors ...Interceptor) { + c.inters.DocumentData = append(c.inters.DocumentData, interceptors...) +} -// Create returns a builder for creating a EntitlementPlan entity. -func (c *EntitlementPlanClient) Create() *EntitlementPlanCreate { - mutation := newEntitlementPlanMutation(c.config, OpCreate) - return &EntitlementPlanCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a DocumentData entity. +func (c *DocumentDataClient) Create() *DocumentDataCreate { + mutation := newDocumentDataMutation(c.config, OpCreate) + return &DocumentDataCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of EntitlementPlan entities. -func (c *EntitlementPlanClient) CreateBulk(builders ...*EntitlementPlanCreate) *EntitlementPlanCreateBulk { - return &EntitlementPlanCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of DocumentData entities. +func (c *DocumentDataClient) CreateBulk(builders ...*DocumentDataCreate) *DocumentDataCreateBulk { + return &DocumentDataCreateBulk{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 *EntitlementPlanClient) MapCreateBulk(slice any, setFunc func(*EntitlementPlanCreate, int)) *EntitlementPlanCreateBulk { +func (c *DocumentDataClient) MapCreateBulk(slice any, setFunc func(*DocumentDataCreate, int)) *DocumentDataCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &EntitlementPlanCreateBulk{err: fmt.Errorf("calling to EntitlementPlanClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &DocumentDataCreateBulk{err: fmt.Errorf("calling to DocumentDataClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*EntitlementPlanCreate, rv.Len()) + builders := make([]*DocumentDataCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &EntitlementPlanCreateBulk{config: c.config, builders: builders} + return &DocumentDataCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for EntitlementPlan. -func (c *EntitlementPlanClient) Update() *EntitlementPlanUpdate { - mutation := newEntitlementPlanMutation(c.config, OpUpdate) - return &EntitlementPlanUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for DocumentData. +func (c *DocumentDataClient) Update() *DocumentDataUpdate { + mutation := newDocumentDataMutation(c.config, OpUpdate) + return &DocumentDataUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *EntitlementPlanClient) UpdateOne(ep *EntitlementPlan) *EntitlementPlanUpdateOne { - mutation := newEntitlementPlanMutation(c.config, OpUpdateOne, withEntitlementPlan(ep)) - return &EntitlementPlanUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *DocumentDataClient) UpdateOne(dd *DocumentData) *DocumentDataUpdateOne { + mutation := newDocumentDataMutation(c.config, OpUpdateOne, withDocumentData(dd)) + return &DocumentDataUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *EntitlementPlanClient) UpdateOneID(id string) *EntitlementPlanUpdateOne { - mutation := newEntitlementPlanMutation(c.config, OpUpdateOne, withEntitlementPlanID(id)) - return &EntitlementPlanUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *DocumentDataClient) UpdateOneID(id string) *DocumentDataUpdateOne { + mutation := newDocumentDataMutation(c.config, OpUpdateOne, withDocumentDataID(id)) + return &DocumentDataUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for EntitlementPlan. -func (c *EntitlementPlanClient) Delete() *EntitlementPlanDelete { - mutation := newEntitlementPlanMutation(c.config, OpDelete) - return &EntitlementPlanDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for DocumentData. +func (c *DocumentDataClient) Delete() *DocumentDataDelete { + mutation := newDocumentDataMutation(c.config, OpDelete) + return &DocumentDataDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *EntitlementPlanClient) DeleteOne(ep *EntitlementPlan) *EntitlementPlanDeleteOne { - return c.DeleteOneID(ep.ID) +func (c *DocumentDataClient) DeleteOne(dd *DocumentData) *DocumentDataDeleteOne { + return c.DeleteOneID(dd.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EntitlementPlanClient) DeleteOneID(id string) *EntitlementPlanDeleteOne { - builder := c.Delete().Where(entitlementplan.ID(id)) +func (c *DocumentDataClient) DeleteOneID(id string) *DocumentDataDeleteOne { + builder := c.Delete().Where(documentdata.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &EntitlementPlanDeleteOne{builder} + return &DocumentDataDeleteOne{builder} } -// Query returns a query builder for EntitlementPlan. -func (c *EntitlementPlanClient) Query() *EntitlementPlanQuery { - return &EntitlementPlanQuery{ +// Query returns a query builder for DocumentData. +func (c *DocumentDataClient) Query() *DocumentDataQuery { + return &DocumentDataQuery{ config: c.config, - ctx: &QueryContext{Type: TypeEntitlementPlan}, + ctx: &QueryContext{Type: TypeDocumentData}, inters: c.Interceptors(), } } -// Get returns a EntitlementPlan entity by its id. -func (c *EntitlementPlanClient) Get(ctx context.Context, id string) (*EntitlementPlan, error) { - return c.Query().Where(entitlementplan.ID(id)).Only(ctx) +// Get returns a DocumentData entity by its id. +func (c *DocumentDataClient) Get(ctx context.Context, id string) (*DocumentData, error) { + return c.Query().Where(documentdata.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *EntitlementPlanClient) GetX(ctx context.Context, id string) *EntitlementPlan { +func (c *DocumentDataClient) GetX(ctx context.Context, id string) *DocumentData { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -2268,229 +2720,210 @@ func (c *EntitlementPlanClient) GetX(ctx context.Context, id string) *Entitlemen return obj } -// QueryOwner queries the owner edge of a EntitlementPlan. -func (c *EntitlementPlanClient) QueryOwner(ep *EntitlementPlan) *OrganizationQuery { +// QueryOwner queries the owner edge of a DocumentData. +func (c *DocumentDataClient) QueryOwner(dd *DocumentData) *OrganizationQuery { query := (&OrganizationClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := ep.ID + id := dd.ID step := sqlgraph.NewStep( - sqlgraph.From(entitlementplan.Table, entitlementplan.FieldID, id), + sqlgraph.From(documentdata.Table, documentdata.FieldID, id), sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, entitlementplan.OwnerTable, entitlementplan.OwnerColumn), + sqlgraph.Edge(sqlgraph.M2O, true, documentdata.OwnerTable, documentdata.OwnerColumn), ) - schemaConfig := ep.schemaConfig + schemaConfig := dd.schemaConfig step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.EntitlementPlan - fromV = sqlgraph.Neighbors(ep.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryEntitlements queries the entitlements edge of a EntitlementPlan. -func (c *EntitlementPlanClient) QueryEntitlements(ep *EntitlementPlan) *EntitlementQuery { - query := (&EntitlementClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := ep.ID - step := sqlgraph.NewStep( - sqlgraph.From(entitlementplan.Table, entitlementplan.FieldID, id), - sqlgraph.To(entitlement.Table, entitlement.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, entitlementplan.EntitlementsTable, entitlementplan.EntitlementsColumn), - ) - schemaConfig := ep.schemaConfig - step.To.Schema = schemaConfig.Entitlement - step.Edge.Schema = schemaConfig.Entitlement - fromV = sqlgraph.Neighbors(ep.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.DocumentData + fromV = sqlgraph.Neighbors(dd.driver.Dialect(), step) return fromV, nil } return query } -// QueryBaseFeatures queries the base_features edge of a EntitlementPlan. -func (c *EntitlementPlanClient) QueryBaseFeatures(ep *EntitlementPlan) *FeatureQuery { - query := (&FeatureClient{config: c.config}).Query() +// QueryTemplate queries the template edge of a DocumentData. +func (c *DocumentDataClient) QueryTemplate(dd *DocumentData) *TemplateQuery { + query := (&TemplateClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := ep.ID + id := dd.ID step := sqlgraph.NewStep( - sqlgraph.From(entitlementplan.Table, entitlementplan.FieldID, id), - sqlgraph.To(feature.Table, feature.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, entitlementplan.BaseFeaturesTable, entitlementplan.BaseFeaturesPrimaryKey...), + sqlgraph.From(documentdata.Table, documentdata.FieldID, id), + sqlgraph.To(template.Table, template.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, documentdata.TemplateTable, documentdata.TemplateColumn), ) - schemaConfig := ep.schemaConfig - step.To.Schema = schemaConfig.Feature - step.Edge.Schema = schemaConfig.EntitlementPlanFeature - fromV = sqlgraph.Neighbors(ep.driver.Dialect(), step) + schemaConfig := dd.schemaConfig + step.To.Schema = schemaConfig.Template + step.Edge.Schema = schemaConfig.DocumentData + fromV = sqlgraph.Neighbors(dd.driver.Dialect(), step) return fromV, nil } return query } -// QueryEvents queries the events edge of a EntitlementPlan. -func (c *EntitlementPlanClient) QueryEvents(ep *EntitlementPlan) *EventQuery { - query := (&EventClient{config: c.config}).Query() +// QueryEntity queries the entity edge of a DocumentData. +func (c *DocumentDataClient) QueryEntity(dd *DocumentData) *EntityQuery { + query := (&EntityClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := ep.ID + id := dd.ID step := sqlgraph.NewStep( - sqlgraph.From(entitlementplan.Table, entitlementplan.FieldID, id), - sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, entitlementplan.EventsTable, entitlementplan.EventsPrimaryKey...), + sqlgraph.From(documentdata.Table, documentdata.FieldID, id), + sqlgraph.To(entity.Table, entity.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, documentdata.EntityTable, documentdata.EntityPrimaryKey...), ) - schemaConfig := ep.schemaConfig - step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.EntitlementPlanEvents - fromV = sqlgraph.Neighbors(ep.driver.Dialect(), step) + schemaConfig := dd.schemaConfig + step.To.Schema = schemaConfig.Entity + step.Edge.Schema = schemaConfig.EntityDocuments + fromV = sqlgraph.Neighbors(dd.driver.Dialect(), step) return fromV, nil } return query } -// QueryFeatures queries the features edge of a EntitlementPlan. -func (c *EntitlementPlanClient) QueryFeatures(ep *EntitlementPlan) *EntitlementPlanFeatureQuery { - query := (&EntitlementPlanFeatureClient{config: c.config}).Query() +// QueryFiles queries the files edge of a DocumentData. +func (c *DocumentDataClient) QueryFiles(dd *DocumentData) *FileQuery { + query := (&FileClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := ep.ID + id := dd.ID step := sqlgraph.NewStep( - sqlgraph.From(entitlementplan.Table, entitlementplan.FieldID, id), - sqlgraph.To(entitlementplanfeature.Table, entitlementplanfeature.FieldID), - sqlgraph.Edge(sqlgraph.O2M, true, entitlementplan.FeaturesTable, entitlementplan.FeaturesColumn), + sqlgraph.From(documentdata.Table, documentdata.FieldID, id), + sqlgraph.To(file.Table, file.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, documentdata.FilesTable, documentdata.FilesPrimaryKey...), ) - schemaConfig := ep.schemaConfig - step.To.Schema = schemaConfig.EntitlementPlanFeature - step.Edge.Schema = schemaConfig.EntitlementPlanFeature - fromV = sqlgraph.Neighbors(ep.driver.Dialect(), step) + schemaConfig := dd.schemaConfig + step.To.Schema = schemaConfig.File + step.Edge.Schema = schemaConfig.DocumentDataFiles + fromV = sqlgraph.Neighbors(dd.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *EntitlementPlanClient) Hooks() []Hook { - hooks := c.hooks.EntitlementPlan - return append(hooks[:len(hooks):len(hooks)], entitlementplan.Hooks[:]...) +func (c *DocumentDataClient) Hooks() []Hook { + hooks := c.hooks.DocumentData + return append(hooks[:len(hooks):len(hooks)], documentdata.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *EntitlementPlanClient) Interceptors() []Interceptor { - inters := c.inters.EntitlementPlan - return append(inters[:len(inters):len(inters)], entitlementplan.Interceptors[:]...) +func (c *DocumentDataClient) Interceptors() []Interceptor { + inters := c.inters.DocumentData + return append(inters[:len(inters):len(inters)], documentdata.Interceptors[:]...) } -func (c *EntitlementPlanClient) mutate(ctx context.Context, m *EntitlementPlanMutation) (Value, error) { +func (c *DocumentDataClient) mutate(ctx context.Context, m *DocumentDataMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&EntitlementPlanCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&DocumentDataCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&EntitlementPlanUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&DocumentDataUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&EntitlementPlanUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&DocumentDataUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&EntitlementPlanDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&DocumentDataDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown EntitlementPlan mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown DocumentData mutation op: %q", m.Op()) } } -// EntitlementPlanFeatureClient is a client for the EntitlementPlanFeature schema. -type EntitlementPlanFeatureClient struct { +// DocumentDataHistoryClient is a client for the DocumentDataHistory schema. +type DocumentDataHistoryClient struct { config } -// NewEntitlementPlanFeatureClient returns a client for the EntitlementPlanFeature from the given config. -func NewEntitlementPlanFeatureClient(c config) *EntitlementPlanFeatureClient { - return &EntitlementPlanFeatureClient{config: c} +// NewDocumentDataHistoryClient returns a client for the DocumentDataHistory from the given config. +func NewDocumentDataHistoryClient(c config) *DocumentDataHistoryClient { + return &DocumentDataHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `entitlementplanfeature.Hooks(f(g(h())))`. -func (c *EntitlementPlanFeatureClient) Use(hooks ...Hook) { - c.hooks.EntitlementPlanFeature = append(c.hooks.EntitlementPlanFeature, hooks...) +// A call to `Use(f, g, h)` equals to `documentdatahistory.Hooks(f(g(h())))`. +func (c *DocumentDataHistoryClient) Use(hooks ...Hook) { + c.hooks.DocumentDataHistory = append(c.hooks.DocumentDataHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `entitlementplanfeature.Intercept(f(g(h())))`. -func (c *EntitlementPlanFeatureClient) Intercept(interceptors ...Interceptor) { - c.inters.EntitlementPlanFeature = append(c.inters.EntitlementPlanFeature, interceptors...) +// A call to `Intercept(f, g, h)` equals to `documentdatahistory.Intercept(f(g(h())))`. +func (c *DocumentDataHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.DocumentDataHistory = append(c.inters.DocumentDataHistory, interceptors...) } -// Create returns a builder for creating a EntitlementPlanFeature entity. -func (c *EntitlementPlanFeatureClient) Create() *EntitlementPlanFeatureCreate { - mutation := newEntitlementPlanFeatureMutation(c.config, OpCreate) - return &EntitlementPlanFeatureCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a DocumentDataHistory entity. +func (c *DocumentDataHistoryClient) Create() *DocumentDataHistoryCreate { + mutation := newDocumentDataHistoryMutation(c.config, OpCreate) + return &DocumentDataHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of EntitlementPlanFeature entities. -func (c *EntitlementPlanFeatureClient) CreateBulk(builders ...*EntitlementPlanFeatureCreate) *EntitlementPlanFeatureCreateBulk { - return &EntitlementPlanFeatureCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of DocumentDataHistory entities. +func (c *DocumentDataHistoryClient) CreateBulk(builders ...*DocumentDataHistoryCreate) *DocumentDataHistoryCreateBulk { + return &DocumentDataHistoryCreateBulk{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 *EntitlementPlanFeatureClient) MapCreateBulk(slice any, setFunc func(*EntitlementPlanFeatureCreate, int)) *EntitlementPlanFeatureCreateBulk { +func (c *DocumentDataHistoryClient) MapCreateBulk(slice any, setFunc func(*DocumentDataHistoryCreate, int)) *DocumentDataHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &EntitlementPlanFeatureCreateBulk{err: fmt.Errorf("calling to EntitlementPlanFeatureClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &DocumentDataHistoryCreateBulk{err: fmt.Errorf("calling to DocumentDataHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*EntitlementPlanFeatureCreate, rv.Len()) + builders := make([]*DocumentDataHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &EntitlementPlanFeatureCreateBulk{config: c.config, builders: builders} -} - -// Update returns an update builder for EntitlementPlanFeature. -func (c *EntitlementPlanFeatureClient) Update() *EntitlementPlanFeatureUpdate { - mutation := newEntitlementPlanFeatureMutation(c.config, OpUpdate) - return &EntitlementPlanFeatureUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} + return &DocumentDataHistoryCreateBulk{config: c.config, builders: builders} } -// UpdateOne returns an update builder for the given entity. -func (c *EntitlementPlanFeatureClient) UpdateOne(epf *EntitlementPlanFeature) *EntitlementPlanFeatureUpdateOne { - mutation := newEntitlementPlanFeatureMutation(c.config, OpUpdateOne, withEntitlementPlanFeature(epf)) - return &EntitlementPlanFeatureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for DocumentDataHistory. +func (c *DocumentDataHistoryClient) Update() *DocumentDataHistoryUpdate { + mutation := newDocumentDataHistoryMutation(c.config, OpUpdate) + return &DocumentDataHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *DocumentDataHistoryClient) UpdateOne(ddh *DocumentDataHistory) *DocumentDataHistoryUpdateOne { + mutation := newDocumentDataHistoryMutation(c.config, OpUpdateOne, withDocumentDataHistory(ddh)) + return &DocumentDataHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *EntitlementPlanFeatureClient) UpdateOneID(id string) *EntitlementPlanFeatureUpdateOne { - mutation := newEntitlementPlanFeatureMutation(c.config, OpUpdateOne, withEntitlementPlanFeatureID(id)) - return &EntitlementPlanFeatureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *DocumentDataHistoryClient) UpdateOneID(id string) *DocumentDataHistoryUpdateOne { + mutation := newDocumentDataHistoryMutation(c.config, OpUpdateOne, withDocumentDataHistoryID(id)) + return &DocumentDataHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for EntitlementPlanFeature. -func (c *EntitlementPlanFeatureClient) Delete() *EntitlementPlanFeatureDelete { - mutation := newEntitlementPlanFeatureMutation(c.config, OpDelete) - return &EntitlementPlanFeatureDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for DocumentDataHistory. +func (c *DocumentDataHistoryClient) Delete() *DocumentDataHistoryDelete { + mutation := newDocumentDataHistoryMutation(c.config, OpDelete) + return &DocumentDataHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *EntitlementPlanFeatureClient) DeleteOne(epf *EntitlementPlanFeature) *EntitlementPlanFeatureDeleteOne { - return c.DeleteOneID(epf.ID) +func (c *DocumentDataHistoryClient) DeleteOne(ddh *DocumentDataHistory) *DocumentDataHistoryDeleteOne { + return c.DeleteOneID(ddh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EntitlementPlanFeatureClient) DeleteOneID(id string) *EntitlementPlanFeatureDeleteOne { - builder := c.Delete().Where(entitlementplanfeature.ID(id)) +func (c *DocumentDataHistoryClient) DeleteOneID(id string) *DocumentDataHistoryDeleteOne { + builder := c.Delete().Where(documentdatahistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &EntitlementPlanFeatureDeleteOne{builder} + return &DocumentDataHistoryDeleteOne{builder} } -// Query returns a query builder for EntitlementPlanFeature. -func (c *EntitlementPlanFeatureClient) Query() *EntitlementPlanFeatureQuery { - return &EntitlementPlanFeatureQuery{ +// Query returns a query builder for DocumentDataHistory. +func (c *DocumentDataHistoryClient) Query() *DocumentDataHistoryQuery { + return &DocumentDataHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeEntitlementPlanFeature}, + ctx: &QueryContext{Type: TypeDocumentDataHistory}, inters: c.Interceptors(), } } -// Get returns a EntitlementPlanFeature entity by its id. -func (c *EntitlementPlanFeatureClient) Get(ctx context.Context, id string) (*EntitlementPlanFeature, error) { - return c.Query().Where(entitlementplanfeature.ID(id)).Only(ctx) +// Get returns a DocumentDataHistory entity by its id. +func (c *DocumentDataHistoryClient) Get(ctx context.Context, id string) (*DocumentDataHistory, error) { + return c.Query().Where(documentdatahistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *EntitlementPlanFeatureClient) GetX(ctx context.Context, id string) *EntitlementPlanFeature { +func (c *DocumentDataHistoryClient) GetX(ctx context.Context, id string) *DocumentDataHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -2498,210 +2931,134 @@ func (c *EntitlementPlanFeatureClient) GetX(ctx context.Context, id string) *Ent return obj } -// QueryOwner queries the owner edge of a EntitlementPlanFeature. -func (c *EntitlementPlanFeatureClient) QueryOwner(epf *EntitlementPlanFeature) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := epf.ID - step := sqlgraph.NewStep( - sqlgraph.From(entitlementplanfeature.Table, entitlementplanfeature.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, entitlementplanfeature.OwnerTable, entitlementplanfeature.OwnerColumn), - ) - schemaConfig := epf.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.EntitlementPlanFeature - fromV = sqlgraph.Neighbors(epf.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryPlan queries the plan edge of a EntitlementPlanFeature. -func (c *EntitlementPlanFeatureClient) QueryPlan(epf *EntitlementPlanFeature) *EntitlementPlanQuery { - query := (&EntitlementPlanClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := epf.ID - step := sqlgraph.NewStep( - sqlgraph.From(entitlementplanfeature.Table, entitlementplanfeature.FieldID, id), - sqlgraph.To(entitlementplan.Table, entitlementplan.FieldID), - sqlgraph.Edge(sqlgraph.M2O, false, entitlementplanfeature.PlanTable, entitlementplanfeature.PlanColumn), - ) - schemaConfig := epf.schemaConfig - step.To.Schema = schemaConfig.EntitlementPlan - step.Edge.Schema = schemaConfig.EntitlementPlanFeature - fromV = sqlgraph.Neighbors(epf.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryFeature queries the feature edge of a EntitlementPlanFeature. -func (c *EntitlementPlanFeatureClient) QueryFeature(epf *EntitlementPlanFeature) *FeatureQuery { - query := (&FeatureClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := epf.ID - step := sqlgraph.NewStep( - sqlgraph.From(entitlementplanfeature.Table, entitlementplanfeature.FieldID, id), - sqlgraph.To(feature.Table, feature.FieldID), - sqlgraph.Edge(sqlgraph.M2O, false, entitlementplanfeature.FeatureTable, entitlementplanfeature.FeatureColumn), - ) - schemaConfig := epf.schemaConfig - step.To.Schema = schemaConfig.Feature - step.Edge.Schema = schemaConfig.EntitlementPlanFeature - fromV = sqlgraph.Neighbors(epf.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryEvents queries the events edge of a EntitlementPlanFeature. -func (c *EntitlementPlanFeatureClient) QueryEvents(epf *EntitlementPlanFeature) *EventQuery { - query := (&EventClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := epf.ID - step := sqlgraph.NewStep( - sqlgraph.From(entitlementplanfeature.Table, entitlementplanfeature.FieldID, id), - sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, entitlementplanfeature.EventsTable, entitlementplanfeature.EventsPrimaryKey...), - ) - schemaConfig := epf.schemaConfig - step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.EntitlementPlanFeatureEvents - fromV = sqlgraph.Neighbors(epf.driver.Dialect(), step) - return fromV, nil - } - return query -} - // Hooks returns the client hooks. -func (c *EntitlementPlanFeatureClient) Hooks() []Hook { - hooks := c.hooks.EntitlementPlanFeature - return append(hooks[:len(hooks):len(hooks)], entitlementplanfeature.Hooks[:]...) +func (c *DocumentDataHistoryClient) Hooks() []Hook { + hooks := c.hooks.DocumentDataHistory + return append(hooks[:len(hooks):len(hooks)], documentdatahistory.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *EntitlementPlanFeatureClient) Interceptors() []Interceptor { - inters := c.inters.EntitlementPlanFeature - return append(inters[:len(inters):len(inters)], entitlementplanfeature.Interceptors[:]...) +func (c *DocumentDataHistoryClient) Interceptors() []Interceptor { + inters := c.inters.DocumentDataHistory + return append(inters[:len(inters):len(inters)], documentdatahistory.Interceptors[:]...) } -func (c *EntitlementPlanFeatureClient) mutate(ctx context.Context, m *EntitlementPlanFeatureMutation) (Value, error) { +func (c *DocumentDataHistoryClient) mutate(ctx context.Context, m *DocumentDataHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&EntitlementPlanFeatureCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&DocumentDataHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&EntitlementPlanFeatureUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&DocumentDataHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&EntitlementPlanFeatureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&DocumentDataHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&EntitlementPlanFeatureDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&DocumentDataHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown EntitlementPlanFeature mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown DocumentDataHistory mutation op: %q", m.Op()) } } -// EntitlementPlanFeatureHistoryClient is a client for the EntitlementPlanFeatureHistory schema. -type EntitlementPlanFeatureHistoryClient struct { +// EmailVerificationTokenClient is a client for the EmailVerificationToken schema. +type EmailVerificationTokenClient struct { config } -// NewEntitlementPlanFeatureHistoryClient returns a client for the EntitlementPlanFeatureHistory from the given config. -func NewEntitlementPlanFeatureHistoryClient(c config) *EntitlementPlanFeatureHistoryClient { - return &EntitlementPlanFeatureHistoryClient{config: c} +// NewEmailVerificationTokenClient returns a client for the EmailVerificationToken from the given config. +func NewEmailVerificationTokenClient(c config) *EmailVerificationTokenClient { + return &EmailVerificationTokenClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `entitlementplanfeaturehistory.Hooks(f(g(h())))`. -func (c *EntitlementPlanFeatureHistoryClient) Use(hooks ...Hook) { - c.hooks.EntitlementPlanFeatureHistory = append(c.hooks.EntitlementPlanFeatureHistory, hooks...) +// A call to `Use(f, g, h)` equals to `emailverificationtoken.Hooks(f(g(h())))`. +func (c *EmailVerificationTokenClient) Use(hooks ...Hook) { + c.hooks.EmailVerificationToken = append(c.hooks.EmailVerificationToken, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `entitlementplanfeaturehistory.Intercept(f(g(h())))`. -func (c *EntitlementPlanFeatureHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.EntitlementPlanFeatureHistory = append(c.inters.EntitlementPlanFeatureHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `emailverificationtoken.Intercept(f(g(h())))`. +func (c *EmailVerificationTokenClient) Intercept(interceptors ...Interceptor) { + c.inters.EmailVerificationToken = append(c.inters.EmailVerificationToken, interceptors...) } -// Create returns a builder for creating a EntitlementPlanFeatureHistory entity. -func (c *EntitlementPlanFeatureHistoryClient) Create() *EntitlementPlanFeatureHistoryCreate { - mutation := newEntitlementPlanFeatureHistoryMutation(c.config, OpCreate) - return &EntitlementPlanFeatureHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a EmailVerificationToken entity. +func (c *EmailVerificationTokenClient) Create() *EmailVerificationTokenCreate { + mutation := newEmailVerificationTokenMutation(c.config, OpCreate) + return &EmailVerificationTokenCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of EntitlementPlanFeatureHistory entities. -func (c *EntitlementPlanFeatureHistoryClient) CreateBulk(builders ...*EntitlementPlanFeatureHistoryCreate) *EntitlementPlanFeatureHistoryCreateBulk { - return &EntitlementPlanFeatureHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of EmailVerificationToken entities. +func (c *EmailVerificationTokenClient) CreateBulk(builders ...*EmailVerificationTokenCreate) *EmailVerificationTokenCreateBulk { + return &EmailVerificationTokenCreateBulk{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 *EntitlementPlanFeatureHistoryClient) MapCreateBulk(slice any, setFunc func(*EntitlementPlanFeatureHistoryCreate, int)) *EntitlementPlanFeatureHistoryCreateBulk { +func (c *EmailVerificationTokenClient) MapCreateBulk(slice any, setFunc func(*EmailVerificationTokenCreate, int)) *EmailVerificationTokenCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &EntitlementPlanFeatureHistoryCreateBulk{err: fmt.Errorf("calling to EntitlementPlanFeatureHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &EmailVerificationTokenCreateBulk{err: fmt.Errorf("calling to EmailVerificationTokenClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*EntitlementPlanFeatureHistoryCreate, rv.Len()) + builders := make([]*EmailVerificationTokenCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &EntitlementPlanFeatureHistoryCreateBulk{config: c.config, builders: builders} + return &EmailVerificationTokenCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for EntitlementPlanFeatureHistory. -func (c *EntitlementPlanFeatureHistoryClient) Update() *EntitlementPlanFeatureHistoryUpdate { - mutation := newEntitlementPlanFeatureHistoryMutation(c.config, OpUpdate) - return &EntitlementPlanFeatureHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for EmailVerificationToken. +func (c *EmailVerificationTokenClient) Update() *EmailVerificationTokenUpdate { + mutation := newEmailVerificationTokenMutation(c.config, OpUpdate) + return &EmailVerificationTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *EntitlementPlanFeatureHistoryClient) UpdateOne(epfh *EntitlementPlanFeatureHistory) *EntitlementPlanFeatureHistoryUpdateOne { - mutation := newEntitlementPlanFeatureHistoryMutation(c.config, OpUpdateOne, withEntitlementPlanFeatureHistory(epfh)) - return &EntitlementPlanFeatureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EmailVerificationTokenClient) UpdateOne(evt *EmailVerificationToken) *EmailVerificationTokenUpdateOne { + mutation := newEmailVerificationTokenMutation(c.config, OpUpdateOne, withEmailVerificationToken(evt)) + return &EmailVerificationTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *EntitlementPlanFeatureHistoryClient) UpdateOneID(id string) *EntitlementPlanFeatureHistoryUpdateOne { - mutation := newEntitlementPlanFeatureHistoryMutation(c.config, OpUpdateOne, withEntitlementPlanFeatureHistoryID(id)) - return &EntitlementPlanFeatureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EmailVerificationTokenClient) UpdateOneID(id string) *EmailVerificationTokenUpdateOne { + mutation := newEmailVerificationTokenMutation(c.config, OpUpdateOne, withEmailVerificationTokenID(id)) + return &EmailVerificationTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for EntitlementPlanFeatureHistory. -func (c *EntitlementPlanFeatureHistoryClient) Delete() *EntitlementPlanFeatureHistoryDelete { - mutation := newEntitlementPlanFeatureHistoryMutation(c.config, OpDelete) - return &EntitlementPlanFeatureHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for EmailVerificationToken. +func (c *EmailVerificationTokenClient) Delete() *EmailVerificationTokenDelete { + mutation := newEmailVerificationTokenMutation(c.config, OpDelete) + return &EmailVerificationTokenDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *EntitlementPlanFeatureHistoryClient) DeleteOne(epfh *EntitlementPlanFeatureHistory) *EntitlementPlanFeatureHistoryDeleteOne { - return c.DeleteOneID(epfh.ID) +func (c *EmailVerificationTokenClient) DeleteOne(evt *EmailVerificationToken) *EmailVerificationTokenDeleteOne { + return c.DeleteOneID(evt.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EntitlementPlanFeatureHistoryClient) DeleteOneID(id string) *EntitlementPlanFeatureHistoryDeleteOne { - builder := c.Delete().Where(entitlementplanfeaturehistory.ID(id)) +func (c *EmailVerificationTokenClient) DeleteOneID(id string) *EmailVerificationTokenDeleteOne { + builder := c.Delete().Where(emailverificationtoken.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &EntitlementPlanFeatureHistoryDeleteOne{builder} + return &EmailVerificationTokenDeleteOne{builder} } -// Query returns a query builder for EntitlementPlanFeatureHistory. -func (c *EntitlementPlanFeatureHistoryClient) Query() *EntitlementPlanFeatureHistoryQuery { - return &EntitlementPlanFeatureHistoryQuery{ +// Query returns a query builder for EmailVerificationToken. +func (c *EmailVerificationTokenClient) Query() *EmailVerificationTokenQuery { + return &EmailVerificationTokenQuery{ config: c.config, - ctx: &QueryContext{Type: TypeEntitlementPlanFeatureHistory}, + ctx: &QueryContext{Type: TypeEmailVerificationToken}, inters: c.Interceptors(), } } -// Get returns a EntitlementPlanFeatureHistory entity by its id. -func (c *EntitlementPlanFeatureHistoryClient) Get(ctx context.Context, id string) (*EntitlementPlanFeatureHistory, error) { - return c.Query().Where(entitlementplanfeaturehistory.ID(id)).Only(ctx) +// Get returns a EmailVerificationToken entity by its id. +func (c *EmailVerificationTokenClient) Get(ctx context.Context, id string) (*EmailVerificationToken, error) { + return c.Query().Where(emailverificationtoken.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *EntitlementPlanFeatureHistoryClient) GetX(ctx context.Context, id string) *EntitlementPlanFeatureHistory { +func (c *EmailVerificationTokenClient) GetX(ctx context.Context, id string) *EmailVerificationToken { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -2709,134 +3066,153 @@ func (c *EntitlementPlanFeatureHistoryClient) GetX(ctx context.Context, id strin return obj } -// Hooks returns the client hooks. -func (c *EntitlementPlanFeatureHistoryClient) Hooks() []Hook { - hooks := c.hooks.EntitlementPlanFeatureHistory - return append(hooks[:len(hooks):len(hooks)], entitlementplanfeaturehistory.Hooks[:]...) -} +// QueryOwner queries the owner edge of a EmailVerificationToken. +func (c *EmailVerificationTokenClient) QueryOwner(evt *EmailVerificationToken) *UserQuery { + query := (&UserClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := evt.ID + step := sqlgraph.NewStep( + sqlgraph.From(emailverificationtoken.Table, emailverificationtoken.FieldID, id), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, emailverificationtoken.OwnerTable, emailverificationtoken.OwnerColumn), + ) + schemaConfig := evt.schemaConfig + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.EmailVerificationToken + fromV = sqlgraph.Neighbors(evt.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// Hooks returns the client hooks. +func (c *EmailVerificationTokenClient) Hooks() []Hook { + hooks := c.hooks.EmailVerificationToken + return append(hooks[:len(hooks):len(hooks)], emailverificationtoken.Hooks[:]...) +} // Interceptors returns the client interceptors. -func (c *EntitlementPlanFeatureHistoryClient) Interceptors() []Interceptor { - inters := c.inters.EntitlementPlanFeatureHistory - return append(inters[:len(inters):len(inters)], entitlementplanfeaturehistory.Interceptors[:]...) +func (c *EmailVerificationTokenClient) Interceptors() []Interceptor { + inters := c.inters.EmailVerificationToken + return append(inters[:len(inters):len(inters)], emailverificationtoken.Interceptors[:]...) } -func (c *EntitlementPlanFeatureHistoryClient) mutate(ctx context.Context, m *EntitlementPlanFeatureHistoryMutation) (Value, error) { +func (c *EmailVerificationTokenClient) mutate(ctx context.Context, m *EmailVerificationTokenMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&EntitlementPlanFeatureHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EmailVerificationTokenCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&EntitlementPlanFeatureHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EmailVerificationTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&EntitlementPlanFeatureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EmailVerificationTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&EntitlementPlanFeatureHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&EmailVerificationTokenDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown EntitlementPlanFeatureHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown EmailVerificationToken mutation op: %q", m.Op()) } } -// EntitlementPlanHistoryClient is a client for the EntitlementPlanHistory schema. -type EntitlementPlanHistoryClient struct { +// EntitlementClient is a client for the Entitlement schema. +type EntitlementClient struct { config } -// NewEntitlementPlanHistoryClient returns a client for the EntitlementPlanHistory from the given config. -func NewEntitlementPlanHistoryClient(c config) *EntitlementPlanHistoryClient { - return &EntitlementPlanHistoryClient{config: c} +// NewEntitlementClient returns a client for the Entitlement from the given config. +func NewEntitlementClient(c config) *EntitlementClient { + return &EntitlementClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `entitlementplanhistory.Hooks(f(g(h())))`. -func (c *EntitlementPlanHistoryClient) Use(hooks ...Hook) { - c.hooks.EntitlementPlanHistory = append(c.hooks.EntitlementPlanHistory, hooks...) +// A call to `Use(f, g, h)` equals to `entitlement.Hooks(f(g(h())))`. +func (c *EntitlementClient) Use(hooks ...Hook) { + c.hooks.Entitlement = append(c.hooks.Entitlement, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `entitlementplanhistory.Intercept(f(g(h())))`. -func (c *EntitlementPlanHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.EntitlementPlanHistory = append(c.inters.EntitlementPlanHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `entitlement.Intercept(f(g(h())))`. +func (c *EntitlementClient) Intercept(interceptors ...Interceptor) { + c.inters.Entitlement = append(c.inters.Entitlement, interceptors...) } -// Create returns a builder for creating a EntitlementPlanHistory entity. -func (c *EntitlementPlanHistoryClient) Create() *EntitlementPlanHistoryCreate { - mutation := newEntitlementPlanHistoryMutation(c.config, OpCreate) - return &EntitlementPlanHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a Entitlement entity. +func (c *EntitlementClient) Create() *EntitlementCreate { + mutation := newEntitlementMutation(c.config, OpCreate) + return &EntitlementCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of EntitlementPlanHistory entities. -func (c *EntitlementPlanHistoryClient) CreateBulk(builders ...*EntitlementPlanHistoryCreate) *EntitlementPlanHistoryCreateBulk { - return &EntitlementPlanHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of Entitlement entities. +func (c *EntitlementClient) CreateBulk(builders ...*EntitlementCreate) *EntitlementCreateBulk { + return &EntitlementCreateBulk{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 *EntitlementPlanHistoryClient) MapCreateBulk(slice any, setFunc func(*EntitlementPlanHistoryCreate, int)) *EntitlementPlanHistoryCreateBulk { +func (c *EntitlementClient) MapCreateBulk(slice any, setFunc func(*EntitlementCreate, int)) *EntitlementCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &EntitlementPlanHistoryCreateBulk{err: fmt.Errorf("calling to EntitlementPlanHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &EntitlementCreateBulk{err: fmt.Errorf("calling to EntitlementClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*EntitlementPlanHistoryCreate, rv.Len()) + builders := make([]*EntitlementCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &EntitlementPlanHistoryCreateBulk{config: c.config, builders: builders} + return &EntitlementCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for EntitlementPlanHistory. -func (c *EntitlementPlanHistoryClient) Update() *EntitlementPlanHistoryUpdate { - mutation := newEntitlementPlanHistoryMutation(c.config, OpUpdate) - return &EntitlementPlanHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for Entitlement. +func (c *EntitlementClient) Update() *EntitlementUpdate { + mutation := newEntitlementMutation(c.config, OpUpdate) + return &EntitlementUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *EntitlementPlanHistoryClient) UpdateOne(eph *EntitlementPlanHistory) *EntitlementPlanHistoryUpdateOne { - mutation := newEntitlementPlanHistoryMutation(c.config, OpUpdateOne, withEntitlementPlanHistory(eph)) - return &EntitlementPlanHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntitlementClient) UpdateOne(e *Entitlement) *EntitlementUpdateOne { + mutation := newEntitlementMutation(c.config, OpUpdateOne, withEntitlement(e)) + return &EntitlementUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *EntitlementPlanHistoryClient) UpdateOneID(id string) *EntitlementPlanHistoryUpdateOne { - mutation := newEntitlementPlanHistoryMutation(c.config, OpUpdateOne, withEntitlementPlanHistoryID(id)) - return &EntitlementPlanHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntitlementClient) UpdateOneID(id string) *EntitlementUpdateOne { + mutation := newEntitlementMutation(c.config, OpUpdateOne, withEntitlementID(id)) + return &EntitlementUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for EntitlementPlanHistory. -func (c *EntitlementPlanHistoryClient) Delete() *EntitlementPlanHistoryDelete { - mutation := newEntitlementPlanHistoryMutation(c.config, OpDelete) - return &EntitlementPlanHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for Entitlement. +func (c *EntitlementClient) Delete() *EntitlementDelete { + mutation := newEntitlementMutation(c.config, OpDelete) + return &EntitlementDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *EntitlementPlanHistoryClient) DeleteOne(eph *EntitlementPlanHistory) *EntitlementPlanHistoryDeleteOne { - return c.DeleteOneID(eph.ID) +func (c *EntitlementClient) DeleteOne(e *Entitlement) *EntitlementDeleteOne { + return c.DeleteOneID(e.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EntitlementPlanHistoryClient) DeleteOneID(id string) *EntitlementPlanHistoryDeleteOne { - builder := c.Delete().Where(entitlementplanhistory.ID(id)) +func (c *EntitlementClient) DeleteOneID(id string) *EntitlementDeleteOne { + builder := c.Delete().Where(entitlement.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &EntitlementPlanHistoryDeleteOne{builder} + return &EntitlementDeleteOne{builder} } -// Query returns a query builder for EntitlementPlanHistory. -func (c *EntitlementPlanHistoryClient) Query() *EntitlementPlanHistoryQuery { - return &EntitlementPlanHistoryQuery{ +// Query returns a query builder for Entitlement. +func (c *EntitlementClient) Query() *EntitlementQuery { + return &EntitlementQuery{ config: c.config, - ctx: &QueryContext{Type: TypeEntitlementPlanHistory}, + ctx: &QueryContext{Type: TypeEntitlement}, inters: c.Interceptors(), } } -// Get returns a EntitlementPlanHistory entity by its id. -func (c *EntitlementPlanHistoryClient) Get(ctx context.Context, id string) (*EntitlementPlanHistory, error) { - return c.Query().Where(entitlementplanhistory.ID(id)).Only(ctx) +// Get returns a Entitlement entity by its id. +func (c *EntitlementClient) Get(ctx context.Context, id string) (*Entitlement, error) { + return c.Query().Where(entitlement.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *EntitlementPlanHistoryClient) GetX(ctx context.Context, id string) *EntitlementPlanHistory { +func (c *EntitlementClient) GetX(ctx context.Context, id string) *Entitlement { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -2844,134 +3220,210 @@ func (c *EntitlementPlanHistoryClient) GetX(ctx context.Context, id string) *Ent return obj } +// QueryOwner queries the owner edge of a Entitlement. +func (c *EntitlementClient) QueryOwner(e *Entitlement) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := e.ID + step := sqlgraph.NewStep( + sqlgraph.From(entitlement.Table, entitlement.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, entitlement.OwnerTable, entitlement.OwnerColumn), + ) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.Entitlement + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryPlan queries the plan edge of a Entitlement. +func (c *EntitlementClient) QueryPlan(e *Entitlement) *EntitlementPlanQuery { + query := (&EntitlementPlanClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := e.ID + step := sqlgraph.NewStep( + sqlgraph.From(entitlement.Table, entitlement.FieldID, id), + sqlgraph.To(entitlementplan.Table, entitlementplan.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, entitlement.PlanTable, entitlement.PlanColumn), + ) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.EntitlementPlan + step.Edge.Schema = schemaConfig.Entitlement + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryOrganization queries the organization edge of a Entitlement. +func (c *EntitlementClient) QueryOrganization(e *Entitlement) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := e.ID + step := sqlgraph.NewStep( + sqlgraph.From(entitlement.Table, entitlement.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, entitlement.OrganizationTable, entitlement.OrganizationColumn), + ) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.Entitlement + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEvents queries the events edge of a Entitlement. +func (c *EntitlementClient) QueryEvents(e *Entitlement) *EventQuery { + query := (&EventClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := e.ID + step := sqlgraph.NewStep( + sqlgraph.From(entitlement.Table, entitlement.FieldID, id), + sqlgraph.To(event.Table, event.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, entitlement.EventsTable, entitlement.EventsPrimaryKey...), + ) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.Event + step.Edge.Schema = schemaConfig.EntitlementEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + return fromV, nil + } + return query +} + // Hooks returns the client hooks. -func (c *EntitlementPlanHistoryClient) Hooks() []Hook { - hooks := c.hooks.EntitlementPlanHistory - return append(hooks[:len(hooks):len(hooks)], entitlementplanhistory.Hooks[:]...) +func (c *EntitlementClient) Hooks() []Hook { + hooks := c.hooks.Entitlement + return append(hooks[:len(hooks):len(hooks)], entitlement.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *EntitlementPlanHistoryClient) Interceptors() []Interceptor { - inters := c.inters.EntitlementPlanHistory - return append(inters[:len(inters):len(inters)], entitlementplanhistory.Interceptors[:]...) +func (c *EntitlementClient) Interceptors() []Interceptor { + inters := c.inters.Entitlement + return append(inters[:len(inters):len(inters)], entitlement.Interceptors[:]...) } -func (c *EntitlementPlanHistoryClient) mutate(ctx context.Context, m *EntitlementPlanHistoryMutation) (Value, error) { +func (c *EntitlementClient) mutate(ctx context.Context, m *EntitlementMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&EntitlementPlanHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&EntitlementPlanHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&EntitlementPlanHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&EntitlementPlanHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&EntitlementDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown EntitlementPlanHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown Entitlement mutation op: %q", m.Op()) } } -// EntityClient is a client for the Entity schema. -type EntityClient struct { +// EntitlementHistoryClient is a client for the EntitlementHistory schema. +type EntitlementHistoryClient struct { config } -// NewEntityClient returns a client for the Entity from the given config. -func NewEntityClient(c config) *EntityClient { - return &EntityClient{config: c} +// NewEntitlementHistoryClient returns a client for the EntitlementHistory from the given config. +func NewEntitlementHistoryClient(c config) *EntitlementHistoryClient { + return &EntitlementHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `entity.Hooks(f(g(h())))`. -func (c *EntityClient) Use(hooks ...Hook) { - c.hooks.Entity = append(c.hooks.Entity, hooks...) +// A call to `Use(f, g, h)` equals to `entitlementhistory.Hooks(f(g(h())))`. +func (c *EntitlementHistoryClient) Use(hooks ...Hook) { + c.hooks.EntitlementHistory = append(c.hooks.EntitlementHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `entity.Intercept(f(g(h())))`. -func (c *EntityClient) Intercept(interceptors ...Interceptor) { - c.inters.Entity = append(c.inters.Entity, interceptors...) +// A call to `Intercept(f, g, h)` equals to `entitlementhistory.Intercept(f(g(h())))`. +func (c *EntitlementHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.EntitlementHistory = append(c.inters.EntitlementHistory, interceptors...) } -// Create returns a builder for creating a Entity entity. -func (c *EntityClient) Create() *EntityCreate { - mutation := newEntityMutation(c.config, OpCreate) - return &EntityCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a EntitlementHistory entity. +func (c *EntitlementHistoryClient) Create() *EntitlementHistoryCreate { + mutation := newEntitlementHistoryMutation(c.config, OpCreate) + return &EntitlementHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of Entity entities. -func (c *EntityClient) CreateBulk(builders ...*EntityCreate) *EntityCreateBulk { - return &EntityCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of EntitlementHistory entities. +func (c *EntitlementHistoryClient) CreateBulk(builders ...*EntitlementHistoryCreate) *EntitlementHistoryCreateBulk { + return &EntitlementHistoryCreateBulk{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 *EntityClient) MapCreateBulk(slice any, setFunc func(*EntityCreate, int)) *EntityCreateBulk { +func (c *EntitlementHistoryClient) MapCreateBulk(slice any, setFunc func(*EntitlementHistoryCreate, int)) *EntitlementHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &EntityCreateBulk{err: fmt.Errorf("calling to EntityClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &EntitlementHistoryCreateBulk{err: fmt.Errorf("calling to EntitlementHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*EntityCreate, rv.Len()) + builders := make([]*EntitlementHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &EntityCreateBulk{config: c.config, builders: builders} + return &EntitlementHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for Entity. -func (c *EntityClient) Update() *EntityUpdate { - mutation := newEntityMutation(c.config, OpUpdate) - return &EntityUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for EntitlementHistory. +func (c *EntitlementHistoryClient) Update() *EntitlementHistoryUpdate { + mutation := newEntitlementHistoryMutation(c.config, OpUpdate) + return &EntitlementHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *EntityClient) UpdateOne(e *Entity) *EntityUpdateOne { - mutation := newEntityMutation(c.config, OpUpdateOne, withEntity(e)) - return &EntityUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntitlementHistoryClient) UpdateOne(eh *EntitlementHistory) *EntitlementHistoryUpdateOne { + mutation := newEntitlementHistoryMutation(c.config, OpUpdateOne, withEntitlementHistory(eh)) + return &EntitlementHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *EntityClient) UpdateOneID(id string) *EntityUpdateOne { - mutation := newEntityMutation(c.config, OpUpdateOne, withEntityID(id)) - return &EntityUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntitlementHistoryClient) UpdateOneID(id string) *EntitlementHistoryUpdateOne { + mutation := newEntitlementHistoryMutation(c.config, OpUpdateOne, withEntitlementHistoryID(id)) + return &EntitlementHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for Entity. -func (c *EntityClient) Delete() *EntityDelete { - mutation := newEntityMutation(c.config, OpDelete) - return &EntityDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for EntitlementHistory. +func (c *EntitlementHistoryClient) Delete() *EntitlementHistoryDelete { + mutation := newEntitlementHistoryMutation(c.config, OpDelete) + return &EntitlementHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *EntityClient) DeleteOne(e *Entity) *EntityDeleteOne { - return c.DeleteOneID(e.ID) +func (c *EntitlementHistoryClient) DeleteOne(eh *EntitlementHistory) *EntitlementHistoryDeleteOne { + return c.DeleteOneID(eh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EntityClient) DeleteOneID(id string) *EntityDeleteOne { - builder := c.Delete().Where(entity.ID(id)) +func (c *EntitlementHistoryClient) DeleteOneID(id string) *EntitlementHistoryDeleteOne { + builder := c.Delete().Where(entitlementhistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &EntityDeleteOne{builder} + return &EntitlementHistoryDeleteOne{builder} } -// Query returns a query builder for Entity. -func (c *EntityClient) Query() *EntityQuery { - return &EntityQuery{ +// Query returns a query builder for EntitlementHistory. +func (c *EntitlementHistoryClient) Query() *EntitlementHistoryQuery { + return &EntitlementHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeEntity}, + ctx: &QueryContext{Type: TypeEntitlementHistory}, inters: c.Interceptors(), } } -// Get returns a Entity entity by its id. -func (c *EntityClient) Get(ctx context.Context, id string) (*Entity, error) { - return c.Query().Where(entity.ID(id)).Only(ctx) +// Get returns a EntitlementHistory entity by its id. +func (c *EntitlementHistoryClient) Get(ctx context.Context, id string) (*EntitlementHistory, error) { + return c.Query().Where(entitlementhistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *EntityClient) GetX(ctx context.Context, id string) *Entity { +func (c *EntitlementHistoryClient) GetX(ctx context.Context, id string) *EntitlementHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -2979,248 +3431,134 @@ func (c *EntityClient) GetX(ctx context.Context, id string) *Entity { return obj } -// QueryOwner queries the owner edge of a Entity. -func (c *EntityClient) QueryOwner(e *Entity) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(entity.Table, entity.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, entity.OwnerTable, entity.OwnerColumn), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.Entity - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryContacts queries the contacts edge of a Entity. -func (c *EntityClient) QueryContacts(e *Entity) *ContactQuery { - query := (&ContactClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(entity.Table, entity.FieldID, id), - sqlgraph.To(contact.Table, contact.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, entity.ContactsTable, entity.ContactsPrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Contact - step.Edge.Schema = schemaConfig.EntityContacts - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryDocuments queries the documents edge of a Entity. -func (c *EntityClient) QueryDocuments(e *Entity) *DocumentDataQuery { - query := (&DocumentDataClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(entity.Table, entity.FieldID, id), - sqlgraph.To(documentdata.Table, documentdata.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, entity.DocumentsTable, entity.DocumentsPrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.DocumentData - step.Edge.Schema = schemaConfig.EntityDocuments - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryNotes queries the notes edge of a Entity. -func (c *EntityClient) QueryNotes(e *Entity) *NoteQuery { - query := (&NoteClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(entity.Table, entity.FieldID, id), - sqlgraph.To(note.Table, note.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, entity.NotesTable, entity.NotesColumn), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Note - step.Edge.Schema = schemaConfig.Note - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryFiles queries the files edge of a Entity. -func (c *EntityClient) QueryFiles(e *Entity) *FileQuery { - query := (&FileClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(entity.Table, entity.FieldID, id), - sqlgraph.To(file.Table, file.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, entity.FilesTable, entity.FilesPrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.File - step.Edge.Schema = schemaConfig.EntityFiles - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryEntityType queries the entity_type edge of a Entity. -func (c *EntityClient) QueryEntityType(e *Entity) *EntityTypeQuery { - query := (&EntityTypeClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(entity.Table, entity.FieldID, id), - sqlgraph.To(entitytype.Table, entitytype.FieldID), - sqlgraph.Edge(sqlgraph.M2O, false, entity.EntityTypeTable, entity.EntityTypeColumn), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.EntityType - step.Edge.Schema = schemaConfig.Entity - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query -} - // Hooks returns the client hooks. -func (c *EntityClient) Hooks() []Hook { - hooks := c.hooks.Entity - return append(hooks[:len(hooks):len(hooks)], entity.Hooks[:]...) +func (c *EntitlementHistoryClient) Hooks() []Hook { + hooks := c.hooks.EntitlementHistory + return append(hooks[:len(hooks):len(hooks)], entitlementhistory.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *EntityClient) Interceptors() []Interceptor { - inters := c.inters.Entity - return append(inters[:len(inters):len(inters)], entity.Interceptors[:]...) +func (c *EntitlementHistoryClient) Interceptors() []Interceptor { + inters := c.inters.EntitlementHistory + return append(inters[:len(inters):len(inters)], entitlementhistory.Interceptors[:]...) } -func (c *EntityClient) mutate(ctx context.Context, m *EntityMutation) (Value, error) { +func (c *EntitlementHistoryClient) mutate(ctx context.Context, m *EntitlementHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&EntityCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&EntityUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&EntityUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&EntityDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&EntitlementHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown Entity mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown EntitlementHistory mutation op: %q", m.Op()) } } -// EntityHistoryClient is a client for the EntityHistory schema. -type EntityHistoryClient struct { +// EntitlementPlanClient is a client for the EntitlementPlan schema. +type EntitlementPlanClient struct { config } -// NewEntityHistoryClient returns a client for the EntityHistory from the given config. -func NewEntityHistoryClient(c config) *EntityHistoryClient { - return &EntityHistoryClient{config: c} +// NewEntitlementPlanClient returns a client for the EntitlementPlan from the given config. +func NewEntitlementPlanClient(c config) *EntitlementPlanClient { + return &EntitlementPlanClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `entityhistory.Hooks(f(g(h())))`. -func (c *EntityHistoryClient) Use(hooks ...Hook) { - c.hooks.EntityHistory = append(c.hooks.EntityHistory, hooks...) +// A call to `Use(f, g, h)` equals to `entitlementplan.Hooks(f(g(h())))`. +func (c *EntitlementPlanClient) Use(hooks ...Hook) { + c.hooks.EntitlementPlan = append(c.hooks.EntitlementPlan, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `entityhistory.Intercept(f(g(h())))`. -func (c *EntityHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.EntityHistory = append(c.inters.EntityHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `entitlementplan.Intercept(f(g(h())))`. +func (c *EntitlementPlanClient) Intercept(interceptors ...Interceptor) { + c.inters.EntitlementPlan = append(c.inters.EntitlementPlan, interceptors...) } -// Create returns a builder for creating a EntityHistory entity. -func (c *EntityHistoryClient) Create() *EntityHistoryCreate { - mutation := newEntityHistoryMutation(c.config, OpCreate) - return &EntityHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a EntitlementPlan entity. +func (c *EntitlementPlanClient) Create() *EntitlementPlanCreate { + mutation := newEntitlementPlanMutation(c.config, OpCreate) + return &EntitlementPlanCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of EntityHistory entities. -func (c *EntityHistoryClient) CreateBulk(builders ...*EntityHistoryCreate) *EntityHistoryCreateBulk { - return &EntityHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of EntitlementPlan entities. +func (c *EntitlementPlanClient) CreateBulk(builders ...*EntitlementPlanCreate) *EntitlementPlanCreateBulk { + return &EntitlementPlanCreateBulk{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 *EntityHistoryClient) MapCreateBulk(slice any, setFunc func(*EntityHistoryCreate, int)) *EntityHistoryCreateBulk { +func (c *EntitlementPlanClient) MapCreateBulk(slice any, setFunc func(*EntitlementPlanCreate, int)) *EntitlementPlanCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &EntityHistoryCreateBulk{err: fmt.Errorf("calling to EntityHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &EntitlementPlanCreateBulk{err: fmt.Errorf("calling to EntitlementPlanClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*EntityHistoryCreate, rv.Len()) + builders := make([]*EntitlementPlanCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &EntityHistoryCreateBulk{config: c.config, builders: builders} + return &EntitlementPlanCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for EntityHistory. -func (c *EntityHistoryClient) Update() *EntityHistoryUpdate { - mutation := newEntityHistoryMutation(c.config, OpUpdate) - return &EntityHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for EntitlementPlan. +func (c *EntitlementPlanClient) Update() *EntitlementPlanUpdate { + mutation := newEntitlementPlanMutation(c.config, OpUpdate) + return &EntitlementPlanUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *EntityHistoryClient) UpdateOne(eh *EntityHistory) *EntityHistoryUpdateOne { - mutation := newEntityHistoryMutation(c.config, OpUpdateOne, withEntityHistory(eh)) - return &EntityHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntitlementPlanClient) UpdateOne(ep *EntitlementPlan) *EntitlementPlanUpdateOne { + mutation := newEntitlementPlanMutation(c.config, OpUpdateOne, withEntitlementPlan(ep)) + return &EntitlementPlanUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *EntityHistoryClient) UpdateOneID(id string) *EntityHistoryUpdateOne { - mutation := newEntityHistoryMutation(c.config, OpUpdateOne, withEntityHistoryID(id)) - return &EntityHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntitlementPlanClient) UpdateOneID(id string) *EntitlementPlanUpdateOne { + mutation := newEntitlementPlanMutation(c.config, OpUpdateOne, withEntitlementPlanID(id)) + return &EntitlementPlanUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for EntityHistory. -func (c *EntityHistoryClient) Delete() *EntityHistoryDelete { - mutation := newEntityHistoryMutation(c.config, OpDelete) - return &EntityHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for EntitlementPlan. +func (c *EntitlementPlanClient) Delete() *EntitlementPlanDelete { + mutation := newEntitlementPlanMutation(c.config, OpDelete) + return &EntitlementPlanDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *EntityHistoryClient) DeleteOne(eh *EntityHistory) *EntityHistoryDeleteOne { - return c.DeleteOneID(eh.ID) +func (c *EntitlementPlanClient) DeleteOne(ep *EntitlementPlan) *EntitlementPlanDeleteOne { + return c.DeleteOneID(ep.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EntityHistoryClient) DeleteOneID(id string) *EntityHistoryDeleteOne { - builder := c.Delete().Where(entityhistory.ID(id)) +func (c *EntitlementPlanClient) DeleteOneID(id string) *EntitlementPlanDeleteOne { + builder := c.Delete().Where(entitlementplan.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &EntityHistoryDeleteOne{builder} + return &EntitlementPlanDeleteOne{builder} } -// Query returns a query builder for EntityHistory. -func (c *EntityHistoryClient) Query() *EntityHistoryQuery { - return &EntityHistoryQuery{ +// Query returns a query builder for EntitlementPlan. +func (c *EntitlementPlanClient) Query() *EntitlementPlanQuery { + return &EntitlementPlanQuery{ config: c.config, - ctx: &QueryContext{Type: TypeEntityHistory}, + ctx: &QueryContext{Type: TypeEntitlementPlan}, inters: c.Interceptors(), } } -// Get returns a EntityHistory entity by its id. -func (c *EntityHistoryClient) Get(ctx context.Context, id string) (*EntityHistory, error) { - return c.Query().Where(entityhistory.ID(id)).Only(ctx) +// Get returns a EntitlementPlan entity by its id. +func (c *EntitlementPlanClient) Get(ctx context.Context, id string) (*EntitlementPlan, error) { + return c.Query().Where(entitlementplan.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *EntityHistoryClient) GetX(ctx context.Context, id string) *EntityHistory { +func (c *EntitlementPlanClient) GetX(ctx context.Context, id string) *EntitlementPlan { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -3228,134 +3566,229 @@ func (c *EntityHistoryClient) GetX(ctx context.Context, id string) *EntityHistor return obj } +// QueryOwner queries the owner edge of a EntitlementPlan. +func (c *EntitlementPlanClient) QueryOwner(ep *EntitlementPlan) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ep.ID + step := sqlgraph.NewStep( + sqlgraph.From(entitlementplan.Table, entitlementplan.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, entitlementplan.OwnerTable, entitlementplan.OwnerColumn), + ) + schemaConfig := ep.schemaConfig + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.EntitlementPlan + fromV = sqlgraph.Neighbors(ep.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEntitlements queries the entitlements edge of a EntitlementPlan. +func (c *EntitlementPlanClient) QueryEntitlements(ep *EntitlementPlan) *EntitlementQuery { + query := (&EntitlementClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ep.ID + step := sqlgraph.NewStep( + sqlgraph.From(entitlementplan.Table, entitlementplan.FieldID, id), + sqlgraph.To(entitlement.Table, entitlement.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, entitlementplan.EntitlementsTable, entitlementplan.EntitlementsColumn), + ) + schemaConfig := ep.schemaConfig + step.To.Schema = schemaConfig.Entitlement + step.Edge.Schema = schemaConfig.Entitlement + fromV = sqlgraph.Neighbors(ep.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryBaseFeatures queries the base_features edge of a EntitlementPlan. +func (c *EntitlementPlanClient) QueryBaseFeatures(ep *EntitlementPlan) *FeatureQuery { + query := (&FeatureClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ep.ID + step := sqlgraph.NewStep( + sqlgraph.From(entitlementplan.Table, entitlementplan.FieldID, id), + sqlgraph.To(feature.Table, feature.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, entitlementplan.BaseFeaturesTable, entitlementplan.BaseFeaturesPrimaryKey...), + ) + schemaConfig := ep.schemaConfig + step.To.Schema = schemaConfig.Feature + step.Edge.Schema = schemaConfig.EntitlementPlanFeature + fromV = sqlgraph.Neighbors(ep.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEvents queries the events edge of a EntitlementPlan. +func (c *EntitlementPlanClient) QueryEvents(ep *EntitlementPlan) *EventQuery { + query := (&EventClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ep.ID + step := sqlgraph.NewStep( + sqlgraph.From(entitlementplan.Table, entitlementplan.FieldID, id), + sqlgraph.To(event.Table, event.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, entitlementplan.EventsTable, entitlementplan.EventsPrimaryKey...), + ) + schemaConfig := ep.schemaConfig + step.To.Schema = schemaConfig.Event + step.Edge.Schema = schemaConfig.EntitlementPlanEvents + fromV = sqlgraph.Neighbors(ep.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryFeatures queries the features edge of a EntitlementPlan. +func (c *EntitlementPlanClient) QueryFeatures(ep *EntitlementPlan) *EntitlementPlanFeatureQuery { + query := (&EntitlementPlanFeatureClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ep.ID + step := sqlgraph.NewStep( + sqlgraph.From(entitlementplan.Table, entitlementplan.FieldID, id), + sqlgraph.To(entitlementplanfeature.Table, entitlementplanfeature.FieldID), + sqlgraph.Edge(sqlgraph.O2M, true, entitlementplan.FeaturesTable, entitlementplan.FeaturesColumn), + ) + schemaConfig := ep.schemaConfig + step.To.Schema = schemaConfig.EntitlementPlanFeature + step.Edge.Schema = schemaConfig.EntitlementPlanFeature + fromV = sqlgraph.Neighbors(ep.driver.Dialect(), step) + return fromV, nil + } + return query +} + // Hooks returns the client hooks. -func (c *EntityHistoryClient) Hooks() []Hook { - hooks := c.hooks.EntityHistory - return append(hooks[:len(hooks):len(hooks)], entityhistory.Hooks[:]...) +func (c *EntitlementPlanClient) Hooks() []Hook { + hooks := c.hooks.EntitlementPlan + return append(hooks[:len(hooks):len(hooks)], entitlementplan.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *EntityHistoryClient) Interceptors() []Interceptor { - inters := c.inters.EntityHistory - return append(inters[:len(inters):len(inters)], entityhistory.Interceptors[:]...) +func (c *EntitlementPlanClient) Interceptors() []Interceptor { + inters := c.inters.EntitlementPlan + return append(inters[:len(inters):len(inters)], entitlementplan.Interceptors[:]...) } -func (c *EntityHistoryClient) mutate(ctx context.Context, m *EntityHistoryMutation) (Value, error) { +func (c *EntitlementPlanClient) mutate(ctx context.Context, m *EntitlementPlanMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&EntityHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementPlanCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&EntityHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementPlanUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&EntityHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementPlanUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&EntityHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&EntitlementPlanDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown EntityHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown EntitlementPlan mutation op: %q", m.Op()) } } -// EntityTypeClient is a client for the EntityType schema. -type EntityTypeClient struct { +// EntitlementPlanFeatureClient is a client for the EntitlementPlanFeature schema. +type EntitlementPlanFeatureClient struct { config } -// NewEntityTypeClient returns a client for the EntityType from the given config. -func NewEntityTypeClient(c config) *EntityTypeClient { - return &EntityTypeClient{config: c} +// NewEntitlementPlanFeatureClient returns a client for the EntitlementPlanFeature from the given config. +func NewEntitlementPlanFeatureClient(c config) *EntitlementPlanFeatureClient { + return &EntitlementPlanFeatureClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `entitytype.Hooks(f(g(h())))`. -func (c *EntityTypeClient) Use(hooks ...Hook) { - c.hooks.EntityType = append(c.hooks.EntityType, hooks...) +// A call to `Use(f, g, h)` equals to `entitlementplanfeature.Hooks(f(g(h())))`. +func (c *EntitlementPlanFeatureClient) Use(hooks ...Hook) { + c.hooks.EntitlementPlanFeature = append(c.hooks.EntitlementPlanFeature, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `entitytype.Intercept(f(g(h())))`. -func (c *EntityTypeClient) Intercept(interceptors ...Interceptor) { - c.inters.EntityType = append(c.inters.EntityType, interceptors...) +// A call to `Intercept(f, g, h)` equals to `entitlementplanfeature.Intercept(f(g(h())))`. +func (c *EntitlementPlanFeatureClient) Intercept(interceptors ...Interceptor) { + c.inters.EntitlementPlanFeature = append(c.inters.EntitlementPlanFeature, interceptors...) } -// Create returns a builder for creating a EntityType entity. -func (c *EntityTypeClient) Create() *EntityTypeCreate { - mutation := newEntityTypeMutation(c.config, OpCreate) - return &EntityTypeCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a EntitlementPlanFeature entity. +func (c *EntitlementPlanFeatureClient) Create() *EntitlementPlanFeatureCreate { + mutation := newEntitlementPlanFeatureMutation(c.config, OpCreate) + return &EntitlementPlanFeatureCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of EntityType entities. -func (c *EntityTypeClient) CreateBulk(builders ...*EntityTypeCreate) *EntityTypeCreateBulk { - return &EntityTypeCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of EntitlementPlanFeature entities. +func (c *EntitlementPlanFeatureClient) CreateBulk(builders ...*EntitlementPlanFeatureCreate) *EntitlementPlanFeatureCreateBulk { + return &EntitlementPlanFeatureCreateBulk{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 *EntityTypeClient) MapCreateBulk(slice any, setFunc func(*EntityTypeCreate, int)) *EntityTypeCreateBulk { +func (c *EntitlementPlanFeatureClient) MapCreateBulk(slice any, setFunc func(*EntitlementPlanFeatureCreate, int)) *EntitlementPlanFeatureCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &EntityTypeCreateBulk{err: fmt.Errorf("calling to EntityTypeClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &EntitlementPlanFeatureCreateBulk{err: fmt.Errorf("calling to EntitlementPlanFeatureClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*EntityTypeCreate, rv.Len()) + builders := make([]*EntitlementPlanFeatureCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &EntityTypeCreateBulk{config: c.config, builders: builders} + return &EntitlementPlanFeatureCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for EntityType. -func (c *EntityTypeClient) Update() *EntityTypeUpdate { - mutation := newEntityTypeMutation(c.config, OpUpdate) - return &EntityTypeUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for EntitlementPlanFeature. +func (c *EntitlementPlanFeatureClient) Update() *EntitlementPlanFeatureUpdate { + mutation := newEntitlementPlanFeatureMutation(c.config, OpUpdate) + return &EntitlementPlanFeatureUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *EntityTypeClient) UpdateOne(et *EntityType) *EntityTypeUpdateOne { - mutation := newEntityTypeMutation(c.config, OpUpdateOne, withEntityType(et)) - return &EntityTypeUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntitlementPlanFeatureClient) UpdateOne(epf *EntitlementPlanFeature) *EntitlementPlanFeatureUpdateOne { + mutation := newEntitlementPlanFeatureMutation(c.config, OpUpdateOne, withEntitlementPlanFeature(epf)) + return &EntitlementPlanFeatureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *EntityTypeClient) UpdateOneID(id string) *EntityTypeUpdateOne { - mutation := newEntityTypeMutation(c.config, OpUpdateOne, withEntityTypeID(id)) - return &EntityTypeUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntitlementPlanFeatureClient) UpdateOneID(id string) *EntitlementPlanFeatureUpdateOne { + mutation := newEntitlementPlanFeatureMutation(c.config, OpUpdateOne, withEntitlementPlanFeatureID(id)) + return &EntitlementPlanFeatureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for EntityType. -func (c *EntityTypeClient) Delete() *EntityTypeDelete { - mutation := newEntityTypeMutation(c.config, OpDelete) - return &EntityTypeDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for EntitlementPlanFeature. +func (c *EntitlementPlanFeatureClient) Delete() *EntitlementPlanFeatureDelete { + mutation := newEntitlementPlanFeatureMutation(c.config, OpDelete) + return &EntitlementPlanFeatureDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *EntityTypeClient) DeleteOne(et *EntityType) *EntityTypeDeleteOne { - return c.DeleteOneID(et.ID) -} +func (c *EntitlementPlanFeatureClient) DeleteOne(epf *EntitlementPlanFeature) *EntitlementPlanFeatureDeleteOne { + return c.DeleteOneID(epf.ID) +} // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EntityTypeClient) DeleteOneID(id string) *EntityTypeDeleteOne { - builder := c.Delete().Where(entitytype.ID(id)) +func (c *EntitlementPlanFeatureClient) DeleteOneID(id string) *EntitlementPlanFeatureDeleteOne { + builder := c.Delete().Where(entitlementplanfeature.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &EntityTypeDeleteOne{builder} + return &EntitlementPlanFeatureDeleteOne{builder} } -// Query returns a query builder for EntityType. -func (c *EntityTypeClient) Query() *EntityTypeQuery { - return &EntityTypeQuery{ +// Query returns a query builder for EntitlementPlanFeature. +func (c *EntitlementPlanFeatureClient) Query() *EntitlementPlanFeatureQuery { + return &EntitlementPlanFeatureQuery{ config: c.config, - ctx: &QueryContext{Type: TypeEntityType}, + ctx: &QueryContext{Type: TypeEntitlementPlanFeature}, inters: c.Interceptors(), } } -// Get returns a EntityType entity by its id. -func (c *EntityTypeClient) Get(ctx context.Context, id string) (*EntityType, error) { - return c.Query().Where(entitytype.ID(id)).Only(ctx) +// Get returns a EntitlementPlanFeature entity by its id. +func (c *EntitlementPlanFeatureClient) Get(ctx context.Context, id string) (*EntitlementPlanFeature, error) { + return c.Query().Where(entitlementplanfeature.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *EntityTypeClient) GetX(ctx context.Context, id string) *EntityType { +func (c *EntitlementPlanFeatureClient) GetX(ctx context.Context, id string) *EntitlementPlanFeature { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -3363,172 +3796,210 @@ func (c *EntityTypeClient) GetX(ctx context.Context, id string) *EntityType { return obj } -// QueryOwner queries the owner edge of a EntityType. -func (c *EntityTypeClient) QueryOwner(et *EntityType) *OrganizationQuery { +// QueryOwner queries the owner edge of a EntitlementPlanFeature. +func (c *EntitlementPlanFeatureClient) QueryOwner(epf *EntitlementPlanFeature) *OrganizationQuery { query := (&OrganizationClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := et.ID + id := epf.ID step := sqlgraph.NewStep( - sqlgraph.From(entitytype.Table, entitytype.FieldID, id), + sqlgraph.From(entitlementplanfeature.Table, entitlementplanfeature.FieldID, id), sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, entitytype.OwnerTable, entitytype.OwnerColumn), + sqlgraph.Edge(sqlgraph.M2O, true, entitlementplanfeature.OwnerTable, entitlementplanfeature.OwnerColumn), ) - schemaConfig := et.schemaConfig + schemaConfig := epf.schemaConfig step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.EntityType - fromV = sqlgraph.Neighbors(et.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.EntitlementPlanFeature + fromV = sqlgraph.Neighbors(epf.driver.Dialect(), step) return fromV, nil } return query } -// QueryEntities queries the entities edge of a EntityType. -func (c *EntityTypeClient) QueryEntities(et *EntityType) *EntityQuery { - query := (&EntityClient{config: c.config}).Query() +// QueryPlan queries the plan edge of a EntitlementPlanFeature. +func (c *EntitlementPlanFeatureClient) QueryPlan(epf *EntitlementPlanFeature) *EntitlementPlanQuery { + query := (&EntitlementPlanClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := et.ID + id := epf.ID step := sqlgraph.NewStep( - sqlgraph.From(entitytype.Table, entitytype.FieldID, id), - sqlgraph.To(entity.Table, entity.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, entitytype.EntitiesTable, entitytype.EntitiesColumn), + sqlgraph.From(entitlementplanfeature.Table, entitlementplanfeature.FieldID, id), + sqlgraph.To(entitlementplan.Table, entitlementplan.FieldID), + sqlgraph.Edge(sqlgraph.M2O, false, entitlementplanfeature.PlanTable, entitlementplanfeature.PlanColumn), ) - schemaConfig := et.schemaConfig - step.To.Schema = schemaConfig.Entity - step.Edge.Schema = schemaConfig.Entity - fromV = sqlgraph.Neighbors(et.driver.Dialect(), step) + schemaConfig := epf.schemaConfig + step.To.Schema = schemaConfig.EntitlementPlan + step.Edge.Schema = schemaConfig.EntitlementPlanFeature + fromV = sqlgraph.Neighbors(epf.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryFeature queries the feature edge of a EntitlementPlanFeature. +func (c *EntitlementPlanFeatureClient) QueryFeature(epf *EntitlementPlanFeature) *FeatureQuery { + query := (&FeatureClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := epf.ID + step := sqlgraph.NewStep( + sqlgraph.From(entitlementplanfeature.Table, entitlementplanfeature.FieldID, id), + sqlgraph.To(feature.Table, feature.FieldID), + sqlgraph.Edge(sqlgraph.M2O, false, entitlementplanfeature.FeatureTable, entitlementplanfeature.FeatureColumn), + ) + schemaConfig := epf.schemaConfig + step.To.Schema = schemaConfig.Feature + step.Edge.Schema = schemaConfig.EntitlementPlanFeature + fromV = sqlgraph.Neighbors(epf.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEvents queries the events edge of a EntitlementPlanFeature. +func (c *EntitlementPlanFeatureClient) QueryEvents(epf *EntitlementPlanFeature) *EventQuery { + query := (&EventClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := epf.ID + step := sqlgraph.NewStep( + sqlgraph.From(entitlementplanfeature.Table, entitlementplanfeature.FieldID, id), + sqlgraph.To(event.Table, event.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, entitlementplanfeature.EventsTable, entitlementplanfeature.EventsPrimaryKey...), + ) + schemaConfig := epf.schemaConfig + step.To.Schema = schemaConfig.Event + step.Edge.Schema = schemaConfig.EntitlementPlanFeatureEvents + fromV = sqlgraph.Neighbors(epf.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *EntityTypeClient) Hooks() []Hook { - hooks := c.hooks.EntityType - return append(hooks[:len(hooks):len(hooks)], entitytype.Hooks[:]...) +func (c *EntitlementPlanFeatureClient) Hooks() []Hook { + hooks := c.hooks.EntitlementPlanFeature + return append(hooks[:len(hooks):len(hooks)], entitlementplanfeature.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *EntityTypeClient) Interceptors() []Interceptor { - inters := c.inters.EntityType - return append(inters[:len(inters):len(inters)], entitytype.Interceptors[:]...) +func (c *EntitlementPlanFeatureClient) Interceptors() []Interceptor { + inters := c.inters.EntitlementPlanFeature + return append(inters[:len(inters):len(inters)], entitlementplanfeature.Interceptors[:]...) } -func (c *EntityTypeClient) mutate(ctx context.Context, m *EntityTypeMutation) (Value, error) { +func (c *EntitlementPlanFeatureClient) mutate(ctx context.Context, m *EntitlementPlanFeatureMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&EntityTypeCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementPlanFeatureCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&EntityTypeUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementPlanFeatureUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&EntityTypeUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementPlanFeatureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&EntityTypeDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&EntitlementPlanFeatureDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown EntityType mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown EntitlementPlanFeature mutation op: %q", m.Op()) } } -// EntityTypeHistoryClient is a client for the EntityTypeHistory schema. -type EntityTypeHistoryClient struct { +// EntitlementPlanFeatureHistoryClient is a client for the EntitlementPlanFeatureHistory schema. +type EntitlementPlanFeatureHistoryClient struct { config } -// NewEntityTypeHistoryClient returns a client for the EntityTypeHistory from the given config. -func NewEntityTypeHistoryClient(c config) *EntityTypeHistoryClient { - return &EntityTypeHistoryClient{config: c} +// NewEntitlementPlanFeatureHistoryClient returns a client for the EntitlementPlanFeatureHistory from the given config. +func NewEntitlementPlanFeatureHistoryClient(c config) *EntitlementPlanFeatureHistoryClient { + return &EntitlementPlanFeatureHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `entitytypehistory.Hooks(f(g(h())))`. -func (c *EntityTypeHistoryClient) Use(hooks ...Hook) { - c.hooks.EntityTypeHistory = append(c.hooks.EntityTypeHistory, hooks...) +// A call to `Use(f, g, h)` equals to `entitlementplanfeaturehistory.Hooks(f(g(h())))`. +func (c *EntitlementPlanFeatureHistoryClient) Use(hooks ...Hook) { + c.hooks.EntitlementPlanFeatureHistory = append(c.hooks.EntitlementPlanFeatureHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `entitytypehistory.Intercept(f(g(h())))`. -func (c *EntityTypeHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.EntityTypeHistory = append(c.inters.EntityTypeHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `entitlementplanfeaturehistory.Intercept(f(g(h())))`. +func (c *EntitlementPlanFeatureHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.EntitlementPlanFeatureHistory = append(c.inters.EntitlementPlanFeatureHistory, interceptors...) } -// Create returns a builder for creating a EntityTypeHistory entity. -func (c *EntityTypeHistoryClient) Create() *EntityTypeHistoryCreate { - mutation := newEntityTypeHistoryMutation(c.config, OpCreate) - return &EntityTypeHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a EntitlementPlanFeatureHistory entity. +func (c *EntitlementPlanFeatureHistoryClient) Create() *EntitlementPlanFeatureHistoryCreate { + mutation := newEntitlementPlanFeatureHistoryMutation(c.config, OpCreate) + return &EntitlementPlanFeatureHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of EntityTypeHistory entities. -func (c *EntityTypeHistoryClient) CreateBulk(builders ...*EntityTypeHistoryCreate) *EntityTypeHistoryCreateBulk { - return &EntityTypeHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of EntitlementPlanFeatureHistory entities. +func (c *EntitlementPlanFeatureHistoryClient) CreateBulk(builders ...*EntitlementPlanFeatureHistoryCreate) *EntitlementPlanFeatureHistoryCreateBulk { + return &EntitlementPlanFeatureHistoryCreateBulk{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 *EntityTypeHistoryClient) MapCreateBulk(slice any, setFunc func(*EntityTypeHistoryCreate, int)) *EntityTypeHistoryCreateBulk { +func (c *EntitlementPlanFeatureHistoryClient) MapCreateBulk(slice any, setFunc func(*EntitlementPlanFeatureHistoryCreate, int)) *EntitlementPlanFeatureHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &EntityTypeHistoryCreateBulk{err: fmt.Errorf("calling to EntityTypeHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &EntitlementPlanFeatureHistoryCreateBulk{err: fmt.Errorf("calling to EntitlementPlanFeatureHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*EntityTypeHistoryCreate, rv.Len()) + builders := make([]*EntitlementPlanFeatureHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &EntityTypeHistoryCreateBulk{config: c.config, builders: builders} + return &EntitlementPlanFeatureHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for EntityTypeHistory. -func (c *EntityTypeHistoryClient) Update() *EntityTypeHistoryUpdate { - mutation := newEntityTypeHistoryMutation(c.config, OpUpdate) - return &EntityTypeHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for EntitlementPlanFeatureHistory. +func (c *EntitlementPlanFeatureHistoryClient) Update() *EntitlementPlanFeatureHistoryUpdate { + mutation := newEntitlementPlanFeatureHistoryMutation(c.config, OpUpdate) + return &EntitlementPlanFeatureHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *EntityTypeHistoryClient) UpdateOne(eth *EntityTypeHistory) *EntityTypeHistoryUpdateOne { - mutation := newEntityTypeHistoryMutation(c.config, OpUpdateOne, withEntityTypeHistory(eth)) - return &EntityTypeHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntitlementPlanFeatureHistoryClient) UpdateOne(epfh *EntitlementPlanFeatureHistory) *EntitlementPlanFeatureHistoryUpdateOne { + mutation := newEntitlementPlanFeatureHistoryMutation(c.config, OpUpdateOne, withEntitlementPlanFeatureHistory(epfh)) + return &EntitlementPlanFeatureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *EntityTypeHistoryClient) UpdateOneID(id string) *EntityTypeHistoryUpdateOne { - mutation := newEntityTypeHistoryMutation(c.config, OpUpdateOne, withEntityTypeHistoryID(id)) - return &EntityTypeHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntitlementPlanFeatureHistoryClient) UpdateOneID(id string) *EntitlementPlanFeatureHistoryUpdateOne { + mutation := newEntitlementPlanFeatureHistoryMutation(c.config, OpUpdateOne, withEntitlementPlanFeatureHistoryID(id)) + return &EntitlementPlanFeatureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for EntityTypeHistory. -func (c *EntityTypeHistoryClient) Delete() *EntityTypeHistoryDelete { - mutation := newEntityTypeHistoryMutation(c.config, OpDelete) - return &EntityTypeHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for EntitlementPlanFeatureHistory. +func (c *EntitlementPlanFeatureHistoryClient) Delete() *EntitlementPlanFeatureHistoryDelete { + mutation := newEntitlementPlanFeatureHistoryMutation(c.config, OpDelete) + return &EntitlementPlanFeatureHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *EntityTypeHistoryClient) DeleteOne(eth *EntityTypeHistory) *EntityTypeHistoryDeleteOne { - return c.DeleteOneID(eth.ID) +func (c *EntitlementPlanFeatureHistoryClient) DeleteOne(epfh *EntitlementPlanFeatureHistory) *EntitlementPlanFeatureHistoryDeleteOne { + return c.DeleteOneID(epfh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EntityTypeHistoryClient) DeleteOneID(id string) *EntityTypeHistoryDeleteOne { - builder := c.Delete().Where(entitytypehistory.ID(id)) +func (c *EntitlementPlanFeatureHistoryClient) DeleteOneID(id string) *EntitlementPlanFeatureHistoryDeleteOne { + builder := c.Delete().Where(entitlementplanfeaturehistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &EntityTypeHistoryDeleteOne{builder} + return &EntitlementPlanFeatureHistoryDeleteOne{builder} } -// Query returns a query builder for EntityTypeHistory. -func (c *EntityTypeHistoryClient) Query() *EntityTypeHistoryQuery { - return &EntityTypeHistoryQuery{ +// Query returns a query builder for EntitlementPlanFeatureHistory. +func (c *EntitlementPlanFeatureHistoryClient) Query() *EntitlementPlanFeatureHistoryQuery { + return &EntitlementPlanFeatureHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeEntityTypeHistory}, + ctx: &QueryContext{Type: TypeEntitlementPlanFeatureHistory}, inters: c.Interceptors(), } } -// Get returns a EntityTypeHistory entity by its id. -func (c *EntityTypeHistoryClient) Get(ctx context.Context, id string) (*EntityTypeHistory, error) { - return c.Query().Where(entitytypehistory.ID(id)).Only(ctx) +// Get returns a EntitlementPlanFeatureHistory entity by its id. +func (c *EntitlementPlanFeatureHistoryClient) Get(ctx context.Context, id string) (*EntitlementPlanFeatureHistory, error) { + return c.Query().Where(entitlementplanfeaturehistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *EntityTypeHistoryClient) GetX(ctx context.Context, id string) *EntityTypeHistory { +func (c *EntitlementPlanFeatureHistoryClient) GetX(ctx context.Context, id string) *EntitlementPlanFeatureHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -3537,133 +4008,268 @@ func (c *EntityTypeHistoryClient) GetX(ctx context.Context, id string) *EntityTy } // Hooks returns the client hooks. -func (c *EntityTypeHistoryClient) Hooks() []Hook { - hooks := c.hooks.EntityTypeHistory - return append(hooks[:len(hooks):len(hooks)], entitytypehistory.Hooks[:]...) +func (c *EntitlementPlanFeatureHistoryClient) Hooks() []Hook { + hooks := c.hooks.EntitlementPlanFeatureHistory + return append(hooks[:len(hooks):len(hooks)], entitlementplanfeaturehistory.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *EntityTypeHistoryClient) Interceptors() []Interceptor { - inters := c.inters.EntityTypeHistory - return append(inters[:len(inters):len(inters)], entitytypehistory.Interceptors[:]...) +func (c *EntitlementPlanFeatureHistoryClient) Interceptors() []Interceptor { + inters := c.inters.EntitlementPlanFeatureHistory + return append(inters[:len(inters):len(inters)], entitlementplanfeaturehistory.Interceptors[:]...) } -func (c *EntityTypeHistoryClient) mutate(ctx context.Context, m *EntityTypeHistoryMutation) (Value, error) { +func (c *EntitlementPlanFeatureHistoryClient) mutate(ctx context.Context, m *EntitlementPlanFeatureHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&EntityTypeHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementPlanFeatureHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&EntityTypeHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementPlanFeatureHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&EntityTypeHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntitlementPlanFeatureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&EntityTypeHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&EntitlementPlanFeatureHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown EntityTypeHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown EntitlementPlanFeatureHistory mutation op: %q", m.Op()) } } -// EventClient is a client for the Event schema. -type EventClient struct { +// EntitlementPlanHistoryClient is a client for the EntitlementPlanHistory schema. +type EntitlementPlanHistoryClient struct { config } -// NewEventClient returns a client for the Event from the given config. -func NewEventClient(c config) *EventClient { - return &EventClient{config: c} -} - +// NewEntitlementPlanHistoryClient returns a client for the EntitlementPlanHistory from the given config. +func NewEntitlementPlanHistoryClient(c config) *EntitlementPlanHistoryClient { + return &EntitlementPlanHistoryClient{config: c} +} + // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `event.Hooks(f(g(h())))`. -func (c *EventClient) Use(hooks ...Hook) { - c.hooks.Event = append(c.hooks.Event, hooks...) +// A call to `Use(f, g, h)` equals to `entitlementplanhistory.Hooks(f(g(h())))`. +func (c *EntitlementPlanHistoryClient) Use(hooks ...Hook) { + c.hooks.EntitlementPlanHistory = append(c.hooks.EntitlementPlanHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `event.Intercept(f(g(h())))`. -func (c *EventClient) Intercept(interceptors ...Interceptor) { - c.inters.Event = append(c.inters.Event, interceptors...) +// A call to `Intercept(f, g, h)` equals to `entitlementplanhistory.Intercept(f(g(h())))`. +func (c *EntitlementPlanHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.EntitlementPlanHistory = append(c.inters.EntitlementPlanHistory, interceptors...) } -// Create returns a builder for creating a Event entity. -func (c *EventClient) Create() *EventCreate { - mutation := newEventMutation(c.config, OpCreate) - return &EventCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a EntitlementPlanHistory entity. +func (c *EntitlementPlanHistoryClient) Create() *EntitlementPlanHistoryCreate { + mutation := newEntitlementPlanHistoryMutation(c.config, OpCreate) + return &EntitlementPlanHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of Event entities. -func (c *EventClient) CreateBulk(builders ...*EventCreate) *EventCreateBulk { - return &EventCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of EntitlementPlanHistory entities. +func (c *EntitlementPlanHistoryClient) CreateBulk(builders ...*EntitlementPlanHistoryCreate) *EntitlementPlanHistoryCreateBulk { + return &EntitlementPlanHistoryCreateBulk{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 *EventClient) MapCreateBulk(slice any, setFunc func(*EventCreate, int)) *EventCreateBulk { +func (c *EntitlementPlanHistoryClient) MapCreateBulk(slice any, setFunc func(*EntitlementPlanHistoryCreate, int)) *EntitlementPlanHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &EventCreateBulk{err: fmt.Errorf("calling to EventClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &EntitlementPlanHistoryCreateBulk{err: fmt.Errorf("calling to EntitlementPlanHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*EventCreate, rv.Len()) + builders := make([]*EntitlementPlanHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &EventCreateBulk{config: c.config, builders: builders} + return &EntitlementPlanHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for Event. -func (c *EventClient) Update() *EventUpdate { - mutation := newEventMutation(c.config, OpUpdate) - return &EventUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for EntitlementPlanHistory. +func (c *EntitlementPlanHistoryClient) Update() *EntitlementPlanHistoryUpdate { + mutation := newEntitlementPlanHistoryMutation(c.config, OpUpdate) + return &EntitlementPlanHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *EventClient) UpdateOne(e *Event) *EventUpdateOne { - mutation := newEventMutation(c.config, OpUpdateOne, withEvent(e)) - return &EventUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntitlementPlanHistoryClient) UpdateOne(eph *EntitlementPlanHistory) *EntitlementPlanHistoryUpdateOne { + mutation := newEntitlementPlanHistoryMutation(c.config, OpUpdateOne, withEntitlementPlanHistory(eph)) + return &EntitlementPlanHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *EventClient) UpdateOneID(id string) *EventUpdateOne { - mutation := newEventMutation(c.config, OpUpdateOne, withEventID(id)) - return &EventUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntitlementPlanHistoryClient) UpdateOneID(id string) *EntitlementPlanHistoryUpdateOne { + mutation := newEntitlementPlanHistoryMutation(c.config, OpUpdateOne, withEntitlementPlanHistoryID(id)) + return &EntitlementPlanHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for Event. -func (c *EventClient) Delete() *EventDelete { - mutation := newEventMutation(c.config, OpDelete) - return &EventDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for EntitlementPlanHistory. +func (c *EntitlementPlanHistoryClient) Delete() *EntitlementPlanHistoryDelete { + mutation := newEntitlementPlanHistoryMutation(c.config, OpDelete) + return &EntitlementPlanHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *EventClient) DeleteOne(e *Event) *EventDeleteOne { +func (c *EntitlementPlanHistoryClient) DeleteOne(eph *EntitlementPlanHistory) *EntitlementPlanHistoryDeleteOne { + return c.DeleteOneID(eph.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *EntitlementPlanHistoryClient) DeleteOneID(id string) *EntitlementPlanHistoryDeleteOne { + builder := c.Delete().Where(entitlementplanhistory.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &EntitlementPlanHistoryDeleteOne{builder} +} + +// Query returns a query builder for EntitlementPlanHistory. +func (c *EntitlementPlanHistoryClient) Query() *EntitlementPlanHistoryQuery { + return &EntitlementPlanHistoryQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeEntitlementPlanHistory}, + inters: c.Interceptors(), + } +} + +// Get returns a EntitlementPlanHistory entity by its id. +func (c *EntitlementPlanHistoryClient) Get(ctx context.Context, id string) (*EntitlementPlanHistory, error) { + return c.Query().Where(entitlementplanhistory.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *EntitlementPlanHistoryClient) GetX(ctx context.Context, id string) *EntitlementPlanHistory { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// Hooks returns the client hooks. +func (c *EntitlementPlanHistoryClient) Hooks() []Hook { + hooks := c.hooks.EntitlementPlanHistory + return append(hooks[:len(hooks):len(hooks)], entitlementplanhistory.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *EntitlementPlanHistoryClient) Interceptors() []Interceptor { + inters := c.inters.EntitlementPlanHistory + return append(inters[:len(inters):len(inters)], entitlementplanhistory.Interceptors[:]...) +} + +func (c *EntitlementPlanHistoryClient) mutate(ctx context.Context, m *EntitlementPlanHistoryMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&EntitlementPlanHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&EntitlementPlanHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&EntitlementPlanHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&EntitlementPlanHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown EntitlementPlanHistory mutation op: %q", m.Op()) + } +} + +// EntityClient is a client for the Entity schema. +type EntityClient struct { + config +} + +// NewEntityClient returns a client for the Entity from the given config. +func NewEntityClient(c config) *EntityClient { + return &EntityClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `entity.Hooks(f(g(h())))`. +func (c *EntityClient) Use(hooks ...Hook) { + c.hooks.Entity = append(c.hooks.Entity, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `entity.Intercept(f(g(h())))`. +func (c *EntityClient) Intercept(interceptors ...Interceptor) { + c.inters.Entity = append(c.inters.Entity, interceptors...) +} + +// Create returns a builder for creating a Entity entity. +func (c *EntityClient) Create() *EntityCreate { + mutation := newEntityMutation(c.config, OpCreate) + return &EntityCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of Entity entities. +func (c *EntityClient) CreateBulk(builders ...*EntityCreate) *EntityCreateBulk { + return &EntityCreateBulk{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 *EntityClient) MapCreateBulk(slice any, setFunc func(*EntityCreate, int)) *EntityCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &EntityCreateBulk{err: fmt.Errorf("calling to EntityClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*EntityCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &EntityCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for Entity. +func (c *EntityClient) Update() *EntityUpdate { + mutation := newEntityMutation(c.config, OpUpdate) + return &EntityUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *EntityClient) UpdateOne(e *Entity) *EntityUpdateOne { + mutation := newEntityMutation(c.config, OpUpdateOne, withEntity(e)) + return &EntityUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *EntityClient) UpdateOneID(id string) *EntityUpdateOne { + mutation := newEntityMutation(c.config, OpUpdateOne, withEntityID(id)) + return &EntityUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for Entity. +func (c *EntityClient) Delete() *EntityDelete { + mutation := newEntityMutation(c.config, OpDelete) + return &EntityDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *EntityClient) DeleteOne(e *Entity) *EntityDeleteOne { return c.DeleteOneID(e.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EventClient) DeleteOneID(id string) *EventDeleteOne { - builder := c.Delete().Where(event.ID(id)) +func (c *EntityClient) DeleteOneID(id string) *EntityDeleteOne { + builder := c.Delete().Where(entity.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &EventDeleteOne{builder} + return &EntityDeleteOne{builder} } -// Query returns a query builder for Event. -func (c *EventClient) Query() *EventQuery { - return &EventQuery{ +// Query returns a query builder for Entity. +func (c *EntityClient) Query() *EntityQuery { + return &EntityQuery{ config: c.config, - ctx: &QueryContext{Type: TypeEvent}, + ctx: &QueryContext{Type: TypeEntity}, inters: c.Interceptors(), } } -// Get returns a Event entity by its id. -func (c *EventClient) Get(ctx context.Context, id string) (*Event, error) { - return c.Query().Where(event.ID(id)).Only(ctx) +// Get returns a Entity entity by its id. +func (c *EntityClient) Get(ctx context.Context, id string) (*Entity, error) { + return c.Query().Where(entity.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *EventClient) GetX(ctx context.Context, id string) *Event { +func (c *EntityClient) GetX(ctx context.Context, id string) *Entity { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -3671,456 +4277,248 @@ func (c *EventClient) GetX(ctx context.Context, id string) *Event { return obj } -// QueryUser queries the user edge of a Event. -func (c *EventClient) QueryUser(e *Event) *UserQuery { - query := (&UserClient{config: c.config}).Query() +// QueryOwner queries the owner edge of a Entity. +func (c *EntityClient) QueryOwner(e *Entity) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(user.Table, user.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.UserTable, event.UserPrimaryKey...), + sqlgraph.From(entity.Table, entity.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, entity.OwnerTable, entity.OwnerColumn), ) schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.User - step.Edge.Schema = schemaConfig.UserEvents + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.Entity fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryGroup queries the group edge of a Event. -func (c *EventClient) QueryGroup(e *Event) *GroupQuery { - query := (&GroupClient{config: c.config}).Query() +// QueryContacts queries the contacts edge of a Entity. +func (c *EntityClient) QueryContacts(e *Entity) *ContactQuery { + query := (&ContactClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.GroupTable, event.GroupPrimaryKey...), + sqlgraph.From(entity.Table, entity.FieldID, id), + sqlgraph.To(contact.Table, contact.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, entity.ContactsTable, entity.ContactsPrimaryKey...), ) schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Group - step.Edge.Schema = schemaConfig.GroupEvents + step.To.Schema = schemaConfig.Contact + step.Edge.Schema = schemaConfig.EntityContacts fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryIntegration queries the integration edge of a Event. -func (c *EventClient) QueryIntegration(e *Event) *IntegrationQuery { - query := (&IntegrationClient{config: c.config}).Query() +// QueryDocuments queries the documents edge of a Entity. +func (c *EntityClient) QueryDocuments(e *Entity) *DocumentDataQuery { + query := (&DocumentDataClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(integration.Table, integration.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.IntegrationTable, event.IntegrationPrimaryKey...), + sqlgraph.From(entity.Table, entity.FieldID, id), + sqlgraph.To(documentdata.Table, documentdata.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, entity.DocumentsTable, entity.DocumentsPrimaryKey...), ) schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Integration - step.Edge.Schema = schemaConfig.IntegrationEvents + step.To.Schema = schemaConfig.DocumentData + step.Edge.Schema = schemaConfig.EntityDocuments fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryOrganization queries the organization edge of a Event. -func (c *EventClient) QueryOrganization(e *Event) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() +// QueryNotes queries the notes edge of a Entity. +func (c *EntityClient) QueryNotes(e *Entity) *NoteQuery { + query := (&NoteClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.OrganizationTable, event.OrganizationPrimaryKey...), + sqlgraph.From(entity.Table, entity.FieldID, id), + sqlgraph.To(note.Table, note.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, entity.NotesTable, entity.NotesColumn), ) schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.OrganizationEvents + step.To.Schema = schemaConfig.Note + step.Edge.Schema = schemaConfig.Note fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryInvite queries the invite edge of a Event. -func (c *EventClient) QueryInvite(e *Event) *InviteQuery { - query := (&InviteClient{config: c.config}).Query() +// QueryFiles queries the files edge of a Entity. +func (c *EntityClient) QueryFiles(e *Entity) *FileQuery { + query := (&FileClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(invite.Table, invite.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.InviteTable, event.InvitePrimaryKey...), + sqlgraph.From(entity.Table, entity.FieldID, id), + sqlgraph.To(file.Table, file.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, entity.FilesTable, entity.FilesPrimaryKey...), ) schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Invite - step.Edge.Schema = schemaConfig.InviteEvents + step.To.Schema = schemaConfig.File + step.Edge.Schema = schemaConfig.EntityFiles fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryFeature queries the feature edge of a Event. -func (c *EventClient) QueryFeature(e *Event) *FeatureQuery { - query := (&FeatureClient{config: c.config}).Query() +// QueryEntityType queries the entity_type edge of a Entity. +func (c *EntityClient) QueryEntityType(e *Entity) *EntityTypeQuery { + query := (&EntityTypeClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(feature.Table, feature.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.FeatureTable, event.FeaturePrimaryKey...), + sqlgraph.From(entity.Table, entity.FieldID, id), + sqlgraph.To(entitytype.Table, entitytype.FieldID), + sqlgraph.Edge(sqlgraph.M2O, false, entity.EntityTypeTable, entity.EntityTypeColumn), ) schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Feature - step.Edge.Schema = schemaConfig.FeatureEvents + step.To.Schema = schemaConfig.EntityType + step.Edge.Schema = schemaConfig.Entity fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryEntitlementplan queries the entitlementplan edge of a Event. -func (c *EventClient) QueryEntitlementplan(e *Event) *EntitlementPlanQuery { - query := (&EntitlementPlanClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(entitlementplan.Table, entitlementplan.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.EntitlementplanTable, event.EntitlementplanPrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.EntitlementPlan - step.Edge.Schema = schemaConfig.EntitlementPlanEvents - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query +// Hooks returns the client hooks. +func (c *EntityClient) Hooks() []Hook { + hooks := c.hooks.Entity + return append(hooks[:len(hooks):len(hooks)], entity.Hooks[:]...) } -// QueryEntitlementplanfeature queries the entitlementplanfeature edge of a Event. -func (c *EventClient) QueryEntitlementplanfeature(e *Event) *EntitlementPlanFeatureQuery { - query := (&EntitlementPlanFeatureClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(entitlementplanfeature.Table, entitlementplanfeature.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.EntitlementplanfeatureTable, event.EntitlementplanfeaturePrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.EntitlementPlanFeature - step.Edge.Schema = schemaConfig.EntitlementPlanFeatureEvents - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query +// Interceptors returns the client interceptors. +func (c *EntityClient) Interceptors() []Interceptor { + inters := c.inters.Entity + return append(inters[:len(inters):len(inters)], entity.Interceptors[:]...) } -// QueryPersonalAccessToken queries the personal_access_token edge of a Event. -func (c *EventClient) QueryPersonalAccessToken(e *Event) *PersonalAccessTokenQuery { - query := (&PersonalAccessTokenClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(personalaccesstoken.Table, personalaccesstoken.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.PersonalAccessTokenTable, event.PersonalAccessTokenPrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.PersonalAccessToken - step.Edge.Schema = schemaConfig.PersonalAccessTokenEvents - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil +func (c *EntityClient) mutate(ctx context.Context, m *EntityMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&EntityCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&EntityUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&EntityUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&EntityDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown Entity mutation op: %q", m.Op()) } - return query } -// QueryOauth2token queries the oauth2token edge of a Event. -func (c *EventClient) QueryOauth2token(e *Event) *OhAuthTooTokenQuery { - query := (&OhAuthTooTokenClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(ohauthtootoken.Table, ohauthtootoken.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.Oauth2tokenTable, event.Oauth2tokenPrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.OhAuthTooToken - step.Edge.Schema = schemaConfig.OhAuthTooTokenEvents - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query +// EntityHistoryClient is a client for the EntityHistory schema. +type EntityHistoryClient struct { + config } -// QueryHush queries the hush edge of a Event. -func (c *EventClient) QueryHush(e *Event) *HushQuery { - query := (&HushClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(hush.Table, hush.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.HushTable, event.HushPrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Hush - step.Edge.Schema = schemaConfig.HushEvents - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query +// NewEntityHistoryClient returns a client for the EntityHistory from the given config. +func NewEntityHistoryClient(c config) *EntityHistoryClient { + return &EntityHistoryClient{config: c} } -// QueryOrgmembership queries the orgmembership edge of a Event. -func (c *EventClient) QueryOrgmembership(e *Event) *OrgMembershipQuery { - query := (&OrgMembershipClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(orgmembership.Table, orgmembership.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.OrgmembershipTable, event.OrgmembershipPrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.OrgMembership - step.Edge.Schema = schemaConfig.OrgMembershipEvents - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `entityhistory.Hooks(f(g(h())))`. +func (c *EntityHistoryClient) Use(hooks ...Hook) { + c.hooks.EntityHistory = append(c.hooks.EntityHistory, hooks...) } -// QueryGroupmembership queries the groupmembership edge of a Event. -func (c *EventClient) QueryGroupmembership(e *Event) *GroupMembershipQuery { - query := (&GroupMembershipClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(groupmembership.Table, groupmembership.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.GroupmembershipTable, event.GroupmembershipPrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.GroupMembership - step.Edge.Schema = schemaConfig.GroupMembershipEvents - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `entityhistory.Intercept(f(g(h())))`. +func (c *EntityHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.EntityHistory = append(c.inters.EntityHistory, interceptors...) } -// QueryEntitlement queries the entitlement edge of a Event. -func (c *EventClient) QueryEntitlement(e *Event) *EntitlementQuery { - query := (&EntitlementClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(entitlement.Table, entitlement.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.EntitlementTable, event.EntitlementPrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Entitlement - step.Edge.Schema = schemaConfig.EntitlementEvents - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query +// Create returns a builder for creating a EntityHistory entity. +func (c *EntityHistoryClient) Create() *EntityHistoryCreate { + mutation := newEntityHistoryMutation(c.config, OpCreate) + return &EntityHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// QueryWebhook queries the webhook edge of a Event. -func (c *EventClient) QueryWebhook(e *Event) *WebhookQuery { - query := (&WebhookClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(webhook.Table, webhook.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.WebhookTable, event.WebhookPrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Webhook - step.Edge.Schema = schemaConfig.WebhookEvents - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QuerySubscriber queries the subscriber edge of a Event. -func (c *EventClient) QuerySubscriber(e *Event) *SubscriberQuery { - query := (&SubscriberClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(subscriber.Table, subscriber.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.SubscriberTable, event.SubscriberPrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.Subscriber - step.Edge.Schema = schemaConfig.SubscriberEvents - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryFile queries the file edge of a Event. -func (c *EventClient) QueryFile(e *Event) *FileQuery { - query := (&FileClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := e.ID - step := sqlgraph.NewStep( - sqlgraph.From(event.Table, event.FieldID, id), - sqlgraph.To(file.Table, file.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, event.FileTable, event.FilePrimaryKey...), - ) - schemaConfig := e.schemaConfig - step.To.Schema = schemaConfig.File - step.Edge.Schema = schemaConfig.FileEvents - fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// Hooks returns the client hooks. -func (c *EventClient) Hooks() []Hook { - hooks := c.hooks.Event - return append(hooks[:len(hooks):len(hooks)], event.Hooks[:]...) -} - -// Interceptors returns the client interceptors. -func (c *EventClient) Interceptors() []Interceptor { - return c.inters.Event -} - -func (c *EventClient) mutate(ctx context.Context, m *EventMutation) (Value, error) { - switch m.Op() { - case OpCreate: - return (&EventCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) - case OpUpdate: - return (&EventUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) - case OpUpdateOne: - return (&EventUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) - case OpDelete, OpDeleteOne: - return (&EventDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) - default: - return nil, fmt.Errorf("generated: unknown Event mutation op: %q", m.Op()) - } -} - -// EventHistoryClient is a client for the EventHistory schema. -type EventHistoryClient struct { - config -} - -// NewEventHistoryClient returns a client for the EventHistory from the given config. -func NewEventHistoryClient(c config) *EventHistoryClient { - return &EventHistoryClient{config: c} -} - -// Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `eventhistory.Hooks(f(g(h())))`. -func (c *EventHistoryClient) Use(hooks ...Hook) { - c.hooks.EventHistory = append(c.hooks.EventHistory, hooks...) -} - -// Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `eventhistory.Intercept(f(g(h())))`. -func (c *EventHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.EventHistory = append(c.inters.EventHistory, interceptors...) -} - -// Create returns a builder for creating a EventHistory entity. -func (c *EventHistoryClient) Create() *EventHistoryCreate { - mutation := newEventHistoryMutation(c.config, OpCreate) - return &EventHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} -} - -// CreateBulk returns a builder for creating a bulk of EventHistory entities. -func (c *EventHistoryClient) CreateBulk(builders ...*EventHistoryCreate) *EventHistoryCreateBulk { - return &EventHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of EntityHistory entities. +func (c *EntityHistoryClient) CreateBulk(builders ...*EntityHistoryCreate) *EntityHistoryCreateBulk { + return &EntityHistoryCreateBulk{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 *EventHistoryClient) MapCreateBulk(slice any, setFunc func(*EventHistoryCreate, int)) *EventHistoryCreateBulk { +func (c *EntityHistoryClient) MapCreateBulk(slice any, setFunc func(*EntityHistoryCreate, int)) *EntityHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &EventHistoryCreateBulk{err: fmt.Errorf("calling to EventHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &EntityHistoryCreateBulk{err: fmt.Errorf("calling to EntityHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*EventHistoryCreate, rv.Len()) + builders := make([]*EntityHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &EventHistoryCreateBulk{config: c.config, builders: builders} + return &EntityHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for EventHistory. -func (c *EventHistoryClient) Update() *EventHistoryUpdate { - mutation := newEventHistoryMutation(c.config, OpUpdate) - return &EventHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for EntityHistory. +func (c *EntityHistoryClient) Update() *EntityHistoryUpdate { + mutation := newEntityHistoryMutation(c.config, OpUpdate) + return &EntityHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *EventHistoryClient) UpdateOne(eh *EventHistory) *EventHistoryUpdateOne { - mutation := newEventHistoryMutation(c.config, OpUpdateOne, withEventHistory(eh)) - return &EventHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntityHistoryClient) UpdateOne(eh *EntityHistory) *EntityHistoryUpdateOne { + mutation := newEntityHistoryMutation(c.config, OpUpdateOne, withEntityHistory(eh)) + return &EntityHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *EventHistoryClient) UpdateOneID(id string) *EventHistoryUpdateOne { - mutation := newEventHistoryMutation(c.config, OpUpdateOne, withEventHistoryID(id)) - return &EventHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntityHistoryClient) UpdateOneID(id string) *EntityHistoryUpdateOne { + mutation := newEntityHistoryMutation(c.config, OpUpdateOne, withEntityHistoryID(id)) + return &EntityHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for EventHistory. -func (c *EventHistoryClient) Delete() *EventHistoryDelete { - mutation := newEventHistoryMutation(c.config, OpDelete) - return &EventHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for EntityHistory. +func (c *EntityHistoryClient) Delete() *EntityHistoryDelete { + mutation := newEntityHistoryMutation(c.config, OpDelete) + return &EntityHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *EventHistoryClient) DeleteOne(eh *EventHistory) *EventHistoryDeleteOne { +func (c *EntityHistoryClient) DeleteOne(eh *EntityHistory) *EntityHistoryDeleteOne { return c.DeleteOneID(eh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *EventHistoryClient) DeleteOneID(id string) *EventHistoryDeleteOne { - builder := c.Delete().Where(eventhistory.ID(id)) +func (c *EntityHistoryClient) DeleteOneID(id string) *EntityHistoryDeleteOne { + builder := c.Delete().Where(entityhistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &EventHistoryDeleteOne{builder} + return &EntityHistoryDeleteOne{builder} } -// Query returns a query builder for EventHistory. -func (c *EventHistoryClient) Query() *EventHistoryQuery { - return &EventHistoryQuery{ +// Query returns a query builder for EntityHistory. +func (c *EntityHistoryClient) Query() *EntityHistoryQuery { + return &EntityHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeEventHistory}, + ctx: &QueryContext{Type: TypeEntityHistory}, inters: c.Interceptors(), } } -// Get returns a EventHistory entity by its id. -func (c *EventHistoryClient) Get(ctx context.Context, id string) (*EventHistory, error) { - return c.Query().Where(eventhistory.ID(id)).Only(ctx) +// Get returns a EntityHistory entity by its id. +func (c *EntityHistoryClient) Get(ctx context.Context, id string) (*EntityHistory, error) { + return c.Query().Where(entityhistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *EventHistoryClient) GetX(ctx context.Context, id string) *EventHistory { +func (c *EntityHistoryClient) GetX(ctx context.Context, id string) *EntityHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -4129,131 +4527,133 @@ func (c *EventHistoryClient) GetX(ctx context.Context, id string) *EventHistory } // Hooks returns the client hooks. -func (c *EventHistoryClient) Hooks() []Hook { - return c.hooks.EventHistory +func (c *EntityHistoryClient) Hooks() []Hook { + hooks := c.hooks.EntityHistory + return append(hooks[:len(hooks):len(hooks)], entityhistory.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *EventHistoryClient) Interceptors() []Interceptor { - return c.inters.EventHistory +func (c *EntityHistoryClient) Interceptors() []Interceptor { + inters := c.inters.EntityHistory + return append(inters[:len(inters):len(inters)], entityhistory.Interceptors[:]...) } -func (c *EventHistoryClient) mutate(ctx context.Context, m *EventHistoryMutation) (Value, error) { +func (c *EntityHistoryClient) mutate(ctx context.Context, m *EntityHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&EventHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntityHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&EventHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntityHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&EventHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntityHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&EventHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&EntityHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown EventHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown EntityHistory mutation op: %q", m.Op()) } } -// FeatureClient is a client for the Feature schema. -type FeatureClient struct { +// EntityTypeClient is a client for the EntityType schema. +type EntityTypeClient struct { config } -// NewFeatureClient returns a client for the Feature from the given config. -func NewFeatureClient(c config) *FeatureClient { - return &FeatureClient{config: c} +// NewEntityTypeClient returns a client for the EntityType from the given config. +func NewEntityTypeClient(c config) *EntityTypeClient { + return &EntityTypeClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `feature.Hooks(f(g(h())))`. -func (c *FeatureClient) Use(hooks ...Hook) { - c.hooks.Feature = append(c.hooks.Feature, hooks...) +// A call to `Use(f, g, h)` equals to `entitytype.Hooks(f(g(h())))`. +func (c *EntityTypeClient) Use(hooks ...Hook) { + c.hooks.EntityType = append(c.hooks.EntityType, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `feature.Intercept(f(g(h())))`. -func (c *FeatureClient) Intercept(interceptors ...Interceptor) { - c.inters.Feature = append(c.inters.Feature, interceptors...) +// A call to `Intercept(f, g, h)` equals to `entitytype.Intercept(f(g(h())))`. +func (c *EntityTypeClient) Intercept(interceptors ...Interceptor) { + c.inters.EntityType = append(c.inters.EntityType, interceptors...) } -// Create returns a builder for creating a Feature entity. -func (c *FeatureClient) Create() *FeatureCreate { - mutation := newFeatureMutation(c.config, OpCreate) - return &FeatureCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a EntityType entity. +func (c *EntityTypeClient) Create() *EntityTypeCreate { + mutation := newEntityTypeMutation(c.config, OpCreate) + return &EntityTypeCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of Feature entities. -func (c *FeatureClient) CreateBulk(builders ...*FeatureCreate) *FeatureCreateBulk { - return &FeatureCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of EntityType entities. +func (c *EntityTypeClient) CreateBulk(builders ...*EntityTypeCreate) *EntityTypeCreateBulk { + return &EntityTypeCreateBulk{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 *FeatureClient) MapCreateBulk(slice any, setFunc func(*FeatureCreate, int)) *FeatureCreateBulk { +func (c *EntityTypeClient) MapCreateBulk(slice any, setFunc func(*EntityTypeCreate, int)) *EntityTypeCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &FeatureCreateBulk{err: fmt.Errorf("calling to FeatureClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &EntityTypeCreateBulk{err: fmt.Errorf("calling to EntityTypeClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*FeatureCreate, rv.Len()) + builders := make([]*EntityTypeCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &FeatureCreateBulk{config: c.config, builders: builders} + return &EntityTypeCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for Feature. -func (c *FeatureClient) Update() *FeatureUpdate { - mutation := newFeatureMutation(c.config, OpUpdate) - return &FeatureUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for EntityType. +func (c *EntityTypeClient) Update() *EntityTypeUpdate { + mutation := newEntityTypeMutation(c.config, OpUpdate) + return &EntityTypeUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *FeatureClient) UpdateOne(f *Feature) *FeatureUpdateOne { - mutation := newFeatureMutation(c.config, OpUpdateOne, withFeature(f)) - return &FeatureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntityTypeClient) UpdateOne(et *EntityType) *EntityTypeUpdateOne { + mutation := newEntityTypeMutation(c.config, OpUpdateOne, withEntityType(et)) + return &EntityTypeUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *FeatureClient) UpdateOneID(id string) *FeatureUpdateOne { - mutation := newFeatureMutation(c.config, OpUpdateOne, withFeatureID(id)) - return &FeatureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntityTypeClient) UpdateOneID(id string) *EntityTypeUpdateOne { + mutation := newEntityTypeMutation(c.config, OpUpdateOne, withEntityTypeID(id)) + return &EntityTypeUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for Feature. -func (c *FeatureClient) Delete() *FeatureDelete { - mutation := newFeatureMutation(c.config, OpDelete) - return &FeatureDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for EntityType. +func (c *EntityTypeClient) Delete() *EntityTypeDelete { + mutation := newEntityTypeMutation(c.config, OpDelete) + return &EntityTypeDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *FeatureClient) DeleteOne(f *Feature) *FeatureDeleteOne { - return c.DeleteOneID(f.ID) +func (c *EntityTypeClient) DeleteOne(et *EntityType) *EntityTypeDeleteOne { + return c.DeleteOneID(et.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *FeatureClient) DeleteOneID(id string) *FeatureDeleteOne { - builder := c.Delete().Where(feature.ID(id)) +func (c *EntityTypeClient) DeleteOneID(id string) *EntityTypeDeleteOne { + builder := c.Delete().Where(entitytype.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &FeatureDeleteOne{builder} + return &EntityTypeDeleteOne{builder} } -// Query returns a query builder for Feature. -func (c *FeatureClient) Query() *FeatureQuery { - return &FeatureQuery{ +// Query returns a query builder for EntityType. +func (c *EntityTypeClient) Query() *EntityTypeQuery { + return &EntityTypeQuery{ config: c.config, - ctx: &QueryContext{Type: TypeFeature}, + ctx: &QueryContext{Type: TypeEntityType}, inters: c.Interceptors(), } } -// Get returns a Feature entity by its id. -func (c *FeatureClient) Get(ctx context.Context, id string) (*Feature, error) { - return c.Query().Where(feature.ID(id)).Only(ctx) +// Get returns a EntityType entity by its id. +func (c *EntityTypeClient) Get(ctx context.Context, id string) (*EntityType, error) { + return c.Query().Where(entitytype.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *FeatureClient) GetX(ctx context.Context, id string) *Feature { +func (c *EntityTypeClient) GetX(ctx context.Context, id string) *EntityType { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -4261,210 +4661,172 @@ func (c *FeatureClient) GetX(ctx context.Context, id string) *Feature { return obj } -// QueryOwner queries the owner edge of a Feature. -func (c *FeatureClient) QueryOwner(f *Feature) *OrganizationQuery { +// QueryOwner queries the owner edge of a EntityType. +func (c *EntityTypeClient) QueryOwner(et *EntityType) *OrganizationQuery { query := (&OrganizationClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID + id := et.ID step := sqlgraph.NewStep( - sqlgraph.From(feature.Table, feature.FieldID, id), + sqlgraph.From(entitytype.Table, entitytype.FieldID, id), sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, feature.OwnerTable, feature.OwnerColumn), + sqlgraph.Edge(sqlgraph.M2O, true, entitytype.OwnerTable, entitytype.OwnerColumn), ) - schemaConfig := f.schemaConfig + schemaConfig := et.schemaConfig step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.Feature - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryPlans queries the plans edge of a Feature. -func (c *FeatureClient) QueryPlans(f *Feature) *EntitlementPlanQuery { - query := (&EntitlementPlanClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID - step := sqlgraph.NewStep( - sqlgraph.From(feature.Table, feature.FieldID, id), - sqlgraph.To(entitlementplan.Table, entitlementplan.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, feature.PlansTable, feature.PlansPrimaryKey...), - ) - schemaConfig := f.schemaConfig - step.To.Schema = schemaConfig.EntitlementPlan - step.Edge.Schema = schemaConfig.EntitlementPlanFeature - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryEvents queries the events edge of a Feature. -func (c *FeatureClient) QueryEvents(f *Feature) *EventQuery { - query := (&EventClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID - step := sqlgraph.NewStep( - sqlgraph.From(feature.Table, feature.FieldID, id), - sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, feature.EventsTable, feature.EventsPrimaryKey...), - ) - schemaConfig := f.schemaConfig - step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.FeatureEvents - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.EntityType + fromV = sqlgraph.Neighbors(et.driver.Dialect(), step) return fromV, nil } return query } -// QueryFeatures queries the features edge of a Feature. -func (c *FeatureClient) QueryFeatures(f *Feature) *EntitlementPlanFeatureQuery { - query := (&EntitlementPlanFeatureClient{config: c.config}).Query() +// QueryEntities queries the entities edge of a EntityType. +func (c *EntityTypeClient) QueryEntities(et *EntityType) *EntityQuery { + query := (&EntityClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID + id := et.ID step := sqlgraph.NewStep( - sqlgraph.From(feature.Table, feature.FieldID, id), - sqlgraph.To(entitlementplanfeature.Table, entitlementplanfeature.FieldID), - sqlgraph.Edge(sqlgraph.O2M, true, feature.FeaturesTable, feature.FeaturesColumn), + sqlgraph.From(entitytype.Table, entitytype.FieldID, id), + sqlgraph.To(entity.Table, entity.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, entitytype.EntitiesTable, entitytype.EntitiesColumn), ) - schemaConfig := f.schemaConfig - step.To.Schema = schemaConfig.EntitlementPlanFeature - step.Edge.Schema = schemaConfig.EntitlementPlanFeature - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + schemaConfig := et.schemaConfig + step.To.Schema = schemaConfig.Entity + step.Edge.Schema = schemaConfig.Entity + fromV = sqlgraph.Neighbors(et.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *FeatureClient) Hooks() []Hook { - hooks := c.hooks.Feature - return append(hooks[:len(hooks):len(hooks)], feature.Hooks[:]...) +func (c *EntityTypeClient) Hooks() []Hook { + hooks := c.hooks.EntityType + return append(hooks[:len(hooks):len(hooks)], entitytype.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *FeatureClient) Interceptors() []Interceptor { - inters := c.inters.Feature - return append(inters[:len(inters):len(inters)], feature.Interceptors[:]...) +func (c *EntityTypeClient) Interceptors() []Interceptor { + inters := c.inters.EntityType + return append(inters[:len(inters):len(inters)], entitytype.Interceptors[:]...) } -func (c *FeatureClient) mutate(ctx context.Context, m *FeatureMutation) (Value, error) { +func (c *EntityTypeClient) mutate(ctx context.Context, m *EntityTypeMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&FeatureCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntityTypeCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&FeatureUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntityTypeUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&FeatureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntityTypeUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&FeatureDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&EntityTypeDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown Feature mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown EntityType mutation op: %q", m.Op()) } } -// FeatureHistoryClient is a client for the FeatureHistory schema. -type FeatureHistoryClient struct { +// EntityTypeHistoryClient is a client for the EntityTypeHistory schema. +type EntityTypeHistoryClient struct { config } -// NewFeatureHistoryClient returns a client for the FeatureHistory from the given config. -func NewFeatureHistoryClient(c config) *FeatureHistoryClient { - return &FeatureHistoryClient{config: c} +// NewEntityTypeHistoryClient returns a client for the EntityTypeHistory from the given config. +func NewEntityTypeHistoryClient(c config) *EntityTypeHistoryClient { + return &EntityTypeHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `featurehistory.Hooks(f(g(h())))`. -func (c *FeatureHistoryClient) Use(hooks ...Hook) { - c.hooks.FeatureHistory = append(c.hooks.FeatureHistory, hooks...) +// A call to `Use(f, g, h)` equals to `entitytypehistory.Hooks(f(g(h())))`. +func (c *EntityTypeHistoryClient) Use(hooks ...Hook) { + c.hooks.EntityTypeHistory = append(c.hooks.EntityTypeHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `featurehistory.Intercept(f(g(h())))`. -func (c *FeatureHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.FeatureHistory = append(c.inters.FeatureHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `entitytypehistory.Intercept(f(g(h())))`. +func (c *EntityTypeHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.EntityTypeHistory = append(c.inters.EntityTypeHistory, interceptors...) } -// Create returns a builder for creating a FeatureHistory entity. -func (c *FeatureHistoryClient) Create() *FeatureHistoryCreate { - mutation := newFeatureHistoryMutation(c.config, OpCreate) - return &FeatureHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a EntityTypeHistory entity. +func (c *EntityTypeHistoryClient) Create() *EntityTypeHistoryCreate { + mutation := newEntityTypeHistoryMutation(c.config, OpCreate) + return &EntityTypeHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of FeatureHistory entities. -func (c *FeatureHistoryClient) CreateBulk(builders ...*FeatureHistoryCreate) *FeatureHistoryCreateBulk { - return &FeatureHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of EntityTypeHistory entities. +func (c *EntityTypeHistoryClient) CreateBulk(builders ...*EntityTypeHistoryCreate) *EntityTypeHistoryCreateBulk { + return &EntityTypeHistoryCreateBulk{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 *FeatureHistoryClient) MapCreateBulk(slice any, setFunc func(*FeatureHistoryCreate, int)) *FeatureHistoryCreateBulk { +func (c *EntityTypeHistoryClient) MapCreateBulk(slice any, setFunc func(*EntityTypeHistoryCreate, int)) *EntityTypeHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &FeatureHistoryCreateBulk{err: fmt.Errorf("calling to FeatureHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &EntityTypeHistoryCreateBulk{err: fmt.Errorf("calling to EntityTypeHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*FeatureHistoryCreate, rv.Len()) + builders := make([]*EntityTypeHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &FeatureHistoryCreateBulk{config: c.config, builders: builders} + return &EntityTypeHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for FeatureHistory. -func (c *FeatureHistoryClient) Update() *FeatureHistoryUpdate { - mutation := newFeatureHistoryMutation(c.config, OpUpdate) - return &FeatureHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for EntityTypeHistory. +func (c *EntityTypeHistoryClient) Update() *EntityTypeHistoryUpdate { + mutation := newEntityTypeHistoryMutation(c.config, OpUpdate) + return &EntityTypeHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *FeatureHistoryClient) UpdateOne(fh *FeatureHistory) *FeatureHistoryUpdateOne { - mutation := newFeatureHistoryMutation(c.config, OpUpdateOne, withFeatureHistory(fh)) - return &FeatureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntityTypeHistoryClient) UpdateOne(eth *EntityTypeHistory) *EntityTypeHistoryUpdateOne { + mutation := newEntityTypeHistoryMutation(c.config, OpUpdateOne, withEntityTypeHistory(eth)) + return &EntityTypeHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *FeatureHistoryClient) UpdateOneID(id string) *FeatureHistoryUpdateOne { - mutation := newFeatureHistoryMutation(c.config, OpUpdateOne, withFeatureHistoryID(id)) - return &FeatureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EntityTypeHistoryClient) UpdateOneID(id string) *EntityTypeHistoryUpdateOne { + mutation := newEntityTypeHistoryMutation(c.config, OpUpdateOne, withEntityTypeHistoryID(id)) + return &EntityTypeHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for FeatureHistory. -func (c *FeatureHistoryClient) Delete() *FeatureHistoryDelete { - mutation := newFeatureHistoryMutation(c.config, OpDelete) - return &FeatureHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for EntityTypeHistory. +func (c *EntityTypeHistoryClient) Delete() *EntityTypeHistoryDelete { + mutation := newEntityTypeHistoryMutation(c.config, OpDelete) + return &EntityTypeHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *FeatureHistoryClient) DeleteOne(fh *FeatureHistory) *FeatureHistoryDeleteOne { - return c.DeleteOneID(fh.ID) +func (c *EntityTypeHistoryClient) DeleteOne(eth *EntityTypeHistory) *EntityTypeHistoryDeleteOne { + return c.DeleteOneID(eth.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *FeatureHistoryClient) DeleteOneID(id string) *FeatureHistoryDeleteOne { - builder := c.Delete().Where(featurehistory.ID(id)) +func (c *EntityTypeHistoryClient) DeleteOneID(id string) *EntityTypeHistoryDeleteOne { + builder := c.Delete().Where(entitytypehistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &FeatureHistoryDeleteOne{builder} + return &EntityTypeHistoryDeleteOne{builder} } -// Query returns a query builder for FeatureHistory. -func (c *FeatureHistoryClient) Query() *FeatureHistoryQuery { - return &FeatureHistoryQuery{ +// Query returns a query builder for EntityTypeHistory. +func (c *EntityTypeHistoryClient) Query() *EntityTypeHistoryQuery { + return &EntityTypeHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeFeatureHistory}, + ctx: &QueryContext{Type: TypeEntityTypeHistory}, inters: c.Interceptors(), } } -// Get returns a FeatureHistory entity by its id. -func (c *FeatureHistoryClient) Get(ctx context.Context, id string) (*FeatureHistory, error) { - return c.Query().Where(featurehistory.ID(id)).Only(ctx) +// Get returns a EntityTypeHistory entity by its id. +func (c *EntityTypeHistoryClient) Get(ctx context.Context, id string) (*EntityTypeHistory, error) { + return c.Query().Where(entitytypehistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *FeatureHistoryClient) GetX(ctx context.Context, id string) *FeatureHistory { +func (c *EntityTypeHistoryClient) GetX(ctx context.Context, id string) *EntityTypeHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -4473,133 +4835,133 @@ func (c *FeatureHistoryClient) GetX(ctx context.Context, id string) *FeatureHist } // Hooks returns the client hooks. -func (c *FeatureHistoryClient) Hooks() []Hook { - hooks := c.hooks.FeatureHistory - return append(hooks[:len(hooks):len(hooks)], featurehistory.Hooks[:]...) +func (c *EntityTypeHistoryClient) Hooks() []Hook { + hooks := c.hooks.EntityTypeHistory + return append(hooks[:len(hooks):len(hooks)], entitytypehistory.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *FeatureHistoryClient) Interceptors() []Interceptor { - inters := c.inters.FeatureHistory - return append(inters[:len(inters):len(inters)], featurehistory.Interceptors[:]...) +func (c *EntityTypeHistoryClient) Interceptors() []Interceptor { + inters := c.inters.EntityTypeHistory + return append(inters[:len(inters):len(inters)], entitytypehistory.Interceptors[:]...) } -func (c *FeatureHistoryClient) mutate(ctx context.Context, m *FeatureHistoryMutation) (Value, error) { +func (c *EntityTypeHistoryClient) mutate(ctx context.Context, m *EntityTypeHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&FeatureHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntityTypeHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&FeatureHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntityTypeHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&FeatureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EntityTypeHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&FeatureHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&EntityTypeHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown FeatureHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown EntityTypeHistory mutation op: %q", m.Op()) } } -// FileClient is a client for the File schema. -type FileClient struct { +// EventClient is a client for the Event schema. +type EventClient struct { config } -// NewFileClient returns a client for the File from the given config. -func NewFileClient(c config) *FileClient { - return &FileClient{config: c} +// NewEventClient returns a client for the Event from the given config. +func NewEventClient(c config) *EventClient { + return &EventClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `file.Hooks(f(g(h())))`. -func (c *FileClient) Use(hooks ...Hook) { - c.hooks.File = append(c.hooks.File, hooks...) +// A call to `Use(f, g, h)` equals to `event.Hooks(f(g(h())))`. +func (c *EventClient) Use(hooks ...Hook) { + c.hooks.Event = append(c.hooks.Event, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `file.Intercept(f(g(h())))`. -func (c *FileClient) Intercept(interceptors ...Interceptor) { - c.inters.File = append(c.inters.File, interceptors...) +// A call to `Intercept(f, g, h)` equals to `event.Intercept(f(g(h())))`. +func (c *EventClient) Intercept(interceptors ...Interceptor) { + c.inters.Event = append(c.inters.Event, interceptors...) } -// Create returns a builder for creating a File entity. -func (c *FileClient) Create() *FileCreate { - mutation := newFileMutation(c.config, OpCreate) - return &FileCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a Event entity. +func (c *EventClient) Create() *EventCreate { + mutation := newEventMutation(c.config, OpCreate) + return &EventCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of File entities. -func (c *FileClient) CreateBulk(builders ...*FileCreate) *FileCreateBulk { - return &FileCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of Event entities. +func (c *EventClient) CreateBulk(builders ...*EventCreate) *EventCreateBulk { + return &EventCreateBulk{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 *FileClient) MapCreateBulk(slice any, setFunc func(*FileCreate, int)) *FileCreateBulk { +func (c *EventClient) MapCreateBulk(slice any, setFunc func(*EventCreate, int)) *EventCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &FileCreateBulk{err: fmt.Errorf("calling to FileClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &EventCreateBulk{err: fmt.Errorf("calling to EventClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*FileCreate, rv.Len()) + builders := make([]*EventCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &FileCreateBulk{config: c.config, builders: builders} + return &EventCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for File. -func (c *FileClient) Update() *FileUpdate { - mutation := newFileMutation(c.config, OpUpdate) - return &FileUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for Event. +func (c *EventClient) Update() *EventUpdate { + mutation := newEventMutation(c.config, OpUpdate) + return &EventUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *FileClient) UpdateOne(f *File) *FileUpdateOne { - mutation := newFileMutation(c.config, OpUpdateOne, withFile(f)) - return &FileUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EventClient) UpdateOne(e *Event) *EventUpdateOne { + mutation := newEventMutation(c.config, OpUpdateOne, withEvent(e)) + return &EventUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *FileClient) UpdateOneID(id string) *FileUpdateOne { - mutation := newFileMutation(c.config, OpUpdateOne, withFileID(id)) - return &FileUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EventClient) UpdateOneID(id string) *EventUpdateOne { + mutation := newEventMutation(c.config, OpUpdateOne, withEventID(id)) + return &EventUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for File. -func (c *FileClient) Delete() *FileDelete { - mutation := newFileMutation(c.config, OpDelete) - return &FileDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for Event. +func (c *EventClient) Delete() *EventDelete { + mutation := newEventMutation(c.config, OpDelete) + return &EventDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *FileClient) DeleteOne(f *File) *FileDeleteOne { - return c.DeleteOneID(f.ID) +func (c *EventClient) DeleteOne(e *Event) *EventDeleteOne { + return c.DeleteOneID(e.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *FileClient) DeleteOneID(id string) *FileDeleteOne { - builder := c.Delete().Where(file.ID(id)) +func (c *EventClient) DeleteOneID(id string) *EventDeleteOne { + builder := c.Delete().Where(event.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &FileDeleteOne{builder} + return &EventDeleteOne{builder} } -// Query returns a query builder for File. -func (c *FileClient) Query() *FileQuery { - return &FileQuery{ +// Query returns a query builder for Event. +func (c *EventClient) Query() *EventQuery { + return &EventQuery{ config: c.config, - ctx: &QueryContext{Type: TypeFile}, + ctx: &QueryContext{Type: TypeEvent}, inters: c.Interceptors(), } } -// Get returns a File entity by its id. -func (c *FileClient) Get(ctx context.Context, id string) (*File, error) { - return c.Query().Where(file.ID(id)).Only(ctx) +// Get returns a Event entity by its id. +func (c *EventClient) Get(ctx context.Context, id string) (*Event, error) { + return c.Query().Where(event.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *FileClient) GetX(ctx context.Context, id string) *File { +func (c *EventClient) GetX(ctx context.Context, id string) *Event { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -4607,324 +4969,456 @@ func (c *FileClient) GetX(ctx context.Context, id string) *File { return obj } -// QueryUser queries the user edge of a File. -func (c *FileClient) QueryUser(f *File) *UserQuery { +// QueryUser queries the user edge of a Event. +func (c *EventClient) QueryUser(e *Event) *UserQuery { query := (&UserClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID + id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(file.Table, file.FieldID, id), + sqlgraph.From(event.Table, event.FieldID, id), sqlgraph.To(user.Table, user.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, file.UserTable, file.UserPrimaryKey...), + sqlgraph.Edge(sqlgraph.M2M, true, event.UserTable, event.UserPrimaryKey...), ) - schemaConfig := f.schemaConfig + schemaConfig := e.schemaConfig step.To.Schema = schemaConfig.User - step.Edge.Schema = schemaConfig.UserFiles - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryOrganization queries the organization edge of a File. -func (c *FileClient) QueryOrganization(f *File) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID - step := sqlgraph.NewStep( - sqlgraph.From(file.Table, file.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, file.OrganizationTable, file.OrganizationPrimaryKey...), - ) - schemaConfig := f.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.OrganizationFiles - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.UserEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryGroup queries the group edge of a File. -func (c *FileClient) QueryGroup(f *File) *GroupQuery { +// QueryGroup queries the group edge of a Event. +func (c *EventClient) QueryGroup(e *Event) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID + id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(file.Table, file.FieldID, id), + sqlgraph.From(event.Table, event.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, file.GroupTable, file.GroupPrimaryKey...), + sqlgraph.Edge(sqlgraph.M2M, true, event.GroupTable, event.GroupPrimaryKey...), ) - schemaConfig := f.schemaConfig + schemaConfig := e.schemaConfig step.To.Schema = schemaConfig.Group - step.Edge.Schema = schemaConfig.GroupFiles - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.GroupEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryContact queries the contact edge of a File. -func (c *FileClient) QueryContact(f *File) *ContactQuery { - query := (&ContactClient{config: c.config}).Query() +// QueryIntegration queries the integration edge of a Event. +func (c *EventClient) QueryIntegration(e *Event) *IntegrationQuery { + query := (&IntegrationClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID + id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(file.Table, file.FieldID, id), - sqlgraph.To(contact.Table, contact.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, file.ContactTable, file.ContactPrimaryKey...), + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(integration.Table, integration.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.IntegrationTable, event.IntegrationPrimaryKey...), ) - schemaConfig := f.schemaConfig - step.To.Schema = schemaConfig.Contact - step.Edge.Schema = schemaConfig.ContactFiles - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.Integration + step.Edge.Schema = schemaConfig.IntegrationEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryEntity queries the entity edge of a File. -func (c *FileClient) QueryEntity(f *File) *EntityQuery { - query := (&EntityClient{config: c.config}).Query() +// QueryOrganization queries the organization edge of a Event. +func (c *EventClient) QueryOrganization(e *Event) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID + id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(file.Table, file.FieldID, id), - sqlgraph.To(entity.Table, entity.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, file.EntityTable, file.EntityPrimaryKey...), + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.OrganizationTable, event.OrganizationPrimaryKey...), ) - schemaConfig := f.schemaConfig - step.To.Schema = schemaConfig.Entity - step.Edge.Schema = schemaConfig.EntityFiles - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.OrganizationEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryUsersetting queries the usersetting edge of a File. -func (c *FileClient) QueryUsersetting(f *File) *UserSettingQuery { - query := (&UserSettingClient{config: c.config}).Query() +// QueryInvite queries the invite edge of a Event. +func (c *EventClient) QueryInvite(e *Event) *InviteQuery { + query := (&InviteClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID + id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(file.Table, file.FieldID, id), - sqlgraph.To(usersetting.Table, usersetting.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, file.UsersettingTable, file.UsersettingPrimaryKey...), + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(invite.Table, invite.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.InviteTable, event.InvitePrimaryKey...), ) - schemaConfig := f.schemaConfig - step.To.Schema = schemaConfig.UserSetting - step.Edge.Schema = schemaConfig.UserSettingFiles - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.Invite + step.Edge.Schema = schemaConfig.InviteEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryOrganizationsetting queries the organizationsetting edge of a File. -func (c *FileClient) QueryOrganizationsetting(f *File) *OrganizationSettingQuery { - query := (&OrganizationSettingClient{config: c.config}).Query() +// QueryFeature queries the feature edge of a Event. +func (c *EventClient) QueryFeature(e *Event) *FeatureQuery { + query := (&FeatureClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID + id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(file.Table, file.FieldID, id), - sqlgraph.To(organizationsetting.Table, organizationsetting.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, file.OrganizationsettingTable, file.OrganizationsettingPrimaryKey...), + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(feature.Table, feature.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.FeatureTable, event.FeaturePrimaryKey...), ) - schemaConfig := f.schemaConfig - step.To.Schema = schemaConfig.OrganizationSetting - step.Edge.Schema = schemaConfig.OrganizationSettingFiles - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.Feature + step.Edge.Schema = schemaConfig.FeatureEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryTemplate queries the template edge of a File. -func (c *FileClient) QueryTemplate(f *File) *TemplateQuery { - query := (&TemplateClient{config: c.config}).Query() +// QueryEntitlementplan queries the entitlementplan edge of a Event. +func (c *EventClient) QueryEntitlementplan(e *Event) *EntitlementPlanQuery { + query := (&EntitlementPlanClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID + id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(file.Table, file.FieldID, id), - sqlgraph.To(template.Table, template.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, file.TemplateTable, file.TemplatePrimaryKey...), + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(entitlementplan.Table, entitlementplan.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.EntitlementplanTable, event.EntitlementplanPrimaryKey...), ) - schemaConfig := f.schemaConfig - step.To.Schema = schemaConfig.Template - step.Edge.Schema = schemaConfig.TemplateFiles - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.EntitlementPlan + step.Edge.Schema = schemaConfig.EntitlementPlanEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryDocumentdata queries the documentdata edge of a File. -func (c *FileClient) QueryDocumentdata(f *File) *DocumentDataQuery { - query := (&DocumentDataClient{config: c.config}).Query() +// QueryEntitlementplanfeature queries the entitlementplanfeature edge of a Event. +func (c *EventClient) QueryEntitlementplanfeature(e *Event) *EntitlementPlanFeatureQuery { + query := (&EntitlementPlanFeatureClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID + id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(file.Table, file.FieldID, id), - sqlgraph.To(documentdata.Table, documentdata.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, file.DocumentdataTable, file.DocumentdataPrimaryKey...), + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(entitlementplanfeature.Table, entitlementplanfeature.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.EntitlementplanfeatureTable, event.EntitlementplanfeaturePrimaryKey...), ) - schemaConfig := f.schemaConfig - step.To.Schema = schemaConfig.DocumentData - step.Edge.Schema = schemaConfig.DocumentDataFiles - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.EntitlementPlanFeature + step.Edge.Schema = schemaConfig.EntitlementPlanFeatureEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } -// QueryEvents queries the events edge of a File. -func (c *FileClient) QueryEvents(f *File) *EventQuery { - query := (&EventClient{config: c.config}).Query() +// QueryPersonalAccessToken queries the personal_access_token edge of a Event. +func (c *EventClient) QueryPersonalAccessToken(e *Event) *PersonalAccessTokenQuery { + query := (&PersonalAccessTokenClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := f.ID + id := e.ID step := sqlgraph.NewStep( - sqlgraph.From(file.Table, file.FieldID, id), - sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, file.EventsTable, file.EventsPrimaryKey...), + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(personalaccesstoken.Table, personalaccesstoken.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.PersonalAccessTokenTable, event.PersonalAccessTokenPrimaryKey...), ) - schemaConfig := f.schemaConfig - step.To.Schema = schemaConfig.Event + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.PersonalAccessToken + step.Edge.Schema = schemaConfig.PersonalAccessTokenEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryOauth2token queries the oauth2token edge of a Event. +func (c *EventClient) QueryOauth2token(e *Event) *OhAuthTooTokenQuery { + query := (&OhAuthTooTokenClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := e.ID + step := sqlgraph.NewStep( + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(ohauthtootoken.Table, ohauthtootoken.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.Oauth2tokenTable, event.Oauth2tokenPrimaryKey...), + ) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.OhAuthTooToken + step.Edge.Schema = schemaConfig.OhAuthTooTokenEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryHush queries the hush edge of a Event. +func (c *EventClient) QueryHush(e *Event) *HushQuery { + query := (&HushClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := e.ID + step := sqlgraph.NewStep( + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(hush.Table, hush.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.HushTable, event.HushPrimaryKey...), + ) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.Hush + step.Edge.Schema = schemaConfig.HushEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryOrgmembership queries the orgmembership edge of a Event. +func (c *EventClient) QueryOrgmembership(e *Event) *OrgMembershipQuery { + query := (&OrgMembershipClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := e.ID + step := sqlgraph.NewStep( + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(orgmembership.Table, orgmembership.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.OrgmembershipTable, event.OrgmembershipPrimaryKey...), + ) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.OrgMembership + step.Edge.Schema = schemaConfig.OrgMembershipEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryGroupmembership queries the groupmembership edge of a Event. +func (c *EventClient) QueryGroupmembership(e *Event) *GroupMembershipQuery { + query := (&GroupMembershipClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := e.ID + step := sqlgraph.NewStep( + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(groupmembership.Table, groupmembership.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.GroupmembershipTable, event.GroupmembershipPrimaryKey...), + ) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.GroupMembership + step.Edge.Schema = schemaConfig.GroupMembershipEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEntitlement queries the entitlement edge of a Event. +func (c *EventClient) QueryEntitlement(e *Event) *EntitlementQuery { + query := (&EntitlementClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := e.ID + step := sqlgraph.NewStep( + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(entitlement.Table, entitlement.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.EntitlementTable, event.EntitlementPrimaryKey...), + ) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.Entitlement + step.Edge.Schema = schemaConfig.EntitlementEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryWebhook queries the webhook edge of a Event. +func (c *EventClient) QueryWebhook(e *Event) *WebhookQuery { + query := (&WebhookClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := e.ID + step := sqlgraph.NewStep( + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(webhook.Table, webhook.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.WebhookTable, event.WebhookPrimaryKey...), + ) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.Webhook + step.Edge.Schema = schemaConfig.WebhookEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QuerySubscriber queries the subscriber edge of a Event. +func (c *EventClient) QuerySubscriber(e *Event) *SubscriberQuery { + query := (&SubscriberClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := e.ID + step := sqlgraph.NewStep( + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(subscriber.Table, subscriber.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.SubscriberTable, event.SubscriberPrimaryKey...), + ) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.Subscriber + step.Edge.Schema = schemaConfig.SubscriberEvents + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryFile queries the file edge of a Event. +func (c *EventClient) QueryFile(e *Event) *FileQuery { + query := (&FileClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := e.ID + step := sqlgraph.NewStep( + sqlgraph.From(event.Table, event.FieldID, id), + sqlgraph.To(file.Table, file.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, event.FileTable, event.FilePrimaryKey...), + ) + schemaConfig := e.schemaConfig + step.To.Schema = schemaConfig.File step.Edge.Schema = schemaConfig.FileEvents - fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + fromV = sqlgraph.Neighbors(e.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *FileClient) Hooks() []Hook { - hooks := c.hooks.File - return append(hooks[:len(hooks):len(hooks)], file.Hooks[:]...) +func (c *EventClient) Hooks() []Hook { + hooks := c.hooks.Event + return append(hooks[:len(hooks):len(hooks)], event.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *FileClient) Interceptors() []Interceptor { - inters := c.inters.File - return append(inters[:len(inters):len(inters)], file.Interceptors[:]...) +func (c *EventClient) Interceptors() []Interceptor { + return c.inters.Event } -func (c *FileClient) mutate(ctx context.Context, m *FileMutation) (Value, error) { +func (c *EventClient) mutate(ctx context.Context, m *EventMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&FileCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EventCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&FileUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EventUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&FileUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EventUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&FileDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&EventDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown File mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown Event mutation op: %q", m.Op()) } } -// FileHistoryClient is a client for the FileHistory schema. -type FileHistoryClient struct { +// EventHistoryClient is a client for the EventHistory schema. +type EventHistoryClient struct { config } -// NewFileHistoryClient returns a client for the FileHistory from the given config. -func NewFileHistoryClient(c config) *FileHistoryClient { - return &FileHistoryClient{config: c} +// NewEventHistoryClient returns a client for the EventHistory from the given config. +func NewEventHistoryClient(c config) *EventHistoryClient { + return &EventHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `filehistory.Hooks(f(g(h())))`. -func (c *FileHistoryClient) Use(hooks ...Hook) { - c.hooks.FileHistory = append(c.hooks.FileHistory, hooks...) +// A call to `Use(f, g, h)` equals to `eventhistory.Hooks(f(g(h())))`. +func (c *EventHistoryClient) Use(hooks ...Hook) { + c.hooks.EventHistory = append(c.hooks.EventHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `filehistory.Intercept(f(g(h())))`. -func (c *FileHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.FileHistory = append(c.inters.FileHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `eventhistory.Intercept(f(g(h())))`. +func (c *EventHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.EventHistory = append(c.inters.EventHistory, interceptors...) } -// Create returns a builder for creating a FileHistory entity. -func (c *FileHistoryClient) Create() *FileHistoryCreate { - mutation := newFileHistoryMutation(c.config, OpCreate) - return &FileHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a EventHistory entity. +func (c *EventHistoryClient) Create() *EventHistoryCreate { + mutation := newEventHistoryMutation(c.config, OpCreate) + return &EventHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of FileHistory entities. -func (c *FileHistoryClient) CreateBulk(builders ...*FileHistoryCreate) *FileHistoryCreateBulk { - return &FileHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of EventHistory entities. +func (c *EventHistoryClient) CreateBulk(builders ...*EventHistoryCreate) *EventHistoryCreateBulk { + return &EventHistoryCreateBulk{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 *FileHistoryClient) MapCreateBulk(slice any, setFunc func(*FileHistoryCreate, int)) *FileHistoryCreateBulk { +func (c *EventHistoryClient) MapCreateBulk(slice any, setFunc func(*EventHistoryCreate, int)) *EventHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &FileHistoryCreateBulk{err: fmt.Errorf("calling to FileHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &EventHistoryCreateBulk{err: fmt.Errorf("calling to EventHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*FileHistoryCreate, rv.Len()) + builders := make([]*EventHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &FileHistoryCreateBulk{config: c.config, builders: builders} + return &EventHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for FileHistory. -func (c *FileHistoryClient) Update() *FileHistoryUpdate { - mutation := newFileHistoryMutation(c.config, OpUpdate) - return &FileHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for EventHistory. +func (c *EventHistoryClient) Update() *EventHistoryUpdate { + mutation := newEventHistoryMutation(c.config, OpUpdate) + return &EventHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *FileHistoryClient) UpdateOne(fh *FileHistory) *FileHistoryUpdateOne { - mutation := newFileHistoryMutation(c.config, OpUpdateOne, withFileHistory(fh)) - return &FileHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EventHistoryClient) UpdateOne(eh *EventHistory) *EventHistoryUpdateOne { + mutation := newEventHistoryMutation(c.config, OpUpdateOne, withEventHistory(eh)) + return &EventHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *FileHistoryClient) UpdateOneID(id string) *FileHistoryUpdateOne { - mutation := newFileHistoryMutation(c.config, OpUpdateOne, withFileHistoryID(id)) - return &FileHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *EventHistoryClient) UpdateOneID(id string) *EventHistoryUpdateOne { + mutation := newEventHistoryMutation(c.config, OpUpdateOne, withEventHistoryID(id)) + return &EventHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for FileHistory. -func (c *FileHistoryClient) Delete() *FileHistoryDelete { - mutation := newFileHistoryMutation(c.config, OpDelete) - return &FileHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for EventHistory. +func (c *EventHistoryClient) Delete() *EventHistoryDelete { + mutation := newEventHistoryMutation(c.config, OpDelete) + return &EventHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *FileHistoryClient) DeleteOne(fh *FileHistory) *FileHistoryDeleteOne { - return c.DeleteOneID(fh.ID) +func (c *EventHistoryClient) DeleteOne(eh *EventHistory) *EventHistoryDeleteOne { + return c.DeleteOneID(eh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *FileHistoryClient) DeleteOneID(id string) *FileHistoryDeleteOne { - builder := c.Delete().Where(filehistory.ID(id)) +func (c *EventHistoryClient) DeleteOneID(id string) *EventHistoryDeleteOne { + builder := c.Delete().Where(eventhistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &FileHistoryDeleteOne{builder} + return &EventHistoryDeleteOne{builder} } -// Query returns a query builder for FileHistory. -func (c *FileHistoryClient) Query() *FileHistoryQuery { - return &FileHistoryQuery{ +// Query returns a query builder for EventHistory. +func (c *EventHistoryClient) Query() *EventHistoryQuery { + return &EventHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeFileHistory}, + ctx: &QueryContext{Type: TypeEventHistory}, inters: c.Interceptors(), } } -// Get returns a FileHistory entity by its id. -func (c *FileHistoryClient) Get(ctx context.Context, id string) (*FileHistory, error) { - return c.Query().Where(filehistory.ID(id)).Only(ctx) +// Get returns a EventHistory entity by its id. +func (c *EventHistoryClient) Get(ctx context.Context, id string) (*EventHistory, error) { + return c.Query().Where(eventhistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *FileHistoryClient) GetX(ctx context.Context, id string) *FileHistory { +func (c *EventHistoryClient) GetX(ctx context.Context, id string) *EventHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -4933,133 +5427,131 @@ func (c *FileHistoryClient) GetX(ctx context.Context, id string) *FileHistory { } // Hooks returns the client hooks. -func (c *FileHistoryClient) Hooks() []Hook { - hooks := c.hooks.FileHistory - return append(hooks[:len(hooks):len(hooks)], filehistory.Hooks[:]...) +func (c *EventHistoryClient) Hooks() []Hook { + return c.hooks.EventHistory } // Interceptors returns the client interceptors. -func (c *FileHistoryClient) Interceptors() []Interceptor { - inters := c.inters.FileHistory - return append(inters[:len(inters):len(inters)], filehistory.Interceptors[:]...) +func (c *EventHistoryClient) Interceptors() []Interceptor { + return c.inters.EventHistory } -func (c *FileHistoryClient) mutate(ctx context.Context, m *FileHistoryMutation) (Value, error) { +func (c *EventHistoryClient) mutate(ctx context.Context, m *EventHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&FileHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EventHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&FileHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EventHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&FileHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&EventHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&FileHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&EventHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown FileHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown EventHistory mutation op: %q", m.Op()) } } -// GroupClient is a client for the Group schema. -type GroupClient struct { +// FeatureClient is a client for the Feature schema. +type FeatureClient struct { config } -// NewGroupClient returns a client for the Group from the given config. -func NewGroupClient(c config) *GroupClient { - return &GroupClient{config: c} +// NewFeatureClient returns a client for the Feature from the given config. +func NewFeatureClient(c config) *FeatureClient { + return &FeatureClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `group.Hooks(f(g(h())))`. -func (c *GroupClient) Use(hooks ...Hook) { - c.hooks.Group = append(c.hooks.Group, hooks...) +// A call to `Use(f, g, h)` equals to `feature.Hooks(f(g(h())))`. +func (c *FeatureClient) Use(hooks ...Hook) { + c.hooks.Feature = append(c.hooks.Feature, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. -func (c *GroupClient) Intercept(interceptors ...Interceptor) { - c.inters.Group = append(c.inters.Group, interceptors...) +// A call to `Intercept(f, g, h)` equals to `feature.Intercept(f(g(h())))`. +func (c *FeatureClient) Intercept(interceptors ...Interceptor) { + c.inters.Feature = append(c.inters.Feature, interceptors...) } -// Create returns a builder for creating a Group entity. -func (c *GroupClient) Create() *GroupCreate { - mutation := newGroupMutation(c.config, OpCreate) - return &GroupCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a Feature entity. +func (c *FeatureClient) Create() *FeatureCreate { + mutation := newFeatureMutation(c.config, OpCreate) + return &FeatureCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of Group entities. -func (c *GroupClient) CreateBulk(builders ...*GroupCreate) *GroupCreateBulk { - return &GroupCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of Feature entities. +func (c *FeatureClient) CreateBulk(builders ...*FeatureCreate) *FeatureCreateBulk { + return &FeatureCreateBulk{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 *GroupClient) MapCreateBulk(slice any, setFunc func(*GroupCreate, int)) *GroupCreateBulk { +func (c *FeatureClient) MapCreateBulk(slice any, setFunc func(*FeatureCreate, int)) *FeatureCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &GroupCreateBulk{err: fmt.Errorf("calling to GroupClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &FeatureCreateBulk{err: fmt.Errorf("calling to FeatureClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*GroupCreate, rv.Len()) + builders := make([]*FeatureCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &GroupCreateBulk{config: c.config, builders: builders} + return &FeatureCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for Group. -func (c *GroupClient) Update() *GroupUpdate { - mutation := newGroupMutation(c.config, OpUpdate) - return &GroupUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for Feature. +func (c *FeatureClient) Update() *FeatureUpdate { + mutation := newFeatureMutation(c.config, OpUpdate) + return &FeatureUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *GroupClient) UpdateOne(gr *Group) *GroupUpdateOne { - mutation := newGroupMutation(c.config, OpUpdateOne, withGroup(gr)) - return &GroupUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *FeatureClient) UpdateOne(f *Feature) *FeatureUpdateOne { + mutation := newFeatureMutation(c.config, OpUpdateOne, withFeature(f)) + return &FeatureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *GroupClient) UpdateOneID(id string) *GroupUpdateOne { - mutation := newGroupMutation(c.config, OpUpdateOne, withGroupID(id)) - return &GroupUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *FeatureClient) UpdateOneID(id string) *FeatureUpdateOne { + mutation := newFeatureMutation(c.config, OpUpdateOne, withFeatureID(id)) + return &FeatureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for Group. -func (c *GroupClient) Delete() *GroupDelete { - mutation := newGroupMutation(c.config, OpDelete) - return &GroupDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for Feature. +func (c *FeatureClient) Delete() *FeatureDelete { + mutation := newFeatureMutation(c.config, OpDelete) + return &FeatureDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { - return c.DeleteOneID(gr.ID) +func (c *FeatureClient) DeleteOne(f *Feature) *FeatureDeleteOne { + return c.DeleteOneID(f.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *GroupClient) DeleteOneID(id string) *GroupDeleteOne { - builder := c.Delete().Where(group.ID(id)) +func (c *FeatureClient) DeleteOneID(id string) *FeatureDeleteOne { + builder := c.Delete().Where(feature.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &GroupDeleteOne{builder} + return &FeatureDeleteOne{builder} } -// Query returns a query builder for Group. -func (c *GroupClient) Query() *GroupQuery { - return &GroupQuery{ +// Query returns a query builder for Feature. +func (c *FeatureClient) Query() *FeatureQuery { + return &FeatureQuery{ config: c.config, - ctx: &QueryContext{Type: TypeGroup}, + ctx: &QueryContext{Type: TypeFeature}, inters: c.Interceptors(), } } -// Get returns a Group entity by its id. -func (c *GroupClient) Get(ctx context.Context, id string) (*Group, error) { - return c.Query().Where(group.ID(id)).Only(ctx) +// Get returns a Feature entity by its id. +func (c *FeatureClient) Get(ctx context.Context, id string) (*Feature, error) { + return c.Query().Where(feature.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *GroupClient) GetX(ctx context.Context, id string) *Group { +func (c *FeatureClient) GetX(ctx context.Context, id string) *Feature { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -5067,267 +5559,210 @@ func (c *GroupClient) GetX(ctx context.Context, id string) *Group { return obj } -// QueryOwner queries the owner edge of a Group. -func (c *GroupClient) QueryOwner(gr *Group) *OrganizationQuery { +// QueryOwner queries the owner edge of a Feature. +func (c *FeatureClient) QueryOwner(f *Feature) *OrganizationQuery { query := (&OrganizationClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := gr.ID + id := f.ID step := sqlgraph.NewStep( - sqlgraph.From(group.Table, group.FieldID, id), + sqlgraph.From(feature.Table, feature.FieldID, id), sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, group.OwnerTable, group.OwnerColumn), + sqlgraph.Edge(sqlgraph.M2O, true, feature.OwnerTable, feature.OwnerColumn), ) - schemaConfig := gr.schemaConfig + schemaConfig := f.schemaConfig step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.Group - fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.Feature + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) return fromV, nil } return query } -// QuerySetting queries the setting edge of a Group. -func (c *GroupClient) QuerySetting(gr *Group) *GroupSettingQuery { - query := (&GroupSettingClient{config: c.config}).Query() +// QueryPlans queries the plans edge of a Feature. +func (c *FeatureClient) QueryPlans(f *Feature) *EntitlementPlanQuery { + query := (&EntitlementPlanClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := gr.ID + id := f.ID step := sqlgraph.NewStep( - sqlgraph.From(group.Table, group.FieldID, id), - sqlgraph.To(groupsetting.Table, groupsetting.FieldID), - sqlgraph.Edge(sqlgraph.O2O, false, group.SettingTable, group.SettingColumn), + sqlgraph.From(feature.Table, feature.FieldID, id), + sqlgraph.To(entitlementplan.Table, entitlementplan.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, feature.PlansTable, feature.PlansPrimaryKey...), ) - schemaConfig := gr.schemaConfig - step.To.Schema = schemaConfig.GroupSetting - step.Edge.Schema = schemaConfig.GroupSetting - fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) + schemaConfig := f.schemaConfig + step.To.Schema = schemaConfig.EntitlementPlan + step.Edge.Schema = schemaConfig.EntitlementPlanFeature + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) return fromV, nil } return query } -// QueryUsers queries the users edge of a Group. -func (c *GroupClient) QueryUsers(gr *Group) *UserQuery { - query := (&UserClient{config: c.config}).Query() +// QueryEvents queries the events edge of a Feature. +func (c *FeatureClient) QueryEvents(f *Feature) *EventQuery { + query := (&EventClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := gr.ID + id := f.ID step := sqlgraph.NewStep( - sqlgraph.From(group.Table, group.FieldID, id), - sqlgraph.To(user.Table, user.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, group.UsersTable, group.UsersPrimaryKey...), + sqlgraph.From(feature.Table, feature.FieldID, id), + sqlgraph.To(event.Table, event.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, feature.EventsTable, feature.EventsPrimaryKey...), ) - schemaConfig := gr.schemaConfig - step.To.Schema = schemaConfig.User - step.Edge.Schema = schemaConfig.GroupMembership - fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) + schemaConfig := f.schemaConfig + step.To.Schema = schemaConfig.Event + step.Edge.Schema = schemaConfig.FeatureEvents + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) return fromV, nil } return query } -// QueryEvents queries the events edge of a Group. -func (c *GroupClient) QueryEvents(gr *Group) *EventQuery { - query := (&EventClient{config: c.config}).Query() +// QueryFeatures queries the features edge of a Feature. +func (c *FeatureClient) QueryFeatures(f *Feature) *EntitlementPlanFeatureQuery { + query := (&EntitlementPlanFeatureClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := gr.ID + id := f.ID step := sqlgraph.NewStep( - sqlgraph.From(group.Table, group.FieldID, id), - sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, group.EventsTable, group.EventsPrimaryKey...), + sqlgraph.From(feature.Table, feature.FieldID, id), + sqlgraph.To(entitlementplanfeature.Table, entitlementplanfeature.FieldID), + sqlgraph.Edge(sqlgraph.O2M, true, feature.FeaturesTable, feature.FeaturesColumn), ) - schemaConfig := gr.schemaConfig - step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.GroupEvents - fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryIntegrations queries the integrations edge of a Group. -func (c *GroupClient) QueryIntegrations(gr *Group) *IntegrationQuery { - query := (&IntegrationClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := gr.ID - step := sqlgraph.NewStep( - sqlgraph.From(group.Table, group.FieldID, id), - sqlgraph.To(integration.Table, integration.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, group.IntegrationsTable, group.IntegrationsColumn), - ) - schemaConfig := gr.schemaConfig - step.To.Schema = schemaConfig.Integration - step.Edge.Schema = schemaConfig.Integration - fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryFiles queries the files edge of a Group. -func (c *GroupClient) QueryFiles(gr *Group) *FileQuery { - query := (&FileClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := gr.ID - step := sqlgraph.NewStep( - sqlgraph.From(group.Table, group.FieldID, id), - sqlgraph.To(file.Table, file.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, group.FilesTable, group.FilesPrimaryKey...), - ) - schemaConfig := gr.schemaConfig - step.To.Schema = schemaConfig.File - step.Edge.Schema = schemaConfig.GroupFiles - fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryMembers queries the members edge of a Group. -func (c *GroupClient) QueryMembers(gr *Group) *GroupMembershipQuery { - query := (&GroupMembershipClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := gr.ID - step := sqlgraph.NewStep( - sqlgraph.From(group.Table, group.FieldID, id), - sqlgraph.To(groupmembership.Table, groupmembership.FieldID), - sqlgraph.Edge(sqlgraph.O2M, true, group.MembersTable, group.MembersColumn), - ) - schemaConfig := gr.schemaConfig - step.To.Schema = schemaConfig.GroupMembership - step.Edge.Schema = schemaConfig.GroupMembership - fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) + schemaConfig := f.schemaConfig + step.To.Schema = schemaConfig.EntitlementPlanFeature + step.Edge.Schema = schemaConfig.EntitlementPlanFeature + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *GroupClient) Hooks() []Hook { - hooks := c.hooks.Group - return append(hooks[:len(hooks):len(hooks)], group.Hooks[:]...) +func (c *FeatureClient) Hooks() []Hook { + hooks := c.hooks.Feature + return append(hooks[:len(hooks):len(hooks)], feature.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *GroupClient) Interceptors() []Interceptor { - inters := c.inters.Group - return append(inters[:len(inters):len(inters)], group.Interceptors[:]...) +func (c *FeatureClient) Interceptors() []Interceptor { + inters := c.inters.Feature + return append(inters[:len(inters):len(inters)], feature.Interceptors[:]...) } -func (c *GroupClient) mutate(ctx context.Context, m *GroupMutation) (Value, error) { +func (c *FeatureClient) mutate(ctx context.Context, m *FeatureMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&GroupCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&FeatureCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&GroupUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&FeatureUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&GroupUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&FeatureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&GroupDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&FeatureDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown Group mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown Feature mutation op: %q", m.Op()) } } -// GroupHistoryClient is a client for the GroupHistory schema. -type GroupHistoryClient struct { +// FeatureHistoryClient is a client for the FeatureHistory schema. +type FeatureHistoryClient struct { config } -// NewGroupHistoryClient returns a client for the GroupHistory from the given config. -func NewGroupHistoryClient(c config) *GroupHistoryClient { - return &GroupHistoryClient{config: c} +// NewFeatureHistoryClient returns a client for the FeatureHistory from the given config. +func NewFeatureHistoryClient(c config) *FeatureHistoryClient { + return &FeatureHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `grouphistory.Hooks(f(g(h())))`. -func (c *GroupHistoryClient) Use(hooks ...Hook) { - c.hooks.GroupHistory = append(c.hooks.GroupHistory, hooks...) +// A call to `Use(f, g, h)` equals to `featurehistory.Hooks(f(g(h())))`. +func (c *FeatureHistoryClient) Use(hooks ...Hook) { + c.hooks.FeatureHistory = append(c.hooks.FeatureHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `grouphistory.Intercept(f(g(h())))`. -func (c *GroupHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.GroupHistory = append(c.inters.GroupHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `featurehistory.Intercept(f(g(h())))`. +func (c *FeatureHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.FeatureHistory = append(c.inters.FeatureHistory, interceptors...) } -// Create returns a builder for creating a GroupHistory entity. -func (c *GroupHistoryClient) Create() *GroupHistoryCreate { - mutation := newGroupHistoryMutation(c.config, OpCreate) - return &GroupHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a FeatureHistory entity. +func (c *FeatureHistoryClient) Create() *FeatureHistoryCreate { + mutation := newFeatureHistoryMutation(c.config, OpCreate) + return &FeatureHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of GroupHistory entities. -func (c *GroupHistoryClient) CreateBulk(builders ...*GroupHistoryCreate) *GroupHistoryCreateBulk { - return &GroupHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of FeatureHistory entities. +func (c *FeatureHistoryClient) CreateBulk(builders ...*FeatureHistoryCreate) *FeatureHistoryCreateBulk { + return &FeatureHistoryCreateBulk{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 *GroupHistoryClient) MapCreateBulk(slice any, setFunc func(*GroupHistoryCreate, int)) *GroupHistoryCreateBulk { +func (c *FeatureHistoryClient) MapCreateBulk(slice any, setFunc func(*FeatureHistoryCreate, int)) *FeatureHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &GroupHistoryCreateBulk{err: fmt.Errorf("calling to GroupHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &FeatureHistoryCreateBulk{err: fmt.Errorf("calling to FeatureHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*GroupHistoryCreate, rv.Len()) + builders := make([]*FeatureHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &GroupHistoryCreateBulk{config: c.config, builders: builders} + return &FeatureHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for GroupHistory. -func (c *GroupHistoryClient) Update() *GroupHistoryUpdate { - mutation := newGroupHistoryMutation(c.config, OpUpdate) - return &GroupHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for FeatureHistory. +func (c *FeatureHistoryClient) Update() *FeatureHistoryUpdate { + mutation := newFeatureHistoryMutation(c.config, OpUpdate) + return &FeatureHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *GroupHistoryClient) UpdateOne(gh *GroupHistory) *GroupHistoryUpdateOne { - mutation := newGroupHistoryMutation(c.config, OpUpdateOne, withGroupHistory(gh)) - return &GroupHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *FeatureHistoryClient) UpdateOne(fh *FeatureHistory) *FeatureHistoryUpdateOne { + mutation := newFeatureHistoryMutation(c.config, OpUpdateOne, withFeatureHistory(fh)) + return &FeatureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *GroupHistoryClient) UpdateOneID(id string) *GroupHistoryUpdateOne { - mutation := newGroupHistoryMutation(c.config, OpUpdateOne, withGroupHistoryID(id)) - return &GroupHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *FeatureHistoryClient) UpdateOneID(id string) *FeatureHistoryUpdateOne { + mutation := newFeatureHistoryMutation(c.config, OpUpdateOne, withFeatureHistoryID(id)) + return &FeatureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for GroupHistory. -func (c *GroupHistoryClient) Delete() *GroupHistoryDelete { - mutation := newGroupHistoryMutation(c.config, OpDelete) - return &GroupHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for FeatureHistory. +func (c *FeatureHistoryClient) Delete() *FeatureHistoryDelete { + mutation := newFeatureHistoryMutation(c.config, OpDelete) + return &FeatureHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *GroupHistoryClient) DeleteOne(gh *GroupHistory) *GroupHistoryDeleteOne { - return c.DeleteOneID(gh.ID) +func (c *FeatureHistoryClient) DeleteOne(fh *FeatureHistory) *FeatureHistoryDeleteOne { + return c.DeleteOneID(fh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *GroupHistoryClient) DeleteOneID(id string) *GroupHistoryDeleteOne { - builder := c.Delete().Where(grouphistory.ID(id)) +func (c *FeatureHistoryClient) DeleteOneID(id string) *FeatureHistoryDeleteOne { + builder := c.Delete().Where(featurehistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &GroupHistoryDeleteOne{builder} + return &FeatureHistoryDeleteOne{builder} } -// Query returns a query builder for GroupHistory. -func (c *GroupHistoryClient) Query() *GroupHistoryQuery { - return &GroupHistoryQuery{ +// Query returns a query builder for FeatureHistory. +func (c *FeatureHistoryClient) Query() *FeatureHistoryQuery { + return &FeatureHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeGroupHistory}, + ctx: &QueryContext{Type: TypeFeatureHistory}, inters: c.Interceptors(), } } -// Get returns a GroupHistory entity by its id. -func (c *GroupHistoryClient) Get(ctx context.Context, id string) (*GroupHistory, error) { - return c.Query().Where(grouphistory.ID(id)).Only(ctx) +// Get returns a FeatureHistory entity by its id. +func (c *FeatureHistoryClient) Get(ctx context.Context, id string) (*FeatureHistory, error) { + return c.Query().Where(featurehistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *GroupHistoryClient) GetX(ctx context.Context, id string) *GroupHistory { +func (c *FeatureHistoryClient) GetX(ctx context.Context, id string) *FeatureHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -5336,133 +5771,133 @@ func (c *GroupHistoryClient) GetX(ctx context.Context, id string) *GroupHistory } // Hooks returns the client hooks. -func (c *GroupHistoryClient) Hooks() []Hook { - hooks := c.hooks.GroupHistory - return append(hooks[:len(hooks):len(hooks)], grouphistory.Hooks[:]...) +func (c *FeatureHistoryClient) Hooks() []Hook { + hooks := c.hooks.FeatureHistory + return append(hooks[:len(hooks):len(hooks)], featurehistory.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *GroupHistoryClient) Interceptors() []Interceptor { - inters := c.inters.GroupHistory - return append(inters[:len(inters):len(inters)], grouphistory.Interceptors[:]...) +func (c *FeatureHistoryClient) Interceptors() []Interceptor { + inters := c.inters.FeatureHistory + return append(inters[:len(inters):len(inters)], featurehistory.Interceptors[:]...) } -func (c *GroupHistoryClient) mutate(ctx context.Context, m *GroupHistoryMutation) (Value, error) { +func (c *FeatureHistoryClient) mutate(ctx context.Context, m *FeatureHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&GroupHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&FeatureHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&GroupHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&FeatureHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&GroupHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&FeatureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&GroupHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&FeatureHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown GroupHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown FeatureHistory mutation op: %q", m.Op()) } } -// GroupMembershipClient is a client for the GroupMembership schema. -type GroupMembershipClient struct { +// FileClient is a client for the File schema. +type FileClient struct { config } -// NewGroupMembershipClient returns a client for the GroupMembership from the given config. -func NewGroupMembershipClient(c config) *GroupMembershipClient { - return &GroupMembershipClient{config: c} +// NewFileClient returns a client for the File from the given config. +func NewFileClient(c config) *FileClient { + return &FileClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `groupmembership.Hooks(f(g(h())))`. -func (c *GroupMembershipClient) Use(hooks ...Hook) { - c.hooks.GroupMembership = append(c.hooks.GroupMembership, hooks...) +// A call to `Use(f, g, h)` equals to `file.Hooks(f(g(h())))`. +func (c *FileClient) Use(hooks ...Hook) { + c.hooks.File = append(c.hooks.File, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `groupmembership.Intercept(f(g(h())))`. -func (c *GroupMembershipClient) Intercept(interceptors ...Interceptor) { - c.inters.GroupMembership = append(c.inters.GroupMembership, interceptors...) +// A call to `Intercept(f, g, h)` equals to `file.Intercept(f(g(h())))`. +func (c *FileClient) Intercept(interceptors ...Interceptor) { + c.inters.File = append(c.inters.File, interceptors...) } -// Create returns a builder for creating a GroupMembership entity. -func (c *GroupMembershipClient) Create() *GroupMembershipCreate { - mutation := newGroupMembershipMutation(c.config, OpCreate) - return &GroupMembershipCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a File entity. +func (c *FileClient) Create() *FileCreate { + mutation := newFileMutation(c.config, OpCreate) + return &FileCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of GroupMembership entities. -func (c *GroupMembershipClient) CreateBulk(builders ...*GroupMembershipCreate) *GroupMembershipCreateBulk { - return &GroupMembershipCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of File entities. +func (c *FileClient) CreateBulk(builders ...*FileCreate) *FileCreateBulk { + return &FileCreateBulk{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 *GroupMembershipClient) MapCreateBulk(slice any, setFunc func(*GroupMembershipCreate, int)) *GroupMembershipCreateBulk { +func (c *FileClient) MapCreateBulk(slice any, setFunc func(*FileCreate, int)) *FileCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &GroupMembershipCreateBulk{err: fmt.Errorf("calling to GroupMembershipClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &FileCreateBulk{err: fmt.Errorf("calling to FileClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*GroupMembershipCreate, rv.Len()) + builders := make([]*FileCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &GroupMembershipCreateBulk{config: c.config, builders: builders} + return &FileCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for GroupMembership. -func (c *GroupMembershipClient) Update() *GroupMembershipUpdate { - mutation := newGroupMembershipMutation(c.config, OpUpdate) - return &GroupMembershipUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for File. +func (c *FileClient) Update() *FileUpdate { + mutation := newFileMutation(c.config, OpUpdate) + return &FileUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *GroupMembershipClient) UpdateOne(gm *GroupMembership) *GroupMembershipUpdateOne { - mutation := newGroupMembershipMutation(c.config, OpUpdateOne, withGroupMembership(gm)) - return &GroupMembershipUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *FileClient) UpdateOne(f *File) *FileUpdateOne { + mutation := newFileMutation(c.config, OpUpdateOne, withFile(f)) + return &FileUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *GroupMembershipClient) UpdateOneID(id string) *GroupMembershipUpdateOne { - mutation := newGroupMembershipMutation(c.config, OpUpdateOne, withGroupMembershipID(id)) - return &GroupMembershipUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *FileClient) UpdateOneID(id string) *FileUpdateOne { + mutation := newFileMutation(c.config, OpUpdateOne, withFileID(id)) + return &FileUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for GroupMembership. -func (c *GroupMembershipClient) Delete() *GroupMembershipDelete { - mutation := newGroupMembershipMutation(c.config, OpDelete) - return &GroupMembershipDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for File. +func (c *FileClient) Delete() *FileDelete { + mutation := newFileMutation(c.config, OpDelete) + return &FileDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *GroupMembershipClient) DeleteOne(gm *GroupMembership) *GroupMembershipDeleteOne { - return c.DeleteOneID(gm.ID) +func (c *FileClient) DeleteOne(f *File) *FileDeleteOne { + return c.DeleteOneID(f.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *GroupMembershipClient) DeleteOneID(id string) *GroupMembershipDeleteOne { - builder := c.Delete().Where(groupmembership.ID(id)) +func (c *FileClient) DeleteOneID(id string) *FileDeleteOne { + builder := c.Delete().Where(file.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &GroupMembershipDeleteOne{builder} + return &FileDeleteOne{builder} } -// Query returns a query builder for GroupMembership. -func (c *GroupMembershipClient) Query() *GroupMembershipQuery { - return &GroupMembershipQuery{ +// Query returns a query builder for File. +func (c *FileClient) Query() *FileQuery { + return &FileQuery{ config: c.config, - ctx: &QueryContext{Type: TypeGroupMembership}, + ctx: &QueryContext{Type: TypeFile}, inters: c.Interceptors(), } } -// Get returns a GroupMembership entity by its id. -func (c *GroupMembershipClient) Get(ctx context.Context, id string) (*GroupMembership, error) { - return c.Query().Where(groupmembership.ID(id)).Only(ctx) +// Get returns a File entity by its id. +func (c *FileClient) Get(ctx context.Context, id string) (*File, error) { + return c.Query().Where(file.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *GroupMembershipClient) GetX(ctx context.Context, id string) *GroupMembership { +func (c *FileClient) GetX(ctx context.Context, id string) *File { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -5470,191 +5905,324 @@ func (c *GroupMembershipClient) GetX(ctx context.Context, id string) *GroupMembe return obj } -// QueryGroup queries the group edge of a GroupMembership. -func (c *GroupMembershipClient) QueryGroup(gm *GroupMembership) *GroupQuery { +// QueryUser queries the user edge of a File. +func (c *FileClient) QueryUser(f *File) *UserQuery { + query := (&UserClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := f.ID + step := sqlgraph.NewStep( + sqlgraph.From(file.Table, file.FieldID, id), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, file.UserTable, file.UserPrimaryKey...), + ) + schemaConfig := f.schemaConfig + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.UserFiles + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryOrganization queries the organization edge of a File. +func (c *FileClient) QueryOrganization(f *File) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := f.ID + step := sqlgraph.NewStep( + sqlgraph.From(file.Table, file.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, file.OrganizationTable, file.OrganizationPrimaryKey...), + ) + schemaConfig := f.schemaConfig + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.OrganizationFiles + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryGroup queries the group edge of a File. +func (c *FileClient) QueryGroup(f *File) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := gm.ID + id := f.ID step := sqlgraph.NewStep( - sqlgraph.From(groupmembership.Table, groupmembership.FieldID, id), + sqlgraph.From(file.Table, file.FieldID, id), sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.M2O, false, groupmembership.GroupTable, groupmembership.GroupColumn), + sqlgraph.Edge(sqlgraph.M2M, true, file.GroupTable, file.GroupPrimaryKey...), ) - schemaConfig := gm.schemaConfig + schemaConfig := f.schemaConfig step.To.Schema = schemaConfig.Group - step.Edge.Schema = schemaConfig.GroupMembership - fromV = sqlgraph.Neighbors(gm.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.GroupFiles + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) return fromV, nil } return query } -// QueryUser queries the user edge of a GroupMembership. -func (c *GroupMembershipClient) QueryUser(gm *GroupMembership) *UserQuery { - query := (&UserClient{config: c.config}).Query() +// QueryContact queries the contact edge of a File. +func (c *FileClient) QueryContact(f *File) *ContactQuery { + query := (&ContactClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := gm.ID + id := f.ID step := sqlgraph.NewStep( - sqlgraph.From(groupmembership.Table, groupmembership.FieldID, id), - sqlgraph.To(user.Table, user.FieldID), - sqlgraph.Edge(sqlgraph.M2O, false, groupmembership.UserTable, groupmembership.UserColumn), + sqlgraph.From(file.Table, file.FieldID, id), + sqlgraph.To(contact.Table, contact.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, file.ContactTable, file.ContactPrimaryKey...), ) - schemaConfig := gm.schemaConfig - step.To.Schema = schemaConfig.User - step.Edge.Schema = schemaConfig.GroupMembership - fromV = sqlgraph.Neighbors(gm.driver.Dialect(), step) + schemaConfig := f.schemaConfig + step.To.Schema = schemaConfig.Contact + step.Edge.Schema = schemaConfig.ContactFiles + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) return fromV, nil } return query } -// QueryEvents queries the events edge of a GroupMembership. -func (c *GroupMembershipClient) QueryEvents(gm *GroupMembership) *EventQuery { +// QueryEntity queries the entity edge of a File. +func (c *FileClient) QueryEntity(f *File) *EntityQuery { + query := (&EntityClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := f.ID + step := sqlgraph.NewStep( + sqlgraph.From(file.Table, file.FieldID, id), + sqlgraph.To(entity.Table, entity.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, file.EntityTable, file.EntityPrimaryKey...), + ) + schemaConfig := f.schemaConfig + step.To.Schema = schemaConfig.Entity + step.Edge.Schema = schemaConfig.EntityFiles + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryUsersetting queries the usersetting edge of a File. +func (c *FileClient) QueryUsersetting(f *File) *UserSettingQuery { + query := (&UserSettingClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := f.ID + step := sqlgraph.NewStep( + sqlgraph.From(file.Table, file.FieldID, id), + sqlgraph.To(usersetting.Table, usersetting.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, file.UsersettingTable, file.UsersettingPrimaryKey...), + ) + schemaConfig := f.schemaConfig + step.To.Schema = schemaConfig.UserSetting + step.Edge.Schema = schemaConfig.UserSettingFiles + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryOrganizationsetting queries the organizationsetting edge of a File. +func (c *FileClient) QueryOrganizationsetting(f *File) *OrganizationSettingQuery { + query := (&OrganizationSettingClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := f.ID + step := sqlgraph.NewStep( + sqlgraph.From(file.Table, file.FieldID, id), + sqlgraph.To(organizationsetting.Table, organizationsetting.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, file.OrganizationsettingTable, file.OrganizationsettingPrimaryKey...), + ) + schemaConfig := f.schemaConfig + step.To.Schema = schemaConfig.OrganizationSetting + step.Edge.Schema = schemaConfig.OrganizationSettingFiles + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTemplate queries the template edge of a File. +func (c *FileClient) QueryTemplate(f *File) *TemplateQuery { + query := (&TemplateClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := f.ID + step := sqlgraph.NewStep( + sqlgraph.From(file.Table, file.FieldID, id), + sqlgraph.To(template.Table, template.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, file.TemplateTable, file.TemplatePrimaryKey...), + ) + schemaConfig := f.schemaConfig + step.To.Schema = schemaConfig.Template + step.Edge.Schema = schemaConfig.TemplateFiles + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryDocumentdata queries the documentdata edge of a File. +func (c *FileClient) QueryDocumentdata(f *File) *DocumentDataQuery { + query := (&DocumentDataClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := f.ID + step := sqlgraph.NewStep( + sqlgraph.From(file.Table, file.FieldID, id), + sqlgraph.To(documentdata.Table, documentdata.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, file.DocumentdataTable, file.DocumentdataPrimaryKey...), + ) + schemaConfig := f.schemaConfig + step.To.Schema = schemaConfig.DocumentData + step.Edge.Schema = schemaConfig.DocumentDataFiles + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEvents queries the events edge of a File. +func (c *FileClient) QueryEvents(f *File) *EventQuery { query := (&EventClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := gm.ID + id := f.ID step := sqlgraph.NewStep( - sqlgraph.From(groupmembership.Table, groupmembership.FieldID, id), + sqlgraph.From(file.Table, file.FieldID, id), sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, groupmembership.EventsTable, groupmembership.EventsPrimaryKey...), + sqlgraph.Edge(sqlgraph.M2M, false, file.EventsTable, file.EventsPrimaryKey...), ) - schemaConfig := gm.schemaConfig + schemaConfig := f.schemaConfig step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.GroupMembershipEvents - fromV = sqlgraph.Neighbors(gm.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.FileEvents + fromV = sqlgraph.Neighbors(f.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *GroupMembershipClient) Hooks() []Hook { - hooks := c.hooks.GroupMembership - return append(hooks[:len(hooks):len(hooks)], groupmembership.Hooks[:]...) +func (c *FileClient) Hooks() []Hook { + hooks := c.hooks.File + return append(hooks[:len(hooks):len(hooks)], file.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *GroupMembershipClient) Interceptors() []Interceptor { - inters := c.inters.GroupMembership - return append(inters[:len(inters):len(inters)], groupmembership.Interceptors[:]...) +func (c *FileClient) Interceptors() []Interceptor { + inters := c.inters.File + return append(inters[:len(inters):len(inters)], file.Interceptors[:]...) } -func (c *GroupMembershipClient) mutate(ctx context.Context, m *GroupMembershipMutation) (Value, error) { +func (c *FileClient) mutate(ctx context.Context, m *FileMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&GroupMembershipCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&FileCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&GroupMembershipUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&FileUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&GroupMembershipUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&FileUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&GroupMembershipDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&FileDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown GroupMembership mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown File mutation op: %q", m.Op()) } } -// GroupMembershipHistoryClient is a client for the GroupMembershipHistory schema. -type GroupMembershipHistoryClient struct { +// FileHistoryClient is a client for the FileHistory schema. +type FileHistoryClient struct { config } -// NewGroupMembershipHistoryClient returns a client for the GroupMembershipHistory from the given config. -func NewGroupMembershipHistoryClient(c config) *GroupMembershipHistoryClient { - return &GroupMembershipHistoryClient{config: c} +// NewFileHistoryClient returns a client for the FileHistory from the given config. +func NewFileHistoryClient(c config) *FileHistoryClient { + return &FileHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `groupmembershiphistory.Hooks(f(g(h())))`. -func (c *GroupMembershipHistoryClient) Use(hooks ...Hook) { - c.hooks.GroupMembershipHistory = append(c.hooks.GroupMembershipHistory, hooks...) +// A call to `Use(f, g, h)` equals to `filehistory.Hooks(f(g(h())))`. +func (c *FileHistoryClient) Use(hooks ...Hook) { + c.hooks.FileHistory = append(c.hooks.FileHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `groupmembershiphistory.Intercept(f(g(h())))`. -func (c *GroupMembershipHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.GroupMembershipHistory = append(c.inters.GroupMembershipHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `filehistory.Intercept(f(g(h())))`. +func (c *FileHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.FileHistory = append(c.inters.FileHistory, interceptors...) } -// Create returns a builder for creating a GroupMembershipHistory entity. -func (c *GroupMembershipHistoryClient) Create() *GroupMembershipHistoryCreate { - mutation := newGroupMembershipHistoryMutation(c.config, OpCreate) - return &GroupMembershipHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a FileHistory entity. +func (c *FileHistoryClient) Create() *FileHistoryCreate { + mutation := newFileHistoryMutation(c.config, OpCreate) + return &FileHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of GroupMembershipHistory entities. -func (c *GroupMembershipHistoryClient) CreateBulk(builders ...*GroupMembershipHistoryCreate) *GroupMembershipHistoryCreateBulk { - return &GroupMembershipHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of FileHistory entities. +func (c *FileHistoryClient) CreateBulk(builders ...*FileHistoryCreate) *FileHistoryCreateBulk { + return &FileHistoryCreateBulk{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 *GroupMembershipHistoryClient) MapCreateBulk(slice any, setFunc func(*GroupMembershipHistoryCreate, int)) *GroupMembershipHistoryCreateBulk { +func (c *FileHistoryClient) MapCreateBulk(slice any, setFunc func(*FileHistoryCreate, int)) *FileHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &GroupMembershipHistoryCreateBulk{err: fmt.Errorf("calling to GroupMembershipHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &FileHistoryCreateBulk{err: fmt.Errorf("calling to FileHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*GroupMembershipHistoryCreate, rv.Len()) + builders := make([]*FileHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &GroupMembershipHistoryCreateBulk{config: c.config, builders: builders} + return &FileHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for GroupMembershipHistory. -func (c *GroupMembershipHistoryClient) Update() *GroupMembershipHistoryUpdate { - mutation := newGroupMembershipHistoryMutation(c.config, OpUpdate) - return &GroupMembershipHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for FileHistory. +func (c *FileHistoryClient) Update() *FileHistoryUpdate { + mutation := newFileHistoryMutation(c.config, OpUpdate) + return &FileHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *GroupMembershipHistoryClient) UpdateOne(gmh *GroupMembershipHistory) *GroupMembershipHistoryUpdateOne { - mutation := newGroupMembershipHistoryMutation(c.config, OpUpdateOne, withGroupMembershipHistory(gmh)) - return &GroupMembershipHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *FileHistoryClient) UpdateOne(fh *FileHistory) *FileHistoryUpdateOne { + mutation := newFileHistoryMutation(c.config, OpUpdateOne, withFileHistory(fh)) + return &FileHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *GroupMembershipHistoryClient) UpdateOneID(id string) *GroupMembershipHistoryUpdateOne { - mutation := newGroupMembershipHistoryMutation(c.config, OpUpdateOne, withGroupMembershipHistoryID(id)) - return &GroupMembershipHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *FileHistoryClient) UpdateOneID(id string) *FileHistoryUpdateOne { + mutation := newFileHistoryMutation(c.config, OpUpdateOne, withFileHistoryID(id)) + return &FileHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for GroupMembershipHistory. -func (c *GroupMembershipHistoryClient) Delete() *GroupMembershipHistoryDelete { - mutation := newGroupMembershipHistoryMutation(c.config, OpDelete) - return &GroupMembershipHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for FileHistory. +func (c *FileHistoryClient) Delete() *FileHistoryDelete { + mutation := newFileHistoryMutation(c.config, OpDelete) + return &FileHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *GroupMembershipHistoryClient) DeleteOne(gmh *GroupMembershipHistory) *GroupMembershipHistoryDeleteOne { - return c.DeleteOneID(gmh.ID) +func (c *FileHistoryClient) DeleteOne(fh *FileHistory) *FileHistoryDeleteOne { + return c.DeleteOneID(fh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *GroupMembershipHistoryClient) DeleteOneID(id string) *GroupMembershipHistoryDeleteOne { - builder := c.Delete().Where(groupmembershiphistory.ID(id)) +func (c *FileHistoryClient) DeleteOneID(id string) *FileHistoryDeleteOne { + builder := c.Delete().Where(filehistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &GroupMembershipHistoryDeleteOne{builder} + return &FileHistoryDeleteOne{builder} } -// Query returns a query builder for GroupMembershipHistory. -func (c *GroupMembershipHistoryClient) Query() *GroupMembershipHistoryQuery { - return &GroupMembershipHistoryQuery{ +// Query returns a query builder for FileHistory. +func (c *FileHistoryClient) Query() *FileHistoryQuery { + return &FileHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeGroupMembershipHistory}, + ctx: &QueryContext{Type: TypeFileHistory}, inters: c.Interceptors(), } } -// Get returns a GroupMembershipHistory entity by its id. -func (c *GroupMembershipHistoryClient) Get(ctx context.Context, id string) (*GroupMembershipHistory, error) { - return c.Query().Where(groupmembershiphistory.ID(id)).Only(ctx) +// Get returns a FileHistory entity by its id. +func (c *FileHistoryClient) Get(ctx context.Context, id string) (*FileHistory, error) { + return c.Query().Where(filehistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *GroupMembershipHistoryClient) GetX(ctx context.Context, id string) *GroupMembershipHistory { +func (c *FileHistoryClient) GetX(ctx context.Context, id string) *FileHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -5663,133 +6231,133 @@ func (c *GroupMembershipHistoryClient) GetX(ctx context.Context, id string) *Gro } // Hooks returns the client hooks. -func (c *GroupMembershipHistoryClient) Hooks() []Hook { - hooks := c.hooks.GroupMembershipHistory - return append(hooks[:len(hooks):len(hooks)], groupmembershiphistory.Hooks[:]...) +func (c *FileHistoryClient) Hooks() []Hook { + hooks := c.hooks.FileHistory + return append(hooks[:len(hooks):len(hooks)], filehistory.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *GroupMembershipHistoryClient) Interceptors() []Interceptor { - inters := c.inters.GroupMembershipHistory - return append(inters[:len(inters):len(inters)], groupmembershiphistory.Interceptors[:]...) +func (c *FileHistoryClient) Interceptors() []Interceptor { + inters := c.inters.FileHistory + return append(inters[:len(inters):len(inters)], filehistory.Interceptors[:]...) } -func (c *GroupMembershipHistoryClient) mutate(ctx context.Context, m *GroupMembershipHistoryMutation) (Value, error) { +func (c *FileHistoryClient) mutate(ctx context.Context, m *FileHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&GroupMembershipHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&FileHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&GroupMembershipHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&FileHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&GroupMembershipHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&FileHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&GroupMembershipHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&FileHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown GroupMembershipHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown FileHistory mutation op: %q", m.Op()) } } -// GroupSettingClient is a client for the GroupSetting schema. -type GroupSettingClient struct { +// GroupClient is a client for the Group schema. +type GroupClient struct { config } -// NewGroupSettingClient returns a client for the GroupSetting from the given config. -func NewGroupSettingClient(c config) *GroupSettingClient { - return &GroupSettingClient{config: c} +// NewGroupClient returns a client for the Group from the given config. +func NewGroupClient(c config) *GroupClient { + return &GroupClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `groupsetting.Hooks(f(g(h())))`. -func (c *GroupSettingClient) Use(hooks ...Hook) { - c.hooks.GroupSetting = append(c.hooks.GroupSetting, hooks...) +// A call to `Use(f, g, h)` equals to `group.Hooks(f(g(h())))`. +func (c *GroupClient) Use(hooks ...Hook) { + c.hooks.Group = append(c.hooks.Group, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `groupsetting.Intercept(f(g(h())))`. -func (c *GroupSettingClient) Intercept(interceptors ...Interceptor) { - c.inters.GroupSetting = append(c.inters.GroupSetting, interceptors...) +// A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`. +func (c *GroupClient) Intercept(interceptors ...Interceptor) { + c.inters.Group = append(c.inters.Group, interceptors...) } -// Create returns a builder for creating a GroupSetting entity. -func (c *GroupSettingClient) Create() *GroupSettingCreate { - mutation := newGroupSettingMutation(c.config, OpCreate) - return &GroupSettingCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a Group entity. +func (c *GroupClient) Create() *GroupCreate { + mutation := newGroupMutation(c.config, OpCreate) + return &GroupCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of GroupSetting entities. -func (c *GroupSettingClient) CreateBulk(builders ...*GroupSettingCreate) *GroupSettingCreateBulk { - return &GroupSettingCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of Group entities. +func (c *GroupClient) CreateBulk(builders ...*GroupCreate) *GroupCreateBulk { + return &GroupCreateBulk{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 *GroupSettingClient) MapCreateBulk(slice any, setFunc func(*GroupSettingCreate, int)) *GroupSettingCreateBulk { +func (c *GroupClient) MapCreateBulk(slice any, setFunc func(*GroupCreate, int)) *GroupCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &GroupSettingCreateBulk{err: fmt.Errorf("calling to GroupSettingClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &GroupCreateBulk{err: fmt.Errorf("calling to GroupClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*GroupSettingCreate, rv.Len()) + builders := make([]*GroupCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &GroupSettingCreateBulk{config: c.config, builders: builders} + return &GroupCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for GroupSetting. -func (c *GroupSettingClient) Update() *GroupSettingUpdate { - mutation := newGroupSettingMutation(c.config, OpUpdate) - return &GroupSettingUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for Group. +func (c *GroupClient) Update() *GroupUpdate { + mutation := newGroupMutation(c.config, OpUpdate) + return &GroupUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *GroupSettingClient) UpdateOne(gs *GroupSetting) *GroupSettingUpdateOne { - mutation := newGroupSettingMutation(c.config, OpUpdateOne, withGroupSetting(gs)) - return &GroupSettingUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *GroupClient) UpdateOne(gr *Group) *GroupUpdateOne { + mutation := newGroupMutation(c.config, OpUpdateOne, withGroup(gr)) + return &GroupUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *GroupSettingClient) UpdateOneID(id string) *GroupSettingUpdateOne { - mutation := newGroupSettingMutation(c.config, OpUpdateOne, withGroupSettingID(id)) - return &GroupSettingUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *GroupClient) UpdateOneID(id string) *GroupUpdateOne { + mutation := newGroupMutation(c.config, OpUpdateOne, withGroupID(id)) + return &GroupUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for GroupSetting. -func (c *GroupSettingClient) Delete() *GroupSettingDelete { - mutation := newGroupSettingMutation(c.config, OpDelete) - return &GroupSettingDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for Group. +func (c *GroupClient) Delete() *GroupDelete { + mutation := newGroupMutation(c.config, OpDelete) + return &GroupDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *GroupSettingClient) DeleteOne(gs *GroupSetting) *GroupSettingDeleteOne { - return c.DeleteOneID(gs.ID) +func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne { + return c.DeleteOneID(gr.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *GroupSettingClient) DeleteOneID(id string) *GroupSettingDeleteOne { - builder := c.Delete().Where(groupsetting.ID(id)) +func (c *GroupClient) DeleteOneID(id string) *GroupDeleteOne { + builder := c.Delete().Where(group.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &GroupSettingDeleteOne{builder} + return &GroupDeleteOne{builder} } -// Query returns a query builder for GroupSetting. -func (c *GroupSettingClient) Query() *GroupSettingQuery { - return &GroupSettingQuery{ +// Query returns a query builder for Group. +func (c *GroupClient) Query() *GroupQuery { + return &GroupQuery{ config: c.config, - ctx: &QueryContext{Type: TypeGroupSetting}, + ctx: &QueryContext{Type: TypeGroup}, inters: c.Interceptors(), } } -// Get returns a GroupSetting entity by its id. -func (c *GroupSettingClient) Get(ctx context.Context, id string) (*GroupSetting, error) { - return c.Query().Where(groupsetting.ID(id)).Only(ctx) +// Get returns a Group entity by its id. +func (c *GroupClient) Get(ctx context.Context, id string) (*Group, error) { + return c.Query().Where(group.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *GroupSettingClient) GetX(ctx context.Context, id string) *GroupSetting { +func (c *GroupClient) GetX(ctx context.Context, id string) *Group { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -5797,153 +6365,267 @@ func (c *GroupSettingClient) GetX(ctx context.Context, id string) *GroupSetting return obj } -// QueryGroup queries the group edge of a GroupSetting. -func (c *GroupSettingClient) QueryGroup(gs *GroupSetting) *GroupQuery { - query := (&GroupClient{config: c.config}).Query() +// QueryOwner queries the owner edge of a Group. +func (c *GroupClient) QueryOwner(gr *Group) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := gs.ID + id := gr.ID step := sqlgraph.NewStep( - sqlgraph.From(groupsetting.Table, groupsetting.FieldID, id), - sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2O, true, groupsetting.GroupTable, groupsetting.GroupColumn), + sqlgraph.From(group.Table, group.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, group.OwnerTable, group.OwnerColumn), ) - schemaConfig := gs.schemaConfig - step.To.Schema = schemaConfig.Group - step.Edge.Schema = schemaConfig.GroupSetting - fromV = sqlgraph.Neighbors(gs.driver.Dialect(), step) + schemaConfig := gr.schemaConfig + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) return fromV, nil } return query } -// Hooks returns the client hooks. -func (c *GroupSettingClient) Hooks() []Hook { - hooks := c.hooks.GroupSetting - return append(hooks[:len(hooks):len(hooks)], groupsetting.Hooks[:]...) -} - -// Interceptors returns the client interceptors. -func (c *GroupSettingClient) Interceptors() []Interceptor { - inters := c.inters.GroupSetting - return append(inters[:len(inters):len(inters)], groupsetting.Interceptors[:]...) -} - -func (c *GroupSettingClient) mutate(ctx context.Context, m *GroupSettingMutation) (Value, error) { - switch m.Op() { - case OpCreate: - return (&GroupSettingCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) +// QuerySetting queries the setting edge of a Group. +func (c *GroupClient) QuerySetting(gr *Group) *GroupSettingQuery { + query := (&GroupSettingClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := gr.ID + step := sqlgraph.NewStep( + sqlgraph.From(group.Table, group.FieldID, id), + sqlgraph.To(groupsetting.Table, groupsetting.FieldID), + sqlgraph.Edge(sqlgraph.O2O, false, group.SettingTable, group.SettingColumn), + ) + schemaConfig := gr.schemaConfig + step.To.Schema = schemaConfig.GroupSetting + step.Edge.Schema = schemaConfig.GroupSetting + fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryUsers queries the users edge of a Group. +func (c *GroupClient) QueryUsers(gr *Group) *UserQuery { + query := (&UserClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := gr.ID + step := sqlgraph.NewStep( + sqlgraph.From(group.Table, group.FieldID, id), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, group.UsersTable, group.UsersPrimaryKey...), + ) + schemaConfig := gr.schemaConfig + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.GroupMembership + fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEvents queries the events edge of a Group. +func (c *GroupClient) QueryEvents(gr *Group) *EventQuery { + query := (&EventClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := gr.ID + step := sqlgraph.NewStep( + sqlgraph.From(group.Table, group.FieldID, id), + sqlgraph.To(event.Table, event.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, group.EventsTable, group.EventsPrimaryKey...), + ) + schemaConfig := gr.schemaConfig + step.To.Schema = schemaConfig.Event + step.Edge.Schema = schemaConfig.GroupEvents + fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryIntegrations queries the integrations edge of a Group. +func (c *GroupClient) QueryIntegrations(gr *Group) *IntegrationQuery { + query := (&IntegrationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := gr.ID + step := sqlgraph.NewStep( + sqlgraph.From(group.Table, group.FieldID, id), + sqlgraph.To(integration.Table, integration.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, group.IntegrationsTable, group.IntegrationsColumn), + ) + schemaConfig := gr.schemaConfig + step.To.Schema = schemaConfig.Integration + step.Edge.Schema = schemaConfig.Integration + fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryFiles queries the files edge of a Group. +func (c *GroupClient) QueryFiles(gr *Group) *FileQuery { + query := (&FileClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := gr.ID + step := sqlgraph.NewStep( + sqlgraph.From(group.Table, group.FieldID, id), + sqlgraph.To(file.Table, file.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, group.FilesTable, group.FilesPrimaryKey...), + ) + schemaConfig := gr.schemaConfig + step.To.Schema = schemaConfig.File + step.Edge.Schema = schemaConfig.GroupFiles + fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryMembers queries the members edge of a Group. +func (c *GroupClient) QueryMembers(gr *Group) *GroupMembershipQuery { + query := (&GroupMembershipClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := gr.ID + step := sqlgraph.NewStep( + sqlgraph.From(group.Table, group.FieldID, id), + sqlgraph.To(groupmembership.Table, groupmembership.FieldID), + sqlgraph.Edge(sqlgraph.O2M, true, group.MembersTable, group.MembersColumn), + ) + schemaConfig := gr.schemaConfig + step.To.Schema = schemaConfig.GroupMembership + step.Edge.Schema = schemaConfig.GroupMembership + fromV = sqlgraph.Neighbors(gr.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// Hooks returns the client hooks. +func (c *GroupClient) Hooks() []Hook { + hooks := c.hooks.Group + return append(hooks[:len(hooks):len(hooks)], group.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *GroupClient) Interceptors() []Interceptor { + inters := c.inters.Group + return append(inters[:len(inters):len(inters)], group.Interceptors[:]...) +} + +func (c *GroupClient) mutate(ctx context.Context, m *GroupMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&GroupCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&GroupSettingUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&GroupSettingUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&GroupSettingDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&GroupDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown GroupSetting mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown Group mutation op: %q", m.Op()) } } -// GroupSettingHistoryClient is a client for the GroupSettingHistory schema. -type GroupSettingHistoryClient struct { +// GroupHistoryClient is a client for the GroupHistory schema. +type GroupHistoryClient struct { config } -// NewGroupSettingHistoryClient returns a client for the GroupSettingHistory from the given config. -func NewGroupSettingHistoryClient(c config) *GroupSettingHistoryClient { - return &GroupSettingHistoryClient{config: c} +// NewGroupHistoryClient returns a client for the GroupHistory from the given config. +func NewGroupHistoryClient(c config) *GroupHistoryClient { + return &GroupHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `groupsettinghistory.Hooks(f(g(h())))`. -func (c *GroupSettingHistoryClient) Use(hooks ...Hook) { - c.hooks.GroupSettingHistory = append(c.hooks.GroupSettingHistory, hooks...) +// A call to `Use(f, g, h)` equals to `grouphistory.Hooks(f(g(h())))`. +func (c *GroupHistoryClient) Use(hooks ...Hook) { + c.hooks.GroupHistory = append(c.hooks.GroupHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `groupsettinghistory.Intercept(f(g(h())))`. -func (c *GroupSettingHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.GroupSettingHistory = append(c.inters.GroupSettingHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `grouphistory.Intercept(f(g(h())))`. +func (c *GroupHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.GroupHistory = append(c.inters.GroupHistory, interceptors...) } -// Create returns a builder for creating a GroupSettingHistory entity. -func (c *GroupSettingHistoryClient) Create() *GroupSettingHistoryCreate { - mutation := newGroupSettingHistoryMutation(c.config, OpCreate) - return &GroupSettingHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a GroupHistory entity. +func (c *GroupHistoryClient) Create() *GroupHistoryCreate { + mutation := newGroupHistoryMutation(c.config, OpCreate) + return &GroupHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of GroupSettingHistory entities. -func (c *GroupSettingHistoryClient) CreateBulk(builders ...*GroupSettingHistoryCreate) *GroupSettingHistoryCreateBulk { - return &GroupSettingHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of GroupHistory entities. +func (c *GroupHistoryClient) CreateBulk(builders ...*GroupHistoryCreate) *GroupHistoryCreateBulk { + return &GroupHistoryCreateBulk{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 *GroupSettingHistoryClient) MapCreateBulk(slice any, setFunc func(*GroupSettingHistoryCreate, int)) *GroupSettingHistoryCreateBulk { +func (c *GroupHistoryClient) MapCreateBulk(slice any, setFunc func(*GroupHistoryCreate, int)) *GroupHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &GroupSettingHistoryCreateBulk{err: fmt.Errorf("calling to GroupSettingHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &GroupHistoryCreateBulk{err: fmt.Errorf("calling to GroupHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*GroupSettingHistoryCreate, rv.Len()) + builders := make([]*GroupHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &GroupSettingHistoryCreateBulk{config: c.config, builders: builders} + return &GroupHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for GroupSettingHistory. -func (c *GroupSettingHistoryClient) Update() *GroupSettingHistoryUpdate { - mutation := newGroupSettingHistoryMutation(c.config, OpUpdate) - return &GroupSettingHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for GroupHistory. +func (c *GroupHistoryClient) Update() *GroupHistoryUpdate { + mutation := newGroupHistoryMutation(c.config, OpUpdate) + return &GroupHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *GroupSettingHistoryClient) UpdateOne(gsh *GroupSettingHistory) *GroupSettingHistoryUpdateOne { - mutation := newGroupSettingHistoryMutation(c.config, OpUpdateOne, withGroupSettingHistory(gsh)) - return &GroupSettingHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *GroupHistoryClient) UpdateOne(gh *GroupHistory) *GroupHistoryUpdateOne { + mutation := newGroupHistoryMutation(c.config, OpUpdateOne, withGroupHistory(gh)) + return &GroupHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *GroupSettingHistoryClient) UpdateOneID(id string) *GroupSettingHistoryUpdateOne { - mutation := newGroupSettingHistoryMutation(c.config, OpUpdateOne, withGroupSettingHistoryID(id)) - return &GroupSettingHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *GroupHistoryClient) UpdateOneID(id string) *GroupHistoryUpdateOne { + mutation := newGroupHistoryMutation(c.config, OpUpdateOne, withGroupHistoryID(id)) + return &GroupHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for GroupSettingHistory. -func (c *GroupSettingHistoryClient) Delete() *GroupSettingHistoryDelete { - mutation := newGroupSettingHistoryMutation(c.config, OpDelete) - return &GroupSettingHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for GroupHistory. +func (c *GroupHistoryClient) Delete() *GroupHistoryDelete { + mutation := newGroupHistoryMutation(c.config, OpDelete) + return &GroupHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *GroupSettingHistoryClient) DeleteOne(gsh *GroupSettingHistory) *GroupSettingHistoryDeleteOne { - return c.DeleteOneID(gsh.ID) +func (c *GroupHistoryClient) DeleteOne(gh *GroupHistory) *GroupHistoryDeleteOne { + return c.DeleteOneID(gh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *GroupSettingHistoryClient) DeleteOneID(id string) *GroupSettingHistoryDeleteOne { - builder := c.Delete().Where(groupsettinghistory.ID(id)) +func (c *GroupHistoryClient) DeleteOneID(id string) *GroupHistoryDeleteOne { + builder := c.Delete().Where(grouphistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &GroupSettingHistoryDeleteOne{builder} + return &GroupHistoryDeleteOne{builder} } -// Query returns a query builder for GroupSettingHistory. -func (c *GroupSettingHistoryClient) Query() *GroupSettingHistoryQuery { - return &GroupSettingHistoryQuery{ +// Query returns a query builder for GroupHistory. +func (c *GroupHistoryClient) Query() *GroupHistoryQuery { + return &GroupHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeGroupSettingHistory}, + ctx: &QueryContext{Type: TypeGroupHistory}, inters: c.Interceptors(), } } -// Get returns a GroupSettingHistory entity by its id. -func (c *GroupSettingHistoryClient) Get(ctx context.Context, id string) (*GroupSettingHistory, error) { - return c.Query().Where(groupsettinghistory.ID(id)).Only(ctx) +// Get returns a GroupHistory entity by its id. +func (c *GroupHistoryClient) Get(ctx context.Context, id string) (*GroupHistory, error) { + return c.Query().Where(grouphistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *GroupSettingHistoryClient) GetX(ctx context.Context, id string) *GroupSettingHistory { +func (c *GroupHistoryClient) GetX(ctx context.Context, id string) *GroupHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -5952,133 +6634,133 @@ func (c *GroupSettingHistoryClient) GetX(ctx context.Context, id string) *GroupS } // Hooks returns the client hooks. -func (c *GroupSettingHistoryClient) Hooks() []Hook { - hooks := c.hooks.GroupSettingHistory - return append(hooks[:len(hooks):len(hooks)], groupsettinghistory.Hooks[:]...) +func (c *GroupHistoryClient) Hooks() []Hook { + hooks := c.hooks.GroupHistory + return append(hooks[:len(hooks):len(hooks)], grouphistory.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *GroupSettingHistoryClient) Interceptors() []Interceptor { - inters := c.inters.GroupSettingHistory - return append(inters[:len(inters):len(inters)], groupsettinghistory.Interceptors[:]...) +func (c *GroupHistoryClient) Interceptors() []Interceptor { + inters := c.inters.GroupHistory + return append(inters[:len(inters):len(inters)], grouphistory.Interceptors[:]...) } -func (c *GroupSettingHistoryClient) mutate(ctx context.Context, m *GroupSettingHistoryMutation) (Value, error) { +func (c *GroupHistoryClient) mutate(ctx context.Context, m *GroupHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&GroupSettingHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&GroupSettingHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&GroupSettingHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&GroupSettingHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&GroupHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown GroupSettingHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown GroupHistory mutation op: %q", m.Op()) } } -// HushClient is a client for the Hush schema. -type HushClient struct { +// GroupMembershipClient is a client for the GroupMembership schema. +type GroupMembershipClient struct { config } -// NewHushClient returns a client for the Hush from the given config. -func NewHushClient(c config) *HushClient { - return &HushClient{config: c} +// NewGroupMembershipClient returns a client for the GroupMembership from the given config. +func NewGroupMembershipClient(c config) *GroupMembershipClient { + return &GroupMembershipClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `hush.Hooks(f(g(h())))`. -func (c *HushClient) Use(hooks ...Hook) { - c.hooks.Hush = append(c.hooks.Hush, hooks...) +// A call to `Use(f, g, h)` equals to `groupmembership.Hooks(f(g(h())))`. +func (c *GroupMembershipClient) Use(hooks ...Hook) { + c.hooks.GroupMembership = append(c.hooks.GroupMembership, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `hush.Intercept(f(g(h())))`. -func (c *HushClient) Intercept(interceptors ...Interceptor) { - c.inters.Hush = append(c.inters.Hush, interceptors...) +// A call to `Intercept(f, g, h)` equals to `groupmembership.Intercept(f(g(h())))`. +func (c *GroupMembershipClient) Intercept(interceptors ...Interceptor) { + c.inters.GroupMembership = append(c.inters.GroupMembership, interceptors...) } -// Create returns a builder for creating a Hush entity. -func (c *HushClient) Create() *HushCreate { - mutation := newHushMutation(c.config, OpCreate) - return &HushCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a GroupMembership entity. +func (c *GroupMembershipClient) Create() *GroupMembershipCreate { + mutation := newGroupMembershipMutation(c.config, OpCreate) + return &GroupMembershipCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of Hush entities. -func (c *HushClient) CreateBulk(builders ...*HushCreate) *HushCreateBulk { - return &HushCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of GroupMembership entities. +func (c *GroupMembershipClient) CreateBulk(builders ...*GroupMembershipCreate) *GroupMembershipCreateBulk { + return &GroupMembershipCreateBulk{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 *HushClient) MapCreateBulk(slice any, setFunc func(*HushCreate, int)) *HushCreateBulk { +func (c *GroupMembershipClient) MapCreateBulk(slice any, setFunc func(*GroupMembershipCreate, int)) *GroupMembershipCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &HushCreateBulk{err: fmt.Errorf("calling to HushClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &GroupMembershipCreateBulk{err: fmt.Errorf("calling to GroupMembershipClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*HushCreate, rv.Len()) + builders := make([]*GroupMembershipCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &HushCreateBulk{config: c.config, builders: builders} + return &GroupMembershipCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for Hush. -func (c *HushClient) Update() *HushUpdate { - mutation := newHushMutation(c.config, OpUpdate) - return &HushUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for GroupMembership. +func (c *GroupMembershipClient) Update() *GroupMembershipUpdate { + mutation := newGroupMembershipMutation(c.config, OpUpdate) + return &GroupMembershipUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *HushClient) UpdateOne(h *Hush) *HushUpdateOne { - mutation := newHushMutation(c.config, OpUpdateOne, withHush(h)) - return &HushUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *GroupMembershipClient) UpdateOne(gm *GroupMembership) *GroupMembershipUpdateOne { + mutation := newGroupMembershipMutation(c.config, OpUpdateOne, withGroupMembership(gm)) + return &GroupMembershipUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *HushClient) UpdateOneID(id string) *HushUpdateOne { - mutation := newHushMutation(c.config, OpUpdateOne, withHushID(id)) - return &HushUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *GroupMembershipClient) UpdateOneID(id string) *GroupMembershipUpdateOne { + mutation := newGroupMembershipMutation(c.config, OpUpdateOne, withGroupMembershipID(id)) + return &GroupMembershipUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for Hush. -func (c *HushClient) Delete() *HushDelete { - mutation := newHushMutation(c.config, OpDelete) - return &HushDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for GroupMembership. +func (c *GroupMembershipClient) Delete() *GroupMembershipDelete { + mutation := newGroupMembershipMutation(c.config, OpDelete) + return &GroupMembershipDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *HushClient) DeleteOne(h *Hush) *HushDeleteOne { - return c.DeleteOneID(h.ID) +func (c *GroupMembershipClient) DeleteOne(gm *GroupMembership) *GroupMembershipDeleteOne { + return c.DeleteOneID(gm.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *HushClient) DeleteOneID(id string) *HushDeleteOne { - builder := c.Delete().Where(hush.ID(id)) +func (c *GroupMembershipClient) DeleteOneID(id string) *GroupMembershipDeleteOne { + builder := c.Delete().Where(groupmembership.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &HushDeleteOne{builder} + return &GroupMembershipDeleteOne{builder} } -// Query returns a query builder for Hush. -func (c *HushClient) Query() *HushQuery { - return &HushQuery{ +// Query returns a query builder for GroupMembership. +func (c *GroupMembershipClient) Query() *GroupMembershipQuery { + return &GroupMembershipQuery{ config: c.config, - ctx: &QueryContext{Type: TypeHush}, + ctx: &QueryContext{Type: TypeGroupMembership}, inters: c.Interceptors(), } } -// Get returns a Hush entity by its id. -func (c *HushClient) Get(ctx context.Context, id string) (*Hush, error) { - return c.Query().Where(hush.ID(id)).Only(ctx) +// Get returns a GroupMembership entity by its id. +func (c *GroupMembershipClient) Get(ctx context.Context, id string) (*GroupMembership, error) { + return c.Query().Where(groupmembership.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *HushClient) GetX(ctx context.Context, id string) *Hush { +func (c *GroupMembershipClient) GetX(ctx context.Context, id string) *GroupMembership { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -6086,191 +6768,191 @@ func (c *HushClient) GetX(ctx context.Context, id string) *Hush { return obj } -// QueryIntegrations queries the integrations edge of a Hush. -func (c *HushClient) QueryIntegrations(h *Hush) *IntegrationQuery { - query := (&IntegrationClient{config: c.config}).Query() +// QueryGroup queries the group edge of a GroupMembership. +func (c *GroupMembershipClient) QueryGroup(gm *GroupMembership) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := h.ID + id := gm.ID step := sqlgraph.NewStep( - sqlgraph.From(hush.Table, hush.FieldID, id), - sqlgraph.To(integration.Table, integration.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, hush.IntegrationsTable, hush.IntegrationsPrimaryKey...), + sqlgraph.From(groupmembership.Table, groupmembership.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.M2O, false, groupmembership.GroupTable, groupmembership.GroupColumn), ) - schemaConfig := h.schemaConfig - step.To.Schema = schemaConfig.Integration - step.Edge.Schema = schemaConfig.IntegrationSecrets - fromV = sqlgraph.Neighbors(h.driver.Dialect(), step) + schemaConfig := gm.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.GroupMembership + fromV = sqlgraph.Neighbors(gm.driver.Dialect(), step) return fromV, nil } return query } -// QueryOrganization queries the organization edge of a Hush. -func (c *HushClient) QueryOrganization(h *Hush) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() +// QueryUser queries the user edge of a GroupMembership. +func (c *GroupMembershipClient) QueryUser(gm *GroupMembership) *UserQuery { + query := (&UserClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := h.ID + id := gm.ID step := sqlgraph.NewStep( - sqlgraph.From(hush.Table, hush.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, hush.OrganizationTable, hush.OrganizationPrimaryKey...), + sqlgraph.From(groupmembership.Table, groupmembership.FieldID, id), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2O, false, groupmembership.UserTable, groupmembership.UserColumn), ) - schemaConfig := h.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.OrganizationSecrets - fromV = sqlgraph.Neighbors(h.driver.Dialect(), step) + schemaConfig := gm.schemaConfig + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.GroupMembership + fromV = sqlgraph.Neighbors(gm.driver.Dialect(), step) return fromV, nil } return query } -// QueryEvents queries the events edge of a Hush. -func (c *HushClient) QueryEvents(h *Hush) *EventQuery { +// QueryEvents queries the events edge of a GroupMembership. +func (c *GroupMembershipClient) QueryEvents(gm *GroupMembership) *EventQuery { query := (&EventClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := h.ID + id := gm.ID step := sqlgraph.NewStep( - sqlgraph.From(hush.Table, hush.FieldID, id), + sqlgraph.From(groupmembership.Table, groupmembership.FieldID, id), sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, hush.EventsTable, hush.EventsPrimaryKey...), + sqlgraph.Edge(sqlgraph.M2M, false, groupmembership.EventsTable, groupmembership.EventsPrimaryKey...), ) - schemaConfig := h.schemaConfig + schemaConfig := gm.schemaConfig step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.HushEvents - fromV = sqlgraph.Neighbors(h.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.GroupMembershipEvents + fromV = sqlgraph.Neighbors(gm.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *HushClient) Hooks() []Hook { - hooks := c.hooks.Hush - return append(hooks[:len(hooks):len(hooks)], hush.Hooks[:]...) +func (c *GroupMembershipClient) Hooks() []Hook { + hooks := c.hooks.GroupMembership + return append(hooks[:len(hooks):len(hooks)], groupmembership.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *HushClient) Interceptors() []Interceptor { - inters := c.inters.Hush - return append(inters[:len(inters):len(inters)], hush.Interceptors[:]...) +func (c *GroupMembershipClient) Interceptors() []Interceptor { + inters := c.inters.GroupMembership + return append(inters[:len(inters):len(inters)], groupmembership.Interceptors[:]...) } -func (c *HushClient) mutate(ctx context.Context, m *HushMutation) (Value, error) { +func (c *GroupMembershipClient) mutate(ctx context.Context, m *GroupMembershipMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&HushCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupMembershipCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&HushUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupMembershipUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&HushUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupMembershipUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&HushDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&GroupMembershipDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown Hush mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown GroupMembership mutation op: %q", m.Op()) } } -// HushHistoryClient is a client for the HushHistory schema. -type HushHistoryClient struct { +// GroupMembershipHistoryClient is a client for the GroupMembershipHistory schema. +type GroupMembershipHistoryClient struct { config } -// NewHushHistoryClient returns a client for the HushHistory from the given config. -func NewHushHistoryClient(c config) *HushHistoryClient { - return &HushHistoryClient{config: c} +// NewGroupMembershipHistoryClient returns a client for the GroupMembershipHistory from the given config. +func NewGroupMembershipHistoryClient(c config) *GroupMembershipHistoryClient { + return &GroupMembershipHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `hushhistory.Hooks(f(g(h())))`. -func (c *HushHistoryClient) Use(hooks ...Hook) { - c.hooks.HushHistory = append(c.hooks.HushHistory, hooks...) +// A call to `Use(f, g, h)` equals to `groupmembershiphistory.Hooks(f(g(h())))`. +func (c *GroupMembershipHistoryClient) Use(hooks ...Hook) { + c.hooks.GroupMembershipHistory = append(c.hooks.GroupMembershipHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `hushhistory.Intercept(f(g(h())))`. -func (c *HushHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.HushHistory = append(c.inters.HushHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `groupmembershiphistory.Intercept(f(g(h())))`. +func (c *GroupMembershipHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.GroupMembershipHistory = append(c.inters.GroupMembershipHistory, interceptors...) } -// Create returns a builder for creating a HushHistory entity. -func (c *HushHistoryClient) Create() *HushHistoryCreate { - mutation := newHushHistoryMutation(c.config, OpCreate) - return &HushHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a GroupMembershipHistory entity. +func (c *GroupMembershipHistoryClient) Create() *GroupMembershipHistoryCreate { + mutation := newGroupMembershipHistoryMutation(c.config, OpCreate) + return &GroupMembershipHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of HushHistory entities. -func (c *HushHistoryClient) CreateBulk(builders ...*HushHistoryCreate) *HushHistoryCreateBulk { - return &HushHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of GroupMembershipHistory entities. +func (c *GroupMembershipHistoryClient) CreateBulk(builders ...*GroupMembershipHistoryCreate) *GroupMembershipHistoryCreateBulk { + return &GroupMembershipHistoryCreateBulk{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 *HushHistoryClient) MapCreateBulk(slice any, setFunc func(*HushHistoryCreate, int)) *HushHistoryCreateBulk { +func (c *GroupMembershipHistoryClient) MapCreateBulk(slice any, setFunc func(*GroupMembershipHistoryCreate, int)) *GroupMembershipHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &HushHistoryCreateBulk{err: fmt.Errorf("calling to HushHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &GroupMembershipHistoryCreateBulk{err: fmt.Errorf("calling to GroupMembershipHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*HushHistoryCreate, rv.Len()) + builders := make([]*GroupMembershipHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &HushHistoryCreateBulk{config: c.config, builders: builders} + return &GroupMembershipHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for HushHistory. -func (c *HushHistoryClient) Update() *HushHistoryUpdate { - mutation := newHushHistoryMutation(c.config, OpUpdate) - return &HushHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for GroupMembershipHistory. +func (c *GroupMembershipHistoryClient) Update() *GroupMembershipHistoryUpdate { + mutation := newGroupMembershipHistoryMutation(c.config, OpUpdate) + return &GroupMembershipHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *HushHistoryClient) UpdateOne(hh *HushHistory) *HushHistoryUpdateOne { - mutation := newHushHistoryMutation(c.config, OpUpdateOne, withHushHistory(hh)) - return &HushHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *GroupMembershipHistoryClient) UpdateOne(gmh *GroupMembershipHistory) *GroupMembershipHistoryUpdateOne { + mutation := newGroupMembershipHistoryMutation(c.config, OpUpdateOne, withGroupMembershipHistory(gmh)) + return &GroupMembershipHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *HushHistoryClient) UpdateOneID(id string) *HushHistoryUpdateOne { - mutation := newHushHistoryMutation(c.config, OpUpdateOne, withHushHistoryID(id)) - return &HushHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} -} - -// Delete returns a delete builder for HushHistory. -func (c *HushHistoryClient) Delete() *HushHistoryDelete { - mutation := newHushHistoryMutation(c.config, OpDelete) - return &HushHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *GroupMembershipHistoryClient) UpdateOneID(id string) *GroupMembershipHistoryUpdateOne { + mutation := newGroupMembershipHistoryMutation(c.config, OpUpdateOne, withGroupMembershipHistoryID(id)) + return &GroupMembershipHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for GroupMembershipHistory. +func (c *GroupMembershipHistoryClient) Delete() *GroupMembershipHistoryDelete { + mutation := newGroupMembershipHistoryMutation(c.config, OpDelete) + return &GroupMembershipHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *HushHistoryClient) DeleteOne(hh *HushHistory) *HushHistoryDeleteOne { - return c.DeleteOneID(hh.ID) +func (c *GroupMembershipHistoryClient) DeleteOne(gmh *GroupMembershipHistory) *GroupMembershipHistoryDeleteOne { + return c.DeleteOneID(gmh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *HushHistoryClient) DeleteOneID(id string) *HushHistoryDeleteOne { - builder := c.Delete().Where(hushhistory.ID(id)) +func (c *GroupMembershipHistoryClient) DeleteOneID(id string) *GroupMembershipHistoryDeleteOne { + builder := c.Delete().Where(groupmembershiphistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &HushHistoryDeleteOne{builder} + return &GroupMembershipHistoryDeleteOne{builder} } -// Query returns a query builder for HushHistory. -func (c *HushHistoryClient) Query() *HushHistoryQuery { - return &HushHistoryQuery{ +// Query returns a query builder for GroupMembershipHistory. +func (c *GroupMembershipHistoryClient) Query() *GroupMembershipHistoryQuery { + return &GroupMembershipHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeHushHistory}, + ctx: &QueryContext{Type: TypeGroupMembershipHistory}, inters: c.Interceptors(), } } -// Get returns a HushHistory entity by its id. -func (c *HushHistoryClient) Get(ctx context.Context, id string) (*HushHistory, error) { - return c.Query().Where(hushhistory.ID(id)).Only(ctx) +// Get returns a GroupMembershipHistory entity by its id. +func (c *GroupMembershipHistoryClient) Get(ctx context.Context, id string) (*GroupMembershipHistory, error) { + return c.Query().Where(groupmembershiphistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *HushHistoryClient) GetX(ctx context.Context, id string) *HushHistory { +func (c *GroupMembershipHistoryClient) GetX(ctx context.Context, id string) *GroupMembershipHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -6279,131 +6961,133 @@ func (c *HushHistoryClient) GetX(ctx context.Context, id string) *HushHistory { } // Hooks returns the client hooks. -func (c *HushHistoryClient) Hooks() []Hook { - return c.hooks.HushHistory +func (c *GroupMembershipHistoryClient) Hooks() []Hook { + hooks := c.hooks.GroupMembershipHistory + return append(hooks[:len(hooks):len(hooks)], groupmembershiphistory.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *HushHistoryClient) Interceptors() []Interceptor { - return c.inters.HushHistory +func (c *GroupMembershipHistoryClient) Interceptors() []Interceptor { + inters := c.inters.GroupMembershipHistory + return append(inters[:len(inters):len(inters)], groupmembershiphistory.Interceptors[:]...) } -func (c *HushHistoryClient) mutate(ctx context.Context, m *HushHistoryMutation) (Value, error) { +func (c *GroupMembershipHistoryClient) mutate(ctx context.Context, m *GroupMembershipHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&HushHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupMembershipHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&HushHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupMembershipHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&HushHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupMembershipHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&HushHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&GroupMembershipHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown HushHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown GroupMembershipHistory mutation op: %q", m.Op()) } } -// IntegrationClient is a client for the Integration schema. -type IntegrationClient struct { +// GroupSettingClient is a client for the GroupSetting schema. +type GroupSettingClient struct { config } -// NewIntegrationClient returns a client for the Integration from the given config. -func NewIntegrationClient(c config) *IntegrationClient { - return &IntegrationClient{config: c} +// NewGroupSettingClient returns a client for the GroupSetting from the given config. +func NewGroupSettingClient(c config) *GroupSettingClient { + return &GroupSettingClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `integration.Hooks(f(g(h())))`. -func (c *IntegrationClient) Use(hooks ...Hook) { - c.hooks.Integration = append(c.hooks.Integration, hooks...) +// A call to `Use(f, g, h)` equals to `groupsetting.Hooks(f(g(h())))`. +func (c *GroupSettingClient) Use(hooks ...Hook) { + c.hooks.GroupSetting = append(c.hooks.GroupSetting, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `integration.Intercept(f(g(h())))`. -func (c *IntegrationClient) Intercept(interceptors ...Interceptor) { - c.inters.Integration = append(c.inters.Integration, interceptors...) +// A call to `Intercept(f, g, h)` equals to `groupsetting.Intercept(f(g(h())))`. +func (c *GroupSettingClient) Intercept(interceptors ...Interceptor) { + c.inters.GroupSetting = append(c.inters.GroupSetting, interceptors...) } -// Create returns a builder for creating a Integration entity. -func (c *IntegrationClient) Create() *IntegrationCreate { - mutation := newIntegrationMutation(c.config, OpCreate) - return &IntegrationCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a GroupSetting entity. +func (c *GroupSettingClient) Create() *GroupSettingCreate { + mutation := newGroupSettingMutation(c.config, OpCreate) + return &GroupSettingCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of Integration entities. -func (c *IntegrationClient) CreateBulk(builders ...*IntegrationCreate) *IntegrationCreateBulk { - return &IntegrationCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of GroupSetting entities. +func (c *GroupSettingClient) CreateBulk(builders ...*GroupSettingCreate) *GroupSettingCreateBulk { + return &GroupSettingCreateBulk{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 *IntegrationClient) MapCreateBulk(slice any, setFunc func(*IntegrationCreate, int)) *IntegrationCreateBulk { +func (c *GroupSettingClient) MapCreateBulk(slice any, setFunc func(*GroupSettingCreate, int)) *GroupSettingCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &IntegrationCreateBulk{err: fmt.Errorf("calling to IntegrationClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &GroupSettingCreateBulk{err: fmt.Errorf("calling to GroupSettingClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*IntegrationCreate, rv.Len()) + builders := make([]*GroupSettingCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &IntegrationCreateBulk{config: c.config, builders: builders} + return &GroupSettingCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for Integration. -func (c *IntegrationClient) Update() *IntegrationUpdate { - mutation := newIntegrationMutation(c.config, OpUpdate) - return &IntegrationUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for GroupSetting. +func (c *GroupSettingClient) Update() *GroupSettingUpdate { + mutation := newGroupSettingMutation(c.config, OpUpdate) + return &GroupSettingUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *IntegrationClient) UpdateOne(i *Integration) *IntegrationUpdateOne { - mutation := newIntegrationMutation(c.config, OpUpdateOne, withIntegration(i)) - return &IntegrationUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *GroupSettingClient) UpdateOne(gs *GroupSetting) *GroupSettingUpdateOne { + mutation := newGroupSettingMutation(c.config, OpUpdateOne, withGroupSetting(gs)) + return &GroupSettingUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *IntegrationClient) UpdateOneID(id string) *IntegrationUpdateOne { - mutation := newIntegrationMutation(c.config, OpUpdateOne, withIntegrationID(id)) - return &IntegrationUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *GroupSettingClient) UpdateOneID(id string) *GroupSettingUpdateOne { + mutation := newGroupSettingMutation(c.config, OpUpdateOne, withGroupSettingID(id)) + return &GroupSettingUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for Integration. -func (c *IntegrationClient) Delete() *IntegrationDelete { - mutation := newIntegrationMutation(c.config, OpDelete) - return &IntegrationDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for GroupSetting. +func (c *GroupSettingClient) Delete() *GroupSettingDelete { + mutation := newGroupSettingMutation(c.config, OpDelete) + return &GroupSettingDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *IntegrationClient) DeleteOne(i *Integration) *IntegrationDeleteOne { - return c.DeleteOneID(i.ID) +func (c *GroupSettingClient) DeleteOne(gs *GroupSetting) *GroupSettingDeleteOne { + return c.DeleteOneID(gs.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *IntegrationClient) DeleteOneID(id string) *IntegrationDeleteOne { - builder := c.Delete().Where(integration.ID(id)) +func (c *GroupSettingClient) DeleteOneID(id string) *GroupSettingDeleteOne { + builder := c.Delete().Where(groupsetting.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &IntegrationDeleteOne{builder} + return &GroupSettingDeleteOne{builder} } -// Query returns a query builder for Integration. -func (c *IntegrationClient) Query() *IntegrationQuery { - return &IntegrationQuery{ +// Query returns a query builder for GroupSetting. +func (c *GroupSettingClient) Query() *GroupSettingQuery { + return &GroupSettingQuery{ config: c.config, - ctx: &QueryContext{Type: TypeIntegration}, + ctx: &QueryContext{Type: TypeGroupSetting}, inters: c.Interceptors(), } } -// Get returns a Integration entity by its id. -func (c *IntegrationClient) Get(ctx context.Context, id string) (*Integration, error) { - return c.Query().Where(integration.ID(id)).Only(ctx) +// Get returns a GroupSetting entity by its id. +func (c *GroupSettingClient) Get(ctx context.Context, id string) (*GroupSetting, error) { + return c.Query().Where(groupsetting.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *IntegrationClient) GetX(ctx context.Context, id string) *Integration { +func (c *GroupSettingClient) GetX(ctx context.Context, id string) *GroupSetting { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -6411,229 +7095,153 @@ func (c *IntegrationClient) GetX(ctx context.Context, id string) *Integration { return obj } -// QueryOwner queries the owner edge of a Integration. -func (c *IntegrationClient) QueryOwner(i *Integration) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() +// QueryGroup queries the group edge of a GroupSetting. +func (c *GroupSettingClient) QueryGroup(gs *GroupSetting) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := i.ID + id := gs.ID step := sqlgraph.NewStep( - sqlgraph.From(integration.Table, integration.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, integration.OwnerTable, integration.OwnerColumn), + sqlgraph.From(groupsetting.Table, groupsetting.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2O, true, groupsetting.GroupTable, groupsetting.GroupColumn), ) - schemaConfig := i.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.Integration - fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) + schemaConfig := gs.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.GroupSetting + fromV = sqlgraph.Neighbors(gs.driver.Dialect(), step) return fromV, nil } return query } -// QuerySecrets queries the secrets edge of a Integration. -func (c *IntegrationClient) QuerySecrets(i *Integration) *HushQuery { - query := (&HushClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := i.ID - step := sqlgraph.NewStep( - sqlgraph.From(integration.Table, integration.FieldID, id), - sqlgraph.To(hush.Table, hush.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, integration.SecretsTable, integration.SecretsPrimaryKey...), - ) - schemaConfig := i.schemaConfig - step.To.Schema = schemaConfig.Hush - step.Edge.Schema = schemaConfig.IntegrationSecrets - fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) - return fromV, nil - } - return query +// Hooks returns the client hooks. +func (c *GroupSettingClient) Hooks() []Hook { + hooks := c.hooks.GroupSetting + return append(hooks[:len(hooks):len(hooks)], groupsetting.Hooks[:]...) } -// QueryOauth2tokens queries the oauth2tokens edge of a Integration. -func (c *IntegrationClient) QueryOauth2tokens(i *Integration) *OhAuthTooTokenQuery { - query := (&OhAuthTooTokenClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := i.ID - step := sqlgraph.NewStep( - sqlgraph.From(integration.Table, integration.FieldID, id), - sqlgraph.To(ohauthtootoken.Table, ohauthtootoken.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, integration.Oauth2tokensTable, integration.Oauth2tokensPrimaryKey...), - ) - schemaConfig := i.schemaConfig - step.To.Schema = schemaConfig.OhAuthTooToken - step.Edge.Schema = schemaConfig.IntegrationOauth2tokens - fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) - return fromV, nil - } - return query +// Interceptors returns the client interceptors. +func (c *GroupSettingClient) Interceptors() []Interceptor { + inters := c.inters.GroupSetting + return append(inters[:len(inters):len(inters)], groupsetting.Interceptors[:]...) } -// QueryEvents queries the events edge of a Integration. -func (c *IntegrationClient) QueryEvents(i *Integration) *EventQuery { - query := (&EventClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := i.ID - step := sqlgraph.NewStep( - sqlgraph.From(integration.Table, integration.FieldID, id), - sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, integration.EventsTable, integration.EventsPrimaryKey...), - ) - schemaConfig := i.schemaConfig - step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.IntegrationEvents - fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) - return fromV, nil +func (c *GroupSettingClient) mutate(ctx context.Context, m *GroupSettingMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&GroupSettingCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&GroupSettingUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&GroupSettingUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&GroupSettingDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown GroupSetting mutation op: %q", m.Op()) } - return query } -// QueryWebhooks queries the webhooks edge of a Integration. -func (c *IntegrationClient) QueryWebhooks(i *Integration) *WebhookQuery { - query := (&WebhookClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := i.ID - step := sqlgraph.NewStep( - sqlgraph.From(integration.Table, integration.FieldID, id), - sqlgraph.To(webhook.Table, webhook.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, integration.WebhooksTable, integration.WebhooksPrimaryKey...), - ) - schemaConfig := i.schemaConfig - step.To.Schema = schemaConfig.Webhook - step.Edge.Schema = schemaConfig.IntegrationWebhooks - fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// Hooks returns the client hooks. -func (c *IntegrationClient) Hooks() []Hook { - hooks := c.hooks.Integration - return append(hooks[:len(hooks):len(hooks)], integration.Hooks[:]...) -} - -// Interceptors returns the client interceptors. -func (c *IntegrationClient) Interceptors() []Interceptor { - inters := c.inters.Integration - return append(inters[:len(inters):len(inters)], integration.Interceptors[:]...) -} - -func (c *IntegrationClient) mutate(ctx context.Context, m *IntegrationMutation) (Value, error) { - switch m.Op() { - case OpCreate: - return (&IntegrationCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) - case OpUpdate: - return (&IntegrationUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) - case OpUpdateOne: - return (&IntegrationUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) - case OpDelete, OpDeleteOne: - return (&IntegrationDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) - default: - return nil, fmt.Errorf("generated: unknown Integration mutation op: %q", m.Op()) - } -} - -// IntegrationHistoryClient is a client for the IntegrationHistory schema. -type IntegrationHistoryClient struct { +// GroupSettingHistoryClient is a client for the GroupSettingHistory schema. +type GroupSettingHistoryClient struct { config } -// NewIntegrationHistoryClient returns a client for the IntegrationHistory from the given config. -func NewIntegrationHistoryClient(c config) *IntegrationHistoryClient { - return &IntegrationHistoryClient{config: c} +// NewGroupSettingHistoryClient returns a client for the GroupSettingHistory from the given config. +func NewGroupSettingHistoryClient(c config) *GroupSettingHistoryClient { + return &GroupSettingHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `integrationhistory.Hooks(f(g(h())))`. -func (c *IntegrationHistoryClient) Use(hooks ...Hook) { - c.hooks.IntegrationHistory = append(c.hooks.IntegrationHistory, hooks...) +// A call to `Use(f, g, h)` equals to `groupsettinghistory.Hooks(f(g(h())))`. +func (c *GroupSettingHistoryClient) Use(hooks ...Hook) { + c.hooks.GroupSettingHistory = append(c.hooks.GroupSettingHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `integrationhistory.Intercept(f(g(h())))`. -func (c *IntegrationHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.IntegrationHistory = append(c.inters.IntegrationHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `groupsettinghistory.Intercept(f(g(h())))`. +func (c *GroupSettingHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.GroupSettingHistory = append(c.inters.GroupSettingHistory, interceptors...) } -// Create returns a builder for creating a IntegrationHistory entity. -func (c *IntegrationHistoryClient) Create() *IntegrationHistoryCreate { - mutation := newIntegrationHistoryMutation(c.config, OpCreate) - return &IntegrationHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a GroupSettingHistory entity. +func (c *GroupSettingHistoryClient) Create() *GroupSettingHistoryCreate { + mutation := newGroupSettingHistoryMutation(c.config, OpCreate) + return &GroupSettingHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of IntegrationHistory entities. -func (c *IntegrationHistoryClient) CreateBulk(builders ...*IntegrationHistoryCreate) *IntegrationHistoryCreateBulk { - return &IntegrationHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of GroupSettingHistory entities. +func (c *GroupSettingHistoryClient) CreateBulk(builders ...*GroupSettingHistoryCreate) *GroupSettingHistoryCreateBulk { + return &GroupSettingHistoryCreateBulk{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 *IntegrationHistoryClient) MapCreateBulk(slice any, setFunc func(*IntegrationHistoryCreate, int)) *IntegrationHistoryCreateBulk { +func (c *GroupSettingHistoryClient) MapCreateBulk(slice any, setFunc func(*GroupSettingHistoryCreate, int)) *GroupSettingHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &IntegrationHistoryCreateBulk{err: fmt.Errorf("calling to IntegrationHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &GroupSettingHistoryCreateBulk{err: fmt.Errorf("calling to GroupSettingHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*IntegrationHistoryCreate, rv.Len()) + builders := make([]*GroupSettingHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &IntegrationHistoryCreateBulk{config: c.config, builders: builders} + return &GroupSettingHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for IntegrationHistory. -func (c *IntegrationHistoryClient) Update() *IntegrationHistoryUpdate { - mutation := newIntegrationHistoryMutation(c.config, OpUpdate) - return &IntegrationHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for GroupSettingHistory. +func (c *GroupSettingHistoryClient) Update() *GroupSettingHistoryUpdate { + mutation := newGroupSettingHistoryMutation(c.config, OpUpdate) + return &GroupSettingHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *IntegrationHistoryClient) UpdateOne(ih *IntegrationHistory) *IntegrationHistoryUpdateOne { - mutation := newIntegrationHistoryMutation(c.config, OpUpdateOne, withIntegrationHistory(ih)) - return &IntegrationHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *GroupSettingHistoryClient) UpdateOne(gsh *GroupSettingHistory) *GroupSettingHistoryUpdateOne { + mutation := newGroupSettingHistoryMutation(c.config, OpUpdateOne, withGroupSettingHistory(gsh)) + return &GroupSettingHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *IntegrationHistoryClient) UpdateOneID(id string) *IntegrationHistoryUpdateOne { - mutation := newIntegrationHistoryMutation(c.config, OpUpdateOne, withIntegrationHistoryID(id)) - return &IntegrationHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *GroupSettingHistoryClient) UpdateOneID(id string) *GroupSettingHistoryUpdateOne { + mutation := newGroupSettingHistoryMutation(c.config, OpUpdateOne, withGroupSettingHistoryID(id)) + return &GroupSettingHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for IntegrationHistory. -func (c *IntegrationHistoryClient) Delete() *IntegrationHistoryDelete { - mutation := newIntegrationHistoryMutation(c.config, OpDelete) - return &IntegrationHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for GroupSettingHistory. +func (c *GroupSettingHistoryClient) Delete() *GroupSettingHistoryDelete { + mutation := newGroupSettingHistoryMutation(c.config, OpDelete) + return &GroupSettingHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *IntegrationHistoryClient) DeleteOne(ih *IntegrationHistory) *IntegrationHistoryDeleteOne { - return c.DeleteOneID(ih.ID) +func (c *GroupSettingHistoryClient) DeleteOne(gsh *GroupSettingHistory) *GroupSettingHistoryDeleteOne { + return c.DeleteOneID(gsh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *IntegrationHistoryClient) DeleteOneID(id string) *IntegrationHistoryDeleteOne { - builder := c.Delete().Where(integrationhistory.ID(id)) +func (c *GroupSettingHistoryClient) DeleteOneID(id string) *GroupSettingHistoryDeleteOne { + builder := c.Delete().Where(groupsettinghistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &IntegrationHistoryDeleteOne{builder} + return &GroupSettingHistoryDeleteOne{builder} } -// Query returns a query builder for IntegrationHistory. -func (c *IntegrationHistoryClient) Query() *IntegrationHistoryQuery { - return &IntegrationHistoryQuery{ +// Query returns a query builder for GroupSettingHistory. +func (c *GroupSettingHistoryClient) Query() *GroupSettingHistoryQuery { + return &GroupSettingHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeIntegrationHistory}, + ctx: &QueryContext{Type: TypeGroupSettingHistory}, inters: c.Interceptors(), } } -// Get returns a IntegrationHistory entity by its id. -func (c *IntegrationHistoryClient) Get(ctx context.Context, id string) (*IntegrationHistory, error) { - return c.Query().Where(integrationhistory.ID(id)).Only(ctx) +// Get returns a GroupSettingHistory entity by its id. +func (c *GroupSettingHistoryClient) Get(ctx context.Context, id string) (*GroupSettingHistory, error) { + return c.Query().Where(groupsettinghistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *IntegrationHistoryClient) GetX(ctx context.Context, id string) *IntegrationHistory { +func (c *GroupSettingHistoryClient) GetX(ctx context.Context, id string) *GroupSettingHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -6642,133 +7250,133 @@ func (c *IntegrationHistoryClient) GetX(ctx context.Context, id string) *Integra } // Hooks returns the client hooks. -func (c *IntegrationHistoryClient) Hooks() []Hook { - hooks := c.hooks.IntegrationHistory - return append(hooks[:len(hooks):len(hooks)], integrationhistory.Hooks[:]...) +func (c *GroupSettingHistoryClient) Hooks() []Hook { + hooks := c.hooks.GroupSettingHistory + return append(hooks[:len(hooks):len(hooks)], groupsettinghistory.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *IntegrationHistoryClient) Interceptors() []Interceptor { - inters := c.inters.IntegrationHistory - return append(inters[:len(inters):len(inters)], integrationhistory.Interceptors[:]...) +func (c *GroupSettingHistoryClient) Interceptors() []Interceptor { + inters := c.inters.GroupSettingHistory + return append(inters[:len(inters):len(inters)], groupsettinghistory.Interceptors[:]...) } -func (c *IntegrationHistoryClient) mutate(ctx context.Context, m *IntegrationHistoryMutation) (Value, error) { +func (c *GroupSettingHistoryClient) mutate(ctx context.Context, m *GroupSettingHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&IntegrationHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupSettingHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&IntegrationHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupSettingHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&IntegrationHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&GroupSettingHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&IntegrationHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&GroupSettingHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown IntegrationHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown GroupSettingHistory mutation op: %q", m.Op()) } } -// InviteClient is a client for the Invite schema. -type InviteClient struct { +// HushClient is a client for the Hush schema. +type HushClient struct { config } -// NewInviteClient returns a client for the Invite from the given config. -func NewInviteClient(c config) *InviteClient { - return &InviteClient{config: c} +// NewHushClient returns a client for the Hush from the given config. +func NewHushClient(c config) *HushClient { + return &HushClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `invite.Hooks(f(g(h())))`. -func (c *InviteClient) Use(hooks ...Hook) { - c.hooks.Invite = append(c.hooks.Invite, hooks...) +// A call to `Use(f, g, h)` equals to `hush.Hooks(f(g(h())))`. +func (c *HushClient) Use(hooks ...Hook) { + c.hooks.Hush = append(c.hooks.Hush, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `invite.Intercept(f(g(h())))`. -func (c *InviteClient) Intercept(interceptors ...Interceptor) { - c.inters.Invite = append(c.inters.Invite, interceptors...) +// A call to `Intercept(f, g, h)` equals to `hush.Intercept(f(g(h())))`. +func (c *HushClient) Intercept(interceptors ...Interceptor) { + c.inters.Hush = append(c.inters.Hush, interceptors...) } -// Create returns a builder for creating a Invite entity. -func (c *InviteClient) Create() *InviteCreate { - mutation := newInviteMutation(c.config, OpCreate) - return &InviteCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a Hush entity. +func (c *HushClient) Create() *HushCreate { + mutation := newHushMutation(c.config, OpCreate) + return &HushCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of Invite entities. -func (c *InviteClient) CreateBulk(builders ...*InviteCreate) *InviteCreateBulk { - return &InviteCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of Hush entities. +func (c *HushClient) CreateBulk(builders ...*HushCreate) *HushCreateBulk { + return &HushCreateBulk{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 *InviteClient) MapCreateBulk(slice any, setFunc func(*InviteCreate, int)) *InviteCreateBulk { +func (c *HushClient) MapCreateBulk(slice any, setFunc func(*HushCreate, int)) *HushCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &InviteCreateBulk{err: fmt.Errorf("calling to InviteClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &HushCreateBulk{err: fmt.Errorf("calling to HushClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*InviteCreate, rv.Len()) + builders := make([]*HushCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &InviteCreateBulk{config: c.config, builders: builders} + return &HushCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for Invite. -func (c *InviteClient) Update() *InviteUpdate { - mutation := newInviteMutation(c.config, OpUpdate) - return &InviteUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for Hush. +func (c *HushClient) Update() *HushUpdate { + mutation := newHushMutation(c.config, OpUpdate) + return &HushUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *InviteClient) UpdateOne(i *Invite) *InviteUpdateOne { - mutation := newInviteMutation(c.config, OpUpdateOne, withInvite(i)) - return &InviteUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *HushClient) UpdateOne(h *Hush) *HushUpdateOne { + mutation := newHushMutation(c.config, OpUpdateOne, withHush(h)) + return &HushUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *InviteClient) UpdateOneID(id string) *InviteUpdateOne { - mutation := newInviteMutation(c.config, OpUpdateOne, withInviteID(id)) - return &InviteUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *HushClient) UpdateOneID(id string) *HushUpdateOne { + mutation := newHushMutation(c.config, OpUpdateOne, withHushID(id)) + return &HushUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for Invite. -func (c *InviteClient) Delete() *InviteDelete { - mutation := newInviteMutation(c.config, OpDelete) - return &InviteDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for Hush. +func (c *HushClient) Delete() *HushDelete { + mutation := newHushMutation(c.config, OpDelete) + return &HushDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *InviteClient) DeleteOne(i *Invite) *InviteDeleteOne { - return c.DeleteOneID(i.ID) +func (c *HushClient) DeleteOne(h *Hush) *HushDeleteOne { + return c.DeleteOneID(h.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *InviteClient) DeleteOneID(id string) *InviteDeleteOne { - builder := c.Delete().Where(invite.ID(id)) +func (c *HushClient) DeleteOneID(id string) *HushDeleteOne { + builder := c.Delete().Where(hush.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &InviteDeleteOne{builder} + return &HushDeleteOne{builder} } -// Query returns a query builder for Invite. -func (c *InviteClient) Query() *InviteQuery { - return &InviteQuery{ +// Query returns a query builder for Hush. +func (c *HushClient) Query() *HushQuery { + return &HushQuery{ config: c.config, - ctx: &QueryContext{Type: TypeInvite}, + ctx: &QueryContext{Type: TypeHush}, inters: c.Interceptors(), } } -// Get returns a Invite entity by its id. -func (c *InviteClient) Get(ctx context.Context, id string) (*Invite, error) { - return c.Query().Where(invite.ID(id)).Only(ctx) +// Get returns a Hush entity by its id. +func (c *HushClient) Get(ctx context.Context, id string) (*Hush, error) { + return c.Query().Where(hush.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *InviteClient) GetX(ctx context.Context, id string) *Invite { +func (c *HushClient) GetX(ctx context.Context, id string) *Hush { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -6776,172 +7384,191 @@ func (c *InviteClient) GetX(ctx context.Context, id string) *Invite { return obj } -// QueryOwner queries the owner edge of a Invite. -func (c *InviteClient) QueryOwner(i *Invite) *OrganizationQuery { +// QueryIntegrations queries the integrations edge of a Hush. +func (c *HushClient) QueryIntegrations(h *Hush) *IntegrationQuery { + query := (&IntegrationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := h.ID + step := sqlgraph.NewStep( + sqlgraph.From(hush.Table, hush.FieldID, id), + sqlgraph.To(integration.Table, integration.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, hush.IntegrationsTable, hush.IntegrationsPrimaryKey...), + ) + schemaConfig := h.schemaConfig + step.To.Schema = schemaConfig.Integration + step.Edge.Schema = schemaConfig.IntegrationSecrets + fromV = sqlgraph.Neighbors(h.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryOrganization queries the organization edge of a Hush. +func (c *HushClient) QueryOrganization(h *Hush) *OrganizationQuery { query := (&OrganizationClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := i.ID + id := h.ID step := sqlgraph.NewStep( - sqlgraph.From(invite.Table, invite.FieldID, id), + sqlgraph.From(hush.Table, hush.FieldID, id), sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, invite.OwnerTable, invite.OwnerColumn), + sqlgraph.Edge(sqlgraph.M2M, true, hush.OrganizationTable, hush.OrganizationPrimaryKey...), ) - schemaConfig := i.schemaConfig + schemaConfig := h.schemaConfig step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.Invite - fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.OrganizationSecrets + fromV = sqlgraph.Neighbors(h.driver.Dialect(), step) return fromV, nil } return query } -// QueryEvents queries the events edge of a Invite. -func (c *InviteClient) QueryEvents(i *Invite) *EventQuery { +// QueryEvents queries the events edge of a Hush. +func (c *HushClient) QueryEvents(h *Hush) *EventQuery { query := (&EventClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := i.ID + id := h.ID step := sqlgraph.NewStep( - sqlgraph.From(invite.Table, invite.FieldID, id), + sqlgraph.From(hush.Table, hush.FieldID, id), sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, invite.EventsTable, invite.EventsPrimaryKey...), + sqlgraph.Edge(sqlgraph.M2M, false, hush.EventsTable, hush.EventsPrimaryKey...), ) - schemaConfig := i.schemaConfig + schemaConfig := h.schemaConfig step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.InviteEvents - fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.HushEvents + fromV = sqlgraph.Neighbors(h.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *InviteClient) Hooks() []Hook { - hooks := c.hooks.Invite - return append(hooks[:len(hooks):len(hooks)], invite.Hooks[:]...) +func (c *HushClient) Hooks() []Hook { + hooks := c.hooks.Hush + return append(hooks[:len(hooks):len(hooks)], hush.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *InviteClient) Interceptors() []Interceptor { - inters := c.inters.Invite - return append(inters[:len(inters):len(inters)], invite.Interceptors[:]...) +func (c *HushClient) Interceptors() []Interceptor { + inters := c.inters.Hush + return append(inters[:len(inters):len(inters)], hush.Interceptors[:]...) } -func (c *InviteClient) mutate(ctx context.Context, m *InviteMutation) (Value, error) { +func (c *HushClient) mutate(ctx context.Context, m *HushMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&InviteCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&HushCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&InviteUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&HushUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&InviteUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&HushUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&InviteDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&HushDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown Invite mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown Hush mutation op: %q", m.Op()) } } -// NoteClient is a client for the Note schema. -type NoteClient struct { +// HushHistoryClient is a client for the HushHistory schema. +type HushHistoryClient struct { config } -// NewNoteClient returns a client for the Note from the given config. -func NewNoteClient(c config) *NoteClient { - return &NoteClient{config: c} +// NewHushHistoryClient returns a client for the HushHistory from the given config. +func NewHushHistoryClient(c config) *HushHistoryClient { + return &HushHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `note.Hooks(f(g(h())))`. -func (c *NoteClient) Use(hooks ...Hook) { - c.hooks.Note = append(c.hooks.Note, hooks...) +// A call to `Use(f, g, h)` equals to `hushhistory.Hooks(f(g(h())))`. +func (c *HushHistoryClient) Use(hooks ...Hook) { + c.hooks.HushHistory = append(c.hooks.HushHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `note.Intercept(f(g(h())))`. -func (c *NoteClient) Intercept(interceptors ...Interceptor) { - c.inters.Note = append(c.inters.Note, interceptors...) +// A call to `Intercept(f, g, h)` equals to `hushhistory.Intercept(f(g(h())))`. +func (c *HushHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.HushHistory = append(c.inters.HushHistory, interceptors...) } -// Create returns a builder for creating a Note entity. -func (c *NoteClient) Create() *NoteCreate { - mutation := newNoteMutation(c.config, OpCreate) - return &NoteCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a HushHistory entity. +func (c *HushHistoryClient) Create() *HushHistoryCreate { + mutation := newHushHistoryMutation(c.config, OpCreate) + return &HushHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of Note entities. -func (c *NoteClient) CreateBulk(builders ...*NoteCreate) *NoteCreateBulk { - return &NoteCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of HushHistory entities. +func (c *HushHistoryClient) CreateBulk(builders ...*HushHistoryCreate) *HushHistoryCreateBulk { + return &HushHistoryCreateBulk{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 *NoteClient) MapCreateBulk(slice any, setFunc func(*NoteCreate, int)) *NoteCreateBulk { +func (c *HushHistoryClient) MapCreateBulk(slice any, setFunc func(*HushHistoryCreate, int)) *HushHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &NoteCreateBulk{err: fmt.Errorf("calling to NoteClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &HushHistoryCreateBulk{err: fmt.Errorf("calling to HushHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*NoteCreate, rv.Len()) + builders := make([]*HushHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &NoteCreateBulk{config: c.config, builders: builders} + return &HushHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for Note. -func (c *NoteClient) Update() *NoteUpdate { - mutation := newNoteMutation(c.config, OpUpdate) - return &NoteUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for HushHistory. +func (c *HushHistoryClient) Update() *HushHistoryUpdate { + mutation := newHushHistoryMutation(c.config, OpUpdate) + return &HushHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *NoteClient) UpdateOne(n *Note) *NoteUpdateOne { - mutation := newNoteMutation(c.config, OpUpdateOne, withNote(n)) - return &NoteUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *HushHistoryClient) UpdateOne(hh *HushHistory) *HushHistoryUpdateOne { + mutation := newHushHistoryMutation(c.config, OpUpdateOne, withHushHistory(hh)) + return &HushHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *NoteClient) UpdateOneID(id string) *NoteUpdateOne { - mutation := newNoteMutation(c.config, OpUpdateOne, withNoteID(id)) - return &NoteUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *HushHistoryClient) UpdateOneID(id string) *HushHistoryUpdateOne { + mutation := newHushHistoryMutation(c.config, OpUpdateOne, withHushHistoryID(id)) + return &HushHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for Note. -func (c *NoteClient) Delete() *NoteDelete { - mutation := newNoteMutation(c.config, OpDelete) - return &NoteDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for HushHistory. +func (c *HushHistoryClient) Delete() *HushHistoryDelete { + mutation := newHushHistoryMutation(c.config, OpDelete) + return &HushHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *NoteClient) DeleteOne(n *Note) *NoteDeleteOne { - return c.DeleteOneID(n.ID) +func (c *HushHistoryClient) DeleteOne(hh *HushHistory) *HushHistoryDeleteOne { + return c.DeleteOneID(hh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *NoteClient) DeleteOneID(id string) *NoteDeleteOne { - builder := c.Delete().Where(note.ID(id)) +func (c *HushHistoryClient) DeleteOneID(id string) *HushHistoryDeleteOne { + builder := c.Delete().Where(hushhistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &NoteDeleteOne{builder} + return &HushHistoryDeleteOne{builder} } -// Query returns a query builder for Note. -func (c *NoteClient) Query() *NoteQuery { - return &NoteQuery{ +// Query returns a query builder for HushHistory. +func (c *HushHistoryClient) Query() *HushHistoryQuery { + return &HushHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeNote}, + ctx: &QueryContext{Type: TypeHushHistory}, inters: c.Interceptors(), } } -// Get returns a Note entity by its id. -func (c *NoteClient) Get(ctx context.Context, id string) (*Note, error) { - return c.Query().Where(note.ID(id)).Only(ctx) +// Get returns a HushHistory entity by its id. +func (c *HushHistoryClient) Get(ctx context.Context, id string) (*HushHistory, error) { + return c.Query().Where(hushhistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *NoteClient) GetX(ctx context.Context, id string) *Note { +func (c *HushHistoryClient) GetX(ctx context.Context, id string) *HushHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -6949,172 +7576,132 @@ func (c *NoteClient) GetX(ctx context.Context, id string) *Note { return obj } -// QueryOwner queries the owner edge of a Note. -func (c *NoteClient) QueryOwner(n *Note) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := n.ID - step := sqlgraph.NewStep( - sqlgraph.From(note.Table, note.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, note.OwnerTable, note.OwnerColumn), - ) - schemaConfig := n.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.Note - fromV = sqlgraph.Neighbors(n.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryEntity queries the entity edge of a Note. -func (c *NoteClient) QueryEntity(n *Note) *EntityQuery { - query := (&EntityClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := n.ID - step := sqlgraph.NewStep( - sqlgraph.From(note.Table, note.FieldID, id), - sqlgraph.To(entity.Table, entity.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, note.EntityTable, note.EntityColumn), - ) - schemaConfig := n.schemaConfig - step.To.Schema = schemaConfig.Entity - step.Edge.Schema = schemaConfig.Note - fromV = sqlgraph.Neighbors(n.driver.Dialect(), step) - return fromV, nil - } - return query -} - // Hooks returns the client hooks. -func (c *NoteClient) Hooks() []Hook { - hooks := c.hooks.Note - return append(hooks[:len(hooks):len(hooks)], note.Hooks[:]...) +func (c *HushHistoryClient) Hooks() []Hook { + return c.hooks.HushHistory } // Interceptors returns the client interceptors. -func (c *NoteClient) Interceptors() []Interceptor { - inters := c.inters.Note - return append(inters[:len(inters):len(inters)], note.Interceptors[:]...) +func (c *HushHistoryClient) Interceptors() []Interceptor { + return c.inters.HushHistory } -func (c *NoteClient) mutate(ctx context.Context, m *NoteMutation) (Value, error) { +func (c *HushHistoryClient) mutate(ctx context.Context, m *HushHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&NoteCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&HushHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&NoteUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&HushHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&NoteUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&HushHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&NoteDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&HushHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown Note mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown HushHistory mutation op: %q", m.Op()) } } -// NoteHistoryClient is a client for the NoteHistory schema. -type NoteHistoryClient struct { +// IntegrationClient is a client for the Integration schema. +type IntegrationClient struct { config } -// NewNoteHistoryClient returns a client for the NoteHistory from the given config. -func NewNoteHistoryClient(c config) *NoteHistoryClient { - return &NoteHistoryClient{config: c} +// NewIntegrationClient returns a client for the Integration from the given config. +func NewIntegrationClient(c config) *IntegrationClient { + return &IntegrationClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `notehistory.Hooks(f(g(h())))`. -func (c *NoteHistoryClient) Use(hooks ...Hook) { - c.hooks.NoteHistory = append(c.hooks.NoteHistory, hooks...) +// A call to `Use(f, g, h)` equals to `integration.Hooks(f(g(h())))`. +func (c *IntegrationClient) Use(hooks ...Hook) { + c.hooks.Integration = append(c.hooks.Integration, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `notehistory.Intercept(f(g(h())))`. -func (c *NoteHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.NoteHistory = append(c.inters.NoteHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `integration.Intercept(f(g(h())))`. +func (c *IntegrationClient) Intercept(interceptors ...Interceptor) { + c.inters.Integration = append(c.inters.Integration, interceptors...) } -// Create returns a builder for creating a NoteHistory entity. -func (c *NoteHistoryClient) Create() *NoteHistoryCreate { - mutation := newNoteHistoryMutation(c.config, OpCreate) - return &NoteHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a Integration entity. +func (c *IntegrationClient) Create() *IntegrationCreate { + mutation := newIntegrationMutation(c.config, OpCreate) + return &IntegrationCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of NoteHistory entities. -func (c *NoteHistoryClient) CreateBulk(builders ...*NoteHistoryCreate) *NoteHistoryCreateBulk { - return &NoteHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of Integration entities. +func (c *IntegrationClient) CreateBulk(builders ...*IntegrationCreate) *IntegrationCreateBulk { + return &IntegrationCreateBulk{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 *NoteHistoryClient) MapCreateBulk(slice any, setFunc func(*NoteHistoryCreate, int)) *NoteHistoryCreateBulk { +func (c *IntegrationClient) MapCreateBulk(slice any, setFunc func(*IntegrationCreate, int)) *IntegrationCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &NoteHistoryCreateBulk{err: fmt.Errorf("calling to NoteHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &IntegrationCreateBulk{err: fmt.Errorf("calling to IntegrationClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*NoteHistoryCreate, rv.Len()) + builders := make([]*IntegrationCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &NoteHistoryCreateBulk{config: c.config, builders: builders} + return &IntegrationCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for NoteHistory. -func (c *NoteHistoryClient) Update() *NoteHistoryUpdate { - mutation := newNoteHistoryMutation(c.config, OpUpdate) - return &NoteHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for Integration. +func (c *IntegrationClient) Update() *IntegrationUpdate { + mutation := newIntegrationMutation(c.config, OpUpdate) + return &IntegrationUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *NoteHistoryClient) UpdateOne(nh *NoteHistory) *NoteHistoryUpdateOne { - mutation := newNoteHistoryMutation(c.config, OpUpdateOne, withNoteHistory(nh)) - return &NoteHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *IntegrationClient) UpdateOne(i *Integration) *IntegrationUpdateOne { + mutation := newIntegrationMutation(c.config, OpUpdateOne, withIntegration(i)) + return &IntegrationUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *NoteHistoryClient) UpdateOneID(id string) *NoteHistoryUpdateOne { - mutation := newNoteHistoryMutation(c.config, OpUpdateOne, withNoteHistoryID(id)) - return &NoteHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *IntegrationClient) UpdateOneID(id string) *IntegrationUpdateOne { + mutation := newIntegrationMutation(c.config, OpUpdateOne, withIntegrationID(id)) + return &IntegrationUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for NoteHistory. -func (c *NoteHistoryClient) Delete() *NoteHistoryDelete { - mutation := newNoteHistoryMutation(c.config, OpDelete) - return &NoteHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for Integration. +func (c *IntegrationClient) Delete() *IntegrationDelete { + mutation := newIntegrationMutation(c.config, OpDelete) + return &IntegrationDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *NoteHistoryClient) DeleteOne(nh *NoteHistory) *NoteHistoryDeleteOne { - return c.DeleteOneID(nh.ID) +func (c *IntegrationClient) DeleteOne(i *Integration) *IntegrationDeleteOne { + return c.DeleteOneID(i.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *NoteHistoryClient) DeleteOneID(id string) *NoteHistoryDeleteOne { - builder := c.Delete().Where(notehistory.ID(id)) +func (c *IntegrationClient) DeleteOneID(id string) *IntegrationDeleteOne { + builder := c.Delete().Where(integration.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &NoteHistoryDeleteOne{builder} + return &IntegrationDeleteOne{builder} } -// Query returns a query builder for NoteHistory. -func (c *NoteHistoryClient) Query() *NoteHistoryQuery { - return &NoteHistoryQuery{ +// Query returns a query builder for Integration. +func (c *IntegrationClient) Query() *IntegrationQuery { + return &IntegrationQuery{ config: c.config, - ctx: &QueryContext{Type: TypeNoteHistory}, + ctx: &QueryContext{Type: TypeIntegration}, inters: c.Interceptors(), } } -// Get returns a NoteHistory entity by its id. -func (c *NoteHistoryClient) Get(ctx context.Context, id string) (*NoteHistory, error) { - return c.Query().Where(notehistory.ID(id)).Only(ctx) +// Get returns a Integration entity by its id. +func (c *IntegrationClient) Get(ctx context.Context, id string) (*Integration, error) { + return c.Query().Where(integration.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *NoteHistoryClient) GetX(ctx context.Context, id string) *NoteHistory { +func (c *IntegrationClient) GetX(ctx context.Context, id string) *Integration { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -7122,134 +7709,229 @@ func (c *NoteHistoryClient) GetX(ctx context.Context, id string) *NoteHistory { return obj } +// QueryOwner queries the owner edge of a Integration. +func (c *IntegrationClient) QueryOwner(i *Integration) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := i.ID + step := sqlgraph.NewStep( + sqlgraph.From(integration.Table, integration.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, integration.OwnerTable, integration.OwnerColumn), + ) + schemaConfig := i.schemaConfig + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.Integration + fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QuerySecrets queries the secrets edge of a Integration. +func (c *IntegrationClient) QuerySecrets(i *Integration) *HushQuery { + query := (&HushClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := i.ID + step := sqlgraph.NewStep( + sqlgraph.From(integration.Table, integration.FieldID, id), + sqlgraph.To(hush.Table, hush.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, integration.SecretsTable, integration.SecretsPrimaryKey...), + ) + schemaConfig := i.schemaConfig + step.To.Schema = schemaConfig.Hush + step.Edge.Schema = schemaConfig.IntegrationSecrets + fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryOauth2tokens queries the oauth2tokens edge of a Integration. +func (c *IntegrationClient) QueryOauth2tokens(i *Integration) *OhAuthTooTokenQuery { + query := (&OhAuthTooTokenClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := i.ID + step := sqlgraph.NewStep( + sqlgraph.From(integration.Table, integration.FieldID, id), + sqlgraph.To(ohauthtootoken.Table, ohauthtootoken.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, integration.Oauth2tokensTable, integration.Oauth2tokensPrimaryKey...), + ) + schemaConfig := i.schemaConfig + step.To.Schema = schemaConfig.OhAuthTooToken + step.Edge.Schema = schemaConfig.IntegrationOauth2tokens + fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEvents queries the events edge of a Integration. +func (c *IntegrationClient) QueryEvents(i *Integration) *EventQuery { + query := (&EventClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := i.ID + step := sqlgraph.NewStep( + sqlgraph.From(integration.Table, integration.FieldID, id), + sqlgraph.To(event.Table, event.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, integration.EventsTable, integration.EventsPrimaryKey...), + ) + schemaConfig := i.schemaConfig + step.To.Schema = schemaConfig.Event + step.Edge.Schema = schemaConfig.IntegrationEvents + fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryWebhooks queries the webhooks edge of a Integration. +func (c *IntegrationClient) QueryWebhooks(i *Integration) *WebhookQuery { + query := (&WebhookClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := i.ID + step := sqlgraph.NewStep( + sqlgraph.From(integration.Table, integration.FieldID, id), + sqlgraph.To(webhook.Table, webhook.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, integration.WebhooksTable, integration.WebhooksPrimaryKey...), + ) + schemaConfig := i.schemaConfig + step.To.Schema = schemaConfig.Webhook + step.Edge.Schema = schemaConfig.IntegrationWebhooks + fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) + return fromV, nil + } + return query +} + // Hooks returns the client hooks. -func (c *NoteHistoryClient) Hooks() []Hook { - hooks := c.hooks.NoteHistory - return append(hooks[:len(hooks):len(hooks)], notehistory.Hooks[:]...) +func (c *IntegrationClient) Hooks() []Hook { + hooks := c.hooks.Integration + return append(hooks[:len(hooks):len(hooks)], integration.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *NoteHistoryClient) Interceptors() []Interceptor { - inters := c.inters.NoteHistory - return append(inters[:len(inters):len(inters)], notehistory.Interceptors[:]...) +func (c *IntegrationClient) Interceptors() []Interceptor { + inters := c.inters.Integration + return append(inters[:len(inters):len(inters)], integration.Interceptors[:]...) } -func (c *NoteHistoryClient) mutate(ctx context.Context, m *NoteHistoryMutation) (Value, error) { +func (c *IntegrationClient) mutate(ctx context.Context, m *IntegrationMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&NoteHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&IntegrationCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&NoteHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&IntegrationUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&NoteHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&IntegrationUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&NoteHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&IntegrationDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown NoteHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown Integration mutation op: %q", m.Op()) } } -// OauthProviderClient is a client for the OauthProvider schema. -type OauthProviderClient struct { +// IntegrationHistoryClient is a client for the IntegrationHistory schema. +type IntegrationHistoryClient struct { config } -// NewOauthProviderClient returns a client for the OauthProvider from the given config. -func NewOauthProviderClient(c config) *OauthProviderClient { - return &OauthProviderClient{config: c} +// NewIntegrationHistoryClient returns a client for the IntegrationHistory from the given config. +func NewIntegrationHistoryClient(c config) *IntegrationHistoryClient { + return &IntegrationHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `oauthprovider.Hooks(f(g(h())))`. -func (c *OauthProviderClient) Use(hooks ...Hook) { - c.hooks.OauthProvider = append(c.hooks.OauthProvider, hooks...) +// A call to `Use(f, g, h)` equals to `integrationhistory.Hooks(f(g(h())))`. +func (c *IntegrationHistoryClient) Use(hooks ...Hook) { + c.hooks.IntegrationHistory = append(c.hooks.IntegrationHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `oauthprovider.Intercept(f(g(h())))`. -func (c *OauthProviderClient) Intercept(interceptors ...Interceptor) { - c.inters.OauthProvider = append(c.inters.OauthProvider, interceptors...) +// A call to `Intercept(f, g, h)` equals to `integrationhistory.Intercept(f(g(h())))`. +func (c *IntegrationHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.IntegrationHistory = append(c.inters.IntegrationHistory, interceptors...) } -// Create returns a builder for creating a OauthProvider entity. -func (c *OauthProviderClient) Create() *OauthProviderCreate { - mutation := newOauthProviderMutation(c.config, OpCreate) - return &OauthProviderCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a IntegrationHistory entity. +func (c *IntegrationHistoryClient) Create() *IntegrationHistoryCreate { + mutation := newIntegrationHistoryMutation(c.config, OpCreate) + return &IntegrationHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of OauthProvider entities. -func (c *OauthProviderClient) CreateBulk(builders ...*OauthProviderCreate) *OauthProviderCreateBulk { - return &OauthProviderCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of IntegrationHistory entities. +func (c *IntegrationHistoryClient) CreateBulk(builders ...*IntegrationHistoryCreate) *IntegrationHistoryCreateBulk { + return &IntegrationHistoryCreateBulk{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 *OauthProviderClient) MapCreateBulk(slice any, setFunc func(*OauthProviderCreate, int)) *OauthProviderCreateBulk { +func (c *IntegrationHistoryClient) MapCreateBulk(slice any, setFunc func(*IntegrationHistoryCreate, int)) *IntegrationHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &OauthProviderCreateBulk{err: fmt.Errorf("calling to OauthProviderClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &IntegrationHistoryCreateBulk{err: fmt.Errorf("calling to IntegrationHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*OauthProviderCreate, rv.Len()) + builders := make([]*IntegrationHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &OauthProviderCreateBulk{config: c.config, builders: builders} + return &IntegrationHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for OauthProvider. -func (c *OauthProviderClient) Update() *OauthProviderUpdate { - mutation := newOauthProviderMutation(c.config, OpUpdate) - return &OauthProviderUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for IntegrationHistory. +func (c *IntegrationHistoryClient) Update() *IntegrationHistoryUpdate { + mutation := newIntegrationHistoryMutation(c.config, OpUpdate) + return &IntegrationHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *OauthProviderClient) UpdateOne(op *OauthProvider) *OauthProviderUpdateOne { - mutation := newOauthProviderMutation(c.config, OpUpdateOne, withOauthProvider(op)) - return &OauthProviderUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *IntegrationHistoryClient) UpdateOne(ih *IntegrationHistory) *IntegrationHistoryUpdateOne { + mutation := newIntegrationHistoryMutation(c.config, OpUpdateOne, withIntegrationHistory(ih)) + return &IntegrationHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *OauthProviderClient) UpdateOneID(id string) *OauthProviderUpdateOne { - mutation := newOauthProviderMutation(c.config, OpUpdateOne, withOauthProviderID(id)) - return &OauthProviderUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *IntegrationHistoryClient) UpdateOneID(id string) *IntegrationHistoryUpdateOne { + mutation := newIntegrationHistoryMutation(c.config, OpUpdateOne, withIntegrationHistoryID(id)) + return &IntegrationHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for OauthProvider. -func (c *OauthProviderClient) Delete() *OauthProviderDelete { - mutation := newOauthProviderMutation(c.config, OpDelete) - return &OauthProviderDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for IntegrationHistory. +func (c *IntegrationHistoryClient) Delete() *IntegrationHistoryDelete { + mutation := newIntegrationHistoryMutation(c.config, OpDelete) + return &IntegrationHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *OauthProviderClient) DeleteOne(op *OauthProvider) *OauthProviderDeleteOne { - return c.DeleteOneID(op.ID) +func (c *IntegrationHistoryClient) DeleteOne(ih *IntegrationHistory) *IntegrationHistoryDeleteOne { + return c.DeleteOneID(ih.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *OauthProviderClient) DeleteOneID(id string) *OauthProviderDeleteOne { - builder := c.Delete().Where(oauthprovider.ID(id)) +func (c *IntegrationHistoryClient) DeleteOneID(id string) *IntegrationHistoryDeleteOne { + builder := c.Delete().Where(integrationhistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &OauthProviderDeleteOne{builder} + return &IntegrationHistoryDeleteOne{builder} } -// Query returns a query builder for OauthProvider. -func (c *OauthProviderClient) Query() *OauthProviderQuery { - return &OauthProviderQuery{ +// Query returns a query builder for IntegrationHistory. +func (c *IntegrationHistoryClient) Query() *IntegrationHistoryQuery { + return &IntegrationHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeOauthProvider}, + ctx: &QueryContext{Type: TypeIntegrationHistory}, inters: c.Interceptors(), } } -// Get returns a OauthProvider entity by its id. -func (c *OauthProviderClient) Get(ctx context.Context, id string) (*OauthProvider, error) { - return c.Query().Where(oauthprovider.ID(id)).Only(ctx) +// Get returns a IntegrationHistory entity by its id. +func (c *IntegrationHistoryClient) Get(ctx context.Context, id string) (*IntegrationHistory, error) { + return c.Query().Where(integrationhistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *OauthProviderClient) GetX(ctx context.Context, id string) *OauthProvider { +func (c *IntegrationHistoryClient) GetX(ctx context.Context, id string) *IntegrationHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -7257,153 +7939,134 @@ func (c *OauthProviderClient) GetX(ctx context.Context, id string) *OauthProvide return obj } -// QueryOwner queries the owner edge of a OauthProvider. -func (c *OauthProviderClient) QueryOwner(op *OauthProvider) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := op.ID - step := sqlgraph.NewStep( - sqlgraph.From(oauthprovider.Table, oauthprovider.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, oauthprovider.OwnerTable, oauthprovider.OwnerColumn), - ) - schemaConfig := op.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.OauthProvider - fromV = sqlgraph.Neighbors(op.driver.Dialect(), step) - return fromV, nil - } - return query -} - // Hooks returns the client hooks. -func (c *OauthProviderClient) Hooks() []Hook { - hooks := c.hooks.OauthProvider - return append(hooks[:len(hooks):len(hooks)], oauthprovider.Hooks[:]...) +func (c *IntegrationHistoryClient) Hooks() []Hook { + hooks := c.hooks.IntegrationHistory + return append(hooks[:len(hooks):len(hooks)], integrationhistory.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *OauthProviderClient) Interceptors() []Interceptor { - inters := c.inters.OauthProvider - return append(inters[:len(inters):len(inters)], oauthprovider.Interceptors[:]...) +func (c *IntegrationHistoryClient) Interceptors() []Interceptor { + inters := c.inters.IntegrationHistory + return append(inters[:len(inters):len(inters)], integrationhistory.Interceptors[:]...) } -func (c *OauthProviderClient) mutate(ctx context.Context, m *OauthProviderMutation) (Value, error) { +func (c *IntegrationHistoryClient) mutate(ctx context.Context, m *IntegrationHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&OauthProviderCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&IntegrationHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&OauthProviderUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&IntegrationHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&OauthProviderUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&IntegrationHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&OauthProviderDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&IntegrationHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown OauthProvider mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown IntegrationHistory mutation op: %q", m.Op()) } } -// OauthProviderHistoryClient is a client for the OauthProviderHistory schema. -type OauthProviderHistoryClient struct { +// InternalPolicyClient is a client for the InternalPolicy schema. +type InternalPolicyClient struct { config } -// NewOauthProviderHistoryClient returns a client for the OauthProviderHistory from the given config. -func NewOauthProviderHistoryClient(c config) *OauthProviderHistoryClient { - return &OauthProviderHistoryClient{config: c} +// NewInternalPolicyClient returns a client for the InternalPolicy from the given config. +func NewInternalPolicyClient(c config) *InternalPolicyClient { + return &InternalPolicyClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `oauthproviderhistory.Hooks(f(g(h())))`. -func (c *OauthProviderHistoryClient) Use(hooks ...Hook) { - c.hooks.OauthProviderHistory = append(c.hooks.OauthProviderHistory, hooks...) +// A call to `Use(f, g, h)` equals to `internalpolicy.Hooks(f(g(h())))`. +func (c *InternalPolicyClient) Use(hooks ...Hook) { + c.hooks.InternalPolicy = append(c.hooks.InternalPolicy, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `oauthproviderhistory.Intercept(f(g(h())))`. -func (c *OauthProviderHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.OauthProviderHistory = append(c.inters.OauthProviderHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `internalpolicy.Intercept(f(g(h())))`. +func (c *InternalPolicyClient) Intercept(interceptors ...Interceptor) { + c.inters.InternalPolicy = append(c.inters.InternalPolicy, interceptors...) } -// Create returns a builder for creating a OauthProviderHistory entity. -func (c *OauthProviderHistoryClient) Create() *OauthProviderHistoryCreate { - mutation := newOauthProviderHistoryMutation(c.config, OpCreate) - return &OauthProviderHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a InternalPolicy entity. +func (c *InternalPolicyClient) Create() *InternalPolicyCreate { + mutation := newInternalPolicyMutation(c.config, OpCreate) + return &InternalPolicyCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of OauthProviderHistory entities. -func (c *OauthProviderHistoryClient) CreateBulk(builders ...*OauthProviderHistoryCreate) *OauthProviderHistoryCreateBulk { - return &OauthProviderHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of InternalPolicy entities. +func (c *InternalPolicyClient) CreateBulk(builders ...*InternalPolicyCreate) *InternalPolicyCreateBulk { + return &InternalPolicyCreateBulk{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 *OauthProviderHistoryClient) MapCreateBulk(slice any, setFunc func(*OauthProviderHistoryCreate, int)) *OauthProviderHistoryCreateBulk { +func (c *InternalPolicyClient) MapCreateBulk(slice any, setFunc func(*InternalPolicyCreate, int)) *InternalPolicyCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &OauthProviderHistoryCreateBulk{err: fmt.Errorf("calling to OauthProviderHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &InternalPolicyCreateBulk{err: fmt.Errorf("calling to InternalPolicyClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*OauthProviderHistoryCreate, rv.Len()) + builders := make([]*InternalPolicyCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &OauthProviderHistoryCreateBulk{config: c.config, builders: builders} + return &InternalPolicyCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for OauthProviderHistory. -func (c *OauthProviderHistoryClient) Update() *OauthProviderHistoryUpdate { - mutation := newOauthProviderHistoryMutation(c.config, OpUpdate) - return &OauthProviderHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for InternalPolicy. +func (c *InternalPolicyClient) Update() *InternalPolicyUpdate { + mutation := newInternalPolicyMutation(c.config, OpUpdate) + return &InternalPolicyUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *OauthProviderHistoryClient) UpdateOne(oph *OauthProviderHistory) *OauthProviderHistoryUpdateOne { - mutation := newOauthProviderHistoryMutation(c.config, OpUpdateOne, withOauthProviderHistory(oph)) - return &OauthProviderHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *InternalPolicyClient) UpdateOne(ip *InternalPolicy) *InternalPolicyUpdateOne { + mutation := newInternalPolicyMutation(c.config, OpUpdateOne, withInternalPolicy(ip)) + return &InternalPolicyUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *OauthProviderHistoryClient) UpdateOneID(id string) *OauthProviderHistoryUpdateOne { - mutation := newOauthProviderHistoryMutation(c.config, OpUpdateOne, withOauthProviderHistoryID(id)) - return &OauthProviderHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *InternalPolicyClient) UpdateOneID(id string) *InternalPolicyUpdateOne { + mutation := newInternalPolicyMutation(c.config, OpUpdateOne, withInternalPolicyID(id)) + return &InternalPolicyUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for OauthProviderHistory. -func (c *OauthProviderHistoryClient) Delete() *OauthProviderHistoryDelete { - mutation := newOauthProviderHistoryMutation(c.config, OpDelete) - return &OauthProviderHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for InternalPolicy. +func (c *InternalPolicyClient) Delete() *InternalPolicyDelete { + mutation := newInternalPolicyMutation(c.config, OpDelete) + return &InternalPolicyDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *OauthProviderHistoryClient) DeleteOne(oph *OauthProviderHistory) *OauthProviderHistoryDeleteOne { - return c.DeleteOneID(oph.ID) +func (c *InternalPolicyClient) DeleteOne(ip *InternalPolicy) *InternalPolicyDeleteOne { + return c.DeleteOneID(ip.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *OauthProviderHistoryClient) DeleteOneID(id string) *OauthProviderHistoryDeleteOne { - builder := c.Delete().Where(oauthproviderhistory.ID(id)) +func (c *InternalPolicyClient) DeleteOneID(id string) *InternalPolicyDeleteOne { + builder := c.Delete().Where(internalpolicy.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &OauthProviderHistoryDeleteOne{builder} + return &InternalPolicyDeleteOne{builder} } -// Query returns a query builder for OauthProviderHistory. -func (c *OauthProviderHistoryClient) Query() *OauthProviderHistoryQuery { - return &OauthProviderHistoryQuery{ +// Query returns a query builder for InternalPolicy. +func (c *InternalPolicyClient) Query() *InternalPolicyQuery { + return &InternalPolicyQuery{ config: c.config, - ctx: &QueryContext{Type: TypeOauthProviderHistory}, + ctx: &QueryContext{Type: TypeInternalPolicy}, inters: c.Interceptors(), } } -// Get returns a OauthProviderHistory entity by its id. -func (c *OauthProviderHistoryClient) Get(ctx context.Context, id string) (*OauthProviderHistory, error) { - return c.Query().Where(oauthproviderhistory.ID(id)).Only(ctx) +// Get returns a InternalPolicy entity by its id. +func (c *InternalPolicyClient) Get(ctx context.Context, id string) (*InternalPolicy, error) { + return c.Query().Where(internalpolicy.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *OauthProviderHistoryClient) GetX(ctx context.Context, id string) *OauthProviderHistory { +func (c *InternalPolicyClient) GetX(ctx context.Context, id string) *InternalPolicy { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -7411,134 +8074,210 @@ func (c *OauthProviderHistoryClient) GetX(ctx context.Context, id string) *Oauth return obj } +// QueryControlobjectives queries the controlobjectives edge of a InternalPolicy. +func (c *InternalPolicyClient) QueryControlobjectives(ip *InternalPolicy) *ControlObjectiveQuery { + query := (&ControlObjectiveClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ip.ID + step := sqlgraph.NewStep( + sqlgraph.From(internalpolicy.Table, internalpolicy.FieldID, id), + sqlgraph.To(controlobjective.Table, controlobjective.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, internalpolicy.ControlobjectivesTable, internalpolicy.ControlobjectivesPrimaryKey...), + ) + schemaConfig := ip.schemaConfig + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.InternalPolicyControlobjectives + fromV = sqlgraph.Neighbors(ip.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryControls queries the controls edge of a InternalPolicy. +func (c *InternalPolicyClient) QueryControls(ip *InternalPolicy) *ControlQuery { + query := (&ControlClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ip.ID + step := sqlgraph.NewStep( + sqlgraph.From(internalpolicy.Table, internalpolicy.FieldID, id), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, internalpolicy.ControlsTable, internalpolicy.ControlsColumn), + ) + schemaConfig := ip.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.Control + fromV = sqlgraph.Neighbors(ip.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryProcedures queries the procedures edge of a InternalPolicy. +func (c *InternalPolicyClient) QueryProcedures(ip *InternalPolicy) *ProcedureQuery { + query := (&ProcedureClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ip.ID + step := sqlgraph.NewStep( + sqlgraph.From(internalpolicy.Table, internalpolicy.FieldID, id), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, internalpolicy.ProceduresTable, internalpolicy.ProceduresPrimaryKey...), + ) + schemaConfig := ip.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.InternalPolicyProcedures + fromV = sqlgraph.Neighbors(ip.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryNarratives queries the narratives edge of a InternalPolicy. +func (c *InternalPolicyClient) QueryNarratives(ip *InternalPolicy) *NarrativeQuery { + query := (&NarrativeClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := ip.ID + step := sqlgraph.NewStep( + sqlgraph.From(internalpolicy.Table, internalpolicy.FieldID, id), + sqlgraph.To(narrative.Table, narrative.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, internalpolicy.NarrativesTable, internalpolicy.NarrativesPrimaryKey...), + ) + schemaConfig := ip.schemaConfig + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.InternalPolicyNarratives + fromV = sqlgraph.Neighbors(ip.driver.Dialect(), step) + return fromV, nil + } + return query +} + // Hooks returns the client hooks. -func (c *OauthProviderHistoryClient) Hooks() []Hook { - hooks := c.hooks.OauthProviderHistory - return append(hooks[:len(hooks):len(hooks)], oauthproviderhistory.Hooks[:]...) +func (c *InternalPolicyClient) Hooks() []Hook { + hooks := c.hooks.InternalPolicy + return append(hooks[:len(hooks):len(hooks)], internalpolicy.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *OauthProviderHistoryClient) Interceptors() []Interceptor { - inters := c.inters.OauthProviderHistory - return append(inters[:len(inters):len(inters)], oauthproviderhistory.Interceptors[:]...) +func (c *InternalPolicyClient) Interceptors() []Interceptor { + inters := c.inters.InternalPolicy + return append(inters[:len(inters):len(inters)], internalpolicy.Interceptors[:]...) } -func (c *OauthProviderHistoryClient) mutate(ctx context.Context, m *OauthProviderHistoryMutation) (Value, error) { +func (c *InternalPolicyClient) mutate(ctx context.Context, m *InternalPolicyMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&OauthProviderHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&InternalPolicyCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&OauthProviderHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&InternalPolicyUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&OauthProviderHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&InternalPolicyUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&OauthProviderHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&InternalPolicyDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown OauthProviderHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown InternalPolicy mutation op: %q", m.Op()) } } -// OhAuthTooTokenClient is a client for the OhAuthTooToken schema. -type OhAuthTooTokenClient struct { +// InternalPolicyHistoryClient is a client for the InternalPolicyHistory schema. +type InternalPolicyHistoryClient struct { config } -// NewOhAuthTooTokenClient returns a client for the OhAuthTooToken from the given config. -func NewOhAuthTooTokenClient(c config) *OhAuthTooTokenClient { - return &OhAuthTooTokenClient{config: c} +// NewInternalPolicyHistoryClient returns a client for the InternalPolicyHistory from the given config. +func NewInternalPolicyHistoryClient(c config) *InternalPolicyHistoryClient { + return &InternalPolicyHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `ohauthtootoken.Hooks(f(g(h())))`. -func (c *OhAuthTooTokenClient) Use(hooks ...Hook) { - c.hooks.OhAuthTooToken = append(c.hooks.OhAuthTooToken, hooks...) +// A call to `Use(f, g, h)` equals to `internalpolicyhistory.Hooks(f(g(h())))`. +func (c *InternalPolicyHistoryClient) Use(hooks ...Hook) { + c.hooks.InternalPolicyHistory = append(c.hooks.InternalPolicyHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `ohauthtootoken.Intercept(f(g(h())))`. -func (c *OhAuthTooTokenClient) Intercept(interceptors ...Interceptor) { - c.inters.OhAuthTooToken = append(c.inters.OhAuthTooToken, interceptors...) +// A call to `Intercept(f, g, h)` equals to `internalpolicyhistory.Intercept(f(g(h())))`. +func (c *InternalPolicyHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.InternalPolicyHistory = append(c.inters.InternalPolicyHistory, interceptors...) } -// Create returns a builder for creating a OhAuthTooToken entity. -func (c *OhAuthTooTokenClient) Create() *OhAuthTooTokenCreate { - mutation := newOhAuthTooTokenMutation(c.config, OpCreate) - return &OhAuthTooTokenCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a InternalPolicyHistory entity. +func (c *InternalPolicyHistoryClient) Create() *InternalPolicyHistoryCreate { + mutation := newInternalPolicyHistoryMutation(c.config, OpCreate) + return &InternalPolicyHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of OhAuthTooToken entities. -func (c *OhAuthTooTokenClient) CreateBulk(builders ...*OhAuthTooTokenCreate) *OhAuthTooTokenCreateBulk { - return &OhAuthTooTokenCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of InternalPolicyHistory entities. +func (c *InternalPolicyHistoryClient) CreateBulk(builders ...*InternalPolicyHistoryCreate) *InternalPolicyHistoryCreateBulk { + return &InternalPolicyHistoryCreateBulk{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 *OhAuthTooTokenClient) MapCreateBulk(slice any, setFunc func(*OhAuthTooTokenCreate, int)) *OhAuthTooTokenCreateBulk { +func (c *InternalPolicyHistoryClient) MapCreateBulk(slice any, setFunc func(*InternalPolicyHistoryCreate, int)) *InternalPolicyHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &OhAuthTooTokenCreateBulk{err: fmt.Errorf("calling to OhAuthTooTokenClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &InternalPolicyHistoryCreateBulk{err: fmt.Errorf("calling to InternalPolicyHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*OhAuthTooTokenCreate, rv.Len()) + builders := make([]*InternalPolicyHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &OhAuthTooTokenCreateBulk{config: c.config, builders: builders} + return &InternalPolicyHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for OhAuthTooToken. -func (c *OhAuthTooTokenClient) Update() *OhAuthTooTokenUpdate { - mutation := newOhAuthTooTokenMutation(c.config, OpUpdate) - return &OhAuthTooTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for InternalPolicyHistory. +func (c *InternalPolicyHistoryClient) Update() *InternalPolicyHistoryUpdate { + mutation := newInternalPolicyHistoryMutation(c.config, OpUpdate) + return &InternalPolicyHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *OhAuthTooTokenClient) UpdateOne(oatt *OhAuthTooToken) *OhAuthTooTokenUpdateOne { - mutation := newOhAuthTooTokenMutation(c.config, OpUpdateOne, withOhAuthTooToken(oatt)) - return &OhAuthTooTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *InternalPolicyHistoryClient) UpdateOne(iph *InternalPolicyHistory) *InternalPolicyHistoryUpdateOne { + mutation := newInternalPolicyHistoryMutation(c.config, OpUpdateOne, withInternalPolicyHistory(iph)) + return &InternalPolicyHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *OhAuthTooTokenClient) UpdateOneID(id string) *OhAuthTooTokenUpdateOne { - mutation := newOhAuthTooTokenMutation(c.config, OpUpdateOne, withOhAuthTooTokenID(id)) - return &OhAuthTooTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *InternalPolicyHistoryClient) UpdateOneID(id string) *InternalPolicyHistoryUpdateOne { + mutation := newInternalPolicyHistoryMutation(c.config, OpUpdateOne, withInternalPolicyHistoryID(id)) + return &InternalPolicyHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for OhAuthTooToken. -func (c *OhAuthTooTokenClient) Delete() *OhAuthTooTokenDelete { - mutation := newOhAuthTooTokenMutation(c.config, OpDelete) - return &OhAuthTooTokenDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for InternalPolicyHistory. +func (c *InternalPolicyHistoryClient) Delete() *InternalPolicyHistoryDelete { + mutation := newInternalPolicyHistoryMutation(c.config, OpDelete) + return &InternalPolicyHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *OhAuthTooTokenClient) DeleteOne(oatt *OhAuthTooToken) *OhAuthTooTokenDeleteOne { - return c.DeleteOneID(oatt.ID) +func (c *InternalPolicyHistoryClient) DeleteOne(iph *InternalPolicyHistory) *InternalPolicyHistoryDeleteOne { + return c.DeleteOneID(iph.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *OhAuthTooTokenClient) DeleteOneID(id string) *OhAuthTooTokenDeleteOne { - builder := c.Delete().Where(ohauthtootoken.ID(id)) +func (c *InternalPolicyHistoryClient) DeleteOneID(id string) *InternalPolicyHistoryDeleteOne { + builder := c.Delete().Where(internalpolicyhistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &OhAuthTooTokenDeleteOne{builder} + return &InternalPolicyHistoryDeleteOne{builder} } -// Query returns a query builder for OhAuthTooToken. -func (c *OhAuthTooTokenClient) Query() *OhAuthTooTokenQuery { - return &OhAuthTooTokenQuery{ +// Query returns a query builder for InternalPolicyHistory. +func (c *InternalPolicyHistoryClient) Query() *InternalPolicyHistoryQuery { + return &InternalPolicyHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeOhAuthTooToken}, + ctx: &QueryContext{Type: TypeInternalPolicyHistory}, inters: c.Interceptors(), } } -// Get returns a OhAuthTooToken entity by its id. -func (c *OhAuthTooTokenClient) Get(ctx context.Context, id string) (*OhAuthTooToken, error) { - return c.Query().Where(ohauthtootoken.ID(id)).Only(ctx) +// Get returns a InternalPolicyHistory entity by its id. +func (c *InternalPolicyHistoryClient) Get(ctx context.Context, id string) (*InternalPolicyHistory, error) { + return c.Query().Where(internalpolicyhistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *OhAuthTooTokenClient) GetX(ctx context.Context, id string) *OhAuthTooToken { +func (c *InternalPolicyHistoryClient) GetX(ctx context.Context, id string) *InternalPolicyHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -7546,170 +8285,132 @@ func (c *OhAuthTooTokenClient) GetX(ctx context.Context, id string) *OhAuthTooTo return obj } -// QueryIntegration queries the integration edge of a OhAuthTooToken. -func (c *OhAuthTooTokenClient) QueryIntegration(oatt *OhAuthTooToken) *IntegrationQuery { - query := (&IntegrationClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := oatt.ID - step := sqlgraph.NewStep( - sqlgraph.From(ohauthtootoken.Table, ohauthtootoken.FieldID, id), - sqlgraph.To(integration.Table, integration.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, ohauthtootoken.IntegrationTable, ohauthtootoken.IntegrationPrimaryKey...), - ) - schemaConfig := oatt.schemaConfig - step.To.Schema = schemaConfig.Integration - step.Edge.Schema = schemaConfig.IntegrationOauth2tokens - fromV = sqlgraph.Neighbors(oatt.driver.Dialect(), step) - return fromV, nil - } - return query +// Hooks returns the client hooks. +func (c *InternalPolicyHistoryClient) Hooks() []Hook { + return c.hooks.InternalPolicyHistory } -// QueryEvents queries the events edge of a OhAuthTooToken. -func (c *OhAuthTooTokenClient) QueryEvents(oatt *OhAuthTooToken) *EventQuery { - query := (&EventClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := oatt.ID - step := sqlgraph.NewStep( - sqlgraph.From(ohauthtootoken.Table, ohauthtootoken.FieldID, id), - sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, ohauthtootoken.EventsTable, ohauthtootoken.EventsPrimaryKey...), - ) - schemaConfig := oatt.schemaConfig - step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.OhAuthTooTokenEvents - fromV = sqlgraph.Neighbors(oatt.driver.Dialect(), step) - return fromV, nil - } - return query +// Interceptors returns the client interceptors. +func (c *InternalPolicyHistoryClient) Interceptors() []Interceptor { + return c.inters.InternalPolicyHistory } -// Hooks returns the client hooks. -func (c *OhAuthTooTokenClient) Hooks() []Hook { - return c.hooks.OhAuthTooToken -} - -// Interceptors returns the client interceptors. -func (c *OhAuthTooTokenClient) Interceptors() []Interceptor { - return c.inters.OhAuthTooToken -} - -func (c *OhAuthTooTokenClient) mutate(ctx context.Context, m *OhAuthTooTokenMutation) (Value, error) { +func (c *InternalPolicyHistoryClient) mutate(ctx context.Context, m *InternalPolicyHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&OhAuthTooTokenCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&InternalPolicyHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&OhAuthTooTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&InternalPolicyHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&OhAuthTooTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&InternalPolicyHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&OhAuthTooTokenDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&InternalPolicyHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown OhAuthTooToken mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown InternalPolicyHistory mutation op: %q", m.Op()) } } -// OrgMembershipClient is a client for the OrgMembership schema. -type OrgMembershipClient struct { +// InviteClient is a client for the Invite schema. +type InviteClient struct { config } -// NewOrgMembershipClient returns a client for the OrgMembership from the given config. -func NewOrgMembershipClient(c config) *OrgMembershipClient { - return &OrgMembershipClient{config: c} +// NewInviteClient returns a client for the Invite from the given config. +func NewInviteClient(c config) *InviteClient { + return &InviteClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `orgmembership.Hooks(f(g(h())))`. -func (c *OrgMembershipClient) Use(hooks ...Hook) { - c.hooks.OrgMembership = append(c.hooks.OrgMembership, hooks...) +// A call to `Use(f, g, h)` equals to `invite.Hooks(f(g(h())))`. +func (c *InviteClient) Use(hooks ...Hook) { + c.hooks.Invite = append(c.hooks.Invite, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `orgmembership.Intercept(f(g(h())))`. -func (c *OrgMembershipClient) Intercept(interceptors ...Interceptor) { - c.inters.OrgMembership = append(c.inters.OrgMembership, interceptors...) +// A call to `Intercept(f, g, h)` equals to `invite.Intercept(f(g(h())))`. +func (c *InviteClient) Intercept(interceptors ...Interceptor) { + c.inters.Invite = append(c.inters.Invite, interceptors...) } -// Create returns a builder for creating a OrgMembership entity. -func (c *OrgMembershipClient) Create() *OrgMembershipCreate { - mutation := newOrgMembershipMutation(c.config, OpCreate) - return &OrgMembershipCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a Invite entity. +func (c *InviteClient) Create() *InviteCreate { + mutation := newInviteMutation(c.config, OpCreate) + return &InviteCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of OrgMembership entities. -func (c *OrgMembershipClient) CreateBulk(builders ...*OrgMembershipCreate) *OrgMembershipCreateBulk { - return &OrgMembershipCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of Invite entities. +func (c *InviteClient) CreateBulk(builders ...*InviteCreate) *InviteCreateBulk { + return &InviteCreateBulk{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 *OrgMembershipClient) MapCreateBulk(slice any, setFunc func(*OrgMembershipCreate, int)) *OrgMembershipCreateBulk { +func (c *InviteClient) MapCreateBulk(slice any, setFunc func(*InviteCreate, int)) *InviteCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &OrgMembershipCreateBulk{err: fmt.Errorf("calling to OrgMembershipClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &InviteCreateBulk{err: fmt.Errorf("calling to InviteClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*OrgMembershipCreate, rv.Len()) + builders := make([]*InviteCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &OrgMembershipCreateBulk{config: c.config, builders: builders} + return &InviteCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for OrgMembership. -func (c *OrgMembershipClient) Update() *OrgMembershipUpdate { - mutation := newOrgMembershipMutation(c.config, OpUpdate) - return &OrgMembershipUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for Invite. +func (c *InviteClient) Update() *InviteUpdate { + mutation := newInviteMutation(c.config, OpUpdate) + return &InviteUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *OrgMembershipClient) UpdateOne(om *OrgMembership) *OrgMembershipUpdateOne { - mutation := newOrgMembershipMutation(c.config, OpUpdateOne, withOrgMembership(om)) - return &OrgMembershipUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *InviteClient) UpdateOne(i *Invite) *InviteUpdateOne { + mutation := newInviteMutation(c.config, OpUpdateOne, withInvite(i)) + return &InviteUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *OrgMembershipClient) UpdateOneID(id string) *OrgMembershipUpdateOne { - mutation := newOrgMembershipMutation(c.config, OpUpdateOne, withOrgMembershipID(id)) - return &OrgMembershipUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *InviteClient) UpdateOneID(id string) *InviteUpdateOne { + mutation := newInviteMutation(c.config, OpUpdateOne, withInviteID(id)) + return &InviteUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for OrgMembership. -func (c *OrgMembershipClient) Delete() *OrgMembershipDelete { - mutation := newOrgMembershipMutation(c.config, OpDelete) - return &OrgMembershipDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for Invite. +func (c *InviteClient) Delete() *InviteDelete { + mutation := newInviteMutation(c.config, OpDelete) + return &InviteDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *OrgMembershipClient) DeleteOne(om *OrgMembership) *OrgMembershipDeleteOne { - return c.DeleteOneID(om.ID) +func (c *InviteClient) DeleteOne(i *Invite) *InviteDeleteOne { + return c.DeleteOneID(i.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *OrgMembershipClient) DeleteOneID(id string) *OrgMembershipDeleteOne { - builder := c.Delete().Where(orgmembership.ID(id)) +func (c *InviteClient) DeleteOneID(id string) *InviteDeleteOne { + builder := c.Delete().Where(invite.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &OrgMembershipDeleteOne{builder} + return &InviteDeleteOne{builder} } -// Query returns a query builder for OrgMembership. -func (c *OrgMembershipClient) Query() *OrgMembershipQuery { - return &OrgMembershipQuery{ +// Query returns a query builder for Invite. +func (c *InviteClient) Query() *InviteQuery { + return &InviteQuery{ config: c.config, - ctx: &QueryContext{Type: TypeOrgMembership}, + ctx: &QueryContext{Type: TypeInvite}, inters: c.Interceptors(), } } -// Get returns a OrgMembership entity by its id. -func (c *OrgMembershipClient) Get(ctx context.Context, id string) (*OrgMembership, error) { - return c.Query().Where(orgmembership.ID(id)).Only(ctx) +// Get returns a Invite entity by its id. +func (c *InviteClient) Get(ctx context.Context, id string) (*Invite, error) { + return c.Query().Where(invite.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *OrgMembershipClient) GetX(ctx context.Context, id string) *OrgMembership { +func (c *InviteClient) GetX(ctx context.Context, id string) *Invite { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -7717,191 +8418,172 @@ func (c *OrgMembershipClient) GetX(ctx context.Context, id string) *OrgMembershi return obj } -// QueryOrganization queries the organization edge of a OrgMembership. -func (c *OrgMembershipClient) QueryOrganization(om *OrgMembership) *OrganizationQuery { +// QueryOwner queries the owner edge of a Invite. +func (c *InviteClient) QueryOwner(i *Invite) *OrganizationQuery { query := (&OrganizationClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := om.ID + id := i.ID step := sqlgraph.NewStep( - sqlgraph.From(orgmembership.Table, orgmembership.FieldID, id), + sqlgraph.From(invite.Table, invite.FieldID, id), sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, false, orgmembership.OrganizationTable, orgmembership.OrganizationColumn), + sqlgraph.Edge(sqlgraph.M2O, true, invite.OwnerTable, invite.OwnerColumn), ) - schemaConfig := om.schemaConfig + schemaConfig := i.schemaConfig step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.OrgMembership - fromV = sqlgraph.Neighbors(om.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryUser queries the user edge of a OrgMembership. -func (c *OrgMembershipClient) QueryUser(om *OrgMembership) *UserQuery { - query := (&UserClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := om.ID - step := sqlgraph.NewStep( - sqlgraph.From(orgmembership.Table, orgmembership.FieldID, id), - sqlgraph.To(user.Table, user.FieldID), - sqlgraph.Edge(sqlgraph.M2O, false, orgmembership.UserTable, orgmembership.UserColumn), - ) - schemaConfig := om.schemaConfig - step.To.Schema = schemaConfig.User - step.Edge.Schema = schemaConfig.OrgMembership - fromV = sqlgraph.Neighbors(om.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.Invite + fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) return fromV, nil } return query } -// QueryEvents queries the events edge of a OrgMembership. -func (c *OrgMembershipClient) QueryEvents(om *OrgMembership) *EventQuery { +// QueryEvents queries the events edge of a Invite. +func (c *InviteClient) QueryEvents(i *Invite) *EventQuery { query := (&EventClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := om.ID + id := i.ID step := sqlgraph.NewStep( - sqlgraph.From(orgmembership.Table, orgmembership.FieldID, id), + sqlgraph.From(invite.Table, invite.FieldID, id), sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, orgmembership.EventsTable, orgmembership.EventsPrimaryKey...), + sqlgraph.Edge(sqlgraph.M2M, false, invite.EventsTable, invite.EventsPrimaryKey...), ) - schemaConfig := om.schemaConfig + schemaConfig := i.schemaConfig step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.OrgMembershipEvents - fromV = sqlgraph.Neighbors(om.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.InviteEvents + fromV = sqlgraph.Neighbors(i.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *OrgMembershipClient) Hooks() []Hook { - hooks := c.hooks.OrgMembership - return append(hooks[:len(hooks):len(hooks)], orgmembership.Hooks[:]...) +func (c *InviteClient) Hooks() []Hook { + hooks := c.hooks.Invite + return append(hooks[:len(hooks):len(hooks)], invite.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *OrgMembershipClient) Interceptors() []Interceptor { - inters := c.inters.OrgMembership - return append(inters[:len(inters):len(inters)], orgmembership.Interceptors[:]...) +func (c *InviteClient) Interceptors() []Interceptor { + inters := c.inters.Invite + return append(inters[:len(inters):len(inters)], invite.Interceptors[:]...) } -func (c *OrgMembershipClient) mutate(ctx context.Context, m *OrgMembershipMutation) (Value, error) { +func (c *InviteClient) mutate(ctx context.Context, m *InviteMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&OrgMembershipCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&InviteCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&OrgMembershipUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&InviteUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&OrgMembershipUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&InviteUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&OrgMembershipDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&InviteDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown OrgMembership mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown Invite mutation op: %q", m.Op()) } } -// OrgMembershipHistoryClient is a client for the OrgMembershipHistory schema. -type OrgMembershipHistoryClient struct { +// NarrativeClient is a client for the Narrative schema. +type NarrativeClient struct { config } -// NewOrgMembershipHistoryClient returns a client for the OrgMembershipHistory from the given config. -func NewOrgMembershipHistoryClient(c config) *OrgMembershipHistoryClient { - return &OrgMembershipHistoryClient{config: c} +// NewNarrativeClient returns a client for the Narrative from the given config. +func NewNarrativeClient(c config) *NarrativeClient { + return &NarrativeClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `orgmembershiphistory.Hooks(f(g(h())))`. -func (c *OrgMembershipHistoryClient) Use(hooks ...Hook) { - c.hooks.OrgMembershipHistory = append(c.hooks.OrgMembershipHistory, hooks...) +// A call to `Use(f, g, h)` equals to `narrative.Hooks(f(g(h())))`. +func (c *NarrativeClient) Use(hooks ...Hook) { + c.hooks.Narrative = append(c.hooks.Narrative, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `orgmembershiphistory.Intercept(f(g(h())))`. -func (c *OrgMembershipHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.OrgMembershipHistory = append(c.inters.OrgMembershipHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `narrative.Intercept(f(g(h())))`. +func (c *NarrativeClient) Intercept(interceptors ...Interceptor) { + c.inters.Narrative = append(c.inters.Narrative, interceptors...) } -// Create returns a builder for creating a OrgMembershipHistory entity. -func (c *OrgMembershipHistoryClient) Create() *OrgMembershipHistoryCreate { - mutation := newOrgMembershipHistoryMutation(c.config, OpCreate) - return &OrgMembershipHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a Narrative entity. +func (c *NarrativeClient) Create() *NarrativeCreate { + mutation := newNarrativeMutation(c.config, OpCreate) + return &NarrativeCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of OrgMembershipHistory entities. -func (c *OrgMembershipHistoryClient) CreateBulk(builders ...*OrgMembershipHistoryCreate) *OrgMembershipHistoryCreateBulk { - return &OrgMembershipHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of Narrative entities. +func (c *NarrativeClient) CreateBulk(builders ...*NarrativeCreate) *NarrativeCreateBulk { + return &NarrativeCreateBulk{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 *OrgMembershipHistoryClient) MapCreateBulk(slice any, setFunc func(*OrgMembershipHistoryCreate, int)) *OrgMembershipHistoryCreateBulk { +func (c *NarrativeClient) MapCreateBulk(slice any, setFunc func(*NarrativeCreate, int)) *NarrativeCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &OrgMembershipHistoryCreateBulk{err: fmt.Errorf("calling to OrgMembershipHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &NarrativeCreateBulk{err: fmt.Errorf("calling to NarrativeClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*OrgMembershipHistoryCreate, rv.Len()) + builders := make([]*NarrativeCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &OrgMembershipHistoryCreateBulk{config: c.config, builders: builders} + return &NarrativeCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for OrgMembershipHistory. -func (c *OrgMembershipHistoryClient) Update() *OrgMembershipHistoryUpdate { - mutation := newOrgMembershipHistoryMutation(c.config, OpUpdate) - return &OrgMembershipHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for Narrative. +func (c *NarrativeClient) Update() *NarrativeUpdate { + mutation := newNarrativeMutation(c.config, OpUpdate) + return &NarrativeUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *OrgMembershipHistoryClient) UpdateOne(omh *OrgMembershipHistory) *OrgMembershipHistoryUpdateOne { - mutation := newOrgMembershipHistoryMutation(c.config, OpUpdateOne, withOrgMembershipHistory(omh)) - return &OrgMembershipHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *NarrativeClient) UpdateOne(n *Narrative) *NarrativeUpdateOne { + mutation := newNarrativeMutation(c.config, OpUpdateOne, withNarrative(n)) + return &NarrativeUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *OrgMembershipHistoryClient) UpdateOneID(id string) *OrgMembershipHistoryUpdateOne { - mutation := newOrgMembershipHistoryMutation(c.config, OpUpdateOne, withOrgMembershipHistoryID(id)) - return &OrgMembershipHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *NarrativeClient) UpdateOneID(id string) *NarrativeUpdateOne { + mutation := newNarrativeMutation(c.config, OpUpdateOne, withNarrativeID(id)) + return &NarrativeUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for OrgMembershipHistory. -func (c *OrgMembershipHistoryClient) Delete() *OrgMembershipHistoryDelete { - mutation := newOrgMembershipHistoryMutation(c.config, OpDelete) - return &OrgMembershipHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for Narrative. +func (c *NarrativeClient) Delete() *NarrativeDelete { + mutation := newNarrativeMutation(c.config, OpDelete) + return &NarrativeDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *OrgMembershipHistoryClient) DeleteOne(omh *OrgMembershipHistory) *OrgMembershipHistoryDeleteOne { - return c.DeleteOneID(omh.ID) +func (c *NarrativeClient) DeleteOne(n *Narrative) *NarrativeDeleteOne { + return c.DeleteOneID(n.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *OrgMembershipHistoryClient) DeleteOneID(id string) *OrgMembershipHistoryDeleteOne { - builder := c.Delete().Where(orgmembershiphistory.ID(id)) +func (c *NarrativeClient) DeleteOneID(id string) *NarrativeDeleteOne { + builder := c.Delete().Where(narrative.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &OrgMembershipHistoryDeleteOne{builder} + return &NarrativeDeleteOne{builder} } -// Query returns a query builder for OrgMembershipHistory. -func (c *OrgMembershipHistoryClient) Query() *OrgMembershipHistoryQuery { - return &OrgMembershipHistoryQuery{ +// Query returns a query builder for Narrative. +func (c *NarrativeClient) Query() *NarrativeQuery { + return &NarrativeQuery{ config: c.config, - ctx: &QueryContext{Type: TypeOrgMembershipHistory}, + ctx: &QueryContext{Type: TypeNarrative}, inters: c.Interceptors(), } } -// Get returns a OrgMembershipHistory entity by its id. -func (c *OrgMembershipHistoryClient) Get(ctx context.Context, id string) (*OrgMembershipHistory, error) { - return c.Query().Where(orgmembershiphistory.ID(id)).Only(ctx) +// Get returns a Narrative entity by its id. +func (c *NarrativeClient) Get(ctx context.Context, id string) (*Narrative, error) { + return c.Query().Where(narrative.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *OrgMembershipHistoryClient) GetX(ctx context.Context, id string) *OrgMembershipHistory { +func (c *NarrativeClient) GetX(ctx context.Context, id string) *Narrative { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -7909,134 +8591,210 @@ func (c *OrgMembershipHistoryClient) GetX(ctx context.Context, id string) *OrgMe return obj } -// Hooks returns the client hooks. -func (c *OrgMembershipHistoryClient) Hooks() []Hook { - hooks := c.hooks.OrgMembershipHistory - return append(hooks[:len(hooks):len(hooks)], orgmembershiphistory.Hooks[:]...) +// QueryPolicy queries the policy edge of a Narrative. +func (c *NarrativeClient) QueryPolicy(n *Narrative) *InternalPolicyQuery { + query := (&InternalPolicyClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := n.ID + step := sqlgraph.NewStep( + sqlgraph.From(narrative.Table, narrative.FieldID, id), + sqlgraph.To(internalpolicy.Table, internalpolicy.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, narrative.PolicyTable, narrative.PolicyPrimaryKey...), + ) + schemaConfig := n.schemaConfig + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicyNarratives + fromV = sqlgraph.Neighbors(n.driver.Dialect(), step) + return fromV, nil + } + return query } -// Interceptors returns the client interceptors. -func (c *OrgMembershipHistoryClient) Interceptors() []Interceptor { - inters := c.inters.OrgMembershipHistory - return append(inters[:len(inters):len(inters)], orgmembershiphistory.Interceptors[:]...) -} +// QueryControl queries the control edge of a Narrative. +func (c *NarrativeClient) QueryControl(n *Narrative) *ControlQuery { + query := (&ControlClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := n.ID + step := sqlgraph.NewStep( + sqlgraph.From(narrative.Table, narrative.FieldID, id), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, narrative.ControlTable, narrative.ControlPrimaryKey...), + ) + schemaConfig := n.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlNarratives + fromV = sqlgraph.Neighbors(n.driver.Dialect(), step) + return fromV, nil + } + return query +} -func (c *OrgMembershipHistoryClient) mutate(ctx context.Context, m *OrgMembershipHistoryMutation) (Value, error) { +// QueryProcedure queries the procedure edge of a Narrative. +func (c *NarrativeClient) QueryProcedure(n *Narrative) *ProcedureQuery { + query := (&ProcedureClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := n.ID + step := sqlgraph.NewStep( + sqlgraph.From(narrative.Table, narrative.FieldID, id), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, narrative.ProcedureTable, narrative.ProcedurePrimaryKey...), + ) + schemaConfig := n.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.ProcedureNarratives + fromV = sqlgraph.Neighbors(n.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryControlobjective queries the controlobjective edge of a Narrative. +func (c *NarrativeClient) QueryControlobjective(n *Narrative) *ControlObjectiveQuery { + query := (&ControlObjectiveClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := n.ID + step := sqlgraph.NewStep( + sqlgraph.From(narrative.Table, narrative.FieldID, id), + sqlgraph.To(controlobjective.Table, controlobjective.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, narrative.ControlobjectiveTable, narrative.ControlobjectivePrimaryKey...), + ) + schemaConfig := n.schemaConfig + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.ControlObjectiveNarratives + fromV = sqlgraph.Neighbors(n.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// Hooks returns the client hooks. +func (c *NarrativeClient) Hooks() []Hook { + hooks := c.hooks.Narrative + return append(hooks[:len(hooks):len(hooks)], narrative.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *NarrativeClient) Interceptors() []Interceptor { + inters := c.inters.Narrative + return append(inters[:len(inters):len(inters)], narrative.Interceptors[:]...) +} + +func (c *NarrativeClient) mutate(ctx context.Context, m *NarrativeMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&OrgMembershipHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&NarrativeCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&OrgMembershipHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&NarrativeUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&OrgMembershipHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&NarrativeUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&OrgMembershipHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&NarrativeDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown OrgMembershipHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown Narrative mutation op: %q", m.Op()) } } -// OrganizationClient is a client for the Organization schema. -type OrganizationClient struct { +// NarrativeHistoryClient is a client for the NarrativeHistory schema. +type NarrativeHistoryClient struct { config } -// NewOrganizationClient returns a client for the Organization from the given config. -func NewOrganizationClient(c config) *OrganizationClient { - return &OrganizationClient{config: c} +// NewNarrativeHistoryClient returns a client for the NarrativeHistory from the given config. +func NewNarrativeHistoryClient(c config) *NarrativeHistoryClient { + return &NarrativeHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `organization.Hooks(f(g(h())))`. -func (c *OrganizationClient) Use(hooks ...Hook) { - c.hooks.Organization = append(c.hooks.Organization, hooks...) +// A call to `Use(f, g, h)` equals to `narrativehistory.Hooks(f(g(h())))`. +func (c *NarrativeHistoryClient) Use(hooks ...Hook) { + c.hooks.NarrativeHistory = append(c.hooks.NarrativeHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `organization.Intercept(f(g(h())))`. -func (c *OrganizationClient) Intercept(interceptors ...Interceptor) { - c.inters.Organization = append(c.inters.Organization, interceptors...) +// A call to `Intercept(f, g, h)` equals to `narrativehistory.Intercept(f(g(h())))`. +func (c *NarrativeHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.NarrativeHistory = append(c.inters.NarrativeHistory, interceptors...) } -// Create returns a builder for creating a Organization entity. -func (c *OrganizationClient) Create() *OrganizationCreate { - mutation := newOrganizationMutation(c.config, OpCreate) - return &OrganizationCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a NarrativeHistory entity. +func (c *NarrativeHistoryClient) Create() *NarrativeHistoryCreate { + mutation := newNarrativeHistoryMutation(c.config, OpCreate) + return &NarrativeHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of Organization entities. -func (c *OrganizationClient) CreateBulk(builders ...*OrganizationCreate) *OrganizationCreateBulk { - return &OrganizationCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of NarrativeHistory entities. +func (c *NarrativeHistoryClient) CreateBulk(builders ...*NarrativeHistoryCreate) *NarrativeHistoryCreateBulk { + return &NarrativeHistoryCreateBulk{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 *OrganizationClient) MapCreateBulk(slice any, setFunc func(*OrganizationCreate, int)) *OrganizationCreateBulk { +func (c *NarrativeHistoryClient) MapCreateBulk(slice any, setFunc func(*NarrativeHistoryCreate, int)) *NarrativeHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &OrganizationCreateBulk{err: fmt.Errorf("calling to OrganizationClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &NarrativeHistoryCreateBulk{err: fmt.Errorf("calling to NarrativeHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*OrganizationCreate, rv.Len()) + builders := make([]*NarrativeHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &OrganizationCreateBulk{config: c.config, builders: builders} + return &NarrativeHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for Organization. -func (c *OrganizationClient) Update() *OrganizationUpdate { - mutation := newOrganizationMutation(c.config, OpUpdate) - return &OrganizationUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for NarrativeHistory. +func (c *NarrativeHistoryClient) Update() *NarrativeHistoryUpdate { + mutation := newNarrativeHistoryMutation(c.config, OpUpdate) + return &NarrativeHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *OrganizationClient) UpdateOne(o *Organization) *OrganizationUpdateOne { - mutation := newOrganizationMutation(c.config, OpUpdateOne, withOrganization(o)) - return &OrganizationUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *NarrativeHistoryClient) UpdateOne(nh *NarrativeHistory) *NarrativeHistoryUpdateOne { + mutation := newNarrativeHistoryMutation(c.config, OpUpdateOne, withNarrativeHistory(nh)) + return &NarrativeHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *OrganizationClient) UpdateOneID(id string) *OrganizationUpdateOne { - mutation := newOrganizationMutation(c.config, OpUpdateOne, withOrganizationID(id)) - return &OrganizationUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *NarrativeHistoryClient) UpdateOneID(id string) *NarrativeHistoryUpdateOne { + mutation := newNarrativeHistoryMutation(c.config, OpUpdateOne, withNarrativeHistoryID(id)) + return &NarrativeHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for Organization. -func (c *OrganizationClient) Delete() *OrganizationDelete { - mutation := newOrganizationMutation(c.config, OpDelete) - return &OrganizationDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for NarrativeHistory. +func (c *NarrativeHistoryClient) Delete() *NarrativeHistoryDelete { + mutation := newNarrativeHistoryMutation(c.config, OpDelete) + return &NarrativeHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *OrganizationClient) DeleteOne(o *Organization) *OrganizationDeleteOne { - return c.DeleteOneID(o.ID) +func (c *NarrativeHistoryClient) DeleteOne(nh *NarrativeHistory) *NarrativeHistoryDeleteOne { + return c.DeleteOneID(nh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *OrganizationClient) DeleteOneID(id string) *OrganizationDeleteOne { - builder := c.Delete().Where(organization.ID(id)) +func (c *NarrativeHistoryClient) DeleteOneID(id string) *NarrativeHistoryDeleteOne { + builder := c.Delete().Where(narrativehistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &OrganizationDeleteOne{builder} + return &NarrativeHistoryDeleteOne{builder} } -// Query returns a query builder for Organization. -func (c *OrganizationClient) Query() *OrganizationQuery { - return &OrganizationQuery{ +// Query returns a query builder for NarrativeHistory. +func (c *NarrativeHistoryClient) Query() *NarrativeHistoryQuery { + return &NarrativeHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeOrganization}, + ctx: &QueryContext{Type: TypeNarrativeHistory}, inters: c.Interceptors(), } } -// Get returns a Organization entity by its id. -func (c *OrganizationClient) Get(ctx context.Context, id string) (*Organization, error) { - return c.Query().Where(organization.ID(id)).Only(ctx) +// Get returns a NarrativeHistory entity by its id. +func (c *NarrativeHistoryClient) Get(ctx context.Context, id string) (*NarrativeHistory, error) { + return c.Query().Where(narrativehistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *OrganizationClient) GetX(ctx context.Context, id string) *Organization { +func (c *NarrativeHistoryClient) GetX(ctx context.Context, id string) *NarrativeHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -8044,647 +8802,3219 @@ func (c *OrganizationClient) GetX(ctx context.Context, id string) *Organization return obj } -// QueryParent queries the parent edge of a Organization. -func (c *OrganizationClient) QueryParent(o *Organization) *OrganizationQuery { +// Hooks returns the client hooks. +func (c *NarrativeHistoryClient) Hooks() []Hook { + return c.hooks.NarrativeHistory +} + +// Interceptors returns the client interceptors. +func (c *NarrativeHistoryClient) Interceptors() []Interceptor { + return c.inters.NarrativeHistory +} + +func (c *NarrativeHistoryClient) mutate(ctx context.Context, m *NarrativeHistoryMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&NarrativeHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&NarrativeHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&NarrativeHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&NarrativeHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown NarrativeHistory mutation op: %q", m.Op()) + } +} + +// NoteClient is a client for the Note schema. +type NoteClient struct { + config +} + +// NewNoteClient returns a client for the Note from the given config. +func NewNoteClient(c config) *NoteClient { + return &NoteClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `note.Hooks(f(g(h())))`. +func (c *NoteClient) Use(hooks ...Hook) { + c.hooks.Note = append(c.hooks.Note, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `note.Intercept(f(g(h())))`. +func (c *NoteClient) Intercept(interceptors ...Interceptor) { + c.inters.Note = append(c.inters.Note, interceptors...) +} + +// Create returns a builder for creating a Note entity. +func (c *NoteClient) Create() *NoteCreate { + mutation := newNoteMutation(c.config, OpCreate) + return &NoteCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of Note entities. +func (c *NoteClient) CreateBulk(builders ...*NoteCreate) *NoteCreateBulk { + return &NoteCreateBulk{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 *NoteClient) MapCreateBulk(slice any, setFunc func(*NoteCreate, int)) *NoteCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &NoteCreateBulk{err: fmt.Errorf("calling to NoteClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*NoteCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &NoteCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for Note. +func (c *NoteClient) Update() *NoteUpdate { + mutation := newNoteMutation(c.config, OpUpdate) + return &NoteUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *NoteClient) UpdateOne(n *Note) *NoteUpdateOne { + mutation := newNoteMutation(c.config, OpUpdateOne, withNote(n)) + return &NoteUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *NoteClient) UpdateOneID(id string) *NoteUpdateOne { + mutation := newNoteMutation(c.config, OpUpdateOne, withNoteID(id)) + return &NoteUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for Note. +func (c *NoteClient) Delete() *NoteDelete { + mutation := newNoteMutation(c.config, OpDelete) + return &NoteDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *NoteClient) DeleteOne(n *Note) *NoteDeleteOne { + return c.DeleteOneID(n.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *NoteClient) DeleteOneID(id string) *NoteDeleteOne { + builder := c.Delete().Where(note.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &NoteDeleteOne{builder} +} + +// Query returns a query builder for Note. +func (c *NoteClient) Query() *NoteQuery { + return &NoteQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeNote}, + inters: c.Interceptors(), + } +} + +// Get returns a Note entity by its id. +func (c *NoteClient) Get(ctx context.Context, id string) (*Note, error) { + return c.Query().Where(note.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *NoteClient) GetX(ctx context.Context, id string) *Note { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// QueryOwner queries the owner edge of a Note. +func (c *NoteClient) QueryOwner(n *Note) *OrganizationQuery { query := (&OrganizationClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := n.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.From(note.Table, note.FieldID, id), sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, organization.ParentTable, organization.ParentColumn), + sqlgraph.Edge(sqlgraph.M2O, true, note.OwnerTable, note.OwnerColumn), ) - schemaConfig := o.schemaConfig + schemaConfig := n.schemaConfig step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.Organization - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.Note + fromV = sqlgraph.Neighbors(n.driver.Dialect(), step) return fromV, nil } return query } -// QueryChildren queries the children edge of a Organization. -func (c *OrganizationClient) QueryChildren(o *Organization) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() +// QueryEntity queries the entity edge of a Note. +func (c *NoteClient) QueryEntity(n *Note) *EntityQuery { + query := (&EntityClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := n.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ChildrenTable, organization.ChildrenColumn), + sqlgraph.From(note.Table, note.FieldID, id), + sqlgraph.To(entity.Table, entity.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, note.EntityTable, note.EntityColumn), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.Organization - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + schemaConfig := n.schemaConfig + step.To.Schema = schemaConfig.Entity + step.Edge.Schema = schemaConfig.Note + fromV = sqlgraph.Neighbors(n.driver.Dialect(), step) return fromV, nil } return query } -// QueryGroups queries the groups edge of a Organization. +// QuerySubcontrols queries the subcontrols edge of a Note. +func (c *NoteClient) QuerySubcontrols(n *Note) *SubcontrolQuery { + query := (&SubcontrolClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := n.ID + step := sqlgraph.NewStep( + sqlgraph.From(note.Table, note.FieldID, id), + sqlgraph.To(subcontrol.Table, subcontrol.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, note.SubcontrolsTable, note.SubcontrolsColumn), + ) + schemaConfig := n.schemaConfig + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.Subcontrol + fromV = sqlgraph.Neighbors(n.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// Hooks returns the client hooks. +func (c *NoteClient) Hooks() []Hook { + hooks := c.hooks.Note + return append(hooks[:len(hooks):len(hooks)], note.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *NoteClient) Interceptors() []Interceptor { + inters := c.inters.Note + return append(inters[:len(inters):len(inters)], note.Interceptors[:]...) +} + +func (c *NoteClient) mutate(ctx context.Context, m *NoteMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&NoteCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&NoteUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&NoteUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&NoteDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown Note mutation op: %q", m.Op()) + } +} + +// NoteHistoryClient is a client for the NoteHistory schema. +type NoteHistoryClient struct { + config +} + +// NewNoteHistoryClient returns a client for the NoteHistory from the given config. +func NewNoteHistoryClient(c config) *NoteHistoryClient { + return &NoteHistoryClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `notehistory.Hooks(f(g(h())))`. +func (c *NoteHistoryClient) Use(hooks ...Hook) { + c.hooks.NoteHistory = append(c.hooks.NoteHistory, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `notehistory.Intercept(f(g(h())))`. +func (c *NoteHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.NoteHistory = append(c.inters.NoteHistory, interceptors...) +} + +// Create returns a builder for creating a NoteHistory entity. +func (c *NoteHistoryClient) Create() *NoteHistoryCreate { + mutation := newNoteHistoryMutation(c.config, OpCreate) + return &NoteHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of NoteHistory entities. +func (c *NoteHistoryClient) CreateBulk(builders ...*NoteHistoryCreate) *NoteHistoryCreateBulk { + return &NoteHistoryCreateBulk{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 *NoteHistoryClient) MapCreateBulk(slice any, setFunc func(*NoteHistoryCreate, int)) *NoteHistoryCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &NoteHistoryCreateBulk{err: fmt.Errorf("calling to NoteHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*NoteHistoryCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &NoteHistoryCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for NoteHistory. +func (c *NoteHistoryClient) Update() *NoteHistoryUpdate { + mutation := newNoteHistoryMutation(c.config, OpUpdate) + return &NoteHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *NoteHistoryClient) UpdateOne(nh *NoteHistory) *NoteHistoryUpdateOne { + mutation := newNoteHistoryMutation(c.config, OpUpdateOne, withNoteHistory(nh)) + return &NoteHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *NoteHistoryClient) UpdateOneID(id string) *NoteHistoryUpdateOne { + mutation := newNoteHistoryMutation(c.config, OpUpdateOne, withNoteHistoryID(id)) + return &NoteHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for NoteHistory. +func (c *NoteHistoryClient) Delete() *NoteHistoryDelete { + mutation := newNoteHistoryMutation(c.config, OpDelete) + return &NoteHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *NoteHistoryClient) DeleteOne(nh *NoteHistory) *NoteHistoryDeleteOne { + return c.DeleteOneID(nh.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *NoteHistoryClient) DeleteOneID(id string) *NoteHistoryDeleteOne { + builder := c.Delete().Where(notehistory.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &NoteHistoryDeleteOne{builder} +} + +// Query returns a query builder for NoteHistory. +func (c *NoteHistoryClient) Query() *NoteHistoryQuery { + return &NoteHistoryQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeNoteHistory}, + inters: c.Interceptors(), + } +} + +// Get returns a NoteHistory entity by its id. +func (c *NoteHistoryClient) Get(ctx context.Context, id string) (*NoteHistory, error) { + return c.Query().Where(notehistory.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *NoteHistoryClient) GetX(ctx context.Context, id string) *NoteHistory { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// Hooks returns the client hooks. +func (c *NoteHistoryClient) Hooks() []Hook { + hooks := c.hooks.NoteHistory + return append(hooks[:len(hooks):len(hooks)], notehistory.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *NoteHistoryClient) Interceptors() []Interceptor { + inters := c.inters.NoteHistory + return append(inters[:len(inters):len(inters)], notehistory.Interceptors[:]...) +} + +func (c *NoteHistoryClient) mutate(ctx context.Context, m *NoteHistoryMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&NoteHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&NoteHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&NoteHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&NoteHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown NoteHistory mutation op: %q", m.Op()) + } +} + +// OauthProviderClient is a client for the OauthProvider schema. +type OauthProviderClient struct { + config +} + +// NewOauthProviderClient returns a client for the OauthProvider from the given config. +func NewOauthProviderClient(c config) *OauthProviderClient { + return &OauthProviderClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `oauthprovider.Hooks(f(g(h())))`. +func (c *OauthProviderClient) Use(hooks ...Hook) { + c.hooks.OauthProvider = append(c.hooks.OauthProvider, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `oauthprovider.Intercept(f(g(h())))`. +func (c *OauthProviderClient) Intercept(interceptors ...Interceptor) { + c.inters.OauthProvider = append(c.inters.OauthProvider, interceptors...) +} + +// Create returns a builder for creating a OauthProvider entity. +func (c *OauthProviderClient) Create() *OauthProviderCreate { + mutation := newOauthProviderMutation(c.config, OpCreate) + return &OauthProviderCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of OauthProvider entities. +func (c *OauthProviderClient) CreateBulk(builders ...*OauthProviderCreate) *OauthProviderCreateBulk { + return &OauthProviderCreateBulk{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 *OauthProviderClient) MapCreateBulk(slice any, setFunc func(*OauthProviderCreate, int)) *OauthProviderCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &OauthProviderCreateBulk{err: fmt.Errorf("calling to OauthProviderClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*OauthProviderCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &OauthProviderCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for OauthProvider. +func (c *OauthProviderClient) Update() *OauthProviderUpdate { + mutation := newOauthProviderMutation(c.config, OpUpdate) + return &OauthProviderUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *OauthProviderClient) UpdateOne(op *OauthProvider) *OauthProviderUpdateOne { + mutation := newOauthProviderMutation(c.config, OpUpdateOne, withOauthProvider(op)) + return &OauthProviderUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *OauthProviderClient) UpdateOneID(id string) *OauthProviderUpdateOne { + mutation := newOauthProviderMutation(c.config, OpUpdateOne, withOauthProviderID(id)) + return &OauthProviderUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for OauthProvider. +func (c *OauthProviderClient) Delete() *OauthProviderDelete { + mutation := newOauthProviderMutation(c.config, OpDelete) + return &OauthProviderDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *OauthProviderClient) DeleteOne(op *OauthProvider) *OauthProviderDeleteOne { + return c.DeleteOneID(op.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *OauthProviderClient) DeleteOneID(id string) *OauthProviderDeleteOne { + builder := c.Delete().Where(oauthprovider.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &OauthProviderDeleteOne{builder} +} + +// Query returns a query builder for OauthProvider. +func (c *OauthProviderClient) Query() *OauthProviderQuery { + return &OauthProviderQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeOauthProvider}, + inters: c.Interceptors(), + } +} + +// Get returns a OauthProvider entity by its id. +func (c *OauthProviderClient) Get(ctx context.Context, id string) (*OauthProvider, error) { + return c.Query().Where(oauthprovider.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *OauthProviderClient) GetX(ctx context.Context, id string) *OauthProvider { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// QueryOwner queries the owner edge of a OauthProvider. +func (c *OauthProviderClient) QueryOwner(op *OauthProvider) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := op.ID + step := sqlgraph.NewStep( + sqlgraph.From(oauthprovider.Table, oauthprovider.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, oauthprovider.OwnerTable, oauthprovider.OwnerColumn), + ) + schemaConfig := op.schemaConfig + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.OauthProvider + fromV = sqlgraph.Neighbors(op.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// Hooks returns the client hooks. +func (c *OauthProviderClient) Hooks() []Hook { + hooks := c.hooks.OauthProvider + return append(hooks[:len(hooks):len(hooks)], oauthprovider.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *OauthProviderClient) Interceptors() []Interceptor { + inters := c.inters.OauthProvider + return append(inters[:len(inters):len(inters)], oauthprovider.Interceptors[:]...) +} + +func (c *OauthProviderClient) mutate(ctx context.Context, m *OauthProviderMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&OauthProviderCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&OauthProviderUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&OauthProviderUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&OauthProviderDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown OauthProvider mutation op: %q", m.Op()) + } +} + +// OauthProviderHistoryClient is a client for the OauthProviderHistory schema. +type OauthProviderHistoryClient struct { + config +} + +// NewOauthProviderHistoryClient returns a client for the OauthProviderHistory from the given config. +func NewOauthProviderHistoryClient(c config) *OauthProviderHistoryClient { + return &OauthProviderHistoryClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `oauthproviderhistory.Hooks(f(g(h())))`. +func (c *OauthProviderHistoryClient) Use(hooks ...Hook) { + c.hooks.OauthProviderHistory = append(c.hooks.OauthProviderHistory, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `oauthproviderhistory.Intercept(f(g(h())))`. +func (c *OauthProviderHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.OauthProviderHistory = append(c.inters.OauthProviderHistory, interceptors...) +} + +// Create returns a builder for creating a OauthProviderHistory entity. +func (c *OauthProviderHistoryClient) Create() *OauthProviderHistoryCreate { + mutation := newOauthProviderHistoryMutation(c.config, OpCreate) + return &OauthProviderHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of OauthProviderHistory entities. +func (c *OauthProviderHistoryClient) CreateBulk(builders ...*OauthProviderHistoryCreate) *OauthProviderHistoryCreateBulk { + return &OauthProviderHistoryCreateBulk{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 *OauthProviderHistoryClient) MapCreateBulk(slice any, setFunc func(*OauthProviderHistoryCreate, int)) *OauthProviderHistoryCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &OauthProviderHistoryCreateBulk{err: fmt.Errorf("calling to OauthProviderHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*OauthProviderHistoryCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &OauthProviderHistoryCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for OauthProviderHistory. +func (c *OauthProviderHistoryClient) Update() *OauthProviderHistoryUpdate { + mutation := newOauthProviderHistoryMutation(c.config, OpUpdate) + return &OauthProviderHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *OauthProviderHistoryClient) UpdateOne(oph *OauthProviderHistory) *OauthProviderHistoryUpdateOne { + mutation := newOauthProviderHistoryMutation(c.config, OpUpdateOne, withOauthProviderHistory(oph)) + return &OauthProviderHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *OauthProviderHistoryClient) UpdateOneID(id string) *OauthProviderHistoryUpdateOne { + mutation := newOauthProviderHistoryMutation(c.config, OpUpdateOne, withOauthProviderHistoryID(id)) + return &OauthProviderHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for OauthProviderHistory. +func (c *OauthProviderHistoryClient) Delete() *OauthProviderHistoryDelete { + mutation := newOauthProviderHistoryMutation(c.config, OpDelete) + return &OauthProviderHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *OauthProviderHistoryClient) DeleteOne(oph *OauthProviderHistory) *OauthProviderHistoryDeleteOne { + return c.DeleteOneID(oph.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *OauthProviderHistoryClient) DeleteOneID(id string) *OauthProviderHistoryDeleteOne { + builder := c.Delete().Where(oauthproviderhistory.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &OauthProviderHistoryDeleteOne{builder} +} + +// Query returns a query builder for OauthProviderHistory. +func (c *OauthProviderHistoryClient) Query() *OauthProviderHistoryQuery { + return &OauthProviderHistoryQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeOauthProviderHistory}, + inters: c.Interceptors(), + } +} + +// Get returns a OauthProviderHistory entity by its id. +func (c *OauthProviderHistoryClient) Get(ctx context.Context, id string) (*OauthProviderHistory, error) { + return c.Query().Where(oauthproviderhistory.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *OauthProviderHistoryClient) GetX(ctx context.Context, id string) *OauthProviderHistory { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// Hooks returns the client hooks. +func (c *OauthProviderHistoryClient) Hooks() []Hook { + hooks := c.hooks.OauthProviderHistory + return append(hooks[:len(hooks):len(hooks)], oauthproviderhistory.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *OauthProviderHistoryClient) Interceptors() []Interceptor { + inters := c.inters.OauthProviderHistory + return append(inters[:len(inters):len(inters)], oauthproviderhistory.Interceptors[:]...) +} + +func (c *OauthProviderHistoryClient) mutate(ctx context.Context, m *OauthProviderHistoryMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&OauthProviderHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&OauthProviderHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&OauthProviderHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&OauthProviderHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown OauthProviderHistory mutation op: %q", m.Op()) + } +} + +// OhAuthTooTokenClient is a client for the OhAuthTooToken schema. +type OhAuthTooTokenClient struct { + config +} + +// NewOhAuthTooTokenClient returns a client for the OhAuthTooToken from the given config. +func NewOhAuthTooTokenClient(c config) *OhAuthTooTokenClient { + return &OhAuthTooTokenClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `ohauthtootoken.Hooks(f(g(h())))`. +func (c *OhAuthTooTokenClient) Use(hooks ...Hook) { + c.hooks.OhAuthTooToken = append(c.hooks.OhAuthTooToken, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `ohauthtootoken.Intercept(f(g(h())))`. +func (c *OhAuthTooTokenClient) Intercept(interceptors ...Interceptor) { + c.inters.OhAuthTooToken = append(c.inters.OhAuthTooToken, interceptors...) +} + +// Create returns a builder for creating a OhAuthTooToken entity. +func (c *OhAuthTooTokenClient) Create() *OhAuthTooTokenCreate { + mutation := newOhAuthTooTokenMutation(c.config, OpCreate) + return &OhAuthTooTokenCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of OhAuthTooToken entities. +func (c *OhAuthTooTokenClient) CreateBulk(builders ...*OhAuthTooTokenCreate) *OhAuthTooTokenCreateBulk { + return &OhAuthTooTokenCreateBulk{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 *OhAuthTooTokenClient) MapCreateBulk(slice any, setFunc func(*OhAuthTooTokenCreate, int)) *OhAuthTooTokenCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &OhAuthTooTokenCreateBulk{err: fmt.Errorf("calling to OhAuthTooTokenClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*OhAuthTooTokenCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &OhAuthTooTokenCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for OhAuthTooToken. +func (c *OhAuthTooTokenClient) Update() *OhAuthTooTokenUpdate { + mutation := newOhAuthTooTokenMutation(c.config, OpUpdate) + return &OhAuthTooTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *OhAuthTooTokenClient) UpdateOne(oatt *OhAuthTooToken) *OhAuthTooTokenUpdateOne { + mutation := newOhAuthTooTokenMutation(c.config, OpUpdateOne, withOhAuthTooToken(oatt)) + return &OhAuthTooTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *OhAuthTooTokenClient) UpdateOneID(id string) *OhAuthTooTokenUpdateOne { + mutation := newOhAuthTooTokenMutation(c.config, OpUpdateOne, withOhAuthTooTokenID(id)) + return &OhAuthTooTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for OhAuthTooToken. +func (c *OhAuthTooTokenClient) Delete() *OhAuthTooTokenDelete { + mutation := newOhAuthTooTokenMutation(c.config, OpDelete) + return &OhAuthTooTokenDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *OhAuthTooTokenClient) DeleteOne(oatt *OhAuthTooToken) *OhAuthTooTokenDeleteOne { + return c.DeleteOneID(oatt.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *OhAuthTooTokenClient) DeleteOneID(id string) *OhAuthTooTokenDeleteOne { + builder := c.Delete().Where(ohauthtootoken.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &OhAuthTooTokenDeleteOne{builder} +} + +// Query returns a query builder for OhAuthTooToken. +func (c *OhAuthTooTokenClient) Query() *OhAuthTooTokenQuery { + return &OhAuthTooTokenQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeOhAuthTooToken}, + inters: c.Interceptors(), + } +} + +// Get returns a OhAuthTooToken entity by its id. +func (c *OhAuthTooTokenClient) Get(ctx context.Context, id string) (*OhAuthTooToken, error) { + return c.Query().Where(ohauthtootoken.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *OhAuthTooTokenClient) GetX(ctx context.Context, id string) *OhAuthTooToken { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// QueryIntegration queries the integration edge of a OhAuthTooToken. +func (c *OhAuthTooTokenClient) QueryIntegration(oatt *OhAuthTooToken) *IntegrationQuery { + query := (&IntegrationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := oatt.ID + step := sqlgraph.NewStep( + sqlgraph.From(ohauthtootoken.Table, ohauthtootoken.FieldID, id), + sqlgraph.To(integration.Table, integration.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ohauthtootoken.IntegrationTable, ohauthtootoken.IntegrationPrimaryKey...), + ) + schemaConfig := oatt.schemaConfig + step.To.Schema = schemaConfig.Integration + step.Edge.Schema = schemaConfig.IntegrationOauth2tokens + fromV = sqlgraph.Neighbors(oatt.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEvents queries the events edge of a OhAuthTooToken. +func (c *OhAuthTooTokenClient) QueryEvents(oatt *OhAuthTooToken) *EventQuery { + query := (&EventClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := oatt.ID + step := sqlgraph.NewStep( + sqlgraph.From(ohauthtootoken.Table, ohauthtootoken.FieldID, id), + sqlgraph.To(event.Table, event.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ohauthtootoken.EventsTable, ohauthtootoken.EventsPrimaryKey...), + ) + schemaConfig := oatt.schemaConfig + step.To.Schema = schemaConfig.Event + step.Edge.Schema = schemaConfig.OhAuthTooTokenEvents + fromV = sqlgraph.Neighbors(oatt.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// Hooks returns the client hooks. +func (c *OhAuthTooTokenClient) Hooks() []Hook { + return c.hooks.OhAuthTooToken +} + +// Interceptors returns the client interceptors. +func (c *OhAuthTooTokenClient) Interceptors() []Interceptor { + return c.inters.OhAuthTooToken +} + +func (c *OhAuthTooTokenClient) mutate(ctx context.Context, m *OhAuthTooTokenMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&OhAuthTooTokenCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&OhAuthTooTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&OhAuthTooTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&OhAuthTooTokenDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown OhAuthTooToken mutation op: %q", m.Op()) + } +} + +// OrgMembershipClient is a client for the OrgMembership schema. +type OrgMembershipClient struct { + config +} + +// NewOrgMembershipClient returns a client for the OrgMembership from the given config. +func NewOrgMembershipClient(c config) *OrgMembershipClient { + return &OrgMembershipClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `orgmembership.Hooks(f(g(h())))`. +func (c *OrgMembershipClient) Use(hooks ...Hook) { + c.hooks.OrgMembership = append(c.hooks.OrgMembership, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `orgmembership.Intercept(f(g(h())))`. +func (c *OrgMembershipClient) Intercept(interceptors ...Interceptor) { + c.inters.OrgMembership = append(c.inters.OrgMembership, interceptors...) +} + +// Create returns a builder for creating a OrgMembership entity. +func (c *OrgMembershipClient) Create() *OrgMembershipCreate { + mutation := newOrgMembershipMutation(c.config, OpCreate) + return &OrgMembershipCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of OrgMembership entities. +func (c *OrgMembershipClient) CreateBulk(builders ...*OrgMembershipCreate) *OrgMembershipCreateBulk { + return &OrgMembershipCreateBulk{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 *OrgMembershipClient) MapCreateBulk(slice any, setFunc func(*OrgMembershipCreate, int)) *OrgMembershipCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &OrgMembershipCreateBulk{err: fmt.Errorf("calling to OrgMembershipClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*OrgMembershipCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &OrgMembershipCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for OrgMembership. +func (c *OrgMembershipClient) Update() *OrgMembershipUpdate { + mutation := newOrgMembershipMutation(c.config, OpUpdate) + return &OrgMembershipUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *OrgMembershipClient) UpdateOne(om *OrgMembership) *OrgMembershipUpdateOne { + mutation := newOrgMembershipMutation(c.config, OpUpdateOne, withOrgMembership(om)) + return &OrgMembershipUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *OrgMembershipClient) UpdateOneID(id string) *OrgMembershipUpdateOne { + mutation := newOrgMembershipMutation(c.config, OpUpdateOne, withOrgMembershipID(id)) + return &OrgMembershipUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for OrgMembership. +func (c *OrgMembershipClient) Delete() *OrgMembershipDelete { + mutation := newOrgMembershipMutation(c.config, OpDelete) + return &OrgMembershipDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *OrgMembershipClient) DeleteOne(om *OrgMembership) *OrgMembershipDeleteOne { + return c.DeleteOneID(om.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *OrgMembershipClient) DeleteOneID(id string) *OrgMembershipDeleteOne { + builder := c.Delete().Where(orgmembership.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &OrgMembershipDeleteOne{builder} +} + +// Query returns a query builder for OrgMembership. +func (c *OrgMembershipClient) Query() *OrgMembershipQuery { + return &OrgMembershipQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeOrgMembership}, + inters: c.Interceptors(), + } +} + +// Get returns a OrgMembership entity by its id. +func (c *OrgMembershipClient) Get(ctx context.Context, id string) (*OrgMembership, error) { + return c.Query().Where(orgmembership.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *OrgMembershipClient) GetX(ctx context.Context, id string) *OrgMembership { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// QueryOrganization queries the organization edge of a OrgMembership. +func (c *OrgMembershipClient) QueryOrganization(om *OrgMembership) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := om.ID + step := sqlgraph.NewStep( + sqlgraph.From(orgmembership.Table, orgmembership.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, false, orgmembership.OrganizationTable, orgmembership.OrganizationColumn), + ) + schemaConfig := om.schemaConfig + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.OrgMembership + fromV = sqlgraph.Neighbors(om.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryUser queries the user edge of a OrgMembership. +func (c *OrgMembershipClient) QueryUser(om *OrgMembership) *UserQuery { + query := (&UserClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := om.ID + step := sqlgraph.NewStep( + sqlgraph.From(orgmembership.Table, orgmembership.FieldID, id), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2O, false, orgmembership.UserTable, orgmembership.UserColumn), + ) + schemaConfig := om.schemaConfig + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.OrgMembership + fromV = sqlgraph.Neighbors(om.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEvents queries the events edge of a OrgMembership. +func (c *OrgMembershipClient) QueryEvents(om *OrgMembership) *EventQuery { + query := (&EventClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := om.ID + step := sqlgraph.NewStep( + sqlgraph.From(orgmembership.Table, orgmembership.FieldID, id), + sqlgraph.To(event.Table, event.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, orgmembership.EventsTable, orgmembership.EventsPrimaryKey...), + ) + schemaConfig := om.schemaConfig + step.To.Schema = schemaConfig.Event + step.Edge.Schema = schemaConfig.OrgMembershipEvents + fromV = sqlgraph.Neighbors(om.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// Hooks returns the client hooks. +func (c *OrgMembershipClient) Hooks() []Hook { + hooks := c.hooks.OrgMembership + return append(hooks[:len(hooks):len(hooks)], orgmembership.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *OrgMembershipClient) Interceptors() []Interceptor { + inters := c.inters.OrgMembership + return append(inters[:len(inters):len(inters)], orgmembership.Interceptors[:]...) +} + +func (c *OrgMembershipClient) mutate(ctx context.Context, m *OrgMembershipMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&OrgMembershipCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&OrgMembershipUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&OrgMembershipUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&OrgMembershipDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown OrgMembership mutation op: %q", m.Op()) + } +} + +// OrgMembershipHistoryClient is a client for the OrgMembershipHistory schema. +type OrgMembershipHistoryClient struct { + config +} + +// NewOrgMembershipHistoryClient returns a client for the OrgMembershipHistory from the given config. +func NewOrgMembershipHistoryClient(c config) *OrgMembershipHistoryClient { + return &OrgMembershipHistoryClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `orgmembershiphistory.Hooks(f(g(h())))`. +func (c *OrgMembershipHistoryClient) Use(hooks ...Hook) { + c.hooks.OrgMembershipHistory = append(c.hooks.OrgMembershipHistory, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `orgmembershiphistory.Intercept(f(g(h())))`. +func (c *OrgMembershipHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.OrgMembershipHistory = append(c.inters.OrgMembershipHistory, interceptors...) +} + +// Create returns a builder for creating a OrgMembershipHistory entity. +func (c *OrgMembershipHistoryClient) Create() *OrgMembershipHistoryCreate { + mutation := newOrgMembershipHistoryMutation(c.config, OpCreate) + return &OrgMembershipHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of OrgMembershipHistory entities. +func (c *OrgMembershipHistoryClient) CreateBulk(builders ...*OrgMembershipHistoryCreate) *OrgMembershipHistoryCreateBulk { + return &OrgMembershipHistoryCreateBulk{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 *OrgMembershipHistoryClient) MapCreateBulk(slice any, setFunc func(*OrgMembershipHistoryCreate, int)) *OrgMembershipHistoryCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &OrgMembershipHistoryCreateBulk{err: fmt.Errorf("calling to OrgMembershipHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*OrgMembershipHistoryCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &OrgMembershipHistoryCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for OrgMembershipHistory. +func (c *OrgMembershipHistoryClient) Update() *OrgMembershipHistoryUpdate { + mutation := newOrgMembershipHistoryMutation(c.config, OpUpdate) + return &OrgMembershipHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *OrgMembershipHistoryClient) UpdateOne(omh *OrgMembershipHistory) *OrgMembershipHistoryUpdateOne { + mutation := newOrgMembershipHistoryMutation(c.config, OpUpdateOne, withOrgMembershipHistory(omh)) + return &OrgMembershipHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *OrgMembershipHistoryClient) UpdateOneID(id string) *OrgMembershipHistoryUpdateOne { + mutation := newOrgMembershipHistoryMutation(c.config, OpUpdateOne, withOrgMembershipHistoryID(id)) + return &OrgMembershipHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for OrgMembershipHistory. +func (c *OrgMembershipHistoryClient) Delete() *OrgMembershipHistoryDelete { + mutation := newOrgMembershipHistoryMutation(c.config, OpDelete) + return &OrgMembershipHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *OrgMembershipHistoryClient) DeleteOne(omh *OrgMembershipHistory) *OrgMembershipHistoryDeleteOne { + return c.DeleteOneID(omh.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *OrgMembershipHistoryClient) DeleteOneID(id string) *OrgMembershipHistoryDeleteOne { + builder := c.Delete().Where(orgmembershiphistory.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &OrgMembershipHistoryDeleteOne{builder} +} + +// Query returns a query builder for OrgMembershipHistory. +func (c *OrgMembershipHistoryClient) Query() *OrgMembershipHistoryQuery { + return &OrgMembershipHistoryQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeOrgMembershipHistory}, + inters: c.Interceptors(), + } +} + +// Get returns a OrgMembershipHistory entity by its id. +func (c *OrgMembershipHistoryClient) Get(ctx context.Context, id string) (*OrgMembershipHistory, error) { + return c.Query().Where(orgmembershiphistory.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *OrgMembershipHistoryClient) GetX(ctx context.Context, id string) *OrgMembershipHistory { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// Hooks returns the client hooks. +func (c *OrgMembershipHistoryClient) Hooks() []Hook { + hooks := c.hooks.OrgMembershipHistory + return append(hooks[:len(hooks):len(hooks)], orgmembershiphistory.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *OrgMembershipHistoryClient) Interceptors() []Interceptor { + inters := c.inters.OrgMembershipHistory + return append(inters[:len(inters):len(inters)], orgmembershiphistory.Interceptors[:]...) +} + +func (c *OrgMembershipHistoryClient) mutate(ctx context.Context, m *OrgMembershipHistoryMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&OrgMembershipHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&OrgMembershipHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&OrgMembershipHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&OrgMembershipHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown OrgMembershipHistory mutation op: %q", m.Op()) + } +} + +// OrganizationClient is a client for the Organization schema. +type OrganizationClient struct { + config +} + +// NewOrganizationClient returns a client for the Organization from the given config. +func NewOrganizationClient(c config) *OrganizationClient { + return &OrganizationClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `organization.Hooks(f(g(h())))`. +func (c *OrganizationClient) Use(hooks ...Hook) { + c.hooks.Organization = append(c.hooks.Organization, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `organization.Intercept(f(g(h())))`. +func (c *OrganizationClient) Intercept(interceptors ...Interceptor) { + c.inters.Organization = append(c.inters.Organization, interceptors...) +} + +// Create returns a builder for creating a Organization entity. +func (c *OrganizationClient) Create() *OrganizationCreate { + mutation := newOrganizationMutation(c.config, OpCreate) + return &OrganizationCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of Organization entities. +func (c *OrganizationClient) CreateBulk(builders ...*OrganizationCreate) *OrganizationCreateBulk { + return &OrganizationCreateBulk{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 *OrganizationClient) MapCreateBulk(slice any, setFunc func(*OrganizationCreate, int)) *OrganizationCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &OrganizationCreateBulk{err: fmt.Errorf("calling to OrganizationClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*OrganizationCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &OrganizationCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for Organization. +func (c *OrganizationClient) Update() *OrganizationUpdate { + mutation := newOrganizationMutation(c.config, OpUpdate) + return &OrganizationUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *OrganizationClient) UpdateOne(o *Organization) *OrganizationUpdateOne { + mutation := newOrganizationMutation(c.config, OpUpdateOne, withOrganization(o)) + return &OrganizationUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *OrganizationClient) UpdateOneID(id string) *OrganizationUpdateOne { + mutation := newOrganizationMutation(c.config, OpUpdateOne, withOrganizationID(id)) + return &OrganizationUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for Organization. +func (c *OrganizationClient) Delete() *OrganizationDelete { + mutation := newOrganizationMutation(c.config, OpDelete) + return &OrganizationDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *OrganizationClient) DeleteOne(o *Organization) *OrganizationDeleteOne { + return c.DeleteOneID(o.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *OrganizationClient) DeleteOneID(id string) *OrganizationDeleteOne { + builder := c.Delete().Where(organization.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &OrganizationDeleteOne{builder} +} + +// Query returns a query builder for Organization. +func (c *OrganizationClient) Query() *OrganizationQuery { + return &OrganizationQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeOrganization}, + inters: c.Interceptors(), + } +} + +// Get returns a Organization entity by its id. +func (c *OrganizationClient) Get(ctx context.Context, id string) (*Organization, error) { + return c.Query().Where(organization.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *OrganizationClient) GetX(ctx context.Context, id string) *Organization { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// QueryParent queries the parent edge of a Organization. +func (c *OrganizationClient) QueryParent(o *Organization) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, organization.ParentTable, organization.ParentColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.Organization + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryChildren queries the children edge of a Organization. +func (c *OrganizationClient) QueryChildren(o *Organization) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ChildrenTable, organization.ChildrenColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.Organization + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryGroups queries the groups edge of a Organization. func (c *OrganizationClient) QueryGroups(o *Organization) *GroupQuery { query := (&GroupClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.GroupsTable, organization.GroupsColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Group + step.Edge.Schema = schemaConfig.Group + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryTemplates queries the templates edge of a Organization. +func (c *OrganizationClient) QueryTemplates(o *Organization) *TemplateQuery { + query := (&TemplateClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(template.Table, template.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.TemplatesTable, organization.TemplatesColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Template + step.Edge.Schema = schemaConfig.Template + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryIntegrations queries the integrations edge of a Organization. +func (c *OrganizationClient) QueryIntegrations(o *Organization) *IntegrationQuery { + query := (&IntegrationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(integration.Table, integration.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.IntegrationsTable, organization.IntegrationsColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Integration + step.Edge.Schema = schemaConfig.Integration + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QuerySetting queries the setting edge of a Organization. +func (c *OrganizationClient) QuerySetting(o *Organization) *OrganizationSettingQuery { + query := (&OrganizationSettingClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(organizationsetting.Table, organizationsetting.FieldID), + sqlgraph.Edge(sqlgraph.O2O, false, organization.SettingTable, organization.SettingColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.OrganizationSetting + step.Edge.Schema = schemaConfig.OrganizationSetting + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryDocumentdata queries the documentdata edge of a Organization. +func (c *OrganizationClient) QueryDocumentdata(o *Organization) *DocumentDataQuery { + query := (&DocumentDataClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(documentdata.Table, documentdata.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.DocumentdataTable, organization.DocumentdataColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.DocumentData + step.Edge.Schema = schemaConfig.DocumentData + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEntitlements queries the entitlements edge of a Organization. +func (c *OrganizationClient) QueryEntitlements(o *Organization) *EntitlementQuery { + query := (&EntitlementClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(entitlement.Table, entitlement.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EntitlementsTable, organization.EntitlementsColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Entitlement + step.Edge.Schema = schemaConfig.Entitlement + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryOrganizationEntitlement queries the organization_entitlement edge of a Organization. +func (c *OrganizationClient) QueryOrganizationEntitlement(o *Organization) *EntitlementQuery { + query := (&EntitlementClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(entitlement.Table, entitlement.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.OrganizationEntitlementTable, organization.OrganizationEntitlementColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Entitlement + step.Edge.Schema = schemaConfig.Entitlement + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryPersonalAccessTokens queries the personal_access_tokens edge of a Organization. +func (c *OrganizationClient) QueryPersonalAccessTokens(o *Organization) *PersonalAccessTokenQuery { + query := (&PersonalAccessTokenClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(personalaccesstoken.Table, personalaccesstoken.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, organization.PersonalAccessTokensTable, organization.PersonalAccessTokensPrimaryKey...), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.PersonalAccessToken + step.Edge.Schema = schemaConfig.OrganizationPersonalAccessTokens + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryAPITokens queries the api_tokens edge of a Organization. +func (c *OrganizationClient) QueryAPITokens(o *Organization) *APITokenQuery { + query := (&APITokenClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(apitoken.Table, apitoken.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.APITokensTable, organization.APITokensColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.APIToken + step.Edge.Schema = schemaConfig.APIToken + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryOauthprovider queries the oauthprovider edge of a Organization. +func (c *OrganizationClient) QueryOauthprovider(o *Organization) *OauthProviderQuery { + query := (&OauthProviderClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(oauthprovider.Table, oauthprovider.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.OauthproviderTable, organization.OauthproviderColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.OauthProvider + step.Edge.Schema = schemaConfig.OauthProvider + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryUsers queries the users edge of a Organization. +func (c *OrganizationClient) QueryUsers(o *Organization) *UserQuery { + query := (&UserClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, organization.UsersTable, organization.UsersPrimaryKey...), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.OrgMembership + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryInvites queries the invites edge of a Organization. +func (c *OrganizationClient) QueryInvites(o *Organization) *InviteQuery { + query := (&InviteClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(invite.Table, invite.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.InvitesTable, organization.InvitesColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Invite + step.Edge.Schema = schemaConfig.Invite + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QuerySubscribers queries the subscribers edge of a Organization. +func (c *OrganizationClient) QuerySubscribers(o *Organization) *SubscriberQuery { + query := (&SubscriberClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(subscriber.Table, subscriber.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.SubscribersTable, organization.SubscribersColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Subscriber + step.Edge.Schema = schemaConfig.Subscriber + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryWebhooks queries the webhooks edge of a Organization. +func (c *OrganizationClient) QueryWebhooks(o *Organization) *WebhookQuery { + query := (&WebhookClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(webhook.Table, webhook.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.WebhooksTable, organization.WebhooksColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Webhook + step.Edge.Schema = schemaConfig.Webhook + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEvents queries the events edge of a Organization. +func (c *OrganizationClient) QueryEvents(o *Organization) *EventQuery { + query := (&EventClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(event.Table, event.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, organization.EventsTable, organization.EventsPrimaryKey...), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Event + step.Edge.Schema = schemaConfig.OrganizationEvents + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QuerySecrets queries the secrets edge of a Organization. +func (c *OrganizationClient) QuerySecrets(o *Organization) *HushQuery { + query := (&HushClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(hush.Table, hush.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, organization.SecretsTable, organization.SecretsPrimaryKey...), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Hush + step.Edge.Schema = schemaConfig.OrganizationSecrets + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryFeatures queries the features edge of a Organization. +func (c *OrganizationClient) QueryFeatures(o *Organization) *FeatureQuery { + query := (&FeatureClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(feature.Table, feature.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.FeaturesTable, organization.FeaturesColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Feature + step.Edge.Schema = schemaConfig.Feature + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryFiles queries the files edge of a Organization. +func (c *OrganizationClient) QueryFiles(o *Organization) *FileQuery { + query := (&FileClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(file.Table, file.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, organization.FilesTable, organization.FilesPrimaryKey...), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.File + step.Edge.Schema = schemaConfig.OrganizationFiles + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEntitlementplans queries the entitlementplans edge of a Organization. +func (c *OrganizationClient) QueryEntitlementplans(o *Organization) *EntitlementPlanQuery { + query := (&EntitlementPlanClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(entitlementplan.Table, entitlementplan.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EntitlementplansTable, organization.EntitlementplansColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.EntitlementPlan + step.Edge.Schema = schemaConfig.EntitlementPlan + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEntitlementplanfeatures queries the entitlementplanfeatures edge of a Organization. +func (c *OrganizationClient) QueryEntitlementplanfeatures(o *Organization) *EntitlementPlanFeatureQuery { + query := (&EntitlementPlanFeatureClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(entitlementplanfeature.Table, entitlementplanfeature.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EntitlementplanfeaturesTable, organization.EntitlementplanfeaturesColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.EntitlementPlanFeature + step.Edge.Schema = schemaConfig.EntitlementPlanFeature + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEntities queries the entities edge of a Organization. +func (c *OrganizationClient) QueryEntities(o *Organization) *EntityQuery { + query := (&EntityClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(entity.Table, entity.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EntitiesTable, organization.EntitiesColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Entity + step.Edge.Schema = schemaConfig.Entity + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEntitytypes queries the entitytypes edge of a Organization. +func (c *OrganizationClient) QueryEntitytypes(o *Organization) *EntityTypeQuery { + query := (&EntityTypeClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(entitytype.Table, entitytype.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.EntitytypesTable, organization.EntitytypesColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.EntityType + step.Edge.Schema = schemaConfig.EntityType + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryContacts queries the contacts edge of a Organization. +func (c *OrganizationClient) QueryContacts(o *Organization) *ContactQuery { + query := (&ContactClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(contact.Table, contact.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.ContactsTable, organization.ContactsColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Contact + step.Edge.Schema = schemaConfig.Contact + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryNotes queries the notes edge of a Organization. +func (c *OrganizationClient) QueryNotes(o *Organization) *NoteQuery { + query := (&NoteClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(note.Table, note.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.NotesTable, organization.NotesColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.Note + step.Edge.Schema = schemaConfig.Note + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryMembers queries the members edge of a Organization. +func (c *OrganizationClient) QueryMembers(o *Organization) *OrgMembershipQuery { + query := (&OrgMembershipClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := o.ID + step := sqlgraph.NewStep( + sqlgraph.From(organization.Table, organization.FieldID, id), + sqlgraph.To(orgmembership.Table, orgmembership.FieldID), + sqlgraph.Edge(sqlgraph.O2M, true, organization.MembersTable, organization.MembersColumn), + ) + schemaConfig := o.schemaConfig + step.To.Schema = schemaConfig.OrgMembership + step.Edge.Schema = schemaConfig.OrgMembership + fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// Hooks returns the client hooks. +func (c *OrganizationClient) Hooks() []Hook { + hooks := c.hooks.Organization + return append(hooks[:len(hooks):len(hooks)], organization.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *OrganizationClient) Interceptors() []Interceptor { + inters := c.inters.Organization + return append(inters[:len(inters):len(inters)], organization.Interceptors[:]...) +} + +func (c *OrganizationClient) mutate(ctx context.Context, m *OrganizationMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&OrganizationCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&OrganizationUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&OrganizationUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&OrganizationDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown Organization mutation op: %q", m.Op()) + } +} + +// OrganizationHistoryClient is a client for the OrganizationHistory schema. +type OrganizationHistoryClient struct { + config +} + +// NewOrganizationHistoryClient returns a client for the OrganizationHistory from the given config. +func NewOrganizationHistoryClient(c config) *OrganizationHistoryClient { + return &OrganizationHistoryClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `organizationhistory.Hooks(f(g(h())))`. +func (c *OrganizationHistoryClient) Use(hooks ...Hook) { + c.hooks.OrganizationHistory = append(c.hooks.OrganizationHistory, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `organizationhistory.Intercept(f(g(h())))`. +func (c *OrganizationHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.OrganizationHistory = append(c.inters.OrganizationHistory, interceptors...) +} + +// Create returns a builder for creating a OrganizationHistory entity. +func (c *OrganizationHistoryClient) Create() *OrganizationHistoryCreate { + mutation := newOrganizationHistoryMutation(c.config, OpCreate) + return &OrganizationHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of OrganizationHistory entities. +func (c *OrganizationHistoryClient) CreateBulk(builders ...*OrganizationHistoryCreate) *OrganizationHistoryCreateBulk { + return &OrganizationHistoryCreateBulk{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 *OrganizationHistoryClient) MapCreateBulk(slice any, setFunc func(*OrganizationHistoryCreate, int)) *OrganizationHistoryCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &OrganizationHistoryCreateBulk{err: fmt.Errorf("calling to OrganizationHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*OrganizationHistoryCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &OrganizationHistoryCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for OrganizationHistory. +func (c *OrganizationHistoryClient) Update() *OrganizationHistoryUpdate { + mutation := newOrganizationHistoryMutation(c.config, OpUpdate) + return &OrganizationHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *OrganizationHistoryClient) UpdateOne(oh *OrganizationHistory) *OrganizationHistoryUpdateOne { + mutation := newOrganizationHistoryMutation(c.config, OpUpdateOne, withOrganizationHistory(oh)) + return &OrganizationHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *OrganizationHistoryClient) UpdateOneID(id string) *OrganizationHistoryUpdateOne { + mutation := newOrganizationHistoryMutation(c.config, OpUpdateOne, withOrganizationHistoryID(id)) + return &OrganizationHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for OrganizationHistory. +func (c *OrganizationHistoryClient) Delete() *OrganizationHistoryDelete { + mutation := newOrganizationHistoryMutation(c.config, OpDelete) + return &OrganizationHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *OrganizationHistoryClient) DeleteOne(oh *OrganizationHistory) *OrganizationHistoryDeleteOne { + return c.DeleteOneID(oh.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *OrganizationHistoryClient) DeleteOneID(id string) *OrganizationHistoryDeleteOne { + builder := c.Delete().Where(organizationhistory.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &OrganizationHistoryDeleteOne{builder} +} + +// Query returns a query builder for OrganizationHistory. +func (c *OrganizationHistoryClient) Query() *OrganizationHistoryQuery { + return &OrganizationHistoryQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeOrganizationHistory}, + inters: c.Interceptors(), + } +} + +// Get returns a OrganizationHistory entity by its id. +func (c *OrganizationHistoryClient) Get(ctx context.Context, id string) (*OrganizationHistory, error) { + return c.Query().Where(organizationhistory.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *OrganizationHistoryClient) GetX(ctx context.Context, id string) *OrganizationHistory { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// Hooks returns the client hooks. +func (c *OrganizationHistoryClient) Hooks() []Hook { + hooks := c.hooks.OrganizationHistory + return append(hooks[:len(hooks):len(hooks)], organizationhistory.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *OrganizationHistoryClient) Interceptors() []Interceptor { + inters := c.inters.OrganizationHistory + return append(inters[:len(inters):len(inters)], organizationhistory.Interceptors[:]...) +} + +func (c *OrganizationHistoryClient) mutate(ctx context.Context, m *OrganizationHistoryMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&OrganizationHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&OrganizationHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&OrganizationHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&OrganizationHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown OrganizationHistory mutation op: %q", m.Op()) + } +} + +// OrganizationSettingClient is a client for the OrganizationSetting schema. +type OrganizationSettingClient struct { + config +} + +// NewOrganizationSettingClient returns a client for the OrganizationSetting from the given config. +func NewOrganizationSettingClient(c config) *OrganizationSettingClient { + return &OrganizationSettingClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `organizationsetting.Hooks(f(g(h())))`. +func (c *OrganizationSettingClient) Use(hooks ...Hook) { + c.hooks.OrganizationSetting = append(c.hooks.OrganizationSetting, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `organizationsetting.Intercept(f(g(h())))`. +func (c *OrganizationSettingClient) Intercept(interceptors ...Interceptor) { + c.inters.OrganizationSetting = append(c.inters.OrganizationSetting, interceptors...) +} + +// Create returns a builder for creating a OrganizationSetting entity. +func (c *OrganizationSettingClient) Create() *OrganizationSettingCreate { + mutation := newOrganizationSettingMutation(c.config, OpCreate) + return &OrganizationSettingCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of OrganizationSetting entities. +func (c *OrganizationSettingClient) CreateBulk(builders ...*OrganizationSettingCreate) *OrganizationSettingCreateBulk { + return &OrganizationSettingCreateBulk{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 *OrganizationSettingClient) MapCreateBulk(slice any, setFunc func(*OrganizationSettingCreate, int)) *OrganizationSettingCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &OrganizationSettingCreateBulk{err: fmt.Errorf("calling to OrganizationSettingClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*OrganizationSettingCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &OrganizationSettingCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for OrganizationSetting. +func (c *OrganizationSettingClient) Update() *OrganizationSettingUpdate { + mutation := newOrganizationSettingMutation(c.config, OpUpdate) + return &OrganizationSettingUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *OrganizationSettingClient) UpdateOne(os *OrganizationSetting) *OrganizationSettingUpdateOne { + mutation := newOrganizationSettingMutation(c.config, OpUpdateOne, withOrganizationSetting(os)) + return &OrganizationSettingUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *OrganizationSettingClient) UpdateOneID(id string) *OrganizationSettingUpdateOne { + mutation := newOrganizationSettingMutation(c.config, OpUpdateOne, withOrganizationSettingID(id)) + return &OrganizationSettingUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for OrganizationSetting. +func (c *OrganizationSettingClient) Delete() *OrganizationSettingDelete { + mutation := newOrganizationSettingMutation(c.config, OpDelete) + return &OrganizationSettingDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *OrganizationSettingClient) DeleteOne(os *OrganizationSetting) *OrganizationSettingDeleteOne { + return c.DeleteOneID(os.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *OrganizationSettingClient) DeleteOneID(id string) *OrganizationSettingDeleteOne { + builder := c.Delete().Where(organizationsetting.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &OrganizationSettingDeleteOne{builder} +} + +// Query returns a query builder for OrganizationSetting. +func (c *OrganizationSettingClient) Query() *OrganizationSettingQuery { + return &OrganizationSettingQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeOrganizationSetting}, + inters: c.Interceptors(), + } +} + +// Get returns a OrganizationSetting entity by its id. +func (c *OrganizationSettingClient) Get(ctx context.Context, id string) (*OrganizationSetting, error) { + return c.Query().Where(organizationsetting.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *OrganizationSettingClient) GetX(ctx context.Context, id string) *OrganizationSetting { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// QueryOrganization queries the organization edge of a OrganizationSetting. +func (c *OrganizationSettingClient) QueryOrganization(os *OrganizationSetting) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := os.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(group.Table, group.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.GroupsTable, organization.GroupsColumn), + sqlgraph.From(organizationsetting.Table, organizationsetting.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.O2O, true, organizationsetting.OrganizationTable, organizationsetting.OrganizationColumn), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Group - step.Edge.Schema = schemaConfig.Group - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + schemaConfig := os.schemaConfig + step.To.Schema = schemaConfig.Organization + step.Edge.Schema = schemaConfig.OrganizationSetting + fromV = sqlgraph.Neighbors(os.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryFiles queries the files edge of a OrganizationSetting. +func (c *OrganizationSettingClient) QueryFiles(os *OrganizationSetting) *FileQuery { + query := (&FileClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := os.ID + step := sqlgraph.NewStep( + sqlgraph.From(organizationsetting.Table, organizationsetting.FieldID, id), + sqlgraph.To(file.Table, file.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, organizationsetting.FilesTable, organizationsetting.FilesPrimaryKey...), + ) + schemaConfig := os.schemaConfig + step.To.Schema = schemaConfig.File + step.Edge.Schema = schemaConfig.OrganizationSettingFiles + fromV = sqlgraph.Neighbors(os.driver.Dialect(), step) return fromV, nil } - return query + return query +} + +// Hooks returns the client hooks. +func (c *OrganizationSettingClient) Hooks() []Hook { + hooks := c.hooks.OrganizationSetting + return append(hooks[:len(hooks):len(hooks)], organizationsetting.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *OrganizationSettingClient) Interceptors() []Interceptor { + inters := c.inters.OrganizationSetting + return append(inters[:len(inters):len(inters)], organizationsetting.Interceptors[:]...) +} + +func (c *OrganizationSettingClient) mutate(ctx context.Context, m *OrganizationSettingMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&OrganizationSettingCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&OrganizationSettingUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&OrganizationSettingUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&OrganizationSettingDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown OrganizationSetting mutation op: %q", m.Op()) + } +} + +// OrganizationSettingHistoryClient is a client for the OrganizationSettingHistory schema. +type OrganizationSettingHistoryClient struct { + config +} + +// NewOrganizationSettingHistoryClient returns a client for the OrganizationSettingHistory from the given config. +func NewOrganizationSettingHistoryClient(c config) *OrganizationSettingHistoryClient { + return &OrganizationSettingHistoryClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `organizationsettinghistory.Hooks(f(g(h())))`. +func (c *OrganizationSettingHistoryClient) Use(hooks ...Hook) { + c.hooks.OrganizationSettingHistory = append(c.hooks.OrganizationSettingHistory, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `organizationsettinghistory.Intercept(f(g(h())))`. +func (c *OrganizationSettingHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.OrganizationSettingHistory = append(c.inters.OrganizationSettingHistory, interceptors...) +} + +// Create returns a builder for creating a OrganizationSettingHistory entity. +func (c *OrganizationSettingHistoryClient) Create() *OrganizationSettingHistoryCreate { + mutation := newOrganizationSettingHistoryMutation(c.config, OpCreate) + return &OrganizationSettingHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of OrganizationSettingHistory entities. +func (c *OrganizationSettingHistoryClient) CreateBulk(builders ...*OrganizationSettingHistoryCreate) *OrganizationSettingHistoryCreateBulk { + return &OrganizationSettingHistoryCreateBulk{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 *OrganizationSettingHistoryClient) MapCreateBulk(slice any, setFunc func(*OrganizationSettingHistoryCreate, int)) *OrganizationSettingHistoryCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &OrganizationSettingHistoryCreateBulk{err: fmt.Errorf("calling to OrganizationSettingHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*OrganizationSettingHistoryCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &OrganizationSettingHistoryCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for OrganizationSettingHistory. +func (c *OrganizationSettingHistoryClient) Update() *OrganizationSettingHistoryUpdate { + mutation := newOrganizationSettingHistoryMutation(c.config, OpUpdate) + return &OrganizationSettingHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *OrganizationSettingHistoryClient) UpdateOne(osh *OrganizationSettingHistory) *OrganizationSettingHistoryUpdateOne { + mutation := newOrganizationSettingHistoryMutation(c.config, OpUpdateOne, withOrganizationSettingHistory(osh)) + return &OrganizationSettingHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *OrganizationSettingHistoryClient) UpdateOneID(id string) *OrganizationSettingHistoryUpdateOne { + mutation := newOrganizationSettingHistoryMutation(c.config, OpUpdateOne, withOrganizationSettingHistoryID(id)) + return &OrganizationSettingHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for OrganizationSettingHistory. +func (c *OrganizationSettingHistoryClient) Delete() *OrganizationSettingHistoryDelete { + mutation := newOrganizationSettingHistoryMutation(c.config, OpDelete) + return &OrganizationSettingHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *OrganizationSettingHistoryClient) DeleteOne(osh *OrganizationSettingHistory) *OrganizationSettingHistoryDeleteOne { + return c.DeleteOneID(osh.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *OrganizationSettingHistoryClient) DeleteOneID(id string) *OrganizationSettingHistoryDeleteOne { + builder := c.Delete().Where(organizationsettinghistory.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &OrganizationSettingHistoryDeleteOne{builder} +} + +// Query returns a query builder for OrganizationSettingHistory. +func (c *OrganizationSettingHistoryClient) Query() *OrganizationSettingHistoryQuery { + return &OrganizationSettingHistoryQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeOrganizationSettingHistory}, + inters: c.Interceptors(), + } +} + +// Get returns a OrganizationSettingHistory entity by its id. +func (c *OrganizationSettingHistoryClient) Get(ctx context.Context, id string) (*OrganizationSettingHistory, error) { + return c.Query().Where(organizationsettinghistory.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *OrganizationSettingHistoryClient) GetX(ctx context.Context, id string) *OrganizationSettingHistory { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// Hooks returns the client hooks. +func (c *OrganizationSettingHistoryClient) Hooks() []Hook { + hooks := c.hooks.OrganizationSettingHistory + return append(hooks[:len(hooks):len(hooks)], organizationsettinghistory.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *OrganizationSettingHistoryClient) Interceptors() []Interceptor { + inters := c.inters.OrganizationSettingHistory + return append(inters[:len(inters):len(inters)], organizationsettinghistory.Interceptors[:]...) +} + +func (c *OrganizationSettingHistoryClient) mutate(ctx context.Context, m *OrganizationSettingHistoryMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&OrganizationSettingHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&OrganizationSettingHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&OrganizationSettingHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&OrganizationSettingHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown OrganizationSettingHistory mutation op: %q", m.Op()) + } +} + +// PasswordResetTokenClient is a client for the PasswordResetToken schema. +type PasswordResetTokenClient struct { + config +} + +// NewPasswordResetTokenClient returns a client for the PasswordResetToken from the given config. +func NewPasswordResetTokenClient(c config) *PasswordResetTokenClient { + return &PasswordResetTokenClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `passwordresettoken.Hooks(f(g(h())))`. +func (c *PasswordResetTokenClient) Use(hooks ...Hook) { + c.hooks.PasswordResetToken = append(c.hooks.PasswordResetToken, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `passwordresettoken.Intercept(f(g(h())))`. +func (c *PasswordResetTokenClient) Intercept(interceptors ...Interceptor) { + c.inters.PasswordResetToken = append(c.inters.PasswordResetToken, interceptors...) +} + +// Create returns a builder for creating a PasswordResetToken entity. +func (c *PasswordResetTokenClient) Create() *PasswordResetTokenCreate { + mutation := newPasswordResetTokenMutation(c.config, OpCreate) + return &PasswordResetTokenCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of PasswordResetToken entities. +func (c *PasswordResetTokenClient) CreateBulk(builders ...*PasswordResetTokenCreate) *PasswordResetTokenCreateBulk { + return &PasswordResetTokenCreateBulk{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 *PasswordResetTokenClient) MapCreateBulk(slice any, setFunc func(*PasswordResetTokenCreate, int)) *PasswordResetTokenCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &PasswordResetTokenCreateBulk{err: fmt.Errorf("calling to PasswordResetTokenClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*PasswordResetTokenCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &PasswordResetTokenCreateBulk{config: c.config, builders: builders} } -// QueryTemplates queries the templates edge of a Organization. -func (c *OrganizationClient) QueryTemplates(o *Organization) *TemplateQuery { - query := (&TemplateClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(template.Table, template.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.TemplatesTable, organization.TemplatesColumn), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Template - step.Edge.Schema = schemaConfig.Template - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil +// Update returns an update builder for PasswordResetToken. +func (c *PasswordResetTokenClient) Update() *PasswordResetTokenUpdate { + mutation := newPasswordResetTokenMutation(c.config, OpUpdate) + return &PasswordResetTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *PasswordResetTokenClient) UpdateOne(prt *PasswordResetToken) *PasswordResetTokenUpdateOne { + mutation := newPasswordResetTokenMutation(c.config, OpUpdateOne, withPasswordResetToken(prt)) + return &PasswordResetTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *PasswordResetTokenClient) UpdateOneID(id string) *PasswordResetTokenUpdateOne { + mutation := newPasswordResetTokenMutation(c.config, OpUpdateOne, withPasswordResetTokenID(id)) + return &PasswordResetTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for PasswordResetToken. +func (c *PasswordResetTokenClient) Delete() *PasswordResetTokenDelete { + mutation := newPasswordResetTokenMutation(c.config, OpDelete) + return &PasswordResetTokenDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *PasswordResetTokenClient) DeleteOne(prt *PasswordResetToken) *PasswordResetTokenDeleteOne { + return c.DeleteOneID(prt.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *PasswordResetTokenClient) DeleteOneID(id string) *PasswordResetTokenDeleteOne { + builder := c.Delete().Where(passwordresettoken.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &PasswordResetTokenDeleteOne{builder} +} + +// Query returns a query builder for PasswordResetToken. +func (c *PasswordResetTokenClient) Query() *PasswordResetTokenQuery { + return &PasswordResetTokenQuery{ + config: c.config, + ctx: &QueryContext{Type: TypePasswordResetToken}, + inters: c.Interceptors(), } - return query } -// QueryIntegrations queries the integrations edge of a Organization. -func (c *OrganizationClient) QueryIntegrations(o *Organization) *IntegrationQuery { - query := (&IntegrationClient{config: c.config}).Query() +// Get returns a PasswordResetToken entity by its id. +func (c *PasswordResetTokenClient) Get(ctx context.Context, id string) (*PasswordResetToken, error) { + return c.Query().Where(passwordresettoken.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *PasswordResetTokenClient) GetX(ctx context.Context, id string) *PasswordResetToken { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// QueryOwner queries the owner edge of a PasswordResetToken. +func (c *PasswordResetTokenClient) QueryOwner(prt *PasswordResetToken) *UserQuery { + query := (&UserClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := prt.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(integration.Table, integration.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.IntegrationsTable, organization.IntegrationsColumn), + sqlgraph.From(passwordresettoken.Table, passwordresettoken.FieldID, id), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, passwordresettoken.OwnerTable, passwordresettoken.OwnerColumn), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Integration - step.Edge.Schema = schemaConfig.Integration - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + schemaConfig := prt.schemaConfig + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.PasswordResetToken + fromV = sqlgraph.Neighbors(prt.driver.Dialect(), step) return fromV, nil } return query } -// QuerySetting queries the setting edge of a Organization. -func (c *OrganizationClient) QuerySetting(o *Organization) *OrganizationSettingQuery { - query := (&OrganizationSettingClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(organizationsetting.Table, organizationsetting.FieldID), - sqlgraph.Edge(sqlgraph.O2O, false, organization.SettingTable, organization.SettingColumn), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.OrganizationSetting - step.Edge.Schema = schemaConfig.OrganizationSetting - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil +// Hooks returns the client hooks. +func (c *PasswordResetTokenClient) Hooks() []Hook { + hooks := c.hooks.PasswordResetToken + return append(hooks[:len(hooks):len(hooks)], passwordresettoken.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *PasswordResetTokenClient) Interceptors() []Interceptor { + inters := c.inters.PasswordResetToken + return append(inters[:len(inters):len(inters)], passwordresettoken.Interceptors[:]...) +} + +func (c *PasswordResetTokenClient) mutate(ctx context.Context, m *PasswordResetTokenMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&PasswordResetTokenCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&PasswordResetTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&PasswordResetTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&PasswordResetTokenDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown PasswordResetToken mutation op: %q", m.Op()) + } +} + +// PersonalAccessTokenClient is a client for the PersonalAccessToken schema. +type PersonalAccessTokenClient struct { + config +} + +// NewPersonalAccessTokenClient returns a client for the PersonalAccessToken from the given config. +func NewPersonalAccessTokenClient(c config) *PersonalAccessTokenClient { + return &PersonalAccessTokenClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `personalaccesstoken.Hooks(f(g(h())))`. +func (c *PersonalAccessTokenClient) Use(hooks ...Hook) { + c.hooks.PersonalAccessToken = append(c.hooks.PersonalAccessToken, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `personalaccesstoken.Intercept(f(g(h())))`. +func (c *PersonalAccessTokenClient) Intercept(interceptors ...Interceptor) { + c.inters.PersonalAccessToken = append(c.inters.PersonalAccessToken, interceptors...) +} + +// Create returns a builder for creating a PersonalAccessToken entity. +func (c *PersonalAccessTokenClient) Create() *PersonalAccessTokenCreate { + mutation := newPersonalAccessTokenMutation(c.config, OpCreate) + return &PersonalAccessTokenCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of PersonalAccessToken entities. +func (c *PersonalAccessTokenClient) CreateBulk(builders ...*PersonalAccessTokenCreate) *PersonalAccessTokenCreateBulk { + return &PersonalAccessTokenCreateBulk{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 *PersonalAccessTokenClient) MapCreateBulk(slice any, setFunc func(*PersonalAccessTokenCreate, int)) *PersonalAccessTokenCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &PersonalAccessTokenCreateBulk{err: fmt.Errorf("calling to PersonalAccessTokenClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*PersonalAccessTokenCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &PersonalAccessTokenCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for PersonalAccessToken. +func (c *PersonalAccessTokenClient) Update() *PersonalAccessTokenUpdate { + mutation := newPersonalAccessTokenMutation(c.config, OpUpdate) + return &PersonalAccessTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *PersonalAccessTokenClient) UpdateOne(pat *PersonalAccessToken) *PersonalAccessTokenUpdateOne { + mutation := newPersonalAccessTokenMutation(c.config, OpUpdateOne, withPersonalAccessToken(pat)) + return &PersonalAccessTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *PersonalAccessTokenClient) UpdateOneID(id string) *PersonalAccessTokenUpdateOne { + mutation := newPersonalAccessTokenMutation(c.config, OpUpdateOne, withPersonalAccessTokenID(id)) + return &PersonalAccessTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for PersonalAccessToken. +func (c *PersonalAccessTokenClient) Delete() *PersonalAccessTokenDelete { + mutation := newPersonalAccessTokenMutation(c.config, OpDelete) + return &PersonalAccessTokenDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *PersonalAccessTokenClient) DeleteOne(pat *PersonalAccessToken) *PersonalAccessTokenDeleteOne { + return c.DeleteOneID(pat.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *PersonalAccessTokenClient) DeleteOneID(id string) *PersonalAccessTokenDeleteOne { + builder := c.Delete().Where(personalaccesstoken.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &PersonalAccessTokenDeleteOne{builder} +} + +// Query returns a query builder for PersonalAccessToken. +func (c *PersonalAccessTokenClient) Query() *PersonalAccessTokenQuery { + return &PersonalAccessTokenQuery{ + config: c.config, + ctx: &QueryContext{Type: TypePersonalAccessToken}, + inters: c.Interceptors(), } - return query } -// QueryDocumentdata queries the documentdata edge of a Organization. -func (c *OrganizationClient) QueryDocumentdata(o *Organization) *DocumentDataQuery { - query := (&DocumentDataClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(documentdata.Table, documentdata.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.DocumentdataTable, organization.DocumentdataColumn), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.DocumentData - step.Edge.Schema = schemaConfig.DocumentData - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil - } - return query +// Get returns a PersonalAccessToken entity by its id. +func (c *PersonalAccessTokenClient) Get(ctx context.Context, id string) (*PersonalAccessToken, error) { + return c.Query().Where(personalaccesstoken.ID(id)).Only(ctx) } -// QueryEntitlements queries the entitlements edge of a Organization. -func (c *OrganizationClient) QueryEntitlements(o *Organization) *EntitlementQuery { - query := (&EntitlementClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(entitlement.Table, entitlement.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.EntitlementsTable, organization.EntitlementsColumn), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Entitlement - step.Edge.Schema = schemaConfig.Entitlement - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil +// GetX is like Get, but panics if an error occurs. +func (c *PersonalAccessTokenClient) GetX(ctx context.Context, id string) *PersonalAccessToken { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) } - return query + return obj } -// QueryOrganizationEntitlement queries the organization_entitlement edge of a Organization. -func (c *OrganizationClient) QueryOrganizationEntitlement(o *Organization) *EntitlementQuery { - query := (&EntitlementClient{config: c.config}).Query() +// QueryOwner queries the owner edge of a PersonalAccessToken. +func (c *PersonalAccessTokenClient) QueryOwner(pat *PersonalAccessToken) *UserQuery { + query := (&UserClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := pat.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(entitlement.Table, entitlement.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.OrganizationEntitlementTable, organization.OrganizationEntitlementColumn), + sqlgraph.From(personalaccesstoken.Table, personalaccesstoken.FieldID, id), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, personalaccesstoken.OwnerTable, personalaccesstoken.OwnerColumn), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Entitlement - step.Edge.Schema = schemaConfig.Entitlement - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + schemaConfig := pat.schemaConfig + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.PersonalAccessToken + fromV = sqlgraph.Neighbors(pat.driver.Dialect(), step) return fromV, nil } return query } -// QueryPersonalAccessTokens queries the personal_access_tokens edge of a Organization. -func (c *OrganizationClient) QueryPersonalAccessTokens(o *Organization) *PersonalAccessTokenQuery { - query := (&PersonalAccessTokenClient{config: c.config}).Query() +// QueryOrganizations queries the organizations edge of a PersonalAccessToken. +func (c *PersonalAccessTokenClient) QueryOrganizations(pat *PersonalAccessToken) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := pat.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(personalaccesstoken.Table, personalaccesstoken.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, organization.PersonalAccessTokensTable, organization.PersonalAccessTokensPrimaryKey...), + sqlgraph.From(personalaccesstoken.Table, personalaccesstoken.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, personalaccesstoken.OrganizationsTable, personalaccesstoken.OrganizationsPrimaryKey...), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.PersonalAccessToken + schemaConfig := pat.schemaConfig + step.To.Schema = schemaConfig.Organization step.Edge.Schema = schemaConfig.OrganizationPersonalAccessTokens - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + fromV = sqlgraph.Neighbors(pat.driver.Dialect(), step) return fromV, nil } return query } -// QueryAPITokens queries the api_tokens edge of a Organization. -func (c *OrganizationClient) QueryAPITokens(o *Organization) *APITokenQuery { - query := (&APITokenClient{config: c.config}).Query() +// QueryEvents queries the events edge of a PersonalAccessToken. +func (c *PersonalAccessTokenClient) QueryEvents(pat *PersonalAccessToken) *EventQuery { + query := (&EventClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := pat.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(apitoken.Table, apitoken.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.APITokensTable, organization.APITokensColumn), + sqlgraph.From(personalaccesstoken.Table, personalaccesstoken.FieldID, id), + sqlgraph.To(event.Table, event.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, personalaccesstoken.EventsTable, personalaccesstoken.EventsPrimaryKey...), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.APIToken - step.Edge.Schema = schemaConfig.APIToken - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + schemaConfig := pat.schemaConfig + step.To.Schema = schemaConfig.Event + step.Edge.Schema = schemaConfig.PersonalAccessTokenEvents + fromV = sqlgraph.Neighbors(pat.driver.Dialect(), step) return fromV, nil } return query } -// QueryOauthprovider queries the oauthprovider edge of a Organization. -func (c *OrganizationClient) QueryOauthprovider(o *Organization) *OauthProviderQuery { - query := (&OauthProviderClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(oauthprovider.Table, oauthprovider.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.OauthproviderTable, organization.OauthproviderColumn), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.OauthProvider - step.Edge.Schema = schemaConfig.OauthProvider - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil - } - return query +// Hooks returns the client hooks. +func (c *PersonalAccessTokenClient) Hooks() []Hook { + hooks := c.hooks.PersonalAccessToken + return append(hooks[:len(hooks):len(hooks)], personalaccesstoken.Hooks[:]...) } -// QueryUsers queries the users edge of a Organization. -func (c *OrganizationClient) QueryUsers(o *Organization) *UserQuery { - query := (&UserClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(user.Table, user.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, organization.UsersTable, organization.UsersPrimaryKey...), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.User - step.Edge.Schema = schemaConfig.OrgMembership - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil +// Interceptors returns the client interceptors. +func (c *PersonalAccessTokenClient) Interceptors() []Interceptor { + inters := c.inters.PersonalAccessToken + return append(inters[:len(inters):len(inters)], personalaccesstoken.Interceptors[:]...) +} + +func (c *PersonalAccessTokenClient) mutate(ctx context.Context, m *PersonalAccessTokenMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&PersonalAccessTokenCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&PersonalAccessTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&PersonalAccessTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&PersonalAccessTokenDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown PersonalAccessToken mutation op: %q", m.Op()) } - return query } -// QueryInvites queries the invites edge of a Organization. -func (c *OrganizationClient) QueryInvites(o *Organization) *InviteQuery { - query := (&InviteClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(invite.Table, invite.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.InvitesTable, organization.InvitesColumn), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Invite - step.Edge.Schema = schemaConfig.Invite - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil +// ProcedureClient is a client for the Procedure schema. +type ProcedureClient struct { + config +} + +// NewProcedureClient returns a client for the Procedure from the given config. +func NewProcedureClient(c config) *ProcedureClient { + return &ProcedureClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `procedure.Hooks(f(g(h())))`. +func (c *ProcedureClient) Use(hooks ...Hook) { + c.hooks.Procedure = append(c.hooks.Procedure, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `procedure.Intercept(f(g(h())))`. +func (c *ProcedureClient) Intercept(interceptors ...Interceptor) { + c.inters.Procedure = append(c.inters.Procedure, interceptors...) +} + +// Create returns a builder for creating a Procedure entity. +func (c *ProcedureClient) Create() *ProcedureCreate { + mutation := newProcedureMutation(c.config, OpCreate) + return &ProcedureCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of Procedure entities. +func (c *ProcedureClient) CreateBulk(builders ...*ProcedureCreate) *ProcedureCreateBulk { + return &ProcedureCreateBulk{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 *ProcedureClient) MapCreateBulk(slice any, setFunc func(*ProcedureCreate, int)) *ProcedureCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &ProcedureCreateBulk{err: fmt.Errorf("calling to ProcedureClient.MapCreateBulk with wrong type %T, need slice", slice)} } - return query + builders := make([]*ProcedureCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &ProcedureCreateBulk{config: c.config, builders: builders} } -// QuerySubscribers queries the subscribers edge of a Organization. -func (c *OrganizationClient) QuerySubscribers(o *Organization) *SubscriberQuery { - query := (&SubscriberClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(subscriber.Table, subscriber.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.SubscribersTable, organization.SubscribersColumn), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Subscriber - step.Edge.Schema = schemaConfig.Subscriber - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil +// Update returns an update builder for Procedure. +func (c *ProcedureClient) Update() *ProcedureUpdate { + mutation := newProcedureMutation(c.config, OpUpdate) + return &ProcedureUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *ProcedureClient) UpdateOne(pr *Procedure) *ProcedureUpdateOne { + mutation := newProcedureMutation(c.config, OpUpdateOne, withProcedure(pr)) + return &ProcedureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *ProcedureClient) UpdateOneID(id string) *ProcedureUpdateOne { + mutation := newProcedureMutation(c.config, OpUpdateOne, withProcedureID(id)) + return &ProcedureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for Procedure. +func (c *ProcedureClient) Delete() *ProcedureDelete { + mutation := newProcedureMutation(c.config, OpDelete) + return &ProcedureDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *ProcedureClient) DeleteOne(pr *Procedure) *ProcedureDeleteOne { + return c.DeleteOneID(pr.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *ProcedureClient) DeleteOneID(id string) *ProcedureDeleteOne { + builder := c.Delete().Where(procedure.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &ProcedureDeleteOne{builder} +} + +// Query returns a query builder for Procedure. +func (c *ProcedureClient) Query() *ProcedureQuery { + return &ProcedureQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeProcedure}, + inters: c.Interceptors(), } - return query } -// QueryWebhooks queries the webhooks edge of a Organization. -func (c *OrganizationClient) QueryWebhooks(o *Organization) *WebhookQuery { - query := (&WebhookClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(webhook.Table, webhook.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.WebhooksTable, organization.WebhooksColumn), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Webhook - step.Edge.Schema = schemaConfig.Webhook - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil +// Get returns a Procedure entity by its id. +func (c *ProcedureClient) Get(ctx context.Context, id string) (*Procedure, error) { + return c.Query().Where(procedure.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *ProcedureClient) GetX(ctx context.Context, id string) *Procedure { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) } - return query + return obj } -// QueryEvents queries the events edge of a Organization. -func (c *OrganizationClient) QueryEvents(o *Organization) *EventQuery { - query := (&EventClient{config: c.config}).Query() +// QueryControl queries the control edge of a Procedure. +func (c *ProcedureClient) QueryControl(pr *Procedure) *ControlQuery { + query := (&ControlClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := pr.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, organization.EventsTable, organization.EventsPrimaryKey...), + sqlgraph.From(procedure.Table, procedure.FieldID, id), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, procedure.ControlTable, procedure.ControlPrimaryKey...), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.OrganizationEvents - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + schemaConfig := pr.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlProcedures + fromV = sqlgraph.Neighbors(pr.driver.Dialect(), step) return fromV, nil } return query } -// QuerySecrets queries the secrets edge of a Organization. -func (c *OrganizationClient) QuerySecrets(o *Organization) *HushQuery { - query := (&HushClient{config: c.config}).Query() +// QueryInternalpolicy queries the internalpolicy edge of a Procedure. +func (c *ProcedureClient) QueryInternalpolicy(pr *Procedure) *InternalPolicyQuery { + query := (&InternalPolicyClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := pr.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(hush.Table, hush.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, organization.SecretsTable, organization.SecretsPrimaryKey...), + sqlgraph.From(procedure.Table, procedure.FieldID, id), + sqlgraph.To(internalpolicy.Table, internalpolicy.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, procedure.InternalpolicyTable, procedure.InternalpolicyPrimaryKey...), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Hush - step.Edge.Schema = schemaConfig.OrganizationSecrets - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + schemaConfig := pr.schemaConfig + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicyProcedures + fromV = sqlgraph.Neighbors(pr.driver.Dialect(), step) return fromV, nil } return query } -// QueryFeatures queries the features edge of a Organization. -func (c *OrganizationClient) QueryFeatures(o *Organization) *FeatureQuery { - query := (&FeatureClient{config: c.config}).Query() +// QueryNarratives queries the narratives edge of a Procedure. +func (c *ProcedureClient) QueryNarratives(pr *Procedure) *NarrativeQuery { + query := (&NarrativeClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := pr.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(feature.Table, feature.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.FeaturesTable, organization.FeaturesColumn), + sqlgraph.From(procedure.Table, procedure.FieldID, id), + sqlgraph.To(narrative.Table, narrative.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, procedure.NarrativesTable, procedure.NarrativesPrimaryKey...), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Feature - step.Edge.Schema = schemaConfig.Feature - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + schemaConfig := pr.schemaConfig + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.ProcedureNarratives + fromV = sqlgraph.Neighbors(pr.driver.Dialect(), step) return fromV, nil } return query } -// QueryFiles queries the files edge of a Organization. -func (c *OrganizationClient) QueryFiles(o *Organization) *FileQuery { - query := (&FileClient{config: c.config}).Query() +// QueryRisks queries the risks edge of a Procedure. +func (c *ProcedureClient) QueryRisks(pr *Procedure) *RiskQuery { + query := (&RiskClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := pr.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(file.Table, file.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, organization.FilesTable, organization.FilesPrimaryKey...), + sqlgraph.From(procedure.Table, procedure.FieldID, id), + sqlgraph.To(risk.Table, risk.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, procedure.RisksTable, procedure.RisksPrimaryKey...), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.File - step.Edge.Schema = schemaConfig.OrganizationFiles - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + schemaConfig := pr.schemaConfig + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.ProcedureRisks + fromV = sqlgraph.Neighbors(pr.driver.Dialect(), step) return fromV, nil } return query } -// QueryEntitlementplans queries the entitlementplans edge of a Organization. -func (c *OrganizationClient) QueryEntitlementplans(o *Organization) *EntitlementPlanQuery { - query := (&EntitlementPlanClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(entitlementplan.Table, entitlementplan.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.EntitlementplansTable, organization.EntitlementplansColumn), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.EntitlementPlan - step.Edge.Schema = schemaConfig.EntitlementPlan - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil +// Hooks returns the client hooks. +func (c *ProcedureClient) Hooks() []Hook { + hooks := c.hooks.Procedure + return append(hooks[:len(hooks):len(hooks)], procedure.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *ProcedureClient) Interceptors() []Interceptor { + inters := c.inters.Procedure + return append(inters[:len(inters):len(inters)], procedure.Interceptors[:]...) +} + +func (c *ProcedureClient) mutate(ctx context.Context, m *ProcedureMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&ProcedureCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&ProcedureUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&ProcedureUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&ProcedureDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown Procedure mutation op: %q", m.Op()) } - return query } -// QueryEntitlementplanfeatures queries the entitlementplanfeatures edge of a Organization. -func (c *OrganizationClient) QueryEntitlementplanfeatures(o *Organization) *EntitlementPlanFeatureQuery { - query := (&EntitlementPlanFeatureClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(entitlementplanfeature.Table, entitlementplanfeature.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.EntitlementplanfeaturesTable, organization.EntitlementplanfeaturesColumn), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.EntitlementPlanFeature - step.Edge.Schema = schemaConfig.EntitlementPlanFeature - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil +// ProcedureHistoryClient is a client for the ProcedureHistory schema. +type ProcedureHistoryClient struct { + config +} + +// NewProcedureHistoryClient returns a client for the ProcedureHistory from the given config. +func NewProcedureHistoryClient(c config) *ProcedureHistoryClient { + return &ProcedureHistoryClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `procedurehistory.Hooks(f(g(h())))`. +func (c *ProcedureHistoryClient) Use(hooks ...Hook) { + c.hooks.ProcedureHistory = append(c.hooks.ProcedureHistory, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `procedurehistory.Intercept(f(g(h())))`. +func (c *ProcedureHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.ProcedureHistory = append(c.inters.ProcedureHistory, interceptors...) +} + +// Create returns a builder for creating a ProcedureHistory entity. +func (c *ProcedureHistoryClient) Create() *ProcedureHistoryCreate { + mutation := newProcedureHistoryMutation(c.config, OpCreate) + return &ProcedureHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of ProcedureHistory entities. +func (c *ProcedureHistoryClient) CreateBulk(builders ...*ProcedureHistoryCreate) *ProcedureHistoryCreateBulk { + return &ProcedureHistoryCreateBulk{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 *ProcedureHistoryClient) MapCreateBulk(slice any, setFunc func(*ProcedureHistoryCreate, int)) *ProcedureHistoryCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &ProcedureHistoryCreateBulk{err: fmt.Errorf("calling to ProcedureHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - return query + builders := make([]*ProcedureHistoryCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &ProcedureHistoryCreateBulk{config: c.config, builders: builders} } -// QueryEntities queries the entities edge of a Organization. -func (c *OrganizationClient) QueryEntities(o *Organization) *EntityQuery { - query := (&EntityClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(entity.Table, entity.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.EntitiesTable, organization.EntitiesColumn), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Entity - step.Edge.Schema = schemaConfig.Entity - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil +// Update returns an update builder for ProcedureHistory. +func (c *ProcedureHistoryClient) Update() *ProcedureHistoryUpdate { + mutation := newProcedureHistoryMutation(c.config, OpUpdate) + return &ProcedureHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *ProcedureHistoryClient) UpdateOne(ph *ProcedureHistory) *ProcedureHistoryUpdateOne { + mutation := newProcedureHistoryMutation(c.config, OpUpdateOne, withProcedureHistory(ph)) + return &ProcedureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *ProcedureHistoryClient) UpdateOneID(id string) *ProcedureHistoryUpdateOne { + mutation := newProcedureHistoryMutation(c.config, OpUpdateOne, withProcedureHistoryID(id)) + return &ProcedureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for ProcedureHistory. +func (c *ProcedureHistoryClient) Delete() *ProcedureHistoryDelete { + mutation := newProcedureHistoryMutation(c.config, OpDelete) + return &ProcedureHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *ProcedureHistoryClient) DeleteOne(ph *ProcedureHistory) *ProcedureHistoryDeleteOne { + return c.DeleteOneID(ph.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *ProcedureHistoryClient) DeleteOneID(id string) *ProcedureHistoryDeleteOne { + builder := c.Delete().Where(procedurehistory.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &ProcedureHistoryDeleteOne{builder} +} + +// Query returns a query builder for ProcedureHistory. +func (c *ProcedureHistoryClient) Query() *ProcedureHistoryQuery { + return &ProcedureHistoryQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeProcedureHistory}, + inters: c.Interceptors(), } - return query } -// QueryEntitytypes queries the entitytypes edge of a Organization. -func (c *OrganizationClient) QueryEntitytypes(o *Organization) *EntityTypeQuery { - query := (&EntityTypeClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID - step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(entitytype.Table, entitytype.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.EntitytypesTable, organization.EntitytypesColumn), - ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.EntityType - step.Edge.Schema = schemaConfig.EntityType - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) - return fromV, nil +// Get returns a ProcedureHistory entity by its id. +func (c *ProcedureHistoryClient) Get(ctx context.Context, id string) (*ProcedureHistory, error) { + return c.Query().Where(procedurehistory.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *ProcedureHistoryClient) GetX(ctx context.Context, id string) *ProcedureHistory { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) } - return query + return obj } -// QueryContacts queries the contacts edge of a Organization. -func (c *OrganizationClient) QueryContacts(o *Organization) *ContactQuery { - query := (&ContactClient{config: c.config}).Query() +// Hooks returns the client hooks. +func (c *ProcedureHistoryClient) Hooks() []Hook { + return c.hooks.ProcedureHistory +} + +// Interceptors returns the client interceptors. +func (c *ProcedureHistoryClient) Interceptors() []Interceptor { + return c.inters.ProcedureHistory +} + +func (c *ProcedureHistoryClient) mutate(ctx context.Context, m *ProcedureHistoryMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&ProcedureHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&ProcedureHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&ProcedureHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&ProcedureHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown ProcedureHistory mutation op: %q", m.Op()) + } +} + +// RiskClient is a client for the Risk schema. +type RiskClient struct { + config +} + +// NewRiskClient returns a client for the Risk from the given config. +func NewRiskClient(c config) *RiskClient { + return &RiskClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `risk.Hooks(f(g(h())))`. +func (c *RiskClient) Use(hooks ...Hook) { + c.hooks.Risk = append(c.hooks.Risk, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `risk.Intercept(f(g(h())))`. +func (c *RiskClient) Intercept(interceptors ...Interceptor) { + c.inters.Risk = append(c.inters.Risk, interceptors...) +} + +// Create returns a builder for creating a Risk entity. +func (c *RiskClient) Create() *RiskCreate { + mutation := newRiskMutation(c.config, OpCreate) + return &RiskCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of Risk entities. +func (c *RiskClient) CreateBulk(builders ...*RiskCreate) *RiskCreateBulk { + return &RiskCreateBulk{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 *RiskClient) MapCreateBulk(slice any, setFunc func(*RiskCreate, int)) *RiskCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &RiskCreateBulk{err: fmt.Errorf("calling to RiskClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*RiskCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &RiskCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for Risk. +func (c *RiskClient) Update() *RiskUpdate { + mutation := newRiskMutation(c.config, OpUpdate) + return &RiskUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *RiskClient) UpdateOne(r *Risk) *RiskUpdateOne { + mutation := newRiskMutation(c.config, OpUpdateOne, withRisk(r)) + return &RiskUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *RiskClient) UpdateOneID(id string) *RiskUpdateOne { + mutation := newRiskMutation(c.config, OpUpdateOne, withRiskID(id)) + return &RiskUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for Risk. +func (c *RiskClient) Delete() *RiskDelete { + mutation := newRiskMutation(c.config, OpDelete) + return &RiskDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *RiskClient) DeleteOne(r *Risk) *RiskDeleteOne { + return c.DeleteOneID(r.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *RiskClient) DeleteOneID(id string) *RiskDeleteOne { + builder := c.Delete().Where(risk.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &RiskDeleteOne{builder} +} + +// Query returns a query builder for Risk. +func (c *RiskClient) Query() *RiskQuery { + return &RiskQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeRisk}, + inters: c.Interceptors(), + } +} + +// Get returns a Risk entity by its id. +func (c *RiskClient) Get(ctx context.Context, id string) (*Risk, error) { + return c.Query().Where(risk.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *RiskClient) GetX(ctx context.Context, id string) *Risk { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// QueryControl queries the control edge of a Risk. +func (c *RiskClient) QueryControl(r *Risk) *ControlQuery { + query := (&ControlClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := r.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(contact.Table, contact.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.ContactsTable, organization.ContactsColumn), + sqlgraph.From(risk.Table, risk.FieldID, id), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, risk.ControlTable, risk.ControlPrimaryKey...), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Contact - step.Edge.Schema = schemaConfig.Contact - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + schemaConfig := r.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlRisks + fromV = sqlgraph.Neighbors(r.driver.Dialect(), step) return fromV, nil } return query } -// QueryNotes queries the notes edge of a Organization. -func (c *OrganizationClient) QueryNotes(o *Organization) *NoteQuery { - query := (&NoteClient{config: c.config}).Query() +// QueryProcedure queries the procedure edge of a Risk. +func (c *RiskClient) QueryProcedure(r *Risk) *ProcedureQuery { + query := (&ProcedureClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := r.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(note.Table, note.FieldID), - sqlgraph.Edge(sqlgraph.O2M, false, organization.NotesTable, organization.NotesColumn), + sqlgraph.From(risk.Table, risk.FieldID, id), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, risk.ProcedureTable, risk.ProcedurePrimaryKey...), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.Note - step.Edge.Schema = schemaConfig.Note - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + schemaConfig := r.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.ProcedureRisks + fromV = sqlgraph.Neighbors(r.driver.Dialect(), step) return fromV, nil } return query } -// QueryMembers queries the members edge of a Organization. -func (c *OrganizationClient) QueryMembers(o *Organization) *OrgMembershipQuery { - query := (&OrgMembershipClient{config: c.config}).Query() +// QueryActionplans queries the actionplans edge of a Risk. +func (c *RiskClient) QueryActionplans(r *Risk) *ActionPlanQuery { + query := (&ActionPlanClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := o.ID + id := r.ID step := sqlgraph.NewStep( - sqlgraph.From(organization.Table, organization.FieldID, id), - sqlgraph.To(orgmembership.Table, orgmembership.FieldID), - sqlgraph.Edge(sqlgraph.O2M, true, organization.MembersTable, organization.MembersColumn), + sqlgraph.From(risk.Table, risk.FieldID, id), + sqlgraph.To(actionplan.Table, actionplan.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, risk.ActionplansTable, risk.ActionplansPrimaryKey...), ) - schemaConfig := o.schemaConfig - step.To.Schema = schemaConfig.OrgMembership - step.Edge.Schema = schemaConfig.OrgMembership - fromV = sqlgraph.Neighbors(o.driver.Dialect(), step) + schemaConfig := r.schemaConfig + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.RiskActionplans + fromV = sqlgraph.Neighbors(r.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *OrganizationClient) Hooks() []Hook { - hooks := c.hooks.Organization - return append(hooks[:len(hooks):len(hooks)], organization.Hooks[:]...) +func (c *RiskClient) Hooks() []Hook { + hooks := c.hooks.Risk + return append(hooks[:len(hooks):len(hooks)], risk.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *OrganizationClient) Interceptors() []Interceptor { - inters := c.inters.Organization - return append(inters[:len(inters):len(inters)], organization.Interceptors[:]...) +func (c *RiskClient) Interceptors() []Interceptor { + inters := c.inters.Risk + return append(inters[:len(inters):len(inters)], risk.Interceptors[:]...) } -func (c *OrganizationClient) mutate(ctx context.Context, m *OrganizationMutation) (Value, error) { +func (c *RiskClient) mutate(ctx context.Context, m *RiskMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&OrganizationCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&RiskCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&OrganizationUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&RiskUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&OrganizationUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&RiskUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&OrganizationDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&RiskDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown Organization mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown Risk mutation op: %q", m.Op()) } } -// OrganizationHistoryClient is a client for the OrganizationHistory schema. -type OrganizationHistoryClient struct { +// RiskHistoryClient is a client for the RiskHistory schema. +type RiskHistoryClient struct { config } -// NewOrganizationHistoryClient returns a client for the OrganizationHistory from the given config. -func NewOrganizationHistoryClient(c config) *OrganizationHistoryClient { - return &OrganizationHistoryClient{config: c} +// NewRiskHistoryClient returns a client for the RiskHistory from the given config. +func NewRiskHistoryClient(c config) *RiskHistoryClient { + return &RiskHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `organizationhistory.Hooks(f(g(h())))`. -func (c *OrganizationHistoryClient) Use(hooks ...Hook) { - c.hooks.OrganizationHistory = append(c.hooks.OrganizationHistory, hooks...) +// A call to `Use(f, g, h)` equals to `riskhistory.Hooks(f(g(h())))`. +func (c *RiskHistoryClient) Use(hooks ...Hook) { + c.hooks.RiskHistory = append(c.hooks.RiskHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `organizationhistory.Intercept(f(g(h())))`. -func (c *OrganizationHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.OrganizationHistory = append(c.inters.OrganizationHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `riskhistory.Intercept(f(g(h())))`. +func (c *RiskHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.RiskHistory = append(c.inters.RiskHistory, interceptors...) } -// Create returns a builder for creating a OrganizationHistory entity. -func (c *OrganizationHistoryClient) Create() *OrganizationHistoryCreate { - mutation := newOrganizationHistoryMutation(c.config, OpCreate) - return &OrganizationHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a RiskHistory entity. +func (c *RiskHistoryClient) Create() *RiskHistoryCreate { + mutation := newRiskHistoryMutation(c.config, OpCreate) + return &RiskHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of OrganizationHistory entities. -func (c *OrganizationHistoryClient) CreateBulk(builders ...*OrganizationHistoryCreate) *OrganizationHistoryCreateBulk { - return &OrganizationHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of RiskHistory entities. +func (c *RiskHistoryClient) CreateBulk(builders ...*RiskHistoryCreate) *RiskHistoryCreateBulk { + return &RiskHistoryCreateBulk{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 *OrganizationHistoryClient) MapCreateBulk(slice any, setFunc func(*OrganizationHistoryCreate, int)) *OrganizationHistoryCreateBulk { +func (c *RiskHistoryClient) MapCreateBulk(slice any, setFunc func(*RiskHistoryCreate, int)) *RiskHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &OrganizationHistoryCreateBulk{err: fmt.Errorf("calling to OrganizationHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &RiskHistoryCreateBulk{err: fmt.Errorf("calling to RiskHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*OrganizationHistoryCreate, rv.Len()) + builders := make([]*RiskHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &OrganizationHistoryCreateBulk{config: c.config, builders: builders} + return &RiskHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for OrganizationHistory. -func (c *OrganizationHistoryClient) Update() *OrganizationHistoryUpdate { - mutation := newOrganizationHistoryMutation(c.config, OpUpdate) - return &OrganizationHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for RiskHistory. +func (c *RiskHistoryClient) Update() *RiskHistoryUpdate { + mutation := newRiskHistoryMutation(c.config, OpUpdate) + return &RiskHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *OrganizationHistoryClient) UpdateOne(oh *OrganizationHistory) *OrganizationHistoryUpdateOne { - mutation := newOrganizationHistoryMutation(c.config, OpUpdateOne, withOrganizationHistory(oh)) - return &OrganizationHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *RiskHistoryClient) UpdateOne(rh *RiskHistory) *RiskHistoryUpdateOne { + mutation := newRiskHistoryMutation(c.config, OpUpdateOne, withRiskHistory(rh)) + return &RiskHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *OrganizationHistoryClient) UpdateOneID(id string) *OrganizationHistoryUpdateOne { - mutation := newOrganizationHistoryMutation(c.config, OpUpdateOne, withOrganizationHistoryID(id)) - return &OrganizationHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *RiskHistoryClient) UpdateOneID(id string) *RiskHistoryUpdateOne { + mutation := newRiskHistoryMutation(c.config, OpUpdateOne, withRiskHistoryID(id)) + return &RiskHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for OrganizationHistory. -func (c *OrganizationHistoryClient) Delete() *OrganizationHistoryDelete { - mutation := newOrganizationHistoryMutation(c.config, OpDelete) - return &OrganizationHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for RiskHistory. +func (c *RiskHistoryClient) Delete() *RiskHistoryDelete { + mutation := newRiskHistoryMutation(c.config, OpDelete) + return &RiskHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *OrganizationHistoryClient) DeleteOne(oh *OrganizationHistory) *OrganizationHistoryDeleteOne { - return c.DeleteOneID(oh.ID) +func (c *RiskHistoryClient) DeleteOne(rh *RiskHistory) *RiskHistoryDeleteOne { + return c.DeleteOneID(rh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *OrganizationHistoryClient) DeleteOneID(id string) *OrganizationHistoryDeleteOne { - builder := c.Delete().Where(organizationhistory.ID(id)) +func (c *RiskHistoryClient) DeleteOneID(id string) *RiskHistoryDeleteOne { + builder := c.Delete().Where(riskhistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &OrganizationHistoryDeleteOne{builder} + return &RiskHistoryDeleteOne{builder} } -// Query returns a query builder for OrganizationHistory. -func (c *OrganizationHistoryClient) Query() *OrganizationHistoryQuery { - return &OrganizationHistoryQuery{ +// Query returns a query builder for RiskHistory. +func (c *RiskHistoryClient) Query() *RiskHistoryQuery { + return &RiskHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeOrganizationHistory}, + ctx: &QueryContext{Type: TypeRiskHistory}, inters: c.Interceptors(), } } -// Get returns a OrganizationHistory entity by its id. -func (c *OrganizationHistoryClient) Get(ctx context.Context, id string) (*OrganizationHistory, error) { - return c.Query().Where(organizationhistory.ID(id)).Only(ctx) +// Get returns a RiskHistory entity by its id. +func (c *RiskHistoryClient) Get(ctx context.Context, id string) (*RiskHistory, error) { + return c.Query().Where(riskhistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *OrganizationHistoryClient) GetX(ctx context.Context, id string) *OrganizationHistory { +func (c *RiskHistoryClient) GetX(ctx context.Context, id string) *RiskHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -8693,133 +12023,131 @@ func (c *OrganizationHistoryClient) GetX(ctx context.Context, id string) *Organi } // Hooks returns the client hooks. -func (c *OrganizationHistoryClient) Hooks() []Hook { - hooks := c.hooks.OrganizationHistory - return append(hooks[:len(hooks):len(hooks)], organizationhistory.Hooks[:]...) +func (c *RiskHistoryClient) Hooks() []Hook { + return c.hooks.RiskHistory } // Interceptors returns the client interceptors. -func (c *OrganizationHistoryClient) Interceptors() []Interceptor { - inters := c.inters.OrganizationHistory - return append(inters[:len(inters):len(inters)], organizationhistory.Interceptors[:]...) +func (c *RiskHistoryClient) Interceptors() []Interceptor { + return c.inters.RiskHistory } -func (c *OrganizationHistoryClient) mutate(ctx context.Context, m *OrganizationHistoryMutation) (Value, error) { +func (c *RiskHistoryClient) mutate(ctx context.Context, m *RiskHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&OrganizationHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&RiskHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&OrganizationHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&RiskHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&OrganizationHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&RiskHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&OrganizationHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&RiskHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown OrganizationHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown RiskHistory mutation op: %q", m.Op()) } } -// OrganizationSettingClient is a client for the OrganizationSetting schema. -type OrganizationSettingClient struct { +// StandardClient is a client for the Standard schema. +type StandardClient struct { config } -// NewOrganizationSettingClient returns a client for the OrganizationSetting from the given config. -func NewOrganizationSettingClient(c config) *OrganizationSettingClient { - return &OrganizationSettingClient{config: c} +// NewStandardClient returns a client for the Standard from the given config. +func NewStandardClient(c config) *StandardClient { + return &StandardClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `organizationsetting.Hooks(f(g(h())))`. -func (c *OrganizationSettingClient) Use(hooks ...Hook) { - c.hooks.OrganizationSetting = append(c.hooks.OrganizationSetting, hooks...) +// A call to `Use(f, g, h)` equals to `standard.Hooks(f(g(h())))`. +func (c *StandardClient) Use(hooks ...Hook) { + c.hooks.Standard = append(c.hooks.Standard, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `organizationsetting.Intercept(f(g(h())))`. -func (c *OrganizationSettingClient) Intercept(interceptors ...Interceptor) { - c.inters.OrganizationSetting = append(c.inters.OrganizationSetting, interceptors...) +// A call to `Intercept(f, g, h)` equals to `standard.Intercept(f(g(h())))`. +func (c *StandardClient) Intercept(interceptors ...Interceptor) { + c.inters.Standard = append(c.inters.Standard, interceptors...) } -// Create returns a builder for creating a OrganizationSetting entity. -func (c *OrganizationSettingClient) Create() *OrganizationSettingCreate { - mutation := newOrganizationSettingMutation(c.config, OpCreate) - return &OrganizationSettingCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a Standard entity. +func (c *StandardClient) Create() *StandardCreate { + mutation := newStandardMutation(c.config, OpCreate) + return &StandardCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of OrganizationSetting entities. -func (c *OrganizationSettingClient) CreateBulk(builders ...*OrganizationSettingCreate) *OrganizationSettingCreateBulk { - return &OrganizationSettingCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of Standard entities. +func (c *StandardClient) CreateBulk(builders ...*StandardCreate) *StandardCreateBulk { + return &StandardCreateBulk{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 *OrganizationSettingClient) MapCreateBulk(slice any, setFunc func(*OrganizationSettingCreate, int)) *OrganizationSettingCreateBulk { +func (c *StandardClient) MapCreateBulk(slice any, setFunc func(*StandardCreate, int)) *StandardCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &OrganizationSettingCreateBulk{err: fmt.Errorf("calling to OrganizationSettingClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &StandardCreateBulk{err: fmt.Errorf("calling to StandardClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*OrganizationSettingCreate, rv.Len()) + builders := make([]*StandardCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &OrganizationSettingCreateBulk{config: c.config, builders: builders} + return &StandardCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for OrganizationSetting. -func (c *OrganizationSettingClient) Update() *OrganizationSettingUpdate { - mutation := newOrganizationSettingMutation(c.config, OpUpdate) - return &OrganizationSettingUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for Standard. +func (c *StandardClient) Update() *StandardUpdate { + mutation := newStandardMutation(c.config, OpUpdate) + return &StandardUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *OrganizationSettingClient) UpdateOne(os *OrganizationSetting) *OrganizationSettingUpdateOne { - mutation := newOrganizationSettingMutation(c.config, OpUpdateOne, withOrganizationSetting(os)) - return &OrganizationSettingUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *StandardClient) UpdateOne(s *Standard) *StandardUpdateOne { + mutation := newStandardMutation(c.config, OpUpdateOne, withStandard(s)) + return &StandardUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *OrganizationSettingClient) UpdateOneID(id string) *OrganizationSettingUpdateOne { - mutation := newOrganizationSettingMutation(c.config, OpUpdateOne, withOrganizationSettingID(id)) - return &OrganizationSettingUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *StandardClient) UpdateOneID(id string) *StandardUpdateOne { + mutation := newStandardMutation(c.config, OpUpdateOne, withStandardID(id)) + return &StandardUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for OrganizationSetting. -func (c *OrganizationSettingClient) Delete() *OrganizationSettingDelete { - mutation := newOrganizationSettingMutation(c.config, OpDelete) - return &OrganizationSettingDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for Standard. +func (c *StandardClient) Delete() *StandardDelete { + mutation := newStandardMutation(c.config, OpDelete) + return &StandardDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *OrganizationSettingClient) DeleteOne(os *OrganizationSetting) *OrganizationSettingDeleteOne { - return c.DeleteOneID(os.ID) +func (c *StandardClient) DeleteOne(s *Standard) *StandardDeleteOne { + return c.DeleteOneID(s.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *OrganizationSettingClient) DeleteOneID(id string) *OrganizationSettingDeleteOne { - builder := c.Delete().Where(organizationsetting.ID(id)) +func (c *StandardClient) DeleteOneID(id string) *StandardDeleteOne { + builder := c.Delete().Where(standard.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &OrganizationSettingDeleteOne{builder} + return &StandardDeleteOne{builder} } -// Query returns a query builder for OrganizationSetting. -func (c *OrganizationSettingClient) Query() *OrganizationSettingQuery { - return &OrganizationSettingQuery{ +// Query returns a query builder for Standard. +func (c *StandardClient) Query() *StandardQuery { + return &StandardQuery{ config: c.config, - ctx: &QueryContext{Type: TypeOrganizationSetting}, + ctx: &QueryContext{Type: TypeStandard}, inters: c.Interceptors(), } } -// Get returns a OrganizationSetting entity by its id. -func (c *OrganizationSettingClient) Get(ctx context.Context, id string) (*OrganizationSetting, error) { - return c.Query().Where(organizationsetting.ID(id)).Only(ctx) +// Get returns a Standard entity by its id. +func (c *StandardClient) Get(ctx context.Context, id string) (*Standard, error) { + return c.Query().Where(standard.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *OrganizationSettingClient) GetX(ctx context.Context, id string) *OrganizationSetting { +func (c *StandardClient) GetX(ctx context.Context, id string) *Standard { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -8827,172 +12155,210 @@ func (c *OrganizationSettingClient) GetX(ctx context.Context, id string) *Organi return obj } -// QueryOrganization queries the organization edge of a OrganizationSetting. -func (c *OrganizationSettingClient) QueryOrganization(os *OrganizationSetting) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() +// QueryControlobjectives queries the controlobjectives edge of a Standard. +func (c *StandardClient) QueryControlobjectives(s *Standard) *ControlObjectiveQuery { + query := (&ControlObjectiveClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := os.ID + id := s.ID step := sqlgraph.NewStep( - sqlgraph.From(organizationsetting.Table, organizationsetting.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.O2O, true, organizationsetting.OrganizationTable, organizationsetting.OrganizationColumn), + sqlgraph.From(standard.Table, standard.FieldID, id), + sqlgraph.To(controlobjective.Table, controlobjective.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, standard.ControlobjectivesTable, standard.ControlobjectivesPrimaryKey...), ) - schemaConfig := os.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.OrganizationSetting - fromV = sqlgraph.Neighbors(os.driver.Dialect(), step) + schemaConfig := s.schemaConfig + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.StandardControlobjectives + fromV = sqlgraph.Neighbors(s.driver.Dialect(), step) return fromV, nil } return query } -// QueryFiles queries the files edge of a OrganizationSetting. -func (c *OrganizationSettingClient) QueryFiles(os *OrganizationSetting) *FileQuery { - query := (&FileClient{config: c.config}).Query() +// QueryControls queries the controls edge of a Standard. +func (c *StandardClient) QueryControls(s *Standard) *ControlQuery { + query := (&ControlClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := os.ID + id := s.ID step := sqlgraph.NewStep( - sqlgraph.From(organizationsetting.Table, organizationsetting.FieldID, id), - sqlgraph.To(file.Table, file.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, organizationsetting.FilesTable, organizationsetting.FilesPrimaryKey...), + sqlgraph.From(standard.Table, standard.FieldID, id), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, standard.ControlsTable, standard.ControlsPrimaryKey...), ) - schemaConfig := os.schemaConfig - step.To.Schema = schemaConfig.File - step.Edge.Schema = schemaConfig.OrganizationSettingFiles - fromV = sqlgraph.Neighbors(os.driver.Dialect(), step) + schemaConfig := s.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.StandardControls + fromV = sqlgraph.Neighbors(s.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryProcedures queries the procedures edge of a Standard. +func (c *StandardClient) QueryProcedures(s *Standard) *ProcedureQuery { + query := (&ProcedureClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := s.ID + step := sqlgraph.NewStep( + sqlgraph.From(standard.Table, standard.FieldID, id), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, standard.ProceduresTable, standard.ProceduresColumn), + ) + schemaConfig := s.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.Procedure + fromV = sqlgraph.Neighbors(s.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryActionplans queries the actionplans edge of a Standard. +func (c *StandardClient) QueryActionplans(s *Standard) *ActionPlanQuery { + query := (&ActionPlanClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := s.ID + step := sqlgraph.NewStep( + sqlgraph.From(standard.Table, standard.FieldID, id), + sqlgraph.To(actionplan.Table, actionplan.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, standard.ActionplansTable, standard.ActionplansPrimaryKey...), + ) + schemaConfig := s.schemaConfig + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.StandardActionplans + fromV = sqlgraph.Neighbors(s.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *OrganizationSettingClient) Hooks() []Hook { - hooks := c.hooks.OrganizationSetting - return append(hooks[:len(hooks):len(hooks)], organizationsetting.Hooks[:]...) +func (c *StandardClient) Hooks() []Hook { + hooks := c.hooks.Standard + return append(hooks[:len(hooks):len(hooks)], standard.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *OrganizationSettingClient) Interceptors() []Interceptor { - inters := c.inters.OrganizationSetting - return append(inters[:len(inters):len(inters)], organizationsetting.Interceptors[:]...) +func (c *StandardClient) Interceptors() []Interceptor { + inters := c.inters.Standard + return append(inters[:len(inters):len(inters)], standard.Interceptors[:]...) } -func (c *OrganizationSettingClient) mutate(ctx context.Context, m *OrganizationSettingMutation) (Value, error) { +func (c *StandardClient) mutate(ctx context.Context, m *StandardMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&OrganizationSettingCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&StandardCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&OrganizationSettingUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&StandardUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&OrganizationSettingUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&StandardUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&OrganizationSettingDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&StandardDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown OrganizationSetting mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown Standard mutation op: %q", m.Op()) } } -// OrganizationSettingHistoryClient is a client for the OrganizationSettingHistory schema. -type OrganizationSettingHistoryClient struct { +// StandardHistoryClient is a client for the StandardHistory schema. +type StandardHistoryClient struct { config } -// NewOrganizationSettingHistoryClient returns a client for the OrganizationSettingHistory from the given config. -func NewOrganizationSettingHistoryClient(c config) *OrganizationSettingHistoryClient { - return &OrganizationSettingHistoryClient{config: c} +// NewStandardHistoryClient returns a client for the StandardHistory from the given config. +func NewStandardHistoryClient(c config) *StandardHistoryClient { + return &StandardHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `organizationsettinghistory.Hooks(f(g(h())))`. -func (c *OrganizationSettingHistoryClient) Use(hooks ...Hook) { - c.hooks.OrganizationSettingHistory = append(c.hooks.OrganizationSettingHistory, hooks...) +// A call to `Use(f, g, h)` equals to `standardhistory.Hooks(f(g(h())))`. +func (c *StandardHistoryClient) Use(hooks ...Hook) { + c.hooks.StandardHistory = append(c.hooks.StandardHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `organizationsettinghistory.Intercept(f(g(h())))`. -func (c *OrganizationSettingHistoryClient) Intercept(interceptors ...Interceptor) { - c.inters.OrganizationSettingHistory = append(c.inters.OrganizationSettingHistory, interceptors...) +// A call to `Intercept(f, g, h)` equals to `standardhistory.Intercept(f(g(h())))`. +func (c *StandardHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.StandardHistory = append(c.inters.StandardHistory, interceptors...) } -// Create returns a builder for creating a OrganizationSettingHistory entity. -func (c *OrganizationSettingHistoryClient) Create() *OrganizationSettingHistoryCreate { - mutation := newOrganizationSettingHistoryMutation(c.config, OpCreate) - return &OrganizationSettingHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a StandardHistory entity. +func (c *StandardHistoryClient) Create() *StandardHistoryCreate { + mutation := newStandardHistoryMutation(c.config, OpCreate) + return &StandardHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of OrganizationSettingHistory entities. -func (c *OrganizationSettingHistoryClient) CreateBulk(builders ...*OrganizationSettingHistoryCreate) *OrganizationSettingHistoryCreateBulk { - return &OrganizationSettingHistoryCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of StandardHistory entities. +func (c *StandardHistoryClient) CreateBulk(builders ...*StandardHistoryCreate) *StandardHistoryCreateBulk { + return &StandardHistoryCreateBulk{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 *OrganizationSettingHistoryClient) MapCreateBulk(slice any, setFunc func(*OrganizationSettingHistoryCreate, int)) *OrganizationSettingHistoryCreateBulk { +func (c *StandardHistoryClient) MapCreateBulk(slice any, setFunc func(*StandardHistoryCreate, int)) *StandardHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &OrganizationSettingHistoryCreateBulk{err: fmt.Errorf("calling to OrganizationSettingHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &StandardHistoryCreateBulk{err: fmt.Errorf("calling to StandardHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*OrganizationSettingHistoryCreate, rv.Len()) + builders := make([]*StandardHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &OrganizationSettingHistoryCreateBulk{config: c.config, builders: builders} + return &StandardHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for OrganizationSettingHistory. -func (c *OrganizationSettingHistoryClient) Update() *OrganizationSettingHistoryUpdate { - mutation := newOrganizationSettingHistoryMutation(c.config, OpUpdate) - return &OrganizationSettingHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for StandardHistory. +func (c *StandardHistoryClient) Update() *StandardHistoryUpdate { + mutation := newStandardHistoryMutation(c.config, OpUpdate) + return &StandardHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *OrganizationSettingHistoryClient) UpdateOne(osh *OrganizationSettingHistory) *OrganizationSettingHistoryUpdateOne { - mutation := newOrganizationSettingHistoryMutation(c.config, OpUpdateOne, withOrganizationSettingHistory(osh)) - return &OrganizationSettingHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *StandardHistoryClient) UpdateOne(sh *StandardHistory) *StandardHistoryUpdateOne { + mutation := newStandardHistoryMutation(c.config, OpUpdateOne, withStandardHistory(sh)) + return &StandardHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *OrganizationSettingHistoryClient) UpdateOneID(id string) *OrganizationSettingHistoryUpdateOne { - mutation := newOrganizationSettingHistoryMutation(c.config, OpUpdateOne, withOrganizationSettingHistoryID(id)) - return &OrganizationSettingHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *StandardHistoryClient) UpdateOneID(id string) *StandardHistoryUpdateOne { + mutation := newStandardHistoryMutation(c.config, OpUpdateOne, withStandardHistoryID(id)) + return &StandardHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for OrganizationSettingHistory. -func (c *OrganizationSettingHistoryClient) Delete() *OrganizationSettingHistoryDelete { - mutation := newOrganizationSettingHistoryMutation(c.config, OpDelete) - return &OrganizationSettingHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for StandardHistory. +func (c *StandardHistoryClient) Delete() *StandardHistoryDelete { + mutation := newStandardHistoryMutation(c.config, OpDelete) + return &StandardHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *OrganizationSettingHistoryClient) DeleteOne(osh *OrganizationSettingHistory) *OrganizationSettingHistoryDeleteOne { - return c.DeleteOneID(osh.ID) +func (c *StandardHistoryClient) DeleteOne(sh *StandardHistory) *StandardHistoryDeleteOne { + return c.DeleteOneID(sh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *OrganizationSettingHistoryClient) DeleteOneID(id string) *OrganizationSettingHistoryDeleteOne { - builder := c.Delete().Where(organizationsettinghistory.ID(id)) +func (c *StandardHistoryClient) DeleteOneID(id string) *StandardHistoryDeleteOne { + builder := c.Delete().Where(standardhistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &OrganizationSettingHistoryDeleteOne{builder} + return &StandardHistoryDeleteOne{builder} } -// Query returns a query builder for OrganizationSettingHistory. -func (c *OrganizationSettingHistoryClient) Query() *OrganizationSettingHistoryQuery { - return &OrganizationSettingHistoryQuery{ +// Query returns a query builder for StandardHistory. +func (c *StandardHistoryClient) Query() *StandardHistoryQuery { + return &StandardHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypeOrganizationSettingHistory}, + ctx: &QueryContext{Type: TypeStandardHistory}, inters: c.Interceptors(), } } -// Get returns a OrganizationSettingHistory entity by its id. -func (c *OrganizationSettingHistoryClient) Get(ctx context.Context, id string) (*OrganizationSettingHistory, error) { - return c.Query().Where(organizationsettinghistory.ID(id)).Only(ctx) +// Get returns a StandardHistory entity by its id. +func (c *StandardHistoryClient) Get(ctx context.Context, id string) (*StandardHistory, error) { + return c.Query().Where(standardhistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *OrganizationSettingHistoryClient) GetX(ctx context.Context, id string) *OrganizationSettingHistory { +func (c *StandardHistoryClient) GetX(ctx context.Context, id string) *StandardHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -9001,133 +12367,131 @@ func (c *OrganizationSettingHistoryClient) GetX(ctx context.Context, id string) } // Hooks returns the client hooks. -func (c *OrganizationSettingHistoryClient) Hooks() []Hook { - hooks := c.hooks.OrganizationSettingHistory - return append(hooks[:len(hooks):len(hooks)], organizationsettinghistory.Hooks[:]...) +func (c *StandardHistoryClient) Hooks() []Hook { + return c.hooks.StandardHistory } // Interceptors returns the client interceptors. -func (c *OrganizationSettingHistoryClient) Interceptors() []Interceptor { - inters := c.inters.OrganizationSettingHistory - return append(inters[:len(inters):len(inters)], organizationsettinghistory.Interceptors[:]...) +func (c *StandardHistoryClient) Interceptors() []Interceptor { + return c.inters.StandardHistory } -func (c *OrganizationSettingHistoryClient) mutate(ctx context.Context, m *OrganizationSettingHistoryMutation) (Value, error) { +func (c *StandardHistoryClient) mutate(ctx context.Context, m *StandardHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&OrganizationSettingHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&StandardHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&OrganizationSettingHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&StandardHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&OrganizationSettingHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&StandardHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&OrganizationSettingHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&StandardHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown OrganizationSettingHistory mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown StandardHistory mutation op: %q", m.Op()) } } -// PasswordResetTokenClient is a client for the PasswordResetToken schema. -type PasswordResetTokenClient struct { +// SubcontrolClient is a client for the Subcontrol schema. +type SubcontrolClient struct { config } -// NewPasswordResetTokenClient returns a client for the PasswordResetToken from the given config. -func NewPasswordResetTokenClient(c config) *PasswordResetTokenClient { - return &PasswordResetTokenClient{config: c} +// NewSubcontrolClient returns a client for the Subcontrol from the given config. +func NewSubcontrolClient(c config) *SubcontrolClient { + return &SubcontrolClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `passwordresettoken.Hooks(f(g(h())))`. -func (c *PasswordResetTokenClient) Use(hooks ...Hook) { - c.hooks.PasswordResetToken = append(c.hooks.PasswordResetToken, hooks...) +// A call to `Use(f, g, h)` equals to `subcontrol.Hooks(f(g(h())))`. +func (c *SubcontrolClient) Use(hooks ...Hook) { + c.hooks.Subcontrol = append(c.hooks.Subcontrol, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `passwordresettoken.Intercept(f(g(h())))`. -func (c *PasswordResetTokenClient) Intercept(interceptors ...Interceptor) { - c.inters.PasswordResetToken = append(c.inters.PasswordResetToken, interceptors...) +// A call to `Intercept(f, g, h)` equals to `subcontrol.Intercept(f(g(h())))`. +func (c *SubcontrolClient) Intercept(interceptors ...Interceptor) { + c.inters.Subcontrol = append(c.inters.Subcontrol, interceptors...) } -// Create returns a builder for creating a PasswordResetToken entity. -func (c *PasswordResetTokenClient) Create() *PasswordResetTokenCreate { - mutation := newPasswordResetTokenMutation(c.config, OpCreate) - return &PasswordResetTokenCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a Subcontrol entity. +func (c *SubcontrolClient) Create() *SubcontrolCreate { + mutation := newSubcontrolMutation(c.config, OpCreate) + return &SubcontrolCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of PasswordResetToken entities. -func (c *PasswordResetTokenClient) CreateBulk(builders ...*PasswordResetTokenCreate) *PasswordResetTokenCreateBulk { - return &PasswordResetTokenCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of Subcontrol entities. +func (c *SubcontrolClient) CreateBulk(builders ...*SubcontrolCreate) *SubcontrolCreateBulk { + return &SubcontrolCreateBulk{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 *PasswordResetTokenClient) MapCreateBulk(slice any, setFunc func(*PasswordResetTokenCreate, int)) *PasswordResetTokenCreateBulk { +func (c *SubcontrolClient) MapCreateBulk(slice any, setFunc func(*SubcontrolCreate, int)) *SubcontrolCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &PasswordResetTokenCreateBulk{err: fmt.Errorf("calling to PasswordResetTokenClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &SubcontrolCreateBulk{err: fmt.Errorf("calling to SubcontrolClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*PasswordResetTokenCreate, rv.Len()) + builders := make([]*SubcontrolCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &PasswordResetTokenCreateBulk{config: c.config, builders: builders} + return &SubcontrolCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for PasswordResetToken. -func (c *PasswordResetTokenClient) Update() *PasswordResetTokenUpdate { - mutation := newPasswordResetTokenMutation(c.config, OpUpdate) - return &PasswordResetTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for Subcontrol. +func (c *SubcontrolClient) Update() *SubcontrolUpdate { + mutation := newSubcontrolMutation(c.config, OpUpdate) + return &SubcontrolUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *PasswordResetTokenClient) UpdateOne(prt *PasswordResetToken) *PasswordResetTokenUpdateOne { - mutation := newPasswordResetTokenMutation(c.config, OpUpdateOne, withPasswordResetToken(prt)) - return &PasswordResetTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *SubcontrolClient) UpdateOne(s *Subcontrol) *SubcontrolUpdateOne { + mutation := newSubcontrolMutation(c.config, OpUpdateOne, withSubcontrol(s)) + return &SubcontrolUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *PasswordResetTokenClient) UpdateOneID(id string) *PasswordResetTokenUpdateOne { - mutation := newPasswordResetTokenMutation(c.config, OpUpdateOne, withPasswordResetTokenID(id)) - return &PasswordResetTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *SubcontrolClient) UpdateOneID(id string) *SubcontrolUpdateOne { + mutation := newSubcontrolMutation(c.config, OpUpdateOne, withSubcontrolID(id)) + return &SubcontrolUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for PasswordResetToken. -func (c *PasswordResetTokenClient) Delete() *PasswordResetTokenDelete { - mutation := newPasswordResetTokenMutation(c.config, OpDelete) - return &PasswordResetTokenDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for Subcontrol. +func (c *SubcontrolClient) Delete() *SubcontrolDelete { + mutation := newSubcontrolMutation(c.config, OpDelete) + return &SubcontrolDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *PasswordResetTokenClient) DeleteOne(prt *PasswordResetToken) *PasswordResetTokenDeleteOne { - return c.DeleteOneID(prt.ID) +func (c *SubcontrolClient) DeleteOne(s *Subcontrol) *SubcontrolDeleteOne { + return c.DeleteOneID(s.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *PasswordResetTokenClient) DeleteOneID(id string) *PasswordResetTokenDeleteOne { - builder := c.Delete().Where(passwordresettoken.ID(id)) +func (c *SubcontrolClient) DeleteOneID(id string) *SubcontrolDeleteOne { + builder := c.Delete().Where(subcontrol.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &PasswordResetTokenDeleteOne{builder} + return &SubcontrolDeleteOne{builder} } -// Query returns a query builder for PasswordResetToken. -func (c *PasswordResetTokenClient) Query() *PasswordResetTokenQuery { - return &PasswordResetTokenQuery{ +// Query returns a query builder for Subcontrol. +func (c *SubcontrolClient) Query() *SubcontrolQuery { + return &SubcontrolQuery{ config: c.config, - ctx: &QueryContext{Type: TypePasswordResetToken}, + ctx: &QueryContext{Type: TypeSubcontrol}, inters: c.Interceptors(), } } -// Get returns a PasswordResetToken entity by its id. -func (c *PasswordResetTokenClient) Get(ctx context.Context, id string) (*PasswordResetToken, error) { - return c.Query().Where(passwordresettoken.ID(id)).Only(ctx) +// Get returns a Subcontrol entity by its id. +func (c *SubcontrolClient) Get(ctx context.Context, id string) (*Subcontrol, error) { + return c.Query().Where(subcontrol.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *PasswordResetTokenClient) GetX(ctx context.Context, id string) *PasswordResetToken { +func (c *SubcontrolClient) GetX(ctx context.Context, id string) *Subcontrol { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -9135,153 +12499,191 @@ func (c *PasswordResetTokenClient) GetX(ctx context.Context, id string) *Passwor return obj } -// QueryOwner queries the owner edge of a PasswordResetToken. -func (c *PasswordResetTokenClient) QueryOwner(prt *PasswordResetToken) *UserQuery { +// QueryControl queries the control edge of a Subcontrol. +func (c *SubcontrolClient) QueryControl(s *Subcontrol) *ControlQuery { + query := (&ControlClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := s.ID + step := sqlgraph.NewStep( + sqlgraph.From(subcontrol.Table, subcontrol.FieldID, id), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, subcontrol.ControlTable, subcontrol.ControlPrimaryKey...), + ) + schemaConfig := s.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlSubcontrols + fromV = sqlgraph.Neighbors(s.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryUser queries the user edge of a Subcontrol. +func (c *SubcontrolClient) QueryUser(s *Subcontrol) *UserQuery { query := (&UserClient{config: c.config}).Query() query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := prt.ID + id := s.ID step := sqlgraph.NewStep( - sqlgraph.From(passwordresettoken.Table, passwordresettoken.FieldID, id), + sqlgraph.From(subcontrol.Table, subcontrol.FieldID, id), sqlgraph.To(user.Table, user.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, passwordresettoken.OwnerTable, passwordresettoken.OwnerColumn), + sqlgraph.Edge(sqlgraph.M2M, true, subcontrol.UserTable, subcontrol.UserPrimaryKey...), ) - schemaConfig := prt.schemaConfig + schemaConfig := s.schemaConfig step.To.Schema = schemaConfig.User - step.Edge.Schema = schemaConfig.PasswordResetToken - fromV = sqlgraph.Neighbors(prt.driver.Dialect(), step) + step.Edge.Schema = schemaConfig.UserSubcontrols + fromV = sqlgraph.Neighbors(s.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryNotes queries the notes edge of a Subcontrol. +func (c *SubcontrolClient) QueryNotes(s *Subcontrol) *NoteQuery { + query := (&NoteClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := s.ID + step := sqlgraph.NewStep( + sqlgraph.From(subcontrol.Table, subcontrol.FieldID, id), + sqlgraph.To(note.Table, note.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, subcontrol.NotesTable, subcontrol.NotesColumn), + ) + schemaConfig := s.schemaConfig + step.To.Schema = schemaConfig.Note + step.Edge.Schema = schemaConfig.Subcontrol + fromV = sqlgraph.Neighbors(s.driver.Dialect(), step) return fromV, nil } return query } // Hooks returns the client hooks. -func (c *PasswordResetTokenClient) Hooks() []Hook { - hooks := c.hooks.PasswordResetToken - return append(hooks[:len(hooks):len(hooks)], passwordresettoken.Hooks[:]...) +func (c *SubcontrolClient) Hooks() []Hook { + hooks := c.hooks.Subcontrol + return append(hooks[:len(hooks):len(hooks)], subcontrol.Hooks[:]...) } // Interceptors returns the client interceptors. -func (c *PasswordResetTokenClient) Interceptors() []Interceptor { - inters := c.inters.PasswordResetToken - return append(inters[:len(inters):len(inters)], passwordresettoken.Interceptors[:]...) +func (c *SubcontrolClient) Interceptors() []Interceptor { + inters := c.inters.Subcontrol + return append(inters[:len(inters):len(inters)], subcontrol.Interceptors[:]...) } -func (c *PasswordResetTokenClient) mutate(ctx context.Context, m *PasswordResetTokenMutation) (Value, error) { +func (c *SubcontrolClient) mutate(ctx context.Context, m *SubcontrolMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&PasswordResetTokenCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&SubcontrolCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&PasswordResetTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&SubcontrolUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&PasswordResetTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&SubcontrolUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&PasswordResetTokenDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&SubcontrolDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown PasswordResetToken mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown Subcontrol mutation op: %q", m.Op()) } } -// PersonalAccessTokenClient is a client for the PersonalAccessToken schema. -type PersonalAccessTokenClient struct { +// SubcontrolHistoryClient is a client for the SubcontrolHistory schema. +type SubcontrolHistoryClient struct { config } -// NewPersonalAccessTokenClient returns a client for the PersonalAccessToken from the given config. -func NewPersonalAccessTokenClient(c config) *PersonalAccessTokenClient { - return &PersonalAccessTokenClient{config: c} +// NewSubcontrolHistoryClient returns a client for the SubcontrolHistory from the given config. +func NewSubcontrolHistoryClient(c config) *SubcontrolHistoryClient { + return &SubcontrolHistoryClient{config: c} } // Use adds a list of mutation hooks to the hooks stack. -// A call to `Use(f, g, h)` equals to `personalaccesstoken.Hooks(f(g(h())))`. -func (c *PersonalAccessTokenClient) Use(hooks ...Hook) { - c.hooks.PersonalAccessToken = append(c.hooks.PersonalAccessToken, hooks...) +// A call to `Use(f, g, h)` equals to `subcontrolhistory.Hooks(f(g(h())))`. +func (c *SubcontrolHistoryClient) Use(hooks ...Hook) { + c.hooks.SubcontrolHistory = append(c.hooks.SubcontrolHistory, hooks...) } // Intercept adds a list of query interceptors to the interceptors stack. -// A call to `Intercept(f, g, h)` equals to `personalaccesstoken.Intercept(f(g(h())))`. -func (c *PersonalAccessTokenClient) Intercept(interceptors ...Interceptor) { - c.inters.PersonalAccessToken = append(c.inters.PersonalAccessToken, interceptors...) +// A call to `Intercept(f, g, h)` equals to `subcontrolhistory.Intercept(f(g(h())))`. +func (c *SubcontrolHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.SubcontrolHistory = append(c.inters.SubcontrolHistory, interceptors...) } -// Create returns a builder for creating a PersonalAccessToken entity. -func (c *PersonalAccessTokenClient) Create() *PersonalAccessTokenCreate { - mutation := newPersonalAccessTokenMutation(c.config, OpCreate) - return &PersonalAccessTokenCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Create returns a builder for creating a SubcontrolHistory entity. +func (c *SubcontrolHistoryClient) Create() *SubcontrolHistoryCreate { + mutation := newSubcontrolHistoryMutation(c.config, OpCreate) + return &SubcontrolHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// CreateBulk returns a builder for creating a bulk of PersonalAccessToken entities. -func (c *PersonalAccessTokenClient) CreateBulk(builders ...*PersonalAccessTokenCreate) *PersonalAccessTokenCreateBulk { - return &PersonalAccessTokenCreateBulk{config: c.config, builders: builders} +// CreateBulk returns a builder for creating a bulk of SubcontrolHistory entities. +func (c *SubcontrolHistoryClient) CreateBulk(builders ...*SubcontrolHistoryCreate) *SubcontrolHistoryCreateBulk { + return &SubcontrolHistoryCreateBulk{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 *PersonalAccessTokenClient) MapCreateBulk(slice any, setFunc func(*PersonalAccessTokenCreate, int)) *PersonalAccessTokenCreateBulk { +func (c *SubcontrolHistoryClient) MapCreateBulk(slice any, setFunc func(*SubcontrolHistoryCreate, int)) *SubcontrolHistoryCreateBulk { rv := reflect.ValueOf(slice) if rv.Kind() != reflect.Slice { - return &PersonalAccessTokenCreateBulk{err: fmt.Errorf("calling to PersonalAccessTokenClient.MapCreateBulk with wrong type %T, need slice", slice)} + return &SubcontrolHistoryCreateBulk{err: fmt.Errorf("calling to SubcontrolHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} } - builders := make([]*PersonalAccessTokenCreate, rv.Len()) + builders := make([]*SubcontrolHistoryCreate, rv.Len()) for i := 0; i < rv.Len(); i++ { builders[i] = c.Create() setFunc(builders[i], i) } - return &PersonalAccessTokenCreateBulk{config: c.config, builders: builders} + return &SubcontrolHistoryCreateBulk{config: c.config, builders: builders} } -// Update returns an update builder for PersonalAccessToken. -func (c *PersonalAccessTokenClient) Update() *PersonalAccessTokenUpdate { - mutation := newPersonalAccessTokenMutation(c.config, OpUpdate) - return &PersonalAccessTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Update returns an update builder for SubcontrolHistory. +func (c *SubcontrolHistoryClient) Update() *SubcontrolHistoryUpdate { + mutation := newSubcontrolHistoryMutation(c.config, OpUpdate) + return &SubcontrolHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOne returns an update builder for the given entity. -func (c *PersonalAccessTokenClient) UpdateOne(pat *PersonalAccessToken) *PersonalAccessTokenUpdateOne { - mutation := newPersonalAccessTokenMutation(c.config, OpUpdateOne, withPersonalAccessToken(pat)) - return &PersonalAccessTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *SubcontrolHistoryClient) UpdateOne(sh *SubcontrolHistory) *SubcontrolHistoryUpdateOne { + mutation := newSubcontrolHistoryMutation(c.config, OpUpdateOne, withSubcontrolHistory(sh)) + return &SubcontrolHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } // UpdateOneID returns an update builder for the given id. -func (c *PersonalAccessTokenClient) UpdateOneID(id string) *PersonalAccessTokenUpdateOne { - mutation := newPersonalAccessTokenMutation(c.config, OpUpdateOne, withPersonalAccessTokenID(id)) - return &PersonalAccessTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +func (c *SubcontrolHistoryClient) UpdateOneID(id string) *SubcontrolHistoryUpdateOne { + mutation := newSubcontrolHistoryMutation(c.config, OpUpdateOne, withSubcontrolHistoryID(id)) + return &SubcontrolHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} } -// Delete returns a delete builder for PersonalAccessToken. -func (c *PersonalAccessTokenClient) Delete() *PersonalAccessTokenDelete { - mutation := newPersonalAccessTokenMutation(c.config, OpDelete) - return &PersonalAccessTokenDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +// Delete returns a delete builder for SubcontrolHistory. +func (c *SubcontrolHistoryClient) Delete() *SubcontrolHistoryDelete { + mutation := newSubcontrolHistoryMutation(c.config, OpDelete) + return &SubcontrolHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} } // DeleteOne returns a builder for deleting the given entity. -func (c *PersonalAccessTokenClient) DeleteOne(pat *PersonalAccessToken) *PersonalAccessTokenDeleteOne { - return c.DeleteOneID(pat.ID) +func (c *SubcontrolHistoryClient) DeleteOne(sh *SubcontrolHistory) *SubcontrolHistoryDeleteOne { + return c.DeleteOneID(sh.ID) } // DeleteOneID returns a builder for deleting the given entity by its id. -func (c *PersonalAccessTokenClient) DeleteOneID(id string) *PersonalAccessTokenDeleteOne { - builder := c.Delete().Where(personalaccesstoken.ID(id)) +func (c *SubcontrolHistoryClient) DeleteOneID(id string) *SubcontrolHistoryDeleteOne { + builder := c.Delete().Where(subcontrolhistory.ID(id)) builder.mutation.id = &id builder.mutation.op = OpDeleteOne - return &PersonalAccessTokenDeleteOne{builder} + return &SubcontrolHistoryDeleteOne{builder} } -// Query returns a query builder for PersonalAccessToken. -func (c *PersonalAccessTokenClient) Query() *PersonalAccessTokenQuery { - return &PersonalAccessTokenQuery{ +// Query returns a query builder for SubcontrolHistory. +func (c *SubcontrolHistoryClient) Query() *SubcontrolHistoryQuery { + return &SubcontrolHistoryQuery{ config: c.config, - ctx: &QueryContext{Type: TypePersonalAccessToken}, + ctx: &QueryContext{Type: TypeSubcontrolHistory}, inters: c.Interceptors(), } } -// Get returns a PersonalAccessToken entity by its id. -func (c *PersonalAccessTokenClient) Get(ctx context.Context, id string) (*PersonalAccessToken, error) { - return c.Query().Where(personalaccesstoken.ID(id)).Only(ctx) +// Get returns a SubcontrolHistory entity by its id. +func (c *SubcontrolHistoryClient) Get(ctx context.Context, id string) (*SubcontrolHistory, error) { + return c.Query().Where(subcontrolhistory.ID(id)).Only(ctx) } // GetX is like Get, but panics if an error occurs. -func (c *PersonalAccessTokenClient) GetX(ctx context.Context, id string) *PersonalAccessToken { +func (c *SubcontrolHistoryClient) GetX(ctx context.Context, id string) *SubcontrolHistory { obj, err := c.Get(ctx, id) if err != nil { panic(err) @@ -9289,87 +12691,28 @@ func (c *PersonalAccessTokenClient) GetX(ctx context.Context, id string) *Person return obj } -// QueryOwner queries the owner edge of a PersonalAccessToken. -func (c *PersonalAccessTokenClient) QueryOwner(pat *PersonalAccessToken) *UserQuery { - query := (&UserClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := pat.ID - step := sqlgraph.NewStep( - sqlgraph.From(personalaccesstoken.Table, personalaccesstoken.FieldID, id), - sqlgraph.To(user.Table, user.FieldID), - sqlgraph.Edge(sqlgraph.M2O, true, personalaccesstoken.OwnerTable, personalaccesstoken.OwnerColumn), - ) - schemaConfig := pat.schemaConfig - step.To.Schema = schemaConfig.User - step.Edge.Schema = schemaConfig.PersonalAccessToken - fromV = sqlgraph.Neighbors(pat.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryOrganizations queries the organizations edge of a PersonalAccessToken. -func (c *PersonalAccessTokenClient) QueryOrganizations(pat *PersonalAccessToken) *OrganizationQuery { - query := (&OrganizationClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := pat.ID - step := sqlgraph.NewStep( - sqlgraph.From(personalaccesstoken.Table, personalaccesstoken.FieldID, id), - sqlgraph.To(organization.Table, organization.FieldID), - sqlgraph.Edge(sqlgraph.M2M, true, personalaccesstoken.OrganizationsTable, personalaccesstoken.OrganizationsPrimaryKey...), - ) - schemaConfig := pat.schemaConfig - step.To.Schema = schemaConfig.Organization - step.Edge.Schema = schemaConfig.OrganizationPersonalAccessTokens - fromV = sqlgraph.Neighbors(pat.driver.Dialect(), step) - return fromV, nil - } - return query -} - -// QueryEvents queries the events edge of a PersonalAccessToken. -func (c *PersonalAccessTokenClient) QueryEvents(pat *PersonalAccessToken) *EventQuery { - query := (&EventClient{config: c.config}).Query() - query.path = func(context.Context) (fromV *sql.Selector, _ error) { - id := pat.ID - step := sqlgraph.NewStep( - sqlgraph.From(personalaccesstoken.Table, personalaccesstoken.FieldID, id), - sqlgraph.To(event.Table, event.FieldID), - sqlgraph.Edge(sqlgraph.M2M, false, personalaccesstoken.EventsTable, personalaccesstoken.EventsPrimaryKey...), - ) - schemaConfig := pat.schemaConfig - step.To.Schema = schemaConfig.Event - step.Edge.Schema = schemaConfig.PersonalAccessTokenEvents - fromV = sqlgraph.Neighbors(pat.driver.Dialect(), step) - return fromV, nil - } - return query -} - // Hooks returns the client hooks. -func (c *PersonalAccessTokenClient) Hooks() []Hook { - hooks := c.hooks.PersonalAccessToken - return append(hooks[:len(hooks):len(hooks)], personalaccesstoken.Hooks[:]...) +func (c *SubcontrolHistoryClient) Hooks() []Hook { + return c.hooks.SubcontrolHistory } // Interceptors returns the client interceptors. -func (c *PersonalAccessTokenClient) Interceptors() []Interceptor { - inters := c.inters.PersonalAccessToken - return append(inters[:len(inters):len(inters)], personalaccesstoken.Interceptors[:]...) +func (c *SubcontrolHistoryClient) Interceptors() []Interceptor { + return c.inters.SubcontrolHistory } -func (c *PersonalAccessTokenClient) mutate(ctx context.Context, m *PersonalAccessTokenMutation) (Value, error) { +func (c *SubcontrolHistoryClient) mutate(ctx context.Context, m *SubcontrolHistoryMutation) (Value, error) { switch m.Op() { case OpCreate: - return (&PersonalAccessTokenCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&SubcontrolHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdate: - return (&PersonalAccessTokenUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&SubcontrolHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpUpdateOne: - return (&PersonalAccessTokenUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + return (&SubcontrolHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) case OpDelete, OpDeleteOne: - return (&PersonalAccessTokenDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + return (&SubcontrolHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) default: - return nil, fmt.Errorf("generated: unknown PersonalAccessToken mutation op: %q", m.Op()) + return nil, fmt.Errorf("generated: unknown SubcontrolHistory mutation op: %q", m.Op()) } } @@ -10344,6 +13687,44 @@ func (c *UserClient) QueryEvents(u *User) *EventQuery { return query } +// QueryActionplans queries the actionplans edge of a User. +func (c *UserClient) QueryActionplans(u *User) *ActionPlanQuery { + query := (&ActionPlanClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := u.ID + step := sqlgraph.NewStep( + sqlgraph.From(user.Table, user.FieldID, id), + sqlgraph.To(actionplan.Table, actionplan.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, user.ActionplansTable, user.ActionplansPrimaryKey...), + ) + schemaConfig := u.schemaConfig + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.UserActionplans + fromV = sqlgraph.Neighbors(u.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QuerySubcontrols queries the subcontrols edge of a User. +func (c *UserClient) QuerySubcontrols(u *User) *SubcontrolQuery { + query := (&SubcontrolClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := u.ID + step := sqlgraph.NewStep( + sqlgraph.From(user.Table, user.FieldID, id), + sqlgraph.To(subcontrol.Table, subcontrol.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, user.SubcontrolsTable, user.SubcontrolsPrimaryKey...), + ) + schemaConfig := u.schemaConfig + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.UserSubcontrols + fromV = sqlgraph.Neighbors(u.driver.Dialect(), step) + return fromV, nil + } + return query +} + // QueryGroupMemberships queries the group_memberships edge of a User. func (c *UserClient) QueryGroupMemberships(u *User) *GroupMembershipQuery { query := (&GroupMembershipClient{config: c.config}).Query() @@ -11353,33 +14734,40 @@ func (c *WebhookHistoryClient) mutate(ctx context.Context, m *WebhookHistoryMuta // hooks and interceptors per client, for fast access. type ( hooks struct { - APIToken, Contact, ContactHistory, DocumentData, DocumentDataHistory, - EmailVerificationToken, Entitlement, EntitlementHistory, EntitlementPlan, - EntitlementPlanFeature, EntitlementPlanFeatureHistory, EntitlementPlanHistory, - Entity, EntityHistory, EntityType, EntityTypeHistory, Event, EventHistory, - Feature, FeatureHistory, File, FileHistory, Group, GroupHistory, - GroupMembership, GroupMembershipHistory, GroupSetting, GroupSettingHistory, - Hush, HushHistory, Integration, IntegrationHistory, Invite, Note, NoteHistory, - OauthProvider, OauthProviderHistory, OhAuthTooToken, OrgMembership, - OrgMembershipHistory, Organization, OrganizationHistory, OrganizationSetting, - OrganizationSettingHistory, PasswordResetToken, PersonalAccessToken, - Subscriber, TFASetting, Template, TemplateHistory, User, UserHistory, - UserSetting, UserSettingHistory, Webauthn, Webhook, WebhookHistory []ent.Hook + APIToken, ActionPlan, ActionPlanHistory, Contact, ContactHistory, Control, + ControlHistory, ControlObjective, ControlObjectiveHistory, DocumentData, + DocumentDataHistory, EmailVerificationToken, Entitlement, EntitlementHistory, + EntitlementPlan, EntitlementPlanFeature, EntitlementPlanFeatureHistory, + EntitlementPlanHistory, Entity, EntityHistory, EntityType, EntityTypeHistory, + Event, EventHistory, Feature, FeatureHistory, File, FileHistory, Group, + GroupHistory, GroupMembership, GroupMembershipHistory, GroupSetting, + GroupSettingHistory, Hush, HushHistory, Integration, IntegrationHistory, + InternalPolicy, InternalPolicyHistory, Invite, Narrative, NarrativeHistory, + Note, NoteHistory, OauthProvider, OauthProviderHistory, OhAuthTooToken, + OrgMembership, OrgMembershipHistory, Organization, OrganizationHistory, + OrganizationSetting, OrganizationSettingHistory, PasswordResetToken, + PersonalAccessToken, Procedure, ProcedureHistory, Risk, RiskHistory, Standard, + StandardHistory, Subcontrol, SubcontrolHistory, Subscriber, TFASetting, + Template, TemplateHistory, User, UserHistory, UserSetting, UserSettingHistory, + Webauthn, Webhook, WebhookHistory []ent.Hook } inters struct { - APIToken, Contact, ContactHistory, DocumentData, DocumentDataHistory, - EmailVerificationToken, Entitlement, EntitlementHistory, EntitlementPlan, - EntitlementPlanFeature, EntitlementPlanFeatureHistory, EntitlementPlanHistory, - Entity, EntityHistory, EntityType, EntityTypeHistory, Event, EventHistory, - Feature, FeatureHistory, File, FileHistory, Group, GroupHistory, - GroupMembership, GroupMembershipHistory, GroupSetting, GroupSettingHistory, - Hush, HushHistory, Integration, IntegrationHistory, Invite, Note, NoteHistory, - OauthProvider, OauthProviderHistory, OhAuthTooToken, OrgMembership, - OrgMembershipHistory, Organization, OrganizationHistory, OrganizationSetting, - OrganizationSettingHistory, PasswordResetToken, PersonalAccessToken, - Subscriber, TFASetting, Template, TemplateHistory, User, UserHistory, - UserSetting, UserSettingHistory, Webauthn, Webhook, - WebhookHistory []ent.Interceptor + APIToken, ActionPlan, ActionPlanHistory, Contact, ContactHistory, Control, + ControlHistory, ControlObjective, ControlObjectiveHistory, DocumentData, + DocumentDataHistory, EmailVerificationToken, Entitlement, EntitlementHistory, + EntitlementPlan, EntitlementPlanFeature, EntitlementPlanFeatureHistory, + EntitlementPlanHistory, Entity, EntityHistory, EntityType, EntityTypeHistory, + Event, EventHistory, Feature, FeatureHistory, File, FileHistory, Group, + GroupHistory, GroupMembership, GroupMembershipHistory, GroupSetting, + GroupSettingHistory, Hush, HushHistory, Integration, IntegrationHistory, + InternalPolicy, InternalPolicyHistory, Invite, Narrative, NarrativeHistory, + Note, NoteHistory, OauthProvider, OauthProviderHistory, OhAuthTooToken, + OrgMembership, OrgMembershipHistory, Organization, OrganizationHistory, + OrganizationSetting, OrganizationSettingHistory, PasswordResetToken, + PersonalAccessToken, Procedure, ProcedureHistory, Risk, RiskHistory, Standard, + StandardHistory, Subcontrol, SubcontrolHistory, Subscriber, TFASetting, + Template, TemplateHistory, User, UserHistory, UserSetting, UserSettingHistory, + Webauthn, Webhook, WebhookHistory []ent.Interceptor } ) diff --git a/internal/ent/generated/control.go b/internal/ent/generated/control.go new file mode 100644 index 00000000..1812be42 --- /dev/null +++ b/internal/ent/generated/control.go @@ -0,0 +1,640 @@ +// 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/internal/ent/generated/control" +) + +// Control is the model entity for the Control schema. +type Control 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the control + Name string `json:"name,omitempty"` + // description of the control + Description string `json:"description,omitempty"` + // status of the control + Status string `json:"status,omitempty"` + // type of the control + ControlType string `json:"control_type,omitempty"` + // version of the control + Version string `json:"version,omitempty"` + // control number or identifier + ControlNumber string `json:"control_number,omitempty"` + // family associated with the control + Family string `json:"family,omitempty"` + // class associated with the control + Class string `json:"class,omitempty"` + // source of the control, e.g. framework, template, custom, etc. + Source string `json:"source,omitempty"` + // which control objectives are satisfied by the control + Satisfies string `json:"satisfies,omitempty"` + // mapped frameworks + MappedFrameworks string `json:"mapped_frameworks,omitempty"` + // json data including details of the control + Details map[string]interface{} `json:"details,omitempty"` + // Edges holds the relations/edges for other nodes in the graph. + // The values are being populated by the ControlQuery when eager-loading is set. + Edges ControlEdges `json:"edges"` + control_objective_controls *string + internal_policy_controls *string + selectValues sql.SelectValues +} + +// ControlEdges holds the relations/edges for other nodes in the graph. +type ControlEdges struct { + // Procedures holds the value of the procedures edge. + Procedures []*Procedure `json:"procedures,omitempty"` + // Subcontrols holds the value of the subcontrols edge. + Subcontrols []*Subcontrol `json:"subcontrols,omitempty"` + // Controlobjectives holds the value of the controlobjectives edge. + Controlobjectives []*ControlObjective `json:"controlobjectives,omitempty"` + // Standard holds the value of the standard edge. + Standard []*Standard `json:"standard,omitempty"` + // Narratives holds the value of the narratives edge. + Narratives []*Narrative `json:"narratives,omitempty"` + // Risks holds the value of the risks edge. + Risks []*Risk `json:"risks,omitempty"` + // Actionplans holds the value of the actionplans edge. + Actionplans []*ActionPlan `json:"actionplans,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 + + namedProcedures map[string][]*Procedure + namedSubcontrols map[string][]*Subcontrol + namedControlobjectives map[string][]*ControlObjective + namedStandard map[string][]*Standard + namedNarratives map[string][]*Narrative + namedRisks map[string][]*Risk + namedActionplans map[string][]*ActionPlan +} + +// ProceduresOrErr returns the Procedures value or an error if the edge +// was not loaded in eager-loading. +func (e ControlEdges) ProceduresOrErr() ([]*Procedure, error) { + if e.loadedTypes[0] { + return e.Procedures, nil + } + return nil, &NotLoadedError{edge: "procedures"} +} + +// SubcontrolsOrErr returns the Subcontrols value or an error if the edge +// was not loaded in eager-loading. +func (e ControlEdges) SubcontrolsOrErr() ([]*Subcontrol, error) { + if e.loadedTypes[1] { + return e.Subcontrols, nil + } + return nil, &NotLoadedError{edge: "subcontrols"} +} + +// ControlobjectivesOrErr returns the Controlobjectives value or an error if the edge +// was not loaded in eager-loading. +func (e ControlEdges) ControlobjectivesOrErr() ([]*ControlObjective, error) { + if e.loadedTypes[2] { + return e.Controlobjectives, nil + } + return nil, &NotLoadedError{edge: "controlobjectives"} +} + +// StandardOrErr returns the Standard value or an error if the edge +// was not loaded in eager-loading. +func (e ControlEdges) StandardOrErr() ([]*Standard, error) { + if e.loadedTypes[3] { + return e.Standard, nil + } + return nil, &NotLoadedError{edge: "standard"} +} + +// NarrativesOrErr returns the Narratives value or an error if the edge +// was not loaded in eager-loading. +func (e ControlEdges) NarrativesOrErr() ([]*Narrative, error) { + if e.loadedTypes[4] { + return e.Narratives, nil + } + return nil, &NotLoadedError{edge: "narratives"} +} + +// RisksOrErr returns the Risks value or an error if the edge +// was not loaded in eager-loading. +func (e ControlEdges) RisksOrErr() ([]*Risk, error) { + if e.loadedTypes[5] { + return e.Risks, nil + } + return nil, &NotLoadedError{edge: "risks"} +} + +// ActionplansOrErr returns the Actionplans value or an error if the edge +// was not loaded in eager-loading. +func (e ControlEdges) ActionplansOrErr() ([]*ActionPlan, error) { + if e.loadedTypes[6] { + return e.Actionplans, nil + } + return nil, &NotLoadedError{edge: "actionplans"} +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*Control) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case control.FieldTags, control.FieldDetails: + values[i] = new([]byte) + case control.FieldID, control.FieldCreatedBy, control.FieldUpdatedBy, control.FieldDeletedBy, control.FieldMappingID, control.FieldName, control.FieldDescription, control.FieldStatus, control.FieldControlType, control.FieldVersion, control.FieldControlNumber, control.FieldFamily, control.FieldClass, control.FieldSource, control.FieldSatisfies, control.FieldMappedFrameworks: + values[i] = new(sql.NullString) + case control.FieldCreatedAt, control.FieldUpdatedAt, control.FieldDeletedAt: + values[i] = new(sql.NullTime) + case control.ForeignKeys[0]: // control_objective_controls + values[i] = new(sql.NullString) + case control.ForeignKeys[1]: // internal_policy_controls + values[i] = new(sql.NullString) + default: + values[i] = new(sql.UnknownType) + } + } + return values, nil +} + +// assignValues assigns the values that were returned from sql.Rows (after scanning) +// to the Control fields. +func (c *Control) 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 control.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + c.ID = value.String + } + case control.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 { + c.CreatedAt = value.Time + } + case control.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 { + c.UpdatedAt = value.Time + } + case control.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 { + c.CreatedBy = value.String + } + case control.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 { + c.UpdatedBy = value.String + } + case control.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 { + c.DeletedAt = value.Time + } + case control.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 { + c.DeletedBy = value.String + } + case control.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + c.MappingID = value.String + } + case control.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, &c.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case control.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + c.Name = value.String + } + case control.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + c.Description = value.String + } + case control.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + c.Status = value.String + } + case control.FieldControlType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_type", values[i]) + } else if value.Valid { + c.ControlType = value.String + } + case control.FieldVersion: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field version", values[i]) + } else if value.Valid { + c.Version = value.String + } + case control.FieldControlNumber: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_number", values[i]) + } else if value.Valid { + c.ControlNumber = value.String + } + case control.FieldFamily: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field family", values[i]) + } else if value.Valid { + c.Family = value.String + } + case control.FieldClass: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field class", values[i]) + } else if value.Valid { + c.Class = value.String + } + case control.FieldSource: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field source", values[i]) + } else if value.Valid { + c.Source = value.String + } + case control.FieldSatisfies: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field satisfies", values[i]) + } else if value.Valid { + c.Satisfies = value.String + } + case control.FieldMappedFrameworks: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapped_frameworks", values[i]) + } else if value.Valid { + c.MappedFrameworks = value.String + } + case control.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &c.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + case control.ForeignKeys[0]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_objective_controls", values[i]) + } else if value.Valid { + c.control_objective_controls = new(string) + *c.control_objective_controls = value.String + } + case control.ForeignKeys[1]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field internal_policy_controls", values[i]) + } else if value.Valid { + c.internal_policy_controls = new(string) + *c.internal_policy_controls = value.String + } + default: + c.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the Control. +// This includes values selected through modifiers, order, etc. +func (c *Control) Value(name string) (ent.Value, error) { + return c.selectValues.Get(name) +} + +// QueryProcedures queries the "procedures" edge of the Control entity. +func (c *Control) QueryProcedures() *ProcedureQuery { + return NewControlClient(c.config).QueryProcedures(c) +} + +// QuerySubcontrols queries the "subcontrols" edge of the Control entity. +func (c *Control) QuerySubcontrols() *SubcontrolQuery { + return NewControlClient(c.config).QuerySubcontrols(c) +} + +// QueryControlobjectives queries the "controlobjectives" edge of the Control entity. +func (c *Control) QueryControlobjectives() *ControlObjectiveQuery { + return NewControlClient(c.config).QueryControlobjectives(c) +} + +// QueryStandard queries the "standard" edge of the Control entity. +func (c *Control) QueryStandard() *StandardQuery { + return NewControlClient(c.config).QueryStandard(c) +} + +// QueryNarratives queries the "narratives" edge of the Control entity. +func (c *Control) QueryNarratives() *NarrativeQuery { + return NewControlClient(c.config).QueryNarratives(c) +} + +// QueryRisks queries the "risks" edge of the Control entity. +func (c *Control) QueryRisks() *RiskQuery { + return NewControlClient(c.config).QueryRisks(c) +} + +// QueryActionplans queries the "actionplans" edge of the Control entity. +func (c *Control) QueryActionplans() *ActionPlanQuery { + return NewControlClient(c.config).QueryActionplans(c) +} + +// Update returns a builder for updating this Control. +// Note that you need to call Control.Unwrap() before calling this method if this Control +// was returned from a transaction, and the transaction was committed or rolled back. +func (c *Control) Update() *ControlUpdateOne { + return NewControlClient(c.config).UpdateOne(c) +} + +// Unwrap unwraps the Control 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 (c *Control) Unwrap() *Control { + _tx, ok := c.config.driver.(*txDriver) + if !ok { + panic("generated: Control is not a transactional entity") + } + c.config.driver = _tx.drv + return c +} + +// String implements the fmt.Stringer. +func (c *Control) String() string { + var builder strings.Builder + builder.WriteString("Control(") + builder.WriteString(fmt.Sprintf("id=%v, ", c.ID)) + builder.WriteString("created_at=") + builder.WriteString(c.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(c.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(c.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(c.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(c.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(c.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(c.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", c.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(c.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(c.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(c.Status) + builder.WriteString(", ") + builder.WriteString("control_type=") + builder.WriteString(c.ControlType) + builder.WriteString(", ") + builder.WriteString("version=") + builder.WriteString(c.Version) + builder.WriteString(", ") + builder.WriteString("control_number=") + builder.WriteString(c.ControlNumber) + builder.WriteString(", ") + builder.WriteString("family=") + builder.WriteString(c.Family) + builder.WriteString(", ") + builder.WriteString("class=") + builder.WriteString(c.Class) + builder.WriteString(", ") + builder.WriteString("source=") + builder.WriteString(c.Source) + builder.WriteString(", ") + builder.WriteString("satisfies=") + builder.WriteString(c.Satisfies) + builder.WriteString(", ") + builder.WriteString("mapped_frameworks=") + builder.WriteString(c.MappedFrameworks) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", c.Details)) + builder.WriteByte(')') + return builder.String() +} + +// NamedProcedures returns the Procedures named value or an error if the edge was not +// loaded in eager-loading with this name. +func (c *Control) NamedProcedures(name string) ([]*Procedure, error) { + if c.Edges.namedProcedures == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := c.Edges.namedProcedures[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (c *Control) appendNamedProcedures(name string, edges ...*Procedure) { + if c.Edges.namedProcedures == nil { + c.Edges.namedProcedures = make(map[string][]*Procedure) + } + if len(edges) == 0 { + c.Edges.namedProcedures[name] = []*Procedure{} + } else { + c.Edges.namedProcedures[name] = append(c.Edges.namedProcedures[name], edges...) + } +} + +// NamedSubcontrols returns the Subcontrols named value or an error if the edge was not +// loaded in eager-loading with this name. +func (c *Control) NamedSubcontrols(name string) ([]*Subcontrol, error) { + if c.Edges.namedSubcontrols == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := c.Edges.namedSubcontrols[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (c *Control) appendNamedSubcontrols(name string, edges ...*Subcontrol) { + if c.Edges.namedSubcontrols == nil { + c.Edges.namedSubcontrols = make(map[string][]*Subcontrol) + } + if len(edges) == 0 { + c.Edges.namedSubcontrols[name] = []*Subcontrol{} + } else { + c.Edges.namedSubcontrols[name] = append(c.Edges.namedSubcontrols[name], edges...) + } +} + +// NamedControlobjectives returns the Controlobjectives named value or an error if the edge was not +// loaded in eager-loading with this name. +func (c *Control) NamedControlobjectives(name string) ([]*ControlObjective, error) { + if c.Edges.namedControlobjectives == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := c.Edges.namedControlobjectives[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (c *Control) appendNamedControlobjectives(name string, edges ...*ControlObjective) { + if c.Edges.namedControlobjectives == nil { + c.Edges.namedControlobjectives = make(map[string][]*ControlObjective) + } + if len(edges) == 0 { + c.Edges.namedControlobjectives[name] = []*ControlObjective{} + } else { + c.Edges.namedControlobjectives[name] = append(c.Edges.namedControlobjectives[name], edges...) + } +} + +// NamedStandard returns the Standard named value or an error if the edge was not +// loaded in eager-loading with this name. +func (c *Control) NamedStandard(name string) ([]*Standard, error) { + if c.Edges.namedStandard == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := c.Edges.namedStandard[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (c *Control) appendNamedStandard(name string, edges ...*Standard) { + if c.Edges.namedStandard == nil { + c.Edges.namedStandard = make(map[string][]*Standard) + } + if len(edges) == 0 { + c.Edges.namedStandard[name] = []*Standard{} + } else { + c.Edges.namedStandard[name] = append(c.Edges.namedStandard[name], edges...) + } +} + +// NamedNarratives returns the Narratives named value or an error if the edge was not +// loaded in eager-loading with this name. +func (c *Control) NamedNarratives(name string) ([]*Narrative, error) { + if c.Edges.namedNarratives == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := c.Edges.namedNarratives[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (c *Control) appendNamedNarratives(name string, edges ...*Narrative) { + if c.Edges.namedNarratives == nil { + c.Edges.namedNarratives = make(map[string][]*Narrative) + } + if len(edges) == 0 { + c.Edges.namedNarratives[name] = []*Narrative{} + } else { + c.Edges.namedNarratives[name] = append(c.Edges.namedNarratives[name], edges...) + } +} + +// NamedRisks returns the Risks named value or an error if the edge was not +// loaded in eager-loading with this name. +func (c *Control) NamedRisks(name string) ([]*Risk, error) { + if c.Edges.namedRisks == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := c.Edges.namedRisks[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (c *Control) appendNamedRisks(name string, edges ...*Risk) { + if c.Edges.namedRisks == nil { + c.Edges.namedRisks = make(map[string][]*Risk) + } + if len(edges) == 0 { + c.Edges.namedRisks[name] = []*Risk{} + } else { + c.Edges.namedRisks[name] = append(c.Edges.namedRisks[name], edges...) + } +} + +// NamedActionplans returns the Actionplans named value or an error if the edge was not +// loaded in eager-loading with this name. +func (c *Control) NamedActionplans(name string) ([]*ActionPlan, error) { + if c.Edges.namedActionplans == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := c.Edges.namedActionplans[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (c *Control) appendNamedActionplans(name string, edges ...*ActionPlan) { + if c.Edges.namedActionplans == nil { + c.Edges.namedActionplans = make(map[string][]*ActionPlan) + } + if len(edges) == 0 { + c.Edges.namedActionplans[name] = []*ActionPlan{} + } else { + c.Edges.namedActionplans[name] = append(c.Edges.namedActionplans[name], edges...) + } +} + +// Controls is a parsable slice of Control. +type Controls []*Control diff --git a/internal/ent/generated/control/control.go b/internal/ent/generated/control/control.go new file mode 100644 index 00000000..46387ad1 --- /dev/null +++ b/internal/ent/generated/control/control.go @@ -0,0 +1,446 @@ +// Code generated by ent, DO NOT EDIT. + +package control + +import ( + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" +) + +const ( + // Label holds the string label denoting the control type in the database. + Label = "control" + // 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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldControlType holds the string denoting the control_type field in the database. + FieldControlType = "control_type" + // FieldVersion holds the string denoting the version field in the database. + FieldVersion = "version" + // FieldControlNumber holds the string denoting the control_number field in the database. + FieldControlNumber = "control_number" + // FieldFamily holds the string denoting the family field in the database. + FieldFamily = "family" + // FieldClass holds the string denoting the class field in the database. + FieldClass = "class" + // FieldSource holds the string denoting the source field in the database. + FieldSource = "source" + // FieldSatisfies holds the string denoting the satisfies field in the database. + FieldSatisfies = "satisfies" + // FieldMappedFrameworks holds the string denoting the mapped_frameworks field in the database. + FieldMappedFrameworks = "mapped_frameworks" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // EdgeProcedures holds the string denoting the procedures edge name in mutations. + EdgeProcedures = "procedures" + // EdgeSubcontrols holds the string denoting the subcontrols edge name in mutations. + EdgeSubcontrols = "subcontrols" + // EdgeControlobjectives holds the string denoting the controlobjectives edge name in mutations. + EdgeControlobjectives = "controlobjectives" + // EdgeStandard holds the string denoting the standard edge name in mutations. + EdgeStandard = "standard" + // EdgeNarratives holds the string denoting the narratives edge name in mutations. + EdgeNarratives = "narratives" + // EdgeRisks holds the string denoting the risks edge name in mutations. + EdgeRisks = "risks" + // EdgeActionplans holds the string denoting the actionplans edge name in mutations. + EdgeActionplans = "actionplans" + // Table holds the table name of the control in the database. + Table = "controls" + // ProceduresTable is the table that holds the procedures relation/edge. The primary key declared below. + ProceduresTable = "control_procedures" + // ProceduresInverseTable is the table name for the Procedure entity. + // It exists in this package in order to avoid circular dependency with the "procedure" package. + ProceduresInverseTable = "procedures" + // SubcontrolsTable is the table that holds the subcontrols relation/edge. The primary key declared below. + SubcontrolsTable = "control_subcontrols" + // SubcontrolsInverseTable is the table name for the Subcontrol entity. + // It exists in this package in order to avoid circular dependency with the "subcontrol" package. + SubcontrolsInverseTable = "subcontrols" + // ControlobjectivesTable is the table that holds the controlobjectives relation/edge. + ControlobjectivesTable = "control_objectives" + // ControlobjectivesInverseTable is the table name for the ControlObjective entity. + // It exists in this package in order to avoid circular dependency with the "controlobjective" package. + ControlobjectivesInverseTable = "control_objectives" + // ControlobjectivesColumn is the table column denoting the controlobjectives relation/edge. + ControlobjectivesColumn = "control_controlobjectives" + // StandardTable is the table that holds the standard relation/edge. The primary key declared below. + StandardTable = "standard_controls" + // StandardInverseTable is the table name for the Standard entity. + // It exists in this package in order to avoid circular dependency with the "standard" package. + StandardInverseTable = "standards" + // NarrativesTable is the table that holds the narratives relation/edge. The primary key declared below. + NarrativesTable = "control_narratives" + // NarrativesInverseTable is the table name for the Narrative entity. + // It exists in this package in order to avoid circular dependency with the "narrative" package. + NarrativesInverseTable = "narratives" + // RisksTable is the table that holds the risks relation/edge. The primary key declared below. + RisksTable = "control_risks" + // RisksInverseTable is the table name for the Risk entity. + // It exists in this package in order to avoid circular dependency with the "risk" package. + RisksInverseTable = "risks" + // ActionplansTable is the table that holds the actionplans relation/edge. The primary key declared below. + ActionplansTable = "control_actionplans" + // ActionplansInverseTable is the table name for the ActionPlan entity. + // It exists in this package in order to avoid circular dependency with the "actionplan" package. + ActionplansInverseTable = "action_plans" +) + +// Columns holds all SQL columns for control fields. +var Columns = []string{ + FieldID, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldControlType, + FieldVersion, + FieldControlNumber, + FieldFamily, + FieldClass, + FieldSource, + FieldSatisfies, + FieldMappedFrameworks, + FieldDetails, +} + +// ForeignKeys holds the SQL foreign-keys that are owned by the "controls" +// table and are not defined as standalone fields in the schema. +var ForeignKeys = []string{ + "control_objective_controls", + "internal_policy_controls", +} + +var ( + // ProceduresPrimaryKey and ProceduresColumn2 are the table columns denoting the + // primary key for the procedures relation (M2M). + ProceduresPrimaryKey = []string{"control_id", "procedure_id"} + // SubcontrolsPrimaryKey and SubcontrolsColumn2 are the table columns denoting the + // primary key for the subcontrols relation (M2M). + SubcontrolsPrimaryKey = []string{"control_id", "subcontrol_id"} + // StandardPrimaryKey and StandardColumn2 are the table columns denoting the + // primary key for the standard relation (M2M). + StandardPrimaryKey = []string{"standard_id", "control_id"} + // NarrativesPrimaryKey and NarrativesColumn2 are the table columns denoting the + // primary key for the narratives relation (M2M). + NarrativesPrimaryKey = []string{"control_id", "narrative_id"} + // RisksPrimaryKey and RisksColumn2 are the table columns denoting the + // primary key for the risks relation (M2M). + RisksPrimaryKey = []string{"control_id", "risk_id"} + // ActionplansPrimaryKey and ActionplansColumn2 are the table columns denoting the + // primary key for the actionplans relation (M2M). + ActionplansPrimaryKey = []string{"control_id", "action_plan_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 + } + } + for i := range ForeignKeys { + if column == ForeignKeys[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/internal/ent/generated/runtime" +var ( + Hooks [2]ent.Hook + Interceptors [1]ent.Interceptor + // 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 + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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 +) + +// OrderOption defines the ordering options for the Control 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByControlType orders the results by the control_type field. +func ByControlType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldControlType, opts...).ToFunc() +} + +// ByVersion orders the results by the version field. +func ByVersion(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldVersion, opts...).ToFunc() +} + +// ByControlNumber orders the results by the control_number field. +func ByControlNumber(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldControlNumber, opts...).ToFunc() +} + +// ByFamily orders the results by the family field. +func ByFamily(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldFamily, opts...).ToFunc() +} + +// ByClass orders the results by the class field. +func ByClass(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldClass, opts...).ToFunc() +} + +// BySource orders the results by the source field. +func BySource(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSource, opts...).ToFunc() +} + +// BySatisfies orders the results by the satisfies field. +func BySatisfies(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSatisfies, opts...).ToFunc() +} + +// ByMappedFrameworks orders the results by the mapped_frameworks field. +func ByMappedFrameworks(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappedFrameworks, opts...).ToFunc() +} + +// ByProceduresCount orders the results by procedures count. +func ByProceduresCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newProceduresStep(), opts...) + } +} + +// ByProcedures orders the results by procedures terms. +func ByProcedures(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newProceduresStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// BySubcontrolsCount orders the results by subcontrols count. +func BySubcontrolsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newSubcontrolsStep(), opts...) + } +} + +// BySubcontrols orders the results by subcontrols terms. +func BySubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newSubcontrolsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByControlobjectivesCount orders the results by controlobjectives count. +func ByControlobjectivesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlobjectivesStep(), opts...) + } +} + +// ByControlobjectives orders the results by controlobjectives terms. +func ByControlobjectives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlobjectivesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByStandardCount orders the results by standard count. +func ByStandardCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newStandardStep(), opts...) + } +} + +// ByStandard orders the results by standard terms. +func ByStandard(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newStandardStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByNarrativesCount orders the results by narratives count. +func ByNarrativesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newNarrativesStep(), opts...) + } +} + +// ByNarratives orders the results by narratives terms. +func ByNarratives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newNarrativesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByRisksCount orders the results by risks count. +func ByRisksCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newRisksStep(), opts...) + } +} + +// ByRisks orders the results by risks terms. +func ByRisks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newRisksStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByActionplansCount orders the results by actionplans count. +func ByActionplansCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newActionplansStep(), opts...) + } +} + +// ByActionplans orders the results by actionplans terms. +func ByActionplans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newActionplansStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} +func newProceduresStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ProceduresInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ProceduresTable, ProceduresPrimaryKey...), + ) +} +func newSubcontrolsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(SubcontrolsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, SubcontrolsTable, SubcontrolsPrimaryKey...), + ) +} +func newControlobjectivesStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ControlobjectivesInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ControlobjectivesTable, ControlobjectivesColumn), + ) +} +func newStandardStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(StandardInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, StandardTable, StandardPrimaryKey...), + ) +} +func newNarrativesStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(NarrativesInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, NarrativesTable, NarrativesPrimaryKey...), + ) +} +func newRisksStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(RisksInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, RisksTable, RisksPrimaryKey...), + ) +} +func newActionplansStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ActionplansInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ActionplansTable, ActionplansPrimaryKey...), + ) +} diff --git a/internal/ent/generated/control/where.go b/internal/ent/generated/control/where.go new file mode 100644 index 00000000..1e8c8b6c --- /dev/null +++ b/internal/ent/generated/control/where.go @@ -0,0 +1,1651 @@ +// Code generated by ent, DO NOT EDIT. + +package control + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.Control { + return predicate.Control(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.Control { + return predicate.Control(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.Control { + return predicate.Control(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldStatus, v)) +} + +// ControlType applies equality check predicate on the "control_type" field. It's identical to ControlTypeEQ. +func ControlType(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldControlType, v)) +} + +// Version applies equality check predicate on the "version" field. It's identical to VersionEQ. +func Version(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldVersion, v)) +} + +// ControlNumber applies equality check predicate on the "control_number" field. It's identical to ControlNumberEQ. +func ControlNumber(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldControlNumber, v)) +} + +// Family applies equality check predicate on the "family" field. It's identical to FamilyEQ. +func Family(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldFamily, v)) +} + +// Class applies equality check predicate on the "class" field. It's identical to ClassEQ. +func Class(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldClass, v)) +} + +// Source applies equality check predicate on the "source" field. It's identical to SourceEQ. +func Source(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldSource, v)) +} + +// Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ. +func Satisfies(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldSatisfies, v)) +} + +// MappedFrameworks applies equality check predicate on the "mapped_frameworks" field. It's identical to MappedFrameworksEQ. +func MappedFrameworks(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldMappedFrameworks, v)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.Control { + return predicate.Control(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.Control { + return predicate.Control(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.Control { + return predicate.Control(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.Control { + return predicate.Control(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.Control { + return predicate.Control(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.Control { + return predicate.Control(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.Control { + return predicate.Control(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.Control { + return predicate.Control(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.Control { + return predicate.Control(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldStatus, v)) +} + +// ControlTypeEQ applies the EQ predicate on the "control_type" field. +func ControlTypeEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldControlType, v)) +} + +// ControlTypeNEQ applies the NEQ predicate on the "control_type" field. +func ControlTypeNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldControlType, v)) +} + +// ControlTypeIn applies the In predicate on the "control_type" field. +func ControlTypeIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldControlType, vs...)) +} + +// ControlTypeNotIn applies the NotIn predicate on the "control_type" field. +func ControlTypeNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldControlType, vs...)) +} + +// ControlTypeGT applies the GT predicate on the "control_type" field. +func ControlTypeGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldControlType, v)) +} + +// ControlTypeGTE applies the GTE predicate on the "control_type" field. +func ControlTypeGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldControlType, v)) +} + +// ControlTypeLT applies the LT predicate on the "control_type" field. +func ControlTypeLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldControlType, v)) +} + +// ControlTypeLTE applies the LTE predicate on the "control_type" field. +func ControlTypeLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldControlType, v)) +} + +// ControlTypeContains applies the Contains predicate on the "control_type" field. +func ControlTypeContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldControlType, v)) +} + +// ControlTypeHasPrefix applies the HasPrefix predicate on the "control_type" field. +func ControlTypeHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldControlType, v)) +} + +// ControlTypeHasSuffix applies the HasSuffix predicate on the "control_type" field. +func ControlTypeHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldControlType, v)) +} + +// ControlTypeIsNil applies the IsNil predicate on the "control_type" field. +func ControlTypeIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldControlType)) +} + +// ControlTypeNotNil applies the NotNil predicate on the "control_type" field. +func ControlTypeNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldControlType)) +} + +// ControlTypeEqualFold applies the EqualFold predicate on the "control_type" field. +func ControlTypeEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldControlType, v)) +} + +// ControlTypeContainsFold applies the ContainsFold predicate on the "control_type" field. +func ControlTypeContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldControlType, v)) +} + +// VersionEQ applies the EQ predicate on the "version" field. +func VersionEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldVersion, v)) +} + +// VersionNEQ applies the NEQ predicate on the "version" field. +func VersionNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldVersion, v)) +} + +// VersionIn applies the In predicate on the "version" field. +func VersionIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldVersion, vs...)) +} + +// VersionNotIn applies the NotIn predicate on the "version" field. +func VersionNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldVersion, vs...)) +} + +// VersionGT applies the GT predicate on the "version" field. +func VersionGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldVersion, v)) +} + +// VersionGTE applies the GTE predicate on the "version" field. +func VersionGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldVersion, v)) +} + +// VersionLT applies the LT predicate on the "version" field. +func VersionLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldVersion, v)) +} + +// VersionLTE applies the LTE predicate on the "version" field. +func VersionLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldVersion, v)) +} + +// VersionContains applies the Contains predicate on the "version" field. +func VersionContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldVersion, v)) +} + +// VersionHasPrefix applies the HasPrefix predicate on the "version" field. +func VersionHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldVersion, v)) +} + +// VersionHasSuffix applies the HasSuffix predicate on the "version" field. +func VersionHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldVersion, v)) +} + +// VersionIsNil applies the IsNil predicate on the "version" field. +func VersionIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldVersion)) +} + +// VersionNotNil applies the NotNil predicate on the "version" field. +func VersionNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldVersion)) +} + +// VersionEqualFold applies the EqualFold predicate on the "version" field. +func VersionEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldVersion, v)) +} + +// VersionContainsFold applies the ContainsFold predicate on the "version" field. +func VersionContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldVersion, v)) +} + +// ControlNumberEQ applies the EQ predicate on the "control_number" field. +func ControlNumberEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldControlNumber, v)) +} + +// ControlNumberNEQ applies the NEQ predicate on the "control_number" field. +func ControlNumberNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldControlNumber, v)) +} + +// ControlNumberIn applies the In predicate on the "control_number" field. +func ControlNumberIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldControlNumber, vs...)) +} + +// ControlNumberNotIn applies the NotIn predicate on the "control_number" field. +func ControlNumberNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldControlNumber, vs...)) +} + +// ControlNumberGT applies the GT predicate on the "control_number" field. +func ControlNumberGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldControlNumber, v)) +} + +// ControlNumberGTE applies the GTE predicate on the "control_number" field. +func ControlNumberGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldControlNumber, v)) +} + +// ControlNumberLT applies the LT predicate on the "control_number" field. +func ControlNumberLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldControlNumber, v)) +} + +// ControlNumberLTE applies the LTE predicate on the "control_number" field. +func ControlNumberLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldControlNumber, v)) +} + +// ControlNumberContains applies the Contains predicate on the "control_number" field. +func ControlNumberContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldControlNumber, v)) +} + +// ControlNumberHasPrefix applies the HasPrefix predicate on the "control_number" field. +func ControlNumberHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldControlNumber, v)) +} + +// ControlNumberHasSuffix applies the HasSuffix predicate on the "control_number" field. +func ControlNumberHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldControlNumber, v)) +} + +// ControlNumberIsNil applies the IsNil predicate on the "control_number" field. +func ControlNumberIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldControlNumber)) +} + +// ControlNumberNotNil applies the NotNil predicate on the "control_number" field. +func ControlNumberNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldControlNumber)) +} + +// ControlNumberEqualFold applies the EqualFold predicate on the "control_number" field. +func ControlNumberEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldControlNumber, v)) +} + +// ControlNumberContainsFold applies the ContainsFold predicate on the "control_number" field. +func ControlNumberContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldControlNumber, v)) +} + +// FamilyEQ applies the EQ predicate on the "family" field. +func FamilyEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldFamily, v)) +} + +// FamilyNEQ applies the NEQ predicate on the "family" field. +func FamilyNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldFamily, v)) +} + +// FamilyIn applies the In predicate on the "family" field. +func FamilyIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldFamily, vs...)) +} + +// FamilyNotIn applies the NotIn predicate on the "family" field. +func FamilyNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldFamily, vs...)) +} + +// FamilyGT applies the GT predicate on the "family" field. +func FamilyGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldFamily, v)) +} + +// FamilyGTE applies the GTE predicate on the "family" field. +func FamilyGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldFamily, v)) +} + +// FamilyLT applies the LT predicate on the "family" field. +func FamilyLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldFamily, v)) +} + +// FamilyLTE applies the LTE predicate on the "family" field. +func FamilyLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldFamily, v)) +} + +// FamilyContains applies the Contains predicate on the "family" field. +func FamilyContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldFamily, v)) +} + +// FamilyHasPrefix applies the HasPrefix predicate on the "family" field. +func FamilyHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldFamily, v)) +} + +// FamilyHasSuffix applies the HasSuffix predicate on the "family" field. +func FamilyHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldFamily, v)) +} + +// FamilyIsNil applies the IsNil predicate on the "family" field. +func FamilyIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldFamily)) +} + +// FamilyNotNil applies the NotNil predicate on the "family" field. +func FamilyNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldFamily)) +} + +// FamilyEqualFold applies the EqualFold predicate on the "family" field. +func FamilyEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldFamily, v)) +} + +// FamilyContainsFold applies the ContainsFold predicate on the "family" field. +func FamilyContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldFamily, v)) +} + +// ClassEQ applies the EQ predicate on the "class" field. +func ClassEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldClass, v)) +} + +// ClassNEQ applies the NEQ predicate on the "class" field. +func ClassNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldClass, v)) +} + +// ClassIn applies the In predicate on the "class" field. +func ClassIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldClass, vs...)) +} + +// ClassNotIn applies the NotIn predicate on the "class" field. +func ClassNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldClass, vs...)) +} + +// ClassGT applies the GT predicate on the "class" field. +func ClassGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldClass, v)) +} + +// ClassGTE applies the GTE predicate on the "class" field. +func ClassGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldClass, v)) +} + +// ClassLT applies the LT predicate on the "class" field. +func ClassLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldClass, v)) +} + +// ClassLTE applies the LTE predicate on the "class" field. +func ClassLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldClass, v)) +} + +// ClassContains applies the Contains predicate on the "class" field. +func ClassContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldClass, v)) +} + +// ClassHasPrefix applies the HasPrefix predicate on the "class" field. +func ClassHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldClass, v)) +} + +// ClassHasSuffix applies the HasSuffix predicate on the "class" field. +func ClassHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldClass, v)) +} + +// ClassIsNil applies the IsNil predicate on the "class" field. +func ClassIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldClass)) +} + +// ClassNotNil applies the NotNil predicate on the "class" field. +func ClassNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldClass)) +} + +// ClassEqualFold applies the EqualFold predicate on the "class" field. +func ClassEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldClass, v)) +} + +// ClassContainsFold applies the ContainsFold predicate on the "class" field. +func ClassContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldClass, v)) +} + +// SourceEQ applies the EQ predicate on the "source" field. +func SourceEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldSource, v)) +} + +// SourceNEQ applies the NEQ predicate on the "source" field. +func SourceNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldSource, v)) +} + +// SourceIn applies the In predicate on the "source" field. +func SourceIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldSource, vs...)) +} + +// SourceNotIn applies the NotIn predicate on the "source" field. +func SourceNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldSource, vs...)) +} + +// SourceGT applies the GT predicate on the "source" field. +func SourceGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldSource, v)) +} + +// SourceGTE applies the GTE predicate on the "source" field. +func SourceGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldSource, v)) +} + +// SourceLT applies the LT predicate on the "source" field. +func SourceLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldSource, v)) +} + +// SourceLTE applies the LTE predicate on the "source" field. +func SourceLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldSource, v)) +} + +// SourceContains applies the Contains predicate on the "source" field. +func SourceContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldSource, v)) +} + +// SourceHasPrefix applies the HasPrefix predicate on the "source" field. +func SourceHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldSource, v)) +} + +// SourceHasSuffix applies the HasSuffix predicate on the "source" field. +func SourceHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldSource, v)) +} + +// SourceIsNil applies the IsNil predicate on the "source" field. +func SourceIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldSource)) +} + +// SourceNotNil applies the NotNil predicate on the "source" field. +func SourceNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldSource)) +} + +// SourceEqualFold applies the EqualFold predicate on the "source" field. +func SourceEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldSource, v)) +} + +// SourceContainsFold applies the ContainsFold predicate on the "source" field. +func SourceContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldSource, v)) +} + +// SatisfiesEQ applies the EQ predicate on the "satisfies" field. +func SatisfiesEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldSatisfies, v)) +} + +// SatisfiesNEQ applies the NEQ predicate on the "satisfies" field. +func SatisfiesNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldSatisfies, v)) +} + +// SatisfiesIn applies the In predicate on the "satisfies" field. +func SatisfiesIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldSatisfies, vs...)) +} + +// SatisfiesNotIn applies the NotIn predicate on the "satisfies" field. +func SatisfiesNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldSatisfies, vs...)) +} + +// SatisfiesGT applies the GT predicate on the "satisfies" field. +func SatisfiesGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldSatisfies, v)) +} + +// SatisfiesGTE applies the GTE predicate on the "satisfies" field. +func SatisfiesGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldSatisfies, v)) +} + +// SatisfiesLT applies the LT predicate on the "satisfies" field. +func SatisfiesLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldSatisfies, v)) +} + +// SatisfiesLTE applies the LTE predicate on the "satisfies" field. +func SatisfiesLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldSatisfies, v)) +} + +// SatisfiesContains applies the Contains predicate on the "satisfies" field. +func SatisfiesContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldSatisfies, v)) +} + +// SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field. +func SatisfiesHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldSatisfies, v)) +} + +// SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field. +func SatisfiesHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldSatisfies, v)) +} + +// SatisfiesIsNil applies the IsNil predicate on the "satisfies" field. +func SatisfiesIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldSatisfies)) +} + +// SatisfiesNotNil applies the NotNil predicate on the "satisfies" field. +func SatisfiesNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldSatisfies)) +} + +// SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field. +func SatisfiesEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldSatisfies, v)) +} + +// SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field. +func SatisfiesContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldSatisfies, v)) +} + +// MappedFrameworksEQ applies the EQ predicate on the "mapped_frameworks" field. +func MappedFrameworksEQ(v string) predicate.Control { + return predicate.Control(sql.FieldEQ(FieldMappedFrameworks, v)) +} + +// MappedFrameworksNEQ applies the NEQ predicate on the "mapped_frameworks" field. +func MappedFrameworksNEQ(v string) predicate.Control { + return predicate.Control(sql.FieldNEQ(FieldMappedFrameworks, v)) +} + +// MappedFrameworksIn applies the In predicate on the "mapped_frameworks" field. +func MappedFrameworksIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldIn(FieldMappedFrameworks, vs...)) +} + +// MappedFrameworksNotIn applies the NotIn predicate on the "mapped_frameworks" field. +func MappedFrameworksNotIn(vs ...string) predicate.Control { + return predicate.Control(sql.FieldNotIn(FieldMappedFrameworks, vs...)) +} + +// MappedFrameworksGT applies the GT predicate on the "mapped_frameworks" field. +func MappedFrameworksGT(v string) predicate.Control { + return predicate.Control(sql.FieldGT(FieldMappedFrameworks, v)) +} + +// MappedFrameworksGTE applies the GTE predicate on the "mapped_frameworks" field. +func MappedFrameworksGTE(v string) predicate.Control { + return predicate.Control(sql.FieldGTE(FieldMappedFrameworks, v)) +} + +// MappedFrameworksLT applies the LT predicate on the "mapped_frameworks" field. +func MappedFrameworksLT(v string) predicate.Control { + return predicate.Control(sql.FieldLT(FieldMappedFrameworks, v)) +} + +// MappedFrameworksLTE applies the LTE predicate on the "mapped_frameworks" field. +func MappedFrameworksLTE(v string) predicate.Control { + return predicate.Control(sql.FieldLTE(FieldMappedFrameworks, v)) +} + +// MappedFrameworksContains applies the Contains predicate on the "mapped_frameworks" field. +func MappedFrameworksContains(v string) predicate.Control { + return predicate.Control(sql.FieldContains(FieldMappedFrameworks, v)) +} + +// MappedFrameworksHasPrefix applies the HasPrefix predicate on the "mapped_frameworks" field. +func MappedFrameworksHasPrefix(v string) predicate.Control { + return predicate.Control(sql.FieldHasPrefix(FieldMappedFrameworks, v)) +} + +// MappedFrameworksHasSuffix applies the HasSuffix predicate on the "mapped_frameworks" field. +func MappedFrameworksHasSuffix(v string) predicate.Control { + return predicate.Control(sql.FieldHasSuffix(FieldMappedFrameworks, v)) +} + +// MappedFrameworksIsNil applies the IsNil predicate on the "mapped_frameworks" field. +func MappedFrameworksIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldMappedFrameworks)) +} + +// MappedFrameworksNotNil applies the NotNil predicate on the "mapped_frameworks" field. +func MappedFrameworksNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldMappedFrameworks)) +} + +// MappedFrameworksEqualFold applies the EqualFold predicate on the "mapped_frameworks" field. +func MappedFrameworksEqualFold(v string) predicate.Control { + return predicate.Control(sql.FieldEqualFold(FieldMappedFrameworks, v)) +} + +// MappedFrameworksContainsFold applies the ContainsFold predicate on the "mapped_frameworks" field. +func MappedFrameworksContainsFold(v string) predicate.Control { + return predicate.Control(sql.FieldContainsFold(FieldMappedFrameworks, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.Control { + return predicate.Control(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.Control { + return predicate.Control(sql.FieldNotNull(FieldDetails)) +} + +// HasProcedures applies the HasEdge predicate on the "procedures" edge. +func HasProcedures() predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ProceduresTable, ProceduresPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.ControlProcedures + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasProceduresWith applies the HasEdge predicate on the "procedures" edge with a given conditions (other predicates). +func HasProceduresWith(preds ...predicate.Procedure) predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := newProceduresStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.ControlProcedures + 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.Control { + return predicate.Control(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, SubcontrolsTable, SubcontrolsPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.ControlSubcontrols + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasSubcontrolsWith applies the HasEdge predicate on the "subcontrols" edge with a given conditions (other predicates). +func HasSubcontrolsWith(preds ...predicate.Subcontrol) predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := newSubcontrolsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.ControlSubcontrols + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasControlobjectives applies the HasEdge predicate on the "controlobjectives" edge. +func HasControlobjectives() predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ControlobjectivesTable, ControlobjectivesColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.ControlObjective + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlobjectivesWith applies the HasEdge predicate on the "controlobjectives" edge with a given conditions (other predicates). +func HasControlobjectivesWith(preds ...predicate.ControlObjective) predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := newControlobjectivesStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.ControlObjective + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasStandard applies the HasEdge predicate on the "standard" edge. +func HasStandard() predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, StandardTable, StandardPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.StandardControls + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasStandardWith applies the HasEdge predicate on the "standard" edge with a given conditions (other predicates). +func HasStandardWith(preds ...predicate.Standard) predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := newStandardStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.StandardControls + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasNarratives applies the HasEdge predicate on the "narratives" edge. +func HasNarratives() predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, NarrativesTable, NarrativesPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.ControlNarratives + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasNarrativesWith applies the HasEdge predicate on the "narratives" edge with a given conditions (other predicates). +func HasNarrativesWith(preds ...predicate.Narrative) predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := newNarrativesStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.ControlNarratives + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasRisks applies the HasEdge predicate on the "risks" edge. +func HasRisks() predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, RisksTable, RisksPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.ControlRisks + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasRisksWith applies the HasEdge predicate on the "risks" edge with a given conditions (other predicates). +func HasRisksWith(preds ...predicate.Risk) predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := newRisksStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.ControlRisks + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasActionplans applies the HasEdge predicate on the "actionplans" edge. +func HasActionplans() predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ActionplansTable, ActionplansPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.ControlActionplans + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasActionplansWith applies the HasEdge predicate on the "actionplans" edge with a given conditions (other predicates). +func HasActionplansWith(preds ...predicate.ActionPlan) predicate.Control { + return predicate.Control(func(s *sql.Selector) { + step := newActionplansStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.ControlActionplans + 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.Control) predicate.Control { + return predicate.Control(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.Control) predicate.Control { + return predicate.Control(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.Control) predicate.Control { + return predicate.Control(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/control_create.go b/internal/ent/generated/control_create.go new file mode 100644 index 00000000..423a7559 --- /dev/null +++ b/internal/ent/generated/control_create.go @@ -0,0 +1,805 @@ +// 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/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" +) + +// ControlCreate is the builder for creating a Control entity. +type ControlCreate struct { + config + mutation *ControlMutation + hooks []Hook +} + +// SetCreatedAt sets the "created_at" field. +func (cc *ControlCreate) SetCreatedAt(t time.Time) *ControlCreate { + cc.mutation.SetCreatedAt(t) + return cc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (cc *ControlCreate) SetNillableCreatedAt(t *time.Time) *ControlCreate { + if t != nil { + cc.SetCreatedAt(*t) + } + return cc +} + +// SetUpdatedAt sets the "updated_at" field. +func (cc *ControlCreate) SetUpdatedAt(t time.Time) *ControlCreate { + cc.mutation.SetUpdatedAt(t) + return cc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (cc *ControlCreate) SetNillableUpdatedAt(t *time.Time) *ControlCreate { + if t != nil { + cc.SetUpdatedAt(*t) + } + return cc +} + +// SetCreatedBy sets the "created_by" field. +func (cc *ControlCreate) SetCreatedBy(s string) *ControlCreate { + cc.mutation.SetCreatedBy(s) + return cc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (cc *ControlCreate) SetNillableCreatedBy(s *string) *ControlCreate { + if s != nil { + cc.SetCreatedBy(*s) + } + return cc +} + +// SetUpdatedBy sets the "updated_by" field. +func (cc *ControlCreate) SetUpdatedBy(s string) *ControlCreate { + cc.mutation.SetUpdatedBy(s) + return cc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (cc *ControlCreate) SetNillableUpdatedBy(s *string) *ControlCreate { + if s != nil { + cc.SetUpdatedBy(*s) + } + return cc +} + +// SetDeletedAt sets the "deleted_at" field. +func (cc *ControlCreate) SetDeletedAt(t time.Time) *ControlCreate { + cc.mutation.SetDeletedAt(t) + return cc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (cc *ControlCreate) SetNillableDeletedAt(t *time.Time) *ControlCreate { + if t != nil { + cc.SetDeletedAt(*t) + } + return cc +} + +// SetDeletedBy sets the "deleted_by" field. +func (cc *ControlCreate) SetDeletedBy(s string) *ControlCreate { + cc.mutation.SetDeletedBy(s) + return cc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (cc *ControlCreate) SetNillableDeletedBy(s *string) *ControlCreate { + if s != nil { + cc.SetDeletedBy(*s) + } + return cc +} + +// SetMappingID sets the "mapping_id" field. +func (cc *ControlCreate) SetMappingID(s string) *ControlCreate { + cc.mutation.SetMappingID(s) + return cc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (cc *ControlCreate) SetNillableMappingID(s *string) *ControlCreate { + if s != nil { + cc.SetMappingID(*s) + } + return cc +} + +// SetTags sets the "tags" field. +func (cc *ControlCreate) SetTags(s []string) *ControlCreate { + cc.mutation.SetTags(s) + return cc +} + +// SetName sets the "name" field. +func (cc *ControlCreate) SetName(s string) *ControlCreate { + cc.mutation.SetName(s) + return cc +} + +// SetDescription sets the "description" field. +func (cc *ControlCreate) SetDescription(s string) *ControlCreate { + cc.mutation.SetDescription(s) + return cc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (cc *ControlCreate) SetNillableDescription(s *string) *ControlCreate { + if s != nil { + cc.SetDescription(*s) + } + return cc +} + +// SetStatus sets the "status" field. +func (cc *ControlCreate) SetStatus(s string) *ControlCreate { + cc.mutation.SetStatus(s) + return cc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (cc *ControlCreate) SetNillableStatus(s *string) *ControlCreate { + if s != nil { + cc.SetStatus(*s) + } + return cc +} + +// SetControlType sets the "control_type" field. +func (cc *ControlCreate) SetControlType(s string) *ControlCreate { + cc.mutation.SetControlType(s) + return cc +} + +// SetNillableControlType sets the "control_type" field if the given value is not nil. +func (cc *ControlCreate) SetNillableControlType(s *string) *ControlCreate { + if s != nil { + cc.SetControlType(*s) + } + return cc +} + +// SetVersion sets the "version" field. +func (cc *ControlCreate) SetVersion(s string) *ControlCreate { + cc.mutation.SetVersion(s) + return cc +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (cc *ControlCreate) SetNillableVersion(s *string) *ControlCreate { + if s != nil { + cc.SetVersion(*s) + } + return cc +} + +// SetControlNumber sets the "control_number" field. +func (cc *ControlCreate) SetControlNumber(s string) *ControlCreate { + cc.mutation.SetControlNumber(s) + return cc +} + +// SetNillableControlNumber sets the "control_number" field if the given value is not nil. +func (cc *ControlCreate) SetNillableControlNumber(s *string) *ControlCreate { + if s != nil { + cc.SetControlNumber(*s) + } + return cc +} + +// SetFamily sets the "family" field. +func (cc *ControlCreate) SetFamily(s string) *ControlCreate { + cc.mutation.SetFamily(s) + return cc +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (cc *ControlCreate) SetNillableFamily(s *string) *ControlCreate { + if s != nil { + cc.SetFamily(*s) + } + return cc +} + +// SetClass sets the "class" field. +func (cc *ControlCreate) SetClass(s string) *ControlCreate { + cc.mutation.SetClass(s) + return cc +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (cc *ControlCreate) SetNillableClass(s *string) *ControlCreate { + if s != nil { + cc.SetClass(*s) + } + return cc +} + +// SetSource sets the "source" field. +func (cc *ControlCreate) SetSource(s string) *ControlCreate { + cc.mutation.SetSource(s) + return cc +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (cc *ControlCreate) SetNillableSource(s *string) *ControlCreate { + if s != nil { + cc.SetSource(*s) + } + return cc +} + +// SetSatisfies sets the "satisfies" field. +func (cc *ControlCreate) SetSatisfies(s string) *ControlCreate { + cc.mutation.SetSatisfies(s) + return cc +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (cc *ControlCreate) SetNillableSatisfies(s *string) *ControlCreate { + if s != nil { + cc.SetSatisfies(*s) + } + return cc +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (cc *ControlCreate) SetMappedFrameworks(s string) *ControlCreate { + cc.mutation.SetMappedFrameworks(s) + return cc +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (cc *ControlCreate) SetNillableMappedFrameworks(s *string) *ControlCreate { + if s != nil { + cc.SetMappedFrameworks(*s) + } + return cc +} + +// SetDetails sets the "details" field. +func (cc *ControlCreate) SetDetails(m map[string]interface{}) *ControlCreate { + cc.mutation.SetDetails(m) + return cc +} + +// SetID sets the "id" field. +func (cc *ControlCreate) SetID(s string) *ControlCreate { + cc.mutation.SetID(s) + return cc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (cc *ControlCreate) SetNillableID(s *string) *ControlCreate { + if s != nil { + cc.SetID(*s) + } + return cc +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (cc *ControlCreate) AddProcedureIDs(ids ...string) *ControlCreate { + cc.mutation.AddProcedureIDs(ids...) + return cc +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (cc *ControlCreate) AddProcedures(p ...*Procedure) *ControlCreate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return cc.AddProcedureIDs(ids...) +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (cc *ControlCreate) AddSubcontrolIDs(ids ...string) *ControlCreate { + cc.mutation.AddSubcontrolIDs(ids...) + return cc +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (cc *ControlCreate) AddSubcontrols(s ...*Subcontrol) *ControlCreate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cc.AddSubcontrolIDs(ids...) +} + +// AddControlobjectiveIDs adds the "controlobjectives" edge to the ControlObjective entity by IDs. +func (cc *ControlCreate) AddControlobjectiveIDs(ids ...string) *ControlCreate { + cc.mutation.AddControlobjectiveIDs(ids...) + return cc +} + +// AddControlobjectives adds the "controlobjectives" edges to the ControlObjective entity. +func (cc *ControlCreate) AddControlobjectives(c ...*ControlObjective) *ControlCreate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return cc.AddControlobjectiveIDs(ids...) +} + +// AddStandardIDs adds the "standard" edge to the Standard entity by IDs. +func (cc *ControlCreate) AddStandardIDs(ids ...string) *ControlCreate { + cc.mutation.AddStandardIDs(ids...) + return cc +} + +// AddStandard adds the "standard" edges to the Standard entity. +func (cc *ControlCreate) AddStandard(s ...*Standard) *ControlCreate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cc.AddStandardIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (cc *ControlCreate) AddNarrativeIDs(ids ...string) *ControlCreate { + cc.mutation.AddNarrativeIDs(ids...) + return cc +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (cc *ControlCreate) AddNarratives(n ...*Narrative) *ControlCreate { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return cc.AddNarrativeIDs(ids...) +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. +func (cc *ControlCreate) AddRiskIDs(ids ...string) *ControlCreate { + cc.mutation.AddRiskIDs(ids...) + return cc +} + +// AddRisks adds the "risks" edges to the Risk entity. +func (cc *ControlCreate) AddRisks(r ...*Risk) *ControlCreate { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return cc.AddRiskIDs(ids...) +} + +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by IDs. +func (cc *ControlCreate) AddActionplanIDs(ids ...string) *ControlCreate { + cc.mutation.AddActionplanIDs(ids...) + return cc +} + +// AddActionplans adds the "actionplans" edges to the ActionPlan entity. +func (cc *ControlCreate) AddActionplans(a ...*ActionPlan) *ControlCreate { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return cc.AddActionplanIDs(ids...) +} + +// Mutation returns the ControlMutation object of the builder. +func (cc *ControlCreate) Mutation() *ControlMutation { + return cc.mutation +} + +// Save creates the Control in the database. +func (cc *ControlCreate) Save(ctx context.Context) (*Control, error) { + if err := cc.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, cc.sqlSave, cc.mutation, cc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (cc *ControlCreate) SaveX(ctx context.Context) *Control { + v, err := cc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (cc *ControlCreate) Exec(ctx context.Context) error { + _, err := cc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (cc *ControlCreate) ExecX(ctx context.Context) { + if err := cc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (cc *ControlCreate) defaults() error { + if _, ok := cc.mutation.CreatedAt(); !ok { + if control.DefaultCreatedAt == nil { + return fmt.Errorf("generated: uninitialized control.DefaultCreatedAt (forgotten import generated/runtime?)") + } + v := control.DefaultCreatedAt() + cc.mutation.SetCreatedAt(v) + } + if _, ok := cc.mutation.UpdatedAt(); !ok { + if control.DefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized control.DefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := control.DefaultUpdatedAt() + cc.mutation.SetUpdatedAt(v) + } + if _, ok := cc.mutation.MappingID(); !ok { + if control.DefaultMappingID == nil { + return fmt.Errorf("generated: uninitialized control.DefaultMappingID (forgotten import generated/runtime?)") + } + v := control.DefaultMappingID() + cc.mutation.SetMappingID(v) + } + if _, ok := cc.mutation.Tags(); !ok { + v := control.DefaultTags + cc.mutation.SetTags(v) + } + if _, ok := cc.mutation.ID(); !ok { + if control.DefaultID == nil { + return fmt.Errorf("generated: uninitialized control.DefaultID (forgotten import generated/runtime?)") + } + v := control.DefaultID() + cc.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (cc *ControlCreate) check() error { + if _, ok := cc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "Control.mapping_id"`)} + } + if _, ok := cc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "Control.name"`)} + } + return nil +} + +func (cc *ControlCreate) sqlSave(ctx context.Context) (*Control, error) { + if err := cc.check(); err != nil { + return nil, err + } + _node, _spec := cc.createSpec() + if err := sqlgraph.CreateNode(ctx, cc.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 Control.ID type: %T", _spec.ID.Value) + } + } + cc.mutation.id = &_node.ID + cc.mutation.done = true + return _node, nil +} + +func (cc *ControlCreate) createSpec() (*Control, *sqlgraph.CreateSpec) { + var ( + _node = &Control{config: cc.config} + _spec = sqlgraph.NewCreateSpec(control.Table, sqlgraph.NewFieldSpec(control.FieldID, field.TypeString)) + ) + _spec.Schema = cc.schemaConfig.Control + if id, ok := cc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := cc.mutation.CreatedAt(); ok { + _spec.SetField(control.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := cc.mutation.UpdatedAt(); ok { + _spec.SetField(control.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := cc.mutation.CreatedBy(); ok { + _spec.SetField(control.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := cc.mutation.UpdatedBy(); ok { + _spec.SetField(control.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := cc.mutation.DeletedAt(); ok { + _spec.SetField(control.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := cc.mutation.DeletedBy(); ok { + _spec.SetField(control.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := cc.mutation.MappingID(); ok { + _spec.SetField(control.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := cc.mutation.Tags(); ok { + _spec.SetField(control.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := cc.mutation.Name(); ok { + _spec.SetField(control.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := cc.mutation.Description(); ok { + _spec.SetField(control.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := cc.mutation.Status(); ok { + _spec.SetField(control.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := cc.mutation.ControlType(); ok { + _spec.SetField(control.FieldControlType, field.TypeString, value) + _node.ControlType = value + } + if value, ok := cc.mutation.Version(); ok { + _spec.SetField(control.FieldVersion, field.TypeString, value) + _node.Version = value + } + if value, ok := cc.mutation.ControlNumber(); ok { + _spec.SetField(control.FieldControlNumber, field.TypeString, value) + _node.ControlNumber = value + } + if value, ok := cc.mutation.Family(); ok { + _spec.SetField(control.FieldFamily, field.TypeString, value) + _node.Family = value + } + if value, ok := cc.mutation.Class(); ok { + _spec.SetField(control.FieldClass, field.TypeString, value) + _node.Class = value + } + if value, ok := cc.mutation.Source(); ok { + _spec.SetField(control.FieldSource, field.TypeString, value) + _node.Source = value + } + if value, ok := cc.mutation.Satisfies(); ok { + _spec.SetField(control.FieldSatisfies, field.TypeString, value) + _node.Satisfies = value + } + if value, ok := cc.mutation.MappedFrameworks(); ok { + _spec.SetField(control.FieldMappedFrameworks, field.TypeString, value) + _node.MappedFrameworks = value + } + if value, ok := cc.mutation.Details(); ok { + _spec.SetField(control.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + if nodes := cc.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ProceduresTable, + Columns: control.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = cc.schemaConfig.ControlProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := cc.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.SubcontrolsTable, + Columns: control.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = cc.schemaConfig.ControlSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := cc.mutation.ControlobjectivesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: control.ControlobjectivesTable, + Columns: []string{control.ControlobjectivesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = cc.schemaConfig.ControlObjective + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := cc.mutation.StandardIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: control.StandardTable, + Columns: control.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = cc.schemaConfig.StandardControls + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := cc.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.NarrativesTable, + Columns: control.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = cc.schemaConfig.ControlNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := cc.mutation.RisksIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.RisksTable, + Columns: control.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = cc.schemaConfig.ControlRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := cc.mutation.ActionplansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ActionplansTable, + Columns: control.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = cc.schemaConfig.ControlActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + return _node, _spec +} + +// ControlCreateBulk is the builder for creating many Control entities in bulk. +type ControlCreateBulk struct { + config + err error + builders []*ControlCreate +} + +// Save creates the Control entities in the database. +func (ccb *ControlCreateBulk) Save(ctx context.Context) ([]*Control, error) { + if ccb.err != nil { + return nil, ccb.err + } + specs := make([]*sqlgraph.CreateSpec, len(ccb.builders)) + nodes := make([]*Control, len(ccb.builders)) + mutators := make([]Mutator, len(ccb.builders)) + for i := range ccb.builders { + func(i int, root context.Context) { + builder := ccb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*ControlMutation) + 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, ccb.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, ccb.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, ccb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (ccb *ControlCreateBulk) SaveX(ctx context.Context) []*Control { + v, err := ccb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (ccb *ControlCreateBulk) Exec(ctx context.Context) error { + _, err := ccb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (ccb *ControlCreateBulk) ExecX(ctx context.Context) { + if err := ccb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/control_delete.go b/internal/ent/generated/control_delete.go new file mode 100644 index 00000000..96c187b6 --- /dev/null +++ b/internal/ent/generated/control_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ControlDelete is the builder for deleting a Control entity. +type ControlDelete struct { + config + hooks []Hook + mutation *ControlMutation +} + +// Where appends a list predicates to the ControlDelete builder. +func (cd *ControlDelete) Where(ps ...predicate.Control) *ControlDelete { + cd.mutation.Where(ps...) + return cd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (cd *ControlDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, cd.sqlExec, cd.mutation, cd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (cd *ControlDelete) ExecX(ctx context.Context) int { + n, err := cd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (cd *ControlDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(control.Table, sqlgraph.NewFieldSpec(control.FieldID, field.TypeString)) + _spec.Node.Schema = cd.schemaConfig.Control + ctx = internal.NewSchemaConfigContext(ctx, cd.schemaConfig) + if ps := cd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, cd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + cd.mutation.done = true + return affected, err +} + +// ControlDeleteOne is the builder for deleting a single Control entity. +type ControlDeleteOne struct { + cd *ControlDelete +} + +// Where appends a list predicates to the ControlDelete builder. +func (cdo *ControlDeleteOne) Where(ps ...predicate.Control) *ControlDeleteOne { + cdo.cd.mutation.Where(ps...) + return cdo +} + +// Exec executes the deletion query. +func (cdo *ControlDeleteOne) Exec(ctx context.Context) error { + n, err := cdo.cd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{control.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (cdo *ControlDeleteOne) ExecX(ctx context.Context) { + if err := cdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/control_query.go b/internal/ent/generated/control_query.go new file mode 100644 index 00000000..57ef8145 --- /dev/null +++ b/internal/ent/generated/control_query.go @@ -0,0 +1,1463 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "database/sql/driver" + "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/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ControlQuery is the builder for querying Control entities. +type ControlQuery struct { + config + ctx *QueryContext + order []control.OrderOption + inters []Interceptor + predicates []predicate.Control + withProcedures *ProcedureQuery + withSubcontrols *SubcontrolQuery + withControlobjectives *ControlObjectiveQuery + withStandard *StandardQuery + withNarratives *NarrativeQuery + withRisks *RiskQuery + withActionplans *ActionPlanQuery + withFKs bool + loadTotal []func(context.Context, []*Control) error + modifiers []func(*sql.Selector) + withNamedProcedures map[string]*ProcedureQuery + withNamedSubcontrols map[string]*SubcontrolQuery + withNamedControlobjectives map[string]*ControlObjectiveQuery + withNamedStandard map[string]*StandardQuery + withNamedNarratives map[string]*NarrativeQuery + withNamedRisks map[string]*RiskQuery + withNamedActionplans map[string]*ActionPlanQuery + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the ControlQuery builder. +func (cq *ControlQuery) Where(ps ...predicate.Control) *ControlQuery { + cq.predicates = append(cq.predicates, ps...) + return cq +} + +// Limit the number of records to be returned by this query. +func (cq *ControlQuery) Limit(limit int) *ControlQuery { + cq.ctx.Limit = &limit + return cq +} + +// Offset to start from. +func (cq *ControlQuery) Offset(offset int) *ControlQuery { + cq.ctx.Offset = &offset + return cq +} + +// 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 (cq *ControlQuery) Unique(unique bool) *ControlQuery { + cq.ctx.Unique = &unique + return cq +} + +// Order specifies how the records should be ordered. +func (cq *ControlQuery) Order(o ...control.OrderOption) *ControlQuery { + cq.order = append(cq.order, o...) + return cq +} + +// QueryProcedures chains the current query on the "procedures" edge. +func (cq *ControlQuery) QueryProcedures() *ProcedureQuery { + query := (&ProcedureClient{config: cq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := cq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := cq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(control.Table, control.FieldID, selector), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, control.ProceduresTable, control.ProceduresPrimaryKey...), + ) + schemaConfig := cq.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.ControlProcedures + fromU = sqlgraph.SetNeighbors(cq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QuerySubcontrols chains the current query on the "subcontrols" edge. +func (cq *ControlQuery) QuerySubcontrols() *SubcontrolQuery { + query := (&SubcontrolClient{config: cq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := cq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := cq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(control.Table, control.FieldID, selector), + sqlgraph.To(subcontrol.Table, subcontrol.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, control.SubcontrolsTable, control.SubcontrolsPrimaryKey...), + ) + schemaConfig := cq.schemaConfig + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.ControlSubcontrols + fromU = sqlgraph.SetNeighbors(cq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryControlobjectives chains the current query on the "controlobjectives" edge. +func (cq *ControlQuery) QueryControlobjectives() *ControlObjectiveQuery { + query := (&ControlObjectiveClient{config: cq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := cq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := cq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(control.Table, control.FieldID, selector), + sqlgraph.To(controlobjective.Table, controlobjective.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, control.ControlobjectivesTable, control.ControlobjectivesColumn), + ) + schemaConfig := cq.schemaConfig + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.ControlObjective + fromU = sqlgraph.SetNeighbors(cq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryStandard chains the current query on the "standard" edge. +func (cq *ControlQuery) QueryStandard() *StandardQuery { + query := (&StandardClient{config: cq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := cq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := cq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(control.Table, control.FieldID, selector), + sqlgraph.To(standard.Table, standard.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, control.StandardTable, control.StandardPrimaryKey...), + ) + schemaConfig := cq.schemaConfig + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.StandardControls + fromU = sqlgraph.SetNeighbors(cq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryNarratives chains the current query on the "narratives" edge. +func (cq *ControlQuery) QueryNarratives() *NarrativeQuery { + query := (&NarrativeClient{config: cq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := cq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := cq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(control.Table, control.FieldID, selector), + sqlgraph.To(narrative.Table, narrative.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, control.NarrativesTable, control.NarrativesPrimaryKey...), + ) + schemaConfig := cq.schemaConfig + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.ControlNarratives + fromU = sqlgraph.SetNeighbors(cq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryRisks chains the current query on the "risks" edge. +func (cq *ControlQuery) QueryRisks() *RiskQuery { + query := (&RiskClient{config: cq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := cq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := cq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(control.Table, control.FieldID, selector), + sqlgraph.To(risk.Table, risk.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, control.RisksTable, control.RisksPrimaryKey...), + ) + schemaConfig := cq.schemaConfig + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.ControlRisks + fromU = sqlgraph.SetNeighbors(cq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryActionplans chains the current query on the "actionplans" edge. +func (cq *ControlQuery) QueryActionplans() *ActionPlanQuery { + query := (&ActionPlanClient{config: cq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := cq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := cq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(control.Table, control.FieldID, selector), + sqlgraph.To(actionplan.Table, actionplan.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, control.ActionplansTable, control.ActionplansPrimaryKey...), + ) + schemaConfig := cq.schemaConfig + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.ControlActionplans + fromU = sqlgraph.SetNeighbors(cq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// First returns the first Control entity from the query. +// Returns a *NotFoundError when no Control was found. +func (cq *ControlQuery) First(ctx context.Context) (*Control, error) { + nodes, err := cq.Limit(1).All(setContextOp(ctx, cq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{control.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (cq *ControlQuery) FirstX(ctx context.Context) *Control { + node, err := cq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first Control ID from the query. +// Returns a *NotFoundError when no Control ID was found. +func (cq *ControlQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = cq.Limit(1).IDs(setContextOp(ctx, cq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{control.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (cq *ControlQuery) FirstIDX(ctx context.Context) string { + id, err := cq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single Control entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one Control entity is found. +// Returns a *NotFoundError when no Control entities are found. +func (cq *ControlQuery) Only(ctx context.Context) (*Control, error) { + nodes, err := cq.Limit(2).All(setContextOp(ctx, cq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{control.Label} + default: + return nil, &NotSingularError{control.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (cq *ControlQuery) OnlyX(ctx context.Context) *Control { + node, err := cq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only Control ID in the query. +// Returns a *NotSingularError when more than one Control ID is found. +// Returns a *NotFoundError when no entities are found. +func (cq *ControlQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = cq.Limit(2).IDs(setContextOp(ctx, cq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{control.Label} + default: + err = &NotSingularError{control.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (cq *ControlQuery) OnlyIDX(ctx context.Context) string { + id, err := cq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of Controls. +func (cq *ControlQuery) All(ctx context.Context) ([]*Control, error) { + ctx = setContextOp(ctx, cq.ctx, ent.OpQueryAll) + if err := cq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*Control, *ControlQuery]() + return withInterceptors[[]*Control](ctx, cq, qr, cq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (cq *ControlQuery) AllX(ctx context.Context) []*Control { + nodes, err := cq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of Control IDs. +func (cq *ControlQuery) IDs(ctx context.Context) (ids []string, err error) { + if cq.ctx.Unique == nil && cq.path != nil { + cq.Unique(true) + } + ctx = setContextOp(ctx, cq.ctx, ent.OpQueryIDs) + if err = cq.Select(control.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (cq *ControlQuery) IDsX(ctx context.Context) []string { + ids, err := cq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (cq *ControlQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, cq.ctx, ent.OpQueryCount) + if err := cq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, cq, querierCount[*ControlQuery](), cq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (cq *ControlQuery) CountX(ctx context.Context) int { + count, err := cq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (cq *ControlQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, cq.ctx, ent.OpQueryExist) + switch _, err := cq.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 (cq *ControlQuery) ExistX(ctx context.Context) bool { + exist, err := cq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the ControlQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (cq *ControlQuery) Clone() *ControlQuery { + if cq == nil { + return nil + } + return &ControlQuery{ + config: cq.config, + ctx: cq.ctx.Clone(), + order: append([]control.OrderOption{}, cq.order...), + inters: append([]Interceptor{}, cq.inters...), + predicates: append([]predicate.Control{}, cq.predicates...), + withProcedures: cq.withProcedures.Clone(), + withSubcontrols: cq.withSubcontrols.Clone(), + withControlobjectives: cq.withControlobjectives.Clone(), + withStandard: cq.withStandard.Clone(), + withNarratives: cq.withNarratives.Clone(), + withRisks: cq.withRisks.Clone(), + withActionplans: cq.withActionplans.Clone(), + // clone intermediate query. + sql: cq.sql.Clone(), + path: cq.path, + modifiers: append([]func(*sql.Selector){}, cq.modifiers...), + } +} + +// WithProcedures tells the query-builder to eager-load the nodes that are connected to +// the "procedures" edge. The optional arguments are used to configure the query builder of the edge. +func (cq *ControlQuery) WithProcedures(opts ...func(*ProcedureQuery)) *ControlQuery { + query := (&ProcedureClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + cq.withProcedures = query + return cq +} + +// 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 (cq *ControlQuery) WithSubcontrols(opts ...func(*SubcontrolQuery)) *ControlQuery { + query := (&SubcontrolClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + cq.withSubcontrols = query + return cq +} + +// WithControlobjectives tells the query-builder to eager-load the nodes that are connected to +// the "controlobjectives" edge. The optional arguments are used to configure the query builder of the edge. +func (cq *ControlQuery) WithControlobjectives(opts ...func(*ControlObjectiveQuery)) *ControlQuery { + query := (&ControlObjectiveClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + cq.withControlobjectives = query + return cq +} + +// WithStandard tells the query-builder to eager-load the nodes that are connected to +// the "standard" edge. The optional arguments are used to configure the query builder of the edge. +func (cq *ControlQuery) WithStandard(opts ...func(*StandardQuery)) *ControlQuery { + query := (&StandardClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + cq.withStandard = query + return cq +} + +// WithNarratives tells the query-builder to eager-load the nodes that are connected to +// the "narratives" edge. The optional arguments are used to configure the query builder of the edge. +func (cq *ControlQuery) WithNarratives(opts ...func(*NarrativeQuery)) *ControlQuery { + query := (&NarrativeClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + cq.withNarratives = query + return cq +} + +// WithRisks tells the query-builder to eager-load the nodes that are connected to +// the "risks" edge. The optional arguments are used to configure the query builder of the edge. +func (cq *ControlQuery) WithRisks(opts ...func(*RiskQuery)) *ControlQuery { + query := (&RiskClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + cq.withRisks = query + return cq +} + +// WithActionplans tells the query-builder to eager-load the nodes that are connected to +// the "actionplans" edge. The optional arguments are used to configure the query builder of the edge. +func (cq *ControlQuery) WithActionplans(opts ...func(*ActionPlanQuery)) *ControlQuery { + query := (&ActionPlanClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + cq.withActionplans = query + return cq +} + +// 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.Control.Query(). +// GroupBy(control.FieldCreatedAt). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (cq *ControlQuery) GroupBy(field string, fields ...string) *ControlGroupBy { + cq.ctx.Fields = append([]string{field}, fields...) + grbuild := &ControlGroupBy{build: cq} + grbuild.flds = &cq.ctx.Fields + grbuild.label = control.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.Control.Query(). +// Select(control.FieldCreatedAt). +// Scan(ctx, &v) +func (cq *ControlQuery) Select(fields ...string) *ControlSelect { + cq.ctx.Fields = append(cq.ctx.Fields, fields...) + sbuild := &ControlSelect{ControlQuery: cq} + sbuild.label = control.Label + sbuild.flds, sbuild.scan = &cq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a ControlSelect configured with the given aggregations. +func (cq *ControlQuery) Aggregate(fns ...AggregateFunc) *ControlSelect { + return cq.Select().Aggregate(fns...) +} + +func (cq *ControlQuery) prepareQuery(ctx context.Context) error { + for _, inter := range cq.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, cq); err != nil { + return err + } + } + } + for _, f := range cq.ctx.Fields { + if !control.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if cq.path != nil { + prev, err := cq.path(ctx) + if err != nil { + return err + } + cq.sql = prev + } + return nil +} + +func (cq *ControlQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Control, error) { + var ( + nodes = []*Control{} + withFKs = cq.withFKs + _spec = cq.querySpec() + loadedTypes = [7]bool{ + cq.withProcedures != nil, + cq.withSubcontrols != nil, + cq.withControlobjectives != nil, + cq.withStandard != nil, + cq.withNarratives != nil, + cq.withRisks != nil, + cq.withActionplans != nil, + } + ) + if withFKs { + _spec.Node.Columns = append(_spec.Node.Columns, control.ForeignKeys...) + } + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*Control).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &Control{config: cq.config} + nodes = append(nodes, node) + node.Edges.loadedTypes = loadedTypes + return node.assignValues(columns, values) + } + _spec.Node.Schema = cq.schemaConfig.Control + ctx = internal.NewSchemaConfigContext(ctx, cq.schemaConfig) + if len(cq.modifiers) > 0 { + _spec.Modifiers = cq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, cq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + if query := cq.withProcedures; query != nil { + if err := cq.loadProcedures(ctx, query, nodes, + func(n *Control) { n.Edges.Procedures = []*Procedure{} }, + func(n *Control, e *Procedure) { n.Edges.Procedures = append(n.Edges.Procedures, e) }); err != nil { + return nil, err + } + } + if query := cq.withSubcontrols; query != nil { + if err := cq.loadSubcontrols(ctx, query, nodes, + func(n *Control) { n.Edges.Subcontrols = []*Subcontrol{} }, + func(n *Control, e *Subcontrol) { n.Edges.Subcontrols = append(n.Edges.Subcontrols, e) }); err != nil { + return nil, err + } + } + if query := cq.withControlobjectives; query != nil { + if err := cq.loadControlobjectives(ctx, query, nodes, + func(n *Control) { n.Edges.Controlobjectives = []*ControlObjective{} }, + func(n *Control, e *ControlObjective) { + n.Edges.Controlobjectives = append(n.Edges.Controlobjectives, e) + }); err != nil { + return nil, err + } + } + if query := cq.withStandard; query != nil { + if err := cq.loadStandard(ctx, query, nodes, + func(n *Control) { n.Edges.Standard = []*Standard{} }, + func(n *Control, e *Standard) { n.Edges.Standard = append(n.Edges.Standard, e) }); err != nil { + return nil, err + } + } + if query := cq.withNarratives; query != nil { + if err := cq.loadNarratives(ctx, query, nodes, + func(n *Control) { n.Edges.Narratives = []*Narrative{} }, + func(n *Control, e *Narrative) { n.Edges.Narratives = append(n.Edges.Narratives, e) }); err != nil { + return nil, err + } + } + if query := cq.withRisks; query != nil { + if err := cq.loadRisks(ctx, query, nodes, + func(n *Control) { n.Edges.Risks = []*Risk{} }, + func(n *Control, e *Risk) { n.Edges.Risks = append(n.Edges.Risks, e) }); err != nil { + return nil, err + } + } + if query := cq.withActionplans; query != nil { + if err := cq.loadActionplans(ctx, query, nodes, + func(n *Control) { n.Edges.Actionplans = []*ActionPlan{} }, + func(n *Control, e *ActionPlan) { n.Edges.Actionplans = append(n.Edges.Actionplans, e) }); err != nil { + return nil, err + } + } + for name, query := range cq.withNamedProcedures { + if err := cq.loadProcedures(ctx, query, nodes, + func(n *Control) { n.appendNamedProcedures(name) }, + func(n *Control, e *Procedure) { n.appendNamedProcedures(name, e) }); err != nil { + return nil, err + } + } + for name, query := range cq.withNamedSubcontrols { + if err := cq.loadSubcontrols(ctx, query, nodes, + func(n *Control) { n.appendNamedSubcontrols(name) }, + func(n *Control, e *Subcontrol) { n.appendNamedSubcontrols(name, e) }); err != nil { + return nil, err + } + } + for name, query := range cq.withNamedControlobjectives { + if err := cq.loadControlobjectives(ctx, query, nodes, + func(n *Control) { n.appendNamedControlobjectives(name) }, + func(n *Control, e *ControlObjective) { n.appendNamedControlobjectives(name, e) }); err != nil { + return nil, err + } + } + for name, query := range cq.withNamedStandard { + if err := cq.loadStandard(ctx, query, nodes, + func(n *Control) { n.appendNamedStandard(name) }, + func(n *Control, e *Standard) { n.appendNamedStandard(name, e) }); err != nil { + return nil, err + } + } + for name, query := range cq.withNamedNarratives { + if err := cq.loadNarratives(ctx, query, nodes, + func(n *Control) { n.appendNamedNarratives(name) }, + func(n *Control, e *Narrative) { n.appendNamedNarratives(name, e) }); err != nil { + return nil, err + } + } + for name, query := range cq.withNamedRisks { + if err := cq.loadRisks(ctx, query, nodes, + func(n *Control) { n.appendNamedRisks(name) }, + func(n *Control, e *Risk) { n.appendNamedRisks(name, e) }); err != nil { + return nil, err + } + } + for name, query := range cq.withNamedActionplans { + if err := cq.loadActionplans(ctx, query, nodes, + func(n *Control) { n.appendNamedActionplans(name) }, + func(n *Control, e *ActionPlan) { n.appendNamedActionplans(name, e) }); err != nil { + return nil, err + } + } + for i := range cq.loadTotal { + if err := cq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (cq *ControlQuery) loadProcedures(ctx context.Context, query *ProcedureQuery, nodes []*Control, init func(*Control), assign func(*Control, *Procedure)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Control) + nids := make(map[string]map[*Control]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(control.ProceduresTable) + joinT.Schema(cq.schemaConfig.ControlProcedures) + s.Join(joinT).On(s.C(procedure.FieldID), joinT.C(control.ProceduresPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(control.ProceduresPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(control.ProceduresPrimaryKey[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[*Control]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Procedure](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 "procedures" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (cq *ControlQuery) loadSubcontrols(ctx context.Context, query *SubcontrolQuery, nodes []*Control, init func(*Control), assign func(*Control, *Subcontrol)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Control) + nids := make(map[string]map[*Control]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(control.SubcontrolsTable) + joinT.Schema(cq.schemaConfig.ControlSubcontrols) + s.Join(joinT).On(s.C(subcontrol.FieldID), joinT.C(control.SubcontrolsPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(control.SubcontrolsPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(control.SubcontrolsPrimaryKey[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[*Control]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Subcontrol](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 "subcontrols" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (cq *ControlQuery) loadControlobjectives(ctx context.Context, query *ControlObjectiveQuery, nodes []*Control, init func(*Control), assign func(*Control, *ControlObjective)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Control) + 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.ControlObjective(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(control.ControlobjectivesColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.control_controlobjectives + if fk == nil { + return fmt.Errorf(`foreign-key "control_controlobjectives" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "control_controlobjectives" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (cq *ControlQuery) loadStandard(ctx context.Context, query *StandardQuery, nodes []*Control, init func(*Control), assign func(*Control, *Standard)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Control) + nids := make(map[string]map[*Control]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(control.StandardTable) + joinT.Schema(cq.schemaConfig.StandardControls) + s.Join(joinT).On(s.C(standard.FieldID), joinT.C(control.StandardPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(control.StandardPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(control.StandardPrimaryKey[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[*Control]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Standard](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 "standard" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (cq *ControlQuery) loadNarratives(ctx context.Context, query *NarrativeQuery, nodes []*Control, init func(*Control), assign func(*Control, *Narrative)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Control) + nids := make(map[string]map[*Control]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(control.NarrativesTable) + joinT.Schema(cq.schemaConfig.ControlNarratives) + s.Join(joinT).On(s.C(narrative.FieldID), joinT.C(control.NarrativesPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(control.NarrativesPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(control.NarrativesPrimaryKey[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[*Control]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Narrative](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 "narratives" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (cq *ControlQuery) loadRisks(ctx context.Context, query *RiskQuery, nodes []*Control, init func(*Control), assign func(*Control, *Risk)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Control) + nids := make(map[string]map[*Control]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(control.RisksTable) + joinT.Schema(cq.schemaConfig.ControlRisks) + s.Join(joinT).On(s.C(risk.FieldID), joinT.C(control.RisksPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(control.RisksPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(control.RisksPrimaryKey[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[*Control]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Risk](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 "risks" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (cq *ControlQuery) loadActionplans(ctx context.Context, query *ActionPlanQuery, nodes []*Control, init func(*Control), assign func(*Control, *ActionPlan)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Control) + nids := make(map[string]map[*Control]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(control.ActionplansTable) + joinT.Schema(cq.schemaConfig.ControlActionplans) + s.Join(joinT).On(s.C(actionplan.FieldID), joinT.C(control.ActionplansPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(control.ActionplansPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(control.ActionplansPrimaryKey[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[*Control]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*ActionPlan](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 "actionplans" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} + +func (cq *ControlQuery) sqlCount(ctx context.Context) (int, error) { + _spec := cq.querySpec() + _spec.Node.Schema = cq.schemaConfig.Control + ctx = internal.NewSchemaConfigContext(ctx, cq.schemaConfig) + if len(cq.modifiers) > 0 { + _spec.Modifiers = cq.modifiers + } + _spec.Node.Columns = cq.ctx.Fields + if len(cq.ctx.Fields) > 0 { + _spec.Unique = cq.ctx.Unique != nil && *cq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, cq.driver, _spec) +} + +func (cq *ControlQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(control.Table, control.Columns, sqlgraph.NewFieldSpec(control.FieldID, field.TypeString)) + _spec.From = cq.sql + if unique := cq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if cq.path != nil { + _spec.Unique = true + } + if fields := cq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, control.FieldID) + for i := range fields { + if fields[i] != control.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := cq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := cq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := cq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := cq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (cq *ControlQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(cq.driver.Dialect()) + t1 := builder.Table(control.Table) + columns := cq.ctx.Fields + if len(columns) == 0 { + columns = control.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if cq.sql != nil { + selector = cq.sql + selector.Select(selector.Columns(columns...)...) + } + if cq.ctx.Unique != nil && *cq.ctx.Unique { + selector.Distinct() + } + t1.Schema(cq.schemaConfig.Control) + ctx = internal.NewSchemaConfigContext(ctx, cq.schemaConfig) + selector.WithContext(ctx) + for _, m := range cq.modifiers { + m(selector) + } + for _, p := range cq.predicates { + p(selector) + } + for _, p := range cq.order { + p(selector) + } + if offset := cq.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 := cq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (cq *ControlQuery) Modify(modifiers ...func(s *sql.Selector)) *ControlSelect { + cq.modifiers = append(cq.modifiers, modifiers...) + return cq.Select() +} + +// WithNamedProcedures tells the query-builder to eager-load the nodes that are connected to the "procedures" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (cq *ControlQuery) WithNamedProcedures(name string, opts ...func(*ProcedureQuery)) *ControlQuery { + query := (&ProcedureClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + if cq.withNamedProcedures == nil { + cq.withNamedProcedures = make(map[string]*ProcedureQuery) + } + cq.withNamedProcedures[name] = query + return cq +} + +// 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 (cq *ControlQuery) WithNamedSubcontrols(name string, opts ...func(*SubcontrolQuery)) *ControlQuery { + query := (&SubcontrolClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + if cq.withNamedSubcontrols == nil { + cq.withNamedSubcontrols = make(map[string]*SubcontrolQuery) + } + cq.withNamedSubcontrols[name] = query + return cq +} + +// WithNamedControlobjectives tells the query-builder to eager-load the nodes that are connected to the "controlobjectives" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (cq *ControlQuery) WithNamedControlobjectives(name string, opts ...func(*ControlObjectiveQuery)) *ControlQuery { + query := (&ControlObjectiveClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + if cq.withNamedControlobjectives == nil { + cq.withNamedControlobjectives = make(map[string]*ControlObjectiveQuery) + } + cq.withNamedControlobjectives[name] = query + return cq +} + +// WithNamedStandard tells the query-builder to eager-load the nodes that are connected to the "standard" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (cq *ControlQuery) WithNamedStandard(name string, opts ...func(*StandardQuery)) *ControlQuery { + query := (&StandardClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + if cq.withNamedStandard == nil { + cq.withNamedStandard = make(map[string]*StandardQuery) + } + cq.withNamedStandard[name] = query + return cq +} + +// WithNamedNarratives tells the query-builder to eager-load the nodes that are connected to the "narratives" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (cq *ControlQuery) WithNamedNarratives(name string, opts ...func(*NarrativeQuery)) *ControlQuery { + query := (&NarrativeClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + if cq.withNamedNarratives == nil { + cq.withNamedNarratives = make(map[string]*NarrativeQuery) + } + cq.withNamedNarratives[name] = query + return cq +} + +// WithNamedRisks tells the query-builder to eager-load the nodes that are connected to the "risks" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (cq *ControlQuery) WithNamedRisks(name string, opts ...func(*RiskQuery)) *ControlQuery { + query := (&RiskClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + if cq.withNamedRisks == nil { + cq.withNamedRisks = make(map[string]*RiskQuery) + } + cq.withNamedRisks[name] = query + return cq +} + +// WithNamedActionplans tells the query-builder to eager-load the nodes that are connected to the "actionplans" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (cq *ControlQuery) WithNamedActionplans(name string, opts ...func(*ActionPlanQuery)) *ControlQuery { + query := (&ActionPlanClient{config: cq.config}).Query() + for _, opt := range opts { + opt(query) + } + if cq.withNamedActionplans == nil { + cq.withNamedActionplans = make(map[string]*ActionPlanQuery) + } + cq.withNamedActionplans[name] = query + return cq +} + +// ControlGroupBy is the group-by builder for Control entities. +type ControlGroupBy struct { + selector + build *ControlQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (cgb *ControlGroupBy) Aggregate(fns ...AggregateFunc) *ControlGroupBy { + cgb.fns = append(cgb.fns, fns...) + return cgb +} + +// Scan applies the selector query and scans the result into the given value. +func (cgb *ControlGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, cgb.build.ctx, ent.OpQueryGroupBy) + if err := cgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ControlQuery, *ControlGroupBy](ctx, cgb.build, cgb, cgb.build.inters, v) +} + +func (cgb *ControlGroupBy) sqlScan(ctx context.Context, root *ControlQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(cgb.fns)) + for _, fn := range cgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*cgb.flds)+len(cgb.fns)) + for _, f := range *cgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*cgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := cgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// ControlSelect is the builder for selecting fields of Control entities. +type ControlSelect struct { + *ControlQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (cs *ControlSelect) Aggregate(fns ...AggregateFunc) *ControlSelect { + cs.fns = append(cs.fns, fns...) + return cs +} + +// Scan applies the selector query and scans the result into the given value. +func (cs *ControlSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, cs.ctx, ent.OpQuerySelect) + if err := cs.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ControlQuery, *ControlSelect](ctx, cs.ControlQuery, cs, cs.inters, v) +} + +func (cs *ControlSelect) sqlScan(ctx context.Context, root *ControlQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(cs.fns)) + for _, fn := range cs.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*cs.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 := cs.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 (cs *ControlSelect) Modify(modifiers ...func(s *sql.Selector)) *ControlSelect { + cs.modifiers = append(cs.modifiers, modifiers...) + return cs +} diff --git a/internal/ent/generated/control_update.go b/internal/ent/generated/control_update.go new file mode 100644 index 00000000..c65add9a --- /dev/null +++ b/internal/ent/generated/control_update.go @@ -0,0 +1,2264 @@ +// 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/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ControlUpdate is the builder for updating Control entities. +type ControlUpdate struct { + config + hooks []Hook + mutation *ControlMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the ControlUpdate builder. +func (cu *ControlUpdate) Where(ps ...predicate.Control) *ControlUpdate { + cu.mutation.Where(ps...) + return cu +} + +// SetUpdatedAt sets the "updated_at" field. +func (cu *ControlUpdate) SetUpdatedAt(t time.Time) *ControlUpdate { + cu.mutation.SetUpdatedAt(t) + return cu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (cu *ControlUpdate) ClearUpdatedAt() *ControlUpdate { + cu.mutation.ClearUpdatedAt() + return cu +} + +// SetUpdatedBy sets the "updated_by" field. +func (cu *ControlUpdate) SetUpdatedBy(s string) *ControlUpdate { + cu.mutation.SetUpdatedBy(s) + return cu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableUpdatedBy(s *string) *ControlUpdate { + if s != nil { + cu.SetUpdatedBy(*s) + } + return cu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (cu *ControlUpdate) ClearUpdatedBy() *ControlUpdate { + cu.mutation.ClearUpdatedBy() + return cu +} + +// SetDeletedAt sets the "deleted_at" field. +func (cu *ControlUpdate) SetDeletedAt(t time.Time) *ControlUpdate { + cu.mutation.SetDeletedAt(t) + return cu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableDeletedAt(t *time.Time) *ControlUpdate { + if t != nil { + cu.SetDeletedAt(*t) + } + return cu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (cu *ControlUpdate) ClearDeletedAt() *ControlUpdate { + cu.mutation.ClearDeletedAt() + return cu +} + +// SetDeletedBy sets the "deleted_by" field. +func (cu *ControlUpdate) SetDeletedBy(s string) *ControlUpdate { + cu.mutation.SetDeletedBy(s) + return cu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableDeletedBy(s *string) *ControlUpdate { + if s != nil { + cu.SetDeletedBy(*s) + } + return cu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (cu *ControlUpdate) ClearDeletedBy() *ControlUpdate { + cu.mutation.ClearDeletedBy() + return cu +} + +// SetTags sets the "tags" field. +func (cu *ControlUpdate) SetTags(s []string) *ControlUpdate { + cu.mutation.SetTags(s) + return cu +} + +// AppendTags appends s to the "tags" field. +func (cu *ControlUpdate) AppendTags(s []string) *ControlUpdate { + cu.mutation.AppendTags(s) + return cu +} + +// ClearTags clears the value of the "tags" field. +func (cu *ControlUpdate) ClearTags() *ControlUpdate { + cu.mutation.ClearTags() + return cu +} + +// SetName sets the "name" field. +func (cu *ControlUpdate) SetName(s string) *ControlUpdate { + cu.mutation.SetName(s) + return cu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableName(s *string) *ControlUpdate { + if s != nil { + cu.SetName(*s) + } + return cu +} + +// SetDescription sets the "description" field. +func (cu *ControlUpdate) SetDescription(s string) *ControlUpdate { + cu.mutation.SetDescription(s) + return cu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableDescription(s *string) *ControlUpdate { + if s != nil { + cu.SetDescription(*s) + } + return cu +} + +// ClearDescription clears the value of the "description" field. +func (cu *ControlUpdate) ClearDescription() *ControlUpdate { + cu.mutation.ClearDescription() + return cu +} + +// SetStatus sets the "status" field. +func (cu *ControlUpdate) SetStatus(s string) *ControlUpdate { + cu.mutation.SetStatus(s) + return cu +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableStatus(s *string) *ControlUpdate { + if s != nil { + cu.SetStatus(*s) + } + return cu +} + +// ClearStatus clears the value of the "status" field. +func (cu *ControlUpdate) ClearStatus() *ControlUpdate { + cu.mutation.ClearStatus() + return cu +} + +// SetControlType sets the "control_type" field. +func (cu *ControlUpdate) SetControlType(s string) *ControlUpdate { + cu.mutation.SetControlType(s) + return cu +} + +// SetNillableControlType sets the "control_type" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableControlType(s *string) *ControlUpdate { + if s != nil { + cu.SetControlType(*s) + } + return cu +} + +// ClearControlType clears the value of the "control_type" field. +func (cu *ControlUpdate) ClearControlType() *ControlUpdate { + cu.mutation.ClearControlType() + return cu +} + +// SetVersion sets the "version" field. +func (cu *ControlUpdate) SetVersion(s string) *ControlUpdate { + cu.mutation.SetVersion(s) + return cu +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableVersion(s *string) *ControlUpdate { + if s != nil { + cu.SetVersion(*s) + } + return cu +} + +// ClearVersion clears the value of the "version" field. +func (cu *ControlUpdate) ClearVersion() *ControlUpdate { + cu.mutation.ClearVersion() + return cu +} + +// SetControlNumber sets the "control_number" field. +func (cu *ControlUpdate) SetControlNumber(s string) *ControlUpdate { + cu.mutation.SetControlNumber(s) + return cu +} + +// SetNillableControlNumber sets the "control_number" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableControlNumber(s *string) *ControlUpdate { + if s != nil { + cu.SetControlNumber(*s) + } + return cu +} + +// ClearControlNumber clears the value of the "control_number" field. +func (cu *ControlUpdate) ClearControlNumber() *ControlUpdate { + cu.mutation.ClearControlNumber() + return cu +} + +// SetFamily sets the "family" field. +func (cu *ControlUpdate) SetFamily(s string) *ControlUpdate { + cu.mutation.SetFamily(s) + return cu +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableFamily(s *string) *ControlUpdate { + if s != nil { + cu.SetFamily(*s) + } + return cu +} + +// ClearFamily clears the value of the "family" field. +func (cu *ControlUpdate) ClearFamily() *ControlUpdate { + cu.mutation.ClearFamily() + return cu +} + +// SetClass sets the "class" field. +func (cu *ControlUpdate) SetClass(s string) *ControlUpdate { + cu.mutation.SetClass(s) + return cu +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableClass(s *string) *ControlUpdate { + if s != nil { + cu.SetClass(*s) + } + return cu +} + +// ClearClass clears the value of the "class" field. +func (cu *ControlUpdate) ClearClass() *ControlUpdate { + cu.mutation.ClearClass() + return cu +} + +// SetSource sets the "source" field. +func (cu *ControlUpdate) SetSource(s string) *ControlUpdate { + cu.mutation.SetSource(s) + return cu +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableSource(s *string) *ControlUpdate { + if s != nil { + cu.SetSource(*s) + } + return cu +} + +// ClearSource clears the value of the "source" field. +func (cu *ControlUpdate) ClearSource() *ControlUpdate { + cu.mutation.ClearSource() + return cu +} + +// SetSatisfies sets the "satisfies" field. +func (cu *ControlUpdate) SetSatisfies(s string) *ControlUpdate { + cu.mutation.SetSatisfies(s) + return cu +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableSatisfies(s *string) *ControlUpdate { + if s != nil { + cu.SetSatisfies(*s) + } + return cu +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (cu *ControlUpdate) ClearSatisfies() *ControlUpdate { + cu.mutation.ClearSatisfies() + return cu +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (cu *ControlUpdate) SetMappedFrameworks(s string) *ControlUpdate { + cu.mutation.SetMappedFrameworks(s) + return cu +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (cu *ControlUpdate) SetNillableMappedFrameworks(s *string) *ControlUpdate { + if s != nil { + cu.SetMappedFrameworks(*s) + } + return cu +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (cu *ControlUpdate) ClearMappedFrameworks() *ControlUpdate { + cu.mutation.ClearMappedFrameworks() + return cu +} + +// SetDetails sets the "details" field. +func (cu *ControlUpdate) SetDetails(m map[string]interface{}) *ControlUpdate { + cu.mutation.SetDetails(m) + return cu +} + +// ClearDetails clears the value of the "details" field. +func (cu *ControlUpdate) ClearDetails() *ControlUpdate { + cu.mutation.ClearDetails() + return cu +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (cu *ControlUpdate) AddProcedureIDs(ids ...string) *ControlUpdate { + cu.mutation.AddProcedureIDs(ids...) + return cu +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (cu *ControlUpdate) AddProcedures(p ...*Procedure) *ControlUpdate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return cu.AddProcedureIDs(ids...) +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (cu *ControlUpdate) AddSubcontrolIDs(ids ...string) *ControlUpdate { + cu.mutation.AddSubcontrolIDs(ids...) + return cu +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (cu *ControlUpdate) AddSubcontrols(s ...*Subcontrol) *ControlUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cu.AddSubcontrolIDs(ids...) +} + +// AddControlobjectiveIDs adds the "controlobjectives" edge to the ControlObjective entity by IDs. +func (cu *ControlUpdate) AddControlobjectiveIDs(ids ...string) *ControlUpdate { + cu.mutation.AddControlobjectiveIDs(ids...) + return cu +} + +// AddControlobjectives adds the "controlobjectives" edges to the ControlObjective entity. +func (cu *ControlUpdate) AddControlobjectives(c ...*ControlObjective) *ControlUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return cu.AddControlobjectiveIDs(ids...) +} + +// AddStandardIDs adds the "standard" edge to the Standard entity by IDs. +func (cu *ControlUpdate) AddStandardIDs(ids ...string) *ControlUpdate { + cu.mutation.AddStandardIDs(ids...) + return cu +} + +// AddStandard adds the "standard" edges to the Standard entity. +func (cu *ControlUpdate) AddStandard(s ...*Standard) *ControlUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cu.AddStandardIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (cu *ControlUpdate) AddNarrativeIDs(ids ...string) *ControlUpdate { + cu.mutation.AddNarrativeIDs(ids...) + return cu +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (cu *ControlUpdate) AddNarratives(n ...*Narrative) *ControlUpdate { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return cu.AddNarrativeIDs(ids...) +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. +func (cu *ControlUpdate) AddRiskIDs(ids ...string) *ControlUpdate { + cu.mutation.AddRiskIDs(ids...) + return cu +} + +// AddRisks adds the "risks" edges to the Risk entity. +func (cu *ControlUpdate) AddRisks(r ...*Risk) *ControlUpdate { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return cu.AddRiskIDs(ids...) +} + +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by IDs. +func (cu *ControlUpdate) AddActionplanIDs(ids ...string) *ControlUpdate { + cu.mutation.AddActionplanIDs(ids...) + return cu +} + +// AddActionplans adds the "actionplans" edges to the ActionPlan entity. +func (cu *ControlUpdate) AddActionplans(a ...*ActionPlan) *ControlUpdate { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return cu.AddActionplanIDs(ids...) +} + +// Mutation returns the ControlMutation object of the builder. +func (cu *ControlUpdate) Mutation() *ControlMutation { + return cu.mutation +} + +// ClearProcedures clears all "procedures" edges to the Procedure entity. +func (cu *ControlUpdate) ClearProcedures() *ControlUpdate { + cu.mutation.ClearProcedures() + return cu +} + +// RemoveProcedureIDs removes the "procedures" edge to Procedure entities by IDs. +func (cu *ControlUpdate) RemoveProcedureIDs(ids ...string) *ControlUpdate { + cu.mutation.RemoveProcedureIDs(ids...) + return cu +} + +// RemoveProcedures removes "procedures" edges to Procedure entities. +func (cu *ControlUpdate) RemoveProcedures(p ...*Procedure) *ControlUpdate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return cu.RemoveProcedureIDs(ids...) +} + +// ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. +func (cu *ControlUpdate) ClearSubcontrols() *ControlUpdate { + cu.mutation.ClearSubcontrols() + return cu +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to Subcontrol entities by IDs. +func (cu *ControlUpdate) RemoveSubcontrolIDs(ids ...string) *ControlUpdate { + cu.mutation.RemoveSubcontrolIDs(ids...) + return cu +} + +// RemoveSubcontrols removes "subcontrols" edges to Subcontrol entities. +func (cu *ControlUpdate) RemoveSubcontrols(s ...*Subcontrol) *ControlUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cu.RemoveSubcontrolIDs(ids...) +} + +// ClearControlobjectives clears all "controlobjectives" edges to the ControlObjective entity. +func (cu *ControlUpdate) ClearControlobjectives() *ControlUpdate { + cu.mutation.ClearControlobjectives() + return cu +} + +// RemoveControlobjectiveIDs removes the "controlobjectives" edge to ControlObjective entities by IDs. +func (cu *ControlUpdate) RemoveControlobjectiveIDs(ids ...string) *ControlUpdate { + cu.mutation.RemoveControlobjectiveIDs(ids...) + return cu +} + +// RemoveControlobjectives removes "controlobjectives" edges to ControlObjective entities. +func (cu *ControlUpdate) RemoveControlobjectives(c ...*ControlObjective) *ControlUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return cu.RemoveControlobjectiveIDs(ids...) +} + +// ClearStandard clears all "standard" edges to the Standard entity. +func (cu *ControlUpdate) ClearStandard() *ControlUpdate { + cu.mutation.ClearStandard() + return cu +} + +// RemoveStandardIDs removes the "standard" edge to Standard entities by IDs. +func (cu *ControlUpdate) RemoveStandardIDs(ids ...string) *ControlUpdate { + cu.mutation.RemoveStandardIDs(ids...) + return cu +} + +// RemoveStandard removes "standard" edges to Standard entities. +func (cu *ControlUpdate) RemoveStandard(s ...*Standard) *ControlUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cu.RemoveStandardIDs(ids...) +} + +// ClearNarratives clears all "narratives" edges to the Narrative entity. +func (cu *ControlUpdate) ClearNarratives() *ControlUpdate { + cu.mutation.ClearNarratives() + return cu +} + +// RemoveNarrativeIDs removes the "narratives" edge to Narrative entities by IDs. +func (cu *ControlUpdate) RemoveNarrativeIDs(ids ...string) *ControlUpdate { + cu.mutation.RemoveNarrativeIDs(ids...) + return cu +} + +// RemoveNarratives removes "narratives" edges to Narrative entities. +func (cu *ControlUpdate) RemoveNarratives(n ...*Narrative) *ControlUpdate { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return cu.RemoveNarrativeIDs(ids...) +} + +// ClearRisks clears all "risks" edges to the Risk entity. +func (cu *ControlUpdate) ClearRisks() *ControlUpdate { + cu.mutation.ClearRisks() + return cu +} + +// RemoveRiskIDs removes the "risks" edge to Risk entities by IDs. +func (cu *ControlUpdate) RemoveRiskIDs(ids ...string) *ControlUpdate { + cu.mutation.RemoveRiskIDs(ids...) + return cu +} + +// RemoveRisks removes "risks" edges to Risk entities. +func (cu *ControlUpdate) RemoveRisks(r ...*Risk) *ControlUpdate { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return cu.RemoveRiskIDs(ids...) +} + +// ClearActionplans clears all "actionplans" edges to the ActionPlan entity. +func (cu *ControlUpdate) ClearActionplans() *ControlUpdate { + cu.mutation.ClearActionplans() + return cu +} + +// RemoveActionplanIDs removes the "actionplans" edge to ActionPlan entities by IDs. +func (cu *ControlUpdate) RemoveActionplanIDs(ids ...string) *ControlUpdate { + cu.mutation.RemoveActionplanIDs(ids...) + return cu +} + +// RemoveActionplans removes "actionplans" edges to ActionPlan entities. +func (cu *ControlUpdate) RemoveActionplans(a ...*ActionPlan) *ControlUpdate { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return cu.RemoveActionplanIDs(ids...) +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (cu *ControlUpdate) Save(ctx context.Context) (int, error) { + if err := cu.defaults(); err != nil { + return 0, err + } + return withHooks(ctx, cu.sqlSave, cu.mutation, cu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (cu *ControlUpdate) SaveX(ctx context.Context) int { + affected, err := cu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (cu *ControlUpdate) Exec(ctx context.Context) error { + _, err := cu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (cu *ControlUpdate) ExecX(ctx context.Context) { + if err := cu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (cu *ControlUpdate) defaults() error { + if _, ok := cu.mutation.UpdatedAt(); !ok && !cu.mutation.UpdatedAtCleared() { + if control.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized control.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := control.UpdateDefaultUpdatedAt() + cu.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (cu *ControlUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ControlUpdate { + cu.modifiers = append(cu.modifiers, modifiers...) + return cu +} + +func (cu *ControlUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(control.Table, control.Columns, sqlgraph.NewFieldSpec(control.FieldID, field.TypeString)) + if ps := cu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if cu.mutation.CreatedAtCleared() { + _spec.ClearField(control.FieldCreatedAt, field.TypeTime) + } + if value, ok := cu.mutation.UpdatedAt(); ok { + _spec.SetField(control.FieldUpdatedAt, field.TypeTime, value) + } + if cu.mutation.UpdatedAtCleared() { + _spec.ClearField(control.FieldUpdatedAt, field.TypeTime) + } + if cu.mutation.CreatedByCleared() { + _spec.ClearField(control.FieldCreatedBy, field.TypeString) + } + if value, ok := cu.mutation.UpdatedBy(); ok { + _spec.SetField(control.FieldUpdatedBy, field.TypeString, value) + } + if cu.mutation.UpdatedByCleared() { + _spec.ClearField(control.FieldUpdatedBy, field.TypeString) + } + if value, ok := cu.mutation.DeletedAt(); ok { + _spec.SetField(control.FieldDeletedAt, field.TypeTime, value) + } + if cu.mutation.DeletedAtCleared() { + _spec.ClearField(control.FieldDeletedAt, field.TypeTime) + } + if value, ok := cu.mutation.DeletedBy(); ok { + _spec.SetField(control.FieldDeletedBy, field.TypeString, value) + } + if cu.mutation.DeletedByCleared() { + _spec.ClearField(control.FieldDeletedBy, field.TypeString) + } + if value, ok := cu.mutation.Tags(); ok { + _spec.SetField(control.FieldTags, field.TypeJSON, value) + } + if value, ok := cu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, control.FieldTags, value) + }) + } + if cu.mutation.TagsCleared() { + _spec.ClearField(control.FieldTags, field.TypeJSON) + } + if value, ok := cu.mutation.Name(); ok { + _spec.SetField(control.FieldName, field.TypeString, value) + } + if value, ok := cu.mutation.Description(); ok { + _spec.SetField(control.FieldDescription, field.TypeString, value) + } + if cu.mutation.DescriptionCleared() { + _spec.ClearField(control.FieldDescription, field.TypeString) + } + if value, ok := cu.mutation.Status(); ok { + _spec.SetField(control.FieldStatus, field.TypeString, value) + } + if cu.mutation.StatusCleared() { + _spec.ClearField(control.FieldStatus, field.TypeString) + } + if value, ok := cu.mutation.ControlType(); ok { + _spec.SetField(control.FieldControlType, field.TypeString, value) + } + if cu.mutation.ControlTypeCleared() { + _spec.ClearField(control.FieldControlType, field.TypeString) + } + if value, ok := cu.mutation.Version(); ok { + _spec.SetField(control.FieldVersion, field.TypeString, value) + } + if cu.mutation.VersionCleared() { + _spec.ClearField(control.FieldVersion, field.TypeString) + } + if value, ok := cu.mutation.ControlNumber(); ok { + _spec.SetField(control.FieldControlNumber, field.TypeString, value) + } + if cu.mutation.ControlNumberCleared() { + _spec.ClearField(control.FieldControlNumber, field.TypeString) + } + if value, ok := cu.mutation.Family(); ok { + _spec.SetField(control.FieldFamily, field.TypeString, value) + } + if cu.mutation.FamilyCleared() { + _spec.ClearField(control.FieldFamily, field.TypeString) + } + if value, ok := cu.mutation.Class(); ok { + _spec.SetField(control.FieldClass, field.TypeString, value) + } + if cu.mutation.ClassCleared() { + _spec.ClearField(control.FieldClass, field.TypeString) + } + if value, ok := cu.mutation.Source(); ok { + _spec.SetField(control.FieldSource, field.TypeString, value) + } + if cu.mutation.SourceCleared() { + _spec.ClearField(control.FieldSource, field.TypeString) + } + if value, ok := cu.mutation.Satisfies(); ok { + _spec.SetField(control.FieldSatisfies, field.TypeString, value) + } + if cu.mutation.SatisfiesCleared() { + _spec.ClearField(control.FieldSatisfies, field.TypeString) + } + if value, ok := cu.mutation.MappedFrameworks(); ok { + _spec.SetField(control.FieldMappedFrameworks, field.TypeString, value) + } + if cu.mutation.MappedFrameworksCleared() { + _spec.ClearField(control.FieldMappedFrameworks, field.TypeString) + } + if value, ok := cu.mutation.Details(); ok { + _spec.SetField(control.FieldDetails, field.TypeJSON, value) + } + if cu.mutation.DetailsCleared() { + _spec.ClearField(control.FieldDetails, field.TypeJSON) + } + if cu.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ProceduresTable, + Columns: control.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlProcedures + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.RemovedProceduresIDs(); len(nodes) > 0 && !cu.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ProceduresTable, + Columns: control.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ProceduresTable, + Columns: control.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cu.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.SubcontrolsTable, + Columns: control.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlSubcontrols + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.RemovedSubcontrolsIDs(); len(nodes) > 0 && !cu.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.SubcontrolsTable, + Columns: control.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.SubcontrolsTable, + Columns: control.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cu.mutation.ControlobjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: control.ControlobjectivesTable, + Columns: []string{control.ControlobjectivesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlObjective + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.RemovedControlobjectivesIDs(); len(nodes) > 0 && !cu.mutation.ControlobjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: control.ControlobjectivesTable, + Columns: []string{control.ControlobjectivesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlObjective + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.ControlobjectivesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: control.ControlobjectivesTable, + Columns: []string{control.ControlobjectivesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlObjective + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cu.mutation.StandardCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: control.StandardTable, + Columns: control.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.StandardControls + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.RemovedStandardIDs(); len(nodes) > 0 && !cu.mutation.StandardCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: control.StandardTable, + Columns: control.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.StandardControls + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.StandardIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: control.StandardTable, + Columns: control.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.StandardControls + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cu.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.NarrativesTable, + Columns: control.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.RemovedNarrativesIDs(); len(nodes) > 0 && !cu.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.NarrativesTable, + Columns: control.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.NarrativesTable, + Columns: control.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cu.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.RisksTable, + Columns: control.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlRisks + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.RemovedRisksIDs(); len(nodes) > 0 && !cu.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.RisksTable, + Columns: control.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.RisksIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.RisksTable, + Columns: control.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cu.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ActionplansTable, + Columns: control.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.RemovedActionplansIDs(); len(nodes) > 0 && !cu.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ActionplansTable, + Columns: control.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cu.mutation.ActionplansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ActionplansTable, + Columns: control.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = cu.schemaConfig.ControlActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = cu.schemaConfig.Control + ctx = internal.NewSchemaConfigContext(ctx, cu.schemaConfig) + _spec.AddModifiers(cu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, cu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{control.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + cu.mutation.done = true + return n, nil +} + +// ControlUpdateOne is the builder for updating a single Control entity. +type ControlUpdateOne struct { + config + fields []string + hooks []Hook + mutation *ControlMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (cuo *ControlUpdateOne) SetUpdatedAt(t time.Time) *ControlUpdateOne { + cuo.mutation.SetUpdatedAt(t) + return cuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (cuo *ControlUpdateOne) ClearUpdatedAt() *ControlUpdateOne { + cuo.mutation.ClearUpdatedAt() + return cuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (cuo *ControlUpdateOne) SetUpdatedBy(s string) *ControlUpdateOne { + cuo.mutation.SetUpdatedBy(s) + return cuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableUpdatedBy(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetUpdatedBy(*s) + } + return cuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (cuo *ControlUpdateOne) ClearUpdatedBy() *ControlUpdateOne { + cuo.mutation.ClearUpdatedBy() + return cuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (cuo *ControlUpdateOne) SetDeletedAt(t time.Time) *ControlUpdateOne { + cuo.mutation.SetDeletedAt(t) + return cuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableDeletedAt(t *time.Time) *ControlUpdateOne { + if t != nil { + cuo.SetDeletedAt(*t) + } + return cuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (cuo *ControlUpdateOne) ClearDeletedAt() *ControlUpdateOne { + cuo.mutation.ClearDeletedAt() + return cuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (cuo *ControlUpdateOne) SetDeletedBy(s string) *ControlUpdateOne { + cuo.mutation.SetDeletedBy(s) + return cuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableDeletedBy(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetDeletedBy(*s) + } + return cuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (cuo *ControlUpdateOne) ClearDeletedBy() *ControlUpdateOne { + cuo.mutation.ClearDeletedBy() + return cuo +} + +// SetTags sets the "tags" field. +func (cuo *ControlUpdateOne) SetTags(s []string) *ControlUpdateOne { + cuo.mutation.SetTags(s) + return cuo +} + +// AppendTags appends s to the "tags" field. +func (cuo *ControlUpdateOne) AppendTags(s []string) *ControlUpdateOne { + cuo.mutation.AppendTags(s) + return cuo +} + +// ClearTags clears the value of the "tags" field. +func (cuo *ControlUpdateOne) ClearTags() *ControlUpdateOne { + cuo.mutation.ClearTags() + return cuo +} + +// SetName sets the "name" field. +func (cuo *ControlUpdateOne) SetName(s string) *ControlUpdateOne { + cuo.mutation.SetName(s) + return cuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableName(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetName(*s) + } + return cuo +} + +// SetDescription sets the "description" field. +func (cuo *ControlUpdateOne) SetDescription(s string) *ControlUpdateOne { + cuo.mutation.SetDescription(s) + return cuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableDescription(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetDescription(*s) + } + return cuo +} + +// ClearDescription clears the value of the "description" field. +func (cuo *ControlUpdateOne) ClearDescription() *ControlUpdateOne { + cuo.mutation.ClearDescription() + return cuo +} + +// SetStatus sets the "status" field. +func (cuo *ControlUpdateOne) SetStatus(s string) *ControlUpdateOne { + cuo.mutation.SetStatus(s) + return cuo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableStatus(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetStatus(*s) + } + return cuo +} + +// ClearStatus clears the value of the "status" field. +func (cuo *ControlUpdateOne) ClearStatus() *ControlUpdateOne { + cuo.mutation.ClearStatus() + return cuo +} + +// SetControlType sets the "control_type" field. +func (cuo *ControlUpdateOne) SetControlType(s string) *ControlUpdateOne { + cuo.mutation.SetControlType(s) + return cuo +} + +// SetNillableControlType sets the "control_type" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableControlType(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetControlType(*s) + } + return cuo +} + +// ClearControlType clears the value of the "control_type" field. +func (cuo *ControlUpdateOne) ClearControlType() *ControlUpdateOne { + cuo.mutation.ClearControlType() + return cuo +} + +// SetVersion sets the "version" field. +func (cuo *ControlUpdateOne) SetVersion(s string) *ControlUpdateOne { + cuo.mutation.SetVersion(s) + return cuo +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableVersion(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetVersion(*s) + } + return cuo +} + +// ClearVersion clears the value of the "version" field. +func (cuo *ControlUpdateOne) ClearVersion() *ControlUpdateOne { + cuo.mutation.ClearVersion() + return cuo +} + +// SetControlNumber sets the "control_number" field. +func (cuo *ControlUpdateOne) SetControlNumber(s string) *ControlUpdateOne { + cuo.mutation.SetControlNumber(s) + return cuo +} + +// SetNillableControlNumber sets the "control_number" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableControlNumber(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetControlNumber(*s) + } + return cuo +} + +// ClearControlNumber clears the value of the "control_number" field. +func (cuo *ControlUpdateOne) ClearControlNumber() *ControlUpdateOne { + cuo.mutation.ClearControlNumber() + return cuo +} + +// SetFamily sets the "family" field. +func (cuo *ControlUpdateOne) SetFamily(s string) *ControlUpdateOne { + cuo.mutation.SetFamily(s) + return cuo +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableFamily(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetFamily(*s) + } + return cuo +} + +// ClearFamily clears the value of the "family" field. +func (cuo *ControlUpdateOne) ClearFamily() *ControlUpdateOne { + cuo.mutation.ClearFamily() + return cuo +} + +// SetClass sets the "class" field. +func (cuo *ControlUpdateOne) SetClass(s string) *ControlUpdateOne { + cuo.mutation.SetClass(s) + return cuo +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableClass(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetClass(*s) + } + return cuo +} + +// ClearClass clears the value of the "class" field. +func (cuo *ControlUpdateOne) ClearClass() *ControlUpdateOne { + cuo.mutation.ClearClass() + return cuo +} + +// SetSource sets the "source" field. +func (cuo *ControlUpdateOne) SetSource(s string) *ControlUpdateOne { + cuo.mutation.SetSource(s) + return cuo +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableSource(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetSource(*s) + } + return cuo +} + +// ClearSource clears the value of the "source" field. +func (cuo *ControlUpdateOne) ClearSource() *ControlUpdateOne { + cuo.mutation.ClearSource() + return cuo +} + +// SetSatisfies sets the "satisfies" field. +func (cuo *ControlUpdateOne) SetSatisfies(s string) *ControlUpdateOne { + cuo.mutation.SetSatisfies(s) + return cuo +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableSatisfies(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetSatisfies(*s) + } + return cuo +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (cuo *ControlUpdateOne) ClearSatisfies() *ControlUpdateOne { + cuo.mutation.ClearSatisfies() + return cuo +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (cuo *ControlUpdateOne) SetMappedFrameworks(s string) *ControlUpdateOne { + cuo.mutation.SetMappedFrameworks(s) + return cuo +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (cuo *ControlUpdateOne) SetNillableMappedFrameworks(s *string) *ControlUpdateOne { + if s != nil { + cuo.SetMappedFrameworks(*s) + } + return cuo +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (cuo *ControlUpdateOne) ClearMappedFrameworks() *ControlUpdateOne { + cuo.mutation.ClearMappedFrameworks() + return cuo +} + +// SetDetails sets the "details" field. +func (cuo *ControlUpdateOne) SetDetails(m map[string]interface{}) *ControlUpdateOne { + cuo.mutation.SetDetails(m) + return cuo +} + +// ClearDetails clears the value of the "details" field. +func (cuo *ControlUpdateOne) ClearDetails() *ControlUpdateOne { + cuo.mutation.ClearDetails() + return cuo +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (cuo *ControlUpdateOne) AddProcedureIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.AddProcedureIDs(ids...) + return cuo +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (cuo *ControlUpdateOne) AddProcedures(p ...*Procedure) *ControlUpdateOne { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return cuo.AddProcedureIDs(ids...) +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (cuo *ControlUpdateOne) AddSubcontrolIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.AddSubcontrolIDs(ids...) + return cuo +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (cuo *ControlUpdateOne) AddSubcontrols(s ...*Subcontrol) *ControlUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cuo.AddSubcontrolIDs(ids...) +} + +// AddControlobjectiveIDs adds the "controlobjectives" edge to the ControlObjective entity by IDs. +func (cuo *ControlUpdateOne) AddControlobjectiveIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.AddControlobjectiveIDs(ids...) + return cuo +} + +// AddControlobjectives adds the "controlobjectives" edges to the ControlObjective entity. +func (cuo *ControlUpdateOne) AddControlobjectives(c ...*ControlObjective) *ControlUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return cuo.AddControlobjectiveIDs(ids...) +} + +// AddStandardIDs adds the "standard" edge to the Standard entity by IDs. +func (cuo *ControlUpdateOne) AddStandardIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.AddStandardIDs(ids...) + return cuo +} + +// AddStandard adds the "standard" edges to the Standard entity. +func (cuo *ControlUpdateOne) AddStandard(s ...*Standard) *ControlUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cuo.AddStandardIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (cuo *ControlUpdateOne) AddNarrativeIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.AddNarrativeIDs(ids...) + return cuo +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (cuo *ControlUpdateOne) AddNarratives(n ...*Narrative) *ControlUpdateOne { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return cuo.AddNarrativeIDs(ids...) +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. +func (cuo *ControlUpdateOne) AddRiskIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.AddRiskIDs(ids...) + return cuo +} + +// AddRisks adds the "risks" edges to the Risk entity. +func (cuo *ControlUpdateOne) AddRisks(r ...*Risk) *ControlUpdateOne { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return cuo.AddRiskIDs(ids...) +} + +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by IDs. +func (cuo *ControlUpdateOne) AddActionplanIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.AddActionplanIDs(ids...) + return cuo +} + +// AddActionplans adds the "actionplans" edges to the ActionPlan entity. +func (cuo *ControlUpdateOne) AddActionplans(a ...*ActionPlan) *ControlUpdateOne { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return cuo.AddActionplanIDs(ids...) +} + +// Mutation returns the ControlMutation object of the builder. +func (cuo *ControlUpdateOne) Mutation() *ControlMutation { + return cuo.mutation +} + +// ClearProcedures clears all "procedures" edges to the Procedure entity. +func (cuo *ControlUpdateOne) ClearProcedures() *ControlUpdateOne { + cuo.mutation.ClearProcedures() + return cuo +} + +// RemoveProcedureIDs removes the "procedures" edge to Procedure entities by IDs. +func (cuo *ControlUpdateOne) RemoveProcedureIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.RemoveProcedureIDs(ids...) + return cuo +} + +// RemoveProcedures removes "procedures" edges to Procedure entities. +func (cuo *ControlUpdateOne) RemoveProcedures(p ...*Procedure) *ControlUpdateOne { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return cuo.RemoveProcedureIDs(ids...) +} + +// ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. +func (cuo *ControlUpdateOne) ClearSubcontrols() *ControlUpdateOne { + cuo.mutation.ClearSubcontrols() + return cuo +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to Subcontrol entities by IDs. +func (cuo *ControlUpdateOne) RemoveSubcontrolIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.RemoveSubcontrolIDs(ids...) + return cuo +} + +// RemoveSubcontrols removes "subcontrols" edges to Subcontrol entities. +func (cuo *ControlUpdateOne) RemoveSubcontrols(s ...*Subcontrol) *ControlUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cuo.RemoveSubcontrolIDs(ids...) +} + +// ClearControlobjectives clears all "controlobjectives" edges to the ControlObjective entity. +func (cuo *ControlUpdateOne) ClearControlobjectives() *ControlUpdateOne { + cuo.mutation.ClearControlobjectives() + return cuo +} + +// RemoveControlobjectiveIDs removes the "controlobjectives" edge to ControlObjective entities by IDs. +func (cuo *ControlUpdateOne) RemoveControlobjectiveIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.RemoveControlobjectiveIDs(ids...) + return cuo +} + +// RemoveControlobjectives removes "controlobjectives" edges to ControlObjective entities. +func (cuo *ControlUpdateOne) RemoveControlobjectives(c ...*ControlObjective) *ControlUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return cuo.RemoveControlobjectiveIDs(ids...) +} + +// ClearStandard clears all "standard" edges to the Standard entity. +func (cuo *ControlUpdateOne) ClearStandard() *ControlUpdateOne { + cuo.mutation.ClearStandard() + return cuo +} + +// RemoveStandardIDs removes the "standard" edge to Standard entities by IDs. +func (cuo *ControlUpdateOne) RemoveStandardIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.RemoveStandardIDs(ids...) + return cuo +} + +// RemoveStandard removes "standard" edges to Standard entities. +func (cuo *ControlUpdateOne) RemoveStandard(s ...*Standard) *ControlUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cuo.RemoveStandardIDs(ids...) +} + +// ClearNarratives clears all "narratives" edges to the Narrative entity. +func (cuo *ControlUpdateOne) ClearNarratives() *ControlUpdateOne { + cuo.mutation.ClearNarratives() + return cuo +} + +// RemoveNarrativeIDs removes the "narratives" edge to Narrative entities by IDs. +func (cuo *ControlUpdateOne) RemoveNarrativeIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.RemoveNarrativeIDs(ids...) + return cuo +} + +// RemoveNarratives removes "narratives" edges to Narrative entities. +func (cuo *ControlUpdateOne) RemoveNarratives(n ...*Narrative) *ControlUpdateOne { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return cuo.RemoveNarrativeIDs(ids...) +} + +// ClearRisks clears all "risks" edges to the Risk entity. +func (cuo *ControlUpdateOne) ClearRisks() *ControlUpdateOne { + cuo.mutation.ClearRisks() + return cuo +} + +// RemoveRiskIDs removes the "risks" edge to Risk entities by IDs. +func (cuo *ControlUpdateOne) RemoveRiskIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.RemoveRiskIDs(ids...) + return cuo +} + +// RemoveRisks removes "risks" edges to Risk entities. +func (cuo *ControlUpdateOne) RemoveRisks(r ...*Risk) *ControlUpdateOne { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return cuo.RemoveRiskIDs(ids...) +} + +// ClearActionplans clears all "actionplans" edges to the ActionPlan entity. +func (cuo *ControlUpdateOne) ClearActionplans() *ControlUpdateOne { + cuo.mutation.ClearActionplans() + return cuo +} + +// RemoveActionplanIDs removes the "actionplans" edge to ActionPlan entities by IDs. +func (cuo *ControlUpdateOne) RemoveActionplanIDs(ids ...string) *ControlUpdateOne { + cuo.mutation.RemoveActionplanIDs(ids...) + return cuo +} + +// RemoveActionplans removes "actionplans" edges to ActionPlan entities. +func (cuo *ControlUpdateOne) RemoveActionplans(a ...*ActionPlan) *ControlUpdateOne { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return cuo.RemoveActionplanIDs(ids...) +} + +// Where appends a list predicates to the ControlUpdate builder. +func (cuo *ControlUpdateOne) Where(ps ...predicate.Control) *ControlUpdateOne { + cuo.mutation.Where(ps...) + return cuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (cuo *ControlUpdateOne) Select(field string, fields ...string) *ControlUpdateOne { + cuo.fields = append([]string{field}, fields...) + return cuo +} + +// Save executes the query and returns the updated Control entity. +func (cuo *ControlUpdateOne) Save(ctx context.Context) (*Control, error) { + if err := cuo.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, cuo.sqlSave, cuo.mutation, cuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (cuo *ControlUpdateOne) SaveX(ctx context.Context) *Control { + node, err := cuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (cuo *ControlUpdateOne) Exec(ctx context.Context) error { + _, err := cuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (cuo *ControlUpdateOne) ExecX(ctx context.Context) { + if err := cuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (cuo *ControlUpdateOne) defaults() error { + if _, ok := cuo.mutation.UpdatedAt(); !ok && !cuo.mutation.UpdatedAtCleared() { + if control.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized control.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := control.UpdateDefaultUpdatedAt() + cuo.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (cuo *ControlUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ControlUpdateOne { + cuo.modifiers = append(cuo.modifiers, modifiers...) + return cuo +} + +func (cuo *ControlUpdateOne) sqlSave(ctx context.Context) (_node *Control, err error) { + _spec := sqlgraph.NewUpdateSpec(control.Table, control.Columns, sqlgraph.NewFieldSpec(control.FieldID, field.TypeString)) + id, ok := cuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "Control.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := cuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, control.FieldID) + for _, f := range fields { + if !control.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != control.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := cuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if cuo.mutation.CreatedAtCleared() { + _spec.ClearField(control.FieldCreatedAt, field.TypeTime) + } + if value, ok := cuo.mutation.UpdatedAt(); ok { + _spec.SetField(control.FieldUpdatedAt, field.TypeTime, value) + } + if cuo.mutation.UpdatedAtCleared() { + _spec.ClearField(control.FieldUpdatedAt, field.TypeTime) + } + if cuo.mutation.CreatedByCleared() { + _spec.ClearField(control.FieldCreatedBy, field.TypeString) + } + if value, ok := cuo.mutation.UpdatedBy(); ok { + _spec.SetField(control.FieldUpdatedBy, field.TypeString, value) + } + if cuo.mutation.UpdatedByCleared() { + _spec.ClearField(control.FieldUpdatedBy, field.TypeString) + } + if value, ok := cuo.mutation.DeletedAt(); ok { + _spec.SetField(control.FieldDeletedAt, field.TypeTime, value) + } + if cuo.mutation.DeletedAtCleared() { + _spec.ClearField(control.FieldDeletedAt, field.TypeTime) + } + if value, ok := cuo.mutation.DeletedBy(); ok { + _spec.SetField(control.FieldDeletedBy, field.TypeString, value) + } + if cuo.mutation.DeletedByCleared() { + _spec.ClearField(control.FieldDeletedBy, field.TypeString) + } + if value, ok := cuo.mutation.Tags(); ok { + _spec.SetField(control.FieldTags, field.TypeJSON, value) + } + if value, ok := cuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, control.FieldTags, value) + }) + } + if cuo.mutation.TagsCleared() { + _spec.ClearField(control.FieldTags, field.TypeJSON) + } + if value, ok := cuo.mutation.Name(); ok { + _spec.SetField(control.FieldName, field.TypeString, value) + } + if value, ok := cuo.mutation.Description(); ok { + _spec.SetField(control.FieldDescription, field.TypeString, value) + } + if cuo.mutation.DescriptionCleared() { + _spec.ClearField(control.FieldDescription, field.TypeString) + } + if value, ok := cuo.mutation.Status(); ok { + _spec.SetField(control.FieldStatus, field.TypeString, value) + } + if cuo.mutation.StatusCleared() { + _spec.ClearField(control.FieldStatus, field.TypeString) + } + if value, ok := cuo.mutation.ControlType(); ok { + _spec.SetField(control.FieldControlType, field.TypeString, value) + } + if cuo.mutation.ControlTypeCleared() { + _spec.ClearField(control.FieldControlType, field.TypeString) + } + if value, ok := cuo.mutation.Version(); ok { + _spec.SetField(control.FieldVersion, field.TypeString, value) + } + if cuo.mutation.VersionCleared() { + _spec.ClearField(control.FieldVersion, field.TypeString) + } + if value, ok := cuo.mutation.ControlNumber(); ok { + _spec.SetField(control.FieldControlNumber, field.TypeString, value) + } + if cuo.mutation.ControlNumberCleared() { + _spec.ClearField(control.FieldControlNumber, field.TypeString) + } + if value, ok := cuo.mutation.Family(); ok { + _spec.SetField(control.FieldFamily, field.TypeString, value) + } + if cuo.mutation.FamilyCleared() { + _spec.ClearField(control.FieldFamily, field.TypeString) + } + if value, ok := cuo.mutation.Class(); ok { + _spec.SetField(control.FieldClass, field.TypeString, value) + } + if cuo.mutation.ClassCleared() { + _spec.ClearField(control.FieldClass, field.TypeString) + } + if value, ok := cuo.mutation.Source(); ok { + _spec.SetField(control.FieldSource, field.TypeString, value) + } + if cuo.mutation.SourceCleared() { + _spec.ClearField(control.FieldSource, field.TypeString) + } + if value, ok := cuo.mutation.Satisfies(); ok { + _spec.SetField(control.FieldSatisfies, field.TypeString, value) + } + if cuo.mutation.SatisfiesCleared() { + _spec.ClearField(control.FieldSatisfies, field.TypeString) + } + if value, ok := cuo.mutation.MappedFrameworks(); ok { + _spec.SetField(control.FieldMappedFrameworks, field.TypeString, value) + } + if cuo.mutation.MappedFrameworksCleared() { + _spec.ClearField(control.FieldMappedFrameworks, field.TypeString) + } + if value, ok := cuo.mutation.Details(); ok { + _spec.SetField(control.FieldDetails, field.TypeJSON, value) + } + if cuo.mutation.DetailsCleared() { + _spec.ClearField(control.FieldDetails, field.TypeJSON) + } + if cuo.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ProceduresTable, + Columns: control.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlProcedures + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.RemovedProceduresIDs(); len(nodes) > 0 && !cuo.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ProceduresTable, + Columns: control.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ProceduresTable, + Columns: control.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cuo.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.SubcontrolsTable, + Columns: control.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlSubcontrols + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.RemovedSubcontrolsIDs(); len(nodes) > 0 && !cuo.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.SubcontrolsTable, + Columns: control.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.SubcontrolsTable, + Columns: control.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cuo.mutation.ControlobjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: control.ControlobjectivesTable, + Columns: []string{control.ControlobjectivesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlObjective + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.RemovedControlobjectivesIDs(); len(nodes) > 0 && !cuo.mutation.ControlobjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: control.ControlobjectivesTable, + Columns: []string{control.ControlobjectivesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlObjective + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.ControlobjectivesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: control.ControlobjectivesTable, + Columns: []string{control.ControlobjectivesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlObjective + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cuo.mutation.StandardCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: control.StandardTable, + Columns: control.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.StandardControls + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.RemovedStandardIDs(); len(nodes) > 0 && !cuo.mutation.StandardCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: control.StandardTable, + Columns: control.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.StandardControls + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.StandardIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: control.StandardTable, + Columns: control.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.StandardControls + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cuo.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.NarrativesTable, + Columns: control.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.RemovedNarrativesIDs(); len(nodes) > 0 && !cuo.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.NarrativesTable, + Columns: control.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.NarrativesTable, + Columns: control.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cuo.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.RisksTable, + Columns: control.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlRisks + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.RemovedRisksIDs(); len(nodes) > 0 && !cuo.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.RisksTable, + Columns: control.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.RisksIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.RisksTable, + Columns: control.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cuo.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ActionplansTable, + Columns: control.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.RemovedActionplansIDs(); len(nodes) > 0 && !cuo.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ActionplansTable, + Columns: control.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cuo.mutation.ActionplansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ActionplansTable, + Columns: control.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = cuo.schemaConfig.ControlActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = cuo.schemaConfig.Control + ctx = internal.NewSchemaConfigContext(ctx, cuo.schemaConfig) + _spec.AddModifiers(cuo.modifiers...) + _node = &Control{config: cuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, cuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{control.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + cuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/controlhistory.go b/internal/ent/generated/controlhistory.go new file mode 100644 index 00000000..c96b8df2 --- /dev/null +++ b/internal/ent/generated/controlhistory.go @@ -0,0 +1,356 @@ +// 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/internal/ent/generated/controlhistory" + "github.com/theopenlane/entx/history" +) + +// ControlHistory is the model entity for the ControlHistory schema. +type ControlHistory 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the control + Name string `json:"name,omitempty"` + // description of the control + Description string `json:"description,omitempty"` + // status of the control + Status string `json:"status,omitempty"` + // type of the control + ControlType string `json:"control_type,omitempty"` + // version of the control + Version string `json:"version,omitempty"` + // control number or identifier + ControlNumber string `json:"control_number,omitempty"` + // family associated with the control + Family string `json:"family,omitempty"` + // class associated with the control + Class string `json:"class,omitempty"` + // source of the control, e.g. framework, template, custom, etc. + Source string `json:"source,omitempty"` + // which control objectives are satisfied by the control + Satisfies string `json:"satisfies,omitempty"` + // mapped frameworks + MappedFrameworks string `json:"mapped_frameworks,omitempty"` + // json data including details of the control + Details map[string]interface{} `json:"details,omitempty"` + selectValues sql.SelectValues +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*ControlHistory) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case controlhistory.FieldTags, controlhistory.FieldDetails: + values[i] = new([]byte) + case controlhistory.FieldOperation: + values[i] = new(history.OpType) + case controlhistory.FieldID, controlhistory.FieldRef, controlhistory.FieldCreatedBy, controlhistory.FieldUpdatedBy, controlhistory.FieldDeletedBy, controlhistory.FieldMappingID, controlhistory.FieldName, controlhistory.FieldDescription, controlhistory.FieldStatus, controlhistory.FieldControlType, controlhistory.FieldVersion, controlhistory.FieldControlNumber, controlhistory.FieldFamily, controlhistory.FieldClass, controlhistory.FieldSource, controlhistory.FieldSatisfies, controlhistory.FieldMappedFrameworks: + values[i] = new(sql.NullString) + case controlhistory.FieldHistoryTime, controlhistory.FieldCreatedAt, controlhistory.FieldUpdatedAt, controlhistory.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 ControlHistory fields. +func (ch *ControlHistory) 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 controlhistory.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + ch.ID = value.String + } + case controlhistory.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 { + ch.HistoryTime = value.Time + } + case controlhistory.FieldRef: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field ref", values[i]) + } else if value.Valid { + ch.Ref = value.String + } + case controlhistory.FieldOperation: + if value, ok := values[i].(*history.OpType); !ok { + return fmt.Errorf("unexpected type %T for field operation", values[i]) + } else if value != nil { + ch.Operation = *value + } + case controlhistory.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 { + ch.CreatedAt = value.Time + } + case controlhistory.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 { + ch.UpdatedAt = value.Time + } + case controlhistory.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 { + ch.CreatedBy = value.String + } + case controlhistory.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 { + ch.UpdatedBy = value.String + } + case controlhistory.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 { + ch.DeletedAt = value.Time + } + case controlhistory.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 { + ch.DeletedBy = value.String + } + case controlhistory.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + ch.MappingID = value.String + } + case controlhistory.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, &ch.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case controlhistory.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + ch.Name = value.String + } + case controlhistory.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + ch.Description = value.String + } + case controlhistory.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + ch.Status = value.String + } + case controlhistory.FieldControlType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_type", values[i]) + } else if value.Valid { + ch.ControlType = value.String + } + case controlhistory.FieldVersion: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field version", values[i]) + } else if value.Valid { + ch.Version = value.String + } + case controlhistory.FieldControlNumber: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_number", values[i]) + } else if value.Valid { + ch.ControlNumber = value.String + } + case controlhistory.FieldFamily: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field family", values[i]) + } else if value.Valid { + ch.Family = value.String + } + case controlhistory.FieldClass: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field class", values[i]) + } else if value.Valid { + ch.Class = value.String + } + case controlhistory.FieldSource: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field source", values[i]) + } else if value.Valid { + ch.Source = value.String + } + case controlhistory.FieldSatisfies: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field satisfies", values[i]) + } else if value.Valid { + ch.Satisfies = value.String + } + case controlhistory.FieldMappedFrameworks: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapped_frameworks", values[i]) + } else if value.Valid { + ch.MappedFrameworks = value.String + } + case controlhistory.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &ch.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + ch.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the ControlHistory. +// This includes values selected through modifiers, order, etc. +func (ch *ControlHistory) Value(name string) (ent.Value, error) { + return ch.selectValues.Get(name) +} + +// Update returns a builder for updating this ControlHistory. +// Note that you need to call ControlHistory.Unwrap() before calling this method if this ControlHistory +// was returned from a transaction, and the transaction was committed or rolled back. +func (ch *ControlHistory) Update() *ControlHistoryUpdateOne { + return NewControlHistoryClient(ch.config).UpdateOne(ch) +} + +// Unwrap unwraps the ControlHistory 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 (ch *ControlHistory) Unwrap() *ControlHistory { + _tx, ok := ch.config.driver.(*txDriver) + if !ok { + panic("generated: ControlHistory is not a transactional entity") + } + ch.config.driver = _tx.drv + return ch +} + +// String implements the fmt.Stringer. +func (ch *ControlHistory) String() string { + var builder strings.Builder + builder.WriteString("ControlHistory(") + builder.WriteString(fmt.Sprintf("id=%v, ", ch.ID)) + builder.WriteString("history_time=") + builder.WriteString(ch.HistoryTime.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("ref=") + builder.WriteString(ch.Ref) + builder.WriteString(", ") + builder.WriteString("operation=") + builder.WriteString(fmt.Sprintf("%v", ch.Operation)) + builder.WriteString(", ") + builder.WriteString("created_at=") + builder.WriteString(ch.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(ch.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(ch.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(ch.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(ch.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(ch.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(ch.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", ch.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(ch.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(ch.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(ch.Status) + builder.WriteString(", ") + builder.WriteString("control_type=") + builder.WriteString(ch.ControlType) + builder.WriteString(", ") + builder.WriteString("version=") + builder.WriteString(ch.Version) + builder.WriteString(", ") + builder.WriteString("control_number=") + builder.WriteString(ch.ControlNumber) + builder.WriteString(", ") + builder.WriteString("family=") + builder.WriteString(ch.Family) + builder.WriteString(", ") + builder.WriteString("class=") + builder.WriteString(ch.Class) + builder.WriteString(", ") + builder.WriteString("source=") + builder.WriteString(ch.Source) + builder.WriteString(", ") + builder.WriteString("satisfies=") + builder.WriteString(ch.Satisfies) + builder.WriteString(", ") + builder.WriteString("mapped_frameworks=") + builder.WriteString(ch.MappedFrameworks) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", ch.Details)) + builder.WriteByte(')') + return builder.String() +} + +// ControlHistories is a parsable slice of ControlHistory. +type ControlHistories []*ControlHistory diff --git a/internal/ent/generated/controlhistory/controlhistory.go b/internal/ent/generated/controlhistory/controlhistory.go new file mode 100644 index 00000000..562325fd --- /dev/null +++ b/internal/ent/generated/controlhistory/controlhistory.go @@ -0,0 +1,252 @@ +// Code generated by ent, DO NOT EDIT. + +package controlhistory + +import ( + "fmt" + "time" + + "entgo.io/ent/dialect/sql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/entx/history" +) + +const ( + // Label holds the string label denoting the controlhistory type in the database. + Label = "control_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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldControlType holds the string denoting the control_type field in the database. + FieldControlType = "control_type" + // FieldVersion holds the string denoting the version field in the database. + FieldVersion = "version" + // FieldControlNumber holds the string denoting the control_number field in the database. + FieldControlNumber = "control_number" + // FieldFamily holds the string denoting the family field in the database. + FieldFamily = "family" + // FieldClass holds the string denoting the class field in the database. + FieldClass = "class" + // FieldSource holds the string denoting the source field in the database. + FieldSource = "source" + // FieldSatisfies holds the string denoting the satisfies field in the database. + FieldSatisfies = "satisfies" + // FieldMappedFrameworks holds the string denoting the mapped_frameworks field in the database. + FieldMappedFrameworks = "mapped_frameworks" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // Table holds the table name of the controlhistory in the database. + Table = "control_history" +) + +// Columns holds all SQL columns for controlhistory fields. +var Columns = []string{ + FieldID, + FieldHistoryTime, + FieldRef, + FieldOperation, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldControlType, + FieldVersion, + FieldControlNumber, + FieldFamily, + FieldClass, + FieldSource, + FieldSatisfies, + FieldMappedFrameworks, + FieldDetails, +} + +// 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 +} + +var ( + // 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 + // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. + UpdateDefaultUpdatedAt func() time.Time + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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("controlhistory: invalid enum value for operation field: %q", o) + } +} + +// OrderOption defines the ordering options for the ControlHistory 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByControlType orders the results by the control_type field. +func ByControlType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldControlType, opts...).ToFunc() +} + +// ByVersion orders the results by the version field. +func ByVersion(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldVersion, opts...).ToFunc() +} + +// ByControlNumber orders the results by the control_number field. +func ByControlNumber(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldControlNumber, opts...).ToFunc() +} + +// ByFamily orders the results by the family field. +func ByFamily(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldFamily, opts...).ToFunc() +} + +// ByClass orders the results by the class field. +func ByClass(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldClass, opts...).ToFunc() +} + +// BySource orders the results by the source field. +func BySource(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSource, opts...).ToFunc() +} + +// BySatisfies orders the results by the satisfies field. +func BySatisfies(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSatisfies, opts...).ToFunc() +} + +// ByMappedFrameworks orders the results by the mapped_frameworks field. +func ByMappedFrameworks(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappedFrameworks, 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/generated/controlhistory/where.go b/internal/ent/generated/controlhistory/where.go new file mode 100644 index 00000000..ab4d46e6 --- /dev/null +++ b/internal/ent/generated/controlhistory/where.go @@ -0,0 +1,1591 @@ +// Code generated by ent, DO NOT EDIT. + +package controlhistory + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/entx/history" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.ControlHistory { + return predicate.ControlHistory(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.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// Ref applies equality check predicate on the "ref" field. It's identical to RefEQ. +func Ref(v string) predicate.ControlHistory { + return predicate.ControlHistory(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.ControlHistory { + return predicate.ControlHistory(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.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldStatus, v)) +} + +// ControlType applies equality check predicate on the "control_type" field. It's identical to ControlTypeEQ. +func ControlType(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldControlType, v)) +} + +// Version applies equality check predicate on the "version" field. It's identical to VersionEQ. +func Version(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldVersion, v)) +} + +// ControlNumber applies equality check predicate on the "control_number" field. It's identical to ControlNumberEQ. +func ControlNumber(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldControlNumber, v)) +} + +// Family applies equality check predicate on the "family" field. It's identical to FamilyEQ. +func Family(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldFamily, v)) +} + +// Class applies equality check predicate on the "class" field. It's identical to ClassEQ. +func Class(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldClass, v)) +} + +// Source applies equality check predicate on the "source" field. It's identical to SourceEQ. +func Source(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldSource, v)) +} + +// Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ. +func Satisfies(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldSatisfies, v)) +} + +// MappedFrameworks applies equality check predicate on the "mapped_frameworks" field. It's identical to MappedFrameworksEQ. +func MappedFrameworks(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldMappedFrameworks, v)) +} + +// HistoryTimeEQ applies the EQ predicate on the "history_time" field. +func HistoryTimeEQ(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// HistoryTimeNEQ applies the NEQ predicate on the "history_time" field. +func HistoryTimeNEQ(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldHistoryTime, v)) +} + +// HistoryTimeIn applies the In predicate on the "history_time" field. +func HistoryTimeIn(vs ...time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeNotIn applies the NotIn predicate on the "history_time" field. +func HistoryTimeNotIn(vs ...time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeGT applies the GT predicate on the "history_time" field. +func HistoryTimeGT(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldHistoryTime, v)) +} + +// HistoryTimeGTE applies the GTE predicate on the "history_time" field. +func HistoryTimeGTE(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldHistoryTime, v)) +} + +// HistoryTimeLT applies the LT predicate on the "history_time" field. +func HistoryTimeLT(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldHistoryTime, v)) +} + +// HistoryTimeLTE applies the LTE predicate on the "history_time" field. +func HistoryTimeLTE(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldHistoryTime, v)) +} + +// RefEQ applies the EQ predicate on the "ref" field. +func RefEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldRef, v)) +} + +// RefNEQ applies the NEQ predicate on the "ref" field. +func RefNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldRef, v)) +} + +// RefIn applies the In predicate on the "ref" field. +func RefIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldRef, vs...)) +} + +// RefNotIn applies the NotIn predicate on the "ref" field. +func RefNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldRef, vs...)) +} + +// RefGT applies the GT predicate on the "ref" field. +func RefGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldRef, v)) +} + +// RefGTE applies the GTE predicate on the "ref" field. +func RefGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldRef, v)) +} + +// RefLT applies the LT predicate on the "ref" field. +func RefLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldRef, v)) +} + +// RefLTE applies the LTE predicate on the "ref" field. +func RefLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldRef, v)) +} + +// RefContains applies the Contains predicate on the "ref" field. +func RefContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldRef, v)) +} + +// RefHasPrefix applies the HasPrefix predicate on the "ref" field. +func RefHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldRef, v)) +} + +// RefHasSuffix applies the HasSuffix predicate on the "ref" field. +func RefHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldRef, v)) +} + +// RefIsNil applies the IsNil predicate on the "ref" field. +func RefIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldRef)) +} + +// RefNotNil applies the NotNil predicate on the "ref" field. +func RefNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldRef)) +} + +// RefEqualFold applies the EqualFold predicate on the "ref" field. +func RefEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldRef, v)) +} + +// RefContainsFold applies the ContainsFold predicate on the "ref" field. +func RefContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldRef, v)) +} + +// OperationEQ applies the EQ predicate on the "operation" field. +func OperationEQ(v history.OpType) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldOperation, v)) +} + +// OperationNEQ applies the NEQ predicate on the "operation" field. +func OperationNEQ(v history.OpType) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldOperation, v)) +} + +// OperationIn applies the In predicate on the "operation" field. +func OperationIn(vs ...history.OpType) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldOperation, vs...)) +} + +// OperationNotIn applies the NotIn predicate on the "operation" field. +func OperationNotIn(vs ...history.OpType) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldOperation, vs...)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldStatus, v)) +} + +// ControlTypeEQ applies the EQ predicate on the "control_type" field. +func ControlTypeEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldControlType, v)) +} + +// ControlTypeNEQ applies the NEQ predicate on the "control_type" field. +func ControlTypeNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldControlType, v)) +} + +// ControlTypeIn applies the In predicate on the "control_type" field. +func ControlTypeIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldControlType, vs...)) +} + +// ControlTypeNotIn applies the NotIn predicate on the "control_type" field. +func ControlTypeNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldControlType, vs...)) +} + +// ControlTypeGT applies the GT predicate on the "control_type" field. +func ControlTypeGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldControlType, v)) +} + +// ControlTypeGTE applies the GTE predicate on the "control_type" field. +func ControlTypeGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldControlType, v)) +} + +// ControlTypeLT applies the LT predicate on the "control_type" field. +func ControlTypeLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldControlType, v)) +} + +// ControlTypeLTE applies the LTE predicate on the "control_type" field. +func ControlTypeLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldControlType, v)) +} + +// ControlTypeContains applies the Contains predicate on the "control_type" field. +func ControlTypeContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldControlType, v)) +} + +// ControlTypeHasPrefix applies the HasPrefix predicate on the "control_type" field. +func ControlTypeHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldControlType, v)) +} + +// ControlTypeHasSuffix applies the HasSuffix predicate on the "control_type" field. +func ControlTypeHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldControlType, v)) +} + +// ControlTypeIsNil applies the IsNil predicate on the "control_type" field. +func ControlTypeIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldControlType)) +} + +// ControlTypeNotNil applies the NotNil predicate on the "control_type" field. +func ControlTypeNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldControlType)) +} + +// ControlTypeEqualFold applies the EqualFold predicate on the "control_type" field. +func ControlTypeEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldControlType, v)) +} + +// ControlTypeContainsFold applies the ContainsFold predicate on the "control_type" field. +func ControlTypeContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldControlType, v)) +} + +// VersionEQ applies the EQ predicate on the "version" field. +func VersionEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldVersion, v)) +} + +// VersionNEQ applies the NEQ predicate on the "version" field. +func VersionNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldVersion, v)) +} + +// VersionIn applies the In predicate on the "version" field. +func VersionIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldVersion, vs...)) +} + +// VersionNotIn applies the NotIn predicate on the "version" field. +func VersionNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldVersion, vs...)) +} + +// VersionGT applies the GT predicate on the "version" field. +func VersionGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldVersion, v)) +} + +// VersionGTE applies the GTE predicate on the "version" field. +func VersionGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldVersion, v)) +} + +// VersionLT applies the LT predicate on the "version" field. +func VersionLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldVersion, v)) +} + +// VersionLTE applies the LTE predicate on the "version" field. +func VersionLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldVersion, v)) +} + +// VersionContains applies the Contains predicate on the "version" field. +func VersionContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldVersion, v)) +} + +// VersionHasPrefix applies the HasPrefix predicate on the "version" field. +func VersionHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldVersion, v)) +} + +// VersionHasSuffix applies the HasSuffix predicate on the "version" field. +func VersionHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldVersion, v)) +} + +// VersionIsNil applies the IsNil predicate on the "version" field. +func VersionIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldVersion)) +} + +// VersionNotNil applies the NotNil predicate on the "version" field. +func VersionNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldVersion)) +} + +// VersionEqualFold applies the EqualFold predicate on the "version" field. +func VersionEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldVersion, v)) +} + +// VersionContainsFold applies the ContainsFold predicate on the "version" field. +func VersionContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldVersion, v)) +} + +// ControlNumberEQ applies the EQ predicate on the "control_number" field. +func ControlNumberEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldControlNumber, v)) +} + +// ControlNumberNEQ applies the NEQ predicate on the "control_number" field. +func ControlNumberNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldControlNumber, v)) +} + +// ControlNumberIn applies the In predicate on the "control_number" field. +func ControlNumberIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldControlNumber, vs...)) +} + +// ControlNumberNotIn applies the NotIn predicate on the "control_number" field. +func ControlNumberNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldControlNumber, vs...)) +} + +// ControlNumberGT applies the GT predicate on the "control_number" field. +func ControlNumberGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldControlNumber, v)) +} + +// ControlNumberGTE applies the GTE predicate on the "control_number" field. +func ControlNumberGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldControlNumber, v)) +} + +// ControlNumberLT applies the LT predicate on the "control_number" field. +func ControlNumberLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldControlNumber, v)) +} + +// ControlNumberLTE applies the LTE predicate on the "control_number" field. +func ControlNumberLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldControlNumber, v)) +} + +// ControlNumberContains applies the Contains predicate on the "control_number" field. +func ControlNumberContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldControlNumber, v)) +} + +// ControlNumberHasPrefix applies the HasPrefix predicate on the "control_number" field. +func ControlNumberHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldControlNumber, v)) +} + +// ControlNumberHasSuffix applies the HasSuffix predicate on the "control_number" field. +func ControlNumberHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldControlNumber, v)) +} + +// ControlNumberIsNil applies the IsNil predicate on the "control_number" field. +func ControlNumberIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldControlNumber)) +} + +// ControlNumberNotNil applies the NotNil predicate on the "control_number" field. +func ControlNumberNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldControlNumber)) +} + +// ControlNumberEqualFold applies the EqualFold predicate on the "control_number" field. +func ControlNumberEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldControlNumber, v)) +} + +// ControlNumberContainsFold applies the ContainsFold predicate on the "control_number" field. +func ControlNumberContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldControlNumber, v)) +} + +// FamilyEQ applies the EQ predicate on the "family" field. +func FamilyEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldFamily, v)) +} + +// FamilyNEQ applies the NEQ predicate on the "family" field. +func FamilyNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldFamily, v)) +} + +// FamilyIn applies the In predicate on the "family" field. +func FamilyIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldFamily, vs...)) +} + +// FamilyNotIn applies the NotIn predicate on the "family" field. +func FamilyNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldFamily, vs...)) +} + +// FamilyGT applies the GT predicate on the "family" field. +func FamilyGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldFamily, v)) +} + +// FamilyGTE applies the GTE predicate on the "family" field. +func FamilyGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldFamily, v)) +} + +// FamilyLT applies the LT predicate on the "family" field. +func FamilyLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldFamily, v)) +} + +// FamilyLTE applies the LTE predicate on the "family" field. +func FamilyLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldFamily, v)) +} + +// FamilyContains applies the Contains predicate on the "family" field. +func FamilyContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldFamily, v)) +} + +// FamilyHasPrefix applies the HasPrefix predicate on the "family" field. +func FamilyHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldFamily, v)) +} + +// FamilyHasSuffix applies the HasSuffix predicate on the "family" field. +func FamilyHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldFamily, v)) +} + +// FamilyIsNil applies the IsNil predicate on the "family" field. +func FamilyIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldFamily)) +} + +// FamilyNotNil applies the NotNil predicate on the "family" field. +func FamilyNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldFamily)) +} + +// FamilyEqualFold applies the EqualFold predicate on the "family" field. +func FamilyEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldFamily, v)) +} + +// FamilyContainsFold applies the ContainsFold predicate on the "family" field. +func FamilyContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldFamily, v)) +} + +// ClassEQ applies the EQ predicate on the "class" field. +func ClassEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldClass, v)) +} + +// ClassNEQ applies the NEQ predicate on the "class" field. +func ClassNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldClass, v)) +} + +// ClassIn applies the In predicate on the "class" field. +func ClassIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldClass, vs...)) +} + +// ClassNotIn applies the NotIn predicate on the "class" field. +func ClassNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldClass, vs...)) +} + +// ClassGT applies the GT predicate on the "class" field. +func ClassGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldClass, v)) +} + +// ClassGTE applies the GTE predicate on the "class" field. +func ClassGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldClass, v)) +} + +// ClassLT applies the LT predicate on the "class" field. +func ClassLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldClass, v)) +} + +// ClassLTE applies the LTE predicate on the "class" field. +func ClassLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldClass, v)) +} + +// ClassContains applies the Contains predicate on the "class" field. +func ClassContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldClass, v)) +} + +// ClassHasPrefix applies the HasPrefix predicate on the "class" field. +func ClassHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldClass, v)) +} + +// ClassHasSuffix applies the HasSuffix predicate on the "class" field. +func ClassHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldClass, v)) +} + +// ClassIsNil applies the IsNil predicate on the "class" field. +func ClassIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldClass)) +} + +// ClassNotNil applies the NotNil predicate on the "class" field. +func ClassNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldClass)) +} + +// ClassEqualFold applies the EqualFold predicate on the "class" field. +func ClassEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldClass, v)) +} + +// ClassContainsFold applies the ContainsFold predicate on the "class" field. +func ClassContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldClass, v)) +} + +// SourceEQ applies the EQ predicate on the "source" field. +func SourceEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldSource, v)) +} + +// SourceNEQ applies the NEQ predicate on the "source" field. +func SourceNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldSource, v)) +} + +// SourceIn applies the In predicate on the "source" field. +func SourceIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldSource, vs...)) +} + +// SourceNotIn applies the NotIn predicate on the "source" field. +func SourceNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldSource, vs...)) +} + +// SourceGT applies the GT predicate on the "source" field. +func SourceGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldSource, v)) +} + +// SourceGTE applies the GTE predicate on the "source" field. +func SourceGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldSource, v)) +} + +// SourceLT applies the LT predicate on the "source" field. +func SourceLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldSource, v)) +} + +// SourceLTE applies the LTE predicate on the "source" field. +func SourceLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldSource, v)) +} + +// SourceContains applies the Contains predicate on the "source" field. +func SourceContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldSource, v)) +} + +// SourceHasPrefix applies the HasPrefix predicate on the "source" field. +func SourceHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldSource, v)) +} + +// SourceHasSuffix applies the HasSuffix predicate on the "source" field. +func SourceHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldSource, v)) +} + +// SourceIsNil applies the IsNil predicate on the "source" field. +func SourceIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldSource)) +} + +// SourceNotNil applies the NotNil predicate on the "source" field. +func SourceNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldSource)) +} + +// SourceEqualFold applies the EqualFold predicate on the "source" field. +func SourceEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldSource, v)) +} + +// SourceContainsFold applies the ContainsFold predicate on the "source" field. +func SourceContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldSource, v)) +} + +// SatisfiesEQ applies the EQ predicate on the "satisfies" field. +func SatisfiesEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldSatisfies, v)) +} + +// SatisfiesNEQ applies the NEQ predicate on the "satisfies" field. +func SatisfiesNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldSatisfies, v)) +} + +// SatisfiesIn applies the In predicate on the "satisfies" field. +func SatisfiesIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldSatisfies, vs...)) +} + +// SatisfiesNotIn applies the NotIn predicate on the "satisfies" field. +func SatisfiesNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldSatisfies, vs...)) +} + +// SatisfiesGT applies the GT predicate on the "satisfies" field. +func SatisfiesGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldSatisfies, v)) +} + +// SatisfiesGTE applies the GTE predicate on the "satisfies" field. +func SatisfiesGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldSatisfies, v)) +} + +// SatisfiesLT applies the LT predicate on the "satisfies" field. +func SatisfiesLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldSatisfies, v)) +} + +// SatisfiesLTE applies the LTE predicate on the "satisfies" field. +func SatisfiesLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldSatisfies, v)) +} + +// SatisfiesContains applies the Contains predicate on the "satisfies" field. +func SatisfiesContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldSatisfies, v)) +} + +// SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field. +func SatisfiesHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldSatisfies, v)) +} + +// SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field. +func SatisfiesHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldSatisfies, v)) +} + +// SatisfiesIsNil applies the IsNil predicate on the "satisfies" field. +func SatisfiesIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldSatisfies)) +} + +// SatisfiesNotNil applies the NotNil predicate on the "satisfies" field. +func SatisfiesNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldSatisfies)) +} + +// SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field. +func SatisfiesEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldSatisfies, v)) +} + +// SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field. +func SatisfiesContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldSatisfies, v)) +} + +// MappedFrameworksEQ applies the EQ predicate on the "mapped_frameworks" field. +func MappedFrameworksEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEQ(FieldMappedFrameworks, v)) +} + +// MappedFrameworksNEQ applies the NEQ predicate on the "mapped_frameworks" field. +func MappedFrameworksNEQ(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNEQ(FieldMappedFrameworks, v)) +} + +// MappedFrameworksIn applies the In predicate on the "mapped_frameworks" field. +func MappedFrameworksIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIn(FieldMappedFrameworks, vs...)) +} + +// MappedFrameworksNotIn applies the NotIn predicate on the "mapped_frameworks" field. +func MappedFrameworksNotIn(vs ...string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotIn(FieldMappedFrameworks, vs...)) +} + +// MappedFrameworksGT applies the GT predicate on the "mapped_frameworks" field. +func MappedFrameworksGT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGT(FieldMappedFrameworks, v)) +} + +// MappedFrameworksGTE applies the GTE predicate on the "mapped_frameworks" field. +func MappedFrameworksGTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldGTE(FieldMappedFrameworks, v)) +} + +// MappedFrameworksLT applies the LT predicate on the "mapped_frameworks" field. +func MappedFrameworksLT(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLT(FieldMappedFrameworks, v)) +} + +// MappedFrameworksLTE applies the LTE predicate on the "mapped_frameworks" field. +func MappedFrameworksLTE(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldLTE(FieldMappedFrameworks, v)) +} + +// MappedFrameworksContains applies the Contains predicate on the "mapped_frameworks" field. +func MappedFrameworksContains(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContains(FieldMappedFrameworks, v)) +} + +// MappedFrameworksHasPrefix applies the HasPrefix predicate on the "mapped_frameworks" field. +func MappedFrameworksHasPrefix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasPrefix(FieldMappedFrameworks, v)) +} + +// MappedFrameworksHasSuffix applies the HasSuffix predicate on the "mapped_frameworks" field. +func MappedFrameworksHasSuffix(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldHasSuffix(FieldMappedFrameworks, v)) +} + +// MappedFrameworksIsNil applies the IsNil predicate on the "mapped_frameworks" field. +func MappedFrameworksIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldMappedFrameworks)) +} + +// MappedFrameworksNotNil applies the NotNil predicate on the "mapped_frameworks" field. +func MappedFrameworksNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldMappedFrameworks)) +} + +// MappedFrameworksEqualFold applies the EqualFold predicate on the "mapped_frameworks" field. +func MappedFrameworksEqualFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldEqualFold(FieldMappedFrameworks, v)) +} + +// MappedFrameworksContainsFold applies the ContainsFold predicate on the "mapped_frameworks" field. +func MappedFrameworksContainsFold(v string) predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldContainsFold(FieldMappedFrameworks, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.ControlHistory { + return predicate.ControlHistory(sql.FieldNotNull(FieldDetails)) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.ControlHistory) predicate.ControlHistory { + return predicate.ControlHistory(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.ControlHistory) predicate.ControlHistory { + return predicate.ControlHistory(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.ControlHistory) predicate.ControlHistory { + return predicate.ControlHistory(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/controlhistory_create.go b/internal/ent/generated/controlhistory_create.go new file mode 100644 index 00000000..6d5a22c4 --- /dev/null +++ b/internal/ent/generated/controlhistory_create.go @@ -0,0 +1,621 @@ +// 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/internal/ent/generated/controlhistory" + "github.com/theopenlane/entx/history" +) + +// ControlHistoryCreate is the builder for creating a ControlHistory entity. +type ControlHistoryCreate struct { + config + mutation *ControlHistoryMutation + hooks []Hook +} + +// SetHistoryTime sets the "history_time" field. +func (chc *ControlHistoryCreate) SetHistoryTime(t time.Time) *ControlHistoryCreate { + chc.mutation.SetHistoryTime(t) + return chc +} + +// SetNillableHistoryTime sets the "history_time" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableHistoryTime(t *time.Time) *ControlHistoryCreate { + if t != nil { + chc.SetHistoryTime(*t) + } + return chc +} + +// SetRef sets the "ref" field. +func (chc *ControlHistoryCreate) SetRef(s string) *ControlHistoryCreate { + chc.mutation.SetRef(s) + return chc +} + +// SetNillableRef sets the "ref" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableRef(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetRef(*s) + } + return chc +} + +// SetOperation sets the "operation" field. +func (chc *ControlHistoryCreate) SetOperation(ht history.OpType) *ControlHistoryCreate { + chc.mutation.SetOperation(ht) + return chc +} + +// SetCreatedAt sets the "created_at" field. +func (chc *ControlHistoryCreate) SetCreatedAt(t time.Time) *ControlHistoryCreate { + chc.mutation.SetCreatedAt(t) + return chc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableCreatedAt(t *time.Time) *ControlHistoryCreate { + if t != nil { + chc.SetCreatedAt(*t) + } + return chc +} + +// SetUpdatedAt sets the "updated_at" field. +func (chc *ControlHistoryCreate) SetUpdatedAt(t time.Time) *ControlHistoryCreate { + chc.mutation.SetUpdatedAt(t) + return chc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableUpdatedAt(t *time.Time) *ControlHistoryCreate { + if t != nil { + chc.SetUpdatedAt(*t) + } + return chc +} + +// SetCreatedBy sets the "created_by" field. +func (chc *ControlHistoryCreate) SetCreatedBy(s string) *ControlHistoryCreate { + chc.mutation.SetCreatedBy(s) + return chc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableCreatedBy(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetCreatedBy(*s) + } + return chc +} + +// SetUpdatedBy sets the "updated_by" field. +func (chc *ControlHistoryCreate) SetUpdatedBy(s string) *ControlHistoryCreate { + chc.mutation.SetUpdatedBy(s) + return chc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableUpdatedBy(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetUpdatedBy(*s) + } + return chc +} + +// SetDeletedAt sets the "deleted_at" field. +func (chc *ControlHistoryCreate) SetDeletedAt(t time.Time) *ControlHistoryCreate { + chc.mutation.SetDeletedAt(t) + return chc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableDeletedAt(t *time.Time) *ControlHistoryCreate { + if t != nil { + chc.SetDeletedAt(*t) + } + return chc +} + +// SetDeletedBy sets the "deleted_by" field. +func (chc *ControlHistoryCreate) SetDeletedBy(s string) *ControlHistoryCreate { + chc.mutation.SetDeletedBy(s) + return chc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableDeletedBy(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetDeletedBy(*s) + } + return chc +} + +// SetMappingID sets the "mapping_id" field. +func (chc *ControlHistoryCreate) SetMappingID(s string) *ControlHistoryCreate { + chc.mutation.SetMappingID(s) + return chc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableMappingID(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetMappingID(*s) + } + return chc +} + +// SetTags sets the "tags" field. +func (chc *ControlHistoryCreate) SetTags(s []string) *ControlHistoryCreate { + chc.mutation.SetTags(s) + return chc +} + +// SetName sets the "name" field. +func (chc *ControlHistoryCreate) SetName(s string) *ControlHistoryCreate { + chc.mutation.SetName(s) + return chc +} + +// SetDescription sets the "description" field. +func (chc *ControlHistoryCreate) SetDescription(s string) *ControlHistoryCreate { + chc.mutation.SetDescription(s) + return chc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableDescription(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetDescription(*s) + } + return chc +} + +// SetStatus sets the "status" field. +func (chc *ControlHistoryCreate) SetStatus(s string) *ControlHistoryCreate { + chc.mutation.SetStatus(s) + return chc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableStatus(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetStatus(*s) + } + return chc +} + +// SetControlType sets the "control_type" field. +func (chc *ControlHistoryCreate) SetControlType(s string) *ControlHistoryCreate { + chc.mutation.SetControlType(s) + return chc +} + +// SetNillableControlType sets the "control_type" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableControlType(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetControlType(*s) + } + return chc +} + +// SetVersion sets the "version" field. +func (chc *ControlHistoryCreate) SetVersion(s string) *ControlHistoryCreate { + chc.mutation.SetVersion(s) + return chc +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableVersion(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetVersion(*s) + } + return chc +} + +// SetControlNumber sets the "control_number" field. +func (chc *ControlHistoryCreate) SetControlNumber(s string) *ControlHistoryCreate { + chc.mutation.SetControlNumber(s) + return chc +} + +// SetNillableControlNumber sets the "control_number" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableControlNumber(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetControlNumber(*s) + } + return chc +} + +// SetFamily sets the "family" field. +func (chc *ControlHistoryCreate) SetFamily(s string) *ControlHistoryCreate { + chc.mutation.SetFamily(s) + return chc +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableFamily(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetFamily(*s) + } + return chc +} + +// SetClass sets the "class" field. +func (chc *ControlHistoryCreate) SetClass(s string) *ControlHistoryCreate { + chc.mutation.SetClass(s) + return chc +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableClass(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetClass(*s) + } + return chc +} + +// SetSource sets the "source" field. +func (chc *ControlHistoryCreate) SetSource(s string) *ControlHistoryCreate { + chc.mutation.SetSource(s) + return chc +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableSource(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetSource(*s) + } + return chc +} + +// SetSatisfies sets the "satisfies" field. +func (chc *ControlHistoryCreate) SetSatisfies(s string) *ControlHistoryCreate { + chc.mutation.SetSatisfies(s) + return chc +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableSatisfies(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetSatisfies(*s) + } + return chc +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (chc *ControlHistoryCreate) SetMappedFrameworks(s string) *ControlHistoryCreate { + chc.mutation.SetMappedFrameworks(s) + return chc +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableMappedFrameworks(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetMappedFrameworks(*s) + } + return chc +} + +// SetDetails sets the "details" field. +func (chc *ControlHistoryCreate) SetDetails(m map[string]interface{}) *ControlHistoryCreate { + chc.mutation.SetDetails(m) + return chc +} + +// SetID sets the "id" field. +func (chc *ControlHistoryCreate) SetID(s string) *ControlHistoryCreate { + chc.mutation.SetID(s) + return chc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (chc *ControlHistoryCreate) SetNillableID(s *string) *ControlHistoryCreate { + if s != nil { + chc.SetID(*s) + } + return chc +} + +// Mutation returns the ControlHistoryMutation object of the builder. +func (chc *ControlHistoryCreate) Mutation() *ControlHistoryMutation { + return chc.mutation +} + +// Save creates the ControlHistory in the database. +func (chc *ControlHistoryCreate) Save(ctx context.Context) (*ControlHistory, error) { + chc.defaults() + return withHooks(ctx, chc.sqlSave, chc.mutation, chc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (chc *ControlHistoryCreate) SaveX(ctx context.Context) *ControlHistory { + v, err := chc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (chc *ControlHistoryCreate) Exec(ctx context.Context) error { + _, err := chc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (chc *ControlHistoryCreate) ExecX(ctx context.Context) { + if err := chc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (chc *ControlHistoryCreate) defaults() { + if _, ok := chc.mutation.HistoryTime(); !ok { + v := controlhistory.DefaultHistoryTime() + chc.mutation.SetHistoryTime(v) + } + if _, ok := chc.mutation.CreatedAt(); !ok { + v := controlhistory.DefaultCreatedAt() + chc.mutation.SetCreatedAt(v) + } + if _, ok := chc.mutation.UpdatedAt(); !ok { + v := controlhistory.DefaultUpdatedAt() + chc.mutation.SetUpdatedAt(v) + } + if _, ok := chc.mutation.MappingID(); !ok { + v := controlhistory.DefaultMappingID() + chc.mutation.SetMappingID(v) + } + if _, ok := chc.mutation.Tags(); !ok { + v := controlhistory.DefaultTags + chc.mutation.SetTags(v) + } + if _, ok := chc.mutation.ID(); !ok { + v := controlhistory.DefaultID() + chc.mutation.SetID(v) + } +} + +// check runs all checks and user-defined validators on the builder. +func (chc *ControlHistoryCreate) check() error { + if _, ok := chc.mutation.HistoryTime(); !ok { + return &ValidationError{Name: "history_time", err: errors.New(`generated: missing required field "ControlHistory.history_time"`)} + } + if _, ok := chc.mutation.Operation(); !ok { + return &ValidationError{Name: "operation", err: errors.New(`generated: missing required field "ControlHistory.operation"`)} + } + if v, ok := chc.mutation.Operation(); ok { + if err := controlhistory.OperationValidator(v); err != nil { + return &ValidationError{Name: "operation", err: fmt.Errorf(`generated: validator failed for field "ControlHistory.operation": %w`, err)} + } + } + if _, ok := chc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "ControlHistory.mapping_id"`)} + } + if _, ok := chc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "ControlHistory.name"`)} + } + return nil +} + +func (chc *ControlHistoryCreate) sqlSave(ctx context.Context) (*ControlHistory, error) { + if err := chc.check(); err != nil { + return nil, err + } + _node, _spec := chc.createSpec() + if err := sqlgraph.CreateNode(ctx, chc.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 ControlHistory.ID type: %T", _spec.ID.Value) + } + } + chc.mutation.id = &_node.ID + chc.mutation.done = true + return _node, nil +} + +func (chc *ControlHistoryCreate) createSpec() (*ControlHistory, *sqlgraph.CreateSpec) { + var ( + _node = &ControlHistory{config: chc.config} + _spec = sqlgraph.NewCreateSpec(controlhistory.Table, sqlgraph.NewFieldSpec(controlhistory.FieldID, field.TypeString)) + ) + _spec.Schema = chc.schemaConfig.ControlHistory + if id, ok := chc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := chc.mutation.HistoryTime(); ok { + _spec.SetField(controlhistory.FieldHistoryTime, field.TypeTime, value) + _node.HistoryTime = value + } + if value, ok := chc.mutation.Ref(); ok { + _spec.SetField(controlhistory.FieldRef, field.TypeString, value) + _node.Ref = value + } + if value, ok := chc.mutation.Operation(); ok { + _spec.SetField(controlhistory.FieldOperation, field.TypeEnum, value) + _node.Operation = value + } + if value, ok := chc.mutation.CreatedAt(); ok { + _spec.SetField(controlhistory.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := chc.mutation.UpdatedAt(); ok { + _spec.SetField(controlhistory.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := chc.mutation.CreatedBy(); ok { + _spec.SetField(controlhistory.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := chc.mutation.UpdatedBy(); ok { + _spec.SetField(controlhistory.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := chc.mutation.DeletedAt(); ok { + _spec.SetField(controlhistory.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := chc.mutation.DeletedBy(); ok { + _spec.SetField(controlhistory.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := chc.mutation.MappingID(); ok { + _spec.SetField(controlhistory.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := chc.mutation.Tags(); ok { + _spec.SetField(controlhistory.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := chc.mutation.Name(); ok { + _spec.SetField(controlhistory.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := chc.mutation.Description(); ok { + _spec.SetField(controlhistory.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := chc.mutation.Status(); ok { + _spec.SetField(controlhistory.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := chc.mutation.ControlType(); ok { + _spec.SetField(controlhistory.FieldControlType, field.TypeString, value) + _node.ControlType = value + } + if value, ok := chc.mutation.Version(); ok { + _spec.SetField(controlhistory.FieldVersion, field.TypeString, value) + _node.Version = value + } + if value, ok := chc.mutation.ControlNumber(); ok { + _spec.SetField(controlhistory.FieldControlNumber, field.TypeString, value) + _node.ControlNumber = value + } + if value, ok := chc.mutation.Family(); ok { + _spec.SetField(controlhistory.FieldFamily, field.TypeString, value) + _node.Family = value + } + if value, ok := chc.mutation.Class(); ok { + _spec.SetField(controlhistory.FieldClass, field.TypeString, value) + _node.Class = value + } + if value, ok := chc.mutation.Source(); ok { + _spec.SetField(controlhistory.FieldSource, field.TypeString, value) + _node.Source = value + } + if value, ok := chc.mutation.Satisfies(); ok { + _spec.SetField(controlhistory.FieldSatisfies, field.TypeString, value) + _node.Satisfies = value + } + if value, ok := chc.mutation.MappedFrameworks(); ok { + _spec.SetField(controlhistory.FieldMappedFrameworks, field.TypeString, value) + _node.MappedFrameworks = value + } + if value, ok := chc.mutation.Details(); ok { + _spec.SetField(controlhistory.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + return _node, _spec +} + +// ControlHistoryCreateBulk is the builder for creating many ControlHistory entities in bulk. +type ControlHistoryCreateBulk struct { + config + err error + builders []*ControlHistoryCreate +} + +// Save creates the ControlHistory entities in the database. +func (chcb *ControlHistoryCreateBulk) Save(ctx context.Context) ([]*ControlHistory, error) { + if chcb.err != nil { + return nil, chcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(chcb.builders)) + nodes := make([]*ControlHistory, len(chcb.builders)) + mutators := make([]Mutator, len(chcb.builders)) + for i := range chcb.builders { + func(i int, root context.Context) { + builder := chcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*ControlHistoryMutation) + 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, chcb.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, chcb.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, chcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (chcb *ControlHistoryCreateBulk) SaveX(ctx context.Context) []*ControlHistory { + v, err := chcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (chcb *ControlHistoryCreateBulk) Exec(ctx context.Context) error { + _, err := chcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (chcb *ControlHistoryCreateBulk) ExecX(ctx context.Context) { + if err := chcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/controlhistory_delete.go b/internal/ent/generated/controlhistory_delete.go new file mode 100644 index 00000000..f282f5f8 --- /dev/null +++ b/internal/ent/generated/controlhistory_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ControlHistoryDelete is the builder for deleting a ControlHistory entity. +type ControlHistoryDelete struct { + config + hooks []Hook + mutation *ControlHistoryMutation +} + +// Where appends a list predicates to the ControlHistoryDelete builder. +func (chd *ControlHistoryDelete) Where(ps ...predicate.ControlHistory) *ControlHistoryDelete { + chd.mutation.Where(ps...) + return chd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (chd *ControlHistoryDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, chd.sqlExec, chd.mutation, chd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (chd *ControlHistoryDelete) ExecX(ctx context.Context) int { + n, err := chd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (chd *ControlHistoryDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(controlhistory.Table, sqlgraph.NewFieldSpec(controlhistory.FieldID, field.TypeString)) + _spec.Node.Schema = chd.schemaConfig.ControlHistory + ctx = internal.NewSchemaConfigContext(ctx, chd.schemaConfig) + if ps := chd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, chd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + chd.mutation.done = true + return affected, err +} + +// ControlHistoryDeleteOne is the builder for deleting a single ControlHistory entity. +type ControlHistoryDeleteOne struct { + chd *ControlHistoryDelete +} + +// Where appends a list predicates to the ControlHistoryDelete builder. +func (chdo *ControlHistoryDeleteOne) Where(ps ...predicate.ControlHistory) *ControlHistoryDeleteOne { + chdo.chd.mutation.Where(ps...) + return chdo +} + +// Exec executes the deletion query. +func (chdo *ControlHistoryDeleteOne) Exec(ctx context.Context) error { + n, err := chdo.chd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{controlhistory.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (chdo *ControlHistoryDeleteOne) ExecX(ctx context.Context) { + if err := chdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/controlhistory_query.go b/internal/ent/generated/controlhistory_query.go new file mode 100644 index 00000000..307ddb1f --- /dev/null +++ b/internal/ent/generated/controlhistory_query.go @@ -0,0 +1,565 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "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/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ControlHistoryQuery is the builder for querying ControlHistory entities. +type ControlHistoryQuery struct { + config + ctx *QueryContext + order []controlhistory.OrderOption + inters []Interceptor + predicates []predicate.ControlHistory + loadTotal []func(context.Context, []*ControlHistory) 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 ControlHistoryQuery builder. +func (chq *ControlHistoryQuery) Where(ps ...predicate.ControlHistory) *ControlHistoryQuery { + chq.predicates = append(chq.predicates, ps...) + return chq +} + +// Limit the number of records to be returned by this query. +func (chq *ControlHistoryQuery) Limit(limit int) *ControlHistoryQuery { + chq.ctx.Limit = &limit + return chq +} + +// Offset to start from. +func (chq *ControlHistoryQuery) Offset(offset int) *ControlHistoryQuery { + chq.ctx.Offset = &offset + return chq +} + +// 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 (chq *ControlHistoryQuery) Unique(unique bool) *ControlHistoryQuery { + chq.ctx.Unique = &unique + return chq +} + +// Order specifies how the records should be ordered. +func (chq *ControlHistoryQuery) Order(o ...controlhistory.OrderOption) *ControlHistoryQuery { + chq.order = append(chq.order, o...) + return chq +} + +// First returns the first ControlHistory entity from the query. +// Returns a *NotFoundError when no ControlHistory was found. +func (chq *ControlHistoryQuery) First(ctx context.Context) (*ControlHistory, error) { + nodes, err := chq.Limit(1).All(setContextOp(ctx, chq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{controlhistory.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (chq *ControlHistoryQuery) FirstX(ctx context.Context) *ControlHistory { + node, err := chq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first ControlHistory ID from the query. +// Returns a *NotFoundError when no ControlHistory ID was found. +func (chq *ControlHistoryQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = chq.Limit(1).IDs(setContextOp(ctx, chq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{controlhistory.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (chq *ControlHistoryQuery) FirstIDX(ctx context.Context) string { + id, err := chq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single ControlHistory entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one ControlHistory entity is found. +// Returns a *NotFoundError when no ControlHistory entities are found. +func (chq *ControlHistoryQuery) Only(ctx context.Context) (*ControlHistory, error) { + nodes, err := chq.Limit(2).All(setContextOp(ctx, chq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{controlhistory.Label} + default: + return nil, &NotSingularError{controlhistory.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (chq *ControlHistoryQuery) OnlyX(ctx context.Context) *ControlHistory { + node, err := chq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only ControlHistory ID in the query. +// Returns a *NotSingularError when more than one ControlHistory ID is found. +// Returns a *NotFoundError when no entities are found. +func (chq *ControlHistoryQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = chq.Limit(2).IDs(setContextOp(ctx, chq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{controlhistory.Label} + default: + err = &NotSingularError{controlhistory.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (chq *ControlHistoryQuery) OnlyIDX(ctx context.Context) string { + id, err := chq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of ControlHistories. +func (chq *ControlHistoryQuery) All(ctx context.Context) ([]*ControlHistory, error) { + ctx = setContextOp(ctx, chq.ctx, ent.OpQueryAll) + if err := chq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*ControlHistory, *ControlHistoryQuery]() + return withInterceptors[[]*ControlHistory](ctx, chq, qr, chq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (chq *ControlHistoryQuery) AllX(ctx context.Context) []*ControlHistory { + nodes, err := chq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of ControlHistory IDs. +func (chq *ControlHistoryQuery) IDs(ctx context.Context) (ids []string, err error) { + if chq.ctx.Unique == nil && chq.path != nil { + chq.Unique(true) + } + ctx = setContextOp(ctx, chq.ctx, ent.OpQueryIDs) + if err = chq.Select(controlhistory.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (chq *ControlHistoryQuery) IDsX(ctx context.Context) []string { + ids, err := chq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (chq *ControlHistoryQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, chq.ctx, ent.OpQueryCount) + if err := chq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, chq, querierCount[*ControlHistoryQuery](), chq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (chq *ControlHistoryQuery) CountX(ctx context.Context) int { + count, err := chq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (chq *ControlHistoryQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, chq.ctx, ent.OpQueryExist) + switch _, err := chq.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 (chq *ControlHistoryQuery) ExistX(ctx context.Context) bool { + exist, err := chq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the ControlHistoryQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (chq *ControlHistoryQuery) Clone() *ControlHistoryQuery { + if chq == nil { + return nil + } + return &ControlHistoryQuery{ + config: chq.config, + ctx: chq.ctx.Clone(), + order: append([]controlhistory.OrderOption{}, chq.order...), + inters: append([]Interceptor{}, chq.inters...), + predicates: append([]predicate.ControlHistory{}, chq.predicates...), + // clone intermediate query. + sql: chq.sql.Clone(), + path: chq.path, + modifiers: append([]func(*sql.Selector){}, chq.modifiers...), + } +} + +// 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.ControlHistory.Query(). +// GroupBy(controlhistory.FieldHistoryTime). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (chq *ControlHistoryQuery) GroupBy(field string, fields ...string) *ControlHistoryGroupBy { + chq.ctx.Fields = append([]string{field}, fields...) + grbuild := &ControlHistoryGroupBy{build: chq} + grbuild.flds = &chq.ctx.Fields + grbuild.label = controlhistory.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.ControlHistory.Query(). +// Select(controlhistory.FieldHistoryTime). +// Scan(ctx, &v) +func (chq *ControlHistoryQuery) Select(fields ...string) *ControlHistorySelect { + chq.ctx.Fields = append(chq.ctx.Fields, fields...) + sbuild := &ControlHistorySelect{ControlHistoryQuery: chq} + sbuild.label = controlhistory.Label + sbuild.flds, sbuild.scan = &chq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a ControlHistorySelect configured with the given aggregations. +func (chq *ControlHistoryQuery) Aggregate(fns ...AggregateFunc) *ControlHistorySelect { + return chq.Select().Aggregate(fns...) +} + +func (chq *ControlHistoryQuery) prepareQuery(ctx context.Context) error { + for _, inter := range chq.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, chq); err != nil { + return err + } + } + } + for _, f := range chq.ctx.Fields { + if !controlhistory.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if chq.path != nil { + prev, err := chq.path(ctx) + if err != nil { + return err + } + chq.sql = prev + } + return nil +} + +func (chq *ControlHistoryQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*ControlHistory, error) { + var ( + nodes = []*ControlHistory{} + _spec = chq.querySpec() + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*ControlHistory).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &ControlHistory{config: chq.config} + nodes = append(nodes, node) + return node.assignValues(columns, values) + } + _spec.Node.Schema = chq.schemaConfig.ControlHistory + ctx = internal.NewSchemaConfigContext(ctx, chq.schemaConfig) + if len(chq.modifiers) > 0 { + _spec.Modifiers = chq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, chq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + for i := range chq.loadTotal { + if err := chq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (chq *ControlHistoryQuery) sqlCount(ctx context.Context) (int, error) { + _spec := chq.querySpec() + _spec.Node.Schema = chq.schemaConfig.ControlHistory + ctx = internal.NewSchemaConfigContext(ctx, chq.schemaConfig) + if len(chq.modifiers) > 0 { + _spec.Modifiers = chq.modifiers + } + _spec.Node.Columns = chq.ctx.Fields + if len(chq.ctx.Fields) > 0 { + _spec.Unique = chq.ctx.Unique != nil && *chq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, chq.driver, _spec) +} + +func (chq *ControlHistoryQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(controlhistory.Table, controlhistory.Columns, sqlgraph.NewFieldSpec(controlhistory.FieldID, field.TypeString)) + _spec.From = chq.sql + if unique := chq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if chq.path != nil { + _spec.Unique = true + } + if fields := chq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, controlhistory.FieldID) + for i := range fields { + if fields[i] != controlhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := chq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := chq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := chq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := chq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (chq *ControlHistoryQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(chq.driver.Dialect()) + t1 := builder.Table(controlhistory.Table) + columns := chq.ctx.Fields + if len(columns) == 0 { + columns = controlhistory.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if chq.sql != nil { + selector = chq.sql + selector.Select(selector.Columns(columns...)...) + } + if chq.ctx.Unique != nil && *chq.ctx.Unique { + selector.Distinct() + } + t1.Schema(chq.schemaConfig.ControlHistory) + ctx = internal.NewSchemaConfigContext(ctx, chq.schemaConfig) + selector.WithContext(ctx) + for _, m := range chq.modifiers { + m(selector) + } + for _, p := range chq.predicates { + p(selector) + } + for _, p := range chq.order { + p(selector) + } + if offset := chq.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 := chq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (chq *ControlHistoryQuery) Modify(modifiers ...func(s *sql.Selector)) *ControlHistorySelect { + chq.modifiers = append(chq.modifiers, modifiers...) + return chq.Select() +} + +// ControlHistoryGroupBy is the group-by builder for ControlHistory entities. +type ControlHistoryGroupBy struct { + selector + build *ControlHistoryQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (chgb *ControlHistoryGroupBy) Aggregate(fns ...AggregateFunc) *ControlHistoryGroupBy { + chgb.fns = append(chgb.fns, fns...) + return chgb +} + +// Scan applies the selector query and scans the result into the given value. +func (chgb *ControlHistoryGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, chgb.build.ctx, ent.OpQueryGroupBy) + if err := chgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ControlHistoryQuery, *ControlHistoryGroupBy](ctx, chgb.build, chgb, chgb.build.inters, v) +} + +func (chgb *ControlHistoryGroupBy) sqlScan(ctx context.Context, root *ControlHistoryQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(chgb.fns)) + for _, fn := range chgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*chgb.flds)+len(chgb.fns)) + for _, f := range *chgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*chgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := chgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// ControlHistorySelect is the builder for selecting fields of ControlHistory entities. +type ControlHistorySelect struct { + *ControlHistoryQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (chs *ControlHistorySelect) Aggregate(fns ...AggregateFunc) *ControlHistorySelect { + chs.fns = append(chs.fns, fns...) + return chs +} + +// Scan applies the selector query and scans the result into the given value. +func (chs *ControlHistorySelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, chs.ctx, ent.OpQuerySelect) + if err := chs.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ControlHistoryQuery, *ControlHistorySelect](ctx, chs.ControlHistoryQuery, chs, chs.inters, v) +} + +func (chs *ControlHistorySelect) sqlScan(ctx context.Context, root *ControlHistoryQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(chs.fns)) + for _, fn := range chs.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*chs.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 := chs.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 (chs *ControlHistorySelect) Modify(modifiers ...func(s *sql.Selector)) *ControlHistorySelect { + chs.modifiers = append(chs.modifiers, modifiers...) + return chs +} diff --git a/internal/ent/generated/controlhistory_update.go b/internal/ent/generated/controlhistory_update.go new file mode 100644 index 00000000..bf9f0b5e --- /dev/null +++ b/internal/ent/generated/controlhistory_update.go @@ -0,0 +1,1075 @@ +// 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/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ControlHistoryUpdate is the builder for updating ControlHistory entities. +type ControlHistoryUpdate struct { + config + hooks []Hook + mutation *ControlHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the ControlHistoryUpdate builder. +func (chu *ControlHistoryUpdate) Where(ps ...predicate.ControlHistory) *ControlHistoryUpdate { + chu.mutation.Where(ps...) + return chu +} + +// SetUpdatedAt sets the "updated_at" field. +func (chu *ControlHistoryUpdate) SetUpdatedAt(t time.Time) *ControlHistoryUpdate { + chu.mutation.SetUpdatedAt(t) + return chu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (chu *ControlHistoryUpdate) ClearUpdatedAt() *ControlHistoryUpdate { + chu.mutation.ClearUpdatedAt() + return chu +} + +// SetUpdatedBy sets the "updated_by" field. +func (chu *ControlHistoryUpdate) SetUpdatedBy(s string) *ControlHistoryUpdate { + chu.mutation.SetUpdatedBy(s) + return chu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableUpdatedBy(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetUpdatedBy(*s) + } + return chu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (chu *ControlHistoryUpdate) ClearUpdatedBy() *ControlHistoryUpdate { + chu.mutation.ClearUpdatedBy() + return chu +} + +// SetDeletedAt sets the "deleted_at" field. +func (chu *ControlHistoryUpdate) SetDeletedAt(t time.Time) *ControlHistoryUpdate { + chu.mutation.SetDeletedAt(t) + return chu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableDeletedAt(t *time.Time) *ControlHistoryUpdate { + if t != nil { + chu.SetDeletedAt(*t) + } + return chu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (chu *ControlHistoryUpdate) ClearDeletedAt() *ControlHistoryUpdate { + chu.mutation.ClearDeletedAt() + return chu +} + +// SetDeletedBy sets the "deleted_by" field. +func (chu *ControlHistoryUpdate) SetDeletedBy(s string) *ControlHistoryUpdate { + chu.mutation.SetDeletedBy(s) + return chu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableDeletedBy(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetDeletedBy(*s) + } + return chu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (chu *ControlHistoryUpdate) ClearDeletedBy() *ControlHistoryUpdate { + chu.mutation.ClearDeletedBy() + return chu +} + +// SetTags sets the "tags" field. +func (chu *ControlHistoryUpdate) SetTags(s []string) *ControlHistoryUpdate { + chu.mutation.SetTags(s) + return chu +} + +// AppendTags appends s to the "tags" field. +func (chu *ControlHistoryUpdate) AppendTags(s []string) *ControlHistoryUpdate { + chu.mutation.AppendTags(s) + return chu +} + +// ClearTags clears the value of the "tags" field. +func (chu *ControlHistoryUpdate) ClearTags() *ControlHistoryUpdate { + chu.mutation.ClearTags() + return chu +} + +// SetName sets the "name" field. +func (chu *ControlHistoryUpdate) SetName(s string) *ControlHistoryUpdate { + chu.mutation.SetName(s) + return chu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableName(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetName(*s) + } + return chu +} + +// SetDescription sets the "description" field. +func (chu *ControlHistoryUpdate) SetDescription(s string) *ControlHistoryUpdate { + chu.mutation.SetDescription(s) + return chu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableDescription(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetDescription(*s) + } + return chu +} + +// ClearDescription clears the value of the "description" field. +func (chu *ControlHistoryUpdate) ClearDescription() *ControlHistoryUpdate { + chu.mutation.ClearDescription() + return chu +} + +// SetStatus sets the "status" field. +func (chu *ControlHistoryUpdate) SetStatus(s string) *ControlHistoryUpdate { + chu.mutation.SetStatus(s) + return chu +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableStatus(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetStatus(*s) + } + return chu +} + +// ClearStatus clears the value of the "status" field. +func (chu *ControlHistoryUpdate) ClearStatus() *ControlHistoryUpdate { + chu.mutation.ClearStatus() + return chu +} + +// SetControlType sets the "control_type" field. +func (chu *ControlHistoryUpdate) SetControlType(s string) *ControlHistoryUpdate { + chu.mutation.SetControlType(s) + return chu +} + +// SetNillableControlType sets the "control_type" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableControlType(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetControlType(*s) + } + return chu +} + +// ClearControlType clears the value of the "control_type" field. +func (chu *ControlHistoryUpdate) ClearControlType() *ControlHistoryUpdate { + chu.mutation.ClearControlType() + return chu +} + +// SetVersion sets the "version" field. +func (chu *ControlHistoryUpdate) SetVersion(s string) *ControlHistoryUpdate { + chu.mutation.SetVersion(s) + return chu +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableVersion(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetVersion(*s) + } + return chu +} + +// ClearVersion clears the value of the "version" field. +func (chu *ControlHistoryUpdate) ClearVersion() *ControlHistoryUpdate { + chu.mutation.ClearVersion() + return chu +} + +// SetControlNumber sets the "control_number" field. +func (chu *ControlHistoryUpdate) SetControlNumber(s string) *ControlHistoryUpdate { + chu.mutation.SetControlNumber(s) + return chu +} + +// SetNillableControlNumber sets the "control_number" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableControlNumber(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetControlNumber(*s) + } + return chu +} + +// ClearControlNumber clears the value of the "control_number" field. +func (chu *ControlHistoryUpdate) ClearControlNumber() *ControlHistoryUpdate { + chu.mutation.ClearControlNumber() + return chu +} + +// SetFamily sets the "family" field. +func (chu *ControlHistoryUpdate) SetFamily(s string) *ControlHistoryUpdate { + chu.mutation.SetFamily(s) + return chu +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableFamily(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetFamily(*s) + } + return chu +} + +// ClearFamily clears the value of the "family" field. +func (chu *ControlHistoryUpdate) ClearFamily() *ControlHistoryUpdate { + chu.mutation.ClearFamily() + return chu +} + +// SetClass sets the "class" field. +func (chu *ControlHistoryUpdate) SetClass(s string) *ControlHistoryUpdate { + chu.mutation.SetClass(s) + return chu +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableClass(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetClass(*s) + } + return chu +} + +// ClearClass clears the value of the "class" field. +func (chu *ControlHistoryUpdate) ClearClass() *ControlHistoryUpdate { + chu.mutation.ClearClass() + return chu +} + +// SetSource sets the "source" field. +func (chu *ControlHistoryUpdate) SetSource(s string) *ControlHistoryUpdate { + chu.mutation.SetSource(s) + return chu +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableSource(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetSource(*s) + } + return chu +} + +// ClearSource clears the value of the "source" field. +func (chu *ControlHistoryUpdate) ClearSource() *ControlHistoryUpdate { + chu.mutation.ClearSource() + return chu +} + +// SetSatisfies sets the "satisfies" field. +func (chu *ControlHistoryUpdate) SetSatisfies(s string) *ControlHistoryUpdate { + chu.mutation.SetSatisfies(s) + return chu +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableSatisfies(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetSatisfies(*s) + } + return chu +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (chu *ControlHistoryUpdate) ClearSatisfies() *ControlHistoryUpdate { + chu.mutation.ClearSatisfies() + return chu +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (chu *ControlHistoryUpdate) SetMappedFrameworks(s string) *ControlHistoryUpdate { + chu.mutation.SetMappedFrameworks(s) + return chu +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (chu *ControlHistoryUpdate) SetNillableMappedFrameworks(s *string) *ControlHistoryUpdate { + if s != nil { + chu.SetMappedFrameworks(*s) + } + return chu +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (chu *ControlHistoryUpdate) ClearMappedFrameworks() *ControlHistoryUpdate { + chu.mutation.ClearMappedFrameworks() + return chu +} + +// SetDetails sets the "details" field. +func (chu *ControlHistoryUpdate) SetDetails(m map[string]interface{}) *ControlHistoryUpdate { + chu.mutation.SetDetails(m) + return chu +} + +// ClearDetails clears the value of the "details" field. +func (chu *ControlHistoryUpdate) ClearDetails() *ControlHistoryUpdate { + chu.mutation.ClearDetails() + return chu +} + +// Mutation returns the ControlHistoryMutation object of the builder. +func (chu *ControlHistoryUpdate) Mutation() *ControlHistoryMutation { + return chu.mutation +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (chu *ControlHistoryUpdate) Save(ctx context.Context) (int, error) { + chu.defaults() + return withHooks(ctx, chu.sqlSave, chu.mutation, chu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (chu *ControlHistoryUpdate) SaveX(ctx context.Context) int { + affected, err := chu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (chu *ControlHistoryUpdate) Exec(ctx context.Context) error { + _, err := chu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (chu *ControlHistoryUpdate) ExecX(ctx context.Context) { + if err := chu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (chu *ControlHistoryUpdate) defaults() { + if _, ok := chu.mutation.UpdatedAt(); !ok && !chu.mutation.UpdatedAtCleared() { + v := controlhistory.UpdateDefaultUpdatedAt() + chu.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (chu *ControlHistoryUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ControlHistoryUpdate { + chu.modifiers = append(chu.modifiers, modifiers...) + return chu +} + +func (chu *ControlHistoryUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(controlhistory.Table, controlhistory.Columns, sqlgraph.NewFieldSpec(controlhistory.FieldID, field.TypeString)) + if ps := chu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if chu.mutation.RefCleared() { + _spec.ClearField(controlhistory.FieldRef, field.TypeString) + } + if chu.mutation.CreatedAtCleared() { + _spec.ClearField(controlhistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := chu.mutation.UpdatedAt(); ok { + _spec.SetField(controlhistory.FieldUpdatedAt, field.TypeTime, value) + } + if chu.mutation.UpdatedAtCleared() { + _spec.ClearField(controlhistory.FieldUpdatedAt, field.TypeTime) + } + if chu.mutation.CreatedByCleared() { + _spec.ClearField(controlhistory.FieldCreatedBy, field.TypeString) + } + if value, ok := chu.mutation.UpdatedBy(); ok { + _spec.SetField(controlhistory.FieldUpdatedBy, field.TypeString, value) + } + if chu.mutation.UpdatedByCleared() { + _spec.ClearField(controlhistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := chu.mutation.DeletedAt(); ok { + _spec.SetField(controlhistory.FieldDeletedAt, field.TypeTime, value) + } + if chu.mutation.DeletedAtCleared() { + _spec.ClearField(controlhistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := chu.mutation.DeletedBy(); ok { + _spec.SetField(controlhistory.FieldDeletedBy, field.TypeString, value) + } + if chu.mutation.DeletedByCleared() { + _spec.ClearField(controlhistory.FieldDeletedBy, field.TypeString) + } + if value, ok := chu.mutation.Tags(); ok { + _spec.SetField(controlhistory.FieldTags, field.TypeJSON, value) + } + if value, ok := chu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, controlhistory.FieldTags, value) + }) + } + if chu.mutation.TagsCleared() { + _spec.ClearField(controlhistory.FieldTags, field.TypeJSON) + } + if value, ok := chu.mutation.Name(); ok { + _spec.SetField(controlhistory.FieldName, field.TypeString, value) + } + if value, ok := chu.mutation.Description(); ok { + _spec.SetField(controlhistory.FieldDescription, field.TypeString, value) + } + if chu.mutation.DescriptionCleared() { + _spec.ClearField(controlhistory.FieldDescription, field.TypeString) + } + if value, ok := chu.mutation.Status(); ok { + _spec.SetField(controlhistory.FieldStatus, field.TypeString, value) + } + if chu.mutation.StatusCleared() { + _spec.ClearField(controlhistory.FieldStatus, field.TypeString) + } + if value, ok := chu.mutation.ControlType(); ok { + _spec.SetField(controlhistory.FieldControlType, field.TypeString, value) + } + if chu.mutation.ControlTypeCleared() { + _spec.ClearField(controlhistory.FieldControlType, field.TypeString) + } + if value, ok := chu.mutation.Version(); ok { + _spec.SetField(controlhistory.FieldVersion, field.TypeString, value) + } + if chu.mutation.VersionCleared() { + _spec.ClearField(controlhistory.FieldVersion, field.TypeString) + } + if value, ok := chu.mutation.ControlNumber(); ok { + _spec.SetField(controlhistory.FieldControlNumber, field.TypeString, value) + } + if chu.mutation.ControlNumberCleared() { + _spec.ClearField(controlhistory.FieldControlNumber, field.TypeString) + } + if value, ok := chu.mutation.Family(); ok { + _spec.SetField(controlhistory.FieldFamily, field.TypeString, value) + } + if chu.mutation.FamilyCleared() { + _spec.ClearField(controlhistory.FieldFamily, field.TypeString) + } + if value, ok := chu.mutation.Class(); ok { + _spec.SetField(controlhistory.FieldClass, field.TypeString, value) + } + if chu.mutation.ClassCleared() { + _spec.ClearField(controlhistory.FieldClass, field.TypeString) + } + if value, ok := chu.mutation.Source(); ok { + _spec.SetField(controlhistory.FieldSource, field.TypeString, value) + } + if chu.mutation.SourceCleared() { + _spec.ClearField(controlhistory.FieldSource, field.TypeString) + } + if value, ok := chu.mutation.Satisfies(); ok { + _spec.SetField(controlhistory.FieldSatisfies, field.TypeString, value) + } + if chu.mutation.SatisfiesCleared() { + _spec.ClearField(controlhistory.FieldSatisfies, field.TypeString) + } + if value, ok := chu.mutation.MappedFrameworks(); ok { + _spec.SetField(controlhistory.FieldMappedFrameworks, field.TypeString, value) + } + if chu.mutation.MappedFrameworksCleared() { + _spec.ClearField(controlhistory.FieldMappedFrameworks, field.TypeString) + } + if value, ok := chu.mutation.Details(); ok { + _spec.SetField(controlhistory.FieldDetails, field.TypeJSON, value) + } + if chu.mutation.DetailsCleared() { + _spec.ClearField(controlhistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = chu.schemaConfig.ControlHistory + ctx = internal.NewSchemaConfigContext(ctx, chu.schemaConfig) + _spec.AddModifiers(chu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, chu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{controlhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + chu.mutation.done = true + return n, nil +} + +// ControlHistoryUpdateOne is the builder for updating a single ControlHistory entity. +type ControlHistoryUpdateOne struct { + config + fields []string + hooks []Hook + mutation *ControlHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (chuo *ControlHistoryUpdateOne) SetUpdatedAt(t time.Time) *ControlHistoryUpdateOne { + chuo.mutation.SetUpdatedAt(t) + return chuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (chuo *ControlHistoryUpdateOne) ClearUpdatedAt() *ControlHistoryUpdateOne { + chuo.mutation.ClearUpdatedAt() + return chuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (chuo *ControlHistoryUpdateOne) SetUpdatedBy(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetUpdatedBy(s) + return chuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableUpdatedBy(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetUpdatedBy(*s) + } + return chuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (chuo *ControlHistoryUpdateOne) ClearUpdatedBy() *ControlHistoryUpdateOne { + chuo.mutation.ClearUpdatedBy() + return chuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (chuo *ControlHistoryUpdateOne) SetDeletedAt(t time.Time) *ControlHistoryUpdateOne { + chuo.mutation.SetDeletedAt(t) + return chuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableDeletedAt(t *time.Time) *ControlHistoryUpdateOne { + if t != nil { + chuo.SetDeletedAt(*t) + } + return chuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (chuo *ControlHistoryUpdateOne) ClearDeletedAt() *ControlHistoryUpdateOne { + chuo.mutation.ClearDeletedAt() + return chuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (chuo *ControlHistoryUpdateOne) SetDeletedBy(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetDeletedBy(s) + return chuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableDeletedBy(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetDeletedBy(*s) + } + return chuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (chuo *ControlHistoryUpdateOne) ClearDeletedBy() *ControlHistoryUpdateOne { + chuo.mutation.ClearDeletedBy() + return chuo +} + +// SetTags sets the "tags" field. +func (chuo *ControlHistoryUpdateOne) SetTags(s []string) *ControlHistoryUpdateOne { + chuo.mutation.SetTags(s) + return chuo +} + +// AppendTags appends s to the "tags" field. +func (chuo *ControlHistoryUpdateOne) AppendTags(s []string) *ControlHistoryUpdateOne { + chuo.mutation.AppendTags(s) + return chuo +} + +// ClearTags clears the value of the "tags" field. +func (chuo *ControlHistoryUpdateOne) ClearTags() *ControlHistoryUpdateOne { + chuo.mutation.ClearTags() + return chuo +} + +// SetName sets the "name" field. +func (chuo *ControlHistoryUpdateOne) SetName(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetName(s) + return chuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableName(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetName(*s) + } + return chuo +} + +// SetDescription sets the "description" field. +func (chuo *ControlHistoryUpdateOne) SetDescription(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetDescription(s) + return chuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableDescription(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetDescription(*s) + } + return chuo +} + +// ClearDescription clears the value of the "description" field. +func (chuo *ControlHistoryUpdateOne) ClearDescription() *ControlHistoryUpdateOne { + chuo.mutation.ClearDescription() + return chuo +} + +// SetStatus sets the "status" field. +func (chuo *ControlHistoryUpdateOne) SetStatus(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetStatus(s) + return chuo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableStatus(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetStatus(*s) + } + return chuo +} + +// ClearStatus clears the value of the "status" field. +func (chuo *ControlHistoryUpdateOne) ClearStatus() *ControlHistoryUpdateOne { + chuo.mutation.ClearStatus() + return chuo +} + +// SetControlType sets the "control_type" field. +func (chuo *ControlHistoryUpdateOne) SetControlType(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetControlType(s) + return chuo +} + +// SetNillableControlType sets the "control_type" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableControlType(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetControlType(*s) + } + return chuo +} + +// ClearControlType clears the value of the "control_type" field. +func (chuo *ControlHistoryUpdateOne) ClearControlType() *ControlHistoryUpdateOne { + chuo.mutation.ClearControlType() + return chuo +} + +// SetVersion sets the "version" field. +func (chuo *ControlHistoryUpdateOne) SetVersion(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetVersion(s) + return chuo +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableVersion(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetVersion(*s) + } + return chuo +} + +// ClearVersion clears the value of the "version" field. +func (chuo *ControlHistoryUpdateOne) ClearVersion() *ControlHistoryUpdateOne { + chuo.mutation.ClearVersion() + return chuo +} + +// SetControlNumber sets the "control_number" field. +func (chuo *ControlHistoryUpdateOne) SetControlNumber(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetControlNumber(s) + return chuo +} + +// SetNillableControlNumber sets the "control_number" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableControlNumber(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetControlNumber(*s) + } + return chuo +} + +// ClearControlNumber clears the value of the "control_number" field. +func (chuo *ControlHistoryUpdateOne) ClearControlNumber() *ControlHistoryUpdateOne { + chuo.mutation.ClearControlNumber() + return chuo +} + +// SetFamily sets the "family" field. +func (chuo *ControlHistoryUpdateOne) SetFamily(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetFamily(s) + return chuo +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableFamily(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetFamily(*s) + } + return chuo +} + +// ClearFamily clears the value of the "family" field. +func (chuo *ControlHistoryUpdateOne) ClearFamily() *ControlHistoryUpdateOne { + chuo.mutation.ClearFamily() + return chuo +} + +// SetClass sets the "class" field. +func (chuo *ControlHistoryUpdateOne) SetClass(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetClass(s) + return chuo +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableClass(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetClass(*s) + } + return chuo +} + +// ClearClass clears the value of the "class" field. +func (chuo *ControlHistoryUpdateOne) ClearClass() *ControlHistoryUpdateOne { + chuo.mutation.ClearClass() + return chuo +} + +// SetSource sets the "source" field. +func (chuo *ControlHistoryUpdateOne) SetSource(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetSource(s) + return chuo +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableSource(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetSource(*s) + } + return chuo +} + +// ClearSource clears the value of the "source" field. +func (chuo *ControlHistoryUpdateOne) ClearSource() *ControlHistoryUpdateOne { + chuo.mutation.ClearSource() + return chuo +} + +// SetSatisfies sets the "satisfies" field. +func (chuo *ControlHistoryUpdateOne) SetSatisfies(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetSatisfies(s) + return chuo +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableSatisfies(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetSatisfies(*s) + } + return chuo +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (chuo *ControlHistoryUpdateOne) ClearSatisfies() *ControlHistoryUpdateOne { + chuo.mutation.ClearSatisfies() + return chuo +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (chuo *ControlHistoryUpdateOne) SetMappedFrameworks(s string) *ControlHistoryUpdateOne { + chuo.mutation.SetMappedFrameworks(s) + return chuo +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (chuo *ControlHistoryUpdateOne) SetNillableMappedFrameworks(s *string) *ControlHistoryUpdateOne { + if s != nil { + chuo.SetMappedFrameworks(*s) + } + return chuo +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (chuo *ControlHistoryUpdateOne) ClearMappedFrameworks() *ControlHistoryUpdateOne { + chuo.mutation.ClearMappedFrameworks() + return chuo +} + +// SetDetails sets the "details" field. +func (chuo *ControlHistoryUpdateOne) SetDetails(m map[string]interface{}) *ControlHistoryUpdateOne { + chuo.mutation.SetDetails(m) + return chuo +} + +// ClearDetails clears the value of the "details" field. +func (chuo *ControlHistoryUpdateOne) ClearDetails() *ControlHistoryUpdateOne { + chuo.mutation.ClearDetails() + return chuo +} + +// Mutation returns the ControlHistoryMutation object of the builder. +func (chuo *ControlHistoryUpdateOne) Mutation() *ControlHistoryMutation { + return chuo.mutation +} + +// Where appends a list predicates to the ControlHistoryUpdate builder. +func (chuo *ControlHistoryUpdateOne) Where(ps ...predicate.ControlHistory) *ControlHistoryUpdateOne { + chuo.mutation.Where(ps...) + return chuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (chuo *ControlHistoryUpdateOne) Select(field string, fields ...string) *ControlHistoryUpdateOne { + chuo.fields = append([]string{field}, fields...) + return chuo +} + +// Save executes the query and returns the updated ControlHistory entity. +func (chuo *ControlHistoryUpdateOne) Save(ctx context.Context) (*ControlHistory, error) { + chuo.defaults() + return withHooks(ctx, chuo.sqlSave, chuo.mutation, chuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (chuo *ControlHistoryUpdateOne) SaveX(ctx context.Context) *ControlHistory { + node, err := chuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (chuo *ControlHistoryUpdateOne) Exec(ctx context.Context) error { + _, err := chuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (chuo *ControlHistoryUpdateOne) ExecX(ctx context.Context) { + if err := chuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (chuo *ControlHistoryUpdateOne) defaults() { + if _, ok := chuo.mutation.UpdatedAt(); !ok && !chuo.mutation.UpdatedAtCleared() { + v := controlhistory.UpdateDefaultUpdatedAt() + chuo.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (chuo *ControlHistoryUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ControlHistoryUpdateOne { + chuo.modifiers = append(chuo.modifiers, modifiers...) + return chuo +} + +func (chuo *ControlHistoryUpdateOne) sqlSave(ctx context.Context) (_node *ControlHistory, err error) { + _spec := sqlgraph.NewUpdateSpec(controlhistory.Table, controlhistory.Columns, sqlgraph.NewFieldSpec(controlhistory.FieldID, field.TypeString)) + id, ok := chuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "ControlHistory.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := chuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, controlhistory.FieldID) + for _, f := range fields { + if !controlhistory.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != controlhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := chuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if chuo.mutation.RefCleared() { + _spec.ClearField(controlhistory.FieldRef, field.TypeString) + } + if chuo.mutation.CreatedAtCleared() { + _spec.ClearField(controlhistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := chuo.mutation.UpdatedAt(); ok { + _spec.SetField(controlhistory.FieldUpdatedAt, field.TypeTime, value) + } + if chuo.mutation.UpdatedAtCleared() { + _spec.ClearField(controlhistory.FieldUpdatedAt, field.TypeTime) + } + if chuo.mutation.CreatedByCleared() { + _spec.ClearField(controlhistory.FieldCreatedBy, field.TypeString) + } + if value, ok := chuo.mutation.UpdatedBy(); ok { + _spec.SetField(controlhistory.FieldUpdatedBy, field.TypeString, value) + } + if chuo.mutation.UpdatedByCleared() { + _spec.ClearField(controlhistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := chuo.mutation.DeletedAt(); ok { + _spec.SetField(controlhistory.FieldDeletedAt, field.TypeTime, value) + } + if chuo.mutation.DeletedAtCleared() { + _spec.ClearField(controlhistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := chuo.mutation.DeletedBy(); ok { + _spec.SetField(controlhistory.FieldDeletedBy, field.TypeString, value) + } + if chuo.mutation.DeletedByCleared() { + _spec.ClearField(controlhistory.FieldDeletedBy, field.TypeString) + } + if value, ok := chuo.mutation.Tags(); ok { + _spec.SetField(controlhistory.FieldTags, field.TypeJSON, value) + } + if value, ok := chuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, controlhistory.FieldTags, value) + }) + } + if chuo.mutation.TagsCleared() { + _spec.ClearField(controlhistory.FieldTags, field.TypeJSON) + } + if value, ok := chuo.mutation.Name(); ok { + _spec.SetField(controlhistory.FieldName, field.TypeString, value) + } + if value, ok := chuo.mutation.Description(); ok { + _spec.SetField(controlhistory.FieldDescription, field.TypeString, value) + } + if chuo.mutation.DescriptionCleared() { + _spec.ClearField(controlhistory.FieldDescription, field.TypeString) + } + if value, ok := chuo.mutation.Status(); ok { + _spec.SetField(controlhistory.FieldStatus, field.TypeString, value) + } + if chuo.mutation.StatusCleared() { + _spec.ClearField(controlhistory.FieldStatus, field.TypeString) + } + if value, ok := chuo.mutation.ControlType(); ok { + _spec.SetField(controlhistory.FieldControlType, field.TypeString, value) + } + if chuo.mutation.ControlTypeCleared() { + _spec.ClearField(controlhistory.FieldControlType, field.TypeString) + } + if value, ok := chuo.mutation.Version(); ok { + _spec.SetField(controlhistory.FieldVersion, field.TypeString, value) + } + if chuo.mutation.VersionCleared() { + _spec.ClearField(controlhistory.FieldVersion, field.TypeString) + } + if value, ok := chuo.mutation.ControlNumber(); ok { + _spec.SetField(controlhistory.FieldControlNumber, field.TypeString, value) + } + if chuo.mutation.ControlNumberCleared() { + _spec.ClearField(controlhistory.FieldControlNumber, field.TypeString) + } + if value, ok := chuo.mutation.Family(); ok { + _spec.SetField(controlhistory.FieldFamily, field.TypeString, value) + } + if chuo.mutation.FamilyCleared() { + _spec.ClearField(controlhistory.FieldFamily, field.TypeString) + } + if value, ok := chuo.mutation.Class(); ok { + _spec.SetField(controlhistory.FieldClass, field.TypeString, value) + } + if chuo.mutation.ClassCleared() { + _spec.ClearField(controlhistory.FieldClass, field.TypeString) + } + if value, ok := chuo.mutation.Source(); ok { + _spec.SetField(controlhistory.FieldSource, field.TypeString, value) + } + if chuo.mutation.SourceCleared() { + _spec.ClearField(controlhistory.FieldSource, field.TypeString) + } + if value, ok := chuo.mutation.Satisfies(); ok { + _spec.SetField(controlhistory.FieldSatisfies, field.TypeString, value) + } + if chuo.mutation.SatisfiesCleared() { + _spec.ClearField(controlhistory.FieldSatisfies, field.TypeString) + } + if value, ok := chuo.mutation.MappedFrameworks(); ok { + _spec.SetField(controlhistory.FieldMappedFrameworks, field.TypeString, value) + } + if chuo.mutation.MappedFrameworksCleared() { + _spec.ClearField(controlhistory.FieldMappedFrameworks, field.TypeString) + } + if value, ok := chuo.mutation.Details(); ok { + _spec.SetField(controlhistory.FieldDetails, field.TypeJSON, value) + } + if chuo.mutation.DetailsCleared() { + _spec.ClearField(controlhistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = chuo.schemaConfig.ControlHistory + ctx = internal.NewSchemaConfigContext(ctx, chuo.schemaConfig) + _spec.AddModifiers(chuo.modifiers...) + _node = &ControlHistory{config: chuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, chuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{controlhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + chuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/controlobjective.go b/internal/ent/generated/controlobjective.go new file mode 100644 index 00000000..f83e5b3c --- /dev/null +++ b/internal/ent/generated/controlobjective.go @@ -0,0 +1,619 @@ +// 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/internal/ent/generated/controlobjective" +) + +// ControlObjective is the model entity for the ControlObjective schema. +type ControlObjective 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the control objective + Name string `json:"name,omitempty"` + // description of the control objective + Description string `json:"description,omitempty"` + // status of the control objective + Status string `json:"status,omitempty"` + // type of the control objective + ControlObjectiveType string `json:"control_objective_type,omitempty"` + // version of the control objective + Version string `json:"version,omitempty"` + // number of the control objective + ControlNumber string `json:"control_number,omitempty"` + // family of the control objective + Family string `json:"family,omitempty"` + // class associated with the control objective + Class string `json:"class,omitempty"` + // source of the control objective, e.g. framework, template, user-defined, etc. + Source string `json:"source,omitempty"` + // mapped frameworks + MappedFrameworks string `json:"mapped_frameworks,omitempty"` + // json data including details of the control objective + Details map[string]interface{} `json:"details,omitempty"` + // Edges holds the relations/edges for other nodes in the graph. + // The values are being populated by the ControlObjectiveQuery when eager-loading is set. + Edges ControlObjectiveEdges `json:"edges"` + control_controlobjectives *string + selectValues sql.SelectValues +} + +// ControlObjectiveEdges holds the relations/edges for other nodes in the graph. +type ControlObjectiveEdges struct { + // Policy holds the value of the policy edge. + Policy []*InternalPolicy `json:"policy,omitempty"` + // Controls holds the value of the controls edge. + Controls []*Control `json:"controls,omitempty"` + // Procedures holds the value of the procedures edge. + Procedures []*Procedure `json:"procedures,omitempty"` + // Risks holds the value of the risks edge. + Risks []*Risk `json:"risks,omitempty"` + // Subcontrols holds the value of the subcontrols edge. + Subcontrols []*Subcontrol `json:"subcontrols,omitempty"` + // Standard holds the value of the standard edge. + Standard []*Standard `json:"standard,omitempty"` + // Narratives holds the value of the narratives edge. + Narratives []*Narrative `json:"narratives,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 + + namedPolicy map[string][]*InternalPolicy + namedControls map[string][]*Control + namedProcedures map[string][]*Procedure + namedRisks map[string][]*Risk + namedSubcontrols map[string][]*Subcontrol + namedStandard map[string][]*Standard + namedNarratives map[string][]*Narrative +} + +// PolicyOrErr returns the Policy value or an error if the edge +// was not loaded in eager-loading. +func (e ControlObjectiveEdges) PolicyOrErr() ([]*InternalPolicy, error) { + if e.loadedTypes[0] { + return e.Policy, nil + } + return nil, &NotLoadedError{edge: "policy"} +} + +// ControlsOrErr returns the Controls value or an error if the edge +// was not loaded in eager-loading. +func (e ControlObjectiveEdges) ControlsOrErr() ([]*Control, error) { + if e.loadedTypes[1] { + return e.Controls, nil + } + return nil, &NotLoadedError{edge: "controls"} +} + +// ProceduresOrErr returns the Procedures value or an error if the edge +// was not loaded in eager-loading. +func (e ControlObjectiveEdges) ProceduresOrErr() ([]*Procedure, error) { + if e.loadedTypes[2] { + return e.Procedures, nil + } + return nil, &NotLoadedError{edge: "procedures"} +} + +// RisksOrErr returns the Risks value or an error if the edge +// was not loaded in eager-loading. +func (e ControlObjectiveEdges) RisksOrErr() ([]*Risk, error) { + if e.loadedTypes[3] { + return e.Risks, nil + } + return nil, &NotLoadedError{edge: "risks"} +} + +// SubcontrolsOrErr returns the Subcontrols value or an error if the edge +// was not loaded in eager-loading. +func (e ControlObjectiveEdges) SubcontrolsOrErr() ([]*Subcontrol, error) { + if e.loadedTypes[4] { + return e.Subcontrols, nil + } + return nil, &NotLoadedError{edge: "subcontrols"} +} + +// StandardOrErr returns the Standard value or an error if the edge +// was not loaded in eager-loading. +func (e ControlObjectiveEdges) StandardOrErr() ([]*Standard, error) { + if e.loadedTypes[5] { + return e.Standard, nil + } + return nil, &NotLoadedError{edge: "standard"} +} + +// NarrativesOrErr returns the Narratives value or an error if the edge +// was not loaded in eager-loading. +func (e ControlObjectiveEdges) NarrativesOrErr() ([]*Narrative, error) { + if e.loadedTypes[6] { + return e.Narratives, nil + } + return nil, &NotLoadedError{edge: "narratives"} +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*ControlObjective) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case controlobjective.FieldTags, controlobjective.FieldDetails: + values[i] = new([]byte) + case controlobjective.FieldID, controlobjective.FieldCreatedBy, controlobjective.FieldUpdatedBy, controlobjective.FieldDeletedBy, controlobjective.FieldMappingID, controlobjective.FieldName, controlobjective.FieldDescription, controlobjective.FieldStatus, controlobjective.FieldControlObjectiveType, controlobjective.FieldVersion, controlobjective.FieldControlNumber, controlobjective.FieldFamily, controlobjective.FieldClass, controlobjective.FieldSource, controlobjective.FieldMappedFrameworks: + values[i] = new(sql.NullString) + case controlobjective.FieldCreatedAt, controlobjective.FieldUpdatedAt, controlobjective.FieldDeletedAt: + values[i] = new(sql.NullTime) + case controlobjective.ForeignKeys[0]: // control_controlobjectives + values[i] = new(sql.NullString) + default: + values[i] = new(sql.UnknownType) + } + } + return values, nil +} + +// assignValues assigns the values that were returned from sql.Rows (after scanning) +// to the ControlObjective fields. +func (co *ControlObjective) 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 controlobjective.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + co.ID = value.String + } + case controlobjective.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 { + co.CreatedAt = value.Time + } + case controlobjective.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 { + co.UpdatedAt = value.Time + } + case controlobjective.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 { + co.CreatedBy = value.String + } + case controlobjective.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 { + co.UpdatedBy = value.String + } + case controlobjective.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 { + co.DeletedAt = value.Time + } + case controlobjective.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 { + co.DeletedBy = value.String + } + case controlobjective.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + co.MappingID = value.String + } + case controlobjective.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, &co.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case controlobjective.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + co.Name = value.String + } + case controlobjective.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + co.Description = value.String + } + case controlobjective.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + co.Status = value.String + } + case controlobjective.FieldControlObjectiveType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_objective_type", values[i]) + } else if value.Valid { + co.ControlObjectiveType = value.String + } + case controlobjective.FieldVersion: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field version", values[i]) + } else if value.Valid { + co.Version = value.String + } + case controlobjective.FieldControlNumber: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_number", values[i]) + } else if value.Valid { + co.ControlNumber = value.String + } + case controlobjective.FieldFamily: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field family", values[i]) + } else if value.Valid { + co.Family = value.String + } + case controlobjective.FieldClass: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field class", values[i]) + } else if value.Valid { + co.Class = value.String + } + case controlobjective.FieldSource: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field source", values[i]) + } else if value.Valid { + co.Source = value.String + } + case controlobjective.FieldMappedFrameworks: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapped_frameworks", values[i]) + } else if value.Valid { + co.MappedFrameworks = value.String + } + case controlobjective.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &co.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + case controlobjective.ForeignKeys[0]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_controlobjectives", values[i]) + } else if value.Valid { + co.control_controlobjectives = new(string) + *co.control_controlobjectives = value.String + } + default: + co.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the ControlObjective. +// This includes values selected through modifiers, order, etc. +func (co *ControlObjective) Value(name string) (ent.Value, error) { + return co.selectValues.Get(name) +} + +// QueryPolicy queries the "policy" edge of the ControlObjective entity. +func (co *ControlObjective) QueryPolicy() *InternalPolicyQuery { + return NewControlObjectiveClient(co.config).QueryPolicy(co) +} + +// QueryControls queries the "controls" edge of the ControlObjective entity. +func (co *ControlObjective) QueryControls() *ControlQuery { + return NewControlObjectiveClient(co.config).QueryControls(co) +} + +// QueryProcedures queries the "procedures" edge of the ControlObjective entity. +func (co *ControlObjective) QueryProcedures() *ProcedureQuery { + return NewControlObjectiveClient(co.config).QueryProcedures(co) +} + +// QueryRisks queries the "risks" edge of the ControlObjective entity. +func (co *ControlObjective) QueryRisks() *RiskQuery { + return NewControlObjectiveClient(co.config).QueryRisks(co) +} + +// QuerySubcontrols queries the "subcontrols" edge of the ControlObjective entity. +func (co *ControlObjective) QuerySubcontrols() *SubcontrolQuery { + return NewControlObjectiveClient(co.config).QuerySubcontrols(co) +} + +// QueryStandard queries the "standard" edge of the ControlObjective entity. +func (co *ControlObjective) QueryStandard() *StandardQuery { + return NewControlObjectiveClient(co.config).QueryStandard(co) +} + +// QueryNarratives queries the "narratives" edge of the ControlObjective entity. +func (co *ControlObjective) QueryNarratives() *NarrativeQuery { + return NewControlObjectiveClient(co.config).QueryNarratives(co) +} + +// Update returns a builder for updating this ControlObjective. +// Note that you need to call ControlObjective.Unwrap() before calling this method if this ControlObjective +// was returned from a transaction, and the transaction was committed or rolled back. +func (co *ControlObjective) Update() *ControlObjectiveUpdateOne { + return NewControlObjectiveClient(co.config).UpdateOne(co) +} + +// Unwrap unwraps the ControlObjective 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 (co *ControlObjective) Unwrap() *ControlObjective { + _tx, ok := co.config.driver.(*txDriver) + if !ok { + panic("generated: ControlObjective is not a transactional entity") + } + co.config.driver = _tx.drv + return co +} + +// String implements the fmt.Stringer. +func (co *ControlObjective) String() string { + var builder strings.Builder + builder.WriteString("ControlObjective(") + builder.WriteString(fmt.Sprintf("id=%v, ", co.ID)) + builder.WriteString("created_at=") + builder.WriteString(co.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(co.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(co.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(co.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(co.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(co.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(co.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", co.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(co.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(co.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(co.Status) + builder.WriteString(", ") + builder.WriteString("control_objective_type=") + builder.WriteString(co.ControlObjectiveType) + builder.WriteString(", ") + builder.WriteString("version=") + builder.WriteString(co.Version) + builder.WriteString(", ") + builder.WriteString("control_number=") + builder.WriteString(co.ControlNumber) + builder.WriteString(", ") + builder.WriteString("family=") + builder.WriteString(co.Family) + builder.WriteString(", ") + builder.WriteString("class=") + builder.WriteString(co.Class) + builder.WriteString(", ") + builder.WriteString("source=") + builder.WriteString(co.Source) + builder.WriteString(", ") + builder.WriteString("mapped_frameworks=") + builder.WriteString(co.MappedFrameworks) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", co.Details)) + builder.WriteByte(')') + return builder.String() +} + +// NamedPolicy returns the Policy named value or an error if the edge was not +// loaded in eager-loading with this name. +func (co *ControlObjective) NamedPolicy(name string) ([]*InternalPolicy, error) { + if co.Edges.namedPolicy == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := co.Edges.namedPolicy[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (co *ControlObjective) appendNamedPolicy(name string, edges ...*InternalPolicy) { + if co.Edges.namedPolicy == nil { + co.Edges.namedPolicy = make(map[string][]*InternalPolicy) + } + if len(edges) == 0 { + co.Edges.namedPolicy[name] = []*InternalPolicy{} + } else { + co.Edges.namedPolicy[name] = append(co.Edges.namedPolicy[name], edges...) + } +} + +// NamedControls returns the Controls named value or an error if the edge was not +// loaded in eager-loading with this name. +func (co *ControlObjective) NamedControls(name string) ([]*Control, error) { + if co.Edges.namedControls == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := co.Edges.namedControls[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (co *ControlObjective) appendNamedControls(name string, edges ...*Control) { + if co.Edges.namedControls == nil { + co.Edges.namedControls = make(map[string][]*Control) + } + if len(edges) == 0 { + co.Edges.namedControls[name] = []*Control{} + } else { + co.Edges.namedControls[name] = append(co.Edges.namedControls[name], edges...) + } +} + +// NamedProcedures returns the Procedures named value or an error if the edge was not +// loaded in eager-loading with this name. +func (co *ControlObjective) NamedProcedures(name string) ([]*Procedure, error) { + if co.Edges.namedProcedures == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := co.Edges.namedProcedures[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (co *ControlObjective) appendNamedProcedures(name string, edges ...*Procedure) { + if co.Edges.namedProcedures == nil { + co.Edges.namedProcedures = make(map[string][]*Procedure) + } + if len(edges) == 0 { + co.Edges.namedProcedures[name] = []*Procedure{} + } else { + co.Edges.namedProcedures[name] = append(co.Edges.namedProcedures[name], edges...) + } +} + +// NamedRisks returns the Risks named value or an error if the edge was not +// loaded in eager-loading with this name. +func (co *ControlObjective) NamedRisks(name string) ([]*Risk, error) { + if co.Edges.namedRisks == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := co.Edges.namedRisks[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (co *ControlObjective) appendNamedRisks(name string, edges ...*Risk) { + if co.Edges.namedRisks == nil { + co.Edges.namedRisks = make(map[string][]*Risk) + } + if len(edges) == 0 { + co.Edges.namedRisks[name] = []*Risk{} + } else { + co.Edges.namedRisks[name] = append(co.Edges.namedRisks[name], edges...) + } +} + +// NamedSubcontrols returns the Subcontrols named value or an error if the edge was not +// loaded in eager-loading with this name. +func (co *ControlObjective) NamedSubcontrols(name string) ([]*Subcontrol, error) { + if co.Edges.namedSubcontrols == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := co.Edges.namedSubcontrols[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (co *ControlObjective) appendNamedSubcontrols(name string, edges ...*Subcontrol) { + if co.Edges.namedSubcontrols == nil { + co.Edges.namedSubcontrols = make(map[string][]*Subcontrol) + } + if len(edges) == 0 { + co.Edges.namedSubcontrols[name] = []*Subcontrol{} + } else { + co.Edges.namedSubcontrols[name] = append(co.Edges.namedSubcontrols[name], edges...) + } +} + +// NamedStandard returns the Standard named value or an error if the edge was not +// loaded in eager-loading with this name. +func (co *ControlObjective) NamedStandard(name string) ([]*Standard, error) { + if co.Edges.namedStandard == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := co.Edges.namedStandard[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (co *ControlObjective) appendNamedStandard(name string, edges ...*Standard) { + if co.Edges.namedStandard == nil { + co.Edges.namedStandard = make(map[string][]*Standard) + } + if len(edges) == 0 { + co.Edges.namedStandard[name] = []*Standard{} + } else { + co.Edges.namedStandard[name] = append(co.Edges.namedStandard[name], edges...) + } +} + +// NamedNarratives returns the Narratives named value or an error if the edge was not +// loaded in eager-loading with this name. +func (co *ControlObjective) NamedNarratives(name string) ([]*Narrative, error) { + if co.Edges.namedNarratives == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := co.Edges.namedNarratives[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (co *ControlObjective) appendNamedNarratives(name string, edges ...*Narrative) { + if co.Edges.namedNarratives == nil { + co.Edges.namedNarratives = make(map[string][]*Narrative) + } + if len(edges) == 0 { + co.Edges.namedNarratives[name] = []*Narrative{} + } else { + co.Edges.namedNarratives[name] = append(co.Edges.namedNarratives[name], edges...) + } +} + +// ControlObjectives is a parsable slice of ControlObjective. +type ControlObjectives []*ControlObjective diff --git a/internal/ent/generated/controlobjective/controlobjective.go b/internal/ent/generated/controlobjective/controlobjective.go new file mode 100644 index 00000000..2feab0d7 --- /dev/null +++ b/internal/ent/generated/controlobjective/controlobjective.go @@ -0,0 +1,434 @@ +// Code generated by ent, DO NOT EDIT. + +package controlobjective + +import ( + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" +) + +const ( + // Label holds the string label denoting the controlobjective type in the database. + Label = "control_objective" + // 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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldControlObjectiveType holds the string denoting the control_objective_type field in the database. + FieldControlObjectiveType = "control_objective_type" + // FieldVersion holds the string denoting the version field in the database. + FieldVersion = "version" + // FieldControlNumber holds the string denoting the control_number field in the database. + FieldControlNumber = "control_number" + // FieldFamily holds the string denoting the family field in the database. + FieldFamily = "family" + // FieldClass holds the string denoting the class field in the database. + FieldClass = "class" + // FieldSource holds the string denoting the source field in the database. + FieldSource = "source" + // FieldMappedFrameworks holds the string denoting the mapped_frameworks field in the database. + FieldMappedFrameworks = "mapped_frameworks" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // EdgePolicy holds the string denoting the policy edge name in mutations. + EdgePolicy = "policy" + // EdgeControls holds the string denoting the controls edge name in mutations. + EdgeControls = "controls" + // EdgeProcedures holds the string denoting the procedures edge name in mutations. + EdgeProcedures = "procedures" + // EdgeRisks holds the string denoting the risks edge name in mutations. + EdgeRisks = "risks" + // EdgeSubcontrols holds the string denoting the subcontrols edge name in mutations. + EdgeSubcontrols = "subcontrols" + // EdgeStandard holds the string denoting the standard edge name in mutations. + EdgeStandard = "standard" + // EdgeNarratives holds the string denoting the narratives edge name in mutations. + EdgeNarratives = "narratives" + // Table holds the table name of the controlobjective in the database. + Table = "control_objectives" + // PolicyTable is the table that holds the policy relation/edge. The primary key declared below. + PolicyTable = "internal_policy_controlobjectives" + // PolicyInverseTable is the table name for the InternalPolicy entity. + // It exists in this package in order to avoid circular dependency with the "internalpolicy" package. + PolicyInverseTable = "internal_policies" + // ControlsTable is the table that holds the controls relation/edge. + ControlsTable = "controls" + // ControlsInverseTable is the table name for the Control entity. + // It exists in this package in order to avoid circular dependency with the "control" package. + ControlsInverseTable = "controls" + // ControlsColumn is the table column denoting the controls relation/edge. + ControlsColumn = "control_objective_controls" + // ProceduresTable is the table that holds the procedures relation/edge. + ProceduresTable = "procedures" + // ProceduresInverseTable is the table name for the Procedure entity. + // It exists in this package in order to avoid circular dependency with the "procedure" package. + ProceduresInverseTable = "procedures" + // ProceduresColumn is the table column denoting the procedures relation/edge. + ProceduresColumn = "control_objective_procedures" + // RisksTable is the table that holds the risks relation/edge. + RisksTable = "risks" + // RisksInverseTable is the table name for the Risk entity. + // It exists in this package in order to avoid circular dependency with the "risk" package. + RisksInverseTable = "risks" + // RisksColumn is the table column denoting the risks relation/edge. + RisksColumn = "control_objective_risks" + // SubcontrolsTable is the table that holds the subcontrols relation/edge. + SubcontrolsTable = "subcontrols" + // SubcontrolsInverseTable is the table name for the Subcontrol entity. + // It exists in this package in order to avoid circular dependency with the "subcontrol" package. + SubcontrolsInverseTable = "subcontrols" + // SubcontrolsColumn is the table column denoting the subcontrols relation/edge. + SubcontrolsColumn = "control_objective_subcontrols" + // StandardTable is the table that holds the standard relation/edge. The primary key declared below. + StandardTable = "standard_controlobjectives" + // StandardInverseTable is the table name for the Standard entity. + // It exists in this package in order to avoid circular dependency with the "standard" package. + StandardInverseTable = "standards" + // NarrativesTable is the table that holds the narratives relation/edge. The primary key declared below. + NarrativesTable = "control_objective_narratives" + // NarrativesInverseTable is the table name for the Narrative entity. + // It exists in this package in order to avoid circular dependency with the "narrative" package. + NarrativesInverseTable = "narratives" +) + +// Columns holds all SQL columns for controlobjective fields. +var Columns = []string{ + FieldID, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldControlObjectiveType, + FieldVersion, + FieldControlNumber, + FieldFamily, + FieldClass, + FieldSource, + FieldMappedFrameworks, + FieldDetails, +} + +// ForeignKeys holds the SQL foreign-keys that are owned by the "control_objectives" +// table and are not defined as standalone fields in the schema. +var ForeignKeys = []string{ + "control_controlobjectives", +} + +var ( + // PolicyPrimaryKey and PolicyColumn2 are the table columns denoting the + // primary key for the policy relation (M2M). + PolicyPrimaryKey = []string{"internal_policy_id", "control_objective_id"} + // StandardPrimaryKey and StandardColumn2 are the table columns denoting the + // primary key for the standard relation (M2M). + StandardPrimaryKey = []string{"standard_id", "control_objective_id"} + // NarrativesPrimaryKey and NarrativesColumn2 are the table columns denoting the + // primary key for the narratives relation (M2M). + NarrativesPrimaryKey = []string{"control_objective_id", "narrative_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 + } + } + for i := range ForeignKeys { + if column == ForeignKeys[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/internal/ent/generated/runtime" +var ( + Hooks [2]ent.Hook + Interceptors [1]ent.Interceptor + // 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 + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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 +) + +// OrderOption defines the ordering options for the ControlObjective 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByControlObjectiveType orders the results by the control_objective_type field. +func ByControlObjectiveType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldControlObjectiveType, opts...).ToFunc() +} + +// ByVersion orders the results by the version field. +func ByVersion(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldVersion, opts...).ToFunc() +} + +// ByControlNumber orders the results by the control_number field. +func ByControlNumber(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldControlNumber, opts...).ToFunc() +} + +// ByFamily orders the results by the family field. +func ByFamily(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldFamily, opts...).ToFunc() +} + +// ByClass orders the results by the class field. +func ByClass(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldClass, opts...).ToFunc() +} + +// BySource orders the results by the source field. +func BySource(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSource, opts...).ToFunc() +} + +// ByMappedFrameworks orders the results by the mapped_frameworks field. +func ByMappedFrameworks(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappedFrameworks, opts...).ToFunc() +} + +// ByPolicyCount orders the results by policy count. +func ByPolicyCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newPolicyStep(), opts...) + } +} + +// ByPolicy orders the results by policy terms. +func ByPolicy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newPolicyStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByControlsCount orders the results by controls count. +func ByControlsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlsStep(), opts...) + } +} + +// ByControls orders the results by controls terms. +func ByControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByProceduresCount orders the results by procedures count. +func ByProceduresCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newProceduresStep(), opts...) + } +} + +// ByProcedures orders the results by procedures terms. +func ByProcedures(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newProceduresStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByRisksCount orders the results by risks count. +func ByRisksCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newRisksStep(), opts...) + } +} + +// ByRisks orders the results by risks terms. +func ByRisks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newRisksStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// BySubcontrolsCount orders the results by subcontrols count. +func BySubcontrolsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newSubcontrolsStep(), opts...) + } +} + +// BySubcontrols orders the results by subcontrols terms. +func BySubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newSubcontrolsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByStandardCount orders the results by standard count. +func ByStandardCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newStandardStep(), opts...) + } +} + +// ByStandard orders the results by standard terms. +func ByStandard(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newStandardStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByNarrativesCount orders the results by narratives count. +func ByNarrativesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newNarrativesStep(), opts...) + } +} + +// ByNarratives orders the results by narratives terms. +func ByNarratives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newNarrativesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} +func newPolicyStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(PolicyInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, PolicyTable, PolicyPrimaryKey...), + ) +} +func newControlsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ControlsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ControlsTable, ControlsColumn), + ) +} +func newProceduresStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ProceduresInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ProceduresTable, ProceduresColumn), + ) +} +func newRisksStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(RisksInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, RisksTable, RisksColumn), + ) +} +func newSubcontrolsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(SubcontrolsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, SubcontrolsTable, SubcontrolsColumn), + ) +} +func newStandardStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(StandardInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, StandardTable, StandardPrimaryKey...), + ) +} +func newNarrativesStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(NarrativesInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, NarrativesTable, NarrativesPrimaryKey...), + ) +} diff --git a/internal/ent/generated/controlobjective/where.go b/internal/ent/generated/controlobjective/where.go new file mode 100644 index 00000000..67245000 --- /dev/null +++ b/internal/ent/generated/controlobjective/where.go @@ -0,0 +1,1571 @@ +// Code generated by ent, DO NOT EDIT. + +package controlobjective + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.ControlObjective { + return predicate.ControlObjective(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.ControlObjective { + return predicate.ControlObjective(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.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldStatus, v)) +} + +// ControlObjectiveType applies equality check predicate on the "control_objective_type" field. It's identical to ControlObjectiveTypeEQ. +func ControlObjectiveType(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldControlObjectiveType, v)) +} + +// Version applies equality check predicate on the "version" field. It's identical to VersionEQ. +func Version(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldVersion, v)) +} + +// ControlNumber applies equality check predicate on the "control_number" field. It's identical to ControlNumberEQ. +func ControlNumber(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldControlNumber, v)) +} + +// Family applies equality check predicate on the "family" field. It's identical to FamilyEQ. +func Family(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldFamily, v)) +} + +// Class applies equality check predicate on the "class" field. It's identical to ClassEQ. +func Class(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldClass, v)) +} + +// Source applies equality check predicate on the "source" field. It's identical to SourceEQ. +func Source(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldSource, v)) +} + +// MappedFrameworks applies equality check predicate on the "mapped_frameworks" field. It's identical to MappedFrameworksEQ. +func MappedFrameworks(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldMappedFrameworks, v)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldStatus, v)) +} + +// ControlObjectiveTypeEQ applies the EQ predicate on the "control_objective_type" field. +func ControlObjectiveTypeEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeNEQ applies the NEQ predicate on the "control_objective_type" field. +func ControlObjectiveTypeNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeIn applies the In predicate on the "control_objective_type" field. +func ControlObjectiveTypeIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldControlObjectiveType, vs...)) +} + +// ControlObjectiveTypeNotIn applies the NotIn predicate on the "control_objective_type" field. +func ControlObjectiveTypeNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldControlObjectiveType, vs...)) +} + +// ControlObjectiveTypeGT applies the GT predicate on the "control_objective_type" field. +func ControlObjectiveTypeGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeGTE applies the GTE predicate on the "control_objective_type" field. +func ControlObjectiveTypeGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeLT applies the LT predicate on the "control_objective_type" field. +func ControlObjectiveTypeLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeLTE applies the LTE predicate on the "control_objective_type" field. +func ControlObjectiveTypeLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeContains applies the Contains predicate on the "control_objective_type" field. +func ControlObjectiveTypeContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeHasPrefix applies the HasPrefix predicate on the "control_objective_type" field. +func ControlObjectiveTypeHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeHasSuffix applies the HasSuffix predicate on the "control_objective_type" field. +func ControlObjectiveTypeHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeIsNil applies the IsNil predicate on the "control_objective_type" field. +func ControlObjectiveTypeIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldControlObjectiveType)) +} + +// ControlObjectiveTypeNotNil applies the NotNil predicate on the "control_objective_type" field. +func ControlObjectiveTypeNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldControlObjectiveType)) +} + +// ControlObjectiveTypeEqualFold applies the EqualFold predicate on the "control_objective_type" field. +func ControlObjectiveTypeEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeContainsFold applies the ContainsFold predicate on the "control_objective_type" field. +func ControlObjectiveTypeContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldControlObjectiveType, v)) +} + +// VersionEQ applies the EQ predicate on the "version" field. +func VersionEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldVersion, v)) +} + +// VersionNEQ applies the NEQ predicate on the "version" field. +func VersionNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldVersion, v)) +} + +// VersionIn applies the In predicate on the "version" field. +func VersionIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldVersion, vs...)) +} + +// VersionNotIn applies the NotIn predicate on the "version" field. +func VersionNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldVersion, vs...)) +} + +// VersionGT applies the GT predicate on the "version" field. +func VersionGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldVersion, v)) +} + +// VersionGTE applies the GTE predicate on the "version" field. +func VersionGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldVersion, v)) +} + +// VersionLT applies the LT predicate on the "version" field. +func VersionLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldVersion, v)) +} + +// VersionLTE applies the LTE predicate on the "version" field. +func VersionLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldVersion, v)) +} + +// VersionContains applies the Contains predicate on the "version" field. +func VersionContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldVersion, v)) +} + +// VersionHasPrefix applies the HasPrefix predicate on the "version" field. +func VersionHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldVersion, v)) +} + +// VersionHasSuffix applies the HasSuffix predicate on the "version" field. +func VersionHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldVersion, v)) +} + +// VersionIsNil applies the IsNil predicate on the "version" field. +func VersionIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldVersion)) +} + +// VersionNotNil applies the NotNil predicate on the "version" field. +func VersionNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldVersion)) +} + +// VersionEqualFold applies the EqualFold predicate on the "version" field. +func VersionEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldVersion, v)) +} + +// VersionContainsFold applies the ContainsFold predicate on the "version" field. +func VersionContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldVersion, v)) +} + +// ControlNumberEQ applies the EQ predicate on the "control_number" field. +func ControlNumberEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldControlNumber, v)) +} + +// ControlNumberNEQ applies the NEQ predicate on the "control_number" field. +func ControlNumberNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldControlNumber, v)) +} + +// ControlNumberIn applies the In predicate on the "control_number" field. +func ControlNumberIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldControlNumber, vs...)) +} + +// ControlNumberNotIn applies the NotIn predicate on the "control_number" field. +func ControlNumberNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldControlNumber, vs...)) +} + +// ControlNumberGT applies the GT predicate on the "control_number" field. +func ControlNumberGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldControlNumber, v)) +} + +// ControlNumberGTE applies the GTE predicate on the "control_number" field. +func ControlNumberGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldControlNumber, v)) +} + +// ControlNumberLT applies the LT predicate on the "control_number" field. +func ControlNumberLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldControlNumber, v)) +} + +// ControlNumberLTE applies the LTE predicate on the "control_number" field. +func ControlNumberLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldControlNumber, v)) +} + +// ControlNumberContains applies the Contains predicate on the "control_number" field. +func ControlNumberContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldControlNumber, v)) +} + +// ControlNumberHasPrefix applies the HasPrefix predicate on the "control_number" field. +func ControlNumberHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldControlNumber, v)) +} + +// ControlNumberHasSuffix applies the HasSuffix predicate on the "control_number" field. +func ControlNumberHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldControlNumber, v)) +} + +// ControlNumberIsNil applies the IsNil predicate on the "control_number" field. +func ControlNumberIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldControlNumber)) +} + +// ControlNumberNotNil applies the NotNil predicate on the "control_number" field. +func ControlNumberNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldControlNumber)) +} + +// ControlNumberEqualFold applies the EqualFold predicate on the "control_number" field. +func ControlNumberEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldControlNumber, v)) +} + +// ControlNumberContainsFold applies the ContainsFold predicate on the "control_number" field. +func ControlNumberContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldControlNumber, v)) +} + +// FamilyEQ applies the EQ predicate on the "family" field. +func FamilyEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldFamily, v)) +} + +// FamilyNEQ applies the NEQ predicate on the "family" field. +func FamilyNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldFamily, v)) +} + +// FamilyIn applies the In predicate on the "family" field. +func FamilyIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldFamily, vs...)) +} + +// FamilyNotIn applies the NotIn predicate on the "family" field. +func FamilyNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldFamily, vs...)) +} + +// FamilyGT applies the GT predicate on the "family" field. +func FamilyGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldFamily, v)) +} + +// FamilyGTE applies the GTE predicate on the "family" field. +func FamilyGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldFamily, v)) +} + +// FamilyLT applies the LT predicate on the "family" field. +func FamilyLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldFamily, v)) +} + +// FamilyLTE applies the LTE predicate on the "family" field. +func FamilyLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldFamily, v)) +} + +// FamilyContains applies the Contains predicate on the "family" field. +func FamilyContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldFamily, v)) +} + +// FamilyHasPrefix applies the HasPrefix predicate on the "family" field. +func FamilyHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldFamily, v)) +} + +// FamilyHasSuffix applies the HasSuffix predicate on the "family" field. +func FamilyHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldFamily, v)) +} + +// FamilyIsNil applies the IsNil predicate on the "family" field. +func FamilyIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldFamily)) +} + +// FamilyNotNil applies the NotNil predicate on the "family" field. +func FamilyNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldFamily)) +} + +// FamilyEqualFold applies the EqualFold predicate on the "family" field. +func FamilyEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldFamily, v)) +} + +// FamilyContainsFold applies the ContainsFold predicate on the "family" field. +func FamilyContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldFamily, v)) +} + +// ClassEQ applies the EQ predicate on the "class" field. +func ClassEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldClass, v)) +} + +// ClassNEQ applies the NEQ predicate on the "class" field. +func ClassNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldClass, v)) +} + +// ClassIn applies the In predicate on the "class" field. +func ClassIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldClass, vs...)) +} + +// ClassNotIn applies the NotIn predicate on the "class" field. +func ClassNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldClass, vs...)) +} + +// ClassGT applies the GT predicate on the "class" field. +func ClassGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldClass, v)) +} + +// ClassGTE applies the GTE predicate on the "class" field. +func ClassGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldClass, v)) +} + +// ClassLT applies the LT predicate on the "class" field. +func ClassLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldClass, v)) +} + +// ClassLTE applies the LTE predicate on the "class" field. +func ClassLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldClass, v)) +} + +// ClassContains applies the Contains predicate on the "class" field. +func ClassContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldClass, v)) +} + +// ClassHasPrefix applies the HasPrefix predicate on the "class" field. +func ClassHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldClass, v)) +} + +// ClassHasSuffix applies the HasSuffix predicate on the "class" field. +func ClassHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldClass, v)) +} + +// ClassIsNil applies the IsNil predicate on the "class" field. +func ClassIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldClass)) +} + +// ClassNotNil applies the NotNil predicate on the "class" field. +func ClassNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldClass)) +} + +// ClassEqualFold applies the EqualFold predicate on the "class" field. +func ClassEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldClass, v)) +} + +// ClassContainsFold applies the ContainsFold predicate on the "class" field. +func ClassContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldClass, v)) +} + +// SourceEQ applies the EQ predicate on the "source" field. +func SourceEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldSource, v)) +} + +// SourceNEQ applies the NEQ predicate on the "source" field. +func SourceNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldSource, v)) +} + +// SourceIn applies the In predicate on the "source" field. +func SourceIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldSource, vs...)) +} + +// SourceNotIn applies the NotIn predicate on the "source" field. +func SourceNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldSource, vs...)) +} + +// SourceGT applies the GT predicate on the "source" field. +func SourceGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldSource, v)) +} + +// SourceGTE applies the GTE predicate on the "source" field. +func SourceGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldSource, v)) +} + +// SourceLT applies the LT predicate on the "source" field. +func SourceLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldSource, v)) +} + +// SourceLTE applies the LTE predicate on the "source" field. +func SourceLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldSource, v)) +} + +// SourceContains applies the Contains predicate on the "source" field. +func SourceContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldSource, v)) +} + +// SourceHasPrefix applies the HasPrefix predicate on the "source" field. +func SourceHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldSource, v)) +} + +// SourceHasSuffix applies the HasSuffix predicate on the "source" field. +func SourceHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldSource, v)) +} + +// SourceIsNil applies the IsNil predicate on the "source" field. +func SourceIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldSource)) +} + +// SourceNotNil applies the NotNil predicate on the "source" field. +func SourceNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldSource)) +} + +// SourceEqualFold applies the EqualFold predicate on the "source" field. +func SourceEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldSource, v)) +} + +// SourceContainsFold applies the ContainsFold predicate on the "source" field. +func SourceContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldSource, v)) +} + +// MappedFrameworksEQ applies the EQ predicate on the "mapped_frameworks" field. +func MappedFrameworksEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEQ(FieldMappedFrameworks, v)) +} + +// MappedFrameworksNEQ applies the NEQ predicate on the "mapped_frameworks" field. +func MappedFrameworksNEQ(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNEQ(FieldMappedFrameworks, v)) +} + +// MappedFrameworksIn applies the In predicate on the "mapped_frameworks" field. +func MappedFrameworksIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIn(FieldMappedFrameworks, vs...)) +} + +// MappedFrameworksNotIn applies the NotIn predicate on the "mapped_frameworks" field. +func MappedFrameworksNotIn(vs ...string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotIn(FieldMappedFrameworks, vs...)) +} + +// MappedFrameworksGT applies the GT predicate on the "mapped_frameworks" field. +func MappedFrameworksGT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGT(FieldMappedFrameworks, v)) +} + +// MappedFrameworksGTE applies the GTE predicate on the "mapped_frameworks" field. +func MappedFrameworksGTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldGTE(FieldMappedFrameworks, v)) +} + +// MappedFrameworksLT applies the LT predicate on the "mapped_frameworks" field. +func MappedFrameworksLT(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLT(FieldMappedFrameworks, v)) +} + +// MappedFrameworksLTE applies the LTE predicate on the "mapped_frameworks" field. +func MappedFrameworksLTE(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldLTE(FieldMappedFrameworks, v)) +} + +// MappedFrameworksContains applies the Contains predicate on the "mapped_frameworks" field. +func MappedFrameworksContains(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContains(FieldMappedFrameworks, v)) +} + +// MappedFrameworksHasPrefix applies the HasPrefix predicate on the "mapped_frameworks" field. +func MappedFrameworksHasPrefix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasPrefix(FieldMappedFrameworks, v)) +} + +// MappedFrameworksHasSuffix applies the HasSuffix predicate on the "mapped_frameworks" field. +func MappedFrameworksHasSuffix(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldHasSuffix(FieldMappedFrameworks, v)) +} + +// MappedFrameworksIsNil applies the IsNil predicate on the "mapped_frameworks" field. +func MappedFrameworksIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldMappedFrameworks)) +} + +// MappedFrameworksNotNil applies the NotNil predicate on the "mapped_frameworks" field. +func MappedFrameworksNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldMappedFrameworks)) +} + +// MappedFrameworksEqualFold applies the EqualFold predicate on the "mapped_frameworks" field. +func MappedFrameworksEqualFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldEqualFold(FieldMappedFrameworks, v)) +} + +// MappedFrameworksContainsFold applies the ContainsFold predicate on the "mapped_frameworks" field. +func MappedFrameworksContainsFold(v string) predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldContainsFold(FieldMappedFrameworks, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.ControlObjective { + return predicate.ControlObjective(sql.FieldNotNull(FieldDetails)) +} + +// HasPolicy applies the HasEdge predicate on the "policy" edge. +func HasPolicy() predicate.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, PolicyTable, PolicyPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicyControlobjectives + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasPolicyWith applies the HasEdge predicate on the "policy" edge with a given conditions (other predicates). +func HasPolicyWith(preds ...predicate.InternalPolicy) predicate.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := newPolicyStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicyControlobjectives + 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.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ControlsTable, ControlsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.Control + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlsWith applies the HasEdge predicate on the "controls" edge with a given conditions (other predicates). +func HasControlsWith(preds ...predicate.Control) predicate.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := newControlsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.Control + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasProcedures applies the HasEdge predicate on the "procedures" edge. +func HasProcedures() predicate.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ProceduresTable, ProceduresColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.Procedure + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasProceduresWith applies the HasEdge predicate on the "procedures" edge with a given conditions (other predicates). +func HasProceduresWith(preds ...predicate.Procedure) predicate.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := newProceduresStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.Procedure + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasRisks applies the HasEdge predicate on the "risks" edge. +func HasRisks() predicate.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, RisksTable, RisksColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.Risk + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasRisksWith applies the HasEdge predicate on the "risks" edge with a given conditions (other predicates). +func HasRisksWith(preds ...predicate.Risk) predicate.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := newRisksStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.Risk + 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.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, SubcontrolsTable, SubcontrolsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.Subcontrol + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasSubcontrolsWith applies the HasEdge predicate on the "subcontrols" edge with a given conditions (other predicates). +func HasSubcontrolsWith(preds ...predicate.Subcontrol) predicate.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := newSubcontrolsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.Subcontrol + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasStandard applies the HasEdge predicate on the "standard" edge. +func HasStandard() predicate.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, StandardTable, StandardPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.StandardControlobjectives + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasStandardWith applies the HasEdge predicate on the "standard" edge with a given conditions (other predicates). +func HasStandardWith(preds ...predicate.Standard) predicate.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := newStandardStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.StandardControlobjectives + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasNarratives applies the HasEdge predicate on the "narratives" edge. +func HasNarratives() predicate.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, NarrativesTable, NarrativesPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.ControlObjectiveNarratives + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasNarrativesWith applies the HasEdge predicate on the "narratives" edge with a given conditions (other predicates). +func HasNarrativesWith(preds ...predicate.Narrative) predicate.ControlObjective { + return predicate.ControlObjective(func(s *sql.Selector) { + step := newNarrativesStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.ControlObjectiveNarratives + 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.ControlObjective) predicate.ControlObjective { + return predicate.ControlObjective(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.ControlObjective) predicate.ControlObjective { + return predicate.ControlObjective(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.ControlObjective) predicate.ControlObjective { + return predicate.ControlObjective(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/controlobjective_create.go b/internal/ent/generated/controlobjective_create.go new file mode 100644 index 00000000..1853fd08 --- /dev/null +++ b/internal/ent/generated/controlobjective_create.go @@ -0,0 +1,787 @@ +// 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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" +) + +// ControlObjectiveCreate is the builder for creating a ControlObjective entity. +type ControlObjectiveCreate struct { + config + mutation *ControlObjectiveMutation + hooks []Hook +} + +// SetCreatedAt sets the "created_at" field. +func (coc *ControlObjectiveCreate) SetCreatedAt(t time.Time) *ControlObjectiveCreate { + coc.mutation.SetCreatedAt(t) + return coc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableCreatedAt(t *time.Time) *ControlObjectiveCreate { + if t != nil { + coc.SetCreatedAt(*t) + } + return coc +} + +// SetUpdatedAt sets the "updated_at" field. +func (coc *ControlObjectiveCreate) SetUpdatedAt(t time.Time) *ControlObjectiveCreate { + coc.mutation.SetUpdatedAt(t) + return coc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableUpdatedAt(t *time.Time) *ControlObjectiveCreate { + if t != nil { + coc.SetUpdatedAt(*t) + } + return coc +} + +// SetCreatedBy sets the "created_by" field. +func (coc *ControlObjectiveCreate) SetCreatedBy(s string) *ControlObjectiveCreate { + coc.mutation.SetCreatedBy(s) + return coc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableCreatedBy(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetCreatedBy(*s) + } + return coc +} + +// SetUpdatedBy sets the "updated_by" field. +func (coc *ControlObjectiveCreate) SetUpdatedBy(s string) *ControlObjectiveCreate { + coc.mutation.SetUpdatedBy(s) + return coc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableUpdatedBy(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetUpdatedBy(*s) + } + return coc +} + +// SetDeletedAt sets the "deleted_at" field. +func (coc *ControlObjectiveCreate) SetDeletedAt(t time.Time) *ControlObjectiveCreate { + coc.mutation.SetDeletedAt(t) + return coc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableDeletedAt(t *time.Time) *ControlObjectiveCreate { + if t != nil { + coc.SetDeletedAt(*t) + } + return coc +} + +// SetDeletedBy sets the "deleted_by" field. +func (coc *ControlObjectiveCreate) SetDeletedBy(s string) *ControlObjectiveCreate { + coc.mutation.SetDeletedBy(s) + return coc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableDeletedBy(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetDeletedBy(*s) + } + return coc +} + +// SetMappingID sets the "mapping_id" field. +func (coc *ControlObjectiveCreate) SetMappingID(s string) *ControlObjectiveCreate { + coc.mutation.SetMappingID(s) + return coc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableMappingID(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetMappingID(*s) + } + return coc +} + +// SetTags sets the "tags" field. +func (coc *ControlObjectiveCreate) SetTags(s []string) *ControlObjectiveCreate { + coc.mutation.SetTags(s) + return coc +} + +// SetName sets the "name" field. +func (coc *ControlObjectiveCreate) SetName(s string) *ControlObjectiveCreate { + coc.mutation.SetName(s) + return coc +} + +// SetDescription sets the "description" field. +func (coc *ControlObjectiveCreate) SetDescription(s string) *ControlObjectiveCreate { + coc.mutation.SetDescription(s) + return coc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableDescription(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetDescription(*s) + } + return coc +} + +// SetStatus sets the "status" field. +func (coc *ControlObjectiveCreate) SetStatus(s string) *ControlObjectiveCreate { + coc.mutation.SetStatus(s) + return coc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableStatus(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetStatus(*s) + } + return coc +} + +// SetControlObjectiveType sets the "control_objective_type" field. +func (coc *ControlObjectiveCreate) SetControlObjectiveType(s string) *ControlObjectiveCreate { + coc.mutation.SetControlObjectiveType(s) + return coc +} + +// SetNillableControlObjectiveType sets the "control_objective_type" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableControlObjectiveType(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetControlObjectiveType(*s) + } + return coc +} + +// SetVersion sets the "version" field. +func (coc *ControlObjectiveCreate) SetVersion(s string) *ControlObjectiveCreate { + coc.mutation.SetVersion(s) + return coc +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableVersion(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetVersion(*s) + } + return coc +} + +// SetControlNumber sets the "control_number" field. +func (coc *ControlObjectiveCreate) SetControlNumber(s string) *ControlObjectiveCreate { + coc.mutation.SetControlNumber(s) + return coc +} + +// SetNillableControlNumber sets the "control_number" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableControlNumber(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetControlNumber(*s) + } + return coc +} + +// SetFamily sets the "family" field. +func (coc *ControlObjectiveCreate) SetFamily(s string) *ControlObjectiveCreate { + coc.mutation.SetFamily(s) + return coc +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableFamily(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetFamily(*s) + } + return coc +} + +// SetClass sets the "class" field. +func (coc *ControlObjectiveCreate) SetClass(s string) *ControlObjectiveCreate { + coc.mutation.SetClass(s) + return coc +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableClass(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetClass(*s) + } + return coc +} + +// SetSource sets the "source" field. +func (coc *ControlObjectiveCreate) SetSource(s string) *ControlObjectiveCreate { + coc.mutation.SetSource(s) + return coc +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableSource(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetSource(*s) + } + return coc +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (coc *ControlObjectiveCreate) SetMappedFrameworks(s string) *ControlObjectiveCreate { + coc.mutation.SetMappedFrameworks(s) + return coc +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableMappedFrameworks(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetMappedFrameworks(*s) + } + return coc +} + +// SetDetails sets the "details" field. +func (coc *ControlObjectiveCreate) SetDetails(m map[string]interface{}) *ControlObjectiveCreate { + coc.mutation.SetDetails(m) + return coc +} + +// SetID sets the "id" field. +func (coc *ControlObjectiveCreate) SetID(s string) *ControlObjectiveCreate { + coc.mutation.SetID(s) + return coc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (coc *ControlObjectiveCreate) SetNillableID(s *string) *ControlObjectiveCreate { + if s != nil { + coc.SetID(*s) + } + return coc +} + +// AddPolicyIDs adds the "policy" edge to the InternalPolicy entity by IDs. +func (coc *ControlObjectiveCreate) AddPolicyIDs(ids ...string) *ControlObjectiveCreate { + coc.mutation.AddPolicyIDs(ids...) + return coc +} + +// AddPolicy adds the "policy" edges to the InternalPolicy entity. +func (coc *ControlObjectiveCreate) AddPolicy(i ...*InternalPolicy) *ControlObjectiveCreate { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return coc.AddPolicyIDs(ids...) +} + +// AddControlIDs adds the "controls" edge to the Control entity by IDs. +func (coc *ControlObjectiveCreate) AddControlIDs(ids ...string) *ControlObjectiveCreate { + coc.mutation.AddControlIDs(ids...) + return coc +} + +// AddControls adds the "controls" edges to the Control entity. +func (coc *ControlObjectiveCreate) AddControls(c ...*Control) *ControlObjectiveCreate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return coc.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (coc *ControlObjectiveCreate) AddProcedureIDs(ids ...string) *ControlObjectiveCreate { + coc.mutation.AddProcedureIDs(ids...) + return coc +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (coc *ControlObjectiveCreate) AddProcedures(p ...*Procedure) *ControlObjectiveCreate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return coc.AddProcedureIDs(ids...) +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. +func (coc *ControlObjectiveCreate) AddRiskIDs(ids ...string) *ControlObjectiveCreate { + coc.mutation.AddRiskIDs(ids...) + return coc +} + +// AddRisks adds the "risks" edges to the Risk entity. +func (coc *ControlObjectiveCreate) AddRisks(r ...*Risk) *ControlObjectiveCreate { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return coc.AddRiskIDs(ids...) +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (coc *ControlObjectiveCreate) AddSubcontrolIDs(ids ...string) *ControlObjectiveCreate { + coc.mutation.AddSubcontrolIDs(ids...) + return coc +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (coc *ControlObjectiveCreate) AddSubcontrols(s ...*Subcontrol) *ControlObjectiveCreate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return coc.AddSubcontrolIDs(ids...) +} + +// AddStandardIDs adds the "standard" edge to the Standard entity by IDs. +func (coc *ControlObjectiveCreate) AddStandardIDs(ids ...string) *ControlObjectiveCreate { + coc.mutation.AddStandardIDs(ids...) + return coc +} + +// AddStandard adds the "standard" edges to the Standard entity. +func (coc *ControlObjectiveCreate) AddStandard(s ...*Standard) *ControlObjectiveCreate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return coc.AddStandardIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (coc *ControlObjectiveCreate) AddNarrativeIDs(ids ...string) *ControlObjectiveCreate { + coc.mutation.AddNarrativeIDs(ids...) + return coc +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (coc *ControlObjectiveCreate) AddNarratives(n ...*Narrative) *ControlObjectiveCreate { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return coc.AddNarrativeIDs(ids...) +} + +// Mutation returns the ControlObjectiveMutation object of the builder. +func (coc *ControlObjectiveCreate) Mutation() *ControlObjectiveMutation { + return coc.mutation +} + +// Save creates the ControlObjective in the database. +func (coc *ControlObjectiveCreate) Save(ctx context.Context) (*ControlObjective, error) { + if err := coc.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, coc.sqlSave, coc.mutation, coc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (coc *ControlObjectiveCreate) SaveX(ctx context.Context) *ControlObjective { + v, err := coc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (coc *ControlObjectiveCreate) Exec(ctx context.Context) error { + _, err := coc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (coc *ControlObjectiveCreate) ExecX(ctx context.Context) { + if err := coc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (coc *ControlObjectiveCreate) defaults() error { + if _, ok := coc.mutation.CreatedAt(); !ok { + if controlobjective.DefaultCreatedAt == nil { + return fmt.Errorf("generated: uninitialized controlobjective.DefaultCreatedAt (forgotten import generated/runtime?)") + } + v := controlobjective.DefaultCreatedAt() + coc.mutation.SetCreatedAt(v) + } + if _, ok := coc.mutation.UpdatedAt(); !ok { + if controlobjective.DefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized controlobjective.DefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := controlobjective.DefaultUpdatedAt() + coc.mutation.SetUpdatedAt(v) + } + if _, ok := coc.mutation.MappingID(); !ok { + if controlobjective.DefaultMappingID == nil { + return fmt.Errorf("generated: uninitialized controlobjective.DefaultMappingID (forgotten import generated/runtime?)") + } + v := controlobjective.DefaultMappingID() + coc.mutation.SetMappingID(v) + } + if _, ok := coc.mutation.Tags(); !ok { + v := controlobjective.DefaultTags + coc.mutation.SetTags(v) + } + if _, ok := coc.mutation.ID(); !ok { + if controlobjective.DefaultID == nil { + return fmt.Errorf("generated: uninitialized controlobjective.DefaultID (forgotten import generated/runtime?)") + } + v := controlobjective.DefaultID() + coc.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (coc *ControlObjectiveCreate) check() error { + if _, ok := coc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "ControlObjective.mapping_id"`)} + } + if _, ok := coc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "ControlObjective.name"`)} + } + return nil +} + +func (coc *ControlObjectiveCreate) sqlSave(ctx context.Context) (*ControlObjective, error) { + if err := coc.check(); err != nil { + return nil, err + } + _node, _spec := coc.createSpec() + if err := sqlgraph.CreateNode(ctx, coc.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 ControlObjective.ID type: %T", _spec.ID.Value) + } + } + coc.mutation.id = &_node.ID + coc.mutation.done = true + return _node, nil +} + +func (coc *ControlObjectiveCreate) createSpec() (*ControlObjective, *sqlgraph.CreateSpec) { + var ( + _node = &ControlObjective{config: coc.config} + _spec = sqlgraph.NewCreateSpec(controlobjective.Table, sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString)) + ) + _spec.Schema = coc.schemaConfig.ControlObjective + if id, ok := coc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := coc.mutation.CreatedAt(); ok { + _spec.SetField(controlobjective.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := coc.mutation.UpdatedAt(); ok { + _spec.SetField(controlobjective.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := coc.mutation.CreatedBy(); ok { + _spec.SetField(controlobjective.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := coc.mutation.UpdatedBy(); ok { + _spec.SetField(controlobjective.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := coc.mutation.DeletedAt(); ok { + _spec.SetField(controlobjective.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := coc.mutation.DeletedBy(); ok { + _spec.SetField(controlobjective.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := coc.mutation.MappingID(); ok { + _spec.SetField(controlobjective.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := coc.mutation.Tags(); ok { + _spec.SetField(controlobjective.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := coc.mutation.Name(); ok { + _spec.SetField(controlobjective.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := coc.mutation.Description(); ok { + _spec.SetField(controlobjective.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := coc.mutation.Status(); ok { + _spec.SetField(controlobjective.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := coc.mutation.ControlObjectiveType(); ok { + _spec.SetField(controlobjective.FieldControlObjectiveType, field.TypeString, value) + _node.ControlObjectiveType = value + } + if value, ok := coc.mutation.Version(); ok { + _spec.SetField(controlobjective.FieldVersion, field.TypeString, value) + _node.Version = value + } + if value, ok := coc.mutation.ControlNumber(); ok { + _spec.SetField(controlobjective.FieldControlNumber, field.TypeString, value) + _node.ControlNumber = value + } + if value, ok := coc.mutation.Family(); ok { + _spec.SetField(controlobjective.FieldFamily, field.TypeString, value) + _node.Family = value + } + if value, ok := coc.mutation.Class(); ok { + _spec.SetField(controlobjective.FieldClass, field.TypeString, value) + _node.Class = value + } + if value, ok := coc.mutation.Source(); ok { + _spec.SetField(controlobjective.FieldSource, field.TypeString, value) + _node.Source = value + } + if value, ok := coc.mutation.MappedFrameworks(); ok { + _spec.SetField(controlobjective.FieldMappedFrameworks, field.TypeString, value) + _node.MappedFrameworks = value + } + if value, ok := coc.mutation.Details(); ok { + _spec.SetField(controlobjective.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + if nodes := coc.mutation.PolicyIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.PolicyTable, + Columns: controlobjective.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = coc.schemaConfig.InternalPolicyControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := coc.mutation.ControlsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ControlsTable, + Columns: []string{controlobjective.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = coc.schemaConfig.Control + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := coc.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ProceduresTable, + Columns: []string{controlobjective.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = coc.schemaConfig.Procedure + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := coc.mutation.RisksIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.RisksTable, + Columns: []string{controlobjective.RisksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = coc.schemaConfig.Risk + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := coc.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.SubcontrolsTable, + Columns: []string{controlobjective.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = coc.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := coc.mutation.StandardIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.StandardTable, + Columns: controlobjective.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = coc.schemaConfig.StandardControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := coc.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: controlobjective.NarrativesTable, + Columns: controlobjective.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = coc.schemaConfig.ControlObjectiveNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + return _node, _spec +} + +// ControlObjectiveCreateBulk is the builder for creating many ControlObjective entities in bulk. +type ControlObjectiveCreateBulk struct { + config + err error + builders []*ControlObjectiveCreate +} + +// Save creates the ControlObjective entities in the database. +func (cocb *ControlObjectiveCreateBulk) Save(ctx context.Context) ([]*ControlObjective, error) { + if cocb.err != nil { + return nil, cocb.err + } + specs := make([]*sqlgraph.CreateSpec, len(cocb.builders)) + nodes := make([]*ControlObjective, len(cocb.builders)) + mutators := make([]Mutator, len(cocb.builders)) + for i := range cocb.builders { + func(i int, root context.Context) { + builder := cocb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*ControlObjectiveMutation) + 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, cocb.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, cocb.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, cocb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (cocb *ControlObjectiveCreateBulk) SaveX(ctx context.Context) []*ControlObjective { + v, err := cocb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (cocb *ControlObjectiveCreateBulk) Exec(ctx context.Context) error { + _, err := cocb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (cocb *ControlObjectiveCreateBulk) ExecX(ctx context.Context) { + if err := cocb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/controlobjective_delete.go b/internal/ent/generated/controlobjective_delete.go new file mode 100644 index 00000000..6dd3bcc6 --- /dev/null +++ b/internal/ent/generated/controlobjective_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ControlObjectiveDelete is the builder for deleting a ControlObjective entity. +type ControlObjectiveDelete struct { + config + hooks []Hook + mutation *ControlObjectiveMutation +} + +// Where appends a list predicates to the ControlObjectiveDelete builder. +func (cod *ControlObjectiveDelete) Where(ps ...predicate.ControlObjective) *ControlObjectiveDelete { + cod.mutation.Where(ps...) + return cod +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (cod *ControlObjectiveDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, cod.sqlExec, cod.mutation, cod.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (cod *ControlObjectiveDelete) ExecX(ctx context.Context) int { + n, err := cod.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (cod *ControlObjectiveDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(controlobjective.Table, sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString)) + _spec.Node.Schema = cod.schemaConfig.ControlObjective + ctx = internal.NewSchemaConfigContext(ctx, cod.schemaConfig) + if ps := cod.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, cod.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + cod.mutation.done = true + return affected, err +} + +// ControlObjectiveDeleteOne is the builder for deleting a single ControlObjective entity. +type ControlObjectiveDeleteOne struct { + cod *ControlObjectiveDelete +} + +// Where appends a list predicates to the ControlObjectiveDelete builder. +func (codo *ControlObjectiveDeleteOne) Where(ps ...predicate.ControlObjective) *ControlObjectiveDeleteOne { + codo.cod.mutation.Where(ps...) + return codo +} + +// Exec executes the deletion query. +func (codo *ControlObjectiveDeleteOne) Exec(ctx context.Context) error { + n, err := codo.cod.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{controlobjective.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (codo *ControlObjectiveDeleteOne) ExecX(ctx context.Context) { + if err := codo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/controlobjective_query.go b/internal/ent/generated/controlobjective_query.go new file mode 100644 index 00000000..6b67bd48 --- /dev/null +++ b/internal/ent/generated/controlobjective_query.go @@ -0,0 +1,1368 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "database/sql/driver" + "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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ControlObjectiveQuery is the builder for querying ControlObjective entities. +type ControlObjectiveQuery struct { + config + ctx *QueryContext + order []controlobjective.OrderOption + inters []Interceptor + predicates []predicate.ControlObjective + withPolicy *InternalPolicyQuery + withControls *ControlQuery + withProcedures *ProcedureQuery + withRisks *RiskQuery + withSubcontrols *SubcontrolQuery + withStandard *StandardQuery + withNarratives *NarrativeQuery + withFKs bool + loadTotal []func(context.Context, []*ControlObjective) error + modifiers []func(*sql.Selector) + withNamedPolicy map[string]*InternalPolicyQuery + withNamedControls map[string]*ControlQuery + withNamedProcedures map[string]*ProcedureQuery + withNamedRisks map[string]*RiskQuery + withNamedSubcontrols map[string]*SubcontrolQuery + withNamedStandard map[string]*StandardQuery + withNamedNarratives map[string]*NarrativeQuery + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the ControlObjectiveQuery builder. +func (coq *ControlObjectiveQuery) Where(ps ...predicate.ControlObjective) *ControlObjectiveQuery { + coq.predicates = append(coq.predicates, ps...) + return coq +} + +// Limit the number of records to be returned by this query. +func (coq *ControlObjectiveQuery) Limit(limit int) *ControlObjectiveQuery { + coq.ctx.Limit = &limit + return coq +} + +// Offset to start from. +func (coq *ControlObjectiveQuery) Offset(offset int) *ControlObjectiveQuery { + coq.ctx.Offset = &offset + return coq +} + +// 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 (coq *ControlObjectiveQuery) Unique(unique bool) *ControlObjectiveQuery { + coq.ctx.Unique = &unique + return coq +} + +// Order specifies how the records should be ordered. +func (coq *ControlObjectiveQuery) Order(o ...controlobjective.OrderOption) *ControlObjectiveQuery { + coq.order = append(coq.order, o...) + return coq +} + +// QueryPolicy chains the current query on the "policy" edge. +func (coq *ControlObjectiveQuery) QueryPolicy() *InternalPolicyQuery { + query := (&InternalPolicyClient{config: coq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := coq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := coq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, selector), + sqlgraph.To(internalpolicy.Table, internalpolicy.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, controlobjective.PolicyTable, controlobjective.PolicyPrimaryKey...), + ) + schemaConfig := coq.schemaConfig + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicyControlobjectives + fromU = sqlgraph.SetNeighbors(coq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryControls chains the current query on the "controls" edge. +func (coq *ControlObjectiveQuery) QueryControls() *ControlQuery { + query := (&ControlClient{config: coq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := coq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := coq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, selector), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, controlobjective.ControlsTable, controlobjective.ControlsColumn), + ) + schemaConfig := coq.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.Control + fromU = sqlgraph.SetNeighbors(coq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryProcedures chains the current query on the "procedures" edge. +func (coq *ControlObjectiveQuery) QueryProcedures() *ProcedureQuery { + query := (&ProcedureClient{config: coq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := coq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := coq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, selector), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, controlobjective.ProceduresTable, controlobjective.ProceduresColumn), + ) + schemaConfig := coq.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.Procedure + fromU = sqlgraph.SetNeighbors(coq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryRisks chains the current query on the "risks" edge. +func (coq *ControlObjectiveQuery) QueryRisks() *RiskQuery { + query := (&RiskClient{config: coq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := coq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := coq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, selector), + sqlgraph.To(risk.Table, risk.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, controlobjective.RisksTable, controlobjective.RisksColumn), + ) + schemaConfig := coq.schemaConfig + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.Risk + fromU = sqlgraph.SetNeighbors(coq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QuerySubcontrols chains the current query on the "subcontrols" edge. +func (coq *ControlObjectiveQuery) QuerySubcontrols() *SubcontrolQuery { + query := (&SubcontrolClient{config: coq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := coq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := coq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, selector), + sqlgraph.To(subcontrol.Table, subcontrol.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, controlobjective.SubcontrolsTable, controlobjective.SubcontrolsColumn), + ) + schemaConfig := coq.schemaConfig + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.Subcontrol + fromU = sqlgraph.SetNeighbors(coq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryStandard chains the current query on the "standard" edge. +func (coq *ControlObjectiveQuery) QueryStandard() *StandardQuery { + query := (&StandardClient{config: coq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := coq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := coq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, selector), + sqlgraph.To(standard.Table, standard.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, controlobjective.StandardTable, controlobjective.StandardPrimaryKey...), + ) + schemaConfig := coq.schemaConfig + step.To.Schema = schemaConfig.Standard + step.Edge.Schema = schemaConfig.StandardControlobjectives + fromU = sqlgraph.SetNeighbors(coq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryNarratives chains the current query on the "narratives" edge. +func (coq *ControlObjectiveQuery) QueryNarratives() *NarrativeQuery { + query := (&NarrativeClient{config: coq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := coq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := coq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(controlobjective.Table, controlobjective.FieldID, selector), + sqlgraph.To(narrative.Table, narrative.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, controlobjective.NarrativesTable, controlobjective.NarrativesPrimaryKey...), + ) + schemaConfig := coq.schemaConfig + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.ControlObjectiveNarratives + fromU = sqlgraph.SetNeighbors(coq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// First returns the first ControlObjective entity from the query. +// Returns a *NotFoundError when no ControlObjective was found. +func (coq *ControlObjectiveQuery) First(ctx context.Context) (*ControlObjective, error) { + nodes, err := coq.Limit(1).All(setContextOp(ctx, coq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{controlobjective.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (coq *ControlObjectiveQuery) FirstX(ctx context.Context) *ControlObjective { + node, err := coq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first ControlObjective ID from the query. +// Returns a *NotFoundError when no ControlObjective ID was found. +func (coq *ControlObjectiveQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = coq.Limit(1).IDs(setContextOp(ctx, coq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{controlobjective.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (coq *ControlObjectiveQuery) FirstIDX(ctx context.Context) string { + id, err := coq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single ControlObjective entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one ControlObjective entity is found. +// Returns a *NotFoundError when no ControlObjective entities are found. +func (coq *ControlObjectiveQuery) Only(ctx context.Context) (*ControlObjective, error) { + nodes, err := coq.Limit(2).All(setContextOp(ctx, coq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{controlobjective.Label} + default: + return nil, &NotSingularError{controlobjective.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (coq *ControlObjectiveQuery) OnlyX(ctx context.Context) *ControlObjective { + node, err := coq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only ControlObjective ID in the query. +// Returns a *NotSingularError when more than one ControlObjective ID is found. +// Returns a *NotFoundError when no entities are found. +func (coq *ControlObjectiveQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = coq.Limit(2).IDs(setContextOp(ctx, coq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{controlobjective.Label} + default: + err = &NotSingularError{controlobjective.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (coq *ControlObjectiveQuery) OnlyIDX(ctx context.Context) string { + id, err := coq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of ControlObjectives. +func (coq *ControlObjectiveQuery) All(ctx context.Context) ([]*ControlObjective, error) { + ctx = setContextOp(ctx, coq.ctx, ent.OpQueryAll) + if err := coq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*ControlObjective, *ControlObjectiveQuery]() + return withInterceptors[[]*ControlObjective](ctx, coq, qr, coq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (coq *ControlObjectiveQuery) AllX(ctx context.Context) []*ControlObjective { + nodes, err := coq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of ControlObjective IDs. +func (coq *ControlObjectiveQuery) IDs(ctx context.Context) (ids []string, err error) { + if coq.ctx.Unique == nil && coq.path != nil { + coq.Unique(true) + } + ctx = setContextOp(ctx, coq.ctx, ent.OpQueryIDs) + if err = coq.Select(controlobjective.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (coq *ControlObjectiveQuery) IDsX(ctx context.Context) []string { + ids, err := coq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (coq *ControlObjectiveQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, coq.ctx, ent.OpQueryCount) + if err := coq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, coq, querierCount[*ControlObjectiveQuery](), coq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (coq *ControlObjectiveQuery) CountX(ctx context.Context) int { + count, err := coq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (coq *ControlObjectiveQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, coq.ctx, ent.OpQueryExist) + switch _, err := coq.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 (coq *ControlObjectiveQuery) ExistX(ctx context.Context) bool { + exist, err := coq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the ControlObjectiveQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (coq *ControlObjectiveQuery) Clone() *ControlObjectiveQuery { + if coq == nil { + return nil + } + return &ControlObjectiveQuery{ + config: coq.config, + ctx: coq.ctx.Clone(), + order: append([]controlobjective.OrderOption{}, coq.order...), + inters: append([]Interceptor{}, coq.inters...), + predicates: append([]predicate.ControlObjective{}, coq.predicates...), + withPolicy: coq.withPolicy.Clone(), + withControls: coq.withControls.Clone(), + withProcedures: coq.withProcedures.Clone(), + withRisks: coq.withRisks.Clone(), + withSubcontrols: coq.withSubcontrols.Clone(), + withStandard: coq.withStandard.Clone(), + withNarratives: coq.withNarratives.Clone(), + // clone intermediate query. + sql: coq.sql.Clone(), + path: coq.path, + modifiers: append([]func(*sql.Selector){}, coq.modifiers...), + } +} + +// WithPolicy tells the query-builder to eager-load the nodes that are connected to +// the "policy" edge. The optional arguments are used to configure the query builder of the edge. +func (coq *ControlObjectiveQuery) WithPolicy(opts ...func(*InternalPolicyQuery)) *ControlObjectiveQuery { + query := (&InternalPolicyClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + coq.withPolicy = query + return coq +} + +// 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 (coq *ControlObjectiveQuery) WithControls(opts ...func(*ControlQuery)) *ControlObjectiveQuery { + query := (&ControlClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + coq.withControls = query + return coq +} + +// WithProcedures tells the query-builder to eager-load the nodes that are connected to +// the "procedures" edge. The optional arguments are used to configure the query builder of the edge. +func (coq *ControlObjectiveQuery) WithProcedures(opts ...func(*ProcedureQuery)) *ControlObjectiveQuery { + query := (&ProcedureClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + coq.withProcedures = query + return coq +} + +// WithRisks tells the query-builder to eager-load the nodes that are connected to +// the "risks" edge. The optional arguments are used to configure the query builder of the edge. +func (coq *ControlObjectiveQuery) WithRisks(opts ...func(*RiskQuery)) *ControlObjectiveQuery { + query := (&RiskClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + coq.withRisks = query + return coq +} + +// 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 (coq *ControlObjectiveQuery) WithSubcontrols(opts ...func(*SubcontrolQuery)) *ControlObjectiveQuery { + query := (&SubcontrolClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + coq.withSubcontrols = query + return coq +} + +// WithStandard tells the query-builder to eager-load the nodes that are connected to +// the "standard" edge. The optional arguments are used to configure the query builder of the edge. +func (coq *ControlObjectiveQuery) WithStandard(opts ...func(*StandardQuery)) *ControlObjectiveQuery { + query := (&StandardClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + coq.withStandard = query + return coq +} + +// WithNarratives tells the query-builder to eager-load the nodes that are connected to +// the "narratives" edge. The optional arguments are used to configure the query builder of the edge. +func (coq *ControlObjectiveQuery) WithNarratives(opts ...func(*NarrativeQuery)) *ControlObjectiveQuery { + query := (&NarrativeClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + coq.withNarratives = query + return coq +} + +// 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.ControlObjective.Query(). +// GroupBy(controlobjective.FieldCreatedAt). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (coq *ControlObjectiveQuery) GroupBy(field string, fields ...string) *ControlObjectiveGroupBy { + coq.ctx.Fields = append([]string{field}, fields...) + grbuild := &ControlObjectiveGroupBy{build: coq} + grbuild.flds = &coq.ctx.Fields + grbuild.label = controlobjective.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.ControlObjective.Query(). +// Select(controlobjective.FieldCreatedAt). +// Scan(ctx, &v) +func (coq *ControlObjectiveQuery) Select(fields ...string) *ControlObjectiveSelect { + coq.ctx.Fields = append(coq.ctx.Fields, fields...) + sbuild := &ControlObjectiveSelect{ControlObjectiveQuery: coq} + sbuild.label = controlobjective.Label + sbuild.flds, sbuild.scan = &coq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a ControlObjectiveSelect configured with the given aggregations. +func (coq *ControlObjectiveQuery) Aggregate(fns ...AggregateFunc) *ControlObjectiveSelect { + return coq.Select().Aggregate(fns...) +} + +func (coq *ControlObjectiveQuery) prepareQuery(ctx context.Context) error { + for _, inter := range coq.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, coq); err != nil { + return err + } + } + } + for _, f := range coq.ctx.Fields { + if !controlobjective.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if coq.path != nil { + prev, err := coq.path(ctx) + if err != nil { + return err + } + coq.sql = prev + } + return nil +} + +func (coq *ControlObjectiveQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*ControlObjective, error) { + var ( + nodes = []*ControlObjective{} + withFKs = coq.withFKs + _spec = coq.querySpec() + loadedTypes = [7]bool{ + coq.withPolicy != nil, + coq.withControls != nil, + coq.withProcedures != nil, + coq.withRisks != nil, + coq.withSubcontrols != nil, + coq.withStandard != nil, + coq.withNarratives != nil, + } + ) + if withFKs { + _spec.Node.Columns = append(_spec.Node.Columns, controlobjective.ForeignKeys...) + } + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*ControlObjective).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &ControlObjective{config: coq.config} + nodes = append(nodes, node) + node.Edges.loadedTypes = loadedTypes + return node.assignValues(columns, values) + } + _spec.Node.Schema = coq.schemaConfig.ControlObjective + ctx = internal.NewSchemaConfigContext(ctx, coq.schemaConfig) + if len(coq.modifiers) > 0 { + _spec.Modifiers = coq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, coq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + if query := coq.withPolicy; query != nil { + if err := coq.loadPolicy(ctx, query, nodes, + func(n *ControlObjective) { n.Edges.Policy = []*InternalPolicy{} }, + func(n *ControlObjective, e *InternalPolicy) { n.Edges.Policy = append(n.Edges.Policy, e) }); err != nil { + return nil, err + } + } + if query := coq.withControls; query != nil { + if err := coq.loadControls(ctx, query, nodes, + func(n *ControlObjective) { n.Edges.Controls = []*Control{} }, + func(n *ControlObjective, e *Control) { n.Edges.Controls = append(n.Edges.Controls, e) }); err != nil { + return nil, err + } + } + if query := coq.withProcedures; query != nil { + if err := coq.loadProcedures(ctx, query, nodes, + func(n *ControlObjective) { n.Edges.Procedures = []*Procedure{} }, + func(n *ControlObjective, e *Procedure) { n.Edges.Procedures = append(n.Edges.Procedures, e) }); err != nil { + return nil, err + } + } + if query := coq.withRisks; query != nil { + if err := coq.loadRisks(ctx, query, nodes, + func(n *ControlObjective) { n.Edges.Risks = []*Risk{} }, + func(n *ControlObjective, e *Risk) { n.Edges.Risks = append(n.Edges.Risks, e) }); err != nil { + return nil, err + } + } + if query := coq.withSubcontrols; query != nil { + if err := coq.loadSubcontrols(ctx, query, nodes, + func(n *ControlObjective) { n.Edges.Subcontrols = []*Subcontrol{} }, + func(n *ControlObjective, e *Subcontrol) { n.Edges.Subcontrols = append(n.Edges.Subcontrols, e) }); err != nil { + return nil, err + } + } + if query := coq.withStandard; query != nil { + if err := coq.loadStandard(ctx, query, nodes, + func(n *ControlObjective) { n.Edges.Standard = []*Standard{} }, + func(n *ControlObjective, e *Standard) { n.Edges.Standard = append(n.Edges.Standard, e) }); err != nil { + return nil, err + } + } + if query := coq.withNarratives; query != nil { + if err := coq.loadNarratives(ctx, query, nodes, + func(n *ControlObjective) { n.Edges.Narratives = []*Narrative{} }, + func(n *ControlObjective, e *Narrative) { n.Edges.Narratives = append(n.Edges.Narratives, e) }); err != nil { + return nil, err + } + } + for name, query := range coq.withNamedPolicy { + if err := coq.loadPolicy(ctx, query, nodes, + func(n *ControlObjective) { n.appendNamedPolicy(name) }, + func(n *ControlObjective, e *InternalPolicy) { n.appendNamedPolicy(name, e) }); err != nil { + return nil, err + } + } + for name, query := range coq.withNamedControls { + if err := coq.loadControls(ctx, query, nodes, + func(n *ControlObjective) { n.appendNamedControls(name) }, + func(n *ControlObjective, e *Control) { n.appendNamedControls(name, e) }); err != nil { + return nil, err + } + } + for name, query := range coq.withNamedProcedures { + if err := coq.loadProcedures(ctx, query, nodes, + func(n *ControlObjective) { n.appendNamedProcedures(name) }, + func(n *ControlObjective, e *Procedure) { n.appendNamedProcedures(name, e) }); err != nil { + return nil, err + } + } + for name, query := range coq.withNamedRisks { + if err := coq.loadRisks(ctx, query, nodes, + func(n *ControlObjective) { n.appendNamedRisks(name) }, + func(n *ControlObjective, e *Risk) { n.appendNamedRisks(name, e) }); err != nil { + return nil, err + } + } + for name, query := range coq.withNamedSubcontrols { + if err := coq.loadSubcontrols(ctx, query, nodes, + func(n *ControlObjective) { n.appendNamedSubcontrols(name) }, + func(n *ControlObjective, e *Subcontrol) { n.appendNamedSubcontrols(name, e) }); err != nil { + return nil, err + } + } + for name, query := range coq.withNamedStandard { + if err := coq.loadStandard(ctx, query, nodes, + func(n *ControlObjective) { n.appendNamedStandard(name) }, + func(n *ControlObjective, e *Standard) { n.appendNamedStandard(name, e) }); err != nil { + return nil, err + } + } + for name, query := range coq.withNamedNarratives { + if err := coq.loadNarratives(ctx, query, nodes, + func(n *ControlObjective) { n.appendNamedNarratives(name) }, + func(n *ControlObjective, e *Narrative) { n.appendNamedNarratives(name, e) }); err != nil { + return nil, err + } + } + for i := range coq.loadTotal { + if err := coq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (coq *ControlObjectiveQuery) loadPolicy(ctx context.Context, query *InternalPolicyQuery, nodes []*ControlObjective, init func(*ControlObjective), assign func(*ControlObjective, *InternalPolicy)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*ControlObjective) + nids := make(map[string]map[*ControlObjective]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(controlobjective.PolicyTable) + joinT.Schema(coq.schemaConfig.InternalPolicyControlobjectives) + s.Join(joinT).On(s.C(internalpolicy.FieldID), joinT.C(controlobjective.PolicyPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(controlobjective.PolicyPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(controlobjective.PolicyPrimaryKey[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[*ControlObjective]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*InternalPolicy](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 "policy" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (coq *ControlObjectiveQuery) loadControls(ctx context.Context, query *ControlQuery, nodes []*ControlObjective, init func(*ControlObjective), assign func(*ControlObjective, *Control)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*ControlObjective) + 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.Control(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(controlobjective.ControlsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.control_objective_controls + if fk == nil { + return fmt.Errorf(`foreign-key "control_objective_controls" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "control_objective_controls" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (coq *ControlObjectiveQuery) loadProcedures(ctx context.Context, query *ProcedureQuery, nodes []*ControlObjective, init func(*ControlObjective), assign func(*ControlObjective, *Procedure)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*ControlObjective) + 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.Procedure(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(controlobjective.ProceduresColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.control_objective_procedures + if fk == nil { + return fmt.Errorf(`foreign-key "control_objective_procedures" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "control_objective_procedures" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (coq *ControlObjectiveQuery) loadRisks(ctx context.Context, query *RiskQuery, nodes []*ControlObjective, init func(*ControlObjective), assign func(*ControlObjective, *Risk)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*ControlObjective) + 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.Risk(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(controlobjective.RisksColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.control_objective_risks + if fk == nil { + return fmt.Errorf(`foreign-key "control_objective_risks" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "control_objective_risks" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (coq *ControlObjectiveQuery) loadSubcontrols(ctx context.Context, query *SubcontrolQuery, nodes []*ControlObjective, init func(*ControlObjective), assign func(*ControlObjective, *Subcontrol)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*ControlObjective) + 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.Subcontrol(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(controlobjective.SubcontrolsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.control_objective_subcontrols + if fk == nil { + return fmt.Errorf(`foreign-key "control_objective_subcontrols" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "control_objective_subcontrols" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (coq *ControlObjectiveQuery) loadStandard(ctx context.Context, query *StandardQuery, nodes []*ControlObjective, init func(*ControlObjective), assign func(*ControlObjective, *Standard)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*ControlObjective) + nids := make(map[string]map[*ControlObjective]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(controlobjective.StandardTable) + joinT.Schema(coq.schemaConfig.StandardControlobjectives) + s.Join(joinT).On(s.C(standard.FieldID), joinT.C(controlobjective.StandardPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(controlobjective.StandardPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(controlobjective.StandardPrimaryKey[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[*ControlObjective]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Standard](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 "standard" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (coq *ControlObjectiveQuery) loadNarratives(ctx context.Context, query *NarrativeQuery, nodes []*ControlObjective, init func(*ControlObjective), assign func(*ControlObjective, *Narrative)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*ControlObjective) + nids := make(map[string]map[*ControlObjective]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(controlobjective.NarrativesTable) + joinT.Schema(coq.schemaConfig.ControlObjectiveNarratives) + s.Join(joinT).On(s.C(narrative.FieldID), joinT.C(controlobjective.NarrativesPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(controlobjective.NarrativesPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(controlobjective.NarrativesPrimaryKey[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[*ControlObjective]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Narrative](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 "narratives" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} + +func (coq *ControlObjectiveQuery) sqlCount(ctx context.Context) (int, error) { + _spec := coq.querySpec() + _spec.Node.Schema = coq.schemaConfig.ControlObjective + ctx = internal.NewSchemaConfigContext(ctx, coq.schemaConfig) + if len(coq.modifiers) > 0 { + _spec.Modifiers = coq.modifiers + } + _spec.Node.Columns = coq.ctx.Fields + if len(coq.ctx.Fields) > 0 { + _spec.Unique = coq.ctx.Unique != nil && *coq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, coq.driver, _spec) +} + +func (coq *ControlObjectiveQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(controlobjective.Table, controlobjective.Columns, sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString)) + _spec.From = coq.sql + if unique := coq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if coq.path != nil { + _spec.Unique = true + } + if fields := coq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, controlobjective.FieldID) + for i := range fields { + if fields[i] != controlobjective.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := coq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := coq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := coq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := coq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (coq *ControlObjectiveQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(coq.driver.Dialect()) + t1 := builder.Table(controlobjective.Table) + columns := coq.ctx.Fields + if len(columns) == 0 { + columns = controlobjective.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if coq.sql != nil { + selector = coq.sql + selector.Select(selector.Columns(columns...)...) + } + if coq.ctx.Unique != nil && *coq.ctx.Unique { + selector.Distinct() + } + t1.Schema(coq.schemaConfig.ControlObjective) + ctx = internal.NewSchemaConfigContext(ctx, coq.schemaConfig) + selector.WithContext(ctx) + for _, m := range coq.modifiers { + m(selector) + } + for _, p := range coq.predicates { + p(selector) + } + for _, p := range coq.order { + p(selector) + } + if offset := coq.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 := coq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (coq *ControlObjectiveQuery) Modify(modifiers ...func(s *sql.Selector)) *ControlObjectiveSelect { + coq.modifiers = append(coq.modifiers, modifiers...) + return coq.Select() +} + +// WithNamedPolicy tells the query-builder to eager-load the nodes that are connected to the "policy" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (coq *ControlObjectiveQuery) WithNamedPolicy(name string, opts ...func(*InternalPolicyQuery)) *ControlObjectiveQuery { + query := (&InternalPolicyClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + if coq.withNamedPolicy == nil { + coq.withNamedPolicy = make(map[string]*InternalPolicyQuery) + } + coq.withNamedPolicy[name] = query + return coq +} + +// 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 (coq *ControlObjectiveQuery) WithNamedControls(name string, opts ...func(*ControlQuery)) *ControlObjectiveQuery { + query := (&ControlClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + if coq.withNamedControls == nil { + coq.withNamedControls = make(map[string]*ControlQuery) + } + coq.withNamedControls[name] = query + return coq +} + +// WithNamedProcedures tells the query-builder to eager-load the nodes that are connected to the "procedures" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (coq *ControlObjectiveQuery) WithNamedProcedures(name string, opts ...func(*ProcedureQuery)) *ControlObjectiveQuery { + query := (&ProcedureClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + if coq.withNamedProcedures == nil { + coq.withNamedProcedures = make(map[string]*ProcedureQuery) + } + coq.withNamedProcedures[name] = query + return coq +} + +// WithNamedRisks tells the query-builder to eager-load the nodes that are connected to the "risks" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (coq *ControlObjectiveQuery) WithNamedRisks(name string, opts ...func(*RiskQuery)) *ControlObjectiveQuery { + query := (&RiskClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + if coq.withNamedRisks == nil { + coq.withNamedRisks = make(map[string]*RiskQuery) + } + coq.withNamedRisks[name] = query + return coq +} + +// 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 (coq *ControlObjectiveQuery) WithNamedSubcontrols(name string, opts ...func(*SubcontrolQuery)) *ControlObjectiveQuery { + query := (&SubcontrolClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + if coq.withNamedSubcontrols == nil { + coq.withNamedSubcontrols = make(map[string]*SubcontrolQuery) + } + coq.withNamedSubcontrols[name] = query + return coq +} + +// WithNamedStandard tells the query-builder to eager-load the nodes that are connected to the "standard" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (coq *ControlObjectiveQuery) WithNamedStandard(name string, opts ...func(*StandardQuery)) *ControlObjectiveQuery { + query := (&StandardClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + if coq.withNamedStandard == nil { + coq.withNamedStandard = make(map[string]*StandardQuery) + } + coq.withNamedStandard[name] = query + return coq +} + +// WithNamedNarratives tells the query-builder to eager-load the nodes that are connected to the "narratives" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (coq *ControlObjectiveQuery) WithNamedNarratives(name string, opts ...func(*NarrativeQuery)) *ControlObjectiveQuery { + query := (&NarrativeClient{config: coq.config}).Query() + for _, opt := range opts { + opt(query) + } + if coq.withNamedNarratives == nil { + coq.withNamedNarratives = make(map[string]*NarrativeQuery) + } + coq.withNamedNarratives[name] = query + return coq +} + +// ControlObjectiveGroupBy is the group-by builder for ControlObjective entities. +type ControlObjectiveGroupBy struct { + selector + build *ControlObjectiveQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (cogb *ControlObjectiveGroupBy) Aggregate(fns ...AggregateFunc) *ControlObjectiveGroupBy { + cogb.fns = append(cogb.fns, fns...) + return cogb +} + +// Scan applies the selector query and scans the result into the given value. +func (cogb *ControlObjectiveGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, cogb.build.ctx, ent.OpQueryGroupBy) + if err := cogb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ControlObjectiveQuery, *ControlObjectiveGroupBy](ctx, cogb.build, cogb, cogb.build.inters, v) +} + +func (cogb *ControlObjectiveGroupBy) sqlScan(ctx context.Context, root *ControlObjectiveQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(cogb.fns)) + for _, fn := range cogb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*cogb.flds)+len(cogb.fns)) + for _, f := range *cogb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*cogb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := cogb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// ControlObjectiveSelect is the builder for selecting fields of ControlObjective entities. +type ControlObjectiveSelect struct { + *ControlObjectiveQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (cos *ControlObjectiveSelect) Aggregate(fns ...AggregateFunc) *ControlObjectiveSelect { + cos.fns = append(cos.fns, fns...) + return cos +} + +// Scan applies the selector query and scans the result into the given value. +func (cos *ControlObjectiveSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, cos.ctx, ent.OpQuerySelect) + if err := cos.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ControlObjectiveQuery, *ControlObjectiveSelect](ctx, cos.ControlObjectiveQuery, cos, cos.inters, v) +} + +func (cos *ControlObjectiveSelect) sqlScan(ctx context.Context, root *ControlObjectiveQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(cos.fns)) + for _, fn := range cos.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*cos.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 := cos.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 (cos *ControlObjectiveSelect) Modify(modifiers ...func(s *sql.Selector)) *ControlObjectiveSelect { + cos.modifiers = append(cos.modifiers, modifiers...) + return cos +} diff --git a/internal/ent/generated/controlobjective_update.go b/internal/ent/generated/controlobjective_update.go new file mode 100644 index 00000000..ef3d2ac8 --- /dev/null +++ b/internal/ent/generated/controlobjective_update.go @@ -0,0 +1,2212 @@ +// 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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ControlObjectiveUpdate is the builder for updating ControlObjective entities. +type ControlObjectiveUpdate struct { + config + hooks []Hook + mutation *ControlObjectiveMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the ControlObjectiveUpdate builder. +func (cou *ControlObjectiveUpdate) Where(ps ...predicate.ControlObjective) *ControlObjectiveUpdate { + cou.mutation.Where(ps...) + return cou +} + +// SetUpdatedAt sets the "updated_at" field. +func (cou *ControlObjectiveUpdate) SetUpdatedAt(t time.Time) *ControlObjectiveUpdate { + cou.mutation.SetUpdatedAt(t) + return cou +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (cou *ControlObjectiveUpdate) ClearUpdatedAt() *ControlObjectiveUpdate { + cou.mutation.ClearUpdatedAt() + return cou +} + +// SetUpdatedBy sets the "updated_by" field. +func (cou *ControlObjectiveUpdate) SetUpdatedBy(s string) *ControlObjectiveUpdate { + cou.mutation.SetUpdatedBy(s) + return cou +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableUpdatedBy(s *string) *ControlObjectiveUpdate { + if s != nil { + cou.SetUpdatedBy(*s) + } + return cou +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (cou *ControlObjectiveUpdate) ClearUpdatedBy() *ControlObjectiveUpdate { + cou.mutation.ClearUpdatedBy() + return cou +} + +// SetDeletedAt sets the "deleted_at" field. +func (cou *ControlObjectiveUpdate) SetDeletedAt(t time.Time) *ControlObjectiveUpdate { + cou.mutation.SetDeletedAt(t) + return cou +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableDeletedAt(t *time.Time) *ControlObjectiveUpdate { + if t != nil { + cou.SetDeletedAt(*t) + } + return cou +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (cou *ControlObjectiveUpdate) ClearDeletedAt() *ControlObjectiveUpdate { + cou.mutation.ClearDeletedAt() + return cou +} + +// SetDeletedBy sets the "deleted_by" field. +func (cou *ControlObjectiveUpdate) SetDeletedBy(s string) *ControlObjectiveUpdate { + cou.mutation.SetDeletedBy(s) + return cou +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableDeletedBy(s *string) *ControlObjectiveUpdate { + if s != nil { + cou.SetDeletedBy(*s) + } + return cou +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (cou *ControlObjectiveUpdate) ClearDeletedBy() *ControlObjectiveUpdate { + cou.mutation.ClearDeletedBy() + return cou +} + +// SetTags sets the "tags" field. +func (cou *ControlObjectiveUpdate) SetTags(s []string) *ControlObjectiveUpdate { + cou.mutation.SetTags(s) + return cou +} + +// AppendTags appends s to the "tags" field. +func (cou *ControlObjectiveUpdate) AppendTags(s []string) *ControlObjectiveUpdate { + cou.mutation.AppendTags(s) + return cou +} + +// ClearTags clears the value of the "tags" field. +func (cou *ControlObjectiveUpdate) ClearTags() *ControlObjectiveUpdate { + cou.mutation.ClearTags() + return cou +} + +// SetName sets the "name" field. +func (cou *ControlObjectiveUpdate) SetName(s string) *ControlObjectiveUpdate { + cou.mutation.SetName(s) + return cou +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableName(s *string) *ControlObjectiveUpdate { + if s != nil { + cou.SetName(*s) + } + return cou +} + +// SetDescription sets the "description" field. +func (cou *ControlObjectiveUpdate) SetDescription(s string) *ControlObjectiveUpdate { + cou.mutation.SetDescription(s) + return cou +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableDescription(s *string) *ControlObjectiveUpdate { + if s != nil { + cou.SetDescription(*s) + } + return cou +} + +// ClearDescription clears the value of the "description" field. +func (cou *ControlObjectiveUpdate) ClearDescription() *ControlObjectiveUpdate { + cou.mutation.ClearDescription() + return cou +} + +// SetStatus sets the "status" field. +func (cou *ControlObjectiveUpdate) SetStatus(s string) *ControlObjectiveUpdate { + cou.mutation.SetStatus(s) + return cou +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableStatus(s *string) *ControlObjectiveUpdate { + if s != nil { + cou.SetStatus(*s) + } + return cou +} + +// ClearStatus clears the value of the "status" field. +func (cou *ControlObjectiveUpdate) ClearStatus() *ControlObjectiveUpdate { + cou.mutation.ClearStatus() + return cou +} + +// SetControlObjectiveType sets the "control_objective_type" field. +func (cou *ControlObjectiveUpdate) SetControlObjectiveType(s string) *ControlObjectiveUpdate { + cou.mutation.SetControlObjectiveType(s) + return cou +} + +// SetNillableControlObjectiveType sets the "control_objective_type" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableControlObjectiveType(s *string) *ControlObjectiveUpdate { + if s != nil { + cou.SetControlObjectiveType(*s) + } + return cou +} + +// ClearControlObjectiveType clears the value of the "control_objective_type" field. +func (cou *ControlObjectiveUpdate) ClearControlObjectiveType() *ControlObjectiveUpdate { + cou.mutation.ClearControlObjectiveType() + return cou +} + +// SetVersion sets the "version" field. +func (cou *ControlObjectiveUpdate) SetVersion(s string) *ControlObjectiveUpdate { + cou.mutation.SetVersion(s) + return cou +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableVersion(s *string) *ControlObjectiveUpdate { + if s != nil { + cou.SetVersion(*s) + } + return cou +} + +// ClearVersion clears the value of the "version" field. +func (cou *ControlObjectiveUpdate) ClearVersion() *ControlObjectiveUpdate { + cou.mutation.ClearVersion() + return cou +} + +// SetControlNumber sets the "control_number" field. +func (cou *ControlObjectiveUpdate) SetControlNumber(s string) *ControlObjectiveUpdate { + cou.mutation.SetControlNumber(s) + return cou +} + +// SetNillableControlNumber sets the "control_number" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableControlNumber(s *string) *ControlObjectiveUpdate { + if s != nil { + cou.SetControlNumber(*s) + } + return cou +} + +// ClearControlNumber clears the value of the "control_number" field. +func (cou *ControlObjectiveUpdate) ClearControlNumber() *ControlObjectiveUpdate { + cou.mutation.ClearControlNumber() + return cou +} + +// SetFamily sets the "family" field. +func (cou *ControlObjectiveUpdate) SetFamily(s string) *ControlObjectiveUpdate { + cou.mutation.SetFamily(s) + return cou +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableFamily(s *string) *ControlObjectiveUpdate { + if s != nil { + cou.SetFamily(*s) + } + return cou +} + +// ClearFamily clears the value of the "family" field. +func (cou *ControlObjectiveUpdate) ClearFamily() *ControlObjectiveUpdate { + cou.mutation.ClearFamily() + return cou +} + +// SetClass sets the "class" field. +func (cou *ControlObjectiveUpdate) SetClass(s string) *ControlObjectiveUpdate { + cou.mutation.SetClass(s) + return cou +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableClass(s *string) *ControlObjectiveUpdate { + if s != nil { + cou.SetClass(*s) + } + return cou +} + +// ClearClass clears the value of the "class" field. +func (cou *ControlObjectiveUpdate) ClearClass() *ControlObjectiveUpdate { + cou.mutation.ClearClass() + return cou +} + +// SetSource sets the "source" field. +func (cou *ControlObjectiveUpdate) SetSource(s string) *ControlObjectiveUpdate { + cou.mutation.SetSource(s) + return cou +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableSource(s *string) *ControlObjectiveUpdate { + if s != nil { + cou.SetSource(*s) + } + return cou +} + +// ClearSource clears the value of the "source" field. +func (cou *ControlObjectiveUpdate) ClearSource() *ControlObjectiveUpdate { + cou.mutation.ClearSource() + return cou +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (cou *ControlObjectiveUpdate) SetMappedFrameworks(s string) *ControlObjectiveUpdate { + cou.mutation.SetMappedFrameworks(s) + return cou +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (cou *ControlObjectiveUpdate) SetNillableMappedFrameworks(s *string) *ControlObjectiveUpdate { + if s != nil { + cou.SetMappedFrameworks(*s) + } + return cou +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (cou *ControlObjectiveUpdate) ClearMappedFrameworks() *ControlObjectiveUpdate { + cou.mutation.ClearMappedFrameworks() + return cou +} + +// SetDetails sets the "details" field. +func (cou *ControlObjectiveUpdate) SetDetails(m map[string]interface{}) *ControlObjectiveUpdate { + cou.mutation.SetDetails(m) + return cou +} + +// ClearDetails clears the value of the "details" field. +func (cou *ControlObjectiveUpdate) ClearDetails() *ControlObjectiveUpdate { + cou.mutation.ClearDetails() + return cou +} + +// AddPolicyIDs adds the "policy" edge to the InternalPolicy entity by IDs. +func (cou *ControlObjectiveUpdate) AddPolicyIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.AddPolicyIDs(ids...) + return cou +} + +// AddPolicy adds the "policy" edges to the InternalPolicy entity. +func (cou *ControlObjectiveUpdate) AddPolicy(i ...*InternalPolicy) *ControlObjectiveUpdate { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return cou.AddPolicyIDs(ids...) +} + +// AddControlIDs adds the "controls" edge to the Control entity by IDs. +func (cou *ControlObjectiveUpdate) AddControlIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.AddControlIDs(ids...) + return cou +} + +// AddControls adds the "controls" edges to the Control entity. +func (cou *ControlObjectiveUpdate) AddControls(c ...*Control) *ControlObjectiveUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return cou.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (cou *ControlObjectiveUpdate) AddProcedureIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.AddProcedureIDs(ids...) + return cou +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (cou *ControlObjectiveUpdate) AddProcedures(p ...*Procedure) *ControlObjectiveUpdate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return cou.AddProcedureIDs(ids...) +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. +func (cou *ControlObjectiveUpdate) AddRiskIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.AddRiskIDs(ids...) + return cou +} + +// AddRisks adds the "risks" edges to the Risk entity. +func (cou *ControlObjectiveUpdate) AddRisks(r ...*Risk) *ControlObjectiveUpdate { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return cou.AddRiskIDs(ids...) +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (cou *ControlObjectiveUpdate) AddSubcontrolIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.AddSubcontrolIDs(ids...) + return cou +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (cou *ControlObjectiveUpdate) AddSubcontrols(s ...*Subcontrol) *ControlObjectiveUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cou.AddSubcontrolIDs(ids...) +} + +// AddStandardIDs adds the "standard" edge to the Standard entity by IDs. +func (cou *ControlObjectiveUpdate) AddStandardIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.AddStandardIDs(ids...) + return cou +} + +// AddStandard adds the "standard" edges to the Standard entity. +func (cou *ControlObjectiveUpdate) AddStandard(s ...*Standard) *ControlObjectiveUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cou.AddStandardIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (cou *ControlObjectiveUpdate) AddNarrativeIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.AddNarrativeIDs(ids...) + return cou +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (cou *ControlObjectiveUpdate) AddNarratives(n ...*Narrative) *ControlObjectiveUpdate { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return cou.AddNarrativeIDs(ids...) +} + +// Mutation returns the ControlObjectiveMutation object of the builder. +func (cou *ControlObjectiveUpdate) Mutation() *ControlObjectiveMutation { + return cou.mutation +} + +// ClearPolicy clears all "policy" edges to the InternalPolicy entity. +func (cou *ControlObjectiveUpdate) ClearPolicy() *ControlObjectiveUpdate { + cou.mutation.ClearPolicy() + return cou +} + +// RemovePolicyIDs removes the "policy" edge to InternalPolicy entities by IDs. +func (cou *ControlObjectiveUpdate) RemovePolicyIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.RemovePolicyIDs(ids...) + return cou +} + +// RemovePolicy removes "policy" edges to InternalPolicy entities. +func (cou *ControlObjectiveUpdate) RemovePolicy(i ...*InternalPolicy) *ControlObjectiveUpdate { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return cou.RemovePolicyIDs(ids...) +} + +// ClearControls clears all "controls" edges to the Control entity. +func (cou *ControlObjectiveUpdate) ClearControls() *ControlObjectiveUpdate { + cou.mutation.ClearControls() + return cou +} + +// RemoveControlIDs removes the "controls" edge to Control entities by IDs. +func (cou *ControlObjectiveUpdate) RemoveControlIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.RemoveControlIDs(ids...) + return cou +} + +// RemoveControls removes "controls" edges to Control entities. +func (cou *ControlObjectiveUpdate) RemoveControls(c ...*Control) *ControlObjectiveUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return cou.RemoveControlIDs(ids...) +} + +// ClearProcedures clears all "procedures" edges to the Procedure entity. +func (cou *ControlObjectiveUpdate) ClearProcedures() *ControlObjectiveUpdate { + cou.mutation.ClearProcedures() + return cou +} + +// RemoveProcedureIDs removes the "procedures" edge to Procedure entities by IDs. +func (cou *ControlObjectiveUpdate) RemoveProcedureIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.RemoveProcedureIDs(ids...) + return cou +} + +// RemoveProcedures removes "procedures" edges to Procedure entities. +func (cou *ControlObjectiveUpdate) RemoveProcedures(p ...*Procedure) *ControlObjectiveUpdate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return cou.RemoveProcedureIDs(ids...) +} + +// ClearRisks clears all "risks" edges to the Risk entity. +func (cou *ControlObjectiveUpdate) ClearRisks() *ControlObjectiveUpdate { + cou.mutation.ClearRisks() + return cou +} + +// RemoveRiskIDs removes the "risks" edge to Risk entities by IDs. +func (cou *ControlObjectiveUpdate) RemoveRiskIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.RemoveRiskIDs(ids...) + return cou +} + +// RemoveRisks removes "risks" edges to Risk entities. +func (cou *ControlObjectiveUpdate) RemoveRisks(r ...*Risk) *ControlObjectiveUpdate { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return cou.RemoveRiskIDs(ids...) +} + +// ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. +func (cou *ControlObjectiveUpdate) ClearSubcontrols() *ControlObjectiveUpdate { + cou.mutation.ClearSubcontrols() + return cou +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to Subcontrol entities by IDs. +func (cou *ControlObjectiveUpdate) RemoveSubcontrolIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.RemoveSubcontrolIDs(ids...) + return cou +} + +// RemoveSubcontrols removes "subcontrols" edges to Subcontrol entities. +func (cou *ControlObjectiveUpdate) RemoveSubcontrols(s ...*Subcontrol) *ControlObjectiveUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cou.RemoveSubcontrolIDs(ids...) +} + +// ClearStandard clears all "standard" edges to the Standard entity. +func (cou *ControlObjectiveUpdate) ClearStandard() *ControlObjectiveUpdate { + cou.mutation.ClearStandard() + return cou +} + +// RemoveStandardIDs removes the "standard" edge to Standard entities by IDs. +func (cou *ControlObjectiveUpdate) RemoveStandardIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.RemoveStandardIDs(ids...) + return cou +} + +// RemoveStandard removes "standard" edges to Standard entities. +func (cou *ControlObjectiveUpdate) RemoveStandard(s ...*Standard) *ControlObjectiveUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return cou.RemoveStandardIDs(ids...) +} + +// ClearNarratives clears all "narratives" edges to the Narrative entity. +func (cou *ControlObjectiveUpdate) ClearNarratives() *ControlObjectiveUpdate { + cou.mutation.ClearNarratives() + return cou +} + +// RemoveNarrativeIDs removes the "narratives" edge to Narrative entities by IDs. +func (cou *ControlObjectiveUpdate) RemoveNarrativeIDs(ids ...string) *ControlObjectiveUpdate { + cou.mutation.RemoveNarrativeIDs(ids...) + return cou +} + +// RemoveNarratives removes "narratives" edges to Narrative entities. +func (cou *ControlObjectiveUpdate) RemoveNarratives(n ...*Narrative) *ControlObjectiveUpdate { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return cou.RemoveNarrativeIDs(ids...) +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (cou *ControlObjectiveUpdate) Save(ctx context.Context) (int, error) { + if err := cou.defaults(); err != nil { + return 0, err + } + return withHooks(ctx, cou.sqlSave, cou.mutation, cou.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (cou *ControlObjectiveUpdate) SaveX(ctx context.Context) int { + affected, err := cou.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (cou *ControlObjectiveUpdate) Exec(ctx context.Context) error { + _, err := cou.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (cou *ControlObjectiveUpdate) ExecX(ctx context.Context) { + if err := cou.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (cou *ControlObjectiveUpdate) defaults() error { + if _, ok := cou.mutation.UpdatedAt(); !ok && !cou.mutation.UpdatedAtCleared() { + if controlobjective.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized controlobjective.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := controlobjective.UpdateDefaultUpdatedAt() + cou.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (cou *ControlObjectiveUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ControlObjectiveUpdate { + cou.modifiers = append(cou.modifiers, modifiers...) + return cou +} + +func (cou *ControlObjectiveUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(controlobjective.Table, controlobjective.Columns, sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString)) + if ps := cou.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if cou.mutation.CreatedAtCleared() { + _spec.ClearField(controlobjective.FieldCreatedAt, field.TypeTime) + } + if value, ok := cou.mutation.UpdatedAt(); ok { + _spec.SetField(controlobjective.FieldUpdatedAt, field.TypeTime, value) + } + if cou.mutation.UpdatedAtCleared() { + _spec.ClearField(controlobjective.FieldUpdatedAt, field.TypeTime) + } + if cou.mutation.CreatedByCleared() { + _spec.ClearField(controlobjective.FieldCreatedBy, field.TypeString) + } + if value, ok := cou.mutation.UpdatedBy(); ok { + _spec.SetField(controlobjective.FieldUpdatedBy, field.TypeString, value) + } + if cou.mutation.UpdatedByCleared() { + _spec.ClearField(controlobjective.FieldUpdatedBy, field.TypeString) + } + if value, ok := cou.mutation.DeletedAt(); ok { + _spec.SetField(controlobjective.FieldDeletedAt, field.TypeTime, value) + } + if cou.mutation.DeletedAtCleared() { + _spec.ClearField(controlobjective.FieldDeletedAt, field.TypeTime) + } + if value, ok := cou.mutation.DeletedBy(); ok { + _spec.SetField(controlobjective.FieldDeletedBy, field.TypeString, value) + } + if cou.mutation.DeletedByCleared() { + _spec.ClearField(controlobjective.FieldDeletedBy, field.TypeString) + } + if value, ok := cou.mutation.Tags(); ok { + _spec.SetField(controlobjective.FieldTags, field.TypeJSON, value) + } + if value, ok := cou.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, controlobjective.FieldTags, value) + }) + } + if cou.mutation.TagsCleared() { + _spec.ClearField(controlobjective.FieldTags, field.TypeJSON) + } + if value, ok := cou.mutation.Name(); ok { + _spec.SetField(controlobjective.FieldName, field.TypeString, value) + } + if value, ok := cou.mutation.Description(); ok { + _spec.SetField(controlobjective.FieldDescription, field.TypeString, value) + } + if cou.mutation.DescriptionCleared() { + _spec.ClearField(controlobjective.FieldDescription, field.TypeString) + } + if value, ok := cou.mutation.Status(); ok { + _spec.SetField(controlobjective.FieldStatus, field.TypeString, value) + } + if cou.mutation.StatusCleared() { + _spec.ClearField(controlobjective.FieldStatus, field.TypeString) + } + if value, ok := cou.mutation.ControlObjectiveType(); ok { + _spec.SetField(controlobjective.FieldControlObjectiveType, field.TypeString, value) + } + if cou.mutation.ControlObjectiveTypeCleared() { + _spec.ClearField(controlobjective.FieldControlObjectiveType, field.TypeString) + } + if value, ok := cou.mutation.Version(); ok { + _spec.SetField(controlobjective.FieldVersion, field.TypeString, value) + } + if cou.mutation.VersionCleared() { + _spec.ClearField(controlobjective.FieldVersion, field.TypeString) + } + if value, ok := cou.mutation.ControlNumber(); ok { + _spec.SetField(controlobjective.FieldControlNumber, field.TypeString, value) + } + if cou.mutation.ControlNumberCleared() { + _spec.ClearField(controlobjective.FieldControlNumber, field.TypeString) + } + if value, ok := cou.mutation.Family(); ok { + _spec.SetField(controlobjective.FieldFamily, field.TypeString, value) + } + if cou.mutation.FamilyCleared() { + _spec.ClearField(controlobjective.FieldFamily, field.TypeString) + } + if value, ok := cou.mutation.Class(); ok { + _spec.SetField(controlobjective.FieldClass, field.TypeString, value) + } + if cou.mutation.ClassCleared() { + _spec.ClearField(controlobjective.FieldClass, field.TypeString) + } + if value, ok := cou.mutation.Source(); ok { + _spec.SetField(controlobjective.FieldSource, field.TypeString, value) + } + if cou.mutation.SourceCleared() { + _spec.ClearField(controlobjective.FieldSource, field.TypeString) + } + if value, ok := cou.mutation.MappedFrameworks(); ok { + _spec.SetField(controlobjective.FieldMappedFrameworks, field.TypeString, value) + } + if cou.mutation.MappedFrameworksCleared() { + _spec.ClearField(controlobjective.FieldMappedFrameworks, field.TypeString) + } + if value, ok := cou.mutation.Details(); ok { + _spec.SetField(controlobjective.FieldDetails, field.TypeJSON, value) + } + if cou.mutation.DetailsCleared() { + _spec.ClearField(controlobjective.FieldDetails, field.TypeJSON) + } + if cou.mutation.PolicyCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.PolicyTable, + Columns: controlobjective.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.InternalPolicyControlobjectives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.RemovedPolicyIDs(); len(nodes) > 0 && !cou.mutation.PolicyCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.PolicyTable, + Columns: controlobjective.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.InternalPolicyControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.PolicyIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.PolicyTable, + Columns: controlobjective.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.InternalPolicyControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cou.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ControlsTable, + Columns: []string{controlobjective.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.Control + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.RemovedControlsIDs(); len(nodes) > 0 && !cou.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ControlsTable, + Columns: []string{controlobjective.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.Control + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.ControlsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ControlsTable, + Columns: []string{controlobjective.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.Control + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cou.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ProceduresTable, + Columns: []string{controlobjective.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.Procedure + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.RemovedProceduresIDs(); len(nodes) > 0 && !cou.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ProceduresTable, + Columns: []string{controlobjective.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.Procedure + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ProceduresTable, + Columns: []string{controlobjective.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.Procedure + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cou.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.RisksTable, + Columns: []string{controlobjective.RisksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.Risk + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.RemovedRisksIDs(); len(nodes) > 0 && !cou.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.RisksTable, + Columns: []string{controlobjective.RisksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.Risk + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.RisksIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.RisksTable, + Columns: []string{controlobjective.RisksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.Risk + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cou.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.SubcontrolsTable, + Columns: []string{controlobjective.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.Subcontrol + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.RemovedSubcontrolsIDs(); len(nodes) > 0 && !cou.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.SubcontrolsTable, + Columns: []string{controlobjective.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.SubcontrolsTable, + Columns: []string{controlobjective.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cou.mutation.StandardCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.StandardTable, + Columns: controlobjective.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.StandardControlobjectives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.RemovedStandardIDs(); len(nodes) > 0 && !cou.mutation.StandardCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.StandardTable, + Columns: controlobjective.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.StandardControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.StandardIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.StandardTable, + Columns: controlobjective.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.StandardControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if cou.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: controlobjective.NarrativesTable, + Columns: controlobjective.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.ControlObjectiveNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.RemovedNarrativesIDs(); len(nodes) > 0 && !cou.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: controlobjective.NarrativesTable, + Columns: controlobjective.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.ControlObjectiveNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := cou.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: controlobjective.NarrativesTable, + Columns: controlobjective.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = cou.schemaConfig.ControlObjectiveNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = cou.schemaConfig.ControlObjective + ctx = internal.NewSchemaConfigContext(ctx, cou.schemaConfig) + _spec.AddModifiers(cou.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, cou.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{controlobjective.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + cou.mutation.done = true + return n, nil +} + +// ControlObjectiveUpdateOne is the builder for updating a single ControlObjective entity. +type ControlObjectiveUpdateOne struct { + config + fields []string + hooks []Hook + mutation *ControlObjectiveMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (couo *ControlObjectiveUpdateOne) SetUpdatedAt(t time.Time) *ControlObjectiveUpdateOne { + couo.mutation.SetUpdatedAt(t) + return couo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (couo *ControlObjectiveUpdateOne) ClearUpdatedAt() *ControlObjectiveUpdateOne { + couo.mutation.ClearUpdatedAt() + return couo +} + +// SetUpdatedBy sets the "updated_by" field. +func (couo *ControlObjectiveUpdateOne) SetUpdatedBy(s string) *ControlObjectiveUpdateOne { + couo.mutation.SetUpdatedBy(s) + return couo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableUpdatedBy(s *string) *ControlObjectiveUpdateOne { + if s != nil { + couo.SetUpdatedBy(*s) + } + return couo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (couo *ControlObjectiveUpdateOne) ClearUpdatedBy() *ControlObjectiveUpdateOne { + couo.mutation.ClearUpdatedBy() + return couo +} + +// SetDeletedAt sets the "deleted_at" field. +func (couo *ControlObjectiveUpdateOne) SetDeletedAt(t time.Time) *ControlObjectiveUpdateOne { + couo.mutation.SetDeletedAt(t) + return couo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableDeletedAt(t *time.Time) *ControlObjectiveUpdateOne { + if t != nil { + couo.SetDeletedAt(*t) + } + return couo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (couo *ControlObjectiveUpdateOne) ClearDeletedAt() *ControlObjectiveUpdateOne { + couo.mutation.ClearDeletedAt() + return couo +} + +// SetDeletedBy sets the "deleted_by" field. +func (couo *ControlObjectiveUpdateOne) SetDeletedBy(s string) *ControlObjectiveUpdateOne { + couo.mutation.SetDeletedBy(s) + return couo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableDeletedBy(s *string) *ControlObjectiveUpdateOne { + if s != nil { + couo.SetDeletedBy(*s) + } + return couo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (couo *ControlObjectiveUpdateOne) ClearDeletedBy() *ControlObjectiveUpdateOne { + couo.mutation.ClearDeletedBy() + return couo +} + +// SetTags sets the "tags" field. +func (couo *ControlObjectiveUpdateOne) SetTags(s []string) *ControlObjectiveUpdateOne { + couo.mutation.SetTags(s) + return couo +} + +// AppendTags appends s to the "tags" field. +func (couo *ControlObjectiveUpdateOne) AppendTags(s []string) *ControlObjectiveUpdateOne { + couo.mutation.AppendTags(s) + return couo +} + +// ClearTags clears the value of the "tags" field. +func (couo *ControlObjectiveUpdateOne) ClearTags() *ControlObjectiveUpdateOne { + couo.mutation.ClearTags() + return couo +} + +// SetName sets the "name" field. +func (couo *ControlObjectiveUpdateOne) SetName(s string) *ControlObjectiveUpdateOne { + couo.mutation.SetName(s) + return couo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableName(s *string) *ControlObjectiveUpdateOne { + if s != nil { + couo.SetName(*s) + } + return couo +} + +// SetDescription sets the "description" field. +func (couo *ControlObjectiveUpdateOne) SetDescription(s string) *ControlObjectiveUpdateOne { + couo.mutation.SetDescription(s) + return couo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableDescription(s *string) *ControlObjectiveUpdateOne { + if s != nil { + couo.SetDescription(*s) + } + return couo +} + +// ClearDescription clears the value of the "description" field. +func (couo *ControlObjectiveUpdateOne) ClearDescription() *ControlObjectiveUpdateOne { + couo.mutation.ClearDescription() + return couo +} + +// SetStatus sets the "status" field. +func (couo *ControlObjectiveUpdateOne) SetStatus(s string) *ControlObjectiveUpdateOne { + couo.mutation.SetStatus(s) + return couo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableStatus(s *string) *ControlObjectiveUpdateOne { + if s != nil { + couo.SetStatus(*s) + } + return couo +} + +// ClearStatus clears the value of the "status" field. +func (couo *ControlObjectiveUpdateOne) ClearStatus() *ControlObjectiveUpdateOne { + couo.mutation.ClearStatus() + return couo +} + +// SetControlObjectiveType sets the "control_objective_type" field. +func (couo *ControlObjectiveUpdateOne) SetControlObjectiveType(s string) *ControlObjectiveUpdateOne { + couo.mutation.SetControlObjectiveType(s) + return couo +} + +// SetNillableControlObjectiveType sets the "control_objective_type" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableControlObjectiveType(s *string) *ControlObjectiveUpdateOne { + if s != nil { + couo.SetControlObjectiveType(*s) + } + return couo +} + +// ClearControlObjectiveType clears the value of the "control_objective_type" field. +func (couo *ControlObjectiveUpdateOne) ClearControlObjectiveType() *ControlObjectiveUpdateOne { + couo.mutation.ClearControlObjectiveType() + return couo +} + +// SetVersion sets the "version" field. +func (couo *ControlObjectiveUpdateOne) SetVersion(s string) *ControlObjectiveUpdateOne { + couo.mutation.SetVersion(s) + return couo +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableVersion(s *string) *ControlObjectiveUpdateOne { + if s != nil { + couo.SetVersion(*s) + } + return couo +} + +// ClearVersion clears the value of the "version" field. +func (couo *ControlObjectiveUpdateOne) ClearVersion() *ControlObjectiveUpdateOne { + couo.mutation.ClearVersion() + return couo +} + +// SetControlNumber sets the "control_number" field. +func (couo *ControlObjectiveUpdateOne) SetControlNumber(s string) *ControlObjectiveUpdateOne { + couo.mutation.SetControlNumber(s) + return couo +} + +// SetNillableControlNumber sets the "control_number" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableControlNumber(s *string) *ControlObjectiveUpdateOne { + if s != nil { + couo.SetControlNumber(*s) + } + return couo +} + +// ClearControlNumber clears the value of the "control_number" field. +func (couo *ControlObjectiveUpdateOne) ClearControlNumber() *ControlObjectiveUpdateOne { + couo.mutation.ClearControlNumber() + return couo +} + +// SetFamily sets the "family" field. +func (couo *ControlObjectiveUpdateOne) SetFamily(s string) *ControlObjectiveUpdateOne { + couo.mutation.SetFamily(s) + return couo +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableFamily(s *string) *ControlObjectiveUpdateOne { + if s != nil { + couo.SetFamily(*s) + } + return couo +} + +// ClearFamily clears the value of the "family" field. +func (couo *ControlObjectiveUpdateOne) ClearFamily() *ControlObjectiveUpdateOne { + couo.mutation.ClearFamily() + return couo +} + +// SetClass sets the "class" field. +func (couo *ControlObjectiveUpdateOne) SetClass(s string) *ControlObjectiveUpdateOne { + couo.mutation.SetClass(s) + return couo +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableClass(s *string) *ControlObjectiveUpdateOne { + if s != nil { + couo.SetClass(*s) + } + return couo +} + +// ClearClass clears the value of the "class" field. +func (couo *ControlObjectiveUpdateOne) ClearClass() *ControlObjectiveUpdateOne { + couo.mutation.ClearClass() + return couo +} + +// SetSource sets the "source" field. +func (couo *ControlObjectiveUpdateOne) SetSource(s string) *ControlObjectiveUpdateOne { + couo.mutation.SetSource(s) + return couo +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableSource(s *string) *ControlObjectiveUpdateOne { + if s != nil { + couo.SetSource(*s) + } + return couo +} + +// ClearSource clears the value of the "source" field. +func (couo *ControlObjectiveUpdateOne) ClearSource() *ControlObjectiveUpdateOne { + couo.mutation.ClearSource() + return couo +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (couo *ControlObjectiveUpdateOne) SetMappedFrameworks(s string) *ControlObjectiveUpdateOne { + couo.mutation.SetMappedFrameworks(s) + return couo +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (couo *ControlObjectiveUpdateOne) SetNillableMappedFrameworks(s *string) *ControlObjectiveUpdateOne { + if s != nil { + couo.SetMappedFrameworks(*s) + } + return couo +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (couo *ControlObjectiveUpdateOne) ClearMappedFrameworks() *ControlObjectiveUpdateOne { + couo.mutation.ClearMappedFrameworks() + return couo +} + +// SetDetails sets the "details" field. +func (couo *ControlObjectiveUpdateOne) SetDetails(m map[string]interface{}) *ControlObjectiveUpdateOne { + couo.mutation.SetDetails(m) + return couo +} + +// ClearDetails clears the value of the "details" field. +func (couo *ControlObjectiveUpdateOne) ClearDetails() *ControlObjectiveUpdateOne { + couo.mutation.ClearDetails() + return couo +} + +// AddPolicyIDs adds the "policy" edge to the InternalPolicy entity by IDs. +func (couo *ControlObjectiveUpdateOne) AddPolicyIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.AddPolicyIDs(ids...) + return couo +} + +// AddPolicy adds the "policy" edges to the InternalPolicy entity. +func (couo *ControlObjectiveUpdateOne) AddPolicy(i ...*InternalPolicy) *ControlObjectiveUpdateOne { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return couo.AddPolicyIDs(ids...) +} + +// AddControlIDs adds the "controls" edge to the Control entity by IDs. +func (couo *ControlObjectiveUpdateOne) AddControlIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.AddControlIDs(ids...) + return couo +} + +// AddControls adds the "controls" edges to the Control entity. +func (couo *ControlObjectiveUpdateOne) AddControls(c ...*Control) *ControlObjectiveUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return couo.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (couo *ControlObjectiveUpdateOne) AddProcedureIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.AddProcedureIDs(ids...) + return couo +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (couo *ControlObjectiveUpdateOne) AddProcedures(p ...*Procedure) *ControlObjectiveUpdateOne { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return couo.AddProcedureIDs(ids...) +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. +func (couo *ControlObjectiveUpdateOne) AddRiskIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.AddRiskIDs(ids...) + return couo +} + +// AddRisks adds the "risks" edges to the Risk entity. +func (couo *ControlObjectiveUpdateOne) AddRisks(r ...*Risk) *ControlObjectiveUpdateOne { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return couo.AddRiskIDs(ids...) +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (couo *ControlObjectiveUpdateOne) AddSubcontrolIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.AddSubcontrolIDs(ids...) + return couo +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (couo *ControlObjectiveUpdateOne) AddSubcontrols(s ...*Subcontrol) *ControlObjectiveUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return couo.AddSubcontrolIDs(ids...) +} + +// AddStandardIDs adds the "standard" edge to the Standard entity by IDs. +func (couo *ControlObjectiveUpdateOne) AddStandardIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.AddStandardIDs(ids...) + return couo +} + +// AddStandard adds the "standard" edges to the Standard entity. +func (couo *ControlObjectiveUpdateOne) AddStandard(s ...*Standard) *ControlObjectiveUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return couo.AddStandardIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (couo *ControlObjectiveUpdateOne) AddNarrativeIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.AddNarrativeIDs(ids...) + return couo +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (couo *ControlObjectiveUpdateOne) AddNarratives(n ...*Narrative) *ControlObjectiveUpdateOne { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return couo.AddNarrativeIDs(ids...) +} + +// Mutation returns the ControlObjectiveMutation object of the builder. +func (couo *ControlObjectiveUpdateOne) Mutation() *ControlObjectiveMutation { + return couo.mutation +} + +// ClearPolicy clears all "policy" edges to the InternalPolicy entity. +func (couo *ControlObjectiveUpdateOne) ClearPolicy() *ControlObjectiveUpdateOne { + couo.mutation.ClearPolicy() + return couo +} + +// RemovePolicyIDs removes the "policy" edge to InternalPolicy entities by IDs. +func (couo *ControlObjectiveUpdateOne) RemovePolicyIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.RemovePolicyIDs(ids...) + return couo +} + +// RemovePolicy removes "policy" edges to InternalPolicy entities. +func (couo *ControlObjectiveUpdateOne) RemovePolicy(i ...*InternalPolicy) *ControlObjectiveUpdateOne { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return couo.RemovePolicyIDs(ids...) +} + +// ClearControls clears all "controls" edges to the Control entity. +func (couo *ControlObjectiveUpdateOne) ClearControls() *ControlObjectiveUpdateOne { + couo.mutation.ClearControls() + return couo +} + +// RemoveControlIDs removes the "controls" edge to Control entities by IDs. +func (couo *ControlObjectiveUpdateOne) RemoveControlIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.RemoveControlIDs(ids...) + return couo +} + +// RemoveControls removes "controls" edges to Control entities. +func (couo *ControlObjectiveUpdateOne) RemoveControls(c ...*Control) *ControlObjectiveUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return couo.RemoveControlIDs(ids...) +} + +// ClearProcedures clears all "procedures" edges to the Procedure entity. +func (couo *ControlObjectiveUpdateOne) ClearProcedures() *ControlObjectiveUpdateOne { + couo.mutation.ClearProcedures() + return couo +} + +// RemoveProcedureIDs removes the "procedures" edge to Procedure entities by IDs. +func (couo *ControlObjectiveUpdateOne) RemoveProcedureIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.RemoveProcedureIDs(ids...) + return couo +} + +// RemoveProcedures removes "procedures" edges to Procedure entities. +func (couo *ControlObjectiveUpdateOne) RemoveProcedures(p ...*Procedure) *ControlObjectiveUpdateOne { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return couo.RemoveProcedureIDs(ids...) +} + +// ClearRisks clears all "risks" edges to the Risk entity. +func (couo *ControlObjectiveUpdateOne) ClearRisks() *ControlObjectiveUpdateOne { + couo.mutation.ClearRisks() + return couo +} + +// RemoveRiskIDs removes the "risks" edge to Risk entities by IDs. +func (couo *ControlObjectiveUpdateOne) RemoveRiskIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.RemoveRiskIDs(ids...) + return couo +} + +// RemoveRisks removes "risks" edges to Risk entities. +func (couo *ControlObjectiveUpdateOne) RemoveRisks(r ...*Risk) *ControlObjectiveUpdateOne { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return couo.RemoveRiskIDs(ids...) +} + +// ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. +func (couo *ControlObjectiveUpdateOne) ClearSubcontrols() *ControlObjectiveUpdateOne { + couo.mutation.ClearSubcontrols() + return couo +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to Subcontrol entities by IDs. +func (couo *ControlObjectiveUpdateOne) RemoveSubcontrolIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.RemoveSubcontrolIDs(ids...) + return couo +} + +// RemoveSubcontrols removes "subcontrols" edges to Subcontrol entities. +func (couo *ControlObjectiveUpdateOne) RemoveSubcontrols(s ...*Subcontrol) *ControlObjectiveUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return couo.RemoveSubcontrolIDs(ids...) +} + +// ClearStandard clears all "standard" edges to the Standard entity. +func (couo *ControlObjectiveUpdateOne) ClearStandard() *ControlObjectiveUpdateOne { + couo.mutation.ClearStandard() + return couo +} + +// RemoveStandardIDs removes the "standard" edge to Standard entities by IDs. +func (couo *ControlObjectiveUpdateOne) RemoveStandardIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.RemoveStandardIDs(ids...) + return couo +} + +// RemoveStandard removes "standard" edges to Standard entities. +func (couo *ControlObjectiveUpdateOne) RemoveStandard(s ...*Standard) *ControlObjectiveUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return couo.RemoveStandardIDs(ids...) +} + +// ClearNarratives clears all "narratives" edges to the Narrative entity. +func (couo *ControlObjectiveUpdateOne) ClearNarratives() *ControlObjectiveUpdateOne { + couo.mutation.ClearNarratives() + return couo +} + +// RemoveNarrativeIDs removes the "narratives" edge to Narrative entities by IDs. +func (couo *ControlObjectiveUpdateOne) RemoveNarrativeIDs(ids ...string) *ControlObjectiveUpdateOne { + couo.mutation.RemoveNarrativeIDs(ids...) + return couo +} + +// RemoveNarratives removes "narratives" edges to Narrative entities. +func (couo *ControlObjectiveUpdateOne) RemoveNarratives(n ...*Narrative) *ControlObjectiveUpdateOne { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return couo.RemoveNarrativeIDs(ids...) +} + +// Where appends a list predicates to the ControlObjectiveUpdate builder. +func (couo *ControlObjectiveUpdateOne) Where(ps ...predicate.ControlObjective) *ControlObjectiveUpdateOne { + couo.mutation.Where(ps...) + return couo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (couo *ControlObjectiveUpdateOne) Select(field string, fields ...string) *ControlObjectiveUpdateOne { + couo.fields = append([]string{field}, fields...) + return couo +} + +// Save executes the query and returns the updated ControlObjective entity. +func (couo *ControlObjectiveUpdateOne) Save(ctx context.Context) (*ControlObjective, error) { + if err := couo.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, couo.sqlSave, couo.mutation, couo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (couo *ControlObjectiveUpdateOne) SaveX(ctx context.Context) *ControlObjective { + node, err := couo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (couo *ControlObjectiveUpdateOne) Exec(ctx context.Context) error { + _, err := couo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (couo *ControlObjectiveUpdateOne) ExecX(ctx context.Context) { + if err := couo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (couo *ControlObjectiveUpdateOne) defaults() error { + if _, ok := couo.mutation.UpdatedAt(); !ok && !couo.mutation.UpdatedAtCleared() { + if controlobjective.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized controlobjective.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := controlobjective.UpdateDefaultUpdatedAt() + couo.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (couo *ControlObjectiveUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ControlObjectiveUpdateOne { + couo.modifiers = append(couo.modifiers, modifiers...) + return couo +} + +func (couo *ControlObjectiveUpdateOne) sqlSave(ctx context.Context) (_node *ControlObjective, err error) { + _spec := sqlgraph.NewUpdateSpec(controlobjective.Table, controlobjective.Columns, sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString)) + id, ok := couo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "ControlObjective.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := couo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, controlobjective.FieldID) + for _, f := range fields { + if !controlobjective.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != controlobjective.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := couo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if couo.mutation.CreatedAtCleared() { + _spec.ClearField(controlobjective.FieldCreatedAt, field.TypeTime) + } + if value, ok := couo.mutation.UpdatedAt(); ok { + _spec.SetField(controlobjective.FieldUpdatedAt, field.TypeTime, value) + } + if couo.mutation.UpdatedAtCleared() { + _spec.ClearField(controlobjective.FieldUpdatedAt, field.TypeTime) + } + if couo.mutation.CreatedByCleared() { + _spec.ClearField(controlobjective.FieldCreatedBy, field.TypeString) + } + if value, ok := couo.mutation.UpdatedBy(); ok { + _spec.SetField(controlobjective.FieldUpdatedBy, field.TypeString, value) + } + if couo.mutation.UpdatedByCleared() { + _spec.ClearField(controlobjective.FieldUpdatedBy, field.TypeString) + } + if value, ok := couo.mutation.DeletedAt(); ok { + _spec.SetField(controlobjective.FieldDeletedAt, field.TypeTime, value) + } + if couo.mutation.DeletedAtCleared() { + _spec.ClearField(controlobjective.FieldDeletedAt, field.TypeTime) + } + if value, ok := couo.mutation.DeletedBy(); ok { + _spec.SetField(controlobjective.FieldDeletedBy, field.TypeString, value) + } + if couo.mutation.DeletedByCleared() { + _spec.ClearField(controlobjective.FieldDeletedBy, field.TypeString) + } + if value, ok := couo.mutation.Tags(); ok { + _spec.SetField(controlobjective.FieldTags, field.TypeJSON, value) + } + if value, ok := couo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, controlobjective.FieldTags, value) + }) + } + if couo.mutation.TagsCleared() { + _spec.ClearField(controlobjective.FieldTags, field.TypeJSON) + } + if value, ok := couo.mutation.Name(); ok { + _spec.SetField(controlobjective.FieldName, field.TypeString, value) + } + if value, ok := couo.mutation.Description(); ok { + _spec.SetField(controlobjective.FieldDescription, field.TypeString, value) + } + if couo.mutation.DescriptionCleared() { + _spec.ClearField(controlobjective.FieldDescription, field.TypeString) + } + if value, ok := couo.mutation.Status(); ok { + _spec.SetField(controlobjective.FieldStatus, field.TypeString, value) + } + if couo.mutation.StatusCleared() { + _spec.ClearField(controlobjective.FieldStatus, field.TypeString) + } + if value, ok := couo.mutation.ControlObjectiveType(); ok { + _spec.SetField(controlobjective.FieldControlObjectiveType, field.TypeString, value) + } + if couo.mutation.ControlObjectiveTypeCleared() { + _spec.ClearField(controlobjective.FieldControlObjectiveType, field.TypeString) + } + if value, ok := couo.mutation.Version(); ok { + _spec.SetField(controlobjective.FieldVersion, field.TypeString, value) + } + if couo.mutation.VersionCleared() { + _spec.ClearField(controlobjective.FieldVersion, field.TypeString) + } + if value, ok := couo.mutation.ControlNumber(); ok { + _spec.SetField(controlobjective.FieldControlNumber, field.TypeString, value) + } + if couo.mutation.ControlNumberCleared() { + _spec.ClearField(controlobjective.FieldControlNumber, field.TypeString) + } + if value, ok := couo.mutation.Family(); ok { + _spec.SetField(controlobjective.FieldFamily, field.TypeString, value) + } + if couo.mutation.FamilyCleared() { + _spec.ClearField(controlobjective.FieldFamily, field.TypeString) + } + if value, ok := couo.mutation.Class(); ok { + _spec.SetField(controlobjective.FieldClass, field.TypeString, value) + } + if couo.mutation.ClassCleared() { + _spec.ClearField(controlobjective.FieldClass, field.TypeString) + } + if value, ok := couo.mutation.Source(); ok { + _spec.SetField(controlobjective.FieldSource, field.TypeString, value) + } + if couo.mutation.SourceCleared() { + _spec.ClearField(controlobjective.FieldSource, field.TypeString) + } + if value, ok := couo.mutation.MappedFrameworks(); ok { + _spec.SetField(controlobjective.FieldMappedFrameworks, field.TypeString, value) + } + if couo.mutation.MappedFrameworksCleared() { + _spec.ClearField(controlobjective.FieldMappedFrameworks, field.TypeString) + } + if value, ok := couo.mutation.Details(); ok { + _spec.SetField(controlobjective.FieldDetails, field.TypeJSON, value) + } + if couo.mutation.DetailsCleared() { + _spec.ClearField(controlobjective.FieldDetails, field.TypeJSON) + } + if couo.mutation.PolicyCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.PolicyTable, + Columns: controlobjective.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.InternalPolicyControlobjectives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.RemovedPolicyIDs(); len(nodes) > 0 && !couo.mutation.PolicyCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.PolicyTable, + Columns: controlobjective.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.InternalPolicyControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.PolicyIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.PolicyTable, + Columns: controlobjective.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.InternalPolicyControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if couo.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ControlsTable, + Columns: []string{controlobjective.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.Control + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.RemovedControlsIDs(); len(nodes) > 0 && !couo.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ControlsTable, + Columns: []string{controlobjective.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.Control + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.ControlsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ControlsTable, + Columns: []string{controlobjective.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.Control + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if couo.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ProceduresTable, + Columns: []string{controlobjective.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.Procedure + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.RemovedProceduresIDs(); len(nodes) > 0 && !couo.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ProceduresTable, + Columns: []string{controlobjective.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.Procedure + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ProceduresTable, + Columns: []string{controlobjective.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.Procedure + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if couo.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.RisksTable, + Columns: []string{controlobjective.RisksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.Risk + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.RemovedRisksIDs(); len(nodes) > 0 && !couo.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.RisksTable, + Columns: []string{controlobjective.RisksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.Risk + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.RisksIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.RisksTable, + Columns: []string{controlobjective.RisksColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.Risk + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if couo.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.SubcontrolsTable, + Columns: []string{controlobjective.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.Subcontrol + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.RemovedSubcontrolsIDs(); len(nodes) > 0 && !couo.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.SubcontrolsTable, + Columns: []string{controlobjective.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.SubcontrolsTable, + Columns: []string{controlobjective.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if couo.mutation.StandardCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.StandardTable, + Columns: controlobjective.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.StandardControlobjectives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.RemovedStandardIDs(); len(nodes) > 0 && !couo.mutation.StandardCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.StandardTable, + Columns: controlobjective.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.StandardControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.StandardIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.StandardTable, + Columns: controlobjective.StandardPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.StandardControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if couo.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: controlobjective.NarrativesTable, + Columns: controlobjective.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.ControlObjectiveNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.RemovedNarrativesIDs(); len(nodes) > 0 && !couo.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: controlobjective.NarrativesTable, + Columns: controlobjective.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.ControlObjectiveNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := couo.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: controlobjective.NarrativesTable, + Columns: controlobjective.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = couo.schemaConfig.ControlObjectiveNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = couo.schemaConfig.ControlObjective + ctx = internal.NewSchemaConfigContext(ctx, couo.schemaConfig) + _spec.AddModifiers(couo.modifiers...) + _node = &ControlObjective{config: couo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, couo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{controlobjective.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + couo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/controlobjectivehistory.go b/internal/ent/generated/controlobjectivehistory.go new file mode 100644 index 00000000..ba9e9eee --- /dev/null +++ b/internal/ent/generated/controlobjectivehistory.go @@ -0,0 +1,345 @@ +// 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/internal/ent/generated/controlobjectivehistory" + "github.com/theopenlane/entx/history" +) + +// ControlObjectiveHistory is the model entity for the ControlObjectiveHistory schema. +type ControlObjectiveHistory 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the control objective + Name string `json:"name,omitempty"` + // description of the control objective + Description string `json:"description,omitempty"` + // status of the control objective + Status string `json:"status,omitempty"` + // type of the control objective + ControlObjectiveType string `json:"control_objective_type,omitempty"` + // version of the control objective + Version string `json:"version,omitempty"` + // number of the control objective + ControlNumber string `json:"control_number,omitempty"` + // family of the control objective + Family string `json:"family,omitempty"` + // class associated with the control objective + Class string `json:"class,omitempty"` + // source of the control objective, e.g. framework, template, user-defined, etc. + Source string `json:"source,omitempty"` + // mapped frameworks + MappedFrameworks string `json:"mapped_frameworks,omitempty"` + // json data including details of the control objective + Details map[string]interface{} `json:"details,omitempty"` + selectValues sql.SelectValues +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*ControlObjectiveHistory) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case controlobjectivehistory.FieldTags, controlobjectivehistory.FieldDetails: + values[i] = new([]byte) + case controlobjectivehistory.FieldOperation: + values[i] = new(history.OpType) + case controlobjectivehistory.FieldID, controlobjectivehistory.FieldRef, controlobjectivehistory.FieldCreatedBy, controlobjectivehistory.FieldUpdatedBy, controlobjectivehistory.FieldDeletedBy, controlobjectivehistory.FieldMappingID, controlobjectivehistory.FieldName, controlobjectivehistory.FieldDescription, controlobjectivehistory.FieldStatus, controlobjectivehistory.FieldControlObjectiveType, controlobjectivehistory.FieldVersion, controlobjectivehistory.FieldControlNumber, controlobjectivehistory.FieldFamily, controlobjectivehistory.FieldClass, controlobjectivehistory.FieldSource, controlobjectivehistory.FieldMappedFrameworks: + values[i] = new(sql.NullString) + case controlobjectivehistory.FieldHistoryTime, controlobjectivehistory.FieldCreatedAt, controlobjectivehistory.FieldUpdatedAt, controlobjectivehistory.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 ControlObjectiveHistory fields. +func (coh *ControlObjectiveHistory) 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 controlobjectivehistory.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + coh.ID = value.String + } + case controlobjectivehistory.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 { + coh.HistoryTime = value.Time + } + case controlobjectivehistory.FieldRef: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field ref", values[i]) + } else if value.Valid { + coh.Ref = value.String + } + case controlobjectivehistory.FieldOperation: + if value, ok := values[i].(*history.OpType); !ok { + return fmt.Errorf("unexpected type %T for field operation", values[i]) + } else if value != nil { + coh.Operation = *value + } + case controlobjectivehistory.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 { + coh.CreatedAt = value.Time + } + case controlobjectivehistory.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 { + coh.UpdatedAt = value.Time + } + case controlobjectivehistory.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 { + coh.CreatedBy = value.String + } + case controlobjectivehistory.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 { + coh.UpdatedBy = value.String + } + case controlobjectivehistory.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 { + coh.DeletedAt = value.Time + } + case controlobjectivehistory.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 { + coh.DeletedBy = value.String + } + case controlobjectivehistory.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + coh.MappingID = value.String + } + case controlobjectivehistory.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, &coh.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case controlobjectivehistory.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + coh.Name = value.String + } + case controlobjectivehistory.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + coh.Description = value.String + } + case controlobjectivehistory.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + coh.Status = value.String + } + case controlobjectivehistory.FieldControlObjectiveType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_objective_type", values[i]) + } else if value.Valid { + coh.ControlObjectiveType = value.String + } + case controlobjectivehistory.FieldVersion: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field version", values[i]) + } else if value.Valid { + coh.Version = value.String + } + case controlobjectivehistory.FieldControlNumber: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_number", values[i]) + } else if value.Valid { + coh.ControlNumber = value.String + } + case controlobjectivehistory.FieldFamily: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field family", values[i]) + } else if value.Valid { + coh.Family = value.String + } + case controlobjectivehistory.FieldClass: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field class", values[i]) + } else if value.Valid { + coh.Class = value.String + } + case controlobjectivehistory.FieldSource: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field source", values[i]) + } else if value.Valid { + coh.Source = value.String + } + case controlobjectivehistory.FieldMappedFrameworks: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapped_frameworks", values[i]) + } else if value.Valid { + coh.MappedFrameworks = value.String + } + case controlobjectivehistory.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &coh.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + coh.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the ControlObjectiveHistory. +// This includes values selected through modifiers, order, etc. +func (coh *ControlObjectiveHistory) Value(name string) (ent.Value, error) { + return coh.selectValues.Get(name) +} + +// Update returns a builder for updating this ControlObjectiveHistory. +// Note that you need to call ControlObjectiveHistory.Unwrap() before calling this method if this ControlObjectiveHistory +// was returned from a transaction, and the transaction was committed or rolled back. +func (coh *ControlObjectiveHistory) Update() *ControlObjectiveHistoryUpdateOne { + return NewControlObjectiveHistoryClient(coh.config).UpdateOne(coh) +} + +// Unwrap unwraps the ControlObjectiveHistory 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 (coh *ControlObjectiveHistory) Unwrap() *ControlObjectiveHistory { + _tx, ok := coh.config.driver.(*txDriver) + if !ok { + panic("generated: ControlObjectiveHistory is not a transactional entity") + } + coh.config.driver = _tx.drv + return coh +} + +// String implements the fmt.Stringer. +func (coh *ControlObjectiveHistory) String() string { + var builder strings.Builder + builder.WriteString("ControlObjectiveHistory(") + builder.WriteString(fmt.Sprintf("id=%v, ", coh.ID)) + builder.WriteString("history_time=") + builder.WriteString(coh.HistoryTime.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("ref=") + builder.WriteString(coh.Ref) + builder.WriteString(", ") + builder.WriteString("operation=") + builder.WriteString(fmt.Sprintf("%v", coh.Operation)) + builder.WriteString(", ") + builder.WriteString("created_at=") + builder.WriteString(coh.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(coh.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(coh.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(coh.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(coh.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(coh.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(coh.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", coh.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(coh.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(coh.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(coh.Status) + builder.WriteString(", ") + builder.WriteString("control_objective_type=") + builder.WriteString(coh.ControlObjectiveType) + builder.WriteString(", ") + builder.WriteString("version=") + builder.WriteString(coh.Version) + builder.WriteString(", ") + builder.WriteString("control_number=") + builder.WriteString(coh.ControlNumber) + builder.WriteString(", ") + builder.WriteString("family=") + builder.WriteString(coh.Family) + builder.WriteString(", ") + builder.WriteString("class=") + builder.WriteString(coh.Class) + builder.WriteString(", ") + builder.WriteString("source=") + builder.WriteString(coh.Source) + builder.WriteString(", ") + builder.WriteString("mapped_frameworks=") + builder.WriteString(coh.MappedFrameworks) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", coh.Details)) + builder.WriteByte(')') + return builder.String() +} + +// ControlObjectiveHistories is a parsable slice of ControlObjectiveHistory. +type ControlObjectiveHistories []*ControlObjectiveHistory diff --git a/internal/ent/generated/controlobjectivehistory/controlobjectivehistory.go b/internal/ent/generated/controlobjectivehistory/controlobjectivehistory.go new file mode 100644 index 00000000..ed7b5b63 --- /dev/null +++ b/internal/ent/generated/controlobjectivehistory/controlobjectivehistory.go @@ -0,0 +1,244 @@ +// Code generated by ent, DO NOT EDIT. + +package controlobjectivehistory + +import ( + "fmt" + "time" + + "entgo.io/ent/dialect/sql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/entx/history" +) + +const ( + // Label holds the string label denoting the controlobjectivehistory type in the database. + Label = "control_objective_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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldControlObjectiveType holds the string denoting the control_objective_type field in the database. + FieldControlObjectiveType = "control_objective_type" + // FieldVersion holds the string denoting the version field in the database. + FieldVersion = "version" + // FieldControlNumber holds the string denoting the control_number field in the database. + FieldControlNumber = "control_number" + // FieldFamily holds the string denoting the family field in the database. + FieldFamily = "family" + // FieldClass holds the string denoting the class field in the database. + FieldClass = "class" + // FieldSource holds the string denoting the source field in the database. + FieldSource = "source" + // FieldMappedFrameworks holds the string denoting the mapped_frameworks field in the database. + FieldMappedFrameworks = "mapped_frameworks" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // Table holds the table name of the controlobjectivehistory in the database. + Table = "control_objective_history" +) + +// Columns holds all SQL columns for controlobjectivehistory fields. +var Columns = []string{ + FieldID, + FieldHistoryTime, + FieldRef, + FieldOperation, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldControlObjectiveType, + FieldVersion, + FieldControlNumber, + FieldFamily, + FieldClass, + FieldSource, + FieldMappedFrameworks, + FieldDetails, +} + +// 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 +} + +var ( + // 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 + // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. + UpdateDefaultUpdatedAt func() time.Time + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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("controlobjectivehistory: invalid enum value for operation field: %q", o) + } +} + +// OrderOption defines the ordering options for the ControlObjectiveHistory 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByControlObjectiveType orders the results by the control_objective_type field. +func ByControlObjectiveType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldControlObjectiveType, opts...).ToFunc() +} + +// ByVersion orders the results by the version field. +func ByVersion(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldVersion, opts...).ToFunc() +} + +// ByControlNumber orders the results by the control_number field. +func ByControlNumber(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldControlNumber, opts...).ToFunc() +} + +// ByFamily orders the results by the family field. +func ByFamily(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldFamily, opts...).ToFunc() +} + +// ByClass orders the results by the class field. +func ByClass(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldClass, opts...).ToFunc() +} + +// BySource orders the results by the source field. +func BySource(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSource, opts...).ToFunc() +} + +// ByMappedFrameworks orders the results by the mapped_frameworks field. +func ByMappedFrameworks(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappedFrameworks, 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/generated/controlobjectivehistory/where.go b/internal/ent/generated/controlobjectivehistory/where.go new file mode 100644 index 00000000..c1bc3b67 --- /dev/null +++ b/internal/ent/generated/controlobjectivehistory/where.go @@ -0,0 +1,1511 @@ +// Code generated by ent, DO NOT EDIT. + +package controlobjectivehistory + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/entx/history" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(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.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// Ref applies equality check predicate on the "ref" field. It's identical to RefEQ. +func Ref(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(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.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(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.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldStatus, v)) +} + +// ControlObjectiveType applies equality check predicate on the "control_objective_type" field. It's identical to ControlObjectiveTypeEQ. +func ControlObjectiveType(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldControlObjectiveType, v)) +} + +// Version applies equality check predicate on the "version" field. It's identical to VersionEQ. +func Version(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldVersion, v)) +} + +// ControlNumber applies equality check predicate on the "control_number" field. It's identical to ControlNumberEQ. +func ControlNumber(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldControlNumber, v)) +} + +// Family applies equality check predicate on the "family" field. It's identical to FamilyEQ. +func Family(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldFamily, v)) +} + +// Class applies equality check predicate on the "class" field. It's identical to ClassEQ. +func Class(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldClass, v)) +} + +// Source applies equality check predicate on the "source" field. It's identical to SourceEQ. +func Source(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldSource, v)) +} + +// MappedFrameworks applies equality check predicate on the "mapped_frameworks" field. It's identical to MappedFrameworksEQ. +func MappedFrameworks(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldMappedFrameworks, v)) +} + +// HistoryTimeEQ applies the EQ predicate on the "history_time" field. +func HistoryTimeEQ(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// HistoryTimeNEQ applies the NEQ predicate on the "history_time" field. +func HistoryTimeNEQ(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldHistoryTime, v)) +} + +// HistoryTimeIn applies the In predicate on the "history_time" field. +func HistoryTimeIn(vs ...time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeNotIn applies the NotIn predicate on the "history_time" field. +func HistoryTimeNotIn(vs ...time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeGT applies the GT predicate on the "history_time" field. +func HistoryTimeGT(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldHistoryTime, v)) +} + +// HistoryTimeGTE applies the GTE predicate on the "history_time" field. +func HistoryTimeGTE(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldHistoryTime, v)) +} + +// HistoryTimeLT applies the LT predicate on the "history_time" field. +func HistoryTimeLT(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldHistoryTime, v)) +} + +// HistoryTimeLTE applies the LTE predicate on the "history_time" field. +func HistoryTimeLTE(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldHistoryTime, v)) +} + +// RefEQ applies the EQ predicate on the "ref" field. +func RefEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldRef, v)) +} + +// RefNEQ applies the NEQ predicate on the "ref" field. +func RefNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldRef, v)) +} + +// RefIn applies the In predicate on the "ref" field. +func RefIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldRef, vs...)) +} + +// RefNotIn applies the NotIn predicate on the "ref" field. +func RefNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldRef, vs...)) +} + +// RefGT applies the GT predicate on the "ref" field. +func RefGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldRef, v)) +} + +// RefGTE applies the GTE predicate on the "ref" field. +func RefGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldRef, v)) +} + +// RefLT applies the LT predicate on the "ref" field. +func RefLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldRef, v)) +} + +// RefLTE applies the LTE predicate on the "ref" field. +func RefLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldRef, v)) +} + +// RefContains applies the Contains predicate on the "ref" field. +func RefContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldRef, v)) +} + +// RefHasPrefix applies the HasPrefix predicate on the "ref" field. +func RefHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldRef, v)) +} + +// RefHasSuffix applies the HasSuffix predicate on the "ref" field. +func RefHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldRef, v)) +} + +// RefIsNil applies the IsNil predicate on the "ref" field. +func RefIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldRef)) +} + +// RefNotNil applies the NotNil predicate on the "ref" field. +func RefNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldRef)) +} + +// RefEqualFold applies the EqualFold predicate on the "ref" field. +func RefEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldRef, v)) +} + +// RefContainsFold applies the ContainsFold predicate on the "ref" field. +func RefContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldRef, v)) +} + +// OperationEQ applies the EQ predicate on the "operation" field. +func OperationEQ(v history.OpType) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldOperation, v)) +} + +// OperationNEQ applies the NEQ predicate on the "operation" field. +func OperationNEQ(v history.OpType) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldOperation, v)) +} + +// OperationIn applies the In predicate on the "operation" field. +func OperationIn(vs ...history.OpType) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldOperation, vs...)) +} + +// OperationNotIn applies the NotIn predicate on the "operation" field. +func OperationNotIn(vs ...history.OpType) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldOperation, vs...)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldStatus, v)) +} + +// ControlObjectiveTypeEQ applies the EQ predicate on the "control_objective_type" field. +func ControlObjectiveTypeEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeNEQ applies the NEQ predicate on the "control_objective_type" field. +func ControlObjectiveTypeNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeIn applies the In predicate on the "control_objective_type" field. +func ControlObjectiveTypeIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldControlObjectiveType, vs...)) +} + +// ControlObjectiveTypeNotIn applies the NotIn predicate on the "control_objective_type" field. +func ControlObjectiveTypeNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldControlObjectiveType, vs...)) +} + +// ControlObjectiveTypeGT applies the GT predicate on the "control_objective_type" field. +func ControlObjectiveTypeGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeGTE applies the GTE predicate on the "control_objective_type" field. +func ControlObjectiveTypeGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeLT applies the LT predicate on the "control_objective_type" field. +func ControlObjectiveTypeLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeLTE applies the LTE predicate on the "control_objective_type" field. +func ControlObjectiveTypeLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeContains applies the Contains predicate on the "control_objective_type" field. +func ControlObjectiveTypeContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeHasPrefix applies the HasPrefix predicate on the "control_objective_type" field. +func ControlObjectiveTypeHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeHasSuffix applies the HasSuffix predicate on the "control_objective_type" field. +func ControlObjectiveTypeHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeIsNil applies the IsNil predicate on the "control_objective_type" field. +func ControlObjectiveTypeIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldControlObjectiveType)) +} + +// ControlObjectiveTypeNotNil applies the NotNil predicate on the "control_objective_type" field. +func ControlObjectiveTypeNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldControlObjectiveType)) +} + +// ControlObjectiveTypeEqualFold applies the EqualFold predicate on the "control_objective_type" field. +func ControlObjectiveTypeEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldControlObjectiveType, v)) +} + +// ControlObjectiveTypeContainsFold applies the ContainsFold predicate on the "control_objective_type" field. +func ControlObjectiveTypeContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldControlObjectiveType, v)) +} + +// VersionEQ applies the EQ predicate on the "version" field. +func VersionEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldVersion, v)) +} + +// VersionNEQ applies the NEQ predicate on the "version" field. +func VersionNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldVersion, v)) +} + +// VersionIn applies the In predicate on the "version" field. +func VersionIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldVersion, vs...)) +} + +// VersionNotIn applies the NotIn predicate on the "version" field. +func VersionNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldVersion, vs...)) +} + +// VersionGT applies the GT predicate on the "version" field. +func VersionGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldVersion, v)) +} + +// VersionGTE applies the GTE predicate on the "version" field. +func VersionGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldVersion, v)) +} + +// VersionLT applies the LT predicate on the "version" field. +func VersionLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldVersion, v)) +} + +// VersionLTE applies the LTE predicate on the "version" field. +func VersionLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldVersion, v)) +} + +// VersionContains applies the Contains predicate on the "version" field. +func VersionContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldVersion, v)) +} + +// VersionHasPrefix applies the HasPrefix predicate on the "version" field. +func VersionHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldVersion, v)) +} + +// VersionHasSuffix applies the HasSuffix predicate on the "version" field. +func VersionHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldVersion, v)) +} + +// VersionIsNil applies the IsNil predicate on the "version" field. +func VersionIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldVersion)) +} + +// VersionNotNil applies the NotNil predicate on the "version" field. +func VersionNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldVersion)) +} + +// VersionEqualFold applies the EqualFold predicate on the "version" field. +func VersionEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldVersion, v)) +} + +// VersionContainsFold applies the ContainsFold predicate on the "version" field. +func VersionContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldVersion, v)) +} + +// ControlNumberEQ applies the EQ predicate on the "control_number" field. +func ControlNumberEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldControlNumber, v)) +} + +// ControlNumberNEQ applies the NEQ predicate on the "control_number" field. +func ControlNumberNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldControlNumber, v)) +} + +// ControlNumberIn applies the In predicate on the "control_number" field. +func ControlNumberIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldControlNumber, vs...)) +} + +// ControlNumberNotIn applies the NotIn predicate on the "control_number" field. +func ControlNumberNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldControlNumber, vs...)) +} + +// ControlNumberGT applies the GT predicate on the "control_number" field. +func ControlNumberGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldControlNumber, v)) +} + +// ControlNumberGTE applies the GTE predicate on the "control_number" field. +func ControlNumberGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldControlNumber, v)) +} + +// ControlNumberLT applies the LT predicate on the "control_number" field. +func ControlNumberLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldControlNumber, v)) +} + +// ControlNumberLTE applies the LTE predicate on the "control_number" field. +func ControlNumberLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldControlNumber, v)) +} + +// ControlNumberContains applies the Contains predicate on the "control_number" field. +func ControlNumberContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldControlNumber, v)) +} + +// ControlNumberHasPrefix applies the HasPrefix predicate on the "control_number" field. +func ControlNumberHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldControlNumber, v)) +} + +// ControlNumberHasSuffix applies the HasSuffix predicate on the "control_number" field. +func ControlNumberHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldControlNumber, v)) +} + +// ControlNumberIsNil applies the IsNil predicate on the "control_number" field. +func ControlNumberIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldControlNumber)) +} + +// ControlNumberNotNil applies the NotNil predicate on the "control_number" field. +func ControlNumberNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldControlNumber)) +} + +// ControlNumberEqualFold applies the EqualFold predicate on the "control_number" field. +func ControlNumberEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldControlNumber, v)) +} + +// ControlNumberContainsFold applies the ContainsFold predicate on the "control_number" field. +func ControlNumberContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldControlNumber, v)) +} + +// FamilyEQ applies the EQ predicate on the "family" field. +func FamilyEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldFamily, v)) +} + +// FamilyNEQ applies the NEQ predicate on the "family" field. +func FamilyNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldFamily, v)) +} + +// FamilyIn applies the In predicate on the "family" field. +func FamilyIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldFamily, vs...)) +} + +// FamilyNotIn applies the NotIn predicate on the "family" field. +func FamilyNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldFamily, vs...)) +} + +// FamilyGT applies the GT predicate on the "family" field. +func FamilyGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldFamily, v)) +} + +// FamilyGTE applies the GTE predicate on the "family" field. +func FamilyGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldFamily, v)) +} + +// FamilyLT applies the LT predicate on the "family" field. +func FamilyLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldFamily, v)) +} + +// FamilyLTE applies the LTE predicate on the "family" field. +func FamilyLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldFamily, v)) +} + +// FamilyContains applies the Contains predicate on the "family" field. +func FamilyContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldFamily, v)) +} + +// FamilyHasPrefix applies the HasPrefix predicate on the "family" field. +func FamilyHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldFamily, v)) +} + +// FamilyHasSuffix applies the HasSuffix predicate on the "family" field. +func FamilyHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldFamily, v)) +} + +// FamilyIsNil applies the IsNil predicate on the "family" field. +func FamilyIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldFamily)) +} + +// FamilyNotNil applies the NotNil predicate on the "family" field. +func FamilyNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldFamily)) +} + +// FamilyEqualFold applies the EqualFold predicate on the "family" field. +func FamilyEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldFamily, v)) +} + +// FamilyContainsFold applies the ContainsFold predicate on the "family" field. +func FamilyContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldFamily, v)) +} + +// ClassEQ applies the EQ predicate on the "class" field. +func ClassEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldClass, v)) +} + +// ClassNEQ applies the NEQ predicate on the "class" field. +func ClassNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldClass, v)) +} + +// ClassIn applies the In predicate on the "class" field. +func ClassIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldClass, vs...)) +} + +// ClassNotIn applies the NotIn predicate on the "class" field. +func ClassNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldClass, vs...)) +} + +// ClassGT applies the GT predicate on the "class" field. +func ClassGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldClass, v)) +} + +// ClassGTE applies the GTE predicate on the "class" field. +func ClassGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldClass, v)) +} + +// ClassLT applies the LT predicate on the "class" field. +func ClassLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldClass, v)) +} + +// ClassLTE applies the LTE predicate on the "class" field. +func ClassLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldClass, v)) +} + +// ClassContains applies the Contains predicate on the "class" field. +func ClassContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldClass, v)) +} + +// ClassHasPrefix applies the HasPrefix predicate on the "class" field. +func ClassHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldClass, v)) +} + +// ClassHasSuffix applies the HasSuffix predicate on the "class" field. +func ClassHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldClass, v)) +} + +// ClassIsNil applies the IsNil predicate on the "class" field. +func ClassIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldClass)) +} + +// ClassNotNil applies the NotNil predicate on the "class" field. +func ClassNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldClass)) +} + +// ClassEqualFold applies the EqualFold predicate on the "class" field. +func ClassEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldClass, v)) +} + +// ClassContainsFold applies the ContainsFold predicate on the "class" field. +func ClassContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldClass, v)) +} + +// SourceEQ applies the EQ predicate on the "source" field. +func SourceEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldSource, v)) +} + +// SourceNEQ applies the NEQ predicate on the "source" field. +func SourceNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldSource, v)) +} + +// SourceIn applies the In predicate on the "source" field. +func SourceIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldSource, vs...)) +} + +// SourceNotIn applies the NotIn predicate on the "source" field. +func SourceNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldSource, vs...)) +} + +// SourceGT applies the GT predicate on the "source" field. +func SourceGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldSource, v)) +} + +// SourceGTE applies the GTE predicate on the "source" field. +func SourceGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldSource, v)) +} + +// SourceLT applies the LT predicate on the "source" field. +func SourceLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldSource, v)) +} + +// SourceLTE applies the LTE predicate on the "source" field. +func SourceLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldSource, v)) +} + +// SourceContains applies the Contains predicate on the "source" field. +func SourceContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldSource, v)) +} + +// SourceHasPrefix applies the HasPrefix predicate on the "source" field. +func SourceHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldSource, v)) +} + +// SourceHasSuffix applies the HasSuffix predicate on the "source" field. +func SourceHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldSource, v)) +} + +// SourceIsNil applies the IsNil predicate on the "source" field. +func SourceIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldSource)) +} + +// SourceNotNil applies the NotNil predicate on the "source" field. +func SourceNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldSource)) +} + +// SourceEqualFold applies the EqualFold predicate on the "source" field. +func SourceEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldSource, v)) +} + +// SourceContainsFold applies the ContainsFold predicate on the "source" field. +func SourceContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldSource, v)) +} + +// MappedFrameworksEQ applies the EQ predicate on the "mapped_frameworks" field. +func MappedFrameworksEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEQ(FieldMappedFrameworks, v)) +} + +// MappedFrameworksNEQ applies the NEQ predicate on the "mapped_frameworks" field. +func MappedFrameworksNEQ(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNEQ(FieldMappedFrameworks, v)) +} + +// MappedFrameworksIn applies the In predicate on the "mapped_frameworks" field. +func MappedFrameworksIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIn(FieldMappedFrameworks, vs...)) +} + +// MappedFrameworksNotIn applies the NotIn predicate on the "mapped_frameworks" field. +func MappedFrameworksNotIn(vs ...string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotIn(FieldMappedFrameworks, vs...)) +} + +// MappedFrameworksGT applies the GT predicate on the "mapped_frameworks" field. +func MappedFrameworksGT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGT(FieldMappedFrameworks, v)) +} + +// MappedFrameworksGTE applies the GTE predicate on the "mapped_frameworks" field. +func MappedFrameworksGTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldGTE(FieldMappedFrameworks, v)) +} + +// MappedFrameworksLT applies the LT predicate on the "mapped_frameworks" field. +func MappedFrameworksLT(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLT(FieldMappedFrameworks, v)) +} + +// MappedFrameworksLTE applies the LTE predicate on the "mapped_frameworks" field. +func MappedFrameworksLTE(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldLTE(FieldMappedFrameworks, v)) +} + +// MappedFrameworksContains applies the Contains predicate on the "mapped_frameworks" field. +func MappedFrameworksContains(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContains(FieldMappedFrameworks, v)) +} + +// MappedFrameworksHasPrefix applies the HasPrefix predicate on the "mapped_frameworks" field. +func MappedFrameworksHasPrefix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasPrefix(FieldMappedFrameworks, v)) +} + +// MappedFrameworksHasSuffix applies the HasSuffix predicate on the "mapped_frameworks" field. +func MappedFrameworksHasSuffix(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldHasSuffix(FieldMappedFrameworks, v)) +} + +// MappedFrameworksIsNil applies the IsNil predicate on the "mapped_frameworks" field. +func MappedFrameworksIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldMappedFrameworks)) +} + +// MappedFrameworksNotNil applies the NotNil predicate on the "mapped_frameworks" field. +func MappedFrameworksNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldMappedFrameworks)) +} + +// MappedFrameworksEqualFold applies the EqualFold predicate on the "mapped_frameworks" field. +func MappedFrameworksEqualFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldEqualFold(FieldMappedFrameworks, v)) +} + +// MappedFrameworksContainsFold applies the ContainsFold predicate on the "mapped_frameworks" field. +func MappedFrameworksContainsFold(v string) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldContainsFold(FieldMappedFrameworks, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.FieldNotNull(FieldDetails)) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.ControlObjectiveHistory) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.ControlObjectiveHistory) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.ControlObjectiveHistory) predicate.ControlObjectiveHistory { + return predicate.ControlObjectiveHistory(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/controlobjectivehistory_create.go b/internal/ent/generated/controlobjectivehistory_create.go new file mode 100644 index 00000000..035b9d43 --- /dev/null +++ b/internal/ent/generated/controlobjectivehistory_create.go @@ -0,0 +1,603 @@ +// 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/internal/ent/generated/controlobjectivehistory" + "github.com/theopenlane/entx/history" +) + +// ControlObjectiveHistoryCreate is the builder for creating a ControlObjectiveHistory entity. +type ControlObjectiveHistoryCreate struct { + config + mutation *ControlObjectiveHistoryMutation + hooks []Hook +} + +// SetHistoryTime sets the "history_time" field. +func (cohc *ControlObjectiveHistoryCreate) SetHistoryTime(t time.Time) *ControlObjectiveHistoryCreate { + cohc.mutation.SetHistoryTime(t) + return cohc +} + +// SetNillableHistoryTime sets the "history_time" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableHistoryTime(t *time.Time) *ControlObjectiveHistoryCreate { + if t != nil { + cohc.SetHistoryTime(*t) + } + return cohc +} + +// SetRef sets the "ref" field. +func (cohc *ControlObjectiveHistoryCreate) SetRef(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetRef(s) + return cohc +} + +// SetNillableRef sets the "ref" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableRef(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetRef(*s) + } + return cohc +} + +// SetOperation sets the "operation" field. +func (cohc *ControlObjectiveHistoryCreate) SetOperation(ht history.OpType) *ControlObjectiveHistoryCreate { + cohc.mutation.SetOperation(ht) + return cohc +} + +// SetCreatedAt sets the "created_at" field. +func (cohc *ControlObjectiveHistoryCreate) SetCreatedAt(t time.Time) *ControlObjectiveHistoryCreate { + cohc.mutation.SetCreatedAt(t) + return cohc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableCreatedAt(t *time.Time) *ControlObjectiveHistoryCreate { + if t != nil { + cohc.SetCreatedAt(*t) + } + return cohc +} + +// SetUpdatedAt sets the "updated_at" field. +func (cohc *ControlObjectiveHistoryCreate) SetUpdatedAt(t time.Time) *ControlObjectiveHistoryCreate { + cohc.mutation.SetUpdatedAt(t) + return cohc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableUpdatedAt(t *time.Time) *ControlObjectiveHistoryCreate { + if t != nil { + cohc.SetUpdatedAt(*t) + } + return cohc +} + +// SetCreatedBy sets the "created_by" field. +func (cohc *ControlObjectiveHistoryCreate) SetCreatedBy(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetCreatedBy(s) + return cohc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableCreatedBy(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetCreatedBy(*s) + } + return cohc +} + +// SetUpdatedBy sets the "updated_by" field. +func (cohc *ControlObjectiveHistoryCreate) SetUpdatedBy(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetUpdatedBy(s) + return cohc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableUpdatedBy(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetUpdatedBy(*s) + } + return cohc +} + +// SetDeletedAt sets the "deleted_at" field. +func (cohc *ControlObjectiveHistoryCreate) SetDeletedAt(t time.Time) *ControlObjectiveHistoryCreate { + cohc.mutation.SetDeletedAt(t) + return cohc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableDeletedAt(t *time.Time) *ControlObjectiveHistoryCreate { + if t != nil { + cohc.SetDeletedAt(*t) + } + return cohc +} + +// SetDeletedBy sets the "deleted_by" field. +func (cohc *ControlObjectiveHistoryCreate) SetDeletedBy(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetDeletedBy(s) + return cohc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableDeletedBy(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetDeletedBy(*s) + } + return cohc +} + +// SetMappingID sets the "mapping_id" field. +func (cohc *ControlObjectiveHistoryCreate) SetMappingID(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetMappingID(s) + return cohc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableMappingID(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetMappingID(*s) + } + return cohc +} + +// SetTags sets the "tags" field. +func (cohc *ControlObjectiveHistoryCreate) SetTags(s []string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetTags(s) + return cohc +} + +// SetName sets the "name" field. +func (cohc *ControlObjectiveHistoryCreate) SetName(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetName(s) + return cohc +} + +// SetDescription sets the "description" field. +func (cohc *ControlObjectiveHistoryCreate) SetDescription(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetDescription(s) + return cohc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableDescription(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetDescription(*s) + } + return cohc +} + +// SetStatus sets the "status" field. +func (cohc *ControlObjectiveHistoryCreate) SetStatus(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetStatus(s) + return cohc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableStatus(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetStatus(*s) + } + return cohc +} + +// SetControlObjectiveType sets the "control_objective_type" field. +func (cohc *ControlObjectiveHistoryCreate) SetControlObjectiveType(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetControlObjectiveType(s) + return cohc +} + +// SetNillableControlObjectiveType sets the "control_objective_type" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableControlObjectiveType(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetControlObjectiveType(*s) + } + return cohc +} + +// SetVersion sets the "version" field. +func (cohc *ControlObjectiveHistoryCreate) SetVersion(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetVersion(s) + return cohc +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableVersion(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetVersion(*s) + } + return cohc +} + +// SetControlNumber sets the "control_number" field. +func (cohc *ControlObjectiveHistoryCreate) SetControlNumber(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetControlNumber(s) + return cohc +} + +// SetNillableControlNumber sets the "control_number" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableControlNumber(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetControlNumber(*s) + } + return cohc +} + +// SetFamily sets the "family" field. +func (cohc *ControlObjectiveHistoryCreate) SetFamily(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetFamily(s) + return cohc +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableFamily(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetFamily(*s) + } + return cohc +} + +// SetClass sets the "class" field. +func (cohc *ControlObjectiveHistoryCreate) SetClass(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetClass(s) + return cohc +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableClass(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetClass(*s) + } + return cohc +} + +// SetSource sets the "source" field. +func (cohc *ControlObjectiveHistoryCreate) SetSource(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetSource(s) + return cohc +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableSource(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetSource(*s) + } + return cohc +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (cohc *ControlObjectiveHistoryCreate) SetMappedFrameworks(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetMappedFrameworks(s) + return cohc +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableMappedFrameworks(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetMappedFrameworks(*s) + } + return cohc +} + +// SetDetails sets the "details" field. +func (cohc *ControlObjectiveHistoryCreate) SetDetails(m map[string]interface{}) *ControlObjectiveHistoryCreate { + cohc.mutation.SetDetails(m) + return cohc +} + +// SetID sets the "id" field. +func (cohc *ControlObjectiveHistoryCreate) SetID(s string) *ControlObjectiveHistoryCreate { + cohc.mutation.SetID(s) + return cohc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (cohc *ControlObjectiveHistoryCreate) SetNillableID(s *string) *ControlObjectiveHistoryCreate { + if s != nil { + cohc.SetID(*s) + } + return cohc +} + +// Mutation returns the ControlObjectiveHistoryMutation object of the builder. +func (cohc *ControlObjectiveHistoryCreate) Mutation() *ControlObjectiveHistoryMutation { + return cohc.mutation +} + +// Save creates the ControlObjectiveHistory in the database. +func (cohc *ControlObjectiveHistoryCreate) Save(ctx context.Context) (*ControlObjectiveHistory, error) { + cohc.defaults() + return withHooks(ctx, cohc.sqlSave, cohc.mutation, cohc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (cohc *ControlObjectiveHistoryCreate) SaveX(ctx context.Context) *ControlObjectiveHistory { + v, err := cohc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (cohc *ControlObjectiveHistoryCreate) Exec(ctx context.Context) error { + _, err := cohc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (cohc *ControlObjectiveHistoryCreate) ExecX(ctx context.Context) { + if err := cohc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (cohc *ControlObjectiveHistoryCreate) defaults() { + if _, ok := cohc.mutation.HistoryTime(); !ok { + v := controlobjectivehistory.DefaultHistoryTime() + cohc.mutation.SetHistoryTime(v) + } + if _, ok := cohc.mutation.CreatedAt(); !ok { + v := controlobjectivehistory.DefaultCreatedAt() + cohc.mutation.SetCreatedAt(v) + } + if _, ok := cohc.mutation.UpdatedAt(); !ok { + v := controlobjectivehistory.DefaultUpdatedAt() + cohc.mutation.SetUpdatedAt(v) + } + if _, ok := cohc.mutation.MappingID(); !ok { + v := controlobjectivehistory.DefaultMappingID() + cohc.mutation.SetMappingID(v) + } + if _, ok := cohc.mutation.Tags(); !ok { + v := controlobjectivehistory.DefaultTags + cohc.mutation.SetTags(v) + } + if _, ok := cohc.mutation.ID(); !ok { + v := controlobjectivehistory.DefaultID() + cohc.mutation.SetID(v) + } +} + +// check runs all checks and user-defined validators on the builder. +func (cohc *ControlObjectiveHistoryCreate) check() error { + if _, ok := cohc.mutation.HistoryTime(); !ok { + return &ValidationError{Name: "history_time", err: errors.New(`generated: missing required field "ControlObjectiveHistory.history_time"`)} + } + if _, ok := cohc.mutation.Operation(); !ok { + return &ValidationError{Name: "operation", err: errors.New(`generated: missing required field "ControlObjectiveHistory.operation"`)} + } + if v, ok := cohc.mutation.Operation(); ok { + if err := controlobjectivehistory.OperationValidator(v); err != nil { + return &ValidationError{Name: "operation", err: fmt.Errorf(`generated: validator failed for field "ControlObjectiveHistory.operation": %w`, err)} + } + } + if _, ok := cohc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "ControlObjectiveHistory.mapping_id"`)} + } + if _, ok := cohc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "ControlObjectiveHistory.name"`)} + } + return nil +} + +func (cohc *ControlObjectiveHistoryCreate) sqlSave(ctx context.Context) (*ControlObjectiveHistory, error) { + if err := cohc.check(); err != nil { + return nil, err + } + _node, _spec := cohc.createSpec() + if err := sqlgraph.CreateNode(ctx, cohc.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 ControlObjectiveHistory.ID type: %T", _spec.ID.Value) + } + } + cohc.mutation.id = &_node.ID + cohc.mutation.done = true + return _node, nil +} + +func (cohc *ControlObjectiveHistoryCreate) createSpec() (*ControlObjectiveHistory, *sqlgraph.CreateSpec) { + var ( + _node = &ControlObjectiveHistory{config: cohc.config} + _spec = sqlgraph.NewCreateSpec(controlobjectivehistory.Table, sqlgraph.NewFieldSpec(controlobjectivehistory.FieldID, field.TypeString)) + ) + _spec.Schema = cohc.schemaConfig.ControlObjectiveHistory + if id, ok := cohc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := cohc.mutation.HistoryTime(); ok { + _spec.SetField(controlobjectivehistory.FieldHistoryTime, field.TypeTime, value) + _node.HistoryTime = value + } + if value, ok := cohc.mutation.Ref(); ok { + _spec.SetField(controlobjectivehistory.FieldRef, field.TypeString, value) + _node.Ref = value + } + if value, ok := cohc.mutation.Operation(); ok { + _spec.SetField(controlobjectivehistory.FieldOperation, field.TypeEnum, value) + _node.Operation = value + } + if value, ok := cohc.mutation.CreatedAt(); ok { + _spec.SetField(controlobjectivehistory.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := cohc.mutation.UpdatedAt(); ok { + _spec.SetField(controlobjectivehistory.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := cohc.mutation.CreatedBy(); ok { + _spec.SetField(controlobjectivehistory.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := cohc.mutation.UpdatedBy(); ok { + _spec.SetField(controlobjectivehistory.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := cohc.mutation.DeletedAt(); ok { + _spec.SetField(controlobjectivehistory.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := cohc.mutation.DeletedBy(); ok { + _spec.SetField(controlobjectivehistory.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := cohc.mutation.MappingID(); ok { + _spec.SetField(controlobjectivehistory.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := cohc.mutation.Tags(); ok { + _spec.SetField(controlobjectivehistory.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := cohc.mutation.Name(); ok { + _spec.SetField(controlobjectivehistory.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := cohc.mutation.Description(); ok { + _spec.SetField(controlobjectivehistory.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := cohc.mutation.Status(); ok { + _spec.SetField(controlobjectivehistory.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := cohc.mutation.ControlObjectiveType(); ok { + _spec.SetField(controlobjectivehistory.FieldControlObjectiveType, field.TypeString, value) + _node.ControlObjectiveType = value + } + if value, ok := cohc.mutation.Version(); ok { + _spec.SetField(controlobjectivehistory.FieldVersion, field.TypeString, value) + _node.Version = value + } + if value, ok := cohc.mutation.ControlNumber(); ok { + _spec.SetField(controlobjectivehistory.FieldControlNumber, field.TypeString, value) + _node.ControlNumber = value + } + if value, ok := cohc.mutation.Family(); ok { + _spec.SetField(controlobjectivehistory.FieldFamily, field.TypeString, value) + _node.Family = value + } + if value, ok := cohc.mutation.Class(); ok { + _spec.SetField(controlobjectivehistory.FieldClass, field.TypeString, value) + _node.Class = value + } + if value, ok := cohc.mutation.Source(); ok { + _spec.SetField(controlobjectivehistory.FieldSource, field.TypeString, value) + _node.Source = value + } + if value, ok := cohc.mutation.MappedFrameworks(); ok { + _spec.SetField(controlobjectivehistory.FieldMappedFrameworks, field.TypeString, value) + _node.MappedFrameworks = value + } + if value, ok := cohc.mutation.Details(); ok { + _spec.SetField(controlobjectivehistory.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + return _node, _spec +} + +// ControlObjectiveHistoryCreateBulk is the builder for creating many ControlObjectiveHistory entities in bulk. +type ControlObjectiveHistoryCreateBulk struct { + config + err error + builders []*ControlObjectiveHistoryCreate +} + +// Save creates the ControlObjectiveHistory entities in the database. +func (cohcb *ControlObjectiveHistoryCreateBulk) Save(ctx context.Context) ([]*ControlObjectiveHistory, error) { + if cohcb.err != nil { + return nil, cohcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(cohcb.builders)) + nodes := make([]*ControlObjectiveHistory, len(cohcb.builders)) + mutators := make([]Mutator, len(cohcb.builders)) + for i := range cohcb.builders { + func(i int, root context.Context) { + builder := cohcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*ControlObjectiveHistoryMutation) + 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, cohcb.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, cohcb.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, cohcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (cohcb *ControlObjectiveHistoryCreateBulk) SaveX(ctx context.Context) []*ControlObjectiveHistory { + v, err := cohcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (cohcb *ControlObjectiveHistoryCreateBulk) Exec(ctx context.Context) error { + _, err := cohcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (cohcb *ControlObjectiveHistoryCreateBulk) ExecX(ctx context.Context) { + if err := cohcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/controlobjectivehistory_delete.go b/internal/ent/generated/controlobjectivehistory_delete.go new file mode 100644 index 00000000..ea4448c0 --- /dev/null +++ b/internal/ent/generated/controlobjectivehistory_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ControlObjectiveHistoryDelete is the builder for deleting a ControlObjectiveHistory entity. +type ControlObjectiveHistoryDelete struct { + config + hooks []Hook + mutation *ControlObjectiveHistoryMutation +} + +// Where appends a list predicates to the ControlObjectiveHistoryDelete builder. +func (cohd *ControlObjectiveHistoryDelete) Where(ps ...predicate.ControlObjectiveHistory) *ControlObjectiveHistoryDelete { + cohd.mutation.Where(ps...) + return cohd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (cohd *ControlObjectiveHistoryDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, cohd.sqlExec, cohd.mutation, cohd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (cohd *ControlObjectiveHistoryDelete) ExecX(ctx context.Context) int { + n, err := cohd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (cohd *ControlObjectiveHistoryDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(controlobjectivehistory.Table, sqlgraph.NewFieldSpec(controlobjectivehistory.FieldID, field.TypeString)) + _spec.Node.Schema = cohd.schemaConfig.ControlObjectiveHistory + ctx = internal.NewSchemaConfigContext(ctx, cohd.schemaConfig) + if ps := cohd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, cohd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + cohd.mutation.done = true + return affected, err +} + +// ControlObjectiveHistoryDeleteOne is the builder for deleting a single ControlObjectiveHistory entity. +type ControlObjectiveHistoryDeleteOne struct { + cohd *ControlObjectiveHistoryDelete +} + +// Where appends a list predicates to the ControlObjectiveHistoryDelete builder. +func (cohdo *ControlObjectiveHistoryDeleteOne) Where(ps ...predicate.ControlObjectiveHistory) *ControlObjectiveHistoryDeleteOne { + cohdo.cohd.mutation.Where(ps...) + return cohdo +} + +// Exec executes the deletion query. +func (cohdo *ControlObjectiveHistoryDeleteOne) Exec(ctx context.Context) error { + n, err := cohdo.cohd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{controlobjectivehistory.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (cohdo *ControlObjectiveHistoryDeleteOne) ExecX(ctx context.Context) { + if err := cohdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/controlobjectivehistory_query.go b/internal/ent/generated/controlobjectivehistory_query.go new file mode 100644 index 00000000..2e84399e --- /dev/null +++ b/internal/ent/generated/controlobjectivehistory_query.go @@ -0,0 +1,565 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "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/internal/ent/generated/controlobjectivehistory" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ControlObjectiveHistoryQuery is the builder for querying ControlObjectiveHistory entities. +type ControlObjectiveHistoryQuery struct { + config + ctx *QueryContext + order []controlobjectivehistory.OrderOption + inters []Interceptor + predicates []predicate.ControlObjectiveHistory + loadTotal []func(context.Context, []*ControlObjectiveHistory) 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 ControlObjectiveHistoryQuery builder. +func (cohq *ControlObjectiveHistoryQuery) Where(ps ...predicate.ControlObjectiveHistory) *ControlObjectiveHistoryQuery { + cohq.predicates = append(cohq.predicates, ps...) + return cohq +} + +// Limit the number of records to be returned by this query. +func (cohq *ControlObjectiveHistoryQuery) Limit(limit int) *ControlObjectiveHistoryQuery { + cohq.ctx.Limit = &limit + return cohq +} + +// Offset to start from. +func (cohq *ControlObjectiveHistoryQuery) Offset(offset int) *ControlObjectiveHistoryQuery { + cohq.ctx.Offset = &offset + return cohq +} + +// 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 (cohq *ControlObjectiveHistoryQuery) Unique(unique bool) *ControlObjectiveHistoryQuery { + cohq.ctx.Unique = &unique + return cohq +} + +// Order specifies how the records should be ordered. +func (cohq *ControlObjectiveHistoryQuery) Order(o ...controlobjectivehistory.OrderOption) *ControlObjectiveHistoryQuery { + cohq.order = append(cohq.order, o...) + return cohq +} + +// First returns the first ControlObjectiveHistory entity from the query. +// Returns a *NotFoundError when no ControlObjectiveHistory was found. +func (cohq *ControlObjectiveHistoryQuery) First(ctx context.Context) (*ControlObjectiveHistory, error) { + nodes, err := cohq.Limit(1).All(setContextOp(ctx, cohq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{controlobjectivehistory.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (cohq *ControlObjectiveHistoryQuery) FirstX(ctx context.Context) *ControlObjectiveHistory { + node, err := cohq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first ControlObjectiveHistory ID from the query. +// Returns a *NotFoundError when no ControlObjectiveHistory ID was found. +func (cohq *ControlObjectiveHistoryQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = cohq.Limit(1).IDs(setContextOp(ctx, cohq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{controlobjectivehistory.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (cohq *ControlObjectiveHistoryQuery) FirstIDX(ctx context.Context) string { + id, err := cohq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single ControlObjectiveHistory entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one ControlObjectiveHistory entity is found. +// Returns a *NotFoundError when no ControlObjectiveHistory entities are found. +func (cohq *ControlObjectiveHistoryQuery) Only(ctx context.Context) (*ControlObjectiveHistory, error) { + nodes, err := cohq.Limit(2).All(setContextOp(ctx, cohq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{controlobjectivehistory.Label} + default: + return nil, &NotSingularError{controlobjectivehistory.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (cohq *ControlObjectiveHistoryQuery) OnlyX(ctx context.Context) *ControlObjectiveHistory { + node, err := cohq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only ControlObjectiveHistory ID in the query. +// Returns a *NotSingularError when more than one ControlObjectiveHistory ID is found. +// Returns a *NotFoundError when no entities are found. +func (cohq *ControlObjectiveHistoryQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = cohq.Limit(2).IDs(setContextOp(ctx, cohq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{controlobjectivehistory.Label} + default: + err = &NotSingularError{controlobjectivehistory.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (cohq *ControlObjectiveHistoryQuery) OnlyIDX(ctx context.Context) string { + id, err := cohq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of ControlObjectiveHistories. +func (cohq *ControlObjectiveHistoryQuery) All(ctx context.Context) ([]*ControlObjectiveHistory, error) { + ctx = setContextOp(ctx, cohq.ctx, ent.OpQueryAll) + if err := cohq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*ControlObjectiveHistory, *ControlObjectiveHistoryQuery]() + return withInterceptors[[]*ControlObjectiveHistory](ctx, cohq, qr, cohq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (cohq *ControlObjectiveHistoryQuery) AllX(ctx context.Context) []*ControlObjectiveHistory { + nodes, err := cohq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of ControlObjectiveHistory IDs. +func (cohq *ControlObjectiveHistoryQuery) IDs(ctx context.Context) (ids []string, err error) { + if cohq.ctx.Unique == nil && cohq.path != nil { + cohq.Unique(true) + } + ctx = setContextOp(ctx, cohq.ctx, ent.OpQueryIDs) + if err = cohq.Select(controlobjectivehistory.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (cohq *ControlObjectiveHistoryQuery) IDsX(ctx context.Context) []string { + ids, err := cohq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (cohq *ControlObjectiveHistoryQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, cohq.ctx, ent.OpQueryCount) + if err := cohq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, cohq, querierCount[*ControlObjectiveHistoryQuery](), cohq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (cohq *ControlObjectiveHistoryQuery) CountX(ctx context.Context) int { + count, err := cohq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (cohq *ControlObjectiveHistoryQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, cohq.ctx, ent.OpQueryExist) + switch _, err := cohq.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 (cohq *ControlObjectiveHistoryQuery) ExistX(ctx context.Context) bool { + exist, err := cohq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the ControlObjectiveHistoryQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (cohq *ControlObjectiveHistoryQuery) Clone() *ControlObjectiveHistoryQuery { + if cohq == nil { + return nil + } + return &ControlObjectiveHistoryQuery{ + config: cohq.config, + ctx: cohq.ctx.Clone(), + order: append([]controlobjectivehistory.OrderOption{}, cohq.order...), + inters: append([]Interceptor{}, cohq.inters...), + predicates: append([]predicate.ControlObjectiveHistory{}, cohq.predicates...), + // clone intermediate query. + sql: cohq.sql.Clone(), + path: cohq.path, + modifiers: append([]func(*sql.Selector){}, cohq.modifiers...), + } +} + +// 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.ControlObjectiveHistory.Query(). +// GroupBy(controlobjectivehistory.FieldHistoryTime). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (cohq *ControlObjectiveHistoryQuery) GroupBy(field string, fields ...string) *ControlObjectiveHistoryGroupBy { + cohq.ctx.Fields = append([]string{field}, fields...) + grbuild := &ControlObjectiveHistoryGroupBy{build: cohq} + grbuild.flds = &cohq.ctx.Fields + grbuild.label = controlobjectivehistory.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.ControlObjectiveHistory.Query(). +// Select(controlobjectivehistory.FieldHistoryTime). +// Scan(ctx, &v) +func (cohq *ControlObjectiveHistoryQuery) Select(fields ...string) *ControlObjectiveHistorySelect { + cohq.ctx.Fields = append(cohq.ctx.Fields, fields...) + sbuild := &ControlObjectiveHistorySelect{ControlObjectiveHistoryQuery: cohq} + sbuild.label = controlobjectivehistory.Label + sbuild.flds, sbuild.scan = &cohq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a ControlObjectiveHistorySelect configured with the given aggregations. +func (cohq *ControlObjectiveHistoryQuery) Aggregate(fns ...AggregateFunc) *ControlObjectiveHistorySelect { + return cohq.Select().Aggregate(fns...) +} + +func (cohq *ControlObjectiveHistoryQuery) prepareQuery(ctx context.Context) error { + for _, inter := range cohq.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, cohq); err != nil { + return err + } + } + } + for _, f := range cohq.ctx.Fields { + if !controlobjectivehistory.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if cohq.path != nil { + prev, err := cohq.path(ctx) + if err != nil { + return err + } + cohq.sql = prev + } + return nil +} + +func (cohq *ControlObjectiveHistoryQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*ControlObjectiveHistory, error) { + var ( + nodes = []*ControlObjectiveHistory{} + _spec = cohq.querySpec() + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*ControlObjectiveHistory).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &ControlObjectiveHistory{config: cohq.config} + nodes = append(nodes, node) + return node.assignValues(columns, values) + } + _spec.Node.Schema = cohq.schemaConfig.ControlObjectiveHistory + ctx = internal.NewSchemaConfigContext(ctx, cohq.schemaConfig) + if len(cohq.modifiers) > 0 { + _spec.Modifiers = cohq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, cohq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + for i := range cohq.loadTotal { + if err := cohq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (cohq *ControlObjectiveHistoryQuery) sqlCount(ctx context.Context) (int, error) { + _spec := cohq.querySpec() + _spec.Node.Schema = cohq.schemaConfig.ControlObjectiveHistory + ctx = internal.NewSchemaConfigContext(ctx, cohq.schemaConfig) + if len(cohq.modifiers) > 0 { + _spec.Modifiers = cohq.modifiers + } + _spec.Node.Columns = cohq.ctx.Fields + if len(cohq.ctx.Fields) > 0 { + _spec.Unique = cohq.ctx.Unique != nil && *cohq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, cohq.driver, _spec) +} + +func (cohq *ControlObjectiveHistoryQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(controlobjectivehistory.Table, controlobjectivehistory.Columns, sqlgraph.NewFieldSpec(controlobjectivehistory.FieldID, field.TypeString)) + _spec.From = cohq.sql + if unique := cohq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if cohq.path != nil { + _spec.Unique = true + } + if fields := cohq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, controlobjectivehistory.FieldID) + for i := range fields { + if fields[i] != controlobjectivehistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := cohq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := cohq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := cohq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := cohq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (cohq *ControlObjectiveHistoryQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(cohq.driver.Dialect()) + t1 := builder.Table(controlobjectivehistory.Table) + columns := cohq.ctx.Fields + if len(columns) == 0 { + columns = controlobjectivehistory.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if cohq.sql != nil { + selector = cohq.sql + selector.Select(selector.Columns(columns...)...) + } + if cohq.ctx.Unique != nil && *cohq.ctx.Unique { + selector.Distinct() + } + t1.Schema(cohq.schemaConfig.ControlObjectiveHistory) + ctx = internal.NewSchemaConfigContext(ctx, cohq.schemaConfig) + selector.WithContext(ctx) + for _, m := range cohq.modifiers { + m(selector) + } + for _, p := range cohq.predicates { + p(selector) + } + for _, p := range cohq.order { + p(selector) + } + if offset := cohq.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 := cohq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (cohq *ControlObjectiveHistoryQuery) Modify(modifiers ...func(s *sql.Selector)) *ControlObjectiveHistorySelect { + cohq.modifiers = append(cohq.modifiers, modifiers...) + return cohq.Select() +} + +// ControlObjectiveHistoryGroupBy is the group-by builder for ControlObjectiveHistory entities. +type ControlObjectiveHistoryGroupBy struct { + selector + build *ControlObjectiveHistoryQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (cohgb *ControlObjectiveHistoryGroupBy) Aggregate(fns ...AggregateFunc) *ControlObjectiveHistoryGroupBy { + cohgb.fns = append(cohgb.fns, fns...) + return cohgb +} + +// Scan applies the selector query and scans the result into the given value. +func (cohgb *ControlObjectiveHistoryGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, cohgb.build.ctx, ent.OpQueryGroupBy) + if err := cohgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ControlObjectiveHistoryQuery, *ControlObjectiveHistoryGroupBy](ctx, cohgb.build, cohgb, cohgb.build.inters, v) +} + +func (cohgb *ControlObjectiveHistoryGroupBy) sqlScan(ctx context.Context, root *ControlObjectiveHistoryQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(cohgb.fns)) + for _, fn := range cohgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*cohgb.flds)+len(cohgb.fns)) + for _, f := range *cohgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*cohgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := cohgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// ControlObjectiveHistorySelect is the builder for selecting fields of ControlObjectiveHistory entities. +type ControlObjectiveHistorySelect struct { + *ControlObjectiveHistoryQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (cohs *ControlObjectiveHistorySelect) Aggregate(fns ...AggregateFunc) *ControlObjectiveHistorySelect { + cohs.fns = append(cohs.fns, fns...) + return cohs +} + +// Scan applies the selector query and scans the result into the given value. +func (cohs *ControlObjectiveHistorySelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, cohs.ctx, ent.OpQuerySelect) + if err := cohs.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ControlObjectiveHistoryQuery, *ControlObjectiveHistorySelect](ctx, cohs.ControlObjectiveHistoryQuery, cohs, cohs.inters, v) +} + +func (cohs *ControlObjectiveHistorySelect) sqlScan(ctx context.Context, root *ControlObjectiveHistoryQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(cohs.fns)) + for _, fn := range cohs.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*cohs.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 := cohs.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 (cohs *ControlObjectiveHistorySelect) Modify(modifiers ...func(s *sql.Selector)) *ControlObjectiveHistorySelect { + cohs.modifiers = append(cohs.modifiers, modifiers...) + return cohs +} diff --git a/internal/ent/generated/controlobjectivehistory_update.go b/internal/ent/generated/controlobjectivehistory_update.go new file mode 100644 index 00000000..dfe6e1a3 --- /dev/null +++ b/internal/ent/generated/controlobjectivehistory_update.go @@ -0,0 +1,1023 @@ +// 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/internal/ent/generated/controlobjectivehistory" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ControlObjectiveHistoryUpdate is the builder for updating ControlObjectiveHistory entities. +type ControlObjectiveHistoryUpdate struct { + config + hooks []Hook + mutation *ControlObjectiveHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the ControlObjectiveHistoryUpdate builder. +func (cohu *ControlObjectiveHistoryUpdate) Where(ps ...predicate.ControlObjectiveHistory) *ControlObjectiveHistoryUpdate { + cohu.mutation.Where(ps...) + return cohu +} + +// SetUpdatedAt sets the "updated_at" field. +func (cohu *ControlObjectiveHistoryUpdate) SetUpdatedAt(t time.Time) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetUpdatedAt(t) + return cohu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearUpdatedAt() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearUpdatedAt() + return cohu +} + +// SetUpdatedBy sets the "updated_by" field. +func (cohu *ControlObjectiveHistoryUpdate) SetUpdatedBy(s string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetUpdatedBy(s) + return cohu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableUpdatedBy(s *string) *ControlObjectiveHistoryUpdate { + if s != nil { + cohu.SetUpdatedBy(*s) + } + return cohu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearUpdatedBy() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearUpdatedBy() + return cohu +} + +// SetDeletedAt sets the "deleted_at" field. +func (cohu *ControlObjectiveHistoryUpdate) SetDeletedAt(t time.Time) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetDeletedAt(t) + return cohu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableDeletedAt(t *time.Time) *ControlObjectiveHistoryUpdate { + if t != nil { + cohu.SetDeletedAt(*t) + } + return cohu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearDeletedAt() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearDeletedAt() + return cohu +} + +// SetDeletedBy sets the "deleted_by" field. +func (cohu *ControlObjectiveHistoryUpdate) SetDeletedBy(s string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetDeletedBy(s) + return cohu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableDeletedBy(s *string) *ControlObjectiveHistoryUpdate { + if s != nil { + cohu.SetDeletedBy(*s) + } + return cohu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearDeletedBy() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearDeletedBy() + return cohu +} + +// SetTags sets the "tags" field. +func (cohu *ControlObjectiveHistoryUpdate) SetTags(s []string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetTags(s) + return cohu +} + +// AppendTags appends s to the "tags" field. +func (cohu *ControlObjectiveHistoryUpdate) AppendTags(s []string) *ControlObjectiveHistoryUpdate { + cohu.mutation.AppendTags(s) + return cohu +} + +// ClearTags clears the value of the "tags" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearTags() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearTags() + return cohu +} + +// SetName sets the "name" field. +func (cohu *ControlObjectiveHistoryUpdate) SetName(s string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetName(s) + return cohu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableName(s *string) *ControlObjectiveHistoryUpdate { + if s != nil { + cohu.SetName(*s) + } + return cohu +} + +// SetDescription sets the "description" field. +func (cohu *ControlObjectiveHistoryUpdate) SetDescription(s string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetDescription(s) + return cohu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableDescription(s *string) *ControlObjectiveHistoryUpdate { + if s != nil { + cohu.SetDescription(*s) + } + return cohu +} + +// ClearDescription clears the value of the "description" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearDescription() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearDescription() + return cohu +} + +// SetStatus sets the "status" field. +func (cohu *ControlObjectiveHistoryUpdate) SetStatus(s string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetStatus(s) + return cohu +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableStatus(s *string) *ControlObjectiveHistoryUpdate { + if s != nil { + cohu.SetStatus(*s) + } + return cohu +} + +// ClearStatus clears the value of the "status" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearStatus() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearStatus() + return cohu +} + +// SetControlObjectiveType sets the "control_objective_type" field. +func (cohu *ControlObjectiveHistoryUpdate) SetControlObjectiveType(s string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetControlObjectiveType(s) + return cohu +} + +// SetNillableControlObjectiveType sets the "control_objective_type" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableControlObjectiveType(s *string) *ControlObjectiveHistoryUpdate { + if s != nil { + cohu.SetControlObjectiveType(*s) + } + return cohu +} + +// ClearControlObjectiveType clears the value of the "control_objective_type" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearControlObjectiveType() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearControlObjectiveType() + return cohu +} + +// SetVersion sets the "version" field. +func (cohu *ControlObjectiveHistoryUpdate) SetVersion(s string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetVersion(s) + return cohu +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableVersion(s *string) *ControlObjectiveHistoryUpdate { + if s != nil { + cohu.SetVersion(*s) + } + return cohu +} + +// ClearVersion clears the value of the "version" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearVersion() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearVersion() + return cohu +} + +// SetControlNumber sets the "control_number" field. +func (cohu *ControlObjectiveHistoryUpdate) SetControlNumber(s string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetControlNumber(s) + return cohu +} + +// SetNillableControlNumber sets the "control_number" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableControlNumber(s *string) *ControlObjectiveHistoryUpdate { + if s != nil { + cohu.SetControlNumber(*s) + } + return cohu +} + +// ClearControlNumber clears the value of the "control_number" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearControlNumber() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearControlNumber() + return cohu +} + +// SetFamily sets the "family" field. +func (cohu *ControlObjectiveHistoryUpdate) SetFamily(s string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetFamily(s) + return cohu +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableFamily(s *string) *ControlObjectiveHistoryUpdate { + if s != nil { + cohu.SetFamily(*s) + } + return cohu +} + +// ClearFamily clears the value of the "family" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearFamily() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearFamily() + return cohu +} + +// SetClass sets the "class" field. +func (cohu *ControlObjectiveHistoryUpdate) SetClass(s string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetClass(s) + return cohu +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableClass(s *string) *ControlObjectiveHistoryUpdate { + if s != nil { + cohu.SetClass(*s) + } + return cohu +} + +// ClearClass clears the value of the "class" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearClass() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearClass() + return cohu +} + +// SetSource sets the "source" field. +func (cohu *ControlObjectiveHistoryUpdate) SetSource(s string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetSource(s) + return cohu +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableSource(s *string) *ControlObjectiveHistoryUpdate { + if s != nil { + cohu.SetSource(*s) + } + return cohu +} + +// ClearSource clears the value of the "source" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearSource() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearSource() + return cohu +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (cohu *ControlObjectiveHistoryUpdate) SetMappedFrameworks(s string) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetMappedFrameworks(s) + return cohu +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (cohu *ControlObjectiveHistoryUpdate) SetNillableMappedFrameworks(s *string) *ControlObjectiveHistoryUpdate { + if s != nil { + cohu.SetMappedFrameworks(*s) + } + return cohu +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearMappedFrameworks() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearMappedFrameworks() + return cohu +} + +// SetDetails sets the "details" field. +func (cohu *ControlObjectiveHistoryUpdate) SetDetails(m map[string]interface{}) *ControlObjectiveHistoryUpdate { + cohu.mutation.SetDetails(m) + return cohu +} + +// ClearDetails clears the value of the "details" field. +func (cohu *ControlObjectiveHistoryUpdate) ClearDetails() *ControlObjectiveHistoryUpdate { + cohu.mutation.ClearDetails() + return cohu +} + +// Mutation returns the ControlObjectiveHistoryMutation object of the builder. +func (cohu *ControlObjectiveHistoryUpdate) Mutation() *ControlObjectiveHistoryMutation { + return cohu.mutation +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (cohu *ControlObjectiveHistoryUpdate) Save(ctx context.Context) (int, error) { + cohu.defaults() + return withHooks(ctx, cohu.sqlSave, cohu.mutation, cohu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (cohu *ControlObjectiveHistoryUpdate) SaveX(ctx context.Context) int { + affected, err := cohu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (cohu *ControlObjectiveHistoryUpdate) Exec(ctx context.Context) error { + _, err := cohu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (cohu *ControlObjectiveHistoryUpdate) ExecX(ctx context.Context) { + if err := cohu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (cohu *ControlObjectiveHistoryUpdate) defaults() { + if _, ok := cohu.mutation.UpdatedAt(); !ok && !cohu.mutation.UpdatedAtCleared() { + v := controlobjectivehistory.UpdateDefaultUpdatedAt() + cohu.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (cohu *ControlObjectiveHistoryUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ControlObjectiveHistoryUpdate { + cohu.modifiers = append(cohu.modifiers, modifiers...) + return cohu +} + +func (cohu *ControlObjectiveHistoryUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(controlobjectivehistory.Table, controlobjectivehistory.Columns, sqlgraph.NewFieldSpec(controlobjectivehistory.FieldID, field.TypeString)) + if ps := cohu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if cohu.mutation.RefCleared() { + _spec.ClearField(controlobjectivehistory.FieldRef, field.TypeString) + } + if cohu.mutation.CreatedAtCleared() { + _spec.ClearField(controlobjectivehistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := cohu.mutation.UpdatedAt(); ok { + _spec.SetField(controlobjectivehistory.FieldUpdatedAt, field.TypeTime, value) + } + if cohu.mutation.UpdatedAtCleared() { + _spec.ClearField(controlobjectivehistory.FieldUpdatedAt, field.TypeTime) + } + if cohu.mutation.CreatedByCleared() { + _spec.ClearField(controlobjectivehistory.FieldCreatedBy, field.TypeString) + } + if value, ok := cohu.mutation.UpdatedBy(); ok { + _spec.SetField(controlobjectivehistory.FieldUpdatedBy, field.TypeString, value) + } + if cohu.mutation.UpdatedByCleared() { + _spec.ClearField(controlobjectivehistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := cohu.mutation.DeletedAt(); ok { + _spec.SetField(controlobjectivehistory.FieldDeletedAt, field.TypeTime, value) + } + if cohu.mutation.DeletedAtCleared() { + _spec.ClearField(controlobjectivehistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := cohu.mutation.DeletedBy(); ok { + _spec.SetField(controlobjectivehistory.FieldDeletedBy, field.TypeString, value) + } + if cohu.mutation.DeletedByCleared() { + _spec.ClearField(controlobjectivehistory.FieldDeletedBy, field.TypeString) + } + if value, ok := cohu.mutation.Tags(); ok { + _spec.SetField(controlobjectivehistory.FieldTags, field.TypeJSON, value) + } + if value, ok := cohu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, controlobjectivehistory.FieldTags, value) + }) + } + if cohu.mutation.TagsCleared() { + _spec.ClearField(controlobjectivehistory.FieldTags, field.TypeJSON) + } + if value, ok := cohu.mutation.Name(); ok { + _spec.SetField(controlobjectivehistory.FieldName, field.TypeString, value) + } + if value, ok := cohu.mutation.Description(); ok { + _spec.SetField(controlobjectivehistory.FieldDescription, field.TypeString, value) + } + if cohu.mutation.DescriptionCleared() { + _spec.ClearField(controlobjectivehistory.FieldDescription, field.TypeString) + } + if value, ok := cohu.mutation.Status(); ok { + _spec.SetField(controlobjectivehistory.FieldStatus, field.TypeString, value) + } + if cohu.mutation.StatusCleared() { + _spec.ClearField(controlobjectivehistory.FieldStatus, field.TypeString) + } + if value, ok := cohu.mutation.ControlObjectiveType(); ok { + _spec.SetField(controlobjectivehistory.FieldControlObjectiveType, field.TypeString, value) + } + if cohu.mutation.ControlObjectiveTypeCleared() { + _spec.ClearField(controlobjectivehistory.FieldControlObjectiveType, field.TypeString) + } + if value, ok := cohu.mutation.Version(); ok { + _spec.SetField(controlobjectivehistory.FieldVersion, field.TypeString, value) + } + if cohu.mutation.VersionCleared() { + _spec.ClearField(controlobjectivehistory.FieldVersion, field.TypeString) + } + if value, ok := cohu.mutation.ControlNumber(); ok { + _spec.SetField(controlobjectivehistory.FieldControlNumber, field.TypeString, value) + } + if cohu.mutation.ControlNumberCleared() { + _spec.ClearField(controlobjectivehistory.FieldControlNumber, field.TypeString) + } + if value, ok := cohu.mutation.Family(); ok { + _spec.SetField(controlobjectivehistory.FieldFamily, field.TypeString, value) + } + if cohu.mutation.FamilyCleared() { + _spec.ClearField(controlobjectivehistory.FieldFamily, field.TypeString) + } + if value, ok := cohu.mutation.Class(); ok { + _spec.SetField(controlobjectivehistory.FieldClass, field.TypeString, value) + } + if cohu.mutation.ClassCleared() { + _spec.ClearField(controlobjectivehistory.FieldClass, field.TypeString) + } + if value, ok := cohu.mutation.Source(); ok { + _spec.SetField(controlobjectivehistory.FieldSource, field.TypeString, value) + } + if cohu.mutation.SourceCleared() { + _spec.ClearField(controlobjectivehistory.FieldSource, field.TypeString) + } + if value, ok := cohu.mutation.MappedFrameworks(); ok { + _spec.SetField(controlobjectivehistory.FieldMappedFrameworks, field.TypeString, value) + } + if cohu.mutation.MappedFrameworksCleared() { + _spec.ClearField(controlobjectivehistory.FieldMappedFrameworks, field.TypeString) + } + if value, ok := cohu.mutation.Details(); ok { + _spec.SetField(controlobjectivehistory.FieldDetails, field.TypeJSON, value) + } + if cohu.mutation.DetailsCleared() { + _spec.ClearField(controlobjectivehistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = cohu.schemaConfig.ControlObjectiveHistory + ctx = internal.NewSchemaConfigContext(ctx, cohu.schemaConfig) + _spec.AddModifiers(cohu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, cohu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{controlobjectivehistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + cohu.mutation.done = true + return n, nil +} + +// ControlObjectiveHistoryUpdateOne is the builder for updating a single ControlObjectiveHistory entity. +type ControlObjectiveHistoryUpdateOne struct { + config + fields []string + hooks []Hook + mutation *ControlObjectiveHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetUpdatedAt(t time.Time) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetUpdatedAt(t) + return cohuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearUpdatedAt() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearUpdatedAt() + return cohuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetUpdatedBy(s string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetUpdatedBy(s) + return cohuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableUpdatedBy(s *string) *ControlObjectiveHistoryUpdateOne { + if s != nil { + cohuo.SetUpdatedBy(*s) + } + return cohuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearUpdatedBy() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearUpdatedBy() + return cohuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetDeletedAt(t time.Time) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetDeletedAt(t) + return cohuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableDeletedAt(t *time.Time) *ControlObjectiveHistoryUpdateOne { + if t != nil { + cohuo.SetDeletedAt(*t) + } + return cohuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearDeletedAt() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearDeletedAt() + return cohuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetDeletedBy(s string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetDeletedBy(s) + return cohuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableDeletedBy(s *string) *ControlObjectiveHistoryUpdateOne { + if s != nil { + cohuo.SetDeletedBy(*s) + } + return cohuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearDeletedBy() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearDeletedBy() + return cohuo +} + +// SetTags sets the "tags" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetTags(s []string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetTags(s) + return cohuo +} + +// AppendTags appends s to the "tags" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) AppendTags(s []string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.AppendTags(s) + return cohuo +} + +// ClearTags clears the value of the "tags" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearTags() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearTags() + return cohuo +} + +// SetName sets the "name" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetName(s string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetName(s) + return cohuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableName(s *string) *ControlObjectiveHistoryUpdateOne { + if s != nil { + cohuo.SetName(*s) + } + return cohuo +} + +// SetDescription sets the "description" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetDescription(s string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetDescription(s) + return cohuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableDescription(s *string) *ControlObjectiveHistoryUpdateOne { + if s != nil { + cohuo.SetDescription(*s) + } + return cohuo +} + +// ClearDescription clears the value of the "description" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearDescription() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearDescription() + return cohuo +} + +// SetStatus sets the "status" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetStatus(s string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetStatus(s) + return cohuo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableStatus(s *string) *ControlObjectiveHistoryUpdateOne { + if s != nil { + cohuo.SetStatus(*s) + } + return cohuo +} + +// ClearStatus clears the value of the "status" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearStatus() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearStatus() + return cohuo +} + +// SetControlObjectiveType sets the "control_objective_type" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetControlObjectiveType(s string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetControlObjectiveType(s) + return cohuo +} + +// SetNillableControlObjectiveType sets the "control_objective_type" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableControlObjectiveType(s *string) *ControlObjectiveHistoryUpdateOne { + if s != nil { + cohuo.SetControlObjectiveType(*s) + } + return cohuo +} + +// ClearControlObjectiveType clears the value of the "control_objective_type" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearControlObjectiveType() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearControlObjectiveType() + return cohuo +} + +// SetVersion sets the "version" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetVersion(s string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetVersion(s) + return cohuo +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableVersion(s *string) *ControlObjectiveHistoryUpdateOne { + if s != nil { + cohuo.SetVersion(*s) + } + return cohuo +} + +// ClearVersion clears the value of the "version" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearVersion() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearVersion() + return cohuo +} + +// SetControlNumber sets the "control_number" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetControlNumber(s string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetControlNumber(s) + return cohuo +} + +// SetNillableControlNumber sets the "control_number" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableControlNumber(s *string) *ControlObjectiveHistoryUpdateOne { + if s != nil { + cohuo.SetControlNumber(*s) + } + return cohuo +} + +// ClearControlNumber clears the value of the "control_number" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearControlNumber() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearControlNumber() + return cohuo +} + +// SetFamily sets the "family" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetFamily(s string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetFamily(s) + return cohuo +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableFamily(s *string) *ControlObjectiveHistoryUpdateOne { + if s != nil { + cohuo.SetFamily(*s) + } + return cohuo +} + +// ClearFamily clears the value of the "family" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearFamily() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearFamily() + return cohuo +} + +// SetClass sets the "class" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetClass(s string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetClass(s) + return cohuo +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableClass(s *string) *ControlObjectiveHistoryUpdateOne { + if s != nil { + cohuo.SetClass(*s) + } + return cohuo +} + +// ClearClass clears the value of the "class" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearClass() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearClass() + return cohuo +} + +// SetSource sets the "source" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetSource(s string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetSource(s) + return cohuo +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableSource(s *string) *ControlObjectiveHistoryUpdateOne { + if s != nil { + cohuo.SetSource(*s) + } + return cohuo +} + +// ClearSource clears the value of the "source" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearSource() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearSource() + return cohuo +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetMappedFrameworks(s string) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetMappedFrameworks(s) + return cohuo +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetNillableMappedFrameworks(s *string) *ControlObjectiveHistoryUpdateOne { + if s != nil { + cohuo.SetMappedFrameworks(*s) + } + return cohuo +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearMappedFrameworks() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearMappedFrameworks() + return cohuo +} + +// SetDetails sets the "details" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) SetDetails(m map[string]interface{}) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.SetDetails(m) + return cohuo +} + +// ClearDetails clears the value of the "details" field. +func (cohuo *ControlObjectiveHistoryUpdateOne) ClearDetails() *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.ClearDetails() + return cohuo +} + +// Mutation returns the ControlObjectiveHistoryMutation object of the builder. +func (cohuo *ControlObjectiveHistoryUpdateOne) Mutation() *ControlObjectiveHistoryMutation { + return cohuo.mutation +} + +// Where appends a list predicates to the ControlObjectiveHistoryUpdate builder. +func (cohuo *ControlObjectiveHistoryUpdateOne) Where(ps ...predicate.ControlObjectiveHistory) *ControlObjectiveHistoryUpdateOne { + cohuo.mutation.Where(ps...) + return cohuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (cohuo *ControlObjectiveHistoryUpdateOne) Select(field string, fields ...string) *ControlObjectiveHistoryUpdateOne { + cohuo.fields = append([]string{field}, fields...) + return cohuo +} + +// Save executes the query and returns the updated ControlObjectiveHistory entity. +func (cohuo *ControlObjectiveHistoryUpdateOne) Save(ctx context.Context) (*ControlObjectiveHistory, error) { + cohuo.defaults() + return withHooks(ctx, cohuo.sqlSave, cohuo.mutation, cohuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (cohuo *ControlObjectiveHistoryUpdateOne) SaveX(ctx context.Context) *ControlObjectiveHistory { + node, err := cohuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (cohuo *ControlObjectiveHistoryUpdateOne) Exec(ctx context.Context) error { + _, err := cohuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (cohuo *ControlObjectiveHistoryUpdateOne) ExecX(ctx context.Context) { + if err := cohuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (cohuo *ControlObjectiveHistoryUpdateOne) defaults() { + if _, ok := cohuo.mutation.UpdatedAt(); !ok && !cohuo.mutation.UpdatedAtCleared() { + v := controlobjectivehistory.UpdateDefaultUpdatedAt() + cohuo.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (cohuo *ControlObjectiveHistoryUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ControlObjectiveHistoryUpdateOne { + cohuo.modifiers = append(cohuo.modifiers, modifiers...) + return cohuo +} + +func (cohuo *ControlObjectiveHistoryUpdateOne) sqlSave(ctx context.Context) (_node *ControlObjectiveHistory, err error) { + _spec := sqlgraph.NewUpdateSpec(controlobjectivehistory.Table, controlobjectivehistory.Columns, sqlgraph.NewFieldSpec(controlobjectivehistory.FieldID, field.TypeString)) + id, ok := cohuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "ControlObjectiveHistory.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := cohuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, controlobjectivehistory.FieldID) + for _, f := range fields { + if !controlobjectivehistory.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != controlobjectivehistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := cohuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if cohuo.mutation.RefCleared() { + _spec.ClearField(controlobjectivehistory.FieldRef, field.TypeString) + } + if cohuo.mutation.CreatedAtCleared() { + _spec.ClearField(controlobjectivehistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := cohuo.mutation.UpdatedAt(); ok { + _spec.SetField(controlobjectivehistory.FieldUpdatedAt, field.TypeTime, value) + } + if cohuo.mutation.UpdatedAtCleared() { + _spec.ClearField(controlobjectivehistory.FieldUpdatedAt, field.TypeTime) + } + if cohuo.mutation.CreatedByCleared() { + _spec.ClearField(controlobjectivehistory.FieldCreatedBy, field.TypeString) + } + if value, ok := cohuo.mutation.UpdatedBy(); ok { + _spec.SetField(controlobjectivehistory.FieldUpdatedBy, field.TypeString, value) + } + if cohuo.mutation.UpdatedByCleared() { + _spec.ClearField(controlobjectivehistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := cohuo.mutation.DeletedAt(); ok { + _spec.SetField(controlobjectivehistory.FieldDeletedAt, field.TypeTime, value) + } + if cohuo.mutation.DeletedAtCleared() { + _spec.ClearField(controlobjectivehistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := cohuo.mutation.DeletedBy(); ok { + _spec.SetField(controlobjectivehistory.FieldDeletedBy, field.TypeString, value) + } + if cohuo.mutation.DeletedByCleared() { + _spec.ClearField(controlobjectivehistory.FieldDeletedBy, field.TypeString) + } + if value, ok := cohuo.mutation.Tags(); ok { + _spec.SetField(controlobjectivehistory.FieldTags, field.TypeJSON, value) + } + if value, ok := cohuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, controlobjectivehistory.FieldTags, value) + }) + } + if cohuo.mutation.TagsCleared() { + _spec.ClearField(controlobjectivehistory.FieldTags, field.TypeJSON) + } + if value, ok := cohuo.mutation.Name(); ok { + _spec.SetField(controlobjectivehistory.FieldName, field.TypeString, value) + } + if value, ok := cohuo.mutation.Description(); ok { + _spec.SetField(controlobjectivehistory.FieldDescription, field.TypeString, value) + } + if cohuo.mutation.DescriptionCleared() { + _spec.ClearField(controlobjectivehistory.FieldDescription, field.TypeString) + } + if value, ok := cohuo.mutation.Status(); ok { + _spec.SetField(controlobjectivehistory.FieldStatus, field.TypeString, value) + } + if cohuo.mutation.StatusCleared() { + _spec.ClearField(controlobjectivehistory.FieldStatus, field.TypeString) + } + if value, ok := cohuo.mutation.ControlObjectiveType(); ok { + _spec.SetField(controlobjectivehistory.FieldControlObjectiveType, field.TypeString, value) + } + if cohuo.mutation.ControlObjectiveTypeCleared() { + _spec.ClearField(controlobjectivehistory.FieldControlObjectiveType, field.TypeString) + } + if value, ok := cohuo.mutation.Version(); ok { + _spec.SetField(controlobjectivehistory.FieldVersion, field.TypeString, value) + } + if cohuo.mutation.VersionCleared() { + _spec.ClearField(controlobjectivehistory.FieldVersion, field.TypeString) + } + if value, ok := cohuo.mutation.ControlNumber(); ok { + _spec.SetField(controlobjectivehistory.FieldControlNumber, field.TypeString, value) + } + if cohuo.mutation.ControlNumberCleared() { + _spec.ClearField(controlobjectivehistory.FieldControlNumber, field.TypeString) + } + if value, ok := cohuo.mutation.Family(); ok { + _spec.SetField(controlobjectivehistory.FieldFamily, field.TypeString, value) + } + if cohuo.mutation.FamilyCleared() { + _spec.ClearField(controlobjectivehistory.FieldFamily, field.TypeString) + } + if value, ok := cohuo.mutation.Class(); ok { + _spec.SetField(controlobjectivehistory.FieldClass, field.TypeString, value) + } + if cohuo.mutation.ClassCleared() { + _spec.ClearField(controlobjectivehistory.FieldClass, field.TypeString) + } + if value, ok := cohuo.mutation.Source(); ok { + _spec.SetField(controlobjectivehistory.FieldSource, field.TypeString, value) + } + if cohuo.mutation.SourceCleared() { + _spec.ClearField(controlobjectivehistory.FieldSource, field.TypeString) + } + if value, ok := cohuo.mutation.MappedFrameworks(); ok { + _spec.SetField(controlobjectivehistory.FieldMappedFrameworks, field.TypeString, value) + } + if cohuo.mutation.MappedFrameworksCleared() { + _spec.ClearField(controlobjectivehistory.FieldMappedFrameworks, field.TypeString) + } + if value, ok := cohuo.mutation.Details(); ok { + _spec.SetField(controlobjectivehistory.FieldDetails, field.TypeJSON, value) + } + if cohuo.mutation.DetailsCleared() { + _spec.ClearField(controlobjectivehistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = cohuo.schemaConfig.ControlObjectiveHistory + ctx = internal.NewSchemaConfigContext(ctx, cohuo.schemaConfig) + _spec.AddModifiers(cohuo.modifiers...) + _node = &ControlObjectiveHistory{config: cohuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, cohuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{controlobjectivehistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + cohuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/edge_cleanup.go b/internal/ent/generated/edge_cleanup.go index d95b3b74..9395b3df 100644 --- a/internal/ent/generated/edge_cleanup.go +++ b/internal/ent/generated/edge_cleanup.go @@ -42,6 +42,20 @@ func APITokenEdgeCleanup(ctx context.Context, id string) error { return nil } +func ActionPlanEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup actionplan edge")) + + return nil +} + +func ActionPlanHistoryEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup actionplanhistory edge")) + + return nil +} + func ContactEdgeCleanup(ctx context.Context, id string) error { // If a user has access to delete the object, they have access to delete all edges ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup contact edge")) @@ -56,6 +70,34 @@ func ContactHistoryEdgeCleanup(ctx context.Context, id string) error { return nil } +func ControlEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup control edge")) + + return nil +} + +func ControlHistoryEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup controlhistory edge")) + + return nil +} + +func ControlObjectiveEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup controlobjective edge")) + + return nil +} + +func ControlObjectiveHistoryEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup controlobjectivehistory edge")) + + return nil +} + func DocumentDataEdgeCleanup(ctx context.Context, id string) error { // If a user has access to delete the object, they have access to delete all edges ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup documentdata edge")) @@ -273,6 +315,20 @@ func IntegrationHistoryEdgeCleanup(ctx context.Context, id string) error { return nil } +func InternalPolicyEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup internalpolicy edge")) + + return nil +} + +func InternalPolicyHistoryEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup internalpolicyhistory edge")) + + return nil +} + func InviteEdgeCleanup(ctx context.Context, id string) error { // If a user has access to delete the object, they have access to delete all edges ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup invite edge")) @@ -280,6 +336,20 @@ func InviteEdgeCleanup(ctx context.Context, id string) error { return nil } +func NarrativeEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup narrative edge")) + + return nil +} + +func NarrativeHistoryEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup narrativehistory edge")) + + return nil +} + func NoteEdgeCleanup(ctx context.Context, id string) error { // If a user has access to delete the object, they have access to delete all edges ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup note edge")) @@ -490,6 +560,62 @@ func PersonalAccessTokenEdgeCleanup(ctx context.Context, id string) error { return nil } +func ProcedureEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup procedure edge")) + + return nil +} + +func ProcedureHistoryEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup procedurehistory edge")) + + return nil +} + +func RiskEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup risk edge")) + + return nil +} + +func RiskHistoryEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup riskhistory edge")) + + return nil +} + +func StandardEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup standard edge")) + + return nil +} + +func StandardHistoryEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup standardhistory edge")) + + return nil +} + +func SubcontrolEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup subcontrol edge")) + + return nil +} + +func SubcontrolHistoryEdgeCleanup(ctx context.Context, id string) error { + // If a user has access to delete the object, they have access to delete all edges + ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup subcontrolhistory edge")) + + return nil +} + func SubscriberEdgeCleanup(ctx context.Context, id string) error { // If a user has access to delete the object, they have access to delete all edges ctx = privacy.DecisionContext(ctx, privacy.Allowf("cleanup subscriber edge")) diff --git a/internal/ent/generated/ent.go b/internal/ent/generated/ent.go index 7924e4ee..ec59a06c 100644 --- a/internal/ent/generated/ent.go +++ b/internal/ent/generated/ent.go @@ -12,9 +12,15 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/theopenlane/core/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" "github.com/theopenlane/core/internal/ent/generated/apitoken" "github.com/theopenlane/core/internal/ent/generated/contact" "github.com/theopenlane/core/internal/ent/generated/contacthistory" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" "github.com/theopenlane/core/internal/ent/generated/documentdata" "github.com/theopenlane/core/internal/ent/generated/documentdatahistory" "github.com/theopenlane/core/internal/ent/generated/emailverificationtoken" @@ -44,7 +50,11 @@ import ( "github.com/theopenlane/core/internal/ent/generated/hushhistory" "github.com/theopenlane/core/internal/ent/generated/integration" "github.com/theopenlane/core/internal/ent/generated/integrationhistory" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" "github.com/theopenlane/core/internal/ent/generated/invite" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/notehistory" "github.com/theopenlane/core/internal/ent/generated/oauthprovider" @@ -58,6 +68,14 @@ import ( "github.com/theopenlane/core/internal/ent/generated/orgmembershiphistory" "github.com/theopenlane/core/internal/ent/generated/passwordresettoken" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" "github.com/theopenlane/core/internal/ent/generated/subscriber" "github.com/theopenlane/core/internal/ent/generated/template" "github.com/theopenlane/core/internal/ent/generated/templatehistory" @@ -130,8 +148,14 @@ func checkColumn(table, column string) error { initCheck.Do(func() { columnCheck = sql.NewColumnCheck(map[string]func(string) bool{ apitoken.Table: apitoken.ValidColumn, + actionplan.Table: actionplan.ValidColumn, + actionplanhistory.Table: actionplanhistory.ValidColumn, contact.Table: contact.ValidColumn, contacthistory.Table: contacthistory.ValidColumn, + control.Table: control.ValidColumn, + controlhistory.Table: controlhistory.ValidColumn, + controlobjective.Table: controlobjective.ValidColumn, + controlobjectivehistory.Table: controlobjectivehistory.ValidColumn, documentdata.Table: documentdata.ValidColumn, documentdatahistory.Table: documentdatahistory.ValidColumn, emailverificationtoken.Table: emailverificationtoken.ValidColumn, @@ -161,7 +185,11 @@ func checkColumn(table, column string) error { hushhistory.Table: hushhistory.ValidColumn, integration.Table: integration.ValidColumn, integrationhistory.Table: integrationhistory.ValidColumn, + internalpolicy.Table: internalpolicy.ValidColumn, + internalpolicyhistory.Table: internalpolicyhistory.ValidColumn, invite.Table: invite.ValidColumn, + narrative.Table: narrative.ValidColumn, + narrativehistory.Table: narrativehistory.ValidColumn, note.Table: note.ValidColumn, notehistory.Table: notehistory.ValidColumn, oauthprovider.Table: oauthprovider.ValidColumn, @@ -175,6 +203,14 @@ func checkColumn(table, column string) error { organizationsettinghistory.Table: organizationsettinghistory.ValidColumn, passwordresettoken.Table: passwordresettoken.ValidColumn, personalaccesstoken.Table: personalaccesstoken.ValidColumn, + procedure.Table: procedure.ValidColumn, + procedurehistory.Table: procedurehistory.ValidColumn, + risk.Table: risk.ValidColumn, + riskhistory.Table: riskhistory.ValidColumn, + standard.Table: standard.ValidColumn, + standardhistory.Table: standardhistory.ValidColumn, + subcontrol.Table: subcontrol.ValidColumn, + subcontrolhistory.Table: subcontrolhistory.ValidColumn, subscriber.Table: subscriber.ValidColumn, tfasetting.Table: tfasetting.ValidColumn, template.Table: template.ValidColumn, diff --git a/internal/ent/generated/entql.go b/internal/ent/generated/entql.go index 194cba87..ccc836c0 100644 --- a/internal/ent/generated/entql.go +++ b/internal/ent/generated/entql.go @@ -3,9 +3,15 @@ package generated import ( + "github.com/theopenlane/core/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" "github.com/theopenlane/core/internal/ent/generated/apitoken" "github.com/theopenlane/core/internal/ent/generated/contact" "github.com/theopenlane/core/internal/ent/generated/contacthistory" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" "github.com/theopenlane/core/internal/ent/generated/documentdata" "github.com/theopenlane/core/internal/ent/generated/documentdatahistory" "github.com/theopenlane/core/internal/ent/generated/emailverificationtoken" @@ -35,7 +41,11 @@ import ( "github.com/theopenlane/core/internal/ent/generated/hushhistory" "github.com/theopenlane/core/internal/ent/generated/integration" "github.com/theopenlane/core/internal/ent/generated/integrationhistory" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" "github.com/theopenlane/core/internal/ent/generated/invite" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/notehistory" "github.com/theopenlane/core/internal/ent/generated/oauthprovider" @@ -50,6 +60,14 @@ import ( "github.com/theopenlane/core/internal/ent/generated/passwordresettoken" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" "github.com/theopenlane/core/internal/ent/generated/subscriber" "github.com/theopenlane/core/internal/ent/generated/template" "github.com/theopenlane/core/internal/ent/generated/templatehistory" @@ -70,7 +88,7 @@ import ( // schemaGraph holds a representation of ent/schema at runtime. var schemaGraph = func() *sqlgraph.Schema { - graph := &sqlgraph.Schema{Nodes: make([]*sqlgraph.Node, 57)} + graph := &sqlgraph.Schema{Nodes: make([]*sqlgraph.Node, 75)} graph.Nodes[0] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: apitoken.Table, @@ -100,6 +118,65 @@ var schemaGraph = func() *sqlgraph.Schema { }, } graph.Nodes[1] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: actionplan.Table, + Columns: actionplan.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: actionplan.FieldID, + }, + }, + Type: "ActionPlan", + Fields: map[string]*sqlgraph.FieldSpec{ + actionplan.FieldCreatedAt: {Type: field.TypeTime, Column: actionplan.FieldCreatedAt}, + actionplan.FieldUpdatedAt: {Type: field.TypeTime, Column: actionplan.FieldUpdatedAt}, + actionplan.FieldCreatedBy: {Type: field.TypeString, Column: actionplan.FieldCreatedBy}, + actionplan.FieldUpdatedBy: {Type: field.TypeString, Column: actionplan.FieldUpdatedBy}, + actionplan.FieldDeletedAt: {Type: field.TypeTime, Column: actionplan.FieldDeletedAt}, + actionplan.FieldDeletedBy: {Type: field.TypeString, Column: actionplan.FieldDeletedBy}, + actionplan.FieldMappingID: {Type: field.TypeString, Column: actionplan.FieldMappingID}, + actionplan.FieldTags: {Type: field.TypeJSON, Column: actionplan.FieldTags}, + actionplan.FieldName: {Type: field.TypeString, Column: actionplan.FieldName}, + actionplan.FieldDescription: {Type: field.TypeString, Column: actionplan.FieldDescription}, + actionplan.FieldStatus: {Type: field.TypeString, Column: actionplan.FieldStatus}, + actionplan.FieldDueDate: {Type: field.TypeTime, Column: actionplan.FieldDueDate}, + actionplan.FieldPriority: {Type: field.TypeString, Column: actionplan.FieldPriority}, + actionplan.FieldSource: {Type: field.TypeString, Column: actionplan.FieldSource}, + actionplan.FieldDetails: {Type: field.TypeJSON, Column: actionplan.FieldDetails}, + }, + } + graph.Nodes[2] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: actionplanhistory.Table, + Columns: actionplanhistory.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: actionplanhistory.FieldID, + }, + }, + Type: "ActionPlanHistory", + Fields: map[string]*sqlgraph.FieldSpec{ + actionplanhistory.FieldHistoryTime: {Type: field.TypeTime, Column: actionplanhistory.FieldHistoryTime}, + actionplanhistory.FieldRef: {Type: field.TypeString, Column: actionplanhistory.FieldRef}, + actionplanhistory.FieldOperation: {Type: field.TypeEnum, Column: actionplanhistory.FieldOperation}, + actionplanhistory.FieldCreatedAt: {Type: field.TypeTime, Column: actionplanhistory.FieldCreatedAt}, + actionplanhistory.FieldUpdatedAt: {Type: field.TypeTime, Column: actionplanhistory.FieldUpdatedAt}, + actionplanhistory.FieldCreatedBy: {Type: field.TypeString, Column: actionplanhistory.FieldCreatedBy}, + actionplanhistory.FieldUpdatedBy: {Type: field.TypeString, Column: actionplanhistory.FieldUpdatedBy}, + actionplanhistory.FieldDeletedAt: {Type: field.TypeTime, Column: actionplanhistory.FieldDeletedAt}, + actionplanhistory.FieldDeletedBy: {Type: field.TypeString, Column: actionplanhistory.FieldDeletedBy}, + actionplanhistory.FieldMappingID: {Type: field.TypeString, Column: actionplanhistory.FieldMappingID}, + actionplanhistory.FieldTags: {Type: field.TypeJSON, Column: actionplanhistory.FieldTags}, + actionplanhistory.FieldName: {Type: field.TypeString, Column: actionplanhistory.FieldName}, + actionplanhistory.FieldDescription: {Type: field.TypeString, Column: actionplanhistory.FieldDescription}, + actionplanhistory.FieldStatus: {Type: field.TypeString, Column: actionplanhistory.FieldStatus}, + actionplanhistory.FieldDueDate: {Type: field.TypeTime, Column: actionplanhistory.FieldDueDate}, + actionplanhistory.FieldPriority: {Type: field.TypeString, Column: actionplanhistory.FieldPriority}, + actionplanhistory.FieldSource: {Type: field.TypeString, Column: actionplanhistory.FieldSource}, + actionplanhistory.FieldDetails: {Type: field.TypeJSON, Column: actionplanhistory.FieldDetails}, + }, + } + graph.Nodes[3] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: contact.Table, Columns: contact.Columns, @@ -128,7 +205,7 @@ var schemaGraph = func() *sqlgraph.Schema { contact.FieldStatus: {Type: field.TypeEnum, Column: contact.FieldStatus}, }, } - graph.Nodes[2] = &sqlgraph.Node{ + graph.Nodes[4] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: contacthistory.Table, Columns: contacthistory.Columns, @@ -160,7 +237,143 @@ var schemaGraph = func() *sqlgraph.Schema { contacthistory.FieldStatus: {Type: field.TypeEnum, Column: contacthistory.FieldStatus}, }, } - graph.Nodes[3] = &sqlgraph.Node{ + graph.Nodes[5] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: control.Table, + Columns: control.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: control.FieldID, + }, + }, + Type: "Control", + Fields: map[string]*sqlgraph.FieldSpec{ + control.FieldCreatedAt: {Type: field.TypeTime, Column: control.FieldCreatedAt}, + control.FieldUpdatedAt: {Type: field.TypeTime, Column: control.FieldUpdatedAt}, + control.FieldCreatedBy: {Type: field.TypeString, Column: control.FieldCreatedBy}, + control.FieldUpdatedBy: {Type: field.TypeString, Column: control.FieldUpdatedBy}, + control.FieldDeletedAt: {Type: field.TypeTime, Column: control.FieldDeletedAt}, + control.FieldDeletedBy: {Type: field.TypeString, Column: control.FieldDeletedBy}, + control.FieldMappingID: {Type: field.TypeString, Column: control.FieldMappingID}, + control.FieldTags: {Type: field.TypeJSON, Column: control.FieldTags}, + control.FieldName: {Type: field.TypeString, Column: control.FieldName}, + control.FieldDescription: {Type: field.TypeString, Column: control.FieldDescription}, + control.FieldStatus: {Type: field.TypeString, Column: control.FieldStatus}, + control.FieldControlType: {Type: field.TypeString, Column: control.FieldControlType}, + control.FieldVersion: {Type: field.TypeString, Column: control.FieldVersion}, + control.FieldControlNumber: {Type: field.TypeString, Column: control.FieldControlNumber}, + control.FieldFamily: {Type: field.TypeString, Column: control.FieldFamily}, + control.FieldClass: {Type: field.TypeString, Column: control.FieldClass}, + control.FieldSource: {Type: field.TypeString, Column: control.FieldSource}, + control.FieldSatisfies: {Type: field.TypeString, Column: control.FieldSatisfies}, + control.FieldMappedFrameworks: {Type: field.TypeString, Column: control.FieldMappedFrameworks}, + control.FieldDetails: {Type: field.TypeJSON, Column: control.FieldDetails}, + }, + } + graph.Nodes[6] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: controlhistory.Table, + Columns: controlhistory.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: controlhistory.FieldID, + }, + }, + Type: "ControlHistory", + Fields: map[string]*sqlgraph.FieldSpec{ + controlhistory.FieldHistoryTime: {Type: field.TypeTime, Column: controlhistory.FieldHistoryTime}, + controlhistory.FieldRef: {Type: field.TypeString, Column: controlhistory.FieldRef}, + controlhistory.FieldOperation: {Type: field.TypeEnum, Column: controlhistory.FieldOperation}, + controlhistory.FieldCreatedAt: {Type: field.TypeTime, Column: controlhistory.FieldCreatedAt}, + controlhistory.FieldUpdatedAt: {Type: field.TypeTime, Column: controlhistory.FieldUpdatedAt}, + controlhistory.FieldCreatedBy: {Type: field.TypeString, Column: controlhistory.FieldCreatedBy}, + controlhistory.FieldUpdatedBy: {Type: field.TypeString, Column: controlhistory.FieldUpdatedBy}, + controlhistory.FieldDeletedAt: {Type: field.TypeTime, Column: controlhistory.FieldDeletedAt}, + controlhistory.FieldDeletedBy: {Type: field.TypeString, Column: controlhistory.FieldDeletedBy}, + controlhistory.FieldMappingID: {Type: field.TypeString, Column: controlhistory.FieldMappingID}, + controlhistory.FieldTags: {Type: field.TypeJSON, Column: controlhistory.FieldTags}, + controlhistory.FieldName: {Type: field.TypeString, Column: controlhistory.FieldName}, + controlhistory.FieldDescription: {Type: field.TypeString, Column: controlhistory.FieldDescription}, + controlhistory.FieldStatus: {Type: field.TypeString, Column: controlhistory.FieldStatus}, + controlhistory.FieldControlType: {Type: field.TypeString, Column: controlhistory.FieldControlType}, + controlhistory.FieldVersion: {Type: field.TypeString, Column: controlhistory.FieldVersion}, + controlhistory.FieldControlNumber: {Type: field.TypeString, Column: controlhistory.FieldControlNumber}, + controlhistory.FieldFamily: {Type: field.TypeString, Column: controlhistory.FieldFamily}, + controlhistory.FieldClass: {Type: field.TypeString, Column: controlhistory.FieldClass}, + controlhistory.FieldSource: {Type: field.TypeString, Column: controlhistory.FieldSource}, + controlhistory.FieldSatisfies: {Type: field.TypeString, Column: controlhistory.FieldSatisfies}, + controlhistory.FieldMappedFrameworks: {Type: field.TypeString, Column: controlhistory.FieldMappedFrameworks}, + controlhistory.FieldDetails: {Type: field.TypeJSON, Column: controlhistory.FieldDetails}, + }, + } + graph.Nodes[7] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: controlobjective.Table, + Columns: controlobjective.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: controlobjective.FieldID, + }, + }, + Type: "ControlObjective", + Fields: map[string]*sqlgraph.FieldSpec{ + controlobjective.FieldCreatedAt: {Type: field.TypeTime, Column: controlobjective.FieldCreatedAt}, + controlobjective.FieldUpdatedAt: {Type: field.TypeTime, Column: controlobjective.FieldUpdatedAt}, + controlobjective.FieldCreatedBy: {Type: field.TypeString, Column: controlobjective.FieldCreatedBy}, + controlobjective.FieldUpdatedBy: {Type: field.TypeString, Column: controlobjective.FieldUpdatedBy}, + controlobjective.FieldDeletedAt: {Type: field.TypeTime, Column: controlobjective.FieldDeletedAt}, + controlobjective.FieldDeletedBy: {Type: field.TypeString, Column: controlobjective.FieldDeletedBy}, + controlobjective.FieldMappingID: {Type: field.TypeString, Column: controlobjective.FieldMappingID}, + controlobjective.FieldTags: {Type: field.TypeJSON, Column: controlobjective.FieldTags}, + controlobjective.FieldName: {Type: field.TypeString, Column: controlobjective.FieldName}, + controlobjective.FieldDescription: {Type: field.TypeString, Column: controlobjective.FieldDescription}, + controlobjective.FieldStatus: {Type: field.TypeString, Column: controlobjective.FieldStatus}, + controlobjective.FieldControlObjectiveType: {Type: field.TypeString, Column: controlobjective.FieldControlObjectiveType}, + controlobjective.FieldVersion: {Type: field.TypeString, Column: controlobjective.FieldVersion}, + controlobjective.FieldControlNumber: {Type: field.TypeString, Column: controlobjective.FieldControlNumber}, + controlobjective.FieldFamily: {Type: field.TypeString, Column: controlobjective.FieldFamily}, + controlobjective.FieldClass: {Type: field.TypeString, Column: controlobjective.FieldClass}, + controlobjective.FieldSource: {Type: field.TypeString, Column: controlobjective.FieldSource}, + controlobjective.FieldMappedFrameworks: {Type: field.TypeString, Column: controlobjective.FieldMappedFrameworks}, + controlobjective.FieldDetails: {Type: field.TypeJSON, Column: controlobjective.FieldDetails}, + }, + } + graph.Nodes[8] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: controlobjectivehistory.Table, + Columns: controlobjectivehistory.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: controlobjectivehistory.FieldID, + }, + }, + Type: "ControlObjectiveHistory", + Fields: map[string]*sqlgraph.FieldSpec{ + controlobjectivehistory.FieldHistoryTime: {Type: field.TypeTime, Column: controlobjectivehistory.FieldHistoryTime}, + controlobjectivehistory.FieldRef: {Type: field.TypeString, Column: controlobjectivehistory.FieldRef}, + controlobjectivehistory.FieldOperation: {Type: field.TypeEnum, Column: controlobjectivehistory.FieldOperation}, + controlobjectivehistory.FieldCreatedAt: {Type: field.TypeTime, Column: controlobjectivehistory.FieldCreatedAt}, + controlobjectivehistory.FieldUpdatedAt: {Type: field.TypeTime, Column: controlobjectivehistory.FieldUpdatedAt}, + controlobjectivehistory.FieldCreatedBy: {Type: field.TypeString, Column: controlobjectivehistory.FieldCreatedBy}, + controlobjectivehistory.FieldUpdatedBy: {Type: field.TypeString, Column: controlobjectivehistory.FieldUpdatedBy}, + controlobjectivehistory.FieldDeletedAt: {Type: field.TypeTime, Column: controlobjectivehistory.FieldDeletedAt}, + controlobjectivehistory.FieldDeletedBy: {Type: field.TypeString, Column: controlobjectivehistory.FieldDeletedBy}, + controlobjectivehistory.FieldMappingID: {Type: field.TypeString, Column: controlobjectivehistory.FieldMappingID}, + controlobjectivehistory.FieldTags: {Type: field.TypeJSON, Column: controlobjectivehistory.FieldTags}, + controlobjectivehistory.FieldName: {Type: field.TypeString, Column: controlobjectivehistory.FieldName}, + controlobjectivehistory.FieldDescription: {Type: field.TypeString, Column: controlobjectivehistory.FieldDescription}, + controlobjectivehistory.FieldStatus: {Type: field.TypeString, Column: controlobjectivehistory.FieldStatus}, + controlobjectivehistory.FieldControlObjectiveType: {Type: field.TypeString, Column: controlobjectivehistory.FieldControlObjectiveType}, + controlobjectivehistory.FieldVersion: {Type: field.TypeString, Column: controlobjectivehistory.FieldVersion}, + controlobjectivehistory.FieldControlNumber: {Type: field.TypeString, Column: controlobjectivehistory.FieldControlNumber}, + controlobjectivehistory.FieldFamily: {Type: field.TypeString, Column: controlobjectivehistory.FieldFamily}, + controlobjectivehistory.FieldClass: {Type: field.TypeString, Column: controlobjectivehistory.FieldClass}, + controlobjectivehistory.FieldSource: {Type: field.TypeString, Column: controlobjectivehistory.FieldSource}, + controlobjectivehistory.FieldMappedFrameworks: {Type: field.TypeString, Column: controlobjectivehistory.FieldMappedFrameworks}, + controlobjectivehistory.FieldDetails: {Type: field.TypeJSON, Column: controlobjectivehistory.FieldDetails}, + }, + } + graph.Nodes[9] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: documentdata.Table, Columns: documentdata.Columns, @@ -184,7 +397,7 @@ var schemaGraph = func() *sqlgraph.Schema { documentdata.FieldData: {Type: field.TypeJSON, Column: documentdata.FieldData}, }, } - graph.Nodes[4] = &sqlgraph.Node{ + graph.Nodes[10] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: documentdatahistory.Table, Columns: documentdatahistory.Columns, @@ -211,7 +424,7 @@ var schemaGraph = func() *sqlgraph.Schema { documentdatahistory.FieldData: {Type: field.TypeJSON, Column: documentdatahistory.FieldData}, }, } - graph.Nodes[5] = &sqlgraph.Node{ + graph.Nodes[11] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: emailverificationtoken.Table, Columns: emailverificationtoken.Columns, @@ -236,7 +449,7 @@ var schemaGraph = func() *sqlgraph.Schema { emailverificationtoken.FieldSecret: {Type: field.TypeBytes, Column: emailverificationtoken.FieldSecret}, }, } - graph.Nodes[6] = &sqlgraph.Node{ + graph.Nodes[12] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entitlement.Table, Columns: entitlement.Columns, @@ -265,7 +478,7 @@ var schemaGraph = func() *sqlgraph.Schema { entitlement.FieldCancelled: {Type: field.TypeBool, Column: entitlement.FieldCancelled}, }, } - graph.Nodes[7] = &sqlgraph.Node{ + graph.Nodes[13] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entitlementhistory.Table, Columns: entitlementhistory.Columns, @@ -297,7 +510,7 @@ var schemaGraph = func() *sqlgraph.Schema { entitlementhistory.FieldCancelled: {Type: field.TypeBool, Column: entitlementhistory.FieldCancelled}, }, } - graph.Nodes[8] = &sqlgraph.Node{ + graph.Nodes[14] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entitlementplan.Table, Columns: entitlementplan.Columns, @@ -324,7 +537,7 @@ var schemaGraph = func() *sqlgraph.Schema { entitlementplan.FieldMetadata: {Type: field.TypeJSON, Column: entitlementplan.FieldMetadata}, }, } - graph.Nodes[9] = &sqlgraph.Node{ + graph.Nodes[15] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entitlementplanfeature.Table, Columns: entitlementplanfeature.Columns, @@ -349,7 +562,7 @@ var schemaGraph = func() *sqlgraph.Schema { entitlementplanfeature.FieldFeatureID: {Type: field.TypeString, Column: entitlementplanfeature.FieldFeatureID}, }, } - graph.Nodes[10] = &sqlgraph.Node{ + graph.Nodes[16] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entitlementplanfeaturehistory.Table, Columns: entitlementplanfeaturehistory.Columns, @@ -377,7 +590,7 @@ var schemaGraph = func() *sqlgraph.Schema { entitlementplanfeaturehistory.FieldFeatureID: {Type: field.TypeString, Column: entitlementplanfeaturehistory.FieldFeatureID}, }, } - graph.Nodes[11] = &sqlgraph.Node{ + graph.Nodes[17] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entitlementplanhistory.Table, Columns: entitlementplanhistory.Columns, @@ -407,7 +620,7 @@ var schemaGraph = func() *sqlgraph.Schema { entitlementplanhistory.FieldMetadata: {Type: field.TypeJSON, Column: entitlementplanhistory.FieldMetadata}, }, } - graph.Nodes[12] = &sqlgraph.Node{ + graph.Nodes[18] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entity.Table, Columns: entity.Columns, @@ -435,7 +648,7 @@ var schemaGraph = func() *sqlgraph.Schema { entity.FieldStatus: {Type: field.TypeString, Column: entity.FieldStatus}, }, } - graph.Nodes[13] = &sqlgraph.Node{ + graph.Nodes[19] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entityhistory.Table, Columns: entityhistory.Columns, @@ -466,7 +679,7 @@ var schemaGraph = func() *sqlgraph.Schema { entityhistory.FieldStatus: {Type: field.TypeString, Column: entityhistory.FieldStatus}, }, } - graph.Nodes[14] = &sqlgraph.Node{ + graph.Nodes[20] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entitytype.Table, Columns: entitytype.Columns, @@ -489,7 +702,7 @@ var schemaGraph = func() *sqlgraph.Schema { entitytype.FieldName: {Type: field.TypeString, Column: entitytype.FieldName}, }, } - graph.Nodes[15] = &sqlgraph.Node{ + graph.Nodes[21] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entitytypehistory.Table, Columns: entitytypehistory.Columns, @@ -515,7 +728,7 @@ var schemaGraph = func() *sqlgraph.Schema { entitytypehistory.FieldName: {Type: field.TypeString, Column: entitytypehistory.FieldName}, }, } - graph.Nodes[16] = &sqlgraph.Node{ + graph.Nodes[22] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: event.Table, Columns: event.Columns, @@ -538,7 +751,7 @@ var schemaGraph = func() *sqlgraph.Schema { event.FieldMetadata: {Type: field.TypeJSON, Column: event.FieldMetadata}, }, } - graph.Nodes[17] = &sqlgraph.Node{ + graph.Nodes[23] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: eventhistory.Table, Columns: eventhistory.Columns, @@ -564,7 +777,7 @@ var schemaGraph = func() *sqlgraph.Schema { eventhistory.FieldMetadata: {Type: field.TypeJSON, Column: eventhistory.FieldMetadata}, }, } - graph.Nodes[18] = &sqlgraph.Node{ + graph.Nodes[24] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: feature.Table, Columns: feature.Columns, @@ -591,7 +804,7 @@ var schemaGraph = func() *sqlgraph.Schema { feature.FieldMetadata: {Type: field.TypeJSON, Column: feature.FieldMetadata}, }, } - graph.Nodes[19] = &sqlgraph.Node{ + graph.Nodes[25] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: featurehistory.Table, Columns: featurehistory.Columns, @@ -621,7 +834,7 @@ var schemaGraph = func() *sqlgraph.Schema { featurehistory.FieldMetadata: {Type: field.TypeJSON, Column: featurehistory.FieldMetadata}, }, } - graph.Nodes[20] = &sqlgraph.Node{ + graph.Nodes[26] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: file.Table, Columns: file.Columns, @@ -656,7 +869,7 @@ var schemaGraph = func() *sqlgraph.Schema { file.FieldFileContents: {Type: field.TypeBytes, Column: file.FieldFileContents}, }, } - graph.Nodes[21] = &sqlgraph.Node{ + graph.Nodes[27] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: filehistory.Table, Columns: filehistory.Columns, @@ -694,7 +907,7 @@ var schemaGraph = func() *sqlgraph.Schema { filehistory.FieldFileContents: {Type: field.TypeBytes, Column: filehistory.FieldFileContents}, }, } - graph.Nodes[22] = &sqlgraph.Node{ + graph.Nodes[28] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: group.Table, Columns: group.Columns, @@ -721,7 +934,7 @@ var schemaGraph = func() *sqlgraph.Schema { group.FieldDisplayName: {Type: field.TypeString, Column: group.FieldDisplayName}, }, } - graph.Nodes[23] = &sqlgraph.Node{ + graph.Nodes[29] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: grouphistory.Table, Columns: grouphistory.Columns, @@ -751,7 +964,7 @@ var schemaGraph = func() *sqlgraph.Schema { grouphistory.FieldDisplayName: {Type: field.TypeString, Column: grouphistory.FieldDisplayName}, }, } - graph.Nodes[24] = &sqlgraph.Node{ + graph.Nodes[30] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: groupmembership.Table, Columns: groupmembership.Columns, @@ -774,7 +987,7 @@ var schemaGraph = func() *sqlgraph.Schema { groupmembership.FieldUserID: {Type: field.TypeString, Column: groupmembership.FieldUserID}, }, } - graph.Nodes[25] = &sqlgraph.Node{ + graph.Nodes[31] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: groupmembershiphistory.Table, Columns: groupmembershiphistory.Columns, @@ -800,7 +1013,7 @@ var schemaGraph = func() *sqlgraph.Schema { groupmembershiphistory.FieldUserID: {Type: field.TypeString, Column: groupmembershiphistory.FieldUserID}, }, } - graph.Nodes[26] = &sqlgraph.Node{ + graph.Nodes[32] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: groupsetting.Table, Columns: groupsetting.Columns, @@ -826,7 +1039,7 @@ var schemaGraph = func() *sqlgraph.Schema { groupsetting.FieldGroupID: {Type: field.TypeString, Column: groupsetting.FieldGroupID}, }, } - graph.Nodes[27] = &sqlgraph.Node{ + graph.Nodes[33] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: groupsettinghistory.Table, Columns: groupsettinghistory.Columns, @@ -855,7 +1068,7 @@ var schemaGraph = func() *sqlgraph.Schema { groupsettinghistory.FieldGroupID: {Type: field.TypeString, Column: groupsettinghistory.FieldGroupID}, }, } - graph.Nodes[28] = &sqlgraph.Node{ + graph.Nodes[34] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: hush.Table, Columns: hush.Columns, @@ -880,7 +1093,7 @@ var schemaGraph = func() *sqlgraph.Schema { hush.FieldSecretValue: {Type: field.TypeString, Column: hush.FieldSecretValue}, }, } - graph.Nodes[29] = &sqlgraph.Node{ + graph.Nodes[35] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: hushhistory.Table, Columns: hushhistory.Columns, @@ -908,7 +1121,7 @@ var schemaGraph = func() *sqlgraph.Schema { hushhistory.FieldSecretValue: {Type: field.TypeString, Column: hushhistory.FieldSecretValue}, }, } - graph.Nodes[30] = &sqlgraph.Node{ + graph.Nodes[36] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: integration.Table, Columns: integration.Columns, @@ -933,7 +1146,7 @@ var schemaGraph = func() *sqlgraph.Schema { integration.FieldKind: {Type: field.TypeString, Column: integration.FieldKind}, }, } - graph.Nodes[31] = &sqlgraph.Node{ + graph.Nodes[37] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: integrationhistory.Table, Columns: integrationhistory.Columns, @@ -961,7 +1174,68 @@ var schemaGraph = func() *sqlgraph.Schema { integrationhistory.FieldKind: {Type: field.TypeString, Column: integrationhistory.FieldKind}, }, } - graph.Nodes[32] = &sqlgraph.Node{ + graph.Nodes[38] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: internalpolicy.Table, + Columns: internalpolicy.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: internalpolicy.FieldID, + }, + }, + Type: "InternalPolicy", + Fields: map[string]*sqlgraph.FieldSpec{ + internalpolicy.FieldCreatedAt: {Type: field.TypeTime, Column: internalpolicy.FieldCreatedAt}, + internalpolicy.FieldUpdatedAt: {Type: field.TypeTime, Column: internalpolicy.FieldUpdatedAt}, + internalpolicy.FieldCreatedBy: {Type: field.TypeString, Column: internalpolicy.FieldCreatedBy}, + internalpolicy.FieldUpdatedBy: {Type: field.TypeString, Column: internalpolicy.FieldUpdatedBy}, + internalpolicy.FieldDeletedAt: {Type: field.TypeTime, Column: internalpolicy.FieldDeletedAt}, + internalpolicy.FieldDeletedBy: {Type: field.TypeString, Column: internalpolicy.FieldDeletedBy}, + internalpolicy.FieldMappingID: {Type: field.TypeString, Column: internalpolicy.FieldMappingID}, + internalpolicy.FieldTags: {Type: field.TypeJSON, Column: internalpolicy.FieldTags}, + internalpolicy.FieldName: {Type: field.TypeString, Column: internalpolicy.FieldName}, + internalpolicy.FieldDescription: {Type: field.TypeString, Column: internalpolicy.FieldDescription}, + internalpolicy.FieldStatus: {Type: field.TypeString, Column: internalpolicy.FieldStatus}, + internalpolicy.FieldPolicyType: {Type: field.TypeString, Column: internalpolicy.FieldPolicyType}, + internalpolicy.FieldVersion: {Type: field.TypeString, Column: internalpolicy.FieldVersion}, + internalpolicy.FieldPurposeAndScope: {Type: field.TypeString, Column: internalpolicy.FieldPurposeAndScope}, + internalpolicy.FieldBackground: {Type: field.TypeString, Column: internalpolicy.FieldBackground}, + internalpolicy.FieldDetails: {Type: field.TypeJSON, Column: internalpolicy.FieldDetails}, + }, + } + graph.Nodes[39] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: internalpolicyhistory.Table, + Columns: internalpolicyhistory.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: internalpolicyhistory.FieldID, + }, + }, + Type: "InternalPolicyHistory", + Fields: map[string]*sqlgraph.FieldSpec{ + internalpolicyhistory.FieldHistoryTime: {Type: field.TypeTime, Column: internalpolicyhistory.FieldHistoryTime}, + internalpolicyhistory.FieldRef: {Type: field.TypeString, Column: internalpolicyhistory.FieldRef}, + internalpolicyhistory.FieldOperation: {Type: field.TypeEnum, Column: internalpolicyhistory.FieldOperation}, + internalpolicyhistory.FieldCreatedAt: {Type: field.TypeTime, Column: internalpolicyhistory.FieldCreatedAt}, + internalpolicyhistory.FieldUpdatedAt: {Type: field.TypeTime, Column: internalpolicyhistory.FieldUpdatedAt}, + internalpolicyhistory.FieldCreatedBy: {Type: field.TypeString, Column: internalpolicyhistory.FieldCreatedBy}, + internalpolicyhistory.FieldUpdatedBy: {Type: field.TypeString, Column: internalpolicyhistory.FieldUpdatedBy}, + internalpolicyhistory.FieldDeletedAt: {Type: field.TypeTime, Column: internalpolicyhistory.FieldDeletedAt}, + internalpolicyhistory.FieldDeletedBy: {Type: field.TypeString, Column: internalpolicyhistory.FieldDeletedBy}, + internalpolicyhistory.FieldMappingID: {Type: field.TypeString, Column: internalpolicyhistory.FieldMappingID}, + internalpolicyhistory.FieldTags: {Type: field.TypeJSON, Column: internalpolicyhistory.FieldTags}, + internalpolicyhistory.FieldName: {Type: field.TypeString, Column: internalpolicyhistory.FieldName}, + internalpolicyhistory.FieldDescription: {Type: field.TypeString, Column: internalpolicyhistory.FieldDescription}, + internalpolicyhistory.FieldStatus: {Type: field.TypeString, Column: internalpolicyhistory.FieldStatus}, + internalpolicyhistory.FieldPolicyType: {Type: field.TypeString, Column: internalpolicyhistory.FieldPolicyType}, + internalpolicyhistory.FieldVersion: {Type: field.TypeString, Column: internalpolicyhistory.FieldVersion}, + internalpolicyhistory.FieldPurposeAndScope: {Type: field.TypeString, Column: internalpolicyhistory.FieldPurposeAndScope}, + internalpolicyhistory.FieldBackground: {Type: field.TypeString, Column: internalpolicyhistory.FieldBackground}, + internalpolicyhistory.FieldDetails: {Type: field.TypeJSON, Column: internalpolicyhistory.FieldDetails}, + }, + } + graph.Nodes[40] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: invite.Table, Columns: invite.Columns, @@ -990,7 +1264,60 @@ var schemaGraph = func() *sqlgraph.Schema { invite.FieldSecret: {Type: field.TypeBytes, Column: invite.FieldSecret}, }, } - graph.Nodes[33] = &sqlgraph.Node{ + graph.Nodes[41] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: narrative.Table, + Columns: narrative.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: narrative.FieldID, + }, + }, + Type: "Narrative", + Fields: map[string]*sqlgraph.FieldSpec{ + narrative.FieldCreatedAt: {Type: field.TypeTime, Column: narrative.FieldCreatedAt}, + narrative.FieldUpdatedAt: {Type: field.TypeTime, Column: narrative.FieldUpdatedAt}, + narrative.FieldCreatedBy: {Type: field.TypeString, Column: narrative.FieldCreatedBy}, + narrative.FieldUpdatedBy: {Type: field.TypeString, Column: narrative.FieldUpdatedBy}, + narrative.FieldDeletedAt: {Type: field.TypeTime, Column: narrative.FieldDeletedAt}, + narrative.FieldDeletedBy: {Type: field.TypeString, Column: narrative.FieldDeletedBy}, + narrative.FieldMappingID: {Type: field.TypeString, Column: narrative.FieldMappingID}, + narrative.FieldTags: {Type: field.TypeJSON, Column: narrative.FieldTags}, + narrative.FieldName: {Type: field.TypeString, Column: narrative.FieldName}, + narrative.FieldDescription: {Type: field.TypeString, Column: narrative.FieldDescription}, + narrative.FieldSatisfies: {Type: field.TypeString, Column: narrative.FieldSatisfies}, + narrative.FieldDetails: {Type: field.TypeJSON, Column: narrative.FieldDetails}, + }, + } + graph.Nodes[42] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: narrativehistory.Table, + Columns: narrativehistory.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: narrativehistory.FieldID, + }, + }, + Type: "NarrativeHistory", + Fields: map[string]*sqlgraph.FieldSpec{ + narrativehistory.FieldHistoryTime: {Type: field.TypeTime, Column: narrativehistory.FieldHistoryTime}, + narrativehistory.FieldRef: {Type: field.TypeString, Column: narrativehistory.FieldRef}, + narrativehistory.FieldOperation: {Type: field.TypeEnum, Column: narrativehistory.FieldOperation}, + narrativehistory.FieldCreatedAt: {Type: field.TypeTime, Column: narrativehistory.FieldCreatedAt}, + narrativehistory.FieldUpdatedAt: {Type: field.TypeTime, Column: narrativehistory.FieldUpdatedAt}, + narrativehistory.FieldCreatedBy: {Type: field.TypeString, Column: narrativehistory.FieldCreatedBy}, + narrativehistory.FieldUpdatedBy: {Type: field.TypeString, Column: narrativehistory.FieldUpdatedBy}, + narrativehistory.FieldDeletedAt: {Type: field.TypeTime, Column: narrativehistory.FieldDeletedAt}, + narrativehistory.FieldDeletedBy: {Type: field.TypeString, Column: narrativehistory.FieldDeletedBy}, + narrativehistory.FieldMappingID: {Type: field.TypeString, Column: narrativehistory.FieldMappingID}, + narrativehistory.FieldTags: {Type: field.TypeJSON, Column: narrativehistory.FieldTags}, + narrativehistory.FieldName: {Type: field.TypeString, Column: narrativehistory.FieldName}, + narrativehistory.FieldDescription: {Type: field.TypeString, Column: narrativehistory.FieldDescription}, + narrativehistory.FieldSatisfies: {Type: field.TypeString, Column: narrativehistory.FieldSatisfies}, + narrativehistory.FieldDetails: {Type: field.TypeJSON, Column: narrativehistory.FieldDetails}, + }, + } + graph.Nodes[43] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: note.Table, Columns: note.Columns, @@ -1013,7 +1340,7 @@ var schemaGraph = func() *sqlgraph.Schema { note.FieldText: {Type: field.TypeString, Column: note.FieldText}, }, } - graph.Nodes[34] = &sqlgraph.Node{ + graph.Nodes[44] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: notehistory.Table, Columns: notehistory.Columns, @@ -1039,7 +1366,7 @@ var schemaGraph = func() *sqlgraph.Schema { notehistory.FieldText: {Type: field.TypeString, Column: notehistory.FieldText}, }, } - graph.Nodes[35] = &sqlgraph.Node{ + graph.Nodes[45] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: oauthprovider.Table, Columns: oauthprovider.Columns, @@ -1070,7 +1397,7 @@ var schemaGraph = func() *sqlgraph.Schema { oauthprovider.FieldInfoURL: {Type: field.TypeString, Column: oauthprovider.FieldInfoURL}, }, } - graph.Nodes[36] = &sqlgraph.Node{ + graph.Nodes[46] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: oauthproviderhistory.Table, Columns: oauthproviderhistory.Columns, @@ -1104,7 +1431,7 @@ var schemaGraph = func() *sqlgraph.Schema { oauthproviderhistory.FieldInfoURL: {Type: field.TypeString, Column: oauthproviderhistory.FieldInfoURL}, }, } - graph.Nodes[37] = &sqlgraph.Node{ + graph.Nodes[47] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: ohauthtootoken.Table, Columns: ohauthtootoken.Columns, @@ -1131,7 +1458,7 @@ var schemaGraph = func() *sqlgraph.Schema { ohauthtootoken.FieldLastUsed: {Type: field.TypeTime, Column: ohauthtootoken.FieldLastUsed}, }, } - graph.Nodes[38] = &sqlgraph.Node{ + graph.Nodes[48] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: orgmembership.Table, Columns: orgmembership.Columns, @@ -1154,7 +1481,7 @@ var schemaGraph = func() *sqlgraph.Schema { orgmembership.FieldUserID: {Type: field.TypeString, Column: orgmembership.FieldUserID}, }, } - graph.Nodes[39] = &sqlgraph.Node{ + graph.Nodes[49] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: orgmembershiphistory.Table, Columns: orgmembershiphistory.Columns, @@ -1180,7 +1507,7 @@ var schemaGraph = func() *sqlgraph.Schema { orgmembershiphistory.FieldUserID: {Type: field.TypeString, Column: orgmembershiphistory.FieldUserID}, }, } - graph.Nodes[40] = &sqlgraph.Node{ + graph.Nodes[50] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: organization.Table, Columns: organization.Columns, @@ -1208,7 +1535,7 @@ var schemaGraph = func() *sqlgraph.Schema { organization.FieldDedicatedDb: {Type: field.TypeBool, Column: organization.FieldDedicatedDb}, }, } - graph.Nodes[41] = &sqlgraph.Node{ + graph.Nodes[51] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: organizationhistory.Table, Columns: organizationhistory.Columns, @@ -1239,7 +1566,7 @@ var schemaGraph = func() *sqlgraph.Schema { organizationhistory.FieldDedicatedDb: {Type: field.TypeBool, Column: organizationhistory.FieldDedicatedDb}, }, } - graph.Nodes[42] = &sqlgraph.Node{ + graph.Nodes[52] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: organizationsetting.Table, Columns: organizationsetting.Columns, @@ -1268,7 +1595,7 @@ var schemaGraph = func() *sqlgraph.Schema { organizationsetting.FieldOrganizationID: {Type: field.TypeString, Column: organizationsetting.FieldOrganizationID}, }, } - graph.Nodes[43] = &sqlgraph.Node{ + graph.Nodes[53] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: organizationsettinghistory.Table, Columns: organizationsettinghistory.Columns, @@ -1300,7 +1627,7 @@ var schemaGraph = func() *sqlgraph.Schema { organizationsettinghistory.FieldOrganizationID: {Type: field.TypeString, Column: organizationsettinghistory.FieldOrganizationID}, }, } - graph.Nodes[44] = &sqlgraph.Node{ + graph.Nodes[54] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: passwordresettoken.Table, Columns: passwordresettoken.Columns, @@ -1325,7 +1652,7 @@ var schemaGraph = func() *sqlgraph.Schema { passwordresettoken.FieldSecret: {Type: field.TypeBytes, Column: passwordresettoken.FieldSecret}, }, } - graph.Nodes[45] = &sqlgraph.Node{ + graph.Nodes[55] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: personalaccesstoken.Table, Columns: personalaccesstoken.Columns, @@ -1353,7 +1680,277 @@ var schemaGraph = func() *sqlgraph.Schema { personalaccesstoken.FieldLastUsedAt: {Type: field.TypeTime, Column: personalaccesstoken.FieldLastUsedAt}, }, } - graph.Nodes[46] = &sqlgraph.Node{ + graph.Nodes[56] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: procedure.Table, + Columns: procedure.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: procedure.FieldID, + }, + }, + Type: "Procedure", + Fields: map[string]*sqlgraph.FieldSpec{ + procedure.FieldCreatedAt: {Type: field.TypeTime, Column: procedure.FieldCreatedAt}, + procedure.FieldUpdatedAt: {Type: field.TypeTime, Column: procedure.FieldUpdatedAt}, + procedure.FieldCreatedBy: {Type: field.TypeString, Column: procedure.FieldCreatedBy}, + procedure.FieldUpdatedBy: {Type: field.TypeString, Column: procedure.FieldUpdatedBy}, + procedure.FieldDeletedAt: {Type: field.TypeTime, Column: procedure.FieldDeletedAt}, + procedure.FieldDeletedBy: {Type: field.TypeString, Column: procedure.FieldDeletedBy}, + procedure.FieldMappingID: {Type: field.TypeString, Column: procedure.FieldMappingID}, + procedure.FieldTags: {Type: field.TypeJSON, Column: procedure.FieldTags}, + procedure.FieldName: {Type: field.TypeString, Column: procedure.FieldName}, + procedure.FieldDescription: {Type: field.TypeString, Column: procedure.FieldDescription}, + procedure.FieldStatus: {Type: field.TypeString, Column: procedure.FieldStatus}, + procedure.FieldProcedureType: {Type: field.TypeString, Column: procedure.FieldProcedureType}, + procedure.FieldVersion: {Type: field.TypeString, Column: procedure.FieldVersion}, + procedure.FieldPurposeAndScope: {Type: field.TypeString, Column: procedure.FieldPurposeAndScope}, + procedure.FieldBackground: {Type: field.TypeString, Column: procedure.FieldBackground}, + procedure.FieldSatisfies: {Type: field.TypeString, Column: procedure.FieldSatisfies}, + procedure.FieldDetails: {Type: field.TypeJSON, Column: procedure.FieldDetails}, + }, + } + graph.Nodes[57] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: procedurehistory.Table, + Columns: procedurehistory.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: procedurehistory.FieldID, + }, + }, + Type: "ProcedureHistory", + Fields: map[string]*sqlgraph.FieldSpec{ + procedurehistory.FieldHistoryTime: {Type: field.TypeTime, Column: procedurehistory.FieldHistoryTime}, + procedurehistory.FieldRef: {Type: field.TypeString, Column: procedurehistory.FieldRef}, + procedurehistory.FieldOperation: {Type: field.TypeEnum, Column: procedurehistory.FieldOperation}, + procedurehistory.FieldCreatedAt: {Type: field.TypeTime, Column: procedurehistory.FieldCreatedAt}, + procedurehistory.FieldUpdatedAt: {Type: field.TypeTime, Column: procedurehistory.FieldUpdatedAt}, + procedurehistory.FieldCreatedBy: {Type: field.TypeString, Column: procedurehistory.FieldCreatedBy}, + procedurehistory.FieldUpdatedBy: {Type: field.TypeString, Column: procedurehistory.FieldUpdatedBy}, + procedurehistory.FieldDeletedAt: {Type: field.TypeTime, Column: procedurehistory.FieldDeletedAt}, + procedurehistory.FieldDeletedBy: {Type: field.TypeString, Column: procedurehistory.FieldDeletedBy}, + procedurehistory.FieldMappingID: {Type: field.TypeString, Column: procedurehistory.FieldMappingID}, + procedurehistory.FieldTags: {Type: field.TypeJSON, Column: procedurehistory.FieldTags}, + procedurehistory.FieldName: {Type: field.TypeString, Column: procedurehistory.FieldName}, + procedurehistory.FieldDescription: {Type: field.TypeString, Column: procedurehistory.FieldDescription}, + procedurehistory.FieldStatus: {Type: field.TypeString, Column: procedurehistory.FieldStatus}, + procedurehistory.FieldProcedureType: {Type: field.TypeString, Column: procedurehistory.FieldProcedureType}, + procedurehistory.FieldVersion: {Type: field.TypeString, Column: procedurehistory.FieldVersion}, + procedurehistory.FieldPurposeAndScope: {Type: field.TypeString, Column: procedurehistory.FieldPurposeAndScope}, + procedurehistory.FieldBackground: {Type: field.TypeString, Column: procedurehistory.FieldBackground}, + procedurehistory.FieldSatisfies: {Type: field.TypeString, Column: procedurehistory.FieldSatisfies}, + procedurehistory.FieldDetails: {Type: field.TypeJSON, Column: procedurehistory.FieldDetails}, + }, + } + graph.Nodes[58] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: risk.Table, + Columns: risk.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: risk.FieldID, + }, + }, + Type: "Risk", + Fields: map[string]*sqlgraph.FieldSpec{ + risk.FieldCreatedAt: {Type: field.TypeTime, Column: risk.FieldCreatedAt}, + risk.FieldUpdatedAt: {Type: field.TypeTime, Column: risk.FieldUpdatedAt}, + risk.FieldCreatedBy: {Type: field.TypeString, Column: risk.FieldCreatedBy}, + risk.FieldUpdatedBy: {Type: field.TypeString, Column: risk.FieldUpdatedBy}, + risk.FieldDeletedAt: {Type: field.TypeTime, Column: risk.FieldDeletedAt}, + risk.FieldDeletedBy: {Type: field.TypeString, Column: risk.FieldDeletedBy}, + risk.FieldMappingID: {Type: field.TypeString, Column: risk.FieldMappingID}, + risk.FieldTags: {Type: field.TypeJSON, Column: risk.FieldTags}, + risk.FieldName: {Type: field.TypeString, Column: risk.FieldName}, + risk.FieldDescription: {Type: field.TypeString, Column: risk.FieldDescription}, + risk.FieldStatus: {Type: field.TypeString, Column: risk.FieldStatus}, + risk.FieldRiskType: {Type: field.TypeString, Column: risk.FieldRiskType}, + risk.FieldBusinessCosts: {Type: field.TypeString, Column: risk.FieldBusinessCosts}, + risk.FieldImpact: {Type: field.TypeEnum, Column: risk.FieldImpact}, + risk.FieldLikelihood: {Type: field.TypeEnum, Column: risk.FieldLikelihood}, + risk.FieldMitigation: {Type: field.TypeString, Column: risk.FieldMitigation}, + risk.FieldSatisfies: {Type: field.TypeString, Column: risk.FieldSatisfies}, + risk.FieldDetails: {Type: field.TypeJSON, Column: risk.FieldDetails}, + }, + } + graph.Nodes[59] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: riskhistory.Table, + Columns: riskhistory.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: riskhistory.FieldID, + }, + }, + Type: "RiskHistory", + Fields: map[string]*sqlgraph.FieldSpec{ + riskhistory.FieldHistoryTime: {Type: field.TypeTime, Column: riskhistory.FieldHistoryTime}, + riskhistory.FieldRef: {Type: field.TypeString, Column: riskhistory.FieldRef}, + riskhistory.FieldOperation: {Type: field.TypeEnum, Column: riskhistory.FieldOperation}, + riskhistory.FieldCreatedAt: {Type: field.TypeTime, Column: riskhistory.FieldCreatedAt}, + riskhistory.FieldUpdatedAt: {Type: field.TypeTime, Column: riskhistory.FieldUpdatedAt}, + riskhistory.FieldCreatedBy: {Type: field.TypeString, Column: riskhistory.FieldCreatedBy}, + riskhistory.FieldUpdatedBy: {Type: field.TypeString, Column: riskhistory.FieldUpdatedBy}, + riskhistory.FieldDeletedAt: {Type: field.TypeTime, Column: riskhistory.FieldDeletedAt}, + riskhistory.FieldDeletedBy: {Type: field.TypeString, Column: riskhistory.FieldDeletedBy}, + riskhistory.FieldMappingID: {Type: field.TypeString, Column: riskhistory.FieldMappingID}, + riskhistory.FieldTags: {Type: field.TypeJSON, Column: riskhistory.FieldTags}, + riskhistory.FieldName: {Type: field.TypeString, Column: riskhistory.FieldName}, + riskhistory.FieldDescription: {Type: field.TypeString, Column: riskhistory.FieldDescription}, + riskhistory.FieldStatus: {Type: field.TypeString, Column: riskhistory.FieldStatus}, + riskhistory.FieldRiskType: {Type: field.TypeString, Column: riskhistory.FieldRiskType}, + riskhistory.FieldBusinessCosts: {Type: field.TypeString, Column: riskhistory.FieldBusinessCosts}, + riskhistory.FieldImpact: {Type: field.TypeEnum, Column: riskhistory.FieldImpact}, + riskhistory.FieldLikelihood: {Type: field.TypeEnum, Column: riskhistory.FieldLikelihood}, + riskhistory.FieldMitigation: {Type: field.TypeString, Column: riskhistory.FieldMitigation}, + riskhistory.FieldSatisfies: {Type: field.TypeString, Column: riskhistory.FieldSatisfies}, + riskhistory.FieldDetails: {Type: field.TypeJSON, Column: riskhistory.FieldDetails}, + }, + } + graph.Nodes[60] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: standard.Table, + Columns: standard.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: standard.FieldID, + }, + }, + Type: "Standard", + Fields: map[string]*sqlgraph.FieldSpec{ + standard.FieldCreatedAt: {Type: field.TypeTime, Column: standard.FieldCreatedAt}, + standard.FieldUpdatedAt: {Type: field.TypeTime, Column: standard.FieldUpdatedAt}, + standard.FieldCreatedBy: {Type: field.TypeString, Column: standard.FieldCreatedBy}, + standard.FieldUpdatedBy: {Type: field.TypeString, Column: standard.FieldUpdatedBy}, + standard.FieldDeletedAt: {Type: field.TypeTime, Column: standard.FieldDeletedAt}, + standard.FieldDeletedBy: {Type: field.TypeString, Column: standard.FieldDeletedBy}, + standard.FieldMappingID: {Type: field.TypeString, Column: standard.FieldMappingID}, + standard.FieldTags: {Type: field.TypeJSON, Column: standard.FieldTags}, + standard.FieldName: {Type: field.TypeString, Column: standard.FieldName}, + standard.FieldDescription: {Type: field.TypeString, Column: standard.FieldDescription}, + standard.FieldFamily: {Type: field.TypeString, Column: standard.FieldFamily}, + standard.FieldStatus: {Type: field.TypeString, Column: standard.FieldStatus}, + standard.FieldStandardType: {Type: field.TypeString, Column: standard.FieldStandardType}, + standard.FieldVersion: {Type: field.TypeString, Column: standard.FieldVersion}, + standard.FieldPurposeAndScope: {Type: field.TypeString, Column: standard.FieldPurposeAndScope}, + standard.FieldBackground: {Type: field.TypeString, Column: standard.FieldBackground}, + standard.FieldSatisfies: {Type: field.TypeString, Column: standard.FieldSatisfies}, + standard.FieldDetails: {Type: field.TypeJSON, Column: standard.FieldDetails}, + }, + } + graph.Nodes[61] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: standardhistory.Table, + Columns: standardhistory.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: standardhistory.FieldID, + }, + }, + Type: "StandardHistory", + Fields: map[string]*sqlgraph.FieldSpec{ + standardhistory.FieldHistoryTime: {Type: field.TypeTime, Column: standardhistory.FieldHistoryTime}, + standardhistory.FieldRef: {Type: field.TypeString, Column: standardhistory.FieldRef}, + standardhistory.FieldOperation: {Type: field.TypeEnum, Column: standardhistory.FieldOperation}, + standardhistory.FieldCreatedAt: {Type: field.TypeTime, Column: standardhistory.FieldCreatedAt}, + standardhistory.FieldUpdatedAt: {Type: field.TypeTime, Column: standardhistory.FieldUpdatedAt}, + standardhistory.FieldCreatedBy: {Type: field.TypeString, Column: standardhistory.FieldCreatedBy}, + standardhistory.FieldUpdatedBy: {Type: field.TypeString, Column: standardhistory.FieldUpdatedBy}, + standardhistory.FieldDeletedAt: {Type: field.TypeTime, Column: standardhistory.FieldDeletedAt}, + standardhistory.FieldDeletedBy: {Type: field.TypeString, Column: standardhistory.FieldDeletedBy}, + standardhistory.FieldMappingID: {Type: field.TypeString, Column: standardhistory.FieldMappingID}, + standardhistory.FieldTags: {Type: field.TypeJSON, Column: standardhistory.FieldTags}, + standardhistory.FieldName: {Type: field.TypeString, Column: standardhistory.FieldName}, + standardhistory.FieldDescription: {Type: field.TypeString, Column: standardhistory.FieldDescription}, + standardhistory.FieldFamily: {Type: field.TypeString, Column: standardhistory.FieldFamily}, + standardhistory.FieldStatus: {Type: field.TypeString, Column: standardhistory.FieldStatus}, + standardhistory.FieldStandardType: {Type: field.TypeString, Column: standardhistory.FieldStandardType}, + standardhistory.FieldVersion: {Type: field.TypeString, Column: standardhistory.FieldVersion}, + standardhistory.FieldPurposeAndScope: {Type: field.TypeString, Column: standardhistory.FieldPurposeAndScope}, + standardhistory.FieldBackground: {Type: field.TypeString, Column: standardhistory.FieldBackground}, + standardhistory.FieldSatisfies: {Type: field.TypeString, Column: standardhistory.FieldSatisfies}, + standardhistory.FieldDetails: {Type: field.TypeJSON, Column: standardhistory.FieldDetails}, + }, + } + graph.Nodes[62] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: subcontrol.Table, + Columns: subcontrol.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: subcontrol.FieldID, + }, + }, + Type: "Subcontrol", + Fields: map[string]*sqlgraph.FieldSpec{ + subcontrol.FieldCreatedAt: {Type: field.TypeTime, Column: subcontrol.FieldCreatedAt}, + subcontrol.FieldUpdatedAt: {Type: field.TypeTime, Column: subcontrol.FieldUpdatedAt}, + subcontrol.FieldCreatedBy: {Type: field.TypeString, Column: subcontrol.FieldCreatedBy}, + subcontrol.FieldUpdatedBy: {Type: field.TypeString, Column: subcontrol.FieldUpdatedBy}, + subcontrol.FieldDeletedAt: {Type: field.TypeTime, Column: subcontrol.FieldDeletedAt}, + subcontrol.FieldDeletedBy: {Type: field.TypeString, Column: subcontrol.FieldDeletedBy}, + subcontrol.FieldMappingID: {Type: field.TypeString, Column: subcontrol.FieldMappingID}, + subcontrol.FieldTags: {Type: field.TypeJSON, Column: subcontrol.FieldTags}, + subcontrol.FieldName: {Type: field.TypeString, Column: subcontrol.FieldName}, + subcontrol.FieldDescription: {Type: field.TypeString, Column: subcontrol.FieldDescription}, + subcontrol.FieldStatus: {Type: field.TypeString, Column: subcontrol.FieldStatus}, + subcontrol.FieldSubcontrolType: {Type: field.TypeString, Column: subcontrol.FieldSubcontrolType}, + subcontrol.FieldVersion: {Type: field.TypeString, Column: subcontrol.FieldVersion}, + subcontrol.FieldSubcontrolNumber: {Type: field.TypeString, Column: subcontrol.FieldSubcontrolNumber}, + subcontrol.FieldFamily: {Type: field.TypeString, Column: subcontrol.FieldFamily}, + subcontrol.FieldClass: {Type: field.TypeString, Column: subcontrol.FieldClass}, + subcontrol.FieldSource: {Type: field.TypeString, Column: subcontrol.FieldSource}, + subcontrol.FieldMappedFrameworks: {Type: field.TypeString, Column: subcontrol.FieldMappedFrameworks}, + subcontrol.FieldImplementationEvidence: {Type: field.TypeString, Column: subcontrol.FieldImplementationEvidence}, + subcontrol.FieldImplementationStatus: {Type: field.TypeString, Column: subcontrol.FieldImplementationStatus}, + subcontrol.FieldImplementationDate: {Type: field.TypeTime, Column: subcontrol.FieldImplementationDate}, + subcontrol.FieldImplementationVerification: {Type: field.TypeString, Column: subcontrol.FieldImplementationVerification}, + subcontrol.FieldImplementationVerificationDate: {Type: field.TypeTime, Column: subcontrol.FieldImplementationVerificationDate}, + subcontrol.FieldDetails: {Type: field.TypeJSON, Column: subcontrol.FieldDetails}, + }, + } + graph.Nodes[63] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: subcontrolhistory.Table, + Columns: subcontrolhistory.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: subcontrolhistory.FieldID, + }, + }, + Type: "SubcontrolHistory", + Fields: map[string]*sqlgraph.FieldSpec{ + subcontrolhistory.FieldHistoryTime: {Type: field.TypeTime, Column: subcontrolhistory.FieldHistoryTime}, + subcontrolhistory.FieldRef: {Type: field.TypeString, Column: subcontrolhistory.FieldRef}, + subcontrolhistory.FieldOperation: {Type: field.TypeEnum, Column: subcontrolhistory.FieldOperation}, + subcontrolhistory.FieldCreatedAt: {Type: field.TypeTime, Column: subcontrolhistory.FieldCreatedAt}, + subcontrolhistory.FieldUpdatedAt: {Type: field.TypeTime, Column: subcontrolhistory.FieldUpdatedAt}, + subcontrolhistory.FieldCreatedBy: {Type: field.TypeString, Column: subcontrolhistory.FieldCreatedBy}, + subcontrolhistory.FieldUpdatedBy: {Type: field.TypeString, Column: subcontrolhistory.FieldUpdatedBy}, + subcontrolhistory.FieldDeletedAt: {Type: field.TypeTime, Column: subcontrolhistory.FieldDeletedAt}, + subcontrolhistory.FieldDeletedBy: {Type: field.TypeString, Column: subcontrolhistory.FieldDeletedBy}, + subcontrolhistory.FieldMappingID: {Type: field.TypeString, Column: subcontrolhistory.FieldMappingID}, + subcontrolhistory.FieldTags: {Type: field.TypeJSON, Column: subcontrolhistory.FieldTags}, + subcontrolhistory.FieldName: {Type: field.TypeString, Column: subcontrolhistory.FieldName}, + subcontrolhistory.FieldDescription: {Type: field.TypeString, Column: subcontrolhistory.FieldDescription}, + subcontrolhistory.FieldStatus: {Type: field.TypeString, Column: subcontrolhistory.FieldStatus}, + subcontrolhistory.FieldSubcontrolType: {Type: field.TypeString, Column: subcontrolhistory.FieldSubcontrolType}, + subcontrolhistory.FieldVersion: {Type: field.TypeString, Column: subcontrolhistory.FieldVersion}, + subcontrolhistory.FieldSubcontrolNumber: {Type: field.TypeString, Column: subcontrolhistory.FieldSubcontrolNumber}, + subcontrolhistory.FieldFamily: {Type: field.TypeString, Column: subcontrolhistory.FieldFamily}, + subcontrolhistory.FieldClass: {Type: field.TypeString, Column: subcontrolhistory.FieldClass}, + subcontrolhistory.FieldSource: {Type: field.TypeString, Column: subcontrolhistory.FieldSource}, + subcontrolhistory.FieldMappedFrameworks: {Type: field.TypeString, Column: subcontrolhistory.FieldMappedFrameworks}, + subcontrolhistory.FieldImplementationEvidence: {Type: field.TypeString, Column: subcontrolhistory.FieldImplementationEvidence}, + subcontrolhistory.FieldImplementationStatus: {Type: field.TypeString, Column: subcontrolhistory.FieldImplementationStatus}, + subcontrolhistory.FieldImplementationDate: {Type: field.TypeTime, Column: subcontrolhistory.FieldImplementationDate}, + subcontrolhistory.FieldImplementationVerification: {Type: field.TypeString, Column: subcontrolhistory.FieldImplementationVerification}, + subcontrolhistory.FieldImplementationVerificationDate: {Type: field.TypeTime, Column: subcontrolhistory.FieldImplementationVerificationDate}, + subcontrolhistory.FieldDetails: {Type: field.TypeJSON, Column: subcontrolhistory.FieldDetails}, + }, + } + graph.Nodes[64] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: subscriber.Table, Columns: subscriber.Columns, @@ -1383,7 +1980,7 @@ var schemaGraph = func() *sqlgraph.Schema { subscriber.FieldSecret: {Type: field.TypeBytes, Column: subscriber.FieldSecret}, }, } - graph.Nodes[47] = &sqlgraph.Node{ + graph.Nodes[65] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: tfasetting.Table, Columns: tfasetting.Columns, @@ -1411,7 +2008,7 @@ var schemaGraph = func() *sqlgraph.Schema { tfasetting.FieldTotpAllowed: {Type: field.TypeBool, Column: tfasetting.FieldTotpAllowed}, }, } - graph.Nodes[48] = &sqlgraph.Node{ + graph.Nodes[66] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: template.Table, Columns: template.Columns, @@ -1438,7 +2035,7 @@ var schemaGraph = func() *sqlgraph.Schema { template.FieldUischema: {Type: field.TypeJSON, Column: template.FieldUischema}, }, } - graph.Nodes[49] = &sqlgraph.Node{ + graph.Nodes[67] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: templatehistory.Table, Columns: templatehistory.Columns, @@ -1468,7 +2065,7 @@ var schemaGraph = func() *sqlgraph.Schema { templatehistory.FieldUischema: {Type: field.TypeJSON, Column: templatehistory.FieldUischema}, }, } - graph.Nodes[50] = &sqlgraph.Node{ + graph.Nodes[68] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: user.Table, Columns: user.Columns, @@ -1502,7 +2099,7 @@ var schemaGraph = func() *sqlgraph.Schema { user.FieldRole: {Type: field.TypeEnum, Column: user.FieldRole}, }, } - graph.Nodes[51] = &sqlgraph.Node{ + graph.Nodes[69] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: userhistory.Table, Columns: userhistory.Columns, @@ -1539,7 +2136,7 @@ var schemaGraph = func() *sqlgraph.Schema { userhistory.FieldRole: {Type: field.TypeEnum, Column: userhistory.FieldRole}, }, } - graph.Nodes[52] = &sqlgraph.Node{ + graph.Nodes[70] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: usersetting.Table, Columns: usersetting.Columns, @@ -1569,7 +2166,7 @@ var schemaGraph = func() *sqlgraph.Schema { usersetting.FieldPhoneNumber: {Type: field.TypeString, Column: usersetting.FieldPhoneNumber}, }, } - graph.Nodes[53] = &sqlgraph.Node{ + graph.Nodes[71] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: usersettinghistory.Table, Columns: usersettinghistory.Columns, @@ -1602,7 +2199,7 @@ var schemaGraph = func() *sqlgraph.Schema { usersettinghistory.FieldPhoneNumber: {Type: field.TypeString, Column: usersettinghistory.FieldPhoneNumber}, }, } - graph.Nodes[54] = &sqlgraph.Node{ + graph.Nodes[72] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: webauthn.Table, Columns: webauthn.Columns, @@ -1632,7 +2229,7 @@ var schemaGraph = func() *sqlgraph.Schema { webauthn.FieldUserVerified: {Type: field.TypeBool, Column: webauthn.FieldUserVerified}, }, } - graph.Nodes[55] = &sqlgraph.Node{ + graph.Nodes[73] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: webhook.Table, Columns: webhook.Columns, @@ -1664,7 +2261,7 @@ var schemaGraph = func() *sqlgraph.Schema { webhook.FieldLastResponse: {Type: field.TypeString, Column: webhook.FieldLastResponse}, }, } - graph.Nodes[56] = &sqlgraph.Node{ + graph.Nodes[74] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: webhookhistory.Table, Columns: webhookhistory.Columns, @@ -1712,9 +2309,57 @@ var schemaGraph = func() *sqlgraph.Schema { "Organization", ) graph.MustAddE( - "owner", + "standard", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.StandardTable, + Columns: actionplan.StandardPrimaryKey, + Bidi: false, + }, + "ActionPlan", + "Standard", + ) + graph.MustAddE( + "risk", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.RiskTable, + Columns: actionplan.RiskPrimaryKey, + Bidi: false, + }, + "ActionPlan", + "Risk", + ) + graph.MustAddE( + "control", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.ControlTable, + Columns: actionplan.ControlPrimaryKey, + Bidi: false, + }, + "ActionPlan", + "Control", + ) + graph.MustAddE( + "user", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: actionplan.UserTable, + Columns: actionplan.UserPrimaryKey, + Bidi: false, + }, + "ActionPlan", + "User", + ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, Inverse: true, Table: contact.OwnerTable, Columns: []string{contact.OwnerColumn}, @@ -1747,6 +2392,174 @@ var schemaGraph = func() *sqlgraph.Schema { "Contact", "File", ) + graph.MustAddE( + "procedures", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ProceduresTable, + Columns: control.ProceduresPrimaryKey, + Bidi: false, + }, + "Control", + "Procedure", + ) + graph.MustAddE( + "subcontrols", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.SubcontrolsTable, + Columns: control.SubcontrolsPrimaryKey, + Bidi: false, + }, + "Control", + "Subcontrol", + ) + graph.MustAddE( + "controlobjectives", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: control.ControlobjectivesTable, + Columns: []string{control.ControlobjectivesColumn}, + Bidi: false, + }, + "Control", + "ControlObjective", + ) + graph.MustAddE( + "standard", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: control.StandardTable, + Columns: control.StandardPrimaryKey, + Bidi: false, + }, + "Control", + "Standard", + ) + graph.MustAddE( + "narratives", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.NarrativesTable, + Columns: control.NarrativesPrimaryKey, + Bidi: false, + }, + "Control", + "Narrative", + ) + graph.MustAddE( + "risks", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.RisksTable, + Columns: control.RisksPrimaryKey, + Bidi: false, + }, + "Control", + "Risk", + ) + graph.MustAddE( + "actionplans", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: control.ActionplansTable, + Columns: control.ActionplansPrimaryKey, + Bidi: false, + }, + "Control", + "ActionPlan", + ) + graph.MustAddE( + "policy", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.PolicyTable, + Columns: controlobjective.PolicyPrimaryKey, + Bidi: false, + }, + "ControlObjective", + "InternalPolicy", + ) + graph.MustAddE( + "controls", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ControlsTable, + Columns: []string{controlobjective.ControlsColumn}, + Bidi: false, + }, + "ControlObjective", + "Control", + ) + graph.MustAddE( + "procedures", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.ProceduresTable, + Columns: []string{controlobjective.ProceduresColumn}, + Bidi: false, + }, + "ControlObjective", + "Procedure", + ) + graph.MustAddE( + "risks", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.RisksTable, + Columns: []string{controlobjective.RisksColumn}, + Bidi: false, + }, + "ControlObjective", + "Risk", + ) + graph.MustAddE( + "subcontrols", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: controlobjective.SubcontrolsTable, + Columns: []string{controlobjective.SubcontrolsColumn}, + Bidi: false, + }, + "ControlObjective", + "Subcontrol", + ) + graph.MustAddE( + "standard", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: controlobjective.StandardTable, + Columns: controlobjective.StandardPrimaryKey, + Bidi: false, + }, + "ControlObjective", + "Standard", + ) + graph.MustAddE( + "narratives", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: controlobjective.NarrativesTable, + Columns: controlobjective.NarrativesPrimaryKey, + Bidi: false, + }, + "ControlObjective", + "Narrative", + ) graph.MustAddE( "owner", &sqlgraph.EdgeSpec{ @@ -2659,6 +3472,54 @@ var schemaGraph = func() *sqlgraph.Schema { "Integration", "Webhook", ) + graph.MustAddE( + "controlobjectives", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ControlobjectivesTable, + Columns: internalpolicy.ControlobjectivesPrimaryKey, + Bidi: false, + }, + "InternalPolicy", + "ControlObjective", + ) + graph.MustAddE( + "controls", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: internalpolicy.ControlsTable, + Columns: []string{internalpolicy.ControlsColumn}, + Bidi: false, + }, + "InternalPolicy", + "Control", + ) + graph.MustAddE( + "procedures", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ProceduresTable, + Columns: internalpolicy.ProceduresPrimaryKey, + Bidi: false, + }, + "InternalPolicy", + "Procedure", + ) + graph.MustAddE( + "narratives", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.NarrativesTable, + Columns: internalpolicy.NarrativesPrimaryKey, + Bidi: false, + }, + "InternalPolicy", + "Narrative", + ) graph.MustAddE( "owner", &sqlgraph.EdgeSpec{ @@ -2683,6 +3544,54 @@ var schemaGraph = func() *sqlgraph.Schema { "Invite", "Event", ) + graph.MustAddE( + "policy", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.PolicyTable, + Columns: narrative.PolicyPrimaryKey, + Bidi: false, + }, + "Narrative", + "InternalPolicy", + ) + graph.MustAddE( + "control", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlTable, + Columns: narrative.ControlPrimaryKey, + Bidi: false, + }, + "Narrative", + "Control", + ) + graph.MustAddE( + "procedure", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ProcedureTable, + Columns: narrative.ProcedurePrimaryKey, + Bidi: false, + }, + "Narrative", + "Procedure", + ) + graph.MustAddE( + "controlobjective", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlobjectiveTable, + Columns: narrative.ControlobjectivePrimaryKey, + Bidi: false, + }, + "Narrative", + "ControlObjective", + ) graph.MustAddE( "owner", &sqlgraph.EdgeSpec{ @@ -2707,6 +3616,18 @@ var schemaGraph = func() *sqlgraph.Schema { "Note", "Entity", ) + graph.MustAddE( + "subcontrols", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: note.SubcontrolsTable, + Columns: []string{note.SubcontrolsColumn}, + Bidi: false, + }, + "Note", + "Subcontrol", + ) graph.MustAddE( "owner", &sqlgraph.EdgeSpec{ @@ -3176,96 +4097,264 @@ var schemaGraph = func() *sqlgraph.Schema { "Event", ) graph.MustAddE( - "owner", + "control", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: true, - Table: subscriber.OwnerTable, - Columns: []string{subscriber.OwnerColumn}, + Table: procedure.ControlTable, + Columns: procedure.ControlPrimaryKey, Bidi: false, }, - "Subscriber", - "Organization", + "Procedure", + "Control", ) graph.MustAddE( - "events", + "internalpolicy", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.InternalpolicyTable, + Columns: procedure.InternalpolicyPrimaryKey, + Bidi: false, + }, + "Procedure", + "InternalPolicy", + ) + graph.MustAddE( + "narratives", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: subscriber.EventsTable, - Columns: subscriber.EventsPrimaryKey, + Table: procedure.NarrativesTable, + Columns: procedure.NarrativesPrimaryKey, Bidi: false, }, - "Subscriber", - "Event", + "Procedure", + "Narrative", ) graph.MustAddE( - "owner", + "risks", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.RisksTable, + Columns: procedure.RisksPrimaryKey, + Bidi: false, + }, + "Procedure", + "Risk", + ) + graph.MustAddE( + "control", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, Inverse: true, - Table: tfasetting.OwnerTable, - Columns: []string{tfasetting.OwnerColumn}, + Table: risk.ControlTable, + Columns: risk.ControlPrimaryKey, Bidi: false, }, - "TFASetting", - "User", + "Risk", + "Control", ) graph.MustAddE( - "owner", + "procedure", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, + Rel: sqlgraph.M2M, Inverse: true, - Table: template.OwnerTable, - Columns: []string{template.OwnerColumn}, + Table: risk.ProcedureTable, + Columns: risk.ProcedurePrimaryKey, Bidi: false, }, - "Template", - "Organization", + "Risk", + "Procedure", ) graph.MustAddE( - "documents", + "actionplans", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: template.DocumentsTable, - Columns: []string{template.DocumentsColumn}, + Table: risk.ActionplansTable, + Columns: risk.ActionplansPrimaryKey, Bidi: false, }, - "Template", - "DocumentData", + "Risk", + "ActionPlan", ) graph.MustAddE( - "files", + "controlobjectives", &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, Inverse: false, - Table: template.FilesTable, - Columns: template.FilesPrimaryKey, + Table: standard.ControlobjectivesTable, + Columns: standard.ControlobjectivesPrimaryKey, Bidi: false, }, - "Template", - "File", + "Standard", + "ControlObjective", ) graph.MustAddE( - "personal_access_tokens", + "controls", &sqlgraph.EdgeSpec{ - Rel: sqlgraph.O2M, + Rel: sqlgraph.M2M, Inverse: false, - Table: user.PersonalAccessTokensTable, - Columns: []string{user.PersonalAccessTokensColumn}, + Table: standard.ControlsTable, + Columns: standard.ControlsPrimaryKey, Bidi: false, }, - "User", - "PersonalAccessToken", + "Standard", + "Control", ) graph.MustAddE( - "tfa_settings", + "procedures", &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, Inverse: false, - Table: user.TfaSettingsTable, - Columns: []string{user.TfaSettingsColumn}, + Table: standard.ProceduresTable, + Columns: []string{standard.ProceduresColumn}, + Bidi: false, + }, + "Standard", + "Procedure", + ) + graph.MustAddE( + "actionplans", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ActionplansTable, + Columns: standard.ActionplansPrimaryKey, + Bidi: false, + }, + "Standard", + "ActionPlan", + ) + graph.MustAddE( + "control", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.ControlTable, + Columns: subcontrol.ControlPrimaryKey, + Bidi: false, + }, + "Subcontrol", + "Control", + ) + graph.MustAddE( + "user", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.UserTable, + Columns: subcontrol.UserPrimaryKey, + Bidi: false, + }, + "Subcontrol", + "User", + ) + graph.MustAddE( + "notes", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: subcontrol.NotesTable, + Columns: []string{subcontrol.NotesColumn}, + Bidi: false, + }, + "Subcontrol", + "Note", + ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: subscriber.OwnerTable, + Columns: []string{subscriber.OwnerColumn}, + Bidi: false, + }, + "Subscriber", + "Organization", + ) + graph.MustAddE( + "events", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: subscriber.EventsTable, + Columns: subscriber.EventsPrimaryKey, + Bidi: false, + }, + "Subscriber", + "Event", + ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: tfasetting.OwnerTable, + Columns: []string{tfasetting.OwnerColumn}, + Bidi: false, + }, + "TFASetting", + "User", + ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: template.OwnerTable, + Columns: []string{template.OwnerColumn}, + Bidi: false, + }, + "Template", + "Organization", + ) + graph.MustAddE( + "documents", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: template.DocumentsTable, + Columns: []string{template.DocumentsColumn}, + Bidi: false, + }, + "Template", + "DocumentData", + ) + graph.MustAddE( + "files", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: template.FilesTable, + Columns: template.FilesPrimaryKey, + Bidi: false, + }, + "Template", + "File", + ) + graph.MustAddE( + "personal_access_tokens", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.PersonalAccessTokensTable, + Columns: []string{user.PersonalAccessTokensColumn}, + Bidi: false, + }, + "User", + "PersonalAccessToken", + ) + graph.MustAddE( + "tfa_settings", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.TfaSettingsTable, + Columns: []string{user.TfaSettingsColumn}, Bidi: false, }, "User", @@ -3379,6 +4468,30 @@ var schemaGraph = func() *sqlgraph.Schema { "User", "Event", ) + graph.MustAddE( + "actionplans", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.ActionplansTable, + Columns: user.ActionplansPrimaryKey, + Bidi: false, + }, + "User", + "ActionPlan", + ) + graph.MustAddE( + "subcontrols", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.SubcontrolsTable, + Columns: user.SubcontrolsPrimaryKey, + Bidi: false, + }, + "User", + "Subcontrol", + ) graph.MustAddE( "group_memberships", &sqlgraph.EdgeSpec{ @@ -3626,33 +4739,33 @@ func (f *APITokenFilter) WhereHasOwnerWith(preds ...predicate.Organization) { } // addPredicate implements the predicateAdder interface. -func (cq *ContactQuery) addPredicate(pred func(s *sql.Selector)) { - cq.predicates = append(cq.predicates, pred) +func (apq *ActionPlanQuery) addPredicate(pred func(s *sql.Selector)) { + apq.predicates = append(apq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the ContactQuery builder. -func (cq *ContactQuery) Filter() *ContactFilter { - return &ContactFilter{config: cq.config, predicateAdder: cq} +// Filter returns a Filter implementation to apply filters on the ActionPlanQuery builder. +func (apq *ActionPlanQuery) Filter() *ActionPlanFilter { + return &ActionPlanFilter{config: apq.config, predicateAdder: apq} } // addPredicate implements the predicateAdder interface. -func (m *ContactMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ActionPlanMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the ContactMutation builder. -func (m *ContactMutation) Filter() *ContactFilter { - return &ContactFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ActionPlanMutation builder. +func (m *ActionPlanMutation) Filter() *ActionPlanFilter { + return &ActionPlanFilter{config: m.config, predicateAdder: m} } -// ContactFilter provides a generic filtering capability at runtime for ContactQuery. -type ContactFilter struct { +// ActionPlanFilter provides a generic filtering capability at runtime for ActionPlanQuery. +type ActionPlanFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *ContactFilter) Where(p entql.P) { +func (f *ActionPlanFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { if err := schemaGraph.EvalP(schemaGraph.Nodes[1].Type, p, s); err != nil { s.AddError(err) @@ -3661,126 +4774,135 @@ func (f *ContactFilter) Where(p entql.P) { } // WhereID applies the entql string predicate on the id field. -func (f *ContactFilter) WhereID(p entql.StringP) { - f.Where(p.Field(contact.FieldID)) +func (f *ActionPlanFilter) WhereID(p entql.StringP) { + f.Where(p.Field(actionplan.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *ContactFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(contact.FieldCreatedAt)) +func (f *ActionPlanFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(actionplan.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *ContactFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(contact.FieldUpdatedAt)) +func (f *ActionPlanFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(actionplan.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *ContactFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(contact.FieldCreatedBy)) +func (f *ActionPlanFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(actionplan.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *ContactFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(contact.FieldUpdatedBy)) -} - -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *ContactFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(contact.FieldMappingID)) +func (f *ActionPlanFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(actionplan.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *ContactFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(contact.FieldDeletedAt)) +func (f *ActionPlanFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(actionplan.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *ContactFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(contact.FieldDeletedBy)) +func (f *ActionPlanFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(actionplan.FieldDeletedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *ActionPlanFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(actionplan.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *ContactFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(contact.FieldTags)) +func (f *ActionPlanFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(actionplan.FieldTags)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *ContactFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(contact.FieldOwnerID)) +// WhereName applies the entql string predicate on the name field. +func (f *ActionPlanFilter) WhereName(p entql.StringP) { + f.Where(p.Field(actionplan.FieldName)) } -// WhereFullName applies the entql string predicate on the full_name field. -func (f *ContactFilter) WhereFullName(p entql.StringP) { - f.Where(p.Field(contact.FieldFullName)) +// WhereDescription applies the entql string predicate on the description field. +func (f *ActionPlanFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(actionplan.FieldDescription)) } -// WhereTitle applies the entql string predicate on the title field. -func (f *ContactFilter) WhereTitle(p entql.StringP) { - f.Where(p.Field(contact.FieldTitle)) +// WhereStatus applies the entql string predicate on the status field. +func (f *ActionPlanFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(actionplan.FieldStatus)) } -// WhereCompany applies the entql string predicate on the company field. -func (f *ContactFilter) WhereCompany(p entql.StringP) { - f.Where(p.Field(contact.FieldCompany)) +// WhereDueDate applies the entql time.Time predicate on the due_date field. +func (f *ActionPlanFilter) WhereDueDate(p entql.TimeP) { + f.Where(p.Field(actionplan.FieldDueDate)) } -// WhereEmail applies the entql string predicate on the email field. -func (f *ContactFilter) WhereEmail(p entql.StringP) { - f.Where(p.Field(contact.FieldEmail)) +// WherePriority applies the entql string predicate on the priority field. +func (f *ActionPlanFilter) WherePriority(p entql.StringP) { + f.Where(p.Field(actionplan.FieldPriority)) } -// WherePhoneNumber applies the entql string predicate on the phone_number field. -func (f *ContactFilter) WherePhoneNumber(p entql.StringP) { - f.Where(p.Field(contact.FieldPhoneNumber)) +// WhereSource applies the entql string predicate on the source field. +func (f *ActionPlanFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(actionplan.FieldSource)) } -// WhereAddress applies the entql string predicate on the address field. -func (f *ContactFilter) WhereAddress(p entql.StringP) { - f.Where(p.Field(contact.FieldAddress)) +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *ActionPlanFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(actionplan.FieldDetails)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *ContactFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(contact.FieldStatus)) +// WhereHasStandard applies a predicate to check if query has an edge standard. +func (f *ActionPlanFilter) WhereHasStandard() { + f.Where(entql.HasEdge("standard")) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *ContactFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasStandardWith applies a predicate to check if query has an edge standard with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasStandardWith(preds ...predicate.Standard) { + f.Where(entql.HasEdgeWith("standard", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *ContactFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRisk applies a predicate to check if query has an edge risk. +func (f *ActionPlanFilter) WhereHasRisk() { + f.Where(entql.HasEdge("risk")) +} + +// WhereHasRiskWith applies a predicate to check if query has an edge risk with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasRiskWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risk", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntities applies a predicate to check if query has an edge entities. -func (f *ContactFilter) WhereHasEntities() { - f.Where(entql.HasEdge("entities")) +// WhereHasControl applies a predicate to check if query has an edge control. +func (f *ActionPlanFilter) WhereHasControl() { + f.Where(entql.HasEdge("control")) } -// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). -func (f *ContactFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlWith applies a predicate to check if query has an edge control with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasControlWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("control", 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")) +// WhereHasUser applies a predicate to check if query has an edge user. +func (f *ActionPlanFilter) WhereHasUser() { + f.Where(entql.HasEdge("user")) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *ContactFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). +func (f *ActionPlanFilter) WhereHasUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -3788,33 +4910,33 @@ func (f *ContactFilter) WhereHasFilesWith(preds ...predicate.File) { } // addPredicate implements the predicateAdder interface. -func (chq *ContactHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - chq.predicates = append(chq.predicates, pred) +func (aphq *ActionPlanHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + aphq.predicates = append(aphq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the ContactHistoryQuery builder. -func (chq *ContactHistoryQuery) Filter() *ContactHistoryFilter { - return &ContactHistoryFilter{config: chq.config, predicateAdder: chq} +// Filter returns a Filter implementation to apply filters on the ActionPlanHistoryQuery builder. +func (aphq *ActionPlanHistoryQuery) Filter() *ActionPlanHistoryFilter { + return &ActionPlanHistoryFilter{config: aphq.config, predicateAdder: aphq} } // addPredicate implements the predicateAdder interface. -func (m *ContactHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ActionPlanHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the ContactHistoryMutation builder. -func (m *ContactHistoryMutation) Filter() *ContactHistoryFilter { - return &ContactHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ActionPlanHistoryMutation builder. +func (m *ActionPlanHistoryMutation) Filter() *ActionPlanHistoryFilter { + return &ActionPlanHistoryFilter{config: m.config, predicateAdder: m} } -// ContactHistoryFilter provides a generic filtering capability at runtime for ContactHistoryQuery. -type ContactHistoryFilter struct { +// ActionPlanHistoryFilter provides a generic filtering capability at runtime for ActionPlanHistoryQuery. +type ActionPlanHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *ContactHistoryFilter) Where(p entql.P) { +func (f *ActionPlanHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { if err := schemaGraph.EvalP(schemaGraph.Nodes[2].Type, p, s); err != nil { s.AddError(err) @@ -3823,133 +4945,128 @@ func (f *ContactHistoryFilter) Where(p entql.P) { } // WhereID applies the entql string predicate on the id field. -func (f *ContactHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldID)) +func (f *ActionPlanHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(actionplanhistory.FieldID)) } // WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *ContactHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(contacthistory.FieldHistoryTime)) +func (f *ActionPlanHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(actionplanhistory.FieldHistoryTime)) } // WhereRef applies the entql string predicate on the ref field. -func (f *ContactHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldRef)) +func (f *ActionPlanHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(actionplanhistory.FieldRef)) } // WhereOperation applies the entql string predicate on the operation field. -func (f *ContactHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldOperation)) +func (f *ActionPlanHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(actionplanhistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *ContactHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(contacthistory.FieldCreatedAt)) +func (f *ActionPlanHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(actionplanhistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *ContactHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(contacthistory.FieldUpdatedAt)) +func (f *ActionPlanHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(actionplanhistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *ContactHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldCreatedBy)) +func (f *ActionPlanHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(actionplanhistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *ContactHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldUpdatedBy)) -} - -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *ContactHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldMappingID)) +func (f *ActionPlanHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(actionplanhistory.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *ContactHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(contacthistory.FieldDeletedAt)) +func (f *ActionPlanHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(actionplanhistory.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *ContactHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldDeletedBy)) +func (f *ActionPlanHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(actionplanhistory.FieldDeletedBy)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *ContactHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(contacthistory.FieldTags)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *ActionPlanHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(actionplanhistory.FieldMappingID)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *ContactHistoryFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldOwnerID)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *ActionPlanHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(actionplanhistory.FieldTags)) } -// WhereFullName applies the entql string predicate on the full_name field. -func (f *ContactHistoryFilter) WhereFullName(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldFullName)) +// WhereName applies the entql string predicate on the name field. +func (f *ActionPlanHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(actionplanhistory.FieldName)) } -// WhereTitle applies the entql string predicate on the title field. -func (f *ContactHistoryFilter) WhereTitle(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldTitle)) +// WhereDescription applies the entql string predicate on the description field. +func (f *ActionPlanHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(actionplanhistory.FieldDescription)) } -// WhereCompany applies the entql string predicate on the company field. -func (f *ContactHistoryFilter) WhereCompany(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldCompany)) +// WhereStatus applies the entql string predicate on the status field. +func (f *ActionPlanHistoryFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(actionplanhistory.FieldStatus)) } -// WhereEmail applies the entql string predicate on the email field. -func (f *ContactHistoryFilter) WhereEmail(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldEmail)) +// WhereDueDate applies the entql time.Time predicate on the due_date field. +func (f *ActionPlanHistoryFilter) WhereDueDate(p entql.TimeP) { + f.Where(p.Field(actionplanhistory.FieldDueDate)) } -// WherePhoneNumber applies the entql string predicate on the phone_number field. -func (f *ContactHistoryFilter) WherePhoneNumber(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldPhoneNumber)) +// WherePriority applies the entql string predicate on the priority field. +func (f *ActionPlanHistoryFilter) WherePriority(p entql.StringP) { + f.Where(p.Field(actionplanhistory.FieldPriority)) } -// WhereAddress applies the entql string predicate on the address field. -func (f *ContactHistoryFilter) WhereAddress(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldAddress)) +// WhereSource applies the entql string predicate on the source field. +func (f *ActionPlanHistoryFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(actionplanhistory.FieldSource)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *ContactHistoryFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(contacthistory.FieldStatus)) +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *ActionPlanHistoryFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(actionplanhistory.FieldDetails)) } // addPredicate implements the predicateAdder interface. -func (ddq *DocumentDataQuery) addPredicate(pred func(s *sql.Selector)) { - ddq.predicates = append(ddq.predicates, pred) +func (cq *ContactQuery) addPredicate(pred func(s *sql.Selector)) { + cq.predicates = append(cq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the DocumentDataQuery builder. -func (ddq *DocumentDataQuery) Filter() *DocumentDataFilter { - return &DocumentDataFilter{config: ddq.config, predicateAdder: ddq} +// Filter returns a Filter implementation to apply filters on the ContactQuery builder. +func (cq *ContactQuery) Filter() *ContactFilter { + return &ContactFilter{config: cq.config, predicateAdder: cq} } // addPredicate implements the predicateAdder interface. -func (m *DocumentDataMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ContactMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the DocumentDataMutation builder. -func (m *DocumentDataMutation) Filter() *DocumentDataFilter { - return &DocumentDataFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ContactMutation builder. +func (m *ContactMutation) Filter() *ContactFilter { + return &ContactFilter{config: m.config, predicateAdder: m} } -// DocumentDataFilter provides a generic filtering capability at runtime for DocumentDataQuery. -type DocumentDataFilter struct { +// ContactFilter provides a generic filtering capability at runtime for ContactQuery. +type ContactFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *DocumentDataFilter) Where(p entql.P) { +func (f *ContactFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { if err := schemaGraph.EvalP(schemaGraph.Nodes[3].Type, p, s); err != nil { s.AddError(err) @@ -3958,101 +5075,112 @@ func (f *DocumentDataFilter) Where(p entql.P) { } // WhereID applies the entql string predicate on the id field. -func (f *DocumentDataFilter) WhereID(p entql.StringP) { - f.Where(p.Field(documentdata.FieldID)) +func (f *ContactFilter) WhereID(p entql.StringP) { + f.Where(p.Field(contact.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *DocumentDataFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(documentdata.FieldCreatedAt)) +func (f *ContactFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(contact.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *DocumentDataFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(documentdata.FieldUpdatedAt)) +func (f *ContactFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(contact.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *DocumentDataFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(documentdata.FieldCreatedBy)) +func (f *ContactFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(contact.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *DocumentDataFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(documentdata.FieldUpdatedBy)) +func (f *ContactFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(contact.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *DocumentDataFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(documentdata.FieldMappingID)) -} - -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *DocumentDataFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(documentdata.FieldTags)) +func (f *ContactFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(contact.FieldMappingID)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *DocumentDataFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(documentdata.FieldDeletedAt)) +func (f *ContactFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(contact.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *DocumentDataFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(documentdata.FieldDeletedBy)) +func (f *ContactFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(contact.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *ContactFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(contact.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *DocumentDataFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(documentdata.FieldOwnerID)) +func (f *ContactFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(contact.FieldOwnerID)) } -// WhereTemplateID applies the entql string predicate on the template_id field. -func (f *DocumentDataFilter) WhereTemplateID(p entql.StringP) { - f.Where(p.Field(documentdata.FieldTemplateID)) +// WhereFullName applies the entql string predicate on the full_name field. +func (f *ContactFilter) WhereFullName(p entql.StringP) { + f.Where(p.Field(contact.FieldFullName)) } -// WhereData applies the entql json.RawMessage predicate on the data field. -func (f *DocumentDataFilter) WhereData(p entql.BytesP) { - f.Where(p.Field(documentdata.FieldData)) +// WhereTitle applies the entql string predicate on the title field. +func (f *ContactFilter) WhereTitle(p entql.StringP) { + f.Where(p.Field(contact.FieldTitle)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *DocumentDataFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereCompany applies the entql string predicate on the company field. +func (f *ContactFilter) WhereCompany(p entql.StringP) { + f.Where(p.Field(contact.FieldCompany)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *DocumentDataFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereEmail applies the entql string predicate on the email field. +func (f *ContactFilter) WhereEmail(p entql.StringP) { + f.Where(p.Field(contact.FieldEmail)) } -// WhereHasTemplate applies a predicate to check if query has an edge template. -func (f *DocumentDataFilter) WhereHasTemplate() { - f.Where(entql.HasEdge("template")) +// WherePhoneNumber applies the entql string predicate on the phone_number field. +func (f *ContactFilter) WherePhoneNumber(p entql.StringP) { + f.Where(p.Field(contact.FieldPhoneNumber)) } -// WhereHasTemplateWith applies a predicate to check if query has an edge template with a given conditions (other predicates). -func (f *DocumentDataFilter) WhereHasTemplateWith(preds ...predicate.Template) { - f.Where(entql.HasEdgeWith("template", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereAddress applies the entql string predicate on the address field. +func (f *ContactFilter) WhereAddress(p entql.StringP) { + f.Where(p.Field(contact.FieldAddress)) +} + +// WhereStatus applies the entql string predicate on the status field. +func (f *ContactFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(contact.FieldStatus)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *ContactFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *ContactFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntity applies a predicate to check if query has an edge entity. -func (f *DocumentDataFilter) WhereHasEntity() { - f.Where(entql.HasEdge("entity")) +// WhereHasEntities applies a predicate to check if query has an edge entities. +func (f *ContactFilter) WhereHasEntities() { + f.Where(entql.HasEdge("entities")) } -// WhereHasEntityWith applies a predicate to check if query has an edge entity with a given conditions (other predicates). -func (f *DocumentDataFilter) WhereHasEntityWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entity", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). +func (f *ContactFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -4060,12 +5188,12 @@ func (f *DocumentDataFilter) WhereHasEntityWith(preds ...predicate.Entity) { } // WhereHasFiles applies a predicate to check if query has an edge files. -func (f *DocumentDataFilter) WhereHasFiles() { +func (f *ContactFilter) WhereHasFiles() { f.Where(entql.HasEdge("files")) } // WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *DocumentDataFilter) WhereHasFilesWith(preds ...predicate.File) { +func (f *ContactFilter) WhereHasFilesWith(preds ...predicate.File) { f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -4074,33 +5202,33 @@ func (f *DocumentDataFilter) WhereHasFilesWith(preds ...predicate.File) { } // addPredicate implements the predicateAdder interface. -func (ddhq *DocumentDataHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - ddhq.predicates = append(ddhq.predicates, pred) +func (chq *ContactHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + chq.predicates = append(chq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the DocumentDataHistoryQuery builder. -func (ddhq *DocumentDataHistoryQuery) Filter() *DocumentDataHistoryFilter { - return &DocumentDataHistoryFilter{config: ddhq.config, predicateAdder: ddhq} +// Filter returns a Filter implementation to apply filters on the ContactHistoryQuery builder. +func (chq *ContactHistoryQuery) Filter() *ContactHistoryFilter { + return &ContactHistoryFilter{config: chq.config, predicateAdder: chq} } // addPredicate implements the predicateAdder interface. -func (m *DocumentDataHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ContactHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the DocumentDataHistoryMutation builder. -func (m *DocumentDataHistoryMutation) Filter() *DocumentDataHistoryFilter { - return &DocumentDataHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ContactHistoryMutation builder. +func (m *ContactHistoryMutation) Filter() *ContactHistoryFilter { + return &ContactHistoryFilter{config: m.config, predicateAdder: m} } -// DocumentDataHistoryFilter provides a generic filtering capability at runtime for DocumentDataHistoryQuery. -type DocumentDataHistoryFilter struct { +// ContactHistoryFilter provides a generic filtering capability at runtime for ContactHistoryQuery. +type ContactHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *DocumentDataHistoryFilter) Where(p entql.P) { +func (f *ContactHistoryFilter) 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) @@ -4109,108 +5237,133 @@ func (f *DocumentDataHistoryFilter) Where(p entql.P) { } // WhereID applies the entql string predicate on the id field. -func (f *DocumentDataHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(documentdatahistory.FieldID)) +func (f *ContactHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldID)) } // WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *DocumentDataHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(documentdatahistory.FieldHistoryTime)) +func (f *ContactHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(contacthistory.FieldHistoryTime)) } // WhereRef applies the entql string predicate on the ref field. -func (f *DocumentDataHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(documentdatahistory.FieldRef)) +func (f *ContactHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldRef)) } // WhereOperation applies the entql string predicate on the operation field. -func (f *DocumentDataHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(documentdatahistory.FieldOperation)) +func (f *ContactHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *DocumentDataHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(documentdatahistory.FieldCreatedAt)) +func (f *ContactHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(contacthistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *DocumentDataHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(documentdatahistory.FieldUpdatedAt)) +func (f *ContactHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(contacthistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *DocumentDataHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(documentdatahistory.FieldCreatedBy)) +func (f *ContactHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *DocumentDataHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(documentdatahistory.FieldUpdatedBy)) +func (f *ContactHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *DocumentDataHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(documentdatahistory.FieldMappingID)) -} - -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *DocumentDataHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(documentdatahistory.FieldTags)) +func (f *ContactHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldMappingID)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *DocumentDataHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(documentdatahistory.FieldDeletedAt)) +func (f *ContactHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(contacthistory.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *DocumentDataHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(documentdatahistory.FieldDeletedBy)) +func (f *ContactHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *ContactHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(contacthistory.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *DocumentDataHistoryFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(documentdatahistory.FieldOwnerID)) +func (f *ContactHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldOwnerID)) } -// WhereTemplateID applies the entql string predicate on the template_id field. -func (f *DocumentDataHistoryFilter) WhereTemplateID(p entql.StringP) { - f.Where(p.Field(documentdatahistory.FieldTemplateID)) +// WhereFullName applies the entql string predicate on the full_name field. +func (f *ContactHistoryFilter) WhereFullName(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldFullName)) } -// WhereData applies the entql json.RawMessage predicate on the data field. -func (f *DocumentDataHistoryFilter) WhereData(p entql.BytesP) { - f.Where(p.Field(documentdatahistory.FieldData)) +// WhereTitle applies the entql string predicate on the title field. +func (f *ContactHistoryFilter) WhereTitle(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldTitle)) +} + +// WhereCompany applies the entql string predicate on the company field. +func (f *ContactHistoryFilter) WhereCompany(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldCompany)) +} + +// WhereEmail applies the entql string predicate on the email field. +func (f *ContactHistoryFilter) WhereEmail(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldEmail)) +} + +// WherePhoneNumber applies the entql string predicate on the phone_number field. +func (f *ContactHistoryFilter) WherePhoneNumber(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldPhoneNumber)) +} + +// WhereAddress applies the entql string predicate on the address field. +func (f *ContactHistoryFilter) WhereAddress(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldAddress)) +} + +// WhereStatus applies the entql string predicate on the status field. +func (f *ContactHistoryFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(contacthistory.FieldStatus)) } // addPredicate implements the predicateAdder interface. -func (evtq *EmailVerificationTokenQuery) addPredicate(pred func(s *sql.Selector)) { - evtq.predicates = append(evtq.predicates, pred) +func (cq *ControlQuery) addPredicate(pred func(s *sql.Selector)) { + cq.predicates = append(cq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the EmailVerificationTokenQuery builder. -func (evtq *EmailVerificationTokenQuery) Filter() *EmailVerificationTokenFilter { - return &EmailVerificationTokenFilter{config: evtq.config, predicateAdder: evtq} +// Filter returns a Filter implementation to apply filters on the ControlQuery builder. +func (cq *ControlQuery) Filter() *ControlFilter { + return &ControlFilter{config: cq.config, predicateAdder: cq} } // addPredicate implements the predicateAdder interface. -func (m *EmailVerificationTokenMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ControlMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the EmailVerificationTokenMutation builder. -func (m *EmailVerificationTokenMutation) Filter() *EmailVerificationTokenFilter { - return &EmailVerificationTokenFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ControlMutation builder. +func (m *ControlMutation) Filter() *ControlFilter { + return &ControlFilter{config: m.config, predicateAdder: m} } -// EmailVerificationTokenFilter provides a generic filtering capability at runtime for EmailVerificationTokenQuery. -type EmailVerificationTokenFilter struct { +// ControlFilter provides a generic filtering capability at runtime for ControlQuery. +type ControlFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *EmailVerificationTokenFilter) Where(p entql.P) { +func (f *ControlFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { if err := schemaGraph.EvalP(schemaGraph.Nodes[5].Type, p, s); err != nil { s.AddError(err) @@ -4219,254 +5372,202 @@ func (f *EmailVerificationTokenFilter) Where(p entql.P) { } // WhereID applies the entql string predicate on the id field. -func (f *EmailVerificationTokenFilter) WhereID(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldID)) +func (f *ControlFilter) WhereID(p entql.StringP) { + f.Where(p.Field(control.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EmailVerificationTokenFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(emailverificationtoken.FieldCreatedAt)) +func (f *ControlFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(control.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EmailVerificationTokenFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(emailverificationtoken.FieldUpdatedAt)) +func (f *ControlFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(control.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EmailVerificationTokenFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldCreatedBy)) +func (f *ControlFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(control.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EmailVerificationTokenFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldUpdatedBy)) -} - -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EmailVerificationTokenFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldMappingID)) +func (f *ControlFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(control.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EmailVerificationTokenFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(emailverificationtoken.FieldDeletedAt)) +func (f *ControlFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(control.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EmailVerificationTokenFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldDeletedBy)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EmailVerificationTokenFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldOwnerID)) -} - -// WhereToken applies the entql string predicate on the token field. -func (f *EmailVerificationTokenFilter) WhereToken(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldToken)) -} - -// WhereTTL applies the entql time.Time predicate on the ttl field. -func (f *EmailVerificationTokenFilter) WhereTTL(p entql.TimeP) { - f.Where(p.Field(emailverificationtoken.FieldTTL)) -} - -// WhereEmail applies the entql string predicate on the email field. -func (f *EmailVerificationTokenFilter) WhereEmail(p entql.StringP) { - f.Where(p.Field(emailverificationtoken.FieldEmail)) -} - -// WhereSecret applies the entql []byte predicate on the secret field. -func (f *EmailVerificationTokenFilter) WhereSecret(p entql.BytesP) { - f.Where(p.Field(emailverificationtoken.FieldSecret)) -} - -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *EmailVerificationTokenFilter) 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 *EmailVerificationTokenFilter) WhereHasOwnerWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// addPredicate implements the predicateAdder interface. -func (eq *EntitlementQuery) addPredicate(pred func(s *sql.Selector)) { - eq.predicates = append(eq.predicates, pred) -} - -// Filter returns a Filter implementation to apply filters on the EntitlementQuery builder. -func (eq *EntitlementQuery) Filter() *EntitlementFilter { - return &EntitlementFilter{config: eq.config, predicateAdder: eq} -} - -// addPredicate implements the predicateAdder interface. -func (m *EntitlementMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +func (f *ControlFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(control.FieldDeletedBy)) } -// Filter returns an entql.Where implementation to apply filters on the EntitlementMutation builder. -func (m *EntitlementMutation) Filter() *EntitlementFilter { - return &EntitlementFilter{config: m.config, predicateAdder: m} +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *ControlFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(control.FieldMappingID)) } -// EntitlementFilter provides a generic filtering capability at runtime for EntitlementQuery. -type EntitlementFilter struct { - predicateAdder - config +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *ControlFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(control.FieldTags)) } -// Where applies the entql predicate on the query filter. -func (f *EntitlementFilter) 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) - } - }) +// WhereName applies the entql string predicate on the name field. +func (f *ControlFilter) WhereName(p entql.StringP) { + f.Where(p.Field(control.FieldName)) } -// WhereID applies the entql string predicate on the id field. -func (f *EntitlementFilter) WhereID(p entql.StringP) { - f.Where(p.Field(entitlement.FieldID)) +// WhereDescription applies the entql string predicate on the description field. +func (f *ControlFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(control.FieldDescription)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EntitlementFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(entitlement.FieldCreatedAt)) +// WhereStatus applies the entql string predicate on the status field. +func (f *ControlFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(control.FieldStatus)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EntitlementFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(entitlement.FieldUpdatedAt)) +// WhereControlType applies the entql string predicate on the control_type field. +func (f *ControlFilter) WhereControlType(p entql.StringP) { + f.Where(p.Field(control.FieldControlType)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EntitlementFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(entitlement.FieldCreatedBy)) +// WhereVersion applies the entql string predicate on the version field. +func (f *ControlFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(control.FieldVersion)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EntitlementFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(entitlement.FieldUpdatedBy)) +// WhereControlNumber applies the entql string predicate on the control_number field. +func (f *ControlFilter) WhereControlNumber(p entql.StringP) { + f.Where(p.Field(control.FieldControlNumber)) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EntitlementFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(entitlement.FieldMappingID)) +// WhereFamily applies the entql string predicate on the family field. +func (f *ControlFilter) WhereFamily(p entql.StringP) { + f.Where(p.Field(control.FieldFamily)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EntitlementFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(entitlement.FieldTags)) +// WhereClass applies the entql string predicate on the class field. +func (f *ControlFilter) WhereClass(p entql.StringP) { + f.Where(p.Field(control.FieldClass)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EntitlementFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(entitlement.FieldDeletedAt)) +// WhereSource applies the entql string predicate on the source field. +func (f *ControlFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(control.FieldSource)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EntitlementFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(entitlement.FieldDeletedBy)) +// WhereSatisfies applies the entql string predicate on the satisfies field. +func (f *ControlFilter) WhereSatisfies(p entql.StringP) { + f.Where(p.Field(control.FieldSatisfies)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EntitlementFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(entitlement.FieldOwnerID)) +// WhereMappedFrameworks applies the entql string predicate on the mapped_frameworks field. +func (f *ControlFilter) WhereMappedFrameworks(p entql.StringP) { + f.Where(p.Field(control.FieldMappedFrameworks)) } -// WherePlanID applies the entql string predicate on the plan_id field. -func (f *EntitlementFilter) WherePlanID(p entql.StringP) { - f.Where(p.Field(entitlement.FieldPlanID)) +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *ControlFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(control.FieldDetails)) } -// WhereOrganizationID applies the entql string predicate on the organization_id field. -func (f *EntitlementFilter) WhereOrganizationID(p entql.StringP) { - f.Where(p.Field(entitlement.FieldOrganizationID)) +// WhereHasProcedures applies a predicate to check if query has an edge procedures. +func (f *ControlFilter) WhereHasProcedures() { + f.Where(entql.HasEdge("procedures")) } -// WhereExternalCustomerID applies the entql string predicate on the external_customer_id field. -func (f *EntitlementFilter) WhereExternalCustomerID(p entql.StringP) { - f.Where(p.Field(entitlement.FieldExternalCustomerID)) +// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). +func (f *ControlFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereExternalSubscriptionID applies the entql string predicate on the external_subscription_id field. -func (f *EntitlementFilter) WhereExternalSubscriptionID(p entql.StringP) { - f.Where(p.Field(entitlement.FieldExternalSubscriptionID)) +// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. +func (f *ControlFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) } -// WhereExpires applies the entql bool predicate on the expires field. -func (f *EntitlementFilter) WhereExpires(p entql.BoolP) { - f.Where(p.Field(entitlement.FieldExpires)) +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *ControlFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. -func (f *EntitlementFilter) WhereExpiresAt(p entql.TimeP) { - f.Where(p.Field(entitlement.FieldExpiresAt)) +// WhereHasControlobjectives applies a predicate to check if query has an edge controlobjectives. +func (f *ControlFilter) WhereHasControlobjectives() { + f.Where(entql.HasEdge("controlobjectives")) } -// WhereCancelled applies the entql bool predicate on the cancelled field. -func (f *EntitlementFilter) WhereCancelled(p entql.BoolP) { - f.Where(p.Field(entitlement.FieldCancelled)) +// WhereHasControlobjectivesWith applies a predicate to check if query has an edge controlobjectives with a given conditions (other predicates). +func (f *ControlFilter) WhereHasControlobjectivesWith(preds ...predicate.ControlObjective) { + f.Where(entql.HasEdgeWith("controlobjectives", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *EntitlementFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasStandard applies a predicate to check if query has an edge standard. +func (f *ControlFilter) WhereHasStandard() { + f.Where(entql.HasEdge("standard")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *EntitlementFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasStandardWith applies a predicate to check if query has an edge standard with a given conditions (other predicates). +func (f *ControlFilter) WhereHasStandardWith(preds ...predicate.Standard) { + f.Where(entql.HasEdgeWith("standard", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasPlan applies a predicate to check if query has an edge plan. -func (f *EntitlementFilter) WhereHasPlan() { - f.Where(entql.HasEdge("plan")) +// WhereHasNarratives applies a predicate to check if query has an edge narratives. +func (f *ControlFilter) WhereHasNarratives() { + f.Where(entql.HasEdge("narratives")) } -// WhereHasPlanWith applies a predicate to check if query has an edge plan with a given conditions (other predicates). -func (f *EntitlementFilter) WhereHasPlanWith(preds ...predicate.EntitlementPlan) { - f.Where(entql.HasEdgeWith("plan", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasNarrativesWith applies a predicate to check if query has an edge narratives with a given conditions (other predicates). +func (f *ControlFilter) WhereHasNarrativesWith(preds ...predicate.Narrative) { + f.Where(entql.HasEdgeWith("narratives", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrganization applies a predicate to check if query has an edge organization. -func (f *EntitlementFilter) WhereHasOrganization() { - f.Where(entql.HasEdge("organization")) +// WhereHasRisks applies a predicate to check if query has an edge risks. +func (f *ControlFilter) WhereHasRisks() { + f.Where(entql.HasEdge("risks")) } -// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). -func (f *EntitlementFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). +func (f *ControlFilter) WhereHasRisksWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *EntitlementFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereHasActionplans applies a predicate to check if query has an edge actionplans. +func (f *ControlFilter) WhereHasActionplans() { + f.Where(entql.HasEdge("actionplans")) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *EntitlementFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasActionplansWith applies a predicate to check if query has an edge actionplans with a given conditions (other predicates). +func (f *ControlFilter) WhereHasActionplansWith(preds ...predicate.ActionPlan) { + f.Where(entql.HasEdgeWith("actionplans", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -4474,314 +5575,387 @@ func (f *EntitlementFilter) WhereHasEventsWith(preds ...predicate.Event) { } // addPredicate implements the predicateAdder interface. -func (ehq *EntitlementHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - ehq.predicates = append(ehq.predicates, pred) +func (chq *ControlHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + chq.predicates = append(chq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the EntitlementHistoryQuery builder. -func (ehq *EntitlementHistoryQuery) Filter() *EntitlementHistoryFilter { - return &EntitlementHistoryFilter{config: ehq.config, predicateAdder: ehq} +// Filter returns a Filter implementation to apply filters on the ControlHistoryQuery builder. +func (chq *ControlHistoryQuery) Filter() *ControlHistoryFilter { + return &ControlHistoryFilter{config: chq.config, predicateAdder: chq} } // addPredicate implements the predicateAdder interface. -func (m *EntitlementHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ControlHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the EntitlementHistoryMutation builder. -func (m *EntitlementHistoryMutation) Filter() *EntitlementHistoryFilter { - return &EntitlementHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ControlHistoryMutation builder. +func (m *ControlHistoryMutation) Filter() *ControlHistoryFilter { + return &ControlHistoryFilter{config: m.config, predicateAdder: m} } -// EntitlementHistoryFilter provides a generic filtering capability at runtime for EntitlementHistoryQuery. -type EntitlementHistoryFilter struct { +// ControlHistoryFilter provides a generic filtering capability at runtime for ControlHistoryQuery. +type ControlHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *EntitlementHistoryFilter) Where(p entql.P) { +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[6].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *EntitlementHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(entitlementhistory.FieldID)) +func (f *ControlHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldID)) } // WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *EntitlementHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(entitlementhistory.FieldHistoryTime)) +func (f *ControlHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(controlhistory.FieldHistoryTime)) } // WhereRef applies the entql string predicate on the ref field. -func (f *EntitlementHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(entitlementhistory.FieldRef)) +func (f *ControlHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldRef)) } // WhereOperation applies the entql string predicate on the operation field. -func (f *EntitlementHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(entitlementhistory.FieldOperation)) +func (f *ControlHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EntitlementHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(entitlementhistory.FieldCreatedAt)) +func (f *ControlHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(controlhistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EntitlementHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(entitlementhistory.FieldUpdatedAt)) +func (f *ControlHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(controlhistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EntitlementHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(entitlementhistory.FieldCreatedBy)) +func (f *ControlHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EntitlementHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(entitlementhistory.FieldUpdatedBy)) +func (f *ControlHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *ControlHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(controlhistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *ControlHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldDeletedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EntitlementHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(entitlementhistory.FieldMappingID)) +func (f *ControlHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EntitlementHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(entitlementhistory.FieldTags)) +func (f *ControlHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(controlhistory.FieldTags)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EntitlementHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(entitlementhistory.FieldDeletedAt)) +// WhereName applies the entql string predicate on the name field. +func (f *ControlHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldName)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EntitlementHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(entitlementhistory.FieldDeletedBy)) +// WhereDescription applies the entql string predicate on the description field. +func (f *ControlHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldDescription)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EntitlementHistoryFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(entitlementhistory.FieldOwnerID)) +// WhereStatus applies the entql string predicate on the status field. +func (f *ControlHistoryFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldStatus)) } -// WherePlanID applies the entql string predicate on the plan_id field. -func (f *EntitlementHistoryFilter) WherePlanID(p entql.StringP) { - f.Where(p.Field(entitlementhistory.FieldPlanID)) +// WhereControlType applies the entql string predicate on the control_type field. +func (f *ControlHistoryFilter) WhereControlType(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldControlType)) } -// WhereOrganizationID applies the entql string predicate on the organization_id field. -func (f *EntitlementHistoryFilter) WhereOrganizationID(p entql.StringP) { - f.Where(p.Field(entitlementhistory.FieldOrganizationID)) +// WhereVersion applies the entql string predicate on the version field. +func (f *ControlHistoryFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldVersion)) } -// WhereExternalCustomerID applies the entql string predicate on the external_customer_id field. -func (f *EntitlementHistoryFilter) WhereExternalCustomerID(p entql.StringP) { - f.Where(p.Field(entitlementhistory.FieldExternalCustomerID)) +// WhereControlNumber applies the entql string predicate on the control_number field. +func (f *ControlHistoryFilter) WhereControlNumber(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldControlNumber)) } -// WhereExternalSubscriptionID applies the entql string predicate on the external_subscription_id field. -func (f *EntitlementHistoryFilter) WhereExternalSubscriptionID(p entql.StringP) { - f.Where(p.Field(entitlementhistory.FieldExternalSubscriptionID)) +// WhereFamily applies the entql string predicate on the family field. +func (f *ControlHistoryFilter) WhereFamily(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldFamily)) } -// WhereExpires applies the entql bool predicate on the expires field. -func (f *EntitlementHistoryFilter) WhereExpires(p entql.BoolP) { - f.Where(p.Field(entitlementhistory.FieldExpires)) +// WhereClass applies the entql string predicate on the class field. +func (f *ControlHistoryFilter) WhereClass(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldClass)) } -// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. -func (f *EntitlementHistoryFilter) WhereExpiresAt(p entql.TimeP) { - f.Where(p.Field(entitlementhistory.FieldExpiresAt)) +// WhereSource applies the entql string predicate on the source field. +func (f *ControlHistoryFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldSource)) } -// WhereCancelled applies the entql bool predicate on the cancelled field. -func (f *EntitlementHistoryFilter) WhereCancelled(p entql.BoolP) { - f.Where(p.Field(entitlementhistory.FieldCancelled)) +// WhereSatisfies applies the entql string predicate on the satisfies field. +func (f *ControlHistoryFilter) WhereSatisfies(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldSatisfies)) +} + +// WhereMappedFrameworks applies the entql string predicate on the mapped_frameworks field. +func (f *ControlHistoryFilter) WhereMappedFrameworks(p entql.StringP) { + f.Where(p.Field(controlhistory.FieldMappedFrameworks)) +} + +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *ControlHistoryFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(controlhistory.FieldDetails)) } // addPredicate implements the predicateAdder interface. -func (epq *EntitlementPlanQuery) addPredicate(pred func(s *sql.Selector)) { - epq.predicates = append(epq.predicates, pred) +func (coq *ControlObjectiveQuery) addPredicate(pred func(s *sql.Selector)) { + coq.predicates = append(coq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the EntitlementPlanQuery builder. -func (epq *EntitlementPlanQuery) Filter() *EntitlementPlanFilter { - return &EntitlementPlanFilter{config: epq.config, predicateAdder: epq} +// Filter returns a Filter implementation to apply filters on the ControlObjectiveQuery builder. +func (coq *ControlObjectiveQuery) Filter() *ControlObjectiveFilter { + return &ControlObjectiveFilter{config: coq.config, predicateAdder: coq} } // addPredicate implements the predicateAdder interface. -func (m *EntitlementPlanMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ControlObjectiveMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the EntitlementPlanMutation builder. -func (m *EntitlementPlanMutation) Filter() *EntitlementPlanFilter { - return &EntitlementPlanFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ControlObjectiveMutation builder. +func (m *ControlObjectiveMutation) Filter() *ControlObjectiveFilter { + return &ControlObjectiveFilter{config: m.config, predicateAdder: m} } -// EntitlementPlanFilter provides a generic filtering capability at runtime for EntitlementPlanQuery. -type EntitlementPlanFilter struct { +// ControlObjectiveFilter provides a generic filtering capability at runtime for ControlObjectiveQuery. +type ControlObjectiveFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *EntitlementPlanFilter) Where(p entql.P) { +func (f *ControlObjectiveFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[8].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[7].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *EntitlementPlanFilter) WhereID(p entql.StringP) { - f.Where(p.Field(entitlementplan.FieldID)) +func (f *ControlObjectiveFilter) WhereID(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EntitlementPlanFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(entitlementplan.FieldCreatedAt)) +func (f *ControlObjectiveFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(controlobjective.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EntitlementPlanFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(entitlementplan.FieldUpdatedAt)) +func (f *ControlObjectiveFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(controlobjective.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EntitlementPlanFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(entitlementplan.FieldCreatedBy)) +func (f *ControlObjectiveFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EntitlementPlanFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(entitlementplan.FieldUpdatedBy)) -} - -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EntitlementPlanFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(entitlementplan.FieldMappingID)) +func (f *ControlObjectiveFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EntitlementPlanFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(entitlementplan.FieldDeletedAt)) +func (f *ControlObjectiveFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(controlobjective.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EntitlementPlanFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(entitlementplan.FieldDeletedBy)) +func (f *ControlObjectiveFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldDeletedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *ControlObjectiveFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EntitlementPlanFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(entitlementplan.FieldTags)) +func (f *ControlObjectiveFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(controlobjective.FieldTags)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EntitlementPlanFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(entitlementplan.FieldOwnerID)) +// WhereName applies the entql string predicate on the name field. +func (f *ControlObjectiveFilter) WhereName(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldName)) } -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *EntitlementPlanFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(entitlementplan.FieldDisplayName)) +// WhereDescription applies the entql string predicate on the description field. +func (f *ControlObjectiveFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldDescription)) } -// WhereName applies the entql string predicate on the name field. -func (f *EntitlementPlanFilter) WhereName(p entql.StringP) { - f.Where(p.Field(entitlementplan.FieldName)) +// WhereStatus applies the entql string predicate on the status field. +func (f *ControlObjectiveFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldStatus)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *EntitlementPlanFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(entitlementplan.FieldDescription)) +// WhereControlObjectiveType applies the entql string predicate on the control_objective_type field. +func (f *ControlObjectiveFilter) WhereControlObjectiveType(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldControlObjectiveType)) } // WhereVersion applies the entql string predicate on the version field. -func (f *EntitlementPlanFilter) WhereVersion(p entql.StringP) { - f.Where(p.Field(entitlementplan.FieldVersion)) +func (f *ControlObjectiveFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldVersion)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *EntitlementPlanFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(entitlementplan.FieldMetadata)) +// WhereControlNumber applies the entql string predicate on the control_number field. +func (f *ControlObjectiveFilter) WhereControlNumber(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldControlNumber)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *EntitlementPlanFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereFamily applies the entql string predicate on the family field. +func (f *ControlObjectiveFilter) WhereFamily(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldFamily)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *EntitlementPlanFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereClass applies the entql string predicate on the class field. +func (f *ControlObjectiveFilter) WhereClass(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldClass)) +} + +// WhereSource applies the entql string predicate on the source field. +func (f *ControlObjectiveFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldSource)) +} + +// WhereMappedFrameworks applies the entql string predicate on the mapped_frameworks field. +func (f *ControlObjectiveFilter) WhereMappedFrameworks(p entql.StringP) { + f.Where(p.Field(controlobjective.FieldMappedFrameworks)) +} + +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *ControlObjectiveFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(controlobjective.FieldDetails)) +} + +// WhereHasPolicy applies a predicate to check if query has an edge policy. +func (f *ControlObjectiveFilter) WhereHasPolicy() { + f.Where(entql.HasEdge("policy")) +} + +// WhereHasPolicyWith applies a predicate to check if query has an edge policy with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasPolicyWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("policy", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntitlements applies a predicate to check if query has an edge entitlements. -func (f *EntitlementPlanFilter) WhereHasEntitlements() { - f.Where(entql.HasEdge("entitlements")) +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *ControlObjectiveFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) } -// WhereHasEntitlementsWith applies a predicate to check if query has an edge entitlements with a given conditions (other predicates). -func (f *EntitlementPlanFilter) WhereHasEntitlementsWith(preds ...predicate.Entitlement) { - f.Where(entql.HasEdgeWith("entitlements", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasBaseFeatures applies a predicate to check if query has an edge base_features. -func (f *EntitlementPlanFilter) WhereHasBaseFeatures() { - f.Where(entql.HasEdge("base_features")) +// WhereHasProcedures applies a predicate to check if query has an edge procedures. +func (f *ControlObjectiveFilter) WhereHasProcedures() { + f.Where(entql.HasEdge("procedures")) } -// WhereHasBaseFeaturesWith applies a predicate to check if query has an edge base_features with a given conditions (other predicates). -func (f *EntitlementPlanFilter) WhereHasBaseFeaturesWith(preds ...predicate.Feature) { - f.Where(entql.HasEdgeWith("base_features", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *EntitlementPlanFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereHasRisks applies a predicate to check if query has an edge risks. +func (f *ControlObjectiveFilter) WhereHasRisks() { + f.Where(entql.HasEdge("risks")) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *EntitlementPlanFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasRisksWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFeatures applies a predicate to check if query has an edge features. -func (f *EntitlementPlanFilter) WhereHasFeatures() { - f.Where(entql.HasEdge("features")) +// WhereHasSubcontrols applies a predicate to check if query has an edge subcontrols. +func (f *ControlObjectiveFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) } -// WhereHasFeaturesWith applies a predicate to check if query has an edge features with a given conditions (other predicates). -func (f *EntitlementPlanFilter) WhereHasFeaturesWith(preds ...predicate.EntitlementPlanFeature) { - f.Where(entql.HasEdgeWith("features", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasStandard applies a predicate to check if query has an edge standard. +func (f *ControlObjectiveFilter) WhereHasStandard() { + f.Where(entql.HasEdge("standard")) +} + +// WhereHasStandardWith applies a predicate to check if query has an edge standard with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasStandardWith(preds ...predicate.Standard) { + f.Where(entql.HasEdgeWith("standard", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasNarratives applies a predicate to check if query has an edge narratives. +func (f *ControlObjectiveFilter) WhereHasNarratives() { + f.Where(entql.HasEdge("narratives")) +} + +// WhereHasNarrativesWith applies a predicate to check if query has an edge narratives with a given conditions (other predicates). +func (f *ControlObjectiveFilter) WhereHasNarrativesWith(preds ...predicate.Narrative) { + f.Where(entql.HasEdgeWith("narratives", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -4789,523 +5963,523 @@ func (f *EntitlementPlanFilter) WhereHasFeaturesWith(preds ...predicate.Entitlem } // addPredicate implements the predicateAdder interface. -func (epfq *EntitlementPlanFeatureQuery) addPredicate(pred func(s *sql.Selector)) { - epfq.predicates = append(epfq.predicates, pred) +func (cohq *ControlObjectiveHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + cohq.predicates = append(cohq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the EntitlementPlanFeatureQuery builder. -func (epfq *EntitlementPlanFeatureQuery) Filter() *EntitlementPlanFeatureFilter { - return &EntitlementPlanFeatureFilter{config: epfq.config, predicateAdder: epfq} +// Filter returns a Filter implementation to apply filters on the ControlObjectiveHistoryQuery builder. +func (cohq *ControlObjectiveHistoryQuery) Filter() *ControlObjectiveHistoryFilter { + return &ControlObjectiveHistoryFilter{config: cohq.config, predicateAdder: cohq} } // addPredicate implements the predicateAdder interface. -func (m *EntitlementPlanFeatureMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ControlObjectiveHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the EntitlementPlanFeatureMutation builder. -func (m *EntitlementPlanFeatureMutation) Filter() *EntitlementPlanFeatureFilter { - return &EntitlementPlanFeatureFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ControlObjectiveHistoryMutation builder. +func (m *ControlObjectiveHistoryMutation) Filter() *ControlObjectiveHistoryFilter { + return &ControlObjectiveHistoryFilter{config: m.config, predicateAdder: m} } -// EntitlementPlanFeatureFilter provides a generic filtering capability at runtime for EntitlementPlanFeatureQuery. -type EntitlementPlanFeatureFilter struct { +// ControlObjectiveHistoryFilter provides a generic filtering capability at runtime for ControlObjectiveHistoryQuery. +type ControlObjectiveHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *EntitlementPlanFeatureFilter) Where(p entql.P) { +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[8].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *EntitlementPlanFeatureFilter) WhereID(p entql.StringP) { - f.Where(p.Field(entitlementplanfeature.FieldID)) +func (f *ControlObjectiveHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *ControlObjectiveHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(controlobjectivehistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *ControlObjectiveHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *ControlObjectiveHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EntitlementPlanFeatureFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(entitlementplanfeature.FieldCreatedAt)) +func (f *ControlObjectiveHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(controlobjectivehistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EntitlementPlanFeatureFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(entitlementplanfeature.FieldUpdatedAt)) +func (f *ControlObjectiveHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(controlobjectivehistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EntitlementPlanFeatureFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(entitlementplanfeature.FieldCreatedBy)) +func (f *ControlObjectiveHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EntitlementPlanFeatureFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(entitlementplanfeature.FieldUpdatedBy)) -} - -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EntitlementPlanFeatureFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(entitlementplanfeature.FieldMappingID)) +func (f *ControlObjectiveHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EntitlementPlanFeatureFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(entitlementplanfeature.FieldDeletedAt)) +func (f *ControlObjectiveHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(controlobjectivehistory.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EntitlementPlanFeatureFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(entitlementplanfeature.FieldDeletedBy)) +func (f *ControlObjectiveHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldDeletedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *ControlObjectiveHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EntitlementPlanFeatureFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(entitlementplanfeature.FieldTags)) +func (f *ControlObjectiveHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(controlobjectivehistory.FieldTags)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EntitlementPlanFeatureFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(entitlementplanfeature.FieldOwnerID)) +// WhereName applies the entql string predicate on the name field. +func (f *ControlObjectiveHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldName)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *EntitlementPlanFeatureFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(entitlementplanfeature.FieldMetadata)) +// WhereDescription applies the entql string predicate on the description field. +func (f *ControlObjectiveHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldDescription)) } -// WherePlanID applies the entql string predicate on the plan_id field. -func (f *EntitlementPlanFeatureFilter) WherePlanID(p entql.StringP) { - f.Where(p.Field(entitlementplanfeature.FieldPlanID)) +// WhereStatus applies the entql string predicate on the status field. +func (f *ControlObjectiveHistoryFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldStatus)) } -// WhereFeatureID applies the entql string predicate on the feature_id field. -func (f *EntitlementPlanFeatureFilter) WhereFeatureID(p entql.StringP) { - f.Where(p.Field(entitlementplanfeature.FieldFeatureID)) +// WhereControlObjectiveType applies the entql string predicate on the control_objective_type field. +func (f *ControlObjectiveHistoryFilter) WhereControlObjectiveType(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldControlObjectiveType)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *EntitlementPlanFeatureFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereVersion applies the entql string predicate on the version field. +func (f *ControlObjectiveHistoryFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldVersion)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *EntitlementPlanFeatureFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereControlNumber applies the entql string predicate on the control_number field. +func (f *ControlObjectiveHistoryFilter) WhereControlNumber(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldControlNumber)) } -// WhereHasPlan applies a predicate to check if query has an edge plan. -func (f *EntitlementPlanFeatureFilter) WhereHasPlan() { - f.Where(entql.HasEdge("plan")) +// WhereFamily applies the entql string predicate on the family field. +func (f *ControlObjectiveHistoryFilter) WhereFamily(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldFamily)) } -// WhereHasPlanWith applies a predicate to check if query has an edge plan with a given conditions (other predicates). -func (f *EntitlementPlanFeatureFilter) WhereHasPlanWith(preds ...predicate.EntitlementPlan) { - f.Where(entql.HasEdgeWith("plan", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasFeature applies a predicate to check if query has an edge feature. -func (f *EntitlementPlanFeatureFilter) WhereHasFeature() { - f.Where(entql.HasEdge("feature")) +// WhereClass applies the entql string predicate on the class field. +func (f *ControlObjectiveHistoryFilter) WhereClass(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldClass)) } -// WhereHasFeatureWith applies a predicate to check if query has an edge feature with a given conditions (other predicates). -func (f *EntitlementPlanFeatureFilter) WhereHasFeatureWith(preds ...predicate.Feature) { - f.Where(entql.HasEdgeWith("feature", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSource applies the entql string predicate on the source field. +func (f *ControlObjectiveHistoryFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldSource)) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *EntitlementPlanFeatureFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereMappedFrameworks applies the entql string predicate on the mapped_frameworks field. +func (f *ControlObjectiveHistoryFilter) WhereMappedFrameworks(p entql.StringP) { + f.Where(p.Field(controlobjectivehistory.FieldMappedFrameworks)) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *EntitlementPlanFeatureFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *ControlObjectiveHistoryFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(controlobjectivehistory.FieldDetails)) } // addPredicate implements the predicateAdder interface. -func (epfhq *EntitlementPlanFeatureHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - epfhq.predicates = append(epfhq.predicates, pred) +func (ddq *DocumentDataQuery) addPredicate(pred func(s *sql.Selector)) { + ddq.predicates = append(ddq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the EntitlementPlanFeatureHistoryQuery builder. -func (epfhq *EntitlementPlanFeatureHistoryQuery) Filter() *EntitlementPlanFeatureHistoryFilter { - return &EntitlementPlanFeatureHistoryFilter{config: epfhq.config, predicateAdder: epfhq} +// Filter returns a Filter implementation to apply filters on the DocumentDataQuery builder. +func (ddq *DocumentDataQuery) Filter() *DocumentDataFilter { + return &DocumentDataFilter{config: ddq.config, predicateAdder: ddq} } // addPredicate implements the predicateAdder interface. -func (m *EntitlementPlanFeatureHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *DocumentDataMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the EntitlementPlanFeatureHistoryMutation builder. -func (m *EntitlementPlanFeatureHistoryMutation) Filter() *EntitlementPlanFeatureHistoryFilter { - return &EntitlementPlanFeatureHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the DocumentDataMutation builder. +func (m *DocumentDataMutation) Filter() *DocumentDataFilter { + return &DocumentDataFilter{config: m.config, predicateAdder: m} } -// EntitlementPlanFeatureHistoryFilter provides a generic filtering capability at runtime for EntitlementPlanFeatureHistoryQuery. -type EntitlementPlanFeatureHistoryFilter struct { +// DocumentDataFilter provides a generic filtering capability at runtime for DocumentDataQuery. +type DocumentDataFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *EntitlementPlanFeatureHistoryFilter) Where(p entql.P) { +func (f *DocumentDataFilter) 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[9].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldID)) -} - -// WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldHistoryTime)) -} - -// WhereRef applies the entql string predicate on the ref field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldRef)) -} - -// WhereOperation applies the entql string predicate on the operation field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldOperation)) +func (f *DocumentDataFilter) WhereID(p entql.StringP) { + f.Where(p.Field(documentdata.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldCreatedAt)) +func (f *DocumentDataFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(documentdata.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldUpdatedAt)) +func (f *DocumentDataFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(documentdata.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldCreatedBy)) +func (f *DocumentDataFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(documentdata.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldUpdatedBy)) +func (f *DocumentDataFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(documentdata.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldMappingID)) +func (f *DocumentDataFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(documentdata.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *DocumentDataFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(documentdata.FieldTags)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldDeletedAt)) +func (f *DocumentDataFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(documentdata.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldDeletedBy)) +func (f *DocumentDataFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(documentdata.FieldDeletedBy)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldTags)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *DocumentDataFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(documentdata.FieldOwnerID)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldOwnerID)) +// WhereTemplateID applies the entql string predicate on the template_id field. +func (f *DocumentDataFilter) WhereTemplateID(p entql.StringP) { + f.Where(p.Field(documentdata.FieldTemplateID)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldMetadata)) +// WhereData applies the entql json.RawMessage predicate on the data field. +func (f *DocumentDataFilter) WhereData(p entql.BytesP) { + f.Where(p.Field(documentdata.FieldData)) } -// WherePlanID applies the entql string predicate on the plan_id field. -func (f *EntitlementPlanFeatureHistoryFilter) WherePlanID(p entql.StringP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldPlanID)) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *DocumentDataFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereFeatureID applies the entql string predicate on the feature_id field. -func (f *EntitlementPlanFeatureHistoryFilter) WhereFeatureID(p entql.StringP) { - f.Where(p.Field(entitlementplanfeaturehistory.FieldFeatureID)) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *DocumentDataFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasTemplate applies a predicate to check if query has an edge template. +func (f *DocumentDataFilter) WhereHasTemplate() { + f.Where(entql.HasEdge("template")) +} + +// WhereHasTemplateWith applies a predicate to check if query has an edge template with a given conditions (other predicates). +func (f *DocumentDataFilter) WhereHasTemplateWith(preds ...predicate.Template) { + f.Where(entql.HasEdgeWith("template", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasEntity applies a predicate to check if query has an edge entity. +func (f *DocumentDataFilter) WhereHasEntity() { + f.Where(entql.HasEdge("entity")) +} + +// WhereHasEntityWith applies a predicate to check if query has an edge entity with a given conditions (other predicates). +func (f *DocumentDataFilter) WhereHasEntityWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entity", 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 *DocumentDataFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) +} + +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *DocumentDataFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } // addPredicate implements the predicateAdder interface. -func (ephq *EntitlementPlanHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - ephq.predicates = append(ephq.predicates, pred) +func (ddhq *DocumentDataHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + ddhq.predicates = append(ddhq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the EntitlementPlanHistoryQuery builder. -func (ephq *EntitlementPlanHistoryQuery) Filter() *EntitlementPlanHistoryFilter { - return &EntitlementPlanHistoryFilter{config: ephq.config, predicateAdder: ephq} +// Filter returns a Filter implementation to apply filters on the DocumentDataHistoryQuery builder. +func (ddhq *DocumentDataHistoryQuery) Filter() *DocumentDataHistoryFilter { + return &DocumentDataHistoryFilter{config: ddhq.config, predicateAdder: ddhq} } // addPredicate implements the predicateAdder interface. -func (m *EntitlementPlanHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *DocumentDataHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the EntitlementPlanHistoryMutation builder. -func (m *EntitlementPlanHistoryMutation) Filter() *EntitlementPlanHistoryFilter { - return &EntitlementPlanHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the DocumentDataHistoryMutation builder. +func (m *DocumentDataHistoryMutation) Filter() *DocumentDataHistoryFilter { + return &DocumentDataHistoryFilter{config: m.config, predicateAdder: m} } -// EntitlementPlanHistoryFilter provides a generic filtering capability at runtime for EntitlementPlanHistoryQuery. -type EntitlementPlanHistoryFilter struct { +// DocumentDataHistoryFilter provides a generic filtering capability at runtime for DocumentDataHistoryQuery. +type DocumentDataHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *EntitlementPlanHistoryFilter) Where(p entql.P) { +func (f *DocumentDataHistoryFilter) 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[10].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *EntitlementPlanHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(entitlementplanhistory.FieldID)) +func (f *DocumentDataHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(documentdatahistory.FieldID)) } // WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *EntitlementPlanHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(entitlementplanhistory.FieldHistoryTime)) +func (f *DocumentDataHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(documentdatahistory.FieldHistoryTime)) } // WhereRef applies the entql string predicate on the ref field. -func (f *EntitlementPlanHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(entitlementplanhistory.FieldRef)) +func (f *DocumentDataHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(documentdatahistory.FieldRef)) } // WhereOperation applies the entql string predicate on the operation field. -func (f *EntitlementPlanHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(entitlementplanhistory.FieldOperation)) +func (f *DocumentDataHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(documentdatahistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EntitlementPlanHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(entitlementplanhistory.FieldCreatedAt)) +func (f *DocumentDataHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(documentdatahistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EntitlementPlanHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(entitlementplanhistory.FieldUpdatedAt)) +func (f *DocumentDataHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(documentdatahistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EntitlementPlanHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(entitlementplanhistory.FieldCreatedBy)) +func (f *DocumentDataHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(documentdatahistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EntitlementPlanHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(entitlementplanhistory.FieldUpdatedBy)) +func (f *DocumentDataHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(documentdatahistory.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EntitlementPlanHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(entitlementplanhistory.FieldMappingID)) +func (f *DocumentDataHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(documentdatahistory.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *DocumentDataHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(documentdatahistory.FieldTags)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EntitlementPlanHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(entitlementplanhistory.FieldDeletedAt)) +func (f *DocumentDataHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(documentdatahistory.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EntitlementPlanHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(entitlementplanhistory.FieldDeletedBy)) -} - -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EntitlementPlanHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(entitlementplanhistory.FieldTags)) +func (f *DocumentDataHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(documentdatahistory.FieldDeletedBy)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EntitlementPlanHistoryFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(entitlementplanhistory.FieldOwnerID)) -} - -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *EntitlementPlanHistoryFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(entitlementplanhistory.FieldDisplayName)) -} - -// WhereName applies the entql string predicate on the name field. -func (f *EntitlementPlanHistoryFilter) WhereName(p entql.StringP) { - f.Where(p.Field(entitlementplanhistory.FieldName)) -} - -// WhereDescription applies the entql string predicate on the description field. -func (f *EntitlementPlanHistoryFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(entitlementplanhistory.FieldDescription)) +func (f *DocumentDataHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(documentdatahistory.FieldOwnerID)) } -// WhereVersion applies the entql string predicate on the version field. -func (f *EntitlementPlanHistoryFilter) WhereVersion(p entql.StringP) { - f.Where(p.Field(entitlementplanhistory.FieldVersion)) +// WhereTemplateID applies the entql string predicate on the template_id field. +func (f *DocumentDataHistoryFilter) WhereTemplateID(p entql.StringP) { + f.Where(p.Field(documentdatahistory.FieldTemplateID)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *EntitlementPlanHistoryFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(entitlementplanhistory.FieldMetadata)) +// WhereData applies the entql json.RawMessage predicate on the data field. +func (f *DocumentDataHistoryFilter) WhereData(p entql.BytesP) { + f.Where(p.Field(documentdatahistory.FieldData)) } // addPredicate implements the predicateAdder interface. -func (eq *EntityQuery) addPredicate(pred func(s *sql.Selector)) { - eq.predicates = append(eq.predicates, pred) +func (evtq *EmailVerificationTokenQuery) addPredicate(pred func(s *sql.Selector)) { + evtq.predicates = append(evtq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the EntityQuery builder. -func (eq *EntityQuery) Filter() *EntityFilter { - return &EntityFilter{config: eq.config, predicateAdder: eq} +// Filter returns a Filter implementation to apply filters on the EmailVerificationTokenQuery builder. +func (evtq *EmailVerificationTokenQuery) Filter() *EmailVerificationTokenFilter { + return &EmailVerificationTokenFilter{config: evtq.config, predicateAdder: evtq} } // addPredicate implements the predicateAdder interface. -func (m *EntityMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *EmailVerificationTokenMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the EntityMutation builder. -func (m *EntityMutation) Filter() *EntityFilter { - return &EntityFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the EmailVerificationTokenMutation builder. +func (m *EmailVerificationTokenMutation) Filter() *EmailVerificationTokenFilter { + return &EmailVerificationTokenFilter{config: m.config, predicateAdder: m} } -// EntityFilter provides a generic filtering capability at runtime for EntityQuery. -type EntityFilter struct { +// EmailVerificationTokenFilter provides a generic filtering capability at runtime for EmailVerificationTokenQuery. +type EmailVerificationTokenFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *EntityFilter) Where(p entql.P) { +func (f *EmailVerificationTokenFilter) 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[11].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *EntityFilter) WhereID(p entql.StringP) { - f.Where(p.Field(entity.FieldID)) +func (f *EmailVerificationTokenFilter) WhereID(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EntityFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(entity.FieldCreatedAt)) +func (f *EmailVerificationTokenFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(emailverificationtoken.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EntityFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(entity.FieldUpdatedAt)) +func (f *EmailVerificationTokenFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(emailverificationtoken.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EntityFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(entity.FieldCreatedBy)) +func (f *EmailVerificationTokenFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EntityFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(entity.FieldUpdatedBy)) +func (f *EmailVerificationTokenFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EntityFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(entity.FieldMappingID)) +func (f *EmailVerificationTokenFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldMappingID)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EntityFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(entity.FieldDeletedAt)) +func (f *EmailVerificationTokenFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(emailverificationtoken.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EntityFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(entity.FieldDeletedBy)) -} - -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EntityFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(entity.FieldTags)) +func (f *EmailVerificationTokenFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldDeletedBy)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EntityFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(entity.FieldOwnerID)) -} - -// WhereName applies the entql string predicate on the name field. -func (f *EntityFilter) WhereName(p entql.StringP) { - f.Where(p.Field(entity.FieldName)) -} - -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *EntityFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(entity.FieldDisplayName)) +func (f *EmailVerificationTokenFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldOwnerID)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *EntityFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(entity.FieldDescription)) +// WhereToken applies the entql string predicate on the token field. +func (f *EmailVerificationTokenFilter) WhereToken(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldToken)) } -// WhereDomains applies the entql json.RawMessage predicate on the domains field. -func (f *EntityFilter) WhereDomains(p entql.BytesP) { - f.Where(p.Field(entity.FieldDomains)) +// WhereTTL applies the entql time.Time predicate on the ttl field. +func (f *EmailVerificationTokenFilter) WhereTTL(p entql.TimeP) { + f.Where(p.Field(emailverificationtoken.FieldTTL)) } -// WhereEntityTypeID applies the entql string predicate on the entity_type_id field. -func (f *EntityFilter) WhereEntityTypeID(p entql.StringP) { - f.Where(p.Field(entity.FieldEntityTypeID)) +// WhereEmail applies the entql string predicate on the email field. +func (f *EmailVerificationTokenFilter) WhereEmail(p entql.StringP) { + f.Where(p.Field(emailverificationtoken.FieldEmail)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *EntityFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(entity.FieldStatus)) +// WhereSecret applies the entql []byte predicate on the secret field. +func (f *EmailVerificationTokenFilter) WhereSecret(p entql.BytesP) { + f.Where(p.Field(emailverificationtoken.FieldSecret)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *EntityFilter) WhereHasOwner() { +func (f *EmailVerificationTokenFilter) 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 *EntityFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *EmailVerificationTokenFilter) WhereHasOwnerWith(preds ...predicate.User) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -5313,318 +6487,176 @@ func (f *EntityFilter) WhereHasOwnerWith(preds ...predicate.Organization) { }))) } -// WhereHasContacts applies a predicate to check if query has an edge contacts. -func (f *EntityFilter) WhereHasContacts() { - f.Where(entql.HasEdge("contacts")) -} - -// WhereHasContactsWith applies a predicate to check if query has an edge contacts with a given conditions (other predicates). -func (f *EntityFilter) WhereHasContactsWith(preds ...predicate.Contact) { - f.Where(entql.HasEdgeWith("contacts", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasDocuments applies a predicate to check if query has an edge documents. -func (f *EntityFilter) WhereHasDocuments() { - f.Where(entql.HasEdge("documents")) -} - -// WhereHasDocumentsWith applies a predicate to check if query has an edge documents with a given conditions (other predicates). -func (f *EntityFilter) WhereHasDocumentsWith(preds ...predicate.DocumentData) { - f.Where(entql.HasEdgeWith("documents", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasNotes applies a predicate to check if query has an edge notes. -func (f *EntityFilter) WhereHasNotes() { - f.Where(entql.HasEdge("notes")) -} - -// WhereHasNotesWith applies a predicate to check if query has an edge notes with a given conditions (other predicates). -func (f *EntityFilter) WhereHasNotesWith(preds ...predicate.Note) { - f.Where(entql.HasEdgeWith("notes", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *EntityFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) -} - -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *EntityFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasEntityType applies a predicate to check if query has an edge entity_type. -func (f *EntityFilter) WhereHasEntityType() { - f.Where(entql.HasEdge("entity_type")) -} - -// WhereHasEntityTypeWith applies a predicate to check if query has an edge entity_type with a given conditions (other predicates). -func (f *EntityFilter) WhereHasEntityTypeWith(preds ...predicate.EntityType) { - f.Where(entql.HasEdgeWith("entity_type", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - // addPredicate implements the predicateAdder interface. -func (ehq *EntityHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - ehq.predicates = append(ehq.predicates, pred) +func (eq *EntitlementQuery) addPredicate(pred func(s *sql.Selector)) { + eq.predicates = append(eq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the EntityHistoryQuery builder. -func (ehq *EntityHistoryQuery) Filter() *EntityHistoryFilter { - return &EntityHistoryFilter{config: ehq.config, predicateAdder: ehq} +// Filter returns a Filter implementation to apply filters on the EntitlementQuery builder. +func (eq *EntitlementQuery) Filter() *EntitlementFilter { + return &EntitlementFilter{config: eq.config, predicateAdder: eq} } // addPredicate implements the predicateAdder interface. -func (m *EntityHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *EntitlementMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the EntityHistoryMutation builder. -func (m *EntityHistoryMutation) Filter() *EntityHistoryFilter { - return &EntityHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the EntitlementMutation builder. +func (m *EntitlementMutation) Filter() *EntitlementFilter { + return &EntitlementFilter{config: m.config, predicateAdder: m} } -// EntityHistoryFilter provides a generic filtering capability at runtime for EntityHistoryQuery. -type EntityHistoryFilter struct { +// EntitlementFilter provides a generic filtering capability at runtime for EntitlementQuery. +type EntitlementFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *EntityHistoryFilter) Where(p entql.P) { +func (f *EntitlementFilter) 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[12].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *EntityHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldID)) +func (f *EntitlementFilter) WhereID(p entql.StringP) { + f.Where(p.Field(entitlement.FieldID)) } -// WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *EntityHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(entityhistory.FieldHistoryTime)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *EntitlementFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(entitlement.FieldCreatedAt)) } -// WhereRef applies the entql string predicate on the ref field. -func (f *EntityHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldRef)) -} - -// WhereOperation applies the entql string predicate on the operation field. -func (f *EntityHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldOperation)) -} - -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EntityHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(entityhistory.FieldCreatedAt)) -} - -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EntityHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(entityhistory.FieldUpdatedAt)) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *EntitlementFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(entitlement.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EntityHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldCreatedBy)) +func (f *EntitlementFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(entitlement.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EntityHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldUpdatedBy)) +func (f *EntitlementFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(entitlement.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EntityHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldMappingID)) -} - -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EntityHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(entityhistory.FieldDeletedAt)) -} - -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EntityHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldDeletedBy)) +func (f *EntitlementFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(entitlement.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EntityHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(entityhistory.FieldTags)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EntityHistoryFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldOwnerID)) +func (f *EntitlementFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(entitlement.FieldTags)) } -// WhereName applies the entql string predicate on the name field. -func (f *EntityHistoryFilter) WhereName(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldName)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *EntitlementFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(entitlement.FieldDeletedAt)) } -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *EntityHistoryFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldDisplayName)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *EntitlementFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(entitlement.FieldDeletedBy)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *EntityHistoryFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldDescription)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *EntitlementFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(entitlement.FieldOwnerID)) } -// WhereDomains applies the entql json.RawMessage predicate on the domains field. -func (f *EntityHistoryFilter) WhereDomains(p entql.BytesP) { - f.Where(p.Field(entityhistory.FieldDomains)) +// WherePlanID applies the entql string predicate on the plan_id field. +func (f *EntitlementFilter) WherePlanID(p entql.StringP) { + f.Where(p.Field(entitlement.FieldPlanID)) } -// WhereEntityTypeID applies the entql string predicate on the entity_type_id field. -func (f *EntityHistoryFilter) WhereEntityTypeID(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldEntityTypeID)) +// WhereOrganizationID applies the entql string predicate on the organization_id field. +func (f *EntitlementFilter) WhereOrganizationID(p entql.StringP) { + f.Where(p.Field(entitlement.FieldOrganizationID)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *EntityHistoryFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(entityhistory.FieldStatus)) +// WhereExternalCustomerID applies the entql string predicate on the external_customer_id field. +func (f *EntitlementFilter) WhereExternalCustomerID(p entql.StringP) { + f.Where(p.Field(entitlement.FieldExternalCustomerID)) } -// addPredicate implements the predicateAdder interface. -func (etq *EntityTypeQuery) addPredicate(pred func(s *sql.Selector)) { - etq.predicates = append(etq.predicates, pred) +// WhereExternalSubscriptionID applies the entql string predicate on the external_subscription_id field. +func (f *EntitlementFilter) WhereExternalSubscriptionID(p entql.StringP) { + f.Where(p.Field(entitlement.FieldExternalSubscriptionID)) } -// Filter returns a Filter implementation to apply filters on the EntityTypeQuery builder. -func (etq *EntityTypeQuery) Filter() *EntityTypeFilter { - return &EntityTypeFilter{config: etq.config, predicateAdder: etq} +// WhereExpires applies the entql bool predicate on the expires field. +func (f *EntitlementFilter) WhereExpires(p entql.BoolP) { + f.Where(p.Field(entitlement.FieldExpires)) } -// addPredicate implements the predicateAdder interface. -func (m *EntityTypeMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. +func (f *EntitlementFilter) WhereExpiresAt(p entql.TimeP) { + f.Where(p.Field(entitlement.FieldExpiresAt)) } -// Filter returns an entql.Where implementation to apply filters on the EntityTypeMutation builder. -func (m *EntityTypeMutation) Filter() *EntityTypeFilter { - return &EntityTypeFilter{config: m.config, predicateAdder: m} +// WhereCancelled applies the entql bool predicate on the cancelled field. +func (f *EntitlementFilter) WhereCancelled(p entql.BoolP) { + f.Where(p.Field(entitlement.FieldCancelled)) } -// EntityTypeFilter provides a generic filtering capability at runtime for EntityTypeQuery. -type EntityTypeFilter struct { - predicateAdder - config +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *EntitlementFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// 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[14].Type, p, s); err != nil { - s.AddError(err) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *EntitlementFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) -} - -// WhereID applies the entql string predicate on the id field. -func (f *EntityTypeFilter) WhereID(p entql.StringP) { - f.Where(p.Field(entitytype.FieldID)) -} - -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EntityTypeFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(entitytype.FieldCreatedAt)) -} - -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EntityTypeFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(entitytype.FieldUpdatedAt)) -} - -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EntityTypeFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(entitytype.FieldCreatedBy)) -} - -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EntityTypeFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(entitytype.FieldUpdatedBy)) -} - -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EntityTypeFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(entitytype.FieldMappingID)) -} - -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EntityTypeFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(entitytype.FieldDeletedAt)) -} - -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EntityTypeFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(entitytype.FieldDeletedBy)) -} - -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EntityTypeFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(entitytype.FieldTags)) + }))) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EntityTypeFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(entitytype.FieldOwnerID)) +// WhereHasPlan applies a predicate to check if query has an edge plan. +func (f *EntitlementFilter) WhereHasPlan() { + f.Where(entql.HasEdge("plan")) } -// WhereName applies the entql string predicate on the name field. -func (f *EntityTypeFilter) WhereName(p entql.StringP) { - f.Where(p.Field(entitytype.FieldName)) +// WhereHasPlanWith applies a predicate to check if query has an edge plan with a given conditions (other predicates). +func (f *EntitlementFilter) WhereHasPlanWith(preds ...predicate.EntitlementPlan) { + f.Where(entql.HasEdgeWith("plan", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *EntityTypeFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasOrganization applies a predicate to check if query has an edge organization. +func (f *EntitlementFilter) WhereHasOrganization() { + f.Where(entql.HasEdge("organization")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *EntityTypeFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). +func (f *EntitlementFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntities applies a predicate to check if query has an edge entities. -func (f *EntityTypeFilter) WhereHasEntities() { - f.Where(entql.HasEdge("entities")) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *EntitlementFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). -func (f *EntityTypeFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *EntitlementFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -5632,432 +6664,470 @@ func (f *EntityTypeFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { } // addPredicate implements the predicateAdder interface. -func (ethq *EntityTypeHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - ethq.predicates = append(ethq.predicates, pred) +func (ehq *EntitlementHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + ehq.predicates = append(ehq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the EntityTypeHistoryQuery builder. -func (ethq *EntityTypeHistoryQuery) Filter() *EntityTypeHistoryFilter { - return &EntityTypeHistoryFilter{config: ethq.config, predicateAdder: ethq} +// Filter returns a Filter implementation to apply filters on the EntitlementHistoryQuery builder. +func (ehq *EntitlementHistoryQuery) Filter() *EntitlementHistoryFilter { + return &EntitlementHistoryFilter{config: ehq.config, predicateAdder: ehq} } // addPredicate implements the predicateAdder interface. -func (m *EntityTypeHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *EntitlementHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the EntityTypeHistoryMutation builder. -func (m *EntityTypeHistoryMutation) Filter() *EntityTypeHistoryFilter { - return &EntityTypeHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the EntitlementHistoryMutation builder. +func (m *EntitlementHistoryMutation) Filter() *EntitlementHistoryFilter { + return &EntitlementHistoryFilter{config: m.config, predicateAdder: m} } -// EntityTypeHistoryFilter provides a generic filtering capability at runtime for EntityTypeHistoryQuery. -type EntityTypeHistoryFilter struct { +// EntitlementHistoryFilter provides a generic filtering capability at runtime for EntitlementHistoryQuery. +type EntitlementHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *EntityTypeHistoryFilter) Where(p entql.P) { +func (f *EntitlementHistoryFilter) 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[13].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *EntityTypeHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(entitytypehistory.FieldID)) +func (f *EntitlementHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(entitlementhistory.FieldID)) } // WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *EntityTypeHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(entitytypehistory.FieldHistoryTime)) +func (f *EntitlementHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(entitlementhistory.FieldHistoryTime)) } // WhereRef applies the entql string predicate on the ref field. -func (f *EntityTypeHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(entitytypehistory.FieldRef)) +func (f *EntitlementHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(entitlementhistory.FieldRef)) } // WhereOperation applies the entql string predicate on the operation field. -func (f *EntityTypeHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(entitytypehistory.FieldOperation)) +func (f *EntitlementHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(entitlementhistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EntityTypeHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(entitytypehistory.FieldCreatedAt)) +func (f *EntitlementHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(entitlementhistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EntityTypeHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(entitytypehistory.FieldUpdatedAt)) +func (f *EntitlementHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(entitlementhistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EntityTypeHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(entitytypehistory.FieldCreatedBy)) +func (f *EntitlementHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(entitlementhistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EntityTypeHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(entitytypehistory.FieldUpdatedBy)) +func (f *EntitlementHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(entitlementhistory.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EntityTypeHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(entitytypehistory.FieldMappingID)) +func (f *EntitlementHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(entitlementhistory.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *EntitlementHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(entitlementhistory.FieldTags)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *EntityTypeHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(entitytypehistory.FieldDeletedAt)) +func (f *EntitlementHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(entitlementhistory.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *EntityTypeHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(entitytypehistory.FieldDeletedBy)) +func (f *EntitlementHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(entitlementhistory.FieldDeletedBy)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EntityTypeHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(entitytypehistory.FieldTags)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *EntitlementHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(entitlementhistory.FieldOwnerID)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *EntityTypeHistoryFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(entitytypehistory.FieldOwnerID)) +// WherePlanID applies the entql string predicate on the plan_id field. +func (f *EntitlementHistoryFilter) WherePlanID(p entql.StringP) { + f.Where(p.Field(entitlementhistory.FieldPlanID)) } -// WhereName applies the entql string predicate on the name field. -func (f *EntityTypeHistoryFilter) WhereName(p entql.StringP) { - f.Where(p.Field(entitytypehistory.FieldName)) +// WhereOrganizationID applies the entql string predicate on the organization_id field. +func (f *EntitlementHistoryFilter) WhereOrganizationID(p entql.StringP) { + f.Where(p.Field(entitlementhistory.FieldOrganizationID)) +} + +// WhereExternalCustomerID applies the entql string predicate on the external_customer_id field. +func (f *EntitlementHistoryFilter) WhereExternalCustomerID(p entql.StringP) { + f.Where(p.Field(entitlementhistory.FieldExternalCustomerID)) +} + +// WhereExternalSubscriptionID applies the entql string predicate on the external_subscription_id field. +func (f *EntitlementHistoryFilter) WhereExternalSubscriptionID(p entql.StringP) { + f.Where(p.Field(entitlementhistory.FieldExternalSubscriptionID)) +} + +// WhereExpires applies the entql bool predicate on the expires field. +func (f *EntitlementHistoryFilter) WhereExpires(p entql.BoolP) { + f.Where(p.Field(entitlementhistory.FieldExpires)) +} + +// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. +func (f *EntitlementHistoryFilter) WhereExpiresAt(p entql.TimeP) { + f.Where(p.Field(entitlementhistory.FieldExpiresAt)) +} + +// WhereCancelled applies the entql bool predicate on the cancelled field. +func (f *EntitlementHistoryFilter) WhereCancelled(p entql.BoolP) { + f.Where(p.Field(entitlementhistory.FieldCancelled)) } // addPredicate implements the predicateAdder interface. -func (eq *EventQuery) addPredicate(pred func(s *sql.Selector)) { - eq.predicates = append(eq.predicates, pred) +func (epq *EntitlementPlanQuery) addPredicate(pred func(s *sql.Selector)) { + epq.predicates = append(epq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the EventQuery builder. -func (eq *EventQuery) Filter() *EventFilter { - return &EventFilter{config: eq.config, predicateAdder: eq} +// Filter returns a Filter implementation to apply filters on the EntitlementPlanQuery builder. +func (epq *EntitlementPlanQuery) Filter() *EntitlementPlanFilter { + return &EntitlementPlanFilter{config: epq.config, predicateAdder: epq} } // addPredicate implements the predicateAdder interface. -func (m *EventMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *EntitlementPlanMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the EventMutation builder. -func (m *EventMutation) Filter() *EventFilter { - return &EventFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the EntitlementPlanMutation builder. +func (m *EntitlementPlanMutation) Filter() *EntitlementPlanFilter { + return &EntitlementPlanFilter{config: m.config, predicateAdder: m} } -// EventFilter provides a generic filtering capability at runtime for EventQuery. -type EventFilter struct { +// EntitlementPlanFilter provides a generic filtering capability at runtime for EntitlementPlanQuery. +type EntitlementPlanFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *EventFilter) Where(p entql.P) { +func (f *EntitlementPlanFilter) 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[14].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *EventFilter) WhereID(p entql.StringP) { - f.Where(p.Field(event.FieldID)) +func (f *EntitlementPlanFilter) WhereID(p entql.StringP) { + f.Where(p.Field(entitlementplan.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EventFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(event.FieldCreatedAt)) +func (f *EntitlementPlanFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(entitlementplan.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EventFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(event.FieldUpdatedAt)) +func (f *EntitlementPlanFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(entitlementplan.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EventFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(event.FieldCreatedBy)) +func (f *EntitlementPlanFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(entitlementplan.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EventFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(event.FieldUpdatedBy)) +func (f *EntitlementPlanFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(entitlementplan.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EventFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(event.FieldMappingID)) +func (f *EntitlementPlanFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(entitlementplan.FieldMappingID)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EventFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(event.FieldTags)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *EntitlementPlanFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(entitlementplan.FieldDeletedAt)) } -// WhereEventID applies the entql string predicate on the event_id field. -func (f *EventFilter) WhereEventID(p entql.StringP) { - f.Where(p.Field(event.FieldEventID)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *EntitlementPlanFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(entitlementplan.FieldDeletedBy)) } -// WhereCorrelationID applies the entql string predicate on the correlation_id field. -func (f *EventFilter) WhereCorrelationID(p entql.StringP) { - f.Where(p.Field(event.FieldCorrelationID)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *EntitlementPlanFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(entitlementplan.FieldTags)) } -// WhereEventType applies the entql string predicate on the event_type field. -func (f *EventFilter) WhereEventType(p entql.StringP) { - f.Where(p.Field(event.FieldEventType)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *EntitlementPlanFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(entitlementplan.FieldOwnerID)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *EventFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(event.FieldMetadata)) +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *EntitlementPlanFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(entitlementplan.FieldDisplayName)) } -// WhereHasUser applies a predicate to check if query has an edge user. -func (f *EventFilter) WhereHasUser() { - f.Where(entql.HasEdge("user")) +// WhereName applies the entql string predicate on the name field. +func (f *EntitlementPlanFilter) WhereName(p entql.StringP) { + f.Where(p.Field(entitlementplan.FieldName)) } -// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). -func (f *EventFilter) WhereHasUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDescription applies the entql string predicate on the description field. +func (f *EntitlementPlanFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(entitlementplan.FieldDescription)) } -// WhereHasGroup applies a predicate to check if query has an edge group. -func (f *EventFilter) WhereHasGroup() { - f.Where(entql.HasEdge("group")) +// WhereVersion applies the entql string predicate on the version field. +func (f *EntitlementPlanFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(entitlementplan.FieldVersion)) } -// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). -func (f *EventFilter) WhereHasGroupWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *EntitlementPlanFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(entitlementplan.FieldMetadata)) } -// WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *EventFilter) WhereHasIntegration() { - f.Where(entql.HasEdge("integration")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *EntitlementPlanFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *EventFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *EntitlementPlanFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrganization applies a predicate to check if query has an edge organization. -func (f *EventFilter) WhereHasOrganization() { - f.Where(entql.HasEdge("organization")) +// WhereHasEntitlements applies a predicate to check if query has an edge entitlements. +func (f *EntitlementPlanFilter) WhereHasEntitlements() { + f.Where(entql.HasEdge("entitlements")) } -// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). -func (f *EventFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntitlementsWith applies a predicate to check if query has an edge entitlements with a given conditions (other predicates). +func (f *EntitlementPlanFilter) WhereHasEntitlementsWith(preds ...predicate.Entitlement) { + f.Where(entql.HasEdgeWith("entitlements", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasInvite applies a predicate to check if query has an edge invite. -func (f *EventFilter) WhereHasInvite() { - f.Where(entql.HasEdge("invite")) +// WhereHasBaseFeatures applies a predicate to check if query has an edge base_features. +func (f *EntitlementPlanFilter) WhereHasBaseFeatures() { + f.Where(entql.HasEdge("base_features")) } -// WhereHasInviteWith applies a predicate to check if query has an edge invite with a given conditions (other predicates). -func (f *EventFilter) WhereHasInviteWith(preds ...predicate.Invite) { - f.Where(entql.HasEdgeWith("invite", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasBaseFeaturesWith applies a predicate to check if query has an edge base_features with a given conditions (other predicates). +func (f *EntitlementPlanFilter) WhereHasBaseFeaturesWith(preds ...predicate.Feature) { + f.Where(entql.HasEdgeWith("base_features", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFeature applies a predicate to check if query has an edge feature. -func (f *EventFilter) WhereHasFeature() { - f.Where(entql.HasEdge("feature")) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *EntitlementPlanFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereHasFeatureWith applies a predicate to check if query has an edge feature with a given conditions (other predicates). -func (f *EventFilter) WhereHasFeatureWith(preds ...predicate.Feature) { - f.Where(entql.HasEdgeWith("feature", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *EntitlementPlanFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntitlementplan applies a predicate to check if query has an edge entitlementplan. -func (f *EventFilter) WhereHasEntitlementplan() { - f.Where(entql.HasEdge("entitlementplan")) +// WhereHasFeatures applies a predicate to check if query has an edge features. +func (f *EntitlementPlanFilter) WhereHasFeatures() { + f.Where(entql.HasEdge("features")) } -// WhereHasEntitlementplanWith applies a predicate to check if query has an edge entitlementplan with a given conditions (other predicates). -func (f *EventFilter) WhereHasEntitlementplanWith(preds ...predicate.EntitlementPlan) { - f.Where(entql.HasEdgeWith("entitlementplan", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFeaturesWith applies a predicate to check if query has an edge features with a given conditions (other predicates). +func (f *EntitlementPlanFilter) WhereHasFeaturesWith(preds ...predicate.EntitlementPlanFeature) { + f.Where(entql.HasEdgeWith("features", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntitlementplanfeature applies a predicate to check if query has an edge entitlementplanfeature. -func (f *EventFilter) WhereHasEntitlementplanfeature() { - f.Where(entql.HasEdge("entitlementplanfeature")) +// addPredicate implements the predicateAdder interface. +func (epfq *EntitlementPlanFeatureQuery) addPredicate(pred func(s *sql.Selector)) { + epfq.predicates = append(epfq.predicates, pred) } -// WhereHasEntitlementplanfeatureWith applies a predicate to check if query has an edge entitlementplanfeature with a given conditions (other predicates). -func (f *EventFilter) WhereHasEntitlementplanfeatureWith(preds ...predicate.EntitlementPlanFeature) { - f.Where(entql.HasEdgeWith("entitlementplanfeature", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns a Filter implementation to apply filters on the EntitlementPlanFeatureQuery builder. +func (epfq *EntitlementPlanFeatureQuery) Filter() *EntitlementPlanFeatureFilter { + return &EntitlementPlanFeatureFilter{config: epfq.config, predicateAdder: epfq} } -// WhereHasPersonalAccessToken applies a predicate to check if query has an edge personal_access_token. -func (f *EventFilter) WhereHasPersonalAccessToken() { - f.Where(entql.HasEdge("personal_access_token")) +// addPredicate implements the predicateAdder interface. +func (m *EntitlementPlanFeatureMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereHasPersonalAccessTokenWith applies a predicate to check if query has an edge personal_access_token with a given conditions (other predicates). -func (f *EventFilter) WhereHasPersonalAccessTokenWith(preds ...predicate.PersonalAccessToken) { - f.Where(entql.HasEdgeWith("personal_access_token", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns an entql.Where implementation to apply filters on the EntitlementPlanFeatureMutation builder. +func (m *EntitlementPlanFeatureMutation) Filter() *EntitlementPlanFeatureFilter { + return &EntitlementPlanFeatureFilter{config: m.config, predicateAdder: m} } -// WhereHasOauth2token applies a predicate to check if query has an edge oauth2token. -func (f *EventFilter) WhereHasOauth2token() { - f.Where(entql.HasEdge("oauth2token")) +// EntitlementPlanFeatureFilter provides a generic filtering capability at runtime for EntitlementPlanFeatureQuery. +type EntitlementPlanFeatureFilter struct { + predicateAdder + config } -// WhereHasOauth2tokenWith applies a predicate to check if query has an edge oauth2token with a given conditions (other predicates). -func (f *EventFilter) WhereHasOauth2tokenWith(preds ...predicate.OhAuthTooToken) { - f.Where(entql.HasEdgeWith("oauth2token", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// Where applies the entql predicate on the query filter. +func (f *EntitlementPlanFeatureFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[15].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasHush applies a predicate to check if query has an edge hush. -func (f *EventFilter) WhereHasHush() { - f.Where(entql.HasEdge("hush")) +// WhereID applies the entql string predicate on the id field. +func (f *EntitlementPlanFeatureFilter) WhereID(p entql.StringP) { + f.Where(p.Field(entitlementplanfeature.FieldID)) } -// WhereHasHushWith applies a predicate to check if query has an edge hush with a given conditions (other predicates). -func (f *EventFilter) WhereHasHushWith(preds ...predicate.Hush) { - f.Where(entql.HasEdgeWith("hush", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *EntitlementPlanFeatureFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(entitlementplanfeature.FieldCreatedAt)) } -// WhereHasOrgmembership applies a predicate to check if query has an edge orgmembership. -func (f *EventFilter) WhereHasOrgmembership() { - f.Where(entql.HasEdge("orgmembership")) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *EntitlementPlanFeatureFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(entitlementplanfeature.FieldUpdatedAt)) } -// WhereHasOrgmembershipWith applies a predicate to check if query has an edge orgmembership with a given conditions (other predicates). -func (f *EventFilter) WhereHasOrgmembershipWith(preds ...predicate.OrgMembership) { - f.Where(entql.HasEdgeWith("orgmembership", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *EntitlementPlanFeatureFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(entitlementplanfeature.FieldCreatedBy)) } -// WhereHasGroupmembership applies a predicate to check if query has an edge groupmembership. -func (f *EventFilter) WhereHasGroupmembership() { - f.Where(entql.HasEdge("groupmembership")) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *EntitlementPlanFeatureFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(entitlementplanfeature.FieldUpdatedBy)) } -// WhereHasGroupmembershipWith applies a predicate to check if query has an edge groupmembership with a given conditions (other predicates). -func (f *EventFilter) WhereHasGroupmembershipWith(preds ...predicate.GroupMembership) { - f.Where(entql.HasEdgeWith("groupmembership", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *EntitlementPlanFeatureFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(entitlementplanfeature.FieldMappingID)) } -// WhereHasEntitlement applies a predicate to check if query has an edge entitlement. -func (f *EventFilter) WhereHasEntitlement() { - f.Where(entql.HasEdge("entitlement")) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *EntitlementPlanFeatureFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(entitlementplanfeature.FieldDeletedAt)) } -// WhereHasEntitlementWith applies a predicate to check if query has an edge entitlement with a given conditions (other predicates). -func (f *EventFilter) WhereHasEntitlementWith(preds ...predicate.Entitlement) { - f.Where(entql.HasEdgeWith("entitlement", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *EntitlementPlanFeatureFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(entitlementplanfeature.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *EntitlementPlanFeatureFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(entitlementplanfeature.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *EntitlementPlanFeatureFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(entitlementplanfeature.FieldOwnerID)) +} + +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *EntitlementPlanFeatureFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(entitlementplanfeature.FieldMetadata)) +} + +// WherePlanID applies the entql string predicate on the plan_id field. +func (f *EntitlementPlanFeatureFilter) WherePlanID(p entql.StringP) { + f.Where(p.Field(entitlementplanfeature.FieldPlanID)) +} + +// WhereFeatureID applies the entql string predicate on the feature_id field. +func (f *EntitlementPlanFeatureFilter) WhereFeatureID(p entql.StringP) { + f.Where(p.Field(entitlementplanfeature.FieldFeatureID)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *EntitlementPlanFeatureFilter) 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 *EntitlementPlanFeatureFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasWebhook applies a predicate to check if query has an edge webhook. -func (f *EventFilter) WhereHasWebhook() { - f.Where(entql.HasEdge("webhook")) +// WhereHasPlan applies a predicate to check if query has an edge plan. +func (f *EntitlementPlanFeatureFilter) WhereHasPlan() { + f.Where(entql.HasEdge("plan")) } -// WhereHasWebhookWith applies a predicate to check if query has an edge webhook with a given conditions (other predicates). -func (f *EventFilter) WhereHasWebhookWith(preds ...predicate.Webhook) { - f.Where(entql.HasEdgeWith("webhook", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasPlanWith applies a predicate to check if query has an edge plan with a given conditions (other predicates). +func (f *EntitlementPlanFeatureFilter) WhereHasPlanWith(preds ...predicate.EntitlementPlan) { + f.Where(entql.HasEdgeWith("plan", 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 *EventFilter) WhereHasSubscriber() { - f.Where(entql.HasEdge("subscriber")) +// WhereHasFeature applies a predicate to check if query has an edge feature. +func (f *EntitlementPlanFeatureFilter) WhereHasFeature() { + f.Where(entql.HasEdge("feature")) } -// WhereHasSubscriberWith applies a predicate to check if query has an edge subscriber with a given conditions (other predicates). -func (f *EventFilter) WhereHasSubscriberWith(preds ...predicate.Subscriber) { - f.Where(entql.HasEdgeWith("subscriber", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFeatureWith applies a predicate to check if query has an edge feature with a given conditions (other predicates). +func (f *EntitlementPlanFeatureFilter) WhereHasFeatureWith(preds ...predicate.Feature) { + f.Where(entql.HasEdgeWith("feature", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFile applies a predicate to check if query has an edge file. -func (f *EventFilter) WhereHasFile() { - f.Where(entql.HasEdge("file")) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *EntitlementPlanFeatureFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereHasFileWith applies a predicate to check if query has an edge file with a given conditions (other predicates). -func (f *EventFilter) WhereHasFileWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("file", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *EntitlementPlanFeatureFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -6065,685 +7135,686 @@ func (f *EventFilter) WhereHasFileWith(preds ...predicate.File) { } // addPredicate implements the predicateAdder interface. -func (ehq *EventHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - ehq.predicates = append(ehq.predicates, pred) +func (epfhq *EntitlementPlanFeatureHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + epfhq.predicates = append(epfhq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the EventHistoryQuery builder. -func (ehq *EventHistoryQuery) Filter() *EventHistoryFilter { - return &EventHistoryFilter{config: ehq.config, predicateAdder: ehq} +// Filter returns a Filter implementation to apply filters on the EntitlementPlanFeatureHistoryQuery builder. +func (epfhq *EntitlementPlanFeatureHistoryQuery) Filter() *EntitlementPlanFeatureHistoryFilter { + return &EntitlementPlanFeatureHistoryFilter{config: epfhq.config, predicateAdder: epfhq} } // addPredicate implements the predicateAdder interface. -func (m *EventHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *EntitlementPlanFeatureHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the EventHistoryMutation builder. -func (m *EventHistoryMutation) Filter() *EventHistoryFilter { - return &EventHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the EntitlementPlanFeatureHistoryMutation builder. +func (m *EntitlementPlanFeatureHistoryMutation) Filter() *EntitlementPlanFeatureHistoryFilter { + return &EntitlementPlanFeatureHistoryFilter{config: m.config, predicateAdder: m} } -// EventHistoryFilter provides a generic filtering capability at runtime for EventHistoryQuery. -type EventHistoryFilter struct { +// EntitlementPlanFeatureHistoryFilter provides a generic filtering capability at runtime for EntitlementPlanFeatureHistoryQuery. +type EntitlementPlanFeatureHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *EventHistoryFilter) Where(p entql.P) { +func (f *EntitlementPlanFeatureHistoryFilter) 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[16].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *EventHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(eventhistory.FieldID)) +func (f *EntitlementPlanFeatureHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldID)) } // WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *EventHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(eventhistory.FieldHistoryTime)) +func (f *EntitlementPlanFeatureHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldHistoryTime)) } // WhereRef applies the entql string predicate on the ref field. -func (f *EventHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(eventhistory.FieldRef)) +func (f *EntitlementPlanFeatureHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldRef)) } // WhereOperation applies the entql string predicate on the operation field. -func (f *EventHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(eventhistory.FieldOperation)) +func (f *EntitlementPlanFeatureHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *EventHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(eventhistory.FieldCreatedAt)) +func (f *EntitlementPlanFeatureHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *EventHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(eventhistory.FieldUpdatedAt)) +func (f *EntitlementPlanFeatureHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *EventHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(eventhistory.FieldCreatedBy)) +func (f *EntitlementPlanFeatureHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *EventHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(eventhistory.FieldUpdatedBy)) +func (f *EntitlementPlanFeatureHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *EventHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(eventhistory.FieldMappingID)) +func (f *EntitlementPlanFeatureHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldMappingID)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *EventHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(eventhistory.FieldTags)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *EntitlementPlanFeatureHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldDeletedAt)) } -// WhereEventID applies the entql string predicate on the event_id field. -func (f *EventHistoryFilter) WhereEventID(p entql.StringP) { - f.Where(p.Field(eventhistory.FieldEventID)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *EntitlementPlanFeatureHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldDeletedBy)) } -// WhereCorrelationID applies the entql string predicate on the correlation_id field. -func (f *EventHistoryFilter) WhereCorrelationID(p entql.StringP) { - f.Where(p.Field(eventhistory.FieldCorrelationID)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *EntitlementPlanFeatureHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldTags)) } -// WhereEventType applies the entql string predicate on the event_type field. -func (f *EventHistoryFilter) WhereEventType(p entql.StringP) { - f.Where(p.Field(eventhistory.FieldEventType)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *EntitlementPlanFeatureHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldOwnerID)) } // WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *EventHistoryFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(eventhistory.FieldMetadata)) +func (f *EntitlementPlanFeatureHistoryFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldMetadata)) +} + +// WherePlanID applies the entql string predicate on the plan_id field. +func (f *EntitlementPlanFeatureHistoryFilter) WherePlanID(p entql.StringP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldPlanID)) +} + +// WhereFeatureID applies the entql string predicate on the feature_id field. +func (f *EntitlementPlanFeatureHistoryFilter) WhereFeatureID(p entql.StringP) { + f.Where(p.Field(entitlementplanfeaturehistory.FieldFeatureID)) } // addPredicate implements the predicateAdder interface. -func (fq *FeatureQuery) addPredicate(pred func(s *sql.Selector)) { - fq.predicates = append(fq.predicates, pred) +func (ephq *EntitlementPlanHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + ephq.predicates = append(ephq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the FeatureQuery builder. -func (fq *FeatureQuery) Filter() *FeatureFilter { - return &FeatureFilter{config: fq.config, predicateAdder: fq} +// Filter returns a Filter implementation to apply filters on the EntitlementPlanHistoryQuery builder. +func (ephq *EntitlementPlanHistoryQuery) Filter() *EntitlementPlanHistoryFilter { + return &EntitlementPlanHistoryFilter{config: ephq.config, predicateAdder: ephq} } // addPredicate implements the predicateAdder interface. -func (m *FeatureMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *EntitlementPlanHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the FeatureMutation builder. -func (m *FeatureMutation) Filter() *FeatureFilter { - return &FeatureFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the EntitlementPlanHistoryMutation builder. +func (m *EntitlementPlanHistoryMutation) Filter() *EntitlementPlanHistoryFilter { + return &EntitlementPlanHistoryFilter{config: m.config, predicateAdder: m} } -// FeatureFilter provides a generic filtering capability at runtime for FeatureQuery. -type FeatureFilter struct { +// EntitlementPlanHistoryFilter provides a generic filtering capability at runtime for EntitlementPlanHistoryQuery. +type EntitlementPlanHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *FeatureFilter) Where(p entql.P) { +func (f *EntitlementPlanHistoryFilter) 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[17].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *FeatureFilter) WhereID(p entql.StringP) { - f.Where(p.Field(feature.FieldID)) +func (f *EntitlementPlanHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(entitlementplanhistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *EntitlementPlanHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(entitlementplanhistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *EntitlementPlanHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(entitlementplanhistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *EntitlementPlanHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(entitlementplanhistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *FeatureFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(feature.FieldCreatedAt)) +func (f *EntitlementPlanHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(entitlementplanhistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *FeatureFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(feature.FieldUpdatedAt)) +func (f *EntitlementPlanHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(entitlementplanhistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *FeatureFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(feature.FieldCreatedBy)) +func (f *EntitlementPlanHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(entitlementplanhistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *FeatureFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(feature.FieldUpdatedBy)) +func (f *EntitlementPlanHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(entitlementplanhistory.FieldUpdatedBy)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *FeatureFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(feature.FieldDeletedAt)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *EntitlementPlanHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(entitlementplanhistory.FieldMappingID)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *FeatureFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(feature.FieldDeletedBy)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *EntitlementPlanHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(entitlementplanhistory.FieldDeletedAt)) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *FeatureFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(feature.FieldMappingID)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *EntitlementPlanHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(entitlementplanhistory.FieldDeletedBy)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *FeatureFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(feature.FieldTags)) +func (f *EntitlementPlanHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(entitlementplanhistory.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *FeatureFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(feature.FieldOwnerID)) -} - -// WhereName applies the entql string predicate on the name field. -func (f *FeatureFilter) WhereName(p entql.StringP) { - f.Where(p.Field(feature.FieldName)) +func (f *EntitlementPlanHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(entitlementplanhistory.FieldOwnerID)) } // WhereDisplayName applies the entql string predicate on the display_name field. -func (f *FeatureFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(feature.FieldDisplayName)) +func (f *EntitlementPlanHistoryFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(entitlementplanhistory.FieldDisplayName)) } -// WhereEnabled applies the entql bool predicate on the enabled field. -func (f *FeatureFilter) WhereEnabled(p entql.BoolP) { - f.Where(p.Field(feature.FieldEnabled)) +// WhereName applies the entql string predicate on the name field. +func (f *EntitlementPlanHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(entitlementplanhistory.FieldName)) } // WhereDescription applies the entql string predicate on the description field. -func (f *FeatureFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(feature.FieldDescription)) -} - -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *FeatureFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(feature.FieldMetadata)) -} - -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *FeatureFilter) 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 *FeatureFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasPlans applies a predicate to check if query has an edge plans. -func (f *FeatureFilter) WhereHasPlans() { - f.Where(entql.HasEdge("plans")) -} - -// WhereHasPlansWith applies a predicate to check if query has an edge plans with a given conditions (other predicates). -func (f *FeatureFilter) WhereHasPlansWith(preds ...predicate.EntitlementPlan) { - f.Where(entql.HasEdgeWith("plans", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) -} - -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *FeatureFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) -} - -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *FeatureFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +func (f *EntitlementPlanHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(entitlementplanhistory.FieldDescription)) } -// WhereHasFeatures applies a predicate to check if query has an edge features. -func (f *FeatureFilter) WhereHasFeatures() { - f.Where(entql.HasEdge("features")) +// WhereVersion applies the entql string predicate on the version field. +func (f *EntitlementPlanHistoryFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(entitlementplanhistory.FieldVersion)) } -// WhereHasFeaturesWith applies a predicate to check if query has an edge features with a given conditions (other predicates). -func (f *FeatureFilter) WhereHasFeaturesWith(preds ...predicate.EntitlementPlanFeature) { - f.Where(entql.HasEdgeWith("features", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *EntitlementPlanHistoryFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(entitlementplanhistory.FieldMetadata)) } // addPredicate implements the predicateAdder interface. -func (fhq *FeatureHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - fhq.predicates = append(fhq.predicates, pred) +func (eq *EntityQuery) addPredicate(pred func(s *sql.Selector)) { + eq.predicates = append(eq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the FeatureHistoryQuery builder. -func (fhq *FeatureHistoryQuery) Filter() *FeatureHistoryFilter { - return &FeatureHistoryFilter{config: fhq.config, predicateAdder: fhq} +// Filter returns a Filter implementation to apply filters on the EntityQuery builder. +func (eq *EntityQuery) Filter() *EntityFilter { + return &EntityFilter{config: eq.config, predicateAdder: eq} } // addPredicate implements the predicateAdder interface. -func (m *FeatureHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *EntityMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the FeatureHistoryMutation builder. -func (m *FeatureHistoryMutation) Filter() *FeatureHistoryFilter { - return &FeatureHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the EntityMutation builder. +func (m *EntityMutation) Filter() *EntityFilter { + return &EntityFilter{config: m.config, predicateAdder: m} } -// FeatureHistoryFilter provides a generic filtering capability at runtime for FeatureHistoryQuery. -type FeatureHistoryFilter struct { +// EntityFilter provides a generic filtering capability at runtime for EntityQuery. +type EntityFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *FeatureHistoryFilter) Where(p entql.P) { +func (f *EntityFilter) 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[18].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *FeatureHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(featurehistory.FieldID)) -} - -// WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *FeatureHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(featurehistory.FieldHistoryTime)) -} - -// WhereRef applies the entql string predicate on the ref field. -func (f *FeatureHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(featurehistory.FieldRef)) -} - -// WhereOperation applies the entql string predicate on the operation field. -func (f *FeatureHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(featurehistory.FieldOperation)) +func (f *EntityFilter) WhereID(p entql.StringP) { + f.Where(p.Field(entity.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *FeatureHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(featurehistory.FieldCreatedAt)) +func (f *EntityFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(entity.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *FeatureHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(featurehistory.FieldUpdatedAt)) +func (f *EntityFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(entity.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *FeatureHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(featurehistory.FieldCreatedBy)) +func (f *EntityFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(entity.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *FeatureHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(featurehistory.FieldUpdatedBy)) +func (f *EntityFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(entity.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *EntityFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(entity.FieldMappingID)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *FeatureHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(featurehistory.FieldDeletedAt)) +func (f *EntityFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(entity.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *FeatureHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(featurehistory.FieldDeletedBy)) -} - -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *FeatureHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(featurehistory.FieldMappingID)) +func (f *EntityFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(entity.FieldDeletedBy)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *FeatureHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(featurehistory.FieldTags)) +func (f *EntityFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(entity.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *FeatureHistoryFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(featurehistory.FieldOwnerID)) +func (f *EntityFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(entity.FieldOwnerID)) } // WhereName applies the entql string predicate on the name field. -func (f *FeatureHistoryFilter) WhereName(p entql.StringP) { - f.Where(p.Field(featurehistory.FieldName)) +func (f *EntityFilter) WhereName(p entql.StringP) { + f.Where(p.Field(entity.FieldName)) } // WhereDisplayName applies the entql string predicate on the display_name field. -func (f *FeatureHistoryFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(featurehistory.FieldDisplayName)) +func (f *EntityFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(entity.FieldDisplayName)) } -// WhereEnabled applies the entql bool predicate on the enabled field. -func (f *FeatureHistoryFilter) WhereEnabled(p entql.BoolP) { - f.Where(p.Field(featurehistory.FieldEnabled)) +// WhereDescription applies the entql string predicate on the description field. +func (f *EntityFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(entity.FieldDescription)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *FeatureHistoryFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(featurehistory.FieldDescription)) +// WhereDomains applies the entql json.RawMessage predicate on the domains field. +func (f *EntityFilter) WhereDomains(p entql.BytesP) { + f.Where(p.Field(entity.FieldDomains)) } -// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. -func (f *FeatureHistoryFilter) WhereMetadata(p entql.BytesP) { - f.Where(p.Field(featurehistory.FieldMetadata)) +// WhereEntityTypeID applies the entql string predicate on the entity_type_id field. +func (f *EntityFilter) WhereEntityTypeID(p entql.StringP) { + f.Where(p.Field(entity.FieldEntityTypeID)) } -// addPredicate implements the predicateAdder interface. -func (fq *FileQuery) addPredicate(pred func(s *sql.Selector)) { - fq.predicates = append(fq.predicates, pred) +// WhereStatus applies the entql string predicate on the status field. +func (f *EntityFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(entity.FieldStatus)) } -// Filter returns a Filter implementation to apply filters on the FileQuery builder. -func (fq *FileQuery) Filter() *FileFilter { - return &FileFilter{config: fq.config, predicateAdder: fq} +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *EntityFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// addPredicate implements the predicateAdder interface. -func (m *FileMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *EntityFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// Filter returns an entql.Where implementation to apply filters on the FileMutation builder. -func (m *FileMutation) Filter() *FileFilter { - return &FileFilter{config: m.config, predicateAdder: m} +// WhereHasContacts applies a predicate to check if query has an edge contacts. +func (f *EntityFilter) WhereHasContacts() { + f.Where(entql.HasEdge("contacts")) } -// FileFilter provides a generic filtering capability at runtime for FileQuery. -type FileFilter struct { - predicateAdder - config +// WhereHasContactsWith applies a predicate to check if query has an edge contacts with a given conditions (other predicates). +func (f *EntityFilter) WhereHasContactsWith(preds ...predicate.Contact) { + f.Where(entql.HasEdgeWith("contacts", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// 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[20].Type, p, s); err != nil { - s.AddError(err) +// WhereHasDocuments applies a predicate to check if query has an edge documents. +func (f *EntityFilter) WhereHasDocuments() { + f.Where(entql.HasEdge("documents")) +} + +// WhereHasDocumentsWith applies a predicate to check if query has an edge documents with a given conditions (other predicates). +func (f *EntityFilter) WhereHasDocumentsWith(preds ...predicate.DocumentData) { + f.Where(entql.HasEdgeWith("documents", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) + }))) } -// WhereID applies the entql string predicate on the id field. -func (f *FileFilter) WhereID(p entql.StringP) { - f.Where(p.Field(file.FieldID)) +// WhereHasNotes applies a predicate to check if query has an edge notes. +func (f *EntityFilter) WhereHasNotes() { + f.Where(entql.HasEdge("notes")) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *FileFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(file.FieldCreatedAt)) +// WhereHasNotesWith applies a predicate to check if query has an edge notes with a given conditions (other predicates). +func (f *EntityFilter) WhereHasNotesWith(preds ...predicate.Note) { + f.Where(entql.HasEdgeWith("notes", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *FileFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(file.FieldUpdatedAt)) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *EntityFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *FileFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(file.FieldCreatedBy)) +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *EntityFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *FileFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(file.FieldUpdatedBy)) +// WhereHasEntityType applies a predicate to check if query has an edge entity_type. +func (f *EntityFilter) WhereHasEntityType() { + f.Where(entql.HasEdge("entity_type")) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *FileFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(file.FieldDeletedAt)) +// WhereHasEntityTypeWith applies a predicate to check if query has an edge entity_type with a given conditions (other predicates). +func (f *EntityFilter) WhereHasEntityTypeWith(preds ...predicate.EntityType) { + f.Where(entql.HasEdgeWith("entity_type", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *FileFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(file.FieldDeletedBy)) +// addPredicate implements the predicateAdder interface. +func (ehq *EntityHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + ehq.predicates = append(ehq.predicates, pred) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *FileFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(file.FieldMappingID)) +// Filter returns a Filter implementation to apply filters on the EntityHistoryQuery builder. +func (ehq *EntityHistoryQuery) Filter() *EntityHistoryFilter { + return &EntityHistoryFilter{config: ehq.config, predicateAdder: ehq} } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *FileFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(file.FieldTags)) +// addPredicate implements the predicateAdder interface. +func (m *EntityHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereProvidedFileName applies the entql string predicate on the provided_file_name field. -func (f *FileFilter) WhereProvidedFileName(p entql.StringP) { - f.Where(p.Field(file.FieldProvidedFileName)) +// Filter returns an entql.Where implementation to apply filters on the EntityHistoryMutation builder. +func (m *EntityHistoryMutation) Filter() *EntityHistoryFilter { + return &EntityHistoryFilter{config: m.config, predicateAdder: m} } -// WhereProvidedFileExtension applies the entql string predicate on the provided_file_extension field. -func (f *FileFilter) WhereProvidedFileExtension(p entql.StringP) { - f.Where(p.Field(file.FieldProvidedFileExtension)) +// EntityHistoryFilter provides a generic filtering capability at runtime for EntityHistoryQuery. +type EntityHistoryFilter struct { + predicateAdder + config } -// WhereProvidedFileSize applies the entql int64 predicate on the provided_file_size field. -func (f *FileFilter) WhereProvidedFileSize(p entql.Int64P) { - f.Where(p.Field(file.FieldProvidedFileSize)) +// Where applies the entql predicate on the query filter. +func (f *EntityHistoryFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[19].Type, p, s); err != nil { + s.AddError(err) + } + }) } -// WherePersistedFileSize applies the entql int64 predicate on the persisted_file_size field. -func (f *FileFilter) WherePersistedFileSize(p entql.Int64P) { - f.Where(p.Field(file.FieldPersistedFileSize)) +// WhereID applies the entql string predicate on the id field. +func (f *EntityHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldID)) } -// WhereDetectedMimeType applies the entql string predicate on the detected_mime_type field. -func (f *FileFilter) WhereDetectedMimeType(p entql.StringP) { - f.Where(p.Field(file.FieldDetectedMimeType)) +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *EntityHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(entityhistory.FieldHistoryTime)) } -// WhereMd5Hash applies the entql string predicate on the md5_hash field. -func (f *FileFilter) WhereMd5Hash(p entql.StringP) { - f.Where(p.Field(file.FieldMd5Hash)) +// WhereRef applies the entql string predicate on the ref field. +func (f *EntityHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldRef)) } -// WhereDetectedContentType applies the entql string predicate on the detected_content_type field. -func (f *FileFilter) WhereDetectedContentType(p entql.StringP) { - f.Where(p.Field(file.FieldDetectedContentType)) +// WhereOperation applies the entql string predicate on the operation field. +func (f *EntityHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldOperation)) } -// WhereStoreKey applies the entql string predicate on the store_key field. -func (f *FileFilter) WhereStoreKey(p entql.StringP) { - f.Where(p.Field(file.FieldStoreKey)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *EntityHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(entityhistory.FieldCreatedAt)) } -// WhereCategoryType applies the entql string predicate on the category_type field. -func (f *FileFilter) WhereCategoryType(p entql.StringP) { - f.Where(p.Field(file.FieldCategoryType)) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *EntityHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(entityhistory.FieldUpdatedAt)) } -// WhereURI applies the entql string predicate on the uri field. -func (f *FileFilter) WhereURI(p entql.StringP) { - f.Where(p.Field(file.FieldURI)) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *EntityHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldCreatedBy)) } -// WhereStorageScheme applies the entql string predicate on the storage_scheme field. -func (f *FileFilter) WhereStorageScheme(p entql.StringP) { - f.Where(p.Field(file.FieldStorageScheme)) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *EntityHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldUpdatedBy)) } -// WhereStorageVolume applies the entql string predicate on the storage_volume field. -func (f *FileFilter) WhereStorageVolume(p entql.StringP) { - f.Where(p.Field(file.FieldStorageVolume)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *EntityHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldMappingID)) } -// WhereStoragePath applies the entql string predicate on the storage_path field. -func (f *FileFilter) WhereStoragePath(p entql.StringP) { - f.Where(p.Field(file.FieldStoragePath)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *EntityHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(entityhistory.FieldDeletedAt)) } -// WhereFileContents applies the entql []byte predicate on the file_contents field. -func (f *FileFilter) WhereFileContents(p entql.BytesP) { - f.Where(p.Field(file.FieldFileContents)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *EntityHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldDeletedBy)) } -// WhereHasUser applies a predicate to check if query has an edge user. -func (f *FileFilter) WhereHasUser() { - f.Where(entql.HasEdge("user")) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *EntityHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(entityhistory.FieldTags)) } -// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). -func (f *FileFilter) WhereHasUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *EntityHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldOwnerID)) } -// WhereHasOrganization applies a predicate to check if query has an edge organization. -func (f *FileFilter) WhereHasOrganization() { - f.Where(entql.HasEdge("organization")) +// WhereName applies the entql string predicate on the name field. +func (f *EntityHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldName)) } -// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). -func (f *FileFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *EntityHistoryFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldDisplayName)) } -// WhereHasGroup applies a predicate to check if query has an edge group. -func (f *FileFilter) WhereHasGroup() { - f.Where(entql.HasEdge("group")) +// WhereDescription applies the entql string predicate on the description field. +func (f *EntityHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldDescription)) } -// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). -func (f *FileFilter) WhereHasGroupWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDomains applies the entql json.RawMessage predicate on the domains field. +func (f *EntityHistoryFilter) WhereDomains(p entql.BytesP) { + f.Where(p.Field(entityhistory.FieldDomains)) } -// WhereHasContact applies a predicate to check if query has an edge contact. -func (f *FileFilter) WhereHasContact() { - f.Where(entql.HasEdge("contact")) +// WhereEntityTypeID applies the entql string predicate on the entity_type_id field. +func (f *EntityHistoryFilter) WhereEntityTypeID(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldEntityTypeID)) } -// WhereHasContactWith applies a predicate to check if query has an edge contact with a given conditions (other predicates). -func (f *FileFilter) WhereHasContactWith(preds ...predicate.Contact) { - f.Where(entql.HasEdgeWith("contact", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereStatus applies the entql string predicate on the status field. +func (f *EntityHistoryFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(entityhistory.FieldStatus)) } -// WhereHasEntity applies a predicate to check if query has an edge entity. -func (f *FileFilter) WhereHasEntity() { - f.Where(entql.HasEdge("entity")) +// addPredicate implements the predicateAdder interface. +func (etq *EntityTypeQuery) addPredicate(pred func(s *sql.Selector)) { + etq.predicates = append(etq.predicates, pred) } -// WhereHasEntityWith applies a predicate to check if query has an edge entity with a given conditions (other predicates). -func (f *FileFilter) WhereHasEntityWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entity", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns a Filter implementation to apply filters on the EntityTypeQuery builder. +func (etq *EntityTypeQuery) Filter() *EntityTypeFilter { + return &EntityTypeFilter{config: etq.config, predicateAdder: etq} } -// WhereHasUsersetting applies a predicate to check if query has an edge usersetting. -func (f *FileFilter) WhereHasUsersetting() { - f.Where(entql.HasEdge("usersetting")) +// addPredicate implements the predicateAdder interface. +func (m *EntityTypeMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereHasUsersettingWith applies a predicate to check if query has an edge usersetting with a given conditions (other predicates). -func (f *FileFilter) WhereHasUsersettingWith(preds ...predicate.UserSetting) { - f.Where(entql.HasEdgeWith("usersetting", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns an entql.Where implementation to apply filters on the EntityTypeMutation builder. +func (m *EntityTypeMutation) Filter() *EntityTypeFilter { + return &EntityTypeFilter{config: m.config, predicateAdder: m} } -// WhereHasOrganizationsetting applies a predicate to check if query has an edge organizationsetting. -func (f *FileFilter) WhereHasOrganizationsetting() { - f.Where(entql.HasEdge("organizationsetting")) +// EntityTypeFilter provides a generic filtering capability at runtime for EntityTypeQuery. +type EntityTypeFilter struct { + predicateAdder + config } -// WhereHasOrganizationsettingWith applies a predicate to check if query has an edge organizationsetting with a given conditions (other predicates). -func (f *FileFilter) WhereHasOrganizationsettingWith(preds ...predicate.OrganizationSetting) { - f.Where(entql.HasEdgeWith("organizationsetting", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// 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[20].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasTemplate applies a predicate to check if query has an edge template. -func (f *FileFilter) WhereHasTemplate() { - f.Where(entql.HasEdge("template")) +// WhereID applies the entql string predicate on the id field. +func (f *EntityTypeFilter) WhereID(p entql.StringP) { + f.Where(p.Field(entitytype.FieldID)) } -// WhereHasTemplateWith applies a predicate to check if query has an edge template with a given conditions (other predicates). -func (f *FileFilter) WhereHasTemplateWith(preds ...predicate.Template) { - f.Where(entql.HasEdgeWith("template", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *EntityTypeFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(entitytype.FieldCreatedAt)) } -// WhereHasDocumentdata applies a predicate to check if query has an edge documentdata. -func (f *FileFilter) WhereHasDocumentdata() { - f.Where(entql.HasEdge("documentdata")) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *EntityTypeFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(entitytype.FieldUpdatedAt)) } -// WhereHasDocumentdataWith applies a predicate to check if query has an edge documentdata with a given conditions (other predicates). -func (f *FileFilter) WhereHasDocumentdataWith(preds ...predicate.DocumentData) { - f.Where(entql.HasEdgeWith("documentdata", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *EntityTypeFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(entitytype.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *EntityTypeFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(entitytype.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *EntityTypeFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(entitytype.FieldMappingID)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *EntityTypeFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(entitytype.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *EntityTypeFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(entitytype.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *EntityTypeFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(entitytype.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *EntityTypeFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(entitytype.FieldOwnerID)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *EntityTypeFilter) WhereName(p entql.StringP) { + f.Where(p.Field(entitytype.FieldName)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *EntityTypeFilter) 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 *EntityTypeFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *FileFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereHasEntities applies a predicate to check if query has an edge entities. +func (f *EntityTypeFilter) WhereHasEntities() { + f.Where(entql.HasEdge("entities")) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *FileFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). +func (f *EntityTypeFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -6751,33 +7822,33 @@ func (f *FileFilter) WhereHasEventsWith(preds ...predicate.Event) { } // addPredicate implements the predicateAdder interface. -func (fhq *FileHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - fhq.predicates = append(fhq.predicates, pred) +func (ethq *EntityTypeHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + ethq.predicates = append(ethq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the FileHistoryQuery builder. -func (fhq *FileHistoryQuery) Filter() *FileHistoryFilter { - return &FileHistoryFilter{config: fhq.config, predicateAdder: fhq} +// Filter returns a Filter implementation to apply filters on the EntityTypeHistoryQuery builder. +func (ethq *EntityTypeHistoryQuery) Filter() *EntityTypeHistoryFilter { + return &EntityTypeHistoryFilter{config: ethq.config, predicateAdder: ethq} } // addPredicate implements the predicateAdder interface. -func (m *FileHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *EntityTypeHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the FileHistoryMutation builder. -func (m *FileHistoryMutation) Filter() *FileHistoryFilter { - return &FileHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the EntityTypeHistoryMutation builder. +func (m *EntityTypeHistoryMutation) Filter() *EntityTypeHistoryFilter { + return &EntityTypeHistoryFilter{config: m.config, predicateAdder: m} } -// FileHistoryFilter provides a generic filtering capability at runtime for FileHistoryQuery. -type FileHistoryFilter struct { +// EntityTypeHistoryFilter provides a generic filtering capability at runtime for EntityTypeHistoryQuery. +type EntityTypeHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *FileHistoryFilter) Where(p entql.P) { +func (f *EntityTypeHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { if err := schemaGraph.EvalP(schemaGraph.Nodes[21].Type, p, s); err != nil { s.AddError(err) @@ -6786,163 +7857,103 @@ func (f *FileHistoryFilter) Where(p entql.P) { } // WhereID applies the entql string predicate on the id field. -func (f *FileHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(filehistory.FieldID)) +func (f *EntityTypeHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(entitytypehistory.FieldID)) } // WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *FileHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(filehistory.FieldHistoryTime)) +func (f *EntityTypeHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(entitytypehistory.FieldHistoryTime)) } // WhereRef applies the entql string predicate on the ref field. -func (f *FileHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(filehistory.FieldRef)) +func (f *EntityTypeHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(entitytypehistory.FieldRef)) } // WhereOperation applies the entql string predicate on the operation field. -func (f *FileHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(filehistory.FieldOperation)) +func (f *EntityTypeHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(entitytypehistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *FileHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(filehistory.FieldCreatedAt)) +func (f *EntityTypeHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(entitytypehistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *FileHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(filehistory.FieldUpdatedAt)) +func (f *EntityTypeHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(entitytypehistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *FileHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(filehistory.FieldCreatedBy)) +func (f *EntityTypeHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(entitytypehistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *FileHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(filehistory.FieldUpdatedBy)) +func (f *EntityTypeHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(entitytypehistory.FieldUpdatedBy)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *FileHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(filehistory.FieldDeletedAt)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *EntityTypeHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(entitytypehistory.FieldMappingID)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *FileHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(filehistory.FieldDeletedBy)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *EntityTypeHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(entitytypehistory.FieldDeletedAt)) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *FileHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(filehistory.FieldMappingID)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *EntityTypeHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(entitytypehistory.FieldDeletedBy)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *FileHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(filehistory.FieldTags)) -} - -// WhereProvidedFileName applies the entql string predicate on the provided_file_name field. -func (f *FileHistoryFilter) WhereProvidedFileName(p entql.StringP) { - f.Where(p.Field(filehistory.FieldProvidedFileName)) -} - -// WhereProvidedFileExtension applies the entql string predicate on the provided_file_extension field. -func (f *FileHistoryFilter) WhereProvidedFileExtension(p entql.StringP) { - f.Where(p.Field(filehistory.FieldProvidedFileExtension)) -} - -// WhereProvidedFileSize applies the entql int64 predicate on the provided_file_size field. -func (f *FileHistoryFilter) WhereProvidedFileSize(p entql.Int64P) { - f.Where(p.Field(filehistory.FieldProvidedFileSize)) -} - -// WherePersistedFileSize applies the entql int64 predicate on the persisted_file_size field. -func (f *FileHistoryFilter) WherePersistedFileSize(p entql.Int64P) { - f.Where(p.Field(filehistory.FieldPersistedFileSize)) -} - -// WhereDetectedMimeType applies the entql string predicate on the detected_mime_type field. -func (f *FileHistoryFilter) WhereDetectedMimeType(p entql.StringP) { - f.Where(p.Field(filehistory.FieldDetectedMimeType)) -} - -// WhereMd5Hash applies the entql string predicate on the md5_hash field. -func (f *FileHistoryFilter) WhereMd5Hash(p entql.StringP) { - f.Where(p.Field(filehistory.FieldMd5Hash)) -} - -// WhereDetectedContentType applies the entql string predicate on the detected_content_type field. -func (f *FileHistoryFilter) WhereDetectedContentType(p entql.StringP) { - f.Where(p.Field(filehistory.FieldDetectedContentType)) -} - -// WhereStoreKey applies the entql string predicate on the store_key field. -func (f *FileHistoryFilter) WhereStoreKey(p entql.StringP) { - f.Where(p.Field(filehistory.FieldStoreKey)) -} - -// WhereCategoryType applies the entql string predicate on the category_type field. -func (f *FileHistoryFilter) WhereCategoryType(p entql.StringP) { - f.Where(p.Field(filehistory.FieldCategoryType)) -} - -// WhereURI applies the entql string predicate on the uri field. -func (f *FileHistoryFilter) WhereURI(p entql.StringP) { - f.Where(p.Field(filehistory.FieldURI)) -} - -// WhereStorageScheme applies the entql string predicate on the storage_scheme field. -func (f *FileHistoryFilter) WhereStorageScheme(p entql.StringP) { - f.Where(p.Field(filehistory.FieldStorageScheme)) -} - -// WhereStorageVolume applies the entql string predicate on the storage_volume field. -func (f *FileHistoryFilter) WhereStorageVolume(p entql.StringP) { - f.Where(p.Field(filehistory.FieldStorageVolume)) +func (f *EntityTypeHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(entitytypehistory.FieldTags)) } -// WhereStoragePath applies the entql string predicate on the storage_path field. -func (f *FileHistoryFilter) WhereStoragePath(p entql.StringP) { - f.Where(p.Field(filehistory.FieldStoragePath)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *EntityTypeHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(entitytypehistory.FieldOwnerID)) } -// WhereFileContents applies the entql []byte predicate on the file_contents field. -func (f *FileHistoryFilter) WhereFileContents(p entql.BytesP) { - f.Where(p.Field(filehistory.FieldFileContents)) +// WhereName applies the entql string predicate on the name field. +func (f *EntityTypeHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(entitytypehistory.FieldName)) } // addPredicate implements the predicateAdder interface. -func (gq *GroupQuery) addPredicate(pred func(s *sql.Selector)) { - gq.predicates = append(gq.predicates, pred) +func (eq *EventQuery) addPredicate(pred func(s *sql.Selector)) { + eq.predicates = append(eq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the GroupQuery builder. -func (gq *GroupQuery) Filter() *GroupFilter { - return &GroupFilter{config: gq.config, predicateAdder: gq} +// Filter returns a Filter implementation to apply filters on the EventQuery builder. +func (eq *EventQuery) Filter() *EventFilter { + return &EventFilter{config: eq.config, predicateAdder: eq} } // addPredicate implements the predicateAdder interface. -func (m *GroupMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *EventMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the GroupMutation builder. -func (m *GroupMutation) Filter() *GroupFilter { - return &GroupFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the EventMutation builder. +func (m *EventMutation) Filter() *EventFilter { + return &EventFilter{config: m.config, predicateAdder: m} } -// GroupFilter provides a generic filtering capability at runtime for GroupQuery. -type GroupFilter struct { +// EventFilter provides a generic filtering capability at runtime for EventQuery. +type EventFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *GroupFilter) Where(p entql.P) { +func (f *EventFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { if err := schemaGraph.EvalP(schemaGraph.Nodes[22].Type, p, s); err != nil { s.AddError(err) @@ -6951,415 +7962,535 @@ func (f *GroupFilter) Where(p entql.P) { } // WhereID applies the entql string predicate on the id field. -func (f *GroupFilter) WhereID(p entql.StringP) { - f.Where(p.Field(group.FieldID)) +func (f *EventFilter) WhereID(p entql.StringP) { + f.Where(p.Field(event.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *GroupFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(group.FieldCreatedAt)) +func (f *EventFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(event.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *GroupFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(group.FieldUpdatedAt)) +func (f *EventFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(event.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *GroupFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(group.FieldCreatedBy)) +func (f *EventFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(event.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *GroupFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(group.FieldUpdatedBy)) -} - -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *GroupFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(group.FieldDeletedAt)) -} - -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *GroupFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(group.FieldDeletedBy)) +func (f *EventFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(event.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *GroupFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(group.FieldMappingID)) +func (f *EventFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(event.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *GroupFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(group.FieldTags)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *GroupFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(group.FieldOwnerID)) -} - -// WhereName applies the entql string predicate on the name field. -func (f *GroupFilter) WhereName(p entql.StringP) { - f.Where(p.Field(group.FieldName)) +func (f *EventFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(event.FieldTags)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *GroupFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(group.FieldDescription)) +// WhereEventID applies the entql string predicate on the event_id field. +func (f *EventFilter) WhereEventID(p entql.StringP) { + f.Where(p.Field(event.FieldEventID)) } -// WhereGravatarLogoURL applies the entql string predicate on the gravatar_logo_url field. -func (f *GroupFilter) WhereGravatarLogoURL(p entql.StringP) { - f.Where(p.Field(group.FieldGravatarLogoURL)) +// WhereCorrelationID applies the entql string predicate on the correlation_id field. +func (f *EventFilter) WhereCorrelationID(p entql.StringP) { + f.Where(p.Field(event.FieldCorrelationID)) } -// WhereLogoURL applies the entql string predicate on the logo_url field. -func (f *GroupFilter) WhereLogoURL(p entql.StringP) { - f.Where(p.Field(group.FieldLogoURL)) +// WhereEventType applies the entql string predicate on the event_type field. +func (f *EventFilter) WhereEventType(p entql.StringP) { + f.Where(p.Field(event.FieldEventType)) } -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *GroupFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(group.FieldDisplayName)) +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *EventFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(event.FieldMetadata)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *GroupFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasUser applies a predicate to check if query has an edge user. +func (f *EventFilter) WhereHasUser() { + f.Where(entql.HasEdge("user")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *GroupFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). +func (f *EventFilter) WhereHasUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSetting applies a predicate to check if query has an edge setting. -func (f *GroupFilter) WhereHasSetting() { - f.Where(entql.HasEdge("setting")) +// WhereHasGroup applies a predicate to check if query has an edge group. +func (f *EventFilter) WhereHasGroup() { + f.Where(entql.HasEdge("group")) } -// WhereHasSettingWith applies a predicate to check if query has an edge setting with a given conditions (other predicates). -func (f *GroupFilter) WhereHasSettingWith(preds ...predicate.GroupSetting) { - f.Where(entql.HasEdgeWith("setting", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). +func (f *EventFilter) WhereHasGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasUsers applies a predicate to check if query has an edge users. -func (f *GroupFilter) WhereHasUsers() { - f.Where(entql.HasEdge("users")) +// WhereHasIntegration applies a predicate to check if query has an edge integration. +func (f *EventFilter) WhereHasIntegration() { + f.Where(entql.HasEdge("integration")) } -// WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates). -func (f *GroupFilter) WhereHasUsersWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("users", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). +func (f *EventFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *GroupFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereHasOrganization applies a predicate to check if query has an edge organization. +func (f *EventFilter) WhereHasOrganization() { + f.Where(entql.HasEdge("organization")) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *GroupFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). +func (f *EventFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIntegrations applies a predicate to check if query has an edge integrations. -func (f *GroupFilter) WhereHasIntegrations() { - f.Where(entql.HasEdge("integrations")) +// WhereHasInvite applies a predicate to check if query has an edge invite. +func (f *EventFilter) WhereHasInvite() { + f.Where(entql.HasEdge("invite")) } -// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). -func (f *GroupFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInviteWith applies a predicate to check if query has an edge invite with a given conditions (other predicates). +func (f *EventFilter) WhereHasInviteWith(preds ...predicate.Invite) { + f.Where(entql.HasEdgeWith("invite", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *GroupFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereHasFeature applies a predicate to check if query has an edge feature. +func (f *EventFilter) WhereHasFeature() { + f.Where(entql.HasEdge("feature")) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *GroupFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasFeatureWith applies a predicate to check if query has an edge feature with a given conditions (other predicates). +func (f *EventFilter) WhereHasFeatureWith(preds ...predicate.Feature) { + f.Where(entql.HasEdgeWith("feature", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasMembers applies a predicate to check if query has an edge members. -func (f *GroupFilter) WhereHasMembers() { - f.Where(entql.HasEdge("members")) +// WhereHasEntitlementplan applies a predicate to check if query has an edge entitlementplan. +func (f *EventFilter) WhereHasEntitlementplan() { + f.Where(entql.HasEdge("entitlementplan")) } -// WhereHasMembersWith applies a predicate to check if query has an edge members with a given conditions (other predicates). -func (f *GroupFilter) WhereHasMembersWith(preds ...predicate.GroupMembership) { - f.Where(entql.HasEdgeWith("members", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEntitlementplanWith applies a predicate to check if query has an edge entitlementplan with a given conditions (other predicates). +func (f *EventFilter) WhereHasEntitlementplanWith(preds ...predicate.EntitlementPlan) { + f.Where(entql.HasEdgeWith("entitlementplan", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (ghq *GroupHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - ghq.predicates = append(ghq.predicates, pred) -} - -// Filter returns a Filter implementation to apply filters on the GroupHistoryQuery builder. -func (ghq *GroupHistoryQuery) Filter() *GroupHistoryFilter { - return &GroupHistoryFilter{config: ghq.config, predicateAdder: ghq} -} - -// addPredicate implements the predicateAdder interface. -func (m *GroupHistoryMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) -} - -// Filter returns an entql.Where implementation to apply filters on the GroupHistoryMutation builder. -func (m *GroupHistoryMutation) Filter() *GroupHistoryFilter { - return &GroupHistoryFilter{config: m.config, predicateAdder: m} -} - -// GroupHistoryFilter provides a generic filtering capability at runtime for GroupHistoryQuery. -type GroupHistoryFilter struct { - predicateAdder - config +// WhereHasEntitlementplanfeature applies a predicate to check if query has an edge entitlementplanfeature. +func (f *EventFilter) WhereHasEntitlementplanfeature() { + f.Where(entql.HasEdge("entitlementplanfeature")) } -// 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[23].Type, p, s); err != nil { - s.AddError(err) +// WhereHasEntitlementplanfeatureWith applies a predicate to check if query has an edge entitlementplanfeature with a given conditions (other predicates). +func (f *EventFilter) WhereHasEntitlementplanfeatureWith(preds ...predicate.EntitlementPlanFeature) { + f.Where(entql.HasEdgeWith("entitlementplanfeature", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) + }))) } -// WhereID applies the entql string predicate on the id field. -func (f *GroupHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldID)) +// WhereHasPersonalAccessToken applies a predicate to check if query has an edge personal_access_token. +func (f *EventFilter) WhereHasPersonalAccessToken() { + f.Where(entql.HasEdge("personal_access_token")) } -// WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *GroupHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(grouphistory.FieldHistoryTime)) +// WhereHasPersonalAccessTokenWith applies a predicate to check if query has an edge personal_access_token with a given conditions (other predicates). +func (f *EventFilter) WhereHasPersonalAccessTokenWith(preds ...predicate.PersonalAccessToken) { + f.Where(entql.HasEdgeWith("personal_access_token", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereRef applies the entql string predicate on the ref field. -func (f *GroupHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldRef)) +// WhereHasOauth2token applies a predicate to check if query has an edge oauth2token. +func (f *EventFilter) WhereHasOauth2token() { + f.Where(entql.HasEdge("oauth2token")) } -// WhereOperation applies the entql string predicate on the operation field. -func (f *GroupHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldOperation)) +// WhereHasOauth2tokenWith applies a predicate to check if query has an edge oauth2token with a given conditions (other predicates). +func (f *EventFilter) WhereHasOauth2tokenWith(preds ...predicate.OhAuthTooToken) { + f.Where(entql.HasEdgeWith("oauth2token", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *GroupHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(grouphistory.FieldCreatedAt)) +// WhereHasHush applies a predicate to check if query has an edge hush. +func (f *EventFilter) WhereHasHush() { + f.Where(entql.HasEdge("hush")) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *GroupHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(grouphistory.FieldUpdatedAt)) +// WhereHasHushWith applies a predicate to check if query has an edge hush with a given conditions (other predicates). +func (f *EventFilter) WhereHasHushWith(preds ...predicate.Hush) { + f.Where(entql.HasEdgeWith("hush", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *GroupHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldCreatedBy)) +// WhereHasOrgmembership applies a predicate to check if query has an edge orgmembership. +func (f *EventFilter) WhereHasOrgmembership() { + f.Where(entql.HasEdge("orgmembership")) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *GroupHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldUpdatedBy)) +// WhereHasOrgmembershipWith applies a predicate to check if query has an edge orgmembership with a given conditions (other predicates). +func (f *EventFilter) WhereHasOrgmembershipWith(preds ...predicate.OrgMembership) { + f.Where(entql.HasEdgeWith("orgmembership", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *GroupHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(grouphistory.FieldDeletedAt)) +// WhereHasGroupmembership applies a predicate to check if query has an edge groupmembership. +func (f *EventFilter) WhereHasGroupmembership() { + f.Where(entql.HasEdge("groupmembership")) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *GroupHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldDeletedBy)) +// WhereHasGroupmembershipWith applies a predicate to check if query has an edge groupmembership with a given conditions (other predicates). +func (f *EventFilter) WhereHasGroupmembershipWith(preds ...predicate.GroupMembership) { + f.Where(entql.HasEdgeWith("groupmembership", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *GroupHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldMappingID)) +// WhereHasEntitlement applies a predicate to check if query has an edge entitlement. +func (f *EventFilter) WhereHasEntitlement() { + f.Where(entql.HasEdge("entitlement")) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *GroupHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(grouphistory.FieldTags)) +// WhereHasEntitlementWith applies a predicate to check if query has an edge entitlement with a given conditions (other predicates). +func (f *EventFilter) WhereHasEntitlementWith(preds ...predicate.Entitlement) { + f.Where(entql.HasEdgeWith("entitlement", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *GroupHistoryFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldOwnerID)) +// WhereHasWebhook applies a predicate to check if query has an edge webhook. +func (f *EventFilter) WhereHasWebhook() { + f.Where(entql.HasEdge("webhook")) } -// WhereName applies the entql string predicate on the name field. -func (f *GroupHistoryFilter) WhereName(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldName)) +// WhereHasWebhookWith applies a predicate to check if query has an edge webhook with a given conditions (other predicates). +func (f *EventFilter) WhereHasWebhookWith(preds ...predicate.Webhook) { + f.Where(entql.HasEdgeWith("webhook", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDescription applies the entql string predicate on the description field. -func (f *GroupHistoryFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldDescription)) +// WhereHasSubscriber applies a predicate to check if query has an edge subscriber. +func (f *EventFilter) WhereHasSubscriber() { + f.Where(entql.HasEdge("subscriber")) } -// WhereGravatarLogoURL applies the entql string predicate on the gravatar_logo_url field. -func (f *GroupHistoryFilter) WhereGravatarLogoURL(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldGravatarLogoURL)) +// WhereHasSubscriberWith applies a predicate to check if query has an edge subscriber with a given conditions (other predicates). +func (f *EventFilter) WhereHasSubscriberWith(preds ...predicate.Subscriber) { + f.Where(entql.HasEdgeWith("subscriber", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereLogoURL applies the entql string predicate on the logo_url field. -func (f *GroupHistoryFilter) WhereLogoURL(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldLogoURL)) +// WhereHasFile applies a predicate to check if query has an edge file. +func (f *EventFilter) WhereHasFile() { + f.Where(entql.HasEdge("file")) } -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *GroupHistoryFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(grouphistory.FieldDisplayName)) +// WhereHasFileWith applies a predicate to check if query has an edge file with a given conditions (other predicates). +func (f *EventFilter) WhereHasFileWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("file", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } // addPredicate implements the predicateAdder interface. -func (gmq *GroupMembershipQuery) addPredicate(pred func(s *sql.Selector)) { - gmq.predicates = append(gmq.predicates, pred) +func (ehq *EventHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + ehq.predicates = append(ehq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the GroupMembershipQuery builder. -func (gmq *GroupMembershipQuery) Filter() *GroupMembershipFilter { - return &GroupMembershipFilter{config: gmq.config, predicateAdder: gmq} +// Filter returns a Filter implementation to apply filters on the EventHistoryQuery builder. +func (ehq *EventHistoryQuery) Filter() *EventHistoryFilter { + return &EventHistoryFilter{config: ehq.config, predicateAdder: ehq} } // addPredicate implements the predicateAdder interface. -func (m *GroupMembershipMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *EventHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the GroupMembershipMutation builder. -func (m *GroupMembershipMutation) Filter() *GroupMembershipFilter { - return &GroupMembershipFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the EventHistoryMutation builder. +func (m *EventHistoryMutation) Filter() *EventHistoryFilter { + return &EventHistoryFilter{config: m.config, predicateAdder: m} } -// GroupMembershipFilter provides a generic filtering capability at runtime for GroupMembershipQuery. -type GroupMembershipFilter struct { +// EventHistoryFilter provides a generic filtering capability at runtime for EventHistoryQuery. +type EventHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *GroupMembershipFilter) Where(p entql.P) { +func (f *EventHistoryFilter) 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[23].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *GroupMembershipFilter) WhereID(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldID)) +func (f *EventHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(eventhistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *EventHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(eventhistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *EventHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(eventhistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *EventHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(eventhistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *GroupMembershipFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(groupmembership.FieldCreatedAt)) +func (f *EventHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(eventhistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *GroupMembershipFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(groupmembership.FieldUpdatedAt)) +func (f *EventHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(eventhistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *GroupMembershipFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldCreatedBy)) +func (f *EventHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(eventhistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *GroupMembershipFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldUpdatedBy)) +func (f *EventHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(eventhistory.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *GroupMembershipFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldMappingID)) +func (f *EventHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(eventhistory.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *EventHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(eventhistory.FieldTags)) +} + +// WhereEventID applies the entql string predicate on the event_id field. +func (f *EventHistoryFilter) WhereEventID(p entql.StringP) { + f.Where(p.Field(eventhistory.FieldEventID)) +} + +// WhereCorrelationID applies the entql string predicate on the correlation_id field. +func (f *EventHistoryFilter) WhereCorrelationID(p entql.StringP) { + f.Where(p.Field(eventhistory.FieldCorrelationID)) +} + +// WhereEventType applies the entql string predicate on the event_type field. +func (f *EventHistoryFilter) WhereEventType(p entql.StringP) { + f.Where(p.Field(eventhistory.FieldEventType)) +} + +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *EventHistoryFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(eventhistory.FieldMetadata)) +} + +// addPredicate implements the predicateAdder interface. +func (fq *FeatureQuery) addPredicate(pred func(s *sql.Selector)) { + fq.predicates = append(fq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the FeatureQuery builder. +func (fq *FeatureQuery) Filter() *FeatureFilter { + return &FeatureFilter{config: fq.config, predicateAdder: fq} +} + +// addPredicate implements the predicateAdder interface. +func (m *FeatureMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the FeatureMutation builder. +func (m *FeatureMutation) Filter() *FeatureFilter { + return &FeatureFilter{config: m.config, predicateAdder: m} +} + +// FeatureFilter provides a generic filtering capability at runtime for FeatureQuery. +type FeatureFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *FeatureFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[24].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *FeatureFilter) WhereID(p entql.StringP) { + f.Where(p.Field(feature.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *FeatureFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(feature.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *FeatureFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(feature.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *FeatureFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(feature.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *FeatureFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(feature.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *GroupMembershipFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(groupmembership.FieldDeletedAt)) +func (f *FeatureFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(feature.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *GroupMembershipFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldDeletedBy)) +func (f *FeatureFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(feature.FieldDeletedBy)) } -// WhereRole applies the entql string predicate on the role field. -func (f *GroupMembershipFilter) WhereRole(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldRole)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *FeatureFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(feature.FieldMappingID)) } -// WhereGroupID applies the entql string predicate on the group_id field. -func (f *GroupMembershipFilter) WhereGroupID(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldGroupID)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *FeatureFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(feature.FieldTags)) } -// WhereUserID applies the entql string predicate on the user_id field. -func (f *GroupMembershipFilter) WhereUserID(p entql.StringP) { - f.Where(p.Field(groupmembership.FieldUserID)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *FeatureFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(feature.FieldOwnerID)) } -// WhereHasGroup applies a predicate to check if query has an edge group. -func (f *GroupMembershipFilter) WhereHasGroup() { - f.Where(entql.HasEdge("group")) +// WhereName applies the entql string predicate on the name field. +func (f *FeatureFilter) WhereName(p entql.StringP) { + f.Where(p.Field(feature.FieldName)) } -// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). -func (f *GroupMembershipFilter) WhereHasGroupWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *FeatureFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(feature.FieldDisplayName)) +} + +// WhereEnabled applies the entql bool predicate on the enabled field. +func (f *FeatureFilter) WhereEnabled(p entql.BoolP) { + f.Where(p.Field(feature.FieldEnabled)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *FeatureFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(feature.FieldDescription)) +} + +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *FeatureFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(feature.FieldMetadata)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *FeatureFilter) 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 *FeatureFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", 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 *GroupMembershipFilter) WhereHasUser() { - f.Where(entql.HasEdge("user")) +// WhereHasPlans applies a predicate to check if query has an edge plans. +func (f *FeatureFilter) WhereHasPlans() { + f.Where(entql.HasEdge("plans")) } -// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). -func (f *GroupMembershipFilter) WhereHasUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasPlansWith applies a predicate to check if query has an edge plans with a given conditions (other predicates). +func (f *FeatureFilter) WhereHasPlansWith(preds ...predicate.EntitlementPlan) { + f.Where(entql.HasEdgeWith("plans", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -7367,12 +8498,12 @@ func (f *GroupMembershipFilter) WhereHasUserWith(preds ...predicate.User) { } // WhereHasEvents applies a predicate to check if query has an edge events. -func (f *GroupMembershipFilter) WhereHasEvents() { +func (f *FeatureFilter) WhereHasEvents() { f.Where(entql.HasEdge("events")) } // WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *GroupMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { +func (f *FeatureFilter) WhereHasEventsWith(preds ...predicate.Event) { f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -7380,34 +8511,48 @@ func (f *GroupMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { }))) } +// WhereHasFeatures applies a predicate to check if query has an edge features. +func (f *FeatureFilter) WhereHasFeatures() { + f.Where(entql.HasEdge("features")) +} + +// WhereHasFeaturesWith applies a predicate to check if query has an edge features with a given conditions (other predicates). +func (f *FeatureFilter) WhereHasFeaturesWith(preds ...predicate.EntitlementPlanFeature) { + f.Where(entql.HasEdgeWith("features", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + // addPredicate implements the predicateAdder interface. -func (gmhq *GroupMembershipHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - gmhq.predicates = append(gmhq.predicates, pred) +func (fhq *FeatureHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + fhq.predicates = append(fhq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the GroupMembershipHistoryQuery builder. -func (gmhq *GroupMembershipHistoryQuery) Filter() *GroupMembershipHistoryFilter { - return &GroupMembershipHistoryFilter{config: gmhq.config, predicateAdder: gmhq} +// Filter returns a Filter implementation to apply filters on the FeatureHistoryQuery builder. +func (fhq *FeatureHistoryQuery) Filter() *FeatureHistoryFilter { + return &FeatureHistoryFilter{config: fhq.config, predicateAdder: fhq} } // addPredicate implements the predicateAdder interface. -func (m *GroupMembershipHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *FeatureHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the GroupMembershipHistoryMutation builder. -func (m *GroupMembershipHistoryMutation) Filter() *GroupMembershipHistoryFilter { - return &GroupMembershipHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the FeatureHistoryMutation builder. +func (m *FeatureHistoryMutation) Filter() *FeatureHistoryFilter { + return &FeatureHistoryFilter{config: m.config, predicateAdder: m} } -// GroupMembershipHistoryFilter provides a generic filtering capability at runtime for GroupMembershipHistoryQuery. -type GroupMembershipHistoryFilter struct { +// FeatureHistoryFilter provides a generic filtering capability at runtime for FeatureHistoryQuery. +type FeatureHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *GroupMembershipHistoryFilter) Where(p entql.P) { +func (f *FeatureHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { if err := schemaGraph.EvalP(schemaGraph.Nodes[25].Type, p, s); err != nil { s.AddError(err) @@ -7416,103 +8561,123 @@ func (f *GroupMembershipHistoryFilter) Where(p entql.P) { } // WhereID applies the entql string predicate on the id field. -func (f *GroupMembershipHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(groupmembershiphistory.FieldID)) +func (f *FeatureHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(featurehistory.FieldID)) } // WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *GroupMembershipHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(groupmembershiphistory.FieldHistoryTime)) +func (f *FeatureHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(featurehistory.FieldHistoryTime)) } // WhereRef applies the entql string predicate on the ref field. -func (f *GroupMembershipHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(groupmembershiphistory.FieldRef)) +func (f *FeatureHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(featurehistory.FieldRef)) } // WhereOperation applies the entql string predicate on the operation field. -func (f *GroupMembershipHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(groupmembershiphistory.FieldOperation)) +func (f *FeatureHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(featurehistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *GroupMembershipHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(groupmembershiphistory.FieldCreatedAt)) +func (f *FeatureHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(featurehistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *GroupMembershipHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(groupmembershiphistory.FieldUpdatedAt)) +func (f *FeatureHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(featurehistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *GroupMembershipHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(groupmembershiphistory.FieldCreatedBy)) +func (f *FeatureHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(featurehistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *GroupMembershipHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(groupmembershiphistory.FieldUpdatedBy)) -} - -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *GroupMembershipHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(groupmembershiphistory.FieldMappingID)) +func (f *FeatureHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(featurehistory.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *GroupMembershipHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(groupmembershiphistory.FieldDeletedAt)) +func (f *FeatureHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(featurehistory.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *GroupMembershipHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(groupmembershiphistory.FieldDeletedBy)) -} - -// WhereRole applies the entql string predicate on the role field. -func (f *GroupMembershipHistoryFilter) WhereRole(p entql.StringP) { - f.Where(p.Field(groupmembershiphistory.FieldRole)) +func (f *FeatureHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(featurehistory.FieldDeletedBy)) } -// WhereGroupID applies the entql string predicate on the group_id field. -func (f *GroupMembershipHistoryFilter) WhereGroupID(p entql.StringP) { - f.Where(p.Field(groupmembershiphistory.FieldGroupID)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *FeatureHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(featurehistory.FieldMappingID)) } -// WhereUserID applies the entql string predicate on the user_id field. -func (f *GroupMembershipHistoryFilter) WhereUserID(p entql.StringP) { - f.Where(p.Field(groupmembershiphistory.FieldUserID)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *FeatureHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(featurehistory.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *FeatureHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(featurehistory.FieldOwnerID)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *FeatureHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(featurehistory.FieldName)) +} + +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *FeatureHistoryFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(featurehistory.FieldDisplayName)) +} + +// WhereEnabled applies the entql bool predicate on the enabled field. +func (f *FeatureHistoryFilter) WhereEnabled(p entql.BoolP) { + f.Where(p.Field(featurehistory.FieldEnabled)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *FeatureHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(featurehistory.FieldDescription)) +} + +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *FeatureHistoryFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(featurehistory.FieldMetadata)) } // addPredicate implements the predicateAdder interface. -func (gsq *GroupSettingQuery) addPredicate(pred func(s *sql.Selector)) { - gsq.predicates = append(gsq.predicates, pred) +func (fq *FileQuery) addPredicate(pred func(s *sql.Selector)) { + fq.predicates = append(fq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the GroupSettingQuery builder. -func (gsq *GroupSettingQuery) Filter() *GroupSettingFilter { - return &GroupSettingFilter{config: gsq.config, predicateAdder: gsq} +// Filter returns a Filter implementation to apply filters on the FileQuery builder. +func (fq *FileQuery) Filter() *FileFilter { + return &FileFilter{config: fq.config, predicateAdder: fq} } // addPredicate implements the predicateAdder interface. -func (m *GroupSettingMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *FileMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the GroupSettingMutation builder. -func (m *GroupSettingMutation) Filter() *GroupSettingFilter { - return &GroupSettingFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the FileMutation builder. +func (m *FileMutation) Filter() *FileFilter { + return &FileFilter{config: m.config, predicateAdder: m} } -// GroupSettingFilter provides a generic filtering capability at runtime for GroupSettingQuery. -type GroupSettingFilter struct { +// FileFilter provides a generic filtering capability at runtime for FileQuery. +type FileFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *GroupSettingFilter) Where(p entql.P) { +func (f *FileFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { if err := schemaGraph.EvalP(schemaGraph.Nodes[26].Type, p, s); err != nil { s.AddError(err) @@ -7521,331 +8686,240 @@ func (f *GroupSettingFilter) Where(p entql.P) { } // WhereID applies the entql string predicate on the id field. -func (f *GroupSettingFilter) WhereID(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldID)) +func (f *FileFilter) WhereID(p entql.StringP) { + f.Where(p.Field(file.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *GroupSettingFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(groupsetting.FieldCreatedAt)) +func (f *FileFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(file.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *GroupSettingFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(groupsetting.FieldUpdatedAt)) +func (f *FileFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(file.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *GroupSettingFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldCreatedBy)) +func (f *FileFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(file.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *GroupSettingFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldUpdatedBy)) -} - -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *GroupSettingFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldMappingID)) -} - -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *GroupSettingFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(groupsetting.FieldTags)) +func (f *FileFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(file.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *GroupSettingFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(groupsetting.FieldDeletedAt)) +func (f *FileFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(file.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *GroupSettingFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldDeletedBy)) -} - -// WhereVisibility applies the entql string predicate on the visibility field. -func (f *GroupSettingFilter) WhereVisibility(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldVisibility)) +func (f *FileFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(file.FieldDeletedBy)) } -// WhereJoinPolicy applies the entql string predicate on the join_policy field. -func (f *GroupSettingFilter) WhereJoinPolicy(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldJoinPolicy)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *FileFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(file.FieldMappingID)) } -// WhereSyncToSlack applies the entql bool predicate on the sync_to_slack field. -func (f *GroupSettingFilter) WhereSyncToSlack(p entql.BoolP) { - f.Where(p.Field(groupsetting.FieldSyncToSlack)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *FileFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(file.FieldTags)) } -// WhereSyncToGithub applies the entql bool predicate on the sync_to_github field. -func (f *GroupSettingFilter) WhereSyncToGithub(p entql.BoolP) { - f.Where(p.Field(groupsetting.FieldSyncToGithub)) +// WhereProvidedFileName applies the entql string predicate on the provided_file_name field. +func (f *FileFilter) WhereProvidedFileName(p entql.StringP) { + f.Where(p.Field(file.FieldProvidedFileName)) } -// WhereGroupID applies the entql string predicate on the group_id field. -func (f *GroupSettingFilter) WhereGroupID(p entql.StringP) { - f.Where(p.Field(groupsetting.FieldGroupID)) +// WhereProvidedFileExtension applies the entql string predicate on the provided_file_extension field. +func (f *FileFilter) WhereProvidedFileExtension(p entql.StringP) { + f.Where(p.Field(file.FieldProvidedFileExtension)) } -// WhereHasGroup applies a predicate to check if query has an edge group. -func (f *GroupSettingFilter) WhereHasGroup() { - f.Where(entql.HasEdge("group")) +// WhereProvidedFileSize applies the entql int64 predicate on the provided_file_size field. +func (f *FileFilter) WhereProvidedFileSize(p entql.Int64P) { + f.Where(p.Field(file.FieldProvidedFileSize)) } -// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). -func (f *GroupSettingFilter) WhereHasGroupWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WherePersistedFileSize applies the entql int64 predicate on the persisted_file_size field. +func (f *FileFilter) WherePersistedFileSize(p entql.Int64P) { + f.Where(p.Field(file.FieldPersistedFileSize)) } -// addPredicate implements the predicateAdder interface. -func (gshq *GroupSettingHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - gshq.predicates = append(gshq.predicates, pred) +// WhereDetectedMimeType applies the entql string predicate on the detected_mime_type field. +func (f *FileFilter) WhereDetectedMimeType(p entql.StringP) { + f.Where(p.Field(file.FieldDetectedMimeType)) } -// Filter returns a Filter implementation to apply filters on the GroupSettingHistoryQuery builder. -func (gshq *GroupSettingHistoryQuery) Filter() *GroupSettingHistoryFilter { - return &GroupSettingHistoryFilter{config: gshq.config, predicateAdder: gshq} +// WhereMd5Hash applies the entql string predicate on the md5_hash field. +func (f *FileFilter) WhereMd5Hash(p entql.StringP) { + f.Where(p.Field(file.FieldMd5Hash)) } -// addPredicate implements the predicateAdder interface. -func (m *GroupSettingHistoryMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereDetectedContentType applies the entql string predicate on the detected_content_type field. +func (f *FileFilter) WhereDetectedContentType(p entql.StringP) { + f.Where(p.Field(file.FieldDetectedContentType)) } -// Filter returns an entql.Where implementation to apply filters on the GroupSettingHistoryMutation builder. -func (m *GroupSettingHistoryMutation) Filter() *GroupSettingHistoryFilter { - return &GroupSettingHistoryFilter{config: m.config, predicateAdder: m} +// WhereStoreKey applies the entql string predicate on the store_key field. +func (f *FileFilter) WhereStoreKey(p entql.StringP) { + f.Where(p.Field(file.FieldStoreKey)) } -// GroupSettingHistoryFilter provides a generic filtering capability at runtime for GroupSettingHistoryQuery. -type GroupSettingHistoryFilter struct { - predicateAdder - config +// WhereCategoryType applies the entql string predicate on the category_type field. +func (f *FileFilter) WhereCategoryType(p entql.StringP) { + f.Where(p.Field(file.FieldCategoryType)) } -// 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[27].Type, p, s); err != nil { - s.AddError(err) - } - }) +// WhereURI applies the entql string predicate on the uri field. +func (f *FileFilter) WhereURI(p entql.StringP) { + f.Where(p.Field(file.FieldURI)) } -// WhereID applies the entql string predicate on the id field. -func (f *GroupSettingHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(groupsettinghistory.FieldID)) +// WhereStorageScheme applies the entql string predicate on the storage_scheme field. +func (f *FileFilter) WhereStorageScheme(p entql.StringP) { + f.Where(p.Field(file.FieldStorageScheme)) } -// WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *GroupSettingHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(groupsettinghistory.FieldHistoryTime)) +// WhereStorageVolume applies the entql string predicate on the storage_volume field. +func (f *FileFilter) WhereStorageVolume(p entql.StringP) { + f.Where(p.Field(file.FieldStorageVolume)) } -// WhereRef applies the entql string predicate on the ref field. -func (f *GroupSettingHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(groupsettinghistory.FieldRef)) +// WhereStoragePath applies the entql string predicate on the storage_path field. +func (f *FileFilter) WhereStoragePath(p entql.StringP) { + f.Where(p.Field(file.FieldStoragePath)) } -// WhereOperation applies the entql string predicate on the operation field. -func (f *GroupSettingHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(groupsettinghistory.FieldOperation)) +// WhereFileContents applies the entql []byte predicate on the file_contents field. +func (f *FileFilter) WhereFileContents(p entql.BytesP) { + f.Where(p.Field(file.FieldFileContents)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *GroupSettingHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(groupsettinghistory.FieldCreatedAt)) +// WhereHasUser applies a predicate to check if query has an edge user. +func (f *FileFilter) WhereHasUser() { + f.Where(entql.HasEdge("user")) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *GroupSettingHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(groupsettinghistory.FieldUpdatedAt)) +// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). +func (f *FileFilter) WhereHasUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *GroupSettingHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(groupsettinghistory.FieldCreatedBy)) +// WhereHasOrganization applies a predicate to check if query has an edge organization. +func (f *FileFilter) WhereHasOrganization() { + f.Where(entql.HasEdge("organization")) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *GroupSettingHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(groupsettinghistory.FieldUpdatedBy)) +// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). +func (f *FileFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *GroupSettingHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(groupsettinghistory.FieldMappingID)) +// WhereHasGroup applies a predicate to check if query has an edge group. +func (f *FileFilter) WhereHasGroup() { + f.Where(entql.HasEdge("group")) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *GroupSettingHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(groupsettinghistory.FieldTags)) -} - -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *GroupSettingHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(groupsettinghistory.FieldDeletedAt)) -} - -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *GroupSettingHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(groupsettinghistory.FieldDeletedBy)) -} - -// WhereVisibility applies the entql string predicate on the visibility field. -func (f *GroupSettingHistoryFilter) WhereVisibility(p entql.StringP) { - f.Where(p.Field(groupsettinghistory.FieldVisibility)) -} - -// WhereJoinPolicy applies the entql string predicate on the join_policy field. -func (f *GroupSettingHistoryFilter) WhereJoinPolicy(p entql.StringP) { - f.Where(p.Field(groupsettinghistory.FieldJoinPolicy)) -} - -// WhereSyncToSlack applies the entql bool predicate on the sync_to_slack field. -func (f *GroupSettingHistoryFilter) WhereSyncToSlack(p entql.BoolP) { - f.Where(p.Field(groupsettinghistory.FieldSyncToSlack)) -} - -// WhereSyncToGithub applies the entql bool predicate on the sync_to_github field. -func (f *GroupSettingHistoryFilter) WhereSyncToGithub(p entql.BoolP) { - f.Where(p.Field(groupsettinghistory.FieldSyncToGithub)) -} - -// WhereGroupID applies the entql string predicate on the group_id field. -func (f *GroupSettingHistoryFilter) WhereGroupID(p entql.StringP) { - f.Where(p.Field(groupsettinghistory.FieldGroupID)) -} - -// addPredicate implements the predicateAdder interface. -func (hq *HushQuery) addPredicate(pred func(s *sql.Selector)) { - hq.predicates = append(hq.predicates, pred) -} - -// Filter returns a Filter implementation to apply filters on the HushQuery builder. -func (hq *HushQuery) Filter() *HushFilter { - return &HushFilter{config: hq.config, predicateAdder: hq} -} - -// addPredicate implements the predicateAdder interface. -func (m *HushMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) -} - -// Filter returns an entql.Where implementation to apply filters on the HushMutation builder. -func (m *HushMutation) Filter() *HushFilter { - return &HushFilter{config: m.config, predicateAdder: m} -} - -// HushFilter provides a generic filtering capability at runtime for HushQuery. -type HushFilter struct { - predicateAdder - config -} - -// Where applies the entql predicate on the query filter. -func (f *HushFilter) Where(p entql.P) { - f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[28].Type, p, s); err != nil { - s.AddError(err) +// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). +func (f *FileFilter) WhereHasGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) -} - -// WhereID applies the entql string predicate on the id field. -func (f *HushFilter) WhereID(p entql.StringP) { - f.Where(p.Field(hush.FieldID)) -} - -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *HushFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(hush.FieldCreatedAt)) -} - -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *HushFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(hush.FieldUpdatedAt)) -} - -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *HushFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(hush.FieldCreatedBy)) -} - -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *HushFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(hush.FieldUpdatedBy)) + }))) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *HushFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(hush.FieldMappingID)) +// WhereHasContact applies a predicate to check if query has an edge contact. +func (f *FileFilter) WhereHasContact() { + f.Where(entql.HasEdge("contact")) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *HushFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(hush.FieldDeletedAt)) +// WhereHasContactWith applies a predicate to check if query has an edge contact with a given conditions (other predicates). +func (f *FileFilter) WhereHasContactWith(preds ...predicate.Contact) { + f.Where(entql.HasEdgeWith("contact", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *HushFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(hush.FieldDeletedBy)) +// WhereHasEntity applies a predicate to check if query has an edge entity. +func (f *FileFilter) WhereHasEntity() { + f.Where(entql.HasEdge("entity")) } -// WhereName applies the entql string predicate on the name field. -func (f *HushFilter) WhereName(p entql.StringP) { - f.Where(p.Field(hush.FieldName)) +// WhereHasEntityWith applies a predicate to check if query has an edge entity with a given conditions (other predicates). +func (f *FileFilter) WhereHasEntityWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entity", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDescription applies the entql string predicate on the description field. -func (f *HushFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(hush.FieldDescription)) +// WhereHasUsersetting applies a predicate to check if query has an edge usersetting. +func (f *FileFilter) WhereHasUsersetting() { + f.Where(entql.HasEdge("usersetting")) } -// WhereKind applies the entql string predicate on the kind field. -func (f *HushFilter) WhereKind(p entql.StringP) { - f.Where(p.Field(hush.FieldKind)) +// WhereHasUsersettingWith applies a predicate to check if query has an edge usersetting with a given conditions (other predicates). +func (f *FileFilter) WhereHasUsersettingWith(preds ...predicate.UserSetting) { + f.Where(entql.HasEdgeWith("usersetting", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereSecretName applies the entql string predicate on the secret_name field. -func (f *HushFilter) WhereSecretName(p entql.StringP) { - f.Where(p.Field(hush.FieldSecretName)) +// WhereHasOrganizationsetting applies a predicate to check if query has an edge organizationsetting. +func (f *FileFilter) WhereHasOrganizationsetting() { + f.Where(entql.HasEdge("organizationsetting")) } -// WhereSecretValue applies the entql string predicate on the secret_value field. -func (f *HushFilter) WhereSecretValue(p entql.StringP) { - f.Where(p.Field(hush.FieldSecretValue)) +// WhereHasOrganizationsettingWith applies a predicate to check if query has an edge organizationsetting with a given conditions (other predicates). +func (f *FileFilter) WhereHasOrganizationsettingWith(preds ...predicate.OrganizationSetting) { + f.Where(entql.HasEdgeWith("organizationsetting", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasIntegrations applies a predicate to check if query has an edge integrations. -func (f *HushFilter) WhereHasIntegrations() { - f.Where(entql.HasEdge("integrations")) +// WhereHasTemplate applies a predicate to check if query has an edge template. +func (f *FileFilter) WhereHasTemplate() { + f.Where(entql.HasEdge("template")) } -// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). -func (f *HushFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasTemplateWith applies a predicate to check if query has an edge template with a given conditions (other predicates). +func (f *FileFilter) WhereHasTemplateWith(preds ...predicate.Template) { + f.Where(entql.HasEdgeWith("template", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOrganization applies a predicate to check if query has an edge organization. -func (f *HushFilter) WhereHasOrganization() { - f.Where(entql.HasEdge("organization")) +// WhereHasDocumentdata applies a predicate to check if query has an edge documentdata. +func (f *FileFilter) WhereHasDocumentdata() { + f.Where(entql.HasEdge("documentdata")) } -// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). -func (f *HushFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasDocumentdataWith applies a predicate to check if query has an edge documentdata with a given conditions (other predicates). +func (f *FileFilter) WhereHasDocumentdataWith(preds ...predicate.DocumentData) { + f.Where(entql.HasEdgeWith("documentdata", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -7853,12 +8927,12 @@ func (f *HushFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { } // WhereHasEvents applies a predicate to check if query has an edge events. -func (f *HushFilter) WhereHasEvents() { +func (f *FileFilter) WhereHasEvents() { f.Where(entql.HasEdge("events")) } // WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *HushFilter) WhereHasEventsWith(preds ...predicate.Event) { +func (f *FileFilter) WhereHasEventsWith(preds ...predicate.Event) { f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -7867,227 +8941,287 @@ func (f *HushFilter) WhereHasEventsWith(preds ...predicate.Event) { } // addPredicate implements the predicateAdder interface. -func (hhq *HushHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - hhq.predicates = append(hhq.predicates, pred) +func (fhq *FileHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + fhq.predicates = append(fhq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the HushHistoryQuery builder. -func (hhq *HushHistoryQuery) Filter() *HushHistoryFilter { - return &HushHistoryFilter{config: hhq.config, predicateAdder: hhq} +// Filter returns a Filter implementation to apply filters on the FileHistoryQuery builder. +func (fhq *FileHistoryQuery) Filter() *FileHistoryFilter { + return &FileHistoryFilter{config: fhq.config, predicateAdder: fhq} } // addPredicate implements the predicateAdder interface. -func (m *HushHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *FileHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the HushHistoryMutation builder. -func (m *HushHistoryMutation) Filter() *HushHistoryFilter { - return &HushHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the FileHistoryMutation builder. +func (m *FileHistoryMutation) Filter() *FileHistoryFilter { + return &FileHistoryFilter{config: m.config, predicateAdder: m} } -// HushHistoryFilter provides a generic filtering capability at runtime for HushHistoryQuery. -type HushHistoryFilter struct { +// FileHistoryFilter provides a generic filtering capability at runtime for FileHistoryQuery. +type FileHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *HushHistoryFilter) Where(p entql.P) { +func (f *FileHistoryFilter) 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[27].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *HushHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(hushhistory.FieldID)) +func (f *FileHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(filehistory.FieldID)) } // WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *HushHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(hushhistory.FieldHistoryTime)) +func (f *FileHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(filehistory.FieldHistoryTime)) } // WhereRef applies the entql string predicate on the ref field. -func (f *HushHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(hushhistory.FieldRef)) +func (f *FileHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(filehistory.FieldRef)) } // WhereOperation applies the entql string predicate on the operation field. -func (f *HushHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(hushhistory.FieldOperation)) +func (f *FileHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(filehistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *HushHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(hushhistory.FieldCreatedAt)) +func (f *FileHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(filehistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *HushHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(hushhistory.FieldUpdatedAt)) +func (f *FileHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(filehistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *HushHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(hushhistory.FieldCreatedBy)) +func (f *FileHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(filehistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *HushHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(hushhistory.FieldUpdatedBy)) +func (f *FileHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(filehistory.FieldUpdatedBy)) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *HushHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(hushhistory.FieldMappingID)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *FileHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(filehistory.FieldDeletedAt)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *HushHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(hushhistory.FieldDeletedAt)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *FileHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(filehistory.FieldDeletedBy)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *HushHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(hushhistory.FieldDeletedBy)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *FileHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(filehistory.FieldMappingID)) } -// WhereName applies the entql string predicate on the name field. -func (f *HushHistoryFilter) WhereName(p entql.StringP) { - f.Where(p.Field(hushhistory.FieldName)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *FileHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(filehistory.FieldTags)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *HushHistoryFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(hushhistory.FieldDescription)) +// WhereProvidedFileName applies the entql string predicate on the provided_file_name field. +func (f *FileHistoryFilter) WhereProvidedFileName(p entql.StringP) { + f.Where(p.Field(filehistory.FieldProvidedFileName)) } -// WhereKind applies the entql string predicate on the kind field. -func (f *HushHistoryFilter) WhereKind(p entql.StringP) { - f.Where(p.Field(hushhistory.FieldKind)) +// WhereProvidedFileExtension applies the entql string predicate on the provided_file_extension field. +func (f *FileHistoryFilter) WhereProvidedFileExtension(p entql.StringP) { + f.Where(p.Field(filehistory.FieldProvidedFileExtension)) } -// WhereSecretName applies the entql string predicate on the secret_name field. -func (f *HushHistoryFilter) WhereSecretName(p entql.StringP) { - f.Where(p.Field(hushhistory.FieldSecretName)) +// WhereProvidedFileSize applies the entql int64 predicate on the provided_file_size field. +func (f *FileHistoryFilter) WhereProvidedFileSize(p entql.Int64P) { + f.Where(p.Field(filehistory.FieldProvidedFileSize)) } -// WhereSecretValue applies the entql string predicate on the secret_value field. -func (f *HushHistoryFilter) WhereSecretValue(p entql.StringP) { - f.Where(p.Field(hushhistory.FieldSecretValue)) +// WherePersistedFileSize applies the entql int64 predicate on the persisted_file_size field. +func (f *FileHistoryFilter) WherePersistedFileSize(p entql.Int64P) { + f.Where(p.Field(filehistory.FieldPersistedFileSize)) +} + +// WhereDetectedMimeType applies the entql string predicate on the detected_mime_type field. +func (f *FileHistoryFilter) WhereDetectedMimeType(p entql.StringP) { + f.Where(p.Field(filehistory.FieldDetectedMimeType)) +} + +// WhereMd5Hash applies the entql string predicate on the md5_hash field. +func (f *FileHistoryFilter) WhereMd5Hash(p entql.StringP) { + f.Where(p.Field(filehistory.FieldMd5Hash)) +} + +// WhereDetectedContentType applies the entql string predicate on the detected_content_type field. +func (f *FileHistoryFilter) WhereDetectedContentType(p entql.StringP) { + f.Where(p.Field(filehistory.FieldDetectedContentType)) +} + +// WhereStoreKey applies the entql string predicate on the store_key field. +func (f *FileHistoryFilter) WhereStoreKey(p entql.StringP) { + f.Where(p.Field(filehistory.FieldStoreKey)) +} + +// WhereCategoryType applies the entql string predicate on the category_type field. +func (f *FileHistoryFilter) WhereCategoryType(p entql.StringP) { + f.Where(p.Field(filehistory.FieldCategoryType)) +} + +// WhereURI applies the entql string predicate on the uri field. +func (f *FileHistoryFilter) WhereURI(p entql.StringP) { + f.Where(p.Field(filehistory.FieldURI)) +} + +// WhereStorageScheme applies the entql string predicate on the storage_scheme field. +func (f *FileHistoryFilter) WhereStorageScheme(p entql.StringP) { + f.Where(p.Field(filehistory.FieldStorageScheme)) +} + +// WhereStorageVolume applies the entql string predicate on the storage_volume field. +func (f *FileHistoryFilter) WhereStorageVolume(p entql.StringP) { + f.Where(p.Field(filehistory.FieldStorageVolume)) +} + +// WhereStoragePath applies the entql string predicate on the storage_path field. +func (f *FileHistoryFilter) WhereStoragePath(p entql.StringP) { + f.Where(p.Field(filehistory.FieldStoragePath)) +} + +// WhereFileContents applies the entql []byte predicate on the file_contents field. +func (f *FileHistoryFilter) WhereFileContents(p entql.BytesP) { + f.Where(p.Field(filehistory.FieldFileContents)) } // addPredicate implements the predicateAdder interface. -func (iq *IntegrationQuery) addPredicate(pred func(s *sql.Selector)) { - iq.predicates = append(iq.predicates, pred) +func (gq *GroupQuery) addPredicate(pred func(s *sql.Selector)) { + gq.predicates = append(gq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the IntegrationQuery builder. -func (iq *IntegrationQuery) Filter() *IntegrationFilter { - return &IntegrationFilter{config: iq.config, predicateAdder: iq} +// Filter returns a Filter implementation to apply filters on the GroupQuery builder. +func (gq *GroupQuery) Filter() *GroupFilter { + return &GroupFilter{config: gq.config, predicateAdder: gq} } // addPredicate implements the predicateAdder interface. -func (m *IntegrationMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *GroupMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the IntegrationMutation builder. -func (m *IntegrationMutation) Filter() *IntegrationFilter { - return &IntegrationFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the GroupMutation builder. +func (m *GroupMutation) Filter() *GroupFilter { + return &GroupFilter{config: m.config, predicateAdder: m} } -// IntegrationFilter provides a generic filtering capability at runtime for IntegrationQuery. -type IntegrationFilter struct { +// GroupFilter provides a generic filtering capability at runtime for GroupQuery. +type GroupFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *IntegrationFilter) Where(p entql.P) { +func (f *GroupFilter) 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[28].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *IntegrationFilter) WhereID(p entql.StringP) { - f.Where(p.Field(integration.FieldID)) +func (f *GroupFilter) WhereID(p entql.StringP) { + f.Where(p.Field(group.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *IntegrationFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(integration.FieldCreatedAt)) +func (f *GroupFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(group.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *IntegrationFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(integration.FieldUpdatedAt)) +func (f *GroupFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(group.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *IntegrationFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(integration.FieldCreatedBy)) +func (f *GroupFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(group.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *IntegrationFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(integration.FieldUpdatedBy)) +func (f *GroupFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(group.FieldUpdatedBy)) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *IntegrationFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(integration.FieldMappingID)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *GroupFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(group.FieldDeletedAt)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *IntegrationFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(integration.FieldTags)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *GroupFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(group.FieldDeletedBy)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *IntegrationFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(integration.FieldDeletedAt)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *GroupFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(group.FieldMappingID)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *IntegrationFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(integration.FieldDeletedBy)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *GroupFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(group.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *IntegrationFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(integration.FieldOwnerID)) +func (f *GroupFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(group.FieldOwnerID)) } // WhereName applies the entql string predicate on the name field. -func (f *IntegrationFilter) WhereName(p entql.StringP) { - f.Where(p.Field(integration.FieldName)) +func (f *GroupFilter) WhereName(p entql.StringP) { + f.Where(p.Field(group.FieldName)) } // WhereDescription applies the entql string predicate on the description field. -func (f *IntegrationFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(integration.FieldDescription)) +func (f *GroupFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(group.FieldDescription)) } -// WhereKind applies the entql string predicate on the kind field. -func (f *IntegrationFilter) WhereKind(p entql.StringP) { - f.Where(p.Field(integration.FieldKind)) +// WhereGravatarLogoURL applies the entql string predicate on the gravatar_logo_url field. +func (f *GroupFilter) WhereGravatarLogoURL(p entql.StringP) { + f.Where(p.Field(group.FieldGravatarLogoURL)) +} + +// WhereLogoURL applies the entql string predicate on the logo_url field. +func (f *GroupFilter) WhereLogoURL(p entql.StringP) { + f.Where(p.Field(group.FieldLogoURL)) +} + +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *GroupFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(group.FieldDisplayName)) } // WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *IntegrationFilter) WhereHasOwner() { +func (f *GroupFilter) WhereHasOwner() { f.Where(entql.HasEdge("owner")) } // WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasOwnerWith(preds ...predicate.Organization) { +func (f *GroupFilter) WhereHasOwnerWith(preds ...predicate.Organization) { f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -8095,28 +9229,28 @@ func (f *IntegrationFilter) WhereHasOwnerWith(preds ...predicate.Organization) { }))) } -// WhereHasSecrets applies a predicate to check if query has an edge secrets. -func (f *IntegrationFilter) WhereHasSecrets() { - f.Where(entql.HasEdge("secrets")) +// WhereHasSetting applies a predicate to check if query has an edge setting. +func (f *GroupFilter) WhereHasSetting() { + f.Where(entql.HasEdge("setting")) } -// WhereHasSecretsWith applies a predicate to check if query has an edge secrets with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasSecretsWith(preds ...predicate.Hush) { - f.Where(entql.HasEdgeWith("secrets", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasSettingWith applies a predicate to check if query has an edge setting with a given conditions (other predicates). +func (f *GroupFilter) WhereHasSettingWith(preds ...predicate.GroupSetting) { + f.Where(entql.HasEdgeWith("setting", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasOauth2tokens applies a predicate to check if query has an edge oauth2tokens. -func (f *IntegrationFilter) WhereHasOauth2tokens() { - f.Where(entql.HasEdge("oauth2tokens")) +// WhereHasUsers applies a predicate to check if query has an edge users. +func (f *GroupFilter) WhereHasUsers() { + f.Where(entql.HasEdge("users")) } -// WhereHasOauth2tokensWith applies a predicate to check if query has an edge oauth2tokens with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasOauth2tokensWith(preds ...predicate.OhAuthTooToken) { - f.Where(entql.HasEdgeWith("oauth2tokens", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates). +func (f *GroupFilter) WhereHasUsersWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("users", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -8124,12 +9258,12 @@ func (f *IntegrationFilter) WhereHasOauth2tokensWith(preds ...predicate.OhAuthTo } // WhereHasEvents applies a predicate to check if query has an edge events. -func (f *IntegrationFilter) WhereHasEvents() { +func (f *GroupFilter) WhereHasEvents() { f.Where(entql.HasEdge("events")) } // WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasEventsWith(preds ...predicate.Event) { +func (f *GroupFilter) WhereHasEventsWith(preds ...predicate.Event) { f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -8137,263 +9271,285 @@ func (f *IntegrationFilter) WhereHasEventsWith(preds ...predicate.Event) { }))) } -// WhereHasWebhooks applies a predicate to check if query has an edge webhooks. -func (f *IntegrationFilter) WhereHasWebhooks() { - f.Where(entql.HasEdge("webhooks")) +// WhereHasIntegrations applies a predicate to check if query has an edge integrations. +func (f *GroupFilter) WhereHasIntegrations() { + f.Where(entql.HasEdge("integrations")) } -// WhereHasWebhooksWith applies a predicate to check if query has an edge webhooks with a given conditions (other predicates). -func (f *IntegrationFilter) WhereHasWebhooksWith(preds ...predicate.Webhook) { - f.Where(entql.HasEdgeWith("webhooks", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). +func (f *GroupFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (ihq *IntegrationHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - ihq.predicates = append(ihq.predicates, pred) +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *GroupFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// Filter returns a Filter implementation to apply filters on the IntegrationHistoryQuery builder. -func (ihq *IntegrationHistoryQuery) Filter() *IntegrationHistoryFilter { - return &IntegrationHistoryFilter{config: ihq.config, predicateAdder: ihq} +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *GroupFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// addPredicate implements the predicateAdder interface. -func (m *IntegrationHistoryMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereHasMembers applies a predicate to check if query has an edge members. +func (f *GroupFilter) WhereHasMembers() { + f.Where(entql.HasEdge("members")) } -// Filter returns an entql.Where implementation to apply filters on the IntegrationHistoryMutation builder. -func (m *IntegrationHistoryMutation) Filter() *IntegrationHistoryFilter { - return &IntegrationHistoryFilter{config: m.config, predicateAdder: m} +// WhereHasMembersWith applies a predicate to check if query has an edge members with a given conditions (other predicates). +func (f *GroupFilter) WhereHasMembersWith(preds ...predicate.GroupMembership) { + f.Where(entql.HasEdgeWith("members", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// IntegrationHistoryFilter provides a generic filtering capability at runtime for IntegrationHistoryQuery. -type IntegrationHistoryFilter struct { +// addPredicate implements the predicateAdder interface. +func (ghq *GroupHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + ghq.predicates = append(ghq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the GroupHistoryQuery builder. +func (ghq *GroupHistoryQuery) Filter() *GroupHistoryFilter { + return &GroupHistoryFilter{config: ghq.config, predicateAdder: ghq} +} + +// addPredicate implements the predicateAdder interface. +func (m *GroupHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the GroupHistoryMutation builder. +func (m *GroupHistoryMutation) Filter() *GroupHistoryFilter { + return &GroupHistoryFilter{config: m.config, predicateAdder: m} +} + +// GroupHistoryFilter provides a generic filtering capability at runtime for GroupHistoryQuery. +type GroupHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *IntegrationHistoryFilter) Where(p entql.P) { +func (f *GroupHistoryFilter) 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[29].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *IntegrationHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(integrationhistory.FieldID)) +func (f *GroupHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldID)) } // WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *IntegrationHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(integrationhistory.FieldHistoryTime)) +func (f *GroupHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(grouphistory.FieldHistoryTime)) } // WhereRef applies the entql string predicate on the ref field. -func (f *IntegrationHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(integrationhistory.FieldRef)) +func (f *GroupHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldRef)) } // WhereOperation applies the entql string predicate on the operation field. -func (f *IntegrationHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(integrationhistory.FieldOperation)) +func (f *GroupHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *IntegrationHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(integrationhistory.FieldCreatedAt)) +func (f *GroupHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(grouphistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *IntegrationHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(integrationhistory.FieldUpdatedAt)) +func (f *GroupHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(grouphistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *IntegrationHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(integrationhistory.FieldCreatedBy)) +func (f *GroupHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *IntegrationHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(integrationhistory.FieldUpdatedBy)) +func (f *GroupHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldUpdatedBy)) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *IntegrationHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(integrationhistory.FieldMappingID)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *GroupHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(grouphistory.FieldDeletedAt)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *IntegrationHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(integrationhistory.FieldTags)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *GroupHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldDeletedBy)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *IntegrationHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(integrationhistory.FieldDeletedAt)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *GroupHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldMappingID)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *IntegrationHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(integrationhistory.FieldDeletedBy)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *GroupHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(grouphistory.FieldTags)) } // WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *IntegrationHistoryFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(integrationhistory.FieldOwnerID)) +func (f *GroupHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldOwnerID)) } // WhereName applies the entql string predicate on the name field. -func (f *IntegrationHistoryFilter) WhereName(p entql.StringP) { - f.Where(p.Field(integrationhistory.FieldName)) +func (f *GroupHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldName)) } // WhereDescription applies the entql string predicate on the description field. -func (f *IntegrationHistoryFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(integrationhistory.FieldDescription)) +func (f *GroupHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldDescription)) } -// WhereKind applies the entql string predicate on the kind field. -func (f *IntegrationHistoryFilter) WhereKind(p entql.StringP) { - f.Where(p.Field(integrationhistory.FieldKind)) +// WhereGravatarLogoURL applies the entql string predicate on the gravatar_logo_url field. +func (f *GroupHistoryFilter) WhereGravatarLogoURL(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldGravatarLogoURL)) +} + +// WhereLogoURL applies the entql string predicate on the logo_url field. +func (f *GroupHistoryFilter) WhereLogoURL(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldLogoURL)) +} + +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *GroupHistoryFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(grouphistory.FieldDisplayName)) } // addPredicate implements the predicateAdder interface. -func (iq *InviteQuery) addPredicate(pred func(s *sql.Selector)) { - iq.predicates = append(iq.predicates, pred) +func (gmq *GroupMembershipQuery) addPredicate(pred func(s *sql.Selector)) { + gmq.predicates = append(gmq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the InviteQuery builder. -func (iq *InviteQuery) Filter() *InviteFilter { - return &InviteFilter{config: iq.config, predicateAdder: iq} +// Filter returns a Filter implementation to apply filters on the GroupMembershipQuery builder. +func (gmq *GroupMembershipQuery) Filter() *GroupMembershipFilter { + return &GroupMembershipFilter{config: gmq.config, predicateAdder: gmq} } // addPredicate implements the predicateAdder interface. -func (m *InviteMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *GroupMembershipMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the InviteMutation builder. -func (m *InviteMutation) Filter() *InviteFilter { - return &InviteFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the GroupMembershipMutation builder. +func (m *GroupMembershipMutation) Filter() *GroupMembershipFilter { + return &GroupMembershipFilter{config: m.config, predicateAdder: m} } -// InviteFilter provides a generic filtering capability at runtime for InviteQuery. -type InviteFilter struct { +// GroupMembershipFilter provides a generic filtering capability at runtime for GroupMembershipQuery. +type GroupMembershipFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *InviteFilter) Where(p entql.P) { +func (f *GroupMembershipFilter) 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[30].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *InviteFilter) WhereID(p entql.StringP) { - f.Where(p.Field(invite.FieldID)) +func (f *GroupMembershipFilter) WhereID(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *InviteFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(invite.FieldCreatedAt)) +func (f *GroupMembershipFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(groupmembership.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *InviteFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(invite.FieldUpdatedAt)) +func (f *GroupMembershipFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(groupmembership.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *InviteFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(invite.FieldCreatedBy)) +func (f *GroupMembershipFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *InviteFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(invite.FieldUpdatedBy)) +func (f *GroupMembershipFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *InviteFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(invite.FieldMappingID)) +func (f *GroupMembershipFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldMappingID)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *InviteFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(invite.FieldDeletedAt)) +func (f *GroupMembershipFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(groupmembership.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *InviteFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(invite.FieldDeletedBy)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *InviteFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(invite.FieldOwnerID)) -} - -// WhereToken applies the entql string predicate on the token field. -func (f *InviteFilter) WhereToken(p entql.StringP) { - f.Where(p.Field(invite.FieldToken)) -} - -// WhereExpires applies the entql time.Time predicate on the expires field. -func (f *InviteFilter) WhereExpires(p entql.TimeP) { - f.Where(p.Field(invite.FieldExpires)) -} - -// WhereRecipient applies the entql string predicate on the recipient field. -func (f *InviteFilter) WhereRecipient(p entql.StringP) { - f.Where(p.Field(invite.FieldRecipient)) +func (f *GroupMembershipFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldDeletedBy)) } -// WhereStatus applies the entql string predicate on the status field. -func (f *InviteFilter) WhereStatus(p entql.StringP) { - f.Where(p.Field(invite.FieldStatus)) +// WhereRole applies the entql string predicate on the role field. +func (f *GroupMembershipFilter) WhereRole(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldRole)) } -// WhereRole applies the entql string predicate on the role field. -func (f *InviteFilter) WhereRole(p entql.StringP) { - f.Where(p.Field(invite.FieldRole)) +// WhereGroupID applies the entql string predicate on the group_id field. +func (f *GroupMembershipFilter) WhereGroupID(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldGroupID)) } -// WhereSendAttempts applies the entql int predicate on the send_attempts field. -func (f *InviteFilter) WhereSendAttempts(p entql.IntP) { - f.Where(p.Field(invite.FieldSendAttempts)) +// WhereUserID applies the entql string predicate on the user_id field. +func (f *GroupMembershipFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(groupmembership.FieldUserID)) } -// WhereRequestorID applies the entql string predicate on the requestor_id field. -func (f *InviteFilter) WhereRequestorID(p entql.StringP) { - f.Where(p.Field(invite.FieldRequestorID)) +// WhereHasGroup applies a predicate to check if query has an edge group. +func (f *GroupMembershipFilter) WhereHasGroup() { + f.Where(entql.HasEdge("group")) } -// WhereSecret applies the entql []byte predicate on the secret field. -func (f *InviteFilter) WhereSecret(p entql.BytesP) { - f.Where(p.Field(invite.FieldSecret)) +// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). +func (f *GroupMembershipFilter) WhereHasGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *InviteFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasUser applies a predicate to check if query has an edge user. +func (f *GroupMembershipFilter) WhereHasUser() { + f.Where(entql.HasEdge("user")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *InviteFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). +func (f *GroupMembershipFilter) WhereHasUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -8401,12 +9557,12 @@ func (f *InviteFilter) WhereHasOwnerWith(preds ...predicate.Organization) { } // WhereHasEvents applies a predicate to check if query has an edge events. -func (f *InviteFilter) WhereHasEvents() { +func (f *GroupMembershipFilter) WhereHasEvents() { f.Where(entql.HasEdge("events")) } // WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *InviteFilter) WhereHasEventsWith(preds ...predicate.Event) { +func (f *GroupMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) @@ -8415,781 +9571,3536 @@ func (f *InviteFilter) WhereHasEventsWith(preds ...predicate.Event) { } // addPredicate implements the predicateAdder interface. -func (nq *NoteQuery) addPredicate(pred func(s *sql.Selector)) { - nq.predicates = append(nq.predicates, pred) +func (gmhq *GroupMembershipHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + gmhq.predicates = append(gmhq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the NoteQuery builder. -func (nq *NoteQuery) Filter() *NoteFilter { - return &NoteFilter{config: nq.config, predicateAdder: nq} +// Filter returns a Filter implementation to apply filters on the GroupMembershipHistoryQuery builder. +func (gmhq *GroupMembershipHistoryQuery) Filter() *GroupMembershipHistoryFilter { + return &GroupMembershipHistoryFilter{config: gmhq.config, predicateAdder: gmhq} } // addPredicate implements the predicateAdder interface. -func (m *NoteMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *GroupMembershipHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the NoteMutation builder. -func (m *NoteMutation) Filter() *NoteFilter { - return &NoteFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the GroupMembershipHistoryMutation builder. +func (m *GroupMembershipHistoryMutation) Filter() *GroupMembershipHistoryFilter { + return &GroupMembershipHistoryFilter{config: m.config, predicateAdder: m} } -// NoteFilter provides a generic filtering capability at runtime for NoteQuery. -type NoteFilter struct { +// GroupMembershipHistoryFilter provides a generic filtering capability at runtime for GroupMembershipHistoryQuery. +type GroupMembershipHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *NoteFilter) Where(p entql.P) { +func (f *GroupMembershipHistoryFilter) 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[31].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *NoteFilter) WhereID(p entql.StringP) { - f.Where(p.Field(note.FieldID)) +func (f *GroupMembershipHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(groupmembershiphistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *GroupMembershipHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(groupmembershiphistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *GroupMembershipHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(groupmembershiphistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *GroupMembershipHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(groupmembershiphistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *NoteFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(note.FieldCreatedAt)) +func (f *GroupMembershipHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(groupmembershiphistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *NoteFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(note.FieldUpdatedAt)) +func (f *GroupMembershipHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(groupmembershiphistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *NoteFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(note.FieldCreatedBy)) +func (f *GroupMembershipHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(groupmembershiphistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *NoteFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(note.FieldUpdatedBy)) +func (f *GroupMembershipHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(groupmembershiphistory.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *NoteFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(note.FieldMappingID)) +func (f *GroupMembershipHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(groupmembershiphistory.FieldMappingID)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *NoteFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(note.FieldDeletedAt)) +func (f *GroupMembershipHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(groupmembershiphistory.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *NoteFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(note.FieldDeletedBy)) +func (f *GroupMembershipHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(groupmembershiphistory.FieldDeletedBy)) +} + +// WhereRole applies the entql string predicate on the role field. +func (f *GroupMembershipHistoryFilter) WhereRole(p entql.StringP) { + f.Where(p.Field(groupmembershiphistory.FieldRole)) +} + +// WhereGroupID applies the entql string predicate on the group_id field. +func (f *GroupMembershipHistoryFilter) WhereGroupID(p entql.StringP) { + f.Where(p.Field(groupmembershiphistory.FieldGroupID)) +} + +// WhereUserID applies the entql string predicate on the user_id field. +func (f *GroupMembershipHistoryFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(groupmembershiphistory.FieldUserID)) +} + +// addPredicate implements the predicateAdder interface. +func (gsq *GroupSettingQuery) addPredicate(pred func(s *sql.Selector)) { + gsq.predicates = append(gsq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the GroupSettingQuery builder. +func (gsq *GroupSettingQuery) Filter() *GroupSettingFilter { + return &GroupSettingFilter{config: gsq.config, predicateAdder: gsq} +} + +// addPredicate implements the predicateAdder interface. +func (m *GroupSettingMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the GroupSettingMutation builder. +func (m *GroupSettingMutation) Filter() *GroupSettingFilter { + return &GroupSettingFilter{config: m.config, predicateAdder: m} +} + +// GroupSettingFilter provides a generic filtering capability at runtime for GroupSettingQuery. +type GroupSettingFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *GroupSettingFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[32].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *GroupSettingFilter) WhereID(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *GroupSettingFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(groupsetting.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *GroupSettingFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(groupsetting.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *GroupSettingFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *GroupSettingFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *GroupSettingFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *NoteFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(note.FieldTags)) +func (f *GroupSettingFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(groupsetting.FieldTags)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *NoteFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(note.FieldOwnerID)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *GroupSettingFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(groupsetting.FieldDeletedAt)) } -// WhereText applies the entql string predicate on the text field. -func (f *NoteFilter) WhereText(p entql.StringP) { - f.Where(p.Field(note.FieldText)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *GroupSettingFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldDeletedBy)) +} + +// WhereVisibility applies the entql string predicate on the visibility field. +func (f *GroupSettingFilter) WhereVisibility(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldVisibility)) +} + +// WhereJoinPolicy applies the entql string predicate on the join_policy field. +func (f *GroupSettingFilter) WhereJoinPolicy(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldJoinPolicy)) +} + +// WhereSyncToSlack applies the entql bool predicate on the sync_to_slack field. +func (f *GroupSettingFilter) WhereSyncToSlack(p entql.BoolP) { + f.Where(p.Field(groupsetting.FieldSyncToSlack)) +} + +// WhereSyncToGithub applies the entql bool predicate on the sync_to_github field. +func (f *GroupSettingFilter) WhereSyncToGithub(p entql.BoolP) { + f.Where(p.Field(groupsetting.FieldSyncToGithub)) +} + +// WhereGroupID applies the entql string predicate on the group_id field. +func (f *GroupSettingFilter) WhereGroupID(p entql.StringP) { + f.Where(p.Field(groupsetting.FieldGroupID)) +} + +// WhereHasGroup applies a predicate to check if query has an edge group. +func (f *GroupSettingFilter) 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 *GroupSettingFilter) WhereHasGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("group", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (gshq *GroupSettingHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + gshq.predicates = append(gshq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the GroupSettingHistoryQuery builder. +func (gshq *GroupSettingHistoryQuery) Filter() *GroupSettingHistoryFilter { + return &GroupSettingHistoryFilter{config: gshq.config, predicateAdder: gshq} +} + +// addPredicate implements the predicateAdder interface. +func (m *GroupSettingHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the GroupSettingHistoryMutation builder. +func (m *GroupSettingHistoryMutation) Filter() *GroupSettingHistoryFilter { + return &GroupSettingHistoryFilter{config: m.config, predicateAdder: m} +} + +// GroupSettingHistoryFilter provides a generic filtering capability at runtime for GroupSettingHistoryQuery. +type GroupSettingHistoryFilter struct { + predicateAdder + config +} + +// 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[33].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *GroupSettingHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(groupsettinghistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *GroupSettingHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(groupsettinghistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *GroupSettingHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(groupsettinghistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *GroupSettingHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(groupsettinghistory.FieldOperation)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *GroupSettingHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(groupsettinghistory.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *GroupSettingHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(groupsettinghistory.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *GroupSettingHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(groupsettinghistory.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *GroupSettingHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(groupsettinghistory.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *GroupSettingHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(groupsettinghistory.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *GroupSettingHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(groupsettinghistory.FieldTags)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *GroupSettingHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(groupsettinghistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *GroupSettingHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(groupsettinghistory.FieldDeletedBy)) +} + +// WhereVisibility applies the entql string predicate on the visibility field. +func (f *GroupSettingHistoryFilter) WhereVisibility(p entql.StringP) { + f.Where(p.Field(groupsettinghistory.FieldVisibility)) +} + +// WhereJoinPolicy applies the entql string predicate on the join_policy field. +func (f *GroupSettingHistoryFilter) WhereJoinPolicy(p entql.StringP) { + f.Where(p.Field(groupsettinghistory.FieldJoinPolicy)) +} + +// WhereSyncToSlack applies the entql bool predicate on the sync_to_slack field. +func (f *GroupSettingHistoryFilter) WhereSyncToSlack(p entql.BoolP) { + f.Where(p.Field(groupsettinghistory.FieldSyncToSlack)) +} + +// WhereSyncToGithub applies the entql bool predicate on the sync_to_github field. +func (f *GroupSettingHistoryFilter) WhereSyncToGithub(p entql.BoolP) { + f.Where(p.Field(groupsettinghistory.FieldSyncToGithub)) +} + +// WhereGroupID applies the entql string predicate on the group_id field. +func (f *GroupSettingHistoryFilter) WhereGroupID(p entql.StringP) { + f.Where(p.Field(groupsettinghistory.FieldGroupID)) +} + +// addPredicate implements the predicateAdder interface. +func (hq *HushQuery) addPredicate(pred func(s *sql.Selector)) { + hq.predicates = append(hq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the HushQuery builder. +func (hq *HushQuery) Filter() *HushFilter { + return &HushFilter{config: hq.config, predicateAdder: hq} +} + +// addPredicate implements the predicateAdder interface. +func (m *HushMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the HushMutation builder. +func (m *HushMutation) Filter() *HushFilter { + return &HushFilter{config: m.config, predicateAdder: m} +} + +// HushFilter provides a generic filtering capability at runtime for HushQuery. +type HushFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *HushFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[34].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *HushFilter) WhereID(p entql.StringP) { + f.Where(p.Field(hush.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *HushFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(hush.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *HushFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(hush.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *HushFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(hush.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *HushFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(hush.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *HushFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(hush.FieldMappingID)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *HushFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(hush.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *HushFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(hush.FieldDeletedBy)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *HushFilter) WhereName(p entql.StringP) { + f.Where(p.Field(hush.FieldName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *HushFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(hush.FieldDescription)) +} + +// WhereKind applies the entql string predicate on the kind field. +func (f *HushFilter) WhereKind(p entql.StringP) { + f.Where(p.Field(hush.FieldKind)) +} + +// WhereSecretName applies the entql string predicate on the secret_name field. +func (f *HushFilter) WhereSecretName(p entql.StringP) { + f.Where(p.Field(hush.FieldSecretName)) +} + +// WhereSecretValue applies the entql string predicate on the secret_value field. +func (f *HushFilter) WhereSecretValue(p entql.StringP) { + f.Where(p.Field(hush.FieldSecretValue)) +} + +// WhereHasIntegrations applies a predicate to check if query has an edge integrations. +func (f *HushFilter) WhereHasIntegrations() { + f.Where(entql.HasEdge("integrations")) +} + +// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). +func (f *HushFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasOrganization applies a predicate to check if query has an edge organization. +func (f *HushFilter) WhereHasOrganization() { + f.Where(entql.HasEdge("organization")) +} + +// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). +func (f *HushFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *HushFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) +} + +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *HushFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (hhq *HushHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + hhq.predicates = append(hhq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the HushHistoryQuery builder. +func (hhq *HushHistoryQuery) Filter() *HushHistoryFilter { + return &HushHistoryFilter{config: hhq.config, predicateAdder: hhq} +} + +// addPredicate implements the predicateAdder interface. +func (m *HushHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the HushHistoryMutation builder. +func (m *HushHistoryMutation) Filter() *HushHistoryFilter { + return &HushHistoryFilter{config: m.config, predicateAdder: m} +} + +// HushHistoryFilter provides a generic filtering capability at runtime for HushHistoryQuery. +type HushHistoryFilter struct { + predicateAdder + config +} + +// 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[35].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *HushHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(hushhistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *HushHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(hushhistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *HushHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(hushhistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *HushHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(hushhistory.FieldOperation)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *HushHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(hushhistory.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *HushHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(hushhistory.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *HushHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(hushhistory.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *HushHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(hushhistory.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *HushHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(hushhistory.FieldMappingID)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *HushHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(hushhistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *HushHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(hushhistory.FieldDeletedBy)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *HushHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(hushhistory.FieldName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *HushHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(hushhistory.FieldDescription)) +} + +// WhereKind applies the entql string predicate on the kind field. +func (f *HushHistoryFilter) WhereKind(p entql.StringP) { + f.Where(p.Field(hushhistory.FieldKind)) +} + +// WhereSecretName applies the entql string predicate on the secret_name field. +func (f *HushHistoryFilter) WhereSecretName(p entql.StringP) { + f.Where(p.Field(hushhistory.FieldSecretName)) +} + +// WhereSecretValue applies the entql string predicate on the secret_value field. +func (f *HushHistoryFilter) WhereSecretValue(p entql.StringP) { + f.Where(p.Field(hushhistory.FieldSecretValue)) +} + +// addPredicate implements the predicateAdder interface. +func (iq *IntegrationQuery) addPredicate(pred func(s *sql.Selector)) { + iq.predicates = append(iq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the IntegrationQuery builder. +func (iq *IntegrationQuery) Filter() *IntegrationFilter { + return &IntegrationFilter{config: iq.config, predicateAdder: iq} +} + +// addPredicate implements the predicateAdder interface. +func (m *IntegrationMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the IntegrationMutation builder. +func (m *IntegrationMutation) Filter() *IntegrationFilter { + return &IntegrationFilter{config: m.config, predicateAdder: m} +} + +// IntegrationFilter provides a generic filtering capability at runtime for IntegrationQuery. +type IntegrationFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *IntegrationFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[36].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *IntegrationFilter) WhereID(p entql.StringP) { + f.Where(p.Field(integration.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *IntegrationFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(integration.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *IntegrationFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(integration.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *IntegrationFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(integration.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *IntegrationFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(integration.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *IntegrationFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(integration.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *IntegrationFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(integration.FieldTags)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *IntegrationFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(integration.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *IntegrationFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(integration.FieldDeletedBy)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *IntegrationFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(integration.FieldOwnerID)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *IntegrationFilter) WhereName(p entql.StringP) { + f.Where(p.Field(integration.FieldName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *IntegrationFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(integration.FieldDescription)) +} + +// WhereKind applies the entql string predicate on the kind field. +func (f *IntegrationFilter) WhereKind(p entql.StringP) { + f.Where(p.Field(integration.FieldKind)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *IntegrationFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasSecrets applies a predicate to check if query has an edge secrets. +func (f *IntegrationFilter) WhereHasSecrets() { + f.Where(entql.HasEdge("secrets")) +} + +// WhereHasSecretsWith applies a predicate to check if query has an edge secrets with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasSecretsWith(preds ...predicate.Hush) { + f.Where(entql.HasEdgeWith("secrets", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasOauth2tokens applies a predicate to check if query has an edge oauth2tokens. +func (f *IntegrationFilter) WhereHasOauth2tokens() { + f.Where(entql.HasEdge("oauth2tokens")) +} + +// WhereHasOauth2tokensWith applies a predicate to check if query has an edge oauth2tokens with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasOauth2tokensWith(preds ...predicate.OhAuthTooToken) { + f.Where(entql.HasEdgeWith("oauth2tokens", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *IntegrationFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) +} + +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasWebhooks applies a predicate to check if query has an edge webhooks. +func (f *IntegrationFilter) WhereHasWebhooks() { + f.Where(entql.HasEdge("webhooks")) +} + +// WhereHasWebhooksWith applies a predicate to check if query has an edge webhooks with a given conditions (other predicates). +func (f *IntegrationFilter) WhereHasWebhooksWith(preds ...predicate.Webhook) { + f.Where(entql.HasEdgeWith("webhooks", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (ihq *IntegrationHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + ihq.predicates = append(ihq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the IntegrationHistoryQuery builder. +func (ihq *IntegrationHistoryQuery) Filter() *IntegrationHistoryFilter { + return &IntegrationHistoryFilter{config: ihq.config, predicateAdder: ihq} +} + +// addPredicate implements the predicateAdder interface. +func (m *IntegrationHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the IntegrationHistoryMutation builder. +func (m *IntegrationHistoryMutation) Filter() *IntegrationHistoryFilter { + return &IntegrationHistoryFilter{config: m.config, predicateAdder: m} +} + +// IntegrationHistoryFilter provides a generic filtering capability at runtime for IntegrationHistoryQuery. +type IntegrationHistoryFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *IntegrationHistoryFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[37].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *IntegrationHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(integrationhistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *IntegrationHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(integrationhistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *IntegrationHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(integrationhistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *IntegrationHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(integrationhistory.FieldOperation)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *IntegrationHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(integrationhistory.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *IntegrationHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(integrationhistory.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *IntegrationHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(integrationhistory.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *IntegrationHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(integrationhistory.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *IntegrationHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(integrationhistory.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *IntegrationHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(integrationhistory.FieldTags)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *IntegrationHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(integrationhistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *IntegrationHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(integrationhistory.FieldDeletedBy)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *IntegrationHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(integrationhistory.FieldOwnerID)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *IntegrationHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(integrationhistory.FieldName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *IntegrationHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(integrationhistory.FieldDescription)) +} + +// WhereKind applies the entql string predicate on the kind field. +func (f *IntegrationHistoryFilter) WhereKind(p entql.StringP) { + f.Where(p.Field(integrationhistory.FieldKind)) +} + +// addPredicate implements the predicateAdder interface. +func (ipq *InternalPolicyQuery) addPredicate(pred func(s *sql.Selector)) { + ipq.predicates = append(ipq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the InternalPolicyQuery builder. +func (ipq *InternalPolicyQuery) Filter() *InternalPolicyFilter { + return &InternalPolicyFilter{config: ipq.config, predicateAdder: ipq} +} + +// addPredicate implements the predicateAdder interface. +func (m *InternalPolicyMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the InternalPolicyMutation builder. +func (m *InternalPolicyMutation) Filter() *InternalPolicyFilter { + return &InternalPolicyFilter{config: m.config, predicateAdder: m} +} + +// InternalPolicyFilter provides a generic filtering capability at runtime for InternalPolicyQuery. +type InternalPolicyFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *InternalPolicyFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[38].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *InternalPolicyFilter) WhereID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *InternalPolicyFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(internalpolicy.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *InternalPolicyFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(internalpolicy.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *InternalPolicyFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *InternalPolicyFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *InternalPolicyFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(internalpolicy.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *InternalPolicyFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldDeletedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *InternalPolicyFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *InternalPolicyFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(internalpolicy.FieldTags)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *InternalPolicyFilter) WhereName(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *InternalPolicyFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldDescription)) +} + +// WhereStatus applies the entql string predicate on the status field. +func (f *InternalPolicyFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldStatus)) +} + +// WherePolicyType applies the entql string predicate on the policy_type field. +func (f *InternalPolicyFilter) WherePolicyType(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldPolicyType)) +} + +// WhereVersion applies the entql string predicate on the version field. +func (f *InternalPolicyFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldVersion)) +} + +// WherePurposeAndScope applies the entql string predicate on the purpose_and_scope field. +func (f *InternalPolicyFilter) WherePurposeAndScope(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldPurposeAndScope)) +} + +// WhereBackground applies the entql string predicate on the background field. +func (f *InternalPolicyFilter) WhereBackground(p entql.StringP) { + f.Where(p.Field(internalpolicy.FieldBackground)) +} + +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *InternalPolicyFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(internalpolicy.FieldDetails)) +} + +// WhereHasControlobjectives applies a predicate to check if query has an edge controlobjectives. +func (f *InternalPolicyFilter) WhereHasControlobjectives() { + f.Where(entql.HasEdge("controlobjectives")) +} + +// WhereHasControlobjectivesWith applies a predicate to check if query has an edge controlobjectives with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasControlobjectivesWith(preds ...predicate.ControlObjective) { + f.Where(entql.HasEdgeWith("controlobjectives", 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 *InternalPolicyFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) +} + +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasProcedures applies a predicate to check if query has an edge procedures. +func (f *InternalPolicyFilter) WhereHasProcedures() { + f.Where(entql.HasEdge("procedures")) +} + +// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasNarratives applies a predicate to check if query has an edge narratives. +func (f *InternalPolicyFilter) WhereHasNarratives() { + f.Where(entql.HasEdge("narratives")) +} + +// WhereHasNarrativesWith applies a predicate to check if query has an edge narratives with a given conditions (other predicates). +func (f *InternalPolicyFilter) WhereHasNarrativesWith(preds ...predicate.Narrative) { + f.Where(entql.HasEdgeWith("narratives", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (iphq *InternalPolicyHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + iphq.predicates = append(iphq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the InternalPolicyHistoryQuery builder. +func (iphq *InternalPolicyHistoryQuery) Filter() *InternalPolicyHistoryFilter { + return &InternalPolicyHistoryFilter{config: iphq.config, predicateAdder: iphq} +} + +// addPredicate implements the predicateAdder interface. +func (m *InternalPolicyHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the InternalPolicyHistoryMutation builder. +func (m *InternalPolicyHistoryMutation) Filter() *InternalPolicyHistoryFilter { + return &InternalPolicyHistoryFilter{config: m.config, predicateAdder: m} +} + +// InternalPolicyHistoryFilter provides a generic filtering capability at runtime for InternalPolicyHistoryQuery. +type InternalPolicyHistoryFilter struct { + predicateAdder + config +} + +// 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[39].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *InternalPolicyHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *InternalPolicyHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(internalpolicyhistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *InternalPolicyHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *InternalPolicyHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldOperation)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *InternalPolicyHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(internalpolicyhistory.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *InternalPolicyHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(internalpolicyhistory.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *InternalPolicyHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *InternalPolicyHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *InternalPolicyHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(internalpolicyhistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *InternalPolicyHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldDeletedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *InternalPolicyHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *InternalPolicyHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(internalpolicyhistory.FieldTags)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *InternalPolicyHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *InternalPolicyHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldDescription)) +} + +// WhereStatus applies the entql string predicate on the status field. +func (f *InternalPolicyHistoryFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldStatus)) +} + +// WherePolicyType applies the entql string predicate on the policy_type field. +func (f *InternalPolicyHistoryFilter) WherePolicyType(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldPolicyType)) +} + +// WhereVersion applies the entql string predicate on the version field. +func (f *InternalPolicyHistoryFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldVersion)) +} + +// WherePurposeAndScope applies the entql string predicate on the purpose_and_scope field. +func (f *InternalPolicyHistoryFilter) WherePurposeAndScope(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldPurposeAndScope)) +} + +// WhereBackground applies the entql string predicate on the background field. +func (f *InternalPolicyHistoryFilter) WhereBackground(p entql.StringP) { + f.Where(p.Field(internalpolicyhistory.FieldBackground)) +} + +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *InternalPolicyHistoryFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(internalpolicyhistory.FieldDetails)) +} + +// addPredicate implements the predicateAdder interface. +func (iq *InviteQuery) addPredicate(pred func(s *sql.Selector)) { + iq.predicates = append(iq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the InviteQuery builder. +func (iq *InviteQuery) Filter() *InviteFilter { + return &InviteFilter{config: iq.config, predicateAdder: iq} +} + +// addPredicate implements the predicateAdder interface. +func (m *InviteMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the InviteMutation builder. +func (m *InviteMutation) Filter() *InviteFilter { + return &InviteFilter{config: m.config, predicateAdder: m} +} + +// InviteFilter provides a generic filtering capability at runtime for InviteQuery. +type InviteFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *InviteFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[40].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *InviteFilter) WhereID(p entql.StringP) { + f.Where(p.Field(invite.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *InviteFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(invite.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *InviteFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(invite.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *InviteFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(invite.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *InviteFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(invite.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *InviteFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(invite.FieldMappingID)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *InviteFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(invite.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *InviteFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(invite.FieldDeletedBy)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *InviteFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(invite.FieldOwnerID)) +} + +// WhereToken applies the entql string predicate on the token field. +func (f *InviteFilter) WhereToken(p entql.StringP) { + f.Where(p.Field(invite.FieldToken)) +} + +// WhereExpires applies the entql time.Time predicate on the expires field. +func (f *InviteFilter) WhereExpires(p entql.TimeP) { + f.Where(p.Field(invite.FieldExpires)) +} + +// WhereRecipient applies the entql string predicate on the recipient field. +func (f *InviteFilter) WhereRecipient(p entql.StringP) { + f.Where(p.Field(invite.FieldRecipient)) +} + +// WhereStatus applies the entql string predicate on the status field. +func (f *InviteFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(invite.FieldStatus)) +} + +// WhereRole applies the entql string predicate on the role field. +func (f *InviteFilter) WhereRole(p entql.StringP) { + f.Where(p.Field(invite.FieldRole)) +} + +// WhereSendAttempts applies the entql int predicate on the send_attempts field. +func (f *InviteFilter) WhereSendAttempts(p entql.IntP) { + f.Where(p.Field(invite.FieldSendAttempts)) +} + +// WhereRequestorID applies the entql string predicate on the requestor_id field. +func (f *InviteFilter) WhereRequestorID(p entql.StringP) { + f.Where(p.Field(invite.FieldRequestorID)) +} + +// WhereSecret applies the entql []byte predicate on the secret field. +func (f *InviteFilter) WhereSecret(p entql.BytesP) { + f.Where(p.Field(invite.FieldSecret)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *InviteFilter) 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 *InviteFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *InviteFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) +} + +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *InviteFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (nq *NarrativeQuery) addPredicate(pred func(s *sql.Selector)) { + nq.predicates = append(nq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the NarrativeQuery builder. +func (nq *NarrativeQuery) Filter() *NarrativeFilter { + return &NarrativeFilter{config: nq.config, predicateAdder: nq} +} + +// addPredicate implements the predicateAdder interface. +func (m *NarrativeMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the NarrativeMutation builder. +func (m *NarrativeMutation) Filter() *NarrativeFilter { + return &NarrativeFilter{config: m.config, predicateAdder: m} +} + +// NarrativeFilter provides a generic filtering capability at runtime for NarrativeQuery. +type NarrativeFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *NarrativeFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[41].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *NarrativeFilter) WhereID(p entql.StringP) { + f.Where(p.Field(narrative.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *NarrativeFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(narrative.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *NarrativeFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(narrative.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *NarrativeFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(narrative.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *NarrativeFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(narrative.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *NarrativeFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(narrative.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *NarrativeFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(narrative.FieldDeletedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *NarrativeFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(narrative.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *NarrativeFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(narrative.FieldTags)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *NarrativeFilter) WhereName(p entql.StringP) { + f.Where(p.Field(narrative.FieldName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *NarrativeFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(narrative.FieldDescription)) +} + +// WhereSatisfies applies the entql string predicate on the satisfies field. +func (f *NarrativeFilter) WhereSatisfies(p entql.StringP) { + f.Where(p.Field(narrative.FieldSatisfies)) +} + +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *NarrativeFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(narrative.FieldDetails)) +} + +// WhereHasPolicy applies a predicate to check if query has an edge policy. +func (f *NarrativeFilter) WhereHasPolicy() { + f.Where(entql.HasEdge("policy")) +} + +// WhereHasPolicyWith applies a predicate to check if query has an edge policy with a given conditions (other predicates). +func (f *NarrativeFilter) WhereHasPolicyWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("policy", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasControl applies a predicate to check if query has an edge control. +func (f *NarrativeFilter) WhereHasControl() { + f.Where(entql.HasEdge("control")) +} + +// WhereHasControlWith applies a predicate to check if query has an edge control with a given conditions (other predicates). +func (f *NarrativeFilter) WhereHasControlWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("control", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasProcedure applies a predicate to check if query has an edge procedure. +func (f *NarrativeFilter) WhereHasProcedure() { + f.Where(entql.HasEdge("procedure")) +} + +// WhereHasProcedureWith applies a predicate to check if query has an edge procedure with a given conditions (other predicates). +func (f *NarrativeFilter) WhereHasProcedureWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedure", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasControlobjective applies a predicate to check if query has an edge controlobjective. +func (f *NarrativeFilter) WhereHasControlobjective() { + f.Where(entql.HasEdge("controlobjective")) +} + +// WhereHasControlobjectiveWith applies a predicate to check if query has an edge controlobjective with a given conditions (other predicates). +func (f *NarrativeFilter) WhereHasControlobjectiveWith(preds ...predicate.ControlObjective) { + f.Where(entql.HasEdgeWith("controlobjective", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (nhq *NarrativeHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + nhq.predicates = append(nhq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the NarrativeHistoryQuery builder. +func (nhq *NarrativeHistoryQuery) Filter() *NarrativeHistoryFilter { + return &NarrativeHistoryFilter{config: nhq.config, predicateAdder: nhq} +} + +// addPredicate implements the predicateAdder interface. +func (m *NarrativeHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the NarrativeHistoryMutation builder. +func (m *NarrativeHistoryMutation) Filter() *NarrativeHistoryFilter { + return &NarrativeHistoryFilter{config: m.config, predicateAdder: m} +} + +// NarrativeHistoryFilter provides a generic filtering capability at runtime for NarrativeHistoryQuery. +type NarrativeHistoryFilter struct { + predicateAdder + config +} + +// 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[42].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *NarrativeHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(narrativehistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *NarrativeHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(narrativehistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *NarrativeHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(narrativehistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *NarrativeHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(narrativehistory.FieldOperation)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *NarrativeHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(narrativehistory.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *NarrativeHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(narrativehistory.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *NarrativeHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(narrativehistory.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *NarrativeHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(narrativehistory.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *NarrativeHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(narrativehistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *NarrativeHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(narrativehistory.FieldDeletedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *NarrativeHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(narrativehistory.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *NarrativeHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(narrativehistory.FieldTags)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *NarrativeHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(narrativehistory.FieldName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *NarrativeHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(narrativehistory.FieldDescription)) +} + +// WhereSatisfies applies the entql string predicate on the satisfies field. +func (f *NarrativeHistoryFilter) WhereSatisfies(p entql.StringP) { + f.Where(p.Field(narrativehistory.FieldSatisfies)) +} + +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *NarrativeHistoryFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(narrativehistory.FieldDetails)) +} + +// addPredicate implements the predicateAdder interface. +func (nq *NoteQuery) addPredicate(pred func(s *sql.Selector)) { + nq.predicates = append(nq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the NoteQuery builder. +func (nq *NoteQuery) Filter() *NoteFilter { + return &NoteFilter{config: nq.config, predicateAdder: nq} +} + +// addPredicate implements the predicateAdder interface. +func (m *NoteMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the NoteMutation builder. +func (m *NoteMutation) Filter() *NoteFilter { + return &NoteFilter{config: m.config, predicateAdder: m} +} + +// NoteFilter provides a generic filtering capability at runtime for NoteQuery. +type NoteFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *NoteFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[43].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *NoteFilter) WhereID(p entql.StringP) { + f.Where(p.Field(note.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *NoteFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(note.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *NoteFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(note.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *NoteFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(note.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *NoteFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(note.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *NoteFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(note.FieldMappingID)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *NoteFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(note.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *NoteFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(note.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *NoteFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(note.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *NoteFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(note.FieldOwnerID)) +} + +// WhereText applies the entql string predicate on the text field. +func (f *NoteFilter) WhereText(p entql.StringP) { + f.Where(p.Field(note.FieldText)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *NoteFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) +} + +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *NoteFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasEntity applies a predicate to check if query has an edge entity. +func (f *NoteFilter) WhereHasEntity() { + f.Where(entql.HasEdge("entity")) +} + +// WhereHasEntityWith applies a predicate to check if query has an edge entity with a given conditions (other predicates). +func (f *NoteFilter) WhereHasEntityWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entity", 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 *NoteFilter) WhereHasSubcontrols() { + f.Where(entql.HasEdge("subcontrols")) +} + +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *NoteFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (nhq *NoteHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + nhq.predicates = append(nhq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the NoteHistoryQuery builder. +func (nhq *NoteHistoryQuery) Filter() *NoteHistoryFilter { + return &NoteHistoryFilter{config: nhq.config, predicateAdder: nhq} +} + +// addPredicate implements the predicateAdder interface. +func (m *NoteHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the NoteHistoryMutation builder. +func (m *NoteHistoryMutation) Filter() *NoteHistoryFilter { + return &NoteHistoryFilter{config: m.config, predicateAdder: m} +} + +// NoteHistoryFilter provides a generic filtering capability at runtime for NoteHistoryQuery. +type NoteHistoryFilter struct { + predicateAdder + config +} + +// 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[44].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *NoteHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(notehistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *NoteHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(notehistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *NoteHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(notehistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *NoteHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(notehistory.FieldOperation)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *NoteHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(notehistory.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *NoteHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(notehistory.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *NoteHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(notehistory.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *NoteHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(notehistory.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *NoteHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(notehistory.FieldMappingID)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *NoteHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(notehistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *NoteHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(notehistory.FieldDeletedBy)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *NoteHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(notehistory.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *NoteHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(notehistory.FieldOwnerID)) +} + +// WhereText applies the entql string predicate on the text field. +func (f *NoteHistoryFilter) WhereText(p entql.StringP) { + f.Where(p.Field(notehistory.FieldText)) +} + +// addPredicate implements the predicateAdder interface. +func (opq *OauthProviderQuery) addPredicate(pred func(s *sql.Selector)) { + opq.predicates = append(opq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the OauthProviderQuery builder. +func (opq *OauthProviderQuery) Filter() *OauthProviderFilter { + return &OauthProviderFilter{config: opq.config, predicateAdder: opq} +} + +// addPredicate implements the predicateAdder interface. +func (m *OauthProviderMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the OauthProviderMutation builder. +func (m *OauthProviderMutation) Filter() *OauthProviderFilter { + return &OauthProviderFilter{config: m.config, predicateAdder: m} +} + +// OauthProviderFilter provides a generic filtering capability at runtime for OauthProviderQuery. +type OauthProviderFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *OauthProviderFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[45].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *OauthProviderFilter) WhereID(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *OauthProviderFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(oauthprovider.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *OauthProviderFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(oauthprovider.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *OauthProviderFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *OauthProviderFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *OauthProviderFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *OauthProviderFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(oauthprovider.FieldTags)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *OauthProviderFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(oauthprovider.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *OauthProviderFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldDeletedBy)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *OauthProviderFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldOwnerID)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *OauthProviderFilter) WhereName(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldName)) +} + +// WhereClientID applies the entql string predicate on the client_id field. +func (f *OauthProviderFilter) WhereClientID(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldClientID)) +} + +// WhereClientSecret applies the entql string predicate on the client_secret field. +func (f *OauthProviderFilter) WhereClientSecret(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldClientSecret)) +} + +// WhereRedirectURL applies the entql string predicate on the redirect_url field. +func (f *OauthProviderFilter) WhereRedirectURL(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldRedirectURL)) +} + +// WhereScopes applies the entql string predicate on the scopes field. +func (f *OauthProviderFilter) WhereScopes(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldScopes)) +} + +// WhereAuthURL applies the entql string predicate on the auth_url field. +func (f *OauthProviderFilter) WhereAuthURL(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldAuthURL)) +} + +// WhereTokenURL applies the entql string predicate on the token_url field. +func (f *OauthProviderFilter) WhereTokenURL(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldTokenURL)) +} + +// WhereAuthStyle applies the entql uint8 predicate on the auth_style field. +func (f *OauthProviderFilter) WhereAuthStyle(p entql.Uint8P) { + f.Where(p.Field(oauthprovider.FieldAuthStyle)) +} + +// WhereInfoURL applies the entql string predicate on the info_url field. +func (f *OauthProviderFilter) WhereInfoURL(p entql.StringP) { + f.Where(p.Field(oauthprovider.FieldInfoURL)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *OauthProviderFilter) 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 *OauthProviderFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (ophq *OauthProviderHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + ophq.predicates = append(ophq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the OauthProviderHistoryQuery builder. +func (ophq *OauthProviderHistoryQuery) Filter() *OauthProviderHistoryFilter { + return &OauthProviderHistoryFilter{config: ophq.config, predicateAdder: ophq} +} + +// addPredicate implements the predicateAdder interface. +func (m *OauthProviderHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the OauthProviderHistoryMutation builder. +func (m *OauthProviderHistoryMutation) Filter() *OauthProviderHistoryFilter { + return &OauthProviderHistoryFilter{config: m.config, predicateAdder: m} +} + +// OauthProviderHistoryFilter provides a generic filtering capability at runtime for OauthProviderHistoryQuery. +type OauthProviderHistoryFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *OauthProviderHistoryFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[46].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *OauthProviderHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *OauthProviderHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(oauthproviderhistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *OauthProviderHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *OauthProviderHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldOperation)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *OauthProviderHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(oauthproviderhistory.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *OauthProviderHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(oauthproviderhistory.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *OauthProviderHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *OauthProviderHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *OauthProviderHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *OauthProviderHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(oauthproviderhistory.FieldTags)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *OauthProviderHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(oauthproviderhistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *OauthProviderHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldDeletedBy)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *OauthProviderHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldOwnerID)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *OauthProviderHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldName)) +} + +// WhereClientID applies the entql string predicate on the client_id field. +func (f *OauthProviderHistoryFilter) WhereClientID(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldClientID)) +} + +// WhereClientSecret applies the entql string predicate on the client_secret field. +func (f *OauthProviderHistoryFilter) WhereClientSecret(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldClientSecret)) +} + +// WhereRedirectURL applies the entql string predicate on the redirect_url field. +func (f *OauthProviderHistoryFilter) WhereRedirectURL(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldRedirectURL)) +} + +// WhereScopes applies the entql string predicate on the scopes field. +func (f *OauthProviderHistoryFilter) WhereScopes(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldScopes)) +} + +// WhereAuthURL applies the entql string predicate on the auth_url field. +func (f *OauthProviderHistoryFilter) WhereAuthURL(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldAuthURL)) +} + +// WhereTokenURL applies the entql string predicate on the token_url field. +func (f *OauthProviderHistoryFilter) WhereTokenURL(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldTokenURL)) +} + +// WhereAuthStyle applies the entql uint8 predicate on the auth_style field. +func (f *OauthProviderHistoryFilter) WhereAuthStyle(p entql.Uint8P) { + f.Where(p.Field(oauthproviderhistory.FieldAuthStyle)) +} + +// WhereInfoURL applies the entql string predicate on the info_url field. +func (f *OauthProviderHistoryFilter) WhereInfoURL(p entql.StringP) { + f.Where(p.Field(oauthproviderhistory.FieldInfoURL)) +} + +// addPredicate implements the predicateAdder interface. +func (oattq *OhAuthTooTokenQuery) addPredicate(pred func(s *sql.Selector)) { + oattq.predicates = append(oattq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the OhAuthTooTokenQuery builder. +func (oattq *OhAuthTooTokenQuery) Filter() *OhAuthTooTokenFilter { + return &OhAuthTooTokenFilter{config: oattq.config, predicateAdder: oattq} +} + +// addPredicate implements the predicateAdder interface. +func (m *OhAuthTooTokenMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the OhAuthTooTokenMutation builder. +func (m *OhAuthTooTokenMutation) Filter() *OhAuthTooTokenFilter { + return &OhAuthTooTokenFilter{config: m.config, predicateAdder: m} +} + +// OhAuthTooTokenFilter provides a generic filtering capability at runtime for OhAuthTooTokenQuery. +type OhAuthTooTokenFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *OhAuthTooTokenFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[47].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *OhAuthTooTokenFilter) WhereID(p entql.StringP) { + f.Where(p.Field(ohauthtootoken.FieldID)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *OhAuthTooTokenFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(ohauthtootoken.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *OhAuthTooTokenFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(ohauthtootoken.FieldTags)) +} + +// WhereClientID applies the entql string predicate on the client_id field. +func (f *OhAuthTooTokenFilter) WhereClientID(p entql.StringP) { + f.Where(p.Field(ohauthtootoken.FieldClientID)) +} + +// WhereScopes applies the entql json.RawMessage predicate on the scopes field. +func (f *OhAuthTooTokenFilter) WhereScopes(p entql.BytesP) { + f.Where(p.Field(ohauthtootoken.FieldScopes)) +} + +// WhereNonce applies the entql string predicate on the nonce field. +func (f *OhAuthTooTokenFilter) WhereNonce(p entql.StringP) { + f.Where(p.Field(ohauthtootoken.FieldNonce)) +} + +// WhereClaimsUserID applies the entql string predicate on the claims_user_id field. +func (f *OhAuthTooTokenFilter) WhereClaimsUserID(p entql.StringP) { + f.Where(p.Field(ohauthtootoken.FieldClaimsUserID)) +} + +// WhereClaimsUsername applies the entql string predicate on the claims_username field. +func (f *OhAuthTooTokenFilter) WhereClaimsUsername(p entql.StringP) { + f.Where(p.Field(ohauthtootoken.FieldClaimsUsername)) +} + +// WhereClaimsEmail applies the entql string predicate on the claims_email field. +func (f *OhAuthTooTokenFilter) WhereClaimsEmail(p entql.StringP) { + f.Where(p.Field(ohauthtootoken.FieldClaimsEmail)) +} + +// WhereClaimsEmailVerified applies the entql bool predicate on the claims_email_verified field. +func (f *OhAuthTooTokenFilter) WhereClaimsEmailVerified(p entql.BoolP) { + f.Where(p.Field(ohauthtootoken.FieldClaimsEmailVerified)) +} + +// WhereClaimsGroups applies the entql json.RawMessage predicate on the claims_groups field. +func (f *OhAuthTooTokenFilter) WhereClaimsGroups(p entql.BytesP) { + f.Where(p.Field(ohauthtootoken.FieldClaimsGroups)) +} + +// WhereClaimsPreferredUsername applies the entql string predicate on the claims_preferred_username field. +func (f *OhAuthTooTokenFilter) WhereClaimsPreferredUsername(p entql.StringP) { + f.Where(p.Field(ohauthtootoken.FieldClaimsPreferredUsername)) +} + +// WhereConnectorID applies the entql string predicate on the connector_id field. +func (f *OhAuthTooTokenFilter) WhereConnectorID(p entql.StringP) { + f.Where(p.Field(ohauthtootoken.FieldConnectorID)) +} + +// WhereConnectorData applies the entql json.RawMessage predicate on the connector_data field. +func (f *OhAuthTooTokenFilter) WhereConnectorData(p entql.BytesP) { + f.Where(p.Field(ohauthtootoken.FieldConnectorData)) +} + +// WhereLastUsed applies the entql time.Time predicate on the last_used field. +func (f *OhAuthTooTokenFilter) WhereLastUsed(p entql.TimeP) { + f.Where(p.Field(ohauthtootoken.FieldLastUsed)) +} + +// WhereHasIntegration applies a predicate to check if query has an edge integration. +func (f *OhAuthTooTokenFilter) WhereHasIntegration() { + f.Where(entql.HasEdge("integration")) +} + +// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). +func (f *OhAuthTooTokenFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *OhAuthTooTokenFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) +} + +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *OhAuthTooTokenFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (omq *OrgMembershipQuery) addPredicate(pred func(s *sql.Selector)) { + omq.predicates = append(omq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the OrgMembershipQuery builder. +func (omq *OrgMembershipQuery) Filter() *OrgMembershipFilter { + return &OrgMembershipFilter{config: omq.config, predicateAdder: omq} +} + +// addPredicate implements the predicateAdder interface. +func (m *OrgMembershipMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the OrgMembershipMutation builder. +func (m *OrgMembershipMutation) Filter() *OrgMembershipFilter { + return &OrgMembershipFilter{config: m.config, predicateAdder: m} +} + +// OrgMembershipFilter provides a generic filtering capability at runtime for OrgMembershipQuery. +type OrgMembershipFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *OrgMembershipFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[48].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *OrgMembershipFilter) WhereID(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *OrgMembershipFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(orgmembership.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *OrgMembershipFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(orgmembership.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *OrgMembershipFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *OrgMembershipFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *OrgMembershipFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldMappingID)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *OrgMembershipFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(orgmembership.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *OrgMembershipFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldDeletedBy)) +} + +// WhereRole applies the entql string predicate on the role field. +func (f *OrgMembershipFilter) WhereRole(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldRole)) +} + +// WhereOrganizationID applies the entql string predicate on the organization_id field. +func (f *OrgMembershipFilter) WhereOrganizationID(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldOrganizationID)) +} + +// WhereUserID applies the entql string predicate on the user_id field. +func (f *OrgMembershipFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(orgmembership.FieldUserID)) +} + +// WhereHasOrganization applies a predicate to check if query has an edge organization. +func (f *OrgMembershipFilter) WhereHasOrganization() { + f.Where(entql.HasEdge("organization")) +} + +// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). +func (f *OrgMembershipFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasUser applies a predicate to check if query has an edge user. +func (f *OrgMembershipFilter) WhereHasUser() { + f.Where(entql.HasEdge("user")) +} + +// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). +func (f *OrgMembershipFilter) WhereHasUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *OrgMembershipFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) +} + +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *OrgMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// addPredicate implements the predicateAdder interface. +func (omhq *OrgMembershipHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + omhq.predicates = append(omhq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the OrgMembershipHistoryQuery builder. +func (omhq *OrgMembershipHistoryQuery) Filter() *OrgMembershipHistoryFilter { + return &OrgMembershipHistoryFilter{config: omhq.config, predicateAdder: omhq} +} + +// addPredicate implements the predicateAdder interface. +func (m *OrgMembershipHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the OrgMembershipHistoryMutation builder. +func (m *OrgMembershipHistoryMutation) Filter() *OrgMembershipHistoryFilter { + return &OrgMembershipHistoryFilter{config: m.config, predicateAdder: m} +} + +// OrgMembershipHistoryFilter provides a generic filtering capability at runtime for OrgMembershipHistoryQuery. +type OrgMembershipHistoryFilter struct { + predicateAdder + config +} + +// 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[49].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *OrgMembershipHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(orgmembershiphistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *OrgMembershipHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(orgmembershiphistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *OrgMembershipHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(orgmembershiphistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *OrgMembershipHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(orgmembershiphistory.FieldOperation)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *OrgMembershipHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(orgmembershiphistory.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *OrgMembershipHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(orgmembershiphistory.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *OrgMembershipHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(orgmembershiphistory.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *OrgMembershipHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(orgmembershiphistory.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *OrgMembershipHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(orgmembershiphistory.FieldMappingID)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *OrgMembershipHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(orgmembershiphistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *OrgMembershipHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(orgmembershiphistory.FieldDeletedBy)) +} + +// WhereRole applies the entql string predicate on the role field. +func (f *OrgMembershipHistoryFilter) WhereRole(p entql.StringP) { + f.Where(p.Field(orgmembershiphistory.FieldRole)) +} + +// WhereOrganizationID applies the entql string predicate on the organization_id field. +func (f *OrgMembershipHistoryFilter) WhereOrganizationID(p entql.StringP) { + f.Where(p.Field(orgmembershiphistory.FieldOrganizationID)) +} + +// WhereUserID applies the entql string predicate on the user_id field. +func (f *OrgMembershipHistoryFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(orgmembershiphistory.FieldUserID)) +} + +// addPredicate implements the predicateAdder interface. +func (oq *OrganizationQuery) addPredicate(pred func(s *sql.Selector)) { + oq.predicates = append(oq.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the OrganizationQuery builder. +func (oq *OrganizationQuery) Filter() *OrganizationFilter { + return &OrganizationFilter{config: oq.config, predicateAdder: oq} +} + +// addPredicate implements the predicateAdder interface. +func (m *OrganizationMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the OrganizationMutation builder. +func (m *OrganizationMutation) Filter() *OrganizationFilter { + return &OrganizationFilter{config: m.config, predicateAdder: m} +} + +// OrganizationFilter provides a generic filtering capability at runtime for OrganizationQuery. +type OrganizationFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *OrganizationFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + if err := schemaGraph.EvalP(schemaGraph.Nodes[50].Type, p, s); err != nil { + s.AddError(err) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *OrganizationFilter) WhereID(p entql.StringP) { + f.Where(p.Field(organization.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *OrganizationFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(organization.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *OrganizationFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(organization.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *OrganizationFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(organization.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *OrganizationFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(organization.FieldUpdatedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *OrganizationFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(organization.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *OrganizationFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(organization.FieldTags)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *OrganizationFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(organization.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *OrganizationFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(organization.FieldDeletedBy)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *OrganizationFilter) WhereName(p entql.StringP) { + f.Where(p.Field(organization.FieldName)) +} + +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *OrganizationFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(organization.FieldDisplayName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *OrganizationFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(organization.FieldDescription)) +} + +// WhereParentOrganizationID applies the entql string predicate on the parent_organization_id field. +func (f *OrganizationFilter) WhereParentOrganizationID(p entql.StringP) { + f.Where(p.Field(organization.FieldParentOrganizationID)) +} + +// WherePersonalOrg applies the entql bool predicate on the personal_org field. +func (f *OrganizationFilter) WherePersonalOrg(p entql.BoolP) { + f.Where(p.Field(organization.FieldPersonalOrg)) +} + +// WhereAvatarRemoteURL applies the entql string predicate on the avatar_remote_url field. +func (f *OrganizationFilter) WhereAvatarRemoteURL(p entql.StringP) { + f.Where(p.Field(organization.FieldAvatarRemoteURL)) +} + +// WhereDedicatedDb applies the entql bool predicate on the dedicated_db field. +func (f *OrganizationFilter) WhereDedicatedDb(p entql.BoolP) { + f.Where(p.Field(organization.FieldDedicatedDb)) +} + +// WhereHasParent applies a predicate to check if query has an edge parent. +func (f *OrganizationFilter) WhereHasParent() { + f.Where(entql.HasEdge("parent")) +} + +// WhereHasParentWith applies a predicate to check if query has an edge parent with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasParentWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("parent", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasChildren applies a predicate to check if query has an edge children. +func (f *OrganizationFilter) WhereHasChildren() { + f.Where(entql.HasEdge("children")) +} + +// WhereHasChildrenWith applies a predicate to check if query has an edge children with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasChildrenWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("children", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasGroups applies a predicate to check if query has an edge groups. +func (f *OrganizationFilter) WhereHasGroups() { + f.Where(entql.HasEdge("groups")) +} + +// WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasGroupsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasTemplates applies a predicate to check if query has an edge templates. +func (f *OrganizationFilter) WhereHasTemplates() { + f.Where(entql.HasEdge("templates")) +} + +// WhereHasTemplatesWith applies a predicate to check if query has an edge templates with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasTemplatesWith(preds ...predicate.Template) { + f.Where(entql.HasEdgeWith("templates", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasIntegrations applies a predicate to check if query has an edge integrations. +func (f *OrganizationFilter) WhereHasIntegrations() { + f.Where(entql.HasEdge("integrations")) +} + +// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { + f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasSetting applies a predicate to check if query has an edge setting. +func (f *OrganizationFilter) WhereHasSetting() { + f.Where(entql.HasEdge("setting")) +} + +// WhereHasSettingWith applies a predicate to check if query has an edge setting with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasSettingWith(preds ...predicate.OrganizationSetting) { + f.Where(entql.HasEdgeWith("setting", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasDocumentdata applies a predicate to check if query has an edge documentdata. +func (f *OrganizationFilter) WhereHasDocumentdata() { + f.Where(entql.HasEdge("documentdata")) +} + +// WhereHasDocumentdataWith applies a predicate to check if query has an edge documentdata with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasDocumentdataWith(preds ...predicate.DocumentData) { + f.Where(entql.HasEdgeWith("documentdata", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasEntitlements applies a predicate to check if query has an edge entitlements. +func (f *OrganizationFilter) WhereHasEntitlements() { + f.Where(entql.HasEdge("entitlements")) +} + +// WhereHasEntitlementsWith applies a predicate to check if query has an edge entitlements with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasEntitlementsWith(preds ...predicate.Entitlement) { + f.Where(entql.HasEdgeWith("entitlements", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasOrganizationEntitlement applies a predicate to check if query has an edge organization_entitlement. +func (f *OrganizationFilter) WhereHasOrganizationEntitlement() { + f.Where(entql.HasEdge("organization_entitlement")) +} + +// WhereHasOrganizationEntitlementWith applies a predicate to check if query has an edge organization_entitlement with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasOrganizationEntitlementWith(preds ...predicate.Entitlement) { + f.Where(entql.HasEdgeWith("organization_entitlement", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasPersonalAccessTokens applies a predicate to check if query has an edge personal_access_tokens. +func (f *OrganizationFilter) WhereHasPersonalAccessTokens() { + f.Where(entql.HasEdge("personal_access_tokens")) +} + +// WhereHasPersonalAccessTokensWith applies a predicate to check if query has an edge personal_access_tokens with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasPersonalAccessTokensWith(preds ...predicate.PersonalAccessToken) { + f.Where(entql.HasEdgeWith("personal_access_tokens", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasAPITokens applies a predicate to check if query has an edge api_tokens. +func (f *OrganizationFilter) WhereHasAPITokens() { + f.Where(entql.HasEdge("api_tokens")) +} + +// WhereHasAPITokensWith applies a predicate to check if query has an edge api_tokens with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasAPITokensWith(preds ...predicate.APIToken) { + f.Where(entql.HasEdgeWith("api_tokens", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasOauthprovider applies a predicate to check if query has an edge oauthprovider. +func (f *OrganizationFilter) WhereHasOauthprovider() { + f.Where(entql.HasEdge("oauthprovider")) +} + +// WhereHasOauthproviderWith applies a predicate to check if query has an edge oauthprovider with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasOauthproviderWith(preds ...predicate.OauthProvider) { + f.Where(entql.HasEdgeWith("oauthprovider", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasUsers applies a predicate to check if query has an edge users. +func (f *OrganizationFilter) WhereHasUsers() { + f.Where(entql.HasEdge("users")) +} + +// WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasUsersWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("users", 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 *OrganizationFilter) WhereHasInvites() { + f.Where(entql.HasEdge("invites")) +} + +// WhereHasInvitesWith applies a predicate to check if query has an edge invites with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasInvitesWith(preds ...predicate.Invite) { + f.Where(entql.HasEdgeWith("invites", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasSubscribers applies a predicate to check if query has an edge subscribers. +func (f *OrganizationFilter) WhereHasSubscribers() { + f.Where(entql.HasEdge("subscribers")) +} + +// WhereHasSubscribersWith applies a predicate to check if query has an edge subscribers with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasSubscribersWith(preds ...predicate.Subscriber) { + f.Where(entql.HasEdgeWith("subscribers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *NoteFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereHasWebhooks applies a predicate to check if query has an edge webhooks. +func (f *OrganizationFilter) WhereHasWebhooks() { + f.Where(entql.HasEdge("webhooks")) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *NoteFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasWebhooksWith applies a predicate to check if query has an edge webhooks with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasWebhooksWith(preds ...predicate.Webhook) { + f.Where(entql.HasEdgeWith("webhooks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntity applies a predicate to check if query has an edge entity. -func (f *NoteFilter) WhereHasEntity() { - f.Where(entql.HasEdge("entity")) +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *OrganizationFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) } -// WhereHasEntityWith applies a predicate to check if query has an edge entity with a given conditions (other predicates). -func (f *NoteFilter) WhereHasEntityWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entity", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// addPredicate implements the predicateAdder interface. -func (nhq *NoteHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - nhq.predicates = append(nhq.predicates, pred) +// WhereHasSecrets applies a predicate to check if query has an edge secrets. +func (f *OrganizationFilter) WhereHasSecrets() { + f.Where(entql.HasEdge("secrets")) } -// Filter returns a Filter implementation to apply filters on the NoteHistoryQuery builder. -func (nhq *NoteHistoryQuery) Filter() *NoteHistoryFilter { - return &NoteHistoryFilter{config: nhq.config, predicateAdder: nhq} +// WhereHasSecretsWith applies a predicate to check if query has an edge secrets with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasSecretsWith(preds ...predicate.Hush) { + f.Where(entql.HasEdgeWith("secrets", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// addPredicate implements the predicateAdder interface. -func (m *NoteHistoryMutation) addPredicate(pred func(s *sql.Selector)) { - m.predicates = append(m.predicates, pred) +// WhereHasFeatures applies a predicate to check if query has an edge features. +func (f *OrganizationFilter) WhereHasFeatures() { + f.Where(entql.HasEdge("features")) } -// Filter returns an entql.Where implementation to apply filters on the NoteHistoryMutation builder. -func (m *NoteHistoryMutation) Filter() *NoteHistoryFilter { - return &NoteHistoryFilter{config: m.config, predicateAdder: m} +// WhereHasFeaturesWith applies a predicate to check if query has an edge features with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasFeaturesWith(preds ...predicate.Feature) { + f.Where(entql.HasEdgeWith("features", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// NoteHistoryFilter provides a generic filtering capability at runtime for NoteHistoryQuery. -type NoteHistoryFilter struct { - predicateAdder - config +// WhereHasFiles applies a predicate to check if query has an edge files. +func (f *OrganizationFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) } -// 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[34].Type, p, s); err != nil { - s.AddError(err) +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) } - }) + }))) } -// WhereID applies the entql string predicate on the id field. -func (f *NoteHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(notehistory.FieldID)) +// WhereHasEntitlementplans applies a predicate to check if query has an edge entitlementplans. +func (f *OrganizationFilter) WhereHasEntitlementplans() { + f.Where(entql.HasEdge("entitlementplans")) } -// WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *NoteHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(notehistory.FieldHistoryTime)) +// WhereHasEntitlementplansWith applies a predicate to check if query has an edge entitlementplans with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasEntitlementplansWith(preds ...predicate.EntitlementPlan) { + f.Where(entql.HasEdgeWith("entitlementplans", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereRef applies the entql string predicate on the ref field. -func (f *NoteHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(notehistory.FieldRef)) +// WhereHasEntitlementplanfeatures applies a predicate to check if query has an edge entitlementplanfeatures. +func (f *OrganizationFilter) WhereHasEntitlementplanfeatures() { + f.Where(entql.HasEdge("entitlementplanfeatures")) } -// WhereOperation applies the entql string predicate on the operation field. -func (f *NoteHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(notehistory.FieldOperation)) +// WhereHasEntitlementplanfeaturesWith applies a predicate to check if query has an edge entitlementplanfeatures with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasEntitlementplanfeaturesWith(preds ...predicate.EntitlementPlanFeature) { + f.Where(entql.HasEdgeWith("entitlementplanfeatures", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *NoteHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(notehistory.FieldCreatedAt)) +// WhereHasEntities applies a predicate to check if query has an edge entities. +func (f *OrganizationFilter) WhereHasEntities() { + f.Where(entql.HasEdge("entities")) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *NoteHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(notehistory.FieldUpdatedAt)) +// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { + f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *NoteHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(notehistory.FieldCreatedBy)) +// WhereHasEntitytypes applies a predicate to check if query has an edge entitytypes. +func (f *OrganizationFilter) WhereHasEntitytypes() { + f.Where(entql.HasEdge("entitytypes")) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *NoteHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(notehistory.FieldUpdatedBy)) +// WhereHasEntitytypesWith applies a predicate to check if query has an edge entitytypes with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasEntitytypesWith(preds ...predicate.EntityType) { + f.Where(entql.HasEdgeWith("entitytypes", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *NoteHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(notehistory.FieldMappingID)) +// WhereHasContacts applies a predicate to check if query has an edge contacts. +func (f *OrganizationFilter) WhereHasContacts() { + f.Where(entql.HasEdge("contacts")) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *NoteHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(notehistory.FieldDeletedAt)) +// WhereHasContactsWith applies a predicate to check if query has an edge contacts with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasContactsWith(preds ...predicate.Contact) { + f.Where(entql.HasEdgeWith("contacts", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *NoteHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(notehistory.FieldDeletedBy)) +// WhereHasNotes applies a predicate to check if query has an edge notes. +func (f *OrganizationFilter) WhereHasNotes() { + f.Where(entql.HasEdge("notes")) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *NoteHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(notehistory.FieldTags)) +// WhereHasNotesWith applies a predicate to check if query has an edge notes with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasNotesWith(preds ...predicate.Note) { + f.Where(entql.HasEdgeWith("notes", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *NoteHistoryFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(notehistory.FieldOwnerID)) +// WhereHasMembers applies a predicate to check if query has an edge members. +func (f *OrganizationFilter) WhereHasMembers() { + f.Where(entql.HasEdge("members")) } -// WhereText applies the entql string predicate on the text field. -func (f *NoteHistoryFilter) WhereText(p entql.StringP) { - f.Where(p.Field(notehistory.FieldText)) +// WhereHasMembersWith applies a predicate to check if query has an edge members with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasMembersWith(preds ...predicate.OrgMembership) { + f.Where(entql.HasEdgeWith("members", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } // addPredicate implements the predicateAdder interface. -func (opq *OauthProviderQuery) addPredicate(pred func(s *sql.Selector)) { - opq.predicates = append(opq.predicates, pred) +func (ohq *OrganizationHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + ohq.predicates = append(ohq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the OauthProviderQuery builder. -func (opq *OauthProviderQuery) Filter() *OauthProviderFilter { - return &OauthProviderFilter{config: opq.config, predicateAdder: opq} +// Filter returns a Filter implementation to apply filters on the OrganizationHistoryQuery builder. +func (ohq *OrganizationHistoryQuery) Filter() *OrganizationHistoryFilter { + return &OrganizationHistoryFilter{config: ohq.config, predicateAdder: ohq} } // addPredicate implements the predicateAdder interface. -func (m *OauthProviderMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *OrganizationHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the OauthProviderMutation builder. -func (m *OauthProviderMutation) Filter() *OauthProviderFilter { - return &OauthProviderFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the OrganizationHistoryMutation builder. +func (m *OrganizationHistoryMutation) Filter() *OrganizationHistoryFilter { + return &OrganizationHistoryFilter{config: m.config, predicateAdder: m} } -// OauthProviderFilter provides a generic filtering capability at runtime for OauthProviderQuery. -type OauthProviderFilter struct { +// OrganizationHistoryFilter provides a generic filtering capability at runtime for OrganizationHistoryQuery. +type OrganizationHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *OauthProviderFilter) Where(p entql.P) { +func (f *OrganizationHistoryFilter) 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[51].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *OauthProviderFilter) WhereID(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldID)) +func (f *OrganizationHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(organizationhistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *OrganizationHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(organizationhistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *OrganizationHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(organizationhistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *OrganizationHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(organizationhistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OauthProviderFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(oauthprovider.FieldCreatedAt)) +func (f *OrganizationHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(organizationhistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OauthProviderFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(oauthprovider.FieldUpdatedAt)) +func (f *OrganizationHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(organizationhistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OauthProviderFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldCreatedBy)) +func (f *OrganizationHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(organizationhistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OauthProviderFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldUpdatedBy)) +func (f *OrganizationHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(organizationhistory.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *OauthProviderFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldMappingID)) +func (f *OrganizationHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(organizationhistory.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *OauthProviderFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(oauthprovider.FieldTags)) +func (f *OrganizationHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(organizationhistory.FieldTags)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OauthProviderFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(oauthprovider.FieldDeletedAt)) +func (f *OrganizationHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(organizationhistory.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OauthProviderFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldDeletedBy)) -} - -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *OauthProviderFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldOwnerID)) +func (f *OrganizationHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(organizationhistory.FieldDeletedBy)) } // WhereName applies the entql string predicate on the name field. -func (f *OauthProviderFilter) WhereName(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldName)) -} - -// WhereClientID applies the entql string predicate on the client_id field. -func (f *OauthProviderFilter) WhereClientID(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldClientID)) -} - -// WhereClientSecret applies the entql string predicate on the client_secret field. -func (f *OauthProviderFilter) WhereClientSecret(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldClientSecret)) -} - -// WhereRedirectURL applies the entql string predicate on the redirect_url field. -func (f *OauthProviderFilter) WhereRedirectURL(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldRedirectURL)) -} - -// WhereScopes applies the entql string predicate on the scopes field. -func (f *OauthProviderFilter) WhereScopes(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldScopes)) +func (f *OrganizationHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(organizationhistory.FieldName)) } -// WhereAuthURL applies the entql string predicate on the auth_url field. -func (f *OauthProviderFilter) WhereAuthURL(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldAuthURL)) +// WhereDisplayName applies the entql string predicate on the display_name field. +func (f *OrganizationHistoryFilter) WhereDisplayName(p entql.StringP) { + f.Where(p.Field(organizationhistory.FieldDisplayName)) } -// WhereTokenURL applies the entql string predicate on the token_url field. -func (f *OauthProviderFilter) WhereTokenURL(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldTokenURL)) +// WhereDescription applies the entql string predicate on the description field. +func (f *OrganizationHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(organizationhistory.FieldDescription)) } -// WhereAuthStyle applies the entql uint8 predicate on the auth_style field. -func (f *OauthProviderFilter) WhereAuthStyle(p entql.Uint8P) { - f.Where(p.Field(oauthprovider.FieldAuthStyle)) +// WhereParentOrganizationID applies the entql string predicate on the parent_organization_id field. +func (f *OrganizationHistoryFilter) WhereParentOrganizationID(p entql.StringP) { + f.Where(p.Field(organizationhistory.FieldParentOrganizationID)) } -// WhereInfoURL applies the entql string predicate on the info_url field. -func (f *OauthProviderFilter) WhereInfoURL(p entql.StringP) { - f.Where(p.Field(oauthprovider.FieldInfoURL)) +// WherePersonalOrg applies the entql bool predicate on the personal_org field. +func (f *OrganizationHistoryFilter) WherePersonalOrg(p entql.BoolP) { + f.Where(p.Field(organizationhistory.FieldPersonalOrg)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *OauthProviderFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereAvatarRemoteURL applies the entql string predicate on the avatar_remote_url field. +func (f *OrganizationHistoryFilter) WhereAvatarRemoteURL(p entql.StringP) { + f.Where(p.Field(organizationhistory.FieldAvatarRemoteURL)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *OauthProviderFilter) WhereHasOwnerWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDedicatedDb applies the entql bool predicate on the dedicated_db field. +func (f *OrganizationHistoryFilter) WhereDedicatedDb(p entql.BoolP) { + f.Where(p.Field(organizationhistory.FieldDedicatedDb)) } // addPredicate implements the predicateAdder interface. -func (ophq *OauthProviderHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - ophq.predicates = append(ophq.predicates, pred) +func (osq *OrganizationSettingQuery) addPredicate(pred func(s *sql.Selector)) { + osq.predicates = append(osq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the OauthProviderHistoryQuery builder. -func (ophq *OauthProviderHistoryQuery) Filter() *OauthProviderHistoryFilter { - return &OauthProviderHistoryFilter{config: ophq.config, predicateAdder: ophq} +// Filter returns a Filter implementation to apply filters on the OrganizationSettingQuery builder. +func (osq *OrganizationSettingQuery) Filter() *OrganizationSettingFilter { + return &OrganizationSettingFilter{config: osq.config, predicateAdder: osq} } // addPredicate implements the predicateAdder interface. -func (m *OauthProviderHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *OrganizationSettingMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the OauthProviderHistoryMutation builder. -func (m *OauthProviderHistoryMutation) Filter() *OauthProviderHistoryFilter { - return &OauthProviderHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the OrganizationSettingMutation builder. +func (m *OrganizationSettingMutation) Filter() *OrganizationSettingFilter { + return &OrganizationSettingFilter{config: m.config, predicateAdder: m} } -// OauthProviderHistoryFilter provides a generic filtering capability at runtime for OauthProviderHistoryQuery. -type OauthProviderHistoryFilter struct { +// OrganizationSettingFilter provides a generic filtering capability at runtime for OrganizationSettingQuery. +type OrganizationSettingFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *OauthProviderHistoryFilter) Where(p entql.P) { +func (f *OrganizationSettingFilter) 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[52].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *OauthProviderHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldID)) -} - -// WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *OauthProviderHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(oauthproviderhistory.FieldHistoryTime)) -} - -// WhereRef applies the entql string predicate on the ref field. -func (f *OauthProviderHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldRef)) -} - -// WhereOperation applies the entql string predicate on the operation field. -func (f *OauthProviderHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldOperation)) +func (f *OrganizationSettingFilter) WhereID(p entql.StringP) { + f.Where(p.Field(organizationsetting.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OauthProviderHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(oauthproviderhistory.FieldCreatedAt)) +func (f *OrganizationSettingFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(organizationsetting.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OauthProviderHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(oauthproviderhistory.FieldUpdatedAt)) +func (f *OrganizationSettingFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(organizationsetting.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OauthProviderHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldCreatedBy)) +func (f *OrganizationSettingFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(organizationsetting.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OauthProviderHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldUpdatedBy)) +func (f *OrganizationSettingFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(organizationsetting.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *OauthProviderHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldMappingID)) +func (f *OrganizationSettingFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(organizationsetting.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *OauthProviderHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(oauthproviderhistory.FieldTags)) +func (f *OrganizationSettingFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(organizationsetting.FieldTags)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OauthProviderHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(oauthproviderhistory.FieldDeletedAt)) +func (f *OrganizationSettingFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(organizationsetting.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OauthProviderHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldDeletedBy)) +func (f *OrganizationSettingFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(organizationsetting.FieldDeletedBy)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *OauthProviderHistoryFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldOwnerID)) +// WhereDomains applies the entql json.RawMessage predicate on the domains field. +func (f *OrganizationSettingFilter) WhereDomains(p entql.BytesP) { + f.Where(p.Field(organizationsetting.FieldDomains)) } -// WhereName applies the entql string predicate on the name field. -func (f *OauthProviderHistoryFilter) WhereName(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldName)) +// WhereBillingContact applies the entql string predicate on the billing_contact field. +func (f *OrganizationSettingFilter) WhereBillingContact(p entql.StringP) { + f.Where(p.Field(organizationsetting.FieldBillingContact)) } -// WhereClientID applies the entql string predicate on the client_id field. -func (f *OauthProviderHistoryFilter) WhereClientID(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldClientID)) +// WhereBillingEmail applies the entql string predicate on the billing_email field. +func (f *OrganizationSettingFilter) WhereBillingEmail(p entql.StringP) { + f.Where(p.Field(organizationsetting.FieldBillingEmail)) } -// WhereClientSecret applies the entql string predicate on the client_secret field. -func (f *OauthProviderHistoryFilter) WhereClientSecret(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldClientSecret)) +// WhereBillingPhone applies the entql string predicate on the billing_phone field. +func (f *OrganizationSettingFilter) WhereBillingPhone(p entql.StringP) { + f.Where(p.Field(organizationsetting.FieldBillingPhone)) } -// WhereRedirectURL applies the entql string predicate on the redirect_url field. -func (f *OauthProviderHistoryFilter) WhereRedirectURL(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldRedirectURL)) +// WhereBillingAddress applies the entql string predicate on the billing_address field. +func (f *OrganizationSettingFilter) WhereBillingAddress(p entql.StringP) { + f.Where(p.Field(organizationsetting.FieldBillingAddress)) } -// WhereScopes applies the entql string predicate on the scopes field. -func (f *OauthProviderHistoryFilter) WhereScopes(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldScopes)) +// WhereTaxIdentifier applies the entql string predicate on the tax_identifier field. +func (f *OrganizationSettingFilter) WhereTaxIdentifier(p entql.StringP) { + f.Where(p.Field(organizationsetting.FieldTaxIdentifier)) } -// WhereAuthURL applies the entql string predicate on the auth_url field. -func (f *OauthProviderHistoryFilter) WhereAuthURL(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldAuthURL)) +// WhereGeoLocation applies the entql string predicate on the geo_location field. +func (f *OrganizationSettingFilter) WhereGeoLocation(p entql.StringP) { + f.Where(p.Field(organizationsetting.FieldGeoLocation)) } -// WhereTokenURL applies the entql string predicate on the token_url field. -func (f *OauthProviderHistoryFilter) WhereTokenURL(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldTokenURL)) +// WhereOrganizationID applies the entql string predicate on the organization_id field. +func (f *OrganizationSettingFilter) WhereOrganizationID(p entql.StringP) { + f.Where(p.Field(organizationsetting.FieldOrganizationID)) } -// WhereAuthStyle applies the entql uint8 predicate on the auth_style field. -func (f *OauthProviderHistoryFilter) WhereAuthStyle(p entql.Uint8P) { - f.Where(p.Field(oauthproviderhistory.FieldAuthStyle)) +// WhereHasOrganization applies a predicate to check if query has an edge organization. +func (f *OrganizationSettingFilter) WhereHasOrganization() { + f.Where(entql.HasEdge("organization")) } -// WhereInfoURL applies the entql string predicate on the info_url field. -func (f *OauthProviderHistoryFilter) WhereInfoURL(p entql.StringP) { - f.Where(p.Field(oauthproviderhistory.FieldInfoURL)) +// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). +func (f *OrganizationSettingFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("organization", 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 *OrganizationSettingFilter) WhereHasFiles() { + f.Where(entql.HasEdge("files")) +} + +// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). +func (f *OrganizationSettingFilter) WhereHasFilesWith(preds ...predicate.File) { + f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } // addPredicate implements the predicateAdder interface. -func (oattq *OhAuthTooTokenQuery) addPredicate(pred func(s *sql.Selector)) { - oattq.predicates = append(oattq.predicates, pred) +func (oshq *OrganizationSettingHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + oshq.predicates = append(oshq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the OhAuthTooTokenQuery builder. -func (oattq *OhAuthTooTokenQuery) Filter() *OhAuthTooTokenFilter { - return &OhAuthTooTokenFilter{config: oattq.config, predicateAdder: oattq} +// Filter returns a Filter implementation to apply filters on the OrganizationSettingHistoryQuery builder. +func (oshq *OrganizationSettingHistoryQuery) Filter() *OrganizationSettingHistoryFilter { + return &OrganizationSettingHistoryFilter{config: oshq.config, predicateAdder: oshq} } // addPredicate implements the predicateAdder interface. -func (m *OhAuthTooTokenMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *OrganizationSettingHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the OhAuthTooTokenMutation builder. -func (m *OhAuthTooTokenMutation) Filter() *OhAuthTooTokenFilter { - return &OhAuthTooTokenFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the OrganizationSettingHistoryMutation builder. +func (m *OrganizationSettingHistoryMutation) Filter() *OrganizationSettingHistoryFilter { + return &OrganizationSettingHistoryFilter{config: m.config, predicateAdder: m} } -// OhAuthTooTokenFilter provides a generic filtering capability at runtime for OhAuthTooTokenQuery. -type OhAuthTooTokenFilter struct { +// OrganizationSettingHistoryFilter provides a generic filtering capability at runtime for OrganizationSettingHistoryQuery. +type OrganizationSettingHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *OhAuthTooTokenFilter) Where(p entql.P) { +func (f *OrganizationSettingHistoryFilter) 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[53].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *OhAuthTooTokenFilter) WhereID(p entql.StringP) { - f.Where(p.Field(ohauthtootoken.FieldID)) +func (f *OrganizationSettingHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldID)) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *OhAuthTooTokenFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(ohauthtootoken.FieldMappingID)) +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *OrganizationSettingHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(organizationsettinghistory.FieldHistoryTime)) } -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *OhAuthTooTokenFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(ohauthtootoken.FieldTags)) +// WhereRef applies the entql string predicate on the ref field. +func (f *OrganizationSettingHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldRef)) } -// WhereClientID applies the entql string predicate on the client_id field. -func (f *OhAuthTooTokenFilter) WhereClientID(p entql.StringP) { - f.Where(p.Field(ohauthtootoken.FieldClientID)) +// WhereOperation applies the entql string predicate on the operation field. +func (f *OrganizationSettingHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldOperation)) } -// WhereScopes applies the entql json.RawMessage predicate on the scopes field. -func (f *OhAuthTooTokenFilter) WhereScopes(p entql.BytesP) { - f.Where(p.Field(ohauthtootoken.FieldScopes)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *OrganizationSettingHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(organizationsettinghistory.FieldCreatedAt)) } -// WhereNonce applies the entql string predicate on the nonce field. -func (f *OhAuthTooTokenFilter) WhereNonce(p entql.StringP) { - f.Where(p.Field(ohauthtootoken.FieldNonce)) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *OrganizationSettingHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(organizationsettinghistory.FieldUpdatedAt)) } -// WhereClaimsUserID applies the entql string predicate on the claims_user_id field. -func (f *OhAuthTooTokenFilter) WhereClaimsUserID(p entql.StringP) { - f.Where(p.Field(ohauthtootoken.FieldClaimsUserID)) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *OrganizationSettingHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldCreatedBy)) } -// WhereClaimsUsername applies the entql string predicate on the claims_username field. -func (f *OhAuthTooTokenFilter) WhereClaimsUsername(p entql.StringP) { - f.Where(p.Field(ohauthtootoken.FieldClaimsUsername)) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *OrganizationSettingHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldUpdatedBy)) } -// WhereClaimsEmail applies the entql string predicate on the claims_email field. -func (f *OhAuthTooTokenFilter) WhereClaimsEmail(p entql.StringP) { - f.Where(p.Field(ohauthtootoken.FieldClaimsEmail)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *OrganizationSettingHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldMappingID)) } -// WhereClaimsEmailVerified applies the entql bool predicate on the claims_email_verified field. -func (f *OhAuthTooTokenFilter) WhereClaimsEmailVerified(p entql.BoolP) { - f.Where(p.Field(ohauthtootoken.FieldClaimsEmailVerified)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *OrganizationSettingHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(organizationsettinghistory.FieldTags)) } -// WhereClaimsGroups applies the entql json.RawMessage predicate on the claims_groups field. -func (f *OhAuthTooTokenFilter) WhereClaimsGroups(p entql.BytesP) { - f.Where(p.Field(ohauthtootoken.FieldClaimsGroups)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *OrganizationSettingHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(organizationsettinghistory.FieldDeletedAt)) } -// WhereClaimsPreferredUsername applies the entql string predicate on the claims_preferred_username field. -func (f *OhAuthTooTokenFilter) WhereClaimsPreferredUsername(p entql.StringP) { - f.Where(p.Field(ohauthtootoken.FieldClaimsPreferredUsername)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *OrganizationSettingHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldDeletedBy)) } -// WhereConnectorID applies the entql string predicate on the connector_id field. -func (f *OhAuthTooTokenFilter) WhereConnectorID(p entql.StringP) { - f.Where(p.Field(ohauthtootoken.FieldConnectorID)) +// WhereDomains applies the entql json.RawMessage predicate on the domains field. +func (f *OrganizationSettingHistoryFilter) WhereDomains(p entql.BytesP) { + f.Where(p.Field(organizationsettinghistory.FieldDomains)) } -// WhereConnectorData applies the entql json.RawMessage predicate on the connector_data field. -func (f *OhAuthTooTokenFilter) WhereConnectorData(p entql.BytesP) { - f.Where(p.Field(ohauthtootoken.FieldConnectorData)) +// WhereBillingContact applies the entql string predicate on the billing_contact field. +func (f *OrganizationSettingHistoryFilter) WhereBillingContact(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldBillingContact)) } -// WhereLastUsed applies the entql time.Time predicate on the last_used field. -func (f *OhAuthTooTokenFilter) WhereLastUsed(p entql.TimeP) { - f.Where(p.Field(ohauthtootoken.FieldLastUsed)) +// WhereBillingEmail applies the entql string predicate on the billing_email field. +func (f *OrganizationSettingHistoryFilter) WhereBillingEmail(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldBillingEmail)) } -// WhereHasIntegration applies a predicate to check if query has an edge integration. -func (f *OhAuthTooTokenFilter) WhereHasIntegration() { - f.Where(entql.HasEdge("integration")) +// WhereBillingPhone applies the entql string predicate on the billing_phone field. +func (f *OrganizationSettingHistoryFilter) WhereBillingPhone(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldBillingPhone)) } -// WhereHasIntegrationWith applies a predicate to check if query has an edge integration with a given conditions (other predicates). -func (f *OhAuthTooTokenFilter) WhereHasIntegrationWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integration", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereBillingAddress applies the entql string predicate on the billing_address field. +func (f *OrganizationSettingHistoryFilter) WhereBillingAddress(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldBillingAddress)) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *OhAuthTooTokenFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereTaxIdentifier applies the entql string predicate on the tax_identifier field. +func (f *OrganizationSettingHistoryFilter) WhereTaxIdentifier(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldTaxIdentifier)) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *OhAuthTooTokenFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereGeoLocation applies the entql string predicate on the geo_location field. +func (f *OrganizationSettingHistoryFilter) WhereGeoLocation(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldGeoLocation)) +} + +// WhereOrganizationID applies the entql string predicate on the organization_id field. +func (f *OrganizationSettingHistoryFilter) WhereOrganizationID(p entql.StringP) { + f.Where(p.Field(organizationsettinghistory.FieldOrganizationID)) } // addPredicate implements the predicateAdder interface. -func (omq *OrgMembershipQuery) addPredicate(pred func(s *sql.Selector)) { - omq.predicates = append(omq.predicates, pred) +func (prtq *PasswordResetTokenQuery) addPredicate(pred func(s *sql.Selector)) { + prtq.predicates = append(prtq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the OrgMembershipQuery builder. -func (omq *OrgMembershipQuery) Filter() *OrgMembershipFilter { - return &OrgMembershipFilter{config: omq.config, predicateAdder: omq} +// Filter returns a Filter implementation to apply filters on the PasswordResetTokenQuery builder. +func (prtq *PasswordResetTokenQuery) Filter() *PasswordResetTokenFilter { + return &PasswordResetTokenFilter{config: prtq.config, predicateAdder: prtq} } // addPredicate implements the predicateAdder interface. -func (m *OrgMembershipMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *PasswordResetTokenMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the OrgMembershipMutation builder. -func (m *OrgMembershipMutation) Filter() *OrgMembershipFilter { - return &OrgMembershipFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the PasswordResetTokenMutation builder. +func (m *PasswordResetTokenMutation) Filter() *PasswordResetTokenFilter { + return &PasswordResetTokenFilter{config: m.config, predicateAdder: m} } -// OrgMembershipFilter provides a generic filtering capability at runtime for OrgMembershipQuery. -type OrgMembershipFilter struct { +// PasswordResetTokenFilter provides a generic filtering capability at runtime for PasswordResetTokenQuery. +type PasswordResetTokenFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *OrgMembershipFilter) Where(p entql.P) { +func (f *PasswordResetTokenFilter) 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[54].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *OrgMembershipFilter) WhereID(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldID)) +func (f *PasswordResetTokenFilter) WhereID(p entql.StringP) { + f.Where(p.Field(passwordresettoken.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OrgMembershipFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(orgmembership.FieldCreatedAt)) +func (f *PasswordResetTokenFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(passwordresettoken.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OrgMembershipFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(orgmembership.FieldUpdatedAt)) +func (f *PasswordResetTokenFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(passwordresettoken.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OrgMembershipFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldCreatedBy)) +func (f *PasswordResetTokenFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(passwordresettoken.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OrgMembershipFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldUpdatedBy)) +func (f *PasswordResetTokenFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(passwordresettoken.FieldUpdatedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *OrgMembershipFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldMappingID)) +func (f *PasswordResetTokenFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(passwordresettoken.FieldMappingID)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OrgMembershipFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(orgmembership.FieldDeletedAt)) +func (f *PasswordResetTokenFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(passwordresettoken.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OrgMembershipFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldDeletedBy)) -} - -// WhereRole applies the entql string predicate on the role field. -func (f *OrgMembershipFilter) WhereRole(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldRole)) -} - -// WhereOrganizationID applies the entql string predicate on the organization_id field. -func (f *OrgMembershipFilter) WhereOrganizationID(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldOrganizationID)) +func (f *PasswordResetTokenFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(passwordresettoken.FieldDeletedBy)) } -// WhereUserID applies the entql string predicate on the user_id field. -func (f *OrgMembershipFilter) WhereUserID(p entql.StringP) { - f.Where(p.Field(orgmembership.FieldUserID)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *PasswordResetTokenFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(passwordresettoken.FieldOwnerID)) } -// WhereHasOrganization applies a predicate to check if query has an edge organization. -func (f *OrgMembershipFilter) WhereHasOrganization() { - f.Where(entql.HasEdge("organization")) +// WhereToken applies the entql string predicate on the token field. +func (f *PasswordResetTokenFilter) WhereToken(p entql.StringP) { + f.Where(p.Field(passwordresettoken.FieldToken)) } -// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). -func (f *OrgMembershipFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTTL applies the entql time.Time predicate on the ttl field. +func (f *PasswordResetTokenFilter) WhereTTL(p entql.TimeP) { + f.Where(p.Field(passwordresettoken.FieldTTL)) } -// WhereHasUser applies a predicate to check if query has an edge user. -func (f *OrgMembershipFilter) WhereHasUser() { - f.Where(entql.HasEdge("user")) +// WhereEmail applies the entql string predicate on the email field. +func (f *PasswordResetTokenFilter) WhereEmail(p entql.StringP) { + f.Where(p.Field(passwordresettoken.FieldEmail)) } -// WhereHasUserWith applies a predicate to check if query has an edge user with a given conditions (other predicates). -func (f *OrgMembershipFilter) WhereHasUserWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSecret applies the entql []byte predicate on the secret field. +func (f *PasswordResetTokenFilter) WhereSecret(p entql.BytesP) { + f.Where(p.Field(passwordresettoken.FieldSecret)) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *OrgMembershipFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *PasswordResetTokenFilter) WhereHasOwner() { + f.Where(entql.HasEdge("owner")) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *OrgMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). +func (f *PasswordResetTokenFilter) WhereHasOwnerWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -9197,597 +13108,649 @@ func (f *OrgMembershipFilter) WhereHasEventsWith(preds ...predicate.Event) { } // addPredicate implements the predicateAdder interface. -func (omhq *OrgMembershipHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - omhq.predicates = append(omhq.predicates, pred) +func (patq *PersonalAccessTokenQuery) addPredicate(pred func(s *sql.Selector)) { + patq.predicates = append(patq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the OrgMembershipHistoryQuery builder. -func (omhq *OrgMembershipHistoryQuery) Filter() *OrgMembershipHistoryFilter { - return &OrgMembershipHistoryFilter{config: omhq.config, predicateAdder: omhq} +// Filter returns a Filter implementation to apply filters on the PersonalAccessTokenQuery builder. +func (patq *PersonalAccessTokenQuery) Filter() *PersonalAccessTokenFilter { + return &PersonalAccessTokenFilter{config: patq.config, predicateAdder: patq} } // addPredicate implements the predicateAdder interface. -func (m *OrgMembershipHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *PersonalAccessTokenMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the OrgMembershipHistoryMutation builder. -func (m *OrgMembershipHistoryMutation) Filter() *OrgMembershipHistoryFilter { - return &OrgMembershipHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the PersonalAccessTokenMutation builder. +func (m *PersonalAccessTokenMutation) Filter() *PersonalAccessTokenFilter { + return &PersonalAccessTokenFilter{config: m.config, predicateAdder: m} } -// OrgMembershipHistoryFilter provides a generic filtering capability at runtime for OrgMembershipHistoryQuery. -type OrgMembershipHistoryFilter struct { +// PersonalAccessTokenFilter provides a generic filtering capability at runtime for PersonalAccessTokenQuery. +type PersonalAccessTokenFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *OrgMembershipHistoryFilter) Where(p entql.P) { +func (f *PersonalAccessTokenFilter) 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[55].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *OrgMembershipHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(orgmembershiphistory.FieldID)) +func (f *PersonalAccessTokenFilter) WhereID(p entql.StringP) { + f.Where(p.Field(personalaccesstoken.FieldID)) } -// WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *OrgMembershipHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(orgmembershiphistory.FieldHistoryTime)) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *PersonalAccessTokenFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(personalaccesstoken.FieldCreatedAt)) } -// WhereRef applies the entql string predicate on the ref field. -func (f *OrgMembershipHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(orgmembershiphistory.FieldRef)) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *PersonalAccessTokenFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(personalaccesstoken.FieldUpdatedAt)) } -// WhereOperation applies the entql string predicate on the operation field. -func (f *OrgMembershipHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(orgmembershiphistory.FieldOperation)) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *PersonalAccessTokenFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(personalaccesstoken.FieldCreatedBy)) } -// WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OrgMembershipHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(orgmembershiphistory.FieldCreatedAt)) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *PersonalAccessTokenFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(personalaccesstoken.FieldUpdatedBy)) } -// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OrgMembershipHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(orgmembershiphistory.FieldUpdatedAt)) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *PersonalAccessTokenFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(personalaccesstoken.FieldDeletedAt)) } -// WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OrgMembershipHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(orgmembershiphistory.FieldCreatedBy)) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *PersonalAccessTokenFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(personalaccesstoken.FieldDeletedBy)) } -// WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OrgMembershipHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(orgmembershiphistory.FieldUpdatedBy)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *PersonalAccessTokenFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(personalaccesstoken.FieldMappingID)) } -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *OrgMembershipHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(orgmembershiphistory.FieldMappingID)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *PersonalAccessTokenFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(personalaccesstoken.FieldTags)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OrgMembershipHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(orgmembershiphistory.FieldDeletedAt)) +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *PersonalAccessTokenFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(personalaccesstoken.FieldOwnerID)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OrgMembershipHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(orgmembershiphistory.FieldDeletedBy)) +// WhereName applies the entql string predicate on the name field. +func (f *PersonalAccessTokenFilter) WhereName(p entql.StringP) { + f.Where(p.Field(personalaccesstoken.FieldName)) } -// WhereRole applies the entql string predicate on the role field. -func (f *OrgMembershipHistoryFilter) WhereRole(p entql.StringP) { - f.Where(p.Field(orgmembershiphistory.FieldRole)) +// WhereToken applies the entql string predicate on the token field. +func (f *PersonalAccessTokenFilter) WhereToken(p entql.StringP) { + f.Where(p.Field(personalaccesstoken.FieldToken)) } -// WhereOrganizationID applies the entql string predicate on the organization_id field. -func (f *OrgMembershipHistoryFilter) WhereOrganizationID(p entql.StringP) { - f.Where(p.Field(orgmembershiphistory.FieldOrganizationID)) +// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. +func (f *PersonalAccessTokenFilter) WhereExpiresAt(p entql.TimeP) { + f.Where(p.Field(personalaccesstoken.FieldExpiresAt)) } -// WhereUserID applies the entql string predicate on the user_id field. -func (f *OrgMembershipHistoryFilter) WhereUserID(p entql.StringP) { - f.Where(p.Field(orgmembershiphistory.FieldUserID)) +// WhereDescription applies the entql string predicate on the description field. +func (f *PersonalAccessTokenFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(personalaccesstoken.FieldDescription)) +} + +// WhereScopes applies the entql json.RawMessage predicate on the scopes field. +func (f *PersonalAccessTokenFilter) WhereScopes(p entql.BytesP) { + f.Where(p.Field(personalaccesstoken.FieldScopes)) +} + +// WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field. +func (f *PersonalAccessTokenFilter) WhereLastUsedAt(p entql.TimeP) { + f.Where(p.Field(personalaccesstoken.FieldLastUsedAt)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *PersonalAccessTokenFilter) 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 *PersonalAccessTokenFilter) WhereHasOwnerWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasOrganizations applies a predicate to check if query has an edge organizations. +func (f *PersonalAccessTokenFilter) WhereHasOrganizations() { + f.Where(entql.HasEdge("organizations")) +} + +// WhereHasOrganizationsWith applies a predicate to check if query has an edge organizations with a given conditions (other predicates). +func (f *PersonalAccessTokenFilter) WhereHasOrganizationsWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("organizations", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasEvents applies a predicate to check if query has an edge events. +func (f *PersonalAccessTokenFilter) WhereHasEvents() { + f.Where(entql.HasEdge("events")) +} + +// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). +func (f *PersonalAccessTokenFilter) WhereHasEventsWith(preds ...predicate.Event) { + f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) } // addPredicate implements the predicateAdder interface. -func (oq *OrganizationQuery) addPredicate(pred func(s *sql.Selector)) { - oq.predicates = append(oq.predicates, pred) +func (pq *ProcedureQuery) addPredicate(pred func(s *sql.Selector)) { + pq.predicates = append(pq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the OrganizationQuery builder. -func (oq *OrganizationQuery) Filter() *OrganizationFilter { - return &OrganizationFilter{config: oq.config, predicateAdder: oq} +// Filter returns a Filter implementation to apply filters on the ProcedureQuery builder. +func (pq *ProcedureQuery) Filter() *ProcedureFilter { + return &ProcedureFilter{config: pq.config, predicateAdder: pq} } // addPredicate implements the predicateAdder interface. -func (m *OrganizationMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *ProcedureMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the OrganizationMutation builder. -func (m *OrganizationMutation) Filter() *OrganizationFilter { - return &OrganizationFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the ProcedureMutation builder. +func (m *ProcedureMutation) Filter() *ProcedureFilter { + return &ProcedureFilter{config: m.config, predicateAdder: m} } -// OrganizationFilter provides a generic filtering capability at runtime for OrganizationQuery. -type OrganizationFilter struct { +// ProcedureFilter provides a generic filtering capability at runtime for ProcedureQuery. +type ProcedureFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *OrganizationFilter) Where(p entql.P) { +func (f *ProcedureFilter) 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[56].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *OrganizationFilter) WhereID(p entql.StringP) { - f.Where(p.Field(organization.FieldID)) +func (f *ProcedureFilter) WhereID(p entql.StringP) { + f.Where(p.Field(procedure.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OrganizationFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(organization.FieldCreatedAt)) +func (f *ProcedureFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(procedure.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OrganizationFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(organization.FieldUpdatedAt)) +func (f *ProcedureFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(procedure.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OrganizationFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(organization.FieldCreatedBy)) +func (f *ProcedureFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(procedure.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OrganizationFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(organization.FieldUpdatedBy)) -} - -// WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *OrganizationFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(organization.FieldMappingID)) -} - -// WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *OrganizationFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(organization.FieldTags)) +func (f *ProcedureFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(procedure.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OrganizationFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(organization.FieldDeletedAt)) +func (f *ProcedureFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(procedure.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OrganizationFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(organization.FieldDeletedBy)) -} - -// WhereName applies the entql string predicate on the name field. -func (f *OrganizationFilter) WhereName(p entql.StringP) { - f.Where(p.Field(organization.FieldName)) +func (f *ProcedureFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(procedure.FieldDeletedBy)) } -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *OrganizationFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(organization.FieldDisplayName)) -} - -// WhereDescription applies the entql string predicate on the description field. -func (f *OrganizationFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(organization.FieldDescription)) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *ProcedureFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(procedure.FieldMappingID)) } -// WhereParentOrganizationID applies the entql string predicate on the parent_organization_id field. -func (f *OrganizationFilter) WhereParentOrganizationID(p entql.StringP) { - f.Where(p.Field(organization.FieldParentOrganizationID)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *ProcedureFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(procedure.FieldTags)) } -// WherePersonalOrg applies the entql bool predicate on the personal_org field. -func (f *OrganizationFilter) WherePersonalOrg(p entql.BoolP) { - f.Where(p.Field(organization.FieldPersonalOrg)) +// WhereName applies the entql string predicate on the name field. +func (f *ProcedureFilter) WhereName(p entql.StringP) { + f.Where(p.Field(procedure.FieldName)) } -// WhereAvatarRemoteURL applies the entql string predicate on the avatar_remote_url field. -func (f *OrganizationFilter) WhereAvatarRemoteURL(p entql.StringP) { - f.Where(p.Field(organization.FieldAvatarRemoteURL)) +// WhereDescription applies the entql string predicate on the description field. +func (f *ProcedureFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(procedure.FieldDescription)) } -// WhereDedicatedDb applies the entql bool predicate on the dedicated_db field. -func (f *OrganizationFilter) WhereDedicatedDb(p entql.BoolP) { - f.Where(p.Field(organization.FieldDedicatedDb)) +// WhereStatus applies the entql string predicate on the status field. +func (f *ProcedureFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(procedure.FieldStatus)) } -// WhereHasParent applies a predicate to check if query has an edge parent. -func (f *OrganizationFilter) WhereHasParent() { - f.Where(entql.HasEdge("parent")) +// WhereProcedureType applies the entql string predicate on the procedure_type field. +func (f *ProcedureFilter) WhereProcedureType(p entql.StringP) { + f.Where(p.Field(procedure.FieldProcedureType)) } -// WhereHasParentWith applies a predicate to check if query has an edge parent with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasParentWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("parent", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereVersion applies the entql string predicate on the version field. +func (f *ProcedureFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(procedure.FieldVersion)) } -// WhereHasChildren applies a predicate to check if query has an edge children. -func (f *OrganizationFilter) WhereHasChildren() { - f.Where(entql.HasEdge("children")) +// WherePurposeAndScope applies the entql string predicate on the purpose_and_scope field. +func (f *ProcedureFilter) WherePurposeAndScope(p entql.StringP) { + f.Where(p.Field(procedure.FieldPurposeAndScope)) } -// WhereHasChildrenWith applies a predicate to check if query has an edge children with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasChildrenWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("children", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereBackground applies the entql string predicate on the background field. +func (f *ProcedureFilter) WhereBackground(p entql.StringP) { + f.Where(p.Field(procedure.FieldBackground)) } -// WhereHasGroups applies a predicate to check if query has an edge groups. -func (f *OrganizationFilter) WhereHasGroups() { - f.Where(entql.HasEdge("groups")) +// WhereSatisfies applies the entql string predicate on the satisfies field. +func (f *ProcedureFilter) WhereSatisfies(p entql.StringP) { + f.Where(p.Field(procedure.FieldSatisfies)) } -// WhereHasGroupsWith applies a predicate to check if query has an edge groups with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasGroupsWith(preds ...predicate.Group) { - f.Where(entql.HasEdgeWith("groups", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *ProcedureFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(procedure.FieldDetails)) } -// WhereHasTemplates applies a predicate to check if query has an edge templates. -func (f *OrganizationFilter) WhereHasTemplates() { - f.Where(entql.HasEdge("templates")) +// WhereHasControl applies a predicate to check if query has an edge control. +func (f *ProcedureFilter) WhereHasControl() { + f.Where(entql.HasEdge("control")) } -// WhereHasTemplatesWith applies a predicate to check if query has an edge templates with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasTemplatesWith(preds ...predicate.Template) { - f.Where(entql.HasEdgeWith("templates", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlWith applies a predicate to check if query has an edge control with a given conditions (other predicates). +func (f *ProcedureFilter) WhereHasControlWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("control", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasIntegrations applies a predicate to check if query has an edge integrations. -func (f *OrganizationFilter) WhereHasIntegrations() { - f.Where(entql.HasEdge("integrations")) +// WhereHasInternalpolicy applies a predicate to check if query has an edge internalpolicy. +func (f *ProcedureFilter) WhereHasInternalpolicy() { + f.Where(entql.HasEdge("internalpolicy")) } -// WhereHasIntegrationsWith applies a predicate to check if query has an edge integrations with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasIntegrationsWith(preds ...predicate.Integration) { - f.Where(entql.HasEdgeWith("integrations", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasInternalpolicyWith applies a predicate to check if query has an edge internalpolicy with a given conditions (other predicates). +func (f *ProcedureFilter) WhereHasInternalpolicyWith(preds ...predicate.InternalPolicy) { + f.Where(entql.HasEdgeWith("internalpolicy", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasSetting applies a predicate to check if query has an edge setting. -func (f *OrganizationFilter) WhereHasSetting() { - f.Where(entql.HasEdge("setting")) +// WhereHasNarratives applies a predicate to check if query has an edge narratives. +func (f *ProcedureFilter) WhereHasNarratives() { + f.Where(entql.HasEdge("narratives")) } -// WhereHasSettingWith applies a predicate to check if query has an edge setting with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasSettingWith(preds ...predicate.OrganizationSetting) { - f.Where(entql.HasEdgeWith("setting", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasNarrativesWith applies a predicate to check if query has an edge narratives with a given conditions (other predicates). +func (f *ProcedureFilter) WhereHasNarrativesWith(preds ...predicate.Narrative) { + f.Where(entql.HasEdgeWith("narratives", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasDocumentdata applies a predicate to check if query has an edge documentdata. -func (f *OrganizationFilter) WhereHasDocumentdata() { - f.Where(entql.HasEdge("documentdata")) +// WhereHasRisks applies a predicate to check if query has an edge risks. +func (f *ProcedureFilter) WhereHasRisks() { + f.Where(entql.HasEdge("risks")) } -// WhereHasDocumentdataWith applies a predicate to check if query has an edge documentdata with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasDocumentdataWith(preds ...predicate.DocumentData) { - f.Where(entql.HasEdgeWith("documentdata", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasRisksWith applies a predicate to check if query has an edge risks with a given conditions (other predicates). +func (f *ProcedureFilter) WhereHasRisksWith(preds ...predicate.Risk) { + f.Where(entql.HasEdgeWith("risks", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasEntitlements applies a predicate to check if query has an edge entitlements. -func (f *OrganizationFilter) WhereHasEntitlements() { - f.Where(entql.HasEdge("entitlements")) +// addPredicate implements the predicateAdder interface. +func (phq *ProcedureHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + phq.predicates = append(phq.predicates, pred) } -// WhereHasEntitlementsWith applies a predicate to check if query has an edge entitlements with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasEntitlementsWith(preds ...predicate.Entitlement) { - f.Where(entql.HasEdgeWith("entitlements", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns a Filter implementation to apply filters on the ProcedureHistoryQuery builder. +func (phq *ProcedureHistoryQuery) Filter() *ProcedureHistoryFilter { + return &ProcedureHistoryFilter{config: phq.config, predicateAdder: phq} } -// WhereHasOrganizationEntitlement applies a predicate to check if query has an edge organization_entitlement. -func (f *OrganizationFilter) WhereHasOrganizationEntitlement() { - f.Where(entql.HasEdge("organization_entitlement")) +// addPredicate implements the predicateAdder interface. +func (m *ProcedureHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) } -// WhereHasOrganizationEntitlementWith applies a predicate to check if query has an edge organization_entitlement with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasOrganizationEntitlementWith(preds ...predicate.Entitlement) { - f.Where(entql.HasEdgeWith("organization_entitlement", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// Filter returns an entql.Where implementation to apply filters on the ProcedureHistoryMutation builder. +func (m *ProcedureHistoryMutation) Filter() *ProcedureHistoryFilter { + return &ProcedureHistoryFilter{config: m.config, predicateAdder: m} } -// WhereHasPersonalAccessTokens applies a predicate to check if query has an edge personal_access_tokens. -func (f *OrganizationFilter) WhereHasPersonalAccessTokens() { - f.Where(entql.HasEdge("personal_access_tokens")) +// ProcedureHistoryFilter provides a generic filtering capability at runtime for ProcedureHistoryQuery. +type ProcedureHistoryFilter struct { + predicateAdder + config } -// WhereHasPersonalAccessTokensWith applies a predicate to check if query has an edge personal_access_tokens with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasPersonalAccessTokensWith(preds ...predicate.PersonalAccessToken) { - f.Where(entql.HasEdgeWith("personal_access_tokens", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// 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[57].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasAPITokens applies a predicate to check if query has an edge api_tokens. -func (f *OrganizationFilter) WhereHasAPITokens() { - f.Where(entql.HasEdge("api_tokens")) +// WhereID applies the entql string predicate on the id field. +func (f *ProcedureHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldID)) } -// WhereHasAPITokensWith applies a predicate to check if query has an edge api_tokens with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasAPITokensWith(preds ...predicate.APIToken) { - f.Where(entql.HasEdgeWith("api_tokens", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *ProcedureHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(procedurehistory.FieldHistoryTime)) } -// WhereHasOauthprovider applies a predicate to check if query has an edge oauthprovider. -func (f *OrganizationFilter) WhereHasOauthprovider() { - f.Where(entql.HasEdge("oauthprovider")) +// WhereRef applies the entql string predicate on the ref field. +func (f *ProcedureHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldRef)) } -// WhereHasOauthproviderWith applies a predicate to check if query has an edge oauthprovider with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasOauthproviderWith(preds ...predicate.OauthProvider) { - f.Where(entql.HasEdgeWith("oauthprovider", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereOperation applies the entql string predicate on the operation field. +func (f *ProcedureHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldOperation)) } -// WhereHasUsers applies a predicate to check if query has an edge users. -func (f *OrganizationFilter) WhereHasUsers() { - f.Where(entql.HasEdge("users")) +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *ProcedureHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(procedurehistory.FieldCreatedAt)) } -// WhereHasUsersWith applies a predicate to check if query has an edge users with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasUsersWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("users", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *ProcedureHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(procedurehistory.FieldUpdatedAt)) } -// WhereHasInvites applies a predicate to check if query has an edge invites. -func (f *OrganizationFilter) WhereHasInvites() { - f.Where(entql.HasEdge("invites")) +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *ProcedureHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldCreatedBy)) } -// WhereHasInvitesWith applies a predicate to check if query has an edge invites with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasInvitesWith(preds ...predicate.Invite) { - f.Where(entql.HasEdgeWith("invites", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *ProcedureHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldUpdatedBy)) } -// WhereHasSubscribers applies a predicate to check if query has an edge subscribers. -func (f *OrganizationFilter) WhereHasSubscribers() { - f.Where(entql.HasEdge("subscribers")) +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *ProcedureHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(procedurehistory.FieldDeletedAt)) } -// WhereHasSubscribersWith applies a predicate to check if query has an edge subscribers with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasSubscribersWith(preds ...predicate.Subscriber) { - f.Where(entql.HasEdgeWith("subscribers", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *ProcedureHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldDeletedBy)) } -// WhereHasWebhooks applies a predicate to check if query has an edge webhooks. -func (f *OrganizationFilter) WhereHasWebhooks() { - f.Where(entql.HasEdge("webhooks")) +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *ProcedureHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldMappingID)) } -// WhereHasWebhooksWith applies a predicate to check if query has an edge webhooks with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasWebhooksWith(preds ...predicate.Webhook) { - f.Where(entql.HasEdgeWith("webhooks", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *ProcedureHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(procedurehistory.FieldTags)) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *OrganizationFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereName applies the entql string predicate on the name field. +func (f *ProcedureHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldName)) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDescription applies the entql string predicate on the description field. +func (f *ProcedureHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldDescription)) } -// WhereHasSecrets applies a predicate to check if query has an edge secrets. -func (f *OrganizationFilter) WhereHasSecrets() { - f.Where(entql.HasEdge("secrets")) +// WhereStatus applies the entql string predicate on the status field. +func (f *ProcedureHistoryFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldStatus)) } -// WhereHasSecretsWith applies a predicate to check if query has an edge secrets with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasSecretsWith(preds ...predicate.Hush) { - f.Where(entql.HasEdgeWith("secrets", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereProcedureType applies the entql string predicate on the procedure_type field. +func (f *ProcedureHistoryFilter) WhereProcedureType(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldProcedureType)) } -// WhereHasFeatures applies a predicate to check if query has an edge features. -func (f *OrganizationFilter) WhereHasFeatures() { - f.Where(entql.HasEdge("features")) +// WhereVersion applies the entql string predicate on the version field. +func (f *ProcedureHistoryFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldVersion)) } -// WhereHasFeaturesWith applies a predicate to check if query has an edge features with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasFeaturesWith(preds ...predicate.Feature) { - f.Where(entql.HasEdgeWith("features", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WherePurposeAndScope applies the entql string predicate on the purpose_and_scope field. +func (f *ProcedureHistoryFilter) WherePurposeAndScope(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldPurposeAndScope)) } -// WhereHasFiles applies a predicate to check if query has an edge files. -func (f *OrganizationFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereBackground applies the entql string predicate on the background field. +func (f *ProcedureHistoryFilter) WhereBackground(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldBackground)) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSatisfies applies the entql string predicate on the satisfies field. +func (f *ProcedureHistoryFilter) WhereSatisfies(p entql.StringP) { + f.Where(p.Field(procedurehistory.FieldSatisfies)) } -// WhereHasEntitlementplans applies a predicate to check if query has an edge entitlementplans. -func (f *OrganizationFilter) WhereHasEntitlementplans() { - f.Where(entql.HasEdge("entitlementplans")) +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *ProcedureHistoryFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(procedurehistory.FieldDetails)) } -// WhereHasEntitlementplansWith applies a predicate to check if query has an edge entitlementplans with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasEntitlementplansWith(preds ...predicate.EntitlementPlan) { - f.Where(entql.HasEdgeWith("entitlementplans", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// addPredicate implements the predicateAdder interface. +func (rq *RiskQuery) addPredicate(pred func(s *sql.Selector)) { + rq.predicates = append(rq.predicates, pred) } -// WhereHasEntitlementplanfeatures applies a predicate to check if query has an edge entitlementplanfeatures. -func (f *OrganizationFilter) WhereHasEntitlementplanfeatures() { - f.Where(entql.HasEdge("entitlementplanfeatures")) +// Filter returns a Filter implementation to apply filters on the RiskQuery builder. +func (rq *RiskQuery) Filter() *RiskFilter { + return &RiskFilter{config: rq.config, predicateAdder: rq} } -// WhereHasEntitlementplanfeaturesWith applies a predicate to check if query has an edge entitlementplanfeatures with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasEntitlementplanfeaturesWith(preds ...predicate.EntitlementPlanFeature) { - f.Where(entql.HasEdgeWith("entitlementplanfeatures", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) +// addPredicate implements the predicateAdder interface. +func (m *RiskMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the RiskMutation builder. +func (m *RiskMutation) Filter() *RiskFilter { + return &RiskFilter{config: m.config, predicateAdder: m} +} + +// RiskFilter provides a generic filtering capability at runtime for RiskQuery. +type RiskFilter struct { + predicateAdder + config +} + +// 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[58].Type, p, s); err != nil { + s.AddError(err) } - }))) + }) } -// WhereHasEntities applies a predicate to check if query has an edge entities. -func (f *OrganizationFilter) WhereHasEntities() { - f.Where(entql.HasEdge("entities")) +// WhereID applies the entql string predicate on the id field. +func (f *RiskFilter) WhereID(p entql.StringP) { + f.Where(p.Field(risk.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *RiskFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(risk.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *RiskFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(risk.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *RiskFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(risk.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *RiskFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(risk.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *RiskFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(risk.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *RiskFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(risk.FieldDeletedBy)) +} + +// WhereMappingID applies the entql string predicate on the mapping_id field. +func (f *RiskFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(risk.FieldMappingID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *RiskFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(risk.FieldTags)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *RiskFilter) WhereName(p entql.StringP) { + f.Where(p.Field(risk.FieldName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *RiskFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(risk.FieldDescription)) +} + +// WhereStatus applies the entql string predicate on the status field. +func (f *RiskFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(risk.FieldStatus)) +} + +// WhereRiskType applies the entql string predicate on the risk_type field. +func (f *RiskFilter) WhereRiskType(p entql.StringP) { + f.Where(p.Field(risk.FieldRiskType)) +} + +// WhereBusinessCosts applies the entql string predicate on the business_costs field. +func (f *RiskFilter) WhereBusinessCosts(p entql.StringP) { + f.Where(p.Field(risk.FieldBusinessCosts)) +} + +// WhereImpact applies the entql string predicate on the impact field. +func (f *RiskFilter) WhereImpact(p entql.StringP) { + f.Where(p.Field(risk.FieldImpact)) +} + +// WhereLikelihood applies the entql string predicate on the likelihood field. +func (f *RiskFilter) WhereLikelihood(p entql.StringP) { + f.Where(p.Field(risk.FieldLikelihood)) } -// WhereHasEntitiesWith applies a predicate to check if query has an edge entities with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasEntitiesWith(preds ...predicate.Entity) { - f.Where(entql.HasEdgeWith("entities", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereMitigation applies the entql string predicate on the mitigation field. +func (f *RiskFilter) WhereMitigation(p entql.StringP) { + f.Where(p.Field(risk.FieldMitigation)) } -// WhereHasEntitytypes applies a predicate to check if query has an edge entitytypes. -func (f *OrganizationFilter) WhereHasEntitytypes() { - f.Where(entql.HasEdge("entitytypes")) +// WhereSatisfies applies the entql string predicate on the satisfies field. +func (f *RiskFilter) WhereSatisfies(p entql.StringP) { + f.Where(p.Field(risk.FieldSatisfies)) } -// WhereHasEntitytypesWith applies a predicate to check if query has an edge entitytypes with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasEntitytypesWith(preds ...predicate.EntityType) { - f.Where(entql.HasEdgeWith("entitytypes", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *RiskFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(risk.FieldDetails)) } -// WhereHasContacts applies a predicate to check if query has an edge contacts. -func (f *OrganizationFilter) WhereHasContacts() { - f.Where(entql.HasEdge("contacts")) +// WhereHasControl applies a predicate to check if query has an edge control. +func (f *RiskFilter) WhereHasControl() { + f.Where(entql.HasEdge("control")) } -// WhereHasContactsWith applies a predicate to check if query has an edge contacts with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasContactsWith(preds ...predicate.Contact) { - f.Where(entql.HasEdgeWith("contacts", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlWith applies a predicate to check if query has an edge control with a given conditions (other predicates). +func (f *RiskFilter) WhereHasControlWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("control", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasNotes applies a predicate to check if query has an edge notes. -func (f *OrganizationFilter) WhereHasNotes() { - f.Where(entql.HasEdge("notes")) +// WhereHasProcedure applies a predicate to check if query has an edge procedure. +func (f *RiskFilter) WhereHasProcedure() { + f.Where(entql.HasEdge("procedure")) } -// WhereHasNotesWith applies a predicate to check if query has an edge notes with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasNotesWith(preds ...predicate.Note) { - f.Where(entql.HasEdgeWith("notes", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasProcedureWith applies a predicate to check if query has an edge procedure with a given conditions (other predicates). +func (f *RiskFilter) WhereHasProcedureWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedure", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } }))) } -// WhereHasMembers applies a predicate to check if query has an edge members. -func (f *OrganizationFilter) WhereHasMembers() { - f.Where(entql.HasEdge("members")) +// WhereHasActionplans applies a predicate to check if query has an edge actionplans. +func (f *RiskFilter) WhereHasActionplans() { + f.Where(entql.HasEdge("actionplans")) } -// WhereHasMembersWith applies a predicate to check if query has an edge members with a given conditions (other predicates). -func (f *OrganizationFilter) WhereHasMembersWith(preds ...predicate.OrgMembership) { - f.Where(entql.HasEdgeWith("members", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasActionplansWith applies a predicate to check if query has an edge actionplans with a given conditions (other predicates). +func (f *RiskFilter) WhereHasActionplansWith(preds ...predicate.ActionPlan) { + f.Where(entql.HasEdgeWith("actionplans", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -9795,277 +13758,330 @@ func (f *OrganizationFilter) WhereHasMembersWith(preds ...predicate.OrgMembershi } // addPredicate implements the predicateAdder interface. -func (ohq *OrganizationHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - ohq.predicates = append(ohq.predicates, pred) +func (rhq *RiskHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + rhq.predicates = append(rhq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the OrganizationHistoryQuery builder. -func (ohq *OrganizationHistoryQuery) Filter() *OrganizationHistoryFilter { - return &OrganizationHistoryFilter{config: ohq.config, predicateAdder: ohq} +// Filter returns a Filter implementation to apply filters on the RiskHistoryQuery builder. +func (rhq *RiskHistoryQuery) Filter() *RiskHistoryFilter { + return &RiskHistoryFilter{config: rhq.config, predicateAdder: rhq} } // addPredicate implements the predicateAdder interface. -func (m *OrganizationHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *RiskHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the OrganizationHistoryMutation builder. -func (m *OrganizationHistoryMutation) Filter() *OrganizationHistoryFilter { - return &OrganizationHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the RiskHistoryMutation builder. +func (m *RiskHistoryMutation) Filter() *RiskHistoryFilter { + return &RiskHistoryFilter{config: m.config, predicateAdder: m} } -// OrganizationHistoryFilter provides a generic filtering capability at runtime for OrganizationHistoryQuery. -type OrganizationHistoryFilter struct { +// RiskHistoryFilter provides a generic filtering capability at runtime for RiskHistoryQuery. +type RiskHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *OrganizationHistoryFilter) Where(p entql.P) { +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[59].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *OrganizationHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(organizationhistory.FieldID)) +func (f *RiskHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldID)) } // WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *OrganizationHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(organizationhistory.FieldHistoryTime)) +func (f *RiskHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(riskhistory.FieldHistoryTime)) } // WhereRef applies the entql string predicate on the ref field. -func (f *OrganizationHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(organizationhistory.FieldRef)) +func (f *RiskHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldRef)) } // WhereOperation applies the entql string predicate on the operation field. -func (f *OrganizationHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(organizationhistory.FieldOperation)) +func (f *RiskHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OrganizationHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(organizationhistory.FieldCreatedAt)) +func (f *RiskHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(riskhistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OrganizationHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(organizationhistory.FieldUpdatedAt)) +func (f *RiskHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(riskhistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OrganizationHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(organizationhistory.FieldCreatedBy)) +func (f *RiskHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OrganizationHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(organizationhistory.FieldUpdatedBy)) +func (f *RiskHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *RiskHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(riskhistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *RiskHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldDeletedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *OrganizationHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(organizationhistory.FieldMappingID)) +func (f *RiskHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *OrganizationHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(organizationhistory.FieldTags)) +func (f *RiskHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(riskhistory.FieldTags)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OrganizationHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(organizationhistory.FieldDeletedAt)) +// WhereName applies the entql string predicate on the name field. +func (f *RiskHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldName)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OrganizationHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(organizationhistory.FieldDeletedBy)) +// WhereDescription applies the entql string predicate on the description field. +func (f *RiskHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldDescription)) } -// WhereName applies the entql string predicate on the name field. -func (f *OrganizationHistoryFilter) WhereName(p entql.StringP) { - f.Where(p.Field(organizationhistory.FieldName)) +// WhereStatus applies the entql string predicate on the status field. +func (f *RiskHistoryFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldStatus)) } -// WhereDisplayName applies the entql string predicate on the display_name field. -func (f *OrganizationHistoryFilter) WhereDisplayName(p entql.StringP) { - f.Where(p.Field(organizationhistory.FieldDisplayName)) +// WhereRiskType applies the entql string predicate on the risk_type field. +func (f *RiskHistoryFilter) WhereRiskType(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldRiskType)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *OrganizationHistoryFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(organizationhistory.FieldDescription)) +// WhereBusinessCosts applies the entql string predicate on the business_costs field. +func (f *RiskHistoryFilter) WhereBusinessCosts(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldBusinessCosts)) } -// WhereParentOrganizationID applies the entql string predicate on the parent_organization_id field. -func (f *OrganizationHistoryFilter) WhereParentOrganizationID(p entql.StringP) { - f.Where(p.Field(organizationhistory.FieldParentOrganizationID)) +// WhereImpact applies the entql string predicate on the impact field. +func (f *RiskHistoryFilter) WhereImpact(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldImpact)) } -// WherePersonalOrg applies the entql bool predicate on the personal_org field. -func (f *OrganizationHistoryFilter) WherePersonalOrg(p entql.BoolP) { - f.Where(p.Field(organizationhistory.FieldPersonalOrg)) +// WhereLikelihood applies the entql string predicate on the likelihood field. +func (f *RiskHistoryFilter) WhereLikelihood(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldLikelihood)) } -// WhereAvatarRemoteURL applies the entql string predicate on the avatar_remote_url field. -func (f *OrganizationHistoryFilter) WhereAvatarRemoteURL(p entql.StringP) { - f.Where(p.Field(organizationhistory.FieldAvatarRemoteURL)) +// WhereMitigation applies the entql string predicate on the mitigation field. +func (f *RiskHistoryFilter) WhereMitigation(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldMitigation)) } -// WhereDedicatedDb applies the entql bool predicate on the dedicated_db field. -func (f *OrganizationHistoryFilter) WhereDedicatedDb(p entql.BoolP) { - f.Where(p.Field(organizationhistory.FieldDedicatedDb)) +// WhereSatisfies applies the entql string predicate on the satisfies field. +func (f *RiskHistoryFilter) WhereSatisfies(p entql.StringP) { + f.Where(p.Field(riskhistory.FieldSatisfies)) +} + +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *RiskHistoryFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(riskhistory.FieldDetails)) } // addPredicate implements the predicateAdder interface. -func (osq *OrganizationSettingQuery) addPredicate(pred func(s *sql.Selector)) { - osq.predicates = append(osq.predicates, pred) +func (sq *StandardQuery) addPredicate(pred func(s *sql.Selector)) { + sq.predicates = append(sq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the OrganizationSettingQuery builder. -func (osq *OrganizationSettingQuery) Filter() *OrganizationSettingFilter { - return &OrganizationSettingFilter{config: osq.config, predicateAdder: osq} +// Filter returns a Filter implementation to apply filters on the StandardQuery builder. +func (sq *StandardQuery) Filter() *StandardFilter { + return &StandardFilter{config: sq.config, predicateAdder: sq} } // addPredicate implements the predicateAdder interface. -func (m *OrganizationSettingMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *StandardMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the OrganizationSettingMutation builder. -func (m *OrganizationSettingMutation) Filter() *OrganizationSettingFilter { - return &OrganizationSettingFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the StandardMutation builder. +func (m *StandardMutation) Filter() *StandardFilter { + return &StandardFilter{config: m.config, predicateAdder: m} } -// OrganizationSettingFilter provides a generic filtering capability at runtime for OrganizationSettingQuery. -type OrganizationSettingFilter struct { +// StandardFilter provides a generic filtering capability at runtime for StandardQuery. +type StandardFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *OrganizationSettingFilter) Where(p entql.P) { +func (f *StandardFilter) 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[60].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *OrganizationSettingFilter) WhereID(p entql.StringP) { - f.Where(p.Field(organizationsetting.FieldID)) +func (f *StandardFilter) WhereID(p entql.StringP) { + f.Where(p.Field(standard.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OrganizationSettingFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(organizationsetting.FieldCreatedAt)) +func (f *StandardFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(standard.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OrganizationSettingFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(organizationsetting.FieldUpdatedAt)) +func (f *StandardFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(standard.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OrganizationSettingFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(organizationsetting.FieldCreatedBy)) +func (f *StandardFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(standard.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OrganizationSettingFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(organizationsetting.FieldUpdatedBy)) +func (f *StandardFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(standard.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *StandardFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(standard.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *StandardFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(standard.FieldDeletedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *OrganizationSettingFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(organizationsetting.FieldMappingID)) +func (f *StandardFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(standard.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *OrganizationSettingFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(organizationsetting.FieldTags)) +func (f *StandardFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(standard.FieldTags)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OrganizationSettingFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(organizationsetting.FieldDeletedAt)) +// WhereName applies the entql string predicate on the name field. +func (f *StandardFilter) WhereName(p entql.StringP) { + f.Where(p.Field(standard.FieldName)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OrganizationSettingFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(organizationsetting.FieldDeletedBy)) +// WhereDescription applies the entql string predicate on the description field. +func (f *StandardFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(standard.FieldDescription)) } -// WhereDomains applies the entql json.RawMessage predicate on the domains field. -func (f *OrganizationSettingFilter) WhereDomains(p entql.BytesP) { - f.Where(p.Field(organizationsetting.FieldDomains)) +// WhereFamily applies the entql string predicate on the family field. +func (f *StandardFilter) WhereFamily(p entql.StringP) { + f.Where(p.Field(standard.FieldFamily)) } -// WhereBillingContact applies the entql string predicate on the billing_contact field. -func (f *OrganizationSettingFilter) WhereBillingContact(p entql.StringP) { - f.Where(p.Field(organizationsetting.FieldBillingContact)) +// WhereStatus applies the entql string predicate on the status field. +func (f *StandardFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(standard.FieldStatus)) } -// WhereBillingEmail applies the entql string predicate on the billing_email field. -func (f *OrganizationSettingFilter) WhereBillingEmail(p entql.StringP) { - f.Where(p.Field(organizationsetting.FieldBillingEmail)) +// WhereStandardType applies the entql string predicate on the standard_type field. +func (f *StandardFilter) WhereStandardType(p entql.StringP) { + f.Where(p.Field(standard.FieldStandardType)) } -// WhereBillingPhone applies the entql string predicate on the billing_phone field. -func (f *OrganizationSettingFilter) WhereBillingPhone(p entql.StringP) { - f.Where(p.Field(organizationsetting.FieldBillingPhone)) +// WhereVersion applies the entql string predicate on the version field. +func (f *StandardFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(standard.FieldVersion)) } -// WhereBillingAddress applies the entql string predicate on the billing_address field. -func (f *OrganizationSettingFilter) WhereBillingAddress(p entql.StringP) { - f.Where(p.Field(organizationsetting.FieldBillingAddress)) +// WherePurposeAndScope applies the entql string predicate on the purpose_and_scope field. +func (f *StandardFilter) WherePurposeAndScope(p entql.StringP) { + f.Where(p.Field(standard.FieldPurposeAndScope)) } -// WhereTaxIdentifier applies the entql string predicate on the tax_identifier field. -func (f *OrganizationSettingFilter) WhereTaxIdentifier(p entql.StringP) { - f.Where(p.Field(organizationsetting.FieldTaxIdentifier)) +// WhereBackground applies the entql string predicate on the background field. +func (f *StandardFilter) WhereBackground(p entql.StringP) { + f.Where(p.Field(standard.FieldBackground)) } -// WhereGeoLocation applies the entql string predicate on the geo_location field. -func (f *OrganizationSettingFilter) WhereGeoLocation(p entql.StringP) { - f.Where(p.Field(organizationsetting.FieldGeoLocation)) +// WhereSatisfies applies the entql string predicate on the satisfies field. +func (f *StandardFilter) WhereSatisfies(p entql.StringP) { + f.Where(p.Field(standard.FieldSatisfies)) } -// WhereOrganizationID applies the entql string predicate on the organization_id field. -func (f *OrganizationSettingFilter) WhereOrganizationID(p entql.StringP) { - f.Where(p.Field(organizationsetting.FieldOrganizationID)) +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *StandardFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(standard.FieldDetails)) } -// WhereHasOrganization applies a predicate to check if query has an edge organization. -func (f *OrganizationSettingFilter) WhereHasOrganization() { - f.Where(entql.HasEdge("organization")) +// WhereHasControlobjectives applies a predicate to check if query has an edge controlobjectives. +func (f *StandardFilter) WhereHasControlobjectives() { + f.Where(entql.HasEdge("controlobjectives")) } -// WhereHasOrganizationWith applies a predicate to check if query has an edge organization with a given conditions (other predicates). -func (f *OrganizationSettingFilter) WhereHasOrganizationWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("organization", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlobjectivesWith applies a predicate to check if query has an edge controlobjectives with a given conditions (other predicates). +func (f *StandardFilter) WhereHasControlobjectivesWith(preds ...predicate.ControlObjective) { + f.Where(entql.HasEdgeWith("controlobjectives", 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 *OrganizationSettingFilter) WhereHasFiles() { - f.Where(entql.HasEdge("files")) +// WhereHasControls applies a predicate to check if query has an edge controls. +func (f *StandardFilter) WhereHasControls() { + f.Where(entql.HasEdge("controls")) } -// WhereHasFilesWith applies a predicate to check if query has an edge files with a given conditions (other predicates). -func (f *OrganizationSettingFilter) WhereHasFilesWith(preds ...predicate.File) { - f.Where(entql.HasEdgeWith("files", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereHasControlsWith applies a predicate to check if query has an edge controls with a given conditions (other predicates). +func (f *StandardFilter) WhereHasControlsWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("controls", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasProcedures applies a predicate to check if query has an edge procedures. +func (f *StandardFilter) WhereHasProcedures() { + f.Where(entql.HasEdge("procedures")) +} + +// WhereHasProceduresWith applies a predicate to check if query has an edge procedures with a given conditions (other predicates). +func (f *StandardFilter) WhereHasProceduresWith(preds ...predicate.Procedure) { + f.Where(entql.HasEdgeWith("procedures", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasActionplans applies a predicate to check if query has an edge actionplans. +func (f *StandardFilter) WhereHasActionplans() { + f.Where(entql.HasEdge("actionplans")) +} + +// WhereHasActionplansWith applies a predicate to check if query has an edge actionplans with a given conditions (other predicates). +func (f *StandardFilter) WhereHasActionplansWith(preds ...predicate.ActionPlan) { + f.Where(entql.HasEdgeWith("actionplans", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -10073,248 +14089,346 @@ func (f *OrganizationSettingFilter) WhereHasFilesWith(preds ...predicate.File) { } // addPredicate implements the predicateAdder interface. -func (oshq *OrganizationSettingHistoryQuery) addPredicate(pred func(s *sql.Selector)) { - oshq.predicates = append(oshq.predicates, pred) +func (shq *StandardHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + shq.predicates = append(shq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the OrganizationSettingHistoryQuery builder. -func (oshq *OrganizationSettingHistoryQuery) Filter() *OrganizationSettingHistoryFilter { - return &OrganizationSettingHistoryFilter{config: oshq.config, predicateAdder: oshq} +// Filter returns a Filter implementation to apply filters on the StandardHistoryQuery builder. +func (shq *StandardHistoryQuery) Filter() *StandardHistoryFilter { + return &StandardHistoryFilter{config: shq.config, predicateAdder: shq} } // addPredicate implements the predicateAdder interface. -func (m *OrganizationSettingHistoryMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *StandardHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the OrganizationSettingHistoryMutation builder. -func (m *OrganizationSettingHistoryMutation) Filter() *OrganizationSettingHistoryFilter { - return &OrganizationSettingHistoryFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the StandardHistoryMutation builder. +func (m *StandardHistoryMutation) Filter() *StandardHistoryFilter { + return &StandardHistoryFilter{config: m.config, predicateAdder: m} } -// OrganizationSettingHistoryFilter provides a generic filtering capability at runtime for OrganizationSettingHistoryQuery. -type OrganizationSettingHistoryFilter struct { +// StandardHistoryFilter provides a generic filtering capability at runtime for StandardHistoryQuery. +type StandardHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *OrganizationSettingHistoryFilter) Where(p entql.P) { +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[61].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *OrganizationSettingHistoryFilter) WhereID(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldID)) +func (f *StandardHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldID)) } // WhereHistoryTime applies the entql time.Time predicate on the history_time field. -func (f *OrganizationSettingHistoryFilter) WhereHistoryTime(p entql.TimeP) { - f.Where(p.Field(organizationsettinghistory.FieldHistoryTime)) +func (f *StandardHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(standardhistory.FieldHistoryTime)) } // WhereRef applies the entql string predicate on the ref field. -func (f *OrganizationSettingHistoryFilter) WhereRef(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldRef)) +func (f *StandardHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldRef)) } // WhereOperation applies the entql string predicate on the operation field. -func (f *OrganizationSettingHistoryFilter) WhereOperation(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldOperation)) +func (f *StandardHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *OrganizationSettingHistoryFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(organizationsettinghistory.FieldCreatedAt)) +func (f *StandardHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(standardhistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *OrganizationSettingHistoryFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(organizationsettinghistory.FieldUpdatedAt)) +func (f *StandardHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(standardhistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *OrganizationSettingHistoryFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldCreatedBy)) +func (f *StandardHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *OrganizationSettingHistoryFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldUpdatedBy)) +func (f *StandardHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *StandardHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(standardhistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *StandardHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldDeletedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *OrganizationSettingHistoryFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldMappingID)) +func (f *StandardHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *OrganizationSettingHistoryFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(organizationsettinghistory.FieldTags)) +func (f *StandardHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(standardhistory.FieldTags)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *OrganizationSettingHistoryFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(organizationsettinghistory.FieldDeletedAt)) +// WhereName applies the entql string predicate on the name field. +func (f *StandardHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldName)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *OrganizationSettingHistoryFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldDeletedBy)) +// WhereDescription applies the entql string predicate on the description field. +func (f *StandardHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldDescription)) } -// WhereDomains applies the entql json.RawMessage predicate on the domains field. -func (f *OrganizationSettingHistoryFilter) WhereDomains(p entql.BytesP) { - f.Where(p.Field(organizationsettinghistory.FieldDomains)) +// WhereFamily applies the entql string predicate on the family field. +func (f *StandardHistoryFilter) WhereFamily(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldFamily)) } -// WhereBillingContact applies the entql string predicate on the billing_contact field. -func (f *OrganizationSettingHistoryFilter) WhereBillingContact(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldBillingContact)) +// WhereStatus applies the entql string predicate on the status field. +func (f *StandardHistoryFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldStatus)) } -// WhereBillingEmail applies the entql string predicate on the billing_email field. -func (f *OrganizationSettingHistoryFilter) WhereBillingEmail(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldBillingEmail)) +// WhereStandardType applies the entql string predicate on the standard_type field. +func (f *StandardHistoryFilter) WhereStandardType(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldStandardType)) } -// WhereBillingPhone applies the entql string predicate on the billing_phone field. -func (f *OrganizationSettingHistoryFilter) WhereBillingPhone(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldBillingPhone)) +// WhereVersion applies the entql string predicate on the version field. +func (f *StandardHistoryFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldVersion)) } -// WhereBillingAddress applies the entql string predicate on the billing_address field. -func (f *OrganizationSettingHistoryFilter) WhereBillingAddress(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldBillingAddress)) +// WherePurposeAndScope applies the entql string predicate on the purpose_and_scope field. +func (f *StandardHistoryFilter) WherePurposeAndScope(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldPurposeAndScope)) } -// WhereTaxIdentifier applies the entql string predicate on the tax_identifier field. -func (f *OrganizationSettingHistoryFilter) WhereTaxIdentifier(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldTaxIdentifier)) +// WhereBackground applies the entql string predicate on the background field. +func (f *StandardHistoryFilter) WhereBackground(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldBackground)) } -// WhereGeoLocation applies the entql string predicate on the geo_location field. -func (f *OrganizationSettingHistoryFilter) WhereGeoLocation(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldGeoLocation)) +// WhereSatisfies applies the entql string predicate on the satisfies field. +func (f *StandardHistoryFilter) WhereSatisfies(p entql.StringP) { + f.Where(p.Field(standardhistory.FieldSatisfies)) } -// WhereOrganizationID applies the entql string predicate on the organization_id field. -func (f *OrganizationSettingHistoryFilter) WhereOrganizationID(p entql.StringP) { - f.Where(p.Field(organizationsettinghistory.FieldOrganizationID)) +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *StandardHistoryFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(standardhistory.FieldDetails)) } // addPredicate implements the predicateAdder interface. -func (prtq *PasswordResetTokenQuery) addPredicate(pred func(s *sql.Selector)) { - prtq.predicates = append(prtq.predicates, pred) +func (sq *SubcontrolQuery) addPredicate(pred func(s *sql.Selector)) { + sq.predicates = append(sq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the PasswordResetTokenQuery builder. -func (prtq *PasswordResetTokenQuery) Filter() *PasswordResetTokenFilter { - return &PasswordResetTokenFilter{config: prtq.config, predicateAdder: prtq} +// Filter returns a Filter implementation to apply filters on the SubcontrolQuery builder. +func (sq *SubcontrolQuery) Filter() *SubcontrolFilter { + return &SubcontrolFilter{config: sq.config, predicateAdder: sq} } // addPredicate implements the predicateAdder interface. -func (m *PasswordResetTokenMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *SubcontrolMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the PasswordResetTokenMutation builder. -func (m *PasswordResetTokenMutation) Filter() *PasswordResetTokenFilter { - return &PasswordResetTokenFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the SubcontrolMutation builder. +func (m *SubcontrolMutation) Filter() *SubcontrolFilter { + return &SubcontrolFilter{config: m.config, predicateAdder: m} } -// PasswordResetTokenFilter provides a generic filtering capability at runtime for PasswordResetTokenQuery. -type PasswordResetTokenFilter struct { +// SubcontrolFilter provides a generic filtering capability at runtime for SubcontrolQuery. +type SubcontrolFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *PasswordResetTokenFilter) Where(p entql.P) { +func (f *SubcontrolFilter) 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[62].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *PasswordResetTokenFilter) WhereID(p entql.StringP) { - f.Where(p.Field(passwordresettoken.FieldID)) +func (f *SubcontrolFilter) WhereID(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldID)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *PasswordResetTokenFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(passwordresettoken.FieldCreatedAt)) +func (f *SubcontrolFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(subcontrol.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *PasswordResetTokenFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(passwordresettoken.FieldUpdatedAt)) +func (f *SubcontrolFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(subcontrol.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *PasswordResetTokenFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(passwordresettoken.FieldCreatedBy)) +func (f *SubcontrolFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *PasswordResetTokenFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(passwordresettoken.FieldUpdatedBy)) +func (f *SubcontrolFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldUpdatedBy)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *SubcontrolFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(subcontrol.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *SubcontrolFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldDeletedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *PasswordResetTokenFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(passwordresettoken.FieldMappingID)) +func (f *SubcontrolFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldMappingID)) } -// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *PasswordResetTokenFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(passwordresettoken.FieldDeletedAt)) +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *SubcontrolFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(subcontrol.FieldTags)) } -// WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *PasswordResetTokenFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(passwordresettoken.FieldDeletedBy)) +// WhereName applies the entql string predicate on the name field. +func (f *SubcontrolFilter) WhereName(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldName)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *PasswordResetTokenFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(passwordresettoken.FieldOwnerID)) +// WhereDescription applies the entql string predicate on the description field. +func (f *SubcontrolFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldDescription)) } -// WhereToken applies the entql string predicate on the token field. -func (f *PasswordResetTokenFilter) WhereToken(p entql.StringP) { - f.Where(p.Field(passwordresettoken.FieldToken)) +// WhereStatus applies the entql string predicate on the status field. +func (f *SubcontrolFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldStatus)) } -// WhereTTL applies the entql time.Time predicate on the ttl field. -func (f *PasswordResetTokenFilter) WhereTTL(p entql.TimeP) { - f.Where(p.Field(passwordresettoken.FieldTTL)) +// WhereSubcontrolType applies the entql string predicate on the subcontrol_type field. +func (f *SubcontrolFilter) WhereSubcontrolType(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldSubcontrolType)) } -// WhereEmail applies the entql string predicate on the email field. -func (f *PasswordResetTokenFilter) WhereEmail(p entql.StringP) { - f.Where(p.Field(passwordresettoken.FieldEmail)) +// WhereVersion applies the entql string predicate on the version field. +func (f *SubcontrolFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldVersion)) } -// WhereSecret applies the entql []byte predicate on the secret field. -func (f *PasswordResetTokenFilter) WhereSecret(p entql.BytesP) { - f.Where(p.Field(passwordresettoken.FieldSecret)) +// WhereSubcontrolNumber applies the entql string predicate on the subcontrol_number field. +func (f *SubcontrolFilter) WhereSubcontrolNumber(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldSubcontrolNumber)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *PasswordResetTokenFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereFamily applies the entql string predicate on the family field. +func (f *SubcontrolFilter) WhereFamily(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldFamily)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *PasswordResetTokenFilter) WhereHasOwnerWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { +// WhereClass applies the entql string predicate on the class field. +func (f *SubcontrolFilter) WhereClass(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldClass)) +} + +// WhereSource applies the entql string predicate on the source field. +func (f *SubcontrolFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldSource)) +} + +// WhereMappedFrameworks applies the entql string predicate on the mapped_frameworks field. +func (f *SubcontrolFilter) WhereMappedFrameworks(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldMappedFrameworks)) +} + +// WhereImplementationEvidence applies the entql string predicate on the implementation_evidence field. +func (f *SubcontrolFilter) WhereImplementationEvidence(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldImplementationEvidence)) +} + +// WhereImplementationStatus applies the entql string predicate on the implementation_status field. +func (f *SubcontrolFilter) WhereImplementationStatus(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldImplementationStatus)) +} + +// WhereImplementationDate applies the entql time.Time predicate on the implementation_date field. +func (f *SubcontrolFilter) WhereImplementationDate(p entql.TimeP) { + f.Where(p.Field(subcontrol.FieldImplementationDate)) +} + +// WhereImplementationVerification applies the entql string predicate on the implementation_verification field. +func (f *SubcontrolFilter) WhereImplementationVerification(p entql.StringP) { + f.Where(p.Field(subcontrol.FieldImplementationVerification)) +} + +// WhereImplementationVerificationDate applies the entql time.Time predicate on the implementation_verification_date field. +func (f *SubcontrolFilter) WhereImplementationVerificationDate(p entql.TimeP) { + f.Where(p.Field(subcontrol.FieldImplementationVerificationDate)) +} + +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *SubcontrolFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(subcontrol.FieldDetails)) +} + +// WhereHasControl applies a predicate to check if query has an edge control. +func (f *SubcontrolFilter) WhereHasControl() { + f.Where(entql.HasEdge("control")) +} + +// WhereHasControlWith applies a predicate to check if query has an edge control with a given conditions (other predicates). +func (f *SubcontrolFilter) WhereHasControlWith(preds ...predicate.Control) { + f.Where(entql.HasEdgeWith("control", 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 *SubcontrolFilter) 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 *SubcontrolFilter) WhereHasUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("user", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasNotes applies a predicate to check if query has an edge notes. +func (f *SubcontrolFilter) WhereHasNotes() { + f.Where(entql.HasEdge("notes")) +} + +// WhereHasNotesWith applies a predicate to check if query has an edge notes with a given conditions (other predicates). +func (f *SubcontrolFilter) WhereHasNotesWith(preds ...predicate.Note) { + f.Where(entql.HasEdgeWith("notes", sqlgraph.WrapFunc(func(s *sql.Selector) { for _, p := range preds { p(s) } @@ -10322,160 +14436,178 @@ func (f *PasswordResetTokenFilter) WhereHasOwnerWith(preds ...predicate.User) { } // addPredicate implements the predicateAdder interface. -func (patq *PersonalAccessTokenQuery) addPredicate(pred func(s *sql.Selector)) { - patq.predicates = append(patq.predicates, pred) +func (shq *SubcontrolHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + shq.predicates = append(shq.predicates, pred) } -// Filter returns a Filter implementation to apply filters on the PersonalAccessTokenQuery builder. -func (patq *PersonalAccessTokenQuery) Filter() *PersonalAccessTokenFilter { - return &PersonalAccessTokenFilter{config: patq.config, predicateAdder: patq} +// Filter returns a Filter implementation to apply filters on the SubcontrolHistoryQuery builder. +func (shq *SubcontrolHistoryQuery) Filter() *SubcontrolHistoryFilter { + return &SubcontrolHistoryFilter{config: shq.config, predicateAdder: shq} } // addPredicate implements the predicateAdder interface. -func (m *PersonalAccessTokenMutation) addPredicate(pred func(s *sql.Selector)) { +func (m *SubcontrolHistoryMutation) addPredicate(pred func(s *sql.Selector)) { m.predicates = append(m.predicates, pred) } -// Filter returns an entql.Where implementation to apply filters on the PersonalAccessTokenMutation builder. -func (m *PersonalAccessTokenMutation) Filter() *PersonalAccessTokenFilter { - return &PersonalAccessTokenFilter{config: m.config, predicateAdder: m} +// Filter returns an entql.Where implementation to apply filters on the SubcontrolHistoryMutation builder. +func (m *SubcontrolHistoryMutation) Filter() *SubcontrolHistoryFilter { + return &SubcontrolHistoryFilter{config: m.config, predicateAdder: m} } -// PersonalAccessTokenFilter provides a generic filtering capability at runtime for PersonalAccessTokenQuery. -type PersonalAccessTokenFilter struct { +// SubcontrolHistoryFilter provides a generic filtering capability at runtime for SubcontrolHistoryQuery. +type SubcontrolHistoryFilter struct { predicateAdder config } // Where applies the entql predicate on the query filter. -func (f *PersonalAccessTokenFilter) Where(p entql.P) { +func (f *SubcontrolHistoryFilter) 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[63].Type, p, s); err != nil { s.AddError(err) } }) } // WhereID applies the entql string predicate on the id field. -func (f *PersonalAccessTokenFilter) WhereID(p entql.StringP) { - f.Where(p.Field(personalaccesstoken.FieldID)) +func (f *SubcontrolHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *SubcontrolHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(subcontrolhistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *SubcontrolHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *SubcontrolHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldOperation)) } // WhereCreatedAt applies the entql time.Time predicate on the created_at field. -func (f *PersonalAccessTokenFilter) WhereCreatedAt(p entql.TimeP) { - f.Where(p.Field(personalaccesstoken.FieldCreatedAt)) +func (f *SubcontrolHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(subcontrolhistory.FieldCreatedAt)) } // WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. -func (f *PersonalAccessTokenFilter) WhereUpdatedAt(p entql.TimeP) { - f.Where(p.Field(personalaccesstoken.FieldUpdatedAt)) +func (f *SubcontrolHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(subcontrolhistory.FieldUpdatedAt)) } // WhereCreatedBy applies the entql string predicate on the created_by field. -func (f *PersonalAccessTokenFilter) WhereCreatedBy(p entql.StringP) { - f.Where(p.Field(personalaccesstoken.FieldCreatedBy)) +func (f *SubcontrolHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldCreatedBy)) } // WhereUpdatedBy applies the entql string predicate on the updated_by field. -func (f *PersonalAccessTokenFilter) WhereUpdatedBy(p entql.StringP) { - f.Where(p.Field(personalaccesstoken.FieldUpdatedBy)) +func (f *SubcontrolHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldUpdatedBy)) } // WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. -func (f *PersonalAccessTokenFilter) WhereDeletedAt(p entql.TimeP) { - f.Where(p.Field(personalaccesstoken.FieldDeletedAt)) +func (f *SubcontrolHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(subcontrolhistory.FieldDeletedAt)) } // WhereDeletedBy applies the entql string predicate on the deleted_by field. -func (f *PersonalAccessTokenFilter) WhereDeletedBy(p entql.StringP) { - f.Where(p.Field(personalaccesstoken.FieldDeletedBy)) +func (f *SubcontrolHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldDeletedBy)) } // WhereMappingID applies the entql string predicate on the mapping_id field. -func (f *PersonalAccessTokenFilter) WhereMappingID(p entql.StringP) { - f.Where(p.Field(personalaccesstoken.FieldMappingID)) +func (f *SubcontrolHistoryFilter) WhereMappingID(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldMappingID)) } // WhereTags applies the entql json.RawMessage predicate on the tags field. -func (f *PersonalAccessTokenFilter) WhereTags(p entql.BytesP) { - f.Where(p.Field(personalaccesstoken.FieldTags)) +func (f *SubcontrolHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(subcontrolhistory.FieldTags)) } -// WhereOwnerID applies the entql string predicate on the owner_id field. -func (f *PersonalAccessTokenFilter) WhereOwnerID(p entql.StringP) { - f.Where(p.Field(personalaccesstoken.FieldOwnerID)) +// WhereName applies the entql string predicate on the name field. +func (f *SubcontrolHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldName)) } -// WhereName applies the entql string predicate on the name field. -func (f *PersonalAccessTokenFilter) WhereName(p entql.StringP) { - f.Where(p.Field(personalaccesstoken.FieldName)) +// WhereDescription applies the entql string predicate on the description field. +func (f *SubcontrolHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldDescription)) } -// WhereToken applies the entql string predicate on the token field. -func (f *PersonalAccessTokenFilter) WhereToken(p entql.StringP) { - f.Where(p.Field(personalaccesstoken.FieldToken)) +// WhereStatus applies the entql string predicate on the status field. +func (f *SubcontrolHistoryFilter) WhereStatus(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldStatus)) } -// WhereExpiresAt applies the entql time.Time predicate on the expires_at field. -func (f *PersonalAccessTokenFilter) WhereExpiresAt(p entql.TimeP) { - f.Where(p.Field(personalaccesstoken.FieldExpiresAt)) +// WhereSubcontrolType applies the entql string predicate on the subcontrol_type field. +func (f *SubcontrolHistoryFilter) WhereSubcontrolType(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldSubcontrolType)) } -// WhereDescription applies the entql string predicate on the description field. -func (f *PersonalAccessTokenFilter) WhereDescription(p entql.StringP) { - f.Where(p.Field(personalaccesstoken.FieldDescription)) +// WhereVersion applies the entql string predicate on the version field. +func (f *SubcontrolHistoryFilter) WhereVersion(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldVersion)) } -// WhereScopes applies the entql json.RawMessage predicate on the scopes field. -func (f *PersonalAccessTokenFilter) WhereScopes(p entql.BytesP) { - f.Where(p.Field(personalaccesstoken.FieldScopes)) +// WhereSubcontrolNumber applies the entql string predicate on the subcontrol_number field. +func (f *SubcontrolHistoryFilter) WhereSubcontrolNumber(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldSubcontrolNumber)) } -// WhereLastUsedAt applies the entql time.Time predicate on the last_used_at field. -func (f *PersonalAccessTokenFilter) WhereLastUsedAt(p entql.TimeP) { - f.Where(p.Field(personalaccesstoken.FieldLastUsedAt)) +// WhereFamily applies the entql string predicate on the family field. +func (f *SubcontrolHistoryFilter) WhereFamily(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldFamily)) } -// WhereHasOwner applies a predicate to check if query has an edge owner. -func (f *PersonalAccessTokenFilter) WhereHasOwner() { - f.Where(entql.HasEdge("owner")) +// WhereClass applies the entql string predicate on the class field. +func (f *SubcontrolHistoryFilter) WhereClass(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldClass)) } -// WhereHasOwnerWith applies a predicate to check if query has an edge owner with a given conditions (other predicates). -func (f *PersonalAccessTokenFilter) WhereHasOwnerWith(preds ...predicate.User) { - f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereSource applies the entql string predicate on the source field. +func (f *SubcontrolHistoryFilter) WhereSource(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldSource)) } -// WhereHasOrganizations applies a predicate to check if query has an edge organizations. -func (f *PersonalAccessTokenFilter) WhereHasOrganizations() { - f.Where(entql.HasEdge("organizations")) +// WhereMappedFrameworks applies the entql string predicate on the mapped_frameworks field. +func (f *SubcontrolHistoryFilter) WhereMappedFrameworks(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldMappedFrameworks)) } -// WhereHasOrganizationsWith applies a predicate to check if query has an edge organizations with a given conditions (other predicates). -func (f *PersonalAccessTokenFilter) WhereHasOrganizationsWith(preds ...predicate.Organization) { - f.Where(entql.HasEdgeWith("organizations", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereImplementationEvidence applies the entql string predicate on the implementation_evidence field. +func (f *SubcontrolHistoryFilter) WhereImplementationEvidence(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldImplementationEvidence)) } -// WhereHasEvents applies a predicate to check if query has an edge events. -func (f *PersonalAccessTokenFilter) WhereHasEvents() { - f.Where(entql.HasEdge("events")) +// WhereImplementationStatus applies the entql string predicate on the implementation_status field. +func (f *SubcontrolHistoryFilter) WhereImplementationStatus(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldImplementationStatus)) } -// WhereHasEventsWith applies a predicate to check if query has an edge events with a given conditions (other predicates). -func (f *PersonalAccessTokenFilter) WhereHasEventsWith(preds ...predicate.Event) { - f.Where(entql.HasEdgeWith("events", sqlgraph.WrapFunc(func(s *sql.Selector) { - for _, p := range preds { - p(s) - } - }))) +// WhereImplementationDate applies the entql time.Time predicate on the implementation_date field. +func (f *SubcontrolHistoryFilter) WhereImplementationDate(p entql.TimeP) { + f.Where(p.Field(subcontrolhistory.FieldImplementationDate)) +} + +// WhereImplementationVerification applies the entql string predicate on the implementation_verification field. +func (f *SubcontrolHistoryFilter) WhereImplementationVerification(p entql.StringP) { + f.Where(p.Field(subcontrolhistory.FieldImplementationVerification)) +} + +// WhereImplementationVerificationDate applies the entql time.Time predicate on the implementation_verification_date field. +func (f *SubcontrolHistoryFilter) WhereImplementationVerificationDate(p entql.TimeP) { + f.Where(p.Field(subcontrolhistory.FieldImplementationVerificationDate)) +} + +// WhereDetails applies the entql json.RawMessage predicate on the details field. +func (f *SubcontrolHistoryFilter) WhereDetails(p entql.BytesP) { + f.Where(p.Field(subcontrolhistory.FieldDetails)) } // addPredicate implements the predicateAdder interface. @@ -10507,7 +14639,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[46].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[64].Type, p, s); err != nil { s.AddError(err) } }) @@ -10660,7 +14792,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[47].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[65].Type, p, s); err != nil { s.AddError(err) } }) @@ -10789,7 +14921,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[48].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[66].Type, p, s); err != nil { s.AddError(err) } }) @@ -10941,7 +15073,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[49].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[67].Type, p, s); err != nil { s.AddError(err) } }) @@ -11066,7 +15198,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[50].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[68].Type, p, s); err != nil { s.AddError(err) } }) @@ -11336,6 +15468,34 @@ func (f *UserFilter) WhereHasEventsWith(preds ...predicate.Event) { }))) } +// WhereHasActionplans applies a predicate to check if query has an edge actionplans. +func (f *UserFilter) WhereHasActionplans() { + f.Where(entql.HasEdge("actionplans")) +} + +// WhereHasActionplansWith applies a predicate to check if query has an edge actionplans with a given conditions (other predicates). +func (f *UserFilter) WhereHasActionplansWith(preds ...predicate.ActionPlan) { + f.Where(entql.HasEdgeWith("actionplans", 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")) +} + +// WhereHasSubcontrolsWith applies a predicate to check if query has an edge subcontrols with a given conditions (other predicates). +func (f *UserFilter) WhereHasSubcontrolsWith(preds ...predicate.Subcontrol) { + f.Where(entql.HasEdgeWith("subcontrols", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + // WhereHasGroupMemberships applies a predicate to check if query has an edge group_memberships. func (f *UserFilter) WhereHasGroupMemberships() { f.Where(entql.HasEdge("group_memberships")) @@ -11393,7 +15553,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[51].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[69].Type, p, s); err != nil { s.AddError(err) } }) @@ -11553,7 +15713,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[52].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[70].Type, p, s); err != nil { s.AddError(err) } }) @@ -11720,7 +15880,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[53].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[71].Type, p, s); err != nil { s.AddError(err) } }) @@ -11860,7 +16020,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[54].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[72].Type, p, s); err != nil { s.AddError(err) } }) @@ -11999,7 +16159,7 @@ type WebhookFilter struct { // Where applies the entql predicate on the query filter. func (f *WebhookFilter) 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[73].Type, p, s); err != nil { s.AddError(err) } }) @@ -12176,7 +16336,7 @@ type WebhookHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *WebhookHistoryFilter) 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[74].Type, p, s); err != nil { s.AddError(err) } }) diff --git a/internal/ent/generated/gql_collection.go b/internal/ent/generated/gql_collection.go index 37677eda..81ea71a1 100644 --- a/internal/ent/generated/gql_collection.go +++ b/internal/ent/generated/gql_collection.go @@ -10,9 +10,15 @@ import ( "entgo.io/contrib/entgql" "entgo.io/ent/dialect/sql" "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" "github.com/theopenlane/core/internal/ent/generated/apitoken" "github.com/theopenlane/core/internal/ent/generated/contact" "github.com/theopenlane/core/internal/ent/generated/contacthistory" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" "github.com/theopenlane/core/internal/ent/generated/documentdata" "github.com/theopenlane/core/internal/ent/generated/documentdatahistory" "github.com/theopenlane/core/internal/ent/generated/entitlement" @@ -41,7 +47,11 @@ import ( "github.com/theopenlane/core/internal/ent/generated/hushhistory" "github.com/theopenlane/core/internal/ent/generated/integration" "github.com/theopenlane/core/internal/ent/generated/integrationhistory" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" "github.com/theopenlane/core/internal/ent/generated/invite" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/notehistory" "github.com/theopenlane/core/internal/ent/generated/oauthprovider" @@ -54,6 +64,14 @@ import ( "github.com/theopenlane/core/internal/ent/generated/orgmembership" "github.com/theopenlane/core/internal/ent/generated/orgmembershiphistory" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" "github.com/theopenlane/core/internal/ent/generated/subscriber" "github.com/theopenlane/core/internal/ent/generated/template" "github.com/theopenlane/core/internal/ent/generated/templatehistory" @@ -213,6 +231,337 @@ func newAPITokenPaginateArgs(rv map[string]any) *apitokenPaginateArgs { return args } +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (ap *ActionPlanQuery) CollectFields(ctx context.Context, satisfies ...string) (*ActionPlanQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return ap, nil + } + if err := ap.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return ap, nil +} + +func (ap *ActionPlanQuery) 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(actionplan.Columns)) + selectedFields = []string{actionplan.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + + case "standard": + var ( + alias = field.Alias + path = append(path, alias) + query = (&StandardClient{config: ap.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, standardImplementors)...); err != nil { + return err + } + ap.WithNamedStandard(alias, func(wq *StandardQuery) { + *wq = *query + }) + + case "risk": + var ( + alias = field.Alias + path = append(path, alias) + query = (&RiskClient{config: ap.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, riskImplementors)...); err != nil { + return err + } + ap.WithNamedRisk(alias, func(wq *RiskQuery) { + *wq = *query + }) + + case "control": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ControlClient{config: ap.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, controlImplementors)...); err != nil { + return err + } + ap.WithNamedControl(alias, func(wq *ControlQuery) { + *wq = *query + }) + + case "user": + var ( + alias = field.Alias + path = append(path, alias) + query = (&UserClient{config: ap.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { + return err + } + ap.WithNamedUser(alias, func(wq *UserQuery) { + *wq = *query + }) + case "createdAt": + if _, ok := fieldSeen[actionplan.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, actionplan.FieldCreatedAt) + fieldSeen[actionplan.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[actionplan.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, actionplan.FieldUpdatedAt) + fieldSeen[actionplan.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[actionplan.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, actionplan.FieldCreatedBy) + fieldSeen[actionplan.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[actionplan.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, actionplan.FieldUpdatedBy) + fieldSeen[actionplan.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[actionplan.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, actionplan.FieldDeletedAt) + fieldSeen[actionplan.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[actionplan.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, actionplan.FieldDeletedBy) + fieldSeen[actionplan.FieldDeletedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[actionplan.FieldTags]; !ok { + selectedFields = append(selectedFields, actionplan.FieldTags) + fieldSeen[actionplan.FieldTags] = struct{}{} + } + case "name": + if _, ok := fieldSeen[actionplan.FieldName]; !ok { + selectedFields = append(selectedFields, actionplan.FieldName) + fieldSeen[actionplan.FieldName] = struct{}{} + } + case "description": + if _, ok := fieldSeen[actionplan.FieldDescription]; !ok { + selectedFields = append(selectedFields, actionplan.FieldDescription) + fieldSeen[actionplan.FieldDescription] = struct{}{} + } + case "status": + if _, ok := fieldSeen[actionplan.FieldStatus]; !ok { + selectedFields = append(selectedFields, actionplan.FieldStatus) + fieldSeen[actionplan.FieldStatus] = struct{}{} + } + case "dueDate": + if _, ok := fieldSeen[actionplan.FieldDueDate]; !ok { + selectedFields = append(selectedFields, actionplan.FieldDueDate) + fieldSeen[actionplan.FieldDueDate] = struct{}{} + } + case "priority": + if _, ok := fieldSeen[actionplan.FieldPriority]; !ok { + selectedFields = append(selectedFields, actionplan.FieldPriority) + fieldSeen[actionplan.FieldPriority] = struct{}{} + } + case "source": + if _, ok := fieldSeen[actionplan.FieldSource]; !ok { + selectedFields = append(selectedFields, actionplan.FieldSource) + fieldSeen[actionplan.FieldSource] = struct{}{} + } + case "details": + if _, ok := fieldSeen[actionplan.FieldDetails]; !ok { + selectedFields = append(selectedFields, actionplan.FieldDetails) + fieldSeen[actionplan.FieldDetails] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + ap.Select(selectedFields...) + } + return nil +} + +type actionplanPaginateArgs struct { + first, last *int + after, before *Cursor + opts []ActionPlanPaginateOption +} + +func newActionPlanPaginateArgs(rv map[string]any) *actionplanPaginateArgs { + args := &actionplanPaginateArgs{} + 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[whereField].(*ActionPlanWhereInput); ok { + args.opts = append(args.opts, WithActionPlanFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (aph *ActionPlanHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*ActionPlanHistoryQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return aph, nil + } + if err := aph.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return aph, nil +} + +func (aph *ActionPlanHistoryQuery) 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(actionplanhistory.Columns)) + selectedFields = []string{actionplanhistory.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + case "historyTime": + if _, ok := fieldSeen[actionplanhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldHistoryTime) + fieldSeen[actionplanhistory.FieldHistoryTime] = struct{}{} + } + case "ref": + if _, ok := fieldSeen[actionplanhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldRef) + fieldSeen[actionplanhistory.FieldRef] = struct{}{} + } + case "operation": + if _, ok := fieldSeen[actionplanhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldOperation) + fieldSeen[actionplanhistory.FieldOperation] = struct{}{} + } + case "createdAt": + if _, ok := fieldSeen[actionplanhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldCreatedAt) + fieldSeen[actionplanhistory.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[actionplanhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldUpdatedAt) + fieldSeen[actionplanhistory.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[actionplanhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldCreatedBy) + fieldSeen[actionplanhistory.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[actionplanhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldUpdatedBy) + fieldSeen[actionplanhistory.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[actionplanhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldDeletedAt) + fieldSeen[actionplanhistory.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[actionplanhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldDeletedBy) + fieldSeen[actionplanhistory.FieldDeletedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[actionplanhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldTags) + fieldSeen[actionplanhistory.FieldTags] = struct{}{} + } + case "name": + if _, ok := fieldSeen[actionplanhistory.FieldName]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldName) + fieldSeen[actionplanhistory.FieldName] = struct{}{} + } + case "description": + if _, ok := fieldSeen[actionplanhistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldDescription) + fieldSeen[actionplanhistory.FieldDescription] = struct{}{} + } + case "status": + if _, ok := fieldSeen[actionplanhistory.FieldStatus]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldStatus) + fieldSeen[actionplanhistory.FieldStatus] = struct{}{} + } + case "dueDate": + if _, ok := fieldSeen[actionplanhistory.FieldDueDate]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldDueDate) + fieldSeen[actionplanhistory.FieldDueDate] = struct{}{} + } + case "priority": + if _, ok := fieldSeen[actionplanhistory.FieldPriority]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldPriority) + fieldSeen[actionplanhistory.FieldPriority] = struct{}{} + } + case "source": + if _, ok := fieldSeen[actionplanhistory.FieldSource]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldSource) + fieldSeen[actionplanhistory.FieldSource] = struct{}{} + } + case "details": + if _, ok := fieldSeen[actionplanhistory.FieldDetails]; !ok { + selectedFields = append(selectedFields, actionplanhistory.FieldDetails) + fieldSeen[actionplanhistory.FieldDetails] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + aph.Select(selectedFields...) + } + return nil +} + +type actionplanhistoryPaginateArgs struct { + first, last *int + after, before *Cursor + opts []ActionPlanHistoryPaginateOption +} + +func newActionPlanHistoryPaginateArgs(rv map[string]any) *actionplanhistoryPaginateArgs { + args := &actionplanhistoryPaginateArgs{} + 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[whereField].(*ActionPlanHistoryWhereInput); ok { + args.opts = append(args.opts, WithActionPlanHistoryFilter(v.Filter)) + } + return args +} + // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. func (c *ContactQuery) CollectFields(ctx context.Context, satisfies ...string) (*ContactQuery, error) { fc := graphql.GetFieldContext(ctx) @@ -544,131 +893,211 @@ func newContactHistoryPaginateArgs(rv map[string]any) *contacthistoryPaginateArg } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (dd *DocumentDataQuery) CollectFields(ctx context.Context, satisfies ...string) (*DocumentDataQuery, error) { +func (c *ControlQuery) CollectFields(ctx context.Context, satisfies ...string) (*ControlQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return dd, nil + return c, nil } - if err := dd.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := c.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return dd, nil + return c, nil } -func (dd *DocumentDataQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (c *ControlQuery) 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(documentdata.Columns)) - selectedFields = []string{documentdata.FieldID} + fieldSeen = make(map[string]struct{}, len(control.Columns)) + selectedFields = []string{control.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "owner": + case "procedures": var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: dd.config}).Query() + query = (&ProcedureClient{config: c.config}).Query() ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, procedureImplementors)...); err != nil { return err } - dd.withOwner = query - if _, ok := fieldSeen[documentdata.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, documentdata.FieldOwnerID) - fieldSeen[documentdata.FieldOwnerID] = struct{}{} + c.WithNamedProcedures(alias, func(wq *ProcedureQuery) { + *wq = *query + }) + + case "subcontrols": + var ( + alias = field.Alias + path = append(path, alias) + query = (&SubcontrolClient{config: c.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, subcontrolImplementors)...); err != nil { + return err } + c.WithNamedSubcontrols(alias, func(wq *SubcontrolQuery) { + *wq = *query + }) - case "template": + case "controlobjectives": var ( alias = field.Alias path = append(path, alias) - query = (&TemplateClient{config: dd.config}).Query() + query = (&ControlObjectiveClient{config: c.config}).Query() ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, templateImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, controlobjectiveImplementors)...); err != nil { return err } - dd.withTemplate = query - if _, ok := fieldSeen[documentdata.FieldTemplateID]; !ok { - selectedFields = append(selectedFields, documentdata.FieldTemplateID) - fieldSeen[documentdata.FieldTemplateID] = struct{}{} + c.WithNamedControlobjectives(alias, func(wq *ControlObjectiveQuery) { + *wq = *query + }) + + case "standard": + var ( + alias = field.Alias + path = append(path, alias) + query = (&StandardClient{config: c.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, standardImplementors)...); err != nil { + return err + } + c.WithNamedStandard(alias, func(wq *StandardQuery) { + *wq = *query + }) + + case "narratives": + var ( + alias = field.Alias + path = append(path, alias) + query = (&NarrativeClient{config: c.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, narrativeImplementors)...); err != nil { + return err } + c.WithNamedNarratives(alias, func(wq *NarrativeQuery) { + *wq = *query + }) - case "entity": + case "risks": var ( alias = field.Alias path = append(path, alias) - query = (&EntityClient{config: dd.config}).Query() + query = (&RiskClient{config: c.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entityImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, riskImplementors)...); err != nil { return err } - dd.WithNamedEntity(alias, func(wq *EntityQuery) { + c.WithNamedRisks(alias, func(wq *RiskQuery) { *wq = *query }) - case "files": + case "actionplans": var ( alias = field.Alias path = append(path, alias) - query = (&FileClient{config: dd.config}).Query() + query = (&ActionPlanClient{config: c.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, fileImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, actionplanImplementors)...); err != nil { return err } - dd.WithNamedFiles(alias, func(wq *FileQuery) { + c.WithNamedActionplans(alias, func(wq *ActionPlanQuery) { *wq = *query }) case "createdAt": - if _, ok := fieldSeen[documentdata.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, documentdata.FieldCreatedAt) - fieldSeen[documentdata.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[control.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, control.FieldCreatedAt) + fieldSeen[control.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[documentdata.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, documentdata.FieldUpdatedAt) - fieldSeen[documentdata.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[control.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, control.FieldUpdatedAt) + fieldSeen[control.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[documentdata.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, documentdata.FieldCreatedBy) - fieldSeen[documentdata.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[control.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, control.FieldCreatedBy) + fieldSeen[control.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[documentdata.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, documentdata.FieldUpdatedBy) - fieldSeen[documentdata.FieldUpdatedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[documentdata.FieldTags]; !ok { - selectedFields = append(selectedFields, documentdata.FieldTags) - fieldSeen[documentdata.FieldTags] = struct{}{} + if _, ok := fieldSeen[control.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, control.FieldUpdatedBy) + fieldSeen[control.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[documentdata.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, documentdata.FieldDeletedAt) - fieldSeen[documentdata.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[control.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, control.FieldDeletedAt) + fieldSeen[control.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[documentdata.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, documentdata.FieldDeletedBy) - fieldSeen[documentdata.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[control.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, control.FieldDeletedBy) + fieldSeen[control.FieldDeletedBy] = struct{}{} } - case "ownerID": - if _, ok := fieldSeen[documentdata.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, documentdata.FieldOwnerID) - fieldSeen[documentdata.FieldOwnerID] = struct{}{} + case "tags": + if _, ok := fieldSeen[control.FieldTags]; !ok { + selectedFields = append(selectedFields, control.FieldTags) + fieldSeen[control.FieldTags] = struct{}{} } - case "templateID": - if _, ok := fieldSeen[documentdata.FieldTemplateID]; !ok { - selectedFields = append(selectedFields, documentdata.FieldTemplateID) - fieldSeen[documentdata.FieldTemplateID] = struct{}{} + case "name": + if _, ok := fieldSeen[control.FieldName]; !ok { + selectedFields = append(selectedFields, control.FieldName) + fieldSeen[control.FieldName] = struct{}{} } - case "data": - if _, ok := fieldSeen[documentdata.FieldData]; !ok { - selectedFields = append(selectedFields, documentdata.FieldData) - fieldSeen[documentdata.FieldData] = struct{}{} + case "description": + if _, ok := fieldSeen[control.FieldDescription]; !ok { + selectedFields = append(selectedFields, control.FieldDescription) + fieldSeen[control.FieldDescription] = struct{}{} + } + case "status": + if _, ok := fieldSeen[control.FieldStatus]; !ok { + selectedFields = append(selectedFields, control.FieldStatus) + fieldSeen[control.FieldStatus] = struct{}{} + } + case "controlType": + if _, ok := fieldSeen[control.FieldControlType]; !ok { + selectedFields = append(selectedFields, control.FieldControlType) + fieldSeen[control.FieldControlType] = struct{}{} + } + case "version": + if _, ok := fieldSeen[control.FieldVersion]; !ok { + selectedFields = append(selectedFields, control.FieldVersion) + fieldSeen[control.FieldVersion] = struct{}{} + } + case "controlNumber": + if _, ok := fieldSeen[control.FieldControlNumber]; !ok { + selectedFields = append(selectedFields, control.FieldControlNumber) + fieldSeen[control.FieldControlNumber] = struct{}{} + } + case "family": + if _, ok := fieldSeen[control.FieldFamily]; !ok { + selectedFields = append(selectedFields, control.FieldFamily) + fieldSeen[control.FieldFamily] = struct{}{} + } + case "class": + if _, ok := fieldSeen[control.FieldClass]; !ok { + selectedFields = append(selectedFields, control.FieldClass) + fieldSeen[control.FieldClass] = struct{}{} + } + case "source": + if _, ok := fieldSeen[control.FieldSource]; !ok { + selectedFields = append(selectedFields, control.FieldSource) + fieldSeen[control.FieldSource] = struct{}{} + } + case "satisfies": + if _, ok := fieldSeen[control.FieldSatisfies]; !ok { + selectedFields = append(selectedFields, control.FieldSatisfies) + fieldSeen[control.FieldSatisfies] = struct{}{} + } + case "mappedFrameworks": + if _, ok := fieldSeen[control.FieldMappedFrameworks]; !ok { + selectedFields = append(selectedFields, control.FieldMappedFrameworks) + fieldSeen[control.FieldMappedFrameworks] = struct{}{} + } + case "details": + if _, ok := fieldSeen[control.FieldDetails]; !ok { + selectedFields = append(selectedFields, control.FieldDetails) + fieldSeen[control.FieldDetails] = struct{}{} } case "id": case "__typename": @@ -677,19 +1106,19 @@ func (dd *DocumentDataQuery) collectField(ctx context.Context, oneNode bool, opC } } if !unknownSeen { - dd.Select(selectedFields...) + c.Select(selectedFields...) } return nil } -type documentdataPaginateArgs struct { +type controlPaginateArgs struct { first, last *int after, before *Cursor - opts []DocumentDataPaginateOption + opts []ControlPaginateOption } -func newDocumentDataPaginateArgs(rv map[string]any) *documentdataPaginateArgs { - args := &documentdataPaginateArgs{} +func newControlPaginateArgs(rv map[string]any) *controlPaginateArgs { + args := &controlPaginateArgs{} if rv == nil { return args } @@ -705,97 +1134,142 @@ func newDocumentDataPaginateArgs(rv map[string]any) *documentdataPaginateArgs { if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*DocumentDataWhereInput); ok { - args.opts = append(args.opts, WithDocumentDataFilter(v.Filter)) + if v, ok := rv[whereField].(*ControlWhereInput); ok { + args.opts = append(args.opts, WithControlFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (ddh *DocumentDataHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*DocumentDataHistoryQuery, error) { +func (ch *ControlHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*ControlHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return ddh, nil + return ch, nil } - if err := ddh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := ch.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return ddh, nil + return ch, nil } -func (ddh *DocumentDataHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (ch *ControlHistoryQuery) 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(documentdatahistory.Columns)) - selectedFields = []string{documentdatahistory.FieldID} + fieldSeen = make(map[string]struct{}, len(controlhistory.Columns)) + selectedFields = []string{controlhistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { case "historyTime": - if _, ok := fieldSeen[documentdatahistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldHistoryTime) - fieldSeen[documentdatahistory.FieldHistoryTime] = struct{}{} + if _, ok := fieldSeen[controlhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldHistoryTime) + fieldSeen[controlhistory.FieldHistoryTime] = struct{}{} } case "ref": - if _, ok := fieldSeen[documentdatahistory.FieldRef]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldRef) - fieldSeen[documentdatahistory.FieldRef] = struct{}{} + if _, ok := fieldSeen[controlhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldRef) + fieldSeen[controlhistory.FieldRef] = struct{}{} } case "operation": - if _, ok := fieldSeen[documentdatahistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldOperation) - fieldSeen[documentdatahistory.FieldOperation] = struct{}{} + if _, ok := fieldSeen[controlhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldOperation) + fieldSeen[controlhistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[documentdatahistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldCreatedAt) - fieldSeen[documentdatahistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[controlhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldCreatedAt) + fieldSeen[controlhistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[documentdatahistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldUpdatedAt) - fieldSeen[documentdatahistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[controlhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldUpdatedAt) + fieldSeen[controlhistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[documentdatahistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldCreatedBy) - fieldSeen[documentdatahistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[controlhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldCreatedBy) + fieldSeen[controlhistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[documentdatahistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldUpdatedBy) - fieldSeen[documentdatahistory.FieldUpdatedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[documentdatahistory.FieldTags]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldTags) - fieldSeen[documentdatahistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[controlhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldUpdatedBy) + fieldSeen[controlhistory.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[documentdatahistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldDeletedAt) - fieldSeen[documentdatahistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[controlhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldDeletedAt) + fieldSeen[controlhistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[documentdatahistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldDeletedBy) - fieldSeen[documentdatahistory.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[controlhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldDeletedBy) + fieldSeen[controlhistory.FieldDeletedBy] = struct{}{} } - case "ownerID": - if _, ok := fieldSeen[documentdatahistory.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldOwnerID) - fieldSeen[documentdatahistory.FieldOwnerID] = struct{}{} + case "tags": + if _, ok := fieldSeen[controlhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldTags) + fieldSeen[controlhistory.FieldTags] = struct{}{} } - case "templateID": - if _, ok := fieldSeen[documentdatahistory.FieldTemplateID]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldTemplateID) - fieldSeen[documentdatahistory.FieldTemplateID] = struct{}{} + case "name": + if _, ok := fieldSeen[controlhistory.FieldName]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldName) + fieldSeen[controlhistory.FieldName] = struct{}{} } - case "data": - if _, ok := fieldSeen[documentdatahistory.FieldData]; !ok { - selectedFields = append(selectedFields, documentdatahistory.FieldData) - fieldSeen[documentdatahistory.FieldData] = struct{}{} + case "description": + if _, ok := fieldSeen[controlhistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldDescription) + fieldSeen[controlhistory.FieldDescription] = struct{}{} + } + case "status": + if _, ok := fieldSeen[controlhistory.FieldStatus]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldStatus) + fieldSeen[controlhistory.FieldStatus] = struct{}{} + } + case "controlType": + if _, ok := fieldSeen[controlhistory.FieldControlType]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldControlType) + fieldSeen[controlhistory.FieldControlType] = struct{}{} + } + case "version": + if _, ok := fieldSeen[controlhistory.FieldVersion]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldVersion) + fieldSeen[controlhistory.FieldVersion] = struct{}{} + } + case "controlNumber": + if _, ok := fieldSeen[controlhistory.FieldControlNumber]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldControlNumber) + fieldSeen[controlhistory.FieldControlNumber] = struct{}{} + } + case "family": + if _, ok := fieldSeen[controlhistory.FieldFamily]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldFamily) + fieldSeen[controlhistory.FieldFamily] = struct{}{} + } + case "class": + if _, ok := fieldSeen[controlhistory.FieldClass]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldClass) + fieldSeen[controlhistory.FieldClass] = struct{}{} + } + case "source": + if _, ok := fieldSeen[controlhistory.FieldSource]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldSource) + fieldSeen[controlhistory.FieldSource] = struct{}{} + } + case "satisfies": + if _, ok := fieldSeen[controlhistory.FieldSatisfies]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldSatisfies) + fieldSeen[controlhistory.FieldSatisfies] = struct{}{} + } + case "mappedFrameworks": + if _, ok := fieldSeen[controlhistory.FieldMappedFrameworks]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldMappedFrameworks) + fieldSeen[controlhistory.FieldMappedFrameworks] = struct{}{} + } + case "details": + if _, ok := fieldSeen[controlhistory.FieldDetails]; !ok { + selectedFields = append(selectedFields, controlhistory.FieldDetails) + fieldSeen[controlhistory.FieldDetails] = struct{}{} } case "id": case "__typename": @@ -804,19 +1278,19 @@ func (ddh *DocumentDataHistoryQuery) collectField(ctx context.Context, oneNode b } } if !unknownSeen { - ddh.Select(selectedFields...) + ch.Select(selectedFields...) } return nil } -type documentdatahistoryPaginateArgs struct { +type controlhistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []DocumentDataHistoryPaginateOption + opts []ControlHistoryPaginateOption } -func newDocumentDataHistoryPaginateArgs(rv map[string]any) *documentdatahistoryPaginateArgs { - args := &documentdatahistoryPaginateArgs{} +func newControlHistoryPaginateArgs(rv map[string]any) *controlhistoryPaginateArgs { + args := &controlhistoryPaginateArgs{} if rv == nil { return args } @@ -832,165 +1306,213 @@ func newDocumentDataHistoryPaginateArgs(rv map[string]any) *documentdatahistoryP if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*DocumentDataHistoryWhereInput); ok { - args.opts = append(args.opts, WithDocumentDataHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*ControlHistoryWhereInput); ok { + args.opts = append(args.opts, WithControlHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (e *EntitlementQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementQuery, error) { +func (co *ControlObjectiveQuery) CollectFields(ctx context.Context, satisfies ...string) (*ControlObjectiveQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return e, nil + return co, nil } - if err := e.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := co.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return e, nil + return co, nil } -func (e *EntitlementQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (co *ControlObjectiveQuery) 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(entitlement.Columns)) - selectedFields = []string{entitlement.FieldID} + fieldSeen = make(map[string]struct{}, len(controlobjective.Columns)) + selectedFields = []string{controlobjective.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "owner": + case "policy": var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: e.config}).Query() + query = (&InternalPolicyClient{config: co.config}).Query() ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, internalpolicyImplementors)...); err != nil { return err } - e.withOwner = query - if _, ok := fieldSeen[entitlement.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entitlement.FieldOwnerID) - fieldSeen[entitlement.FieldOwnerID] = struct{}{} + co.WithNamedPolicy(alias, func(wq *InternalPolicyQuery) { + *wq = *query + }) + + case "controls": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ControlClient{config: co.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, controlImplementors)...); err != nil { + return err } + co.WithNamedControls(alias, func(wq *ControlQuery) { + *wq = *query + }) - case "plan": + case "procedures": var ( alias = field.Alias path = append(path, alias) - query = (&EntitlementPlanClient{config: e.config}).Query() + query = (&ProcedureClient{config: co.config}).Query() ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, entitlementplanImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, procedureImplementors)...); err != nil { return err } - e.withPlan = query - if _, ok := fieldSeen[entitlement.FieldPlanID]; !ok { - selectedFields = append(selectedFields, entitlement.FieldPlanID) - fieldSeen[entitlement.FieldPlanID] = struct{}{} + co.WithNamedProcedures(alias, func(wq *ProcedureQuery) { + *wq = *query + }) + + case "risks": + var ( + alias = field.Alias + path = append(path, alias) + query = (&RiskClient{config: co.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, riskImplementors)...); err != nil { + return err } + co.WithNamedRisks(alias, func(wq *RiskQuery) { + *wq = *query + }) - case "organization": + case "subcontrols": var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: e.config}).Query() + query = (&SubcontrolClient{config: co.config}).Query() ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, subcontrolImplementors)...); err != nil { return err } - e.withOrganization = query - if _, ok := fieldSeen[entitlement.FieldOrganizationID]; !ok { - selectedFields = append(selectedFields, entitlement.FieldOrganizationID) - fieldSeen[entitlement.FieldOrganizationID] = struct{}{} + co.WithNamedSubcontrols(alias, func(wq *SubcontrolQuery) { + *wq = *query + }) + + case "standard": + var ( + alias = field.Alias + path = append(path, alias) + query = (&StandardClient{config: co.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, standardImplementors)...); err != nil { + return err } + co.WithNamedStandard(alias, func(wq *StandardQuery) { + *wq = *query + }) - case "events": + case "narratives": var ( alias = field.Alias path = append(path, alias) - query = (&EventClient{config: e.config}).Query() + query = (&NarrativeClient{config: co.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, narrativeImplementors)...); err != nil { return err } - e.WithNamedEvents(alias, func(wq *EventQuery) { + co.WithNamedNarratives(alias, func(wq *NarrativeQuery) { *wq = *query }) case "createdAt": - if _, ok := fieldSeen[entitlement.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, entitlement.FieldCreatedAt) - fieldSeen[entitlement.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[controlobjective.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldCreatedAt) + fieldSeen[controlobjective.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[entitlement.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, entitlement.FieldUpdatedAt) - fieldSeen[entitlement.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[controlobjective.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldUpdatedAt) + fieldSeen[controlobjective.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[entitlement.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, entitlement.FieldCreatedBy) - fieldSeen[entitlement.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[controlobjective.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldCreatedBy) + fieldSeen[controlobjective.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[entitlement.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, entitlement.FieldUpdatedBy) - fieldSeen[entitlement.FieldUpdatedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[entitlement.FieldTags]; !ok { - selectedFields = append(selectedFields, entitlement.FieldTags) - fieldSeen[entitlement.FieldTags] = struct{}{} + if _, ok := fieldSeen[controlobjective.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldUpdatedBy) + fieldSeen[controlobjective.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[entitlement.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, entitlement.FieldDeletedAt) - fieldSeen[entitlement.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[controlobjective.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldDeletedAt) + fieldSeen[controlobjective.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[entitlement.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, entitlement.FieldDeletedBy) - fieldSeen[entitlement.FieldDeletedBy] = struct{}{} - } - case "ownerID": - if _, ok := fieldSeen[entitlement.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entitlement.FieldOwnerID) - fieldSeen[entitlement.FieldOwnerID] = struct{}{} - } - case "planID": - if _, ok := fieldSeen[entitlement.FieldPlanID]; !ok { - selectedFields = append(selectedFields, entitlement.FieldPlanID) - fieldSeen[entitlement.FieldPlanID] = struct{}{} + if _, ok := fieldSeen[controlobjective.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldDeletedBy) + fieldSeen[controlobjective.FieldDeletedBy] = struct{}{} } - case "organizationID": - if _, ok := fieldSeen[entitlement.FieldOrganizationID]; !ok { - selectedFields = append(selectedFields, entitlement.FieldOrganizationID) - fieldSeen[entitlement.FieldOrganizationID] = struct{}{} + case "tags": + if _, ok := fieldSeen[controlobjective.FieldTags]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldTags) + fieldSeen[controlobjective.FieldTags] = struct{}{} } - case "externalCustomerID": - if _, ok := fieldSeen[entitlement.FieldExternalCustomerID]; !ok { - selectedFields = append(selectedFields, entitlement.FieldExternalCustomerID) - fieldSeen[entitlement.FieldExternalCustomerID] = struct{}{} + case "name": + if _, ok := fieldSeen[controlobjective.FieldName]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldName) + fieldSeen[controlobjective.FieldName] = struct{}{} } - case "externalSubscriptionID": - if _, ok := fieldSeen[entitlement.FieldExternalSubscriptionID]; !ok { - selectedFields = append(selectedFields, entitlement.FieldExternalSubscriptionID) - fieldSeen[entitlement.FieldExternalSubscriptionID] = struct{}{} + case "description": + if _, ok := fieldSeen[controlobjective.FieldDescription]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldDescription) + fieldSeen[controlobjective.FieldDescription] = struct{}{} } - case "expires": - if _, ok := fieldSeen[entitlement.FieldExpires]; !ok { - selectedFields = append(selectedFields, entitlement.FieldExpires) - fieldSeen[entitlement.FieldExpires] = struct{}{} + case "status": + if _, ok := fieldSeen[controlobjective.FieldStatus]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldStatus) + fieldSeen[controlobjective.FieldStatus] = struct{}{} } - case "expiresAt": - if _, ok := fieldSeen[entitlement.FieldExpiresAt]; !ok { - selectedFields = append(selectedFields, entitlement.FieldExpiresAt) - fieldSeen[entitlement.FieldExpiresAt] = struct{}{} + case "controlObjectiveType": + if _, ok := fieldSeen[controlobjective.FieldControlObjectiveType]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldControlObjectiveType) + fieldSeen[controlobjective.FieldControlObjectiveType] = struct{}{} } - case "cancelled": - if _, ok := fieldSeen[entitlement.FieldCancelled]; !ok { - selectedFields = append(selectedFields, entitlement.FieldCancelled) - fieldSeen[entitlement.FieldCancelled] = struct{}{} + case "version": + if _, ok := fieldSeen[controlobjective.FieldVersion]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldVersion) + fieldSeen[controlobjective.FieldVersion] = struct{}{} + } + case "controlNumber": + if _, ok := fieldSeen[controlobjective.FieldControlNumber]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldControlNumber) + fieldSeen[controlobjective.FieldControlNumber] = struct{}{} + } + case "family": + if _, ok := fieldSeen[controlobjective.FieldFamily]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldFamily) + fieldSeen[controlobjective.FieldFamily] = struct{}{} + } + case "class": + if _, ok := fieldSeen[controlobjective.FieldClass]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldClass) + fieldSeen[controlobjective.FieldClass] = struct{}{} + } + case "source": + if _, ok := fieldSeen[controlobjective.FieldSource]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldSource) + fieldSeen[controlobjective.FieldSource] = struct{}{} + } + case "mappedFrameworks": + if _, ok := fieldSeen[controlobjective.FieldMappedFrameworks]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldMappedFrameworks) + fieldSeen[controlobjective.FieldMappedFrameworks] = struct{}{} + } + case "details": + if _, ok := fieldSeen[controlobjective.FieldDetails]; !ok { + selectedFields = append(selectedFields, controlobjective.FieldDetails) + fieldSeen[controlobjective.FieldDetails] = struct{}{} } case "id": case "__typename": @@ -999,19 +1521,19 @@ func (e *EntitlementQuery) collectField(ctx context.Context, oneNode bool, opCtx } } if !unknownSeen { - e.Select(selectedFields...) + co.Select(selectedFields...) } return nil } -type entitlementPaginateArgs struct { +type controlobjectivePaginateArgs struct { first, last *int after, before *Cursor - opts []EntitlementPaginateOption + opts []ControlObjectivePaginateOption } -func newEntitlementPaginateArgs(rv map[string]any) *entitlementPaginateArgs { - args := &entitlementPaginateArgs{} +func newControlObjectivePaginateArgs(rv map[string]any) *controlobjectivePaginateArgs { + args := &controlobjectivePaginateArgs{} if rv == nil { return args } @@ -1027,122 +1549,137 @@ func newEntitlementPaginateArgs(rv map[string]any) *entitlementPaginateArgs { if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*EntitlementWhereInput); ok { - args.opts = append(args.opts, WithEntitlementFilter(v.Filter)) + if v, ok := rv[whereField].(*ControlObjectiveWhereInput); ok { + args.opts = append(args.opts, WithControlObjectiveFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (eh *EntitlementHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementHistoryQuery, error) { +func (coh *ControlObjectiveHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*ControlObjectiveHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return eh, nil + return coh, nil } - if err := eh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := coh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return eh, nil + return coh, nil } -func (eh *EntitlementHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (coh *ControlObjectiveHistoryQuery) 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(entitlementhistory.Columns)) - selectedFields = []string{entitlementhistory.FieldID} + fieldSeen = make(map[string]struct{}, len(controlobjectivehistory.Columns)) + selectedFields = []string{controlobjectivehistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { case "historyTime": - if _, ok := fieldSeen[entitlementhistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldHistoryTime) - fieldSeen[entitlementhistory.FieldHistoryTime] = struct{}{} + if _, ok := fieldSeen[controlobjectivehistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldHistoryTime) + fieldSeen[controlobjectivehistory.FieldHistoryTime] = struct{}{} } case "ref": - if _, ok := fieldSeen[entitlementhistory.FieldRef]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldRef) - fieldSeen[entitlementhistory.FieldRef] = struct{}{} + if _, ok := fieldSeen[controlobjectivehistory.FieldRef]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldRef) + fieldSeen[controlobjectivehistory.FieldRef] = struct{}{} } case "operation": - if _, ok := fieldSeen[entitlementhistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldOperation) - fieldSeen[entitlementhistory.FieldOperation] = struct{}{} + if _, ok := fieldSeen[controlobjectivehistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldOperation) + fieldSeen[controlobjectivehistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[entitlementhistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldCreatedAt) - fieldSeen[entitlementhistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[controlobjectivehistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldCreatedAt) + fieldSeen[controlobjectivehistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[entitlementhistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldUpdatedAt) - fieldSeen[entitlementhistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[controlobjectivehistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldUpdatedAt) + fieldSeen[controlobjectivehistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[entitlementhistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldCreatedBy) - fieldSeen[entitlementhistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[controlobjectivehistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldCreatedBy) + fieldSeen[controlobjectivehistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[entitlementhistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldUpdatedBy) - fieldSeen[entitlementhistory.FieldUpdatedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[entitlementhistory.FieldTags]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldTags) - fieldSeen[entitlementhistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[controlobjectivehistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldUpdatedBy) + fieldSeen[controlobjectivehistory.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[entitlementhistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldDeletedAt) - fieldSeen[entitlementhistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[controlobjectivehistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldDeletedAt) + fieldSeen[controlobjectivehistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[entitlementhistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldDeletedBy) - fieldSeen[entitlementhistory.FieldDeletedBy] = struct{}{} - } - case "ownerID": - if _, ok := fieldSeen[entitlementhistory.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldOwnerID) - fieldSeen[entitlementhistory.FieldOwnerID] = struct{}{} - } - case "planID": - if _, ok := fieldSeen[entitlementhistory.FieldPlanID]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldPlanID) - fieldSeen[entitlementhistory.FieldPlanID] = struct{}{} + if _, ok := fieldSeen[controlobjectivehistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldDeletedBy) + fieldSeen[controlobjectivehistory.FieldDeletedBy] = struct{}{} } - case "organizationID": - if _, ok := fieldSeen[entitlementhistory.FieldOrganizationID]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldOrganizationID) - fieldSeen[entitlementhistory.FieldOrganizationID] = struct{}{} + case "tags": + if _, ok := fieldSeen[controlobjectivehistory.FieldTags]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldTags) + fieldSeen[controlobjectivehistory.FieldTags] = struct{}{} } - case "externalCustomerID": - if _, ok := fieldSeen[entitlementhistory.FieldExternalCustomerID]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldExternalCustomerID) - fieldSeen[entitlementhistory.FieldExternalCustomerID] = struct{}{} + case "name": + if _, ok := fieldSeen[controlobjectivehistory.FieldName]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldName) + fieldSeen[controlobjectivehistory.FieldName] = struct{}{} } - case "externalSubscriptionID": - if _, ok := fieldSeen[entitlementhistory.FieldExternalSubscriptionID]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldExternalSubscriptionID) - fieldSeen[entitlementhistory.FieldExternalSubscriptionID] = struct{}{} + case "description": + if _, ok := fieldSeen[controlobjectivehistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldDescription) + fieldSeen[controlobjectivehistory.FieldDescription] = struct{}{} } - case "expires": - if _, ok := fieldSeen[entitlementhistory.FieldExpires]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldExpires) - fieldSeen[entitlementhistory.FieldExpires] = struct{}{} + case "status": + if _, ok := fieldSeen[controlobjectivehistory.FieldStatus]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldStatus) + fieldSeen[controlobjectivehistory.FieldStatus] = struct{}{} } - case "expiresAt": - if _, ok := fieldSeen[entitlementhistory.FieldExpiresAt]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldExpiresAt) - fieldSeen[entitlementhistory.FieldExpiresAt] = struct{}{} + case "controlObjectiveType": + if _, ok := fieldSeen[controlobjectivehistory.FieldControlObjectiveType]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldControlObjectiveType) + fieldSeen[controlobjectivehistory.FieldControlObjectiveType] = struct{}{} } - case "cancelled": - if _, ok := fieldSeen[entitlementhistory.FieldCancelled]; !ok { - selectedFields = append(selectedFields, entitlementhistory.FieldCancelled) - fieldSeen[entitlementhistory.FieldCancelled] = struct{}{} + case "version": + if _, ok := fieldSeen[controlobjectivehistory.FieldVersion]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldVersion) + fieldSeen[controlobjectivehistory.FieldVersion] = struct{}{} + } + case "controlNumber": + if _, ok := fieldSeen[controlobjectivehistory.FieldControlNumber]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldControlNumber) + fieldSeen[controlobjectivehistory.FieldControlNumber] = struct{}{} + } + case "family": + if _, ok := fieldSeen[controlobjectivehistory.FieldFamily]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldFamily) + fieldSeen[controlobjectivehistory.FieldFamily] = struct{}{} + } + case "class": + if _, ok := fieldSeen[controlobjectivehistory.FieldClass]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldClass) + fieldSeen[controlobjectivehistory.FieldClass] = struct{}{} + } + case "source": + if _, ok := fieldSeen[controlobjectivehistory.FieldSource]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldSource) + fieldSeen[controlobjectivehistory.FieldSource] = struct{}{} + } + case "mappedFrameworks": + if _, ok := fieldSeen[controlobjectivehistory.FieldMappedFrameworks]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldMappedFrameworks) + fieldSeen[controlobjectivehistory.FieldMappedFrameworks] = struct{}{} + } + case "details": + if _, ok := fieldSeen[controlobjectivehistory.FieldDetails]; !ok { + selectedFields = append(selectedFields, controlobjectivehistory.FieldDetails) + fieldSeen[controlobjectivehistory.FieldDetails] = struct{}{} } case "id": case "__typename": @@ -1151,19 +1688,19 @@ func (eh *EntitlementHistoryQuery) collectField(ctx context.Context, oneNode boo } } if !unknownSeen { - eh.Select(selectedFields...) + coh.Select(selectedFields...) } return nil } -type entitlementhistoryPaginateArgs struct { +type controlobjectivehistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []EntitlementHistoryPaginateOption + opts []ControlObjectiveHistoryPaginateOption } -func newEntitlementHistoryPaginateArgs(rv map[string]any) *entitlementhistoryPaginateArgs { - args := &entitlementhistoryPaginateArgs{} +func newControlObjectiveHistoryPaginateArgs(rv map[string]any) *controlobjectivehistoryPaginateArgs { + args := &controlobjectivehistoryPaginateArgs{} if rv == nil { return args } @@ -1179,30 +1716,30 @@ func newEntitlementHistoryPaginateArgs(rv map[string]any) *entitlementhistoryPag if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*EntitlementHistoryWhereInput); ok { - args.opts = append(args.opts, WithEntitlementHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*ControlObjectiveHistoryWhereInput); ok { + args.opts = append(args.opts, WithControlObjectiveHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (ep *EntitlementPlanQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementPlanQuery, error) { +func (dd *DocumentDataQuery) CollectFields(ctx context.Context, satisfies ...string) (*DocumentDataQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return ep, nil + return dd, nil } - if err := ep.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := dd.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return ep, nil + return dd, nil } -func (ep *EntitlementPlanQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (dd *DocumentDataQuery) 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(entitlementplan.Columns)) - selectedFields = []string{entitlementplan.FieldID} + fieldSeen = make(map[string]struct{}, len(documentdata.Columns)) + selectedFields = []string{documentdata.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { @@ -1211,132 +1748,106 @@ func (ep *EntitlementPlanQuery) collectField(ctx context.Context, oneNode bool, var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: ep.config}).Query() + query = (&OrganizationClient{config: dd.config}).Query() ) if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { return err } - ep.withOwner = query - if _, ok := fieldSeen[entitlementplan.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldOwnerID) - fieldSeen[entitlementplan.FieldOwnerID] = struct{}{} + dd.withOwner = query + if _, ok := fieldSeen[documentdata.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, documentdata.FieldOwnerID) + fieldSeen[documentdata.FieldOwnerID] = struct{}{} } - case "entitlements": + case "template": var ( alias = field.Alias path = append(path, alias) - query = (&EntitlementClient{config: ep.config}).Query() + query = (&TemplateClient{config: dd.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementImplementors)...); err != nil { + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, templateImplementors)...); err != nil { return err } - ep.WithNamedEntitlements(alias, func(wq *EntitlementQuery) { - *wq = *query - }) - - case "baseFeatures": - var ( - alias = field.Alias - path = append(path, alias) - query = (&FeatureClient{config: ep.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, featureImplementors)...); err != nil { - return err + dd.withTemplate = query + if _, ok := fieldSeen[documentdata.FieldTemplateID]; !ok { + selectedFields = append(selectedFields, documentdata.FieldTemplateID) + fieldSeen[documentdata.FieldTemplateID] = struct{}{} } - ep.WithNamedBaseFeatures(alias, func(wq *FeatureQuery) { - *wq = *query - }) - case "events": + case "entity": var ( alias = field.Alias path = append(path, alias) - query = (&EventClient{config: ep.config}).Query() + query = (&EntityClient{config: dd.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entityImplementors)...); err != nil { return err } - ep.WithNamedEvents(alias, func(wq *EventQuery) { + dd.WithNamedEntity(alias, func(wq *EntityQuery) { *wq = *query }) - case "features": + case "files": var ( alias = field.Alias path = append(path, alias) - query = (&EntitlementPlanFeatureClient{config: ep.config}).Query() + query = (&FileClient{config: dd.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanfeatureImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, fileImplementors)...); err != nil { return err } - ep.WithNamedFeatures(alias, func(wq *EntitlementPlanFeatureQuery) { + dd.WithNamedFiles(alias, func(wq *FileQuery) { *wq = *query }) case "createdAt": - if _, ok := fieldSeen[entitlementplan.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldCreatedAt) - fieldSeen[entitlementplan.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[documentdata.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, documentdata.FieldCreatedAt) + fieldSeen[documentdata.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[entitlementplan.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldUpdatedAt) - fieldSeen[entitlementplan.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[documentdata.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, documentdata.FieldUpdatedAt) + fieldSeen[documentdata.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[entitlementplan.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldCreatedBy) - fieldSeen[entitlementplan.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[documentdata.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, documentdata.FieldCreatedBy) + fieldSeen[documentdata.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[entitlementplan.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldUpdatedBy) - fieldSeen[entitlementplan.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[documentdata.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, documentdata.FieldUpdatedBy) + fieldSeen[documentdata.FieldUpdatedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[documentdata.FieldTags]; !ok { + selectedFields = append(selectedFields, documentdata.FieldTags) + fieldSeen[documentdata.FieldTags] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[entitlementplan.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldDeletedAt) - fieldSeen[entitlementplan.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[documentdata.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, documentdata.FieldDeletedAt) + fieldSeen[documentdata.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[entitlementplan.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldDeletedBy) - fieldSeen[entitlementplan.FieldDeletedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[entitlementplan.FieldTags]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldTags) - fieldSeen[entitlementplan.FieldTags] = struct{}{} + if _, ok := fieldSeen[documentdata.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, documentdata.FieldDeletedBy) + fieldSeen[documentdata.FieldDeletedBy] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[entitlementplan.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldOwnerID) - fieldSeen[entitlementplan.FieldOwnerID] = struct{}{} - } - case "displayName": - if _, ok := fieldSeen[entitlementplan.FieldDisplayName]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldDisplayName) - fieldSeen[entitlementplan.FieldDisplayName] = struct{}{} - } - case "name": - if _, ok := fieldSeen[entitlementplan.FieldName]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldName) - fieldSeen[entitlementplan.FieldName] = struct{}{} - } - case "description": - if _, ok := fieldSeen[entitlementplan.FieldDescription]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldDescription) - fieldSeen[entitlementplan.FieldDescription] = struct{}{} + if _, ok := fieldSeen[documentdata.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, documentdata.FieldOwnerID) + fieldSeen[documentdata.FieldOwnerID] = struct{}{} } - case "version": - if _, ok := fieldSeen[entitlementplan.FieldVersion]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldVersion) - fieldSeen[entitlementplan.FieldVersion] = struct{}{} + case "templateID": + if _, ok := fieldSeen[documentdata.FieldTemplateID]; !ok { + selectedFields = append(selectedFields, documentdata.FieldTemplateID) + fieldSeen[documentdata.FieldTemplateID] = struct{}{} } - case "metadata": - if _, ok := fieldSeen[entitlementplan.FieldMetadata]; !ok { - selectedFields = append(selectedFields, entitlementplan.FieldMetadata) - fieldSeen[entitlementplan.FieldMetadata] = struct{}{} + case "data": + if _, ok := fieldSeen[documentdata.FieldData]; !ok { + selectedFields = append(selectedFields, documentdata.FieldData) + fieldSeen[documentdata.FieldData] = struct{}{} } case "id": case "__typename": @@ -1345,19 +1856,19 @@ func (ep *EntitlementPlanQuery) collectField(ctx context.Context, oneNode bool, } } if !unknownSeen { - ep.Select(selectedFields...) + dd.Select(selectedFields...) } return nil } -type entitlementplanPaginateArgs struct { +type documentdataPaginateArgs struct { first, last *int after, before *Cursor - opts []EntitlementPlanPaginateOption + opts []DocumentDataPaginateOption } -func newEntitlementPlanPaginateArgs(rv map[string]any) *entitlementplanPaginateArgs { - args := &entitlementplanPaginateArgs{} +func newDocumentDataPaginateArgs(rv map[string]any) *documentdataPaginateArgs { + args := &documentdataPaginateArgs{} if rv == nil { return args } @@ -1373,145 +1884,97 @@ func newEntitlementPlanPaginateArgs(rv map[string]any) *entitlementplanPaginateA if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*EntitlementPlanWhereInput); ok { - args.opts = append(args.opts, WithEntitlementPlanFilter(v.Filter)) + if v, ok := rv[whereField].(*DocumentDataWhereInput); ok { + args.opts = append(args.opts, WithDocumentDataFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (epf *EntitlementPlanFeatureQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementPlanFeatureQuery, error) { +func (ddh *DocumentDataHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*DocumentDataHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return epf, nil + return ddh, nil } - if err := epf.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := ddh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return epf, nil + return ddh, nil } -func (epf *EntitlementPlanFeatureQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (ddh *DocumentDataHistoryQuery) 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(entitlementplanfeature.Columns)) - selectedFields = []string{entitlementplanfeature.FieldID} + fieldSeen = make(map[string]struct{}, len(documentdatahistory.Columns)) + selectedFields = []string{documentdatahistory.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: epf.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { - return err + case "historyTime": + if _, ok := fieldSeen[documentdatahistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldHistoryTime) + fieldSeen[documentdatahistory.FieldHistoryTime] = struct{}{} } - epf.withOwner = query - if _, ok := fieldSeen[entitlementplanfeature.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldOwnerID) - fieldSeen[entitlementplanfeature.FieldOwnerID] = struct{}{} - } - - case "plan": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EntitlementPlanClient{config: epf.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, entitlementplanImplementors)...); err != nil { - return err - } - epf.withPlan = query - if _, ok := fieldSeen[entitlementplanfeature.FieldPlanID]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldPlanID) - fieldSeen[entitlementplanfeature.FieldPlanID] = struct{}{} - } - - case "feature": - var ( - alias = field.Alias - path = append(path, alias) - query = (&FeatureClient{config: epf.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, featureImplementors)...); err != nil { - return err - } - epf.withFeature = query - if _, ok := fieldSeen[entitlementplanfeature.FieldFeatureID]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldFeatureID) - fieldSeen[entitlementplanfeature.FieldFeatureID] = struct{}{} + case "ref": + if _, ok := fieldSeen[documentdatahistory.FieldRef]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldRef) + fieldSeen[documentdatahistory.FieldRef] = struct{}{} } - - case "events": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EventClient{config: epf.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { - return err + case "operation": + if _, ok := fieldSeen[documentdatahistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldOperation) + fieldSeen[documentdatahistory.FieldOperation] = struct{}{} } - epf.WithNamedEvents(alias, func(wq *EventQuery) { - *wq = *query - }) case "createdAt": - if _, ok := fieldSeen[entitlementplanfeature.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldCreatedAt) - fieldSeen[entitlementplanfeature.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[documentdatahistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldCreatedAt) + fieldSeen[documentdatahistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[entitlementplanfeature.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldUpdatedAt) - fieldSeen[entitlementplanfeature.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[documentdatahistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldUpdatedAt) + fieldSeen[documentdatahistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[entitlementplanfeature.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldCreatedBy) - fieldSeen[entitlementplanfeature.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[documentdatahistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldCreatedBy) + fieldSeen[documentdatahistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[entitlementplanfeature.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldUpdatedBy) - fieldSeen[entitlementplanfeature.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[documentdatahistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldUpdatedBy) + fieldSeen[documentdatahistory.FieldUpdatedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[documentdatahistory.FieldTags]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldTags) + fieldSeen[documentdatahistory.FieldTags] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[entitlementplanfeature.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldDeletedAt) - fieldSeen[entitlementplanfeature.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[documentdatahistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldDeletedAt) + fieldSeen[documentdatahistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[entitlementplanfeature.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldDeletedBy) - fieldSeen[entitlementplanfeature.FieldDeletedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[entitlementplanfeature.FieldTags]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldTags) - fieldSeen[entitlementplanfeature.FieldTags] = struct{}{} + if _, ok := fieldSeen[documentdatahistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldDeletedBy) + fieldSeen[documentdatahistory.FieldDeletedBy] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[entitlementplanfeature.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldOwnerID) - fieldSeen[entitlementplanfeature.FieldOwnerID] = struct{}{} - } - case "metadata": - if _, ok := fieldSeen[entitlementplanfeature.FieldMetadata]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldMetadata) - fieldSeen[entitlementplanfeature.FieldMetadata] = struct{}{} + if _, ok := fieldSeen[documentdatahistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldOwnerID) + fieldSeen[documentdatahistory.FieldOwnerID] = struct{}{} } - case "planID": - if _, ok := fieldSeen[entitlementplanfeature.FieldPlanID]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldPlanID) - fieldSeen[entitlementplanfeature.FieldPlanID] = struct{}{} + case "templateID": + if _, ok := fieldSeen[documentdatahistory.FieldTemplateID]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldTemplateID) + fieldSeen[documentdatahistory.FieldTemplateID] = struct{}{} } - case "featureID": - if _, ok := fieldSeen[entitlementplanfeature.FieldFeatureID]; !ok { - selectedFields = append(selectedFields, entitlementplanfeature.FieldFeatureID) - fieldSeen[entitlementplanfeature.FieldFeatureID] = struct{}{} + case "data": + if _, ok := fieldSeen[documentdatahistory.FieldData]; !ok { + selectedFields = append(selectedFields, documentdatahistory.FieldData) + fieldSeen[documentdatahistory.FieldData] = struct{}{} } case "id": case "__typename": @@ -1520,19 +1983,19 @@ func (epf *EntitlementPlanFeatureQuery) collectField(ctx context.Context, oneNod } } if !unknownSeen { - epf.Select(selectedFields...) + ddh.Select(selectedFields...) } return nil } -type entitlementplanfeaturePaginateArgs struct { +type documentdatahistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []EntitlementPlanFeaturePaginateOption + opts []DocumentDataHistoryPaginateOption } -func newEntitlementPlanFeaturePaginateArgs(rv map[string]any) *entitlementplanfeaturePaginateArgs { - args := &entitlementplanfeaturePaginateArgs{} +func newDocumentDataHistoryPaginateArgs(rv map[string]any) *documentdatahistoryPaginateArgs { + args := &documentdatahistoryPaginateArgs{} if rv == nil { return args } @@ -1548,102 +2011,165 @@ func newEntitlementPlanFeaturePaginateArgs(rv map[string]any) *entitlementplanfe if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*EntitlementPlanFeatureWhereInput); ok { - args.opts = append(args.opts, WithEntitlementPlanFeatureFilter(v.Filter)) + if v, ok := rv[whereField].(*DocumentDataHistoryWhereInput); ok { + args.opts = append(args.opts, WithDocumentDataHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (epfh *EntitlementPlanFeatureHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementPlanFeatureHistoryQuery, error) { +func (e *EntitlementQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return epfh, nil + return e, nil } - if err := epfh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := e.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return epfh, nil + return e, nil } -func (epfh *EntitlementPlanFeatureHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (e *EntitlementQuery) 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(entitlementplanfeaturehistory.Columns)) - selectedFields = []string{entitlementplanfeaturehistory.FieldID} + fieldSeen = make(map[string]struct{}, len(entitlement.Columns)) + selectedFields = []string{entitlement.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "historyTime": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldHistoryTime) - fieldSeen[entitlementplanfeaturehistory.FieldHistoryTime] = struct{}{} + + case "owner": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationClient{config: e.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + return err } - case "ref": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldRef]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldRef) - fieldSeen[entitlementplanfeaturehistory.FieldRef] = struct{}{} + e.withOwner = query + if _, ok := fieldSeen[entitlement.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entitlement.FieldOwnerID) + fieldSeen[entitlement.FieldOwnerID] = struct{}{} } - case "operation": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldOperation) - fieldSeen[entitlementplanfeaturehistory.FieldOperation] = struct{}{} + + case "plan": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EntitlementPlanClient{config: e.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, entitlementplanImplementors)...); err != nil { + return err + } + e.withPlan = query + if _, ok := fieldSeen[entitlement.FieldPlanID]; !ok { + selectedFields = append(selectedFields, entitlement.FieldPlanID) + fieldSeen[entitlement.FieldPlanID] = struct{}{} + } + + case "organization": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationClient{config: e.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + return err + } + e.withOrganization = query + if _, ok := fieldSeen[entitlement.FieldOrganizationID]; !ok { + selectedFields = append(selectedFields, entitlement.FieldOrganizationID) + fieldSeen[entitlement.FieldOrganizationID] = struct{}{} } + + case "events": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EventClient{config: e.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { + return err + } + e.WithNamedEvents(alias, func(wq *EventQuery) { + *wq = *query + }) case "createdAt": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldCreatedAt) - fieldSeen[entitlementplanfeaturehistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[entitlement.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, entitlement.FieldCreatedAt) + fieldSeen[entitlement.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldUpdatedAt) - fieldSeen[entitlementplanfeaturehistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[entitlement.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, entitlement.FieldUpdatedAt) + fieldSeen[entitlement.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldCreatedBy) - fieldSeen[entitlementplanfeaturehistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[entitlement.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, entitlement.FieldCreatedBy) + fieldSeen[entitlement.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldUpdatedBy) - fieldSeen[entitlementplanfeaturehistory.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[entitlement.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, entitlement.FieldUpdatedBy) + fieldSeen[entitlement.FieldUpdatedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[entitlement.FieldTags]; !ok { + selectedFields = append(selectedFields, entitlement.FieldTags) + fieldSeen[entitlement.FieldTags] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldDeletedAt) - fieldSeen[entitlementplanfeaturehistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[entitlement.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, entitlement.FieldDeletedAt) + fieldSeen[entitlement.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldDeletedBy) - fieldSeen[entitlementplanfeaturehistory.FieldDeletedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldTags]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldTags) - fieldSeen[entitlementplanfeaturehistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[entitlement.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, entitlement.FieldDeletedBy) + fieldSeen[entitlement.FieldDeletedBy] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldOwnerID) - fieldSeen[entitlementplanfeaturehistory.FieldOwnerID] = struct{}{} - } - case "metadata": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldMetadata]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldMetadata) - fieldSeen[entitlementplanfeaturehistory.FieldMetadata] = struct{}{} + if _, ok := fieldSeen[entitlement.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entitlement.FieldOwnerID) + fieldSeen[entitlement.FieldOwnerID] = struct{}{} } case "planID": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldPlanID]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldPlanID) - fieldSeen[entitlementplanfeaturehistory.FieldPlanID] = struct{}{} + if _, ok := fieldSeen[entitlement.FieldPlanID]; !ok { + selectedFields = append(selectedFields, entitlement.FieldPlanID) + fieldSeen[entitlement.FieldPlanID] = struct{}{} } - case "featureID": - if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldFeatureID]; !ok { - selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldFeatureID) - fieldSeen[entitlementplanfeaturehistory.FieldFeatureID] = struct{}{} + case "organizationID": + if _, ok := fieldSeen[entitlement.FieldOrganizationID]; !ok { + selectedFields = append(selectedFields, entitlement.FieldOrganizationID) + fieldSeen[entitlement.FieldOrganizationID] = struct{}{} + } + case "externalCustomerID": + if _, ok := fieldSeen[entitlement.FieldExternalCustomerID]; !ok { + selectedFields = append(selectedFields, entitlement.FieldExternalCustomerID) + fieldSeen[entitlement.FieldExternalCustomerID] = struct{}{} + } + case "externalSubscriptionID": + if _, ok := fieldSeen[entitlement.FieldExternalSubscriptionID]; !ok { + selectedFields = append(selectedFields, entitlement.FieldExternalSubscriptionID) + fieldSeen[entitlement.FieldExternalSubscriptionID] = struct{}{} + } + case "expires": + if _, ok := fieldSeen[entitlement.FieldExpires]; !ok { + selectedFields = append(selectedFields, entitlement.FieldExpires) + fieldSeen[entitlement.FieldExpires] = struct{}{} + } + case "expiresAt": + if _, ok := fieldSeen[entitlement.FieldExpiresAt]; !ok { + selectedFields = append(selectedFields, entitlement.FieldExpiresAt) + fieldSeen[entitlement.FieldExpiresAt] = struct{}{} + } + case "cancelled": + if _, ok := fieldSeen[entitlement.FieldCancelled]; !ok { + selectedFields = append(selectedFields, entitlement.FieldCancelled) + fieldSeen[entitlement.FieldCancelled] = struct{}{} } case "id": case "__typename": @@ -1652,19 +2178,19 @@ func (epfh *EntitlementPlanFeatureHistoryQuery) collectField(ctx context.Context } } if !unknownSeen { - epfh.Select(selectedFields...) + e.Select(selectedFields...) } return nil } -type entitlementplanfeaturehistoryPaginateArgs struct { +type entitlementPaginateArgs struct { first, last *int after, before *Cursor - opts []EntitlementPlanFeatureHistoryPaginateOption + opts []EntitlementPaginateOption } -func newEntitlementPlanFeatureHistoryPaginateArgs(rv map[string]any) *entitlementplanfeaturehistoryPaginateArgs { - args := &entitlementplanfeaturehistoryPaginateArgs{} +func newEntitlementPaginateArgs(rv map[string]any) *entitlementPaginateArgs { + args := &entitlementPaginateArgs{} if rv == nil { return args } @@ -1680,112 +2206,122 @@ func newEntitlementPlanFeatureHistoryPaginateArgs(rv map[string]any) *entitlemen if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*EntitlementPlanFeatureHistoryWhereInput); ok { - args.opts = append(args.opts, WithEntitlementPlanFeatureHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*EntitlementWhereInput); ok { + args.opts = append(args.opts, WithEntitlementFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (eph *EntitlementPlanHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementPlanHistoryQuery, error) { +func (eh *EntitlementHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return eph, nil + return eh, nil } - if err := eph.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := eh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return eph, nil + return eh, nil } -func (eph *EntitlementPlanHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (eh *EntitlementHistoryQuery) 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(entitlementplanhistory.Columns)) - selectedFields = []string{entitlementplanhistory.FieldID} + fieldSeen = make(map[string]struct{}, len(entitlementhistory.Columns)) + selectedFields = []string{entitlementhistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { case "historyTime": - if _, ok := fieldSeen[entitlementplanhistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldHistoryTime) - fieldSeen[entitlementplanhistory.FieldHistoryTime] = struct{}{} + if _, ok := fieldSeen[entitlementhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldHistoryTime) + fieldSeen[entitlementhistory.FieldHistoryTime] = struct{}{} } case "ref": - if _, ok := fieldSeen[entitlementplanhistory.FieldRef]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldRef) - fieldSeen[entitlementplanhistory.FieldRef] = struct{}{} + if _, ok := fieldSeen[entitlementhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldRef) + fieldSeen[entitlementhistory.FieldRef] = struct{}{} } case "operation": - if _, ok := fieldSeen[entitlementplanhistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldOperation) - fieldSeen[entitlementplanhistory.FieldOperation] = struct{}{} + if _, ok := fieldSeen[entitlementhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldOperation) + fieldSeen[entitlementhistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[entitlementplanhistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldCreatedAt) - fieldSeen[entitlementplanhistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[entitlementhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldCreatedAt) + fieldSeen[entitlementhistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[entitlementplanhistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldUpdatedAt) - fieldSeen[entitlementplanhistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[entitlementhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldUpdatedAt) + fieldSeen[entitlementhistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[entitlementplanhistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldCreatedBy) - fieldSeen[entitlementplanhistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[entitlementhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldCreatedBy) + fieldSeen[entitlementhistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[entitlementplanhistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldUpdatedBy) - fieldSeen[entitlementplanhistory.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[entitlementhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldUpdatedBy) + fieldSeen[entitlementhistory.FieldUpdatedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[entitlementhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldTags) + fieldSeen[entitlementhistory.FieldTags] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[entitlementplanhistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldDeletedAt) - fieldSeen[entitlementplanhistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[entitlementhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldDeletedAt) + fieldSeen[entitlementhistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[entitlementplanhistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldDeletedBy) - fieldSeen[entitlementplanhistory.FieldDeletedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[entitlementplanhistory.FieldTags]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldTags) - fieldSeen[entitlementplanhistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[entitlementhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldDeletedBy) + fieldSeen[entitlementhistory.FieldDeletedBy] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[entitlementplanhistory.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldOwnerID) - fieldSeen[entitlementplanhistory.FieldOwnerID] = struct{}{} + if _, ok := fieldSeen[entitlementhistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldOwnerID) + fieldSeen[entitlementhistory.FieldOwnerID] = struct{}{} } - case "displayName": - if _, ok := fieldSeen[entitlementplanhistory.FieldDisplayName]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldDisplayName) - fieldSeen[entitlementplanhistory.FieldDisplayName] = struct{}{} + case "planID": + if _, ok := fieldSeen[entitlementhistory.FieldPlanID]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldPlanID) + fieldSeen[entitlementhistory.FieldPlanID] = struct{}{} } - case "name": - if _, ok := fieldSeen[entitlementplanhistory.FieldName]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldName) - fieldSeen[entitlementplanhistory.FieldName] = struct{}{} + case "organizationID": + if _, ok := fieldSeen[entitlementhistory.FieldOrganizationID]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldOrganizationID) + fieldSeen[entitlementhistory.FieldOrganizationID] = struct{}{} } - case "description": - if _, ok := fieldSeen[entitlementplanhistory.FieldDescription]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldDescription) - fieldSeen[entitlementplanhistory.FieldDescription] = struct{}{} + case "externalCustomerID": + if _, ok := fieldSeen[entitlementhistory.FieldExternalCustomerID]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldExternalCustomerID) + fieldSeen[entitlementhistory.FieldExternalCustomerID] = struct{}{} } - case "version": - if _, ok := fieldSeen[entitlementplanhistory.FieldVersion]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldVersion) - fieldSeen[entitlementplanhistory.FieldVersion] = struct{}{} + case "externalSubscriptionID": + if _, ok := fieldSeen[entitlementhistory.FieldExternalSubscriptionID]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldExternalSubscriptionID) + fieldSeen[entitlementhistory.FieldExternalSubscriptionID] = struct{}{} } - case "metadata": - if _, ok := fieldSeen[entitlementplanhistory.FieldMetadata]; !ok { - selectedFields = append(selectedFields, entitlementplanhistory.FieldMetadata) - fieldSeen[entitlementplanhistory.FieldMetadata] = struct{}{} + case "expires": + if _, ok := fieldSeen[entitlementhistory.FieldExpires]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldExpires) + fieldSeen[entitlementhistory.FieldExpires] = struct{}{} + } + case "expiresAt": + if _, ok := fieldSeen[entitlementhistory.FieldExpiresAt]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldExpiresAt) + fieldSeen[entitlementhistory.FieldExpiresAt] = struct{}{} + } + case "cancelled": + if _, ok := fieldSeen[entitlementhistory.FieldCancelled]; !ok { + selectedFields = append(selectedFields, entitlementhistory.FieldCancelled) + fieldSeen[entitlementhistory.FieldCancelled] = struct{}{} } case "id": case "__typename": @@ -1794,19 +2330,19 @@ func (eph *EntitlementPlanHistoryQuery) collectField(ctx context.Context, oneNod } } if !unknownSeen { - eph.Select(selectedFields...) + eh.Select(selectedFields...) } return nil } -type entitlementplanhistoryPaginateArgs struct { +type entitlementhistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []EntitlementPlanHistoryPaginateOption + opts []EntitlementHistoryPaginateOption } -func newEntitlementPlanHistoryPaginateArgs(rv map[string]any) *entitlementplanhistoryPaginateArgs { - args := &entitlementplanhistoryPaginateArgs{} +func newEntitlementHistoryPaginateArgs(rv map[string]any) *entitlementhistoryPaginateArgs { + args := &entitlementhistoryPaginateArgs{} if rv == nil { return args } @@ -1822,30 +2358,30 @@ func newEntitlementPlanHistoryPaginateArgs(rv map[string]any) *entitlementplanhi if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*EntitlementPlanHistoryWhereInput); ok { - args.opts = append(args.opts, WithEntitlementPlanHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*EntitlementHistoryWhereInput); ok { + args.opts = append(args.opts, WithEntitlementHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (e *EntityQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntityQuery, error) { +func (ep *EntitlementPlanQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementPlanQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return e, nil + return ep, nil } - if err := e.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := ep.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return e, nil + return ep, nil } -func (e *EntityQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (ep *EntitlementPlanQuery) 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(entity.Columns)) - selectedFields = []string{entity.FieldID} + fieldSeen = make(map[string]struct{}, len(entitlementplan.Columns)) + selectedFields = []string{entitlementplan.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { @@ -1854,152 +2390,132 @@ func (e *EntityQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: e.config}).Query() + query = (&OrganizationClient{config: ep.config}).Query() ) if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { return err } - e.withOwner = query - if _, ok := fieldSeen[entity.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entity.FieldOwnerID) - fieldSeen[entity.FieldOwnerID] = struct{}{} + ep.withOwner = query + if _, ok := fieldSeen[entitlementplan.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldOwnerID) + fieldSeen[entitlementplan.FieldOwnerID] = struct{}{} } - case "contacts": + case "entitlements": var ( alias = field.Alias path = append(path, alias) - query = (&ContactClient{config: e.config}).Query() + query = (&EntitlementClient{config: ep.config}).Query() ) - 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, entitlementImplementors)...); err != nil { return err } - e.WithNamedContacts(alias, func(wq *ContactQuery) { + ep.WithNamedEntitlements(alias, func(wq *EntitlementQuery) { *wq = *query }) - case "documents": + case "baseFeatures": var ( alias = field.Alias path = append(path, alias) - query = (&DocumentDataClient{config: e.config}).Query() + query = (&FeatureClient{config: ep.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, documentdataImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, featureImplementors)...); err != nil { return err } - e.WithNamedDocuments(alias, func(wq *DocumentDataQuery) { + ep.WithNamedBaseFeatures(alias, func(wq *FeatureQuery) { *wq = *query }) - case "notes": + case "events": var ( alias = field.Alias path = append(path, alias) - query = (&NoteClient{config: e.config}).Query() + query = (&EventClient{config: ep.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, noteImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { return err } - e.WithNamedNotes(alias, func(wq *NoteQuery) { + ep.WithNamedEvents(alias, func(wq *EventQuery) { *wq = *query }) - case "files": + case "features": var ( alias = field.Alias path = append(path, alias) - query = (&FileClient{config: e.config}).Query() + query = (&EntitlementPlanFeatureClient{config: ep.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, fileImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanfeatureImplementors)...); err != nil { return err } - e.WithNamedFiles(alias, func(wq *FileQuery) { + ep.WithNamedFeatures(alias, func(wq *EntitlementPlanFeatureQuery) { *wq = *query }) - - case "entityType": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EntityTypeClient{config: e.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, entitytypeImplementors)...); err != nil { - return err - } - e.withEntityType = query - if _, ok := fieldSeen[entity.FieldEntityTypeID]; !ok { - selectedFields = append(selectedFields, entity.FieldEntityTypeID) - fieldSeen[entity.FieldEntityTypeID] = struct{}{} - } case "createdAt": - if _, ok := fieldSeen[entity.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, entity.FieldCreatedAt) - fieldSeen[entity.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[entitlementplan.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldCreatedAt) + fieldSeen[entitlementplan.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[entity.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, entity.FieldUpdatedAt) - fieldSeen[entity.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[entitlementplan.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldUpdatedAt) + fieldSeen[entitlementplan.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[entity.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, entity.FieldCreatedBy) - fieldSeen[entity.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[entitlementplan.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldCreatedBy) + fieldSeen[entitlementplan.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[entity.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, entity.FieldUpdatedBy) - fieldSeen[entity.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[entitlementplan.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldUpdatedBy) + fieldSeen[entitlementplan.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[entity.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, entity.FieldDeletedAt) - fieldSeen[entity.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[entitlementplan.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldDeletedAt) + fieldSeen[entitlementplan.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[entity.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, entity.FieldDeletedBy) - fieldSeen[entity.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[entitlementplan.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldDeletedBy) + fieldSeen[entitlementplan.FieldDeletedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[entity.FieldTags]; !ok { - selectedFields = append(selectedFields, entity.FieldTags) - fieldSeen[entity.FieldTags] = struct{}{} + if _, ok := fieldSeen[entitlementplan.FieldTags]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldTags) + fieldSeen[entitlementplan.FieldTags] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[entity.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entity.FieldOwnerID) - fieldSeen[entity.FieldOwnerID] = struct{}{} - } - case "name": - if _, ok := fieldSeen[entity.FieldName]; !ok { - selectedFields = append(selectedFields, entity.FieldName) - fieldSeen[entity.FieldName] = struct{}{} + if _, ok := fieldSeen[entitlementplan.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldOwnerID) + fieldSeen[entitlementplan.FieldOwnerID] = struct{}{} } case "displayName": - if _, ok := fieldSeen[entity.FieldDisplayName]; !ok { - selectedFields = append(selectedFields, entity.FieldDisplayName) - fieldSeen[entity.FieldDisplayName] = struct{}{} + if _, ok := fieldSeen[entitlementplan.FieldDisplayName]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldDisplayName) + fieldSeen[entitlementplan.FieldDisplayName] = struct{}{} } - case "description": - if _, ok := fieldSeen[entity.FieldDescription]; !ok { - selectedFields = append(selectedFields, entity.FieldDescription) - fieldSeen[entity.FieldDescription] = struct{}{} + case "name": + if _, ok := fieldSeen[entitlementplan.FieldName]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldName) + fieldSeen[entitlementplan.FieldName] = struct{}{} } - case "domains": - if _, ok := fieldSeen[entity.FieldDomains]; !ok { - selectedFields = append(selectedFields, entity.FieldDomains) - fieldSeen[entity.FieldDomains] = struct{}{} + case "description": + if _, ok := fieldSeen[entitlementplan.FieldDescription]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldDescription) + fieldSeen[entitlementplan.FieldDescription] = struct{}{} } - case "entityTypeID": - if _, ok := fieldSeen[entity.FieldEntityTypeID]; !ok { - selectedFields = append(selectedFields, entity.FieldEntityTypeID) - fieldSeen[entity.FieldEntityTypeID] = struct{}{} + case "version": + if _, ok := fieldSeen[entitlementplan.FieldVersion]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldVersion) + fieldSeen[entitlementplan.FieldVersion] = struct{}{} } - case "status": - if _, ok := fieldSeen[entity.FieldStatus]; !ok { - selectedFields = append(selectedFields, entity.FieldStatus) - fieldSeen[entity.FieldStatus] = struct{}{} + case "metadata": + if _, ok := fieldSeen[entitlementplan.FieldMetadata]; !ok { + selectedFields = append(selectedFields, entitlementplan.FieldMetadata) + fieldSeen[entitlementplan.FieldMetadata] = struct{}{} } case "id": case "__typename": @@ -2008,19 +2524,19 @@ func (e *EntityQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } } if !unknownSeen { - e.Select(selectedFields...) + ep.Select(selectedFields...) } return nil } -type entityPaginateArgs struct { +type entitlementplanPaginateArgs struct { first, last *int after, before *Cursor - opts []EntityPaginateOption + opts []EntitlementPlanPaginateOption } -func newEntityPaginateArgs(rv map[string]any) *entityPaginateArgs { - args := &entityPaginateArgs{} +func newEntitlementPlanPaginateArgs(rv map[string]any) *entitlementplanPaginateArgs { + args := &entitlementplanPaginateArgs{} if rv == nil { return args } @@ -2036,139 +2552,145 @@ func newEntityPaginateArgs(rv map[string]any) *entityPaginateArgs { 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 = &EntityOrder{Field: &EntityOrderField{}, 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, WithEntityOrder(order)) - } - case *EntityOrder: - if v != nil { - args.opts = append(args.opts, WithEntityOrder(v)) - } - } - } - if v, ok := rv[whereField].(*EntityWhereInput); ok { - args.opts = append(args.opts, WithEntityFilter(v.Filter)) + if v, ok := rv[whereField].(*EntitlementPlanWhereInput); ok { + args.opts = append(args.opts, WithEntitlementPlanFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (eh *EntityHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntityHistoryQuery, error) { +func (epf *EntitlementPlanFeatureQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementPlanFeatureQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return eh, nil + return epf, nil } - if err := eh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := epf.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return eh, nil + return epf, nil } -func (eh *EntityHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (epf *EntitlementPlanFeatureQuery) 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(entityhistory.Columns)) - selectedFields = []string{entityhistory.FieldID} + fieldSeen = make(map[string]struct{}, len(entitlementplanfeature.Columns)) + selectedFields = []string{entitlementplanfeature.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "historyTime": - if _, ok := fieldSeen[entityhistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldHistoryTime) - fieldSeen[entityhistory.FieldHistoryTime] = struct{}{} + + case "owner": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationClient{config: epf.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + return err } - case "ref": - if _, ok := fieldSeen[entityhistory.FieldRef]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldRef) - fieldSeen[entityhistory.FieldRef] = struct{}{} + epf.withOwner = query + if _, ok := fieldSeen[entitlementplanfeature.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldOwnerID) + fieldSeen[entitlementplanfeature.FieldOwnerID] = struct{}{} } - case "operation": - if _, ok := fieldSeen[entityhistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldOperation) - fieldSeen[entityhistory.FieldOperation] = struct{}{} + + case "plan": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EntitlementPlanClient{config: epf.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, entitlementplanImplementors)...); err != nil { + return err } - case "createdAt": - if _, ok := fieldSeen[entityhistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldCreatedAt) - fieldSeen[entityhistory.FieldCreatedAt] = struct{}{} + epf.withPlan = query + if _, ok := fieldSeen[entitlementplanfeature.FieldPlanID]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldPlanID) + fieldSeen[entitlementplanfeature.FieldPlanID] = struct{}{} } - case "updatedAt": - if _, ok := fieldSeen[entityhistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldUpdatedAt) - fieldSeen[entityhistory.FieldUpdatedAt] = struct{}{} + + case "feature": + var ( + alias = field.Alias + path = append(path, alias) + query = (&FeatureClient{config: epf.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, featureImplementors)...); err != nil { + return err } - case "createdBy": - if _, ok := fieldSeen[entityhistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldCreatedBy) - fieldSeen[entityhistory.FieldCreatedBy] = struct{}{} + epf.withFeature = query + if _, ok := fieldSeen[entitlementplanfeature.FieldFeatureID]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldFeatureID) + fieldSeen[entitlementplanfeature.FieldFeatureID] = struct{}{} } - case "updatedBy": - if _, ok := fieldSeen[entityhistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldUpdatedBy) - fieldSeen[entityhistory.FieldUpdatedBy] = struct{}{} + + case "events": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EventClient{config: epf.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { + return err } - case "deletedAt": - if _, ok := fieldSeen[entityhistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldDeletedAt) - fieldSeen[entityhistory.FieldDeletedAt] = struct{}{} + epf.WithNamedEvents(alias, func(wq *EventQuery) { + *wq = *query + }) + case "createdAt": + if _, ok := fieldSeen[entitlementplanfeature.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldCreatedAt) + fieldSeen[entitlementplanfeature.FieldCreatedAt] = struct{}{} } - case "deletedBy": - if _, ok := fieldSeen[entityhistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldDeletedBy) - fieldSeen[entityhistory.FieldDeletedBy] = struct{}{} + case "updatedAt": + if _, ok := fieldSeen[entitlementplanfeature.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldUpdatedAt) + fieldSeen[entitlementplanfeature.FieldUpdatedAt] = struct{}{} } - case "tags": - if _, ok := fieldSeen[entityhistory.FieldTags]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldTags) - fieldSeen[entityhistory.FieldTags] = struct{}{} + case "createdBy": + if _, ok := fieldSeen[entitlementplanfeature.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldCreatedBy) + fieldSeen[entitlementplanfeature.FieldCreatedBy] = struct{}{} } - case "ownerID": - if _, ok := fieldSeen[entityhistory.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldOwnerID) - fieldSeen[entityhistory.FieldOwnerID] = struct{}{} + case "updatedBy": + if _, ok := fieldSeen[entitlementplanfeature.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldUpdatedBy) + fieldSeen[entitlementplanfeature.FieldUpdatedBy] = struct{}{} } - case "name": - if _, ok := fieldSeen[entityhistory.FieldName]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldName) - fieldSeen[entityhistory.FieldName] = struct{}{} + case "deletedAt": + if _, ok := fieldSeen[entitlementplanfeature.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldDeletedAt) + fieldSeen[entitlementplanfeature.FieldDeletedAt] = struct{}{} } - case "displayName": - if _, ok := fieldSeen[entityhistory.FieldDisplayName]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldDisplayName) - fieldSeen[entityhistory.FieldDisplayName] = struct{}{} + case "deletedBy": + if _, ok := fieldSeen[entitlementplanfeature.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldDeletedBy) + fieldSeen[entitlementplanfeature.FieldDeletedBy] = struct{}{} } - case "description": - if _, ok := fieldSeen[entityhistory.FieldDescription]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldDescription) - fieldSeen[entityhistory.FieldDescription] = struct{}{} + case "tags": + if _, ok := fieldSeen[entitlementplanfeature.FieldTags]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldTags) + fieldSeen[entitlementplanfeature.FieldTags] = struct{}{} } - case "domains": - if _, ok := fieldSeen[entityhistory.FieldDomains]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldDomains) - fieldSeen[entityhistory.FieldDomains] = struct{}{} + case "ownerID": + if _, ok := fieldSeen[entitlementplanfeature.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldOwnerID) + fieldSeen[entitlementplanfeature.FieldOwnerID] = struct{}{} } - case "entityTypeID": - if _, ok := fieldSeen[entityhistory.FieldEntityTypeID]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldEntityTypeID) - fieldSeen[entityhistory.FieldEntityTypeID] = struct{}{} + case "metadata": + if _, ok := fieldSeen[entitlementplanfeature.FieldMetadata]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldMetadata) + fieldSeen[entitlementplanfeature.FieldMetadata] = struct{}{} } - case "status": - if _, ok := fieldSeen[entityhistory.FieldStatus]; !ok { - selectedFields = append(selectedFields, entityhistory.FieldStatus) - fieldSeen[entityhistory.FieldStatus] = struct{}{} + case "planID": + if _, ok := fieldSeen[entitlementplanfeature.FieldPlanID]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldPlanID) + fieldSeen[entitlementplanfeature.FieldPlanID] = struct{}{} + } + case "featureID": + if _, ok := fieldSeen[entitlementplanfeature.FieldFeatureID]; !ok { + selectedFields = append(selectedFields, entitlementplanfeature.FieldFeatureID) + fieldSeen[entitlementplanfeature.FieldFeatureID] = struct{}{} } case "id": case "__typename": @@ -2177,19 +2699,19 @@ func (eh *EntityHistoryQuery) collectField(ctx context.Context, oneNode bool, op } } if !unknownSeen { - eh.Select(selectedFields...) + epf.Select(selectedFields...) } return nil } -type entityhistoryPaginateArgs struct { +type entitlementplanfeaturePaginateArgs struct { first, last *int after, before *Cursor - opts []EntityHistoryPaginateOption + opts []EntitlementPlanFeaturePaginateOption } -func newEntityHistoryPaginateArgs(rv map[string]any) *entityhistoryPaginateArgs { - args := &entityhistoryPaginateArgs{} +func newEntitlementPlanFeaturePaginateArgs(rv map[string]any) *entitlementplanfeaturePaginateArgs { + args := &entitlementplanfeaturePaginateArgs{} if rv == nil { return args } @@ -2205,127 +2727,102 @@ func newEntityHistoryPaginateArgs(rv map[string]any) *entityhistoryPaginateArgs 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 = &EntityHistoryOrder{Field: &EntityHistoryOrderField{}, 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, WithEntityHistoryOrder(order)) - } - case *EntityHistoryOrder: - if v != nil { - args.opts = append(args.opts, WithEntityHistoryOrder(v)) - } - } - } - if v, ok := rv[whereField].(*EntityHistoryWhereInput); ok { - args.opts = append(args.opts, WithEntityHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*EntitlementPlanFeatureWhereInput); ok { + args.opts = append(args.opts, WithEntitlementPlanFeatureFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (et *EntityTypeQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntityTypeQuery, error) { +func (epfh *EntitlementPlanFeatureHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementPlanFeatureHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return et, nil + return epfh, nil } - if err := et.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := epfh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return et, nil + return epfh, nil } -func (et *EntityTypeQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (epfh *EntitlementPlanFeatureHistoryQuery) 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(entitytype.Columns)) - selectedFields = []string{entitytype.FieldID} + fieldSeen = make(map[string]struct{}, len(entitlementplanfeaturehistory.Columns)) + selectedFields = []string{entitlementplanfeaturehistory.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: et.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { - return err + case "historyTime": + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldHistoryTime) + fieldSeen[entitlementplanfeaturehistory.FieldHistoryTime] = struct{}{} } - et.withOwner = query - if _, ok := fieldSeen[entitytype.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entitytype.FieldOwnerID) - fieldSeen[entitytype.FieldOwnerID] = struct{}{} + case "ref": + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldRef]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldRef) + fieldSeen[entitlementplanfeaturehistory.FieldRef] = struct{}{} } - - case "entities": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EntityClient{config: et.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entityImplementors)...); err != nil { - return err + case "operation": + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldOperation) + fieldSeen[entitlementplanfeaturehistory.FieldOperation] = struct{}{} } - et.WithNamedEntities(alias, func(wq *EntityQuery) { - *wq = *query - }) case "createdAt": - if _, ok := fieldSeen[entitytype.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, entitytype.FieldCreatedAt) - fieldSeen[entitytype.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldCreatedAt) + fieldSeen[entitlementplanfeaturehistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[entitytype.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, entitytype.FieldUpdatedAt) - fieldSeen[entitytype.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldUpdatedAt) + fieldSeen[entitlementplanfeaturehistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[entitytype.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, entitytype.FieldCreatedBy) - fieldSeen[entitytype.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldCreatedBy) + fieldSeen[entitlementplanfeaturehistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[entitytype.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, entitytype.FieldUpdatedBy) - fieldSeen[entitytype.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldUpdatedBy) + fieldSeen[entitlementplanfeaturehistory.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[entitytype.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, entitytype.FieldDeletedAt) - fieldSeen[entitytype.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldDeletedAt) + fieldSeen[entitlementplanfeaturehistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[entitytype.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, entitytype.FieldDeletedBy) - fieldSeen[entitytype.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldDeletedBy) + fieldSeen[entitlementplanfeaturehistory.FieldDeletedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[entitytype.FieldTags]; !ok { - selectedFields = append(selectedFields, entitytype.FieldTags) - fieldSeen[entitytype.FieldTags] = struct{}{} + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldTags]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldTags) + fieldSeen[entitlementplanfeaturehistory.FieldTags] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[entitytype.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entitytype.FieldOwnerID) - fieldSeen[entitytype.FieldOwnerID] = struct{}{} + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldOwnerID) + fieldSeen[entitlementplanfeaturehistory.FieldOwnerID] = struct{}{} } - case "name": - if _, ok := fieldSeen[entitytype.FieldName]; !ok { - selectedFields = append(selectedFields, entitytype.FieldName) - fieldSeen[entitytype.FieldName] = struct{}{} + case "metadata": + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldMetadata]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldMetadata) + fieldSeen[entitlementplanfeaturehistory.FieldMetadata] = struct{}{} + } + case "planID": + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldPlanID]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldPlanID) + fieldSeen[entitlementplanfeaturehistory.FieldPlanID] = struct{}{} + } + case "featureID": + if _, ok := fieldSeen[entitlementplanfeaturehistory.FieldFeatureID]; !ok { + selectedFields = append(selectedFields, entitlementplanfeaturehistory.FieldFeatureID) + fieldSeen[entitlementplanfeaturehistory.FieldFeatureID] = struct{}{} } case "id": case "__typename": @@ -2334,19 +2831,19 @@ func (et *EntityTypeQuery) collectField(ctx context.Context, oneNode bool, opCtx } } if !unknownSeen { - et.Select(selectedFields...) + epfh.Select(selectedFields...) } return nil } -type entitytypePaginateArgs struct { +type entitlementplanfeaturehistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []EntityTypePaginateOption + opts []EntitlementPlanFeatureHistoryPaginateOption } -func newEntityTypePaginateArgs(rv map[string]any) *entitytypePaginateArgs { - args := &entitytypePaginateArgs{} +func newEntitlementPlanFeatureHistoryPaginateArgs(rv map[string]any) *entitlementplanfeaturehistoryPaginateArgs { + args := &entitlementplanfeaturehistoryPaginateArgs{} if rv == nil { return args } @@ -2362,114 +2859,112 @@ func newEntityTypePaginateArgs(rv map[string]any) *entitytypePaginateArgs { 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 = &EntityTypeOrder{Field: &EntityTypeOrderField{}, 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, WithEntityTypeOrder(order)) - } - case *EntityTypeOrder: - if v != nil { - args.opts = append(args.opts, WithEntityTypeOrder(v)) - } - } - } - if v, ok := rv[whereField].(*EntityTypeWhereInput); ok { - args.opts = append(args.opts, WithEntityTypeFilter(v.Filter)) + if v, ok := rv[whereField].(*EntitlementPlanFeatureHistoryWhereInput); ok { + args.opts = append(args.opts, WithEntitlementPlanFeatureHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (eth *EntityTypeHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntityTypeHistoryQuery, error) { +func (eph *EntitlementPlanHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntitlementPlanHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return eth, nil + return eph, nil } - if err := eth.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := eph.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return eth, nil + return eph, nil } -func (eth *EntityTypeHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (eph *EntitlementPlanHistoryQuery) 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(entitytypehistory.Columns)) - selectedFields = []string{entitytypehistory.FieldID} + fieldSeen = make(map[string]struct{}, len(entitlementplanhistory.Columns)) + selectedFields = []string{entitlementplanhistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { case "historyTime": - if _, ok := fieldSeen[entitytypehistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, entitytypehistory.FieldHistoryTime) - fieldSeen[entitytypehistory.FieldHistoryTime] = struct{}{} + if _, ok := fieldSeen[entitlementplanhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldHistoryTime) + fieldSeen[entitlementplanhistory.FieldHistoryTime] = struct{}{} } case "ref": - if _, ok := fieldSeen[entitytypehistory.FieldRef]; !ok { - selectedFields = append(selectedFields, entitytypehistory.FieldRef) - fieldSeen[entitytypehistory.FieldRef] = struct{}{} + if _, ok := fieldSeen[entitlementplanhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldRef) + fieldSeen[entitlementplanhistory.FieldRef] = struct{}{} } case "operation": - if _, ok := fieldSeen[entitytypehistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, entitytypehistory.FieldOperation) - fieldSeen[entitytypehistory.FieldOperation] = struct{}{} + if _, ok := fieldSeen[entitlementplanhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldOperation) + fieldSeen[entitlementplanhistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[entitytypehistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, entitytypehistory.FieldCreatedAt) - fieldSeen[entitytypehistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[entitlementplanhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldCreatedAt) + fieldSeen[entitlementplanhistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[entitytypehistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, entitytypehistory.FieldUpdatedAt) - fieldSeen[entitytypehistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[entitlementplanhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldUpdatedAt) + fieldSeen[entitlementplanhistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[entitytypehistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, entitytypehistory.FieldCreatedBy) - fieldSeen[entitytypehistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[entitlementplanhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldCreatedBy) + fieldSeen[entitlementplanhistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[entitytypehistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, entitytypehistory.FieldUpdatedBy) - fieldSeen[entitytypehistory.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[entitlementplanhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldUpdatedBy) + fieldSeen[entitlementplanhistory.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[entitytypehistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, entitytypehistory.FieldDeletedAt) - fieldSeen[entitytypehistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[entitlementplanhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldDeletedAt) + fieldSeen[entitlementplanhistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[entitytypehistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, entitytypehistory.FieldDeletedBy) - fieldSeen[entitytypehistory.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[entitlementplanhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldDeletedBy) + fieldSeen[entitlementplanhistory.FieldDeletedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[entitytypehistory.FieldTags]; !ok { - selectedFields = append(selectedFields, entitytypehistory.FieldTags) - fieldSeen[entitytypehistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[entitlementplanhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldTags) + fieldSeen[entitlementplanhistory.FieldTags] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[entitytypehistory.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, entitytypehistory.FieldOwnerID) - fieldSeen[entitytypehistory.FieldOwnerID] = struct{}{} + if _, ok := fieldSeen[entitlementplanhistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldOwnerID) + fieldSeen[entitlementplanhistory.FieldOwnerID] = struct{}{} + } + case "displayName": + if _, ok := fieldSeen[entitlementplanhistory.FieldDisplayName]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldDisplayName) + fieldSeen[entitlementplanhistory.FieldDisplayName] = struct{}{} } case "name": - if _, ok := fieldSeen[entitytypehistory.FieldName]; !ok { - selectedFields = append(selectedFields, entitytypehistory.FieldName) - fieldSeen[entitytypehistory.FieldName] = struct{}{} + if _, ok := fieldSeen[entitlementplanhistory.FieldName]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldName) + fieldSeen[entitlementplanhistory.FieldName] = struct{}{} + } + case "description": + if _, ok := fieldSeen[entitlementplanhistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldDescription) + fieldSeen[entitlementplanhistory.FieldDescription] = struct{}{} + } + case "version": + if _, ok := fieldSeen[entitlementplanhistory.FieldVersion]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldVersion) + fieldSeen[entitlementplanhistory.FieldVersion] = struct{}{} + } + case "metadata": + if _, ok := fieldSeen[entitlementplanhistory.FieldMetadata]; !ok { + selectedFields = append(selectedFields, entitlementplanhistory.FieldMetadata) + fieldSeen[entitlementplanhistory.FieldMetadata] = struct{}{} } case "id": case "__typename": @@ -2478,19 +2973,19 @@ func (eth *EntityTypeHistoryQuery) collectField(ctx context.Context, oneNode boo } } if !unknownSeen { - eth.Select(selectedFields...) + eph.Select(selectedFields...) } return nil } -type entitytypehistoryPaginateArgs struct { +type entitlementplanhistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []EntityTypeHistoryPaginateOption + opts []EntitlementPlanHistoryPaginateOption } -func newEntityTypeHistoryPaginateArgs(rv map[string]any) *entitytypehistoryPaginateArgs { - args := &entitytypehistoryPaginateArgs{} +func newEntitlementPlanHistoryPaginateArgs(rv map[string]any) *entitlementplanhistoryPaginateArgs { + args := &entitlementplanhistoryPaginateArgs{} if rv == nil { return args } @@ -2506,36 +3001,14 @@ func newEntityTypeHistoryPaginateArgs(rv map[string]any) *entitytypehistoryPagin 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 = &EntityTypeHistoryOrder{Field: &EntityTypeHistoryOrderField{}, 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, WithEntityTypeHistoryOrder(order)) - } - case *EntityTypeHistoryOrder: - if v != nil { - args.opts = append(args.opts, WithEntityTypeHistoryOrder(v)) - } - } - } - if v, ok := rv[whereField].(*EntityTypeHistoryWhereInput); ok { - args.opts = append(args.opts, WithEntityTypeHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*EntitlementPlanHistoryWhereInput); ok { + args.opts = append(args.opts, WithEntitlementPlanHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (e *EventQuery) CollectFields(ctx context.Context, satisfies ...string) (*EventQuery, error) { +func (e *EntityQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntityQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { return e, nil @@ -2546,280 +3019,166 @@ func (e *EventQuery) CollectFields(ctx context.Context, satisfies ...string) (*E return e, nil } -func (e *EventQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (e *EntityQuery) 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(event.Columns)) - selectedFields = []string{event.FieldID} + fieldSeen = make(map[string]struct{}, len(entity.Columns)) + selectedFields = []string{entity.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "user": + case "owner": var ( alias = field.Alias path = append(path, alias) - query = (&UserClient{config: e.config}).Query() + query = (&OrganizationClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { return err } - e.WithNamedUser(alias, func(wq *UserQuery) { - *wq = *query - }) - - case "group": - var ( - alias = field.Alias - path = append(path, alias) - query = (&GroupClient{config: e.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { - return err + e.withOwner = query + if _, ok := fieldSeen[entity.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entity.FieldOwnerID) + fieldSeen[entity.FieldOwnerID] = struct{}{} } - e.WithNamedGroup(alias, func(wq *GroupQuery) { - *wq = *query - }) - case "integration": + case "contacts": var ( alias = field.Alias path = append(path, alias) - query = (&IntegrationClient{config: e.config}).Query() + query = (&ContactClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, integrationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, contactImplementors)...); err != nil { return err } - e.WithNamedIntegration(alias, func(wq *IntegrationQuery) { + e.WithNamedContacts(alias, func(wq *ContactQuery) { *wq = *query }) - case "organization": + case "documents": var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: e.config}).Query() + query = (&DocumentDataClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, documentdataImplementors)...); err != nil { return err } - e.WithNamedOrganization(alias, func(wq *OrganizationQuery) { + e.WithNamedDocuments(alias, func(wq *DocumentDataQuery) { *wq = *query }) - case "invite": + case "notes": var ( alias = field.Alias path = append(path, alias) - query = (&InviteClient{config: e.config}).Query() + query = (&NoteClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, inviteImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, noteImplementors)...); err != nil { return err } - e.WithNamedInvite(alias, func(wq *InviteQuery) { + e.WithNamedNotes(alias, func(wq *NoteQuery) { *wq = *query }) - case "feature": + case "files": var ( alias = field.Alias path = append(path, alias) - query = (&FeatureClient{config: e.config}).Query() + query = (&FileClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, featureImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, fileImplementors)...); err != nil { return err } - e.WithNamedFeature(alias, func(wq *FeatureQuery) { + e.WithNamedFiles(alias, func(wq *FileQuery) { *wq = *query }) - case "entitlementplan": + case "entityType": var ( alias = field.Alias path = append(path, alias) - query = (&EntitlementPlanClient{config: e.config}).Query() + query = (&EntityTypeClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanImplementors)...); err != nil { + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, entitytypeImplementors)...); err != nil { return err } - e.WithNamedEntitlementplan(alias, func(wq *EntitlementPlanQuery) { - *wq = *query - }) - - case "entitlementplanfeature": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EntitlementPlanFeatureClient{config: e.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanfeatureImplementors)...); err != nil { - return err + e.withEntityType = query + if _, ok := fieldSeen[entity.FieldEntityTypeID]; !ok { + selectedFields = append(selectedFields, entity.FieldEntityTypeID) + fieldSeen[entity.FieldEntityTypeID] = struct{}{} } - e.WithNamedEntitlementplanfeature(alias, func(wq *EntitlementPlanFeatureQuery) { - *wq = *query - }) - - case "personalAccessToken": - var ( - alias = field.Alias - path = append(path, alias) - query = (&PersonalAccessTokenClient{config: e.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, personalaccesstokenImplementors)...); err != nil { - return err - } - e.WithNamedPersonalAccessToken(alias, func(wq *PersonalAccessTokenQuery) { - *wq = *query - }) - - case "oauth2token": - var ( - alias = field.Alias - path = append(path, alias) - query = (&OhAuthTooTokenClient{config: e.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, ohauthtootokenImplementors)...); err != nil { - return err - } - e.WithNamedOauth2token(alias, func(wq *OhAuthTooTokenQuery) { - *wq = *query - }) - - case "hush": - var ( - alias = field.Alias - path = append(path, alias) - query = (&HushClient{config: e.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, hushImplementors)...); err != nil { - return err - } - e.WithNamedHush(alias, func(wq *HushQuery) { - *wq = *query - }) - - case "orgmembership": - var ( - alias = field.Alias - path = append(path, alias) - query = (&OrgMembershipClient{config: e.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, orgmembershipImplementors)...); err != nil { - return err - } - e.WithNamedOrgmembership(alias, func(wq *OrgMembershipQuery) { - *wq = *query - }) - - case "groupmembership": - var ( - alias = field.Alias - path = append(path, alias) - query = (&GroupMembershipClient{config: e.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, groupmembershipImplementors)...); err != nil { - return err - } - e.WithNamedGroupmembership(alias, func(wq *GroupMembershipQuery) { - *wq = *query - }) - - case "entitlement": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EntitlementClient{config: e.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementImplementors)...); err != nil { - return err - } - e.WithNamedEntitlement(alias, func(wq *EntitlementQuery) { - *wq = *query - }) - - case "webhook": - var ( - alias = field.Alias - path = append(path, alias) - query = (&WebhookClient{config: e.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, webhookImplementors)...); err != nil { - return err - } - e.WithNamedWebhook(alias, func(wq *WebhookQuery) { - *wq = *query - }) - - case "subscriber": - var ( - alias = field.Alias - path = append(path, alias) - query = (&SubscriberClient{config: e.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, subscriberImplementors)...); err != nil { - return err - } - e.WithNamedSubscriber(alias, func(wq *SubscriberQuery) { - *wq = *query - }) - - case "file": - var ( - alias = field.Alias - path = append(path, alias) - query = (&FileClient{config: e.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, fileImplementors)...); err != nil { - return err - } - e.WithNamedFile(alias, func(wq *FileQuery) { - *wq = *query - }) case "createdAt": - if _, ok := fieldSeen[event.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, event.FieldCreatedAt) - fieldSeen[event.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[entity.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, entity.FieldCreatedAt) + fieldSeen[entity.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[event.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, event.FieldUpdatedAt) - fieldSeen[event.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[entity.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, entity.FieldUpdatedAt) + fieldSeen[entity.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[event.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, event.FieldCreatedBy) - fieldSeen[event.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[entity.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, entity.FieldCreatedBy) + fieldSeen[entity.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[event.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, event.FieldUpdatedBy) - fieldSeen[event.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[entity.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, entity.FieldUpdatedBy) + fieldSeen[entity.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[entity.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, entity.FieldDeletedAt) + fieldSeen[entity.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[entity.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, entity.FieldDeletedBy) + fieldSeen[entity.FieldDeletedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[event.FieldTags]; !ok { - selectedFields = append(selectedFields, event.FieldTags) - fieldSeen[event.FieldTags] = struct{}{} + if _, ok := fieldSeen[entity.FieldTags]; !ok { + selectedFields = append(selectedFields, entity.FieldTags) + fieldSeen[entity.FieldTags] = struct{}{} } - case "eventID": - if _, ok := fieldSeen[event.FieldEventID]; !ok { - selectedFields = append(selectedFields, event.FieldEventID) - fieldSeen[event.FieldEventID] = struct{}{} + case "ownerID": + if _, ok := fieldSeen[entity.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entity.FieldOwnerID) + fieldSeen[entity.FieldOwnerID] = struct{}{} } - case "correlationID": - if _, ok := fieldSeen[event.FieldCorrelationID]; !ok { - selectedFields = append(selectedFields, event.FieldCorrelationID) - fieldSeen[event.FieldCorrelationID] = struct{}{} + case "name": + if _, ok := fieldSeen[entity.FieldName]; !ok { + selectedFields = append(selectedFields, entity.FieldName) + fieldSeen[entity.FieldName] = struct{}{} } - case "eventType": - if _, ok := fieldSeen[event.FieldEventType]; !ok { - selectedFields = append(selectedFields, event.FieldEventType) - fieldSeen[event.FieldEventType] = struct{}{} + case "displayName": + if _, ok := fieldSeen[entity.FieldDisplayName]; !ok { + selectedFields = append(selectedFields, entity.FieldDisplayName) + fieldSeen[entity.FieldDisplayName] = struct{}{} } - case "metadata": - if _, ok := fieldSeen[event.FieldMetadata]; !ok { - selectedFields = append(selectedFields, event.FieldMetadata) - fieldSeen[event.FieldMetadata] = struct{}{} + case "description": + if _, ok := fieldSeen[entity.FieldDescription]; !ok { + selectedFields = append(selectedFields, entity.FieldDescription) + fieldSeen[entity.FieldDescription] = struct{}{} + } + case "domains": + if _, ok := fieldSeen[entity.FieldDomains]; !ok { + selectedFields = append(selectedFields, entity.FieldDomains) + fieldSeen[entity.FieldDomains] = struct{}{} + } + case "entityTypeID": + if _, ok := fieldSeen[entity.FieldEntityTypeID]; !ok { + selectedFields = append(selectedFields, entity.FieldEntityTypeID) + fieldSeen[entity.FieldEntityTypeID] = struct{}{} + } + case "status": + if _, ok := fieldSeen[entity.FieldStatus]; !ok { + selectedFields = append(selectedFields, entity.FieldStatus) + fieldSeen[entity.FieldStatus] = struct{}{} } case "id": case "__typename": @@ -2833,14 +3192,14 @@ func (e *EventQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap return nil } -type eventPaginateArgs struct { +type entityPaginateArgs struct { first, last *int after, before *Cursor - opts []EventPaginateOption + opts []EntityPaginateOption } -func newEventPaginateArgs(rv map[string]any) *eventPaginateArgs { - args := &eventPaginateArgs{} +func newEntityPaginateArgs(rv map[string]any) *entityPaginateArgs { + args := &entityPaginateArgs{} if rv == nil { return args } @@ -2856,14 +3215,36 @@ func newEventPaginateArgs(rv map[string]any) *eventPaginateArgs { if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*EventWhereInput); ok { - args.opts = append(args.opts, WithEventFilter(v.Filter)) + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case map[string]any: + var ( + err1, err2 error + order = &EntityOrder{Field: &EntityOrderField{}, 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, WithEntityOrder(order)) + } + case *EntityOrder: + if v != nil { + args.opts = append(args.opts, WithEntityOrder(v)) + } + } + } + if v, ok := rv[whereField].(*EntityWhereInput); ok { + args.opts = append(args.opts, WithEntityFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (eh *EventHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*EventHistoryQuery, error) { +func (eh *EntityHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntityHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { return eh, nil @@ -2874,74 +3255,99 @@ func (eh *EventHistoryQuery) CollectFields(ctx context.Context, satisfies ...str return eh, nil } -func (eh *EventHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (eh *EntityHistoryQuery) 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(eventhistory.Columns)) - selectedFields = []string{eventhistory.FieldID} + fieldSeen = make(map[string]struct{}, len(entityhistory.Columns)) + selectedFields = []string{entityhistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { case "historyTime": - if _, ok := fieldSeen[eventhistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, eventhistory.FieldHistoryTime) - fieldSeen[eventhistory.FieldHistoryTime] = struct{}{} + if _, ok := fieldSeen[entityhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldHistoryTime) + fieldSeen[entityhistory.FieldHistoryTime] = struct{}{} } case "ref": - if _, ok := fieldSeen[eventhistory.FieldRef]; !ok { - selectedFields = append(selectedFields, eventhistory.FieldRef) - fieldSeen[eventhistory.FieldRef] = struct{}{} + if _, ok := fieldSeen[entityhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldRef) + fieldSeen[entityhistory.FieldRef] = struct{}{} } case "operation": - if _, ok := fieldSeen[eventhistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, eventhistory.FieldOperation) - fieldSeen[eventhistory.FieldOperation] = struct{}{} + if _, ok := fieldSeen[entityhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldOperation) + fieldSeen[entityhistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[eventhistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, eventhistory.FieldCreatedAt) - fieldSeen[eventhistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[entityhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldCreatedAt) + fieldSeen[entityhistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[eventhistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, eventhistory.FieldUpdatedAt) - fieldSeen[eventhistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[entityhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldUpdatedAt) + fieldSeen[entityhistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[eventhistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, eventhistory.FieldCreatedBy) - fieldSeen[eventhistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[entityhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldCreatedBy) + fieldSeen[entityhistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[eventhistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, eventhistory.FieldUpdatedBy) - fieldSeen[eventhistory.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[entityhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldUpdatedBy) + fieldSeen[entityhistory.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[entityhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldDeletedAt) + fieldSeen[entityhistory.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[entityhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldDeletedBy) + fieldSeen[entityhistory.FieldDeletedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[eventhistory.FieldTags]; !ok { - selectedFields = append(selectedFields, eventhistory.FieldTags) - fieldSeen[eventhistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[entityhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldTags) + fieldSeen[entityhistory.FieldTags] = struct{}{} } - case "eventID": - if _, ok := fieldSeen[eventhistory.FieldEventID]; !ok { - selectedFields = append(selectedFields, eventhistory.FieldEventID) - fieldSeen[eventhistory.FieldEventID] = struct{}{} + case "ownerID": + if _, ok := fieldSeen[entityhistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldOwnerID) + fieldSeen[entityhistory.FieldOwnerID] = struct{}{} } - case "correlationID": - if _, ok := fieldSeen[eventhistory.FieldCorrelationID]; !ok { - selectedFields = append(selectedFields, eventhistory.FieldCorrelationID) - fieldSeen[eventhistory.FieldCorrelationID] = struct{}{} + case "name": + if _, ok := fieldSeen[entityhistory.FieldName]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldName) + fieldSeen[entityhistory.FieldName] = struct{}{} } - case "eventType": - if _, ok := fieldSeen[eventhistory.FieldEventType]; !ok { - selectedFields = append(selectedFields, eventhistory.FieldEventType) - fieldSeen[eventhistory.FieldEventType] = struct{}{} + case "displayName": + if _, ok := fieldSeen[entityhistory.FieldDisplayName]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldDisplayName) + fieldSeen[entityhistory.FieldDisplayName] = struct{}{} } - case "metadata": - if _, ok := fieldSeen[eventhistory.FieldMetadata]; !ok { - selectedFields = append(selectedFields, eventhistory.FieldMetadata) - fieldSeen[eventhistory.FieldMetadata] = struct{}{} + case "description": + if _, ok := fieldSeen[entityhistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldDescription) + fieldSeen[entityhistory.FieldDescription] = struct{}{} + } + case "domains": + if _, ok := fieldSeen[entityhistory.FieldDomains]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldDomains) + fieldSeen[entityhistory.FieldDomains] = struct{}{} + } + case "entityTypeID": + if _, ok := fieldSeen[entityhistory.FieldEntityTypeID]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldEntityTypeID) + fieldSeen[entityhistory.FieldEntityTypeID] = struct{}{} + } + case "status": + if _, ok := fieldSeen[entityhistory.FieldStatus]; !ok { + selectedFields = append(selectedFields, entityhistory.FieldStatus) + fieldSeen[entityhistory.FieldStatus] = struct{}{} } case "id": case "__typename": @@ -2955,14 +3361,14 @@ func (eh *EventHistoryQuery) collectField(ctx context.Context, oneNode bool, opC return nil } -type eventhistoryPaginateArgs struct { +type entityhistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []EventHistoryPaginateOption + opts []EntityHistoryPaginateOption } -func newEventHistoryPaginateArgs(rv map[string]any) *eventhistoryPaginateArgs { - args := &eventhistoryPaginateArgs{} +func newEntityHistoryPaginateArgs(rv map[string]any) *entityhistoryPaginateArgs { + args := &entityhistoryPaginateArgs{} if rv == nil { return args } @@ -2978,30 +3384,52 @@ func newEventHistoryPaginateArgs(rv map[string]any) *eventhistoryPaginateArgs { if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*EventHistoryWhereInput); ok { - args.opts = append(args.opts, WithEventHistoryFilter(v.Filter)) + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case map[string]any: + var ( + err1, err2 error + order = &EntityHistoryOrder{Field: &EntityHistoryOrderField{}, 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, WithEntityHistoryOrder(order)) + } + case *EntityHistoryOrder: + if v != nil { + args.opts = append(args.opts, WithEntityHistoryOrder(v)) + } + } + } + if v, ok := rv[whereField].(*EntityHistoryWhereInput); ok { + args.opts = append(args.opts, WithEntityHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (f *FeatureQuery) CollectFields(ctx context.Context, satisfies ...string) (*FeatureQuery, error) { +func (et *EntityTypeQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntityTypeQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return f, nil + return et, nil } - if err := f.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := et.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return f, nil + return et, nil } -func (f *FeatureQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (et *EntityTypeQuery) 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(feature.Columns)) - selectedFields = []string{feature.FieldID} + fieldSeen = make(map[string]struct{}, len(entitytype.Columns)) + selectedFields = []string{entitytype.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { @@ -3010,119 +3438,73 @@ func (f *FeatureQuery) collectField(ctx context.Context, oneNode bool, opCtx *gr var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: f.config}).Query() + query = (&OrganizationClient{config: et.config}).Query() ) if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { return err } - f.withOwner = query - if _, ok := fieldSeen[feature.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, feature.FieldOwnerID) - fieldSeen[feature.FieldOwnerID] = struct{}{} - } - - case "plans": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EntitlementPlanClient{config: f.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanImplementors)...); err != nil { - return err - } - f.WithNamedPlans(alias, func(wq *EntitlementPlanQuery) { - *wq = *query - }) - - case "events": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EventClient{config: f.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { - return err + et.withOwner = query + if _, ok := fieldSeen[entitytype.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entitytype.FieldOwnerID) + fieldSeen[entitytype.FieldOwnerID] = struct{}{} } - f.WithNamedEvents(alias, func(wq *EventQuery) { - *wq = *query - }) - case "features": + case "entities": var ( alias = field.Alias path = append(path, alias) - query = (&EntitlementPlanFeatureClient{config: f.config}).Query() + query = (&EntityClient{config: et.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanfeatureImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entityImplementors)...); err != nil { return err } - f.WithNamedFeatures(alias, func(wq *EntitlementPlanFeatureQuery) { + et.WithNamedEntities(alias, func(wq *EntityQuery) { *wq = *query }) case "createdAt": - if _, ok := fieldSeen[feature.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, feature.FieldCreatedAt) - fieldSeen[feature.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[entitytype.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, entitytype.FieldCreatedAt) + fieldSeen[entitytype.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[feature.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, feature.FieldUpdatedAt) - fieldSeen[feature.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[entitytype.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, entitytype.FieldUpdatedAt) + fieldSeen[entitytype.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[feature.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, feature.FieldCreatedBy) - fieldSeen[feature.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[entitytype.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, entitytype.FieldCreatedBy) + fieldSeen[entitytype.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[feature.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, feature.FieldUpdatedBy) - fieldSeen[feature.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[entitytype.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, entitytype.FieldUpdatedBy) + fieldSeen[entitytype.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[feature.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, feature.FieldDeletedAt) - fieldSeen[feature.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[entitytype.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, entitytype.FieldDeletedAt) + fieldSeen[entitytype.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[feature.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, feature.FieldDeletedBy) - fieldSeen[feature.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[entitytype.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, entitytype.FieldDeletedBy) + fieldSeen[entitytype.FieldDeletedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[feature.FieldTags]; !ok { - selectedFields = append(selectedFields, feature.FieldTags) - fieldSeen[feature.FieldTags] = struct{}{} + if _, ok := fieldSeen[entitytype.FieldTags]; !ok { + selectedFields = append(selectedFields, entitytype.FieldTags) + fieldSeen[entitytype.FieldTags] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[feature.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, feature.FieldOwnerID) - fieldSeen[feature.FieldOwnerID] = struct{}{} + if _, ok := fieldSeen[entitytype.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entitytype.FieldOwnerID) + fieldSeen[entitytype.FieldOwnerID] = struct{}{} } case "name": - if _, ok := fieldSeen[feature.FieldName]; !ok { - selectedFields = append(selectedFields, feature.FieldName) - fieldSeen[feature.FieldName] = struct{}{} - } - case "displayName": - if _, ok := fieldSeen[feature.FieldDisplayName]; !ok { - selectedFields = append(selectedFields, feature.FieldDisplayName) - fieldSeen[feature.FieldDisplayName] = struct{}{} - } - case "enabled": - if _, ok := fieldSeen[feature.FieldEnabled]; !ok { - selectedFields = append(selectedFields, feature.FieldEnabled) - fieldSeen[feature.FieldEnabled] = struct{}{} - } - case "description": - if _, ok := fieldSeen[feature.FieldDescription]; !ok { - selectedFields = append(selectedFields, feature.FieldDescription) - fieldSeen[feature.FieldDescription] = struct{}{} - } - case "metadata": - if _, ok := fieldSeen[feature.FieldMetadata]; !ok { - selectedFields = append(selectedFields, feature.FieldMetadata) - fieldSeen[feature.FieldMetadata] = struct{}{} + if _, ok := fieldSeen[entitytype.FieldName]; !ok { + selectedFields = append(selectedFields, entitytype.FieldName) + fieldSeen[entitytype.FieldName] = struct{}{} } case "id": case "__typename": @@ -3131,19 +3513,19 @@ func (f *FeatureQuery) collectField(ctx context.Context, oneNode bool, opCtx *gr } } if !unknownSeen { - f.Select(selectedFields...) + et.Select(selectedFields...) } return nil } -type featurePaginateArgs struct { +type entitytypePaginateArgs struct { first, last *int after, before *Cursor - opts []FeaturePaginateOption + opts []EntityTypePaginateOption } -func newFeaturePaginateArgs(rv map[string]any) *featurePaginateArgs { - args := &featurePaginateArgs{} +func newEntityTypePaginateArgs(rv map[string]any) *entitytypePaginateArgs { + args := &entitytypePaginateArgs{} if rv == nil { return args } @@ -3159,112 +3541,114 @@ func newFeaturePaginateArgs(rv map[string]any) *featurePaginateArgs { if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*FeatureWhereInput); ok { - args.opts = append(args.opts, WithFeatureFilter(v.Filter)) + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case map[string]any: + var ( + err1, err2 error + order = &EntityTypeOrder{Field: &EntityTypeOrderField{}, 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, WithEntityTypeOrder(order)) + } + case *EntityTypeOrder: + if v != nil { + args.opts = append(args.opts, WithEntityTypeOrder(v)) + } + } + } + if v, ok := rv[whereField].(*EntityTypeWhereInput); ok { + args.opts = append(args.opts, WithEntityTypeFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (fh *FeatureHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*FeatureHistoryQuery, error) { +func (eth *EntityTypeHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*EntityTypeHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return fh, nil + return eth, nil } - if err := fh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := eth.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return fh, nil + return eth, nil } -func (fh *FeatureHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (eth *EntityTypeHistoryQuery) 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(featurehistory.Columns)) - selectedFields = []string{featurehistory.FieldID} + fieldSeen = make(map[string]struct{}, len(entitytypehistory.Columns)) + selectedFields = []string{entitytypehistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { case "historyTime": - if _, ok := fieldSeen[featurehistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldHistoryTime) - fieldSeen[featurehistory.FieldHistoryTime] = struct{}{} + if _, ok := fieldSeen[entitytypehistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, entitytypehistory.FieldHistoryTime) + fieldSeen[entitytypehistory.FieldHistoryTime] = struct{}{} } case "ref": - if _, ok := fieldSeen[featurehistory.FieldRef]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldRef) - fieldSeen[featurehistory.FieldRef] = struct{}{} + if _, ok := fieldSeen[entitytypehistory.FieldRef]; !ok { + selectedFields = append(selectedFields, entitytypehistory.FieldRef) + fieldSeen[entitytypehistory.FieldRef] = struct{}{} } case "operation": - if _, ok := fieldSeen[featurehistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldOperation) - fieldSeen[featurehistory.FieldOperation] = struct{}{} + if _, ok := fieldSeen[entitytypehistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, entitytypehistory.FieldOperation) + fieldSeen[entitytypehistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[featurehistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldCreatedAt) - fieldSeen[featurehistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[entitytypehistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, entitytypehistory.FieldCreatedAt) + fieldSeen[entitytypehistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[featurehistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldUpdatedAt) - fieldSeen[featurehistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[entitytypehistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, entitytypehistory.FieldUpdatedAt) + fieldSeen[entitytypehistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[featurehistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldCreatedBy) - fieldSeen[featurehistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[entitytypehistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, entitytypehistory.FieldCreatedBy) + fieldSeen[entitytypehistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[featurehistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldUpdatedBy) - fieldSeen[featurehistory.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[entitytypehistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, entitytypehistory.FieldUpdatedBy) + fieldSeen[entitytypehistory.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[featurehistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldDeletedAt) - fieldSeen[featurehistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[entitytypehistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, entitytypehistory.FieldDeletedAt) + fieldSeen[entitytypehistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[featurehistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldDeletedBy) - fieldSeen[featurehistory.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[entitytypehistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, entitytypehistory.FieldDeletedBy) + fieldSeen[entitytypehistory.FieldDeletedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[featurehistory.FieldTags]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldTags) - fieldSeen[featurehistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[entitytypehistory.FieldTags]; !ok { + selectedFields = append(selectedFields, entitytypehistory.FieldTags) + fieldSeen[entitytypehistory.FieldTags] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[featurehistory.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldOwnerID) - fieldSeen[featurehistory.FieldOwnerID] = struct{}{} + if _, ok := fieldSeen[entitytypehistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, entitytypehistory.FieldOwnerID) + fieldSeen[entitytypehistory.FieldOwnerID] = struct{}{} } case "name": - if _, ok := fieldSeen[featurehistory.FieldName]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldName) - fieldSeen[featurehistory.FieldName] = struct{}{} - } - case "displayName": - if _, ok := fieldSeen[featurehistory.FieldDisplayName]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldDisplayName) - fieldSeen[featurehistory.FieldDisplayName] = struct{}{} - } - case "enabled": - if _, ok := fieldSeen[featurehistory.FieldEnabled]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldEnabled) - fieldSeen[featurehistory.FieldEnabled] = struct{}{} - } - case "description": - if _, ok := fieldSeen[featurehistory.FieldDescription]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldDescription) - fieldSeen[featurehistory.FieldDescription] = struct{}{} - } - case "metadata": - if _, ok := fieldSeen[featurehistory.FieldMetadata]; !ok { - selectedFields = append(selectedFields, featurehistory.FieldMetadata) - fieldSeen[featurehistory.FieldMetadata] = struct{}{} + if _, ok := fieldSeen[entitytypehistory.FieldName]; !ok { + selectedFields = append(selectedFields, entitytypehistory.FieldName) + fieldSeen[entitytypehistory.FieldName] = struct{}{} } case "id": case "__typename": @@ -3273,19 +3657,19 @@ func (fh *FeatureHistoryQuery) collectField(ctx context.Context, oneNode bool, o } } if !unknownSeen { - fh.Select(selectedFields...) + eth.Select(selectedFields...) } return nil } -type featurehistoryPaginateArgs struct { +type entitytypehistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []FeatureHistoryPaginateOption + opts []EntityTypeHistoryPaginateOption } -func newFeatureHistoryPaginateArgs(rv map[string]any) *featurehistoryPaginateArgs { - args := &featurehistoryPaginateArgs{} +func newEntityTypeHistoryPaginateArgs(rv map[string]any) *entitytypehistoryPaginateArgs { + args := &entitytypehistoryPaginateArgs{} if rv == nil { return args } @@ -3301,30 +3685,52 @@ func newFeatureHistoryPaginateArgs(rv map[string]any) *featurehistoryPaginateArg if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*FeatureHistoryWhereInput); ok { - args.opts = append(args.opts, WithFeatureHistoryFilter(v.Filter)) + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case map[string]any: + var ( + err1, err2 error + order = &EntityTypeHistoryOrder{Field: &EntityTypeHistoryOrderField{}, 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, WithEntityTypeHistoryOrder(order)) + } + case *EntityTypeHistoryOrder: + if v != nil { + args.opts = append(args.opts, WithEntityTypeHistoryOrder(v)) + } + } + } + if v, ok := rv[whereField].(*EntityTypeHistoryWhereInput); ok { + args.opts = append(args.opts, WithEntityTypeHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (f *FileQuery) CollectFields(ctx context.Context, satisfies ...string) (*FileQuery, error) { +func (e *EventQuery) CollectFields(ctx context.Context, satisfies ...string) (*EventQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return f, nil + return e, nil } - if err := f.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := e.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return f, nil + return e, nil } -func (f *FileQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (e *EventQuery) 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(file.Columns)) - selectedFields = []string{file.FieldID} + fieldSeen = make(map[string]struct{}, len(event.Columns)) + selectedFields = []string{event.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { @@ -3333,230 +3739,266 @@ func (f *FileQuery) collectField(ctx context.Context, oneNode bool, opCtx *graph var ( alias = field.Alias path = append(path, alias) - query = (&UserClient{config: f.config}).Query() + query = (&UserClient{config: e.config}).Query() ) if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { return err } - f.WithNamedUser(alias, func(wq *UserQuery) { + e.WithNamedUser(alias, func(wq *UserQuery) { *wq = *query }) - case "organization": + case "group": var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: f.config}).Query() + query = (&GroupClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { return err } - f.WithNamedOrganization(alias, func(wq *OrganizationQuery) { + e.WithNamedGroup(alias, func(wq *GroupQuery) { *wq = *query }) - case "group": + case "integration": var ( alias = field.Alias path = append(path, alias) - query = (&GroupClient{config: f.config}).Query() + query = (&IntegrationClient{config: e.config}).Query() ) - 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, integrationImplementors)...); err != nil { return err } - f.WithNamedGroup(alias, func(wq *GroupQuery) { + e.WithNamedIntegration(alias, func(wq *IntegrationQuery) { *wq = *query }) - case "contact": + case "organization": var ( alias = field.Alias path = append(path, alias) - query = (&ContactClient{config: f.config}).Query() + query = (&OrganizationClient{config: e.config}).Query() ) - 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, organizationImplementors)...); err != nil { return err } - f.WithNamedContact(alias, func(wq *ContactQuery) { + e.WithNamedOrganization(alias, func(wq *OrganizationQuery) { *wq = *query }) - case "entity": + case "invite": var ( alias = field.Alias path = append(path, alias) - query = (&EntityClient{config: f.config}).Query() + query = (&InviteClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entityImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, inviteImplementors)...); err != nil { return err } - f.WithNamedEntity(alias, func(wq *EntityQuery) { + e.WithNamedInvite(alias, func(wq *InviteQuery) { *wq = *query }) - case "usersetting": + case "feature": var ( alias = field.Alias path = append(path, alias) - query = (&UserSettingClient{config: f.config}).Query() + query = (&FeatureClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, usersettingImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, featureImplementors)...); err != nil { return err } - f.WithNamedUsersetting(alias, func(wq *UserSettingQuery) { + e.WithNamedFeature(alias, func(wq *FeatureQuery) { *wq = *query }) - case "organizationsetting": + case "entitlementplan": var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationSettingClient{config: f.config}).Query() + query = (&EntitlementPlanClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, organizationsettingImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanImplementors)...); err != nil { return err } - f.WithNamedOrganizationsetting(alias, func(wq *OrganizationSettingQuery) { + e.WithNamedEntitlementplan(alias, func(wq *EntitlementPlanQuery) { *wq = *query }) - case "template": + case "entitlementplanfeature": var ( alias = field.Alias path = append(path, alias) - query = (&TemplateClient{config: f.config}).Query() + query = (&EntitlementPlanFeatureClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, templateImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanfeatureImplementors)...); err != nil { return err } - f.WithNamedTemplate(alias, func(wq *TemplateQuery) { + e.WithNamedEntitlementplanfeature(alias, func(wq *EntitlementPlanFeatureQuery) { *wq = *query }) - case "documentdata": + case "personalAccessToken": var ( alias = field.Alias path = append(path, alias) - query = (&DocumentDataClient{config: f.config}).Query() + query = (&PersonalAccessTokenClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, documentdataImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, personalaccesstokenImplementors)...); err != nil { return err } - f.WithNamedDocumentdata(alias, func(wq *DocumentDataQuery) { + e.WithNamedPersonalAccessToken(alias, func(wq *PersonalAccessTokenQuery) { *wq = *query }) - case "events": + case "oauth2token": var ( alias = field.Alias path = append(path, alias) - query = (&EventClient{config: f.config}).Query() + query = (&OhAuthTooTokenClient{config: e.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, ohauthtootokenImplementors)...); err != nil { return err } - f.WithNamedEvents(alias, func(wq *EventQuery) { + e.WithNamedOauth2token(alias, func(wq *OhAuthTooTokenQuery) { *wq = *query }) - case "createdAt": - if _, ok := fieldSeen[file.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, file.FieldCreatedAt) - fieldSeen[file.FieldCreatedAt] = struct{}{} - } - case "updatedAt": - if _, ok := fieldSeen[file.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, file.FieldUpdatedAt) - fieldSeen[file.FieldUpdatedAt] = struct{}{} - } - case "createdBy": - if _, ok := fieldSeen[file.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, file.FieldCreatedBy) - fieldSeen[file.FieldCreatedBy] = struct{}{} - } - case "updatedBy": - if _, ok := fieldSeen[file.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, file.FieldUpdatedBy) - fieldSeen[file.FieldUpdatedBy] = struct{}{} - } - case "deletedAt": - if _, ok := fieldSeen[file.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, file.FieldDeletedAt) - fieldSeen[file.FieldDeletedAt] = struct{}{} + + case "hush": + var ( + alias = field.Alias + path = append(path, alias) + query = (&HushClient{config: e.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, hushImplementors)...); err != nil { + return err } - case "deletedBy": - if _, ok := fieldSeen[file.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, file.FieldDeletedBy) - fieldSeen[file.FieldDeletedBy] = struct{}{} + e.WithNamedHush(alias, func(wq *HushQuery) { + *wq = *query + }) + + case "orgmembership": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrgMembershipClient{config: e.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, orgmembershipImplementors)...); err != nil { + return err } - case "tags": - if _, ok := fieldSeen[file.FieldTags]; !ok { - selectedFields = append(selectedFields, file.FieldTags) - fieldSeen[file.FieldTags] = struct{}{} + e.WithNamedOrgmembership(alias, func(wq *OrgMembershipQuery) { + *wq = *query + }) + + case "groupmembership": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupMembershipClient{config: e.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, groupmembershipImplementors)...); err != nil { + return err } - case "providedFileName": - if _, ok := fieldSeen[file.FieldProvidedFileName]; !ok { - selectedFields = append(selectedFields, file.FieldProvidedFileName) - fieldSeen[file.FieldProvidedFileName] = struct{}{} + e.WithNamedGroupmembership(alias, func(wq *GroupMembershipQuery) { + *wq = *query + }) + + case "entitlement": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EntitlementClient{config: e.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementImplementors)...); err != nil { + return err } - case "providedFileExtension": - if _, ok := fieldSeen[file.FieldProvidedFileExtension]; !ok { - selectedFields = append(selectedFields, file.FieldProvidedFileExtension) - fieldSeen[file.FieldProvidedFileExtension] = struct{}{} + e.WithNamedEntitlement(alias, func(wq *EntitlementQuery) { + *wq = *query + }) + + case "webhook": + var ( + alias = field.Alias + path = append(path, alias) + query = (&WebhookClient{config: e.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, webhookImplementors)...); err != nil { + return err } - case "providedFileSize": - if _, ok := fieldSeen[file.FieldProvidedFileSize]; !ok { - selectedFields = append(selectedFields, file.FieldProvidedFileSize) - fieldSeen[file.FieldProvidedFileSize] = struct{}{} + e.WithNamedWebhook(alias, func(wq *WebhookQuery) { + *wq = *query + }) + + case "subscriber": + var ( + alias = field.Alias + path = append(path, alias) + query = (&SubscriberClient{config: e.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, subscriberImplementors)...); err != nil { + return err } - case "persistedFileSize": - if _, ok := fieldSeen[file.FieldPersistedFileSize]; !ok { - selectedFields = append(selectedFields, file.FieldPersistedFileSize) - fieldSeen[file.FieldPersistedFileSize] = struct{}{} + e.WithNamedSubscriber(alias, func(wq *SubscriberQuery) { + *wq = *query + }) + + case "file": + var ( + alias = field.Alias + path = append(path, alias) + query = (&FileClient{config: e.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, fileImplementors)...); err != nil { + return err } - case "detectedMimeType": - if _, ok := fieldSeen[file.FieldDetectedMimeType]; !ok { - selectedFields = append(selectedFields, file.FieldDetectedMimeType) - fieldSeen[file.FieldDetectedMimeType] = struct{}{} + e.WithNamedFile(alias, func(wq *FileQuery) { + *wq = *query + }) + case "createdAt": + if _, ok := fieldSeen[event.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, event.FieldCreatedAt) + fieldSeen[event.FieldCreatedAt] = struct{}{} } - case "md5Hash": - if _, ok := fieldSeen[file.FieldMd5Hash]; !ok { - selectedFields = append(selectedFields, file.FieldMd5Hash) - fieldSeen[file.FieldMd5Hash] = struct{}{} + case "updatedAt": + if _, ok := fieldSeen[event.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, event.FieldUpdatedAt) + fieldSeen[event.FieldUpdatedAt] = struct{}{} } - case "detectedContentType": - if _, ok := fieldSeen[file.FieldDetectedContentType]; !ok { - selectedFields = append(selectedFields, file.FieldDetectedContentType) - fieldSeen[file.FieldDetectedContentType] = struct{}{} + case "createdBy": + if _, ok := fieldSeen[event.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, event.FieldCreatedBy) + fieldSeen[event.FieldCreatedBy] = struct{}{} } - case "storeKey": - if _, ok := fieldSeen[file.FieldStoreKey]; !ok { - selectedFields = append(selectedFields, file.FieldStoreKey) - fieldSeen[file.FieldStoreKey] = struct{}{} + case "updatedBy": + if _, ok := fieldSeen[event.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, event.FieldUpdatedBy) + fieldSeen[event.FieldUpdatedBy] = struct{}{} } - case "categoryType": - if _, ok := fieldSeen[file.FieldCategoryType]; !ok { - selectedFields = append(selectedFields, file.FieldCategoryType) - fieldSeen[file.FieldCategoryType] = struct{}{} + case "tags": + if _, ok := fieldSeen[event.FieldTags]; !ok { + selectedFields = append(selectedFields, event.FieldTags) + fieldSeen[event.FieldTags] = struct{}{} } - case "uri": - if _, ok := fieldSeen[file.FieldURI]; !ok { - selectedFields = append(selectedFields, file.FieldURI) - fieldSeen[file.FieldURI] = struct{}{} + case "eventID": + if _, ok := fieldSeen[event.FieldEventID]; !ok { + selectedFields = append(selectedFields, event.FieldEventID) + fieldSeen[event.FieldEventID] = struct{}{} } - case "storageScheme": - if _, ok := fieldSeen[file.FieldStorageScheme]; !ok { - selectedFields = append(selectedFields, file.FieldStorageScheme) - fieldSeen[file.FieldStorageScheme] = struct{}{} + case "correlationID": + if _, ok := fieldSeen[event.FieldCorrelationID]; !ok { + selectedFields = append(selectedFields, event.FieldCorrelationID) + fieldSeen[event.FieldCorrelationID] = struct{}{} } - case "storageVolume": - if _, ok := fieldSeen[file.FieldStorageVolume]; !ok { - selectedFields = append(selectedFields, file.FieldStorageVolume) - fieldSeen[file.FieldStorageVolume] = struct{}{} + case "eventType": + if _, ok := fieldSeen[event.FieldEventType]; !ok { + selectedFields = append(selectedFields, event.FieldEventType) + fieldSeen[event.FieldEventType] = struct{}{} } - case "storagePath": - if _, ok := fieldSeen[file.FieldStoragePath]; !ok { - selectedFields = append(selectedFields, file.FieldStoragePath) - fieldSeen[file.FieldStoragePath] = struct{}{} + case "metadata": + if _, ok := fieldSeen[event.FieldMetadata]; !ok { + selectedFields = append(selectedFields, event.FieldMetadata) + fieldSeen[event.FieldMetadata] = struct{}{} } case "id": case "__typename": @@ -3565,19 +4007,19 @@ func (f *FileQuery) collectField(ctx context.Context, oneNode bool, opCtx *graph } } if !unknownSeen { - f.Select(selectedFields...) + e.Select(selectedFields...) } return nil } -type filePaginateArgs struct { +type eventPaginateArgs struct { first, last *int after, before *Cursor - opts []FilePaginateOption + opts []EventPaginateOption } -func newFilePaginateArgs(rv map[string]any) *filePaginateArgs { - args := &filePaginateArgs{} +func newEventPaginateArgs(rv map[string]any) *eventPaginateArgs { + args := &eventPaginateArgs{} if rv == nil { return args } @@ -3593,147 +4035,92 @@ func newFilePaginateArgs(rv map[string]any) *filePaginateArgs { if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*FileWhereInput); ok { - args.opts = append(args.opts, WithFileFilter(v.Filter)) + if v, ok := rv[whereField].(*EventWhereInput); ok { + args.opts = append(args.opts, WithEventFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (fh *FileHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*FileHistoryQuery, error) { +func (eh *EventHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*EventHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return fh, nil + return eh, nil } - if err := fh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := eh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return fh, nil + return eh, nil } -func (fh *FileHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (eh *EventHistoryQuery) 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(filehistory.Columns)) - selectedFields = []string{filehistory.FieldID} + fieldSeen = make(map[string]struct{}, len(eventhistory.Columns)) + selectedFields = []string{eventhistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { case "historyTime": - if _, ok := fieldSeen[filehistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, filehistory.FieldHistoryTime) - fieldSeen[filehistory.FieldHistoryTime] = struct{}{} + if _, ok := fieldSeen[eventhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, eventhistory.FieldHistoryTime) + fieldSeen[eventhistory.FieldHistoryTime] = struct{}{} } case "ref": - if _, ok := fieldSeen[filehistory.FieldRef]; !ok { - selectedFields = append(selectedFields, filehistory.FieldRef) - fieldSeen[filehistory.FieldRef] = struct{}{} - } - case "operation": - if _, ok := fieldSeen[filehistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, filehistory.FieldOperation) - fieldSeen[filehistory.FieldOperation] = struct{}{} + if _, ok := fieldSeen[eventhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, eventhistory.FieldRef) + fieldSeen[eventhistory.FieldRef] = struct{}{} + } + case "operation": + if _, ok := fieldSeen[eventhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, eventhistory.FieldOperation) + fieldSeen[eventhistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[filehistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, filehistory.FieldCreatedAt) - fieldSeen[filehistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[eventhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, eventhistory.FieldCreatedAt) + fieldSeen[eventhistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[filehistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, filehistory.FieldUpdatedAt) - fieldSeen[filehistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[eventhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, eventhistory.FieldUpdatedAt) + fieldSeen[eventhistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[filehistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, filehistory.FieldCreatedBy) - fieldSeen[filehistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[eventhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, eventhistory.FieldCreatedBy) + fieldSeen[eventhistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[filehistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, filehistory.FieldUpdatedBy) - fieldSeen[filehistory.FieldUpdatedBy] = struct{}{} - } - case "deletedAt": - if _, ok := fieldSeen[filehistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, filehistory.FieldDeletedAt) - fieldSeen[filehistory.FieldDeletedAt] = struct{}{} - } - case "deletedBy": - if _, ok := fieldSeen[filehistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, filehistory.FieldDeletedBy) - fieldSeen[filehistory.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[eventhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, eventhistory.FieldUpdatedBy) + fieldSeen[eventhistory.FieldUpdatedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[filehistory.FieldTags]; !ok { - selectedFields = append(selectedFields, filehistory.FieldTags) - fieldSeen[filehistory.FieldTags] = struct{}{} - } - case "providedFileName": - if _, ok := fieldSeen[filehistory.FieldProvidedFileName]; !ok { - selectedFields = append(selectedFields, filehistory.FieldProvidedFileName) - fieldSeen[filehistory.FieldProvidedFileName] = struct{}{} - } - case "providedFileExtension": - if _, ok := fieldSeen[filehistory.FieldProvidedFileExtension]; !ok { - selectedFields = append(selectedFields, filehistory.FieldProvidedFileExtension) - fieldSeen[filehistory.FieldProvidedFileExtension] = struct{}{} - } - case "providedFileSize": - if _, ok := fieldSeen[filehistory.FieldProvidedFileSize]; !ok { - selectedFields = append(selectedFields, filehistory.FieldProvidedFileSize) - fieldSeen[filehistory.FieldProvidedFileSize] = struct{}{} - } - case "persistedFileSize": - if _, ok := fieldSeen[filehistory.FieldPersistedFileSize]; !ok { - selectedFields = append(selectedFields, filehistory.FieldPersistedFileSize) - fieldSeen[filehistory.FieldPersistedFileSize] = struct{}{} - } - case "detectedMimeType": - if _, ok := fieldSeen[filehistory.FieldDetectedMimeType]; !ok { - selectedFields = append(selectedFields, filehistory.FieldDetectedMimeType) - fieldSeen[filehistory.FieldDetectedMimeType] = struct{}{} - } - case "md5Hash": - if _, ok := fieldSeen[filehistory.FieldMd5Hash]; !ok { - selectedFields = append(selectedFields, filehistory.FieldMd5Hash) - fieldSeen[filehistory.FieldMd5Hash] = struct{}{} - } - case "detectedContentType": - if _, ok := fieldSeen[filehistory.FieldDetectedContentType]; !ok { - selectedFields = append(selectedFields, filehistory.FieldDetectedContentType) - fieldSeen[filehistory.FieldDetectedContentType] = struct{}{} - } - case "storeKey": - if _, ok := fieldSeen[filehistory.FieldStoreKey]; !ok { - selectedFields = append(selectedFields, filehistory.FieldStoreKey) - fieldSeen[filehistory.FieldStoreKey] = struct{}{} - } - case "categoryType": - if _, ok := fieldSeen[filehistory.FieldCategoryType]; !ok { - selectedFields = append(selectedFields, filehistory.FieldCategoryType) - fieldSeen[filehistory.FieldCategoryType] = struct{}{} + if _, ok := fieldSeen[eventhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, eventhistory.FieldTags) + fieldSeen[eventhistory.FieldTags] = struct{}{} } - case "uri": - if _, ok := fieldSeen[filehistory.FieldURI]; !ok { - selectedFields = append(selectedFields, filehistory.FieldURI) - fieldSeen[filehistory.FieldURI] = struct{}{} + case "eventID": + if _, ok := fieldSeen[eventhistory.FieldEventID]; !ok { + selectedFields = append(selectedFields, eventhistory.FieldEventID) + fieldSeen[eventhistory.FieldEventID] = struct{}{} } - case "storageScheme": - if _, ok := fieldSeen[filehistory.FieldStorageScheme]; !ok { - selectedFields = append(selectedFields, filehistory.FieldStorageScheme) - fieldSeen[filehistory.FieldStorageScheme] = struct{}{} + case "correlationID": + if _, ok := fieldSeen[eventhistory.FieldCorrelationID]; !ok { + selectedFields = append(selectedFields, eventhistory.FieldCorrelationID) + fieldSeen[eventhistory.FieldCorrelationID] = struct{}{} } - case "storageVolume": - if _, ok := fieldSeen[filehistory.FieldStorageVolume]; !ok { - selectedFields = append(selectedFields, filehistory.FieldStorageVolume) - fieldSeen[filehistory.FieldStorageVolume] = struct{}{} + case "eventType": + if _, ok := fieldSeen[eventhistory.FieldEventType]; !ok { + selectedFields = append(selectedFields, eventhistory.FieldEventType) + fieldSeen[eventhistory.FieldEventType] = struct{}{} } - case "storagePath": - if _, ok := fieldSeen[filehistory.FieldStoragePath]; !ok { - selectedFields = append(selectedFields, filehistory.FieldStoragePath) - fieldSeen[filehistory.FieldStoragePath] = struct{}{} + case "metadata": + if _, ok := fieldSeen[eventhistory.FieldMetadata]; !ok { + selectedFields = append(selectedFields, eventhistory.FieldMetadata) + fieldSeen[eventhistory.FieldMetadata] = struct{}{} } case "id": case "__typename": @@ -3742,19 +4129,19 @@ func (fh *FileHistoryQuery) collectField(ctx context.Context, oneNode bool, opCt } } if !unknownSeen { - fh.Select(selectedFields...) + eh.Select(selectedFields...) } return nil } -type filehistoryPaginateArgs struct { +type eventhistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []FileHistoryPaginateOption + opts []EventHistoryPaginateOption } -func newFileHistoryPaginateArgs(rv map[string]any) *filehistoryPaginateArgs { - args := &filehistoryPaginateArgs{} +func newEventHistoryPaginateArgs(rv map[string]any) *eventhistoryPaginateArgs { + args := &eventhistoryPaginateArgs{} if rv == nil { return args } @@ -3770,30 +4157,30 @@ func newFileHistoryPaginateArgs(rv map[string]any) *filehistoryPaginateArgs { if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*FileHistoryWhereInput); ok { - args.opts = append(args.opts, WithFileHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*EventHistoryWhereInput); ok { + args.opts = append(args.opts, WithEventHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (gr *GroupQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupQuery, error) { +func (f *FeatureQuery) CollectFields(ctx context.Context, satisfies ...string) (*FeatureQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return gr, nil + return f, nil } - if err := gr.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := f.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return gr, nil + return f, nil } -func (gr *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (f *FeatureQuery) 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(group.Columns)) - selectedFields = []string{group.FieldID} + fieldSeen = make(map[string]struct{}, len(feature.Columns)) + selectedFields = []string{feature.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { @@ -3802,38 +4189,27 @@ func (gr *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: gr.config}).Query() + query = (&OrganizationClient{config: f.config}).Query() ) if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { return err } - gr.withOwner = query - if _, ok := fieldSeen[group.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, group.FieldOwnerID) - fieldSeen[group.FieldOwnerID] = struct{}{} - } - - case "setting": - var ( - alias = field.Alias - path = append(path, alias) - query = (&GroupSettingClient{config: gr.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, groupsettingImplementors)...); err != nil { - return err + f.withOwner = query + if _, ok := fieldSeen[feature.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, feature.FieldOwnerID) + fieldSeen[feature.FieldOwnerID] = struct{}{} } - gr.withSetting = query - case "users": + case "plans": var ( alias = field.Alias path = append(path, alias) - query = (&UserClient{config: gr.config}).Query() + query = (&EntitlementPlanClient{config: f.config}).Query() ) - 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, entitlementplanImplementors)...); err != nil { return err } - gr.WithNamedUsers(alias, func(wq *UserQuery) { + f.WithNamedPlans(alias, func(wq *EntitlementPlanQuery) { *wq = *query }) @@ -3841,117 +4217,91 @@ func (gr *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra var ( alias = field.Alias path = append(path, alias) - query = (&EventClient{config: gr.config}).Query() + query = (&EventClient{config: f.config}).Query() ) if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { return err } - gr.WithNamedEvents(alias, func(wq *EventQuery) { - *wq = *query - }) - - case "integrations": - var ( - alias = field.Alias - path = append(path, alias) - query = (&IntegrationClient{config: gr.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, integrationImplementors)...); err != nil { - return err - } - gr.WithNamedIntegrations(alias, func(wq *IntegrationQuery) { - *wq = *query - }) - - case "files": - var ( - alias = field.Alias - path = append(path, alias) - query = (&FileClient{config: gr.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, fileImplementors)...); err != nil { - return err - } - gr.WithNamedFiles(alias, func(wq *FileQuery) { + f.WithNamedEvents(alias, func(wq *EventQuery) { *wq = *query }) - case "members": + case "features": var ( alias = field.Alias path = append(path, alias) - query = (&GroupMembershipClient{config: gr.config}).Query() + query = (&EntitlementPlanFeatureClient{config: f.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, groupmembershipImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanfeatureImplementors)...); err != nil { return err } - gr.WithNamedMembers(alias, func(wq *GroupMembershipQuery) { + f.WithNamedFeatures(alias, func(wq *EntitlementPlanFeatureQuery) { *wq = *query }) case "createdAt": - if _, ok := fieldSeen[group.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, group.FieldCreatedAt) - fieldSeen[group.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[feature.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, feature.FieldCreatedAt) + fieldSeen[feature.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[group.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, group.FieldUpdatedAt) - fieldSeen[group.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[feature.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, feature.FieldUpdatedAt) + fieldSeen[feature.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[group.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, group.FieldCreatedBy) - fieldSeen[group.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[feature.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, feature.FieldCreatedBy) + fieldSeen[feature.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[group.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, group.FieldUpdatedBy) - fieldSeen[group.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[feature.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, feature.FieldUpdatedBy) + fieldSeen[feature.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[group.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, group.FieldDeletedAt) - fieldSeen[group.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[feature.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, feature.FieldDeletedAt) + fieldSeen[feature.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[group.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, group.FieldDeletedBy) - fieldSeen[group.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[feature.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, feature.FieldDeletedBy) + fieldSeen[feature.FieldDeletedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[group.FieldTags]; !ok { - selectedFields = append(selectedFields, group.FieldTags) - fieldSeen[group.FieldTags] = struct{}{} + if _, ok := fieldSeen[feature.FieldTags]; !ok { + selectedFields = append(selectedFields, feature.FieldTags) + fieldSeen[feature.FieldTags] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[group.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, group.FieldOwnerID) - fieldSeen[group.FieldOwnerID] = struct{}{} + if _, ok := fieldSeen[feature.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, feature.FieldOwnerID) + fieldSeen[feature.FieldOwnerID] = struct{}{} } case "name": - if _, ok := fieldSeen[group.FieldName]; !ok { - selectedFields = append(selectedFields, group.FieldName) - fieldSeen[group.FieldName] = struct{}{} + if _, ok := fieldSeen[feature.FieldName]; !ok { + selectedFields = append(selectedFields, feature.FieldName) + fieldSeen[feature.FieldName] = struct{}{} } - case "description": - if _, ok := fieldSeen[group.FieldDescription]; !ok { - selectedFields = append(selectedFields, group.FieldDescription) - fieldSeen[group.FieldDescription] = struct{}{} + case "displayName": + if _, ok := fieldSeen[feature.FieldDisplayName]; !ok { + selectedFields = append(selectedFields, feature.FieldDisplayName) + fieldSeen[feature.FieldDisplayName] = struct{}{} } - case "gravatarLogoURL": - if _, ok := fieldSeen[group.FieldGravatarLogoURL]; !ok { - selectedFields = append(selectedFields, group.FieldGravatarLogoURL) - fieldSeen[group.FieldGravatarLogoURL] = struct{}{} + case "enabled": + if _, ok := fieldSeen[feature.FieldEnabled]; !ok { + selectedFields = append(selectedFields, feature.FieldEnabled) + fieldSeen[feature.FieldEnabled] = struct{}{} } - case "logoURL": - if _, ok := fieldSeen[group.FieldLogoURL]; !ok { - selectedFields = append(selectedFields, group.FieldLogoURL) - fieldSeen[group.FieldLogoURL] = struct{}{} + case "description": + if _, ok := fieldSeen[feature.FieldDescription]; !ok { + selectedFields = append(selectedFields, feature.FieldDescription) + fieldSeen[feature.FieldDescription] = struct{}{} } - case "displayName": - if _, ok := fieldSeen[group.FieldDisplayName]; !ok { - selectedFields = append(selectedFields, group.FieldDisplayName) - fieldSeen[group.FieldDisplayName] = struct{}{} + case "metadata": + if _, ok := fieldSeen[feature.FieldMetadata]; !ok { + selectedFields = append(selectedFields, feature.FieldMetadata) + fieldSeen[feature.FieldMetadata] = struct{}{} } case "id": case "__typename": @@ -3960,19 +4310,19 @@ func (gr *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } } if !unknownSeen { - gr.Select(selectedFields...) + f.Select(selectedFields...) } return nil } -type groupPaginateArgs struct { +type featurePaginateArgs struct { first, last *int after, before *Cursor - opts []GroupPaginateOption + opts []FeaturePaginateOption } -func newGroupPaginateArgs(rv map[string]any) *groupPaginateArgs { - args := &groupPaginateArgs{} +func newFeaturePaginateArgs(rv map[string]any) *featurePaginateArgs { + args := &featurePaginateArgs{} if rv == nil { return args } @@ -3988,134 +4338,112 @@ func newGroupPaginateArgs(rv map[string]any) *groupPaginateArgs { 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 = &GroupOrder{Field: &GroupOrderField{}, 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, WithGroupOrder(order)) - } - case *GroupOrder: - if v != nil { - args.opts = append(args.opts, WithGroupOrder(v)) - } - } - } - if v, ok := rv[whereField].(*GroupWhereInput); ok { - args.opts = append(args.opts, WithGroupFilter(v.Filter)) + if v, ok := rv[whereField].(*FeatureWhereInput); ok { + args.opts = append(args.opts, WithFeatureFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (gh *GroupHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupHistoryQuery, error) { +func (fh *FeatureHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*FeatureHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return gh, nil + return fh, nil } - if err := gh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := fh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return gh, nil + return fh, nil } -func (gh *GroupHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (fh *FeatureHistoryQuery) 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(grouphistory.Columns)) - selectedFields = []string{grouphistory.FieldID} + fieldSeen = make(map[string]struct{}, len(featurehistory.Columns)) + selectedFields = []string{featurehistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { case "historyTime": - if _, ok := fieldSeen[grouphistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldHistoryTime) - fieldSeen[grouphistory.FieldHistoryTime] = struct{}{} + if _, ok := fieldSeen[featurehistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldHistoryTime) + fieldSeen[featurehistory.FieldHistoryTime] = struct{}{} } case "ref": - if _, ok := fieldSeen[grouphistory.FieldRef]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldRef) - fieldSeen[grouphistory.FieldRef] = struct{}{} + if _, ok := fieldSeen[featurehistory.FieldRef]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldRef) + fieldSeen[featurehistory.FieldRef] = struct{}{} } case "operation": - if _, ok := fieldSeen[grouphistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldOperation) - fieldSeen[grouphistory.FieldOperation] = struct{}{} + if _, ok := fieldSeen[featurehistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldOperation) + fieldSeen[featurehistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[grouphistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldCreatedAt) - fieldSeen[grouphistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[featurehistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldCreatedAt) + fieldSeen[featurehistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[grouphistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldUpdatedAt) - fieldSeen[grouphistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[featurehistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldUpdatedAt) + fieldSeen[featurehistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[grouphistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldCreatedBy) - fieldSeen[grouphistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[featurehistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldCreatedBy) + fieldSeen[featurehistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[grouphistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldUpdatedBy) - fieldSeen[grouphistory.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[featurehistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldUpdatedBy) + fieldSeen[featurehistory.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[grouphistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldDeletedAt) - fieldSeen[grouphistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[featurehistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldDeletedAt) + fieldSeen[featurehistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[grouphistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldDeletedBy) - fieldSeen[grouphistory.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[featurehistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldDeletedBy) + fieldSeen[featurehistory.FieldDeletedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[grouphistory.FieldTags]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldTags) - fieldSeen[grouphistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[featurehistory.FieldTags]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldTags) + fieldSeen[featurehistory.FieldTags] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[grouphistory.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldOwnerID) - fieldSeen[grouphistory.FieldOwnerID] = struct{}{} + if _, ok := fieldSeen[featurehistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldOwnerID) + fieldSeen[featurehistory.FieldOwnerID] = struct{}{} } case "name": - if _, ok := fieldSeen[grouphistory.FieldName]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldName) - fieldSeen[grouphistory.FieldName] = struct{}{} + if _, ok := fieldSeen[featurehistory.FieldName]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldName) + fieldSeen[featurehistory.FieldName] = struct{}{} } - case "description": - if _, ok := fieldSeen[grouphistory.FieldDescription]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldDescription) - fieldSeen[grouphistory.FieldDescription] = struct{}{} + case "displayName": + if _, ok := fieldSeen[featurehistory.FieldDisplayName]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldDisplayName) + fieldSeen[featurehistory.FieldDisplayName] = struct{}{} } - case "gravatarLogoURL": - if _, ok := fieldSeen[grouphistory.FieldGravatarLogoURL]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldGravatarLogoURL) - fieldSeen[grouphistory.FieldGravatarLogoURL] = struct{}{} + case "enabled": + if _, ok := fieldSeen[featurehistory.FieldEnabled]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldEnabled) + fieldSeen[featurehistory.FieldEnabled] = struct{}{} } - case "logoURL": - if _, ok := fieldSeen[grouphistory.FieldLogoURL]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldLogoURL) - fieldSeen[grouphistory.FieldLogoURL] = struct{}{} + case "description": + if _, ok := fieldSeen[featurehistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldDescription) + fieldSeen[featurehistory.FieldDescription] = struct{}{} } - case "displayName": - if _, ok := fieldSeen[grouphistory.FieldDisplayName]; !ok { - selectedFields = append(selectedFields, grouphistory.FieldDisplayName) - fieldSeen[grouphistory.FieldDisplayName] = struct{}{} + case "metadata": + if _, ok := fieldSeen[featurehistory.FieldMetadata]; !ok { + selectedFields = append(selectedFields, featurehistory.FieldMetadata) + fieldSeen[featurehistory.FieldMetadata] = struct{}{} } case "id": case "__typename": @@ -4124,19 +4452,19 @@ func (gh *GroupHistoryQuery) collectField(ctx context.Context, oneNode bool, opC } } if !unknownSeen { - gh.Select(selectedFields...) + fh.Select(selectedFields...) } return nil } -type grouphistoryPaginateArgs struct { +type featurehistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []GroupHistoryPaginateOption + opts []FeatureHistoryPaginateOption } -func newGroupHistoryPaginateArgs(rv map[string]any) *grouphistoryPaginateArgs { - args := &grouphistoryPaginateArgs{} +func newFeatureHistoryPaginateArgs(rv map[string]any) *featurehistoryPaginateArgs { + args := &featurehistoryPaginateArgs{} if rv == nil { return args } @@ -4152,142 +4480,262 @@ func newGroupHistoryPaginateArgs(rv map[string]any) *grouphistoryPaginateArgs { 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 = &GroupHistoryOrder{Field: &GroupHistoryOrderField{}, 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, WithGroupHistoryOrder(order)) - } - case *GroupHistoryOrder: - if v != nil { - args.opts = append(args.opts, WithGroupHistoryOrder(v)) - } - } - } - if v, ok := rv[whereField].(*GroupHistoryWhereInput); ok { - args.opts = append(args.opts, WithGroupHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*FeatureHistoryWhereInput); ok { + args.opts = append(args.opts, WithFeatureHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (gm *GroupMembershipQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupMembershipQuery, error) { +func (f *FileQuery) CollectFields(ctx context.Context, satisfies ...string) (*FileQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return gm, nil + return f, nil } - if err := gm.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := f.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return gm, nil + return f, nil } -func (gm *GroupMembershipQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (f *FileQuery) 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(groupmembership.Columns)) - selectedFields = []string{groupmembership.FieldID} - ) + fieldSeen = make(map[string]struct{}, len(file.Columns)) + selectedFields = []string{file.FieldID} + ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { + case "user": + var ( + alias = field.Alias + path = append(path, alias) + query = (&UserClient{config: f.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { + return err + } + f.WithNamedUser(alias, func(wq *UserQuery) { + *wq = *query + }) + + case "organization": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationClient{config: f.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + return err + } + f.WithNamedOrganization(alias, func(wq *OrganizationQuery) { + *wq = *query + }) + case "group": var ( alias = field.Alias path = append(path, alias) - query = (&GroupClient{config: gm.config}).Query() + query = (&GroupClient{config: f.config}).Query() ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { return err } - gm.withGroup = query - if _, ok := fieldSeen[groupmembership.FieldGroupID]; !ok { - selectedFields = append(selectedFields, groupmembership.FieldGroupID) - fieldSeen[groupmembership.FieldGroupID] = struct{}{} + f.WithNamedGroup(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "contact": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ContactClient{config: f.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, contactImplementors)...); err != nil { + return err } + f.WithNamedContact(alias, func(wq *ContactQuery) { + *wq = *query + }) - case "user": + case "entity": var ( alias = field.Alias path = append(path, alias) - query = (&UserClient{config: gm.config}).Query() + query = (&EntityClient{config: f.config}).Query() ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entityImplementors)...); err != nil { return err } - gm.withUser = query - if _, ok := fieldSeen[groupmembership.FieldUserID]; !ok { - selectedFields = append(selectedFields, groupmembership.FieldUserID) - fieldSeen[groupmembership.FieldUserID] = struct{}{} + f.WithNamedEntity(alias, func(wq *EntityQuery) { + *wq = *query + }) + + case "usersetting": + var ( + alias = field.Alias + path = append(path, alias) + query = (&UserSettingClient{config: f.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, usersettingImplementors)...); err != nil { + return err + } + f.WithNamedUsersetting(alias, func(wq *UserSettingQuery) { + *wq = *query + }) + + case "organizationsetting": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationSettingClient{config: f.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, organizationsettingImplementors)...); err != nil { + return err + } + f.WithNamedOrganizationsetting(alias, func(wq *OrganizationSettingQuery) { + *wq = *query + }) + + case "template": + var ( + alias = field.Alias + path = append(path, alias) + query = (&TemplateClient{config: f.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, templateImplementors)...); err != nil { + return err + } + f.WithNamedTemplate(alias, func(wq *TemplateQuery) { + *wq = *query + }) + + case "documentdata": + var ( + alias = field.Alias + path = append(path, alias) + query = (&DocumentDataClient{config: f.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, documentdataImplementors)...); err != nil { + return err } + f.WithNamedDocumentdata(alias, func(wq *DocumentDataQuery) { + *wq = *query + }) case "events": var ( alias = field.Alias path = append(path, alias) - query = (&EventClient{config: gm.config}).Query() + query = (&EventClient{config: f.config}).Query() ) if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { return err } - gm.WithNamedEvents(alias, func(wq *EventQuery) { + f.WithNamedEvents(alias, func(wq *EventQuery) { *wq = *query }) case "createdAt": - if _, ok := fieldSeen[groupmembership.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, groupmembership.FieldCreatedAt) - fieldSeen[groupmembership.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[file.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, file.FieldCreatedAt) + fieldSeen[file.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[groupmembership.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, groupmembership.FieldUpdatedAt) - fieldSeen[groupmembership.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[file.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, file.FieldUpdatedAt) + fieldSeen[file.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[groupmembership.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, groupmembership.FieldCreatedBy) - fieldSeen[groupmembership.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[file.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, file.FieldCreatedBy) + fieldSeen[file.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[groupmembership.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, groupmembership.FieldUpdatedBy) - fieldSeen[groupmembership.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[file.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, file.FieldUpdatedBy) + fieldSeen[file.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[groupmembership.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, groupmembership.FieldDeletedAt) - fieldSeen[groupmembership.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[file.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, file.FieldDeletedAt) + fieldSeen[file.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[groupmembership.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, groupmembership.FieldDeletedBy) - fieldSeen[groupmembership.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[file.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, file.FieldDeletedBy) + fieldSeen[file.FieldDeletedBy] = struct{}{} } - case "role": - if _, ok := fieldSeen[groupmembership.FieldRole]; !ok { - selectedFields = append(selectedFields, groupmembership.FieldRole) - fieldSeen[groupmembership.FieldRole] = struct{}{} + case "tags": + if _, ok := fieldSeen[file.FieldTags]; !ok { + selectedFields = append(selectedFields, file.FieldTags) + fieldSeen[file.FieldTags] = struct{}{} } - case "groupID": - if _, ok := fieldSeen[groupmembership.FieldGroupID]; !ok { - selectedFields = append(selectedFields, groupmembership.FieldGroupID) - fieldSeen[groupmembership.FieldGroupID] = struct{}{} + case "providedFileName": + if _, ok := fieldSeen[file.FieldProvidedFileName]; !ok { + selectedFields = append(selectedFields, file.FieldProvidedFileName) + fieldSeen[file.FieldProvidedFileName] = struct{}{} } - case "userID": - if _, ok := fieldSeen[groupmembership.FieldUserID]; !ok { - selectedFields = append(selectedFields, groupmembership.FieldUserID) - fieldSeen[groupmembership.FieldUserID] = struct{}{} + case "providedFileExtension": + if _, ok := fieldSeen[file.FieldProvidedFileExtension]; !ok { + selectedFields = append(selectedFields, file.FieldProvidedFileExtension) + fieldSeen[file.FieldProvidedFileExtension] = struct{}{} + } + case "providedFileSize": + if _, ok := fieldSeen[file.FieldProvidedFileSize]; !ok { + selectedFields = append(selectedFields, file.FieldProvidedFileSize) + fieldSeen[file.FieldProvidedFileSize] = struct{}{} + } + case "persistedFileSize": + if _, ok := fieldSeen[file.FieldPersistedFileSize]; !ok { + selectedFields = append(selectedFields, file.FieldPersistedFileSize) + fieldSeen[file.FieldPersistedFileSize] = struct{}{} + } + case "detectedMimeType": + if _, ok := fieldSeen[file.FieldDetectedMimeType]; !ok { + selectedFields = append(selectedFields, file.FieldDetectedMimeType) + fieldSeen[file.FieldDetectedMimeType] = struct{}{} + } + case "md5Hash": + if _, ok := fieldSeen[file.FieldMd5Hash]; !ok { + selectedFields = append(selectedFields, file.FieldMd5Hash) + fieldSeen[file.FieldMd5Hash] = struct{}{} + } + case "detectedContentType": + if _, ok := fieldSeen[file.FieldDetectedContentType]; !ok { + selectedFields = append(selectedFields, file.FieldDetectedContentType) + fieldSeen[file.FieldDetectedContentType] = struct{}{} + } + case "storeKey": + if _, ok := fieldSeen[file.FieldStoreKey]; !ok { + selectedFields = append(selectedFields, file.FieldStoreKey) + fieldSeen[file.FieldStoreKey] = struct{}{} + } + case "categoryType": + if _, ok := fieldSeen[file.FieldCategoryType]; !ok { + selectedFields = append(selectedFields, file.FieldCategoryType) + fieldSeen[file.FieldCategoryType] = struct{}{} + } + case "uri": + if _, ok := fieldSeen[file.FieldURI]; !ok { + selectedFields = append(selectedFields, file.FieldURI) + fieldSeen[file.FieldURI] = struct{}{} + } + case "storageScheme": + if _, ok := fieldSeen[file.FieldStorageScheme]; !ok { + selectedFields = append(selectedFields, file.FieldStorageScheme) + fieldSeen[file.FieldStorageScheme] = struct{}{} + } + case "storageVolume": + if _, ok := fieldSeen[file.FieldStorageVolume]; !ok { + selectedFields = append(selectedFields, file.FieldStorageVolume) + fieldSeen[file.FieldStorageVolume] = struct{}{} + } + case "storagePath": + if _, ok := fieldSeen[file.FieldStoragePath]; !ok { + selectedFields = append(selectedFields, file.FieldStoragePath) + fieldSeen[file.FieldStoragePath] = struct{}{} } case "id": case "__typename": @@ -4296,19 +4744,19 @@ func (gm *GroupMembershipQuery) collectField(ctx context.Context, oneNode bool, } } if !unknownSeen { - gm.Select(selectedFields...) + f.Select(selectedFields...) } return nil } -type groupmembershipPaginateArgs struct { +type filePaginateArgs struct { first, last *int after, before *Cursor - opts []GroupMembershipPaginateOption + opts []FilePaginateOption } -func newGroupMembershipPaginateArgs(rv map[string]any) *groupmembershipPaginateArgs { - args := &groupmembershipPaginateArgs{} +func newFilePaginateArgs(rv map[string]any) *filePaginateArgs { + args := &filePaginateArgs{} if rv == nil { return args } @@ -4324,92 +4772,147 @@ func newGroupMembershipPaginateArgs(rv map[string]any) *groupmembershipPaginateA if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*GroupMembershipWhereInput); ok { - args.opts = append(args.opts, WithGroupMembershipFilter(v.Filter)) + if v, ok := rv[whereField].(*FileWhereInput); ok { + args.opts = append(args.opts, WithFileFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (gmh *GroupMembershipHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupMembershipHistoryQuery, error) { +func (fh *FileHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*FileHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return gmh, nil + return fh, nil } - if err := gmh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := fh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return gmh, nil + return fh, nil } -func (gmh *GroupMembershipHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (fh *FileHistoryQuery) 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(groupmembershiphistory.Columns)) - selectedFields = []string{groupmembershiphistory.FieldID} + fieldSeen = make(map[string]struct{}, len(filehistory.Columns)) + selectedFields = []string{filehistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { case "historyTime": - if _, ok := fieldSeen[groupmembershiphistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, groupmembershiphistory.FieldHistoryTime) - fieldSeen[groupmembershiphistory.FieldHistoryTime] = struct{}{} + if _, ok := fieldSeen[filehistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, filehistory.FieldHistoryTime) + fieldSeen[filehistory.FieldHistoryTime] = struct{}{} } case "ref": - if _, ok := fieldSeen[groupmembershiphistory.FieldRef]; !ok { - selectedFields = append(selectedFields, groupmembershiphistory.FieldRef) - fieldSeen[groupmembershiphistory.FieldRef] = struct{}{} + if _, ok := fieldSeen[filehistory.FieldRef]; !ok { + selectedFields = append(selectedFields, filehistory.FieldRef) + fieldSeen[filehistory.FieldRef] = struct{}{} } case "operation": - if _, ok := fieldSeen[groupmembershiphistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, groupmembershiphistory.FieldOperation) - fieldSeen[groupmembershiphistory.FieldOperation] = struct{}{} + if _, ok := fieldSeen[filehistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, filehistory.FieldOperation) + fieldSeen[filehistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[groupmembershiphistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, groupmembershiphistory.FieldCreatedAt) - fieldSeen[groupmembershiphistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[filehistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, filehistory.FieldCreatedAt) + fieldSeen[filehistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[groupmembershiphistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, groupmembershiphistory.FieldUpdatedAt) - fieldSeen[groupmembershiphistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[filehistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, filehistory.FieldUpdatedAt) + fieldSeen[filehistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[groupmembershiphistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, groupmembershiphistory.FieldCreatedBy) - fieldSeen[groupmembershiphistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[filehistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, filehistory.FieldCreatedBy) + fieldSeen[filehistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[groupmembershiphistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, groupmembershiphistory.FieldUpdatedBy) - fieldSeen[groupmembershiphistory.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[filehistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, filehistory.FieldUpdatedBy) + fieldSeen[filehistory.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[groupmembershiphistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, groupmembershiphistory.FieldDeletedAt) - fieldSeen[groupmembershiphistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[filehistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, filehistory.FieldDeletedAt) + fieldSeen[filehistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[groupmembershiphistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, groupmembershiphistory.FieldDeletedBy) - fieldSeen[groupmembershiphistory.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[filehistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, filehistory.FieldDeletedBy) + fieldSeen[filehistory.FieldDeletedBy] = struct{}{} } - case "role": - if _, ok := fieldSeen[groupmembershiphistory.FieldRole]; !ok { - selectedFields = append(selectedFields, groupmembershiphistory.FieldRole) - fieldSeen[groupmembershiphistory.FieldRole] = struct{}{} + case "tags": + if _, ok := fieldSeen[filehistory.FieldTags]; !ok { + selectedFields = append(selectedFields, filehistory.FieldTags) + fieldSeen[filehistory.FieldTags] = struct{}{} } - case "groupID": - if _, ok := fieldSeen[groupmembershiphistory.FieldGroupID]; !ok { - selectedFields = append(selectedFields, groupmembershiphistory.FieldGroupID) - fieldSeen[groupmembershiphistory.FieldGroupID] = struct{}{} + case "providedFileName": + if _, ok := fieldSeen[filehistory.FieldProvidedFileName]; !ok { + selectedFields = append(selectedFields, filehistory.FieldProvidedFileName) + fieldSeen[filehistory.FieldProvidedFileName] = struct{}{} } - case "userID": - if _, ok := fieldSeen[groupmembershiphistory.FieldUserID]; !ok { - selectedFields = append(selectedFields, groupmembershiphistory.FieldUserID) - fieldSeen[groupmembershiphistory.FieldUserID] = struct{}{} + case "providedFileExtension": + if _, ok := fieldSeen[filehistory.FieldProvidedFileExtension]; !ok { + selectedFields = append(selectedFields, filehistory.FieldProvidedFileExtension) + fieldSeen[filehistory.FieldProvidedFileExtension] = struct{}{} + } + case "providedFileSize": + if _, ok := fieldSeen[filehistory.FieldProvidedFileSize]; !ok { + selectedFields = append(selectedFields, filehistory.FieldProvidedFileSize) + fieldSeen[filehistory.FieldProvidedFileSize] = struct{}{} + } + case "persistedFileSize": + if _, ok := fieldSeen[filehistory.FieldPersistedFileSize]; !ok { + selectedFields = append(selectedFields, filehistory.FieldPersistedFileSize) + fieldSeen[filehistory.FieldPersistedFileSize] = struct{}{} + } + case "detectedMimeType": + if _, ok := fieldSeen[filehistory.FieldDetectedMimeType]; !ok { + selectedFields = append(selectedFields, filehistory.FieldDetectedMimeType) + fieldSeen[filehistory.FieldDetectedMimeType] = struct{}{} + } + case "md5Hash": + if _, ok := fieldSeen[filehistory.FieldMd5Hash]; !ok { + selectedFields = append(selectedFields, filehistory.FieldMd5Hash) + fieldSeen[filehistory.FieldMd5Hash] = struct{}{} + } + case "detectedContentType": + if _, ok := fieldSeen[filehistory.FieldDetectedContentType]; !ok { + selectedFields = append(selectedFields, filehistory.FieldDetectedContentType) + fieldSeen[filehistory.FieldDetectedContentType] = struct{}{} + } + case "storeKey": + if _, ok := fieldSeen[filehistory.FieldStoreKey]; !ok { + selectedFields = append(selectedFields, filehistory.FieldStoreKey) + fieldSeen[filehistory.FieldStoreKey] = struct{}{} + } + case "categoryType": + if _, ok := fieldSeen[filehistory.FieldCategoryType]; !ok { + selectedFields = append(selectedFields, filehistory.FieldCategoryType) + fieldSeen[filehistory.FieldCategoryType] = struct{}{} + } + case "uri": + if _, ok := fieldSeen[filehistory.FieldURI]; !ok { + selectedFields = append(selectedFields, filehistory.FieldURI) + fieldSeen[filehistory.FieldURI] = struct{}{} + } + case "storageScheme": + if _, ok := fieldSeen[filehistory.FieldStorageScheme]; !ok { + selectedFields = append(selectedFields, filehistory.FieldStorageScheme) + fieldSeen[filehistory.FieldStorageScheme] = struct{}{} + } + case "storageVolume": + if _, ok := fieldSeen[filehistory.FieldStorageVolume]; !ok { + selectedFields = append(selectedFields, filehistory.FieldStorageVolume) + fieldSeen[filehistory.FieldStorageVolume] = struct{}{} + } + case "storagePath": + if _, ok := fieldSeen[filehistory.FieldStoragePath]; !ok { + selectedFields = append(selectedFields, filehistory.FieldStoragePath) + fieldSeen[filehistory.FieldStoragePath] = struct{}{} } case "id": case "__typename": @@ -4418,19 +4921,19 @@ func (gmh *GroupMembershipHistoryQuery) collectField(ctx context.Context, oneNod } } if !unknownSeen { - gmh.Select(selectedFields...) + fh.Select(selectedFields...) } return nil } -type groupmembershiphistoryPaginateArgs struct { +type filehistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []GroupMembershipHistoryPaginateOption + opts []FileHistoryPaginateOption } -func newGroupMembershipHistoryPaginateArgs(rv map[string]any) *groupmembershiphistoryPaginateArgs { - args := &groupmembershiphistoryPaginateArgs{} +func newFileHistoryPaginateArgs(rv map[string]any) *filehistoryPaginateArgs { + args := &filehistoryPaginateArgs{} if rv == nil { return args } @@ -4446,107 +4949,188 @@ func newGroupMembershipHistoryPaginateArgs(rv map[string]any) *groupmembershiphi if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*GroupMembershipHistoryWhereInput); ok { - args.opts = append(args.opts, WithGroupMembershipHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*FileHistoryWhereInput); ok { + args.opts = append(args.opts, WithFileHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (gs *GroupSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupSettingQuery, error) { +func (gr *GroupQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return gs, nil + return gr, nil } - if err := gs.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := gr.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return gs, nil + return gr, nil } -func (gs *GroupSettingQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (gr *GroupQuery) 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(groupsetting.Columns)) - selectedFields = []string{groupsetting.FieldID} + fieldSeen = make(map[string]struct{}, len(group.Columns)) + selectedFields = []string{group.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "group": + case "owner": var ( alias = field.Alias path = append(path, alias) - query = (&GroupClient{config: gs.config}).Query() + query = (&OrganizationClient{config: gr.config}).Query() ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { return err } - gs.withGroup = query - if _, ok := fieldSeen[groupsetting.FieldGroupID]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldGroupID) - fieldSeen[groupsetting.FieldGroupID] = struct{}{} - } - case "createdAt": - if _, ok := fieldSeen[groupsetting.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldCreatedAt) - fieldSeen[groupsetting.FieldCreatedAt] = struct{}{} - } - case "updatedAt": - if _, ok := fieldSeen[groupsetting.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldUpdatedAt) - fieldSeen[groupsetting.FieldUpdatedAt] = struct{}{} - } - case "createdBy": - if _, ok := fieldSeen[groupsetting.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldCreatedBy) - fieldSeen[groupsetting.FieldCreatedBy] = struct{}{} + gr.withOwner = query + if _, ok := fieldSeen[group.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, group.FieldOwnerID) + fieldSeen[group.FieldOwnerID] = struct{}{} } - case "updatedBy": - if _, ok := fieldSeen[groupsetting.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldUpdatedBy) - fieldSeen[groupsetting.FieldUpdatedBy] = struct{}{} + + case "setting": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupSettingClient{config: gr.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, groupsettingImplementors)...); err != nil { + return err } - case "tags": - if _, ok := fieldSeen[groupsetting.FieldTags]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldTags) - fieldSeen[groupsetting.FieldTags] = struct{}{} + gr.withSetting = query + + case "users": + var ( + alias = field.Alias + path = append(path, alias) + query = (&UserClient{config: gr.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { + return err } - case "deletedAt": - if _, ok := fieldSeen[groupsetting.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldDeletedAt) - fieldSeen[groupsetting.FieldDeletedAt] = struct{}{} + gr.WithNamedUsers(alias, func(wq *UserQuery) { + *wq = *query + }) + + case "events": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EventClient{config: gr.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { + return err } - case "deletedBy": - if _, ok := fieldSeen[groupsetting.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldDeletedBy) - fieldSeen[groupsetting.FieldDeletedBy] = struct{}{} + gr.WithNamedEvents(alias, func(wq *EventQuery) { + *wq = *query + }) + + case "integrations": + var ( + alias = field.Alias + path = append(path, alias) + query = (&IntegrationClient{config: gr.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, integrationImplementors)...); err != nil { + return err } - case "visibility": - if _, ok := fieldSeen[groupsetting.FieldVisibility]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldVisibility) - fieldSeen[groupsetting.FieldVisibility] = struct{}{} + gr.WithNamedIntegrations(alias, func(wq *IntegrationQuery) { + *wq = *query + }) + + case "files": + var ( + alias = field.Alias + path = append(path, alias) + query = (&FileClient{config: gr.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, fileImplementors)...); err != nil { + return err } - case "joinPolicy": - if _, ok := fieldSeen[groupsetting.FieldJoinPolicy]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldJoinPolicy) - fieldSeen[groupsetting.FieldJoinPolicy] = struct{}{} + gr.WithNamedFiles(alias, func(wq *FileQuery) { + *wq = *query + }) + + case "members": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupMembershipClient{config: gr.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, groupmembershipImplementors)...); err != nil { + return err } - case "syncToSlack": - if _, ok := fieldSeen[groupsetting.FieldSyncToSlack]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldSyncToSlack) - fieldSeen[groupsetting.FieldSyncToSlack] = struct{}{} + gr.WithNamedMembers(alias, func(wq *GroupMembershipQuery) { + *wq = *query + }) + case "createdAt": + if _, ok := fieldSeen[group.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, group.FieldCreatedAt) + fieldSeen[group.FieldCreatedAt] = struct{}{} } - case "syncToGithub": - if _, ok := fieldSeen[groupsetting.FieldSyncToGithub]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldSyncToGithub) - fieldSeen[groupsetting.FieldSyncToGithub] = struct{}{} + case "updatedAt": + if _, ok := fieldSeen[group.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, group.FieldUpdatedAt) + fieldSeen[group.FieldUpdatedAt] = struct{}{} } - case "groupID": - if _, ok := fieldSeen[groupsetting.FieldGroupID]; !ok { - selectedFields = append(selectedFields, groupsetting.FieldGroupID) - fieldSeen[groupsetting.FieldGroupID] = struct{}{} + case "createdBy": + if _, ok := fieldSeen[group.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, group.FieldCreatedBy) + fieldSeen[group.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[group.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, group.FieldUpdatedBy) + fieldSeen[group.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[group.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, group.FieldDeletedAt) + fieldSeen[group.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[group.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, group.FieldDeletedBy) + fieldSeen[group.FieldDeletedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[group.FieldTags]; !ok { + selectedFields = append(selectedFields, group.FieldTags) + fieldSeen[group.FieldTags] = struct{}{} + } + case "ownerID": + if _, ok := fieldSeen[group.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, group.FieldOwnerID) + fieldSeen[group.FieldOwnerID] = struct{}{} + } + case "name": + if _, ok := fieldSeen[group.FieldName]; !ok { + selectedFields = append(selectedFields, group.FieldName) + fieldSeen[group.FieldName] = struct{}{} + } + case "description": + if _, ok := fieldSeen[group.FieldDescription]; !ok { + selectedFields = append(selectedFields, group.FieldDescription) + fieldSeen[group.FieldDescription] = struct{}{} + } + case "gravatarLogoURL": + if _, ok := fieldSeen[group.FieldGravatarLogoURL]; !ok { + selectedFields = append(selectedFields, group.FieldGravatarLogoURL) + fieldSeen[group.FieldGravatarLogoURL] = struct{}{} + } + case "logoURL": + if _, ok := fieldSeen[group.FieldLogoURL]; !ok { + selectedFields = append(selectedFields, group.FieldLogoURL) + fieldSeen[group.FieldLogoURL] = struct{}{} + } + case "displayName": + if _, ok := fieldSeen[group.FieldDisplayName]; !ok { + selectedFields = append(selectedFields, group.FieldDisplayName) + fieldSeen[group.FieldDisplayName] = struct{}{} } case "id": case "__typename": @@ -4555,19 +5139,19 @@ func (gs *GroupSettingQuery) collectField(ctx context.Context, oneNode bool, opC } } if !unknownSeen { - gs.Select(selectedFields...) + gr.Select(selectedFields...) } return nil } -type groupsettingPaginateArgs struct { +type groupPaginateArgs struct { first, last *int after, before *Cursor - opts []GroupSettingPaginateOption + opts []GroupPaginateOption } -func newGroupSettingPaginateArgs(rv map[string]any) *groupsettingPaginateArgs { - args := &groupsettingPaginateArgs{} +func newGroupPaginateArgs(rv map[string]any) *groupPaginateArgs { + args := &groupPaginateArgs{} if rv == nil { return args } @@ -4583,128 +5167,155 @@ func newGroupSettingPaginateArgs(rv map[string]any) *groupsettingPaginateArgs { if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*GroupSettingWhereInput); ok { - args.opts = append(args.opts, WithGroupSettingFilter(v.Filter)) + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case map[string]any: + var ( + err1, err2 error + order = &GroupOrder{Field: &GroupOrderField{}, 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, WithGroupOrder(order)) + } + case *GroupOrder: + if v != nil { + args.opts = append(args.opts, WithGroupOrder(v)) + } + } + } + if v, ok := rv[whereField].(*GroupWhereInput); ok { + args.opts = append(args.opts, WithGroupFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (gsh *GroupSettingHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupSettingHistoryQuery, error) { +func (gh *GroupHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return gsh, nil + return gh, nil } - if err := gsh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := gh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return gsh, nil + return gh, nil } -func (gsh *GroupSettingHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (gh *GroupHistoryQuery) 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(groupsettinghistory.Columns)) - selectedFields = []string{groupsettinghistory.FieldID} + fieldSeen = make(map[string]struct{}, len(grouphistory.Columns)) + selectedFields = []string{grouphistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { case "historyTime": - if _, ok := fieldSeen[groupsettinghistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldHistoryTime) - fieldSeen[groupsettinghistory.FieldHistoryTime] = struct{}{} + if _, ok := fieldSeen[grouphistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldHistoryTime) + fieldSeen[grouphistory.FieldHistoryTime] = struct{}{} } case "ref": - if _, ok := fieldSeen[groupsettinghistory.FieldRef]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldRef) - fieldSeen[groupsettinghistory.FieldRef] = struct{}{} + if _, ok := fieldSeen[grouphistory.FieldRef]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldRef) + fieldSeen[grouphistory.FieldRef] = struct{}{} } case "operation": - if _, ok := fieldSeen[groupsettinghistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldOperation) - fieldSeen[groupsettinghistory.FieldOperation] = struct{}{} + if _, ok := fieldSeen[grouphistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldOperation) + fieldSeen[grouphistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[groupsettinghistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldCreatedAt) - fieldSeen[groupsettinghistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[grouphistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldCreatedAt) + fieldSeen[grouphistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[groupsettinghistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldUpdatedAt) - fieldSeen[groupsettinghistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[grouphistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldUpdatedAt) + fieldSeen[grouphistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[groupsettinghistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldCreatedBy) - fieldSeen[groupsettinghistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[grouphistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldCreatedBy) + fieldSeen[grouphistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[groupsettinghistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldUpdatedBy) - fieldSeen[groupsettinghistory.FieldUpdatedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[groupsettinghistory.FieldTags]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldTags) - fieldSeen[groupsettinghistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[grouphistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldUpdatedBy) + fieldSeen[grouphistory.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[groupsettinghistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldDeletedAt) - fieldSeen[groupsettinghistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[grouphistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldDeletedAt) + fieldSeen[grouphistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[groupsettinghistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldDeletedBy) - fieldSeen[groupsettinghistory.FieldDeletedBy] = struct{}{} - } - case "visibility": - if _, ok := fieldSeen[groupsettinghistory.FieldVisibility]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldVisibility) - fieldSeen[groupsettinghistory.FieldVisibility] = struct{}{} + if _, ok := fieldSeen[grouphistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldDeletedBy) + fieldSeen[grouphistory.FieldDeletedBy] = struct{}{} } - case "joinPolicy": - if _, ok := fieldSeen[groupsettinghistory.FieldJoinPolicy]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldJoinPolicy) - fieldSeen[groupsettinghistory.FieldJoinPolicy] = struct{}{} + case "tags": + if _, ok := fieldSeen[grouphistory.FieldTags]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldTags) + fieldSeen[grouphistory.FieldTags] = struct{}{} } - case "syncToSlack": - if _, ok := fieldSeen[groupsettinghistory.FieldSyncToSlack]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldSyncToSlack) - fieldSeen[groupsettinghistory.FieldSyncToSlack] = struct{}{} + case "ownerID": + if _, ok := fieldSeen[grouphistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldOwnerID) + fieldSeen[grouphistory.FieldOwnerID] = struct{}{} } - case "syncToGithub": - if _, ok := fieldSeen[groupsettinghistory.FieldSyncToGithub]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldSyncToGithub) - fieldSeen[groupsettinghistory.FieldSyncToGithub] = struct{}{} + case "name": + if _, ok := fieldSeen[grouphistory.FieldName]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldName) + fieldSeen[grouphistory.FieldName] = struct{}{} } - case "groupID": - if _, ok := fieldSeen[groupsettinghistory.FieldGroupID]; !ok { - selectedFields = append(selectedFields, groupsettinghistory.FieldGroupID) - fieldSeen[groupsettinghistory.FieldGroupID] = struct{}{} + case "description": + if _, ok := fieldSeen[grouphistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldDescription) + fieldSeen[grouphistory.FieldDescription] = struct{}{} } - case "id": + case "gravatarLogoURL": + if _, ok := fieldSeen[grouphistory.FieldGravatarLogoURL]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldGravatarLogoURL) + fieldSeen[grouphistory.FieldGravatarLogoURL] = struct{}{} + } + case "logoURL": + if _, ok := fieldSeen[grouphistory.FieldLogoURL]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldLogoURL) + fieldSeen[grouphistory.FieldLogoURL] = struct{}{} + } + case "displayName": + if _, ok := fieldSeen[grouphistory.FieldDisplayName]; !ok { + selectedFields = append(selectedFields, grouphistory.FieldDisplayName) + fieldSeen[grouphistory.FieldDisplayName] = struct{}{} + } + case "id": case "__typename": default: unknownSeen = true } } if !unknownSeen { - gsh.Select(selectedFields...) + gh.Select(selectedFields...) } return nil } -type groupsettinghistoryPaginateArgs struct { +type grouphistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []GroupSettingHistoryPaginateOption + opts []GroupHistoryPaginateOption } -func newGroupSettingHistoryPaginateArgs(rv map[string]any) *groupsettinghistoryPaginateArgs { - args := &groupsettinghistoryPaginateArgs{} +func newGroupHistoryPaginateArgs(rv map[string]any) *grouphistoryPaginateArgs { + args := &grouphistoryPaginateArgs{} if rv == nil { return args } @@ -4720,121 +5331,142 @@ func newGroupSettingHistoryPaginateArgs(rv map[string]any) *groupsettinghistoryP if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*GroupSettingHistoryWhereInput); ok { - args.opts = append(args.opts, WithGroupSettingHistoryFilter(v.Filter)) + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case map[string]any: + var ( + err1, err2 error + order = &GroupHistoryOrder{Field: &GroupHistoryOrderField{}, 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, WithGroupHistoryOrder(order)) + } + case *GroupHistoryOrder: + if v != nil { + args.opts = append(args.opts, WithGroupHistoryOrder(v)) + } + } + } + if v, ok := rv[whereField].(*GroupHistoryWhereInput); ok { + args.opts = append(args.opts, WithGroupHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (h *HushQuery) CollectFields(ctx context.Context, satisfies ...string) (*HushQuery, error) { +func (gm *GroupMembershipQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupMembershipQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return h, nil + return gm, nil } - if err := h.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := gm.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return h, nil + return gm, nil } -func (h *HushQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (gm *GroupMembershipQuery) 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(hush.Columns)) - selectedFields = []string{hush.FieldID} + fieldSeen = make(map[string]struct{}, len(groupmembership.Columns)) + selectedFields = []string{groupmembership.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "integrations": + case "group": var ( alias = field.Alias path = append(path, alias) - query = (&IntegrationClient{config: h.config}).Query() + query = (&GroupClient{config: gm.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, integrationImplementors)...); err != nil { + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { return err } - h.WithNamedIntegrations(alias, func(wq *IntegrationQuery) { - *wq = *query - }) + gm.withGroup = query + if _, ok := fieldSeen[groupmembership.FieldGroupID]; !ok { + selectedFields = append(selectedFields, groupmembership.FieldGroupID) + fieldSeen[groupmembership.FieldGroupID] = struct{}{} + } - case "organization": + case "user": var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: h.config}).Query() + query = (&UserClient{config: gm.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { return err } - h.WithNamedOrganization(alias, func(wq *OrganizationQuery) { - *wq = *query - }) + gm.withUser = query + if _, ok := fieldSeen[groupmembership.FieldUserID]; !ok { + selectedFields = append(selectedFields, groupmembership.FieldUserID) + fieldSeen[groupmembership.FieldUserID] = struct{}{} + } case "events": var ( alias = field.Alias path = append(path, alias) - query = (&EventClient{config: h.config}).Query() + query = (&EventClient{config: gm.config}).Query() ) if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { return err } - h.WithNamedEvents(alias, func(wq *EventQuery) { + gm.WithNamedEvents(alias, func(wq *EventQuery) { *wq = *query }) case "createdAt": - if _, ok := fieldSeen[hush.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, hush.FieldCreatedAt) - fieldSeen[hush.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[groupmembership.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, groupmembership.FieldCreatedAt) + fieldSeen[groupmembership.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[hush.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, hush.FieldUpdatedAt) - fieldSeen[hush.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[groupmembership.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, groupmembership.FieldUpdatedAt) + fieldSeen[groupmembership.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[hush.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, hush.FieldCreatedBy) - fieldSeen[hush.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[groupmembership.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, groupmembership.FieldCreatedBy) + fieldSeen[groupmembership.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[hush.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, hush.FieldUpdatedBy) - fieldSeen[hush.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[groupmembership.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, groupmembership.FieldUpdatedBy) + fieldSeen[groupmembership.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[hush.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, hush.FieldDeletedAt) - fieldSeen[hush.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[groupmembership.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, groupmembership.FieldDeletedAt) + fieldSeen[groupmembership.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[hush.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, hush.FieldDeletedBy) - fieldSeen[hush.FieldDeletedBy] = struct{}{} - } - case "name": - if _, ok := fieldSeen[hush.FieldName]; !ok { - selectedFields = append(selectedFields, hush.FieldName) - fieldSeen[hush.FieldName] = struct{}{} + if _, ok := fieldSeen[groupmembership.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, groupmembership.FieldDeletedBy) + fieldSeen[groupmembership.FieldDeletedBy] = struct{}{} } - case "description": - if _, ok := fieldSeen[hush.FieldDescription]; !ok { - selectedFields = append(selectedFields, hush.FieldDescription) - fieldSeen[hush.FieldDescription] = struct{}{} + case "role": + if _, ok := fieldSeen[groupmembership.FieldRole]; !ok { + selectedFields = append(selectedFields, groupmembership.FieldRole) + fieldSeen[groupmembership.FieldRole] = struct{}{} } - case "kind": - if _, ok := fieldSeen[hush.FieldKind]; !ok { - selectedFields = append(selectedFields, hush.FieldKind) - fieldSeen[hush.FieldKind] = struct{}{} + case "groupID": + if _, ok := fieldSeen[groupmembership.FieldGroupID]; !ok { + selectedFields = append(selectedFields, groupmembership.FieldGroupID) + fieldSeen[groupmembership.FieldGroupID] = struct{}{} } - case "secretName": - if _, ok := fieldSeen[hush.FieldSecretName]; !ok { - selectedFields = append(selectedFields, hush.FieldSecretName) - fieldSeen[hush.FieldSecretName] = struct{}{} + case "userID": + if _, ok := fieldSeen[groupmembership.FieldUserID]; !ok { + selectedFields = append(selectedFields, groupmembership.FieldUserID) + fieldSeen[groupmembership.FieldUserID] = struct{}{} } case "id": case "__typename": @@ -4843,19 +5475,19 @@ func (h *HushQuery) collectField(ctx context.Context, oneNode bool, opCtx *graph } } if !unknownSeen { - h.Select(selectedFields...) + gm.Select(selectedFields...) } return nil } -type hushPaginateArgs struct { +type groupmembershipPaginateArgs struct { first, last *int after, before *Cursor - opts []HushPaginateOption + opts []GroupMembershipPaginateOption } -func newHushPaginateArgs(rv map[string]any) *hushPaginateArgs { - args := &hushPaginateArgs{} +func newGroupMembershipPaginateArgs(rv map[string]any) *groupmembershipPaginateArgs { + args := &groupmembershipPaginateArgs{} if rv == nil { return args } @@ -4871,119 +5503,92 @@ func newHushPaginateArgs(rv map[string]any) *hushPaginateArgs { 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 = &HushOrder{Field: &HushOrderField{}, 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, WithHushOrder(order)) - } - case *HushOrder: - if v != nil { - args.opts = append(args.opts, WithHushOrder(v)) - } - } - } - if v, ok := rv[whereField].(*HushWhereInput); ok { - args.opts = append(args.opts, WithHushFilter(v.Filter)) + if v, ok := rv[whereField].(*GroupMembershipWhereInput); ok { + args.opts = append(args.opts, WithGroupMembershipFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (hh *HushHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*HushHistoryQuery, error) { +func (gmh *GroupMembershipHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupMembershipHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return hh, nil + return gmh, nil } - if err := hh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := gmh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return hh, nil + return gmh, nil } -func (hh *HushHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (gmh *GroupMembershipHistoryQuery) 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(hushhistory.Columns)) - selectedFields = []string{hushhistory.FieldID} + fieldSeen = make(map[string]struct{}, len(groupmembershiphistory.Columns)) + selectedFields = []string{groupmembershiphistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { case "historyTime": - if _, ok := fieldSeen[hushhistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldHistoryTime) - fieldSeen[hushhistory.FieldHistoryTime] = struct{}{} + if _, ok := fieldSeen[groupmembershiphistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, groupmembershiphistory.FieldHistoryTime) + fieldSeen[groupmembershiphistory.FieldHistoryTime] = struct{}{} } case "ref": - if _, ok := fieldSeen[hushhistory.FieldRef]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldRef) - fieldSeen[hushhistory.FieldRef] = struct{}{} + if _, ok := fieldSeen[groupmembershiphistory.FieldRef]; !ok { + selectedFields = append(selectedFields, groupmembershiphistory.FieldRef) + fieldSeen[groupmembershiphistory.FieldRef] = struct{}{} } case "operation": - if _, ok := fieldSeen[hushhistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldOperation) - fieldSeen[hushhistory.FieldOperation] = struct{}{} + if _, ok := fieldSeen[groupmembershiphistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, groupmembershiphistory.FieldOperation) + fieldSeen[groupmembershiphistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[hushhistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldCreatedAt) - fieldSeen[hushhistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[groupmembershiphistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, groupmembershiphistory.FieldCreatedAt) + fieldSeen[groupmembershiphistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[hushhistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldUpdatedAt) - fieldSeen[hushhistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[groupmembershiphistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, groupmembershiphistory.FieldUpdatedAt) + fieldSeen[groupmembershiphistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[hushhistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldCreatedBy) - fieldSeen[hushhistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[groupmembershiphistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, groupmembershiphistory.FieldCreatedBy) + fieldSeen[groupmembershiphistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[hushhistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldUpdatedBy) - fieldSeen[hushhistory.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[groupmembershiphistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, groupmembershiphistory.FieldUpdatedBy) + fieldSeen[groupmembershiphistory.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[hushhistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldDeletedAt) - fieldSeen[hushhistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[groupmembershiphistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, groupmembershiphistory.FieldDeletedAt) + fieldSeen[groupmembershiphistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[hushhistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldDeletedBy) - fieldSeen[hushhistory.FieldDeletedBy] = struct{}{} - } - case "name": - if _, ok := fieldSeen[hushhistory.FieldName]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldName) - fieldSeen[hushhistory.FieldName] = struct{}{} + if _, ok := fieldSeen[groupmembershiphistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, groupmembershiphistory.FieldDeletedBy) + fieldSeen[groupmembershiphistory.FieldDeletedBy] = struct{}{} } - case "description": - if _, ok := fieldSeen[hushhistory.FieldDescription]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldDescription) - fieldSeen[hushhistory.FieldDescription] = struct{}{} + case "role": + if _, ok := fieldSeen[groupmembershiphistory.FieldRole]; !ok { + selectedFields = append(selectedFields, groupmembershiphistory.FieldRole) + fieldSeen[groupmembershiphistory.FieldRole] = struct{}{} } - case "kind": - if _, ok := fieldSeen[hushhistory.FieldKind]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldKind) - fieldSeen[hushhistory.FieldKind] = struct{}{} + case "groupID": + if _, ok := fieldSeen[groupmembershiphistory.FieldGroupID]; !ok { + selectedFields = append(selectedFields, groupmembershiphistory.FieldGroupID) + fieldSeen[groupmembershiphistory.FieldGroupID] = struct{}{} } - case "secretName": - if _, ok := fieldSeen[hushhistory.FieldSecretName]; !ok { - selectedFields = append(selectedFields, hushhistory.FieldSecretName) - fieldSeen[hushhistory.FieldSecretName] = struct{}{} + case "userID": + if _, ok := fieldSeen[groupmembershiphistory.FieldUserID]; !ok { + selectedFields = append(selectedFields, groupmembershiphistory.FieldUserID) + fieldSeen[groupmembershiphistory.FieldUserID] = struct{}{} } case "id": case "__typename": @@ -4992,19 +5597,19 @@ func (hh *HushHistoryQuery) collectField(ctx context.Context, oneNode bool, opCt } } if !unknownSeen { - hh.Select(selectedFields...) + gmh.Select(selectedFields...) } return nil } -type hushhistoryPaginateArgs struct { +type groupmembershiphistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []HushHistoryPaginateOption + opts []GroupMembershipHistoryPaginateOption } -func newHushHistoryPaginateArgs(rv map[string]any) *hushhistoryPaginateArgs { - args := &hushhistoryPaginateArgs{} +func newGroupMembershipHistoryPaginateArgs(rv map[string]any) *groupmembershiphistoryPaginateArgs { + args := &groupmembershiphistoryPaginateArgs{} if rv == nil { return args } @@ -5020,176 +5625,107 @@ func newHushHistoryPaginateArgs(rv map[string]any) *hushhistoryPaginateArgs { 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 = &HushHistoryOrder{Field: &HushHistoryOrderField{}, 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, WithHushHistoryOrder(order)) - } - case *HushHistoryOrder: - if v != nil { - args.opts = append(args.opts, WithHushHistoryOrder(v)) - } - } - } - if v, ok := rv[whereField].(*HushHistoryWhereInput); ok { - args.opts = append(args.opts, WithHushHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*GroupMembershipHistoryWhereInput); ok { + args.opts = append(args.opts, WithGroupMembershipHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (i *IntegrationQuery) CollectFields(ctx context.Context, satisfies ...string) (*IntegrationQuery, error) { +func (gs *GroupSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupSettingQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return i, nil + return gs, nil } - if err := i.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := gs.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return i, nil + return gs, nil } -func (i *IntegrationQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (gs *GroupSettingQuery) 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(integration.Columns)) - selectedFields = []string{integration.FieldID} + fieldSeen = make(map[string]struct{}, len(groupsetting.Columns)) + selectedFields = []string{groupsetting.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: i.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { - return err - } - i.withOwner = query - if _, ok := fieldSeen[integration.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, integration.FieldOwnerID) - fieldSeen[integration.FieldOwnerID] = struct{}{} - } - - case "secrets": - var ( - alias = field.Alias - path = append(path, alias) - query = (&HushClient{config: i.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, hushImplementors)...); err != nil { - return err - } - i.WithNamedSecrets(alias, func(wq *HushQuery) { - *wq = *query - }) - - case "oauth2tokens": - var ( - alias = field.Alias - path = append(path, alias) - query = (&OhAuthTooTokenClient{config: i.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, ohauthtootokenImplementors)...); err != nil { - return err - } - i.WithNamedOauth2tokens(alias, func(wq *OhAuthTooTokenQuery) { - *wq = *query - }) - - case "events": + case "group": var ( alias = field.Alias path = append(path, alias) - query = (&EventClient{config: i.config}).Query() + query = (&GroupClient{config: gs.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { return err } - i.WithNamedEvents(alias, func(wq *EventQuery) { - *wq = *query - }) - - case "webhooks": - var ( - alias = field.Alias - path = append(path, alias) - query = (&WebhookClient{config: i.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, webhookImplementors)...); err != nil { - return err + gs.withGroup = query + if _, ok := fieldSeen[groupsetting.FieldGroupID]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldGroupID) + fieldSeen[groupsetting.FieldGroupID] = struct{}{} } - i.WithNamedWebhooks(alias, func(wq *WebhookQuery) { - *wq = *query - }) case "createdAt": - if _, ok := fieldSeen[integration.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, integration.FieldCreatedAt) - fieldSeen[integration.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[groupsetting.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldCreatedAt) + fieldSeen[groupsetting.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[integration.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, integration.FieldUpdatedAt) - fieldSeen[integration.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[groupsetting.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldUpdatedAt) + fieldSeen[groupsetting.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[integration.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, integration.FieldCreatedBy) - fieldSeen[integration.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[groupsetting.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldCreatedBy) + fieldSeen[groupsetting.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[integration.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, integration.FieldUpdatedBy) - fieldSeen[integration.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[groupsetting.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldUpdatedBy) + fieldSeen[groupsetting.FieldUpdatedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[integration.FieldTags]; !ok { - selectedFields = append(selectedFields, integration.FieldTags) - fieldSeen[integration.FieldTags] = struct{}{} + if _, ok := fieldSeen[groupsetting.FieldTags]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldTags) + fieldSeen[groupsetting.FieldTags] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[integration.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, integration.FieldDeletedAt) - fieldSeen[integration.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[groupsetting.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldDeletedAt) + fieldSeen[groupsetting.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[integration.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, integration.FieldDeletedBy) - fieldSeen[integration.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[groupsetting.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldDeletedBy) + fieldSeen[groupsetting.FieldDeletedBy] = struct{}{} } - case "ownerID": - if _, ok := fieldSeen[integration.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, integration.FieldOwnerID) - fieldSeen[integration.FieldOwnerID] = struct{}{} + case "visibility": + if _, ok := fieldSeen[groupsetting.FieldVisibility]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldVisibility) + fieldSeen[groupsetting.FieldVisibility] = struct{}{} } - case "name": - if _, ok := fieldSeen[integration.FieldName]; !ok { - selectedFields = append(selectedFields, integration.FieldName) - fieldSeen[integration.FieldName] = struct{}{} + case "joinPolicy": + if _, ok := fieldSeen[groupsetting.FieldJoinPolicy]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldJoinPolicy) + fieldSeen[groupsetting.FieldJoinPolicy] = struct{}{} } - case "description": - if _, ok := fieldSeen[integration.FieldDescription]; !ok { - selectedFields = append(selectedFields, integration.FieldDescription) - fieldSeen[integration.FieldDescription] = struct{}{} + case "syncToSlack": + if _, ok := fieldSeen[groupsetting.FieldSyncToSlack]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldSyncToSlack) + fieldSeen[groupsetting.FieldSyncToSlack] = struct{}{} } - case "kind": - if _, ok := fieldSeen[integration.FieldKind]; !ok { - selectedFields = append(selectedFields, integration.FieldKind) - fieldSeen[integration.FieldKind] = struct{}{} + case "syncToGithub": + if _, ok := fieldSeen[groupsetting.FieldSyncToGithub]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldSyncToGithub) + fieldSeen[groupsetting.FieldSyncToGithub] = struct{}{} + } + case "groupID": + if _, ok := fieldSeen[groupsetting.FieldGroupID]; !ok { + selectedFields = append(selectedFields, groupsetting.FieldGroupID) + fieldSeen[groupsetting.FieldGroupID] = struct{}{} } case "id": case "__typename": @@ -5198,19 +5734,19 @@ func (i *IntegrationQuery) collectField(ctx context.Context, oneNode bool, opCtx } } if !unknownSeen { - i.Select(selectedFields...) + gs.Select(selectedFields...) } return nil } -type integrationPaginateArgs struct { +type groupsettingPaginateArgs struct { first, last *int after, before *Cursor - opts []IntegrationPaginateOption + opts []GroupSettingPaginateOption } -func newIntegrationPaginateArgs(rv map[string]any) *integrationPaginateArgs { - args := &integrationPaginateArgs{} +func newGroupSettingPaginateArgs(rv map[string]any) *groupsettingPaginateArgs { + args := &groupsettingPaginateArgs{} if rv == nil { return args } @@ -5226,124 +5762,107 @@ func newIntegrationPaginateArgs(rv map[string]any) *integrationPaginateArgs { 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 = &IntegrationOrder{Field: &IntegrationOrderField{}, 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, WithIntegrationOrder(order)) - } - case *IntegrationOrder: - if v != nil { - args.opts = append(args.opts, WithIntegrationOrder(v)) - } - } - } - if v, ok := rv[whereField].(*IntegrationWhereInput); ok { - args.opts = append(args.opts, WithIntegrationFilter(v.Filter)) + if v, ok := rv[whereField].(*GroupSettingWhereInput); ok { + args.opts = append(args.opts, WithGroupSettingFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (ih *IntegrationHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*IntegrationHistoryQuery, error) { +func (gsh *GroupSettingHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*GroupSettingHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return ih, nil + return gsh, nil } - if err := ih.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := gsh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return ih, nil + return gsh, nil } -func (ih *IntegrationHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (gsh *GroupSettingHistoryQuery) 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(integrationhistory.Columns)) - selectedFields = []string{integrationhistory.FieldID} + fieldSeen = make(map[string]struct{}, len(groupsettinghistory.Columns)) + selectedFields = []string{groupsettinghistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { case "historyTime": - if _, ok := fieldSeen[integrationhistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldHistoryTime) - fieldSeen[integrationhistory.FieldHistoryTime] = struct{}{} + if _, ok := fieldSeen[groupsettinghistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldHistoryTime) + fieldSeen[groupsettinghistory.FieldHistoryTime] = struct{}{} } case "ref": - if _, ok := fieldSeen[integrationhistory.FieldRef]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldRef) - fieldSeen[integrationhistory.FieldRef] = struct{}{} + if _, ok := fieldSeen[groupsettinghistory.FieldRef]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldRef) + fieldSeen[groupsettinghistory.FieldRef] = struct{}{} } case "operation": - if _, ok := fieldSeen[integrationhistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldOperation) - fieldSeen[integrationhistory.FieldOperation] = struct{}{} + if _, ok := fieldSeen[groupsettinghistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldOperation) + fieldSeen[groupsettinghistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[integrationhistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldCreatedAt) - fieldSeen[integrationhistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[groupsettinghistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldCreatedAt) + fieldSeen[groupsettinghistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[integrationhistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldUpdatedAt) - fieldSeen[integrationhistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[groupsettinghistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldUpdatedAt) + fieldSeen[groupsettinghistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[integrationhistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldCreatedBy) - fieldSeen[integrationhistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[groupsettinghistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldCreatedBy) + fieldSeen[groupsettinghistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[integrationhistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldUpdatedBy) - fieldSeen[integrationhistory.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[groupsettinghistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldUpdatedBy) + fieldSeen[groupsettinghistory.FieldUpdatedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[integrationhistory.FieldTags]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldTags) - fieldSeen[integrationhistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[groupsettinghistory.FieldTags]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldTags) + fieldSeen[groupsettinghistory.FieldTags] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[integrationhistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldDeletedAt) - fieldSeen[integrationhistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[groupsettinghistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldDeletedAt) + fieldSeen[groupsettinghistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[integrationhistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldDeletedBy) - fieldSeen[integrationhistory.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[groupsettinghistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldDeletedBy) + fieldSeen[groupsettinghistory.FieldDeletedBy] = struct{}{} } - case "ownerID": - if _, ok := fieldSeen[integrationhistory.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldOwnerID) - fieldSeen[integrationhistory.FieldOwnerID] = struct{}{} + case "visibility": + if _, ok := fieldSeen[groupsettinghistory.FieldVisibility]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldVisibility) + fieldSeen[groupsettinghistory.FieldVisibility] = struct{}{} } - case "name": - if _, ok := fieldSeen[integrationhistory.FieldName]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldName) - fieldSeen[integrationhistory.FieldName] = struct{}{} + case "joinPolicy": + if _, ok := fieldSeen[groupsettinghistory.FieldJoinPolicy]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldJoinPolicy) + fieldSeen[groupsettinghistory.FieldJoinPolicy] = struct{}{} } - case "description": - if _, ok := fieldSeen[integrationhistory.FieldDescription]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldDescription) - fieldSeen[integrationhistory.FieldDescription] = struct{}{} + case "syncToSlack": + if _, ok := fieldSeen[groupsettinghistory.FieldSyncToSlack]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldSyncToSlack) + fieldSeen[groupsettinghistory.FieldSyncToSlack] = struct{}{} } - case "kind": - if _, ok := fieldSeen[integrationhistory.FieldKind]; !ok { - selectedFields = append(selectedFields, integrationhistory.FieldKind) - fieldSeen[integrationhistory.FieldKind] = struct{}{} + case "syncToGithub": + if _, ok := fieldSeen[groupsettinghistory.FieldSyncToGithub]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldSyncToGithub) + fieldSeen[groupsettinghistory.FieldSyncToGithub] = struct{}{} + } + case "groupID": + if _, ok := fieldSeen[groupsettinghistory.FieldGroupID]; !ok { + selectedFields = append(selectedFields, groupsettinghistory.FieldGroupID) + fieldSeen[groupsettinghistory.FieldGroupID] = struct{}{} } case "id": case "__typename": @@ -5352,19 +5871,19 @@ func (ih *IntegrationHistoryQuery) collectField(ctx context.Context, oneNode boo } } if !unknownSeen { - ih.Select(selectedFields...) + gsh.Select(selectedFields...) } return nil } -type integrationhistoryPaginateArgs struct { +type groupsettinghistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []IntegrationHistoryPaginateOption + opts []GroupSettingHistoryPaginateOption } -func newIntegrationHistoryPaginateArgs(rv map[string]any) *integrationhistoryPaginateArgs { - args := &integrationhistoryPaginateArgs{} +func newGroupSettingHistoryPaginateArgs(rv map[string]any) *groupsettinghistoryPaginateArgs { + args := &groupsettinghistoryPaginateArgs{} if rv == nil { return args } @@ -5380,147 +5899,121 @@ func newIntegrationHistoryPaginateArgs(rv map[string]any) *integrationhistoryPag 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 = &IntegrationHistoryOrder{Field: &IntegrationHistoryOrderField{}, 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, WithIntegrationHistoryOrder(order)) - } - case *IntegrationHistoryOrder: - if v != nil { - args.opts = append(args.opts, WithIntegrationHistoryOrder(v)) - } - } - } - if v, ok := rv[whereField].(*IntegrationHistoryWhereInput); ok { - args.opts = append(args.opts, WithIntegrationHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*GroupSettingHistoryWhereInput); ok { + args.opts = append(args.opts, WithGroupSettingHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (i *InviteQuery) CollectFields(ctx context.Context, satisfies ...string) (*InviteQuery, error) { +func (h *HushQuery) CollectFields(ctx context.Context, satisfies ...string) (*HushQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return i, nil + return h, nil } - if err := i.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := h.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return i, nil + return h, nil } -func (i *InviteQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (h *HushQuery) 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(invite.Columns)) - selectedFields = []string{invite.FieldID} + fieldSeen = make(map[string]struct{}, len(hush.Columns)) + selectedFields = []string{hush.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "owner": + case "integrations": var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: i.config}).Query() + query = (&IntegrationClient{config: h.config}).Query() ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, integrationImplementors)...); err != nil { return err } - i.withOwner = query - if _, ok := fieldSeen[invite.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, invite.FieldOwnerID) - fieldSeen[invite.FieldOwnerID] = struct{}{} + h.WithNamedIntegrations(alias, func(wq *IntegrationQuery) { + *wq = *query + }) + + case "organization": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationClient{config: h.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + return err } + h.WithNamedOrganization(alias, func(wq *OrganizationQuery) { + *wq = *query + }) case "events": var ( alias = field.Alias path = append(path, alias) - query = (&EventClient{config: i.config}).Query() + query = (&EventClient{config: h.config}).Query() ) if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { return err } - i.WithNamedEvents(alias, func(wq *EventQuery) { + h.WithNamedEvents(alias, func(wq *EventQuery) { *wq = *query }) case "createdAt": - if _, ok := fieldSeen[invite.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, invite.FieldCreatedAt) - fieldSeen[invite.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[hush.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, hush.FieldCreatedAt) + fieldSeen[hush.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[invite.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, invite.FieldUpdatedAt) - fieldSeen[invite.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[hush.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, hush.FieldUpdatedAt) + fieldSeen[hush.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[invite.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, invite.FieldCreatedBy) - fieldSeen[invite.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[hush.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, hush.FieldCreatedBy) + fieldSeen[hush.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[invite.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, invite.FieldUpdatedBy) - fieldSeen[invite.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[hush.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, hush.FieldUpdatedBy) + fieldSeen[hush.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[invite.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, invite.FieldDeletedAt) - fieldSeen[invite.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[hush.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, hush.FieldDeletedAt) + fieldSeen[hush.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[invite.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, invite.FieldDeletedBy) - fieldSeen[invite.FieldDeletedBy] = struct{}{} - } - case "ownerID": - if _, ok := fieldSeen[invite.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, invite.FieldOwnerID) - fieldSeen[invite.FieldOwnerID] = struct{}{} + if _, ok := fieldSeen[hush.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, hush.FieldDeletedBy) + fieldSeen[hush.FieldDeletedBy] = struct{}{} } - case "expires": - if _, ok := fieldSeen[invite.FieldExpires]; !ok { - selectedFields = append(selectedFields, invite.FieldExpires) - fieldSeen[invite.FieldExpires] = struct{}{} + case "name": + if _, ok := fieldSeen[hush.FieldName]; !ok { + selectedFields = append(selectedFields, hush.FieldName) + fieldSeen[hush.FieldName] = struct{}{} } - case "recipient": - if _, ok := fieldSeen[invite.FieldRecipient]; !ok { - selectedFields = append(selectedFields, invite.FieldRecipient) - fieldSeen[invite.FieldRecipient] = struct{}{} - } - case "status": - if _, ok := fieldSeen[invite.FieldStatus]; !ok { - selectedFields = append(selectedFields, invite.FieldStatus) - fieldSeen[invite.FieldStatus] = struct{}{} - } - case "role": - if _, ok := fieldSeen[invite.FieldRole]; !ok { - selectedFields = append(selectedFields, invite.FieldRole) - fieldSeen[invite.FieldRole] = struct{}{} + case "description": + if _, ok := fieldSeen[hush.FieldDescription]; !ok { + selectedFields = append(selectedFields, hush.FieldDescription) + fieldSeen[hush.FieldDescription] = struct{}{} } - case "sendAttempts": - if _, ok := fieldSeen[invite.FieldSendAttempts]; !ok { - selectedFields = append(selectedFields, invite.FieldSendAttempts) - fieldSeen[invite.FieldSendAttempts] = struct{}{} + case "kind": + if _, ok := fieldSeen[hush.FieldKind]; !ok { + selectedFields = append(selectedFields, hush.FieldKind) + fieldSeen[hush.FieldKind] = struct{}{} } - case "requestorID": - if _, ok := fieldSeen[invite.FieldRequestorID]; !ok { - selectedFields = append(selectedFields, invite.FieldRequestorID) - fieldSeen[invite.FieldRequestorID] = struct{}{} + case "secretName": + if _, ok := fieldSeen[hush.FieldSecretName]; !ok { + selectedFields = append(selectedFields, hush.FieldSecretName) + fieldSeen[hush.FieldSecretName] = struct{}{} } case "id": case "__typename": @@ -5529,19 +6022,19 @@ func (i *InviteQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } } if !unknownSeen { - i.Select(selectedFields...) + h.Select(selectedFields...) } return nil } -type invitePaginateArgs struct { +type hushPaginateArgs struct { first, last *int after, before *Cursor - opts []InvitePaginateOption + opts []HushPaginateOption } -func newInvitePaginateArgs(rv map[string]any) *invitePaginateArgs { - args := &invitePaginateArgs{} +func newHushPaginateArgs(rv map[string]any) *hushPaginateArgs { + args := &hushPaginateArgs{} if rv == nil { return args } @@ -5557,103 +6050,119 @@ func newInvitePaginateArgs(rv map[string]any) *invitePaginateArgs { if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*InviteWhereInput); ok { - args.opts = append(args.opts, WithInviteFilter(v.Filter)) + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case map[string]any: + var ( + err1, err2 error + order = &HushOrder{Field: &HushOrderField{}, 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, WithHushOrder(order)) + } + case *HushOrder: + if v != nil { + args.opts = append(args.opts, WithHushOrder(v)) + } + } + } + if v, ok := rv[whereField].(*HushWhereInput); ok { + args.opts = append(args.opts, WithHushFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (n *NoteQuery) CollectFields(ctx context.Context, satisfies ...string) (*NoteQuery, error) { +func (hh *HushHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*HushHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return n, nil + return hh, nil } - if err := n.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := hh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return n, nil + return hh, nil } -func (n *NoteQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (hh *HushHistoryQuery) 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(note.Columns)) - selectedFields = []string{note.FieldID} + fieldSeen = make(map[string]struct{}, len(hushhistory.Columns)) + selectedFields = []string{hushhistory.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: n.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { - return err + case "historyTime": + if _, ok := fieldSeen[hushhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldHistoryTime) + fieldSeen[hushhistory.FieldHistoryTime] = struct{}{} } - n.withOwner = query - if _, ok := fieldSeen[note.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, note.FieldOwnerID) - fieldSeen[note.FieldOwnerID] = struct{}{} + case "ref": + if _, ok := fieldSeen[hushhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldRef) + fieldSeen[hushhistory.FieldRef] = struct{}{} } - - case "entity": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EntityClient{config: n.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, entityImplementors)...); err != nil { - return err + case "operation": + if _, ok := fieldSeen[hushhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldOperation) + fieldSeen[hushhistory.FieldOperation] = struct{}{} } - n.withEntity = query case "createdAt": - if _, ok := fieldSeen[note.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, note.FieldCreatedAt) - fieldSeen[note.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[hushhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldCreatedAt) + fieldSeen[hushhistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[note.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, note.FieldUpdatedAt) - fieldSeen[note.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[hushhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldUpdatedAt) + fieldSeen[hushhistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[note.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, note.FieldCreatedBy) - fieldSeen[note.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[hushhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldCreatedBy) + fieldSeen[hushhistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[note.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, note.FieldUpdatedBy) - fieldSeen[note.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[hushhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldUpdatedBy) + fieldSeen[hushhistory.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[note.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, note.FieldDeletedAt) - fieldSeen[note.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[hushhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldDeletedAt) + fieldSeen[hushhistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[note.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, note.FieldDeletedBy) - fieldSeen[note.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[hushhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldDeletedBy) + fieldSeen[hushhistory.FieldDeletedBy] = struct{}{} } - case "tags": - if _, ok := fieldSeen[note.FieldTags]; !ok { - selectedFields = append(selectedFields, note.FieldTags) - fieldSeen[note.FieldTags] = struct{}{} + case "name": + if _, ok := fieldSeen[hushhistory.FieldName]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldName) + fieldSeen[hushhistory.FieldName] = struct{}{} } - case "ownerID": - if _, ok := fieldSeen[note.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, note.FieldOwnerID) - fieldSeen[note.FieldOwnerID] = struct{}{} + case "description": + if _, ok := fieldSeen[hushhistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldDescription) + fieldSeen[hushhistory.FieldDescription] = struct{}{} } - case "text": - if _, ok := fieldSeen[note.FieldText]; !ok { - selectedFields = append(selectedFields, note.FieldText) - fieldSeen[note.FieldText] = struct{}{} + case "kind": + if _, ok := fieldSeen[hushhistory.FieldKind]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldKind) + fieldSeen[hushhistory.FieldKind] = struct{}{} + } + case "secretName": + if _, ok := fieldSeen[hushhistory.FieldSecretName]; !ok { + selectedFields = append(selectedFields, hushhistory.FieldSecretName) + fieldSeen[hushhistory.FieldSecretName] = struct{}{} } case "id": case "__typename": @@ -5662,19 +6171,19 @@ func (n *NoteQuery) collectField(ctx context.Context, oneNode bool, opCtx *graph } } if !unknownSeen { - n.Select(selectedFields...) + hh.Select(selectedFields...) } return nil } -type notePaginateArgs struct { +type hushhistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []NotePaginateOption + opts []HushHistoryPaginateOption } -func newNotePaginateArgs(rv map[string]any) *notePaginateArgs { - args := ¬ePaginateArgs{} +func newHushHistoryPaginateArgs(rv map[string]any) *hushhistoryPaginateArgs { + args := &hushhistoryPaginateArgs{} if rv == nil { return args } @@ -5690,92 +6199,176 @@ func newNotePaginateArgs(rv map[string]any) *notePaginateArgs { if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*NoteWhereInput); ok { - args.opts = append(args.opts, WithNoteFilter(v.Filter)) + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case map[string]any: + var ( + err1, err2 error + order = &HushHistoryOrder{Field: &HushHistoryOrderField{}, 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, WithHushHistoryOrder(order)) + } + case *HushHistoryOrder: + if v != nil { + args.opts = append(args.opts, WithHushHistoryOrder(v)) + } + } + } + if v, ok := rv[whereField].(*HushHistoryWhereInput); ok { + args.opts = append(args.opts, WithHushHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (nh *NoteHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*NoteHistoryQuery, error) { +func (i *IntegrationQuery) CollectFields(ctx context.Context, satisfies ...string) (*IntegrationQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return nh, nil + return i, nil } - if err := nh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := i.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return nh, nil + return i, nil } -func (nh *NoteHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (i *IntegrationQuery) 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(notehistory.Columns)) - selectedFields = []string{notehistory.FieldID} + fieldSeen = make(map[string]struct{}, len(integration.Columns)) + selectedFields = []string{integration.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "historyTime": - if _, ok := fieldSeen[notehistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, notehistory.FieldHistoryTime) - fieldSeen[notehistory.FieldHistoryTime] = struct{}{} + + case "owner": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationClient{config: i.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + return err } - case "ref": - if _, ok := fieldSeen[notehistory.FieldRef]; !ok { - selectedFields = append(selectedFields, notehistory.FieldRef) - fieldSeen[notehistory.FieldRef] = struct{}{} + i.withOwner = query + if _, ok := fieldSeen[integration.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, integration.FieldOwnerID) + fieldSeen[integration.FieldOwnerID] = struct{}{} } - case "operation": - if _, ok := fieldSeen[notehistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, notehistory.FieldOperation) - fieldSeen[notehistory.FieldOperation] = struct{}{} + + case "secrets": + var ( + alias = field.Alias + path = append(path, alias) + query = (&HushClient{config: i.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, hushImplementors)...); err != nil { + return err + } + i.WithNamedSecrets(alias, func(wq *HushQuery) { + *wq = *query + }) + + case "oauth2tokens": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OhAuthTooTokenClient{config: i.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, ohauthtootokenImplementors)...); err != nil { + return err + } + i.WithNamedOauth2tokens(alias, func(wq *OhAuthTooTokenQuery) { + *wq = *query + }) + + case "events": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EventClient{config: i.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { + return err + } + i.WithNamedEvents(alias, func(wq *EventQuery) { + *wq = *query + }) + + case "webhooks": + var ( + alias = field.Alias + path = append(path, alias) + query = (&WebhookClient{config: i.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, webhookImplementors)...); err != nil { + return err } + i.WithNamedWebhooks(alias, func(wq *WebhookQuery) { + *wq = *query + }) case "createdAt": - if _, ok := fieldSeen[notehistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, notehistory.FieldCreatedAt) - fieldSeen[notehistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[integration.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, integration.FieldCreatedAt) + fieldSeen[integration.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[notehistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, notehistory.FieldUpdatedAt) - fieldSeen[notehistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[integration.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, integration.FieldUpdatedAt) + fieldSeen[integration.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[notehistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, notehistory.FieldCreatedBy) - fieldSeen[notehistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[integration.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, integration.FieldCreatedBy) + fieldSeen[integration.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[notehistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, notehistory.FieldUpdatedBy) - fieldSeen[notehistory.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[integration.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, integration.FieldUpdatedBy) + fieldSeen[integration.FieldUpdatedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[integration.FieldTags]; !ok { + selectedFields = append(selectedFields, integration.FieldTags) + fieldSeen[integration.FieldTags] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[notehistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, notehistory.FieldDeletedAt) - fieldSeen[notehistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[integration.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, integration.FieldDeletedAt) + fieldSeen[integration.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[notehistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, notehistory.FieldDeletedBy) - fieldSeen[notehistory.FieldDeletedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[notehistory.FieldTags]; !ok { - selectedFields = append(selectedFields, notehistory.FieldTags) - fieldSeen[notehistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[integration.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, integration.FieldDeletedBy) + fieldSeen[integration.FieldDeletedBy] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[notehistory.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, notehistory.FieldOwnerID) - fieldSeen[notehistory.FieldOwnerID] = struct{}{} + if _, ok := fieldSeen[integration.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, integration.FieldOwnerID) + fieldSeen[integration.FieldOwnerID] = struct{}{} } - case "text": - if _, ok := fieldSeen[notehistory.FieldText]; !ok { - selectedFields = append(selectedFields, notehistory.FieldText) - fieldSeen[notehistory.FieldText] = struct{}{} + case "name": + if _, ok := fieldSeen[integration.FieldName]; !ok { + selectedFields = append(selectedFields, integration.FieldName) + fieldSeen[integration.FieldName] = struct{}{} + } + case "description": + if _, ok := fieldSeen[integration.FieldDescription]; !ok { + selectedFields = append(selectedFields, integration.FieldDescription) + fieldSeen[integration.FieldDescription] = struct{}{} + } + case "kind": + if _, ok := fieldSeen[integration.FieldKind]; !ok { + selectedFields = append(selectedFields, integration.FieldKind) + fieldSeen[integration.FieldKind] = struct{}{} } case "id": case "__typename": @@ -5784,19 +6377,19 @@ func (nh *NoteHistoryQuery) collectField(ctx context.Context, oneNode bool, opCt } } if !unknownSeen { - nh.Select(selectedFields...) + i.Select(selectedFields...) } return nil } -type notehistoryPaginateArgs struct { +type integrationPaginateArgs struct { first, last *int after, before *Cursor - opts []NoteHistoryPaginateOption + opts []IntegrationPaginateOption } -func newNoteHistoryPaginateArgs(rv map[string]any) *notehistoryPaginateArgs { - args := ¬ehistoryPaginateArgs{} +func newIntegrationPaginateArgs(rv map[string]any) *integrationPaginateArgs { + args := &integrationPaginateArgs{} if rv == nil { return args } @@ -5812,132 +6405,124 @@ func newNoteHistoryPaginateArgs(rv map[string]any) *notehistoryPaginateArgs { if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*NoteHistoryWhereInput); ok { - args.opts = append(args.opts, WithNoteHistoryFilter(v.Filter)) + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case map[string]any: + var ( + err1, err2 error + order = &IntegrationOrder{Field: &IntegrationOrderField{}, 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, WithIntegrationOrder(order)) + } + case *IntegrationOrder: + if v != nil { + args.opts = append(args.opts, WithIntegrationOrder(v)) + } + } + } + if v, ok := rv[whereField].(*IntegrationWhereInput); ok { + args.opts = append(args.opts, WithIntegrationFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (op *OauthProviderQuery) CollectFields(ctx context.Context, satisfies ...string) (*OauthProviderQuery, error) { +func (ih *IntegrationHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*IntegrationHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return op, nil + return ih, nil } - if err := op.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := ih.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return op, nil + return ih, nil } -func (op *OauthProviderQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (ih *IntegrationHistoryQuery) 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(oauthprovider.Columns)) - selectedFields = []string{oauthprovider.FieldID} + fieldSeen = make(map[string]struct{}, len(integrationhistory.Columns)) + selectedFields = []string{integrationhistory.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: op.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { - return err + case "historyTime": + if _, ok := fieldSeen[integrationhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldHistoryTime) + fieldSeen[integrationhistory.FieldHistoryTime] = struct{}{} } - op.withOwner = query - if _, ok := fieldSeen[oauthprovider.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldOwnerID) - fieldSeen[oauthprovider.FieldOwnerID] = struct{}{} + case "ref": + if _, ok := fieldSeen[integrationhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldRef) + fieldSeen[integrationhistory.FieldRef] = struct{}{} + } + case "operation": + if _, ok := fieldSeen[integrationhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldOperation) + fieldSeen[integrationhistory.FieldOperation] = struct{}{} } case "createdAt": - if _, ok := fieldSeen[oauthprovider.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldCreatedAt) - fieldSeen[oauthprovider.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[integrationhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldCreatedAt) + fieldSeen[integrationhistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[oauthprovider.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldUpdatedAt) - fieldSeen[oauthprovider.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[integrationhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldUpdatedAt) + fieldSeen[integrationhistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[oauthprovider.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldCreatedBy) - fieldSeen[oauthprovider.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[integrationhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldCreatedBy) + fieldSeen[integrationhistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[oauthprovider.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldUpdatedBy) - fieldSeen[oauthprovider.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[integrationhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldUpdatedBy) + fieldSeen[integrationhistory.FieldUpdatedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[oauthprovider.FieldTags]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldTags) - fieldSeen[oauthprovider.FieldTags] = struct{}{} + if _, ok := fieldSeen[integrationhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldTags) + fieldSeen[integrationhistory.FieldTags] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[oauthprovider.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldDeletedAt) - fieldSeen[oauthprovider.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[integrationhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldDeletedAt) + fieldSeen[integrationhistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[oauthprovider.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldDeletedBy) - fieldSeen[oauthprovider.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[integrationhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldDeletedBy) + fieldSeen[integrationhistory.FieldDeletedBy] = struct{}{} } case "ownerID": - if _, ok := fieldSeen[oauthprovider.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldOwnerID) - fieldSeen[oauthprovider.FieldOwnerID] = struct{}{} + if _, ok := fieldSeen[integrationhistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldOwnerID) + fieldSeen[integrationhistory.FieldOwnerID] = struct{}{} } case "name": - if _, ok := fieldSeen[oauthprovider.FieldName]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldName) - fieldSeen[oauthprovider.FieldName] = struct{}{} + if _, ok := fieldSeen[integrationhistory.FieldName]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldName) + fieldSeen[integrationhistory.FieldName] = struct{}{} } - case "clientID": - if _, ok := fieldSeen[oauthprovider.FieldClientID]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldClientID) - fieldSeen[oauthprovider.FieldClientID] = struct{}{} - } - case "clientSecret": - if _, ok := fieldSeen[oauthprovider.FieldClientSecret]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldClientSecret) - fieldSeen[oauthprovider.FieldClientSecret] = struct{}{} - } - case "redirectURL": - if _, ok := fieldSeen[oauthprovider.FieldRedirectURL]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldRedirectURL) - fieldSeen[oauthprovider.FieldRedirectURL] = struct{}{} - } - case "scopes": - if _, ok := fieldSeen[oauthprovider.FieldScopes]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldScopes) - fieldSeen[oauthprovider.FieldScopes] = struct{}{} - } - case "authURL": - if _, ok := fieldSeen[oauthprovider.FieldAuthURL]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldAuthURL) - fieldSeen[oauthprovider.FieldAuthURL] = struct{}{} - } - case "tokenURL": - if _, ok := fieldSeen[oauthprovider.FieldTokenURL]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldTokenURL) - fieldSeen[oauthprovider.FieldTokenURL] = struct{}{} - } - case "authStyle": - if _, ok := fieldSeen[oauthprovider.FieldAuthStyle]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldAuthStyle) - fieldSeen[oauthprovider.FieldAuthStyle] = struct{}{} + case "description": + if _, ok := fieldSeen[integrationhistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldDescription) + fieldSeen[integrationhistory.FieldDescription] = struct{}{} } - case "infoURL": - if _, ok := fieldSeen[oauthprovider.FieldInfoURL]; !ok { - selectedFields = append(selectedFields, oauthprovider.FieldInfoURL) - fieldSeen[oauthprovider.FieldInfoURL] = struct{}{} + case "kind": + if _, ok := fieldSeen[integrationhistory.FieldKind]; !ok { + selectedFields = append(selectedFields, integrationhistory.FieldKind) + fieldSeen[integrationhistory.FieldKind] = struct{}{} } case "id": case "__typename": @@ -5946,19 +6531,19 @@ func (op *OauthProviderQuery) collectField(ctx context.Context, oneNode bool, op } } if !unknownSeen { - op.Select(selectedFields...) + ih.Select(selectedFields...) } return nil } -type oauthproviderPaginateArgs struct { +type integrationhistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []OauthProviderPaginateOption + opts []IntegrationHistoryPaginateOption } -func newOauthProviderPaginateArgs(rv map[string]any) *oauthproviderPaginateArgs { - args := &oauthproviderPaginateArgs{} +func newIntegrationHistoryPaginateArgs(rv map[string]any) *integrationhistoryPaginateArgs { + args := &integrationhistoryPaginateArgs{} if rv == nil { return args } @@ -5974,132 +6559,181 @@ func newOauthProviderPaginateArgs(rv map[string]any) *oauthproviderPaginateArgs if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*OauthProviderWhereInput); ok { - args.opts = append(args.opts, WithOauthProviderFilter(v.Filter)) + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case map[string]any: + var ( + err1, err2 error + order = &IntegrationHistoryOrder{Field: &IntegrationHistoryOrderField{}, 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, WithIntegrationHistoryOrder(order)) + } + case *IntegrationHistoryOrder: + if v != nil { + args.opts = append(args.opts, WithIntegrationHistoryOrder(v)) + } + } + } + if v, ok := rv[whereField].(*IntegrationHistoryWhereInput); ok { + args.opts = append(args.opts, WithIntegrationHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (oph *OauthProviderHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*OauthProviderHistoryQuery, error) { +func (ip *InternalPolicyQuery) CollectFields(ctx context.Context, satisfies ...string) (*InternalPolicyQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return oph, nil + return ip, nil } - if err := oph.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := ip.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return oph, nil + return ip, nil } -func (oph *OauthProviderHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (ip *InternalPolicyQuery) 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(oauthproviderhistory.Columns)) - selectedFields = []string{oauthproviderhistory.FieldID} + fieldSeen = make(map[string]struct{}, len(internalpolicy.Columns)) + selectedFields = []string{internalpolicy.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "historyTime": - if _, ok := fieldSeen[oauthproviderhistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldHistoryTime) - fieldSeen[oauthproviderhistory.FieldHistoryTime] = struct{}{} + + case "controlobjectives": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ControlObjectiveClient{config: ip.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, controlobjectiveImplementors)...); err != nil { + return err } - case "ref": - if _, ok := fieldSeen[oauthproviderhistory.FieldRef]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldRef) - fieldSeen[oauthproviderhistory.FieldRef] = struct{}{} + ip.WithNamedControlobjectives(alias, func(wq *ControlObjectiveQuery) { + *wq = *query + }) + + case "controls": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ControlClient{config: ip.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, controlImplementors)...); err != nil { + return err } - case "operation": - if _, ok := fieldSeen[oauthproviderhistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldOperation) - fieldSeen[oauthproviderhistory.FieldOperation] = struct{}{} + ip.WithNamedControls(alias, func(wq *ControlQuery) { + *wq = *query + }) + + case "procedures": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ProcedureClient{config: ip.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, procedureImplementors)...); err != nil { + return err + } + ip.WithNamedProcedures(alias, func(wq *ProcedureQuery) { + *wq = *query + }) + + case "narratives": + var ( + alias = field.Alias + path = append(path, alias) + query = (&NarrativeClient{config: ip.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, narrativeImplementors)...); err != nil { + return err } + ip.WithNamedNarratives(alias, func(wq *NarrativeQuery) { + *wq = *query + }) case "createdAt": - if _, ok := fieldSeen[oauthproviderhistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldCreatedAt) - fieldSeen[oauthproviderhistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[internalpolicy.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldCreatedAt) + fieldSeen[internalpolicy.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[oauthproviderhistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldUpdatedAt) - fieldSeen[oauthproviderhistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[internalpolicy.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldUpdatedAt) + fieldSeen[internalpolicy.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[oauthproviderhistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldCreatedBy) - fieldSeen[oauthproviderhistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[internalpolicy.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldCreatedBy) + fieldSeen[internalpolicy.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[oauthproviderhistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldUpdatedBy) - fieldSeen[oauthproviderhistory.FieldUpdatedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[oauthproviderhistory.FieldTags]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldTags) - fieldSeen[oauthproviderhistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[internalpolicy.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldUpdatedBy) + fieldSeen[internalpolicy.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[oauthproviderhistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldDeletedAt) - fieldSeen[oauthproviderhistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[internalpolicy.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldDeletedAt) + fieldSeen[internalpolicy.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[oauthproviderhistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldDeletedBy) - fieldSeen[oauthproviderhistory.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[internalpolicy.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldDeletedBy) + fieldSeen[internalpolicy.FieldDeletedBy] = struct{}{} } - case "ownerID": - if _, ok := fieldSeen[oauthproviderhistory.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldOwnerID) - fieldSeen[oauthproviderhistory.FieldOwnerID] = struct{}{} + case "tags": + if _, ok := fieldSeen[internalpolicy.FieldTags]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldTags) + fieldSeen[internalpolicy.FieldTags] = struct{}{} } case "name": - if _, ok := fieldSeen[oauthproviderhistory.FieldName]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldName) - fieldSeen[oauthproviderhistory.FieldName] = struct{}{} - } - case "clientID": - if _, ok := fieldSeen[oauthproviderhistory.FieldClientID]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldClientID) - fieldSeen[oauthproviderhistory.FieldClientID] = struct{}{} + if _, ok := fieldSeen[internalpolicy.FieldName]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldName) + fieldSeen[internalpolicy.FieldName] = struct{}{} } - case "clientSecret": - if _, ok := fieldSeen[oauthproviderhistory.FieldClientSecret]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldClientSecret) - fieldSeen[oauthproviderhistory.FieldClientSecret] = struct{}{} + case "description": + if _, ok := fieldSeen[internalpolicy.FieldDescription]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldDescription) + fieldSeen[internalpolicy.FieldDescription] = struct{}{} } - case "redirectURL": - if _, ok := fieldSeen[oauthproviderhistory.FieldRedirectURL]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldRedirectURL) - fieldSeen[oauthproviderhistory.FieldRedirectURL] = struct{}{} + case "status": + if _, ok := fieldSeen[internalpolicy.FieldStatus]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldStatus) + fieldSeen[internalpolicy.FieldStatus] = struct{}{} } - case "scopes": - if _, ok := fieldSeen[oauthproviderhistory.FieldScopes]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldScopes) - fieldSeen[oauthproviderhistory.FieldScopes] = struct{}{} + case "policyType": + if _, ok := fieldSeen[internalpolicy.FieldPolicyType]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldPolicyType) + fieldSeen[internalpolicy.FieldPolicyType] = struct{}{} } - case "authURL": - if _, ok := fieldSeen[oauthproviderhistory.FieldAuthURL]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldAuthURL) - fieldSeen[oauthproviderhistory.FieldAuthURL] = struct{}{} + case "version": + if _, ok := fieldSeen[internalpolicy.FieldVersion]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldVersion) + fieldSeen[internalpolicy.FieldVersion] = struct{}{} } - case "tokenURL": - if _, ok := fieldSeen[oauthproviderhistory.FieldTokenURL]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldTokenURL) - fieldSeen[oauthproviderhistory.FieldTokenURL] = struct{}{} + case "purposeAndScope": + if _, ok := fieldSeen[internalpolicy.FieldPurposeAndScope]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldPurposeAndScope) + fieldSeen[internalpolicy.FieldPurposeAndScope] = struct{}{} } - case "authStyle": - if _, ok := fieldSeen[oauthproviderhistory.FieldAuthStyle]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldAuthStyle) - fieldSeen[oauthproviderhistory.FieldAuthStyle] = struct{}{} + case "background": + if _, ok := fieldSeen[internalpolicy.FieldBackground]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldBackground) + fieldSeen[internalpolicy.FieldBackground] = struct{}{} } - case "infoURL": - if _, ok := fieldSeen[oauthproviderhistory.FieldInfoURL]; !ok { - selectedFields = append(selectedFields, oauthproviderhistory.FieldInfoURL) - fieldSeen[oauthproviderhistory.FieldInfoURL] = struct{}{} + case "details": + if _, ok := fieldSeen[internalpolicy.FieldDetails]; !ok { + selectedFields = append(selectedFields, internalpolicy.FieldDetails) + fieldSeen[internalpolicy.FieldDetails] = struct{}{} } case "id": case "__typename": @@ -6108,19 +6742,19 @@ func (oph *OauthProviderHistoryQuery) collectField(ctx context.Context, oneNode } } if !unknownSeen { - oph.Select(selectedFields...) + ip.Select(selectedFields...) } return nil } -type oauthproviderhistoryPaginateArgs struct { +type internalpolicyPaginateArgs struct { first, last *int after, before *Cursor - opts []OauthProviderHistoryPaginateOption + opts []InternalPolicyPaginateOption } -func newOauthProviderHistoryPaginateArgs(rv map[string]any) *oauthproviderhistoryPaginateArgs { - args := &oauthproviderhistoryPaginateArgs{} +func newInternalPolicyPaginateArgs(rv map[string]any) *internalpolicyPaginateArgs { + args := &internalpolicyPaginateArgs{} if rv == nil { return args } @@ -6136,123 +6770,122 @@ func newOauthProviderHistoryPaginateArgs(rv map[string]any) *oauthproviderhistor if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*OauthProviderHistoryWhereInput); ok { - args.opts = append(args.opts, WithOauthProviderHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*InternalPolicyWhereInput); ok { + args.opts = append(args.opts, WithInternalPolicyFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (oatt *OhAuthTooTokenQuery) CollectFields(ctx context.Context, satisfies ...string) (*OhAuthTooTokenQuery, error) { +func (iph *InternalPolicyHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*InternalPolicyHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return oatt, nil + return iph, nil } - if err := oatt.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := iph.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return oatt, nil + return iph, nil } -func (oatt *OhAuthTooTokenQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (iph *InternalPolicyHistoryQuery) 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(ohauthtootoken.Columns)) - selectedFields = []string{ohauthtootoken.FieldID} + fieldSeen = make(map[string]struct{}, len(internalpolicyhistory.Columns)) + selectedFields = []string{internalpolicyhistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - - case "integration": - var ( - alias = field.Alias - path = append(path, alias) - query = (&IntegrationClient{config: oatt.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, integrationImplementors)...); err != nil { - return err + case "historyTime": + if _, ok := fieldSeen[internalpolicyhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldHistoryTime) + fieldSeen[internalpolicyhistory.FieldHistoryTime] = struct{}{} } - oatt.WithNamedIntegration(alias, func(wq *IntegrationQuery) { - *wq = *query - }) - - case "events": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EventClient{config: oatt.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { - return err + case "ref": + if _, ok := fieldSeen[internalpolicyhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldRef) + fieldSeen[internalpolicyhistory.FieldRef] = struct{}{} } - oatt.WithNamedEvents(alias, func(wq *EventQuery) { - *wq = *query - }) - case "tags": - if _, ok := fieldSeen[ohauthtootoken.FieldTags]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldTags) - fieldSeen[ohauthtootoken.FieldTags] = struct{}{} + case "operation": + if _, ok := fieldSeen[internalpolicyhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldOperation) + fieldSeen[internalpolicyhistory.FieldOperation] = struct{}{} } - case "clientID": - if _, ok := fieldSeen[ohauthtootoken.FieldClientID]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldClientID) - fieldSeen[ohauthtootoken.FieldClientID] = struct{}{} + case "createdAt": + if _, ok := fieldSeen[internalpolicyhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldCreatedAt) + fieldSeen[internalpolicyhistory.FieldCreatedAt] = struct{}{} } - case "scopes": - if _, ok := fieldSeen[ohauthtootoken.FieldScopes]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldScopes) - fieldSeen[ohauthtootoken.FieldScopes] = struct{}{} + case "updatedAt": + if _, ok := fieldSeen[internalpolicyhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldUpdatedAt) + fieldSeen[internalpolicyhistory.FieldUpdatedAt] = struct{}{} } - case "nonce": - if _, ok := fieldSeen[ohauthtootoken.FieldNonce]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldNonce) - fieldSeen[ohauthtootoken.FieldNonce] = struct{}{} + case "createdBy": + if _, ok := fieldSeen[internalpolicyhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldCreatedBy) + fieldSeen[internalpolicyhistory.FieldCreatedBy] = struct{}{} } - case "claimsUserID": - if _, ok := fieldSeen[ohauthtootoken.FieldClaimsUserID]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldClaimsUserID) - fieldSeen[ohauthtootoken.FieldClaimsUserID] = struct{}{} + case "updatedBy": + if _, ok := fieldSeen[internalpolicyhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldUpdatedBy) + fieldSeen[internalpolicyhistory.FieldUpdatedBy] = struct{}{} } - case "claimsUsername": - if _, ok := fieldSeen[ohauthtootoken.FieldClaimsUsername]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldClaimsUsername) - fieldSeen[ohauthtootoken.FieldClaimsUsername] = struct{}{} + case "deletedAt": + if _, ok := fieldSeen[internalpolicyhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldDeletedAt) + fieldSeen[internalpolicyhistory.FieldDeletedAt] = struct{}{} } - case "claimsEmail": - if _, ok := fieldSeen[ohauthtootoken.FieldClaimsEmail]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldClaimsEmail) - fieldSeen[ohauthtootoken.FieldClaimsEmail] = struct{}{} + case "deletedBy": + if _, ok := fieldSeen[internalpolicyhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldDeletedBy) + fieldSeen[internalpolicyhistory.FieldDeletedBy] = struct{}{} } - case "claimsEmailVerified": - if _, ok := fieldSeen[ohauthtootoken.FieldClaimsEmailVerified]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldClaimsEmailVerified) - fieldSeen[ohauthtootoken.FieldClaimsEmailVerified] = struct{}{} + case "tags": + if _, ok := fieldSeen[internalpolicyhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldTags) + fieldSeen[internalpolicyhistory.FieldTags] = struct{}{} } - case "claimsGroups": - if _, ok := fieldSeen[ohauthtootoken.FieldClaimsGroups]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldClaimsGroups) - fieldSeen[ohauthtootoken.FieldClaimsGroups] = struct{}{} + case "name": + if _, ok := fieldSeen[internalpolicyhistory.FieldName]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldName) + fieldSeen[internalpolicyhistory.FieldName] = struct{}{} } - case "claimsPreferredUsername": - if _, ok := fieldSeen[ohauthtootoken.FieldClaimsPreferredUsername]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldClaimsPreferredUsername) - fieldSeen[ohauthtootoken.FieldClaimsPreferredUsername] = struct{}{} + case "description": + if _, ok := fieldSeen[internalpolicyhistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldDescription) + fieldSeen[internalpolicyhistory.FieldDescription] = struct{}{} } - case "connectorID": - if _, ok := fieldSeen[ohauthtootoken.FieldConnectorID]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldConnectorID) - fieldSeen[ohauthtootoken.FieldConnectorID] = struct{}{} + case "status": + if _, ok := fieldSeen[internalpolicyhistory.FieldStatus]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldStatus) + fieldSeen[internalpolicyhistory.FieldStatus] = struct{}{} } - case "connectorData": - if _, ok := fieldSeen[ohauthtootoken.FieldConnectorData]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldConnectorData) - fieldSeen[ohauthtootoken.FieldConnectorData] = struct{}{} + case "policyType": + if _, ok := fieldSeen[internalpolicyhistory.FieldPolicyType]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldPolicyType) + fieldSeen[internalpolicyhistory.FieldPolicyType] = struct{}{} } - case "lastUsed": - if _, ok := fieldSeen[ohauthtootoken.FieldLastUsed]; !ok { - selectedFields = append(selectedFields, ohauthtootoken.FieldLastUsed) - fieldSeen[ohauthtootoken.FieldLastUsed] = struct{}{} + case "version": + if _, ok := fieldSeen[internalpolicyhistory.FieldVersion]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldVersion) + fieldSeen[internalpolicyhistory.FieldVersion] = struct{}{} + } + case "purposeAndScope": + if _, ok := fieldSeen[internalpolicyhistory.FieldPurposeAndScope]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldPurposeAndScope) + fieldSeen[internalpolicyhistory.FieldPurposeAndScope] = struct{}{} + } + case "background": + if _, ok := fieldSeen[internalpolicyhistory.FieldBackground]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldBackground) + fieldSeen[internalpolicyhistory.FieldBackground] = struct{}{} + } + case "details": + if _, ok := fieldSeen[internalpolicyhistory.FieldDetails]; !ok { + selectedFields = append(selectedFields, internalpolicyhistory.FieldDetails) + fieldSeen[internalpolicyhistory.FieldDetails] = struct{}{} } case "id": case "__typename": @@ -6261,19 +6894,19 @@ func (oatt *OhAuthTooTokenQuery) collectField(ctx context.Context, oneNode bool, } } if !unknownSeen { - oatt.Select(selectedFields...) + iph.Select(selectedFields...) } return nil } -type ohauthtootokenPaginateArgs struct { +type internalpolicyhistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []OhAuthTooTokenPaginateOption + opts []InternalPolicyHistoryPaginateOption } -func newOhAuthTooTokenPaginateArgs(rv map[string]any) *ohauthtootokenPaginateArgs { - args := &ohauthtootokenPaginateArgs{} +func newInternalPolicyHistoryPaginateArgs(rv map[string]any) *internalpolicyhistoryPaginateArgs { + args := &internalpolicyhistoryPaginateArgs{} if rv == nil { return args } @@ -6289,120 +6922,125 @@ func newOhAuthTooTokenPaginateArgs(rv map[string]any) *ohauthtootokenPaginateArg if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*OhAuthTooTokenWhereInput); ok { - args.opts = append(args.opts, WithOhAuthTooTokenFilter(v.Filter)) + if v, ok := rv[whereField].(*InternalPolicyHistoryWhereInput); ok { + args.opts = append(args.opts, WithInternalPolicyHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (om *OrgMembershipQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrgMembershipQuery, error) { +func (i *InviteQuery) CollectFields(ctx context.Context, satisfies ...string) (*InviteQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return om, nil + return i, nil } - if err := om.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := i.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return om, nil + return i, nil } -func (om *OrgMembershipQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (i *InviteQuery) 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(orgmembership.Columns)) - selectedFields = []string{orgmembership.FieldID} + fieldSeen = make(map[string]struct{}, len(invite.Columns)) + selectedFields = []string{invite.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "organization": + case "owner": var ( alias = field.Alias path = append(path, alias) - query = (&OrganizationClient{config: om.config}).Query() + query = (&OrganizationClient{config: i.config}).Query() ) if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { return err } - om.withOrganization = query - if _, ok := fieldSeen[orgmembership.FieldOrganizationID]; !ok { - selectedFields = append(selectedFields, orgmembership.FieldOrganizationID) - fieldSeen[orgmembership.FieldOrganizationID] = struct{}{} - } - - case "user": - var ( - alias = field.Alias - path = append(path, alias) - query = (&UserClient{config: om.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { - return err - } - om.withUser = query - if _, ok := fieldSeen[orgmembership.FieldUserID]; !ok { - selectedFields = append(selectedFields, orgmembership.FieldUserID) - fieldSeen[orgmembership.FieldUserID] = struct{}{} + i.withOwner = query + if _, ok := fieldSeen[invite.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, invite.FieldOwnerID) + fieldSeen[invite.FieldOwnerID] = struct{}{} } case "events": var ( alias = field.Alias path = append(path, alias) - query = (&EventClient{config: om.config}).Query() + query = (&EventClient{config: i.config}).Query() ) if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { return err } - om.WithNamedEvents(alias, func(wq *EventQuery) { + i.WithNamedEvents(alias, func(wq *EventQuery) { *wq = *query }) case "createdAt": - if _, ok := fieldSeen[orgmembership.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, orgmembership.FieldCreatedAt) - fieldSeen[orgmembership.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[invite.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, invite.FieldCreatedAt) + fieldSeen[invite.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[orgmembership.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, orgmembership.FieldUpdatedAt) - fieldSeen[orgmembership.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[invite.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, invite.FieldUpdatedAt) + fieldSeen[invite.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[orgmembership.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, orgmembership.FieldCreatedBy) - fieldSeen[orgmembership.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[invite.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, invite.FieldCreatedBy) + fieldSeen[invite.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[orgmembership.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, orgmembership.FieldUpdatedBy) - fieldSeen[orgmembership.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[invite.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, invite.FieldUpdatedBy) + fieldSeen[invite.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[orgmembership.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, orgmembership.FieldDeletedAt) - fieldSeen[orgmembership.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[invite.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, invite.FieldDeletedAt) + fieldSeen[invite.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[orgmembership.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, orgmembership.FieldDeletedBy) - fieldSeen[orgmembership.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[invite.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, invite.FieldDeletedBy) + fieldSeen[invite.FieldDeletedBy] = struct{}{} + } + case "ownerID": + if _, ok := fieldSeen[invite.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, invite.FieldOwnerID) + fieldSeen[invite.FieldOwnerID] = struct{}{} + } + case "expires": + if _, ok := fieldSeen[invite.FieldExpires]; !ok { + selectedFields = append(selectedFields, invite.FieldExpires) + fieldSeen[invite.FieldExpires] = struct{}{} + } + case "recipient": + if _, ok := fieldSeen[invite.FieldRecipient]; !ok { + selectedFields = append(selectedFields, invite.FieldRecipient) + fieldSeen[invite.FieldRecipient] = struct{}{} + } + case "status": + if _, ok := fieldSeen[invite.FieldStatus]; !ok { + selectedFields = append(selectedFields, invite.FieldStatus) + fieldSeen[invite.FieldStatus] = struct{}{} } case "role": - if _, ok := fieldSeen[orgmembership.FieldRole]; !ok { - selectedFields = append(selectedFields, orgmembership.FieldRole) - fieldSeen[orgmembership.FieldRole] = struct{}{} + if _, ok := fieldSeen[invite.FieldRole]; !ok { + selectedFields = append(selectedFields, invite.FieldRole) + fieldSeen[invite.FieldRole] = struct{}{} } - case "organizationID": - if _, ok := fieldSeen[orgmembership.FieldOrganizationID]; !ok { - selectedFields = append(selectedFields, orgmembership.FieldOrganizationID) - fieldSeen[orgmembership.FieldOrganizationID] = struct{}{} + case "sendAttempts": + if _, ok := fieldSeen[invite.FieldSendAttempts]; !ok { + selectedFields = append(selectedFields, invite.FieldSendAttempts) + fieldSeen[invite.FieldSendAttempts] = struct{}{} } - case "userID": - if _, ok := fieldSeen[orgmembership.FieldUserID]; !ok { - selectedFields = append(selectedFields, orgmembership.FieldUserID) - fieldSeen[orgmembership.FieldUserID] = struct{}{} + case "requestorID": + if _, ok := fieldSeen[invite.FieldRequestorID]; !ok { + selectedFields = append(selectedFields, invite.FieldRequestorID) + fieldSeen[invite.FieldRequestorID] = struct{}{} } case "id": case "__typename": @@ -6411,19 +7049,19 @@ func (om *OrgMembershipQuery) collectField(ctx context.Context, oneNode bool, op } } if !unknownSeen { - om.Select(selectedFields...) + i.Select(selectedFields...) } return nil } -type orgmembershipPaginateArgs struct { +type invitePaginateArgs struct { first, last *int after, before *Cursor - opts []OrgMembershipPaginateOption + opts []InvitePaginateOption } -func newOrgMembershipPaginateArgs(rv map[string]any) *orgmembershipPaginateArgs { - args := &orgmembershipPaginateArgs{} +func newInvitePaginateArgs(rv map[string]any) *invitePaginateArgs { + args := &invitePaginateArgs{} if rv == nil { return args } @@ -6439,92 +7077,139 @@ func newOrgMembershipPaginateArgs(rv map[string]any) *orgmembershipPaginateArgs if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*OrgMembershipWhereInput); ok { - args.opts = append(args.opts, WithOrgMembershipFilter(v.Filter)) + if v, ok := rv[whereField].(*InviteWhereInput); ok { + args.opts = append(args.opts, WithInviteFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (omh *OrgMembershipHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrgMembershipHistoryQuery, error) { +func (n *NarrativeQuery) CollectFields(ctx context.Context, satisfies ...string) (*NarrativeQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return omh, nil + return n, nil } - if err := omh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := n.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return omh, nil + return n, nil } -func (omh *OrgMembershipHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (n *NarrativeQuery) 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(orgmembershiphistory.Columns)) - selectedFields = []string{orgmembershiphistory.FieldID} + fieldSeen = make(map[string]struct{}, len(narrative.Columns)) + selectedFields = []string{narrative.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "historyTime": - if _, ok := fieldSeen[orgmembershiphistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, orgmembershiphistory.FieldHistoryTime) - fieldSeen[orgmembershiphistory.FieldHistoryTime] = struct{}{} + + case "policy": + var ( + alias = field.Alias + path = append(path, alias) + query = (&InternalPolicyClient{config: n.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, internalpolicyImplementors)...); err != nil { + return err } - case "ref": - if _, ok := fieldSeen[orgmembershiphistory.FieldRef]; !ok { - selectedFields = append(selectedFields, orgmembershiphistory.FieldRef) - fieldSeen[orgmembershiphistory.FieldRef] = struct{}{} + n.WithNamedPolicy(alias, func(wq *InternalPolicyQuery) { + *wq = *query + }) + + case "control": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ControlClient{config: n.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, controlImplementors)...); err != nil { + return err } - case "operation": - if _, ok := fieldSeen[orgmembershiphistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, orgmembershiphistory.FieldOperation) - fieldSeen[orgmembershiphistory.FieldOperation] = struct{}{} + n.WithNamedControl(alias, func(wq *ControlQuery) { + *wq = *query + }) + + case "procedure": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ProcedureClient{config: n.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, procedureImplementors)...); err != nil { + return err + } + n.WithNamedProcedure(alias, func(wq *ProcedureQuery) { + *wq = *query + }) + + case "controlobjective": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ControlObjectiveClient{config: n.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, controlobjectiveImplementors)...); err != nil { + return err } + n.WithNamedControlobjective(alias, func(wq *ControlObjectiveQuery) { + *wq = *query + }) case "createdAt": - if _, ok := fieldSeen[orgmembershiphistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, orgmembershiphistory.FieldCreatedAt) - fieldSeen[orgmembershiphistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[narrative.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, narrative.FieldCreatedAt) + fieldSeen[narrative.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[orgmembershiphistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, orgmembershiphistory.FieldUpdatedAt) - fieldSeen[orgmembershiphistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[narrative.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, narrative.FieldUpdatedAt) + fieldSeen[narrative.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[orgmembershiphistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, orgmembershiphistory.FieldCreatedBy) - fieldSeen[orgmembershiphistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[narrative.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, narrative.FieldCreatedBy) + fieldSeen[narrative.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[orgmembershiphistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, orgmembershiphistory.FieldUpdatedBy) - fieldSeen[orgmembershiphistory.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[narrative.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, narrative.FieldUpdatedBy) + fieldSeen[narrative.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[orgmembershiphistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, orgmembershiphistory.FieldDeletedAt) - fieldSeen[orgmembershiphistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[narrative.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, narrative.FieldDeletedAt) + fieldSeen[narrative.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[orgmembershiphistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, orgmembershiphistory.FieldDeletedBy) - fieldSeen[orgmembershiphistory.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[narrative.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, narrative.FieldDeletedBy) + fieldSeen[narrative.FieldDeletedBy] = struct{}{} } - case "role": - if _, ok := fieldSeen[orgmembershiphistory.FieldRole]; !ok { - selectedFields = append(selectedFields, orgmembershiphistory.FieldRole) - fieldSeen[orgmembershiphistory.FieldRole] = struct{}{} + case "tags": + if _, ok := fieldSeen[narrative.FieldTags]; !ok { + selectedFields = append(selectedFields, narrative.FieldTags) + fieldSeen[narrative.FieldTags] = struct{}{} } - case "organizationID": - if _, ok := fieldSeen[orgmembershiphistory.FieldOrganizationID]; !ok { - selectedFields = append(selectedFields, orgmembershiphistory.FieldOrganizationID) - fieldSeen[orgmembershiphistory.FieldOrganizationID] = struct{}{} + case "name": + if _, ok := fieldSeen[narrative.FieldName]; !ok { + selectedFields = append(selectedFields, narrative.FieldName) + fieldSeen[narrative.FieldName] = struct{}{} } - case "userID": - if _, ok := fieldSeen[orgmembershiphistory.FieldUserID]; !ok { - selectedFields = append(selectedFields, orgmembershiphistory.FieldUserID) - fieldSeen[orgmembershiphistory.FieldUserID] = struct{}{} + case "description": + if _, ok := fieldSeen[narrative.FieldDescription]; !ok { + selectedFields = append(selectedFields, narrative.FieldDescription) + fieldSeen[narrative.FieldDescription] = struct{}{} + } + case "satisfies": + if _, ok := fieldSeen[narrative.FieldSatisfies]; !ok { + selectedFields = append(selectedFields, narrative.FieldSatisfies) + fieldSeen[narrative.FieldSatisfies] = struct{}{} + } + case "details": + if _, ok := fieldSeen[narrative.FieldDetails]; !ok { + selectedFields = append(selectedFields, narrative.FieldDetails) + fieldSeen[narrative.FieldDetails] = struct{}{} } case "id": case "__typename": @@ -6533,19 +7218,19 @@ func (omh *OrgMembershipHistoryQuery) collectField(ctx context.Context, oneNode } } if !unknownSeen { - omh.Select(selectedFields...) + n.Select(selectedFields...) } return nil } -type orgmembershiphistoryPaginateArgs struct { +type narrativePaginateArgs struct { first, last *int after, before *Cursor - opts []OrgMembershipHistoryPaginateOption + opts []NarrativePaginateOption } -func newOrgMembershipHistoryPaginateArgs(rv map[string]any) *orgmembershiphistoryPaginateArgs { - args := &orgmembershiphistoryPaginateArgs{} +func newNarrativePaginateArgs(rv map[string]any) *narrativePaginateArgs { + args := &narrativePaginateArgs{} if rv == nil { return args } @@ -6561,524 +7246,3043 @@ func newOrgMembershipHistoryPaginateArgs(rv map[string]any) *orgmembershiphistor if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*OrgMembershipHistoryWhereInput); ok { - args.opts = append(args.opts, WithOrgMembershipHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*NarrativeWhereInput); ok { + args.opts = append(args.opts, WithNarrativeFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (o *OrganizationQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationQuery, error) { +func (nh *NarrativeHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*NarrativeHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return o, nil + return nh, nil } - if err := o.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := nh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return o, nil + return nh, nil } -func (o *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (nh *NarrativeHistoryQuery) 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(organization.Columns)) - selectedFields = []string{organization.FieldID} + fieldSeen = make(map[string]struct{}, len(narrativehistory.Columns)) + selectedFields = []string{narrativehistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - - case "parent": - var ( - alias = field.Alias - path = append(path, alias) - query = (&OrganizationClient{config: o.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { - return err + case "historyTime": + if _, ok := fieldSeen[narrativehistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldHistoryTime) + fieldSeen[narrativehistory.FieldHistoryTime] = struct{}{} } - o.withParent = query - if _, ok := fieldSeen[organization.FieldParentOrganizationID]; !ok { - selectedFields = append(selectedFields, organization.FieldParentOrganizationID) - fieldSeen[organization.FieldParentOrganizationID] = struct{}{} + case "ref": + if _, ok := fieldSeen[narrativehistory.FieldRef]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldRef) + fieldSeen[narrativehistory.FieldRef] = struct{}{} } - - case "children": - var ( - alias = field.Alias - path = append(path, alias) - query = (&OrganizationClient{config: o.config}).Query() - ) - args := newOrganizationPaginateArgs(fieldArgs(ctx, new(OrganizationWhereInput), path...)) - if err := validateFirstLast(args.first, args.last); err != nil { - return fmt.Errorf("validate first and last in path %q: %w", path, err) + case "operation": + if _, ok := fieldSeen[narrativehistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldOperation) + fieldSeen[narrativehistory.FieldOperation] = struct{}{} } - pager, err := newOrganizationPager(args.opts, args.last != nil) - if err != nil { - return fmt.Errorf("create new pager in path %q: %w", path, err) + case "createdAt": + if _, ok := fieldSeen[narrativehistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldCreatedAt) + fieldSeen[narrativehistory.FieldCreatedAt] = struct{}{} } - if query, err = pager.applyFilter(query); err != nil { - return err + case "updatedAt": + if _, ok := fieldSeen[narrativehistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldUpdatedAt) + fieldSeen[narrativehistory.FieldUpdatedAt] = struct{}{} } - 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() - o.loadTotal = append(o.loadTotal, func(ctx context.Context, nodes []*Organization) error { - ids := make([]driver.Value, len(nodes)) - for i := range nodes { - ids[i] = nodes[i].ID - } - var v []struct { - NodeID string `sql:"parent_organization_id"` - Count int `sql:"count"` - } - query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ChildrenColumn), ids...)) - }) - if err := query.GroupBy(organization.ChildrenColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { - return err - } - m := make(map[string]int, len(v)) - for i := range v { - m[v[i].NodeID] = v[i].Count - } - for i := range nodes { - n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[1] == nil { - nodes[i].Edges.totalCount[1] = make(map[string]int) - } - nodes[i].Edges.totalCount[1][alias] = n - } - return nil - }) - } else { - o.loadTotal = append(o.loadTotal, func(_ context.Context, nodes []*Organization) error { - for i := range nodes { - n := len(nodes[i].Edges.Children) - 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 - }) - } + case "createdBy": + if _, ok := fieldSeen[narrativehistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldCreatedBy) + fieldSeen[narrativehistory.FieldCreatedBy] = struct{}{} } - if ignoredEdges || (args.first != nil && *args.first == 0) || (args.last != nil && *args.last == 0) { - continue + case "updatedBy": + if _, ok := fieldSeen[narrativehistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldUpdatedBy) + fieldSeen[narrativehistory.FieldUpdatedBy] = struct{}{} } - if query, err = pager.applyCursors(query, args.after, args.before); err != nil { - return err + case "deletedAt": + if _, ok := fieldSeen[narrativehistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldDeletedAt) + fieldSeen[narrativehistory.FieldDeletedAt] = struct{}{} } - path = append(path, edgesField, nodeField) - if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { - return err - } + case "deletedBy": + if _, ok := fieldSeen[narrativehistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldDeletedBy) + fieldSeen[narrativehistory.FieldDeletedBy] = struct{}{} } - if limit := paginateLimit(args.first, args.last); limit > 0 { - if oneNode { - pager.applyOrder(query.Limit(limit)) - } else { - modify := entgql.LimitPerRow(organization.ChildrenColumn, limit, pager.orderExpr(query)) - query.modifiers = append(query.modifiers, modify) - } - } else { - query = pager.applyOrder(query) + case "tags": + if _, ok := fieldSeen[narrativehistory.FieldTags]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldTags) + fieldSeen[narrativehistory.FieldTags] = struct{}{} } - o.WithNamedChildren(alias, func(wq *OrganizationQuery) { - *wq = *query - }) + case "name": + if _, ok := fieldSeen[narrativehistory.FieldName]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldName) + fieldSeen[narrativehistory.FieldName] = struct{}{} + } + case "description": + if _, ok := fieldSeen[narrativehistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldDescription) + fieldSeen[narrativehistory.FieldDescription] = struct{}{} + } + case "satisfies": + if _, ok := fieldSeen[narrativehistory.FieldSatisfies]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldSatisfies) + fieldSeen[narrativehistory.FieldSatisfies] = struct{}{} + } + case "details": + if _, ok := fieldSeen[narrativehistory.FieldDetails]; !ok { + selectedFields = append(selectedFields, narrativehistory.FieldDetails) + fieldSeen[narrativehistory.FieldDetails] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + nh.Select(selectedFields...) + } + return nil +} - case "groups": +type narrativehistoryPaginateArgs struct { + first, last *int + after, before *Cursor + opts []NarrativeHistoryPaginateOption +} + +func newNarrativeHistoryPaginateArgs(rv map[string]any) *narrativehistoryPaginateArgs { + args := &narrativehistoryPaginateArgs{} + 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[whereField].(*NarrativeHistoryWhereInput); ok { + args.opts = append(args.opts, WithNarrativeHistoryFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (n *NoteQuery) CollectFields(ctx context.Context, satisfies ...string) (*NoteQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return n, nil + } + if err := n.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return n, nil +} + +func (n *NoteQuery) 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(note.Columns)) + selectedFields = []string{note.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + + case "owner": var ( alias = field.Alias path = append(path, alias) - query = (&GroupClient{config: o.config}).Query() + query = (&OrganizationClient{config: n.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { return err } - o.WithNamedGroups(alias, func(wq *GroupQuery) { - *wq = *query - }) + n.withOwner = query + if _, ok := fieldSeen[note.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, note.FieldOwnerID) + fieldSeen[note.FieldOwnerID] = struct{}{} + } - case "templates": + case "entity": var ( alias = field.Alias path = append(path, alias) - query = (&TemplateClient{config: o.config}).Query() + query = (&EntityClient{config: n.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, templateImplementors)...); err != nil { + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, entityImplementors)...); err != nil { return err } - o.WithNamedTemplates(alias, func(wq *TemplateQuery) { - *wq = *query - }) + n.withEntity = query - case "integrations": + case "subcontrols": var ( alias = field.Alias path = append(path, alias) - query = (&IntegrationClient{config: o.config}).Query() + query = (&SubcontrolClient{config: n.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, integrationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, subcontrolImplementors)...); err != nil { return err } - o.WithNamedIntegrations(alias, func(wq *IntegrationQuery) { + n.WithNamedSubcontrols(alias, func(wq *SubcontrolQuery) { *wq = *query }) - - case "setting": - var ( - alias = field.Alias - path = append(path, alias) - query = (&OrganizationSettingClient{config: o.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationsettingImplementors)...); err != nil { - return err + case "createdAt": + if _, ok := fieldSeen[note.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, note.FieldCreatedAt) + fieldSeen[note.FieldCreatedAt] = struct{}{} } - o.withSetting = query - - case "documentdata": - var ( - alias = field.Alias - path = append(path, alias) - query = (&DocumentDataClient{config: o.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, documentdataImplementors)...); err != nil { - return err + case "updatedAt": + if _, ok := fieldSeen[note.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, note.FieldUpdatedAt) + fieldSeen[note.FieldUpdatedAt] = struct{}{} } - o.WithNamedDocumentdata(alias, func(wq *DocumentDataQuery) { - *wq = *query - }) + case "createdBy": + if _, ok := fieldSeen[note.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, note.FieldCreatedBy) + fieldSeen[note.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[note.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, note.FieldUpdatedBy) + fieldSeen[note.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[note.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, note.FieldDeletedAt) + fieldSeen[note.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[note.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, note.FieldDeletedBy) + fieldSeen[note.FieldDeletedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[note.FieldTags]; !ok { + selectedFields = append(selectedFields, note.FieldTags) + fieldSeen[note.FieldTags] = struct{}{} + } + case "ownerID": + if _, ok := fieldSeen[note.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, note.FieldOwnerID) + fieldSeen[note.FieldOwnerID] = struct{}{} + } + case "text": + if _, ok := fieldSeen[note.FieldText]; !ok { + selectedFields = append(selectedFields, note.FieldText) + fieldSeen[note.FieldText] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + n.Select(selectedFields...) + } + return nil +} - case "entitlements": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EntitlementClient{config: o.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementImplementors)...); err != nil { - return err +type notePaginateArgs struct { + first, last *int + after, before *Cursor + opts []NotePaginateOption +} + +func newNotePaginateArgs(rv map[string]any) *notePaginateArgs { + args := ¬ePaginateArgs{} + 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[whereField].(*NoteWhereInput); ok { + args.opts = append(args.opts, WithNoteFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (nh *NoteHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*NoteHistoryQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return nh, nil + } + if err := nh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return nh, nil +} + +func (nh *NoteHistoryQuery) 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(notehistory.Columns)) + selectedFields = []string{notehistory.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + case "historyTime": + if _, ok := fieldSeen[notehistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, notehistory.FieldHistoryTime) + fieldSeen[notehistory.FieldHistoryTime] = struct{}{} } - o.WithNamedEntitlements(alias, func(wq *EntitlementQuery) { - *wq = *query - }) + case "ref": + if _, ok := fieldSeen[notehistory.FieldRef]; !ok { + selectedFields = append(selectedFields, notehistory.FieldRef) + fieldSeen[notehistory.FieldRef] = struct{}{} + } + case "operation": + if _, ok := fieldSeen[notehistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, notehistory.FieldOperation) + fieldSeen[notehistory.FieldOperation] = struct{}{} + } + case "createdAt": + if _, ok := fieldSeen[notehistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, notehistory.FieldCreatedAt) + fieldSeen[notehistory.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[notehistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, notehistory.FieldUpdatedAt) + fieldSeen[notehistory.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[notehistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, notehistory.FieldCreatedBy) + fieldSeen[notehistory.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[notehistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, notehistory.FieldUpdatedBy) + fieldSeen[notehistory.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[notehistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, notehistory.FieldDeletedAt) + fieldSeen[notehistory.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[notehistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, notehistory.FieldDeletedBy) + fieldSeen[notehistory.FieldDeletedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[notehistory.FieldTags]; !ok { + selectedFields = append(selectedFields, notehistory.FieldTags) + fieldSeen[notehistory.FieldTags] = struct{}{} + } + case "ownerID": + if _, ok := fieldSeen[notehistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, notehistory.FieldOwnerID) + fieldSeen[notehistory.FieldOwnerID] = struct{}{} + } + case "text": + if _, ok := fieldSeen[notehistory.FieldText]; !ok { + selectedFields = append(selectedFields, notehistory.FieldText) + fieldSeen[notehistory.FieldText] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + nh.Select(selectedFields...) + } + return nil +} - case "organizationEntitlement": +type notehistoryPaginateArgs struct { + first, last *int + after, before *Cursor + opts []NoteHistoryPaginateOption +} + +func newNoteHistoryPaginateArgs(rv map[string]any) *notehistoryPaginateArgs { + args := ¬ehistoryPaginateArgs{} + 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[whereField].(*NoteHistoryWhereInput); ok { + args.opts = append(args.opts, WithNoteHistoryFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (op *OauthProviderQuery) CollectFields(ctx context.Context, satisfies ...string) (*OauthProviderQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return op, nil + } + if err := op.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return op, nil +} + +func (op *OauthProviderQuery) 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(oauthprovider.Columns)) + selectedFields = []string{oauthprovider.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + + case "owner": var ( alias = field.Alias path = append(path, alias) - query = (&EntitlementClient{config: o.config}).Query() + query = (&OrganizationClient{config: op.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementImplementors)...); err != nil { + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { return err } - o.WithNamedOrganizationEntitlement(alias, func(wq *EntitlementQuery) { - *wq = *query - }) - - case "personalAccessTokens": - var ( - alias = field.Alias - path = append(path, alias) - query = (&PersonalAccessTokenClient{config: o.config}).Query() - ) + op.withOwner = query + if _, ok := fieldSeen[oauthprovider.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldOwnerID) + fieldSeen[oauthprovider.FieldOwnerID] = struct{}{} + } + case "createdAt": + if _, ok := fieldSeen[oauthprovider.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldCreatedAt) + fieldSeen[oauthprovider.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[oauthprovider.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldUpdatedAt) + fieldSeen[oauthprovider.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[oauthprovider.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldCreatedBy) + fieldSeen[oauthprovider.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[oauthprovider.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldUpdatedBy) + fieldSeen[oauthprovider.FieldUpdatedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[oauthprovider.FieldTags]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldTags) + fieldSeen[oauthprovider.FieldTags] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[oauthprovider.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldDeletedAt) + fieldSeen[oauthprovider.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[oauthprovider.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldDeletedBy) + fieldSeen[oauthprovider.FieldDeletedBy] = struct{}{} + } + case "ownerID": + if _, ok := fieldSeen[oauthprovider.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldOwnerID) + fieldSeen[oauthprovider.FieldOwnerID] = struct{}{} + } + case "name": + if _, ok := fieldSeen[oauthprovider.FieldName]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldName) + fieldSeen[oauthprovider.FieldName] = struct{}{} + } + case "clientID": + if _, ok := fieldSeen[oauthprovider.FieldClientID]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldClientID) + fieldSeen[oauthprovider.FieldClientID] = struct{}{} + } + case "clientSecret": + if _, ok := fieldSeen[oauthprovider.FieldClientSecret]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldClientSecret) + fieldSeen[oauthprovider.FieldClientSecret] = struct{}{} + } + case "redirectURL": + if _, ok := fieldSeen[oauthprovider.FieldRedirectURL]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldRedirectURL) + fieldSeen[oauthprovider.FieldRedirectURL] = struct{}{} + } + case "scopes": + if _, ok := fieldSeen[oauthprovider.FieldScopes]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldScopes) + fieldSeen[oauthprovider.FieldScopes] = struct{}{} + } + case "authURL": + if _, ok := fieldSeen[oauthprovider.FieldAuthURL]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldAuthURL) + fieldSeen[oauthprovider.FieldAuthURL] = struct{}{} + } + case "tokenURL": + if _, ok := fieldSeen[oauthprovider.FieldTokenURL]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldTokenURL) + fieldSeen[oauthprovider.FieldTokenURL] = struct{}{} + } + case "authStyle": + if _, ok := fieldSeen[oauthprovider.FieldAuthStyle]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldAuthStyle) + fieldSeen[oauthprovider.FieldAuthStyle] = struct{}{} + } + case "infoURL": + if _, ok := fieldSeen[oauthprovider.FieldInfoURL]; !ok { + selectedFields = append(selectedFields, oauthprovider.FieldInfoURL) + fieldSeen[oauthprovider.FieldInfoURL] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + op.Select(selectedFields...) + } + return nil +} + +type oauthproviderPaginateArgs struct { + first, last *int + after, before *Cursor + opts []OauthProviderPaginateOption +} + +func newOauthProviderPaginateArgs(rv map[string]any) *oauthproviderPaginateArgs { + args := &oauthproviderPaginateArgs{} + 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[whereField].(*OauthProviderWhereInput); ok { + args.opts = append(args.opts, WithOauthProviderFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (oph *OauthProviderHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*OauthProviderHistoryQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return oph, nil + } + if err := oph.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return oph, nil +} + +func (oph *OauthProviderHistoryQuery) 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(oauthproviderhistory.Columns)) + selectedFields = []string{oauthproviderhistory.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + case "historyTime": + if _, ok := fieldSeen[oauthproviderhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldHistoryTime) + fieldSeen[oauthproviderhistory.FieldHistoryTime] = struct{}{} + } + case "ref": + if _, ok := fieldSeen[oauthproviderhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldRef) + fieldSeen[oauthproviderhistory.FieldRef] = struct{}{} + } + case "operation": + if _, ok := fieldSeen[oauthproviderhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldOperation) + fieldSeen[oauthproviderhistory.FieldOperation] = struct{}{} + } + case "createdAt": + if _, ok := fieldSeen[oauthproviderhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldCreatedAt) + fieldSeen[oauthproviderhistory.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[oauthproviderhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldUpdatedAt) + fieldSeen[oauthproviderhistory.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[oauthproviderhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldCreatedBy) + fieldSeen[oauthproviderhistory.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[oauthproviderhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldUpdatedBy) + fieldSeen[oauthproviderhistory.FieldUpdatedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[oauthproviderhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldTags) + fieldSeen[oauthproviderhistory.FieldTags] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[oauthproviderhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldDeletedAt) + fieldSeen[oauthproviderhistory.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[oauthproviderhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldDeletedBy) + fieldSeen[oauthproviderhistory.FieldDeletedBy] = struct{}{} + } + case "ownerID": + if _, ok := fieldSeen[oauthproviderhistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldOwnerID) + fieldSeen[oauthproviderhistory.FieldOwnerID] = struct{}{} + } + case "name": + if _, ok := fieldSeen[oauthproviderhistory.FieldName]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldName) + fieldSeen[oauthproviderhistory.FieldName] = struct{}{} + } + case "clientID": + if _, ok := fieldSeen[oauthproviderhistory.FieldClientID]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldClientID) + fieldSeen[oauthproviderhistory.FieldClientID] = struct{}{} + } + case "clientSecret": + if _, ok := fieldSeen[oauthproviderhistory.FieldClientSecret]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldClientSecret) + fieldSeen[oauthproviderhistory.FieldClientSecret] = struct{}{} + } + case "redirectURL": + if _, ok := fieldSeen[oauthproviderhistory.FieldRedirectURL]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldRedirectURL) + fieldSeen[oauthproviderhistory.FieldRedirectURL] = struct{}{} + } + case "scopes": + if _, ok := fieldSeen[oauthproviderhistory.FieldScopes]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldScopes) + fieldSeen[oauthproviderhistory.FieldScopes] = struct{}{} + } + case "authURL": + if _, ok := fieldSeen[oauthproviderhistory.FieldAuthURL]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldAuthURL) + fieldSeen[oauthproviderhistory.FieldAuthURL] = struct{}{} + } + case "tokenURL": + if _, ok := fieldSeen[oauthproviderhistory.FieldTokenURL]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldTokenURL) + fieldSeen[oauthproviderhistory.FieldTokenURL] = struct{}{} + } + case "authStyle": + if _, ok := fieldSeen[oauthproviderhistory.FieldAuthStyle]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldAuthStyle) + fieldSeen[oauthproviderhistory.FieldAuthStyle] = struct{}{} + } + case "infoURL": + if _, ok := fieldSeen[oauthproviderhistory.FieldInfoURL]; !ok { + selectedFields = append(selectedFields, oauthproviderhistory.FieldInfoURL) + fieldSeen[oauthproviderhistory.FieldInfoURL] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + oph.Select(selectedFields...) + } + return nil +} + +type oauthproviderhistoryPaginateArgs struct { + first, last *int + after, before *Cursor + opts []OauthProviderHistoryPaginateOption +} + +func newOauthProviderHistoryPaginateArgs(rv map[string]any) *oauthproviderhistoryPaginateArgs { + args := &oauthproviderhistoryPaginateArgs{} + 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[whereField].(*OauthProviderHistoryWhereInput); ok { + args.opts = append(args.opts, WithOauthProviderHistoryFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (oatt *OhAuthTooTokenQuery) CollectFields(ctx context.Context, satisfies ...string) (*OhAuthTooTokenQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return oatt, nil + } + if err := oatt.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return oatt, nil +} + +func (oatt *OhAuthTooTokenQuery) 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(ohauthtootoken.Columns)) + selectedFields = []string{ohauthtootoken.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + + case "integration": + var ( + alias = field.Alias + path = append(path, alias) + query = (&IntegrationClient{config: oatt.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, integrationImplementors)...); err != nil { + return err + } + oatt.WithNamedIntegration(alias, func(wq *IntegrationQuery) { + *wq = *query + }) + + case "events": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EventClient{config: oatt.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { + return err + } + oatt.WithNamedEvents(alias, func(wq *EventQuery) { + *wq = *query + }) + case "tags": + if _, ok := fieldSeen[ohauthtootoken.FieldTags]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldTags) + fieldSeen[ohauthtootoken.FieldTags] = struct{}{} + } + case "clientID": + if _, ok := fieldSeen[ohauthtootoken.FieldClientID]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldClientID) + fieldSeen[ohauthtootoken.FieldClientID] = struct{}{} + } + case "scopes": + if _, ok := fieldSeen[ohauthtootoken.FieldScopes]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldScopes) + fieldSeen[ohauthtootoken.FieldScopes] = struct{}{} + } + case "nonce": + if _, ok := fieldSeen[ohauthtootoken.FieldNonce]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldNonce) + fieldSeen[ohauthtootoken.FieldNonce] = struct{}{} + } + case "claimsUserID": + if _, ok := fieldSeen[ohauthtootoken.FieldClaimsUserID]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldClaimsUserID) + fieldSeen[ohauthtootoken.FieldClaimsUserID] = struct{}{} + } + case "claimsUsername": + if _, ok := fieldSeen[ohauthtootoken.FieldClaimsUsername]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldClaimsUsername) + fieldSeen[ohauthtootoken.FieldClaimsUsername] = struct{}{} + } + case "claimsEmail": + if _, ok := fieldSeen[ohauthtootoken.FieldClaimsEmail]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldClaimsEmail) + fieldSeen[ohauthtootoken.FieldClaimsEmail] = struct{}{} + } + case "claimsEmailVerified": + if _, ok := fieldSeen[ohauthtootoken.FieldClaimsEmailVerified]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldClaimsEmailVerified) + fieldSeen[ohauthtootoken.FieldClaimsEmailVerified] = struct{}{} + } + case "claimsGroups": + if _, ok := fieldSeen[ohauthtootoken.FieldClaimsGroups]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldClaimsGroups) + fieldSeen[ohauthtootoken.FieldClaimsGroups] = struct{}{} + } + case "claimsPreferredUsername": + if _, ok := fieldSeen[ohauthtootoken.FieldClaimsPreferredUsername]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldClaimsPreferredUsername) + fieldSeen[ohauthtootoken.FieldClaimsPreferredUsername] = struct{}{} + } + case "connectorID": + if _, ok := fieldSeen[ohauthtootoken.FieldConnectorID]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldConnectorID) + fieldSeen[ohauthtootoken.FieldConnectorID] = struct{}{} + } + case "connectorData": + if _, ok := fieldSeen[ohauthtootoken.FieldConnectorData]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldConnectorData) + fieldSeen[ohauthtootoken.FieldConnectorData] = struct{}{} + } + case "lastUsed": + if _, ok := fieldSeen[ohauthtootoken.FieldLastUsed]; !ok { + selectedFields = append(selectedFields, ohauthtootoken.FieldLastUsed) + fieldSeen[ohauthtootoken.FieldLastUsed] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + oatt.Select(selectedFields...) + } + return nil +} + +type ohauthtootokenPaginateArgs struct { + first, last *int + after, before *Cursor + opts []OhAuthTooTokenPaginateOption +} + +func newOhAuthTooTokenPaginateArgs(rv map[string]any) *ohauthtootokenPaginateArgs { + args := &ohauthtootokenPaginateArgs{} + 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[whereField].(*OhAuthTooTokenWhereInput); ok { + args.opts = append(args.opts, WithOhAuthTooTokenFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (om *OrgMembershipQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrgMembershipQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return om, nil + } + if err := om.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return om, nil +} + +func (om *OrgMembershipQuery) 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(orgmembership.Columns)) + selectedFields = []string{orgmembership.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + + case "organization": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationClient{config: om.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + return err + } + om.withOrganization = query + if _, ok := fieldSeen[orgmembership.FieldOrganizationID]; !ok { + selectedFields = append(selectedFields, orgmembership.FieldOrganizationID) + fieldSeen[orgmembership.FieldOrganizationID] = struct{}{} + } + + case "user": + var ( + alias = field.Alias + path = append(path, alias) + query = (&UserClient{config: om.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { + return err + } + om.withUser = query + if _, ok := fieldSeen[orgmembership.FieldUserID]; !ok { + selectedFields = append(selectedFields, orgmembership.FieldUserID) + fieldSeen[orgmembership.FieldUserID] = struct{}{} + } + + case "events": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EventClient{config: om.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { + return err + } + om.WithNamedEvents(alias, func(wq *EventQuery) { + *wq = *query + }) + case "createdAt": + if _, ok := fieldSeen[orgmembership.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, orgmembership.FieldCreatedAt) + fieldSeen[orgmembership.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[orgmembership.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, orgmembership.FieldUpdatedAt) + fieldSeen[orgmembership.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[orgmembership.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, orgmembership.FieldCreatedBy) + fieldSeen[orgmembership.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[orgmembership.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, orgmembership.FieldUpdatedBy) + fieldSeen[orgmembership.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[orgmembership.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, orgmembership.FieldDeletedAt) + fieldSeen[orgmembership.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[orgmembership.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, orgmembership.FieldDeletedBy) + fieldSeen[orgmembership.FieldDeletedBy] = struct{}{} + } + case "role": + if _, ok := fieldSeen[orgmembership.FieldRole]; !ok { + selectedFields = append(selectedFields, orgmembership.FieldRole) + fieldSeen[orgmembership.FieldRole] = struct{}{} + } + case "organizationID": + if _, ok := fieldSeen[orgmembership.FieldOrganizationID]; !ok { + selectedFields = append(selectedFields, orgmembership.FieldOrganizationID) + fieldSeen[orgmembership.FieldOrganizationID] = struct{}{} + } + case "userID": + if _, ok := fieldSeen[orgmembership.FieldUserID]; !ok { + selectedFields = append(selectedFields, orgmembership.FieldUserID) + fieldSeen[orgmembership.FieldUserID] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + om.Select(selectedFields...) + } + return nil +} + +type orgmembershipPaginateArgs struct { + first, last *int + after, before *Cursor + opts []OrgMembershipPaginateOption +} + +func newOrgMembershipPaginateArgs(rv map[string]any) *orgmembershipPaginateArgs { + args := &orgmembershipPaginateArgs{} + 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[whereField].(*OrgMembershipWhereInput); ok { + args.opts = append(args.opts, WithOrgMembershipFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (omh *OrgMembershipHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrgMembershipHistoryQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return omh, nil + } + if err := omh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return omh, nil +} + +func (omh *OrgMembershipHistoryQuery) 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(orgmembershiphistory.Columns)) + selectedFields = []string{orgmembershiphistory.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + case "historyTime": + if _, ok := fieldSeen[orgmembershiphistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, orgmembershiphistory.FieldHistoryTime) + fieldSeen[orgmembershiphistory.FieldHistoryTime] = struct{}{} + } + case "ref": + if _, ok := fieldSeen[orgmembershiphistory.FieldRef]; !ok { + selectedFields = append(selectedFields, orgmembershiphistory.FieldRef) + fieldSeen[orgmembershiphistory.FieldRef] = struct{}{} + } + case "operation": + if _, ok := fieldSeen[orgmembershiphistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, orgmembershiphistory.FieldOperation) + fieldSeen[orgmembershiphistory.FieldOperation] = struct{}{} + } + case "createdAt": + if _, ok := fieldSeen[orgmembershiphistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, orgmembershiphistory.FieldCreatedAt) + fieldSeen[orgmembershiphistory.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[orgmembershiphistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, orgmembershiphistory.FieldUpdatedAt) + fieldSeen[orgmembershiphistory.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[orgmembershiphistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, orgmembershiphistory.FieldCreatedBy) + fieldSeen[orgmembershiphistory.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[orgmembershiphistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, orgmembershiphistory.FieldUpdatedBy) + fieldSeen[orgmembershiphistory.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[orgmembershiphistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, orgmembershiphistory.FieldDeletedAt) + fieldSeen[orgmembershiphistory.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[orgmembershiphistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, orgmembershiphistory.FieldDeletedBy) + fieldSeen[orgmembershiphistory.FieldDeletedBy] = struct{}{} + } + case "role": + if _, ok := fieldSeen[orgmembershiphistory.FieldRole]; !ok { + selectedFields = append(selectedFields, orgmembershiphistory.FieldRole) + fieldSeen[orgmembershiphistory.FieldRole] = struct{}{} + } + case "organizationID": + if _, ok := fieldSeen[orgmembershiphistory.FieldOrganizationID]; !ok { + selectedFields = append(selectedFields, orgmembershiphistory.FieldOrganizationID) + fieldSeen[orgmembershiphistory.FieldOrganizationID] = struct{}{} + } + case "userID": + if _, ok := fieldSeen[orgmembershiphistory.FieldUserID]; !ok { + selectedFields = append(selectedFields, orgmembershiphistory.FieldUserID) + fieldSeen[orgmembershiphistory.FieldUserID] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + omh.Select(selectedFields...) + } + return nil +} + +type orgmembershiphistoryPaginateArgs struct { + first, last *int + after, before *Cursor + opts []OrgMembershipHistoryPaginateOption +} + +func newOrgMembershipHistoryPaginateArgs(rv map[string]any) *orgmembershiphistoryPaginateArgs { + args := &orgmembershiphistoryPaginateArgs{} + 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[whereField].(*OrgMembershipHistoryWhereInput); ok { + args.opts = append(args.opts, WithOrgMembershipHistoryFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (o *OrganizationQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return o, nil + } + if err := o.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return o, nil +} + +func (o *OrganizationQuery) 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(organization.Columns)) + selectedFields = []string{organization.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + + case "parent": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + return err + } + o.withParent = query + if _, ok := fieldSeen[organization.FieldParentOrganizationID]; !ok { + selectedFields = append(selectedFields, organization.FieldParentOrganizationID) + fieldSeen[organization.FieldParentOrganizationID] = struct{}{} + } + + case "children": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationClient{config: o.config}).Query() + ) + args := newOrganizationPaginateArgs(fieldArgs(ctx, new(OrganizationWhereInput), path...)) + if err := validateFirstLast(args.first, args.last); err != nil { + return fmt.Errorf("validate first and last in path %q: %w", path, err) + } + pager, err := newOrganizationPager(args.opts, args.last != nil) + if err != nil { + return fmt.Errorf("create new pager in path %q: %w", path, err) + } + if query, err = pager.applyFilter(query); err != nil { + return err + } + ignoredEdges := !hasCollectedField(ctx, append(path, edgesField)...) + if hasCollectedField(ctx, append(path, totalCountField)...) || hasCollectedField(ctx, append(path, pageInfoField)...) { + hasPagination := args.after != nil || args.first != nil || args.before != nil || args.last != nil + if hasPagination || ignoredEdges { + query := query.Clone() + o.loadTotal = append(o.loadTotal, func(ctx context.Context, nodes []*Organization) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"parent_organization_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.ChildrenColumn), ids...)) + }) + if err := query.GroupBy(organization.ChildrenColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + return err + } + m := make(map[string]int, len(v)) + for i := range v { + m[v[i].NodeID] = v[i].Count + } + for i := range nodes { + n := m[nodes[i].ID] + if nodes[i].Edges.totalCount[1] == nil { + nodes[i].Edges.totalCount[1] = make(map[string]int) + } + nodes[i].Edges.totalCount[1][alias] = n + } + return nil + }) + } else { + o.loadTotal = append(o.loadTotal, func(_ context.Context, nodes []*Organization) error { + for i := range nodes { + n := len(nodes[i].Edges.Children) + 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, organizationImplementors)...); 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.ChildrenColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + o.WithNamedChildren(alias, func(wq *OrganizationQuery) { + *wq = *query + }) + + case "groups": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + o.WithNamedGroups(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "templates": + var ( + alias = field.Alias + path = append(path, alias) + query = (&TemplateClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, templateImplementors)...); err != nil { + return err + } + o.WithNamedTemplates(alias, func(wq *TemplateQuery) { + *wq = *query + }) + + case "integrations": + var ( + alias = field.Alias + path = append(path, alias) + query = (&IntegrationClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, integrationImplementors)...); err != nil { + return err + } + o.WithNamedIntegrations(alias, func(wq *IntegrationQuery) { + *wq = *query + }) + + case "setting": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationSettingClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationsettingImplementors)...); err != nil { + return err + } + o.withSetting = query + + case "documentdata": + var ( + alias = field.Alias + path = append(path, alias) + query = (&DocumentDataClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, documentdataImplementors)...); err != nil { + return err + } + o.WithNamedDocumentdata(alias, func(wq *DocumentDataQuery) { + *wq = *query + }) + + case "entitlements": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EntitlementClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementImplementors)...); err != nil { + return err + } + o.WithNamedEntitlements(alias, func(wq *EntitlementQuery) { + *wq = *query + }) + + case "organizationEntitlement": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EntitlementClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementImplementors)...); err != nil { + return err + } + o.WithNamedOrganizationEntitlement(alias, func(wq *EntitlementQuery) { + *wq = *query + }) + + case "personalAccessTokens": + var ( + alias = field.Alias + path = append(path, alias) + query = (&PersonalAccessTokenClient{config: o.config}).Query() + ) if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, personalaccesstokenImplementors)...); err != nil { return err } - o.WithNamedPersonalAccessTokens(alias, func(wq *PersonalAccessTokenQuery) { - *wq = *query - }) + o.WithNamedPersonalAccessTokens(alias, func(wq *PersonalAccessTokenQuery) { + *wq = *query + }) + + case "apiTokens": + var ( + alias = field.Alias + path = append(path, alias) + query = (&APITokenClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, apitokenImplementors)...); err != nil { + return err + } + o.WithNamedAPITokens(alias, func(wq *APITokenQuery) { + *wq = *query + }) + + case "oauthprovider": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OauthProviderClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, oauthproviderImplementors)...); err != nil { + return err + } + o.WithNamedOauthprovider(alias, func(wq *OauthProviderQuery) { + *wq = *query + }) + + case "users": + var ( + alias = field.Alias + path = append(path, alias) + query = (&UserClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { + return err + } + o.WithNamedUsers(alias, func(wq *UserQuery) { + *wq = *query + }) + + case "invites": + var ( + alias = field.Alias + path = append(path, alias) + query = (&InviteClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, inviteImplementors)...); err != nil { + return err + } + o.WithNamedInvites(alias, func(wq *InviteQuery) { + *wq = *query + }) + + case "subscribers": + var ( + alias = field.Alias + path = append(path, alias) + query = (&SubscriberClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, subscriberImplementors)...); err != nil { + return err + } + o.WithNamedSubscribers(alias, func(wq *SubscriberQuery) { + *wq = *query + }) + + case "webhooks": + var ( + alias = field.Alias + path = append(path, alias) + query = (&WebhookClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, webhookImplementors)...); err != nil { + return err + } + o.WithNamedWebhooks(alias, func(wq *WebhookQuery) { + *wq = *query + }) + + case "events": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EventClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { + return err + } + o.WithNamedEvents(alias, func(wq *EventQuery) { + *wq = *query + }) + + case "secrets": + var ( + alias = field.Alias + path = append(path, alias) + query = (&HushClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, hushImplementors)...); err != nil { + return err + } + o.WithNamedSecrets(alias, func(wq *HushQuery) { + *wq = *query + }) + + case "features": + var ( + alias = field.Alias + path = append(path, alias) + query = (&FeatureClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, featureImplementors)...); err != nil { + return err + } + o.WithNamedFeatures(alias, func(wq *FeatureQuery) { + *wq = *query + }) + + case "files": + var ( + alias = field.Alias + path = append(path, alias) + query = (&FileClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, fileImplementors)...); err != nil { + return err + } + o.WithNamedFiles(alias, func(wq *FileQuery) { + *wq = *query + }) + + case "entitlementplans": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EntitlementPlanClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanImplementors)...); err != nil { + return err + } + o.WithNamedEntitlementplans(alias, func(wq *EntitlementPlanQuery) { + *wq = *query + }) + + case "entitlementplanfeatures": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EntitlementPlanFeatureClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanfeatureImplementors)...); err != nil { + return err + } + o.WithNamedEntitlementplanfeatures(alias, func(wq *EntitlementPlanFeatureQuery) { + *wq = *query + }) + + case "entities": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EntityClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entityImplementors)...); err != nil { + return err + } + o.WithNamedEntities(alias, func(wq *EntityQuery) { + *wq = *query + }) + + case "entitytypes": + var ( + alias = field.Alias + path = append(path, alias) + query = (&EntityTypeClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitytypeImplementors)...); err != nil { + return err + } + o.WithNamedEntitytypes(alias, func(wq *EntityTypeQuery) { + *wq = *query + }) + + case "contacts": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ContactClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, contactImplementors)...); err != nil { + return err + } + o.WithNamedContacts(alias, func(wq *ContactQuery) { + *wq = *query + }) + + case "notes": + var ( + alias = field.Alias + path = append(path, alias) + query = (&NoteClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, noteImplementors)...); err != nil { + return err + } + o.WithNamedNotes(alias, func(wq *NoteQuery) { + *wq = *query + }) + + case "members": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrgMembershipClient{config: o.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, orgmembershipImplementors)...); err != nil { + return err + } + o.WithNamedMembers(alias, func(wq *OrgMembershipQuery) { + *wq = *query + }) + case "createdAt": + if _, ok := fieldSeen[organization.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, organization.FieldCreatedAt) + fieldSeen[organization.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[organization.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, organization.FieldUpdatedAt) + fieldSeen[organization.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[organization.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, organization.FieldCreatedBy) + fieldSeen[organization.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[organization.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, organization.FieldUpdatedBy) + fieldSeen[organization.FieldUpdatedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[organization.FieldTags]; !ok { + selectedFields = append(selectedFields, organization.FieldTags) + fieldSeen[organization.FieldTags] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[organization.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, organization.FieldDeletedAt) + fieldSeen[organization.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[organization.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, organization.FieldDeletedBy) + fieldSeen[organization.FieldDeletedBy] = struct{}{} + } + case "name": + if _, ok := fieldSeen[organization.FieldName]; !ok { + selectedFields = append(selectedFields, organization.FieldName) + fieldSeen[organization.FieldName] = struct{}{} + } + case "displayName": + if _, ok := fieldSeen[organization.FieldDisplayName]; !ok { + selectedFields = append(selectedFields, organization.FieldDisplayName) + fieldSeen[organization.FieldDisplayName] = struct{}{} + } + case "description": + if _, ok := fieldSeen[organization.FieldDescription]; !ok { + selectedFields = append(selectedFields, organization.FieldDescription) + fieldSeen[organization.FieldDescription] = struct{}{} + } + case "personalOrg": + if _, ok := fieldSeen[organization.FieldPersonalOrg]; !ok { + selectedFields = append(selectedFields, organization.FieldPersonalOrg) + fieldSeen[organization.FieldPersonalOrg] = struct{}{} + } + case "avatarRemoteURL": + if _, ok := fieldSeen[organization.FieldAvatarRemoteURL]; !ok { + selectedFields = append(selectedFields, organization.FieldAvatarRemoteURL) + fieldSeen[organization.FieldAvatarRemoteURL] = struct{}{} + } + case "dedicatedDb": + if _, ok := fieldSeen[organization.FieldDedicatedDb]; !ok { + selectedFields = append(selectedFields, organization.FieldDedicatedDb) + fieldSeen[organization.FieldDedicatedDb] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + o.Select(selectedFields...) + } + return nil +} + +type organizationPaginateArgs struct { + first, last *int + after, before *Cursor + opts []OrganizationPaginateOption +} + +func newOrganizationPaginateArgs(rv map[string]any) *organizationPaginateArgs { + args := &organizationPaginateArgs{} + 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 = &OrganizationOrder{Field: &OrganizationOrderField{}, 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, WithOrganizationOrder(order)) + } + case *OrganizationOrder: + if v != nil { + args.opts = append(args.opts, WithOrganizationOrder(v)) + } + } + } + if v, ok := rv[whereField].(*OrganizationWhereInput); ok { + args.opts = append(args.opts, WithOrganizationFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (oh *OrganizationHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationHistoryQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return oh, nil + } + if err := oh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return oh, nil +} + +func (oh *OrganizationHistoryQuery) 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(organizationhistory.Columns)) + selectedFields = []string{organizationhistory.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + case "historyTime": + if _, ok := fieldSeen[organizationhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldHistoryTime) + fieldSeen[organizationhistory.FieldHistoryTime] = struct{}{} + } + case "ref": + if _, ok := fieldSeen[organizationhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldRef) + fieldSeen[organizationhistory.FieldRef] = struct{}{} + } + case "operation": + if _, ok := fieldSeen[organizationhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldOperation) + fieldSeen[organizationhistory.FieldOperation] = struct{}{} + } + case "createdAt": + if _, ok := fieldSeen[organizationhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldCreatedAt) + fieldSeen[organizationhistory.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[organizationhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldUpdatedAt) + fieldSeen[organizationhistory.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[organizationhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldCreatedBy) + fieldSeen[organizationhistory.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[organizationhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldUpdatedBy) + fieldSeen[organizationhistory.FieldUpdatedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[organizationhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldTags) + fieldSeen[organizationhistory.FieldTags] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[organizationhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldDeletedAt) + fieldSeen[organizationhistory.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[organizationhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldDeletedBy) + fieldSeen[organizationhistory.FieldDeletedBy] = struct{}{} + } + case "name": + if _, ok := fieldSeen[organizationhistory.FieldName]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldName) + fieldSeen[organizationhistory.FieldName] = struct{}{} + } + case "displayName": + if _, ok := fieldSeen[organizationhistory.FieldDisplayName]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldDisplayName) + fieldSeen[organizationhistory.FieldDisplayName] = struct{}{} + } + case "description": + if _, ok := fieldSeen[organizationhistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldDescription) + fieldSeen[organizationhistory.FieldDescription] = struct{}{} + } + case "personalOrg": + if _, ok := fieldSeen[organizationhistory.FieldPersonalOrg]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldPersonalOrg) + fieldSeen[organizationhistory.FieldPersonalOrg] = struct{}{} + } + case "avatarRemoteURL": + if _, ok := fieldSeen[organizationhistory.FieldAvatarRemoteURL]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldAvatarRemoteURL) + fieldSeen[organizationhistory.FieldAvatarRemoteURL] = struct{}{} + } + case "dedicatedDb": + if _, ok := fieldSeen[organizationhistory.FieldDedicatedDb]; !ok { + selectedFields = append(selectedFields, organizationhistory.FieldDedicatedDb) + fieldSeen[organizationhistory.FieldDedicatedDb] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + oh.Select(selectedFields...) + } + return nil +} + +type organizationhistoryPaginateArgs struct { + first, last *int + after, before *Cursor + opts []OrganizationHistoryPaginateOption +} + +func newOrganizationHistoryPaginateArgs(rv map[string]any) *organizationhistoryPaginateArgs { + args := &organizationhistoryPaginateArgs{} + 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 = &OrganizationHistoryOrder{Field: &OrganizationHistoryOrderField{}, 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, WithOrganizationHistoryOrder(order)) + } + case *OrganizationHistoryOrder: + if v != nil { + args.opts = append(args.opts, WithOrganizationHistoryOrder(v)) + } + } + } + if v, ok := rv[whereField].(*OrganizationHistoryWhereInput); ok { + args.opts = append(args.opts, WithOrganizationHistoryFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (os *OrganizationSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationSettingQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return os, nil + } + if err := os.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return os, nil +} + +func (os *OrganizationSettingQuery) 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(organizationsetting.Columns)) + selectedFields = []string{organizationsetting.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + + case "organization": + var ( + alias = field.Alias + path = append(path, alias) + query = (&OrganizationClient{config: os.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { + return err + } + os.withOrganization = query + if _, ok := fieldSeen[organizationsetting.FieldOrganizationID]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldOrganizationID) + fieldSeen[organizationsetting.FieldOrganizationID] = struct{}{} + } + + case "files": + var ( + alias = field.Alias + path = append(path, alias) + query = (&FileClient{config: os.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, fileImplementors)...); err != nil { + return err + } + os.WithNamedFiles(alias, func(wq *FileQuery) { + *wq = *query + }) + case "createdAt": + if _, ok := fieldSeen[organizationsetting.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldCreatedAt) + fieldSeen[organizationsetting.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[organizationsetting.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldUpdatedAt) + fieldSeen[organizationsetting.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[organizationsetting.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldCreatedBy) + fieldSeen[organizationsetting.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[organizationsetting.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldUpdatedBy) + fieldSeen[organizationsetting.FieldUpdatedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[organizationsetting.FieldTags]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldTags) + fieldSeen[organizationsetting.FieldTags] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[organizationsetting.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldDeletedAt) + fieldSeen[organizationsetting.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[organizationsetting.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldDeletedBy) + fieldSeen[organizationsetting.FieldDeletedBy] = struct{}{} + } + case "domains": + if _, ok := fieldSeen[organizationsetting.FieldDomains]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldDomains) + fieldSeen[organizationsetting.FieldDomains] = struct{}{} + } + case "billingContact": + if _, ok := fieldSeen[organizationsetting.FieldBillingContact]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldBillingContact) + fieldSeen[organizationsetting.FieldBillingContact] = struct{}{} + } + case "billingEmail": + if _, ok := fieldSeen[organizationsetting.FieldBillingEmail]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldBillingEmail) + fieldSeen[organizationsetting.FieldBillingEmail] = struct{}{} + } + case "billingPhone": + if _, ok := fieldSeen[organizationsetting.FieldBillingPhone]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldBillingPhone) + fieldSeen[organizationsetting.FieldBillingPhone] = struct{}{} + } + case "billingAddress": + if _, ok := fieldSeen[organizationsetting.FieldBillingAddress]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldBillingAddress) + fieldSeen[organizationsetting.FieldBillingAddress] = struct{}{} + } + case "taxIdentifier": + if _, ok := fieldSeen[organizationsetting.FieldTaxIdentifier]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldTaxIdentifier) + fieldSeen[organizationsetting.FieldTaxIdentifier] = struct{}{} + } + case "geoLocation": + if _, ok := fieldSeen[organizationsetting.FieldGeoLocation]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldGeoLocation) + fieldSeen[organizationsetting.FieldGeoLocation] = struct{}{} + } + case "organizationID": + if _, ok := fieldSeen[organizationsetting.FieldOrganizationID]; !ok { + selectedFields = append(selectedFields, organizationsetting.FieldOrganizationID) + fieldSeen[organizationsetting.FieldOrganizationID] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + os.Select(selectedFields...) + } + return nil +} - case "apiTokens": - var ( - alias = field.Alias - path = append(path, alias) - query = (&APITokenClient{config: o.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, apitokenImplementors)...); err != nil { - return err +type organizationsettingPaginateArgs struct { + first, last *int + after, before *Cursor + opts []OrganizationSettingPaginateOption +} + +func newOrganizationSettingPaginateArgs(rv map[string]any) *organizationsettingPaginateArgs { + args := &organizationsettingPaginateArgs{} + 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[whereField].(*OrganizationSettingWhereInput); ok { + args.opts = append(args.opts, WithOrganizationSettingFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (osh *OrganizationSettingHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationSettingHistoryQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return osh, nil + } + if err := osh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return osh, nil +} + +func (osh *OrganizationSettingHistoryQuery) 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(organizationsettinghistory.Columns)) + selectedFields = []string{organizationsettinghistory.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + case "historyTime": + if _, ok := fieldSeen[organizationsettinghistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldHistoryTime) + fieldSeen[organizationsettinghistory.FieldHistoryTime] = struct{}{} } - o.WithNamedAPITokens(alias, func(wq *APITokenQuery) { - *wq = *query - }) + case "ref": + if _, ok := fieldSeen[organizationsettinghistory.FieldRef]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldRef) + fieldSeen[organizationsettinghistory.FieldRef] = struct{}{} + } + case "operation": + if _, ok := fieldSeen[organizationsettinghistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldOperation) + fieldSeen[organizationsettinghistory.FieldOperation] = struct{}{} + } + case "createdAt": + if _, ok := fieldSeen[organizationsettinghistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldCreatedAt) + fieldSeen[organizationsettinghistory.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[organizationsettinghistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldUpdatedAt) + fieldSeen[organizationsettinghistory.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[organizationsettinghistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldCreatedBy) + fieldSeen[organizationsettinghistory.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[organizationsettinghistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldUpdatedBy) + fieldSeen[organizationsettinghistory.FieldUpdatedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[organizationsettinghistory.FieldTags]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldTags) + fieldSeen[organizationsettinghistory.FieldTags] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[organizationsettinghistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldDeletedAt) + fieldSeen[organizationsettinghistory.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[organizationsettinghistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldDeletedBy) + fieldSeen[organizationsettinghistory.FieldDeletedBy] = struct{}{} + } + case "domains": + if _, ok := fieldSeen[organizationsettinghistory.FieldDomains]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldDomains) + fieldSeen[organizationsettinghistory.FieldDomains] = struct{}{} + } + case "billingContact": + if _, ok := fieldSeen[organizationsettinghistory.FieldBillingContact]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldBillingContact) + fieldSeen[organizationsettinghistory.FieldBillingContact] = struct{}{} + } + case "billingEmail": + if _, ok := fieldSeen[organizationsettinghistory.FieldBillingEmail]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldBillingEmail) + fieldSeen[organizationsettinghistory.FieldBillingEmail] = struct{}{} + } + case "billingPhone": + if _, ok := fieldSeen[organizationsettinghistory.FieldBillingPhone]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldBillingPhone) + fieldSeen[organizationsettinghistory.FieldBillingPhone] = struct{}{} + } + case "billingAddress": + if _, ok := fieldSeen[organizationsettinghistory.FieldBillingAddress]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldBillingAddress) + fieldSeen[organizationsettinghistory.FieldBillingAddress] = struct{}{} + } + case "taxIdentifier": + if _, ok := fieldSeen[organizationsettinghistory.FieldTaxIdentifier]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldTaxIdentifier) + fieldSeen[organizationsettinghistory.FieldTaxIdentifier] = struct{}{} + } + case "geoLocation": + if _, ok := fieldSeen[organizationsettinghistory.FieldGeoLocation]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldGeoLocation) + fieldSeen[organizationsettinghistory.FieldGeoLocation] = struct{}{} + } + case "organizationID": + if _, ok := fieldSeen[organizationsettinghistory.FieldOrganizationID]; !ok { + selectedFields = append(selectedFields, organizationsettinghistory.FieldOrganizationID) + fieldSeen[organizationsettinghistory.FieldOrganizationID] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + osh.Select(selectedFields...) + } + return nil +} - case "oauthprovider": +type organizationsettinghistoryPaginateArgs struct { + first, last *int + after, before *Cursor + opts []OrganizationSettingHistoryPaginateOption +} + +func newOrganizationSettingHistoryPaginateArgs(rv map[string]any) *organizationsettinghistoryPaginateArgs { + args := &organizationsettinghistoryPaginateArgs{} + 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[whereField].(*OrganizationSettingHistoryWhereInput); ok { + args.opts = append(args.opts, WithOrganizationSettingHistoryFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (pat *PersonalAccessTokenQuery) CollectFields(ctx context.Context, satisfies ...string) (*PersonalAccessTokenQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return pat, nil + } + if err := pat.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return pat, nil +} + +func (pat *PersonalAccessTokenQuery) 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(personalaccesstoken.Columns)) + selectedFields = []string{personalaccesstoken.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + + case "owner": var ( alias = field.Alias path = append(path, alias) - query = (&OauthProviderClient{config: o.config}).Query() + query = (&UserClient{config: pat.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, oauthproviderImplementors)...); err != nil { + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { return err } - o.WithNamedOauthprovider(alias, func(wq *OauthProviderQuery) { - *wq = *query - }) + pat.withOwner = query + if _, ok := fieldSeen[personalaccesstoken.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldOwnerID) + fieldSeen[personalaccesstoken.FieldOwnerID] = struct{}{} + } - case "users": + case "organizations": var ( alias = field.Alias path = append(path, alias) - query = (&UserClient{config: o.config}).Query() + query = (&OrganizationClient{config: pat.config}).Query() ) - 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, organizationImplementors)...); err != nil { return err } - o.WithNamedUsers(alias, func(wq *UserQuery) { + pat.WithNamedOrganizations(alias, func(wq *OrganizationQuery) { *wq = *query }) - case "invites": + case "events": var ( alias = field.Alias path = append(path, alias) - query = (&InviteClient{config: o.config}).Query() + query = (&EventClient{config: pat.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, inviteImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { return err } - o.WithNamedInvites(alias, func(wq *InviteQuery) { + pat.WithNamedEvents(alias, func(wq *EventQuery) { *wq = *query }) + case "createdAt": + if _, ok := fieldSeen[personalaccesstoken.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldCreatedAt) + fieldSeen[personalaccesstoken.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[personalaccesstoken.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldUpdatedAt) + fieldSeen[personalaccesstoken.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[personalaccesstoken.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldCreatedBy) + fieldSeen[personalaccesstoken.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[personalaccesstoken.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldUpdatedBy) + fieldSeen[personalaccesstoken.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[personalaccesstoken.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldDeletedAt) + fieldSeen[personalaccesstoken.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[personalaccesstoken.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldDeletedBy) + fieldSeen[personalaccesstoken.FieldDeletedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[personalaccesstoken.FieldTags]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldTags) + fieldSeen[personalaccesstoken.FieldTags] = struct{}{} + } + case "name": + if _, ok := fieldSeen[personalaccesstoken.FieldName]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldName) + fieldSeen[personalaccesstoken.FieldName] = struct{}{} + } + case "token": + if _, ok := fieldSeen[personalaccesstoken.FieldToken]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldToken) + fieldSeen[personalaccesstoken.FieldToken] = struct{}{} + } + case "expiresAt": + if _, ok := fieldSeen[personalaccesstoken.FieldExpiresAt]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldExpiresAt) + fieldSeen[personalaccesstoken.FieldExpiresAt] = struct{}{} + } + case "description": + if _, ok := fieldSeen[personalaccesstoken.FieldDescription]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldDescription) + fieldSeen[personalaccesstoken.FieldDescription] = struct{}{} + } + case "scopes": + if _, ok := fieldSeen[personalaccesstoken.FieldScopes]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldScopes) + fieldSeen[personalaccesstoken.FieldScopes] = struct{}{} + } + case "lastUsedAt": + if _, ok := fieldSeen[personalaccesstoken.FieldLastUsedAt]; !ok { + selectedFields = append(selectedFields, personalaccesstoken.FieldLastUsedAt) + fieldSeen[personalaccesstoken.FieldLastUsedAt] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + pat.Select(selectedFields...) + } + return nil +} - case "subscribers": +type personalaccesstokenPaginateArgs struct { + first, last *int + after, before *Cursor + opts []PersonalAccessTokenPaginateOption +} + +func newPersonalAccessTokenPaginateArgs(rv map[string]any) *personalaccesstokenPaginateArgs { + args := &personalaccesstokenPaginateArgs{} + 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[whereField].(*PersonalAccessTokenWhereInput); ok { + args.opts = append(args.opts, WithPersonalAccessTokenFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (pr *ProcedureQuery) CollectFields(ctx context.Context, satisfies ...string) (*ProcedureQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return pr, nil + } + if err := pr.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return pr, nil +} + +func (pr *ProcedureQuery) 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(procedure.Columns)) + selectedFields = []string{procedure.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + + case "control": var ( alias = field.Alias path = append(path, alias) - query = (&SubscriberClient{config: o.config}).Query() + query = (&ControlClient{config: pr.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, subscriberImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, controlImplementors)...); err != nil { return err } - o.WithNamedSubscribers(alias, func(wq *SubscriberQuery) { + pr.WithNamedControl(alias, func(wq *ControlQuery) { *wq = *query }) - case "webhooks": + case "internalpolicy": var ( alias = field.Alias path = append(path, alias) - query = (&WebhookClient{config: o.config}).Query() + query = (&InternalPolicyClient{config: pr.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, webhookImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, internalpolicyImplementors)...); err != nil { return err } - o.WithNamedWebhooks(alias, func(wq *WebhookQuery) { + pr.WithNamedInternalpolicy(alias, func(wq *InternalPolicyQuery) { *wq = *query }) - case "events": + case "narratives": var ( alias = field.Alias path = append(path, alias) - query = (&EventClient{config: o.config}).Query() + query = (&NarrativeClient{config: pr.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, narrativeImplementors)...); err != nil { return err } - o.WithNamedEvents(alias, func(wq *EventQuery) { + pr.WithNamedNarratives(alias, func(wq *NarrativeQuery) { *wq = *query }) - case "secrets": + case "risks": var ( alias = field.Alias path = append(path, alias) - query = (&HushClient{config: o.config}).Query() + query = (&RiskClient{config: pr.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, hushImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, riskImplementors)...); err != nil { return err } - o.WithNamedSecrets(alias, func(wq *HushQuery) { - *wq = *query - }) - - case "features": - var ( - alias = field.Alias - path = append(path, alias) - query = (&FeatureClient{config: o.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, featureImplementors)...); err != nil { - return err + pr.WithNamedRisks(alias, func(wq *RiskQuery) { + *wq = *query + }) + case "createdAt": + if _, ok := fieldSeen[procedure.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, procedure.FieldCreatedAt) + fieldSeen[procedure.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[procedure.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, procedure.FieldUpdatedAt) + fieldSeen[procedure.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[procedure.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, procedure.FieldCreatedBy) + fieldSeen[procedure.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[procedure.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, procedure.FieldUpdatedBy) + fieldSeen[procedure.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[procedure.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, procedure.FieldDeletedAt) + fieldSeen[procedure.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[procedure.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, procedure.FieldDeletedBy) + fieldSeen[procedure.FieldDeletedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[procedure.FieldTags]; !ok { + selectedFields = append(selectedFields, procedure.FieldTags) + fieldSeen[procedure.FieldTags] = struct{}{} + } + case "name": + if _, ok := fieldSeen[procedure.FieldName]; !ok { + selectedFields = append(selectedFields, procedure.FieldName) + fieldSeen[procedure.FieldName] = struct{}{} + } + case "description": + if _, ok := fieldSeen[procedure.FieldDescription]; !ok { + selectedFields = append(selectedFields, procedure.FieldDescription) + fieldSeen[procedure.FieldDescription] = struct{}{} + } + case "status": + if _, ok := fieldSeen[procedure.FieldStatus]; !ok { + selectedFields = append(selectedFields, procedure.FieldStatus) + fieldSeen[procedure.FieldStatus] = struct{}{} + } + case "procedureType": + if _, ok := fieldSeen[procedure.FieldProcedureType]; !ok { + selectedFields = append(selectedFields, procedure.FieldProcedureType) + fieldSeen[procedure.FieldProcedureType] = struct{}{} + } + case "version": + if _, ok := fieldSeen[procedure.FieldVersion]; !ok { + selectedFields = append(selectedFields, procedure.FieldVersion) + fieldSeen[procedure.FieldVersion] = struct{}{} + } + case "purposeAndScope": + if _, ok := fieldSeen[procedure.FieldPurposeAndScope]; !ok { + selectedFields = append(selectedFields, procedure.FieldPurposeAndScope) + fieldSeen[procedure.FieldPurposeAndScope] = struct{}{} + } + case "background": + if _, ok := fieldSeen[procedure.FieldBackground]; !ok { + selectedFields = append(selectedFields, procedure.FieldBackground) + fieldSeen[procedure.FieldBackground] = struct{}{} + } + case "satisfies": + if _, ok := fieldSeen[procedure.FieldSatisfies]; !ok { + selectedFields = append(selectedFields, procedure.FieldSatisfies) + fieldSeen[procedure.FieldSatisfies] = struct{}{} + } + case "details": + if _, ok := fieldSeen[procedure.FieldDetails]; !ok { + selectedFields = append(selectedFields, procedure.FieldDetails) + fieldSeen[procedure.FieldDetails] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + pr.Select(selectedFields...) + } + return nil +} + +type procedurePaginateArgs struct { + first, last *int + after, before *Cursor + opts []ProcedurePaginateOption +} + +func newProcedurePaginateArgs(rv map[string]any) *procedurePaginateArgs { + args := &procedurePaginateArgs{} + 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[whereField].(*ProcedureWhereInput); ok { + args.opts = append(args.opts, WithProcedureFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (ph *ProcedureHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*ProcedureHistoryQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return ph, nil + } + if err := ph.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return ph, nil +} + +func (ph *ProcedureHistoryQuery) 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(procedurehistory.Columns)) + selectedFields = []string{procedurehistory.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + case "historyTime": + if _, ok := fieldSeen[procedurehistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldHistoryTime) + fieldSeen[procedurehistory.FieldHistoryTime] = struct{}{} + } + case "ref": + if _, ok := fieldSeen[procedurehistory.FieldRef]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldRef) + fieldSeen[procedurehistory.FieldRef] = struct{}{} + } + case "operation": + if _, ok := fieldSeen[procedurehistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldOperation) + fieldSeen[procedurehistory.FieldOperation] = struct{}{} + } + case "createdAt": + if _, ok := fieldSeen[procedurehistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldCreatedAt) + fieldSeen[procedurehistory.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[procedurehistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldUpdatedAt) + fieldSeen[procedurehistory.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[procedurehistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldCreatedBy) + fieldSeen[procedurehistory.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[procedurehistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldUpdatedBy) + fieldSeen[procedurehistory.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[procedurehistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldDeletedAt) + fieldSeen[procedurehistory.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[procedurehistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldDeletedBy) + fieldSeen[procedurehistory.FieldDeletedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[procedurehistory.FieldTags]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldTags) + fieldSeen[procedurehistory.FieldTags] = struct{}{} + } + case "name": + if _, ok := fieldSeen[procedurehistory.FieldName]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldName) + fieldSeen[procedurehistory.FieldName] = struct{}{} } - o.WithNamedFeatures(alias, func(wq *FeatureQuery) { - *wq = *query - }) - - case "files": - var ( - alias = field.Alias - path = append(path, alias) - query = (&FileClient{config: o.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, fileImplementors)...); err != nil { - return err + case "description": + if _, ok := fieldSeen[procedurehistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldDescription) + fieldSeen[procedurehistory.FieldDescription] = struct{}{} } - o.WithNamedFiles(alias, func(wq *FileQuery) { - *wq = *query - }) - - case "entitlementplans": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EntitlementPlanClient{config: o.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanImplementors)...); err != nil { - return err + case "status": + if _, ok := fieldSeen[procedurehistory.FieldStatus]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldStatus) + fieldSeen[procedurehistory.FieldStatus] = struct{}{} } - o.WithNamedEntitlementplans(alias, func(wq *EntitlementPlanQuery) { - *wq = *query - }) - - case "entitlementplanfeatures": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EntitlementPlanFeatureClient{config: o.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitlementplanfeatureImplementors)...); err != nil { - return err + case "procedureType": + if _, ok := fieldSeen[procedurehistory.FieldProcedureType]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldProcedureType) + fieldSeen[procedurehistory.FieldProcedureType] = struct{}{} } - o.WithNamedEntitlementplanfeatures(alias, func(wq *EntitlementPlanFeatureQuery) { - *wq = *query - }) - - case "entities": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EntityClient{config: o.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entityImplementors)...); err != nil { - return err + case "version": + if _, ok := fieldSeen[procedurehistory.FieldVersion]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldVersion) + fieldSeen[procedurehistory.FieldVersion] = struct{}{} + } + case "purposeAndScope": + if _, ok := fieldSeen[procedurehistory.FieldPurposeAndScope]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldPurposeAndScope) + fieldSeen[procedurehistory.FieldPurposeAndScope] = struct{}{} + } + case "background": + if _, ok := fieldSeen[procedurehistory.FieldBackground]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldBackground) + fieldSeen[procedurehistory.FieldBackground] = struct{}{} + } + case "satisfies": + if _, ok := fieldSeen[procedurehistory.FieldSatisfies]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldSatisfies) + fieldSeen[procedurehistory.FieldSatisfies] = struct{}{} + } + case "details": + if _, ok := fieldSeen[procedurehistory.FieldDetails]; !ok { + selectedFields = append(selectedFields, procedurehistory.FieldDetails) + fieldSeen[procedurehistory.FieldDetails] = struct{}{} } - o.WithNamedEntities(alias, func(wq *EntityQuery) { - *wq = *query - }) + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + ph.Select(selectedFields...) + } + return nil +} - case "entitytypes": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EntityTypeClient{config: o.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, entitytypeImplementors)...); err != nil { - return err - } - o.WithNamedEntitytypes(alias, func(wq *EntityTypeQuery) { - *wq = *query - }) +type procedurehistoryPaginateArgs struct { + first, last *int + after, before *Cursor + opts []ProcedureHistoryPaginateOption +} - case "contacts": +func newProcedureHistoryPaginateArgs(rv map[string]any) *procedurehistoryPaginateArgs { + args := &procedurehistoryPaginateArgs{} + 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[whereField].(*ProcedureHistoryWhereInput); ok { + args.opts = append(args.opts, WithProcedureHistoryFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (r *RiskQuery) CollectFields(ctx context.Context, satisfies ...string) (*RiskQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return r, nil + } + if err := r.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return r, nil +} + +func (r *RiskQuery) 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(risk.Columns)) + selectedFields = []string{risk.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + + case "control": var ( alias = field.Alias path = append(path, alias) - query = (&ContactClient{config: o.config}).Query() + query = (&ControlClient{config: r.config}).Query() ) - 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, controlImplementors)...); err != nil { return err } - o.WithNamedContacts(alias, func(wq *ContactQuery) { + r.WithNamedControl(alias, func(wq *ControlQuery) { *wq = *query }) - case "notes": + case "procedure": var ( alias = field.Alias path = append(path, alias) - query = (&NoteClient{config: o.config}).Query() + query = (&ProcedureClient{config: r.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, noteImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, procedureImplementors)...); err != nil { return err } - o.WithNamedNotes(alias, func(wq *NoteQuery) { + r.WithNamedProcedure(alias, func(wq *ProcedureQuery) { *wq = *query }) - case "members": + case "actionplans": var ( alias = field.Alias path = append(path, alias) - query = (&OrgMembershipClient{config: o.config}).Query() + query = (&ActionPlanClient{config: r.config}).Query() ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, orgmembershipImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, actionplanImplementors)...); err != nil { return err } - o.WithNamedMembers(alias, func(wq *OrgMembershipQuery) { + r.WithNamedActionplans(alias, func(wq *ActionPlanQuery) { *wq = *query }) case "createdAt": - if _, ok := fieldSeen[organization.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, organization.FieldCreatedAt) - fieldSeen[organization.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[risk.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, risk.FieldCreatedAt) + fieldSeen[risk.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[organization.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, organization.FieldUpdatedAt) - fieldSeen[organization.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[risk.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, risk.FieldUpdatedAt) + fieldSeen[risk.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[organization.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, organization.FieldCreatedBy) - fieldSeen[organization.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[risk.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, risk.FieldCreatedBy) + fieldSeen[risk.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[organization.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, organization.FieldUpdatedBy) - fieldSeen[organization.FieldUpdatedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[organization.FieldTags]; !ok { - selectedFields = append(selectedFields, organization.FieldTags) - fieldSeen[organization.FieldTags] = struct{}{} + if _, ok := fieldSeen[risk.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, risk.FieldUpdatedBy) + fieldSeen[risk.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[organization.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, organization.FieldDeletedAt) - fieldSeen[organization.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[risk.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, risk.FieldDeletedAt) + fieldSeen[risk.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[organization.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, organization.FieldDeletedBy) - fieldSeen[organization.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[risk.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, risk.FieldDeletedBy) + fieldSeen[risk.FieldDeletedBy] = struct{}{} } - case "name": - if _, ok := fieldSeen[organization.FieldName]; !ok { - selectedFields = append(selectedFields, organization.FieldName) - fieldSeen[organization.FieldName] = struct{}{} + case "tags": + if _, ok := fieldSeen[risk.FieldTags]; !ok { + selectedFields = append(selectedFields, risk.FieldTags) + fieldSeen[risk.FieldTags] = struct{}{} } - case "displayName": - if _, ok := fieldSeen[organization.FieldDisplayName]; !ok { - selectedFields = append(selectedFields, organization.FieldDisplayName) - fieldSeen[organization.FieldDisplayName] = struct{}{} + case "name": + if _, ok := fieldSeen[risk.FieldName]; !ok { + selectedFields = append(selectedFields, risk.FieldName) + fieldSeen[risk.FieldName] = struct{}{} } case "description": - if _, ok := fieldSeen[organization.FieldDescription]; !ok { - selectedFields = append(selectedFields, organization.FieldDescription) - fieldSeen[organization.FieldDescription] = struct{}{} + if _, ok := fieldSeen[risk.FieldDescription]; !ok { + selectedFields = append(selectedFields, risk.FieldDescription) + fieldSeen[risk.FieldDescription] = struct{}{} } - case "personalOrg": - if _, ok := fieldSeen[organization.FieldPersonalOrg]; !ok { - selectedFields = append(selectedFields, organization.FieldPersonalOrg) - fieldSeen[organization.FieldPersonalOrg] = struct{}{} + case "status": + if _, ok := fieldSeen[risk.FieldStatus]; !ok { + selectedFields = append(selectedFields, risk.FieldStatus) + fieldSeen[risk.FieldStatus] = struct{}{} + } + case "riskType": + if _, ok := fieldSeen[risk.FieldRiskType]; !ok { + selectedFields = append(selectedFields, risk.FieldRiskType) + fieldSeen[risk.FieldRiskType] = struct{}{} + } + case "businessCosts": + if _, ok := fieldSeen[risk.FieldBusinessCosts]; !ok { + selectedFields = append(selectedFields, risk.FieldBusinessCosts) + fieldSeen[risk.FieldBusinessCosts] = struct{}{} + } + case "impact": + if _, ok := fieldSeen[risk.FieldImpact]; !ok { + selectedFields = append(selectedFields, risk.FieldImpact) + fieldSeen[risk.FieldImpact] = struct{}{} + } + case "likelihood": + if _, ok := fieldSeen[risk.FieldLikelihood]; !ok { + selectedFields = append(selectedFields, risk.FieldLikelihood) + fieldSeen[risk.FieldLikelihood] = struct{}{} + } + case "mitigation": + if _, ok := fieldSeen[risk.FieldMitigation]; !ok { + selectedFields = append(selectedFields, risk.FieldMitigation) + fieldSeen[risk.FieldMitigation] = struct{}{} + } + case "satisfies": + if _, ok := fieldSeen[risk.FieldSatisfies]; !ok { + selectedFields = append(selectedFields, risk.FieldSatisfies) + fieldSeen[risk.FieldSatisfies] = struct{}{} + } + case "details": + if _, ok := fieldSeen[risk.FieldDetails]; !ok { + selectedFields = append(selectedFields, risk.FieldDetails) + fieldSeen[risk.FieldDetails] = struct{}{} } - case "avatarRemoteURL": - if _, ok := fieldSeen[organization.FieldAvatarRemoteURL]; !ok { - selectedFields = append(selectedFields, organization.FieldAvatarRemoteURL) - fieldSeen[organization.FieldAvatarRemoteURL] = struct{}{} + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + r.Select(selectedFields...) + } + return nil +} + +type riskPaginateArgs struct { + first, last *int + after, before *Cursor + opts []RiskPaginateOption +} + +func newRiskPaginateArgs(rv map[string]any) *riskPaginateArgs { + args := &riskPaginateArgs{} + 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[whereField].(*RiskWhereInput); ok { + args.opts = append(args.opts, WithRiskFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (rh *RiskHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*RiskHistoryQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return rh, nil + } + if err := rh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return rh, nil +} + +func (rh *RiskHistoryQuery) 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(riskhistory.Columns)) + selectedFields = []string{riskhistory.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + case "historyTime": + if _, ok := fieldSeen[riskhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldHistoryTime) + fieldSeen[riskhistory.FieldHistoryTime] = struct{}{} } - case "dedicatedDb": - if _, ok := fieldSeen[organization.FieldDedicatedDb]; !ok { - selectedFields = append(selectedFields, organization.FieldDedicatedDb) - fieldSeen[organization.FieldDedicatedDb] = struct{}{} + case "ref": + if _, ok := fieldSeen[riskhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldRef) + fieldSeen[riskhistory.FieldRef] = struct{}{} + } + case "operation": + if _, ok := fieldSeen[riskhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldOperation) + fieldSeen[riskhistory.FieldOperation] = struct{}{} + } + case "createdAt": + if _, ok := fieldSeen[riskhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldCreatedAt) + fieldSeen[riskhistory.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[riskhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldUpdatedAt) + fieldSeen[riskhistory.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[riskhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldCreatedBy) + fieldSeen[riskhistory.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[riskhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldUpdatedBy) + fieldSeen[riskhistory.FieldUpdatedBy] = struct{}{} + } + case "deletedAt": + if _, ok := fieldSeen[riskhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldDeletedAt) + fieldSeen[riskhistory.FieldDeletedAt] = struct{}{} + } + case "deletedBy": + if _, ok := fieldSeen[riskhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldDeletedBy) + fieldSeen[riskhistory.FieldDeletedBy] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[riskhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldTags) + fieldSeen[riskhistory.FieldTags] = struct{}{} + } + case "name": + if _, ok := fieldSeen[riskhistory.FieldName]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldName) + fieldSeen[riskhistory.FieldName] = struct{}{} + } + case "description": + if _, ok := fieldSeen[riskhistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldDescription) + fieldSeen[riskhistory.FieldDescription] = struct{}{} + } + case "status": + if _, ok := fieldSeen[riskhistory.FieldStatus]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldStatus) + fieldSeen[riskhistory.FieldStatus] = struct{}{} + } + case "riskType": + if _, ok := fieldSeen[riskhistory.FieldRiskType]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldRiskType) + fieldSeen[riskhistory.FieldRiskType] = struct{}{} + } + case "businessCosts": + if _, ok := fieldSeen[riskhistory.FieldBusinessCosts]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldBusinessCosts) + fieldSeen[riskhistory.FieldBusinessCosts] = struct{}{} + } + case "impact": + if _, ok := fieldSeen[riskhistory.FieldImpact]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldImpact) + fieldSeen[riskhistory.FieldImpact] = struct{}{} + } + case "likelihood": + if _, ok := fieldSeen[riskhistory.FieldLikelihood]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldLikelihood) + fieldSeen[riskhistory.FieldLikelihood] = struct{}{} + } + case "mitigation": + if _, ok := fieldSeen[riskhistory.FieldMitigation]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldMitigation) + fieldSeen[riskhistory.FieldMitigation] = struct{}{} + } + case "satisfies": + if _, ok := fieldSeen[riskhistory.FieldSatisfies]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldSatisfies) + fieldSeen[riskhistory.FieldSatisfies] = struct{}{} + } + case "details": + if _, ok := fieldSeen[riskhistory.FieldDetails]; !ok { + selectedFields = append(selectedFields, riskhistory.FieldDetails) + fieldSeen[riskhistory.FieldDetails] = struct{}{} } case "id": case "__typename": @@ -7087,19 +10291,19 @@ func (o *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opCt } } if !unknownSeen { - o.Select(selectedFields...) + rh.Select(selectedFields...) } return nil } -type organizationPaginateArgs struct { +type riskhistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []OrganizationPaginateOption + opts []RiskHistoryPaginateOption } -func newOrganizationPaginateArgs(rv map[string]any) *organizationPaginateArgs { - args := &organizationPaginateArgs{} +func newRiskHistoryPaginateArgs(rv map[string]any) *riskhistoryPaginateArgs { + args := &riskhistoryPaginateArgs{} if rv == nil { return args } @@ -7115,134 +10319,169 @@ func newOrganizationPaginateArgs(rv map[string]any) *organizationPaginateArgs { 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 = &OrganizationOrder{Field: &OrganizationOrderField{}, 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, WithOrganizationOrder(order)) - } - case *OrganizationOrder: - if v != nil { - args.opts = append(args.opts, WithOrganizationOrder(v)) - } - } - } - if v, ok := rv[whereField].(*OrganizationWhereInput); ok { - args.opts = append(args.opts, WithOrganizationFilter(v.Filter)) + if v, ok := rv[whereField].(*RiskHistoryWhereInput); ok { + args.opts = append(args.opts, WithRiskHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (oh *OrganizationHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationHistoryQuery, error) { +func (s *StandardQuery) CollectFields(ctx context.Context, satisfies ...string) (*StandardQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return oh, nil + return s, nil } - if err := oh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := s.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return oh, nil + return s, nil } -func (oh *OrganizationHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (s *StandardQuery) 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(organizationhistory.Columns)) - selectedFields = []string{organizationhistory.FieldID} + fieldSeen = make(map[string]struct{}, len(standard.Columns)) + selectedFields = []string{standard.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "historyTime": - if _, ok := fieldSeen[organizationhistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldHistoryTime) - fieldSeen[organizationhistory.FieldHistoryTime] = struct{}{} + + case "controlobjectives": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ControlObjectiveClient{config: s.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, controlobjectiveImplementors)...); err != nil { + return err } - case "ref": - if _, ok := fieldSeen[organizationhistory.FieldRef]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldRef) - fieldSeen[organizationhistory.FieldRef] = struct{}{} + s.WithNamedControlobjectives(alias, func(wq *ControlObjectiveQuery) { + *wq = *query + }) + + case "controls": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ControlClient{config: s.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, controlImplementors)...); err != nil { + return err } - case "operation": - if _, ok := fieldSeen[organizationhistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldOperation) - fieldSeen[organizationhistory.FieldOperation] = struct{}{} + s.WithNamedControls(alias, func(wq *ControlQuery) { + *wq = *query + }) + + case "procedures": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ProcedureClient{config: s.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, procedureImplementors)...); err != nil { + return err + } + s.WithNamedProcedures(alias, func(wq *ProcedureQuery) { + *wq = *query + }) + + case "actionplans": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ActionPlanClient{config: s.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, actionplanImplementors)...); err != nil { + return err } + s.WithNamedActionplans(alias, func(wq *ActionPlanQuery) { + *wq = *query + }) case "createdAt": - if _, ok := fieldSeen[organizationhistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldCreatedAt) - fieldSeen[organizationhistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[standard.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, standard.FieldCreatedAt) + fieldSeen[standard.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[organizationhistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldUpdatedAt) - fieldSeen[organizationhistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[standard.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, standard.FieldUpdatedAt) + fieldSeen[standard.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[organizationhistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldCreatedBy) - fieldSeen[organizationhistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[standard.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, standard.FieldCreatedBy) + fieldSeen[standard.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[organizationhistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldUpdatedBy) - fieldSeen[organizationhistory.FieldUpdatedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[organizationhistory.FieldTags]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldTags) - fieldSeen[organizationhistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[standard.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, standard.FieldUpdatedBy) + fieldSeen[standard.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[organizationhistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldDeletedAt) - fieldSeen[organizationhistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[standard.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, standard.FieldDeletedAt) + fieldSeen[standard.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[organizationhistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldDeletedBy) - fieldSeen[organizationhistory.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[standard.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, standard.FieldDeletedBy) + fieldSeen[standard.FieldDeletedBy] = struct{}{} } - case "name": - if _, ok := fieldSeen[organizationhistory.FieldName]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldName) - fieldSeen[organizationhistory.FieldName] = struct{}{} + case "tags": + if _, ok := fieldSeen[standard.FieldTags]; !ok { + selectedFields = append(selectedFields, standard.FieldTags) + fieldSeen[standard.FieldTags] = struct{}{} } - case "displayName": - if _, ok := fieldSeen[organizationhistory.FieldDisplayName]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldDisplayName) - fieldSeen[organizationhistory.FieldDisplayName] = struct{}{} + case "name": + if _, ok := fieldSeen[standard.FieldName]; !ok { + selectedFields = append(selectedFields, standard.FieldName) + fieldSeen[standard.FieldName] = struct{}{} } case "description": - if _, ok := fieldSeen[organizationhistory.FieldDescription]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldDescription) - fieldSeen[organizationhistory.FieldDescription] = struct{}{} + if _, ok := fieldSeen[standard.FieldDescription]; !ok { + selectedFields = append(selectedFields, standard.FieldDescription) + fieldSeen[standard.FieldDescription] = struct{}{} } - case "personalOrg": - if _, ok := fieldSeen[organizationhistory.FieldPersonalOrg]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldPersonalOrg) - fieldSeen[organizationhistory.FieldPersonalOrg] = struct{}{} + case "family": + if _, ok := fieldSeen[standard.FieldFamily]; !ok { + selectedFields = append(selectedFields, standard.FieldFamily) + fieldSeen[standard.FieldFamily] = struct{}{} } - case "avatarRemoteURL": - if _, ok := fieldSeen[organizationhistory.FieldAvatarRemoteURL]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldAvatarRemoteURL) - fieldSeen[organizationhistory.FieldAvatarRemoteURL] = struct{}{} + case "status": + if _, ok := fieldSeen[standard.FieldStatus]; !ok { + selectedFields = append(selectedFields, standard.FieldStatus) + fieldSeen[standard.FieldStatus] = struct{}{} } - case "dedicatedDb": - if _, ok := fieldSeen[organizationhistory.FieldDedicatedDb]; !ok { - selectedFields = append(selectedFields, organizationhistory.FieldDedicatedDb) - fieldSeen[organizationhistory.FieldDedicatedDb] = struct{}{} + case "standardType": + if _, ok := fieldSeen[standard.FieldStandardType]; !ok { + selectedFields = append(selectedFields, standard.FieldStandardType) + fieldSeen[standard.FieldStandardType] = struct{}{} + } + case "version": + if _, ok := fieldSeen[standard.FieldVersion]; !ok { + selectedFields = append(selectedFields, standard.FieldVersion) + fieldSeen[standard.FieldVersion] = struct{}{} + } + case "purposeAndScope": + if _, ok := fieldSeen[standard.FieldPurposeAndScope]; !ok { + selectedFields = append(selectedFields, standard.FieldPurposeAndScope) + fieldSeen[standard.FieldPurposeAndScope] = struct{}{} + } + case "background": + if _, ok := fieldSeen[standard.FieldBackground]; !ok { + selectedFields = append(selectedFields, standard.FieldBackground) + fieldSeen[standard.FieldBackground] = struct{}{} + } + case "satisfies": + if _, ok := fieldSeen[standard.FieldSatisfies]; !ok { + selectedFields = append(selectedFields, standard.FieldSatisfies) + fieldSeen[standard.FieldSatisfies] = struct{}{} + } + case "details": + if _, ok := fieldSeen[standard.FieldDetails]; !ok { + selectedFields = append(selectedFields, standard.FieldDetails) + fieldSeen[standard.FieldDetails] = struct{}{} } case "id": case "__typename": @@ -7251,19 +10490,19 @@ func (oh *OrganizationHistoryQuery) collectField(ctx context.Context, oneNode bo } } if !unknownSeen { - oh.Select(selectedFields...) + s.Select(selectedFields...) } return nil } -type organizationhistoryPaginateArgs struct { +type standardPaginateArgs struct { first, last *int after, before *Cursor - opts []OrganizationHistoryPaginateOption + opts []StandardPaginateOption } -func newOrganizationHistoryPaginateArgs(rv map[string]any) *organizationhistoryPaginateArgs { - args := &organizationhistoryPaginateArgs{} +func newStandardPaginateArgs(rv map[string]any) *standardPaginateArgs { + args := &standardPaginateArgs{} if rv == nil { return args } @@ -7279,157 +10518,132 @@ func newOrganizationHistoryPaginateArgs(rv map[string]any) *organizationhistoryP 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 = &OrganizationHistoryOrder{Field: &OrganizationHistoryOrderField{}, 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, WithOrganizationHistoryOrder(order)) - } - case *OrganizationHistoryOrder: - if v != nil { - args.opts = append(args.opts, WithOrganizationHistoryOrder(v)) - } - } - } - if v, ok := rv[whereField].(*OrganizationHistoryWhereInput); ok { - args.opts = append(args.opts, WithOrganizationHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*StandardWhereInput); ok { + args.opts = append(args.opts, WithStandardFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (os *OrganizationSettingQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationSettingQuery, error) { +func (sh *StandardHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*StandardHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return os, nil + return sh, nil } - if err := os.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := sh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return os, nil + return sh, nil } -func (os *OrganizationSettingQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (sh *StandardHistoryQuery) 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(organizationsetting.Columns)) - selectedFields = []string{organizationsetting.FieldID} + fieldSeen = make(map[string]struct{}, len(standardhistory.Columns)) + selectedFields = []string{standardhistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - - case "organization": - var ( - alias = field.Alias - path = append(path, alias) - query = (&OrganizationClient{config: os.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { - return err + case "historyTime": + if _, ok := fieldSeen[standardhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldHistoryTime) + fieldSeen[standardhistory.FieldHistoryTime] = struct{}{} } - os.withOrganization = query - if _, ok := fieldSeen[organizationsetting.FieldOrganizationID]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldOrganizationID) - fieldSeen[organizationsetting.FieldOrganizationID] = struct{}{} + case "ref": + if _, ok := fieldSeen[standardhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldRef) + fieldSeen[standardhistory.FieldRef] = struct{}{} } - - case "files": - var ( - alias = field.Alias - path = append(path, alias) - query = (&FileClient{config: os.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, fileImplementors)...); err != nil { - return err + case "operation": + if _, ok := fieldSeen[standardhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldOperation) + fieldSeen[standardhistory.FieldOperation] = struct{}{} } - os.WithNamedFiles(alias, func(wq *FileQuery) { - *wq = *query - }) case "createdAt": - if _, ok := fieldSeen[organizationsetting.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldCreatedAt) - fieldSeen[organizationsetting.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[standardhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldCreatedAt) + fieldSeen[standardhistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[organizationsetting.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldUpdatedAt) - fieldSeen[organizationsetting.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[standardhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldUpdatedAt) + fieldSeen[standardhistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[organizationsetting.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldCreatedBy) - fieldSeen[organizationsetting.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[standardhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldCreatedBy) + fieldSeen[standardhistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[organizationsetting.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldUpdatedBy) - fieldSeen[organizationsetting.FieldUpdatedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[organizationsetting.FieldTags]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldTags) - fieldSeen[organizationsetting.FieldTags] = struct{}{} + if _, ok := fieldSeen[standardhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldUpdatedBy) + fieldSeen[standardhistory.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[organizationsetting.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldDeletedAt) - fieldSeen[organizationsetting.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[standardhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldDeletedAt) + fieldSeen[standardhistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[organizationsetting.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldDeletedBy) - fieldSeen[organizationsetting.FieldDeletedBy] = struct{}{} - } - case "domains": - if _, ok := fieldSeen[organizationsetting.FieldDomains]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldDomains) - fieldSeen[organizationsetting.FieldDomains] = struct{}{} + if _, ok := fieldSeen[standardhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldDeletedBy) + fieldSeen[standardhistory.FieldDeletedBy] = struct{}{} } - case "billingContact": - if _, ok := fieldSeen[organizationsetting.FieldBillingContact]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldBillingContact) - fieldSeen[organizationsetting.FieldBillingContact] = struct{}{} - } - case "billingEmail": - if _, ok := fieldSeen[organizationsetting.FieldBillingEmail]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldBillingEmail) - fieldSeen[organizationsetting.FieldBillingEmail] = struct{}{} + case "tags": + if _, ok := fieldSeen[standardhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldTags) + fieldSeen[standardhistory.FieldTags] = struct{}{} } - case "billingPhone": - if _, ok := fieldSeen[organizationsetting.FieldBillingPhone]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldBillingPhone) - fieldSeen[organizationsetting.FieldBillingPhone] = struct{}{} + case "name": + if _, ok := fieldSeen[standardhistory.FieldName]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldName) + fieldSeen[standardhistory.FieldName] = struct{}{} } - case "billingAddress": - if _, ok := fieldSeen[organizationsetting.FieldBillingAddress]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldBillingAddress) - fieldSeen[organizationsetting.FieldBillingAddress] = struct{}{} + case "description": + if _, ok := fieldSeen[standardhistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldDescription) + fieldSeen[standardhistory.FieldDescription] = struct{}{} } - case "taxIdentifier": - if _, ok := fieldSeen[organizationsetting.FieldTaxIdentifier]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldTaxIdentifier) - fieldSeen[organizationsetting.FieldTaxIdentifier] = struct{}{} + case "family": + if _, ok := fieldSeen[standardhistory.FieldFamily]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldFamily) + fieldSeen[standardhistory.FieldFamily] = struct{}{} } - case "geoLocation": - if _, ok := fieldSeen[organizationsetting.FieldGeoLocation]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldGeoLocation) - fieldSeen[organizationsetting.FieldGeoLocation] = struct{}{} + case "status": + if _, ok := fieldSeen[standardhistory.FieldStatus]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldStatus) + fieldSeen[standardhistory.FieldStatus] = struct{}{} } - case "organizationID": - if _, ok := fieldSeen[organizationsetting.FieldOrganizationID]; !ok { - selectedFields = append(selectedFields, organizationsetting.FieldOrganizationID) - fieldSeen[organizationsetting.FieldOrganizationID] = struct{}{} + case "standardType": + if _, ok := fieldSeen[standardhistory.FieldStandardType]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldStandardType) + fieldSeen[standardhistory.FieldStandardType] = struct{}{} + } + case "version": + if _, ok := fieldSeen[standardhistory.FieldVersion]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldVersion) + fieldSeen[standardhistory.FieldVersion] = struct{}{} + } + case "purposeAndScope": + if _, ok := fieldSeen[standardhistory.FieldPurposeAndScope]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldPurposeAndScope) + fieldSeen[standardhistory.FieldPurposeAndScope] = struct{}{} + } + case "background": + if _, ok := fieldSeen[standardhistory.FieldBackground]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldBackground) + fieldSeen[standardhistory.FieldBackground] = struct{}{} + } + case "satisfies": + if _, ok := fieldSeen[standardhistory.FieldSatisfies]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldSatisfies) + fieldSeen[standardhistory.FieldSatisfies] = struct{}{} + } + case "details": + if _, ok := fieldSeen[standardhistory.FieldDetails]; !ok { + selectedFields = append(selectedFields, standardhistory.FieldDetails) + fieldSeen[standardhistory.FieldDetails] = struct{}{} } case "id": case "__typename": @@ -7438,19 +10652,19 @@ func (os *OrganizationSettingQuery) collectField(ctx context.Context, oneNode bo } } if !unknownSeen { - os.Select(selectedFields...) + sh.Select(selectedFields...) } return nil } -type organizationsettingPaginateArgs struct { +type standardhistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []OrganizationSettingPaginateOption + opts []StandardHistoryPaginateOption } -func newOrganizationSettingPaginateArgs(rv map[string]any) *organizationsettingPaginateArgs { - args := &organizationsettingPaginateArgs{} +func newStandardHistoryPaginateArgs(rv map[string]any) *standardhistoryPaginateArgs { + args := &standardhistoryPaginateArgs{} if rv == nil { return args } @@ -7466,122 +10680,184 @@ func newOrganizationSettingPaginateArgs(rv map[string]any) *organizationsettingP if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*OrganizationSettingWhereInput); ok { - args.opts = append(args.opts, WithOrganizationSettingFilter(v.Filter)) + if v, ok := rv[whereField].(*StandardHistoryWhereInput); ok { + args.opts = append(args.opts, WithStandardHistoryFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (osh *OrganizationSettingHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*OrganizationSettingHistoryQuery, error) { +func (s *SubcontrolQuery) CollectFields(ctx context.Context, satisfies ...string) (*SubcontrolQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return osh, nil + return s, nil } - if err := osh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := s.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return osh, nil + return s, nil } -func (osh *OrganizationSettingHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (s *SubcontrolQuery) 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(organizationsettinghistory.Columns)) - selectedFields = []string{organizationsettinghistory.FieldID} + fieldSeen = make(map[string]struct{}, len(subcontrol.Columns)) + selectedFields = []string{subcontrol.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - case "historyTime": - if _, ok := fieldSeen[organizationsettinghistory.FieldHistoryTime]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldHistoryTime) - fieldSeen[organizationsettinghistory.FieldHistoryTime] = struct{}{} + + case "control": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ControlClient{config: s.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, controlImplementors)...); err != nil { + return err } - case "ref": - if _, ok := fieldSeen[organizationsettinghistory.FieldRef]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldRef) - fieldSeen[organizationsettinghistory.FieldRef] = struct{}{} + s.WithNamedControl(alias, func(wq *ControlQuery) { + *wq = *query + }) + + case "user": + var ( + alias = field.Alias + path = append(path, alias) + query = (&UserClient{config: s.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { + return err } - case "operation": - if _, ok := fieldSeen[organizationsettinghistory.FieldOperation]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldOperation) - fieldSeen[organizationsettinghistory.FieldOperation] = struct{}{} + s.WithNamedUser(alias, func(wq *UserQuery) { + *wq = *query + }) + + case "notes": + var ( + alias = field.Alias + path = append(path, alias) + query = (&NoteClient{config: s.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, noteImplementors)...); err != nil { + return err } + s.withNotes = query case "createdAt": - if _, ok := fieldSeen[organizationsettinghistory.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldCreatedAt) - fieldSeen[organizationsettinghistory.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[subcontrol.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldCreatedAt) + fieldSeen[subcontrol.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[organizationsettinghistory.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldUpdatedAt) - fieldSeen[organizationsettinghistory.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[subcontrol.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldUpdatedAt) + fieldSeen[subcontrol.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[organizationsettinghistory.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldCreatedBy) - fieldSeen[organizationsettinghistory.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[subcontrol.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldCreatedBy) + fieldSeen[subcontrol.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[organizationsettinghistory.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldUpdatedBy) - fieldSeen[organizationsettinghistory.FieldUpdatedBy] = struct{}{} - } - case "tags": - if _, ok := fieldSeen[organizationsettinghistory.FieldTags]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldTags) - fieldSeen[organizationsettinghistory.FieldTags] = struct{}{} + if _, ok := fieldSeen[subcontrol.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldUpdatedBy) + fieldSeen[subcontrol.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[organizationsettinghistory.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldDeletedAt) - fieldSeen[organizationsettinghistory.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[subcontrol.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldDeletedAt) + fieldSeen[subcontrol.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[organizationsettinghistory.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldDeletedBy) - fieldSeen[organizationsettinghistory.FieldDeletedBy] = struct{}{} - } - case "domains": - if _, ok := fieldSeen[organizationsettinghistory.FieldDomains]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldDomains) - fieldSeen[organizationsettinghistory.FieldDomains] = struct{}{} - } - case "billingContact": - if _, ok := fieldSeen[organizationsettinghistory.FieldBillingContact]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldBillingContact) - fieldSeen[organizationsettinghistory.FieldBillingContact] = struct{}{} + if _, ok := fieldSeen[subcontrol.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldDeletedBy) + fieldSeen[subcontrol.FieldDeletedBy] = struct{}{} } - case "billingEmail": - if _, ok := fieldSeen[organizationsettinghistory.FieldBillingEmail]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldBillingEmail) - fieldSeen[organizationsettinghistory.FieldBillingEmail] = struct{}{} + case "tags": + if _, ok := fieldSeen[subcontrol.FieldTags]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldTags) + fieldSeen[subcontrol.FieldTags] = struct{}{} } - case "billingPhone": - if _, ok := fieldSeen[organizationsettinghistory.FieldBillingPhone]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldBillingPhone) - fieldSeen[organizationsettinghistory.FieldBillingPhone] = struct{}{} + case "name": + if _, ok := fieldSeen[subcontrol.FieldName]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldName) + fieldSeen[subcontrol.FieldName] = struct{}{} } - case "billingAddress": - if _, ok := fieldSeen[organizationsettinghistory.FieldBillingAddress]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldBillingAddress) - fieldSeen[organizationsettinghistory.FieldBillingAddress] = struct{}{} + case "description": + if _, ok := fieldSeen[subcontrol.FieldDescription]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldDescription) + fieldSeen[subcontrol.FieldDescription] = struct{}{} } - case "taxIdentifier": - if _, ok := fieldSeen[organizationsettinghistory.FieldTaxIdentifier]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldTaxIdentifier) - fieldSeen[organizationsettinghistory.FieldTaxIdentifier] = struct{}{} + case "status": + if _, ok := fieldSeen[subcontrol.FieldStatus]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldStatus) + fieldSeen[subcontrol.FieldStatus] = struct{}{} } - case "geoLocation": - if _, ok := fieldSeen[organizationsettinghistory.FieldGeoLocation]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldGeoLocation) - fieldSeen[organizationsettinghistory.FieldGeoLocation] = struct{}{} + case "subcontrolType": + if _, ok := fieldSeen[subcontrol.FieldSubcontrolType]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldSubcontrolType) + fieldSeen[subcontrol.FieldSubcontrolType] = struct{}{} } - case "organizationID": - if _, ok := fieldSeen[organizationsettinghistory.FieldOrganizationID]; !ok { - selectedFields = append(selectedFields, organizationsettinghistory.FieldOrganizationID) - fieldSeen[organizationsettinghistory.FieldOrganizationID] = struct{}{} + case "version": + if _, ok := fieldSeen[subcontrol.FieldVersion]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldVersion) + fieldSeen[subcontrol.FieldVersion] = struct{}{} + } + case "subcontrolNumber": + if _, ok := fieldSeen[subcontrol.FieldSubcontrolNumber]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldSubcontrolNumber) + fieldSeen[subcontrol.FieldSubcontrolNumber] = struct{}{} + } + case "family": + if _, ok := fieldSeen[subcontrol.FieldFamily]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldFamily) + fieldSeen[subcontrol.FieldFamily] = struct{}{} + } + case "class": + if _, ok := fieldSeen[subcontrol.FieldClass]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldClass) + fieldSeen[subcontrol.FieldClass] = struct{}{} + } + case "source": + if _, ok := fieldSeen[subcontrol.FieldSource]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldSource) + fieldSeen[subcontrol.FieldSource] = struct{}{} + } + case "mappedFrameworks": + if _, ok := fieldSeen[subcontrol.FieldMappedFrameworks]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldMappedFrameworks) + fieldSeen[subcontrol.FieldMappedFrameworks] = struct{}{} + } + case "implementationEvidence": + if _, ok := fieldSeen[subcontrol.FieldImplementationEvidence]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldImplementationEvidence) + fieldSeen[subcontrol.FieldImplementationEvidence] = struct{}{} + } + case "implementationStatus": + if _, ok := fieldSeen[subcontrol.FieldImplementationStatus]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldImplementationStatus) + fieldSeen[subcontrol.FieldImplementationStatus] = struct{}{} + } + case "implementationDate": + if _, ok := fieldSeen[subcontrol.FieldImplementationDate]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldImplementationDate) + fieldSeen[subcontrol.FieldImplementationDate] = struct{}{} + } + case "implementationVerification": + if _, ok := fieldSeen[subcontrol.FieldImplementationVerification]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldImplementationVerification) + fieldSeen[subcontrol.FieldImplementationVerification] = struct{}{} + } + case "implementationVerificationDate": + if _, ok := fieldSeen[subcontrol.FieldImplementationVerificationDate]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldImplementationVerificationDate) + fieldSeen[subcontrol.FieldImplementationVerificationDate] = struct{}{} + } + case "details": + if _, ok := fieldSeen[subcontrol.FieldDetails]; !ok { + selectedFields = append(selectedFields, subcontrol.FieldDetails) + fieldSeen[subcontrol.FieldDetails] = struct{}{} } case "id": case "__typename": @@ -7590,19 +10866,19 @@ func (osh *OrganizationSettingHistoryQuery) collectField(ctx context.Context, on } } if !unknownSeen { - osh.Select(selectedFields...) + s.Select(selectedFields...) } return nil } -type organizationsettinghistoryPaginateArgs struct { +type subcontrolPaginateArgs struct { first, last *int after, before *Cursor - opts []OrganizationSettingHistoryPaginateOption + opts []SubcontrolPaginateOption } -func newOrganizationSettingHistoryPaginateArgs(rv map[string]any) *organizationsettinghistoryPaginateArgs { - args := &organizationsettinghistoryPaginateArgs{} +func newSubcontrolPaginateArgs(rv map[string]any) *subcontrolPaginateArgs { + args := &subcontrolPaginateArgs{} if rv == nil { return args } @@ -7618,138 +10894,162 @@ func newOrganizationSettingHistoryPaginateArgs(rv map[string]any) *organizations if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*OrganizationSettingHistoryWhereInput); ok { - args.opts = append(args.opts, WithOrganizationSettingHistoryFilter(v.Filter)) + if v, ok := rv[whereField].(*SubcontrolWhereInput); ok { + args.opts = append(args.opts, WithSubcontrolFilter(v.Filter)) } return args } // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. -func (pat *PersonalAccessTokenQuery) CollectFields(ctx context.Context, satisfies ...string) (*PersonalAccessTokenQuery, error) { +func (sh *SubcontrolHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*SubcontrolHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) if fc == nil { - return pat, nil + return sh, nil } - if err := pat.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + if err := sh.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { return nil, err } - return pat, nil + return sh, nil } -func (pat *PersonalAccessTokenQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { +func (sh *SubcontrolHistoryQuery) 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(personalaccesstoken.Columns)) - selectedFields = []string{personalaccesstoken.FieldID} + fieldSeen = make(map[string]struct{}, len(subcontrolhistory.Columns)) + selectedFields = []string{subcontrolhistory.FieldID} ) for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { switch field.Name { - - case "owner": - var ( - alias = field.Alias - path = append(path, alias) - query = (&UserClient{config: pat.config}).Query() - ) - if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { - return err - } - pat.withOwner = query - if _, ok := fieldSeen[personalaccesstoken.FieldOwnerID]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldOwnerID) - fieldSeen[personalaccesstoken.FieldOwnerID] = struct{}{} + case "historyTime": + if _, ok := fieldSeen[subcontrolhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldHistoryTime) + fieldSeen[subcontrolhistory.FieldHistoryTime] = struct{}{} } - - case "organizations": - var ( - alias = field.Alias - path = append(path, alias) - query = (&OrganizationClient{config: pat.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, organizationImplementors)...); err != nil { - return err + case "ref": + if _, ok := fieldSeen[subcontrolhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldRef) + fieldSeen[subcontrolhistory.FieldRef] = struct{}{} } - pat.WithNamedOrganizations(alias, func(wq *OrganizationQuery) { - *wq = *query - }) - - case "events": - var ( - alias = field.Alias - path = append(path, alias) - query = (&EventClient{config: pat.config}).Query() - ) - if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, eventImplementors)...); err != nil { - return err + case "operation": + if _, ok := fieldSeen[subcontrolhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldOperation) + fieldSeen[subcontrolhistory.FieldOperation] = struct{}{} } - pat.WithNamedEvents(alias, func(wq *EventQuery) { - *wq = *query - }) case "createdAt": - if _, ok := fieldSeen[personalaccesstoken.FieldCreatedAt]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldCreatedAt) - fieldSeen[personalaccesstoken.FieldCreatedAt] = struct{}{} + if _, ok := fieldSeen[subcontrolhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldCreatedAt) + fieldSeen[subcontrolhistory.FieldCreatedAt] = struct{}{} } case "updatedAt": - if _, ok := fieldSeen[personalaccesstoken.FieldUpdatedAt]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldUpdatedAt) - fieldSeen[personalaccesstoken.FieldUpdatedAt] = struct{}{} + if _, ok := fieldSeen[subcontrolhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldUpdatedAt) + fieldSeen[subcontrolhistory.FieldUpdatedAt] = struct{}{} } case "createdBy": - if _, ok := fieldSeen[personalaccesstoken.FieldCreatedBy]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldCreatedBy) - fieldSeen[personalaccesstoken.FieldCreatedBy] = struct{}{} + if _, ok := fieldSeen[subcontrolhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldCreatedBy) + fieldSeen[subcontrolhistory.FieldCreatedBy] = struct{}{} } case "updatedBy": - if _, ok := fieldSeen[personalaccesstoken.FieldUpdatedBy]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldUpdatedBy) - fieldSeen[personalaccesstoken.FieldUpdatedBy] = struct{}{} + if _, ok := fieldSeen[subcontrolhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldUpdatedBy) + fieldSeen[subcontrolhistory.FieldUpdatedBy] = struct{}{} } case "deletedAt": - if _, ok := fieldSeen[personalaccesstoken.FieldDeletedAt]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldDeletedAt) - fieldSeen[personalaccesstoken.FieldDeletedAt] = struct{}{} + if _, ok := fieldSeen[subcontrolhistory.FieldDeletedAt]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldDeletedAt) + fieldSeen[subcontrolhistory.FieldDeletedAt] = struct{}{} } case "deletedBy": - if _, ok := fieldSeen[personalaccesstoken.FieldDeletedBy]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldDeletedBy) - fieldSeen[personalaccesstoken.FieldDeletedBy] = struct{}{} + if _, ok := fieldSeen[subcontrolhistory.FieldDeletedBy]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldDeletedBy) + fieldSeen[subcontrolhistory.FieldDeletedBy] = struct{}{} } case "tags": - if _, ok := fieldSeen[personalaccesstoken.FieldTags]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldTags) - fieldSeen[personalaccesstoken.FieldTags] = struct{}{} + if _, ok := fieldSeen[subcontrolhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldTags) + fieldSeen[subcontrolhistory.FieldTags] = struct{}{} } case "name": - if _, ok := fieldSeen[personalaccesstoken.FieldName]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldName) - fieldSeen[personalaccesstoken.FieldName] = struct{}{} - } - case "token": - if _, ok := fieldSeen[personalaccesstoken.FieldToken]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldToken) - fieldSeen[personalaccesstoken.FieldToken] = struct{}{} - } - case "expiresAt": - if _, ok := fieldSeen[personalaccesstoken.FieldExpiresAt]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldExpiresAt) - fieldSeen[personalaccesstoken.FieldExpiresAt] = struct{}{} + if _, ok := fieldSeen[subcontrolhistory.FieldName]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldName) + fieldSeen[subcontrolhistory.FieldName] = struct{}{} } case "description": - if _, ok := fieldSeen[personalaccesstoken.FieldDescription]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldDescription) - fieldSeen[personalaccesstoken.FieldDescription] = struct{}{} + if _, ok := fieldSeen[subcontrolhistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldDescription) + fieldSeen[subcontrolhistory.FieldDescription] = struct{}{} } - case "scopes": - if _, ok := fieldSeen[personalaccesstoken.FieldScopes]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldScopes) - fieldSeen[personalaccesstoken.FieldScopes] = struct{}{} + case "status": + if _, ok := fieldSeen[subcontrolhistory.FieldStatus]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldStatus) + fieldSeen[subcontrolhistory.FieldStatus] = struct{}{} } - case "lastUsedAt": - if _, ok := fieldSeen[personalaccesstoken.FieldLastUsedAt]; !ok { - selectedFields = append(selectedFields, personalaccesstoken.FieldLastUsedAt) - fieldSeen[personalaccesstoken.FieldLastUsedAt] = struct{}{} + case "subcontrolType": + if _, ok := fieldSeen[subcontrolhistory.FieldSubcontrolType]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldSubcontrolType) + fieldSeen[subcontrolhistory.FieldSubcontrolType] = struct{}{} + } + case "version": + if _, ok := fieldSeen[subcontrolhistory.FieldVersion]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldVersion) + fieldSeen[subcontrolhistory.FieldVersion] = struct{}{} + } + case "subcontrolNumber": + if _, ok := fieldSeen[subcontrolhistory.FieldSubcontrolNumber]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldSubcontrolNumber) + fieldSeen[subcontrolhistory.FieldSubcontrolNumber] = struct{}{} + } + case "family": + if _, ok := fieldSeen[subcontrolhistory.FieldFamily]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldFamily) + fieldSeen[subcontrolhistory.FieldFamily] = struct{}{} + } + case "class": + if _, ok := fieldSeen[subcontrolhistory.FieldClass]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldClass) + fieldSeen[subcontrolhistory.FieldClass] = struct{}{} + } + case "source": + if _, ok := fieldSeen[subcontrolhistory.FieldSource]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldSource) + fieldSeen[subcontrolhistory.FieldSource] = struct{}{} + } + case "mappedFrameworks": + if _, ok := fieldSeen[subcontrolhistory.FieldMappedFrameworks]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldMappedFrameworks) + fieldSeen[subcontrolhistory.FieldMappedFrameworks] = struct{}{} + } + case "implementationEvidence": + if _, ok := fieldSeen[subcontrolhistory.FieldImplementationEvidence]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldImplementationEvidence) + fieldSeen[subcontrolhistory.FieldImplementationEvidence] = struct{}{} + } + case "implementationStatus": + if _, ok := fieldSeen[subcontrolhistory.FieldImplementationStatus]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldImplementationStatus) + fieldSeen[subcontrolhistory.FieldImplementationStatus] = struct{}{} + } + case "implementationDate": + if _, ok := fieldSeen[subcontrolhistory.FieldImplementationDate]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldImplementationDate) + fieldSeen[subcontrolhistory.FieldImplementationDate] = struct{}{} + } + case "implementationVerification": + if _, ok := fieldSeen[subcontrolhistory.FieldImplementationVerification]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldImplementationVerification) + fieldSeen[subcontrolhistory.FieldImplementationVerification] = struct{}{} + } + case "implementationVerificationDate": + if _, ok := fieldSeen[subcontrolhistory.FieldImplementationVerificationDate]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldImplementationVerificationDate) + fieldSeen[subcontrolhistory.FieldImplementationVerificationDate] = struct{}{} + } + case "details": + if _, ok := fieldSeen[subcontrolhistory.FieldDetails]; !ok { + selectedFields = append(selectedFields, subcontrolhistory.FieldDetails) + fieldSeen[subcontrolhistory.FieldDetails] = struct{}{} } case "id": case "__typename": @@ -7758,19 +11058,19 @@ func (pat *PersonalAccessTokenQuery) collectField(ctx context.Context, oneNode b } } if !unknownSeen { - pat.Select(selectedFields...) + sh.Select(selectedFields...) } return nil } -type personalaccesstokenPaginateArgs struct { +type subcontrolhistoryPaginateArgs struct { first, last *int after, before *Cursor - opts []PersonalAccessTokenPaginateOption + opts []SubcontrolHistoryPaginateOption } -func newPersonalAccessTokenPaginateArgs(rv map[string]any) *personalaccesstokenPaginateArgs { - args := &personalaccesstokenPaginateArgs{} +func newSubcontrolHistoryPaginateArgs(rv map[string]any) *subcontrolhistoryPaginateArgs { + args := &subcontrolhistoryPaginateArgs{} if rv == nil { return args } @@ -7786,8 +11086,8 @@ func newPersonalAccessTokenPaginateArgs(rv map[string]any) *personalaccesstokenP if v := rv[beforeField]; v != nil { args.before = v.(*Cursor) } - if v, ok := rv[whereField].(*PersonalAccessTokenWhereInput); ok { - args.opts = append(args.opts, WithPersonalAccessTokenFilter(v.Filter)) + if v, ok := rv[whereField].(*SubcontrolHistoryWhereInput); ok { + args.opts = append(args.opts, WithSubcontrolHistoryFilter(v.Filter)) } return args } @@ -8559,6 +11859,32 @@ func (u *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *graph *wq = *query }) + case "actionplans": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ActionPlanClient{config: u.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, actionplanImplementors)...); err != nil { + return err + } + u.WithNamedActionplans(alias, func(wq *ActionPlanQuery) { + *wq = *query + }) + + case "subcontrols": + var ( + alias = field.Alias + path = append(path, alias) + query = (&SubcontrolClient{config: u.config}).Query() + ) + if err := query.collectField(ctx, false, opCtx, field, path, mayAddCondition(satisfies, subcontrolImplementors)...); err != nil { + return err + } + u.WithNamedSubcontrols(alias, func(wq *SubcontrolQuery) { + *wq = *query + }) + case "groupMemberships": var ( alias = field.Alias diff --git a/internal/ent/generated/gql_edge.go b/internal/ent/generated/gql_edge.go index 79952f04..a82b32d6 100644 --- a/internal/ent/generated/gql_edge.go +++ b/internal/ent/generated/gql_edge.go @@ -16,6 +16,54 @@ func (at *APIToken) Owner(ctx context.Context) (*Organization, error) { return result, MaskNotFound(err) } +func (ap *ActionPlan) Standard(ctx context.Context) (result []*Standard, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = ap.NamedStandard(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = ap.Edges.StandardOrErr() + } + if IsNotLoaded(err) { + result, err = ap.QueryStandard().All(ctx) + } + return result, err +} + +func (ap *ActionPlan) Risk(ctx context.Context) (result []*Risk, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = ap.NamedRisk(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = ap.Edges.RiskOrErr() + } + if IsNotLoaded(err) { + result, err = ap.QueryRisk().All(ctx) + } + return result, err +} + +func (ap *ActionPlan) Control(ctx context.Context) (result []*Control, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = ap.NamedControl(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = ap.Edges.ControlOrErr() + } + if IsNotLoaded(err) { + result, err = ap.QueryControl().All(ctx) + } + return result, err +} + +func (ap *ActionPlan) User(ctx context.Context) (result []*User, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = ap.NamedUser(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = ap.Edges.UserOrErr() + } + if IsNotLoaded(err) { + result, err = ap.QueryUser().All(ctx) + } + return result, err +} + func (c *Contact) Owner(ctx context.Context) (*Organization, error) { result, err := c.Edges.OwnerOrErr() if IsNotLoaded(err) { @@ -48,6 +96,174 @@ func (c *Contact) Files(ctx context.Context) (result []*File, err error) { return result, err } +func (c *Control) Procedures(ctx context.Context) (result []*Procedure, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = c.NamedProcedures(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = c.Edges.ProceduresOrErr() + } + if IsNotLoaded(err) { + result, err = c.QueryProcedures().All(ctx) + } + return result, err +} + +func (c *Control) Subcontrols(ctx context.Context) (result []*Subcontrol, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = c.NamedSubcontrols(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = c.Edges.SubcontrolsOrErr() + } + if IsNotLoaded(err) { + result, err = c.QuerySubcontrols().All(ctx) + } + return result, err +} + +func (c *Control) Controlobjectives(ctx context.Context) (result []*ControlObjective, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = c.NamedControlobjectives(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = c.Edges.ControlobjectivesOrErr() + } + if IsNotLoaded(err) { + result, err = c.QueryControlobjectives().All(ctx) + } + return result, err +} + +func (c *Control) Standard(ctx context.Context) (result []*Standard, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = c.NamedStandard(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = c.Edges.StandardOrErr() + } + if IsNotLoaded(err) { + result, err = c.QueryStandard().All(ctx) + } + return result, err +} + +func (c *Control) Narratives(ctx context.Context) (result []*Narrative, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = c.NamedNarratives(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = c.Edges.NarrativesOrErr() + } + if IsNotLoaded(err) { + result, err = c.QueryNarratives().All(ctx) + } + return result, err +} + +func (c *Control) Risks(ctx context.Context) (result []*Risk, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = c.NamedRisks(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = c.Edges.RisksOrErr() + } + if IsNotLoaded(err) { + result, err = c.QueryRisks().All(ctx) + } + return result, err +} + +func (c *Control) Actionplans(ctx context.Context) (result []*ActionPlan, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = c.NamedActionplans(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = c.Edges.ActionplansOrErr() + } + if IsNotLoaded(err) { + result, err = c.QueryActionplans().All(ctx) + } + return result, err +} + +func (co *ControlObjective) Policy(ctx context.Context) (result []*InternalPolicy, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = co.NamedPolicy(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = co.Edges.PolicyOrErr() + } + if IsNotLoaded(err) { + result, err = co.QueryPolicy().All(ctx) + } + return result, err +} + +func (co *ControlObjective) Controls(ctx context.Context) (result []*Control, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = co.NamedControls(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = co.Edges.ControlsOrErr() + } + if IsNotLoaded(err) { + result, err = co.QueryControls().All(ctx) + } + return result, err +} + +func (co *ControlObjective) Procedures(ctx context.Context) (result []*Procedure, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = co.NamedProcedures(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = co.Edges.ProceduresOrErr() + } + if IsNotLoaded(err) { + result, err = co.QueryProcedures().All(ctx) + } + return result, err +} + +func (co *ControlObjective) Risks(ctx context.Context) (result []*Risk, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = co.NamedRisks(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = co.Edges.RisksOrErr() + } + if IsNotLoaded(err) { + result, err = co.QueryRisks().All(ctx) + } + return result, err +} + +func (co *ControlObjective) Subcontrols(ctx context.Context) (result []*Subcontrol, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = co.NamedSubcontrols(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = co.Edges.SubcontrolsOrErr() + } + if IsNotLoaded(err) { + result, err = co.QuerySubcontrols().All(ctx) + } + return result, err +} + +func (co *ControlObjective) Standard(ctx context.Context) (result []*Standard, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = co.NamedStandard(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = co.Edges.StandardOrErr() + } + if IsNotLoaded(err) { + result, err = co.QueryStandard().All(ctx) + } + return result, err +} + +func (co *ControlObjective) Narratives(ctx context.Context) (result []*Narrative, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = co.NamedNarratives(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = co.Edges.NarrativesOrErr() + } + if IsNotLoaded(err) { + result, err = co.QueryNarratives().All(ctx) + } + return result, err +} + func (dd *DocumentData) Owner(ctx context.Context) (*Organization, error) { result, err := dd.Edges.OwnerOrErr() if IsNotLoaded(err) { @@ -872,6 +1088,54 @@ func (i *Integration) Webhooks(ctx context.Context) (result []*Webhook, err erro return result, err } +func (ip *InternalPolicy) Controlobjectives(ctx context.Context) (result []*ControlObjective, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = ip.NamedControlobjectives(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = ip.Edges.ControlobjectivesOrErr() + } + if IsNotLoaded(err) { + result, err = ip.QueryControlobjectives().All(ctx) + } + return result, err +} + +func (ip *InternalPolicy) Controls(ctx context.Context) (result []*Control, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = ip.NamedControls(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = ip.Edges.ControlsOrErr() + } + if IsNotLoaded(err) { + result, err = ip.QueryControls().All(ctx) + } + return result, err +} + +func (ip *InternalPolicy) Procedures(ctx context.Context) (result []*Procedure, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = ip.NamedProcedures(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = ip.Edges.ProceduresOrErr() + } + if IsNotLoaded(err) { + result, err = ip.QueryProcedures().All(ctx) + } + return result, err +} + +func (ip *InternalPolicy) Narratives(ctx context.Context) (result []*Narrative, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = ip.NamedNarratives(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = ip.Edges.NarrativesOrErr() + } + if IsNotLoaded(err) { + result, err = ip.QueryNarratives().All(ctx) + } + return result, err +} + func (i *Invite) Owner(ctx context.Context) (*Organization, error) { result, err := i.Edges.OwnerOrErr() if IsNotLoaded(err) { @@ -892,6 +1156,54 @@ func (i *Invite) Events(ctx context.Context) (result []*Event, err error) { return result, err } +func (n *Narrative) Policy(ctx context.Context) (result []*InternalPolicy, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = n.NamedPolicy(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = n.Edges.PolicyOrErr() + } + if IsNotLoaded(err) { + result, err = n.QueryPolicy().All(ctx) + } + return result, err +} + +func (n *Narrative) Control(ctx context.Context) (result []*Control, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = n.NamedControl(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = n.Edges.ControlOrErr() + } + if IsNotLoaded(err) { + result, err = n.QueryControl().All(ctx) + } + return result, err +} + +func (n *Narrative) Procedure(ctx context.Context) (result []*Procedure, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = n.NamedProcedure(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = n.Edges.ProcedureOrErr() + } + if IsNotLoaded(err) { + result, err = n.QueryProcedure().All(ctx) + } + return result, err +} + +func (n *Narrative) Controlobjective(ctx context.Context) (result []*ControlObjective, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = n.NamedControlobjective(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = n.Edges.ControlobjectiveOrErr() + } + if IsNotLoaded(err) { + result, err = n.QueryControlobjective().All(ctx) + } + return result, err +} + func (n *Note) Owner(ctx context.Context) (*Organization, error) { result, err := n.Edges.OwnerOrErr() if IsNotLoaded(err) { @@ -908,6 +1220,18 @@ func (n *Note) Entity(ctx context.Context) (*Entity, error) { return result, MaskNotFound(err) } +func (n *Note) Subcontrols(ctx context.Context) (result []*Subcontrol, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = n.NamedSubcontrols(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = n.Edges.SubcontrolsOrErr() + } + if IsNotLoaded(err) { + result, err = n.QuerySubcontrols().All(ctx) + } + return result, err +} + func (op *OauthProvider) Owner(ctx context.Context) (*Organization, error) { result, err := op.Edges.OwnerOrErr() if IsNotLoaded(err) { @@ -1345,6 +1669,170 @@ func (pat *PersonalAccessToken) Events(ctx context.Context) (result []*Event, er return result, err } +func (pr *Procedure) Control(ctx context.Context) (result []*Control, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = pr.NamedControl(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = pr.Edges.ControlOrErr() + } + if IsNotLoaded(err) { + result, err = pr.QueryControl().All(ctx) + } + return result, err +} + +func (pr *Procedure) Internalpolicy(ctx context.Context) (result []*InternalPolicy, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = pr.NamedInternalpolicy(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = pr.Edges.InternalpolicyOrErr() + } + if IsNotLoaded(err) { + result, err = pr.QueryInternalpolicy().All(ctx) + } + return result, err +} + +func (pr *Procedure) Narratives(ctx context.Context) (result []*Narrative, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = pr.NamedNarratives(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = pr.Edges.NarrativesOrErr() + } + if IsNotLoaded(err) { + result, err = pr.QueryNarratives().All(ctx) + } + return result, err +} + +func (pr *Procedure) Risks(ctx context.Context) (result []*Risk, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = pr.NamedRisks(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = pr.Edges.RisksOrErr() + } + if IsNotLoaded(err) { + result, err = pr.QueryRisks().All(ctx) + } + return result, err +} + +func (r *Risk) Control(ctx context.Context) (result []*Control, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = r.NamedControl(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = r.Edges.ControlOrErr() + } + if IsNotLoaded(err) { + result, err = r.QueryControl().All(ctx) + } + return result, err +} + +func (r *Risk) Procedure(ctx context.Context) (result []*Procedure, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = r.NamedProcedure(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = r.Edges.ProcedureOrErr() + } + if IsNotLoaded(err) { + result, err = r.QueryProcedure().All(ctx) + } + return result, err +} + +func (r *Risk) Actionplans(ctx context.Context) (result []*ActionPlan, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = r.NamedActionplans(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = r.Edges.ActionplansOrErr() + } + if IsNotLoaded(err) { + result, err = r.QueryActionplans().All(ctx) + } + return result, err +} + +func (s *Standard) Controlobjectives(ctx context.Context) (result []*ControlObjective, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = s.NamedControlobjectives(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = s.Edges.ControlobjectivesOrErr() + } + if IsNotLoaded(err) { + result, err = s.QueryControlobjectives().All(ctx) + } + return result, err +} + +func (s *Standard) Controls(ctx context.Context) (result []*Control, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = s.NamedControls(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = s.Edges.ControlsOrErr() + } + if IsNotLoaded(err) { + result, err = s.QueryControls().All(ctx) + } + return result, err +} + +func (s *Standard) Procedures(ctx context.Context) (result []*Procedure, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = s.NamedProcedures(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = s.Edges.ProceduresOrErr() + } + if IsNotLoaded(err) { + result, err = s.QueryProcedures().All(ctx) + } + return result, err +} + +func (s *Standard) Actionplans(ctx context.Context) (result []*ActionPlan, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = s.NamedActionplans(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = s.Edges.ActionplansOrErr() + } + if IsNotLoaded(err) { + result, err = s.QueryActionplans().All(ctx) + } + return result, err +} + +func (s *Subcontrol) Control(ctx context.Context) (result []*Control, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = s.NamedControl(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = s.Edges.ControlOrErr() + } + if IsNotLoaded(err) { + result, err = s.QueryControl().All(ctx) + } + return result, err +} + +func (s *Subcontrol) User(ctx context.Context) (result []*User, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = s.NamedUser(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = s.Edges.UserOrErr() + } + if IsNotLoaded(err) { + result, err = s.QueryUser().All(ctx) + } + return result, err +} + +func (s *Subcontrol) Notes(ctx context.Context) (*Note, error) { + result, err := s.Edges.NotesOrErr() + if IsNotLoaded(err) { + result, err = s.QueryNotes().Only(ctx) + } + return result, MaskNotFound(err) +} + func (s *Subscriber) Owner(ctx context.Context) (*Organization, error) { result, err := s.Edges.OwnerOrErr() if IsNotLoaded(err) { @@ -1493,6 +1981,30 @@ func (u *User) Events(ctx context.Context) (result []*Event, err error) { return result, err } +func (u *User) Actionplans(ctx context.Context) (result []*ActionPlan, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = u.NamedActionplans(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = u.Edges.ActionplansOrErr() + } + if IsNotLoaded(err) { + result, err = u.QueryActionplans().All(ctx) + } + return result, err +} + +func (u *User) Subcontrols(ctx context.Context) (result []*Subcontrol, err error) { + if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { + result, err = u.NamedSubcontrols(graphql.GetFieldContext(ctx).Field.Alias) + } else { + result, err = u.Edges.SubcontrolsOrErr() + } + if IsNotLoaded(err) { + result, err = u.QuerySubcontrols().All(ctx) + } + return result, err +} + func (u *User) GroupMemberships(ctx context.Context) (result []*GroupMembership, err error) { if fc := graphql.GetFieldContext(ctx); fc != nil && fc.Field.Alias != "" { result, err = u.NamedGroupMemberships(graphql.GetFieldContext(ctx).Field.Alias) diff --git a/internal/ent/generated/gql_mutation_input.go b/internal/ent/generated/gql_mutation_input.go index 17002b96..7062dc31 100644 --- a/internal/ent/generated/gql_mutation_input.go +++ b/internal/ent/generated/gql_mutation_input.go @@ -121,6 +121,198 @@ func (c *APITokenUpdateOne) SetInput(i UpdateAPITokenInput) *APITokenUpdateOne { return c } +// CreateActionPlanInput represents a mutation input for creating actionplans. +type CreateActionPlanInput struct { + Tags []string + Name string + Description *string + Status *string + DueDate *time.Time + Priority *string + Source *string + Details map[string]interface{} + StandardIDs []string + RiskIDs []string + ControlIDs []string + UserIDs []string +} + +// Mutate applies the CreateActionPlanInput on the ActionPlanMutation builder. +func (i *CreateActionPlanInput) Mutate(m *ActionPlanMutation) { + 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.Status; v != nil { + m.SetStatus(*v) + } + if v := i.DueDate; v != nil { + m.SetDueDate(*v) + } + if v := i.Priority; v != nil { + m.SetPriority(*v) + } + if v := i.Source; v != nil { + m.SetSource(*v) + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if v := i.StandardIDs; len(v) > 0 { + m.AddStandardIDs(v...) + } + if v := i.RiskIDs; len(v) > 0 { + m.AddRiskIDs(v...) + } + if v := i.ControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.UserIDs; len(v) > 0 { + m.AddUserIDs(v...) + } +} + +// SetInput applies the change-set in the CreateActionPlanInput on the ActionPlanCreate builder. +func (c *ActionPlanCreate) SetInput(i CreateActionPlanInput) *ActionPlanCreate { + i.Mutate(c.Mutation()) + return c +} + +// UpdateActionPlanInput represents a mutation input for updating actionplans. +type UpdateActionPlanInput struct { + ClearTags bool + Tags []string + AppendTags []string + Name *string + ClearDescription bool + Description *string + ClearStatus bool + Status *string + ClearDueDate bool + DueDate *time.Time + ClearPriority bool + Priority *string + ClearSource bool + Source *string + ClearDetails bool + Details map[string]interface{} + ClearStandard bool + AddStandardIDs []string + RemoveStandardIDs []string + ClearRisk bool + AddRiskIDs []string + RemoveRiskIDs []string + ClearControl bool + AddControlIDs []string + RemoveControlIDs []string + ClearUser bool + AddUserIDs []string + RemoveUserIDs []string +} + +// Mutate applies the UpdateActionPlanInput on the ActionPlanMutation builder. +func (i *UpdateActionPlanInput) Mutate(m *ActionPlanMutation) { + 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 i.ClearStatus { + m.ClearStatus() + } + if v := i.Status; v != nil { + m.SetStatus(*v) + } + if i.ClearDueDate { + m.ClearDueDate() + } + if v := i.DueDate; v != nil { + m.SetDueDate(*v) + } + if i.ClearPriority { + m.ClearPriority() + } + if v := i.Priority; v != nil { + m.SetPriority(*v) + } + if i.ClearSource { + m.ClearSource() + } + if v := i.Source; v != nil { + m.SetSource(*v) + } + if i.ClearDetails { + m.ClearDetails() + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if i.ClearStandard { + m.ClearStandard() + } + if v := i.AddStandardIDs; len(v) > 0 { + m.AddStandardIDs(v...) + } + if v := i.RemoveStandardIDs; len(v) > 0 { + m.RemoveStandardIDs(v...) + } + if i.ClearRisk { + m.ClearRisk() + } + if v := i.AddRiskIDs; len(v) > 0 { + m.AddRiskIDs(v...) + } + if v := i.RemoveRiskIDs; len(v) > 0 { + m.RemoveRiskIDs(v...) + } + if i.ClearControl { + m.ClearControl() + } + if v := i.AddControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.RemoveControlIDs; len(v) > 0 { + m.RemoveControlIDs(v...) + } + if i.ClearUser { + m.ClearUser() + } + if v := i.AddUserIDs; len(v) > 0 { + m.AddUserIDs(v...) + } + if v := i.RemoveUserIDs; len(v) > 0 { + m.RemoveUserIDs(v...) + } +} + +// SetInput applies the change-set in the UpdateActionPlanInput on the ActionPlanUpdate builder. +func (c *ActionPlanUpdate) SetInput(i UpdateActionPlanInput) *ActionPlanUpdate { + i.Mutate(c.Mutation()) + return c +} + +// SetInput applies the change-set in the UpdateActionPlanInput on the ActionPlanUpdateOne builder. +func (c *ActionPlanUpdateOne) SetInput(i UpdateActionPlanInput) *ActionPlanUpdateOne { + i.Mutate(c.Mutation()) + return c +} + // CreateContactInput represents a mutation input for creating contacts. type CreateContactInput struct { Tags []string @@ -289,61 +481,151 @@ func (c *ContactUpdateOne) SetInput(i UpdateContactInput) *ContactUpdateOne { return c } -// CreateDocumentDataInput represents a mutation input for creating documentdataslice. -type CreateDocumentDataInput struct { - Tags []string - Data customtypes.JSONObject - OwnerID *string - TemplateID string - EntityIDs []string - FileIDs []string -} - -// Mutate applies the CreateDocumentDataInput on the DocumentDataMutation builder. -func (i *CreateDocumentDataInput) Mutate(m *DocumentDataMutation) { +// CreateControlInput represents a mutation input for creating controls. +type CreateControlInput struct { + Tags []string + Name string + Description *string + Status *string + ControlType *string + Version *string + ControlNumber *string + Family *string + Class *string + Source *string + Satisfies *string + MappedFrameworks *string + Details map[string]interface{} + ProcedureIDs []string + SubcontrolIDs []string + ControlobjectiveIDs []string + StandardIDs []string + NarrativeIDs []string + RiskIDs []string + ActionplanIDs []string +} + +// Mutate applies the CreateControlInput on the ControlMutation builder. +func (i *CreateControlInput) Mutate(m *ControlMutation) { if v := i.Tags; v != nil { m.SetTags(v) } - if v := i.Data; v != nil { - m.SetData(v) + m.SetName(i.Name) + if v := i.Description; v != nil { + m.SetDescription(*v) } - if v := i.OwnerID; v != nil { - m.SetOwnerID(*v) + if v := i.Status; v != nil { + m.SetStatus(*v) } - m.SetTemplateID(i.TemplateID) - if v := i.EntityIDs; len(v) > 0 { - m.AddEntityIDs(v...) + if v := i.ControlType; v != nil { + m.SetControlType(*v) } - if v := i.FileIDs; len(v) > 0 { - m.AddFileIDs(v...) + if v := i.Version; v != nil { + m.SetVersion(*v) + } + if v := i.ControlNumber; v != nil { + m.SetControlNumber(*v) + } + if v := i.Family; v != nil { + m.SetFamily(*v) + } + if v := i.Class; v != nil { + m.SetClass(*v) + } + if v := i.Source; v != nil { + m.SetSource(*v) + } + if v := i.Satisfies; v != nil { + m.SetSatisfies(*v) + } + if v := i.MappedFrameworks; v != nil { + m.SetMappedFrameworks(*v) + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if v := i.ProcedureIDs; len(v) > 0 { + m.AddProcedureIDs(v...) + } + if v := i.SubcontrolIDs; len(v) > 0 { + m.AddSubcontrolIDs(v...) + } + if v := i.ControlobjectiveIDs; len(v) > 0 { + m.AddControlobjectiveIDs(v...) + } + if v := i.StandardIDs; len(v) > 0 { + m.AddStandardIDs(v...) + } + if v := i.NarrativeIDs; len(v) > 0 { + m.AddNarrativeIDs(v...) + } + if v := i.RiskIDs; len(v) > 0 { + m.AddRiskIDs(v...) + } + if v := i.ActionplanIDs; len(v) > 0 { + m.AddActionplanIDs(v...) } } -// SetInput applies the change-set in the CreateDocumentDataInput on the DocumentDataCreate builder. -func (c *DocumentDataCreate) SetInput(i CreateDocumentDataInput) *DocumentDataCreate { +// SetInput applies the change-set in the CreateControlInput on the ControlCreate builder. +func (c *ControlCreate) SetInput(i CreateControlInput) *ControlCreate { i.Mutate(c.Mutation()) return c } -// UpdateDocumentDataInput represents a mutation input for updating documentdataslice. -type UpdateDocumentDataInput struct { - ClearTags bool - Tags []string - AppendTags []string - Data customtypes.JSONObject - ClearOwner bool - OwnerID *string - TemplateID *string - ClearEntity bool - AddEntityIDs []string - RemoveEntityIDs []string - ClearFiles bool - AddFileIDs []string - RemoveFileIDs []string -} - -// Mutate applies the UpdateDocumentDataInput on the DocumentDataMutation builder. -func (i *UpdateDocumentDataInput) Mutate(m *DocumentDataMutation) { +// UpdateControlInput represents a mutation input for updating controls. +type UpdateControlInput struct { + ClearTags bool + Tags []string + AppendTags []string + Name *string + ClearDescription bool + Description *string + ClearStatus bool + Status *string + ClearControlType bool + ControlType *string + ClearVersion bool + Version *string + ClearControlNumber bool + ControlNumber *string + ClearFamily bool + Family *string + ClearClass bool + Class *string + ClearSource bool + Source *string + ClearSatisfies bool + Satisfies *string + ClearMappedFrameworks bool + MappedFrameworks *string + ClearDetails bool + Details map[string]interface{} + ClearProcedures bool + AddProcedureIDs []string + RemoveProcedureIDs []string + ClearSubcontrols bool + AddSubcontrolIDs []string + RemoveSubcontrolIDs []string + ClearControlobjectives bool + AddControlobjectiveIDs []string + RemoveControlobjectiveIDs []string + ClearStandard bool + AddStandardIDs []string + RemoveStandardIDs []string + ClearNarratives bool + AddNarrativeIDs []string + RemoveNarrativeIDs []string + ClearRisks bool + AddRiskIDs []string + RemoveRiskIDs []string + ClearActionplans bool + AddActionplanIDs []string + RemoveActionplanIDs []string +} + +// Mutate applies the UpdateControlInput on the ControlMutation builder. +func (i *UpdateControlInput) Mutate(m *ControlMutation) { if i.ClearTags { m.ClearTags() } @@ -353,76 +635,574 @@ func (i *UpdateDocumentDataInput) Mutate(m *DocumentDataMutation) { if i.AppendTags != nil { m.AppendTags(i.Tags) } - if v := i.Data; v != nil { - m.SetData(v) + if v := i.Name; v != nil { + m.SetName(*v) } - if i.ClearOwner { - m.ClearOwner() + if i.ClearDescription { + m.ClearDescription() } - if v := i.OwnerID; v != nil { - m.SetOwnerID(*v) + if v := i.Description; v != nil { + m.SetDescription(*v) } - if v := i.TemplateID; v != nil { - m.SetTemplateID(*v) + if i.ClearStatus { + m.ClearStatus() } - if i.ClearEntity { - m.ClearEntity() + if v := i.Status; v != nil { + m.SetStatus(*v) } - if v := i.AddEntityIDs; len(v) > 0 { - m.AddEntityIDs(v...) + if i.ClearControlType { + m.ClearControlType() } - if v := i.RemoveEntityIDs; len(v) > 0 { - m.RemoveEntityIDs(v...) + if v := i.ControlType; v != nil { + m.SetControlType(*v) } - if i.ClearFiles { - m.ClearFiles() + if i.ClearVersion { + m.ClearVersion() } - if v := i.AddFileIDs; len(v) > 0 { - m.AddFileIDs(v...) + if v := i.Version; v != nil { + m.SetVersion(*v) } - if v := i.RemoveFileIDs; len(v) > 0 { - m.RemoveFileIDs(v...) + if i.ClearControlNumber { + m.ClearControlNumber() + } + if v := i.ControlNumber; v != nil { + m.SetControlNumber(*v) + } + if i.ClearFamily { + m.ClearFamily() + } + if v := i.Family; v != nil { + m.SetFamily(*v) + } + if i.ClearClass { + m.ClearClass() + } + if v := i.Class; v != nil { + m.SetClass(*v) + } + if i.ClearSource { + m.ClearSource() + } + if v := i.Source; v != nil { + m.SetSource(*v) + } + if i.ClearSatisfies { + m.ClearSatisfies() + } + if v := i.Satisfies; v != nil { + m.SetSatisfies(*v) + } + if i.ClearMappedFrameworks { + m.ClearMappedFrameworks() + } + if v := i.MappedFrameworks; v != nil { + m.SetMappedFrameworks(*v) + } + if i.ClearDetails { + m.ClearDetails() + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if i.ClearProcedures { + m.ClearProcedures() + } + if v := i.AddProcedureIDs; len(v) > 0 { + m.AddProcedureIDs(v...) + } + if v := i.RemoveProcedureIDs; len(v) > 0 { + m.RemoveProcedureIDs(v...) + } + if i.ClearSubcontrols { + m.ClearSubcontrols() + } + if v := i.AddSubcontrolIDs; len(v) > 0 { + m.AddSubcontrolIDs(v...) + } + if v := i.RemoveSubcontrolIDs; len(v) > 0 { + m.RemoveSubcontrolIDs(v...) + } + if i.ClearControlobjectives { + m.ClearControlobjectives() + } + if v := i.AddControlobjectiveIDs; len(v) > 0 { + m.AddControlobjectiveIDs(v...) + } + if v := i.RemoveControlobjectiveIDs; len(v) > 0 { + m.RemoveControlobjectiveIDs(v...) + } + if i.ClearStandard { + m.ClearStandard() + } + if v := i.AddStandardIDs; len(v) > 0 { + m.AddStandardIDs(v...) + } + if v := i.RemoveStandardIDs; len(v) > 0 { + m.RemoveStandardIDs(v...) + } + if i.ClearNarratives { + m.ClearNarratives() + } + if v := i.AddNarrativeIDs; len(v) > 0 { + m.AddNarrativeIDs(v...) + } + if v := i.RemoveNarrativeIDs; len(v) > 0 { + m.RemoveNarrativeIDs(v...) + } + if i.ClearRisks { + m.ClearRisks() + } + if v := i.AddRiskIDs; len(v) > 0 { + m.AddRiskIDs(v...) + } + if v := i.RemoveRiskIDs; len(v) > 0 { + m.RemoveRiskIDs(v...) + } + if i.ClearActionplans { + m.ClearActionplans() + } + if v := i.AddActionplanIDs; len(v) > 0 { + m.AddActionplanIDs(v...) + } + if v := i.RemoveActionplanIDs; len(v) > 0 { + m.RemoveActionplanIDs(v...) } } -// SetInput applies the change-set in the UpdateDocumentDataInput on the DocumentDataUpdate builder. -func (c *DocumentDataUpdate) SetInput(i UpdateDocumentDataInput) *DocumentDataUpdate { +// SetInput applies the change-set in the UpdateControlInput on the ControlUpdate builder. +func (c *ControlUpdate) SetInput(i UpdateControlInput) *ControlUpdate { i.Mutate(c.Mutation()) return c } -// SetInput applies the change-set in the UpdateDocumentDataInput on the DocumentDataUpdateOne builder. -func (c *DocumentDataUpdateOne) SetInput(i UpdateDocumentDataInput) *DocumentDataUpdateOne { +// SetInput applies the change-set in the UpdateControlInput on the ControlUpdateOne builder. +func (c *ControlUpdateOne) SetInput(i UpdateControlInput) *ControlUpdateOne { i.Mutate(c.Mutation()) return c } -// CreateEntitlementInput represents a mutation input for creating entitlements. -type CreateEntitlementInput struct { - Tags []string - ExternalCustomerID *string - ExternalSubscriptionID *string - ExpiresAt *time.Time - Cancelled *bool - OwnerID *string - PlanID string - OrganizationID string - EventIDs []string -} - -// Mutate applies the CreateEntitlementInput on the EntitlementMutation builder. -func (i *CreateEntitlementInput) Mutate(m *EntitlementMutation) { +// CreateControlObjectiveInput represents a mutation input for creating controlobjectives. +type CreateControlObjectiveInput struct { + Tags []string + Name string + Description *string + Status *string + ControlObjectiveType *string + Version *string + ControlNumber *string + Family *string + Class *string + Source *string + MappedFrameworks *string + Details map[string]interface{} + PolicyIDs []string + ControlIDs []string + ProcedureIDs []string + RiskIDs []string + SubcontrolIDs []string + StandardIDs []string + NarrativeIDs []string +} + +// Mutate applies the CreateControlObjectiveInput on the ControlObjectiveMutation builder. +func (i *CreateControlObjectiveInput) Mutate(m *ControlObjectiveMutation) { if v := i.Tags; v != nil { m.SetTags(v) } - if v := i.ExternalCustomerID; v != nil { - m.SetExternalCustomerID(*v) + m.SetName(i.Name) + if v := i.Description; v != nil { + m.SetDescription(*v) } - if v := i.ExternalSubscriptionID; v != nil { - m.SetExternalSubscriptionID(*v) + if v := i.Status; v != nil { + m.SetStatus(*v) } - if v := i.ExpiresAt; v != nil { - m.SetExpiresAt(*v) + if v := i.ControlObjectiveType; v != nil { + m.SetControlObjectiveType(*v) + } + if v := i.Version; v != nil { + m.SetVersion(*v) + } + if v := i.ControlNumber; v != nil { + m.SetControlNumber(*v) + } + if v := i.Family; v != nil { + m.SetFamily(*v) + } + if v := i.Class; v != nil { + m.SetClass(*v) + } + if v := i.Source; v != nil { + m.SetSource(*v) + } + if v := i.MappedFrameworks; v != nil { + m.SetMappedFrameworks(*v) + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if v := i.PolicyIDs; len(v) > 0 { + m.AddPolicyIDs(v...) + } + if v := i.ControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.ProcedureIDs; len(v) > 0 { + m.AddProcedureIDs(v...) + } + if v := i.RiskIDs; len(v) > 0 { + m.AddRiskIDs(v...) + } + if v := i.SubcontrolIDs; len(v) > 0 { + m.AddSubcontrolIDs(v...) + } + if v := i.StandardIDs; len(v) > 0 { + m.AddStandardIDs(v...) + } + if v := i.NarrativeIDs; len(v) > 0 { + m.AddNarrativeIDs(v...) + } +} + +// SetInput applies the change-set in the CreateControlObjectiveInput on the ControlObjectiveCreate builder. +func (c *ControlObjectiveCreate) SetInput(i CreateControlObjectiveInput) *ControlObjectiveCreate { + i.Mutate(c.Mutation()) + return c +} + +// UpdateControlObjectiveInput represents a mutation input for updating controlobjectives. +type UpdateControlObjectiveInput struct { + ClearTags bool + Tags []string + AppendTags []string + Name *string + ClearDescription bool + Description *string + ClearStatus bool + Status *string + ClearControlObjectiveType bool + ControlObjectiveType *string + ClearVersion bool + Version *string + ClearControlNumber bool + ControlNumber *string + ClearFamily bool + Family *string + ClearClass bool + Class *string + ClearSource bool + Source *string + ClearMappedFrameworks bool + MappedFrameworks *string + ClearDetails bool + Details map[string]interface{} + ClearPolicy bool + AddPolicyIDs []string + RemovePolicyIDs []string + ClearControls bool + AddControlIDs []string + RemoveControlIDs []string + ClearProcedures bool + AddProcedureIDs []string + RemoveProcedureIDs []string + ClearRisks bool + AddRiskIDs []string + RemoveRiskIDs []string + ClearSubcontrols bool + AddSubcontrolIDs []string + RemoveSubcontrolIDs []string + ClearStandard bool + AddStandardIDs []string + RemoveStandardIDs []string + ClearNarratives bool + AddNarrativeIDs []string + RemoveNarrativeIDs []string +} + +// Mutate applies the UpdateControlObjectiveInput on the ControlObjectiveMutation builder. +func (i *UpdateControlObjectiveInput) Mutate(m *ControlObjectiveMutation) { + 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 i.ClearStatus { + m.ClearStatus() + } + if v := i.Status; v != nil { + m.SetStatus(*v) + } + if i.ClearControlObjectiveType { + m.ClearControlObjectiveType() + } + if v := i.ControlObjectiveType; v != nil { + m.SetControlObjectiveType(*v) + } + if i.ClearVersion { + m.ClearVersion() + } + if v := i.Version; v != nil { + m.SetVersion(*v) + } + if i.ClearControlNumber { + m.ClearControlNumber() + } + if v := i.ControlNumber; v != nil { + m.SetControlNumber(*v) + } + if i.ClearFamily { + m.ClearFamily() + } + if v := i.Family; v != nil { + m.SetFamily(*v) + } + if i.ClearClass { + m.ClearClass() + } + if v := i.Class; v != nil { + m.SetClass(*v) + } + if i.ClearSource { + m.ClearSource() + } + if v := i.Source; v != nil { + m.SetSource(*v) + } + if i.ClearMappedFrameworks { + m.ClearMappedFrameworks() + } + if v := i.MappedFrameworks; v != nil { + m.SetMappedFrameworks(*v) + } + if i.ClearDetails { + m.ClearDetails() + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if i.ClearPolicy { + m.ClearPolicy() + } + if v := i.AddPolicyIDs; len(v) > 0 { + m.AddPolicyIDs(v...) + } + if v := i.RemovePolicyIDs; len(v) > 0 { + m.RemovePolicyIDs(v...) + } + if i.ClearControls { + m.ClearControls() + } + if v := i.AddControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.RemoveControlIDs; len(v) > 0 { + m.RemoveControlIDs(v...) + } + if i.ClearProcedures { + m.ClearProcedures() + } + if v := i.AddProcedureIDs; len(v) > 0 { + m.AddProcedureIDs(v...) + } + if v := i.RemoveProcedureIDs; len(v) > 0 { + m.RemoveProcedureIDs(v...) + } + if i.ClearRisks { + m.ClearRisks() + } + if v := i.AddRiskIDs; len(v) > 0 { + m.AddRiskIDs(v...) + } + if v := i.RemoveRiskIDs; len(v) > 0 { + m.RemoveRiskIDs(v...) + } + if i.ClearSubcontrols { + m.ClearSubcontrols() + } + if v := i.AddSubcontrolIDs; len(v) > 0 { + m.AddSubcontrolIDs(v...) + } + if v := i.RemoveSubcontrolIDs; len(v) > 0 { + m.RemoveSubcontrolIDs(v...) + } + if i.ClearStandard { + m.ClearStandard() + } + if v := i.AddStandardIDs; len(v) > 0 { + m.AddStandardIDs(v...) + } + if v := i.RemoveStandardIDs; len(v) > 0 { + m.RemoveStandardIDs(v...) + } + if i.ClearNarratives { + m.ClearNarratives() + } + if v := i.AddNarrativeIDs; len(v) > 0 { + m.AddNarrativeIDs(v...) + } + if v := i.RemoveNarrativeIDs; len(v) > 0 { + m.RemoveNarrativeIDs(v...) + } +} + +// SetInput applies the change-set in the UpdateControlObjectiveInput on the ControlObjectiveUpdate builder. +func (c *ControlObjectiveUpdate) SetInput(i UpdateControlObjectiveInput) *ControlObjectiveUpdate { + i.Mutate(c.Mutation()) + return c +} + +// SetInput applies the change-set in the UpdateControlObjectiveInput on the ControlObjectiveUpdateOne builder. +func (c *ControlObjectiveUpdateOne) SetInput(i UpdateControlObjectiveInput) *ControlObjectiveUpdateOne { + i.Mutate(c.Mutation()) + return c +} + +// CreateDocumentDataInput represents a mutation input for creating documentdataslice. +type CreateDocumentDataInput struct { + Tags []string + Data customtypes.JSONObject + OwnerID *string + TemplateID string + EntityIDs []string + FileIDs []string +} + +// Mutate applies the CreateDocumentDataInput on the DocumentDataMutation builder. +func (i *CreateDocumentDataInput) Mutate(m *DocumentDataMutation) { + if v := i.Tags; v != nil { + m.SetTags(v) + } + if v := i.Data; v != nil { + m.SetData(v) + } + if v := i.OwnerID; v != nil { + m.SetOwnerID(*v) + } + m.SetTemplateID(i.TemplateID) + if v := i.EntityIDs; len(v) > 0 { + m.AddEntityIDs(v...) + } + if v := i.FileIDs; len(v) > 0 { + m.AddFileIDs(v...) + } +} + +// SetInput applies the change-set in the CreateDocumentDataInput on the DocumentDataCreate builder. +func (c *DocumentDataCreate) SetInput(i CreateDocumentDataInput) *DocumentDataCreate { + i.Mutate(c.Mutation()) + return c +} + +// UpdateDocumentDataInput represents a mutation input for updating documentdataslice. +type UpdateDocumentDataInput struct { + ClearTags bool + Tags []string + AppendTags []string + Data customtypes.JSONObject + ClearOwner bool + OwnerID *string + TemplateID *string + ClearEntity bool + AddEntityIDs []string + RemoveEntityIDs []string + ClearFiles bool + AddFileIDs []string + RemoveFileIDs []string +} + +// Mutate applies the UpdateDocumentDataInput on the DocumentDataMutation builder. +func (i *UpdateDocumentDataInput) Mutate(m *DocumentDataMutation) { + 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.Data; v != nil { + m.SetData(v) + } + if i.ClearOwner { + m.ClearOwner() + } + if v := i.OwnerID; v != nil { + m.SetOwnerID(*v) + } + if v := i.TemplateID; v != nil { + m.SetTemplateID(*v) + } + if i.ClearEntity { + m.ClearEntity() + } + if v := i.AddEntityIDs; len(v) > 0 { + m.AddEntityIDs(v...) + } + if v := i.RemoveEntityIDs; len(v) > 0 { + m.RemoveEntityIDs(v...) + } + if i.ClearFiles { + m.ClearFiles() + } + if v := i.AddFileIDs; len(v) > 0 { + m.AddFileIDs(v...) + } + if v := i.RemoveFileIDs; len(v) > 0 { + m.RemoveFileIDs(v...) + } +} + +// SetInput applies the change-set in the UpdateDocumentDataInput on the DocumentDataUpdate builder. +func (c *DocumentDataUpdate) SetInput(i UpdateDocumentDataInput) *DocumentDataUpdate { + i.Mutate(c.Mutation()) + return c +} + +// SetInput applies the change-set in the UpdateDocumentDataInput on the DocumentDataUpdateOne builder. +func (c *DocumentDataUpdateOne) SetInput(i UpdateDocumentDataInput) *DocumentDataUpdateOne { + i.Mutate(c.Mutation()) + return c +} + +// CreateEntitlementInput represents a mutation input for creating entitlements. +type CreateEntitlementInput struct { + Tags []string + ExternalCustomerID *string + ExternalSubscriptionID *string + ExpiresAt *time.Time + Cancelled *bool + OwnerID *string + PlanID string + OrganizationID string + EventIDs []string +} + +// Mutate applies the CreateEntitlementInput on the EntitlementMutation builder. +func (i *CreateEntitlementInput) Mutate(m *EntitlementMutation) { + if v := i.Tags; v != nil { + m.SetTags(v) + } + if v := i.ExternalCustomerID; v != nil { + m.SetExternalCustomerID(*v) + } + if v := i.ExternalSubscriptionID; v != nil { + m.SetExternalSubscriptionID(*v) + } + if v := i.ExpiresAt; v != nil { + m.SetExpiresAt(*v) } if v := i.Cancelled; v != nil { m.SetCancelled(*v) @@ -2479,38 +3259,236 @@ func (c *IntegrationUpdateOne) SetInput(i UpdateIntegrationInput) *IntegrationUp return c } -// CreateInviteInput represents a mutation input for creating invites. -type CreateInviteInput struct { - Expires *time.Time - Recipient string - Status *enums.InviteStatus - Role *enums.Role - SendAttempts *int - RequestorID *string - OwnerID *string - EventIDs []string -} - -// Mutate applies the CreateInviteInput on the InviteMutation builder. -func (i *CreateInviteInput) Mutate(m *InviteMutation) { - if v := i.Expires; v != nil { - m.SetExpires(*v) +// CreateInternalPolicyInput represents a mutation input for creating internalpolicies. +type CreateInternalPolicyInput struct { + Tags []string + Name string + Description string + Status *string + PolicyType *string + Version *string + PurposeAndScope *string + Background *string + Details map[string]interface{} + ControlobjectiveIDs []string + ControlIDs []string + ProcedureIDs []string + NarrativeIDs []string +} + +// Mutate applies the CreateInternalPolicyInput on the InternalPolicyMutation builder. +func (i *CreateInternalPolicyInput) Mutate(m *InternalPolicyMutation) { + if v := i.Tags; v != nil { + m.SetTags(v) } - m.SetRecipient(i.Recipient) + m.SetName(i.Name) + m.SetDescription(i.Description) if v := i.Status; v != nil { m.SetStatus(*v) } - if v := i.Role; v != nil { - m.SetRole(*v) + if v := i.PolicyType; v != nil { + m.SetPolicyType(*v) } - if v := i.SendAttempts; v != nil { - m.SetSendAttempts(*v) + if v := i.Version; v != nil { + m.SetVersion(*v) } - if v := i.RequestorID; v != nil { - m.SetRequestorID(*v) + if v := i.PurposeAndScope; v != nil { + m.SetPurposeAndScope(*v) } - if v := i.OwnerID; v != nil { - m.SetOwnerID(*v) + if v := i.Background; v != nil { + m.SetBackground(*v) + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if v := i.ControlobjectiveIDs; len(v) > 0 { + m.AddControlobjectiveIDs(v...) + } + if v := i.ControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.ProcedureIDs; len(v) > 0 { + m.AddProcedureIDs(v...) + } + if v := i.NarrativeIDs; len(v) > 0 { + m.AddNarrativeIDs(v...) + } +} + +// SetInput applies the change-set in the CreateInternalPolicyInput on the InternalPolicyCreate builder. +func (c *InternalPolicyCreate) SetInput(i CreateInternalPolicyInput) *InternalPolicyCreate { + i.Mutate(c.Mutation()) + return c +} + +// UpdateInternalPolicyInput represents a mutation input for updating internalpolicies. +type UpdateInternalPolicyInput struct { + ClearTags bool + Tags []string + AppendTags []string + Name *string + Description *string + ClearStatus bool + Status *string + ClearPolicyType bool + PolicyType *string + ClearVersion bool + Version *string + ClearPurposeAndScope bool + PurposeAndScope *string + ClearBackground bool + Background *string + ClearDetails bool + Details map[string]interface{} + ClearControlobjectives bool + AddControlobjectiveIDs []string + RemoveControlobjectiveIDs []string + ClearControls bool + AddControlIDs []string + RemoveControlIDs []string + ClearProcedures bool + AddProcedureIDs []string + RemoveProcedureIDs []string + ClearNarratives bool + AddNarrativeIDs []string + RemoveNarrativeIDs []string +} + +// Mutate applies the UpdateInternalPolicyInput on the InternalPolicyMutation builder. +func (i *UpdateInternalPolicyInput) Mutate(m *InternalPolicyMutation) { + 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 v := i.Description; v != nil { + m.SetDescription(*v) + } + if i.ClearStatus { + m.ClearStatus() + } + if v := i.Status; v != nil { + m.SetStatus(*v) + } + if i.ClearPolicyType { + m.ClearPolicyType() + } + if v := i.PolicyType; v != nil { + m.SetPolicyType(*v) + } + if i.ClearVersion { + m.ClearVersion() + } + if v := i.Version; v != nil { + m.SetVersion(*v) + } + if i.ClearPurposeAndScope { + m.ClearPurposeAndScope() + } + if v := i.PurposeAndScope; v != nil { + m.SetPurposeAndScope(*v) + } + if i.ClearBackground { + m.ClearBackground() + } + if v := i.Background; v != nil { + m.SetBackground(*v) + } + if i.ClearDetails { + m.ClearDetails() + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if i.ClearControlobjectives { + m.ClearControlobjectives() + } + if v := i.AddControlobjectiveIDs; len(v) > 0 { + m.AddControlobjectiveIDs(v...) + } + if v := i.RemoveControlobjectiveIDs; len(v) > 0 { + m.RemoveControlobjectiveIDs(v...) + } + if i.ClearControls { + m.ClearControls() + } + if v := i.AddControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.RemoveControlIDs; len(v) > 0 { + m.RemoveControlIDs(v...) + } + if i.ClearProcedures { + m.ClearProcedures() + } + if v := i.AddProcedureIDs; len(v) > 0 { + m.AddProcedureIDs(v...) + } + if v := i.RemoveProcedureIDs; len(v) > 0 { + m.RemoveProcedureIDs(v...) + } + if i.ClearNarratives { + m.ClearNarratives() + } + if v := i.AddNarrativeIDs; len(v) > 0 { + m.AddNarrativeIDs(v...) + } + if v := i.RemoveNarrativeIDs; len(v) > 0 { + m.RemoveNarrativeIDs(v...) + } +} + +// SetInput applies the change-set in the UpdateInternalPolicyInput on the InternalPolicyUpdate builder. +func (c *InternalPolicyUpdate) SetInput(i UpdateInternalPolicyInput) *InternalPolicyUpdate { + i.Mutate(c.Mutation()) + return c +} + +// SetInput applies the change-set in the UpdateInternalPolicyInput on the InternalPolicyUpdateOne builder. +func (c *InternalPolicyUpdateOne) SetInput(i UpdateInternalPolicyInput) *InternalPolicyUpdateOne { + i.Mutate(c.Mutation()) + return c +} + +// CreateInviteInput represents a mutation input for creating invites. +type CreateInviteInput struct { + Expires *time.Time + Recipient string + Status *enums.InviteStatus + Role *enums.Role + SendAttempts *int + RequestorID *string + OwnerID *string + EventIDs []string +} + +// Mutate applies the CreateInviteInput on the InviteMutation builder. +func (i *CreateInviteInput) Mutate(m *InviteMutation) { + if v := i.Expires; v != nil { + m.SetExpires(*v) + } + m.SetRecipient(i.Recipient) + if v := i.Status; v != nil { + m.SetStatus(*v) + } + if v := i.Role; v != nil { + m.SetRole(*v) + } + if v := i.SendAttempts; v != nil { + m.SetSendAttempts(*v) + } + if v := i.RequestorID; v != nil { + m.SetRequestorID(*v) + } + if v := i.OwnerID; v != nil { + m.SetOwnerID(*v) } if v := i.EventIDs; len(v) > 0 { m.AddEventIDs(v...) @@ -2583,12 +3561,169 @@ func (c *InviteUpdateOne) SetInput(i UpdateInviteInput) *InviteUpdateOne { return c } +// CreateNarrativeInput represents a mutation input for creating narratives. +type CreateNarrativeInput struct { + Tags []string + Name string + Description *string + Satisfies *string + Details map[string]interface{} + PolicyIDs []string + ControlIDs []string + ProcedureIDs []string + ControlobjectiveIDs []string +} + +// Mutate applies the CreateNarrativeInput on the NarrativeMutation builder. +func (i *CreateNarrativeInput) Mutate(m *NarrativeMutation) { + 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.Satisfies; v != nil { + m.SetSatisfies(*v) + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if v := i.PolicyIDs; len(v) > 0 { + m.AddPolicyIDs(v...) + } + if v := i.ControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.ProcedureIDs; len(v) > 0 { + m.AddProcedureIDs(v...) + } + if v := i.ControlobjectiveIDs; len(v) > 0 { + m.AddControlobjectiveIDs(v...) + } +} + +// SetInput applies the change-set in the CreateNarrativeInput on the NarrativeCreate builder. +func (c *NarrativeCreate) SetInput(i CreateNarrativeInput) *NarrativeCreate { + i.Mutate(c.Mutation()) + return c +} + +// UpdateNarrativeInput represents a mutation input for updating narratives. +type UpdateNarrativeInput struct { + ClearTags bool + Tags []string + AppendTags []string + Name *string + ClearDescription bool + Description *string + ClearSatisfies bool + Satisfies *string + ClearDetails bool + Details map[string]interface{} + ClearPolicy bool + AddPolicyIDs []string + RemovePolicyIDs []string + ClearControl bool + AddControlIDs []string + RemoveControlIDs []string + ClearProcedure bool + AddProcedureIDs []string + RemoveProcedureIDs []string + ClearControlobjective bool + AddControlobjectiveIDs []string + RemoveControlobjectiveIDs []string +} + +// Mutate applies the UpdateNarrativeInput on the NarrativeMutation builder. +func (i *UpdateNarrativeInput) Mutate(m *NarrativeMutation) { + 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 i.ClearSatisfies { + m.ClearSatisfies() + } + if v := i.Satisfies; v != nil { + m.SetSatisfies(*v) + } + if i.ClearDetails { + m.ClearDetails() + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if i.ClearPolicy { + m.ClearPolicy() + } + if v := i.AddPolicyIDs; len(v) > 0 { + m.AddPolicyIDs(v...) + } + if v := i.RemovePolicyIDs; len(v) > 0 { + m.RemovePolicyIDs(v...) + } + if i.ClearControl { + m.ClearControl() + } + if v := i.AddControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.RemoveControlIDs; len(v) > 0 { + m.RemoveControlIDs(v...) + } + if i.ClearProcedure { + m.ClearProcedure() + } + if v := i.AddProcedureIDs; len(v) > 0 { + m.AddProcedureIDs(v...) + } + if v := i.RemoveProcedureIDs; len(v) > 0 { + m.RemoveProcedureIDs(v...) + } + if i.ClearControlobjective { + m.ClearControlobjective() + } + if v := i.AddControlobjectiveIDs; len(v) > 0 { + m.AddControlobjectiveIDs(v...) + } + if v := i.RemoveControlobjectiveIDs; len(v) > 0 { + m.RemoveControlobjectiveIDs(v...) + } +} + +// SetInput applies the change-set in the UpdateNarrativeInput on the NarrativeUpdate builder. +func (c *NarrativeUpdate) SetInput(i UpdateNarrativeInput) *NarrativeUpdate { + i.Mutate(c.Mutation()) + return c +} + +// SetInput applies the change-set in the UpdateNarrativeInput on the NarrativeUpdateOne builder. +func (c *NarrativeUpdateOne) SetInput(i UpdateNarrativeInput) *NarrativeUpdateOne { + i.Mutate(c.Mutation()) + return c +} + // CreateNoteInput represents a mutation input for creating notes. type CreateNoteInput struct { - Tags []string - Text string - OwnerID *string - EntityID *string + Tags []string + Text string + OwnerID *string + EntityID *string + SubcontrolIDs []string } // Mutate applies the CreateNoteInput on the NoteMutation builder. @@ -2603,6 +3738,9 @@ func (i *CreateNoteInput) Mutate(m *NoteMutation) { if v := i.EntityID; v != nil { m.SetEntityID(*v) } + if v := i.SubcontrolIDs; len(v) > 0 { + m.AddSubcontrolIDs(v...) + } } // SetInput applies the change-set in the CreateNoteInput on the NoteCreate builder. @@ -2613,14 +3751,17 @@ func (c *NoteCreate) SetInput(i CreateNoteInput) *NoteCreate { // UpdateNoteInput represents a mutation input for updating notes. type UpdateNoteInput struct { - ClearTags bool - Tags []string - AppendTags []string - Text *string - ClearOwner bool - OwnerID *string - ClearEntity bool - EntityID *string + ClearTags bool + Tags []string + AppendTags []string + Text *string + ClearOwner bool + OwnerID *string + ClearEntity bool + EntityID *string + ClearSubcontrols bool + AddSubcontrolIDs []string + RemoveSubcontrolIDs []string } // Mutate applies the UpdateNoteInput on the NoteMutation builder. @@ -2649,6 +3790,15 @@ func (i *UpdateNoteInput) Mutate(m *NoteMutation) { if v := i.EntityID; v != nil { m.SetEntityID(*v) } + if i.ClearSubcontrols { + m.ClearSubcontrols() + } + if v := i.AddSubcontrolIDs; len(v) > 0 { + m.AddSubcontrolIDs(v...) + } + if v := i.RemoveSubcontrolIDs; len(v) > 0 { + m.RemoveSubcontrolIDs(v...) + } } // SetInput applies the change-set in the UpdateNoteInput on the NoteUpdate builder. @@ -3510,70 +4660,827 @@ func (i *CreateOrganizationSettingInput) Mutate(m *OrganizationSettingMutation) if v := i.Tags; v != nil { m.SetTags(v) } - if v := i.Domains; v != nil { - m.SetDomains(v) + if v := i.Domains; v != nil { + m.SetDomains(v) + } + if v := i.BillingContact; v != nil { + m.SetBillingContact(*v) + } + if v := i.BillingEmail; v != nil { + m.SetBillingEmail(*v) + } + if v := i.BillingPhone; v != nil { + m.SetBillingPhone(*v) + } + if v := i.BillingAddress; v != nil { + m.SetBillingAddress(*v) + } + if v := i.TaxIdentifier; v != nil { + m.SetTaxIdentifier(*v) + } + if v := i.GeoLocation; v != nil { + m.SetGeoLocation(*v) + } + if v := i.OrganizationID; v != nil { + m.SetOrganizationID(*v) + } + if v := i.FileIDs; len(v) > 0 { + m.AddFileIDs(v...) + } +} + +// SetInput applies the change-set in the CreateOrganizationSettingInput on the OrganizationSettingCreate builder. +func (c *OrganizationSettingCreate) SetInput(i CreateOrganizationSettingInput) *OrganizationSettingCreate { + i.Mutate(c.Mutation()) + return c +} + +// UpdateOrganizationSettingInput represents a mutation input for updating organizationsettings. +type UpdateOrganizationSettingInput struct { + ClearTags bool + Tags []string + AppendTags []string + ClearDomains bool + Domains []string + AppendDomains []string + ClearBillingContact bool + BillingContact *string + ClearBillingEmail bool + BillingEmail *string + ClearBillingPhone bool + BillingPhone *string + ClearBillingAddress bool + BillingAddress *string + ClearTaxIdentifier bool + TaxIdentifier *string + ClearGeoLocation bool + GeoLocation *enums.Region + ClearOrganization bool + OrganizationID *string + ClearFiles bool + AddFileIDs []string + RemoveFileIDs []string +} + +// Mutate applies the UpdateOrganizationSettingInput on the OrganizationSettingMutation builder. +func (i *UpdateOrganizationSettingInput) Mutate(m *OrganizationSettingMutation) { + if i.ClearTags { + m.ClearTags() + } + if v := i.Tags; v != nil { + m.SetTags(v) + } + if i.AppendTags != nil { + m.AppendTags(i.Tags) + } + if i.ClearDomains { + m.ClearDomains() + } + if v := i.Domains; v != nil { + m.SetDomains(v) + } + if i.AppendDomains != nil { + m.AppendDomains(i.Domains) + } + if i.ClearBillingContact { + m.ClearBillingContact() + } + if v := i.BillingContact; v != nil { + m.SetBillingContact(*v) + } + if i.ClearBillingEmail { + m.ClearBillingEmail() + } + if v := i.BillingEmail; v != nil { + m.SetBillingEmail(*v) + } + if i.ClearBillingPhone { + m.ClearBillingPhone() + } + if v := i.BillingPhone; v != nil { + m.SetBillingPhone(*v) + } + if i.ClearBillingAddress { + m.ClearBillingAddress() + } + if v := i.BillingAddress; v != nil { + m.SetBillingAddress(*v) + } + if i.ClearTaxIdentifier { + m.ClearTaxIdentifier() + } + if v := i.TaxIdentifier; v != nil { + m.SetTaxIdentifier(*v) + } + if i.ClearGeoLocation { + m.ClearGeoLocation() + } + if v := i.GeoLocation; v != nil { + m.SetGeoLocation(*v) + } + if i.ClearOrganization { + m.ClearOrganization() + } + if v := i.OrganizationID; v != nil { + m.SetOrganizationID(*v) + } + if i.ClearFiles { + m.ClearFiles() + } + if v := i.AddFileIDs; len(v) > 0 { + m.AddFileIDs(v...) + } + if v := i.RemoveFileIDs; len(v) > 0 { + m.RemoveFileIDs(v...) + } +} + +// SetInput applies the change-set in the UpdateOrganizationSettingInput on the OrganizationSettingUpdate builder. +func (c *OrganizationSettingUpdate) SetInput(i UpdateOrganizationSettingInput) *OrganizationSettingUpdate { + i.Mutate(c.Mutation()) + return c +} + +// SetInput applies the change-set in the UpdateOrganizationSettingInput on the OrganizationSettingUpdateOne builder. +func (c *OrganizationSettingUpdateOne) SetInput(i UpdateOrganizationSettingInput) *OrganizationSettingUpdateOne { + i.Mutate(c.Mutation()) + return c +} + +// CreatePersonalAccessTokenInput represents a mutation input for creating personalaccesstokens. +type CreatePersonalAccessTokenInput struct { + Tags []string + Name string + ExpiresAt *time.Time + Description *string + Scopes []string + LastUsedAt *time.Time + OwnerID string + OrganizationIDs []string + EventIDs []string +} + +// Mutate applies the CreatePersonalAccessTokenInput on the PersonalAccessTokenMutation builder. +func (i *CreatePersonalAccessTokenInput) Mutate(m *PersonalAccessTokenMutation) { + if v := i.Tags; v != nil { + m.SetTags(v) + } + m.SetName(i.Name) + if v := i.ExpiresAt; v != nil { + m.SetExpiresAt(*v) + } + if v := i.Description; v != nil { + m.SetDescription(*v) + } + if v := i.Scopes; v != nil { + m.SetScopes(v) + } + if v := i.LastUsedAt; v != nil { + m.SetLastUsedAt(*v) + } + m.SetOwnerID(i.OwnerID) + if v := i.OrganizationIDs; len(v) > 0 { + m.AddOrganizationIDs(v...) + } + if v := i.EventIDs; len(v) > 0 { + m.AddEventIDs(v...) + } +} + +// SetInput applies the change-set in the CreatePersonalAccessTokenInput on the PersonalAccessTokenCreate builder. +func (c *PersonalAccessTokenCreate) SetInput(i CreatePersonalAccessTokenInput) *PersonalAccessTokenCreate { + i.Mutate(c.Mutation()) + return c +} + +// UpdatePersonalAccessTokenInput represents a mutation input for updating personalaccesstokens. +type UpdatePersonalAccessTokenInput struct { + ClearTags bool + Tags []string + AppendTags []string + Name *string + ClearDescription bool + Description *string + ClearScopes bool + Scopes []string + AppendScopes []string + ClearLastUsedAt bool + LastUsedAt *time.Time + ClearOrganizations bool + AddOrganizationIDs []string + RemoveOrganizationIDs []string + ClearEvents bool + AddEventIDs []string + RemoveEventIDs []string +} + +// Mutate applies the UpdatePersonalAccessTokenInput on the PersonalAccessTokenMutation builder. +func (i *UpdatePersonalAccessTokenInput) Mutate(m *PersonalAccessTokenMutation) { + 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 i.ClearScopes { + m.ClearScopes() + } + if v := i.Scopes; v != nil { + m.SetScopes(v) + } + if i.AppendScopes != nil { + m.AppendScopes(i.Scopes) + } + if i.ClearLastUsedAt { + m.ClearLastUsedAt() + } + if v := i.LastUsedAt; v != nil { + m.SetLastUsedAt(*v) + } + if i.ClearOrganizations { + m.ClearOrganizations() + } + if v := i.AddOrganizationIDs; len(v) > 0 { + m.AddOrganizationIDs(v...) + } + if v := i.RemoveOrganizationIDs; len(v) > 0 { + m.RemoveOrganizationIDs(v...) + } + if i.ClearEvents { + m.ClearEvents() + } + if v := i.AddEventIDs; len(v) > 0 { + m.AddEventIDs(v...) + } + if v := i.RemoveEventIDs; len(v) > 0 { + m.RemoveEventIDs(v...) + } +} + +// SetInput applies the change-set in the UpdatePersonalAccessTokenInput on the PersonalAccessTokenUpdate builder. +func (c *PersonalAccessTokenUpdate) SetInput(i UpdatePersonalAccessTokenInput) *PersonalAccessTokenUpdate { + i.Mutate(c.Mutation()) + return c +} + +// SetInput applies the change-set in the UpdatePersonalAccessTokenInput on the PersonalAccessTokenUpdateOne builder. +func (c *PersonalAccessTokenUpdateOne) SetInput(i UpdatePersonalAccessTokenInput) *PersonalAccessTokenUpdateOne { + i.Mutate(c.Mutation()) + return c +} + +// CreateProcedureInput represents a mutation input for creating procedures. +type CreateProcedureInput struct { + Tags []string + Name string + Description *string + Status *string + ProcedureType *string + Version *string + PurposeAndScope *string + Background *string + Satisfies *string + Details map[string]interface{} + ControlIDs []string + InternalpolicyIDs []string + NarrativeIDs []string + RiskIDs []string +} + +// Mutate applies the CreateProcedureInput on the ProcedureMutation builder. +func (i *CreateProcedureInput) Mutate(m *ProcedureMutation) { + 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.Status; v != nil { + m.SetStatus(*v) + } + if v := i.ProcedureType; v != nil { + m.SetProcedureType(*v) + } + if v := i.Version; v != nil { + m.SetVersion(*v) + } + if v := i.PurposeAndScope; v != nil { + m.SetPurposeAndScope(*v) + } + if v := i.Background; v != nil { + m.SetBackground(*v) + } + if v := i.Satisfies; v != nil { + m.SetSatisfies(*v) + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if v := i.ControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.InternalpolicyIDs; len(v) > 0 { + m.AddInternalpolicyIDs(v...) + } + if v := i.NarrativeIDs; len(v) > 0 { + m.AddNarrativeIDs(v...) + } + if v := i.RiskIDs; len(v) > 0 { + m.AddRiskIDs(v...) + } +} + +// SetInput applies the change-set in the CreateProcedureInput on the ProcedureCreate builder. +func (c *ProcedureCreate) SetInput(i CreateProcedureInput) *ProcedureCreate { + i.Mutate(c.Mutation()) + return c +} + +// UpdateProcedureInput represents a mutation input for updating procedures. +type UpdateProcedureInput struct { + ClearTags bool + Tags []string + AppendTags []string + Name *string + ClearDescription bool + Description *string + ClearStatus bool + Status *string + ClearProcedureType bool + ProcedureType *string + ClearVersion bool + Version *string + ClearPurposeAndScope bool + PurposeAndScope *string + ClearBackground bool + Background *string + ClearSatisfies bool + Satisfies *string + ClearDetails bool + Details map[string]interface{} + ClearControl bool + AddControlIDs []string + RemoveControlIDs []string + ClearInternalpolicy bool + AddInternalpolicyIDs []string + RemoveInternalpolicyIDs []string + ClearNarratives bool + AddNarrativeIDs []string + RemoveNarrativeIDs []string + ClearRisks bool + AddRiskIDs []string + RemoveRiskIDs []string +} + +// Mutate applies the UpdateProcedureInput on the ProcedureMutation builder. +func (i *UpdateProcedureInput) Mutate(m *ProcedureMutation) { + 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 i.ClearStatus { + m.ClearStatus() + } + if v := i.Status; v != nil { + m.SetStatus(*v) + } + if i.ClearProcedureType { + m.ClearProcedureType() + } + if v := i.ProcedureType; v != nil { + m.SetProcedureType(*v) + } + if i.ClearVersion { + m.ClearVersion() + } + if v := i.Version; v != nil { + m.SetVersion(*v) + } + if i.ClearPurposeAndScope { + m.ClearPurposeAndScope() + } + if v := i.PurposeAndScope; v != nil { + m.SetPurposeAndScope(*v) + } + if i.ClearBackground { + m.ClearBackground() + } + if v := i.Background; v != nil { + m.SetBackground(*v) + } + if i.ClearSatisfies { + m.ClearSatisfies() + } + if v := i.Satisfies; v != nil { + m.SetSatisfies(*v) + } + if i.ClearDetails { + m.ClearDetails() + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if i.ClearControl { + m.ClearControl() + } + if v := i.AddControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.RemoveControlIDs; len(v) > 0 { + m.RemoveControlIDs(v...) + } + if i.ClearInternalpolicy { + m.ClearInternalpolicy() + } + if v := i.AddInternalpolicyIDs; len(v) > 0 { + m.AddInternalpolicyIDs(v...) + } + if v := i.RemoveInternalpolicyIDs; len(v) > 0 { + m.RemoveInternalpolicyIDs(v...) + } + if i.ClearNarratives { + m.ClearNarratives() + } + if v := i.AddNarrativeIDs; len(v) > 0 { + m.AddNarrativeIDs(v...) + } + if v := i.RemoveNarrativeIDs; len(v) > 0 { + m.RemoveNarrativeIDs(v...) + } + if i.ClearRisks { + m.ClearRisks() + } + if v := i.AddRiskIDs; len(v) > 0 { + m.AddRiskIDs(v...) + } + if v := i.RemoveRiskIDs; len(v) > 0 { + m.RemoveRiskIDs(v...) + } +} + +// SetInput applies the change-set in the UpdateProcedureInput on the ProcedureUpdate builder. +func (c *ProcedureUpdate) SetInput(i UpdateProcedureInput) *ProcedureUpdate { + i.Mutate(c.Mutation()) + return c +} + +// SetInput applies the change-set in the UpdateProcedureInput on the ProcedureUpdateOne builder. +func (c *ProcedureUpdateOne) SetInput(i UpdateProcedureInput) *ProcedureUpdateOne { + i.Mutate(c.Mutation()) + return c +} + +// CreateRiskInput represents a mutation input for creating risks. +type CreateRiskInput struct { + Tags []string + Name string + Description *string + Status *string + RiskType *string + BusinessCosts *string + Impact *enums.RiskImpact + Likelihood *enums.RiskLikelihood + Mitigation *string + Satisfies *string + Details map[string]interface{} + ControlIDs []string + ProcedureIDs []string + ActionplanIDs []string +} + +// Mutate applies the CreateRiskInput on the RiskMutation builder. +func (i *CreateRiskInput) Mutate(m *RiskMutation) { + 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.Status; v != nil { + m.SetStatus(*v) + } + if v := i.RiskType; v != nil { + m.SetRiskType(*v) + } + if v := i.BusinessCosts; v != nil { + m.SetBusinessCosts(*v) + } + if v := i.Impact; v != nil { + m.SetImpact(*v) + } + if v := i.Likelihood; v != nil { + m.SetLikelihood(*v) + } + if v := i.Mitigation; v != nil { + m.SetMitigation(*v) + } + if v := i.Satisfies; v != nil { + m.SetSatisfies(*v) + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if v := i.ControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.ProcedureIDs; len(v) > 0 { + m.AddProcedureIDs(v...) + } + if v := i.ActionplanIDs; len(v) > 0 { + m.AddActionplanIDs(v...) + } +} + +// SetInput applies the change-set in the CreateRiskInput on the RiskCreate builder. +func (c *RiskCreate) SetInput(i CreateRiskInput) *RiskCreate { + i.Mutate(c.Mutation()) + return c +} + +// UpdateRiskInput represents a mutation input for updating risks. +type UpdateRiskInput struct { + ClearTags bool + Tags []string + AppendTags []string + Name *string + ClearDescription bool + Description *string + ClearStatus bool + Status *string + ClearRiskType bool + RiskType *string + ClearBusinessCosts bool + BusinessCosts *string + ClearImpact bool + Impact *enums.RiskImpact + ClearLikelihood bool + Likelihood *enums.RiskLikelihood + ClearMitigation bool + Mitigation *string + ClearSatisfies bool + Satisfies *string + ClearDetails bool + Details map[string]interface{} + ClearControl bool + AddControlIDs []string + RemoveControlIDs []string + ClearProcedure bool + AddProcedureIDs []string + RemoveProcedureIDs []string + ClearActionplans bool + AddActionplanIDs []string + RemoveActionplanIDs []string +} + +// Mutate applies the UpdateRiskInput on the RiskMutation builder. +func (i *UpdateRiskInput) Mutate(m *RiskMutation) { + 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 i.ClearStatus { + m.ClearStatus() + } + if v := i.Status; v != nil { + m.SetStatus(*v) + } + if i.ClearRiskType { + m.ClearRiskType() + } + if v := i.RiskType; v != nil { + m.SetRiskType(*v) + } + if i.ClearBusinessCosts { + m.ClearBusinessCosts() + } + if v := i.BusinessCosts; v != nil { + m.SetBusinessCosts(*v) + } + if i.ClearImpact { + m.ClearImpact() + } + if v := i.Impact; v != nil { + m.SetImpact(*v) + } + if i.ClearLikelihood { + m.ClearLikelihood() + } + if v := i.Likelihood; v != nil { + m.SetLikelihood(*v) + } + if i.ClearMitigation { + m.ClearMitigation() + } + if v := i.Mitigation; v != nil { + m.SetMitigation(*v) + } + if i.ClearSatisfies { + m.ClearSatisfies() + } + if v := i.Satisfies; v != nil { + m.SetSatisfies(*v) + } + if i.ClearDetails { + m.ClearDetails() + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if i.ClearControl { + m.ClearControl() + } + if v := i.AddControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.RemoveControlIDs; len(v) > 0 { + m.RemoveControlIDs(v...) + } + if i.ClearProcedure { + m.ClearProcedure() + } + if v := i.AddProcedureIDs; len(v) > 0 { + m.AddProcedureIDs(v...) + } + if v := i.RemoveProcedureIDs; len(v) > 0 { + m.RemoveProcedureIDs(v...) + } + if i.ClearActionplans { + m.ClearActionplans() + } + if v := i.AddActionplanIDs; len(v) > 0 { + m.AddActionplanIDs(v...) + } + if v := i.RemoveActionplanIDs; len(v) > 0 { + m.RemoveActionplanIDs(v...) + } +} + +// SetInput applies the change-set in the UpdateRiskInput on the RiskUpdate builder. +func (c *RiskUpdate) SetInput(i UpdateRiskInput) *RiskUpdate { + i.Mutate(c.Mutation()) + return c +} + +// SetInput applies the change-set in the UpdateRiskInput on the RiskUpdateOne builder. +func (c *RiskUpdateOne) SetInput(i UpdateRiskInput) *RiskUpdateOne { + i.Mutate(c.Mutation()) + return c +} + +// CreateStandardInput represents a mutation input for creating standards. +type CreateStandardInput struct { + Tags []string + Name string + Description *string + Family *string + Status *string + StandardType *string + Version *string + PurposeAndScope *string + Background *string + Satisfies *string + Details map[string]interface{} + ControlobjectiveIDs []string + ControlIDs []string + ProcedureIDs []string + ActionplanIDs []string +} + +// Mutate applies the CreateStandardInput on the StandardMutation builder. +func (i *CreateStandardInput) Mutate(m *StandardMutation) { + 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.Family; v != nil { + m.SetFamily(*v) + } + if v := i.Status; v != nil { + m.SetStatus(*v) + } + if v := i.StandardType; v != nil { + m.SetStandardType(*v) } - if v := i.BillingContact; v != nil { - m.SetBillingContact(*v) + if v := i.Version; v != nil { + m.SetVersion(*v) } - if v := i.BillingEmail; v != nil { - m.SetBillingEmail(*v) + if v := i.PurposeAndScope; v != nil { + m.SetPurposeAndScope(*v) } - if v := i.BillingPhone; v != nil { - m.SetBillingPhone(*v) + if v := i.Background; v != nil { + m.SetBackground(*v) } - if v := i.BillingAddress; v != nil { - m.SetBillingAddress(*v) + if v := i.Satisfies; v != nil { + m.SetSatisfies(*v) } - if v := i.TaxIdentifier; v != nil { - m.SetTaxIdentifier(*v) + if v := i.Details; v != nil { + m.SetDetails(v) } - if v := i.GeoLocation; v != nil { - m.SetGeoLocation(*v) + if v := i.ControlobjectiveIDs; len(v) > 0 { + m.AddControlobjectiveIDs(v...) } - if v := i.OrganizationID; v != nil { - m.SetOrganizationID(*v) + if v := i.ControlIDs; len(v) > 0 { + m.AddControlIDs(v...) } - if v := i.FileIDs; len(v) > 0 { - m.AddFileIDs(v...) + if v := i.ProcedureIDs; len(v) > 0 { + m.AddProcedureIDs(v...) + } + if v := i.ActionplanIDs; len(v) > 0 { + m.AddActionplanIDs(v...) } } -// SetInput applies the change-set in the CreateOrganizationSettingInput on the OrganizationSettingCreate builder. -func (c *OrganizationSettingCreate) SetInput(i CreateOrganizationSettingInput) *OrganizationSettingCreate { +// SetInput applies the change-set in the CreateStandardInput on the StandardCreate builder. +func (c *StandardCreate) SetInput(i CreateStandardInput) *StandardCreate { i.Mutate(c.Mutation()) return c } -// UpdateOrganizationSettingInput represents a mutation input for updating organizationsettings. -type UpdateOrganizationSettingInput struct { - ClearTags bool - Tags []string - AppendTags []string - ClearDomains bool - Domains []string - AppendDomains []string - ClearBillingContact bool - BillingContact *string - ClearBillingEmail bool - BillingEmail *string - ClearBillingPhone bool - BillingPhone *string - ClearBillingAddress bool - BillingAddress *string - ClearTaxIdentifier bool - TaxIdentifier *string - ClearGeoLocation bool - GeoLocation *enums.Region - ClearOrganization bool - OrganizationID *string - ClearFiles bool - AddFileIDs []string - RemoveFileIDs []string -} - -// Mutate applies the UpdateOrganizationSettingInput on the OrganizationSettingMutation builder. -func (i *UpdateOrganizationSettingInput) Mutate(m *OrganizationSettingMutation) { +// UpdateStandardInput represents a mutation input for updating standards. +type UpdateStandardInput struct { + ClearTags bool + Tags []string + AppendTags []string + Name *string + ClearDescription bool + Description *string + ClearFamily bool + Family *string + ClearStatus bool + Status *string + ClearStandardType bool + StandardType *string + ClearVersion bool + Version *string + ClearPurposeAndScope bool + PurposeAndScope *string + ClearBackground bool + Background *string + ClearSatisfies bool + Satisfies *string + ClearDetails bool + Details map[string]interface{} + ClearControlobjectives bool + AddControlobjectiveIDs []string + RemoveControlobjectiveIDs []string + ClearControls bool + AddControlIDs []string + RemoveControlIDs []string + ClearProcedures bool + AddProcedureIDs []string + RemoveProcedureIDs []string + ClearActionplans bool + AddActionplanIDs []string + RemoveActionplanIDs []string +} + +// Mutate applies the UpdateStandardInput on the StandardMutation builder. +func (i *UpdateStandardInput) Mutate(m *StandardMutation) { if i.ClearTags { m.ClearTags() } @@ -3583,149 +5490,253 @@ func (i *UpdateOrganizationSettingInput) Mutate(m *OrganizationSettingMutation) if i.AppendTags != nil { m.AppendTags(i.Tags) } - if i.ClearDomains { - m.ClearDomains() + if v := i.Name; v != nil { + m.SetName(*v) } - if v := i.Domains; v != nil { - m.SetDomains(v) + if i.ClearDescription { + m.ClearDescription() } - if i.AppendDomains != nil { - m.AppendDomains(i.Domains) + if v := i.Description; v != nil { + m.SetDescription(*v) } - if i.ClearBillingContact { - m.ClearBillingContact() + if i.ClearFamily { + m.ClearFamily() } - if v := i.BillingContact; v != nil { - m.SetBillingContact(*v) + if v := i.Family; v != nil { + m.SetFamily(*v) } - if i.ClearBillingEmail { - m.ClearBillingEmail() + if i.ClearStatus { + m.ClearStatus() } - if v := i.BillingEmail; v != nil { - m.SetBillingEmail(*v) + if v := i.Status; v != nil { + m.SetStatus(*v) } - if i.ClearBillingPhone { - m.ClearBillingPhone() + if i.ClearStandardType { + m.ClearStandardType() } - if v := i.BillingPhone; v != nil { - m.SetBillingPhone(*v) + if v := i.StandardType; v != nil { + m.SetStandardType(*v) } - if i.ClearBillingAddress { - m.ClearBillingAddress() + if i.ClearVersion { + m.ClearVersion() } - if v := i.BillingAddress; v != nil { - m.SetBillingAddress(*v) + if v := i.Version; v != nil { + m.SetVersion(*v) } - if i.ClearTaxIdentifier { - m.ClearTaxIdentifier() + if i.ClearPurposeAndScope { + m.ClearPurposeAndScope() } - if v := i.TaxIdentifier; v != nil { - m.SetTaxIdentifier(*v) + if v := i.PurposeAndScope; v != nil { + m.SetPurposeAndScope(*v) } - if i.ClearGeoLocation { - m.ClearGeoLocation() + if i.ClearBackground { + m.ClearBackground() } - if v := i.GeoLocation; v != nil { - m.SetGeoLocation(*v) + if v := i.Background; v != nil { + m.SetBackground(*v) } - if i.ClearOrganization { - m.ClearOrganization() + if i.ClearSatisfies { + m.ClearSatisfies() } - if v := i.OrganizationID; v != nil { - m.SetOrganizationID(*v) + if v := i.Satisfies; v != nil { + m.SetSatisfies(*v) } - if i.ClearFiles { - m.ClearFiles() + if i.ClearDetails { + m.ClearDetails() } - if v := i.AddFileIDs; len(v) > 0 { - m.AddFileIDs(v...) + if v := i.Details; v != nil { + m.SetDetails(v) } - if v := i.RemoveFileIDs; len(v) > 0 { - m.RemoveFileIDs(v...) + if i.ClearControlobjectives { + m.ClearControlobjectives() + } + if v := i.AddControlobjectiveIDs; len(v) > 0 { + m.AddControlobjectiveIDs(v...) + } + if v := i.RemoveControlobjectiveIDs; len(v) > 0 { + m.RemoveControlobjectiveIDs(v...) + } + if i.ClearControls { + m.ClearControls() + } + if v := i.AddControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.RemoveControlIDs; len(v) > 0 { + m.RemoveControlIDs(v...) + } + if i.ClearProcedures { + m.ClearProcedures() + } + if v := i.AddProcedureIDs; len(v) > 0 { + m.AddProcedureIDs(v...) + } + if v := i.RemoveProcedureIDs; len(v) > 0 { + m.RemoveProcedureIDs(v...) + } + if i.ClearActionplans { + m.ClearActionplans() + } + if v := i.AddActionplanIDs; len(v) > 0 { + m.AddActionplanIDs(v...) + } + if v := i.RemoveActionplanIDs; len(v) > 0 { + m.RemoveActionplanIDs(v...) } } -// SetInput applies the change-set in the UpdateOrganizationSettingInput on the OrganizationSettingUpdate builder. -func (c *OrganizationSettingUpdate) SetInput(i UpdateOrganizationSettingInput) *OrganizationSettingUpdate { +// SetInput applies the change-set in the UpdateStandardInput on the StandardUpdate builder. +func (c *StandardUpdate) SetInput(i UpdateStandardInput) *StandardUpdate { i.Mutate(c.Mutation()) return c } -// SetInput applies the change-set in the UpdateOrganizationSettingInput on the OrganizationSettingUpdateOne builder. -func (c *OrganizationSettingUpdateOne) SetInput(i UpdateOrganizationSettingInput) *OrganizationSettingUpdateOne { +// SetInput applies the change-set in the UpdateStandardInput on the StandardUpdateOne builder. +func (c *StandardUpdateOne) SetInput(i UpdateStandardInput) *StandardUpdateOne { i.Mutate(c.Mutation()) return c } -// CreatePersonalAccessTokenInput represents a mutation input for creating personalaccesstokens. -type CreatePersonalAccessTokenInput struct { - Tags []string - Name string - ExpiresAt *time.Time - Description *string - Scopes []string - LastUsedAt *time.Time - OwnerID string - OrganizationIDs []string - EventIDs []string -} - -// Mutate applies the CreatePersonalAccessTokenInput on the PersonalAccessTokenMutation builder. -func (i *CreatePersonalAccessTokenInput) Mutate(m *PersonalAccessTokenMutation) { +// CreateSubcontrolInput represents a mutation input for creating subcontrols. +type CreateSubcontrolInput struct { + Tags []string + Name string + Description *string + Status *string + SubcontrolType *string + Version *string + SubcontrolNumber *string + Family *string + Class *string + Source *string + MappedFrameworks *string + ImplementationEvidence *string + ImplementationStatus *string + ImplementationDate *time.Time + ImplementationVerification *string + ImplementationVerificationDate *time.Time + Details map[string]interface{} + ControlIDs []string + UserIDs []string + NotesID *string +} + +// Mutate applies the CreateSubcontrolInput on the SubcontrolMutation builder. +func (i *CreateSubcontrolInput) Mutate(m *SubcontrolMutation) { if v := i.Tags; v != nil { m.SetTags(v) } m.SetName(i.Name) - if v := i.ExpiresAt; v != nil { - m.SetExpiresAt(*v) - } if v := i.Description; v != nil { m.SetDescription(*v) } - if v := i.Scopes; v != nil { - m.SetScopes(v) + if v := i.Status; v != nil { + m.SetStatus(*v) } - if v := i.LastUsedAt; v != nil { - m.SetLastUsedAt(*v) + if v := i.SubcontrolType; v != nil { + m.SetSubcontrolType(*v) } - m.SetOwnerID(i.OwnerID) - if v := i.OrganizationIDs; len(v) > 0 { - m.AddOrganizationIDs(v...) + if v := i.Version; v != nil { + m.SetVersion(*v) } - if v := i.EventIDs; len(v) > 0 { - m.AddEventIDs(v...) + if v := i.SubcontrolNumber; v != nil { + m.SetSubcontrolNumber(*v) + } + if v := i.Family; v != nil { + m.SetFamily(*v) + } + if v := i.Class; v != nil { + m.SetClass(*v) + } + if v := i.Source; v != nil { + m.SetSource(*v) + } + if v := i.MappedFrameworks; v != nil { + m.SetMappedFrameworks(*v) + } + if v := i.ImplementationEvidence; v != nil { + m.SetImplementationEvidence(*v) + } + if v := i.ImplementationStatus; v != nil { + m.SetImplementationStatus(*v) + } + if v := i.ImplementationDate; v != nil { + m.SetImplementationDate(*v) + } + if v := i.ImplementationVerification; v != nil { + m.SetImplementationVerification(*v) + } + if v := i.ImplementationVerificationDate; v != nil { + m.SetImplementationVerificationDate(*v) + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if v := i.ControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.UserIDs; len(v) > 0 { + m.AddUserIDs(v...) + } + if v := i.NotesID; v != nil { + m.SetNotesID(*v) } } -// SetInput applies the change-set in the CreatePersonalAccessTokenInput on the PersonalAccessTokenCreate builder. -func (c *PersonalAccessTokenCreate) SetInput(i CreatePersonalAccessTokenInput) *PersonalAccessTokenCreate { +// SetInput applies the change-set in the CreateSubcontrolInput on the SubcontrolCreate builder. +func (c *SubcontrolCreate) SetInput(i CreateSubcontrolInput) *SubcontrolCreate { i.Mutate(c.Mutation()) return c } -// UpdatePersonalAccessTokenInput represents a mutation input for updating personalaccesstokens. -type UpdatePersonalAccessTokenInput struct { - ClearTags bool - Tags []string - AppendTags []string - Name *string - ClearDescription bool - Description *string - ClearScopes bool - Scopes []string - AppendScopes []string - ClearLastUsedAt bool - LastUsedAt *time.Time - ClearOrganizations bool - AddOrganizationIDs []string - RemoveOrganizationIDs []string - ClearEvents bool - AddEventIDs []string - RemoveEventIDs []string -} - -// Mutate applies the UpdatePersonalAccessTokenInput on the PersonalAccessTokenMutation builder. -func (i *UpdatePersonalAccessTokenInput) Mutate(m *PersonalAccessTokenMutation) { +// UpdateSubcontrolInput represents a mutation input for updating subcontrols. +type UpdateSubcontrolInput struct { + ClearTags bool + Tags []string + AppendTags []string + Name *string + ClearDescription bool + Description *string + ClearStatus bool + Status *string + ClearSubcontrolType bool + SubcontrolType *string + ClearVersion bool + Version *string + ClearSubcontrolNumber bool + SubcontrolNumber *string + ClearFamily bool + Family *string + ClearClass bool + Class *string + ClearSource bool + Source *string + ClearMappedFrameworks bool + MappedFrameworks *string + ClearImplementationEvidence bool + ImplementationEvidence *string + ClearImplementationStatus bool + ImplementationStatus *string + ClearImplementationDate bool + ImplementationDate *time.Time + ClearImplementationVerification bool + ImplementationVerification *string + ClearImplementationVerificationDate bool + ImplementationVerificationDate *time.Time + ClearDetails bool + Details map[string]interface{} + ClearControl bool + AddControlIDs []string + RemoveControlIDs []string + ClearUser bool + AddUserIDs []string + RemoveUserIDs []string + ClearNotes bool + NotesID *string +} + +// Mutate applies the UpdateSubcontrolInput on the SubcontrolMutation builder. +func (i *UpdateSubcontrolInput) Mutate(m *SubcontrolMutation) { if i.ClearTags { m.ClearTags() } @@ -3744,49 +5755,124 @@ func (i *UpdatePersonalAccessTokenInput) Mutate(m *PersonalAccessTokenMutation) if v := i.Description; v != nil { m.SetDescription(*v) } - if i.ClearScopes { - m.ClearScopes() + if i.ClearStatus { + m.ClearStatus() } - if v := i.Scopes; v != nil { - m.SetScopes(v) + if v := i.Status; v != nil { + m.SetStatus(*v) } - if i.AppendScopes != nil { - m.AppendScopes(i.Scopes) + if i.ClearSubcontrolType { + m.ClearSubcontrolType() } - if i.ClearLastUsedAt { - m.ClearLastUsedAt() + if v := i.SubcontrolType; v != nil { + m.SetSubcontrolType(*v) } - if v := i.LastUsedAt; v != nil { - m.SetLastUsedAt(*v) + if i.ClearVersion { + m.ClearVersion() } - if i.ClearOrganizations { - m.ClearOrganizations() + if v := i.Version; v != nil { + m.SetVersion(*v) } - if v := i.AddOrganizationIDs; len(v) > 0 { - m.AddOrganizationIDs(v...) + if i.ClearSubcontrolNumber { + m.ClearSubcontrolNumber() } - if v := i.RemoveOrganizationIDs; len(v) > 0 { - m.RemoveOrganizationIDs(v...) + if v := i.SubcontrolNumber; v != nil { + m.SetSubcontrolNumber(*v) } - if i.ClearEvents { - m.ClearEvents() + if i.ClearFamily { + m.ClearFamily() } - if v := i.AddEventIDs; len(v) > 0 { - m.AddEventIDs(v...) + if v := i.Family; v != nil { + m.SetFamily(*v) } - if v := i.RemoveEventIDs; len(v) > 0 { - m.RemoveEventIDs(v...) + if i.ClearClass { + m.ClearClass() + } + if v := i.Class; v != nil { + m.SetClass(*v) + } + if i.ClearSource { + m.ClearSource() + } + if v := i.Source; v != nil { + m.SetSource(*v) + } + if i.ClearMappedFrameworks { + m.ClearMappedFrameworks() + } + if v := i.MappedFrameworks; v != nil { + m.SetMappedFrameworks(*v) + } + if i.ClearImplementationEvidence { + m.ClearImplementationEvidence() + } + if v := i.ImplementationEvidence; v != nil { + m.SetImplementationEvidence(*v) + } + if i.ClearImplementationStatus { + m.ClearImplementationStatus() + } + if v := i.ImplementationStatus; v != nil { + m.SetImplementationStatus(*v) + } + if i.ClearImplementationDate { + m.ClearImplementationDate() + } + if v := i.ImplementationDate; v != nil { + m.SetImplementationDate(*v) + } + if i.ClearImplementationVerification { + m.ClearImplementationVerification() + } + if v := i.ImplementationVerification; v != nil { + m.SetImplementationVerification(*v) + } + if i.ClearImplementationVerificationDate { + m.ClearImplementationVerificationDate() + } + if v := i.ImplementationVerificationDate; v != nil { + m.SetImplementationVerificationDate(*v) + } + if i.ClearDetails { + m.ClearDetails() + } + if v := i.Details; v != nil { + m.SetDetails(v) + } + if i.ClearControl { + m.ClearControl() + } + if v := i.AddControlIDs; len(v) > 0 { + m.AddControlIDs(v...) + } + if v := i.RemoveControlIDs; len(v) > 0 { + m.RemoveControlIDs(v...) + } + if i.ClearUser { + m.ClearUser() + } + if v := i.AddUserIDs; len(v) > 0 { + m.AddUserIDs(v...) + } + if v := i.RemoveUserIDs; len(v) > 0 { + m.RemoveUserIDs(v...) + } + if i.ClearNotes { + m.ClearNotes() + } + if v := i.NotesID; v != nil { + m.SetNotesID(*v) } } -// SetInput applies the change-set in the UpdatePersonalAccessTokenInput on the PersonalAccessTokenUpdate builder. -func (c *PersonalAccessTokenUpdate) SetInput(i UpdatePersonalAccessTokenInput) *PersonalAccessTokenUpdate { +// SetInput applies the change-set in the UpdateSubcontrolInput on the SubcontrolUpdate builder. +func (c *SubcontrolUpdate) SetInput(i UpdateSubcontrolInput) *SubcontrolUpdate { i.Mutate(c.Mutation()) return c } -// SetInput applies the change-set in the UpdatePersonalAccessTokenInput on the PersonalAccessTokenUpdateOne builder. -func (c *PersonalAccessTokenUpdateOne) SetInput(i UpdatePersonalAccessTokenInput) *PersonalAccessTokenUpdateOne { +// SetInput applies the change-set in the UpdateSubcontrolInput on the SubcontrolUpdateOne builder. +func (c *SubcontrolUpdateOne) SetInput(i UpdateSubcontrolInput) *SubcontrolUpdateOne { i.Mutate(c.Mutation()) return c } @@ -4123,6 +6209,8 @@ type CreateUserInput struct { FileIDs []string FileID *string EventIDs []string + ActionplanIDs []string + SubcontrolIDs []string } // Mutate applies the CreateUserInput on the UserMutation builder. @@ -4193,6 +6281,12 @@ func (i *CreateUserInput) Mutate(m *UserMutation) { if v := i.EventIDs; len(v) > 0 { m.AddEventIDs(v...) } + if v := i.ActionplanIDs; len(v) > 0 { + m.AddActionplanIDs(v...) + } + if v := i.SubcontrolIDs; len(v) > 0 { + m.AddSubcontrolIDs(v...) + } } // SetInput applies the change-set in the CreateUserInput on the UserCreate builder. @@ -4257,6 +6351,12 @@ type UpdateUserInput struct { ClearEvents bool AddEventIDs []string RemoveEventIDs []string + ClearActionplans bool + AddActionplanIDs []string + RemoveActionplanIDs []string + ClearSubcontrols bool + AddSubcontrolIDs []string + RemoveSubcontrolIDs []string } // Mutate applies the UpdateUserInput on the UserMutation builder. @@ -4423,6 +6523,24 @@ func (i *UpdateUserInput) Mutate(m *UserMutation) { if v := i.RemoveEventIDs; len(v) > 0 { m.RemoveEventIDs(v...) } + if i.ClearActionplans { + m.ClearActionplans() + } + if v := i.AddActionplanIDs; len(v) > 0 { + m.AddActionplanIDs(v...) + } + if v := i.RemoveActionplanIDs; len(v) > 0 { + m.RemoveActionplanIDs(v...) + } + if i.ClearSubcontrols { + m.ClearSubcontrols() + } + if v := i.AddSubcontrolIDs; len(v) > 0 { + m.AddSubcontrolIDs(v...) + } + if v := i.RemoveSubcontrolIDs; len(v) > 0 { + m.RemoveSubcontrolIDs(v...) + } } // SetInput applies the change-set in the UpdateUserInput on the UserUpdate builder. diff --git a/internal/ent/generated/gql_node.go b/internal/ent/generated/gql_node.go index 49da825e..9f74e237 100644 --- a/internal/ent/generated/gql_node.go +++ b/internal/ent/generated/gql_node.go @@ -9,9 +9,15 @@ import ( "entgo.io/contrib/entgql" "github.com/99designs/gqlgen/graphql" "github.com/hashicorp/go-multierror" + "github.com/theopenlane/core/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" "github.com/theopenlane/core/internal/ent/generated/apitoken" "github.com/theopenlane/core/internal/ent/generated/contact" "github.com/theopenlane/core/internal/ent/generated/contacthistory" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" "github.com/theopenlane/core/internal/ent/generated/documentdata" "github.com/theopenlane/core/internal/ent/generated/documentdatahistory" "github.com/theopenlane/core/internal/ent/generated/entitlement" @@ -40,7 +46,11 @@ import ( "github.com/theopenlane/core/internal/ent/generated/hushhistory" "github.com/theopenlane/core/internal/ent/generated/integration" "github.com/theopenlane/core/internal/ent/generated/integrationhistory" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" "github.com/theopenlane/core/internal/ent/generated/invite" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/notehistory" "github.com/theopenlane/core/internal/ent/generated/oauthprovider" @@ -53,6 +63,14 @@ import ( "github.com/theopenlane/core/internal/ent/generated/orgmembership" "github.com/theopenlane/core/internal/ent/generated/orgmembershiphistory" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" "github.com/theopenlane/core/internal/ent/generated/subscriber" "github.com/theopenlane/core/internal/ent/generated/template" "github.com/theopenlane/core/internal/ent/generated/templatehistory" @@ -75,6 +93,16 @@ var apitokenImplementors = []string{"APIToken", "Node"} // IsNode implements the Node interface check for GQLGen. func (*APIToken) IsNode() {} +var actionplanImplementors = []string{"ActionPlan", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*ActionPlan) IsNode() {} + +var actionplanhistoryImplementors = []string{"ActionPlanHistory", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*ActionPlanHistory) IsNode() {} + var contactImplementors = []string{"Contact", "Node"} // IsNode implements the Node interface check for GQLGen. @@ -85,6 +113,26 @@ var contacthistoryImplementors = []string{"ContactHistory", "Node"} // IsNode implements the Node interface check for GQLGen. func (*ContactHistory) IsNode() {} +var controlImplementors = []string{"Control", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*Control) IsNode() {} + +var controlhistoryImplementors = []string{"ControlHistory", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*ControlHistory) IsNode() {} + +var controlobjectiveImplementors = []string{"ControlObjective", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*ControlObjective) IsNode() {} + +var controlobjectivehistoryImplementors = []string{"ControlObjectiveHistory", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*ControlObjectiveHistory) IsNode() {} + var documentdataImplementors = []string{"DocumentData", "Node"} // IsNode implements the Node interface check for GQLGen. @@ -225,11 +273,31 @@ var integrationhistoryImplementors = []string{"IntegrationHistory", "Node"} // IsNode implements the Node interface check for GQLGen. func (*IntegrationHistory) IsNode() {} +var internalpolicyImplementors = []string{"InternalPolicy", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*InternalPolicy) IsNode() {} + +var internalpolicyhistoryImplementors = []string{"InternalPolicyHistory", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*InternalPolicyHistory) IsNode() {} + var inviteImplementors = []string{"Invite", "Node"} // IsNode implements the Node interface check for GQLGen. func (*Invite) IsNode() {} +var narrativeImplementors = []string{"Narrative", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*Narrative) IsNode() {} + +var narrativehistoryImplementors = []string{"NarrativeHistory", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*NarrativeHistory) IsNode() {} + var noteImplementors = []string{"Note", "Node"} // IsNode implements the Node interface check for GQLGen. @@ -290,6 +358,46 @@ var personalaccesstokenImplementors = []string{"PersonalAccessToken", "Node"} // IsNode implements the Node interface check for GQLGen. func (*PersonalAccessToken) IsNode() {} +var procedureImplementors = []string{"Procedure", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*Procedure) IsNode() {} + +var procedurehistoryImplementors = []string{"ProcedureHistory", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*ProcedureHistory) IsNode() {} + +var riskImplementors = []string{"Risk", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*Risk) IsNode() {} + +var riskhistoryImplementors = []string{"RiskHistory", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*RiskHistory) IsNode() {} + +var standardImplementors = []string{"Standard", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*Standard) IsNode() {} + +var standardhistoryImplementors = []string{"StandardHistory", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*StandardHistory) IsNode() {} + +var subcontrolImplementors = []string{"Subcontrol", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*Subcontrol) IsNode() {} + +var subcontrolhistoryImplementors = []string{"SubcontrolHistory", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*SubcontrolHistory) IsNode() {} + var subscriberImplementors = []string{"Subscriber", "Node"} // IsNode implements the Node interface check for GQLGen. @@ -407,6 +515,24 @@ func (c *Client) noder(ctx context.Context, table string, id string) (Noder, err } } return query.Only(ctx) + case actionplan.Table: + query := c.ActionPlan.Query(). + Where(actionplan.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, actionplanImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case actionplanhistory.Table: + query := c.ActionPlanHistory.Query(). + Where(actionplanhistory.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, actionplanhistoryImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) case contact.Table: query := c.Contact.Query(). Where(contact.ID(id)) @@ -425,6 +551,42 @@ func (c *Client) noder(ctx context.Context, table string, id string) (Noder, err } } return query.Only(ctx) + case control.Table: + query := c.Control.Query(). + Where(control.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, controlImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case controlhistory.Table: + query := c.ControlHistory.Query(). + Where(controlhistory.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, controlhistoryImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case controlobjective.Table: + query := c.ControlObjective.Query(). + Where(controlobjective.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, controlobjectiveImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case controlobjectivehistory.Table: + query := c.ControlObjectiveHistory.Query(). + Where(controlobjectivehistory.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, controlobjectivehistoryImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) case documentdata.Table: query := c.DocumentData.Query(). Where(documentdata.ID(id)) @@ -677,6 +839,24 @@ func (c *Client) noder(ctx context.Context, table string, id string) (Noder, err } } return query.Only(ctx) + case internalpolicy.Table: + query := c.InternalPolicy.Query(). + Where(internalpolicy.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, internalpolicyImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case internalpolicyhistory.Table: + query := c.InternalPolicyHistory.Query(). + Where(internalpolicyhistory.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, internalpolicyhistoryImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) case invite.Table: query := c.Invite.Query(). Where(invite.ID(id)) @@ -686,6 +866,24 @@ func (c *Client) noder(ctx context.Context, table string, id string) (Noder, err } } return query.Only(ctx) + case narrative.Table: + query := c.Narrative.Query(). + Where(narrative.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, narrativeImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case narrativehistory.Table: + query := c.NarrativeHistory.Query(). + Where(narrativehistory.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, narrativehistoryImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) case note.Table: query := c.Note.Query(). Where(note.ID(id)) @@ -794,6 +992,78 @@ func (c *Client) noder(ctx context.Context, table string, id string) (Noder, err } } return query.Only(ctx) + case procedure.Table: + query := c.Procedure.Query(). + Where(procedure.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, procedureImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case procedurehistory.Table: + query := c.ProcedureHistory.Query(). + Where(procedurehistory.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, procedurehistoryImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case risk.Table: + query := c.Risk.Query(). + Where(risk.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, riskImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case riskhistory.Table: + query := c.RiskHistory.Query(). + Where(riskhistory.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, riskhistoryImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case standard.Table: + query := c.Standard.Query(). + Where(standard.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, standardImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case standardhistory.Table: + query := c.StandardHistory.Query(). + Where(standardhistory.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, standardhistoryImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case subcontrol.Table: + query := c.Subcontrol.Query(). + Where(subcontrol.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, subcontrolImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case subcontrolhistory.Table: + query := c.SubcontrolHistory.Query(). + Where(subcontrolhistory.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, subcontrolhistoryImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) case subscriber.Table: query := c.Subscriber.Query(). Where(subscriber.ID(id)) @@ -973,6 +1243,38 @@ func (c *Client) noders(ctx context.Context, table string, ids []string) ([]Node *noder = node } } + case actionplan.Table: + query := c.ActionPlan.Query(). + Where(actionplan.IDIn(ids...)) + query, err := query.CollectFields(ctx, actionplanImplementors...) + 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 actionplanhistory.Table: + query := c.ActionPlanHistory.Query(). + Where(actionplanhistory.IDIn(ids...)) + query, err := query.CollectFields(ctx, actionplanhistoryImplementors...) + 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 contact.Table: query := c.Contact.Query(). Where(contact.IDIn(ids...)) @@ -1005,6 +1307,70 @@ func (c *Client) noders(ctx context.Context, table string, ids []string) ([]Node *noder = node } } + case control.Table: + query := c.Control.Query(). + Where(control.IDIn(ids...)) + query, err := query.CollectFields(ctx, controlImplementors...) + 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 controlhistory.Table: + query := c.ControlHistory.Query(). + Where(controlhistory.IDIn(ids...)) + query, err := query.CollectFields(ctx, controlhistoryImplementors...) + 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 controlobjective.Table: + query := c.ControlObjective.Query(). + Where(controlobjective.IDIn(ids...)) + query, err := query.CollectFields(ctx, controlobjectiveImplementors...) + 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 controlobjectivehistory.Table: + query := c.ControlObjectiveHistory.Query(). + Where(controlobjectivehistory.IDIn(ids...)) + query, err := query.CollectFields(ctx, controlobjectivehistoryImplementors...) + 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 documentdata.Table: query := c.DocumentData.Query(). Where(documentdata.IDIn(ids...)) @@ -1453,6 +1819,38 @@ func (c *Client) noders(ctx context.Context, table string, ids []string) ([]Node *noder = node } } + case internalpolicy.Table: + query := c.InternalPolicy.Query(). + Where(internalpolicy.IDIn(ids...)) + query, err := query.CollectFields(ctx, internalpolicyImplementors...) + 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 internalpolicyhistory.Table: + query := c.InternalPolicyHistory.Query(). + Where(internalpolicyhistory.IDIn(ids...)) + query, err := query.CollectFields(ctx, internalpolicyhistoryImplementors...) + 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 invite.Table: query := c.Invite.Query(). Where(invite.IDIn(ids...)) @@ -1469,6 +1867,38 @@ func (c *Client) noders(ctx context.Context, table string, ids []string) ([]Node *noder = node } } + case narrative.Table: + query := c.Narrative.Query(). + Where(narrative.IDIn(ids...)) + query, err := query.CollectFields(ctx, narrativeImplementors...) + 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 narrativehistory.Table: + query := c.NarrativeHistory.Query(). + Where(narrativehistory.IDIn(ids...)) + query, err := query.CollectFields(ctx, narrativehistoryImplementors...) + 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 note.Table: query := c.Note.Query(). Where(note.IDIn(ids...)) @@ -1661,6 +2091,134 @@ func (c *Client) noders(ctx context.Context, table string, ids []string) ([]Node *noder = node } } + case procedure.Table: + query := c.Procedure.Query(). + Where(procedure.IDIn(ids...)) + query, err := query.CollectFields(ctx, procedureImplementors...) + 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 procedurehistory.Table: + query := c.ProcedureHistory.Query(). + Where(procedurehistory.IDIn(ids...)) + query, err := query.CollectFields(ctx, procedurehistoryImplementors...) + 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 risk.Table: + query := c.Risk.Query(). + Where(risk.IDIn(ids...)) + query, err := query.CollectFields(ctx, riskImplementors...) + 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 riskhistory.Table: + query := c.RiskHistory.Query(). + Where(riskhistory.IDIn(ids...)) + query, err := query.CollectFields(ctx, riskhistoryImplementors...) + 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 standard.Table: + query := c.Standard.Query(). + Where(standard.IDIn(ids...)) + query, err := query.CollectFields(ctx, standardImplementors...) + 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 standardhistory.Table: + query := c.StandardHistory.Query(). + Where(standardhistory.IDIn(ids...)) + query, err := query.CollectFields(ctx, standardhistoryImplementors...) + 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 subcontrol.Table: + query := c.Subcontrol.Query(). + Where(subcontrol.IDIn(ids...)) + query, err := query.CollectFields(ctx, subcontrolImplementors...) + 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 subcontrolhistory.Table: + query := c.SubcontrolHistory.Query(). + Where(subcontrolhistory.IDIn(ids...)) + query, err := query.CollectFields(ctx, subcontrolhistoryImplementors...) + 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 subscriber.Table: query := c.Subscriber.Query(). Where(subscriber.IDIn(ids...)) diff --git a/internal/ent/generated/gql_pagination.go b/internal/ent/generated/gql_pagination.go index 48b086e8..5e0d8c15 100644 --- a/internal/ent/generated/gql_pagination.go +++ b/internal/ent/generated/gql_pagination.go @@ -14,9 +14,15 @@ import ( "entgo.io/ent/dialect/sql" "github.com/99designs/gqlgen/graphql" "github.com/99designs/gqlgen/graphql/errcode" + "github.com/theopenlane/core/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" "github.com/theopenlane/core/internal/ent/generated/apitoken" "github.com/theopenlane/core/internal/ent/generated/contact" "github.com/theopenlane/core/internal/ent/generated/contacthistory" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" "github.com/theopenlane/core/internal/ent/generated/documentdata" "github.com/theopenlane/core/internal/ent/generated/documentdatahistory" "github.com/theopenlane/core/internal/ent/generated/entitlement" @@ -45,7 +51,11 @@ import ( "github.com/theopenlane/core/internal/ent/generated/hushhistory" "github.com/theopenlane/core/internal/ent/generated/integration" "github.com/theopenlane/core/internal/ent/generated/integrationhistory" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" "github.com/theopenlane/core/internal/ent/generated/invite" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/notehistory" "github.com/theopenlane/core/internal/ent/generated/oauthprovider" @@ -58,6 +68,14 @@ import ( "github.com/theopenlane/core/internal/ent/generated/orgmembership" "github.com/theopenlane/core/internal/ent/generated/orgmembershiphistory" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" "github.com/theopenlane/core/internal/ent/generated/subscriber" "github.com/theopenlane/core/internal/ent/generated/template" "github.com/theopenlane/core/internal/ent/generated/templatehistory" @@ -400,20 +418,20 @@ func (at *APIToken) ToEdge(order *APITokenOrder) *APITokenEdge { } } -// ContactEdge is the edge representation of Contact. -type ContactEdge struct { - Node *Contact `json:"node"` - Cursor Cursor `json:"cursor"` +// ActionPlanEdge is the edge representation of ActionPlan. +type ActionPlanEdge struct { + Node *ActionPlan `json:"node"` + Cursor Cursor `json:"cursor"` } -// ContactConnection is the connection containing edges to Contact. -type ContactConnection struct { - Edges []*ContactEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// ActionPlanConnection is the connection containing edges to ActionPlan. +type ActionPlanConnection struct { + Edges []*ActionPlanEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *ContactConnection) build(nodes []*Contact, pager *contactPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *ActionPlanConnection) build(nodes []*ActionPlan, pager *actionplanPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -423,21 +441,21 @@ func (c *ContactConnection) build(nodes []*Contact, pager *contactPager, after * c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *Contact + var nodeAt func(int) *ActionPlan if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *Contact { + nodeAt = func(i int) *ActionPlan { return nodes[n-i] } } else { - nodeAt = func(i int) *Contact { + nodeAt = func(i int) *ActionPlan { return nodes[i] } } - c.Edges = make([]*ContactEdge, len(nodes)) + c.Edges = make([]*ActionPlanEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &ContactEdge{ + c.Edges[i] = &ActionPlanEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -451,87 +469,87 @@ func (c *ContactConnection) build(nodes []*Contact, pager *contactPager, after * } } -// ContactPaginateOption enables pagination customization. -type ContactPaginateOption func(*contactPager) error +// ActionPlanPaginateOption enables pagination customization. +type ActionPlanPaginateOption func(*actionplanPager) error -// WithContactOrder configures pagination ordering. -func WithContactOrder(order *ContactOrder) ContactPaginateOption { +// WithActionPlanOrder configures pagination ordering. +func WithActionPlanOrder(order *ActionPlanOrder) ActionPlanPaginateOption { if order == nil { - order = DefaultContactOrder + order = DefaultActionPlanOrder } o := *order - return func(pager *contactPager) error { + return func(pager *actionplanPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultContactOrder.Field + o.Field = DefaultActionPlanOrder.Field } pager.order = &o return nil } } -// WithContactFilter configures pagination filter. -func WithContactFilter(filter func(*ContactQuery) (*ContactQuery, error)) ContactPaginateOption { - return func(pager *contactPager) error { +// WithActionPlanFilter configures pagination filter. +func WithActionPlanFilter(filter func(*ActionPlanQuery) (*ActionPlanQuery, error)) ActionPlanPaginateOption { + return func(pager *actionplanPager) error { if filter == nil { - return errors.New("ContactQuery filter cannot be nil") + return errors.New("ActionPlanQuery filter cannot be nil") } pager.filter = filter return nil } } -type contactPager struct { +type actionplanPager struct { reverse bool - order *ContactOrder - filter func(*ContactQuery) (*ContactQuery, error) + order *ActionPlanOrder + filter func(*ActionPlanQuery) (*ActionPlanQuery, error) } -func newContactPager(opts []ContactPaginateOption, reverse bool) (*contactPager, error) { - pager := &contactPager{reverse: reverse} +func newActionPlanPager(opts []ActionPlanPaginateOption, reverse bool) (*actionplanPager, error) { + pager := &actionplanPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultContactOrder + pager.order = DefaultActionPlanOrder } return pager, nil } -func (p *contactPager) applyFilter(query *ContactQuery) (*ContactQuery, error) { +func (p *actionplanPager) applyFilter(query *ActionPlanQuery) (*ActionPlanQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *contactPager) toCursor(c *Contact) Cursor { - return p.order.Field.toCursor(c) +func (p *actionplanPager) toCursor(ap *ActionPlan) Cursor { + return p.order.Field.toCursor(ap) } -func (p *contactPager) applyCursors(query *ContactQuery, after, before *Cursor) (*ContactQuery, error) { +func (p *actionplanPager) applyCursors(query *ActionPlanQuery, after, before *Cursor) (*ActionPlanQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultContactOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultActionPlanOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *contactPager) applyOrder(query *ContactQuery) *ContactQuery { +func (p *actionplanPager) applyOrder(query *ActionPlanQuery) *ActionPlanQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultContactOrder.Field { - query = query.Order(DefaultContactOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultActionPlanOrder.Field { + query = query.Order(DefaultActionPlanOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -539,7 +557,7 @@ func (p *contactPager) applyOrder(query *ContactQuery) *ContactQuery { return query } -func (p *contactPager) orderExpr(query *ContactQuery) sql.Querier { +func (p *actionplanPager) orderExpr(query *ActionPlanQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -549,33 +567,33 @@ func (p *contactPager) orderExpr(query *ContactQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultContactOrder.Field { - b.Comma().Ident(DefaultContactOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultActionPlanOrder.Field { + b.Comma().Ident(DefaultActionPlanOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to Contact. -func (c *ContactQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to ActionPlan. +func (ap *ActionPlanQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...ContactPaginateOption, -) (*ContactConnection, error) { + before *Cursor, last *int, opts ...ActionPlanPaginateOption, +) (*ActionPlanConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newContactPager(opts, last != nil) + pager, err := newActionPlanPager(opts, last != nil) if err != nil { return nil, err } - if c, err = pager.applyFilter(c); err != nil { + if ap, err = pager.applyFilter(ap); err != nil { return nil, err } - conn := &ContactConnection{Edges: []*ContactEdge{}} + conn := &ActionPlanConnection{Edges: []*ActionPlanEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := c.Clone() + c := ap.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -587,20 +605,20 @@ func (c *ContactQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if c, err = pager.applyCursors(c, after, before); err != nil { + if ap, err = pager.applyCursors(ap, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - c.Limit(limit) + ap.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := c.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := ap.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - c = pager.applyOrder(c) - nodes, err := c.All(ctx) + ap = pager.applyOrder(ap) + nodes, err := ap.All(ctx) if err != nil { return nil, err } @@ -608,61 +626,61 @@ func (c *ContactQuery) Paginate( return conn, nil } -// ContactOrderField defines the ordering field of Contact. -type ContactOrderField struct { - // Value extracts the ordering value from the given Contact. - Value func(*Contact) (ent.Value, error) +// ActionPlanOrderField defines the ordering field of ActionPlan. +type ActionPlanOrderField struct { + // Value extracts the ordering value from the given ActionPlan. + Value func(*ActionPlan) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) contact.OrderOption - toCursor func(*Contact) Cursor + toTerm func(...sql.OrderTermOption) actionplan.OrderOption + toCursor func(*ActionPlan) Cursor } -// ContactOrder defines the ordering of Contact. -type ContactOrder struct { - Direction OrderDirection `json:"direction"` - Field *ContactOrderField `json:"field"` +// ActionPlanOrder defines the ordering of ActionPlan. +type ActionPlanOrder struct { + Direction OrderDirection `json:"direction"` + Field *ActionPlanOrderField `json:"field"` } -// DefaultContactOrder is the default ordering of Contact. -var DefaultContactOrder = &ContactOrder{ +// DefaultActionPlanOrder is the default ordering of ActionPlan. +var DefaultActionPlanOrder = &ActionPlanOrder{ Direction: entgql.OrderDirectionAsc, - Field: &ContactOrderField{ - Value: func(c *Contact) (ent.Value, error) { - return c.ID, nil + Field: &ActionPlanOrderField{ + Value: func(ap *ActionPlan) (ent.Value, error) { + return ap.ID, nil }, - column: contact.FieldID, - toTerm: contact.ByID, - toCursor: func(c *Contact) Cursor { - return Cursor{ID: c.ID} + column: actionplan.FieldID, + toTerm: actionplan.ByID, + toCursor: func(ap *ActionPlan) Cursor { + return Cursor{ID: ap.ID} }, }, } -// ToEdge converts Contact into ContactEdge. -func (c *Contact) ToEdge(order *ContactOrder) *ContactEdge { +// ToEdge converts ActionPlan into ActionPlanEdge. +func (ap *ActionPlan) ToEdge(order *ActionPlanOrder) *ActionPlanEdge { if order == nil { - order = DefaultContactOrder + order = DefaultActionPlanOrder } - return &ContactEdge{ - Node: c, - Cursor: order.Field.toCursor(c), + return &ActionPlanEdge{ + Node: ap, + Cursor: order.Field.toCursor(ap), } } -// ContactHistoryEdge is the edge representation of ContactHistory. -type ContactHistoryEdge struct { - Node *ContactHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// ActionPlanHistoryEdge is the edge representation of ActionPlanHistory. +type ActionPlanHistoryEdge struct { + Node *ActionPlanHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// ContactHistoryConnection is the connection containing edges to ContactHistory. -type ContactHistoryConnection struct { - Edges []*ContactHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// ActionPlanHistoryConnection is the connection containing edges to ActionPlanHistory. +type ActionPlanHistoryConnection struct { + Edges []*ActionPlanHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *ContactHistoryConnection) build(nodes []*ContactHistory, pager *contacthistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *ActionPlanHistoryConnection) build(nodes []*ActionPlanHistory, pager *actionplanhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -672,21 +690,21 @@ func (c *ContactHistoryConnection) build(nodes []*ContactHistory, pager *contact c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *ContactHistory + var nodeAt func(int) *ActionPlanHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *ContactHistory { + nodeAt = func(i int) *ActionPlanHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *ContactHistory { + nodeAt = func(i int) *ActionPlanHistory { return nodes[i] } } - c.Edges = make([]*ContactHistoryEdge, len(nodes)) + c.Edges = make([]*ActionPlanHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &ContactHistoryEdge{ + c.Edges[i] = &ActionPlanHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -700,87 +718,87 @@ func (c *ContactHistoryConnection) build(nodes []*ContactHistory, pager *contact } } -// ContactHistoryPaginateOption enables pagination customization. -type ContactHistoryPaginateOption func(*contacthistoryPager) error +// ActionPlanHistoryPaginateOption enables pagination customization. +type ActionPlanHistoryPaginateOption func(*actionplanhistoryPager) error -// WithContactHistoryOrder configures pagination ordering. -func WithContactHistoryOrder(order *ContactHistoryOrder) ContactHistoryPaginateOption { +// WithActionPlanHistoryOrder configures pagination ordering. +func WithActionPlanHistoryOrder(order *ActionPlanHistoryOrder) ActionPlanHistoryPaginateOption { if order == nil { - order = DefaultContactHistoryOrder + order = DefaultActionPlanHistoryOrder } o := *order - return func(pager *contacthistoryPager) error { + return func(pager *actionplanhistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultContactHistoryOrder.Field + o.Field = DefaultActionPlanHistoryOrder.Field } pager.order = &o return nil } } -// WithContactHistoryFilter configures pagination filter. -func WithContactHistoryFilter(filter func(*ContactHistoryQuery) (*ContactHistoryQuery, error)) ContactHistoryPaginateOption { - return func(pager *contacthistoryPager) error { +// WithActionPlanHistoryFilter configures pagination filter. +func WithActionPlanHistoryFilter(filter func(*ActionPlanHistoryQuery) (*ActionPlanHistoryQuery, error)) ActionPlanHistoryPaginateOption { + return func(pager *actionplanhistoryPager) error { if filter == nil { - return errors.New("ContactHistoryQuery filter cannot be nil") + return errors.New("ActionPlanHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type contacthistoryPager struct { +type actionplanhistoryPager struct { reverse bool - order *ContactHistoryOrder - filter func(*ContactHistoryQuery) (*ContactHistoryQuery, error) + order *ActionPlanHistoryOrder + filter func(*ActionPlanHistoryQuery) (*ActionPlanHistoryQuery, error) } -func newContactHistoryPager(opts []ContactHistoryPaginateOption, reverse bool) (*contacthistoryPager, error) { - pager := &contacthistoryPager{reverse: reverse} +func newActionPlanHistoryPager(opts []ActionPlanHistoryPaginateOption, reverse bool) (*actionplanhistoryPager, error) { + pager := &actionplanhistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultContactHistoryOrder + pager.order = DefaultActionPlanHistoryOrder } return pager, nil } -func (p *contacthistoryPager) applyFilter(query *ContactHistoryQuery) (*ContactHistoryQuery, error) { +func (p *actionplanhistoryPager) applyFilter(query *ActionPlanHistoryQuery) (*ActionPlanHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *contacthistoryPager) toCursor(ch *ContactHistory) Cursor { - return p.order.Field.toCursor(ch) +func (p *actionplanhistoryPager) toCursor(aph *ActionPlanHistory) Cursor { + return p.order.Field.toCursor(aph) } -func (p *contacthistoryPager) applyCursors(query *ContactHistoryQuery, after, before *Cursor) (*ContactHistoryQuery, error) { +func (p *actionplanhistoryPager) applyCursors(query *ActionPlanHistoryQuery, after, before *Cursor) (*ActionPlanHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultContactHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultActionPlanHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *contacthistoryPager) applyOrder(query *ContactHistoryQuery) *ContactHistoryQuery { +func (p *actionplanhistoryPager) applyOrder(query *ActionPlanHistoryQuery) *ActionPlanHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultContactHistoryOrder.Field { - query = query.Order(DefaultContactHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultActionPlanHistoryOrder.Field { + query = query.Order(DefaultActionPlanHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -788,7 +806,7 @@ func (p *contacthistoryPager) applyOrder(query *ContactHistoryQuery) *ContactHis return query } -func (p *contacthistoryPager) orderExpr(query *ContactHistoryQuery) sql.Querier { +func (p *actionplanhistoryPager) orderExpr(query *ActionPlanHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -798,33 +816,33 @@ func (p *contacthistoryPager) orderExpr(query *ContactHistoryQuery) sql.Querier } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultContactHistoryOrder.Field { - b.Comma().Ident(DefaultContactHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultActionPlanHistoryOrder.Field { + b.Comma().Ident(DefaultActionPlanHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to ContactHistory. -func (ch *ContactHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to ActionPlanHistory. +func (aph *ActionPlanHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...ContactHistoryPaginateOption, -) (*ContactHistoryConnection, error) { + before *Cursor, last *int, opts ...ActionPlanHistoryPaginateOption, +) (*ActionPlanHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newContactHistoryPager(opts, last != nil) + pager, err := newActionPlanHistoryPager(opts, last != nil) if err != nil { return nil, err } - if ch, err = pager.applyFilter(ch); err != nil { + if aph, err = pager.applyFilter(aph); err != nil { return nil, err } - conn := &ContactHistoryConnection{Edges: []*ContactHistoryEdge{}} + conn := &ActionPlanHistoryConnection{Edges: []*ActionPlanHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := ch.Clone() + c := aph.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -836,20 +854,20 @@ func (ch *ContactHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if ch, err = pager.applyCursors(ch, after, before); err != nil { + if aph, err = pager.applyCursors(aph, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - ch.Limit(limit) + aph.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := ch.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := aph.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - ch = pager.applyOrder(ch) - nodes, err := ch.All(ctx) + aph = pager.applyOrder(aph) + nodes, err := aph.All(ctx) if err != nil { return nil, err } @@ -857,61 +875,61 @@ func (ch *ContactHistoryQuery) Paginate( return conn, nil } -// ContactHistoryOrderField defines the ordering field of ContactHistory. -type ContactHistoryOrderField struct { - // Value extracts the ordering value from the given ContactHistory. - Value func(*ContactHistory) (ent.Value, error) +// ActionPlanHistoryOrderField defines the ordering field of ActionPlanHistory. +type ActionPlanHistoryOrderField struct { + // Value extracts the ordering value from the given ActionPlanHistory. + Value func(*ActionPlanHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) contacthistory.OrderOption - toCursor func(*ContactHistory) Cursor + toTerm func(...sql.OrderTermOption) actionplanhistory.OrderOption + toCursor func(*ActionPlanHistory) Cursor } -// ContactHistoryOrder defines the ordering of ContactHistory. -type ContactHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *ContactHistoryOrderField `json:"field"` +// ActionPlanHistoryOrder defines the ordering of ActionPlanHistory. +type ActionPlanHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *ActionPlanHistoryOrderField `json:"field"` } -// DefaultContactHistoryOrder is the default ordering of ContactHistory. -var DefaultContactHistoryOrder = &ContactHistoryOrder{ +// DefaultActionPlanHistoryOrder is the default ordering of ActionPlanHistory. +var DefaultActionPlanHistoryOrder = &ActionPlanHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &ContactHistoryOrderField{ - Value: func(ch *ContactHistory) (ent.Value, error) { - return ch.ID, nil + Field: &ActionPlanHistoryOrderField{ + Value: func(aph *ActionPlanHistory) (ent.Value, error) { + return aph.ID, nil }, - column: contacthistory.FieldID, - toTerm: contacthistory.ByID, - toCursor: func(ch *ContactHistory) Cursor { - return Cursor{ID: ch.ID} + column: actionplanhistory.FieldID, + toTerm: actionplanhistory.ByID, + toCursor: func(aph *ActionPlanHistory) Cursor { + return Cursor{ID: aph.ID} }, }, } -// ToEdge converts ContactHistory into ContactHistoryEdge. -func (ch *ContactHistory) ToEdge(order *ContactHistoryOrder) *ContactHistoryEdge { +// ToEdge converts ActionPlanHistory into ActionPlanHistoryEdge. +func (aph *ActionPlanHistory) ToEdge(order *ActionPlanHistoryOrder) *ActionPlanHistoryEdge { if order == nil { - order = DefaultContactHistoryOrder + order = DefaultActionPlanHistoryOrder } - return &ContactHistoryEdge{ - Node: ch, - Cursor: order.Field.toCursor(ch), + return &ActionPlanHistoryEdge{ + Node: aph, + Cursor: order.Field.toCursor(aph), } } -// DocumentDataEdge is the edge representation of DocumentData. -type DocumentDataEdge struct { - Node *DocumentData `json:"node"` - Cursor Cursor `json:"cursor"` +// ContactEdge is the edge representation of Contact. +type ContactEdge struct { + Node *Contact `json:"node"` + Cursor Cursor `json:"cursor"` } -// DocumentDataConnection is the connection containing edges to DocumentData. -type DocumentDataConnection struct { - Edges []*DocumentDataEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// ContactConnection is the connection containing edges to Contact. +type ContactConnection struct { + Edges []*ContactEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *DocumentDataConnection) build(nodes []*DocumentData, pager *documentdataPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *ContactConnection) build(nodes []*Contact, pager *contactPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -921,21 +939,21 @@ func (c *DocumentDataConnection) build(nodes []*DocumentData, pager *documentdat c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *DocumentData + var nodeAt func(int) *Contact if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *DocumentData { + nodeAt = func(i int) *Contact { return nodes[n-i] } } else { - nodeAt = func(i int) *DocumentData { + nodeAt = func(i int) *Contact { return nodes[i] } } - c.Edges = make([]*DocumentDataEdge, len(nodes)) + c.Edges = make([]*ContactEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &DocumentDataEdge{ + c.Edges[i] = &ContactEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -949,87 +967,87 @@ func (c *DocumentDataConnection) build(nodes []*DocumentData, pager *documentdat } } -// DocumentDataPaginateOption enables pagination customization. -type DocumentDataPaginateOption func(*documentdataPager) error +// ContactPaginateOption enables pagination customization. +type ContactPaginateOption func(*contactPager) error -// WithDocumentDataOrder configures pagination ordering. -func WithDocumentDataOrder(order *DocumentDataOrder) DocumentDataPaginateOption { +// WithContactOrder configures pagination ordering. +func WithContactOrder(order *ContactOrder) ContactPaginateOption { if order == nil { - order = DefaultDocumentDataOrder + order = DefaultContactOrder } o := *order - return func(pager *documentdataPager) error { + return func(pager *contactPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultDocumentDataOrder.Field + o.Field = DefaultContactOrder.Field } pager.order = &o return nil } } -// WithDocumentDataFilter configures pagination filter. -func WithDocumentDataFilter(filter func(*DocumentDataQuery) (*DocumentDataQuery, error)) DocumentDataPaginateOption { - return func(pager *documentdataPager) error { +// WithContactFilter configures pagination filter. +func WithContactFilter(filter func(*ContactQuery) (*ContactQuery, error)) ContactPaginateOption { + return func(pager *contactPager) error { if filter == nil { - return errors.New("DocumentDataQuery filter cannot be nil") + return errors.New("ContactQuery filter cannot be nil") } pager.filter = filter return nil } } -type documentdataPager struct { +type contactPager struct { reverse bool - order *DocumentDataOrder - filter func(*DocumentDataQuery) (*DocumentDataQuery, error) + order *ContactOrder + filter func(*ContactQuery) (*ContactQuery, error) } -func newDocumentDataPager(opts []DocumentDataPaginateOption, reverse bool) (*documentdataPager, error) { - pager := &documentdataPager{reverse: reverse} +func newContactPager(opts []ContactPaginateOption, reverse bool) (*contactPager, error) { + pager := &contactPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultDocumentDataOrder + pager.order = DefaultContactOrder } return pager, nil } -func (p *documentdataPager) applyFilter(query *DocumentDataQuery) (*DocumentDataQuery, error) { +func (p *contactPager) applyFilter(query *ContactQuery) (*ContactQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *documentdataPager) toCursor(dd *DocumentData) Cursor { - return p.order.Field.toCursor(dd) +func (p *contactPager) toCursor(c *Contact) Cursor { + return p.order.Field.toCursor(c) } -func (p *documentdataPager) applyCursors(query *DocumentDataQuery, after, before *Cursor) (*DocumentDataQuery, error) { +func (p *contactPager) applyCursors(query *ContactQuery, after, before *Cursor) (*ContactQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultDocumentDataOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultContactOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *documentdataPager) applyOrder(query *DocumentDataQuery) *DocumentDataQuery { +func (p *contactPager) applyOrder(query *ContactQuery) *ContactQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultDocumentDataOrder.Field { - query = query.Order(DefaultDocumentDataOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultContactOrder.Field { + query = query.Order(DefaultContactOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -1037,7 +1055,7 @@ func (p *documentdataPager) applyOrder(query *DocumentDataQuery) *DocumentDataQu return query } -func (p *documentdataPager) orderExpr(query *DocumentDataQuery) sql.Querier { +func (p *contactPager) orderExpr(query *ContactQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -1047,33 +1065,33 @@ func (p *documentdataPager) orderExpr(query *DocumentDataQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultDocumentDataOrder.Field { - b.Comma().Ident(DefaultDocumentDataOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultContactOrder.Field { + b.Comma().Ident(DefaultContactOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to DocumentData. -func (dd *DocumentDataQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Contact. +func (c *ContactQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...DocumentDataPaginateOption, -) (*DocumentDataConnection, error) { + before *Cursor, last *int, opts ...ContactPaginateOption, +) (*ContactConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newDocumentDataPager(opts, last != nil) + pager, err := newContactPager(opts, last != nil) if err != nil { return nil, err } - if dd, err = pager.applyFilter(dd); err != nil { + if c, err = pager.applyFilter(c); err != nil { return nil, err } - conn := &DocumentDataConnection{Edges: []*DocumentDataEdge{}} + conn := &ContactConnection{Edges: []*ContactEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := dd.Clone() + c := c.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -1085,20 +1103,20 @@ func (dd *DocumentDataQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if dd, err = pager.applyCursors(dd, after, before); err != nil { + if c, err = pager.applyCursors(c, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - dd.Limit(limit) + c.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := dd.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := c.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - dd = pager.applyOrder(dd) - nodes, err := dd.All(ctx) + c = pager.applyOrder(c) + nodes, err := c.All(ctx) if err != nil { return nil, err } @@ -1106,61 +1124,61 @@ func (dd *DocumentDataQuery) Paginate( return conn, nil } -// DocumentDataOrderField defines the ordering field of DocumentData. -type DocumentDataOrderField struct { - // Value extracts the ordering value from the given DocumentData. - Value func(*DocumentData) (ent.Value, error) +// ContactOrderField defines the ordering field of Contact. +type ContactOrderField struct { + // Value extracts the ordering value from the given Contact. + Value func(*Contact) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) documentdata.OrderOption - toCursor func(*DocumentData) Cursor + toTerm func(...sql.OrderTermOption) contact.OrderOption + toCursor func(*Contact) Cursor } -// DocumentDataOrder defines the ordering of DocumentData. -type DocumentDataOrder struct { - Direction OrderDirection `json:"direction"` - Field *DocumentDataOrderField `json:"field"` +// ContactOrder defines the ordering of Contact. +type ContactOrder struct { + Direction OrderDirection `json:"direction"` + Field *ContactOrderField `json:"field"` } -// DefaultDocumentDataOrder is the default ordering of DocumentData. -var DefaultDocumentDataOrder = &DocumentDataOrder{ +// DefaultContactOrder is the default ordering of Contact. +var DefaultContactOrder = &ContactOrder{ Direction: entgql.OrderDirectionAsc, - Field: &DocumentDataOrderField{ - Value: func(dd *DocumentData) (ent.Value, error) { - return dd.ID, nil + Field: &ContactOrderField{ + Value: func(c *Contact) (ent.Value, error) { + return c.ID, nil }, - column: documentdata.FieldID, - toTerm: documentdata.ByID, - toCursor: func(dd *DocumentData) Cursor { - return Cursor{ID: dd.ID} + column: contact.FieldID, + toTerm: contact.ByID, + toCursor: func(c *Contact) Cursor { + return Cursor{ID: c.ID} }, }, } -// ToEdge converts DocumentData into DocumentDataEdge. -func (dd *DocumentData) ToEdge(order *DocumentDataOrder) *DocumentDataEdge { +// ToEdge converts Contact into ContactEdge. +func (c *Contact) ToEdge(order *ContactOrder) *ContactEdge { if order == nil { - order = DefaultDocumentDataOrder + order = DefaultContactOrder } - return &DocumentDataEdge{ - Node: dd, - Cursor: order.Field.toCursor(dd), + return &ContactEdge{ + Node: c, + Cursor: order.Field.toCursor(c), } } -// DocumentDataHistoryEdge is the edge representation of DocumentDataHistory. -type DocumentDataHistoryEdge struct { - Node *DocumentDataHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// ContactHistoryEdge is the edge representation of ContactHistory. +type ContactHistoryEdge struct { + Node *ContactHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// DocumentDataHistoryConnection is the connection containing edges to DocumentDataHistory. -type DocumentDataHistoryConnection struct { - Edges []*DocumentDataHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// ContactHistoryConnection is the connection containing edges to ContactHistory. +type ContactHistoryConnection struct { + Edges []*ContactHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *DocumentDataHistoryConnection) build(nodes []*DocumentDataHistory, pager *documentdatahistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *ContactHistoryConnection) build(nodes []*ContactHistory, pager *contacthistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -1170,21 +1188,21 @@ func (c *DocumentDataHistoryConnection) build(nodes []*DocumentDataHistory, page c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *DocumentDataHistory + var nodeAt func(int) *ContactHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *DocumentDataHistory { + nodeAt = func(i int) *ContactHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *DocumentDataHistory { + nodeAt = func(i int) *ContactHistory { return nodes[i] } } - c.Edges = make([]*DocumentDataHistoryEdge, len(nodes)) + c.Edges = make([]*ContactHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &DocumentDataHistoryEdge{ + c.Edges[i] = &ContactHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -1198,87 +1216,87 @@ func (c *DocumentDataHistoryConnection) build(nodes []*DocumentDataHistory, page } } -// DocumentDataHistoryPaginateOption enables pagination customization. -type DocumentDataHistoryPaginateOption func(*documentdatahistoryPager) error +// ContactHistoryPaginateOption enables pagination customization. +type ContactHistoryPaginateOption func(*contacthistoryPager) error -// WithDocumentDataHistoryOrder configures pagination ordering. -func WithDocumentDataHistoryOrder(order *DocumentDataHistoryOrder) DocumentDataHistoryPaginateOption { +// WithContactHistoryOrder configures pagination ordering. +func WithContactHistoryOrder(order *ContactHistoryOrder) ContactHistoryPaginateOption { if order == nil { - order = DefaultDocumentDataHistoryOrder + order = DefaultContactHistoryOrder } o := *order - return func(pager *documentdatahistoryPager) error { + return func(pager *contacthistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultDocumentDataHistoryOrder.Field + o.Field = DefaultContactHistoryOrder.Field } pager.order = &o return nil } } -// WithDocumentDataHistoryFilter configures pagination filter. -func WithDocumentDataHistoryFilter(filter func(*DocumentDataHistoryQuery) (*DocumentDataHistoryQuery, error)) DocumentDataHistoryPaginateOption { - return func(pager *documentdatahistoryPager) error { +// WithContactHistoryFilter configures pagination filter. +func WithContactHistoryFilter(filter func(*ContactHistoryQuery) (*ContactHistoryQuery, error)) ContactHistoryPaginateOption { + return func(pager *contacthistoryPager) error { if filter == nil { - return errors.New("DocumentDataHistoryQuery filter cannot be nil") + return errors.New("ContactHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type documentdatahistoryPager struct { +type contacthistoryPager struct { reverse bool - order *DocumentDataHistoryOrder - filter func(*DocumentDataHistoryQuery) (*DocumentDataHistoryQuery, error) + order *ContactHistoryOrder + filter func(*ContactHistoryQuery) (*ContactHistoryQuery, error) } -func newDocumentDataHistoryPager(opts []DocumentDataHistoryPaginateOption, reverse bool) (*documentdatahistoryPager, error) { - pager := &documentdatahistoryPager{reverse: reverse} +func newContactHistoryPager(opts []ContactHistoryPaginateOption, reverse bool) (*contacthistoryPager, error) { + pager := &contacthistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultDocumentDataHistoryOrder + pager.order = DefaultContactHistoryOrder } return pager, nil } -func (p *documentdatahistoryPager) applyFilter(query *DocumentDataHistoryQuery) (*DocumentDataHistoryQuery, error) { +func (p *contacthistoryPager) applyFilter(query *ContactHistoryQuery) (*ContactHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *documentdatahistoryPager) toCursor(ddh *DocumentDataHistory) Cursor { - return p.order.Field.toCursor(ddh) +func (p *contacthistoryPager) toCursor(ch *ContactHistory) Cursor { + return p.order.Field.toCursor(ch) } -func (p *documentdatahistoryPager) applyCursors(query *DocumentDataHistoryQuery, after, before *Cursor) (*DocumentDataHistoryQuery, error) { +func (p *contacthistoryPager) applyCursors(query *ContactHistoryQuery, after, before *Cursor) (*ContactHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultDocumentDataHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultContactHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *documentdatahistoryPager) applyOrder(query *DocumentDataHistoryQuery) *DocumentDataHistoryQuery { +func (p *contacthistoryPager) applyOrder(query *ContactHistoryQuery) *ContactHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultDocumentDataHistoryOrder.Field { - query = query.Order(DefaultDocumentDataHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultContactHistoryOrder.Field { + query = query.Order(DefaultContactHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -1286,7 +1304,7 @@ func (p *documentdatahistoryPager) applyOrder(query *DocumentDataHistoryQuery) * return query } -func (p *documentdatahistoryPager) orderExpr(query *DocumentDataHistoryQuery) sql.Querier { +func (p *contacthistoryPager) orderExpr(query *ContactHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -1296,33 +1314,33 @@ func (p *documentdatahistoryPager) orderExpr(query *DocumentDataHistoryQuery) sq } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultDocumentDataHistoryOrder.Field { - b.Comma().Ident(DefaultDocumentDataHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultContactHistoryOrder.Field { + b.Comma().Ident(DefaultContactHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to DocumentDataHistory. -func (ddh *DocumentDataHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to ContactHistory. +func (ch *ContactHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...DocumentDataHistoryPaginateOption, -) (*DocumentDataHistoryConnection, error) { + before *Cursor, last *int, opts ...ContactHistoryPaginateOption, +) (*ContactHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newDocumentDataHistoryPager(opts, last != nil) + pager, err := newContactHistoryPager(opts, last != nil) if err != nil { return nil, err } - if ddh, err = pager.applyFilter(ddh); err != nil { + if ch, err = pager.applyFilter(ch); err != nil { return nil, err } - conn := &DocumentDataHistoryConnection{Edges: []*DocumentDataHistoryEdge{}} + conn := &ContactHistoryConnection{Edges: []*ContactHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := ddh.Clone() + c := ch.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -1334,20 +1352,20 @@ func (ddh *DocumentDataHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if ddh, err = pager.applyCursors(ddh, after, before); err != nil { + if ch, err = pager.applyCursors(ch, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - ddh.Limit(limit) + ch.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := ddh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := ch.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - ddh = pager.applyOrder(ddh) - nodes, err := ddh.All(ctx) + ch = pager.applyOrder(ch) + nodes, err := ch.All(ctx) if err != nil { return nil, err } @@ -1355,61 +1373,61 @@ func (ddh *DocumentDataHistoryQuery) Paginate( return conn, nil } -// DocumentDataHistoryOrderField defines the ordering field of DocumentDataHistory. -type DocumentDataHistoryOrderField struct { - // Value extracts the ordering value from the given DocumentDataHistory. - Value func(*DocumentDataHistory) (ent.Value, error) +// ContactHistoryOrderField defines the ordering field of ContactHistory. +type ContactHistoryOrderField struct { + // Value extracts the ordering value from the given ContactHistory. + Value func(*ContactHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) documentdatahistory.OrderOption - toCursor func(*DocumentDataHistory) Cursor + toTerm func(...sql.OrderTermOption) contacthistory.OrderOption + toCursor func(*ContactHistory) Cursor } -// DocumentDataHistoryOrder defines the ordering of DocumentDataHistory. -type DocumentDataHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *DocumentDataHistoryOrderField `json:"field"` +// ContactHistoryOrder defines the ordering of ContactHistory. +type ContactHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *ContactHistoryOrderField `json:"field"` } -// DefaultDocumentDataHistoryOrder is the default ordering of DocumentDataHistory. -var DefaultDocumentDataHistoryOrder = &DocumentDataHistoryOrder{ +// DefaultContactHistoryOrder is the default ordering of ContactHistory. +var DefaultContactHistoryOrder = &ContactHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &DocumentDataHistoryOrderField{ - Value: func(ddh *DocumentDataHistory) (ent.Value, error) { - return ddh.ID, nil + Field: &ContactHistoryOrderField{ + Value: func(ch *ContactHistory) (ent.Value, error) { + return ch.ID, nil }, - column: documentdatahistory.FieldID, - toTerm: documentdatahistory.ByID, - toCursor: func(ddh *DocumentDataHistory) Cursor { - return Cursor{ID: ddh.ID} + column: contacthistory.FieldID, + toTerm: contacthistory.ByID, + toCursor: func(ch *ContactHistory) Cursor { + return Cursor{ID: ch.ID} }, }, } -// ToEdge converts DocumentDataHistory into DocumentDataHistoryEdge. -func (ddh *DocumentDataHistory) ToEdge(order *DocumentDataHistoryOrder) *DocumentDataHistoryEdge { +// ToEdge converts ContactHistory into ContactHistoryEdge. +func (ch *ContactHistory) ToEdge(order *ContactHistoryOrder) *ContactHistoryEdge { if order == nil { - order = DefaultDocumentDataHistoryOrder + order = DefaultContactHistoryOrder } - return &DocumentDataHistoryEdge{ - Node: ddh, - Cursor: order.Field.toCursor(ddh), + return &ContactHistoryEdge{ + Node: ch, + Cursor: order.Field.toCursor(ch), } } -// EntitlementEdge is the edge representation of Entitlement. -type EntitlementEdge struct { - Node *Entitlement `json:"node"` - Cursor Cursor `json:"cursor"` +// ControlEdge is the edge representation of Control. +type ControlEdge struct { + Node *Control `json:"node"` + Cursor Cursor `json:"cursor"` } -// EntitlementConnection is the connection containing edges to Entitlement. -type EntitlementConnection struct { - Edges []*EntitlementEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// ControlConnection is the connection containing edges to Control. +type ControlConnection struct { + Edges []*ControlEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *EntitlementConnection) build(nodes []*Entitlement, pager *entitlementPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *ControlConnection) build(nodes []*Control, pager *controlPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -1419,21 +1437,21 @@ func (c *EntitlementConnection) build(nodes []*Entitlement, pager *entitlementPa c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *Entitlement + var nodeAt func(int) *Control if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *Entitlement { + nodeAt = func(i int) *Control { return nodes[n-i] } } else { - nodeAt = func(i int) *Entitlement { + nodeAt = func(i int) *Control { return nodes[i] } } - c.Edges = make([]*EntitlementEdge, len(nodes)) + c.Edges = make([]*ControlEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &EntitlementEdge{ + c.Edges[i] = &ControlEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -1447,87 +1465,87 @@ func (c *EntitlementConnection) build(nodes []*Entitlement, pager *entitlementPa } } -// EntitlementPaginateOption enables pagination customization. -type EntitlementPaginateOption func(*entitlementPager) error +// ControlPaginateOption enables pagination customization. +type ControlPaginateOption func(*controlPager) error -// WithEntitlementOrder configures pagination ordering. -func WithEntitlementOrder(order *EntitlementOrder) EntitlementPaginateOption { +// WithControlOrder configures pagination ordering. +func WithControlOrder(order *ControlOrder) ControlPaginateOption { if order == nil { - order = DefaultEntitlementOrder + order = DefaultControlOrder } o := *order - return func(pager *entitlementPager) error { + return func(pager *controlPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultEntitlementOrder.Field + o.Field = DefaultControlOrder.Field } pager.order = &o return nil } } -// WithEntitlementFilter configures pagination filter. -func WithEntitlementFilter(filter func(*EntitlementQuery) (*EntitlementQuery, error)) EntitlementPaginateOption { - return func(pager *entitlementPager) error { +// WithControlFilter configures pagination filter. +func WithControlFilter(filter func(*ControlQuery) (*ControlQuery, error)) ControlPaginateOption { + return func(pager *controlPager) error { if filter == nil { - return errors.New("EntitlementQuery filter cannot be nil") + return errors.New("ControlQuery filter cannot be nil") } pager.filter = filter return nil } } -type entitlementPager struct { +type controlPager struct { reverse bool - order *EntitlementOrder - filter func(*EntitlementQuery) (*EntitlementQuery, error) + order *ControlOrder + filter func(*ControlQuery) (*ControlQuery, error) } -func newEntitlementPager(opts []EntitlementPaginateOption, reverse bool) (*entitlementPager, error) { - pager := &entitlementPager{reverse: reverse} +func newControlPager(opts []ControlPaginateOption, reverse bool) (*controlPager, error) { + pager := &controlPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultEntitlementOrder + pager.order = DefaultControlOrder } return pager, nil } -func (p *entitlementPager) applyFilter(query *EntitlementQuery) (*EntitlementQuery, error) { +func (p *controlPager) applyFilter(query *ControlQuery) (*ControlQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *entitlementPager) toCursor(e *Entitlement) Cursor { - return p.order.Field.toCursor(e) +func (p *controlPager) toCursor(c *Control) Cursor { + return p.order.Field.toCursor(c) } -func (p *entitlementPager) applyCursors(query *EntitlementQuery, after, before *Cursor) (*EntitlementQuery, error) { +func (p *controlPager) applyCursors(query *ControlQuery, after, before *Cursor) (*ControlQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntitlementOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultControlOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *entitlementPager) applyOrder(query *EntitlementQuery) *EntitlementQuery { +func (p *controlPager) applyOrder(query *ControlQuery) *ControlQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultEntitlementOrder.Field { - query = query.Order(DefaultEntitlementOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultControlOrder.Field { + query = query.Order(DefaultControlOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -1535,7 +1553,7 @@ func (p *entitlementPager) applyOrder(query *EntitlementQuery) *EntitlementQuery return query } -func (p *entitlementPager) orderExpr(query *EntitlementQuery) sql.Querier { +func (p *controlPager) orderExpr(query *ControlQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -1545,33 +1563,33 @@ func (p *entitlementPager) orderExpr(query *EntitlementQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultEntitlementOrder.Field { - b.Comma().Ident(DefaultEntitlementOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultControlOrder.Field { + b.Comma().Ident(DefaultControlOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to Entitlement. -func (e *EntitlementQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Control. +func (c *ControlQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...EntitlementPaginateOption, -) (*EntitlementConnection, error) { + before *Cursor, last *int, opts ...ControlPaginateOption, +) (*ControlConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newEntitlementPager(opts, last != nil) + pager, err := newControlPager(opts, last != nil) if err != nil { return nil, err } - if e, err = pager.applyFilter(e); err != nil { + if c, err = pager.applyFilter(c); err != nil { return nil, err } - conn := &EntitlementConnection{Edges: []*EntitlementEdge{}} + conn := &ControlConnection{Edges: []*ControlEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := e.Clone() + c := c.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -1583,20 +1601,20 @@ func (e *EntitlementQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if e, err = pager.applyCursors(e, after, before); err != nil { + if c, err = pager.applyCursors(c, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - e.Limit(limit) + c.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := e.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := c.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - e = pager.applyOrder(e) - nodes, err := e.All(ctx) + c = pager.applyOrder(c) + nodes, err := c.All(ctx) if err != nil { return nil, err } @@ -1604,61 +1622,61 @@ func (e *EntitlementQuery) Paginate( return conn, nil } -// EntitlementOrderField defines the ordering field of Entitlement. -type EntitlementOrderField struct { - // Value extracts the ordering value from the given Entitlement. - Value func(*Entitlement) (ent.Value, error) +// ControlOrderField defines the ordering field of Control. +type ControlOrderField struct { + // Value extracts the ordering value from the given Control. + Value func(*Control) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) entitlement.OrderOption - toCursor func(*Entitlement) Cursor + toTerm func(...sql.OrderTermOption) control.OrderOption + toCursor func(*Control) Cursor } -// EntitlementOrder defines the ordering of Entitlement. -type EntitlementOrder struct { - Direction OrderDirection `json:"direction"` - Field *EntitlementOrderField `json:"field"` +// ControlOrder defines the ordering of Control. +type ControlOrder struct { + Direction OrderDirection `json:"direction"` + Field *ControlOrderField `json:"field"` } -// DefaultEntitlementOrder is the default ordering of Entitlement. -var DefaultEntitlementOrder = &EntitlementOrder{ +// DefaultControlOrder is the default ordering of Control. +var DefaultControlOrder = &ControlOrder{ Direction: entgql.OrderDirectionAsc, - Field: &EntitlementOrderField{ - Value: func(e *Entitlement) (ent.Value, error) { - return e.ID, nil + Field: &ControlOrderField{ + Value: func(c *Control) (ent.Value, error) { + return c.ID, nil }, - column: entitlement.FieldID, - toTerm: entitlement.ByID, - toCursor: func(e *Entitlement) Cursor { - return Cursor{ID: e.ID} + column: control.FieldID, + toTerm: control.ByID, + toCursor: func(c *Control) Cursor { + return Cursor{ID: c.ID} }, }, } -// ToEdge converts Entitlement into EntitlementEdge. -func (e *Entitlement) ToEdge(order *EntitlementOrder) *EntitlementEdge { +// ToEdge converts Control into ControlEdge. +func (c *Control) ToEdge(order *ControlOrder) *ControlEdge { if order == nil { - order = DefaultEntitlementOrder + order = DefaultControlOrder } - return &EntitlementEdge{ - Node: e, - Cursor: order.Field.toCursor(e), + return &ControlEdge{ + Node: c, + Cursor: order.Field.toCursor(c), } } -// EntitlementHistoryEdge is the edge representation of EntitlementHistory. -type EntitlementHistoryEdge struct { - Node *EntitlementHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// ControlHistoryEdge is the edge representation of ControlHistory. +type ControlHistoryEdge struct { + Node *ControlHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// EntitlementHistoryConnection is the connection containing edges to EntitlementHistory. -type EntitlementHistoryConnection struct { - Edges []*EntitlementHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// ControlHistoryConnection is the connection containing edges to ControlHistory. +type ControlHistoryConnection struct { + Edges []*ControlHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *EntitlementHistoryConnection) build(nodes []*EntitlementHistory, pager *entitlementhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *ControlHistoryConnection) build(nodes []*ControlHistory, pager *controlhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -1668,21 +1686,21 @@ func (c *EntitlementHistoryConnection) build(nodes []*EntitlementHistory, pager c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *EntitlementHistory + var nodeAt func(int) *ControlHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *EntitlementHistory { + nodeAt = func(i int) *ControlHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *EntitlementHistory { + nodeAt = func(i int) *ControlHistory { return nodes[i] } } - c.Edges = make([]*EntitlementHistoryEdge, len(nodes)) + c.Edges = make([]*ControlHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &EntitlementHistoryEdge{ + c.Edges[i] = &ControlHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -1696,87 +1714,87 @@ func (c *EntitlementHistoryConnection) build(nodes []*EntitlementHistory, pager } } -// EntitlementHistoryPaginateOption enables pagination customization. -type EntitlementHistoryPaginateOption func(*entitlementhistoryPager) error +// ControlHistoryPaginateOption enables pagination customization. +type ControlHistoryPaginateOption func(*controlhistoryPager) error -// WithEntitlementHistoryOrder configures pagination ordering. -func WithEntitlementHistoryOrder(order *EntitlementHistoryOrder) EntitlementHistoryPaginateOption { +// WithControlHistoryOrder configures pagination ordering. +func WithControlHistoryOrder(order *ControlHistoryOrder) ControlHistoryPaginateOption { if order == nil { - order = DefaultEntitlementHistoryOrder + order = DefaultControlHistoryOrder } o := *order - return func(pager *entitlementhistoryPager) error { + return func(pager *controlhistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultEntitlementHistoryOrder.Field + o.Field = DefaultControlHistoryOrder.Field } pager.order = &o return nil } } -// WithEntitlementHistoryFilter configures pagination filter. -func WithEntitlementHistoryFilter(filter func(*EntitlementHistoryQuery) (*EntitlementHistoryQuery, error)) EntitlementHistoryPaginateOption { - return func(pager *entitlementhistoryPager) error { +// WithControlHistoryFilter configures pagination filter. +func WithControlHistoryFilter(filter func(*ControlHistoryQuery) (*ControlHistoryQuery, error)) ControlHistoryPaginateOption { + return func(pager *controlhistoryPager) error { if filter == nil { - return errors.New("EntitlementHistoryQuery filter cannot be nil") + return errors.New("ControlHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type entitlementhistoryPager struct { +type controlhistoryPager struct { reverse bool - order *EntitlementHistoryOrder - filter func(*EntitlementHistoryQuery) (*EntitlementHistoryQuery, error) + order *ControlHistoryOrder + filter func(*ControlHistoryQuery) (*ControlHistoryQuery, error) } -func newEntitlementHistoryPager(opts []EntitlementHistoryPaginateOption, reverse bool) (*entitlementhistoryPager, error) { - pager := &entitlementhistoryPager{reverse: reverse} +func newControlHistoryPager(opts []ControlHistoryPaginateOption, reverse bool) (*controlhistoryPager, error) { + pager := &controlhistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultEntitlementHistoryOrder + pager.order = DefaultControlHistoryOrder } return pager, nil } -func (p *entitlementhistoryPager) applyFilter(query *EntitlementHistoryQuery) (*EntitlementHistoryQuery, error) { +func (p *controlhistoryPager) applyFilter(query *ControlHistoryQuery) (*ControlHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *entitlementhistoryPager) toCursor(eh *EntitlementHistory) Cursor { - return p.order.Field.toCursor(eh) +func (p *controlhistoryPager) toCursor(ch *ControlHistory) Cursor { + return p.order.Field.toCursor(ch) } -func (p *entitlementhistoryPager) applyCursors(query *EntitlementHistoryQuery, after, before *Cursor) (*EntitlementHistoryQuery, error) { +func (p *controlhistoryPager) applyCursors(query *ControlHistoryQuery, after, before *Cursor) (*ControlHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntitlementHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultControlHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *entitlementhistoryPager) applyOrder(query *EntitlementHistoryQuery) *EntitlementHistoryQuery { +func (p *controlhistoryPager) applyOrder(query *ControlHistoryQuery) *ControlHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultEntitlementHistoryOrder.Field { - query = query.Order(DefaultEntitlementHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultControlHistoryOrder.Field { + query = query.Order(DefaultControlHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -1784,7 +1802,7 @@ func (p *entitlementhistoryPager) applyOrder(query *EntitlementHistoryQuery) *En return query } -func (p *entitlementhistoryPager) orderExpr(query *EntitlementHistoryQuery) sql.Querier { +func (p *controlhistoryPager) orderExpr(query *ControlHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -1794,33 +1812,33 @@ func (p *entitlementhistoryPager) orderExpr(query *EntitlementHistoryQuery) sql. } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultEntitlementHistoryOrder.Field { - b.Comma().Ident(DefaultEntitlementHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultControlHistoryOrder.Field { + b.Comma().Ident(DefaultControlHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to EntitlementHistory. -func (eh *EntitlementHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to ControlHistory. +func (ch *ControlHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...EntitlementHistoryPaginateOption, -) (*EntitlementHistoryConnection, error) { + before *Cursor, last *int, opts ...ControlHistoryPaginateOption, +) (*ControlHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newEntitlementHistoryPager(opts, last != nil) + pager, err := newControlHistoryPager(opts, last != nil) if err != nil { return nil, err } - if eh, err = pager.applyFilter(eh); err != nil { + if ch, err = pager.applyFilter(ch); err != nil { return nil, err } - conn := &EntitlementHistoryConnection{Edges: []*EntitlementHistoryEdge{}} + conn := &ControlHistoryConnection{Edges: []*ControlHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := eh.Clone() + c := ch.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -1832,20 +1850,20 @@ func (eh *EntitlementHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if eh, err = pager.applyCursors(eh, after, before); err != nil { + if ch, err = pager.applyCursors(ch, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - eh.Limit(limit) + ch.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := eh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := ch.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - eh = pager.applyOrder(eh) - nodes, err := eh.All(ctx) + ch = pager.applyOrder(ch) + nodes, err := ch.All(ctx) if err != nil { return nil, err } @@ -1853,61 +1871,61 @@ func (eh *EntitlementHistoryQuery) Paginate( return conn, nil } -// EntitlementHistoryOrderField defines the ordering field of EntitlementHistory. -type EntitlementHistoryOrderField struct { - // Value extracts the ordering value from the given EntitlementHistory. - Value func(*EntitlementHistory) (ent.Value, error) +// ControlHistoryOrderField defines the ordering field of ControlHistory. +type ControlHistoryOrderField struct { + // Value extracts the ordering value from the given ControlHistory. + Value func(*ControlHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) entitlementhistory.OrderOption - toCursor func(*EntitlementHistory) Cursor + toTerm func(...sql.OrderTermOption) controlhistory.OrderOption + toCursor func(*ControlHistory) Cursor } -// EntitlementHistoryOrder defines the ordering of EntitlementHistory. -type EntitlementHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *EntitlementHistoryOrderField `json:"field"` +// ControlHistoryOrder defines the ordering of ControlHistory. +type ControlHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *ControlHistoryOrderField `json:"field"` } -// DefaultEntitlementHistoryOrder is the default ordering of EntitlementHistory. -var DefaultEntitlementHistoryOrder = &EntitlementHistoryOrder{ +// DefaultControlHistoryOrder is the default ordering of ControlHistory. +var DefaultControlHistoryOrder = &ControlHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &EntitlementHistoryOrderField{ - Value: func(eh *EntitlementHistory) (ent.Value, error) { - return eh.ID, nil + Field: &ControlHistoryOrderField{ + Value: func(ch *ControlHistory) (ent.Value, error) { + return ch.ID, nil }, - column: entitlementhistory.FieldID, - toTerm: entitlementhistory.ByID, - toCursor: func(eh *EntitlementHistory) Cursor { - return Cursor{ID: eh.ID} + column: controlhistory.FieldID, + toTerm: controlhistory.ByID, + toCursor: func(ch *ControlHistory) Cursor { + return Cursor{ID: ch.ID} }, }, } -// ToEdge converts EntitlementHistory into EntitlementHistoryEdge. -func (eh *EntitlementHistory) ToEdge(order *EntitlementHistoryOrder) *EntitlementHistoryEdge { +// ToEdge converts ControlHistory into ControlHistoryEdge. +func (ch *ControlHistory) ToEdge(order *ControlHistoryOrder) *ControlHistoryEdge { if order == nil { - order = DefaultEntitlementHistoryOrder + order = DefaultControlHistoryOrder } - return &EntitlementHistoryEdge{ - Node: eh, - Cursor: order.Field.toCursor(eh), + return &ControlHistoryEdge{ + Node: ch, + Cursor: order.Field.toCursor(ch), } } -// EntitlementPlanEdge is the edge representation of EntitlementPlan. -type EntitlementPlanEdge struct { - Node *EntitlementPlan `json:"node"` - Cursor Cursor `json:"cursor"` +// ControlObjectiveEdge is the edge representation of ControlObjective. +type ControlObjectiveEdge struct { + Node *ControlObjective `json:"node"` + Cursor Cursor `json:"cursor"` } -// EntitlementPlanConnection is the connection containing edges to EntitlementPlan. -type EntitlementPlanConnection struct { - Edges []*EntitlementPlanEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// ControlObjectiveConnection is the connection containing edges to ControlObjective. +type ControlObjectiveConnection struct { + Edges []*ControlObjectiveEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *EntitlementPlanConnection) build(nodes []*EntitlementPlan, pager *entitlementplanPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *ControlObjectiveConnection) build(nodes []*ControlObjective, pager *controlobjectivePager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -1917,21 +1935,21 @@ func (c *EntitlementPlanConnection) build(nodes []*EntitlementPlan, pager *entit c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *EntitlementPlan + var nodeAt func(int) *ControlObjective if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *EntitlementPlan { + nodeAt = func(i int) *ControlObjective { return nodes[n-i] } } else { - nodeAt = func(i int) *EntitlementPlan { + nodeAt = func(i int) *ControlObjective { return nodes[i] } } - c.Edges = make([]*EntitlementPlanEdge, len(nodes)) + c.Edges = make([]*ControlObjectiveEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &EntitlementPlanEdge{ + c.Edges[i] = &ControlObjectiveEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -1945,87 +1963,87 @@ func (c *EntitlementPlanConnection) build(nodes []*EntitlementPlan, pager *entit } } -// EntitlementPlanPaginateOption enables pagination customization. -type EntitlementPlanPaginateOption func(*entitlementplanPager) error +// ControlObjectivePaginateOption enables pagination customization. +type ControlObjectivePaginateOption func(*controlobjectivePager) error -// WithEntitlementPlanOrder configures pagination ordering. -func WithEntitlementPlanOrder(order *EntitlementPlanOrder) EntitlementPlanPaginateOption { +// WithControlObjectiveOrder configures pagination ordering. +func WithControlObjectiveOrder(order *ControlObjectiveOrder) ControlObjectivePaginateOption { if order == nil { - order = DefaultEntitlementPlanOrder + order = DefaultControlObjectiveOrder } o := *order - return func(pager *entitlementplanPager) error { + return func(pager *controlobjectivePager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultEntitlementPlanOrder.Field + o.Field = DefaultControlObjectiveOrder.Field } pager.order = &o return nil } } -// WithEntitlementPlanFilter configures pagination filter. -func WithEntitlementPlanFilter(filter func(*EntitlementPlanQuery) (*EntitlementPlanQuery, error)) EntitlementPlanPaginateOption { - return func(pager *entitlementplanPager) error { +// WithControlObjectiveFilter configures pagination filter. +func WithControlObjectiveFilter(filter func(*ControlObjectiveQuery) (*ControlObjectiveQuery, error)) ControlObjectivePaginateOption { + return func(pager *controlobjectivePager) error { if filter == nil { - return errors.New("EntitlementPlanQuery filter cannot be nil") + return errors.New("ControlObjectiveQuery filter cannot be nil") } pager.filter = filter return nil } } -type entitlementplanPager struct { +type controlobjectivePager struct { reverse bool - order *EntitlementPlanOrder - filter func(*EntitlementPlanQuery) (*EntitlementPlanQuery, error) + order *ControlObjectiveOrder + filter func(*ControlObjectiveQuery) (*ControlObjectiveQuery, error) } -func newEntitlementPlanPager(opts []EntitlementPlanPaginateOption, reverse bool) (*entitlementplanPager, error) { - pager := &entitlementplanPager{reverse: reverse} +func newControlObjectivePager(opts []ControlObjectivePaginateOption, reverse bool) (*controlobjectivePager, error) { + pager := &controlobjectivePager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultEntitlementPlanOrder + pager.order = DefaultControlObjectiveOrder } return pager, nil } -func (p *entitlementplanPager) applyFilter(query *EntitlementPlanQuery) (*EntitlementPlanQuery, error) { +func (p *controlobjectivePager) applyFilter(query *ControlObjectiveQuery) (*ControlObjectiveQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *entitlementplanPager) toCursor(ep *EntitlementPlan) Cursor { - return p.order.Field.toCursor(ep) +func (p *controlobjectivePager) toCursor(co *ControlObjective) Cursor { + return p.order.Field.toCursor(co) } -func (p *entitlementplanPager) applyCursors(query *EntitlementPlanQuery, after, before *Cursor) (*EntitlementPlanQuery, error) { +func (p *controlobjectivePager) applyCursors(query *ControlObjectiveQuery, after, before *Cursor) (*ControlObjectiveQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntitlementPlanOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultControlObjectiveOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *entitlementplanPager) applyOrder(query *EntitlementPlanQuery) *EntitlementPlanQuery { +func (p *controlobjectivePager) applyOrder(query *ControlObjectiveQuery) *ControlObjectiveQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultEntitlementPlanOrder.Field { - query = query.Order(DefaultEntitlementPlanOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultControlObjectiveOrder.Field { + query = query.Order(DefaultControlObjectiveOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -2033,7 +2051,7 @@ func (p *entitlementplanPager) applyOrder(query *EntitlementPlanQuery) *Entitlem return query } -func (p *entitlementplanPager) orderExpr(query *EntitlementPlanQuery) sql.Querier { +func (p *controlobjectivePager) orderExpr(query *ControlObjectiveQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -2043,33 +2061,33 @@ func (p *entitlementplanPager) orderExpr(query *EntitlementPlanQuery) sql.Querie } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultEntitlementPlanOrder.Field { - b.Comma().Ident(DefaultEntitlementPlanOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultControlObjectiveOrder.Field { + b.Comma().Ident(DefaultControlObjectiveOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to EntitlementPlan. -func (ep *EntitlementPlanQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to ControlObjective. +func (co *ControlObjectiveQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...EntitlementPlanPaginateOption, -) (*EntitlementPlanConnection, error) { + before *Cursor, last *int, opts ...ControlObjectivePaginateOption, +) (*ControlObjectiveConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newEntitlementPlanPager(opts, last != nil) + pager, err := newControlObjectivePager(opts, last != nil) if err != nil { return nil, err } - if ep, err = pager.applyFilter(ep); err != nil { + if co, err = pager.applyFilter(co); err != nil { return nil, err } - conn := &EntitlementPlanConnection{Edges: []*EntitlementPlanEdge{}} + conn := &ControlObjectiveConnection{Edges: []*ControlObjectiveEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := ep.Clone() + c := co.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -2081,20 +2099,20 @@ func (ep *EntitlementPlanQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if ep, err = pager.applyCursors(ep, after, before); err != nil { + if co, err = pager.applyCursors(co, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - ep.Limit(limit) + co.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := ep.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := co.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - ep = pager.applyOrder(ep) - nodes, err := ep.All(ctx) + co = pager.applyOrder(co) + nodes, err := co.All(ctx) if err != nil { return nil, err } @@ -2102,61 +2120,61 @@ func (ep *EntitlementPlanQuery) Paginate( return conn, nil } -// EntitlementPlanOrderField defines the ordering field of EntitlementPlan. -type EntitlementPlanOrderField struct { - // Value extracts the ordering value from the given EntitlementPlan. - Value func(*EntitlementPlan) (ent.Value, error) +// ControlObjectiveOrderField defines the ordering field of ControlObjective. +type ControlObjectiveOrderField struct { + // Value extracts the ordering value from the given ControlObjective. + Value func(*ControlObjective) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) entitlementplan.OrderOption - toCursor func(*EntitlementPlan) Cursor + toTerm func(...sql.OrderTermOption) controlobjective.OrderOption + toCursor func(*ControlObjective) Cursor } -// EntitlementPlanOrder defines the ordering of EntitlementPlan. -type EntitlementPlanOrder struct { - Direction OrderDirection `json:"direction"` - Field *EntitlementPlanOrderField `json:"field"` +// ControlObjectiveOrder defines the ordering of ControlObjective. +type ControlObjectiveOrder struct { + Direction OrderDirection `json:"direction"` + Field *ControlObjectiveOrderField `json:"field"` } -// DefaultEntitlementPlanOrder is the default ordering of EntitlementPlan. -var DefaultEntitlementPlanOrder = &EntitlementPlanOrder{ +// DefaultControlObjectiveOrder is the default ordering of ControlObjective. +var DefaultControlObjectiveOrder = &ControlObjectiveOrder{ Direction: entgql.OrderDirectionAsc, - Field: &EntitlementPlanOrderField{ - Value: func(ep *EntitlementPlan) (ent.Value, error) { - return ep.ID, nil + Field: &ControlObjectiveOrderField{ + Value: func(co *ControlObjective) (ent.Value, error) { + return co.ID, nil }, - column: entitlementplan.FieldID, - toTerm: entitlementplan.ByID, - toCursor: func(ep *EntitlementPlan) Cursor { - return Cursor{ID: ep.ID} + column: controlobjective.FieldID, + toTerm: controlobjective.ByID, + toCursor: func(co *ControlObjective) Cursor { + return Cursor{ID: co.ID} }, }, } -// ToEdge converts EntitlementPlan into EntitlementPlanEdge. -func (ep *EntitlementPlan) ToEdge(order *EntitlementPlanOrder) *EntitlementPlanEdge { +// ToEdge converts ControlObjective into ControlObjectiveEdge. +func (co *ControlObjective) ToEdge(order *ControlObjectiveOrder) *ControlObjectiveEdge { if order == nil { - order = DefaultEntitlementPlanOrder + order = DefaultControlObjectiveOrder } - return &EntitlementPlanEdge{ - Node: ep, - Cursor: order.Field.toCursor(ep), + return &ControlObjectiveEdge{ + Node: co, + Cursor: order.Field.toCursor(co), } } -// EntitlementPlanFeatureEdge is the edge representation of EntitlementPlanFeature. -type EntitlementPlanFeatureEdge struct { - Node *EntitlementPlanFeature `json:"node"` - Cursor Cursor `json:"cursor"` +// ControlObjectiveHistoryEdge is the edge representation of ControlObjectiveHistory. +type ControlObjectiveHistoryEdge struct { + Node *ControlObjectiveHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// EntitlementPlanFeatureConnection is the connection containing edges to EntitlementPlanFeature. -type EntitlementPlanFeatureConnection struct { - Edges []*EntitlementPlanFeatureEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// ControlObjectiveHistoryConnection is the connection containing edges to ControlObjectiveHistory. +type ControlObjectiveHistoryConnection struct { + Edges []*ControlObjectiveHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *EntitlementPlanFeatureConnection) build(nodes []*EntitlementPlanFeature, pager *entitlementplanfeaturePager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *ControlObjectiveHistoryConnection) build(nodes []*ControlObjectiveHistory, pager *controlobjectivehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -2166,21 +2184,21 @@ func (c *EntitlementPlanFeatureConnection) build(nodes []*EntitlementPlanFeature c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *EntitlementPlanFeature + var nodeAt func(int) *ControlObjectiveHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *EntitlementPlanFeature { + nodeAt = func(i int) *ControlObjectiveHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *EntitlementPlanFeature { + nodeAt = func(i int) *ControlObjectiveHistory { return nodes[i] } } - c.Edges = make([]*EntitlementPlanFeatureEdge, len(nodes)) + c.Edges = make([]*ControlObjectiveHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &EntitlementPlanFeatureEdge{ + c.Edges[i] = &ControlObjectiveHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -2194,87 +2212,87 @@ func (c *EntitlementPlanFeatureConnection) build(nodes []*EntitlementPlanFeature } } -// EntitlementPlanFeaturePaginateOption enables pagination customization. -type EntitlementPlanFeaturePaginateOption func(*entitlementplanfeaturePager) error +// ControlObjectiveHistoryPaginateOption enables pagination customization. +type ControlObjectiveHistoryPaginateOption func(*controlobjectivehistoryPager) error -// WithEntitlementPlanFeatureOrder configures pagination ordering. -func WithEntitlementPlanFeatureOrder(order *EntitlementPlanFeatureOrder) EntitlementPlanFeaturePaginateOption { +// WithControlObjectiveHistoryOrder configures pagination ordering. +func WithControlObjectiveHistoryOrder(order *ControlObjectiveHistoryOrder) ControlObjectiveHistoryPaginateOption { if order == nil { - order = DefaultEntitlementPlanFeatureOrder + order = DefaultControlObjectiveHistoryOrder } o := *order - return func(pager *entitlementplanfeaturePager) error { + return func(pager *controlobjectivehistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultEntitlementPlanFeatureOrder.Field + o.Field = DefaultControlObjectiveHistoryOrder.Field } pager.order = &o return nil } } -// WithEntitlementPlanFeatureFilter configures pagination filter. -func WithEntitlementPlanFeatureFilter(filter func(*EntitlementPlanFeatureQuery) (*EntitlementPlanFeatureQuery, error)) EntitlementPlanFeaturePaginateOption { - return func(pager *entitlementplanfeaturePager) error { +// WithControlObjectiveHistoryFilter configures pagination filter. +func WithControlObjectiveHistoryFilter(filter func(*ControlObjectiveHistoryQuery) (*ControlObjectiveHistoryQuery, error)) ControlObjectiveHistoryPaginateOption { + return func(pager *controlobjectivehistoryPager) error { if filter == nil { - return errors.New("EntitlementPlanFeatureQuery filter cannot be nil") + return errors.New("ControlObjectiveHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type entitlementplanfeaturePager struct { +type controlobjectivehistoryPager struct { reverse bool - order *EntitlementPlanFeatureOrder - filter func(*EntitlementPlanFeatureQuery) (*EntitlementPlanFeatureQuery, error) + order *ControlObjectiveHistoryOrder + filter func(*ControlObjectiveHistoryQuery) (*ControlObjectiveHistoryQuery, error) } -func newEntitlementPlanFeaturePager(opts []EntitlementPlanFeaturePaginateOption, reverse bool) (*entitlementplanfeaturePager, error) { - pager := &entitlementplanfeaturePager{reverse: reverse} +func newControlObjectiveHistoryPager(opts []ControlObjectiveHistoryPaginateOption, reverse bool) (*controlobjectivehistoryPager, error) { + pager := &controlobjectivehistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultEntitlementPlanFeatureOrder + pager.order = DefaultControlObjectiveHistoryOrder } return pager, nil } -func (p *entitlementplanfeaturePager) applyFilter(query *EntitlementPlanFeatureQuery) (*EntitlementPlanFeatureQuery, error) { +func (p *controlobjectivehistoryPager) applyFilter(query *ControlObjectiveHistoryQuery) (*ControlObjectiveHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *entitlementplanfeaturePager) toCursor(epf *EntitlementPlanFeature) Cursor { - return p.order.Field.toCursor(epf) +func (p *controlobjectivehistoryPager) toCursor(coh *ControlObjectiveHistory) Cursor { + return p.order.Field.toCursor(coh) } -func (p *entitlementplanfeaturePager) applyCursors(query *EntitlementPlanFeatureQuery, after, before *Cursor) (*EntitlementPlanFeatureQuery, error) { +func (p *controlobjectivehistoryPager) applyCursors(query *ControlObjectiveHistoryQuery, after, before *Cursor) (*ControlObjectiveHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntitlementPlanFeatureOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultControlObjectiveHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *entitlementplanfeaturePager) applyOrder(query *EntitlementPlanFeatureQuery) *EntitlementPlanFeatureQuery { +func (p *controlobjectivehistoryPager) applyOrder(query *ControlObjectiveHistoryQuery) *ControlObjectiveHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultEntitlementPlanFeatureOrder.Field { - query = query.Order(DefaultEntitlementPlanFeatureOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultControlObjectiveHistoryOrder.Field { + query = query.Order(DefaultControlObjectiveHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -2282,7 +2300,7 @@ func (p *entitlementplanfeaturePager) applyOrder(query *EntitlementPlanFeatureQu return query } -func (p *entitlementplanfeaturePager) orderExpr(query *EntitlementPlanFeatureQuery) sql.Querier { +func (p *controlobjectivehistoryPager) orderExpr(query *ControlObjectiveHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -2292,33 +2310,33 @@ func (p *entitlementplanfeaturePager) orderExpr(query *EntitlementPlanFeatureQue } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultEntitlementPlanFeatureOrder.Field { - b.Comma().Ident(DefaultEntitlementPlanFeatureOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultControlObjectiveHistoryOrder.Field { + b.Comma().Ident(DefaultControlObjectiveHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to EntitlementPlanFeature. -func (epf *EntitlementPlanFeatureQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to ControlObjectiveHistory. +func (coh *ControlObjectiveHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...EntitlementPlanFeaturePaginateOption, -) (*EntitlementPlanFeatureConnection, error) { + before *Cursor, last *int, opts ...ControlObjectiveHistoryPaginateOption, +) (*ControlObjectiveHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newEntitlementPlanFeaturePager(opts, last != nil) + pager, err := newControlObjectiveHistoryPager(opts, last != nil) if err != nil { return nil, err } - if epf, err = pager.applyFilter(epf); err != nil { + if coh, err = pager.applyFilter(coh); err != nil { return nil, err } - conn := &EntitlementPlanFeatureConnection{Edges: []*EntitlementPlanFeatureEdge{}} + conn := &ControlObjectiveHistoryConnection{Edges: []*ControlObjectiveHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := epf.Clone() + c := coh.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -2330,20 +2348,20 @@ func (epf *EntitlementPlanFeatureQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if epf, err = pager.applyCursors(epf, after, before); err != nil { + if coh, err = pager.applyCursors(coh, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - epf.Limit(limit) + coh.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := epf.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := coh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - epf = pager.applyOrder(epf) - nodes, err := epf.All(ctx) + coh = pager.applyOrder(coh) + nodes, err := coh.All(ctx) if err != nil { return nil, err } @@ -2351,61 +2369,61 @@ func (epf *EntitlementPlanFeatureQuery) Paginate( return conn, nil } -// EntitlementPlanFeatureOrderField defines the ordering field of EntitlementPlanFeature. -type EntitlementPlanFeatureOrderField struct { - // Value extracts the ordering value from the given EntitlementPlanFeature. - Value func(*EntitlementPlanFeature) (ent.Value, error) +// ControlObjectiveHistoryOrderField defines the ordering field of ControlObjectiveHistory. +type ControlObjectiveHistoryOrderField struct { + // Value extracts the ordering value from the given ControlObjectiveHistory. + Value func(*ControlObjectiveHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) entitlementplanfeature.OrderOption - toCursor func(*EntitlementPlanFeature) Cursor + toTerm func(...sql.OrderTermOption) controlobjectivehistory.OrderOption + toCursor func(*ControlObjectiveHistory) Cursor } -// EntitlementPlanFeatureOrder defines the ordering of EntitlementPlanFeature. -type EntitlementPlanFeatureOrder struct { - Direction OrderDirection `json:"direction"` - Field *EntitlementPlanFeatureOrderField `json:"field"` +// ControlObjectiveHistoryOrder defines the ordering of ControlObjectiveHistory. +type ControlObjectiveHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *ControlObjectiveHistoryOrderField `json:"field"` } -// DefaultEntitlementPlanFeatureOrder is the default ordering of EntitlementPlanFeature. -var DefaultEntitlementPlanFeatureOrder = &EntitlementPlanFeatureOrder{ +// DefaultControlObjectiveHistoryOrder is the default ordering of ControlObjectiveHistory. +var DefaultControlObjectiveHistoryOrder = &ControlObjectiveHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &EntitlementPlanFeatureOrderField{ - Value: func(epf *EntitlementPlanFeature) (ent.Value, error) { - return epf.ID, nil + Field: &ControlObjectiveHistoryOrderField{ + Value: func(coh *ControlObjectiveHistory) (ent.Value, error) { + return coh.ID, nil }, - column: entitlementplanfeature.FieldID, - toTerm: entitlementplanfeature.ByID, - toCursor: func(epf *EntitlementPlanFeature) Cursor { - return Cursor{ID: epf.ID} + column: controlobjectivehistory.FieldID, + toTerm: controlobjectivehistory.ByID, + toCursor: func(coh *ControlObjectiveHistory) Cursor { + return Cursor{ID: coh.ID} }, }, } -// ToEdge converts EntitlementPlanFeature into EntitlementPlanFeatureEdge. -func (epf *EntitlementPlanFeature) ToEdge(order *EntitlementPlanFeatureOrder) *EntitlementPlanFeatureEdge { +// ToEdge converts ControlObjectiveHistory into ControlObjectiveHistoryEdge. +func (coh *ControlObjectiveHistory) ToEdge(order *ControlObjectiveHistoryOrder) *ControlObjectiveHistoryEdge { if order == nil { - order = DefaultEntitlementPlanFeatureOrder + order = DefaultControlObjectiveHistoryOrder } - return &EntitlementPlanFeatureEdge{ - Node: epf, - Cursor: order.Field.toCursor(epf), + return &ControlObjectiveHistoryEdge{ + Node: coh, + Cursor: order.Field.toCursor(coh), } } -// EntitlementPlanFeatureHistoryEdge is the edge representation of EntitlementPlanFeatureHistory. -type EntitlementPlanFeatureHistoryEdge struct { - Node *EntitlementPlanFeatureHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// DocumentDataEdge is the edge representation of DocumentData. +type DocumentDataEdge struct { + Node *DocumentData `json:"node"` + Cursor Cursor `json:"cursor"` } -// EntitlementPlanFeatureHistoryConnection is the connection containing edges to EntitlementPlanFeatureHistory. -type EntitlementPlanFeatureHistoryConnection struct { - Edges []*EntitlementPlanFeatureHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// DocumentDataConnection is the connection containing edges to DocumentData. +type DocumentDataConnection struct { + Edges []*DocumentDataEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *EntitlementPlanFeatureHistoryConnection) build(nodes []*EntitlementPlanFeatureHistory, pager *entitlementplanfeaturehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *DocumentDataConnection) build(nodes []*DocumentData, pager *documentdataPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -2415,21 +2433,21 @@ func (c *EntitlementPlanFeatureHistoryConnection) build(nodes []*EntitlementPlan c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *EntitlementPlanFeatureHistory + var nodeAt func(int) *DocumentData if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *EntitlementPlanFeatureHistory { + nodeAt = func(i int) *DocumentData { return nodes[n-i] } } else { - nodeAt = func(i int) *EntitlementPlanFeatureHistory { + nodeAt = func(i int) *DocumentData { return nodes[i] } } - c.Edges = make([]*EntitlementPlanFeatureHistoryEdge, len(nodes)) + c.Edges = make([]*DocumentDataEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &EntitlementPlanFeatureHistoryEdge{ + c.Edges[i] = &DocumentDataEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -2443,87 +2461,87 @@ func (c *EntitlementPlanFeatureHistoryConnection) build(nodes []*EntitlementPlan } } -// EntitlementPlanFeatureHistoryPaginateOption enables pagination customization. -type EntitlementPlanFeatureHistoryPaginateOption func(*entitlementplanfeaturehistoryPager) error +// DocumentDataPaginateOption enables pagination customization. +type DocumentDataPaginateOption func(*documentdataPager) error -// WithEntitlementPlanFeatureHistoryOrder configures pagination ordering. -func WithEntitlementPlanFeatureHistoryOrder(order *EntitlementPlanFeatureHistoryOrder) EntitlementPlanFeatureHistoryPaginateOption { +// WithDocumentDataOrder configures pagination ordering. +func WithDocumentDataOrder(order *DocumentDataOrder) DocumentDataPaginateOption { if order == nil { - order = DefaultEntitlementPlanFeatureHistoryOrder + order = DefaultDocumentDataOrder } o := *order - return func(pager *entitlementplanfeaturehistoryPager) error { + return func(pager *documentdataPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultEntitlementPlanFeatureHistoryOrder.Field + o.Field = DefaultDocumentDataOrder.Field } pager.order = &o return nil } } -// WithEntitlementPlanFeatureHistoryFilter configures pagination filter. -func WithEntitlementPlanFeatureHistoryFilter(filter func(*EntitlementPlanFeatureHistoryQuery) (*EntitlementPlanFeatureHistoryQuery, error)) EntitlementPlanFeatureHistoryPaginateOption { - return func(pager *entitlementplanfeaturehistoryPager) error { +// WithDocumentDataFilter configures pagination filter. +func WithDocumentDataFilter(filter func(*DocumentDataQuery) (*DocumentDataQuery, error)) DocumentDataPaginateOption { + return func(pager *documentdataPager) error { if filter == nil { - return errors.New("EntitlementPlanFeatureHistoryQuery filter cannot be nil") + return errors.New("DocumentDataQuery filter cannot be nil") } pager.filter = filter return nil } } -type entitlementplanfeaturehistoryPager struct { +type documentdataPager struct { reverse bool - order *EntitlementPlanFeatureHistoryOrder - filter func(*EntitlementPlanFeatureHistoryQuery) (*EntitlementPlanFeatureHistoryQuery, error) + order *DocumentDataOrder + filter func(*DocumentDataQuery) (*DocumentDataQuery, error) } -func newEntitlementPlanFeatureHistoryPager(opts []EntitlementPlanFeatureHistoryPaginateOption, reverse bool) (*entitlementplanfeaturehistoryPager, error) { - pager := &entitlementplanfeaturehistoryPager{reverse: reverse} +func newDocumentDataPager(opts []DocumentDataPaginateOption, reverse bool) (*documentdataPager, error) { + pager := &documentdataPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultEntitlementPlanFeatureHistoryOrder + pager.order = DefaultDocumentDataOrder } return pager, nil } -func (p *entitlementplanfeaturehistoryPager) applyFilter(query *EntitlementPlanFeatureHistoryQuery) (*EntitlementPlanFeatureHistoryQuery, error) { +func (p *documentdataPager) applyFilter(query *DocumentDataQuery) (*DocumentDataQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *entitlementplanfeaturehistoryPager) toCursor(epfh *EntitlementPlanFeatureHistory) Cursor { - return p.order.Field.toCursor(epfh) +func (p *documentdataPager) toCursor(dd *DocumentData) Cursor { + return p.order.Field.toCursor(dd) } -func (p *entitlementplanfeaturehistoryPager) applyCursors(query *EntitlementPlanFeatureHistoryQuery, after, before *Cursor) (*EntitlementPlanFeatureHistoryQuery, error) { +func (p *documentdataPager) applyCursors(query *DocumentDataQuery, after, before *Cursor) (*DocumentDataQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntitlementPlanFeatureHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultDocumentDataOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *entitlementplanfeaturehistoryPager) applyOrder(query *EntitlementPlanFeatureHistoryQuery) *EntitlementPlanFeatureHistoryQuery { +func (p *documentdataPager) applyOrder(query *DocumentDataQuery) *DocumentDataQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultEntitlementPlanFeatureHistoryOrder.Field { - query = query.Order(DefaultEntitlementPlanFeatureHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultDocumentDataOrder.Field { + query = query.Order(DefaultDocumentDataOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -2531,7 +2549,7 @@ func (p *entitlementplanfeaturehistoryPager) applyOrder(query *EntitlementPlanFe return query } -func (p *entitlementplanfeaturehistoryPager) orderExpr(query *EntitlementPlanFeatureHistoryQuery) sql.Querier { +func (p *documentdataPager) orderExpr(query *DocumentDataQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -2541,33 +2559,33 @@ func (p *entitlementplanfeaturehistoryPager) orderExpr(query *EntitlementPlanFea } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultEntitlementPlanFeatureHistoryOrder.Field { - b.Comma().Ident(DefaultEntitlementPlanFeatureHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultDocumentDataOrder.Field { + b.Comma().Ident(DefaultDocumentDataOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to EntitlementPlanFeatureHistory. -func (epfh *EntitlementPlanFeatureHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to DocumentData. +func (dd *DocumentDataQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...EntitlementPlanFeatureHistoryPaginateOption, -) (*EntitlementPlanFeatureHistoryConnection, error) { + before *Cursor, last *int, opts ...DocumentDataPaginateOption, +) (*DocumentDataConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newEntitlementPlanFeatureHistoryPager(opts, last != nil) + pager, err := newDocumentDataPager(opts, last != nil) if err != nil { return nil, err } - if epfh, err = pager.applyFilter(epfh); err != nil { + if dd, err = pager.applyFilter(dd); err != nil { return nil, err } - conn := &EntitlementPlanFeatureHistoryConnection{Edges: []*EntitlementPlanFeatureHistoryEdge{}} + conn := &DocumentDataConnection{Edges: []*DocumentDataEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := epfh.Clone() + c := dd.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -2579,20 +2597,20 @@ func (epfh *EntitlementPlanFeatureHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if epfh, err = pager.applyCursors(epfh, after, before); err != nil { + if dd, err = pager.applyCursors(dd, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - epfh.Limit(limit) + dd.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := epfh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := dd.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - epfh = pager.applyOrder(epfh) - nodes, err := epfh.All(ctx) + dd = pager.applyOrder(dd) + nodes, err := dd.All(ctx) if err != nil { return nil, err } @@ -2600,61 +2618,61 @@ func (epfh *EntitlementPlanFeatureHistoryQuery) Paginate( return conn, nil } -// EntitlementPlanFeatureHistoryOrderField defines the ordering field of EntitlementPlanFeatureHistory. -type EntitlementPlanFeatureHistoryOrderField struct { - // Value extracts the ordering value from the given EntitlementPlanFeatureHistory. - Value func(*EntitlementPlanFeatureHistory) (ent.Value, error) +// DocumentDataOrderField defines the ordering field of DocumentData. +type DocumentDataOrderField struct { + // Value extracts the ordering value from the given DocumentData. + Value func(*DocumentData) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) entitlementplanfeaturehistory.OrderOption - toCursor func(*EntitlementPlanFeatureHistory) Cursor + toTerm func(...sql.OrderTermOption) documentdata.OrderOption + toCursor func(*DocumentData) Cursor } -// EntitlementPlanFeatureHistoryOrder defines the ordering of EntitlementPlanFeatureHistory. -type EntitlementPlanFeatureHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *EntitlementPlanFeatureHistoryOrderField `json:"field"` +// DocumentDataOrder defines the ordering of DocumentData. +type DocumentDataOrder struct { + Direction OrderDirection `json:"direction"` + Field *DocumentDataOrderField `json:"field"` } -// DefaultEntitlementPlanFeatureHistoryOrder is the default ordering of EntitlementPlanFeatureHistory. -var DefaultEntitlementPlanFeatureHistoryOrder = &EntitlementPlanFeatureHistoryOrder{ +// DefaultDocumentDataOrder is the default ordering of DocumentData. +var DefaultDocumentDataOrder = &DocumentDataOrder{ Direction: entgql.OrderDirectionAsc, - Field: &EntitlementPlanFeatureHistoryOrderField{ - Value: func(epfh *EntitlementPlanFeatureHistory) (ent.Value, error) { - return epfh.ID, nil + Field: &DocumentDataOrderField{ + Value: func(dd *DocumentData) (ent.Value, error) { + return dd.ID, nil }, - column: entitlementplanfeaturehistory.FieldID, - toTerm: entitlementplanfeaturehistory.ByID, - toCursor: func(epfh *EntitlementPlanFeatureHistory) Cursor { - return Cursor{ID: epfh.ID} + column: documentdata.FieldID, + toTerm: documentdata.ByID, + toCursor: func(dd *DocumentData) Cursor { + return Cursor{ID: dd.ID} }, }, } -// ToEdge converts EntitlementPlanFeatureHistory into EntitlementPlanFeatureHistoryEdge. -func (epfh *EntitlementPlanFeatureHistory) ToEdge(order *EntitlementPlanFeatureHistoryOrder) *EntitlementPlanFeatureHistoryEdge { +// ToEdge converts DocumentData into DocumentDataEdge. +func (dd *DocumentData) ToEdge(order *DocumentDataOrder) *DocumentDataEdge { if order == nil { - order = DefaultEntitlementPlanFeatureHistoryOrder + order = DefaultDocumentDataOrder } - return &EntitlementPlanFeatureHistoryEdge{ - Node: epfh, - Cursor: order.Field.toCursor(epfh), + return &DocumentDataEdge{ + Node: dd, + Cursor: order.Field.toCursor(dd), } } -// EntitlementPlanHistoryEdge is the edge representation of EntitlementPlanHistory. -type EntitlementPlanHistoryEdge struct { - Node *EntitlementPlanHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// DocumentDataHistoryEdge is the edge representation of DocumentDataHistory. +type DocumentDataHistoryEdge struct { + Node *DocumentDataHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// EntitlementPlanHistoryConnection is the connection containing edges to EntitlementPlanHistory. -type EntitlementPlanHistoryConnection struct { - Edges []*EntitlementPlanHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// DocumentDataHistoryConnection is the connection containing edges to DocumentDataHistory. +type DocumentDataHistoryConnection struct { + Edges []*DocumentDataHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *EntitlementPlanHistoryConnection) build(nodes []*EntitlementPlanHistory, pager *entitlementplanhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *DocumentDataHistoryConnection) build(nodes []*DocumentDataHistory, pager *documentdatahistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -2664,21 +2682,21 @@ func (c *EntitlementPlanHistoryConnection) build(nodes []*EntitlementPlanHistory c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *EntitlementPlanHistory + var nodeAt func(int) *DocumentDataHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *EntitlementPlanHistory { + nodeAt = func(i int) *DocumentDataHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *EntitlementPlanHistory { + nodeAt = func(i int) *DocumentDataHistory { return nodes[i] } } - c.Edges = make([]*EntitlementPlanHistoryEdge, len(nodes)) + c.Edges = make([]*DocumentDataHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &EntitlementPlanHistoryEdge{ + c.Edges[i] = &DocumentDataHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -2692,87 +2710,87 @@ func (c *EntitlementPlanHistoryConnection) build(nodes []*EntitlementPlanHistory } } -// EntitlementPlanHistoryPaginateOption enables pagination customization. -type EntitlementPlanHistoryPaginateOption func(*entitlementplanhistoryPager) error +// DocumentDataHistoryPaginateOption enables pagination customization. +type DocumentDataHistoryPaginateOption func(*documentdatahistoryPager) error -// WithEntitlementPlanHistoryOrder configures pagination ordering. -func WithEntitlementPlanHistoryOrder(order *EntitlementPlanHistoryOrder) EntitlementPlanHistoryPaginateOption { +// WithDocumentDataHistoryOrder configures pagination ordering. +func WithDocumentDataHistoryOrder(order *DocumentDataHistoryOrder) DocumentDataHistoryPaginateOption { if order == nil { - order = DefaultEntitlementPlanHistoryOrder + order = DefaultDocumentDataHistoryOrder } o := *order - return func(pager *entitlementplanhistoryPager) error { + return func(pager *documentdatahistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultEntitlementPlanHistoryOrder.Field + o.Field = DefaultDocumentDataHistoryOrder.Field } pager.order = &o return nil } } -// WithEntitlementPlanHistoryFilter configures pagination filter. -func WithEntitlementPlanHistoryFilter(filter func(*EntitlementPlanHistoryQuery) (*EntitlementPlanHistoryQuery, error)) EntitlementPlanHistoryPaginateOption { - return func(pager *entitlementplanhistoryPager) error { +// WithDocumentDataHistoryFilter configures pagination filter. +func WithDocumentDataHistoryFilter(filter func(*DocumentDataHistoryQuery) (*DocumentDataHistoryQuery, error)) DocumentDataHistoryPaginateOption { + return func(pager *documentdatahistoryPager) error { if filter == nil { - return errors.New("EntitlementPlanHistoryQuery filter cannot be nil") + return errors.New("DocumentDataHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type entitlementplanhistoryPager struct { +type documentdatahistoryPager struct { reverse bool - order *EntitlementPlanHistoryOrder - filter func(*EntitlementPlanHistoryQuery) (*EntitlementPlanHistoryQuery, error) + order *DocumentDataHistoryOrder + filter func(*DocumentDataHistoryQuery) (*DocumentDataHistoryQuery, error) } -func newEntitlementPlanHistoryPager(opts []EntitlementPlanHistoryPaginateOption, reverse bool) (*entitlementplanhistoryPager, error) { - pager := &entitlementplanhistoryPager{reverse: reverse} +func newDocumentDataHistoryPager(opts []DocumentDataHistoryPaginateOption, reverse bool) (*documentdatahistoryPager, error) { + pager := &documentdatahistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultEntitlementPlanHistoryOrder + pager.order = DefaultDocumentDataHistoryOrder } return pager, nil } -func (p *entitlementplanhistoryPager) applyFilter(query *EntitlementPlanHistoryQuery) (*EntitlementPlanHistoryQuery, error) { +func (p *documentdatahistoryPager) applyFilter(query *DocumentDataHistoryQuery) (*DocumentDataHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *entitlementplanhistoryPager) toCursor(eph *EntitlementPlanHistory) Cursor { - return p.order.Field.toCursor(eph) +func (p *documentdatahistoryPager) toCursor(ddh *DocumentDataHistory) Cursor { + return p.order.Field.toCursor(ddh) } -func (p *entitlementplanhistoryPager) applyCursors(query *EntitlementPlanHistoryQuery, after, before *Cursor) (*EntitlementPlanHistoryQuery, error) { +func (p *documentdatahistoryPager) applyCursors(query *DocumentDataHistoryQuery, after, before *Cursor) (*DocumentDataHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntitlementPlanHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultDocumentDataHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *entitlementplanhistoryPager) applyOrder(query *EntitlementPlanHistoryQuery) *EntitlementPlanHistoryQuery { +func (p *documentdatahistoryPager) applyOrder(query *DocumentDataHistoryQuery) *DocumentDataHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultEntitlementPlanHistoryOrder.Field { - query = query.Order(DefaultEntitlementPlanHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultDocumentDataHistoryOrder.Field { + query = query.Order(DefaultDocumentDataHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -2780,7 +2798,7 @@ func (p *entitlementplanhistoryPager) applyOrder(query *EntitlementPlanHistoryQu return query } -func (p *entitlementplanhistoryPager) orderExpr(query *EntitlementPlanHistoryQuery) sql.Querier { +func (p *documentdatahistoryPager) orderExpr(query *DocumentDataHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -2790,33 +2808,33 @@ func (p *entitlementplanhistoryPager) orderExpr(query *EntitlementPlanHistoryQue } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultEntitlementPlanHistoryOrder.Field { - b.Comma().Ident(DefaultEntitlementPlanHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultDocumentDataHistoryOrder.Field { + b.Comma().Ident(DefaultDocumentDataHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to EntitlementPlanHistory. -func (eph *EntitlementPlanHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to DocumentDataHistory. +func (ddh *DocumentDataHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...EntitlementPlanHistoryPaginateOption, -) (*EntitlementPlanHistoryConnection, error) { + before *Cursor, last *int, opts ...DocumentDataHistoryPaginateOption, +) (*DocumentDataHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newEntitlementPlanHistoryPager(opts, last != nil) + pager, err := newDocumentDataHistoryPager(opts, last != nil) if err != nil { return nil, err } - if eph, err = pager.applyFilter(eph); err != nil { + if ddh, err = pager.applyFilter(ddh); err != nil { return nil, err } - conn := &EntitlementPlanHistoryConnection{Edges: []*EntitlementPlanHistoryEdge{}} + conn := &DocumentDataHistoryConnection{Edges: []*DocumentDataHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := eph.Clone() + c := ddh.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -2828,20 +2846,20 @@ func (eph *EntitlementPlanHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if eph, err = pager.applyCursors(eph, after, before); err != nil { + if ddh, err = pager.applyCursors(ddh, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - eph.Limit(limit) + ddh.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := eph.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := ddh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - eph = pager.applyOrder(eph) - nodes, err := eph.All(ctx) + ddh = pager.applyOrder(ddh) + nodes, err := ddh.All(ctx) if err != nil { return nil, err } @@ -2849,61 +2867,61 @@ func (eph *EntitlementPlanHistoryQuery) Paginate( return conn, nil } -// EntitlementPlanHistoryOrderField defines the ordering field of EntitlementPlanHistory. -type EntitlementPlanHistoryOrderField struct { - // Value extracts the ordering value from the given EntitlementPlanHistory. - Value func(*EntitlementPlanHistory) (ent.Value, error) +// DocumentDataHistoryOrderField defines the ordering field of DocumentDataHistory. +type DocumentDataHistoryOrderField struct { + // Value extracts the ordering value from the given DocumentDataHistory. + Value func(*DocumentDataHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) entitlementplanhistory.OrderOption - toCursor func(*EntitlementPlanHistory) Cursor + toTerm func(...sql.OrderTermOption) documentdatahistory.OrderOption + toCursor func(*DocumentDataHistory) Cursor } -// EntitlementPlanHistoryOrder defines the ordering of EntitlementPlanHistory. -type EntitlementPlanHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *EntitlementPlanHistoryOrderField `json:"field"` +// DocumentDataHistoryOrder defines the ordering of DocumentDataHistory. +type DocumentDataHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *DocumentDataHistoryOrderField `json:"field"` } -// DefaultEntitlementPlanHistoryOrder is the default ordering of EntitlementPlanHistory. -var DefaultEntitlementPlanHistoryOrder = &EntitlementPlanHistoryOrder{ +// DefaultDocumentDataHistoryOrder is the default ordering of DocumentDataHistory. +var DefaultDocumentDataHistoryOrder = &DocumentDataHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &EntitlementPlanHistoryOrderField{ - Value: func(eph *EntitlementPlanHistory) (ent.Value, error) { - return eph.ID, nil + Field: &DocumentDataHistoryOrderField{ + Value: func(ddh *DocumentDataHistory) (ent.Value, error) { + return ddh.ID, nil }, - column: entitlementplanhistory.FieldID, - toTerm: entitlementplanhistory.ByID, - toCursor: func(eph *EntitlementPlanHistory) Cursor { - return Cursor{ID: eph.ID} + column: documentdatahistory.FieldID, + toTerm: documentdatahistory.ByID, + toCursor: func(ddh *DocumentDataHistory) Cursor { + return Cursor{ID: ddh.ID} }, }, } -// ToEdge converts EntitlementPlanHistory into EntitlementPlanHistoryEdge. -func (eph *EntitlementPlanHistory) ToEdge(order *EntitlementPlanHistoryOrder) *EntitlementPlanHistoryEdge { +// ToEdge converts DocumentDataHistory into DocumentDataHistoryEdge. +func (ddh *DocumentDataHistory) ToEdge(order *DocumentDataHistoryOrder) *DocumentDataHistoryEdge { if order == nil { - order = DefaultEntitlementPlanHistoryOrder + order = DefaultDocumentDataHistoryOrder } - return &EntitlementPlanHistoryEdge{ - Node: eph, - Cursor: order.Field.toCursor(eph), + return &DocumentDataHistoryEdge{ + Node: ddh, + Cursor: order.Field.toCursor(ddh), } } -// EntityEdge is the edge representation of Entity. -type EntityEdge struct { - Node *Entity `json:"node"` - Cursor Cursor `json:"cursor"` +// EntitlementEdge is the edge representation of Entitlement. +type EntitlementEdge struct { + Node *Entitlement `json:"node"` + Cursor Cursor `json:"cursor"` } -// EntityConnection is the connection containing edges to Entity. -type EntityConnection struct { - Edges []*EntityEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// EntitlementConnection is the connection containing edges to Entitlement. +type EntitlementConnection struct { + Edges []*EntitlementEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *EntityConnection) build(nodes []*Entity, pager *entityPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *EntitlementConnection) build(nodes []*Entitlement, pager *entitlementPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -2913,21 +2931,21 @@ func (c *EntityConnection) build(nodes []*Entity, pager *entityPager, after *Cur c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *Entity + var nodeAt func(int) *Entitlement if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *Entity { + nodeAt = func(i int) *Entitlement { return nodes[n-i] } } else { - nodeAt = func(i int) *Entity { + nodeAt = func(i int) *Entitlement { return nodes[i] } } - c.Edges = make([]*EntityEdge, len(nodes)) + c.Edges = make([]*EntitlementEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &EntityEdge{ + c.Edges[i] = &EntitlementEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -2941,87 +2959,87 @@ func (c *EntityConnection) build(nodes []*Entity, pager *entityPager, after *Cur } } -// EntityPaginateOption enables pagination customization. -type EntityPaginateOption func(*entityPager) error +// EntitlementPaginateOption enables pagination customization. +type EntitlementPaginateOption func(*entitlementPager) error -// WithEntityOrder configures pagination ordering. -func WithEntityOrder(order *EntityOrder) EntityPaginateOption { +// WithEntitlementOrder configures pagination ordering. +func WithEntitlementOrder(order *EntitlementOrder) EntitlementPaginateOption { if order == nil { - order = DefaultEntityOrder + order = DefaultEntitlementOrder } o := *order - return func(pager *entityPager) error { + return func(pager *entitlementPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultEntityOrder.Field + o.Field = DefaultEntitlementOrder.Field } pager.order = &o return nil } } -// WithEntityFilter configures pagination filter. -func WithEntityFilter(filter func(*EntityQuery) (*EntityQuery, error)) EntityPaginateOption { - return func(pager *entityPager) error { +// WithEntitlementFilter configures pagination filter. +func WithEntitlementFilter(filter func(*EntitlementQuery) (*EntitlementQuery, error)) EntitlementPaginateOption { + return func(pager *entitlementPager) error { if filter == nil { - return errors.New("EntityQuery filter cannot be nil") + return errors.New("EntitlementQuery filter cannot be nil") } pager.filter = filter return nil } } -type entityPager struct { +type entitlementPager struct { reverse bool - order *EntityOrder - filter func(*EntityQuery) (*EntityQuery, error) + order *EntitlementOrder + filter func(*EntitlementQuery) (*EntitlementQuery, error) } -func newEntityPager(opts []EntityPaginateOption, reverse bool) (*entityPager, error) { - pager := &entityPager{reverse: reverse} +func newEntitlementPager(opts []EntitlementPaginateOption, reverse bool) (*entitlementPager, error) { + pager := &entitlementPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultEntityOrder + pager.order = DefaultEntitlementOrder } return pager, nil } -func (p *entityPager) applyFilter(query *EntityQuery) (*EntityQuery, error) { +func (p *entitlementPager) applyFilter(query *EntitlementQuery) (*EntitlementQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *entityPager) toCursor(e *Entity) Cursor { +func (p *entitlementPager) toCursor(e *Entitlement) Cursor { return p.order.Field.toCursor(e) } -func (p *entityPager) applyCursors(query *EntityQuery, after, before *Cursor) (*EntityQuery, error) { +func (p *entitlementPager) applyCursors(query *EntitlementQuery, after, before *Cursor) (*EntitlementQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntityOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntitlementOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *entityPager) applyOrder(query *EntityQuery) *EntityQuery { +func (p *entitlementPager) applyOrder(query *EntitlementQuery) *EntitlementQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultEntityOrder.Field { - query = query.Order(DefaultEntityOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultEntitlementOrder.Field { + query = query.Order(DefaultEntitlementOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -3029,7 +3047,7 @@ func (p *entityPager) applyOrder(query *EntityQuery) *EntityQuery { return query } -func (p *entityPager) orderExpr(query *EntityQuery) sql.Querier { +func (p *entitlementPager) orderExpr(query *EntitlementQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -3039,28 +3057,28 @@ func (p *entityPager) orderExpr(query *EntityQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultEntityOrder.Field { - b.Comma().Ident(DefaultEntityOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultEntitlementOrder.Field { + b.Comma().Ident(DefaultEntitlementOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to Entity. -func (e *EntityQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Entitlement. +func (e *EntitlementQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...EntityPaginateOption, -) (*EntityConnection, error) { + before *Cursor, last *int, opts ...EntitlementPaginateOption, +) (*EntitlementConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newEntityPager(opts, last != nil) + pager, err := newEntitlementPager(opts, last != nil) if err != nil { return nil, err } if e, err = pager.applyFilter(e); err != nil { return nil, err } - conn := &EntityConnection{Edges: []*EntityEdge{}} + conn := &EntitlementConnection{Edges: []*EntitlementEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil @@ -3098,126 +3116,61 @@ func (e *EntityQuery) Paginate( return conn, nil } -var ( - // EntityOrderFieldName orders Entity by name. - EntityOrderFieldName = &EntityOrderField{ - Value: func(e *Entity) (ent.Value, error) { - return e.Name, nil - }, - column: entity.FieldName, - toTerm: entity.ByName, - toCursor: func(e *Entity) Cursor { - return Cursor{ - ID: e.ID, - Value: e.Name, - } - }, - } - // EntityOrderFieldDisplayName orders Entity by display_name. - EntityOrderFieldDisplayName = &EntityOrderField{ - Value: func(e *Entity) (ent.Value, error) { - return e.DisplayName, nil - }, - column: entity.FieldDisplayName, - toTerm: entity.ByDisplayName, - toCursor: func(e *Entity) Cursor { - return Cursor{ - ID: e.ID, - Value: e.DisplayName, - } - }, - } -) - -// String implement fmt.Stringer interface. -func (f EntityOrderField) String() string { - var str string - switch f.column { - case EntityOrderFieldName.column: - str = "name" - case EntityOrderFieldDisplayName.column: - str = "display_name" - } - return str -} - -// MarshalGQL implements graphql.Marshaler interface. -func (f EntityOrderField) MarshalGQL(w io.Writer) { - io.WriteString(w, strconv.Quote(f.String())) -} - -// UnmarshalGQL implements graphql.Unmarshaler interface. -func (f *EntityOrderField) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("EntityOrderField %T must be a string", v) - } - switch str { - case "name": - *f = *EntityOrderFieldName - case "display_name": - *f = *EntityOrderFieldDisplayName - default: - return fmt.Errorf("%s is not a valid EntityOrderField", str) - } - return nil -} - -// EntityOrderField defines the ordering field of Entity. -type EntityOrderField struct { - // Value extracts the ordering value from the given Entity. - Value func(*Entity) (ent.Value, error) +// EntitlementOrderField defines the ordering field of Entitlement. +type EntitlementOrderField struct { + // Value extracts the ordering value from the given Entitlement. + Value func(*Entitlement) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) entity.OrderOption - toCursor func(*Entity) Cursor + toTerm func(...sql.OrderTermOption) entitlement.OrderOption + toCursor func(*Entitlement) Cursor } -// EntityOrder defines the ordering of Entity. -type EntityOrder struct { - Direction OrderDirection `json:"direction"` - Field *EntityOrderField `json:"field"` +// EntitlementOrder defines the ordering of Entitlement. +type EntitlementOrder struct { + Direction OrderDirection `json:"direction"` + Field *EntitlementOrderField `json:"field"` } -// DefaultEntityOrder is the default ordering of Entity. -var DefaultEntityOrder = &EntityOrder{ +// DefaultEntitlementOrder is the default ordering of Entitlement. +var DefaultEntitlementOrder = &EntitlementOrder{ Direction: entgql.OrderDirectionAsc, - Field: &EntityOrderField{ - Value: func(e *Entity) (ent.Value, error) { + Field: &EntitlementOrderField{ + Value: func(e *Entitlement) (ent.Value, error) { return e.ID, nil }, - column: entity.FieldID, - toTerm: entity.ByID, - toCursor: func(e *Entity) Cursor { + column: entitlement.FieldID, + toTerm: entitlement.ByID, + toCursor: func(e *Entitlement) Cursor { return Cursor{ID: e.ID} }, }, } -// ToEdge converts Entity into EntityEdge. -func (e *Entity) ToEdge(order *EntityOrder) *EntityEdge { +// ToEdge converts Entitlement into EntitlementEdge. +func (e *Entitlement) ToEdge(order *EntitlementOrder) *EntitlementEdge { if order == nil { - order = DefaultEntityOrder + order = DefaultEntitlementOrder } - return &EntityEdge{ + return &EntitlementEdge{ Node: e, Cursor: order.Field.toCursor(e), } } -// EntityHistoryEdge is the edge representation of EntityHistory. -type EntityHistoryEdge struct { - Node *EntityHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// EntitlementHistoryEdge is the edge representation of EntitlementHistory. +type EntitlementHistoryEdge struct { + Node *EntitlementHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// EntityHistoryConnection is the connection containing edges to EntityHistory. -type EntityHistoryConnection struct { - Edges []*EntityHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// EntitlementHistoryConnection is the connection containing edges to EntitlementHistory. +type EntitlementHistoryConnection struct { + Edges []*EntitlementHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *EntityHistoryConnection) build(nodes []*EntityHistory, pager *entityhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *EntitlementHistoryConnection) build(nodes []*EntitlementHistory, pager *entitlementhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -3227,21 +3180,21 @@ func (c *EntityHistoryConnection) build(nodes []*EntityHistory, pager *entityhis c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *EntityHistory + var nodeAt func(int) *EntitlementHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *EntityHistory { + nodeAt = func(i int) *EntitlementHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *EntityHistory { + nodeAt = func(i int) *EntitlementHistory { return nodes[i] } } - c.Edges = make([]*EntityHistoryEdge, len(nodes)) + c.Edges = make([]*EntitlementHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &EntityHistoryEdge{ + c.Edges[i] = &EntitlementHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -3255,87 +3208,87 @@ func (c *EntityHistoryConnection) build(nodes []*EntityHistory, pager *entityhis } } -// EntityHistoryPaginateOption enables pagination customization. -type EntityHistoryPaginateOption func(*entityhistoryPager) error +// EntitlementHistoryPaginateOption enables pagination customization. +type EntitlementHistoryPaginateOption func(*entitlementhistoryPager) error -// WithEntityHistoryOrder configures pagination ordering. -func WithEntityHistoryOrder(order *EntityHistoryOrder) EntityHistoryPaginateOption { +// WithEntitlementHistoryOrder configures pagination ordering. +func WithEntitlementHistoryOrder(order *EntitlementHistoryOrder) EntitlementHistoryPaginateOption { if order == nil { - order = DefaultEntityHistoryOrder + order = DefaultEntitlementHistoryOrder } o := *order - return func(pager *entityhistoryPager) error { + return func(pager *entitlementhistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultEntityHistoryOrder.Field + o.Field = DefaultEntitlementHistoryOrder.Field } pager.order = &o return nil } } -// WithEntityHistoryFilter configures pagination filter. -func WithEntityHistoryFilter(filter func(*EntityHistoryQuery) (*EntityHistoryQuery, error)) EntityHistoryPaginateOption { - return func(pager *entityhistoryPager) error { +// WithEntitlementHistoryFilter configures pagination filter. +func WithEntitlementHistoryFilter(filter func(*EntitlementHistoryQuery) (*EntitlementHistoryQuery, error)) EntitlementHistoryPaginateOption { + return func(pager *entitlementhistoryPager) error { if filter == nil { - return errors.New("EntityHistoryQuery filter cannot be nil") + return errors.New("EntitlementHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type entityhistoryPager struct { +type entitlementhistoryPager struct { reverse bool - order *EntityHistoryOrder - filter func(*EntityHistoryQuery) (*EntityHistoryQuery, error) + order *EntitlementHistoryOrder + filter func(*EntitlementHistoryQuery) (*EntitlementHistoryQuery, error) } -func newEntityHistoryPager(opts []EntityHistoryPaginateOption, reverse bool) (*entityhistoryPager, error) { - pager := &entityhistoryPager{reverse: reverse} +func newEntitlementHistoryPager(opts []EntitlementHistoryPaginateOption, reverse bool) (*entitlementhistoryPager, error) { + pager := &entitlementhistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultEntityHistoryOrder + pager.order = DefaultEntitlementHistoryOrder } return pager, nil } -func (p *entityhistoryPager) applyFilter(query *EntityHistoryQuery) (*EntityHistoryQuery, error) { +func (p *entitlementhistoryPager) applyFilter(query *EntitlementHistoryQuery) (*EntitlementHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *entityhistoryPager) toCursor(eh *EntityHistory) Cursor { +func (p *entitlementhistoryPager) toCursor(eh *EntitlementHistory) Cursor { return p.order.Field.toCursor(eh) } -func (p *entityhistoryPager) applyCursors(query *EntityHistoryQuery, after, before *Cursor) (*EntityHistoryQuery, error) { +func (p *entitlementhistoryPager) applyCursors(query *EntitlementHistoryQuery, after, before *Cursor) (*EntitlementHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntityHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntitlementHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *entityhistoryPager) applyOrder(query *EntityHistoryQuery) *EntityHistoryQuery { +func (p *entitlementhistoryPager) applyOrder(query *EntitlementHistoryQuery) *EntitlementHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultEntityHistoryOrder.Field { - query = query.Order(DefaultEntityHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultEntitlementHistoryOrder.Field { + query = query.Order(DefaultEntitlementHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -3343,7 +3296,7 @@ func (p *entityhistoryPager) applyOrder(query *EntityHistoryQuery) *EntityHistor return query } -func (p *entityhistoryPager) orderExpr(query *EntityHistoryQuery) sql.Querier { +func (p *entitlementhistoryPager) orderExpr(query *EntitlementHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -3353,28 +3306,28 @@ func (p *entityhistoryPager) orderExpr(query *EntityHistoryQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultEntityHistoryOrder.Field { - b.Comma().Ident(DefaultEntityHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultEntitlementHistoryOrder.Field { + b.Comma().Ident(DefaultEntitlementHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to EntityHistory. -func (eh *EntityHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to EntitlementHistory. +func (eh *EntitlementHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...EntityHistoryPaginateOption, -) (*EntityHistoryConnection, error) { + before *Cursor, last *int, opts ...EntitlementHistoryPaginateOption, +) (*EntitlementHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newEntityHistoryPager(opts, last != nil) + pager, err := newEntitlementHistoryPager(opts, last != nil) if err != nil { return nil, err } if eh, err = pager.applyFilter(eh); err != nil { return nil, err } - conn := &EntityHistoryConnection{Edges: []*EntityHistoryEdge{}} + conn := &EntitlementHistoryConnection{Edges: []*EntitlementHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil @@ -3412,126 +3365,4897 @@ func (eh *EntityHistoryQuery) Paginate( return conn, nil } -var ( - // EntityHistoryOrderFieldName orders EntityHistory by name. - EntityHistoryOrderFieldName = &EntityHistoryOrderField{ - Value: func(eh *EntityHistory) (ent.Value, error) { - return eh.Name, nil +// EntitlementHistoryOrderField defines the ordering field of EntitlementHistory. +type EntitlementHistoryOrderField struct { + // Value extracts the ordering value from the given EntitlementHistory. + Value func(*EntitlementHistory) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) entitlementhistory.OrderOption + toCursor func(*EntitlementHistory) Cursor +} + +// EntitlementHistoryOrder defines the ordering of EntitlementHistory. +type EntitlementHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *EntitlementHistoryOrderField `json:"field"` +} + +// DefaultEntitlementHistoryOrder is the default ordering of EntitlementHistory. +var DefaultEntitlementHistoryOrder = &EntitlementHistoryOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &EntitlementHistoryOrderField{ + Value: func(eh *EntitlementHistory) (ent.Value, error) { + return eh.ID, nil }, - column: entityhistory.FieldName, - toTerm: entityhistory.ByName, - toCursor: func(eh *EntityHistory) Cursor { - return Cursor{ - ID: eh.ID, - Value: eh.Name, - } + column: entitlementhistory.FieldID, + toTerm: entitlementhistory.ByID, + toCursor: func(eh *EntitlementHistory) Cursor { + return Cursor{ID: eh.ID} }, + }, +} + +// ToEdge converts EntitlementHistory into EntitlementHistoryEdge. +func (eh *EntitlementHistory) ToEdge(order *EntitlementHistoryOrder) *EntitlementHistoryEdge { + if order == nil { + order = DefaultEntitlementHistoryOrder } - // EntityHistoryOrderFieldDisplayName orders EntityHistory by display_name. - EntityHistoryOrderFieldDisplayName = &EntityHistoryOrderField{ - Value: func(eh *EntityHistory) (ent.Value, error) { - return eh.DisplayName, nil - }, - column: entityhistory.FieldDisplayName, - toTerm: entityhistory.ByDisplayName, - toCursor: func(eh *EntityHistory) Cursor { - return Cursor{ - ID: eh.ID, - Value: eh.DisplayName, - } - }, + return &EntitlementHistoryEdge{ + Node: eh, + Cursor: order.Field.toCursor(eh), } -) +} -// String implement fmt.Stringer interface. +// EntitlementPlanEdge is the edge representation of EntitlementPlan. +type EntitlementPlanEdge struct { + Node *EntitlementPlan `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// EntitlementPlanConnection is the connection containing edges to EntitlementPlan. +type EntitlementPlanConnection struct { + Edges []*EntitlementPlanEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *EntitlementPlanConnection) build(nodes []*EntitlementPlan, pager *entitlementplanPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *EntitlementPlan + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *EntitlementPlan { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *EntitlementPlan { + return nodes[i] + } + } + c.Edges = make([]*EntitlementPlanEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &EntitlementPlanEdge{ + 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) + } +} + +// EntitlementPlanPaginateOption enables pagination customization. +type EntitlementPlanPaginateOption func(*entitlementplanPager) error + +// WithEntitlementPlanOrder configures pagination ordering. +func WithEntitlementPlanOrder(order *EntitlementPlanOrder) EntitlementPlanPaginateOption { + if order == nil { + order = DefaultEntitlementPlanOrder + } + o := *order + return func(pager *entitlementplanPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultEntitlementPlanOrder.Field + } + pager.order = &o + return nil + } +} + +// WithEntitlementPlanFilter configures pagination filter. +func WithEntitlementPlanFilter(filter func(*EntitlementPlanQuery) (*EntitlementPlanQuery, error)) EntitlementPlanPaginateOption { + return func(pager *entitlementplanPager) error { + if filter == nil { + return errors.New("EntitlementPlanQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type entitlementplanPager struct { + reverse bool + order *EntitlementPlanOrder + filter func(*EntitlementPlanQuery) (*EntitlementPlanQuery, error) +} + +func newEntitlementPlanPager(opts []EntitlementPlanPaginateOption, reverse bool) (*entitlementplanPager, error) { + pager := &entitlementplanPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultEntitlementPlanOrder + } + return pager, nil +} + +func (p *entitlementplanPager) applyFilter(query *EntitlementPlanQuery) (*EntitlementPlanQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *entitlementplanPager) toCursor(ep *EntitlementPlan) Cursor { + return p.order.Field.toCursor(ep) +} + +func (p *entitlementplanPager) applyCursors(query *EntitlementPlanQuery, after, before *Cursor) (*EntitlementPlanQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntitlementPlanOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *entitlementplanPager) applyOrder(query *EntitlementPlanQuery) *EntitlementPlanQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultEntitlementPlanOrder.Field { + query = query.Order(DefaultEntitlementPlanOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *entitlementplanPager) orderExpr(query *EntitlementPlanQuery) 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 != DefaultEntitlementPlanOrder.Field { + b.Comma().Ident(DefaultEntitlementPlanOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to EntitlementPlan. +func (ep *EntitlementPlanQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...EntitlementPlanPaginateOption, +) (*EntitlementPlanConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newEntitlementPlanPager(opts, last != nil) + if err != nil { + return nil, err + } + if ep, err = pager.applyFilter(ep); err != nil { + return nil, err + } + conn := &EntitlementPlanConnection{Edges: []*EntitlementPlanEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := ep.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if ep, err = pager.applyCursors(ep, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + ep.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := ep.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + ep = pager.applyOrder(ep) + nodes, err := ep.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +// EntitlementPlanOrderField defines the ordering field of EntitlementPlan. +type EntitlementPlanOrderField struct { + // Value extracts the ordering value from the given EntitlementPlan. + Value func(*EntitlementPlan) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) entitlementplan.OrderOption + toCursor func(*EntitlementPlan) Cursor +} + +// EntitlementPlanOrder defines the ordering of EntitlementPlan. +type EntitlementPlanOrder struct { + Direction OrderDirection `json:"direction"` + Field *EntitlementPlanOrderField `json:"field"` +} + +// DefaultEntitlementPlanOrder is the default ordering of EntitlementPlan. +var DefaultEntitlementPlanOrder = &EntitlementPlanOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &EntitlementPlanOrderField{ + Value: func(ep *EntitlementPlan) (ent.Value, error) { + return ep.ID, nil + }, + column: entitlementplan.FieldID, + toTerm: entitlementplan.ByID, + toCursor: func(ep *EntitlementPlan) Cursor { + return Cursor{ID: ep.ID} + }, + }, +} + +// ToEdge converts EntitlementPlan into EntitlementPlanEdge. +func (ep *EntitlementPlan) ToEdge(order *EntitlementPlanOrder) *EntitlementPlanEdge { + if order == nil { + order = DefaultEntitlementPlanOrder + } + return &EntitlementPlanEdge{ + Node: ep, + Cursor: order.Field.toCursor(ep), + } +} + +// EntitlementPlanFeatureEdge is the edge representation of EntitlementPlanFeature. +type EntitlementPlanFeatureEdge struct { + Node *EntitlementPlanFeature `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// EntitlementPlanFeatureConnection is the connection containing edges to EntitlementPlanFeature. +type EntitlementPlanFeatureConnection struct { + Edges []*EntitlementPlanFeatureEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *EntitlementPlanFeatureConnection) build(nodes []*EntitlementPlanFeature, pager *entitlementplanfeaturePager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *EntitlementPlanFeature + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *EntitlementPlanFeature { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *EntitlementPlanFeature { + return nodes[i] + } + } + c.Edges = make([]*EntitlementPlanFeatureEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &EntitlementPlanFeatureEdge{ + 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) + } +} + +// EntitlementPlanFeaturePaginateOption enables pagination customization. +type EntitlementPlanFeaturePaginateOption func(*entitlementplanfeaturePager) error + +// WithEntitlementPlanFeatureOrder configures pagination ordering. +func WithEntitlementPlanFeatureOrder(order *EntitlementPlanFeatureOrder) EntitlementPlanFeaturePaginateOption { + if order == nil { + order = DefaultEntitlementPlanFeatureOrder + } + o := *order + return func(pager *entitlementplanfeaturePager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultEntitlementPlanFeatureOrder.Field + } + pager.order = &o + return nil + } +} + +// WithEntitlementPlanFeatureFilter configures pagination filter. +func WithEntitlementPlanFeatureFilter(filter func(*EntitlementPlanFeatureQuery) (*EntitlementPlanFeatureQuery, error)) EntitlementPlanFeaturePaginateOption { + return func(pager *entitlementplanfeaturePager) error { + if filter == nil { + return errors.New("EntitlementPlanFeatureQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type entitlementplanfeaturePager struct { + reverse bool + order *EntitlementPlanFeatureOrder + filter func(*EntitlementPlanFeatureQuery) (*EntitlementPlanFeatureQuery, error) +} + +func newEntitlementPlanFeaturePager(opts []EntitlementPlanFeaturePaginateOption, reverse bool) (*entitlementplanfeaturePager, error) { + pager := &entitlementplanfeaturePager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultEntitlementPlanFeatureOrder + } + return pager, nil +} + +func (p *entitlementplanfeaturePager) applyFilter(query *EntitlementPlanFeatureQuery) (*EntitlementPlanFeatureQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *entitlementplanfeaturePager) toCursor(epf *EntitlementPlanFeature) Cursor { + return p.order.Field.toCursor(epf) +} + +func (p *entitlementplanfeaturePager) applyCursors(query *EntitlementPlanFeatureQuery, after, before *Cursor) (*EntitlementPlanFeatureQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntitlementPlanFeatureOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *entitlementplanfeaturePager) applyOrder(query *EntitlementPlanFeatureQuery) *EntitlementPlanFeatureQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultEntitlementPlanFeatureOrder.Field { + query = query.Order(DefaultEntitlementPlanFeatureOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *entitlementplanfeaturePager) orderExpr(query *EntitlementPlanFeatureQuery) 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 != DefaultEntitlementPlanFeatureOrder.Field { + b.Comma().Ident(DefaultEntitlementPlanFeatureOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to EntitlementPlanFeature. +func (epf *EntitlementPlanFeatureQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...EntitlementPlanFeaturePaginateOption, +) (*EntitlementPlanFeatureConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newEntitlementPlanFeaturePager(opts, last != nil) + if err != nil { + return nil, err + } + if epf, err = pager.applyFilter(epf); err != nil { + return nil, err + } + conn := &EntitlementPlanFeatureConnection{Edges: []*EntitlementPlanFeatureEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := epf.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if epf, err = pager.applyCursors(epf, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + epf.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := epf.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + epf = pager.applyOrder(epf) + nodes, err := epf.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +// EntitlementPlanFeatureOrderField defines the ordering field of EntitlementPlanFeature. +type EntitlementPlanFeatureOrderField struct { + // Value extracts the ordering value from the given EntitlementPlanFeature. + Value func(*EntitlementPlanFeature) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) entitlementplanfeature.OrderOption + toCursor func(*EntitlementPlanFeature) Cursor +} + +// EntitlementPlanFeatureOrder defines the ordering of EntitlementPlanFeature. +type EntitlementPlanFeatureOrder struct { + Direction OrderDirection `json:"direction"` + Field *EntitlementPlanFeatureOrderField `json:"field"` +} + +// DefaultEntitlementPlanFeatureOrder is the default ordering of EntitlementPlanFeature. +var DefaultEntitlementPlanFeatureOrder = &EntitlementPlanFeatureOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &EntitlementPlanFeatureOrderField{ + Value: func(epf *EntitlementPlanFeature) (ent.Value, error) { + return epf.ID, nil + }, + column: entitlementplanfeature.FieldID, + toTerm: entitlementplanfeature.ByID, + toCursor: func(epf *EntitlementPlanFeature) Cursor { + return Cursor{ID: epf.ID} + }, + }, +} + +// ToEdge converts EntitlementPlanFeature into EntitlementPlanFeatureEdge. +func (epf *EntitlementPlanFeature) ToEdge(order *EntitlementPlanFeatureOrder) *EntitlementPlanFeatureEdge { + if order == nil { + order = DefaultEntitlementPlanFeatureOrder + } + return &EntitlementPlanFeatureEdge{ + Node: epf, + Cursor: order.Field.toCursor(epf), + } +} + +// EntitlementPlanFeatureHistoryEdge is the edge representation of EntitlementPlanFeatureHistory. +type EntitlementPlanFeatureHistoryEdge struct { + Node *EntitlementPlanFeatureHistory `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// EntitlementPlanFeatureHistoryConnection is the connection containing edges to EntitlementPlanFeatureHistory. +type EntitlementPlanFeatureHistoryConnection struct { + Edges []*EntitlementPlanFeatureHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *EntitlementPlanFeatureHistoryConnection) build(nodes []*EntitlementPlanFeatureHistory, pager *entitlementplanfeaturehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *EntitlementPlanFeatureHistory + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *EntitlementPlanFeatureHistory { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *EntitlementPlanFeatureHistory { + return nodes[i] + } + } + c.Edges = make([]*EntitlementPlanFeatureHistoryEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &EntitlementPlanFeatureHistoryEdge{ + 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) + } +} + +// EntitlementPlanFeatureHistoryPaginateOption enables pagination customization. +type EntitlementPlanFeatureHistoryPaginateOption func(*entitlementplanfeaturehistoryPager) error + +// WithEntitlementPlanFeatureHistoryOrder configures pagination ordering. +func WithEntitlementPlanFeatureHistoryOrder(order *EntitlementPlanFeatureHistoryOrder) EntitlementPlanFeatureHistoryPaginateOption { + if order == nil { + order = DefaultEntitlementPlanFeatureHistoryOrder + } + o := *order + return func(pager *entitlementplanfeaturehistoryPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultEntitlementPlanFeatureHistoryOrder.Field + } + pager.order = &o + return nil + } +} + +// WithEntitlementPlanFeatureHistoryFilter configures pagination filter. +func WithEntitlementPlanFeatureHistoryFilter(filter func(*EntitlementPlanFeatureHistoryQuery) (*EntitlementPlanFeatureHistoryQuery, error)) EntitlementPlanFeatureHistoryPaginateOption { + return func(pager *entitlementplanfeaturehistoryPager) error { + if filter == nil { + return errors.New("EntitlementPlanFeatureHistoryQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type entitlementplanfeaturehistoryPager struct { + reverse bool + order *EntitlementPlanFeatureHistoryOrder + filter func(*EntitlementPlanFeatureHistoryQuery) (*EntitlementPlanFeatureHistoryQuery, error) +} + +func newEntitlementPlanFeatureHistoryPager(opts []EntitlementPlanFeatureHistoryPaginateOption, reverse bool) (*entitlementplanfeaturehistoryPager, error) { + pager := &entitlementplanfeaturehistoryPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultEntitlementPlanFeatureHistoryOrder + } + return pager, nil +} + +func (p *entitlementplanfeaturehistoryPager) applyFilter(query *EntitlementPlanFeatureHistoryQuery) (*EntitlementPlanFeatureHistoryQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *entitlementplanfeaturehistoryPager) toCursor(epfh *EntitlementPlanFeatureHistory) Cursor { + return p.order.Field.toCursor(epfh) +} + +func (p *entitlementplanfeaturehistoryPager) applyCursors(query *EntitlementPlanFeatureHistoryQuery, after, before *Cursor) (*EntitlementPlanFeatureHistoryQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntitlementPlanFeatureHistoryOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *entitlementplanfeaturehistoryPager) applyOrder(query *EntitlementPlanFeatureHistoryQuery) *EntitlementPlanFeatureHistoryQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultEntitlementPlanFeatureHistoryOrder.Field { + query = query.Order(DefaultEntitlementPlanFeatureHistoryOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *entitlementplanfeaturehistoryPager) orderExpr(query *EntitlementPlanFeatureHistoryQuery) 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 != DefaultEntitlementPlanFeatureHistoryOrder.Field { + b.Comma().Ident(DefaultEntitlementPlanFeatureHistoryOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to EntitlementPlanFeatureHistory. +func (epfh *EntitlementPlanFeatureHistoryQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...EntitlementPlanFeatureHistoryPaginateOption, +) (*EntitlementPlanFeatureHistoryConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newEntitlementPlanFeatureHistoryPager(opts, last != nil) + if err != nil { + return nil, err + } + if epfh, err = pager.applyFilter(epfh); err != nil { + return nil, err + } + conn := &EntitlementPlanFeatureHistoryConnection{Edges: []*EntitlementPlanFeatureHistoryEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := epfh.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if epfh, err = pager.applyCursors(epfh, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + epfh.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := epfh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + epfh = pager.applyOrder(epfh) + nodes, err := epfh.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +// EntitlementPlanFeatureHistoryOrderField defines the ordering field of EntitlementPlanFeatureHistory. +type EntitlementPlanFeatureHistoryOrderField struct { + // Value extracts the ordering value from the given EntitlementPlanFeatureHistory. + Value func(*EntitlementPlanFeatureHistory) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) entitlementplanfeaturehistory.OrderOption + toCursor func(*EntitlementPlanFeatureHistory) Cursor +} + +// EntitlementPlanFeatureHistoryOrder defines the ordering of EntitlementPlanFeatureHistory. +type EntitlementPlanFeatureHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *EntitlementPlanFeatureHistoryOrderField `json:"field"` +} + +// DefaultEntitlementPlanFeatureHistoryOrder is the default ordering of EntitlementPlanFeatureHistory. +var DefaultEntitlementPlanFeatureHistoryOrder = &EntitlementPlanFeatureHistoryOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &EntitlementPlanFeatureHistoryOrderField{ + Value: func(epfh *EntitlementPlanFeatureHistory) (ent.Value, error) { + return epfh.ID, nil + }, + column: entitlementplanfeaturehistory.FieldID, + toTerm: entitlementplanfeaturehistory.ByID, + toCursor: func(epfh *EntitlementPlanFeatureHistory) Cursor { + return Cursor{ID: epfh.ID} + }, + }, +} + +// ToEdge converts EntitlementPlanFeatureHistory into EntitlementPlanFeatureHistoryEdge. +func (epfh *EntitlementPlanFeatureHistory) ToEdge(order *EntitlementPlanFeatureHistoryOrder) *EntitlementPlanFeatureHistoryEdge { + if order == nil { + order = DefaultEntitlementPlanFeatureHistoryOrder + } + return &EntitlementPlanFeatureHistoryEdge{ + Node: epfh, + Cursor: order.Field.toCursor(epfh), + } +} + +// EntitlementPlanHistoryEdge is the edge representation of EntitlementPlanHistory. +type EntitlementPlanHistoryEdge struct { + Node *EntitlementPlanHistory `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// EntitlementPlanHistoryConnection is the connection containing edges to EntitlementPlanHistory. +type EntitlementPlanHistoryConnection struct { + Edges []*EntitlementPlanHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *EntitlementPlanHistoryConnection) build(nodes []*EntitlementPlanHistory, pager *entitlementplanhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *EntitlementPlanHistory + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *EntitlementPlanHistory { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *EntitlementPlanHistory { + return nodes[i] + } + } + c.Edges = make([]*EntitlementPlanHistoryEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &EntitlementPlanHistoryEdge{ + 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) + } +} + +// EntitlementPlanHistoryPaginateOption enables pagination customization. +type EntitlementPlanHistoryPaginateOption func(*entitlementplanhistoryPager) error + +// WithEntitlementPlanHistoryOrder configures pagination ordering. +func WithEntitlementPlanHistoryOrder(order *EntitlementPlanHistoryOrder) EntitlementPlanHistoryPaginateOption { + if order == nil { + order = DefaultEntitlementPlanHistoryOrder + } + o := *order + return func(pager *entitlementplanhistoryPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultEntitlementPlanHistoryOrder.Field + } + pager.order = &o + return nil + } +} + +// WithEntitlementPlanHistoryFilter configures pagination filter. +func WithEntitlementPlanHistoryFilter(filter func(*EntitlementPlanHistoryQuery) (*EntitlementPlanHistoryQuery, error)) EntitlementPlanHistoryPaginateOption { + return func(pager *entitlementplanhistoryPager) error { + if filter == nil { + return errors.New("EntitlementPlanHistoryQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type entitlementplanhistoryPager struct { + reverse bool + order *EntitlementPlanHistoryOrder + filter func(*EntitlementPlanHistoryQuery) (*EntitlementPlanHistoryQuery, error) +} + +func newEntitlementPlanHistoryPager(opts []EntitlementPlanHistoryPaginateOption, reverse bool) (*entitlementplanhistoryPager, error) { + pager := &entitlementplanhistoryPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultEntitlementPlanHistoryOrder + } + return pager, nil +} + +func (p *entitlementplanhistoryPager) applyFilter(query *EntitlementPlanHistoryQuery) (*EntitlementPlanHistoryQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *entitlementplanhistoryPager) toCursor(eph *EntitlementPlanHistory) Cursor { + return p.order.Field.toCursor(eph) +} + +func (p *entitlementplanhistoryPager) applyCursors(query *EntitlementPlanHistoryQuery, after, before *Cursor) (*EntitlementPlanHistoryQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntitlementPlanHistoryOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *entitlementplanhistoryPager) applyOrder(query *EntitlementPlanHistoryQuery) *EntitlementPlanHistoryQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultEntitlementPlanHistoryOrder.Field { + query = query.Order(DefaultEntitlementPlanHistoryOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *entitlementplanhistoryPager) orderExpr(query *EntitlementPlanHistoryQuery) 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 != DefaultEntitlementPlanHistoryOrder.Field { + b.Comma().Ident(DefaultEntitlementPlanHistoryOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to EntitlementPlanHistory. +func (eph *EntitlementPlanHistoryQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...EntitlementPlanHistoryPaginateOption, +) (*EntitlementPlanHistoryConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newEntitlementPlanHistoryPager(opts, last != nil) + if err != nil { + return nil, err + } + if eph, err = pager.applyFilter(eph); err != nil { + return nil, err + } + conn := &EntitlementPlanHistoryConnection{Edges: []*EntitlementPlanHistoryEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := eph.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if eph, err = pager.applyCursors(eph, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + eph.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := eph.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + eph = pager.applyOrder(eph) + nodes, err := eph.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +// EntitlementPlanHistoryOrderField defines the ordering field of EntitlementPlanHistory. +type EntitlementPlanHistoryOrderField struct { + // Value extracts the ordering value from the given EntitlementPlanHistory. + Value func(*EntitlementPlanHistory) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) entitlementplanhistory.OrderOption + toCursor func(*EntitlementPlanHistory) Cursor +} + +// EntitlementPlanHistoryOrder defines the ordering of EntitlementPlanHistory. +type EntitlementPlanHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *EntitlementPlanHistoryOrderField `json:"field"` +} + +// DefaultEntitlementPlanHistoryOrder is the default ordering of EntitlementPlanHistory. +var DefaultEntitlementPlanHistoryOrder = &EntitlementPlanHistoryOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &EntitlementPlanHistoryOrderField{ + Value: func(eph *EntitlementPlanHistory) (ent.Value, error) { + return eph.ID, nil + }, + column: entitlementplanhistory.FieldID, + toTerm: entitlementplanhistory.ByID, + toCursor: func(eph *EntitlementPlanHistory) Cursor { + return Cursor{ID: eph.ID} + }, + }, +} + +// ToEdge converts EntitlementPlanHistory into EntitlementPlanHistoryEdge. +func (eph *EntitlementPlanHistory) ToEdge(order *EntitlementPlanHistoryOrder) *EntitlementPlanHistoryEdge { + if order == nil { + order = DefaultEntitlementPlanHistoryOrder + } + return &EntitlementPlanHistoryEdge{ + Node: eph, + Cursor: order.Field.toCursor(eph), + } +} + +// EntityEdge is the edge representation of Entity. +type EntityEdge struct { + Node *Entity `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// EntityConnection is the connection containing edges to Entity. +type EntityConnection struct { + Edges []*EntityEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *EntityConnection) build(nodes []*Entity, pager *entityPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *Entity + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *Entity { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *Entity { + return nodes[i] + } + } + c.Edges = make([]*EntityEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &EntityEdge{ + 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) + } +} + +// EntityPaginateOption enables pagination customization. +type EntityPaginateOption func(*entityPager) error + +// WithEntityOrder configures pagination ordering. +func WithEntityOrder(order *EntityOrder) EntityPaginateOption { + if order == nil { + order = DefaultEntityOrder + } + o := *order + return func(pager *entityPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultEntityOrder.Field + } + pager.order = &o + return nil + } +} + +// WithEntityFilter configures pagination filter. +func WithEntityFilter(filter func(*EntityQuery) (*EntityQuery, error)) EntityPaginateOption { + return func(pager *entityPager) error { + if filter == nil { + return errors.New("EntityQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type entityPager struct { + reverse bool + order *EntityOrder + filter func(*EntityQuery) (*EntityQuery, error) +} + +func newEntityPager(opts []EntityPaginateOption, reverse bool) (*entityPager, error) { + pager := &entityPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultEntityOrder + } + return pager, nil +} + +func (p *entityPager) applyFilter(query *EntityQuery) (*EntityQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *entityPager) toCursor(e *Entity) Cursor { + return p.order.Field.toCursor(e) +} + +func (p *entityPager) applyCursors(query *EntityQuery, after, before *Cursor) (*EntityQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntityOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *entityPager) applyOrder(query *EntityQuery) *EntityQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultEntityOrder.Field { + query = query.Order(DefaultEntityOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *entityPager) orderExpr(query *EntityQuery) 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 != DefaultEntityOrder.Field { + b.Comma().Ident(DefaultEntityOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to Entity. +func (e *EntityQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...EntityPaginateOption, +) (*EntityConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newEntityPager(opts, last != nil) + if err != nil { + return nil, err + } + if e, err = pager.applyFilter(e); err != nil { + return nil, err + } + conn := &EntityConnection{Edges: []*EntityEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := e.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if e, err = pager.applyCursors(e, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + e.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := e.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + e = pager.applyOrder(e) + nodes, err := e.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +var ( + // EntityOrderFieldName orders Entity by name. + EntityOrderFieldName = &EntityOrderField{ + Value: func(e *Entity) (ent.Value, error) { + return e.Name, nil + }, + column: entity.FieldName, + toTerm: entity.ByName, + toCursor: func(e *Entity) Cursor { + return Cursor{ + ID: e.ID, + Value: e.Name, + } + }, + } + // EntityOrderFieldDisplayName orders Entity by display_name. + EntityOrderFieldDisplayName = &EntityOrderField{ + Value: func(e *Entity) (ent.Value, error) { + return e.DisplayName, nil + }, + column: entity.FieldDisplayName, + toTerm: entity.ByDisplayName, + toCursor: func(e *Entity) Cursor { + return Cursor{ + ID: e.ID, + Value: e.DisplayName, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f EntityOrderField) String() string { + var str string + switch f.column { + case EntityOrderFieldName.column: + str = "name" + case EntityOrderFieldDisplayName.column: + str = "display_name" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f EntityOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *EntityOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("EntityOrderField %T must be a string", v) + } + switch str { + case "name": + *f = *EntityOrderFieldName + case "display_name": + *f = *EntityOrderFieldDisplayName + default: + return fmt.Errorf("%s is not a valid EntityOrderField", str) + } + return nil +} + +// EntityOrderField defines the ordering field of Entity. +type EntityOrderField struct { + // Value extracts the ordering value from the given Entity. + Value func(*Entity) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) entity.OrderOption + toCursor func(*Entity) Cursor +} + +// EntityOrder defines the ordering of Entity. +type EntityOrder struct { + Direction OrderDirection `json:"direction"` + Field *EntityOrderField `json:"field"` +} + +// DefaultEntityOrder is the default ordering of Entity. +var DefaultEntityOrder = &EntityOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &EntityOrderField{ + Value: func(e *Entity) (ent.Value, error) { + return e.ID, nil + }, + column: entity.FieldID, + toTerm: entity.ByID, + toCursor: func(e *Entity) Cursor { + return Cursor{ID: e.ID} + }, + }, +} + +// ToEdge converts Entity into EntityEdge. +func (e *Entity) ToEdge(order *EntityOrder) *EntityEdge { + if order == nil { + order = DefaultEntityOrder + } + return &EntityEdge{ + Node: e, + Cursor: order.Field.toCursor(e), + } +} + +// EntityHistoryEdge is the edge representation of EntityHistory. +type EntityHistoryEdge struct { + Node *EntityHistory `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// EntityHistoryConnection is the connection containing edges to EntityHistory. +type EntityHistoryConnection struct { + Edges []*EntityHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *EntityHistoryConnection) build(nodes []*EntityHistory, pager *entityhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *EntityHistory + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *EntityHistory { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *EntityHistory { + return nodes[i] + } + } + c.Edges = make([]*EntityHistoryEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &EntityHistoryEdge{ + 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) + } +} + +// EntityHistoryPaginateOption enables pagination customization. +type EntityHistoryPaginateOption func(*entityhistoryPager) error + +// WithEntityHistoryOrder configures pagination ordering. +func WithEntityHistoryOrder(order *EntityHistoryOrder) EntityHistoryPaginateOption { + if order == nil { + order = DefaultEntityHistoryOrder + } + o := *order + return func(pager *entityhistoryPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultEntityHistoryOrder.Field + } + pager.order = &o + return nil + } +} + +// WithEntityHistoryFilter configures pagination filter. +func WithEntityHistoryFilter(filter func(*EntityHistoryQuery) (*EntityHistoryQuery, error)) EntityHistoryPaginateOption { + return func(pager *entityhistoryPager) error { + if filter == nil { + return errors.New("EntityHistoryQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type entityhistoryPager struct { + reverse bool + order *EntityHistoryOrder + filter func(*EntityHistoryQuery) (*EntityHistoryQuery, error) +} + +func newEntityHistoryPager(opts []EntityHistoryPaginateOption, reverse bool) (*entityhistoryPager, error) { + pager := &entityhistoryPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultEntityHistoryOrder + } + return pager, nil +} + +func (p *entityhistoryPager) applyFilter(query *EntityHistoryQuery) (*EntityHistoryQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *entityhistoryPager) toCursor(eh *EntityHistory) Cursor { + return p.order.Field.toCursor(eh) +} + +func (p *entityhistoryPager) applyCursors(query *EntityHistoryQuery, after, before *Cursor) (*EntityHistoryQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntityHistoryOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *entityhistoryPager) applyOrder(query *EntityHistoryQuery) *EntityHistoryQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultEntityHistoryOrder.Field { + query = query.Order(DefaultEntityHistoryOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *entityhistoryPager) orderExpr(query *EntityHistoryQuery) 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 != DefaultEntityHistoryOrder.Field { + b.Comma().Ident(DefaultEntityHistoryOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to EntityHistory. +func (eh *EntityHistoryQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...EntityHistoryPaginateOption, +) (*EntityHistoryConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newEntityHistoryPager(opts, last != nil) + if err != nil { + return nil, err + } + if eh, err = pager.applyFilter(eh); err != nil { + return nil, err + } + conn := &EntityHistoryConnection{Edges: []*EntityHistoryEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := eh.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if eh, err = pager.applyCursors(eh, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + eh.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := eh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + eh = pager.applyOrder(eh) + nodes, err := eh.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +var ( + // EntityHistoryOrderFieldName orders EntityHistory by name. + EntityHistoryOrderFieldName = &EntityHistoryOrderField{ + Value: func(eh *EntityHistory) (ent.Value, error) { + return eh.Name, nil + }, + column: entityhistory.FieldName, + toTerm: entityhistory.ByName, + toCursor: func(eh *EntityHistory) Cursor { + return Cursor{ + ID: eh.ID, + Value: eh.Name, + } + }, + } + // EntityHistoryOrderFieldDisplayName orders EntityHistory by display_name. + EntityHistoryOrderFieldDisplayName = &EntityHistoryOrderField{ + Value: func(eh *EntityHistory) (ent.Value, error) { + return eh.DisplayName, nil + }, + column: entityhistory.FieldDisplayName, + toTerm: entityhistory.ByDisplayName, + toCursor: func(eh *EntityHistory) Cursor { + return Cursor{ + ID: eh.ID, + Value: eh.DisplayName, + } + }, + } +) + +// String implement fmt.Stringer interface. func (f EntityHistoryOrderField) String() string { var str string switch f.column { - case EntityHistoryOrderFieldName.column: + case EntityHistoryOrderFieldName.column: + str = "name" + case EntityHistoryOrderFieldDisplayName.column: + str = "display_name" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f EntityHistoryOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *EntityHistoryOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("EntityHistoryOrderField %T must be a string", v) + } + switch str { + case "name": + *f = *EntityHistoryOrderFieldName + case "display_name": + *f = *EntityHistoryOrderFieldDisplayName + default: + return fmt.Errorf("%s is not a valid EntityHistoryOrderField", str) + } + return nil +} + +// EntityHistoryOrderField defines the ordering field of EntityHistory. +type EntityHistoryOrderField struct { + // Value extracts the ordering value from the given EntityHistory. + Value func(*EntityHistory) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) entityhistory.OrderOption + toCursor func(*EntityHistory) Cursor +} + +// EntityHistoryOrder defines the ordering of EntityHistory. +type EntityHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *EntityHistoryOrderField `json:"field"` +} + +// DefaultEntityHistoryOrder is the default ordering of EntityHistory. +var DefaultEntityHistoryOrder = &EntityHistoryOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &EntityHistoryOrderField{ + Value: func(eh *EntityHistory) (ent.Value, error) { + return eh.ID, nil + }, + column: entityhistory.FieldID, + toTerm: entityhistory.ByID, + toCursor: func(eh *EntityHistory) Cursor { + return Cursor{ID: eh.ID} + }, + }, +} + +// ToEdge converts EntityHistory into EntityHistoryEdge. +func (eh *EntityHistory) ToEdge(order *EntityHistoryOrder) *EntityHistoryEdge { + if order == nil { + order = DefaultEntityHistoryOrder + } + return &EntityHistoryEdge{ + Node: eh, + Cursor: order.Field.toCursor(eh), + } +} + +// EntityTypeEdge is the edge representation of EntityType. +type EntityTypeEdge struct { + Node *EntityType `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// EntityTypeConnection is the connection containing edges to EntityType. +type EntityTypeConnection struct { + Edges []*EntityTypeEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *EntityTypeConnection) build(nodes []*EntityType, pager *entitytypePager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *EntityType + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *EntityType { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *EntityType { + return nodes[i] + } + } + c.Edges = make([]*EntityTypeEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &EntityTypeEdge{ + 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) + } +} + +// EntityTypePaginateOption enables pagination customization. +type EntityTypePaginateOption func(*entitytypePager) error + +// WithEntityTypeOrder configures pagination ordering. +func WithEntityTypeOrder(order *EntityTypeOrder) EntityTypePaginateOption { + if order == nil { + order = DefaultEntityTypeOrder + } + o := *order + return func(pager *entitytypePager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultEntityTypeOrder.Field + } + pager.order = &o + return nil + } +} + +// WithEntityTypeFilter configures pagination filter. +func WithEntityTypeFilter(filter func(*EntityTypeQuery) (*EntityTypeQuery, error)) EntityTypePaginateOption { + return func(pager *entitytypePager) error { + if filter == nil { + return errors.New("EntityTypeQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type entitytypePager struct { + reverse bool + order *EntityTypeOrder + filter func(*EntityTypeQuery) (*EntityTypeQuery, error) +} + +func newEntityTypePager(opts []EntityTypePaginateOption, reverse bool) (*entitytypePager, error) { + pager := &entitytypePager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultEntityTypeOrder + } + return pager, nil +} + +func (p *entitytypePager) applyFilter(query *EntityTypeQuery) (*EntityTypeQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *entitytypePager) toCursor(et *EntityType) Cursor { + return p.order.Field.toCursor(et) +} + +func (p *entitytypePager) applyCursors(query *EntityTypeQuery, after, before *Cursor) (*EntityTypeQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntityTypeOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *entitytypePager) applyOrder(query *EntityTypeQuery) *EntityTypeQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultEntityTypeOrder.Field { + query = query.Order(DefaultEntityTypeOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *entitytypePager) orderExpr(query *EntityTypeQuery) 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 != DefaultEntityTypeOrder.Field { + b.Comma().Ident(DefaultEntityTypeOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to EntityType. +func (et *EntityTypeQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...EntityTypePaginateOption, +) (*EntityTypeConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newEntityTypePager(opts, last != nil) + if err != nil { + return nil, err + } + if et, err = pager.applyFilter(et); err != nil { + return nil, err + } + conn := &EntityTypeConnection{Edges: []*EntityTypeEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := et.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if et, err = pager.applyCursors(et, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + et.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := et.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + et = pager.applyOrder(et) + nodes, err := et.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +var ( + // EntityTypeOrderFieldName orders EntityType by name. + EntityTypeOrderFieldName = &EntityTypeOrderField{ + Value: func(et *EntityType) (ent.Value, error) { + return et.Name, nil + }, + column: entitytype.FieldName, + toTerm: entitytype.ByName, + toCursor: func(et *EntityType) Cursor { + return Cursor{ + ID: et.ID, + Value: et.Name, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f EntityTypeOrderField) String() string { + var str string + switch f.column { + case EntityTypeOrderFieldName.column: + str = "name" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f EntityTypeOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *EntityTypeOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("EntityTypeOrderField %T must be a string", v) + } + switch str { + case "name": + *f = *EntityTypeOrderFieldName + default: + return fmt.Errorf("%s is not a valid EntityTypeOrderField", str) + } + return nil +} + +// EntityTypeOrderField defines the ordering field of EntityType. +type EntityTypeOrderField struct { + // Value extracts the ordering value from the given EntityType. + Value func(*EntityType) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) entitytype.OrderOption + toCursor func(*EntityType) Cursor +} + +// EntityTypeOrder defines the ordering of EntityType. +type EntityTypeOrder struct { + Direction OrderDirection `json:"direction"` + Field *EntityTypeOrderField `json:"field"` +} + +// DefaultEntityTypeOrder is the default ordering of EntityType. +var DefaultEntityTypeOrder = &EntityTypeOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &EntityTypeOrderField{ + Value: func(et *EntityType) (ent.Value, error) { + return et.ID, nil + }, + column: entitytype.FieldID, + toTerm: entitytype.ByID, + toCursor: func(et *EntityType) Cursor { + return Cursor{ID: et.ID} + }, + }, +} + +// ToEdge converts EntityType into EntityTypeEdge. +func (et *EntityType) ToEdge(order *EntityTypeOrder) *EntityTypeEdge { + if order == nil { + order = DefaultEntityTypeOrder + } + return &EntityTypeEdge{ + Node: et, + Cursor: order.Field.toCursor(et), + } +} + +// EntityTypeHistoryEdge is the edge representation of EntityTypeHistory. +type EntityTypeHistoryEdge struct { + Node *EntityTypeHistory `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// EntityTypeHistoryConnection is the connection containing edges to EntityTypeHistory. +type EntityTypeHistoryConnection struct { + Edges []*EntityTypeHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *EntityTypeHistoryConnection) build(nodes []*EntityTypeHistory, pager *entitytypehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *EntityTypeHistory + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *EntityTypeHistory { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *EntityTypeHistory { + return nodes[i] + } + } + c.Edges = make([]*EntityTypeHistoryEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &EntityTypeHistoryEdge{ + 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) + } +} + +// EntityTypeHistoryPaginateOption enables pagination customization. +type EntityTypeHistoryPaginateOption func(*entitytypehistoryPager) error + +// WithEntityTypeHistoryOrder configures pagination ordering. +func WithEntityTypeHistoryOrder(order *EntityTypeHistoryOrder) EntityTypeHistoryPaginateOption { + if order == nil { + order = DefaultEntityTypeHistoryOrder + } + o := *order + return func(pager *entitytypehistoryPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultEntityTypeHistoryOrder.Field + } + pager.order = &o + return nil + } +} + +// WithEntityTypeHistoryFilter configures pagination filter. +func WithEntityTypeHistoryFilter(filter func(*EntityTypeHistoryQuery) (*EntityTypeHistoryQuery, error)) EntityTypeHistoryPaginateOption { + return func(pager *entitytypehistoryPager) error { + if filter == nil { + return errors.New("EntityTypeHistoryQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type entitytypehistoryPager struct { + reverse bool + order *EntityTypeHistoryOrder + filter func(*EntityTypeHistoryQuery) (*EntityTypeHistoryQuery, error) +} + +func newEntityTypeHistoryPager(opts []EntityTypeHistoryPaginateOption, reverse bool) (*entitytypehistoryPager, error) { + pager := &entitytypehistoryPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultEntityTypeHistoryOrder + } + return pager, nil +} + +func (p *entitytypehistoryPager) applyFilter(query *EntityTypeHistoryQuery) (*EntityTypeHistoryQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *entitytypehistoryPager) toCursor(eth *EntityTypeHistory) Cursor { + return p.order.Field.toCursor(eth) +} + +func (p *entitytypehistoryPager) applyCursors(query *EntityTypeHistoryQuery, after, before *Cursor) (*EntityTypeHistoryQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntityTypeHistoryOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *entitytypehistoryPager) applyOrder(query *EntityTypeHistoryQuery) *EntityTypeHistoryQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultEntityTypeHistoryOrder.Field { + query = query.Order(DefaultEntityTypeHistoryOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *entitytypehistoryPager) orderExpr(query *EntityTypeHistoryQuery) 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 != DefaultEntityTypeHistoryOrder.Field { + b.Comma().Ident(DefaultEntityTypeHistoryOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to EntityTypeHistory. +func (eth *EntityTypeHistoryQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...EntityTypeHistoryPaginateOption, +) (*EntityTypeHistoryConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newEntityTypeHistoryPager(opts, last != nil) + if err != nil { + return nil, err + } + if eth, err = pager.applyFilter(eth); err != nil { + return nil, err + } + conn := &EntityTypeHistoryConnection{Edges: []*EntityTypeHistoryEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := eth.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if eth, err = pager.applyCursors(eth, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + eth.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := eth.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + eth = pager.applyOrder(eth) + nodes, err := eth.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +var ( + // EntityTypeHistoryOrderFieldName orders EntityTypeHistory by name. + EntityTypeHistoryOrderFieldName = &EntityTypeHistoryOrderField{ + Value: func(eth *EntityTypeHistory) (ent.Value, error) { + return eth.Name, nil + }, + column: entitytypehistory.FieldName, + toTerm: entitytypehistory.ByName, + toCursor: func(eth *EntityTypeHistory) Cursor { + return Cursor{ + ID: eth.ID, + Value: eth.Name, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f EntityTypeHistoryOrderField) String() string { + var str string + switch f.column { + case EntityTypeHistoryOrderFieldName.column: + str = "name" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f EntityTypeHistoryOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *EntityTypeHistoryOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("EntityTypeHistoryOrderField %T must be a string", v) + } + switch str { + case "name": + *f = *EntityTypeHistoryOrderFieldName + default: + return fmt.Errorf("%s is not a valid EntityTypeHistoryOrderField", str) + } + return nil +} + +// EntityTypeHistoryOrderField defines the ordering field of EntityTypeHistory. +type EntityTypeHistoryOrderField struct { + // Value extracts the ordering value from the given EntityTypeHistory. + Value func(*EntityTypeHistory) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) entitytypehistory.OrderOption + toCursor func(*EntityTypeHistory) Cursor +} + +// EntityTypeHistoryOrder defines the ordering of EntityTypeHistory. +type EntityTypeHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *EntityTypeHistoryOrderField `json:"field"` +} + +// DefaultEntityTypeHistoryOrder is the default ordering of EntityTypeHistory. +var DefaultEntityTypeHistoryOrder = &EntityTypeHistoryOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &EntityTypeHistoryOrderField{ + Value: func(eth *EntityTypeHistory) (ent.Value, error) { + return eth.ID, nil + }, + column: entitytypehistory.FieldID, + toTerm: entitytypehistory.ByID, + toCursor: func(eth *EntityTypeHistory) Cursor { + return Cursor{ID: eth.ID} + }, + }, +} + +// ToEdge converts EntityTypeHistory into EntityTypeHistoryEdge. +func (eth *EntityTypeHistory) ToEdge(order *EntityTypeHistoryOrder) *EntityTypeHistoryEdge { + if order == nil { + order = DefaultEntityTypeHistoryOrder + } + return &EntityTypeHistoryEdge{ + Node: eth, + Cursor: order.Field.toCursor(eth), + } +} + +// EventEdge is the edge representation of Event. +type EventEdge struct { + Node *Event `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// EventConnection is the connection containing edges to Event. +type EventConnection struct { + Edges []*EventEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *EventConnection) build(nodes []*Event, pager *eventPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *Event + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *Event { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *Event { + return nodes[i] + } + } + c.Edges = make([]*EventEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &EventEdge{ + 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) + } +} + +// EventPaginateOption enables pagination customization. +type EventPaginateOption func(*eventPager) error + +// WithEventOrder configures pagination ordering. +func WithEventOrder(order *EventOrder) EventPaginateOption { + if order == nil { + order = DefaultEventOrder + } + o := *order + return func(pager *eventPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultEventOrder.Field + } + pager.order = &o + return nil + } +} + +// WithEventFilter configures pagination filter. +func WithEventFilter(filter func(*EventQuery) (*EventQuery, error)) EventPaginateOption { + return func(pager *eventPager) error { + if filter == nil { + return errors.New("EventQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type eventPager struct { + reverse bool + order *EventOrder + filter func(*EventQuery) (*EventQuery, error) +} + +func newEventPager(opts []EventPaginateOption, reverse bool) (*eventPager, error) { + pager := &eventPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultEventOrder + } + return pager, nil +} + +func (p *eventPager) applyFilter(query *EventQuery) (*EventQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *eventPager) toCursor(e *Event) Cursor { + return p.order.Field.toCursor(e) +} + +func (p *eventPager) applyCursors(query *EventQuery, after, before *Cursor) (*EventQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEventOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *eventPager) applyOrder(query *EventQuery) *EventQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultEventOrder.Field { + query = query.Order(DefaultEventOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *eventPager) orderExpr(query *EventQuery) 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 != DefaultEventOrder.Field { + b.Comma().Ident(DefaultEventOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to Event. +func (e *EventQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...EventPaginateOption, +) (*EventConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newEventPager(opts, last != nil) + if err != nil { + return nil, err + } + if e, err = pager.applyFilter(e); err != nil { + return nil, err + } + conn := &EventConnection{Edges: []*EventEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := e.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if e, err = pager.applyCursors(e, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + e.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := e.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + e = pager.applyOrder(e) + nodes, err := e.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +// EventOrderField defines the ordering field of Event. +type EventOrderField struct { + // Value extracts the ordering value from the given Event. + Value func(*Event) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) event.OrderOption + toCursor func(*Event) Cursor +} + +// EventOrder defines the ordering of Event. +type EventOrder struct { + Direction OrderDirection `json:"direction"` + Field *EventOrderField `json:"field"` +} + +// DefaultEventOrder is the default ordering of Event. +var DefaultEventOrder = &EventOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &EventOrderField{ + Value: func(e *Event) (ent.Value, error) { + return e.ID, nil + }, + column: event.FieldID, + toTerm: event.ByID, + toCursor: func(e *Event) Cursor { + return Cursor{ID: e.ID} + }, + }, +} + +// ToEdge converts Event into EventEdge. +func (e *Event) ToEdge(order *EventOrder) *EventEdge { + if order == nil { + order = DefaultEventOrder + } + return &EventEdge{ + Node: e, + Cursor: order.Field.toCursor(e), + } +} + +// EventHistoryEdge is the edge representation of EventHistory. +type EventHistoryEdge struct { + Node *EventHistory `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// EventHistoryConnection is the connection containing edges to EventHistory. +type EventHistoryConnection struct { + Edges []*EventHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *EventHistoryConnection) build(nodes []*EventHistory, pager *eventhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *EventHistory + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *EventHistory { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *EventHistory { + return nodes[i] + } + } + c.Edges = make([]*EventHistoryEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &EventHistoryEdge{ + 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) + } +} + +// EventHistoryPaginateOption enables pagination customization. +type EventHistoryPaginateOption func(*eventhistoryPager) error + +// WithEventHistoryOrder configures pagination ordering. +func WithEventHistoryOrder(order *EventHistoryOrder) EventHistoryPaginateOption { + if order == nil { + order = DefaultEventHistoryOrder + } + o := *order + return func(pager *eventhistoryPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultEventHistoryOrder.Field + } + pager.order = &o + return nil + } +} + +// WithEventHistoryFilter configures pagination filter. +func WithEventHistoryFilter(filter func(*EventHistoryQuery) (*EventHistoryQuery, error)) EventHistoryPaginateOption { + return func(pager *eventhistoryPager) error { + if filter == nil { + return errors.New("EventHistoryQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type eventhistoryPager struct { + reverse bool + order *EventHistoryOrder + filter func(*EventHistoryQuery) (*EventHistoryQuery, error) +} + +func newEventHistoryPager(opts []EventHistoryPaginateOption, reverse bool) (*eventhistoryPager, error) { + pager := &eventhistoryPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultEventHistoryOrder + } + return pager, nil +} + +func (p *eventhistoryPager) applyFilter(query *EventHistoryQuery) (*EventHistoryQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *eventhistoryPager) toCursor(eh *EventHistory) Cursor { + return p.order.Field.toCursor(eh) +} + +func (p *eventhistoryPager) applyCursors(query *EventHistoryQuery, after, before *Cursor) (*EventHistoryQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEventHistoryOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *eventhistoryPager) applyOrder(query *EventHistoryQuery) *EventHistoryQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultEventHistoryOrder.Field { + query = query.Order(DefaultEventHistoryOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *eventhistoryPager) orderExpr(query *EventHistoryQuery) 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 != DefaultEventHistoryOrder.Field { + b.Comma().Ident(DefaultEventHistoryOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to EventHistory. +func (eh *EventHistoryQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...EventHistoryPaginateOption, +) (*EventHistoryConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newEventHistoryPager(opts, last != nil) + if err != nil { + return nil, err + } + if eh, err = pager.applyFilter(eh); err != nil { + return nil, err + } + conn := &EventHistoryConnection{Edges: []*EventHistoryEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := eh.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if eh, err = pager.applyCursors(eh, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + eh.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := eh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + eh = pager.applyOrder(eh) + nodes, err := eh.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +// EventHistoryOrderField defines the ordering field of EventHistory. +type EventHistoryOrderField struct { + // Value extracts the ordering value from the given EventHistory. + Value func(*EventHistory) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) eventhistory.OrderOption + toCursor func(*EventHistory) Cursor +} + +// EventHistoryOrder defines the ordering of EventHistory. +type EventHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *EventHistoryOrderField `json:"field"` +} + +// DefaultEventHistoryOrder is the default ordering of EventHistory. +var DefaultEventHistoryOrder = &EventHistoryOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &EventHistoryOrderField{ + Value: func(eh *EventHistory) (ent.Value, error) { + return eh.ID, nil + }, + column: eventhistory.FieldID, + toTerm: eventhistory.ByID, + toCursor: func(eh *EventHistory) Cursor { + return Cursor{ID: eh.ID} + }, + }, +} + +// ToEdge converts EventHistory into EventHistoryEdge. +func (eh *EventHistory) ToEdge(order *EventHistoryOrder) *EventHistoryEdge { + if order == nil { + order = DefaultEventHistoryOrder + } + return &EventHistoryEdge{ + Node: eh, + Cursor: order.Field.toCursor(eh), + } +} + +// FeatureEdge is the edge representation of Feature. +type FeatureEdge struct { + Node *Feature `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// FeatureConnection is the connection containing edges to Feature. +type FeatureConnection struct { + Edges []*FeatureEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *FeatureConnection) build(nodes []*Feature, pager *featurePager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *Feature + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *Feature { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *Feature { + return nodes[i] + } + } + c.Edges = make([]*FeatureEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &FeatureEdge{ + 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) + } +} + +// FeaturePaginateOption enables pagination customization. +type FeaturePaginateOption func(*featurePager) error + +// WithFeatureOrder configures pagination ordering. +func WithFeatureOrder(order *FeatureOrder) FeaturePaginateOption { + if order == nil { + order = DefaultFeatureOrder + } + o := *order + return func(pager *featurePager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultFeatureOrder.Field + } + pager.order = &o + return nil + } +} + +// WithFeatureFilter configures pagination filter. +func WithFeatureFilter(filter func(*FeatureQuery) (*FeatureQuery, error)) FeaturePaginateOption { + return func(pager *featurePager) error { + if filter == nil { + return errors.New("FeatureQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type featurePager struct { + reverse bool + order *FeatureOrder + filter func(*FeatureQuery) (*FeatureQuery, error) +} + +func newFeaturePager(opts []FeaturePaginateOption, reverse bool) (*featurePager, error) { + pager := &featurePager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultFeatureOrder + } + return pager, nil +} + +func (p *featurePager) applyFilter(query *FeatureQuery) (*FeatureQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *featurePager) toCursor(f *Feature) Cursor { + return p.order.Field.toCursor(f) +} + +func (p *featurePager) applyCursors(query *FeatureQuery, after, before *Cursor) (*FeatureQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultFeatureOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *featurePager) applyOrder(query *FeatureQuery) *FeatureQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultFeatureOrder.Field { + query = query.Order(DefaultFeatureOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *featurePager) orderExpr(query *FeatureQuery) 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 != DefaultFeatureOrder.Field { + b.Comma().Ident(DefaultFeatureOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to Feature. +func (f *FeatureQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...FeaturePaginateOption, +) (*FeatureConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newFeaturePager(opts, last != nil) + if err != nil { + return nil, err + } + if f, err = pager.applyFilter(f); err != nil { + return nil, err + } + conn := &FeatureConnection{Edges: []*FeatureEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := f.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if f, err = pager.applyCursors(f, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + f.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := f.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + f = pager.applyOrder(f) + nodes, err := f.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +// FeatureOrderField defines the ordering field of Feature. +type FeatureOrderField struct { + // Value extracts the ordering value from the given Feature. + Value func(*Feature) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) feature.OrderOption + toCursor func(*Feature) Cursor +} + +// FeatureOrder defines the ordering of Feature. +type FeatureOrder struct { + Direction OrderDirection `json:"direction"` + Field *FeatureOrderField `json:"field"` +} + +// DefaultFeatureOrder is the default ordering of Feature. +var DefaultFeatureOrder = &FeatureOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &FeatureOrderField{ + Value: func(f *Feature) (ent.Value, error) { + return f.ID, nil + }, + column: feature.FieldID, + toTerm: feature.ByID, + toCursor: func(f *Feature) Cursor { + return Cursor{ID: f.ID} + }, + }, +} + +// ToEdge converts Feature into FeatureEdge. +func (f *Feature) ToEdge(order *FeatureOrder) *FeatureEdge { + if order == nil { + order = DefaultFeatureOrder + } + return &FeatureEdge{ + Node: f, + Cursor: order.Field.toCursor(f), + } +} + +// FeatureHistoryEdge is the edge representation of FeatureHistory. +type FeatureHistoryEdge struct { + Node *FeatureHistory `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// FeatureHistoryConnection is the connection containing edges to FeatureHistory. +type FeatureHistoryConnection struct { + Edges []*FeatureHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *FeatureHistoryConnection) build(nodes []*FeatureHistory, pager *featurehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *FeatureHistory + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *FeatureHistory { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *FeatureHistory { + return nodes[i] + } + } + c.Edges = make([]*FeatureHistoryEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &FeatureHistoryEdge{ + 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) + } +} + +// FeatureHistoryPaginateOption enables pagination customization. +type FeatureHistoryPaginateOption func(*featurehistoryPager) error + +// WithFeatureHistoryOrder configures pagination ordering. +func WithFeatureHistoryOrder(order *FeatureHistoryOrder) FeatureHistoryPaginateOption { + if order == nil { + order = DefaultFeatureHistoryOrder + } + o := *order + return func(pager *featurehistoryPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultFeatureHistoryOrder.Field + } + pager.order = &o + return nil + } +} + +// WithFeatureHistoryFilter configures pagination filter. +func WithFeatureHistoryFilter(filter func(*FeatureHistoryQuery) (*FeatureHistoryQuery, error)) FeatureHistoryPaginateOption { + return func(pager *featurehistoryPager) error { + if filter == nil { + return errors.New("FeatureHistoryQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type featurehistoryPager struct { + reverse bool + order *FeatureHistoryOrder + filter func(*FeatureHistoryQuery) (*FeatureHistoryQuery, error) +} + +func newFeatureHistoryPager(opts []FeatureHistoryPaginateOption, reverse bool) (*featurehistoryPager, error) { + pager := &featurehistoryPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultFeatureHistoryOrder + } + return pager, nil +} + +func (p *featurehistoryPager) applyFilter(query *FeatureHistoryQuery) (*FeatureHistoryQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *featurehistoryPager) toCursor(fh *FeatureHistory) Cursor { + return p.order.Field.toCursor(fh) +} + +func (p *featurehistoryPager) applyCursors(query *FeatureHistoryQuery, after, before *Cursor) (*FeatureHistoryQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultFeatureHistoryOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *featurehistoryPager) applyOrder(query *FeatureHistoryQuery) *FeatureHistoryQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultFeatureHistoryOrder.Field { + query = query.Order(DefaultFeatureHistoryOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *featurehistoryPager) orderExpr(query *FeatureHistoryQuery) 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 != DefaultFeatureHistoryOrder.Field { + b.Comma().Ident(DefaultFeatureHistoryOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to FeatureHistory. +func (fh *FeatureHistoryQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...FeatureHistoryPaginateOption, +) (*FeatureHistoryConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newFeatureHistoryPager(opts, last != nil) + if err != nil { + return nil, err + } + if fh, err = pager.applyFilter(fh); err != nil { + return nil, err + } + conn := &FeatureHistoryConnection{Edges: []*FeatureHistoryEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := fh.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if fh, err = pager.applyCursors(fh, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + fh.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := fh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + fh = pager.applyOrder(fh) + nodes, err := fh.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +// FeatureHistoryOrderField defines the ordering field of FeatureHistory. +type FeatureHistoryOrderField struct { + // Value extracts the ordering value from the given FeatureHistory. + Value func(*FeatureHistory) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) featurehistory.OrderOption + toCursor func(*FeatureHistory) Cursor +} + +// FeatureHistoryOrder defines the ordering of FeatureHistory. +type FeatureHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *FeatureHistoryOrderField `json:"field"` +} + +// DefaultFeatureHistoryOrder is the default ordering of FeatureHistory. +var DefaultFeatureHistoryOrder = &FeatureHistoryOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &FeatureHistoryOrderField{ + Value: func(fh *FeatureHistory) (ent.Value, error) { + return fh.ID, nil + }, + column: featurehistory.FieldID, + toTerm: featurehistory.ByID, + toCursor: func(fh *FeatureHistory) Cursor { + return Cursor{ID: fh.ID} + }, + }, +} + +// ToEdge converts FeatureHistory into FeatureHistoryEdge. +func (fh *FeatureHistory) ToEdge(order *FeatureHistoryOrder) *FeatureHistoryEdge { + if order == nil { + order = DefaultFeatureHistoryOrder + } + return &FeatureHistoryEdge{ + Node: fh, + Cursor: order.Field.toCursor(fh), + } +} + +// FileEdge is the edge representation of File. +type FileEdge struct { + Node *File `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// FileConnection is the connection containing edges to File. +type FileConnection struct { + Edges []*FileEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *FileConnection) build(nodes []*File, pager *filePager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *File + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *File { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *File { + return nodes[i] + } + } + c.Edges = make([]*FileEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &FileEdge{ + 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) + } +} + +// FilePaginateOption enables pagination customization. +type FilePaginateOption func(*filePager) error + +// WithFileOrder configures pagination ordering. +func WithFileOrder(order *FileOrder) FilePaginateOption { + if order == nil { + order = DefaultFileOrder + } + o := *order + return func(pager *filePager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultFileOrder.Field + } + pager.order = &o + return nil + } +} + +// WithFileFilter configures pagination filter. +func WithFileFilter(filter func(*FileQuery) (*FileQuery, error)) FilePaginateOption { + return func(pager *filePager) error { + if filter == nil { + return errors.New("FileQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type filePager struct { + reverse bool + order *FileOrder + filter func(*FileQuery) (*FileQuery, error) +} + +func newFilePager(opts []FilePaginateOption, reverse bool) (*filePager, error) { + pager := &filePager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultFileOrder + } + return pager, nil +} + +func (p *filePager) applyFilter(query *FileQuery) (*FileQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *filePager) toCursor(f *File) Cursor { + return p.order.Field.toCursor(f) +} + +func (p *filePager) applyCursors(query *FileQuery, after, before *Cursor) (*FileQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultFileOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *filePager) applyOrder(query *FileQuery) *FileQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultFileOrder.Field { + query = query.Order(DefaultFileOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *filePager) orderExpr(query *FileQuery) 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 != DefaultFileOrder.Field { + b.Comma().Ident(DefaultFileOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to File. +func (f *FileQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...FilePaginateOption, +) (*FileConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newFilePager(opts, last != nil) + if err != nil { + return nil, err + } + if f, err = pager.applyFilter(f); err != nil { + return nil, err + } + conn := &FileConnection{Edges: []*FileEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := f.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if f, err = pager.applyCursors(f, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + f.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := f.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + f = pager.applyOrder(f) + nodes, err := f.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +// FileOrderField defines the ordering field of File. +type FileOrderField struct { + // Value extracts the ordering value from the given File. + Value func(*File) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) file.OrderOption + toCursor func(*File) Cursor +} + +// FileOrder defines the ordering of File. +type FileOrder struct { + Direction OrderDirection `json:"direction"` + Field *FileOrderField `json:"field"` +} + +// DefaultFileOrder is the default ordering of File. +var DefaultFileOrder = &FileOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &FileOrderField{ + Value: func(f *File) (ent.Value, error) { + return f.ID, nil + }, + column: file.FieldID, + toTerm: file.ByID, + toCursor: func(f *File) Cursor { + return Cursor{ID: f.ID} + }, + }, +} + +// ToEdge converts File into FileEdge. +func (f *File) ToEdge(order *FileOrder) *FileEdge { + if order == nil { + order = DefaultFileOrder + } + return &FileEdge{ + Node: f, + Cursor: order.Field.toCursor(f), + } +} + +// FileHistoryEdge is the edge representation of FileHistory. +type FileHistoryEdge struct { + Node *FileHistory `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// FileHistoryConnection is the connection containing edges to FileHistory. +type FileHistoryConnection struct { + Edges []*FileHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *FileHistoryConnection) build(nodes []*FileHistory, pager *filehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *FileHistory + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *FileHistory { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *FileHistory { + return nodes[i] + } + } + c.Edges = make([]*FileHistoryEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &FileHistoryEdge{ + 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) + } +} + +// FileHistoryPaginateOption enables pagination customization. +type FileHistoryPaginateOption func(*filehistoryPager) error + +// WithFileHistoryOrder configures pagination ordering. +func WithFileHistoryOrder(order *FileHistoryOrder) FileHistoryPaginateOption { + if order == nil { + order = DefaultFileHistoryOrder + } + o := *order + return func(pager *filehistoryPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultFileHistoryOrder.Field + } + pager.order = &o + return nil + } +} + +// WithFileHistoryFilter configures pagination filter. +func WithFileHistoryFilter(filter func(*FileHistoryQuery) (*FileHistoryQuery, error)) FileHistoryPaginateOption { + return func(pager *filehistoryPager) error { + if filter == nil { + return errors.New("FileHistoryQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type filehistoryPager struct { + reverse bool + order *FileHistoryOrder + filter func(*FileHistoryQuery) (*FileHistoryQuery, error) +} + +func newFileHistoryPager(opts []FileHistoryPaginateOption, reverse bool) (*filehistoryPager, error) { + pager := &filehistoryPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultFileHistoryOrder + } + return pager, nil +} + +func (p *filehistoryPager) applyFilter(query *FileHistoryQuery) (*FileHistoryQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *filehistoryPager) toCursor(fh *FileHistory) Cursor { + return p.order.Field.toCursor(fh) +} + +func (p *filehistoryPager) applyCursors(query *FileHistoryQuery, after, before *Cursor) (*FileHistoryQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultFileHistoryOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *filehistoryPager) applyOrder(query *FileHistoryQuery) *FileHistoryQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultFileHistoryOrder.Field { + query = query.Order(DefaultFileHistoryOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *filehistoryPager) orderExpr(query *FileHistoryQuery) 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 != DefaultFileHistoryOrder.Field { + b.Comma().Ident(DefaultFileHistoryOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to FileHistory. +func (fh *FileHistoryQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...FileHistoryPaginateOption, +) (*FileHistoryConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newFileHistoryPager(opts, last != nil) + if err != nil { + return nil, err + } + if fh, err = pager.applyFilter(fh); err != nil { + return nil, err + } + conn := &FileHistoryConnection{Edges: []*FileHistoryEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := fh.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if fh, err = pager.applyCursors(fh, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + fh.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := fh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + fh = pager.applyOrder(fh) + nodes, err := fh.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +// FileHistoryOrderField defines the ordering field of FileHistory. +type FileHistoryOrderField struct { + // Value extracts the ordering value from the given FileHistory. + Value func(*FileHistory) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) filehistory.OrderOption + toCursor func(*FileHistory) Cursor +} + +// FileHistoryOrder defines the ordering of FileHistory. +type FileHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *FileHistoryOrderField `json:"field"` +} + +// DefaultFileHistoryOrder is the default ordering of FileHistory. +var DefaultFileHistoryOrder = &FileHistoryOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &FileHistoryOrderField{ + Value: func(fh *FileHistory) (ent.Value, error) { + return fh.ID, nil + }, + column: filehistory.FieldID, + toTerm: filehistory.ByID, + toCursor: func(fh *FileHistory) Cursor { + return Cursor{ID: fh.ID} + }, + }, +} + +// ToEdge converts FileHistory into FileHistoryEdge. +func (fh *FileHistory) ToEdge(order *FileHistoryOrder) *FileHistoryEdge { + if order == nil { + order = DefaultFileHistoryOrder + } + return &FileHistoryEdge{ + Node: fh, + Cursor: order.Field.toCursor(fh), + } +} + +// GroupEdge is the edge representation of Group. +type GroupEdge struct { + Node *Group `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// GroupConnection is the connection containing edges to Group. +type GroupConnection struct { + Edges []*GroupEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *GroupConnection) build(nodes []*Group, pager *groupPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *Group + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *Group { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *Group { + return nodes[i] + } + } + c.Edges = make([]*GroupEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &GroupEdge{ + 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) + } +} + +// GroupPaginateOption enables pagination customization. +type GroupPaginateOption func(*groupPager) error + +// WithGroupOrder configures pagination ordering. +func WithGroupOrder(order *GroupOrder) GroupPaginateOption { + if order == nil { + order = DefaultGroupOrder + } + o := *order + return func(pager *groupPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultGroupOrder.Field + } + pager.order = &o + return nil + } +} + +// WithGroupFilter configures pagination filter. +func WithGroupFilter(filter func(*GroupQuery) (*GroupQuery, error)) GroupPaginateOption { + return func(pager *groupPager) error { + if filter == nil { + return errors.New("GroupQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type groupPager struct { + reverse bool + order *GroupOrder + filter func(*GroupQuery) (*GroupQuery, error) +} + +func newGroupPager(opts []GroupPaginateOption, reverse bool) (*groupPager, error) { + pager := &groupPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultGroupOrder + } + return pager, nil +} + +func (p *groupPager) applyFilter(query *GroupQuery) (*GroupQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *groupPager) toCursor(gr *Group) Cursor { + return p.order.Field.toCursor(gr) +} + +func (p *groupPager) applyCursors(query *GroupQuery, after, before *Cursor) (*GroupQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultGroupOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *groupPager) applyOrder(query *GroupQuery) *GroupQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultGroupOrder.Field { + query = query.Order(DefaultGroupOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *groupPager) orderExpr(query *GroupQuery) 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 != DefaultGroupOrder.Field { + b.Comma().Ident(DefaultGroupOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to Group. +func (gr *GroupQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...GroupPaginateOption, +) (*GroupConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newGroupPager(opts, last != nil) + if err != nil { + return nil, err + } + if gr, err = pager.applyFilter(gr); err != nil { + return nil, err + } + conn := &GroupConnection{Edges: []*GroupEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := gr.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if gr, err = pager.applyCursors(gr, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + gr.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := gr.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + gr = pager.applyOrder(gr) + nodes, err := gr.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +var ( + // GroupOrderFieldName orders Group by name. + GroupOrderFieldName = &GroupOrderField{ + Value: func(gr *Group) (ent.Value, error) { + return gr.Name, nil + }, + column: group.FieldName, + toTerm: group.ByName, + toCursor: func(gr *Group) Cursor { + return Cursor{ + ID: gr.ID, + Value: gr.Name, + } + }, + } + // GroupOrderFieldDisplayName orders Group by display_name. + GroupOrderFieldDisplayName = &GroupOrderField{ + Value: func(gr *Group) (ent.Value, error) { + return gr.DisplayName, nil + }, + column: group.FieldDisplayName, + toTerm: group.ByDisplayName, + toCursor: func(gr *Group) Cursor { + return Cursor{ + ID: gr.ID, + Value: gr.DisplayName, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f GroupOrderField) String() string { + var str string + switch f.column { + case GroupOrderFieldName.column: + str = "name" + case GroupOrderFieldDisplayName.column: + str = "display_name" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f GroupOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *GroupOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("GroupOrderField %T must be a string", v) + } + switch str { + case "name": + *f = *GroupOrderFieldName + case "display_name": + *f = *GroupOrderFieldDisplayName + default: + return fmt.Errorf("%s is not a valid GroupOrderField", str) + } + return nil +} + +// GroupOrderField defines the ordering field of Group. +type GroupOrderField struct { + // Value extracts the ordering value from the given Group. + Value func(*Group) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) group.OrderOption + toCursor func(*Group) Cursor +} + +// GroupOrder defines the ordering of Group. +type GroupOrder struct { + Direction OrderDirection `json:"direction"` + Field *GroupOrderField `json:"field"` +} + +// DefaultGroupOrder is the default ordering of Group. +var DefaultGroupOrder = &GroupOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &GroupOrderField{ + Value: func(gr *Group) (ent.Value, error) { + return gr.ID, nil + }, + column: group.FieldID, + toTerm: group.ByID, + toCursor: func(gr *Group) Cursor { + return Cursor{ID: gr.ID} + }, + }, +} + +// ToEdge converts Group into GroupEdge. +func (gr *Group) ToEdge(order *GroupOrder) *GroupEdge { + if order == nil { + order = DefaultGroupOrder + } + return &GroupEdge{ + Node: gr, + Cursor: order.Field.toCursor(gr), + } +} + +// GroupHistoryEdge is the edge representation of GroupHistory. +type GroupHistoryEdge struct { + Node *GroupHistory `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// GroupHistoryConnection is the connection containing edges to GroupHistory. +type GroupHistoryConnection struct { + Edges []*GroupHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *GroupHistoryConnection) build(nodes []*GroupHistory, pager *grouphistoryPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *GroupHistory + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *GroupHistory { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *GroupHistory { + return nodes[i] + } + } + c.Edges = make([]*GroupHistoryEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &GroupHistoryEdge{ + 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) + } +} + +// GroupHistoryPaginateOption enables pagination customization. +type GroupHistoryPaginateOption func(*grouphistoryPager) error + +// WithGroupHistoryOrder configures pagination ordering. +func WithGroupHistoryOrder(order *GroupHistoryOrder) GroupHistoryPaginateOption { + if order == nil { + order = DefaultGroupHistoryOrder + } + o := *order + return func(pager *grouphistoryPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultGroupHistoryOrder.Field + } + pager.order = &o + return nil + } +} + +// WithGroupHistoryFilter configures pagination filter. +func WithGroupHistoryFilter(filter func(*GroupHistoryQuery) (*GroupHistoryQuery, error)) GroupHistoryPaginateOption { + return func(pager *grouphistoryPager) error { + if filter == nil { + return errors.New("GroupHistoryQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type grouphistoryPager struct { + reverse bool + order *GroupHistoryOrder + filter func(*GroupHistoryQuery) (*GroupHistoryQuery, error) +} + +func newGroupHistoryPager(opts []GroupHistoryPaginateOption, reverse bool) (*grouphistoryPager, error) { + pager := &grouphistoryPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultGroupHistoryOrder + } + return pager, nil +} + +func (p *grouphistoryPager) applyFilter(query *GroupHistoryQuery) (*GroupHistoryQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *grouphistoryPager) toCursor(gh *GroupHistory) Cursor { + return p.order.Field.toCursor(gh) +} + +func (p *grouphistoryPager) applyCursors(query *GroupHistoryQuery, after, before *Cursor) (*GroupHistoryQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultGroupHistoryOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *grouphistoryPager) applyOrder(query *GroupHistoryQuery) *GroupHistoryQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultGroupHistoryOrder.Field { + query = query.Order(DefaultGroupHistoryOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *grouphistoryPager) orderExpr(query *GroupHistoryQuery) 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 != DefaultGroupHistoryOrder.Field { + b.Comma().Ident(DefaultGroupHistoryOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to GroupHistory. +func (gh *GroupHistoryQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...GroupHistoryPaginateOption, +) (*GroupHistoryConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newGroupHistoryPager(opts, last != nil) + if err != nil { + return nil, err + } + if gh, err = pager.applyFilter(gh); err != nil { + return nil, err + } + conn := &GroupHistoryConnection{Edges: []*GroupHistoryEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := gh.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if gh, err = pager.applyCursors(gh, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + gh.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := gh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + gh = pager.applyOrder(gh) + nodes, err := gh.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +var ( + // GroupHistoryOrderFieldName orders GroupHistory by name. + GroupHistoryOrderFieldName = &GroupHistoryOrderField{ + Value: func(gh *GroupHistory) (ent.Value, error) { + return gh.Name, nil + }, + column: grouphistory.FieldName, + toTerm: grouphistory.ByName, + toCursor: func(gh *GroupHistory) Cursor { + return Cursor{ + ID: gh.ID, + Value: gh.Name, + } + }, + } + // GroupHistoryOrderFieldDisplayName orders GroupHistory by display_name. + GroupHistoryOrderFieldDisplayName = &GroupHistoryOrderField{ + Value: func(gh *GroupHistory) (ent.Value, error) { + return gh.DisplayName, nil + }, + column: grouphistory.FieldDisplayName, + toTerm: grouphistory.ByDisplayName, + toCursor: func(gh *GroupHistory) Cursor { + return Cursor{ + ID: gh.ID, + Value: gh.DisplayName, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f GroupHistoryOrderField) String() string { + var str string + switch f.column { + case GroupHistoryOrderFieldName.column: str = "name" - case EntityHistoryOrderFieldDisplayName.column: + case GroupHistoryOrderFieldDisplayName.column: str = "display_name" } - return str + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f GroupHistoryOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *GroupHistoryOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("GroupHistoryOrderField %T must be a string", v) + } + switch str { + case "name": + *f = *GroupHistoryOrderFieldName + case "display_name": + *f = *GroupHistoryOrderFieldDisplayName + default: + return fmt.Errorf("%s is not a valid GroupHistoryOrderField", str) + } + return nil +} + +// GroupHistoryOrderField defines the ordering field of GroupHistory. +type GroupHistoryOrderField struct { + // Value extracts the ordering value from the given GroupHistory. + Value func(*GroupHistory) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) grouphistory.OrderOption + toCursor func(*GroupHistory) Cursor +} + +// GroupHistoryOrder defines the ordering of GroupHistory. +type GroupHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *GroupHistoryOrderField `json:"field"` +} + +// DefaultGroupHistoryOrder is the default ordering of GroupHistory. +var DefaultGroupHistoryOrder = &GroupHistoryOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &GroupHistoryOrderField{ + Value: func(gh *GroupHistory) (ent.Value, error) { + return gh.ID, nil + }, + column: grouphistory.FieldID, + toTerm: grouphistory.ByID, + toCursor: func(gh *GroupHistory) Cursor { + return Cursor{ID: gh.ID} + }, + }, +} + +// ToEdge converts GroupHistory into GroupHistoryEdge. +func (gh *GroupHistory) ToEdge(order *GroupHistoryOrder) *GroupHistoryEdge { + if order == nil { + order = DefaultGroupHistoryOrder + } + return &GroupHistoryEdge{ + Node: gh, + Cursor: order.Field.toCursor(gh), + } +} + +// GroupMembershipEdge is the edge representation of GroupMembership. +type GroupMembershipEdge struct { + Node *GroupMembership `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// GroupMembershipConnection is the connection containing edges to GroupMembership. +type GroupMembershipConnection struct { + Edges []*GroupMembershipEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *GroupMembershipConnection) build(nodes []*GroupMembership, pager *groupmembershipPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *GroupMembership + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *GroupMembership { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *GroupMembership { + return nodes[i] + } + } + c.Edges = make([]*GroupMembershipEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &GroupMembershipEdge{ + 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) + } +} + +// GroupMembershipPaginateOption enables pagination customization. +type GroupMembershipPaginateOption func(*groupmembershipPager) error + +// WithGroupMembershipOrder configures pagination ordering. +func WithGroupMembershipOrder(order *GroupMembershipOrder) GroupMembershipPaginateOption { + if order == nil { + order = DefaultGroupMembershipOrder + } + o := *order + return func(pager *groupmembershipPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultGroupMembershipOrder.Field + } + pager.order = &o + return nil + } +} + +// WithGroupMembershipFilter configures pagination filter. +func WithGroupMembershipFilter(filter func(*GroupMembershipQuery) (*GroupMembershipQuery, error)) GroupMembershipPaginateOption { + return func(pager *groupmembershipPager) error { + if filter == nil { + return errors.New("GroupMembershipQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type groupmembershipPager struct { + reverse bool + order *GroupMembershipOrder + filter func(*GroupMembershipQuery) (*GroupMembershipQuery, error) +} + +func newGroupMembershipPager(opts []GroupMembershipPaginateOption, reverse bool) (*groupmembershipPager, error) { + pager := &groupmembershipPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultGroupMembershipOrder + } + return pager, nil +} + +func (p *groupmembershipPager) applyFilter(query *GroupMembershipQuery) (*GroupMembershipQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *groupmembershipPager) toCursor(gm *GroupMembership) Cursor { + return p.order.Field.toCursor(gm) +} + +func (p *groupmembershipPager) applyCursors(query *GroupMembershipQuery, after, before *Cursor) (*GroupMembershipQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultGroupMembershipOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *groupmembershipPager) applyOrder(query *GroupMembershipQuery) *GroupMembershipQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultGroupMembershipOrder.Field { + query = query.Order(DefaultGroupMembershipOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *groupmembershipPager) orderExpr(query *GroupMembershipQuery) 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 != DefaultGroupMembershipOrder.Field { + b.Comma().Ident(DefaultGroupMembershipOrder.Field.column).Pad().WriteString(string(direction)) + } + }) } -// MarshalGQL implements graphql.Marshaler interface. -func (f EntityHistoryOrderField) MarshalGQL(w io.Writer) { - io.WriteString(w, strconv.Quote(f.String())) +// Paginate executes the query and returns a relay based cursor connection to GroupMembership. +func (gm *GroupMembershipQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...GroupMembershipPaginateOption, +) (*GroupMembershipConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newGroupMembershipPager(opts, last != nil) + if err != nil { + return nil, err + } + if gm, err = pager.applyFilter(gm); err != nil { + return nil, err + } + conn := &GroupMembershipConnection{Edges: []*GroupMembershipEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := gm.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if gm, err = pager.applyCursors(gm, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + gm.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := gm.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + gm = pager.applyOrder(gm) + nodes, err := gm.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +// GroupMembershipOrderField defines the ordering field of GroupMembership. +type GroupMembershipOrderField struct { + // Value extracts the ordering value from the given GroupMembership. + Value func(*GroupMembership) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) groupmembership.OrderOption + toCursor func(*GroupMembership) Cursor +} + +// GroupMembershipOrder defines the ordering of GroupMembership. +type GroupMembershipOrder struct { + Direction OrderDirection `json:"direction"` + Field *GroupMembershipOrderField `json:"field"` +} + +// DefaultGroupMembershipOrder is the default ordering of GroupMembership. +var DefaultGroupMembershipOrder = &GroupMembershipOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &GroupMembershipOrderField{ + Value: func(gm *GroupMembership) (ent.Value, error) { + return gm.ID, nil + }, + column: groupmembership.FieldID, + toTerm: groupmembership.ByID, + toCursor: func(gm *GroupMembership) Cursor { + return Cursor{ID: gm.ID} + }, + }, +} + +// ToEdge converts GroupMembership into GroupMembershipEdge. +func (gm *GroupMembership) ToEdge(order *GroupMembershipOrder) *GroupMembershipEdge { + if order == nil { + order = DefaultGroupMembershipOrder + } + return &GroupMembershipEdge{ + Node: gm, + Cursor: order.Field.toCursor(gm), + } +} + +// GroupMembershipHistoryEdge is the edge representation of GroupMembershipHistory. +type GroupMembershipHistoryEdge struct { + Node *GroupMembershipHistory `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// GroupMembershipHistoryConnection is the connection containing edges to GroupMembershipHistory. +type GroupMembershipHistoryConnection struct { + Edges []*GroupMembershipHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *GroupMembershipHistoryConnection) build(nodes []*GroupMembershipHistory, pager *groupmembershiphistoryPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && *first+1 == len(nodes) { + c.PageInfo.HasNextPage = true + nodes = nodes[:len(nodes)-1] + } else if last != nil && *last+1 == len(nodes) { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:len(nodes)-1] + } + var nodeAt func(int) *GroupMembershipHistory + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *GroupMembershipHistory { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *GroupMembershipHistory { + return nodes[i] + } + } + c.Edges = make([]*GroupMembershipHistoryEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &GroupMembershipHistoryEdge{ + 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) + } +} + +// GroupMembershipHistoryPaginateOption enables pagination customization. +type GroupMembershipHistoryPaginateOption func(*groupmembershiphistoryPager) error + +// WithGroupMembershipHistoryOrder configures pagination ordering. +func WithGroupMembershipHistoryOrder(order *GroupMembershipHistoryOrder) GroupMembershipHistoryPaginateOption { + if order == nil { + order = DefaultGroupMembershipHistoryOrder + } + o := *order + return func(pager *groupmembershiphistoryPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultGroupMembershipHistoryOrder.Field + } + pager.order = &o + return nil + } +} + +// WithGroupMembershipHistoryFilter configures pagination filter. +func WithGroupMembershipHistoryFilter(filter func(*GroupMembershipHistoryQuery) (*GroupMembershipHistoryQuery, error)) GroupMembershipHistoryPaginateOption { + return func(pager *groupmembershiphistoryPager) error { + if filter == nil { + return errors.New("GroupMembershipHistoryQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type groupmembershiphistoryPager struct { + reverse bool + order *GroupMembershipHistoryOrder + filter func(*GroupMembershipHistoryQuery) (*GroupMembershipHistoryQuery, error) +} + +func newGroupMembershipHistoryPager(opts []GroupMembershipHistoryPaginateOption, reverse bool) (*groupmembershiphistoryPager, error) { + pager := &groupmembershiphistoryPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultGroupMembershipHistoryOrder + } + return pager, nil +} + +func (p *groupmembershiphistoryPager) applyFilter(query *GroupMembershipHistoryQuery) (*GroupMembershipHistoryQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *groupmembershiphistoryPager) toCursor(gmh *GroupMembershipHistory) Cursor { + return p.order.Field.toCursor(gmh) +} + +func (p *groupmembershiphistoryPager) applyCursors(query *GroupMembershipHistoryQuery, after, before *Cursor) (*GroupMembershipHistoryQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultGroupMembershipHistoryOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *groupmembershiphistoryPager) applyOrder(query *GroupMembershipHistoryQuery) *GroupMembershipHistoryQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultGroupMembershipHistoryOrder.Field { + query = query.Order(DefaultGroupMembershipHistoryOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *groupmembershiphistoryPager) orderExpr(query *GroupMembershipHistoryQuery) 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 != DefaultGroupMembershipHistoryOrder.Field { + b.Comma().Ident(DefaultGroupMembershipHistoryOrder.Field.column).Pad().WriteString(string(direction)) + } + }) } -// UnmarshalGQL implements graphql.Unmarshaler interface. -func (f *EntityHistoryOrderField) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("EntityHistoryOrderField %T must be a string", v) +// Paginate executes the query and returns a relay based cursor connection to GroupMembershipHistory. +func (gmh *GroupMembershipHistoryQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...GroupMembershipHistoryPaginateOption, +) (*GroupMembershipHistoryConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err } - switch str { - case "name": - *f = *EntityHistoryOrderFieldName - case "display_name": - *f = *EntityHistoryOrderFieldDisplayName - default: - return fmt.Errorf("%s is not a valid EntityHistoryOrderField", str) + pager, err := newGroupMembershipHistoryPager(opts, last != nil) + if err != nil { + return nil, err } - return nil + if gmh, err = pager.applyFilter(gmh); err != nil { + return nil, err + } + conn := &GroupMembershipHistoryConnection{Edges: []*GroupMembershipHistoryEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := gmh.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if gmh, err = pager.applyCursors(gmh, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + gmh.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := gmh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + gmh = pager.applyOrder(gmh) + nodes, err := gmh.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil } -// EntityHistoryOrderField defines the ordering field of EntityHistory. -type EntityHistoryOrderField struct { - // Value extracts the ordering value from the given EntityHistory. - Value func(*EntityHistory) (ent.Value, error) +// GroupMembershipHistoryOrderField defines the ordering field of GroupMembershipHistory. +type GroupMembershipHistoryOrderField struct { + // Value extracts the ordering value from the given GroupMembershipHistory. + Value func(*GroupMembershipHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) entityhistory.OrderOption - toCursor func(*EntityHistory) Cursor + toTerm func(...sql.OrderTermOption) groupmembershiphistory.OrderOption + toCursor func(*GroupMembershipHistory) Cursor } -// EntityHistoryOrder defines the ordering of EntityHistory. -type EntityHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *EntityHistoryOrderField `json:"field"` +// GroupMembershipHistoryOrder defines the ordering of GroupMembershipHistory. +type GroupMembershipHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *GroupMembershipHistoryOrderField `json:"field"` } -// DefaultEntityHistoryOrder is the default ordering of EntityHistory. -var DefaultEntityHistoryOrder = &EntityHistoryOrder{ +// DefaultGroupMembershipHistoryOrder is the default ordering of GroupMembershipHistory. +var DefaultGroupMembershipHistoryOrder = &GroupMembershipHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &EntityHistoryOrderField{ - Value: func(eh *EntityHistory) (ent.Value, error) { - return eh.ID, nil + Field: &GroupMembershipHistoryOrderField{ + Value: func(gmh *GroupMembershipHistory) (ent.Value, error) { + return gmh.ID, nil }, - column: entityhistory.FieldID, - toTerm: entityhistory.ByID, - toCursor: func(eh *EntityHistory) Cursor { - return Cursor{ID: eh.ID} + column: groupmembershiphistory.FieldID, + toTerm: groupmembershiphistory.ByID, + toCursor: func(gmh *GroupMembershipHistory) Cursor { + return Cursor{ID: gmh.ID} }, }, } -// ToEdge converts EntityHistory into EntityHistoryEdge. -func (eh *EntityHistory) ToEdge(order *EntityHistoryOrder) *EntityHistoryEdge { +// ToEdge converts GroupMembershipHistory into GroupMembershipHistoryEdge. +func (gmh *GroupMembershipHistory) ToEdge(order *GroupMembershipHistoryOrder) *GroupMembershipHistoryEdge { if order == nil { - order = DefaultEntityHistoryOrder + order = DefaultGroupMembershipHistoryOrder } - return &EntityHistoryEdge{ - Node: eh, - Cursor: order.Field.toCursor(eh), + return &GroupMembershipHistoryEdge{ + Node: gmh, + Cursor: order.Field.toCursor(gmh), } } -// EntityTypeEdge is the edge representation of EntityType. -type EntityTypeEdge struct { - Node *EntityType `json:"node"` - Cursor Cursor `json:"cursor"` +// GroupSettingEdge is the edge representation of GroupSetting. +type GroupSettingEdge struct { + Node *GroupSetting `json:"node"` + Cursor Cursor `json:"cursor"` } -// EntityTypeConnection is the connection containing edges to EntityType. -type EntityTypeConnection struct { - Edges []*EntityTypeEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// GroupSettingConnection is the connection containing edges to GroupSetting. +type GroupSettingConnection struct { + Edges []*GroupSettingEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *EntityTypeConnection) build(nodes []*EntityType, pager *entitytypePager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *GroupSettingConnection) build(nodes []*GroupSetting, pager *groupsettingPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -3541,21 +8265,21 @@ func (c *EntityTypeConnection) build(nodes []*EntityType, pager *entitytypePager c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *EntityType + var nodeAt func(int) *GroupSetting if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *EntityType { + nodeAt = func(i int) *GroupSetting { return nodes[n-i] } } else { - nodeAt = func(i int) *EntityType { + nodeAt = func(i int) *GroupSetting { return nodes[i] } } - c.Edges = make([]*EntityTypeEdge, len(nodes)) + c.Edges = make([]*GroupSettingEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &EntityTypeEdge{ + c.Edges[i] = &GroupSettingEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -3569,87 +8293,87 @@ func (c *EntityTypeConnection) build(nodes []*EntityType, pager *entitytypePager } } -// EntityTypePaginateOption enables pagination customization. -type EntityTypePaginateOption func(*entitytypePager) error +// GroupSettingPaginateOption enables pagination customization. +type GroupSettingPaginateOption func(*groupsettingPager) error -// WithEntityTypeOrder configures pagination ordering. -func WithEntityTypeOrder(order *EntityTypeOrder) EntityTypePaginateOption { +// WithGroupSettingOrder configures pagination ordering. +func WithGroupSettingOrder(order *GroupSettingOrder) GroupSettingPaginateOption { if order == nil { - order = DefaultEntityTypeOrder + order = DefaultGroupSettingOrder } o := *order - return func(pager *entitytypePager) error { + return func(pager *groupsettingPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultEntityTypeOrder.Field + o.Field = DefaultGroupSettingOrder.Field } pager.order = &o return nil } } -// WithEntityTypeFilter configures pagination filter. -func WithEntityTypeFilter(filter func(*EntityTypeQuery) (*EntityTypeQuery, error)) EntityTypePaginateOption { - return func(pager *entitytypePager) error { +// WithGroupSettingFilter configures pagination filter. +func WithGroupSettingFilter(filter func(*GroupSettingQuery) (*GroupSettingQuery, error)) GroupSettingPaginateOption { + return func(pager *groupsettingPager) error { if filter == nil { - return errors.New("EntityTypeQuery filter cannot be nil") + return errors.New("GroupSettingQuery filter cannot be nil") } pager.filter = filter return nil } } -type entitytypePager struct { +type groupsettingPager struct { reverse bool - order *EntityTypeOrder - filter func(*EntityTypeQuery) (*EntityTypeQuery, error) + order *GroupSettingOrder + filter func(*GroupSettingQuery) (*GroupSettingQuery, error) } -func newEntityTypePager(opts []EntityTypePaginateOption, reverse bool) (*entitytypePager, error) { - pager := &entitytypePager{reverse: reverse} +func newGroupSettingPager(opts []GroupSettingPaginateOption, reverse bool) (*groupsettingPager, error) { + pager := &groupsettingPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultEntityTypeOrder + pager.order = DefaultGroupSettingOrder } return pager, nil } -func (p *entitytypePager) applyFilter(query *EntityTypeQuery) (*EntityTypeQuery, error) { +func (p *groupsettingPager) applyFilter(query *GroupSettingQuery) (*GroupSettingQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *entitytypePager) toCursor(et *EntityType) Cursor { - return p.order.Field.toCursor(et) +func (p *groupsettingPager) toCursor(gs *GroupSetting) Cursor { + return p.order.Field.toCursor(gs) } -func (p *entitytypePager) applyCursors(query *EntityTypeQuery, after, before *Cursor) (*EntityTypeQuery, error) { +func (p *groupsettingPager) applyCursors(query *GroupSettingQuery, after, before *Cursor) (*GroupSettingQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntityTypeOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultGroupSettingOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *entitytypePager) applyOrder(query *EntityTypeQuery) *EntityTypeQuery { +func (p *groupsettingPager) applyOrder(query *GroupSettingQuery) *GroupSettingQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultEntityTypeOrder.Field { - query = query.Order(DefaultEntityTypeOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultGroupSettingOrder.Field { + query = query.Order(DefaultGroupSettingOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -3657,7 +8381,7 @@ func (p *entitytypePager) applyOrder(query *EntityTypeQuery) *EntityTypeQuery { return query } -func (p *entitytypePager) orderExpr(query *EntityTypeQuery) sql.Querier { +func (p *groupsettingPager) orderExpr(query *GroupSettingQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -3667,33 +8391,33 @@ func (p *entitytypePager) orderExpr(query *EntityTypeQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultEntityTypeOrder.Field { - b.Comma().Ident(DefaultEntityTypeOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultGroupSettingOrder.Field { + b.Comma().Ident(DefaultGroupSettingOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to EntityType. -func (et *EntityTypeQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to GroupSetting. +func (gs *GroupSettingQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...EntityTypePaginateOption, -) (*EntityTypeConnection, error) { + before *Cursor, last *int, opts ...GroupSettingPaginateOption, +) (*GroupSettingConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newEntityTypePager(opts, last != nil) + pager, err := newGroupSettingPager(opts, last != nil) if err != nil { return nil, err } - if et, err = pager.applyFilter(et); err != nil { + if gs, err = pager.applyFilter(gs); err != nil { return nil, err } - conn := &EntityTypeConnection{Edges: []*EntityTypeEdge{}} + conn := &GroupSettingConnection{Edges: []*GroupSettingEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := et.Clone() + c := gs.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -3705,129 +8429,82 @@ func (et *EntityTypeQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if et, err = pager.applyCursors(et, after, before); err != nil { - return nil, err - } - limit := paginateLimit(first, last) - if limit != 0 { - et.Limit(limit) - } - if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := et.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { - return nil, err - } - } - et = pager.applyOrder(et) - nodes, err := et.All(ctx) - if err != nil { - return nil, err - } - conn.build(nodes, pager, after, first, before, last) - return conn, nil -} - -var ( - // EntityTypeOrderFieldName orders EntityType by name. - EntityTypeOrderFieldName = &EntityTypeOrderField{ - Value: func(et *EntityType) (ent.Value, error) { - return et.Name, nil - }, - column: entitytype.FieldName, - toTerm: entitytype.ByName, - toCursor: func(et *EntityType) Cursor { - return Cursor{ - ID: et.ID, - Value: et.Name, - } - }, - } -) - -// String implement fmt.Stringer interface. -func (f EntityTypeOrderField) String() string { - var str string - switch f.column { - case EntityTypeOrderFieldName.column: - str = "name" + if gs, err = pager.applyCursors(gs, after, before); err != nil { + return nil, err } - return str -} - -// MarshalGQL implements graphql.Marshaler interface. -func (f EntityTypeOrderField) MarshalGQL(w io.Writer) { - io.WriteString(w, strconv.Quote(f.String())) -} - -// UnmarshalGQL implements graphql.Unmarshaler interface. -func (f *EntityTypeOrderField) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("EntityTypeOrderField %T must be a string", v) + limit := paginateLimit(first, last) + if limit != 0 { + gs.Limit(limit) } - switch str { - case "name": - *f = *EntityTypeOrderFieldName - default: - return fmt.Errorf("%s is not a valid EntityTypeOrderField", str) + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := gs.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } } - return nil + gs = pager.applyOrder(gs) + nodes, err := gs.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil } -// EntityTypeOrderField defines the ordering field of EntityType. -type EntityTypeOrderField struct { - // Value extracts the ordering value from the given EntityType. - Value func(*EntityType) (ent.Value, error) +// GroupSettingOrderField defines the ordering field of GroupSetting. +type GroupSettingOrderField struct { + // Value extracts the ordering value from the given GroupSetting. + Value func(*GroupSetting) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) entitytype.OrderOption - toCursor func(*EntityType) Cursor + toTerm func(...sql.OrderTermOption) groupsetting.OrderOption + toCursor func(*GroupSetting) Cursor } -// EntityTypeOrder defines the ordering of EntityType. -type EntityTypeOrder struct { - Direction OrderDirection `json:"direction"` - Field *EntityTypeOrderField `json:"field"` +// GroupSettingOrder defines the ordering of GroupSetting. +type GroupSettingOrder struct { + Direction OrderDirection `json:"direction"` + Field *GroupSettingOrderField `json:"field"` } -// DefaultEntityTypeOrder is the default ordering of EntityType. -var DefaultEntityTypeOrder = &EntityTypeOrder{ +// DefaultGroupSettingOrder is the default ordering of GroupSetting. +var DefaultGroupSettingOrder = &GroupSettingOrder{ Direction: entgql.OrderDirectionAsc, - Field: &EntityTypeOrderField{ - Value: func(et *EntityType) (ent.Value, error) { - return et.ID, nil + Field: &GroupSettingOrderField{ + Value: func(gs *GroupSetting) (ent.Value, error) { + return gs.ID, nil }, - column: entitytype.FieldID, - toTerm: entitytype.ByID, - toCursor: func(et *EntityType) Cursor { - return Cursor{ID: et.ID} + column: groupsetting.FieldID, + toTerm: groupsetting.ByID, + toCursor: func(gs *GroupSetting) Cursor { + return Cursor{ID: gs.ID} }, }, } -// ToEdge converts EntityType into EntityTypeEdge. -func (et *EntityType) ToEdge(order *EntityTypeOrder) *EntityTypeEdge { +// ToEdge converts GroupSetting into GroupSettingEdge. +func (gs *GroupSetting) ToEdge(order *GroupSettingOrder) *GroupSettingEdge { if order == nil { - order = DefaultEntityTypeOrder + order = DefaultGroupSettingOrder } - return &EntityTypeEdge{ - Node: et, - Cursor: order.Field.toCursor(et), + return &GroupSettingEdge{ + Node: gs, + Cursor: order.Field.toCursor(gs), } } -// EntityTypeHistoryEdge is the edge representation of EntityTypeHistory. -type EntityTypeHistoryEdge struct { - Node *EntityTypeHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// GroupSettingHistoryEdge is the edge representation of GroupSettingHistory. +type GroupSettingHistoryEdge struct { + Node *GroupSettingHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// EntityTypeHistoryConnection is the connection containing edges to EntityTypeHistory. -type EntityTypeHistoryConnection struct { - Edges []*EntityTypeHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// GroupSettingHistoryConnection is the connection containing edges to GroupSettingHistory. +type GroupSettingHistoryConnection struct { + Edges []*GroupSettingHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *EntityTypeHistoryConnection) build(nodes []*EntityTypeHistory, pager *entitytypehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *GroupSettingHistoryConnection) build(nodes []*GroupSettingHistory, pager *groupsettinghistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -3837,21 +8514,21 @@ func (c *EntityTypeHistoryConnection) build(nodes []*EntityTypeHistory, pager *e c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *EntityTypeHistory + var nodeAt func(int) *GroupSettingHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *EntityTypeHistory { + nodeAt = func(i int) *GroupSettingHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *EntityTypeHistory { + nodeAt = func(i int) *GroupSettingHistory { return nodes[i] } } - c.Edges = make([]*EntityTypeHistoryEdge, len(nodes)) + c.Edges = make([]*GroupSettingHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &EntityTypeHistoryEdge{ + c.Edges[i] = &GroupSettingHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -3865,87 +8542,87 @@ func (c *EntityTypeHistoryConnection) build(nodes []*EntityTypeHistory, pager *e } } -// EntityTypeHistoryPaginateOption enables pagination customization. -type EntityTypeHistoryPaginateOption func(*entitytypehistoryPager) error +// GroupSettingHistoryPaginateOption enables pagination customization. +type GroupSettingHistoryPaginateOption func(*groupsettinghistoryPager) error -// WithEntityTypeHistoryOrder configures pagination ordering. -func WithEntityTypeHistoryOrder(order *EntityTypeHistoryOrder) EntityTypeHistoryPaginateOption { +// WithGroupSettingHistoryOrder configures pagination ordering. +func WithGroupSettingHistoryOrder(order *GroupSettingHistoryOrder) GroupSettingHistoryPaginateOption { if order == nil { - order = DefaultEntityTypeHistoryOrder + order = DefaultGroupSettingHistoryOrder } o := *order - return func(pager *entitytypehistoryPager) error { + return func(pager *groupsettinghistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultEntityTypeHistoryOrder.Field + o.Field = DefaultGroupSettingHistoryOrder.Field } pager.order = &o return nil } } -// WithEntityTypeHistoryFilter configures pagination filter. -func WithEntityTypeHistoryFilter(filter func(*EntityTypeHistoryQuery) (*EntityTypeHistoryQuery, error)) EntityTypeHistoryPaginateOption { - return func(pager *entitytypehistoryPager) error { +// WithGroupSettingHistoryFilter configures pagination filter. +func WithGroupSettingHistoryFilter(filter func(*GroupSettingHistoryQuery) (*GroupSettingHistoryQuery, error)) GroupSettingHistoryPaginateOption { + return func(pager *groupsettinghistoryPager) error { if filter == nil { - return errors.New("EntityTypeHistoryQuery filter cannot be nil") + return errors.New("GroupSettingHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type entitytypehistoryPager struct { +type groupsettinghistoryPager struct { reverse bool - order *EntityTypeHistoryOrder - filter func(*EntityTypeHistoryQuery) (*EntityTypeHistoryQuery, error) + order *GroupSettingHistoryOrder + filter func(*GroupSettingHistoryQuery) (*GroupSettingHistoryQuery, error) } -func newEntityTypeHistoryPager(opts []EntityTypeHistoryPaginateOption, reverse bool) (*entitytypehistoryPager, error) { - pager := &entitytypehistoryPager{reverse: reverse} +func newGroupSettingHistoryPager(opts []GroupSettingHistoryPaginateOption, reverse bool) (*groupsettinghistoryPager, error) { + pager := &groupsettinghistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultEntityTypeHistoryOrder + pager.order = DefaultGroupSettingHistoryOrder } return pager, nil } -func (p *entitytypehistoryPager) applyFilter(query *EntityTypeHistoryQuery) (*EntityTypeHistoryQuery, error) { +func (p *groupsettinghistoryPager) applyFilter(query *GroupSettingHistoryQuery) (*GroupSettingHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *entitytypehistoryPager) toCursor(eth *EntityTypeHistory) Cursor { - return p.order.Field.toCursor(eth) +func (p *groupsettinghistoryPager) toCursor(gsh *GroupSettingHistory) Cursor { + return p.order.Field.toCursor(gsh) } -func (p *entitytypehistoryPager) applyCursors(query *EntityTypeHistoryQuery, after, before *Cursor) (*EntityTypeHistoryQuery, error) { +func (p *groupsettinghistoryPager) applyCursors(query *GroupSettingHistoryQuery, after, before *Cursor) (*GroupSettingHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEntityTypeHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultGroupSettingHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *entitytypehistoryPager) applyOrder(query *EntityTypeHistoryQuery) *EntityTypeHistoryQuery { +func (p *groupsettinghistoryPager) applyOrder(query *GroupSettingHistoryQuery) *GroupSettingHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultEntityTypeHistoryOrder.Field { - query = query.Order(DefaultEntityTypeHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultGroupSettingHistoryOrder.Field { + query = query.Order(DefaultGroupSettingHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -3953,7 +8630,7 @@ func (p *entitytypehistoryPager) applyOrder(query *EntityTypeHistoryQuery) *Enti return query } -func (p *entitytypehistoryPager) orderExpr(query *EntityTypeHistoryQuery) sql.Querier { +func (p *groupsettinghistoryPager) orderExpr(query *GroupSettingHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -3963,33 +8640,33 @@ func (p *entitytypehistoryPager) orderExpr(query *EntityTypeHistoryQuery) sql.Qu } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultEntityTypeHistoryOrder.Field { - b.Comma().Ident(DefaultEntityTypeHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultGroupSettingHistoryOrder.Field { + b.Comma().Ident(DefaultGroupSettingHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to EntityTypeHistory. -func (eth *EntityTypeHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to GroupSettingHistory. +func (gsh *GroupSettingHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...EntityTypeHistoryPaginateOption, -) (*EntityTypeHistoryConnection, error) { + before *Cursor, last *int, opts ...GroupSettingHistoryPaginateOption, +) (*GroupSettingHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newEntityTypeHistoryPager(opts, last != nil) + pager, err := newGroupSettingHistoryPager(opts, last != nil) if err != nil { return nil, err } - if eth, err = pager.applyFilter(eth); err != nil { + if gsh, err = pager.applyFilter(gsh); err != nil { return nil, err } - conn := &EntityTypeHistoryConnection{Edges: []*EntityTypeHistoryEdge{}} + conn := &GroupSettingHistoryConnection{Edges: []*GroupSettingHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := eth.Clone() + c := gsh.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -4001,20 +8678,20 @@ func (eth *EntityTypeHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if eth, err = pager.applyCursors(eth, after, before); err != nil { + if gsh, err = pager.applyCursors(gsh, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - eth.Limit(limit) + gsh.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := eth.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := gsh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - eth = pager.applyOrder(eth) - nodes, err := eth.All(ctx) + gsh = pager.applyOrder(gsh) + nodes, err := gsh.All(ctx) if err != nil { return nil, err } @@ -4022,108 +8699,61 @@ func (eth *EntityTypeHistoryQuery) Paginate( return conn, nil } -var ( - // EntityTypeHistoryOrderFieldName orders EntityTypeHistory by name. - EntityTypeHistoryOrderFieldName = &EntityTypeHistoryOrderField{ - Value: func(eth *EntityTypeHistory) (ent.Value, error) { - return eth.Name, nil - }, - column: entitytypehistory.FieldName, - toTerm: entitytypehistory.ByName, - toCursor: func(eth *EntityTypeHistory) Cursor { - return Cursor{ - ID: eth.ID, - Value: eth.Name, - } - }, - } -) - -// String implement fmt.Stringer interface. -func (f EntityTypeHistoryOrderField) String() string { - var str string - switch f.column { - case EntityTypeHistoryOrderFieldName.column: - str = "name" - } - return str -} - -// MarshalGQL implements graphql.Marshaler interface. -func (f EntityTypeHistoryOrderField) MarshalGQL(w io.Writer) { - io.WriteString(w, strconv.Quote(f.String())) -} - -// UnmarshalGQL implements graphql.Unmarshaler interface. -func (f *EntityTypeHistoryOrderField) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("EntityTypeHistoryOrderField %T must be a string", v) - } - switch str { - case "name": - *f = *EntityTypeHistoryOrderFieldName - default: - return fmt.Errorf("%s is not a valid EntityTypeHistoryOrderField", str) - } - return nil -} - -// EntityTypeHistoryOrderField defines the ordering field of EntityTypeHistory. -type EntityTypeHistoryOrderField struct { - // Value extracts the ordering value from the given EntityTypeHistory. - Value func(*EntityTypeHistory) (ent.Value, error) +// GroupSettingHistoryOrderField defines the ordering field of GroupSettingHistory. +type GroupSettingHistoryOrderField struct { + // Value extracts the ordering value from the given GroupSettingHistory. + Value func(*GroupSettingHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) entitytypehistory.OrderOption - toCursor func(*EntityTypeHistory) Cursor + toTerm func(...sql.OrderTermOption) groupsettinghistory.OrderOption + toCursor func(*GroupSettingHistory) Cursor } -// EntityTypeHistoryOrder defines the ordering of EntityTypeHistory. -type EntityTypeHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *EntityTypeHistoryOrderField `json:"field"` +// GroupSettingHistoryOrder defines the ordering of GroupSettingHistory. +type GroupSettingHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *GroupSettingHistoryOrderField `json:"field"` } -// DefaultEntityTypeHistoryOrder is the default ordering of EntityTypeHistory. -var DefaultEntityTypeHistoryOrder = &EntityTypeHistoryOrder{ +// DefaultGroupSettingHistoryOrder is the default ordering of GroupSettingHistory. +var DefaultGroupSettingHistoryOrder = &GroupSettingHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &EntityTypeHistoryOrderField{ - Value: func(eth *EntityTypeHistory) (ent.Value, error) { - return eth.ID, nil + Field: &GroupSettingHistoryOrderField{ + Value: func(gsh *GroupSettingHistory) (ent.Value, error) { + return gsh.ID, nil }, - column: entitytypehistory.FieldID, - toTerm: entitytypehistory.ByID, - toCursor: func(eth *EntityTypeHistory) Cursor { - return Cursor{ID: eth.ID} + column: groupsettinghistory.FieldID, + toTerm: groupsettinghistory.ByID, + toCursor: func(gsh *GroupSettingHistory) Cursor { + return Cursor{ID: gsh.ID} }, }, } -// ToEdge converts EntityTypeHistory into EntityTypeHistoryEdge. -func (eth *EntityTypeHistory) ToEdge(order *EntityTypeHistoryOrder) *EntityTypeHistoryEdge { +// ToEdge converts GroupSettingHistory into GroupSettingHistoryEdge. +func (gsh *GroupSettingHistory) ToEdge(order *GroupSettingHistoryOrder) *GroupSettingHistoryEdge { if order == nil { - order = DefaultEntityTypeHistoryOrder + order = DefaultGroupSettingHistoryOrder } - return &EntityTypeHistoryEdge{ - Node: eth, - Cursor: order.Field.toCursor(eth), + return &GroupSettingHistoryEdge{ + Node: gsh, + Cursor: order.Field.toCursor(gsh), } } -// EventEdge is the edge representation of Event. -type EventEdge struct { - Node *Event `json:"node"` +// HushEdge is the edge representation of Hush. +type HushEdge struct { + Node *Hush `json:"node"` Cursor Cursor `json:"cursor"` } -// EventConnection is the connection containing edges to Event. -type EventConnection struct { - Edges []*EventEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// HushConnection is the connection containing edges to Hush. +type HushConnection struct { + Edges []*HushEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *EventConnection) build(nodes []*Event, pager *eventPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *HushConnection) build(nodes []*Hush, pager *hushPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -4133,21 +8763,21 @@ func (c *EventConnection) build(nodes []*Event, pager *eventPager, after *Cursor c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *Event + var nodeAt func(int) *Hush if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *Event { + nodeAt = func(i int) *Hush { return nodes[n-i] } } else { - nodeAt = func(i int) *Event { + nodeAt = func(i int) *Hush { return nodes[i] } } - c.Edges = make([]*EventEdge, len(nodes)) + c.Edges = make([]*HushEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &EventEdge{ + c.Edges[i] = &HushEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -4161,87 +8791,87 @@ func (c *EventConnection) build(nodes []*Event, pager *eventPager, after *Cursor } } -// EventPaginateOption enables pagination customization. -type EventPaginateOption func(*eventPager) error +// HushPaginateOption enables pagination customization. +type HushPaginateOption func(*hushPager) error -// WithEventOrder configures pagination ordering. -func WithEventOrder(order *EventOrder) EventPaginateOption { +// WithHushOrder configures pagination ordering. +func WithHushOrder(order *HushOrder) HushPaginateOption { if order == nil { - order = DefaultEventOrder + order = DefaultHushOrder } o := *order - return func(pager *eventPager) error { + return func(pager *hushPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultEventOrder.Field + o.Field = DefaultHushOrder.Field } pager.order = &o return nil } } -// WithEventFilter configures pagination filter. -func WithEventFilter(filter func(*EventQuery) (*EventQuery, error)) EventPaginateOption { - return func(pager *eventPager) error { +// WithHushFilter configures pagination filter. +func WithHushFilter(filter func(*HushQuery) (*HushQuery, error)) HushPaginateOption { + return func(pager *hushPager) error { if filter == nil { - return errors.New("EventQuery filter cannot be nil") + return errors.New("HushQuery filter cannot be nil") } pager.filter = filter return nil } } -type eventPager struct { +type hushPager struct { reverse bool - order *EventOrder - filter func(*EventQuery) (*EventQuery, error) + order *HushOrder + filter func(*HushQuery) (*HushQuery, error) } -func newEventPager(opts []EventPaginateOption, reverse bool) (*eventPager, error) { - pager := &eventPager{reverse: reverse} +func newHushPager(opts []HushPaginateOption, reverse bool) (*hushPager, error) { + pager := &hushPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultEventOrder + pager.order = DefaultHushOrder } return pager, nil } -func (p *eventPager) applyFilter(query *EventQuery) (*EventQuery, error) { +func (p *hushPager) applyFilter(query *HushQuery) (*HushQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *eventPager) toCursor(e *Event) Cursor { - return p.order.Field.toCursor(e) +func (p *hushPager) toCursor(h *Hush) Cursor { + return p.order.Field.toCursor(h) } -func (p *eventPager) applyCursors(query *EventQuery, after, before *Cursor) (*EventQuery, error) { +func (p *hushPager) applyCursors(query *HushQuery, after, before *Cursor) (*HushQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEventOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultHushOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *eventPager) applyOrder(query *EventQuery) *EventQuery { +func (p *hushPager) applyOrder(query *HushQuery) *HushQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultEventOrder.Field { - query = query.Order(DefaultEventOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultHushOrder.Field { + query = query.Order(DefaultHushOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -4249,7 +8879,7 @@ func (p *eventPager) applyOrder(query *EventQuery) *EventQuery { return query } -func (p *eventPager) orderExpr(query *EventQuery) sql.Querier { +func (p *hushPager) orderExpr(query *HushQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -4259,33 +8889,33 @@ func (p *eventPager) orderExpr(query *EventQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultEventOrder.Field { - b.Comma().Ident(DefaultEventOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultHushOrder.Field { + b.Comma().Ident(DefaultHushOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to Event. -func (e *EventQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Hush. +func (h *HushQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...EventPaginateOption, -) (*EventConnection, error) { + before *Cursor, last *int, opts ...HushPaginateOption, +) (*HushConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newEventPager(opts, last != nil) + pager, err := newHushPager(opts, last != nil) if err != nil { return nil, err } - if e, err = pager.applyFilter(e); err != nil { + if h, err = pager.applyFilter(h); err != nil { return nil, err } - conn := &EventConnection{Edges: []*EventEdge{}} + conn := &HushConnection{Edges: []*HushEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := e.Clone() + c := h.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -4297,20 +8927,20 @@ func (e *EventQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if e, err = pager.applyCursors(e, after, before); err != nil { + if h, err = pager.applyCursors(h, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - e.Limit(limit) + h.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := e.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := h.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - e = pager.applyOrder(e) - nodes, err := e.All(ctx) + h = pager.applyOrder(h) + nodes, err := h.All(ctx) if err != nil { return nil, err } @@ -4318,61 +8948,126 @@ func (e *EventQuery) Paginate( return conn, nil } -// EventOrderField defines the ordering field of Event. -type EventOrderField struct { - // Value extracts the ordering value from the given Event. - Value func(*Event) (ent.Value, error) +var ( + // HushOrderFieldName orders Hush by name. + HushOrderFieldName = &HushOrderField{ + Value: func(h *Hush) (ent.Value, error) { + return h.Name, nil + }, + column: hush.FieldName, + toTerm: hush.ByName, + toCursor: func(h *Hush) Cursor { + return Cursor{ + ID: h.ID, + Value: h.Name, + } + }, + } + // HushOrderFieldKind orders Hush by kind. + HushOrderFieldKind = &HushOrderField{ + Value: func(h *Hush) (ent.Value, error) { + return h.Kind, nil + }, + column: hush.FieldKind, + toTerm: hush.ByKind, + toCursor: func(h *Hush) Cursor { + return Cursor{ + ID: h.ID, + Value: h.Kind, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f HushOrderField) String() string { + var str string + switch f.column { + case HushOrderFieldName.column: + str = "name" + case HushOrderFieldKind.column: + str = "kind" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f HushOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *HushOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("HushOrderField %T must be a string", v) + } + switch str { + case "name": + *f = *HushOrderFieldName + case "kind": + *f = *HushOrderFieldKind + default: + return fmt.Errorf("%s is not a valid HushOrderField", str) + } + return nil +} + +// HushOrderField defines the ordering field of Hush. +type HushOrderField struct { + // Value extracts the ordering value from the given Hush. + Value func(*Hush) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) event.OrderOption - toCursor func(*Event) Cursor + toTerm func(...sql.OrderTermOption) hush.OrderOption + toCursor func(*Hush) Cursor } -// EventOrder defines the ordering of Event. -type EventOrder struct { - Direction OrderDirection `json:"direction"` - Field *EventOrderField `json:"field"` +// HushOrder defines the ordering of Hush. +type HushOrder struct { + Direction OrderDirection `json:"direction"` + Field *HushOrderField `json:"field"` } -// DefaultEventOrder is the default ordering of Event. -var DefaultEventOrder = &EventOrder{ +// DefaultHushOrder is the default ordering of Hush. +var DefaultHushOrder = &HushOrder{ Direction: entgql.OrderDirectionAsc, - Field: &EventOrderField{ - Value: func(e *Event) (ent.Value, error) { - return e.ID, nil + Field: &HushOrderField{ + Value: func(h *Hush) (ent.Value, error) { + return h.ID, nil }, - column: event.FieldID, - toTerm: event.ByID, - toCursor: func(e *Event) Cursor { - return Cursor{ID: e.ID} + column: hush.FieldID, + toTerm: hush.ByID, + toCursor: func(h *Hush) Cursor { + return Cursor{ID: h.ID} }, }, } -// ToEdge converts Event into EventEdge. -func (e *Event) ToEdge(order *EventOrder) *EventEdge { +// ToEdge converts Hush into HushEdge. +func (h *Hush) ToEdge(order *HushOrder) *HushEdge { if order == nil { - order = DefaultEventOrder + order = DefaultHushOrder } - return &EventEdge{ - Node: e, - Cursor: order.Field.toCursor(e), + return &HushEdge{ + Node: h, + Cursor: order.Field.toCursor(h), } } -// EventHistoryEdge is the edge representation of EventHistory. -type EventHistoryEdge struct { - Node *EventHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// HushHistoryEdge is the edge representation of HushHistory. +type HushHistoryEdge struct { + Node *HushHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// EventHistoryConnection is the connection containing edges to EventHistory. -type EventHistoryConnection struct { - Edges []*EventHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// HushHistoryConnection is the connection containing edges to HushHistory. +type HushHistoryConnection struct { + Edges []*HushHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *EventHistoryConnection) build(nodes []*EventHistory, pager *eventhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *HushHistoryConnection) build(nodes []*HushHistory, pager *hushhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -4382,21 +9077,21 @@ func (c *EventHistoryConnection) build(nodes []*EventHistory, pager *eventhistor c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *EventHistory + var nodeAt func(int) *HushHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *EventHistory { + nodeAt = func(i int) *HushHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *EventHistory { + nodeAt = func(i int) *HushHistory { return nodes[i] } } - c.Edges = make([]*EventHistoryEdge, len(nodes)) + c.Edges = make([]*HushHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &EventHistoryEdge{ + c.Edges[i] = &HushHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -4410,87 +9105,87 @@ func (c *EventHistoryConnection) build(nodes []*EventHistory, pager *eventhistor } } -// EventHistoryPaginateOption enables pagination customization. -type EventHistoryPaginateOption func(*eventhistoryPager) error +// HushHistoryPaginateOption enables pagination customization. +type HushHistoryPaginateOption func(*hushhistoryPager) error -// WithEventHistoryOrder configures pagination ordering. -func WithEventHistoryOrder(order *EventHistoryOrder) EventHistoryPaginateOption { +// WithHushHistoryOrder configures pagination ordering. +func WithHushHistoryOrder(order *HushHistoryOrder) HushHistoryPaginateOption { if order == nil { - order = DefaultEventHistoryOrder + order = DefaultHushHistoryOrder } o := *order - return func(pager *eventhistoryPager) error { + return func(pager *hushhistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultEventHistoryOrder.Field + o.Field = DefaultHushHistoryOrder.Field } pager.order = &o return nil } } -// WithEventHistoryFilter configures pagination filter. -func WithEventHistoryFilter(filter func(*EventHistoryQuery) (*EventHistoryQuery, error)) EventHistoryPaginateOption { - return func(pager *eventhistoryPager) error { +// WithHushHistoryFilter configures pagination filter. +func WithHushHistoryFilter(filter func(*HushHistoryQuery) (*HushHistoryQuery, error)) HushHistoryPaginateOption { + return func(pager *hushhistoryPager) error { if filter == nil { - return errors.New("EventHistoryQuery filter cannot be nil") + return errors.New("HushHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type eventhistoryPager struct { +type hushhistoryPager struct { reverse bool - order *EventHistoryOrder - filter func(*EventHistoryQuery) (*EventHistoryQuery, error) + order *HushHistoryOrder + filter func(*HushHistoryQuery) (*HushHistoryQuery, error) } -func newEventHistoryPager(opts []EventHistoryPaginateOption, reverse bool) (*eventhistoryPager, error) { - pager := &eventhistoryPager{reverse: reverse} +func newHushHistoryPager(opts []HushHistoryPaginateOption, reverse bool) (*hushhistoryPager, error) { + pager := &hushhistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultEventHistoryOrder + pager.order = DefaultHushHistoryOrder } return pager, nil } -func (p *eventhistoryPager) applyFilter(query *EventHistoryQuery) (*EventHistoryQuery, error) { +func (p *hushhistoryPager) applyFilter(query *HushHistoryQuery) (*HushHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *eventhistoryPager) toCursor(eh *EventHistory) Cursor { - return p.order.Field.toCursor(eh) +func (p *hushhistoryPager) toCursor(hh *HushHistory) Cursor { + return p.order.Field.toCursor(hh) } -func (p *eventhistoryPager) applyCursors(query *EventHistoryQuery, after, before *Cursor) (*EventHistoryQuery, error) { +func (p *hushhistoryPager) applyCursors(query *HushHistoryQuery, after, before *Cursor) (*HushHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultEventHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultHushHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *eventhistoryPager) applyOrder(query *EventHistoryQuery) *EventHistoryQuery { +func (p *hushhistoryPager) applyOrder(query *HushHistoryQuery) *HushHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultEventHistoryOrder.Field { - query = query.Order(DefaultEventHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultHushHistoryOrder.Field { + query = query.Order(DefaultHushHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -4498,7 +9193,7 @@ func (p *eventhistoryPager) applyOrder(query *EventHistoryQuery) *EventHistoryQu return query } -func (p *eventhistoryPager) orderExpr(query *EventHistoryQuery) sql.Querier { +func (p *hushhistoryPager) orderExpr(query *HushHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -4508,33 +9203,33 @@ func (p *eventhistoryPager) orderExpr(query *EventHistoryQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultEventHistoryOrder.Field { - b.Comma().Ident(DefaultEventHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultHushHistoryOrder.Field { + b.Comma().Ident(DefaultHushHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to EventHistory. -func (eh *EventHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to HushHistory. +func (hh *HushHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...EventHistoryPaginateOption, -) (*EventHistoryConnection, error) { + before *Cursor, last *int, opts ...HushHistoryPaginateOption, +) (*HushHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newEventHistoryPager(opts, last != nil) + pager, err := newHushHistoryPager(opts, last != nil) if err != nil { return nil, err } - if eh, err = pager.applyFilter(eh); err != nil { + if hh, err = pager.applyFilter(hh); err != nil { return nil, err } - conn := &EventHistoryConnection{Edges: []*EventHistoryEdge{}} + conn := &HushHistoryConnection{Edges: []*HushHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := eh.Clone() + c := hh.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -4546,20 +9241,20 @@ func (eh *EventHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if eh, err = pager.applyCursors(eh, after, before); err != nil { + if hh, err = pager.applyCursors(hh, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - eh.Limit(limit) + hh.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := eh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := hh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - eh = pager.applyOrder(eh) - nodes, err := eh.All(ctx) + hh = pager.applyOrder(hh) + nodes, err := hh.All(ctx) if err != nil { return nil, err } @@ -4567,61 +9262,126 @@ func (eh *EventHistoryQuery) Paginate( return conn, nil } -// EventHistoryOrderField defines the ordering field of EventHistory. -type EventHistoryOrderField struct { - // Value extracts the ordering value from the given EventHistory. - Value func(*EventHistory) (ent.Value, error) +var ( + // HushHistoryOrderFieldName orders HushHistory by name. + HushHistoryOrderFieldName = &HushHistoryOrderField{ + Value: func(hh *HushHistory) (ent.Value, error) { + return hh.Name, nil + }, + column: hushhistory.FieldName, + toTerm: hushhistory.ByName, + toCursor: func(hh *HushHistory) Cursor { + return Cursor{ + ID: hh.ID, + Value: hh.Name, + } + }, + } + // HushHistoryOrderFieldKind orders HushHistory by kind. + HushHistoryOrderFieldKind = &HushHistoryOrderField{ + Value: func(hh *HushHistory) (ent.Value, error) { + return hh.Kind, nil + }, + column: hushhistory.FieldKind, + toTerm: hushhistory.ByKind, + toCursor: func(hh *HushHistory) Cursor { + return Cursor{ + ID: hh.ID, + Value: hh.Kind, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f HushHistoryOrderField) String() string { + var str string + switch f.column { + case HushHistoryOrderFieldName.column: + str = "name" + case HushHistoryOrderFieldKind.column: + str = "kind" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f HushHistoryOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *HushHistoryOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("HushHistoryOrderField %T must be a string", v) + } + switch str { + case "name": + *f = *HushHistoryOrderFieldName + case "kind": + *f = *HushHistoryOrderFieldKind + default: + return fmt.Errorf("%s is not a valid HushHistoryOrderField", str) + } + return nil +} + +// HushHistoryOrderField defines the ordering field of HushHistory. +type HushHistoryOrderField struct { + // Value extracts the ordering value from the given HushHistory. + Value func(*HushHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) eventhistory.OrderOption - toCursor func(*EventHistory) Cursor + toTerm func(...sql.OrderTermOption) hushhistory.OrderOption + toCursor func(*HushHistory) Cursor } -// EventHistoryOrder defines the ordering of EventHistory. -type EventHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *EventHistoryOrderField `json:"field"` +// HushHistoryOrder defines the ordering of HushHistory. +type HushHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *HushHistoryOrderField `json:"field"` } -// DefaultEventHistoryOrder is the default ordering of EventHistory. -var DefaultEventHistoryOrder = &EventHistoryOrder{ +// DefaultHushHistoryOrder is the default ordering of HushHistory. +var DefaultHushHistoryOrder = &HushHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &EventHistoryOrderField{ - Value: func(eh *EventHistory) (ent.Value, error) { - return eh.ID, nil + Field: &HushHistoryOrderField{ + Value: func(hh *HushHistory) (ent.Value, error) { + return hh.ID, nil }, - column: eventhistory.FieldID, - toTerm: eventhistory.ByID, - toCursor: func(eh *EventHistory) Cursor { - return Cursor{ID: eh.ID} + column: hushhistory.FieldID, + toTerm: hushhistory.ByID, + toCursor: func(hh *HushHistory) Cursor { + return Cursor{ID: hh.ID} }, }, } -// ToEdge converts EventHistory into EventHistoryEdge. -func (eh *EventHistory) ToEdge(order *EventHistoryOrder) *EventHistoryEdge { +// ToEdge converts HushHistory into HushHistoryEdge. +func (hh *HushHistory) ToEdge(order *HushHistoryOrder) *HushHistoryEdge { if order == nil { - order = DefaultEventHistoryOrder + order = DefaultHushHistoryOrder } - return &EventHistoryEdge{ - Node: eh, - Cursor: order.Field.toCursor(eh), + return &HushHistoryEdge{ + Node: hh, + Cursor: order.Field.toCursor(hh), } } -// FeatureEdge is the edge representation of Feature. -type FeatureEdge struct { - Node *Feature `json:"node"` - Cursor Cursor `json:"cursor"` +// IntegrationEdge is the edge representation of Integration. +type IntegrationEdge struct { + Node *Integration `json:"node"` + Cursor Cursor `json:"cursor"` } - -// FeatureConnection is the connection containing edges to Feature. -type FeatureConnection struct { - Edges []*FeatureEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` + +// IntegrationConnection is the connection containing edges to Integration. +type IntegrationConnection struct { + Edges []*IntegrationEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *FeatureConnection) build(nodes []*Feature, pager *featurePager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *IntegrationConnection) build(nodes []*Integration, pager *integrationPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -4631,21 +9391,21 @@ func (c *FeatureConnection) build(nodes []*Feature, pager *featurePager, after * c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *Feature + var nodeAt func(int) *Integration if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *Feature { + nodeAt = func(i int) *Integration { return nodes[n-i] } } else { - nodeAt = func(i int) *Feature { + nodeAt = func(i int) *Integration { return nodes[i] } } - c.Edges = make([]*FeatureEdge, len(nodes)) + c.Edges = make([]*IntegrationEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &FeatureEdge{ + c.Edges[i] = &IntegrationEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -4659,87 +9419,87 @@ func (c *FeatureConnection) build(nodes []*Feature, pager *featurePager, after * } } -// FeaturePaginateOption enables pagination customization. -type FeaturePaginateOption func(*featurePager) error +// IntegrationPaginateOption enables pagination customization. +type IntegrationPaginateOption func(*integrationPager) error -// WithFeatureOrder configures pagination ordering. -func WithFeatureOrder(order *FeatureOrder) FeaturePaginateOption { +// WithIntegrationOrder configures pagination ordering. +func WithIntegrationOrder(order *IntegrationOrder) IntegrationPaginateOption { if order == nil { - order = DefaultFeatureOrder + order = DefaultIntegrationOrder } o := *order - return func(pager *featurePager) error { + return func(pager *integrationPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultFeatureOrder.Field + o.Field = DefaultIntegrationOrder.Field } pager.order = &o return nil } } -// WithFeatureFilter configures pagination filter. -func WithFeatureFilter(filter func(*FeatureQuery) (*FeatureQuery, error)) FeaturePaginateOption { - return func(pager *featurePager) error { +// WithIntegrationFilter configures pagination filter. +func WithIntegrationFilter(filter func(*IntegrationQuery) (*IntegrationQuery, error)) IntegrationPaginateOption { + return func(pager *integrationPager) error { if filter == nil { - return errors.New("FeatureQuery filter cannot be nil") + return errors.New("IntegrationQuery filter cannot be nil") } pager.filter = filter return nil } } -type featurePager struct { +type integrationPager struct { reverse bool - order *FeatureOrder - filter func(*FeatureQuery) (*FeatureQuery, error) + order *IntegrationOrder + filter func(*IntegrationQuery) (*IntegrationQuery, error) } -func newFeaturePager(opts []FeaturePaginateOption, reverse bool) (*featurePager, error) { - pager := &featurePager{reverse: reverse} +func newIntegrationPager(opts []IntegrationPaginateOption, reverse bool) (*integrationPager, error) { + pager := &integrationPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultFeatureOrder + pager.order = DefaultIntegrationOrder } return pager, nil } -func (p *featurePager) applyFilter(query *FeatureQuery) (*FeatureQuery, error) { +func (p *integrationPager) applyFilter(query *IntegrationQuery) (*IntegrationQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *featurePager) toCursor(f *Feature) Cursor { - return p.order.Field.toCursor(f) +func (p *integrationPager) toCursor(i *Integration) Cursor { + return p.order.Field.toCursor(i) } -func (p *featurePager) applyCursors(query *FeatureQuery, after, before *Cursor) (*FeatureQuery, error) { +func (p *integrationPager) applyCursors(query *IntegrationQuery, after, before *Cursor) (*IntegrationQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultFeatureOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultIntegrationOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *featurePager) applyOrder(query *FeatureQuery) *FeatureQuery { +func (p *integrationPager) applyOrder(query *IntegrationQuery) *IntegrationQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultFeatureOrder.Field { - query = query.Order(DefaultFeatureOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultIntegrationOrder.Field { + query = query.Order(DefaultIntegrationOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -4747,7 +9507,7 @@ func (p *featurePager) applyOrder(query *FeatureQuery) *FeatureQuery { return query } -func (p *featurePager) orderExpr(query *FeatureQuery) sql.Querier { +func (p *integrationPager) orderExpr(query *IntegrationQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -4757,33 +9517,33 @@ func (p *featurePager) orderExpr(query *FeatureQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultFeatureOrder.Field { - b.Comma().Ident(DefaultFeatureOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultIntegrationOrder.Field { + b.Comma().Ident(DefaultIntegrationOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to Feature. -func (f *FeatureQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Integration. +func (i *IntegrationQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...FeaturePaginateOption, -) (*FeatureConnection, error) { + before *Cursor, last *int, opts ...IntegrationPaginateOption, +) (*IntegrationConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newFeaturePager(opts, last != nil) + pager, err := newIntegrationPager(opts, last != nil) if err != nil { return nil, err } - if f, err = pager.applyFilter(f); err != nil { + if i, err = pager.applyFilter(i); err != nil { return nil, err } - conn := &FeatureConnection{Edges: []*FeatureEdge{}} + conn := &IntegrationConnection{Edges: []*IntegrationEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := f.Clone() + c := i.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -4795,20 +9555,20 @@ func (f *FeatureQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if f, err = pager.applyCursors(f, after, before); err != nil { + if i, err = pager.applyCursors(i, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - f.Limit(limit) + i.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := f.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := i.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - f = pager.applyOrder(f) - nodes, err := f.All(ctx) + i = pager.applyOrder(i) + nodes, err := i.All(ctx) if err != nil { return nil, err } @@ -4816,61 +9576,126 @@ func (f *FeatureQuery) Paginate( return conn, nil } -// FeatureOrderField defines the ordering field of Feature. -type FeatureOrderField struct { - // Value extracts the ordering value from the given Feature. - Value func(*Feature) (ent.Value, error) +var ( + // IntegrationOrderFieldName orders Integration by name. + IntegrationOrderFieldName = &IntegrationOrderField{ + Value: func(i *Integration) (ent.Value, error) { + return i.Name, nil + }, + column: integration.FieldName, + toTerm: integration.ByName, + toCursor: func(i *Integration) Cursor { + return Cursor{ + ID: i.ID, + Value: i.Name, + } + }, + } + // IntegrationOrderFieldKind orders Integration by kind. + IntegrationOrderFieldKind = &IntegrationOrderField{ + Value: func(i *Integration) (ent.Value, error) { + return i.Kind, nil + }, + column: integration.FieldKind, + toTerm: integration.ByKind, + toCursor: func(i *Integration) Cursor { + return Cursor{ + ID: i.ID, + Value: i.Kind, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f IntegrationOrderField) String() string { + var str string + switch f.column { + case IntegrationOrderFieldName.column: + str = "name" + case IntegrationOrderFieldKind.column: + str = "kind" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f IntegrationOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *IntegrationOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("IntegrationOrderField %T must be a string", v) + } + switch str { + case "name": + *f = *IntegrationOrderFieldName + case "kind": + *f = *IntegrationOrderFieldKind + default: + return fmt.Errorf("%s is not a valid IntegrationOrderField", str) + } + return nil +} + +// IntegrationOrderField defines the ordering field of Integration. +type IntegrationOrderField struct { + // Value extracts the ordering value from the given Integration. + Value func(*Integration) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) feature.OrderOption - toCursor func(*Feature) Cursor + toTerm func(...sql.OrderTermOption) integration.OrderOption + toCursor func(*Integration) Cursor } -// FeatureOrder defines the ordering of Feature. -type FeatureOrder struct { - Direction OrderDirection `json:"direction"` - Field *FeatureOrderField `json:"field"` +// IntegrationOrder defines the ordering of Integration. +type IntegrationOrder struct { + Direction OrderDirection `json:"direction"` + Field *IntegrationOrderField `json:"field"` } -// DefaultFeatureOrder is the default ordering of Feature. -var DefaultFeatureOrder = &FeatureOrder{ +// DefaultIntegrationOrder is the default ordering of Integration. +var DefaultIntegrationOrder = &IntegrationOrder{ Direction: entgql.OrderDirectionAsc, - Field: &FeatureOrderField{ - Value: func(f *Feature) (ent.Value, error) { - return f.ID, nil + Field: &IntegrationOrderField{ + Value: func(i *Integration) (ent.Value, error) { + return i.ID, nil }, - column: feature.FieldID, - toTerm: feature.ByID, - toCursor: func(f *Feature) Cursor { - return Cursor{ID: f.ID} + column: integration.FieldID, + toTerm: integration.ByID, + toCursor: func(i *Integration) Cursor { + return Cursor{ID: i.ID} }, }, } -// ToEdge converts Feature into FeatureEdge. -func (f *Feature) ToEdge(order *FeatureOrder) *FeatureEdge { +// ToEdge converts Integration into IntegrationEdge. +func (i *Integration) ToEdge(order *IntegrationOrder) *IntegrationEdge { if order == nil { - order = DefaultFeatureOrder + order = DefaultIntegrationOrder } - return &FeatureEdge{ - Node: f, - Cursor: order.Field.toCursor(f), + return &IntegrationEdge{ + Node: i, + Cursor: order.Field.toCursor(i), } } -// FeatureHistoryEdge is the edge representation of FeatureHistory. -type FeatureHistoryEdge struct { - Node *FeatureHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// IntegrationHistoryEdge is the edge representation of IntegrationHistory. +type IntegrationHistoryEdge struct { + Node *IntegrationHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// FeatureHistoryConnection is the connection containing edges to FeatureHistory. -type FeatureHistoryConnection struct { - Edges []*FeatureHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// IntegrationHistoryConnection is the connection containing edges to IntegrationHistory. +type IntegrationHistoryConnection struct { + Edges []*IntegrationHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *FeatureHistoryConnection) build(nodes []*FeatureHistory, pager *featurehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *IntegrationHistoryConnection) build(nodes []*IntegrationHistory, pager *integrationhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -4880,21 +9705,21 @@ func (c *FeatureHistoryConnection) build(nodes []*FeatureHistory, pager *feature c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *FeatureHistory + var nodeAt func(int) *IntegrationHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *FeatureHistory { + nodeAt = func(i int) *IntegrationHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *FeatureHistory { + nodeAt = func(i int) *IntegrationHistory { return nodes[i] } } - c.Edges = make([]*FeatureHistoryEdge, len(nodes)) + c.Edges = make([]*IntegrationHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &FeatureHistoryEdge{ + c.Edges[i] = &IntegrationHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -4908,87 +9733,87 @@ func (c *FeatureHistoryConnection) build(nodes []*FeatureHistory, pager *feature } } -// FeatureHistoryPaginateOption enables pagination customization. -type FeatureHistoryPaginateOption func(*featurehistoryPager) error +// IntegrationHistoryPaginateOption enables pagination customization. +type IntegrationHistoryPaginateOption func(*integrationhistoryPager) error -// WithFeatureHistoryOrder configures pagination ordering. -func WithFeatureHistoryOrder(order *FeatureHistoryOrder) FeatureHistoryPaginateOption { +// WithIntegrationHistoryOrder configures pagination ordering. +func WithIntegrationHistoryOrder(order *IntegrationHistoryOrder) IntegrationHistoryPaginateOption { if order == nil { - order = DefaultFeatureHistoryOrder + order = DefaultIntegrationHistoryOrder } o := *order - return func(pager *featurehistoryPager) error { + return func(pager *integrationhistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultFeatureHistoryOrder.Field + o.Field = DefaultIntegrationHistoryOrder.Field } pager.order = &o return nil } } -// WithFeatureHistoryFilter configures pagination filter. -func WithFeatureHistoryFilter(filter func(*FeatureHistoryQuery) (*FeatureHistoryQuery, error)) FeatureHistoryPaginateOption { - return func(pager *featurehistoryPager) error { +// WithIntegrationHistoryFilter configures pagination filter. +func WithIntegrationHistoryFilter(filter func(*IntegrationHistoryQuery) (*IntegrationHistoryQuery, error)) IntegrationHistoryPaginateOption { + return func(pager *integrationhistoryPager) error { if filter == nil { - return errors.New("FeatureHistoryQuery filter cannot be nil") + return errors.New("IntegrationHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type featurehistoryPager struct { +type integrationhistoryPager struct { reverse bool - order *FeatureHistoryOrder - filter func(*FeatureHistoryQuery) (*FeatureHistoryQuery, error) + order *IntegrationHistoryOrder + filter func(*IntegrationHistoryQuery) (*IntegrationHistoryQuery, error) } -func newFeatureHistoryPager(opts []FeatureHistoryPaginateOption, reverse bool) (*featurehistoryPager, error) { - pager := &featurehistoryPager{reverse: reverse} +func newIntegrationHistoryPager(opts []IntegrationHistoryPaginateOption, reverse bool) (*integrationhistoryPager, error) { + pager := &integrationhistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultFeatureHistoryOrder + pager.order = DefaultIntegrationHistoryOrder } return pager, nil } -func (p *featurehistoryPager) applyFilter(query *FeatureHistoryQuery) (*FeatureHistoryQuery, error) { +func (p *integrationhistoryPager) applyFilter(query *IntegrationHistoryQuery) (*IntegrationHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *featurehistoryPager) toCursor(fh *FeatureHistory) Cursor { - return p.order.Field.toCursor(fh) +func (p *integrationhistoryPager) toCursor(ih *IntegrationHistory) Cursor { + return p.order.Field.toCursor(ih) } -func (p *featurehistoryPager) applyCursors(query *FeatureHistoryQuery, after, before *Cursor) (*FeatureHistoryQuery, error) { +func (p *integrationhistoryPager) applyCursors(query *IntegrationHistoryQuery, after, before *Cursor) (*IntegrationHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultFeatureHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultIntegrationHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *featurehistoryPager) applyOrder(query *FeatureHistoryQuery) *FeatureHistoryQuery { +func (p *integrationhistoryPager) applyOrder(query *IntegrationHistoryQuery) *IntegrationHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultFeatureHistoryOrder.Field { - query = query.Order(DefaultFeatureHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultIntegrationHistoryOrder.Field { + query = query.Order(DefaultIntegrationHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -4996,7 +9821,7 @@ func (p *featurehistoryPager) applyOrder(query *FeatureHistoryQuery) *FeatureHis return query } -func (p *featurehistoryPager) orderExpr(query *FeatureHistoryQuery) sql.Querier { +func (p *integrationhistoryPager) orderExpr(query *IntegrationHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -5006,33 +9831,33 @@ func (p *featurehistoryPager) orderExpr(query *FeatureHistoryQuery) sql.Querier } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultFeatureHistoryOrder.Field { - b.Comma().Ident(DefaultFeatureHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultIntegrationHistoryOrder.Field { + b.Comma().Ident(DefaultIntegrationHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to FeatureHistory. -func (fh *FeatureHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to IntegrationHistory. +func (ih *IntegrationHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...FeatureHistoryPaginateOption, -) (*FeatureHistoryConnection, error) { + before *Cursor, last *int, opts ...IntegrationHistoryPaginateOption, +) (*IntegrationHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newFeatureHistoryPager(opts, last != nil) + pager, err := newIntegrationHistoryPager(opts, last != nil) if err != nil { return nil, err } - if fh, err = pager.applyFilter(fh); err != nil { + if ih, err = pager.applyFilter(ih); err != nil { return nil, err } - conn := &FeatureHistoryConnection{Edges: []*FeatureHistoryEdge{}} + conn := &IntegrationHistoryConnection{Edges: []*IntegrationHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := fh.Clone() + c := ih.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -5044,20 +9869,20 @@ func (fh *FeatureHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if fh, err = pager.applyCursors(fh, after, before); err != nil { + if ih, err = pager.applyCursors(ih, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - fh.Limit(limit) + ih.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := fh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := ih.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - fh = pager.applyOrder(fh) - nodes, err := fh.All(ctx) + ih = pager.applyOrder(ih) + nodes, err := ih.All(ctx) if err != nil { return nil, err } @@ -5065,61 +9890,126 @@ func (fh *FeatureHistoryQuery) Paginate( return conn, nil } -// FeatureHistoryOrderField defines the ordering field of FeatureHistory. -type FeatureHistoryOrderField struct { - // Value extracts the ordering value from the given FeatureHistory. - Value func(*FeatureHistory) (ent.Value, error) +var ( + // IntegrationHistoryOrderFieldName orders IntegrationHistory by name. + IntegrationHistoryOrderFieldName = &IntegrationHistoryOrderField{ + Value: func(ih *IntegrationHistory) (ent.Value, error) { + return ih.Name, nil + }, + column: integrationhistory.FieldName, + toTerm: integrationhistory.ByName, + toCursor: func(ih *IntegrationHistory) Cursor { + return Cursor{ + ID: ih.ID, + Value: ih.Name, + } + }, + } + // IntegrationHistoryOrderFieldKind orders IntegrationHistory by kind. + IntegrationHistoryOrderFieldKind = &IntegrationHistoryOrderField{ + Value: func(ih *IntegrationHistory) (ent.Value, error) { + return ih.Kind, nil + }, + column: integrationhistory.FieldKind, + toTerm: integrationhistory.ByKind, + toCursor: func(ih *IntegrationHistory) Cursor { + return Cursor{ + ID: ih.ID, + Value: ih.Kind, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f IntegrationHistoryOrderField) String() string { + var str string + switch f.column { + case IntegrationHistoryOrderFieldName.column: + str = "name" + case IntegrationHistoryOrderFieldKind.column: + str = "kind" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f IntegrationHistoryOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *IntegrationHistoryOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("IntegrationHistoryOrderField %T must be a string", v) + } + switch str { + case "name": + *f = *IntegrationHistoryOrderFieldName + case "kind": + *f = *IntegrationHistoryOrderFieldKind + default: + return fmt.Errorf("%s is not a valid IntegrationHistoryOrderField", str) + } + return nil +} + +// IntegrationHistoryOrderField defines the ordering field of IntegrationHistory. +type IntegrationHistoryOrderField struct { + // Value extracts the ordering value from the given IntegrationHistory. + Value func(*IntegrationHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) featurehistory.OrderOption - toCursor func(*FeatureHistory) Cursor + toTerm func(...sql.OrderTermOption) integrationhistory.OrderOption + toCursor func(*IntegrationHistory) Cursor } -// FeatureHistoryOrder defines the ordering of FeatureHistory. -type FeatureHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *FeatureHistoryOrderField `json:"field"` +// IntegrationHistoryOrder defines the ordering of IntegrationHistory. +type IntegrationHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *IntegrationHistoryOrderField `json:"field"` } -// DefaultFeatureHistoryOrder is the default ordering of FeatureHistory. -var DefaultFeatureHistoryOrder = &FeatureHistoryOrder{ +// DefaultIntegrationHistoryOrder is the default ordering of IntegrationHistory. +var DefaultIntegrationHistoryOrder = &IntegrationHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &FeatureHistoryOrderField{ - Value: func(fh *FeatureHistory) (ent.Value, error) { - return fh.ID, nil + Field: &IntegrationHistoryOrderField{ + Value: func(ih *IntegrationHistory) (ent.Value, error) { + return ih.ID, nil }, - column: featurehistory.FieldID, - toTerm: featurehistory.ByID, - toCursor: func(fh *FeatureHistory) Cursor { - return Cursor{ID: fh.ID} + column: integrationhistory.FieldID, + toTerm: integrationhistory.ByID, + toCursor: func(ih *IntegrationHistory) Cursor { + return Cursor{ID: ih.ID} }, }, } -// ToEdge converts FeatureHistory into FeatureHistoryEdge. -func (fh *FeatureHistory) ToEdge(order *FeatureHistoryOrder) *FeatureHistoryEdge { +// ToEdge converts IntegrationHistory into IntegrationHistoryEdge. +func (ih *IntegrationHistory) ToEdge(order *IntegrationHistoryOrder) *IntegrationHistoryEdge { if order == nil { - order = DefaultFeatureHistoryOrder + order = DefaultIntegrationHistoryOrder } - return &FeatureHistoryEdge{ - Node: fh, - Cursor: order.Field.toCursor(fh), + return &IntegrationHistoryEdge{ + Node: ih, + Cursor: order.Field.toCursor(ih), } } -// FileEdge is the edge representation of File. -type FileEdge struct { - Node *File `json:"node"` - Cursor Cursor `json:"cursor"` +// InternalPolicyEdge is the edge representation of InternalPolicy. +type InternalPolicyEdge struct { + Node *InternalPolicy `json:"node"` + Cursor Cursor `json:"cursor"` } -// FileConnection is the connection containing edges to File. -type FileConnection struct { - Edges []*FileEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// InternalPolicyConnection is the connection containing edges to InternalPolicy. +type InternalPolicyConnection struct { + Edges []*InternalPolicyEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *FileConnection) build(nodes []*File, pager *filePager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *InternalPolicyConnection) build(nodes []*InternalPolicy, pager *internalpolicyPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -5129,21 +10019,21 @@ func (c *FileConnection) build(nodes []*File, pager *filePager, after *Cursor, f c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *File + var nodeAt func(int) *InternalPolicy if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *File { + nodeAt = func(i int) *InternalPolicy { return nodes[n-i] } } else { - nodeAt = func(i int) *File { + nodeAt = func(i int) *InternalPolicy { return nodes[i] } } - c.Edges = make([]*FileEdge, len(nodes)) + c.Edges = make([]*InternalPolicyEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &FileEdge{ + c.Edges[i] = &InternalPolicyEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -5157,87 +10047,87 @@ func (c *FileConnection) build(nodes []*File, pager *filePager, after *Cursor, f } } -// FilePaginateOption enables pagination customization. -type FilePaginateOption func(*filePager) error +// InternalPolicyPaginateOption enables pagination customization. +type InternalPolicyPaginateOption func(*internalpolicyPager) error -// WithFileOrder configures pagination ordering. -func WithFileOrder(order *FileOrder) FilePaginateOption { +// WithInternalPolicyOrder configures pagination ordering. +func WithInternalPolicyOrder(order *InternalPolicyOrder) InternalPolicyPaginateOption { if order == nil { - order = DefaultFileOrder + order = DefaultInternalPolicyOrder } o := *order - return func(pager *filePager) error { + return func(pager *internalpolicyPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultFileOrder.Field + o.Field = DefaultInternalPolicyOrder.Field } pager.order = &o return nil } } -// WithFileFilter configures pagination filter. -func WithFileFilter(filter func(*FileQuery) (*FileQuery, error)) FilePaginateOption { - return func(pager *filePager) error { +// WithInternalPolicyFilter configures pagination filter. +func WithInternalPolicyFilter(filter func(*InternalPolicyQuery) (*InternalPolicyQuery, error)) InternalPolicyPaginateOption { + return func(pager *internalpolicyPager) error { if filter == nil { - return errors.New("FileQuery filter cannot be nil") + return errors.New("InternalPolicyQuery filter cannot be nil") } pager.filter = filter return nil } } -type filePager struct { +type internalpolicyPager struct { reverse bool - order *FileOrder - filter func(*FileQuery) (*FileQuery, error) + order *InternalPolicyOrder + filter func(*InternalPolicyQuery) (*InternalPolicyQuery, error) } -func newFilePager(opts []FilePaginateOption, reverse bool) (*filePager, error) { - pager := &filePager{reverse: reverse} +func newInternalPolicyPager(opts []InternalPolicyPaginateOption, reverse bool) (*internalpolicyPager, error) { + pager := &internalpolicyPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultFileOrder + pager.order = DefaultInternalPolicyOrder } return pager, nil } -func (p *filePager) applyFilter(query *FileQuery) (*FileQuery, error) { +func (p *internalpolicyPager) applyFilter(query *InternalPolicyQuery) (*InternalPolicyQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *filePager) toCursor(f *File) Cursor { - return p.order.Field.toCursor(f) +func (p *internalpolicyPager) toCursor(ip *InternalPolicy) Cursor { + return p.order.Field.toCursor(ip) } -func (p *filePager) applyCursors(query *FileQuery, after, before *Cursor) (*FileQuery, error) { +func (p *internalpolicyPager) applyCursors(query *InternalPolicyQuery, after, before *Cursor) (*InternalPolicyQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultFileOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultInternalPolicyOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *filePager) applyOrder(query *FileQuery) *FileQuery { +func (p *internalpolicyPager) applyOrder(query *InternalPolicyQuery) *InternalPolicyQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultFileOrder.Field { - query = query.Order(DefaultFileOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultInternalPolicyOrder.Field { + query = query.Order(DefaultInternalPolicyOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -5245,7 +10135,7 @@ func (p *filePager) applyOrder(query *FileQuery) *FileQuery { return query } -func (p *filePager) orderExpr(query *FileQuery) sql.Querier { +func (p *internalpolicyPager) orderExpr(query *InternalPolicyQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -5255,33 +10145,33 @@ func (p *filePager) orderExpr(query *FileQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultFileOrder.Field { - b.Comma().Ident(DefaultFileOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultInternalPolicyOrder.Field { + b.Comma().Ident(DefaultInternalPolicyOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to File. -func (f *FileQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to InternalPolicy. +func (ip *InternalPolicyQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...FilePaginateOption, -) (*FileConnection, error) { + before *Cursor, last *int, opts ...InternalPolicyPaginateOption, +) (*InternalPolicyConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newFilePager(opts, last != nil) + pager, err := newInternalPolicyPager(opts, last != nil) if err != nil { return nil, err } - if f, err = pager.applyFilter(f); err != nil { + if ip, err = pager.applyFilter(ip); err != nil { return nil, err } - conn := &FileConnection{Edges: []*FileEdge{}} + conn := &InternalPolicyConnection{Edges: []*InternalPolicyEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := f.Clone() + c := ip.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -5293,20 +10183,20 @@ func (f *FileQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if f, err = pager.applyCursors(f, after, before); err != nil { + if ip, err = pager.applyCursors(ip, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - f.Limit(limit) + ip.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := f.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := ip.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - f = pager.applyOrder(f) - nodes, err := f.All(ctx) + ip = pager.applyOrder(ip) + nodes, err := ip.All(ctx) if err != nil { return nil, err } @@ -5314,61 +10204,61 @@ func (f *FileQuery) Paginate( return conn, nil } -// FileOrderField defines the ordering field of File. -type FileOrderField struct { - // Value extracts the ordering value from the given File. - Value func(*File) (ent.Value, error) +// InternalPolicyOrderField defines the ordering field of InternalPolicy. +type InternalPolicyOrderField struct { + // Value extracts the ordering value from the given InternalPolicy. + Value func(*InternalPolicy) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) file.OrderOption - toCursor func(*File) Cursor + toTerm func(...sql.OrderTermOption) internalpolicy.OrderOption + toCursor func(*InternalPolicy) Cursor } -// FileOrder defines the ordering of File. -type FileOrder struct { - Direction OrderDirection `json:"direction"` - Field *FileOrderField `json:"field"` +// InternalPolicyOrder defines the ordering of InternalPolicy. +type InternalPolicyOrder struct { + Direction OrderDirection `json:"direction"` + Field *InternalPolicyOrderField `json:"field"` } -// DefaultFileOrder is the default ordering of File. -var DefaultFileOrder = &FileOrder{ +// DefaultInternalPolicyOrder is the default ordering of InternalPolicy. +var DefaultInternalPolicyOrder = &InternalPolicyOrder{ Direction: entgql.OrderDirectionAsc, - Field: &FileOrderField{ - Value: func(f *File) (ent.Value, error) { - return f.ID, nil + Field: &InternalPolicyOrderField{ + Value: func(ip *InternalPolicy) (ent.Value, error) { + return ip.ID, nil }, - column: file.FieldID, - toTerm: file.ByID, - toCursor: func(f *File) Cursor { - return Cursor{ID: f.ID} + column: internalpolicy.FieldID, + toTerm: internalpolicy.ByID, + toCursor: func(ip *InternalPolicy) Cursor { + return Cursor{ID: ip.ID} }, }, } -// ToEdge converts File into FileEdge. -func (f *File) ToEdge(order *FileOrder) *FileEdge { +// ToEdge converts InternalPolicy into InternalPolicyEdge. +func (ip *InternalPolicy) ToEdge(order *InternalPolicyOrder) *InternalPolicyEdge { if order == nil { - order = DefaultFileOrder + order = DefaultInternalPolicyOrder } - return &FileEdge{ - Node: f, - Cursor: order.Field.toCursor(f), + return &InternalPolicyEdge{ + Node: ip, + Cursor: order.Field.toCursor(ip), } } -// FileHistoryEdge is the edge representation of FileHistory. -type FileHistoryEdge struct { - Node *FileHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// InternalPolicyHistoryEdge is the edge representation of InternalPolicyHistory. +type InternalPolicyHistoryEdge struct { + Node *InternalPolicyHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// FileHistoryConnection is the connection containing edges to FileHistory. -type FileHistoryConnection struct { - Edges []*FileHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// InternalPolicyHistoryConnection is the connection containing edges to InternalPolicyHistory. +type InternalPolicyHistoryConnection struct { + Edges []*InternalPolicyHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *FileHistoryConnection) build(nodes []*FileHistory, pager *filehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *InternalPolicyHistoryConnection) build(nodes []*InternalPolicyHistory, pager *internalpolicyhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -5378,21 +10268,21 @@ func (c *FileHistoryConnection) build(nodes []*FileHistory, pager *filehistoryPa c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *FileHistory + var nodeAt func(int) *InternalPolicyHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *FileHistory { + nodeAt = func(i int) *InternalPolicyHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *FileHistory { + nodeAt = func(i int) *InternalPolicyHistory { return nodes[i] } } - c.Edges = make([]*FileHistoryEdge, len(nodes)) + c.Edges = make([]*InternalPolicyHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &FileHistoryEdge{ + c.Edges[i] = &InternalPolicyHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -5406,87 +10296,87 @@ func (c *FileHistoryConnection) build(nodes []*FileHistory, pager *filehistoryPa } } -// FileHistoryPaginateOption enables pagination customization. -type FileHistoryPaginateOption func(*filehistoryPager) error +// InternalPolicyHistoryPaginateOption enables pagination customization. +type InternalPolicyHistoryPaginateOption func(*internalpolicyhistoryPager) error -// WithFileHistoryOrder configures pagination ordering. -func WithFileHistoryOrder(order *FileHistoryOrder) FileHistoryPaginateOption { +// WithInternalPolicyHistoryOrder configures pagination ordering. +func WithInternalPolicyHistoryOrder(order *InternalPolicyHistoryOrder) InternalPolicyHistoryPaginateOption { if order == nil { - order = DefaultFileHistoryOrder + order = DefaultInternalPolicyHistoryOrder } o := *order - return func(pager *filehistoryPager) error { + return func(pager *internalpolicyhistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultFileHistoryOrder.Field + o.Field = DefaultInternalPolicyHistoryOrder.Field } pager.order = &o return nil } } -// WithFileHistoryFilter configures pagination filter. -func WithFileHistoryFilter(filter func(*FileHistoryQuery) (*FileHistoryQuery, error)) FileHistoryPaginateOption { - return func(pager *filehistoryPager) error { +// WithInternalPolicyHistoryFilter configures pagination filter. +func WithInternalPolicyHistoryFilter(filter func(*InternalPolicyHistoryQuery) (*InternalPolicyHistoryQuery, error)) InternalPolicyHistoryPaginateOption { + return func(pager *internalpolicyhistoryPager) error { if filter == nil { - return errors.New("FileHistoryQuery filter cannot be nil") + return errors.New("InternalPolicyHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type filehistoryPager struct { +type internalpolicyhistoryPager struct { reverse bool - order *FileHistoryOrder - filter func(*FileHistoryQuery) (*FileHistoryQuery, error) + order *InternalPolicyHistoryOrder + filter func(*InternalPolicyHistoryQuery) (*InternalPolicyHistoryQuery, error) } -func newFileHistoryPager(opts []FileHistoryPaginateOption, reverse bool) (*filehistoryPager, error) { - pager := &filehistoryPager{reverse: reverse} +func newInternalPolicyHistoryPager(opts []InternalPolicyHistoryPaginateOption, reverse bool) (*internalpolicyhistoryPager, error) { + pager := &internalpolicyhistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultFileHistoryOrder + pager.order = DefaultInternalPolicyHistoryOrder } return pager, nil } -func (p *filehistoryPager) applyFilter(query *FileHistoryQuery) (*FileHistoryQuery, error) { +func (p *internalpolicyhistoryPager) applyFilter(query *InternalPolicyHistoryQuery) (*InternalPolicyHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *filehistoryPager) toCursor(fh *FileHistory) Cursor { - return p.order.Field.toCursor(fh) +func (p *internalpolicyhistoryPager) toCursor(iph *InternalPolicyHistory) Cursor { + return p.order.Field.toCursor(iph) } -func (p *filehistoryPager) applyCursors(query *FileHistoryQuery, after, before *Cursor) (*FileHistoryQuery, error) { +func (p *internalpolicyhistoryPager) applyCursors(query *InternalPolicyHistoryQuery, after, before *Cursor) (*InternalPolicyHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultFileHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultInternalPolicyHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *filehistoryPager) applyOrder(query *FileHistoryQuery) *FileHistoryQuery { +func (p *internalpolicyhistoryPager) applyOrder(query *InternalPolicyHistoryQuery) *InternalPolicyHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultFileHistoryOrder.Field { - query = query.Order(DefaultFileHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultInternalPolicyHistoryOrder.Field { + query = query.Order(DefaultInternalPolicyHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -5494,7 +10384,7 @@ func (p *filehistoryPager) applyOrder(query *FileHistoryQuery) *FileHistoryQuery return query } -func (p *filehistoryPager) orderExpr(query *FileHistoryQuery) sql.Querier { +func (p *internalpolicyhistoryPager) orderExpr(query *InternalPolicyHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -5504,33 +10394,33 @@ func (p *filehistoryPager) orderExpr(query *FileHistoryQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultFileHistoryOrder.Field { - b.Comma().Ident(DefaultFileHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultInternalPolicyHistoryOrder.Field { + b.Comma().Ident(DefaultInternalPolicyHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to FileHistory. -func (fh *FileHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to InternalPolicyHistory. +func (iph *InternalPolicyHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...FileHistoryPaginateOption, -) (*FileHistoryConnection, error) { + before *Cursor, last *int, opts ...InternalPolicyHistoryPaginateOption, +) (*InternalPolicyHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newFileHistoryPager(opts, last != nil) + pager, err := newInternalPolicyHistoryPager(opts, last != nil) if err != nil { return nil, err } - if fh, err = pager.applyFilter(fh); err != nil { + if iph, err = pager.applyFilter(iph); err != nil { return nil, err } - conn := &FileHistoryConnection{Edges: []*FileHistoryEdge{}} + conn := &InternalPolicyHistoryConnection{Edges: []*InternalPolicyHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := fh.Clone() + c := iph.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -5542,20 +10432,20 @@ func (fh *FileHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if fh, err = pager.applyCursors(fh, after, before); err != nil { + if iph, err = pager.applyCursors(iph, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - fh.Limit(limit) + iph.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := fh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := iph.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - fh = pager.applyOrder(fh) - nodes, err := fh.All(ctx) + iph = pager.applyOrder(iph) + nodes, err := iph.All(ctx) if err != nil { return nil, err } @@ -5563,61 +10453,61 @@ func (fh *FileHistoryQuery) Paginate( return conn, nil } -// FileHistoryOrderField defines the ordering field of FileHistory. -type FileHistoryOrderField struct { - // Value extracts the ordering value from the given FileHistory. - Value func(*FileHistory) (ent.Value, error) +// InternalPolicyHistoryOrderField defines the ordering field of InternalPolicyHistory. +type InternalPolicyHistoryOrderField struct { + // Value extracts the ordering value from the given InternalPolicyHistory. + Value func(*InternalPolicyHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) filehistory.OrderOption - toCursor func(*FileHistory) Cursor + toTerm func(...sql.OrderTermOption) internalpolicyhistory.OrderOption + toCursor func(*InternalPolicyHistory) Cursor } -// FileHistoryOrder defines the ordering of FileHistory. -type FileHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *FileHistoryOrderField `json:"field"` +// InternalPolicyHistoryOrder defines the ordering of InternalPolicyHistory. +type InternalPolicyHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *InternalPolicyHistoryOrderField `json:"field"` } -// DefaultFileHistoryOrder is the default ordering of FileHistory. -var DefaultFileHistoryOrder = &FileHistoryOrder{ +// DefaultInternalPolicyHistoryOrder is the default ordering of InternalPolicyHistory. +var DefaultInternalPolicyHistoryOrder = &InternalPolicyHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &FileHistoryOrderField{ - Value: func(fh *FileHistory) (ent.Value, error) { - return fh.ID, nil + Field: &InternalPolicyHistoryOrderField{ + Value: func(iph *InternalPolicyHistory) (ent.Value, error) { + return iph.ID, nil }, - column: filehistory.FieldID, - toTerm: filehistory.ByID, - toCursor: func(fh *FileHistory) Cursor { - return Cursor{ID: fh.ID} + column: internalpolicyhistory.FieldID, + toTerm: internalpolicyhistory.ByID, + toCursor: func(iph *InternalPolicyHistory) Cursor { + return Cursor{ID: iph.ID} }, }, } -// ToEdge converts FileHistory into FileHistoryEdge. -func (fh *FileHistory) ToEdge(order *FileHistoryOrder) *FileHistoryEdge { +// ToEdge converts InternalPolicyHistory into InternalPolicyHistoryEdge. +func (iph *InternalPolicyHistory) ToEdge(order *InternalPolicyHistoryOrder) *InternalPolicyHistoryEdge { if order == nil { - order = DefaultFileHistoryOrder + order = DefaultInternalPolicyHistoryOrder } - return &FileHistoryEdge{ - Node: fh, - Cursor: order.Field.toCursor(fh), + return &InternalPolicyHistoryEdge{ + Node: iph, + Cursor: order.Field.toCursor(iph), } } -// GroupEdge is the edge representation of Group. -type GroupEdge struct { - Node *Group `json:"node"` - Cursor Cursor `json:"cursor"` +// InviteEdge is the edge representation of Invite. +type InviteEdge struct { + Node *Invite `json:"node"` + Cursor Cursor `json:"cursor"` } -// GroupConnection is the connection containing edges to Group. -type GroupConnection struct { - Edges []*GroupEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// InviteConnection is the connection containing edges to Invite. +type InviteConnection struct { + Edges []*InviteEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *GroupConnection) build(nodes []*Group, pager *groupPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *InviteConnection) build(nodes []*Invite, pager *invitePager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -5627,21 +10517,21 @@ func (c *GroupConnection) build(nodes []*Group, pager *groupPager, after *Cursor c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *Group + var nodeAt func(int) *Invite if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *Group { + nodeAt = func(i int) *Invite { return nodes[n-i] } } else { - nodeAt = func(i int) *Group { + nodeAt = func(i int) *Invite { return nodes[i] } } - c.Edges = make([]*GroupEdge, len(nodes)) + c.Edges = make([]*InviteEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &GroupEdge{ + c.Edges[i] = &InviteEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -5655,87 +10545,87 @@ func (c *GroupConnection) build(nodes []*Group, pager *groupPager, after *Cursor } } -// GroupPaginateOption enables pagination customization. -type GroupPaginateOption func(*groupPager) error +// InvitePaginateOption enables pagination customization. +type InvitePaginateOption func(*invitePager) error -// WithGroupOrder configures pagination ordering. -func WithGroupOrder(order *GroupOrder) GroupPaginateOption { +// WithInviteOrder configures pagination ordering. +func WithInviteOrder(order *InviteOrder) InvitePaginateOption { if order == nil { - order = DefaultGroupOrder + order = DefaultInviteOrder } o := *order - return func(pager *groupPager) error { + return func(pager *invitePager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultGroupOrder.Field + o.Field = DefaultInviteOrder.Field } pager.order = &o return nil } } -// WithGroupFilter configures pagination filter. -func WithGroupFilter(filter func(*GroupQuery) (*GroupQuery, error)) GroupPaginateOption { - return func(pager *groupPager) error { +// WithInviteFilter configures pagination filter. +func WithInviteFilter(filter func(*InviteQuery) (*InviteQuery, error)) InvitePaginateOption { + return func(pager *invitePager) error { if filter == nil { - return errors.New("GroupQuery filter cannot be nil") + return errors.New("InviteQuery filter cannot be nil") } pager.filter = filter return nil } } -type groupPager struct { +type invitePager struct { reverse bool - order *GroupOrder - filter func(*GroupQuery) (*GroupQuery, error) + order *InviteOrder + filter func(*InviteQuery) (*InviteQuery, error) } -func newGroupPager(opts []GroupPaginateOption, reverse bool) (*groupPager, error) { - pager := &groupPager{reverse: reverse} +func newInvitePager(opts []InvitePaginateOption, reverse bool) (*invitePager, error) { + pager := &invitePager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultGroupOrder + pager.order = DefaultInviteOrder } return pager, nil } -func (p *groupPager) applyFilter(query *GroupQuery) (*GroupQuery, error) { +func (p *invitePager) applyFilter(query *InviteQuery) (*InviteQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *groupPager) toCursor(gr *Group) Cursor { - return p.order.Field.toCursor(gr) +func (p *invitePager) toCursor(i *Invite) Cursor { + return p.order.Field.toCursor(i) } -func (p *groupPager) applyCursors(query *GroupQuery, after, before *Cursor) (*GroupQuery, error) { +func (p *invitePager) applyCursors(query *InviteQuery, after, before *Cursor) (*InviteQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultGroupOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultInviteOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *groupPager) applyOrder(query *GroupQuery) *GroupQuery { +func (p *invitePager) applyOrder(query *InviteQuery) *InviteQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultGroupOrder.Field { - query = query.Order(DefaultGroupOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultInviteOrder.Field { + query = query.Order(DefaultInviteOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -5743,7 +10633,7 @@ func (p *groupPager) applyOrder(query *GroupQuery) *GroupQuery { return query } -func (p *groupPager) orderExpr(query *GroupQuery) sql.Querier { +func (p *invitePager) orderExpr(query *InviteQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -5753,185 +10643,120 @@ func (p *groupPager) orderExpr(query *GroupQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultGroupOrder.Field { - b.Comma().Ident(DefaultGroupOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultInviteOrder.Field { + b.Comma().Ident(DefaultInviteOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to Group. -func (gr *GroupQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Invite. +func (i *InviteQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...GroupPaginateOption, -) (*GroupConnection, error) { + before *Cursor, last *int, opts ...InvitePaginateOption, +) (*InviteConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newGroupPager(opts, last != nil) + pager, err := newInvitePager(opts, last != nil) if err != nil { return nil, err } - if gr, err = pager.applyFilter(gr); err != nil { + if i, err = pager.applyFilter(i); err != nil { return nil, err } - conn := &GroupConnection{Edges: []*GroupEdge{}} + conn := &InviteConnection{Edges: []*InviteEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := gr.Clone() - c.ctx.Fields = nil - if conn.TotalCount, err = c.Count(ctx); err != nil { - return nil, err - } - conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 - conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 - } - } - if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { - return conn, nil - } - if gr, err = pager.applyCursors(gr, after, before); err != nil { - return nil, err - } - limit := paginateLimit(first, last) - if limit != 0 { - gr.Limit(limit) - } - if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := gr.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { - return nil, err - } - } - gr = pager.applyOrder(gr) - nodes, err := gr.All(ctx) - if err != nil { - return nil, err - } - conn.build(nodes, pager, after, first, before, last) - return conn, nil -} - -var ( - // GroupOrderFieldName orders Group by name. - GroupOrderFieldName = &GroupOrderField{ - Value: func(gr *Group) (ent.Value, error) { - return gr.Name, nil - }, - column: group.FieldName, - toTerm: group.ByName, - toCursor: func(gr *Group) Cursor { - return Cursor{ - ID: gr.ID, - Value: gr.Name, - } - }, - } - // GroupOrderFieldDisplayName orders Group by display_name. - GroupOrderFieldDisplayName = &GroupOrderField{ - Value: func(gr *Group) (ent.Value, error) { - return gr.DisplayName, nil - }, - column: group.FieldDisplayName, - toTerm: group.ByDisplayName, - toCursor: func(gr *Group) Cursor { - return Cursor{ - ID: gr.ID, - Value: gr.DisplayName, + c := i.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err } - }, + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } } -) - -// String implement fmt.Stringer interface. -func (f GroupOrderField) String() string { - var str string - switch f.column { - case GroupOrderFieldName.column: - str = "name" - case GroupOrderFieldDisplayName.column: - str = "display_name" + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil } - return str -} - -// MarshalGQL implements graphql.Marshaler interface. -func (f GroupOrderField) MarshalGQL(w io.Writer) { - io.WriteString(w, strconv.Quote(f.String())) -} - -// UnmarshalGQL implements graphql.Unmarshaler interface. -func (f *GroupOrderField) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("GroupOrderField %T must be a string", v) + if i, err = pager.applyCursors(i, after, before); err != nil { + return nil, err } - switch str { - case "name": - *f = *GroupOrderFieldName - case "display_name": - *f = *GroupOrderFieldDisplayName - default: - return fmt.Errorf("%s is not a valid GroupOrderField", str) + limit := paginateLimit(first, last) + if limit != 0 { + i.Limit(limit) } - return nil + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := i.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + i = pager.applyOrder(i) + nodes, err := i.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil } -// GroupOrderField defines the ordering field of Group. -type GroupOrderField struct { - // Value extracts the ordering value from the given Group. - Value func(*Group) (ent.Value, error) +// InviteOrderField defines the ordering field of Invite. +type InviteOrderField struct { + // Value extracts the ordering value from the given Invite. + Value func(*Invite) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) group.OrderOption - toCursor func(*Group) Cursor + toTerm func(...sql.OrderTermOption) invite.OrderOption + toCursor func(*Invite) Cursor } -// GroupOrder defines the ordering of Group. -type GroupOrder struct { - Direction OrderDirection `json:"direction"` - Field *GroupOrderField `json:"field"` +// InviteOrder defines the ordering of Invite. +type InviteOrder struct { + Direction OrderDirection `json:"direction"` + Field *InviteOrderField `json:"field"` } -// DefaultGroupOrder is the default ordering of Group. -var DefaultGroupOrder = &GroupOrder{ +// DefaultInviteOrder is the default ordering of Invite. +var DefaultInviteOrder = &InviteOrder{ Direction: entgql.OrderDirectionAsc, - Field: &GroupOrderField{ - Value: func(gr *Group) (ent.Value, error) { - return gr.ID, nil + Field: &InviteOrderField{ + Value: func(i *Invite) (ent.Value, error) { + return i.ID, nil }, - column: group.FieldID, - toTerm: group.ByID, - toCursor: func(gr *Group) Cursor { - return Cursor{ID: gr.ID} + column: invite.FieldID, + toTerm: invite.ByID, + toCursor: func(i *Invite) Cursor { + return Cursor{ID: i.ID} }, }, } -// ToEdge converts Group into GroupEdge. -func (gr *Group) ToEdge(order *GroupOrder) *GroupEdge { +// ToEdge converts Invite into InviteEdge. +func (i *Invite) ToEdge(order *InviteOrder) *InviteEdge { if order == nil { - order = DefaultGroupOrder + order = DefaultInviteOrder } - return &GroupEdge{ - Node: gr, - Cursor: order.Field.toCursor(gr), + return &InviteEdge{ + Node: i, + Cursor: order.Field.toCursor(i), } } -// GroupHistoryEdge is the edge representation of GroupHistory. -type GroupHistoryEdge struct { - Node *GroupHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// NarrativeEdge is the edge representation of Narrative. +type NarrativeEdge struct { + Node *Narrative `json:"node"` + Cursor Cursor `json:"cursor"` } -// GroupHistoryConnection is the connection containing edges to GroupHistory. -type GroupHistoryConnection struct { - Edges []*GroupHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// NarrativeConnection is the connection containing edges to Narrative. +type NarrativeConnection struct { + Edges []*NarrativeEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *GroupHistoryConnection) build(nodes []*GroupHistory, pager *grouphistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *NarrativeConnection) build(nodes []*Narrative, pager *narrativePager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -5941,21 +10766,21 @@ func (c *GroupHistoryConnection) build(nodes []*GroupHistory, pager *grouphistor c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *GroupHistory + var nodeAt func(int) *Narrative if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *GroupHistory { + nodeAt = func(i int) *Narrative { return nodes[n-i] } } else { - nodeAt = func(i int) *GroupHistory { + nodeAt = func(i int) *Narrative { return nodes[i] } } - c.Edges = make([]*GroupHistoryEdge, len(nodes)) + c.Edges = make([]*NarrativeEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &GroupHistoryEdge{ + c.Edges[i] = &NarrativeEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -5969,87 +10794,87 @@ func (c *GroupHistoryConnection) build(nodes []*GroupHistory, pager *grouphistor } } -// GroupHistoryPaginateOption enables pagination customization. -type GroupHistoryPaginateOption func(*grouphistoryPager) error +// NarrativePaginateOption enables pagination customization. +type NarrativePaginateOption func(*narrativePager) error -// WithGroupHistoryOrder configures pagination ordering. -func WithGroupHistoryOrder(order *GroupHistoryOrder) GroupHistoryPaginateOption { +// WithNarrativeOrder configures pagination ordering. +func WithNarrativeOrder(order *NarrativeOrder) NarrativePaginateOption { if order == nil { - order = DefaultGroupHistoryOrder + order = DefaultNarrativeOrder } o := *order - return func(pager *grouphistoryPager) error { + return func(pager *narrativePager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultGroupHistoryOrder.Field + o.Field = DefaultNarrativeOrder.Field } pager.order = &o return nil } } -// WithGroupHistoryFilter configures pagination filter. -func WithGroupHistoryFilter(filter func(*GroupHistoryQuery) (*GroupHistoryQuery, error)) GroupHistoryPaginateOption { - return func(pager *grouphistoryPager) error { +// WithNarrativeFilter configures pagination filter. +func WithNarrativeFilter(filter func(*NarrativeQuery) (*NarrativeQuery, error)) NarrativePaginateOption { + return func(pager *narrativePager) error { if filter == nil { - return errors.New("GroupHistoryQuery filter cannot be nil") + return errors.New("NarrativeQuery filter cannot be nil") } pager.filter = filter return nil } } -type grouphistoryPager struct { +type narrativePager struct { reverse bool - order *GroupHistoryOrder - filter func(*GroupHistoryQuery) (*GroupHistoryQuery, error) + order *NarrativeOrder + filter func(*NarrativeQuery) (*NarrativeQuery, error) } -func newGroupHistoryPager(opts []GroupHistoryPaginateOption, reverse bool) (*grouphistoryPager, error) { - pager := &grouphistoryPager{reverse: reverse} +func newNarrativePager(opts []NarrativePaginateOption, reverse bool) (*narrativePager, error) { + pager := &narrativePager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultGroupHistoryOrder + pager.order = DefaultNarrativeOrder } return pager, nil } -func (p *grouphistoryPager) applyFilter(query *GroupHistoryQuery) (*GroupHistoryQuery, error) { +func (p *narrativePager) applyFilter(query *NarrativeQuery) (*NarrativeQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *grouphistoryPager) toCursor(gh *GroupHistory) Cursor { - return p.order.Field.toCursor(gh) +func (p *narrativePager) toCursor(n *Narrative) Cursor { + return p.order.Field.toCursor(n) } -func (p *grouphistoryPager) applyCursors(query *GroupHistoryQuery, after, before *Cursor) (*GroupHistoryQuery, error) { +func (p *narrativePager) applyCursors(query *NarrativeQuery, after, before *Cursor) (*NarrativeQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultGroupHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultNarrativeOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *grouphistoryPager) applyOrder(query *GroupHistoryQuery) *GroupHistoryQuery { +func (p *narrativePager) applyOrder(query *NarrativeQuery) *NarrativeQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultGroupHistoryOrder.Field { - query = query.Order(DefaultGroupHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultNarrativeOrder.Field { + query = query.Order(DefaultNarrativeOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -6057,7 +10882,7 @@ func (p *grouphistoryPager) applyOrder(query *GroupHistoryQuery) *GroupHistoryQu return query } -func (p *grouphistoryPager) orderExpr(query *GroupHistoryQuery) sql.Querier { +func (p *narrativePager) orderExpr(query *NarrativeQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -6067,33 +10892,33 @@ func (p *grouphistoryPager) orderExpr(query *GroupHistoryQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultGroupHistoryOrder.Field { - b.Comma().Ident(DefaultGroupHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultNarrativeOrder.Field { + b.Comma().Ident(DefaultNarrativeOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to GroupHistory. -func (gh *GroupHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Narrative. +func (n *NarrativeQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...GroupHistoryPaginateOption, -) (*GroupHistoryConnection, error) { + before *Cursor, last *int, opts ...NarrativePaginateOption, +) (*NarrativeConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newGroupHistoryPager(opts, last != nil) + pager, err := newNarrativePager(opts, last != nil) if err != nil { return nil, err } - if gh, err = pager.applyFilter(gh); err != nil { + if n, err = pager.applyFilter(n); err != nil { return nil, err } - conn := &GroupHistoryConnection{Edges: []*GroupHistoryEdge{}} + conn := &NarrativeConnection{Edges: []*NarrativeEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := gh.Clone() + c := n.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -6105,20 +10930,20 @@ func (gh *GroupHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if gh, err = pager.applyCursors(gh, after, before); err != nil { + if n, err = pager.applyCursors(n, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - gh.Limit(limit) + n.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := gh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := n.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - gh = pager.applyOrder(gh) - nodes, err := gh.All(ctx) + n = pager.applyOrder(n) + nodes, err := n.All(ctx) if err != nil { return nil, err } @@ -6126,126 +10951,61 @@ func (gh *GroupHistoryQuery) Paginate( return conn, nil } -var ( - // GroupHistoryOrderFieldName orders GroupHistory by name. - GroupHistoryOrderFieldName = &GroupHistoryOrderField{ - Value: func(gh *GroupHistory) (ent.Value, error) { - return gh.Name, nil - }, - column: grouphistory.FieldName, - toTerm: grouphistory.ByName, - toCursor: func(gh *GroupHistory) Cursor { - return Cursor{ - ID: gh.ID, - Value: gh.Name, - } - }, - } - // GroupHistoryOrderFieldDisplayName orders GroupHistory by display_name. - GroupHistoryOrderFieldDisplayName = &GroupHistoryOrderField{ - Value: func(gh *GroupHistory) (ent.Value, error) { - return gh.DisplayName, nil - }, - column: grouphistory.FieldDisplayName, - toTerm: grouphistory.ByDisplayName, - toCursor: func(gh *GroupHistory) Cursor { - return Cursor{ - ID: gh.ID, - Value: gh.DisplayName, - } - }, - } -) - -// String implement fmt.Stringer interface. -func (f GroupHistoryOrderField) String() string { - var str string - switch f.column { - case GroupHistoryOrderFieldName.column: - str = "name" - case GroupHistoryOrderFieldDisplayName.column: - str = "display_name" - } - return str -} - -// MarshalGQL implements graphql.Marshaler interface. -func (f GroupHistoryOrderField) MarshalGQL(w io.Writer) { - io.WriteString(w, strconv.Quote(f.String())) -} - -// UnmarshalGQL implements graphql.Unmarshaler interface. -func (f *GroupHistoryOrderField) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("GroupHistoryOrderField %T must be a string", v) - } - switch str { - case "name": - *f = *GroupHistoryOrderFieldName - case "display_name": - *f = *GroupHistoryOrderFieldDisplayName - default: - return fmt.Errorf("%s is not a valid GroupHistoryOrderField", str) - } - return nil -} - -// GroupHistoryOrderField defines the ordering field of GroupHistory. -type GroupHistoryOrderField struct { - // Value extracts the ordering value from the given GroupHistory. - Value func(*GroupHistory) (ent.Value, error) +// NarrativeOrderField defines the ordering field of Narrative. +type NarrativeOrderField struct { + // Value extracts the ordering value from the given Narrative. + Value func(*Narrative) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) grouphistory.OrderOption - toCursor func(*GroupHistory) Cursor + toTerm func(...sql.OrderTermOption) narrative.OrderOption + toCursor func(*Narrative) Cursor } -// GroupHistoryOrder defines the ordering of GroupHistory. -type GroupHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *GroupHistoryOrderField `json:"field"` +// NarrativeOrder defines the ordering of Narrative. +type NarrativeOrder struct { + Direction OrderDirection `json:"direction"` + Field *NarrativeOrderField `json:"field"` } -// DefaultGroupHistoryOrder is the default ordering of GroupHistory. -var DefaultGroupHistoryOrder = &GroupHistoryOrder{ +// DefaultNarrativeOrder is the default ordering of Narrative. +var DefaultNarrativeOrder = &NarrativeOrder{ Direction: entgql.OrderDirectionAsc, - Field: &GroupHistoryOrderField{ - Value: func(gh *GroupHistory) (ent.Value, error) { - return gh.ID, nil + Field: &NarrativeOrderField{ + Value: func(n *Narrative) (ent.Value, error) { + return n.ID, nil }, - column: grouphistory.FieldID, - toTerm: grouphistory.ByID, - toCursor: func(gh *GroupHistory) Cursor { - return Cursor{ID: gh.ID} + column: narrative.FieldID, + toTerm: narrative.ByID, + toCursor: func(n *Narrative) Cursor { + return Cursor{ID: n.ID} }, }, } -// ToEdge converts GroupHistory into GroupHistoryEdge. -func (gh *GroupHistory) ToEdge(order *GroupHistoryOrder) *GroupHistoryEdge { +// ToEdge converts Narrative into NarrativeEdge. +func (n *Narrative) ToEdge(order *NarrativeOrder) *NarrativeEdge { if order == nil { - order = DefaultGroupHistoryOrder + order = DefaultNarrativeOrder } - return &GroupHistoryEdge{ - Node: gh, - Cursor: order.Field.toCursor(gh), + return &NarrativeEdge{ + Node: n, + Cursor: order.Field.toCursor(n), } } -// GroupMembershipEdge is the edge representation of GroupMembership. -type GroupMembershipEdge struct { - Node *GroupMembership `json:"node"` - Cursor Cursor `json:"cursor"` +// NarrativeHistoryEdge is the edge representation of NarrativeHistory. +type NarrativeHistoryEdge struct { + Node *NarrativeHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// GroupMembershipConnection is the connection containing edges to GroupMembership. -type GroupMembershipConnection struct { - Edges []*GroupMembershipEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// NarrativeHistoryConnection is the connection containing edges to NarrativeHistory. +type NarrativeHistoryConnection struct { + Edges []*NarrativeHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *GroupMembershipConnection) build(nodes []*GroupMembership, pager *groupmembershipPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *NarrativeHistoryConnection) build(nodes []*NarrativeHistory, pager *narrativehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -6255,21 +11015,21 @@ func (c *GroupMembershipConnection) build(nodes []*GroupMembership, pager *group c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *GroupMembership + var nodeAt func(int) *NarrativeHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *GroupMembership { + nodeAt = func(i int) *NarrativeHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *GroupMembership { + nodeAt = func(i int) *NarrativeHistory { return nodes[i] } } - c.Edges = make([]*GroupMembershipEdge, len(nodes)) + c.Edges = make([]*NarrativeHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &GroupMembershipEdge{ + c.Edges[i] = &NarrativeHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -6283,87 +11043,87 @@ func (c *GroupMembershipConnection) build(nodes []*GroupMembership, pager *group } } -// GroupMembershipPaginateOption enables pagination customization. -type GroupMembershipPaginateOption func(*groupmembershipPager) error +// NarrativeHistoryPaginateOption enables pagination customization. +type NarrativeHistoryPaginateOption func(*narrativehistoryPager) error -// WithGroupMembershipOrder configures pagination ordering. -func WithGroupMembershipOrder(order *GroupMembershipOrder) GroupMembershipPaginateOption { +// WithNarrativeHistoryOrder configures pagination ordering. +func WithNarrativeHistoryOrder(order *NarrativeHistoryOrder) NarrativeHistoryPaginateOption { if order == nil { - order = DefaultGroupMembershipOrder + order = DefaultNarrativeHistoryOrder } o := *order - return func(pager *groupmembershipPager) error { + return func(pager *narrativehistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultGroupMembershipOrder.Field + o.Field = DefaultNarrativeHistoryOrder.Field } pager.order = &o return nil } } -// WithGroupMembershipFilter configures pagination filter. -func WithGroupMembershipFilter(filter func(*GroupMembershipQuery) (*GroupMembershipQuery, error)) GroupMembershipPaginateOption { - return func(pager *groupmembershipPager) error { +// WithNarrativeHistoryFilter configures pagination filter. +func WithNarrativeHistoryFilter(filter func(*NarrativeHistoryQuery) (*NarrativeHistoryQuery, error)) NarrativeHistoryPaginateOption { + return func(pager *narrativehistoryPager) error { if filter == nil { - return errors.New("GroupMembershipQuery filter cannot be nil") + return errors.New("NarrativeHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type groupmembershipPager struct { +type narrativehistoryPager struct { reverse bool - order *GroupMembershipOrder - filter func(*GroupMembershipQuery) (*GroupMembershipQuery, error) + order *NarrativeHistoryOrder + filter func(*NarrativeHistoryQuery) (*NarrativeHistoryQuery, error) } -func newGroupMembershipPager(opts []GroupMembershipPaginateOption, reverse bool) (*groupmembershipPager, error) { - pager := &groupmembershipPager{reverse: reverse} +func newNarrativeHistoryPager(opts []NarrativeHistoryPaginateOption, reverse bool) (*narrativehistoryPager, error) { + pager := &narrativehistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultGroupMembershipOrder + pager.order = DefaultNarrativeHistoryOrder } return pager, nil } -func (p *groupmembershipPager) applyFilter(query *GroupMembershipQuery) (*GroupMembershipQuery, error) { +func (p *narrativehistoryPager) applyFilter(query *NarrativeHistoryQuery) (*NarrativeHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *groupmembershipPager) toCursor(gm *GroupMembership) Cursor { - return p.order.Field.toCursor(gm) +func (p *narrativehistoryPager) toCursor(nh *NarrativeHistory) Cursor { + return p.order.Field.toCursor(nh) } -func (p *groupmembershipPager) applyCursors(query *GroupMembershipQuery, after, before *Cursor) (*GroupMembershipQuery, error) { +func (p *narrativehistoryPager) applyCursors(query *NarrativeHistoryQuery, after, before *Cursor) (*NarrativeHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultGroupMembershipOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultNarrativeHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *groupmembershipPager) applyOrder(query *GroupMembershipQuery) *GroupMembershipQuery { +func (p *narrativehistoryPager) applyOrder(query *NarrativeHistoryQuery) *NarrativeHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultGroupMembershipOrder.Field { - query = query.Order(DefaultGroupMembershipOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultNarrativeHistoryOrder.Field { + query = query.Order(DefaultNarrativeHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -6371,7 +11131,7 @@ func (p *groupmembershipPager) applyOrder(query *GroupMembershipQuery) *GroupMem return query } -func (p *groupmembershipPager) orderExpr(query *GroupMembershipQuery) sql.Querier { +func (p *narrativehistoryPager) orderExpr(query *NarrativeHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -6381,33 +11141,33 @@ func (p *groupmembershipPager) orderExpr(query *GroupMembershipQuery) sql.Querie } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultGroupMembershipOrder.Field { - b.Comma().Ident(DefaultGroupMembershipOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultNarrativeHistoryOrder.Field { + b.Comma().Ident(DefaultNarrativeHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to GroupMembership. -func (gm *GroupMembershipQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to NarrativeHistory. +func (nh *NarrativeHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...GroupMembershipPaginateOption, -) (*GroupMembershipConnection, error) { + before *Cursor, last *int, opts ...NarrativeHistoryPaginateOption, +) (*NarrativeHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newGroupMembershipPager(opts, last != nil) + pager, err := newNarrativeHistoryPager(opts, last != nil) if err != nil { return nil, err } - if gm, err = pager.applyFilter(gm); err != nil { + if nh, err = pager.applyFilter(nh); err != nil { return nil, err } - conn := &GroupMembershipConnection{Edges: []*GroupMembershipEdge{}} + conn := &NarrativeHistoryConnection{Edges: []*NarrativeHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := gm.Clone() + c := nh.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -6419,20 +11179,20 @@ func (gm *GroupMembershipQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if gm, err = pager.applyCursors(gm, after, before); err != nil { + if nh, err = pager.applyCursors(nh, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - gm.Limit(limit) + nh.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := gm.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := nh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - gm = pager.applyOrder(gm) - nodes, err := gm.All(ctx) + nh = pager.applyOrder(nh) + nodes, err := nh.All(ctx) if err != nil { return nil, err } @@ -6440,61 +11200,61 @@ func (gm *GroupMembershipQuery) Paginate( return conn, nil } -// GroupMembershipOrderField defines the ordering field of GroupMembership. -type GroupMembershipOrderField struct { - // Value extracts the ordering value from the given GroupMembership. - Value func(*GroupMembership) (ent.Value, error) +// NarrativeHistoryOrderField defines the ordering field of NarrativeHistory. +type NarrativeHistoryOrderField struct { + // Value extracts the ordering value from the given NarrativeHistory. + Value func(*NarrativeHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) groupmembership.OrderOption - toCursor func(*GroupMembership) Cursor + toTerm func(...sql.OrderTermOption) narrativehistory.OrderOption + toCursor func(*NarrativeHistory) Cursor } -// GroupMembershipOrder defines the ordering of GroupMembership. -type GroupMembershipOrder struct { - Direction OrderDirection `json:"direction"` - Field *GroupMembershipOrderField `json:"field"` +// NarrativeHistoryOrder defines the ordering of NarrativeHistory. +type NarrativeHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *NarrativeHistoryOrderField `json:"field"` } -// DefaultGroupMembershipOrder is the default ordering of GroupMembership. -var DefaultGroupMembershipOrder = &GroupMembershipOrder{ +// DefaultNarrativeHistoryOrder is the default ordering of NarrativeHistory. +var DefaultNarrativeHistoryOrder = &NarrativeHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &GroupMembershipOrderField{ - Value: func(gm *GroupMembership) (ent.Value, error) { - return gm.ID, nil + Field: &NarrativeHistoryOrderField{ + Value: func(nh *NarrativeHistory) (ent.Value, error) { + return nh.ID, nil }, - column: groupmembership.FieldID, - toTerm: groupmembership.ByID, - toCursor: func(gm *GroupMembership) Cursor { - return Cursor{ID: gm.ID} + column: narrativehistory.FieldID, + toTerm: narrativehistory.ByID, + toCursor: func(nh *NarrativeHistory) Cursor { + return Cursor{ID: nh.ID} }, }, } -// ToEdge converts GroupMembership into GroupMembershipEdge. -func (gm *GroupMembership) ToEdge(order *GroupMembershipOrder) *GroupMembershipEdge { +// ToEdge converts NarrativeHistory into NarrativeHistoryEdge. +func (nh *NarrativeHistory) ToEdge(order *NarrativeHistoryOrder) *NarrativeHistoryEdge { if order == nil { - order = DefaultGroupMembershipOrder + order = DefaultNarrativeHistoryOrder } - return &GroupMembershipEdge{ - Node: gm, - Cursor: order.Field.toCursor(gm), + return &NarrativeHistoryEdge{ + Node: nh, + Cursor: order.Field.toCursor(nh), } } -// GroupMembershipHistoryEdge is the edge representation of GroupMembershipHistory. -type GroupMembershipHistoryEdge struct { - Node *GroupMembershipHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// NoteEdge is the edge representation of Note. +type NoteEdge struct { + Node *Note `json:"node"` + Cursor Cursor `json:"cursor"` } -// GroupMembershipHistoryConnection is the connection containing edges to GroupMembershipHistory. -type GroupMembershipHistoryConnection struct { - Edges []*GroupMembershipHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// NoteConnection is the connection containing edges to Note. +type NoteConnection struct { + Edges []*NoteEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *GroupMembershipHistoryConnection) build(nodes []*GroupMembershipHistory, pager *groupmembershiphistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *NoteConnection) build(nodes []*Note, pager *notePager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -6504,21 +11264,21 @@ func (c *GroupMembershipHistoryConnection) build(nodes []*GroupMembershipHistory c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *GroupMembershipHistory + var nodeAt func(int) *Note if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *GroupMembershipHistory { + nodeAt = func(i int) *Note { return nodes[n-i] } } else { - nodeAt = func(i int) *GroupMembershipHistory { + nodeAt = func(i int) *Note { return nodes[i] } } - c.Edges = make([]*GroupMembershipHistoryEdge, len(nodes)) + c.Edges = make([]*NoteEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &GroupMembershipHistoryEdge{ + c.Edges[i] = &NoteEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -6532,87 +11292,87 @@ func (c *GroupMembershipHistoryConnection) build(nodes []*GroupMembershipHistory } } -// GroupMembershipHistoryPaginateOption enables pagination customization. -type GroupMembershipHistoryPaginateOption func(*groupmembershiphistoryPager) error +// NotePaginateOption enables pagination customization. +type NotePaginateOption func(*notePager) error -// WithGroupMembershipHistoryOrder configures pagination ordering. -func WithGroupMembershipHistoryOrder(order *GroupMembershipHistoryOrder) GroupMembershipHistoryPaginateOption { +// WithNoteOrder configures pagination ordering. +func WithNoteOrder(order *NoteOrder) NotePaginateOption { if order == nil { - order = DefaultGroupMembershipHistoryOrder + order = DefaultNoteOrder } o := *order - return func(pager *groupmembershiphistoryPager) error { + return func(pager *notePager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultGroupMembershipHistoryOrder.Field + o.Field = DefaultNoteOrder.Field } pager.order = &o return nil } } -// WithGroupMembershipHistoryFilter configures pagination filter. -func WithGroupMembershipHistoryFilter(filter func(*GroupMembershipHistoryQuery) (*GroupMembershipHistoryQuery, error)) GroupMembershipHistoryPaginateOption { - return func(pager *groupmembershiphistoryPager) error { +// WithNoteFilter configures pagination filter. +func WithNoteFilter(filter func(*NoteQuery) (*NoteQuery, error)) NotePaginateOption { + return func(pager *notePager) error { if filter == nil { - return errors.New("GroupMembershipHistoryQuery filter cannot be nil") + return errors.New("NoteQuery filter cannot be nil") } pager.filter = filter return nil } } -type groupmembershiphistoryPager struct { +type notePager struct { reverse bool - order *GroupMembershipHistoryOrder - filter func(*GroupMembershipHistoryQuery) (*GroupMembershipHistoryQuery, error) + order *NoteOrder + filter func(*NoteQuery) (*NoteQuery, error) } -func newGroupMembershipHistoryPager(opts []GroupMembershipHistoryPaginateOption, reverse bool) (*groupmembershiphistoryPager, error) { - pager := &groupmembershiphistoryPager{reverse: reverse} +func newNotePager(opts []NotePaginateOption, reverse bool) (*notePager, error) { + pager := ¬ePager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultGroupMembershipHistoryOrder + pager.order = DefaultNoteOrder } return pager, nil } -func (p *groupmembershiphistoryPager) applyFilter(query *GroupMembershipHistoryQuery) (*GroupMembershipHistoryQuery, error) { +func (p *notePager) applyFilter(query *NoteQuery) (*NoteQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *groupmembershiphistoryPager) toCursor(gmh *GroupMembershipHistory) Cursor { - return p.order.Field.toCursor(gmh) +func (p *notePager) toCursor(n *Note) Cursor { + return p.order.Field.toCursor(n) } -func (p *groupmembershiphistoryPager) applyCursors(query *GroupMembershipHistoryQuery, after, before *Cursor) (*GroupMembershipHistoryQuery, error) { +func (p *notePager) applyCursors(query *NoteQuery, after, before *Cursor) (*NoteQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultGroupMembershipHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultNoteOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *groupmembershiphistoryPager) applyOrder(query *GroupMembershipHistoryQuery) *GroupMembershipHistoryQuery { +func (p *notePager) applyOrder(query *NoteQuery) *NoteQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultGroupMembershipHistoryOrder.Field { - query = query.Order(DefaultGroupMembershipHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultNoteOrder.Field { + query = query.Order(DefaultNoteOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -6620,7 +11380,7 @@ func (p *groupmembershiphistoryPager) applyOrder(query *GroupMembershipHistoryQu return query } -func (p *groupmembershiphistoryPager) orderExpr(query *GroupMembershipHistoryQuery) sql.Querier { +func (p *notePager) orderExpr(query *NoteQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -6630,33 +11390,33 @@ func (p *groupmembershiphistoryPager) orderExpr(query *GroupMembershipHistoryQue } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultGroupMembershipHistoryOrder.Field { - b.Comma().Ident(DefaultGroupMembershipHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultNoteOrder.Field { + b.Comma().Ident(DefaultNoteOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to GroupMembershipHistory. -func (gmh *GroupMembershipHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Note. +func (n *NoteQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...GroupMembershipHistoryPaginateOption, -) (*GroupMembershipHistoryConnection, error) { + before *Cursor, last *int, opts ...NotePaginateOption, +) (*NoteConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newGroupMembershipHistoryPager(opts, last != nil) + pager, err := newNotePager(opts, last != nil) if err != nil { return nil, err } - if gmh, err = pager.applyFilter(gmh); err != nil { + if n, err = pager.applyFilter(n); err != nil { return nil, err } - conn := &GroupMembershipHistoryConnection{Edges: []*GroupMembershipHistoryEdge{}} + conn := &NoteConnection{Edges: []*NoteEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := gmh.Clone() + c := n.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -6668,20 +11428,20 @@ func (gmh *GroupMembershipHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if gmh, err = pager.applyCursors(gmh, after, before); err != nil { + if n, err = pager.applyCursors(n, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - gmh.Limit(limit) + n.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := gmh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := n.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - gmh = pager.applyOrder(gmh) - nodes, err := gmh.All(ctx) + n = pager.applyOrder(n) + nodes, err := n.All(ctx) if err != nil { return nil, err } @@ -6689,61 +11449,61 @@ func (gmh *GroupMembershipHistoryQuery) Paginate( return conn, nil } -// GroupMembershipHistoryOrderField defines the ordering field of GroupMembershipHistory. -type GroupMembershipHistoryOrderField struct { - // Value extracts the ordering value from the given GroupMembershipHistory. - Value func(*GroupMembershipHistory) (ent.Value, error) +// NoteOrderField defines the ordering field of Note. +type NoteOrderField struct { + // Value extracts the ordering value from the given Note. + Value func(*Note) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) groupmembershiphistory.OrderOption - toCursor func(*GroupMembershipHistory) Cursor + toTerm func(...sql.OrderTermOption) note.OrderOption + toCursor func(*Note) Cursor } -// GroupMembershipHistoryOrder defines the ordering of GroupMembershipHistory. -type GroupMembershipHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *GroupMembershipHistoryOrderField `json:"field"` +// NoteOrder defines the ordering of Note. +type NoteOrder struct { + Direction OrderDirection `json:"direction"` + Field *NoteOrderField `json:"field"` } -// DefaultGroupMembershipHistoryOrder is the default ordering of GroupMembershipHistory. -var DefaultGroupMembershipHistoryOrder = &GroupMembershipHistoryOrder{ +// DefaultNoteOrder is the default ordering of Note. +var DefaultNoteOrder = &NoteOrder{ Direction: entgql.OrderDirectionAsc, - Field: &GroupMembershipHistoryOrderField{ - Value: func(gmh *GroupMembershipHistory) (ent.Value, error) { - return gmh.ID, nil + Field: &NoteOrderField{ + Value: func(n *Note) (ent.Value, error) { + return n.ID, nil }, - column: groupmembershiphistory.FieldID, - toTerm: groupmembershiphistory.ByID, - toCursor: func(gmh *GroupMembershipHistory) Cursor { - return Cursor{ID: gmh.ID} + column: note.FieldID, + toTerm: note.ByID, + toCursor: func(n *Note) Cursor { + return Cursor{ID: n.ID} }, }, } -// ToEdge converts GroupMembershipHistory into GroupMembershipHistoryEdge. -func (gmh *GroupMembershipHistory) ToEdge(order *GroupMembershipHistoryOrder) *GroupMembershipHistoryEdge { +// ToEdge converts Note into NoteEdge. +func (n *Note) ToEdge(order *NoteOrder) *NoteEdge { if order == nil { - order = DefaultGroupMembershipHistoryOrder + order = DefaultNoteOrder } - return &GroupMembershipHistoryEdge{ - Node: gmh, - Cursor: order.Field.toCursor(gmh), + return &NoteEdge{ + Node: n, + Cursor: order.Field.toCursor(n), } } -// GroupSettingEdge is the edge representation of GroupSetting. -type GroupSettingEdge struct { - Node *GroupSetting `json:"node"` - Cursor Cursor `json:"cursor"` +// NoteHistoryEdge is the edge representation of NoteHistory. +type NoteHistoryEdge struct { + Node *NoteHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// GroupSettingConnection is the connection containing edges to GroupSetting. -type GroupSettingConnection struct { - Edges []*GroupSettingEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// NoteHistoryConnection is the connection containing edges to NoteHistory. +type NoteHistoryConnection struct { + Edges []*NoteHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *GroupSettingConnection) build(nodes []*GroupSetting, pager *groupsettingPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *NoteHistoryConnection) build(nodes []*NoteHistory, pager *notehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -6753,21 +11513,21 @@ func (c *GroupSettingConnection) build(nodes []*GroupSetting, pager *groupsettin c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *GroupSetting + var nodeAt func(int) *NoteHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *GroupSetting { + nodeAt = func(i int) *NoteHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *GroupSetting { + nodeAt = func(i int) *NoteHistory { return nodes[i] } } - c.Edges = make([]*GroupSettingEdge, len(nodes)) + c.Edges = make([]*NoteHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &GroupSettingEdge{ + c.Edges[i] = &NoteHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -6781,87 +11541,87 @@ func (c *GroupSettingConnection) build(nodes []*GroupSetting, pager *groupsettin } } -// GroupSettingPaginateOption enables pagination customization. -type GroupSettingPaginateOption func(*groupsettingPager) error +// NoteHistoryPaginateOption enables pagination customization. +type NoteHistoryPaginateOption func(*notehistoryPager) error -// WithGroupSettingOrder configures pagination ordering. -func WithGroupSettingOrder(order *GroupSettingOrder) GroupSettingPaginateOption { +// WithNoteHistoryOrder configures pagination ordering. +func WithNoteHistoryOrder(order *NoteHistoryOrder) NoteHistoryPaginateOption { if order == nil { - order = DefaultGroupSettingOrder + order = DefaultNoteHistoryOrder } o := *order - return func(pager *groupsettingPager) error { + return func(pager *notehistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultGroupSettingOrder.Field + o.Field = DefaultNoteHistoryOrder.Field } pager.order = &o return nil } } -// WithGroupSettingFilter configures pagination filter. -func WithGroupSettingFilter(filter func(*GroupSettingQuery) (*GroupSettingQuery, error)) GroupSettingPaginateOption { - return func(pager *groupsettingPager) error { +// WithNoteHistoryFilter configures pagination filter. +func WithNoteHistoryFilter(filter func(*NoteHistoryQuery) (*NoteHistoryQuery, error)) NoteHistoryPaginateOption { + return func(pager *notehistoryPager) error { if filter == nil { - return errors.New("GroupSettingQuery filter cannot be nil") + return errors.New("NoteHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type groupsettingPager struct { +type notehistoryPager struct { reverse bool - order *GroupSettingOrder - filter func(*GroupSettingQuery) (*GroupSettingQuery, error) + order *NoteHistoryOrder + filter func(*NoteHistoryQuery) (*NoteHistoryQuery, error) } -func newGroupSettingPager(opts []GroupSettingPaginateOption, reverse bool) (*groupsettingPager, error) { - pager := &groupsettingPager{reverse: reverse} +func newNoteHistoryPager(opts []NoteHistoryPaginateOption, reverse bool) (*notehistoryPager, error) { + pager := ¬ehistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultGroupSettingOrder + pager.order = DefaultNoteHistoryOrder } return pager, nil } -func (p *groupsettingPager) applyFilter(query *GroupSettingQuery) (*GroupSettingQuery, error) { +func (p *notehistoryPager) applyFilter(query *NoteHistoryQuery) (*NoteHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *groupsettingPager) toCursor(gs *GroupSetting) Cursor { - return p.order.Field.toCursor(gs) +func (p *notehistoryPager) toCursor(nh *NoteHistory) Cursor { + return p.order.Field.toCursor(nh) } -func (p *groupsettingPager) applyCursors(query *GroupSettingQuery, after, before *Cursor) (*GroupSettingQuery, error) { +func (p *notehistoryPager) applyCursors(query *NoteHistoryQuery, after, before *Cursor) (*NoteHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultGroupSettingOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultNoteHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *groupsettingPager) applyOrder(query *GroupSettingQuery) *GroupSettingQuery { +func (p *notehistoryPager) applyOrder(query *NoteHistoryQuery) *NoteHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultGroupSettingOrder.Field { - query = query.Order(DefaultGroupSettingOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultNoteHistoryOrder.Field { + query = query.Order(DefaultNoteHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -6869,7 +11629,7 @@ func (p *groupsettingPager) applyOrder(query *GroupSettingQuery) *GroupSettingQu return query } -func (p *groupsettingPager) orderExpr(query *GroupSettingQuery) sql.Querier { +func (p *notehistoryPager) orderExpr(query *NoteHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -6879,33 +11639,33 @@ func (p *groupsettingPager) orderExpr(query *GroupSettingQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultGroupSettingOrder.Field { - b.Comma().Ident(DefaultGroupSettingOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultNoteHistoryOrder.Field { + b.Comma().Ident(DefaultNoteHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to GroupSetting. -func (gs *GroupSettingQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to NoteHistory. +func (nh *NoteHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...GroupSettingPaginateOption, -) (*GroupSettingConnection, error) { + before *Cursor, last *int, opts ...NoteHistoryPaginateOption, +) (*NoteHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newGroupSettingPager(opts, last != nil) + pager, err := newNoteHistoryPager(opts, last != nil) if err != nil { return nil, err } - if gs, err = pager.applyFilter(gs); err != nil { + if nh, err = pager.applyFilter(nh); err != nil { return nil, err } - conn := &GroupSettingConnection{Edges: []*GroupSettingEdge{}} + conn := &NoteHistoryConnection{Edges: []*NoteHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := gs.Clone() + c := nh.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -6917,20 +11677,20 @@ func (gs *GroupSettingQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if gs, err = pager.applyCursors(gs, after, before); err != nil { + if nh, err = pager.applyCursors(nh, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - gs.Limit(limit) + nh.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := gs.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := nh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - gs = pager.applyOrder(gs) - nodes, err := gs.All(ctx) + nh = pager.applyOrder(nh) + nodes, err := nh.All(ctx) if err != nil { return nil, err } @@ -6938,61 +11698,61 @@ func (gs *GroupSettingQuery) Paginate( return conn, nil } -// GroupSettingOrderField defines the ordering field of GroupSetting. -type GroupSettingOrderField struct { - // Value extracts the ordering value from the given GroupSetting. - Value func(*GroupSetting) (ent.Value, error) +// NoteHistoryOrderField defines the ordering field of NoteHistory. +type NoteHistoryOrderField struct { + // Value extracts the ordering value from the given NoteHistory. + Value func(*NoteHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) groupsetting.OrderOption - toCursor func(*GroupSetting) Cursor + toTerm func(...sql.OrderTermOption) notehistory.OrderOption + toCursor func(*NoteHistory) Cursor } -// GroupSettingOrder defines the ordering of GroupSetting. -type GroupSettingOrder struct { - Direction OrderDirection `json:"direction"` - Field *GroupSettingOrderField `json:"field"` +// NoteHistoryOrder defines the ordering of NoteHistory. +type NoteHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *NoteHistoryOrderField `json:"field"` } -// DefaultGroupSettingOrder is the default ordering of GroupSetting. -var DefaultGroupSettingOrder = &GroupSettingOrder{ +// DefaultNoteHistoryOrder is the default ordering of NoteHistory. +var DefaultNoteHistoryOrder = &NoteHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &GroupSettingOrderField{ - Value: func(gs *GroupSetting) (ent.Value, error) { - return gs.ID, nil + Field: &NoteHistoryOrderField{ + Value: func(nh *NoteHistory) (ent.Value, error) { + return nh.ID, nil }, - column: groupsetting.FieldID, - toTerm: groupsetting.ByID, - toCursor: func(gs *GroupSetting) Cursor { - return Cursor{ID: gs.ID} + column: notehistory.FieldID, + toTerm: notehistory.ByID, + toCursor: func(nh *NoteHistory) Cursor { + return Cursor{ID: nh.ID} }, }, } -// ToEdge converts GroupSetting into GroupSettingEdge. -func (gs *GroupSetting) ToEdge(order *GroupSettingOrder) *GroupSettingEdge { +// ToEdge converts NoteHistory into NoteHistoryEdge. +func (nh *NoteHistory) ToEdge(order *NoteHistoryOrder) *NoteHistoryEdge { if order == nil { - order = DefaultGroupSettingOrder + order = DefaultNoteHistoryOrder } - return &GroupSettingEdge{ - Node: gs, - Cursor: order.Field.toCursor(gs), + return &NoteHistoryEdge{ + Node: nh, + Cursor: order.Field.toCursor(nh), } } -// GroupSettingHistoryEdge is the edge representation of GroupSettingHistory. -type GroupSettingHistoryEdge struct { - Node *GroupSettingHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// OauthProviderEdge is the edge representation of OauthProvider. +type OauthProviderEdge struct { + Node *OauthProvider `json:"node"` + Cursor Cursor `json:"cursor"` } -// GroupSettingHistoryConnection is the connection containing edges to GroupSettingHistory. -type GroupSettingHistoryConnection struct { - Edges []*GroupSettingHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// OauthProviderConnection is the connection containing edges to OauthProvider. +type OauthProviderConnection struct { + Edges []*OauthProviderEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *GroupSettingHistoryConnection) build(nodes []*GroupSettingHistory, pager *groupsettinghistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *OauthProviderConnection) build(nodes []*OauthProvider, pager *oauthproviderPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -7002,21 +11762,21 @@ func (c *GroupSettingHistoryConnection) build(nodes []*GroupSettingHistory, page c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *GroupSettingHistory + var nodeAt func(int) *OauthProvider if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *GroupSettingHistory { + nodeAt = func(i int) *OauthProvider { return nodes[n-i] } } else { - nodeAt = func(i int) *GroupSettingHistory { + nodeAt = func(i int) *OauthProvider { return nodes[i] } } - c.Edges = make([]*GroupSettingHistoryEdge, len(nodes)) + c.Edges = make([]*OauthProviderEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &GroupSettingHistoryEdge{ + c.Edges[i] = &OauthProviderEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -7030,87 +11790,87 @@ func (c *GroupSettingHistoryConnection) build(nodes []*GroupSettingHistory, page } } -// GroupSettingHistoryPaginateOption enables pagination customization. -type GroupSettingHistoryPaginateOption func(*groupsettinghistoryPager) error +// OauthProviderPaginateOption enables pagination customization. +type OauthProviderPaginateOption func(*oauthproviderPager) error -// WithGroupSettingHistoryOrder configures pagination ordering. -func WithGroupSettingHistoryOrder(order *GroupSettingHistoryOrder) GroupSettingHistoryPaginateOption { +// WithOauthProviderOrder configures pagination ordering. +func WithOauthProviderOrder(order *OauthProviderOrder) OauthProviderPaginateOption { if order == nil { - order = DefaultGroupSettingHistoryOrder + order = DefaultOauthProviderOrder } o := *order - return func(pager *groupsettinghistoryPager) error { + return func(pager *oauthproviderPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultGroupSettingHistoryOrder.Field + o.Field = DefaultOauthProviderOrder.Field } pager.order = &o return nil } } -// WithGroupSettingHistoryFilter configures pagination filter. -func WithGroupSettingHistoryFilter(filter func(*GroupSettingHistoryQuery) (*GroupSettingHistoryQuery, error)) GroupSettingHistoryPaginateOption { - return func(pager *groupsettinghistoryPager) error { +// WithOauthProviderFilter configures pagination filter. +func WithOauthProviderFilter(filter func(*OauthProviderQuery) (*OauthProviderQuery, error)) OauthProviderPaginateOption { + return func(pager *oauthproviderPager) error { if filter == nil { - return errors.New("GroupSettingHistoryQuery filter cannot be nil") + return errors.New("OauthProviderQuery filter cannot be nil") } pager.filter = filter return nil } } -type groupsettinghistoryPager struct { +type oauthproviderPager struct { reverse bool - order *GroupSettingHistoryOrder - filter func(*GroupSettingHistoryQuery) (*GroupSettingHistoryQuery, error) + order *OauthProviderOrder + filter func(*OauthProviderQuery) (*OauthProviderQuery, error) } -func newGroupSettingHistoryPager(opts []GroupSettingHistoryPaginateOption, reverse bool) (*groupsettinghistoryPager, error) { - pager := &groupsettinghistoryPager{reverse: reverse} +func newOauthProviderPager(opts []OauthProviderPaginateOption, reverse bool) (*oauthproviderPager, error) { + pager := &oauthproviderPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultGroupSettingHistoryOrder + pager.order = DefaultOauthProviderOrder } return pager, nil } -func (p *groupsettinghistoryPager) applyFilter(query *GroupSettingHistoryQuery) (*GroupSettingHistoryQuery, error) { +func (p *oauthproviderPager) applyFilter(query *OauthProviderQuery) (*OauthProviderQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *groupsettinghistoryPager) toCursor(gsh *GroupSettingHistory) Cursor { - return p.order.Field.toCursor(gsh) +func (p *oauthproviderPager) toCursor(op *OauthProvider) Cursor { + return p.order.Field.toCursor(op) } -func (p *groupsettinghistoryPager) applyCursors(query *GroupSettingHistoryQuery, after, before *Cursor) (*GroupSettingHistoryQuery, error) { +func (p *oauthproviderPager) applyCursors(query *OauthProviderQuery, after, before *Cursor) (*OauthProviderQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultGroupSettingHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOauthProviderOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *groupsettinghistoryPager) applyOrder(query *GroupSettingHistoryQuery) *GroupSettingHistoryQuery { +func (p *oauthproviderPager) applyOrder(query *OauthProviderQuery) *OauthProviderQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultGroupSettingHistoryOrder.Field { - query = query.Order(DefaultGroupSettingHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultOauthProviderOrder.Field { + query = query.Order(DefaultOauthProviderOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -7118,7 +11878,7 @@ func (p *groupsettinghistoryPager) applyOrder(query *GroupSettingHistoryQuery) * return query } -func (p *groupsettinghistoryPager) orderExpr(query *GroupSettingHistoryQuery) sql.Querier { +func (p *oauthproviderPager) orderExpr(query *OauthProviderQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -7128,33 +11888,33 @@ func (p *groupsettinghistoryPager) orderExpr(query *GroupSettingHistoryQuery) sq } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultGroupSettingHistoryOrder.Field { - b.Comma().Ident(DefaultGroupSettingHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultOauthProviderOrder.Field { + b.Comma().Ident(DefaultOauthProviderOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to GroupSettingHistory. -func (gsh *GroupSettingHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to OauthProvider. +func (op *OauthProviderQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...GroupSettingHistoryPaginateOption, -) (*GroupSettingHistoryConnection, error) { + before *Cursor, last *int, opts ...OauthProviderPaginateOption, +) (*OauthProviderConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newGroupSettingHistoryPager(opts, last != nil) + pager, err := newOauthProviderPager(opts, last != nil) if err != nil { return nil, err } - if gsh, err = pager.applyFilter(gsh); err != nil { + if op, err = pager.applyFilter(op); err != nil { return nil, err } - conn := &GroupSettingHistoryConnection{Edges: []*GroupSettingHistoryEdge{}} + conn := &OauthProviderConnection{Edges: []*OauthProviderEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := gsh.Clone() + c := op.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -7166,20 +11926,20 @@ func (gsh *GroupSettingHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if gsh, err = pager.applyCursors(gsh, after, before); err != nil { + if op, err = pager.applyCursors(op, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - gsh.Limit(limit) + op.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := gsh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := op.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - gsh = pager.applyOrder(gsh) - nodes, err := gsh.All(ctx) + op = pager.applyOrder(op) + nodes, err := op.All(ctx) if err != nil { return nil, err } @@ -7187,61 +11947,61 @@ func (gsh *GroupSettingHistoryQuery) Paginate( return conn, nil } -// GroupSettingHistoryOrderField defines the ordering field of GroupSettingHistory. -type GroupSettingHistoryOrderField struct { - // Value extracts the ordering value from the given GroupSettingHistory. - Value func(*GroupSettingHistory) (ent.Value, error) +// OauthProviderOrderField defines the ordering field of OauthProvider. +type OauthProviderOrderField struct { + // Value extracts the ordering value from the given OauthProvider. + Value func(*OauthProvider) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) groupsettinghistory.OrderOption - toCursor func(*GroupSettingHistory) Cursor + toTerm func(...sql.OrderTermOption) oauthprovider.OrderOption + toCursor func(*OauthProvider) Cursor } -// GroupSettingHistoryOrder defines the ordering of GroupSettingHistory. -type GroupSettingHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *GroupSettingHistoryOrderField `json:"field"` +// OauthProviderOrder defines the ordering of OauthProvider. +type OauthProviderOrder struct { + Direction OrderDirection `json:"direction"` + Field *OauthProviderOrderField `json:"field"` } -// DefaultGroupSettingHistoryOrder is the default ordering of GroupSettingHistory. -var DefaultGroupSettingHistoryOrder = &GroupSettingHistoryOrder{ +// DefaultOauthProviderOrder is the default ordering of OauthProvider. +var DefaultOauthProviderOrder = &OauthProviderOrder{ Direction: entgql.OrderDirectionAsc, - Field: &GroupSettingHistoryOrderField{ - Value: func(gsh *GroupSettingHistory) (ent.Value, error) { - return gsh.ID, nil + Field: &OauthProviderOrderField{ + Value: func(op *OauthProvider) (ent.Value, error) { + return op.ID, nil }, - column: groupsettinghistory.FieldID, - toTerm: groupsettinghistory.ByID, - toCursor: func(gsh *GroupSettingHistory) Cursor { - return Cursor{ID: gsh.ID} + column: oauthprovider.FieldID, + toTerm: oauthprovider.ByID, + toCursor: func(op *OauthProvider) Cursor { + return Cursor{ID: op.ID} }, }, } -// ToEdge converts GroupSettingHistory into GroupSettingHistoryEdge. -func (gsh *GroupSettingHistory) ToEdge(order *GroupSettingHistoryOrder) *GroupSettingHistoryEdge { +// ToEdge converts OauthProvider into OauthProviderEdge. +func (op *OauthProvider) ToEdge(order *OauthProviderOrder) *OauthProviderEdge { if order == nil { - order = DefaultGroupSettingHistoryOrder + order = DefaultOauthProviderOrder } - return &GroupSettingHistoryEdge{ - Node: gsh, - Cursor: order.Field.toCursor(gsh), + return &OauthProviderEdge{ + Node: op, + Cursor: order.Field.toCursor(op), } } -// HushEdge is the edge representation of Hush. -type HushEdge struct { - Node *Hush `json:"node"` - Cursor Cursor `json:"cursor"` +// OauthProviderHistoryEdge is the edge representation of OauthProviderHistory. +type OauthProviderHistoryEdge struct { + Node *OauthProviderHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// HushConnection is the connection containing edges to Hush. -type HushConnection struct { - Edges []*HushEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// OauthProviderHistoryConnection is the connection containing edges to OauthProviderHistory. +type OauthProviderHistoryConnection struct { + Edges []*OauthProviderHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *HushConnection) build(nodes []*Hush, pager *hushPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *OauthProviderHistoryConnection) build(nodes []*OauthProviderHistory, pager *oauthproviderhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -7251,21 +12011,21 @@ func (c *HushConnection) build(nodes []*Hush, pager *hushPager, after *Cursor, f c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *Hush + var nodeAt func(int) *OauthProviderHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *Hush { + nodeAt = func(i int) *OauthProviderHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *Hush { + nodeAt = func(i int) *OauthProviderHistory { return nodes[i] } } - c.Edges = make([]*HushEdge, len(nodes)) + c.Edges = make([]*OauthProviderHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &HushEdge{ + c.Edges[i] = &OauthProviderHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -7279,87 +12039,87 @@ func (c *HushConnection) build(nodes []*Hush, pager *hushPager, after *Cursor, f } } -// HushPaginateOption enables pagination customization. -type HushPaginateOption func(*hushPager) error +// OauthProviderHistoryPaginateOption enables pagination customization. +type OauthProviderHistoryPaginateOption func(*oauthproviderhistoryPager) error -// WithHushOrder configures pagination ordering. -func WithHushOrder(order *HushOrder) HushPaginateOption { +// WithOauthProviderHistoryOrder configures pagination ordering. +func WithOauthProviderHistoryOrder(order *OauthProviderHistoryOrder) OauthProviderHistoryPaginateOption { if order == nil { - order = DefaultHushOrder + order = DefaultOauthProviderHistoryOrder } o := *order - return func(pager *hushPager) error { + return func(pager *oauthproviderhistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultHushOrder.Field + o.Field = DefaultOauthProviderHistoryOrder.Field } pager.order = &o return nil } } -// WithHushFilter configures pagination filter. -func WithHushFilter(filter func(*HushQuery) (*HushQuery, error)) HushPaginateOption { - return func(pager *hushPager) error { +// WithOauthProviderHistoryFilter configures pagination filter. +func WithOauthProviderHistoryFilter(filter func(*OauthProviderHistoryQuery) (*OauthProviderHistoryQuery, error)) OauthProviderHistoryPaginateOption { + return func(pager *oauthproviderhistoryPager) error { if filter == nil { - return errors.New("HushQuery filter cannot be nil") + return errors.New("OauthProviderHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type hushPager struct { +type oauthproviderhistoryPager struct { reverse bool - order *HushOrder - filter func(*HushQuery) (*HushQuery, error) + order *OauthProviderHistoryOrder + filter func(*OauthProviderHistoryQuery) (*OauthProviderHistoryQuery, error) } -func newHushPager(opts []HushPaginateOption, reverse bool) (*hushPager, error) { - pager := &hushPager{reverse: reverse} +func newOauthProviderHistoryPager(opts []OauthProviderHistoryPaginateOption, reverse bool) (*oauthproviderhistoryPager, error) { + pager := &oauthproviderhistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultHushOrder + pager.order = DefaultOauthProviderHistoryOrder } return pager, nil } -func (p *hushPager) applyFilter(query *HushQuery) (*HushQuery, error) { +func (p *oauthproviderhistoryPager) applyFilter(query *OauthProviderHistoryQuery) (*OauthProviderHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *hushPager) toCursor(h *Hush) Cursor { - return p.order.Field.toCursor(h) +func (p *oauthproviderhistoryPager) toCursor(oph *OauthProviderHistory) Cursor { + return p.order.Field.toCursor(oph) } -func (p *hushPager) applyCursors(query *HushQuery, after, before *Cursor) (*HushQuery, error) { +func (p *oauthproviderhistoryPager) applyCursors(query *OauthProviderHistoryQuery, after, before *Cursor) (*OauthProviderHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultHushOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOauthProviderHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *hushPager) applyOrder(query *HushQuery) *HushQuery { +func (p *oauthproviderhistoryPager) applyOrder(query *OauthProviderHistoryQuery) *OauthProviderHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultHushOrder.Field { - query = query.Order(DefaultHushOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultOauthProviderHistoryOrder.Field { + query = query.Order(DefaultOauthProviderHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -7367,7 +12127,7 @@ func (p *hushPager) applyOrder(query *HushQuery) *HushQuery { return query } -func (p *hushPager) orderExpr(query *HushQuery) sql.Querier { +func (p *oauthproviderhistoryPager) orderExpr(query *OauthProviderHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -7377,33 +12137,33 @@ func (p *hushPager) orderExpr(query *HushQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultHushOrder.Field { - b.Comma().Ident(DefaultHushOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultOauthProviderHistoryOrder.Field { + b.Comma().Ident(DefaultOauthProviderHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to Hush. -func (h *HushQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to OauthProviderHistory. +func (oph *OauthProviderHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...HushPaginateOption, -) (*HushConnection, error) { + before *Cursor, last *int, opts ...OauthProviderHistoryPaginateOption, +) (*OauthProviderHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newHushPager(opts, last != nil) + pager, err := newOauthProviderHistoryPager(opts, last != nil) if err != nil { return nil, err } - if h, err = pager.applyFilter(h); err != nil { + if oph, err = pager.applyFilter(oph); err != nil { return nil, err } - conn := &HushConnection{Edges: []*HushEdge{}} + conn := &OauthProviderHistoryConnection{Edges: []*OauthProviderHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := h.Clone() + c := oph.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -7415,147 +12175,82 @@ func (h *HushQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if h, err = pager.applyCursors(h, after, before); err != nil { + if oph, err = pager.applyCursors(oph, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - h.Limit(limit) + oph.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := h.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { - return nil, err - } - } - h = pager.applyOrder(h) - nodes, err := h.All(ctx) - if err != nil { - return nil, err - } - conn.build(nodes, pager, after, first, before, last) - return conn, nil -} - -var ( - // HushOrderFieldName orders Hush by name. - HushOrderFieldName = &HushOrderField{ - Value: func(h *Hush) (ent.Value, error) { - return h.Name, nil - }, - column: hush.FieldName, - toTerm: hush.ByName, - toCursor: func(h *Hush) Cursor { - return Cursor{ - ID: h.ID, - Value: h.Name, - } - }, - } - // HushOrderFieldKind orders Hush by kind. - HushOrderFieldKind = &HushOrderField{ - Value: func(h *Hush) (ent.Value, error) { - return h.Kind, nil - }, - column: hush.FieldKind, - toTerm: hush.ByKind, - toCursor: func(h *Hush) Cursor { - return Cursor{ - ID: h.ID, - Value: h.Kind, - } - }, - } -) - -// String implement fmt.Stringer interface. -func (f HushOrderField) String() string { - var str string - switch f.column { - case HushOrderFieldName.column: - str = "name" - case HushOrderFieldKind.column: - str = "kind" - } - return str -} - -// MarshalGQL implements graphql.Marshaler interface. -func (f HushOrderField) MarshalGQL(w io.Writer) { - io.WriteString(w, strconv.Quote(f.String())) -} - -// UnmarshalGQL implements graphql.Unmarshaler interface. -func (f *HushOrderField) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("HushOrderField %T must be a string", v) - } - switch str { - case "name": - *f = *HushOrderFieldName - case "kind": - *f = *HushOrderFieldKind - default: - return fmt.Errorf("%s is not a valid HushOrderField", str) + if err := oph.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } } - return nil + oph = pager.applyOrder(oph) + nodes, err := oph.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil } -// HushOrderField defines the ordering field of Hush. -type HushOrderField struct { - // Value extracts the ordering value from the given Hush. - Value func(*Hush) (ent.Value, error) +// OauthProviderHistoryOrderField defines the ordering field of OauthProviderHistory. +type OauthProviderHistoryOrderField struct { + // Value extracts the ordering value from the given OauthProviderHistory. + Value func(*OauthProviderHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) hush.OrderOption - toCursor func(*Hush) Cursor + toTerm func(...sql.OrderTermOption) oauthproviderhistory.OrderOption + toCursor func(*OauthProviderHistory) Cursor } -// HushOrder defines the ordering of Hush. -type HushOrder struct { - Direction OrderDirection `json:"direction"` - Field *HushOrderField `json:"field"` +// OauthProviderHistoryOrder defines the ordering of OauthProviderHistory. +type OauthProviderHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *OauthProviderHistoryOrderField `json:"field"` } -// DefaultHushOrder is the default ordering of Hush. -var DefaultHushOrder = &HushOrder{ +// DefaultOauthProviderHistoryOrder is the default ordering of OauthProviderHistory. +var DefaultOauthProviderHistoryOrder = &OauthProviderHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &HushOrderField{ - Value: func(h *Hush) (ent.Value, error) { - return h.ID, nil + Field: &OauthProviderHistoryOrderField{ + Value: func(oph *OauthProviderHistory) (ent.Value, error) { + return oph.ID, nil }, - column: hush.FieldID, - toTerm: hush.ByID, - toCursor: func(h *Hush) Cursor { - return Cursor{ID: h.ID} + column: oauthproviderhistory.FieldID, + toTerm: oauthproviderhistory.ByID, + toCursor: func(oph *OauthProviderHistory) Cursor { + return Cursor{ID: oph.ID} }, }, } -// ToEdge converts Hush into HushEdge. -func (h *Hush) ToEdge(order *HushOrder) *HushEdge { +// ToEdge converts OauthProviderHistory into OauthProviderHistoryEdge. +func (oph *OauthProviderHistory) ToEdge(order *OauthProviderHistoryOrder) *OauthProviderHistoryEdge { if order == nil { - order = DefaultHushOrder + order = DefaultOauthProviderHistoryOrder } - return &HushEdge{ - Node: h, - Cursor: order.Field.toCursor(h), + return &OauthProviderHistoryEdge{ + Node: oph, + Cursor: order.Field.toCursor(oph), } } -// HushHistoryEdge is the edge representation of HushHistory. -type HushHistoryEdge struct { - Node *HushHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// OhAuthTooTokenEdge is the edge representation of OhAuthTooToken. +type OhAuthTooTokenEdge struct { + Node *OhAuthTooToken `json:"node"` + Cursor Cursor `json:"cursor"` } -// HushHistoryConnection is the connection containing edges to HushHistory. -type HushHistoryConnection struct { - Edges []*HushHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// OhAuthTooTokenConnection is the connection containing edges to OhAuthTooToken. +type OhAuthTooTokenConnection struct { + Edges []*OhAuthTooTokenEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *HushHistoryConnection) build(nodes []*HushHistory, pager *hushhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *OhAuthTooTokenConnection) build(nodes []*OhAuthTooToken, pager *ohauthtootokenPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -7565,21 +12260,21 @@ func (c *HushHistoryConnection) build(nodes []*HushHistory, pager *hushhistoryPa c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *HushHistory + var nodeAt func(int) *OhAuthTooToken if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *HushHistory { + nodeAt = func(i int) *OhAuthTooToken { return nodes[n-i] } } else { - nodeAt = func(i int) *HushHistory { + nodeAt = func(i int) *OhAuthTooToken { return nodes[i] } } - c.Edges = make([]*HushHistoryEdge, len(nodes)) + c.Edges = make([]*OhAuthTooTokenEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &HushHistoryEdge{ + c.Edges[i] = &OhAuthTooTokenEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -7593,87 +12288,87 @@ func (c *HushHistoryConnection) build(nodes []*HushHistory, pager *hushhistoryPa } } -// HushHistoryPaginateOption enables pagination customization. -type HushHistoryPaginateOption func(*hushhistoryPager) error +// OhAuthTooTokenPaginateOption enables pagination customization. +type OhAuthTooTokenPaginateOption func(*ohauthtootokenPager) error -// WithHushHistoryOrder configures pagination ordering. -func WithHushHistoryOrder(order *HushHistoryOrder) HushHistoryPaginateOption { +// WithOhAuthTooTokenOrder configures pagination ordering. +func WithOhAuthTooTokenOrder(order *OhAuthTooTokenOrder) OhAuthTooTokenPaginateOption { if order == nil { - order = DefaultHushHistoryOrder + order = DefaultOhAuthTooTokenOrder } o := *order - return func(pager *hushhistoryPager) error { + return func(pager *ohauthtootokenPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultHushHistoryOrder.Field + o.Field = DefaultOhAuthTooTokenOrder.Field } pager.order = &o return nil } } -// WithHushHistoryFilter configures pagination filter. -func WithHushHistoryFilter(filter func(*HushHistoryQuery) (*HushHistoryQuery, error)) HushHistoryPaginateOption { - return func(pager *hushhistoryPager) error { +// WithOhAuthTooTokenFilter configures pagination filter. +func WithOhAuthTooTokenFilter(filter func(*OhAuthTooTokenQuery) (*OhAuthTooTokenQuery, error)) OhAuthTooTokenPaginateOption { + return func(pager *ohauthtootokenPager) error { if filter == nil { - return errors.New("HushHistoryQuery filter cannot be nil") + return errors.New("OhAuthTooTokenQuery filter cannot be nil") } pager.filter = filter return nil } } -type hushhistoryPager struct { +type ohauthtootokenPager struct { reverse bool - order *HushHistoryOrder - filter func(*HushHistoryQuery) (*HushHistoryQuery, error) + order *OhAuthTooTokenOrder + filter func(*OhAuthTooTokenQuery) (*OhAuthTooTokenQuery, error) } -func newHushHistoryPager(opts []HushHistoryPaginateOption, reverse bool) (*hushhistoryPager, error) { - pager := &hushhistoryPager{reverse: reverse} +func newOhAuthTooTokenPager(opts []OhAuthTooTokenPaginateOption, reverse bool) (*ohauthtootokenPager, error) { + pager := &ohauthtootokenPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultHushHistoryOrder + pager.order = DefaultOhAuthTooTokenOrder } return pager, nil } -func (p *hushhistoryPager) applyFilter(query *HushHistoryQuery) (*HushHistoryQuery, error) { +func (p *ohauthtootokenPager) applyFilter(query *OhAuthTooTokenQuery) (*OhAuthTooTokenQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *hushhistoryPager) toCursor(hh *HushHistory) Cursor { - return p.order.Field.toCursor(hh) +func (p *ohauthtootokenPager) toCursor(oatt *OhAuthTooToken) Cursor { + return p.order.Field.toCursor(oatt) } -func (p *hushhistoryPager) applyCursors(query *HushHistoryQuery, after, before *Cursor) (*HushHistoryQuery, error) { +func (p *ohauthtootokenPager) applyCursors(query *OhAuthTooTokenQuery, after, before *Cursor) (*OhAuthTooTokenQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultHushHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOhAuthTooTokenOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *hushhistoryPager) applyOrder(query *HushHistoryQuery) *HushHistoryQuery { +func (p *ohauthtootokenPager) applyOrder(query *OhAuthTooTokenQuery) *OhAuthTooTokenQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultHushHistoryOrder.Field { - query = query.Order(DefaultHushHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultOhAuthTooTokenOrder.Field { + query = query.Order(DefaultOhAuthTooTokenOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -7681,7 +12376,7 @@ func (p *hushhistoryPager) applyOrder(query *HushHistoryQuery) *HushHistoryQuery return query } -func (p *hushhistoryPager) orderExpr(query *HushHistoryQuery) sql.Querier { +func (p *ohauthtootokenPager) orderExpr(query *OhAuthTooTokenQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -7691,33 +12386,33 @@ func (p *hushhistoryPager) orderExpr(query *HushHistoryQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultHushHistoryOrder.Field { - b.Comma().Ident(DefaultHushHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultOhAuthTooTokenOrder.Field { + b.Comma().Ident(DefaultOhAuthTooTokenOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to HushHistory. -func (hh *HushHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to OhAuthTooToken. +func (oatt *OhAuthTooTokenQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...HushHistoryPaginateOption, -) (*HushHistoryConnection, error) { + before *Cursor, last *int, opts ...OhAuthTooTokenPaginateOption, +) (*OhAuthTooTokenConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newHushHistoryPager(opts, last != nil) + pager, err := newOhAuthTooTokenPager(opts, last != nil) if err != nil { return nil, err } - if hh, err = pager.applyFilter(hh); err != nil { + if oatt, err = pager.applyFilter(oatt); err != nil { return nil, err } - conn := &HushHistoryConnection{Edges: []*HushHistoryEdge{}} + conn := &OhAuthTooTokenConnection{Edges: []*OhAuthTooTokenEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := hh.Clone() + c := oatt.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -7729,20 +12424,20 @@ func (hh *HushHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if hh, err = pager.applyCursors(hh, after, before); err != nil { + if oatt, err = pager.applyCursors(oatt, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - hh.Limit(limit) + oatt.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := hh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := oatt.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - hh = pager.applyOrder(hh) - nodes, err := hh.All(ctx) + oatt = pager.applyOrder(oatt) + nodes, err := oatt.All(ctx) if err != nil { return nil, err } @@ -7750,126 +12445,61 @@ func (hh *HushHistoryQuery) Paginate( return conn, nil } -var ( - // HushHistoryOrderFieldName orders HushHistory by name. - HushHistoryOrderFieldName = &HushHistoryOrderField{ - Value: func(hh *HushHistory) (ent.Value, error) { - return hh.Name, nil - }, - column: hushhistory.FieldName, - toTerm: hushhistory.ByName, - toCursor: func(hh *HushHistory) Cursor { - return Cursor{ - ID: hh.ID, - Value: hh.Name, - } - }, - } - // HushHistoryOrderFieldKind orders HushHistory by kind. - HushHistoryOrderFieldKind = &HushHistoryOrderField{ - Value: func(hh *HushHistory) (ent.Value, error) { - return hh.Kind, nil - }, - column: hushhistory.FieldKind, - toTerm: hushhistory.ByKind, - toCursor: func(hh *HushHistory) Cursor { - return Cursor{ - ID: hh.ID, - Value: hh.Kind, - } - }, - } -) - -// String implement fmt.Stringer interface. -func (f HushHistoryOrderField) String() string { - var str string - switch f.column { - case HushHistoryOrderFieldName.column: - str = "name" - case HushHistoryOrderFieldKind.column: - str = "kind" - } - return str -} - -// MarshalGQL implements graphql.Marshaler interface. -func (f HushHistoryOrderField) MarshalGQL(w io.Writer) { - io.WriteString(w, strconv.Quote(f.String())) -} - -// UnmarshalGQL implements graphql.Unmarshaler interface. -func (f *HushHistoryOrderField) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("HushHistoryOrderField %T must be a string", v) - } - switch str { - case "name": - *f = *HushHistoryOrderFieldName - case "kind": - *f = *HushHistoryOrderFieldKind - default: - return fmt.Errorf("%s is not a valid HushHistoryOrderField", str) - } - return nil -} - -// HushHistoryOrderField defines the ordering field of HushHistory. -type HushHistoryOrderField struct { - // Value extracts the ordering value from the given HushHistory. - Value func(*HushHistory) (ent.Value, error) +// OhAuthTooTokenOrderField defines the ordering field of OhAuthTooToken. +type OhAuthTooTokenOrderField struct { + // Value extracts the ordering value from the given OhAuthTooToken. + Value func(*OhAuthTooToken) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) hushhistory.OrderOption - toCursor func(*HushHistory) Cursor + toTerm func(...sql.OrderTermOption) ohauthtootoken.OrderOption + toCursor func(*OhAuthTooToken) Cursor } -// HushHistoryOrder defines the ordering of HushHistory. -type HushHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *HushHistoryOrderField `json:"field"` +// OhAuthTooTokenOrder defines the ordering of OhAuthTooToken. +type OhAuthTooTokenOrder struct { + Direction OrderDirection `json:"direction"` + Field *OhAuthTooTokenOrderField `json:"field"` } -// DefaultHushHistoryOrder is the default ordering of HushHistory. -var DefaultHushHistoryOrder = &HushHistoryOrder{ +// DefaultOhAuthTooTokenOrder is the default ordering of OhAuthTooToken. +var DefaultOhAuthTooTokenOrder = &OhAuthTooTokenOrder{ Direction: entgql.OrderDirectionAsc, - Field: &HushHistoryOrderField{ - Value: func(hh *HushHistory) (ent.Value, error) { - return hh.ID, nil + Field: &OhAuthTooTokenOrderField{ + Value: func(oatt *OhAuthTooToken) (ent.Value, error) { + return oatt.ID, nil }, - column: hushhistory.FieldID, - toTerm: hushhistory.ByID, - toCursor: func(hh *HushHistory) Cursor { - return Cursor{ID: hh.ID} + column: ohauthtootoken.FieldID, + toTerm: ohauthtootoken.ByID, + toCursor: func(oatt *OhAuthTooToken) Cursor { + return Cursor{ID: oatt.ID} }, }, } -// ToEdge converts HushHistory into HushHistoryEdge. -func (hh *HushHistory) ToEdge(order *HushHistoryOrder) *HushHistoryEdge { +// ToEdge converts OhAuthTooToken into OhAuthTooTokenEdge. +func (oatt *OhAuthTooToken) ToEdge(order *OhAuthTooTokenOrder) *OhAuthTooTokenEdge { if order == nil { - order = DefaultHushHistoryOrder + order = DefaultOhAuthTooTokenOrder } - return &HushHistoryEdge{ - Node: hh, - Cursor: order.Field.toCursor(hh), + return &OhAuthTooTokenEdge{ + Node: oatt, + Cursor: order.Field.toCursor(oatt), } } -// IntegrationEdge is the edge representation of Integration. -type IntegrationEdge struct { - Node *Integration `json:"node"` - Cursor Cursor `json:"cursor"` +// OrgMembershipEdge is the edge representation of OrgMembership. +type OrgMembershipEdge struct { + Node *OrgMembership `json:"node"` + Cursor Cursor `json:"cursor"` } -// IntegrationConnection is the connection containing edges to Integration. -type IntegrationConnection struct { - Edges []*IntegrationEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// OrgMembershipConnection is the connection containing edges to OrgMembership. +type OrgMembershipConnection struct { + Edges []*OrgMembershipEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *IntegrationConnection) build(nodes []*Integration, pager *integrationPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *OrgMembershipConnection) build(nodes []*OrgMembership, pager *orgmembershipPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -7879,21 +12509,21 @@ func (c *IntegrationConnection) build(nodes []*Integration, pager *integrationPa c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *Integration + var nodeAt func(int) *OrgMembership if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *Integration { + nodeAt = func(i int) *OrgMembership { return nodes[n-i] } } else { - nodeAt = func(i int) *Integration { + nodeAt = func(i int) *OrgMembership { return nodes[i] } } - c.Edges = make([]*IntegrationEdge, len(nodes)) + c.Edges = make([]*OrgMembershipEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &IntegrationEdge{ + c.Edges[i] = &OrgMembershipEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -7907,87 +12537,87 @@ func (c *IntegrationConnection) build(nodes []*Integration, pager *integrationPa } } -// IntegrationPaginateOption enables pagination customization. -type IntegrationPaginateOption func(*integrationPager) error +// OrgMembershipPaginateOption enables pagination customization. +type OrgMembershipPaginateOption func(*orgmembershipPager) error -// WithIntegrationOrder configures pagination ordering. -func WithIntegrationOrder(order *IntegrationOrder) IntegrationPaginateOption { +// WithOrgMembershipOrder configures pagination ordering. +func WithOrgMembershipOrder(order *OrgMembershipOrder) OrgMembershipPaginateOption { if order == nil { - order = DefaultIntegrationOrder + order = DefaultOrgMembershipOrder } o := *order - return func(pager *integrationPager) error { + return func(pager *orgmembershipPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultIntegrationOrder.Field + o.Field = DefaultOrgMembershipOrder.Field } pager.order = &o return nil } } -// WithIntegrationFilter configures pagination filter. -func WithIntegrationFilter(filter func(*IntegrationQuery) (*IntegrationQuery, error)) IntegrationPaginateOption { - return func(pager *integrationPager) error { +// WithOrgMembershipFilter configures pagination filter. +func WithOrgMembershipFilter(filter func(*OrgMembershipQuery) (*OrgMembershipQuery, error)) OrgMembershipPaginateOption { + return func(pager *orgmembershipPager) error { if filter == nil { - return errors.New("IntegrationQuery filter cannot be nil") + return errors.New("OrgMembershipQuery filter cannot be nil") } pager.filter = filter return nil } } -type integrationPager struct { +type orgmembershipPager struct { reverse bool - order *IntegrationOrder - filter func(*IntegrationQuery) (*IntegrationQuery, error) + order *OrgMembershipOrder + filter func(*OrgMembershipQuery) (*OrgMembershipQuery, error) } -func newIntegrationPager(opts []IntegrationPaginateOption, reverse bool) (*integrationPager, error) { - pager := &integrationPager{reverse: reverse} +func newOrgMembershipPager(opts []OrgMembershipPaginateOption, reverse bool) (*orgmembershipPager, error) { + pager := &orgmembershipPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultIntegrationOrder + pager.order = DefaultOrgMembershipOrder } return pager, nil } -func (p *integrationPager) applyFilter(query *IntegrationQuery) (*IntegrationQuery, error) { +func (p *orgmembershipPager) applyFilter(query *OrgMembershipQuery) (*OrgMembershipQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *integrationPager) toCursor(i *Integration) Cursor { - return p.order.Field.toCursor(i) +func (p *orgmembershipPager) toCursor(om *OrgMembership) Cursor { + return p.order.Field.toCursor(om) } -func (p *integrationPager) applyCursors(query *IntegrationQuery, after, before *Cursor) (*IntegrationQuery, error) { +func (p *orgmembershipPager) applyCursors(query *OrgMembershipQuery, after, before *Cursor) (*OrgMembershipQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultIntegrationOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOrgMembershipOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *integrationPager) applyOrder(query *IntegrationQuery) *IntegrationQuery { +func (p *orgmembershipPager) applyOrder(query *OrgMembershipQuery) *OrgMembershipQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultIntegrationOrder.Field { - query = query.Order(DefaultIntegrationOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultOrgMembershipOrder.Field { + query = query.Order(DefaultOrgMembershipOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -7995,7 +12625,7 @@ func (p *integrationPager) applyOrder(query *IntegrationQuery) *IntegrationQuery return query } -func (p *integrationPager) orderExpr(query *IntegrationQuery) sql.Querier { +func (p *orgmembershipPager) orderExpr(query *OrgMembershipQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -8005,33 +12635,33 @@ func (p *integrationPager) orderExpr(query *IntegrationQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultIntegrationOrder.Field { - b.Comma().Ident(DefaultIntegrationOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultOrgMembershipOrder.Field { + b.Comma().Ident(DefaultOrgMembershipOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to Integration. -func (i *IntegrationQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to OrgMembership. +func (om *OrgMembershipQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...IntegrationPaginateOption, -) (*IntegrationConnection, error) { + before *Cursor, last *int, opts ...OrgMembershipPaginateOption, +) (*OrgMembershipConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newIntegrationPager(opts, last != nil) + pager, err := newOrgMembershipPager(opts, last != nil) if err != nil { return nil, err } - if i, err = pager.applyFilter(i); err != nil { + if om, err = pager.applyFilter(om); err != nil { return nil, err } - conn := &IntegrationConnection{Edges: []*IntegrationEdge{}} + conn := &OrgMembershipConnection{Edges: []*OrgMembershipEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := i.Clone() + c := om.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -8043,20 +12673,20 @@ func (i *IntegrationQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if i, err = pager.applyCursors(i, after, before); err != nil { + if om, err = pager.applyCursors(om, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - i.Limit(limit) + om.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := i.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := om.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - i = pager.applyOrder(i) - nodes, err := i.All(ctx) + om = pager.applyOrder(om) + nodes, err := om.All(ctx) if err != nil { return nil, err } @@ -8064,126 +12694,61 @@ func (i *IntegrationQuery) Paginate( return conn, nil } -var ( - // IntegrationOrderFieldName orders Integration by name. - IntegrationOrderFieldName = &IntegrationOrderField{ - Value: func(i *Integration) (ent.Value, error) { - return i.Name, nil - }, - column: integration.FieldName, - toTerm: integration.ByName, - toCursor: func(i *Integration) Cursor { - return Cursor{ - ID: i.ID, - Value: i.Name, - } - }, - } - // IntegrationOrderFieldKind orders Integration by kind. - IntegrationOrderFieldKind = &IntegrationOrderField{ - Value: func(i *Integration) (ent.Value, error) { - return i.Kind, nil - }, - column: integration.FieldKind, - toTerm: integration.ByKind, - toCursor: func(i *Integration) Cursor { - return Cursor{ - ID: i.ID, - Value: i.Kind, - } - }, - } -) - -// String implement fmt.Stringer interface. -func (f IntegrationOrderField) String() string { - var str string - switch f.column { - case IntegrationOrderFieldName.column: - str = "name" - case IntegrationOrderFieldKind.column: - str = "kind" - } - return str -} - -// MarshalGQL implements graphql.Marshaler interface. -func (f IntegrationOrderField) MarshalGQL(w io.Writer) { - io.WriteString(w, strconv.Quote(f.String())) -} - -// UnmarshalGQL implements graphql.Unmarshaler interface. -func (f *IntegrationOrderField) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("IntegrationOrderField %T must be a string", v) - } - switch str { - case "name": - *f = *IntegrationOrderFieldName - case "kind": - *f = *IntegrationOrderFieldKind - default: - return fmt.Errorf("%s is not a valid IntegrationOrderField", str) - } - return nil -} - -// IntegrationOrderField defines the ordering field of Integration. -type IntegrationOrderField struct { - // Value extracts the ordering value from the given Integration. - Value func(*Integration) (ent.Value, error) +// OrgMembershipOrderField defines the ordering field of OrgMembership. +type OrgMembershipOrderField struct { + // Value extracts the ordering value from the given OrgMembership. + Value func(*OrgMembership) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) integration.OrderOption - toCursor func(*Integration) Cursor + toTerm func(...sql.OrderTermOption) orgmembership.OrderOption + toCursor func(*OrgMembership) Cursor } -// IntegrationOrder defines the ordering of Integration. -type IntegrationOrder struct { - Direction OrderDirection `json:"direction"` - Field *IntegrationOrderField `json:"field"` +// OrgMembershipOrder defines the ordering of OrgMembership. +type OrgMembershipOrder struct { + Direction OrderDirection `json:"direction"` + Field *OrgMembershipOrderField `json:"field"` } -// DefaultIntegrationOrder is the default ordering of Integration. -var DefaultIntegrationOrder = &IntegrationOrder{ +// DefaultOrgMembershipOrder is the default ordering of OrgMembership. +var DefaultOrgMembershipOrder = &OrgMembershipOrder{ Direction: entgql.OrderDirectionAsc, - Field: &IntegrationOrderField{ - Value: func(i *Integration) (ent.Value, error) { - return i.ID, nil + Field: &OrgMembershipOrderField{ + Value: func(om *OrgMembership) (ent.Value, error) { + return om.ID, nil }, - column: integration.FieldID, - toTerm: integration.ByID, - toCursor: func(i *Integration) Cursor { - return Cursor{ID: i.ID} + column: orgmembership.FieldID, + toTerm: orgmembership.ByID, + toCursor: func(om *OrgMembership) Cursor { + return Cursor{ID: om.ID} }, }, } -// ToEdge converts Integration into IntegrationEdge. -func (i *Integration) ToEdge(order *IntegrationOrder) *IntegrationEdge { +// ToEdge converts OrgMembership into OrgMembershipEdge. +func (om *OrgMembership) ToEdge(order *OrgMembershipOrder) *OrgMembershipEdge { if order == nil { - order = DefaultIntegrationOrder - } - return &IntegrationEdge{ - Node: i, - Cursor: order.Field.toCursor(i), + order = DefaultOrgMembershipOrder + } + return &OrgMembershipEdge{ + Node: om, + Cursor: order.Field.toCursor(om), } } -// IntegrationHistoryEdge is the edge representation of IntegrationHistory. -type IntegrationHistoryEdge struct { - Node *IntegrationHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// OrgMembershipHistoryEdge is the edge representation of OrgMembershipHistory. +type OrgMembershipHistoryEdge struct { + Node *OrgMembershipHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// IntegrationHistoryConnection is the connection containing edges to IntegrationHistory. -type IntegrationHistoryConnection struct { - Edges []*IntegrationHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// OrgMembershipHistoryConnection is the connection containing edges to OrgMembershipHistory. +type OrgMembershipHistoryConnection struct { + Edges []*OrgMembershipHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *IntegrationHistoryConnection) build(nodes []*IntegrationHistory, pager *integrationhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *OrgMembershipHistoryConnection) build(nodes []*OrgMembershipHistory, pager *orgmembershiphistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -8193,21 +12758,21 @@ func (c *IntegrationHistoryConnection) build(nodes []*IntegrationHistory, pager c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *IntegrationHistory + var nodeAt func(int) *OrgMembershipHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *IntegrationHistory { + nodeAt = func(i int) *OrgMembershipHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *IntegrationHistory { + nodeAt = func(i int) *OrgMembershipHistory { return nodes[i] } } - c.Edges = make([]*IntegrationHistoryEdge, len(nodes)) + c.Edges = make([]*OrgMembershipHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &IntegrationHistoryEdge{ + c.Edges[i] = &OrgMembershipHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -8221,87 +12786,87 @@ func (c *IntegrationHistoryConnection) build(nodes []*IntegrationHistory, pager } } -// IntegrationHistoryPaginateOption enables pagination customization. -type IntegrationHistoryPaginateOption func(*integrationhistoryPager) error +// OrgMembershipHistoryPaginateOption enables pagination customization. +type OrgMembershipHistoryPaginateOption func(*orgmembershiphistoryPager) error -// WithIntegrationHistoryOrder configures pagination ordering. -func WithIntegrationHistoryOrder(order *IntegrationHistoryOrder) IntegrationHistoryPaginateOption { +// WithOrgMembershipHistoryOrder configures pagination ordering. +func WithOrgMembershipHistoryOrder(order *OrgMembershipHistoryOrder) OrgMembershipHistoryPaginateOption { if order == nil { - order = DefaultIntegrationHistoryOrder + order = DefaultOrgMembershipHistoryOrder } o := *order - return func(pager *integrationhistoryPager) error { + return func(pager *orgmembershiphistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultIntegrationHistoryOrder.Field + o.Field = DefaultOrgMembershipHistoryOrder.Field } pager.order = &o return nil } } -// WithIntegrationHistoryFilter configures pagination filter. -func WithIntegrationHistoryFilter(filter func(*IntegrationHistoryQuery) (*IntegrationHistoryQuery, error)) IntegrationHistoryPaginateOption { - return func(pager *integrationhistoryPager) error { +// WithOrgMembershipHistoryFilter configures pagination filter. +func WithOrgMembershipHistoryFilter(filter func(*OrgMembershipHistoryQuery) (*OrgMembershipHistoryQuery, error)) OrgMembershipHistoryPaginateOption { + return func(pager *orgmembershiphistoryPager) error { if filter == nil { - return errors.New("IntegrationHistoryQuery filter cannot be nil") + return errors.New("OrgMembershipHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type integrationhistoryPager struct { +type orgmembershiphistoryPager struct { reverse bool - order *IntegrationHistoryOrder - filter func(*IntegrationHistoryQuery) (*IntegrationHistoryQuery, error) + order *OrgMembershipHistoryOrder + filter func(*OrgMembershipHistoryQuery) (*OrgMembershipHistoryQuery, error) } -func newIntegrationHistoryPager(opts []IntegrationHistoryPaginateOption, reverse bool) (*integrationhistoryPager, error) { - pager := &integrationhistoryPager{reverse: reverse} +func newOrgMembershipHistoryPager(opts []OrgMembershipHistoryPaginateOption, reverse bool) (*orgmembershiphistoryPager, error) { + pager := &orgmembershiphistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultIntegrationHistoryOrder + pager.order = DefaultOrgMembershipHistoryOrder } return pager, nil } -func (p *integrationhistoryPager) applyFilter(query *IntegrationHistoryQuery) (*IntegrationHistoryQuery, error) { +func (p *orgmembershiphistoryPager) applyFilter(query *OrgMembershipHistoryQuery) (*OrgMembershipHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *integrationhistoryPager) toCursor(ih *IntegrationHistory) Cursor { - return p.order.Field.toCursor(ih) +func (p *orgmembershiphistoryPager) toCursor(omh *OrgMembershipHistory) Cursor { + return p.order.Field.toCursor(omh) } -func (p *integrationhistoryPager) applyCursors(query *IntegrationHistoryQuery, after, before *Cursor) (*IntegrationHistoryQuery, error) { +func (p *orgmembershiphistoryPager) applyCursors(query *OrgMembershipHistoryQuery, after, before *Cursor) (*OrgMembershipHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultIntegrationHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOrgMembershipHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *integrationhistoryPager) applyOrder(query *IntegrationHistoryQuery) *IntegrationHistoryQuery { +func (p *orgmembershiphistoryPager) applyOrder(query *OrgMembershipHistoryQuery) *OrgMembershipHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultIntegrationHistoryOrder.Field { - query = query.Order(DefaultIntegrationHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultOrgMembershipHistoryOrder.Field { + query = query.Order(DefaultOrgMembershipHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -8309,7 +12874,7 @@ func (p *integrationhistoryPager) applyOrder(query *IntegrationHistoryQuery) *In return query } -func (p *integrationhistoryPager) orderExpr(query *IntegrationHistoryQuery) sql.Querier { +func (p *orgmembershiphistoryPager) orderExpr(query *OrgMembershipHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -8319,33 +12884,33 @@ func (p *integrationhistoryPager) orderExpr(query *IntegrationHistoryQuery) sql. } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultIntegrationHistoryOrder.Field { - b.Comma().Ident(DefaultIntegrationHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultOrgMembershipHistoryOrder.Field { + b.Comma().Ident(DefaultOrgMembershipHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to IntegrationHistory. -func (ih *IntegrationHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to OrgMembershipHistory. +func (omh *OrgMembershipHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...IntegrationHistoryPaginateOption, -) (*IntegrationHistoryConnection, error) { + before *Cursor, last *int, opts ...OrgMembershipHistoryPaginateOption, +) (*OrgMembershipHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newIntegrationHistoryPager(opts, last != nil) + pager, err := newOrgMembershipHistoryPager(opts, last != nil) if err != nil { return nil, err } - if ih, err = pager.applyFilter(ih); err != nil { + if omh, err = pager.applyFilter(omh); err != nil { return nil, err } - conn := &IntegrationHistoryConnection{Edges: []*IntegrationHistoryEdge{}} + conn := &OrgMembershipHistoryConnection{Edges: []*OrgMembershipHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := ih.Clone() + c := omh.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -8357,20 +12922,20 @@ func (ih *IntegrationHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if ih, err = pager.applyCursors(ih, after, before); err != nil { + if omh, err = pager.applyCursors(omh, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - ih.Limit(limit) + omh.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := ih.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := omh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - ih = pager.applyOrder(ih) - nodes, err := ih.All(ctx) + omh = pager.applyOrder(omh) + nodes, err := omh.All(ctx) if err != nil { return nil, err } @@ -8378,126 +12943,61 @@ func (ih *IntegrationHistoryQuery) Paginate( return conn, nil } -var ( - // IntegrationHistoryOrderFieldName orders IntegrationHistory by name. - IntegrationHistoryOrderFieldName = &IntegrationHistoryOrderField{ - Value: func(ih *IntegrationHistory) (ent.Value, error) { - return ih.Name, nil - }, - column: integrationhistory.FieldName, - toTerm: integrationhistory.ByName, - toCursor: func(ih *IntegrationHistory) Cursor { - return Cursor{ - ID: ih.ID, - Value: ih.Name, - } - }, - } - // IntegrationHistoryOrderFieldKind orders IntegrationHistory by kind. - IntegrationHistoryOrderFieldKind = &IntegrationHistoryOrderField{ - Value: func(ih *IntegrationHistory) (ent.Value, error) { - return ih.Kind, nil - }, - column: integrationhistory.FieldKind, - toTerm: integrationhistory.ByKind, - toCursor: func(ih *IntegrationHistory) Cursor { - return Cursor{ - ID: ih.ID, - Value: ih.Kind, - } - }, - } -) - -// String implement fmt.Stringer interface. -func (f IntegrationHistoryOrderField) String() string { - var str string - switch f.column { - case IntegrationHistoryOrderFieldName.column: - str = "name" - case IntegrationHistoryOrderFieldKind.column: - str = "kind" - } - return str -} - -// MarshalGQL implements graphql.Marshaler interface. -func (f IntegrationHistoryOrderField) MarshalGQL(w io.Writer) { - io.WriteString(w, strconv.Quote(f.String())) -} - -// UnmarshalGQL implements graphql.Unmarshaler interface. -func (f *IntegrationHistoryOrderField) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("IntegrationHistoryOrderField %T must be a string", v) - } - switch str { - case "name": - *f = *IntegrationHistoryOrderFieldName - case "kind": - *f = *IntegrationHistoryOrderFieldKind - default: - return fmt.Errorf("%s is not a valid IntegrationHistoryOrderField", str) - } - return nil -} - -// IntegrationHistoryOrderField defines the ordering field of IntegrationHistory. -type IntegrationHistoryOrderField struct { - // Value extracts the ordering value from the given IntegrationHistory. - Value func(*IntegrationHistory) (ent.Value, error) +// OrgMembershipHistoryOrderField defines the ordering field of OrgMembershipHistory. +type OrgMembershipHistoryOrderField struct { + // Value extracts the ordering value from the given OrgMembershipHistory. + Value func(*OrgMembershipHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) integrationhistory.OrderOption - toCursor func(*IntegrationHistory) Cursor + toTerm func(...sql.OrderTermOption) orgmembershiphistory.OrderOption + toCursor func(*OrgMembershipHistory) Cursor } -// IntegrationHistoryOrder defines the ordering of IntegrationHistory. -type IntegrationHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *IntegrationHistoryOrderField `json:"field"` +// OrgMembershipHistoryOrder defines the ordering of OrgMembershipHistory. +type OrgMembershipHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *OrgMembershipHistoryOrderField `json:"field"` } -// DefaultIntegrationHistoryOrder is the default ordering of IntegrationHistory. -var DefaultIntegrationHistoryOrder = &IntegrationHistoryOrder{ +// DefaultOrgMembershipHistoryOrder is the default ordering of OrgMembershipHistory. +var DefaultOrgMembershipHistoryOrder = &OrgMembershipHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &IntegrationHistoryOrderField{ - Value: func(ih *IntegrationHistory) (ent.Value, error) { - return ih.ID, nil + Field: &OrgMembershipHistoryOrderField{ + Value: func(omh *OrgMembershipHistory) (ent.Value, error) { + return omh.ID, nil }, - column: integrationhistory.FieldID, - toTerm: integrationhistory.ByID, - toCursor: func(ih *IntegrationHistory) Cursor { - return Cursor{ID: ih.ID} + column: orgmembershiphistory.FieldID, + toTerm: orgmembershiphistory.ByID, + toCursor: func(omh *OrgMembershipHistory) Cursor { + return Cursor{ID: omh.ID} }, }, } -// ToEdge converts IntegrationHistory into IntegrationHistoryEdge. -func (ih *IntegrationHistory) ToEdge(order *IntegrationHistoryOrder) *IntegrationHistoryEdge { +// ToEdge converts OrgMembershipHistory into OrgMembershipHistoryEdge. +func (omh *OrgMembershipHistory) ToEdge(order *OrgMembershipHistoryOrder) *OrgMembershipHistoryEdge { if order == nil { - order = DefaultIntegrationHistoryOrder + order = DefaultOrgMembershipHistoryOrder } - return &IntegrationHistoryEdge{ - Node: ih, - Cursor: order.Field.toCursor(ih), + return &OrgMembershipHistoryEdge{ + Node: omh, + Cursor: order.Field.toCursor(omh), } } -// InviteEdge is the edge representation of Invite. -type InviteEdge struct { - Node *Invite `json:"node"` - Cursor Cursor `json:"cursor"` +// OrganizationEdge is the edge representation of Organization. +type OrganizationEdge struct { + Node *Organization `json:"node"` + Cursor Cursor `json:"cursor"` } -// InviteConnection is the connection containing edges to Invite. -type InviteConnection struct { - Edges []*InviteEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// OrganizationConnection is the connection containing edges to Organization. +type OrganizationConnection struct { + Edges []*OrganizationEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *InviteConnection) build(nodes []*Invite, pager *invitePager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *OrganizationConnection) build(nodes []*Organization, pager *organizationPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -8507,21 +13007,21 @@ func (c *InviteConnection) build(nodes []*Invite, pager *invitePager, after *Cur c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *Invite + var nodeAt func(int) *Organization if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *Invite { + nodeAt = func(i int) *Organization { return nodes[n-i] } } else { - nodeAt = func(i int) *Invite { + nodeAt = func(i int) *Organization { return nodes[i] } } - c.Edges = make([]*InviteEdge, len(nodes)) + c.Edges = make([]*OrganizationEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &InviteEdge{ + c.Edges[i] = &OrganizationEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -8535,87 +13035,87 @@ func (c *InviteConnection) build(nodes []*Invite, pager *invitePager, after *Cur } } -// InvitePaginateOption enables pagination customization. -type InvitePaginateOption func(*invitePager) error +// OrganizationPaginateOption enables pagination customization. +type OrganizationPaginateOption func(*organizationPager) error -// WithInviteOrder configures pagination ordering. -func WithInviteOrder(order *InviteOrder) InvitePaginateOption { +// WithOrganizationOrder configures pagination ordering. +func WithOrganizationOrder(order *OrganizationOrder) OrganizationPaginateOption { if order == nil { - order = DefaultInviteOrder + order = DefaultOrganizationOrder } o := *order - return func(pager *invitePager) error { + return func(pager *organizationPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultInviteOrder.Field + o.Field = DefaultOrganizationOrder.Field } pager.order = &o return nil } } -// WithInviteFilter configures pagination filter. -func WithInviteFilter(filter func(*InviteQuery) (*InviteQuery, error)) InvitePaginateOption { - return func(pager *invitePager) error { +// WithOrganizationFilter configures pagination filter. +func WithOrganizationFilter(filter func(*OrganizationQuery) (*OrganizationQuery, error)) OrganizationPaginateOption { + return func(pager *organizationPager) error { if filter == nil { - return errors.New("InviteQuery filter cannot be nil") + return errors.New("OrganizationQuery filter cannot be nil") } pager.filter = filter return nil } } -type invitePager struct { +type organizationPager struct { reverse bool - order *InviteOrder - filter func(*InviteQuery) (*InviteQuery, error) + order *OrganizationOrder + filter func(*OrganizationQuery) (*OrganizationQuery, error) } -func newInvitePager(opts []InvitePaginateOption, reverse bool) (*invitePager, error) { - pager := &invitePager{reverse: reverse} +func newOrganizationPager(opts []OrganizationPaginateOption, reverse bool) (*organizationPager, error) { + pager := &organizationPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultInviteOrder + pager.order = DefaultOrganizationOrder } return pager, nil } -func (p *invitePager) applyFilter(query *InviteQuery) (*InviteQuery, error) { +func (p *organizationPager) applyFilter(query *OrganizationQuery) (*OrganizationQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *invitePager) toCursor(i *Invite) Cursor { - return p.order.Field.toCursor(i) +func (p *organizationPager) toCursor(o *Organization) Cursor { + return p.order.Field.toCursor(o) } -func (p *invitePager) applyCursors(query *InviteQuery, after, before *Cursor) (*InviteQuery, error) { +func (p *organizationPager) applyCursors(query *OrganizationQuery, after, before *Cursor) (*OrganizationQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultInviteOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOrganizationOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *invitePager) applyOrder(query *InviteQuery) *InviteQuery { +func (p *organizationPager) applyOrder(query *OrganizationQuery) *OrganizationQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultInviteOrder.Field { - query = query.Order(DefaultInviteOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultOrganizationOrder.Field { + query = query.Order(DefaultOrganizationOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -8623,7 +13123,7 @@ func (p *invitePager) applyOrder(query *InviteQuery) *InviteQuery { return query } -func (p *invitePager) orderExpr(query *InviteQuery) sql.Querier { +func (p *organizationPager) orderExpr(query *OrganizationQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -8633,33 +13133,33 @@ func (p *invitePager) orderExpr(query *InviteQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultInviteOrder.Field { - b.Comma().Ident(DefaultInviteOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultOrganizationOrder.Field { + b.Comma().Ident(DefaultOrganizationOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to Invite. -func (i *InviteQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Organization. +func (o *OrganizationQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...InvitePaginateOption, -) (*InviteConnection, error) { + before *Cursor, last *int, opts ...OrganizationPaginateOption, +) (*OrganizationConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newInvitePager(opts, last != nil) + pager, err := newOrganizationPager(opts, last != nil) if err != nil { return nil, err } - if i, err = pager.applyFilter(i); err != nil { + if o, err = pager.applyFilter(o); err != nil { return nil, err } - conn := &InviteConnection{Edges: []*InviteEdge{}} + conn := &OrganizationConnection{Edges: []*OrganizationEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := i.Clone() + c := o.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -8671,20 +13171,20 @@ func (i *InviteQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if i, err = pager.applyCursors(i, after, before); err != nil { + if o, err = pager.applyCursors(o, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - i.Limit(limit) + o.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := i.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := o.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - i = pager.applyOrder(i) - nodes, err := i.All(ctx) + o = pager.applyOrder(o) + nodes, err := o.All(ctx) if err != nil { return nil, err } @@ -8692,61 +13192,126 @@ func (i *InviteQuery) Paginate( return conn, nil } -// InviteOrderField defines the ordering field of Invite. -type InviteOrderField struct { - // Value extracts the ordering value from the given Invite. - Value func(*Invite) (ent.Value, error) +var ( + // OrganizationOrderFieldName orders Organization by name. + OrganizationOrderFieldName = &OrganizationOrderField{ + Value: func(o *Organization) (ent.Value, error) { + return o.Name, nil + }, + column: organization.FieldName, + toTerm: organization.ByName, + toCursor: func(o *Organization) Cursor { + return Cursor{ + ID: o.ID, + Value: o.Name, + } + }, + } + // OrganizationOrderFieldDisplayName orders Organization by display_name. + OrganizationOrderFieldDisplayName = &OrganizationOrderField{ + Value: func(o *Organization) (ent.Value, error) { + return o.DisplayName, nil + }, + column: organization.FieldDisplayName, + toTerm: organization.ByDisplayName, + toCursor: func(o *Organization) Cursor { + return Cursor{ + ID: o.ID, + Value: o.DisplayName, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f OrganizationOrderField) String() string { + var str string + switch f.column { + case OrganizationOrderFieldName.column: + str = "name" + case OrganizationOrderFieldDisplayName.column: + str = "display_name" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f OrganizationOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *OrganizationOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("OrganizationOrderField %T must be a string", v) + } + switch str { + case "name": + *f = *OrganizationOrderFieldName + case "display_name": + *f = *OrganizationOrderFieldDisplayName + default: + return fmt.Errorf("%s is not a valid OrganizationOrderField", str) + } + return nil +} + +// OrganizationOrderField defines the ordering field of Organization. +type OrganizationOrderField struct { + // Value extracts the ordering value from the given Organization. + Value func(*Organization) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) invite.OrderOption - toCursor func(*Invite) Cursor + toTerm func(...sql.OrderTermOption) organization.OrderOption + toCursor func(*Organization) Cursor } -// InviteOrder defines the ordering of Invite. -type InviteOrder struct { - Direction OrderDirection `json:"direction"` - Field *InviteOrderField `json:"field"` +// OrganizationOrder defines the ordering of Organization. +type OrganizationOrder struct { + Direction OrderDirection `json:"direction"` + Field *OrganizationOrderField `json:"field"` } -// DefaultInviteOrder is the default ordering of Invite. -var DefaultInviteOrder = &InviteOrder{ +// DefaultOrganizationOrder is the default ordering of Organization. +var DefaultOrganizationOrder = &OrganizationOrder{ Direction: entgql.OrderDirectionAsc, - Field: &InviteOrderField{ - Value: func(i *Invite) (ent.Value, error) { - return i.ID, nil + Field: &OrganizationOrderField{ + Value: func(o *Organization) (ent.Value, error) { + return o.ID, nil }, - column: invite.FieldID, - toTerm: invite.ByID, - toCursor: func(i *Invite) Cursor { - return Cursor{ID: i.ID} + column: organization.FieldID, + toTerm: organization.ByID, + toCursor: func(o *Organization) Cursor { + return Cursor{ID: o.ID} }, }, } -// ToEdge converts Invite into InviteEdge. -func (i *Invite) ToEdge(order *InviteOrder) *InviteEdge { +// ToEdge converts Organization into OrganizationEdge. +func (o *Organization) ToEdge(order *OrganizationOrder) *OrganizationEdge { if order == nil { - order = DefaultInviteOrder + order = DefaultOrganizationOrder } - return &InviteEdge{ - Node: i, - Cursor: order.Field.toCursor(i), + return &OrganizationEdge{ + Node: o, + Cursor: order.Field.toCursor(o), } } -// NoteEdge is the edge representation of Note. -type NoteEdge struct { - Node *Note `json:"node"` - Cursor Cursor `json:"cursor"` +// OrganizationHistoryEdge is the edge representation of OrganizationHistory. +type OrganizationHistoryEdge struct { + Node *OrganizationHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// NoteConnection is the connection containing edges to Note. -type NoteConnection struct { - Edges []*NoteEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// OrganizationHistoryConnection is the connection containing edges to OrganizationHistory. +type OrganizationHistoryConnection struct { + Edges []*OrganizationHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *NoteConnection) build(nodes []*Note, pager *notePager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *OrganizationHistoryConnection) build(nodes []*OrganizationHistory, pager *organizationhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -8756,21 +13321,21 @@ func (c *NoteConnection) build(nodes []*Note, pager *notePager, after *Cursor, f c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *Note + var nodeAt func(int) *OrganizationHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *Note { + nodeAt = func(i int) *OrganizationHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *Note { + nodeAt = func(i int) *OrganizationHistory { return nodes[i] } } - c.Edges = make([]*NoteEdge, len(nodes)) + c.Edges = make([]*OrganizationHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &NoteEdge{ + c.Edges[i] = &OrganizationHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -8784,87 +13349,87 @@ func (c *NoteConnection) build(nodes []*Note, pager *notePager, after *Cursor, f } } -// NotePaginateOption enables pagination customization. -type NotePaginateOption func(*notePager) error +// OrganizationHistoryPaginateOption enables pagination customization. +type OrganizationHistoryPaginateOption func(*organizationhistoryPager) error -// WithNoteOrder configures pagination ordering. -func WithNoteOrder(order *NoteOrder) NotePaginateOption { +// WithOrganizationHistoryOrder configures pagination ordering. +func WithOrganizationHistoryOrder(order *OrganizationHistoryOrder) OrganizationHistoryPaginateOption { if order == nil { - order = DefaultNoteOrder + order = DefaultOrganizationHistoryOrder } o := *order - return func(pager *notePager) error { + return func(pager *organizationhistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultNoteOrder.Field + o.Field = DefaultOrganizationHistoryOrder.Field } pager.order = &o return nil } } -// WithNoteFilter configures pagination filter. -func WithNoteFilter(filter func(*NoteQuery) (*NoteQuery, error)) NotePaginateOption { - return func(pager *notePager) error { +// WithOrganizationHistoryFilter configures pagination filter. +func WithOrganizationHistoryFilter(filter func(*OrganizationHistoryQuery) (*OrganizationHistoryQuery, error)) OrganizationHistoryPaginateOption { + return func(pager *organizationhistoryPager) error { if filter == nil { - return errors.New("NoteQuery filter cannot be nil") + return errors.New("OrganizationHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type notePager struct { +type organizationhistoryPager struct { reverse bool - order *NoteOrder - filter func(*NoteQuery) (*NoteQuery, error) + order *OrganizationHistoryOrder + filter func(*OrganizationHistoryQuery) (*OrganizationHistoryQuery, error) } -func newNotePager(opts []NotePaginateOption, reverse bool) (*notePager, error) { - pager := ¬ePager{reverse: reverse} +func newOrganizationHistoryPager(opts []OrganizationHistoryPaginateOption, reverse bool) (*organizationhistoryPager, error) { + pager := &organizationhistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultNoteOrder + pager.order = DefaultOrganizationHistoryOrder } return pager, nil } -func (p *notePager) applyFilter(query *NoteQuery) (*NoteQuery, error) { +func (p *organizationhistoryPager) applyFilter(query *OrganizationHistoryQuery) (*OrganizationHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *notePager) toCursor(n *Note) Cursor { - return p.order.Field.toCursor(n) +func (p *organizationhistoryPager) toCursor(oh *OrganizationHistory) Cursor { + return p.order.Field.toCursor(oh) } -func (p *notePager) applyCursors(query *NoteQuery, after, before *Cursor) (*NoteQuery, error) { +func (p *organizationhistoryPager) applyCursors(query *OrganizationHistoryQuery, after, before *Cursor) (*OrganizationHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultNoteOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOrganizationHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *notePager) applyOrder(query *NoteQuery) *NoteQuery { +func (p *organizationhistoryPager) applyOrder(query *OrganizationHistoryQuery) *OrganizationHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultNoteOrder.Field { - query = query.Order(DefaultNoteOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultOrganizationHistoryOrder.Field { + query = query.Order(DefaultOrganizationHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -8872,7 +13437,7 @@ func (p *notePager) applyOrder(query *NoteQuery) *NoteQuery { return query } -func (p *notePager) orderExpr(query *NoteQuery) sql.Querier { +func (p *organizationhistoryPager) orderExpr(query *OrganizationHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -8882,33 +13447,33 @@ func (p *notePager) orderExpr(query *NoteQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultNoteOrder.Field { - b.Comma().Ident(DefaultNoteOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultOrganizationHistoryOrder.Field { + b.Comma().Ident(DefaultOrganizationHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to Note. -func (n *NoteQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to OrganizationHistory. +func (oh *OrganizationHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...NotePaginateOption, -) (*NoteConnection, error) { + before *Cursor, last *int, opts ...OrganizationHistoryPaginateOption, +) (*OrganizationHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newNotePager(opts, last != nil) + pager, err := newOrganizationHistoryPager(opts, last != nil) if err != nil { return nil, err } - if n, err = pager.applyFilter(n); err != nil { + if oh, err = pager.applyFilter(oh); err != nil { return nil, err } - conn := &NoteConnection{Edges: []*NoteEdge{}} + conn := &OrganizationHistoryConnection{Edges: []*OrganizationHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := n.Clone() + c := oh.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -8920,20 +13485,20 @@ func (n *NoteQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if n, err = pager.applyCursors(n, after, before); err != nil { + if oh, err = pager.applyCursors(oh, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - n.Limit(limit) + oh.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := n.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := oh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - n = pager.applyOrder(n) - nodes, err := n.All(ctx) + oh = pager.applyOrder(oh) + nodes, err := oh.All(ctx) if err != nil { return nil, err } @@ -8941,61 +13506,126 @@ func (n *NoteQuery) Paginate( return conn, nil } -// NoteOrderField defines the ordering field of Note. -type NoteOrderField struct { - // Value extracts the ordering value from the given Note. - Value func(*Note) (ent.Value, error) +var ( + // OrganizationHistoryOrderFieldName orders OrganizationHistory by name. + OrganizationHistoryOrderFieldName = &OrganizationHistoryOrderField{ + Value: func(oh *OrganizationHistory) (ent.Value, error) { + return oh.Name, nil + }, + column: organizationhistory.FieldName, + toTerm: organizationhistory.ByName, + toCursor: func(oh *OrganizationHistory) Cursor { + return Cursor{ + ID: oh.ID, + Value: oh.Name, + } + }, + } + // OrganizationHistoryOrderFieldDisplayName orders OrganizationHistory by display_name. + OrganizationHistoryOrderFieldDisplayName = &OrganizationHistoryOrderField{ + Value: func(oh *OrganizationHistory) (ent.Value, error) { + return oh.DisplayName, nil + }, + column: organizationhistory.FieldDisplayName, + toTerm: organizationhistory.ByDisplayName, + toCursor: func(oh *OrganizationHistory) Cursor { + return Cursor{ + ID: oh.ID, + Value: oh.DisplayName, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f OrganizationHistoryOrderField) String() string { + var str string + switch f.column { + case OrganizationHistoryOrderFieldName.column: + str = "name" + case OrganizationHistoryOrderFieldDisplayName.column: + str = "display_name" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f OrganizationHistoryOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *OrganizationHistoryOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("OrganizationHistoryOrderField %T must be a string", v) + } + switch str { + case "name": + *f = *OrganizationHistoryOrderFieldName + case "display_name": + *f = *OrganizationHistoryOrderFieldDisplayName + default: + return fmt.Errorf("%s is not a valid OrganizationHistoryOrderField", str) + } + return nil +} + +// OrganizationHistoryOrderField defines the ordering field of OrganizationHistory. +type OrganizationHistoryOrderField struct { + // Value extracts the ordering value from the given OrganizationHistory. + Value func(*OrganizationHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) note.OrderOption - toCursor func(*Note) Cursor + toTerm func(...sql.OrderTermOption) organizationhistory.OrderOption + toCursor func(*OrganizationHistory) Cursor } -// NoteOrder defines the ordering of Note. -type NoteOrder struct { - Direction OrderDirection `json:"direction"` - Field *NoteOrderField `json:"field"` +// OrganizationHistoryOrder defines the ordering of OrganizationHistory. +type OrganizationHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *OrganizationHistoryOrderField `json:"field"` } -// DefaultNoteOrder is the default ordering of Note. -var DefaultNoteOrder = &NoteOrder{ +// DefaultOrganizationHistoryOrder is the default ordering of OrganizationHistory. +var DefaultOrganizationHistoryOrder = &OrganizationHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &NoteOrderField{ - Value: func(n *Note) (ent.Value, error) { - return n.ID, nil + Field: &OrganizationHistoryOrderField{ + Value: func(oh *OrganizationHistory) (ent.Value, error) { + return oh.ID, nil }, - column: note.FieldID, - toTerm: note.ByID, - toCursor: func(n *Note) Cursor { - return Cursor{ID: n.ID} + column: organizationhistory.FieldID, + toTerm: organizationhistory.ByID, + toCursor: func(oh *OrganizationHistory) Cursor { + return Cursor{ID: oh.ID} }, }, } -// ToEdge converts Note into NoteEdge. -func (n *Note) ToEdge(order *NoteOrder) *NoteEdge { +// ToEdge converts OrganizationHistory into OrganizationHistoryEdge. +func (oh *OrganizationHistory) ToEdge(order *OrganizationHistoryOrder) *OrganizationHistoryEdge { if order == nil { - order = DefaultNoteOrder + order = DefaultOrganizationHistoryOrder } - return &NoteEdge{ - Node: n, - Cursor: order.Field.toCursor(n), + return &OrganizationHistoryEdge{ + Node: oh, + Cursor: order.Field.toCursor(oh), } } -// NoteHistoryEdge is the edge representation of NoteHistory. -type NoteHistoryEdge struct { - Node *NoteHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// OrganizationSettingEdge is the edge representation of OrganizationSetting. +type OrganizationSettingEdge struct { + Node *OrganizationSetting `json:"node"` + Cursor Cursor `json:"cursor"` } -// NoteHistoryConnection is the connection containing edges to NoteHistory. -type NoteHistoryConnection struct { - Edges []*NoteHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// OrganizationSettingConnection is the connection containing edges to OrganizationSetting. +type OrganizationSettingConnection struct { + Edges []*OrganizationSettingEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *NoteHistoryConnection) build(nodes []*NoteHistory, pager *notehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *OrganizationSettingConnection) build(nodes []*OrganizationSetting, pager *organizationsettingPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -9005,21 +13635,21 @@ func (c *NoteHistoryConnection) build(nodes []*NoteHistory, pager *notehistoryPa c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *NoteHistory + var nodeAt func(int) *OrganizationSetting if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *NoteHistory { + nodeAt = func(i int) *OrganizationSetting { return nodes[n-i] } } else { - nodeAt = func(i int) *NoteHistory { + nodeAt = func(i int) *OrganizationSetting { return nodes[i] } } - c.Edges = make([]*NoteHistoryEdge, len(nodes)) + c.Edges = make([]*OrganizationSettingEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &NoteHistoryEdge{ + c.Edges[i] = &OrganizationSettingEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -9033,87 +13663,87 @@ func (c *NoteHistoryConnection) build(nodes []*NoteHistory, pager *notehistoryPa } } -// NoteHistoryPaginateOption enables pagination customization. -type NoteHistoryPaginateOption func(*notehistoryPager) error +// OrganizationSettingPaginateOption enables pagination customization. +type OrganizationSettingPaginateOption func(*organizationsettingPager) error -// WithNoteHistoryOrder configures pagination ordering. -func WithNoteHistoryOrder(order *NoteHistoryOrder) NoteHistoryPaginateOption { +// WithOrganizationSettingOrder configures pagination ordering. +func WithOrganizationSettingOrder(order *OrganizationSettingOrder) OrganizationSettingPaginateOption { if order == nil { - order = DefaultNoteHistoryOrder + order = DefaultOrganizationSettingOrder } o := *order - return func(pager *notehistoryPager) error { + return func(pager *organizationsettingPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultNoteHistoryOrder.Field + o.Field = DefaultOrganizationSettingOrder.Field } pager.order = &o return nil } } -// WithNoteHistoryFilter configures pagination filter. -func WithNoteHistoryFilter(filter func(*NoteHistoryQuery) (*NoteHistoryQuery, error)) NoteHistoryPaginateOption { - return func(pager *notehistoryPager) error { +// WithOrganizationSettingFilter configures pagination filter. +func WithOrganizationSettingFilter(filter func(*OrganizationSettingQuery) (*OrganizationSettingQuery, error)) OrganizationSettingPaginateOption { + return func(pager *organizationsettingPager) error { if filter == nil { - return errors.New("NoteHistoryQuery filter cannot be nil") + return errors.New("OrganizationSettingQuery filter cannot be nil") } pager.filter = filter return nil } } -type notehistoryPager struct { +type organizationsettingPager struct { reverse bool - order *NoteHistoryOrder - filter func(*NoteHistoryQuery) (*NoteHistoryQuery, error) + order *OrganizationSettingOrder + filter func(*OrganizationSettingQuery) (*OrganizationSettingQuery, error) } -func newNoteHistoryPager(opts []NoteHistoryPaginateOption, reverse bool) (*notehistoryPager, error) { - pager := ¬ehistoryPager{reverse: reverse} +func newOrganizationSettingPager(opts []OrganizationSettingPaginateOption, reverse bool) (*organizationsettingPager, error) { + pager := &organizationsettingPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultNoteHistoryOrder + pager.order = DefaultOrganizationSettingOrder } return pager, nil } -func (p *notehistoryPager) applyFilter(query *NoteHistoryQuery) (*NoteHistoryQuery, error) { +func (p *organizationsettingPager) applyFilter(query *OrganizationSettingQuery) (*OrganizationSettingQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *notehistoryPager) toCursor(nh *NoteHistory) Cursor { - return p.order.Field.toCursor(nh) +func (p *organizationsettingPager) toCursor(os *OrganizationSetting) Cursor { + return p.order.Field.toCursor(os) } -func (p *notehistoryPager) applyCursors(query *NoteHistoryQuery, after, before *Cursor) (*NoteHistoryQuery, error) { +func (p *organizationsettingPager) applyCursors(query *OrganizationSettingQuery, after, before *Cursor) (*OrganizationSettingQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultNoteHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOrganizationSettingOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *notehistoryPager) applyOrder(query *NoteHistoryQuery) *NoteHistoryQuery { +func (p *organizationsettingPager) applyOrder(query *OrganizationSettingQuery) *OrganizationSettingQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultNoteHistoryOrder.Field { - query = query.Order(DefaultNoteHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultOrganizationSettingOrder.Field { + query = query.Order(DefaultOrganizationSettingOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -9121,7 +13751,7 @@ func (p *notehistoryPager) applyOrder(query *NoteHistoryQuery) *NoteHistoryQuery return query } -func (p *notehistoryPager) orderExpr(query *NoteHistoryQuery) sql.Querier { +func (p *organizationsettingPager) orderExpr(query *OrganizationSettingQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -9131,33 +13761,33 @@ func (p *notehistoryPager) orderExpr(query *NoteHistoryQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultNoteHistoryOrder.Field { - b.Comma().Ident(DefaultNoteHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultOrganizationSettingOrder.Field { + b.Comma().Ident(DefaultOrganizationSettingOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to NoteHistory. -func (nh *NoteHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to OrganizationSetting. +func (os *OrganizationSettingQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...NoteHistoryPaginateOption, -) (*NoteHistoryConnection, error) { + before *Cursor, last *int, opts ...OrganizationSettingPaginateOption, +) (*OrganizationSettingConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newNoteHistoryPager(opts, last != nil) + pager, err := newOrganizationSettingPager(opts, last != nil) if err != nil { return nil, err } - if nh, err = pager.applyFilter(nh); err != nil { + if os, err = pager.applyFilter(os); err != nil { return nil, err } - conn := &NoteHistoryConnection{Edges: []*NoteHistoryEdge{}} + conn := &OrganizationSettingConnection{Edges: []*OrganizationSettingEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := nh.Clone() + c := os.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -9169,20 +13799,20 @@ func (nh *NoteHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if nh, err = pager.applyCursors(nh, after, before); err != nil { + if os, err = pager.applyCursors(os, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - nh.Limit(limit) + os.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := nh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := os.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - nh = pager.applyOrder(nh) - nodes, err := nh.All(ctx) + os = pager.applyOrder(os) + nodes, err := os.All(ctx) if err != nil { return nil, err } @@ -9190,61 +13820,61 @@ func (nh *NoteHistoryQuery) Paginate( return conn, nil } -// NoteHistoryOrderField defines the ordering field of NoteHistory. -type NoteHistoryOrderField struct { - // Value extracts the ordering value from the given NoteHistory. - Value func(*NoteHistory) (ent.Value, error) +// OrganizationSettingOrderField defines the ordering field of OrganizationSetting. +type OrganizationSettingOrderField struct { + // Value extracts the ordering value from the given OrganizationSetting. + Value func(*OrganizationSetting) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) notehistory.OrderOption - toCursor func(*NoteHistory) Cursor + toTerm func(...sql.OrderTermOption) organizationsetting.OrderOption + toCursor func(*OrganizationSetting) Cursor } -// NoteHistoryOrder defines the ordering of NoteHistory. -type NoteHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *NoteHistoryOrderField `json:"field"` +// OrganizationSettingOrder defines the ordering of OrganizationSetting. +type OrganizationSettingOrder struct { + Direction OrderDirection `json:"direction"` + Field *OrganizationSettingOrderField `json:"field"` } -// DefaultNoteHistoryOrder is the default ordering of NoteHistory. -var DefaultNoteHistoryOrder = &NoteHistoryOrder{ +// DefaultOrganizationSettingOrder is the default ordering of OrganizationSetting. +var DefaultOrganizationSettingOrder = &OrganizationSettingOrder{ Direction: entgql.OrderDirectionAsc, - Field: &NoteHistoryOrderField{ - Value: func(nh *NoteHistory) (ent.Value, error) { - return nh.ID, nil + Field: &OrganizationSettingOrderField{ + Value: func(os *OrganizationSetting) (ent.Value, error) { + return os.ID, nil }, - column: notehistory.FieldID, - toTerm: notehistory.ByID, - toCursor: func(nh *NoteHistory) Cursor { - return Cursor{ID: nh.ID} + column: organizationsetting.FieldID, + toTerm: organizationsetting.ByID, + toCursor: func(os *OrganizationSetting) Cursor { + return Cursor{ID: os.ID} }, }, } -// ToEdge converts NoteHistory into NoteHistoryEdge. -func (nh *NoteHistory) ToEdge(order *NoteHistoryOrder) *NoteHistoryEdge { +// ToEdge converts OrganizationSetting into OrganizationSettingEdge. +func (os *OrganizationSetting) ToEdge(order *OrganizationSettingOrder) *OrganizationSettingEdge { if order == nil { - order = DefaultNoteHistoryOrder + order = DefaultOrganizationSettingOrder } - return &NoteHistoryEdge{ - Node: nh, - Cursor: order.Field.toCursor(nh), + return &OrganizationSettingEdge{ + Node: os, + Cursor: order.Field.toCursor(os), } } -// OauthProviderEdge is the edge representation of OauthProvider. -type OauthProviderEdge struct { - Node *OauthProvider `json:"node"` - Cursor Cursor `json:"cursor"` +// OrganizationSettingHistoryEdge is the edge representation of OrganizationSettingHistory. +type OrganizationSettingHistoryEdge struct { + Node *OrganizationSettingHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// OauthProviderConnection is the connection containing edges to OauthProvider. -type OauthProviderConnection struct { - Edges []*OauthProviderEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// OrganizationSettingHistoryConnection is the connection containing edges to OrganizationSettingHistory. +type OrganizationSettingHistoryConnection struct { + Edges []*OrganizationSettingHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *OauthProviderConnection) build(nodes []*OauthProvider, pager *oauthproviderPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *OrganizationSettingHistoryConnection) build(nodes []*OrganizationSettingHistory, pager *organizationsettinghistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -9254,21 +13884,21 @@ func (c *OauthProviderConnection) build(nodes []*OauthProvider, pager *oauthprov c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *OauthProvider + var nodeAt func(int) *OrganizationSettingHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *OauthProvider { + nodeAt = func(i int) *OrganizationSettingHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *OauthProvider { + nodeAt = func(i int) *OrganizationSettingHistory { return nodes[i] } } - c.Edges = make([]*OauthProviderEdge, len(nodes)) + c.Edges = make([]*OrganizationSettingHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &OauthProviderEdge{ + c.Edges[i] = &OrganizationSettingHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -9282,87 +13912,87 @@ func (c *OauthProviderConnection) build(nodes []*OauthProvider, pager *oauthprov } } -// OauthProviderPaginateOption enables pagination customization. -type OauthProviderPaginateOption func(*oauthproviderPager) error +// OrganizationSettingHistoryPaginateOption enables pagination customization. +type OrganizationSettingHistoryPaginateOption func(*organizationsettinghistoryPager) error -// WithOauthProviderOrder configures pagination ordering. -func WithOauthProviderOrder(order *OauthProviderOrder) OauthProviderPaginateOption { +// WithOrganizationSettingHistoryOrder configures pagination ordering. +func WithOrganizationSettingHistoryOrder(order *OrganizationSettingHistoryOrder) OrganizationSettingHistoryPaginateOption { if order == nil { - order = DefaultOauthProviderOrder + order = DefaultOrganizationSettingHistoryOrder } o := *order - return func(pager *oauthproviderPager) error { + return func(pager *organizationsettinghistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultOauthProviderOrder.Field + o.Field = DefaultOrganizationSettingHistoryOrder.Field } pager.order = &o return nil } } -// WithOauthProviderFilter configures pagination filter. -func WithOauthProviderFilter(filter func(*OauthProviderQuery) (*OauthProviderQuery, error)) OauthProviderPaginateOption { - return func(pager *oauthproviderPager) error { +// WithOrganizationSettingHistoryFilter configures pagination filter. +func WithOrganizationSettingHistoryFilter(filter func(*OrganizationSettingHistoryQuery) (*OrganizationSettingHistoryQuery, error)) OrganizationSettingHistoryPaginateOption { + return func(pager *organizationsettinghistoryPager) error { if filter == nil { - return errors.New("OauthProviderQuery filter cannot be nil") + return errors.New("OrganizationSettingHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type oauthproviderPager struct { +type organizationsettinghistoryPager struct { reverse bool - order *OauthProviderOrder - filter func(*OauthProviderQuery) (*OauthProviderQuery, error) + order *OrganizationSettingHistoryOrder + filter func(*OrganizationSettingHistoryQuery) (*OrganizationSettingHistoryQuery, error) } -func newOauthProviderPager(opts []OauthProviderPaginateOption, reverse bool) (*oauthproviderPager, error) { - pager := &oauthproviderPager{reverse: reverse} +func newOrganizationSettingHistoryPager(opts []OrganizationSettingHistoryPaginateOption, reverse bool) (*organizationsettinghistoryPager, error) { + pager := &organizationsettinghistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultOauthProviderOrder + pager.order = DefaultOrganizationSettingHistoryOrder } return pager, nil } -func (p *oauthproviderPager) applyFilter(query *OauthProviderQuery) (*OauthProviderQuery, error) { +func (p *organizationsettinghistoryPager) applyFilter(query *OrganizationSettingHistoryQuery) (*OrganizationSettingHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *oauthproviderPager) toCursor(op *OauthProvider) Cursor { - return p.order.Field.toCursor(op) +func (p *organizationsettinghistoryPager) toCursor(osh *OrganizationSettingHistory) Cursor { + return p.order.Field.toCursor(osh) } -func (p *oauthproviderPager) applyCursors(query *OauthProviderQuery, after, before *Cursor) (*OauthProviderQuery, error) { +func (p *organizationsettinghistoryPager) applyCursors(query *OrganizationSettingHistoryQuery, after, before *Cursor) (*OrganizationSettingHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOauthProviderOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOrganizationSettingHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *oauthproviderPager) applyOrder(query *OauthProviderQuery) *OauthProviderQuery { +func (p *organizationsettinghistoryPager) applyOrder(query *OrganizationSettingHistoryQuery) *OrganizationSettingHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultOauthProviderOrder.Field { - query = query.Order(DefaultOauthProviderOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultOrganizationSettingHistoryOrder.Field { + query = query.Order(DefaultOrganizationSettingHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -9370,7 +14000,7 @@ func (p *oauthproviderPager) applyOrder(query *OauthProviderQuery) *OauthProvide return query } -func (p *oauthproviderPager) orderExpr(query *OauthProviderQuery) sql.Querier { +func (p *organizationsettinghistoryPager) orderExpr(query *OrganizationSettingHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -9380,33 +14010,33 @@ func (p *oauthproviderPager) orderExpr(query *OauthProviderQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultOauthProviderOrder.Field { - b.Comma().Ident(DefaultOauthProviderOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultOrganizationSettingHistoryOrder.Field { + b.Comma().Ident(DefaultOrganizationSettingHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to OauthProvider. -func (op *OauthProviderQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to OrganizationSettingHistory. +func (osh *OrganizationSettingHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...OauthProviderPaginateOption, -) (*OauthProviderConnection, error) { + before *Cursor, last *int, opts ...OrganizationSettingHistoryPaginateOption, +) (*OrganizationSettingHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newOauthProviderPager(opts, last != nil) + pager, err := newOrganizationSettingHistoryPager(opts, last != nil) if err != nil { return nil, err } - if op, err = pager.applyFilter(op); err != nil { + if osh, err = pager.applyFilter(osh); err != nil { return nil, err } - conn := &OauthProviderConnection{Edges: []*OauthProviderEdge{}} + conn := &OrganizationSettingHistoryConnection{Edges: []*OrganizationSettingHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := op.Clone() + c := osh.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -9418,20 +14048,20 @@ func (op *OauthProviderQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if op, err = pager.applyCursors(op, after, before); err != nil { + if osh, err = pager.applyCursors(osh, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - op.Limit(limit) + osh.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := op.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := osh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - op = pager.applyOrder(op) - nodes, err := op.All(ctx) + osh = pager.applyOrder(osh) + nodes, err := osh.All(ctx) if err != nil { return nil, err } @@ -9439,61 +14069,61 @@ func (op *OauthProviderQuery) Paginate( return conn, nil } -// OauthProviderOrderField defines the ordering field of OauthProvider. -type OauthProviderOrderField struct { - // Value extracts the ordering value from the given OauthProvider. - Value func(*OauthProvider) (ent.Value, error) +// OrganizationSettingHistoryOrderField defines the ordering field of OrganizationSettingHistory. +type OrganizationSettingHistoryOrderField struct { + // Value extracts the ordering value from the given OrganizationSettingHistory. + Value func(*OrganizationSettingHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) oauthprovider.OrderOption - toCursor func(*OauthProvider) Cursor + toTerm func(...sql.OrderTermOption) organizationsettinghistory.OrderOption + toCursor func(*OrganizationSettingHistory) Cursor } -// OauthProviderOrder defines the ordering of OauthProvider. -type OauthProviderOrder struct { - Direction OrderDirection `json:"direction"` - Field *OauthProviderOrderField `json:"field"` +// OrganizationSettingHistoryOrder defines the ordering of OrganizationSettingHistory. +type OrganizationSettingHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *OrganizationSettingHistoryOrderField `json:"field"` } -// DefaultOauthProviderOrder is the default ordering of OauthProvider. -var DefaultOauthProviderOrder = &OauthProviderOrder{ +// DefaultOrganizationSettingHistoryOrder is the default ordering of OrganizationSettingHistory. +var DefaultOrganizationSettingHistoryOrder = &OrganizationSettingHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &OauthProviderOrderField{ - Value: func(op *OauthProvider) (ent.Value, error) { - return op.ID, nil + Field: &OrganizationSettingHistoryOrderField{ + Value: func(osh *OrganizationSettingHistory) (ent.Value, error) { + return osh.ID, nil }, - column: oauthprovider.FieldID, - toTerm: oauthprovider.ByID, - toCursor: func(op *OauthProvider) Cursor { - return Cursor{ID: op.ID} + column: organizationsettinghistory.FieldID, + toTerm: organizationsettinghistory.ByID, + toCursor: func(osh *OrganizationSettingHistory) Cursor { + return Cursor{ID: osh.ID} }, }, } -// ToEdge converts OauthProvider into OauthProviderEdge. -func (op *OauthProvider) ToEdge(order *OauthProviderOrder) *OauthProviderEdge { +// ToEdge converts OrganizationSettingHistory into OrganizationSettingHistoryEdge. +func (osh *OrganizationSettingHistory) ToEdge(order *OrganizationSettingHistoryOrder) *OrganizationSettingHistoryEdge { if order == nil { - order = DefaultOauthProviderOrder + order = DefaultOrganizationSettingHistoryOrder } - return &OauthProviderEdge{ - Node: op, - Cursor: order.Field.toCursor(op), + return &OrganizationSettingHistoryEdge{ + Node: osh, + Cursor: order.Field.toCursor(osh), } } -// OauthProviderHistoryEdge is the edge representation of OauthProviderHistory. -type OauthProviderHistoryEdge struct { - Node *OauthProviderHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// PersonalAccessTokenEdge is the edge representation of PersonalAccessToken. +type PersonalAccessTokenEdge struct { + Node *PersonalAccessToken `json:"node"` + Cursor Cursor `json:"cursor"` } -// OauthProviderHistoryConnection is the connection containing edges to OauthProviderHistory. -type OauthProviderHistoryConnection struct { - Edges []*OauthProviderHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// PersonalAccessTokenConnection is the connection containing edges to PersonalAccessToken. +type PersonalAccessTokenConnection struct { + Edges []*PersonalAccessTokenEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *OauthProviderHistoryConnection) build(nodes []*OauthProviderHistory, pager *oauthproviderhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *PersonalAccessTokenConnection) build(nodes []*PersonalAccessToken, pager *personalaccesstokenPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -9503,21 +14133,21 @@ func (c *OauthProviderHistoryConnection) build(nodes []*OauthProviderHistory, pa c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *OauthProviderHistory + var nodeAt func(int) *PersonalAccessToken if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *OauthProviderHistory { + nodeAt = func(i int) *PersonalAccessToken { return nodes[n-i] } } else { - nodeAt = func(i int) *OauthProviderHistory { + nodeAt = func(i int) *PersonalAccessToken { return nodes[i] } } - c.Edges = make([]*OauthProviderHistoryEdge, len(nodes)) + c.Edges = make([]*PersonalAccessTokenEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &OauthProviderHistoryEdge{ + c.Edges[i] = &PersonalAccessTokenEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -9531,87 +14161,87 @@ func (c *OauthProviderHistoryConnection) build(nodes []*OauthProviderHistory, pa } } -// OauthProviderHistoryPaginateOption enables pagination customization. -type OauthProviderHistoryPaginateOption func(*oauthproviderhistoryPager) error +// PersonalAccessTokenPaginateOption enables pagination customization. +type PersonalAccessTokenPaginateOption func(*personalaccesstokenPager) error -// WithOauthProviderHistoryOrder configures pagination ordering. -func WithOauthProviderHistoryOrder(order *OauthProviderHistoryOrder) OauthProviderHistoryPaginateOption { +// WithPersonalAccessTokenOrder configures pagination ordering. +func WithPersonalAccessTokenOrder(order *PersonalAccessTokenOrder) PersonalAccessTokenPaginateOption { if order == nil { - order = DefaultOauthProviderHistoryOrder + order = DefaultPersonalAccessTokenOrder } o := *order - return func(pager *oauthproviderhistoryPager) error { + return func(pager *personalaccesstokenPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultOauthProviderHistoryOrder.Field + o.Field = DefaultPersonalAccessTokenOrder.Field } pager.order = &o return nil } } -// WithOauthProviderHistoryFilter configures pagination filter. -func WithOauthProviderHistoryFilter(filter func(*OauthProviderHistoryQuery) (*OauthProviderHistoryQuery, error)) OauthProviderHistoryPaginateOption { - return func(pager *oauthproviderhistoryPager) error { +// WithPersonalAccessTokenFilter configures pagination filter. +func WithPersonalAccessTokenFilter(filter func(*PersonalAccessTokenQuery) (*PersonalAccessTokenQuery, error)) PersonalAccessTokenPaginateOption { + return func(pager *personalaccesstokenPager) error { if filter == nil { - return errors.New("OauthProviderHistoryQuery filter cannot be nil") + return errors.New("PersonalAccessTokenQuery filter cannot be nil") } pager.filter = filter return nil } } -type oauthproviderhistoryPager struct { +type personalaccesstokenPager struct { reverse bool - order *OauthProviderHistoryOrder - filter func(*OauthProviderHistoryQuery) (*OauthProviderHistoryQuery, error) + order *PersonalAccessTokenOrder + filter func(*PersonalAccessTokenQuery) (*PersonalAccessTokenQuery, error) } -func newOauthProviderHistoryPager(opts []OauthProviderHistoryPaginateOption, reverse bool) (*oauthproviderhistoryPager, error) { - pager := &oauthproviderhistoryPager{reverse: reverse} +func newPersonalAccessTokenPager(opts []PersonalAccessTokenPaginateOption, reverse bool) (*personalaccesstokenPager, error) { + pager := &personalaccesstokenPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultOauthProviderHistoryOrder + pager.order = DefaultPersonalAccessTokenOrder } return pager, nil } -func (p *oauthproviderhistoryPager) applyFilter(query *OauthProviderHistoryQuery) (*OauthProviderHistoryQuery, error) { +func (p *personalaccesstokenPager) applyFilter(query *PersonalAccessTokenQuery) (*PersonalAccessTokenQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *oauthproviderhistoryPager) toCursor(oph *OauthProviderHistory) Cursor { - return p.order.Field.toCursor(oph) +func (p *personalaccesstokenPager) toCursor(pat *PersonalAccessToken) Cursor { + return p.order.Field.toCursor(pat) } -func (p *oauthproviderhistoryPager) applyCursors(query *OauthProviderHistoryQuery, after, before *Cursor) (*OauthProviderHistoryQuery, error) { +func (p *personalaccesstokenPager) applyCursors(query *PersonalAccessTokenQuery, after, before *Cursor) (*PersonalAccessTokenQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOauthProviderHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultPersonalAccessTokenOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *oauthproviderhistoryPager) applyOrder(query *OauthProviderHistoryQuery) *OauthProviderHistoryQuery { +func (p *personalaccesstokenPager) applyOrder(query *PersonalAccessTokenQuery) *PersonalAccessTokenQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultOauthProviderHistoryOrder.Field { - query = query.Order(DefaultOauthProviderHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultPersonalAccessTokenOrder.Field { + query = query.Order(DefaultPersonalAccessTokenOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -9619,7 +14249,7 @@ func (p *oauthproviderhistoryPager) applyOrder(query *OauthProviderHistoryQuery) return query } -func (p *oauthproviderhistoryPager) orderExpr(query *OauthProviderHistoryQuery) sql.Querier { +func (p *personalaccesstokenPager) orderExpr(query *PersonalAccessTokenQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -9629,33 +14259,33 @@ func (p *oauthproviderhistoryPager) orderExpr(query *OauthProviderHistoryQuery) } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultOauthProviderHistoryOrder.Field { - b.Comma().Ident(DefaultOauthProviderHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultPersonalAccessTokenOrder.Field { + b.Comma().Ident(DefaultPersonalAccessTokenOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to OauthProviderHistory. -func (oph *OauthProviderHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to PersonalAccessToken. +func (pat *PersonalAccessTokenQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...OauthProviderHistoryPaginateOption, -) (*OauthProviderHistoryConnection, error) { + before *Cursor, last *int, opts ...PersonalAccessTokenPaginateOption, +) (*PersonalAccessTokenConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newOauthProviderHistoryPager(opts, last != nil) + pager, err := newPersonalAccessTokenPager(opts, last != nil) if err != nil { return nil, err } - if oph, err = pager.applyFilter(oph); err != nil { + if pat, err = pager.applyFilter(pat); err != nil { return nil, err } - conn := &OauthProviderHistoryConnection{Edges: []*OauthProviderHistoryEdge{}} + conn := &PersonalAccessTokenConnection{Edges: []*PersonalAccessTokenEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := oph.Clone() + c := pat.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -9667,20 +14297,20 @@ func (oph *OauthProviderHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if oph, err = pager.applyCursors(oph, after, before); err != nil { + if pat, err = pager.applyCursors(pat, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - oph.Limit(limit) + pat.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := oph.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := pat.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - oph = pager.applyOrder(oph) - nodes, err := oph.All(ctx) + pat = pager.applyOrder(pat) + nodes, err := pat.All(ctx) if err != nil { return nil, err } @@ -9688,61 +14318,61 @@ func (oph *OauthProviderHistoryQuery) Paginate( return conn, nil } -// OauthProviderHistoryOrderField defines the ordering field of OauthProviderHistory. -type OauthProviderHistoryOrderField struct { - // Value extracts the ordering value from the given OauthProviderHistory. - Value func(*OauthProviderHistory) (ent.Value, error) +// PersonalAccessTokenOrderField defines the ordering field of PersonalAccessToken. +type PersonalAccessTokenOrderField struct { + // Value extracts the ordering value from the given PersonalAccessToken. + Value func(*PersonalAccessToken) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) oauthproviderhistory.OrderOption - toCursor func(*OauthProviderHistory) Cursor + toTerm func(...sql.OrderTermOption) personalaccesstoken.OrderOption + toCursor func(*PersonalAccessToken) Cursor } -// OauthProviderHistoryOrder defines the ordering of OauthProviderHistory. -type OauthProviderHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *OauthProviderHistoryOrderField `json:"field"` +// PersonalAccessTokenOrder defines the ordering of PersonalAccessToken. +type PersonalAccessTokenOrder struct { + Direction OrderDirection `json:"direction"` + Field *PersonalAccessTokenOrderField `json:"field"` } -// DefaultOauthProviderHistoryOrder is the default ordering of OauthProviderHistory. -var DefaultOauthProviderHistoryOrder = &OauthProviderHistoryOrder{ +// DefaultPersonalAccessTokenOrder is the default ordering of PersonalAccessToken. +var DefaultPersonalAccessTokenOrder = &PersonalAccessTokenOrder{ Direction: entgql.OrderDirectionAsc, - Field: &OauthProviderHistoryOrderField{ - Value: func(oph *OauthProviderHistory) (ent.Value, error) { - return oph.ID, nil + Field: &PersonalAccessTokenOrderField{ + Value: func(pat *PersonalAccessToken) (ent.Value, error) { + return pat.ID, nil }, - column: oauthproviderhistory.FieldID, - toTerm: oauthproviderhistory.ByID, - toCursor: func(oph *OauthProviderHistory) Cursor { - return Cursor{ID: oph.ID} + column: personalaccesstoken.FieldID, + toTerm: personalaccesstoken.ByID, + toCursor: func(pat *PersonalAccessToken) Cursor { + return Cursor{ID: pat.ID} }, }, } -// ToEdge converts OauthProviderHistory into OauthProviderHistoryEdge. -func (oph *OauthProviderHistory) ToEdge(order *OauthProviderHistoryOrder) *OauthProviderHistoryEdge { +// ToEdge converts PersonalAccessToken into PersonalAccessTokenEdge. +func (pat *PersonalAccessToken) ToEdge(order *PersonalAccessTokenOrder) *PersonalAccessTokenEdge { if order == nil { - order = DefaultOauthProviderHistoryOrder + order = DefaultPersonalAccessTokenOrder } - return &OauthProviderHistoryEdge{ - Node: oph, - Cursor: order.Field.toCursor(oph), + return &PersonalAccessTokenEdge{ + Node: pat, + Cursor: order.Field.toCursor(pat), } } -// OhAuthTooTokenEdge is the edge representation of OhAuthTooToken. -type OhAuthTooTokenEdge struct { - Node *OhAuthTooToken `json:"node"` - Cursor Cursor `json:"cursor"` +// ProcedureEdge is the edge representation of Procedure. +type ProcedureEdge struct { + Node *Procedure `json:"node"` + Cursor Cursor `json:"cursor"` } -// OhAuthTooTokenConnection is the connection containing edges to OhAuthTooToken. -type OhAuthTooTokenConnection struct { - Edges []*OhAuthTooTokenEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// ProcedureConnection is the connection containing edges to Procedure. +type ProcedureConnection struct { + Edges []*ProcedureEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *OhAuthTooTokenConnection) build(nodes []*OhAuthTooToken, pager *ohauthtootokenPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *ProcedureConnection) build(nodes []*Procedure, pager *procedurePager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -9752,21 +14382,21 @@ func (c *OhAuthTooTokenConnection) build(nodes []*OhAuthTooToken, pager *ohautht c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *OhAuthTooToken + var nodeAt func(int) *Procedure if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *OhAuthTooToken { + nodeAt = func(i int) *Procedure { return nodes[n-i] } } else { - nodeAt = func(i int) *OhAuthTooToken { + nodeAt = func(i int) *Procedure { return nodes[i] } } - c.Edges = make([]*OhAuthTooTokenEdge, len(nodes)) + c.Edges = make([]*ProcedureEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &OhAuthTooTokenEdge{ + c.Edges[i] = &ProcedureEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -9780,87 +14410,87 @@ func (c *OhAuthTooTokenConnection) build(nodes []*OhAuthTooToken, pager *ohautht } } -// OhAuthTooTokenPaginateOption enables pagination customization. -type OhAuthTooTokenPaginateOption func(*ohauthtootokenPager) error +// ProcedurePaginateOption enables pagination customization. +type ProcedurePaginateOption func(*procedurePager) error -// WithOhAuthTooTokenOrder configures pagination ordering. -func WithOhAuthTooTokenOrder(order *OhAuthTooTokenOrder) OhAuthTooTokenPaginateOption { +// WithProcedureOrder configures pagination ordering. +func WithProcedureOrder(order *ProcedureOrder) ProcedurePaginateOption { if order == nil { - order = DefaultOhAuthTooTokenOrder + order = DefaultProcedureOrder } o := *order - return func(pager *ohauthtootokenPager) error { + return func(pager *procedurePager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultOhAuthTooTokenOrder.Field + o.Field = DefaultProcedureOrder.Field } pager.order = &o return nil } } -// WithOhAuthTooTokenFilter configures pagination filter. -func WithOhAuthTooTokenFilter(filter func(*OhAuthTooTokenQuery) (*OhAuthTooTokenQuery, error)) OhAuthTooTokenPaginateOption { - return func(pager *ohauthtootokenPager) error { +// WithProcedureFilter configures pagination filter. +func WithProcedureFilter(filter func(*ProcedureQuery) (*ProcedureQuery, error)) ProcedurePaginateOption { + return func(pager *procedurePager) error { if filter == nil { - return errors.New("OhAuthTooTokenQuery filter cannot be nil") + return errors.New("ProcedureQuery filter cannot be nil") } pager.filter = filter return nil } } -type ohauthtootokenPager struct { +type procedurePager struct { reverse bool - order *OhAuthTooTokenOrder - filter func(*OhAuthTooTokenQuery) (*OhAuthTooTokenQuery, error) + order *ProcedureOrder + filter func(*ProcedureQuery) (*ProcedureQuery, error) } -func newOhAuthTooTokenPager(opts []OhAuthTooTokenPaginateOption, reverse bool) (*ohauthtootokenPager, error) { - pager := &ohauthtootokenPager{reverse: reverse} +func newProcedurePager(opts []ProcedurePaginateOption, reverse bool) (*procedurePager, error) { + pager := &procedurePager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultOhAuthTooTokenOrder + pager.order = DefaultProcedureOrder } return pager, nil } -func (p *ohauthtootokenPager) applyFilter(query *OhAuthTooTokenQuery) (*OhAuthTooTokenQuery, error) { +func (p *procedurePager) applyFilter(query *ProcedureQuery) (*ProcedureQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *ohauthtootokenPager) toCursor(oatt *OhAuthTooToken) Cursor { - return p.order.Field.toCursor(oatt) +func (p *procedurePager) toCursor(pr *Procedure) Cursor { + return p.order.Field.toCursor(pr) } -func (p *ohauthtootokenPager) applyCursors(query *OhAuthTooTokenQuery, after, before *Cursor) (*OhAuthTooTokenQuery, error) { +func (p *procedurePager) applyCursors(query *ProcedureQuery, after, before *Cursor) (*ProcedureQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOhAuthTooTokenOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultProcedureOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *ohauthtootokenPager) applyOrder(query *OhAuthTooTokenQuery) *OhAuthTooTokenQuery { +func (p *procedurePager) applyOrder(query *ProcedureQuery) *ProcedureQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultOhAuthTooTokenOrder.Field { - query = query.Order(DefaultOhAuthTooTokenOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultProcedureOrder.Field { + query = query.Order(DefaultProcedureOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -9868,7 +14498,7 @@ func (p *ohauthtootokenPager) applyOrder(query *OhAuthTooTokenQuery) *OhAuthTooT return query } -func (p *ohauthtootokenPager) orderExpr(query *OhAuthTooTokenQuery) sql.Querier { +func (p *procedurePager) orderExpr(query *ProcedureQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -9878,33 +14508,33 @@ func (p *ohauthtootokenPager) orderExpr(query *OhAuthTooTokenQuery) sql.Querier } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultOhAuthTooTokenOrder.Field { - b.Comma().Ident(DefaultOhAuthTooTokenOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultProcedureOrder.Field { + b.Comma().Ident(DefaultProcedureOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to OhAuthTooToken. -func (oatt *OhAuthTooTokenQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Procedure. +func (pr *ProcedureQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...OhAuthTooTokenPaginateOption, -) (*OhAuthTooTokenConnection, error) { + before *Cursor, last *int, opts ...ProcedurePaginateOption, +) (*ProcedureConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newOhAuthTooTokenPager(opts, last != nil) + pager, err := newProcedurePager(opts, last != nil) if err != nil { return nil, err } - if oatt, err = pager.applyFilter(oatt); err != nil { + if pr, err = pager.applyFilter(pr); err != nil { return nil, err } - conn := &OhAuthTooTokenConnection{Edges: []*OhAuthTooTokenEdge{}} + conn := &ProcedureConnection{Edges: []*ProcedureEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := oatt.Clone() + c := pr.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -9916,20 +14546,20 @@ func (oatt *OhAuthTooTokenQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if oatt, err = pager.applyCursors(oatt, after, before); err != nil { + if pr, err = pager.applyCursors(pr, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - oatt.Limit(limit) + pr.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := oatt.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := pr.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - oatt = pager.applyOrder(oatt) - nodes, err := oatt.All(ctx) + pr = pager.applyOrder(pr) + nodes, err := pr.All(ctx) if err != nil { return nil, err } @@ -9937,61 +14567,61 @@ func (oatt *OhAuthTooTokenQuery) Paginate( return conn, nil } -// OhAuthTooTokenOrderField defines the ordering field of OhAuthTooToken. -type OhAuthTooTokenOrderField struct { - // Value extracts the ordering value from the given OhAuthTooToken. - Value func(*OhAuthTooToken) (ent.Value, error) +// ProcedureOrderField defines the ordering field of Procedure. +type ProcedureOrderField struct { + // Value extracts the ordering value from the given Procedure. + Value func(*Procedure) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) ohauthtootoken.OrderOption - toCursor func(*OhAuthTooToken) Cursor + toTerm func(...sql.OrderTermOption) procedure.OrderOption + toCursor func(*Procedure) Cursor } -// OhAuthTooTokenOrder defines the ordering of OhAuthTooToken. -type OhAuthTooTokenOrder struct { - Direction OrderDirection `json:"direction"` - Field *OhAuthTooTokenOrderField `json:"field"` +// ProcedureOrder defines the ordering of Procedure. +type ProcedureOrder struct { + Direction OrderDirection `json:"direction"` + Field *ProcedureOrderField `json:"field"` } -// DefaultOhAuthTooTokenOrder is the default ordering of OhAuthTooToken. -var DefaultOhAuthTooTokenOrder = &OhAuthTooTokenOrder{ +// DefaultProcedureOrder is the default ordering of Procedure. +var DefaultProcedureOrder = &ProcedureOrder{ Direction: entgql.OrderDirectionAsc, - Field: &OhAuthTooTokenOrderField{ - Value: func(oatt *OhAuthTooToken) (ent.Value, error) { - return oatt.ID, nil + Field: &ProcedureOrderField{ + Value: func(pr *Procedure) (ent.Value, error) { + return pr.ID, nil }, - column: ohauthtootoken.FieldID, - toTerm: ohauthtootoken.ByID, - toCursor: func(oatt *OhAuthTooToken) Cursor { - return Cursor{ID: oatt.ID} + column: procedure.FieldID, + toTerm: procedure.ByID, + toCursor: func(pr *Procedure) Cursor { + return Cursor{ID: pr.ID} }, }, } -// ToEdge converts OhAuthTooToken into OhAuthTooTokenEdge. -func (oatt *OhAuthTooToken) ToEdge(order *OhAuthTooTokenOrder) *OhAuthTooTokenEdge { +// ToEdge converts Procedure into ProcedureEdge. +func (pr *Procedure) ToEdge(order *ProcedureOrder) *ProcedureEdge { if order == nil { - order = DefaultOhAuthTooTokenOrder + order = DefaultProcedureOrder } - return &OhAuthTooTokenEdge{ - Node: oatt, - Cursor: order.Field.toCursor(oatt), + return &ProcedureEdge{ + Node: pr, + Cursor: order.Field.toCursor(pr), } } -// OrgMembershipEdge is the edge representation of OrgMembership. -type OrgMembershipEdge struct { - Node *OrgMembership `json:"node"` - Cursor Cursor `json:"cursor"` +// ProcedureHistoryEdge is the edge representation of ProcedureHistory. +type ProcedureHistoryEdge struct { + Node *ProcedureHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// OrgMembershipConnection is the connection containing edges to OrgMembership. -type OrgMembershipConnection struct { - Edges []*OrgMembershipEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// ProcedureHistoryConnection is the connection containing edges to ProcedureHistory. +type ProcedureHistoryConnection struct { + Edges []*ProcedureHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *OrgMembershipConnection) build(nodes []*OrgMembership, pager *orgmembershipPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *ProcedureHistoryConnection) build(nodes []*ProcedureHistory, pager *procedurehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -10001,21 +14631,21 @@ func (c *OrgMembershipConnection) build(nodes []*OrgMembership, pager *orgmember c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *OrgMembership + var nodeAt func(int) *ProcedureHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *OrgMembership { + nodeAt = func(i int) *ProcedureHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *OrgMembership { + nodeAt = func(i int) *ProcedureHistory { return nodes[i] } } - c.Edges = make([]*OrgMembershipEdge, len(nodes)) + c.Edges = make([]*ProcedureHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &OrgMembershipEdge{ + c.Edges[i] = &ProcedureHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -10029,87 +14659,87 @@ func (c *OrgMembershipConnection) build(nodes []*OrgMembership, pager *orgmember } } -// OrgMembershipPaginateOption enables pagination customization. -type OrgMembershipPaginateOption func(*orgmembershipPager) error +// ProcedureHistoryPaginateOption enables pagination customization. +type ProcedureHistoryPaginateOption func(*procedurehistoryPager) error -// WithOrgMembershipOrder configures pagination ordering. -func WithOrgMembershipOrder(order *OrgMembershipOrder) OrgMembershipPaginateOption { +// WithProcedureHistoryOrder configures pagination ordering. +func WithProcedureHistoryOrder(order *ProcedureHistoryOrder) ProcedureHistoryPaginateOption { if order == nil { - order = DefaultOrgMembershipOrder + order = DefaultProcedureHistoryOrder } o := *order - return func(pager *orgmembershipPager) error { + return func(pager *procedurehistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultOrgMembershipOrder.Field + o.Field = DefaultProcedureHistoryOrder.Field } pager.order = &o return nil } } -// WithOrgMembershipFilter configures pagination filter. -func WithOrgMembershipFilter(filter func(*OrgMembershipQuery) (*OrgMembershipQuery, error)) OrgMembershipPaginateOption { - return func(pager *orgmembershipPager) error { +// WithProcedureHistoryFilter configures pagination filter. +func WithProcedureHistoryFilter(filter func(*ProcedureHistoryQuery) (*ProcedureHistoryQuery, error)) ProcedureHistoryPaginateOption { + return func(pager *procedurehistoryPager) error { if filter == nil { - return errors.New("OrgMembershipQuery filter cannot be nil") + return errors.New("ProcedureHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type orgmembershipPager struct { +type procedurehistoryPager struct { reverse bool - order *OrgMembershipOrder - filter func(*OrgMembershipQuery) (*OrgMembershipQuery, error) + order *ProcedureHistoryOrder + filter func(*ProcedureHistoryQuery) (*ProcedureHistoryQuery, error) } -func newOrgMembershipPager(opts []OrgMembershipPaginateOption, reverse bool) (*orgmembershipPager, error) { - pager := &orgmembershipPager{reverse: reverse} +func newProcedureHistoryPager(opts []ProcedureHistoryPaginateOption, reverse bool) (*procedurehistoryPager, error) { + pager := &procedurehistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultOrgMembershipOrder + pager.order = DefaultProcedureHistoryOrder } return pager, nil } -func (p *orgmembershipPager) applyFilter(query *OrgMembershipQuery) (*OrgMembershipQuery, error) { +func (p *procedurehistoryPager) applyFilter(query *ProcedureHistoryQuery) (*ProcedureHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *orgmembershipPager) toCursor(om *OrgMembership) Cursor { - return p.order.Field.toCursor(om) +func (p *procedurehistoryPager) toCursor(ph *ProcedureHistory) Cursor { + return p.order.Field.toCursor(ph) } -func (p *orgmembershipPager) applyCursors(query *OrgMembershipQuery, after, before *Cursor) (*OrgMembershipQuery, error) { +func (p *procedurehistoryPager) applyCursors(query *ProcedureHistoryQuery, after, before *Cursor) (*ProcedureHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOrgMembershipOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultProcedureHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *orgmembershipPager) applyOrder(query *OrgMembershipQuery) *OrgMembershipQuery { +func (p *procedurehistoryPager) applyOrder(query *ProcedureHistoryQuery) *ProcedureHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultOrgMembershipOrder.Field { - query = query.Order(DefaultOrgMembershipOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultProcedureHistoryOrder.Field { + query = query.Order(DefaultProcedureHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -10117,7 +14747,7 @@ func (p *orgmembershipPager) applyOrder(query *OrgMembershipQuery) *OrgMembershi return query } -func (p *orgmembershipPager) orderExpr(query *OrgMembershipQuery) sql.Querier { +func (p *procedurehistoryPager) orderExpr(query *ProcedureHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -10127,33 +14757,33 @@ func (p *orgmembershipPager) orderExpr(query *OrgMembershipQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultOrgMembershipOrder.Field { - b.Comma().Ident(DefaultOrgMembershipOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultProcedureHistoryOrder.Field { + b.Comma().Ident(DefaultProcedureHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to OrgMembership. -func (om *OrgMembershipQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to ProcedureHistory. +func (ph *ProcedureHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...OrgMembershipPaginateOption, -) (*OrgMembershipConnection, error) { + before *Cursor, last *int, opts ...ProcedureHistoryPaginateOption, +) (*ProcedureHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newOrgMembershipPager(opts, last != nil) + pager, err := newProcedureHistoryPager(opts, last != nil) if err != nil { return nil, err } - if om, err = pager.applyFilter(om); err != nil { + if ph, err = pager.applyFilter(ph); err != nil { return nil, err } - conn := &OrgMembershipConnection{Edges: []*OrgMembershipEdge{}} + conn := &ProcedureHistoryConnection{Edges: []*ProcedureHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := om.Clone() + c := ph.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -10165,20 +14795,20 @@ func (om *OrgMembershipQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if om, err = pager.applyCursors(om, after, before); err != nil { + if ph, err = pager.applyCursors(ph, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - om.Limit(limit) + ph.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := om.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := ph.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - om = pager.applyOrder(om) - nodes, err := om.All(ctx) + ph = pager.applyOrder(ph) + nodes, err := ph.All(ctx) if err != nil { return nil, err } @@ -10186,61 +14816,61 @@ func (om *OrgMembershipQuery) Paginate( return conn, nil } -// OrgMembershipOrderField defines the ordering field of OrgMembership. -type OrgMembershipOrderField struct { - // Value extracts the ordering value from the given OrgMembership. - Value func(*OrgMembership) (ent.Value, error) +// ProcedureHistoryOrderField defines the ordering field of ProcedureHistory. +type ProcedureHistoryOrderField struct { + // Value extracts the ordering value from the given ProcedureHistory. + Value func(*ProcedureHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) orgmembership.OrderOption - toCursor func(*OrgMembership) Cursor + toTerm func(...sql.OrderTermOption) procedurehistory.OrderOption + toCursor func(*ProcedureHistory) Cursor } -// OrgMembershipOrder defines the ordering of OrgMembership. -type OrgMembershipOrder struct { - Direction OrderDirection `json:"direction"` - Field *OrgMembershipOrderField `json:"field"` +// ProcedureHistoryOrder defines the ordering of ProcedureHistory. +type ProcedureHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *ProcedureHistoryOrderField `json:"field"` } -// DefaultOrgMembershipOrder is the default ordering of OrgMembership. -var DefaultOrgMembershipOrder = &OrgMembershipOrder{ +// DefaultProcedureHistoryOrder is the default ordering of ProcedureHistory. +var DefaultProcedureHistoryOrder = &ProcedureHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &OrgMembershipOrderField{ - Value: func(om *OrgMembership) (ent.Value, error) { - return om.ID, nil + Field: &ProcedureHistoryOrderField{ + Value: func(ph *ProcedureHistory) (ent.Value, error) { + return ph.ID, nil }, - column: orgmembership.FieldID, - toTerm: orgmembership.ByID, - toCursor: func(om *OrgMembership) Cursor { - return Cursor{ID: om.ID} + column: procedurehistory.FieldID, + toTerm: procedurehistory.ByID, + toCursor: func(ph *ProcedureHistory) Cursor { + return Cursor{ID: ph.ID} }, }, } -// ToEdge converts OrgMembership into OrgMembershipEdge. -func (om *OrgMembership) ToEdge(order *OrgMembershipOrder) *OrgMembershipEdge { +// ToEdge converts ProcedureHistory into ProcedureHistoryEdge. +func (ph *ProcedureHistory) ToEdge(order *ProcedureHistoryOrder) *ProcedureHistoryEdge { if order == nil { - order = DefaultOrgMembershipOrder + order = DefaultProcedureHistoryOrder } - return &OrgMembershipEdge{ - Node: om, - Cursor: order.Field.toCursor(om), + return &ProcedureHistoryEdge{ + Node: ph, + Cursor: order.Field.toCursor(ph), } } -// OrgMembershipHistoryEdge is the edge representation of OrgMembershipHistory. -type OrgMembershipHistoryEdge struct { - Node *OrgMembershipHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// RiskEdge is the edge representation of Risk. +type RiskEdge struct { + Node *Risk `json:"node"` + Cursor Cursor `json:"cursor"` } -// OrgMembershipHistoryConnection is the connection containing edges to OrgMembershipHistory. -type OrgMembershipHistoryConnection struct { - Edges []*OrgMembershipHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// RiskConnection is the connection containing edges to Risk. +type RiskConnection struct { + Edges []*RiskEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *OrgMembershipHistoryConnection) build(nodes []*OrgMembershipHistory, pager *orgmembershiphistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *RiskConnection) build(nodes []*Risk, pager *riskPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -10250,21 +14880,21 @@ func (c *OrgMembershipHistoryConnection) build(nodes []*OrgMembershipHistory, pa c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *OrgMembershipHistory + var nodeAt func(int) *Risk if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *OrgMembershipHistory { + nodeAt = func(i int) *Risk { return nodes[n-i] } } else { - nodeAt = func(i int) *OrgMembershipHistory { + nodeAt = func(i int) *Risk { return nodes[i] } } - c.Edges = make([]*OrgMembershipHistoryEdge, len(nodes)) + c.Edges = make([]*RiskEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &OrgMembershipHistoryEdge{ + c.Edges[i] = &RiskEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -10278,87 +14908,87 @@ func (c *OrgMembershipHistoryConnection) build(nodes []*OrgMembershipHistory, pa } } -// OrgMembershipHistoryPaginateOption enables pagination customization. -type OrgMembershipHistoryPaginateOption func(*orgmembershiphistoryPager) error +// RiskPaginateOption enables pagination customization. +type RiskPaginateOption func(*riskPager) error -// WithOrgMembershipHistoryOrder configures pagination ordering. -func WithOrgMembershipHistoryOrder(order *OrgMembershipHistoryOrder) OrgMembershipHistoryPaginateOption { +// WithRiskOrder configures pagination ordering. +func WithRiskOrder(order *RiskOrder) RiskPaginateOption { if order == nil { - order = DefaultOrgMembershipHistoryOrder + order = DefaultRiskOrder } o := *order - return func(pager *orgmembershiphistoryPager) error { + return func(pager *riskPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultOrgMembershipHistoryOrder.Field + o.Field = DefaultRiskOrder.Field } pager.order = &o return nil } } -// WithOrgMembershipHistoryFilter configures pagination filter. -func WithOrgMembershipHistoryFilter(filter func(*OrgMembershipHistoryQuery) (*OrgMembershipHistoryQuery, error)) OrgMembershipHistoryPaginateOption { - return func(pager *orgmembershiphistoryPager) error { +// WithRiskFilter configures pagination filter. +func WithRiskFilter(filter func(*RiskQuery) (*RiskQuery, error)) RiskPaginateOption { + return func(pager *riskPager) error { if filter == nil { - return errors.New("OrgMembershipHistoryQuery filter cannot be nil") + return errors.New("RiskQuery filter cannot be nil") } pager.filter = filter return nil } } -type orgmembershiphistoryPager struct { +type riskPager struct { reverse bool - order *OrgMembershipHistoryOrder - filter func(*OrgMembershipHistoryQuery) (*OrgMembershipHistoryQuery, error) + order *RiskOrder + filter func(*RiskQuery) (*RiskQuery, error) } -func newOrgMembershipHistoryPager(opts []OrgMembershipHistoryPaginateOption, reverse bool) (*orgmembershiphistoryPager, error) { - pager := &orgmembershiphistoryPager{reverse: reverse} +func newRiskPager(opts []RiskPaginateOption, reverse bool) (*riskPager, error) { + pager := &riskPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultOrgMembershipHistoryOrder + pager.order = DefaultRiskOrder } return pager, nil } -func (p *orgmembershiphistoryPager) applyFilter(query *OrgMembershipHistoryQuery) (*OrgMembershipHistoryQuery, error) { +func (p *riskPager) applyFilter(query *RiskQuery) (*RiskQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *orgmembershiphistoryPager) toCursor(omh *OrgMembershipHistory) Cursor { - return p.order.Field.toCursor(omh) +func (p *riskPager) toCursor(r *Risk) Cursor { + return p.order.Field.toCursor(r) } -func (p *orgmembershiphistoryPager) applyCursors(query *OrgMembershipHistoryQuery, after, before *Cursor) (*OrgMembershipHistoryQuery, error) { +func (p *riskPager) applyCursors(query *RiskQuery, after, before *Cursor) (*RiskQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOrgMembershipHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultRiskOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *orgmembershiphistoryPager) applyOrder(query *OrgMembershipHistoryQuery) *OrgMembershipHistoryQuery { +func (p *riskPager) applyOrder(query *RiskQuery) *RiskQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultOrgMembershipHistoryOrder.Field { - query = query.Order(DefaultOrgMembershipHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultRiskOrder.Field { + query = query.Order(DefaultRiskOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -10366,7 +14996,7 @@ func (p *orgmembershiphistoryPager) applyOrder(query *OrgMembershipHistoryQuery) return query } -func (p *orgmembershiphistoryPager) orderExpr(query *OrgMembershipHistoryQuery) sql.Querier { +func (p *riskPager) orderExpr(query *RiskQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -10376,33 +15006,33 @@ func (p *orgmembershiphistoryPager) orderExpr(query *OrgMembershipHistoryQuery) } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultOrgMembershipHistoryOrder.Field { - b.Comma().Ident(DefaultOrgMembershipHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultRiskOrder.Field { + b.Comma().Ident(DefaultRiskOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to OrgMembershipHistory. -func (omh *OrgMembershipHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Risk. +func (r *RiskQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...OrgMembershipHistoryPaginateOption, -) (*OrgMembershipHistoryConnection, error) { + before *Cursor, last *int, opts ...RiskPaginateOption, +) (*RiskConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newOrgMembershipHistoryPager(opts, last != nil) + pager, err := newRiskPager(opts, last != nil) if err != nil { return nil, err } - if omh, err = pager.applyFilter(omh); err != nil { + if r, err = pager.applyFilter(r); err != nil { return nil, err } - conn := &OrgMembershipHistoryConnection{Edges: []*OrgMembershipHistoryEdge{}} + conn := &RiskConnection{Edges: []*RiskEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := omh.Clone() + c := r.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -10414,20 +15044,20 @@ func (omh *OrgMembershipHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if omh, err = pager.applyCursors(omh, after, before); err != nil { + if r, err = pager.applyCursors(r, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - omh.Limit(limit) + r.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := omh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := r.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - omh = pager.applyOrder(omh) - nodes, err := omh.All(ctx) + r = pager.applyOrder(r) + nodes, err := r.All(ctx) if err != nil { return nil, err } @@ -10435,61 +15065,61 @@ func (omh *OrgMembershipHistoryQuery) Paginate( return conn, nil } -// OrgMembershipHistoryOrderField defines the ordering field of OrgMembershipHistory. -type OrgMembershipHistoryOrderField struct { - // Value extracts the ordering value from the given OrgMembershipHistory. - Value func(*OrgMembershipHistory) (ent.Value, error) +// RiskOrderField defines the ordering field of Risk. +type RiskOrderField struct { + // Value extracts the ordering value from the given Risk. + Value func(*Risk) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) orgmembershiphistory.OrderOption - toCursor func(*OrgMembershipHistory) Cursor + toTerm func(...sql.OrderTermOption) risk.OrderOption + toCursor func(*Risk) Cursor } -// OrgMembershipHistoryOrder defines the ordering of OrgMembershipHistory. -type OrgMembershipHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *OrgMembershipHistoryOrderField `json:"field"` +// RiskOrder defines the ordering of Risk. +type RiskOrder struct { + Direction OrderDirection `json:"direction"` + Field *RiskOrderField `json:"field"` } -// DefaultOrgMembershipHistoryOrder is the default ordering of OrgMembershipHistory. -var DefaultOrgMembershipHistoryOrder = &OrgMembershipHistoryOrder{ +// DefaultRiskOrder is the default ordering of Risk. +var DefaultRiskOrder = &RiskOrder{ Direction: entgql.OrderDirectionAsc, - Field: &OrgMembershipHistoryOrderField{ - Value: func(omh *OrgMembershipHistory) (ent.Value, error) { - return omh.ID, nil + Field: &RiskOrderField{ + Value: func(r *Risk) (ent.Value, error) { + return r.ID, nil }, - column: orgmembershiphistory.FieldID, - toTerm: orgmembershiphistory.ByID, - toCursor: func(omh *OrgMembershipHistory) Cursor { - return Cursor{ID: omh.ID} + column: risk.FieldID, + toTerm: risk.ByID, + toCursor: func(r *Risk) Cursor { + return Cursor{ID: r.ID} }, }, } -// ToEdge converts OrgMembershipHistory into OrgMembershipHistoryEdge. -func (omh *OrgMembershipHistory) ToEdge(order *OrgMembershipHistoryOrder) *OrgMembershipHistoryEdge { +// ToEdge converts Risk into RiskEdge. +func (r *Risk) ToEdge(order *RiskOrder) *RiskEdge { if order == nil { - order = DefaultOrgMembershipHistoryOrder + order = DefaultRiskOrder } - return &OrgMembershipHistoryEdge{ - Node: omh, - Cursor: order.Field.toCursor(omh), + return &RiskEdge{ + Node: r, + Cursor: order.Field.toCursor(r), } } -// OrganizationEdge is the edge representation of Organization. -type OrganizationEdge struct { - Node *Organization `json:"node"` - Cursor Cursor `json:"cursor"` +// RiskHistoryEdge is the edge representation of RiskHistory. +type RiskHistoryEdge struct { + Node *RiskHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// OrganizationConnection is the connection containing edges to Organization. -type OrganizationConnection struct { - Edges []*OrganizationEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// RiskHistoryConnection is the connection containing edges to RiskHistory. +type RiskHistoryConnection struct { + Edges []*RiskHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *OrganizationConnection) build(nodes []*Organization, pager *organizationPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *RiskHistoryConnection) build(nodes []*RiskHistory, pager *riskhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -10499,21 +15129,21 @@ func (c *OrganizationConnection) build(nodes []*Organization, pager *organizatio c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *Organization + var nodeAt func(int) *RiskHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *Organization { + nodeAt = func(i int) *RiskHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *Organization { + nodeAt = func(i int) *RiskHistory { return nodes[i] } } - c.Edges = make([]*OrganizationEdge, len(nodes)) + c.Edges = make([]*RiskHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &OrganizationEdge{ + c.Edges[i] = &RiskHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -10527,87 +15157,87 @@ func (c *OrganizationConnection) build(nodes []*Organization, pager *organizatio } } -// OrganizationPaginateOption enables pagination customization. -type OrganizationPaginateOption func(*organizationPager) error +// RiskHistoryPaginateOption enables pagination customization. +type RiskHistoryPaginateOption func(*riskhistoryPager) error -// WithOrganizationOrder configures pagination ordering. -func WithOrganizationOrder(order *OrganizationOrder) OrganizationPaginateOption { +// WithRiskHistoryOrder configures pagination ordering. +func WithRiskHistoryOrder(order *RiskHistoryOrder) RiskHistoryPaginateOption { if order == nil { - order = DefaultOrganizationOrder + order = DefaultRiskHistoryOrder } o := *order - return func(pager *organizationPager) error { + return func(pager *riskhistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultOrganizationOrder.Field + o.Field = DefaultRiskHistoryOrder.Field } pager.order = &o return nil } } -// WithOrganizationFilter configures pagination filter. -func WithOrganizationFilter(filter func(*OrganizationQuery) (*OrganizationQuery, error)) OrganizationPaginateOption { - return func(pager *organizationPager) error { +// WithRiskHistoryFilter configures pagination filter. +func WithRiskHistoryFilter(filter func(*RiskHistoryQuery) (*RiskHistoryQuery, error)) RiskHistoryPaginateOption { + return func(pager *riskhistoryPager) error { if filter == nil { - return errors.New("OrganizationQuery filter cannot be nil") + return errors.New("RiskHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type organizationPager struct { +type riskhistoryPager struct { reverse bool - order *OrganizationOrder - filter func(*OrganizationQuery) (*OrganizationQuery, error) + order *RiskHistoryOrder + filter func(*RiskHistoryQuery) (*RiskHistoryQuery, error) } -func newOrganizationPager(opts []OrganizationPaginateOption, reverse bool) (*organizationPager, error) { - pager := &organizationPager{reverse: reverse} +func newRiskHistoryPager(opts []RiskHistoryPaginateOption, reverse bool) (*riskhistoryPager, error) { + pager := &riskhistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultOrganizationOrder + pager.order = DefaultRiskHistoryOrder } return pager, nil } -func (p *organizationPager) applyFilter(query *OrganizationQuery) (*OrganizationQuery, error) { +func (p *riskhistoryPager) applyFilter(query *RiskHistoryQuery) (*RiskHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *organizationPager) toCursor(o *Organization) Cursor { - return p.order.Field.toCursor(o) +func (p *riskhistoryPager) toCursor(rh *RiskHistory) Cursor { + return p.order.Field.toCursor(rh) } -func (p *organizationPager) applyCursors(query *OrganizationQuery, after, before *Cursor) (*OrganizationQuery, error) { +func (p *riskhistoryPager) applyCursors(query *RiskHistoryQuery, after, before *Cursor) (*RiskHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOrganizationOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultRiskHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *organizationPager) applyOrder(query *OrganizationQuery) *OrganizationQuery { +func (p *riskhistoryPager) applyOrder(query *RiskHistoryQuery) *RiskHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultOrganizationOrder.Field { - query = query.Order(DefaultOrganizationOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultRiskHistoryOrder.Field { + query = query.Order(DefaultRiskHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -10615,7 +15245,7 @@ func (p *organizationPager) applyOrder(query *OrganizationQuery) *OrganizationQu return query } -func (p *organizationPager) orderExpr(query *OrganizationQuery) sql.Querier { +func (p *riskhistoryPager) orderExpr(query *RiskHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -10625,185 +15255,120 @@ func (p *organizationPager) orderExpr(query *OrganizationQuery) sql.Querier { } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultOrganizationOrder.Field { - b.Comma().Ident(DefaultOrganizationOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultRiskHistoryOrder.Field { + b.Comma().Ident(DefaultRiskHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to Organization. -func (o *OrganizationQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to RiskHistory. +func (rh *RiskHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...OrganizationPaginateOption, -) (*OrganizationConnection, error) { + before *Cursor, last *int, opts ...RiskHistoryPaginateOption, +) (*RiskHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newOrganizationPager(opts, last != nil) + pager, err := newRiskHistoryPager(opts, last != nil) if err != nil { return nil, err } - if o, err = pager.applyFilter(o); err != nil { - return nil, err - } - conn := &OrganizationConnection{Edges: []*OrganizationEdge{}} - ignoredEdges := !hasCollectedField(ctx, edgesField) - if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { - hasPagination := after != nil || first != nil || before != nil || last != nil - if hasPagination || ignoredEdges { - c := o.Clone() - c.ctx.Fields = nil - if conn.TotalCount, err = c.Count(ctx); err != nil { - return nil, err - } - conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 - conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 - } - } - if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { - return conn, nil - } - if o, err = pager.applyCursors(o, after, before); err != nil { - return nil, err - } - limit := paginateLimit(first, last) - if limit != 0 { - o.Limit(limit) - } - if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := o.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { - return nil, err - } - } - o = pager.applyOrder(o) - nodes, err := o.All(ctx) - if err != nil { + if rh, err = pager.applyFilter(rh); err != nil { return nil, err - } - conn.build(nodes, pager, after, first, before, last) - return conn, nil -} - -var ( - // OrganizationOrderFieldName orders Organization by name. - OrganizationOrderFieldName = &OrganizationOrderField{ - Value: func(o *Organization) (ent.Value, error) { - return o.Name, nil - }, - column: organization.FieldName, - toTerm: organization.ByName, - toCursor: func(o *Organization) Cursor { - return Cursor{ - ID: o.ID, - Value: o.Name, - } - }, - } - // OrganizationOrderFieldDisplayName orders Organization by display_name. - OrganizationOrderFieldDisplayName = &OrganizationOrderField{ - Value: func(o *Organization) (ent.Value, error) { - return o.DisplayName, nil - }, - column: organization.FieldDisplayName, - toTerm: organization.ByDisplayName, - toCursor: func(o *Organization) Cursor { - return Cursor{ - ID: o.ID, - Value: o.DisplayName, + } + conn := &RiskHistoryConnection{Edges: []*RiskHistoryEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := rh.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.Count(ctx); err != nil { + return nil, err } - }, + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } } -) - -// String implement fmt.Stringer interface. -func (f OrganizationOrderField) String() string { - var str string - switch f.column { - case OrganizationOrderFieldName.column: - str = "name" - case OrganizationOrderFieldDisplayName.column: - str = "display_name" + if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil } - return str -} - -// MarshalGQL implements graphql.Marshaler interface. -func (f OrganizationOrderField) MarshalGQL(w io.Writer) { - io.WriteString(w, strconv.Quote(f.String())) -} - -// UnmarshalGQL implements graphql.Unmarshaler interface. -func (f *OrganizationOrderField) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("OrganizationOrderField %T must be a string", v) + if rh, err = pager.applyCursors(rh, after, before); err != nil { + return nil, err } - switch str { - case "name": - *f = *OrganizationOrderFieldName - case "display_name": - *f = *OrganizationOrderFieldDisplayName - default: - return fmt.Errorf("%s is not a valid OrganizationOrderField", str) + limit := paginateLimit(first, last) + if limit != 0 { + rh.Limit(limit) } - return nil + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := rh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + rh = pager.applyOrder(rh) + nodes, err := rh.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil } -// OrganizationOrderField defines the ordering field of Organization. -type OrganizationOrderField struct { - // Value extracts the ordering value from the given Organization. - Value func(*Organization) (ent.Value, error) +// RiskHistoryOrderField defines the ordering field of RiskHistory. +type RiskHistoryOrderField struct { + // Value extracts the ordering value from the given RiskHistory. + Value func(*RiskHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) organization.OrderOption - toCursor func(*Organization) Cursor + toTerm func(...sql.OrderTermOption) riskhistory.OrderOption + toCursor func(*RiskHistory) Cursor } -// OrganizationOrder defines the ordering of Organization. -type OrganizationOrder struct { - Direction OrderDirection `json:"direction"` - Field *OrganizationOrderField `json:"field"` +// RiskHistoryOrder defines the ordering of RiskHistory. +type RiskHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *RiskHistoryOrderField `json:"field"` } -// DefaultOrganizationOrder is the default ordering of Organization. -var DefaultOrganizationOrder = &OrganizationOrder{ +// DefaultRiskHistoryOrder is the default ordering of RiskHistory. +var DefaultRiskHistoryOrder = &RiskHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &OrganizationOrderField{ - Value: func(o *Organization) (ent.Value, error) { - return o.ID, nil + Field: &RiskHistoryOrderField{ + Value: func(rh *RiskHistory) (ent.Value, error) { + return rh.ID, nil }, - column: organization.FieldID, - toTerm: organization.ByID, - toCursor: func(o *Organization) Cursor { - return Cursor{ID: o.ID} + column: riskhistory.FieldID, + toTerm: riskhistory.ByID, + toCursor: func(rh *RiskHistory) Cursor { + return Cursor{ID: rh.ID} }, }, } -// ToEdge converts Organization into OrganizationEdge. -func (o *Organization) ToEdge(order *OrganizationOrder) *OrganizationEdge { +// ToEdge converts RiskHistory into RiskHistoryEdge. +func (rh *RiskHistory) ToEdge(order *RiskHistoryOrder) *RiskHistoryEdge { if order == nil { - order = DefaultOrganizationOrder + order = DefaultRiskHistoryOrder } - return &OrganizationEdge{ - Node: o, - Cursor: order.Field.toCursor(o), + return &RiskHistoryEdge{ + Node: rh, + Cursor: order.Field.toCursor(rh), } } -// OrganizationHistoryEdge is the edge representation of OrganizationHistory. -type OrganizationHistoryEdge struct { - Node *OrganizationHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// StandardEdge is the edge representation of Standard. +type StandardEdge struct { + Node *Standard `json:"node"` + Cursor Cursor `json:"cursor"` } -// OrganizationHistoryConnection is the connection containing edges to OrganizationHistory. -type OrganizationHistoryConnection struct { - Edges []*OrganizationHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// StandardConnection is the connection containing edges to Standard. +type StandardConnection struct { + Edges []*StandardEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *OrganizationHistoryConnection) build(nodes []*OrganizationHistory, pager *organizationhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *StandardConnection) build(nodes []*Standard, pager *standardPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -10813,21 +15378,21 @@ func (c *OrganizationHistoryConnection) build(nodes []*OrganizationHistory, page c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *OrganizationHistory + var nodeAt func(int) *Standard if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *OrganizationHistory { + nodeAt = func(i int) *Standard { return nodes[n-i] } } else { - nodeAt = func(i int) *OrganizationHistory { + nodeAt = func(i int) *Standard { return nodes[i] } } - c.Edges = make([]*OrganizationHistoryEdge, len(nodes)) + c.Edges = make([]*StandardEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &OrganizationHistoryEdge{ + c.Edges[i] = &StandardEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -10841,87 +15406,87 @@ func (c *OrganizationHistoryConnection) build(nodes []*OrganizationHistory, page } } -// OrganizationHistoryPaginateOption enables pagination customization. -type OrganizationHistoryPaginateOption func(*organizationhistoryPager) error +// StandardPaginateOption enables pagination customization. +type StandardPaginateOption func(*standardPager) error -// WithOrganizationHistoryOrder configures pagination ordering. -func WithOrganizationHistoryOrder(order *OrganizationHistoryOrder) OrganizationHistoryPaginateOption { +// WithStandardOrder configures pagination ordering. +func WithStandardOrder(order *StandardOrder) StandardPaginateOption { if order == nil { - order = DefaultOrganizationHistoryOrder + order = DefaultStandardOrder } o := *order - return func(pager *organizationhistoryPager) error { + return func(pager *standardPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultOrganizationHistoryOrder.Field + o.Field = DefaultStandardOrder.Field } pager.order = &o return nil } } -// WithOrganizationHistoryFilter configures pagination filter. -func WithOrganizationHistoryFilter(filter func(*OrganizationHistoryQuery) (*OrganizationHistoryQuery, error)) OrganizationHistoryPaginateOption { - return func(pager *organizationhistoryPager) error { +// WithStandardFilter configures pagination filter. +func WithStandardFilter(filter func(*StandardQuery) (*StandardQuery, error)) StandardPaginateOption { + return func(pager *standardPager) error { if filter == nil { - return errors.New("OrganizationHistoryQuery filter cannot be nil") + return errors.New("StandardQuery filter cannot be nil") } pager.filter = filter return nil } } -type organizationhistoryPager struct { +type standardPager struct { reverse bool - order *OrganizationHistoryOrder - filter func(*OrganizationHistoryQuery) (*OrganizationHistoryQuery, error) + order *StandardOrder + filter func(*StandardQuery) (*StandardQuery, error) } -func newOrganizationHistoryPager(opts []OrganizationHistoryPaginateOption, reverse bool) (*organizationhistoryPager, error) { - pager := &organizationhistoryPager{reverse: reverse} +func newStandardPager(opts []StandardPaginateOption, reverse bool) (*standardPager, error) { + pager := &standardPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultOrganizationHistoryOrder + pager.order = DefaultStandardOrder } return pager, nil } -func (p *organizationhistoryPager) applyFilter(query *OrganizationHistoryQuery) (*OrganizationHistoryQuery, error) { +func (p *standardPager) applyFilter(query *StandardQuery) (*StandardQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *organizationhistoryPager) toCursor(oh *OrganizationHistory) Cursor { - return p.order.Field.toCursor(oh) +func (p *standardPager) toCursor(s *Standard) Cursor { + return p.order.Field.toCursor(s) } -func (p *organizationhistoryPager) applyCursors(query *OrganizationHistoryQuery, after, before *Cursor) (*OrganizationHistoryQuery, error) { +func (p *standardPager) applyCursors(query *StandardQuery, after, before *Cursor) (*StandardQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOrganizationHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultStandardOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *organizationhistoryPager) applyOrder(query *OrganizationHistoryQuery) *OrganizationHistoryQuery { +func (p *standardPager) applyOrder(query *StandardQuery) *StandardQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultOrganizationHistoryOrder.Field { - query = query.Order(DefaultOrganizationHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultStandardOrder.Field { + query = query.Order(DefaultStandardOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -10929,7 +15494,7 @@ func (p *organizationhistoryPager) applyOrder(query *OrganizationHistoryQuery) * return query } -func (p *organizationhistoryPager) orderExpr(query *OrganizationHistoryQuery) sql.Querier { +func (p *standardPager) orderExpr(query *StandardQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -10939,33 +15504,33 @@ func (p *organizationhistoryPager) orderExpr(query *OrganizationHistoryQuery) sq } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultOrganizationHistoryOrder.Field { - b.Comma().Ident(DefaultOrganizationHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultStandardOrder.Field { + b.Comma().Ident(DefaultStandardOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to OrganizationHistory. -func (oh *OrganizationHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Standard. +func (s *StandardQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...OrganizationHistoryPaginateOption, -) (*OrganizationHistoryConnection, error) { + before *Cursor, last *int, opts ...StandardPaginateOption, +) (*StandardConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newOrganizationHistoryPager(opts, last != nil) + pager, err := newStandardPager(opts, last != nil) if err != nil { return nil, err } - if oh, err = pager.applyFilter(oh); err != nil { + if s, err = pager.applyFilter(s); err != nil { return nil, err } - conn := &OrganizationHistoryConnection{Edges: []*OrganizationHistoryEdge{}} + conn := &StandardConnection{Edges: []*StandardEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := oh.Clone() + c := s.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -10977,20 +15542,20 @@ func (oh *OrganizationHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if oh, err = pager.applyCursors(oh, after, before); err != nil { + if s, err = pager.applyCursors(s, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - oh.Limit(limit) + s.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := oh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := s.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - oh = pager.applyOrder(oh) - nodes, err := oh.All(ctx) + s = pager.applyOrder(s) + nodes, err := s.All(ctx) if err != nil { return nil, err } @@ -10998,126 +15563,61 @@ func (oh *OrganizationHistoryQuery) Paginate( return conn, nil } -var ( - // OrganizationHistoryOrderFieldName orders OrganizationHistory by name. - OrganizationHistoryOrderFieldName = &OrganizationHistoryOrderField{ - Value: func(oh *OrganizationHistory) (ent.Value, error) { - return oh.Name, nil - }, - column: organizationhistory.FieldName, - toTerm: organizationhistory.ByName, - toCursor: func(oh *OrganizationHistory) Cursor { - return Cursor{ - ID: oh.ID, - Value: oh.Name, - } - }, - } - // OrganizationHistoryOrderFieldDisplayName orders OrganizationHistory by display_name. - OrganizationHistoryOrderFieldDisplayName = &OrganizationHistoryOrderField{ - Value: func(oh *OrganizationHistory) (ent.Value, error) { - return oh.DisplayName, nil - }, - column: organizationhistory.FieldDisplayName, - toTerm: organizationhistory.ByDisplayName, - toCursor: func(oh *OrganizationHistory) Cursor { - return Cursor{ - ID: oh.ID, - Value: oh.DisplayName, - } - }, - } -) - -// String implement fmt.Stringer interface. -func (f OrganizationHistoryOrderField) String() string { - var str string - switch f.column { - case OrganizationHistoryOrderFieldName.column: - str = "name" - case OrganizationHistoryOrderFieldDisplayName.column: - str = "display_name" - } - return str -} - -// MarshalGQL implements graphql.Marshaler interface. -func (f OrganizationHistoryOrderField) MarshalGQL(w io.Writer) { - io.WriteString(w, strconv.Quote(f.String())) -} - -// UnmarshalGQL implements graphql.Unmarshaler interface. -func (f *OrganizationHistoryOrderField) UnmarshalGQL(v interface{}) error { - str, ok := v.(string) - if !ok { - return fmt.Errorf("OrganizationHistoryOrderField %T must be a string", v) - } - switch str { - case "name": - *f = *OrganizationHistoryOrderFieldName - case "display_name": - *f = *OrganizationHistoryOrderFieldDisplayName - default: - return fmt.Errorf("%s is not a valid OrganizationHistoryOrderField", str) - } - return nil -} - -// OrganizationHistoryOrderField defines the ordering field of OrganizationHistory. -type OrganizationHistoryOrderField struct { - // Value extracts the ordering value from the given OrganizationHistory. - Value func(*OrganizationHistory) (ent.Value, error) +// StandardOrderField defines the ordering field of Standard. +type StandardOrderField struct { + // Value extracts the ordering value from the given Standard. + Value func(*Standard) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) organizationhistory.OrderOption - toCursor func(*OrganizationHistory) Cursor + toTerm func(...sql.OrderTermOption) standard.OrderOption + toCursor func(*Standard) Cursor } -// OrganizationHistoryOrder defines the ordering of OrganizationHistory. -type OrganizationHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *OrganizationHistoryOrderField `json:"field"` +// StandardOrder defines the ordering of Standard. +type StandardOrder struct { + Direction OrderDirection `json:"direction"` + Field *StandardOrderField `json:"field"` } -// DefaultOrganizationHistoryOrder is the default ordering of OrganizationHistory. -var DefaultOrganizationHistoryOrder = &OrganizationHistoryOrder{ +// DefaultStandardOrder is the default ordering of Standard. +var DefaultStandardOrder = &StandardOrder{ Direction: entgql.OrderDirectionAsc, - Field: &OrganizationHistoryOrderField{ - Value: func(oh *OrganizationHistory) (ent.Value, error) { - return oh.ID, nil + Field: &StandardOrderField{ + Value: func(s *Standard) (ent.Value, error) { + return s.ID, nil }, - column: organizationhistory.FieldID, - toTerm: organizationhistory.ByID, - toCursor: func(oh *OrganizationHistory) Cursor { - return Cursor{ID: oh.ID} + column: standard.FieldID, + toTerm: standard.ByID, + toCursor: func(s *Standard) Cursor { + return Cursor{ID: s.ID} }, }, } -// ToEdge converts OrganizationHistory into OrganizationHistoryEdge. -func (oh *OrganizationHistory) ToEdge(order *OrganizationHistoryOrder) *OrganizationHistoryEdge { +// ToEdge converts Standard into StandardEdge. +func (s *Standard) ToEdge(order *StandardOrder) *StandardEdge { if order == nil { - order = DefaultOrganizationHistoryOrder + order = DefaultStandardOrder } - return &OrganizationHistoryEdge{ - Node: oh, - Cursor: order.Field.toCursor(oh), + return &StandardEdge{ + Node: s, + Cursor: order.Field.toCursor(s), } } -// OrganizationSettingEdge is the edge representation of OrganizationSetting. -type OrganizationSettingEdge struct { - Node *OrganizationSetting `json:"node"` - Cursor Cursor `json:"cursor"` +// StandardHistoryEdge is the edge representation of StandardHistory. +type StandardHistoryEdge struct { + Node *StandardHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// OrganizationSettingConnection is the connection containing edges to OrganizationSetting. -type OrganizationSettingConnection struct { - Edges []*OrganizationSettingEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// StandardHistoryConnection is the connection containing edges to StandardHistory. +type StandardHistoryConnection struct { + Edges []*StandardHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *OrganizationSettingConnection) build(nodes []*OrganizationSetting, pager *organizationsettingPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *StandardHistoryConnection) build(nodes []*StandardHistory, pager *standardhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -11127,21 +15627,21 @@ func (c *OrganizationSettingConnection) build(nodes []*OrganizationSetting, page c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *OrganizationSetting + var nodeAt func(int) *StandardHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *OrganizationSetting { + nodeAt = func(i int) *StandardHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *OrganizationSetting { + nodeAt = func(i int) *StandardHistory { return nodes[i] } } - c.Edges = make([]*OrganizationSettingEdge, len(nodes)) + c.Edges = make([]*StandardHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &OrganizationSettingEdge{ + c.Edges[i] = &StandardHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -11155,87 +15655,87 @@ func (c *OrganizationSettingConnection) build(nodes []*OrganizationSetting, page } } -// OrganizationSettingPaginateOption enables pagination customization. -type OrganizationSettingPaginateOption func(*organizationsettingPager) error +// StandardHistoryPaginateOption enables pagination customization. +type StandardHistoryPaginateOption func(*standardhistoryPager) error -// WithOrganizationSettingOrder configures pagination ordering. -func WithOrganizationSettingOrder(order *OrganizationSettingOrder) OrganizationSettingPaginateOption { +// WithStandardHistoryOrder configures pagination ordering. +func WithStandardHistoryOrder(order *StandardHistoryOrder) StandardHistoryPaginateOption { if order == nil { - order = DefaultOrganizationSettingOrder + order = DefaultStandardHistoryOrder } o := *order - return func(pager *organizationsettingPager) error { + return func(pager *standardhistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultOrganizationSettingOrder.Field + o.Field = DefaultStandardHistoryOrder.Field } pager.order = &o return nil } } -// WithOrganizationSettingFilter configures pagination filter. -func WithOrganizationSettingFilter(filter func(*OrganizationSettingQuery) (*OrganizationSettingQuery, error)) OrganizationSettingPaginateOption { - return func(pager *organizationsettingPager) error { +// WithStandardHistoryFilter configures pagination filter. +func WithStandardHistoryFilter(filter func(*StandardHistoryQuery) (*StandardHistoryQuery, error)) StandardHistoryPaginateOption { + return func(pager *standardhistoryPager) error { if filter == nil { - return errors.New("OrganizationSettingQuery filter cannot be nil") + return errors.New("StandardHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type organizationsettingPager struct { +type standardhistoryPager struct { reverse bool - order *OrganizationSettingOrder - filter func(*OrganizationSettingQuery) (*OrganizationSettingQuery, error) + order *StandardHistoryOrder + filter func(*StandardHistoryQuery) (*StandardHistoryQuery, error) } -func newOrganizationSettingPager(opts []OrganizationSettingPaginateOption, reverse bool) (*organizationsettingPager, error) { - pager := &organizationsettingPager{reverse: reverse} +func newStandardHistoryPager(opts []StandardHistoryPaginateOption, reverse bool) (*standardhistoryPager, error) { + pager := &standardhistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultOrganizationSettingOrder + pager.order = DefaultStandardHistoryOrder } return pager, nil } -func (p *organizationsettingPager) applyFilter(query *OrganizationSettingQuery) (*OrganizationSettingQuery, error) { +func (p *standardhistoryPager) applyFilter(query *StandardHistoryQuery) (*StandardHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *organizationsettingPager) toCursor(os *OrganizationSetting) Cursor { - return p.order.Field.toCursor(os) +func (p *standardhistoryPager) toCursor(sh *StandardHistory) Cursor { + return p.order.Field.toCursor(sh) } -func (p *organizationsettingPager) applyCursors(query *OrganizationSettingQuery, after, before *Cursor) (*OrganizationSettingQuery, error) { +func (p *standardhistoryPager) applyCursors(query *StandardHistoryQuery, after, before *Cursor) (*StandardHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOrganizationSettingOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultStandardHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *organizationsettingPager) applyOrder(query *OrganizationSettingQuery) *OrganizationSettingQuery { +func (p *standardhistoryPager) applyOrder(query *StandardHistoryQuery) *StandardHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultOrganizationSettingOrder.Field { - query = query.Order(DefaultOrganizationSettingOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultStandardHistoryOrder.Field { + query = query.Order(DefaultStandardHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -11243,7 +15743,7 @@ func (p *organizationsettingPager) applyOrder(query *OrganizationSettingQuery) * return query } -func (p *organizationsettingPager) orderExpr(query *OrganizationSettingQuery) sql.Querier { +func (p *standardhistoryPager) orderExpr(query *StandardHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -11253,33 +15753,33 @@ func (p *organizationsettingPager) orderExpr(query *OrganizationSettingQuery) sq } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultOrganizationSettingOrder.Field { - b.Comma().Ident(DefaultOrganizationSettingOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultStandardHistoryOrder.Field { + b.Comma().Ident(DefaultStandardHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to OrganizationSetting. -func (os *OrganizationSettingQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to StandardHistory. +func (sh *StandardHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...OrganizationSettingPaginateOption, -) (*OrganizationSettingConnection, error) { + before *Cursor, last *int, opts ...StandardHistoryPaginateOption, +) (*StandardHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newOrganizationSettingPager(opts, last != nil) + pager, err := newStandardHistoryPager(opts, last != nil) if err != nil { return nil, err } - if os, err = pager.applyFilter(os); err != nil { + if sh, err = pager.applyFilter(sh); err != nil { return nil, err } - conn := &OrganizationSettingConnection{Edges: []*OrganizationSettingEdge{}} + conn := &StandardHistoryConnection{Edges: []*StandardHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := os.Clone() + c := sh.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -11291,20 +15791,20 @@ func (os *OrganizationSettingQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if os, err = pager.applyCursors(os, after, before); err != nil { + if sh, err = pager.applyCursors(sh, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - os.Limit(limit) + sh.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := os.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := sh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - os = pager.applyOrder(os) - nodes, err := os.All(ctx) + sh = pager.applyOrder(sh) + nodes, err := sh.All(ctx) if err != nil { return nil, err } @@ -11312,61 +15812,61 @@ func (os *OrganizationSettingQuery) Paginate( return conn, nil } -// OrganizationSettingOrderField defines the ordering field of OrganizationSetting. -type OrganizationSettingOrderField struct { - // Value extracts the ordering value from the given OrganizationSetting. - Value func(*OrganizationSetting) (ent.Value, error) +// StandardHistoryOrderField defines the ordering field of StandardHistory. +type StandardHistoryOrderField struct { + // Value extracts the ordering value from the given StandardHistory. + Value func(*StandardHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) organizationsetting.OrderOption - toCursor func(*OrganizationSetting) Cursor + toTerm func(...sql.OrderTermOption) standardhistory.OrderOption + toCursor func(*StandardHistory) Cursor } -// OrganizationSettingOrder defines the ordering of OrganizationSetting. -type OrganizationSettingOrder struct { - Direction OrderDirection `json:"direction"` - Field *OrganizationSettingOrderField `json:"field"` +// StandardHistoryOrder defines the ordering of StandardHistory. +type StandardHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *StandardHistoryOrderField `json:"field"` } -// DefaultOrganizationSettingOrder is the default ordering of OrganizationSetting. -var DefaultOrganizationSettingOrder = &OrganizationSettingOrder{ +// DefaultStandardHistoryOrder is the default ordering of StandardHistory. +var DefaultStandardHistoryOrder = &StandardHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &OrganizationSettingOrderField{ - Value: func(os *OrganizationSetting) (ent.Value, error) { - return os.ID, nil + Field: &StandardHistoryOrderField{ + Value: func(sh *StandardHistory) (ent.Value, error) { + return sh.ID, nil }, - column: organizationsetting.FieldID, - toTerm: organizationsetting.ByID, - toCursor: func(os *OrganizationSetting) Cursor { - return Cursor{ID: os.ID} + column: standardhistory.FieldID, + toTerm: standardhistory.ByID, + toCursor: func(sh *StandardHistory) Cursor { + return Cursor{ID: sh.ID} }, }, } -// ToEdge converts OrganizationSetting into OrganizationSettingEdge. -func (os *OrganizationSetting) ToEdge(order *OrganizationSettingOrder) *OrganizationSettingEdge { +// ToEdge converts StandardHistory into StandardHistoryEdge. +func (sh *StandardHistory) ToEdge(order *StandardHistoryOrder) *StandardHistoryEdge { if order == nil { - order = DefaultOrganizationSettingOrder + order = DefaultStandardHistoryOrder } - return &OrganizationSettingEdge{ - Node: os, - Cursor: order.Field.toCursor(os), + return &StandardHistoryEdge{ + Node: sh, + Cursor: order.Field.toCursor(sh), } } -// OrganizationSettingHistoryEdge is the edge representation of OrganizationSettingHistory. -type OrganizationSettingHistoryEdge struct { - Node *OrganizationSettingHistory `json:"node"` - Cursor Cursor `json:"cursor"` +// SubcontrolEdge is the edge representation of Subcontrol. +type SubcontrolEdge struct { + Node *Subcontrol `json:"node"` + Cursor Cursor `json:"cursor"` } -// OrganizationSettingHistoryConnection is the connection containing edges to OrganizationSettingHistory. -type OrganizationSettingHistoryConnection struct { - Edges []*OrganizationSettingHistoryEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// SubcontrolConnection is the connection containing edges to Subcontrol. +type SubcontrolConnection struct { + Edges []*SubcontrolEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *OrganizationSettingHistoryConnection) build(nodes []*OrganizationSettingHistory, pager *organizationsettinghistoryPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *SubcontrolConnection) build(nodes []*Subcontrol, pager *subcontrolPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -11376,21 +15876,21 @@ func (c *OrganizationSettingHistoryConnection) build(nodes []*OrganizationSettin c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *OrganizationSettingHistory + var nodeAt func(int) *Subcontrol if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *OrganizationSettingHistory { + nodeAt = func(i int) *Subcontrol { return nodes[n-i] } } else { - nodeAt = func(i int) *OrganizationSettingHistory { + nodeAt = func(i int) *Subcontrol { return nodes[i] } } - c.Edges = make([]*OrganizationSettingHistoryEdge, len(nodes)) + c.Edges = make([]*SubcontrolEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &OrganizationSettingHistoryEdge{ + c.Edges[i] = &SubcontrolEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -11404,87 +15904,87 @@ func (c *OrganizationSettingHistoryConnection) build(nodes []*OrganizationSettin } } -// OrganizationSettingHistoryPaginateOption enables pagination customization. -type OrganizationSettingHistoryPaginateOption func(*organizationsettinghistoryPager) error +// SubcontrolPaginateOption enables pagination customization. +type SubcontrolPaginateOption func(*subcontrolPager) error -// WithOrganizationSettingHistoryOrder configures pagination ordering. -func WithOrganizationSettingHistoryOrder(order *OrganizationSettingHistoryOrder) OrganizationSettingHistoryPaginateOption { +// WithSubcontrolOrder configures pagination ordering. +func WithSubcontrolOrder(order *SubcontrolOrder) SubcontrolPaginateOption { if order == nil { - order = DefaultOrganizationSettingHistoryOrder + order = DefaultSubcontrolOrder } o := *order - return func(pager *organizationsettinghistoryPager) error { + return func(pager *subcontrolPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultOrganizationSettingHistoryOrder.Field + o.Field = DefaultSubcontrolOrder.Field } pager.order = &o return nil } } -// WithOrganizationSettingHistoryFilter configures pagination filter. -func WithOrganizationSettingHistoryFilter(filter func(*OrganizationSettingHistoryQuery) (*OrganizationSettingHistoryQuery, error)) OrganizationSettingHistoryPaginateOption { - return func(pager *organizationsettinghistoryPager) error { +// WithSubcontrolFilter configures pagination filter. +func WithSubcontrolFilter(filter func(*SubcontrolQuery) (*SubcontrolQuery, error)) SubcontrolPaginateOption { + return func(pager *subcontrolPager) error { if filter == nil { - return errors.New("OrganizationSettingHistoryQuery filter cannot be nil") + return errors.New("SubcontrolQuery filter cannot be nil") } pager.filter = filter return nil } } -type organizationsettinghistoryPager struct { +type subcontrolPager struct { reverse bool - order *OrganizationSettingHistoryOrder - filter func(*OrganizationSettingHistoryQuery) (*OrganizationSettingHistoryQuery, error) + order *SubcontrolOrder + filter func(*SubcontrolQuery) (*SubcontrolQuery, error) } -func newOrganizationSettingHistoryPager(opts []OrganizationSettingHistoryPaginateOption, reverse bool) (*organizationsettinghistoryPager, error) { - pager := &organizationsettinghistoryPager{reverse: reverse} +func newSubcontrolPager(opts []SubcontrolPaginateOption, reverse bool) (*subcontrolPager, error) { + pager := &subcontrolPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultOrganizationSettingHistoryOrder + pager.order = DefaultSubcontrolOrder } return pager, nil } -func (p *organizationsettinghistoryPager) applyFilter(query *OrganizationSettingHistoryQuery) (*OrganizationSettingHistoryQuery, error) { +func (p *subcontrolPager) applyFilter(query *SubcontrolQuery) (*SubcontrolQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *organizationsettinghistoryPager) toCursor(osh *OrganizationSettingHistory) Cursor { - return p.order.Field.toCursor(osh) +func (p *subcontrolPager) toCursor(s *Subcontrol) Cursor { + return p.order.Field.toCursor(s) } -func (p *organizationsettinghistoryPager) applyCursors(query *OrganizationSettingHistoryQuery, after, before *Cursor) (*OrganizationSettingHistoryQuery, error) { +func (p *subcontrolPager) applyCursors(query *SubcontrolQuery, after, before *Cursor) (*SubcontrolQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultOrganizationSettingHistoryOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultSubcontrolOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *organizationsettinghistoryPager) applyOrder(query *OrganizationSettingHistoryQuery) *OrganizationSettingHistoryQuery { +func (p *subcontrolPager) applyOrder(query *SubcontrolQuery) *SubcontrolQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultOrganizationSettingHistoryOrder.Field { - query = query.Order(DefaultOrganizationSettingHistoryOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultSubcontrolOrder.Field { + query = query.Order(DefaultSubcontrolOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -11492,7 +15992,7 @@ func (p *organizationsettinghistoryPager) applyOrder(query *OrganizationSettingH return query } -func (p *organizationsettinghistoryPager) orderExpr(query *OrganizationSettingHistoryQuery) sql.Querier { +func (p *subcontrolPager) orderExpr(query *SubcontrolQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -11502,33 +16002,33 @@ func (p *organizationsettinghistoryPager) orderExpr(query *OrganizationSettingHi } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultOrganizationSettingHistoryOrder.Field { - b.Comma().Ident(DefaultOrganizationSettingHistoryOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultSubcontrolOrder.Field { + b.Comma().Ident(DefaultSubcontrolOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to OrganizationSettingHistory. -func (osh *OrganizationSettingHistoryQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to Subcontrol. +func (s *SubcontrolQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...OrganizationSettingHistoryPaginateOption, -) (*OrganizationSettingHistoryConnection, error) { + before *Cursor, last *int, opts ...SubcontrolPaginateOption, +) (*SubcontrolConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newOrganizationSettingHistoryPager(opts, last != nil) + pager, err := newSubcontrolPager(opts, last != nil) if err != nil { return nil, err } - if osh, err = pager.applyFilter(osh); err != nil { + if s, err = pager.applyFilter(s); err != nil { return nil, err } - conn := &OrganizationSettingHistoryConnection{Edges: []*OrganizationSettingHistoryEdge{}} + conn := &SubcontrolConnection{Edges: []*SubcontrolEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := osh.Clone() + c := s.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -11540,20 +16040,20 @@ func (osh *OrganizationSettingHistoryQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if osh, err = pager.applyCursors(osh, after, before); err != nil { + if s, err = pager.applyCursors(s, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - osh.Limit(limit) + s.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := osh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := s.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - osh = pager.applyOrder(osh) - nodes, err := osh.All(ctx) + s = pager.applyOrder(s) + nodes, err := s.All(ctx) if err != nil { return nil, err } @@ -11561,61 +16061,61 @@ func (osh *OrganizationSettingHistoryQuery) Paginate( return conn, nil } -// OrganizationSettingHistoryOrderField defines the ordering field of OrganizationSettingHistory. -type OrganizationSettingHistoryOrderField struct { - // Value extracts the ordering value from the given OrganizationSettingHistory. - Value func(*OrganizationSettingHistory) (ent.Value, error) +// SubcontrolOrderField defines the ordering field of Subcontrol. +type SubcontrolOrderField struct { + // Value extracts the ordering value from the given Subcontrol. + Value func(*Subcontrol) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) organizationsettinghistory.OrderOption - toCursor func(*OrganizationSettingHistory) Cursor + toTerm func(...sql.OrderTermOption) subcontrol.OrderOption + toCursor func(*Subcontrol) Cursor } -// OrganizationSettingHistoryOrder defines the ordering of OrganizationSettingHistory. -type OrganizationSettingHistoryOrder struct { - Direction OrderDirection `json:"direction"` - Field *OrganizationSettingHistoryOrderField `json:"field"` +// SubcontrolOrder defines the ordering of Subcontrol. +type SubcontrolOrder struct { + Direction OrderDirection `json:"direction"` + Field *SubcontrolOrderField `json:"field"` } -// DefaultOrganizationSettingHistoryOrder is the default ordering of OrganizationSettingHistory. -var DefaultOrganizationSettingHistoryOrder = &OrganizationSettingHistoryOrder{ +// DefaultSubcontrolOrder is the default ordering of Subcontrol. +var DefaultSubcontrolOrder = &SubcontrolOrder{ Direction: entgql.OrderDirectionAsc, - Field: &OrganizationSettingHistoryOrderField{ - Value: func(osh *OrganizationSettingHistory) (ent.Value, error) { - return osh.ID, nil + Field: &SubcontrolOrderField{ + Value: func(s *Subcontrol) (ent.Value, error) { + return s.ID, nil }, - column: organizationsettinghistory.FieldID, - toTerm: organizationsettinghistory.ByID, - toCursor: func(osh *OrganizationSettingHistory) Cursor { - return Cursor{ID: osh.ID} + column: subcontrol.FieldID, + toTerm: subcontrol.ByID, + toCursor: func(s *Subcontrol) Cursor { + return Cursor{ID: s.ID} }, }, } -// ToEdge converts OrganizationSettingHistory into OrganizationSettingHistoryEdge. -func (osh *OrganizationSettingHistory) ToEdge(order *OrganizationSettingHistoryOrder) *OrganizationSettingHistoryEdge { +// ToEdge converts Subcontrol into SubcontrolEdge. +func (s *Subcontrol) ToEdge(order *SubcontrolOrder) *SubcontrolEdge { if order == nil { - order = DefaultOrganizationSettingHistoryOrder + order = DefaultSubcontrolOrder } - return &OrganizationSettingHistoryEdge{ - Node: osh, - Cursor: order.Field.toCursor(osh), + return &SubcontrolEdge{ + Node: s, + Cursor: order.Field.toCursor(s), } } -// PersonalAccessTokenEdge is the edge representation of PersonalAccessToken. -type PersonalAccessTokenEdge struct { - Node *PersonalAccessToken `json:"node"` - Cursor Cursor `json:"cursor"` +// SubcontrolHistoryEdge is the edge representation of SubcontrolHistory. +type SubcontrolHistoryEdge struct { + Node *SubcontrolHistory `json:"node"` + Cursor Cursor `json:"cursor"` } -// PersonalAccessTokenConnection is the connection containing edges to PersonalAccessToken. -type PersonalAccessTokenConnection struct { - Edges []*PersonalAccessTokenEdge `json:"edges"` - PageInfo PageInfo `json:"pageInfo"` - TotalCount int `json:"totalCount"` +// SubcontrolHistoryConnection is the connection containing edges to SubcontrolHistory. +type SubcontrolHistoryConnection struct { + Edges []*SubcontrolHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` } -func (c *PersonalAccessTokenConnection) build(nodes []*PersonalAccessToken, pager *personalaccesstokenPager, after *Cursor, first *int, before *Cursor, last *int) { +func (c *SubcontrolHistoryConnection) build(nodes []*SubcontrolHistory, pager *subcontrolhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { c.PageInfo.HasNextPage = before != nil c.PageInfo.HasPreviousPage = after != nil if first != nil && *first+1 == len(nodes) { @@ -11625,21 +16125,21 @@ func (c *PersonalAccessTokenConnection) build(nodes []*PersonalAccessToken, page c.PageInfo.HasPreviousPage = true nodes = nodes[:len(nodes)-1] } - var nodeAt func(int) *PersonalAccessToken + var nodeAt func(int) *SubcontrolHistory if last != nil { n := len(nodes) - 1 - nodeAt = func(i int) *PersonalAccessToken { + nodeAt = func(i int) *SubcontrolHistory { return nodes[n-i] } } else { - nodeAt = func(i int) *PersonalAccessToken { + nodeAt = func(i int) *SubcontrolHistory { return nodes[i] } } - c.Edges = make([]*PersonalAccessTokenEdge, len(nodes)) + c.Edges = make([]*SubcontrolHistoryEdge, len(nodes)) for i := range nodes { node := nodeAt(i) - c.Edges[i] = &PersonalAccessTokenEdge{ + c.Edges[i] = &SubcontrolHistoryEdge{ Node: node, Cursor: pager.toCursor(node), } @@ -11653,87 +16153,87 @@ func (c *PersonalAccessTokenConnection) build(nodes []*PersonalAccessToken, page } } -// PersonalAccessTokenPaginateOption enables pagination customization. -type PersonalAccessTokenPaginateOption func(*personalaccesstokenPager) error +// SubcontrolHistoryPaginateOption enables pagination customization. +type SubcontrolHistoryPaginateOption func(*subcontrolhistoryPager) error -// WithPersonalAccessTokenOrder configures pagination ordering. -func WithPersonalAccessTokenOrder(order *PersonalAccessTokenOrder) PersonalAccessTokenPaginateOption { +// WithSubcontrolHistoryOrder configures pagination ordering. +func WithSubcontrolHistoryOrder(order *SubcontrolHistoryOrder) SubcontrolHistoryPaginateOption { if order == nil { - order = DefaultPersonalAccessTokenOrder + order = DefaultSubcontrolHistoryOrder } o := *order - return func(pager *personalaccesstokenPager) error { + return func(pager *subcontrolhistoryPager) error { if err := o.Direction.Validate(); err != nil { return err } if o.Field == nil { - o.Field = DefaultPersonalAccessTokenOrder.Field + o.Field = DefaultSubcontrolHistoryOrder.Field } pager.order = &o return nil } } -// WithPersonalAccessTokenFilter configures pagination filter. -func WithPersonalAccessTokenFilter(filter func(*PersonalAccessTokenQuery) (*PersonalAccessTokenQuery, error)) PersonalAccessTokenPaginateOption { - return func(pager *personalaccesstokenPager) error { +// WithSubcontrolHistoryFilter configures pagination filter. +func WithSubcontrolHistoryFilter(filter func(*SubcontrolHistoryQuery) (*SubcontrolHistoryQuery, error)) SubcontrolHistoryPaginateOption { + return func(pager *subcontrolhistoryPager) error { if filter == nil { - return errors.New("PersonalAccessTokenQuery filter cannot be nil") + return errors.New("SubcontrolHistoryQuery filter cannot be nil") } pager.filter = filter return nil } } -type personalaccesstokenPager struct { +type subcontrolhistoryPager struct { reverse bool - order *PersonalAccessTokenOrder - filter func(*PersonalAccessTokenQuery) (*PersonalAccessTokenQuery, error) + order *SubcontrolHistoryOrder + filter func(*SubcontrolHistoryQuery) (*SubcontrolHistoryQuery, error) } -func newPersonalAccessTokenPager(opts []PersonalAccessTokenPaginateOption, reverse bool) (*personalaccesstokenPager, error) { - pager := &personalaccesstokenPager{reverse: reverse} +func newSubcontrolHistoryPager(opts []SubcontrolHistoryPaginateOption, reverse bool) (*subcontrolhistoryPager, error) { + pager := &subcontrolhistoryPager{reverse: reverse} for _, opt := range opts { if err := opt(pager); err != nil { return nil, err } } if pager.order == nil { - pager.order = DefaultPersonalAccessTokenOrder + pager.order = DefaultSubcontrolHistoryOrder } return pager, nil } -func (p *personalaccesstokenPager) applyFilter(query *PersonalAccessTokenQuery) (*PersonalAccessTokenQuery, error) { +func (p *subcontrolhistoryPager) applyFilter(query *SubcontrolHistoryQuery) (*SubcontrolHistoryQuery, error) { if p.filter != nil { return p.filter(query) } return query, nil } -func (p *personalaccesstokenPager) toCursor(pat *PersonalAccessToken) Cursor { - return p.order.Field.toCursor(pat) +func (p *subcontrolhistoryPager) toCursor(sh *SubcontrolHistory) Cursor { + return p.order.Field.toCursor(sh) } -func (p *personalaccesstokenPager) applyCursors(query *PersonalAccessTokenQuery, after, before *Cursor) (*PersonalAccessTokenQuery, error) { +func (p *subcontrolhistoryPager) applyCursors(query *SubcontrolHistoryQuery, after, before *Cursor) (*SubcontrolHistoryQuery, error) { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } - for _, predicate := range entgql.CursorsPredicate(after, before, DefaultPersonalAccessTokenOrder.Field.column, p.order.Field.column, direction) { + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultSubcontrolHistoryOrder.Field.column, p.order.Field.column, direction) { query = query.Where(predicate) } return query, nil } -func (p *personalaccesstokenPager) applyOrder(query *PersonalAccessTokenQuery) *PersonalAccessTokenQuery { +func (p *subcontrolhistoryPager) applyOrder(query *SubcontrolHistoryQuery) *SubcontrolHistoryQuery { direction := p.order.Direction if p.reverse { direction = direction.Reverse() } query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) - if p.order.Field != DefaultPersonalAccessTokenOrder.Field { - query = query.Order(DefaultPersonalAccessTokenOrder.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultSubcontrolHistoryOrder.Field { + query = query.Order(DefaultSubcontrolHistoryOrder.Field.toTerm(direction.OrderTermOption())) } if len(query.ctx.Fields) > 0 { query.ctx.AppendFieldOnce(p.order.Field.column) @@ -11741,7 +16241,7 @@ func (p *personalaccesstokenPager) applyOrder(query *PersonalAccessTokenQuery) * return query } -func (p *personalaccesstokenPager) orderExpr(query *PersonalAccessTokenQuery) sql.Querier { +func (p *subcontrolhistoryPager) orderExpr(query *SubcontrolHistoryQuery) sql.Querier { direction := p.order.Direction if p.reverse { direction = direction.Reverse() @@ -11751,33 +16251,33 @@ func (p *personalaccesstokenPager) orderExpr(query *PersonalAccessTokenQuery) sq } return sql.ExprFunc(func(b *sql.Builder) { b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) - if p.order.Field != DefaultPersonalAccessTokenOrder.Field { - b.Comma().Ident(DefaultPersonalAccessTokenOrder.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultSubcontrolHistoryOrder.Field { + b.Comma().Ident(DefaultSubcontrolHistoryOrder.Field.column).Pad().WriteString(string(direction)) } }) } -// Paginate executes the query and returns a relay based cursor connection to PersonalAccessToken. -func (pat *PersonalAccessTokenQuery) Paginate( +// Paginate executes the query and returns a relay based cursor connection to SubcontrolHistory. +func (sh *SubcontrolHistoryQuery) Paginate( ctx context.Context, after *Cursor, first *int, - before *Cursor, last *int, opts ...PersonalAccessTokenPaginateOption, -) (*PersonalAccessTokenConnection, error) { + before *Cursor, last *int, opts ...SubcontrolHistoryPaginateOption, +) (*SubcontrolHistoryConnection, error) { if err := validateFirstLast(first, last); err != nil { return nil, err } - pager, err := newPersonalAccessTokenPager(opts, last != nil) + pager, err := newSubcontrolHistoryPager(opts, last != nil) if err != nil { return nil, err } - if pat, err = pager.applyFilter(pat); err != nil { + if sh, err = pager.applyFilter(sh); err != nil { return nil, err } - conn := &PersonalAccessTokenConnection{Edges: []*PersonalAccessTokenEdge{}} + conn := &SubcontrolHistoryConnection{Edges: []*SubcontrolHistoryEdge{}} ignoredEdges := !hasCollectedField(ctx, edgesField) if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { hasPagination := after != nil || first != nil || before != nil || last != nil if hasPagination || ignoredEdges { - c := pat.Clone() + c := sh.Clone() c.ctx.Fields = nil if conn.TotalCount, err = c.Count(ctx); err != nil { return nil, err @@ -11789,20 +16289,20 @@ func (pat *PersonalAccessTokenQuery) Paginate( if ignoredEdges || (first != nil && *first == 0) || (last != nil && *last == 0) { return conn, nil } - if pat, err = pager.applyCursors(pat, after, before); err != nil { + if sh, err = pager.applyCursors(sh, after, before); err != nil { return nil, err } limit := paginateLimit(first, last) if limit != 0 { - pat.Limit(limit) + sh.Limit(limit) } if field := collectedField(ctx, edgesField, nodeField); field != nil { - if err := pat.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + if err := sh.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { return nil, err } } - pat = pager.applyOrder(pat) - nodes, err := pat.All(ctx) + sh = pager.applyOrder(sh) + nodes, err := sh.All(ctx) if err != nil { return nil, err } @@ -11810,44 +16310,44 @@ func (pat *PersonalAccessTokenQuery) Paginate( return conn, nil } -// PersonalAccessTokenOrderField defines the ordering field of PersonalAccessToken. -type PersonalAccessTokenOrderField struct { - // Value extracts the ordering value from the given PersonalAccessToken. - Value func(*PersonalAccessToken) (ent.Value, error) +// SubcontrolHistoryOrderField defines the ordering field of SubcontrolHistory. +type SubcontrolHistoryOrderField struct { + // Value extracts the ordering value from the given SubcontrolHistory. + Value func(*SubcontrolHistory) (ent.Value, error) column string // field or computed. - toTerm func(...sql.OrderTermOption) personalaccesstoken.OrderOption - toCursor func(*PersonalAccessToken) Cursor + toTerm func(...sql.OrderTermOption) subcontrolhistory.OrderOption + toCursor func(*SubcontrolHistory) Cursor } -// PersonalAccessTokenOrder defines the ordering of PersonalAccessToken. -type PersonalAccessTokenOrder struct { - Direction OrderDirection `json:"direction"` - Field *PersonalAccessTokenOrderField `json:"field"` +// SubcontrolHistoryOrder defines the ordering of SubcontrolHistory. +type SubcontrolHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *SubcontrolHistoryOrderField `json:"field"` } -// DefaultPersonalAccessTokenOrder is the default ordering of PersonalAccessToken. -var DefaultPersonalAccessTokenOrder = &PersonalAccessTokenOrder{ +// DefaultSubcontrolHistoryOrder is the default ordering of SubcontrolHistory. +var DefaultSubcontrolHistoryOrder = &SubcontrolHistoryOrder{ Direction: entgql.OrderDirectionAsc, - Field: &PersonalAccessTokenOrderField{ - Value: func(pat *PersonalAccessToken) (ent.Value, error) { - return pat.ID, nil + Field: &SubcontrolHistoryOrderField{ + Value: func(sh *SubcontrolHistory) (ent.Value, error) { + return sh.ID, nil }, - column: personalaccesstoken.FieldID, - toTerm: personalaccesstoken.ByID, - toCursor: func(pat *PersonalAccessToken) Cursor { - return Cursor{ID: pat.ID} + column: subcontrolhistory.FieldID, + toTerm: subcontrolhistory.ByID, + toCursor: func(sh *SubcontrolHistory) Cursor { + return Cursor{ID: sh.ID} }, }, } -// ToEdge converts PersonalAccessToken into PersonalAccessTokenEdge. -func (pat *PersonalAccessToken) ToEdge(order *PersonalAccessTokenOrder) *PersonalAccessTokenEdge { +// ToEdge converts SubcontrolHistory into SubcontrolHistoryEdge. +func (sh *SubcontrolHistory) ToEdge(order *SubcontrolHistoryOrder) *SubcontrolHistoryEdge { if order == nil { - order = DefaultPersonalAccessTokenOrder + order = DefaultSubcontrolHistoryOrder } - return &PersonalAccessTokenEdge{ - Node: pat, - Cursor: order.Field.toCursor(pat), + return &SubcontrolHistoryEdge{ + Node: sh, + Cursor: order.Field.toCursor(sh), } } diff --git a/internal/ent/generated/gql_where_input.go b/internal/ent/generated/gql_where_input.go index aaf88513..654764a5 100644 --- a/internal/ent/generated/gql_where_input.go +++ b/internal/ent/generated/gql_where_input.go @@ -8,9 +8,15 @@ import ( "time" "github.com/theopenlane/core/internal/ent/customtypes" + "github.com/theopenlane/core/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" "github.com/theopenlane/core/internal/ent/generated/apitoken" "github.com/theopenlane/core/internal/ent/generated/contact" "github.com/theopenlane/core/internal/ent/generated/contacthistory" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" "github.com/theopenlane/core/internal/ent/generated/documentdata" "github.com/theopenlane/core/internal/ent/generated/documentdatahistory" "github.com/theopenlane/core/internal/ent/generated/entitlement" @@ -39,7 +45,11 @@ import ( "github.com/theopenlane/core/internal/ent/generated/hushhistory" "github.com/theopenlane/core/internal/ent/generated/integration" "github.com/theopenlane/core/internal/ent/generated/integrationhistory" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" "github.com/theopenlane/core/internal/ent/generated/invite" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/notehistory" "github.com/theopenlane/core/internal/ent/generated/oauthprovider" @@ -53,6 +63,14 @@ import ( "github.com/theopenlane/core/internal/ent/generated/orgmembershiphistory" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" "github.com/theopenlane/core/internal/ent/generated/subscriber" "github.com/theopenlane/core/internal/ent/generated/template" "github.com/theopenlane/core/internal/ent/generated/templatehistory" @@ -733,12 +751,12 @@ func (i *APITokenWhereInput) P() (predicate.APIToken, error) { } } -// ContactWhereInput represents a where input for filtering Contact queries. -type ContactWhereInput struct { - Predicates []predicate.Contact `json:"-"` - Not *ContactWhereInput `json:"not,omitempty"` - Or []*ContactWhereInput `json:"or,omitempty"` - And []*ContactWhereInput `json:"and,omitempty"` +// ActionPlanWhereInput represents a where input for filtering ActionPlan queries. +type ActionPlanWhereInput struct { + Predicates []predicate.ActionPlan `json:"-"` + Not *ActionPlanWhereInput `json:"not,omitempty"` + Or []*ActionPlanWhereInput `json:"or,omitempty"` + And []*ActionPlanWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -839,155 +857,131 @@ type ContactWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` - - // "full_name" field predicates. - FullName *string `json:"fullName,omitempty"` - FullNameNEQ *string `json:"fullNameNEQ,omitempty"` - FullNameIn []string `json:"fullNameIn,omitempty"` - FullNameNotIn []string `json:"fullNameNotIn,omitempty"` - FullNameGT *string `json:"fullNameGT,omitempty"` - FullNameGTE *string `json:"fullNameGTE,omitempty"` - FullNameLT *string `json:"fullNameLT,omitempty"` - FullNameLTE *string `json:"fullNameLTE,omitempty"` - FullNameContains *string `json:"fullNameContains,omitempty"` - FullNameHasPrefix *string `json:"fullNameHasPrefix,omitempty"` - FullNameHasSuffix *string `json:"fullNameHasSuffix,omitempty"` - FullNameEqualFold *string `json:"fullNameEqualFold,omitempty"` - FullNameContainsFold *string `json:"fullNameContainsFold,omitempty"` - - // "title" field predicates. - Title *string `json:"title,omitempty"` - TitleNEQ *string `json:"titleNEQ,omitempty"` - TitleIn []string `json:"titleIn,omitempty"` - TitleNotIn []string `json:"titleNotIn,omitempty"` - TitleGT *string `json:"titleGT,omitempty"` - TitleGTE *string `json:"titleGTE,omitempty"` - TitleLT *string `json:"titleLT,omitempty"` - TitleLTE *string `json:"titleLTE,omitempty"` - TitleContains *string `json:"titleContains,omitempty"` - TitleHasPrefix *string `json:"titleHasPrefix,omitempty"` - TitleHasSuffix *string `json:"titleHasSuffix,omitempty"` - TitleIsNil bool `json:"titleIsNil,omitempty"` - TitleNotNil bool `json:"titleNotNil,omitempty"` - TitleEqualFold *string `json:"titleEqualFold,omitempty"` - TitleContainsFold *string `json:"titleContainsFold,omitempty"` - - // "company" field predicates. - Company *string `json:"company,omitempty"` - CompanyNEQ *string `json:"companyNEQ,omitempty"` - CompanyIn []string `json:"companyIn,omitempty"` - CompanyNotIn []string `json:"companyNotIn,omitempty"` - CompanyGT *string `json:"companyGT,omitempty"` - CompanyGTE *string `json:"companyGTE,omitempty"` - CompanyLT *string `json:"companyLT,omitempty"` - CompanyLTE *string `json:"companyLTE,omitempty"` - CompanyContains *string `json:"companyContains,omitempty"` - CompanyHasPrefix *string `json:"companyHasPrefix,omitempty"` - CompanyHasSuffix *string `json:"companyHasSuffix,omitempty"` - CompanyIsNil bool `json:"companyIsNil,omitempty"` - CompanyNotNil bool `json:"companyNotNil,omitempty"` - CompanyEqualFold *string `json:"companyEqualFold,omitempty"` - CompanyContainsFold *string `json:"companyContainsFold,omitempty"` - - // "email" field predicates. - Email *string `json:"email,omitempty"` - EmailNEQ *string `json:"emailNEQ,omitempty"` - EmailIn []string `json:"emailIn,omitempty"` - EmailNotIn []string `json:"emailNotIn,omitempty"` - EmailGT *string `json:"emailGT,omitempty"` - EmailGTE *string `json:"emailGTE,omitempty"` - EmailLT *string `json:"emailLT,omitempty"` - EmailLTE *string `json:"emailLTE,omitempty"` - EmailContains *string `json:"emailContains,omitempty"` - EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` - EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` - EmailIsNil bool `json:"emailIsNil,omitempty"` - EmailNotNil bool `json:"emailNotNil,omitempty"` - EmailEqualFold *string `json:"emailEqualFold,omitempty"` - EmailContainsFold *string `json:"emailContainsFold,omitempty"` - - // "phone_number" field predicates. - PhoneNumber *string `json:"phoneNumber,omitempty"` - PhoneNumberNEQ *string `json:"phoneNumberNEQ,omitempty"` - PhoneNumberIn []string `json:"phoneNumberIn,omitempty"` - PhoneNumberNotIn []string `json:"phoneNumberNotIn,omitempty"` - PhoneNumberGT *string `json:"phoneNumberGT,omitempty"` - PhoneNumberGTE *string `json:"phoneNumberGTE,omitempty"` - PhoneNumberLT *string `json:"phoneNumberLT,omitempty"` - PhoneNumberLTE *string `json:"phoneNumberLTE,omitempty"` - PhoneNumberContains *string `json:"phoneNumberContains,omitempty"` - PhoneNumberHasPrefix *string `json:"phoneNumberHasPrefix,omitempty"` - PhoneNumberHasSuffix *string `json:"phoneNumberHasSuffix,omitempty"` - PhoneNumberIsNil bool `json:"phoneNumberIsNil,omitempty"` - PhoneNumberNotNil bool `json:"phoneNumberNotNil,omitempty"` - PhoneNumberEqualFold *string `json:"phoneNumberEqualFold,omitempty"` - PhoneNumberContainsFold *string `json:"phoneNumberContainsFold,omitempty"` + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "address" field predicates. - Address *string `json:"address,omitempty"` - AddressNEQ *string `json:"addressNEQ,omitempty"` - AddressIn []string `json:"addressIn,omitempty"` - AddressNotIn []string `json:"addressNotIn,omitempty"` - AddressGT *string `json:"addressGT,omitempty"` - AddressGTE *string `json:"addressGTE,omitempty"` - AddressLT *string `json:"addressLT,omitempty"` - AddressLTE *string `json:"addressLTE,omitempty"` - AddressContains *string `json:"addressContains,omitempty"` - AddressHasPrefix *string `json:"addressHasPrefix,omitempty"` - AddressHasSuffix *string `json:"addressHasSuffix,omitempty"` - AddressIsNil bool `json:"addressIsNil,omitempty"` - AddressNotNil bool `json:"addressNotNil,omitempty"` - AddressEqualFold *string `json:"addressEqualFold,omitempty"` - AddressContainsFold *string `json:"addressContainsFold,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` // "status" field predicates. - Status *enums.UserStatus `json:"status,omitempty"` - StatusNEQ *enums.UserStatus `json:"statusNEQ,omitempty"` - StatusIn []enums.UserStatus `json:"statusIn,omitempty"` - StatusNotIn []enums.UserStatus `json:"statusNotIn,omitempty"` - - // "owner" edge predicates. - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` - // "entities" edge predicates. - HasEntities *bool `json:"hasEntities,omitempty"` - HasEntitiesWith []*EntityWhereInput `json:"hasEntitiesWith,omitempty"` + // "due_date" field predicates. + DueDate *time.Time `json:"dueDate,omitempty"` + DueDateNEQ *time.Time `json:"dueDateNEQ,omitempty"` + DueDateIn []time.Time `json:"dueDateIn,omitempty"` + DueDateNotIn []time.Time `json:"dueDateNotIn,omitempty"` + DueDateGT *time.Time `json:"dueDateGT,omitempty"` + DueDateGTE *time.Time `json:"dueDateGTE,omitempty"` + DueDateLT *time.Time `json:"dueDateLT,omitempty"` + DueDateLTE *time.Time `json:"dueDateLTE,omitempty"` + DueDateIsNil bool `json:"dueDateIsNil,omitempty"` + DueDateNotNil bool `json:"dueDateNotNil,omitempty"` + + // "priority" field predicates. + Priority *string `json:"priority,omitempty"` + PriorityNEQ *string `json:"priorityNEQ,omitempty"` + PriorityIn []string `json:"priorityIn,omitempty"` + PriorityNotIn []string `json:"priorityNotIn,omitempty"` + PriorityGT *string `json:"priorityGT,omitempty"` + PriorityGTE *string `json:"priorityGTE,omitempty"` + PriorityLT *string `json:"priorityLT,omitempty"` + PriorityLTE *string `json:"priorityLTE,omitempty"` + PriorityContains *string `json:"priorityContains,omitempty"` + PriorityHasPrefix *string `json:"priorityHasPrefix,omitempty"` + PriorityHasSuffix *string `json:"priorityHasSuffix,omitempty"` + PriorityIsNil bool `json:"priorityIsNil,omitempty"` + PriorityNotNil bool `json:"priorityNotNil,omitempty"` + PriorityEqualFold *string `json:"priorityEqualFold,omitempty"` + PriorityContainsFold *string `json:"priorityContainsFold,omitempty"` + + // "source" field predicates. + Source *string `json:"source,omitempty"` + SourceNEQ *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGT *string `json:"sourceGT,omitempty"` + SourceGTE *string `json:"sourceGTE,omitempty"` + SourceLT *string `json:"sourceLT,omitempty"` + SourceLTE *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil bool `json:"sourceIsNil,omitempty"` + SourceNotNil bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + + // "standard" edge predicates. + HasStandard *bool `json:"hasStandard,omitempty"` + HasStandardWith []*StandardWhereInput `json:"hasStandardWith,omitempty"` + + // "risk" edge predicates. + HasRisk *bool `json:"hasRisk,omitempty"` + HasRiskWith []*RiskWhereInput `json:"hasRiskWith,omitempty"` + + // "control" edge predicates. + HasControl *bool `json:"hasControl,omitempty"` + HasControlWith []*ControlWhereInput `json:"hasControlWith,omitempty"` - // "files" edge predicates. - HasFiles *bool `json:"hasFiles,omitempty"` - HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` + // "user" edge predicates. + HasUser *bool `json:"hasUser,omitempty"` + HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *ContactWhereInput) AddPredicates(predicates ...predicate.Contact) { +func (i *ActionPlanWhereInput) AddPredicates(predicates ...predicate.ActionPlan) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the ContactWhereInput filter on the ContactQuery builder. -func (i *ContactWhereInput) Filter(q *ContactQuery) (*ContactQuery, error) { +// Filter applies the ActionPlanWhereInput filter on the ActionPlanQuery builder. +func (i *ActionPlanWhereInput) Filter(q *ActionPlanQuery) (*ActionPlanQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyContactWhereInput { + if err == ErrEmptyActionPlanWhereInput { return q, nil } return nil, err @@ -995,19 +989,19 @@ func (i *ContactWhereInput) Filter(q *ContactQuery) (*ContactQuery, error) { return q.Where(p), nil } -// ErrEmptyContactWhereInput is returned in case the ContactWhereInput is empty. -var ErrEmptyContactWhereInput = errors.New("generated: empty predicate ContactWhereInput") +// ErrEmptyActionPlanWhereInput is returned in case the ActionPlanWhereInput is empty. +var ErrEmptyActionPlanWhereInput = errors.New("generated: empty predicate ActionPlanWhereInput") -// P returns a predicate for filtering contacts. +// P returns a predicate for filtering actionplans. // An error is returned if the input is empty or invalid. -func (i *ContactWhereInput) P() (predicate.Contact, error) { - var predicates []predicate.Contact +func (i *ActionPlanWhereInput) P() (predicate.ActionPlan, error) { + var predicates []predicate.ActionPlan if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, contact.Not(p)) + predicates = append(predicates, actionplan.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -1017,7 +1011,7 @@ func (i *ContactWhereInput) P() (predicate.Contact, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.Contact, 0, n) + or := make([]predicate.ActionPlan, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -1025,7 +1019,7 @@ func (i *ContactWhereInput) P() (predicate.Contact, error) { } or = append(or, p) } - predicates = append(predicates, contact.Or(or...)) + predicates = append(predicates, actionplan.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -1035,7 +1029,7 @@ func (i *ContactWhereInput) P() (predicate.Contact, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.Contact, 0, n) + and := make([]predicate.ActionPlan, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -1043,656 +1037,602 @@ func (i *ContactWhereInput) P() (predicate.Contact, error) { } and = append(and, p) } - predicates = append(predicates, contact.And(and...)) + predicates = append(predicates, actionplan.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, contact.IDEQ(*i.ID)) + predicates = append(predicates, actionplan.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, contact.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, actionplan.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, contact.IDIn(i.IDIn...)) + predicates = append(predicates, actionplan.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, contact.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, actionplan.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, contact.IDGT(*i.IDGT)) + predicates = append(predicates, actionplan.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, contact.IDGTE(*i.IDGTE)) + predicates = append(predicates, actionplan.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, contact.IDLT(*i.IDLT)) + predicates = append(predicates, actionplan.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, contact.IDLTE(*i.IDLTE)) + predicates = append(predicates, actionplan.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, contact.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, actionplan.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, contact.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, actionplan.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, contact.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, actionplan.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, contact.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, actionplan.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, contact.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, actionplan.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, contact.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, actionplan.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, contact.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, actionplan.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, contact.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, actionplan.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, contact.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, actionplan.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, contact.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, actionplan.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, contact.CreatedAtIsNil()) + predicates = append(predicates, actionplan.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, contact.CreatedAtNotNil()) + predicates = append(predicates, actionplan.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, contact.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, actionplan.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, contact.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, actionplan.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, contact.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, actionplan.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, contact.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, actionplan.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, contact.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, actionplan.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, contact.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, actionplan.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, contact.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, actionplan.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, contact.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, actionplan.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, contact.UpdatedAtIsNil()) + predicates = append(predicates, actionplan.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, contact.UpdatedAtNotNil()) + predicates = append(predicates, actionplan.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, contact.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, actionplan.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, contact.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, actionplan.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, contact.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, actionplan.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, contact.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, actionplan.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, contact.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, actionplan.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, contact.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, actionplan.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, contact.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, actionplan.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, contact.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, actionplan.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, contact.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, actionplan.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, contact.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, actionplan.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, contact.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, actionplan.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, contact.CreatedByIsNil()) + predicates = append(predicates, actionplan.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, contact.CreatedByNotNil()) + predicates = append(predicates, actionplan.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, contact.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, actionplan.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, contact.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, actionplan.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, contact.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, actionplan.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, contact.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, actionplan.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, contact.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, actionplan.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, contact.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, actionplan.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, contact.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, actionplan.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, contact.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, actionplan.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, contact.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, actionplan.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, contact.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, actionplan.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, contact.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, actionplan.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, contact.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, actionplan.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, contact.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, actionplan.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, contact.UpdatedByIsNil()) + predicates = append(predicates, actionplan.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, contact.UpdatedByNotNil()) + predicates = append(predicates, actionplan.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, contact.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, actionplan.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, contact.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, actionplan.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, contact.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, actionplan.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, contact.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, actionplan.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, contact.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, actionplan.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, contact.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, actionplan.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, contact.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, actionplan.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, contact.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, actionplan.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, contact.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, actionplan.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, contact.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, actionplan.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, contact.DeletedAtIsNil()) + predicates = append(predicates, actionplan.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, contact.DeletedAtNotNil()) + predicates = append(predicates, actionplan.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, contact.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, actionplan.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, contact.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, actionplan.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, contact.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, actionplan.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, contact.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, actionplan.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, contact.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, actionplan.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, contact.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, actionplan.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, contact.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, actionplan.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, contact.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, actionplan.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, contact.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, actionplan.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, contact.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, actionplan.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, contact.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, actionplan.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, contact.DeletedByIsNil()) + predicates = append(predicates, actionplan.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, contact.DeletedByNotNil()) + predicates = append(predicates, actionplan.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, contact.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, actionplan.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, contact.DeletedByContainsFold(*i.DeletedByContainsFold)) - } - if i.OwnerID != nil { - predicates = append(predicates, contact.OwnerIDEQ(*i.OwnerID)) + predicates = append(predicates, actionplan.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, contact.OwnerIDNEQ(*i.OwnerIDNEQ)) + if i.Name != nil { + predicates = append(predicates, actionplan.NameEQ(*i.Name)) } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, contact.OwnerIDIn(i.OwnerIDIn...)) + if i.NameNEQ != nil { + predicates = append(predicates, actionplan.NameNEQ(*i.NameNEQ)) } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, contact.OwnerIDNotIn(i.OwnerIDNotIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, actionplan.NameIn(i.NameIn...)) } - if i.OwnerIDGT != nil { - predicates = append(predicates, contact.OwnerIDGT(*i.OwnerIDGT)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, actionplan.NameNotIn(i.NameNotIn...)) } - if i.OwnerIDGTE != nil { - predicates = append(predicates, contact.OwnerIDGTE(*i.OwnerIDGTE)) + if i.NameGT != nil { + predicates = append(predicates, actionplan.NameGT(*i.NameGT)) } - if i.OwnerIDLT != nil { - predicates = append(predicates, contact.OwnerIDLT(*i.OwnerIDLT)) + if i.NameGTE != nil { + predicates = append(predicates, actionplan.NameGTE(*i.NameGTE)) } - if i.OwnerIDLTE != nil { - predicates = append(predicates, contact.OwnerIDLTE(*i.OwnerIDLTE)) + if i.NameLT != nil { + predicates = append(predicates, actionplan.NameLT(*i.NameLT)) } - if i.OwnerIDContains != nil { - predicates = append(predicates, contact.OwnerIDContains(*i.OwnerIDContains)) + if i.NameLTE != nil { + predicates = append(predicates, actionplan.NameLTE(*i.NameLTE)) } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, contact.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + if i.NameContains != nil { + predicates = append(predicates, actionplan.NameContains(*i.NameContains)) } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, contact.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + if i.NameHasPrefix != nil { + predicates = append(predicates, actionplan.NameHasPrefix(*i.NameHasPrefix)) } - if i.OwnerIDIsNil { - predicates = append(predicates, contact.OwnerIDIsNil()) + if i.NameHasSuffix != nil { + predicates = append(predicates, actionplan.NameHasSuffix(*i.NameHasSuffix)) } - if i.OwnerIDNotNil { - predicates = append(predicates, contact.OwnerIDNotNil()) + if i.NameEqualFold != nil { + predicates = append(predicates, actionplan.NameEqualFold(*i.NameEqualFold)) } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, contact.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + if i.NameContainsFold != nil { + predicates = append(predicates, actionplan.NameContainsFold(*i.NameContainsFold)) } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, contact.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + if i.Description != nil { + predicates = append(predicates, actionplan.DescriptionEQ(*i.Description)) } - if i.FullName != nil { - predicates = append(predicates, contact.FullNameEQ(*i.FullName)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, actionplan.DescriptionNEQ(*i.DescriptionNEQ)) } - if i.FullNameNEQ != nil { - predicates = append(predicates, contact.FullNameNEQ(*i.FullNameNEQ)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, actionplan.DescriptionIn(i.DescriptionIn...)) } - if len(i.FullNameIn) > 0 { - predicates = append(predicates, contact.FullNameIn(i.FullNameIn...)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, actionplan.DescriptionNotIn(i.DescriptionNotIn...)) } - if len(i.FullNameNotIn) > 0 { - predicates = append(predicates, contact.FullNameNotIn(i.FullNameNotIn...)) + if i.DescriptionGT != nil { + predicates = append(predicates, actionplan.DescriptionGT(*i.DescriptionGT)) } - if i.FullNameGT != nil { - predicates = append(predicates, contact.FullNameGT(*i.FullNameGT)) + if i.DescriptionGTE != nil { + predicates = append(predicates, actionplan.DescriptionGTE(*i.DescriptionGTE)) } - if i.FullNameGTE != nil { - predicates = append(predicates, contact.FullNameGTE(*i.FullNameGTE)) + if i.DescriptionLT != nil { + predicates = append(predicates, actionplan.DescriptionLT(*i.DescriptionLT)) } - if i.FullNameLT != nil { - predicates = append(predicates, contact.FullNameLT(*i.FullNameLT)) + if i.DescriptionLTE != nil { + predicates = append(predicates, actionplan.DescriptionLTE(*i.DescriptionLTE)) } - if i.FullNameLTE != nil { - predicates = append(predicates, contact.FullNameLTE(*i.FullNameLTE)) + if i.DescriptionContains != nil { + predicates = append(predicates, actionplan.DescriptionContains(*i.DescriptionContains)) } - if i.FullNameContains != nil { - predicates = append(predicates, contact.FullNameContains(*i.FullNameContains)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, actionplan.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.FullNameHasPrefix != nil { - predicates = append(predicates, contact.FullNameHasPrefix(*i.FullNameHasPrefix)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, actionplan.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.FullNameHasSuffix != nil { - predicates = append(predicates, contact.FullNameHasSuffix(*i.FullNameHasSuffix)) + if i.DescriptionIsNil { + predicates = append(predicates, actionplan.DescriptionIsNil()) } - if i.FullNameEqualFold != nil { - predicates = append(predicates, contact.FullNameEqualFold(*i.FullNameEqualFold)) + if i.DescriptionNotNil { + predicates = append(predicates, actionplan.DescriptionNotNil()) } - if i.FullNameContainsFold != nil { - predicates = append(predicates, contact.FullNameContainsFold(*i.FullNameContainsFold)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, actionplan.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.Title != nil { - predicates = append(predicates, contact.TitleEQ(*i.Title)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, actionplan.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.TitleNEQ != nil { - predicates = append(predicates, contact.TitleNEQ(*i.TitleNEQ)) + if i.Status != nil { + predicates = append(predicates, actionplan.StatusEQ(*i.Status)) } - if len(i.TitleIn) > 0 { - predicates = append(predicates, contact.TitleIn(i.TitleIn...)) + if i.StatusNEQ != nil { + predicates = append(predicates, actionplan.StatusNEQ(*i.StatusNEQ)) } - if len(i.TitleNotIn) > 0 { - predicates = append(predicates, contact.TitleNotIn(i.TitleNotIn...)) + if len(i.StatusIn) > 0 { + predicates = append(predicates, actionplan.StatusIn(i.StatusIn...)) } - if i.TitleGT != nil { - predicates = append(predicates, contact.TitleGT(*i.TitleGT)) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, actionplan.StatusNotIn(i.StatusNotIn...)) } - if i.TitleGTE != nil { - predicates = append(predicates, contact.TitleGTE(*i.TitleGTE)) + if i.StatusGT != nil { + predicates = append(predicates, actionplan.StatusGT(*i.StatusGT)) } - if i.TitleLT != nil { - predicates = append(predicates, contact.TitleLT(*i.TitleLT)) + if i.StatusGTE != nil { + predicates = append(predicates, actionplan.StatusGTE(*i.StatusGTE)) } - if i.TitleLTE != nil { - predicates = append(predicates, contact.TitleLTE(*i.TitleLTE)) + if i.StatusLT != nil { + predicates = append(predicates, actionplan.StatusLT(*i.StatusLT)) } - if i.TitleContains != nil { - predicates = append(predicates, contact.TitleContains(*i.TitleContains)) + if i.StatusLTE != nil { + predicates = append(predicates, actionplan.StatusLTE(*i.StatusLTE)) } - if i.TitleHasPrefix != nil { - predicates = append(predicates, contact.TitleHasPrefix(*i.TitleHasPrefix)) + if i.StatusContains != nil { + predicates = append(predicates, actionplan.StatusContains(*i.StatusContains)) } - if i.TitleHasSuffix != nil { - predicates = append(predicates, contact.TitleHasSuffix(*i.TitleHasSuffix)) + if i.StatusHasPrefix != nil { + predicates = append(predicates, actionplan.StatusHasPrefix(*i.StatusHasPrefix)) } - if i.TitleIsNil { - predicates = append(predicates, contact.TitleIsNil()) + if i.StatusHasSuffix != nil { + predicates = append(predicates, actionplan.StatusHasSuffix(*i.StatusHasSuffix)) } - if i.TitleNotNil { - predicates = append(predicates, contact.TitleNotNil()) + if i.StatusIsNil { + predicates = append(predicates, actionplan.StatusIsNil()) } - if i.TitleEqualFold != nil { - predicates = append(predicates, contact.TitleEqualFold(*i.TitleEqualFold)) + if i.StatusNotNil { + predicates = append(predicates, actionplan.StatusNotNil()) } - if i.TitleContainsFold != nil { - predicates = append(predicates, contact.TitleContainsFold(*i.TitleContainsFold)) + if i.StatusEqualFold != nil { + predicates = append(predicates, actionplan.StatusEqualFold(*i.StatusEqualFold)) } - if i.Company != nil { - predicates = append(predicates, contact.CompanyEQ(*i.Company)) + if i.StatusContainsFold != nil { + predicates = append(predicates, actionplan.StatusContainsFold(*i.StatusContainsFold)) } - if i.CompanyNEQ != nil { - predicates = append(predicates, contact.CompanyNEQ(*i.CompanyNEQ)) + if i.DueDate != nil { + predicates = append(predicates, actionplan.DueDateEQ(*i.DueDate)) } - if len(i.CompanyIn) > 0 { - predicates = append(predicates, contact.CompanyIn(i.CompanyIn...)) + if i.DueDateNEQ != nil { + predicates = append(predicates, actionplan.DueDateNEQ(*i.DueDateNEQ)) } - if len(i.CompanyNotIn) > 0 { - predicates = append(predicates, contact.CompanyNotIn(i.CompanyNotIn...)) + if len(i.DueDateIn) > 0 { + predicates = append(predicates, actionplan.DueDateIn(i.DueDateIn...)) } - if i.CompanyGT != nil { - predicates = append(predicates, contact.CompanyGT(*i.CompanyGT)) + if len(i.DueDateNotIn) > 0 { + predicates = append(predicates, actionplan.DueDateNotIn(i.DueDateNotIn...)) } - if i.CompanyGTE != nil { - predicates = append(predicates, contact.CompanyGTE(*i.CompanyGTE)) + if i.DueDateGT != nil { + predicates = append(predicates, actionplan.DueDateGT(*i.DueDateGT)) } - if i.CompanyLT != nil { - predicates = append(predicates, contact.CompanyLT(*i.CompanyLT)) + if i.DueDateGTE != nil { + predicates = append(predicates, actionplan.DueDateGTE(*i.DueDateGTE)) } - if i.CompanyLTE != nil { - predicates = append(predicates, contact.CompanyLTE(*i.CompanyLTE)) + if i.DueDateLT != nil { + predicates = append(predicates, actionplan.DueDateLT(*i.DueDateLT)) } - if i.CompanyContains != nil { - predicates = append(predicates, contact.CompanyContains(*i.CompanyContains)) + if i.DueDateLTE != nil { + predicates = append(predicates, actionplan.DueDateLTE(*i.DueDateLTE)) } - if i.CompanyHasPrefix != nil { - predicates = append(predicates, contact.CompanyHasPrefix(*i.CompanyHasPrefix)) + if i.DueDateIsNil { + predicates = append(predicates, actionplan.DueDateIsNil()) } - if i.CompanyHasSuffix != nil { - predicates = append(predicates, contact.CompanyHasSuffix(*i.CompanyHasSuffix)) + if i.DueDateNotNil { + predicates = append(predicates, actionplan.DueDateNotNil()) } - if i.CompanyIsNil { - predicates = append(predicates, contact.CompanyIsNil()) + if i.Priority != nil { + predicates = append(predicates, actionplan.PriorityEQ(*i.Priority)) } - if i.CompanyNotNil { - predicates = append(predicates, contact.CompanyNotNil()) + if i.PriorityNEQ != nil { + predicates = append(predicates, actionplan.PriorityNEQ(*i.PriorityNEQ)) } - if i.CompanyEqualFold != nil { - predicates = append(predicates, contact.CompanyEqualFold(*i.CompanyEqualFold)) + if len(i.PriorityIn) > 0 { + predicates = append(predicates, actionplan.PriorityIn(i.PriorityIn...)) } - if i.CompanyContainsFold != nil { - predicates = append(predicates, contact.CompanyContainsFold(*i.CompanyContainsFold)) + if len(i.PriorityNotIn) > 0 { + predicates = append(predicates, actionplan.PriorityNotIn(i.PriorityNotIn...)) } - if i.Email != nil { - predicates = append(predicates, contact.EmailEQ(*i.Email)) + if i.PriorityGT != nil { + predicates = append(predicates, actionplan.PriorityGT(*i.PriorityGT)) } - if i.EmailNEQ != nil { - predicates = append(predicates, contact.EmailNEQ(*i.EmailNEQ)) + if i.PriorityGTE != nil { + predicates = append(predicates, actionplan.PriorityGTE(*i.PriorityGTE)) } - if len(i.EmailIn) > 0 { - predicates = append(predicates, contact.EmailIn(i.EmailIn...)) + if i.PriorityLT != nil { + predicates = append(predicates, actionplan.PriorityLT(*i.PriorityLT)) } - if len(i.EmailNotIn) > 0 { - predicates = append(predicates, contact.EmailNotIn(i.EmailNotIn...)) + if i.PriorityLTE != nil { + predicates = append(predicates, actionplan.PriorityLTE(*i.PriorityLTE)) } - if i.EmailGT != nil { - predicates = append(predicates, contact.EmailGT(*i.EmailGT)) + if i.PriorityContains != nil { + predicates = append(predicates, actionplan.PriorityContains(*i.PriorityContains)) } - if i.EmailGTE != nil { - predicates = append(predicates, contact.EmailGTE(*i.EmailGTE)) + if i.PriorityHasPrefix != nil { + predicates = append(predicates, actionplan.PriorityHasPrefix(*i.PriorityHasPrefix)) } - if i.EmailLT != nil { - predicates = append(predicates, contact.EmailLT(*i.EmailLT)) + if i.PriorityHasSuffix != nil { + predicates = append(predicates, actionplan.PriorityHasSuffix(*i.PriorityHasSuffix)) } - if i.EmailLTE != nil { - predicates = append(predicates, contact.EmailLTE(*i.EmailLTE)) + if i.PriorityIsNil { + predicates = append(predicates, actionplan.PriorityIsNil()) } - if i.EmailContains != nil { - predicates = append(predicates, contact.EmailContains(*i.EmailContains)) + if i.PriorityNotNil { + predicates = append(predicates, actionplan.PriorityNotNil()) } - if i.EmailHasPrefix != nil { - predicates = append(predicates, contact.EmailHasPrefix(*i.EmailHasPrefix)) + if i.PriorityEqualFold != nil { + predicates = append(predicates, actionplan.PriorityEqualFold(*i.PriorityEqualFold)) } - if i.EmailHasSuffix != nil { - predicates = append(predicates, contact.EmailHasSuffix(*i.EmailHasSuffix)) + if i.PriorityContainsFold != nil { + predicates = append(predicates, actionplan.PriorityContainsFold(*i.PriorityContainsFold)) } - if i.EmailIsNil { - predicates = append(predicates, contact.EmailIsNil()) + if i.Source != nil { + predicates = append(predicates, actionplan.SourceEQ(*i.Source)) } - if i.EmailNotNil { - predicates = append(predicates, contact.EmailNotNil()) + if i.SourceNEQ != nil { + predicates = append(predicates, actionplan.SourceNEQ(*i.SourceNEQ)) } - if i.EmailEqualFold != nil { - predicates = append(predicates, contact.EmailEqualFold(*i.EmailEqualFold)) + if len(i.SourceIn) > 0 { + predicates = append(predicates, actionplan.SourceIn(i.SourceIn...)) } - if i.EmailContainsFold != nil { - predicates = append(predicates, contact.EmailContainsFold(*i.EmailContainsFold)) + if len(i.SourceNotIn) > 0 { + predicates = append(predicates, actionplan.SourceNotIn(i.SourceNotIn...)) } - if i.PhoneNumber != nil { - predicates = append(predicates, contact.PhoneNumberEQ(*i.PhoneNumber)) + if i.SourceGT != nil { + predicates = append(predicates, actionplan.SourceGT(*i.SourceGT)) } - if i.PhoneNumberNEQ != nil { - predicates = append(predicates, contact.PhoneNumberNEQ(*i.PhoneNumberNEQ)) + if i.SourceGTE != nil { + predicates = append(predicates, actionplan.SourceGTE(*i.SourceGTE)) } - if len(i.PhoneNumberIn) > 0 { - predicates = append(predicates, contact.PhoneNumberIn(i.PhoneNumberIn...)) + if i.SourceLT != nil { + predicates = append(predicates, actionplan.SourceLT(*i.SourceLT)) } - if len(i.PhoneNumberNotIn) > 0 { - predicates = append(predicates, contact.PhoneNumberNotIn(i.PhoneNumberNotIn...)) + if i.SourceLTE != nil { + predicates = append(predicates, actionplan.SourceLTE(*i.SourceLTE)) } - if i.PhoneNumberGT != nil { - predicates = append(predicates, contact.PhoneNumberGT(*i.PhoneNumberGT)) + if i.SourceContains != nil { + predicates = append(predicates, actionplan.SourceContains(*i.SourceContains)) } - if i.PhoneNumberGTE != nil { - predicates = append(predicates, contact.PhoneNumberGTE(*i.PhoneNumberGTE)) + if i.SourceHasPrefix != nil { + predicates = append(predicates, actionplan.SourceHasPrefix(*i.SourceHasPrefix)) } - if i.PhoneNumberLT != nil { - predicates = append(predicates, contact.PhoneNumberLT(*i.PhoneNumberLT)) + if i.SourceHasSuffix != nil { + predicates = append(predicates, actionplan.SourceHasSuffix(*i.SourceHasSuffix)) } - if i.PhoneNumberLTE != nil { - predicates = append(predicates, contact.PhoneNumberLTE(*i.PhoneNumberLTE)) + if i.SourceIsNil { + predicates = append(predicates, actionplan.SourceIsNil()) } - if i.PhoneNumberContains != nil { - predicates = append(predicates, contact.PhoneNumberContains(*i.PhoneNumberContains)) + if i.SourceNotNil { + predicates = append(predicates, actionplan.SourceNotNil()) } - if i.PhoneNumberHasPrefix != nil { - predicates = append(predicates, contact.PhoneNumberHasPrefix(*i.PhoneNumberHasPrefix)) + if i.SourceEqualFold != nil { + predicates = append(predicates, actionplan.SourceEqualFold(*i.SourceEqualFold)) } - if i.PhoneNumberHasSuffix != nil { - predicates = append(predicates, contact.PhoneNumberHasSuffix(*i.PhoneNumberHasSuffix)) + if i.SourceContainsFold != nil { + predicates = append(predicates, actionplan.SourceContainsFold(*i.SourceContainsFold)) } - if i.PhoneNumberIsNil { - predicates = append(predicates, contact.PhoneNumberIsNil()) + + if i.HasStandard != nil { + p := actionplan.HasStandard() + if !*i.HasStandard { + p = actionplan.Not(p) + } + predicates = append(predicates, p) } - if i.PhoneNumberNotNil { - predicates = append(predicates, contact.PhoneNumberNotNil()) + if len(i.HasStandardWith) > 0 { + with := make([]predicate.Standard, 0, len(i.HasStandardWith)) + for _, w := range i.HasStandardWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasStandardWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, actionplan.HasStandardWith(with...)) } - if i.PhoneNumberEqualFold != nil { - predicates = append(predicates, contact.PhoneNumberEqualFold(*i.PhoneNumberEqualFold)) + if i.HasRisk != nil { + p := actionplan.HasRisk() + if !*i.HasRisk { + p = actionplan.Not(p) + } + predicates = append(predicates, p) } - if i.PhoneNumberContainsFold != nil { - predicates = append(predicates, contact.PhoneNumberContainsFold(*i.PhoneNumberContainsFold)) - } - if i.Address != nil { - predicates = append(predicates, contact.AddressEQ(*i.Address)) - } - if i.AddressNEQ != nil { - predicates = append(predicates, contact.AddressNEQ(*i.AddressNEQ)) - } - if len(i.AddressIn) > 0 { - predicates = append(predicates, contact.AddressIn(i.AddressIn...)) - } - if len(i.AddressNotIn) > 0 { - predicates = append(predicates, contact.AddressNotIn(i.AddressNotIn...)) - } - if i.AddressGT != nil { - predicates = append(predicates, contact.AddressGT(*i.AddressGT)) - } - if i.AddressGTE != nil { - predicates = append(predicates, contact.AddressGTE(*i.AddressGTE)) - } - if i.AddressLT != nil { - predicates = append(predicates, contact.AddressLT(*i.AddressLT)) - } - if i.AddressLTE != nil { - predicates = append(predicates, contact.AddressLTE(*i.AddressLTE)) - } - if i.AddressContains != nil { - predicates = append(predicates, contact.AddressContains(*i.AddressContains)) - } - if i.AddressHasPrefix != nil { - predicates = append(predicates, contact.AddressHasPrefix(*i.AddressHasPrefix)) - } - if i.AddressHasSuffix != nil { - predicates = append(predicates, contact.AddressHasSuffix(*i.AddressHasSuffix)) - } - if i.AddressIsNil { - predicates = append(predicates, contact.AddressIsNil()) - } - if i.AddressNotNil { - predicates = append(predicates, contact.AddressNotNil()) - } - if i.AddressEqualFold != nil { - predicates = append(predicates, contact.AddressEqualFold(*i.AddressEqualFold)) - } - if i.AddressContainsFold != nil { - predicates = append(predicates, contact.AddressContainsFold(*i.AddressContainsFold)) - } - if i.Status != nil { - predicates = append(predicates, contact.StatusEQ(*i.Status)) - } - if i.StatusNEQ != nil { - predicates = append(predicates, contact.StatusNEQ(*i.StatusNEQ)) - } - if len(i.StatusIn) > 0 { - predicates = append(predicates, contact.StatusIn(i.StatusIn...)) - } - if len(i.StatusNotIn) > 0 { - predicates = append(predicates, contact.StatusNotIn(i.StatusNotIn...)) - } - - if i.HasOwner != nil { - p := contact.HasOwner() - if !*i.HasOwner { - p = contact.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasOwnerWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) - for _, w := range i.HasOwnerWith { + if len(i.HasRiskWith) > 0 { + with := make([]predicate.Risk, 0, len(i.HasRiskWith)) + for _, w := range i.HasRiskWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasOwnerWith'", err) + return nil, fmt.Errorf("%w: field 'HasRiskWith'", err) } with = append(with, p) } - predicates = append(predicates, contact.HasOwnerWith(with...)) + predicates = append(predicates, actionplan.HasRiskWith(with...)) } - if i.HasEntities != nil { - p := contact.HasEntities() - if !*i.HasEntities { - p = contact.Not(p) + if i.HasControl != nil { + p := actionplan.HasControl() + if !*i.HasControl { + p = actionplan.Not(p) } predicates = append(predicates, p) } - if len(i.HasEntitiesWith) > 0 { - with := make([]predicate.Entity, 0, len(i.HasEntitiesWith)) - for _, w := range i.HasEntitiesWith { + if len(i.HasControlWith) > 0 { + with := make([]predicate.Control, 0, len(i.HasControlWith)) + for _, w := range i.HasControlWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntitiesWith'", err) + return nil, fmt.Errorf("%w: field 'HasControlWith'", err) } with = append(with, p) } - predicates = append(predicates, contact.HasEntitiesWith(with...)) + predicates = append(predicates, actionplan.HasControlWith(with...)) } - if i.HasFiles != nil { - p := contact.HasFiles() - if !*i.HasFiles { - p = contact.Not(p) + if i.HasUser != nil { + p := actionplan.HasUser() + if !*i.HasUser { + p = actionplan.Not(p) } predicates = append(predicates, p) } - if len(i.HasFilesWith) > 0 { - with := make([]predicate.File, 0, len(i.HasFilesWith)) - for _, w := range i.HasFilesWith { + if len(i.HasUserWith) > 0 { + with := make([]predicate.User, 0, len(i.HasUserWith)) + for _, w := range i.HasUserWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasFilesWith'", err) + return nil, fmt.Errorf("%w: field 'HasUserWith'", err) } with = append(with, p) } - predicates = append(predicates, contact.HasFilesWith(with...)) + predicates = append(predicates, actionplan.HasUserWith(with...)) } switch len(predicates) { case 0: - return nil, ErrEmptyContactWhereInput + return nil, ErrEmptyActionPlanWhereInput case 1: return predicates[0], nil default: - return contact.And(predicates...), nil + return actionplan.And(predicates...), nil } } -// ContactHistoryWhereInput represents a where input for filtering ContactHistory queries. -type ContactHistoryWhereInput struct { - Predicates []predicate.ContactHistory `json:"-"` - Not *ContactHistoryWhereInput `json:"not,omitempty"` - Or []*ContactHistoryWhereInput `json:"or,omitempty"` - And []*ContactHistoryWhereInput `json:"and,omitempty"` +// ActionPlanHistoryWhereInput represents a where input for filtering ActionPlanHistory queries. +type ActionPlanHistoryWhereInput struct { + Predicates []predicate.ActionPlanHistory `json:"-"` + Not *ActionPlanHistoryWhereInput `json:"not,omitempty"` + Or []*ActionPlanHistoryWhereInput `json:"or,omitempty"` + And []*ActionPlanHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -1826,143 +1766,115 @@ type ContactHistoryWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` - - // "full_name" field predicates. - FullName *string `json:"fullName,omitempty"` - FullNameNEQ *string `json:"fullNameNEQ,omitempty"` - FullNameIn []string `json:"fullNameIn,omitempty"` - FullNameNotIn []string `json:"fullNameNotIn,omitempty"` - FullNameGT *string `json:"fullNameGT,omitempty"` - FullNameGTE *string `json:"fullNameGTE,omitempty"` - FullNameLT *string `json:"fullNameLT,omitempty"` - FullNameLTE *string `json:"fullNameLTE,omitempty"` - FullNameContains *string `json:"fullNameContains,omitempty"` - FullNameHasPrefix *string `json:"fullNameHasPrefix,omitempty"` - FullNameHasSuffix *string `json:"fullNameHasSuffix,omitempty"` - FullNameEqualFold *string `json:"fullNameEqualFold,omitempty"` - FullNameContainsFold *string `json:"fullNameContainsFold,omitempty"` - - // "title" field predicates. - Title *string `json:"title,omitempty"` - TitleNEQ *string `json:"titleNEQ,omitempty"` - TitleIn []string `json:"titleIn,omitempty"` - TitleNotIn []string `json:"titleNotIn,omitempty"` - TitleGT *string `json:"titleGT,omitempty"` - TitleGTE *string `json:"titleGTE,omitempty"` - TitleLT *string `json:"titleLT,omitempty"` - TitleLTE *string `json:"titleLTE,omitempty"` - TitleContains *string `json:"titleContains,omitempty"` - TitleHasPrefix *string `json:"titleHasPrefix,omitempty"` - TitleHasSuffix *string `json:"titleHasSuffix,omitempty"` - TitleIsNil bool `json:"titleIsNil,omitempty"` - TitleNotNil bool `json:"titleNotNil,omitempty"` - TitleEqualFold *string `json:"titleEqualFold,omitempty"` - TitleContainsFold *string `json:"titleContainsFold,omitempty"` - - // "company" field predicates. - Company *string `json:"company,omitempty"` - CompanyNEQ *string `json:"companyNEQ,omitempty"` - CompanyIn []string `json:"companyIn,omitempty"` - CompanyNotIn []string `json:"companyNotIn,omitempty"` - CompanyGT *string `json:"companyGT,omitempty"` - CompanyGTE *string `json:"companyGTE,omitempty"` - CompanyLT *string `json:"companyLT,omitempty"` - CompanyLTE *string `json:"companyLTE,omitempty"` - CompanyContains *string `json:"companyContains,omitempty"` - CompanyHasPrefix *string `json:"companyHasPrefix,omitempty"` - CompanyHasSuffix *string `json:"companyHasSuffix,omitempty"` - CompanyIsNil bool `json:"companyIsNil,omitempty"` - CompanyNotNil bool `json:"companyNotNil,omitempty"` - CompanyEqualFold *string `json:"companyEqualFold,omitempty"` - CompanyContainsFold *string `json:"companyContainsFold,omitempty"` - - // "email" field predicates. - Email *string `json:"email,omitempty"` - EmailNEQ *string `json:"emailNEQ,omitempty"` - EmailIn []string `json:"emailIn,omitempty"` - EmailNotIn []string `json:"emailNotIn,omitempty"` - EmailGT *string `json:"emailGT,omitempty"` - EmailGTE *string `json:"emailGTE,omitempty"` - EmailLT *string `json:"emailLT,omitempty"` - EmailLTE *string `json:"emailLTE,omitempty"` - EmailContains *string `json:"emailContains,omitempty"` - EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` - EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` - EmailIsNil bool `json:"emailIsNil,omitempty"` - EmailNotNil bool `json:"emailNotNil,omitempty"` - EmailEqualFold *string `json:"emailEqualFold,omitempty"` - EmailContainsFold *string `json:"emailContainsFold,omitempty"` - - // "phone_number" field predicates. - PhoneNumber *string `json:"phoneNumber,omitempty"` - PhoneNumberNEQ *string `json:"phoneNumberNEQ,omitempty"` - PhoneNumberIn []string `json:"phoneNumberIn,omitempty"` - PhoneNumberNotIn []string `json:"phoneNumberNotIn,omitempty"` - PhoneNumberGT *string `json:"phoneNumberGT,omitempty"` - PhoneNumberGTE *string `json:"phoneNumberGTE,omitempty"` - PhoneNumberLT *string `json:"phoneNumberLT,omitempty"` - PhoneNumberLTE *string `json:"phoneNumberLTE,omitempty"` - PhoneNumberContains *string `json:"phoneNumberContains,omitempty"` - PhoneNumberHasPrefix *string `json:"phoneNumberHasPrefix,omitempty"` - PhoneNumberHasSuffix *string `json:"phoneNumberHasSuffix,omitempty"` - PhoneNumberIsNil bool `json:"phoneNumberIsNil,omitempty"` - PhoneNumberNotNil bool `json:"phoneNumberNotNil,omitempty"` - PhoneNumberEqualFold *string `json:"phoneNumberEqualFold,omitempty"` - PhoneNumberContainsFold *string `json:"phoneNumberContainsFold,omitempty"` + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "address" field predicates. - Address *string `json:"address,omitempty"` - AddressNEQ *string `json:"addressNEQ,omitempty"` - AddressIn []string `json:"addressIn,omitempty"` - AddressNotIn []string `json:"addressNotIn,omitempty"` - AddressGT *string `json:"addressGT,omitempty"` - AddressGTE *string `json:"addressGTE,omitempty"` - AddressLT *string `json:"addressLT,omitempty"` - AddressLTE *string `json:"addressLTE,omitempty"` - AddressContains *string `json:"addressContains,omitempty"` - AddressHasPrefix *string `json:"addressHasPrefix,omitempty"` - AddressHasSuffix *string `json:"addressHasSuffix,omitempty"` - AddressIsNil bool `json:"addressIsNil,omitempty"` - AddressNotNil bool `json:"addressNotNil,omitempty"` - AddressEqualFold *string `json:"addressEqualFold,omitempty"` - AddressContainsFold *string `json:"addressContainsFold,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` // "status" field predicates. - Status *enums.UserStatus `json:"status,omitempty"` - StatusNEQ *enums.UserStatus `json:"statusNEQ,omitempty"` - StatusIn []enums.UserStatus `json:"statusIn,omitempty"` - StatusNotIn []enums.UserStatus `json:"statusNotIn,omitempty"` + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + + // "due_date" field predicates. + DueDate *time.Time `json:"dueDate,omitempty"` + DueDateNEQ *time.Time `json:"dueDateNEQ,omitempty"` + DueDateIn []time.Time `json:"dueDateIn,omitempty"` + DueDateNotIn []time.Time `json:"dueDateNotIn,omitempty"` + DueDateGT *time.Time `json:"dueDateGT,omitempty"` + DueDateGTE *time.Time `json:"dueDateGTE,omitempty"` + DueDateLT *time.Time `json:"dueDateLT,omitempty"` + DueDateLTE *time.Time `json:"dueDateLTE,omitempty"` + DueDateIsNil bool `json:"dueDateIsNil,omitempty"` + DueDateNotNil bool `json:"dueDateNotNil,omitempty"` + + // "priority" field predicates. + Priority *string `json:"priority,omitempty"` + PriorityNEQ *string `json:"priorityNEQ,omitempty"` + PriorityIn []string `json:"priorityIn,omitempty"` + PriorityNotIn []string `json:"priorityNotIn,omitempty"` + PriorityGT *string `json:"priorityGT,omitempty"` + PriorityGTE *string `json:"priorityGTE,omitempty"` + PriorityLT *string `json:"priorityLT,omitempty"` + PriorityLTE *string `json:"priorityLTE,omitempty"` + PriorityContains *string `json:"priorityContains,omitempty"` + PriorityHasPrefix *string `json:"priorityHasPrefix,omitempty"` + PriorityHasSuffix *string `json:"priorityHasSuffix,omitempty"` + PriorityIsNil bool `json:"priorityIsNil,omitempty"` + PriorityNotNil bool `json:"priorityNotNil,omitempty"` + PriorityEqualFold *string `json:"priorityEqualFold,omitempty"` + PriorityContainsFold *string `json:"priorityContainsFold,omitempty"` + + // "source" field predicates. + Source *string `json:"source,omitempty"` + SourceNEQ *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGT *string `json:"sourceGT,omitempty"` + SourceGTE *string `json:"sourceGTE,omitempty"` + SourceLT *string `json:"sourceLT,omitempty"` + SourceLTE *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil bool `json:"sourceIsNil,omitempty"` + SourceNotNil bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *ContactHistoryWhereInput) AddPredicates(predicates ...predicate.ContactHistory) { +func (i *ActionPlanHistoryWhereInput) AddPredicates(predicates ...predicate.ActionPlanHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the ContactHistoryWhereInput filter on the ContactHistoryQuery builder. -func (i *ContactHistoryWhereInput) Filter(q *ContactHistoryQuery) (*ContactHistoryQuery, error) { +// Filter applies the ActionPlanHistoryWhereInput filter on the ActionPlanHistoryQuery builder. +func (i *ActionPlanHistoryWhereInput) Filter(q *ActionPlanHistoryQuery) (*ActionPlanHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyContactHistoryWhereInput { + if err == ErrEmptyActionPlanHistoryWhereInput { return q, nil } return nil, err @@ -1970,19 +1882,19 @@ func (i *ContactHistoryWhereInput) Filter(q *ContactHistoryQuery) (*ContactHisto return q.Where(p), nil } -// ErrEmptyContactHistoryWhereInput is returned in case the ContactHistoryWhereInput is empty. -var ErrEmptyContactHistoryWhereInput = errors.New("generated: empty predicate ContactHistoryWhereInput") +// ErrEmptyActionPlanHistoryWhereInput is returned in case the ActionPlanHistoryWhereInput is empty. +var ErrEmptyActionPlanHistoryWhereInput = errors.New("generated: empty predicate ActionPlanHistoryWhereInput") -// P returns a predicate for filtering contacthistories. +// P returns a predicate for filtering actionplanhistories. // An error is returned if the input is empty or invalid. -func (i *ContactHistoryWhereInput) P() (predicate.ContactHistory, error) { - var predicates []predicate.ContactHistory +func (i *ActionPlanHistoryWhereInput) P() (predicate.ActionPlanHistory, error) { + var predicates []predicate.ActionPlanHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, contacthistory.Not(p)) + predicates = append(predicates, actionplanhistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -1992,7 +1904,7 @@ func (i *ContactHistoryWhereInput) P() (predicate.ContactHistory, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.ContactHistory, 0, n) + or := make([]predicate.ActionPlanHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -2000,7 +1912,7 @@ func (i *ContactHistoryWhereInput) P() (predicate.ContactHistory, error) { } or = append(or, p) } - predicates = append(predicates, contacthistory.Or(or...)) + predicates = append(predicates, actionplanhistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -2010,7 +1922,7 @@ func (i *ContactHistoryWhereInput) P() (predicate.ContactHistory, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.ContactHistory, 0, n) + and := make([]predicate.ActionPlanHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -2018,683 +1930,611 @@ func (i *ContactHistoryWhereInput) P() (predicate.ContactHistory, error) { } and = append(and, p) } - predicates = append(predicates, contacthistory.And(and...)) + predicates = append(predicates, actionplanhistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, contacthistory.IDEQ(*i.ID)) + predicates = append(predicates, actionplanhistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, contacthistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, actionplanhistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, contacthistory.IDIn(i.IDIn...)) + predicates = append(predicates, actionplanhistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, contacthistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, actionplanhistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, contacthistory.IDGT(*i.IDGT)) + predicates = append(predicates, actionplanhistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, contacthistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, actionplanhistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, contacthistory.IDLT(*i.IDLT)) + predicates = append(predicates, actionplanhistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, contacthistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, actionplanhistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, contacthistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, actionplanhistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, contacthistory.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, actionplanhistory.IDContainsFold(*i.IDContainsFold)) } if i.HistoryTime != nil { - predicates = append(predicates, contacthistory.HistoryTimeEQ(*i.HistoryTime)) + predicates = append(predicates, actionplanhistory.HistoryTimeEQ(*i.HistoryTime)) } if i.HistoryTimeNEQ != nil { - predicates = append(predicates, contacthistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + predicates = append(predicates, actionplanhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) } if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, contacthistory.HistoryTimeIn(i.HistoryTimeIn...)) + predicates = append(predicates, actionplanhistory.HistoryTimeIn(i.HistoryTimeIn...)) } if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, contacthistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + predicates = append(predicates, actionplanhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) } if i.HistoryTimeGT != nil { - predicates = append(predicates, contacthistory.HistoryTimeGT(*i.HistoryTimeGT)) + predicates = append(predicates, actionplanhistory.HistoryTimeGT(*i.HistoryTimeGT)) } if i.HistoryTimeGTE != nil { - predicates = append(predicates, contacthistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + predicates = append(predicates, actionplanhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) } if i.HistoryTimeLT != nil { - predicates = append(predicates, contacthistory.HistoryTimeLT(*i.HistoryTimeLT)) + predicates = append(predicates, actionplanhistory.HistoryTimeLT(*i.HistoryTimeLT)) } if i.HistoryTimeLTE != nil { - predicates = append(predicates, contacthistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + predicates = append(predicates, actionplanhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) } if i.Ref != nil { - predicates = append(predicates, contacthistory.RefEQ(*i.Ref)) + predicates = append(predicates, actionplanhistory.RefEQ(*i.Ref)) } if i.RefNEQ != nil { - predicates = append(predicates, contacthistory.RefNEQ(*i.RefNEQ)) + predicates = append(predicates, actionplanhistory.RefNEQ(*i.RefNEQ)) } if len(i.RefIn) > 0 { - predicates = append(predicates, contacthistory.RefIn(i.RefIn...)) + predicates = append(predicates, actionplanhistory.RefIn(i.RefIn...)) } if len(i.RefNotIn) > 0 { - predicates = append(predicates, contacthistory.RefNotIn(i.RefNotIn...)) + predicates = append(predicates, actionplanhistory.RefNotIn(i.RefNotIn...)) } if i.RefGT != nil { - predicates = append(predicates, contacthistory.RefGT(*i.RefGT)) + predicates = append(predicates, actionplanhistory.RefGT(*i.RefGT)) } if i.RefGTE != nil { - predicates = append(predicates, contacthistory.RefGTE(*i.RefGTE)) + predicates = append(predicates, actionplanhistory.RefGTE(*i.RefGTE)) } if i.RefLT != nil { - predicates = append(predicates, contacthistory.RefLT(*i.RefLT)) + predicates = append(predicates, actionplanhistory.RefLT(*i.RefLT)) } if i.RefLTE != nil { - predicates = append(predicates, contacthistory.RefLTE(*i.RefLTE)) + predicates = append(predicates, actionplanhistory.RefLTE(*i.RefLTE)) } if i.RefContains != nil { - predicates = append(predicates, contacthistory.RefContains(*i.RefContains)) + predicates = append(predicates, actionplanhistory.RefContains(*i.RefContains)) } if i.RefHasPrefix != nil { - predicates = append(predicates, contacthistory.RefHasPrefix(*i.RefHasPrefix)) + predicates = append(predicates, actionplanhistory.RefHasPrefix(*i.RefHasPrefix)) } if i.RefHasSuffix != nil { - predicates = append(predicates, contacthistory.RefHasSuffix(*i.RefHasSuffix)) + predicates = append(predicates, actionplanhistory.RefHasSuffix(*i.RefHasSuffix)) } if i.RefIsNil { - predicates = append(predicates, contacthistory.RefIsNil()) + predicates = append(predicates, actionplanhistory.RefIsNil()) } if i.RefNotNil { - predicates = append(predicates, contacthistory.RefNotNil()) + predicates = append(predicates, actionplanhistory.RefNotNil()) } if i.RefEqualFold != nil { - predicates = append(predicates, contacthistory.RefEqualFold(*i.RefEqualFold)) + predicates = append(predicates, actionplanhistory.RefEqualFold(*i.RefEqualFold)) } if i.RefContainsFold != nil { - predicates = append(predicates, contacthistory.RefContainsFold(*i.RefContainsFold)) + predicates = append(predicates, actionplanhistory.RefContainsFold(*i.RefContainsFold)) } if i.Operation != nil { - predicates = append(predicates, contacthistory.OperationEQ(*i.Operation)) + predicates = append(predicates, actionplanhistory.OperationEQ(*i.Operation)) } if i.OperationNEQ != nil { - predicates = append(predicates, contacthistory.OperationNEQ(*i.OperationNEQ)) + predicates = append(predicates, actionplanhistory.OperationNEQ(*i.OperationNEQ)) } if len(i.OperationIn) > 0 { - predicates = append(predicates, contacthistory.OperationIn(i.OperationIn...)) + predicates = append(predicates, actionplanhistory.OperationIn(i.OperationIn...)) } if len(i.OperationNotIn) > 0 { - predicates = append(predicates, contacthistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, actionplanhistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, contacthistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, actionplanhistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, contacthistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, actionplanhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, contacthistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, actionplanhistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, contacthistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, actionplanhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, contacthistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, actionplanhistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, contacthistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, actionplanhistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, contacthistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, actionplanhistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, contacthistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, actionplanhistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, contacthistory.CreatedAtIsNil()) + predicates = append(predicates, actionplanhistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, contacthistory.CreatedAtNotNil()) + predicates = append(predicates, actionplanhistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, contacthistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, actionplanhistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, contacthistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, actionplanhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, contacthistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, actionplanhistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, contacthistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, actionplanhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, contacthistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, actionplanhistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, contacthistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, actionplanhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, contacthistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, actionplanhistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, contacthistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, actionplanhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, contacthistory.UpdatedAtIsNil()) + predicates = append(predicates, actionplanhistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, contacthistory.UpdatedAtNotNil()) + predicates = append(predicates, actionplanhistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, contacthistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, actionplanhistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, contacthistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, actionplanhistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, contacthistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, actionplanhistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, contacthistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, actionplanhistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, contacthistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, actionplanhistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, contacthistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, actionplanhistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, contacthistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, actionplanhistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, contacthistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, actionplanhistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, contacthistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, actionplanhistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, contacthistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, actionplanhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, contacthistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, actionplanhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, contacthistory.CreatedByIsNil()) + predicates = append(predicates, actionplanhistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, contacthistory.CreatedByNotNil()) + predicates = append(predicates, actionplanhistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, contacthistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, actionplanhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, contacthistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, actionplanhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, contacthistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, actionplanhistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, contacthistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, actionplanhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, contacthistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, actionplanhistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, contacthistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, actionplanhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, contacthistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, actionplanhistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, contacthistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, actionplanhistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, contacthistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, actionplanhistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, contacthistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, actionplanhistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, contacthistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, actionplanhistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, contacthistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, actionplanhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, contacthistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, actionplanhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, contacthistory.UpdatedByIsNil()) + predicates = append(predicates, actionplanhistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, contacthistory.UpdatedByNotNil()) + predicates = append(predicates, actionplanhistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, contacthistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, actionplanhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, contacthistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, actionplanhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, contacthistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, actionplanhistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, contacthistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, actionplanhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, contacthistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, actionplanhistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, contacthistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, actionplanhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, contacthistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, actionplanhistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, contacthistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, actionplanhistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, contacthistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, actionplanhistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, contacthistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, actionplanhistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, contacthistory.DeletedAtIsNil()) + predicates = append(predicates, actionplanhistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, contacthistory.DeletedAtNotNil()) + predicates = append(predicates, actionplanhistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, contacthistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, actionplanhistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, contacthistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, actionplanhistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, contacthistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, actionplanhistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, contacthistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, actionplanhistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, contacthistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, actionplanhistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, contacthistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, actionplanhistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, contacthistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, actionplanhistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, contacthistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, actionplanhistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, contacthistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, actionplanhistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, contacthistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, actionplanhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, contacthistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, actionplanhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, contacthistory.DeletedByIsNil()) + predicates = append(predicates, actionplanhistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, contacthistory.DeletedByNotNil()) + predicates = append(predicates, actionplanhistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, contacthistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, actionplanhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, contacthistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, actionplanhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.OwnerID != nil { - predicates = append(predicates, contacthistory.OwnerIDEQ(*i.OwnerID)) + if i.Name != nil { + predicates = append(predicates, actionplanhistory.NameEQ(*i.Name)) } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, contacthistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + if i.NameNEQ != nil { + predicates = append(predicates, actionplanhistory.NameNEQ(*i.NameNEQ)) } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, contacthistory.OwnerIDIn(i.OwnerIDIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, actionplanhistory.NameIn(i.NameIn...)) } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, contacthistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, actionplanhistory.NameNotIn(i.NameNotIn...)) } - if i.OwnerIDGT != nil { - predicates = append(predicates, contacthistory.OwnerIDGT(*i.OwnerIDGT)) + if i.NameGT != nil { + predicates = append(predicates, actionplanhistory.NameGT(*i.NameGT)) } - if i.OwnerIDGTE != nil { - predicates = append(predicates, contacthistory.OwnerIDGTE(*i.OwnerIDGTE)) + if i.NameGTE != nil { + predicates = append(predicates, actionplanhistory.NameGTE(*i.NameGTE)) } - if i.OwnerIDLT != nil { - predicates = append(predicates, contacthistory.OwnerIDLT(*i.OwnerIDLT)) + if i.NameLT != nil { + predicates = append(predicates, actionplanhistory.NameLT(*i.NameLT)) } - if i.OwnerIDLTE != nil { - predicates = append(predicates, contacthistory.OwnerIDLTE(*i.OwnerIDLTE)) + if i.NameLTE != nil { + predicates = append(predicates, actionplanhistory.NameLTE(*i.NameLTE)) } - if i.OwnerIDContains != nil { - predicates = append(predicates, contacthistory.OwnerIDContains(*i.OwnerIDContains)) + if i.NameContains != nil { + predicates = append(predicates, actionplanhistory.NameContains(*i.NameContains)) } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, contacthistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + if i.NameHasPrefix != nil { + predicates = append(predicates, actionplanhistory.NameHasPrefix(*i.NameHasPrefix)) } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, contacthistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + if i.NameHasSuffix != nil { + predicates = append(predicates, actionplanhistory.NameHasSuffix(*i.NameHasSuffix)) } - if i.OwnerIDIsNil { - predicates = append(predicates, contacthistory.OwnerIDIsNil()) + if i.NameEqualFold != nil { + predicates = append(predicates, actionplanhistory.NameEqualFold(*i.NameEqualFold)) } - if i.OwnerIDNotNil { - predicates = append(predicates, contacthistory.OwnerIDNotNil()) + if i.NameContainsFold != nil { + predicates = append(predicates, actionplanhistory.NameContainsFold(*i.NameContainsFold)) } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, contacthistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + if i.Description != nil { + predicates = append(predicates, actionplanhistory.DescriptionEQ(*i.Description)) } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, contacthistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, actionplanhistory.DescriptionNEQ(*i.DescriptionNEQ)) } - if i.FullName != nil { - predicates = append(predicates, contacthistory.FullNameEQ(*i.FullName)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, actionplanhistory.DescriptionIn(i.DescriptionIn...)) } - if i.FullNameNEQ != nil { - predicates = append(predicates, contacthistory.FullNameNEQ(*i.FullNameNEQ)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, actionplanhistory.DescriptionNotIn(i.DescriptionNotIn...)) } - if len(i.FullNameIn) > 0 { - predicates = append(predicates, contacthistory.FullNameIn(i.FullNameIn...)) + if i.DescriptionGT != nil { + predicates = append(predicates, actionplanhistory.DescriptionGT(*i.DescriptionGT)) } - if len(i.FullNameNotIn) > 0 { - predicates = append(predicates, contacthistory.FullNameNotIn(i.FullNameNotIn...)) + if i.DescriptionGTE != nil { + predicates = append(predicates, actionplanhistory.DescriptionGTE(*i.DescriptionGTE)) } - if i.FullNameGT != nil { - predicates = append(predicates, contacthistory.FullNameGT(*i.FullNameGT)) + if i.DescriptionLT != nil { + predicates = append(predicates, actionplanhistory.DescriptionLT(*i.DescriptionLT)) } - if i.FullNameGTE != nil { - predicates = append(predicates, contacthistory.FullNameGTE(*i.FullNameGTE)) + if i.DescriptionLTE != nil { + predicates = append(predicates, actionplanhistory.DescriptionLTE(*i.DescriptionLTE)) } - if i.FullNameLT != nil { - predicates = append(predicates, contacthistory.FullNameLT(*i.FullNameLT)) + if i.DescriptionContains != nil { + predicates = append(predicates, actionplanhistory.DescriptionContains(*i.DescriptionContains)) } - if i.FullNameLTE != nil { - predicates = append(predicates, contacthistory.FullNameLTE(*i.FullNameLTE)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, actionplanhistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.FullNameContains != nil { - predicates = append(predicates, contacthistory.FullNameContains(*i.FullNameContains)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, actionplanhistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.FullNameHasPrefix != nil { - predicates = append(predicates, contacthistory.FullNameHasPrefix(*i.FullNameHasPrefix)) + if i.DescriptionIsNil { + predicates = append(predicates, actionplanhistory.DescriptionIsNil()) } - if i.FullNameHasSuffix != nil { - predicates = append(predicates, contacthistory.FullNameHasSuffix(*i.FullNameHasSuffix)) + if i.DescriptionNotNil { + predicates = append(predicates, actionplanhistory.DescriptionNotNil()) } - if i.FullNameEqualFold != nil { - predicates = append(predicates, contacthistory.FullNameEqualFold(*i.FullNameEqualFold)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, actionplanhistory.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.FullNameContainsFold != nil { - predicates = append(predicates, contacthistory.FullNameContainsFold(*i.FullNameContainsFold)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, actionplanhistory.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.Title != nil { - predicates = append(predicates, contacthistory.TitleEQ(*i.Title)) + if i.Status != nil { + predicates = append(predicates, actionplanhistory.StatusEQ(*i.Status)) } - if i.TitleNEQ != nil { - predicates = append(predicates, contacthistory.TitleNEQ(*i.TitleNEQ)) + if i.StatusNEQ != nil { + predicates = append(predicates, actionplanhistory.StatusNEQ(*i.StatusNEQ)) } - if len(i.TitleIn) > 0 { - predicates = append(predicates, contacthistory.TitleIn(i.TitleIn...)) + if len(i.StatusIn) > 0 { + predicates = append(predicates, actionplanhistory.StatusIn(i.StatusIn...)) } - if len(i.TitleNotIn) > 0 { - predicates = append(predicates, contacthistory.TitleNotIn(i.TitleNotIn...)) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, actionplanhistory.StatusNotIn(i.StatusNotIn...)) } - if i.TitleGT != nil { - predicates = append(predicates, contacthistory.TitleGT(*i.TitleGT)) + if i.StatusGT != nil { + predicates = append(predicates, actionplanhistory.StatusGT(*i.StatusGT)) } - if i.TitleGTE != nil { - predicates = append(predicates, contacthistory.TitleGTE(*i.TitleGTE)) + if i.StatusGTE != nil { + predicates = append(predicates, actionplanhistory.StatusGTE(*i.StatusGTE)) } - if i.TitleLT != nil { - predicates = append(predicates, contacthistory.TitleLT(*i.TitleLT)) + if i.StatusLT != nil { + predicates = append(predicates, actionplanhistory.StatusLT(*i.StatusLT)) } - if i.TitleLTE != nil { - predicates = append(predicates, contacthistory.TitleLTE(*i.TitleLTE)) + if i.StatusLTE != nil { + predicates = append(predicates, actionplanhistory.StatusLTE(*i.StatusLTE)) } - if i.TitleContains != nil { - predicates = append(predicates, contacthistory.TitleContains(*i.TitleContains)) + if i.StatusContains != nil { + predicates = append(predicates, actionplanhistory.StatusContains(*i.StatusContains)) } - if i.TitleHasPrefix != nil { - predicates = append(predicates, contacthistory.TitleHasPrefix(*i.TitleHasPrefix)) + if i.StatusHasPrefix != nil { + predicates = append(predicates, actionplanhistory.StatusHasPrefix(*i.StatusHasPrefix)) } - if i.TitleHasSuffix != nil { - predicates = append(predicates, contacthistory.TitleHasSuffix(*i.TitleHasSuffix)) + if i.StatusHasSuffix != nil { + predicates = append(predicates, actionplanhistory.StatusHasSuffix(*i.StatusHasSuffix)) } - if i.TitleIsNil { - predicates = append(predicates, contacthistory.TitleIsNil()) - } - if i.TitleNotNil { - predicates = append(predicates, contacthistory.TitleNotNil()) - } - if i.TitleEqualFold != nil { - predicates = append(predicates, contacthistory.TitleEqualFold(*i.TitleEqualFold)) - } - if i.TitleContainsFold != nil { - predicates = append(predicates, contacthistory.TitleContainsFold(*i.TitleContainsFold)) - } - if i.Company != nil { - predicates = append(predicates, contacthistory.CompanyEQ(*i.Company)) - } - if i.CompanyNEQ != nil { - predicates = append(predicates, contacthistory.CompanyNEQ(*i.CompanyNEQ)) - } - if len(i.CompanyIn) > 0 { - predicates = append(predicates, contacthistory.CompanyIn(i.CompanyIn...)) - } - if len(i.CompanyNotIn) > 0 { - predicates = append(predicates, contacthistory.CompanyNotIn(i.CompanyNotIn...)) - } - if i.CompanyGT != nil { - predicates = append(predicates, contacthistory.CompanyGT(*i.CompanyGT)) - } - if i.CompanyGTE != nil { - predicates = append(predicates, contacthistory.CompanyGTE(*i.CompanyGTE)) - } - if i.CompanyLT != nil { - predicates = append(predicates, contacthistory.CompanyLT(*i.CompanyLT)) - } - if i.CompanyLTE != nil { - predicates = append(predicates, contacthistory.CompanyLTE(*i.CompanyLTE)) - } - if i.CompanyContains != nil { - predicates = append(predicates, contacthistory.CompanyContains(*i.CompanyContains)) - } - if i.CompanyHasPrefix != nil { - predicates = append(predicates, contacthistory.CompanyHasPrefix(*i.CompanyHasPrefix)) - } - if i.CompanyHasSuffix != nil { - predicates = append(predicates, contacthistory.CompanyHasSuffix(*i.CompanyHasSuffix)) - } - if i.CompanyIsNil { - predicates = append(predicates, contacthistory.CompanyIsNil()) - } - if i.CompanyNotNil { - predicates = append(predicates, contacthistory.CompanyNotNil()) - } - if i.CompanyEqualFold != nil { - predicates = append(predicates, contacthistory.CompanyEqualFold(*i.CompanyEqualFold)) - } - if i.CompanyContainsFold != nil { - predicates = append(predicates, contacthistory.CompanyContainsFold(*i.CompanyContainsFold)) - } - if i.Email != nil { - predicates = append(predicates, contacthistory.EmailEQ(*i.Email)) - } - if i.EmailNEQ != nil { - predicates = append(predicates, contacthistory.EmailNEQ(*i.EmailNEQ)) - } - if len(i.EmailIn) > 0 { - predicates = append(predicates, contacthistory.EmailIn(i.EmailIn...)) - } - if len(i.EmailNotIn) > 0 { - predicates = append(predicates, contacthistory.EmailNotIn(i.EmailNotIn...)) - } - if i.EmailGT != nil { - predicates = append(predicates, contacthistory.EmailGT(*i.EmailGT)) - } - if i.EmailGTE != nil { - predicates = append(predicates, contacthistory.EmailGTE(*i.EmailGTE)) + if i.StatusIsNil { + predicates = append(predicates, actionplanhistory.StatusIsNil()) } - if i.EmailLT != nil { - predicates = append(predicates, contacthistory.EmailLT(*i.EmailLT)) + if i.StatusNotNil { + predicates = append(predicates, actionplanhistory.StatusNotNil()) } - if i.EmailLTE != nil { - predicates = append(predicates, contacthistory.EmailLTE(*i.EmailLTE)) + if i.StatusEqualFold != nil { + predicates = append(predicates, actionplanhistory.StatusEqualFold(*i.StatusEqualFold)) } - if i.EmailContains != nil { - predicates = append(predicates, contacthistory.EmailContains(*i.EmailContains)) + if i.StatusContainsFold != nil { + predicates = append(predicates, actionplanhistory.StatusContainsFold(*i.StatusContainsFold)) } - if i.EmailHasPrefix != nil { - predicates = append(predicates, contacthistory.EmailHasPrefix(*i.EmailHasPrefix)) + if i.DueDate != nil { + predicates = append(predicates, actionplanhistory.DueDateEQ(*i.DueDate)) } - if i.EmailHasSuffix != nil { - predicates = append(predicates, contacthistory.EmailHasSuffix(*i.EmailHasSuffix)) + if i.DueDateNEQ != nil { + predicates = append(predicates, actionplanhistory.DueDateNEQ(*i.DueDateNEQ)) } - if i.EmailIsNil { - predicates = append(predicates, contacthistory.EmailIsNil()) + if len(i.DueDateIn) > 0 { + predicates = append(predicates, actionplanhistory.DueDateIn(i.DueDateIn...)) } - if i.EmailNotNil { - predicates = append(predicates, contacthistory.EmailNotNil()) + if len(i.DueDateNotIn) > 0 { + predicates = append(predicates, actionplanhistory.DueDateNotIn(i.DueDateNotIn...)) } - if i.EmailEqualFold != nil { - predicates = append(predicates, contacthistory.EmailEqualFold(*i.EmailEqualFold)) + if i.DueDateGT != nil { + predicates = append(predicates, actionplanhistory.DueDateGT(*i.DueDateGT)) } - if i.EmailContainsFold != nil { - predicates = append(predicates, contacthistory.EmailContainsFold(*i.EmailContainsFold)) + if i.DueDateGTE != nil { + predicates = append(predicates, actionplanhistory.DueDateGTE(*i.DueDateGTE)) } - if i.PhoneNumber != nil { - predicates = append(predicates, contacthistory.PhoneNumberEQ(*i.PhoneNumber)) + if i.DueDateLT != nil { + predicates = append(predicates, actionplanhistory.DueDateLT(*i.DueDateLT)) } - if i.PhoneNumberNEQ != nil { - predicates = append(predicates, contacthistory.PhoneNumberNEQ(*i.PhoneNumberNEQ)) + if i.DueDateLTE != nil { + predicates = append(predicates, actionplanhistory.DueDateLTE(*i.DueDateLTE)) } - if len(i.PhoneNumberIn) > 0 { - predicates = append(predicates, contacthistory.PhoneNumberIn(i.PhoneNumberIn...)) + if i.DueDateIsNil { + predicates = append(predicates, actionplanhistory.DueDateIsNil()) } - if len(i.PhoneNumberNotIn) > 0 { - predicates = append(predicates, contacthistory.PhoneNumberNotIn(i.PhoneNumberNotIn...)) + if i.DueDateNotNil { + predicates = append(predicates, actionplanhistory.DueDateNotNil()) } - if i.PhoneNumberGT != nil { - predicates = append(predicates, contacthistory.PhoneNumberGT(*i.PhoneNumberGT)) + if i.Priority != nil { + predicates = append(predicates, actionplanhistory.PriorityEQ(*i.Priority)) } - if i.PhoneNumberGTE != nil { - predicates = append(predicates, contacthistory.PhoneNumberGTE(*i.PhoneNumberGTE)) + if i.PriorityNEQ != nil { + predicates = append(predicates, actionplanhistory.PriorityNEQ(*i.PriorityNEQ)) } - if i.PhoneNumberLT != nil { - predicates = append(predicates, contacthistory.PhoneNumberLT(*i.PhoneNumberLT)) + if len(i.PriorityIn) > 0 { + predicates = append(predicates, actionplanhistory.PriorityIn(i.PriorityIn...)) } - if i.PhoneNumberLTE != nil { - predicates = append(predicates, contacthistory.PhoneNumberLTE(*i.PhoneNumberLTE)) + if len(i.PriorityNotIn) > 0 { + predicates = append(predicates, actionplanhistory.PriorityNotIn(i.PriorityNotIn...)) } - if i.PhoneNumberContains != nil { - predicates = append(predicates, contacthistory.PhoneNumberContains(*i.PhoneNumberContains)) + if i.PriorityGT != nil { + predicates = append(predicates, actionplanhistory.PriorityGT(*i.PriorityGT)) } - if i.PhoneNumberHasPrefix != nil { - predicates = append(predicates, contacthistory.PhoneNumberHasPrefix(*i.PhoneNumberHasPrefix)) + if i.PriorityGTE != nil { + predicates = append(predicates, actionplanhistory.PriorityGTE(*i.PriorityGTE)) } - if i.PhoneNumberHasSuffix != nil { - predicates = append(predicates, contacthistory.PhoneNumberHasSuffix(*i.PhoneNumberHasSuffix)) + if i.PriorityLT != nil { + predicates = append(predicates, actionplanhistory.PriorityLT(*i.PriorityLT)) } - if i.PhoneNumberIsNil { - predicates = append(predicates, contacthistory.PhoneNumberIsNil()) + if i.PriorityLTE != nil { + predicates = append(predicates, actionplanhistory.PriorityLTE(*i.PriorityLTE)) } - if i.PhoneNumberNotNil { - predicates = append(predicates, contacthistory.PhoneNumberNotNil()) + if i.PriorityContains != nil { + predicates = append(predicates, actionplanhistory.PriorityContains(*i.PriorityContains)) } - if i.PhoneNumberEqualFold != nil { - predicates = append(predicates, contacthistory.PhoneNumberEqualFold(*i.PhoneNumberEqualFold)) + if i.PriorityHasPrefix != nil { + predicates = append(predicates, actionplanhistory.PriorityHasPrefix(*i.PriorityHasPrefix)) } - if i.PhoneNumberContainsFold != nil { - predicates = append(predicates, contacthistory.PhoneNumberContainsFold(*i.PhoneNumberContainsFold)) + if i.PriorityHasSuffix != nil { + predicates = append(predicates, actionplanhistory.PriorityHasSuffix(*i.PriorityHasSuffix)) } - if i.Address != nil { - predicates = append(predicates, contacthistory.AddressEQ(*i.Address)) + if i.PriorityIsNil { + predicates = append(predicates, actionplanhistory.PriorityIsNil()) } - if i.AddressNEQ != nil { - predicates = append(predicates, contacthistory.AddressNEQ(*i.AddressNEQ)) + if i.PriorityNotNil { + predicates = append(predicates, actionplanhistory.PriorityNotNil()) } - if len(i.AddressIn) > 0 { - predicates = append(predicates, contacthistory.AddressIn(i.AddressIn...)) + if i.PriorityEqualFold != nil { + predicates = append(predicates, actionplanhistory.PriorityEqualFold(*i.PriorityEqualFold)) } - if len(i.AddressNotIn) > 0 { - predicates = append(predicates, contacthistory.AddressNotIn(i.AddressNotIn...)) + if i.PriorityContainsFold != nil { + predicates = append(predicates, actionplanhistory.PriorityContainsFold(*i.PriorityContainsFold)) } - if i.AddressGT != nil { - predicates = append(predicates, contacthistory.AddressGT(*i.AddressGT)) + if i.Source != nil { + predicates = append(predicates, actionplanhistory.SourceEQ(*i.Source)) } - if i.AddressGTE != nil { - predicates = append(predicates, contacthistory.AddressGTE(*i.AddressGTE)) + if i.SourceNEQ != nil { + predicates = append(predicates, actionplanhistory.SourceNEQ(*i.SourceNEQ)) } - if i.AddressLT != nil { - predicates = append(predicates, contacthistory.AddressLT(*i.AddressLT)) + if len(i.SourceIn) > 0 { + predicates = append(predicates, actionplanhistory.SourceIn(i.SourceIn...)) } - if i.AddressLTE != nil { - predicates = append(predicates, contacthistory.AddressLTE(*i.AddressLTE)) + if len(i.SourceNotIn) > 0 { + predicates = append(predicates, actionplanhistory.SourceNotIn(i.SourceNotIn...)) } - if i.AddressContains != nil { - predicates = append(predicates, contacthistory.AddressContains(*i.AddressContains)) + if i.SourceGT != nil { + predicates = append(predicates, actionplanhistory.SourceGT(*i.SourceGT)) } - if i.AddressHasPrefix != nil { - predicates = append(predicates, contacthistory.AddressHasPrefix(*i.AddressHasPrefix)) + if i.SourceGTE != nil { + predicates = append(predicates, actionplanhistory.SourceGTE(*i.SourceGTE)) } - if i.AddressHasSuffix != nil { - predicates = append(predicates, contacthistory.AddressHasSuffix(*i.AddressHasSuffix)) + if i.SourceLT != nil { + predicates = append(predicates, actionplanhistory.SourceLT(*i.SourceLT)) } - if i.AddressIsNil { - predicates = append(predicates, contacthistory.AddressIsNil()) + if i.SourceLTE != nil { + predicates = append(predicates, actionplanhistory.SourceLTE(*i.SourceLTE)) } - if i.AddressNotNil { - predicates = append(predicates, contacthistory.AddressNotNil()) + if i.SourceContains != nil { + predicates = append(predicates, actionplanhistory.SourceContains(*i.SourceContains)) } - if i.AddressEqualFold != nil { - predicates = append(predicates, contacthistory.AddressEqualFold(*i.AddressEqualFold)) + if i.SourceHasPrefix != nil { + predicates = append(predicates, actionplanhistory.SourceHasPrefix(*i.SourceHasPrefix)) } - if i.AddressContainsFold != nil { - predicates = append(predicates, contacthistory.AddressContainsFold(*i.AddressContainsFold)) + if i.SourceHasSuffix != nil { + predicates = append(predicates, actionplanhistory.SourceHasSuffix(*i.SourceHasSuffix)) } - if i.Status != nil { - predicates = append(predicates, contacthistory.StatusEQ(*i.Status)) + if i.SourceIsNil { + predicates = append(predicates, actionplanhistory.SourceIsNil()) } - if i.StatusNEQ != nil { - predicates = append(predicates, contacthistory.StatusNEQ(*i.StatusNEQ)) + if i.SourceNotNil { + predicates = append(predicates, actionplanhistory.SourceNotNil()) } - if len(i.StatusIn) > 0 { - predicates = append(predicates, contacthistory.StatusIn(i.StatusIn...)) + if i.SourceEqualFold != nil { + predicates = append(predicates, actionplanhistory.SourceEqualFold(*i.SourceEqualFold)) } - if len(i.StatusNotIn) > 0 { - predicates = append(predicates, contacthistory.StatusNotIn(i.StatusNotIn...)) + if i.SourceContainsFold != nil { + predicates = append(predicates, actionplanhistory.SourceContainsFold(*i.SourceContainsFold)) } switch len(predicates) { case 0: - return nil, ErrEmptyContactHistoryWhereInput + return nil, ErrEmptyActionPlanHistoryWhereInput case 1: return predicates[0], nil default: - return contacthistory.And(predicates...), nil + return actionplanhistory.And(predicates...), nil } } -// DocumentDataWhereInput represents a where input for filtering DocumentData queries. -type DocumentDataWhereInput struct { - Predicates []predicate.DocumentData `json:"-"` - Not *DocumentDataWhereInput `json:"not,omitempty"` - Or []*DocumentDataWhereInput `json:"or,omitempty"` - And []*DocumentDataWhereInput `json:"and,omitempty"` +// ContactWhereInput represents a where input for filtering Contact queries. +type ContactWhereInput struct { + Predicates []predicate.Contact `json:"-"` + Not *ContactWhereInput `json:"not,omitempty"` + Or []*ContactWhereInput `json:"or,omitempty"` + And []*ContactWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -2812,32 +2652,119 @@ type DocumentDataWhereInput struct { OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` - // "template_id" field predicates. - TemplateID *string `json:"templateID,omitempty"` - TemplateIDNEQ *string `json:"templateIDNEQ,omitempty"` - TemplateIDIn []string `json:"templateIDIn,omitempty"` - TemplateIDNotIn []string `json:"templateIDNotIn,omitempty"` - TemplateIDGT *string `json:"templateIDGT,omitempty"` - TemplateIDGTE *string `json:"templateIDGTE,omitempty"` - TemplateIDLT *string `json:"templateIDLT,omitempty"` - TemplateIDLTE *string `json:"templateIDLTE,omitempty"` - TemplateIDContains *string `json:"templateIDContains,omitempty"` - TemplateIDHasPrefix *string `json:"templateIDHasPrefix,omitempty"` - TemplateIDHasSuffix *string `json:"templateIDHasSuffix,omitempty"` - TemplateIDEqualFold *string `json:"templateIDEqualFold,omitempty"` - TemplateIDContainsFold *string `json:"templateIDContainsFold,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"` + FullNameGT *string `json:"fullNameGT,omitempty"` + FullNameGTE *string `json:"fullNameGTE,omitempty"` + FullNameLT *string `json:"fullNameLT,omitempty"` + FullNameLTE *string `json:"fullNameLTE,omitempty"` + FullNameContains *string `json:"fullNameContains,omitempty"` + FullNameHasPrefix *string `json:"fullNameHasPrefix,omitempty"` + FullNameHasSuffix *string `json:"fullNameHasSuffix,omitempty"` + FullNameEqualFold *string `json:"fullNameEqualFold,omitempty"` + FullNameContainsFold *string `json:"fullNameContainsFold,omitempty"` + + // "title" field predicates. + Title *string `json:"title,omitempty"` + TitleNEQ *string `json:"titleNEQ,omitempty"` + TitleIn []string `json:"titleIn,omitempty"` + TitleNotIn []string `json:"titleNotIn,omitempty"` + TitleGT *string `json:"titleGT,omitempty"` + TitleGTE *string `json:"titleGTE,omitempty"` + TitleLT *string `json:"titleLT,omitempty"` + TitleLTE *string `json:"titleLTE,omitempty"` + TitleContains *string `json:"titleContains,omitempty"` + TitleHasPrefix *string `json:"titleHasPrefix,omitempty"` + TitleHasSuffix *string `json:"titleHasSuffix,omitempty"` + TitleIsNil bool `json:"titleIsNil,omitempty"` + TitleNotNil bool `json:"titleNotNil,omitempty"` + TitleEqualFold *string `json:"titleEqualFold,omitempty"` + TitleContainsFold *string `json:"titleContainsFold,omitempty"` + + // "company" field predicates. + Company *string `json:"company,omitempty"` + CompanyNEQ *string `json:"companyNEQ,omitempty"` + CompanyIn []string `json:"companyIn,omitempty"` + CompanyNotIn []string `json:"companyNotIn,omitempty"` + CompanyGT *string `json:"companyGT,omitempty"` + CompanyGTE *string `json:"companyGTE,omitempty"` + CompanyLT *string `json:"companyLT,omitempty"` + CompanyLTE *string `json:"companyLTE,omitempty"` + CompanyContains *string `json:"companyContains,omitempty"` + CompanyHasPrefix *string `json:"companyHasPrefix,omitempty"` + CompanyHasSuffix *string `json:"companyHasSuffix,omitempty"` + CompanyIsNil bool `json:"companyIsNil,omitempty"` + CompanyNotNil bool `json:"companyNotNil,omitempty"` + CompanyEqualFold *string `json:"companyEqualFold,omitempty"` + CompanyContainsFold *string `json:"companyContainsFold,omitempty"` + + // "email" field predicates. + Email *string `json:"email,omitempty"` + EmailNEQ *string `json:"emailNEQ,omitempty"` + EmailIn []string `json:"emailIn,omitempty"` + EmailNotIn []string `json:"emailNotIn,omitempty"` + EmailGT *string `json:"emailGT,omitempty"` + EmailGTE *string `json:"emailGTE,omitempty"` + EmailLT *string `json:"emailLT,omitempty"` + EmailLTE *string `json:"emailLTE,omitempty"` + EmailContains *string `json:"emailContains,omitempty"` + EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` + EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` + EmailIsNil bool `json:"emailIsNil,omitempty"` + EmailNotNil bool `json:"emailNotNil,omitempty"` + EmailEqualFold *string `json:"emailEqualFold,omitempty"` + EmailContainsFold *string `json:"emailContainsFold,omitempty"` + + // "phone_number" field predicates. + PhoneNumber *string `json:"phoneNumber,omitempty"` + PhoneNumberNEQ *string `json:"phoneNumberNEQ,omitempty"` + PhoneNumberIn []string `json:"phoneNumberIn,omitempty"` + PhoneNumberNotIn []string `json:"phoneNumberNotIn,omitempty"` + PhoneNumberGT *string `json:"phoneNumberGT,omitempty"` + PhoneNumberGTE *string `json:"phoneNumberGTE,omitempty"` + PhoneNumberLT *string `json:"phoneNumberLT,omitempty"` + PhoneNumberLTE *string `json:"phoneNumberLTE,omitempty"` + PhoneNumberContains *string `json:"phoneNumberContains,omitempty"` + PhoneNumberHasPrefix *string `json:"phoneNumberHasPrefix,omitempty"` + PhoneNumberHasSuffix *string `json:"phoneNumberHasSuffix,omitempty"` + PhoneNumberIsNil bool `json:"phoneNumberIsNil,omitempty"` + PhoneNumberNotNil bool `json:"phoneNumberNotNil,omitempty"` + PhoneNumberEqualFold *string `json:"phoneNumberEqualFold,omitempty"` + PhoneNumberContainsFold *string `json:"phoneNumberContainsFold,omitempty"` + + // "address" field predicates. + Address *string `json:"address,omitempty"` + AddressNEQ *string `json:"addressNEQ,omitempty"` + AddressIn []string `json:"addressIn,omitempty"` + AddressNotIn []string `json:"addressNotIn,omitempty"` + AddressGT *string `json:"addressGT,omitempty"` + AddressGTE *string `json:"addressGTE,omitempty"` + AddressLT *string `json:"addressLT,omitempty"` + AddressLTE *string `json:"addressLTE,omitempty"` + AddressContains *string `json:"addressContains,omitempty"` + AddressHasPrefix *string `json:"addressHasPrefix,omitempty"` + AddressHasSuffix *string `json:"addressHasSuffix,omitempty"` + AddressIsNil bool `json:"addressIsNil,omitempty"` + AddressNotNil bool `json:"addressNotNil,omitempty"` + AddressEqualFold *string `json:"addressEqualFold,omitempty"` + AddressContainsFold *string `json:"addressContainsFold,omitempty"` + + // "status" field predicates. + Status *enums.UserStatus `json:"status,omitempty"` + StatusNEQ *enums.UserStatus `json:"statusNEQ,omitempty"` + StatusIn []enums.UserStatus `json:"statusIn,omitempty"` + StatusNotIn []enums.UserStatus `json:"statusNotIn,omitempty"` // "owner" edge predicates. HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // "template" edge predicates. - HasTemplate *bool `json:"hasTemplate,omitempty"` - HasTemplateWith []*TemplateWhereInput `json:"hasTemplateWith,omitempty"` - - // "entity" edge predicates. - HasEntity *bool `json:"hasEntity,omitempty"` - HasEntityWith []*EntityWhereInput `json:"hasEntityWith,omitempty"` + // "entities" edge predicates. + HasEntities *bool `json:"hasEntities,omitempty"` + HasEntitiesWith []*EntityWhereInput `json:"hasEntitiesWith,omitempty"` // "files" edge predicates. HasFiles *bool `json:"hasFiles,omitempty"` @@ -2845,18 +2772,18 @@ type DocumentDataWhereInput struct { } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *DocumentDataWhereInput) AddPredicates(predicates ...predicate.DocumentData) { +func (i *ContactWhereInput) AddPredicates(predicates ...predicate.Contact) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the DocumentDataWhereInput filter on the DocumentDataQuery builder. -func (i *DocumentDataWhereInput) Filter(q *DocumentDataQuery) (*DocumentDataQuery, error) { +// Filter applies the ContactWhereInput filter on the ContactQuery builder. +func (i *ContactWhereInput) Filter(q *ContactQuery) (*ContactQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyDocumentDataWhereInput { + if err == ErrEmptyContactWhereInput { return q, nil } return nil, err @@ -2864,19 +2791,19 @@ func (i *DocumentDataWhereInput) Filter(q *DocumentDataQuery) (*DocumentDataQuer return q.Where(p), nil } -// ErrEmptyDocumentDataWhereInput is returned in case the DocumentDataWhereInput is empty. -var ErrEmptyDocumentDataWhereInput = errors.New("generated: empty predicate DocumentDataWhereInput") +// ErrEmptyContactWhereInput is returned in case the ContactWhereInput is empty. +var ErrEmptyContactWhereInput = errors.New("generated: empty predicate ContactWhereInput") -// P returns a predicate for filtering documentdataslice. +// P returns a predicate for filtering contacts. // An error is returned if the input is empty or invalid. -func (i *DocumentDataWhereInput) P() (predicate.DocumentData, error) { - var predicates []predicate.DocumentData +func (i *ContactWhereInput) P() (predicate.Contact, error) { + var predicates []predicate.Contact if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, documentdata.Not(p)) + predicates = append(predicates, contact.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -2886,7 +2813,7 @@ func (i *DocumentDataWhereInput) P() (predicate.DocumentData, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.DocumentData, 0, n) + or := make([]predicate.Contact, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -2894,7 +2821,7 @@ func (i *DocumentDataWhereInput) P() (predicate.DocumentData, error) { } or = append(or, p) } - predicates = append(predicates, documentdata.Or(or...)) + predicates = append(predicates, contact.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -2904,7 +2831,7 @@ func (i *DocumentDataWhereInput) P() (predicate.DocumentData, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.DocumentData, 0, n) + and := make([]predicate.Contact, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -2912,353 +2839,590 @@ func (i *DocumentDataWhereInput) P() (predicate.DocumentData, error) { } and = append(and, p) } - predicates = append(predicates, documentdata.And(and...)) + predicates = append(predicates, contact.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, documentdata.IDEQ(*i.ID)) + predicates = append(predicates, contact.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, documentdata.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, contact.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, documentdata.IDIn(i.IDIn...)) + predicates = append(predicates, contact.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, documentdata.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, contact.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, documentdata.IDGT(*i.IDGT)) + predicates = append(predicates, contact.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, documentdata.IDGTE(*i.IDGTE)) + predicates = append(predicates, contact.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, documentdata.IDLT(*i.IDLT)) + predicates = append(predicates, contact.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, documentdata.IDLTE(*i.IDLTE)) + predicates = append(predicates, contact.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, documentdata.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, contact.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, documentdata.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, contact.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, documentdata.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, contact.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, documentdata.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, contact.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, documentdata.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, contact.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, documentdata.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, contact.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, documentdata.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, contact.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, documentdata.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, contact.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, documentdata.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, contact.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, documentdata.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, contact.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, documentdata.CreatedAtIsNil()) + predicates = append(predicates, contact.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, documentdata.CreatedAtNotNil()) + predicates = append(predicates, contact.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, documentdata.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, contact.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, documentdata.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, contact.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, documentdata.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, contact.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, documentdata.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, contact.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, documentdata.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, contact.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, documentdata.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, contact.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, documentdata.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, contact.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, documentdata.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, contact.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, documentdata.UpdatedAtIsNil()) + predicates = append(predicates, contact.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, documentdata.UpdatedAtNotNil()) + predicates = append(predicates, contact.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, documentdata.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, contact.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, documentdata.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, contact.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, documentdata.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, contact.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, documentdata.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, contact.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, documentdata.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, contact.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, documentdata.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, contact.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, documentdata.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, contact.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, documentdata.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, contact.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, documentdata.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, contact.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, documentdata.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, contact.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, documentdata.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, contact.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, documentdata.CreatedByIsNil()) + predicates = append(predicates, contact.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, documentdata.CreatedByNotNil()) + predicates = append(predicates, contact.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, documentdata.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, contact.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, documentdata.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, contact.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, documentdata.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, contact.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, documentdata.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, contact.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, documentdata.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, contact.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, documentdata.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, contact.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, documentdata.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, contact.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, documentdata.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, contact.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, documentdata.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, contact.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, documentdata.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, contact.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, documentdata.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, contact.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, documentdata.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, contact.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, documentdata.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, contact.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, documentdata.UpdatedByIsNil()) + predicates = append(predicates, contact.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, documentdata.UpdatedByNotNil()) + predicates = append(predicates, contact.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, documentdata.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, contact.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, documentdata.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, contact.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, documentdata.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, contact.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, documentdata.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, contact.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, documentdata.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, contact.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, documentdata.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, contact.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, documentdata.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, contact.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, documentdata.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, contact.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, documentdata.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, contact.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, documentdata.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, contact.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, documentdata.DeletedAtIsNil()) + predicates = append(predicates, contact.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, documentdata.DeletedAtNotNil()) + predicates = append(predicates, contact.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, documentdata.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, contact.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, documentdata.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, contact.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, documentdata.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, contact.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, documentdata.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, contact.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, documentdata.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, contact.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, documentdata.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, contact.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, documentdata.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, contact.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, documentdata.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, contact.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, documentdata.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, contact.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, documentdata.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, contact.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, documentdata.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, contact.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, documentdata.DeletedByIsNil()) + predicates = append(predicates, contact.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, documentdata.DeletedByNotNil()) + predicates = append(predicates, contact.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, documentdata.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, contact.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, documentdata.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, contact.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.OwnerID != nil { - predicates = append(predicates, documentdata.OwnerIDEQ(*i.OwnerID)) + predicates = append(predicates, contact.OwnerIDEQ(*i.OwnerID)) } if i.OwnerIDNEQ != nil { - predicates = append(predicates, documentdata.OwnerIDNEQ(*i.OwnerIDNEQ)) + predicates = append(predicates, contact.OwnerIDNEQ(*i.OwnerIDNEQ)) } if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, documentdata.OwnerIDIn(i.OwnerIDIn...)) + predicates = append(predicates, contact.OwnerIDIn(i.OwnerIDIn...)) } if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, documentdata.OwnerIDNotIn(i.OwnerIDNotIn...)) + predicates = append(predicates, contact.OwnerIDNotIn(i.OwnerIDNotIn...)) } if i.OwnerIDGT != nil { - predicates = append(predicates, documentdata.OwnerIDGT(*i.OwnerIDGT)) + predicates = append(predicates, contact.OwnerIDGT(*i.OwnerIDGT)) } if i.OwnerIDGTE != nil { - predicates = append(predicates, documentdata.OwnerIDGTE(*i.OwnerIDGTE)) + predicates = append(predicates, contact.OwnerIDGTE(*i.OwnerIDGTE)) } if i.OwnerIDLT != nil { - predicates = append(predicates, documentdata.OwnerIDLT(*i.OwnerIDLT)) + predicates = append(predicates, contact.OwnerIDLT(*i.OwnerIDLT)) } if i.OwnerIDLTE != nil { - predicates = append(predicates, documentdata.OwnerIDLTE(*i.OwnerIDLTE)) + predicates = append(predicates, contact.OwnerIDLTE(*i.OwnerIDLTE)) } if i.OwnerIDContains != nil { - predicates = append(predicates, documentdata.OwnerIDContains(*i.OwnerIDContains)) + predicates = append(predicates, contact.OwnerIDContains(*i.OwnerIDContains)) } if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, documentdata.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + predicates = append(predicates, contact.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, documentdata.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + predicates = append(predicates, contact.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } if i.OwnerIDIsNil { - predicates = append(predicates, documentdata.OwnerIDIsNil()) + predicates = append(predicates, contact.OwnerIDIsNil()) } if i.OwnerIDNotNil { - predicates = append(predicates, documentdata.OwnerIDNotNil()) + predicates = append(predicates, contact.OwnerIDNotNil()) } if i.OwnerIDEqualFold != nil { - predicates = append(predicates, documentdata.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + predicates = append(predicates, contact.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } if i.OwnerIDContainsFold != nil { - predicates = append(predicates, documentdata.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + predicates = append(predicates, contact.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if i.TemplateID != nil { - predicates = append(predicates, documentdata.TemplateIDEQ(*i.TemplateID)) + if i.FullName != nil { + predicates = append(predicates, contact.FullNameEQ(*i.FullName)) } - if i.TemplateIDNEQ != nil { - predicates = append(predicates, documentdata.TemplateIDNEQ(*i.TemplateIDNEQ)) + if i.FullNameNEQ != nil { + predicates = append(predicates, contact.FullNameNEQ(*i.FullNameNEQ)) } - if len(i.TemplateIDIn) > 0 { - predicates = append(predicates, documentdata.TemplateIDIn(i.TemplateIDIn...)) + if len(i.FullNameIn) > 0 { + predicates = append(predicates, contact.FullNameIn(i.FullNameIn...)) } - if len(i.TemplateIDNotIn) > 0 { - predicates = append(predicates, documentdata.TemplateIDNotIn(i.TemplateIDNotIn...)) + if len(i.FullNameNotIn) > 0 { + predicates = append(predicates, contact.FullNameNotIn(i.FullNameNotIn...)) } - if i.TemplateIDGT != nil { - predicates = append(predicates, documentdata.TemplateIDGT(*i.TemplateIDGT)) + if i.FullNameGT != nil { + predicates = append(predicates, contact.FullNameGT(*i.FullNameGT)) } - if i.TemplateIDGTE != nil { - predicates = append(predicates, documentdata.TemplateIDGTE(*i.TemplateIDGTE)) + if i.FullNameGTE != nil { + predicates = append(predicates, contact.FullNameGTE(*i.FullNameGTE)) } - if i.TemplateIDLT != nil { - predicates = append(predicates, documentdata.TemplateIDLT(*i.TemplateIDLT)) + if i.FullNameLT != nil { + predicates = append(predicates, contact.FullNameLT(*i.FullNameLT)) } - if i.TemplateIDLTE != nil { - predicates = append(predicates, documentdata.TemplateIDLTE(*i.TemplateIDLTE)) + if i.FullNameLTE != nil { + predicates = append(predicates, contact.FullNameLTE(*i.FullNameLTE)) } - if i.TemplateIDContains != nil { - predicates = append(predicates, documentdata.TemplateIDContains(*i.TemplateIDContains)) + if i.FullNameContains != nil { + predicates = append(predicates, contact.FullNameContains(*i.FullNameContains)) } - if i.TemplateIDHasPrefix != nil { - predicates = append(predicates, documentdata.TemplateIDHasPrefix(*i.TemplateIDHasPrefix)) + if i.FullNameHasPrefix != nil { + predicates = append(predicates, contact.FullNameHasPrefix(*i.FullNameHasPrefix)) } - if i.TemplateIDHasSuffix != nil { - predicates = append(predicates, documentdata.TemplateIDHasSuffix(*i.TemplateIDHasSuffix)) + if i.FullNameHasSuffix != nil { + predicates = append(predicates, contact.FullNameHasSuffix(*i.FullNameHasSuffix)) } - if i.TemplateIDEqualFold != nil { - predicates = append(predicates, documentdata.TemplateIDEqualFold(*i.TemplateIDEqualFold)) + if i.FullNameEqualFold != nil { + predicates = append(predicates, contact.FullNameEqualFold(*i.FullNameEqualFold)) } - if i.TemplateIDContainsFold != nil { - predicates = append(predicates, documentdata.TemplateIDContainsFold(*i.TemplateIDContainsFold)) + if i.FullNameContainsFold != nil { + predicates = append(predicates, contact.FullNameContainsFold(*i.FullNameContainsFold)) + } + if i.Title != nil { + predicates = append(predicates, contact.TitleEQ(*i.Title)) + } + if i.TitleNEQ != nil { + predicates = append(predicates, contact.TitleNEQ(*i.TitleNEQ)) + } + if len(i.TitleIn) > 0 { + predicates = append(predicates, contact.TitleIn(i.TitleIn...)) + } + if len(i.TitleNotIn) > 0 { + predicates = append(predicates, contact.TitleNotIn(i.TitleNotIn...)) + } + if i.TitleGT != nil { + predicates = append(predicates, contact.TitleGT(*i.TitleGT)) + } + if i.TitleGTE != nil { + predicates = append(predicates, contact.TitleGTE(*i.TitleGTE)) + } + if i.TitleLT != nil { + predicates = append(predicates, contact.TitleLT(*i.TitleLT)) + } + if i.TitleLTE != nil { + predicates = append(predicates, contact.TitleLTE(*i.TitleLTE)) + } + if i.TitleContains != nil { + predicates = append(predicates, contact.TitleContains(*i.TitleContains)) + } + if i.TitleHasPrefix != nil { + predicates = append(predicates, contact.TitleHasPrefix(*i.TitleHasPrefix)) + } + if i.TitleHasSuffix != nil { + predicates = append(predicates, contact.TitleHasSuffix(*i.TitleHasSuffix)) + } + if i.TitleIsNil { + predicates = append(predicates, contact.TitleIsNil()) + } + if i.TitleNotNil { + predicates = append(predicates, contact.TitleNotNil()) + } + if i.TitleEqualFold != nil { + predicates = append(predicates, contact.TitleEqualFold(*i.TitleEqualFold)) + } + if i.TitleContainsFold != nil { + predicates = append(predicates, contact.TitleContainsFold(*i.TitleContainsFold)) + } + if i.Company != nil { + predicates = append(predicates, contact.CompanyEQ(*i.Company)) + } + if i.CompanyNEQ != nil { + predicates = append(predicates, contact.CompanyNEQ(*i.CompanyNEQ)) + } + if len(i.CompanyIn) > 0 { + predicates = append(predicates, contact.CompanyIn(i.CompanyIn...)) + } + if len(i.CompanyNotIn) > 0 { + predicates = append(predicates, contact.CompanyNotIn(i.CompanyNotIn...)) + } + if i.CompanyGT != nil { + predicates = append(predicates, contact.CompanyGT(*i.CompanyGT)) + } + if i.CompanyGTE != nil { + predicates = append(predicates, contact.CompanyGTE(*i.CompanyGTE)) + } + if i.CompanyLT != nil { + predicates = append(predicates, contact.CompanyLT(*i.CompanyLT)) + } + if i.CompanyLTE != nil { + predicates = append(predicates, contact.CompanyLTE(*i.CompanyLTE)) + } + if i.CompanyContains != nil { + predicates = append(predicates, contact.CompanyContains(*i.CompanyContains)) + } + if i.CompanyHasPrefix != nil { + predicates = append(predicates, contact.CompanyHasPrefix(*i.CompanyHasPrefix)) + } + if i.CompanyHasSuffix != nil { + predicates = append(predicates, contact.CompanyHasSuffix(*i.CompanyHasSuffix)) + } + if i.CompanyIsNil { + predicates = append(predicates, contact.CompanyIsNil()) + } + if i.CompanyNotNil { + predicates = append(predicates, contact.CompanyNotNil()) + } + if i.CompanyEqualFold != nil { + predicates = append(predicates, contact.CompanyEqualFold(*i.CompanyEqualFold)) + } + if i.CompanyContainsFold != nil { + predicates = append(predicates, contact.CompanyContainsFold(*i.CompanyContainsFold)) + } + if i.Email != nil { + predicates = append(predicates, contact.EmailEQ(*i.Email)) + } + if i.EmailNEQ != nil { + predicates = append(predicates, contact.EmailNEQ(*i.EmailNEQ)) + } + if len(i.EmailIn) > 0 { + predicates = append(predicates, contact.EmailIn(i.EmailIn...)) + } + if len(i.EmailNotIn) > 0 { + predicates = append(predicates, contact.EmailNotIn(i.EmailNotIn...)) + } + if i.EmailGT != nil { + predicates = append(predicates, contact.EmailGT(*i.EmailGT)) + } + if i.EmailGTE != nil { + predicates = append(predicates, contact.EmailGTE(*i.EmailGTE)) + } + if i.EmailLT != nil { + predicates = append(predicates, contact.EmailLT(*i.EmailLT)) + } + if i.EmailLTE != nil { + predicates = append(predicates, contact.EmailLTE(*i.EmailLTE)) + } + if i.EmailContains != nil { + predicates = append(predicates, contact.EmailContains(*i.EmailContains)) + } + if i.EmailHasPrefix != nil { + predicates = append(predicates, contact.EmailHasPrefix(*i.EmailHasPrefix)) + } + if i.EmailHasSuffix != nil { + predicates = append(predicates, contact.EmailHasSuffix(*i.EmailHasSuffix)) + } + if i.EmailIsNil { + predicates = append(predicates, contact.EmailIsNil()) + } + if i.EmailNotNil { + predicates = append(predicates, contact.EmailNotNil()) + } + if i.EmailEqualFold != nil { + predicates = append(predicates, contact.EmailEqualFold(*i.EmailEqualFold)) + } + if i.EmailContainsFold != nil { + predicates = append(predicates, contact.EmailContainsFold(*i.EmailContainsFold)) + } + if i.PhoneNumber != nil { + predicates = append(predicates, contact.PhoneNumberEQ(*i.PhoneNumber)) + } + if i.PhoneNumberNEQ != nil { + predicates = append(predicates, contact.PhoneNumberNEQ(*i.PhoneNumberNEQ)) + } + if len(i.PhoneNumberIn) > 0 { + predicates = append(predicates, contact.PhoneNumberIn(i.PhoneNumberIn...)) + } + if len(i.PhoneNumberNotIn) > 0 { + predicates = append(predicates, contact.PhoneNumberNotIn(i.PhoneNumberNotIn...)) + } + if i.PhoneNumberGT != nil { + predicates = append(predicates, contact.PhoneNumberGT(*i.PhoneNumberGT)) + } + if i.PhoneNumberGTE != nil { + predicates = append(predicates, contact.PhoneNumberGTE(*i.PhoneNumberGTE)) + } + if i.PhoneNumberLT != nil { + predicates = append(predicates, contact.PhoneNumberLT(*i.PhoneNumberLT)) + } + if i.PhoneNumberLTE != nil { + predicates = append(predicates, contact.PhoneNumberLTE(*i.PhoneNumberLTE)) + } + if i.PhoneNumberContains != nil { + predicates = append(predicates, contact.PhoneNumberContains(*i.PhoneNumberContains)) + } + if i.PhoneNumberHasPrefix != nil { + predicates = append(predicates, contact.PhoneNumberHasPrefix(*i.PhoneNumberHasPrefix)) + } + if i.PhoneNumberHasSuffix != nil { + predicates = append(predicates, contact.PhoneNumberHasSuffix(*i.PhoneNumberHasSuffix)) + } + if i.PhoneNumberIsNil { + predicates = append(predicates, contact.PhoneNumberIsNil()) + } + if i.PhoneNumberNotNil { + predicates = append(predicates, contact.PhoneNumberNotNil()) + } + if i.PhoneNumberEqualFold != nil { + predicates = append(predicates, contact.PhoneNumberEqualFold(*i.PhoneNumberEqualFold)) + } + if i.PhoneNumberContainsFold != nil { + predicates = append(predicates, contact.PhoneNumberContainsFold(*i.PhoneNumberContainsFold)) + } + if i.Address != nil { + predicates = append(predicates, contact.AddressEQ(*i.Address)) + } + if i.AddressNEQ != nil { + predicates = append(predicates, contact.AddressNEQ(*i.AddressNEQ)) + } + if len(i.AddressIn) > 0 { + predicates = append(predicates, contact.AddressIn(i.AddressIn...)) + } + if len(i.AddressNotIn) > 0 { + predicates = append(predicates, contact.AddressNotIn(i.AddressNotIn...)) + } + if i.AddressGT != nil { + predicates = append(predicates, contact.AddressGT(*i.AddressGT)) + } + if i.AddressGTE != nil { + predicates = append(predicates, contact.AddressGTE(*i.AddressGTE)) + } + if i.AddressLT != nil { + predicates = append(predicates, contact.AddressLT(*i.AddressLT)) + } + if i.AddressLTE != nil { + predicates = append(predicates, contact.AddressLTE(*i.AddressLTE)) + } + if i.AddressContains != nil { + predicates = append(predicates, contact.AddressContains(*i.AddressContains)) + } + if i.AddressHasPrefix != nil { + predicates = append(predicates, contact.AddressHasPrefix(*i.AddressHasPrefix)) + } + if i.AddressHasSuffix != nil { + predicates = append(predicates, contact.AddressHasSuffix(*i.AddressHasSuffix)) + } + if i.AddressIsNil { + predicates = append(predicates, contact.AddressIsNil()) + } + if i.AddressNotNil { + predicates = append(predicates, contact.AddressNotNil()) + } + if i.AddressEqualFold != nil { + predicates = append(predicates, contact.AddressEqualFold(*i.AddressEqualFold)) + } + if i.AddressContainsFold != nil { + predicates = append(predicates, contact.AddressContainsFold(*i.AddressContainsFold)) + } + if i.Status != nil { + predicates = append(predicates, contact.StatusEQ(*i.Status)) + } + if i.StatusNEQ != nil { + predicates = append(predicates, contact.StatusNEQ(*i.StatusNEQ)) + } + if len(i.StatusIn) > 0 { + predicates = append(predicates, contact.StatusIn(i.StatusIn...)) + } + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, contact.StatusNotIn(i.StatusNotIn...)) } if i.HasOwner != nil { - p := documentdata.HasOwner() + p := contact.HasOwner() if !*i.HasOwner { - p = documentdata.Not(p) + p = contact.Not(p) } predicates = append(predicates, p) } @@ -3271,48 +3435,30 @@ func (i *DocumentDataWhereInput) P() (predicate.DocumentData, error) { } with = append(with, p) } - predicates = append(predicates, documentdata.HasOwnerWith(with...)) - } - if i.HasTemplate != nil { - p := documentdata.HasTemplate() - if !*i.HasTemplate { - p = documentdata.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasTemplateWith) > 0 { - with := make([]predicate.Template, 0, len(i.HasTemplateWith)) - for _, w := range i.HasTemplateWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasTemplateWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, documentdata.HasTemplateWith(with...)) + predicates = append(predicates, contact.HasOwnerWith(with...)) } - if i.HasEntity != nil { - p := documentdata.HasEntity() - if !*i.HasEntity { - p = documentdata.Not(p) + if i.HasEntities != nil { + p := contact.HasEntities() + if !*i.HasEntities { + p = contact.Not(p) } predicates = append(predicates, p) } - if len(i.HasEntityWith) > 0 { - with := make([]predicate.Entity, 0, len(i.HasEntityWith)) - for _, w := range i.HasEntityWith { + if len(i.HasEntitiesWith) > 0 { + with := make([]predicate.Entity, 0, len(i.HasEntitiesWith)) + for _, w := range i.HasEntitiesWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntityWith'", err) + return nil, fmt.Errorf("%w: field 'HasEntitiesWith'", err) } with = append(with, p) } - predicates = append(predicates, documentdata.HasEntityWith(with...)) + predicates = append(predicates, contact.HasEntitiesWith(with...)) } if i.HasFiles != nil { - p := documentdata.HasFiles() + p := contact.HasFiles() if !*i.HasFiles { - p = documentdata.Not(p) + p = contact.Not(p) } predicates = append(predicates, p) } @@ -3325,24 +3471,24 @@ func (i *DocumentDataWhereInput) P() (predicate.DocumentData, error) { } with = append(with, p) } - predicates = append(predicates, documentdata.HasFilesWith(with...)) + predicates = append(predicates, contact.HasFilesWith(with...)) } switch len(predicates) { case 0: - return nil, ErrEmptyDocumentDataWhereInput + return nil, ErrEmptyContactWhereInput case 1: return predicates[0], nil default: - return documentdata.And(predicates...), nil + return contact.And(predicates...), nil } } -// DocumentDataHistoryWhereInput represents a where input for filtering DocumentDataHistory queries. -type DocumentDataHistoryWhereInput struct { - Predicates []predicate.DocumentDataHistory `json:"-"` - Not *DocumentDataHistoryWhereInput `json:"not,omitempty"` - Or []*DocumentDataHistoryWhereInput `json:"or,omitempty"` - And []*DocumentDataHistoryWhereInput `json:"and,omitempty"` +// ContactHistoryWhereInput represents a where input for filtering ContactHistory queries. +type ContactHistoryWhereInput struct { + Predicates []predicate.ContactHistory `json:"-"` + Not *ContactHistoryWhereInput `json:"not,omitempty"` + Or []*ContactHistoryWhereInput `json:"or,omitempty"` + And []*ContactHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -3493,35 +3639,126 @@ type DocumentDataHistoryWhereInput struct { OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` - // "template_id" field predicates. - TemplateID *string `json:"templateID,omitempty"` - TemplateIDNEQ *string `json:"templateIDNEQ,omitempty"` - TemplateIDIn []string `json:"templateIDIn,omitempty"` - TemplateIDNotIn []string `json:"templateIDNotIn,omitempty"` - TemplateIDGT *string `json:"templateIDGT,omitempty"` - TemplateIDGTE *string `json:"templateIDGTE,omitempty"` - TemplateIDLT *string `json:"templateIDLT,omitempty"` - TemplateIDLTE *string `json:"templateIDLTE,omitempty"` - TemplateIDContains *string `json:"templateIDContains,omitempty"` - TemplateIDHasPrefix *string `json:"templateIDHasPrefix,omitempty"` - TemplateIDHasSuffix *string `json:"templateIDHasSuffix,omitempty"` - TemplateIDEqualFold *string `json:"templateIDEqualFold,omitempty"` - TemplateIDContainsFold *string `json:"templateIDContainsFold,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"` + FullNameGT *string `json:"fullNameGT,omitempty"` + FullNameGTE *string `json:"fullNameGTE,omitempty"` + FullNameLT *string `json:"fullNameLT,omitempty"` + FullNameLTE *string `json:"fullNameLTE,omitempty"` + FullNameContains *string `json:"fullNameContains,omitempty"` + FullNameHasPrefix *string `json:"fullNameHasPrefix,omitempty"` + FullNameHasSuffix *string `json:"fullNameHasSuffix,omitempty"` + FullNameEqualFold *string `json:"fullNameEqualFold,omitempty"` + FullNameContainsFold *string `json:"fullNameContainsFold,omitempty"` + + // "title" field predicates. + Title *string `json:"title,omitempty"` + TitleNEQ *string `json:"titleNEQ,omitempty"` + TitleIn []string `json:"titleIn,omitempty"` + TitleNotIn []string `json:"titleNotIn,omitempty"` + TitleGT *string `json:"titleGT,omitempty"` + TitleGTE *string `json:"titleGTE,omitempty"` + TitleLT *string `json:"titleLT,omitempty"` + TitleLTE *string `json:"titleLTE,omitempty"` + TitleContains *string `json:"titleContains,omitempty"` + TitleHasPrefix *string `json:"titleHasPrefix,omitempty"` + TitleHasSuffix *string `json:"titleHasSuffix,omitempty"` + TitleIsNil bool `json:"titleIsNil,omitempty"` + TitleNotNil bool `json:"titleNotNil,omitempty"` + TitleEqualFold *string `json:"titleEqualFold,omitempty"` + TitleContainsFold *string `json:"titleContainsFold,omitempty"` + + // "company" field predicates. + Company *string `json:"company,omitempty"` + CompanyNEQ *string `json:"companyNEQ,omitempty"` + CompanyIn []string `json:"companyIn,omitempty"` + CompanyNotIn []string `json:"companyNotIn,omitempty"` + CompanyGT *string `json:"companyGT,omitempty"` + CompanyGTE *string `json:"companyGTE,omitempty"` + CompanyLT *string `json:"companyLT,omitempty"` + CompanyLTE *string `json:"companyLTE,omitempty"` + CompanyContains *string `json:"companyContains,omitempty"` + CompanyHasPrefix *string `json:"companyHasPrefix,omitempty"` + CompanyHasSuffix *string `json:"companyHasSuffix,omitempty"` + CompanyIsNil bool `json:"companyIsNil,omitempty"` + CompanyNotNil bool `json:"companyNotNil,omitempty"` + CompanyEqualFold *string `json:"companyEqualFold,omitempty"` + CompanyContainsFold *string `json:"companyContainsFold,omitempty"` + + // "email" field predicates. + Email *string `json:"email,omitempty"` + EmailNEQ *string `json:"emailNEQ,omitempty"` + EmailIn []string `json:"emailIn,omitempty"` + EmailNotIn []string `json:"emailNotIn,omitempty"` + EmailGT *string `json:"emailGT,omitempty"` + EmailGTE *string `json:"emailGTE,omitempty"` + EmailLT *string `json:"emailLT,omitempty"` + EmailLTE *string `json:"emailLTE,omitempty"` + EmailContains *string `json:"emailContains,omitempty"` + EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` + EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` + EmailIsNil bool `json:"emailIsNil,omitempty"` + EmailNotNil bool `json:"emailNotNil,omitempty"` + EmailEqualFold *string `json:"emailEqualFold,omitempty"` + EmailContainsFold *string `json:"emailContainsFold,omitempty"` + + // "phone_number" field predicates. + PhoneNumber *string `json:"phoneNumber,omitempty"` + PhoneNumberNEQ *string `json:"phoneNumberNEQ,omitempty"` + PhoneNumberIn []string `json:"phoneNumberIn,omitempty"` + PhoneNumberNotIn []string `json:"phoneNumberNotIn,omitempty"` + PhoneNumberGT *string `json:"phoneNumberGT,omitempty"` + PhoneNumberGTE *string `json:"phoneNumberGTE,omitempty"` + PhoneNumberLT *string `json:"phoneNumberLT,omitempty"` + PhoneNumberLTE *string `json:"phoneNumberLTE,omitempty"` + PhoneNumberContains *string `json:"phoneNumberContains,omitempty"` + PhoneNumberHasPrefix *string `json:"phoneNumberHasPrefix,omitempty"` + PhoneNumberHasSuffix *string `json:"phoneNumberHasSuffix,omitempty"` + PhoneNumberIsNil bool `json:"phoneNumberIsNil,omitempty"` + PhoneNumberNotNil bool `json:"phoneNumberNotNil,omitempty"` + PhoneNumberEqualFold *string `json:"phoneNumberEqualFold,omitempty"` + PhoneNumberContainsFold *string `json:"phoneNumberContainsFold,omitempty"` + + // "address" field predicates. + Address *string `json:"address,omitempty"` + AddressNEQ *string `json:"addressNEQ,omitempty"` + AddressIn []string `json:"addressIn,omitempty"` + AddressNotIn []string `json:"addressNotIn,omitempty"` + AddressGT *string `json:"addressGT,omitempty"` + AddressGTE *string `json:"addressGTE,omitempty"` + AddressLT *string `json:"addressLT,omitempty"` + AddressLTE *string `json:"addressLTE,omitempty"` + AddressContains *string `json:"addressContains,omitempty"` + AddressHasPrefix *string `json:"addressHasPrefix,omitempty"` + AddressHasSuffix *string `json:"addressHasSuffix,omitempty"` + AddressIsNil bool `json:"addressIsNil,omitempty"` + AddressNotNil bool `json:"addressNotNil,omitempty"` + AddressEqualFold *string `json:"addressEqualFold,omitempty"` + AddressContainsFold *string `json:"addressContainsFold,omitempty"` + + // "status" field predicates. + Status *enums.UserStatus `json:"status,omitempty"` + StatusNEQ *enums.UserStatus `json:"statusNEQ,omitempty"` + StatusIn []enums.UserStatus `json:"statusIn,omitempty"` + StatusNotIn []enums.UserStatus `json:"statusNotIn,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *DocumentDataHistoryWhereInput) AddPredicates(predicates ...predicate.DocumentDataHistory) { +func (i *ContactHistoryWhereInput) AddPredicates(predicates ...predicate.ContactHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the DocumentDataHistoryWhereInput filter on the DocumentDataHistoryQuery builder. -func (i *DocumentDataHistoryWhereInput) Filter(q *DocumentDataHistoryQuery) (*DocumentDataHistoryQuery, error) { +// Filter applies the ContactHistoryWhereInput filter on the ContactHistoryQuery builder. +func (i *ContactHistoryWhereInput) Filter(q *ContactHistoryQuery) (*ContactHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyDocumentDataHistoryWhereInput { + if err == ErrEmptyContactHistoryWhereInput { return q, nil } return nil, err @@ -3529,19 +3766,19 @@ func (i *DocumentDataHistoryWhereInput) Filter(q *DocumentDataHistoryQuery) (*Do return q.Where(p), nil } -// ErrEmptyDocumentDataHistoryWhereInput is returned in case the DocumentDataHistoryWhereInput is empty. -var ErrEmptyDocumentDataHistoryWhereInput = errors.New("generated: empty predicate DocumentDataHistoryWhereInput") +// ErrEmptyContactHistoryWhereInput is returned in case the ContactHistoryWhereInput is empty. +var ErrEmptyContactHistoryWhereInput = errors.New("generated: empty predicate ContactHistoryWhereInput") -// P returns a predicate for filtering documentdatahistories. +// P returns a predicate for filtering contacthistories. // An error is returned if the input is empty or invalid. -func (i *DocumentDataHistoryWhereInput) P() (predicate.DocumentDataHistory, error) { - var predicates []predicate.DocumentDataHistory +func (i *ContactHistoryWhereInput) P() (predicate.ContactHistory, error) { + var predicates []predicate.ContactHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, documentdatahistory.Not(p)) + predicates = append(predicates, contacthistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -3551,7 +3788,7 @@ func (i *DocumentDataHistoryWhereInput) P() (predicate.DocumentDataHistory, erro } predicates = append(predicates, p) case n > 1: - or := make([]predicate.DocumentDataHistory, 0, n) + or := make([]predicate.ContactHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -3559,7 +3796,7 @@ func (i *DocumentDataHistoryWhereInput) P() (predicate.DocumentDataHistory, erro } or = append(or, p) } - predicates = append(predicates, documentdatahistory.Or(or...)) + predicates = append(predicates, contacthistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -3569,7 +3806,7 @@ func (i *DocumentDataHistoryWhereInput) P() (predicate.DocumentDataHistory, erro } predicates = append(predicates, p) case n > 1: - and := make([]predicate.DocumentDataHistory, 0, n) + and := make([]predicate.ContactHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -3577,677 +3814,1010 @@ func (i *DocumentDataHistoryWhereInput) P() (predicate.DocumentDataHistory, erro } and = append(and, p) } - predicates = append(predicates, documentdatahistory.And(and...)) + predicates = append(predicates, contacthistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, documentdatahistory.IDEQ(*i.ID)) + predicates = append(predicates, contacthistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, documentdatahistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, contacthistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, documentdatahistory.IDIn(i.IDIn...)) + predicates = append(predicates, contacthistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, documentdatahistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, contacthistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, documentdatahistory.IDGT(*i.IDGT)) + predicates = append(predicates, contacthistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, documentdatahistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, contacthistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, documentdatahistory.IDLT(*i.IDLT)) + predicates = append(predicates, contacthistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, documentdatahistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, contacthistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, documentdatahistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, contacthistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, documentdatahistory.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, contacthistory.IDContainsFold(*i.IDContainsFold)) } if i.HistoryTime != nil { - predicates = append(predicates, documentdatahistory.HistoryTimeEQ(*i.HistoryTime)) + predicates = append(predicates, contacthistory.HistoryTimeEQ(*i.HistoryTime)) } if i.HistoryTimeNEQ != nil { - predicates = append(predicates, documentdatahistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + predicates = append(predicates, contacthistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) } if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, documentdatahistory.HistoryTimeIn(i.HistoryTimeIn...)) + predicates = append(predicates, contacthistory.HistoryTimeIn(i.HistoryTimeIn...)) } if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, documentdatahistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + predicates = append(predicates, contacthistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) } if i.HistoryTimeGT != nil { - predicates = append(predicates, documentdatahistory.HistoryTimeGT(*i.HistoryTimeGT)) + predicates = append(predicates, contacthistory.HistoryTimeGT(*i.HistoryTimeGT)) } if i.HistoryTimeGTE != nil { - predicates = append(predicates, documentdatahistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + predicates = append(predicates, contacthistory.HistoryTimeGTE(*i.HistoryTimeGTE)) } if i.HistoryTimeLT != nil { - predicates = append(predicates, documentdatahistory.HistoryTimeLT(*i.HistoryTimeLT)) + predicates = append(predicates, contacthistory.HistoryTimeLT(*i.HistoryTimeLT)) } if i.HistoryTimeLTE != nil { - predicates = append(predicates, documentdatahistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + predicates = append(predicates, contacthistory.HistoryTimeLTE(*i.HistoryTimeLTE)) } if i.Ref != nil { - predicates = append(predicates, documentdatahistory.RefEQ(*i.Ref)) + predicates = append(predicates, contacthistory.RefEQ(*i.Ref)) } if i.RefNEQ != nil { - predicates = append(predicates, documentdatahistory.RefNEQ(*i.RefNEQ)) + predicates = append(predicates, contacthistory.RefNEQ(*i.RefNEQ)) } if len(i.RefIn) > 0 { - predicates = append(predicates, documentdatahistory.RefIn(i.RefIn...)) + predicates = append(predicates, contacthistory.RefIn(i.RefIn...)) } if len(i.RefNotIn) > 0 { - predicates = append(predicates, documentdatahistory.RefNotIn(i.RefNotIn...)) + predicates = append(predicates, contacthistory.RefNotIn(i.RefNotIn...)) } if i.RefGT != nil { - predicates = append(predicates, documentdatahistory.RefGT(*i.RefGT)) + predicates = append(predicates, contacthistory.RefGT(*i.RefGT)) } if i.RefGTE != nil { - predicates = append(predicates, documentdatahistory.RefGTE(*i.RefGTE)) + predicates = append(predicates, contacthistory.RefGTE(*i.RefGTE)) } if i.RefLT != nil { - predicates = append(predicates, documentdatahistory.RefLT(*i.RefLT)) + predicates = append(predicates, contacthistory.RefLT(*i.RefLT)) } if i.RefLTE != nil { - predicates = append(predicates, documentdatahistory.RefLTE(*i.RefLTE)) + predicates = append(predicates, contacthistory.RefLTE(*i.RefLTE)) } if i.RefContains != nil { - predicates = append(predicates, documentdatahistory.RefContains(*i.RefContains)) + predicates = append(predicates, contacthistory.RefContains(*i.RefContains)) } if i.RefHasPrefix != nil { - predicates = append(predicates, documentdatahistory.RefHasPrefix(*i.RefHasPrefix)) + predicates = append(predicates, contacthistory.RefHasPrefix(*i.RefHasPrefix)) } if i.RefHasSuffix != nil { - predicates = append(predicates, documentdatahistory.RefHasSuffix(*i.RefHasSuffix)) + predicates = append(predicates, contacthistory.RefHasSuffix(*i.RefHasSuffix)) } if i.RefIsNil { - predicates = append(predicates, documentdatahistory.RefIsNil()) + predicates = append(predicates, contacthistory.RefIsNil()) } if i.RefNotNil { - predicates = append(predicates, documentdatahistory.RefNotNil()) + predicates = append(predicates, contacthistory.RefNotNil()) } if i.RefEqualFold != nil { - predicates = append(predicates, documentdatahistory.RefEqualFold(*i.RefEqualFold)) + predicates = append(predicates, contacthistory.RefEqualFold(*i.RefEqualFold)) } if i.RefContainsFold != nil { - predicates = append(predicates, documentdatahistory.RefContainsFold(*i.RefContainsFold)) + predicates = append(predicates, contacthistory.RefContainsFold(*i.RefContainsFold)) } if i.Operation != nil { - predicates = append(predicates, documentdatahistory.OperationEQ(*i.Operation)) + predicates = append(predicates, contacthistory.OperationEQ(*i.Operation)) } if i.OperationNEQ != nil { - predicates = append(predicates, documentdatahistory.OperationNEQ(*i.OperationNEQ)) + predicates = append(predicates, contacthistory.OperationNEQ(*i.OperationNEQ)) } if len(i.OperationIn) > 0 { - predicates = append(predicates, documentdatahistory.OperationIn(i.OperationIn...)) + predicates = append(predicates, contacthistory.OperationIn(i.OperationIn...)) } if len(i.OperationNotIn) > 0 { - predicates = append(predicates, documentdatahistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, contacthistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, documentdatahistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, contacthistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, documentdatahistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, contacthistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, documentdatahistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, contacthistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, documentdatahistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, contacthistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, documentdatahistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, contacthistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, documentdatahistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, contacthistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, documentdatahistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, contacthistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, documentdatahistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, contacthistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, documentdatahistory.CreatedAtIsNil()) + predicates = append(predicates, contacthistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, documentdatahistory.CreatedAtNotNil()) + predicates = append(predicates, contacthistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, documentdatahistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, contacthistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, documentdatahistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, contacthistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, documentdatahistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, contacthistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, documentdatahistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, contacthistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, documentdatahistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, contacthistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, documentdatahistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, contacthistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, documentdatahistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, contacthistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, documentdatahistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, contacthistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, documentdatahistory.UpdatedAtIsNil()) + predicates = append(predicates, contacthistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, documentdatahistory.UpdatedAtNotNil()) + predicates = append(predicates, contacthistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, documentdatahistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, contacthistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, documentdatahistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, contacthistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, documentdatahistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, contacthistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, documentdatahistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, contacthistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, documentdatahistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, contacthistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, documentdatahistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, contacthistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, documentdatahistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, contacthistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, documentdatahistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, contacthistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, documentdatahistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, contacthistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, documentdatahistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, contacthistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, documentdatahistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, contacthistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, documentdatahistory.CreatedByIsNil()) + predicates = append(predicates, contacthistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, documentdatahistory.CreatedByNotNil()) + predicates = append(predicates, contacthistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, documentdatahistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, contacthistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, documentdatahistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, contacthistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, documentdatahistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, contacthistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, documentdatahistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, contacthistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, documentdatahistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, contacthistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, documentdatahistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, contacthistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, documentdatahistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, contacthistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, documentdatahistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, contacthistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, documentdatahistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, contacthistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, documentdatahistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, contacthistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, documentdatahistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, contacthistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, documentdatahistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, contacthistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, documentdatahistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, contacthistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, documentdatahistory.UpdatedByIsNil()) + predicates = append(predicates, contacthistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, documentdatahistory.UpdatedByNotNil()) + predicates = append(predicates, contacthistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, documentdatahistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, contacthistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, documentdatahistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, contacthistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, documentdatahistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, contacthistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, documentdatahistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, contacthistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, documentdatahistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, contacthistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, documentdatahistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, contacthistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, documentdatahistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, contacthistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, documentdatahistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, contacthistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, documentdatahistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, contacthistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, documentdatahistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, contacthistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, documentdatahistory.DeletedAtIsNil()) + predicates = append(predicates, contacthistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, documentdatahistory.DeletedAtNotNil()) + predicates = append(predicates, contacthistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, documentdatahistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, contacthistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, documentdatahistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, contacthistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, documentdatahistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, contacthistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, documentdatahistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, contacthistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, documentdatahistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, contacthistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, documentdatahistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, contacthistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, documentdatahistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, contacthistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, documentdatahistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, contacthistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, documentdatahistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, contacthistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, documentdatahistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, contacthistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, documentdatahistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, contacthistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, documentdatahistory.DeletedByIsNil()) + predicates = append(predicates, contacthistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, documentdatahistory.DeletedByNotNil()) + predicates = append(predicates, contacthistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, documentdatahistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, contacthistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, documentdatahistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, contacthistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.OwnerID != nil { - predicates = append(predicates, documentdatahistory.OwnerIDEQ(*i.OwnerID)) + predicates = append(predicates, contacthistory.OwnerIDEQ(*i.OwnerID)) } if i.OwnerIDNEQ != nil { - predicates = append(predicates, documentdatahistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + predicates = append(predicates, contacthistory.OwnerIDNEQ(*i.OwnerIDNEQ)) } if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, documentdatahistory.OwnerIDIn(i.OwnerIDIn...)) + predicates = append(predicates, contacthistory.OwnerIDIn(i.OwnerIDIn...)) } if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, documentdatahistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + predicates = append(predicates, contacthistory.OwnerIDNotIn(i.OwnerIDNotIn...)) } if i.OwnerIDGT != nil { - predicates = append(predicates, documentdatahistory.OwnerIDGT(*i.OwnerIDGT)) + predicates = append(predicates, contacthistory.OwnerIDGT(*i.OwnerIDGT)) } if i.OwnerIDGTE != nil { - predicates = append(predicates, documentdatahistory.OwnerIDGTE(*i.OwnerIDGTE)) + predicates = append(predicates, contacthistory.OwnerIDGTE(*i.OwnerIDGTE)) } if i.OwnerIDLT != nil { - predicates = append(predicates, documentdatahistory.OwnerIDLT(*i.OwnerIDLT)) + predicates = append(predicates, contacthistory.OwnerIDLT(*i.OwnerIDLT)) } if i.OwnerIDLTE != nil { - predicates = append(predicates, documentdatahistory.OwnerIDLTE(*i.OwnerIDLTE)) + predicates = append(predicates, contacthistory.OwnerIDLTE(*i.OwnerIDLTE)) } if i.OwnerIDContains != nil { - predicates = append(predicates, documentdatahistory.OwnerIDContains(*i.OwnerIDContains)) + predicates = append(predicates, contacthistory.OwnerIDContains(*i.OwnerIDContains)) } if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, documentdatahistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + predicates = append(predicates, contacthistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, documentdatahistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + predicates = append(predicates, contacthistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } if i.OwnerIDIsNil { - predicates = append(predicates, documentdatahistory.OwnerIDIsNil()) + predicates = append(predicates, contacthistory.OwnerIDIsNil()) } if i.OwnerIDNotNil { - predicates = append(predicates, documentdatahistory.OwnerIDNotNil()) + predicates = append(predicates, contacthistory.OwnerIDNotNil()) } if i.OwnerIDEqualFold != nil { - predicates = append(predicates, documentdatahistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + predicates = append(predicates, contacthistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } if i.OwnerIDContainsFold != nil { - predicates = append(predicates, documentdatahistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + predicates = append(predicates, contacthistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if i.TemplateID != nil { - predicates = append(predicates, documentdatahistory.TemplateIDEQ(*i.TemplateID)) + if i.FullName != nil { + predicates = append(predicates, contacthistory.FullNameEQ(*i.FullName)) } - if i.TemplateIDNEQ != nil { - predicates = append(predicates, documentdatahistory.TemplateIDNEQ(*i.TemplateIDNEQ)) + if i.FullNameNEQ != nil { + predicates = append(predicates, contacthistory.FullNameNEQ(*i.FullNameNEQ)) } - if len(i.TemplateIDIn) > 0 { - predicates = append(predicates, documentdatahistory.TemplateIDIn(i.TemplateIDIn...)) + if len(i.FullNameIn) > 0 { + predicates = append(predicates, contacthistory.FullNameIn(i.FullNameIn...)) } - if len(i.TemplateIDNotIn) > 0 { - predicates = append(predicates, documentdatahistory.TemplateIDNotIn(i.TemplateIDNotIn...)) + if len(i.FullNameNotIn) > 0 { + predicates = append(predicates, contacthistory.FullNameNotIn(i.FullNameNotIn...)) } - if i.TemplateIDGT != nil { - predicates = append(predicates, documentdatahistory.TemplateIDGT(*i.TemplateIDGT)) + if i.FullNameGT != nil { + predicates = append(predicates, contacthistory.FullNameGT(*i.FullNameGT)) } - if i.TemplateIDGTE != nil { - predicates = append(predicates, documentdatahistory.TemplateIDGTE(*i.TemplateIDGTE)) + if i.FullNameGTE != nil { + predicates = append(predicates, contacthistory.FullNameGTE(*i.FullNameGTE)) } - if i.TemplateIDLT != nil { - predicates = append(predicates, documentdatahistory.TemplateIDLT(*i.TemplateIDLT)) + if i.FullNameLT != nil { + predicates = append(predicates, contacthistory.FullNameLT(*i.FullNameLT)) } - if i.TemplateIDLTE != nil { - predicates = append(predicates, documentdatahistory.TemplateIDLTE(*i.TemplateIDLTE)) + if i.FullNameLTE != nil { + predicates = append(predicates, contacthistory.FullNameLTE(*i.FullNameLTE)) } - if i.TemplateIDContains != nil { - predicates = append(predicates, documentdatahistory.TemplateIDContains(*i.TemplateIDContains)) + if i.FullNameContains != nil { + predicates = append(predicates, contacthistory.FullNameContains(*i.FullNameContains)) } - if i.TemplateIDHasPrefix != nil { - predicates = append(predicates, documentdatahistory.TemplateIDHasPrefix(*i.TemplateIDHasPrefix)) + if i.FullNameHasPrefix != nil { + predicates = append(predicates, contacthistory.FullNameHasPrefix(*i.FullNameHasPrefix)) } - if i.TemplateIDHasSuffix != nil { - predicates = append(predicates, documentdatahistory.TemplateIDHasSuffix(*i.TemplateIDHasSuffix)) + if i.FullNameHasSuffix != nil { + predicates = append(predicates, contacthistory.FullNameHasSuffix(*i.FullNameHasSuffix)) } - if i.TemplateIDEqualFold != nil { - predicates = append(predicates, documentdatahistory.TemplateIDEqualFold(*i.TemplateIDEqualFold)) + if i.FullNameEqualFold != nil { + predicates = append(predicates, contacthistory.FullNameEqualFold(*i.FullNameEqualFold)) } - if i.TemplateIDContainsFold != nil { - predicates = append(predicates, documentdatahistory.TemplateIDContainsFold(*i.TemplateIDContainsFold)) + if i.FullNameContainsFold != nil { + predicates = append(predicates, contacthistory.FullNameContainsFold(*i.FullNameContainsFold)) } - - switch len(predicates) { - case 0: - return nil, ErrEmptyDocumentDataHistoryWhereInput - case 1: - return predicates[0], nil - default: - return documentdatahistory.And(predicates...), nil + if i.Title != nil { + predicates = append(predicates, contacthistory.TitleEQ(*i.Title)) + } + if i.TitleNEQ != nil { + predicates = append(predicates, contacthistory.TitleNEQ(*i.TitleNEQ)) + } + if len(i.TitleIn) > 0 { + predicates = append(predicates, contacthistory.TitleIn(i.TitleIn...)) + } + if len(i.TitleNotIn) > 0 { + predicates = append(predicates, contacthistory.TitleNotIn(i.TitleNotIn...)) + } + if i.TitleGT != nil { + predicates = append(predicates, contacthistory.TitleGT(*i.TitleGT)) + } + if i.TitleGTE != nil { + predicates = append(predicates, contacthistory.TitleGTE(*i.TitleGTE)) + } + if i.TitleLT != nil { + predicates = append(predicates, contacthistory.TitleLT(*i.TitleLT)) + } + if i.TitleLTE != nil { + predicates = append(predicates, contacthistory.TitleLTE(*i.TitleLTE)) + } + if i.TitleContains != nil { + predicates = append(predicates, contacthistory.TitleContains(*i.TitleContains)) + } + if i.TitleHasPrefix != nil { + predicates = append(predicates, contacthistory.TitleHasPrefix(*i.TitleHasPrefix)) + } + if i.TitleHasSuffix != nil { + predicates = append(predicates, contacthistory.TitleHasSuffix(*i.TitleHasSuffix)) + } + if i.TitleIsNil { + predicates = append(predicates, contacthistory.TitleIsNil()) + } + if i.TitleNotNil { + predicates = append(predicates, contacthistory.TitleNotNil()) + } + if i.TitleEqualFold != nil { + predicates = append(predicates, contacthistory.TitleEqualFold(*i.TitleEqualFold)) + } + if i.TitleContainsFold != nil { + predicates = append(predicates, contacthistory.TitleContainsFold(*i.TitleContainsFold)) + } + if i.Company != nil { + predicates = append(predicates, contacthistory.CompanyEQ(*i.Company)) + } + if i.CompanyNEQ != nil { + predicates = append(predicates, contacthistory.CompanyNEQ(*i.CompanyNEQ)) + } + if len(i.CompanyIn) > 0 { + predicates = append(predicates, contacthistory.CompanyIn(i.CompanyIn...)) + } + if len(i.CompanyNotIn) > 0 { + predicates = append(predicates, contacthistory.CompanyNotIn(i.CompanyNotIn...)) + } + if i.CompanyGT != nil { + predicates = append(predicates, contacthistory.CompanyGT(*i.CompanyGT)) + } + if i.CompanyGTE != nil { + predicates = append(predicates, contacthistory.CompanyGTE(*i.CompanyGTE)) + } + if i.CompanyLT != nil { + predicates = append(predicates, contacthistory.CompanyLT(*i.CompanyLT)) + } + if i.CompanyLTE != nil { + predicates = append(predicates, contacthistory.CompanyLTE(*i.CompanyLTE)) + } + if i.CompanyContains != nil { + predicates = append(predicates, contacthistory.CompanyContains(*i.CompanyContains)) + } + if i.CompanyHasPrefix != nil { + predicates = append(predicates, contacthistory.CompanyHasPrefix(*i.CompanyHasPrefix)) + } + if i.CompanyHasSuffix != nil { + predicates = append(predicates, contacthistory.CompanyHasSuffix(*i.CompanyHasSuffix)) + } + if i.CompanyIsNil { + predicates = append(predicates, contacthistory.CompanyIsNil()) + } + if i.CompanyNotNil { + predicates = append(predicates, contacthistory.CompanyNotNil()) + } + if i.CompanyEqualFold != nil { + predicates = append(predicates, contacthistory.CompanyEqualFold(*i.CompanyEqualFold)) + } + if i.CompanyContainsFold != nil { + predicates = append(predicates, contacthistory.CompanyContainsFold(*i.CompanyContainsFold)) + } + if i.Email != nil { + predicates = append(predicates, contacthistory.EmailEQ(*i.Email)) + } + if i.EmailNEQ != nil { + predicates = append(predicates, contacthistory.EmailNEQ(*i.EmailNEQ)) + } + if len(i.EmailIn) > 0 { + predicates = append(predicates, contacthistory.EmailIn(i.EmailIn...)) + } + if len(i.EmailNotIn) > 0 { + predicates = append(predicates, contacthistory.EmailNotIn(i.EmailNotIn...)) + } + if i.EmailGT != nil { + predicates = append(predicates, contacthistory.EmailGT(*i.EmailGT)) + } + if i.EmailGTE != nil { + predicates = append(predicates, contacthistory.EmailGTE(*i.EmailGTE)) + } + if i.EmailLT != nil { + predicates = append(predicates, contacthistory.EmailLT(*i.EmailLT)) + } + if i.EmailLTE != nil { + predicates = append(predicates, contacthistory.EmailLTE(*i.EmailLTE)) + } + if i.EmailContains != nil { + predicates = append(predicates, contacthistory.EmailContains(*i.EmailContains)) + } + if i.EmailHasPrefix != nil { + predicates = append(predicates, contacthistory.EmailHasPrefix(*i.EmailHasPrefix)) + } + if i.EmailHasSuffix != nil { + predicates = append(predicates, contacthistory.EmailHasSuffix(*i.EmailHasSuffix)) + } + if i.EmailIsNil { + predicates = append(predicates, contacthistory.EmailIsNil()) + } + if i.EmailNotNil { + predicates = append(predicates, contacthistory.EmailNotNil()) + } + if i.EmailEqualFold != nil { + predicates = append(predicates, contacthistory.EmailEqualFold(*i.EmailEqualFold)) + } + if i.EmailContainsFold != nil { + predicates = append(predicates, contacthistory.EmailContainsFold(*i.EmailContainsFold)) + } + if i.PhoneNumber != nil { + predicates = append(predicates, contacthistory.PhoneNumberEQ(*i.PhoneNumber)) + } + if i.PhoneNumberNEQ != nil { + predicates = append(predicates, contacthistory.PhoneNumberNEQ(*i.PhoneNumberNEQ)) + } + if len(i.PhoneNumberIn) > 0 { + predicates = append(predicates, contacthistory.PhoneNumberIn(i.PhoneNumberIn...)) + } + if len(i.PhoneNumberNotIn) > 0 { + predicates = append(predicates, contacthistory.PhoneNumberNotIn(i.PhoneNumberNotIn...)) + } + if i.PhoneNumberGT != nil { + predicates = append(predicates, contacthistory.PhoneNumberGT(*i.PhoneNumberGT)) + } + if i.PhoneNumberGTE != nil { + predicates = append(predicates, contacthistory.PhoneNumberGTE(*i.PhoneNumberGTE)) + } + if i.PhoneNumberLT != nil { + predicates = append(predicates, contacthistory.PhoneNumberLT(*i.PhoneNumberLT)) + } + if i.PhoneNumberLTE != nil { + predicates = append(predicates, contacthistory.PhoneNumberLTE(*i.PhoneNumberLTE)) + } + if i.PhoneNumberContains != nil { + predicates = append(predicates, contacthistory.PhoneNumberContains(*i.PhoneNumberContains)) + } + if i.PhoneNumberHasPrefix != nil { + predicates = append(predicates, contacthistory.PhoneNumberHasPrefix(*i.PhoneNumberHasPrefix)) + } + if i.PhoneNumberHasSuffix != nil { + predicates = append(predicates, contacthistory.PhoneNumberHasSuffix(*i.PhoneNumberHasSuffix)) + } + if i.PhoneNumberIsNil { + predicates = append(predicates, contacthistory.PhoneNumberIsNil()) + } + if i.PhoneNumberNotNil { + predicates = append(predicates, contacthistory.PhoneNumberNotNil()) + } + if i.PhoneNumberEqualFold != nil { + predicates = append(predicates, contacthistory.PhoneNumberEqualFold(*i.PhoneNumberEqualFold)) + } + if i.PhoneNumberContainsFold != nil { + predicates = append(predicates, contacthistory.PhoneNumberContainsFold(*i.PhoneNumberContainsFold)) + } + if i.Address != nil { + predicates = append(predicates, contacthistory.AddressEQ(*i.Address)) + } + if i.AddressNEQ != nil { + predicates = append(predicates, contacthistory.AddressNEQ(*i.AddressNEQ)) + } + if len(i.AddressIn) > 0 { + predicates = append(predicates, contacthistory.AddressIn(i.AddressIn...)) + } + if len(i.AddressNotIn) > 0 { + predicates = append(predicates, contacthistory.AddressNotIn(i.AddressNotIn...)) + } + if i.AddressGT != nil { + predicates = append(predicates, contacthistory.AddressGT(*i.AddressGT)) + } + if i.AddressGTE != nil { + predicates = append(predicates, contacthistory.AddressGTE(*i.AddressGTE)) + } + if i.AddressLT != nil { + predicates = append(predicates, contacthistory.AddressLT(*i.AddressLT)) + } + if i.AddressLTE != nil { + predicates = append(predicates, contacthistory.AddressLTE(*i.AddressLTE)) + } + if i.AddressContains != nil { + predicates = append(predicates, contacthistory.AddressContains(*i.AddressContains)) + } + if i.AddressHasPrefix != nil { + predicates = append(predicates, contacthistory.AddressHasPrefix(*i.AddressHasPrefix)) + } + if i.AddressHasSuffix != nil { + predicates = append(predicates, contacthistory.AddressHasSuffix(*i.AddressHasSuffix)) + } + if i.AddressIsNil { + predicates = append(predicates, contacthistory.AddressIsNil()) + } + if i.AddressNotNil { + predicates = append(predicates, contacthistory.AddressNotNil()) + } + if i.AddressEqualFold != nil { + predicates = append(predicates, contacthistory.AddressEqualFold(*i.AddressEqualFold)) + } + if i.AddressContainsFold != nil { + predicates = append(predicates, contacthistory.AddressContainsFold(*i.AddressContainsFold)) + } + if i.Status != nil { + predicates = append(predicates, contacthistory.StatusEQ(*i.Status)) + } + if i.StatusNEQ != nil { + predicates = append(predicates, contacthistory.StatusNEQ(*i.StatusNEQ)) + } + if len(i.StatusIn) > 0 { + predicates = append(predicates, contacthistory.StatusIn(i.StatusIn...)) + } + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, contacthistory.StatusNotIn(i.StatusNotIn...)) } -} - -// EntitlementWhereInput represents a where input for filtering Entitlement queries. -type EntitlementWhereInput struct { - Predicates []predicate.Entitlement `json:"-"` - Not *EntitlementWhereInput `json:"not,omitempty"` - Or []*EntitlementWhereInput `json:"or,omitempty"` - And []*EntitlementWhereInput `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"` - IDGT *string `json:"idGT,omitempty"` - IDGTE *string `json:"idGTE,omitempty"` - IDLT *string `json:"idLT,omitempty"` - IDLTE *string `json:"idLTE,omitempty"` - IDEqualFold *string `json:"idEqualFold,omitempty"` - IDContainsFold *string `json:"idContainsFold,omitempty"` - - // "created_at" field predicates. - CreatedAt *time.Time `json:"createdAt,omitempty"` - CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` - CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` - CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` - UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` - UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` - UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` - CreatedByGT *string `json:"createdByGT,omitempty"` - CreatedByGTE *string `json:"createdByGTE,omitempty"` - CreatedByLT *string `json:"createdByLT,omitempty"` - CreatedByLTE *string `json:"createdByLTE,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"` - UpdatedByGT *string `json:"updatedByGT,omitempty"` - UpdatedByGTE *string `json:"updatedByGTE,omitempty"` - UpdatedByLT *string `json:"updatedByLT,omitempty"` - UpdatedByLTE *string `json:"updatedByLTE,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"` - - // "deleted_at" field predicates. - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` - - // "deleted_by" field predicates. - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGT *string `json:"deletedByGT,omitempty"` - DeletedByGTE *string `json:"deletedByGTE,omitempty"` - DeletedByLT *string `json:"deletedByLT,omitempty"` - DeletedByLTE *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` - - // "plan_id" field predicates. - PlanID *string `json:"planID,omitempty"` - PlanIDNEQ *string `json:"planIDNEQ,omitempty"` - PlanIDIn []string `json:"planIDIn,omitempty"` - PlanIDNotIn []string `json:"planIDNotIn,omitempty"` - PlanIDGT *string `json:"planIDGT,omitempty"` - PlanIDGTE *string `json:"planIDGTE,omitempty"` - PlanIDLT *string `json:"planIDLT,omitempty"` - PlanIDLTE *string `json:"planIDLTE,omitempty"` - PlanIDContains *string `json:"planIDContains,omitempty"` - PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` - PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` - PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` - PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` - - // "organization_id" field predicates. - OrganizationID *string `json:"organizationID,omitempty"` - OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` - OrganizationIDIn []string `json:"organizationIDIn,omitempty"` - OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` - OrganizationIDGT *string `json:"organizationIDGT,omitempty"` - OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` - OrganizationIDLT *string `json:"organizationIDLT,omitempty"` - OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` - OrganizationIDContains *string `json:"organizationIDContains,omitempty"` - OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` - OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` - OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` - OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` - - // "external_customer_id" field predicates. - ExternalCustomerID *string `json:"externalCustomerID,omitempty"` - ExternalCustomerIDNEQ *string `json:"externalCustomerIDNEQ,omitempty"` - ExternalCustomerIDIn []string `json:"externalCustomerIDIn,omitempty"` - ExternalCustomerIDNotIn []string `json:"externalCustomerIDNotIn,omitempty"` - ExternalCustomerIDGT *string `json:"externalCustomerIDGT,omitempty"` - ExternalCustomerIDGTE *string `json:"externalCustomerIDGTE,omitempty"` - ExternalCustomerIDLT *string `json:"externalCustomerIDLT,omitempty"` - ExternalCustomerIDLTE *string `json:"externalCustomerIDLTE,omitempty"` - ExternalCustomerIDContains *string `json:"externalCustomerIDContains,omitempty"` - ExternalCustomerIDHasPrefix *string `json:"externalCustomerIDHasPrefix,omitempty"` - ExternalCustomerIDHasSuffix *string `json:"externalCustomerIDHasSuffix,omitempty"` - ExternalCustomerIDIsNil bool `json:"externalCustomerIDIsNil,omitempty"` - ExternalCustomerIDNotNil bool `json:"externalCustomerIDNotNil,omitempty"` - ExternalCustomerIDEqualFold *string `json:"externalCustomerIDEqualFold,omitempty"` - ExternalCustomerIDContainsFold *string `json:"externalCustomerIDContainsFold,omitempty"` - - // "external_subscription_id" field predicates. - ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` - ExternalSubscriptionIDNEQ *string `json:"externalSubscriptionIDNEQ,omitempty"` - ExternalSubscriptionIDIn []string `json:"externalSubscriptionIDIn,omitempty"` - ExternalSubscriptionIDNotIn []string `json:"externalSubscriptionIDNotIn,omitempty"` - ExternalSubscriptionIDGT *string `json:"externalSubscriptionIDGT,omitempty"` - ExternalSubscriptionIDGTE *string `json:"externalSubscriptionIDGTE,omitempty"` - ExternalSubscriptionIDLT *string `json:"externalSubscriptionIDLT,omitempty"` - ExternalSubscriptionIDLTE *string `json:"externalSubscriptionIDLTE,omitempty"` - ExternalSubscriptionIDContains *string `json:"externalSubscriptionIDContains,omitempty"` - ExternalSubscriptionIDHasPrefix *string `json:"externalSubscriptionIDHasPrefix,omitempty"` - ExternalSubscriptionIDHasSuffix *string `json:"externalSubscriptionIDHasSuffix,omitempty"` - ExternalSubscriptionIDIsNil bool `json:"externalSubscriptionIDIsNil,omitempty"` - ExternalSubscriptionIDNotNil bool `json:"externalSubscriptionIDNotNil,omitempty"` - ExternalSubscriptionIDEqualFold *string `json:"externalSubscriptionIDEqualFold,omitempty"` - ExternalSubscriptionIDContainsFold *string `json:"externalSubscriptionIDContainsFold,omitempty"` - // "expires" field predicates. - Expires *bool `json:"expires,omitempty"` - ExpiresNEQ *bool `json:"expiresNEQ,omitempty"` + switch len(predicates) { + case 0: + return nil, ErrEmptyContactHistoryWhereInput + case 1: + return predicates[0], nil + default: + return contacthistory.And(predicates...), nil + } +} - // "expires_at" field predicates. - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - ExpiresAtNEQ *time.Time `json:"expiresAtNEQ,omitempty"` - ExpiresAtIn []time.Time `json:"expiresAtIn,omitempty"` - ExpiresAtNotIn []time.Time `json:"expiresAtNotIn,omitempty"` - ExpiresAtGT *time.Time `json:"expiresAtGT,omitempty"` - ExpiresAtGTE *time.Time `json:"expiresAtGTE,omitempty"` - ExpiresAtLT *time.Time `json:"expiresAtLT,omitempty"` - ExpiresAtLTE *time.Time `json:"expiresAtLTE,omitempty"` - ExpiresAtIsNil bool `json:"expiresAtIsNil,omitempty"` - ExpiresAtNotNil bool `json:"expiresAtNotNil,omitempty"` +// ControlWhereInput represents a where input for filtering Control queries. +type ControlWhereInput struct { + Predicates []predicate.Control `json:"-"` + Not *ControlWhereInput `json:"not,omitempty"` + Or []*ControlWhereInput `json:"or,omitempty"` + And []*ControlWhereInput `json:"and,omitempty"` - // "cancelled" field predicates. - Cancelled *bool `json:"cancelled,omitempty"` - CancelledNEQ *bool `json:"cancelledNEQ,omitempty"` + // "id" field predicates. + ID *string `json:"id,omitempty"` + IDNEQ *string `json:"idNEQ,omitempty"` + IDIn []string `json:"idIn,omitempty"` + IDNotIn []string `json:"idNotIn,omitempty"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` - // "owner" edge predicates. - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` - // "plan" edge predicates. - HasPlan *bool `json:"hasPlan,omitempty"` - HasPlanWith []*EntitlementPlanWhereInput `json:"hasPlanWith,omitempty"` + // "updated_at" field predicates. + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` - // "organization" edge predicates. - HasOrganization *bool `json:"hasOrganization,omitempty"` - HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` - // "events" edge predicates. - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` + + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + + // "control_type" field predicates. + ControlType *string `json:"controlType,omitempty"` + ControlTypeNEQ *string `json:"controlTypeNEQ,omitempty"` + ControlTypeIn []string `json:"controlTypeIn,omitempty"` + ControlTypeNotIn []string `json:"controlTypeNotIn,omitempty"` + ControlTypeGT *string `json:"controlTypeGT,omitempty"` + ControlTypeGTE *string `json:"controlTypeGTE,omitempty"` + ControlTypeLT *string `json:"controlTypeLT,omitempty"` + ControlTypeLTE *string `json:"controlTypeLTE,omitempty"` + ControlTypeContains *string `json:"controlTypeContains,omitempty"` + ControlTypeHasPrefix *string `json:"controlTypeHasPrefix,omitempty"` + ControlTypeHasSuffix *string `json:"controlTypeHasSuffix,omitempty"` + ControlTypeIsNil bool `json:"controlTypeIsNil,omitempty"` + ControlTypeNotNil bool `json:"controlTypeNotNil,omitempty"` + ControlTypeEqualFold *string `json:"controlTypeEqualFold,omitempty"` + ControlTypeContainsFold *string `json:"controlTypeContainsFold,omitempty"` + + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil bool `json:"versionIsNil,omitempty"` + VersionNotNil bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + + // "control_number" field predicates. + ControlNumber *string `json:"controlNumber,omitempty"` + ControlNumberNEQ *string `json:"controlNumberNEQ,omitempty"` + ControlNumberIn []string `json:"controlNumberIn,omitempty"` + ControlNumberNotIn []string `json:"controlNumberNotIn,omitempty"` + ControlNumberGT *string `json:"controlNumberGT,omitempty"` + ControlNumberGTE *string `json:"controlNumberGTE,omitempty"` + ControlNumberLT *string `json:"controlNumberLT,omitempty"` + ControlNumberLTE *string `json:"controlNumberLTE,omitempty"` + ControlNumberContains *string `json:"controlNumberContains,omitempty"` + ControlNumberHasPrefix *string `json:"controlNumberHasPrefix,omitempty"` + ControlNumberHasSuffix *string `json:"controlNumberHasSuffix,omitempty"` + ControlNumberIsNil bool `json:"controlNumberIsNil,omitempty"` + ControlNumberNotNil bool `json:"controlNumberNotNil,omitempty"` + ControlNumberEqualFold *string `json:"controlNumberEqualFold,omitempty"` + ControlNumberContainsFold *string `json:"controlNumberContainsFold,omitempty"` + + // "family" field predicates. + Family *string `json:"family,omitempty"` + FamilyNEQ *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGT *string `json:"familyGT,omitempty"` + FamilyGTE *string `json:"familyGTE,omitempty"` + FamilyLT *string `json:"familyLT,omitempty"` + FamilyLTE *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil bool `json:"familyIsNil,omitempty"` + FamilyNotNil bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + + // "class" field predicates. + Class *string `json:"class,omitempty"` + ClassNEQ *string `json:"classNEQ,omitempty"` + ClassIn []string `json:"classIn,omitempty"` + ClassNotIn []string `json:"classNotIn,omitempty"` + ClassGT *string `json:"classGT,omitempty"` + ClassGTE *string `json:"classGTE,omitempty"` + ClassLT *string `json:"classLT,omitempty"` + ClassLTE *string `json:"classLTE,omitempty"` + ClassContains *string `json:"classContains,omitempty"` + ClassHasPrefix *string `json:"classHasPrefix,omitempty"` + ClassHasSuffix *string `json:"classHasSuffix,omitempty"` + ClassIsNil bool `json:"classIsNil,omitempty"` + ClassNotNil bool `json:"classNotNil,omitempty"` + ClassEqualFold *string `json:"classEqualFold,omitempty"` + ClassContainsFold *string `json:"classContainsFold,omitempty"` + + // "source" field predicates. + Source *string `json:"source,omitempty"` + SourceNEQ *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGT *string `json:"sourceGT,omitempty"` + SourceGTE *string `json:"sourceGTE,omitempty"` + SourceLT *string `json:"sourceLT,omitempty"` + SourceLTE *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil bool `json:"sourceIsNil,omitempty"` + SourceNotNil bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + + // "satisfies" field predicates. + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNEQ *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGT *string `json:"satisfiesGT,omitempty"` + SatisfiesGTE *string `json:"satisfiesGTE,omitempty"` + SatisfiesLT *string `json:"satisfiesLT,omitempty"` + SatisfiesLTE *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` + + // "mapped_frameworks" field predicates. + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + MappedFrameworksNEQ *string `json:"mappedFrameworksNEQ,omitempty"` + MappedFrameworksIn []string `json:"mappedFrameworksIn,omitempty"` + MappedFrameworksNotIn []string `json:"mappedFrameworksNotIn,omitempty"` + MappedFrameworksGT *string `json:"mappedFrameworksGT,omitempty"` + MappedFrameworksGTE *string `json:"mappedFrameworksGTE,omitempty"` + MappedFrameworksLT *string `json:"mappedFrameworksLT,omitempty"` + MappedFrameworksLTE *string `json:"mappedFrameworksLTE,omitempty"` + MappedFrameworksContains *string `json:"mappedFrameworksContains,omitempty"` + MappedFrameworksHasPrefix *string `json:"mappedFrameworksHasPrefix,omitempty"` + MappedFrameworksHasSuffix *string `json:"mappedFrameworksHasSuffix,omitempty"` + MappedFrameworksIsNil bool `json:"mappedFrameworksIsNil,omitempty"` + MappedFrameworksNotNil bool `json:"mappedFrameworksNotNil,omitempty"` + MappedFrameworksEqualFold *string `json:"mappedFrameworksEqualFold,omitempty"` + MappedFrameworksContainsFold *string `json:"mappedFrameworksContainsFold,omitempty"` + + // "procedures" edge predicates. + HasProcedures *bool `json:"hasProcedures,omitempty"` + HasProceduresWith []*ProcedureWhereInput `json:"hasProceduresWith,omitempty"` + + // "subcontrols" edge predicates. + HasSubcontrols *bool `json:"hasSubcontrols,omitempty"` + HasSubcontrolsWith []*SubcontrolWhereInput `json:"hasSubcontrolsWith,omitempty"` + + // "controlobjectives" edge predicates. + HasControlobjectives *bool `json:"hasControlobjectives,omitempty"` + HasControlobjectivesWith []*ControlObjectiveWhereInput `json:"hasControlobjectivesWith,omitempty"` + + // "standard" edge predicates. + HasStandard *bool `json:"hasStandard,omitempty"` + HasStandardWith []*StandardWhereInput `json:"hasStandardWith,omitempty"` + + // "narratives" edge predicates. + HasNarratives *bool `json:"hasNarratives,omitempty"` + HasNarrativesWith []*NarrativeWhereInput `json:"hasNarrativesWith,omitempty"` + + // "risks" edge predicates. + HasRisks *bool `json:"hasRisks,omitempty"` + HasRisksWith []*RiskWhereInput `json:"hasRisksWith,omitempty"` + + // "actionplans" edge predicates. + HasActionplans *bool `json:"hasActionplans,omitempty"` + HasActionplansWith []*ActionPlanWhereInput `json:"hasActionplansWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *EntitlementWhereInput) AddPredicates(predicates ...predicate.Entitlement) { +func (i *ControlWhereInput) AddPredicates(predicates ...predicate.Control) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the EntitlementWhereInput filter on the EntitlementQuery builder. -func (i *EntitlementWhereInput) Filter(q *EntitlementQuery) (*EntitlementQuery, error) { +// Filter applies the ControlWhereInput filter on the ControlQuery builder. +func (i *ControlWhereInput) Filter(q *ControlQuery) (*ControlQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyEntitlementWhereInput { + if err == ErrEmptyControlWhereInput { return q, nil } return nil, err @@ -4255,19 +4825,19 @@ func (i *EntitlementWhereInput) Filter(q *EntitlementQuery) (*EntitlementQuery, return q.Where(p), nil } -// ErrEmptyEntitlementWhereInput is returned in case the EntitlementWhereInput is empty. -var ErrEmptyEntitlementWhereInput = errors.New("generated: empty predicate EntitlementWhereInput") +// ErrEmptyControlWhereInput is returned in case the ControlWhereInput is empty. +var ErrEmptyControlWhereInput = errors.New("generated: empty predicate ControlWhereInput") -// P returns a predicate for filtering entitlements. +// P returns a predicate for filtering controls. // An error is returned if the input is empty or invalid. -func (i *EntitlementWhereInput) P() (predicate.Entitlement, error) { - var predicates []predicate.Entitlement +func (i *ControlWhereInput) P() (predicate.Control, error) { + var predicates []predicate.Control if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, entitlement.Not(p)) + predicates = append(predicates, control.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -4277,7 +4847,7 @@ func (i *EntitlementWhereInput) P() (predicate.Entitlement, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.Entitlement, 0, n) + or := make([]predicate.Control, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -4285,7 +4855,7 @@ func (i *EntitlementWhereInput) P() (predicate.Entitlement, error) { } or = append(or, p) } - predicates = append(predicates, entitlement.Or(or...)) + predicates = append(predicates, control.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -4295,7 +4865,7 @@ func (i *EntitlementWhereInput) P() (predicate.Entitlement, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.Entitlement, 0, n) + and := make([]predicate.Control, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -4303,608 +4873,896 @@ func (i *EntitlementWhereInput) P() (predicate.Entitlement, error) { } and = append(and, p) } - predicates = append(predicates, entitlement.And(and...)) + predicates = append(predicates, control.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, entitlement.IDEQ(*i.ID)) + predicates = append(predicates, control.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, entitlement.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, control.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, entitlement.IDIn(i.IDIn...)) + predicates = append(predicates, control.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, entitlement.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, control.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, entitlement.IDGT(*i.IDGT)) + predicates = append(predicates, control.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, entitlement.IDGTE(*i.IDGTE)) + predicates = append(predicates, control.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, entitlement.IDLT(*i.IDLT)) + predicates = append(predicates, control.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, entitlement.IDLTE(*i.IDLTE)) + predicates = append(predicates, control.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, entitlement.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, control.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, entitlement.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, control.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, entitlement.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, control.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, entitlement.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, control.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, entitlement.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, control.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, entitlement.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, control.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, entitlement.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, control.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, entitlement.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, control.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, entitlement.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, control.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, entitlement.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, control.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, entitlement.CreatedAtIsNil()) + predicates = append(predicates, control.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, entitlement.CreatedAtNotNil()) + predicates = append(predicates, control.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, entitlement.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, control.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, entitlement.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, control.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, entitlement.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, control.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, entitlement.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, control.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, entitlement.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, control.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, entitlement.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, control.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, entitlement.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, control.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, entitlement.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, control.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, entitlement.UpdatedAtIsNil()) + predicates = append(predicates, control.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, entitlement.UpdatedAtNotNil()) + predicates = append(predicates, control.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, entitlement.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, control.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, entitlement.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, control.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, entitlement.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, control.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, entitlement.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, control.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, entitlement.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, control.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, entitlement.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, control.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, entitlement.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, control.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, entitlement.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, control.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, entitlement.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, control.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, entitlement.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, control.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, entitlement.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, control.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, entitlement.CreatedByIsNil()) + predicates = append(predicates, control.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, entitlement.CreatedByNotNil()) + predicates = append(predicates, control.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, entitlement.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, control.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, entitlement.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, control.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, entitlement.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, control.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, entitlement.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, control.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, entitlement.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, control.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, entitlement.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, control.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, entitlement.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, control.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, entitlement.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, control.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, entitlement.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, control.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, entitlement.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, control.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, entitlement.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, control.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, entitlement.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, control.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, entitlement.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, control.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, entitlement.UpdatedByIsNil()) + predicates = append(predicates, control.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, entitlement.UpdatedByNotNil()) + predicates = append(predicates, control.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, entitlement.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, control.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, entitlement.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, control.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, entitlement.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, control.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, entitlement.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, control.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, entitlement.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, control.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, entitlement.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, control.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, entitlement.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, control.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, entitlement.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, control.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, entitlement.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, control.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, entitlement.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, control.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, entitlement.DeletedAtIsNil()) + predicates = append(predicates, control.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, entitlement.DeletedAtNotNil()) + predicates = append(predicates, control.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, entitlement.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, control.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, entitlement.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, control.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, entitlement.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, control.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, entitlement.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, control.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, entitlement.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, control.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, entitlement.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, control.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, entitlement.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, control.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, entitlement.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, control.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, entitlement.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, control.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, entitlement.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, control.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, entitlement.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, control.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, entitlement.DeletedByIsNil()) + predicates = append(predicates, control.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, entitlement.DeletedByNotNil()) + predicates = append(predicates, control.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, entitlement.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, control.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, entitlement.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, control.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.OwnerID != nil { - predicates = append(predicates, entitlement.OwnerIDEQ(*i.OwnerID)) + if i.Name != nil { + predicates = append(predicates, control.NameEQ(*i.Name)) } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, entitlement.OwnerIDNEQ(*i.OwnerIDNEQ)) + if i.NameNEQ != nil { + predicates = append(predicates, control.NameNEQ(*i.NameNEQ)) } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, entitlement.OwnerIDIn(i.OwnerIDIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, control.NameIn(i.NameIn...)) } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, entitlement.OwnerIDNotIn(i.OwnerIDNotIn...)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, control.NameNotIn(i.NameNotIn...)) } - if i.OwnerIDGT != nil { - predicates = append(predicates, entitlement.OwnerIDGT(*i.OwnerIDGT)) + if i.NameGT != nil { + predicates = append(predicates, control.NameGT(*i.NameGT)) } - if i.OwnerIDGTE != nil { - predicates = append(predicates, entitlement.OwnerIDGTE(*i.OwnerIDGTE)) + if i.NameGTE != nil { + predicates = append(predicates, control.NameGTE(*i.NameGTE)) } - if i.OwnerIDLT != nil { - predicates = append(predicates, entitlement.OwnerIDLT(*i.OwnerIDLT)) + if i.NameLT != nil { + predicates = append(predicates, control.NameLT(*i.NameLT)) } - if i.OwnerIDLTE != nil { - predicates = append(predicates, entitlement.OwnerIDLTE(*i.OwnerIDLTE)) + if i.NameLTE != nil { + predicates = append(predicates, control.NameLTE(*i.NameLTE)) } - if i.OwnerIDContains != nil { - predicates = append(predicates, entitlement.OwnerIDContains(*i.OwnerIDContains)) + if i.NameContains != nil { + predicates = append(predicates, control.NameContains(*i.NameContains)) } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, entitlement.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + if i.NameHasPrefix != nil { + predicates = append(predicates, control.NameHasPrefix(*i.NameHasPrefix)) } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, entitlement.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + if i.NameHasSuffix != nil { + predicates = append(predicates, control.NameHasSuffix(*i.NameHasSuffix)) } - if i.OwnerIDIsNil { - predicates = append(predicates, entitlement.OwnerIDIsNil()) + if i.NameEqualFold != nil { + predicates = append(predicates, control.NameEqualFold(*i.NameEqualFold)) } - if i.OwnerIDNotNil { - predicates = append(predicates, entitlement.OwnerIDNotNil()) + if i.NameContainsFold != nil { + predicates = append(predicates, control.NameContainsFold(*i.NameContainsFold)) } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, entitlement.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + if i.Description != nil { + predicates = append(predicates, control.DescriptionEQ(*i.Description)) } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, entitlement.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, control.DescriptionNEQ(*i.DescriptionNEQ)) } - if i.PlanID != nil { - predicates = append(predicates, entitlement.PlanIDEQ(*i.PlanID)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, control.DescriptionIn(i.DescriptionIn...)) } - if i.PlanIDNEQ != nil { - predicates = append(predicates, entitlement.PlanIDNEQ(*i.PlanIDNEQ)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, control.DescriptionNotIn(i.DescriptionNotIn...)) } - if len(i.PlanIDIn) > 0 { - predicates = append(predicates, entitlement.PlanIDIn(i.PlanIDIn...)) + if i.DescriptionGT != nil { + predicates = append(predicates, control.DescriptionGT(*i.DescriptionGT)) } - if len(i.PlanIDNotIn) > 0 { - predicates = append(predicates, entitlement.PlanIDNotIn(i.PlanIDNotIn...)) + if i.DescriptionGTE != nil { + predicates = append(predicates, control.DescriptionGTE(*i.DescriptionGTE)) } - if i.PlanIDGT != nil { - predicates = append(predicates, entitlement.PlanIDGT(*i.PlanIDGT)) + if i.DescriptionLT != nil { + predicates = append(predicates, control.DescriptionLT(*i.DescriptionLT)) } - if i.PlanIDGTE != nil { - predicates = append(predicates, entitlement.PlanIDGTE(*i.PlanIDGTE)) + if i.DescriptionLTE != nil { + predicates = append(predicates, control.DescriptionLTE(*i.DescriptionLTE)) } - if i.PlanIDLT != nil { - predicates = append(predicates, entitlement.PlanIDLT(*i.PlanIDLT)) + if i.DescriptionContains != nil { + predicates = append(predicates, control.DescriptionContains(*i.DescriptionContains)) } - if i.PlanIDLTE != nil { - predicates = append(predicates, entitlement.PlanIDLTE(*i.PlanIDLTE)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, control.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.PlanIDContains != nil { - predicates = append(predicates, entitlement.PlanIDContains(*i.PlanIDContains)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, control.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.PlanIDHasPrefix != nil { - predicates = append(predicates, entitlement.PlanIDHasPrefix(*i.PlanIDHasPrefix)) + if i.DescriptionIsNil { + predicates = append(predicates, control.DescriptionIsNil()) } - if i.PlanIDHasSuffix != nil { - predicates = append(predicates, entitlement.PlanIDHasSuffix(*i.PlanIDHasSuffix)) + if i.DescriptionNotNil { + predicates = append(predicates, control.DescriptionNotNil()) } - if i.PlanIDEqualFold != nil { - predicates = append(predicates, entitlement.PlanIDEqualFold(*i.PlanIDEqualFold)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, control.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.PlanIDContainsFold != nil { - predicates = append(predicates, entitlement.PlanIDContainsFold(*i.PlanIDContainsFold)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, control.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.OrganizationID != nil { - predicates = append(predicates, entitlement.OrganizationIDEQ(*i.OrganizationID)) + if i.Status != nil { + predicates = append(predicates, control.StatusEQ(*i.Status)) } - if i.OrganizationIDNEQ != nil { - predicates = append(predicates, entitlement.OrganizationIDNEQ(*i.OrganizationIDNEQ)) + if i.StatusNEQ != nil { + predicates = append(predicates, control.StatusNEQ(*i.StatusNEQ)) } - if len(i.OrganizationIDIn) > 0 { - predicates = append(predicates, entitlement.OrganizationIDIn(i.OrganizationIDIn...)) + if len(i.StatusIn) > 0 { + predicates = append(predicates, control.StatusIn(i.StatusIn...)) } - if len(i.OrganizationIDNotIn) > 0 { - predicates = append(predicates, entitlement.OrganizationIDNotIn(i.OrganizationIDNotIn...)) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, control.StatusNotIn(i.StatusNotIn...)) } - if i.OrganizationIDGT != nil { - predicates = append(predicates, entitlement.OrganizationIDGT(*i.OrganizationIDGT)) + if i.StatusGT != nil { + predicates = append(predicates, control.StatusGT(*i.StatusGT)) } - if i.OrganizationIDGTE != nil { - predicates = append(predicates, entitlement.OrganizationIDGTE(*i.OrganizationIDGTE)) + if i.StatusGTE != nil { + predicates = append(predicates, control.StatusGTE(*i.StatusGTE)) } - if i.OrganizationIDLT != nil { - predicates = append(predicates, entitlement.OrganizationIDLT(*i.OrganizationIDLT)) + if i.StatusLT != nil { + predicates = append(predicates, control.StatusLT(*i.StatusLT)) } - if i.OrganizationIDLTE != nil { - predicates = append(predicates, entitlement.OrganizationIDLTE(*i.OrganizationIDLTE)) + if i.StatusLTE != nil { + predicates = append(predicates, control.StatusLTE(*i.StatusLTE)) } - if i.OrganizationIDContains != nil { - predicates = append(predicates, entitlement.OrganizationIDContains(*i.OrganizationIDContains)) + if i.StatusContains != nil { + predicates = append(predicates, control.StatusContains(*i.StatusContains)) } - if i.OrganizationIDHasPrefix != nil { - predicates = append(predicates, entitlement.OrganizationIDHasPrefix(*i.OrganizationIDHasPrefix)) + if i.StatusHasPrefix != nil { + predicates = append(predicates, control.StatusHasPrefix(*i.StatusHasPrefix)) } - if i.OrganizationIDHasSuffix != nil { - predicates = append(predicates, entitlement.OrganizationIDHasSuffix(*i.OrganizationIDHasSuffix)) + if i.StatusHasSuffix != nil { + predicates = append(predicates, control.StatusHasSuffix(*i.StatusHasSuffix)) } - if i.OrganizationIDEqualFold != nil { - predicates = append(predicates, entitlement.OrganizationIDEqualFold(*i.OrganizationIDEqualFold)) + if i.StatusIsNil { + predicates = append(predicates, control.StatusIsNil()) } - if i.OrganizationIDContainsFold != nil { - predicates = append(predicates, entitlement.OrganizationIDContainsFold(*i.OrganizationIDContainsFold)) + if i.StatusNotNil { + predicates = append(predicates, control.StatusNotNil()) } - if i.ExternalCustomerID != nil { - predicates = append(predicates, entitlement.ExternalCustomerIDEQ(*i.ExternalCustomerID)) + if i.StatusEqualFold != nil { + predicates = append(predicates, control.StatusEqualFold(*i.StatusEqualFold)) } - if i.ExternalCustomerIDNEQ != nil { - predicates = append(predicates, entitlement.ExternalCustomerIDNEQ(*i.ExternalCustomerIDNEQ)) + if i.StatusContainsFold != nil { + predicates = append(predicates, control.StatusContainsFold(*i.StatusContainsFold)) } - if len(i.ExternalCustomerIDIn) > 0 { - predicates = append(predicates, entitlement.ExternalCustomerIDIn(i.ExternalCustomerIDIn...)) + if i.ControlType != nil { + predicates = append(predicates, control.ControlTypeEQ(*i.ControlType)) } - if len(i.ExternalCustomerIDNotIn) > 0 { - predicates = append(predicates, entitlement.ExternalCustomerIDNotIn(i.ExternalCustomerIDNotIn...)) + if i.ControlTypeNEQ != nil { + predicates = append(predicates, control.ControlTypeNEQ(*i.ControlTypeNEQ)) } - if i.ExternalCustomerIDGT != nil { - predicates = append(predicates, entitlement.ExternalCustomerIDGT(*i.ExternalCustomerIDGT)) + if len(i.ControlTypeIn) > 0 { + predicates = append(predicates, control.ControlTypeIn(i.ControlTypeIn...)) } - if i.ExternalCustomerIDGTE != nil { - predicates = append(predicates, entitlement.ExternalCustomerIDGTE(*i.ExternalCustomerIDGTE)) + if len(i.ControlTypeNotIn) > 0 { + predicates = append(predicates, control.ControlTypeNotIn(i.ControlTypeNotIn...)) } - if i.ExternalCustomerIDLT != nil { - predicates = append(predicates, entitlement.ExternalCustomerIDLT(*i.ExternalCustomerIDLT)) + if i.ControlTypeGT != nil { + predicates = append(predicates, control.ControlTypeGT(*i.ControlTypeGT)) } - if i.ExternalCustomerIDLTE != nil { - predicates = append(predicates, entitlement.ExternalCustomerIDLTE(*i.ExternalCustomerIDLTE)) + if i.ControlTypeGTE != nil { + predicates = append(predicates, control.ControlTypeGTE(*i.ControlTypeGTE)) } - if i.ExternalCustomerIDContains != nil { - predicates = append(predicates, entitlement.ExternalCustomerIDContains(*i.ExternalCustomerIDContains)) + if i.ControlTypeLT != nil { + predicates = append(predicates, control.ControlTypeLT(*i.ControlTypeLT)) } - if i.ExternalCustomerIDHasPrefix != nil { - predicates = append(predicates, entitlement.ExternalCustomerIDHasPrefix(*i.ExternalCustomerIDHasPrefix)) + if i.ControlTypeLTE != nil { + predicates = append(predicates, control.ControlTypeLTE(*i.ControlTypeLTE)) } - if i.ExternalCustomerIDHasSuffix != nil { - predicates = append(predicates, entitlement.ExternalCustomerIDHasSuffix(*i.ExternalCustomerIDHasSuffix)) + if i.ControlTypeContains != nil { + predicates = append(predicates, control.ControlTypeContains(*i.ControlTypeContains)) } - if i.ExternalCustomerIDIsNil { - predicates = append(predicates, entitlement.ExternalCustomerIDIsNil()) + if i.ControlTypeHasPrefix != nil { + predicates = append(predicates, control.ControlTypeHasPrefix(*i.ControlTypeHasPrefix)) } - if i.ExternalCustomerIDNotNil { - predicates = append(predicates, entitlement.ExternalCustomerIDNotNil()) + if i.ControlTypeHasSuffix != nil { + predicates = append(predicates, control.ControlTypeHasSuffix(*i.ControlTypeHasSuffix)) } - if i.ExternalCustomerIDEqualFold != nil { - predicates = append(predicates, entitlement.ExternalCustomerIDEqualFold(*i.ExternalCustomerIDEqualFold)) + if i.ControlTypeIsNil { + predicates = append(predicates, control.ControlTypeIsNil()) } - if i.ExternalCustomerIDContainsFold != nil { - predicates = append(predicates, entitlement.ExternalCustomerIDContainsFold(*i.ExternalCustomerIDContainsFold)) + if i.ControlTypeNotNil { + predicates = append(predicates, control.ControlTypeNotNil()) } - if i.ExternalSubscriptionID != nil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDEQ(*i.ExternalSubscriptionID)) + if i.ControlTypeEqualFold != nil { + predicates = append(predicates, control.ControlTypeEqualFold(*i.ControlTypeEqualFold)) } - if i.ExternalSubscriptionIDNEQ != nil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDNEQ(*i.ExternalSubscriptionIDNEQ)) + if i.ControlTypeContainsFold != nil { + predicates = append(predicates, control.ControlTypeContainsFold(*i.ControlTypeContainsFold)) } - if len(i.ExternalSubscriptionIDIn) > 0 { - predicates = append(predicates, entitlement.ExternalSubscriptionIDIn(i.ExternalSubscriptionIDIn...)) + if i.Version != nil { + predicates = append(predicates, control.VersionEQ(*i.Version)) } - if len(i.ExternalSubscriptionIDNotIn) > 0 { - predicates = append(predicates, entitlement.ExternalSubscriptionIDNotIn(i.ExternalSubscriptionIDNotIn...)) + if i.VersionNEQ != nil { + predicates = append(predicates, control.VersionNEQ(*i.VersionNEQ)) } - if i.ExternalSubscriptionIDGT != nil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDGT(*i.ExternalSubscriptionIDGT)) + if len(i.VersionIn) > 0 { + predicates = append(predicates, control.VersionIn(i.VersionIn...)) } - if i.ExternalSubscriptionIDGTE != nil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDGTE(*i.ExternalSubscriptionIDGTE)) + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, control.VersionNotIn(i.VersionNotIn...)) } - if i.ExternalSubscriptionIDLT != nil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDLT(*i.ExternalSubscriptionIDLT)) + if i.VersionGT != nil { + predicates = append(predicates, control.VersionGT(*i.VersionGT)) } - if i.ExternalSubscriptionIDLTE != nil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDLTE(*i.ExternalSubscriptionIDLTE)) + if i.VersionGTE != nil { + predicates = append(predicates, control.VersionGTE(*i.VersionGTE)) } - if i.ExternalSubscriptionIDContains != nil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDContains(*i.ExternalSubscriptionIDContains)) + if i.VersionLT != nil { + predicates = append(predicates, control.VersionLT(*i.VersionLT)) } - if i.ExternalSubscriptionIDHasPrefix != nil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDHasPrefix(*i.ExternalSubscriptionIDHasPrefix)) + if i.VersionLTE != nil { + predicates = append(predicates, control.VersionLTE(*i.VersionLTE)) } - if i.ExternalSubscriptionIDHasSuffix != nil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDHasSuffix(*i.ExternalSubscriptionIDHasSuffix)) + if i.VersionContains != nil { + predicates = append(predicates, control.VersionContains(*i.VersionContains)) } - if i.ExternalSubscriptionIDIsNil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDIsNil()) + if i.VersionHasPrefix != nil { + predicates = append(predicates, control.VersionHasPrefix(*i.VersionHasPrefix)) } - if i.ExternalSubscriptionIDNotNil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDNotNil()) + if i.VersionHasSuffix != nil { + predicates = append(predicates, control.VersionHasSuffix(*i.VersionHasSuffix)) } - if i.ExternalSubscriptionIDEqualFold != nil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDEqualFold(*i.ExternalSubscriptionIDEqualFold)) + if i.VersionIsNil { + predicates = append(predicates, control.VersionIsNil()) } - if i.ExternalSubscriptionIDContainsFold != nil { - predicates = append(predicates, entitlement.ExternalSubscriptionIDContainsFold(*i.ExternalSubscriptionIDContainsFold)) + if i.VersionNotNil { + predicates = append(predicates, control.VersionNotNil()) } - if i.Expires != nil { - predicates = append(predicates, entitlement.ExpiresEQ(*i.Expires)) + if i.VersionEqualFold != nil { + predicates = append(predicates, control.VersionEqualFold(*i.VersionEqualFold)) } - if i.ExpiresNEQ != nil { - predicates = append(predicates, entitlement.ExpiresNEQ(*i.ExpiresNEQ)) + if i.VersionContainsFold != nil { + predicates = append(predicates, control.VersionContainsFold(*i.VersionContainsFold)) } - if i.ExpiresAt != nil { - predicates = append(predicates, entitlement.ExpiresAtEQ(*i.ExpiresAt)) + if i.ControlNumber != nil { + predicates = append(predicates, control.ControlNumberEQ(*i.ControlNumber)) } - if i.ExpiresAtNEQ != nil { - predicates = append(predicates, entitlement.ExpiresAtNEQ(*i.ExpiresAtNEQ)) + if i.ControlNumberNEQ != nil { + predicates = append(predicates, control.ControlNumberNEQ(*i.ControlNumberNEQ)) } - if len(i.ExpiresAtIn) > 0 { - predicates = append(predicates, entitlement.ExpiresAtIn(i.ExpiresAtIn...)) + if len(i.ControlNumberIn) > 0 { + predicates = append(predicates, control.ControlNumberIn(i.ControlNumberIn...)) } - if len(i.ExpiresAtNotIn) > 0 { - predicates = append(predicates, entitlement.ExpiresAtNotIn(i.ExpiresAtNotIn...)) + if len(i.ControlNumberNotIn) > 0 { + predicates = append(predicates, control.ControlNumberNotIn(i.ControlNumberNotIn...)) } - if i.ExpiresAtGT != nil { - predicates = append(predicates, entitlement.ExpiresAtGT(*i.ExpiresAtGT)) + if i.ControlNumberGT != nil { + predicates = append(predicates, control.ControlNumberGT(*i.ControlNumberGT)) } - if i.ExpiresAtGTE != nil { - predicates = append(predicates, entitlement.ExpiresAtGTE(*i.ExpiresAtGTE)) + if i.ControlNumberGTE != nil { + predicates = append(predicates, control.ControlNumberGTE(*i.ControlNumberGTE)) } - if i.ExpiresAtLT != nil { - predicates = append(predicates, entitlement.ExpiresAtLT(*i.ExpiresAtLT)) + if i.ControlNumberLT != nil { + predicates = append(predicates, control.ControlNumberLT(*i.ControlNumberLT)) } - if i.ExpiresAtLTE != nil { - predicates = append(predicates, entitlement.ExpiresAtLTE(*i.ExpiresAtLTE)) + if i.ControlNumberLTE != nil { + predicates = append(predicates, control.ControlNumberLTE(*i.ControlNumberLTE)) } - if i.ExpiresAtIsNil { - predicates = append(predicates, entitlement.ExpiresAtIsNil()) + if i.ControlNumberContains != nil { + predicates = append(predicates, control.ControlNumberContains(*i.ControlNumberContains)) } - if i.ExpiresAtNotNil { - predicates = append(predicates, entitlement.ExpiresAtNotNil()) + if i.ControlNumberHasPrefix != nil { + predicates = append(predicates, control.ControlNumberHasPrefix(*i.ControlNumberHasPrefix)) } - if i.Cancelled != nil { - predicates = append(predicates, entitlement.CancelledEQ(*i.Cancelled)) + if i.ControlNumberHasSuffix != nil { + predicates = append(predicates, control.ControlNumberHasSuffix(*i.ControlNumberHasSuffix)) } - if i.CancelledNEQ != nil { - predicates = append(predicates, entitlement.CancelledNEQ(*i.CancelledNEQ)) + if i.ControlNumberIsNil { + predicates = append(predicates, control.ControlNumberIsNil()) + } + if i.ControlNumberNotNil { + predicates = append(predicates, control.ControlNumberNotNil()) + } + if i.ControlNumberEqualFold != nil { + predicates = append(predicates, control.ControlNumberEqualFold(*i.ControlNumberEqualFold)) + } + if i.ControlNumberContainsFold != nil { + predicates = append(predicates, control.ControlNumberContainsFold(*i.ControlNumberContainsFold)) + } + if i.Family != nil { + predicates = append(predicates, control.FamilyEQ(*i.Family)) + } + if i.FamilyNEQ != nil { + predicates = append(predicates, control.FamilyNEQ(*i.FamilyNEQ)) + } + if len(i.FamilyIn) > 0 { + predicates = append(predicates, control.FamilyIn(i.FamilyIn...)) + } + if len(i.FamilyNotIn) > 0 { + predicates = append(predicates, control.FamilyNotIn(i.FamilyNotIn...)) + } + if i.FamilyGT != nil { + predicates = append(predicates, control.FamilyGT(*i.FamilyGT)) + } + if i.FamilyGTE != nil { + predicates = append(predicates, control.FamilyGTE(*i.FamilyGTE)) + } + if i.FamilyLT != nil { + predicates = append(predicates, control.FamilyLT(*i.FamilyLT)) + } + if i.FamilyLTE != nil { + predicates = append(predicates, control.FamilyLTE(*i.FamilyLTE)) + } + if i.FamilyContains != nil { + predicates = append(predicates, control.FamilyContains(*i.FamilyContains)) + } + if i.FamilyHasPrefix != nil { + predicates = append(predicates, control.FamilyHasPrefix(*i.FamilyHasPrefix)) + } + if i.FamilyHasSuffix != nil { + predicates = append(predicates, control.FamilyHasSuffix(*i.FamilyHasSuffix)) + } + if i.FamilyIsNil { + predicates = append(predicates, control.FamilyIsNil()) + } + if i.FamilyNotNil { + predicates = append(predicates, control.FamilyNotNil()) + } + if i.FamilyEqualFold != nil { + predicates = append(predicates, control.FamilyEqualFold(*i.FamilyEqualFold)) + } + if i.FamilyContainsFold != nil { + predicates = append(predicates, control.FamilyContainsFold(*i.FamilyContainsFold)) + } + if i.Class != nil { + predicates = append(predicates, control.ClassEQ(*i.Class)) + } + if i.ClassNEQ != nil { + predicates = append(predicates, control.ClassNEQ(*i.ClassNEQ)) + } + if len(i.ClassIn) > 0 { + predicates = append(predicates, control.ClassIn(i.ClassIn...)) + } + if len(i.ClassNotIn) > 0 { + predicates = append(predicates, control.ClassNotIn(i.ClassNotIn...)) + } + if i.ClassGT != nil { + predicates = append(predicates, control.ClassGT(*i.ClassGT)) + } + if i.ClassGTE != nil { + predicates = append(predicates, control.ClassGTE(*i.ClassGTE)) + } + if i.ClassLT != nil { + predicates = append(predicates, control.ClassLT(*i.ClassLT)) + } + if i.ClassLTE != nil { + predicates = append(predicates, control.ClassLTE(*i.ClassLTE)) + } + if i.ClassContains != nil { + predicates = append(predicates, control.ClassContains(*i.ClassContains)) + } + if i.ClassHasPrefix != nil { + predicates = append(predicates, control.ClassHasPrefix(*i.ClassHasPrefix)) + } + if i.ClassHasSuffix != nil { + predicates = append(predicates, control.ClassHasSuffix(*i.ClassHasSuffix)) + } + if i.ClassIsNil { + predicates = append(predicates, control.ClassIsNil()) + } + if i.ClassNotNil { + predicates = append(predicates, control.ClassNotNil()) + } + if i.ClassEqualFold != nil { + predicates = append(predicates, control.ClassEqualFold(*i.ClassEqualFold)) + } + if i.ClassContainsFold != nil { + predicates = append(predicates, control.ClassContainsFold(*i.ClassContainsFold)) + } + if i.Source != nil { + predicates = append(predicates, control.SourceEQ(*i.Source)) + } + if i.SourceNEQ != nil { + predicates = append(predicates, control.SourceNEQ(*i.SourceNEQ)) + } + if len(i.SourceIn) > 0 { + predicates = append(predicates, control.SourceIn(i.SourceIn...)) + } + if len(i.SourceNotIn) > 0 { + predicates = append(predicates, control.SourceNotIn(i.SourceNotIn...)) + } + if i.SourceGT != nil { + predicates = append(predicates, control.SourceGT(*i.SourceGT)) + } + if i.SourceGTE != nil { + predicates = append(predicates, control.SourceGTE(*i.SourceGTE)) + } + if i.SourceLT != nil { + predicates = append(predicates, control.SourceLT(*i.SourceLT)) + } + if i.SourceLTE != nil { + predicates = append(predicates, control.SourceLTE(*i.SourceLTE)) + } + if i.SourceContains != nil { + predicates = append(predicates, control.SourceContains(*i.SourceContains)) + } + if i.SourceHasPrefix != nil { + predicates = append(predicates, control.SourceHasPrefix(*i.SourceHasPrefix)) + } + if i.SourceHasSuffix != nil { + predicates = append(predicates, control.SourceHasSuffix(*i.SourceHasSuffix)) + } + if i.SourceIsNil { + predicates = append(predicates, control.SourceIsNil()) + } + if i.SourceNotNil { + predicates = append(predicates, control.SourceNotNil()) + } + if i.SourceEqualFold != nil { + predicates = append(predicates, control.SourceEqualFold(*i.SourceEqualFold)) + } + if i.SourceContainsFold != nil { + predicates = append(predicates, control.SourceContainsFold(*i.SourceContainsFold)) + } + if i.Satisfies != nil { + predicates = append(predicates, control.SatisfiesEQ(*i.Satisfies)) + } + if i.SatisfiesNEQ != nil { + predicates = append(predicates, control.SatisfiesNEQ(*i.SatisfiesNEQ)) + } + if len(i.SatisfiesIn) > 0 { + predicates = append(predicates, control.SatisfiesIn(i.SatisfiesIn...)) + } + if len(i.SatisfiesNotIn) > 0 { + predicates = append(predicates, control.SatisfiesNotIn(i.SatisfiesNotIn...)) + } + if i.SatisfiesGT != nil { + predicates = append(predicates, control.SatisfiesGT(*i.SatisfiesGT)) + } + if i.SatisfiesGTE != nil { + predicates = append(predicates, control.SatisfiesGTE(*i.SatisfiesGTE)) + } + if i.SatisfiesLT != nil { + predicates = append(predicates, control.SatisfiesLT(*i.SatisfiesLT)) + } + if i.SatisfiesLTE != nil { + predicates = append(predicates, control.SatisfiesLTE(*i.SatisfiesLTE)) + } + if i.SatisfiesContains != nil { + predicates = append(predicates, control.SatisfiesContains(*i.SatisfiesContains)) + } + if i.SatisfiesHasPrefix != nil { + predicates = append(predicates, control.SatisfiesHasPrefix(*i.SatisfiesHasPrefix)) + } + if i.SatisfiesHasSuffix != nil { + predicates = append(predicates, control.SatisfiesHasSuffix(*i.SatisfiesHasSuffix)) + } + if i.SatisfiesIsNil { + predicates = append(predicates, control.SatisfiesIsNil()) + } + if i.SatisfiesNotNil { + predicates = append(predicates, control.SatisfiesNotNil()) + } + if i.SatisfiesEqualFold != nil { + predicates = append(predicates, control.SatisfiesEqualFold(*i.SatisfiesEqualFold)) + } + if i.SatisfiesContainsFold != nil { + predicates = append(predicates, control.SatisfiesContainsFold(*i.SatisfiesContainsFold)) + } + if i.MappedFrameworks != nil { + predicates = append(predicates, control.MappedFrameworksEQ(*i.MappedFrameworks)) + } + if i.MappedFrameworksNEQ != nil { + predicates = append(predicates, control.MappedFrameworksNEQ(*i.MappedFrameworksNEQ)) + } + if len(i.MappedFrameworksIn) > 0 { + predicates = append(predicates, control.MappedFrameworksIn(i.MappedFrameworksIn...)) + } + if len(i.MappedFrameworksNotIn) > 0 { + predicates = append(predicates, control.MappedFrameworksNotIn(i.MappedFrameworksNotIn...)) + } + if i.MappedFrameworksGT != nil { + predicates = append(predicates, control.MappedFrameworksGT(*i.MappedFrameworksGT)) + } + if i.MappedFrameworksGTE != nil { + predicates = append(predicates, control.MappedFrameworksGTE(*i.MappedFrameworksGTE)) + } + if i.MappedFrameworksLT != nil { + predicates = append(predicates, control.MappedFrameworksLT(*i.MappedFrameworksLT)) + } + if i.MappedFrameworksLTE != nil { + predicates = append(predicates, control.MappedFrameworksLTE(*i.MappedFrameworksLTE)) + } + if i.MappedFrameworksContains != nil { + predicates = append(predicates, control.MappedFrameworksContains(*i.MappedFrameworksContains)) + } + if i.MappedFrameworksHasPrefix != nil { + predicates = append(predicates, control.MappedFrameworksHasPrefix(*i.MappedFrameworksHasPrefix)) + } + if i.MappedFrameworksHasSuffix != nil { + predicates = append(predicates, control.MappedFrameworksHasSuffix(*i.MappedFrameworksHasSuffix)) + } + if i.MappedFrameworksIsNil { + predicates = append(predicates, control.MappedFrameworksIsNil()) + } + if i.MappedFrameworksNotNil { + predicates = append(predicates, control.MappedFrameworksNotNil()) + } + if i.MappedFrameworksEqualFold != nil { + predicates = append(predicates, control.MappedFrameworksEqualFold(*i.MappedFrameworksEqualFold)) + } + if i.MappedFrameworksContainsFold != nil { + predicates = append(predicates, control.MappedFrameworksContainsFold(*i.MappedFrameworksContainsFold)) } - if i.HasOwner != nil { - p := entitlement.HasOwner() - if !*i.HasOwner { - p = entitlement.Not(p) + if i.HasProcedures != nil { + p := control.HasProcedures() + if !*i.HasProcedures { + p = control.Not(p) } predicates = append(predicates, p) } - if len(i.HasOwnerWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) - for _, w := range i.HasOwnerWith { + if len(i.HasProceduresWith) > 0 { + with := make([]predicate.Procedure, 0, len(i.HasProceduresWith)) + for _, w := range i.HasProceduresWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasOwnerWith'", err) + return nil, fmt.Errorf("%w: field 'HasProceduresWith'", err) } with = append(with, p) } - predicates = append(predicates, entitlement.HasOwnerWith(with...)) + predicates = append(predicates, control.HasProceduresWith(with...)) } - if i.HasPlan != nil { - p := entitlement.HasPlan() - if !*i.HasPlan { - p = entitlement.Not(p) + if i.HasSubcontrols != nil { + p := control.HasSubcontrols() + if !*i.HasSubcontrols { + p = control.Not(p) } predicates = append(predicates, p) } - if len(i.HasPlanWith) > 0 { - with := make([]predicate.EntitlementPlan, 0, len(i.HasPlanWith)) - for _, w := range i.HasPlanWith { + if len(i.HasSubcontrolsWith) > 0 { + with := make([]predicate.Subcontrol, 0, len(i.HasSubcontrolsWith)) + for _, w := range i.HasSubcontrolsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasPlanWith'", err) + return nil, fmt.Errorf("%w: field 'HasSubcontrolsWith'", err) } with = append(with, p) } - predicates = append(predicates, entitlement.HasPlanWith(with...)) + predicates = append(predicates, control.HasSubcontrolsWith(with...)) } - if i.HasOrganization != nil { - p := entitlement.HasOrganization() - if !*i.HasOrganization { - p = entitlement.Not(p) + if i.HasControlobjectives != nil { + p := control.HasControlobjectives() + if !*i.HasControlobjectives { + p = control.Not(p) } predicates = append(predicates, p) } - if len(i.HasOrganizationWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOrganizationWith)) - for _, w := range i.HasOrganizationWith { + if len(i.HasControlobjectivesWith) > 0 { + with := make([]predicate.ControlObjective, 0, len(i.HasControlobjectivesWith)) + for _, w := range i.HasControlobjectivesWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasOrganizationWith'", err) + return nil, fmt.Errorf("%w: field 'HasControlobjectivesWith'", err) } with = append(with, p) } - predicates = append(predicates, entitlement.HasOrganizationWith(with...)) + predicates = append(predicates, control.HasControlobjectivesWith(with...)) } - if i.HasEvents != nil { - p := entitlement.HasEvents() - if !*i.HasEvents { - p = entitlement.Not(p) + if i.HasStandard != nil { + p := control.HasStandard() + if !*i.HasStandard { + p = control.Not(p) } predicates = append(predicates, p) } - if len(i.HasEventsWith) > 0 { - with := make([]predicate.Event, 0, len(i.HasEventsWith)) - for _, w := range i.HasEventsWith { + if len(i.HasStandardWith) > 0 { + with := make([]predicate.Standard, 0, len(i.HasStandardWith)) + for _, w := range i.HasStandardWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + return nil, fmt.Errorf("%w: field 'HasStandardWith'", err) } with = append(with, p) } - predicates = append(predicates, entitlement.HasEventsWith(with...)) + predicates = append(predicates, control.HasStandardWith(with...)) + } + if i.HasNarratives != nil { + p := control.HasNarratives() + if !*i.HasNarratives { + p = control.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasNarrativesWith) > 0 { + with := make([]predicate.Narrative, 0, len(i.HasNarrativesWith)) + for _, w := range i.HasNarrativesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasNarrativesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, control.HasNarrativesWith(with...)) + } + if i.HasRisks != nil { + p := control.HasRisks() + if !*i.HasRisks { + p = control.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasRisksWith) > 0 { + with := make([]predicate.Risk, 0, len(i.HasRisksWith)) + for _, w := range i.HasRisksWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasRisksWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, control.HasRisksWith(with...)) + } + if i.HasActionplans != nil { + p := control.HasActionplans() + if !*i.HasActionplans { + p = control.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasActionplansWith) > 0 { + with := make([]predicate.ActionPlan, 0, len(i.HasActionplansWith)) + for _, w := range i.HasActionplansWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasActionplansWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, control.HasActionplansWith(with...)) } switch len(predicates) { case 0: - return nil, ErrEmptyEntitlementWhereInput + return nil, ErrEmptyControlWhereInput case 1: return predicates[0], nil default: - return entitlement.And(predicates...), nil + return control.And(predicates...), nil } } -// EntitlementHistoryWhereInput represents a where input for filtering EntitlementHistory queries. -type EntitlementHistoryWhereInput struct { - Predicates []predicate.EntitlementHistory `json:"-"` - Not *EntitlementHistoryWhereInput `json:"not,omitempty"` - Or []*EntitlementHistoryWhereInput `json:"or,omitempty"` - And []*EntitlementHistoryWhereInput `json:"and,omitempty"` +// ControlHistoryWhereInput represents a where input for filtering ControlHistory queries. +type ControlHistoryWhereInput struct { + Predicates []predicate.ControlHistory `json:"-"` + Not *ControlHistoryWhereInput `json:"not,omitempty"` + Or []*ControlHistoryWhereInput `json:"or,omitempty"` + And []*ControlHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -5038,121 +5896,205 @@ type EntitlementHistoryWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "plan_id" field predicates. - PlanID *string `json:"planID,omitempty"` - PlanIDNEQ *string `json:"planIDNEQ,omitempty"` - PlanIDIn []string `json:"planIDIn,omitempty"` - PlanIDNotIn []string `json:"planIDNotIn,omitempty"` - PlanIDGT *string `json:"planIDGT,omitempty"` - PlanIDGTE *string `json:"planIDGTE,omitempty"` - PlanIDLT *string `json:"planIDLT,omitempty"` - PlanIDLTE *string `json:"planIDLTE,omitempty"` - PlanIDContains *string `json:"planIDContains,omitempty"` - PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` - PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` - PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` - PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` - // "organization_id" field predicates. - OrganizationID *string `json:"organizationID,omitempty"` - OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` - OrganizationIDIn []string `json:"organizationIDIn,omitempty"` - OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` - OrganizationIDGT *string `json:"organizationIDGT,omitempty"` - OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` - OrganizationIDLT *string `json:"organizationIDLT,omitempty"` - OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` - OrganizationIDContains *string `json:"organizationIDContains,omitempty"` - OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` - OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` - OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` - OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` - // "external_customer_id" field predicates. - ExternalCustomerID *string `json:"externalCustomerID,omitempty"` - ExternalCustomerIDNEQ *string `json:"externalCustomerIDNEQ,omitempty"` - ExternalCustomerIDIn []string `json:"externalCustomerIDIn,omitempty"` - ExternalCustomerIDNotIn []string `json:"externalCustomerIDNotIn,omitempty"` - ExternalCustomerIDGT *string `json:"externalCustomerIDGT,omitempty"` - ExternalCustomerIDGTE *string `json:"externalCustomerIDGTE,omitempty"` - ExternalCustomerIDLT *string `json:"externalCustomerIDLT,omitempty"` - ExternalCustomerIDLTE *string `json:"externalCustomerIDLTE,omitempty"` - ExternalCustomerIDContains *string `json:"externalCustomerIDContains,omitempty"` - ExternalCustomerIDHasPrefix *string `json:"externalCustomerIDHasPrefix,omitempty"` - ExternalCustomerIDHasSuffix *string `json:"externalCustomerIDHasSuffix,omitempty"` - ExternalCustomerIDIsNil bool `json:"externalCustomerIDIsNil,omitempty"` - ExternalCustomerIDNotNil bool `json:"externalCustomerIDNotNil,omitempty"` - ExternalCustomerIDEqualFold *string `json:"externalCustomerIDEqualFold,omitempty"` - ExternalCustomerIDContainsFold *string `json:"externalCustomerIDContainsFold,omitempty"` + // "control_type" field predicates. + ControlType *string `json:"controlType,omitempty"` + ControlTypeNEQ *string `json:"controlTypeNEQ,omitempty"` + ControlTypeIn []string `json:"controlTypeIn,omitempty"` + ControlTypeNotIn []string `json:"controlTypeNotIn,omitempty"` + ControlTypeGT *string `json:"controlTypeGT,omitempty"` + ControlTypeGTE *string `json:"controlTypeGTE,omitempty"` + ControlTypeLT *string `json:"controlTypeLT,omitempty"` + ControlTypeLTE *string `json:"controlTypeLTE,omitempty"` + ControlTypeContains *string `json:"controlTypeContains,omitempty"` + ControlTypeHasPrefix *string `json:"controlTypeHasPrefix,omitempty"` + ControlTypeHasSuffix *string `json:"controlTypeHasSuffix,omitempty"` + ControlTypeIsNil bool `json:"controlTypeIsNil,omitempty"` + ControlTypeNotNil bool `json:"controlTypeNotNil,omitempty"` + ControlTypeEqualFold *string `json:"controlTypeEqualFold,omitempty"` + ControlTypeContainsFold *string `json:"controlTypeContainsFold,omitempty"` - // "external_subscription_id" field predicates. - ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` - ExternalSubscriptionIDNEQ *string `json:"externalSubscriptionIDNEQ,omitempty"` - ExternalSubscriptionIDIn []string `json:"externalSubscriptionIDIn,omitempty"` - ExternalSubscriptionIDNotIn []string `json:"externalSubscriptionIDNotIn,omitempty"` - ExternalSubscriptionIDGT *string `json:"externalSubscriptionIDGT,omitempty"` - ExternalSubscriptionIDGTE *string `json:"externalSubscriptionIDGTE,omitempty"` - ExternalSubscriptionIDLT *string `json:"externalSubscriptionIDLT,omitempty"` - ExternalSubscriptionIDLTE *string `json:"externalSubscriptionIDLTE,omitempty"` - ExternalSubscriptionIDContains *string `json:"externalSubscriptionIDContains,omitempty"` - ExternalSubscriptionIDHasPrefix *string `json:"externalSubscriptionIDHasPrefix,omitempty"` - ExternalSubscriptionIDHasSuffix *string `json:"externalSubscriptionIDHasSuffix,omitempty"` - ExternalSubscriptionIDIsNil bool `json:"externalSubscriptionIDIsNil,omitempty"` - ExternalSubscriptionIDNotNil bool `json:"externalSubscriptionIDNotNil,omitempty"` - ExternalSubscriptionIDEqualFold *string `json:"externalSubscriptionIDEqualFold,omitempty"` - ExternalSubscriptionIDContainsFold *string `json:"externalSubscriptionIDContainsFold,omitempty"` - - // "expires" field predicates. - Expires *bool `json:"expires,omitempty"` - ExpiresNEQ *bool `json:"expiresNEQ,omitempty"` - - // "expires_at" field predicates. - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - ExpiresAtNEQ *time.Time `json:"expiresAtNEQ,omitempty"` - ExpiresAtIn []time.Time `json:"expiresAtIn,omitempty"` - ExpiresAtNotIn []time.Time `json:"expiresAtNotIn,omitempty"` - ExpiresAtGT *time.Time `json:"expiresAtGT,omitempty"` - ExpiresAtGTE *time.Time `json:"expiresAtGTE,omitempty"` - ExpiresAtLT *time.Time `json:"expiresAtLT,omitempty"` - ExpiresAtLTE *time.Time `json:"expiresAtLTE,omitempty"` - ExpiresAtIsNil bool `json:"expiresAtIsNil,omitempty"` - ExpiresAtNotNil bool `json:"expiresAtNotNil,omitempty"` + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil bool `json:"versionIsNil,omitempty"` + VersionNotNil bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` - // "cancelled" field predicates. - Cancelled *bool `json:"cancelled,omitempty"` - CancelledNEQ *bool `json:"cancelledNEQ,omitempty"` + // "control_number" field predicates. + ControlNumber *string `json:"controlNumber,omitempty"` + ControlNumberNEQ *string `json:"controlNumberNEQ,omitempty"` + ControlNumberIn []string `json:"controlNumberIn,omitempty"` + ControlNumberNotIn []string `json:"controlNumberNotIn,omitempty"` + ControlNumberGT *string `json:"controlNumberGT,omitempty"` + ControlNumberGTE *string `json:"controlNumberGTE,omitempty"` + ControlNumberLT *string `json:"controlNumberLT,omitempty"` + ControlNumberLTE *string `json:"controlNumberLTE,omitempty"` + ControlNumberContains *string `json:"controlNumberContains,omitempty"` + ControlNumberHasPrefix *string `json:"controlNumberHasPrefix,omitempty"` + ControlNumberHasSuffix *string `json:"controlNumberHasSuffix,omitempty"` + ControlNumberIsNil bool `json:"controlNumberIsNil,omitempty"` + ControlNumberNotNil bool `json:"controlNumberNotNil,omitempty"` + ControlNumberEqualFold *string `json:"controlNumberEqualFold,omitempty"` + ControlNumberContainsFold *string `json:"controlNumberContainsFold,omitempty"` + + // "family" field predicates. + Family *string `json:"family,omitempty"` + FamilyNEQ *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGT *string `json:"familyGT,omitempty"` + FamilyGTE *string `json:"familyGTE,omitempty"` + FamilyLT *string `json:"familyLT,omitempty"` + FamilyLTE *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil bool `json:"familyIsNil,omitempty"` + FamilyNotNil bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + + // "class" field predicates. + Class *string `json:"class,omitempty"` + ClassNEQ *string `json:"classNEQ,omitempty"` + ClassIn []string `json:"classIn,omitempty"` + ClassNotIn []string `json:"classNotIn,omitempty"` + ClassGT *string `json:"classGT,omitempty"` + ClassGTE *string `json:"classGTE,omitempty"` + ClassLT *string `json:"classLT,omitempty"` + ClassLTE *string `json:"classLTE,omitempty"` + ClassContains *string `json:"classContains,omitempty"` + ClassHasPrefix *string `json:"classHasPrefix,omitempty"` + ClassHasSuffix *string `json:"classHasSuffix,omitempty"` + ClassIsNil bool `json:"classIsNil,omitempty"` + ClassNotNil bool `json:"classNotNil,omitempty"` + ClassEqualFold *string `json:"classEqualFold,omitempty"` + ClassContainsFold *string `json:"classContainsFold,omitempty"` + + // "source" field predicates. + Source *string `json:"source,omitempty"` + SourceNEQ *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGT *string `json:"sourceGT,omitempty"` + SourceGTE *string `json:"sourceGTE,omitempty"` + SourceLT *string `json:"sourceLT,omitempty"` + SourceLTE *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil bool `json:"sourceIsNil,omitempty"` + SourceNotNil bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + + // "satisfies" field predicates. + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNEQ *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGT *string `json:"satisfiesGT,omitempty"` + SatisfiesGTE *string `json:"satisfiesGTE,omitempty"` + SatisfiesLT *string `json:"satisfiesLT,omitempty"` + SatisfiesLTE *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` + + // "mapped_frameworks" field predicates. + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + MappedFrameworksNEQ *string `json:"mappedFrameworksNEQ,omitempty"` + MappedFrameworksIn []string `json:"mappedFrameworksIn,omitempty"` + MappedFrameworksNotIn []string `json:"mappedFrameworksNotIn,omitempty"` + MappedFrameworksGT *string `json:"mappedFrameworksGT,omitempty"` + MappedFrameworksGTE *string `json:"mappedFrameworksGTE,omitempty"` + MappedFrameworksLT *string `json:"mappedFrameworksLT,omitempty"` + MappedFrameworksLTE *string `json:"mappedFrameworksLTE,omitempty"` + MappedFrameworksContains *string `json:"mappedFrameworksContains,omitempty"` + MappedFrameworksHasPrefix *string `json:"mappedFrameworksHasPrefix,omitempty"` + MappedFrameworksHasSuffix *string `json:"mappedFrameworksHasSuffix,omitempty"` + MappedFrameworksIsNil bool `json:"mappedFrameworksIsNil,omitempty"` + MappedFrameworksNotNil bool `json:"mappedFrameworksNotNil,omitempty"` + MappedFrameworksEqualFold *string `json:"mappedFrameworksEqualFold,omitempty"` + MappedFrameworksContainsFold *string `json:"mappedFrameworksContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *EntitlementHistoryWhereInput) AddPredicates(predicates ...predicate.EntitlementHistory) { +func (i *ControlHistoryWhereInput) AddPredicates(predicates ...predicate.ControlHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the EntitlementHistoryWhereInput filter on the EntitlementHistoryQuery builder. -func (i *EntitlementHistoryWhereInput) Filter(q *EntitlementHistoryQuery) (*EntitlementHistoryQuery, error) { +// Filter applies the ControlHistoryWhereInput filter on the ControlHistoryQuery builder. +func (i *ControlHistoryWhereInput) Filter(q *ControlHistoryQuery) (*ControlHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyEntitlementHistoryWhereInput { + if err == ErrEmptyControlHistoryWhereInput { return q, nil } return nil, err @@ -5160,19 +6102,19 @@ func (i *EntitlementHistoryWhereInput) Filter(q *EntitlementHistoryQuery) (*Enti return q.Where(p), nil } -// ErrEmptyEntitlementHistoryWhereInput is returned in case the EntitlementHistoryWhereInput is empty. -var ErrEmptyEntitlementHistoryWhereInput = errors.New("generated: empty predicate EntitlementHistoryWhereInput") +// ErrEmptyControlHistoryWhereInput is returned in case the ControlHistoryWhereInput is empty. +var ErrEmptyControlHistoryWhereInput = errors.New("generated: empty predicate ControlHistoryWhereInput") -// P returns a predicate for filtering entitlementhistories. +// P returns a predicate for filtering controlhistories. // An error is returned if the input is empty or invalid. -func (i *EntitlementHistoryWhereInput) P() (predicate.EntitlementHistory, error) { - var predicates []predicate.EntitlementHistory +func (i *ControlHistoryWhereInput) P() (predicate.ControlHistory, error) { + var predicates []predicate.ControlHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, entitlementhistory.Not(p)) + predicates = append(predicates, controlhistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -5182,7 +6124,7 @@ func (i *EntitlementHistoryWhereInput) P() (predicate.EntitlementHistory, error) } predicates = append(predicates, p) case n > 1: - or := make([]predicate.EntitlementHistory, 0, n) + or := make([]predicate.ControlHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -5190,7 +6132,7 @@ func (i *EntitlementHistoryWhereInput) P() (predicate.EntitlementHistory, error) } or = append(or, p) } - predicates = append(predicates, entitlementhistory.Or(or...)) + predicates = append(predicates, controlhistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -5200,7 +6142,7 @@ func (i *EntitlementHistoryWhereInput) P() (predicate.EntitlementHistory, error) } predicates = append(predicates, p) case n > 1: - and := make([]predicate.EntitlementHistory, 0, n) + and := make([]predicate.ControlHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -5208,617 +6150,851 @@ func (i *EntitlementHistoryWhereInput) P() (predicate.EntitlementHistory, error) } and = append(and, p) } - predicates = append(predicates, entitlementhistory.And(and...)) + predicates = append(predicates, controlhistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, entitlementhistory.IDEQ(*i.ID)) + predicates = append(predicates, controlhistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, entitlementhistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, controlhistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, entitlementhistory.IDIn(i.IDIn...)) + predicates = append(predicates, controlhistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, entitlementhistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, controlhistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, entitlementhistory.IDGT(*i.IDGT)) + predicates = append(predicates, controlhistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, entitlementhistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, controlhistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, entitlementhistory.IDLT(*i.IDLT)) + predicates = append(predicates, controlhistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, entitlementhistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, controlhistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, entitlementhistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, controlhistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, entitlementhistory.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, controlhistory.IDContainsFold(*i.IDContainsFold)) } if i.HistoryTime != nil { - predicates = append(predicates, entitlementhistory.HistoryTimeEQ(*i.HistoryTime)) + predicates = append(predicates, controlhistory.HistoryTimeEQ(*i.HistoryTime)) } if i.HistoryTimeNEQ != nil { - predicates = append(predicates, entitlementhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + predicates = append(predicates, controlhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) } if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, entitlementhistory.HistoryTimeIn(i.HistoryTimeIn...)) + predicates = append(predicates, controlhistory.HistoryTimeIn(i.HistoryTimeIn...)) } if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, entitlementhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + predicates = append(predicates, controlhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) } if i.HistoryTimeGT != nil { - predicates = append(predicates, entitlementhistory.HistoryTimeGT(*i.HistoryTimeGT)) + predicates = append(predicates, controlhistory.HistoryTimeGT(*i.HistoryTimeGT)) } if i.HistoryTimeGTE != nil { - predicates = append(predicates, entitlementhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + predicates = append(predicates, controlhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) } if i.HistoryTimeLT != nil { - predicates = append(predicates, entitlementhistory.HistoryTimeLT(*i.HistoryTimeLT)) + predicates = append(predicates, controlhistory.HistoryTimeLT(*i.HistoryTimeLT)) } if i.HistoryTimeLTE != nil { - predicates = append(predicates, entitlementhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + predicates = append(predicates, controlhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) } if i.Ref != nil { - predicates = append(predicates, entitlementhistory.RefEQ(*i.Ref)) + predicates = append(predicates, controlhistory.RefEQ(*i.Ref)) } if i.RefNEQ != nil { - predicates = append(predicates, entitlementhistory.RefNEQ(*i.RefNEQ)) + predicates = append(predicates, controlhistory.RefNEQ(*i.RefNEQ)) } if len(i.RefIn) > 0 { - predicates = append(predicates, entitlementhistory.RefIn(i.RefIn...)) + predicates = append(predicates, controlhistory.RefIn(i.RefIn...)) } if len(i.RefNotIn) > 0 { - predicates = append(predicates, entitlementhistory.RefNotIn(i.RefNotIn...)) + predicates = append(predicates, controlhistory.RefNotIn(i.RefNotIn...)) } if i.RefGT != nil { - predicates = append(predicates, entitlementhistory.RefGT(*i.RefGT)) + predicates = append(predicates, controlhistory.RefGT(*i.RefGT)) } if i.RefGTE != nil { - predicates = append(predicates, entitlementhistory.RefGTE(*i.RefGTE)) + predicates = append(predicates, controlhistory.RefGTE(*i.RefGTE)) } if i.RefLT != nil { - predicates = append(predicates, entitlementhistory.RefLT(*i.RefLT)) + predicates = append(predicates, controlhistory.RefLT(*i.RefLT)) } if i.RefLTE != nil { - predicates = append(predicates, entitlementhistory.RefLTE(*i.RefLTE)) + predicates = append(predicates, controlhistory.RefLTE(*i.RefLTE)) } if i.RefContains != nil { - predicates = append(predicates, entitlementhistory.RefContains(*i.RefContains)) + predicates = append(predicates, controlhistory.RefContains(*i.RefContains)) } if i.RefHasPrefix != nil { - predicates = append(predicates, entitlementhistory.RefHasPrefix(*i.RefHasPrefix)) + predicates = append(predicates, controlhistory.RefHasPrefix(*i.RefHasPrefix)) } if i.RefHasSuffix != nil { - predicates = append(predicates, entitlementhistory.RefHasSuffix(*i.RefHasSuffix)) + predicates = append(predicates, controlhistory.RefHasSuffix(*i.RefHasSuffix)) } if i.RefIsNil { - predicates = append(predicates, entitlementhistory.RefIsNil()) + predicates = append(predicates, controlhistory.RefIsNil()) } if i.RefNotNil { - predicates = append(predicates, entitlementhistory.RefNotNil()) + predicates = append(predicates, controlhistory.RefNotNil()) } if i.RefEqualFold != nil { - predicates = append(predicates, entitlementhistory.RefEqualFold(*i.RefEqualFold)) + predicates = append(predicates, controlhistory.RefEqualFold(*i.RefEqualFold)) } if i.RefContainsFold != nil { - predicates = append(predicates, entitlementhistory.RefContainsFold(*i.RefContainsFold)) + predicates = append(predicates, controlhistory.RefContainsFold(*i.RefContainsFold)) } if i.Operation != nil { - predicates = append(predicates, entitlementhistory.OperationEQ(*i.Operation)) + predicates = append(predicates, controlhistory.OperationEQ(*i.Operation)) } if i.OperationNEQ != nil { - predicates = append(predicates, entitlementhistory.OperationNEQ(*i.OperationNEQ)) + predicates = append(predicates, controlhistory.OperationNEQ(*i.OperationNEQ)) } if len(i.OperationIn) > 0 { - predicates = append(predicates, entitlementhistory.OperationIn(i.OperationIn...)) + predicates = append(predicates, controlhistory.OperationIn(i.OperationIn...)) } if len(i.OperationNotIn) > 0 { - predicates = append(predicates, entitlementhistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, controlhistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, entitlementhistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, controlhistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, entitlementhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, controlhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, entitlementhistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, controlhistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, entitlementhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, controlhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, entitlementhistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, controlhistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, entitlementhistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, controlhistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, entitlementhistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, controlhistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, entitlementhistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, controlhistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, entitlementhistory.CreatedAtIsNil()) + predicates = append(predicates, controlhistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, entitlementhistory.CreatedAtNotNil()) + predicates = append(predicates, controlhistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, entitlementhistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, controlhistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, entitlementhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, controlhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, entitlementhistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, controlhistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, entitlementhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, controlhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, entitlementhistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, controlhistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, entitlementhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, controlhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, entitlementhistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, controlhistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, entitlementhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, controlhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, entitlementhistory.UpdatedAtIsNil()) + predicates = append(predicates, controlhistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, entitlementhistory.UpdatedAtNotNil()) + predicates = append(predicates, controlhistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, entitlementhistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, controlhistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, entitlementhistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, controlhistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, entitlementhistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, controlhistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, entitlementhistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, controlhistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, entitlementhistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, controlhistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, entitlementhistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, controlhistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, entitlementhistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, controlhistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, entitlementhistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, controlhistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, entitlementhistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, controlhistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, entitlementhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, controlhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, entitlementhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, controlhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, entitlementhistory.CreatedByIsNil()) + predicates = append(predicates, controlhistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, entitlementhistory.CreatedByNotNil()) + predicates = append(predicates, controlhistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, entitlementhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, controlhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, entitlementhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, controlhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, entitlementhistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, controlhistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, entitlementhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, controlhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, entitlementhistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, controlhistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, entitlementhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, controlhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, entitlementhistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, controlhistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, entitlementhistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, controlhistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, entitlementhistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, controlhistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, entitlementhistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, controlhistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, entitlementhistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, controlhistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, entitlementhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, controlhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, entitlementhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, controlhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, entitlementhistory.UpdatedByIsNil()) + predicates = append(predicates, controlhistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, entitlementhistory.UpdatedByNotNil()) + predicates = append(predicates, controlhistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, entitlementhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, controlhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, entitlementhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, controlhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, entitlementhistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, controlhistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, entitlementhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, controlhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, entitlementhistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, controlhistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, entitlementhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, controlhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, entitlementhistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, controlhistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, entitlementhistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, controlhistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, entitlementhistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, controlhistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, entitlementhistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, controlhistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, entitlementhistory.DeletedAtIsNil()) + predicates = append(predicates, controlhistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, entitlementhistory.DeletedAtNotNil()) + predicates = append(predicates, controlhistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, entitlementhistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, controlhistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, entitlementhistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, controlhistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, entitlementhistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, controlhistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, entitlementhistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, controlhistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, entitlementhistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, controlhistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, entitlementhistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, controlhistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, entitlementhistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, controlhistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, entitlementhistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, controlhistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, entitlementhistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, controlhistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, entitlementhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, controlhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, entitlementhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, controlhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, entitlementhistory.DeletedByIsNil()) + predicates = append(predicates, controlhistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, entitlementhistory.DeletedByNotNil()) + predicates = append(predicates, controlhistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, entitlementhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, controlhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, entitlementhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, controlhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.OwnerID != nil { - predicates = append(predicates, entitlementhistory.OwnerIDEQ(*i.OwnerID)) + if i.Name != nil { + predicates = append(predicates, controlhistory.NameEQ(*i.Name)) } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, entitlementhistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + if i.NameNEQ != nil { + predicates = append(predicates, controlhistory.NameNEQ(*i.NameNEQ)) } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, entitlementhistory.OwnerIDIn(i.OwnerIDIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, controlhistory.NameIn(i.NameIn...)) } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, entitlementhistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, controlhistory.NameNotIn(i.NameNotIn...)) } - if i.OwnerIDGT != nil { - predicates = append(predicates, entitlementhistory.OwnerIDGT(*i.OwnerIDGT)) + if i.NameGT != nil { + predicates = append(predicates, controlhistory.NameGT(*i.NameGT)) } - if i.OwnerIDGTE != nil { - predicates = append(predicates, entitlementhistory.OwnerIDGTE(*i.OwnerIDGTE)) + if i.NameGTE != nil { + predicates = append(predicates, controlhistory.NameGTE(*i.NameGTE)) } - if i.OwnerIDLT != nil { - predicates = append(predicates, entitlementhistory.OwnerIDLT(*i.OwnerIDLT)) + if i.NameLT != nil { + predicates = append(predicates, controlhistory.NameLT(*i.NameLT)) } - if i.OwnerIDLTE != nil { - predicates = append(predicates, entitlementhistory.OwnerIDLTE(*i.OwnerIDLTE)) + if i.NameLTE != nil { + predicates = append(predicates, controlhistory.NameLTE(*i.NameLTE)) } - if i.OwnerIDContains != nil { - predicates = append(predicates, entitlementhistory.OwnerIDContains(*i.OwnerIDContains)) + if i.NameContains != nil { + predicates = append(predicates, controlhistory.NameContains(*i.NameContains)) } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, entitlementhistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + if i.NameHasPrefix != nil { + predicates = append(predicates, controlhistory.NameHasPrefix(*i.NameHasPrefix)) } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, entitlementhistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + if i.NameHasSuffix != nil { + predicates = append(predicates, controlhistory.NameHasSuffix(*i.NameHasSuffix)) } - if i.OwnerIDIsNil { - predicates = append(predicates, entitlementhistory.OwnerIDIsNil()) + if i.NameEqualFold != nil { + predicates = append(predicates, controlhistory.NameEqualFold(*i.NameEqualFold)) } - if i.OwnerIDNotNil { - predicates = append(predicates, entitlementhistory.OwnerIDNotNil()) + if i.NameContainsFold != nil { + predicates = append(predicates, controlhistory.NameContainsFold(*i.NameContainsFold)) } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, entitlementhistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + if i.Description != nil { + predicates = append(predicates, controlhistory.DescriptionEQ(*i.Description)) } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, entitlementhistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, controlhistory.DescriptionNEQ(*i.DescriptionNEQ)) } - if i.PlanID != nil { - predicates = append(predicates, entitlementhistory.PlanIDEQ(*i.PlanID)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, controlhistory.DescriptionIn(i.DescriptionIn...)) } - if i.PlanIDNEQ != nil { - predicates = append(predicates, entitlementhistory.PlanIDNEQ(*i.PlanIDNEQ)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, controlhistory.DescriptionNotIn(i.DescriptionNotIn...)) } - if len(i.PlanIDIn) > 0 { - predicates = append(predicates, entitlementhistory.PlanIDIn(i.PlanIDIn...)) + if i.DescriptionGT != nil { + predicates = append(predicates, controlhistory.DescriptionGT(*i.DescriptionGT)) } - if len(i.PlanIDNotIn) > 0 { - predicates = append(predicates, entitlementhistory.PlanIDNotIn(i.PlanIDNotIn...)) + if i.DescriptionGTE != nil { + predicates = append(predicates, controlhistory.DescriptionGTE(*i.DescriptionGTE)) } - if i.PlanIDGT != nil { - predicates = append(predicates, entitlementhistory.PlanIDGT(*i.PlanIDGT)) + if i.DescriptionLT != nil { + predicates = append(predicates, controlhistory.DescriptionLT(*i.DescriptionLT)) } - if i.PlanIDGTE != nil { - predicates = append(predicates, entitlementhistory.PlanIDGTE(*i.PlanIDGTE)) + if i.DescriptionLTE != nil { + predicates = append(predicates, controlhistory.DescriptionLTE(*i.DescriptionLTE)) } - if i.PlanIDLT != nil { - predicates = append(predicates, entitlementhistory.PlanIDLT(*i.PlanIDLT)) + if i.DescriptionContains != nil { + predicates = append(predicates, controlhistory.DescriptionContains(*i.DescriptionContains)) } - if i.PlanIDLTE != nil { - predicates = append(predicates, entitlementhistory.PlanIDLTE(*i.PlanIDLTE)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, controlhistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.PlanIDContains != nil { - predicates = append(predicates, entitlementhistory.PlanIDContains(*i.PlanIDContains)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, controlhistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.PlanIDHasPrefix != nil { - predicates = append(predicates, entitlementhistory.PlanIDHasPrefix(*i.PlanIDHasPrefix)) + if i.DescriptionIsNil { + predicates = append(predicates, controlhistory.DescriptionIsNil()) } - if i.PlanIDHasSuffix != nil { - predicates = append(predicates, entitlementhistory.PlanIDHasSuffix(*i.PlanIDHasSuffix)) + if i.DescriptionNotNil { + predicates = append(predicates, controlhistory.DescriptionNotNil()) } - if i.PlanIDEqualFold != nil { - predicates = append(predicates, entitlementhistory.PlanIDEqualFold(*i.PlanIDEqualFold)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, controlhistory.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.PlanIDContainsFold != nil { - predicates = append(predicates, entitlementhistory.PlanIDContainsFold(*i.PlanIDContainsFold)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, controlhistory.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.OrganizationID != nil { - predicates = append(predicates, entitlementhistory.OrganizationIDEQ(*i.OrganizationID)) + if i.Status != nil { + predicates = append(predicates, controlhistory.StatusEQ(*i.Status)) } - if i.OrganizationIDNEQ != nil { - predicates = append(predicates, entitlementhistory.OrganizationIDNEQ(*i.OrganizationIDNEQ)) + if i.StatusNEQ != nil { + predicates = append(predicates, controlhistory.StatusNEQ(*i.StatusNEQ)) } - if len(i.OrganizationIDIn) > 0 { - predicates = append(predicates, entitlementhistory.OrganizationIDIn(i.OrganizationIDIn...)) + if len(i.StatusIn) > 0 { + predicates = append(predicates, controlhistory.StatusIn(i.StatusIn...)) } - if len(i.OrganizationIDNotIn) > 0 { - predicates = append(predicates, entitlementhistory.OrganizationIDNotIn(i.OrganizationIDNotIn...)) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, controlhistory.StatusNotIn(i.StatusNotIn...)) } - if i.OrganizationIDGT != nil { - predicates = append(predicates, entitlementhistory.OrganizationIDGT(*i.OrganizationIDGT)) + if i.StatusGT != nil { + predicates = append(predicates, controlhistory.StatusGT(*i.StatusGT)) } - if i.OrganizationIDGTE != nil { - predicates = append(predicates, entitlementhistory.OrganizationIDGTE(*i.OrganizationIDGTE)) + if i.StatusGTE != nil { + predicates = append(predicates, controlhistory.StatusGTE(*i.StatusGTE)) } - if i.OrganizationIDLT != nil { - predicates = append(predicates, entitlementhistory.OrganizationIDLT(*i.OrganizationIDLT)) + if i.StatusLT != nil { + predicates = append(predicates, controlhistory.StatusLT(*i.StatusLT)) } - if i.OrganizationIDLTE != nil { - predicates = append(predicates, entitlementhistory.OrganizationIDLTE(*i.OrganizationIDLTE)) + if i.StatusLTE != nil { + predicates = append(predicates, controlhistory.StatusLTE(*i.StatusLTE)) } - if i.OrganizationIDContains != nil { - predicates = append(predicates, entitlementhistory.OrganizationIDContains(*i.OrganizationIDContains)) + if i.StatusContains != nil { + predicates = append(predicates, controlhistory.StatusContains(*i.StatusContains)) } - if i.OrganizationIDHasPrefix != nil { - predicates = append(predicates, entitlementhistory.OrganizationIDHasPrefix(*i.OrganizationIDHasPrefix)) + if i.StatusHasPrefix != nil { + predicates = append(predicates, controlhistory.StatusHasPrefix(*i.StatusHasPrefix)) } - if i.OrganizationIDHasSuffix != nil { - predicates = append(predicates, entitlementhistory.OrganizationIDHasSuffix(*i.OrganizationIDHasSuffix)) + if i.StatusHasSuffix != nil { + predicates = append(predicates, controlhistory.StatusHasSuffix(*i.StatusHasSuffix)) } - if i.OrganizationIDEqualFold != nil { - predicates = append(predicates, entitlementhistory.OrganizationIDEqualFold(*i.OrganizationIDEqualFold)) + if i.StatusIsNil { + predicates = append(predicates, controlhistory.StatusIsNil()) } - if i.OrganizationIDContainsFold != nil { - predicates = append(predicates, entitlementhistory.OrganizationIDContainsFold(*i.OrganizationIDContainsFold)) + if i.StatusNotNil { + predicates = append(predicates, controlhistory.StatusNotNil()) } - if i.ExternalCustomerID != nil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDEQ(*i.ExternalCustomerID)) + if i.StatusEqualFold != nil { + predicates = append(predicates, controlhistory.StatusEqualFold(*i.StatusEqualFold)) } - if i.ExternalCustomerIDNEQ != nil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDNEQ(*i.ExternalCustomerIDNEQ)) + if i.StatusContainsFold != nil { + predicates = append(predicates, controlhistory.StatusContainsFold(*i.StatusContainsFold)) } - if len(i.ExternalCustomerIDIn) > 0 { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDIn(i.ExternalCustomerIDIn...)) + if i.ControlType != nil { + predicates = append(predicates, controlhistory.ControlTypeEQ(*i.ControlType)) } - if len(i.ExternalCustomerIDNotIn) > 0 { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDNotIn(i.ExternalCustomerIDNotIn...)) + if i.ControlTypeNEQ != nil { + predicates = append(predicates, controlhistory.ControlTypeNEQ(*i.ControlTypeNEQ)) } - if i.ExternalCustomerIDGT != nil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDGT(*i.ExternalCustomerIDGT)) + if len(i.ControlTypeIn) > 0 { + predicates = append(predicates, controlhistory.ControlTypeIn(i.ControlTypeIn...)) } - if i.ExternalCustomerIDGTE != nil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDGTE(*i.ExternalCustomerIDGTE)) + if len(i.ControlTypeNotIn) > 0 { + predicates = append(predicates, controlhistory.ControlTypeNotIn(i.ControlTypeNotIn...)) } - if i.ExternalCustomerIDLT != nil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDLT(*i.ExternalCustomerIDLT)) + if i.ControlTypeGT != nil { + predicates = append(predicates, controlhistory.ControlTypeGT(*i.ControlTypeGT)) } - if i.ExternalCustomerIDLTE != nil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDLTE(*i.ExternalCustomerIDLTE)) + if i.ControlTypeGTE != nil { + predicates = append(predicates, controlhistory.ControlTypeGTE(*i.ControlTypeGTE)) } - if i.ExternalCustomerIDContains != nil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDContains(*i.ExternalCustomerIDContains)) + if i.ControlTypeLT != nil { + predicates = append(predicates, controlhistory.ControlTypeLT(*i.ControlTypeLT)) } - if i.ExternalCustomerIDHasPrefix != nil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDHasPrefix(*i.ExternalCustomerIDHasPrefix)) + if i.ControlTypeLTE != nil { + predicates = append(predicates, controlhistory.ControlTypeLTE(*i.ControlTypeLTE)) } - if i.ExternalCustomerIDHasSuffix != nil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDHasSuffix(*i.ExternalCustomerIDHasSuffix)) + if i.ControlTypeContains != nil { + predicates = append(predicates, controlhistory.ControlTypeContains(*i.ControlTypeContains)) } - if i.ExternalCustomerIDIsNil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDIsNil()) + if i.ControlTypeHasPrefix != nil { + predicates = append(predicates, controlhistory.ControlTypeHasPrefix(*i.ControlTypeHasPrefix)) } - if i.ExternalCustomerIDNotNil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDNotNil()) + if i.ControlTypeHasSuffix != nil { + predicates = append(predicates, controlhistory.ControlTypeHasSuffix(*i.ControlTypeHasSuffix)) } - if i.ExternalCustomerIDEqualFold != nil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDEqualFold(*i.ExternalCustomerIDEqualFold)) + if i.ControlTypeIsNil { + predicates = append(predicates, controlhistory.ControlTypeIsNil()) } - if i.ExternalCustomerIDContainsFold != nil { - predicates = append(predicates, entitlementhistory.ExternalCustomerIDContainsFold(*i.ExternalCustomerIDContainsFold)) + if i.ControlTypeNotNil { + predicates = append(predicates, controlhistory.ControlTypeNotNil()) } - if i.ExternalSubscriptionID != nil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDEQ(*i.ExternalSubscriptionID)) + if i.ControlTypeEqualFold != nil { + predicates = append(predicates, controlhistory.ControlTypeEqualFold(*i.ControlTypeEqualFold)) } - if i.ExternalSubscriptionIDNEQ != nil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDNEQ(*i.ExternalSubscriptionIDNEQ)) + if i.ControlTypeContainsFold != nil { + predicates = append(predicates, controlhistory.ControlTypeContainsFold(*i.ControlTypeContainsFold)) } - if len(i.ExternalSubscriptionIDIn) > 0 { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDIn(i.ExternalSubscriptionIDIn...)) + if i.Version != nil { + predicates = append(predicates, controlhistory.VersionEQ(*i.Version)) } - if len(i.ExternalSubscriptionIDNotIn) > 0 { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDNotIn(i.ExternalSubscriptionIDNotIn...)) + if i.VersionNEQ != nil { + predicates = append(predicates, controlhistory.VersionNEQ(*i.VersionNEQ)) } - if i.ExternalSubscriptionIDGT != nil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDGT(*i.ExternalSubscriptionIDGT)) + if len(i.VersionIn) > 0 { + predicates = append(predicates, controlhistory.VersionIn(i.VersionIn...)) } - if i.ExternalSubscriptionIDGTE != nil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDGTE(*i.ExternalSubscriptionIDGTE)) + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, controlhistory.VersionNotIn(i.VersionNotIn...)) } - if i.ExternalSubscriptionIDLT != nil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDLT(*i.ExternalSubscriptionIDLT)) + if i.VersionGT != nil { + predicates = append(predicates, controlhistory.VersionGT(*i.VersionGT)) } - if i.ExternalSubscriptionIDLTE != nil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDLTE(*i.ExternalSubscriptionIDLTE)) + if i.VersionGTE != nil { + predicates = append(predicates, controlhistory.VersionGTE(*i.VersionGTE)) } - if i.ExternalSubscriptionIDContains != nil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDContains(*i.ExternalSubscriptionIDContains)) + if i.VersionLT != nil { + predicates = append(predicates, controlhistory.VersionLT(*i.VersionLT)) } - if i.ExternalSubscriptionIDHasPrefix != nil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDHasPrefix(*i.ExternalSubscriptionIDHasPrefix)) + if i.VersionLTE != nil { + predicates = append(predicates, controlhistory.VersionLTE(*i.VersionLTE)) } - if i.ExternalSubscriptionIDHasSuffix != nil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDHasSuffix(*i.ExternalSubscriptionIDHasSuffix)) + if i.VersionContains != nil { + predicates = append(predicates, controlhistory.VersionContains(*i.VersionContains)) } - if i.ExternalSubscriptionIDIsNil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDIsNil()) + if i.VersionHasPrefix != nil { + predicates = append(predicates, controlhistory.VersionHasPrefix(*i.VersionHasPrefix)) } - if i.ExternalSubscriptionIDNotNil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDNotNil()) + if i.VersionHasSuffix != nil { + predicates = append(predicates, controlhistory.VersionHasSuffix(*i.VersionHasSuffix)) } - if i.ExternalSubscriptionIDEqualFold != nil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDEqualFold(*i.ExternalSubscriptionIDEqualFold)) + if i.VersionIsNil { + predicates = append(predicates, controlhistory.VersionIsNil()) } - if i.ExternalSubscriptionIDContainsFold != nil { - predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDContainsFold(*i.ExternalSubscriptionIDContainsFold)) + if i.VersionNotNil { + predicates = append(predicates, controlhistory.VersionNotNil()) } - if i.Expires != nil { - predicates = append(predicates, entitlementhistory.ExpiresEQ(*i.Expires)) + if i.VersionEqualFold != nil { + predicates = append(predicates, controlhistory.VersionEqualFold(*i.VersionEqualFold)) } - if i.ExpiresNEQ != nil { - predicates = append(predicates, entitlementhistory.ExpiresNEQ(*i.ExpiresNEQ)) + if i.VersionContainsFold != nil { + predicates = append(predicates, controlhistory.VersionContainsFold(*i.VersionContainsFold)) } - if i.ExpiresAt != nil { - predicates = append(predicates, entitlementhistory.ExpiresAtEQ(*i.ExpiresAt)) + if i.ControlNumber != nil { + predicates = append(predicates, controlhistory.ControlNumberEQ(*i.ControlNumber)) } - if i.ExpiresAtNEQ != nil { - predicates = append(predicates, entitlementhistory.ExpiresAtNEQ(*i.ExpiresAtNEQ)) + if i.ControlNumberNEQ != nil { + predicates = append(predicates, controlhistory.ControlNumberNEQ(*i.ControlNumberNEQ)) } - if len(i.ExpiresAtIn) > 0 { - predicates = append(predicates, entitlementhistory.ExpiresAtIn(i.ExpiresAtIn...)) + if len(i.ControlNumberIn) > 0 { + predicates = append(predicates, controlhistory.ControlNumberIn(i.ControlNumberIn...)) } - if len(i.ExpiresAtNotIn) > 0 { - predicates = append(predicates, entitlementhistory.ExpiresAtNotIn(i.ExpiresAtNotIn...)) + if len(i.ControlNumberNotIn) > 0 { + predicates = append(predicates, controlhistory.ControlNumberNotIn(i.ControlNumberNotIn...)) } - if i.ExpiresAtGT != nil { - predicates = append(predicates, entitlementhistory.ExpiresAtGT(*i.ExpiresAtGT)) + if i.ControlNumberGT != nil { + predicates = append(predicates, controlhistory.ControlNumberGT(*i.ControlNumberGT)) } - if i.ExpiresAtGTE != nil { - predicates = append(predicates, entitlementhistory.ExpiresAtGTE(*i.ExpiresAtGTE)) + if i.ControlNumberGTE != nil { + predicates = append(predicates, controlhistory.ControlNumberGTE(*i.ControlNumberGTE)) } - if i.ExpiresAtLT != nil { - predicates = append(predicates, entitlementhistory.ExpiresAtLT(*i.ExpiresAtLT)) + if i.ControlNumberLT != nil { + predicates = append(predicates, controlhistory.ControlNumberLT(*i.ControlNumberLT)) } - if i.ExpiresAtLTE != nil { - predicates = append(predicates, entitlementhistory.ExpiresAtLTE(*i.ExpiresAtLTE)) + if i.ControlNumberLTE != nil { + predicates = append(predicates, controlhistory.ControlNumberLTE(*i.ControlNumberLTE)) } - if i.ExpiresAtIsNil { - predicates = append(predicates, entitlementhistory.ExpiresAtIsNil()) + if i.ControlNumberContains != nil { + predicates = append(predicates, controlhistory.ControlNumberContains(*i.ControlNumberContains)) } - if i.ExpiresAtNotNil { - predicates = append(predicates, entitlementhistory.ExpiresAtNotNil()) + if i.ControlNumberHasPrefix != nil { + predicates = append(predicates, controlhistory.ControlNumberHasPrefix(*i.ControlNumberHasPrefix)) } - if i.Cancelled != nil { - predicates = append(predicates, entitlementhistory.CancelledEQ(*i.Cancelled)) + if i.ControlNumberHasSuffix != nil { + predicates = append(predicates, controlhistory.ControlNumberHasSuffix(*i.ControlNumberHasSuffix)) } - if i.CancelledNEQ != nil { - predicates = append(predicates, entitlementhistory.CancelledNEQ(*i.CancelledNEQ)) + if i.ControlNumberIsNil { + predicates = append(predicates, controlhistory.ControlNumberIsNil()) + } + if i.ControlNumberNotNil { + predicates = append(predicates, controlhistory.ControlNumberNotNil()) + } + if i.ControlNumberEqualFold != nil { + predicates = append(predicates, controlhistory.ControlNumberEqualFold(*i.ControlNumberEqualFold)) + } + if i.ControlNumberContainsFold != nil { + predicates = append(predicates, controlhistory.ControlNumberContainsFold(*i.ControlNumberContainsFold)) + } + if i.Family != nil { + predicates = append(predicates, controlhistory.FamilyEQ(*i.Family)) + } + if i.FamilyNEQ != nil { + predicates = append(predicates, controlhistory.FamilyNEQ(*i.FamilyNEQ)) + } + if len(i.FamilyIn) > 0 { + predicates = append(predicates, controlhistory.FamilyIn(i.FamilyIn...)) + } + if len(i.FamilyNotIn) > 0 { + predicates = append(predicates, controlhistory.FamilyNotIn(i.FamilyNotIn...)) + } + if i.FamilyGT != nil { + predicates = append(predicates, controlhistory.FamilyGT(*i.FamilyGT)) + } + if i.FamilyGTE != nil { + predicates = append(predicates, controlhistory.FamilyGTE(*i.FamilyGTE)) + } + if i.FamilyLT != nil { + predicates = append(predicates, controlhistory.FamilyLT(*i.FamilyLT)) + } + if i.FamilyLTE != nil { + predicates = append(predicates, controlhistory.FamilyLTE(*i.FamilyLTE)) + } + if i.FamilyContains != nil { + predicates = append(predicates, controlhistory.FamilyContains(*i.FamilyContains)) + } + if i.FamilyHasPrefix != nil { + predicates = append(predicates, controlhistory.FamilyHasPrefix(*i.FamilyHasPrefix)) + } + if i.FamilyHasSuffix != nil { + predicates = append(predicates, controlhistory.FamilyHasSuffix(*i.FamilyHasSuffix)) + } + if i.FamilyIsNil { + predicates = append(predicates, controlhistory.FamilyIsNil()) + } + if i.FamilyNotNil { + predicates = append(predicates, controlhistory.FamilyNotNil()) + } + if i.FamilyEqualFold != nil { + predicates = append(predicates, controlhistory.FamilyEqualFold(*i.FamilyEqualFold)) + } + if i.FamilyContainsFold != nil { + predicates = append(predicates, controlhistory.FamilyContainsFold(*i.FamilyContainsFold)) + } + if i.Class != nil { + predicates = append(predicates, controlhistory.ClassEQ(*i.Class)) + } + if i.ClassNEQ != nil { + predicates = append(predicates, controlhistory.ClassNEQ(*i.ClassNEQ)) + } + if len(i.ClassIn) > 0 { + predicates = append(predicates, controlhistory.ClassIn(i.ClassIn...)) + } + if len(i.ClassNotIn) > 0 { + predicates = append(predicates, controlhistory.ClassNotIn(i.ClassNotIn...)) + } + if i.ClassGT != nil { + predicates = append(predicates, controlhistory.ClassGT(*i.ClassGT)) + } + if i.ClassGTE != nil { + predicates = append(predicates, controlhistory.ClassGTE(*i.ClassGTE)) + } + if i.ClassLT != nil { + predicates = append(predicates, controlhistory.ClassLT(*i.ClassLT)) + } + if i.ClassLTE != nil { + predicates = append(predicates, controlhistory.ClassLTE(*i.ClassLTE)) + } + if i.ClassContains != nil { + predicates = append(predicates, controlhistory.ClassContains(*i.ClassContains)) + } + if i.ClassHasPrefix != nil { + predicates = append(predicates, controlhistory.ClassHasPrefix(*i.ClassHasPrefix)) + } + if i.ClassHasSuffix != nil { + predicates = append(predicates, controlhistory.ClassHasSuffix(*i.ClassHasSuffix)) + } + if i.ClassIsNil { + predicates = append(predicates, controlhistory.ClassIsNil()) + } + if i.ClassNotNil { + predicates = append(predicates, controlhistory.ClassNotNil()) + } + if i.ClassEqualFold != nil { + predicates = append(predicates, controlhistory.ClassEqualFold(*i.ClassEqualFold)) + } + if i.ClassContainsFold != nil { + predicates = append(predicates, controlhistory.ClassContainsFold(*i.ClassContainsFold)) + } + if i.Source != nil { + predicates = append(predicates, controlhistory.SourceEQ(*i.Source)) + } + if i.SourceNEQ != nil { + predicates = append(predicates, controlhistory.SourceNEQ(*i.SourceNEQ)) + } + if len(i.SourceIn) > 0 { + predicates = append(predicates, controlhistory.SourceIn(i.SourceIn...)) + } + if len(i.SourceNotIn) > 0 { + predicates = append(predicates, controlhistory.SourceNotIn(i.SourceNotIn...)) + } + if i.SourceGT != nil { + predicates = append(predicates, controlhistory.SourceGT(*i.SourceGT)) + } + if i.SourceGTE != nil { + predicates = append(predicates, controlhistory.SourceGTE(*i.SourceGTE)) + } + if i.SourceLT != nil { + predicates = append(predicates, controlhistory.SourceLT(*i.SourceLT)) + } + if i.SourceLTE != nil { + predicates = append(predicates, controlhistory.SourceLTE(*i.SourceLTE)) + } + if i.SourceContains != nil { + predicates = append(predicates, controlhistory.SourceContains(*i.SourceContains)) + } + if i.SourceHasPrefix != nil { + predicates = append(predicates, controlhistory.SourceHasPrefix(*i.SourceHasPrefix)) + } + if i.SourceHasSuffix != nil { + predicates = append(predicates, controlhistory.SourceHasSuffix(*i.SourceHasSuffix)) + } + if i.SourceIsNil { + predicates = append(predicates, controlhistory.SourceIsNil()) + } + if i.SourceNotNil { + predicates = append(predicates, controlhistory.SourceNotNil()) + } + if i.SourceEqualFold != nil { + predicates = append(predicates, controlhistory.SourceEqualFold(*i.SourceEqualFold)) + } + if i.SourceContainsFold != nil { + predicates = append(predicates, controlhistory.SourceContainsFold(*i.SourceContainsFold)) + } + if i.Satisfies != nil { + predicates = append(predicates, controlhistory.SatisfiesEQ(*i.Satisfies)) + } + if i.SatisfiesNEQ != nil { + predicates = append(predicates, controlhistory.SatisfiesNEQ(*i.SatisfiesNEQ)) + } + if len(i.SatisfiesIn) > 0 { + predicates = append(predicates, controlhistory.SatisfiesIn(i.SatisfiesIn...)) + } + if len(i.SatisfiesNotIn) > 0 { + predicates = append(predicates, controlhistory.SatisfiesNotIn(i.SatisfiesNotIn...)) + } + if i.SatisfiesGT != nil { + predicates = append(predicates, controlhistory.SatisfiesGT(*i.SatisfiesGT)) + } + if i.SatisfiesGTE != nil { + predicates = append(predicates, controlhistory.SatisfiesGTE(*i.SatisfiesGTE)) + } + if i.SatisfiesLT != nil { + predicates = append(predicates, controlhistory.SatisfiesLT(*i.SatisfiesLT)) + } + if i.SatisfiesLTE != nil { + predicates = append(predicates, controlhistory.SatisfiesLTE(*i.SatisfiesLTE)) + } + if i.SatisfiesContains != nil { + predicates = append(predicates, controlhistory.SatisfiesContains(*i.SatisfiesContains)) + } + if i.SatisfiesHasPrefix != nil { + predicates = append(predicates, controlhistory.SatisfiesHasPrefix(*i.SatisfiesHasPrefix)) + } + if i.SatisfiesHasSuffix != nil { + predicates = append(predicates, controlhistory.SatisfiesHasSuffix(*i.SatisfiesHasSuffix)) + } + if i.SatisfiesIsNil { + predicates = append(predicates, controlhistory.SatisfiesIsNil()) + } + if i.SatisfiesNotNil { + predicates = append(predicates, controlhistory.SatisfiesNotNil()) + } + if i.SatisfiesEqualFold != nil { + predicates = append(predicates, controlhistory.SatisfiesEqualFold(*i.SatisfiesEqualFold)) + } + if i.SatisfiesContainsFold != nil { + predicates = append(predicates, controlhistory.SatisfiesContainsFold(*i.SatisfiesContainsFold)) + } + if i.MappedFrameworks != nil { + predicates = append(predicates, controlhistory.MappedFrameworksEQ(*i.MappedFrameworks)) + } + if i.MappedFrameworksNEQ != nil { + predicates = append(predicates, controlhistory.MappedFrameworksNEQ(*i.MappedFrameworksNEQ)) + } + if len(i.MappedFrameworksIn) > 0 { + predicates = append(predicates, controlhistory.MappedFrameworksIn(i.MappedFrameworksIn...)) + } + if len(i.MappedFrameworksNotIn) > 0 { + predicates = append(predicates, controlhistory.MappedFrameworksNotIn(i.MappedFrameworksNotIn...)) + } + if i.MappedFrameworksGT != nil { + predicates = append(predicates, controlhistory.MappedFrameworksGT(*i.MappedFrameworksGT)) + } + if i.MappedFrameworksGTE != nil { + predicates = append(predicates, controlhistory.MappedFrameworksGTE(*i.MappedFrameworksGTE)) + } + if i.MappedFrameworksLT != nil { + predicates = append(predicates, controlhistory.MappedFrameworksLT(*i.MappedFrameworksLT)) + } + if i.MappedFrameworksLTE != nil { + predicates = append(predicates, controlhistory.MappedFrameworksLTE(*i.MappedFrameworksLTE)) + } + if i.MappedFrameworksContains != nil { + predicates = append(predicates, controlhistory.MappedFrameworksContains(*i.MappedFrameworksContains)) + } + if i.MappedFrameworksHasPrefix != nil { + predicates = append(predicates, controlhistory.MappedFrameworksHasPrefix(*i.MappedFrameworksHasPrefix)) + } + if i.MappedFrameworksHasSuffix != nil { + predicates = append(predicates, controlhistory.MappedFrameworksHasSuffix(*i.MappedFrameworksHasSuffix)) + } + if i.MappedFrameworksIsNil { + predicates = append(predicates, controlhistory.MappedFrameworksIsNil()) + } + if i.MappedFrameworksNotNil { + predicates = append(predicates, controlhistory.MappedFrameworksNotNil()) + } + if i.MappedFrameworksEqualFold != nil { + predicates = append(predicates, controlhistory.MappedFrameworksEqualFold(*i.MappedFrameworksEqualFold)) + } + if i.MappedFrameworksContainsFold != nil { + predicates = append(predicates, controlhistory.MappedFrameworksContainsFold(*i.MappedFrameworksContainsFold)) } switch len(predicates) { case 0: - return nil, ErrEmptyEntitlementHistoryWhereInput + return nil, ErrEmptyControlHistoryWhereInput case 1: return predicates[0], nil default: - return entitlementhistory.And(predicates...), nil + return controlhistory.And(predicates...), nil } } -// EntitlementPlanWhereInput represents a where input for filtering EntitlementPlan queries. -type EntitlementPlanWhereInput struct { - Predicates []predicate.EntitlementPlan `json:"-"` - Not *EntitlementPlanWhereInput `json:"not,omitempty"` - Or []*EntitlementPlanWhereInput `json:"or,omitempty"` - And []*EntitlementPlanWhereInput `json:"and,omitempty"` +// ControlObjectiveWhereInput represents a where input for filtering ControlObjective queries. +type ControlObjectiveWhereInput struct { + Predicates []predicate.ControlObjective `json:"-"` + Not *ControlObjectiveWhereInput `json:"not,omitempty"` + Or []*ControlObjectiveWhereInput `json:"or,omitempty"` + And []*ControlObjectiveWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -5919,40 +7095,6 @@ type EntitlementPlanWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` - - // "display_name" field predicates. - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGT *string `json:"displayNameGT,omitempty"` - DisplayNameGTE *string `json:"displayNameGTE,omitempty"` - DisplayNameLT *string `json:"displayNameLT,omitempty"` - DisplayNameLTE *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameIsNil bool `json:"displayNameIsNil,omitempty"` - DisplayNameNotNil bool `json:"displayNameNotNil,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` - // "name" field predicates. Name *string `json:"name,omitempty"` NameNEQ *string `json:"nameNEQ,omitempty"` @@ -5985,7 +7127,41 @@ type EntitlementPlanWhereInput struct { DescriptionEqualFold *string `json:"descriptionEqualFold,omitempty"` DescriptionContainsFold *string `json:"descriptionContainsFold,omitempty"` - // "version" field predicates. + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + + // "control_objective_type" field predicates. + ControlObjectiveType *string `json:"controlObjectiveType,omitempty"` + ControlObjectiveTypeNEQ *string `json:"controlObjectiveTypeNEQ,omitempty"` + ControlObjectiveTypeIn []string `json:"controlObjectiveTypeIn,omitempty"` + ControlObjectiveTypeNotIn []string `json:"controlObjectiveTypeNotIn,omitempty"` + ControlObjectiveTypeGT *string `json:"controlObjectiveTypeGT,omitempty"` + ControlObjectiveTypeGTE *string `json:"controlObjectiveTypeGTE,omitempty"` + ControlObjectiveTypeLT *string `json:"controlObjectiveTypeLT,omitempty"` + ControlObjectiveTypeLTE *string `json:"controlObjectiveTypeLTE,omitempty"` + ControlObjectiveTypeContains *string `json:"controlObjectiveTypeContains,omitempty"` + ControlObjectiveTypeHasPrefix *string `json:"controlObjectiveTypeHasPrefix,omitempty"` + ControlObjectiveTypeHasSuffix *string `json:"controlObjectiveTypeHasSuffix,omitempty"` + ControlObjectiveTypeIsNil bool `json:"controlObjectiveTypeIsNil,omitempty"` + ControlObjectiveTypeNotNil bool `json:"controlObjectiveTypeNotNil,omitempty"` + ControlObjectiveTypeEqualFold *string `json:"controlObjectiveTypeEqualFold,omitempty"` + ControlObjectiveTypeContainsFold *string `json:"controlObjectiveTypeContainsFold,omitempty"` + + // "version" field predicates. Version *string `json:"version,omitempty"` VersionNEQ *string `json:"versionNEQ,omitempty"` VersionIn []string `json:"versionIn,omitempty"` @@ -5997,43 +7173,138 @@ type EntitlementPlanWhereInput struct { VersionContains *string `json:"versionContains,omitempty"` VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil bool `json:"versionIsNil,omitempty"` + VersionNotNil bool `json:"versionNotNil,omitempty"` VersionEqualFold *string `json:"versionEqualFold,omitempty"` VersionContainsFold *string `json:"versionContainsFold,omitempty"` - // "owner" edge predicates. - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - - // "entitlements" edge predicates. - HasEntitlements *bool `json:"hasEntitlements,omitempty"` - HasEntitlementsWith []*EntitlementWhereInput `json:"hasEntitlementsWith,omitempty"` - - // "base_features" edge predicates. - HasBaseFeatures *bool `json:"hasBaseFeatures,omitempty"` - HasBaseFeaturesWith []*FeatureWhereInput `json:"hasBaseFeaturesWith,omitempty"` - - // "events" edge predicates. - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` - - // "features" edge predicates. - HasFeatures *bool `json:"hasFeatures,omitempty"` - HasFeaturesWith []*EntitlementPlanFeatureWhereInput `json:"hasFeaturesWith,omitempty"` + // "control_number" field predicates. + ControlNumber *string `json:"controlNumber,omitempty"` + ControlNumberNEQ *string `json:"controlNumberNEQ,omitempty"` + ControlNumberIn []string `json:"controlNumberIn,omitempty"` + ControlNumberNotIn []string `json:"controlNumberNotIn,omitempty"` + ControlNumberGT *string `json:"controlNumberGT,omitempty"` + ControlNumberGTE *string `json:"controlNumberGTE,omitempty"` + ControlNumberLT *string `json:"controlNumberLT,omitempty"` + ControlNumberLTE *string `json:"controlNumberLTE,omitempty"` + ControlNumberContains *string `json:"controlNumberContains,omitempty"` + ControlNumberHasPrefix *string `json:"controlNumberHasPrefix,omitempty"` + ControlNumberHasSuffix *string `json:"controlNumberHasSuffix,omitempty"` + ControlNumberIsNil bool `json:"controlNumberIsNil,omitempty"` + ControlNumberNotNil bool `json:"controlNumberNotNil,omitempty"` + ControlNumberEqualFold *string `json:"controlNumberEqualFold,omitempty"` + ControlNumberContainsFold *string `json:"controlNumberContainsFold,omitempty"` + + // "family" field predicates. + Family *string `json:"family,omitempty"` + FamilyNEQ *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGT *string `json:"familyGT,omitempty"` + FamilyGTE *string `json:"familyGTE,omitempty"` + FamilyLT *string `json:"familyLT,omitempty"` + FamilyLTE *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil bool `json:"familyIsNil,omitempty"` + FamilyNotNil bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + + // "class" field predicates. + Class *string `json:"class,omitempty"` + ClassNEQ *string `json:"classNEQ,omitempty"` + ClassIn []string `json:"classIn,omitempty"` + ClassNotIn []string `json:"classNotIn,omitempty"` + ClassGT *string `json:"classGT,omitempty"` + ClassGTE *string `json:"classGTE,omitempty"` + ClassLT *string `json:"classLT,omitempty"` + ClassLTE *string `json:"classLTE,omitempty"` + ClassContains *string `json:"classContains,omitempty"` + ClassHasPrefix *string `json:"classHasPrefix,omitempty"` + ClassHasSuffix *string `json:"classHasSuffix,omitempty"` + ClassIsNil bool `json:"classIsNil,omitempty"` + ClassNotNil bool `json:"classNotNil,omitempty"` + ClassEqualFold *string `json:"classEqualFold,omitempty"` + ClassContainsFold *string `json:"classContainsFold,omitempty"` + + // "source" field predicates. + Source *string `json:"source,omitempty"` + SourceNEQ *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGT *string `json:"sourceGT,omitempty"` + SourceGTE *string `json:"sourceGTE,omitempty"` + SourceLT *string `json:"sourceLT,omitempty"` + SourceLTE *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil bool `json:"sourceIsNil,omitempty"` + SourceNotNil bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + + // "mapped_frameworks" field predicates. + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + MappedFrameworksNEQ *string `json:"mappedFrameworksNEQ,omitempty"` + MappedFrameworksIn []string `json:"mappedFrameworksIn,omitempty"` + MappedFrameworksNotIn []string `json:"mappedFrameworksNotIn,omitempty"` + MappedFrameworksGT *string `json:"mappedFrameworksGT,omitempty"` + MappedFrameworksGTE *string `json:"mappedFrameworksGTE,omitempty"` + MappedFrameworksLT *string `json:"mappedFrameworksLT,omitempty"` + MappedFrameworksLTE *string `json:"mappedFrameworksLTE,omitempty"` + MappedFrameworksContains *string `json:"mappedFrameworksContains,omitempty"` + MappedFrameworksHasPrefix *string `json:"mappedFrameworksHasPrefix,omitempty"` + MappedFrameworksHasSuffix *string `json:"mappedFrameworksHasSuffix,omitempty"` + MappedFrameworksIsNil bool `json:"mappedFrameworksIsNil,omitempty"` + MappedFrameworksNotNil bool `json:"mappedFrameworksNotNil,omitempty"` + MappedFrameworksEqualFold *string `json:"mappedFrameworksEqualFold,omitempty"` + MappedFrameworksContainsFold *string `json:"mappedFrameworksContainsFold,omitempty"` + + // "policy" edge predicates. + HasPolicy *bool `json:"hasPolicy,omitempty"` + HasPolicyWith []*InternalPolicyWhereInput `json:"hasPolicyWith,omitempty"` + + // "controls" edge predicates. + HasControls *bool `json:"hasControls,omitempty"` + HasControlsWith []*ControlWhereInput `json:"hasControlsWith,omitempty"` + + // "procedures" edge predicates. + HasProcedures *bool `json:"hasProcedures,omitempty"` + HasProceduresWith []*ProcedureWhereInput `json:"hasProceduresWith,omitempty"` + + // "risks" edge predicates. + HasRisks *bool `json:"hasRisks,omitempty"` + HasRisksWith []*RiskWhereInput `json:"hasRisksWith,omitempty"` + + // "subcontrols" edge predicates. + HasSubcontrols *bool `json:"hasSubcontrols,omitempty"` + HasSubcontrolsWith []*SubcontrolWhereInput `json:"hasSubcontrolsWith,omitempty"` + + // "standard" edge predicates. + HasStandard *bool `json:"hasStandard,omitempty"` + HasStandardWith []*StandardWhereInput `json:"hasStandardWith,omitempty"` + + // "narratives" edge predicates. + HasNarratives *bool `json:"hasNarratives,omitempty"` + HasNarrativesWith []*NarrativeWhereInput `json:"hasNarrativesWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *EntitlementPlanWhereInput) AddPredicates(predicates ...predicate.EntitlementPlan) { +func (i *ControlObjectiveWhereInput) AddPredicates(predicates ...predicate.ControlObjective) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the EntitlementPlanWhereInput filter on the EntitlementPlanQuery builder. -func (i *EntitlementPlanWhereInput) Filter(q *EntitlementPlanQuery) (*EntitlementPlanQuery, error) { +// Filter applies the ControlObjectiveWhereInput filter on the ControlObjectiveQuery builder. +func (i *ControlObjectiveWhereInput) Filter(q *ControlObjectiveQuery) (*ControlObjectiveQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyEntitlementPlanWhereInput { + if err == ErrEmptyControlObjectiveWhereInput { return q, nil } return nil, err @@ -6041,19 +7312,19 @@ func (i *EntitlementPlanWhereInput) Filter(q *EntitlementPlanQuery) (*Entitlemen return q.Where(p), nil } -// ErrEmptyEntitlementPlanWhereInput is returned in case the EntitlementPlanWhereInput is empty. -var ErrEmptyEntitlementPlanWhereInput = errors.New("generated: empty predicate EntitlementPlanWhereInput") +// ErrEmptyControlObjectiveWhereInput is returned in case the ControlObjectiveWhereInput is empty. +var ErrEmptyControlObjectiveWhereInput = errors.New("generated: empty predicate ControlObjectiveWhereInput") -// P returns a predicate for filtering entitlementplans. +// P returns a predicate for filtering controlobjectives. // An error is returned if the input is empty or invalid. -func (i *EntitlementPlanWhereInput) P() (predicate.EntitlementPlan, error) { - var predicates []predicate.EntitlementPlan +func (i *ControlObjectiveWhereInput) P() (predicate.ControlObjective, error) { + var predicates []predicate.ControlObjective if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, entitlementplan.Not(p)) + predicates = append(predicates, controlobjective.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -6063,7 +7334,7 @@ func (i *EntitlementPlanWhereInput) P() (predicate.EntitlementPlan, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.EntitlementPlan, 0, n) + or := make([]predicate.ControlObjective, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -6071,7 +7342,7 @@ func (i *EntitlementPlanWhereInput) P() (predicate.EntitlementPlan, error) { } or = append(or, p) } - predicates = append(predicates, entitlementplan.Or(or...)) + predicates = append(predicates, controlobjective.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -6081,7 +7352,7 @@ func (i *EntitlementPlanWhereInput) P() (predicate.EntitlementPlan, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.EntitlementPlan, 0, n) + and := make([]predicate.ControlObjective, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -6089,584 +7360,851 @@ func (i *EntitlementPlanWhereInput) P() (predicate.EntitlementPlan, error) { } and = append(and, p) } - predicates = append(predicates, entitlementplan.And(and...)) + predicates = append(predicates, controlobjective.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, entitlementplan.IDEQ(*i.ID)) + predicates = append(predicates, controlobjective.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, entitlementplan.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, controlobjective.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, entitlementplan.IDIn(i.IDIn...)) + predicates = append(predicates, controlobjective.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, entitlementplan.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, controlobjective.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, entitlementplan.IDGT(*i.IDGT)) + predicates = append(predicates, controlobjective.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, entitlementplan.IDGTE(*i.IDGTE)) + predicates = append(predicates, controlobjective.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, entitlementplan.IDLT(*i.IDLT)) + predicates = append(predicates, controlobjective.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, entitlementplan.IDLTE(*i.IDLTE)) + predicates = append(predicates, controlobjective.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, entitlementplan.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, controlobjective.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, entitlementplan.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, controlobjective.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, entitlementplan.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, controlobjective.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, entitlementplan.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, controlobjective.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, entitlementplan.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, controlobjective.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, entitlementplan.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, controlobjective.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, entitlementplan.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, controlobjective.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, entitlementplan.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, controlobjective.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, entitlementplan.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, controlobjective.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, entitlementplan.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, controlobjective.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, entitlementplan.CreatedAtIsNil()) + predicates = append(predicates, controlobjective.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, entitlementplan.CreatedAtNotNil()) + predicates = append(predicates, controlobjective.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, entitlementplan.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, controlobjective.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, entitlementplan.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, controlobjective.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, entitlementplan.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, controlobjective.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, entitlementplan.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, controlobjective.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, entitlementplan.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, controlobjective.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, entitlementplan.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, controlobjective.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, entitlementplan.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, controlobjective.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, entitlementplan.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, controlobjective.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, entitlementplan.UpdatedAtIsNil()) + predicates = append(predicates, controlobjective.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, entitlementplan.UpdatedAtNotNil()) + predicates = append(predicates, controlobjective.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, entitlementplan.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, controlobjective.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, entitlementplan.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, controlobjective.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, entitlementplan.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, controlobjective.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, entitlementplan.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, controlobjective.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, entitlementplan.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, controlobjective.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, entitlementplan.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, controlobjective.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, entitlementplan.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, controlobjective.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, entitlementplan.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, controlobjective.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, entitlementplan.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, controlobjective.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, entitlementplan.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, controlobjective.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, entitlementplan.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, controlobjective.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, entitlementplan.CreatedByIsNil()) + predicates = append(predicates, controlobjective.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, entitlementplan.CreatedByNotNil()) + predicates = append(predicates, controlobjective.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, entitlementplan.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, controlobjective.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, entitlementplan.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, controlobjective.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, entitlementplan.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, controlobjective.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, entitlementplan.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, controlobjective.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, entitlementplan.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, controlobjective.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, entitlementplan.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, controlobjective.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, entitlementplan.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, controlobjective.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, entitlementplan.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, controlobjective.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, entitlementplan.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, controlobjective.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, entitlementplan.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, controlobjective.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, entitlementplan.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, controlobjective.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, entitlementplan.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, controlobjective.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, entitlementplan.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, controlobjective.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, entitlementplan.UpdatedByIsNil()) + predicates = append(predicates, controlobjective.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, entitlementplan.UpdatedByNotNil()) + predicates = append(predicates, controlobjective.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, entitlementplan.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, controlobjective.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, entitlementplan.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, controlobjective.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, entitlementplan.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, controlobjective.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, entitlementplan.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, controlobjective.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, entitlementplan.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, controlobjective.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, entitlementplan.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, controlobjective.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, entitlementplan.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, controlobjective.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, entitlementplan.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, controlobjective.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, entitlementplan.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, controlobjective.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, entitlementplan.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, controlobjective.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, entitlementplan.DeletedAtIsNil()) + predicates = append(predicates, controlobjective.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, entitlementplan.DeletedAtNotNil()) + predicates = append(predicates, controlobjective.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, entitlementplan.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, controlobjective.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, entitlementplan.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, controlobjective.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, entitlementplan.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, controlobjective.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, entitlementplan.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, controlobjective.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, entitlementplan.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, controlobjective.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, entitlementplan.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, controlobjective.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, entitlementplan.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, controlobjective.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, entitlementplan.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, controlobjective.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, entitlementplan.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, controlobjective.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, entitlementplan.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, controlobjective.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, entitlementplan.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, controlobjective.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, entitlementplan.DeletedByIsNil()) + predicates = append(predicates, controlobjective.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, entitlementplan.DeletedByNotNil()) + predicates = append(predicates, controlobjective.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, entitlementplan.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, controlobjective.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, entitlementplan.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, controlobjective.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.OwnerID != nil { - predicates = append(predicates, entitlementplan.OwnerIDEQ(*i.OwnerID)) + if i.Name != nil { + predicates = append(predicates, controlobjective.NameEQ(*i.Name)) } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, entitlementplan.OwnerIDNEQ(*i.OwnerIDNEQ)) + if i.NameNEQ != nil { + predicates = append(predicates, controlobjective.NameNEQ(*i.NameNEQ)) } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, entitlementplan.OwnerIDIn(i.OwnerIDIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, controlobjective.NameIn(i.NameIn...)) } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, entitlementplan.OwnerIDNotIn(i.OwnerIDNotIn...)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, controlobjective.NameNotIn(i.NameNotIn...)) } - if i.OwnerIDGT != nil { - predicates = append(predicates, entitlementplan.OwnerIDGT(*i.OwnerIDGT)) + if i.NameGT != nil { + predicates = append(predicates, controlobjective.NameGT(*i.NameGT)) } - if i.OwnerIDGTE != nil { - predicates = append(predicates, entitlementplan.OwnerIDGTE(*i.OwnerIDGTE)) + if i.NameGTE != nil { + predicates = append(predicates, controlobjective.NameGTE(*i.NameGTE)) } - if i.OwnerIDLT != nil { - predicates = append(predicates, entitlementplan.OwnerIDLT(*i.OwnerIDLT)) + if i.NameLT != nil { + predicates = append(predicates, controlobjective.NameLT(*i.NameLT)) } - if i.OwnerIDLTE != nil { - predicates = append(predicates, entitlementplan.OwnerIDLTE(*i.OwnerIDLTE)) + if i.NameLTE != nil { + predicates = append(predicates, controlobjective.NameLTE(*i.NameLTE)) } - if i.OwnerIDContains != nil { - predicates = append(predicates, entitlementplan.OwnerIDContains(*i.OwnerIDContains)) + if i.NameContains != nil { + predicates = append(predicates, controlobjective.NameContains(*i.NameContains)) } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, entitlementplan.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + if i.NameHasPrefix != nil { + predicates = append(predicates, controlobjective.NameHasPrefix(*i.NameHasPrefix)) } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, entitlementplan.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + if i.NameHasSuffix != nil { + predicates = append(predicates, controlobjective.NameHasSuffix(*i.NameHasSuffix)) } - if i.OwnerIDIsNil { - predicates = append(predicates, entitlementplan.OwnerIDIsNil()) + if i.NameEqualFold != nil { + predicates = append(predicates, controlobjective.NameEqualFold(*i.NameEqualFold)) } - if i.OwnerIDNotNil { - predicates = append(predicates, entitlementplan.OwnerIDNotNil()) + if i.NameContainsFold != nil { + predicates = append(predicates, controlobjective.NameContainsFold(*i.NameContainsFold)) } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, entitlementplan.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + if i.Description != nil { + predicates = append(predicates, controlobjective.DescriptionEQ(*i.Description)) } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, entitlementplan.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, controlobjective.DescriptionNEQ(*i.DescriptionNEQ)) } - if i.DisplayName != nil { - predicates = append(predicates, entitlementplan.DisplayNameEQ(*i.DisplayName)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, controlobjective.DescriptionIn(i.DescriptionIn...)) } - if i.DisplayNameNEQ != nil { - predicates = append(predicates, entitlementplan.DisplayNameNEQ(*i.DisplayNameNEQ)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, controlobjective.DescriptionNotIn(i.DescriptionNotIn...)) } - if len(i.DisplayNameIn) > 0 { - predicates = append(predicates, entitlementplan.DisplayNameIn(i.DisplayNameIn...)) + if i.DescriptionGT != nil { + predicates = append(predicates, controlobjective.DescriptionGT(*i.DescriptionGT)) } - if len(i.DisplayNameNotIn) > 0 { - predicates = append(predicates, entitlementplan.DisplayNameNotIn(i.DisplayNameNotIn...)) + if i.DescriptionGTE != nil { + predicates = append(predicates, controlobjective.DescriptionGTE(*i.DescriptionGTE)) } - if i.DisplayNameGT != nil { - predicates = append(predicates, entitlementplan.DisplayNameGT(*i.DisplayNameGT)) + if i.DescriptionLT != nil { + predicates = append(predicates, controlobjective.DescriptionLT(*i.DescriptionLT)) } - if i.DisplayNameGTE != nil { - predicates = append(predicates, entitlementplan.DisplayNameGTE(*i.DisplayNameGTE)) + if i.DescriptionLTE != nil { + predicates = append(predicates, controlobjective.DescriptionLTE(*i.DescriptionLTE)) } - if i.DisplayNameLT != nil { - predicates = append(predicates, entitlementplan.DisplayNameLT(*i.DisplayNameLT)) + if i.DescriptionContains != nil { + predicates = append(predicates, controlobjective.DescriptionContains(*i.DescriptionContains)) } - if i.DisplayNameLTE != nil { - predicates = append(predicates, entitlementplan.DisplayNameLTE(*i.DisplayNameLTE)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, controlobjective.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.DisplayNameContains != nil { - predicates = append(predicates, entitlementplan.DisplayNameContains(*i.DisplayNameContains)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, controlobjective.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.DisplayNameHasPrefix != nil { - predicates = append(predicates, entitlementplan.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + if i.DescriptionIsNil { + predicates = append(predicates, controlobjective.DescriptionIsNil()) } - if i.DisplayNameHasSuffix != nil { - predicates = append(predicates, entitlementplan.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + if i.DescriptionNotNil { + predicates = append(predicates, controlobjective.DescriptionNotNil()) } - if i.DisplayNameIsNil { - predicates = append(predicates, entitlementplan.DisplayNameIsNil()) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, controlobjective.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.DisplayNameNotNil { - predicates = append(predicates, entitlementplan.DisplayNameNotNil()) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, controlobjective.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.DisplayNameEqualFold != nil { - predicates = append(predicates, entitlementplan.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + if i.Status != nil { + predicates = append(predicates, controlobjective.StatusEQ(*i.Status)) } - if i.DisplayNameContainsFold != nil { - predicates = append(predicates, entitlementplan.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + if i.StatusNEQ != nil { + predicates = append(predicates, controlobjective.StatusNEQ(*i.StatusNEQ)) } - if i.Name != nil { - predicates = append(predicates, entitlementplan.NameEQ(*i.Name)) + if len(i.StatusIn) > 0 { + predicates = append(predicates, controlobjective.StatusIn(i.StatusIn...)) } - if i.NameNEQ != nil { - predicates = append(predicates, entitlementplan.NameNEQ(*i.NameNEQ)) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, controlobjective.StatusNotIn(i.StatusNotIn...)) } - if len(i.NameIn) > 0 { - predicates = append(predicates, entitlementplan.NameIn(i.NameIn...)) + if i.StatusGT != nil { + predicates = append(predicates, controlobjective.StatusGT(*i.StatusGT)) } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, entitlementplan.NameNotIn(i.NameNotIn...)) + if i.StatusGTE != nil { + predicates = append(predicates, controlobjective.StatusGTE(*i.StatusGTE)) } - if i.NameGT != nil { - predicates = append(predicates, entitlementplan.NameGT(*i.NameGT)) + if i.StatusLT != nil { + predicates = append(predicates, controlobjective.StatusLT(*i.StatusLT)) } - if i.NameGTE != nil { - predicates = append(predicates, entitlementplan.NameGTE(*i.NameGTE)) + if i.StatusLTE != nil { + predicates = append(predicates, controlobjective.StatusLTE(*i.StatusLTE)) } - if i.NameLT != nil { - predicates = append(predicates, entitlementplan.NameLT(*i.NameLT)) + if i.StatusContains != nil { + predicates = append(predicates, controlobjective.StatusContains(*i.StatusContains)) } - if i.NameLTE != nil { - predicates = append(predicates, entitlementplan.NameLTE(*i.NameLTE)) + if i.StatusHasPrefix != nil { + predicates = append(predicates, controlobjective.StatusHasPrefix(*i.StatusHasPrefix)) } - if i.NameContains != nil { - predicates = append(predicates, entitlementplan.NameContains(*i.NameContains)) + if i.StatusHasSuffix != nil { + predicates = append(predicates, controlobjective.StatusHasSuffix(*i.StatusHasSuffix)) } - if i.NameHasPrefix != nil { - predicates = append(predicates, entitlementplan.NameHasPrefix(*i.NameHasPrefix)) + if i.StatusIsNil { + predicates = append(predicates, controlobjective.StatusIsNil()) } - if i.NameHasSuffix != nil { - predicates = append(predicates, entitlementplan.NameHasSuffix(*i.NameHasSuffix)) + if i.StatusNotNil { + predicates = append(predicates, controlobjective.StatusNotNil()) } - if i.NameEqualFold != nil { - predicates = append(predicates, entitlementplan.NameEqualFold(*i.NameEqualFold)) + if i.StatusEqualFold != nil { + predicates = append(predicates, controlobjective.StatusEqualFold(*i.StatusEqualFold)) } - if i.NameContainsFold != nil { - predicates = append(predicates, entitlementplan.NameContainsFold(*i.NameContainsFold)) + if i.StatusContainsFold != nil { + predicates = append(predicates, controlobjective.StatusContainsFold(*i.StatusContainsFold)) } - if i.Description != nil { - predicates = append(predicates, entitlementplan.DescriptionEQ(*i.Description)) + if i.ControlObjectiveType != nil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeEQ(*i.ControlObjectiveType)) } - if i.DescriptionNEQ != nil { - predicates = append(predicates, entitlementplan.DescriptionNEQ(*i.DescriptionNEQ)) + if i.ControlObjectiveTypeNEQ != nil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeNEQ(*i.ControlObjectiveTypeNEQ)) } - if len(i.DescriptionIn) > 0 { - predicates = append(predicates, entitlementplan.DescriptionIn(i.DescriptionIn...)) + if len(i.ControlObjectiveTypeIn) > 0 { + predicates = append(predicates, controlobjective.ControlObjectiveTypeIn(i.ControlObjectiveTypeIn...)) } - if len(i.DescriptionNotIn) > 0 { - predicates = append(predicates, entitlementplan.DescriptionNotIn(i.DescriptionNotIn...)) + if len(i.ControlObjectiveTypeNotIn) > 0 { + predicates = append(predicates, controlobjective.ControlObjectiveTypeNotIn(i.ControlObjectiveTypeNotIn...)) } - if i.DescriptionGT != nil { - predicates = append(predicates, entitlementplan.DescriptionGT(*i.DescriptionGT)) + if i.ControlObjectiveTypeGT != nil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeGT(*i.ControlObjectiveTypeGT)) } - if i.DescriptionGTE != nil { - predicates = append(predicates, entitlementplan.DescriptionGTE(*i.DescriptionGTE)) + if i.ControlObjectiveTypeGTE != nil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeGTE(*i.ControlObjectiveTypeGTE)) } - if i.DescriptionLT != nil { - predicates = append(predicates, entitlementplan.DescriptionLT(*i.DescriptionLT)) + if i.ControlObjectiveTypeLT != nil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeLT(*i.ControlObjectiveTypeLT)) } - if i.DescriptionLTE != nil { - predicates = append(predicates, entitlementplan.DescriptionLTE(*i.DescriptionLTE)) + if i.ControlObjectiveTypeLTE != nil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeLTE(*i.ControlObjectiveTypeLTE)) } - if i.DescriptionContains != nil { - predicates = append(predicates, entitlementplan.DescriptionContains(*i.DescriptionContains)) + if i.ControlObjectiveTypeContains != nil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeContains(*i.ControlObjectiveTypeContains)) } - if i.DescriptionHasPrefix != nil { - predicates = append(predicates, entitlementplan.DescriptionHasPrefix(*i.DescriptionHasPrefix)) + if i.ControlObjectiveTypeHasPrefix != nil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeHasPrefix(*i.ControlObjectiveTypeHasPrefix)) } - if i.DescriptionHasSuffix != nil { - predicates = append(predicates, entitlementplan.DescriptionHasSuffix(*i.DescriptionHasSuffix)) + if i.ControlObjectiveTypeHasSuffix != nil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeHasSuffix(*i.ControlObjectiveTypeHasSuffix)) } - if i.DescriptionIsNil { - predicates = append(predicates, entitlementplan.DescriptionIsNil()) + if i.ControlObjectiveTypeIsNil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeIsNil()) } - if i.DescriptionNotNil { - predicates = append(predicates, entitlementplan.DescriptionNotNil()) + if i.ControlObjectiveTypeNotNil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeNotNil()) } - if i.DescriptionEqualFold != nil { - predicates = append(predicates, entitlementplan.DescriptionEqualFold(*i.DescriptionEqualFold)) + if i.ControlObjectiveTypeEqualFold != nil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeEqualFold(*i.ControlObjectiveTypeEqualFold)) } - if i.DescriptionContainsFold != nil { - predicates = append(predicates, entitlementplan.DescriptionContainsFold(*i.DescriptionContainsFold)) + if i.ControlObjectiveTypeContainsFold != nil { + predicates = append(predicates, controlobjective.ControlObjectiveTypeContainsFold(*i.ControlObjectiveTypeContainsFold)) } if i.Version != nil { - predicates = append(predicates, entitlementplan.VersionEQ(*i.Version)) + predicates = append(predicates, controlobjective.VersionEQ(*i.Version)) } if i.VersionNEQ != nil { - predicates = append(predicates, entitlementplan.VersionNEQ(*i.VersionNEQ)) + predicates = append(predicates, controlobjective.VersionNEQ(*i.VersionNEQ)) } if len(i.VersionIn) > 0 { - predicates = append(predicates, entitlementplan.VersionIn(i.VersionIn...)) + predicates = append(predicates, controlobjective.VersionIn(i.VersionIn...)) } if len(i.VersionNotIn) > 0 { - predicates = append(predicates, entitlementplan.VersionNotIn(i.VersionNotIn...)) + predicates = append(predicates, controlobjective.VersionNotIn(i.VersionNotIn...)) } if i.VersionGT != nil { - predicates = append(predicates, entitlementplan.VersionGT(*i.VersionGT)) + predicates = append(predicates, controlobjective.VersionGT(*i.VersionGT)) } if i.VersionGTE != nil { - predicates = append(predicates, entitlementplan.VersionGTE(*i.VersionGTE)) + predicates = append(predicates, controlobjective.VersionGTE(*i.VersionGTE)) } if i.VersionLT != nil { - predicates = append(predicates, entitlementplan.VersionLT(*i.VersionLT)) + predicates = append(predicates, controlobjective.VersionLT(*i.VersionLT)) } if i.VersionLTE != nil { - predicates = append(predicates, entitlementplan.VersionLTE(*i.VersionLTE)) + predicates = append(predicates, controlobjective.VersionLTE(*i.VersionLTE)) } if i.VersionContains != nil { - predicates = append(predicates, entitlementplan.VersionContains(*i.VersionContains)) + predicates = append(predicates, controlobjective.VersionContains(*i.VersionContains)) } if i.VersionHasPrefix != nil { - predicates = append(predicates, entitlementplan.VersionHasPrefix(*i.VersionHasPrefix)) + predicates = append(predicates, controlobjective.VersionHasPrefix(*i.VersionHasPrefix)) } if i.VersionHasSuffix != nil { - predicates = append(predicates, entitlementplan.VersionHasSuffix(*i.VersionHasSuffix)) + predicates = append(predicates, controlobjective.VersionHasSuffix(*i.VersionHasSuffix)) + } + if i.VersionIsNil { + predicates = append(predicates, controlobjective.VersionIsNil()) + } + if i.VersionNotNil { + predicates = append(predicates, controlobjective.VersionNotNil()) } if i.VersionEqualFold != nil { - predicates = append(predicates, entitlementplan.VersionEqualFold(*i.VersionEqualFold)) + predicates = append(predicates, controlobjective.VersionEqualFold(*i.VersionEqualFold)) } if i.VersionContainsFold != nil { - predicates = append(predicates, entitlementplan.VersionContainsFold(*i.VersionContainsFold)) + predicates = append(predicates, controlobjective.VersionContainsFold(*i.VersionContainsFold)) + } + if i.ControlNumber != nil { + predicates = append(predicates, controlobjective.ControlNumberEQ(*i.ControlNumber)) + } + if i.ControlNumberNEQ != nil { + predicates = append(predicates, controlobjective.ControlNumberNEQ(*i.ControlNumberNEQ)) + } + if len(i.ControlNumberIn) > 0 { + predicates = append(predicates, controlobjective.ControlNumberIn(i.ControlNumberIn...)) + } + if len(i.ControlNumberNotIn) > 0 { + predicates = append(predicates, controlobjective.ControlNumberNotIn(i.ControlNumberNotIn...)) + } + if i.ControlNumberGT != nil { + predicates = append(predicates, controlobjective.ControlNumberGT(*i.ControlNumberGT)) + } + if i.ControlNumberGTE != nil { + predicates = append(predicates, controlobjective.ControlNumberGTE(*i.ControlNumberGTE)) + } + if i.ControlNumberLT != nil { + predicates = append(predicates, controlobjective.ControlNumberLT(*i.ControlNumberLT)) + } + if i.ControlNumberLTE != nil { + predicates = append(predicates, controlobjective.ControlNumberLTE(*i.ControlNumberLTE)) + } + if i.ControlNumberContains != nil { + predicates = append(predicates, controlobjective.ControlNumberContains(*i.ControlNumberContains)) + } + if i.ControlNumberHasPrefix != nil { + predicates = append(predicates, controlobjective.ControlNumberHasPrefix(*i.ControlNumberHasPrefix)) + } + if i.ControlNumberHasSuffix != nil { + predicates = append(predicates, controlobjective.ControlNumberHasSuffix(*i.ControlNumberHasSuffix)) + } + if i.ControlNumberIsNil { + predicates = append(predicates, controlobjective.ControlNumberIsNil()) + } + if i.ControlNumberNotNil { + predicates = append(predicates, controlobjective.ControlNumberNotNil()) + } + if i.ControlNumberEqualFold != nil { + predicates = append(predicates, controlobjective.ControlNumberEqualFold(*i.ControlNumberEqualFold)) + } + if i.ControlNumberContainsFold != nil { + predicates = append(predicates, controlobjective.ControlNumberContainsFold(*i.ControlNumberContainsFold)) + } + if i.Family != nil { + predicates = append(predicates, controlobjective.FamilyEQ(*i.Family)) + } + if i.FamilyNEQ != nil { + predicates = append(predicates, controlobjective.FamilyNEQ(*i.FamilyNEQ)) + } + if len(i.FamilyIn) > 0 { + predicates = append(predicates, controlobjective.FamilyIn(i.FamilyIn...)) + } + if len(i.FamilyNotIn) > 0 { + predicates = append(predicates, controlobjective.FamilyNotIn(i.FamilyNotIn...)) + } + if i.FamilyGT != nil { + predicates = append(predicates, controlobjective.FamilyGT(*i.FamilyGT)) + } + if i.FamilyGTE != nil { + predicates = append(predicates, controlobjective.FamilyGTE(*i.FamilyGTE)) + } + if i.FamilyLT != nil { + predicates = append(predicates, controlobjective.FamilyLT(*i.FamilyLT)) + } + if i.FamilyLTE != nil { + predicates = append(predicates, controlobjective.FamilyLTE(*i.FamilyLTE)) + } + if i.FamilyContains != nil { + predicates = append(predicates, controlobjective.FamilyContains(*i.FamilyContains)) + } + if i.FamilyHasPrefix != nil { + predicates = append(predicates, controlobjective.FamilyHasPrefix(*i.FamilyHasPrefix)) + } + if i.FamilyHasSuffix != nil { + predicates = append(predicates, controlobjective.FamilyHasSuffix(*i.FamilyHasSuffix)) + } + if i.FamilyIsNil { + predicates = append(predicates, controlobjective.FamilyIsNil()) + } + if i.FamilyNotNil { + predicates = append(predicates, controlobjective.FamilyNotNil()) + } + if i.FamilyEqualFold != nil { + predicates = append(predicates, controlobjective.FamilyEqualFold(*i.FamilyEqualFold)) + } + if i.FamilyContainsFold != nil { + predicates = append(predicates, controlobjective.FamilyContainsFold(*i.FamilyContainsFold)) + } + if i.Class != nil { + predicates = append(predicates, controlobjective.ClassEQ(*i.Class)) + } + if i.ClassNEQ != nil { + predicates = append(predicates, controlobjective.ClassNEQ(*i.ClassNEQ)) + } + if len(i.ClassIn) > 0 { + predicates = append(predicates, controlobjective.ClassIn(i.ClassIn...)) + } + if len(i.ClassNotIn) > 0 { + predicates = append(predicates, controlobjective.ClassNotIn(i.ClassNotIn...)) + } + if i.ClassGT != nil { + predicates = append(predicates, controlobjective.ClassGT(*i.ClassGT)) + } + if i.ClassGTE != nil { + predicates = append(predicates, controlobjective.ClassGTE(*i.ClassGTE)) + } + if i.ClassLT != nil { + predicates = append(predicates, controlobjective.ClassLT(*i.ClassLT)) + } + if i.ClassLTE != nil { + predicates = append(predicates, controlobjective.ClassLTE(*i.ClassLTE)) + } + if i.ClassContains != nil { + predicates = append(predicates, controlobjective.ClassContains(*i.ClassContains)) + } + if i.ClassHasPrefix != nil { + predicates = append(predicates, controlobjective.ClassHasPrefix(*i.ClassHasPrefix)) + } + if i.ClassHasSuffix != nil { + predicates = append(predicates, controlobjective.ClassHasSuffix(*i.ClassHasSuffix)) + } + if i.ClassIsNil { + predicates = append(predicates, controlobjective.ClassIsNil()) + } + if i.ClassNotNil { + predicates = append(predicates, controlobjective.ClassNotNil()) + } + if i.ClassEqualFold != nil { + predicates = append(predicates, controlobjective.ClassEqualFold(*i.ClassEqualFold)) + } + if i.ClassContainsFold != nil { + predicates = append(predicates, controlobjective.ClassContainsFold(*i.ClassContainsFold)) + } + if i.Source != nil { + predicates = append(predicates, controlobjective.SourceEQ(*i.Source)) + } + if i.SourceNEQ != nil { + predicates = append(predicates, controlobjective.SourceNEQ(*i.SourceNEQ)) + } + if len(i.SourceIn) > 0 { + predicates = append(predicates, controlobjective.SourceIn(i.SourceIn...)) + } + if len(i.SourceNotIn) > 0 { + predicates = append(predicates, controlobjective.SourceNotIn(i.SourceNotIn...)) + } + if i.SourceGT != nil { + predicates = append(predicates, controlobjective.SourceGT(*i.SourceGT)) + } + if i.SourceGTE != nil { + predicates = append(predicates, controlobjective.SourceGTE(*i.SourceGTE)) + } + if i.SourceLT != nil { + predicates = append(predicates, controlobjective.SourceLT(*i.SourceLT)) + } + if i.SourceLTE != nil { + predicates = append(predicates, controlobjective.SourceLTE(*i.SourceLTE)) + } + if i.SourceContains != nil { + predicates = append(predicates, controlobjective.SourceContains(*i.SourceContains)) + } + if i.SourceHasPrefix != nil { + predicates = append(predicates, controlobjective.SourceHasPrefix(*i.SourceHasPrefix)) + } + if i.SourceHasSuffix != nil { + predicates = append(predicates, controlobjective.SourceHasSuffix(*i.SourceHasSuffix)) + } + if i.SourceIsNil { + predicates = append(predicates, controlobjective.SourceIsNil()) + } + if i.SourceNotNil { + predicates = append(predicates, controlobjective.SourceNotNil()) + } + if i.SourceEqualFold != nil { + predicates = append(predicates, controlobjective.SourceEqualFold(*i.SourceEqualFold)) + } + if i.SourceContainsFold != nil { + predicates = append(predicates, controlobjective.SourceContainsFold(*i.SourceContainsFold)) + } + if i.MappedFrameworks != nil { + predicates = append(predicates, controlobjective.MappedFrameworksEQ(*i.MappedFrameworks)) + } + if i.MappedFrameworksNEQ != nil { + predicates = append(predicates, controlobjective.MappedFrameworksNEQ(*i.MappedFrameworksNEQ)) + } + if len(i.MappedFrameworksIn) > 0 { + predicates = append(predicates, controlobjective.MappedFrameworksIn(i.MappedFrameworksIn...)) + } + if len(i.MappedFrameworksNotIn) > 0 { + predicates = append(predicates, controlobjective.MappedFrameworksNotIn(i.MappedFrameworksNotIn...)) + } + if i.MappedFrameworksGT != nil { + predicates = append(predicates, controlobjective.MappedFrameworksGT(*i.MappedFrameworksGT)) + } + if i.MappedFrameworksGTE != nil { + predicates = append(predicates, controlobjective.MappedFrameworksGTE(*i.MappedFrameworksGTE)) + } + if i.MappedFrameworksLT != nil { + predicates = append(predicates, controlobjective.MappedFrameworksLT(*i.MappedFrameworksLT)) + } + if i.MappedFrameworksLTE != nil { + predicates = append(predicates, controlobjective.MappedFrameworksLTE(*i.MappedFrameworksLTE)) + } + if i.MappedFrameworksContains != nil { + predicates = append(predicates, controlobjective.MappedFrameworksContains(*i.MappedFrameworksContains)) + } + if i.MappedFrameworksHasPrefix != nil { + predicates = append(predicates, controlobjective.MappedFrameworksHasPrefix(*i.MappedFrameworksHasPrefix)) + } + if i.MappedFrameworksHasSuffix != nil { + predicates = append(predicates, controlobjective.MappedFrameworksHasSuffix(*i.MappedFrameworksHasSuffix)) + } + if i.MappedFrameworksIsNil { + predicates = append(predicates, controlobjective.MappedFrameworksIsNil()) + } + if i.MappedFrameworksNotNil { + predicates = append(predicates, controlobjective.MappedFrameworksNotNil()) + } + if i.MappedFrameworksEqualFold != nil { + predicates = append(predicates, controlobjective.MappedFrameworksEqualFold(*i.MappedFrameworksEqualFold)) + } + if i.MappedFrameworksContainsFold != nil { + predicates = append(predicates, controlobjective.MappedFrameworksContainsFold(*i.MappedFrameworksContainsFold)) } - if i.HasOwner != nil { - p := entitlementplan.HasOwner() - if !*i.HasOwner { - p = entitlementplan.Not(p) + if i.HasPolicy != nil { + p := controlobjective.HasPolicy() + if !*i.HasPolicy { + p = controlobjective.Not(p) } predicates = append(predicates, p) } - if len(i.HasOwnerWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) - for _, w := range i.HasOwnerWith { + if len(i.HasPolicyWith) > 0 { + with := make([]predicate.InternalPolicy, 0, len(i.HasPolicyWith)) + for _, w := range i.HasPolicyWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasOwnerWith'", err) + return nil, fmt.Errorf("%w: field 'HasPolicyWith'", err) } with = append(with, p) } - predicates = append(predicates, entitlementplan.HasOwnerWith(with...)) + predicates = append(predicates, controlobjective.HasPolicyWith(with...)) } - if i.HasEntitlements != nil { - p := entitlementplan.HasEntitlements() - if !*i.HasEntitlements { - p = entitlementplan.Not(p) + if i.HasControls != nil { + p := controlobjective.HasControls() + if !*i.HasControls { + p = controlobjective.Not(p) } predicates = append(predicates, p) } - if len(i.HasEntitlementsWith) > 0 { - with := make([]predicate.Entitlement, 0, len(i.HasEntitlementsWith)) - for _, w := range i.HasEntitlementsWith { + if len(i.HasControlsWith) > 0 { + with := make([]predicate.Control, 0, len(i.HasControlsWith)) + for _, w := range i.HasControlsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntitlementsWith'", err) + return nil, fmt.Errorf("%w: field 'HasControlsWith'", err) } with = append(with, p) } - predicates = append(predicates, entitlementplan.HasEntitlementsWith(with...)) + predicates = append(predicates, controlobjective.HasControlsWith(with...)) } - if i.HasBaseFeatures != nil { - p := entitlementplan.HasBaseFeatures() - if !*i.HasBaseFeatures { - p = entitlementplan.Not(p) + if i.HasProcedures != nil { + p := controlobjective.HasProcedures() + if !*i.HasProcedures { + p = controlobjective.Not(p) } predicates = append(predicates, p) } - if len(i.HasBaseFeaturesWith) > 0 { - with := make([]predicate.Feature, 0, len(i.HasBaseFeaturesWith)) - for _, w := range i.HasBaseFeaturesWith { + if len(i.HasProceduresWith) > 0 { + with := make([]predicate.Procedure, 0, len(i.HasProceduresWith)) + for _, w := range i.HasProceduresWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasBaseFeaturesWith'", err) + return nil, fmt.Errorf("%w: field 'HasProceduresWith'", err) } with = append(with, p) } - predicates = append(predicates, entitlementplan.HasBaseFeaturesWith(with...)) + predicates = append(predicates, controlobjective.HasProceduresWith(with...)) } - if i.HasEvents != nil { - p := entitlementplan.HasEvents() - if !*i.HasEvents { - p = entitlementplan.Not(p) + if i.HasRisks != nil { + p := controlobjective.HasRisks() + if !*i.HasRisks { + p = controlobjective.Not(p) } predicates = append(predicates, p) } - if len(i.HasEventsWith) > 0 { - with := make([]predicate.Event, 0, len(i.HasEventsWith)) - for _, w := range i.HasEventsWith { + if len(i.HasRisksWith) > 0 { + with := make([]predicate.Risk, 0, len(i.HasRisksWith)) + for _, w := range i.HasRisksWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + return nil, fmt.Errorf("%w: field 'HasRisksWith'", err) } with = append(with, p) } - predicates = append(predicates, entitlementplan.HasEventsWith(with...)) + predicates = append(predicates, controlobjective.HasRisksWith(with...)) } - if i.HasFeatures != nil { - p := entitlementplan.HasFeatures() - if !*i.HasFeatures { - p = entitlementplan.Not(p) + if i.HasSubcontrols != nil { + p := controlobjective.HasSubcontrols() + if !*i.HasSubcontrols { + p = controlobjective.Not(p) } predicates = append(predicates, p) } - if len(i.HasFeaturesWith) > 0 { - with := make([]predicate.EntitlementPlanFeature, 0, len(i.HasFeaturesWith)) - for _, w := range i.HasFeaturesWith { + if len(i.HasSubcontrolsWith) > 0 { + with := make([]predicate.Subcontrol, 0, len(i.HasSubcontrolsWith)) + for _, w := range i.HasSubcontrolsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasFeaturesWith'", err) + return nil, fmt.Errorf("%w: field 'HasSubcontrolsWith'", err) } with = append(with, p) } - predicates = append(predicates, entitlementplan.HasFeaturesWith(with...)) + predicates = append(predicates, controlobjective.HasSubcontrolsWith(with...)) + } + if i.HasStandard != nil { + p := controlobjective.HasStandard() + if !*i.HasStandard { + p = controlobjective.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasStandardWith) > 0 { + with := make([]predicate.Standard, 0, len(i.HasStandardWith)) + for _, w := range i.HasStandardWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasStandardWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, controlobjective.HasStandardWith(with...)) + } + if i.HasNarratives != nil { + p := controlobjective.HasNarratives() + if !*i.HasNarratives { + p = controlobjective.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasNarrativesWith) > 0 { + with := make([]predicate.Narrative, 0, len(i.HasNarrativesWith)) + for _, w := range i.HasNarrativesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasNarrativesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, controlobjective.HasNarrativesWith(with...)) } switch len(predicates) { case 0: - return nil, ErrEmptyEntitlementPlanWhereInput + return nil, ErrEmptyControlObjectiveWhereInput case 1: return predicates[0], nil default: - return entitlementplan.And(predicates...), nil + return controlobjective.And(predicates...), nil } } -// EntitlementPlanFeatureWhereInput represents a where input for filtering EntitlementPlanFeature queries. -type EntitlementPlanFeatureWhereInput struct { - Predicates []predicate.EntitlementPlanFeature `json:"-"` - Not *EntitlementPlanFeatureWhereInput `json:"not,omitempty"` - Or []*EntitlementPlanFeatureWhereInput `json:"or,omitempty"` - And []*EntitlementPlanFeatureWhereInput `json:"and,omitempty"` +// ControlObjectiveHistoryWhereInput represents a where input for filtering ControlObjectiveHistory queries. +type ControlObjectiveHistoryWhereInput struct { + Predicates []predicate.ControlObjectiveHistory `json:"-"` + Not *ControlObjectiveHistoryWhereInput `json:"not,omitempty"` + Or []*ControlObjectiveHistoryWhereInput `json:"or,omitempty"` + And []*ControlObjectiveHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -6680,6 +8218,39 @@ type EntitlementPlanFeatureWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -6767,83 +8338,188 @@ type EntitlementPlanFeatureWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` - - // "plan_id" field predicates. - PlanID *string `json:"planID,omitempty"` - PlanIDNEQ *string `json:"planIDNEQ,omitempty"` - PlanIDIn []string `json:"planIDIn,omitempty"` - PlanIDNotIn []string `json:"planIDNotIn,omitempty"` - PlanIDGT *string `json:"planIDGT,omitempty"` - PlanIDGTE *string `json:"planIDGTE,omitempty"` - PlanIDLT *string `json:"planIDLT,omitempty"` - PlanIDLTE *string `json:"planIDLTE,omitempty"` - PlanIDContains *string `json:"planIDContains,omitempty"` - PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` - PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` - PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` - PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "feature_id" field predicates. - FeatureID *string `json:"featureID,omitempty"` - FeatureIDNEQ *string `json:"featureIDNEQ,omitempty"` - FeatureIDIn []string `json:"featureIDIn,omitempty"` - FeatureIDNotIn []string `json:"featureIDNotIn,omitempty"` - FeatureIDGT *string `json:"featureIDGT,omitempty"` - FeatureIDGTE *string `json:"featureIDGTE,omitempty"` - FeatureIDLT *string `json:"featureIDLT,omitempty"` - FeatureIDLTE *string `json:"featureIDLTE,omitempty"` - FeatureIDContains *string `json:"featureIDContains,omitempty"` - FeatureIDHasPrefix *string `json:"featureIDHasPrefix,omitempty"` - FeatureIDHasSuffix *string `json:"featureIDHasSuffix,omitempty"` - FeatureIDEqualFold *string `json:"featureIDEqualFold,omitempty"` - FeatureIDContainsFold *string `json:"featureIDContainsFold,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` - // "owner" edge predicates. - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` - // "plan" edge predicates. - HasPlan *bool `json:"hasPlan,omitempty"` - HasPlanWith []*EntitlementPlanWhereInput `json:"hasPlanWith,omitempty"` + // "control_objective_type" field predicates. + ControlObjectiveType *string `json:"controlObjectiveType,omitempty"` + ControlObjectiveTypeNEQ *string `json:"controlObjectiveTypeNEQ,omitempty"` + ControlObjectiveTypeIn []string `json:"controlObjectiveTypeIn,omitempty"` + ControlObjectiveTypeNotIn []string `json:"controlObjectiveTypeNotIn,omitempty"` + ControlObjectiveTypeGT *string `json:"controlObjectiveTypeGT,omitempty"` + ControlObjectiveTypeGTE *string `json:"controlObjectiveTypeGTE,omitempty"` + ControlObjectiveTypeLT *string `json:"controlObjectiveTypeLT,omitempty"` + ControlObjectiveTypeLTE *string `json:"controlObjectiveTypeLTE,omitempty"` + ControlObjectiveTypeContains *string `json:"controlObjectiveTypeContains,omitempty"` + ControlObjectiveTypeHasPrefix *string `json:"controlObjectiveTypeHasPrefix,omitempty"` + ControlObjectiveTypeHasSuffix *string `json:"controlObjectiveTypeHasSuffix,omitempty"` + ControlObjectiveTypeIsNil bool `json:"controlObjectiveTypeIsNil,omitempty"` + ControlObjectiveTypeNotNil bool `json:"controlObjectiveTypeNotNil,omitempty"` + ControlObjectiveTypeEqualFold *string `json:"controlObjectiveTypeEqualFold,omitempty"` + ControlObjectiveTypeContainsFold *string `json:"controlObjectiveTypeContainsFold,omitempty"` - // "feature" edge predicates. - HasFeature *bool `json:"hasFeature,omitempty"` - HasFeatureWith []*FeatureWhereInput `json:"hasFeatureWith,omitempty"` + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil bool `json:"versionIsNil,omitempty"` + VersionNotNil bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` - // "events" edge predicates. - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // "control_number" field predicates. + ControlNumber *string `json:"controlNumber,omitempty"` + ControlNumberNEQ *string `json:"controlNumberNEQ,omitempty"` + ControlNumberIn []string `json:"controlNumberIn,omitempty"` + ControlNumberNotIn []string `json:"controlNumberNotIn,omitempty"` + ControlNumberGT *string `json:"controlNumberGT,omitempty"` + ControlNumberGTE *string `json:"controlNumberGTE,omitempty"` + ControlNumberLT *string `json:"controlNumberLT,omitempty"` + ControlNumberLTE *string `json:"controlNumberLTE,omitempty"` + ControlNumberContains *string `json:"controlNumberContains,omitempty"` + ControlNumberHasPrefix *string `json:"controlNumberHasPrefix,omitempty"` + ControlNumberHasSuffix *string `json:"controlNumberHasSuffix,omitempty"` + ControlNumberIsNil bool `json:"controlNumberIsNil,omitempty"` + ControlNumberNotNil bool `json:"controlNumberNotNil,omitempty"` + ControlNumberEqualFold *string `json:"controlNumberEqualFold,omitempty"` + ControlNumberContainsFold *string `json:"controlNumberContainsFold,omitempty"` + + // "family" field predicates. + Family *string `json:"family,omitempty"` + FamilyNEQ *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGT *string `json:"familyGT,omitempty"` + FamilyGTE *string `json:"familyGTE,omitempty"` + FamilyLT *string `json:"familyLT,omitempty"` + FamilyLTE *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil bool `json:"familyIsNil,omitempty"` + FamilyNotNil bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + + // "class" field predicates. + Class *string `json:"class,omitempty"` + ClassNEQ *string `json:"classNEQ,omitempty"` + ClassIn []string `json:"classIn,omitempty"` + ClassNotIn []string `json:"classNotIn,omitempty"` + ClassGT *string `json:"classGT,omitempty"` + ClassGTE *string `json:"classGTE,omitempty"` + ClassLT *string `json:"classLT,omitempty"` + ClassLTE *string `json:"classLTE,omitempty"` + ClassContains *string `json:"classContains,omitempty"` + ClassHasPrefix *string `json:"classHasPrefix,omitempty"` + ClassHasSuffix *string `json:"classHasSuffix,omitempty"` + ClassIsNil bool `json:"classIsNil,omitempty"` + ClassNotNil bool `json:"classNotNil,omitempty"` + ClassEqualFold *string `json:"classEqualFold,omitempty"` + ClassContainsFold *string `json:"classContainsFold,omitempty"` + + // "source" field predicates. + Source *string `json:"source,omitempty"` + SourceNEQ *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGT *string `json:"sourceGT,omitempty"` + SourceGTE *string `json:"sourceGTE,omitempty"` + SourceLT *string `json:"sourceLT,omitempty"` + SourceLTE *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil bool `json:"sourceIsNil,omitempty"` + SourceNotNil bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + + // "mapped_frameworks" field predicates. + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + MappedFrameworksNEQ *string `json:"mappedFrameworksNEQ,omitempty"` + MappedFrameworksIn []string `json:"mappedFrameworksIn,omitempty"` + MappedFrameworksNotIn []string `json:"mappedFrameworksNotIn,omitempty"` + MappedFrameworksGT *string `json:"mappedFrameworksGT,omitempty"` + MappedFrameworksGTE *string `json:"mappedFrameworksGTE,omitempty"` + MappedFrameworksLT *string `json:"mappedFrameworksLT,omitempty"` + MappedFrameworksLTE *string `json:"mappedFrameworksLTE,omitempty"` + MappedFrameworksContains *string `json:"mappedFrameworksContains,omitempty"` + MappedFrameworksHasPrefix *string `json:"mappedFrameworksHasPrefix,omitempty"` + MappedFrameworksHasSuffix *string `json:"mappedFrameworksHasSuffix,omitempty"` + MappedFrameworksIsNil bool `json:"mappedFrameworksIsNil,omitempty"` + MappedFrameworksNotNil bool `json:"mappedFrameworksNotNil,omitempty"` + MappedFrameworksEqualFold *string `json:"mappedFrameworksEqualFold,omitempty"` + MappedFrameworksContainsFold *string `json:"mappedFrameworksContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *EntitlementPlanFeatureWhereInput) AddPredicates(predicates ...predicate.EntitlementPlanFeature) { +func (i *ControlObjectiveHistoryWhereInput) AddPredicates(predicates ...predicate.ControlObjectiveHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the EntitlementPlanFeatureWhereInput filter on the EntitlementPlanFeatureQuery builder. -func (i *EntitlementPlanFeatureWhereInput) Filter(q *EntitlementPlanFeatureQuery) (*EntitlementPlanFeatureQuery, error) { +// Filter applies the ControlObjectiveHistoryWhereInput filter on the ControlObjectiveHistoryQuery builder. +func (i *ControlObjectiveHistoryWhereInput) Filter(q *ControlObjectiveHistoryQuery) (*ControlObjectiveHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyEntitlementPlanFeatureWhereInput { + if err == ErrEmptyControlObjectiveHistoryWhereInput { return q, nil } return nil, err @@ -6851,19 +8527,19 @@ func (i *EntitlementPlanFeatureWhereInput) Filter(q *EntitlementPlanFeatureQuery return q.Where(p), nil } -// ErrEmptyEntitlementPlanFeatureWhereInput is returned in case the EntitlementPlanFeatureWhereInput is empty. -var ErrEmptyEntitlementPlanFeatureWhereInput = errors.New("generated: empty predicate EntitlementPlanFeatureWhereInput") +// ErrEmptyControlObjectiveHistoryWhereInput is returned in case the ControlObjectiveHistoryWhereInput is empty. +var ErrEmptyControlObjectiveHistoryWhereInput = errors.New("generated: empty predicate ControlObjectiveHistoryWhereInput") -// P returns a predicate for filtering entitlementplanfeatures. +// P returns a predicate for filtering controlobjectivehistories. // An error is returned if the input is empty or invalid. -func (i *EntitlementPlanFeatureWhereInput) P() (predicate.EntitlementPlanFeature, error) { - var predicates []predicate.EntitlementPlanFeature +func (i *ControlObjectiveHistoryWhereInput) P() (predicate.ControlObjectiveHistory, error) { + var predicates []predicate.ControlObjectiveHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, entitlementplanfeature.Not(p)) + predicates = append(predicates, controlobjectivehistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -6873,7 +8549,7 @@ func (i *EntitlementPlanFeatureWhereInput) P() (predicate.EntitlementPlanFeature } predicates = append(predicates, p) case n > 1: - or := make([]predicate.EntitlementPlanFeature, 0, n) + or := make([]predicate.ControlObjectiveHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -6881,7 +8557,7 @@ func (i *EntitlementPlanFeatureWhereInput) P() (predicate.EntitlementPlanFeature } or = append(or, p) } - predicates = append(predicates, entitlementplanfeature.Or(or...)) + predicates = append(predicates, controlobjectivehistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -6891,7 +8567,7 @@ func (i *EntitlementPlanFeatureWhereInput) P() (predicate.EntitlementPlanFeature } predicates = append(predicates, p) case n > 1: - and := make([]predicate.EntitlementPlanFeature, 0, n) + and := make([]predicate.ControlObjectiveHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -6899,535 +8575,832 @@ func (i *EntitlementPlanFeatureWhereInput) P() (predicate.EntitlementPlanFeature } and = append(and, p) } - predicates = append(predicates, entitlementplanfeature.And(and...)) + predicates = append(predicates, controlobjectivehistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, entitlementplanfeature.IDEQ(*i.ID)) + predicates = append(predicates, controlobjectivehistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, entitlementplanfeature.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, controlobjectivehistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, entitlementplanfeature.IDIn(i.IDIn...)) + predicates = append(predicates, controlobjectivehistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, entitlementplanfeature.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, controlobjectivehistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, entitlementplanfeature.IDGT(*i.IDGT)) + predicates = append(predicates, controlobjectivehistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, entitlementplanfeature.IDGTE(*i.IDGTE)) + predicates = append(predicates, controlobjectivehistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, entitlementplanfeature.IDLT(*i.IDLT)) + predicates = append(predicates, controlobjectivehistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, entitlementplanfeature.IDLTE(*i.IDLTE)) + predicates = append(predicates, controlobjectivehistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, entitlementplanfeature.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, controlobjectivehistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, entitlementplanfeature.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, controlobjectivehistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, controlobjectivehistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, controlobjectivehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, controlobjectivehistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, controlobjectivehistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, controlobjectivehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, controlobjectivehistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, controlobjectivehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, controlobjectivehistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, controlobjectivehistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, controlobjectivehistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, controlobjectivehistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, controlobjectivehistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, controlobjectivehistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, controlobjectivehistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, controlobjectivehistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, controlobjectivehistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, controlobjectivehistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, controlobjectivehistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, controlobjectivehistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, controlobjectivehistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, controlobjectivehistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, controlobjectivehistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, controlobjectivehistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, controlobjectivehistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, entitlementplanfeature.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, controlobjectivehistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, entitlementplanfeature.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, controlobjectivehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, entitlementplanfeature.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, controlobjectivehistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, entitlementplanfeature.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, controlobjectivehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, entitlementplanfeature.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, controlobjectivehistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, entitlementplanfeature.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, controlobjectivehistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, entitlementplanfeature.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, controlobjectivehistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, entitlementplanfeature.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, controlobjectivehistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, entitlementplanfeature.CreatedAtIsNil()) + predicates = append(predicates, controlobjectivehistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, entitlementplanfeature.CreatedAtNotNil()) + predicates = append(predicates, controlobjectivehistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, controlobjectivehistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, controlobjectivehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, entitlementplanfeature.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, controlobjectivehistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, entitlementplanfeature.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, controlobjectivehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, controlobjectivehistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, controlobjectivehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, controlobjectivehistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, controlobjectivehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, entitlementplanfeature.UpdatedAtIsNil()) + predicates = append(predicates, controlobjectivehistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, entitlementplanfeature.UpdatedAtNotNil()) + predicates = append(predicates, controlobjectivehistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, entitlementplanfeature.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, controlobjectivehistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, entitlementplanfeature.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, controlobjectivehistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, entitlementplanfeature.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, controlobjectivehistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, entitlementplanfeature.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, controlobjectivehistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, entitlementplanfeature.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, controlobjectivehistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, entitlementplanfeature.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, controlobjectivehistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, entitlementplanfeature.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, controlobjectivehistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, entitlementplanfeature.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, controlobjectivehistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, entitlementplanfeature.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, controlobjectivehistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, entitlementplanfeature.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, controlobjectivehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, entitlementplanfeature.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, controlobjectivehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, entitlementplanfeature.CreatedByIsNil()) + predicates = append(predicates, controlobjectivehistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, entitlementplanfeature.CreatedByNotNil()) + predicates = append(predicates, controlobjectivehistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, entitlementplanfeature.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, controlobjectivehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, entitlementplanfeature.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, controlobjectivehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, controlobjectivehistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, controlobjectivehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, entitlementplanfeature.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, controlobjectivehistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, entitlementplanfeature.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, controlobjectivehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, controlobjectivehistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, controlobjectivehistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, controlobjectivehistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, controlobjectivehistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, controlobjectivehistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, controlobjectivehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, controlobjectivehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, entitlementplanfeature.UpdatedByIsNil()) + predicates = append(predicates, controlobjectivehistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, entitlementplanfeature.UpdatedByNotNil()) + predicates = append(predicates, controlobjectivehistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, controlobjectivehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, entitlementplanfeature.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, controlobjectivehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, entitlementplanfeature.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, controlobjectivehistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, entitlementplanfeature.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, controlobjectivehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, entitlementplanfeature.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, controlobjectivehistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, entitlementplanfeature.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, controlobjectivehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, entitlementplanfeature.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, controlobjectivehistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, entitlementplanfeature.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, controlobjectivehistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, entitlementplanfeature.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, controlobjectivehistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, entitlementplanfeature.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, controlobjectivehistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, entitlementplanfeature.DeletedAtIsNil()) + predicates = append(predicates, controlobjectivehistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, entitlementplanfeature.DeletedAtNotNil()) + predicates = append(predicates, controlobjectivehistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, entitlementplanfeature.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, controlobjectivehistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, entitlementplanfeature.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, controlobjectivehistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, entitlementplanfeature.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, controlobjectivehistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, entitlementplanfeature.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, controlobjectivehistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, entitlementplanfeature.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, controlobjectivehistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, entitlementplanfeature.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, controlobjectivehistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, entitlementplanfeature.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, controlobjectivehistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, entitlementplanfeature.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, controlobjectivehistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, entitlementplanfeature.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, controlobjectivehistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, entitlementplanfeature.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, controlobjectivehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, entitlementplanfeature.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, controlobjectivehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, entitlementplanfeature.DeletedByIsNil()) + predicates = append(predicates, controlobjectivehistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, entitlementplanfeature.DeletedByNotNil()) + predicates = append(predicates, controlobjectivehistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, entitlementplanfeature.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, controlobjectivehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, entitlementplanfeature.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, controlobjectivehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.OwnerID != nil { - predicates = append(predicates, entitlementplanfeature.OwnerIDEQ(*i.OwnerID)) + if i.Name != nil { + predicates = append(predicates, controlobjectivehistory.NameEQ(*i.Name)) } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, entitlementplanfeature.OwnerIDNEQ(*i.OwnerIDNEQ)) + if i.NameNEQ != nil { + predicates = append(predicates, controlobjectivehistory.NameNEQ(*i.NameNEQ)) } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, entitlementplanfeature.OwnerIDIn(i.OwnerIDIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, controlobjectivehistory.NameIn(i.NameIn...)) } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, entitlementplanfeature.OwnerIDNotIn(i.OwnerIDNotIn...)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.NameNotIn(i.NameNotIn...)) } - if i.OwnerIDGT != nil { - predicates = append(predicates, entitlementplanfeature.OwnerIDGT(*i.OwnerIDGT)) + if i.NameGT != nil { + predicates = append(predicates, controlobjectivehistory.NameGT(*i.NameGT)) } - if i.OwnerIDGTE != nil { - predicates = append(predicates, entitlementplanfeature.OwnerIDGTE(*i.OwnerIDGTE)) + if i.NameGTE != nil { + predicates = append(predicates, controlobjectivehistory.NameGTE(*i.NameGTE)) } - if i.OwnerIDLT != nil { - predicates = append(predicates, entitlementplanfeature.OwnerIDLT(*i.OwnerIDLT)) + if i.NameLT != nil { + predicates = append(predicates, controlobjectivehistory.NameLT(*i.NameLT)) } - if i.OwnerIDLTE != nil { - predicates = append(predicates, entitlementplanfeature.OwnerIDLTE(*i.OwnerIDLTE)) + if i.NameLTE != nil { + predicates = append(predicates, controlobjectivehistory.NameLTE(*i.NameLTE)) } - if i.OwnerIDContains != nil { - predicates = append(predicates, entitlementplanfeature.OwnerIDContains(*i.OwnerIDContains)) + if i.NameContains != nil { + predicates = append(predicates, controlobjectivehistory.NameContains(*i.NameContains)) } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, entitlementplanfeature.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + if i.NameHasPrefix != nil { + predicates = append(predicates, controlobjectivehistory.NameHasPrefix(*i.NameHasPrefix)) } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, entitlementplanfeature.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + if i.NameHasSuffix != nil { + predicates = append(predicates, controlobjectivehistory.NameHasSuffix(*i.NameHasSuffix)) } - if i.OwnerIDIsNil { - predicates = append(predicates, entitlementplanfeature.OwnerIDIsNil()) + if i.NameEqualFold != nil { + predicates = append(predicates, controlobjectivehistory.NameEqualFold(*i.NameEqualFold)) } - if i.OwnerIDNotNil { - predicates = append(predicates, entitlementplanfeature.OwnerIDNotNil()) + if i.NameContainsFold != nil { + predicates = append(predicates, controlobjectivehistory.NameContainsFold(*i.NameContainsFold)) } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, entitlementplanfeature.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + if i.Description != nil { + predicates = append(predicates, controlobjectivehistory.DescriptionEQ(*i.Description)) } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, entitlementplanfeature.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, controlobjectivehistory.DescriptionNEQ(*i.DescriptionNEQ)) } - if i.PlanID != nil { - predicates = append(predicates, entitlementplanfeature.PlanIDEQ(*i.PlanID)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, controlobjectivehistory.DescriptionIn(i.DescriptionIn...)) } - if i.PlanIDNEQ != nil { - predicates = append(predicates, entitlementplanfeature.PlanIDNEQ(*i.PlanIDNEQ)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.DescriptionNotIn(i.DescriptionNotIn...)) } - if len(i.PlanIDIn) > 0 { - predicates = append(predicates, entitlementplanfeature.PlanIDIn(i.PlanIDIn...)) + if i.DescriptionGT != nil { + predicates = append(predicates, controlobjectivehistory.DescriptionGT(*i.DescriptionGT)) } - if len(i.PlanIDNotIn) > 0 { - predicates = append(predicates, entitlementplanfeature.PlanIDNotIn(i.PlanIDNotIn...)) + if i.DescriptionGTE != nil { + predicates = append(predicates, controlobjectivehistory.DescriptionGTE(*i.DescriptionGTE)) } - if i.PlanIDGT != nil { - predicates = append(predicates, entitlementplanfeature.PlanIDGT(*i.PlanIDGT)) + if i.DescriptionLT != nil { + predicates = append(predicates, controlobjectivehistory.DescriptionLT(*i.DescriptionLT)) } - if i.PlanIDGTE != nil { - predicates = append(predicates, entitlementplanfeature.PlanIDGTE(*i.PlanIDGTE)) + if i.DescriptionLTE != nil { + predicates = append(predicates, controlobjectivehistory.DescriptionLTE(*i.DescriptionLTE)) } - if i.PlanIDLT != nil { - predicates = append(predicates, entitlementplanfeature.PlanIDLT(*i.PlanIDLT)) + if i.DescriptionContains != nil { + predicates = append(predicates, controlobjectivehistory.DescriptionContains(*i.DescriptionContains)) } - if i.PlanIDLTE != nil { - predicates = append(predicates, entitlementplanfeature.PlanIDLTE(*i.PlanIDLTE)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, controlobjectivehistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.PlanIDContains != nil { - predicates = append(predicates, entitlementplanfeature.PlanIDContains(*i.PlanIDContains)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, controlobjectivehistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.PlanIDHasPrefix != nil { - predicates = append(predicates, entitlementplanfeature.PlanIDHasPrefix(*i.PlanIDHasPrefix)) + if i.DescriptionIsNil { + predicates = append(predicates, controlobjectivehistory.DescriptionIsNil()) } - if i.PlanIDHasSuffix != nil { - predicates = append(predicates, entitlementplanfeature.PlanIDHasSuffix(*i.PlanIDHasSuffix)) + if i.DescriptionNotNil { + predicates = append(predicates, controlobjectivehistory.DescriptionNotNil()) } - if i.PlanIDEqualFold != nil { - predicates = append(predicates, entitlementplanfeature.PlanIDEqualFold(*i.PlanIDEqualFold)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, controlobjectivehistory.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.PlanIDContainsFold != nil { - predicates = append(predicates, entitlementplanfeature.PlanIDContainsFold(*i.PlanIDContainsFold)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, controlobjectivehistory.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.FeatureID != nil { - predicates = append(predicates, entitlementplanfeature.FeatureIDEQ(*i.FeatureID)) + if i.Status != nil { + predicates = append(predicates, controlobjectivehistory.StatusEQ(*i.Status)) } - if i.FeatureIDNEQ != nil { - predicates = append(predicates, entitlementplanfeature.FeatureIDNEQ(*i.FeatureIDNEQ)) + if i.StatusNEQ != nil { + predicates = append(predicates, controlobjectivehistory.StatusNEQ(*i.StatusNEQ)) } - if len(i.FeatureIDIn) > 0 { - predicates = append(predicates, entitlementplanfeature.FeatureIDIn(i.FeatureIDIn...)) + if len(i.StatusIn) > 0 { + predicates = append(predicates, controlobjectivehistory.StatusIn(i.StatusIn...)) } - if len(i.FeatureIDNotIn) > 0 { - predicates = append(predicates, entitlementplanfeature.FeatureIDNotIn(i.FeatureIDNotIn...)) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.StatusNotIn(i.StatusNotIn...)) } - if i.FeatureIDGT != nil { - predicates = append(predicates, entitlementplanfeature.FeatureIDGT(*i.FeatureIDGT)) + if i.StatusGT != nil { + predicates = append(predicates, controlobjectivehistory.StatusGT(*i.StatusGT)) } - if i.FeatureIDGTE != nil { - predicates = append(predicates, entitlementplanfeature.FeatureIDGTE(*i.FeatureIDGTE)) + if i.StatusGTE != nil { + predicates = append(predicates, controlobjectivehistory.StatusGTE(*i.StatusGTE)) } - if i.FeatureIDLT != nil { - predicates = append(predicates, entitlementplanfeature.FeatureIDLT(*i.FeatureIDLT)) + if i.StatusLT != nil { + predicates = append(predicates, controlobjectivehistory.StatusLT(*i.StatusLT)) } - if i.FeatureIDLTE != nil { - predicates = append(predicates, entitlementplanfeature.FeatureIDLTE(*i.FeatureIDLTE)) + if i.StatusLTE != nil { + predicates = append(predicates, controlobjectivehistory.StatusLTE(*i.StatusLTE)) } - if i.FeatureIDContains != nil { - predicates = append(predicates, entitlementplanfeature.FeatureIDContains(*i.FeatureIDContains)) + if i.StatusContains != nil { + predicates = append(predicates, controlobjectivehistory.StatusContains(*i.StatusContains)) } - if i.FeatureIDHasPrefix != nil { - predicates = append(predicates, entitlementplanfeature.FeatureIDHasPrefix(*i.FeatureIDHasPrefix)) + if i.StatusHasPrefix != nil { + predicates = append(predicates, controlobjectivehistory.StatusHasPrefix(*i.StatusHasPrefix)) } - if i.FeatureIDHasSuffix != nil { - predicates = append(predicates, entitlementplanfeature.FeatureIDHasSuffix(*i.FeatureIDHasSuffix)) + if i.StatusHasSuffix != nil { + predicates = append(predicates, controlobjectivehistory.StatusHasSuffix(*i.StatusHasSuffix)) } - if i.FeatureIDEqualFold != nil { - predicates = append(predicates, entitlementplanfeature.FeatureIDEqualFold(*i.FeatureIDEqualFold)) + if i.StatusIsNil { + predicates = append(predicates, controlobjectivehistory.StatusIsNil()) } - if i.FeatureIDContainsFold != nil { - predicates = append(predicates, entitlementplanfeature.FeatureIDContainsFold(*i.FeatureIDContainsFold)) + if i.StatusNotNil { + predicates = append(predicates, controlobjectivehistory.StatusNotNil()) } - - if i.HasOwner != nil { - p := entitlementplanfeature.HasOwner() - if !*i.HasOwner { - p = entitlementplanfeature.Not(p) - } - predicates = append(predicates, p) + if i.StatusEqualFold != nil { + predicates = append(predicates, controlobjectivehistory.StatusEqualFold(*i.StatusEqualFold)) } - if len(i.HasOwnerWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) - 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, entitlementplanfeature.HasOwnerWith(with...)) + if i.StatusContainsFold != nil { + predicates = append(predicates, controlobjectivehistory.StatusContainsFold(*i.StatusContainsFold)) } - if i.HasPlan != nil { - p := entitlementplanfeature.HasPlan() - if !*i.HasPlan { - p = entitlementplanfeature.Not(p) - } - predicates = append(predicates, p) + if i.ControlObjectiveType != nil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeEQ(*i.ControlObjectiveType)) } - if len(i.HasPlanWith) > 0 { - with := make([]predicate.EntitlementPlan, 0, len(i.HasPlanWith)) - for _, w := range i.HasPlanWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasPlanWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, entitlementplanfeature.HasPlanWith(with...)) + if i.ControlObjectiveTypeNEQ != nil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeNEQ(*i.ControlObjectiveTypeNEQ)) } - if i.HasFeature != nil { - p := entitlementplanfeature.HasFeature() - if !*i.HasFeature { - p = entitlementplanfeature.Not(p) - } - predicates = append(predicates, p) + if len(i.ControlObjectiveTypeIn) > 0 { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeIn(i.ControlObjectiveTypeIn...)) } - if len(i.HasFeatureWith) > 0 { - with := make([]predicate.Feature, 0, len(i.HasFeatureWith)) - for _, w := range i.HasFeatureWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasFeatureWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, entitlementplanfeature.HasFeatureWith(with...)) + if len(i.ControlObjectiveTypeNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeNotIn(i.ControlObjectiveTypeNotIn...)) } - if i.HasEvents != nil { - p := entitlementplanfeature.HasEvents() - if !*i.HasEvents { - p = entitlementplanfeature.Not(p) - } - predicates = append(predicates, p) + if i.ControlObjectiveTypeGT != nil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeGT(*i.ControlObjectiveTypeGT)) } - if len(i.HasEventsWith) > 0 { - with := make([]predicate.Event, 0, len(i.HasEventsWith)) - for _, w := range i.HasEventsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, entitlementplanfeature.HasEventsWith(with...)) + if i.ControlObjectiveTypeGTE != nil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeGTE(*i.ControlObjectiveTypeGTE)) } - switch len(predicates) { - case 0: - return nil, ErrEmptyEntitlementPlanFeatureWhereInput - case 1: - return predicates[0], nil - default: - return entitlementplanfeature.And(predicates...), nil + if i.ControlObjectiveTypeLT != nil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeLT(*i.ControlObjectiveTypeLT)) } -} - -// EntitlementPlanFeatureHistoryWhereInput represents a where input for filtering EntitlementPlanFeatureHistory queries. -type EntitlementPlanFeatureHistoryWhereInput struct { - Predicates []predicate.EntitlementPlanFeatureHistory `json:"-"` - Not *EntitlementPlanFeatureHistoryWhereInput `json:"not,omitempty"` - Or []*EntitlementPlanFeatureHistoryWhereInput `json:"or,omitempty"` - And []*EntitlementPlanFeatureHistoryWhereInput `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"` - IDGT *string `json:"idGT,omitempty"` - IDGTE *string `json:"idGTE,omitempty"` - IDLT *string `json:"idLT,omitempty"` - IDLTE *string `json:"idLTE,omitempty"` - IDEqualFold *string `json:"idEqualFold,omitempty"` - IDContainsFold *string `json:"idContainsFold,omitempty"` - - // "history_time" field predicates. - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` - RefGT *string `json:"refGT,omitempty"` - RefGTE *string `json:"refGTE,omitempty"` - RefLT *string `json:"refLT,omitempty"` - RefLTE *string `json:"refLTE,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"` - CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` - CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` - CreatedAtNotIn []time.Time `json:"createdAtNotIn,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. + if i.ControlObjectiveTypeLTE != nil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeLTE(*i.ControlObjectiveTypeLTE)) + } + if i.ControlObjectiveTypeContains != nil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeContains(*i.ControlObjectiveTypeContains)) + } + if i.ControlObjectiveTypeHasPrefix != nil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeHasPrefix(*i.ControlObjectiveTypeHasPrefix)) + } + if i.ControlObjectiveTypeHasSuffix != nil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeHasSuffix(*i.ControlObjectiveTypeHasSuffix)) + } + if i.ControlObjectiveTypeIsNil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeIsNil()) + } + if i.ControlObjectiveTypeNotNil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeNotNil()) + } + if i.ControlObjectiveTypeEqualFold != nil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeEqualFold(*i.ControlObjectiveTypeEqualFold)) + } + if i.ControlObjectiveTypeContainsFold != nil { + predicates = append(predicates, controlobjectivehistory.ControlObjectiveTypeContainsFold(*i.ControlObjectiveTypeContainsFold)) + } + if i.Version != nil { + predicates = append(predicates, controlobjectivehistory.VersionEQ(*i.Version)) + } + if i.VersionNEQ != nil { + predicates = append(predicates, controlobjectivehistory.VersionNEQ(*i.VersionNEQ)) + } + if len(i.VersionIn) > 0 { + predicates = append(predicates, controlobjectivehistory.VersionIn(i.VersionIn...)) + } + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.VersionNotIn(i.VersionNotIn...)) + } + if i.VersionGT != nil { + predicates = append(predicates, controlobjectivehistory.VersionGT(*i.VersionGT)) + } + if i.VersionGTE != nil { + predicates = append(predicates, controlobjectivehistory.VersionGTE(*i.VersionGTE)) + } + if i.VersionLT != nil { + predicates = append(predicates, controlobjectivehistory.VersionLT(*i.VersionLT)) + } + if i.VersionLTE != nil { + predicates = append(predicates, controlobjectivehistory.VersionLTE(*i.VersionLTE)) + } + if i.VersionContains != nil { + predicates = append(predicates, controlobjectivehistory.VersionContains(*i.VersionContains)) + } + if i.VersionHasPrefix != nil { + predicates = append(predicates, controlobjectivehistory.VersionHasPrefix(*i.VersionHasPrefix)) + } + if i.VersionHasSuffix != nil { + predicates = append(predicates, controlobjectivehistory.VersionHasSuffix(*i.VersionHasSuffix)) + } + if i.VersionIsNil { + predicates = append(predicates, controlobjectivehistory.VersionIsNil()) + } + if i.VersionNotNil { + predicates = append(predicates, controlobjectivehistory.VersionNotNil()) + } + if i.VersionEqualFold != nil { + predicates = append(predicates, controlobjectivehistory.VersionEqualFold(*i.VersionEqualFold)) + } + if i.VersionContainsFold != nil { + predicates = append(predicates, controlobjectivehistory.VersionContainsFold(*i.VersionContainsFold)) + } + if i.ControlNumber != nil { + predicates = append(predicates, controlobjectivehistory.ControlNumberEQ(*i.ControlNumber)) + } + if i.ControlNumberNEQ != nil { + predicates = append(predicates, controlobjectivehistory.ControlNumberNEQ(*i.ControlNumberNEQ)) + } + if len(i.ControlNumberIn) > 0 { + predicates = append(predicates, controlobjectivehistory.ControlNumberIn(i.ControlNumberIn...)) + } + if len(i.ControlNumberNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.ControlNumberNotIn(i.ControlNumberNotIn...)) + } + if i.ControlNumberGT != nil { + predicates = append(predicates, controlobjectivehistory.ControlNumberGT(*i.ControlNumberGT)) + } + if i.ControlNumberGTE != nil { + predicates = append(predicates, controlobjectivehistory.ControlNumberGTE(*i.ControlNumberGTE)) + } + if i.ControlNumberLT != nil { + predicates = append(predicates, controlobjectivehistory.ControlNumberLT(*i.ControlNumberLT)) + } + if i.ControlNumberLTE != nil { + predicates = append(predicates, controlobjectivehistory.ControlNumberLTE(*i.ControlNumberLTE)) + } + if i.ControlNumberContains != nil { + predicates = append(predicates, controlobjectivehistory.ControlNumberContains(*i.ControlNumberContains)) + } + if i.ControlNumberHasPrefix != nil { + predicates = append(predicates, controlobjectivehistory.ControlNumberHasPrefix(*i.ControlNumberHasPrefix)) + } + if i.ControlNumberHasSuffix != nil { + predicates = append(predicates, controlobjectivehistory.ControlNumberHasSuffix(*i.ControlNumberHasSuffix)) + } + if i.ControlNumberIsNil { + predicates = append(predicates, controlobjectivehistory.ControlNumberIsNil()) + } + if i.ControlNumberNotNil { + predicates = append(predicates, controlobjectivehistory.ControlNumberNotNil()) + } + if i.ControlNumberEqualFold != nil { + predicates = append(predicates, controlobjectivehistory.ControlNumberEqualFold(*i.ControlNumberEqualFold)) + } + if i.ControlNumberContainsFold != nil { + predicates = append(predicates, controlobjectivehistory.ControlNumberContainsFold(*i.ControlNumberContainsFold)) + } + if i.Family != nil { + predicates = append(predicates, controlobjectivehistory.FamilyEQ(*i.Family)) + } + if i.FamilyNEQ != nil { + predicates = append(predicates, controlobjectivehistory.FamilyNEQ(*i.FamilyNEQ)) + } + if len(i.FamilyIn) > 0 { + predicates = append(predicates, controlobjectivehistory.FamilyIn(i.FamilyIn...)) + } + if len(i.FamilyNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.FamilyNotIn(i.FamilyNotIn...)) + } + if i.FamilyGT != nil { + predicates = append(predicates, controlobjectivehistory.FamilyGT(*i.FamilyGT)) + } + if i.FamilyGTE != nil { + predicates = append(predicates, controlobjectivehistory.FamilyGTE(*i.FamilyGTE)) + } + if i.FamilyLT != nil { + predicates = append(predicates, controlobjectivehistory.FamilyLT(*i.FamilyLT)) + } + if i.FamilyLTE != nil { + predicates = append(predicates, controlobjectivehistory.FamilyLTE(*i.FamilyLTE)) + } + if i.FamilyContains != nil { + predicates = append(predicates, controlobjectivehistory.FamilyContains(*i.FamilyContains)) + } + if i.FamilyHasPrefix != nil { + predicates = append(predicates, controlobjectivehistory.FamilyHasPrefix(*i.FamilyHasPrefix)) + } + if i.FamilyHasSuffix != nil { + predicates = append(predicates, controlobjectivehistory.FamilyHasSuffix(*i.FamilyHasSuffix)) + } + if i.FamilyIsNil { + predicates = append(predicates, controlobjectivehistory.FamilyIsNil()) + } + if i.FamilyNotNil { + predicates = append(predicates, controlobjectivehistory.FamilyNotNil()) + } + if i.FamilyEqualFold != nil { + predicates = append(predicates, controlobjectivehistory.FamilyEqualFold(*i.FamilyEqualFold)) + } + if i.FamilyContainsFold != nil { + predicates = append(predicates, controlobjectivehistory.FamilyContainsFold(*i.FamilyContainsFold)) + } + if i.Class != nil { + predicates = append(predicates, controlobjectivehistory.ClassEQ(*i.Class)) + } + if i.ClassNEQ != nil { + predicates = append(predicates, controlobjectivehistory.ClassNEQ(*i.ClassNEQ)) + } + if len(i.ClassIn) > 0 { + predicates = append(predicates, controlobjectivehistory.ClassIn(i.ClassIn...)) + } + if len(i.ClassNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.ClassNotIn(i.ClassNotIn...)) + } + if i.ClassGT != nil { + predicates = append(predicates, controlobjectivehistory.ClassGT(*i.ClassGT)) + } + if i.ClassGTE != nil { + predicates = append(predicates, controlobjectivehistory.ClassGTE(*i.ClassGTE)) + } + if i.ClassLT != nil { + predicates = append(predicates, controlobjectivehistory.ClassLT(*i.ClassLT)) + } + if i.ClassLTE != nil { + predicates = append(predicates, controlobjectivehistory.ClassLTE(*i.ClassLTE)) + } + if i.ClassContains != nil { + predicates = append(predicates, controlobjectivehistory.ClassContains(*i.ClassContains)) + } + if i.ClassHasPrefix != nil { + predicates = append(predicates, controlobjectivehistory.ClassHasPrefix(*i.ClassHasPrefix)) + } + if i.ClassHasSuffix != nil { + predicates = append(predicates, controlobjectivehistory.ClassHasSuffix(*i.ClassHasSuffix)) + } + if i.ClassIsNil { + predicates = append(predicates, controlobjectivehistory.ClassIsNil()) + } + if i.ClassNotNil { + predicates = append(predicates, controlobjectivehistory.ClassNotNil()) + } + if i.ClassEqualFold != nil { + predicates = append(predicates, controlobjectivehistory.ClassEqualFold(*i.ClassEqualFold)) + } + if i.ClassContainsFold != nil { + predicates = append(predicates, controlobjectivehistory.ClassContainsFold(*i.ClassContainsFold)) + } + if i.Source != nil { + predicates = append(predicates, controlobjectivehistory.SourceEQ(*i.Source)) + } + if i.SourceNEQ != nil { + predicates = append(predicates, controlobjectivehistory.SourceNEQ(*i.SourceNEQ)) + } + if len(i.SourceIn) > 0 { + predicates = append(predicates, controlobjectivehistory.SourceIn(i.SourceIn...)) + } + if len(i.SourceNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.SourceNotIn(i.SourceNotIn...)) + } + if i.SourceGT != nil { + predicates = append(predicates, controlobjectivehistory.SourceGT(*i.SourceGT)) + } + if i.SourceGTE != nil { + predicates = append(predicates, controlobjectivehistory.SourceGTE(*i.SourceGTE)) + } + if i.SourceLT != nil { + predicates = append(predicates, controlobjectivehistory.SourceLT(*i.SourceLT)) + } + if i.SourceLTE != nil { + predicates = append(predicates, controlobjectivehistory.SourceLTE(*i.SourceLTE)) + } + if i.SourceContains != nil { + predicates = append(predicates, controlobjectivehistory.SourceContains(*i.SourceContains)) + } + if i.SourceHasPrefix != nil { + predicates = append(predicates, controlobjectivehistory.SourceHasPrefix(*i.SourceHasPrefix)) + } + if i.SourceHasSuffix != nil { + predicates = append(predicates, controlobjectivehistory.SourceHasSuffix(*i.SourceHasSuffix)) + } + if i.SourceIsNil { + predicates = append(predicates, controlobjectivehistory.SourceIsNil()) + } + if i.SourceNotNil { + predicates = append(predicates, controlobjectivehistory.SourceNotNil()) + } + if i.SourceEqualFold != nil { + predicates = append(predicates, controlobjectivehistory.SourceEqualFold(*i.SourceEqualFold)) + } + if i.SourceContainsFold != nil { + predicates = append(predicates, controlobjectivehistory.SourceContainsFold(*i.SourceContainsFold)) + } + if i.MappedFrameworks != nil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksEQ(*i.MappedFrameworks)) + } + if i.MappedFrameworksNEQ != nil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksNEQ(*i.MappedFrameworksNEQ)) + } + if len(i.MappedFrameworksIn) > 0 { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksIn(i.MappedFrameworksIn...)) + } + if len(i.MappedFrameworksNotIn) > 0 { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksNotIn(i.MappedFrameworksNotIn...)) + } + if i.MappedFrameworksGT != nil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksGT(*i.MappedFrameworksGT)) + } + if i.MappedFrameworksGTE != nil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksGTE(*i.MappedFrameworksGTE)) + } + if i.MappedFrameworksLT != nil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksLT(*i.MappedFrameworksLT)) + } + if i.MappedFrameworksLTE != nil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksLTE(*i.MappedFrameworksLTE)) + } + if i.MappedFrameworksContains != nil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksContains(*i.MappedFrameworksContains)) + } + if i.MappedFrameworksHasPrefix != nil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksHasPrefix(*i.MappedFrameworksHasPrefix)) + } + if i.MappedFrameworksHasSuffix != nil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksHasSuffix(*i.MappedFrameworksHasSuffix)) + } + if i.MappedFrameworksIsNil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksIsNil()) + } + if i.MappedFrameworksNotNil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksNotNil()) + } + if i.MappedFrameworksEqualFold != nil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksEqualFold(*i.MappedFrameworksEqualFold)) + } + if i.MappedFrameworksContainsFold != nil { + predicates = append(predicates, controlobjectivehistory.MappedFrameworksContainsFold(*i.MappedFrameworksContainsFold)) + } + + switch len(predicates) { + case 0: + return nil, ErrEmptyControlObjectiveHistoryWhereInput + case 1: + return predicates[0], nil + default: + return controlobjectivehistory.And(predicates...), nil + } +} + +// DocumentDataWhereInput represents a where input for filtering DocumentData queries. +type DocumentDataWhereInput struct { + Predicates []predicate.DocumentData `json:"-"` + Not *DocumentDataWhereInput `json:"not,omitempty"` + Or []*DocumentDataWhereInput `json:"or,omitempty"` + And []*DocumentDataWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` @@ -7519,50 +9492,51 @@ type EntitlementPlanFeatureHistoryWhereInput struct { OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` - // "plan_id" field predicates. - PlanID *string `json:"planID,omitempty"` - PlanIDNEQ *string `json:"planIDNEQ,omitempty"` - PlanIDIn []string `json:"planIDIn,omitempty"` - PlanIDNotIn []string `json:"planIDNotIn,omitempty"` - PlanIDGT *string `json:"planIDGT,omitempty"` - PlanIDGTE *string `json:"planIDGTE,omitempty"` - PlanIDLT *string `json:"planIDLT,omitempty"` - PlanIDLTE *string `json:"planIDLTE,omitempty"` - PlanIDContains *string `json:"planIDContains,omitempty"` - PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` - PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` - PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` - PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` + // "template_id" field predicates. + TemplateID *string `json:"templateID,omitempty"` + TemplateIDNEQ *string `json:"templateIDNEQ,omitempty"` + TemplateIDIn []string `json:"templateIDIn,omitempty"` + TemplateIDNotIn []string `json:"templateIDNotIn,omitempty"` + TemplateIDGT *string `json:"templateIDGT,omitempty"` + TemplateIDGTE *string `json:"templateIDGTE,omitempty"` + TemplateIDLT *string `json:"templateIDLT,omitempty"` + TemplateIDLTE *string `json:"templateIDLTE,omitempty"` + TemplateIDContains *string `json:"templateIDContains,omitempty"` + TemplateIDHasPrefix *string `json:"templateIDHasPrefix,omitempty"` + TemplateIDHasSuffix *string `json:"templateIDHasSuffix,omitempty"` + TemplateIDEqualFold *string `json:"templateIDEqualFold,omitempty"` + TemplateIDContainsFold *string `json:"templateIDContainsFold,omitempty"` - // "feature_id" field predicates. - FeatureID *string `json:"featureID,omitempty"` - FeatureIDNEQ *string `json:"featureIDNEQ,omitempty"` - FeatureIDIn []string `json:"featureIDIn,omitempty"` - FeatureIDNotIn []string `json:"featureIDNotIn,omitempty"` - FeatureIDGT *string `json:"featureIDGT,omitempty"` - FeatureIDGTE *string `json:"featureIDGTE,omitempty"` - FeatureIDLT *string `json:"featureIDLT,omitempty"` - FeatureIDLTE *string `json:"featureIDLTE,omitempty"` - FeatureIDContains *string `json:"featureIDContains,omitempty"` - FeatureIDHasPrefix *string `json:"featureIDHasPrefix,omitempty"` - FeatureIDHasSuffix *string `json:"featureIDHasSuffix,omitempty"` - FeatureIDEqualFold *string `json:"featureIDEqualFold,omitempty"` - FeatureIDContainsFold *string `json:"featureIDContainsFold,omitempty"` + // "owner" edge predicates. + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + + // "template" edge predicates. + HasTemplate *bool `json:"hasTemplate,omitempty"` + HasTemplateWith []*TemplateWhereInput `json:"hasTemplateWith,omitempty"` + + // "entity" edge predicates. + HasEntity *bool `json:"hasEntity,omitempty"` + HasEntityWith []*EntityWhereInput `json:"hasEntityWith,omitempty"` + + // "files" edge predicates. + HasFiles *bool `json:"hasFiles,omitempty"` + HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *EntitlementPlanFeatureHistoryWhereInput) AddPredicates(predicates ...predicate.EntitlementPlanFeatureHistory) { +func (i *DocumentDataWhereInput) AddPredicates(predicates ...predicate.DocumentData) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the EntitlementPlanFeatureHistoryWhereInput filter on the EntitlementPlanFeatureHistoryQuery builder. -func (i *EntitlementPlanFeatureHistoryWhereInput) Filter(q *EntitlementPlanFeatureHistoryQuery) (*EntitlementPlanFeatureHistoryQuery, error) { +// Filter applies the DocumentDataWhereInput filter on the DocumentDataQuery builder. +func (i *DocumentDataWhereInput) Filter(q *DocumentDataQuery) (*DocumentDataQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyEntitlementPlanFeatureHistoryWhereInput { + if err == ErrEmptyDocumentDataWhereInput { return q, nil } return nil, err @@ -7570,19 +9544,19 @@ func (i *EntitlementPlanFeatureHistoryWhereInput) Filter(q *EntitlementPlanFeatu return q.Where(p), nil } -// ErrEmptyEntitlementPlanFeatureHistoryWhereInput is returned in case the EntitlementPlanFeatureHistoryWhereInput is empty. -var ErrEmptyEntitlementPlanFeatureHistoryWhereInput = errors.New("generated: empty predicate EntitlementPlanFeatureHistoryWhereInput") +// ErrEmptyDocumentDataWhereInput is returned in case the DocumentDataWhereInput is empty. +var ErrEmptyDocumentDataWhereInput = errors.New("generated: empty predicate DocumentDataWhereInput") -// P returns a predicate for filtering entitlementplanfeaturehistories. +// P returns a predicate for filtering documentdataslice. // An error is returned if the input is empty or invalid. -func (i *EntitlementPlanFeatureHistoryWhereInput) P() (predicate.EntitlementPlanFeatureHistory, error) { - var predicates []predicate.EntitlementPlanFeatureHistory +func (i *DocumentDataWhereInput) P() (predicate.DocumentData, error) { + var predicates []predicate.DocumentData if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, entitlementplanfeaturehistory.Not(p)) + predicates = append(predicates, documentdata.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -7592,7 +9566,7 @@ func (i *EntitlementPlanFeatureHistoryWhereInput) P() (predicate.EntitlementPlan } predicates = append(predicates, p) case n > 1: - or := make([]predicate.EntitlementPlanFeatureHistory, 0, n) + or := make([]predicate.DocumentData, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -7600,7 +9574,7 @@ func (i *EntitlementPlanFeatureHistoryWhereInput) P() (predicate.EntitlementPlan } or = append(or, p) } - predicates = append(predicates, entitlementplanfeaturehistory.Or(or...)) + predicates = append(predicates, documentdata.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -7610,7 +9584,7 @@ func (i *EntitlementPlanFeatureHistoryWhereInput) P() (predicate.EntitlementPlan } predicates = append(predicates, p) case n > 1: - and := make([]predicate.EntitlementPlanFeatureHistory, 0, n) + and := make([]predicate.DocumentData, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -7618,485 +9592,437 @@ func (i *EntitlementPlanFeatureHistoryWhereInput) P() (predicate.EntitlementPlan } and = append(and, p) } - predicates = append(predicates, entitlementplanfeaturehistory.And(and...)) + predicates = append(predicates, documentdata.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, entitlementplanfeaturehistory.IDEQ(*i.ID)) + predicates = append(predicates, documentdata.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, documentdata.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.IDIn(i.IDIn...)) + predicates = append(predicates, documentdata.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, documentdata.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.IDGT(*i.IDGT)) + predicates = append(predicates, documentdata.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, documentdata.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.IDLT(*i.IDLT)) + predicates = append(predicates, documentdata.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, documentdata.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, documentdata.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.IDContainsFold(*i.IDContainsFold)) - } - if i.HistoryTime != nil { - predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeEQ(*i.HistoryTime)) - } - if i.HistoryTimeNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) - } - if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeIn(i.HistoryTimeIn...)) - } - if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) - } - if i.HistoryTimeGT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeGT(*i.HistoryTimeGT)) - } - if i.HistoryTimeGTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) - } - if i.HistoryTimeLT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeLT(*i.HistoryTimeLT)) - } - if i.HistoryTimeLTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) - } - if i.Ref != nil { - predicates = append(predicates, entitlementplanfeaturehistory.RefEQ(*i.Ref)) - } - if i.RefNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.RefNEQ(*i.RefNEQ)) - } - if len(i.RefIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.RefIn(i.RefIn...)) - } - if len(i.RefNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.RefNotIn(i.RefNotIn...)) - } - if i.RefGT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.RefGT(*i.RefGT)) - } - if i.RefGTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.RefGTE(*i.RefGTE)) - } - if i.RefLT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.RefLT(*i.RefLT)) - } - if i.RefLTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.RefLTE(*i.RefLTE)) - } - if i.RefContains != nil { - predicates = append(predicates, entitlementplanfeaturehistory.RefContains(*i.RefContains)) - } - if i.RefHasPrefix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.RefHasPrefix(*i.RefHasPrefix)) - } - if i.RefHasSuffix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.RefHasSuffix(*i.RefHasSuffix)) - } - if i.RefIsNil { - predicates = append(predicates, entitlementplanfeaturehistory.RefIsNil()) - } - if i.RefNotNil { - predicates = append(predicates, entitlementplanfeaturehistory.RefNotNil()) - } - if i.RefEqualFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.RefEqualFold(*i.RefEqualFold)) - } - if i.RefContainsFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.RefContainsFold(*i.RefContainsFold)) - } - if i.Operation != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OperationEQ(*i.Operation)) - } - if i.OperationNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OperationNEQ(*i.OperationNEQ)) - } - if len(i.OperationIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.OperationIn(i.OperationIn...)) - } - if len(i.OperationNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, documentdata.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, documentdata.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, documentdata.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, documentdata.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, documentdata.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, documentdata.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, documentdata.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, documentdata.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, documentdata.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtIsNil()) + predicates = append(predicates, documentdata.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtNotNil()) + predicates = append(predicates, documentdata.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, documentdata.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, documentdata.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, documentdata.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, documentdata.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, documentdata.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, documentdata.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, documentdata.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, documentdata.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtIsNil()) + predicates = append(predicates, documentdata.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtNotNil()) + predicates = append(predicates, documentdata.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, documentdata.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, documentdata.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, documentdata.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, documentdata.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, documentdata.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, documentdata.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, documentdata.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, documentdata.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, documentdata.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, documentdata.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, documentdata.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByIsNil()) + predicates = append(predicates, documentdata.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByNotNil()) + predicates = append(predicates, documentdata.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, documentdata.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, documentdata.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, documentdata.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, documentdata.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, documentdata.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, documentdata.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, documentdata.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, documentdata.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, documentdata.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, documentdata.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, documentdata.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, documentdata.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, documentdata.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByIsNil()) + predicates = append(predicates, documentdata.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByNotNil()) + predicates = append(predicates, documentdata.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, documentdata.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, documentdata.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, documentdata.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, documentdata.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, documentdata.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, documentdata.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, documentdata.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, documentdata.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, documentdata.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, documentdata.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtIsNil()) + predicates = append(predicates, documentdata.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtNotNil()) + predicates = append(predicates, documentdata.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, documentdata.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, documentdata.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, documentdata.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, documentdata.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, documentdata.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, documentdata.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, documentdata.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, documentdata.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, documentdata.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, documentdata.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, documentdata.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByIsNil()) + predicates = append(predicates, documentdata.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByNotNil()) + predicates = append(predicates, documentdata.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, documentdata.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, documentdata.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.OwnerID != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDEQ(*i.OwnerID)) + predicates = append(predicates, documentdata.OwnerIDEQ(*i.OwnerID)) } if i.OwnerIDNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + predicates = append(predicates, documentdata.OwnerIDNEQ(*i.OwnerIDNEQ)) } if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDIn(i.OwnerIDIn...)) + predicates = append(predicates, documentdata.OwnerIDIn(i.OwnerIDIn...)) } if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + predicates = append(predicates, documentdata.OwnerIDNotIn(i.OwnerIDNotIn...)) } if i.OwnerIDGT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDGT(*i.OwnerIDGT)) + predicates = append(predicates, documentdata.OwnerIDGT(*i.OwnerIDGT)) } if i.OwnerIDGTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDGTE(*i.OwnerIDGTE)) + predicates = append(predicates, documentdata.OwnerIDGTE(*i.OwnerIDGTE)) } if i.OwnerIDLT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDLT(*i.OwnerIDLT)) + predicates = append(predicates, documentdata.OwnerIDLT(*i.OwnerIDLT)) } if i.OwnerIDLTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDLTE(*i.OwnerIDLTE)) + predicates = append(predicates, documentdata.OwnerIDLTE(*i.OwnerIDLTE)) } if i.OwnerIDContains != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDContains(*i.OwnerIDContains)) + predicates = append(predicates, documentdata.OwnerIDContains(*i.OwnerIDContains)) } if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + predicates = append(predicates, documentdata.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + predicates = append(predicates, documentdata.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } if i.OwnerIDIsNil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDIsNil()) + predicates = append(predicates, documentdata.OwnerIDIsNil()) } if i.OwnerIDNotNil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDNotNil()) + predicates = append(predicates, documentdata.OwnerIDNotNil()) } if i.OwnerIDEqualFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + predicates = append(predicates, documentdata.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } if i.OwnerIDContainsFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) - } - if i.PlanID != nil { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDEQ(*i.PlanID)) - } - if i.PlanIDNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDNEQ(*i.PlanIDNEQ)) - } - if len(i.PlanIDIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDIn(i.PlanIDIn...)) - } - if len(i.PlanIDNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDNotIn(i.PlanIDNotIn...)) - } - if i.PlanIDGT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDGT(*i.PlanIDGT)) + predicates = append(predicates, documentdata.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if i.PlanIDGTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDGTE(*i.PlanIDGTE)) + if i.TemplateID != nil { + predicates = append(predicates, documentdata.TemplateIDEQ(*i.TemplateID)) } - if i.PlanIDLT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDLT(*i.PlanIDLT)) + if i.TemplateIDNEQ != nil { + predicates = append(predicates, documentdata.TemplateIDNEQ(*i.TemplateIDNEQ)) } - if i.PlanIDLTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDLTE(*i.PlanIDLTE)) + if len(i.TemplateIDIn) > 0 { + predicates = append(predicates, documentdata.TemplateIDIn(i.TemplateIDIn...)) } - if i.PlanIDContains != nil { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDContains(*i.PlanIDContains)) + if len(i.TemplateIDNotIn) > 0 { + predicates = append(predicates, documentdata.TemplateIDNotIn(i.TemplateIDNotIn...)) } - if i.PlanIDHasPrefix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDHasPrefix(*i.PlanIDHasPrefix)) + if i.TemplateIDGT != nil { + predicates = append(predicates, documentdata.TemplateIDGT(*i.TemplateIDGT)) } - if i.PlanIDHasSuffix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDHasSuffix(*i.PlanIDHasSuffix)) + if i.TemplateIDGTE != nil { + predicates = append(predicates, documentdata.TemplateIDGTE(*i.TemplateIDGTE)) } - if i.PlanIDEqualFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDEqualFold(*i.PlanIDEqualFold)) + if i.TemplateIDLT != nil { + predicates = append(predicates, documentdata.TemplateIDLT(*i.TemplateIDLT)) } - if i.PlanIDContainsFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.PlanIDContainsFold(*i.PlanIDContainsFold)) + if i.TemplateIDLTE != nil { + predicates = append(predicates, documentdata.TemplateIDLTE(*i.TemplateIDLTE)) } - if i.FeatureID != nil { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDEQ(*i.FeatureID)) + if i.TemplateIDContains != nil { + predicates = append(predicates, documentdata.TemplateIDContains(*i.TemplateIDContains)) } - if i.FeatureIDNEQ != nil { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDNEQ(*i.FeatureIDNEQ)) + if i.TemplateIDHasPrefix != nil { + predicates = append(predicates, documentdata.TemplateIDHasPrefix(*i.TemplateIDHasPrefix)) } - if len(i.FeatureIDIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDIn(i.FeatureIDIn...)) + if i.TemplateIDHasSuffix != nil { + predicates = append(predicates, documentdata.TemplateIDHasSuffix(*i.TemplateIDHasSuffix)) } - if len(i.FeatureIDNotIn) > 0 { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDNotIn(i.FeatureIDNotIn...)) + if i.TemplateIDEqualFold != nil { + predicates = append(predicates, documentdata.TemplateIDEqualFold(*i.TemplateIDEqualFold)) } - if i.FeatureIDGT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDGT(*i.FeatureIDGT)) + if i.TemplateIDContainsFold != nil { + predicates = append(predicates, documentdata.TemplateIDContainsFold(*i.TemplateIDContainsFold)) } - if i.FeatureIDGTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDGTE(*i.FeatureIDGTE)) + + if i.HasOwner != nil { + p := documentdata.HasOwner() + if !*i.HasOwner { + p = documentdata.Not(p) + } + predicates = append(predicates, p) } - if i.FeatureIDLT != nil { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDLT(*i.FeatureIDLT)) + if len(i.HasOwnerWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) + 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, documentdata.HasOwnerWith(with...)) } - if i.FeatureIDLTE != nil { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDLTE(*i.FeatureIDLTE)) + if i.HasTemplate != nil { + p := documentdata.HasTemplate() + if !*i.HasTemplate { + p = documentdata.Not(p) + } + predicates = append(predicates, p) } - if i.FeatureIDContains != nil { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDContains(*i.FeatureIDContains)) + if len(i.HasTemplateWith) > 0 { + with := make([]predicate.Template, 0, len(i.HasTemplateWith)) + for _, w := range i.HasTemplateWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasTemplateWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, documentdata.HasTemplateWith(with...)) } - if i.FeatureIDHasPrefix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDHasPrefix(*i.FeatureIDHasPrefix)) + if i.HasEntity != nil { + p := documentdata.HasEntity() + if !*i.HasEntity { + p = documentdata.Not(p) + } + predicates = append(predicates, p) } - if i.FeatureIDHasSuffix != nil { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDHasSuffix(*i.FeatureIDHasSuffix)) + if len(i.HasEntityWith) > 0 { + with := make([]predicate.Entity, 0, len(i.HasEntityWith)) + for _, w := range i.HasEntityWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntityWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, documentdata.HasEntityWith(with...)) } - if i.FeatureIDEqualFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDEqualFold(*i.FeatureIDEqualFold)) + if i.HasFiles != nil { + p := documentdata.HasFiles() + if !*i.HasFiles { + p = documentdata.Not(p) + } + predicates = append(predicates, p) } - if i.FeatureIDContainsFold != nil { - predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDContainsFold(*i.FeatureIDContainsFold)) + if len(i.HasFilesWith) > 0 { + with := make([]predicate.File, 0, len(i.HasFilesWith)) + for _, w := range i.HasFilesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFilesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, documentdata.HasFilesWith(with...)) } - switch len(predicates) { case 0: - return nil, ErrEmptyEntitlementPlanFeatureHistoryWhereInput + return nil, ErrEmptyDocumentDataWhereInput case 1: return predicates[0], nil default: - return entitlementplanfeaturehistory.And(predicates...), nil + return documentdata.And(predicates...), nil } } -// EntitlementPlanHistoryWhereInput represents a where input for filtering EntitlementPlanHistory queries. -type EntitlementPlanHistoryWhereInput struct { - Predicates []predicate.EntitlementPlanHistory `json:"-"` - Not *EntitlementPlanHistoryWhereInput `json:"not,omitempty"` - Or []*EntitlementPlanHistoryWhereInput `json:"or,omitempty"` - And []*EntitlementPlanHistoryWhereInput `json:"and,omitempty"` +// DocumentDataHistoryWhereInput represents a where input for filtering DocumentDataHistory queries. +type DocumentDataHistoryWhereInput struct { + Predicates []predicate.DocumentDataHistory `json:"-"` + Not *DocumentDataHistoryWhereInput `json:"not,omitempty"` + Or []*DocumentDataHistoryWhereInput `json:"or,omitempty"` + And []*DocumentDataHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -8247,84 +10173,35 @@ type EntitlementPlanHistoryWhereInput struct { OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` - // "display_name" field predicates. - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGT *string `json:"displayNameGT,omitempty"` - DisplayNameGTE *string `json:"displayNameGTE,omitempty"` - DisplayNameLT *string `json:"displayNameLT,omitempty"` - DisplayNameLTE *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameIsNil bool `json:"displayNameIsNil,omitempty"` - DisplayNameNotNil bool `json:"displayNameNotNil,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` - - // "name" field predicates. - Name *string `json:"name,omitempty"` - NameNEQ *string `json:"nameNEQ,omitempty"` - NameIn []string `json:"nameIn,omitempty"` - NameNotIn []string `json:"nameNotIn,omitempty"` - NameGT *string `json:"nameGT,omitempty"` - NameGTE *string `json:"nameGTE,omitempty"` - NameLT *string `json:"nameLT,omitempty"` - NameLTE *string `json:"nameLTE,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"` - DescriptionGT *string `json:"descriptionGT,omitempty"` - DescriptionGTE *string `json:"descriptionGTE,omitempty"` - DescriptionLT *string `json:"descriptionLT,omitempty"` - DescriptionLTE *string `json:"descriptionLTE,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"` - - // "version" field predicates. - Version *string `json:"version,omitempty"` - VersionNEQ *string `json:"versionNEQ,omitempty"` - VersionIn []string `json:"versionIn,omitempty"` - VersionNotIn []string `json:"versionNotIn,omitempty"` - VersionGT *string `json:"versionGT,omitempty"` - VersionGTE *string `json:"versionGTE,omitempty"` - VersionLT *string `json:"versionLT,omitempty"` - VersionLTE *string `json:"versionLTE,omitempty"` - VersionContains *string `json:"versionContains,omitempty"` - VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` - VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` - VersionEqualFold *string `json:"versionEqualFold,omitempty"` - VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // "template_id" field predicates. + TemplateID *string `json:"templateID,omitempty"` + TemplateIDNEQ *string `json:"templateIDNEQ,omitempty"` + TemplateIDIn []string `json:"templateIDIn,omitempty"` + TemplateIDNotIn []string `json:"templateIDNotIn,omitempty"` + TemplateIDGT *string `json:"templateIDGT,omitempty"` + TemplateIDGTE *string `json:"templateIDGTE,omitempty"` + TemplateIDLT *string `json:"templateIDLT,omitempty"` + TemplateIDLTE *string `json:"templateIDLTE,omitempty"` + TemplateIDContains *string `json:"templateIDContains,omitempty"` + TemplateIDHasPrefix *string `json:"templateIDHasPrefix,omitempty"` + TemplateIDHasSuffix *string `json:"templateIDHasSuffix,omitempty"` + TemplateIDEqualFold *string `json:"templateIDEqualFold,omitempty"` + TemplateIDContainsFold *string `json:"templateIDContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *EntitlementPlanHistoryWhereInput) AddPredicates(predicates ...predicate.EntitlementPlanHistory) { +func (i *DocumentDataHistoryWhereInput) AddPredicates(predicates ...predicate.DocumentDataHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the EntitlementPlanHistoryWhereInput filter on the EntitlementPlanHistoryQuery builder. -func (i *EntitlementPlanHistoryWhereInput) Filter(q *EntitlementPlanHistoryQuery) (*EntitlementPlanHistoryQuery, error) { +// Filter applies the DocumentDataHistoryWhereInput filter on the DocumentDataHistoryQuery builder. +func (i *DocumentDataHistoryWhereInput) Filter(q *DocumentDataHistoryQuery) (*DocumentDataHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyEntitlementPlanHistoryWhereInput { + if err == ErrEmptyDocumentDataHistoryWhereInput { return q, nil } return nil, err @@ -8332,19 +10209,19 @@ func (i *EntitlementPlanHistoryWhereInput) Filter(q *EntitlementPlanHistoryQuery return q.Where(p), nil } -// ErrEmptyEntitlementPlanHistoryWhereInput is returned in case the EntitlementPlanHistoryWhereInput is empty. -var ErrEmptyEntitlementPlanHistoryWhereInput = errors.New("generated: empty predicate EntitlementPlanHistoryWhereInput") +// ErrEmptyDocumentDataHistoryWhereInput is returned in case the DocumentDataHistoryWhereInput is empty. +var ErrEmptyDocumentDataHistoryWhereInput = errors.New("generated: empty predicate DocumentDataHistoryWhereInput") -// P returns a predicate for filtering entitlementplanhistories. +// P returns a predicate for filtering documentdatahistories. // An error is returned if the input is empty or invalid. -func (i *EntitlementPlanHistoryWhereInput) P() (predicate.EntitlementPlanHistory, error) { - var predicates []predicate.EntitlementPlanHistory +func (i *DocumentDataHistoryWhereInput) P() (predicate.DocumentDataHistory, error) { + var predicates []predicate.DocumentDataHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, entitlementplanhistory.Not(p)) + predicates = append(predicates, documentdatahistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -8354,7 +10231,7 @@ func (i *EntitlementPlanHistoryWhereInput) P() (predicate.EntitlementPlanHistory } predicates = append(predicates, p) case n > 1: - or := make([]predicate.EntitlementPlanHistory, 0, n) + or := make([]predicate.DocumentDataHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -8362,7 +10239,7 @@ func (i *EntitlementPlanHistoryWhereInput) P() (predicate.EntitlementPlanHistory } or = append(or, p) } - predicates = append(predicates, entitlementplanhistory.Or(or...)) + predicates = append(predicates, documentdatahistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -8372,7 +10249,7 @@ func (i *EntitlementPlanHistoryWhereInput) P() (predicate.EntitlementPlanHistory } predicates = append(predicates, p) case n > 1: - and := make([]predicate.EntitlementPlanHistory, 0, n) + and := make([]predicate.DocumentDataHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -8380,575 +10257,446 @@ func (i *EntitlementPlanHistoryWhereInput) P() (predicate.EntitlementPlanHistory } and = append(and, p) } - predicates = append(predicates, entitlementplanhistory.And(and...)) + predicates = append(predicates, documentdatahistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, entitlementplanhistory.IDEQ(*i.ID)) + predicates = append(predicates, documentdatahistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, entitlementplanhistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, documentdatahistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, entitlementplanhistory.IDIn(i.IDIn...)) + predicates = append(predicates, documentdatahistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, documentdatahistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, entitlementplanhistory.IDGT(*i.IDGT)) + predicates = append(predicates, documentdatahistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, entitlementplanhistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, documentdatahistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, entitlementplanhistory.IDLT(*i.IDLT)) + predicates = append(predicates, documentdatahistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, entitlementplanhistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, documentdatahistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, entitlementplanhistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, documentdatahistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, entitlementplanhistory.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, documentdatahistory.IDContainsFold(*i.IDContainsFold)) } if i.HistoryTime != nil { - predicates = append(predicates, entitlementplanhistory.HistoryTimeEQ(*i.HistoryTime)) + predicates = append(predicates, documentdatahistory.HistoryTimeEQ(*i.HistoryTime)) } if i.HistoryTimeNEQ != nil { - predicates = append(predicates, entitlementplanhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + predicates = append(predicates, documentdatahistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) } if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, entitlementplanhistory.HistoryTimeIn(i.HistoryTimeIn...)) + predicates = append(predicates, documentdatahistory.HistoryTimeIn(i.HistoryTimeIn...)) } if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + predicates = append(predicates, documentdatahistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) } if i.HistoryTimeGT != nil { - predicates = append(predicates, entitlementplanhistory.HistoryTimeGT(*i.HistoryTimeGT)) + predicates = append(predicates, documentdatahistory.HistoryTimeGT(*i.HistoryTimeGT)) } if i.HistoryTimeGTE != nil { - predicates = append(predicates, entitlementplanhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + predicates = append(predicates, documentdatahistory.HistoryTimeGTE(*i.HistoryTimeGTE)) } if i.HistoryTimeLT != nil { - predicates = append(predicates, entitlementplanhistory.HistoryTimeLT(*i.HistoryTimeLT)) + predicates = append(predicates, documentdatahistory.HistoryTimeLT(*i.HistoryTimeLT)) } if i.HistoryTimeLTE != nil { - predicates = append(predicates, entitlementplanhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + predicates = append(predicates, documentdatahistory.HistoryTimeLTE(*i.HistoryTimeLTE)) } if i.Ref != nil { - predicates = append(predicates, entitlementplanhistory.RefEQ(*i.Ref)) + predicates = append(predicates, documentdatahistory.RefEQ(*i.Ref)) } if i.RefNEQ != nil { - predicates = append(predicates, entitlementplanhistory.RefNEQ(*i.RefNEQ)) + predicates = append(predicates, documentdatahistory.RefNEQ(*i.RefNEQ)) } if len(i.RefIn) > 0 { - predicates = append(predicates, entitlementplanhistory.RefIn(i.RefIn...)) + predicates = append(predicates, documentdatahistory.RefIn(i.RefIn...)) } if len(i.RefNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.RefNotIn(i.RefNotIn...)) + predicates = append(predicates, documentdatahistory.RefNotIn(i.RefNotIn...)) } if i.RefGT != nil { - predicates = append(predicates, entitlementplanhistory.RefGT(*i.RefGT)) + predicates = append(predicates, documentdatahistory.RefGT(*i.RefGT)) } if i.RefGTE != nil { - predicates = append(predicates, entitlementplanhistory.RefGTE(*i.RefGTE)) + predicates = append(predicates, documentdatahistory.RefGTE(*i.RefGTE)) } if i.RefLT != nil { - predicates = append(predicates, entitlementplanhistory.RefLT(*i.RefLT)) + predicates = append(predicates, documentdatahistory.RefLT(*i.RefLT)) } if i.RefLTE != nil { - predicates = append(predicates, entitlementplanhistory.RefLTE(*i.RefLTE)) + predicates = append(predicates, documentdatahistory.RefLTE(*i.RefLTE)) } if i.RefContains != nil { - predicates = append(predicates, entitlementplanhistory.RefContains(*i.RefContains)) + predicates = append(predicates, documentdatahistory.RefContains(*i.RefContains)) } if i.RefHasPrefix != nil { - predicates = append(predicates, entitlementplanhistory.RefHasPrefix(*i.RefHasPrefix)) + predicates = append(predicates, documentdatahistory.RefHasPrefix(*i.RefHasPrefix)) } if i.RefHasSuffix != nil { - predicates = append(predicates, entitlementplanhistory.RefHasSuffix(*i.RefHasSuffix)) + predicates = append(predicates, documentdatahistory.RefHasSuffix(*i.RefHasSuffix)) } if i.RefIsNil { - predicates = append(predicates, entitlementplanhistory.RefIsNil()) + predicates = append(predicates, documentdatahistory.RefIsNil()) } if i.RefNotNil { - predicates = append(predicates, entitlementplanhistory.RefNotNil()) + predicates = append(predicates, documentdatahistory.RefNotNil()) } if i.RefEqualFold != nil { - predicates = append(predicates, entitlementplanhistory.RefEqualFold(*i.RefEqualFold)) + predicates = append(predicates, documentdatahistory.RefEqualFold(*i.RefEqualFold)) } if i.RefContainsFold != nil { - predicates = append(predicates, entitlementplanhistory.RefContainsFold(*i.RefContainsFold)) + predicates = append(predicates, documentdatahistory.RefContainsFold(*i.RefContainsFold)) } if i.Operation != nil { - predicates = append(predicates, entitlementplanhistory.OperationEQ(*i.Operation)) + predicates = append(predicates, documentdatahistory.OperationEQ(*i.Operation)) } if i.OperationNEQ != nil { - predicates = append(predicates, entitlementplanhistory.OperationNEQ(*i.OperationNEQ)) + predicates = append(predicates, documentdatahistory.OperationNEQ(*i.OperationNEQ)) } if len(i.OperationIn) > 0 { - predicates = append(predicates, entitlementplanhistory.OperationIn(i.OperationIn...)) + predicates = append(predicates, documentdatahistory.OperationIn(i.OperationIn...)) } if len(i.OperationNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, documentdatahistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, entitlementplanhistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, documentdatahistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, entitlementplanhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, documentdatahistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, entitlementplanhistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, documentdatahistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, documentdatahistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, entitlementplanhistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, documentdatahistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, entitlementplanhistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, documentdatahistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, entitlementplanhistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, documentdatahistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, entitlementplanhistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, documentdatahistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, entitlementplanhistory.CreatedAtIsNil()) + predicates = append(predicates, documentdatahistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, entitlementplanhistory.CreatedAtNotNil()) + predicates = append(predicates, documentdatahistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, documentdatahistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, documentdatahistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, entitlementplanhistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, documentdatahistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, documentdatahistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, documentdatahistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, documentdatahistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, documentdatahistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, documentdatahistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, entitlementplanhistory.UpdatedAtIsNil()) + predicates = append(predicates, documentdatahistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, entitlementplanhistory.UpdatedAtNotNil()) + predicates = append(predicates, documentdatahistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, entitlementplanhistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, documentdatahistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, entitlementplanhistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, documentdatahistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, entitlementplanhistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, documentdatahistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, documentdatahistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, entitlementplanhistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, documentdatahistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, entitlementplanhistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, documentdatahistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, entitlementplanhistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, documentdatahistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, entitlementplanhistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, documentdatahistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, entitlementplanhistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, documentdatahistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, entitlementplanhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, documentdatahistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, entitlementplanhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, documentdatahistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, entitlementplanhistory.CreatedByIsNil()) + predicates = append(predicates, documentdatahistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, entitlementplanhistory.CreatedByNotNil()) + predicates = append(predicates, documentdatahistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, entitlementplanhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, documentdatahistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, entitlementplanhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, documentdatahistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, documentdatahistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, documentdatahistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, entitlementplanhistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, documentdatahistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, documentdatahistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, documentdatahistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, documentdatahistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, documentdatahistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, documentdatahistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, documentdatahistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, documentdatahistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, documentdatahistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, entitlementplanhistory.UpdatedByIsNil()) + predicates = append(predicates, documentdatahistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, entitlementplanhistory.UpdatedByNotNil()) + predicates = append(predicates, documentdatahistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, documentdatahistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, entitlementplanhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, documentdatahistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, entitlementplanhistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, documentdatahistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, entitlementplanhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, documentdatahistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, entitlementplanhistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, documentdatahistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, documentdatahistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, entitlementplanhistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, documentdatahistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, entitlementplanhistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, documentdatahistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, entitlementplanhistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, documentdatahistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, entitlementplanhistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, documentdatahistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, entitlementplanhistory.DeletedAtIsNil()) + predicates = append(predicates, documentdatahistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, entitlementplanhistory.DeletedAtNotNil()) + predicates = append(predicates, documentdatahistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, entitlementplanhistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, documentdatahistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, entitlementplanhistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, documentdatahistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, entitlementplanhistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, documentdatahistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, documentdatahistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, entitlementplanhistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, documentdatahistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, entitlementplanhistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, documentdatahistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, entitlementplanhistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, documentdatahistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, entitlementplanhistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, documentdatahistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, entitlementplanhistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, documentdatahistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, entitlementplanhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, documentdatahistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, entitlementplanhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, documentdatahistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, entitlementplanhistory.DeletedByIsNil()) + predicates = append(predicates, documentdatahistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, entitlementplanhistory.DeletedByNotNil()) + predicates = append(predicates, documentdatahistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, entitlementplanhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, documentdatahistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, entitlementplanhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, documentdatahistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.OwnerID != nil { - predicates = append(predicates, entitlementplanhistory.OwnerIDEQ(*i.OwnerID)) + predicates = append(predicates, documentdatahistory.OwnerIDEQ(*i.OwnerID)) } if i.OwnerIDNEQ != nil { - predicates = append(predicates, entitlementplanhistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + predicates = append(predicates, documentdatahistory.OwnerIDNEQ(*i.OwnerIDNEQ)) } if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, entitlementplanhistory.OwnerIDIn(i.OwnerIDIn...)) + predicates = append(predicates, documentdatahistory.OwnerIDIn(i.OwnerIDIn...)) } if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + predicates = append(predicates, documentdatahistory.OwnerIDNotIn(i.OwnerIDNotIn...)) } if i.OwnerIDGT != nil { - predicates = append(predicates, entitlementplanhistory.OwnerIDGT(*i.OwnerIDGT)) + predicates = append(predicates, documentdatahistory.OwnerIDGT(*i.OwnerIDGT)) } if i.OwnerIDGTE != nil { - predicates = append(predicates, entitlementplanhistory.OwnerIDGTE(*i.OwnerIDGTE)) + predicates = append(predicates, documentdatahistory.OwnerIDGTE(*i.OwnerIDGTE)) } if i.OwnerIDLT != nil { - predicates = append(predicates, entitlementplanhistory.OwnerIDLT(*i.OwnerIDLT)) + predicates = append(predicates, documentdatahistory.OwnerIDLT(*i.OwnerIDLT)) } if i.OwnerIDLTE != nil { - predicates = append(predicates, entitlementplanhistory.OwnerIDLTE(*i.OwnerIDLTE)) + predicates = append(predicates, documentdatahistory.OwnerIDLTE(*i.OwnerIDLTE)) } if i.OwnerIDContains != nil { - predicates = append(predicates, entitlementplanhistory.OwnerIDContains(*i.OwnerIDContains)) + predicates = append(predicates, documentdatahistory.OwnerIDContains(*i.OwnerIDContains)) } if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, entitlementplanhistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + predicates = append(predicates, documentdatahistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, entitlementplanhistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + predicates = append(predicates, documentdatahistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } if i.OwnerIDIsNil { - predicates = append(predicates, entitlementplanhistory.OwnerIDIsNil()) + predicates = append(predicates, documentdatahistory.OwnerIDIsNil()) } if i.OwnerIDNotNil { - predicates = append(predicates, entitlementplanhistory.OwnerIDNotNil()) + predicates = append(predicates, documentdatahistory.OwnerIDNotNil()) } if i.OwnerIDEqualFold != nil { - predicates = append(predicates, entitlementplanhistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + predicates = append(predicates, documentdatahistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } if i.OwnerIDContainsFold != nil { - predicates = append(predicates, entitlementplanhistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) - } - if i.DisplayName != nil { - predicates = append(predicates, entitlementplanhistory.DisplayNameEQ(*i.DisplayName)) - } - if i.DisplayNameNEQ != nil { - predicates = append(predicates, entitlementplanhistory.DisplayNameNEQ(*i.DisplayNameNEQ)) - } - if len(i.DisplayNameIn) > 0 { - predicates = append(predicates, entitlementplanhistory.DisplayNameIn(i.DisplayNameIn...)) - } - if len(i.DisplayNameNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.DisplayNameNotIn(i.DisplayNameNotIn...)) - } - if i.DisplayNameGT != nil { - predicates = append(predicates, entitlementplanhistory.DisplayNameGT(*i.DisplayNameGT)) - } - if i.DisplayNameGTE != nil { - predicates = append(predicates, entitlementplanhistory.DisplayNameGTE(*i.DisplayNameGTE)) - } - if i.DisplayNameLT != nil { - predicates = append(predicates, entitlementplanhistory.DisplayNameLT(*i.DisplayNameLT)) - } - if i.DisplayNameLTE != nil { - predicates = append(predicates, entitlementplanhistory.DisplayNameLTE(*i.DisplayNameLTE)) - } - if i.DisplayNameContains != nil { - predicates = append(predicates, entitlementplanhistory.DisplayNameContains(*i.DisplayNameContains)) - } - if i.DisplayNameHasPrefix != nil { - predicates = append(predicates, entitlementplanhistory.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) - } - if i.DisplayNameHasSuffix != nil { - predicates = append(predicates, entitlementplanhistory.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) - } - if i.DisplayNameIsNil { - predicates = append(predicates, entitlementplanhistory.DisplayNameIsNil()) - } - if i.DisplayNameNotNil { - predicates = append(predicates, entitlementplanhistory.DisplayNameNotNil()) - } - if i.DisplayNameEqualFold != nil { - predicates = append(predicates, entitlementplanhistory.DisplayNameEqualFold(*i.DisplayNameEqualFold)) - } - if i.DisplayNameContainsFold != nil { - predicates = append(predicates, entitlementplanhistory.DisplayNameContainsFold(*i.DisplayNameContainsFold)) - } - if i.Name != nil { - predicates = append(predicates, entitlementplanhistory.NameEQ(*i.Name)) - } - if i.NameNEQ != nil { - predicates = append(predicates, entitlementplanhistory.NameNEQ(*i.NameNEQ)) - } - if len(i.NameIn) > 0 { - predicates = append(predicates, entitlementplanhistory.NameIn(i.NameIn...)) - } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.NameNotIn(i.NameNotIn...)) - } - if i.NameGT != nil { - predicates = append(predicates, entitlementplanhistory.NameGT(*i.NameGT)) - } - if i.NameGTE != nil { - predicates = append(predicates, entitlementplanhistory.NameGTE(*i.NameGTE)) - } - if i.NameLT != nil { - predicates = append(predicates, entitlementplanhistory.NameLT(*i.NameLT)) - } - if i.NameLTE != nil { - predicates = append(predicates, entitlementplanhistory.NameLTE(*i.NameLTE)) - } - if i.NameContains != nil { - predicates = append(predicates, entitlementplanhistory.NameContains(*i.NameContains)) - } - if i.NameHasPrefix != nil { - predicates = append(predicates, entitlementplanhistory.NameHasPrefix(*i.NameHasPrefix)) - } - if i.NameHasSuffix != nil { - predicates = append(predicates, entitlementplanhistory.NameHasSuffix(*i.NameHasSuffix)) - } - if i.NameEqualFold != nil { - predicates = append(predicates, entitlementplanhistory.NameEqualFold(*i.NameEqualFold)) - } - if i.NameContainsFold != nil { - predicates = append(predicates, entitlementplanhistory.NameContainsFold(*i.NameContainsFold)) - } - if i.Description != nil { - predicates = append(predicates, entitlementplanhistory.DescriptionEQ(*i.Description)) - } - if i.DescriptionNEQ != nil { - predicates = append(predicates, entitlementplanhistory.DescriptionNEQ(*i.DescriptionNEQ)) - } - if len(i.DescriptionIn) > 0 { - predicates = append(predicates, entitlementplanhistory.DescriptionIn(i.DescriptionIn...)) - } - if len(i.DescriptionNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.DescriptionNotIn(i.DescriptionNotIn...)) - } - if i.DescriptionGT != nil { - predicates = append(predicates, entitlementplanhistory.DescriptionGT(*i.DescriptionGT)) - } - if i.DescriptionGTE != nil { - predicates = append(predicates, entitlementplanhistory.DescriptionGTE(*i.DescriptionGTE)) - } - if i.DescriptionLT != nil { - predicates = append(predicates, entitlementplanhistory.DescriptionLT(*i.DescriptionLT)) - } - if i.DescriptionLTE != nil { - predicates = append(predicates, entitlementplanhistory.DescriptionLTE(*i.DescriptionLTE)) - } - if i.DescriptionContains != nil { - predicates = append(predicates, entitlementplanhistory.DescriptionContains(*i.DescriptionContains)) - } - if i.DescriptionHasPrefix != nil { - predicates = append(predicates, entitlementplanhistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) - } - if i.DescriptionHasSuffix != nil { - predicates = append(predicates, entitlementplanhistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) - } - if i.DescriptionIsNil { - predicates = append(predicates, entitlementplanhistory.DescriptionIsNil()) - } - if i.DescriptionNotNil { - predicates = append(predicates, entitlementplanhistory.DescriptionNotNil()) - } - if i.DescriptionEqualFold != nil { - predicates = append(predicates, entitlementplanhistory.DescriptionEqualFold(*i.DescriptionEqualFold)) - } - if i.DescriptionContainsFold != nil { - predicates = append(predicates, entitlementplanhistory.DescriptionContainsFold(*i.DescriptionContainsFold)) + predicates = append(predicates, documentdatahistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if i.Version != nil { - predicates = append(predicates, entitlementplanhistory.VersionEQ(*i.Version)) + if i.TemplateID != nil { + predicates = append(predicates, documentdatahistory.TemplateIDEQ(*i.TemplateID)) } - if i.VersionNEQ != nil { - predicates = append(predicates, entitlementplanhistory.VersionNEQ(*i.VersionNEQ)) + if i.TemplateIDNEQ != nil { + predicates = append(predicates, documentdatahistory.TemplateIDNEQ(*i.TemplateIDNEQ)) } - if len(i.VersionIn) > 0 { - predicates = append(predicates, entitlementplanhistory.VersionIn(i.VersionIn...)) + if len(i.TemplateIDIn) > 0 { + predicates = append(predicates, documentdatahistory.TemplateIDIn(i.TemplateIDIn...)) } - if len(i.VersionNotIn) > 0 { - predicates = append(predicates, entitlementplanhistory.VersionNotIn(i.VersionNotIn...)) + if len(i.TemplateIDNotIn) > 0 { + predicates = append(predicates, documentdatahistory.TemplateIDNotIn(i.TemplateIDNotIn...)) } - if i.VersionGT != nil { - predicates = append(predicates, entitlementplanhistory.VersionGT(*i.VersionGT)) + if i.TemplateIDGT != nil { + predicates = append(predicates, documentdatahistory.TemplateIDGT(*i.TemplateIDGT)) } - if i.VersionGTE != nil { - predicates = append(predicates, entitlementplanhistory.VersionGTE(*i.VersionGTE)) + if i.TemplateIDGTE != nil { + predicates = append(predicates, documentdatahistory.TemplateIDGTE(*i.TemplateIDGTE)) } - if i.VersionLT != nil { - predicates = append(predicates, entitlementplanhistory.VersionLT(*i.VersionLT)) + if i.TemplateIDLT != nil { + predicates = append(predicates, documentdatahistory.TemplateIDLT(*i.TemplateIDLT)) } - if i.VersionLTE != nil { - predicates = append(predicates, entitlementplanhistory.VersionLTE(*i.VersionLTE)) + if i.TemplateIDLTE != nil { + predicates = append(predicates, documentdatahistory.TemplateIDLTE(*i.TemplateIDLTE)) } - if i.VersionContains != nil { - predicates = append(predicates, entitlementplanhistory.VersionContains(*i.VersionContains)) + if i.TemplateIDContains != nil { + predicates = append(predicates, documentdatahistory.TemplateIDContains(*i.TemplateIDContains)) } - if i.VersionHasPrefix != nil { - predicates = append(predicates, entitlementplanhistory.VersionHasPrefix(*i.VersionHasPrefix)) + if i.TemplateIDHasPrefix != nil { + predicates = append(predicates, documentdatahistory.TemplateIDHasPrefix(*i.TemplateIDHasPrefix)) } - if i.VersionHasSuffix != nil { - predicates = append(predicates, entitlementplanhistory.VersionHasSuffix(*i.VersionHasSuffix)) + if i.TemplateIDHasSuffix != nil { + predicates = append(predicates, documentdatahistory.TemplateIDHasSuffix(*i.TemplateIDHasSuffix)) } - if i.VersionEqualFold != nil { - predicates = append(predicates, entitlementplanhistory.VersionEqualFold(*i.VersionEqualFold)) + if i.TemplateIDEqualFold != nil { + predicates = append(predicates, documentdatahistory.TemplateIDEqualFold(*i.TemplateIDEqualFold)) } - if i.VersionContainsFold != nil { - predicates = append(predicates, entitlementplanhistory.VersionContainsFold(*i.VersionContainsFold)) + if i.TemplateIDContainsFold != nil { + predicates = append(predicates, documentdatahistory.TemplateIDContainsFold(*i.TemplateIDContainsFold)) } switch len(predicates) { case 0: - return nil, ErrEmptyEntitlementPlanHistoryWhereInput + return nil, ErrEmptyDocumentDataHistoryWhereInput case 1: return predicates[0], nil default: - return entitlementplanhistory.And(predicates...), nil + return documentdatahistory.And(predicates...), nil } } -// EntityWhereInput represents a where input for filtering Entity queries. -type EntityWhereInput struct { - Predicates []predicate.Entity `json:"-"` - Not *EntityWhereInput `json:"not,omitempty"` - Or []*EntityWhereInput `json:"or,omitempty"` - And []*EntityWhereInput `json:"and,omitempty"` +// EntitlementWhereInput represents a where input for filtering Entitlement queries. +type EntitlementWhereInput struct { + Predicates []predicate.Entitlement `json:"-"` + Not *EntitlementWhereInput `json:"not,omitempty"` + Or []*EntitlementWhereInput `json:"or,omitempty"` + And []*EntitlementWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -9066,112 +10814,120 @@ type EntityWhereInput struct { 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"` - NameGT *string `json:"nameGT,omitempty"` - NameGTE *string `json:"nameGTE,omitempty"` - NameLT *string `json:"nameLT,omitempty"` - NameLTE *string `json:"nameLTE,omitempty"` - NameContains *string `json:"nameContains,omitempty"` - NameHasPrefix *string `json:"nameHasPrefix,omitempty"` - NameHasSuffix *string `json:"nameHasSuffix,omitempty"` - NameIsNil bool `json:"nameIsNil,omitempty"` - NameNotNil bool `json:"nameNotNil,omitempty"` - NameEqualFold *string `json:"nameEqualFold,omitempty"` - NameContainsFold *string `json:"nameContainsFold,omitempty"` + // "plan_id" field predicates. + PlanID *string `json:"planID,omitempty"` + PlanIDNEQ *string `json:"planIDNEQ,omitempty"` + PlanIDIn []string `json:"planIDIn,omitempty"` + PlanIDNotIn []string `json:"planIDNotIn,omitempty"` + PlanIDGT *string `json:"planIDGT,omitempty"` + PlanIDGTE *string `json:"planIDGTE,omitempty"` + PlanIDLT *string `json:"planIDLT,omitempty"` + PlanIDLTE *string `json:"planIDLTE,omitempty"` + PlanIDContains *string `json:"planIDContains,omitempty"` + PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` + PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` + PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` + PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` - // "display_name" field predicates. - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGT *string `json:"displayNameGT,omitempty"` - DisplayNameGTE *string `json:"displayNameGTE,omitempty"` - DisplayNameLT *string `json:"displayNameLT,omitempty"` - DisplayNameLTE *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameIsNil bool `json:"displayNameIsNil,omitempty"` - DisplayNameNotNil bool `json:"displayNameNotNil,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // "organization_id" field predicates. + OrganizationID *string `json:"organizationID,omitempty"` + OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` + OrganizationIDIn []string `json:"organizationIDIn,omitempty"` + OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` + OrganizationIDGT *string `json:"organizationIDGT,omitempty"` + OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` + OrganizationIDLT *string `json:"organizationIDLT,omitempty"` + OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` + OrganizationIDContains *string `json:"organizationIDContains,omitempty"` + OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` + OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` + OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` + OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` - // "entity_type_id" field predicates. - EntityTypeID *string `json:"entityTypeID,omitempty"` - EntityTypeIDNEQ *string `json:"entityTypeIDNEQ,omitempty"` - EntityTypeIDIn []string `json:"entityTypeIDIn,omitempty"` - EntityTypeIDNotIn []string `json:"entityTypeIDNotIn,omitempty"` - EntityTypeIDGT *string `json:"entityTypeIDGT,omitempty"` - EntityTypeIDGTE *string `json:"entityTypeIDGTE,omitempty"` - EntityTypeIDLT *string `json:"entityTypeIDLT,omitempty"` - EntityTypeIDLTE *string `json:"entityTypeIDLTE,omitempty"` - EntityTypeIDContains *string `json:"entityTypeIDContains,omitempty"` - EntityTypeIDHasPrefix *string `json:"entityTypeIDHasPrefix,omitempty"` - EntityTypeIDHasSuffix *string `json:"entityTypeIDHasSuffix,omitempty"` - EntityTypeIDIsNil bool `json:"entityTypeIDIsNil,omitempty"` - EntityTypeIDNotNil bool `json:"entityTypeIDNotNil,omitempty"` - EntityTypeIDEqualFold *string `json:"entityTypeIDEqualFold,omitempty"` - EntityTypeIDContainsFold *string `json:"entityTypeIDContainsFold,omitempty"` + // "external_customer_id" field predicates. + ExternalCustomerID *string `json:"externalCustomerID,omitempty"` + ExternalCustomerIDNEQ *string `json:"externalCustomerIDNEQ,omitempty"` + ExternalCustomerIDIn []string `json:"externalCustomerIDIn,omitempty"` + ExternalCustomerIDNotIn []string `json:"externalCustomerIDNotIn,omitempty"` + ExternalCustomerIDGT *string `json:"externalCustomerIDGT,omitempty"` + ExternalCustomerIDGTE *string `json:"externalCustomerIDGTE,omitempty"` + ExternalCustomerIDLT *string `json:"externalCustomerIDLT,omitempty"` + ExternalCustomerIDLTE *string `json:"externalCustomerIDLTE,omitempty"` + ExternalCustomerIDContains *string `json:"externalCustomerIDContains,omitempty"` + ExternalCustomerIDHasPrefix *string `json:"externalCustomerIDHasPrefix,omitempty"` + ExternalCustomerIDHasSuffix *string `json:"externalCustomerIDHasSuffix,omitempty"` + ExternalCustomerIDIsNil bool `json:"externalCustomerIDIsNil,omitempty"` + ExternalCustomerIDNotNil bool `json:"externalCustomerIDNotNil,omitempty"` + ExternalCustomerIDEqualFold *string `json:"externalCustomerIDEqualFold,omitempty"` + ExternalCustomerIDContainsFold *string `json:"externalCustomerIDContainsFold,omitempty"` - // "status" field predicates. - Status *string `json:"status,omitempty"` - StatusNEQ *string `json:"statusNEQ,omitempty"` - StatusIn []string `json:"statusIn,omitempty"` - StatusNotIn []string `json:"statusNotIn,omitempty"` - StatusGT *string `json:"statusGT,omitempty"` - StatusGTE *string `json:"statusGTE,omitempty"` - StatusLT *string `json:"statusLT,omitempty"` - StatusLTE *string `json:"statusLTE,omitempty"` - StatusContains *string `json:"statusContains,omitempty"` - StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` - StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` - StatusIsNil bool `json:"statusIsNil,omitempty"` - StatusNotNil bool `json:"statusNotNil,omitempty"` - StatusEqualFold *string `json:"statusEqualFold,omitempty"` - StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // "external_subscription_id" field predicates. + ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` + ExternalSubscriptionIDNEQ *string `json:"externalSubscriptionIDNEQ,omitempty"` + ExternalSubscriptionIDIn []string `json:"externalSubscriptionIDIn,omitempty"` + ExternalSubscriptionIDNotIn []string `json:"externalSubscriptionIDNotIn,omitempty"` + ExternalSubscriptionIDGT *string `json:"externalSubscriptionIDGT,omitempty"` + ExternalSubscriptionIDGTE *string `json:"externalSubscriptionIDGTE,omitempty"` + ExternalSubscriptionIDLT *string `json:"externalSubscriptionIDLT,omitempty"` + ExternalSubscriptionIDLTE *string `json:"externalSubscriptionIDLTE,omitempty"` + ExternalSubscriptionIDContains *string `json:"externalSubscriptionIDContains,omitempty"` + ExternalSubscriptionIDHasPrefix *string `json:"externalSubscriptionIDHasPrefix,omitempty"` + ExternalSubscriptionIDHasSuffix *string `json:"externalSubscriptionIDHasSuffix,omitempty"` + ExternalSubscriptionIDIsNil bool `json:"externalSubscriptionIDIsNil,omitempty"` + ExternalSubscriptionIDNotNil bool `json:"externalSubscriptionIDNotNil,omitempty"` + ExternalSubscriptionIDEqualFold *string `json:"externalSubscriptionIDEqualFold,omitempty"` + ExternalSubscriptionIDContainsFold *string `json:"externalSubscriptionIDContainsFold,omitempty"` + + // "expires" field predicates. + Expires *bool `json:"expires,omitempty"` + ExpiresNEQ *bool `json:"expiresNEQ,omitempty"` + + // "expires_at" field predicates. + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + ExpiresAtNEQ *time.Time `json:"expiresAtNEQ,omitempty"` + ExpiresAtIn []time.Time `json:"expiresAtIn,omitempty"` + ExpiresAtNotIn []time.Time `json:"expiresAtNotIn,omitempty"` + ExpiresAtGT *time.Time `json:"expiresAtGT,omitempty"` + ExpiresAtGTE *time.Time `json:"expiresAtGTE,omitempty"` + ExpiresAtLT *time.Time `json:"expiresAtLT,omitempty"` + ExpiresAtLTE *time.Time `json:"expiresAtLTE,omitempty"` + ExpiresAtIsNil bool `json:"expiresAtIsNil,omitempty"` + ExpiresAtNotNil bool `json:"expiresAtNotNil,omitempty"` + + // "cancelled" field predicates. + Cancelled *bool `json:"cancelled,omitempty"` + CancelledNEQ *bool `json:"cancelledNEQ,omitempty"` // "owner" edge predicates. HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // "contacts" edge predicates. - HasContacts *bool `json:"hasContacts,omitempty"` - HasContactsWith []*ContactWhereInput `json:"hasContactsWith,omitempty"` - - // "documents" edge predicates. - HasDocuments *bool `json:"hasDocuments,omitempty"` - HasDocumentsWith []*DocumentDataWhereInput `json:"hasDocumentsWith,omitempty"` - - // "notes" edge predicates. - HasNotes *bool `json:"hasNotes,omitempty"` - HasNotesWith []*NoteWhereInput `json:"hasNotesWith,omitempty"` + // "plan" edge predicates. + HasPlan *bool `json:"hasPlan,omitempty"` + HasPlanWith []*EntitlementPlanWhereInput `json:"hasPlanWith,omitempty"` - // "files" edge predicates. - HasFiles *bool `json:"hasFiles,omitempty"` - HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` + // "organization" edge predicates. + HasOrganization *bool `json:"hasOrganization,omitempty"` + HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` - // "entity_type" edge predicates. - HasEntityType *bool `json:"hasEntityType,omitempty"` - HasEntityTypeWith []*EntityTypeWhereInput `json:"hasEntityTypeWith,omitempty"` + // "events" edge predicates. + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *EntityWhereInput) AddPredicates(predicates ...predicate.Entity) { +func (i *EntitlementWhereInput) AddPredicates(predicates ...predicate.Entitlement) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the EntityWhereInput filter on the EntityQuery builder. -func (i *EntityWhereInput) Filter(q *EntityQuery) (*EntityQuery, error) { +// Filter applies the EntitlementWhereInput filter on the EntitlementQuery builder. +func (i *EntitlementWhereInput) Filter(q *EntitlementQuery) (*EntitlementQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyEntityWhereInput { + if err == ErrEmptyEntitlementWhereInput { return q, nil } return nil, err @@ -9179,19 +10935,19 @@ func (i *EntityWhereInput) Filter(q *EntityQuery) (*EntityQuery, error) { return q.Where(p), nil } -// ErrEmptyEntityWhereInput is returned in case the EntityWhereInput is empty. -var ErrEmptyEntityWhereInput = errors.New("generated: empty predicate EntityWhereInput") +// ErrEmptyEntitlementWhereInput is returned in case the EntitlementWhereInput is empty. +var ErrEmptyEntitlementWhereInput = errors.New("generated: empty predicate EntitlementWhereInput") -// P returns a predicate for filtering entities. +// P returns a predicate for filtering entitlements. // An error is returned if the input is empty or invalid. -func (i *EntityWhereInput) P() (predicate.Entity, error) { - var predicates []predicate.Entity +func (i *EntitlementWhereInput) P() (predicate.Entitlement, error) { + var predicates []predicate.Entitlement if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, entity.Not(p)) + predicates = append(predicates, entitlement.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -9201,7 +10957,7 @@ func (i *EntityWhereInput) P() (predicate.Entity, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.Entity, 0, n) + or := make([]predicate.Entitlement, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -9209,7 +10965,7 @@ func (i *EntityWhereInput) P() (predicate.Entity, error) { } or = append(or, p) } - predicates = append(predicates, entity.Or(or...)) + predicates = append(predicates, entitlement.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -9219,7 +10975,7 @@ func (i *EntityWhereInput) P() (predicate.Entity, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.Entity, 0, n) + and := make([]predicate.Entitlement, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -9227,494 +10983,524 @@ func (i *EntityWhereInput) P() (predicate.Entity, error) { } and = append(and, p) } - predicates = append(predicates, entity.And(and...)) + predicates = append(predicates, entitlement.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, entity.IDEQ(*i.ID)) + predicates = append(predicates, entitlement.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, entity.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, entitlement.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, entity.IDIn(i.IDIn...)) + predicates = append(predicates, entitlement.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, entity.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, entitlement.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, entity.IDGT(*i.IDGT)) + predicates = append(predicates, entitlement.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, entity.IDGTE(*i.IDGTE)) + predicates = append(predicates, entitlement.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, entity.IDLT(*i.IDLT)) + predicates = append(predicates, entitlement.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, entity.IDLTE(*i.IDLTE)) + predicates = append(predicates, entitlement.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, entity.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, entitlement.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, entity.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, entitlement.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, entity.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, entitlement.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, entity.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, entitlement.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, entity.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, entitlement.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, entity.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, entitlement.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, entity.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, entitlement.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, entity.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, entitlement.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, entity.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, entitlement.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, entity.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, entitlement.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, entity.CreatedAtIsNil()) + predicates = append(predicates, entitlement.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, entity.CreatedAtNotNil()) + predicates = append(predicates, entitlement.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, entity.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, entitlement.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, entity.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, entitlement.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, entity.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, entitlement.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, entity.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, entitlement.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, entity.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, entitlement.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, entity.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, entitlement.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, entity.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, entitlement.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, entity.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, entitlement.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, entity.UpdatedAtIsNil()) + predicates = append(predicates, entitlement.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, entity.UpdatedAtNotNil()) + predicates = append(predicates, entitlement.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, entity.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, entitlement.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, entity.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, entitlement.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, entity.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, entitlement.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, entity.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, entitlement.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, entity.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, entitlement.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, entity.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, entitlement.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, entity.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, entitlement.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, entity.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, entitlement.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, entity.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, entitlement.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, entity.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, entitlement.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, entity.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, entitlement.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, entity.CreatedByIsNil()) + predicates = append(predicates, entitlement.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, entity.CreatedByNotNil()) + predicates = append(predicates, entitlement.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, entity.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, entitlement.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, entity.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, entitlement.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, entity.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, entitlement.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, entity.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, entitlement.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, entity.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, entitlement.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, entity.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, entitlement.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, entity.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, entitlement.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, entity.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, entitlement.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, entity.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, entitlement.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, entity.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, entitlement.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, entity.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, entitlement.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, entity.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, entitlement.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, entity.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, entitlement.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, entity.UpdatedByIsNil()) + predicates = append(predicates, entitlement.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, entity.UpdatedByNotNil()) + predicates = append(predicates, entitlement.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, entity.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, entitlement.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, entity.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, entitlement.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, entity.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, entitlement.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, entity.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, entitlement.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, entity.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, entitlement.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, entity.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, entitlement.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, entity.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, entitlement.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, entity.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, entitlement.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, entity.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, entitlement.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, entity.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, entitlement.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, entity.DeletedAtIsNil()) + predicates = append(predicates, entitlement.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, entity.DeletedAtNotNil()) + predicates = append(predicates, entitlement.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, entity.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, entitlement.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, entity.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, entitlement.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, entity.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, entitlement.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, entity.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, entitlement.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, entity.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, entitlement.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, entity.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, entitlement.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, entity.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, entitlement.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, entity.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, entitlement.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, entity.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, entitlement.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, entity.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, entitlement.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, entity.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, entitlement.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, entity.DeletedByIsNil()) + predicates = append(predicates, entitlement.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, entity.DeletedByNotNil()) + predicates = append(predicates, entitlement.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, entity.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, entitlement.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, entity.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, entitlement.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.OwnerID != nil { - predicates = append(predicates, entity.OwnerIDEQ(*i.OwnerID)) + predicates = append(predicates, entitlement.OwnerIDEQ(*i.OwnerID)) } if i.OwnerIDNEQ != nil { - predicates = append(predicates, entity.OwnerIDNEQ(*i.OwnerIDNEQ)) + predicates = append(predicates, entitlement.OwnerIDNEQ(*i.OwnerIDNEQ)) } if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, entity.OwnerIDIn(i.OwnerIDIn...)) + predicates = append(predicates, entitlement.OwnerIDIn(i.OwnerIDIn...)) } if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, entity.OwnerIDNotIn(i.OwnerIDNotIn...)) + predicates = append(predicates, entitlement.OwnerIDNotIn(i.OwnerIDNotIn...)) } if i.OwnerIDGT != nil { - predicates = append(predicates, entity.OwnerIDGT(*i.OwnerIDGT)) + predicates = append(predicates, entitlement.OwnerIDGT(*i.OwnerIDGT)) } if i.OwnerIDGTE != nil { - predicates = append(predicates, entity.OwnerIDGTE(*i.OwnerIDGTE)) + predicates = append(predicates, entitlement.OwnerIDGTE(*i.OwnerIDGTE)) } if i.OwnerIDLT != nil { - predicates = append(predicates, entity.OwnerIDLT(*i.OwnerIDLT)) + predicates = append(predicates, entitlement.OwnerIDLT(*i.OwnerIDLT)) } if i.OwnerIDLTE != nil { - predicates = append(predicates, entity.OwnerIDLTE(*i.OwnerIDLTE)) + predicates = append(predicates, entitlement.OwnerIDLTE(*i.OwnerIDLTE)) } if i.OwnerIDContains != nil { - predicates = append(predicates, entity.OwnerIDContains(*i.OwnerIDContains)) + predicates = append(predicates, entitlement.OwnerIDContains(*i.OwnerIDContains)) } if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, entity.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + predicates = append(predicates, entitlement.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, entity.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + predicates = append(predicates, entitlement.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } if i.OwnerIDIsNil { - predicates = append(predicates, entity.OwnerIDIsNil()) + predicates = append(predicates, entitlement.OwnerIDIsNil()) } if i.OwnerIDNotNil { - predicates = append(predicates, entity.OwnerIDNotNil()) + predicates = append(predicates, entitlement.OwnerIDNotNil()) } if i.OwnerIDEqualFold != nil { - predicates = append(predicates, entity.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + predicates = append(predicates, entitlement.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } if i.OwnerIDContainsFold != nil { - predicates = append(predicates, entity.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + predicates = append(predicates, entitlement.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if i.Name != nil { - predicates = append(predicates, entity.NameEQ(*i.Name)) + if i.PlanID != nil { + predicates = append(predicates, entitlement.PlanIDEQ(*i.PlanID)) } - if i.NameNEQ != nil { - predicates = append(predicates, entity.NameNEQ(*i.NameNEQ)) + if i.PlanIDNEQ != nil { + predicates = append(predicates, entitlement.PlanIDNEQ(*i.PlanIDNEQ)) } - if len(i.NameIn) > 0 { - predicates = append(predicates, entity.NameIn(i.NameIn...)) + if len(i.PlanIDIn) > 0 { + predicates = append(predicates, entitlement.PlanIDIn(i.PlanIDIn...)) } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, entity.NameNotIn(i.NameNotIn...)) + if len(i.PlanIDNotIn) > 0 { + predicates = append(predicates, entitlement.PlanIDNotIn(i.PlanIDNotIn...)) } - if i.NameGT != nil { - predicates = append(predicates, entity.NameGT(*i.NameGT)) + if i.PlanIDGT != nil { + predicates = append(predicates, entitlement.PlanIDGT(*i.PlanIDGT)) } - if i.NameGTE != nil { - predicates = append(predicates, entity.NameGTE(*i.NameGTE)) + if i.PlanIDGTE != nil { + predicates = append(predicates, entitlement.PlanIDGTE(*i.PlanIDGTE)) } - if i.NameLT != nil { - predicates = append(predicates, entity.NameLT(*i.NameLT)) + if i.PlanIDLT != nil { + predicates = append(predicates, entitlement.PlanIDLT(*i.PlanIDLT)) } - if i.NameLTE != nil { - predicates = append(predicates, entity.NameLTE(*i.NameLTE)) + if i.PlanIDLTE != nil { + predicates = append(predicates, entitlement.PlanIDLTE(*i.PlanIDLTE)) } - if i.NameContains != nil { - predicates = append(predicates, entity.NameContains(*i.NameContains)) + if i.PlanIDContains != nil { + predicates = append(predicates, entitlement.PlanIDContains(*i.PlanIDContains)) } - if i.NameHasPrefix != nil { - predicates = append(predicates, entity.NameHasPrefix(*i.NameHasPrefix)) + if i.PlanIDHasPrefix != nil { + predicates = append(predicates, entitlement.PlanIDHasPrefix(*i.PlanIDHasPrefix)) } - if i.NameHasSuffix != nil { - predicates = append(predicates, entity.NameHasSuffix(*i.NameHasSuffix)) + if i.PlanIDHasSuffix != nil { + predicates = append(predicates, entitlement.PlanIDHasSuffix(*i.PlanIDHasSuffix)) } - if i.NameIsNil { - predicates = append(predicates, entity.NameIsNil()) + if i.PlanIDEqualFold != nil { + predicates = append(predicates, entitlement.PlanIDEqualFold(*i.PlanIDEqualFold)) } - if i.NameNotNil { - predicates = append(predicates, entity.NameNotNil()) + if i.PlanIDContainsFold != nil { + predicates = append(predicates, entitlement.PlanIDContainsFold(*i.PlanIDContainsFold)) } - if i.NameEqualFold != nil { - predicates = append(predicates, entity.NameEqualFold(*i.NameEqualFold)) + if i.OrganizationID != nil { + predicates = append(predicates, entitlement.OrganizationIDEQ(*i.OrganizationID)) } - if i.NameContainsFold != nil { - predicates = append(predicates, entity.NameContainsFold(*i.NameContainsFold)) + if i.OrganizationIDNEQ != nil { + predicates = append(predicates, entitlement.OrganizationIDNEQ(*i.OrganizationIDNEQ)) } - if i.DisplayName != nil { - predicates = append(predicates, entity.DisplayNameEQ(*i.DisplayName)) + if len(i.OrganizationIDIn) > 0 { + predicates = append(predicates, entitlement.OrganizationIDIn(i.OrganizationIDIn...)) } - if i.DisplayNameNEQ != nil { - predicates = append(predicates, entity.DisplayNameNEQ(*i.DisplayNameNEQ)) + if len(i.OrganizationIDNotIn) > 0 { + predicates = append(predicates, entitlement.OrganizationIDNotIn(i.OrganizationIDNotIn...)) } - if len(i.DisplayNameIn) > 0 { - predicates = append(predicates, entity.DisplayNameIn(i.DisplayNameIn...)) + if i.OrganizationIDGT != nil { + predicates = append(predicates, entitlement.OrganizationIDGT(*i.OrganizationIDGT)) } - if len(i.DisplayNameNotIn) > 0 { - predicates = append(predicates, entity.DisplayNameNotIn(i.DisplayNameNotIn...)) + if i.OrganizationIDGTE != nil { + predicates = append(predicates, entitlement.OrganizationIDGTE(*i.OrganizationIDGTE)) } - if i.DisplayNameGT != nil { - predicates = append(predicates, entity.DisplayNameGT(*i.DisplayNameGT)) + if i.OrganizationIDLT != nil { + predicates = append(predicates, entitlement.OrganizationIDLT(*i.OrganizationIDLT)) } - if i.DisplayNameGTE != nil { - predicates = append(predicates, entity.DisplayNameGTE(*i.DisplayNameGTE)) + if i.OrganizationIDLTE != nil { + predicates = append(predicates, entitlement.OrganizationIDLTE(*i.OrganizationIDLTE)) } - if i.DisplayNameLT != nil { - predicates = append(predicates, entity.DisplayNameLT(*i.DisplayNameLT)) + if i.OrganizationIDContains != nil { + predicates = append(predicates, entitlement.OrganizationIDContains(*i.OrganizationIDContains)) } - if i.DisplayNameLTE != nil { - predicates = append(predicates, entity.DisplayNameLTE(*i.DisplayNameLTE)) + if i.OrganizationIDHasPrefix != nil { + predicates = append(predicates, entitlement.OrganizationIDHasPrefix(*i.OrganizationIDHasPrefix)) } - if i.DisplayNameContains != nil { - predicates = append(predicates, entity.DisplayNameContains(*i.DisplayNameContains)) + if i.OrganizationIDHasSuffix != nil { + predicates = append(predicates, entitlement.OrganizationIDHasSuffix(*i.OrganizationIDHasSuffix)) } - if i.DisplayNameHasPrefix != nil { - predicates = append(predicates, entity.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + if i.OrganizationIDEqualFold != nil { + predicates = append(predicates, entitlement.OrganizationIDEqualFold(*i.OrganizationIDEqualFold)) } - if i.DisplayNameHasSuffix != nil { - predicates = append(predicates, entity.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + if i.OrganizationIDContainsFold != nil { + predicates = append(predicates, entitlement.OrganizationIDContainsFold(*i.OrganizationIDContainsFold)) } - if i.DisplayNameIsNil { - predicates = append(predicates, entity.DisplayNameIsNil()) + if i.ExternalCustomerID != nil { + predicates = append(predicates, entitlement.ExternalCustomerIDEQ(*i.ExternalCustomerID)) } - if i.DisplayNameNotNil { - predicates = append(predicates, entity.DisplayNameNotNil()) + if i.ExternalCustomerIDNEQ != nil { + predicates = append(predicates, entitlement.ExternalCustomerIDNEQ(*i.ExternalCustomerIDNEQ)) } - if i.DisplayNameEqualFold != nil { - predicates = append(predicates, entity.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + if len(i.ExternalCustomerIDIn) > 0 { + predicates = append(predicates, entitlement.ExternalCustomerIDIn(i.ExternalCustomerIDIn...)) } - if i.DisplayNameContainsFold != nil { - predicates = append(predicates, entity.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + if len(i.ExternalCustomerIDNotIn) > 0 { + predicates = append(predicates, entitlement.ExternalCustomerIDNotIn(i.ExternalCustomerIDNotIn...)) } - if i.EntityTypeID != nil { - predicates = append(predicates, entity.EntityTypeIDEQ(*i.EntityTypeID)) + if i.ExternalCustomerIDGT != nil { + predicates = append(predicates, entitlement.ExternalCustomerIDGT(*i.ExternalCustomerIDGT)) } - if i.EntityTypeIDNEQ != nil { - predicates = append(predicates, entity.EntityTypeIDNEQ(*i.EntityTypeIDNEQ)) + if i.ExternalCustomerIDGTE != nil { + predicates = append(predicates, entitlement.ExternalCustomerIDGTE(*i.ExternalCustomerIDGTE)) } - if len(i.EntityTypeIDIn) > 0 { - predicates = append(predicates, entity.EntityTypeIDIn(i.EntityTypeIDIn...)) + if i.ExternalCustomerIDLT != nil { + predicates = append(predicates, entitlement.ExternalCustomerIDLT(*i.ExternalCustomerIDLT)) } - if len(i.EntityTypeIDNotIn) > 0 { - predicates = append(predicates, entity.EntityTypeIDNotIn(i.EntityTypeIDNotIn...)) + if i.ExternalCustomerIDLTE != nil { + predicates = append(predicates, entitlement.ExternalCustomerIDLTE(*i.ExternalCustomerIDLTE)) } - if i.EntityTypeIDGT != nil { - predicates = append(predicates, entity.EntityTypeIDGT(*i.EntityTypeIDGT)) + if i.ExternalCustomerIDContains != nil { + predicates = append(predicates, entitlement.ExternalCustomerIDContains(*i.ExternalCustomerIDContains)) } - if i.EntityTypeIDGTE != nil { - predicates = append(predicates, entity.EntityTypeIDGTE(*i.EntityTypeIDGTE)) + if i.ExternalCustomerIDHasPrefix != nil { + predicates = append(predicates, entitlement.ExternalCustomerIDHasPrefix(*i.ExternalCustomerIDHasPrefix)) } - if i.EntityTypeIDLT != nil { - predicates = append(predicates, entity.EntityTypeIDLT(*i.EntityTypeIDLT)) + if i.ExternalCustomerIDHasSuffix != nil { + predicates = append(predicates, entitlement.ExternalCustomerIDHasSuffix(*i.ExternalCustomerIDHasSuffix)) } - if i.EntityTypeIDLTE != nil { - predicates = append(predicates, entity.EntityTypeIDLTE(*i.EntityTypeIDLTE)) + if i.ExternalCustomerIDIsNil { + predicates = append(predicates, entitlement.ExternalCustomerIDIsNil()) } - if i.EntityTypeIDContains != nil { - predicates = append(predicates, entity.EntityTypeIDContains(*i.EntityTypeIDContains)) + if i.ExternalCustomerIDNotNil { + predicates = append(predicates, entitlement.ExternalCustomerIDNotNil()) } - if i.EntityTypeIDHasPrefix != nil { - predicates = append(predicates, entity.EntityTypeIDHasPrefix(*i.EntityTypeIDHasPrefix)) + if i.ExternalCustomerIDEqualFold != nil { + predicates = append(predicates, entitlement.ExternalCustomerIDEqualFold(*i.ExternalCustomerIDEqualFold)) } - if i.EntityTypeIDHasSuffix != nil { - predicates = append(predicates, entity.EntityTypeIDHasSuffix(*i.EntityTypeIDHasSuffix)) + if i.ExternalCustomerIDContainsFold != nil { + predicates = append(predicates, entitlement.ExternalCustomerIDContainsFold(*i.ExternalCustomerIDContainsFold)) } - if i.EntityTypeIDIsNil { - predicates = append(predicates, entity.EntityTypeIDIsNil()) + if i.ExternalSubscriptionID != nil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDEQ(*i.ExternalSubscriptionID)) } - if i.EntityTypeIDNotNil { - predicates = append(predicates, entity.EntityTypeIDNotNil()) + if i.ExternalSubscriptionIDNEQ != nil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDNEQ(*i.ExternalSubscriptionIDNEQ)) } - if i.EntityTypeIDEqualFold != nil { - predicates = append(predicates, entity.EntityTypeIDEqualFold(*i.EntityTypeIDEqualFold)) + if len(i.ExternalSubscriptionIDIn) > 0 { + predicates = append(predicates, entitlement.ExternalSubscriptionIDIn(i.ExternalSubscriptionIDIn...)) } - if i.EntityTypeIDContainsFold != nil { - predicates = append(predicates, entity.EntityTypeIDContainsFold(*i.EntityTypeIDContainsFold)) + if len(i.ExternalSubscriptionIDNotIn) > 0 { + predicates = append(predicates, entitlement.ExternalSubscriptionIDNotIn(i.ExternalSubscriptionIDNotIn...)) } - if i.Status != nil { - predicates = append(predicates, entity.StatusEQ(*i.Status)) + if i.ExternalSubscriptionIDGT != nil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDGT(*i.ExternalSubscriptionIDGT)) } - if i.StatusNEQ != nil { - predicates = append(predicates, entity.StatusNEQ(*i.StatusNEQ)) + if i.ExternalSubscriptionIDGTE != nil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDGTE(*i.ExternalSubscriptionIDGTE)) } - if len(i.StatusIn) > 0 { - predicates = append(predicates, entity.StatusIn(i.StatusIn...)) + if i.ExternalSubscriptionIDLT != nil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDLT(*i.ExternalSubscriptionIDLT)) } - if len(i.StatusNotIn) > 0 { - predicates = append(predicates, entity.StatusNotIn(i.StatusNotIn...)) + if i.ExternalSubscriptionIDLTE != nil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDLTE(*i.ExternalSubscriptionIDLTE)) } - if i.StatusGT != nil { - predicates = append(predicates, entity.StatusGT(*i.StatusGT)) + if i.ExternalSubscriptionIDContains != nil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDContains(*i.ExternalSubscriptionIDContains)) } - if i.StatusGTE != nil { - predicates = append(predicates, entity.StatusGTE(*i.StatusGTE)) + if i.ExternalSubscriptionIDHasPrefix != nil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDHasPrefix(*i.ExternalSubscriptionIDHasPrefix)) } - if i.StatusLT != nil { - predicates = append(predicates, entity.StatusLT(*i.StatusLT)) + if i.ExternalSubscriptionIDHasSuffix != nil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDHasSuffix(*i.ExternalSubscriptionIDHasSuffix)) } - if i.StatusLTE != nil { - predicates = append(predicates, entity.StatusLTE(*i.StatusLTE)) + if i.ExternalSubscriptionIDIsNil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDIsNil()) } - if i.StatusContains != nil { - predicates = append(predicates, entity.StatusContains(*i.StatusContains)) + if i.ExternalSubscriptionIDNotNil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDNotNil()) } - if i.StatusHasPrefix != nil { - predicates = append(predicates, entity.StatusHasPrefix(*i.StatusHasPrefix)) + if i.ExternalSubscriptionIDEqualFold != nil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDEqualFold(*i.ExternalSubscriptionIDEqualFold)) } - if i.StatusHasSuffix != nil { - predicates = append(predicates, entity.StatusHasSuffix(*i.StatusHasSuffix)) + if i.ExternalSubscriptionIDContainsFold != nil { + predicates = append(predicates, entitlement.ExternalSubscriptionIDContainsFold(*i.ExternalSubscriptionIDContainsFold)) } - if i.StatusIsNil { - predicates = append(predicates, entity.StatusIsNil()) + if i.Expires != nil { + predicates = append(predicates, entitlement.ExpiresEQ(*i.Expires)) } - if i.StatusNotNil { - predicates = append(predicates, entity.StatusNotNil()) + if i.ExpiresNEQ != nil { + predicates = append(predicates, entitlement.ExpiresNEQ(*i.ExpiresNEQ)) } - if i.StatusEqualFold != nil { - predicates = append(predicates, entity.StatusEqualFold(*i.StatusEqualFold)) + if i.ExpiresAt != nil { + predicates = append(predicates, entitlement.ExpiresAtEQ(*i.ExpiresAt)) } - if i.StatusContainsFold != nil { - predicates = append(predicates, entity.StatusContainsFold(*i.StatusContainsFold)) + if i.ExpiresAtNEQ != nil { + predicates = append(predicates, entitlement.ExpiresAtNEQ(*i.ExpiresAtNEQ)) + } + if len(i.ExpiresAtIn) > 0 { + predicates = append(predicates, entitlement.ExpiresAtIn(i.ExpiresAtIn...)) + } + if len(i.ExpiresAtNotIn) > 0 { + predicates = append(predicates, entitlement.ExpiresAtNotIn(i.ExpiresAtNotIn...)) + } + if i.ExpiresAtGT != nil { + predicates = append(predicates, entitlement.ExpiresAtGT(*i.ExpiresAtGT)) + } + if i.ExpiresAtGTE != nil { + predicates = append(predicates, entitlement.ExpiresAtGTE(*i.ExpiresAtGTE)) + } + if i.ExpiresAtLT != nil { + predicates = append(predicates, entitlement.ExpiresAtLT(*i.ExpiresAtLT)) + } + if i.ExpiresAtLTE != nil { + predicates = append(predicates, entitlement.ExpiresAtLTE(*i.ExpiresAtLTE)) + } + if i.ExpiresAtIsNil { + predicates = append(predicates, entitlement.ExpiresAtIsNil()) + } + if i.ExpiresAtNotNil { + predicates = append(predicates, entitlement.ExpiresAtNotNil()) + } + if i.Cancelled != nil { + predicates = append(predicates, entitlement.CancelledEQ(*i.Cancelled)) + } + if i.CancelledNEQ != nil { + predicates = append(predicates, entitlement.CancelledNEQ(*i.CancelledNEQ)) } if i.HasOwner != nil { - p := entity.HasOwner() + p := entitlement.HasOwner() if !*i.HasOwner { - p = entity.Not(p) + p = entitlement.Not(p) } predicates = append(predicates, p) } @@ -9727,114 +11513,78 @@ func (i *EntityWhereInput) P() (predicate.Entity, error) { } with = append(with, p) } - predicates = append(predicates, entity.HasOwnerWith(with...)) - } - if i.HasContacts != nil { - p := entity.HasContacts() - if !*i.HasContacts { - p = entity.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasContactsWith) > 0 { - with := make([]predicate.Contact, 0, len(i.HasContactsWith)) - for _, w := range i.HasContactsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasContactsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, entity.HasContactsWith(with...)) - } - if i.HasDocuments != nil { - p := entity.HasDocuments() - if !*i.HasDocuments { - p = entity.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasDocumentsWith) > 0 { - with := make([]predicate.DocumentData, 0, len(i.HasDocumentsWith)) - for _, w := range i.HasDocumentsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasDocumentsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, entity.HasDocumentsWith(with...)) + predicates = append(predicates, entitlement.HasOwnerWith(with...)) } - if i.HasNotes != nil { - p := entity.HasNotes() - if !*i.HasNotes { - p = entity.Not(p) + if i.HasPlan != nil { + p := entitlement.HasPlan() + if !*i.HasPlan { + p = entitlement.Not(p) } predicates = append(predicates, p) } - if len(i.HasNotesWith) > 0 { - with := make([]predicate.Note, 0, len(i.HasNotesWith)) - for _, w := range i.HasNotesWith { + if len(i.HasPlanWith) > 0 { + with := make([]predicate.EntitlementPlan, 0, len(i.HasPlanWith)) + for _, w := range i.HasPlanWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasNotesWith'", err) + return nil, fmt.Errorf("%w: field 'HasPlanWith'", err) } with = append(with, p) } - predicates = append(predicates, entity.HasNotesWith(with...)) + predicates = append(predicates, entitlement.HasPlanWith(with...)) } - if i.HasFiles != nil { - p := entity.HasFiles() - if !*i.HasFiles { - p = entity.Not(p) + if i.HasOrganization != nil { + p := entitlement.HasOrganization() + if !*i.HasOrganization { + p = entitlement.Not(p) } predicates = append(predicates, p) } - if len(i.HasFilesWith) > 0 { - with := make([]predicate.File, 0, len(i.HasFilesWith)) - for _, w := range i.HasFilesWith { + if len(i.HasOrganizationWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOrganizationWith)) + for _, w := range i.HasOrganizationWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasFilesWith'", err) + return nil, fmt.Errorf("%w: field 'HasOrganizationWith'", err) } with = append(with, p) } - predicates = append(predicates, entity.HasFilesWith(with...)) + predicates = append(predicates, entitlement.HasOrganizationWith(with...)) } - if i.HasEntityType != nil { - p := entity.HasEntityType() - if !*i.HasEntityType { - p = entity.Not(p) + if i.HasEvents != nil { + p := entitlement.HasEvents() + if !*i.HasEvents { + p = entitlement.Not(p) } predicates = append(predicates, p) } - if len(i.HasEntityTypeWith) > 0 { - with := make([]predicate.EntityType, 0, len(i.HasEntityTypeWith)) - for _, w := range i.HasEntityTypeWith { + if len(i.HasEventsWith) > 0 { + with := make([]predicate.Event, 0, len(i.HasEventsWith)) + for _, w := range i.HasEventsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntityTypeWith'", err) + return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) } with = append(with, p) } - predicates = append(predicates, entity.HasEntityTypeWith(with...)) + predicates = append(predicates, entitlement.HasEventsWith(with...)) } switch len(predicates) { case 0: - return nil, ErrEmptyEntityWhereInput + return nil, ErrEmptyEntitlementWhereInput case 1: return predicates[0], nil default: - return entity.And(predicates...), nil + return entitlement.And(predicates...), nil } } -// EntityHistoryWhereInput represents a where input for filtering EntityHistory queries. -type EntityHistoryWhereInput struct { - Predicates []predicate.EntityHistory `json:"-"` - Not *EntityHistoryWhereInput `json:"not,omitempty"` - Or []*EntityHistoryWhereInput `json:"or,omitempty"` - And []*EntityHistoryWhereInput `json:"and,omitempty"` +// EntitlementHistoryWhereInput represents a where input for filtering EntitlementHistory queries. +type EntitlementHistoryWhereInput struct { + Predicates []predicate.EntitlementHistory `json:"-"` + Not *EntitlementHistoryWhereInput `json:"not,omitempty"` + Or []*EntitlementHistoryWhereInput `json:"or,omitempty"` + And []*EntitlementHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -9985,88 +11735,104 @@ type EntityHistoryWhereInput struct { 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"` - NameGT *string `json:"nameGT,omitempty"` - NameGTE *string `json:"nameGTE,omitempty"` - NameLT *string `json:"nameLT,omitempty"` - NameLTE *string `json:"nameLTE,omitempty"` - NameContains *string `json:"nameContains,omitempty"` - NameHasPrefix *string `json:"nameHasPrefix,omitempty"` - NameHasSuffix *string `json:"nameHasSuffix,omitempty"` - NameIsNil bool `json:"nameIsNil,omitempty"` - NameNotNil bool `json:"nameNotNil,omitempty"` - NameEqualFold *string `json:"nameEqualFold,omitempty"` - NameContainsFold *string `json:"nameContainsFold,omitempty"` - - // "display_name" field predicates. - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGT *string `json:"displayNameGT,omitempty"` - DisplayNameGTE *string `json:"displayNameGTE,omitempty"` - DisplayNameLT *string `json:"displayNameLT,omitempty"` - DisplayNameLTE *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameIsNil bool `json:"displayNameIsNil,omitempty"` - DisplayNameNotNil bool `json:"displayNameNotNil,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // "plan_id" field predicates. + PlanID *string `json:"planID,omitempty"` + PlanIDNEQ *string `json:"planIDNEQ,omitempty"` + PlanIDIn []string `json:"planIDIn,omitempty"` + PlanIDNotIn []string `json:"planIDNotIn,omitempty"` + PlanIDGT *string `json:"planIDGT,omitempty"` + PlanIDGTE *string `json:"planIDGTE,omitempty"` + PlanIDLT *string `json:"planIDLT,omitempty"` + PlanIDLTE *string `json:"planIDLTE,omitempty"` + PlanIDContains *string `json:"planIDContains,omitempty"` + PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` + PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` + PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` + PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` - // "entity_type_id" field predicates. - EntityTypeID *string `json:"entityTypeID,omitempty"` - EntityTypeIDNEQ *string `json:"entityTypeIDNEQ,omitempty"` - EntityTypeIDIn []string `json:"entityTypeIDIn,omitempty"` - EntityTypeIDNotIn []string `json:"entityTypeIDNotIn,omitempty"` - EntityTypeIDGT *string `json:"entityTypeIDGT,omitempty"` - EntityTypeIDGTE *string `json:"entityTypeIDGTE,omitempty"` - EntityTypeIDLT *string `json:"entityTypeIDLT,omitempty"` - EntityTypeIDLTE *string `json:"entityTypeIDLTE,omitempty"` - EntityTypeIDContains *string `json:"entityTypeIDContains,omitempty"` - EntityTypeIDHasPrefix *string `json:"entityTypeIDHasPrefix,omitempty"` - EntityTypeIDHasSuffix *string `json:"entityTypeIDHasSuffix,omitempty"` - EntityTypeIDIsNil bool `json:"entityTypeIDIsNil,omitempty"` - EntityTypeIDNotNil bool `json:"entityTypeIDNotNil,omitempty"` - EntityTypeIDEqualFold *string `json:"entityTypeIDEqualFold,omitempty"` - EntityTypeIDContainsFold *string `json:"entityTypeIDContainsFold,omitempty"` + // "organization_id" field predicates. + OrganizationID *string `json:"organizationID,omitempty"` + OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` + OrganizationIDIn []string `json:"organizationIDIn,omitempty"` + OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` + OrganizationIDGT *string `json:"organizationIDGT,omitempty"` + OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` + OrganizationIDLT *string `json:"organizationIDLT,omitempty"` + OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` + OrganizationIDContains *string `json:"organizationIDContains,omitempty"` + OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` + OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` + OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` + OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` - // "status" field predicates. - Status *string `json:"status,omitempty"` - StatusNEQ *string `json:"statusNEQ,omitempty"` - StatusIn []string `json:"statusIn,omitempty"` - StatusNotIn []string `json:"statusNotIn,omitempty"` - StatusGT *string `json:"statusGT,omitempty"` - StatusGTE *string `json:"statusGTE,omitempty"` - StatusLT *string `json:"statusLT,omitempty"` - StatusLTE *string `json:"statusLTE,omitempty"` - StatusContains *string `json:"statusContains,omitempty"` - StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` - StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` - StatusIsNil bool `json:"statusIsNil,omitempty"` - StatusNotNil bool `json:"statusNotNil,omitempty"` - StatusEqualFold *string `json:"statusEqualFold,omitempty"` - StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // "external_customer_id" field predicates. + ExternalCustomerID *string `json:"externalCustomerID,omitempty"` + ExternalCustomerIDNEQ *string `json:"externalCustomerIDNEQ,omitempty"` + ExternalCustomerIDIn []string `json:"externalCustomerIDIn,omitempty"` + ExternalCustomerIDNotIn []string `json:"externalCustomerIDNotIn,omitempty"` + ExternalCustomerIDGT *string `json:"externalCustomerIDGT,omitempty"` + ExternalCustomerIDGTE *string `json:"externalCustomerIDGTE,omitempty"` + ExternalCustomerIDLT *string `json:"externalCustomerIDLT,omitempty"` + ExternalCustomerIDLTE *string `json:"externalCustomerIDLTE,omitempty"` + ExternalCustomerIDContains *string `json:"externalCustomerIDContains,omitempty"` + ExternalCustomerIDHasPrefix *string `json:"externalCustomerIDHasPrefix,omitempty"` + ExternalCustomerIDHasSuffix *string `json:"externalCustomerIDHasSuffix,omitempty"` + ExternalCustomerIDIsNil bool `json:"externalCustomerIDIsNil,omitempty"` + ExternalCustomerIDNotNil bool `json:"externalCustomerIDNotNil,omitempty"` + ExternalCustomerIDEqualFold *string `json:"externalCustomerIDEqualFold,omitempty"` + ExternalCustomerIDContainsFold *string `json:"externalCustomerIDContainsFold,omitempty"` + + // "external_subscription_id" field predicates. + ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` + ExternalSubscriptionIDNEQ *string `json:"externalSubscriptionIDNEQ,omitempty"` + ExternalSubscriptionIDIn []string `json:"externalSubscriptionIDIn,omitempty"` + ExternalSubscriptionIDNotIn []string `json:"externalSubscriptionIDNotIn,omitempty"` + ExternalSubscriptionIDGT *string `json:"externalSubscriptionIDGT,omitempty"` + ExternalSubscriptionIDGTE *string `json:"externalSubscriptionIDGTE,omitempty"` + ExternalSubscriptionIDLT *string `json:"externalSubscriptionIDLT,omitempty"` + ExternalSubscriptionIDLTE *string `json:"externalSubscriptionIDLTE,omitempty"` + ExternalSubscriptionIDContains *string `json:"externalSubscriptionIDContains,omitempty"` + ExternalSubscriptionIDHasPrefix *string `json:"externalSubscriptionIDHasPrefix,omitempty"` + ExternalSubscriptionIDHasSuffix *string `json:"externalSubscriptionIDHasSuffix,omitempty"` + ExternalSubscriptionIDIsNil bool `json:"externalSubscriptionIDIsNil,omitempty"` + ExternalSubscriptionIDNotNil bool `json:"externalSubscriptionIDNotNil,omitempty"` + ExternalSubscriptionIDEqualFold *string `json:"externalSubscriptionIDEqualFold,omitempty"` + ExternalSubscriptionIDContainsFold *string `json:"externalSubscriptionIDContainsFold,omitempty"` + + // "expires" field predicates. + Expires *bool `json:"expires,omitempty"` + ExpiresNEQ *bool `json:"expiresNEQ,omitempty"` + + // "expires_at" field predicates. + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + ExpiresAtNEQ *time.Time `json:"expiresAtNEQ,omitempty"` + ExpiresAtIn []time.Time `json:"expiresAtIn,omitempty"` + ExpiresAtNotIn []time.Time `json:"expiresAtNotIn,omitempty"` + ExpiresAtGT *time.Time `json:"expiresAtGT,omitempty"` + ExpiresAtGTE *time.Time `json:"expiresAtGTE,omitempty"` + ExpiresAtLT *time.Time `json:"expiresAtLT,omitempty"` + ExpiresAtLTE *time.Time `json:"expiresAtLTE,omitempty"` + ExpiresAtIsNil bool `json:"expiresAtIsNil,omitempty"` + ExpiresAtNotNil bool `json:"expiresAtNotNil,omitempty"` + + // "cancelled" field predicates. + Cancelled *bool `json:"cancelled,omitempty"` + CancelledNEQ *bool `json:"cancelledNEQ,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *EntityHistoryWhereInput) AddPredicates(predicates ...predicate.EntityHistory) { +func (i *EntitlementHistoryWhereInput) AddPredicates(predicates ...predicate.EntitlementHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the EntityHistoryWhereInput filter on the EntityHistoryQuery builder. -func (i *EntityHistoryWhereInput) Filter(q *EntityHistoryQuery) (*EntityHistoryQuery, error) { +// Filter applies the EntitlementHistoryWhereInput filter on the EntitlementHistoryQuery builder. +func (i *EntitlementHistoryWhereInput) Filter(q *EntitlementHistoryQuery) (*EntitlementHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyEntityHistoryWhereInput { + if err == ErrEmptyEntitlementHistoryWhereInput { return q, nil } return nil, err @@ -10074,19 +11840,19 @@ func (i *EntityHistoryWhereInput) Filter(q *EntityHistoryQuery) (*EntityHistoryQ return q.Where(p), nil } -// ErrEmptyEntityHistoryWhereInput is returned in case the EntityHistoryWhereInput is empty. -var ErrEmptyEntityHistoryWhereInput = errors.New("generated: empty predicate EntityHistoryWhereInput") +// ErrEmptyEntitlementHistoryWhereInput is returned in case the EntitlementHistoryWhereInput is empty. +var ErrEmptyEntitlementHistoryWhereInput = errors.New("generated: empty predicate EntitlementHistoryWhereInput") -// P returns a predicate for filtering entityhistories. +// P returns a predicate for filtering entitlementhistories. // An error is returned if the input is empty or invalid. -func (i *EntityHistoryWhereInput) P() (predicate.EntityHistory, error) { - var predicates []predicate.EntityHistory +func (i *EntitlementHistoryWhereInput) P() (predicate.EntitlementHistory, error) { + var predicates []predicate.EntitlementHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, entityhistory.Not(p)) + predicates = append(predicates, entitlementhistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -10096,7 +11862,7 @@ func (i *EntityHistoryWhereInput) P() (predicate.EntityHistory, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.EntityHistory, 0, n) + or := make([]predicate.EntitlementHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -10104,7 +11870,7 @@ func (i *EntityHistoryWhereInput) P() (predicate.EntityHistory, error) { } or = append(or, p) } - predicates = append(predicates, entityhistory.Or(or...)) + predicates = append(predicates, entitlementhistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -10114,7 +11880,7 @@ func (i *EntityHistoryWhereInput) P() (predicate.EntityHistory, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.EntityHistory, 0, n) + and := make([]predicate.EntitlementHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -10122,587 +11888,617 @@ func (i *EntityHistoryWhereInput) P() (predicate.EntityHistory, error) { } and = append(and, p) } - predicates = append(predicates, entityhistory.And(and...)) + predicates = append(predicates, entitlementhistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, entityhistory.IDEQ(*i.ID)) + predicates = append(predicates, entitlementhistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, entityhistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, entitlementhistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, entityhistory.IDIn(i.IDIn...)) + predicates = append(predicates, entitlementhistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, entityhistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, entitlementhistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, entityhistory.IDGT(*i.IDGT)) + predicates = append(predicates, entitlementhistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, entityhistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, entitlementhistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, entityhistory.IDLT(*i.IDLT)) + predicates = append(predicates, entitlementhistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, entityhistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, entitlementhistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, entityhistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, entitlementhistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, entityhistory.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, entitlementhistory.IDContainsFold(*i.IDContainsFold)) } if i.HistoryTime != nil { - predicates = append(predicates, entityhistory.HistoryTimeEQ(*i.HistoryTime)) + predicates = append(predicates, entitlementhistory.HistoryTimeEQ(*i.HistoryTime)) } if i.HistoryTimeNEQ != nil { - predicates = append(predicates, entityhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + predicates = append(predicates, entitlementhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) } if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, entityhistory.HistoryTimeIn(i.HistoryTimeIn...)) + predicates = append(predicates, entitlementhistory.HistoryTimeIn(i.HistoryTimeIn...)) } if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, entityhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + predicates = append(predicates, entitlementhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) } if i.HistoryTimeGT != nil { - predicates = append(predicates, entityhistory.HistoryTimeGT(*i.HistoryTimeGT)) + predicates = append(predicates, entitlementhistory.HistoryTimeGT(*i.HistoryTimeGT)) } if i.HistoryTimeGTE != nil { - predicates = append(predicates, entityhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + predicates = append(predicates, entitlementhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) } if i.HistoryTimeLT != nil { - predicates = append(predicates, entityhistory.HistoryTimeLT(*i.HistoryTimeLT)) + predicates = append(predicates, entitlementhistory.HistoryTimeLT(*i.HistoryTimeLT)) } if i.HistoryTimeLTE != nil { - predicates = append(predicates, entityhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + predicates = append(predicates, entitlementhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) } if i.Ref != nil { - predicates = append(predicates, entityhistory.RefEQ(*i.Ref)) + predicates = append(predicates, entitlementhistory.RefEQ(*i.Ref)) } if i.RefNEQ != nil { - predicates = append(predicates, entityhistory.RefNEQ(*i.RefNEQ)) + predicates = append(predicates, entitlementhistory.RefNEQ(*i.RefNEQ)) } if len(i.RefIn) > 0 { - predicates = append(predicates, entityhistory.RefIn(i.RefIn...)) + predicates = append(predicates, entitlementhistory.RefIn(i.RefIn...)) } if len(i.RefNotIn) > 0 { - predicates = append(predicates, entityhistory.RefNotIn(i.RefNotIn...)) + predicates = append(predicates, entitlementhistory.RefNotIn(i.RefNotIn...)) } if i.RefGT != nil { - predicates = append(predicates, entityhistory.RefGT(*i.RefGT)) + predicates = append(predicates, entitlementhistory.RefGT(*i.RefGT)) } if i.RefGTE != nil { - predicates = append(predicates, entityhistory.RefGTE(*i.RefGTE)) + predicates = append(predicates, entitlementhistory.RefGTE(*i.RefGTE)) } if i.RefLT != nil { - predicates = append(predicates, entityhistory.RefLT(*i.RefLT)) + predicates = append(predicates, entitlementhistory.RefLT(*i.RefLT)) } if i.RefLTE != nil { - predicates = append(predicates, entityhistory.RefLTE(*i.RefLTE)) + predicates = append(predicates, entitlementhistory.RefLTE(*i.RefLTE)) } if i.RefContains != nil { - predicates = append(predicates, entityhistory.RefContains(*i.RefContains)) + predicates = append(predicates, entitlementhistory.RefContains(*i.RefContains)) } if i.RefHasPrefix != nil { - predicates = append(predicates, entityhistory.RefHasPrefix(*i.RefHasPrefix)) + predicates = append(predicates, entitlementhistory.RefHasPrefix(*i.RefHasPrefix)) } if i.RefHasSuffix != nil { - predicates = append(predicates, entityhistory.RefHasSuffix(*i.RefHasSuffix)) + predicates = append(predicates, entitlementhistory.RefHasSuffix(*i.RefHasSuffix)) } if i.RefIsNil { - predicates = append(predicates, entityhistory.RefIsNil()) + predicates = append(predicates, entitlementhistory.RefIsNil()) } if i.RefNotNil { - predicates = append(predicates, entityhistory.RefNotNil()) + predicates = append(predicates, entitlementhistory.RefNotNil()) } if i.RefEqualFold != nil { - predicates = append(predicates, entityhistory.RefEqualFold(*i.RefEqualFold)) + predicates = append(predicates, entitlementhistory.RefEqualFold(*i.RefEqualFold)) } if i.RefContainsFold != nil { - predicates = append(predicates, entityhistory.RefContainsFold(*i.RefContainsFold)) + predicates = append(predicates, entitlementhistory.RefContainsFold(*i.RefContainsFold)) } if i.Operation != nil { - predicates = append(predicates, entityhistory.OperationEQ(*i.Operation)) + predicates = append(predicates, entitlementhistory.OperationEQ(*i.Operation)) } if i.OperationNEQ != nil { - predicates = append(predicates, entityhistory.OperationNEQ(*i.OperationNEQ)) + predicates = append(predicates, entitlementhistory.OperationNEQ(*i.OperationNEQ)) } if len(i.OperationIn) > 0 { - predicates = append(predicates, entityhistory.OperationIn(i.OperationIn...)) + predicates = append(predicates, entitlementhistory.OperationIn(i.OperationIn...)) } if len(i.OperationNotIn) > 0 { - predicates = append(predicates, entityhistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, entitlementhistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, entityhistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, entitlementhistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, entityhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, entitlementhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, entityhistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, entitlementhistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, entityhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, entitlementhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, entityhistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, entitlementhistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, entityhistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, entitlementhistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, entityhistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, entitlementhistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, entityhistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, entitlementhistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, entityhistory.CreatedAtIsNil()) + predicates = append(predicates, entitlementhistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, entityhistory.CreatedAtNotNil()) + predicates = append(predicates, entitlementhistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, entityhistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, entitlementhistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, entityhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, entitlementhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, entityhistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, entitlementhistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, entityhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, entitlementhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, entityhistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, entitlementhistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, entityhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, entitlementhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, entityhistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, entitlementhistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, entityhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, entitlementhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, entityhistory.UpdatedAtIsNil()) + predicates = append(predicates, entitlementhistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, entityhistory.UpdatedAtNotNil()) + predicates = append(predicates, entitlementhistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, entityhistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, entitlementhistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, entityhistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, entitlementhistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, entityhistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, entitlementhistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, entityhistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, entitlementhistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, entityhistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, entitlementhistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, entityhistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, entitlementhistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, entityhistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, entitlementhistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, entityhistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, entitlementhistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, entityhistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, entitlementhistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, entityhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, entitlementhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, entityhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, entitlementhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, entityhistory.CreatedByIsNil()) + predicates = append(predicates, entitlementhistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, entityhistory.CreatedByNotNil()) + predicates = append(predicates, entitlementhistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, entityhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, entitlementhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, entityhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, entitlementhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, entityhistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, entitlementhistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, entityhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, entitlementhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, entityhistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, entitlementhistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, entityhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, entitlementhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, entityhistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, entitlementhistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, entityhistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, entitlementhistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, entityhistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, entitlementhistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, entityhistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, entitlementhistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, entityhistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, entitlementhistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, entityhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, entitlementhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, entityhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, entitlementhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, entityhistory.UpdatedByIsNil()) + predicates = append(predicates, entitlementhistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, entityhistory.UpdatedByNotNil()) + predicates = append(predicates, entitlementhistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, entityhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, entitlementhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, entityhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, entitlementhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, entityhistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, entitlementhistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, entityhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, entitlementhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, entityhistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, entitlementhistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, entityhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, entitlementhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, entityhistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, entitlementhistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, entityhistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, entitlementhistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, entityhistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, entitlementhistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, entityhistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, entitlementhistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, entityhistory.DeletedAtIsNil()) + predicates = append(predicates, entitlementhistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, entityhistory.DeletedAtNotNil()) + predicates = append(predicates, entitlementhistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, entityhistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, entitlementhistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, entityhistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, entitlementhistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, entityhistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, entitlementhistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, entityhistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, entitlementhistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, entityhistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, entitlementhistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, entityhistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, entitlementhistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, entityhistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, entitlementhistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, entityhistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, entitlementhistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, entityhistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, entitlementhistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, entityhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, entitlementhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, entityhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, entitlementhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, entityhistory.DeletedByIsNil()) + predicates = append(predicates, entitlementhistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, entityhistory.DeletedByNotNil()) + predicates = append(predicates, entitlementhistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, entityhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, entitlementhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, entityhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, entitlementhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.OwnerID != nil { - predicates = append(predicates, entityhistory.OwnerIDEQ(*i.OwnerID)) + predicates = append(predicates, entitlementhistory.OwnerIDEQ(*i.OwnerID)) } if i.OwnerIDNEQ != nil { - predicates = append(predicates, entityhistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + predicates = append(predicates, entitlementhistory.OwnerIDNEQ(*i.OwnerIDNEQ)) } if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, entityhistory.OwnerIDIn(i.OwnerIDIn...)) + predicates = append(predicates, entitlementhistory.OwnerIDIn(i.OwnerIDIn...)) } if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, entityhistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + predicates = append(predicates, entitlementhistory.OwnerIDNotIn(i.OwnerIDNotIn...)) } if i.OwnerIDGT != nil { - predicates = append(predicates, entityhistory.OwnerIDGT(*i.OwnerIDGT)) + predicates = append(predicates, entitlementhistory.OwnerIDGT(*i.OwnerIDGT)) } if i.OwnerIDGTE != nil { - predicates = append(predicates, entityhistory.OwnerIDGTE(*i.OwnerIDGTE)) + predicates = append(predicates, entitlementhistory.OwnerIDGTE(*i.OwnerIDGTE)) } if i.OwnerIDLT != nil { - predicates = append(predicates, entityhistory.OwnerIDLT(*i.OwnerIDLT)) + predicates = append(predicates, entitlementhistory.OwnerIDLT(*i.OwnerIDLT)) } if i.OwnerIDLTE != nil { - predicates = append(predicates, entityhistory.OwnerIDLTE(*i.OwnerIDLTE)) + predicates = append(predicates, entitlementhistory.OwnerIDLTE(*i.OwnerIDLTE)) } if i.OwnerIDContains != nil { - predicates = append(predicates, entityhistory.OwnerIDContains(*i.OwnerIDContains)) + predicates = append(predicates, entitlementhistory.OwnerIDContains(*i.OwnerIDContains)) } if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, entityhistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + predicates = append(predicates, entitlementhistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, entityhistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + predicates = append(predicates, entitlementhistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } if i.OwnerIDIsNil { - predicates = append(predicates, entityhistory.OwnerIDIsNil()) + predicates = append(predicates, entitlementhistory.OwnerIDIsNil()) } if i.OwnerIDNotNil { - predicates = append(predicates, entityhistory.OwnerIDNotNil()) + predicates = append(predicates, entitlementhistory.OwnerIDNotNil()) } if i.OwnerIDEqualFold != nil { - predicates = append(predicates, entityhistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + predicates = append(predicates, entitlementhistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } if i.OwnerIDContainsFold != nil { - predicates = append(predicates, entityhistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + predicates = append(predicates, entitlementhistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if i.Name != nil { - predicates = append(predicates, entityhistory.NameEQ(*i.Name)) + if i.PlanID != nil { + predicates = append(predicates, entitlementhistory.PlanIDEQ(*i.PlanID)) } - if i.NameNEQ != nil { - predicates = append(predicates, entityhistory.NameNEQ(*i.NameNEQ)) + if i.PlanIDNEQ != nil { + predicates = append(predicates, entitlementhistory.PlanIDNEQ(*i.PlanIDNEQ)) } - if len(i.NameIn) > 0 { - predicates = append(predicates, entityhistory.NameIn(i.NameIn...)) + if len(i.PlanIDIn) > 0 { + predicates = append(predicates, entitlementhistory.PlanIDIn(i.PlanIDIn...)) } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, entityhistory.NameNotIn(i.NameNotIn...)) + if len(i.PlanIDNotIn) > 0 { + predicates = append(predicates, entitlementhistory.PlanIDNotIn(i.PlanIDNotIn...)) } - if i.NameGT != nil { - predicates = append(predicates, entityhistory.NameGT(*i.NameGT)) + if i.PlanIDGT != nil { + predicates = append(predicates, entitlementhistory.PlanIDGT(*i.PlanIDGT)) } - if i.NameGTE != nil { - predicates = append(predicates, entityhistory.NameGTE(*i.NameGTE)) + if i.PlanIDGTE != nil { + predicates = append(predicates, entitlementhistory.PlanIDGTE(*i.PlanIDGTE)) } - if i.NameLT != nil { - predicates = append(predicates, entityhistory.NameLT(*i.NameLT)) + if i.PlanIDLT != nil { + predicates = append(predicates, entitlementhistory.PlanIDLT(*i.PlanIDLT)) } - if i.NameLTE != nil { - predicates = append(predicates, entityhistory.NameLTE(*i.NameLTE)) + if i.PlanIDLTE != nil { + predicates = append(predicates, entitlementhistory.PlanIDLTE(*i.PlanIDLTE)) } - if i.NameContains != nil { - predicates = append(predicates, entityhistory.NameContains(*i.NameContains)) + if i.PlanIDContains != nil { + predicates = append(predicates, entitlementhistory.PlanIDContains(*i.PlanIDContains)) } - if i.NameHasPrefix != nil { - predicates = append(predicates, entityhistory.NameHasPrefix(*i.NameHasPrefix)) + if i.PlanIDHasPrefix != nil { + predicates = append(predicates, entitlementhistory.PlanIDHasPrefix(*i.PlanIDHasPrefix)) } - if i.NameHasSuffix != nil { - predicates = append(predicates, entityhistory.NameHasSuffix(*i.NameHasSuffix)) + if i.PlanIDHasSuffix != nil { + predicates = append(predicates, entitlementhistory.PlanIDHasSuffix(*i.PlanIDHasSuffix)) } - if i.NameIsNil { - predicates = append(predicates, entityhistory.NameIsNil()) + if i.PlanIDEqualFold != nil { + predicates = append(predicates, entitlementhistory.PlanIDEqualFold(*i.PlanIDEqualFold)) } - if i.NameNotNil { - predicates = append(predicates, entityhistory.NameNotNil()) + if i.PlanIDContainsFold != nil { + predicates = append(predicates, entitlementhistory.PlanIDContainsFold(*i.PlanIDContainsFold)) } - if i.NameEqualFold != nil { - predicates = append(predicates, entityhistory.NameEqualFold(*i.NameEqualFold)) + if i.OrganizationID != nil { + predicates = append(predicates, entitlementhistory.OrganizationIDEQ(*i.OrganizationID)) } - if i.NameContainsFold != nil { - predicates = append(predicates, entityhistory.NameContainsFold(*i.NameContainsFold)) + if i.OrganizationIDNEQ != nil { + predicates = append(predicates, entitlementhistory.OrganizationIDNEQ(*i.OrganizationIDNEQ)) } - if i.DisplayName != nil { - predicates = append(predicates, entityhistory.DisplayNameEQ(*i.DisplayName)) + if len(i.OrganizationIDIn) > 0 { + predicates = append(predicates, entitlementhistory.OrganizationIDIn(i.OrganizationIDIn...)) } - if i.DisplayNameNEQ != nil { - predicates = append(predicates, entityhistory.DisplayNameNEQ(*i.DisplayNameNEQ)) + if len(i.OrganizationIDNotIn) > 0 { + predicates = append(predicates, entitlementhistory.OrganizationIDNotIn(i.OrganizationIDNotIn...)) } - if len(i.DisplayNameIn) > 0 { - predicates = append(predicates, entityhistory.DisplayNameIn(i.DisplayNameIn...)) + if i.OrganizationIDGT != nil { + predicates = append(predicates, entitlementhistory.OrganizationIDGT(*i.OrganizationIDGT)) } - if len(i.DisplayNameNotIn) > 0 { - predicates = append(predicates, entityhistory.DisplayNameNotIn(i.DisplayNameNotIn...)) + if i.OrganizationIDGTE != nil { + predicates = append(predicates, entitlementhistory.OrganizationIDGTE(*i.OrganizationIDGTE)) } - if i.DisplayNameGT != nil { - predicates = append(predicates, entityhistory.DisplayNameGT(*i.DisplayNameGT)) + if i.OrganizationIDLT != nil { + predicates = append(predicates, entitlementhistory.OrganizationIDLT(*i.OrganizationIDLT)) } - if i.DisplayNameGTE != nil { - predicates = append(predicates, entityhistory.DisplayNameGTE(*i.DisplayNameGTE)) + if i.OrganizationIDLTE != nil { + predicates = append(predicates, entitlementhistory.OrganizationIDLTE(*i.OrganizationIDLTE)) } - if i.DisplayNameLT != nil { - predicates = append(predicates, entityhistory.DisplayNameLT(*i.DisplayNameLT)) + if i.OrganizationIDContains != nil { + predicates = append(predicates, entitlementhistory.OrganizationIDContains(*i.OrganizationIDContains)) } - if i.DisplayNameLTE != nil { - predicates = append(predicates, entityhistory.DisplayNameLTE(*i.DisplayNameLTE)) + if i.OrganizationIDHasPrefix != nil { + predicates = append(predicates, entitlementhistory.OrganizationIDHasPrefix(*i.OrganizationIDHasPrefix)) } - if i.DisplayNameContains != nil { - predicates = append(predicates, entityhistory.DisplayNameContains(*i.DisplayNameContains)) + if i.OrganizationIDHasSuffix != nil { + predicates = append(predicates, entitlementhistory.OrganizationIDHasSuffix(*i.OrganizationIDHasSuffix)) } - if i.DisplayNameHasPrefix != nil { - predicates = append(predicates, entityhistory.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + if i.OrganizationIDEqualFold != nil { + predicates = append(predicates, entitlementhistory.OrganizationIDEqualFold(*i.OrganizationIDEqualFold)) } - if i.DisplayNameHasSuffix != nil { - predicates = append(predicates, entityhistory.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + if i.OrganizationIDContainsFold != nil { + predicates = append(predicates, entitlementhistory.OrganizationIDContainsFold(*i.OrganizationIDContainsFold)) } - if i.DisplayNameIsNil { - predicates = append(predicates, entityhistory.DisplayNameIsNil()) + if i.ExternalCustomerID != nil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDEQ(*i.ExternalCustomerID)) } - if i.DisplayNameNotNil { - predicates = append(predicates, entityhistory.DisplayNameNotNil()) + if i.ExternalCustomerIDNEQ != nil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDNEQ(*i.ExternalCustomerIDNEQ)) } - if i.DisplayNameEqualFold != nil { - predicates = append(predicates, entityhistory.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + if len(i.ExternalCustomerIDIn) > 0 { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDIn(i.ExternalCustomerIDIn...)) } - if i.DisplayNameContainsFold != nil { - predicates = append(predicates, entityhistory.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + if len(i.ExternalCustomerIDNotIn) > 0 { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDNotIn(i.ExternalCustomerIDNotIn...)) } - if i.EntityTypeID != nil { - predicates = append(predicates, entityhistory.EntityTypeIDEQ(*i.EntityTypeID)) + if i.ExternalCustomerIDGT != nil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDGT(*i.ExternalCustomerIDGT)) } - if i.EntityTypeIDNEQ != nil { - predicates = append(predicates, entityhistory.EntityTypeIDNEQ(*i.EntityTypeIDNEQ)) + if i.ExternalCustomerIDGTE != nil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDGTE(*i.ExternalCustomerIDGTE)) } - if len(i.EntityTypeIDIn) > 0 { - predicates = append(predicates, entityhistory.EntityTypeIDIn(i.EntityTypeIDIn...)) + if i.ExternalCustomerIDLT != nil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDLT(*i.ExternalCustomerIDLT)) } - if len(i.EntityTypeIDNotIn) > 0 { - predicates = append(predicates, entityhistory.EntityTypeIDNotIn(i.EntityTypeIDNotIn...)) + if i.ExternalCustomerIDLTE != nil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDLTE(*i.ExternalCustomerIDLTE)) } - if i.EntityTypeIDGT != nil { - predicates = append(predicates, entityhistory.EntityTypeIDGT(*i.EntityTypeIDGT)) + if i.ExternalCustomerIDContains != nil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDContains(*i.ExternalCustomerIDContains)) } - if i.EntityTypeIDGTE != nil { - predicates = append(predicates, entityhistory.EntityTypeIDGTE(*i.EntityTypeIDGTE)) + if i.ExternalCustomerIDHasPrefix != nil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDHasPrefix(*i.ExternalCustomerIDHasPrefix)) } - if i.EntityTypeIDLT != nil { - predicates = append(predicates, entityhistory.EntityTypeIDLT(*i.EntityTypeIDLT)) + if i.ExternalCustomerIDHasSuffix != nil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDHasSuffix(*i.ExternalCustomerIDHasSuffix)) } - if i.EntityTypeIDLTE != nil { - predicates = append(predicates, entityhistory.EntityTypeIDLTE(*i.EntityTypeIDLTE)) + if i.ExternalCustomerIDIsNil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDIsNil()) } - if i.EntityTypeIDContains != nil { - predicates = append(predicates, entityhistory.EntityTypeIDContains(*i.EntityTypeIDContains)) + if i.ExternalCustomerIDNotNil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDNotNil()) } - if i.EntityTypeIDHasPrefix != nil { - predicates = append(predicates, entityhistory.EntityTypeIDHasPrefix(*i.EntityTypeIDHasPrefix)) + if i.ExternalCustomerIDEqualFold != nil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDEqualFold(*i.ExternalCustomerIDEqualFold)) } - if i.EntityTypeIDHasSuffix != nil { - predicates = append(predicates, entityhistory.EntityTypeIDHasSuffix(*i.EntityTypeIDHasSuffix)) + if i.ExternalCustomerIDContainsFold != nil { + predicates = append(predicates, entitlementhistory.ExternalCustomerIDContainsFold(*i.ExternalCustomerIDContainsFold)) } - if i.EntityTypeIDIsNil { - predicates = append(predicates, entityhistory.EntityTypeIDIsNil()) + if i.ExternalSubscriptionID != nil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDEQ(*i.ExternalSubscriptionID)) } - if i.EntityTypeIDNotNil { - predicates = append(predicates, entityhistory.EntityTypeIDNotNil()) + if i.ExternalSubscriptionIDNEQ != nil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDNEQ(*i.ExternalSubscriptionIDNEQ)) } - if i.EntityTypeIDEqualFold != nil { - predicates = append(predicates, entityhistory.EntityTypeIDEqualFold(*i.EntityTypeIDEqualFold)) + if len(i.ExternalSubscriptionIDIn) > 0 { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDIn(i.ExternalSubscriptionIDIn...)) } - if i.EntityTypeIDContainsFold != nil { - predicates = append(predicates, entityhistory.EntityTypeIDContainsFold(*i.EntityTypeIDContainsFold)) + if len(i.ExternalSubscriptionIDNotIn) > 0 { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDNotIn(i.ExternalSubscriptionIDNotIn...)) } - if i.Status != nil { - predicates = append(predicates, entityhistory.StatusEQ(*i.Status)) + if i.ExternalSubscriptionIDGT != nil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDGT(*i.ExternalSubscriptionIDGT)) } - if i.StatusNEQ != nil { - predicates = append(predicates, entityhistory.StatusNEQ(*i.StatusNEQ)) + if i.ExternalSubscriptionIDGTE != nil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDGTE(*i.ExternalSubscriptionIDGTE)) } - if len(i.StatusIn) > 0 { - predicates = append(predicates, entityhistory.StatusIn(i.StatusIn...)) + if i.ExternalSubscriptionIDLT != nil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDLT(*i.ExternalSubscriptionIDLT)) } - if len(i.StatusNotIn) > 0 { - predicates = append(predicates, entityhistory.StatusNotIn(i.StatusNotIn...)) + if i.ExternalSubscriptionIDLTE != nil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDLTE(*i.ExternalSubscriptionIDLTE)) } - if i.StatusGT != nil { - predicates = append(predicates, entityhistory.StatusGT(*i.StatusGT)) + if i.ExternalSubscriptionIDContains != nil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDContains(*i.ExternalSubscriptionIDContains)) } - if i.StatusGTE != nil { - predicates = append(predicates, entityhistory.StatusGTE(*i.StatusGTE)) + if i.ExternalSubscriptionIDHasPrefix != nil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDHasPrefix(*i.ExternalSubscriptionIDHasPrefix)) } - if i.StatusLT != nil { - predicates = append(predicates, entityhistory.StatusLT(*i.StatusLT)) + if i.ExternalSubscriptionIDHasSuffix != nil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDHasSuffix(*i.ExternalSubscriptionIDHasSuffix)) } - if i.StatusLTE != nil { - predicates = append(predicates, entityhistory.StatusLTE(*i.StatusLTE)) + if i.ExternalSubscriptionIDIsNil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDIsNil()) } - if i.StatusContains != nil { - predicates = append(predicates, entityhistory.StatusContains(*i.StatusContains)) + if i.ExternalSubscriptionIDNotNil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDNotNil()) } - if i.StatusHasPrefix != nil { - predicates = append(predicates, entityhistory.StatusHasPrefix(*i.StatusHasPrefix)) + if i.ExternalSubscriptionIDEqualFold != nil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDEqualFold(*i.ExternalSubscriptionIDEqualFold)) } - if i.StatusHasSuffix != nil { - predicates = append(predicates, entityhistory.StatusHasSuffix(*i.StatusHasSuffix)) + if i.ExternalSubscriptionIDContainsFold != nil { + predicates = append(predicates, entitlementhistory.ExternalSubscriptionIDContainsFold(*i.ExternalSubscriptionIDContainsFold)) } - if i.StatusIsNil { - predicates = append(predicates, entityhistory.StatusIsNil()) + if i.Expires != nil { + predicates = append(predicates, entitlementhistory.ExpiresEQ(*i.Expires)) } - if i.StatusNotNil { - predicates = append(predicates, entityhistory.StatusNotNil()) + if i.ExpiresNEQ != nil { + predicates = append(predicates, entitlementhistory.ExpiresNEQ(*i.ExpiresNEQ)) } - if i.StatusEqualFold != nil { - predicates = append(predicates, entityhistory.StatusEqualFold(*i.StatusEqualFold)) + if i.ExpiresAt != nil { + predicates = append(predicates, entitlementhistory.ExpiresAtEQ(*i.ExpiresAt)) } - if i.StatusContainsFold != nil { - predicates = append(predicates, entityhistory.StatusContainsFold(*i.StatusContainsFold)) + if i.ExpiresAtNEQ != nil { + predicates = append(predicates, entitlementhistory.ExpiresAtNEQ(*i.ExpiresAtNEQ)) + } + if len(i.ExpiresAtIn) > 0 { + predicates = append(predicates, entitlementhistory.ExpiresAtIn(i.ExpiresAtIn...)) + } + if len(i.ExpiresAtNotIn) > 0 { + predicates = append(predicates, entitlementhistory.ExpiresAtNotIn(i.ExpiresAtNotIn...)) + } + if i.ExpiresAtGT != nil { + predicates = append(predicates, entitlementhistory.ExpiresAtGT(*i.ExpiresAtGT)) + } + if i.ExpiresAtGTE != nil { + predicates = append(predicates, entitlementhistory.ExpiresAtGTE(*i.ExpiresAtGTE)) + } + if i.ExpiresAtLT != nil { + predicates = append(predicates, entitlementhistory.ExpiresAtLT(*i.ExpiresAtLT)) + } + if i.ExpiresAtLTE != nil { + predicates = append(predicates, entitlementhistory.ExpiresAtLTE(*i.ExpiresAtLTE)) + } + if i.ExpiresAtIsNil { + predicates = append(predicates, entitlementhistory.ExpiresAtIsNil()) + } + if i.ExpiresAtNotNil { + predicates = append(predicates, entitlementhistory.ExpiresAtNotNil()) + } + if i.Cancelled != nil { + predicates = append(predicates, entitlementhistory.CancelledEQ(*i.Cancelled)) + } + if i.CancelledNEQ != nil { + predicates = append(predicates, entitlementhistory.CancelledNEQ(*i.CancelledNEQ)) } switch len(predicates) { case 0: - return nil, ErrEmptyEntityHistoryWhereInput + return nil, ErrEmptyEntitlementHistoryWhereInput case 1: return predicates[0], nil default: - return entityhistory.And(predicates...), nil + return entitlementhistory.And(predicates...), nil } } -// EntityTypeWhereInput represents a where input for filtering EntityType queries. -type EntityTypeWhereInput struct { - Predicates []predicate.EntityType `json:"-"` - Not *EntityTypeWhereInput `json:"not,omitempty"` - Or []*EntityTypeWhereInput `json:"or,omitempty"` - And []*EntityTypeWhereInput `json:"and,omitempty"` +// EntitlementPlanWhereInput represents a where input for filtering EntitlementPlan queries. +type EntitlementPlanWhereInput struct { + Predicates []predicate.EntitlementPlan `json:"-"` + Not *EntitlementPlanWhereInput `json:"not,omitempty"` + Or []*EntitlementPlanWhereInput `json:"or,omitempty"` + And []*EntitlementPlanWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -10820,6 +12616,23 @@ type EntityTypeWhereInput struct { OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` + // "display_name" field predicates. + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGT *string `json:"displayNameGT,omitempty"` + DisplayNameGTE *string `json:"displayNameGTE,omitempty"` + DisplayNameLT *string `json:"displayNameLT,omitempty"` + DisplayNameLTE *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameIsNil bool `json:"displayNameIsNil,omitempty"` + DisplayNameNotNil bool `json:"displayNameNotNil,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // "name" field predicates. Name *string `json:"name,omitempty"` NameNEQ *string `json:"nameNEQ,omitempty"` @@ -10835,28 +12648,72 @@ type EntityTypeWhereInput struct { 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"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` + + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // "owner" edge predicates. HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // "entities" edge predicates. - HasEntities *bool `json:"hasEntities,omitempty"` - HasEntitiesWith []*EntityWhereInput `json:"hasEntitiesWith,omitempty"` + // "entitlements" edge predicates. + HasEntitlements *bool `json:"hasEntitlements,omitempty"` + HasEntitlementsWith []*EntitlementWhereInput `json:"hasEntitlementsWith,omitempty"` + + // "base_features" edge predicates. + HasBaseFeatures *bool `json:"hasBaseFeatures,omitempty"` + HasBaseFeaturesWith []*FeatureWhereInput `json:"hasBaseFeaturesWith,omitempty"` + + // "events" edge predicates. + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + + // "features" edge predicates. + HasFeatures *bool `json:"hasFeatures,omitempty"` + HasFeaturesWith []*EntitlementPlanFeatureWhereInput `json:"hasFeaturesWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *EntityTypeWhereInput) AddPredicates(predicates ...predicate.EntityType) { +func (i *EntitlementPlanWhereInput) AddPredicates(predicates ...predicate.EntitlementPlan) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the EntityTypeWhereInput filter on the EntityTypeQuery builder. -func (i *EntityTypeWhereInput) Filter(q *EntityTypeQuery) (*EntityTypeQuery, error) { +// Filter applies the EntitlementPlanWhereInput filter on the EntitlementPlanQuery builder. +func (i *EntitlementPlanWhereInput) Filter(q *EntitlementPlanQuery) (*EntitlementPlanQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyEntityTypeWhereInput { + if err == ErrEmptyEntitlementPlanWhereInput { return q, nil } return nil, err @@ -10864,19 +12721,19 @@ func (i *EntityTypeWhereInput) Filter(q *EntityTypeQuery) (*EntityTypeQuery, err return q.Where(p), nil } -// ErrEmptyEntityTypeWhereInput is returned in case the EntityTypeWhereInput is empty. -var ErrEmptyEntityTypeWhereInput = errors.New("generated: empty predicate EntityTypeWhereInput") +// ErrEmptyEntitlementPlanWhereInput is returned in case the EntitlementPlanWhereInput is empty. +var ErrEmptyEntitlementPlanWhereInput = errors.New("generated: empty predicate EntitlementPlanWhereInput") -// P returns a predicate for filtering entitytypes. +// P returns a predicate for filtering entitlementplans. // An error is returned if the input is empty or invalid. -func (i *EntityTypeWhereInput) P() (predicate.EntityType, error) { - var predicates []predicate.EntityType +func (i *EntitlementPlanWhereInput) P() (predicate.EntitlementPlan, error) { + var predicates []predicate.EntitlementPlan if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, entitytype.Not(p)) + predicates = append(predicates, entitlementplan.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -10886,7 +12743,7 @@ func (i *EntityTypeWhereInput) P() (predicate.EntityType, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.EntityType, 0, n) + or := make([]predicate.EntitlementPlan, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -10894,7 +12751,7 @@ func (i *EntityTypeWhereInput) P() (predicate.EntityType, error) { } or = append(or, p) } - predicates = append(predicates, entitytype.Or(or...)) + predicates = append(predicates, entitlementplan.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -10904,7 +12761,7 @@ func (i *EntityTypeWhereInput) P() (predicate.EntityType, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.EntityType, 0, n) + and := make([]predicate.EntitlementPlan, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -10912,353 +12769,482 @@ func (i *EntityTypeWhereInput) P() (predicate.EntityType, error) { } and = append(and, p) } - predicates = append(predicates, entitytype.And(and...)) + predicates = append(predicates, entitlementplan.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, entitytype.IDEQ(*i.ID)) + predicates = append(predicates, entitlementplan.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, entitytype.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, entitlementplan.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, entitytype.IDIn(i.IDIn...)) + predicates = append(predicates, entitlementplan.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, entitytype.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, entitlementplan.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, entitytype.IDGT(*i.IDGT)) + predicates = append(predicates, entitlementplan.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, entitytype.IDGTE(*i.IDGTE)) + predicates = append(predicates, entitlementplan.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, entitytype.IDLT(*i.IDLT)) + predicates = append(predicates, entitlementplan.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, entitytype.IDLTE(*i.IDLTE)) + predicates = append(predicates, entitlementplan.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, entitytype.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, entitlementplan.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, entitytype.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, entitlementplan.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, entitytype.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, entitlementplan.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, entitytype.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, entitlementplan.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, entitytype.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, entitlementplan.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, entitytype.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, entitlementplan.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, entitytype.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, entitlementplan.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, entitytype.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, entitlementplan.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, entitytype.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, entitlementplan.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, entitytype.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, entitlementplan.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, entitytype.CreatedAtIsNil()) + predicates = append(predicates, entitlementplan.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, entitytype.CreatedAtNotNil()) + predicates = append(predicates, entitlementplan.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, entitytype.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, entitlementplan.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, entitytype.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, entitlementplan.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, entitytype.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, entitlementplan.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, entitytype.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, entitlementplan.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, entitytype.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, entitlementplan.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, entitytype.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, entitlementplan.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, entitytype.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, entitlementplan.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, entitytype.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, entitlementplan.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, entitytype.UpdatedAtIsNil()) + predicates = append(predicates, entitlementplan.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, entitytype.UpdatedAtNotNil()) + predicates = append(predicates, entitlementplan.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, entitytype.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, entitlementplan.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, entitytype.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, entitlementplan.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, entitytype.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, entitlementplan.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, entitytype.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, entitlementplan.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, entitytype.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, entitlementplan.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, entitytype.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, entitlementplan.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, entitytype.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, entitlementplan.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, entitytype.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, entitlementplan.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, entitytype.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, entitlementplan.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, entitytype.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, entitlementplan.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, entitytype.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, entitlementplan.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, entitytype.CreatedByIsNil()) + predicates = append(predicates, entitlementplan.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, entitytype.CreatedByNotNil()) + predicates = append(predicates, entitlementplan.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, entitytype.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, entitlementplan.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, entitytype.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, entitlementplan.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, entitytype.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, entitlementplan.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, entitytype.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, entitlementplan.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, entitytype.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, entitlementplan.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, entitytype.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, entitlementplan.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, entitytype.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, entitlementplan.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, entitytype.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, entitlementplan.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, entitytype.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, entitlementplan.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, entitytype.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, entitlementplan.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, entitytype.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, entitlementplan.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, entitytype.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, entitlementplan.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, entitytype.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, entitlementplan.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, entitytype.UpdatedByIsNil()) + predicates = append(predicates, entitlementplan.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, entitytype.UpdatedByNotNil()) + predicates = append(predicates, entitlementplan.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, entitytype.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, entitlementplan.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, entitytype.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, entitlementplan.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, entitytype.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, entitlementplan.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, entitytype.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, entitlementplan.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, entitytype.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, entitlementplan.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, entitytype.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, entitlementplan.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, entitytype.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, entitlementplan.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, entitytype.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, entitlementplan.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, entitytype.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, entitlementplan.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, entitytype.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, entitlementplan.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, entitytype.DeletedAtIsNil()) + predicates = append(predicates, entitlementplan.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, entitytype.DeletedAtNotNil()) + predicates = append(predicates, entitlementplan.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, entitytype.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, entitlementplan.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, entitytype.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, entitlementplan.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, entitytype.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, entitlementplan.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, entitytype.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, entitlementplan.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, entitytype.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, entitlementplan.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, entitytype.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, entitlementplan.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, entitytype.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, entitlementplan.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, entitytype.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, entitlementplan.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, entitytype.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, entitlementplan.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, entitytype.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, entitlementplan.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, entitytype.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, entitlementplan.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, entitytype.DeletedByIsNil()) + predicates = append(predicates, entitlementplan.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, entitytype.DeletedByNotNil()) + predicates = append(predicates, entitlementplan.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, entitytype.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, entitlementplan.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, entitytype.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, entitlementplan.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.OwnerID != nil { - predicates = append(predicates, entitytype.OwnerIDEQ(*i.OwnerID)) + predicates = append(predicates, entitlementplan.OwnerIDEQ(*i.OwnerID)) } if i.OwnerIDNEQ != nil { - predicates = append(predicates, entitytype.OwnerIDNEQ(*i.OwnerIDNEQ)) + predicates = append(predicates, entitlementplan.OwnerIDNEQ(*i.OwnerIDNEQ)) } if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, entitytype.OwnerIDIn(i.OwnerIDIn...)) + predicates = append(predicates, entitlementplan.OwnerIDIn(i.OwnerIDIn...)) } if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, entitytype.OwnerIDNotIn(i.OwnerIDNotIn...)) + predicates = append(predicates, entitlementplan.OwnerIDNotIn(i.OwnerIDNotIn...)) } if i.OwnerIDGT != nil { - predicates = append(predicates, entitytype.OwnerIDGT(*i.OwnerIDGT)) + predicates = append(predicates, entitlementplan.OwnerIDGT(*i.OwnerIDGT)) } if i.OwnerIDGTE != nil { - predicates = append(predicates, entitytype.OwnerIDGTE(*i.OwnerIDGTE)) + predicates = append(predicates, entitlementplan.OwnerIDGTE(*i.OwnerIDGTE)) } if i.OwnerIDLT != nil { - predicates = append(predicates, entitytype.OwnerIDLT(*i.OwnerIDLT)) + predicates = append(predicates, entitlementplan.OwnerIDLT(*i.OwnerIDLT)) } if i.OwnerIDLTE != nil { - predicates = append(predicates, entitytype.OwnerIDLTE(*i.OwnerIDLTE)) + predicates = append(predicates, entitlementplan.OwnerIDLTE(*i.OwnerIDLTE)) } if i.OwnerIDContains != nil { - predicates = append(predicates, entitytype.OwnerIDContains(*i.OwnerIDContains)) + predicates = append(predicates, entitlementplan.OwnerIDContains(*i.OwnerIDContains)) } if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, entitytype.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + predicates = append(predicates, entitlementplan.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, entitytype.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + predicates = append(predicates, entitlementplan.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } if i.OwnerIDIsNil { - predicates = append(predicates, entitytype.OwnerIDIsNil()) + predicates = append(predicates, entitlementplan.OwnerIDIsNil()) } if i.OwnerIDNotNil { - predicates = append(predicates, entitytype.OwnerIDNotNil()) + predicates = append(predicates, entitlementplan.OwnerIDNotNil()) } if i.OwnerIDEqualFold != nil { - predicates = append(predicates, entitytype.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + predicates = append(predicates, entitlementplan.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } if i.OwnerIDContainsFold != nil { - predicates = append(predicates, entitytype.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + predicates = append(predicates, entitlementplan.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if i.Name != nil { - predicates = append(predicates, entitytype.NameEQ(*i.Name)) + if i.DisplayName != nil { + predicates = append(predicates, entitlementplan.DisplayNameEQ(*i.DisplayName)) } - if i.NameNEQ != nil { - predicates = append(predicates, entitytype.NameNEQ(*i.NameNEQ)) + if i.DisplayNameNEQ != nil { + predicates = append(predicates, entitlementplan.DisplayNameNEQ(*i.DisplayNameNEQ)) } - if len(i.NameIn) > 0 { - predicates = append(predicates, entitytype.NameIn(i.NameIn...)) + if len(i.DisplayNameIn) > 0 { + predicates = append(predicates, entitlementplan.DisplayNameIn(i.DisplayNameIn...)) } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, entitytype.NameNotIn(i.NameNotIn...)) + if len(i.DisplayNameNotIn) > 0 { + predicates = append(predicates, entitlementplan.DisplayNameNotIn(i.DisplayNameNotIn...)) } - if i.NameGT != nil { - predicates = append(predicates, entitytype.NameGT(*i.NameGT)) + if i.DisplayNameGT != nil { + predicates = append(predicates, entitlementplan.DisplayNameGT(*i.DisplayNameGT)) } - if i.NameGTE != nil { - predicates = append(predicates, entitytype.NameGTE(*i.NameGTE)) + if i.DisplayNameGTE != nil { + predicates = append(predicates, entitlementplan.DisplayNameGTE(*i.DisplayNameGTE)) } - if i.NameLT != nil { - predicates = append(predicates, entitytype.NameLT(*i.NameLT)) + if i.DisplayNameLT != nil { + predicates = append(predicates, entitlementplan.DisplayNameLT(*i.DisplayNameLT)) } - if i.NameLTE != nil { - predicates = append(predicates, entitytype.NameLTE(*i.NameLTE)) + if i.DisplayNameLTE != nil { + predicates = append(predicates, entitlementplan.DisplayNameLTE(*i.DisplayNameLTE)) } - if i.NameContains != nil { - predicates = append(predicates, entitytype.NameContains(*i.NameContains)) + if i.DisplayNameContains != nil { + predicates = append(predicates, entitlementplan.DisplayNameContains(*i.DisplayNameContains)) } - if i.NameHasPrefix != nil { - predicates = append(predicates, entitytype.NameHasPrefix(*i.NameHasPrefix)) + if i.DisplayNameHasPrefix != nil { + predicates = append(predicates, entitlementplan.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) } - if i.NameHasSuffix != nil { - predicates = append(predicates, entitytype.NameHasSuffix(*i.NameHasSuffix)) + if i.DisplayNameHasSuffix != nil { + predicates = append(predicates, entitlementplan.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + } + if i.DisplayNameIsNil { + predicates = append(predicates, entitlementplan.DisplayNameIsNil()) + } + if i.DisplayNameNotNil { + predicates = append(predicates, entitlementplan.DisplayNameNotNil()) + } + if i.DisplayNameEqualFold != nil { + predicates = append(predicates, entitlementplan.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + } + if i.DisplayNameContainsFold != nil { + predicates = append(predicates, entitlementplan.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, entitlementplan.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, entitlementplan.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, entitlementplan.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, entitlementplan.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, entitlementplan.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, entitlementplan.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, entitlementplan.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, entitlementplan.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, entitlementplan.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, entitlementplan.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, entitlementplan.NameHasSuffix(*i.NameHasSuffix)) } if i.NameEqualFold != nil { - predicates = append(predicates, entitytype.NameEqualFold(*i.NameEqualFold)) + predicates = append(predicates, entitlementplan.NameEqualFold(*i.NameEqualFold)) } if i.NameContainsFold != nil { - predicates = append(predicates, entitytype.NameContainsFold(*i.NameContainsFold)) + predicates = append(predicates, entitlementplan.NameContainsFold(*i.NameContainsFold)) + } + if i.Description != nil { + predicates = append(predicates, entitlementplan.DescriptionEQ(*i.Description)) + } + if i.DescriptionNEQ != nil { + predicates = append(predicates, entitlementplan.DescriptionNEQ(*i.DescriptionNEQ)) + } + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, entitlementplan.DescriptionIn(i.DescriptionIn...)) + } + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, entitlementplan.DescriptionNotIn(i.DescriptionNotIn...)) + } + if i.DescriptionGT != nil { + predicates = append(predicates, entitlementplan.DescriptionGT(*i.DescriptionGT)) + } + if i.DescriptionGTE != nil { + predicates = append(predicates, entitlementplan.DescriptionGTE(*i.DescriptionGTE)) + } + if i.DescriptionLT != nil { + predicates = append(predicates, entitlementplan.DescriptionLT(*i.DescriptionLT)) + } + if i.DescriptionLTE != nil { + predicates = append(predicates, entitlementplan.DescriptionLTE(*i.DescriptionLTE)) + } + if i.DescriptionContains != nil { + predicates = append(predicates, entitlementplan.DescriptionContains(*i.DescriptionContains)) + } + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, entitlementplan.DescriptionHasPrefix(*i.DescriptionHasPrefix)) + } + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, entitlementplan.DescriptionHasSuffix(*i.DescriptionHasSuffix)) + } + if i.DescriptionIsNil { + predicates = append(predicates, entitlementplan.DescriptionIsNil()) + } + if i.DescriptionNotNil { + predicates = append(predicates, entitlementplan.DescriptionNotNil()) + } + if i.DescriptionEqualFold != nil { + predicates = append(predicates, entitlementplan.DescriptionEqualFold(*i.DescriptionEqualFold)) + } + if i.DescriptionContainsFold != nil { + predicates = append(predicates, entitlementplan.DescriptionContainsFold(*i.DescriptionContainsFold)) + } + if i.Version != nil { + predicates = append(predicates, entitlementplan.VersionEQ(*i.Version)) + } + if i.VersionNEQ != nil { + predicates = append(predicates, entitlementplan.VersionNEQ(*i.VersionNEQ)) + } + if len(i.VersionIn) > 0 { + predicates = append(predicates, entitlementplan.VersionIn(i.VersionIn...)) + } + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, entitlementplan.VersionNotIn(i.VersionNotIn...)) + } + if i.VersionGT != nil { + predicates = append(predicates, entitlementplan.VersionGT(*i.VersionGT)) + } + if i.VersionGTE != nil { + predicates = append(predicates, entitlementplan.VersionGTE(*i.VersionGTE)) + } + if i.VersionLT != nil { + predicates = append(predicates, entitlementplan.VersionLT(*i.VersionLT)) + } + if i.VersionLTE != nil { + predicates = append(predicates, entitlementplan.VersionLTE(*i.VersionLTE)) + } + if i.VersionContains != nil { + predicates = append(predicates, entitlementplan.VersionContains(*i.VersionContains)) + } + if i.VersionHasPrefix != nil { + predicates = append(predicates, entitlementplan.VersionHasPrefix(*i.VersionHasPrefix)) + } + if i.VersionHasSuffix != nil { + predicates = append(predicates, entitlementplan.VersionHasSuffix(*i.VersionHasSuffix)) + } + if i.VersionEqualFold != nil { + predicates = append(predicates, entitlementplan.VersionEqualFold(*i.VersionEqualFold)) + } + if i.VersionContainsFold != nil { + predicates = append(predicates, entitlementplan.VersionContainsFold(*i.VersionContainsFold)) } if i.HasOwner != nil { - p := entitytype.HasOwner() + p := entitlementplan.HasOwner() if !*i.HasOwner { - p = entitytype.Not(p) + p = entitlementplan.Not(p) } predicates = append(predicates, p) } @@ -11271,42 +13257,96 @@ func (i *EntityTypeWhereInput) P() (predicate.EntityType, error) { } with = append(with, p) } - predicates = append(predicates, entitytype.HasOwnerWith(with...)) + predicates = append(predicates, entitlementplan.HasOwnerWith(with...)) } - if i.HasEntities != nil { - p := entitytype.HasEntities() - if !*i.HasEntities { - p = entitytype.Not(p) + if i.HasEntitlements != nil { + p := entitlementplan.HasEntitlements() + if !*i.HasEntitlements { + p = entitlementplan.Not(p) } predicates = append(predicates, p) } - if len(i.HasEntitiesWith) > 0 { - with := make([]predicate.Entity, 0, len(i.HasEntitiesWith)) - for _, w := range i.HasEntitiesWith { + if len(i.HasEntitlementsWith) > 0 { + with := make([]predicate.Entitlement, 0, len(i.HasEntitlementsWith)) + for _, w := range i.HasEntitlementsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntitiesWith'", err) + return nil, fmt.Errorf("%w: field 'HasEntitlementsWith'", err) } with = append(with, p) } - predicates = append(predicates, entitytype.HasEntitiesWith(with...)) + predicates = append(predicates, entitlementplan.HasEntitlementsWith(with...)) + } + if i.HasBaseFeatures != nil { + p := entitlementplan.HasBaseFeatures() + if !*i.HasBaseFeatures { + p = entitlementplan.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasBaseFeaturesWith) > 0 { + with := make([]predicate.Feature, 0, len(i.HasBaseFeaturesWith)) + for _, w := range i.HasBaseFeaturesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasBaseFeaturesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, entitlementplan.HasBaseFeaturesWith(with...)) + } + if i.HasEvents != nil { + p := entitlementplan.HasEvents() + if !*i.HasEvents { + p = entitlementplan.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEventsWith) > 0 { + with := make([]predicate.Event, 0, len(i.HasEventsWith)) + for _, w := range i.HasEventsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, entitlementplan.HasEventsWith(with...)) + } + if i.HasFeatures != nil { + p := entitlementplan.HasFeatures() + if !*i.HasFeatures { + p = entitlementplan.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasFeaturesWith) > 0 { + with := make([]predicate.EntitlementPlanFeature, 0, len(i.HasFeaturesWith)) + for _, w := range i.HasFeaturesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFeaturesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, entitlementplan.HasFeaturesWith(with...)) } switch len(predicates) { case 0: - return nil, ErrEmptyEntityTypeWhereInput + return nil, ErrEmptyEntitlementPlanWhereInput case 1: return predicates[0], nil default: - return entitytype.And(predicates...), nil + return entitlementplan.And(predicates...), nil } } -// EntityTypeHistoryWhereInput represents a where input for filtering EntityTypeHistory queries. -type EntityTypeHistoryWhereInput struct { - Predicates []predicate.EntityTypeHistory `json:"-"` - Not *EntityTypeHistoryWhereInput `json:"not,omitempty"` - Or []*EntityTypeHistoryWhereInput `json:"or,omitempty"` - And []*EntityTypeHistoryWhereInput `json:"and,omitempty"` +// EntitlementPlanFeatureWhereInput represents a where input for filtering EntitlementPlanFeature queries. +type EntitlementPlanFeatureWhereInput struct { + Predicates []predicate.EntitlementPlanFeature `json:"-"` + Not *EntitlementPlanFeatureWhereInput `json:"not,omitempty"` + Or []*EntitlementPlanFeatureWhereInput `json:"or,omitempty"` + And []*EntitlementPlanFeatureWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -11320,39 +13360,6 @@ type EntityTypeHistoryWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // "history_time" field predicates. - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` - RefGT *string `json:"refGT,omitempty"` - RefGTE *string `json:"refGTE,omitempty"` - RefLT *string `json:"refLT,omitempty"` - RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -11457,35 +13464,66 @@ type EntityTypeHistoryWhereInput struct { 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"` - NameGT *string `json:"nameGT,omitempty"` - NameGTE *string `json:"nameGTE,omitempty"` - NameLT *string `json:"nameLT,omitempty"` - NameLTE *string `json:"nameLTE,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"` + // "plan_id" field predicates. + PlanID *string `json:"planID,omitempty"` + PlanIDNEQ *string `json:"planIDNEQ,omitempty"` + PlanIDIn []string `json:"planIDIn,omitempty"` + PlanIDNotIn []string `json:"planIDNotIn,omitempty"` + PlanIDGT *string `json:"planIDGT,omitempty"` + PlanIDGTE *string `json:"planIDGTE,omitempty"` + PlanIDLT *string `json:"planIDLT,omitempty"` + PlanIDLTE *string `json:"planIDLTE,omitempty"` + PlanIDContains *string `json:"planIDContains,omitempty"` + PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` + PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` + PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` + PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` + + // "feature_id" field predicates. + FeatureID *string `json:"featureID,omitempty"` + FeatureIDNEQ *string `json:"featureIDNEQ,omitempty"` + FeatureIDIn []string `json:"featureIDIn,omitempty"` + FeatureIDNotIn []string `json:"featureIDNotIn,omitempty"` + FeatureIDGT *string `json:"featureIDGT,omitempty"` + FeatureIDGTE *string `json:"featureIDGTE,omitempty"` + FeatureIDLT *string `json:"featureIDLT,omitempty"` + FeatureIDLTE *string `json:"featureIDLTE,omitempty"` + FeatureIDContains *string `json:"featureIDContains,omitempty"` + FeatureIDHasPrefix *string `json:"featureIDHasPrefix,omitempty"` + FeatureIDHasSuffix *string `json:"featureIDHasSuffix,omitempty"` + FeatureIDEqualFold *string `json:"featureIDEqualFold,omitempty"` + FeatureIDContainsFold *string `json:"featureIDContainsFold,omitempty"` + + // "owner" edge predicates. + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + + // "plan" edge predicates. + HasPlan *bool `json:"hasPlan,omitempty"` + HasPlanWith []*EntitlementPlanWhereInput `json:"hasPlanWith,omitempty"` + + // "feature" edge predicates. + HasFeature *bool `json:"hasFeature,omitempty"` + HasFeatureWith []*FeatureWhereInput `json:"hasFeatureWith,omitempty"` + + // "events" edge predicates. + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *EntityTypeHistoryWhereInput) AddPredicates(predicates ...predicate.EntityTypeHistory) { +func (i *EntitlementPlanFeatureWhereInput) AddPredicates(predicates ...predicate.EntitlementPlanFeature) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the EntityTypeHistoryWhereInput filter on the EntityTypeHistoryQuery builder. -func (i *EntityTypeHistoryWhereInput) Filter(q *EntityTypeHistoryQuery) (*EntityTypeHistoryQuery, error) { +// Filter applies the EntitlementPlanFeatureWhereInput filter on the EntitlementPlanFeatureQuery builder. +func (i *EntitlementPlanFeatureWhereInput) Filter(q *EntitlementPlanFeatureQuery) (*EntitlementPlanFeatureQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyEntityTypeHistoryWhereInput { + if err == ErrEmptyEntitlementPlanFeatureWhereInput { return q, nil } return nil, err @@ -11493,19 +13531,19 @@ func (i *EntityTypeHistoryWhereInput) Filter(q *EntityTypeHistoryQuery) (*Entity return q.Where(p), nil } -// ErrEmptyEntityTypeHistoryWhereInput is returned in case the EntityTypeHistoryWhereInput is empty. -var ErrEmptyEntityTypeHistoryWhereInput = errors.New("generated: empty predicate EntityTypeHistoryWhereInput") +// ErrEmptyEntitlementPlanFeatureWhereInput is returned in case the EntitlementPlanFeatureWhereInput is empty. +var ErrEmptyEntitlementPlanFeatureWhereInput = errors.New("generated: empty predicate EntitlementPlanFeatureWhereInput") -// P returns a predicate for filtering entitytypehistories. +// P returns a predicate for filtering entitlementplanfeatures. // An error is returned if the input is empty or invalid. -func (i *EntityTypeHistoryWhereInput) P() (predicate.EntityTypeHistory, error) { - var predicates []predicate.EntityTypeHistory +func (i *EntitlementPlanFeatureWhereInput) P() (predicate.EntitlementPlanFeature, error) { + var predicates []predicate.EntitlementPlanFeature if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, entitytypehistory.Not(p)) + predicates = append(predicates, entitlementplanfeature.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -11515,7 +13553,7 @@ func (i *EntityTypeHistoryWhereInput) P() (predicate.EntityTypeHistory, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.EntityTypeHistory, 0, n) + or := make([]predicate.EntitlementPlanFeature, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -11523,7 +13561,7 @@ func (i *EntityTypeHistoryWhereInput) P() (predicate.EntityTypeHistory, error) { } or = append(or, p) } - predicates = append(predicates, entitytypehistory.Or(or...)) + predicates = append(predicates, entitlementplanfeature.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -11533,7 +13571,7 @@ func (i *EntityTypeHistoryWhereInput) P() (predicate.EntityTypeHistory, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.EntityTypeHistory, 0, n) + and := make([]predicate.EntitlementPlanFeature, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -11541,446 +13579,476 @@ func (i *EntityTypeHistoryWhereInput) P() (predicate.EntityTypeHistory, error) { } and = append(and, p) } - predicates = append(predicates, entitytypehistory.And(and...)) + predicates = append(predicates, entitlementplanfeature.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, entitytypehistory.IDEQ(*i.ID)) + predicates = append(predicates, entitlementplanfeature.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, entitytypehistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, entitlementplanfeature.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, entitytypehistory.IDIn(i.IDIn...)) + predicates = append(predicates, entitlementplanfeature.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, entitytypehistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, entitlementplanfeature.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, entitytypehistory.IDGT(*i.IDGT)) + predicates = append(predicates, entitlementplanfeature.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, entitytypehistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, entitlementplanfeature.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, entitytypehistory.IDLT(*i.IDLT)) + predicates = append(predicates, entitlementplanfeature.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, entitytypehistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, entitlementplanfeature.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, entitytypehistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, entitlementplanfeature.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, entitytypehistory.IDContainsFold(*i.IDContainsFold)) - } - if i.HistoryTime != nil { - predicates = append(predicates, entitytypehistory.HistoryTimeEQ(*i.HistoryTime)) - } - if i.HistoryTimeNEQ != nil { - predicates = append(predicates, entitytypehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) - } - if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, entitytypehistory.HistoryTimeIn(i.HistoryTimeIn...)) - } - if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, entitytypehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) - } - if i.HistoryTimeGT != nil { - predicates = append(predicates, entitytypehistory.HistoryTimeGT(*i.HistoryTimeGT)) - } - if i.HistoryTimeGTE != nil { - predicates = append(predicates, entitytypehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) - } - if i.HistoryTimeLT != nil { - predicates = append(predicates, entitytypehistory.HistoryTimeLT(*i.HistoryTimeLT)) - } - if i.HistoryTimeLTE != nil { - predicates = append(predicates, entitytypehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) - } - if i.Ref != nil { - predicates = append(predicates, entitytypehistory.RefEQ(*i.Ref)) - } - if i.RefNEQ != nil { - predicates = append(predicates, entitytypehistory.RefNEQ(*i.RefNEQ)) - } - if len(i.RefIn) > 0 { - predicates = append(predicates, entitytypehistory.RefIn(i.RefIn...)) - } - if len(i.RefNotIn) > 0 { - predicates = append(predicates, entitytypehistory.RefNotIn(i.RefNotIn...)) - } - if i.RefGT != nil { - predicates = append(predicates, entitytypehistory.RefGT(*i.RefGT)) - } - if i.RefGTE != nil { - predicates = append(predicates, entitytypehistory.RefGTE(*i.RefGTE)) - } - if i.RefLT != nil { - predicates = append(predicates, entitytypehistory.RefLT(*i.RefLT)) - } - if i.RefLTE != nil { - predicates = append(predicates, entitytypehistory.RefLTE(*i.RefLTE)) - } - if i.RefContains != nil { - predicates = append(predicates, entitytypehistory.RefContains(*i.RefContains)) - } - if i.RefHasPrefix != nil { - predicates = append(predicates, entitytypehistory.RefHasPrefix(*i.RefHasPrefix)) - } - if i.RefHasSuffix != nil { - predicates = append(predicates, entitytypehistory.RefHasSuffix(*i.RefHasSuffix)) - } - if i.RefIsNil { - predicates = append(predicates, entitytypehistory.RefIsNil()) - } - if i.RefNotNil { - predicates = append(predicates, entitytypehistory.RefNotNil()) - } - if i.RefEqualFold != nil { - predicates = append(predicates, entitytypehistory.RefEqualFold(*i.RefEqualFold)) - } - if i.RefContainsFold != nil { - predicates = append(predicates, entitytypehistory.RefContainsFold(*i.RefContainsFold)) - } - if i.Operation != nil { - predicates = append(predicates, entitytypehistory.OperationEQ(*i.Operation)) - } - if i.OperationNEQ != nil { - predicates = append(predicates, entitytypehistory.OperationNEQ(*i.OperationNEQ)) - } - if len(i.OperationIn) > 0 { - predicates = append(predicates, entitytypehistory.OperationIn(i.OperationIn...)) - } - if len(i.OperationNotIn) > 0 { - predicates = append(predicates, entitytypehistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, entitlementplanfeature.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, entitytypehistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, entitlementplanfeature.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, entitytypehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, entitlementplanfeature.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, entitytypehistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, entitlementplanfeature.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, entitytypehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, entitlementplanfeature.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, entitytypehistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, entitlementplanfeature.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, entitytypehistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, entitlementplanfeature.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, entitytypehistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, entitlementplanfeature.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, entitytypehistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, entitlementplanfeature.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, entitytypehistory.CreatedAtIsNil()) + predicates = append(predicates, entitlementplanfeature.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, entitytypehistory.CreatedAtNotNil()) + predicates = append(predicates, entitlementplanfeature.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, entitytypehistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, entitlementplanfeature.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, entitytypehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, entitlementplanfeature.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, entitytypehistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, entitlementplanfeature.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, entitytypehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, entitlementplanfeature.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, entitytypehistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, entitlementplanfeature.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, entitytypehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, entitlementplanfeature.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, entitytypehistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, entitlementplanfeature.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, entitytypehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, entitlementplanfeature.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, entitytypehistory.UpdatedAtIsNil()) + predicates = append(predicates, entitlementplanfeature.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, entitytypehistory.UpdatedAtNotNil()) + predicates = append(predicates, entitlementplanfeature.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, entitytypehistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, entitlementplanfeature.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, entitytypehistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, entitlementplanfeature.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, entitytypehistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, entitlementplanfeature.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, entitytypehistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, entitlementplanfeature.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, entitytypehistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, entitlementplanfeature.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, entitytypehistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, entitlementplanfeature.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, entitytypehistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, entitlementplanfeature.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, entitytypehistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, entitlementplanfeature.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, entitytypehistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, entitlementplanfeature.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, entitytypehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, entitlementplanfeature.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, entitytypehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, entitlementplanfeature.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, entitytypehistory.CreatedByIsNil()) + predicates = append(predicates, entitlementplanfeature.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, entitytypehistory.CreatedByNotNil()) + predicates = append(predicates, entitlementplanfeature.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, entitytypehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, entitlementplanfeature.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, entitytypehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, entitlementplanfeature.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, entitytypehistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, entitlementplanfeature.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, entitytypehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, entitlementplanfeature.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, entitytypehistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, entitlementplanfeature.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, entitytypehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, entitlementplanfeature.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, entitytypehistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, entitlementplanfeature.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, entitytypehistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, entitlementplanfeature.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, entitytypehistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, entitlementplanfeature.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, entitytypehistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, entitlementplanfeature.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, entitytypehistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, entitlementplanfeature.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, entitytypehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, entitlementplanfeature.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, entitytypehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, entitlementplanfeature.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, entitytypehistory.UpdatedByIsNil()) + predicates = append(predicates, entitlementplanfeature.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, entitytypehistory.UpdatedByNotNil()) + predicates = append(predicates, entitlementplanfeature.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, entitytypehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, entitlementplanfeature.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, entitytypehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, entitlementplanfeature.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, entitytypehistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, entitlementplanfeature.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, entitytypehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, entitlementplanfeature.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, entitytypehistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, entitlementplanfeature.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, entitytypehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, entitlementplanfeature.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, entitytypehistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, entitlementplanfeature.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, entitytypehistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, entitlementplanfeature.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, entitytypehistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, entitlementplanfeature.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, entitytypehistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, entitlementplanfeature.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, entitytypehistory.DeletedAtIsNil()) + predicates = append(predicates, entitlementplanfeature.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, entitytypehistory.DeletedAtNotNil()) + predicates = append(predicates, entitlementplanfeature.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, entitytypehistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, entitlementplanfeature.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, entitytypehistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, entitlementplanfeature.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, entitytypehistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, entitlementplanfeature.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, entitytypehistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, entitlementplanfeature.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, entitytypehistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, entitlementplanfeature.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, entitytypehistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, entitlementplanfeature.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, entitytypehistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, entitlementplanfeature.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, entitytypehistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, entitlementplanfeature.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, entitytypehistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, entitlementplanfeature.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, entitytypehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, entitlementplanfeature.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, entitytypehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, entitlementplanfeature.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, entitytypehistory.DeletedByIsNil()) + predicates = append(predicates, entitlementplanfeature.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, entitytypehistory.DeletedByNotNil()) + predicates = append(predicates, entitlementplanfeature.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, entitytypehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, entitlementplanfeature.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, entitytypehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, entitlementplanfeature.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.OwnerID != nil { - predicates = append(predicates, entitytypehistory.OwnerIDEQ(*i.OwnerID)) + predicates = append(predicates, entitlementplanfeature.OwnerIDEQ(*i.OwnerID)) } if i.OwnerIDNEQ != nil { - predicates = append(predicates, entitytypehistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + predicates = append(predicates, entitlementplanfeature.OwnerIDNEQ(*i.OwnerIDNEQ)) } if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, entitytypehistory.OwnerIDIn(i.OwnerIDIn...)) + predicates = append(predicates, entitlementplanfeature.OwnerIDIn(i.OwnerIDIn...)) } if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, entitytypehistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + predicates = append(predicates, entitlementplanfeature.OwnerIDNotIn(i.OwnerIDNotIn...)) } if i.OwnerIDGT != nil { - predicates = append(predicates, entitytypehistory.OwnerIDGT(*i.OwnerIDGT)) + predicates = append(predicates, entitlementplanfeature.OwnerIDGT(*i.OwnerIDGT)) } if i.OwnerIDGTE != nil { - predicates = append(predicates, entitytypehistory.OwnerIDGTE(*i.OwnerIDGTE)) + predicates = append(predicates, entitlementplanfeature.OwnerIDGTE(*i.OwnerIDGTE)) } if i.OwnerIDLT != nil { - predicates = append(predicates, entitytypehistory.OwnerIDLT(*i.OwnerIDLT)) + predicates = append(predicates, entitlementplanfeature.OwnerIDLT(*i.OwnerIDLT)) } if i.OwnerIDLTE != nil { - predicates = append(predicates, entitytypehistory.OwnerIDLTE(*i.OwnerIDLTE)) + predicates = append(predicates, entitlementplanfeature.OwnerIDLTE(*i.OwnerIDLTE)) } if i.OwnerIDContains != nil { - predicates = append(predicates, entitytypehistory.OwnerIDContains(*i.OwnerIDContains)) + predicates = append(predicates, entitlementplanfeature.OwnerIDContains(*i.OwnerIDContains)) } if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, entitytypehistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + predicates = append(predicates, entitlementplanfeature.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, entitytypehistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + predicates = append(predicates, entitlementplanfeature.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } if i.OwnerIDIsNil { - predicates = append(predicates, entitytypehistory.OwnerIDIsNil()) + predicates = append(predicates, entitlementplanfeature.OwnerIDIsNil()) } if i.OwnerIDNotNil { - predicates = append(predicates, entitytypehistory.OwnerIDNotNil()) + predicates = append(predicates, entitlementplanfeature.OwnerIDNotNil()) } if i.OwnerIDEqualFold != nil { - predicates = append(predicates, entitytypehistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + predicates = append(predicates, entitlementplanfeature.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } if i.OwnerIDContainsFold != nil { - predicates = append(predicates, entitytypehistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + predicates = append(predicates, entitlementplanfeature.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if i.Name != nil { - predicates = append(predicates, entitytypehistory.NameEQ(*i.Name)) + if i.PlanID != nil { + predicates = append(predicates, entitlementplanfeature.PlanIDEQ(*i.PlanID)) } - if i.NameNEQ != nil { - predicates = append(predicates, entitytypehistory.NameNEQ(*i.NameNEQ)) + if i.PlanIDNEQ != nil { + predicates = append(predicates, entitlementplanfeature.PlanIDNEQ(*i.PlanIDNEQ)) } - if len(i.NameIn) > 0 { - predicates = append(predicates, entitytypehistory.NameIn(i.NameIn...)) + if len(i.PlanIDIn) > 0 { + predicates = append(predicates, entitlementplanfeature.PlanIDIn(i.PlanIDIn...)) } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, entitytypehistory.NameNotIn(i.NameNotIn...)) + if len(i.PlanIDNotIn) > 0 { + predicates = append(predicates, entitlementplanfeature.PlanIDNotIn(i.PlanIDNotIn...)) } - if i.NameGT != nil { - predicates = append(predicates, entitytypehistory.NameGT(*i.NameGT)) + if i.PlanIDGT != nil { + predicates = append(predicates, entitlementplanfeature.PlanIDGT(*i.PlanIDGT)) } - if i.NameGTE != nil { - predicates = append(predicates, entitytypehistory.NameGTE(*i.NameGTE)) + if i.PlanIDGTE != nil { + predicates = append(predicates, entitlementplanfeature.PlanIDGTE(*i.PlanIDGTE)) } - if i.NameLT != nil { - predicates = append(predicates, entitytypehistory.NameLT(*i.NameLT)) + if i.PlanIDLT != nil { + predicates = append(predicates, entitlementplanfeature.PlanIDLT(*i.PlanIDLT)) } - if i.NameLTE != nil { - predicates = append(predicates, entitytypehistory.NameLTE(*i.NameLTE)) + if i.PlanIDLTE != nil { + predicates = append(predicates, entitlementplanfeature.PlanIDLTE(*i.PlanIDLTE)) } - if i.NameContains != nil { - predicates = append(predicates, entitytypehistory.NameContains(*i.NameContains)) + if i.PlanIDContains != nil { + predicates = append(predicates, entitlementplanfeature.PlanIDContains(*i.PlanIDContains)) } - if i.NameHasPrefix != nil { - predicates = append(predicates, entitytypehistory.NameHasPrefix(*i.NameHasPrefix)) + if i.PlanIDHasPrefix != nil { + predicates = append(predicates, entitlementplanfeature.PlanIDHasPrefix(*i.PlanIDHasPrefix)) } - if i.NameHasSuffix != nil { - predicates = append(predicates, entitytypehistory.NameHasSuffix(*i.NameHasSuffix)) + if i.PlanIDHasSuffix != nil { + predicates = append(predicates, entitlementplanfeature.PlanIDHasSuffix(*i.PlanIDHasSuffix)) } - if i.NameEqualFold != nil { - predicates = append(predicates, entitytypehistory.NameEqualFold(*i.NameEqualFold)) + if i.PlanIDEqualFold != nil { + predicates = append(predicates, entitlementplanfeature.PlanIDEqualFold(*i.PlanIDEqualFold)) } - if i.NameContainsFold != nil { - predicates = append(predicates, entitytypehistory.NameContainsFold(*i.NameContainsFold)) + if i.PlanIDContainsFold != nil { + predicates = append(predicates, entitlementplanfeature.PlanIDContainsFold(*i.PlanIDContainsFold)) + } + if i.FeatureID != nil { + predicates = append(predicates, entitlementplanfeature.FeatureIDEQ(*i.FeatureID)) + } + if i.FeatureIDNEQ != nil { + predicates = append(predicates, entitlementplanfeature.FeatureIDNEQ(*i.FeatureIDNEQ)) + } + if len(i.FeatureIDIn) > 0 { + predicates = append(predicates, entitlementplanfeature.FeatureIDIn(i.FeatureIDIn...)) + } + if len(i.FeatureIDNotIn) > 0 { + predicates = append(predicates, entitlementplanfeature.FeatureIDNotIn(i.FeatureIDNotIn...)) + } + if i.FeatureIDGT != nil { + predicates = append(predicates, entitlementplanfeature.FeatureIDGT(*i.FeatureIDGT)) + } + if i.FeatureIDGTE != nil { + predicates = append(predicates, entitlementplanfeature.FeatureIDGTE(*i.FeatureIDGTE)) + } + if i.FeatureIDLT != nil { + predicates = append(predicates, entitlementplanfeature.FeatureIDLT(*i.FeatureIDLT)) + } + if i.FeatureIDLTE != nil { + predicates = append(predicates, entitlementplanfeature.FeatureIDLTE(*i.FeatureIDLTE)) + } + if i.FeatureIDContains != nil { + predicates = append(predicates, entitlementplanfeature.FeatureIDContains(*i.FeatureIDContains)) + } + if i.FeatureIDHasPrefix != nil { + predicates = append(predicates, entitlementplanfeature.FeatureIDHasPrefix(*i.FeatureIDHasPrefix)) + } + if i.FeatureIDHasSuffix != nil { + predicates = append(predicates, entitlementplanfeature.FeatureIDHasSuffix(*i.FeatureIDHasSuffix)) + } + if i.FeatureIDEqualFold != nil { + predicates = append(predicates, entitlementplanfeature.FeatureIDEqualFold(*i.FeatureIDEqualFold)) + } + if i.FeatureIDContainsFold != nil { + predicates = append(predicates, entitlementplanfeature.FeatureIDContainsFold(*i.FeatureIDContainsFold)) } + if i.HasOwner != nil { + p := entitlementplanfeature.HasOwner() + if !*i.HasOwner { + p = entitlementplanfeature.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOwnerWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) + 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, entitlementplanfeature.HasOwnerWith(with...)) + } + if i.HasPlan != nil { + p := entitlementplanfeature.HasPlan() + if !*i.HasPlan { + p = entitlementplanfeature.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasPlanWith) > 0 { + with := make([]predicate.EntitlementPlan, 0, len(i.HasPlanWith)) + for _, w := range i.HasPlanWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasPlanWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, entitlementplanfeature.HasPlanWith(with...)) + } + if i.HasFeature != nil { + p := entitlementplanfeature.HasFeature() + if !*i.HasFeature { + p = entitlementplanfeature.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasFeatureWith) > 0 { + with := make([]predicate.Feature, 0, len(i.HasFeatureWith)) + for _, w := range i.HasFeatureWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFeatureWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, entitlementplanfeature.HasFeatureWith(with...)) + } + if i.HasEvents != nil { + p := entitlementplanfeature.HasEvents() + if !*i.HasEvents { + p = entitlementplanfeature.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEventsWith) > 0 { + with := make([]predicate.Event, 0, len(i.HasEventsWith)) + for _, w := range i.HasEventsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, entitlementplanfeature.HasEventsWith(with...)) + } switch len(predicates) { case 0: - return nil, ErrEmptyEntityTypeHistoryWhereInput + return nil, ErrEmptyEntitlementPlanFeatureWhereInput case 1: return predicates[0], nil default: - return entitytypehistory.And(predicates...), nil + return entitlementplanfeature.And(predicates...), nil } } -// EventWhereInput represents a where input for filtering Event queries. -type EventWhereInput struct { - Predicates []predicate.Event `json:"-"` - Not *EventWhereInput `json:"not,omitempty"` - Or []*EventWhereInput `json:"or,omitempty"` - And []*EventWhereInput `json:"and,omitempty"` +// EntitlementPlanFeatureHistoryWhereInput represents a where input for filtering EntitlementPlanFeatureHistory queries. +type EntitlementPlanFeatureHistoryWhereInput struct { + Predicates []predicate.EntitlementPlanFeatureHistory `json:"-"` + Not *EntitlementPlanFeatureHistoryWhereInput `json:"not,omitempty"` + Or []*EntitlementPlanFeatureHistoryWhereInput `json:"or,omitempty"` + And []*EntitlementPlanFeatureHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -11994,6 +14062,39 @@ type EventWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -12052,157 +14153,116 @@ type EventWhereInput struct { UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` - // "event_id" field predicates. - EventID *string `json:"eventID,omitempty"` - EventIDNEQ *string `json:"eventIDNEQ,omitempty"` - EventIDIn []string `json:"eventIDIn,omitempty"` - EventIDNotIn []string `json:"eventIDNotIn,omitempty"` - EventIDGT *string `json:"eventIDGT,omitempty"` - EventIDGTE *string `json:"eventIDGTE,omitempty"` - EventIDLT *string `json:"eventIDLT,omitempty"` - EventIDLTE *string `json:"eventIDLTE,omitempty"` - EventIDContains *string `json:"eventIDContains,omitempty"` - EventIDHasPrefix *string `json:"eventIDHasPrefix,omitempty"` - EventIDHasSuffix *string `json:"eventIDHasSuffix,omitempty"` - EventIDIsNil bool `json:"eventIDIsNil,omitempty"` - EventIDNotNil bool `json:"eventIDNotNil,omitempty"` - EventIDEqualFold *string `json:"eventIDEqualFold,omitempty"` - EventIDContainsFold *string `json:"eventIDContainsFold,omitempty"` - - // "correlation_id" field predicates. - CorrelationID *string `json:"correlationID,omitempty"` - CorrelationIDNEQ *string `json:"correlationIDNEQ,omitempty"` - CorrelationIDIn []string `json:"correlationIDIn,omitempty"` - CorrelationIDNotIn []string `json:"correlationIDNotIn,omitempty"` - CorrelationIDGT *string `json:"correlationIDGT,omitempty"` - CorrelationIDGTE *string `json:"correlationIDGTE,omitempty"` - CorrelationIDLT *string `json:"correlationIDLT,omitempty"` - CorrelationIDLTE *string `json:"correlationIDLTE,omitempty"` - CorrelationIDContains *string `json:"correlationIDContains,omitempty"` - CorrelationIDHasPrefix *string `json:"correlationIDHasPrefix,omitempty"` - CorrelationIDHasSuffix *string `json:"correlationIDHasSuffix,omitempty"` - CorrelationIDIsNil bool `json:"correlationIDIsNil,omitempty"` - CorrelationIDNotNil bool `json:"correlationIDNotNil,omitempty"` - CorrelationIDEqualFold *string `json:"correlationIDEqualFold,omitempty"` - CorrelationIDContainsFold *string `json:"correlationIDContainsFold,omitempty"` - - // "event_type" field predicates. - EventType *string `json:"eventType,omitempty"` - EventTypeNEQ *string `json:"eventTypeNEQ,omitempty"` - EventTypeIn []string `json:"eventTypeIn,omitempty"` - EventTypeNotIn []string `json:"eventTypeNotIn,omitempty"` - EventTypeGT *string `json:"eventTypeGT,omitempty"` - EventTypeGTE *string `json:"eventTypeGTE,omitempty"` - EventTypeLT *string `json:"eventTypeLT,omitempty"` - EventTypeLTE *string `json:"eventTypeLTE,omitempty"` - EventTypeContains *string `json:"eventTypeContains,omitempty"` - EventTypeHasPrefix *string `json:"eventTypeHasPrefix,omitempty"` - EventTypeHasSuffix *string `json:"eventTypeHasSuffix,omitempty"` - EventTypeEqualFold *string `json:"eventTypeEqualFold,omitempty"` - EventTypeContainsFold *string `json:"eventTypeContainsFold,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"` - - // "integration" edge predicates. - HasIntegration *bool `json:"hasIntegration,omitempty"` - HasIntegrationWith []*IntegrationWhereInput `json:"hasIntegrationWith,omitempty"` - - // "organization" edge predicates. - HasOrganization *bool `json:"hasOrganization,omitempty"` - HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` - - // "invite" edge predicates. - HasInvite *bool `json:"hasInvite,omitempty"` - HasInviteWith []*InviteWhereInput `json:"hasInviteWith,omitempty"` + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` - // "feature" edge predicates. - HasFeature *bool `json:"hasFeature,omitempty"` - HasFeatureWith []*FeatureWhereInput `json:"hasFeatureWith,omitempty"` + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "entitlementplan" edge predicates. - HasEntitlementplan *bool `json:"hasEntitlementplan,omitempty"` - HasEntitlementplanWith []*EntitlementPlanWhereInput `json:"hasEntitlementplanWith,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` - // "entitlementplanfeature" edge predicates. - HasEntitlementplanfeature *bool `json:"hasEntitlementplanfeature,omitempty"` - HasEntitlementplanfeatureWith []*EntitlementPlanFeatureWhereInput `json:"hasEntitlementplanfeatureWith,omitempty"` + // "plan_id" field predicates. + PlanID *string `json:"planID,omitempty"` + PlanIDNEQ *string `json:"planIDNEQ,omitempty"` + PlanIDIn []string `json:"planIDIn,omitempty"` + PlanIDNotIn []string `json:"planIDNotIn,omitempty"` + PlanIDGT *string `json:"planIDGT,omitempty"` + PlanIDGTE *string `json:"planIDGTE,omitempty"` + PlanIDLT *string `json:"planIDLT,omitempty"` + PlanIDLTE *string `json:"planIDLTE,omitempty"` + PlanIDContains *string `json:"planIDContains,omitempty"` + PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` + PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` + PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` + PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` - // "personal_access_token" edge predicates. - HasPersonalAccessToken *bool `json:"hasPersonalAccessToken,omitempty"` - HasPersonalAccessTokenWith []*PersonalAccessTokenWhereInput `json:"hasPersonalAccessTokenWith,omitempty"` + // "feature_id" field predicates. + FeatureID *string `json:"featureID,omitempty"` + FeatureIDNEQ *string `json:"featureIDNEQ,omitempty"` + FeatureIDIn []string `json:"featureIDIn,omitempty"` + FeatureIDNotIn []string `json:"featureIDNotIn,omitempty"` + FeatureIDGT *string `json:"featureIDGT,omitempty"` + FeatureIDGTE *string `json:"featureIDGTE,omitempty"` + FeatureIDLT *string `json:"featureIDLT,omitempty"` + FeatureIDLTE *string `json:"featureIDLTE,omitempty"` + FeatureIDContains *string `json:"featureIDContains,omitempty"` + FeatureIDHasPrefix *string `json:"featureIDHasPrefix,omitempty"` + FeatureIDHasSuffix *string `json:"featureIDHasSuffix,omitempty"` + FeatureIDEqualFold *string `json:"featureIDEqualFold,omitempty"` + FeatureIDContainsFold *string `json:"featureIDContainsFold,omitempty"` +} - // "oauth2token" edge predicates. - HasOauth2token *bool `json:"hasOauth2token,omitempty"` - HasOauth2tokenWith []*OhAuthTooTokenWhereInput `json:"hasOauth2tokenWith,omitempty"` +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *EntitlementPlanFeatureHistoryWhereInput) AddPredicates(predicates ...predicate.EntitlementPlanFeatureHistory) { + i.Predicates = append(i.Predicates, predicates...) +} - // "hush" edge predicates. - HasHush *bool `json:"hasHush,omitempty"` - HasHushWith []*HushWhereInput `json:"hasHushWith,omitempty"` +// Filter applies the EntitlementPlanFeatureHistoryWhereInput filter on the EntitlementPlanFeatureHistoryQuery builder. +func (i *EntitlementPlanFeatureHistoryWhereInput) Filter(q *EntitlementPlanFeatureHistoryQuery) (*EntitlementPlanFeatureHistoryQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyEntitlementPlanFeatureHistoryWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} - // "orgmembership" edge predicates. - HasOrgmembership *bool `json:"hasOrgmembership,omitempty"` - HasOrgmembershipWith []*OrgMembershipWhereInput `json:"hasOrgmembershipWith,omitempty"` +// ErrEmptyEntitlementPlanFeatureHistoryWhereInput is returned in case the EntitlementPlanFeatureHistoryWhereInput is empty. +var ErrEmptyEntitlementPlanFeatureHistoryWhereInput = errors.New("generated: empty predicate EntitlementPlanFeatureHistoryWhereInput") - // "groupmembership" edge predicates. - HasGroupmembership *bool `json:"hasGroupmembership,omitempty"` - HasGroupmembershipWith []*GroupMembershipWhereInput `json:"hasGroupmembershipWith,omitempty"` - - // "entitlement" edge predicates. - HasEntitlement *bool `json:"hasEntitlement,omitempty"` - HasEntitlementWith []*EntitlementWhereInput `json:"hasEntitlementWith,omitempty"` - - // "webhook" edge predicates. - HasWebhook *bool `json:"hasWebhook,omitempty"` - HasWebhookWith []*WebhookWhereInput `json:"hasWebhookWith,omitempty"` - - // "subscriber" edge predicates. - HasSubscriber *bool `json:"hasSubscriber,omitempty"` - HasSubscriberWith []*SubscriberWhereInput `json:"hasSubscriberWith,omitempty"` - - // "file" edge predicates. - HasFile *bool `json:"hasFile,omitempty"` - HasFileWith []*FileWhereInput `json:"hasFileWith,omitempty"` -} - -// AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *EventWhereInput) AddPredicates(predicates ...predicate.Event) { - i.Predicates = append(i.Predicates, predicates...) -} - -// Filter applies the EventWhereInput filter on the EventQuery builder. -func (i *EventWhereInput) Filter(q *EventQuery) (*EventQuery, error) { - if i == nil { - return q, nil - } - p, err := i.P() - if err != nil { - if err == ErrEmptyEventWhereInput { - return q, nil - } - return nil, err - } - return q.Where(p), nil -} - -// ErrEmptyEventWhereInput is returned in case the EventWhereInput is empty. -var ErrEmptyEventWhereInput = errors.New("generated: empty predicate EventWhereInput") - -// P returns a predicate for filtering events. +// P returns a predicate for filtering entitlementplanfeaturehistories. // An error is returned if the input is empty or invalid. -func (i *EventWhereInput) P() (predicate.Event, error) { - var predicates []predicate.Event +func (i *EntitlementPlanFeatureHistoryWhereInput) P() (predicate.EntitlementPlanFeatureHistory, error) { + var predicates []predicate.EntitlementPlanFeatureHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, event.Not(p)) + predicates = append(predicates, entitlementplanfeaturehistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -12212,7 +14272,7 @@ func (i *EventWhereInput) P() (predicate.Event, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.Event, 0, n) + or := make([]predicate.EntitlementPlanFeatureHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -12220,7 +14280,7 @@ func (i *EventWhereInput) P() (predicate.Event, error) { } or = append(or, p) } - predicates = append(predicates, event.Or(or...)) + predicates = append(predicates, entitlementplanfeaturehistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -12230,7 +14290,7 @@ func (i *EventWhereInput) P() (predicate.Event, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.Event, 0, n) + and := make([]predicate.EntitlementPlanFeatureHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -12238,641 +14298,485 @@ func (i *EventWhereInput) P() (predicate.Event, error) { } and = append(and, p) } - predicates = append(predicates, event.And(and...)) + predicates = append(predicates, entitlementplanfeaturehistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, event.IDEQ(*i.ID)) + predicates = append(predicates, entitlementplanfeaturehistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, event.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, entitlementplanfeaturehistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, event.IDIn(i.IDIn...)) + predicates = append(predicates, entitlementplanfeaturehistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, event.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, entitlementplanfeaturehistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, event.IDGT(*i.IDGT)) + predicates = append(predicates, entitlementplanfeaturehistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, event.IDGTE(*i.IDGTE)) + predicates = append(predicates, entitlementplanfeaturehistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, event.IDLT(*i.IDLT)) + predicates = append(predicates, entitlementplanfeaturehistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, event.IDLTE(*i.IDLTE)) + predicates = append(predicates, entitlementplanfeaturehistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, event.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, entitlementplanfeaturehistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, event.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, entitlementplanfeaturehistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, entitlementplanfeaturehistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, entitlementplanfeaturehistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, entitlementplanfeaturehistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, entitlementplanfeaturehistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, entitlementplanfeaturehistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, entitlementplanfeaturehistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, entitlementplanfeaturehistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, entitlementplanfeaturehistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, entitlementplanfeaturehistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, event.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, event.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, event.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, event.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, event.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, event.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, event.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, event.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, event.CreatedAtIsNil()) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, event.CreatedAtNotNil()) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, event.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, event.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, event.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, event.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, event.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, event.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, event.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, event.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, event.UpdatedAtIsNil()) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, event.UpdatedAtNotNil()) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, event.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, event.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, event.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, event.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, event.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, event.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, event.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, event.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, event.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, event.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, event.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, event.CreatedByIsNil()) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, event.CreatedByNotNil()) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, event.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, event.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, entitlementplanfeaturehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, event.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, event.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, event.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, event.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, event.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, event.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, event.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, event.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, event.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, event.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, event.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, event.UpdatedByIsNil()) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, event.UpdatedByNotNil()) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, event.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, event.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, entitlementplanfeaturehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } - if i.EventID != nil { - predicates = append(predicates, event.EventIDEQ(*i.EventID)) + if i.DeletedAt != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtEQ(*i.DeletedAt)) } - if i.EventIDNEQ != nil { - predicates = append(predicates, event.EventIDNEQ(*i.EventIDNEQ)) + if i.DeletedAtNEQ != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } - if len(i.EventIDIn) > 0 { - predicates = append(predicates, event.EventIDIn(i.EventIDIn...)) + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtIn(i.DeletedAtIn...)) } - if len(i.EventIDNotIn) > 0 { - predicates = append(predicates, event.EventIDNotIn(i.EventIDNotIn...)) + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } - if i.EventIDGT != nil { - predicates = append(predicates, event.EventIDGT(*i.EventIDGT)) + if i.DeletedAtGT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtGT(*i.DeletedAtGT)) } - if i.EventIDGTE != nil { - predicates = append(predicates, event.EventIDGTE(*i.EventIDGTE)) + if i.DeletedAtGTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtGTE(*i.DeletedAtGTE)) } - if i.EventIDLT != nil { - predicates = append(predicates, event.EventIDLT(*i.EventIDLT)) + if i.DeletedAtLT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtLT(*i.DeletedAtLT)) } - if i.EventIDLTE != nil { - predicates = append(predicates, event.EventIDLTE(*i.EventIDLTE)) + if i.DeletedAtLTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtLTE(*i.DeletedAtLTE)) } - if i.EventIDContains != nil { - predicates = append(predicates, event.EventIDContains(*i.EventIDContains)) + if i.DeletedAtIsNil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtIsNil()) } - if i.EventIDHasPrefix != nil { - predicates = append(predicates, event.EventIDHasPrefix(*i.EventIDHasPrefix)) + if i.DeletedAtNotNil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedAtNotNil()) } - if i.EventIDHasSuffix != nil { - predicates = append(predicates, event.EventIDHasSuffix(*i.EventIDHasSuffix)) + if i.DeletedBy != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByEQ(*i.DeletedBy)) } - if i.EventIDIsNil { - predicates = append(predicates, event.EventIDIsNil()) + if i.DeletedByNEQ != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByNEQ(*i.DeletedByNEQ)) } - if i.EventIDNotNil { - predicates = append(predicates, event.EventIDNotNil()) + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByIn(i.DeletedByIn...)) } - if i.EventIDEqualFold != nil { - predicates = append(predicates, event.EventIDEqualFold(*i.EventIDEqualFold)) + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByNotIn(i.DeletedByNotIn...)) } - if i.EventIDContainsFold != nil { - predicates = append(predicates, event.EventIDContainsFold(*i.EventIDContainsFold)) + if i.DeletedByGT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByGT(*i.DeletedByGT)) } - if i.CorrelationID != nil { - predicates = append(predicates, event.CorrelationIDEQ(*i.CorrelationID)) + if i.DeletedByGTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByGTE(*i.DeletedByGTE)) } - if i.CorrelationIDNEQ != nil { - predicates = append(predicates, event.CorrelationIDNEQ(*i.CorrelationIDNEQ)) + if i.DeletedByLT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByLT(*i.DeletedByLT)) } - if len(i.CorrelationIDIn) > 0 { - predicates = append(predicates, event.CorrelationIDIn(i.CorrelationIDIn...)) + if i.DeletedByLTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByLTE(*i.DeletedByLTE)) } - if len(i.CorrelationIDNotIn) > 0 { - predicates = append(predicates, event.CorrelationIDNotIn(i.CorrelationIDNotIn...)) + if i.DeletedByContains != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByContains(*i.DeletedByContains)) } - if i.CorrelationIDGT != nil { - predicates = append(predicates, event.CorrelationIDGT(*i.CorrelationIDGT)) + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } - if i.CorrelationIDGTE != nil { - predicates = append(predicates, event.CorrelationIDGTE(*i.CorrelationIDGTE)) + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } - if i.CorrelationIDLT != nil { - predicates = append(predicates, event.CorrelationIDLT(*i.CorrelationIDLT)) + if i.DeletedByIsNil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByIsNil()) } - if i.CorrelationIDLTE != nil { - predicates = append(predicates, event.CorrelationIDLTE(*i.CorrelationIDLTE)) + if i.DeletedByNotNil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByNotNil()) } - if i.CorrelationIDContains != nil { - predicates = append(predicates, event.CorrelationIDContains(*i.CorrelationIDContains)) + if i.DeletedByEqualFold != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } - if i.CorrelationIDHasPrefix != nil { - predicates = append(predicates, event.CorrelationIDHasPrefix(*i.CorrelationIDHasPrefix)) + if i.DeletedByContainsFold != nil { + predicates = append(predicates, entitlementplanfeaturehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.CorrelationIDHasSuffix != nil { - predicates = append(predicates, event.CorrelationIDHasSuffix(*i.CorrelationIDHasSuffix)) + if i.OwnerID != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDEQ(*i.OwnerID)) } - if i.CorrelationIDIsNil { - predicates = append(predicates, event.CorrelationIDIsNil()) + if i.OwnerIDNEQ != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDNEQ(*i.OwnerIDNEQ)) } - if i.CorrelationIDNotNil { - predicates = append(predicates, event.CorrelationIDNotNil()) + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDIn(i.OwnerIDIn...)) } - if i.CorrelationIDEqualFold != nil { - predicates = append(predicates, event.CorrelationIDEqualFold(*i.CorrelationIDEqualFold)) + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDNotIn(i.OwnerIDNotIn...)) } - if i.CorrelationIDContainsFold != nil { - predicates = append(predicates, event.CorrelationIDContainsFold(*i.CorrelationIDContainsFold)) + if i.OwnerIDGT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDGT(*i.OwnerIDGT)) } - if i.EventType != nil { - predicates = append(predicates, event.EventTypeEQ(*i.EventType)) + if i.OwnerIDGTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDGTE(*i.OwnerIDGTE)) } - if i.EventTypeNEQ != nil { - predicates = append(predicates, event.EventTypeNEQ(*i.EventTypeNEQ)) + if i.OwnerIDLT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDLT(*i.OwnerIDLT)) } - if len(i.EventTypeIn) > 0 { - predicates = append(predicates, event.EventTypeIn(i.EventTypeIn...)) + if i.OwnerIDLTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDLTE(*i.OwnerIDLTE)) } - if len(i.EventTypeNotIn) > 0 { - predicates = append(predicates, event.EventTypeNotIn(i.EventTypeNotIn...)) + if i.OwnerIDContains != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDContains(*i.OwnerIDContains)) } - if i.EventTypeGT != nil { - predicates = append(predicates, event.EventTypeGT(*i.EventTypeGT)) + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } - if i.EventTypeGTE != nil { - predicates = append(predicates, event.EventTypeGTE(*i.EventTypeGTE)) + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } - if i.EventTypeLT != nil { - predicates = append(predicates, event.EventTypeLT(*i.EventTypeLT)) + if i.OwnerIDIsNil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDIsNil()) } - if i.EventTypeLTE != nil { - predicates = append(predicates, event.EventTypeLTE(*i.EventTypeLTE)) + if i.OwnerIDNotNil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDNotNil()) } - if i.EventTypeContains != nil { - predicates = append(predicates, event.EventTypeContains(*i.EventTypeContains)) + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } - if i.EventTypeHasPrefix != nil { - predicates = append(predicates, event.EventTypeHasPrefix(*i.EventTypeHasPrefix)) + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, entitlementplanfeaturehistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if i.EventTypeHasSuffix != nil { - predicates = append(predicates, event.EventTypeHasSuffix(*i.EventTypeHasSuffix)) + if i.PlanID != nil { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDEQ(*i.PlanID)) } - if i.EventTypeEqualFold != nil { - predicates = append(predicates, event.EventTypeEqualFold(*i.EventTypeEqualFold)) + if i.PlanIDNEQ != nil { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDNEQ(*i.PlanIDNEQ)) } - if i.EventTypeContainsFold != nil { - predicates = append(predicates, event.EventTypeContainsFold(*i.EventTypeContainsFold)) + if len(i.PlanIDIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDIn(i.PlanIDIn...)) } - - if i.HasUser != nil { - p := event.HasUser() - if !*i.HasUser { - p = event.Not(p) - } - predicates = append(predicates, p) + if len(i.PlanIDNotIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDNotIn(i.PlanIDNotIn...)) } - if len(i.HasUserWith) > 0 { - with := make([]predicate.User, 0, len(i.HasUserWith)) - 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, event.HasUserWith(with...)) + if i.PlanIDGT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDGT(*i.PlanIDGT)) } - if i.HasGroup != nil { - p := event.HasGroup() - if !*i.HasGroup { - p = event.Not(p) - } - predicates = append(predicates, p) + if i.PlanIDGTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDGTE(*i.PlanIDGTE)) } - if len(i.HasGroupWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasGroupWith)) - 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, event.HasGroupWith(with...)) + if i.PlanIDLT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDLT(*i.PlanIDLT)) } - if i.HasIntegration != nil { - p := event.HasIntegration() - if !*i.HasIntegration { - p = event.Not(p) - } - predicates = append(predicates, p) + if i.PlanIDLTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDLTE(*i.PlanIDLTE)) } - if len(i.HasIntegrationWith) > 0 { - with := make([]predicate.Integration, 0, len(i.HasIntegrationWith)) - for _, w := range i.HasIntegrationWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasIntegrationWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasIntegrationWith(with...)) + if i.PlanIDContains != nil { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDContains(*i.PlanIDContains)) } - if i.HasOrganization != nil { - p := event.HasOrganization() - if !*i.HasOrganization { - p = event.Not(p) - } - predicates = append(predicates, p) + if i.PlanIDHasPrefix != nil { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDHasPrefix(*i.PlanIDHasPrefix)) } - if len(i.HasOrganizationWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOrganizationWith)) - for _, w := range i.HasOrganizationWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasOrganizationWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasOrganizationWith(with...)) + if i.PlanIDHasSuffix != nil { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDHasSuffix(*i.PlanIDHasSuffix)) } - if i.HasInvite != nil { - p := event.HasInvite() - if !*i.HasInvite { - p = event.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasInviteWith) > 0 { - with := make([]predicate.Invite, 0, len(i.HasInviteWith)) - for _, w := range i.HasInviteWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasInviteWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasInviteWith(with...)) - } - if i.HasFeature != nil { - p := event.HasFeature() - if !*i.HasFeature { - p = event.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasFeatureWith) > 0 { - with := make([]predicate.Feature, 0, len(i.HasFeatureWith)) - for _, w := range i.HasFeatureWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasFeatureWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasFeatureWith(with...)) - } - if i.HasEntitlementplan != nil { - p := event.HasEntitlementplan() - if !*i.HasEntitlementplan { - p = event.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasEntitlementplanWith) > 0 { - with := make([]predicate.EntitlementPlan, 0, len(i.HasEntitlementplanWith)) - for _, w := range i.HasEntitlementplanWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntitlementplanWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasEntitlementplanWith(with...)) - } - if i.HasEntitlementplanfeature != nil { - p := event.HasEntitlementplanfeature() - if !*i.HasEntitlementplanfeature { - p = event.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasEntitlementplanfeatureWith) > 0 { - with := make([]predicate.EntitlementPlanFeature, 0, len(i.HasEntitlementplanfeatureWith)) - for _, w := range i.HasEntitlementplanfeatureWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntitlementplanfeatureWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasEntitlementplanfeatureWith(with...)) - } - if i.HasPersonalAccessToken != nil { - p := event.HasPersonalAccessToken() - if !*i.HasPersonalAccessToken { - p = event.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasPersonalAccessTokenWith) > 0 { - with := make([]predicate.PersonalAccessToken, 0, len(i.HasPersonalAccessTokenWith)) - for _, w := range i.HasPersonalAccessTokenWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasPersonalAccessTokenWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasPersonalAccessTokenWith(with...)) - } - if i.HasOauth2token != nil { - p := event.HasOauth2token() - if !*i.HasOauth2token { - p = event.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasOauth2tokenWith) > 0 { - with := make([]predicate.OhAuthTooToken, 0, len(i.HasOauth2tokenWith)) - for _, w := range i.HasOauth2tokenWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasOauth2tokenWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasOauth2tokenWith(with...)) + if i.PlanIDEqualFold != nil { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDEqualFold(*i.PlanIDEqualFold)) } - if i.HasHush != nil { - p := event.HasHush() - if !*i.HasHush { - p = event.Not(p) - } - predicates = append(predicates, p) + if i.PlanIDContainsFold != nil { + predicates = append(predicates, entitlementplanfeaturehistory.PlanIDContainsFold(*i.PlanIDContainsFold)) } - if len(i.HasHushWith) > 0 { - with := make([]predicate.Hush, 0, len(i.HasHushWith)) - for _, w := range i.HasHushWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasHushWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasHushWith(with...)) + if i.FeatureID != nil { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDEQ(*i.FeatureID)) } - if i.HasOrgmembership != nil { - p := event.HasOrgmembership() - if !*i.HasOrgmembership { - p = event.Not(p) - } - predicates = append(predicates, p) + if i.FeatureIDNEQ != nil { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDNEQ(*i.FeatureIDNEQ)) } - if len(i.HasOrgmembershipWith) > 0 { - with := make([]predicate.OrgMembership, 0, len(i.HasOrgmembershipWith)) - for _, w := range i.HasOrgmembershipWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasOrgmembershipWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasOrgmembershipWith(with...)) + if len(i.FeatureIDIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDIn(i.FeatureIDIn...)) } - if i.HasGroupmembership != nil { - p := event.HasGroupmembership() - if !*i.HasGroupmembership { - p = event.Not(p) - } - predicates = append(predicates, p) + if len(i.FeatureIDNotIn) > 0 { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDNotIn(i.FeatureIDNotIn...)) } - if len(i.HasGroupmembershipWith) > 0 { - with := make([]predicate.GroupMembership, 0, len(i.HasGroupmembershipWith)) - for _, w := range i.HasGroupmembershipWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasGroupmembershipWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasGroupmembershipWith(with...)) + if i.FeatureIDGT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDGT(*i.FeatureIDGT)) } - if i.HasEntitlement != nil { - p := event.HasEntitlement() - if !*i.HasEntitlement { - p = event.Not(p) - } - predicates = append(predicates, p) + if i.FeatureIDGTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDGTE(*i.FeatureIDGTE)) } - if len(i.HasEntitlementWith) > 0 { - with := make([]predicate.Entitlement, 0, len(i.HasEntitlementWith)) - for _, w := range i.HasEntitlementWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntitlementWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasEntitlementWith(with...)) + if i.FeatureIDLT != nil { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDLT(*i.FeatureIDLT)) } - if i.HasWebhook != nil { - p := event.HasWebhook() - if !*i.HasWebhook { - p = event.Not(p) - } - predicates = append(predicates, p) + if i.FeatureIDLTE != nil { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDLTE(*i.FeatureIDLTE)) } - if len(i.HasWebhookWith) > 0 { - with := make([]predicate.Webhook, 0, len(i.HasWebhookWith)) - for _, w := range i.HasWebhookWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasWebhookWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasWebhookWith(with...)) + if i.FeatureIDContains != nil { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDContains(*i.FeatureIDContains)) } - if i.HasSubscriber != nil { - p := event.HasSubscriber() - if !*i.HasSubscriber { - p = event.Not(p) - } - predicates = append(predicates, p) + if i.FeatureIDHasPrefix != nil { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDHasPrefix(*i.FeatureIDHasPrefix)) } - if len(i.HasSubscriberWith) > 0 { - with := make([]predicate.Subscriber, 0, len(i.HasSubscriberWith)) - 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, event.HasSubscriberWith(with...)) + if i.FeatureIDHasSuffix != nil { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDHasSuffix(*i.FeatureIDHasSuffix)) } - if i.HasFile != nil { - p := event.HasFile() - if !*i.HasFile { - p = event.Not(p) - } - predicates = append(predicates, p) + if i.FeatureIDEqualFold != nil { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDEqualFold(*i.FeatureIDEqualFold)) } - if len(i.HasFileWith) > 0 { - with := make([]predicate.File, 0, len(i.HasFileWith)) - for _, w := range i.HasFileWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasFileWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, event.HasFileWith(with...)) + if i.FeatureIDContainsFold != nil { + predicates = append(predicates, entitlementplanfeaturehistory.FeatureIDContainsFold(*i.FeatureIDContainsFold)) } + switch len(predicates) { case 0: - return nil, ErrEmptyEventWhereInput + return nil, ErrEmptyEntitlementPlanFeatureHistoryWhereInput case 1: return predicates[0], nil default: - return event.And(predicates...), nil + return entitlementplanfeaturehistory.And(predicates...), nil } } -// EventHistoryWhereInput represents a where input for filtering EventHistory queries. -type EventHistoryWhereInput struct { - Predicates []predicate.EventHistory `json:"-"` - Not *EventHistoryWhereInput `json:"not,omitempty"` - Or []*EventHistoryWhereInput `json:"or,omitempty"` - And []*EventHistoryWhereInput `json:"and,omitempty"` +// EntitlementPlanHistoryWhereInput represents a where input for filtering EntitlementPlanHistory queries. +type EntitlementPlanHistoryWhereInput struct { + Predicates []predicate.EntitlementPlanHistory `json:"-"` + Not *EntitlementPlanHistoryWhereInput `json:"not,omitempty"` + Or []*EntitlementPlanHistoryWhereInput `json:"or,omitempty"` + And []*EntitlementPlanHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -12977,69 +14881,130 @@ type EventHistoryWhereInput struct { UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` - // "event_id" field predicates. - EventID *string `json:"eventID,omitempty"` - EventIDNEQ *string `json:"eventIDNEQ,omitempty"` - EventIDIn []string `json:"eventIDIn,omitempty"` - EventIDNotIn []string `json:"eventIDNotIn,omitempty"` - EventIDGT *string `json:"eventIDGT,omitempty"` - EventIDGTE *string `json:"eventIDGTE,omitempty"` - EventIDLT *string `json:"eventIDLT,omitempty"` - EventIDLTE *string `json:"eventIDLTE,omitempty"` - EventIDContains *string `json:"eventIDContains,omitempty"` - EventIDHasPrefix *string `json:"eventIDHasPrefix,omitempty"` - EventIDHasSuffix *string `json:"eventIDHasSuffix,omitempty"` - EventIDIsNil bool `json:"eventIDIsNil,omitempty"` - EventIDNotNil bool `json:"eventIDNotNil,omitempty"` - EventIDEqualFold *string `json:"eventIDEqualFold,omitempty"` - EventIDContainsFold *string `json:"eventIDContainsFold,omitempty"` + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` - // "correlation_id" field predicates. - CorrelationID *string `json:"correlationID,omitempty"` - CorrelationIDNEQ *string `json:"correlationIDNEQ,omitempty"` - CorrelationIDIn []string `json:"correlationIDIn,omitempty"` - CorrelationIDNotIn []string `json:"correlationIDNotIn,omitempty"` - CorrelationIDGT *string `json:"correlationIDGT,omitempty"` - CorrelationIDGTE *string `json:"correlationIDGTE,omitempty"` - CorrelationIDLT *string `json:"correlationIDLT,omitempty"` - CorrelationIDLTE *string `json:"correlationIDLTE,omitempty"` - CorrelationIDContains *string `json:"correlationIDContains,omitempty"` - CorrelationIDHasPrefix *string `json:"correlationIDHasPrefix,omitempty"` - CorrelationIDHasSuffix *string `json:"correlationIDHasSuffix,omitempty"` - CorrelationIDIsNil bool `json:"correlationIDIsNil,omitempty"` - CorrelationIDNotNil bool `json:"correlationIDNotNil,omitempty"` - CorrelationIDEqualFold *string `json:"correlationIDEqualFold,omitempty"` - CorrelationIDContainsFold *string `json:"correlationIDContainsFold,omitempty"` + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "event_type" field predicates. - EventType *string `json:"eventType,omitempty"` - EventTypeNEQ *string `json:"eventTypeNEQ,omitempty"` - EventTypeIn []string `json:"eventTypeIn,omitempty"` - EventTypeNotIn []string `json:"eventTypeNotIn,omitempty"` - EventTypeGT *string `json:"eventTypeGT,omitempty"` - EventTypeGTE *string `json:"eventTypeGTE,omitempty"` - EventTypeLT *string `json:"eventTypeLT,omitempty"` - EventTypeLTE *string `json:"eventTypeLTE,omitempty"` - EventTypeContains *string `json:"eventTypeContains,omitempty"` - EventTypeHasPrefix *string `json:"eventTypeHasPrefix,omitempty"` - EventTypeHasSuffix *string `json:"eventTypeHasSuffix,omitempty"` - EventTypeEqualFold *string `json:"eventTypeEqualFold,omitempty"` - EventTypeContainsFold *string `json:"eventTypeContainsFold,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` + + // "display_name" field predicates. + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGT *string `json:"displayNameGT,omitempty"` + DisplayNameGTE *string `json:"displayNameGTE,omitempty"` + DisplayNameLT *string `json:"displayNameLT,omitempty"` + DisplayNameLTE *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameIsNil bool `json:"displayNameIsNil,omitempty"` + DisplayNameNotNil bool `json:"displayNameNotNil,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` + + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *EventHistoryWhereInput) AddPredicates(predicates ...predicate.EventHistory) { +func (i *EntitlementPlanHistoryWhereInput) AddPredicates(predicates ...predicate.EntitlementPlanHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the EventHistoryWhereInput filter on the EventHistoryQuery builder. -func (i *EventHistoryWhereInput) Filter(q *EventHistoryQuery) (*EventHistoryQuery, error) { +// Filter applies the EntitlementPlanHistoryWhereInput filter on the EntitlementPlanHistoryQuery builder. +func (i *EntitlementPlanHistoryWhereInput) Filter(q *EntitlementPlanHistoryQuery) (*EntitlementPlanHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyEventHistoryWhereInput { + if err == ErrEmptyEntitlementPlanHistoryWhereInput { return q, nil } return nil, err @@ -13047,19 +15012,19 @@ func (i *EventHistoryWhereInput) Filter(q *EventHistoryQuery) (*EventHistoryQuer return q.Where(p), nil } -// ErrEmptyEventHistoryWhereInput is returned in case the EventHistoryWhereInput is empty. -var ErrEmptyEventHistoryWhereInput = errors.New("generated: empty predicate EventHistoryWhereInput") +// ErrEmptyEntitlementPlanHistoryWhereInput is returned in case the EntitlementPlanHistoryWhereInput is empty. +var ErrEmptyEntitlementPlanHistoryWhereInput = errors.New("generated: empty predicate EntitlementPlanHistoryWhereInput") -// P returns a predicate for filtering eventhistories. +// P returns a predicate for filtering entitlementplanhistories. // An error is returned if the input is empty or invalid. -func (i *EventHistoryWhereInput) P() (predicate.EventHistory, error) { - var predicates []predicate.EventHistory +func (i *EntitlementPlanHistoryWhereInput) P() (predicate.EntitlementPlanHistory, error) { + var predicates []predicate.EntitlementPlanHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, eventhistory.Not(p)) + predicates = append(predicates, entitlementplanhistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -13069,7 +15034,7 @@ func (i *EventHistoryWhereInput) P() (predicate.EventHistory, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.EventHistory, 0, n) + or := make([]predicate.EntitlementPlanHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -13077,7 +15042,7 @@ func (i *EventHistoryWhereInput) P() (predicate.EventHistory, error) { } or = append(or, p) } - predicates = append(predicates, eventhistory.Or(or...)) + predicates = append(predicates, entitlementplanhistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -13087,7 +15052,7 @@ func (i *EventHistoryWhereInput) P() (predicate.EventHistory, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.EventHistory, 0, n) + and := make([]predicate.EntitlementPlanHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -13095,416 +15060,575 @@ func (i *EventHistoryWhereInput) P() (predicate.EventHistory, error) { } and = append(and, p) } - predicates = append(predicates, eventhistory.And(and...)) + predicates = append(predicates, entitlementplanhistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, eventhistory.IDEQ(*i.ID)) + predicates = append(predicates, entitlementplanhistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, eventhistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, entitlementplanhistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, eventhistory.IDIn(i.IDIn...)) + predicates = append(predicates, entitlementplanhistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, eventhistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, entitlementplanhistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, eventhistory.IDGT(*i.IDGT)) + predicates = append(predicates, entitlementplanhistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, eventhistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, entitlementplanhistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, eventhistory.IDLT(*i.IDLT)) + predicates = append(predicates, entitlementplanhistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, eventhistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, entitlementplanhistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, eventhistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, entitlementplanhistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, eventhistory.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, entitlementplanhistory.IDContainsFold(*i.IDContainsFold)) } if i.HistoryTime != nil { - predicates = append(predicates, eventhistory.HistoryTimeEQ(*i.HistoryTime)) + predicates = append(predicates, entitlementplanhistory.HistoryTimeEQ(*i.HistoryTime)) } if i.HistoryTimeNEQ != nil { - predicates = append(predicates, eventhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + predicates = append(predicates, entitlementplanhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) } if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, eventhistory.HistoryTimeIn(i.HistoryTimeIn...)) + predicates = append(predicates, entitlementplanhistory.HistoryTimeIn(i.HistoryTimeIn...)) } if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, eventhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + predicates = append(predicates, entitlementplanhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) } if i.HistoryTimeGT != nil { - predicates = append(predicates, eventhistory.HistoryTimeGT(*i.HistoryTimeGT)) + predicates = append(predicates, entitlementplanhistory.HistoryTimeGT(*i.HistoryTimeGT)) } if i.HistoryTimeGTE != nil { - predicates = append(predicates, eventhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + predicates = append(predicates, entitlementplanhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) } if i.HistoryTimeLT != nil { - predicates = append(predicates, eventhistory.HistoryTimeLT(*i.HistoryTimeLT)) + predicates = append(predicates, entitlementplanhistory.HistoryTimeLT(*i.HistoryTimeLT)) } if i.HistoryTimeLTE != nil { - predicates = append(predicates, eventhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + predicates = append(predicates, entitlementplanhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) } if i.Ref != nil { - predicates = append(predicates, eventhistory.RefEQ(*i.Ref)) + predicates = append(predicates, entitlementplanhistory.RefEQ(*i.Ref)) } if i.RefNEQ != nil { - predicates = append(predicates, eventhistory.RefNEQ(*i.RefNEQ)) + predicates = append(predicates, entitlementplanhistory.RefNEQ(*i.RefNEQ)) } if len(i.RefIn) > 0 { - predicates = append(predicates, eventhistory.RefIn(i.RefIn...)) + predicates = append(predicates, entitlementplanhistory.RefIn(i.RefIn...)) } if len(i.RefNotIn) > 0 { - predicates = append(predicates, eventhistory.RefNotIn(i.RefNotIn...)) + predicates = append(predicates, entitlementplanhistory.RefNotIn(i.RefNotIn...)) } if i.RefGT != nil { - predicates = append(predicates, eventhistory.RefGT(*i.RefGT)) + predicates = append(predicates, entitlementplanhistory.RefGT(*i.RefGT)) } if i.RefGTE != nil { - predicates = append(predicates, eventhistory.RefGTE(*i.RefGTE)) + predicates = append(predicates, entitlementplanhistory.RefGTE(*i.RefGTE)) } if i.RefLT != nil { - predicates = append(predicates, eventhistory.RefLT(*i.RefLT)) + predicates = append(predicates, entitlementplanhistory.RefLT(*i.RefLT)) } if i.RefLTE != nil { - predicates = append(predicates, eventhistory.RefLTE(*i.RefLTE)) + predicates = append(predicates, entitlementplanhistory.RefLTE(*i.RefLTE)) } if i.RefContains != nil { - predicates = append(predicates, eventhistory.RefContains(*i.RefContains)) + predicates = append(predicates, entitlementplanhistory.RefContains(*i.RefContains)) } if i.RefHasPrefix != nil { - predicates = append(predicates, eventhistory.RefHasPrefix(*i.RefHasPrefix)) + predicates = append(predicates, entitlementplanhistory.RefHasPrefix(*i.RefHasPrefix)) } if i.RefHasSuffix != nil { - predicates = append(predicates, eventhistory.RefHasSuffix(*i.RefHasSuffix)) + predicates = append(predicates, entitlementplanhistory.RefHasSuffix(*i.RefHasSuffix)) } if i.RefIsNil { - predicates = append(predicates, eventhistory.RefIsNil()) + predicates = append(predicates, entitlementplanhistory.RefIsNil()) } if i.RefNotNil { - predicates = append(predicates, eventhistory.RefNotNil()) + predicates = append(predicates, entitlementplanhistory.RefNotNil()) } if i.RefEqualFold != nil { - predicates = append(predicates, eventhistory.RefEqualFold(*i.RefEqualFold)) + predicates = append(predicates, entitlementplanhistory.RefEqualFold(*i.RefEqualFold)) } if i.RefContainsFold != nil { - predicates = append(predicates, eventhistory.RefContainsFold(*i.RefContainsFold)) + predicates = append(predicates, entitlementplanhistory.RefContainsFold(*i.RefContainsFold)) } if i.Operation != nil { - predicates = append(predicates, eventhistory.OperationEQ(*i.Operation)) + predicates = append(predicates, entitlementplanhistory.OperationEQ(*i.Operation)) } if i.OperationNEQ != nil { - predicates = append(predicates, eventhistory.OperationNEQ(*i.OperationNEQ)) + predicates = append(predicates, entitlementplanhistory.OperationNEQ(*i.OperationNEQ)) } if len(i.OperationIn) > 0 { - predicates = append(predicates, eventhistory.OperationIn(i.OperationIn...)) + predicates = append(predicates, entitlementplanhistory.OperationIn(i.OperationIn...)) } if len(i.OperationNotIn) > 0 { - predicates = append(predicates, eventhistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, entitlementplanhistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, eventhistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, entitlementplanhistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, eventhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, entitlementplanhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, eventhistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, entitlementplanhistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, eventhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, entitlementplanhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, eventhistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, entitlementplanhistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, eventhistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, entitlementplanhistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, eventhistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, entitlementplanhistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, eventhistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, entitlementplanhistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, eventhistory.CreatedAtIsNil()) + predicates = append(predicates, entitlementplanhistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, eventhistory.CreatedAtNotNil()) + predicates = append(predicates, entitlementplanhistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, eventhistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, entitlementplanhistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, eventhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, entitlementplanhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, eventhistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, entitlementplanhistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, eventhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, entitlementplanhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, eventhistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, entitlementplanhistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, eventhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, entitlementplanhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, eventhistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, entitlementplanhistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, eventhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, entitlementplanhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, eventhistory.UpdatedAtIsNil()) + predicates = append(predicates, entitlementplanhistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, eventhistory.UpdatedAtNotNil()) + predicates = append(predicates, entitlementplanhistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, eventhistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, entitlementplanhistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, eventhistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, entitlementplanhistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, eventhistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, entitlementplanhistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, eventhistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, entitlementplanhistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, eventhistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, entitlementplanhistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, eventhistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, entitlementplanhistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, eventhistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, entitlementplanhistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, eventhistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, entitlementplanhistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, eventhistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, entitlementplanhistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, eventhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, entitlementplanhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, eventhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, entitlementplanhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, eventhistory.CreatedByIsNil()) + predicates = append(predicates, entitlementplanhistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, eventhistory.CreatedByNotNil()) + predicates = append(predicates, entitlementplanhistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, eventhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, entitlementplanhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, eventhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, entitlementplanhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, eventhistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, entitlementplanhistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, eventhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, entitlementplanhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, eventhistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, entitlementplanhistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, eventhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, entitlementplanhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, eventhistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, entitlementplanhistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, eventhistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, entitlementplanhistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, eventhistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, entitlementplanhistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, eventhistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, entitlementplanhistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, eventhistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, entitlementplanhistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, eventhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, entitlementplanhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, eventhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, entitlementplanhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, eventhistory.UpdatedByIsNil()) + predicates = append(predicates, entitlementplanhistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, eventhistory.UpdatedByNotNil()) + predicates = append(predicates, entitlementplanhistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, eventhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, entitlementplanhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, eventhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, entitlementplanhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } - if i.EventID != nil { - predicates = append(predicates, eventhistory.EventIDEQ(*i.EventID)) + if i.DeletedAt != nil { + predicates = append(predicates, entitlementplanhistory.DeletedAtEQ(*i.DeletedAt)) } - if i.EventIDNEQ != nil { - predicates = append(predicates, eventhistory.EventIDNEQ(*i.EventIDNEQ)) + if i.DeletedAtNEQ != nil { + predicates = append(predicates, entitlementplanhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } - if len(i.EventIDIn) > 0 { - predicates = append(predicates, eventhistory.EventIDIn(i.EventIDIn...)) + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, entitlementplanhistory.DeletedAtIn(i.DeletedAtIn...)) } - if len(i.EventIDNotIn) > 0 { - predicates = append(predicates, eventhistory.EventIDNotIn(i.EventIDNotIn...)) + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, entitlementplanhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } - if i.EventIDGT != nil { - predicates = append(predicates, eventhistory.EventIDGT(*i.EventIDGT)) + if i.DeletedAtGT != nil { + predicates = append(predicates, entitlementplanhistory.DeletedAtGT(*i.DeletedAtGT)) } - if i.EventIDGTE != nil { - predicates = append(predicates, eventhistory.EventIDGTE(*i.EventIDGTE)) + if i.DeletedAtGTE != nil { + predicates = append(predicates, entitlementplanhistory.DeletedAtGTE(*i.DeletedAtGTE)) } - if i.EventIDLT != nil { - predicates = append(predicates, eventhistory.EventIDLT(*i.EventIDLT)) + if i.DeletedAtLT != nil { + predicates = append(predicates, entitlementplanhistory.DeletedAtLT(*i.DeletedAtLT)) } - if i.EventIDLTE != nil { - predicates = append(predicates, eventhistory.EventIDLTE(*i.EventIDLTE)) + if i.DeletedAtLTE != nil { + predicates = append(predicates, entitlementplanhistory.DeletedAtLTE(*i.DeletedAtLTE)) } - if i.EventIDContains != nil { - predicates = append(predicates, eventhistory.EventIDContains(*i.EventIDContains)) + if i.DeletedAtIsNil { + predicates = append(predicates, entitlementplanhistory.DeletedAtIsNil()) } - if i.EventIDHasPrefix != nil { - predicates = append(predicates, eventhistory.EventIDHasPrefix(*i.EventIDHasPrefix)) + if i.DeletedAtNotNil { + predicates = append(predicates, entitlementplanhistory.DeletedAtNotNil()) } - if i.EventIDHasSuffix != nil { - predicates = append(predicates, eventhistory.EventIDHasSuffix(*i.EventIDHasSuffix)) + if i.DeletedBy != nil { + predicates = append(predicates, entitlementplanhistory.DeletedByEQ(*i.DeletedBy)) } - if i.EventIDIsNil { - predicates = append(predicates, eventhistory.EventIDIsNil()) + if i.DeletedByNEQ != nil { + predicates = append(predicates, entitlementplanhistory.DeletedByNEQ(*i.DeletedByNEQ)) } - if i.EventIDNotNil { - predicates = append(predicates, eventhistory.EventIDNotNil()) + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, entitlementplanhistory.DeletedByIn(i.DeletedByIn...)) } - if i.EventIDEqualFold != nil { - predicates = append(predicates, eventhistory.EventIDEqualFold(*i.EventIDEqualFold)) + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, entitlementplanhistory.DeletedByNotIn(i.DeletedByNotIn...)) } - if i.EventIDContainsFold != nil { - predicates = append(predicates, eventhistory.EventIDContainsFold(*i.EventIDContainsFold)) + if i.DeletedByGT != nil { + predicates = append(predicates, entitlementplanhistory.DeletedByGT(*i.DeletedByGT)) } - if i.CorrelationID != nil { - predicates = append(predicates, eventhistory.CorrelationIDEQ(*i.CorrelationID)) + if i.DeletedByGTE != nil { + predicates = append(predicates, entitlementplanhistory.DeletedByGTE(*i.DeletedByGTE)) } - if i.CorrelationIDNEQ != nil { - predicates = append(predicates, eventhistory.CorrelationIDNEQ(*i.CorrelationIDNEQ)) + if i.DeletedByLT != nil { + predicates = append(predicates, entitlementplanhistory.DeletedByLT(*i.DeletedByLT)) } - if len(i.CorrelationIDIn) > 0 { - predicates = append(predicates, eventhistory.CorrelationIDIn(i.CorrelationIDIn...)) + if i.DeletedByLTE != nil { + predicates = append(predicates, entitlementplanhistory.DeletedByLTE(*i.DeletedByLTE)) } - if len(i.CorrelationIDNotIn) > 0 { - predicates = append(predicates, eventhistory.CorrelationIDNotIn(i.CorrelationIDNotIn...)) + if i.DeletedByContains != nil { + predicates = append(predicates, entitlementplanhistory.DeletedByContains(*i.DeletedByContains)) } - if i.CorrelationIDGT != nil { - predicates = append(predicates, eventhistory.CorrelationIDGT(*i.CorrelationIDGT)) + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, entitlementplanhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } - if i.CorrelationIDGTE != nil { - predicates = append(predicates, eventhistory.CorrelationIDGTE(*i.CorrelationIDGTE)) + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, entitlementplanhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } - if i.CorrelationIDLT != nil { - predicates = append(predicates, eventhistory.CorrelationIDLT(*i.CorrelationIDLT)) + if i.DeletedByIsNil { + predicates = append(predicates, entitlementplanhistory.DeletedByIsNil()) } - if i.CorrelationIDLTE != nil { - predicates = append(predicates, eventhistory.CorrelationIDLTE(*i.CorrelationIDLTE)) + if i.DeletedByNotNil { + predicates = append(predicates, entitlementplanhistory.DeletedByNotNil()) } - if i.CorrelationIDContains != nil { - predicates = append(predicates, eventhistory.CorrelationIDContains(*i.CorrelationIDContains)) + if i.DeletedByEqualFold != nil { + predicates = append(predicates, entitlementplanhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } - if i.CorrelationIDHasPrefix != nil { - predicates = append(predicates, eventhistory.CorrelationIDHasPrefix(*i.CorrelationIDHasPrefix)) + if i.DeletedByContainsFold != nil { + predicates = append(predicates, entitlementplanhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.CorrelationIDHasSuffix != nil { - predicates = append(predicates, eventhistory.CorrelationIDHasSuffix(*i.CorrelationIDHasSuffix)) + if i.OwnerID != nil { + predicates = append(predicates, entitlementplanhistory.OwnerIDEQ(*i.OwnerID)) } - if i.CorrelationIDIsNil { - predicates = append(predicates, eventhistory.CorrelationIDIsNil()) + if i.OwnerIDNEQ != nil { + predicates = append(predicates, entitlementplanhistory.OwnerIDNEQ(*i.OwnerIDNEQ)) } - if i.CorrelationIDNotNil { - predicates = append(predicates, eventhistory.CorrelationIDNotNil()) + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, entitlementplanhistory.OwnerIDIn(i.OwnerIDIn...)) } - if i.CorrelationIDEqualFold != nil { - predicates = append(predicates, eventhistory.CorrelationIDEqualFold(*i.CorrelationIDEqualFold)) + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, entitlementplanhistory.OwnerIDNotIn(i.OwnerIDNotIn...)) } - if i.CorrelationIDContainsFold != nil { - predicates = append(predicates, eventhistory.CorrelationIDContainsFold(*i.CorrelationIDContainsFold)) + if i.OwnerIDGT != nil { + predicates = append(predicates, entitlementplanhistory.OwnerIDGT(*i.OwnerIDGT)) } - if i.EventType != nil { - predicates = append(predicates, eventhistory.EventTypeEQ(*i.EventType)) + if i.OwnerIDGTE != nil { + predicates = append(predicates, entitlementplanhistory.OwnerIDGTE(*i.OwnerIDGTE)) } - if i.EventTypeNEQ != nil { - predicates = append(predicates, eventhistory.EventTypeNEQ(*i.EventTypeNEQ)) + if i.OwnerIDLT != nil { + predicates = append(predicates, entitlementplanhistory.OwnerIDLT(*i.OwnerIDLT)) } - if len(i.EventTypeIn) > 0 { - predicates = append(predicates, eventhistory.EventTypeIn(i.EventTypeIn...)) + if i.OwnerIDLTE != nil { + predicates = append(predicates, entitlementplanhistory.OwnerIDLTE(*i.OwnerIDLTE)) } - if len(i.EventTypeNotIn) > 0 { - predicates = append(predicates, eventhistory.EventTypeNotIn(i.EventTypeNotIn...)) + if i.OwnerIDContains != nil { + predicates = append(predicates, entitlementplanhistory.OwnerIDContains(*i.OwnerIDContains)) } - if i.EventTypeGT != nil { - predicates = append(predicates, eventhistory.EventTypeGT(*i.EventTypeGT)) + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, entitlementplanhistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } - if i.EventTypeGTE != nil { - predicates = append(predicates, eventhistory.EventTypeGTE(*i.EventTypeGTE)) + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, entitlementplanhistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } - if i.EventTypeLT != nil { - predicates = append(predicates, eventhistory.EventTypeLT(*i.EventTypeLT)) + if i.OwnerIDIsNil { + predicates = append(predicates, entitlementplanhistory.OwnerIDIsNil()) } - if i.EventTypeLTE != nil { - predicates = append(predicates, eventhistory.EventTypeLTE(*i.EventTypeLTE)) + if i.OwnerIDNotNil { + predicates = append(predicates, entitlementplanhistory.OwnerIDNotNil()) } - if i.EventTypeContains != nil { - predicates = append(predicates, eventhistory.EventTypeContains(*i.EventTypeContains)) + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, entitlementplanhistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } - if i.EventTypeHasPrefix != nil { - predicates = append(predicates, eventhistory.EventTypeHasPrefix(*i.EventTypeHasPrefix)) + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, entitlementplanhistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if i.EventTypeHasSuffix != nil { - predicates = append(predicates, eventhistory.EventTypeHasSuffix(*i.EventTypeHasSuffix)) + if i.DisplayName != nil { + predicates = append(predicates, entitlementplanhistory.DisplayNameEQ(*i.DisplayName)) } - if i.EventTypeEqualFold != nil { - predicates = append(predicates, eventhistory.EventTypeEqualFold(*i.EventTypeEqualFold)) + if i.DisplayNameNEQ != nil { + predicates = append(predicates, entitlementplanhistory.DisplayNameNEQ(*i.DisplayNameNEQ)) } - if i.EventTypeContainsFold != nil { - predicates = append(predicates, eventhistory.EventTypeContainsFold(*i.EventTypeContainsFold)) + if len(i.DisplayNameIn) > 0 { + predicates = append(predicates, entitlementplanhistory.DisplayNameIn(i.DisplayNameIn...)) + } + if len(i.DisplayNameNotIn) > 0 { + predicates = append(predicates, entitlementplanhistory.DisplayNameNotIn(i.DisplayNameNotIn...)) + } + if i.DisplayNameGT != nil { + predicates = append(predicates, entitlementplanhistory.DisplayNameGT(*i.DisplayNameGT)) + } + if i.DisplayNameGTE != nil { + predicates = append(predicates, entitlementplanhistory.DisplayNameGTE(*i.DisplayNameGTE)) + } + if i.DisplayNameLT != nil { + predicates = append(predicates, entitlementplanhistory.DisplayNameLT(*i.DisplayNameLT)) + } + if i.DisplayNameLTE != nil { + predicates = append(predicates, entitlementplanhistory.DisplayNameLTE(*i.DisplayNameLTE)) + } + if i.DisplayNameContains != nil { + predicates = append(predicates, entitlementplanhistory.DisplayNameContains(*i.DisplayNameContains)) + } + if i.DisplayNameHasPrefix != nil { + predicates = append(predicates, entitlementplanhistory.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + } + if i.DisplayNameHasSuffix != nil { + predicates = append(predicates, entitlementplanhistory.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + } + if i.DisplayNameIsNil { + predicates = append(predicates, entitlementplanhistory.DisplayNameIsNil()) + } + if i.DisplayNameNotNil { + predicates = append(predicates, entitlementplanhistory.DisplayNameNotNil()) + } + if i.DisplayNameEqualFold != nil { + predicates = append(predicates, entitlementplanhistory.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + } + if i.DisplayNameContainsFold != nil { + predicates = append(predicates, entitlementplanhistory.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, entitlementplanhistory.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, entitlementplanhistory.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, entitlementplanhistory.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, entitlementplanhistory.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, entitlementplanhistory.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, entitlementplanhistory.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, entitlementplanhistory.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, entitlementplanhistory.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, entitlementplanhistory.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, entitlementplanhistory.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, entitlementplanhistory.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, entitlementplanhistory.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, entitlementplanhistory.NameContainsFold(*i.NameContainsFold)) + } + if i.Description != nil { + predicates = append(predicates, entitlementplanhistory.DescriptionEQ(*i.Description)) + } + if i.DescriptionNEQ != nil { + predicates = append(predicates, entitlementplanhistory.DescriptionNEQ(*i.DescriptionNEQ)) + } + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, entitlementplanhistory.DescriptionIn(i.DescriptionIn...)) + } + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, entitlementplanhistory.DescriptionNotIn(i.DescriptionNotIn...)) + } + if i.DescriptionGT != nil { + predicates = append(predicates, entitlementplanhistory.DescriptionGT(*i.DescriptionGT)) + } + if i.DescriptionGTE != nil { + predicates = append(predicates, entitlementplanhistory.DescriptionGTE(*i.DescriptionGTE)) + } + if i.DescriptionLT != nil { + predicates = append(predicates, entitlementplanhistory.DescriptionLT(*i.DescriptionLT)) + } + if i.DescriptionLTE != nil { + predicates = append(predicates, entitlementplanhistory.DescriptionLTE(*i.DescriptionLTE)) + } + if i.DescriptionContains != nil { + predicates = append(predicates, entitlementplanhistory.DescriptionContains(*i.DescriptionContains)) + } + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, entitlementplanhistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) + } + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, entitlementplanhistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) + } + if i.DescriptionIsNil { + predicates = append(predicates, entitlementplanhistory.DescriptionIsNil()) + } + if i.DescriptionNotNil { + predicates = append(predicates, entitlementplanhistory.DescriptionNotNil()) + } + if i.DescriptionEqualFold != nil { + predicates = append(predicates, entitlementplanhistory.DescriptionEqualFold(*i.DescriptionEqualFold)) + } + if i.DescriptionContainsFold != nil { + predicates = append(predicates, entitlementplanhistory.DescriptionContainsFold(*i.DescriptionContainsFold)) + } + if i.Version != nil { + predicates = append(predicates, entitlementplanhistory.VersionEQ(*i.Version)) + } + if i.VersionNEQ != nil { + predicates = append(predicates, entitlementplanhistory.VersionNEQ(*i.VersionNEQ)) + } + if len(i.VersionIn) > 0 { + predicates = append(predicates, entitlementplanhistory.VersionIn(i.VersionIn...)) + } + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, entitlementplanhistory.VersionNotIn(i.VersionNotIn...)) + } + if i.VersionGT != nil { + predicates = append(predicates, entitlementplanhistory.VersionGT(*i.VersionGT)) + } + if i.VersionGTE != nil { + predicates = append(predicates, entitlementplanhistory.VersionGTE(*i.VersionGTE)) + } + if i.VersionLT != nil { + predicates = append(predicates, entitlementplanhistory.VersionLT(*i.VersionLT)) + } + if i.VersionLTE != nil { + predicates = append(predicates, entitlementplanhistory.VersionLTE(*i.VersionLTE)) + } + if i.VersionContains != nil { + predicates = append(predicates, entitlementplanhistory.VersionContains(*i.VersionContains)) + } + if i.VersionHasPrefix != nil { + predicates = append(predicates, entitlementplanhistory.VersionHasPrefix(*i.VersionHasPrefix)) + } + if i.VersionHasSuffix != nil { + predicates = append(predicates, entitlementplanhistory.VersionHasSuffix(*i.VersionHasSuffix)) + } + if i.VersionEqualFold != nil { + predicates = append(predicates, entitlementplanhistory.VersionEqualFold(*i.VersionEqualFold)) + } + if i.VersionContainsFold != nil { + predicates = append(predicates, entitlementplanhistory.VersionContainsFold(*i.VersionContainsFold)) } switch len(predicates) { case 0: - return nil, ErrEmptyEventHistoryWhereInput + return nil, ErrEmptyEntitlementPlanHistoryWhereInput case 1: return predicates[0], nil default: - return eventhistory.And(predicates...), nil + return entitlementplanhistory.And(predicates...), nil } } -// FeatureWhereInput represents a where input for filtering Feature queries. -type FeatureWhereInput struct { - Predicates []predicate.Feature `json:"-"` - Not *FeatureWhereInput `json:"not,omitempty"` - Or []*FeatureWhereInput `json:"or,omitempty"` - And []*FeatureWhereInput `json:"and,omitempty"` +// EntityWhereInput represents a where input for filtering Entity queries. +type EntityWhereInput struct { + Predicates []predicate.Entity `json:"-"` + Not *EntityWhereInput `json:"not,omitempty"` + Or []*EntityWhereInput `json:"or,omitempty"` + And []*EntityWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -13634,6 +15758,8 @@ type FeatureWhereInput struct { NameContains *string `json:"nameContains,omitempty"` NameHasPrefix *string `json:"nameHasPrefix,omitempty"` NameHasSuffix *string `json:"nameHasSuffix,omitempty"` + NameIsNil bool `json:"nameIsNil,omitempty"` + NameNotNil bool `json:"nameNotNil,omitempty"` NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` @@ -13654,57 +15780,78 @@ type FeatureWhereInput struct { DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` - // "enabled" field predicates. - Enabled *bool `json:"enabled,omitempty"` - EnabledNEQ *bool `json:"enabledNEQ,omitempty"` + // "entity_type_id" field predicates. + EntityTypeID *string `json:"entityTypeID,omitempty"` + EntityTypeIDNEQ *string `json:"entityTypeIDNEQ,omitempty"` + EntityTypeIDIn []string `json:"entityTypeIDIn,omitempty"` + EntityTypeIDNotIn []string `json:"entityTypeIDNotIn,omitempty"` + EntityTypeIDGT *string `json:"entityTypeIDGT,omitempty"` + EntityTypeIDGTE *string `json:"entityTypeIDGTE,omitempty"` + EntityTypeIDLT *string `json:"entityTypeIDLT,omitempty"` + EntityTypeIDLTE *string `json:"entityTypeIDLTE,omitempty"` + EntityTypeIDContains *string `json:"entityTypeIDContains,omitempty"` + EntityTypeIDHasPrefix *string `json:"entityTypeIDHasPrefix,omitempty"` + EntityTypeIDHasSuffix *string `json:"entityTypeIDHasSuffix,omitempty"` + EntityTypeIDIsNil bool `json:"entityTypeIDIsNil,omitempty"` + EntityTypeIDNotNil bool `json:"entityTypeIDNotNil,omitempty"` + EntityTypeIDEqualFold *string `json:"entityTypeIDEqualFold,omitempty"` + EntityTypeIDContainsFold *string `json:"entityTypeIDContainsFold,omitempty"` - // "description" field predicates. - Description *string `json:"description,omitempty"` - DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` - DescriptionIn []string `json:"descriptionIn,omitempty"` - DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` - DescriptionGT *string `json:"descriptionGT,omitempty"` - DescriptionGTE *string `json:"descriptionGTE,omitempty"` - DescriptionLT *string `json:"descriptionLT,omitempty"` - DescriptionLTE *string `json:"descriptionLTE,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"` + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` // "owner" edge predicates. HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // "plans" edge predicates. - HasPlans *bool `json:"hasPlans,omitempty"` - HasPlansWith []*EntitlementPlanWhereInput `json:"hasPlansWith,omitempty"` - - // "events" edge predicates. - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // "contacts" edge predicates. + HasContacts *bool `json:"hasContacts,omitempty"` + HasContactsWith []*ContactWhereInput `json:"hasContactsWith,omitempty"` - // "features" edge predicates. - HasFeatures *bool `json:"hasFeatures,omitempty"` - HasFeaturesWith []*EntitlementPlanFeatureWhereInput `json:"hasFeaturesWith,omitempty"` + // "documents" edge predicates. + HasDocuments *bool `json:"hasDocuments,omitempty"` + HasDocumentsWith []*DocumentDataWhereInput `json:"hasDocumentsWith,omitempty"` + + // "notes" edge predicates. + HasNotes *bool `json:"hasNotes,omitempty"` + HasNotesWith []*NoteWhereInput `json:"hasNotesWith,omitempty"` + + // "files" edge predicates. + HasFiles *bool `json:"hasFiles,omitempty"` + HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` + + // "entity_type" edge predicates. + HasEntityType *bool `json:"hasEntityType,omitempty"` + HasEntityTypeWith []*EntityTypeWhereInput `json:"hasEntityTypeWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *FeatureWhereInput) AddPredicates(predicates ...predicate.Feature) { +func (i *EntityWhereInput) AddPredicates(predicates ...predicate.Entity) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the FeatureWhereInput filter on the FeatureQuery builder. -func (i *FeatureWhereInput) Filter(q *FeatureQuery) (*FeatureQuery, error) { +// Filter applies the EntityWhereInput filter on the EntityQuery builder. +func (i *EntityWhereInput) Filter(q *EntityQuery) (*EntityQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyFeatureWhereInput { + if err == ErrEmptyEntityWhereInput { return q, nil } return nil, err @@ -13712,19 +15859,19 @@ func (i *FeatureWhereInput) Filter(q *FeatureQuery) (*FeatureQuery, error) { return q.Where(p), nil } -// ErrEmptyFeatureWhereInput is returned in case the FeatureWhereInput is empty. -var ErrEmptyFeatureWhereInput = errors.New("generated: empty predicate FeatureWhereInput") +// ErrEmptyEntityWhereInput is returned in case the EntityWhereInput is empty. +var ErrEmptyEntityWhereInput = errors.New("generated: empty predicate EntityWhereInput") -// P returns a predicate for filtering features. +// P returns a predicate for filtering entities. // An error is returned if the input is empty or invalid. -func (i *FeatureWhereInput) P() (predicate.Feature, error) { - var predicates []predicate.Feature +func (i *EntityWhereInput) P() (predicate.Entity, error) { + var predicates []predicate.Entity if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, feature.Not(p)) + predicates = append(predicates, entity.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -13734,7 +15881,7 @@ func (i *FeatureWhereInput) P() (predicate.Feature, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.Feature, 0, n) + or := make([]predicate.Entity, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -13742,7 +15889,7 @@ func (i *FeatureWhereInput) P() (predicate.Feature, error) { } or = append(or, p) } - predicates = append(predicates, feature.Or(or...)) + predicates = append(predicates, entity.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -13752,7 +15899,7 @@ func (i *FeatureWhereInput) P() (predicate.Feature, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.Feature, 0, n) + and := make([]predicate.Entity, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -13760,449 +15907,494 @@ func (i *FeatureWhereInput) P() (predicate.Feature, error) { } and = append(and, p) } - predicates = append(predicates, feature.And(and...)) + predicates = append(predicates, entity.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, feature.IDEQ(*i.ID)) + predicates = append(predicates, entity.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, feature.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, entity.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, feature.IDIn(i.IDIn...)) + predicates = append(predicates, entity.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, feature.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, entity.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, feature.IDGT(*i.IDGT)) + predicates = append(predicates, entity.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, feature.IDGTE(*i.IDGTE)) + predicates = append(predicates, entity.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, feature.IDLT(*i.IDLT)) + predicates = append(predicates, entity.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, feature.IDLTE(*i.IDLTE)) + predicates = append(predicates, entity.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, feature.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, entity.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, feature.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, entity.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, feature.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, entity.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, feature.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, entity.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, feature.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, entity.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, feature.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, entity.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, feature.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, entity.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, feature.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, entity.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, feature.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, entity.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, feature.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, entity.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, feature.CreatedAtIsNil()) + predicates = append(predicates, entity.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, feature.CreatedAtNotNil()) + predicates = append(predicates, entity.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, feature.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, entity.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, feature.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, entity.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, feature.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, entity.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, feature.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, entity.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, feature.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, entity.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, feature.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, entity.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, feature.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, entity.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, feature.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, entity.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, feature.UpdatedAtIsNil()) + predicates = append(predicates, entity.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, feature.UpdatedAtNotNil()) + predicates = append(predicates, entity.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, feature.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, entity.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, feature.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, entity.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, feature.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, entity.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, feature.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, entity.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, feature.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, entity.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, feature.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, entity.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, feature.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, entity.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, feature.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, entity.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, feature.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, entity.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, feature.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, entity.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, feature.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, entity.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, feature.CreatedByIsNil()) + predicates = append(predicates, entity.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, feature.CreatedByNotNil()) + predicates = append(predicates, entity.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, feature.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, entity.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, feature.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, entity.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, feature.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, entity.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, feature.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, entity.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, feature.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, entity.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, feature.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, entity.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, feature.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, entity.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, feature.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, entity.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, feature.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, entity.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, feature.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, entity.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, feature.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, entity.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, feature.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, entity.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, feature.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, entity.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, feature.UpdatedByIsNil()) + predicates = append(predicates, entity.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, feature.UpdatedByNotNil()) + predicates = append(predicates, entity.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, feature.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, entity.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, feature.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, entity.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, feature.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, entity.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, feature.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, entity.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, feature.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, entity.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, feature.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, entity.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, feature.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, entity.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, feature.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, entity.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, feature.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, entity.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, feature.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, entity.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, feature.DeletedAtIsNil()) + predicates = append(predicates, entity.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, feature.DeletedAtNotNil()) + predicates = append(predicates, entity.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, feature.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, entity.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, feature.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, entity.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, feature.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, entity.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, feature.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, entity.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, feature.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, entity.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, feature.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, entity.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, feature.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, entity.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, feature.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, entity.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, feature.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, entity.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, feature.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, entity.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, feature.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, entity.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, feature.DeletedByIsNil()) + predicates = append(predicates, entity.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, feature.DeletedByNotNil()) + predicates = append(predicates, entity.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, feature.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, entity.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, feature.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, entity.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.OwnerID != nil { - predicates = append(predicates, feature.OwnerIDEQ(*i.OwnerID)) + predicates = append(predicates, entity.OwnerIDEQ(*i.OwnerID)) } if i.OwnerIDNEQ != nil { - predicates = append(predicates, feature.OwnerIDNEQ(*i.OwnerIDNEQ)) + predicates = append(predicates, entity.OwnerIDNEQ(*i.OwnerIDNEQ)) } if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, feature.OwnerIDIn(i.OwnerIDIn...)) + predicates = append(predicates, entity.OwnerIDIn(i.OwnerIDIn...)) } if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, feature.OwnerIDNotIn(i.OwnerIDNotIn...)) + predicates = append(predicates, entity.OwnerIDNotIn(i.OwnerIDNotIn...)) } if i.OwnerIDGT != nil { - predicates = append(predicates, feature.OwnerIDGT(*i.OwnerIDGT)) + predicates = append(predicates, entity.OwnerIDGT(*i.OwnerIDGT)) } if i.OwnerIDGTE != nil { - predicates = append(predicates, feature.OwnerIDGTE(*i.OwnerIDGTE)) + predicates = append(predicates, entity.OwnerIDGTE(*i.OwnerIDGTE)) } if i.OwnerIDLT != nil { - predicates = append(predicates, feature.OwnerIDLT(*i.OwnerIDLT)) + predicates = append(predicates, entity.OwnerIDLT(*i.OwnerIDLT)) } if i.OwnerIDLTE != nil { - predicates = append(predicates, feature.OwnerIDLTE(*i.OwnerIDLTE)) + predicates = append(predicates, entity.OwnerIDLTE(*i.OwnerIDLTE)) } if i.OwnerIDContains != nil { - predicates = append(predicates, feature.OwnerIDContains(*i.OwnerIDContains)) + predicates = append(predicates, entity.OwnerIDContains(*i.OwnerIDContains)) } if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, feature.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + predicates = append(predicates, entity.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, feature.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + predicates = append(predicates, entity.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } if i.OwnerIDIsNil { - predicates = append(predicates, feature.OwnerIDIsNil()) + predicates = append(predicates, entity.OwnerIDIsNil()) } if i.OwnerIDNotNil { - predicates = append(predicates, feature.OwnerIDNotNil()) + predicates = append(predicates, entity.OwnerIDNotNil()) } if i.OwnerIDEqualFold != nil { - predicates = append(predicates, feature.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + predicates = append(predicates, entity.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } if i.OwnerIDContainsFold != nil { - predicates = append(predicates, feature.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + predicates = append(predicates, entity.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } if i.Name != nil { - predicates = append(predicates, feature.NameEQ(*i.Name)) + predicates = append(predicates, entity.NameEQ(*i.Name)) } if i.NameNEQ != nil { - predicates = append(predicates, feature.NameNEQ(*i.NameNEQ)) + predicates = append(predicates, entity.NameNEQ(*i.NameNEQ)) } if len(i.NameIn) > 0 { - predicates = append(predicates, feature.NameIn(i.NameIn...)) + predicates = append(predicates, entity.NameIn(i.NameIn...)) } if len(i.NameNotIn) > 0 { - predicates = append(predicates, feature.NameNotIn(i.NameNotIn...)) + predicates = append(predicates, entity.NameNotIn(i.NameNotIn...)) } if i.NameGT != nil { - predicates = append(predicates, feature.NameGT(*i.NameGT)) + predicates = append(predicates, entity.NameGT(*i.NameGT)) } if i.NameGTE != nil { - predicates = append(predicates, feature.NameGTE(*i.NameGTE)) + predicates = append(predicates, entity.NameGTE(*i.NameGTE)) } if i.NameLT != nil { - predicates = append(predicates, feature.NameLT(*i.NameLT)) + predicates = append(predicates, entity.NameLT(*i.NameLT)) } if i.NameLTE != nil { - predicates = append(predicates, feature.NameLTE(*i.NameLTE)) + predicates = append(predicates, entity.NameLTE(*i.NameLTE)) } if i.NameContains != nil { - predicates = append(predicates, feature.NameContains(*i.NameContains)) + predicates = append(predicates, entity.NameContains(*i.NameContains)) } if i.NameHasPrefix != nil { - predicates = append(predicates, feature.NameHasPrefix(*i.NameHasPrefix)) + predicates = append(predicates, entity.NameHasPrefix(*i.NameHasPrefix)) } if i.NameHasSuffix != nil { - predicates = append(predicates, feature.NameHasSuffix(*i.NameHasSuffix)) + predicates = append(predicates, entity.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameIsNil { + predicates = append(predicates, entity.NameIsNil()) + } + if i.NameNotNil { + predicates = append(predicates, entity.NameNotNil()) } if i.NameEqualFold != nil { - predicates = append(predicates, feature.NameEqualFold(*i.NameEqualFold)) + predicates = append(predicates, entity.NameEqualFold(*i.NameEqualFold)) } if i.NameContainsFold != nil { - predicates = append(predicates, feature.NameContainsFold(*i.NameContainsFold)) + predicates = append(predicates, entity.NameContainsFold(*i.NameContainsFold)) } if i.DisplayName != nil { - predicates = append(predicates, feature.DisplayNameEQ(*i.DisplayName)) + predicates = append(predicates, entity.DisplayNameEQ(*i.DisplayName)) } if i.DisplayNameNEQ != nil { - predicates = append(predicates, feature.DisplayNameNEQ(*i.DisplayNameNEQ)) + predicates = append(predicates, entity.DisplayNameNEQ(*i.DisplayNameNEQ)) } if len(i.DisplayNameIn) > 0 { - predicates = append(predicates, feature.DisplayNameIn(i.DisplayNameIn...)) + predicates = append(predicates, entity.DisplayNameIn(i.DisplayNameIn...)) } if len(i.DisplayNameNotIn) > 0 { - predicates = append(predicates, feature.DisplayNameNotIn(i.DisplayNameNotIn...)) + predicates = append(predicates, entity.DisplayNameNotIn(i.DisplayNameNotIn...)) } if i.DisplayNameGT != nil { - predicates = append(predicates, feature.DisplayNameGT(*i.DisplayNameGT)) + predicates = append(predicates, entity.DisplayNameGT(*i.DisplayNameGT)) } if i.DisplayNameGTE != nil { - predicates = append(predicates, feature.DisplayNameGTE(*i.DisplayNameGTE)) + predicates = append(predicates, entity.DisplayNameGTE(*i.DisplayNameGTE)) } if i.DisplayNameLT != nil { - predicates = append(predicates, feature.DisplayNameLT(*i.DisplayNameLT)) + predicates = append(predicates, entity.DisplayNameLT(*i.DisplayNameLT)) } if i.DisplayNameLTE != nil { - predicates = append(predicates, feature.DisplayNameLTE(*i.DisplayNameLTE)) + predicates = append(predicates, entity.DisplayNameLTE(*i.DisplayNameLTE)) } if i.DisplayNameContains != nil { - predicates = append(predicates, feature.DisplayNameContains(*i.DisplayNameContains)) + predicates = append(predicates, entity.DisplayNameContains(*i.DisplayNameContains)) } if i.DisplayNameHasPrefix != nil { - predicates = append(predicates, feature.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + predicates = append(predicates, entity.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) } if i.DisplayNameHasSuffix != nil { - predicates = append(predicates, feature.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + predicates = append(predicates, entity.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) } if i.DisplayNameIsNil { - predicates = append(predicates, feature.DisplayNameIsNil()) + predicates = append(predicates, entity.DisplayNameIsNil()) } if i.DisplayNameNotNil { - predicates = append(predicates, feature.DisplayNameNotNil()) + predicates = append(predicates, entity.DisplayNameNotNil()) } if i.DisplayNameEqualFold != nil { - predicates = append(predicates, feature.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + predicates = append(predicates, entity.DisplayNameEqualFold(*i.DisplayNameEqualFold)) } if i.DisplayNameContainsFold != nil { - predicates = append(predicates, feature.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + predicates = append(predicates, entity.DisplayNameContainsFold(*i.DisplayNameContainsFold)) } - if i.Enabled != nil { - predicates = append(predicates, feature.EnabledEQ(*i.Enabled)) + if i.EntityTypeID != nil { + predicates = append(predicates, entity.EntityTypeIDEQ(*i.EntityTypeID)) } - if i.EnabledNEQ != nil { - predicates = append(predicates, feature.EnabledNEQ(*i.EnabledNEQ)) + if i.EntityTypeIDNEQ != nil { + predicates = append(predicates, entity.EntityTypeIDNEQ(*i.EntityTypeIDNEQ)) } - if i.Description != nil { - predicates = append(predicates, feature.DescriptionEQ(*i.Description)) + if len(i.EntityTypeIDIn) > 0 { + predicates = append(predicates, entity.EntityTypeIDIn(i.EntityTypeIDIn...)) } - if i.DescriptionNEQ != nil { - predicates = append(predicates, feature.DescriptionNEQ(*i.DescriptionNEQ)) + if len(i.EntityTypeIDNotIn) > 0 { + predicates = append(predicates, entity.EntityTypeIDNotIn(i.EntityTypeIDNotIn...)) } - if len(i.DescriptionIn) > 0 { - predicates = append(predicates, feature.DescriptionIn(i.DescriptionIn...)) + if i.EntityTypeIDGT != nil { + predicates = append(predicates, entity.EntityTypeIDGT(*i.EntityTypeIDGT)) } - if len(i.DescriptionNotIn) > 0 { - predicates = append(predicates, feature.DescriptionNotIn(i.DescriptionNotIn...)) + if i.EntityTypeIDGTE != nil { + predicates = append(predicates, entity.EntityTypeIDGTE(*i.EntityTypeIDGTE)) } - if i.DescriptionGT != nil { - predicates = append(predicates, feature.DescriptionGT(*i.DescriptionGT)) + if i.EntityTypeIDLT != nil { + predicates = append(predicates, entity.EntityTypeIDLT(*i.EntityTypeIDLT)) } - if i.DescriptionGTE != nil { - predicates = append(predicates, feature.DescriptionGTE(*i.DescriptionGTE)) + if i.EntityTypeIDLTE != nil { + predicates = append(predicates, entity.EntityTypeIDLTE(*i.EntityTypeIDLTE)) } - if i.DescriptionLT != nil { - predicates = append(predicates, feature.DescriptionLT(*i.DescriptionLT)) + if i.EntityTypeIDContains != nil { + predicates = append(predicates, entity.EntityTypeIDContains(*i.EntityTypeIDContains)) } - if i.DescriptionLTE != nil { - predicates = append(predicates, feature.DescriptionLTE(*i.DescriptionLTE)) + if i.EntityTypeIDHasPrefix != nil { + predicates = append(predicates, entity.EntityTypeIDHasPrefix(*i.EntityTypeIDHasPrefix)) } - if i.DescriptionContains != nil { - predicates = append(predicates, feature.DescriptionContains(*i.DescriptionContains)) + if i.EntityTypeIDHasSuffix != nil { + predicates = append(predicates, entity.EntityTypeIDHasSuffix(*i.EntityTypeIDHasSuffix)) } - if i.DescriptionHasPrefix != nil { - predicates = append(predicates, feature.DescriptionHasPrefix(*i.DescriptionHasPrefix)) + if i.EntityTypeIDIsNil { + predicates = append(predicates, entity.EntityTypeIDIsNil()) } - if i.DescriptionHasSuffix != nil { - predicates = append(predicates, feature.DescriptionHasSuffix(*i.DescriptionHasSuffix)) + if i.EntityTypeIDNotNil { + predicates = append(predicates, entity.EntityTypeIDNotNil()) } - if i.DescriptionIsNil { - predicates = append(predicates, feature.DescriptionIsNil()) + if i.EntityTypeIDEqualFold != nil { + predicates = append(predicates, entity.EntityTypeIDEqualFold(*i.EntityTypeIDEqualFold)) } - if i.DescriptionNotNil { - predicates = append(predicates, feature.DescriptionNotNil()) + if i.EntityTypeIDContainsFold != nil { + predicates = append(predicates, entity.EntityTypeIDContainsFold(*i.EntityTypeIDContainsFold)) } - if i.DescriptionEqualFold != nil { - predicates = append(predicates, feature.DescriptionEqualFold(*i.DescriptionEqualFold)) + if i.Status != nil { + predicates = append(predicates, entity.StatusEQ(*i.Status)) } - if i.DescriptionContainsFold != nil { - predicates = append(predicates, feature.DescriptionContainsFold(*i.DescriptionContainsFold)) + if i.StatusNEQ != nil { + predicates = append(predicates, entity.StatusNEQ(*i.StatusNEQ)) + } + if len(i.StatusIn) > 0 { + predicates = append(predicates, entity.StatusIn(i.StatusIn...)) + } + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, entity.StatusNotIn(i.StatusNotIn...)) + } + if i.StatusGT != nil { + predicates = append(predicates, entity.StatusGT(*i.StatusGT)) + } + if i.StatusGTE != nil { + predicates = append(predicates, entity.StatusGTE(*i.StatusGTE)) + } + if i.StatusLT != nil { + predicates = append(predicates, entity.StatusLT(*i.StatusLT)) + } + if i.StatusLTE != nil { + predicates = append(predicates, entity.StatusLTE(*i.StatusLTE)) + } + if i.StatusContains != nil { + predicates = append(predicates, entity.StatusContains(*i.StatusContains)) + } + if i.StatusHasPrefix != nil { + predicates = append(predicates, entity.StatusHasPrefix(*i.StatusHasPrefix)) + } + if i.StatusHasSuffix != nil { + predicates = append(predicates, entity.StatusHasSuffix(*i.StatusHasSuffix)) + } + if i.StatusIsNil { + predicates = append(predicates, entity.StatusIsNil()) + } + if i.StatusNotNil { + predicates = append(predicates, entity.StatusNotNil()) + } + if i.StatusEqualFold != nil { + predicates = append(predicates, entity.StatusEqualFold(*i.StatusEqualFold)) + } + if i.StatusContainsFold != nil { + predicates = append(predicates, entity.StatusContainsFold(*i.StatusContainsFold)) } if i.HasOwner != nil { - p := feature.HasOwner() + p := entity.HasOwner() if !*i.HasOwner { - p = feature.Not(p) + p = entity.Not(p) } predicates = append(predicates, p) } @@ -14215,88 +16407,124 @@ func (i *FeatureWhereInput) P() (predicate.Feature, error) { } with = append(with, p) } - predicates = append(predicates, feature.HasOwnerWith(with...)) + predicates = append(predicates, entity.HasOwnerWith(with...)) } - if i.HasPlans != nil { - p := feature.HasPlans() - if !*i.HasPlans { - p = feature.Not(p) + if i.HasContacts != nil { + p := entity.HasContacts() + if !*i.HasContacts { + p = entity.Not(p) } predicates = append(predicates, p) } - if len(i.HasPlansWith) > 0 { - with := make([]predicate.EntitlementPlan, 0, len(i.HasPlansWith)) - for _, w := range i.HasPlansWith { + if len(i.HasContactsWith) > 0 { + with := make([]predicate.Contact, 0, len(i.HasContactsWith)) + for _, w := range i.HasContactsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasPlansWith'", err) + return nil, fmt.Errorf("%w: field 'HasContactsWith'", err) } with = append(with, p) } - predicates = append(predicates, feature.HasPlansWith(with...)) + predicates = append(predicates, entity.HasContactsWith(with...)) } - if i.HasEvents != nil { - p := feature.HasEvents() - if !*i.HasEvents { - p = feature.Not(p) + if i.HasDocuments != nil { + p := entity.HasDocuments() + if !*i.HasDocuments { + p = entity.Not(p) } predicates = append(predicates, p) } - if len(i.HasEventsWith) > 0 { - with := make([]predicate.Event, 0, len(i.HasEventsWith)) - for _, w := range i.HasEventsWith { + if len(i.HasDocumentsWith) > 0 { + with := make([]predicate.DocumentData, 0, len(i.HasDocumentsWith)) + for _, w := range i.HasDocumentsWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + return nil, fmt.Errorf("%w: field 'HasDocumentsWith'", err) } with = append(with, p) } - predicates = append(predicates, feature.HasEventsWith(with...)) + predicates = append(predicates, entity.HasDocumentsWith(with...)) } - if i.HasFeatures != nil { - p := feature.HasFeatures() - if !*i.HasFeatures { - p = feature.Not(p) + if i.HasNotes != nil { + p := entity.HasNotes() + if !*i.HasNotes { + p = entity.Not(p) } predicates = append(predicates, p) } - if len(i.HasFeaturesWith) > 0 { - with := make([]predicate.EntitlementPlanFeature, 0, len(i.HasFeaturesWith)) - for _, w := range i.HasFeaturesWith { + if len(i.HasNotesWith) > 0 { + with := make([]predicate.Note, 0, len(i.HasNotesWith)) + for _, w := range i.HasNotesWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasFeaturesWith'", err) + return nil, fmt.Errorf("%w: field 'HasNotesWith'", err) } with = append(with, p) } - predicates = append(predicates, feature.HasFeaturesWith(with...)) + predicates = append(predicates, entity.HasNotesWith(with...)) } - switch len(predicates) { - case 0: - return nil, ErrEmptyFeatureWhereInput - case 1: - return predicates[0], nil - default: - return feature.And(predicates...), nil + if i.HasFiles != nil { + p := entity.HasFiles() + if !*i.HasFiles { + p = entity.Not(p) + } + predicates = append(predicates, p) } -} - -// FeatureHistoryWhereInput represents a where input for filtering FeatureHistory queries. -type FeatureHistoryWhereInput struct { - Predicates []predicate.FeatureHistory `json:"-"` - Not *FeatureHistoryWhereInput `json:"not,omitempty"` - Or []*FeatureHistoryWhereInput `json:"or,omitempty"` - And []*FeatureHistoryWhereInput `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"` - IDGT *string `json:"idGT,omitempty"` - IDGTE *string `json:"idGTE,omitempty"` - IDLT *string `json:"idLT,omitempty"` - IDLTE *string `json:"idLTE,omitempty"` + if len(i.HasFilesWith) > 0 { + with := make([]predicate.File, 0, len(i.HasFilesWith)) + for _, w := range i.HasFilesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFilesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, entity.HasFilesWith(with...)) + } + if i.HasEntityType != nil { + p := entity.HasEntityType() + if !*i.HasEntityType { + p = entity.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEntityTypeWith) > 0 { + with := make([]predicate.EntityType, 0, len(i.HasEntityTypeWith)) + for _, w := range i.HasEntityTypeWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntityTypeWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, entity.HasEntityTypeWith(with...)) + } + switch len(predicates) { + case 0: + return nil, ErrEmptyEntityWhereInput + case 1: + return predicates[0], nil + default: + return entity.And(predicates...), nil + } +} + +// EntityHistoryWhereInput represents a where input for filtering EntityHistory queries. +type EntityHistoryWhereInput struct { + Predicates []predicate.EntityHistory `json:"-"` + Not *EntityHistoryWhereInput `json:"not,omitempty"` + Or []*EntityHistoryWhereInput `json:"or,omitempty"` + And []*EntityHistoryWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` @@ -14449,6 +16677,8 @@ type FeatureHistoryWhereInput struct { NameContains *string `json:"nameContains,omitempty"` NameHasPrefix *string `json:"nameHasPrefix,omitempty"` NameHasSuffix *string `json:"nameHasSuffix,omitempty"` + NameIsNil bool `json:"nameIsNil,omitempty"` + NameNotNil bool `json:"nameNotNil,omitempty"` NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` @@ -14469,41 +16699,54 @@ type FeatureHistoryWhereInput struct { DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` - // "enabled" field predicates. - Enabled *bool `json:"enabled,omitempty"` - EnabledNEQ *bool `json:"enabledNEQ,omitempty"` + // "entity_type_id" field predicates. + EntityTypeID *string `json:"entityTypeID,omitempty"` + EntityTypeIDNEQ *string `json:"entityTypeIDNEQ,omitempty"` + EntityTypeIDIn []string `json:"entityTypeIDIn,omitempty"` + EntityTypeIDNotIn []string `json:"entityTypeIDNotIn,omitempty"` + EntityTypeIDGT *string `json:"entityTypeIDGT,omitempty"` + EntityTypeIDGTE *string `json:"entityTypeIDGTE,omitempty"` + EntityTypeIDLT *string `json:"entityTypeIDLT,omitempty"` + EntityTypeIDLTE *string `json:"entityTypeIDLTE,omitempty"` + EntityTypeIDContains *string `json:"entityTypeIDContains,omitempty"` + EntityTypeIDHasPrefix *string `json:"entityTypeIDHasPrefix,omitempty"` + EntityTypeIDHasSuffix *string `json:"entityTypeIDHasSuffix,omitempty"` + EntityTypeIDIsNil bool `json:"entityTypeIDIsNil,omitempty"` + EntityTypeIDNotNil bool `json:"entityTypeIDNotNil,omitempty"` + EntityTypeIDEqualFold *string `json:"entityTypeIDEqualFold,omitempty"` + EntityTypeIDContainsFold *string `json:"entityTypeIDContainsFold,omitempty"` - // "description" field predicates. - Description *string `json:"description,omitempty"` - DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` - DescriptionIn []string `json:"descriptionIn,omitempty"` - DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` - DescriptionGT *string `json:"descriptionGT,omitempty"` - DescriptionGTE *string `json:"descriptionGTE,omitempty"` - DescriptionLT *string `json:"descriptionLT,omitempty"` - DescriptionLTE *string `json:"descriptionLTE,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"` + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *FeatureHistoryWhereInput) AddPredicates(predicates ...predicate.FeatureHistory) { +func (i *EntityHistoryWhereInput) AddPredicates(predicates ...predicate.EntityHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the FeatureHistoryWhereInput filter on the FeatureHistoryQuery builder. -func (i *FeatureHistoryWhereInput) Filter(q *FeatureHistoryQuery) (*FeatureHistoryQuery, error) { +// Filter applies the EntityHistoryWhereInput filter on the EntityHistoryQuery builder. +func (i *EntityHistoryWhereInput) Filter(q *EntityHistoryQuery) (*EntityHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyFeatureHistoryWhereInput { + if err == ErrEmptyEntityHistoryWhereInput { return q, nil } return nil, err @@ -14511,19 +16754,19 @@ func (i *FeatureHistoryWhereInput) Filter(q *FeatureHistoryQuery) (*FeatureHisto return q.Where(p), nil } -// ErrEmptyFeatureHistoryWhereInput is returned in case the FeatureHistoryWhereInput is empty. -var ErrEmptyFeatureHistoryWhereInput = errors.New("generated: empty predicate FeatureHistoryWhereInput") +// ErrEmptyEntityHistoryWhereInput is returned in case the EntityHistoryWhereInput is empty. +var ErrEmptyEntityHistoryWhereInput = errors.New("generated: empty predicate EntityHistoryWhereInput") -// P returns a predicate for filtering featurehistories. +// P returns a predicate for filtering entityhistories. // An error is returned if the input is empty or invalid. -func (i *FeatureHistoryWhereInput) P() (predicate.FeatureHistory, error) { - var predicates []predicate.FeatureHistory +func (i *EntityHistoryWhereInput) P() (predicate.EntityHistory, error) { + var predicates []predicate.EntityHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, featurehistory.Not(p)) + predicates = append(predicates, entityhistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -14533,7 +16776,7 @@ func (i *FeatureHistoryWhereInput) P() (predicate.FeatureHistory, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.FeatureHistory, 0, n) + or := make([]predicate.EntityHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -14541,7 +16784,7 @@ func (i *FeatureHistoryWhereInput) P() (predicate.FeatureHistory, error) { } or = append(or, p) } - predicates = append(predicates, featurehistory.Or(or...)) + predicates = append(predicates, entityhistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -14551,7 +16794,7 @@ func (i *FeatureHistoryWhereInput) P() (predicate.FeatureHistory, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.FeatureHistory, 0, n) + and := make([]predicate.EntityHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -14559,542 +16802,587 @@ func (i *FeatureHistoryWhereInput) P() (predicate.FeatureHistory, error) { } and = append(and, p) } - predicates = append(predicates, featurehistory.And(and...)) + predicates = append(predicates, entityhistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, featurehistory.IDEQ(*i.ID)) + predicates = append(predicates, entityhistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, featurehistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, entityhistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, featurehistory.IDIn(i.IDIn...)) + predicates = append(predicates, entityhistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, featurehistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, entityhistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, featurehistory.IDGT(*i.IDGT)) + predicates = append(predicates, entityhistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, featurehistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, entityhistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, featurehistory.IDLT(*i.IDLT)) + predicates = append(predicates, entityhistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, featurehistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, entityhistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, featurehistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, entityhistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, featurehistory.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, entityhistory.IDContainsFold(*i.IDContainsFold)) } if i.HistoryTime != nil { - predicates = append(predicates, featurehistory.HistoryTimeEQ(*i.HistoryTime)) + predicates = append(predicates, entityhistory.HistoryTimeEQ(*i.HistoryTime)) } if i.HistoryTimeNEQ != nil { - predicates = append(predicates, featurehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + predicates = append(predicates, entityhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) } if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, featurehistory.HistoryTimeIn(i.HistoryTimeIn...)) + predicates = append(predicates, entityhistory.HistoryTimeIn(i.HistoryTimeIn...)) } if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, featurehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + predicates = append(predicates, entityhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) } if i.HistoryTimeGT != nil { - predicates = append(predicates, featurehistory.HistoryTimeGT(*i.HistoryTimeGT)) + predicates = append(predicates, entityhistory.HistoryTimeGT(*i.HistoryTimeGT)) } if i.HistoryTimeGTE != nil { - predicates = append(predicates, featurehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + predicates = append(predicates, entityhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) } if i.HistoryTimeLT != nil { - predicates = append(predicates, featurehistory.HistoryTimeLT(*i.HistoryTimeLT)) + predicates = append(predicates, entityhistory.HistoryTimeLT(*i.HistoryTimeLT)) } if i.HistoryTimeLTE != nil { - predicates = append(predicates, featurehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + predicates = append(predicates, entityhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) } if i.Ref != nil { - predicates = append(predicates, featurehistory.RefEQ(*i.Ref)) + predicates = append(predicates, entityhistory.RefEQ(*i.Ref)) } if i.RefNEQ != nil { - predicates = append(predicates, featurehistory.RefNEQ(*i.RefNEQ)) + predicates = append(predicates, entityhistory.RefNEQ(*i.RefNEQ)) } if len(i.RefIn) > 0 { - predicates = append(predicates, featurehistory.RefIn(i.RefIn...)) + predicates = append(predicates, entityhistory.RefIn(i.RefIn...)) } if len(i.RefNotIn) > 0 { - predicates = append(predicates, featurehistory.RefNotIn(i.RefNotIn...)) + predicates = append(predicates, entityhistory.RefNotIn(i.RefNotIn...)) } if i.RefGT != nil { - predicates = append(predicates, featurehistory.RefGT(*i.RefGT)) + predicates = append(predicates, entityhistory.RefGT(*i.RefGT)) } if i.RefGTE != nil { - predicates = append(predicates, featurehistory.RefGTE(*i.RefGTE)) + predicates = append(predicates, entityhistory.RefGTE(*i.RefGTE)) } if i.RefLT != nil { - predicates = append(predicates, featurehistory.RefLT(*i.RefLT)) + predicates = append(predicates, entityhistory.RefLT(*i.RefLT)) } if i.RefLTE != nil { - predicates = append(predicates, featurehistory.RefLTE(*i.RefLTE)) + predicates = append(predicates, entityhistory.RefLTE(*i.RefLTE)) } if i.RefContains != nil { - predicates = append(predicates, featurehistory.RefContains(*i.RefContains)) + predicates = append(predicates, entityhistory.RefContains(*i.RefContains)) } if i.RefHasPrefix != nil { - predicates = append(predicates, featurehistory.RefHasPrefix(*i.RefHasPrefix)) + predicates = append(predicates, entityhistory.RefHasPrefix(*i.RefHasPrefix)) } if i.RefHasSuffix != nil { - predicates = append(predicates, featurehistory.RefHasSuffix(*i.RefHasSuffix)) + predicates = append(predicates, entityhistory.RefHasSuffix(*i.RefHasSuffix)) } if i.RefIsNil { - predicates = append(predicates, featurehistory.RefIsNil()) + predicates = append(predicates, entityhistory.RefIsNil()) } if i.RefNotNil { - predicates = append(predicates, featurehistory.RefNotNil()) + predicates = append(predicates, entityhistory.RefNotNil()) } if i.RefEqualFold != nil { - predicates = append(predicates, featurehistory.RefEqualFold(*i.RefEqualFold)) + predicates = append(predicates, entityhistory.RefEqualFold(*i.RefEqualFold)) } if i.RefContainsFold != nil { - predicates = append(predicates, featurehistory.RefContainsFold(*i.RefContainsFold)) + predicates = append(predicates, entityhistory.RefContainsFold(*i.RefContainsFold)) } if i.Operation != nil { - predicates = append(predicates, featurehistory.OperationEQ(*i.Operation)) + predicates = append(predicates, entityhistory.OperationEQ(*i.Operation)) } if i.OperationNEQ != nil { - predicates = append(predicates, featurehistory.OperationNEQ(*i.OperationNEQ)) + predicates = append(predicates, entityhistory.OperationNEQ(*i.OperationNEQ)) } if len(i.OperationIn) > 0 { - predicates = append(predicates, featurehistory.OperationIn(i.OperationIn...)) + predicates = append(predicates, entityhistory.OperationIn(i.OperationIn...)) } if len(i.OperationNotIn) > 0 { - predicates = append(predicates, featurehistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, entityhistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, featurehistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, entityhistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, featurehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, entityhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, featurehistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, entityhistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, featurehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, entityhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, featurehistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, entityhistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, featurehistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, entityhistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, featurehistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, entityhistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, featurehistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, entityhistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, featurehistory.CreatedAtIsNil()) + predicates = append(predicates, entityhistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, featurehistory.CreatedAtNotNil()) + predicates = append(predicates, entityhistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, featurehistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, entityhistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, featurehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, entityhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, featurehistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, entityhistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, featurehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, entityhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, featurehistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, entityhistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, featurehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, entityhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, featurehistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, entityhistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, featurehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, entityhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, featurehistory.UpdatedAtIsNil()) + predicates = append(predicates, entityhistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, featurehistory.UpdatedAtNotNil()) + predicates = append(predicates, entityhistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, featurehistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, entityhistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, featurehistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, entityhistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, featurehistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, entityhistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, featurehistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, entityhistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, featurehistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, entityhistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, featurehistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, entityhistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, featurehistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, entityhistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, featurehistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, entityhistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, featurehistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, entityhistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, featurehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, entityhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, featurehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, entityhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, featurehistory.CreatedByIsNil()) + predicates = append(predicates, entityhistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, featurehistory.CreatedByNotNil()) + predicates = append(predicates, entityhistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, featurehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, entityhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, featurehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, entityhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, featurehistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, entityhistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, featurehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, entityhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, featurehistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, entityhistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, featurehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, entityhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, featurehistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, entityhistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, featurehistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, entityhistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, featurehistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, entityhistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, featurehistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, entityhistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, featurehistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, entityhistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, featurehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, entityhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, featurehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, entityhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, featurehistory.UpdatedByIsNil()) + predicates = append(predicates, entityhistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, featurehistory.UpdatedByNotNil()) + predicates = append(predicates, entityhistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, featurehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, entityhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, featurehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, entityhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, featurehistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, entityhistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, featurehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, entityhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, featurehistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, entityhistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, featurehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, entityhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, featurehistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, entityhistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, featurehistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, entityhistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, featurehistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, entityhistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, featurehistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, entityhistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, featurehistory.DeletedAtIsNil()) + predicates = append(predicates, entityhistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, featurehistory.DeletedAtNotNil()) + predicates = append(predicates, entityhistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, featurehistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, entityhistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, featurehistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, entityhistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, featurehistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, entityhistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, featurehistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, entityhistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, featurehistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, entityhistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, featurehistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, entityhistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, featurehistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, entityhistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, featurehistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, entityhistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, featurehistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, entityhistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, featurehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, entityhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, featurehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, entityhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, featurehistory.DeletedByIsNil()) + predicates = append(predicates, entityhistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, featurehistory.DeletedByNotNil()) + predicates = append(predicates, entityhistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, featurehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, entityhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, featurehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, entityhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.OwnerID != nil { - predicates = append(predicates, featurehistory.OwnerIDEQ(*i.OwnerID)) + predicates = append(predicates, entityhistory.OwnerIDEQ(*i.OwnerID)) } if i.OwnerIDNEQ != nil { - predicates = append(predicates, featurehistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + predicates = append(predicates, entityhistory.OwnerIDNEQ(*i.OwnerIDNEQ)) } if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, featurehistory.OwnerIDIn(i.OwnerIDIn...)) + predicates = append(predicates, entityhistory.OwnerIDIn(i.OwnerIDIn...)) } if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, featurehistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + predicates = append(predicates, entityhistory.OwnerIDNotIn(i.OwnerIDNotIn...)) } if i.OwnerIDGT != nil { - predicates = append(predicates, featurehistory.OwnerIDGT(*i.OwnerIDGT)) + predicates = append(predicates, entityhistory.OwnerIDGT(*i.OwnerIDGT)) } if i.OwnerIDGTE != nil { - predicates = append(predicates, featurehistory.OwnerIDGTE(*i.OwnerIDGTE)) + predicates = append(predicates, entityhistory.OwnerIDGTE(*i.OwnerIDGTE)) } if i.OwnerIDLT != nil { - predicates = append(predicates, featurehistory.OwnerIDLT(*i.OwnerIDLT)) + predicates = append(predicates, entityhistory.OwnerIDLT(*i.OwnerIDLT)) } if i.OwnerIDLTE != nil { - predicates = append(predicates, featurehistory.OwnerIDLTE(*i.OwnerIDLTE)) + predicates = append(predicates, entityhistory.OwnerIDLTE(*i.OwnerIDLTE)) } if i.OwnerIDContains != nil { - predicates = append(predicates, featurehistory.OwnerIDContains(*i.OwnerIDContains)) + predicates = append(predicates, entityhistory.OwnerIDContains(*i.OwnerIDContains)) } if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, featurehistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + predicates = append(predicates, entityhistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, featurehistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + predicates = append(predicates, entityhistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } if i.OwnerIDIsNil { - predicates = append(predicates, featurehistory.OwnerIDIsNil()) + predicates = append(predicates, entityhistory.OwnerIDIsNil()) } if i.OwnerIDNotNil { - predicates = append(predicates, featurehistory.OwnerIDNotNil()) + predicates = append(predicates, entityhistory.OwnerIDNotNil()) } if i.OwnerIDEqualFold != nil { - predicates = append(predicates, featurehistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + predicates = append(predicates, entityhistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } if i.OwnerIDContainsFold != nil { - predicates = append(predicates, featurehistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + predicates = append(predicates, entityhistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } if i.Name != nil { - predicates = append(predicates, featurehistory.NameEQ(*i.Name)) + predicates = append(predicates, entityhistory.NameEQ(*i.Name)) } if i.NameNEQ != nil { - predicates = append(predicates, featurehistory.NameNEQ(*i.NameNEQ)) + predicates = append(predicates, entityhistory.NameNEQ(*i.NameNEQ)) } if len(i.NameIn) > 0 { - predicates = append(predicates, featurehistory.NameIn(i.NameIn...)) + predicates = append(predicates, entityhistory.NameIn(i.NameIn...)) } if len(i.NameNotIn) > 0 { - predicates = append(predicates, featurehistory.NameNotIn(i.NameNotIn...)) + predicates = append(predicates, entityhistory.NameNotIn(i.NameNotIn...)) } if i.NameGT != nil { - predicates = append(predicates, featurehistory.NameGT(*i.NameGT)) + predicates = append(predicates, entityhistory.NameGT(*i.NameGT)) } if i.NameGTE != nil { - predicates = append(predicates, featurehistory.NameGTE(*i.NameGTE)) + predicates = append(predicates, entityhistory.NameGTE(*i.NameGTE)) } if i.NameLT != nil { - predicates = append(predicates, featurehistory.NameLT(*i.NameLT)) + predicates = append(predicates, entityhistory.NameLT(*i.NameLT)) } if i.NameLTE != nil { - predicates = append(predicates, featurehistory.NameLTE(*i.NameLTE)) + predicates = append(predicates, entityhistory.NameLTE(*i.NameLTE)) } if i.NameContains != nil { - predicates = append(predicates, featurehistory.NameContains(*i.NameContains)) + predicates = append(predicates, entityhistory.NameContains(*i.NameContains)) } if i.NameHasPrefix != nil { - predicates = append(predicates, featurehistory.NameHasPrefix(*i.NameHasPrefix)) + predicates = append(predicates, entityhistory.NameHasPrefix(*i.NameHasPrefix)) } if i.NameHasSuffix != nil { - predicates = append(predicates, featurehistory.NameHasSuffix(*i.NameHasSuffix)) + predicates = append(predicates, entityhistory.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameIsNil { + predicates = append(predicates, entityhistory.NameIsNil()) + } + if i.NameNotNil { + predicates = append(predicates, entityhistory.NameNotNil()) } if i.NameEqualFold != nil { - predicates = append(predicates, featurehistory.NameEqualFold(*i.NameEqualFold)) + predicates = append(predicates, entityhistory.NameEqualFold(*i.NameEqualFold)) } if i.NameContainsFold != nil { - predicates = append(predicates, featurehistory.NameContainsFold(*i.NameContainsFold)) + predicates = append(predicates, entityhistory.NameContainsFold(*i.NameContainsFold)) } if i.DisplayName != nil { - predicates = append(predicates, featurehistory.DisplayNameEQ(*i.DisplayName)) + predicates = append(predicates, entityhistory.DisplayNameEQ(*i.DisplayName)) } if i.DisplayNameNEQ != nil { - predicates = append(predicates, featurehistory.DisplayNameNEQ(*i.DisplayNameNEQ)) + predicates = append(predicates, entityhistory.DisplayNameNEQ(*i.DisplayNameNEQ)) } if len(i.DisplayNameIn) > 0 { - predicates = append(predicates, featurehistory.DisplayNameIn(i.DisplayNameIn...)) + predicates = append(predicates, entityhistory.DisplayNameIn(i.DisplayNameIn...)) } if len(i.DisplayNameNotIn) > 0 { - predicates = append(predicates, featurehistory.DisplayNameNotIn(i.DisplayNameNotIn...)) + predicates = append(predicates, entityhistory.DisplayNameNotIn(i.DisplayNameNotIn...)) } if i.DisplayNameGT != nil { - predicates = append(predicates, featurehistory.DisplayNameGT(*i.DisplayNameGT)) + predicates = append(predicates, entityhistory.DisplayNameGT(*i.DisplayNameGT)) } if i.DisplayNameGTE != nil { - predicates = append(predicates, featurehistory.DisplayNameGTE(*i.DisplayNameGTE)) + predicates = append(predicates, entityhistory.DisplayNameGTE(*i.DisplayNameGTE)) } if i.DisplayNameLT != nil { - predicates = append(predicates, featurehistory.DisplayNameLT(*i.DisplayNameLT)) + predicates = append(predicates, entityhistory.DisplayNameLT(*i.DisplayNameLT)) } if i.DisplayNameLTE != nil { - predicates = append(predicates, featurehistory.DisplayNameLTE(*i.DisplayNameLTE)) + predicates = append(predicates, entityhistory.DisplayNameLTE(*i.DisplayNameLTE)) } if i.DisplayNameContains != nil { - predicates = append(predicates, featurehistory.DisplayNameContains(*i.DisplayNameContains)) + predicates = append(predicates, entityhistory.DisplayNameContains(*i.DisplayNameContains)) } if i.DisplayNameHasPrefix != nil { - predicates = append(predicates, featurehistory.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + predicates = append(predicates, entityhistory.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) } if i.DisplayNameHasSuffix != nil { - predicates = append(predicates, featurehistory.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + predicates = append(predicates, entityhistory.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) } if i.DisplayNameIsNil { - predicates = append(predicates, featurehistory.DisplayNameIsNil()) + predicates = append(predicates, entityhistory.DisplayNameIsNil()) } if i.DisplayNameNotNil { - predicates = append(predicates, featurehistory.DisplayNameNotNil()) + predicates = append(predicates, entityhistory.DisplayNameNotNil()) } if i.DisplayNameEqualFold != nil { - predicates = append(predicates, featurehistory.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + predicates = append(predicates, entityhistory.DisplayNameEqualFold(*i.DisplayNameEqualFold)) } if i.DisplayNameContainsFold != nil { - predicates = append(predicates, featurehistory.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + predicates = append(predicates, entityhistory.DisplayNameContainsFold(*i.DisplayNameContainsFold)) } - if i.Enabled != nil { - predicates = append(predicates, featurehistory.EnabledEQ(*i.Enabled)) + if i.EntityTypeID != nil { + predicates = append(predicates, entityhistory.EntityTypeIDEQ(*i.EntityTypeID)) } - if i.EnabledNEQ != nil { - predicates = append(predicates, featurehistory.EnabledNEQ(*i.EnabledNEQ)) + if i.EntityTypeIDNEQ != nil { + predicates = append(predicates, entityhistory.EntityTypeIDNEQ(*i.EntityTypeIDNEQ)) } - if i.Description != nil { - predicates = append(predicates, featurehistory.DescriptionEQ(*i.Description)) + if len(i.EntityTypeIDIn) > 0 { + predicates = append(predicates, entityhistory.EntityTypeIDIn(i.EntityTypeIDIn...)) } - if i.DescriptionNEQ != nil { - predicates = append(predicates, featurehistory.DescriptionNEQ(*i.DescriptionNEQ)) + if len(i.EntityTypeIDNotIn) > 0 { + predicates = append(predicates, entityhistory.EntityTypeIDNotIn(i.EntityTypeIDNotIn...)) } - if len(i.DescriptionIn) > 0 { - predicates = append(predicates, featurehistory.DescriptionIn(i.DescriptionIn...)) + if i.EntityTypeIDGT != nil { + predicates = append(predicates, entityhistory.EntityTypeIDGT(*i.EntityTypeIDGT)) } - if len(i.DescriptionNotIn) > 0 { - predicates = append(predicates, featurehistory.DescriptionNotIn(i.DescriptionNotIn...)) + if i.EntityTypeIDGTE != nil { + predicates = append(predicates, entityhistory.EntityTypeIDGTE(*i.EntityTypeIDGTE)) } - if i.DescriptionGT != nil { - predicates = append(predicates, featurehistory.DescriptionGT(*i.DescriptionGT)) + if i.EntityTypeIDLT != nil { + predicates = append(predicates, entityhistory.EntityTypeIDLT(*i.EntityTypeIDLT)) } - if i.DescriptionGTE != nil { - predicates = append(predicates, featurehistory.DescriptionGTE(*i.DescriptionGTE)) + if i.EntityTypeIDLTE != nil { + predicates = append(predicates, entityhistory.EntityTypeIDLTE(*i.EntityTypeIDLTE)) } - if i.DescriptionLT != nil { - predicates = append(predicates, featurehistory.DescriptionLT(*i.DescriptionLT)) + if i.EntityTypeIDContains != nil { + predicates = append(predicates, entityhistory.EntityTypeIDContains(*i.EntityTypeIDContains)) } - if i.DescriptionLTE != nil { - predicates = append(predicates, featurehistory.DescriptionLTE(*i.DescriptionLTE)) + if i.EntityTypeIDHasPrefix != nil { + predicates = append(predicates, entityhistory.EntityTypeIDHasPrefix(*i.EntityTypeIDHasPrefix)) } - if i.DescriptionContains != nil { - predicates = append(predicates, featurehistory.DescriptionContains(*i.DescriptionContains)) + if i.EntityTypeIDHasSuffix != nil { + predicates = append(predicates, entityhistory.EntityTypeIDHasSuffix(*i.EntityTypeIDHasSuffix)) } - if i.DescriptionHasPrefix != nil { - predicates = append(predicates, featurehistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) + if i.EntityTypeIDIsNil { + predicates = append(predicates, entityhistory.EntityTypeIDIsNil()) } - if i.DescriptionHasSuffix != nil { - predicates = append(predicates, featurehistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) + if i.EntityTypeIDNotNil { + predicates = append(predicates, entityhistory.EntityTypeIDNotNil()) } - if i.DescriptionIsNil { - predicates = append(predicates, featurehistory.DescriptionIsNil()) + if i.EntityTypeIDEqualFold != nil { + predicates = append(predicates, entityhistory.EntityTypeIDEqualFold(*i.EntityTypeIDEqualFold)) } - if i.DescriptionNotNil { - predicates = append(predicates, featurehistory.DescriptionNotNil()) + if i.EntityTypeIDContainsFold != nil { + predicates = append(predicates, entityhistory.EntityTypeIDContainsFold(*i.EntityTypeIDContainsFold)) } - if i.DescriptionEqualFold != nil { - predicates = append(predicates, featurehistory.DescriptionEqualFold(*i.DescriptionEqualFold)) + if i.Status != nil { + predicates = append(predicates, entityhistory.StatusEQ(*i.Status)) } - if i.DescriptionContainsFold != nil { - predicates = append(predicates, featurehistory.DescriptionContainsFold(*i.DescriptionContainsFold)) + if i.StatusNEQ != nil { + predicates = append(predicates, entityhistory.StatusNEQ(*i.StatusNEQ)) + } + if len(i.StatusIn) > 0 { + predicates = append(predicates, entityhistory.StatusIn(i.StatusIn...)) + } + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, entityhistory.StatusNotIn(i.StatusNotIn...)) + } + if i.StatusGT != nil { + predicates = append(predicates, entityhistory.StatusGT(*i.StatusGT)) + } + if i.StatusGTE != nil { + predicates = append(predicates, entityhistory.StatusGTE(*i.StatusGTE)) + } + if i.StatusLT != nil { + predicates = append(predicates, entityhistory.StatusLT(*i.StatusLT)) + } + if i.StatusLTE != nil { + predicates = append(predicates, entityhistory.StatusLTE(*i.StatusLTE)) + } + if i.StatusContains != nil { + predicates = append(predicates, entityhistory.StatusContains(*i.StatusContains)) + } + if i.StatusHasPrefix != nil { + predicates = append(predicates, entityhistory.StatusHasPrefix(*i.StatusHasPrefix)) + } + if i.StatusHasSuffix != nil { + predicates = append(predicates, entityhistory.StatusHasSuffix(*i.StatusHasSuffix)) + } + if i.StatusIsNil { + predicates = append(predicates, entityhistory.StatusIsNil()) + } + if i.StatusNotNil { + predicates = append(predicates, entityhistory.StatusNotNil()) + } + if i.StatusEqualFold != nil { + predicates = append(predicates, entityhistory.StatusEqualFold(*i.StatusEqualFold)) + } + if i.StatusContainsFold != nil { + predicates = append(predicates, entityhistory.StatusContainsFold(*i.StatusContainsFold)) } switch len(predicates) { case 0: - return nil, ErrEmptyFeatureHistoryWhereInput + return nil, ErrEmptyEntityHistoryWhereInput case 1: return predicates[0], nil default: - return featurehistory.And(predicates...), nil + return entityhistory.And(predicates...), nil } } -// FileWhereInput represents a where input for filtering File queries. -type FileWhereInput struct { - Predicates []predicate.File `json:"-"` - Not *FileWhereInput `json:"not,omitempty"` - Or []*FileWhereInput `json:"or,omitempty"` - And []*FileWhereInput `json:"and,omitempty"` +// EntityTypeWhereInput represents a where input for filtering EntityType queries. +type EntityTypeWhereInput struct { + Predicates []predicate.EntityType `json:"-"` + Not *EntityTypeWhereInput `json:"not,omitempty"` + Or []*EntityTypeWhereInput `json:"or,omitempty"` + And []*EntityTypeWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -15195,265 +17483,60 @@ type FileWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "provided_file_name" field predicates. - ProvidedFileName *string `json:"providedFileName,omitempty"` - ProvidedFileNameNEQ *string `json:"providedFileNameNEQ,omitempty"` - ProvidedFileNameIn []string `json:"providedFileNameIn,omitempty"` - ProvidedFileNameNotIn []string `json:"providedFileNameNotIn,omitempty"` - ProvidedFileNameGT *string `json:"providedFileNameGT,omitempty"` - ProvidedFileNameGTE *string `json:"providedFileNameGTE,omitempty"` - ProvidedFileNameLT *string `json:"providedFileNameLT,omitempty"` - ProvidedFileNameLTE *string `json:"providedFileNameLTE,omitempty"` - ProvidedFileNameContains *string `json:"providedFileNameContains,omitempty"` - ProvidedFileNameHasPrefix *string `json:"providedFileNameHasPrefix,omitempty"` - ProvidedFileNameHasSuffix *string `json:"providedFileNameHasSuffix,omitempty"` - ProvidedFileNameEqualFold *string `json:"providedFileNameEqualFold,omitempty"` - ProvidedFileNameContainsFold *string `json:"providedFileNameContainsFold,omitempty"` - - // "provided_file_extension" field predicates. - ProvidedFileExtension *string `json:"providedFileExtension,omitempty"` - ProvidedFileExtensionNEQ *string `json:"providedFileExtensionNEQ,omitempty"` - ProvidedFileExtensionIn []string `json:"providedFileExtensionIn,omitempty"` - ProvidedFileExtensionNotIn []string `json:"providedFileExtensionNotIn,omitempty"` - ProvidedFileExtensionGT *string `json:"providedFileExtensionGT,omitempty"` - ProvidedFileExtensionGTE *string `json:"providedFileExtensionGTE,omitempty"` - ProvidedFileExtensionLT *string `json:"providedFileExtensionLT,omitempty"` - ProvidedFileExtensionLTE *string `json:"providedFileExtensionLTE,omitempty"` - ProvidedFileExtensionContains *string `json:"providedFileExtensionContains,omitempty"` - ProvidedFileExtensionHasPrefix *string `json:"providedFileExtensionHasPrefix,omitempty"` - ProvidedFileExtensionHasSuffix *string `json:"providedFileExtensionHasSuffix,omitempty"` - ProvidedFileExtensionEqualFold *string `json:"providedFileExtensionEqualFold,omitempty"` - ProvidedFileExtensionContainsFold *string `json:"providedFileExtensionContainsFold,omitempty"` - - // "provided_file_size" field predicates. - ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` - ProvidedFileSizeNEQ *int64 `json:"providedFileSizeNEQ,omitempty"` - ProvidedFileSizeIn []int64 `json:"providedFileSizeIn,omitempty"` - ProvidedFileSizeNotIn []int64 `json:"providedFileSizeNotIn,omitempty"` - ProvidedFileSizeGT *int64 `json:"providedFileSizeGT,omitempty"` - ProvidedFileSizeGTE *int64 `json:"providedFileSizeGTE,omitempty"` - ProvidedFileSizeLT *int64 `json:"providedFileSizeLT,omitempty"` - ProvidedFileSizeLTE *int64 `json:"providedFileSizeLTE,omitempty"` - ProvidedFileSizeIsNil bool `json:"providedFileSizeIsNil,omitempty"` - ProvidedFileSizeNotNil bool `json:"providedFileSizeNotNil,omitempty"` - - // "persisted_file_size" field predicates. - PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` - PersistedFileSizeNEQ *int64 `json:"persistedFileSizeNEQ,omitempty"` - PersistedFileSizeIn []int64 `json:"persistedFileSizeIn,omitempty"` - PersistedFileSizeNotIn []int64 `json:"persistedFileSizeNotIn,omitempty"` - PersistedFileSizeGT *int64 `json:"persistedFileSizeGT,omitempty"` - PersistedFileSizeGTE *int64 `json:"persistedFileSizeGTE,omitempty"` - PersistedFileSizeLT *int64 `json:"persistedFileSizeLT,omitempty"` - PersistedFileSizeLTE *int64 `json:"persistedFileSizeLTE,omitempty"` - PersistedFileSizeIsNil bool `json:"persistedFileSizeIsNil,omitempty"` - PersistedFileSizeNotNil bool `json:"persistedFileSizeNotNil,omitempty"` - - // "detected_mime_type" field predicates. - DetectedMimeType *string `json:"detectedMimeType,omitempty"` - DetectedMimeTypeNEQ *string `json:"detectedMimeTypeNEQ,omitempty"` - DetectedMimeTypeIn []string `json:"detectedMimeTypeIn,omitempty"` - DetectedMimeTypeNotIn []string `json:"detectedMimeTypeNotIn,omitempty"` - DetectedMimeTypeGT *string `json:"detectedMimeTypeGT,omitempty"` - DetectedMimeTypeGTE *string `json:"detectedMimeTypeGTE,omitempty"` - DetectedMimeTypeLT *string `json:"detectedMimeTypeLT,omitempty"` - DetectedMimeTypeLTE *string `json:"detectedMimeTypeLTE,omitempty"` - DetectedMimeTypeContains *string `json:"detectedMimeTypeContains,omitempty"` - DetectedMimeTypeHasPrefix *string `json:"detectedMimeTypeHasPrefix,omitempty"` - DetectedMimeTypeHasSuffix *string `json:"detectedMimeTypeHasSuffix,omitempty"` - DetectedMimeTypeIsNil bool `json:"detectedMimeTypeIsNil,omitempty"` - DetectedMimeTypeNotNil bool `json:"detectedMimeTypeNotNil,omitempty"` - DetectedMimeTypeEqualFold *string `json:"detectedMimeTypeEqualFold,omitempty"` - DetectedMimeTypeContainsFold *string `json:"detectedMimeTypeContainsFold,omitempty"` - - // "md5_hash" field predicates. - Md5Hash *string `json:"md5Hash,omitempty"` - Md5HashNEQ *string `json:"md5HashNEQ,omitempty"` - Md5HashIn []string `json:"md5HashIn,omitempty"` - Md5HashNotIn []string `json:"md5HashNotIn,omitempty"` - Md5HashGT *string `json:"md5HashGT,omitempty"` - Md5HashGTE *string `json:"md5HashGTE,omitempty"` - Md5HashLT *string `json:"md5HashLT,omitempty"` - Md5HashLTE *string `json:"md5HashLTE,omitempty"` - Md5HashContains *string `json:"md5HashContains,omitempty"` - Md5HashHasPrefix *string `json:"md5HashHasPrefix,omitempty"` - Md5HashHasSuffix *string `json:"md5HashHasSuffix,omitempty"` - Md5HashIsNil bool `json:"md5HashIsNil,omitempty"` - Md5HashNotNil bool `json:"md5HashNotNil,omitempty"` - Md5HashEqualFold *string `json:"md5HashEqualFold,omitempty"` - Md5HashContainsFold *string `json:"md5HashContainsFold,omitempty"` - - // "detected_content_type" field predicates. - DetectedContentType *string `json:"detectedContentType,omitempty"` - DetectedContentTypeNEQ *string `json:"detectedContentTypeNEQ,omitempty"` - DetectedContentTypeIn []string `json:"detectedContentTypeIn,omitempty"` - DetectedContentTypeNotIn []string `json:"detectedContentTypeNotIn,omitempty"` - DetectedContentTypeGT *string `json:"detectedContentTypeGT,omitempty"` - DetectedContentTypeGTE *string `json:"detectedContentTypeGTE,omitempty"` - DetectedContentTypeLT *string `json:"detectedContentTypeLT,omitempty"` - DetectedContentTypeLTE *string `json:"detectedContentTypeLTE,omitempty"` - DetectedContentTypeContains *string `json:"detectedContentTypeContains,omitempty"` - DetectedContentTypeHasPrefix *string `json:"detectedContentTypeHasPrefix,omitempty"` - DetectedContentTypeHasSuffix *string `json:"detectedContentTypeHasSuffix,omitempty"` - DetectedContentTypeEqualFold *string `json:"detectedContentTypeEqualFold,omitempty"` - DetectedContentTypeContainsFold *string `json:"detectedContentTypeContainsFold,omitempty"` - - // "store_key" field predicates. - StoreKey *string `json:"storeKey,omitempty"` - StoreKeyNEQ *string `json:"storeKeyNEQ,omitempty"` - StoreKeyIn []string `json:"storeKeyIn,omitempty"` - StoreKeyNotIn []string `json:"storeKeyNotIn,omitempty"` - StoreKeyGT *string `json:"storeKeyGT,omitempty"` - StoreKeyGTE *string `json:"storeKeyGTE,omitempty"` - StoreKeyLT *string `json:"storeKeyLT,omitempty"` - StoreKeyLTE *string `json:"storeKeyLTE,omitempty"` - StoreKeyContains *string `json:"storeKeyContains,omitempty"` - StoreKeyHasPrefix *string `json:"storeKeyHasPrefix,omitempty"` - StoreKeyHasSuffix *string `json:"storeKeyHasSuffix,omitempty"` - StoreKeyIsNil bool `json:"storeKeyIsNil,omitempty"` - StoreKeyNotNil bool `json:"storeKeyNotNil,omitempty"` - StoreKeyEqualFold *string `json:"storeKeyEqualFold,omitempty"` - StoreKeyContainsFold *string `json:"storeKeyContainsFold,omitempty"` - - // "category_type" field predicates. - CategoryType *string `json:"categoryType,omitempty"` - CategoryTypeNEQ *string `json:"categoryTypeNEQ,omitempty"` - CategoryTypeIn []string `json:"categoryTypeIn,omitempty"` - CategoryTypeNotIn []string `json:"categoryTypeNotIn,omitempty"` - CategoryTypeGT *string `json:"categoryTypeGT,omitempty"` - CategoryTypeGTE *string `json:"categoryTypeGTE,omitempty"` - CategoryTypeLT *string `json:"categoryTypeLT,omitempty"` - CategoryTypeLTE *string `json:"categoryTypeLTE,omitempty"` - CategoryTypeContains *string `json:"categoryTypeContains,omitempty"` - CategoryTypeHasPrefix *string `json:"categoryTypeHasPrefix,omitempty"` - CategoryTypeHasSuffix *string `json:"categoryTypeHasSuffix,omitempty"` - CategoryTypeIsNil bool `json:"categoryTypeIsNil,omitempty"` - CategoryTypeNotNil bool `json:"categoryTypeNotNil,omitempty"` - CategoryTypeEqualFold *string `json:"categoryTypeEqualFold,omitempty"` - CategoryTypeContainsFold *string `json:"categoryTypeContainsFold,omitempty"` - - // "uri" field predicates. - URI *string `json:"uri,omitempty"` - URINEQ *string `json:"uriNEQ,omitempty"` - URIIn []string `json:"uriIn,omitempty"` - URINotIn []string `json:"uriNotIn,omitempty"` - URIGT *string `json:"uriGT,omitempty"` - URIGTE *string `json:"uriGTE,omitempty"` - URILT *string `json:"uriLT,omitempty"` - URILTE *string `json:"uriLTE,omitempty"` - URIContains *string `json:"uriContains,omitempty"` - URIHasPrefix *string `json:"uriHasPrefix,omitempty"` - URIHasSuffix *string `json:"uriHasSuffix,omitempty"` - URIIsNil bool `json:"uriIsNil,omitempty"` - URINotNil bool `json:"uriNotNil,omitempty"` - URIEqualFold *string `json:"uriEqualFold,omitempty"` - URIContainsFold *string `json:"uriContainsFold,omitempty"` - - // "storage_scheme" field predicates. - StorageScheme *string `json:"storageScheme,omitempty"` - StorageSchemeNEQ *string `json:"storageSchemeNEQ,omitempty"` - StorageSchemeIn []string `json:"storageSchemeIn,omitempty"` - StorageSchemeNotIn []string `json:"storageSchemeNotIn,omitempty"` - StorageSchemeGT *string `json:"storageSchemeGT,omitempty"` - StorageSchemeGTE *string `json:"storageSchemeGTE,omitempty"` - StorageSchemeLT *string `json:"storageSchemeLT,omitempty"` - StorageSchemeLTE *string `json:"storageSchemeLTE,omitempty"` - StorageSchemeContains *string `json:"storageSchemeContains,omitempty"` - StorageSchemeHasPrefix *string `json:"storageSchemeHasPrefix,omitempty"` - StorageSchemeHasSuffix *string `json:"storageSchemeHasSuffix,omitempty"` - StorageSchemeIsNil bool `json:"storageSchemeIsNil,omitempty"` - StorageSchemeNotNil bool `json:"storageSchemeNotNil,omitempty"` - StorageSchemeEqualFold *string `json:"storageSchemeEqualFold,omitempty"` - StorageSchemeContainsFold *string `json:"storageSchemeContainsFold,omitempty"` - - // "storage_volume" field predicates. - StorageVolume *string `json:"storageVolume,omitempty"` - StorageVolumeNEQ *string `json:"storageVolumeNEQ,omitempty"` - StorageVolumeIn []string `json:"storageVolumeIn,omitempty"` - StorageVolumeNotIn []string `json:"storageVolumeNotIn,omitempty"` - StorageVolumeGT *string `json:"storageVolumeGT,omitempty"` - StorageVolumeGTE *string `json:"storageVolumeGTE,omitempty"` - StorageVolumeLT *string `json:"storageVolumeLT,omitempty"` - StorageVolumeLTE *string `json:"storageVolumeLTE,omitempty"` - StorageVolumeContains *string `json:"storageVolumeContains,omitempty"` - StorageVolumeHasPrefix *string `json:"storageVolumeHasPrefix,omitempty"` - StorageVolumeHasSuffix *string `json:"storageVolumeHasSuffix,omitempty"` - StorageVolumeIsNil bool `json:"storageVolumeIsNil,omitempty"` - StorageVolumeNotNil bool `json:"storageVolumeNotNil,omitempty"` - StorageVolumeEqualFold *string `json:"storageVolumeEqualFold,omitempty"` - StorageVolumeContainsFold *string `json:"storageVolumeContainsFold,omitempty"` - - // "storage_path" field predicates. - StoragePath *string `json:"storagePath,omitempty"` - StoragePathNEQ *string `json:"storagePathNEQ,omitempty"` - StoragePathIn []string `json:"storagePathIn,omitempty"` - StoragePathNotIn []string `json:"storagePathNotIn,omitempty"` - StoragePathGT *string `json:"storagePathGT,omitempty"` - StoragePathGTE *string `json:"storagePathGTE,omitempty"` - StoragePathLT *string `json:"storagePathLT,omitempty"` - StoragePathLTE *string `json:"storagePathLTE,omitempty"` - StoragePathContains *string `json:"storagePathContains,omitempty"` - StoragePathHasPrefix *string `json:"storagePathHasPrefix,omitempty"` - StoragePathHasSuffix *string `json:"storagePathHasSuffix,omitempty"` - StoragePathIsNil bool `json:"storagePathIsNil,omitempty"` - StoragePathNotNil bool `json:"storagePathNotNil,omitempty"` - StoragePathEqualFold *string `json:"storagePathEqualFold,omitempty"` - StoragePathContainsFold *string `json:"storagePathContainsFold,omitempty"` - - // "user" edge predicates. - HasUser *bool `json:"hasUser,omitempty"` - HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` - - // "organization" edge predicates. - HasOrganization *bool `json:"hasOrganization,omitempty"` - HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` - - // "group" edge predicates. - HasGroup *bool `json:"hasGroup,omitempty"` - HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` - - // "contact" edge predicates. - HasContact *bool `json:"hasContact,omitempty"` - HasContactWith []*ContactWhereInput `json:"hasContactWith,omitempty"` - - // "entity" edge predicates. - HasEntity *bool `json:"hasEntity,omitempty"` - HasEntityWith []*EntityWhereInput `json:"hasEntityWith,omitempty"` - - // "usersetting" edge predicates. - HasUsersetting *bool `json:"hasUsersetting,omitempty"` - HasUsersettingWith []*UserSettingWhereInput `json:"hasUsersettingWith,omitempty"` - - // "organizationsetting" edge predicates. - HasOrganizationsetting *bool `json:"hasOrganizationsetting,omitempty"` - HasOrganizationsettingWith []*OrganizationSettingWhereInput `json:"hasOrganizationsettingWith,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` - // "template" edge predicates. - HasTemplate *bool `json:"hasTemplate,omitempty"` - HasTemplateWith []*TemplateWhereInput `json:"hasTemplateWith,omitempty"` + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "documentdata" edge predicates. - HasDocumentdata *bool `json:"hasDocumentdata,omitempty"` - HasDocumentdataWith []*DocumentDataWhereInput `json:"hasDocumentdataWith,omitempty"` + // "owner" edge predicates. + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // "events" edge predicates. - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // "entities" edge predicates. + HasEntities *bool `json:"hasEntities,omitempty"` + HasEntitiesWith []*EntityWhereInput `json:"hasEntitiesWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *FileWhereInput) AddPredicates(predicates ...predicate.File) { +func (i *EntityTypeWhereInput) AddPredicates(predicates ...predicate.EntityType) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the FileWhereInput filter on the FileQuery builder. -func (i *FileWhereInput) Filter(q *FileQuery) (*FileQuery, error) { +// Filter applies the EntityTypeWhereInput filter on the EntityTypeQuery builder. +func (i *EntityTypeWhereInput) Filter(q *EntityTypeQuery) (*EntityTypeQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyFileWhereInput { + if err == ErrEmptyEntityTypeWhereInput { return q, nil } return nil, err @@ -15461,19 +17544,19 @@ func (i *FileWhereInput) Filter(q *FileQuery) (*FileQuery, error) { return q.Where(p), nil } -// ErrEmptyFileWhereInput is returned in case the FileWhereInput is empty. -var ErrEmptyFileWhereInput = errors.New("generated: empty predicate FileWhereInput") +// ErrEmptyEntityTypeWhereInput is returned in case the EntityTypeWhereInput is empty. +var ErrEmptyEntityTypeWhereInput = errors.New("generated: empty predicate EntityTypeWhereInput") -// P returns a predicate for filtering files. +// P returns a predicate for filtering entitytypes. // An error is returned if the input is empty or invalid. -func (i *FileWhereInput) P() (predicate.File, error) { - var predicates []predicate.File +func (i *EntityTypeWhereInput) P() (predicate.EntityType, error) { + var predicates []predicate.EntityType if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, file.Not(p)) + predicates = append(predicates, entitytype.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -15483,7 +17566,7 @@ func (i *FileWhereInput) P() (predicate.File, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.File, 0, n) + or := make([]predicate.EntityType, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -15491,7 +17574,7 @@ func (i *FileWhereInput) P() (predicate.File, error) { } or = append(or, p) } - predicates = append(predicates, file.Or(or...)) + predicates = append(predicates, entitytype.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -15501,7 +17584,7 @@ func (i *FileWhereInput) P() (predicate.File, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.File, 0, n) + and := make([]predicate.EntityType, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -15509,998 +17592,1075 @@ func (i *FileWhereInput) P() (predicate.File, error) { } and = append(and, p) } - predicates = append(predicates, file.And(and...)) + predicates = append(predicates, entitytype.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, file.IDEQ(*i.ID)) + predicates = append(predicates, entitytype.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, file.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, entitytype.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, file.IDIn(i.IDIn...)) + predicates = append(predicates, entitytype.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, file.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, entitytype.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, file.IDGT(*i.IDGT)) + predicates = append(predicates, entitytype.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, file.IDGTE(*i.IDGTE)) + predicates = append(predicates, entitytype.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, file.IDLT(*i.IDLT)) + predicates = append(predicates, entitytype.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, file.IDLTE(*i.IDLTE)) + predicates = append(predicates, entitytype.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, file.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, entitytype.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, file.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, entitytype.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, file.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, entitytype.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, file.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, entitytype.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, file.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, entitytype.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, file.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, entitytype.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, file.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, entitytype.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, file.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, entitytype.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, file.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, entitytype.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, file.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, entitytype.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, file.CreatedAtIsNil()) + predicates = append(predicates, entitytype.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, file.CreatedAtNotNil()) + predicates = append(predicates, entitytype.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, file.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, entitytype.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, file.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, entitytype.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, file.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, entitytype.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, file.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, entitytype.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, file.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, entitytype.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, file.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, entitytype.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, file.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, entitytype.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, file.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, entitytype.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, file.UpdatedAtIsNil()) + predicates = append(predicates, entitytype.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, file.UpdatedAtNotNil()) + predicates = append(predicates, entitytype.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, file.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, entitytype.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, file.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, entitytype.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, file.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, entitytype.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, file.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, entitytype.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, file.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, entitytype.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, file.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, entitytype.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, file.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, entitytype.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, file.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, entitytype.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, file.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, entitytype.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, file.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, entitytype.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, file.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, entitytype.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, file.CreatedByIsNil()) + predicates = append(predicates, entitytype.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, file.CreatedByNotNil()) + predicates = append(predicates, entitytype.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, file.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, entitytype.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, file.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, entitytype.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, file.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, entitytype.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, file.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, entitytype.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, file.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, entitytype.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, file.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, entitytype.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, file.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, entitytype.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, file.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, entitytype.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, file.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, entitytype.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, file.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, entitytype.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, file.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, entitytype.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, file.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, entitytype.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, file.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, entitytype.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, file.UpdatedByIsNil()) + predicates = append(predicates, entitytype.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, file.UpdatedByNotNil()) + predicates = append(predicates, entitytype.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, file.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, entitytype.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, file.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, entitytype.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, file.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, entitytype.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, file.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, entitytype.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, file.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, entitytype.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, file.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, entitytype.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, file.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, entitytype.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, file.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, entitytype.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, file.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, entitytype.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, file.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, entitytype.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, file.DeletedAtIsNil()) + predicates = append(predicates, entitytype.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, file.DeletedAtNotNil()) + predicates = append(predicates, entitytype.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, file.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, entitytype.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, file.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, entitytype.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, file.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, entitytype.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, file.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, entitytype.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, file.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, entitytype.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, file.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, entitytype.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, file.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, entitytype.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, file.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, entitytype.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, file.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, entitytype.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, file.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, entitytype.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, file.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, entitytype.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, file.DeletedByIsNil()) + predicates = append(predicates, entitytype.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, file.DeletedByNotNil()) + predicates = append(predicates, entitytype.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, file.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, entitytype.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, file.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, entitytype.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.ProvidedFileName != nil { - predicates = append(predicates, file.ProvidedFileNameEQ(*i.ProvidedFileName)) + if i.OwnerID != nil { + predicates = append(predicates, entitytype.OwnerIDEQ(*i.OwnerID)) } - if i.ProvidedFileNameNEQ != nil { - predicates = append(predicates, file.ProvidedFileNameNEQ(*i.ProvidedFileNameNEQ)) + if i.OwnerIDNEQ != nil { + predicates = append(predicates, entitytype.OwnerIDNEQ(*i.OwnerIDNEQ)) } - if len(i.ProvidedFileNameIn) > 0 { - predicates = append(predicates, file.ProvidedFileNameIn(i.ProvidedFileNameIn...)) + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, entitytype.OwnerIDIn(i.OwnerIDIn...)) } - if len(i.ProvidedFileNameNotIn) > 0 { - predicates = append(predicates, file.ProvidedFileNameNotIn(i.ProvidedFileNameNotIn...)) + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, entitytype.OwnerIDNotIn(i.OwnerIDNotIn...)) } - if i.ProvidedFileNameGT != nil { - predicates = append(predicates, file.ProvidedFileNameGT(*i.ProvidedFileNameGT)) + if i.OwnerIDGT != nil { + predicates = append(predicates, entitytype.OwnerIDGT(*i.OwnerIDGT)) } - if i.ProvidedFileNameGTE != nil { - predicates = append(predicates, file.ProvidedFileNameGTE(*i.ProvidedFileNameGTE)) + if i.OwnerIDGTE != nil { + predicates = append(predicates, entitytype.OwnerIDGTE(*i.OwnerIDGTE)) } - if i.ProvidedFileNameLT != nil { - predicates = append(predicates, file.ProvidedFileNameLT(*i.ProvidedFileNameLT)) + if i.OwnerIDLT != nil { + predicates = append(predicates, entitytype.OwnerIDLT(*i.OwnerIDLT)) } - if i.ProvidedFileNameLTE != nil { - predicates = append(predicates, file.ProvidedFileNameLTE(*i.ProvidedFileNameLTE)) + if i.OwnerIDLTE != nil { + predicates = append(predicates, entitytype.OwnerIDLTE(*i.OwnerIDLTE)) } - if i.ProvidedFileNameContains != nil { - predicates = append(predicates, file.ProvidedFileNameContains(*i.ProvidedFileNameContains)) + if i.OwnerIDContains != nil { + predicates = append(predicates, entitytype.OwnerIDContains(*i.OwnerIDContains)) } - if i.ProvidedFileNameHasPrefix != nil { - predicates = append(predicates, file.ProvidedFileNameHasPrefix(*i.ProvidedFileNameHasPrefix)) + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, entitytype.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } - if i.ProvidedFileNameHasSuffix != nil { - predicates = append(predicates, file.ProvidedFileNameHasSuffix(*i.ProvidedFileNameHasSuffix)) + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, entitytype.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } - if i.ProvidedFileNameEqualFold != nil { - predicates = append(predicates, file.ProvidedFileNameEqualFold(*i.ProvidedFileNameEqualFold)) + if i.OwnerIDIsNil { + predicates = append(predicates, entitytype.OwnerIDIsNil()) } - if i.ProvidedFileNameContainsFold != nil { - predicates = append(predicates, file.ProvidedFileNameContainsFold(*i.ProvidedFileNameContainsFold)) + if i.OwnerIDNotNil { + predicates = append(predicates, entitytype.OwnerIDNotNil()) } - if i.ProvidedFileExtension != nil { - predicates = append(predicates, file.ProvidedFileExtensionEQ(*i.ProvidedFileExtension)) + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, entitytype.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } - if i.ProvidedFileExtensionNEQ != nil { - predicates = append(predicates, file.ProvidedFileExtensionNEQ(*i.ProvidedFileExtensionNEQ)) + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, entitytype.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if len(i.ProvidedFileExtensionIn) > 0 { - predicates = append(predicates, file.ProvidedFileExtensionIn(i.ProvidedFileExtensionIn...)) + if i.Name != nil { + predicates = append(predicates, entitytype.NameEQ(*i.Name)) } - if len(i.ProvidedFileExtensionNotIn) > 0 { - predicates = append(predicates, file.ProvidedFileExtensionNotIn(i.ProvidedFileExtensionNotIn...)) + if i.NameNEQ != nil { + predicates = append(predicates, entitytype.NameNEQ(*i.NameNEQ)) } - if i.ProvidedFileExtensionGT != nil { - predicates = append(predicates, file.ProvidedFileExtensionGT(*i.ProvidedFileExtensionGT)) + if len(i.NameIn) > 0 { + predicates = append(predicates, entitytype.NameIn(i.NameIn...)) } - if i.ProvidedFileExtensionGTE != nil { - predicates = append(predicates, file.ProvidedFileExtensionGTE(*i.ProvidedFileExtensionGTE)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, entitytype.NameNotIn(i.NameNotIn...)) } - if i.ProvidedFileExtensionLT != nil { - predicates = append(predicates, file.ProvidedFileExtensionLT(*i.ProvidedFileExtensionLT)) + if i.NameGT != nil { + predicates = append(predicates, entitytype.NameGT(*i.NameGT)) } - if i.ProvidedFileExtensionLTE != nil { - predicates = append(predicates, file.ProvidedFileExtensionLTE(*i.ProvidedFileExtensionLTE)) + if i.NameGTE != nil { + predicates = append(predicates, entitytype.NameGTE(*i.NameGTE)) } - if i.ProvidedFileExtensionContains != nil { - predicates = append(predicates, file.ProvidedFileExtensionContains(*i.ProvidedFileExtensionContains)) + if i.NameLT != nil { + predicates = append(predicates, entitytype.NameLT(*i.NameLT)) } - if i.ProvidedFileExtensionHasPrefix != nil { - predicates = append(predicates, file.ProvidedFileExtensionHasPrefix(*i.ProvidedFileExtensionHasPrefix)) + if i.NameLTE != nil { + predicates = append(predicates, entitytype.NameLTE(*i.NameLTE)) } - if i.ProvidedFileExtensionHasSuffix != nil { - predicates = append(predicates, file.ProvidedFileExtensionHasSuffix(*i.ProvidedFileExtensionHasSuffix)) + if i.NameContains != nil { + predicates = append(predicates, entitytype.NameContains(*i.NameContains)) } - if i.ProvidedFileExtensionEqualFold != nil { - predicates = append(predicates, file.ProvidedFileExtensionEqualFold(*i.ProvidedFileExtensionEqualFold)) + if i.NameHasPrefix != nil { + predicates = append(predicates, entitytype.NameHasPrefix(*i.NameHasPrefix)) } - if i.ProvidedFileExtensionContainsFold != nil { - predicates = append(predicates, file.ProvidedFileExtensionContainsFold(*i.ProvidedFileExtensionContainsFold)) + if i.NameHasSuffix != nil { + predicates = append(predicates, entitytype.NameHasSuffix(*i.NameHasSuffix)) } - if i.ProvidedFileSize != nil { - predicates = append(predicates, file.ProvidedFileSizeEQ(*i.ProvidedFileSize)) + if i.NameEqualFold != nil { + predicates = append(predicates, entitytype.NameEqualFold(*i.NameEqualFold)) } - if i.ProvidedFileSizeNEQ != nil { - predicates = append(predicates, file.ProvidedFileSizeNEQ(*i.ProvidedFileSizeNEQ)) + if i.NameContainsFold != nil { + predicates = append(predicates, entitytype.NameContainsFold(*i.NameContainsFold)) } - if len(i.ProvidedFileSizeIn) > 0 { - predicates = append(predicates, file.ProvidedFileSizeIn(i.ProvidedFileSizeIn...)) + + if i.HasOwner != nil { + p := entitytype.HasOwner() + if !*i.HasOwner { + p = entitytype.Not(p) + } + predicates = append(predicates, p) } - if len(i.ProvidedFileSizeNotIn) > 0 { - predicates = append(predicates, file.ProvidedFileSizeNotIn(i.ProvidedFileSizeNotIn...)) + if len(i.HasOwnerWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) + 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, entitytype.HasOwnerWith(with...)) } - if i.ProvidedFileSizeGT != nil { - predicates = append(predicates, file.ProvidedFileSizeGT(*i.ProvidedFileSizeGT)) + if i.HasEntities != nil { + p := entitytype.HasEntities() + if !*i.HasEntities { + p = entitytype.Not(p) + } + predicates = append(predicates, p) } - if i.ProvidedFileSizeGTE != nil { - predicates = append(predicates, file.ProvidedFileSizeGTE(*i.ProvidedFileSizeGTE)) + if len(i.HasEntitiesWith) > 0 { + with := make([]predicate.Entity, 0, len(i.HasEntitiesWith)) + for _, w := range i.HasEntitiesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntitiesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, entitytype.HasEntitiesWith(with...)) } - if i.ProvidedFileSizeLT != nil { - predicates = append(predicates, file.ProvidedFileSizeLT(*i.ProvidedFileSizeLT)) + switch len(predicates) { + case 0: + return nil, ErrEmptyEntityTypeWhereInput + case 1: + return predicates[0], nil + default: + return entitytype.And(predicates...), nil } - if i.ProvidedFileSizeLTE != nil { - predicates = append(predicates, file.ProvidedFileSizeLTE(*i.ProvidedFileSizeLTE)) +} + +// EntityTypeHistoryWhereInput represents a where input for filtering EntityTypeHistory queries. +type EntityTypeHistoryWhereInput struct { + Predicates []predicate.EntityTypeHistory `json:"-"` + Not *EntityTypeHistoryWhereInput `json:"not,omitempty"` + Or []*EntityTypeHistoryWhereInput `json:"or,omitempty"` + And []*EntityTypeHistoryWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *EntityTypeHistoryWhereInput) AddPredicates(predicates ...predicate.EntityTypeHistory) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the EntityTypeHistoryWhereInput filter on the EntityTypeHistoryQuery builder. +func (i *EntityTypeHistoryWhereInput) Filter(q *EntityTypeHistoryQuery) (*EntityTypeHistoryQuery, error) { + if i == nil { + return q, nil } - if i.ProvidedFileSizeIsNil { - predicates = append(predicates, file.ProvidedFileSizeIsNil()) + p, err := i.P() + if err != nil { + if err == ErrEmptyEntityTypeHistoryWhereInput { + return q, nil + } + return nil, err } - if i.ProvidedFileSizeNotNil { - predicates = append(predicates, file.ProvidedFileSizeNotNil()) + return q.Where(p), nil +} + +// ErrEmptyEntityTypeHistoryWhereInput is returned in case the EntityTypeHistoryWhereInput is empty. +var ErrEmptyEntityTypeHistoryWhereInput = errors.New("generated: empty predicate EntityTypeHistoryWhereInput") + +// P returns a predicate for filtering entitytypehistories. +// An error is returned if the input is empty or invalid. +func (i *EntityTypeHistoryWhereInput) P() (predicate.EntityTypeHistory, error) { + var predicates []predicate.EntityTypeHistory + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, entitytypehistory.Not(p)) } - if i.PersistedFileSize != nil { - predicates = append(predicates, file.PersistedFileSizeEQ(*i.PersistedFileSize)) + 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.EntityTypeHistory, 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, entitytypehistory.Or(or...)) } - if i.PersistedFileSizeNEQ != nil { - predicates = append(predicates, file.PersistedFileSizeNEQ(*i.PersistedFileSizeNEQ)) + 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.EntityTypeHistory, 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, entitytypehistory.And(and...)) } - if len(i.PersistedFileSizeIn) > 0 { - predicates = append(predicates, file.PersistedFileSizeIn(i.PersistedFileSizeIn...)) + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, entitytypehistory.IDEQ(*i.ID)) } - if len(i.PersistedFileSizeNotIn) > 0 { - predicates = append(predicates, file.PersistedFileSizeNotIn(i.PersistedFileSizeNotIn...)) + if i.IDNEQ != nil { + predicates = append(predicates, entitytypehistory.IDNEQ(*i.IDNEQ)) } - if i.PersistedFileSizeGT != nil { - predicates = append(predicates, file.PersistedFileSizeGT(*i.PersistedFileSizeGT)) + if len(i.IDIn) > 0 { + predicates = append(predicates, entitytypehistory.IDIn(i.IDIn...)) } - if i.PersistedFileSizeGTE != nil { - predicates = append(predicates, file.PersistedFileSizeGTE(*i.PersistedFileSizeGTE)) + if len(i.IDNotIn) > 0 { + predicates = append(predicates, entitytypehistory.IDNotIn(i.IDNotIn...)) } - if i.PersistedFileSizeLT != nil { - predicates = append(predicates, file.PersistedFileSizeLT(*i.PersistedFileSizeLT)) + if i.IDGT != nil { + predicates = append(predicates, entitytypehistory.IDGT(*i.IDGT)) } - if i.PersistedFileSizeLTE != nil { - predicates = append(predicates, file.PersistedFileSizeLTE(*i.PersistedFileSizeLTE)) + if i.IDGTE != nil { + predicates = append(predicates, entitytypehistory.IDGTE(*i.IDGTE)) } - if i.PersistedFileSizeIsNil { - predicates = append(predicates, file.PersistedFileSizeIsNil()) + if i.IDLT != nil { + predicates = append(predicates, entitytypehistory.IDLT(*i.IDLT)) } - if i.PersistedFileSizeNotNil { - predicates = append(predicates, file.PersistedFileSizeNotNil()) + if i.IDLTE != nil { + predicates = append(predicates, entitytypehistory.IDLTE(*i.IDLTE)) } - if i.DetectedMimeType != nil { - predicates = append(predicates, file.DetectedMimeTypeEQ(*i.DetectedMimeType)) + if i.IDEqualFold != nil { + predicates = append(predicates, entitytypehistory.IDEqualFold(*i.IDEqualFold)) } - if i.DetectedMimeTypeNEQ != nil { - predicates = append(predicates, file.DetectedMimeTypeNEQ(*i.DetectedMimeTypeNEQ)) + if i.IDContainsFold != nil { + predicates = append(predicates, entitytypehistory.IDContainsFold(*i.IDContainsFold)) } - if len(i.DetectedMimeTypeIn) > 0 { - predicates = append(predicates, file.DetectedMimeTypeIn(i.DetectedMimeTypeIn...)) + if i.HistoryTime != nil { + predicates = append(predicates, entitytypehistory.HistoryTimeEQ(*i.HistoryTime)) } - if len(i.DetectedMimeTypeNotIn) > 0 { - predicates = append(predicates, file.DetectedMimeTypeNotIn(i.DetectedMimeTypeNotIn...)) + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, entitytypehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) } - if i.DetectedMimeTypeGT != nil { - predicates = append(predicates, file.DetectedMimeTypeGT(*i.DetectedMimeTypeGT)) + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, entitytypehistory.HistoryTimeIn(i.HistoryTimeIn...)) } - if i.DetectedMimeTypeGTE != nil { - predicates = append(predicates, file.DetectedMimeTypeGTE(*i.DetectedMimeTypeGTE)) + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, entitytypehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) } - if i.DetectedMimeTypeLT != nil { - predicates = append(predicates, file.DetectedMimeTypeLT(*i.DetectedMimeTypeLT)) + if i.HistoryTimeGT != nil { + predicates = append(predicates, entitytypehistory.HistoryTimeGT(*i.HistoryTimeGT)) } - if i.DetectedMimeTypeLTE != nil { - predicates = append(predicates, file.DetectedMimeTypeLTE(*i.DetectedMimeTypeLTE)) + if i.HistoryTimeGTE != nil { + predicates = append(predicates, entitytypehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) } - if i.DetectedMimeTypeContains != nil { - predicates = append(predicates, file.DetectedMimeTypeContains(*i.DetectedMimeTypeContains)) + if i.HistoryTimeLT != nil { + predicates = append(predicates, entitytypehistory.HistoryTimeLT(*i.HistoryTimeLT)) } - if i.DetectedMimeTypeHasPrefix != nil { - predicates = append(predicates, file.DetectedMimeTypeHasPrefix(*i.DetectedMimeTypeHasPrefix)) + if i.HistoryTimeLTE != nil { + predicates = append(predicates, entitytypehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) } - if i.DetectedMimeTypeHasSuffix != nil { - predicates = append(predicates, file.DetectedMimeTypeHasSuffix(*i.DetectedMimeTypeHasSuffix)) - } - if i.DetectedMimeTypeIsNil { - predicates = append(predicates, file.DetectedMimeTypeIsNil()) + if i.Ref != nil { + predicates = append(predicates, entitytypehistory.RefEQ(*i.Ref)) } - if i.DetectedMimeTypeNotNil { - predicates = append(predicates, file.DetectedMimeTypeNotNil()) + if i.RefNEQ != nil { + predicates = append(predicates, entitytypehistory.RefNEQ(*i.RefNEQ)) } - if i.DetectedMimeTypeEqualFold != nil { - predicates = append(predicates, file.DetectedMimeTypeEqualFold(*i.DetectedMimeTypeEqualFold)) + if len(i.RefIn) > 0 { + predicates = append(predicates, entitytypehistory.RefIn(i.RefIn...)) } - if i.DetectedMimeTypeContainsFold != nil { - predicates = append(predicates, file.DetectedMimeTypeContainsFold(*i.DetectedMimeTypeContainsFold)) + if len(i.RefNotIn) > 0 { + predicates = append(predicates, entitytypehistory.RefNotIn(i.RefNotIn...)) } - if i.Md5Hash != nil { - predicates = append(predicates, file.Md5HashEQ(*i.Md5Hash)) + if i.RefGT != nil { + predicates = append(predicates, entitytypehistory.RefGT(*i.RefGT)) } - if i.Md5HashNEQ != nil { - predicates = append(predicates, file.Md5HashNEQ(*i.Md5HashNEQ)) + if i.RefGTE != nil { + predicates = append(predicates, entitytypehistory.RefGTE(*i.RefGTE)) } - if len(i.Md5HashIn) > 0 { - predicates = append(predicates, file.Md5HashIn(i.Md5HashIn...)) + if i.RefLT != nil { + predicates = append(predicates, entitytypehistory.RefLT(*i.RefLT)) } - if len(i.Md5HashNotIn) > 0 { - predicates = append(predicates, file.Md5HashNotIn(i.Md5HashNotIn...)) + if i.RefLTE != nil { + predicates = append(predicates, entitytypehistory.RefLTE(*i.RefLTE)) } - if i.Md5HashGT != nil { - predicates = append(predicates, file.Md5HashGT(*i.Md5HashGT)) + if i.RefContains != nil { + predicates = append(predicates, entitytypehistory.RefContains(*i.RefContains)) } - if i.Md5HashGTE != nil { - predicates = append(predicates, file.Md5HashGTE(*i.Md5HashGTE)) + if i.RefHasPrefix != nil { + predicates = append(predicates, entitytypehistory.RefHasPrefix(*i.RefHasPrefix)) } - if i.Md5HashLT != nil { - predicates = append(predicates, file.Md5HashLT(*i.Md5HashLT)) + if i.RefHasSuffix != nil { + predicates = append(predicates, entitytypehistory.RefHasSuffix(*i.RefHasSuffix)) } - if i.Md5HashLTE != nil { - predicates = append(predicates, file.Md5HashLTE(*i.Md5HashLTE)) + if i.RefIsNil { + predicates = append(predicates, entitytypehistory.RefIsNil()) } - if i.Md5HashContains != nil { - predicates = append(predicates, file.Md5HashContains(*i.Md5HashContains)) + if i.RefNotNil { + predicates = append(predicates, entitytypehistory.RefNotNil()) } - if i.Md5HashHasPrefix != nil { - predicates = append(predicates, file.Md5HashHasPrefix(*i.Md5HashHasPrefix)) + if i.RefEqualFold != nil { + predicates = append(predicates, entitytypehistory.RefEqualFold(*i.RefEqualFold)) } - if i.Md5HashHasSuffix != nil { - predicates = append(predicates, file.Md5HashHasSuffix(*i.Md5HashHasSuffix)) + if i.RefContainsFold != nil { + predicates = append(predicates, entitytypehistory.RefContainsFold(*i.RefContainsFold)) } - if i.Md5HashIsNil { - predicates = append(predicates, file.Md5HashIsNil()) + if i.Operation != nil { + predicates = append(predicates, entitytypehistory.OperationEQ(*i.Operation)) } - if i.Md5HashNotNil { - predicates = append(predicates, file.Md5HashNotNil()) + if i.OperationNEQ != nil { + predicates = append(predicates, entitytypehistory.OperationNEQ(*i.OperationNEQ)) } - if i.Md5HashEqualFold != nil { - predicates = append(predicates, file.Md5HashEqualFold(*i.Md5HashEqualFold)) + if len(i.OperationIn) > 0 { + predicates = append(predicates, entitytypehistory.OperationIn(i.OperationIn...)) } - if i.Md5HashContainsFold != nil { - predicates = append(predicates, file.Md5HashContainsFold(*i.Md5HashContainsFold)) + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, entitytypehistory.OperationNotIn(i.OperationNotIn...)) } - if i.DetectedContentType != nil { - predicates = append(predicates, file.DetectedContentTypeEQ(*i.DetectedContentType)) + if i.CreatedAt != nil { + predicates = append(predicates, entitytypehistory.CreatedAtEQ(*i.CreatedAt)) } - if i.DetectedContentTypeNEQ != nil { - predicates = append(predicates, file.DetectedContentTypeNEQ(*i.DetectedContentTypeNEQ)) + if i.CreatedAtNEQ != nil { + predicates = append(predicates, entitytypehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } - if len(i.DetectedContentTypeIn) > 0 { - predicates = append(predicates, file.DetectedContentTypeIn(i.DetectedContentTypeIn...)) + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, entitytypehistory.CreatedAtIn(i.CreatedAtIn...)) } - if len(i.DetectedContentTypeNotIn) > 0 { - predicates = append(predicates, file.DetectedContentTypeNotIn(i.DetectedContentTypeNotIn...)) + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, entitytypehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } - if i.DetectedContentTypeGT != nil { - predicates = append(predicates, file.DetectedContentTypeGT(*i.DetectedContentTypeGT)) + if i.CreatedAtGT != nil { + predicates = append(predicates, entitytypehistory.CreatedAtGT(*i.CreatedAtGT)) } - if i.DetectedContentTypeGTE != nil { - predicates = append(predicates, file.DetectedContentTypeGTE(*i.DetectedContentTypeGTE)) + if i.CreatedAtGTE != nil { + predicates = append(predicates, entitytypehistory.CreatedAtGTE(*i.CreatedAtGTE)) } - if i.DetectedContentTypeLT != nil { - predicates = append(predicates, file.DetectedContentTypeLT(*i.DetectedContentTypeLT)) + if i.CreatedAtLT != nil { + predicates = append(predicates, entitytypehistory.CreatedAtLT(*i.CreatedAtLT)) } - if i.DetectedContentTypeLTE != nil { - predicates = append(predicates, file.DetectedContentTypeLTE(*i.DetectedContentTypeLTE)) + if i.CreatedAtLTE != nil { + predicates = append(predicates, entitytypehistory.CreatedAtLTE(*i.CreatedAtLTE)) } - if i.DetectedContentTypeContains != nil { - predicates = append(predicates, file.DetectedContentTypeContains(*i.DetectedContentTypeContains)) + if i.CreatedAtIsNil { + predicates = append(predicates, entitytypehistory.CreatedAtIsNil()) } - if i.DetectedContentTypeHasPrefix != nil { - predicates = append(predicates, file.DetectedContentTypeHasPrefix(*i.DetectedContentTypeHasPrefix)) + if i.CreatedAtNotNil { + predicates = append(predicates, entitytypehistory.CreatedAtNotNil()) } - if i.DetectedContentTypeHasSuffix != nil { - predicates = append(predicates, file.DetectedContentTypeHasSuffix(*i.DetectedContentTypeHasSuffix)) + if i.UpdatedAt != nil { + predicates = append(predicates, entitytypehistory.UpdatedAtEQ(*i.UpdatedAt)) } - if i.DetectedContentTypeEqualFold != nil { - predicates = append(predicates, file.DetectedContentTypeEqualFold(*i.DetectedContentTypeEqualFold)) + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, entitytypehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } - if i.DetectedContentTypeContainsFold != nil { - predicates = append(predicates, file.DetectedContentTypeContainsFold(*i.DetectedContentTypeContainsFold)) + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, entitytypehistory.UpdatedAtIn(i.UpdatedAtIn...)) } - if i.StoreKey != nil { - predicates = append(predicates, file.StoreKeyEQ(*i.StoreKey)) + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, entitytypehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } - if i.StoreKeyNEQ != nil { - predicates = append(predicates, file.StoreKeyNEQ(*i.StoreKeyNEQ)) + if i.UpdatedAtGT != nil { + predicates = append(predicates, entitytypehistory.UpdatedAtGT(*i.UpdatedAtGT)) } - if len(i.StoreKeyIn) > 0 { - predicates = append(predicates, file.StoreKeyIn(i.StoreKeyIn...)) + if i.UpdatedAtGTE != nil { + predicates = append(predicates, entitytypehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } - if len(i.StoreKeyNotIn) > 0 { - predicates = append(predicates, file.StoreKeyNotIn(i.StoreKeyNotIn...)) + if i.UpdatedAtLT != nil { + predicates = append(predicates, entitytypehistory.UpdatedAtLT(*i.UpdatedAtLT)) } - if i.StoreKeyGT != nil { - predicates = append(predicates, file.StoreKeyGT(*i.StoreKeyGT)) + if i.UpdatedAtLTE != nil { + predicates = append(predicates, entitytypehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } - if i.StoreKeyGTE != nil { - predicates = append(predicates, file.StoreKeyGTE(*i.StoreKeyGTE)) + if i.UpdatedAtIsNil { + predicates = append(predicates, entitytypehistory.UpdatedAtIsNil()) } - if i.StoreKeyLT != nil { - predicates = append(predicates, file.StoreKeyLT(*i.StoreKeyLT)) + if i.UpdatedAtNotNil { + predicates = append(predicates, entitytypehistory.UpdatedAtNotNil()) } - if i.StoreKeyLTE != nil { - predicates = append(predicates, file.StoreKeyLTE(*i.StoreKeyLTE)) + if i.CreatedBy != nil { + predicates = append(predicates, entitytypehistory.CreatedByEQ(*i.CreatedBy)) } - if i.StoreKeyContains != nil { - predicates = append(predicates, file.StoreKeyContains(*i.StoreKeyContains)) + if i.CreatedByNEQ != nil { + predicates = append(predicates, entitytypehistory.CreatedByNEQ(*i.CreatedByNEQ)) } - if i.StoreKeyHasPrefix != nil { - predicates = append(predicates, file.StoreKeyHasPrefix(*i.StoreKeyHasPrefix)) + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, entitytypehistory.CreatedByIn(i.CreatedByIn...)) } - if i.StoreKeyHasSuffix != nil { - predicates = append(predicates, file.StoreKeyHasSuffix(*i.StoreKeyHasSuffix)) + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, entitytypehistory.CreatedByNotIn(i.CreatedByNotIn...)) } - if i.StoreKeyIsNil { - predicates = append(predicates, file.StoreKeyIsNil()) + if i.CreatedByGT != nil { + predicates = append(predicates, entitytypehistory.CreatedByGT(*i.CreatedByGT)) } - if i.StoreKeyNotNil { - predicates = append(predicates, file.StoreKeyNotNil()) + if i.CreatedByGTE != nil { + predicates = append(predicates, entitytypehistory.CreatedByGTE(*i.CreatedByGTE)) } - if i.StoreKeyEqualFold != nil { - predicates = append(predicates, file.StoreKeyEqualFold(*i.StoreKeyEqualFold)) + if i.CreatedByLT != nil { + predicates = append(predicates, entitytypehistory.CreatedByLT(*i.CreatedByLT)) } - if i.StoreKeyContainsFold != nil { - predicates = append(predicates, file.StoreKeyContainsFold(*i.StoreKeyContainsFold)) + if i.CreatedByLTE != nil { + predicates = append(predicates, entitytypehistory.CreatedByLTE(*i.CreatedByLTE)) } - if i.CategoryType != nil { - predicates = append(predicates, file.CategoryTypeEQ(*i.CategoryType)) + if i.CreatedByContains != nil { + predicates = append(predicates, entitytypehistory.CreatedByContains(*i.CreatedByContains)) } - if i.CategoryTypeNEQ != nil { - predicates = append(predicates, file.CategoryTypeNEQ(*i.CategoryTypeNEQ)) + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, entitytypehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } - if len(i.CategoryTypeIn) > 0 { - predicates = append(predicates, file.CategoryTypeIn(i.CategoryTypeIn...)) + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, entitytypehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } - if len(i.CategoryTypeNotIn) > 0 { - predicates = append(predicates, file.CategoryTypeNotIn(i.CategoryTypeNotIn...)) + if i.CreatedByIsNil { + predicates = append(predicates, entitytypehistory.CreatedByIsNil()) } - if i.CategoryTypeGT != nil { - predicates = append(predicates, file.CategoryTypeGT(*i.CategoryTypeGT)) + if i.CreatedByNotNil { + predicates = append(predicates, entitytypehistory.CreatedByNotNil()) } - if i.CategoryTypeGTE != nil { - predicates = append(predicates, file.CategoryTypeGTE(*i.CategoryTypeGTE)) + if i.CreatedByEqualFold != nil { + predicates = append(predicates, entitytypehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } - if i.CategoryTypeLT != nil { - predicates = append(predicates, file.CategoryTypeLT(*i.CategoryTypeLT)) + if i.CreatedByContainsFold != nil { + predicates = append(predicates, entitytypehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } - if i.CategoryTypeLTE != nil { - predicates = append(predicates, file.CategoryTypeLTE(*i.CategoryTypeLTE)) + if i.UpdatedBy != nil { + predicates = append(predicates, entitytypehistory.UpdatedByEQ(*i.UpdatedBy)) } - if i.CategoryTypeContains != nil { - predicates = append(predicates, file.CategoryTypeContains(*i.CategoryTypeContains)) + if i.UpdatedByNEQ != nil { + predicates = append(predicates, entitytypehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } - if i.CategoryTypeHasPrefix != nil { - predicates = append(predicates, file.CategoryTypeHasPrefix(*i.CategoryTypeHasPrefix)) + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, entitytypehistory.UpdatedByIn(i.UpdatedByIn...)) } - if i.CategoryTypeHasSuffix != nil { - predicates = append(predicates, file.CategoryTypeHasSuffix(*i.CategoryTypeHasSuffix)) + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, entitytypehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } - if i.CategoryTypeIsNil { - predicates = append(predicates, file.CategoryTypeIsNil()) + if i.UpdatedByGT != nil { + predicates = append(predicates, entitytypehistory.UpdatedByGT(*i.UpdatedByGT)) } - if i.CategoryTypeNotNil { - predicates = append(predicates, file.CategoryTypeNotNil()) + if i.UpdatedByGTE != nil { + predicates = append(predicates, entitytypehistory.UpdatedByGTE(*i.UpdatedByGTE)) } - if i.CategoryTypeEqualFold != nil { - predicates = append(predicates, file.CategoryTypeEqualFold(*i.CategoryTypeEqualFold)) + if i.UpdatedByLT != nil { + predicates = append(predicates, entitytypehistory.UpdatedByLT(*i.UpdatedByLT)) } - if i.CategoryTypeContainsFold != nil { - predicates = append(predicates, file.CategoryTypeContainsFold(*i.CategoryTypeContainsFold)) + if i.UpdatedByLTE != nil { + predicates = append(predicates, entitytypehistory.UpdatedByLTE(*i.UpdatedByLTE)) } - if i.URI != nil { - predicates = append(predicates, file.URIEQ(*i.URI)) + if i.UpdatedByContains != nil { + predicates = append(predicates, entitytypehistory.UpdatedByContains(*i.UpdatedByContains)) } - if i.URINEQ != nil { - predicates = append(predicates, file.URINEQ(*i.URINEQ)) + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, entitytypehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } - if len(i.URIIn) > 0 { - predicates = append(predicates, file.URIIn(i.URIIn...)) + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, entitytypehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } - if len(i.URINotIn) > 0 { - predicates = append(predicates, file.URINotIn(i.URINotIn...)) + if i.UpdatedByIsNil { + predicates = append(predicates, entitytypehistory.UpdatedByIsNil()) } - if i.URIGT != nil { - predicates = append(predicates, file.URIGT(*i.URIGT)) + if i.UpdatedByNotNil { + predicates = append(predicates, entitytypehistory.UpdatedByNotNil()) } - if i.URIGTE != nil { - predicates = append(predicates, file.URIGTE(*i.URIGTE)) + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, entitytypehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } - if i.URILT != nil { - predicates = append(predicates, file.URILT(*i.URILT)) + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, entitytypehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } - if i.URILTE != nil { - predicates = append(predicates, file.URILTE(*i.URILTE)) + if i.DeletedAt != nil { + predicates = append(predicates, entitytypehistory.DeletedAtEQ(*i.DeletedAt)) } - if i.URIContains != nil { - predicates = append(predicates, file.URIContains(*i.URIContains)) + if i.DeletedAtNEQ != nil { + predicates = append(predicates, entitytypehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } - if i.URIHasPrefix != nil { - predicates = append(predicates, file.URIHasPrefix(*i.URIHasPrefix)) + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, entitytypehistory.DeletedAtIn(i.DeletedAtIn...)) } - if i.URIHasSuffix != nil { - predicates = append(predicates, file.URIHasSuffix(*i.URIHasSuffix)) + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, entitytypehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } - if i.URIIsNil { - predicates = append(predicates, file.URIIsNil()) + if i.DeletedAtGT != nil { + predicates = append(predicates, entitytypehistory.DeletedAtGT(*i.DeletedAtGT)) } - if i.URINotNil { - predicates = append(predicates, file.URINotNil()) + if i.DeletedAtGTE != nil { + predicates = append(predicates, entitytypehistory.DeletedAtGTE(*i.DeletedAtGTE)) } - if i.URIEqualFold != nil { - predicates = append(predicates, file.URIEqualFold(*i.URIEqualFold)) + if i.DeletedAtLT != nil { + predicates = append(predicates, entitytypehistory.DeletedAtLT(*i.DeletedAtLT)) } - if i.URIContainsFold != nil { - predicates = append(predicates, file.URIContainsFold(*i.URIContainsFold)) + if i.DeletedAtLTE != nil { + predicates = append(predicates, entitytypehistory.DeletedAtLTE(*i.DeletedAtLTE)) } - if i.StorageScheme != nil { - predicates = append(predicates, file.StorageSchemeEQ(*i.StorageScheme)) + if i.DeletedAtIsNil { + predicates = append(predicates, entitytypehistory.DeletedAtIsNil()) } - if i.StorageSchemeNEQ != nil { - predicates = append(predicates, file.StorageSchemeNEQ(*i.StorageSchemeNEQ)) + if i.DeletedAtNotNil { + predicates = append(predicates, entitytypehistory.DeletedAtNotNil()) } - if len(i.StorageSchemeIn) > 0 { - predicates = append(predicates, file.StorageSchemeIn(i.StorageSchemeIn...)) + if i.DeletedBy != nil { + predicates = append(predicates, entitytypehistory.DeletedByEQ(*i.DeletedBy)) } - if len(i.StorageSchemeNotIn) > 0 { - predicates = append(predicates, file.StorageSchemeNotIn(i.StorageSchemeNotIn...)) + if i.DeletedByNEQ != nil { + predicates = append(predicates, entitytypehistory.DeletedByNEQ(*i.DeletedByNEQ)) } - if i.StorageSchemeGT != nil { - predicates = append(predicates, file.StorageSchemeGT(*i.StorageSchemeGT)) + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, entitytypehistory.DeletedByIn(i.DeletedByIn...)) } - if i.StorageSchemeGTE != nil { - predicates = append(predicates, file.StorageSchemeGTE(*i.StorageSchemeGTE)) + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, entitytypehistory.DeletedByNotIn(i.DeletedByNotIn...)) } - if i.StorageSchemeLT != nil { - predicates = append(predicates, file.StorageSchemeLT(*i.StorageSchemeLT)) + if i.DeletedByGT != nil { + predicates = append(predicates, entitytypehistory.DeletedByGT(*i.DeletedByGT)) } - if i.StorageSchemeLTE != nil { - predicates = append(predicates, file.StorageSchemeLTE(*i.StorageSchemeLTE)) + if i.DeletedByGTE != nil { + predicates = append(predicates, entitytypehistory.DeletedByGTE(*i.DeletedByGTE)) } - if i.StorageSchemeContains != nil { - predicates = append(predicates, file.StorageSchemeContains(*i.StorageSchemeContains)) + if i.DeletedByLT != nil { + predicates = append(predicates, entitytypehistory.DeletedByLT(*i.DeletedByLT)) } - if i.StorageSchemeHasPrefix != nil { - predicates = append(predicates, file.StorageSchemeHasPrefix(*i.StorageSchemeHasPrefix)) + if i.DeletedByLTE != nil { + predicates = append(predicates, entitytypehistory.DeletedByLTE(*i.DeletedByLTE)) } - if i.StorageSchemeHasSuffix != nil { - predicates = append(predicates, file.StorageSchemeHasSuffix(*i.StorageSchemeHasSuffix)) + if i.DeletedByContains != nil { + predicates = append(predicates, entitytypehistory.DeletedByContains(*i.DeletedByContains)) } - if i.StorageSchemeIsNil { - predicates = append(predicates, file.StorageSchemeIsNil()) + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, entitytypehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } - if i.StorageSchemeNotNil { - predicates = append(predicates, file.StorageSchemeNotNil()) + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, entitytypehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } - if i.StorageSchemeEqualFold != nil { - predicates = append(predicates, file.StorageSchemeEqualFold(*i.StorageSchemeEqualFold)) + if i.DeletedByIsNil { + predicates = append(predicates, entitytypehistory.DeletedByIsNil()) } - if i.StorageSchemeContainsFold != nil { - predicates = append(predicates, file.StorageSchemeContainsFold(*i.StorageSchemeContainsFold)) + if i.DeletedByNotNil { + predicates = append(predicates, entitytypehistory.DeletedByNotNil()) } - if i.StorageVolume != nil { - predicates = append(predicates, file.StorageVolumeEQ(*i.StorageVolume)) + if i.DeletedByEqualFold != nil { + predicates = append(predicates, entitytypehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } - if i.StorageVolumeNEQ != nil { - predicates = append(predicates, file.StorageVolumeNEQ(*i.StorageVolumeNEQ)) + if i.DeletedByContainsFold != nil { + predicates = append(predicates, entitytypehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if len(i.StorageVolumeIn) > 0 { - predicates = append(predicates, file.StorageVolumeIn(i.StorageVolumeIn...)) + if i.OwnerID != nil { + predicates = append(predicates, entitytypehistory.OwnerIDEQ(*i.OwnerID)) } - if len(i.StorageVolumeNotIn) > 0 { - predicates = append(predicates, file.StorageVolumeNotIn(i.StorageVolumeNotIn...)) + if i.OwnerIDNEQ != nil { + predicates = append(predicates, entitytypehistory.OwnerIDNEQ(*i.OwnerIDNEQ)) } - if i.StorageVolumeGT != nil { - predicates = append(predicates, file.StorageVolumeGT(*i.StorageVolumeGT)) + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, entitytypehistory.OwnerIDIn(i.OwnerIDIn...)) } - if i.StorageVolumeGTE != nil { - predicates = append(predicates, file.StorageVolumeGTE(*i.StorageVolumeGTE)) + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, entitytypehistory.OwnerIDNotIn(i.OwnerIDNotIn...)) } - if i.StorageVolumeLT != nil { - predicates = append(predicates, file.StorageVolumeLT(*i.StorageVolumeLT)) + if i.OwnerIDGT != nil { + predicates = append(predicates, entitytypehistory.OwnerIDGT(*i.OwnerIDGT)) } - if i.StorageVolumeLTE != nil { - predicates = append(predicates, file.StorageVolumeLTE(*i.StorageVolumeLTE)) + if i.OwnerIDGTE != nil { + predicates = append(predicates, entitytypehistory.OwnerIDGTE(*i.OwnerIDGTE)) } - if i.StorageVolumeContains != nil { - predicates = append(predicates, file.StorageVolumeContains(*i.StorageVolumeContains)) + if i.OwnerIDLT != nil { + predicates = append(predicates, entitytypehistory.OwnerIDLT(*i.OwnerIDLT)) } - if i.StorageVolumeHasPrefix != nil { - predicates = append(predicates, file.StorageVolumeHasPrefix(*i.StorageVolumeHasPrefix)) + if i.OwnerIDLTE != nil { + predicates = append(predicates, entitytypehistory.OwnerIDLTE(*i.OwnerIDLTE)) } - if i.StorageVolumeHasSuffix != nil { - predicates = append(predicates, file.StorageVolumeHasSuffix(*i.StorageVolumeHasSuffix)) + if i.OwnerIDContains != nil { + predicates = append(predicates, entitytypehistory.OwnerIDContains(*i.OwnerIDContains)) } - if i.StorageVolumeIsNil { - predicates = append(predicates, file.StorageVolumeIsNil()) + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, entitytypehistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } - if i.StorageVolumeNotNil { - predicates = append(predicates, file.StorageVolumeNotNil()) + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, entitytypehistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } - if i.StorageVolumeEqualFold != nil { - predicates = append(predicates, file.StorageVolumeEqualFold(*i.StorageVolumeEqualFold)) + if i.OwnerIDIsNil { + predicates = append(predicates, entitytypehistory.OwnerIDIsNil()) } - if i.StorageVolumeContainsFold != nil { - predicates = append(predicates, file.StorageVolumeContainsFold(*i.StorageVolumeContainsFold)) + if i.OwnerIDNotNil { + predicates = append(predicates, entitytypehistory.OwnerIDNotNil()) } - if i.StoragePath != nil { - predicates = append(predicates, file.StoragePathEQ(*i.StoragePath)) + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, entitytypehistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } - if i.StoragePathNEQ != nil { - predicates = append(predicates, file.StoragePathNEQ(*i.StoragePathNEQ)) + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, entitytypehistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if len(i.StoragePathIn) > 0 { - predicates = append(predicates, file.StoragePathIn(i.StoragePathIn...)) + if i.Name != nil { + predicates = append(predicates, entitytypehistory.NameEQ(*i.Name)) } - if len(i.StoragePathNotIn) > 0 { - predicates = append(predicates, file.StoragePathNotIn(i.StoragePathNotIn...)) + if i.NameNEQ != nil { + predicates = append(predicates, entitytypehistory.NameNEQ(*i.NameNEQ)) } - if i.StoragePathGT != nil { - predicates = append(predicates, file.StoragePathGT(*i.StoragePathGT)) + if len(i.NameIn) > 0 { + predicates = append(predicates, entitytypehistory.NameIn(i.NameIn...)) } - if i.StoragePathGTE != nil { - predicates = append(predicates, file.StoragePathGTE(*i.StoragePathGTE)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, entitytypehistory.NameNotIn(i.NameNotIn...)) } - if i.StoragePathLT != nil { - predicates = append(predicates, file.StoragePathLT(*i.StoragePathLT)) + if i.NameGT != nil { + predicates = append(predicates, entitytypehistory.NameGT(*i.NameGT)) } - if i.StoragePathLTE != nil { - predicates = append(predicates, file.StoragePathLTE(*i.StoragePathLTE)) + if i.NameGTE != nil { + predicates = append(predicates, entitytypehistory.NameGTE(*i.NameGTE)) } - if i.StoragePathContains != nil { - predicates = append(predicates, file.StoragePathContains(*i.StoragePathContains)) + if i.NameLT != nil { + predicates = append(predicates, entitytypehistory.NameLT(*i.NameLT)) } - if i.StoragePathHasPrefix != nil { - predicates = append(predicates, file.StoragePathHasPrefix(*i.StoragePathHasPrefix)) + if i.NameLTE != nil { + predicates = append(predicates, entitytypehistory.NameLTE(*i.NameLTE)) } - if i.StoragePathHasSuffix != nil { - predicates = append(predicates, file.StoragePathHasSuffix(*i.StoragePathHasSuffix)) + if i.NameContains != nil { + predicates = append(predicates, entitytypehistory.NameContains(*i.NameContains)) } - if i.StoragePathIsNil { - predicates = append(predicates, file.StoragePathIsNil()) + if i.NameHasPrefix != nil { + predicates = append(predicates, entitytypehistory.NameHasPrefix(*i.NameHasPrefix)) } - if i.StoragePathNotNil { - predicates = append(predicates, file.StoragePathNotNil()) + if i.NameHasSuffix != nil { + predicates = append(predicates, entitytypehistory.NameHasSuffix(*i.NameHasSuffix)) } - if i.StoragePathEqualFold != nil { - predicates = append(predicates, file.StoragePathEqualFold(*i.StoragePathEqualFold)) + if i.NameEqualFold != nil { + predicates = append(predicates, entitytypehistory.NameEqualFold(*i.NameEqualFold)) } - if i.StoragePathContainsFold != nil { - predicates = append(predicates, file.StoragePathContainsFold(*i.StoragePathContainsFold)) + if i.NameContainsFold != nil { + predicates = append(predicates, entitytypehistory.NameContainsFold(*i.NameContainsFold)) } - if i.HasUser != nil { - p := file.HasUser() - if !*i.HasUser { - p = file.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasUserWith) > 0 { - with := make([]predicate.User, 0, len(i.HasUserWith)) - 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, file.HasUserWith(with...)) - } - if i.HasOrganization != nil { - p := file.HasOrganization() - if !*i.HasOrganization { - p = file.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasOrganizationWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOrganizationWith)) - for _, w := range i.HasOrganizationWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasOrganizationWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, file.HasOrganizationWith(with...)) - } - if i.HasGroup != nil { - p := file.HasGroup() - if !*i.HasGroup { - p = file.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasGroupWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasGroupWith)) - 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, file.HasGroupWith(with...)) - } - if i.HasContact != nil { - p := file.HasContact() - if !*i.HasContact { - p = file.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasContactWith) > 0 { - with := make([]predicate.Contact, 0, len(i.HasContactWith)) - 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, file.HasContactWith(with...)) - } - if i.HasEntity != nil { - p := file.HasEntity() - if !*i.HasEntity { - p = file.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasEntityWith) > 0 { - with := make([]predicate.Entity, 0, len(i.HasEntityWith)) - for _, w := range i.HasEntityWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntityWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, file.HasEntityWith(with...)) - } - if i.HasUsersetting != nil { - p := file.HasUsersetting() - if !*i.HasUsersetting { - p = file.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasUsersettingWith) > 0 { - with := make([]predicate.UserSetting, 0, len(i.HasUsersettingWith)) - for _, w := range i.HasUsersettingWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasUsersettingWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, file.HasUsersettingWith(with...)) - } - if i.HasOrganizationsetting != nil { - p := file.HasOrganizationsetting() - if !*i.HasOrganizationsetting { - p = file.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasOrganizationsettingWith) > 0 { - with := make([]predicate.OrganizationSetting, 0, len(i.HasOrganizationsettingWith)) - for _, w := range i.HasOrganizationsettingWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasOrganizationsettingWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, file.HasOrganizationsettingWith(with...)) - } - if i.HasTemplate != nil { - p := file.HasTemplate() - if !*i.HasTemplate { - p = file.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasTemplateWith) > 0 { - with := make([]predicate.Template, 0, len(i.HasTemplateWith)) - for _, w := range i.HasTemplateWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasTemplateWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, file.HasTemplateWith(with...)) - } - if i.HasDocumentdata != nil { - p := file.HasDocumentdata() - if !*i.HasDocumentdata { - p = file.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasDocumentdataWith) > 0 { - with := make([]predicate.DocumentData, 0, len(i.HasDocumentdataWith)) - for _, w := range i.HasDocumentdataWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasDocumentdataWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, file.HasDocumentdataWith(with...)) - } - if i.HasEvents != nil { - p := file.HasEvents() - if !*i.HasEvents { - p = file.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasEventsWith) > 0 { - with := make([]predicate.Event, 0, len(i.HasEventsWith)) - for _, w := range i.HasEventsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, file.HasEventsWith(with...)) - } - switch len(predicates) { - case 0: - return nil, ErrEmptyFileWhereInput - case 1: - return predicates[0], nil - default: - return file.And(predicates...), nil + switch len(predicates) { + case 0: + return nil, ErrEmptyEntityTypeHistoryWhereInput + case 1: + return predicates[0], nil + default: + return entitytypehistory.And(predicates...), nil } } -// FileHistoryWhereInput represents a where input for filtering FileHistory queries. -type FileHistoryWhereInput struct { - Predicates []predicate.FileHistory `json:"-"` - Not *FileHistoryWhereInput `json:"not,omitempty"` - Or []*FileHistoryWhereInput `json:"or,omitempty"` - And []*FileHistoryWhereInput `json:"and,omitempty"` +// EventWhereInput represents a where input for filtering Event queries. +type EventWhereInput struct { + Predicates []predicate.Event `json:"-"` + Not *EventWhereInput `json:"not,omitempty"` + Or []*EventWhereInput `json:"or,omitempty"` + And []*EventWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -16514,39 +18674,6 @@ type FileHistoryWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // "history_time" field predicates. - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` - RefGT *string `json:"refGT,omitempty"` - RefGTE *string `json:"refGTE,omitempty"` - RefLT *string `json:"refLT,omitempty"` - RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -16605,254 +18732,137 @@ type FileHistoryWhereInput struct { UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` - // "deleted_at" field predicates. - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + // "event_id" field predicates. + EventID *string `json:"eventID,omitempty"` + EventIDNEQ *string `json:"eventIDNEQ,omitempty"` + EventIDIn []string `json:"eventIDIn,omitempty"` + EventIDNotIn []string `json:"eventIDNotIn,omitempty"` + EventIDGT *string `json:"eventIDGT,omitempty"` + EventIDGTE *string `json:"eventIDGTE,omitempty"` + EventIDLT *string `json:"eventIDLT,omitempty"` + EventIDLTE *string `json:"eventIDLTE,omitempty"` + EventIDContains *string `json:"eventIDContains,omitempty"` + EventIDHasPrefix *string `json:"eventIDHasPrefix,omitempty"` + EventIDHasSuffix *string `json:"eventIDHasSuffix,omitempty"` + EventIDIsNil bool `json:"eventIDIsNil,omitempty"` + EventIDNotNil bool `json:"eventIDNotNil,omitempty"` + EventIDEqualFold *string `json:"eventIDEqualFold,omitempty"` + EventIDContainsFold *string `json:"eventIDContainsFold,omitempty"` - // "deleted_by" field predicates. - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGT *string `json:"deletedByGT,omitempty"` - DeletedByGTE *string `json:"deletedByGTE,omitempty"` - DeletedByLT *string `json:"deletedByLT,omitempty"` - DeletedByLTE *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // "correlation_id" field predicates. + CorrelationID *string `json:"correlationID,omitempty"` + CorrelationIDNEQ *string `json:"correlationIDNEQ,omitempty"` + CorrelationIDIn []string `json:"correlationIDIn,omitempty"` + CorrelationIDNotIn []string `json:"correlationIDNotIn,omitempty"` + CorrelationIDGT *string `json:"correlationIDGT,omitempty"` + CorrelationIDGTE *string `json:"correlationIDGTE,omitempty"` + CorrelationIDLT *string `json:"correlationIDLT,omitempty"` + CorrelationIDLTE *string `json:"correlationIDLTE,omitempty"` + CorrelationIDContains *string `json:"correlationIDContains,omitempty"` + CorrelationIDHasPrefix *string `json:"correlationIDHasPrefix,omitempty"` + CorrelationIDHasSuffix *string `json:"correlationIDHasSuffix,omitempty"` + CorrelationIDIsNil bool `json:"correlationIDIsNil,omitempty"` + CorrelationIDNotNil bool `json:"correlationIDNotNil,omitempty"` + CorrelationIDEqualFold *string `json:"correlationIDEqualFold,omitempty"` + CorrelationIDContainsFold *string `json:"correlationIDContainsFold,omitempty"` - // "provided_file_name" field predicates. - ProvidedFileName *string `json:"providedFileName,omitempty"` - ProvidedFileNameNEQ *string `json:"providedFileNameNEQ,omitempty"` - ProvidedFileNameIn []string `json:"providedFileNameIn,omitempty"` - ProvidedFileNameNotIn []string `json:"providedFileNameNotIn,omitempty"` - ProvidedFileNameGT *string `json:"providedFileNameGT,omitempty"` - ProvidedFileNameGTE *string `json:"providedFileNameGTE,omitempty"` - ProvidedFileNameLT *string `json:"providedFileNameLT,omitempty"` - ProvidedFileNameLTE *string `json:"providedFileNameLTE,omitempty"` - ProvidedFileNameContains *string `json:"providedFileNameContains,omitempty"` - ProvidedFileNameHasPrefix *string `json:"providedFileNameHasPrefix,omitempty"` - ProvidedFileNameHasSuffix *string `json:"providedFileNameHasSuffix,omitempty"` - ProvidedFileNameEqualFold *string `json:"providedFileNameEqualFold,omitempty"` - ProvidedFileNameContainsFold *string `json:"providedFileNameContainsFold,omitempty"` + // "event_type" field predicates. + EventType *string `json:"eventType,omitempty"` + EventTypeNEQ *string `json:"eventTypeNEQ,omitempty"` + EventTypeIn []string `json:"eventTypeIn,omitempty"` + EventTypeNotIn []string `json:"eventTypeNotIn,omitempty"` + EventTypeGT *string `json:"eventTypeGT,omitempty"` + EventTypeGTE *string `json:"eventTypeGTE,omitempty"` + EventTypeLT *string `json:"eventTypeLT,omitempty"` + EventTypeLTE *string `json:"eventTypeLTE,omitempty"` + EventTypeContains *string `json:"eventTypeContains,omitempty"` + EventTypeHasPrefix *string `json:"eventTypeHasPrefix,omitempty"` + EventTypeHasSuffix *string `json:"eventTypeHasSuffix,omitempty"` + EventTypeEqualFold *string `json:"eventTypeEqualFold,omitempty"` + EventTypeContainsFold *string `json:"eventTypeContainsFold,omitempty"` - // "provided_file_extension" field predicates. - ProvidedFileExtension *string `json:"providedFileExtension,omitempty"` - ProvidedFileExtensionNEQ *string `json:"providedFileExtensionNEQ,omitempty"` - ProvidedFileExtensionIn []string `json:"providedFileExtensionIn,omitempty"` - ProvidedFileExtensionNotIn []string `json:"providedFileExtensionNotIn,omitempty"` - ProvidedFileExtensionGT *string `json:"providedFileExtensionGT,omitempty"` - ProvidedFileExtensionGTE *string `json:"providedFileExtensionGTE,omitempty"` - ProvidedFileExtensionLT *string `json:"providedFileExtensionLT,omitempty"` - ProvidedFileExtensionLTE *string `json:"providedFileExtensionLTE,omitempty"` - ProvidedFileExtensionContains *string `json:"providedFileExtensionContains,omitempty"` - ProvidedFileExtensionHasPrefix *string `json:"providedFileExtensionHasPrefix,omitempty"` - ProvidedFileExtensionHasSuffix *string `json:"providedFileExtensionHasSuffix,omitempty"` - ProvidedFileExtensionEqualFold *string `json:"providedFileExtensionEqualFold,omitempty"` - ProvidedFileExtensionContainsFold *string `json:"providedFileExtensionContainsFold,omitempty"` + // "user" edge predicates. + HasUser *bool `json:"hasUser,omitempty"` + HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` - // "provided_file_size" field predicates. - ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` - ProvidedFileSizeNEQ *int64 `json:"providedFileSizeNEQ,omitempty"` - ProvidedFileSizeIn []int64 `json:"providedFileSizeIn,omitempty"` - ProvidedFileSizeNotIn []int64 `json:"providedFileSizeNotIn,omitempty"` - ProvidedFileSizeGT *int64 `json:"providedFileSizeGT,omitempty"` - ProvidedFileSizeGTE *int64 `json:"providedFileSizeGTE,omitempty"` - ProvidedFileSizeLT *int64 `json:"providedFileSizeLT,omitempty"` - ProvidedFileSizeLTE *int64 `json:"providedFileSizeLTE,omitempty"` - ProvidedFileSizeIsNil bool `json:"providedFileSizeIsNil,omitempty"` - ProvidedFileSizeNotNil bool `json:"providedFileSizeNotNil,omitempty"` + // "group" edge predicates. + HasGroup *bool `json:"hasGroup,omitempty"` + HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` - // "persisted_file_size" field predicates. - PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` - PersistedFileSizeNEQ *int64 `json:"persistedFileSizeNEQ,omitempty"` - PersistedFileSizeIn []int64 `json:"persistedFileSizeIn,omitempty"` - PersistedFileSizeNotIn []int64 `json:"persistedFileSizeNotIn,omitempty"` - PersistedFileSizeGT *int64 `json:"persistedFileSizeGT,omitempty"` - PersistedFileSizeGTE *int64 `json:"persistedFileSizeGTE,omitempty"` - PersistedFileSizeLT *int64 `json:"persistedFileSizeLT,omitempty"` - PersistedFileSizeLTE *int64 `json:"persistedFileSizeLTE,omitempty"` - PersistedFileSizeIsNil bool `json:"persistedFileSizeIsNil,omitempty"` - PersistedFileSizeNotNil bool `json:"persistedFileSizeNotNil,omitempty"` + // "integration" edge predicates. + HasIntegration *bool `json:"hasIntegration,omitempty"` + HasIntegrationWith []*IntegrationWhereInput `json:"hasIntegrationWith,omitempty"` - // "detected_mime_type" field predicates. - DetectedMimeType *string `json:"detectedMimeType,omitempty"` - DetectedMimeTypeNEQ *string `json:"detectedMimeTypeNEQ,omitempty"` - DetectedMimeTypeIn []string `json:"detectedMimeTypeIn,omitempty"` - DetectedMimeTypeNotIn []string `json:"detectedMimeTypeNotIn,omitempty"` - DetectedMimeTypeGT *string `json:"detectedMimeTypeGT,omitempty"` - DetectedMimeTypeGTE *string `json:"detectedMimeTypeGTE,omitempty"` - DetectedMimeTypeLT *string `json:"detectedMimeTypeLT,omitempty"` - DetectedMimeTypeLTE *string `json:"detectedMimeTypeLTE,omitempty"` - DetectedMimeTypeContains *string `json:"detectedMimeTypeContains,omitempty"` - DetectedMimeTypeHasPrefix *string `json:"detectedMimeTypeHasPrefix,omitempty"` - DetectedMimeTypeHasSuffix *string `json:"detectedMimeTypeHasSuffix,omitempty"` - DetectedMimeTypeIsNil bool `json:"detectedMimeTypeIsNil,omitempty"` - DetectedMimeTypeNotNil bool `json:"detectedMimeTypeNotNil,omitempty"` - DetectedMimeTypeEqualFold *string `json:"detectedMimeTypeEqualFold,omitempty"` - DetectedMimeTypeContainsFold *string `json:"detectedMimeTypeContainsFold,omitempty"` + // "organization" edge predicates. + HasOrganization *bool `json:"hasOrganization,omitempty"` + HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` - // "md5_hash" field predicates. - Md5Hash *string `json:"md5Hash,omitempty"` - Md5HashNEQ *string `json:"md5HashNEQ,omitempty"` - Md5HashIn []string `json:"md5HashIn,omitempty"` - Md5HashNotIn []string `json:"md5HashNotIn,omitempty"` - Md5HashGT *string `json:"md5HashGT,omitempty"` - Md5HashGTE *string `json:"md5HashGTE,omitempty"` - Md5HashLT *string `json:"md5HashLT,omitempty"` - Md5HashLTE *string `json:"md5HashLTE,omitempty"` - Md5HashContains *string `json:"md5HashContains,omitempty"` - Md5HashHasPrefix *string `json:"md5HashHasPrefix,omitempty"` - Md5HashHasSuffix *string `json:"md5HashHasSuffix,omitempty"` - Md5HashIsNil bool `json:"md5HashIsNil,omitempty"` - Md5HashNotNil bool `json:"md5HashNotNil,omitempty"` - Md5HashEqualFold *string `json:"md5HashEqualFold,omitempty"` - Md5HashContainsFold *string `json:"md5HashContainsFold,omitempty"` + // "invite" edge predicates. + HasInvite *bool `json:"hasInvite,omitempty"` + HasInviteWith []*InviteWhereInput `json:"hasInviteWith,omitempty"` - // "detected_content_type" field predicates. - DetectedContentType *string `json:"detectedContentType,omitempty"` - DetectedContentTypeNEQ *string `json:"detectedContentTypeNEQ,omitempty"` - DetectedContentTypeIn []string `json:"detectedContentTypeIn,omitempty"` - DetectedContentTypeNotIn []string `json:"detectedContentTypeNotIn,omitempty"` - DetectedContentTypeGT *string `json:"detectedContentTypeGT,omitempty"` - DetectedContentTypeGTE *string `json:"detectedContentTypeGTE,omitempty"` - DetectedContentTypeLT *string `json:"detectedContentTypeLT,omitempty"` - DetectedContentTypeLTE *string `json:"detectedContentTypeLTE,omitempty"` - DetectedContentTypeContains *string `json:"detectedContentTypeContains,omitempty"` - DetectedContentTypeHasPrefix *string `json:"detectedContentTypeHasPrefix,omitempty"` - DetectedContentTypeHasSuffix *string `json:"detectedContentTypeHasSuffix,omitempty"` - DetectedContentTypeEqualFold *string `json:"detectedContentTypeEqualFold,omitempty"` - DetectedContentTypeContainsFold *string `json:"detectedContentTypeContainsFold,omitempty"` + // "feature" edge predicates. + HasFeature *bool `json:"hasFeature,omitempty"` + HasFeatureWith []*FeatureWhereInput `json:"hasFeatureWith,omitempty"` - // "store_key" field predicates. - StoreKey *string `json:"storeKey,omitempty"` - StoreKeyNEQ *string `json:"storeKeyNEQ,omitempty"` - StoreKeyIn []string `json:"storeKeyIn,omitempty"` - StoreKeyNotIn []string `json:"storeKeyNotIn,omitempty"` - StoreKeyGT *string `json:"storeKeyGT,omitempty"` - StoreKeyGTE *string `json:"storeKeyGTE,omitempty"` - StoreKeyLT *string `json:"storeKeyLT,omitempty"` - StoreKeyLTE *string `json:"storeKeyLTE,omitempty"` - StoreKeyContains *string `json:"storeKeyContains,omitempty"` - StoreKeyHasPrefix *string `json:"storeKeyHasPrefix,omitempty"` - StoreKeyHasSuffix *string `json:"storeKeyHasSuffix,omitempty"` - StoreKeyIsNil bool `json:"storeKeyIsNil,omitempty"` - StoreKeyNotNil bool `json:"storeKeyNotNil,omitempty"` - StoreKeyEqualFold *string `json:"storeKeyEqualFold,omitempty"` - StoreKeyContainsFold *string `json:"storeKeyContainsFold,omitempty"` + // "entitlementplan" edge predicates. + HasEntitlementplan *bool `json:"hasEntitlementplan,omitempty"` + HasEntitlementplanWith []*EntitlementPlanWhereInput `json:"hasEntitlementplanWith,omitempty"` - // "category_type" field predicates. - CategoryType *string `json:"categoryType,omitempty"` - CategoryTypeNEQ *string `json:"categoryTypeNEQ,omitempty"` - CategoryTypeIn []string `json:"categoryTypeIn,omitempty"` - CategoryTypeNotIn []string `json:"categoryTypeNotIn,omitempty"` - CategoryTypeGT *string `json:"categoryTypeGT,omitempty"` - CategoryTypeGTE *string `json:"categoryTypeGTE,omitempty"` - CategoryTypeLT *string `json:"categoryTypeLT,omitempty"` - CategoryTypeLTE *string `json:"categoryTypeLTE,omitempty"` - CategoryTypeContains *string `json:"categoryTypeContains,omitempty"` - CategoryTypeHasPrefix *string `json:"categoryTypeHasPrefix,omitempty"` - CategoryTypeHasSuffix *string `json:"categoryTypeHasSuffix,omitempty"` - CategoryTypeIsNil bool `json:"categoryTypeIsNil,omitempty"` - CategoryTypeNotNil bool `json:"categoryTypeNotNil,omitempty"` - CategoryTypeEqualFold *string `json:"categoryTypeEqualFold,omitempty"` - CategoryTypeContainsFold *string `json:"categoryTypeContainsFold,omitempty"` + // "entitlementplanfeature" edge predicates. + HasEntitlementplanfeature *bool `json:"hasEntitlementplanfeature,omitempty"` + HasEntitlementplanfeatureWith []*EntitlementPlanFeatureWhereInput `json:"hasEntitlementplanfeatureWith,omitempty"` - // "uri" field predicates. - URI *string `json:"uri,omitempty"` - URINEQ *string `json:"uriNEQ,omitempty"` - URIIn []string `json:"uriIn,omitempty"` - URINotIn []string `json:"uriNotIn,omitempty"` - URIGT *string `json:"uriGT,omitempty"` - URIGTE *string `json:"uriGTE,omitempty"` - URILT *string `json:"uriLT,omitempty"` - URILTE *string `json:"uriLTE,omitempty"` - URIContains *string `json:"uriContains,omitempty"` - URIHasPrefix *string `json:"uriHasPrefix,omitempty"` - URIHasSuffix *string `json:"uriHasSuffix,omitempty"` - URIIsNil bool `json:"uriIsNil,omitempty"` - URINotNil bool `json:"uriNotNil,omitempty"` - URIEqualFold *string `json:"uriEqualFold,omitempty"` - URIContainsFold *string `json:"uriContainsFold,omitempty"` + // "personal_access_token" edge predicates. + HasPersonalAccessToken *bool `json:"hasPersonalAccessToken,omitempty"` + HasPersonalAccessTokenWith []*PersonalAccessTokenWhereInput `json:"hasPersonalAccessTokenWith,omitempty"` - // "storage_scheme" field predicates. - StorageScheme *string `json:"storageScheme,omitempty"` - StorageSchemeNEQ *string `json:"storageSchemeNEQ,omitempty"` - StorageSchemeIn []string `json:"storageSchemeIn,omitempty"` - StorageSchemeNotIn []string `json:"storageSchemeNotIn,omitempty"` - StorageSchemeGT *string `json:"storageSchemeGT,omitempty"` - StorageSchemeGTE *string `json:"storageSchemeGTE,omitempty"` - StorageSchemeLT *string `json:"storageSchemeLT,omitempty"` - StorageSchemeLTE *string `json:"storageSchemeLTE,omitempty"` - StorageSchemeContains *string `json:"storageSchemeContains,omitempty"` - StorageSchemeHasPrefix *string `json:"storageSchemeHasPrefix,omitempty"` - StorageSchemeHasSuffix *string `json:"storageSchemeHasSuffix,omitempty"` - StorageSchemeIsNil bool `json:"storageSchemeIsNil,omitempty"` - StorageSchemeNotNil bool `json:"storageSchemeNotNil,omitempty"` - StorageSchemeEqualFold *string `json:"storageSchemeEqualFold,omitempty"` - StorageSchemeContainsFold *string `json:"storageSchemeContainsFold,omitempty"` + // "oauth2token" edge predicates. + HasOauth2token *bool `json:"hasOauth2token,omitempty"` + HasOauth2tokenWith []*OhAuthTooTokenWhereInput `json:"hasOauth2tokenWith,omitempty"` - // "storage_volume" field predicates. - StorageVolume *string `json:"storageVolume,omitempty"` - StorageVolumeNEQ *string `json:"storageVolumeNEQ,omitempty"` - StorageVolumeIn []string `json:"storageVolumeIn,omitempty"` - StorageVolumeNotIn []string `json:"storageVolumeNotIn,omitempty"` - StorageVolumeGT *string `json:"storageVolumeGT,omitempty"` - StorageVolumeGTE *string `json:"storageVolumeGTE,omitempty"` - StorageVolumeLT *string `json:"storageVolumeLT,omitempty"` - StorageVolumeLTE *string `json:"storageVolumeLTE,omitempty"` - StorageVolumeContains *string `json:"storageVolumeContains,omitempty"` - StorageVolumeHasPrefix *string `json:"storageVolumeHasPrefix,omitempty"` - StorageVolumeHasSuffix *string `json:"storageVolumeHasSuffix,omitempty"` - StorageVolumeIsNil bool `json:"storageVolumeIsNil,omitempty"` - StorageVolumeNotNil bool `json:"storageVolumeNotNil,omitempty"` - StorageVolumeEqualFold *string `json:"storageVolumeEqualFold,omitempty"` - StorageVolumeContainsFold *string `json:"storageVolumeContainsFold,omitempty"` + // "hush" edge predicates. + HasHush *bool `json:"hasHush,omitempty"` + HasHushWith []*HushWhereInput `json:"hasHushWith,omitempty"` - // "storage_path" field predicates. - StoragePath *string `json:"storagePath,omitempty"` - StoragePathNEQ *string `json:"storagePathNEQ,omitempty"` - StoragePathIn []string `json:"storagePathIn,omitempty"` - StoragePathNotIn []string `json:"storagePathNotIn,omitempty"` - StoragePathGT *string `json:"storagePathGT,omitempty"` - StoragePathGTE *string `json:"storagePathGTE,omitempty"` - StoragePathLT *string `json:"storagePathLT,omitempty"` - StoragePathLTE *string `json:"storagePathLTE,omitempty"` - StoragePathContains *string `json:"storagePathContains,omitempty"` - StoragePathHasPrefix *string `json:"storagePathHasPrefix,omitempty"` - StoragePathHasSuffix *string `json:"storagePathHasSuffix,omitempty"` - StoragePathIsNil bool `json:"storagePathIsNil,omitempty"` - StoragePathNotNil bool `json:"storagePathNotNil,omitempty"` - StoragePathEqualFold *string `json:"storagePathEqualFold,omitempty"` - StoragePathContainsFold *string `json:"storagePathContainsFold,omitempty"` + // "orgmembership" edge predicates. + HasOrgmembership *bool `json:"hasOrgmembership,omitempty"` + HasOrgmembershipWith []*OrgMembershipWhereInput `json:"hasOrgmembershipWith,omitempty"` + + // "groupmembership" edge predicates. + HasGroupmembership *bool `json:"hasGroupmembership,omitempty"` + HasGroupmembershipWith []*GroupMembershipWhereInput `json:"hasGroupmembershipWith,omitempty"` + + // "entitlement" edge predicates. + HasEntitlement *bool `json:"hasEntitlement,omitempty"` + HasEntitlementWith []*EntitlementWhereInput `json:"hasEntitlementWith,omitempty"` + + // "webhook" edge predicates. + HasWebhook *bool `json:"hasWebhook,omitempty"` + HasWebhookWith []*WebhookWhereInput `json:"hasWebhookWith,omitempty"` + + // "subscriber" edge predicates. + HasSubscriber *bool `json:"hasSubscriber,omitempty"` + HasSubscriberWith []*SubscriberWhereInput `json:"hasSubscriberWith,omitempty"` + + // "file" edge predicates. + HasFile *bool `json:"hasFile,omitempty"` + HasFileWith []*FileWhereInput `json:"hasFileWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *FileHistoryWhereInput) AddPredicates(predicates ...predicate.FileHistory) { +func (i *EventWhereInput) AddPredicates(predicates ...predicate.Event) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the FileHistoryWhereInput filter on the FileHistoryQuery builder. -func (i *FileHistoryWhereInput) Filter(q *FileHistoryQuery) (*FileHistoryQuery, error) { +// Filter applies the EventWhereInput filter on the EventQuery builder. +func (i *EventWhereInput) Filter(q *EventQuery) (*EventQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyFileHistoryWhereInput { + if err == ErrEmptyEventWhereInput { return q, nil } return nil, err @@ -16860,19 +18870,19 @@ func (i *FileHistoryWhereInput) Filter(q *FileHistoryQuery) (*FileHistoryQuery, return q.Where(p), nil } -// ErrEmptyFileHistoryWhereInput is returned in case the FileHistoryWhereInput is empty. -var ErrEmptyFileHistoryWhereInput = errors.New("generated: empty predicate FileHistoryWhereInput") +// ErrEmptyEventWhereInput is returned in case the EventWhereInput is empty. +var ErrEmptyEventWhereInput = errors.New("generated: empty predicate EventWhereInput") -// P returns a predicate for filtering filehistories. +// P returns a predicate for filtering events. // An error is returned if the input is empty or invalid. -func (i *FileHistoryWhereInput) P() (predicate.FileHistory, error) { - var predicates []predicate.FileHistory +func (i *EventWhereInput) P() (predicate.Event, error) { + var predicates []predicate.Event if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, filehistory.Not(p)) + predicates = append(predicates, event.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -16882,7 +18892,7 @@ func (i *FileHistoryWhereInput) P() (predicate.FileHistory, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.FileHistory, 0, n) + or := make([]predicate.Event, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -16890,7 +18900,7 @@ func (i *FileHistoryWhereInput) P() (predicate.FileHistory, error) { } or = append(or, p) } - predicates = append(predicates, filehistory.Or(or...)) + predicates = append(predicates, event.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -16900,7 +18910,7 @@ func (i *FileHistoryWhereInput) P() (predicate.FileHistory, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.FileHistory, 0, n) + and := make([]predicate.Event, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -16908,899 +18918,14495 @@ func (i *FileHistoryWhereInput) P() (predicate.FileHistory, error) { } and = append(and, p) } - predicates = append(predicates, filehistory.And(and...)) + predicates = append(predicates, event.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, filehistory.IDEQ(*i.ID)) + predicates = append(predicates, event.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, filehistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, event.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, filehistory.IDIn(i.IDIn...)) + predicates = append(predicates, event.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, filehistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, event.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, filehistory.IDGT(*i.IDGT)) + predicates = append(predicates, event.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, filehistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, event.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, filehistory.IDLT(*i.IDLT)) + predicates = append(predicates, event.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, filehistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, event.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, filehistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, event.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, filehistory.IDContainsFold(*i.IDContainsFold)) - } - if i.HistoryTime != nil { - predicates = append(predicates, filehistory.HistoryTimeEQ(*i.HistoryTime)) - } - if i.HistoryTimeNEQ != nil { - predicates = append(predicates, filehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) - } - if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, filehistory.HistoryTimeIn(i.HistoryTimeIn...)) - } - if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, filehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) - } - if i.HistoryTimeGT != nil { - predicates = append(predicates, filehistory.HistoryTimeGT(*i.HistoryTimeGT)) - } - if i.HistoryTimeGTE != nil { - predicates = append(predicates, filehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) - } - if i.HistoryTimeLT != nil { - predicates = append(predicates, filehistory.HistoryTimeLT(*i.HistoryTimeLT)) - } - if i.HistoryTimeLTE != nil { - predicates = append(predicates, filehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) - } - if i.Ref != nil { - predicates = append(predicates, filehistory.RefEQ(*i.Ref)) - } - if i.RefNEQ != nil { - predicates = append(predicates, filehistory.RefNEQ(*i.RefNEQ)) - } - if len(i.RefIn) > 0 { - predicates = append(predicates, filehistory.RefIn(i.RefIn...)) - } - if len(i.RefNotIn) > 0 { - predicates = append(predicates, filehistory.RefNotIn(i.RefNotIn...)) - } - if i.RefGT != nil { - predicates = append(predicates, filehistory.RefGT(*i.RefGT)) - } - if i.RefGTE != nil { - predicates = append(predicates, filehistory.RefGTE(*i.RefGTE)) - } - if i.RefLT != nil { - predicates = append(predicates, filehistory.RefLT(*i.RefLT)) - } - if i.RefLTE != nil { - predicates = append(predicates, filehistory.RefLTE(*i.RefLTE)) - } - if i.RefContains != nil { - predicates = append(predicates, filehistory.RefContains(*i.RefContains)) - } - if i.RefHasPrefix != nil { - predicates = append(predicates, filehistory.RefHasPrefix(*i.RefHasPrefix)) - } - if i.RefHasSuffix != nil { - predicates = append(predicates, filehistory.RefHasSuffix(*i.RefHasSuffix)) - } - if i.RefIsNil { - predicates = append(predicates, filehistory.RefIsNil()) - } - if i.RefNotNil { - predicates = append(predicates, filehistory.RefNotNil()) - } - if i.RefEqualFold != nil { - predicates = append(predicates, filehistory.RefEqualFold(*i.RefEqualFold)) - } - if i.RefContainsFold != nil { - predicates = append(predicates, filehistory.RefContainsFold(*i.RefContainsFold)) - } - if i.Operation != nil { - predicates = append(predicates, filehistory.OperationEQ(*i.Operation)) - } - if i.OperationNEQ != nil { - predicates = append(predicates, filehistory.OperationNEQ(*i.OperationNEQ)) - } - if len(i.OperationIn) > 0 { - predicates = append(predicates, filehistory.OperationIn(i.OperationIn...)) - } - if len(i.OperationNotIn) > 0 { - predicates = append(predicates, filehistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, event.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, filehistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, event.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, filehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, event.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, filehistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, event.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, filehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, event.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, filehistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, event.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, filehistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, event.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, filehistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, event.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, filehistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, event.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, filehistory.CreatedAtIsNil()) + predicates = append(predicates, event.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, filehistory.CreatedAtNotNil()) + predicates = append(predicates, event.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, filehistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, event.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, filehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, event.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, filehistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, event.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, filehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, event.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, filehistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, event.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, filehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, event.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, filehistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, event.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, filehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, event.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, filehistory.UpdatedAtIsNil()) + predicates = append(predicates, event.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, filehistory.UpdatedAtNotNil()) + predicates = append(predicates, event.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, filehistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, event.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, filehistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, event.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, filehistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, event.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, filehistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, event.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, filehistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, event.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, filehistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, event.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, filehistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, event.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, filehistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, event.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, filehistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, event.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, filehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, event.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, filehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, event.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, filehistory.CreatedByIsNil()) + predicates = append(predicates, event.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, filehistory.CreatedByNotNil()) + predicates = append(predicates, event.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, filehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, event.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, filehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, event.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, filehistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, event.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, filehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, event.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, filehistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, event.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, filehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, event.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, filehistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, event.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, filehistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, event.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, filehistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, event.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, filehistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, event.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, filehistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, event.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, filehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, event.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, filehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, event.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, filehistory.UpdatedByIsNil()) + predicates = append(predicates, event.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, filehistory.UpdatedByNotNil()) + predicates = append(predicates, event.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, filehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, event.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, filehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) - } - if i.DeletedAt != nil { - predicates = append(predicates, filehistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, event.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } - if i.DeletedAtNEQ != nil { - predicates = append(predicates, filehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + if i.EventID != nil { + predicates = append(predicates, event.EventIDEQ(*i.EventID)) } - if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, filehistory.DeletedAtIn(i.DeletedAtIn...)) + if i.EventIDNEQ != nil { + predicates = append(predicates, event.EventIDNEQ(*i.EventIDNEQ)) } - if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, filehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + if len(i.EventIDIn) > 0 { + predicates = append(predicates, event.EventIDIn(i.EventIDIn...)) } - if i.DeletedAtGT != nil { - predicates = append(predicates, filehistory.DeletedAtGT(*i.DeletedAtGT)) + if len(i.EventIDNotIn) > 0 { + predicates = append(predicates, event.EventIDNotIn(i.EventIDNotIn...)) } - if i.DeletedAtGTE != nil { - predicates = append(predicates, filehistory.DeletedAtGTE(*i.DeletedAtGTE)) + if i.EventIDGT != nil { + predicates = append(predicates, event.EventIDGT(*i.EventIDGT)) } - if i.DeletedAtLT != nil { - predicates = append(predicates, filehistory.DeletedAtLT(*i.DeletedAtLT)) + if i.EventIDGTE != nil { + predicates = append(predicates, event.EventIDGTE(*i.EventIDGTE)) } - if i.DeletedAtLTE != nil { - predicates = append(predicates, filehistory.DeletedAtLTE(*i.DeletedAtLTE)) + if i.EventIDLT != nil { + predicates = append(predicates, event.EventIDLT(*i.EventIDLT)) } - if i.DeletedAtIsNil { - predicates = append(predicates, filehistory.DeletedAtIsNil()) + if i.EventIDLTE != nil { + predicates = append(predicates, event.EventIDLTE(*i.EventIDLTE)) } - if i.DeletedAtNotNil { - predicates = append(predicates, filehistory.DeletedAtNotNil()) + if i.EventIDContains != nil { + predicates = append(predicates, event.EventIDContains(*i.EventIDContains)) } - if i.DeletedBy != nil { - predicates = append(predicates, filehistory.DeletedByEQ(*i.DeletedBy)) + if i.EventIDHasPrefix != nil { + predicates = append(predicates, event.EventIDHasPrefix(*i.EventIDHasPrefix)) } - if i.DeletedByNEQ != nil { - predicates = append(predicates, filehistory.DeletedByNEQ(*i.DeletedByNEQ)) + if i.EventIDHasSuffix != nil { + predicates = append(predicates, event.EventIDHasSuffix(*i.EventIDHasSuffix)) } - if len(i.DeletedByIn) > 0 { - predicates = append(predicates, filehistory.DeletedByIn(i.DeletedByIn...)) + if i.EventIDIsNil { + predicates = append(predicates, event.EventIDIsNil()) } - if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, filehistory.DeletedByNotIn(i.DeletedByNotIn...)) + if i.EventIDNotNil { + predicates = append(predicates, event.EventIDNotNil()) } - if i.DeletedByGT != nil { - predicates = append(predicates, filehistory.DeletedByGT(*i.DeletedByGT)) + if i.EventIDEqualFold != nil { + predicates = append(predicates, event.EventIDEqualFold(*i.EventIDEqualFold)) } - if i.DeletedByGTE != nil { - predicates = append(predicates, filehistory.DeletedByGTE(*i.DeletedByGTE)) + if i.EventIDContainsFold != nil { + predicates = append(predicates, event.EventIDContainsFold(*i.EventIDContainsFold)) } - if i.DeletedByLT != nil { - predicates = append(predicates, filehistory.DeletedByLT(*i.DeletedByLT)) + if i.CorrelationID != nil { + predicates = append(predicates, event.CorrelationIDEQ(*i.CorrelationID)) } - if i.DeletedByLTE != nil { - predicates = append(predicates, filehistory.DeletedByLTE(*i.DeletedByLTE)) + if i.CorrelationIDNEQ != nil { + predicates = append(predicates, event.CorrelationIDNEQ(*i.CorrelationIDNEQ)) } - if i.DeletedByContains != nil { - predicates = append(predicates, filehistory.DeletedByContains(*i.DeletedByContains)) + if len(i.CorrelationIDIn) > 0 { + predicates = append(predicates, event.CorrelationIDIn(i.CorrelationIDIn...)) } - if i.DeletedByHasPrefix != nil { - predicates = append(predicates, filehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + if len(i.CorrelationIDNotIn) > 0 { + predicates = append(predicates, event.CorrelationIDNotIn(i.CorrelationIDNotIn...)) } - if i.DeletedByHasSuffix != nil { - predicates = append(predicates, filehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + if i.CorrelationIDGT != nil { + predicates = append(predicates, event.CorrelationIDGT(*i.CorrelationIDGT)) } - if i.DeletedByIsNil { - predicates = append(predicates, filehistory.DeletedByIsNil()) + if i.CorrelationIDGTE != nil { + predicates = append(predicates, event.CorrelationIDGTE(*i.CorrelationIDGTE)) } - if i.DeletedByNotNil { - predicates = append(predicates, filehistory.DeletedByNotNil()) + if i.CorrelationIDLT != nil { + predicates = append(predicates, event.CorrelationIDLT(*i.CorrelationIDLT)) } - if i.DeletedByEqualFold != nil { - predicates = append(predicates, filehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + if i.CorrelationIDLTE != nil { + predicates = append(predicates, event.CorrelationIDLTE(*i.CorrelationIDLTE)) } - if i.DeletedByContainsFold != nil { - predicates = append(predicates, filehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + if i.CorrelationIDContains != nil { + predicates = append(predicates, event.CorrelationIDContains(*i.CorrelationIDContains)) } - if i.ProvidedFileName != nil { - predicates = append(predicates, filehistory.ProvidedFileNameEQ(*i.ProvidedFileName)) + if i.CorrelationIDHasPrefix != nil { + predicates = append(predicates, event.CorrelationIDHasPrefix(*i.CorrelationIDHasPrefix)) } - if i.ProvidedFileNameNEQ != nil { - predicates = append(predicates, filehistory.ProvidedFileNameNEQ(*i.ProvidedFileNameNEQ)) + if i.CorrelationIDHasSuffix != nil { + predicates = append(predicates, event.CorrelationIDHasSuffix(*i.CorrelationIDHasSuffix)) } - if len(i.ProvidedFileNameIn) > 0 { - predicates = append(predicates, filehistory.ProvidedFileNameIn(i.ProvidedFileNameIn...)) + if i.CorrelationIDIsNil { + predicates = append(predicates, event.CorrelationIDIsNil()) } - if len(i.ProvidedFileNameNotIn) > 0 { - predicates = append(predicates, filehistory.ProvidedFileNameNotIn(i.ProvidedFileNameNotIn...)) + if i.CorrelationIDNotNil { + predicates = append(predicates, event.CorrelationIDNotNil()) } - if i.ProvidedFileNameGT != nil { - predicates = append(predicates, filehistory.ProvidedFileNameGT(*i.ProvidedFileNameGT)) + if i.CorrelationIDEqualFold != nil { + predicates = append(predicates, event.CorrelationIDEqualFold(*i.CorrelationIDEqualFold)) } - if i.ProvidedFileNameGTE != nil { - predicates = append(predicates, filehistory.ProvidedFileNameGTE(*i.ProvidedFileNameGTE)) + if i.CorrelationIDContainsFold != nil { + predicates = append(predicates, event.CorrelationIDContainsFold(*i.CorrelationIDContainsFold)) } - if i.ProvidedFileNameLT != nil { - predicates = append(predicates, filehistory.ProvidedFileNameLT(*i.ProvidedFileNameLT)) + if i.EventType != nil { + predicates = append(predicates, event.EventTypeEQ(*i.EventType)) } - if i.ProvidedFileNameLTE != nil { - predicates = append(predicates, filehistory.ProvidedFileNameLTE(*i.ProvidedFileNameLTE)) + if i.EventTypeNEQ != nil { + predicates = append(predicates, event.EventTypeNEQ(*i.EventTypeNEQ)) } - if i.ProvidedFileNameContains != nil { - predicates = append(predicates, filehistory.ProvidedFileNameContains(*i.ProvidedFileNameContains)) + if len(i.EventTypeIn) > 0 { + predicates = append(predicates, event.EventTypeIn(i.EventTypeIn...)) } - if i.ProvidedFileNameHasPrefix != nil { - predicates = append(predicates, filehistory.ProvidedFileNameHasPrefix(*i.ProvidedFileNameHasPrefix)) + if len(i.EventTypeNotIn) > 0 { + predicates = append(predicates, event.EventTypeNotIn(i.EventTypeNotIn...)) } - if i.ProvidedFileNameHasSuffix != nil { - predicates = append(predicates, filehistory.ProvidedFileNameHasSuffix(*i.ProvidedFileNameHasSuffix)) + if i.EventTypeGT != nil { + predicates = append(predicates, event.EventTypeGT(*i.EventTypeGT)) } - if i.ProvidedFileNameEqualFold != nil { - predicates = append(predicates, filehistory.ProvidedFileNameEqualFold(*i.ProvidedFileNameEqualFold)) + if i.EventTypeGTE != nil { + predicates = append(predicates, event.EventTypeGTE(*i.EventTypeGTE)) } - if i.ProvidedFileNameContainsFold != nil { - predicates = append(predicates, filehistory.ProvidedFileNameContainsFold(*i.ProvidedFileNameContainsFold)) + if i.EventTypeLT != nil { + predicates = append(predicates, event.EventTypeLT(*i.EventTypeLT)) } - if i.ProvidedFileExtension != nil { - predicates = append(predicates, filehistory.ProvidedFileExtensionEQ(*i.ProvidedFileExtension)) + if i.EventTypeLTE != nil { + predicates = append(predicates, event.EventTypeLTE(*i.EventTypeLTE)) } - if i.ProvidedFileExtensionNEQ != nil { - predicates = append(predicates, filehistory.ProvidedFileExtensionNEQ(*i.ProvidedFileExtensionNEQ)) + if i.EventTypeContains != nil { + predicates = append(predicates, event.EventTypeContains(*i.EventTypeContains)) } - if len(i.ProvidedFileExtensionIn) > 0 { - predicates = append(predicates, filehistory.ProvidedFileExtensionIn(i.ProvidedFileExtensionIn...)) + if i.EventTypeHasPrefix != nil { + predicates = append(predicates, event.EventTypeHasPrefix(*i.EventTypeHasPrefix)) } - if len(i.ProvidedFileExtensionNotIn) > 0 { - predicates = append(predicates, filehistory.ProvidedFileExtensionNotIn(i.ProvidedFileExtensionNotIn...)) + if i.EventTypeHasSuffix != nil { + predicates = append(predicates, event.EventTypeHasSuffix(*i.EventTypeHasSuffix)) } - if i.ProvidedFileExtensionGT != nil { - predicates = append(predicates, filehistory.ProvidedFileExtensionGT(*i.ProvidedFileExtensionGT)) + if i.EventTypeEqualFold != nil { + predicates = append(predicates, event.EventTypeEqualFold(*i.EventTypeEqualFold)) } - if i.ProvidedFileExtensionGTE != nil { - predicates = append(predicates, filehistory.ProvidedFileExtensionGTE(*i.ProvidedFileExtensionGTE)) + if i.EventTypeContainsFold != nil { + predicates = append(predicates, event.EventTypeContainsFold(*i.EventTypeContainsFold)) } - if i.ProvidedFileExtensionLT != nil { - predicates = append(predicates, filehistory.ProvidedFileExtensionLT(*i.ProvidedFileExtensionLT)) + + if i.HasUser != nil { + p := event.HasUser() + if !*i.HasUser { + p = event.Not(p) + } + predicates = append(predicates, p) } - if i.ProvidedFileExtensionLTE != nil { - predicates = append(predicates, filehistory.ProvidedFileExtensionLTE(*i.ProvidedFileExtensionLTE)) + if len(i.HasUserWith) > 0 { + with := make([]predicate.User, 0, len(i.HasUserWith)) + 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, event.HasUserWith(with...)) } - if i.ProvidedFileExtensionContains != nil { - predicates = append(predicates, filehistory.ProvidedFileExtensionContains(*i.ProvidedFileExtensionContains)) + if i.HasGroup != nil { + p := event.HasGroup() + if !*i.HasGroup { + p = event.Not(p) + } + predicates = append(predicates, p) } - if i.ProvidedFileExtensionHasPrefix != nil { - predicates = append(predicates, filehistory.ProvidedFileExtensionHasPrefix(*i.ProvidedFileExtensionHasPrefix)) + if len(i.HasGroupWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasGroupWith)) + 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, event.HasGroupWith(with...)) } - if i.ProvidedFileExtensionHasSuffix != nil { - predicates = append(predicates, filehistory.ProvidedFileExtensionHasSuffix(*i.ProvidedFileExtensionHasSuffix)) + if i.HasIntegration != nil { + p := event.HasIntegration() + if !*i.HasIntegration { + p = event.Not(p) + } + predicates = append(predicates, p) } - if i.ProvidedFileExtensionEqualFold != nil { - predicates = append(predicates, filehistory.ProvidedFileExtensionEqualFold(*i.ProvidedFileExtensionEqualFold)) + if len(i.HasIntegrationWith) > 0 { + with := make([]predicate.Integration, 0, len(i.HasIntegrationWith)) + for _, w := range i.HasIntegrationWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasIntegrationWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasIntegrationWith(with...)) } - if i.ProvidedFileExtensionContainsFold != nil { - predicates = append(predicates, filehistory.ProvidedFileExtensionContainsFold(*i.ProvidedFileExtensionContainsFold)) + if i.HasOrganization != nil { + p := event.HasOrganization() + if !*i.HasOrganization { + p = event.Not(p) + } + predicates = append(predicates, p) } - if i.ProvidedFileSize != nil { - predicates = append(predicates, filehistory.ProvidedFileSizeEQ(*i.ProvidedFileSize)) + if len(i.HasOrganizationWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOrganizationWith)) + for _, w := range i.HasOrganizationWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOrganizationWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasOrganizationWith(with...)) } - if i.ProvidedFileSizeNEQ != nil { - predicates = append(predicates, filehistory.ProvidedFileSizeNEQ(*i.ProvidedFileSizeNEQ)) + if i.HasInvite != nil { + p := event.HasInvite() + if !*i.HasInvite { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasInviteWith) > 0 { + with := make([]predicate.Invite, 0, len(i.HasInviteWith)) + for _, w := range i.HasInviteWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasInviteWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasInviteWith(with...)) + } + if i.HasFeature != nil { + p := event.HasFeature() + if !*i.HasFeature { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasFeatureWith) > 0 { + with := make([]predicate.Feature, 0, len(i.HasFeatureWith)) + for _, w := range i.HasFeatureWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFeatureWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasFeatureWith(with...)) + } + if i.HasEntitlementplan != nil { + p := event.HasEntitlementplan() + if !*i.HasEntitlementplan { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEntitlementplanWith) > 0 { + with := make([]predicate.EntitlementPlan, 0, len(i.HasEntitlementplanWith)) + for _, w := range i.HasEntitlementplanWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntitlementplanWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasEntitlementplanWith(with...)) + } + if i.HasEntitlementplanfeature != nil { + p := event.HasEntitlementplanfeature() + if !*i.HasEntitlementplanfeature { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEntitlementplanfeatureWith) > 0 { + with := make([]predicate.EntitlementPlanFeature, 0, len(i.HasEntitlementplanfeatureWith)) + for _, w := range i.HasEntitlementplanfeatureWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntitlementplanfeatureWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasEntitlementplanfeatureWith(with...)) + } + if i.HasPersonalAccessToken != nil { + p := event.HasPersonalAccessToken() + if !*i.HasPersonalAccessToken { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasPersonalAccessTokenWith) > 0 { + with := make([]predicate.PersonalAccessToken, 0, len(i.HasPersonalAccessTokenWith)) + for _, w := range i.HasPersonalAccessTokenWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasPersonalAccessTokenWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasPersonalAccessTokenWith(with...)) + } + if i.HasOauth2token != nil { + p := event.HasOauth2token() + if !*i.HasOauth2token { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOauth2tokenWith) > 0 { + with := make([]predicate.OhAuthTooToken, 0, len(i.HasOauth2tokenWith)) + for _, w := range i.HasOauth2tokenWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOauth2tokenWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasOauth2tokenWith(with...)) + } + if i.HasHush != nil { + p := event.HasHush() + if !*i.HasHush { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasHushWith) > 0 { + with := make([]predicate.Hush, 0, len(i.HasHushWith)) + for _, w := range i.HasHushWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasHushWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasHushWith(with...)) + } + if i.HasOrgmembership != nil { + p := event.HasOrgmembership() + if !*i.HasOrgmembership { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOrgmembershipWith) > 0 { + with := make([]predicate.OrgMembership, 0, len(i.HasOrgmembershipWith)) + for _, w := range i.HasOrgmembershipWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOrgmembershipWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasOrgmembershipWith(with...)) + } + if i.HasGroupmembership != nil { + p := event.HasGroupmembership() + if !*i.HasGroupmembership { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasGroupmembershipWith) > 0 { + with := make([]predicate.GroupMembership, 0, len(i.HasGroupmembershipWith)) + for _, w := range i.HasGroupmembershipWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasGroupmembershipWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasGroupmembershipWith(with...)) + } + if i.HasEntitlement != nil { + p := event.HasEntitlement() + if !*i.HasEntitlement { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEntitlementWith) > 0 { + with := make([]predicate.Entitlement, 0, len(i.HasEntitlementWith)) + for _, w := range i.HasEntitlementWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntitlementWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasEntitlementWith(with...)) + } + if i.HasWebhook != nil { + p := event.HasWebhook() + if !*i.HasWebhook { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasWebhookWith) > 0 { + with := make([]predicate.Webhook, 0, len(i.HasWebhookWith)) + for _, w := range i.HasWebhookWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasWebhookWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasWebhookWith(with...)) + } + if i.HasSubscriber != nil { + p := event.HasSubscriber() + if !*i.HasSubscriber { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasSubscriberWith) > 0 { + with := make([]predicate.Subscriber, 0, len(i.HasSubscriberWith)) + 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, event.HasSubscriberWith(with...)) + } + if i.HasFile != nil { + p := event.HasFile() + if !*i.HasFile { + p = event.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasFileWith) > 0 { + with := make([]predicate.File, 0, len(i.HasFileWith)) + for _, w := range i.HasFileWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFileWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, event.HasFileWith(with...)) + } + switch len(predicates) { + case 0: + return nil, ErrEmptyEventWhereInput + case 1: + return predicates[0], nil + default: + return event.And(predicates...), nil + } +} + +// EventHistoryWhereInput represents a where input for filtering EventHistory queries. +type EventHistoryWhereInput struct { + Predicates []predicate.EventHistory `json:"-"` + Not *EventHistoryWhereInput `json:"not,omitempty"` + Or []*EventHistoryWhereInput `json:"or,omitempty"` + And []*EventHistoryWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "event_id" field predicates. + EventID *string `json:"eventID,omitempty"` + EventIDNEQ *string `json:"eventIDNEQ,omitempty"` + EventIDIn []string `json:"eventIDIn,omitempty"` + EventIDNotIn []string `json:"eventIDNotIn,omitempty"` + EventIDGT *string `json:"eventIDGT,omitempty"` + EventIDGTE *string `json:"eventIDGTE,omitempty"` + EventIDLT *string `json:"eventIDLT,omitempty"` + EventIDLTE *string `json:"eventIDLTE,omitempty"` + EventIDContains *string `json:"eventIDContains,omitempty"` + EventIDHasPrefix *string `json:"eventIDHasPrefix,omitempty"` + EventIDHasSuffix *string `json:"eventIDHasSuffix,omitempty"` + EventIDIsNil bool `json:"eventIDIsNil,omitempty"` + EventIDNotNil bool `json:"eventIDNotNil,omitempty"` + EventIDEqualFold *string `json:"eventIDEqualFold,omitempty"` + EventIDContainsFold *string `json:"eventIDContainsFold,omitempty"` + + // "correlation_id" field predicates. + CorrelationID *string `json:"correlationID,omitempty"` + CorrelationIDNEQ *string `json:"correlationIDNEQ,omitempty"` + CorrelationIDIn []string `json:"correlationIDIn,omitempty"` + CorrelationIDNotIn []string `json:"correlationIDNotIn,omitempty"` + CorrelationIDGT *string `json:"correlationIDGT,omitempty"` + CorrelationIDGTE *string `json:"correlationIDGTE,omitempty"` + CorrelationIDLT *string `json:"correlationIDLT,omitempty"` + CorrelationIDLTE *string `json:"correlationIDLTE,omitempty"` + CorrelationIDContains *string `json:"correlationIDContains,omitempty"` + CorrelationIDHasPrefix *string `json:"correlationIDHasPrefix,omitempty"` + CorrelationIDHasSuffix *string `json:"correlationIDHasSuffix,omitempty"` + CorrelationIDIsNil bool `json:"correlationIDIsNil,omitempty"` + CorrelationIDNotNil bool `json:"correlationIDNotNil,omitempty"` + CorrelationIDEqualFold *string `json:"correlationIDEqualFold,omitempty"` + CorrelationIDContainsFold *string `json:"correlationIDContainsFold,omitempty"` + + // "event_type" field predicates. + EventType *string `json:"eventType,omitempty"` + EventTypeNEQ *string `json:"eventTypeNEQ,omitempty"` + EventTypeIn []string `json:"eventTypeIn,omitempty"` + EventTypeNotIn []string `json:"eventTypeNotIn,omitempty"` + EventTypeGT *string `json:"eventTypeGT,omitempty"` + EventTypeGTE *string `json:"eventTypeGTE,omitempty"` + EventTypeLT *string `json:"eventTypeLT,omitempty"` + EventTypeLTE *string `json:"eventTypeLTE,omitempty"` + EventTypeContains *string `json:"eventTypeContains,omitempty"` + EventTypeHasPrefix *string `json:"eventTypeHasPrefix,omitempty"` + EventTypeHasSuffix *string `json:"eventTypeHasSuffix,omitempty"` + EventTypeEqualFold *string `json:"eventTypeEqualFold,omitempty"` + EventTypeContainsFold *string `json:"eventTypeContainsFold,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *EventHistoryWhereInput) AddPredicates(predicates ...predicate.EventHistory) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the EventHistoryWhereInput filter on the EventHistoryQuery builder. +func (i *EventHistoryWhereInput) Filter(q *EventHistoryQuery) (*EventHistoryQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyEventHistoryWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyEventHistoryWhereInput is returned in case the EventHistoryWhereInput is empty. +var ErrEmptyEventHistoryWhereInput = errors.New("generated: empty predicate EventHistoryWhereInput") + +// P returns a predicate for filtering eventhistories. +// An error is returned if the input is empty or invalid. +func (i *EventHistoryWhereInput) P() (predicate.EventHistory, error) { + var predicates []predicate.EventHistory + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, eventhistory.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.EventHistory, 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, eventhistory.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.EventHistory, 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, eventhistory.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, eventhistory.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, eventhistory.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, eventhistory.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, eventhistory.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, eventhistory.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, eventhistory.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, eventhistory.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, eventhistory.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, eventhistory.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, eventhistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, eventhistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, eventhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, eventhistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, eventhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, eventhistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, eventhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, eventhistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, eventhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, eventhistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, eventhistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, eventhistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, eventhistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, eventhistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, eventhistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, eventhistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, eventhistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, eventhistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, eventhistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, eventhistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, eventhistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, eventhistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, eventhistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, eventhistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, eventhistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, eventhistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, eventhistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, eventhistory.OperationNotIn(i.OperationNotIn...)) + } + if i.CreatedAt != nil { + predicates = append(predicates, eventhistory.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, eventhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, eventhistory.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, eventhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, eventhistory.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, eventhistory.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, eventhistory.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, eventhistory.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, eventhistory.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, eventhistory.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, eventhistory.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, eventhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, eventhistory.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, eventhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, eventhistory.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, eventhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, eventhistory.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, eventhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, eventhistory.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, eventhistory.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, eventhistory.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, eventhistory.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, eventhistory.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, eventhistory.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, eventhistory.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, eventhistory.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, eventhistory.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, eventhistory.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, eventhistory.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, eventhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, eventhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, eventhistory.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, eventhistory.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, eventhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, eventhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, eventhistory.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, eventhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, eventhistory.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, eventhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, eventhistory.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, eventhistory.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, eventhistory.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, eventhistory.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, eventhistory.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, eventhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, eventhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, eventhistory.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, eventhistory.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, eventhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, eventhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.EventID != nil { + predicates = append(predicates, eventhistory.EventIDEQ(*i.EventID)) + } + if i.EventIDNEQ != nil { + predicates = append(predicates, eventhistory.EventIDNEQ(*i.EventIDNEQ)) + } + if len(i.EventIDIn) > 0 { + predicates = append(predicates, eventhistory.EventIDIn(i.EventIDIn...)) + } + if len(i.EventIDNotIn) > 0 { + predicates = append(predicates, eventhistory.EventIDNotIn(i.EventIDNotIn...)) + } + if i.EventIDGT != nil { + predicates = append(predicates, eventhistory.EventIDGT(*i.EventIDGT)) + } + if i.EventIDGTE != nil { + predicates = append(predicates, eventhistory.EventIDGTE(*i.EventIDGTE)) + } + if i.EventIDLT != nil { + predicates = append(predicates, eventhistory.EventIDLT(*i.EventIDLT)) + } + if i.EventIDLTE != nil { + predicates = append(predicates, eventhistory.EventIDLTE(*i.EventIDLTE)) + } + if i.EventIDContains != nil { + predicates = append(predicates, eventhistory.EventIDContains(*i.EventIDContains)) + } + if i.EventIDHasPrefix != nil { + predicates = append(predicates, eventhistory.EventIDHasPrefix(*i.EventIDHasPrefix)) + } + if i.EventIDHasSuffix != nil { + predicates = append(predicates, eventhistory.EventIDHasSuffix(*i.EventIDHasSuffix)) + } + if i.EventIDIsNil { + predicates = append(predicates, eventhistory.EventIDIsNil()) + } + if i.EventIDNotNil { + predicates = append(predicates, eventhistory.EventIDNotNil()) + } + if i.EventIDEqualFold != nil { + predicates = append(predicates, eventhistory.EventIDEqualFold(*i.EventIDEqualFold)) + } + if i.EventIDContainsFold != nil { + predicates = append(predicates, eventhistory.EventIDContainsFold(*i.EventIDContainsFold)) + } + if i.CorrelationID != nil { + predicates = append(predicates, eventhistory.CorrelationIDEQ(*i.CorrelationID)) + } + if i.CorrelationIDNEQ != nil { + predicates = append(predicates, eventhistory.CorrelationIDNEQ(*i.CorrelationIDNEQ)) + } + if len(i.CorrelationIDIn) > 0 { + predicates = append(predicates, eventhistory.CorrelationIDIn(i.CorrelationIDIn...)) + } + if len(i.CorrelationIDNotIn) > 0 { + predicates = append(predicates, eventhistory.CorrelationIDNotIn(i.CorrelationIDNotIn...)) + } + if i.CorrelationIDGT != nil { + predicates = append(predicates, eventhistory.CorrelationIDGT(*i.CorrelationIDGT)) + } + if i.CorrelationIDGTE != nil { + predicates = append(predicates, eventhistory.CorrelationIDGTE(*i.CorrelationIDGTE)) + } + if i.CorrelationIDLT != nil { + predicates = append(predicates, eventhistory.CorrelationIDLT(*i.CorrelationIDLT)) + } + if i.CorrelationIDLTE != nil { + predicates = append(predicates, eventhistory.CorrelationIDLTE(*i.CorrelationIDLTE)) + } + if i.CorrelationIDContains != nil { + predicates = append(predicates, eventhistory.CorrelationIDContains(*i.CorrelationIDContains)) + } + if i.CorrelationIDHasPrefix != nil { + predicates = append(predicates, eventhistory.CorrelationIDHasPrefix(*i.CorrelationIDHasPrefix)) + } + if i.CorrelationIDHasSuffix != nil { + predicates = append(predicates, eventhistory.CorrelationIDHasSuffix(*i.CorrelationIDHasSuffix)) + } + if i.CorrelationIDIsNil { + predicates = append(predicates, eventhistory.CorrelationIDIsNil()) + } + if i.CorrelationIDNotNil { + predicates = append(predicates, eventhistory.CorrelationIDNotNil()) + } + if i.CorrelationIDEqualFold != nil { + predicates = append(predicates, eventhistory.CorrelationIDEqualFold(*i.CorrelationIDEqualFold)) + } + if i.CorrelationIDContainsFold != nil { + predicates = append(predicates, eventhistory.CorrelationIDContainsFold(*i.CorrelationIDContainsFold)) + } + if i.EventType != nil { + predicates = append(predicates, eventhistory.EventTypeEQ(*i.EventType)) + } + if i.EventTypeNEQ != nil { + predicates = append(predicates, eventhistory.EventTypeNEQ(*i.EventTypeNEQ)) + } + if len(i.EventTypeIn) > 0 { + predicates = append(predicates, eventhistory.EventTypeIn(i.EventTypeIn...)) + } + if len(i.EventTypeNotIn) > 0 { + predicates = append(predicates, eventhistory.EventTypeNotIn(i.EventTypeNotIn...)) + } + if i.EventTypeGT != nil { + predicates = append(predicates, eventhistory.EventTypeGT(*i.EventTypeGT)) + } + if i.EventTypeGTE != nil { + predicates = append(predicates, eventhistory.EventTypeGTE(*i.EventTypeGTE)) + } + if i.EventTypeLT != nil { + predicates = append(predicates, eventhistory.EventTypeLT(*i.EventTypeLT)) + } + if i.EventTypeLTE != nil { + predicates = append(predicates, eventhistory.EventTypeLTE(*i.EventTypeLTE)) + } + if i.EventTypeContains != nil { + predicates = append(predicates, eventhistory.EventTypeContains(*i.EventTypeContains)) + } + if i.EventTypeHasPrefix != nil { + predicates = append(predicates, eventhistory.EventTypeHasPrefix(*i.EventTypeHasPrefix)) + } + if i.EventTypeHasSuffix != nil { + predicates = append(predicates, eventhistory.EventTypeHasSuffix(*i.EventTypeHasSuffix)) + } + if i.EventTypeEqualFold != nil { + predicates = append(predicates, eventhistory.EventTypeEqualFold(*i.EventTypeEqualFold)) + } + if i.EventTypeContainsFold != nil { + predicates = append(predicates, eventhistory.EventTypeContainsFold(*i.EventTypeContainsFold)) + } + + switch len(predicates) { + case 0: + return nil, ErrEmptyEventHistoryWhereInput + case 1: + return predicates[0], nil + default: + return eventhistory.And(predicates...), nil + } +} + +// FeatureWhereInput represents a where input for filtering Feature queries. +type FeatureWhereInput struct { + Predicates []predicate.Feature `json:"-"` + Not *FeatureWhereInput `json:"not,omitempty"` + Or []*FeatureWhereInput `json:"or,omitempty"` + And []*FeatureWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + + // "display_name" field predicates. + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGT *string `json:"displayNameGT,omitempty"` + DisplayNameGTE *string `json:"displayNameGTE,omitempty"` + DisplayNameLT *string `json:"displayNameLT,omitempty"` + DisplayNameLTE *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameIsNil bool `json:"displayNameIsNil,omitempty"` + DisplayNameNotNil bool `json:"displayNameNotNil,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + + // "enabled" field predicates. + Enabled *bool `json:"enabled,omitempty"` + EnabledNEQ *bool `json:"enabledNEQ,omitempty"` + + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` + + // "owner" edge predicates. + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + + // "plans" edge predicates. + HasPlans *bool `json:"hasPlans,omitempty"` + HasPlansWith []*EntitlementPlanWhereInput `json:"hasPlansWith,omitempty"` + + // "events" edge predicates. + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + + // "features" edge predicates. + HasFeatures *bool `json:"hasFeatures,omitempty"` + HasFeaturesWith []*EntitlementPlanFeatureWhereInput `json:"hasFeaturesWith,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *FeatureWhereInput) AddPredicates(predicates ...predicate.Feature) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the FeatureWhereInput filter on the FeatureQuery builder. +func (i *FeatureWhereInput) Filter(q *FeatureQuery) (*FeatureQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyFeatureWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyFeatureWhereInput is returned in case the FeatureWhereInput is empty. +var ErrEmptyFeatureWhereInput = errors.New("generated: empty predicate FeatureWhereInput") + +// P returns a predicate for filtering features. +// An error is returned if the input is empty or invalid. +func (i *FeatureWhereInput) P() (predicate.Feature, error) { + var predicates []predicate.Feature + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, feature.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.Feature, 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, feature.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.Feature, 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, feature.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, feature.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, feature.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, feature.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, feature.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, feature.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, feature.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, feature.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, feature.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, feature.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, feature.IDContainsFold(*i.IDContainsFold)) + } + if i.CreatedAt != nil { + predicates = append(predicates, feature.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, feature.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, feature.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, feature.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, feature.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, feature.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, feature.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, feature.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, feature.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, feature.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, feature.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, feature.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, feature.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, feature.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, feature.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, feature.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, feature.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, feature.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, feature.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, feature.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, feature.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, feature.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, feature.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, feature.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, feature.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, feature.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, feature.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, feature.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, feature.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, feature.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, feature.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, feature.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, feature.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, feature.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, feature.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, feature.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, feature.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, feature.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, feature.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, feature.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, feature.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, feature.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, feature.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, feature.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, feature.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, feature.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, feature.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, feature.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, feature.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, feature.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, feature.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, feature.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, feature.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, feature.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, feature.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, feature.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, feature.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, feature.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, feature.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, feature.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, feature.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, feature.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, feature.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, feature.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, feature.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, feature.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, feature.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, feature.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, feature.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, feature.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, feature.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, feature.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, feature.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, feature.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, feature.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.OwnerID != nil { + predicates = append(predicates, feature.OwnerIDEQ(*i.OwnerID)) + } + if i.OwnerIDNEQ != nil { + predicates = append(predicates, feature.OwnerIDNEQ(*i.OwnerIDNEQ)) + } + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, feature.OwnerIDIn(i.OwnerIDIn...)) + } + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, feature.OwnerIDNotIn(i.OwnerIDNotIn...)) + } + if i.OwnerIDGT != nil { + predicates = append(predicates, feature.OwnerIDGT(*i.OwnerIDGT)) + } + if i.OwnerIDGTE != nil { + predicates = append(predicates, feature.OwnerIDGTE(*i.OwnerIDGTE)) + } + if i.OwnerIDLT != nil { + predicates = append(predicates, feature.OwnerIDLT(*i.OwnerIDLT)) + } + if i.OwnerIDLTE != nil { + predicates = append(predicates, feature.OwnerIDLTE(*i.OwnerIDLTE)) + } + if i.OwnerIDContains != nil { + predicates = append(predicates, feature.OwnerIDContains(*i.OwnerIDContains)) + } + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, feature.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + } + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, feature.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + } + if i.OwnerIDIsNil { + predicates = append(predicates, feature.OwnerIDIsNil()) + } + if i.OwnerIDNotNil { + predicates = append(predicates, feature.OwnerIDNotNil()) + } + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, feature.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + } + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, feature.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, feature.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, feature.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, feature.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, feature.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, feature.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, feature.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, feature.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, feature.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, feature.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, feature.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, feature.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, feature.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, feature.NameContainsFold(*i.NameContainsFold)) + } + if i.DisplayName != nil { + predicates = append(predicates, feature.DisplayNameEQ(*i.DisplayName)) + } + if i.DisplayNameNEQ != nil { + predicates = append(predicates, feature.DisplayNameNEQ(*i.DisplayNameNEQ)) + } + if len(i.DisplayNameIn) > 0 { + predicates = append(predicates, feature.DisplayNameIn(i.DisplayNameIn...)) + } + if len(i.DisplayNameNotIn) > 0 { + predicates = append(predicates, feature.DisplayNameNotIn(i.DisplayNameNotIn...)) + } + if i.DisplayNameGT != nil { + predicates = append(predicates, feature.DisplayNameGT(*i.DisplayNameGT)) + } + if i.DisplayNameGTE != nil { + predicates = append(predicates, feature.DisplayNameGTE(*i.DisplayNameGTE)) + } + if i.DisplayNameLT != nil { + predicates = append(predicates, feature.DisplayNameLT(*i.DisplayNameLT)) + } + if i.DisplayNameLTE != nil { + predicates = append(predicates, feature.DisplayNameLTE(*i.DisplayNameLTE)) + } + if i.DisplayNameContains != nil { + predicates = append(predicates, feature.DisplayNameContains(*i.DisplayNameContains)) + } + if i.DisplayNameHasPrefix != nil { + predicates = append(predicates, feature.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + } + if i.DisplayNameHasSuffix != nil { + predicates = append(predicates, feature.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + } + if i.DisplayNameIsNil { + predicates = append(predicates, feature.DisplayNameIsNil()) + } + if i.DisplayNameNotNil { + predicates = append(predicates, feature.DisplayNameNotNil()) + } + if i.DisplayNameEqualFold != nil { + predicates = append(predicates, feature.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + } + if i.DisplayNameContainsFold != nil { + predicates = append(predicates, feature.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + } + if i.Enabled != nil { + predicates = append(predicates, feature.EnabledEQ(*i.Enabled)) + } + if i.EnabledNEQ != nil { + predicates = append(predicates, feature.EnabledNEQ(*i.EnabledNEQ)) + } + if i.Description != nil { + predicates = append(predicates, feature.DescriptionEQ(*i.Description)) + } + if i.DescriptionNEQ != nil { + predicates = append(predicates, feature.DescriptionNEQ(*i.DescriptionNEQ)) + } + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, feature.DescriptionIn(i.DescriptionIn...)) + } + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, feature.DescriptionNotIn(i.DescriptionNotIn...)) + } + if i.DescriptionGT != nil { + predicates = append(predicates, feature.DescriptionGT(*i.DescriptionGT)) + } + if i.DescriptionGTE != nil { + predicates = append(predicates, feature.DescriptionGTE(*i.DescriptionGTE)) + } + if i.DescriptionLT != nil { + predicates = append(predicates, feature.DescriptionLT(*i.DescriptionLT)) + } + if i.DescriptionLTE != nil { + predicates = append(predicates, feature.DescriptionLTE(*i.DescriptionLTE)) + } + if i.DescriptionContains != nil { + predicates = append(predicates, feature.DescriptionContains(*i.DescriptionContains)) + } + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, feature.DescriptionHasPrefix(*i.DescriptionHasPrefix)) + } + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, feature.DescriptionHasSuffix(*i.DescriptionHasSuffix)) + } + if i.DescriptionIsNil { + predicates = append(predicates, feature.DescriptionIsNil()) + } + if i.DescriptionNotNil { + predicates = append(predicates, feature.DescriptionNotNil()) + } + if i.DescriptionEqualFold != nil { + predicates = append(predicates, feature.DescriptionEqualFold(*i.DescriptionEqualFold)) + } + if i.DescriptionContainsFold != nil { + predicates = append(predicates, feature.DescriptionContainsFold(*i.DescriptionContainsFold)) + } + + if i.HasOwner != nil { + p := feature.HasOwner() + if !*i.HasOwner { + p = feature.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOwnerWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) + 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, feature.HasOwnerWith(with...)) + } + if i.HasPlans != nil { + p := feature.HasPlans() + if !*i.HasPlans { + p = feature.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasPlansWith) > 0 { + with := make([]predicate.EntitlementPlan, 0, len(i.HasPlansWith)) + for _, w := range i.HasPlansWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasPlansWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, feature.HasPlansWith(with...)) + } + if i.HasEvents != nil { + p := feature.HasEvents() + if !*i.HasEvents { + p = feature.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEventsWith) > 0 { + with := make([]predicate.Event, 0, len(i.HasEventsWith)) + for _, w := range i.HasEventsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, feature.HasEventsWith(with...)) + } + if i.HasFeatures != nil { + p := feature.HasFeatures() + if !*i.HasFeatures { + p = feature.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasFeaturesWith) > 0 { + with := make([]predicate.EntitlementPlanFeature, 0, len(i.HasFeaturesWith)) + for _, w := range i.HasFeaturesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFeaturesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, feature.HasFeaturesWith(with...)) + } + switch len(predicates) { + case 0: + return nil, ErrEmptyFeatureWhereInput + case 1: + return predicates[0], nil + default: + return feature.And(predicates...), nil + } +} + +// FeatureHistoryWhereInput represents a where input for filtering FeatureHistory queries. +type FeatureHistoryWhereInput struct { + Predicates []predicate.FeatureHistory `json:"-"` + Not *FeatureHistoryWhereInput `json:"not,omitempty"` + Or []*FeatureHistoryWhereInput `json:"or,omitempty"` + And []*FeatureHistoryWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + + // "display_name" field predicates. + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGT *string `json:"displayNameGT,omitempty"` + DisplayNameGTE *string `json:"displayNameGTE,omitempty"` + DisplayNameLT *string `json:"displayNameLT,omitempty"` + DisplayNameLTE *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameIsNil bool `json:"displayNameIsNil,omitempty"` + DisplayNameNotNil bool `json:"displayNameNotNil,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + + // "enabled" field predicates. + Enabled *bool `json:"enabled,omitempty"` + EnabledNEQ *bool `json:"enabledNEQ,omitempty"` + + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *FeatureHistoryWhereInput) AddPredicates(predicates ...predicate.FeatureHistory) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the FeatureHistoryWhereInput filter on the FeatureHistoryQuery builder. +func (i *FeatureHistoryWhereInput) Filter(q *FeatureHistoryQuery) (*FeatureHistoryQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyFeatureHistoryWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyFeatureHistoryWhereInput is returned in case the FeatureHistoryWhereInput is empty. +var ErrEmptyFeatureHistoryWhereInput = errors.New("generated: empty predicate FeatureHistoryWhereInput") + +// P returns a predicate for filtering featurehistories. +// An error is returned if the input is empty or invalid. +func (i *FeatureHistoryWhereInput) P() (predicate.FeatureHistory, error) { + var predicates []predicate.FeatureHistory + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, featurehistory.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.FeatureHistory, 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, featurehistory.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.FeatureHistory, 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, featurehistory.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, featurehistory.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, featurehistory.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, featurehistory.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, featurehistory.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, featurehistory.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, featurehistory.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, featurehistory.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, featurehistory.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, featurehistory.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, featurehistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, featurehistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, featurehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, featurehistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, featurehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, featurehistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, featurehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, featurehistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, featurehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, featurehistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, featurehistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, featurehistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, featurehistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, featurehistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, featurehistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, featurehistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, featurehistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, featurehistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, featurehistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, featurehistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, featurehistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, featurehistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, featurehistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, featurehistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, featurehistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, featurehistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, featurehistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, featurehistory.OperationNotIn(i.OperationNotIn...)) + } + if i.CreatedAt != nil { + predicates = append(predicates, featurehistory.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, featurehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, featurehistory.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, featurehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, featurehistory.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, featurehistory.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, featurehistory.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, featurehistory.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, featurehistory.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, featurehistory.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, featurehistory.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, featurehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, featurehistory.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, featurehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, featurehistory.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, featurehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, featurehistory.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, featurehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, featurehistory.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, featurehistory.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, featurehistory.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, featurehistory.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, featurehistory.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, featurehistory.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, featurehistory.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, featurehistory.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, featurehistory.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, featurehistory.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, featurehistory.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, featurehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, featurehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, featurehistory.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, featurehistory.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, featurehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, featurehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, featurehistory.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, featurehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, featurehistory.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, featurehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, featurehistory.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, featurehistory.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, featurehistory.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, featurehistory.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, featurehistory.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, featurehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, featurehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, featurehistory.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, featurehistory.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, featurehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, featurehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, featurehistory.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, featurehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, featurehistory.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, featurehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, featurehistory.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, featurehistory.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, featurehistory.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, featurehistory.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, featurehistory.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, featurehistory.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, featurehistory.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, featurehistory.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, featurehistory.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, featurehistory.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, featurehistory.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, featurehistory.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, featurehistory.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, featurehistory.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, featurehistory.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, featurehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, featurehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, featurehistory.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, featurehistory.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, featurehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, featurehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.OwnerID != nil { + predicates = append(predicates, featurehistory.OwnerIDEQ(*i.OwnerID)) + } + if i.OwnerIDNEQ != nil { + predicates = append(predicates, featurehistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + } + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, featurehistory.OwnerIDIn(i.OwnerIDIn...)) + } + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, featurehistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + } + if i.OwnerIDGT != nil { + predicates = append(predicates, featurehistory.OwnerIDGT(*i.OwnerIDGT)) + } + if i.OwnerIDGTE != nil { + predicates = append(predicates, featurehistory.OwnerIDGTE(*i.OwnerIDGTE)) + } + if i.OwnerIDLT != nil { + predicates = append(predicates, featurehistory.OwnerIDLT(*i.OwnerIDLT)) + } + if i.OwnerIDLTE != nil { + predicates = append(predicates, featurehistory.OwnerIDLTE(*i.OwnerIDLTE)) + } + if i.OwnerIDContains != nil { + predicates = append(predicates, featurehistory.OwnerIDContains(*i.OwnerIDContains)) + } + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, featurehistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + } + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, featurehistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + } + if i.OwnerIDIsNil { + predicates = append(predicates, featurehistory.OwnerIDIsNil()) + } + if i.OwnerIDNotNil { + predicates = append(predicates, featurehistory.OwnerIDNotNil()) + } + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, featurehistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + } + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, featurehistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, featurehistory.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, featurehistory.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, featurehistory.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, featurehistory.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, featurehistory.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, featurehistory.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, featurehistory.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, featurehistory.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, featurehistory.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, featurehistory.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, featurehistory.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, featurehistory.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, featurehistory.NameContainsFold(*i.NameContainsFold)) + } + if i.DisplayName != nil { + predicates = append(predicates, featurehistory.DisplayNameEQ(*i.DisplayName)) + } + if i.DisplayNameNEQ != nil { + predicates = append(predicates, featurehistory.DisplayNameNEQ(*i.DisplayNameNEQ)) + } + if len(i.DisplayNameIn) > 0 { + predicates = append(predicates, featurehistory.DisplayNameIn(i.DisplayNameIn...)) + } + if len(i.DisplayNameNotIn) > 0 { + predicates = append(predicates, featurehistory.DisplayNameNotIn(i.DisplayNameNotIn...)) + } + if i.DisplayNameGT != nil { + predicates = append(predicates, featurehistory.DisplayNameGT(*i.DisplayNameGT)) + } + if i.DisplayNameGTE != nil { + predicates = append(predicates, featurehistory.DisplayNameGTE(*i.DisplayNameGTE)) + } + if i.DisplayNameLT != nil { + predicates = append(predicates, featurehistory.DisplayNameLT(*i.DisplayNameLT)) + } + if i.DisplayNameLTE != nil { + predicates = append(predicates, featurehistory.DisplayNameLTE(*i.DisplayNameLTE)) + } + if i.DisplayNameContains != nil { + predicates = append(predicates, featurehistory.DisplayNameContains(*i.DisplayNameContains)) + } + if i.DisplayNameHasPrefix != nil { + predicates = append(predicates, featurehistory.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + } + if i.DisplayNameHasSuffix != nil { + predicates = append(predicates, featurehistory.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + } + if i.DisplayNameIsNil { + predicates = append(predicates, featurehistory.DisplayNameIsNil()) + } + if i.DisplayNameNotNil { + predicates = append(predicates, featurehistory.DisplayNameNotNil()) + } + if i.DisplayNameEqualFold != nil { + predicates = append(predicates, featurehistory.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + } + if i.DisplayNameContainsFold != nil { + predicates = append(predicates, featurehistory.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + } + if i.Enabled != nil { + predicates = append(predicates, featurehistory.EnabledEQ(*i.Enabled)) + } + if i.EnabledNEQ != nil { + predicates = append(predicates, featurehistory.EnabledNEQ(*i.EnabledNEQ)) + } + if i.Description != nil { + predicates = append(predicates, featurehistory.DescriptionEQ(*i.Description)) + } + if i.DescriptionNEQ != nil { + predicates = append(predicates, featurehistory.DescriptionNEQ(*i.DescriptionNEQ)) + } + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, featurehistory.DescriptionIn(i.DescriptionIn...)) + } + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, featurehistory.DescriptionNotIn(i.DescriptionNotIn...)) + } + if i.DescriptionGT != nil { + predicates = append(predicates, featurehistory.DescriptionGT(*i.DescriptionGT)) + } + if i.DescriptionGTE != nil { + predicates = append(predicates, featurehistory.DescriptionGTE(*i.DescriptionGTE)) + } + if i.DescriptionLT != nil { + predicates = append(predicates, featurehistory.DescriptionLT(*i.DescriptionLT)) + } + if i.DescriptionLTE != nil { + predicates = append(predicates, featurehistory.DescriptionLTE(*i.DescriptionLTE)) + } + if i.DescriptionContains != nil { + predicates = append(predicates, featurehistory.DescriptionContains(*i.DescriptionContains)) + } + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, featurehistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) + } + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, featurehistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) + } + if i.DescriptionIsNil { + predicates = append(predicates, featurehistory.DescriptionIsNil()) + } + if i.DescriptionNotNil { + predicates = append(predicates, featurehistory.DescriptionNotNil()) + } + if i.DescriptionEqualFold != nil { + predicates = append(predicates, featurehistory.DescriptionEqualFold(*i.DescriptionEqualFold)) + } + if i.DescriptionContainsFold != nil { + predicates = append(predicates, featurehistory.DescriptionContainsFold(*i.DescriptionContainsFold)) + } + + switch len(predicates) { + case 0: + return nil, ErrEmptyFeatureHistoryWhereInput + case 1: + return predicates[0], nil + default: + return featurehistory.And(predicates...), nil + } +} + +// FileWhereInput represents a where input for filtering File queries. +type FileWhereInput struct { + Predicates []predicate.File `json:"-"` + Not *FileWhereInput `json:"not,omitempty"` + Or []*FileWhereInput `json:"or,omitempty"` + And []*FileWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + + // "provided_file_name" field predicates. + ProvidedFileName *string `json:"providedFileName,omitempty"` + ProvidedFileNameNEQ *string `json:"providedFileNameNEQ,omitempty"` + ProvidedFileNameIn []string `json:"providedFileNameIn,omitempty"` + ProvidedFileNameNotIn []string `json:"providedFileNameNotIn,omitempty"` + ProvidedFileNameGT *string `json:"providedFileNameGT,omitempty"` + ProvidedFileNameGTE *string `json:"providedFileNameGTE,omitempty"` + ProvidedFileNameLT *string `json:"providedFileNameLT,omitempty"` + ProvidedFileNameLTE *string `json:"providedFileNameLTE,omitempty"` + ProvidedFileNameContains *string `json:"providedFileNameContains,omitempty"` + ProvidedFileNameHasPrefix *string `json:"providedFileNameHasPrefix,omitempty"` + ProvidedFileNameHasSuffix *string `json:"providedFileNameHasSuffix,omitempty"` + ProvidedFileNameEqualFold *string `json:"providedFileNameEqualFold,omitempty"` + ProvidedFileNameContainsFold *string `json:"providedFileNameContainsFold,omitempty"` + + // "provided_file_extension" field predicates. + ProvidedFileExtension *string `json:"providedFileExtension,omitempty"` + ProvidedFileExtensionNEQ *string `json:"providedFileExtensionNEQ,omitempty"` + ProvidedFileExtensionIn []string `json:"providedFileExtensionIn,omitempty"` + ProvidedFileExtensionNotIn []string `json:"providedFileExtensionNotIn,omitempty"` + ProvidedFileExtensionGT *string `json:"providedFileExtensionGT,omitempty"` + ProvidedFileExtensionGTE *string `json:"providedFileExtensionGTE,omitempty"` + ProvidedFileExtensionLT *string `json:"providedFileExtensionLT,omitempty"` + ProvidedFileExtensionLTE *string `json:"providedFileExtensionLTE,omitempty"` + ProvidedFileExtensionContains *string `json:"providedFileExtensionContains,omitempty"` + ProvidedFileExtensionHasPrefix *string `json:"providedFileExtensionHasPrefix,omitempty"` + ProvidedFileExtensionHasSuffix *string `json:"providedFileExtensionHasSuffix,omitempty"` + ProvidedFileExtensionEqualFold *string `json:"providedFileExtensionEqualFold,omitempty"` + ProvidedFileExtensionContainsFold *string `json:"providedFileExtensionContainsFold,omitempty"` + + // "provided_file_size" field predicates. + ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` + ProvidedFileSizeNEQ *int64 `json:"providedFileSizeNEQ,omitempty"` + ProvidedFileSizeIn []int64 `json:"providedFileSizeIn,omitempty"` + ProvidedFileSizeNotIn []int64 `json:"providedFileSizeNotIn,omitempty"` + ProvidedFileSizeGT *int64 `json:"providedFileSizeGT,omitempty"` + ProvidedFileSizeGTE *int64 `json:"providedFileSizeGTE,omitempty"` + ProvidedFileSizeLT *int64 `json:"providedFileSizeLT,omitempty"` + ProvidedFileSizeLTE *int64 `json:"providedFileSizeLTE,omitempty"` + ProvidedFileSizeIsNil bool `json:"providedFileSizeIsNil,omitempty"` + ProvidedFileSizeNotNil bool `json:"providedFileSizeNotNil,omitempty"` + + // "persisted_file_size" field predicates. + PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` + PersistedFileSizeNEQ *int64 `json:"persistedFileSizeNEQ,omitempty"` + PersistedFileSizeIn []int64 `json:"persistedFileSizeIn,omitempty"` + PersistedFileSizeNotIn []int64 `json:"persistedFileSizeNotIn,omitempty"` + PersistedFileSizeGT *int64 `json:"persistedFileSizeGT,omitempty"` + PersistedFileSizeGTE *int64 `json:"persistedFileSizeGTE,omitempty"` + PersistedFileSizeLT *int64 `json:"persistedFileSizeLT,omitempty"` + PersistedFileSizeLTE *int64 `json:"persistedFileSizeLTE,omitempty"` + PersistedFileSizeIsNil bool `json:"persistedFileSizeIsNil,omitempty"` + PersistedFileSizeNotNil bool `json:"persistedFileSizeNotNil,omitempty"` + + // "detected_mime_type" field predicates. + DetectedMimeType *string `json:"detectedMimeType,omitempty"` + DetectedMimeTypeNEQ *string `json:"detectedMimeTypeNEQ,omitempty"` + DetectedMimeTypeIn []string `json:"detectedMimeTypeIn,omitempty"` + DetectedMimeTypeNotIn []string `json:"detectedMimeTypeNotIn,omitempty"` + DetectedMimeTypeGT *string `json:"detectedMimeTypeGT,omitempty"` + DetectedMimeTypeGTE *string `json:"detectedMimeTypeGTE,omitempty"` + DetectedMimeTypeLT *string `json:"detectedMimeTypeLT,omitempty"` + DetectedMimeTypeLTE *string `json:"detectedMimeTypeLTE,omitempty"` + DetectedMimeTypeContains *string `json:"detectedMimeTypeContains,omitempty"` + DetectedMimeTypeHasPrefix *string `json:"detectedMimeTypeHasPrefix,omitempty"` + DetectedMimeTypeHasSuffix *string `json:"detectedMimeTypeHasSuffix,omitempty"` + DetectedMimeTypeIsNil bool `json:"detectedMimeTypeIsNil,omitempty"` + DetectedMimeTypeNotNil bool `json:"detectedMimeTypeNotNil,omitempty"` + DetectedMimeTypeEqualFold *string `json:"detectedMimeTypeEqualFold,omitempty"` + DetectedMimeTypeContainsFold *string `json:"detectedMimeTypeContainsFold,omitempty"` + + // "md5_hash" field predicates. + Md5Hash *string `json:"md5Hash,omitempty"` + Md5HashNEQ *string `json:"md5HashNEQ,omitempty"` + Md5HashIn []string `json:"md5HashIn,omitempty"` + Md5HashNotIn []string `json:"md5HashNotIn,omitempty"` + Md5HashGT *string `json:"md5HashGT,omitempty"` + Md5HashGTE *string `json:"md5HashGTE,omitempty"` + Md5HashLT *string `json:"md5HashLT,omitempty"` + Md5HashLTE *string `json:"md5HashLTE,omitempty"` + Md5HashContains *string `json:"md5HashContains,omitempty"` + Md5HashHasPrefix *string `json:"md5HashHasPrefix,omitempty"` + Md5HashHasSuffix *string `json:"md5HashHasSuffix,omitempty"` + Md5HashIsNil bool `json:"md5HashIsNil,omitempty"` + Md5HashNotNil bool `json:"md5HashNotNil,omitempty"` + Md5HashEqualFold *string `json:"md5HashEqualFold,omitempty"` + Md5HashContainsFold *string `json:"md5HashContainsFold,omitempty"` + + // "detected_content_type" field predicates. + DetectedContentType *string `json:"detectedContentType,omitempty"` + DetectedContentTypeNEQ *string `json:"detectedContentTypeNEQ,omitempty"` + DetectedContentTypeIn []string `json:"detectedContentTypeIn,omitempty"` + DetectedContentTypeNotIn []string `json:"detectedContentTypeNotIn,omitempty"` + DetectedContentTypeGT *string `json:"detectedContentTypeGT,omitempty"` + DetectedContentTypeGTE *string `json:"detectedContentTypeGTE,omitempty"` + DetectedContentTypeLT *string `json:"detectedContentTypeLT,omitempty"` + DetectedContentTypeLTE *string `json:"detectedContentTypeLTE,omitempty"` + DetectedContentTypeContains *string `json:"detectedContentTypeContains,omitempty"` + DetectedContentTypeHasPrefix *string `json:"detectedContentTypeHasPrefix,omitempty"` + DetectedContentTypeHasSuffix *string `json:"detectedContentTypeHasSuffix,omitempty"` + DetectedContentTypeEqualFold *string `json:"detectedContentTypeEqualFold,omitempty"` + DetectedContentTypeContainsFold *string `json:"detectedContentTypeContainsFold,omitempty"` + + // "store_key" field predicates. + StoreKey *string `json:"storeKey,omitempty"` + StoreKeyNEQ *string `json:"storeKeyNEQ,omitempty"` + StoreKeyIn []string `json:"storeKeyIn,omitempty"` + StoreKeyNotIn []string `json:"storeKeyNotIn,omitempty"` + StoreKeyGT *string `json:"storeKeyGT,omitempty"` + StoreKeyGTE *string `json:"storeKeyGTE,omitempty"` + StoreKeyLT *string `json:"storeKeyLT,omitempty"` + StoreKeyLTE *string `json:"storeKeyLTE,omitempty"` + StoreKeyContains *string `json:"storeKeyContains,omitempty"` + StoreKeyHasPrefix *string `json:"storeKeyHasPrefix,omitempty"` + StoreKeyHasSuffix *string `json:"storeKeyHasSuffix,omitempty"` + StoreKeyIsNil bool `json:"storeKeyIsNil,omitempty"` + StoreKeyNotNil bool `json:"storeKeyNotNil,omitempty"` + StoreKeyEqualFold *string `json:"storeKeyEqualFold,omitempty"` + StoreKeyContainsFold *string `json:"storeKeyContainsFold,omitempty"` + + // "category_type" field predicates. + CategoryType *string `json:"categoryType,omitempty"` + CategoryTypeNEQ *string `json:"categoryTypeNEQ,omitempty"` + CategoryTypeIn []string `json:"categoryTypeIn,omitempty"` + CategoryTypeNotIn []string `json:"categoryTypeNotIn,omitempty"` + CategoryTypeGT *string `json:"categoryTypeGT,omitempty"` + CategoryTypeGTE *string `json:"categoryTypeGTE,omitempty"` + CategoryTypeLT *string `json:"categoryTypeLT,omitempty"` + CategoryTypeLTE *string `json:"categoryTypeLTE,omitempty"` + CategoryTypeContains *string `json:"categoryTypeContains,omitempty"` + CategoryTypeHasPrefix *string `json:"categoryTypeHasPrefix,omitempty"` + CategoryTypeHasSuffix *string `json:"categoryTypeHasSuffix,omitempty"` + CategoryTypeIsNil bool `json:"categoryTypeIsNil,omitempty"` + CategoryTypeNotNil bool `json:"categoryTypeNotNil,omitempty"` + CategoryTypeEqualFold *string `json:"categoryTypeEqualFold,omitempty"` + CategoryTypeContainsFold *string `json:"categoryTypeContainsFold,omitempty"` + + // "uri" field predicates. + URI *string `json:"uri,omitempty"` + URINEQ *string `json:"uriNEQ,omitempty"` + URIIn []string `json:"uriIn,omitempty"` + URINotIn []string `json:"uriNotIn,omitempty"` + URIGT *string `json:"uriGT,omitempty"` + URIGTE *string `json:"uriGTE,omitempty"` + URILT *string `json:"uriLT,omitempty"` + URILTE *string `json:"uriLTE,omitempty"` + URIContains *string `json:"uriContains,omitempty"` + URIHasPrefix *string `json:"uriHasPrefix,omitempty"` + URIHasSuffix *string `json:"uriHasSuffix,omitempty"` + URIIsNil bool `json:"uriIsNil,omitempty"` + URINotNil bool `json:"uriNotNil,omitempty"` + URIEqualFold *string `json:"uriEqualFold,omitempty"` + URIContainsFold *string `json:"uriContainsFold,omitempty"` + + // "storage_scheme" field predicates. + StorageScheme *string `json:"storageScheme,omitempty"` + StorageSchemeNEQ *string `json:"storageSchemeNEQ,omitempty"` + StorageSchemeIn []string `json:"storageSchemeIn,omitempty"` + StorageSchemeNotIn []string `json:"storageSchemeNotIn,omitempty"` + StorageSchemeGT *string `json:"storageSchemeGT,omitempty"` + StorageSchemeGTE *string `json:"storageSchemeGTE,omitempty"` + StorageSchemeLT *string `json:"storageSchemeLT,omitempty"` + StorageSchemeLTE *string `json:"storageSchemeLTE,omitempty"` + StorageSchemeContains *string `json:"storageSchemeContains,omitempty"` + StorageSchemeHasPrefix *string `json:"storageSchemeHasPrefix,omitempty"` + StorageSchemeHasSuffix *string `json:"storageSchemeHasSuffix,omitempty"` + StorageSchemeIsNil bool `json:"storageSchemeIsNil,omitempty"` + StorageSchemeNotNil bool `json:"storageSchemeNotNil,omitempty"` + StorageSchemeEqualFold *string `json:"storageSchemeEqualFold,omitempty"` + StorageSchemeContainsFold *string `json:"storageSchemeContainsFold,omitempty"` + + // "storage_volume" field predicates. + StorageVolume *string `json:"storageVolume,omitempty"` + StorageVolumeNEQ *string `json:"storageVolumeNEQ,omitempty"` + StorageVolumeIn []string `json:"storageVolumeIn,omitempty"` + StorageVolumeNotIn []string `json:"storageVolumeNotIn,omitempty"` + StorageVolumeGT *string `json:"storageVolumeGT,omitempty"` + StorageVolumeGTE *string `json:"storageVolumeGTE,omitempty"` + StorageVolumeLT *string `json:"storageVolumeLT,omitempty"` + StorageVolumeLTE *string `json:"storageVolumeLTE,omitempty"` + StorageVolumeContains *string `json:"storageVolumeContains,omitempty"` + StorageVolumeHasPrefix *string `json:"storageVolumeHasPrefix,omitempty"` + StorageVolumeHasSuffix *string `json:"storageVolumeHasSuffix,omitempty"` + StorageVolumeIsNil bool `json:"storageVolumeIsNil,omitempty"` + StorageVolumeNotNil bool `json:"storageVolumeNotNil,omitempty"` + StorageVolumeEqualFold *string `json:"storageVolumeEqualFold,omitempty"` + StorageVolumeContainsFold *string `json:"storageVolumeContainsFold,omitempty"` + + // "storage_path" field predicates. + StoragePath *string `json:"storagePath,omitempty"` + StoragePathNEQ *string `json:"storagePathNEQ,omitempty"` + StoragePathIn []string `json:"storagePathIn,omitempty"` + StoragePathNotIn []string `json:"storagePathNotIn,omitempty"` + StoragePathGT *string `json:"storagePathGT,omitempty"` + StoragePathGTE *string `json:"storagePathGTE,omitempty"` + StoragePathLT *string `json:"storagePathLT,omitempty"` + StoragePathLTE *string `json:"storagePathLTE,omitempty"` + StoragePathContains *string `json:"storagePathContains,omitempty"` + StoragePathHasPrefix *string `json:"storagePathHasPrefix,omitempty"` + StoragePathHasSuffix *string `json:"storagePathHasSuffix,omitempty"` + StoragePathIsNil bool `json:"storagePathIsNil,omitempty"` + StoragePathNotNil bool `json:"storagePathNotNil,omitempty"` + StoragePathEqualFold *string `json:"storagePathEqualFold,omitempty"` + StoragePathContainsFold *string `json:"storagePathContainsFold,omitempty"` + + // "user" edge predicates. + HasUser *bool `json:"hasUser,omitempty"` + HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` + + // "organization" edge predicates. + HasOrganization *bool `json:"hasOrganization,omitempty"` + HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` + + // "group" edge predicates. + HasGroup *bool `json:"hasGroup,omitempty"` + HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` + + // "contact" edge predicates. + HasContact *bool `json:"hasContact,omitempty"` + HasContactWith []*ContactWhereInput `json:"hasContactWith,omitempty"` + + // "entity" edge predicates. + HasEntity *bool `json:"hasEntity,omitempty"` + HasEntityWith []*EntityWhereInput `json:"hasEntityWith,omitempty"` + + // "usersetting" edge predicates. + HasUsersetting *bool `json:"hasUsersetting,omitempty"` + HasUsersettingWith []*UserSettingWhereInput `json:"hasUsersettingWith,omitempty"` + + // "organizationsetting" edge predicates. + HasOrganizationsetting *bool `json:"hasOrganizationsetting,omitempty"` + HasOrganizationsettingWith []*OrganizationSettingWhereInput `json:"hasOrganizationsettingWith,omitempty"` + + // "template" edge predicates. + HasTemplate *bool `json:"hasTemplate,omitempty"` + HasTemplateWith []*TemplateWhereInput `json:"hasTemplateWith,omitempty"` + + // "documentdata" edge predicates. + HasDocumentdata *bool `json:"hasDocumentdata,omitempty"` + HasDocumentdataWith []*DocumentDataWhereInput `json:"hasDocumentdataWith,omitempty"` + + // "events" edge predicates. + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *FileWhereInput) AddPredicates(predicates ...predicate.File) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the FileWhereInput filter on the FileQuery builder. +func (i *FileWhereInput) Filter(q *FileQuery) (*FileQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyFileWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyFileWhereInput is returned in case the FileWhereInput is empty. +var ErrEmptyFileWhereInput = errors.New("generated: empty predicate FileWhereInput") + +// P returns a predicate for filtering files. +// An error is returned if the input is empty or invalid. +func (i *FileWhereInput) P() (predicate.File, error) { + var predicates []predicate.File + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, file.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.File, 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, file.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.File, 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, file.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, file.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, file.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, file.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, file.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, file.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, file.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, file.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, file.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, file.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, file.IDContainsFold(*i.IDContainsFold)) + } + if i.CreatedAt != nil { + predicates = append(predicates, file.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, file.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, file.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, file.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, file.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, file.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, file.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, file.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, file.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, file.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, file.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, file.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, file.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, file.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, file.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, file.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, file.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, file.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, file.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, file.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, file.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, file.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, file.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, file.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, file.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, file.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, file.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, file.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, file.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, file.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, file.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, file.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, file.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, file.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, file.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, file.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, file.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, file.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, file.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, file.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, file.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, file.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, file.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, file.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, file.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, file.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, file.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, file.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, file.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, file.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, file.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, file.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, file.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, file.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, file.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, file.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, file.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, file.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, file.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, file.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, file.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, file.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, file.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, file.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, file.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, file.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, file.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, file.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, file.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, file.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, file.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, file.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, file.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, file.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, file.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.ProvidedFileName != nil { + predicates = append(predicates, file.ProvidedFileNameEQ(*i.ProvidedFileName)) + } + if i.ProvidedFileNameNEQ != nil { + predicates = append(predicates, file.ProvidedFileNameNEQ(*i.ProvidedFileNameNEQ)) + } + if len(i.ProvidedFileNameIn) > 0 { + predicates = append(predicates, file.ProvidedFileNameIn(i.ProvidedFileNameIn...)) + } + if len(i.ProvidedFileNameNotIn) > 0 { + predicates = append(predicates, file.ProvidedFileNameNotIn(i.ProvidedFileNameNotIn...)) + } + if i.ProvidedFileNameGT != nil { + predicates = append(predicates, file.ProvidedFileNameGT(*i.ProvidedFileNameGT)) + } + if i.ProvidedFileNameGTE != nil { + predicates = append(predicates, file.ProvidedFileNameGTE(*i.ProvidedFileNameGTE)) + } + if i.ProvidedFileNameLT != nil { + predicates = append(predicates, file.ProvidedFileNameLT(*i.ProvidedFileNameLT)) + } + if i.ProvidedFileNameLTE != nil { + predicates = append(predicates, file.ProvidedFileNameLTE(*i.ProvidedFileNameLTE)) + } + if i.ProvidedFileNameContains != nil { + predicates = append(predicates, file.ProvidedFileNameContains(*i.ProvidedFileNameContains)) + } + if i.ProvidedFileNameHasPrefix != nil { + predicates = append(predicates, file.ProvidedFileNameHasPrefix(*i.ProvidedFileNameHasPrefix)) + } + if i.ProvidedFileNameHasSuffix != nil { + predicates = append(predicates, file.ProvidedFileNameHasSuffix(*i.ProvidedFileNameHasSuffix)) + } + if i.ProvidedFileNameEqualFold != nil { + predicates = append(predicates, file.ProvidedFileNameEqualFold(*i.ProvidedFileNameEqualFold)) + } + if i.ProvidedFileNameContainsFold != nil { + predicates = append(predicates, file.ProvidedFileNameContainsFold(*i.ProvidedFileNameContainsFold)) + } + if i.ProvidedFileExtension != nil { + predicates = append(predicates, file.ProvidedFileExtensionEQ(*i.ProvidedFileExtension)) + } + if i.ProvidedFileExtensionNEQ != nil { + predicates = append(predicates, file.ProvidedFileExtensionNEQ(*i.ProvidedFileExtensionNEQ)) + } + if len(i.ProvidedFileExtensionIn) > 0 { + predicates = append(predicates, file.ProvidedFileExtensionIn(i.ProvidedFileExtensionIn...)) + } + if len(i.ProvidedFileExtensionNotIn) > 0 { + predicates = append(predicates, file.ProvidedFileExtensionNotIn(i.ProvidedFileExtensionNotIn...)) + } + if i.ProvidedFileExtensionGT != nil { + predicates = append(predicates, file.ProvidedFileExtensionGT(*i.ProvidedFileExtensionGT)) + } + if i.ProvidedFileExtensionGTE != nil { + predicates = append(predicates, file.ProvidedFileExtensionGTE(*i.ProvidedFileExtensionGTE)) + } + if i.ProvidedFileExtensionLT != nil { + predicates = append(predicates, file.ProvidedFileExtensionLT(*i.ProvidedFileExtensionLT)) + } + if i.ProvidedFileExtensionLTE != nil { + predicates = append(predicates, file.ProvidedFileExtensionLTE(*i.ProvidedFileExtensionLTE)) + } + if i.ProvidedFileExtensionContains != nil { + predicates = append(predicates, file.ProvidedFileExtensionContains(*i.ProvidedFileExtensionContains)) + } + if i.ProvidedFileExtensionHasPrefix != nil { + predicates = append(predicates, file.ProvidedFileExtensionHasPrefix(*i.ProvidedFileExtensionHasPrefix)) + } + if i.ProvidedFileExtensionHasSuffix != nil { + predicates = append(predicates, file.ProvidedFileExtensionHasSuffix(*i.ProvidedFileExtensionHasSuffix)) + } + if i.ProvidedFileExtensionEqualFold != nil { + predicates = append(predicates, file.ProvidedFileExtensionEqualFold(*i.ProvidedFileExtensionEqualFold)) + } + if i.ProvidedFileExtensionContainsFold != nil { + predicates = append(predicates, file.ProvidedFileExtensionContainsFold(*i.ProvidedFileExtensionContainsFold)) + } + if i.ProvidedFileSize != nil { + predicates = append(predicates, file.ProvidedFileSizeEQ(*i.ProvidedFileSize)) + } + if i.ProvidedFileSizeNEQ != nil { + predicates = append(predicates, file.ProvidedFileSizeNEQ(*i.ProvidedFileSizeNEQ)) + } + if len(i.ProvidedFileSizeIn) > 0 { + predicates = append(predicates, file.ProvidedFileSizeIn(i.ProvidedFileSizeIn...)) + } + if len(i.ProvidedFileSizeNotIn) > 0 { + predicates = append(predicates, file.ProvidedFileSizeNotIn(i.ProvidedFileSizeNotIn...)) + } + if i.ProvidedFileSizeGT != nil { + predicates = append(predicates, file.ProvidedFileSizeGT(*i.ProvidedFileSizeGT)) + } + if i.ProvidedFileSizeGTE != nil { + predicates = append(predicates, file.ProvidedFileSizeGTE(*i.ProvidedFileSizeGTE)) + } + if i.ProvidedFileSizeLT != nil { + predicates = append(predicates, file.ProvidedFileSizeLT(*i.ProvidedFileSizeLT)) + } + if i.ProvidedFileSizeLTE != nil { + predicates = append(predicates, file.ProvidedFileSizeLTE(*i.ProvidedFileSizeLTE)) + } + if i.ProvidedFileSizeIsNil { + predicates = append(predicates, file.ProvidedFileSizeIsNil()) + } + if i.ProvidedFileSizeNotNil { + predicates = append(predicates, file.ProvidedFileSizeNotNil()) + } + if i.PersistedFileSize != nil { + predicates = append(predicates, file.PersistedFileSizeEQ(*i.PersistedFileSize)) + } + if i.PersistedFileSizeNEQ != nil { + predicates = append(predicates, file.PersistedFileSizeNEQ(*i.PersistedFileSizeNEQ)) + } + if len(i.PersistedFileSizeIn) > 0 { + predicates = append(predicates, file.PersistedFileSizeIn(i.PersistedFileSizeIn...)) + } + if len(i.PersistedFileSizeNotIn) > 0 { + predicates = append(predicates, file.PersistedFileSizeNotIn(i.PersistedFileSizeNotIn...)) + } + if i.PersistedFileSizeGT != nil { + predicates = append(predicates, file.PersistedFileSizeGT(*i.PersistedFileSizeGT)) + } + if i.PersistedFileSizeGTE != nil { + predicates = append(predicates, file.PersistedFileSizeGTE(*i.PersistedFileSizeGTE)) + } + if i.PersistedFileSizeLT != nil { + predicates = append(predicates, file.PersistedFileSizeLT(*i.PersistedFileSizeLT)) + } + if i.PersistedFileSizeLTE != nil { + predicates = append(predicates, file.PersistedFileSizeLTE(*i.PersistedFileSizeLTE)) + } + if i.PersistedFileSizeIsNil { + predicates = append(predicates, file.PersistedFileSizeIsNil()) + } + if i.PersistedFileSizeNotNil { + predicates = append(predicates, file.PersistedFileSizeNotNil()) + } + if i.DetectedMimeType != nil { + predicates = append(predicates, file.DetectedMimeTypeEQ(*i.DetectedMimeType)) + } + if i.DetectedMimeTypeNEQ != nil { + predicates = append(predicates, file.DetectedMimeTypeNEQ(*i.DetectedMimeTypeNEQ)) + } + if len(i.DetectedMimeTypeIn) > 0 { + predicates = append(predicates, file.DetectedMimeTypeIn(i.DetectedMimeTypeIn...)) + } + if len(i.DetectedMimeTypeNotIn) > 0 { + predicates = append(predicates, file.DetectedMimeTypeNotIn(i.DetectedMimeTypeNotIn...)) + } + if i.DetectedMimeTypeGT != nil { + predicates = append(predicates, file.DetectedMimeTypeGT(*i.DetectedMimeTypeGT)) + } + if i.DetectedMimeTypeGTE != nil { + predicates = append(predicates, file.DetectedMimeTypeGTE(*i.DetectedMimeTypeGTE)) + } + if i.DetectedMimeTypeLT != nil { + predicates = append(predicates, file.DetectedMimeTypeLT(*i.DetectedMimeTypeLT)) + } + if i.DetectedMimeTypeLTE != nil { + predicates = append(predicates, file.DetectedMimeTypeLTE(*i.DetectedMimeTypeLTE)) + } + if i.DetectedMimeTypeContains != nil { + predicates = append(predicates, file.DetectedMimeTypeContains(*i.DetectedMimeTypeContains)) + } + if i.DetectedMimeTypeHasPrefix != nil { + predicates = append(predicates, file.DetectedMimeTypeHasPrefix(*i.DetectedMimeTypeHasPrefix)) + } + if i.DetectedMimeTypeHasSuffix != nil { + predicates = append(predicates, file.DetectedMimeTypeHasSuffix(*i.DetectedMimeTypeHasSuffix)) + } + if i.DetectedMimeTypeIsNil { + predicates = append(predicates, file.DetectedMimeTypeIsNil()) + } + if i.DetectedMimeTypeNotNil { + predicates = append(predicates, file.DetectedMimeTypeNotNil()) + } + if i.DetectedMimeTypeEqualFold != nil { + predicates = append(predicates, file.DetectedMimeTypeEqualFold(*i.DetectedMimeTypeEqualFold)) + } + if i.DetectedMimeTypeContainsFold != nil { + predicates = append(predicates, file.DetectedMimeTypeContainsFold(*i.DetectedMimeTypeContainsFold)) + } + if i.Md5Hash != nil { + predicates = append(predicates, file.Md5HashEQ(*i.Md5Hash)) + } + if i.Md5HashNEQ != nil { + predicates = append(predicates, file.Md5HashNEQ(*i.Md5HashNEQ)) + } + if len(i.Md5HashIn) > 0 { + predicates = append(predicates, file.Md5HashIn(i.Md5HashIn...)) + } + if len(i.Md5HashNotIn) > 0 { + predicates = append(predicates, file.Md5HashNotIn(i.Md5HashNotIn...)) + } + if i.Md5HashGT != nil { + predicates = append(predicates, file.Md5HashGT(*i.Md5HashGT)) + } + if i.Md5HashGTE != nil { + predicates = append(predicates, file.Md5HashGTE(*i.Md5HashGTE)) + } + if i.Md5HashLT != nil { + predicates = append(predicates, file.Md5HashLT(*i.Md5HashLT)) + } + if i.Md5HashLTE != nil { + predicates = append(predicates, file.Md5HashLTE(*i.Md5HashLTE)) + } + if i.Md5HashContains != nil { + predicates = append(predicates, file.Md5HashContains(*i.Md5HashContains)) + } + if i.Md5HashHasPrefix != nil { + predicates = append(predicates, file.Md5HashHasPrefix(*i.Md5HashHasPrefix)) + } + if i.Md5HashHasSuffix != nil { + predicates = append(predicates, file.Md5HashHasSuffix(*i.Md5HashHasSuffix)) + } + if i.Md5HashIsNil { + predicates = append(predicates, file.Md5HashIsNil()) + } + if i.Md5HashNotNil { + predicates = append(predicates, file.Md5HashNotNil()) + } + if i.Md5HashEqualFold != nil { + predicates = append(predicates, file.Md5HashEqualFold(*i.Md5HashEqualFold)) + } + if i.Md5HashContainsFold != nil { + predicates = append(predicates, file.Md5HashContainsFold(*i.Md5HashContainsFold)) + } + if i.DetectedContentType != nil { + predicates = append(predicates, file.DetectedContentTypeEQ(*i.DetectedContentType)) + } + if i.DetectedContentTypeNEQ != nil { + predicates = append(predicates, file.DetectedContentTypeNEQ(*i.DetectedContentTypeNEQ)) + } + if len(i.DetectedContentTypeIn) > 0 { + predicates = append(predicates, file.DetectedContentTypeIn(i.DetectedContentTypeIn...)) + } + if len(i.DetectedContentTypeNotIn) > 0 { + predicates = append(predicates, file.DetectedContentTypeNotIn(i.DetectedContentTypeNotIn...)) + } + if i.DetectedContentTypeGT != nil { + predicates = append(predicates, file.DetectedContentTypeGT(*i.DetectedContentTypeGT)) + } + if i.DetectedContentTypeGTE != nil { + predicates = append(predicates, file.DetectedContentTypeGTE(*i.DetectedContentTypeGTE)) + } + if i.DetectedContentTypeLT != nil { + predicates = append(predicates, file.DetectedContentTypeLT(*i.DetectedContentTypeLT)) + } + if i.DetectedContentTypeLTE != nil { + predicates = append(predicates, file.DetectedContentTypeLTE(*i.DetectedContentTypeLTE)) + } + if i.DetectedContentTypeContains != nil { + predicates = append(predicates, file.DetectedContentTypeContains(*i.DetectedContentTypeContains)) + } + if i.DetectedContentTypeHasPrefix != nil { + predicates = append(predicates, file.DetectedContentTypeHasPrefix(*i.DetectedContentTypeHasPrefix)) + } + if i.DetectedContentTypeHasSuffix != nil { + predicates = append(predicates, file.DetectedContentTypeHasSuffix(*i.DetectedContentTypeHasSuffix)) + } + if i.DetectedContentTypeEqualFold != nil { + predicates = append(predicates, file.DetectedContentTypeEqualFold(*i.DetectedContentTypeEqualFold)) + } + if i.DetectedContentTypeContainsFold != nil { + predicates = append(predicates, file.DetectedContentTypeContainsFold(*i.DetectedContentTypeContainsFold)) + } + if i.StoreKey != nil { + predicates = append(predicates, file.StoreKeyEQ(*i.StoreKey)) + } + if i.StoreKeyNEQ != nil { + predicates = append(predicates, file.StoreKeyNEQ(*i.StoreKeyNEQ)) + } + if len(i.StoreKeyIn) > 0 { + predicates = append(predicates, file.StoreKeyIn(i.StoreKeyIn...)) + } + if len(i.StoreKeyNotIn) > 0 { + predicates = append(predicates, file.StoreKeyNotIn(i.StoreKeyNotIn...)) + } + if i.StoreKeyGT != nil { + predicates = append(predicates, file.StoreKeyGT(*i.StoreKeyGT)) + } + if i.StoreKeyGTE != nil { + predicates = append(predicates, file.StoreKeyGTE(*i.StoreKeyGTE)) + } + if i.StoreKeyLT != nil { + predicates = append(predicates, file.StoreKeyLT(*i.StoreKeyLT)) + } + if i.StoreKeyLTE != nil { + predicates = append(predicates, file.StoreKeyLTE(*i.StoreKeyLTE)) + } + if i.StoreKeyContains != nil { + predicates = append(predicates, file.StoreKeyContains(*i.StoreKeyContains)) + } + if i.StoreKeyHasPrefix != nil { + predicates = append(predicates, file.StoreKeyHasPrefix(*i.StoreKeyHasPrefix)) + } + if i.StoreKeyHasSuffix != nil { + predicates = append(predicates, file.StoreKeyHasSuffix(*i.StoreKeyHasSuffix)) + } + if i.StoreKeyIsNil { + predicates = append(predicates, file.StoreKeyIsNil()) + } + if i.StoreKeyNotNil { + predicates = append(predicates, file.StoreKeyNotNil()) + } + if i.StoreKeyEqualFold != nil { + predicates = append(predicates, file.StoreKeyEqualFold(*i.StoreKeyEqualFold)) + } + if i.StoreKeyContainsFold != nil { + predicates = append(predicates, file.StoreKeyContainsFold(*i.StoreKeyContainsFold)) + } + if i.CategoryType != nil { + predicates = append(predicates, file.CategoryTypeEQ(*i.CategoryType)) + } + if i.CategoryTypeNEQ != nil { + predicates = append(predicates, file.CategoryTypeNEQ(*i.CategoryTypeNEQ)) + } + if len(i.CategoryTypeIn) > 0 { + predicates = append(predicates, file.CategoryTypeIn(i.CategoryTypeIn...)) + } + if len(i.CategoryTypeNotIn) > 0 { + predicates = append(predicates, file.CategoryTypeNotIn(i.CategoryTypeNotIn...)) + } + if i.CategoryTypeGT != nil { + predicates = append(predicates, file.CategoryTypeGT(*i.CategoryTypeGT)) + } + if i.CategoryTypeGTE != nil { + predicates = append(predicates, file.CategoryTypeGTE(*i.CategoryTypeGTE)) + } + if i.CategoryTypeLT != nil { + predicates = append(predicates, file.CategoryTypeLT(*i.CategoryTypeLT)) + } + if i.CategoryTypeLTE != nil { + predicates = append(predicates, file.CategoryTypeLTE(*i.CategoryTypeLTE)) + } + if i.CategoryTypeContains != nil { + predicates = append(predicates, file.CategoryTypeContains(*i.CategoryTypeContains)) + } + if i.CategoryTypeHasPrefix != nil { + predicates = append(predicates, file.CategoryTypeHasPrefix(*i.CategoryTypeHasPrefix)) + } + if i.CategoryTypeHasSuffix != nil { + predicates = append(predicates, file.CategoryTypeHasSuffix(*i.CategoryTypeHasSuffix)) + } + if i.CategoryTypeIsNil { + predicates = append(predicates, file.CategoryTypeIsNil()) + } + if i.CategoryTypeNotNil { + predicates = append(predicates, file.CategoryTypeNotNil()) + } + if i.CategoryTypeEqualFold != nil { + predicates = append(predicates, file.CategoryTypeEqualFold(*i.CategoryTypeEqualFold)) + } + if i.CategoryTypeContainsFold != nil { + predicates = append(predicates, file.CategoryTypeContainsFold(*i.CategoryTypeContainsFold)) + } + if i.URI != nil { + predicates = append(predicates, file.URIEQ(*i.URI)) + } + if i.URINEQ != nil { + predicates = append(predicates, file.URINEQ(*i.URINEQ)) + } + if len(i.URIIn) > 0 { + predicates = append(predicates, file.URIIn(i.URIIn...)) + } + if len(i.URINotIn) > 0 { + predicates = append(predicates, file.URINotIn(i.URINotIn...)) + } + if i.URIGT != nil { + predicates = append(predicates, file.URIGT(*i.URIGT)) + } + if i.URIGTE != nil { + predicates = append(predicates, file.URIGTE(*i.URIGTE)) + } + if i.URILT != nil { + predicates = append(predicates, file.URILT(*i.URILT)) + } + if i.URILTE != nil { + predicates = append(predicates, file.URILTE(*i.URILTE)) + } + if i.URIContains != nil { + predicates = append(predicates, file.URIContains(*i.URIContains)) + } + if i.URIHasPrefix != nil { + predicates = append(predicates, file.URIHasPrefix(*i.URIHasPrefix)) + } + if i.URIHasSuffix != nil { + predicates = append(predicates, file.URIHasSuffix(*i.URIHasSuffix)) + } + if i.URIIsNil { + predicates = append(predicates, file.URIIsNil()) + } + if i.URINotNil { + predicates = append(predicates, file.URINotNil()) + } + if i.URIEqualFold != nil { + predicates = append(predicates, file.URIEqualFold(*i.URIEqualFold)) + } + if i.URIContainsFold != nil { + predicates = append(predicates, file.URIContainsFold(*i.URIContainsFold)) + } + if i.StorageScheme != nil { + predicates = append(predicates, file.StorageSchemeEQ(*i.StorageScheme)) + } + if i.StorageSchemeNEQ != nil { + predicates = append(predicates, file.StorageSchemeNEQ(*i.StorageSchemeNEQ)) + } + if len(i.StorageSchemeIn) > 0 { + predicates = append(predicates, file.StorageSchemeIn(i.StorageSchemeIn...)) + } + if len(i.StorageSchemeNotIn) > 0 { + predicates = append(predicates, file.StorageSchemeNotIn(i.StorageSchemeNotIn...)) + } + if i.StorageSchemeGT != nil { + predicates = append(predicates, file.StorageSchemeGT(*i.StorageSchemeGT)) + } + if i.StorageSchemeGTE != nil { + predicates = append(predicates, file.StorageSchemeGTE(*i.StorageSchemeGTE)) + } + if i.StorageSchemeLT != nil { + predicates = append(predicates, file.StorageSchemeLT(*i.StorageSchemeLT)) + } + if i.StorageSchemeLTE != nil { + predicates = append(predicates, file.StorageSchemeLTE(*i.StorageSchemeLTE)) + } + if i.StorageSchemeContains != nil { + predicates = append(predicates, file.StorageSchemeContains(*i.StorageSchemeContains)) + } + if i.StorageSchemeHasPrefix != nil { + predicates = append(predicates, file.StorageSchemeHasPrefix(*i.StorageSchemeHasPrefix)) + } + if i.StorageSchemeHasSuffix != nil { + predicates = append(predicates, file.StorageSchemeHasSuffix(*i.StorageSchemeHasSuffix)) + } + if i.StorageSchemeIsNil { + predicates = append(predicates, file.StorageSchemeIsNil()) + } + if i.StorageSchemeNotNil { + predicates = append(predicates, file.StorageSchemeNotNil()) + } + if i.StorageSchemeEqualFold != nil { + predicates = append(predicates, file.StorageSchemeEqualFold(*i.StorageSchemeEqualFold)) + } + if i.StorageSchemeContainsFold != nil { + predicates = append(predicates, file.StorageSchemeContainsFold(*i.StorageSchemeContainsFold)) + } + if i.StorageVolume != nil { + predicates = append(predicates, file.StorageVolumeEQ(*i.StorageVolume)) + } + if i.StorageVolumeNEQ != nil { + predicates = append(predicates, file.StorageVolumeNEQ(*i.StorageVolumeNEQ)) + } + if len(i.StorageVolumeIn) > 0 { + predicates = append(predicates, file.StorageVolumeIn(i.StorageVolumeIn...)) + } + if len(i.StorageVolumeNotIn) > 0 { + predicates = append(predicates, file.StorageVolumeNotIn(i.StorageVolumeNotIn...)) + } + if i.StorageVolumeGT != nil { + predicates = append(predicates, file.StorageVolumeGT(*i.StorageVolumeGT)) + } + if i.StorageVolumeGTE != nil { + predicates = append(predicates, file.StorageVolumeGTE(*i.StorageVolumeGTE)) + } + if i.StorageVolumeLT != nil { + predicates = append(predicates, file.StorageVolumeLT(*i.StorageVolumeLT)) + } + if i.StorageVolumeLTE != nil { + predicates = append(predicates, file.StorageVolumeLTE(*i.StorageVolumeLTE)) + } + if i.StorageVolumeContains != nil { + predicates = append(predicates, file.StorageVolumeContains(*i.StorageVolumeContains)) + } + if i.StorageVolumeHasPrefix != nil { + predicates = append(predicates, file.StorageVolumeHasPrefix(*i.StorageVolumeHasPrefix)) + } + if i.StorageVolumeHasSuffix != nil { + predicates = append(predicates, file.StorageVolumeHasSuffix(*i.StorageVolumeHasSuffix)) + } + if i.StorageVolumeIsNil { + predicates = append(predicates, file.StorageVolumeIsNil()) + } + if i.StorageVolumeNotNil { + predicates = append(predicates, file.StorageVolumeNotNil()) + } + if i.StorageVolumeEqualFold != nil { + predicates = append(predicates, file.StorageVolumeEqualFold(*i.StorageVolumeEqualFold)) + } + if i.StorageVolumeContainsFold != nil { + predicates = append(predicates, file.StorageVolumeContainsFold(*i.StorageVolumeContainsFold)) + } + if i.StoragePath != nil { + predicates = append(predicates, file.StoragePathEQ(*i.StoragePath)) + } + if i.StoragePathNEQ != nil { + predicates = append(predicates, file.StoragePathNEQ(*i.StoragePathNEQ)) + } + if len(i.StoragePathIn) > 0 { + predicates = append(predicates, file.StoragePathIn(i.StoragePathIn...)) + } + if len(i.StoragePathNotIn) > 0 { + predicates = append(predicates, file.StoragePathNotIn(i.StoragePathNotIn...)) + } + if i.StoragePathGT != nil { + predicates = append(predicates, file.StoragePathGT(*i.StoragePathGT)) + } + if i.StoragePathGTE != nil { + predicates = append(predicates, file.StoragePathGTE(*i.StoragePathGTE)) + } + if i.StoragePathLT != nil { + predicates = append(predicates, file.StoragePathLT(*i.StoragePathLT)) + } + if i.StoragePathLTE != nil { + predicates = append(predicates, file.StoragePathLTE(*i.StoragePathLTE)) + } + if i.StoragePathContains != nil { + predicates = append(predicates, file.StoragePathContains(*i.StoragePathContains)) + } + if i.StoragePathHasPrefix != nil { + predicates = append(predicates, file.StoragePathHasPrefix(*i.StoragePathHasPrefix)) + } + if i.StoragePathHasSuffix != nil { + predicates = append(predicates, file.StoragePathHasSuffix(*i.StoragePathHasSuffix)) + } + if i.StoragePathIsNil { + predicates = append(predicates, file.StoragePathIsNil()) + } + if i.StoragePathNotNil { + predicates = append(predicates, file.StoragePathNotNil()) + } + if i.StoragePathEqualFold != nil { + predicates = append(predicates, file.StoragePathEqualFold(*i.StoragePathEqualFold)) + } + if i.StoragePathContainsFold != nil { + predicates = append(predicates, file.StoragePathContainsFold(*i.StoragePathContainsFold)) + } + + if i.HasUser != nil { + p := file.HasUser() + if !*i.HasUser { + p = file.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasUserWith) > 0 { + with := make([]predicate.User, 0, len(i.HasUserWith)) + 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, file.HasUserWith(with...)) + } + if i.HasOrganization != nil { + p := file.HasOrganization() + if !*i.HasOrganization { + p = file.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOrganizationWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOrganizationWith)) + for _, w := range i.HasOrganizationWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOrganizationWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, file.HasOrganizationWith(with...)) + } + if i.HasGroup != nil { + p := file.HasGroup() + if !*i.HasGroup { + p = file.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasGroupWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasGroupWith)) + 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, file.HasGroupWith(with...)) + } + if i.HasContact != nil { + p := file.HasContact() + if !*i.HasContact { + p = file.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasContactWith) > 0 { + with := make([]predicate.Contact, 0, len(i.HasContactWith)) + 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, file.HasContactWith(with...)) + } + if i.HasEntity != nil { + p := file.HasEntity() + if !*i.HasEntity { + p = file.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEntityWith) > 0 { + with := make([]predicate.Entity, 0, len(i.HasEntityWith)) + for _, w := range i.HasEntityWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntityWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, file.HasEntityWith(with...)) + } + if i.HasUsersetting != nil { + p := file.HasUsersetting() + if !*i.HasUsersetting { + p = file.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasUsersettingWith) > 0 { + with := make([]predicate.UserSetting, 0, len(i.HasUsersettingWith)) + for _, w := range i.HasUsersettingWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasUsersettingWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, file.HasUsersettingWith(with...)) + } + if i.HasOrganizationsetting != nil { + p := file.HasOrganizationsetting() + if !*i.HasOrganizationsetting { + p = file.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOrganizationsettingWith) > 0 { + with := make([]predicate.OrganizationSetting, 0, len(i.HasOrganizationsettingWith)) + for _, w := range i.HasOrganizationsettingWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOrganizationsettingWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, file.HasOrganizationsettingWith(with...)) + } + if i.HasTemplate != nil { + p := file.HasTemplate() + if !*i.HasTemplate { + p = file.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasTemplateWith) > 0 { + with := make([]predicate.Template, 0, len(i.HasTemplateWith)) + for _, w := range i.HasTemplateWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasTemplateWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, file.HasTemplateWith(with...)) + } + if i.HasDocumentdata != nil { + p := file.HasDocumentdata() + if !*i.HasDocumentdata { + p = file.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasDocumentdataWith) > 0 { + with := make([]predicate.DocumentData, 0, len(i.HasDocumentdataWith)) + for _, w := range i.HasDocumentdataWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasDocumentdataWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, file.HasDocumentdataWith(with...)) + } + if i.HasEvents != nil { + p := file.HasEvents() + if !*i.HasEvents { + p = file.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEventsWith) > 0 { + with := make([]predicate.Event, 0, len(i.HasEventsWith)) + for _, w := range i.HasEventsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, file.HasEventsWith(with...)) + } + switch len(predicates) { + case 0: + return nil, ErrEmptyFileWhereInput + case 1: + return predicates[0], nil + default: + return file.And(predicates...), nil + } +} + +// FileHistoryWhereInput represents a where input for filtering FileHistory queries. +type FileHistoryWhereInput struct { + Predicates []predicate.FileHistory `json:"-"` + Not *FileHistoryWhereInput `json:"not,omitempty"` + Or []*FileHistoryWhereInput `json:"or,omitempty"` + And []*FileHistoryWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + + // "provided_file_name" field predicates. + ProvidedFileName *string `json:"providedFileName,omitempty"` + ProvidedFileNameNEQ *string `json:"providedFileNameNEQ,omitempty"` + ProvidedFileNameIn []string `json:"providedFileNameIn,omitempty"` + ProvidedFileNameNotIn []string `json:"providedFileNameNotIn,omitempty"` + ProvidedFileNameGT *string `json:"providedFileNameGT,omitempty"` + ProvidedFileNameGTE *string `json:"providedFileNameGTE,omitempty"` + ProvidedFileNameLT *string `json:"providedFileNameLT,omitempty"` + ProvidedFileNameLTE *string `json:"providedFileNameLTE,omitempty"` + ProvidedFileNameContains *string `json:"providedFileNameContains,omitempty"` + ProvidedFileNameHasPrefix *string `json:"providedFileNameHasPrefix,omitempty"` + ProvidedFileNameHasSuffix *string `json:"providedFileNameHasSuffix,omitempty"` + ProvidedFileNameEqualFold *string `json:"providedFileNameEqualFold,omitempty"` + ProvidedFileNameContainsFold *string `json:"providedFileNameContainsFold,omitempty"` + + // "provided_file_extension" field predicates. + ProvidedFileExtension *string `json:"providedFileExtension,omitempty"` + ProvidedFileExtensionNEQ *string `json:"providedFileExtensionNEQ,omitempty"` + ProvidedFileExtensionIn []string `json:"providedFileExtensionIn,omitempty"` + ProvidedFileExtensionNotIn []string `json:"providedFileExtensionNotIn,omitempty"` + ProvidedFileExtensionGT *string `json:"providedFileExtensionGT,omitempty"` + ProvidedFileExtensionGTE *string `json:"providedFileExtensionGTE,omitempty"` + ProvidedFileExtensionLT *string `json:"providedFileExtensionLT,omitempty"` + ProvidedFileExtensionLTE *string `json:"providedFileExtensionLTE,omitempty"` + ProvidedFileExtensionContains *string `json:"providedFileExtensionContains,omitempty"` + ProvidedFileExtensionHasPrefix *string `json:"providedFileExtensionHasPrefix,omitempty"` + ProvidedFileExtensionHasSuffix *string `json:"providedFileExtensionHasSuffix,omitempty"` + ProvidedFileExtensionEqualFold *string `json:"providedFileExtensionEqualFold,omitempty"` + ProvidedFileExtensionContainsFold *string `json:"providedFileExtensionContainsFold,omitempty"` + + // "provided_file_size" field predicates. + ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` + ProvidedFileSizeNEQ *int64 `json:"providedFileSizeNEQ,omitempty"` + ProvidedFileSizeIn []int64 `json:"providedFileSizeIn,omitempty"` + ProvidedFileSizeNotIn []int64 `json:"providedFileSizeNotIn,omitempty"` + ProvidedFileSizeGT *int64 `json:"providedFileSizeGT,omitempty"` + ProvidedFileSizeGTE *int64 `json:"providedFileSizeGTE,omitempty"` + ProvidedFileSizeLT *int64 `json:"providedFileSizeLT,omitempty"` + ProvidedFileSizeLTE *int64 `json:"providedFileSizeLTE,omitempty"` + ProvidedFileSizeIsNil bool `json:"providedFileSizeIsNil,omitempty"` + ProvidedFileSizeNotNil bool `json:"providedFileSizeNotNil,omitempty"` + + // "persisted_file_size" field predicates. + PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` + PersistedFileSizeNEQ *int64 `json:"persistedFileSizeNEQ,omitempty"` + PersistedFileSizeIn []int64 `json:"persistedFileSizeIn,omitempty"` + PersistedFileSizeNotIn []int64 `json:"persistedFileSizeNotIn,omitempty"` + PersistedFileSizeGT *int64 `json:"persistedFileSizeGT,omitempty"` + PersistedFileSizeGTE *int64 `json:"persistedFileSizeGTE,omitempty"` + PersistedFileSizeLT *int64 `json:"persistedFileSizeLT,omitempty"` + PersistedFileSizeLTE *int64 `json:"persistedFileSizeLTE,omitempty"` + PersistedFileSizeIsNil bool `json:"persistedFileSizeIsNil,omitempty"` + PersistedFileSizeNotNil bool `json:"persistedFileSizeNotNil,omitempty"` + + // "detected_mime_type" field predicates. + DetectedMimeType *string `json:"detectedMimeType,omitempty"` + DetectedMimeTypeNEQ *string `json:"detectedMimeTypeNEQ,omitempty"` + DetectedMimeTypeIn []string `json:"detectedMimeTypeIn,omitempty"` + DetectedMimeTypeNotIn []string `json:"detectedMimeTypeNotIn,omitempty"` + DetectedMimeTypeGT *string `json:"detectedMimeTypeGT,omitempty"` + DetectedMimeTypeGTE *string `json:"detectedMimeTypeGTE,omitempty"` + DetectedMimeTypeLT *string `json:"detectedMimeTypeLT,omitempty"` + DetectedMimeTypeLTE *string `json:"detectedMimeTypeLTE,omitempty"` + DetectedMimeTypeContains *string `json:"detectedMimeTypeContains,omitempty"` + DetectedMimeTypeHasPrefix *string `json:"detectedMimeTypeHasPrefix,omitempty"` + DetectedMimeTypeHasSuffix *string `json:"detectedMimeTypeHasSuffix,omitempty"` + DetectedMimeTypeIsNil bool `json:"detectedMimeTypeIsNil,omitempty"` + DetectedMimeTypeNotNil bool `json:"detectedMimeTypeNotNil,omitempty"` + DetectedMimeTypeEqualFold *string `json:"detectedMimeTypeEqualFold,omitempty"` + DetectedMimeTypeContainsFold *string `json:"detectedMimeTypeContainsFold,omitempty"` + + // "md5_hash" field predicates. + Md5Hash *string `json:"md5Hash,omitempty"` + Md5HashNEQ *string `json:"md5HashNEQ,omitempty"` + Md5HashIn []string `json:"md5HashIn,omitempty"` + Md5HashNotIn []string `json:"md5HashNotIn,omitempty"` + Md5HashGT *string `json:"md5HashGT,omitempty"` + Md5HashGTE *string `json:"md5HashGTE,omitempty"` + Md5HashLT *string `json:"md5HashLT,omitempty"` + Md5HashLTE *string `json:"md5HashLTE,omitempty"` + Md5HashContains *string `json:"md5HashContains,omitempty"` + Md5HashHasPrefix *string `json:"md5HashHasPrefix,omitempty"` + Md5HashHasSuffix *string `json:"md5HashHasSuffix,omitempty"` + Md5HashIsNil bool `json:"md5HashIsNil,omitempty"` + Md5HashNotNil bool `json:"md5HashNotNil,omitempty"` + Md5HashEqualFold *string `json:"md5HashEqualFold,omitempty"` + Md5HashContainsFold *string `json:"md5HashContainsFold,omitempty"` + + // "detected_content_type" field predicates. + DetectedContentType *string `json:"detectedContentType,omitempty"` + DetectedContentTypeNEQ *string `json:"detectedContentTypeNEQ,omitempty"` + DetectedContentTypeIn []string `json:"detectedContentTypeIn,omitempty"` + DetectedContentTypeNotIn []string `json:"detectedContentTypeNotIn,omitempty"` + DetectedContentTypeGT *string `json:"detectedContentTypeGT,omitempty"` + DetectedContentTypeGTE *string `json:"detectedContentTypeGTE,omitempty"` + DetectedContentTypeLT *string `json:"detectedContentTypeLT,omitempty"` + DetectedContentTypeLTE *string `json:"detectedContentTypeLTE,omitempty"` + DetectedContentTypeContains *string `json:"detectedContentTypeContains,omitempty"` + DetectedContentTypeHasPrefix *string `json:"detectedContentTypeHasPrefix,omitempty"` + DetectedContentTypeHasSuffix *string `json:"detectedContentTypeHasSuffix,omitempty"` + DetectedContentTypeEqualFold *string `json:"detectedContentTypeEqualFold,omitempty"` + DetectedContentTypeContainsFold *string `json:"detectedContentTypeContainsFold,omitempty"` + + // "store_key" field predicates. + StoreKey *string `json:"storeKey,omitempty"` + StoreKeyNEQ *string `json:"storeKeyNEQ,omitempty"` + StoreKeyIn []string `json:"storeKeyIn,omitempty"` + StoreKeyNotIn []string `json:"storeKeyNotIn,omitempty"` + StoreKeyGT *string `json:"storeKeyGT,omitempty"` + StoreKeyGTE *string `json:"storeKeyGTE,omitempty"` + StoreKeyLT *string `json:"storeKeyLT,omitempty"` + StoreKeyLTE *string `json:"storeKeyLTE,omitempty"` + StoreKeyContains *string `json:"storeKeyContains,omitempty"` + StoreKeyHasPrefix *string `json:"storeKeyHasPrefix,omitempty"` + StoreKeyHasSuffix *string `json:"storeKeyHasSuffix,omitempty"` + StoreKeyIsNil bool `json:"storeKeyIsNil,omitempty"` + StoreKeyNotNil bool `json:"storeKeyNotNil,omitempty"` + StoreKeyEqualFold *string `json:"storeKeyEqualFold,omitempty"` + StoreKeyContainsFold *string `json:"storeKeyContainsFold,omitempty"` + + // "category_type" field predicates. + CategoryType *string `json:"categoryType,omitempty"` + CategoryTypeNEQ *string `json:"categoryTypeNEQ,omitempty"` + CategoryTypeIn []string `json:"categoryTypeIn,omitempty"` + CategoryTypeNotIn []string `json:"categoryTypeNotIn,omitempty"` + CategoryTypeGT *string `json:"categoryTypeGT,omitempty"` + CategoryTypeGTE *string `json:"categoryTypeGTE,omitempty"` + CategoryTypeLT *string `json:"categoryTypeLT,omitempty"` + CategoryTypeLTE *string `json:"categoryTypeLTE,omitempty"` + CategoryTypeContains *string `json:"categoryTypeContains,omitempty"` + CategoryTypeHasPrefix *string `json:"categoryTypeHasPrefix,omitempty"` + CategoryTypeHasSuffix *string `json:"categoryTypeHasSuffix,omitempty"` + CategoryTypeIsNil bool `json:"categoryTypeIsNil,omitempty"` + CategoryTypeNotNil bool `json:"categoryTypeNotNil,omitempty"` + CategoryTypeEqualFold *string `json:"categoryTypeEqualFold,omitempty"` + CategoryTypeContainsFold *string `json:"categoryTypeContainsFold,omitempty"` + + // "uri" field predicates. + URI *string `json:"uri,omitempty"` + URINEQ *string `json:"uriNEQ,omitempty"` + URIIn []string `json:"uriIn,omitempty"` + URINotIn []string `json:"uriNotIn,omitempty"` + URIGT *string `json:"uriGT,omitempty"` + URIGTE *string `json:"uriGTE,omitempty"` + URILT *string `json:"uriLT,omitempty"` + URILTE *string `json:"uriLTE,omitempty"` + URIContains *string `json:"uriContains,omitempty"` + URIHasPrefix *string `json:"uriHasPrefix,omitempty"` + URIHasSuffix *string `json:"uriHasSuffix,omitempty"` + URIIsNil bool `json:"uriIsNil,omitempty"` + URINotNil bool `json:"uriNotNil,omitempty"` + URIEqualFold *string `json:"uriEqualFold,omitempty"` + URIContainsFold *string `json:"uriContainsFold,omitempty"` + + // "storage_scheme" field predicates. + StorageScheme *string `json:"storageScheme,omitempty"` + StorageSchemeNEQ *string `json:"storageSchemeNEQ,omitempty"` + StorageSchemeIn []string `json:"storageSchemeIn,omitempty"` + StorageSchemeNotIn []string `json:"storageSchemeNotIn,omitempty"` + StorageSchemeGT *string `json:"storageSchemeGT,omitempty"` + StorageSchemeGTE *string `json:"storageSchemeGTE,omitempty"` + StorageSchemeLT *string `json:"storageSchemeLT,omitempty"` + StorageSchemeLTE *string `json:"storageSchemeLTE,omitempty"` + StorageSchemeContains *string `json:"storageSchemeContains,omitempty"` + StorageSchemeHasPrefix *string `json:"storageSchemeHasPrefix,omitempty"` + StorageSchemeHasSuffix *string `json:"storageSchemeHasSuffix,omitempty"` + StorageSchemeIsNil bool `json:"storageSchemeIsNil,omitempty"` + StorageSchemeNotNil bool `json:"storageSchemeNotNil,omitempty"` + StorageSchemeEqualFold *string `json:"storageSchemeEqualFold,omitempty"` + StorageSchemeContainsFold *string `json:"storageSchemeContainsFold,omitempty"` + + // "storage_volume" field predicates. + StorageVolume *string `json:"storageVolume,omitempty"` + StorageVolumeNEQ *string `json:"storageVolumeNEQ,omitempty"` + StorageVolumeIn []string `json:"storageVolumeIn,omitempty"` + StorageVolumeNotIn []string `json:"storageVolumeNotIn,omitempty"` + StorageVolumeGT *string `json:"storageVolumeGT,omitempty"` + StorageVolumeGTE *string `json:"storageVolumeGTE,omitempty"` + StorageVolumeLT *string `json:"storageVolumeLT,omitempty"` + StorageVolumeLTE *string `json:"storageVolumeLTE,omitempty"` + StorageVolumeContains *string `json:"storageVolumeContains,omitempty"` + StorageVolumeHasPrefix *string `json:"storageVolumeHasPrefix,omitempty"` + StorageVolumeHasSuffix *string `json:"storageVolumeHasSuffix,omitempty"` + StorageVolumeIsNil bool `json:"storageVolumeIsNil,omitempty"` + StorageVolumeNotNil bool `json:"storageVolumeNotNil,omitempty"` + StorageVolumeEqualFold *string `json:"storageVolumeEqualFold,omitempty"` + StorageVolumeContainsFold *string `json:"storageVolumeContainsFold,omitempty"` + + // "storage_path" field predicates. + StoragePath *string `json:"storagePath,omitempty"` + StoragePathNEQ *string `json:"storagePathNEQ,omitempty"` + StoragePathIn []string `json:"storagePathIn,omitempty"` + StoragePathNotIn []string `json:"storagePathNotIn,omitempty"` + StoragePathGT *string `json:"storagePathGT,omitempty"` + StoragePathGTE *string `json:"storagePathGTE,omitempty"` + StoragePathLT *string `json:"storagePathLT,omitempty"` + StoragePathLTE *string `json:"storagePathLTE,omitempty"` + StoragePathContains *string `json:"storagePathContains,omitempty"` + StoragePathHasPrefix *string `json:"storagePathHasPrefix,omitempty"` + StoragePathHasSuffix *string `json:"storagePathHasSuffix,omitempty"` + StoragePathIsNil bool `json:"storagePathIsNil,omitempty"` + StoragePathNotNil bool `json:"storagePathNotNil,omitempty"` + StoragePathEqualFold *string `json:"storagePathEqualFold,omitempty"` + StoragePathContainsFold *string `json:"storagePathContainsFold,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *FileHistoryWhereInput) AddPredicates(predicates ...predicate.FileHistory) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the FileHistoryWhereInput filter on the FileHistoryQuery builder. +func (i *FileHistoryWhereInput) Filter(q *FileHistoryQuery) (*FileHistoryQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyFileHistoryWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyFileHistoryWhereInput is returned in case the FileHistoryWhereInput is empty. +var ErrEmptyFileHistoryWhereInput = errors.New("generated: empty predicate FileHistoryWhereInput") + +// P returns a predicate for filtering filehistories. +// An error is returned if the input is empty or invalid. +func (i *FileHistoryWhereInput) P() (predicate.FileHistory, error) { + var predicates []predicate.FileHistory + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, filehistory.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.FileHistory, 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, filehistory.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.FileHistory, 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, filehistory.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, filehistory.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, filehistory.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, filehistory.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, filehistory.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, filehistory.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, filehistory.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, filehistory.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, filehistory.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, filehistory.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, filehistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, filehistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, filehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, filehistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, filehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, filehistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, filehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, filehistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, filehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, filehistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, filehistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, filehistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, filehistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, filehistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, filehistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, filehistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, filehistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, filehistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, filehistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, filehistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, filehistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, filehistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, filehistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, filehistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, filehistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, filehistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, filehistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, filehistory.OperationNotIn(i.OperationNotIn...)) + } + if i.CreatedAt != nil { + predicates = append(predicates, filehistory.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, filehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, filehistory.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, filehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, filehistory.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, filehistory.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, filehistory.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, filehistory.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, filehistory.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, filehistory.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, filehistory.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, filehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, filehistory.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, filehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, filehistory.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, filehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, filehistory.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, filehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, filehistory.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, filehistory.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, filehistory.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, filehistory.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, filehistory.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, filehistory.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, filehistory.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, filehistory.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, filehistory.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, filehistory.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, filehistory.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, filehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, filehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, filehistory.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, filehistory.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, filehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, filehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, filehistory.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, filehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, filehistory.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, filehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, filehistory.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, filehistory.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, filehistory.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, filehistory.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, filehistory.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, filehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, filehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, filehistory.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, filehistory.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, filehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, filehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, filehistory.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, filehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, filehistory.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, filehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, filehistory.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, filehistory.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, filehistory.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, filehistory.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, filehistory.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, filehistory.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, filehistory.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, filehistory.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, filehistory.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, filehistory.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, filehistory.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, filehistory.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, filehistory.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, filehistory.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, filehistory.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, filehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, filehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, filehistory.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, filehistory.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, filehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, filehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.ProvidedFileName != nil { + predicates = append(predicates, filehistory.ProvidedFileNameEQ(*i.ProvidedFileName)) + } + if i.ProvidedFileNameNEQ != nil { + predicates = append(predicates, filehistory.ProvidedFileNameNEQ(*i.ProvidedFileNameNEQ)) + } + if len(i.ProvidedFileNameIn) > 0 { + predicates = append(predicates, filehistory.ProvidedFileNameIn(i.ProvidedFileNameIn...)) + } + if len(i.ProvidedFileNameNotIn) > 0 { + predicates = append(predicates, filehistory.ProvidedFileNameNotIn(i.ProvidedFileNameNotIn...)) + } + if i.ProvidedFileNameGT != nil { + predicates = append(predicates, filehistory.ProvidedFileNameGT(*i.ProvidedFileNameGT)) + } + if i.ProvidedFileNameGTE != nil { + predicates = append(predicates, filehistory.ProvidedFileNameGTE(*i.ProvidedFileNameGTE)) + } + if i.ProvidedFileNameLT != nil { + predicates = append(predicates, filehistory.ProvidedFileNameLT(*i.ProvidedFileNameLT)) + } + if i.ProvidedFileNameLTE != nil { + predicates = append(predicates, filehistory.ProvidedFileNameLTE(*i.ProvidedFileNameLTE)) + } + if i.ProvidedFileNameContains != nil { + predicates = append(predicates, filehistory.ProvidedFileNameContains(*i.ProvidedFileNameContains)) + } + if i.ProvidedFileNameHasPrefix != nil { + predicates = append(predicates, filehistory.ProvidedFileNameHasPrefix(*i.ProvidedFileNameHasPrefix)) + } + if i.ProvidedFileNameHasSuffix != nil { + predicates = append(predicates, filehistory.ProvidedFileNameHasSuffix(*i.ProvidedFileNameHasSuffix)) + } + if i.ProvidedFileNameEqualFold != nil { + predicates = append(predicates, filehistory.ProvidedFileNameEqualFold(*i.ProvidedFileNameEqualFold)) + } + if i.ProvidedFileNameContainsFold != nil { + predicates = append(predicates, filehistory.ProvidedFileNameContainsFold(*i.ProvidedFileNameContainsFold)) + } + if i.ProvidedFileExtension != nil { + predicates = append(predicates, filehistory.ProvidedFileExtensionEQ(*i.ProvidedFileExtension)) + } + if i.ProvidedFileExtensionNEQ != nil { + predicates = append(predicates, filehistory.ProvidedFileExtensionNEQ(*i.ProvidedFileExtensionNEQ)) + } + if len(i.ProvidedFileExtensionIn) > 0 { + predicates = append(predicates, filehistory.ProvidedFileExtensionIn(i.ProvidedFileExtensionIn...)) + } + if len(i.ProvidedFileExtensionNotIn) > 0 { + predicates = append(predicates, filehistory.ProvidedFileExtensionNotIn(i.ProvidedFileExtensionNotIn...)) + } + if i.ProvidedFileExtensionGT != nil { + predicates = append(predicates, filehistory.ProvidedFileExtensionGT(*i.ProvidedFileExtensionGT)) + } + if i.ProvidedFileExtensionGTE != nil { + predicates = append(predicates, filehistory.ProvidedFileExtensionGTE(*i.ProvidedFileExtensionGTE)) + } + if i.ProvidedFileExtensionLT != nil { + predicates = append(predicates, filehistory.ProvidedFileExtensionLT(*i.ProvidedFileExtensionLT)) + } + if i.ProvidedFileExtensionLTE != nil { + predicates = append(predicates, filehistory.ProvidedFileExtensionLTE(*i.ProvidedFileExtensionLTE)) + } + if i.ProvidedFileExtensionContains != nil { + predicates = append(predicates, filehistory.ProvidedFileExtensionContains(*i.ProvidedFileExtensionContains)) + } + if i.ProvidedFileExtensionHasPrefix != nil { + predicates = append(predicates, filehistory.ProvidedFileExtensionHasPrefix(*i.ProvidedFileExtensionHasPrefix)) + } + if i.ProvidedFileExtensionHasSuffix != nil { + predicates = append(predicates, filehistory.ProvidedFileExtensionHasSuffix(*i.ProvidedFileExtensionHasSuffix)) + } + if i.ProvidedFileExtensionEqualFold != nil { + predicates = append(predicates, filehistory.ProvidedFileExtensionEqualFold(*i.ProvidedFileExtensionEqualFold)) + } + if i.ProvidedFileExtensionContainsFold != nil { + predicates = append(predicates, filehistory.ProvidedFileExtensionContainsFold(*i.ProvidedFileExtensionContainsFold)) + } + if i.ProvidedFileSize != nil { + predicates = append(predicates, filehistory.ProvidedFileSizeEQ(*i.ProvidedFileSize)) + } + if i.ProvidedFileSizeNEQ != nil { + predicates = append(predicates, filehistory.ProvidedFileSizeNEQ(*i.ProvidedFileSizeNEQ)) + } + if len(i.ProvidedFileSizeIn) > 0 { + predicates = append(predicates, filehistory.ProvidedFileSizeIn(i.ProvidedFileSizeIn...)) + } + if len(i.ProvidedFileSizeNotIn) > 0 { + predicates = append(predicates, filehistory.ProvidedFileSizeNotIn(i.ProvidedFileSizeNotIn...)) + } + if i.ProvidedFileSizeGT != nil { + predicates = append(predicates, filehistory.ProvidedFileSizeGT(*i.ProvidedFileSizeGT)) + } + if i.ProvidedFileSizeGTE != nil { + predicates = append(predicates, filehistory.ProvidedFileSizeGTE(*i.ProvidedFileSizeGTE)) + } + if i.ProvidedFileSizeLT != nil { + predicates = append(predicates, filehistory.ProvidedFileSizeLT(*i.ProvidedFileSizeLT)) + } + if i.ProvidedFileSizeLTE != nil { + predicates = append(predicates, filehistory.ProvidedFileSizeLTE(*i.ProvidedFileSizeLTE)) + } + if i.ProvidedFileSizeIsNil { + predicates = append(predicates, filehistory.ProvidedFileSizeIsNil()) + } + if i.ProvidedFileSizeNotNil { + predicates = append(predicates, filehistory.ProvidedFileSizeNotNil()) + } + if i.PersistedFileSize != nil { + predicates = append(predicates, filehistory.PersistedFileSizeEQ(*i.PersistedFileSize)) + } + if i.PersistedFileSizeNEQ != nil { + predicates = append(predicates, filehistory.PersistedFileSizeNEQ(*i.PersistedFileSizeNEQ)) + } + if len(i.PersistedFileSizeIn) > 0 { + predicates = append(predicates, filehistory.PersistedFileSizeIn(i.PersistedFileSizeIn...)) + } + if len(i.PersistedFileSizeNotIn) > 0 { + predicates = append(predicates, filehistory.PersistedFileSizeNotIn(i.PersistedFileSizeNotIn...)) + } + if i.PersistedFileSizeGT != nil { + predicates = append(predicates, filehistory.PersistedFileSizeGT(*i.PersistedFileSizeGT)) + } + if i.PersistedFileSizeGTE != nil { + predicates = append(predicates, filehistory.PersistedFileSizeGTE(*i.PersistedFileSizeGTE)) + } + if i.PersistedFileSizeLT != nil { + predicates = append(predicates, filehistory.PersistedFileSizeLT(*i.PersistedFileSizeLT)) + } + if i.PersistedFileSizeLTE != nil { + predicates = append(predicates, filehistory.PersistedFileSizeLTE(*i.PersistedFileSizeLTE)) + } + if i.PersistedFileSizeIsNil { + predicates = append(predicates, filehistory.PersistedFileSizeIsNil()) + } + if i.PersistedFileSizeNotNil { + predicates = append(predicates, filehistory.PersistedFileSizeNotNil()) + } + if i.DetectedMimeType != nil { + predicates = append(predicates, filehistory.DetectedMimeTypeEQ(*i.DetectedMimeType)) + } + if i.DetectedMimeTypeNEQ != nil { + predicates = append(predicates, filehistory.DetectedMimeTypeNEQ(*i.DetectedMimeTypeNEQ)) + } + if len(i.DetectedMimeTypeIn) > 0 { + predicates = append(predicates, filehistory.DetectedMimeTypeIn(i.DetectedMimeTypeIn...)) + } + if len(i.DetectedMimeTypeNotIn) > 0 { + predicates = append(predicates, filehistory.DetectedMimeTypeNotIn(i.DetectedMimeTypeNotIn...)) + } + if i.DetectedMimeTypeGT != nil { + predicates = append(predicates, filehistory.DetectedMimeTypeGT(*i.DetectedMimeTypeGT)) + } + if i.DetectedMimeTypeGTE != nil { + predicates = append(predicates, filehistory.DetectedMimeTypeGTE(*i.DetectedMimeTypeGTE)) + } + if i.DetectedMimeTypeLT != nil { + predicates = append(predicates, filehistory.DetectedMimeTypeLT(*i.DetectedMimeTypeLT)) + } + if i.DetectedMimeTypeLTE != nil { + predicates = append(predicates, filehistory.DetectedMimeTypeLTE(*i.DetectedMimeTypeLTE)) + } + if i.DetectedMimeTypeContains != nil { + predicates = append(predicates, filehistory.DetectedMimeTypeContains(*i.DetectedMimeTypeContains)) + } + if i.DetectedMimeTypeHasPrefix != nil { + predicates = append(predicates, filehistory.DetectedMimeTypeHasPrefix(*i.DetectedMimeTypeHasPrefix)) + } + if i.DetectedMimeTypeHasSuffix != nil { + predicates = append(predicates, filehistory.DetectedMimeTypeHasSuffix(*i.DetectedMimeTypeHasSuffix)) + } + if i.DetectedMimeTypeIsNil { + predicates = append(predicates, filehistory.DetectedMimeTypeIsNil()) + } + if i.DetectedMimeTypeNotNil { + predicates = append(predicates, filehistory.DetectedMimeTypeNotNil()) + } + if i.DetectedMimeTypeEqualFold != nil { + predicates = append(predicates, filehistory.DetectedMimeTypeEqualFold(*i.DetectedMimeTypeEqualFold)) + } + if i.DetectedMimeTypeContainsFold != nil { + predicates = append(predicates, filehistory.DetectedMimeTypeContainsFold(*i.DetectedMimeTypeContainsFold)) + } + if i.Md5Hash != nil { + predicates = append(predicates, filehistory.Md5HashEQ(*i.Md5Hash)) + } + if i.Md5HashNEQ != nil { + predicates = append(predicates, filehistory.Md5HashNEQ(*i.Md5HashNEQ)) + } + if len(i.Md5HashIn) > 0 { + predicates = append(predicates, filehistory.Md5HashIn(i.Md5HashIn...)) + } + if len(i.Md5HashNotIn) > 0 { + predicates = append(predicates, filehistory.Md5HashNotIn(i.Md5HashNotIn...)) + } + if i.Md5HashGT != nil { + predicates = append(predicates, filehistory.Md5HashGT(*i.Md5HashGT)) + } + if i.Md5HashGTE != nil { + predicates = append(predicates, filehistory.Md5HashGTE(*i.Md5HashGTE)) + } + if i.Md5HashLT != nil { + predicates = append(predicates, filehistory.Md5HashLT(*i.Md5HashLT)) + } + if i.Md5HashLTE != nil { + predicates = append(predicates, filehistory.Md5HashLTE(*i.Md5HashLTE)) + } + if i.Md5HashContains != nil { + predicates = append(predicates, filehistory.Md5HashContains(*i.Md5HashContains)) + } + if i.Md5HashHasPrefix != nil { + predicates = append(predicates, filehistory.Md5HashHasPrefix(*i.Md5HashHasPrefix)) + } + if i.Md5HashHasSuffix != nil { + predicates = append(predicates, filehistory.Md5HashHasSuffix(*i.Md5HashHasSuffix)) + } + if i.Md5HashIsNil { + predicates = append(predicates, filehistory.Md5HashIsNil()) + } + if i.Md5HashNotNil { + predicates = append(predicates, filehistory.Md5HashNotNil()) + } + if i.Md5HashEqualFold != nil { + predicates = append(predicates, filehistory.Md5HashEqualFold(*i.Md5HashEqualFold)) + } + if i.Md5HashContainsFold != nil { + predicates = append(predicates, filehistory.Md5HashContainsFold(*i.Md5HashContainsFold)) + } + if i.DetectedContentType != nil { + predicates = append(predicates, filehistory.DetectedContentTypeEQ(*i.DetectedContentType)) + } + if i.DetectedContentTypeNEQ != nil { + predicates = append(predicates, filehistory.DetectedContentTypeNEQ(*i.DetectedContentTypeNEQ)) + } + if len(i.DetectedContentTypeIn) > 0 { + predicates = append(predicates, filehistory.DetectedContentTypeIn(i.DetectedContentTypeIn...)) + } + if len(i.DetectedContentTypeNotIn) > 0 { + predicates = append(predicates, filehistory.DetectedContentTypeNotIn(i.DetectedContentTypeNotIn...)) + } + if i.DetectedContentTypeGT != nil { + predicates = append(predicates, filehistory.DetectedContentTypeGT(*i.DetectedContentTypeGT)) + } + if i.DetectedContentTypeGTE != nil { + predicates = append(predicates, filehistory.DetectedContentTypeGTE(*i.DetectedContentTypeGTE)) + } + if i.DetectedContentTypeLT != nil { + predicates = append(predicates, filehistory.DetectedContentTypeLT(*i.DetectedContentTypeLT)) + } + if i.DetectedContentTypeLTE != nil { + predicates = append(predicates, filehistory.DetectedContentTypeLTE(*i.DetectedContentTypeLTE)) + } + if i.DetectedContentTypeContains != nil { + predicates = append(predicates, filehistory.DetectedContentTypeContains(*i.DetectedContentTypeContains)) + } + if i.DetectedContentTypeHasPrefix != nil { + predicates = append(predicates, filehistory.DetectedContentTypeHasPrefix(*i.DetectedContentTypeHasPrefix)) + } + if i.DetectedContentTypeHasSuffix != nil { + predicates = append(predicates, filehistory.DetectedContentTypeHasSuffix(*i.DetectedContentTypeHasSuffix)) + } + if i.DetectedContentTypeEqualFold != nil { + predicates = append(predicates, filehistory.DetectedContentTypeEqualFold(*i.DetectedContentTypeEqualFold)) + } + if i.DetectedContentTypeContainsFold != nil { + predicates = append(predicates, filehistory.DetectedContentTypeContainsFold(*i.DetectedContentTypeContainsFold)) + } + if i.StoreKey != nil { + predicates = append(predicates, filehistory.StoreKeyEQ(*i.StoreKey)) + } + if i.StoreKeyNEQ != nil { + predicates = append(predicates, filehistory.StoreKeyNEQ(*i.StoreKeyNEQ)) + } + if len(i.StoreKeyIn) > 0 { + predicates = append(predicates, filehistory.StoreKeyIn(i.StoreKeyIn...)) + } + if len(i.StoreKeyNotIn) > 0 { + predicates = append(predicates, filehistory.StoreKeyNotIn(i.StoreKeyNotIn...)) + } + if i.StoreKeyGT != nil { + predicates = append(predicates, filehistory.StoreKeyGT(*i.StoreKeyGT)) + } + if i.StoreKeyGTE != nil { + predicates = append(predicates, filehistory.StoreKeyGTE(*i.StoreKeyGTE)) + } + if i.StoreKeyLT != nil { + predicates = append(predicates, filehistory.StoreKeyLT(*i.StoreKeyLT)) + } + if i.StoreKeyLTE != nil { + predicates = append(predicates, filehistory.StoreKeyLTE(*i.StoreKeyLTE)) + } + if i.StoreKeyContains != nil { + predicates = append(predicates, filehistory.StoreKeyContains(*i.StoreKeyContains)) + } + if i.StoreKeyHasPrefix != nil { + predicates = append(predicates, filehistory.StoreKeyHasPrefix(*i.StoreKeyHasPrefix)) + } + if i.StoreKeyHasSuffix != nil { + predicates = append(predicates, filehistory.StoreKeyHasSuffix(*i.StoreKeyHasSuffix)) + } + if i.StoreKeyIsNil { + predicates = append(predicates, filehistory.StoreKeyIsNil()) + } + if i.StoreKeyNotNil { + predicates = append(predicates, filehistory.StoreKeyNotNil()) + } + if i.StoreKeyEqualFold != nil { + predicates = append(predicates, filehistory.StoreKeyEqualFold(*i.StoreKeyEqualFold)) + } + if i.StoreKeyContainsFold != nil { + predicates = append(predicates, filehistory.StoreKeyContainsFold(*i.StoreKeyContainsFold)) + } + if i.CategoryType != nil { + predicates = append(predicates, filehistory.CategoryTypeEQ(*i.CategoryType)) + } + if i.CategoryTypeNEQ != nil { + predicates = append(predicates, filehistory.CategoryTypeNEQ(*i.CategoryTypeNEQ)) + } + if len(i.CategoryTypeIn) > 0 { + predicates = append(predicates, filehistory.CategoryTypeIn(i.CategoryTypeIn...)) + } + if len(i.CategoryTypeNotIn) > 0 { + predicates = append(predicates, filehistory.CategoryTypeNotIn(i.CategoryTypeNotIn...)) + } + if i.CategoryTypeGT != nil { + predicates = append(predicates, filehistory.CategoryTypeGT(*i.CategoryTypeGT)) + } + if i.CategoryTypeGTE != nil { + predicates = append(predicates, filehistory.CategoryTypeGTE(*i.CategoryTypeGTE)) + } + if i.CategoryTypeLT != nil { + predicates = append(predicates, filehistory.CategoryTypeLT(*i.CategoryTypeLT)) + } + if i.CategoryTypeLTE != nil { + predicates = append(predicates, filehistory.CategoryTypeLTE(*i.CategoryTypeLTE)) + } + if i.CategoryTypeContains != nil { + predicates = append(predicates, filehistory.CategoryTypeContains(*i.CategoryTypeContains)) + } + if i.CategoryTypeHasPrefix != nil { + predicates = append(predicates, filehistory.CategoryTypeHasPrefix(*i.CategoryTypeHasPrefix)) + } + if i.CategoryTypeHasSuffix != nil { + predicates = append(predicates, filehistory.CategoryTypeHasSuffix(*i.CategoryTypeHasSuffix)) + } + if i.CategoryTypeIsNil { + predicates = append(predicates, filehistory.CategoryTypeIsNil()) + } + if i.CategoryTypeNotNil { + predicates = append(predicates, filehistory.CategoryTypeNotNil()) + } + if i.CategoryTypeEqualFold != nil { + predicates = append(predicates, filehistory.CategoryTypeEqualFold(*i.CategoryTypeEqualFold)) + } + if i.CategoryTypeContainsFold != nil { + predicates = append(predicates, filehistory.CategoryTypeContainsFold(*i.CategoryTypeContainsFold)) + } + if i.URI != nil { + predicates = append(predicates, filehistory.URIEQ(*i.URI)) + } + if i.URINEQ != nil { + predicates = append(predicates, filehistory.URINEQ(*i.URINEQ)) + } + if len(i.URIIn) > 0 { + predicates = append(predicates, filehistory.URIIn(i.URIIn...)) + } + if len(i.URINotIn) > 0 { + predicates = append(predicates, filehistory.URINotIn(i.URINotIn...)) + } + if i.URIGT != nil { + predicates = append(predicates, filehistory.URIGT(*i.URIGT)) + } + if i.URIGTE != nil { + predicates = append(predicates, filehistory.URIGTE(*i.URIGTE)) + } + if i.URILT != nil { + predicates = append(predicates, filehistory.URILT(*i.URILT)) + } + if i.URILTE != nil { + predicates = append(predicates, filehistory.URILTE(*i.URILTE)) + } + if i.URIContains != nil { + predicates = append(predicates, filehistory.URIContains(*i.URIContains)) + } + if i.URIHasPrefix != nil { + predicates = append(predicates, filehistory.URIHasPrefix(*i.URIHasPrefix)) + } + if i.URIHasSuffix != nil { + predicates = append(predicates, filehistory.URIHasSuffix(*i.URIHasSuffix)) + } + if i.URIIsNil { + predicates = append(predicates, filehistory.URIIsNil()) + } + if i.URINotNil { + predicates = append(predicates, filehistory.URINotNil()) + } + if i.URIEqualFold != nil { + predicates = append(predicates, filehistory.URIEqualFold(*i.URIEqualFold)) + } + if i.URIContainsFold != nil { + predicates = append(predicates, filehistory.URIContainsFold(*i.URIContainsFold)) + } + if i.StorageScheme != nil { + predicates = append(predicates, filehistory.StorageSchemeEQ(*i.StorageScheme)) + } + if i.StorageSchemeNEQ != nil { + predicates = append(predicates, filehistory.StorageSchemeNEQ(*i.StorageSchemeNEQ)) + } + if len(i.StorageSchemeIn) > 0 { + predicates = append(predicates, filehistory.StorageSchemeIn(i.StorageSchemeIn...)) + } + if len(i.StorageSchemeNotIn) > 0 { + predicates = append(predicates, filehistory.StorageSchemeNotIn(i.StorageSchemeNotIn...)) + } + if i.StorageSchemeGT != nil { + predicates = append(predicates, filehistory.StorageSchemeGT(*i.StorageSchemeGT)) + } + if i.StorageSchemeGTE != nil { + predicates = append(predicates, filehistory.StorageSchemeGTE(*i.StorageSchemeGTE)) + } + if i.StorageSchemeLT != nil { + predicates = append(predicates, filehistory.StorageSchemeLT(*i.StorageSchemeLT)) + } + if i.StorageSchemeLTE != nil { + predicates = append(predicates, filehistory.StorageSchemeLTE(*i.StorageSchemeLTE)) + } + if i.StorageSchemeContains != nil { + predicates = append(predicates, filehistory.StorageSchemeContains(*i.StorageSchemeContains)) + } + if i.StorageSchemeHasPrefix != nil { + predicates = append(predicates, filehistory.StorageSchemeHasPrefix(*i.StorageSchemeHasPrefix)) + } + if i.StorageSchemeHasSuffix != nil { + predicates = append(predicates, filehistory.StorageSchemeHasSuffix(*i.StorageSchemeHasSuffix)) + } + if i.StorageSchemeIsNil { + predicates = append(predicates, filehistory.StorageSchemeIsNil()) + } + if i.StorageSchemeNotNil { + predicates = append(predicates, filehistory.StorageSchemeNotNil()) + } + if i.StorageSchemeEqualFold != nil { + predicates = append(predicates, filehistory.StorageSchemeEqualFold(*i.StorageSchemeEqualFold)) + } + if i.StorageSchemeContainsFold != nil { + predicates = append(predicates, filehistory.StorageSchemeContainsFold(*i.StorageSchemeContainsFold)) + } + if i.StorageVolume != nil { + predicates = append(predicates, filehistory.StorageVolumeEQ(*i.StorageVolume)) + } + if i.StorageVolumeNEQ != nil { + predicates = append(predicates, filehistory.StorageVolumeNEQ(*i.StorageVolumeNEQ)) + } + if len(i.StorageVolumeIn) > 0 { + predicates = append(predicates, filehistory.StorageVolumeIn(i.StorageVolumeIn...)) + } + if len(i.StorageVolumeNotIn) > 0 { + predicates = append(predicates, filehistory.StorageVolumeNotIn(i.StorageVolumeNotIn...)) + } + if i.StorageVolumeGT != nil { + predicates = append(predicates, filehistory.StorageVolumeGT(*i.StorageVolumeGT)) + } + if i.StorageVolumeGTE != nil { + predicates = append(predicates, filehistory.StorageVolumeGTE(*i.StorageVolumeGTE)) + } + if i.StorageVolumeLT != nil { + predicates = append(predicates, filehistory.StorageVolumeLT(*i.StorageVolumeLT)) + } + if i.StorageVolumeLTE != nil { + predicates = append(predicates, filehistory.StorageVolumeLTE(*i.StorageVolumeLTE)) + } + if i.StorageVolumeContains != nil { + predicates = append(predicates, filehistory.StorageVolumeContains(*i.StorageVolumeContains)) + } + if i.StorageVolumeHasPrefix != nil { + predicates = append(predicates, filehistory.StorageVolumeHasPrefix(*i.StorageVolumeHasPrefix)) + } + if i.StorageVolumeHasSuffix != nil { + predicates = append(predicates, filehistory.StorageVolumeHasSuffix(*i.StorageVolumeHasSuffix)) + } + if i.StorageVolumeIsNil { + predicates = append(predicates, filehistory.StorageVolumeIsNil()) + } + if i.StorageVolumeNotNil { + predicates = append(predicates, filehistory.StorageVolumeNotNil()) + } + if i.StorageVolumeEqualFold != nil { + predicates = append(predicates, filehistory.StorageVolumeEqualFold(*i.StorageVolumeEqualFold)) + } + if i.StorageVolumeContainsFold != nil { + predicates = append(predicates, filehistory.StorageVolumeContainsFold(*i.StorageVolumeContainsFold)) + } + if i.StoragePath != nil { + predicates = append(predicates, filehistory.StoragePathEQ(*i.StoragePath)) + } + if i.StoragePathNEQ != nil { + predicates = append(predicates, filehistory.StoragePathNEQ(*i.StoragePathNEQ)) + } + if len(i.StoragePathIn) > 0 { + predicates = append(predicates, filehistory.StoragePathIn(i.StoragePathIn...)) + } + if len(i.StoragePathNotIn) > 0 { + predicates = append(predicates, filehistory.StoragePathNotIn(i.StoragePathNotIn...)) + } + if i.StoragePathGT != nil { + predicates = append(predicates, filehistory.StoragePathGT(*i.StoragePathGT)) + } + if i.StoragePathGTE != nil { + predicates = append(predicates, filehistory.StoragePathGTE(*i.StoragePathGTE)) + } + if i.StoragePathLT != nil { + predicates = append(predicates, filehistory.StoragePathLT(*i.StoragePathLT)) + } + if i.StoragePathLTE != nil { + predicates = append(predicates, filehistory.StoragePathLTE(*i.StoragePathLTE)) + } + if i.StoragePathContains != nil { + predicates = append(predicates, filehistory.StoragePathContains(*i.StoragePathContains)) + } + if i.StoragePathHasPrefix != nil { + predicates = append(predicates, filehistory.StoragePathHasPrefix(*i.StoragePathHasPrefix)) + } + if i.StoragePathHasSuffix != nil { + predicates = append(predicates, filehistory.StoragePathHasSuffix(*i.StoragePathHasSuffix)) + } + if i.StoragePathIsNil { + predicates = append(predicates, filehistory.StoragePathIsNil()) + } + if i.StoragePathNotNil { + predicates = append(predicates, filehistory.StoragePathNotNil()) + } + if i.StoragePathEqualFold != nil { + predicates = append(predicates, filehistory.StoragePathEqualFold(*i.StoragePathEqualFold)) + } + if i.StoragePathContainsFold != nil { + predicates = append(predicates, filehistory.StoragePathContainsFold(*i.StoragePathContainsFold)) + } + + switch len(predicates) { + case 0: + return nil, ErrEmptyFileHistoryWhereInput + case 1: + return predicates[0], nil + default: + return filehistory.And(predicates...), nil + } +} + +// GroupWhereInput represents a where input for filtering Group queries. +type GroupWhereInput struct { + Predicates []predicate.Group `json:"-"` + Not *GroupWhereInput `json:"not,omitempty"` + Or []*GroupWhereInput `json:"or,omitempty"` + And []*GroupWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + + // "display_name" field predicates. + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGT *string `json:"displayNameGT,omitempty"` + DisplayNameGTE *string `json:"displayNameGTE,omitempty"` + DisplayNameLT *string `json:"displayNameLT,omitempty"` + DisplayNameLTE *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + + // "owner" edge predicates. + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + + // "setting" edge predicates. + HasSetting *bool `json:"hasSetting,omitempty"` + HasSettingWith []*GroupSettingWhereInput `json:"hasSettingWith,omitempty"` + + // "users" edge predicates. + HasUsers *bool `json:"hasUsers,omitempty"` + HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"` + + // "events" edge predicates. + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + + // "integrations" edge predicates. + HasIntegrations *bool `json:"hasIntegrations,omitempty"` + HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` + + // "files" edge predicates. + HasFiles *bool `json:"hasFiles,omitempty"` + HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` + + // "members" edge predicates. + HasMembers *bool `json:"hasMembers,omitempty"` + HasMembersWith []*GroupMembershipWhereInput `json:"hasMembersWith,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *GroupWhereInput) AddPredicates(predicates ...predicate.Group) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the GroupWhereInput filter on the GroupQuery builder. +func (i *GroupWhereInput) Filter(q *GroupQuery) (*GroupQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyGroupWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyGroupWhereInput is returned in case the GroupWhereInput is empty. +var ErrEmptyGroupWhereInput = errors.New("generated: empty predicate GroupWhereInput") + +// P returns a predicate for filtering groups. +// An error is returned if the input is empty or invalid. +func (i *GroupWhereInput) P() (predicate.Group, error) { + var predicates []predicate.Group + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, group.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.Group, 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, group.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.Group, 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, group.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, group.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, group.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, group.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, group.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, group.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, group.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, group.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, group.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, group.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, group.IDContainsFold(*i.IDContainsFold)) + } + if i.CreatedAt != nil { + predicates = append(predicates, group.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, group.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, group.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, group.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, group.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, group.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, group.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, group.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, group.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, group.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, group.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, group.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, group.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, group.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, group.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, group.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, group.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, group.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, group.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, group.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, group.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, group.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, group.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, group.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, group.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, group.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, group.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, group.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, group.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, group.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, group.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, group.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, group.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, group.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, group.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, group.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, group.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, group.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, group.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, group.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, group.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, group.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, group.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, group.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, group.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, group.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, group.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, group.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, group.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, group.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, group.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, group.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, group.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, group.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, group.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, group.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, group.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, group.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, group.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, group.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, group.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, group.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, group.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, group.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, group.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, group.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, group.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, group.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, group.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, group.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, group.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, group.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, group.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, group.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, group.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.OwnerID != nil { + predicates = append(predicates, group.OwnerIDEQ(*i.OwnerID)) + } + if i.OwnerIDNEQ != nil { + predicates = append(predicates, group.OwnerIDNEQ(*i.OwnerIDNEQ)) + } + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, group.OwnerIDIn(i.OwnerIDIn...)) + } + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, group.OwnerIDNotIn(i.OwnerIDNotIn...)) + } + if i.OwnerIDGT != nil { + predicates = append(predicates, group.OwnerIDGT(*i.OwnerIDGT)) + } + if i.OwnerIDGTE != nil { + predicates = append(predicates, group.OwnerIDGTE(*i.OwnerIDGTE)) + } + if i.OwnerIDLT != nil { + predicates = append(predicates, group.OwnerIDLT(*i.OwnerIDLT)) + } + if i.OwnerIDLTE != nil { + predicates = append(predicates, group.OwnerIDLTE(*i.OwnerIDLTE)) + } + if i.OwnerIDContains != nil { + predicates = append(predicates, group.OwnerIDContains(*i.OwnerIDContains)) + } + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, group.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + } + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, group.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + } + if i.OwnerIDIsNil { + predicates = append(predicates, group.OwnerIDIsNil()) + } + if i.OwnerIDNotNil { + predicates = append(predicates, group.OwnerIDNotNil()) + } + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, group.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + } + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, group.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, group.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, group.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, group.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, group.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, group.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, group.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, group.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, group.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, group.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, group.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, group.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, group.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, group.NameContainsFold(*i.NameContainsFold)) + } + if i.DisplayName != nil { + predicates = append(predicates, group.DisplayNameEQ(*i.DisplayName)) + } + if i.DisplayNameNEQ != nil { + predicates = append(predicates, group.DisplayNameNEQ(*i.DisplayNameNEQ)) + } + if len(i.DisplayNameIn) > 0 { + predicates = append(predicates, group.DisplayNameIn(i.DisplayNameIn...)) + } + if len(i.DisplayNameNotIn) > 0 { + predicates = append(predicates, group.DisplayNameNotIn(i.DisplayNameNotIn...)) + } + if i.DisplayNameGT != nil { + predicates = append(predicates, group.DisplayNameGT(*i.DisplayNameGT)) + } + if i.DisplayNameGTE != nil { + predicates = append(predicates, group.DisplayNameGTE(*i.DisplayNameGTE)) + } + if i.DisplayNameLT != nil { + predicates = append(predicates, group.DisplayNameLT(*i.DisplayNameLT)) + } + if i.DisplayNameLTE != nil { + predicates = append(predicates, group.DisplayNameLTE(*i.DisplayNameLTE)) + } + if i.DisplayNameContains != nil { + predicates = append(predicates, group.DisplayNameContains(*i.DisplayNameContains)) + } + if i.DisplayNameHasPrefix != nil { + predicates = append(predicates, group.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + } + if i.DisplayNameHasSuffix != nil { + predicates = append(predicates, group.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + } + if i.DisplayNameEqualFold != nil { + predicates = append(predicates, group.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + } + if i.DisplayNameContainsFold != nil { + predicates = append(predicates, group.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + } + + if i.HasOwner != nil { + p := group.HasOwner() + if !*i.HasOwner { + p = group.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOwnerWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) + 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, group.HasOwnerWith(with...)) + } + if i.HasSetting != nil { + p := group.HasSetting() + if !*i.HasSetting { + p = group.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasSettingWith) > 0 { + with := make([]predicate.GroupSetting, 0, len(i.HasSettingWith)) + for _, w := range i.HasSettingWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasSettingWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, group.HasSettingWith(with...)) + } + if i.HasUsers != nil { + p := group.HasUsers() + if !*i.HasUsers { + p = group.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasUsersWith) > 0 { + with := make([]predicate.User, 0, len(i.HasUsersWith)) + for _, w := range i.HasUsersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasUsersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, group.HasUsersWith(with...)) + } + if i.HasEvents != nil { + p := group.HasEvents() + if !*i.HasEvents { + p = group.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEventsWith) > 0 { + with := make([]predicate.Event, 0, len(i.HasEventsWith)) + for _, w := range i.HasEventsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, group.HasEventsWith(with...)) + } + if i.HasIntegrations != nil { + p := group.HasIntegrations() + if !*i.HasIntegrations { + p = group.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasIntegrationsWith) > 0 { + with := make([]predicate.Integration, 0, len(i.HasIntegrationsWith)) + for _, w := range i.HasIntegrationsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasIntegrationsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, group.HasIntegrationsWith(with...)) + } + if i.HasFiles != nil { + p := group.HasFiles() + if !*i.HasFiles { + p = group.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasFilesWith) > 0 { + with := make([]predicate.File, 0, len(i.HasFilesWith)) + for _, w := range i.HasFilesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFilesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, group.HasFilesWith(with...)) + } + if i.HasMembers != nil { + p := group.HasMembers() + if !*i.HasMembers { + p = group.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasMembersWith) > 0 { + with := make([]predicate.GroupMembership, 0, len(i.HasMembersWith)) + for _, w := range i.HasMembersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasMembersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, group.HasMembersWith(with...)) + } + switch len(predicates) { + case 0: + return nil, ErrEmptyGroupWhereInput + case 1: + return predicates[0], nil + default: + return group.And(predicates...), nil + } +} + +// GroupHistoryWhereInput represents a where input for filtering GroupHistory queries. +type GroupHistoryWhereInput struct { + Predicates []predicate.GroupHistory `json:"-"` + Not *GroupHistoryWhereInput `json:"not,omitempty"` + Or []*GroupHistoryWhereInput `json:"or,omitempty"` + And []*GroupHistoryWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + + // "display_name" field predicates. + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGT *string `json:"displayNameGT,omitempty"` + DisplayNameGTE *string `json:"displayNameGTE,omitempty"` + DisplayNameLT *string `json:"displayNameLT,omitempty"` + DisplayNameLTE *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *GroupHistoryWhereInput) AddPredicates(predicates ...predicate.GroupHistory) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the GroupHistoryWhereInput filter on the GroupHistoryQuery builder. +func (i *GroupHistoryWhereInput) Filter(q *GroupHistoryQuery) (*GroupHistoryQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyGroupHistoryWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyGroupHistoryWhereInput is returned in case the GroupHistoryWhereInput is empty. +var ErrEmptyGroupHistoryWhereInput = errors.New("generated: empty predicate GroupHistoryWhereInput") + +// P returns a predicate for filtering grouphistories. +// An error is returned if the input is empty or invalid. +func (i *GroupHistoryWhereInput) P() (predicate.GroupHistory, error) { + var predicates []predicate.GroupHistory + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, grouphistory.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.GroupHistory, 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, grouphistory.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.GroupHistory, 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, grouphistory.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, grouphistory.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, grouphistory.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, grouphistory.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, grouphistory.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, grouphistory.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, grouphistory.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, grouphistory.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, grouphistory.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, grouphistory.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, grouphistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, grouphistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, grouphistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, grouphistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, grouphistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, grouphistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, grouphistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, grouphistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, grouphistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, grouphistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, grouphistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, grouphistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, grouphistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, grouphistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, grouphistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, grouphistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, grouphistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, grouphistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, grouphistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, grouphistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, grouphistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, grouphistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, grouphistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, grouphistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, grouphistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, grouphistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, grouphistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, grouphistory.OperationNotIn(i.OperationNotIn...)) + } + if i.CreatedAt != nil { + predicates = append(predicates, grouphistory.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, grouphistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, grouphistory.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, grouphistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, grouphistory.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, grouphistory.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, grouphistory.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, grouphistory.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, grouphistory.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, grouphistory.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, grouphistory.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, grouphistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, grouphistory.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, grouphistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, grouphistory.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, grouphistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, grouphistory.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, grouphistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, grouphistory.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, grouphistory.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, grouphistory.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, grouphistory.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, grouphistory.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, grouphistory.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, grouphistory.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, grouphistory.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, grouphistory.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, grouphistory.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, grouphistory.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, grouphistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, grouphistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, grouphistory.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, grouphistory.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, grouphistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, grouphistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, grouphistory.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, grouphistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, grouphistory.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, grouphistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, grouphistory.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, grouphistory.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, grouphistory.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, grouphistory.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, grouphistory.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, grouphistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, grouphistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, grouphistory.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, grouphistory.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, grouphistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, grouphistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, grouphistory.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, grouphistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, grouphistory.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, grouphistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, grouphistory.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, grouphistory.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, grouphistory.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, grouphistory.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, grouphistory.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, grouphistory.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, grouphistory.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, grouphistory.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, grouphistory.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, grouphistory.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, grouphistory.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, grouphistory.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, grouphistory.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, grouphistory.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, grouphistory.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, grouphistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, grouphistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, grouphistory.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, grouphistory.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, grouphistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, grouphistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.OwnerID != nil { + predicates = append(predicates, grouphistory.OwnerIDEQ(*i.OwnerID)) + } + if i.OwnerIDNEQ != nil { + predicates = append(predicates, grouphistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + } + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, grouphistory.OwnerIDIn(i.OwnerIDIn...)) + } + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, grouphistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + } + if i.OwnerIDGT != nil { + predicates = append(predicates, grouphistory.OwnerIDGT(*i.OwnerIDGT)) + } + if i.OwnerIDGTE != nil { + predicates = append(predicates, grouphistory.OwnerIDGTE(*i.OwnerIDGTE)) + } + if i.OwnerIDLT != nil { + predicates = append(predicates, grouphistory.OwnerIDLT(*i.OwnerIDLT)) + } + if i.OwnerIDLTE != nil { + predicates = append(predicates, grouphistory.OwnerIDLTE(*i.OwnerIDLTE)) + } + if i.OwnerIDContains != nil { + predicates = append(predicates, grouphistory.OwnerIDContains(*i.OwnerIDContains)) + } + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, grouphistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + } + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, grouphistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + } + if i.OwnerIDIsNil { + predicates = append(predicates, grouphistory.OwnerIDIsNil()) + } + if i.OwnerIDNotNil { + predicates = append(predicates, grouphistory.OwnerIDNotNil()) + } + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, grouphistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + } + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, grouphistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, grouphistory.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, grouphistory.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, grouphistory.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, grouphistory.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, grouphistory.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, grouphistory.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, grouphistory.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, grouphistory.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, grouphistory.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, grouphistory.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, grouphistory.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, grouphistory.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, grouphistory.NameContainsFold(*i.NameContainsFold)) + } + if i.DisplayName != nil { + predicates = append(predicates, grouphistory.DisplayNameEQ(*i.DisplayName)) + } + if i.DisplayNameNEQ != nil { + predicates = append(predicates, grouphistory.DisplayNameNEQ(*i.DisplayNameNEQ)) + } + if len(i.DisplayNameIn) > 0 { + predicates = append(predicates, grouphistory.DisplayNameIn(i.DisplayNameIn...)) + } + if len(i.DisplayNameNotIn) > 0 { + predicates = append(predicates, grouphistory.DisplayNameNotIn(i.DisplayNameNotIn...)) + } + if i.DisplayNameGT != nil { + predicates = append(predicates, grouphistory.DisplayNameGT(*i.DisplayNameGT)) + } + if i.DisplayNameGTE != nil { + predicates = append(predicates, grouphistory.DisplayNameGTE(*i.DisplayNameGTE)) + } + if i.DisplayNameLT != nil { + predicates = append(predicates, grouphistory.DisplayNameLT(*i.DisplayNameLT)) + } + if i.DisplayNameLTE != nil { + predicates = append(predicates, grouphistory.DisplayNameLTE(*i.DisplayNameLTE)) + } + if i.DisplayNameContains != nil { + predicates = append(predicates, grouphistory.DisplayNameContains(*i.DisplayNameContains)) + } + if i.DisplayNameHasPrefix != nil { + predicates = append(predicates, grouphistory.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + } + if i.DisplayNameHasSuffix != nil { + predicates = append(predicates, grouphistory.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + } + if i.DisplayNameEqualFold != nil { + predicates = append(predicates, grouphistory.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + } + if i.DisplayNameContainsFold != nil { + predicates = append(predicates, grouphistory.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + } + + switch len(predicates) { + case 0: + return nil, ErrEmptyGroupHistoryWhereInput + case 1: + return predicates[0], nil + default: + return grouphistory.And(predicates...), nil + } +} + +// GroupMembershipWhereInput represents a where input for filtering GroupMembership queries. +type GroupMembershipWhereInput struct { + Predicates []predicate.GroupMembership `json:"-"` + Not *GroupMembershipWhereInput `json:"not,omitempty"` + Or []*GroupMembershipWhereInput `json:"or,omitempty"` + And []*GroupMembershipWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + + // "role" field predicates. + Role *enums.Role `json:"role,omitempty"` + RoleNEQ *enums.Role `json:"roleNEQ,omitempty"` + RoleIn []enums.Role `json:"roleIn,omitempty"` + RoleNotIn []enums.Role `json:"roleNotIn,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"` + GroupIDGT *string `json:"groupIDGT,omitempty"` + GroupIDGTE *string `json:"groupIDGTE,omitempty"` + GroupIDLT *string `json:"groupIDLT,omitempty"` + GroupIDLTE *string `json:"groupIDLTE,omitempty"` + GroupIDContains *string `json:"groupIDContains,omitempty"` + GroupIDHasPrefix *string `json:"groupIDHasPrefix,omitempty"` + GroupIDHasSuffix *string `json:"groupIDHasSuffix,omitempty"` + GroupIDEqualFold *string `json:"groupIDEqualFold,omitempty"` + GroupIDContainsFold *string `json:"groupIDContainsFold,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"` + UserIDGT *string `json:"userIDGT,omitempty"` + UserIDGTE *string `json:"userIDGTE,omitempty"` + UserIDLT *string `json:"userIDLT,omitempty"` + UserIDLTE *string `json:"userIDLTE,omitempty"` + UserIDContains *string `json:"userIDContains,omitempty"` + UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` + UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` + UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` + UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` + + // "group" edge predicates. + HasGroup *bool `json:"hasGroup,omitempty"` + HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` + + // "user" edge predicates. + HasUser *bool `json:"hasUser,omitempty"` + HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` + + // "events" edge predicates. + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *GroupMembershipWhereInput) AddPredicates(predicates ...predicate.GroupMembership) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the GroupMembershipWhereInput filter on the GroupMembershipQuery builder. +func (i *GroupMembershipWhereInput) Filter(q *GroupMembershipQuery) (*GroupMembershipQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyGroupMembershipWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyGroupMembershipWhereInput is returned in case the GroupMembershipWhereInput is empty. +var ErrEmptyGroupMembershipWhereInput = errors.New("generated: empty predicate GroupMembershipWhereInput") + +// P returns a predicate for filtering groupmemberships. +// An error is returned if the input is empty or invalid. +func (i *GroupMembershipWhereInput) P() (predicate.GroupMembership, error) { + var predicates []predicate.GroupMembership + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, groupmembership.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.GroupMembership, 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, groupmembership.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.GroupMembership, 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, groupmembership.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, groupmembership.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, groupmembership.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, groupmembership.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, groupmembership.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, groupmembership.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, groupmembership.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, groupmembership.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, groupmembership.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, groupmembership.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, groupmembership.IDContainsFold(*i.IDContainsFold)) + } + if i.CreatedAt != nil { + predicates = append(predicates, groupmembership.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, groupmembership.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, groupmembership.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, groupmembership.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, groupmembership.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, groupmembership.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, groupmembership.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, groupmembership.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, groupmembership.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, groupmembership.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, groupmembership.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, groupmembership.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, groupmembership.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, groupmembership.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, groupmembership.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, groupmembership.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, groupmembership.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, groupmembership.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, groupmembership.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, groupmembership.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, groupmembership.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, groupmembership.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, groupmembership.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, groupmembership.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, groupmembership.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, groupmembership.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, groupmembership.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, groupmembership.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, groupmembership.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, groupmembership.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, groupmembership.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, groupmembership.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, groupmembership.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, groupmembership.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, groupmembership.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, groupmembership.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, groupmembership.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, groupmembership.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, groupmembership.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, groupmembership.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, groupmembership.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, groupmembership.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, groupmembership.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, groupmembership.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, groupmembership.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, groupmembership.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, groupmembership.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, groupmembership.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, groupmembership.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, groupmembership.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, groupmembership.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, groupmembership.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, groupmembership.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, groupmembership.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, groupmembership.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, groupmembership.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, groupmembership.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, groupmembership.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, groupmembership.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, groupmembership.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, groupmembership.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, groupmembership.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, groupmembership.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, groupmembership.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, groupmembership.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, groupmembership.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, groupmembership.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, groupmembership.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, groupmembership.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, groupmembership.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, groupmembership.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, groupmembership.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, groupmembership.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, groupmembership.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, groupmembership.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.Role != nil { + predicates = append(predicates, groupmembership.RoleEQ(*i.Role)) + } + if i.RoleNEQ != nil { + predicates = append(predicates, groupmembership.RoleNEQ(*i.RoleNEQ)) + } + if len(i.RoleIn) > 0 { + predicates = append(predicates, groupmembership.RoleIn(i.RoleIn...)) + } + if len(i.RoleNotIn) > 0 { + predicates = append(predicates, groupmembership.RoleNotIn(i.RoleNotIn...)) + } + if i.GroupID != nil { + predicates = append(predicates, groupmembership.GroupIDEQ(*i.GroupID)) + } + if i.GroupIDNEQ != nil { + predicates = append(predicates, groupmembership.GroupIDNEQ(*i.GroupIDNEQ)) + } + if len(i.GroupIDIn) > 0 { + predicates = append(predicates, groupmembership.GroupIDIn(i.GroupIDIn...)) + } + if len(i.GroupIDNotIn) > 0 { + predicates = append(predicates, groupmembership.GroupIDNotIn(i.GroupIDNotIn...)) + } + if i.GroupIDGT != nil { + predicates = append(predicates, groupmembership.GroupIDGT(*i.GroupIDGT)) + } + if i.GroupIDGTE != nil { + predicates = append(predicates, groupmembership.GroupIDGTE(*i.GroupIDGTE)) + } + if i.GroupIDLT != nil { + predicates = append(predicates, groupmembership.GroupIDLT(*i.GroupIDLT)) + } + if i.GroupIDLTE != nil { + predicates = append(predicates, groupmembership.GroupIDLTE(*i.GroupIDLTE)) + } + if i.GroupIDContains != nil { + predicates = append(predicates, groupmembership.GroupIDContains(*i.GroupIDContains)) + } + if i.GroupIDHasPrefix != nil { + predicates = append(predicates, groupmembership.GroupIDHasPrefix(*i.GroupIDHasPrefix)) + } + if i.GroupIDHasSuffix != nil { + predicates = append(predicates, groupmembership.GroupIDHasSuffix(*i.GroupIDHasSuffix)) + } + if i.GroupIDEqualFold != nil { + predicates = append(predicates, groupmembership.GroupIDEqualFold(*i.GroupIDEqualFold)) + } + if i.GroupIDContainsFold != nil { + predicates = append(predicates, groupmembership.GroupIDContainsFold(*i.GroupIDContainsFold)) + } + if i.UserID != nil { + predicates = append(predicates, groupmembership.UserIDEQ(*i.UserID)) + } + if i.UserIDNEQ != nil { + predicates = append(predicates, groupmembership.UserIDNEQ(*i.UserIDNEQ)) + } + if len(i.UserIDIn) > 0 { + predicates = append(predicates, groupmembership.UserIDIn(i.UserIDIn...)) + } + if len(i.UserIDNotIn) > 0 { + predicates = append(predicates, groupmembership.UserIDNotIn(i.UserIDNotIn...)) + } + if i.UserIDGT != nil { + predicates = append(predicates, groupmembership.UserIDGT(*i.UserIDGT)) + } + if i.UserIDGTE != nil { + predicates = append(predicates, groupmembership.UserIDGTE(*i.UserIDGTE)) + } + if i.UserIDLT != nil { + predicates = append(predicates, groupmembership.UserIDLT(*i.UserIDLT)) + } + if i.UserIDLTE != nil { + predicates = append(predicates, groupmembership.UserIDLTE(*i.UserIDLTE)) + } + if i.UserIDContains != nil { + predicates = append(predicates, groupmembership.UserIDContains(*i.UserIDContains)) + } + if i.UserIDHasPrefix != nil { + predicates = append(predicates, groupmembership.UserIDHasPrefix(*i.UserIDHasPrefix)) + } + if i.UserIDHasSuffix != nil { + predicates = append(predicates, groupmembership.UserIDHasSuffix(*i.UserIDHasSuffix)) + } + if i.UserIDEqualFold != nil { + predicates = append(predicates, groupmembership.UserIDEqualFold(*i.UserIDEqualFold)) + } + if i.UserIDContainsFold != nil { + predicates = append(predicates, groupmembership.UserIDContainsFold(*i.UserIDContainsFold)) + } + + if i.HasGroup != nil { + p := groupmembership.HasGroup() + if !*i.HasGroup { + p = groupmembership.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasGroupWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasGroupWith)) + 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, groupmembership.HasGroupWith(with...)) + } + if i.HasUser != nil { + p := groupmembership.HasUser() + if !*i.HasUser { + p = groupmembership.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasUserWith) > 0 { + with := make([]predicate.User, 0, len(i.HasUserWith)) + 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, groupmembership.HasUserWith(with...)) + } + if i.HasEvents != nil { + p := groupmembership.HasEvents() + if !*i.HasEvents { + p = groupmembership.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEventsWith) > 0 { + with := make([]predicate.Event, 0, len(i.HasEventsWith)) + for _, w := range i.HasEventsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, groupmembership.HasEventsWith(with...)) + } + switch len(predicates) { + case 0: + return nil, ErrEmptyGroupMembershipWhereInput + case 1: + return predicates[0], nil + default: + return groupmembership.And(predicates...), nil + } +} + +// GroupMembershipHistoryWhereInput represents a where input for filtering GroupMembershipHistory queries. +type GroupMembershipHistoryWhereInput struct { + Predicates []predicate.GroupMembershipHistory `json:"-"` + Not *GroupMembershipHistoryWhereInput `json:"not,omitempty"` + Or []*GroupMembershipHistoryWhereInput `json:"or,omitempty"` + And []*GroupMembershipHistoryWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + + // "role" field predicates. + Role *enums.Role `json:"role,omitempty"` + RoleNEQ *enums.Role `json:"roleNEQ,omitempty"` + RoleIn []enums.Role `json:"roleIn,omitempty"` + RoleNotIn []enums.Role `json:"roleNotIn,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"` + GroupIDGT *string `json:"groupIDGT,omitempty"` + GroupIDGTE *string `json:"groupIDGTE,omitempty"` + GroupIDLT *string `json:"groupIDLT,omitempty"` + GroupIDLTE *string `json:"groupIDLTE,omitempty"` + GroupIDContains *string `json:"groupIDContains,omitempty"` + GroupIDHasPrefix *string `json:"groupIDHasPrefix,omitempty"` + GroupIDHasSuffix *string `json:"groupIDHasSuffix,omitempty"` + GroupIDEqualFold *string `json:"groupIDEqualFold,omitempty"` + GroupIDContainsFold *string `json:"groupIDContainsFold,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"` + UserIDGT *string `json:"userIDGT,omitempty"` + UserIDGTE *string `json:"userIDGTE,omitempty"` + UserIDLT *string `json:"userIDLT,omitempty"` + UserIDLTE *string `json:"userIDLTE,omitempty"` + UserIDContains *string `json:"userIDContains,omitempty"` + UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` + UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` + UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` + UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *GroupMembershipHistoryWhereInput) AddPredicates(predicates ...predicate.GroupMembershipHistory) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the GroupMembershipHistoryWhereInput filter on the GroupMembershipHistoryQuery builder. +func (i *GroupMembershipHistoryWhereInput) Filter(q *GroupMembershipHistoryQuery) (*GroupMembershipHistoryQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyGroupMembershipHistoryWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyGroupMembershipHistoryWhereInput is returned in case the GroupMembershipHistoryWhereInput is empty. +var ErrEmptyGroupMembershipHistoryWhereInput = errors.New("generated: empty predicate GroupMembershipHistoryWhereInput") + +// P returns a predicate for filtering groupmembershiphistories. +// An error is returned if the input is empty or invalid. +func (i *GroupMembershipHistoryWhereInput) P() (predicate.GroupMembershipHistory, error) { + var predicates []predicate.GroupMembershipHistory + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, groupmembershiphistory.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.GroupMembershipHistory, 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, groupmembershiphistory.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.GroupMembershipHistory, 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, groupmembershiphistory.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, groupmembershiphistory.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, groupmembershiphistory.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, groupmembershiphistory.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, groupmembershiphistory.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, groupmembershiphistory.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, groupmembershiphistory.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, groupmembershiphistory.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, groupmembershiphistory.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, groupmembershiphistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, groupmembershiphistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, groupmembershiphistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, groupmembershiphistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, groupmembershiphistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, groupmembershiphistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, groupmembershiphistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, groupmembershiphistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, groupmembershiphistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, groupmembershiphistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, groupmembershiphistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, groupmembershiphistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, groupmembershiphistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, groupmembershiphistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, groupmembershiphistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, groupmembershiphistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, groupmembershiphistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, groupmembershiphistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, groupmembershiphistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, groupmembershiphistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, groupmembershiphistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, groupmembershiphistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, groupmembershiphistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, groupmembershiphistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, groupmembershiphistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.OperationNotIn(i.OperationNotIn...)) + } + if i.CreatedAt != nil { + predicates = append(predicates, groupmembershiphistory.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, groupmembershiphistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, groupmembershiphistory.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, groupmembershiphistory.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, groupmembershiphistory.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, groupmembershiphistory.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, groupmembershiphistory.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, groupmembershiphistory.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, groupmembershiphistory.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, groupmembershiphistory.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, groupmembershiphistory.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, groupmembershiphistory.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, groupmembershiphistory.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, groupmembershiphistory.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, groupmembershiphistory.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, groupmembershiphistory.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, groupmembershiphistory.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, groupmembershiphistory.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, groupmembershiphistory.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, groupmembershiphistory.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, groupmembershiphistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, groupmembershiphistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, groupmembershiphistory.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, groupmembershiphistory.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, groupmembershiphistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, groupmembershiphistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, groupmembershiphistory.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, groupmembershiphistory.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, groupmembershiphistory.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, groupmembershiphistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, groupmembershiphistory.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, groupmembershiphistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, groupmembershiphistory.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, groupmembershiphistory.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, groupmembershiphistory.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, groupmembershiphistory.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, groupmembershiphistory.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, groupmembershiphistory.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, groupmembershiphistory.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, groupmembershiphistory.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, groupmembershiphistory.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, groupmembershiphistory.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, groupmembershiphistory.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, groupmembershiphistory.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, groupmembershiphistory.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, groupmembershiphistory.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, groupmembershiphistory.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, groupmembershiphistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, groupmembershiphistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, groupmembershiphistory.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, groupmembershiphistory.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, groupmembershiphistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, groupmembershiphistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.Role != nil { + predicates = append(predicates, groupmembershiphistory.RoleEQ(*i.Role)) + } + if i.RoleNEQ != nil { + predicates = append(predicates, groupmembershiphistory.RoleNEQ(*i.RoleNEQ)) + } + if len(i.RoleIn) > 0 { + predicates = append(predicates, groupmembershiphistory.RoleIn(i.RoleIn...)) + } + if len(i.RoleNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.RoleNotIn(i.RoleNotIn...)) + } + if i.GroupID != nil { + predicates = append(predicates, groupmembershiphistory.GroupIDEQ(*i.GroupID)) + } + if i.GroupIDNEQ != nil { + predicates = append(predicates, groupmembershiphistory.GroupIDNEQ(*i.GroupIDNEQ)) + } + if len(i.GroupIDIn) > 0 { + predicates = append(predicates, groupmembershiphistory.GroupIDIn(i.GroupIDIn...)) + } + if len(i.GroupIDNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.GroupIDNotIn(i.GroupIDNotIn...)) + } + if i.GroupIDGT != nil { + predicates = append(predicates, groupmembershiphistory.GroupIDGT(*i.GroupIDGT)) + } + if i.GroupIDGTE != nil { + predicates = append(predicates, groupmembershiphistory.GroupIDGTE(*i.GroupIDGTE)) + } + if i.GroupIDLT != nil { + predicates = append(predicates, groupmembershiphistory.GroupIDLT(*i.GroupIDLT)) + } + if i.GroupIDLTE != nil { + predicates = append(predicates, groupmembershiphistory.GroupIDLTE(*i.GroupIDLTE)) + } + if i.GroupIDContains != nil { + predicates = append(predicates, groupmembershiphistory.GroupIDContains(*i.GroupIDContains)) + } + if i.GroupIDHasPrefix != nil { + predicates = append(predicates, groupmembershiphistory.GroupIDHasPrefix(*i.GroupIDHasPrefix)) + } + if i.GroupIDHasSuffix != nil { + predicates = append(predicates, groupmembershiphistory.GroupIDHasSuffix(*i.GroupIDHasSuffix)) + } + if i.GroupIDEqualFold != nil { + predicates = append(predicates, groupmembershiphistory.GroupIDEqualFold(*i.GroupIDEqualFold)) + } + if i.GroupIDContainsFold != nil { + predicates = append(predicates, groupmembershiphistory.GroupIDContainsFold(*i.GroupIDContainsFold)) + } + if i.UserID != nil { + predicates = append(predicates, groupmembershiphistory.UserIDEQ(*i.UserID)) + } + if i.UserIDNEQ != nil { + predicates = append(predicates, groupmembershiphistory.UserIDNEQ(*i.UserIDNEQ)) + } + if len(i.UserIDIn) > 0 { + predicates = append(predicates, groupmembershiphistory.UserIDIn(i.UserIDIn...)) + } + if len(i.UserIDNotIn) > 0 { + predicates = append(predicates, groupmembershiphistory.UserIDNotIn(i.UserIDNotIn...)) + } + if i.UserIDGT != nil { + predicates = append(predicates, groupmembershiphistory.UserIDGT(*i.UserIDGT)) + } + if i.UserIDGTE != nil { + predicates = append(predicates, groupmembershiphistory.UserIDGTE(*i.UserIDGTE)) + } + if i.UserIDLT != nil { + predicates = append(predicates, groupmembershiphistory.UserIDLT(*i.UserIDLT)) + } + if i.UserIDLTE != nil { + predicates = append(predicates, groupmembershiphistory.UserIDLTE(*i.UserIDLTE)) + } + if i.UserIDContains != nil { + predicates = append(predicates, groupmembershiphistory.UserIDContains(*i.UserIDContains)) + } + if i.UserIDHasPrefix != nil { + predicates = append(predicates, groupmembershiphistory.UserIDHasPrefix(*i.UserIDHasPrefix)) + } + if i.UserIDHasSuffix != nil { + predicates = append(predicates, groupmembershiphistory.UserIDHasSuffix(*i.UserIDHasSuffix)) + } + if i.UserIDEqualFold != nil { + predicates = append(predicates, groupmembershiphistory.UserIDEqualFold(*i.UserIDEqualFold)) + } + if i.UserIDContainsFold != nil { + predicates = append(predicates, groupmembershiphistory.UserIDContainsFold(*i.UserIDContainsFold)) + } + + switch len(predicates) { + case 0: + return nil, ErrEmptyGroupMembershipHistoryWhereInput + case 1: + return predicates[0], nil + default: + return groupmembershiphistory.And(predicates...), nil + } +} + +// GroupSettingWhereInput represents a where input for filtering GroupSetting queries. +type GroupSettingWhereInput struct { + Predicates []predicate.GroupSetting `json:"-"` + Not *GroupSettingWhereInput `json:"not,omitempty"` + Or []*GroupSettingWhereInput `json:"or,omitempty"` + And []*GroupSettingWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + + // "visibility" field predicates. + Visibility *enums.Visibility `json:"visibility,omitempty"` + VisibilityNEQ *enums.Visibility `json:"visibilityNEQ,omitempty"` + VisibilityIn []enums.Visibility `json:"visibilityIn,omitempty"` + VisibilityNotIn []enums.Visibility `json:"visibilityNotIn,omitempty"` + + // "join_policy" field predicates. + JoinPolicy *enums.JoinPolicy `json:"joinPolicy,omitempty"` + JoinPolicyNEQ *enums.JoinPolicy `json:"joinPolicyNEQ,omitempty"` + JoinPolicyIn []enums.JoinPolicy `json:"joinPolicyIn,omitempty"` + JoinPolicyNotIn []enums.JoinPolicy `json:"joinPolicyNotIn,omitempty"` + + // "sync_to_slack" field predicates. + SyncToSlack *bool `json:"syncToSlack,omitempty"` + SyncToSlackNEQ *bool `json:"syncToSlackNEQ,omitempty"` + SyncToSlackIsNil bool `json:"syncToSlackIsNil,omitempty"` + SyncToSlackNotNil bool `json:"syncToSlackNotNil,omitempty"` + + // "sync_to_github" field predicates. + SyncToGithub *bool `json:"syncToGithub,omitempty"` + SyncToGithubNEQ *bool `json:"syncToGithubNEQ,omitempty"` + SyncToGithubIsNil bool `json:"syncToGithubIsNil,omitempty"` + SyncToGithubNotNil bool `json:"syncToGithubNotNil,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"` + GroupIDGT *string `json:"groupIDGT,omitempty"` + GroupIDGTE *string `json:"groupIDGTE,omitempty"` + GroupIDLT *string `json:"groupIDLT,omitempty"` + GroupIDLTE *string `json:"groupIDLTE,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"` + + // "group" edge predicates. + HasGroup *bool `json:"hasGroup,omitempty"` + HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *GroupSettingWhereInput) AddPredicates(predicates ...predicate.GroupSetting) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the GroupSettingWhereInput filter on the GroupSettingQuery builder. +func (i *GroupSettingWhereInput) Filter(q *GroupSettingQuery) (*GroupSettingQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyGroupSettingWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyGroupSettingWhereInput is returned in case the GroupSettingWhereInput is empty. +var ErrEmptyGroupSettingWhereInput = errors.New("generated: empty predicate GroupSettingWhereInput") + +// P returns a predicate for filtering groupsettings. +// An error is returned if the input is empty or invalid. +func (i *GroupSettingWhereInput) P() (predicate.GroupSetting, error) { + var predicates []predicate.GroupSetting + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, groupsetting.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.GroupSetting, 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, groupsetting.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.GroupSetting, 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, groupsetting.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, groupsetting.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, groupsetting.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, groupsetting.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, groupsetting.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, groupsetting.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, groupsetting.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, groupsetting.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, groupsetting.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, groupsetting.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, groupsetting.IDContainsFold(*i.IDContainsFold)) + } + if i.CreatedAt != nil { + predicates = append(predicates, groupsetting.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, groupsetting.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, groupsetting.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, groupsetting.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, groupsetting.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, groupsetting.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, groupsetting.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, groupsetting.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, groupsetting.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, groupsetting.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, groupsetting.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, groupsetting.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, groupsetting.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, groupsetting.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, groupsetting.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, groupsetting.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, groupsetting.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, groupsetting.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, groupsetting.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, groupsetting.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, groupsetting.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, groupsetting.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, groupsetting.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, groupsetting.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, groupsetting.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, groupsetting.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, groupsetting.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, groupsetting.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, groupsetting.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, groupsetting.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, groupsetting.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, groupsetting.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, groupsetting.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, groupsetting.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, groupsetting.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, groupsetting.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, groupsetting.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, groupsetting.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, groupsetting.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, groupsetting.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, groupsetting.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, groupsetting.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, groupsetting.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, groupsetting.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, groupsetting.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, groupsetting.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, groupsetting.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, groupsetting.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, groupsetting.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, groupsetting.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, groupsetting.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, groupsetting.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, groupsetting.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, groupsetting.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, groupsetting.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, groupsetting.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, groupsetting.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, groupsetting.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, groupsetting.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, groupsetting.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, groupsetting.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, groupsetting.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, groupsetting.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, groupsetting.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, groupsetting.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, groupsetting.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, groupsetting.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, groupsetting.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, groupsetting.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, groupsetting.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, groupsetting.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, groupsetting.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, groupsetting.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, groupsetting.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, groupsetting.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.Visibility != nil { + predicates = append(predicates, groupsetting.VisibilityEQ(*i.Visibility)) + } + if i.VisibilityNEQ != nil { + predicates = append(predicates, groupsetting.VisibilityNEQ(*i.VisibilityNEQ)) + } + if len(i.VisibilityIn) > 0 { + predicates = append(predicates, groupsetting.VisibilityIn(i.VisibilityIn...)) + } + if len(i.VisibilityNotIn) > 0 { + predicates = append(predicates, groupsetting.VisibilityNotIn(i.VisibilityNotIn...)) + } + if i.JoinPolicy != nil { + predicates = append(predicates, groupsetting.JoinPolicyEQ(*i.JoinPolicy)) + } + if i.JoinPolicyNEQ != nil { + predicates = append(predicates, groupsetting.JoinPolicyNEQ(*i.JoinPolicyNEQ)) + } + if len(i.JoinPolicyIn) > 0 { + predicates = append(predicates, groupsetting.JoinPolicyIn(i.JoinPolicyIn...)) + } + if len(i.JoinPolicyNotIn) > 0 { + predicates = append(predicates, groupsetting.JoinPolicyNotIn(i.JoinPolicyNotIn...)) + } + if i.SyncToSlack != nil { + predicates = append(predicates, groupsetting.SyncToSlackEQ(*i.SyncToSlack)) + } + if i.SyncToSlackNEQ != nil { + predicates = append(predicates, groupsetting.SyncToSlackNEQ(*i.SyncToSlackNEQ)) + } + if i.SyncToSlackIsNil { + predicates = append(predicates, groupsetting.SyncToSlackIsNil()) + } + if i.SyncToSlackNotNil { + predicates = append(predicates, groupsetting.SyncToSlackNotNil()) + } + if i.SyncToGithub != nil { + predicates = append(predicates, groupsetting.SyncToGithubEQ(*i.SyncToGithub)) + } + if i.SyncToGithubNEQ != nil { + predicates = append(predicates, groupsetting.SyncToGithubNEQ(*i.SyncToGithubNEQ)) + } + if i.SyncToGithubIsNil { + predicates = append(predicates, groupsetting.SyncToGithubIsNil()) + } + if i.SyncToGithubNotNil { + predicates = append(predicates, groupsetting.SyncToGithubNotNil()) + } + if i.GroupID != nil { + predicates = append(predicates, groupsetting.GroupIDEQ(*i.GroupID)) + } + if i.GroupIDNEQ != nil { + predicates = append(predicates, groupsetting.GroupIDNEQ(*i.GroupIDNEQ)) + } + if len(i.GroupIDIn) > 0 { + predicates = append(predicates, groupsetting.GroupIDIn(i.GroupIDIn...)) + } + if len(i.GroupIDNotIn) > 0 { + predicates = append(predicates, groupsetting.GroupIDNotIn(i.GroupIDNotIn...)) + } + if i.GroupIDGT != nil { + predicates = append(predicates, groupsetting.GroupIDGT(*i.GroupIDGT)) + } + if i.GroupIDGTE != nil { + predicates = append(predicates, groupsetting.GroupIDGTE(*i.GroupIDGTE)) + } + if i.GroupIDLT != nil { + predicates = append(predicates, groupsetting.GroupIDLT(*i.GroupIDLT)) + } + if i.GroupIDLTE != nil { + predicates = append(predicates, groupsetting.GroupIDLTE(*i.GroupIDLTE)) + } + if i.GroupIDContains != nil { + predicates = append(predicates, groupsetting.GroupIDContains(*i.GroupIDContains)) + } + if i.GroupIDHasPrefix != nil { + predicates = append(predicates, groupsetting.GroupIDHasPrefix(*i.GroupIDHasPrefix)) + } + if i.GroupIDHasSuffix != nil { + predicates = append(predicates, groupsetting.GroupIDHasSuffix(*i.GroupIDHasSuffix)) + } + if i.GroupIDIsNil { + predicates = append(predicates, groupsetting.GroupIDIsNil()) + } + if i.GroupIDNotNil { + predicates = append(predicates, groupsetting.GroupIDNotNil()) + } + if i.GroupIDEqualFold != nil { + predicates = append(predicates, groupsetting.GroupIDEqualFold(*i.GroupIDEqualFold)) + } + if i.GroupIDContainsFold != nil { + predicates = append(predicates, groupsetting.GroupIDContainsFold(*i.GroupIDContainsFold)) + } + + if i.HasGroup != nil { + p := groupsetting.HasGroup() + if !*i.HasGroup { + p = groupsetting.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasGroupWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasGroupWith)) + 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, groupsetting.HasGroupWith(with...)) + } + switch len(predicates) { + case 0: + return nil, ErrEmptyGroupSettingWhereInput + case 1: + return predicates[0], nil + default: + return groupsetting.And(predicates...), nil + } +} + +// GroupSettingHistoryWhereInput represents a where input for filtering GroupSettingHistory queries. +type GroupSettingHistoryWhereInput struct { + Predicates []predicate.GroupSettingHistory `json:"-"` + Not *GroupSettingHistoryWhereInput `json:"not,omitempty"` + Or []*GroupSettingHistoryWhereInput `json:"or,omitempty"` + And []*GroupSettingHistoryWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + + // "visibility" field predicates. + Visibility *enums.Visibility `json:"visibility,omitempty"` + VisibilityNEQ *enums.Visibility `json:"visibilityNEQ,omitempty"` + VisibilityIn []enums.Visibility `json:"visibilityIn,omitempty"` + VisibilityNotIn []enums.Visibility `json:"visibilityNotIn,omitempty"` + + // "join_policy" field predicates. + JoinPolicy *enums.JoinPolicy `json:"joinPolicy,omitempty"` + JoinPolicyNEQ *enums.JoinPolicy `json:"joinPolicyNEQ,omitempty"` + JoinPolicyIn []enums.JoinPolicy `json:"joinPolicyIn,omitempty"` + JoinPolicyNotIn []enums.JoinPolicy `json:"joinPolicyNotIn,omitempty"` + + // "sync_to_slack" field predicates. + SyncToSlack *bool `json:"syncToSlack,omitempty"` + SyncToSlackNEQ *bool `json:"syncToSlackNEQ,omitempty"` + SyncToSlackIsNil bool `json:"syncToSlackIsNil,omitempty"` + SyncToSlackNotNil bool `json:"syncToSlackNotNil,omitempty"` + + // "sync_to_github" field predicates. + SyncToGithub *bool `json:"syncToGithub,omitempty"` + SyncToGithubNEQ *bool `json:"syncToGithubNEQ,omitempty"` + SyncToGithubIsNil bool `json:"syncToGithubIsNil,omitempty"` + SyncToGithubNotNil bool `json:"syncToGithubNotNil,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"` + GroupIDGT *string `json:"groupIDGT,omitempty"` + GroupIDGTE *string `json:"groupIDGTE,omitempty"` + GroupIDLT *string `json:"groupIDLT,omitempty"` + GroupIDLTE *string `json:"groupIDLTE,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"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *GroupSettingHistoryWhereInput) AddPredicates(predicates ...predicate.GroupSettingHistory) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the GroupSettingHistoryWhereInput filter on the GroupSettingHistoryQuery builder. +func (i *GroupSettingHistoryWhereInput) Filter(q *GroupSettingHistoryQuery) (*GroupSettingHistoryQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyGroupSettingHistoryWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyGroupSettingHistoryWhereInput is returned in case the GroupSettingHistoryWhereInput is empty. +var ErrEmptyGroupSettingHistoryWhereInput = errors.New("generated: empty predicate GroupSettingHistoryWhereInput") + +// P returns a predicate for filtering groupsettinghistories. +// An error is returned if the input is empty or invalid. +func (i *GroupSettingHistoryWhereInput) P() (predicate.GroupSettingHistory, error) { + var predicates []predicate.GroupSettingHistory + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, groupsettinghistory.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.GroupSettingHistory, 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, groupsettinghistory.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.GroupSettingHistory, 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, groupsettinghistory.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, groupsettinghistory.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, groupsettinghistory.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, groupsettinghistory.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, groupsettinghistory.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, groupsettinghistory.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, groupsettinghistory.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, groupsettinghistory.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, groupsettinghistory.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, groupsettinghistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, groupsettinghistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, groupsettinghistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, groupsettinghistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, groupsettinghistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, groupsettinghistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, groupsettinghistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, groupsettinghistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, groupsettinghistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, groupsettinghistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, groupsettinghistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, groupsettinghistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, groupsettinghistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, groupsettinghistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, groupsettinghistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, groupsettinghistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, groupsettinghistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, groupsettinghistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, groupsettinghistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, groupsettinghistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, groupsettinghistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, groupsettinghistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, groupsettinghistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, groupsettinghistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, groupsettinghistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.OperationNotIn(i.OperationNotIn...)) + } + if i.CreatedAt != nil { + predicates = append(predicates, groupsettinghistory.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, groupsettinghistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, groupsettinghistory.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, groupsettinghistory.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, groupsettinghistory.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, groupsettinghistory.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, groupsettinghistory.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, groupsettinghistory.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, groupsettinghistory.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, groupsettinghistory.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, groupsettinghistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, groupsettinghistory.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, groupsettinghistory.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, groupsettinghistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, groupsettinghistory.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, groupsettinghistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, groupsettinghistory.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, groupsettinghistory.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, groupsettinghistory.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, groupsettinghistory.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, groupsettinghistory.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, groupsettinghistory.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, groupsettinghistory.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, groupsettinghistory.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, groupsettinghistory.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, groupsettinghistory.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, groupsettinghistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, groupsettinghistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, groupsettinghistory.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, groupsettinghistory.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, groupsettinghistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, groupsettinghistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, groupsettinghistory.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, groupsettinghistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, groupsettinghistory.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, groupsettinghistory.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, groupsettinghistory.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, groupsettinghistory.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, groupsettinghistory.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, groupsettinghistory.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, groupsettinghistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, groupsettinghistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, groupsettinghistory.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, groupsettinghistory.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, groupsettinghistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, groupsettinghistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, groupsettinghistory.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, groupsettinghistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, groupsettinghistory.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, groupsettinghistory.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, groupsettinghistory.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, groupsettinghistory.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, groupsettinghistory.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, groupsettinghistory.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, groupsettinghistory.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, groupsettinghistory.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, groupsettinghistory.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, groupsettinghistory.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, groupsettinghistory.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, groupsettinghistory.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, groupsettinghistory.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, groupsettinghistory.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, groupsettinghistory.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, groupsettinghistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, groupsettinghistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, groupsettinghistory.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, groupsettinghistory.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, groupsettinghistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, groupsettinghistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.Visibility != nil { + predicates = append(predicates, groupsettinghistory.VisibilityEQ(*i.Visibility)) + } + if i.VisibilityNEQ != nil { + predicates = append(predicates, groupsettinghistory.VisibilityNEQ(*i.VisibilityNEQ)) + } + if len(i.VisibilityIn) > 0 { + predicates = append(predicates, groupsettinghistory.VisibilityIn(i.VisibilityIn...)) + } + if len(i.VisibilityNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.VisibilityNotIn(i.VisibilityNotIn...)) + } + if i.JoinPolicy != nil { + predicates = append(predicates, groupsettinghistory.JoinPolicyEQ(*i.JoinPolicy)) + } + if i.JoinPolicyNEQ != nil { + predicates = append(predicates, groupsettinghistory.JoinPolicyNEQ(*i.JoinPolicyNEQ)) + } + if len(i.JoinPolicyIn) > 0 { + predicates = append(predicates, groupsettinghistory.JoinPolicyIn(i.JoinPolicyIn...)) + } + if len(i.JoinPolicyNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.JoinPolicyNotIn(i.JoinPolicyNotIn...)) + } + if i.SyncToSlack != nil { + predicates = append(predicates, groupsettinghistory.SyncToSlackEQ(*i.SyncToSlack)) + } + if i.SyncToSlackNEQ != nil { + predicates = append(predicates, groupsettinghistory.SyncToSlackNEQ(*i.SyncToSlackNEQ)) + } + if i.SyncToSlackIsNil { + predicates = append(predicates, groupsettinghistory.SyncToSlackIsNil()) + } + if i.SyncToSlackNotNil { + predicates = append(predicates, groupsettinghistory.SyncToSlackNotNil()) + } + if i.SyncToGithub != nil { + predicates = append(predicates, groupsettinghistory.SyncToGithubEQ(*i.SyncToGithub)) + } + if i.SyncToGithubNEQ != nil { + predicates = append(predicates, groupsettinghistory.SyncToGithubNEQ(*i.SyncToGithubNEQ)) + } + if i.SyncToGithubIsNil { + predicates = append(predicates, groupsettinghistory.SyncToGithubIsNil()) + } + if i.SyncToGithubNotNil { + predicates = append(predicates, groupsettinghistory.SyncToGithubNotNil()) + } + if i.GroupID != nil { + predicates = append(predicates, groupsettinghistory.GroupIDEQ(*i.GroupID)) + } + if i.GroupIDNEQ != nil { + predicates = append(predicates, groupsettinghistory.GroupIDNEQ(*i.GroupIDNEQ)) + } + if len(i.GroupIDIn) > 0 { + predicates = append(predicates, groupsettinghistory.GroupIDIn(i.GroupIDIn...)) + } + if len(i.GroupIDNotIn) > 0 { + predicates = append(predicates, groupsettinghistory.GroupIDNotIn(i.GroupIDNotIn...)) + } + if i.GroupIDGT != nil { + predicates = append(predicates, groupsettinghistory.GroupIDGT(*i.GroupIDGT)) + } + if i.GroupIDGTE != nil { + predicates = append(predicates, groupsettinghistory.GroupIDGTE(*i.GroupIDGTE)) + } + if i.GroupIDLT != nil { + predicates = append(predicates, groupsettinghistory.GroupIDLT(*i.GroupIDLT)) + } + if i.GroupIDLTE != nil { + predicates = append(predicates, groupsettinghistory.GroupIDLTE(*i.GroupIDLTE)) + } + if i.GroupIDContains != nil { + predicates = append(predicates, groupsettinghistory.GroupIDContains(*i.GroupIDContains)) + } + if i.GroupIDHasPrefix != nil { + predicates = append(predicates, groupsettinghistory.GroupIDHasPrefix(*i.GroupIDHasPrefix)) + } + if i.GroupIDHasSuffix != nil { + predicates = append(predicates, groupsettinghistory.GroupIDHasSuffix(*i.GroupIDHasSuffix)) + } + if i.GroupIDIsNil { + predicates = append(predicates, groupsettinghistory.GroupIDIsNil()) + } + if i.GroupIDNotNil { + predicates = append(predicates, groupsettinghistory.GroupIDNotNil()) + } + if i.GroupIDEqualFold != nil { + predicates = append(predicates, groupsettinghistory.GroupIDEqualFold(*i.GroupIDEqualFold)) + } + if i.GroupIDContainsFold != nil { + predicates = append(predicates, groupsettinghistory.GroupIDContainsFold(*i.GroupIDContainsFold)) + } + + switch len(predicates) { + case 0: + return nil, ErrEmptyGroupSettingHistoryWhereInput + case 1: + return predicates[0], nil + default: + return groupsettinghistory.And(predicates...), nil + } +} + +// HushWhereInput represents a where input for filtering Hush queries. +type HushWhereInput struct { + Predicates []predicate.Hush `json:"-"` + Not *HushWhereInput `json:"not,omitempty"` + Or []*HushWhereInput `json:"or,omitempty"` + And []*HushWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + + // "kind" field predicates. + Kind *string `json:"kind,omitempty"` + KindNEQ *string `json:"kindNEQ,omitempty"` + KindIn []string `json:"kindIn,omitempty"` + KindNotIn []string `json:"kindNotIn,omitempty"` + KindGT *string `json:"kindGT,omitempty"` + KindGTE *string `json:"kindGTE,omitempty"` + KindLT *string `json:"kindLT,omitempty"` + KindLTE *string `json:"kindLTE,omitempty"` + KindContains *string `json:"kindContains,omitempty"` + KindHasPrefix *string `json:"kindHasPrefix,omitempty"` + KindHasSuffix *string `json:"kindHasSuffix,omitempty"` + KindIsNil bool `json:"kindIsNil,omitempty"` + KindNotNil bool `json:"kindNotNil,omitempty"` + KindEqualFold *string `json:"kindEqualFold,omitempty"` + KindContainsFold *string `json:"kindContainsFold,omitempty"` + + // "secret_name" field predicates. + SecretName *string `json:"secretName,omitempty"` + SecretNameNEQ *string `json:"secretNameNEQ,omitempty"` + SecretNameIn []string `json:"secretNameIn,omitempty"` + SecretNameNotIn []string `json:"secretNameNotIn,omitempty"` + SecretNameGT *string `json:"secretNameGT,omitempty"` + SecretNameGTE *string `json:"secretNameGTE,omitempty"` + SecretNameLT *string `json:"secretNameLT,omitempty"` + SecretNameLTE *string `json:"secretNameLTE,omitempty"` + SecretNameContains *string `json:"secretNameContains,omitempty"` + SecretNameHasPrefix *string `json:"secretNameHasPrefix,omitempty"` + SecretNameHasSuffix *string `json:"secretNameHasSuffix,omitempty"` + SecretNameIsNil bool `json:"secretNameIsNil,omitempty"` + SecretNameNotNil bool `json:"secretNameNotNil,omitempty"` + SecretNameEqualFold *string `json:"secretNameEqualFold,omitempty"` + SecretNameContainsFold *string `json:"secretNameContainsFold,omitempty"` + + // "integrations" edge predicates. + HasIntegrations *bool `json:"hasIntegrations,omitempty"` + HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` + + // "organization" edge predicates. + HasOrganization *bool `json:"hasOrganization,omitempty"` + HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` + + // "events" edge predicates. + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *HushWhereInput) AddPredicates(predicates ...predicate.Hush) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the HushWhereInput filter on the HushQuery builder. +func (i *HushWhereInput) Filter(q *HushQuery) (*HushQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyHushWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyHushWhereInput is returned in case the HushWhereInput is empty. +var ErrEmptyHushWhereInput = errors.New("generated: empty predicate HushWhereInput") + +// P returns a predicate for filtering hushes. +// An error is returned if the input is empty or invalid. +func (i *HushWhereInput) P() (predicate.Hush, error) { + var predicates []predicate.Hush + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, hush.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.Hush, 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, hush.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.Hush, 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, hush.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, hush.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, hush.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, hush.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, hush.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, hush.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, hush.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, hush.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, hush.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, hush.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, hush.IDContainsFold(*i.IDContainsFold)) + } + if i.CreatedAt != nil { + predicates = append(predicates, hush.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, hush.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, hush.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, hush.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, hush.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, hush.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, hush.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, hush.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, hush.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, hush.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, hush.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, hush.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, hush.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, hush.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, hush.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, hush.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, hush.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, hush.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, hush.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, hush.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, hush.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, hush.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, hush.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, hush.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, hush.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, hush.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, hush.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, hush.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, hush.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, hush.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, hush.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, hush.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, hush.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, hush.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, hush.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, hush.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, hush.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, hush.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, hush.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, hush.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, hush.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, hush.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, hush.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, hush.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, hush.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, hush.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, hush.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, hush.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, hush.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, hush.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, hush.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, hush.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, hush.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, hush.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, hush.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, hush.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, hush.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, hush.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, hush.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, hush.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, hush.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, hush.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, hush.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, hush.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, hush.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, hush.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, hush.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, hush.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, hush.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, hush.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, hush.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, hush.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, hush.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, hush.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, hush.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, hush.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, hush.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, hush.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, hush.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, hush.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, hush.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, hush.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, hush.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, hush.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, hush.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, hush.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, hush.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, hush.NameContainsFold(*i.NameContainsFold)) + } + if i.Kind != nil { + predicates = append(predicates, hush.KindEQ(*i.Kind)) + } + if i.KindNEQ != nil { + predicates = append(predicates, hush.KindNEQ(*i.KindNEQ)) + } + if len(i.KindIn) > 0 { + predicates = append(predicates, hush.KindIn(i.KindIn...)) + } + if len(i.KindNotIn) > 0 { + predicates = append(predicates, hush.KindNotIn(i.KindNotIn...)) + } + if i.KindGT != nil { + predicates = append(predicates, hush.KindGT(*i.KindGT)) + } + if i.KindGTE != nil { + predicates = append(predicates, hush.KindGTE(*i.KindGTE)) + } + if i.KindLT != nil { + predicates = append(predicates, hush.KindLT(*i.KindLT)) + } + if i.KindLTE != nil { + predicates = append(predicates, hush.KindLTE(*i.KindLTE)) + } + if i.KindContains != nil { + predicates = append(predicates, hush.KindContains(*i.KindContains)) + } + if i.KindHasPrefix != nil { + predicates = append(predicates, hush.KindHasPrefix(*i.KindHasPrefix)) + } + if i.KindHasSuffix != nil { + predicates = append(predicates, hush.KindHasSuffix(*i.KindHasSuffix)) + } + if i.KindIsNil { + predicates = append(predicates, hush.KindIsNil()) + } + if i.KindNotNil { + predicates = append(predicates, hush.KindNotNil()) + } + if i.KindEqualFold != nil { + predicates = append(predicates, hush.KindEqualFold(*i.KindEqualFold)) + } + if i.KindContainsFold != nil { + predicates = append(predicates, hush.KindContainsFold(*i.KindContainsFold)) + } + if i.SecretName != nil { + predicates = append(predicates, hush.SecretNameEQ(*i.SecretName)) + } + if i.SecretNameNEQ != nil { + predicates = append(predicates, hush.SecretNameNEQ(*i.SecretNameNEQ)) + } + if len(i.SecretNameIn) > 0 { + predicates = append(predicates, hush.SecretNameIn(i.SecretNameIn...)) + } + if len(i.SecretNameNotIn) > 0 { + predicates = append(predicates, hush.SecretNameNotIn(i.SecretNameNotIn...)) + } + if i.SecretNameGT != nil { + predicates = append(predicates, hush.SecretNameGT(*i.SecretNameGT)) + } + if i.SecretNameGTE != nil { + predicates = append(predicates, hush.SecretNameGTE(*i.SecretNameGTE)) + } + if i.SecretNameLT != nil { + predicates = append(predicates, hush.SecretNameLT(*i.SecretNameLT)) + } + if i.SecretNameLTE != nil { + predicates = append(predicates, hush.SecretNameLTE(*i.SecretNameLTE)) + } + if i.SecretNameContains != nil { + predicates = append(predicates, hush.SecretNameContains(*i.SecretNameContains)) + } + if i.SecretNameHasPrefix != nil { + predicates = append(predicates, hush.SecretNameHasPrefix(*i.SecretNameHasPrefix)) + } + if i.SecretNameHasSuffix != nil { + predicates = append(predicates, hush.SecretNameHasSuffix(*i.SecretNameHasSuffix)) + } + if i.SecretNameIsNil { + predicates = append(predicates, hush.SecretNameIsNil()) + } + if i.SecretNameNotNil { + predicates = append(predicates, hush.SecretNameNotNil()) + } + if i.SecretNameEqualFold != nil { + predicates = append(predicates, hush.SecretNameEqualFold(*i.SecretNameEqualFold)) + } + if i.SecretNameContainsFold != nil { + predicates = append(predicates, hush.SecretNameContainsFold(*i.SecretNameContainsFold)) + } + + if i.HasIntegrations != nil { + p := hush.HasIntegrations() + if !*i.HasIntegrations { + p = hush.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasIntegrationsWith) > 0 { + with := make([]predicate.Integration, 0, len(i.HasIntegrationsWith)) + for _, w := range i.HasIntegrationsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasIntegrationsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, hush.HasIntegrationsWith(with...)) + } + if i.HasOrganization != nil { + p := hush.HasOrganization() + if !*i.HasOrganization { + p = hush.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOrganizationWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOrganizationWith)) + for _, w := range i.HasOrganizationWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOrganizationWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, hush.HasOrganizationWith(with...)) + } + if i.HasEvents != nil { + p := hush.HasEvents() + if !*i.HasEvents { + p = hush.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEventsWith) > 0 { + with := make([]predicate.Event, 0, len(i.HasEventsWith)) + for _, w := range i.HasEventsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, hush.HasEventsWith(with...)) + } + switch len(predicates) { + case 0: + return nil, ErrEmptyHushWhereInput + case 1: + return predicates[0], nil + default: + return hush.And(predicates...), nil + } +} + +// HushHistoryWhereInput represents a where input for filtering HushHistory queries. +type HushHistoryWhereInput struct { + Predicates []predicate.HushHistory `json:"-"` + Not *HushHistoryWhereInput `json:"not,omitempty"` + Or []*HushHistoryWhereInput `json:"or,omitempty"` + And []*HushHistoryWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + + // "kind" field predicates. + Kind *string `json:"kind,omitempty"` + KindNEQ *string `json:"kindNEQ,omitempty"` + KindIn []string `json:"kindIn,omitempty"` + KindNotIn []string `json:"kindNotIn,omitempty"` + KindGT *string `json:"kindGT,omitempty"` + KindGTE *string `json:"kindGTE,omitempty"` + KindLT *string `json:"kindLT,omitempty"` + KindLTE *string `json:"kindLTE,omitempty"` + KindContains *string `json:"kindContains,omitempty"` + KindHasPrefix *string `json:"kindHasPrefix,omitempty"` + KindHasSuffix *string `json:"kindHasSuffix,omitempty"` + KindIsNil bool `json:"kindIsNil,omitempty"` + KindNotNil bool `json:"kindNotNil,omitempty"` + KindEqualFold *string `json:"kindEqualFold,omitempty"` + KindContainsFold *string `json:"kindContainsFold,omitempty"` + + // "secret_name" field predicates. + SecretName *string `json:"secretName,omitempty"` + SecretNameNEQ *string `json:"secretNameNEQ,omitempty"` + SecretNameIn []string `json:"secretNameIn,omitempty"` + SecretNameNotIn []string `json:"secretNameNotIn,omitempty"` + SecretNameGT *string `json:"secretNameGT,omitempty"` + SecretNameGTE *string `json:"secretNameGTE,omitempty"` + SecretNameLT *string `json:"secretNameLT,omitempty"` + SecretNameLTE *string `json:"secretNameLTE,omitempty"` + SecretNameContains *string `json:"secretNameContains,omitempty"` + SecretNameHasPrefix *string `json:"secretNameHasPrefix,omitempty"` + SecretNameHasSuffix *string `json:"secretNameHasSuffix,omitempty"` + SecretNameIsNil bool `json:"secretNameIsNil,omitempty"` + SecretNameNotNil bool `json:"secretNameNotNil,omitempty"` + SecretNameEqualFold *string `json:"secretNameEqualFold,omitempty"` + SecretNameContainsFold *string `json:"secretNameContainsFold,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *HushHistoryWhereInput) AddPredicates(predicates ...predicate.HushHistory) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the HushHistoryWhereInput filter on the HushHistoryQuery builder. +func (i *HushHistoryWhereInput) Filter(q *HushHistoryQuery) (*HushHistoryQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyHushHistoryWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyHushHistoryWhereInput is returned in case the HushHistoryWhereInput is empty. +var ErrEmptyHushHistoryWhereInput = errors.New("generated: empty predicate HushHistoryWhereInput") + +// P returns a predicate for filtering hushhistories. +// An error is returned if the input is empty or invalid. +func (i *HushHistoryWhereInput) P() (predicate.HushHistory, error) { + var predicates []predicate.HushHistory + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, hushhistory.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.HushHistory, 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, hushhistory.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.HushHistory, 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, hushhistory.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, hushhistory.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, hushhistory.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, hushhistory.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, hushhistory.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, hushhistory.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, hushhistory.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, hushhistory.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, hushhistory.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, hushhistory.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, hushhistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, hushhistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, hushhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, hushhistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, hushhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, hushhistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, hushhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, hushhistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, hushhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, hushhistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, hushhistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, hushhistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, hushhistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, hushhistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, hushhistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, hushhistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, hushhistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, hushhistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, hushhistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, hushhistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, hushhistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, hushhistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, hushhistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, hushhistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, hushhistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, hushhistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, hushhistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, hushhistory.OperationNotIn(i.OperationNotIn...)) + } + if i.CreatedAt != nil { + predicates = append(predicates, hushhistory.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, hushhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, hushhistory.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, hushhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, hushhistory.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, hushhistory.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, hushhistory.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, hushhistory.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, hushhistory.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, hushhistory.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, hushhistory.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, hushhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, hushhistory.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, hushhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, hushhistory.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, hushhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, hushhistory.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, hushhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, hushhistory.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, hushhistory.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, hushhistory.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, hushhistory.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, hushhistory.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, hushhistory.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, hushhistory.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, hushhistory.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, hushhistory.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, hushhistory.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, hushhistory.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, hushhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, hushhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, hushhistory.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, hushhistory.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, hushhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, hushhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, hushhistory.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, hushhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, hushhistory.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, hushhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, hushhistory.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, hushhistory.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, hushhistory.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, hushhistory.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, hushhistory.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, hushhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, hushhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, hushhistory.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, hushhistory.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, hushhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, hushhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, hushhistory.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, hushhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, hushhistory.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, hushhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, hushhistory.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, hushhistory.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, hushhistory.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, hushhistory.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, hushhistory.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, hushhistory.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, hushhistory.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, hushhistory.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, hushhistory.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, hushhistory.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, hushhistory.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, hushhistory.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, hushhistory.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, hushhistory.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, hushhistory.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, hushhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, hushhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, hushhistory.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, hushhistory.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, hushhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, hushhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, hushhistory.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, hushhistory.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, hushhistory.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, hushhistory.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, hushhistory.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, hushhistory.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, hushhistory.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, hushhistory.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, hushhistory.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, hushhistory.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, hushhistory.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, hushhistory.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, hushhistory.NameContainsFold(*i.NameContainsFold)) + } + if i.Kind != nil { + predicates = append(predicates, hushhistory.KindEQ(*i.Kind)) + } + if i.KindNEQ != nil { + predicates = append(predicates, hushhistory.KindNEQ(*i.KindNEQ)) + } + if len(i.KindIn) > 0 { + predicates = append(predicates, hushhistory.KindIn(i.KindIn...)) + } + if len(i.KindNotIn) > 0 { + predicates = append(predicates, hushhistory.KindNotIn(i.KindNotIn...)) + } + if i.KindGT != nil { + predicates = append(predicates, hushhistory.KindGT(*i.KindGT)) + } + if i.KindGTE != nil { + predicates = append(predicates, hushhistory.KindGTE(*i.KindGTE)) + } + if i.KindLT != nil { + predicates = append(predicates, hushhistory.KindLT(*i.KindLT)) + } + if i.KindLTE != nil { + predicates = append(predicates, hushhistory.KindLTE(*i.KindLTE)) + } + if i.KindContains != nil { + predicates = append(predicates, hushhistory.KindContains(*i.KindContains)) + } + if i.KindHasPrefix != nil { + predicates = append(predicates, hushhistory.KindHasPrefix(*i.KindHasPrefix)) + } + if i.KindHasSuffix != nil { + predicates = append(predicates, hushhistory.KindHasSuffix(*i.KindHasSuffix)) + } + if i.KindIsNil { + predicates = append(predicates, hushhistory.KindIsNil()) + } + if i.KindNotNil { + predicates = append(predicates, hushhistory.KindNotNil()) + } + if i.KindEqualFold != nil { + predicates = append(predicates, hushhistory.KindEqualFold(*i.KindEqualFold)) + } + if i.KindContainsFold != nil { + predicates = append(predicates, hushhistory.KindContainsFold(*i.KindContainsFold)) + } + if i.SecretName != nil { + predicates = append(predicates, hushhistory.SecretNameEQ(*i.SecretName)) + } + if i.SecretNameNEQ != nil { + predicates = append(predicates, hushhistory.SecretNameNEQ(*i.SecretNameNEQ)) + } + if len(i.SecretNameIn) > 0 { + predicates = append(predicates, hushhistory.SecretNameIn(i.SecretNameIn...)) + } + if len(i.SecretNameNotIn) > 0 { + predicates = append(predicates, hushhistory.SecretNameNotIn(i.SecretNameNotIn...)) + } + if i.SecretNameGT != nil { + predicates = append(predicates, hushhistory.SecretNameGT(*i.SecretNameGT)) + } + if i.SecretNameGTE != nil { + predicates = append(predicates, hushhistory.SecretNameGTE(*i.SecretNameGTE)) + } + if i.SecretNameLT != nil { + predicates = append(predicates, hushhistory.SecretNameLT(*i.SecretNameLT)) + } + if i.SecretNameLTE != nil { + predicates = append(predicates, hushhistory.SecretNameLTE(*i.SecretNameLTE)) + } + if i.SecretNameContains != nil { + predicates = append(predicates, hushhistory.SecretNameContains(*i.SecretNameContains)) + } + if i.SecretNameHasPrefix != nil { + predicates = append(predicates, hushhistory.SecretNameHasPrefix(*i.SecretNameHasPrefix)) + } + if i.SecretNameHasSuffix != nil { + predicates = append(predicates, hushhistory.SecretNameHasSuffix(*i.SecretNameHasSuffix)) + } + if i.SecretNameIsNil { + predicates = append(predicates, hushhistory.SecretNameIsNil()) + } + if i.SecretNameNotNil { + predicates = append(predicates, hushhistory.SecretNameNotNil()) + } + if i.SecretNameEqualFold != nil { + predicates = append(predicates, hushhistory.SecretNameEqualFold(*i.SecretNameEqualFold)) + } + if i.SecretNameContainsFold != nil { + predicates = append(predicates, hushhistory.SecretNameContainsFold(*i.SecretNameContainsFold)) + } + + switch len(predicates) { + case 0: + return nil, ErrEmptyHushHistoryWhereInput + case 1: + return predicates[0], nil + default: + return hushhistory.And(predicates...), nil + } +} + +// IntegrationWhereInput represents a where input for filtering Integration queries. +type IntegrationWhereInput struct { + Predicates []predicate.Integration `json:"-"` + Not *IntegrationWhereInput `json:"not,omitempty"` + Or []*IntegrationWhereInput `json:"or,omitempty"` + And []*IntegrationWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + + // "kind" field predicates. + Kind *string `json:"kind,omitempty"` + KindNEQ *string `json:"kindNEQ,omitempty"` + KindIn []string `json:"kindIn,omitempty"` + KindNotIn []string `json:"kindNotIn,omitempty"` + KindGT *string `json:"kindGT,omitempty"` + KindGTE *string `json:"kindGTE,omitempty"` + KindLT *string `json:"kindLT,omitempty"` + KindLTE *string `json:"kindLTE,omitempty"` + KindContains *string `json:"kindContains,omitempty"` + KindHasPrefix *string `json:"kindHasPrefix,omitempty"` + KindHasSuffix *string `json:"kindHasSuffix,omitempty"` + KindIsNil bool `json:"kindIsNil,omitempty"` + KindNotNil bool `json:"kindNotNil,omitempty"` + KindEqualFold *string `json:"kindEqualFold,omitempty"` + KindContainsFold *string `json:"kindContainsFold,omitempty"` + + // "owner" edge predicates. + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + + // "secrets" edge predicates. + HasSecrets *bool `json:"hasSecrets,omitempty"` + HasSecretsWith []*HushWhereInput `json:"hasSecretsWith,omitempty"` + + // "oauth2tokens" edge predicates. + HasOauth2tokens *bool `json:"hasOauth2tokens,omitempty"` + HasOauth2tokensWith []*OhAuthTooTokenWhereInput `json:"hasOauth2tokensWith,omitempty"` + + // "events" edge predicates. + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + + // "webhooks" edge predicates. + HasWebhooks *bool `json:"hasWebhooks,omitempty"` + HasWebhooksWith []*WebhookWhereInput `json:"hasWebhooksWith,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *IntegrationWhereInput) AddPredicates(predicates ...predicate.Integration) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the IntegrationWhereInput filter on the IntegrationQuery builder. +func (i *IntegrationWhereInput) Filter(q *IntegrationQuery) (*IntegrationQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyIntegrationWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyIntegrationWhereInput is returned in case the IntegrationWhereInput is empty. +var ErrEmptyIntegrationWhereInput = errors.New("generated: empty predicate IntegrationWhereInput") + +// P returns a predicate for filtering integrations. +// An error is returned if the input is empty or invalid. +func (i *IntegrationWhereInput) P() (predicate.Integration, error) { + var predicates []predicate.Integration + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, integration.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.Integration, 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, integration.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.Integration, 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, integration.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, integration.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, integration.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, integration.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, integration.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, integration.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, integration.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, integration.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, integration.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, integration.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, integration.IDContainsFold(*i.IDContainsFold)) + } + if i.CreatedAt != nil { + predicates = append(predicates, integration.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, integration.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, integration.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, integration.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, integration.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, integration.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, integration.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, integration.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, integration.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, integration.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, integration.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, integration.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, integration.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, integration.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, integration.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, integration.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, integration.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, integration.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, integration.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, integration.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, integration.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, integration.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, integration.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, integration.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, integration.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, integration.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, integration.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, integration.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, integration.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, integration.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, integration.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, integration.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, integration.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, integration.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, integration.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, integration.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, integration.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, integration.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, integration.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, integration.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, integration.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, integration.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, integration.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, integration.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, integration.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, integration.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, integration.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, integration.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, integration.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, integration.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, integration.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, integration.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, integration.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, integration.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, integration.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, integration.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, integration.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, integration.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, integration.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, integration.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, integration.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, integration.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, integration.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, integration.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, integration.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, integration.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, integration.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, integration.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, integration.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, integration.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, integration.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, integration.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, integration.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, integration.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, integration.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.OwnerID != nil { + predicates = append(predicates, integration.OwnerIDEQ(*i.OwnerID)) + } + if i.OwnerIDNEQ != nil { + predicates = append(predicates, integration.OwnerIDNEQ(*i.OwnerIDNEQ)) + } + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, integration.OwnerIDIn(i.OwnerIDIn...)) + } + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, integration.OwnerIDNotIn(i.OwnerIDNotIn...)) + } + if i.OwnerIDGT != nil { + predicates = append(predicates, integration.OwnerIDGT(*i.OwnerIDGT)) + } + if i.OwnerIDGTE != nil { + predicates = append(predicates, integration.OwnerIDGTE(*i.OwnerIDGTE)) + } + if i.OwnerIDLT != nil { + predicates = append(predicates, integration.OwnerIDLT(*i.OwnerIDLT)) + } + if i.OwnerIDLTE != nil { + predicates = append(predicates, integration.OwnerIDLTE(*i.OwnerIDLTE)) + } + if i.OwnerIDContains != nil { + predicates = append(predicates, integration.OwnerIDContains(*i.OwnerIDContains)) + } + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, integration.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + } + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, integration.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + } + if i.OwnerIDIsNil { + predicates = append(predicates, integration.OwnerIDIsNil()) + } + if i.OwnerIDNotNil { + predicates = append(predicates, integration.OwnerIDNotNil()) + } + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, integration.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + } + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, integration.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, integration.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, integration.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, integration.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, integration.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, integration.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, integration.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, integration.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, integration.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, integration.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, integration.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, integration.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, integration.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, integration.NameContainsFold(*i.NameContainsFold)) + } + if i.Kind != nil { + predicates = append(predicates, integration.KindEQ(*i.Kind)) + } + if i.KindNEQ != nil { + predicates = append(predicates, integration.KindNEQ(*i.KindNEQ)) + } + if len(i.KindIn) > 0 { + predicates = append(predicates, integration.KindIn(i.KindIn...)) + } + if len(i.KindNotIn) > 0 { + predicates = append(predicates, integration.KindNotIn(i.KindNotIn...)) + } + if i.KindGT != nil { + predicates = append(predicates, integration.KindGT(*i.KindGT)) + } + if i.KindGTE != nil { + predicates = append(predicates, integration.KindGTE(*i.KindGTE)) + } + if i.KindLT != nil { + predicates = append(predicates, integration.KindLT(*i.KindLT)) + } + if i.KindLTE != nil { + predicates = append(predicates, integration.KindLTE(*i.KindLTE)) + } + if i.KindContains != nil { + predicates = append(predicates, integration.KindContains(*i.KindContains)) + } + if i.KindHasPrefix != nil { + predicates = append(predicates, integration.KindHasPrefix(*i.KindHasPrefix)) + } + if i.KindHasSuffix != nil { + predicates = append(predicates, integration.KindHasSuffix(*i.KindHasSuffix)) + } + if i.KindIsNil { + predicates = append(predicates, integration.KindIsNil()) + } + if i.KindNotNil { + predicates = append(predicates, integration.KindNotNil()) + } + if i.KindEqualFold != nil { + predicates = append(predicates, integration.KindEqualFold(*i.KindEqualFold)) + } + if i.KindContainsFold != nil { + predicates = append(predicates, integration.KindContainsFold(*i.KindContainsFold)) + } + + if i.HasOwner != nil { + p := integration.HasOwner() + if !*i.HasOwner { + p = integration.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOwnerWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) + 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, integration.HasOwnerWith(with...)) + } + if i.HasSecrets != nil { + p := integration.HasSecrets() + if !*i.HasSecrets { + p = integration.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasSecretsWith) > 0 { + with := make([]predicate.Hush, 0, len(i.HasSecretsWith)) + for _, w := range i.HasSecretsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasSecretsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, integration.HasSecretsWith(with...)) + } + if i.HasOauth2tokens != nil { + p := integration.HasOauth2tokens() + if !*i.HasOauth2tokens { + p = integration.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOauth2tokensWith) > 0 { + with := make([]predicate.OhAuthTooToken, 0, len(i.HasOauth2tokensWith)) + for _, w := range i.HasOauth2tokensWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOauth2tokensWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, integration.HasOauth2tokensWith(with...)) + } + if i.HasEvents != nil { + p := integration.HasEvents() + if !*i.HasEvents { + p = integration.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEventsWith) > 0 { + with := make([]predicate.Event, 0, len(i.HasEventsWith)) + for _, w := range i.HasEventsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, integration.HasEventsWith(with...)) + } + if i.HasWebhooks != nil { + p := integration.HasWebhooks() + if !*i.HasWebhooks { + p = integration.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasWebhooksWith) > 0 { + with := make([]predicate.Webhook, 0, len(i.HasWebhooksWith)) + for _, w := range i.HasWebhooksWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasWebhooksWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, integration.HasWebhooksWith(with...)) + } + switch len(predicates) { + case 0: + return nil, ErrEmptyIntegrationWhereInput + case 1: + return predicates[0], nil + default: + return integration.And(predicates...), nil + } +} + +// IntegrationHistoryWhereInput represents a where input for filtering IntegrationHistory queries. +type IntegrationHistoryWhereInput struct { + Predicates []predicate.IntegrationHistory `json:"-"` + Not *IntegrationHistoryWhereInput `json:"not,omitempty"` + Or []*IntegrationHistoryWhereInput `json:"or,omitempty"` + And []*IntegrationHistoryWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + + // "kind" field predicates. + Kind *string `json:"kind,omitempty"` + KindNEQ *string `json:"kindNEQ,omitempty"` + KindIn []string `json:"kindIn,omitempty"` + KindNotIn []string `json:"kindNotIn,omitempty"` + KindGT *string `json:"kindGT,omitempty"` + KindGTE *string `json:"kindGTE,omitempty"` + KindLT *string `json:"kindLT,omitempty"` + KindLTE *string `json:"kindLTE,omitempty"` + KindContains *string `json:"kindContains,omitempty"` + KindHasPrefix *string `json:"kindHasPrefix,omitempty"` + KindHasSuffix *string `json:"kindHasSuffix,omitempty"` + KindIsNil bool `json:"kindIsNil,omitempty"` + KindNotNil bool `json:"kindNotNil,omitempty"` + KindEqualFold *string `json:"kindEqualFold,omitempty"` + KindContainsFold *string `json:"kindContainsFold,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *IntegrationHistoryWhereInput) AddPredicates(predicates ...predicate.IntegrationHistory) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the IntegrationHistoryWhereInput filter on the IntegrationHistoryQuery builder. +func (i *IntegrationHistoryWhereInput) Filter(q *IntegrationHistoryQuery) (*IntegrationHistoryQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyIntegrationHistoryWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyIntegrationHistoryWhereInput is returned in case the IntegrationHistoryWhereInput is empty. +var ErrEmptyIntegrationHistoryWhereInput = errors.New("generated: empty predicate IntegrationHistoryWhereInput") + +// P returns a predicate for filtering integrationhistories. +// An error is returned if the input is empty or invalid. +func (i *IntegrationHistoryWhereInput) P() (predicate.IntegrationHistory, error) { + var predicates []predicate.IntegrationHistory + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, integrationhistory.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.IntegrationHistory, 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, integrationhistory.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.IntegrationHistory, 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, integrationhistory.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, integrationhistory.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, integrationhistory.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, integrationhistory.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, integrationhistory.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, integrationhistory.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, integrationhistory.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, integrationhistory.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, integrationhistory.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, integrationhistory.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, integrationhistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, integrationhistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, integrationhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, integrationhistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, integrationhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, integrationhistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, integrationhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, integrationhistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, integrationhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, integrationhistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, integrationhistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, integrationhistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, integrationhistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, integrationhistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, integrationhistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, integrationhistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, integrationhistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, integrationhistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, integrationhistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, integrationhistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, integrationhistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, integrationhistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, integrationhistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, integrationhistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, integrationhistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, integrationhistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, integrationhistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, integrationhistory.OperationNotIn(i.OperationNotIn...)) + } + if i.CreatedAt != nil { + predicates = append(predicates, integrationhistory.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, integrationhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, integrationhistory.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, integrationhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, integrationhistory.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, integrationhistory.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, integrationhistory.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, integrationhistory.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, integrationhistory.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, integrationhistory.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, integrationhistory.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, integrationhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, integrationhistory.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, integrationhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, integrationhistory.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, integrationhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, integrationhistory.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, integrationhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, integrationhistory.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, integrationhistory.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, integrationhistory.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, integrationhistory.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, integrationhistory.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, integrationhistory.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, integrationhistory.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, integrationhistory.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, integrationhistory.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, integrationhistory.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, integrationhistory.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, integrationhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, integrationhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, integrationhistory.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, integrationhistory.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, integrationhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, integrationhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, integrationhistory.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, integrationhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, integrationhistory.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, integrationhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, integrationhistory.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, integrationhistory.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, integrationhistory.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, integrationhistory.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, integrationhistory.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, integrationhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, integrationhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, integrationhistory.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, integrationhistory.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, integrationhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, integrationhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, integrationhistory.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, integrationhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, integrationhistory.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, integrationhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, integrationhistory.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, integrationhistory.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, integrationhistory.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, integrationhistory.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, integrationhistory.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, integrationhistory.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, integrationhistory.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, integrationhistory.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, integrationhistory.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, integrationhistory.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, integrationhistory.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, integrationhistory.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, integrationhistory.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, integrationhistory.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, integrationhistory.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, integrationhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, integrationhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, integrationhistory.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, integrationhistory.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, integrationhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, integrationhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.OwnerID != nil { + predicates = append(predicates, integrationhistory.OwnerIDEQ(*i.OwnerID)) + } + if i.OwnerIDNEQ != nil { + predicates = append(predicates, integrationhistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + } + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, integrationhistory.OwnerIDIn(i.OwnerIDIn...)) + } + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, integrationhistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + } + if i.OwnerIDGT != nil { + predicates = append(predicates, integrationhistory.OwnerIDGT(*i.OwnerIDGT)) + } + if i.OwnerIDGTE != nil { + predicates = append(predicates, integrationhistory.OwnerIDGTE(*i.OwnerIDGTE)) + } + if i.OwnerIDLT != nil { + predicates = append(predicates, integrationhistory.OwnerIDLT(*i.OwnerIDLT)) + } + if i.OwnerIDLTE != nil { + predicates = append(predicates, integrationhistory.OwnerIDLTE(*i.OwnerIDLTE)) + } + if i.OwnerIDContains != nil { + predicates = append(predicates, integrationhistory.OwnerIDContains(*i.OwnerIDContains)) + } + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, integrationhistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + } + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, integrationhistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + } + if i.OwnerIDIsNil { + predicates = append(predicates, integrationhistory.OwnerIDIsNil()) + } + if i.OwnerIDNotNil { + predicates = append(predicates, integrationhistory.OwnerIDNotNil()) + } + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, integrationhistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + } + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, integrationhistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, integrationhistory.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, integrationhistory.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, integrationhistory.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, integrationhistory.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, integrationhistory.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, integrationhistory.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, integrationhistory.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, integrationhistory.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, integrationhistory.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, integrationhistory.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, integrationhistory.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, integrationhistory.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, integrationhistory.NameContainsFold(*i.NameContainsFold)) + } + if i.Kind != nil { + predicates = append(predicates, integrationhistory.KindEQ(*i.Kind)) + } + if i.KindNEQ != nil { + predicates = append(predicates, integrationhistory.KindNEQ(*i.KindNEQ)) + } + if len(i.KindIn) > 0 { + predicates = append(predicates, integrationhistory.KindIn(i.KindIn...)) + } + if len(i.KindNotIn) > 0 { + predicates = append(predicates, integrationhistory.KindNotIn(i.KindNotIn...)) + } + if i.KindGT != nil { + predicates = append(predicates, integrationhistory.KindGT(*i.KindGT)) + } + if i.KindGTE != nil { + predicates = append(predicates, integrationhistory.KindGTE(*i.KindGTE)) + } + if i.KindLT != nil { + predicates = append(predicates, integrationhistory.KindLT(*i.KindLT)) + } + if i.KindLTE != nil { + predicates = append(predicates, integrationhistory.KindLTE(*i.KindLTE)) + } + if i.KindContains != nil { + predicates = append(predicates, integrationhistory.KindContains(*i.KindContains)) + } + if i.KindHasPrefix != nil { + predicates = append(predicates, integrationhistory.KindHasPrefix(*i.KindHasPrefix)) + } + if i.KindHasSuffix != nil { + predicates = append(predicates, integrationhistory.KindHasSuffix(*i.KindHasSuffix)) + } + if i.KindIsNil { + predicates = append(predicates, integrationhistory.KindIsNil()) + } + if i.KindNotNil { + predicates = append(predicates, integrationhistory.KindNotNil()) + } + if i.KindEqualFold != nil { + predicates = append(predicates, integrationhistory.KindEqualFold(*i.KindEqualFold)) + } + if i.KindContainsFold != nil { + predicates = append(predicates, integrationhistory.KindContainsFold(*i.KindContainsFold)) + } + + switch len(predicates) { + case 0: + return nil, ErrEmptyIntegrationHistoryWhereInput + case 1: + return predicates[0], nil + default: + return integrationhistory.And(predicates...), nil + } +} + +// InternalPolicyWhereInput represents a where input for filtering InternalPolicy queries. +type InternalPolicyWhereInput struct { + Predicates []predicate.InternalPolicy `json:"-"` + Not *InternalPolicyWhereInput `json:"not,omitempty"` + Or []*InternalPolicyWhereInput `json:"or,omitempty"` + And []*InternalPolicyWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,omitempty"` + DescriptionContains *string `json:"descriptionContains,omitempty"` + DescriptionHasPrefix *string `json:"descriptionHasPrefix,omitempty"` + DescriptionHasSuffix *string `json:"descriptionHasSuffix,omitempty"` + DescriptionEqualFold *string `json:"descriptionEqualFold,omitempty"` + DescriptionContainsFold *string `json:"descriptionContainsFold,omitempty"` + + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + + // "policy_type" field predicates. + PolicyType *string `json:"policyType,omitempty"` + PolicyTypeNEQ *string `json:"policyTypeNEQ,omitempty"` + PolicyTypeIn []string `json:"policyTypeIn,omitempty"` + PolicyTypeNotIn []string `json:"policyTypeNotIn,omitempty"` + PolicyTypeGT *string `json:"policyTypeGT,omitempty"` + PolicyTypeGTE *string `json:"policyTypeGTE,omitempty"` + PolicyTypeLT *string `json:"policyTypeLT,omitempty"` + PolicyTypeLTE *string `json:"policyTypeLTE,omitempty"` + PolicyTypeContains *string `json:"policyTypeContains,omitempty"` + PolicyTypeHasPrefix *string `json:"policyTypeHasPrefix,omitempty"` + PolicyTypeHasSuffix *string `json:"policyTypeHasSuffix,omitempty"` + PolicyTypeIsNil bool `json:"policyTypeIsNil,omitempty"` + PolicyTypeNotNil bool `json:"policyTypeNotNil,omitempty"` + PolicyTypeEqualFold *string `json:"policyTypeEqualFold,omitempty"` + PolicyTypeContainsFold *string `json:"policyTypeContainsFold,omitempty"` + + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil bool `json:"versionIsNil,omitempty"` + VersionNotNil bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + + // "purpose_and_scope" field predicates. + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + PurposeAndScopeNEQ *string `json:"purposeAndScopeNEQ,omitempty"` + PurposeAndScopeIn []string `json:"purposeAndScopeIn,omitempty"` + PurposeAndScopeNotIn []string `json:"purposeAndScopeNotIn,omitempty"` + PurposeAndScopeGT *string `json:"purposeAndScopeGT,omitempty"` + PurposeAndScopeGTE *string `json:"purposeAndScopeGTE,omitempty"` + PurposeAndScopeLT *string `json:"purposeAndScopeLT,omitempty"` + PurposeAndScopeLTE *string `json:"purposeAndScopeLTE,omitempty"` + PurposeAndScopeContains *string `json:"purposeAndScopeContains,omitempty"` + PurposeAndScopeHasPrefix *string `json:"purposeAndScopeHasPrefix,omitempty"` + PurposeAndScopeHasSuffix *string `json:"purposeAndScopeHasSuffix,omitempty"` + PurposeAndScopeIsNil bool `json:"purposeAndScopeIsNil,omitempty"` + PurposeAndScopeNotNil bool `json:"purposeAndScopeNotNil,omitempty"` + PurposeAndScopeEqualFold *string `json:"purposeAndScopeEqualFold,omitempty"` + PurposeAndScopeContainsFold *string `json:"purposeAndScopeContainsFold,omitempty"` + + // "background" field predicates. + Background *string `json:"background,omitempty"` + BackgroundNEQ *string `json:"backgroundNEQ,omitempty"` + BackgroundIn []string `json:"backgroundIn,omitempty"` + BackgroundNotIn []string `json:"backgroundNotIn,omitempty"` + BackgroundGT *string `json:"backgroundGT,omitempty"` + BackgroundGTE *string `json:"backgroundGTE,omitempty"` + BackgroundLT *string `json:"backgroundLT,omitempty"` + BackgroundLTE *string `json:"backgroundLTE,omitempty"` + BackgroundContains *string `json:"backgroundContains,omitempty"` + BackgroundHasPrefix *string `json:"backgroundHasPrefix,omitempty"` + BackgroundHasSuffix *string `json:"backgroundHasSuffix,omitempty"` + BackgroundIsNil bool `json:"backgroundIsNil,omitempty"` + BackgroundNotNil bool `json:"backgroundNotNil,omitempty"` + BackgroundEqualFold *string `json:"backgroundEqualFold,omitempty"` + BackgroundContainsFold *string `json:"backgroundContainsFold,omitempty"` + + // "controlobjectives" edge predicates. + HasControlobjectives *bool `json:"hasControlobjectives,omitempty"` + HasControlobjectivesWith []*ControlObjectiveWhereInput `json:"hasControlobjectivesWith,omitempty"` + + // "controls" edge predicates. + HasControls *bool `json:"hasControls,omitempty"` + HasControlsWith []*ControlWhereInput `json:"hasControlsWith,omitempty"` + + // "procedures" edge predicates. + HasProcedures *bool `json:"hasProcedures,omitempty"` + HasProceduresWith []*ProcedureWhereInput `json:"hasProceduresWith,omitempty"` + + // "narratives" edge predicates. + HasNarratives *bool `json:"hasNarratives,omitempty"` + HasNarrativesWith []*NarrativeWhereInput `json:"hasNarrativesWith,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *InternalPolicyWhereInput) AddPredicates(predicates ...predicate.InternalPolicy) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the InternalPolicyWhereInput filter on the InternalPolicyQuery builder. +func (i *InternalPolicyWhereInput) Filter(q *InternalPolicyQuery) (*InternalPolicyQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyInternalPolicyWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyInternalPolicyWhereInput is returned in case the InternalPolicyWhereInput is empty. +var ErrEmptyInternalPolicyWhereInput = errors.New("generated: empty predicate InternalPolicyWhereInput") + +// P returns a predicate for filtering internalpolicies. +// An error is returned if the input is empty or invalid. +func (i *InternalPolicyWhereInput) P() (predicate.InternalPolicy, error) { + var predicates []predicate.InternalPolicy + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, internalpolicy.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.InternalPolicy, 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, internalpolicy.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.InternalPolicy, 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, internalpolicy.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, internalpolicy.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, internalpolicy.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, internalpolicy.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, internalpolicy.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, internalpolicy.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, internalpolicy.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, internalpolicy.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, internalpolicy.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, internalpolicy.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, internalpolicy.IDContainsFold(*i.IDContainsFold)) + } + if i.CreatedAt != nil { + predicates = append(predicates, internalpolicy.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, internalpolicy.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, internalpolicy.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, internalpolicy.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, internalpolicy.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, internalpolicy.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, internalpolicy.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, internalpolicy.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, internalpolicy.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, internalpolicy.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, internalpolicy.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, internalpolicy.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, internalpolicy.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, internalpolicy.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, internalpolicy.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, internalpolicy.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, internalpolicy.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, internalpolicy.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, internalpolicy.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, internalpolicy.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, internalpolicy.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, internalpolicy.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, internalpolicy.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, internalpolicy.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, internalpolicy.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, internalpolicy.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, internalpolicy.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, internalpolicy.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, internalpolicy.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, internalpolicy.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, internalpolicy.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, internalpolicy.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, internalpolicy.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, internalpolicy.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, internalpolicy.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, internalpolicy.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, internalpolicy.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, internalpolicy.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, internalpolicy.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, internalpolicy.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, internalpolicy.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, internalpolicy.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, internalpolicy.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, internalpolicy.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, internalpolicy.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, internalpolicy.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, internalpolicy.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, internalpolicy.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, internalpolicy.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, internalpolicy.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, internalpolicy.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, internalpolicy.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, internalpolicy.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, internalpolicy.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, internalpolicy.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, internalpolicy.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, internalpolicy.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, internalpolicy.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, internalpolicy.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, internalpolicy.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, internalpolicy.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, internalpolicy.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, internalpolicy.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, internalpolicy.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, internalpolicy.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, internalpolicy.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, internalpolicy.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, internalpolicy.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, internalpolicy.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, internalpolicy.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, internalpolicy.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, internalpolicy.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, internalpolicy.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, internalpolicy.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, internalpolicy.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, internalpolicy.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, internalpolicy.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, internalpolicy.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, internalpolicy.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, internalpolicy.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, internalpolicy.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, internalpolicy.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, internalpolicy.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, internalpolicy.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, internalpolicy.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, internalpolicy.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, internalpolicy.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, internalpolicy.NameContainsFold(*i.NameContainsFold)) + } + if i.Description != nil { + predicates = append(predicates, internalpolicy.DescriptionEQ(*i.Description)) + } + if i.DescriptionNEQ != nil { + predicates = append(predicates, internalpolicy.DescriptionNEQ(*i.DescriptionNEQ)) + } + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, internalpolicy.DescriptionIn(i.DescriptionIn...)) + } + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, internalpolicy.DescriptionNotIn(i.DescriptionNotIn...)) + } + if i.DescriptionGT != nil { + predicates = append(predicates, internalpolicy.DescriptionGT(*i.DescriptionGT)) + } + if i.DescriptionGTE != nil { + predicates = append(predicates, internalpolicy.DescriptionGTE(*i.DescriptionGTE)) + } + if i.DescriptionLT != nil { + predicates = append(predicates, internalpolicy.DescriptionLT(*i.DescriptionLT)) + } + if i.DescriptionLTE != nil { + predicates = append(predicates, internalpolicy.DescriptionLTE(*i.DescriptionLTE)) + } + if i.DescriptionContains != nil { + predicates = append(predicates, internalpolicy.DescriptionContains(*i.DescriptionContains)) + } + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, internalpolicy.DescriptionHasPrefix(*i.DescriptionHasPrefix)) + } + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, internalpolicy.DescriptionHasSuffix(*i.DescriptionHasSuffix)) + } + if i.DescriptionEqualFold != nil { + predicates = append(predicates, internalpolicy.DescriptionEqualFold(*i.DescriptionEqualFold)) + } + if i.DescriptionContainsFold != nil { + predicates = append(predicates, internalpolicy.DescriptionContainsFold(*i.DescriptionContainsFold)) + } + if i.Status != nil { + predicates = append(predicates, internalpolicy.StatusEQ(*i.Status)) + } + if i.StatusNEQ != nil { + predicates = append(predicates, internalpolicy.StatusNEQ(*i.StatusNEQ)) + } + if len(i.StatusIn) > 0 { + predicates = append(predicates, internalpolicy.StatusIn(i.StatusIn...)) + } + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, internalpolicy.StatusNotIn(i.StatusNotIn...)) + } + if i.StatusGT != nil { + predicates = append(predicates, internalpolicy.StatusGT(*i.StatusGT)) + } + if i.StatusGTE != nil { + predicates = append(predicates, internalpolicy.StatusGTE(*i.StatusGTE)) + } + if i.StatusLT != nil { + predicates = append(predicates, internalpolicy.StatusLT(*i.StatusLT)) + } + if i.StatusLTE != nil { + predicates = append(predicates, internalpolicy.StatusLTE(*i.StatusLTE)) + } + if i.StatusContains != nil { + predicates = append(predicates, internalpolicy.StatusContains(*i.StatusContains)) + } + if i.StatusHasPrefix != nil { + predicates = append(predicates, internalpolicy.StatusHasPrefix(*i.StatusHasPrefix)) + } + if i.StatusHasSuffix != nil { + predicates = append(predicates, internalpolicy.StatusHasSuffix(*i.StatusHasSuffix)) + } + if i.StatusIsNil { + predicates = append(predicates, internalpolicy.StatusIsNil()) + } + if i.StatusNotNil { + predicates = append(predicates, internalpolicy.StatusNotNil()) + } + if i.StatusEqualFold != nil { + predicates = append(predicates, internalpolicy.StatusEqualFold(*i.StatusEqualFold)) + } + if i.StatusContainsFold != nil { + predicates = append(predicates, internalpolicy.StatusContainsFold(*i.StatusContainsFold)) + } + if i.PolicyType != nil { + predicates = append(predicates, internalpolicy.PolicyTypeEQ(*i.PolicyType)) + } + if i.PolicyTypeNEQ != nil { + predicates = append(predicates, internalpolicy.PolicyTypeNEQ(*i.PolicyTypeNEQ)) + } + if len(i.PolicyTypeIn) > 0 { + predicates = append(predicates, internalpolicy.PolicyTypeIn(i.PolicyTypeIn...)) + } + if len(i.PolicyTypeNotIn) > 0 { + predicates = append(predicates, internalpolicy.PolicyTypeNotIn(i.PolicyTypeNotIn...)) + } + if i.PolicyTypeGT != nil { + predicates = append(predicates, internalpolicy.PolicyTypeGT(*i.PolicyTypeGT)) + } + if i.PolicyTypeGTE != nil { + predicates = append(predicates, internalpolicy.PolicyTypeGTE(*i.PolicyTypeGTE)) + } + if i.PolicyTypeLT != nil { + predicates = append(predicates, internalpolicy.PolicyTypeLT(*i.PolicyTypeLT)) + } + if i.PolicyTypeLTE != nil { + predicates = append(predicates, internalpolicy.PolicyTypeLTE(*i.PolicyTypeLTE)) + } + if i.PolicyTypeContains != nil { + predicates = append(predicates, internalpolicy.PolicyTypeContains(*i.PolicyTypeContains)) + } + if i.PolicyTypeHasPrefix != nil { + predicates = append(predicates, internalpolicy.PolicyTypeHasPrefix(*i.PolicyTypeHasPrefix)) + } + if i.PolicyTypeHasSuffix != nil { + predicates = append(predicates, internalpolicy.PolicyTypeHasSuffix(*i.PolicyTypeHasSuffix)) + } + if i.PolicyTypeIsNil { + predicates = append(predicates, internalpolicy.PolicyTypeIsNil()) + } + if i.PolicyTypeNotNil { + predicates = append(predicates, internalpolicy.PolicyTypeNotNil()) + } + if i.PolicyTypeEqualFold != nil { + predicates = append(predicates, internalpolicy.PolicyTypeEqualFold(*i.PolicyTypeEqualFold)) + } + if i.PolicyTypeContainsFold != nil { + predicates = append(predicates, internalpolicy.PolicyTypeContainsFold(*i.PolicyTypeContainsFold)) + } + if i.Version != nil { + predicates = append(predicates, internalpolicy.VersionEQ(*i.Version)) + } + if i.VersionNEQ != nil { + predicates = append(predicates, internalpolicy.VersionNEQ(*i.VersionNEQ)) + } + if len(i.VersionIn) > 0 { + predicates = append(predicates, internalpolicy.VersionIn(i.VersionIn...)) + } + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, internalpolicy.VersionNotIn(i.VersionNotIn...)) + } + if i.VersionGT != nil { + predicates = append(predicates, internalpolicy.VersionGT(*i.VersionGT)) + } + if i.VersionGTE != nil { + predicates = append(predicates, internalpolicy.VersionGTE(*i.VersionGTE)) + } + if i.VersionLT != nil { + predicates = append(predicates, internalpolicy.VersionLT(*i.VersionLT)) + } + if i.VersionLTE != nil { + predicates = append(predicates, internalpolicy.VersionLTE(*i.VersionLTE)) + } + if i.VersionContains != nil { + predicates = append(predicates, internalpolicy.VersionContains(*i.VersionContains)) + } + if i.VersionHasPrefix != nil { + predicates = append(predicates, internalpolicy.VersionHasPrefix(*i.VersionHasPrefix)) + } + if i.VersionHasSuffix != nil { + predicates = append(predicates, internalpolicy.VersionHasSuffix(*i.VersionHasSuffix)) + } + if i.VersionIsNil { + predicates = append(predicates, internalpolicy.VersionIsNil()) + } + if i.VersionNotNil { + predicates = append(predicates, internalpolicy.VersionNotNil()) + } + if i.VersionEqualFold != nil { + predicates = append(predicates, internalpolicy.VersionEqualFold(*i.VersionEqualFold)) + } + if i.VersionContainsFold != nil { + predicates = append(predicates, internalpolicy.VersionContainsFold(*i.VersionContainsFold)) + } + if i.PurposeAndScope != nil { + predicates = append(predicates, internalpolicy.PurposeAndScopeEQ(*i.PurposeAndScope)) + } + if i.PurposeAndScopeNEQ != nil { + predicates = append(predicates, internalpolicy.PurposeAndScopeNEQ(*i.PurposeAndScopeNEQ)) + } + if len(i.PurposeAndScopeIn) > 0 { + predicates = append(predicates, internalpolicy.PurposeAndScopeIn(i.PurposeAndScopeIn...)) + } + if len(i.PurposeAndScopeNotIn) > 0 { + predicates = append(predicates, internalpolicy.PurposeAndScopeNotIn(i.PurposeAndScopeNotIn...)) + } + if i.PurposeAndScopeGT != nil { + predicates = append(predicates, internalpolicy.PurposeAndScopeGT(*i.PurposeAndScopeGT)) + } + if i.PurposeAndScopeGTE != nil { + predicates = append(predicates, internalpolicy.PurposeAndScopeGTE(*i.PurposeAndScopeGTE)) + } + if i.PurposeAndScopeLT != nil { + predicates = append(predicates, internalpolicy.PurposeAndScopeLT(*i.PurposeAndScopeLT)) + } + if i.PurposeAndScopeLTE != nil { + predicates = append(predicates, internalpolicy.PurposeAndScopeLTE(*i.PurposeAndScopeLTE)) + } + if i.PurposeAndScopeContains != nil { + predicates = append(predicates, internalpolicy.PurposeAndScopeContains(*i.PurposeAndScopeContains)) + } + if i.PurposeAndScopeHasPrefix != nil { + predicates = append(predicates, internalpolicy.PurposeAndScopeHasPrefix(*i.PurposeAndScopeHasPrefix)) + } + if i.PurposeAndScopeHasSuffix != nil { + predicates = append(predicates, internalpolicy.PurposeAndScopeHasSuffix(*i.PurposeAndScopeHasSuffix)) + } + if i.PurposeAndScopeIsNil { + predicates = append(predicates, internalpolicy.PurposeAndScopeIsNil()) + } + if i.PurposeAndScopeNotNil { + predicates = append(predicates, internalpolicy.PurposeAndScopeNotNil()) + } + if i.PurposeAndScopeEqualFold != nil { + predicates = append(predicates, internalpolicy.PurposeAndScopeEqualFold(*i.PurposeAndScopeEqualFold)) + } + if i.PurposeAndScopeContainsFold != nil { + predicates = append(predicates, internalpolicy.PurposeAndScopeContainsFold(*i.PurposeAndScopeContainsFold)) + } + if i.Background != nil { + predicates = append(predicates, internalpolicy.BackgroundEQ(*i.Background)) + } + if i.BackgroundNEQ != nil { + predicates = append(predicates, internalpolicy.BackgroundNEQ(*i.BackgroundNEQ)) + } + if len(i.BackgroundIn) > 0 { + predicates = append(predicates, internalpolicy.BackgroundIn(i.BackgroundIn...)) + } + if len(i.BackgroundNotIn) > 0 { + predicates = append(predicates, internalpolicy.BackgroundNotIn(i.BackgroundNotIn...)) + } + if i.BackgroundGT != nil { + predicates = append(predicates, internalpolicy.BackgroundGT(*i.BackgroundGT)) + } + if i.BackgroundGTE != nil { + predicates = append(predicates, internalpolicy.BackgroundGTE(*i.BackgroundGTE)) + } + if i.BackgroundLT != nil { + predicates = append(predicates, internalpolicy.BackgroundLT(*i.BackgroundLT)) + } + if i.BackgroundLTE != nil { + predicates = append(predicates, internalpolicy.BackgroundLTE(*i.BackgroundLTE)) + } + if i.BackgroundContains != nil { + predicates = append(predicates, internalpolicy.BackgroundContains(*i.BackgroundContains)) + } + if i.BackgroundHasPrefix != nil { + predicates = append(predicates, internalpolicy.BackgroundHasPrefix(*i.BackgroundHasPrefix)) + } + if i.BackgroundHasSuffix != nil { + predicates = append(predicates, internalpolicy.BackgroundHasSuffix(*i.BackgroundHasSuffix)) + } + if i.BackgroundIsNil { + predicates = append(predicates, internalpolicy.BackgroundIsNil()) + } + if i.BackgroundNotNil { + predicates = append(predicates, internalpolicy.BackgroundNotNil()) + } + if i.BackgroundEqualFold != nil { + predicates = append(predicates, internalpolicy.BackgroundEqualFold(*i.BackgroundEqualFold)) + } + if i.BackgroundContainsFold != nil { + predicates = append(predicates, internalpolicy.BackgroundContainsFold(*i.BackgroundContainsFold)) + } + + if i.HasControlobjectives != nil { + p := internalpolicy.HasControlobjectives() + if !*i.HasControlobjectives { + p = internalpolicy.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasControlobjectivesWith) > 0 { + with := make([]predicate.ControlObjective, 0, len(i.HasControlobjectivesWith)) + for _, w := range i.HasControlobjectivesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasControlobjectivesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, internalpolicy.HasControlobjectivesWith(with...)) + } + if i.HasControls != nil { + p := internalpolicy.HasControls() + if !*i.HasControls { + p = internalpolicy.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasControlsWith) > 0 { + with := make([]predicate.Control, 0, len(i.HasControlsWith)) + for _, w := range i.HasControlsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasControlsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, internalpolicy.HasControlsWith(with...)) + } + if i.HasProcedures != nil { + p := internalpolicy.HasProcedures() + if !*i.HasProcedures { + p = internalpolicy.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasProceduresWith) > 0 { + with := make([]predicate.Procedure, 0, len(i.HasProceduresWith)) + for _, w := range i.HasProceduresWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasProceduresWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, internalpolicy.HasProceduresWith(with...)) + } + if i.HasNarratives != nil { + p := internalpolicy.HasNarratives() + if !*i.HasNarratives { + p = internalpolicy.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasNarrativesWith) > 0 { + with := make([]predicate.Narrative, 0, len(i.HasNarrativesWith)) + for _, w := range i.HasNarrativesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasNarrativesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, internalpolicy.HasNarrativesWith(with...)) + } + switch len(predicates) { + case 0: + return nil, ErrEmptyInternalPolicyWhereInput + case 1: + return predicates[0], nil + default: + return internalpolicy.And(predicates...), nil } - if len(i.ProvidedFileSizeIn) > 0 { - predicates = append(predicates, filehistory.ProvidedFileSizeIn(i.ProvidedFileSizeIn...)) +} + +// InternalPolicyHistoryWhereInput represents a where input for filtering InternalPolicyHistory queries. +type InternalPolicyHistoryWhereInput struct { + Predicates []predicate.InternalPolicyHistory `json:"-"` + Not *InternalPolicyHistoryWhereInput `json:"not,omitempty"` + Or []*InternalPolicyHistoryWhereInput `json:"or,omitempty"` + And []*InternalPolicyHistoryWhereInput `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"` + IDGT *string `json:"idGT,omitempty"` + IDGTE *string `json:"idGTE,omitempty"` + IDLT *string `json:"idLT,omitempty"` + IDLTE *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,omitempty"` + DescriptionContains *string `json:"descriptionContains,omitempty"` + DescriptionHasPrefix *string `json:"descriptionHasPrefix,omitempty"` + DescriptionHasSuffix *string `json:"descriptionHasSuffix,omitempty"` + DescriptionEqualFold *string `json:"descriptionEqualFold,omitempty"` + DescriptionContainsFold *string `json:"descriptionContainsFold,omitempty"` + + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + + // "policy_type" field predicates. + PolicyType *string `json:"policyType,omitempty"` + PolicyTypeNEQ *string `json:"policyTypeNEQ,omitempty"` + PolicyTypeIn []string `json:"policyTypeIn,omitempty"` + PolicyTypeNotIn []string `json:"policyTypeNotIn,omitempty"` + PolicyTypeGT *string `json:"policyTypeGT,omitempty"` + PolicyTypeGTE *string `json:"policyTypeGTE,omitempty"` + PolicyTypeLT *string `json:"policyTypeLT,omitempty"` + PolicyTypeLTE *string `json:"policyTypeLTE,omitempty"` + PolicyTypeContains *string `json:"policyTypeContains,omitempty"` + PolicyTypeHasPrefix *string `json:"policyTypeHasPrefix,omitempty"` + PolicyTypeHasSuffix *string `json:"policyTypeHasSuffix,omitempty"` + PolicyTypeIsNil bool `json:"policyTypeIsNil,omitempty"` + PolicyTypeNotNil bool `json:"policyTypeNotNil,omitempty"` + PolicyTypeEqualFold *string `json:"policyTypeEqualFold,omitempty"` + PolicyTypeContainsFold *string `json:"policyTypeContainsFold,omitempty"` + + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil bool `json:"versionIsNil,omitempty"` + VersionNotNil bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + + // "purpose_and_scope" field predicates. + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + PurposeAndScopeNEQ *string `json:"purposeAndScopeNEQ,omitempty"` + PurposeAndScopeIn []string `json:"purposeAndScopeIn,omitempty"` + PurposeAndScopeNotIn []string `json:"purposeAndScopeNotIn,omitempty"` + PurposeAndScopeGT *string `json:"purposeAndScopeGT,omitempty"` + PurposeAndScopeGTE *string `json:"purposeAndScopeGTE,omitempty"` + PurposeAndScopeLT *string `json:"purposeAndScopeLT,omitempty"` + PurposeAndScopeLTE *string `json:"purposeAndScopeLTE,omitempty"` + PurposeAndScopeContains *string `json:"purposeAndScopeContains,omitempty"` + PurposeAndScopeHasPrefix *string `json:"purposeAndScopeHasPrefix,omitempty"` + PurposeAndScopeHasSuffix *string `json:"purposeAndScopeHasSuffix,omitempty"` + PurposeAndScopeIsNil bool `json:"purposeAndScopeIsNil,omitempty"` + PurposeAndScopeNotNil bool `json:"purposeAndScopeNotNil,omitempty"` + PurposeAndScopeEqualFold *string `json:"purposeAndScopeEqualFold,omitempty"` + PurposeAndScopeContainsFold *string `json:"purposeAndScopeContainsFold,omitempty"` + + // "background" field predicates. + Background *string `json:"background,omitempty"` + BackgroundNEQ *string `json:"backgroundNEQ,omitempty"` + BackgroundIn []string `json:"backgroundIn,omitempty"` + BackgroundNotIn []string `json:"backgroundNotIn,omitempty"` + BackgroundGT *string `json:"backgroundGT,omitempty"` + BackgroundGTE *string `json:"backgroundGTE,omitempty"` + BackgroundLT *string `json:"backgroundLT,omitempty"` + BackgroundLTE *string `json:"backgroundLTE,omitempty"` + BackgroundContains *string `json:"backgroundContains,omitempty"` + BackgroundHasPrefix *string `json:"backgroundHasPrefix,omitempty"` + BackgroundHasSuffix *string `json:"backgroundHasSuffix,omitempty"` + BackgroundIsNil bool `json:"backgroundIsNil,omitempty"` + BackgroundNotNil bool `json:"backgroundNotNil,omitempty"` + BackgroundEqualFold *string `json:"backgroundEqualFold,omitempty"` + BackgroundContainsFold *string `json:"backgroundContainsFold,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *InternalPolicyHistoryWhereInput) AddPredicates(predicates ...predicate.InternalPolicyHistory) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the InternalPolicyHistoryWhereInput filter on the InternalPolicyHistoryQuery builder. +func (i *InternalPolicyHistoryWhereInput) Filter(q *InternalPolicyHistoryQuery) (*InternalPolicyHistoryQuery, error) { + if i == nil { + return q, nil } - if len(i.ProvidedFileSizeNotIn) > 0 { - predicates = append(predicates, filehistory.ProvidedFileSizeNotIn(i.ProvidedFileSizeNotIn...)) + p, err := i.P() + if err != nil { + if err == ErrEmptyInternalPolicyHistoryWhereInput { + return q, nil + } + return nil, err } - if i.ProvidedFileSizeGT != nil { - predicates = append(predicates, filehistory.ProvidedFileSizeGT(*i.ProvidedFileSizeGT)) + return q.Where(p), nil +} + +// ErrEmptyInternalPolicyHistoryWhereInput is returned in case the InternalPolicyHistoryWhereInput is empty. +var ErrEmptyInternalPolicyHistoryWhereInput = errors.New("generated: empty predicate InternalPolicyHistoryWhereInput") + +// P returns a predicate for filtering internalpolicyhistories. +// An error is returned if the input is empty or invalid. +func (i *InternalPolicyHistoryWhereInput) P() (predicate.InternalPolicyHistory, error) { + var predicates []predicate.InternalPolicyHistory + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, internalpolicyhistory.Not(p)) } - if i.ProvidedFileSizeGTE != nil { - predicates = append(predicates, filehistory.ProvidedFileSizeGTE(*i.ProvidedFileSizeGTE)) + 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.InternalPolicyHistory, 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, internalpolicyhistory.Or(or...)) } - if i.ProvidedFileSizeLT != nil { - predicates = append(predicates, filehistory.ProvidedFileSizeLT(*i.ProvidedFileSizeLT)) + 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.InternalPolicyHistory, 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, internalpolicyhistory.And(and...)) } - if i.ProvidedFileSizeLTE != nil { - predicates = append(predicates, filehistory.ProvidedFileSizeLTE(*i.ProvidedFileSizeLTE)) + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, internalpolicyhistory.IDEQ(*i.ID)) } - if i.ProvidedFileSizeIsNil { - predicates = append(predicates, filehistory.ProvidedFileSizeIsNil()) + if i.IDNEQ != nil { + predicates = append(predicates, internalpolicyhistory.IDNEQ(*i.IDNEQ)) } - if i.ProvidedFileSizeNotNil { - predicates = append(predicates, filehistory.ProvidedFileSizeNotNil()) + if len(i.IDIn) > 0 { + predicates = append(predicates, internalpolicyhistory.IDIn(i.IDIn...)) } - if i.PersistedFileSize != nil { - predicates = append(predicates, filehistory.PersistedFileSizeEQ(*i.PersistedFileSize)) + if len(i.IDNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.IDNotIn(i.IDNotIn...)) } - if i.PersistedFileSizeNEQ != nil { - predicates = append(predicates, filehistory.PersistedFileSizeNEQ(*i.PersistedFileSizeNEQ)) + if i.IDGT != nil { + predicates = append(predicates, internalpolicyhistory.IDGT(*i.IDGT)) } - if len(i.PersistedFileSizeIn) > 0 { - predicates = append(predicates, filehistory.PersistedFileSizeIn(i.PersistedFileSizeIn...)) + if i.IDGTE != nil { + predicates = append(predicates, internalpolicyhistory.IDGTE(*i.IDGTE)) } - if len(i.PersistedFileSizeNotIn) > 0 { - predicates = append(predicates, filehistory.PersistedFileSizeNotIn(i.PersistedFileSizeNotIn...)) + if i.IDLT != nil { + predicates = append(predicates, internalpolicyhistory.IDLT(*i.IDLT)) } - if i.PersistedFileSizeGT != nil { - predicates = append(predicates, filehistory.PersistedFileSizeGT(*i.PersistedFileSizeGT)) + if i.IDLTE != nil { + predicates = append(predicates, internalpolicyhistory.IDLTE(*i.IDLTE)) } - if i.PersistedFileSizeGTE != nil { - predicates = append(predicates, filehistory.PersistedFileSizeGTE(*i.PersistedFileSizeGTE)) + if i.IDEqualFold != nil { + predicates = append(predicates, internalpolicyhistory.IDEqualFold(*i.IDEqualFold)) } - if i.PersistedFileSizeLT != nil { - predicates = append(predicates, filehistory.PersistedFileSizeLT(*i.PersistedFileSizeLT)) + if i.IDContainsFold != nil { + predicates = append(predicates, internalpolicyhistory.IDContainsFold(*i.IDContainsFold)) } - if i.PersistedFileSizeLTE != nil { - predicates = append(predicates, filehistory.PersistedFileSizeLTE(*i.PersistedFileSizeLTE)) + if i.HistoryTime != nil { + predicates = append(predicates, internalpolicyhistory.HistoryTimeEQ(*i.HistoryTime)) } - if i.PersistedFileSizeIsNil { - predicates = append(predicates, filehistory.PersistedFileSizeIsNil()) + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, internalpolicyhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) } - if i.PersistedFileSizeNotNil { - predicates = append(predicates, filehistory.PersistedFileSizeNotNil()) + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, internalpolicyhistory.HistoryTimeIn(i.HistoryTimeIn...)) } - if i.DetectedMimeType != nil { - predicates = append(predicates, filehistory.DetectedMimeTypeEQ(*i.DetectedMimeType)) + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) } - if i.DetectedMimeTypeNEQ != nil { - predicates = append(predicates, filehistory.DetectedMimeTypeNEQ(*i.DetectedMimeTypeNEQ)) + if i.HistoryTimeGT != nil { + predicates = append(predicates, internalpolicyhistory.HistoryTimeGT(*i.HistoryTimeGT)) } - if len(i.DetectedMimeTypeIn) > 0 { - predicates = append(predicates, filehistory.DetectedMimeTypeIn(i.DetectedMimeTypeIn...)) + if i.HistoryTimeGTE != nil { + predicates = append(predicates, internalpolicyhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) } - if len(i.DetectedMimeTypeNotIn) > 0 { - predicates = append(predicates, filehistory.DetectedMimeTypeNotIn(i.DetectedMimeTypeNotIn...)) + if i.HistoryTimeLT != nil { + predicates = append(predicates, internalpolicyhistory.HistoryTimeLT(*i.HistoryTimeLT)) } - if i.DetectedMimeTypeGT != nil { - predicates = append(predicates, filehistory.DetectedMimeTypeGT(*i.DetectedMimeTypeGT)) + if i.HistoryTimeLTE != nil { + predicates = append(predicates, internalpolicyhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) } - if i.DetectedMimeTypeGTE != nil { - predicates = append(predicates, filehistory.DetectedMimeTypeGTE(*i.DetectedMimeTypeGTE)) + if i.Ref != nil { + predicates = append(predicates, internalpolicyhistory.RefEQ(*i.Ref)) } - if i.DetectedMimeTypeLT != nil { - predicates = append(predicates, filehistory.DetectedMimeTypeLT(*i.DetectedMimeTypeLT)) + if i.RefNEQ != nil { + predicates = append(predicates, internalpolicyhistory.RefNEQ(*i.RefNEQ)) } - if i.DetectedMimeTypeLTE != nil { - predicates = append(predicates, filehistory.DetectedMimeTypeLTE(*i.DetectedMimeTypeLTE)) + if len(i.RefIn) > 0 { + predicates = append(predicates, internalpolicyhistory.RefIn(i.RefIn...)) } - if i.DetectedMimeTypeContains != nil { - predicates = append(predicates, filehistory.DetectedMimeTypeContains(*i.DetectedMimeTypeContains)) + if len(i.RefNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.RefNotIn(i.RefNotIn...)) } - if i.DetectedMimeTypeHasPrefix != nil { - predicates = append(predicates, filehistory.DetectedMimeTypeHasPrefix(*i.DetectedMimeTypeHasPrefix)) + if i.RefGT != nil { + predicates = append(predicates, internalpolicyhistory.RefGT(*i.RefGT)) } - if i.DetectedMimeTypeHasSuffix != nil { - predicates = append(predicates, filehistory.DetectedMimeTypeHasSuffix(*i.DetectedMimeTypeHasSuffix)) + if i.RefGTE != nil { + predicates = append(predicates, internalpolicyhistory.RefGTE(*i.RefGTE)) } - if i.DetectedMimeTypeIsNil { - predicates = append(predicates, filehistory.DetectedMimeTypeIsNil()) + if i.RefLT != nil { + predicates = append(predicates, internalpolicyhistory.RefLT(*i.RefLT)) } - if i.DetectedMimeTypeNotNil { - predicates = append(predicates, filehistory.DetectedMimeTypeNotNil()) + if i.RefLTE != nil { + predicates = append(predicates, internalpolicyhistory.RefLTE(*i.RefLTE)) } - if i.DetectedMimeTypeEqualFold != nil { - predicates = append(predicates, filehistory.DetectedMimeTypeEqualFold(*i.DetectedMimeTypeEqualFold)) + if i.RefContains != nil { + predicates = append(predicates, internalpolicyhistory.RefContains(*i.RefContains)) } - if i.DetectedMimeTypeContainsFold != nil { - predicates = append(predicates, filehistory.DetectedMimeTypeContainsFold(*i.DetectedMimeTypeContainsFold)) + if i.RefHasPrefix != nil { + predicates = append(predicates, internalpolicyhistory.RefHasPrefix(*i.RefHasPrefix)) } - if i.Md5Hash != nil { - predicates = append(predicates, filehistory.Md5HashEQ(*i.Md5Hash)) + if i.RefHasSuffix != nil { + predicates = append(predicates, internalpolicyhistory.RefHasSuffix(*i.RefHasSuffix)) } - if i.Md5HashNEQ != nil { - predicates = append(predicates, filehistory.Md5HashNEQ(*i.Md5HashNEQ)) + if i.RefIsNil { + predicates = append(predicates, internalpolicyhistory.RefIsNil()) } - if len(i.Md5HashIn) > 0 { - predicates = append(predicates, filehistory.Md5HashIn(i.Md5HashIn...)) + if i.RefNotNil { + predicates = append(predicates, internalpolicyhistory.RefNotNil()) } - if len(i.Md5HashNotIn) > 0 { - predicates = append(predicates, filehistory.Md5HashNotIn(i.Md5HashNotIn...)) + if i.RefEqualFold != nil { + predicates = append(predicates, internalpolicyhistory.RefEqualFold(*i.RefEqualFold)) } - if i.Md5HashGT != nil { - predicates = append(predicates, filehistory.Md5HashGT(*i.Md5HashGT)) + if i.RefContainsFold != nil { + predicates = append(predicates, internalpolicyhistory.RefContainsFold(*i.RefContainsFold)) } - if i.Md5HashGTE != nil { - predicates = append(predicates, filehistory.Md5HashGTE(*i.Md5HashGTE)) + if i.Operation != nil { + predicates = append(predicates, internalpolicyhistory.OperationEQ(*i.Operation)) } - if i.Md5HashLT != nil { - predicates = append(predicates, filehistory.Md5HashLT(*i.Md5HashLT)) + if i.OperationNEQ != nil { + predicates = append(predicates, internalpolicyhistory.OperationNEQ(*i.OperationNEQ)) } - if i.Md5HashLTE != nil { - predicates = append(predicates, filehistory.Md5HashLTE(*i.Md5HashLTE)) + if len(i.OperationIn) > 0 { + predicates = append(predicates, internalpolicyhistory.OperationIn(i.OperationIn...)) } - if i.Md5HashContains != nil { - predicates = append(predicates, filehistory.Md5HashContains(*i.Md5HashContains)) + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.OperationNotIn(i.OperationNotIn...)) } - if i.Md5HashHasPrefix != nil { - predicates = append(predicates, filehistory.Md5HashHasPrefix(*i.Md5HashHasPrefix)) + if i.CreatedAt != nil { + predicates = append(predicates, internalpolicyhistory.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtNEQ != nil { + predicates = append(predicates, internalpolicyhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + } + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, internalpolicyhistory.CreatedAtIn(i.CreatedAtIn...)) + } + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, internalpolicyhistory.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, internalpolicyhistory.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, internalpolicyhistory.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, internalpolicyhistory.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, internalpolicyhistory.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, internalpolicyhistory.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, internalpolicyhistory.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, internalpolicyhistory.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, internalpolicyhistory.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, internalpolicyhistory.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, internalpolicyhistory.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, internalpolicyhistory.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, internalpolicyhistory.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, internalpolicyhistory.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, internalpolicyhistory.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, internalpolicyhistory.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, internalpolicyhistory.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, internalpolicyhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, internalpolicyhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, internalpolicyhistory.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, internalpolicyhistory.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, internalpolicyhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, internalpolicyhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, internalpolicyhistory.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, internalpolicyhistory.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, internalpolicyhistory.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, internalpolicyhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, internalpolicyhistory.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, internalpolicyhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, internalpolicyhistory.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, internalpolicyhistory.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, internalpolicyhistory.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, internalpolicyhistory.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, internalpolicyhistory.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, internalpolicyhistory.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, internalpolicyhistory.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, internalpolicyhistory.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, internalpolicyhistory.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, internalpolicyhistory.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, internalpolicyhistory.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, internalpolicyhistory.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, internalpolicyhistory.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, internalpolicyhistory.DeletedByLTE(*i.DeletedByLTE)) } - if i.Md5HashHasSuffix != nil { - predicates = append(predicates, filehistory.Md5HashHasSuffix(*i.Md5HashHasSuffix)) + if i.DeletedByContains != nil { + predicates = append(predicates, internalpolicyhistory.DeletedByContains(*i.DeletedByContains)) } - if i.Md5HashIsNil { - predicates = append(predicates, filehistory.Md5HashIsNil()) + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, internalpolicyhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } - if i.Md5HashNotNil { - predicates = append(predicates, filehistory.Md5HashNotNil()) + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, internalpolicyhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } - if i.Md5HashEqualFold != nil { - predicates = append(predicates, filehistory.Md5HashEqualFold(*i.Md5HashEqualFold)) + if i.DeletedByIsNil { + predicates = append(predicates, internalpolicyhistory.DeletedByIsNil()) } - if i.Md5HashContainsFold != nil { - predicates = append(predicates, filehistory.Md5HashContainsFold(*i.Md5HashContainsFold)) + if i.DeletedByNotNil { + predicates = append(predicates, internalpolicyhistory.DeletedByNotNil()) } - if i.DetectedContentType != nil { - predicates = append(predicates, filehistory.DetectedContentTypeEQ(*i.DetectedContentType)) + if i.DeletedByEqualFold != nil { + predicates = append(predicates, internalpolicyhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } - if i.DetectedContentTypeNEQ != nil { - predicates = append(predicates, filehistory.DetectedContentTypeNEQ(*i.DetectedContentTypeNEQ)) + if i.DeletedByContainsFold != nil { + predicates = append(predicates, internalpolicyhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if len(i.DetectedContentTypeIn) > 0 { - predicates = append(predicates, filehistory.DetectedContentTypeIn(i.DetectedContentTypeIn...)) + if i.Name != nil { + predicates = append(predicates, internalpolicyhistory.NameEQ(*i.Name)) } - if len(i.DetectedContentTypeNotIn) > 0 { - predicates = append(predicates, filehistory.DetectedContentTypeNotIn(i.DetectedContentTypeNotIn...)) + if i.NameNEQ != nil { + predicates = append(predicates, internalpolicyhistory.NameNEQ(*i.NameNEQ)) } - if i.DetectedContentTypeGT != nil { - predicates = append(predicates, filehistory.DetectedContentTypeGT(*i.DetectedContentTypeGT)) + if len(i.NameIn) > 0 { + predicates = append(predicates, internalpolicyhistory.NameIn(i.NameIn...)) } - if i.DetectedContentTypeGTE != nil { - predicates = append(predicates, filehistory.DetectedContentTypeGTE(*i.DetectedContentTypeGTE)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.NameNotIn(i.NameNotIn...)) } - if i.DetectedContentTypeLT != nil { - predicates = append(predicates, filehistory.DetectedContentTypeLT(*i.DetectedContentTypeLT)) + if i.NameGT != nil { + predicates = append(predicates, internalpolicyhistory.NameGT(*i.NameGT)) } - if i.DetectedContentTypeLTE != nil { - predicates = append(predicates, filehistory.DetectedContentTypeLTE(*i.DetectedContentTypeLTE)) + if i.NameGTE != nil { + predicates = append(predicates, internalpolicyhistory.NameGTE(*i.NameGTE)) } - if i.DetectedContentTypeContains != nil { - predicates = append(predicates, filehistory.DetectedContentTypeContains(*i.DetectedContentTypeContains)) + if i.NameLT != nil { + predicates = append(predicates, internalpolicyhistory.NameLT(*i.NameLT)) } - if i.DetectedContentTypeHasPrefix != nil { - predicates = append(predicates, filehistory.DetectedContentTypeHasPrefix(*i.DetectedContentTypeHasPrefix)) + if i.NameLTE != nil { + predicates = append(predicates, internalpolicyhistory.NameLTE(*i.NameLTE)) } - if i.DetectedContentTypeHasSuffix != nil { - predicates = append(predicates, filehistory.DetectedContentTypeHasSuffix(*i.DetectedContentTypeHasSuffix)) + if i.NameContains != nil { + predicates = append(predicates, internalpolicyhistory.NameContains(*i.NameContains)) } - if i.DetectedContentTypeEqualFold != nil { - predicates = append(predicates, filehistory.DetectedContentTypeEqualFold(*i.DetectedContentTypeEqualFold)) + if i.NameHasPrefix != nil { + predicates = append(predicates, internalpolicyhistory.NameHasPrefix(*i.NameHasPrefix)) } - if i.DetectedContentTypeContainsFold != nil { - predicates = append(predicates, filehistory.DetectedContentTypeContainsFold(*i.DetectedContentTypeContainsFold)) + if i.NameHasSuffix != nil { + predicates = append(predicates, internalpolicyhistory.NameHasSuffix(*i.NameHasSuffix)) } - if i.StoreKey != nil { - predicates = append(predicates, filehistory.StoreKeyEQ(*i.StoreKey)) + if i.NameEqualFold != nil { + predicates = append(predicates, internalpolicyhistory.NameEqualFold(*i.NameEqualFold)) } - if i.StoreKeyNEQ != nil { - predicates = append(predicates, filehistory.StoreKeyNEQ(*i.StoreKeyNEQ)) + if i.NameContainsFold != nil { + predicates = append(predicates, internalpolicyhistory.NameContainsFold(*i.NameContainsFold)) } - if len(i.StoreKeyIn) > 0 { - predicates = append(predicates, filehistory.StoreKeyIn(i.StoreKeyIn...)) + if i.Description != nil { + predicates = append(predicates, internalpolicyhistory.DescriptionEQ(*i.Description)) } - if len(i.StoreKeyNotIn) > 0 { - predicates = append(predicates, filehistory.StoreKeyNotIn(i.StoreKeyNotIn...)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, internalpolicyhistory.DescriptionNEQ(*i.DescriptionNEQ)) } - if i.StoreKeyGT != nil { - predicates = append(predicates, filehistory.StoreKeyGT(*i.StoreKeyGT)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, internalpolicyhistory.DescriptionIn(i.DescriptionIn...)) } - if i.StoreKeyGTE != nil { - predicates = append(predicates, filehistory.StoreKeyGTE(*i.StoreKeyGTE)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.DescriptionNotIn(i.DescriptionNotIn...)) } - if i.StoreKeyLT != nil { - predicates = append(predicates, filehistory.StoreKeyLT(*i.StoreKeyLT)) + if i.DescriptionGT != nil { + predicates = append(predicates, internalpolicyhistory.DescriptionGT(*i.DescriptionGT)) } - if i.StoreKeyLTE != nil { - predicates = append(predicates, filehistory.StoreKeyLTE(*i.StoreKeyLTE)) + if i.DescriptionGTE != nil { + predicates = append(predicates, internalpolicyhistory.DescriptionGTE(*i.DescriptionGTE)) } - if i.StoreKeyContains != nil { - predicates = append(predicates, filehistory.StoreKeyContains(*i.StoreKeyContains)) + if i.DescriptionLT != nil { + predicates = append(predicates, internalpolicyhistory.DescriptionLT(*i.DescriptionLT)) } - if i.StoreKeyHasPrefix != nil { - predicates = append(predicates, filehistory.StoreKeyHasPrefix(*i.StoreKeyHasPrefix)) + if i.DescriptionLTE != nil { + predicates = append(predicates, internalpolicyhistory.DescriptionLTE(*i.DescriptionLTE)) } - if i.StoreKeyHasSuffix != nil { - predicates = append(predicates, filehistory.StoreKeyHasSuffix(*i.StoreKeyHasSuffix)) + if i.DescriptionContains != nil { + predicates = append(predicates, internalpolicyhistory.DescriptionContains(*i.DescriptionContains)) } - if i.StoreKeyIsNil { - predicates = append(predicates, filehistory.StoreKeyIsNil()) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, internalpolicyhistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.StoreKeyNotNil { - predicates = append(predicates, filehistory.StoreKeyNotNil()) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, internalpolicyhistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.StoreKeyEqualFold != nil { - predicates = append(predicates, filehistory.StoreKeyEqualFold(*i.StoreKeyEqualFold)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, internalpolicyhistory.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.StoreKeyContainsFold != nil { - predicates = append(predicates, filehistory.StoreKeyContainsFold(*i.StoreKeyContainsFold)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, internalpolicyhistory.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.CategoryType != nil { - predicates = append(predicates, filehistory.CategoryTypeEQ(*i.CategoryType)) + if i.Status != nil { + predicates = append(predicates, internalpolicyhistory.StatusEQ(*i.Status)) } - if i.CategoryTypeNEQ != nil { - predicates = append(predicates, filehistory.CategoryTypeNEQ(*i.CategoryTypeNEQ)) + if i.StatusNEQ != nil { + predicates = append(predicates, internalpolicyhistory.StatusNEQ(*i.StatusNEQ)) } - if len(i.CategoryTypeIn) > 0 { - predicates = append(predicates, filehistory.CategoryTypeIn(i.CategoryTypeIn...)) + if len(i.StatusIn) > 0 { + predicates = append(predicates, internalpolicyhistory.StatusIn(i.StatusIn...)) } - if len(i.CategoryTypeNotIn) > 0 { - predicates = append(predicates, filehistory.CategoryTypeNotIn(i.CategoryTypeNotIn...)) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.StatusNotIn(i.StatusNotIn...)) } - if i.CategoryTypeGT != nil { - predicates = append(predicates, filehistory.CategoryTypeGT(*i.CategoryTypeGT)) + if i.StatusGT != nil { + predicates = append(predicates, internalpolicyhistory.StatusGT(*i.StatusGT)) } - if i.CategoryTypeGTE != nil { - predicates = append(predicates, filehistory.CategoryTypeGTE(*i.CategoryTypeGTE)) + if i.StatusGTE != nil { + predicates = append(predicates, internalpolicyhistory.StatusGTE(*i.StatusGTE)) } - if i.CategoryTypeLT != nil { - predicates = append(predicates, filehistory.CategoryTypeLT(*i.CategoryTypeLT)) + if i.StatusLT != nil { + predicates = append(predicates, internalpolicyhistory.StatusLT(*i.StatusLT)) } - if i.CategoryTypeLTE != nil { - predicates = append(predicates, filehistory.CategoryTypeLTE(*i.CategoryTypeLTE)) + if i.StatusLTE != nil { + predicates = append(predicates, internalpolicyhistory.StatusLTE(*i.StatusLTE)) } - if i.CategoryTypeContains != nil { - predicates = append(predicates, filehistory.CategoryTypeContains(*i.CategoryTypeContains)) + if i.StatusContains != nil { + predicates = append(predicates, internalpolicyhistory.StatusContains(*i.StatusContains)) } - if i.CategoryTypeHasPrefix != nil { - predicates = append(predicates, filehistory.CategoryTypeHasPrefix(*i.CategoryTypeHasPrefix)) + if i.StatusHasPrefix != nil { + predicates = append(predicates, internalpolicyhistory.StatusHasPrefix(*i.StatusHasPrefix)) } - if i.CategoryTypeHasSuffix != nil { - predicates = append(predicates, filehistory.CategoryTypeHasSuffix(*i.CategoryTypeHasSuffix)) + if i.StatusHasSuffix != nil { + predicates = append(predicates, internalpolicyhistory.StatusHasSuffix(*i.StatusHasSuffix)) } - if i.CategoryTypeIsNil { - predicates = append(predicates, filehistory.CategoryTypeIsNil()) + if i.StatusIsNil { + predicates = append(predicates, internalpolicyhistory.StatusIsNil()) } - if i.CategoryTypeNotNil { - predicates = append(predicates, filehistory.CategoryTypeNotNil()) + if i.StatusNotNil { + predicates = append(predicates, internalpolicyhistory.StatusNotNil()) } - if i.CategoryTypeEqualFold != nil { - predicates = append(predicates, filehistory.CategoryTypeEqualFold(*i.CategoryTypeEqualFold)) + if i.StatusEqualFold != nil { + predicates = append(predicates, internalpolicyhistory.StatusEqualFold(*i.StatusEqualFold)) } - if i.CategoryTypeContainsFold != nil { - predicates = append(predicates, filehistory.CategoryTypeContainsFold(*i.CategoryTypeContainsFold)) + if i.StatusContainsFold != nil { + predicates = append(predicates, internalpolicyhistory.StatusContainsFold(*i.StatusContainsFold)) } - if i.URI != nil { - predicates = append(predicates, filehistory.URIEQ(*i.URI)) + if i.PolicyType != nil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeEQ(*i.PolicyType)) } - if i.URINEQ != nil { - predicates = append(predicates, filehistory.URINEQ(*i.URINEQ)) + if i.PolicyTypeNEQ != nil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeNEQ(*i.PolicyTypeNEQ)) } - if len(i.URIIn) > 0 { - predicates = append(predicates, filehistory.URIIn(i.URIIn...)) + if len(i.PolicyTypeIn) > 0 { + predicates = append(predicates, internalpolicyhistory.PolicyTypeIn(i.PolicyTypeIn...)) } - if len(i.URINotIn) > 0 { - predicates = append(predicates, filehistory.URINotIn(i.URINotIn...)) + if len(i.PolicyTypeNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.PolicyTypeNotIn(i.PolicyTypeNotIn...)) } - if i.URIGT != nil { - predicates = append(predicates, filehistory.URIGT(*i.URIGT)) + if i.PolicyTypeGT != nil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeGT(*i.PolicyTypeGT)) } - if i.URIGTE != nil { - predicates = append(predicates, filehistory.URIGTE(*i.URIGTE)) + if i.PolicyTypeGTE != nil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeGTE(*i.PolicyTypeGTE)) } - if i.URILT != nil { - predicates = append(predicates, filehistory.URILT(*i.URILT)) + if i.PolicyTypeLT != nil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeLT(*i.PolicyTypeLT)) } - if i.URILTE != nil { - predicates = append(predicates, filehistory.URILTE(*i.URILTE)) + if i.PolicyTypeLTE != nil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeLTE(*i.PolicyTypeLTE)) } - if i.URIContains != nil { - predicates = append(predicates, filehistory.URIContains(*i.URIContains)) + if i.PolicyTypeContains != nil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeContains(*i.PolicyTypeContains)) } - if i.URIHasPrefix != nil { - predicates = append(predicates, filehistory.URIHasPrefix(*i.URIHasPrefix)) + if i.PolicyTypeHasPrefix != nil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeHasPrefix(*i.PolicyTypeHasPrefix)) } - if i.URIHasSuffix != nil { - predicates = append(predicates, filehistory.URIHasSuffix(*i.URIHasSuffix)) + if i.PolicyTypeHasSuffix != nil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeHasSuffix(*i.PolicyTypeHasSuffix)) } - if i.URIIsNil { - predicates = append(predicates, filehistory.URIIsNil()) + if i.PolicyTypeIsNil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeIsNil()) } - if i.URINotNil { - predicates = append(predicates, filehistory.URINotNil()) + if i.PolicyTypeNotNil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeNotNil()) } - if i.URIEqualFold != nil { - predicates = append(predicates, filehistory.URIEqualFold(*i.URIEqualFold)) + if i.PolicyTypeEqualFold != nil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeEqualFold(*i.PolicyTypeEqualFold)) } - if i.URIContainsFold != nil { - predicates = append(predicates, filehistory.URIContainsFold(*i.URIContainsFold)) + if i.PolicyTypeContainsFold != nil { + predicates = append(predicates, internalpolicyhistory.PolicyTypeContainsFold(*i.PolicyTypeContainsFold)) } - if i.StorageScheme != nil { - predicates = append(predicates, filehistory.StorageSchemeEQ(*i.StorageScheme)) + if i.Version != nil { + predicates = append(predicates, internalpolicyhistory.VersionEQ(*i.Version)) } - if i.StorageSchemeNEQ != nil { - predicates = append(predicates, filehistory.StorageSchemeNEQ(*i.StorageSchemeNEQ)) + if i.VersionNEQ != nil { + predicates = append(predicates, internalpolicyhistory.VersionNEQ(*i.VersionNEQ)) } - if len(i.StorageSchemeIn) > 0 { - predicates = append(predicates, filehistory.StorageSchemeIn(i.StorageSchemeIn...)) + if len(i.VersionIn) > 0 { + predicates = append(predicates, internalpolicyhistory.VersionIn(i.VersionIn...)) } - if len(i.StorageSchemeNotIn) > 0 { - predicates = append(predicates, filehistory.StorageSchemeNotIn(i.StorageSchemeNotIn...)) + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.VersionNotIn(i.VersionNotIn...)) } - if i.StorageSchemeGT != nil { - predicates = append(predicates, filehistory.StorageSchemeGT(*i.StorageSchemeGT)) + if i.VersionGT != nil { + predicates = append(predicates, internalpolicyhistory.VersionGT(*i.VersionGT)) } - if i.StorageSchemeGTE != nil { - predicates = append(predicates, filehistory.StorageSchemeGTE(*i.StorageSchemeGTE)) + if i.VersionGTE != nil { + predicates = append(predicates, internalpolicyhistory.VersionGTE(*i.VersionGTE)) } - if i.StorageSchemeLT != nil { - predicates = append(predicates, filehistory.StorageSchemeLT(*i.StorageSchemeLT)) + if i.VersionLT != nil { + predicates = append(predicates, internalpolicyhistory.VersionLT(*i.VersionLT)) } - if i.StorageSchemeLTE != nil { - predicates = append(predicates, filehistory.StorageSchemeLTE(*i.StorageSchemeLTE)) + if i.VersionLTE != nil { + predicates = append(predicates, internalpolicyhistory.VersionLTE(*i.VersionLTE)) } - if i.StorageSchemeContains != nil { - predicates = append(predicates, filehistory.StorageSchemeContains(*i.StorageSchemeContains)) + if i.VersionContains != nil { + predicates = append(predicates, internalpolicyhistory.VersionContains(*i.VersionContains)) } - if i.StorageSchemeHasPrefix != nil { - predicates = append(predicates, filehistory.StorageSchemeHasPrefix(*i.StorageSchemeHasPrefix)) + if i.VersionHasPrefix != nil { + predicates = append(predicates, internalpolicyhistory.VersionHasPrefix(*i.VersionHasPrefix)) } - if i.StorageSchemeHasSuffix != nil { - predicates = append(predicates, filehistory.StorageSchemeHasSuffix(*i.StorageSchemeHasSuffix)) + if i.VersionHasSuffix != nil { + predicates = append(predicates, internalpolicyhistory.VersionHasSuffix(*i.VersionHasSuffix)) } - if i.StorageSchemeIsNil { - predicates = append(predicates, filehistory.StorageSchemeIsNil()) + if i.VersionIsNil { + predicates = append(predicates, internalpolicyhistory.VersionIsNil()) } - if i.StorageSchemeNotNil { - predicates = append(predicates, filehistory.StorageSchemeNotNil()) + if i.VersionNotNil { + predicates = append(predicates, internalpolicyhistory.VersionNotNil()) } - if i.StorageSchemeEqualFold != nil { - predicates = append(predicates, filehistory.StorageSchemeEqualFold(*i.StorageSchemeEqualFold)) + if i.VersionEqualFold != nil { + predicates = append(predicates, internalpolicyhistory.VersionEqualFold(*i.VersionEqualFold)) } - if i.StorageSchemeContainsFold != nil { - predicates = append(predicates, filehistory.StorageSchemeContainsFold(*i.StorageSchemeContainsFold)) + if i.VersionContainsFold != nil { + predicates = append(predicates, internalpolicyhistory.VersionContainsFold(*i.VersionContainsFold)) } - if i.StorageVolume != nil { - predicates = append(predicates, filehistory.StorageVolumeEQ(*i.StorageVolume)) + if i.PurposeAndScope != nil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeEQ(*i.PurposeAndScope)) } - if i.StorageVolumeNEQ != nil { - predicates = append(predicates, filehistory.StorageVolumeNEQ(*i.StorageVolumeNEQ)) + if i.PurposeAndScopeNEQ != nil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeNEQ(*i.PurposeAndScopeNEQ)) } - if len(i.StorageVolumeIn) > 0 { - predicates = append(predicates, filehistory.StorageVolumeIn(i.StorageVolumeIn...)) + if len(i.PurposeAndScopeIn) > 0 { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeIn(i.PurposeAndScopeIn...)) } - if len(i.StorageVolumeNotIn) > 0 { - predicates = append(predicates, filehistory.StorageVolumeNotIn(i.StorageVolumeNotIn...)) + if len(i.PurposeAndScopeNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeNotIn(i.PurposeAndScopeNotIn...)) } - if i.StorageVolumeGT != nil { - predicates = append(predicates, filehistory.StorageVolumeGT(*i.StorageVolumeGT)) + if i.PurposeAndScopeGT != nil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeGT(*i.PurposeAndScopeGT)) } - if i.StorageVolumeGTE != nil { - predicates = append(predicates, filehistory.StorageVolumeGTE(*i.StorageVolumeGTE)) + if i.PurposeAndScopeGTE != nil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeGTE(*i.PurposeAndScopeGTE)) } - if i.StorageVolumeLT != nil { - predicates = append(predicates, filehistory.StorageVolumeLT(*i.StorageVolumeLT)) + if i.PurposeAndScopeLT != nil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeLT(*i.PurposeAndScopeLT)) } - if i.StorageVolumeLTE != nil { - predicates = append(predicates, filehistory.StorageVolumeLTE(*i.StorageVolumeLTE)) + if i.PurposeAndScopeLTE != nil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeLTE(*i.PurposeAndScopeLTE)) } - if i.StorageVolumeContains != nil { - predicates = append(predicates, filehistory.StorageVolumeContains(*i.StorageVolumeContains)) + if i.PurposeAndScopeContains != nil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeContains(*i.PurposeAndScopeContains)) } - if i.StorageVolumeHasPrefix != nil { - predicates = append(predicates, filehistory.StorageVolumeHasPrefix(*i.StorageVolumeHasPrefix)) + if i.PurposeAndScopeHasPrefix != nil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeHasPrefix(*i.PurposeAndScopeHasPrefix)) } - if i.StorageVolumeHasSuffix != nil { - predicates = append(predicates, filehistory.StorageVolumeHasSuffix(*i.StorageVolumeHasSuffix)) + if i.PurposeAndScopeHasSuffix != nil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeHasSuffix(*i.PurposeAndScopeHasSuffix)) } - if i.StorageVolumeIsNil { - predicates = append(predicates, filehistory.StorageVolumeIsNil()) + if i.PurposeAndScopeIsNil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeIsNil()) } - if i.StorageVolumeNotNil { - predicates = append(predicates, filehistory.StorageVolumeNotNil()) + if i.PurposeAndScopeNotNil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeNotNil()) } - if i.StorageVolumeEqualFold != nil { - predicates = append(predicates, filehistory.StorageVolumeEqualFold(*i.StorageVolumeEqualFold)) + if i.PurposeAndScopeEqualFold != nil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeEqualFold(*i.PurposeAndScopeEqualFold)) } - if i.StorageVolumeContainsFold != nil { - predicates = append(predicates, filehistory.StorageVolumeContainsFold(*i.StorageVolumeContainsFold)) + if i.PurposeAndScopeContainsFold != nil { + predicates = append(predicates, internalpolicyhistory.PurposeAndScopeContainsFold(*i.PurposeAndScopeContainsFold)) } - if i.StoragePath != nil { - predicates = append(predicates, filehistory.StoragePathEQ(*i.StoragePath)) + if i.Background != nil { + predicates = append(predicates, internalpolicyhistory.BackgroundEQ(*i.Background)) } - if i.StoragePathNEQ != nil { - predicates = append(predicates, filehistory.StoragePathNEQ(*i.StoragePathNEQ)) + if i.BackgroundNEQ != nil { + predicates = append(predicates, internalpolicyhistory.BackgroundNEQ(*i.BackgroundNEQ)) } - if len(i.StoragePathIn) > 0 { - predicates = append(predicates, filehistory.StoragePathIn(i.StoragePathIn...)) + if len(i.BackgroundIn) > 0 { + predicates = append(predicates, internalpolicyhistory.BackgroundIn(i.BackgroundIn...)) } - if len(i.StoragePathNotIn) > 0 { - predicates = append(predicates, filehistory.StoragePathNotIn(i.StoragePathNotIn...)) + if len(i.BackgroundNotIn) > 0 { + predicates = append(predicates, internalpolicyhistory.BackgroundNotIn(i.BackgroundNotIn...)) } - if i.StoragePathGT != nil { - predicates = append(predicates, filehistory.StoragePathGT(*i.StoragePathGT)) + if i.BackgroundGT != nil { + predicates = append(predicates, internalpolicyhistory.BackgroundGT(*i.BackgroundGT)) } - if i.StoragePathGTE != nil { - predicates = append(predicates, filehistory.StoragePathGTE(*i.StoragePathGTE)) + if i.BackgroundGTE != nil { + predicates = append(predicates, internalpolicyhistory.BackgroundGTE(*i.BackgroundGTE)) } - if i.StoragePathLT != nil { - predicates = append(predicates, filehistory.StoragePathLT(*i.StoragePathLT)) + if i.BackgroundLT != nil { + predicates = append(predicates, internalpolicyhistory.BackgroundLT(*i.BackgroundLT)) } - if i.StoragePathLTE != nil { - predicates = append(predicates, filehistory.StoragePathLTE(*i.StoragePathLTE)) + if i.BackgroundLTE != nil { + predicates = append(predicates, internalpolicyhistory.BackgroundLTE(*i.BackgroundLTE)) } - if i.StoragePathContains != nil { - predicates = append(predicates, filehistory.StoragePathContains(*i.StoragePathContains)) + if i.BackgroundContains != nil { + predicates = append(predicates, internalpolicyhistory.BackgroundContains(*i.BackgroundContains)) } - if i.StoragePathHasPrefix != nil { - predicates = append(predicates, filehistory.StoragePathHasPrefix(*i.StoragePathHasPrefix)) + if i.BackgroundHasPrefix != nil { + predicates = append(predicates, internalpolicyhistory.BackgroundHasPrefix(*i.BackgroundHasPrefix)) } - if i.StoragePathHasSuffix != nil { - predicates = append(predicates, filehistory.StoragePathHasSuffix(*i.StoragePathHasSuffix)) + if i.BackgroundHasSuffix != nil { + predicates = append(predicates, internalpolicyhistory.BackgroundHasSuffix(*i.BackgroundHasSuffix)) } - if i.StoragePathIsNil { - predicates = append(predicates, filehistory.StoragePathIsNil()) + if i.BackgroundIsNil { + predicates = append(predicates, internalpolicyhistory.BackgroundIsNil()) } - if i.StoragePathNotNil { - predicates = append(predicates, filehistory.StoragePathNotNil()) + if i.BackgroundNotNil { + predicates = append(predicates, internalpolicyhistory.BackgroundNotNil()) } - if i.StoragePathEqualFold != nil { - predicates = append(predicates, filehistory.StoragePathEqualFold(*i.StoragePathEqualFold)) + if i.BackgroundEqualFold != nil { + predicates = append(predicates, internalpolicyhistory.BackgroundEqualFold(*i.BackgroundEqualFold)) } - if i.StoragePathContainsFold != nil { - predicates = append(predicates, filehistory.StoragePathContainsFold(*i.StoragePathContainsFold)) + if i.BackgroundContainsFold != nil { + predicates = append(predicates, internalpolicyhistory.BackgroundContainsFold(*i.BackgroundContainsFold)) } switch len(predicates) { case 0: - return nil, ErrEmptyFileHistoryWhereInput + return nil, ErrEmptyInternalPolicyHistoryWhereInput case 1: return predicates[0], nil default: - return filehistory.And(predicates...), nil + return internalpolicyhistory.And(predicates...), nil } } -// GroupWhereInput represents a where input for filtering Group queries. -type GroupWhereInput struct { - Predicates []predicate.Group `json:"-"` - Not *GroupWhereInput `json:"not,omitempty"` - Or []*GroupWhereInput `json:"or,omitempty"` - And []*GroupWhereInput `json:"and,omitempty"` +// InviteWhereInput represents a where input for filtering Invite queries. +type InviteWhereInput struct { + Predicates []predicate.Invite `json:"-"` + Not *InviteWhereInput `json:"not,omitempty"` + Or []*InviteWhereInput `json:"or,omitempty"` + And []*InviteWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -17918,78 +33524,94 @@ type GroupWhereInput struct { 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"` - NameGT *string `json:"nameGT,omitempty"` - NameGTE *string `json:"nameGTE,omitempty"` - NameLT *string `json:"nameLT,omitempty"` - NameLTE *string `json:"nameLTE,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"` + // "expires" field predicates. + Expires *time.Time `json:"expires,omitempty"` + ExpiresNEQ *time.Time `json:"expiresNEQ,omitempty"` + ExpiresIn []time.Time `json:"expiresIn,omitempty"` + ExpiresNotIn []time.Time `json:"expiresNotIn,omitempty"` + ExpiresGT *time.Time `json:"expiresGT,omitempty"` + ExpiresGTE *time.Time `json:"expiresGTE,omitempty"` + ExpiresLT *time.Time `json:"expiresLT,omitempty"` + ExpiresLTE *time.Time `json:"expiresLTE,omitempty"` + ExpiresIsNil bool `json:"expiresIsNil,omitempty"` + ExpiresNotNil bool `json:"expiresNotNil,omitempty"` - // "display_name" field predicates. - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGT *string `json:"displayNameGT,omitempty"` - DisplayNameGTE *string `json:"displayNameGTE,omitempty"` - DisplayNameLT *string `json:"displayNameLT,omitempty"` - DisplayNameLTE *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // "recipient" field predicates. + Recipient *string `json:"recipient,omitempty"` + RecipientNEQ *string `json:"recipientNEQ,omitempty"` + RecipientIn []string `json:"recipientIn,omitempty"` + RecipientNotIn []string `json:"recipientNotIn,omitempty"` + RecipientGT *string `json:"recipientGT,omitempty"` + RecipientGTE *string `json:"recipientGTE,omitempty"` + RecipientLT *string `json:"recipientLT,omitempty"` + RecipientLTE *string `json:"recipientLTE,omitempty"` + RecipientContains *string `json:"recipientContains,omitempty"` + RecipientHasPrefix *string `json:"recipientHasPrefix,omitempty"` + RecipientHasSuffix *string `json:"recipientHasSuffix,omitempty"` + RecipientEqualFold *string `json:"recipientEqualFold,omitempty"` + RecipientContainsFold *string `json:"recipientContainsFold,omitempty"` + + // "status" field predicates. + Status *enums.InviteStatus `json:"status,omitempty"` + StatusNEQ *enums.InviteStatus `json:"statusNEQ,omitempty"` + StatusIn []enums.InviteStatus `json:"statusIn,omitempty"` + StatusNotIn []enums.InviteStatus `json:"statusNotIn,omitempty"` + + // "role" field predicates. + Role *enums.Role `json:"role,omitempty"` + RoleNEQ *enums.Role `json:"roleNEQ,omitempty"` + RoleIn []enums.Role `json:"roleIn,omitempty"` + RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` + + // "send_attempts" field predicates. + SendAttempts *int `json:"sendAttempts,omitempty"` + SendAttemptsNEQ *int `json:"sendAttemptsNEQ,omitempty"` + SendAttemptsIn []int `json:"sendAttemptsIn,omitempty"` + SendAttemptsNotIn []int `json:"sendAttemptsNotIn,omitempty"` + SendAttemptsGT *int `json:"sendAttemptsGT,omitempty"` + SendAttemptsGTE *int `json:"sendAttemptsGTE,omitempty"` + SendAttemptsLT *int `json:"sendAttemptsLT,omitempty"` + SendAttemptsLTE *int `json:"sendAttemptsLTE,omitempty"` + + // "requestor_id" field predicates. + RequestorID *string `json:"requestorID,omitempty"` + RequestorIDNEQ *string `json:"requestorIDNEQ,omitempty"` + RequestorIDIn []string `json:"requestorIDIn,omitempty"` + RequestorIDNotIn []string `json:"requestorIDNotIn,omitempty"` + RequestorIDGT *string `json:"requestorIDGT,omitempty"` + RequestorIDGTE *string `json:"requestorIDGTE,omitempty"` + RequestorIDLT *string `json:"requestorIDLT,omitempty"` + RequestorIDLTE *string `json:"requestorIDLTE,omitempty"` + RequestorIDContains *string `json:"requestorIDContains,omitempty"` + RequestorIDHasPrefix *string `json:"requestorIDHasPrefix,omitempty"` + RequestorIDHasSuffix *string `json:"requestorIDHasSuffix,omitempty"` + RequestorIDIsNil bool `json:"requestorIDIsNil,omitempty"` + RequestorIDNotNil bool `json:"requestorIDNotNil,omitempty"` + RequestorIDEqualFold *string `json:"requestorIDEqualFold,omitempty"` + RequestorIDContainsFold *string `json:"requestorIDContainsFold,omitempty"` // "owner" edge predicates. HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // "setting" edge predicates. - HasSetting *bool `json:"hasSetting,omitempty"` - HasSettingWith []*GroupSettingWhereInput `json:"hasSettingWith,omitempty"` - - // "users" edge predicates. - HasUsers *bool `json:"hasUsers,omitempty"` - HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"` - // "events" edge predicates. HasEvents *bool `json:"hasEvents,omitempty"` HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` - - // "integrations" edge predicates. - HasIntegrations *bool `json:"hasIntegrations,omitempty"` - HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` - - // "files" edge predicates. - HasFiles *bool `json:"hasFiles,omitempty"` - HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` - - // "members" edge predicates. - HasMembers *bool `json:"hasMembers,omitempty"` - HasMembersWith []*GroupMembershipWhereInput `json:"hasMembersWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *GroupWhereInput) AddPredicates(predicates ...predicate.Group) { +func (i *InviteWhereInput) AddPredicates(predicates ...predicate.Invite) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the GroupWhereInput filter on the GroupQuery builder. -func (i *GroupWhereInput) Filter(q *GroupQuery) (*GroupQuery, error) { +// Filter applies the InviteWhereInput filter on the InviteQuery builder. +func (i *InviteWhereInput) Filter(q *InviteQuery) (*InviteQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyGroupWhereInput { + if err == ErrEmptyInviteWhereInput { return q, nil } return nil, err @@ -17997,19 +33619,19 @@ func (i *GroupWhereInput) Filter(q *GroupQuery) (*GroupQuery, error) { return q.Where(p), nil } -// ErrEmptyGroupWhereInput is returned in case the GroupWhereInput is empty. -var ErrEmptyGroupWhereInput = errors.New("generated: empty predicate GroupWhereInput") +// ErrEmptyInviteWhereInput is returned in case the InviteWhereInput is empty. +var ErrEmptyInviteWhereInput = errors.New("generated: empty predicate InviteWhereInput") -// P returns a predicate for filtering groups. +// P returns a predicate for filtering invites. // An error is returned if the input is empty or invalid. -func (i *GroupWhereInput) P() (predicate.Group, error) { - var predicates []predicate.Group +func (i *InviteWhereInput) P() (predicate.Invite, error) { + var predicates []predicate.Invite if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, group.Not(p)) + predicates = append(predicates, invite.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -18019,7 +33641,7 @@ func (i *GroupWhereInput) P() (predicate.Group, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.Group, 0, n) + or := make([]predicate.Invite, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -18027,7 +33649,7 @@ func (i *GroupWhereInput) P() (predicate.Group, error) { } or = append(or, p) } - predicates = append(predicates, group.Or(or...)) + predicates = append(predicates, invite.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -18037,7 +33659,7 @@ func (i *GroupWhereInput) P() (predicate.Group, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.Group, 0, n) + and := make([]predicate.Invite, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -18045,392 +33667,476 @@ func (i *GroupWhereInput) P() (predicate.Group, error) { } and = append(and, p) } - predicates = append(predicates, group.And(and...)) + predicates = append(predicates, invite.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, group.IDEQ(*i.ID)) + predicates = append(predicates, invite.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, group.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, invite.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, group.IDIn(i.IDIn...)) + predicates = append(predicates, invite.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, group.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, invite.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, group.IDGT(*i.IDGT)) + predicates = append(predicates, invite.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, group.IDGTE(*i.IDGTE)) + predicates = append(predicates, invite.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, group.IDLT(*i.IDLT)) + predicates = append(predicates, invite.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, group.IDLTE(*i.IDLTE)) + predicates = append(predicates, invite.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, group.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, invite.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, group.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, invite.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, group.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, invite.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, group.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, invite.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, group.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, invite.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, group.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, invite.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, group.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, invite.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, group.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, invite.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, group.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, invite.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, group.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, invite.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, group.CreatedAtIsNil()) + predicates = append(predicates, invite.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, group.CreatedAtNotNil()) + predicates = append(predicates, invite.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, group.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, invite.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, group.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, invite.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, group.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, invite.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, group.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, invite.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, group.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, invite.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, group.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, invite.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, group.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, invite.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, group.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, invite.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, group.UpdatedAtIsNil()) + predicates = append(predicates, invite.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, group.UpdatedAtNotNil()) + predicates = append(predicates, invite.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, group.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, invite.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, group.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, invite.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, group.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, invite.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, group.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, invite.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, group.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, invite.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, group.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, invite.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, group.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, invite.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, group.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, invite.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, group.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, invite.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, group.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, invite.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, group.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, invite.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, group.CreatedByIsNil()) + predicates = append(predicates, invite.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, group.CreatedByNotNil()) + predicates = append(predicates, invite.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, group.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, invite.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, group.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, invite.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, group.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, invite.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, group.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, invite.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, group.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, invite.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, group.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, invite.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, group.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, invite.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, group.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, invite.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, group.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, invite.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, group.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, invite.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, group.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, invite.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, group.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, invite.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, group.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, invite.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, group.UpdatedByIsNil()) + predicates = append(predicates, invite.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, group.UpdatedByNotNil()) + predicates = append(predicates, invite.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, group.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, invite.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, group.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, invite.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, group.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, invite.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, group.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, invite.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, group.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, invite.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, group.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, invite.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, group.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, invite.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, group.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, invite.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, group.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, invite.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, group.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, invite.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, group.DeletedAtIsNil()) + predicates = append(predicates, invite.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, group.DeletedAtNotNil()) + predicates = append(predicates, invite.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, group.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, invite.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, group.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, invite.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, group.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, invite.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, group.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, invite.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, group.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, invite.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, group.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, invite.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, group.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, invite.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, group.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, invite.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, group.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, invite.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, group.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, invite.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, group.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, invite.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, group.DeletedByIsNil()) + predicates = append(predicates, invite.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, group.DeletedByNotNil()) + predicates = append(predicates, invite.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, group.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, invite.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, group.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, invite.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.OwnerID != nil { - predicates = append(predicates, group.OwnerIDEQ(*i.OwnerID)) + predicates = append(predicates, invite.OwnerIDEQ(*i.OwnerID)) } if i.OwnerIDNEQ != nil { - predicates = append(predicates, group.OwnerIDNEQ(*i.OwnerIDNEQ)) + predicates = append(predicates, invite.OwnerIDNEQ(*i.OwnerIDNEQ)) } if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, group.OwnerIDIn(i.OwnerIDIn...)) + predicates = append(predicates, invite.OwnerIDIn(i.OwnerIDIn...)) } if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, group.OwnerIDNotIn(i.OwnerIDNotIn...)) + predicates = append(predicates, invite.OwnerIDNotIn(i.OwnerIDNotIn...)) } if i.OwnerIDGT != nil { - predicates = append(predicates, group.OwnerIDGT(*i.OwnerIDGT)) + predicates = append(predicates, invite.OwnerIDGT(*i.OwnerIDGT)) } if i.OwnerIDGTE != nil { - predicates = append(predicates, group.OwnerIDGTE(*i.OwnerIDGTE)) + predicates = append(predicates, invite.OwnerIDGTE(*i.OwnerIDGTE)) } if i.OwnerIDLT != nil { - predicates = append(predicates, group.OwnerIDLT(*i.OwnerIDLT)) + predicates = append(predicates, invite.OwnerIDLT(*i.OwnerIDLT)) } if i.OwnerIDLTE != nil { - predicates = append(predicates, group.OwnerIDLTE(*i.OwnerIDLTE)) + predicates = append(predicates, invite.OwnerIDLTE(*i.OwnerIDLTE)) } if i.OwnerIDContains != nil { - predicates = append(predicates, group.OwnerIDContains(*i.OwnerIDContains)) + predicates = append(predicates, invite.OwnerIDContains(*i.OwnerIDContains)) } if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, group.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + predicates = append(predicates, invite.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, group.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + predicates = append(predicates, invite.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } if i.OwnerIDIsNil { - predicates = append(predicates, group.OwnerIDIsNil()) + predicates = append(predicates, invite.OwnerIDIsNil()) } if i.OwnerIDNotNil { - predicates = append(predicates, group.OwnerIDNotNil()) + predicates = append(predicates, invite.OwnerIDNotNil()) } if i.OwnerIDEqualFold != nil { - predicates = append(predicates, group.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + predicates = append(predicates, invite.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } if i.OwnerIDContainsFold != nil { - predicates = append(predicates, group.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + predicates = append(predicates, invite.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if i.Name != nil { - predicates = append(predicates, group.NameEQ(*i.Name)) + if i.Expires != nil { + predicates = append(predicates, invite.ExpiresEQ(*i.Expires)) } - if i.NameNEQ != nil { - predicates = append(predicates, group.NameNEQ(*i.NameNEQ)) + if i.ExpiresNEQ != nil { + predicates = append(predicates, invite.ExpiresNEQ(*i.ExpiresNEQ)) } - if len(i.NameIn) > 0 { - predicates = append(predicates, group.NameIn(i.NameIn...)) + if len(i.ExpiresIn) > 0 { + predicates = append(predicates, invite.ExpiresIn(i.ExpiresIn...)) } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, group.NameNotIn(i.NameNotIn...)) + if len(i.ExpiresNotIn) > 0 { + predicates = append(predicates, invite.ExpiresNotIn(i.ExpiresNotIn...)) } - if i.NameGT != nil { - predicates = append(predicates, group.NameGT(*i.NameGT)) + if i.ExpiresGT != nil { + predicates = append(predicates, invite.ExpiresGT(*i.ExpiresGT)) } - if i.NameGTE != nil { - predicates = append(predicates, group.NameGTE(*i.NameGTE)) + if i.ExpiresGTE != nil { + predicates = append(predicates, invite.ExpiresGTE(*i.ExpiresGTE)) } - if i.NameLT != nil { - predicates = append(predicates, group.NameLT(*i.NameLT)) + if i.ExpiresLT != nil { + predicates = append(predicates, invite.ExpiresLT(*i.ExpiresLT)) } - if i.NameLTE != nil { - predicates = append(predicates, group.NameLTE(*i.NameLTE)) + if i.ExpiresLTE != nil { + predicates = append(predicates, invite.ExpiresLTE(*i.ExpiresLTE)) } - if i.NameContains != nil { - predicates = append(predicates, group.NameContains(*i.NameContains)) + if i.ExpiresIsNil { + predicates = append(predicates, invite.ExpiresIsNil()) } - if i.NameHasPrefix != nil { - predicates = append(predicates, group.NameHasPrefix(*i.NameHasPrefix)) + if i.ExpiresNotNil { + predicates = append(predicates, invite.ExpiresNotNil()) } - if i.NameHasSuffix != nil { - predicates = append(predicates, group.NameHasSuffix(*i.NameHasSuffix)) + if i.Recipient != nil { + predicates = append(predicates, invite.RecipientEQ(*i.Recipient)) } - if i.NameEqualFold != nil { - predicates = append(predicates, group.NameEqualFold(*i.NameEqualFold)) + if i.RecipientNEQ != nil { + predicates = append(predicates, invite.RecipientNEQ(*i.RecipientNEQ)) } - if i.NameContainsFold != nil { - predicates = append(predicates, group.NameContainsFold(*i.NameContainsFold)) + if len(i.RecipientIn) > 0 { + predicates = append(predicates, invite.RecipientIn(i.RecipientIn...)) } - if i.DisplayName != nil { - predicates = append(predicates, group.DisplayNameEQ(*i.DisplayName)) + if len(i.RecipientNotIn) > 0 { + predicates = append(predicates, invite.RecipientNotIn(i.RecipientNotIn...)) } - if i.DisplayNameNEQ != nil { - predicates = append(predicates, group.DisplayNameNEQ(*i.DisplayNameNEQ)) + if i.RecipientGT != nil { + predicates = append(predicates, invite.RecipientGT(*i.RecipientGT)) } - if len(i.DisplayNameIn) > 0 { - predicates = append(predicates, group.DisplayNameIn(i.DisplayNameIn...)) + if i.RecipientGTE != nil { + predicates = append(predicates, invite.RecipientGTE(*i.RecipientGTE)) } - if len(i.DisplayNameNotIn) > 0 { - predicates = append(predicates, group.DisplayNameNotIn(i.DisplayNameNotIn...)) + if i.RecipientLT != nil { + predicates = append(predicates, invite.RecipientLT(*i.RecipientLT)) } - if i.DisplayNameGT != nil { - predicates = append(predicates, group.DisplayNameGT(*i.DisplayNameGT)) + if i.RecipientLTE != nil { + predicates = append(predicates, invite.RecipientLTE(*i.RecipientLTE)) } - if i.DisplayNameGTE != nil { - predicates = append(predicates, group.DisplayNameGTE(*i.DisplayNameGTE)) + if i.RecipientContains != nil { + predicates = append(predicates, invite.RecipientContains(*i.RecipientContains)) } - if i.DisplayNameLT != nil { - predicates = append(predicates, group.DisplayNameLT(*i.DisplayNameLT)) + if i.RecipientHasPrefix != nil { + predicates = append(predicates, invite.RecipientHasPrefix(*i.RecipientHasPrefix)) } - if i.DisplayNameLTE != nil { - predicates = append(predicates, group.DisplayNameLTE(*i.DisplayNameLTE)) + if i.RecipientHasSuffix != nil { + predicates = append(predicates, invite.RecipientHasSuffix(*i.RecipientHasSuffix)) } - if i.DisplayNameContains != nil { - predicates = append(predicates, group.DisplayNameContains(*i.DisplayNameContains)) + if i.RecipientEqualFold != nil { + predicates = append(predicates, invite.RecipientEqualFold(*i.RecipientEqualFold)) } - if i.DisplayNameHasPrefix != nil { - predicates = append(predicates, group.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + if i.RecipientContainsFold != nil { + predicates = append(predicates, invite.RecipientContainsFold(*i.RecipientContainsFold)) } - if i.DisplayNameHasSuffix != nil { - predicates = append(predicates, group.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + if i.Status != nil { + predicates = append(predicates, invite.StatusEQ(*i.Status)) } - if i.DisplayNameEqualFold != nil { - predicates = append(predicates, group.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + if i.StatusNEQ != nil { + predicates = append(predicates, invite.StatusNEQ(*i.StatusNEQ)) } - if i.DisplayNameContainsFold != nil { - predicates = append(predicates, group.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + if len(i.StatusIn) > 0 { + predicates = append(predicates, invite.StatusIn(i.StatusIn...)) + } + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, invite.StatusNotIn(i.StatusNotIn...)) + } + if i.Role != nil { + predicates = append(predicates, invite.RoleEQ(*i.Role)) + } + if i.RoleNEQ != nil { + predicates = append(predicates, invite.RoleNEQ(*i.RoleNEQ)) + } + if len(i.RoleIn) > 0 { + predicates = append(predicates, invite.RoleIn(i.RoleIn...)) + } + if len(i.RoleNotIn) > 0 { + predicates = append(predicates, invite.RoleNotIn(i.RoleNotIn...)) + } + if i.SendAttempts != nil { + predicates = append(predicates, invite.SendAttemptsEQ(*i.SendAttempts)) + } + if i.SendAttemptsNEQ != nil { + predicates = append(predicates, invite.SendAttemptsNEQ(*i.SendAttemptsNEQ)) + } + if len(i.SendAttemptsIn) > 0 { + predicates = append(predicates, invite.SendAttemptsIn(i.SendAttemptsIn...)) + } + if len(i.SendAttemptsNotIn) > 0 { + predicates = append(predicates, invite.SendAttemptsNotIn(i.SendAttemptsNotIn...)) + } + if i.SendAttemptsGT != nil { + predicates = append(predicates, invite.SendAttemptsGT(*i.SendAttemptsGT)) + } + if i.SendAttemptsGTE != nil { + predicates = append(predicates, invite.SendAttemptsGTE(*i.SendAttemptsGTE)) + } + if i.SendAttemptsLT != nil { + predicates = append(predicates, invite.SendAttemptsLT(*i.SendAttemptsLT)) + } + if i.SendAttemptsLTE != nil { + predicates = append(predicates, invite.SendAttemptsLTE(*i.SendAttemptsLTE)) + } + if i.RequestorID != nil { + predicates = append(predicates, invite.RequestorIDEQ(*i.RequestorID)) + } + if i.RequestorIDNEQ != nil { + predicates = append(predicates, invite.RequestorIDNEQ(*i.RequestorIDNEQ)) + } + if len(i.RequestorIDIn) > 0 { + predicates = append(predicates, invite.RequestorIDIn(i.RequestorIDIn...)) + } + if len(i.RequestorIDNotIn) > 0 { + predicates = append(predicates, invite.RequestorIDNotIn(i.RequestorIDNotIn...)) + } + if i.RequestorIDGT != nil { + predicates = append(predicates, invite.RequestorIDGT(*i.RequestorIDGT)) + } + if i.RequestorIDGTE != nil { + predicates = append(predicates, invite.RequestorIDGTE(*i.RequestorIDGTE)) + } + if i.RequestorIDLT != nil { + predicates = append(predicates, invite.RequestorIDLT(*i.RequestorIDLT)) + } + if i.RequestorIDLTE != nil { + predicates = append(predicates, invite.RequestorIDLTE(*i.RequestorIDLTE)) + } + if i.RequestorIDContains != nil { + predicates = append(predicates, invite.RequestorIDContains(*i.RequestorIDContains)) + } + if i.RequestorIDHasPrefix != nil { + predicates = append(predicates, invite.RequestorIDHasPrefix(*i.RequestorIDHasPrefix)) + } + if i.RequestorIDHasSuffix != nil { + predicates = append(predicates, invite.RequestorIDHasSuffix(*i.RequestorIDHasSuffix)) + } + if i.RequestorIDIsNil { + predicates = append(predicates, invite.RequestorIDIsNil()) + } + if i.RequestorIDNotNil { + predicates = append(predicates, invite.RequestorIDNotNil()) + } + if i.RequestorIDEqualFold != nil { + predicates = append(predicates, invite.RequestorIDEqualFold(*i.RequestorIDEqualFold)) + } + if i.RequestorIDContainsFold != nil { + predicates = append(predicates, invite.RequestorIDContainsFold(*i.RequestorIDContainsFold)) } if i.HasOwner != nil { - p := group.HasOwner() + p := invite.HasOwner() if !*i.HasOwner { - p = group.Not(p) + p = invite.Not(p) } predicates = append(predicates, p) } @@ -18443,48 +34149,12 @@ func (i *GroupWhereInput) P() (predicate.Group, error) { } with = append(with, p) } - predicates = append(predicates, group.HasOwnerWith(with...)) - } - if i.HasSetting != nil { - p := group.HasSetting() - if !*i.HasSetting { - p = group.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasSettingWith) > 0 { - with := make([]predicate.GroupSetting, 0, len(i.HasSettingWith)) - for _, w := range i.HasSettingWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasSettingWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, group.HasSettingWith(with...)) - } - if i.HasUsers != nil { - p := group.HasUsers() - if !*i.HasUsers { - p = group.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasUsersWith) > 0 { - with := make([]predicate.User, 0, len(i.HasUsersWith)) - for _, w := range i.HasUsersWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasUsersWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, group.HasUsersWith(with...)) + predicates = append(predicates, invite.HasOwnerWith(with...)) } if i.HasEvents != nil { - p := group.HasEvents() + p := invite.HasEvents() if !*i.HasEvents { - p = group.Not(p) + p = invite.Not(p) } predicates = append(predicates, p) } @@ -18497,78 +34167,24 @@ func (i *GroupWhereInput) P() (predicate.Group, error) { } with = append(with, p) } - predicates = append(predicates, group.HasEventsWith(with...)) - } - if i.HasIntegrations != nil { - p := group.HasIntegrations() - if !*i.HasIntegrations { - p = group.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasIntegrationsWith) > 0 { - with := make([]predicate.Integration, 0, len(i.HasIntegrationsWith)) - for _, w := range i.HasIntegrationsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasIntegrationsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, group.HasIntegrationsWith(with...)) - } - if i.HasFiles != nil { - p := group.HasFiles() - if !*i.HasFiles { - p = group.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasFilesWith) > 0 { - with := make([]predicate.File, 0, len(i.HasFilesWith)) - for _, w := range i.HasFilesWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasFilesWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, group.HasFilesWith(with...)) - } - if i.HasMembers != nil { - p := group.HasMembers() - if !*i.HasMembers { - p = group.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasMembersWith) > 0 { - with := make([]predicate.GroupMembership, 0, len(i.HasMembersWith)) - for _, w := range i.HasMembersWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasMembersWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, group.HasMembersWith(with...)) + predicates = append(predicates, invite.HasEventsWith(with...)) } switch len(predicates) { case 0: - return nil, ErrEmptyGroupWhereInput + return nil, ErrEmptyInviteWhereInput case 1: return predicates[0], nil default: - return group.And(predicates...), nil + return invite.And(predicates...), nil } } -// GroupHistoryWhereInput represents a where input for filtering GroupHistory queries. -type GroupHistoryWhereInput struct { - Predicates []predicate.GroupHistory `json:"-"` - Not *GroupHistoryWhereInput `json:"not,omitempty"` - Or []*GroupHistoryWhereInput `json:"or,omitempty"` - And []*GroupHistoryWhereInput `json:"and,omitempty"` +// NarrativeWhereInput represents a where input for filtering Narrative queries. +type NarrativeWhereInput struct { + Predicates []predicate.Narrative `json:"-"` + Not *NarrativeWhereInput `json:"not,omitempty"` + Or []*NarrativeWhereInput `json:"or,omitempty"` + And []*NarrativeWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -18582,39 +34198,6 @@ type GroupHistoryWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // "history_time" field predicates. - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` - RefGT *string `json:"refGT,omitempty"` - RefGTE *string `json:"refGTE,omitempty"` - RefLT *string `json:"refLT,omitempty"` - RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -18702,23 +34285,6 @@ type GroupHistoryWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` @@ -18734,35 +34300,70 @@ type GroupHistoryWhereInput struct { NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` - // "display_name" field predicates. - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGT *string `json:"displayNameGT,omitempty"` - DisplayNameGTE *string `json:"displayNameGTE,omitempty"` - DisplayNameLT *string `json:"displayNameLT,omitempty"` - DisplayNameLTE *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` + + // "satisfies" field predicates. + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNEQ *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGT *string `json:"satisfiesGT,omitempty"` + SatisfiesGTE *string `json:"satisfiesGTE,omitempty"` + SatisfiesLT *string `json:"satisfiesLT,omitempty"` + SatisfiesLTE *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` + + // "policy" edge predicates. + HasPolicy *bool `json:"hasPolicy,omitempty"` + HasPolicyWith []*InternalPolicyWhereInput `json:"hasPolicyWith,omitempty"` + + // "control" edge predicates. + HasControl *bool `json:"hasControl,omitempty"` + HasControlWith []*ControlWhereInput `json:"hasControlWith,omitempty"` + + // "procedure" edge predicates. + HasProcedure *bool `json:"hasProcedure,omitempty"` + HasProcedureWith []*ProcedureWhereInput `json:"hasProcedureWith,omitempty"` + + // "controlobjective" edge predicates. + HasControlobjective *bool `json:"hasControlobjective,omitempty"` + HasControlobjectiveWith []*ControlObjectiveWhereInput `json:"hasControlobjectiveWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *GroupHistoryWhereInput) AddPredicates(predicates ...predicate.GroupHistory) { +func (i *NarrativeWhereInput) AddPredicates(predicates ...predicate.Narrative) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the GroupHistoryWhereInput filter on the GroupHistoryQuery builder. -func (i *GroupHistoryWhereInput) Filter(q *GroupHistoryQuery) (*GroupHistoryQuery, error) { +// Filter applies the NarrativeWhereInput filter on the NarrativeQuery builder. +func (i *NarrativeWhereInput) Filter(q *NarrativeQuery) (*NarrativeQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyGroupHistoryWhereInput { + if err == ErrEmptyNarrativeWhereInput { return q, nil } return nil, err @@ -18770,19 +34371,19 @@ func (i *GroupHistoryWhereInput) Filter(q *GroupHistoryQuery) (*GroupHistoryQuer return q.Where(p), nil } -// ErrEmptyGroupHistoryWhereInput is returned in case the GroupHistoryWhereInput is empty. -var ErrEmptyGroupHistoryWhereInput = errors.New("generated: empty predicate GroupHistoryWhereInput") +// ErrEmptyNarrativeWhereInput is returned in case the NarrativeWhereInput is empty. +var ErrEmptyNarrativeWhereInput = errors.New("generated: empty predicate NarrativeWhereInput") -// P returns a predicate for filtering grouphistories. +// P returns a predicate for filtering narratives. // An error is returned if the input is empty or invalid. -func (i *GroupHistoryWhereInput) P() (predicate.GroupHistory, error) { - var predicates []predicate.GroupHistory +func (i *NarrativeWhereInput) P() (predicate.Narrative, error) { + var predicates []predicate.Narrative if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, grouphistory.Not(p)) + predicates = append(predicates, narrative.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -18792,7 +34393,7 @@ func (i *GroupHistoryWhereInput) P() (predicate.GroupHistory, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.GroupHistory, 0, n) + or := make([]predicate.Narrative, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -18800,7 +34401,7 @@ func (i *GroupHistoryWhereInput) P() (predicate.GroupHistory, error) { } or = append(or, p) } - predicates = append(predicates, grouphistory.Or(or...)) + predicates = append(predicates, narrative.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -18810,7 +34411,7 @@ func (i *GroupHistoryWhereInput) P() (predicate.GroupHistory, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.GroupHistory, 0, n) + and := make([]predicate.Narrative, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -18818,485 +34419,482 @@ func (i *GroupHistoryWhereInput) P() (predicate.GroupHistory, error) { } and = append(and, p) } - predicates = append(predicates, grouphistory.And(and...)) + predicates = append(predicates, narrative.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, grouphistory.IDEQ(*i.ID)) + predicates = append(predicates, narrative.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, grouphistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, narrative.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, grouphistory.IDIn(i.IDIn...)) + predicates = append(predicates, narrative.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, grouphistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, narrative.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, grouphistory.IDGT(*i.IDGT)) + predicates = append(predicates, narrative.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, grouphistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, narrative.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, grouphistory.IDLT(*i.IDLT)) + predicates = append(predicates, narrative.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, grouphistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, narrative.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, grouphistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, narrative.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, grouphistory.IDContainsFold(*i.IDContainsFold)) - } - if i.HistoryTime != nil { - predicates = append(predicates, grouphistory.HistoryTimeEQ(*i.HistoryTime)) - } - if i.HistoryTimeNEQ != nil { - predicates = append(predicates, grouphistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) - } - if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, grouphistory.HistoryTimeIn(i.HistoryTimeIn...)) - } - if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, grouphistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) - } - if i.HistoryTimeGT != nil { - predicates = append(predicates, grouphistory.HistoryTimeGT(*i.HistoryTimeGT)) - } - if i.HistoryTimeGTE != nil { - predicates = append(predicates, grouphistory.HistoryTimeGTE(*i.HistoryTimeGTE)) - } - if i.HistoryTimeLT != nil { - predicates = append(predicates, grouphistory.HistoryTimeLT(*i.HistoryTimeLT)) - } - if i.HistoryTimeLTE != nil { - predicates = append(predicates, grouphistory.HistoryTimeLTE(*i.HistoryTimeLTE)) - } - if i.Ref != nil { - predicates = append(predicates, grouphistory.RefEQ(*i.Ref)) - } - if i.RefNEQ != nil { - predicates = append(predicates, grouphistory.RefNEQ(*i.RefNEQ)) - } - if len(i.RefIn) > 0 { - predicates = append(predicates, grouphistory.RefIn(i.RefIn...)) - } - if len(i.RefNotIn) > 0 { - predicates = append(predicates, grouphistory.RefNotIn(i.RefNotIn...)) - } - if i.RefGT != nil { - predicates = append(predicates, grouphistory.RefGT(*i.RefGT)) - } - if i.RefGTE != nil { - predicates = append(predicates, grouphistory.RefGTE(*i.RefGTE)) - } - if i.RefLT != nil { - predicates = append(predicates, grouphistory.RefLT(*i.RefLT)) - } - if i.RefLTE != nil { - predicates = append(predicates, grouphistory.RefLTE(*i.RefLTE)) - } - if i.RefContains != nil { - predicates = append(predicates, grouphistory.RefContains(*i.RefContains)) - } - if i.RefHasPrefix != nil { - predicates = append(predicates, grouphistory.RefHasPrefix(*i.RefHasPrefix)) - } - if i.RefHasSuffix != nil { - predicates = append(predicates, grouphistory.RefHasSuffix(*i.RefHasSuffix)) - } - if i.RefIsNil { - predicates = append(predicates, grouphistory.RefIsNil()) - } - if i.RefNotNil { - predicates = append(predicates, grouphistory.RefNotNil()) - } - if i.RefEqualFold != nil { - predicates = append(predicates, grouphistory.RefEqualFold(*i.RefEqualFold)) - } - if i.RefContainsFold != nil { - predicates = append(predicates, grouphistory.RefContainsFold(*i.RefContainsFold)) - } - if i.Operation != nil { - predicates = append(predicates, grouphistory.OperationEQ(*i.Operation)) - } - if i.OperationNEQ != nil { - predicates = append(predicates, grouphistory.OperationNEQ(*i.OperationNEQ)) - } - if len(i.OperationIn) > 0 { - predicates = append(predicates, grouphistory.OperationIn(i.OperationIn...)) - } - if len(i.OperationNotIn) > 0 { - predicates = append(predicates, grouphistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, narrative.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, grouphistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, narrative.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, grouphistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, narrative.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, grouphistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, narrative.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, grouphistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, narrative.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, grouphistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, narrative.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, grouphistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, narrative.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, grouphistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, narrative.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, grouphistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, narrative.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, grouphistory.CreatedAtIsNil()) + predicates = append(predicates, narrative.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, grouphistory.CreatedAtNotNil()) + predicates = append(predicates, narrative.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, grouphistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, narrative.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, grouphistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, narrative.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, grouphistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, narrative.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, grouphistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, narrative.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, grouphistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, narrative.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, grouphistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, narrative.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, grouphistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, narrative.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, grouphistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, narrative.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, grouphistory.UpdatedAtIsNil()) + predicates = append(predicates, narrative.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, grouphistory.UpdatedAtNotNil()) + predicates = append(predicates, narrative.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, grouphistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, narrative.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, grouphistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, narrative.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, grouphistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, narrative.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, grouphistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, narrative.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, grouphistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, narrative.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, grouphistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, narrative.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, grouphistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, narrative.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, grouphistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, narrative.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, grouphistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, narrative.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, grouphistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, narrative.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, grouphistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, narrative.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, grouphistory.CreatedByIsNil()) + predicates = append(predicates, narrative.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, grouphistory.CreatedByNotNil()) + predicates = append(predicates, narrative.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, grouphistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, narrative.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, grouphistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, narrative.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, grouphistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, narrative.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, grouphistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, narrative.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, grouphistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, narrative.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, grouphistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, narrative.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, grouphistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, narrative.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, grouphistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, narrative.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, grouphistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, narrative.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, grouphistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, narrative.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, grouphistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, narrative.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, grouphistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, narrative.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, grouphistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, narrative.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, grouphistory.UpdatedByIsNil()) + predicates = append(predicates, narrative.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, grouphistory.UpdatedByNotNil()) + predicates = append(predicates, narrative.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, grouphistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, narrative.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, grouphistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, narrative.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, grouphistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, narrative.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, grouphistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, narrative.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, grouphistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, narrative.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, grouphistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, narrative.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, grouphistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, narrative.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, grouphistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, narrative.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, grouphistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, narrative.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, grouphistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, narrative.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, grouphistory.DeletedAtIsNil()) + predicates = append(predicates, narrative.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, grouphistory.DeletedAtNotNil()) + predicates = append(predicates, narrative.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, grouphistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, narrative.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, grouphistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, narrative.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, grouphistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, narrative.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, grouphistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, narrative.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, grouphistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, narrative.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, grouphistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, narrative.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, grouphistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, narrative.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, grouphistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, narrative.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, grouphistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, narrative.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, grouphistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, narrative.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, grouphistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, narrative.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, grouphistory.DeletedByIsNil()) + predicates = append(predicates, narrative.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, grouphistory.DeletedByNotNil()) + predicates = append(predicates, narrative.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, grouphistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, narrative.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, grouphistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, narrative.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.OwnerID != nil { - predicates = append(predicates, grouphistory.OwnerIDEQ(*i.OwnerID)) + if i.Name != nil { + predicates = append(predicates, narrative.NameEQ(*i.Name)) } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, grouphistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + if i.NameNEQ != nil { + predicates = append(predicates, narrative.NameNEQ(*i.NameNEQ)) } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, grouphistory.OwnerIDIn(i.OwnerIDIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, narrative.NameIn(i.NameIn...)) } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, grouphistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, narrative.NameNotIn(i.NameNotIn...)) } - if i.OwnerIDGT != nil { - predicates = append(predicates, grouphistory.OwnerIDGT(*i.OwnerIDGT)) + if i.NameGT != nil { + predicates = append(predicates, narrative.NameGT(*i.NameGT)) } - if i.OwnerIDGTE != nil { - predicates = append(predicates, grouphistory.OwnerIDGTE(*i.OwnerIDGTE)) + if i.NameGTE != nil { + predicates = append(predicates, narrative.NameGTE(*i.NameGTE)) } - if i.OwnerIDLT != nil { - predicates = append(predicates, grouphistory.OwnerIDLT(*i.OwnerIDLT)) + if i.NameLT != nil { + predicates = append(predicates, narrative.NameLT(*i.NameLT)) } - if i.OwnerIDLTE != nil { - predicates = append(predicates, grouphistory.OwnerIDLTE(*i.OwnerIDLTE)) + if i.NameLTE != nil { + predicates = append(predicates, narrative.NameLTE(*i.NameLTE)) } - if i.OwnerIDContains != nil { - predicates = append(predicates, grouphistory.OwnerIDContains(*i.OwnerIDContains)) + if i.NameContains != nil { + predicates = append(predicates, narrative.NameContains(*i.NameContains)) } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, grouphistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + if i.NameHasPrefix != nil { + predicates = append(predicates, narrative.NameHasPrefix(*i.NameHasPrefix)) } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, grouphistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + if i.NameHasSuffix != nil { + predicates = append(predicates, narrative.NameHasSuffix(*i.NameHasSuffix)) } - if i.OwnerIDIsNil { - predicates = append(predicates, grouphistory.OwnerIDIsNil()) + if i.NameEqualFold != nil { + predicates = append(predicates, narrative.NameEqualFold(*i.NameEqualFold)) } - if i.OwnerIDNotNil { - predicates = append(predicates, grouphistory.OwnerIDNotNil()) + if i.NameContainsFold != nil { + predicates = append(predicates, narrative.NameContainsFold(*i.NameContainsFold)) } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, grouphistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + if i.Description != nil { + predicates = append(predicates, narrative.DescriptionEQ(*i.Description)) } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, grouphistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, narrative.DescriptionNEQ(*i.DescriptionNEQ)) } - if i.Name != nil { - predicates = append(predicates, grouphistory.NameEQ(*i.Name)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, narrative.DescriptionIn(i.DescriptionIn...)) } - if i.NameNEQ != nil { - predicates = append(predicates, grouphistory.NameNEQ(*i.NameNEQ)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, narrative.DescriptionNotIn(i.DescriptionNotIn...)) } - if len(i.NameIn) > 0 { - predicates = append(predicates, grouphistory.NameIn(i.NameIn...)) + if i.DescriptionGT != nil { + predicates = append(predicates, narrative.DescriptionGT(*i.DescriptionGT)) } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, grouphistory.NameNotIn(i.NameNotIn...)) + if i.DescriptionGTE != nil { + predicates = append(predicates, narrative.DescriptionGTE(*i.DescriptionGTE)) } - if i.NameGT != nil { - predicates = append(predicates, grouphistory.NameGT(*i.NameGT)) + if i.DescriptionLT != nil { + predicates = append(predicates, narrative.DescriptionLT(*i.DescriptionLT)) } - if i.NameGTE != nil { - predicates = append(predicates, grouphistory.NameGTE(*i.NameGTE)) + if i.DescriptionLTE != nil { + predicates = append(predicates, narrative.DescriptionLTE(*i.DescriptionLTE)) } - if i.NameLT != nil { - predicates = append(predicates, grouphistory.NameLT(*i.NameLT)) + if i.DescriptionContains != nil { + predicates = append(predicates, narrative.DescriptionContains(*i.DescriptionContains)) } - if i.NameLTE != nil { - predicates = append(predicates, grouphistory.NameLTE(*i.NameLTE)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, narrative.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.NameContains != nil { - predicates = append(predicates, grouphistory.NameContains(*i.NameContains)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, narrative.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.NameHasPrefix != nil { - predicates = append(predicates, grouphistory.NameHasPrefix(*i.NameHasPrefix)) + if i.DescriptionIsNil { + predicates = append(predicates, narrative.DescriptionIsNil()) } - if i.NameHasSuffix != nil { - predicates = append(predicates, grouphistory.NameHasSuffix(*i.NameHasSuffix)) + if i.DescriptionNotNil { + predicates = append(predicates, narrative.DescriptionNotNil()) } - if i.NameEqualFold != nil { - predicates = append(predicates, grouphistory.NameEqualFold(*i.NameEqualFold)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, narrative.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.NameContainsFold != nil { - predicates = append(predicates, grouphistory.NameContainsFold(*i.NameContainsFold)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, narrative.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.DisplayName != nil { - predicates = append(predicates, grouphistory.DisplayNameEQ(*i.DisplayName)) + if i.Satisfies != nil { + predicates = append(predicates, narrative.SatisfiesEQ(*i.Satisfies)) } - if i.DisplayNameNEQ != nil { - predicates = append(predicates, grouphistory.DisplayNameNEQ(*i.DisplayNameNEQ)) + if i.SatisfiesNEQ != nil { + predicates = append(predicates, narrative.SatisfiesNEQ(*i.SatisfiesNEQ)) } - if len(i.DisplayNameIn) > 0 { - predicates = append(predicates, grouphistory.DisplayNameIn(i.DisplayNameIn...)) + if len(i.SatisfiesIn) > 0 { + predicates = append(predicates, narrative.SatisfiesIn(i.SatisfiesIn...)) } - if len(i.DisplayNameNotIn) > 0 { - predicates = append(predicates, grouphistory.DisplayNameNotIn(i.DisplayNameNotIn...)) + if len(i.SatisfiesNotIn) > 0 { + predicates = append(predicates, narrative.SatisfiesNotIn(i.SatisfiesNotIn...)) } - if i.DisplayNameGT != nil { - predicates = append(predicates, grouphistory.DisplayNameGT(*i.DisplayNameGT)) + if i.SatisfiesGT != nil { + predicates = append(predicates, narrative.SatisfiesGT(*i.SatisfiesGT)) } - if i.DisplayNameGTE != nil { - predicates = append(predicates, grouphistory.DisplayNameGTE(*i.DisplayNameGTE)) + if i.SatisfiesGTE != nil { + predicates = append(predicates, narrative.SatisfiesGTE(*i.SatisfiesGTE)) } - if i.DisplayNameLT != nil { - predicates = append(predicates, grouphistory.DisplayNameLT(*i.DisplayNameLT)) + if i.SatisfiesLT != nil { + predicates = append(predicates, narrative.SatisfiesLT(*i.SatisfiesLT)) } - if i.DisplayNameLTE != nil { - predicates = append(predicates, grouphistory.DisplayNameLTE(*i.DisplayNameLTE)) + if i.SatisfiesLTE != nil { + predicates = append(predicates, narrative.SatisfiesLTE(*i.SatisfiesLTE)) } - if i.DisplayNameContains != nil { - predicates = append(predicates, grouphistory.DisplayNameContains(*i.DisplayNameContains)) + if i.SatisfiesContains != nil { + predicates = append(predicates, narrative.SatisfiesContains(*i.SatisfiesContains)) } - if i.DisplayNameHasPrefix != nil { - predicates = append(predicates, grouphistory.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + if i.SatisfiesHasPrefix != nil { + predicates = append(predicates, narrative.SatisfiesHasPrefix(*i.SatisfiesHasPrefix)) } - if i.DisplayNameHasSuffix != nil { - predicates = append(predicates, grouphistory.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + if i.SatisfiesHasSuffix != nil { + predicates = append(predicates, narrative.SatisfiesHasSuffix(*i.SatisfiesHasSuffix)) } - if i.DisplayNameEqualFold != nil { - predicates = append(predicates, grouphistory.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + if i.SatisfiesIsNil { + predicates = append(predicates, narrative.SatisfiesIsNil()) } - if i.DisplayNameContainsFold != nil { - predicates = append(predicates, grouphistory.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + if i.SatisfiesNotNil { + predicates = append(predicates, narrative.SatisfiesNotNil()) + } + if i.SatisfiesEqualFold != nil { + predicates = append(predicates, narrative.SatisfiesEqualFold(*i.SatisfiesEqualFold)) + } + if i.SatisfiesContainsFold != nil { + predicates = append(predicates, narrative.SatisfiesContainsFold(*i.SatisfiesContainsFold)) } + if i.HasPolicy != nil { + p := narrative.HasPolicy() + if !*i.HasPolicy { + p = narrative.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasPolicyWith) > 0 { + with := make([]predicate.InternalPolicy, 0, len(i.HasPolicyWith)) + for _, w := range i.HasPolicyWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasPolicyWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, narrative.HasPolicyWith(with...)) + } + if i.HasControl != nil { + p := narrative.HasControl() + if !*i.HasControl { + p = narrative.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasControlWith) > 0 { + with := make([]predicate.Control, 0, len(i.HasControlWith)) + for _, w := range i.HasControlWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasControlWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, narrative.HasControlWith(with...)) + } + if i.HasProcedure != nil { + p := narrative.HasProcedure() + if !*i.HasProcedure { + p = narrative.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasProcedureWith) > 0 { + with := make([]predicate.Procedure, 0, len(i.HasProcedureWith)) + for _, w := range i.HasProcedureWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasProcedureWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, narrative.HasProcedureWith(with...)) + } + if i.HasControlobjective != nil { + p := narrative.HasControlobjective() + if !*i.HasControlobjective { + p = narrative.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasControlobjectiveWith) > 0 { + with := make([]predicate.ControlObjective, 0, len(i.HasControlobjectiveWith)) + for _, w := range i.HasControlobjectiveWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasControlobjectiveWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, narrative.HasControlobjectiveWith(with...)) + } switch len(predicates) { case 0: - return nil, ErrEmptyGroupHistoryWhereInput + return nil, ErrEmptyNarrativeWhereInput case 1: return predicates[0], nil default: - return grouphistory.And(predicates...), nil + return narrative.And(predicates...), nil } } -// GroupMembershipWhereInput represents a where input for filtering GroupMembership queries. -type GroupMembershipWhereInput struct { - Predicates []predicate.GroupMembership `json:"-"` - Not *GroupMembershipWhereInput `json:"not,omitempty"` - Or []*GroupMembershipWhereInput `json:"or,omitempty"` - And []*GroupMembershipWhereInput `json:"and,omitempty"` +// NarrativeHistoryWhereInput represents a where input for filtering NarrativeHistory queries. +type NarrativeHistoryWhereInput struct { + Predicates []predicate.NarrativeHistory `json:"-"` + Not *NarrativeHistoryWhereInput `json:"not,omitempty"` + Or []*NarrativeHistoryWhereInput `json:"or,omitempty"` + And []*NarrativeHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -19310,6 +34908,39 @@ type GroupMembershipWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -19397,68 +35028,69 @@ type GroupMembershipWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "role" field predicates. - Role *enums.Role `json:"role,omitempty"` - RoleNEQ *enums.Role `json:"roleNEQ,omitempty"` - RoleIn []enums.Role `json:"roleIn,omitempty"` - RoleNotIn []enums.Role `json:"roleNotIn,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"` - GroupIDGT *string `json:"groupIDGT,omitempty"` - GroupIDGTE *string `json:"groupIDGTE,omitempty"` - GroupIDLT *string `json:"groupIDLT,omitempty"` - GroupIDLTE *string `json:"groupIDLTE,omitempty"` - GroupIDContains *string `json:"groupIDContains,omitempty"` - GroupIDHasPrefix *string `json:"groupIDHasPrefix,omitempty"` - GroupIDHasSuffix *string `json:"groupIDHasSuffix,omitempty"` - GroupIDEqualFold *string `json:"groupIDEqualFold,omitempty"` - GroupIDContainsFold *string `json:"groupIDContainsFold,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"` - UserIDGT *string `json:"userIDGT,omitempty"` - UserIDGTE *string `json:"userIDGTE,omitempty"` - UserIDLT *string `json:"userIDLT,omitempty"` - UserIDLTE *string `json:"userIDLTE,omitempty"` - UserIDContains *string `json:"userIDContains,omitempty"` - UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` - UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` - UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` - UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` - - // "group" edge predicates. - HasGroup *bool `json:"hasGroup,omitempty"` - HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "user" edge predicates. - HasUser *bool `json:"hasUser,omitempty"` - HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` - // "events" edge predicates. - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // "satisfies" field predicates. + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNEQ *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGT *string `json:"satisfiesGT,omitempty"` + SatisfiesGTE *string `json:"satisfiesGTE,omitempty"` + SatisfiesLT *string `json:"satisfiesLT,omitempty"` + SatisfiesLTE *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *GroupMembershipWhereInput) AddPredicates(predicates ...predicate.GroupMembership) { +func (i *NarrativeHistoryWhereInput) AddPredicates(predicates ...predicate.NarrativeHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the GroupMembershipWhereInput filter on the GroupMembershipQuery builder. -func (i *GroupMembershipWhereInput) Filter(q *GroupMembershipQuery) (*GroupMembershipQuery, error) { +// Filter applies the NarrativeHistoryWhereInput filter on the NarrativeHistoryQuery builder. +func (i *NarrativeHistoryWhereInput) Filter(q *NarrativeHistoryQuery) (*NarrativeHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyGroupMembershipWhereInput { + if err == ErrEmptyNarrativeHistoryWhereInput { return q, nil } return nil, err @@ -19466,19 +35098,19 @@ func (i *GroupMembershipWhereInput) Filter(q *GroupMembershipQuery) (*GroupMembe return q.Where(p), nil } -// ErrEmptyGroupMembershipWhereInput is returned in case the GroupMembershipWhereInput is empty. -var ErrEmptyGroupMembershipWhereInput = errors.New("generated: empty predicate GroupMembershipWhereInput") +// ErrEmptyNarrativeHistoryWhereInput is returned in case the NarrativeHistoryWhereInput is empty. +var ErrEmptyNarrativeHistoryWhereInput = errors.New("generated: empty predicate NarrativeHistoryWhereInput") -// P returns a predicate for filtering groupmemberships. +// P returns a predicate for filtering narrativehistories. // An error is returned if the input is empty or invalid. -func (i *GroupMembershipWhereInput) P() (predicate.GroupMembership, error) { - var predicates []predicate.GroupMembership +func (i *NarrativeHistoryWhereInput) P() (predicate.NarrativeHistory, error) { + var predicates []predicate.NarrativeHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, groupmembership.Not(p)) + predicates = append(predicates, narrativehistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -19488,7 +35120,7 @@ func (i *GroupMembershipWhereInput) P() (predicate.GroupMembership, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.GroupMembership, 0, n) + or := make([]predicate.NarrativeHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -19496,443 +35128,509 @@ func (i *GroupMembershipWhereInput) P() (predicate.GroupMembership, error) { } or = append(or, p) } - predicates = append(predicates, groupmembership.Or(or...)) + predicates = append(predicates, narrativehistory.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.NarrativeHistory, 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, narrativehistory.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, narrativehistory.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, narrativehistory.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, narrativehistory.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, narrativehistory.IDNotIn(i.IDNotIn...)) + } + if i.IDGT != nil { + predicates = append(predicates, narrativehistory.IDGT(*i.IDGT)) + } + if i.IDGTE != nil { + predicates = append(predicates, narrativehistory.IDGTE(*i.IDGTE)) + } + if i.IDLT != nil { + predicates = append(predicates, narrativehistory.IDLT(*i.IDLT)) + } + if i.IDLTE != nil { + predicates = append(predicates, narrativehistory.IDLTE(*i.IDLTE)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, narrativehistory.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, narrativehistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, narrativehistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, narrativehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, narrativehistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, narrativehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, narrativehistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, narrativehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, narrativehistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, narrativehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, narrativehistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, narrativehistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, narrativehistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, narrativehistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, narrativehistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, narrativehistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, narrativehistory.RefLT(*i.RefLT)) } - 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.GroupMembership, 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, groupmembership.And(and...)) + if i.RefLTE != nil { + predicates = append(predicates, narrativehistory.RefLTE(*i.RefLTE)) } - predicates = append(predicates, i.Predicates...) - if i.ID != nil { - predicates = append(predicates, groupmembership.IDEQ(*i.ID)) + if i.RefContains != nil { + predicates = append(predicates, narrativehistory.RefContains(*i.RefContains)) } - if i.IDNEQ != nil { - predicates = append(predicates, groupmembership.IDNEQ(*i.IDNEQ)) + if i.RefHasPrefix != nil { + predicates = append(predicates, narrativehistory.RefHasPrefix(*i.RefHasPrefix)) } - if len(i.IDIn) > 0 { - predicates = append(predicates, groupmembership.IDIn(i.IDIn...)) + if i.RefHasSuffix != nil { + predicates = append(predicates, narrativehistory.RefHasSuffix(*i.RefHasSuffix)) } - if len(i.IDNotIn) > 0 { - predicates = append(predicates, groupmembership.IDNotIn(i.IDNotIn...)) + if i.RefIsNil { + predicates = append(predicates, narrativehistory.RefIsNil()) } - if i.IDGT != nil { - predicates = append(predicates, groupmembership.IDGT(*i.IDGT)) + if i.RefNotNil { + predicates = append(predicates, narrativehistory.RefNotNil()) } - if i.IDGTE != nil { - predicates = append(predicates, groupmembership.IDGTE(*i.IDGTE)) + if i.RefEqualFold != nil { + predicates = append(predicates, narrativehistory.RefEqualFold(*i.RefEqualFold)) } - if i.IDLT != nil { - predicates = append(predicates, groupmembership.IDLT(*i.IDLT)) + if i.RefContainsFold != nil { + predicates = append(predicates, narrativehistory.RefContainsFold(*i.RefContainsFold)) } - if i.IDLTE != nil { - predicates = append(predicates, groupmembership.IDLTE(*i.IDLTE)) + if i.Operation != nil { + predicates = append(predicates, narrativehistory.OperationEQ(*i.Operation)) } - if i.IDEqualFold != nil { - predicates = append(predicates, groupmembership.IDEqualFold(*i.IDEqualFold)) + if i.OperationNEQ != nil { + predicates = append(predicates, narrativehistory.OperationNEQ(*i.OperationNEQ)) } - if i.IDContainsFold != nil { - predicates = append(predicates, groupmembership.IDContainsFold(*i.IDContainsFold)) + if len(i.OperationIn) > 0 { + predicates = append(predicates, narrativehistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, narrativehistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, groupmembership.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, narrativehistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, groupmembership.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, narrativehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, groupmembership.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, narrativehistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, groupmembership.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, narrativehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, groupmembership.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, narrativehistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, groupmembership.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, narrativehistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, groupmembership.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, narrativehistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, groupmembership.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, narrativehistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, groupmembership.CreatedAtIsNil()) + predicates = append(predicates, narrativehistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, groupmembership.CreatedAtNotNil()) + predicates = append(predicates, narrativehistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, groupmembership.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, narrativehistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, groupmembership.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, narrativehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, groupmembership.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, narrativehistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, groupmembership.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, narrativehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, groupmembership.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, narrativehistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, groupmembership.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, narrativehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, groupmembership.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, narrativehistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, groupmembership.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, narrativehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, groupmembership.UpdatedAtIsNil()) + predicates = append(predicates, narrativehistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, groupmembership.UpdatedAtNotNil()) + predicates = append(predicates, narrativehistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, groupmembership.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, narrativehistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, groupmembership.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, narrativehistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, groupmembership.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, narrativehistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, groupmembership.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, narrativehistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, groupmembership.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, narrativehistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, groupmembership.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, narrativehistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, groupmembership.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, narrativehistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, groupmembership.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, narrativehistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, groupmembership.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, narrativehistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, groupmembership.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, narrativehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, groupmembership.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, narrativehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, groupmembership.CreatedByIsNil()) + predicates = append(predicates, narrativehistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, groupmembership.CreatedByNotNil()) + predicates = append(predicates, narrativehistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, groupmembership.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, narrativehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, groupmembership.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, narrativehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, groupmembership.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, narrativehistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, groupmembership.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, narrativehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, groupmembership.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, narrativehistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, groupmembership.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, narrativehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, groupmembership.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, narrativehistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, groupmembership.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, narrativehistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, groupmembership.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, narrativehistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, groupmembership.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, narrativehistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, groupmembership.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, narrativehistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, groupmembership.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, narrativehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, groupmembership.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, narrativehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, groupmembership.UpdatedByIsNil()) + predicates = append(predicates, narrativehistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, groupmembership.UpdatedByNotNil()) + predicates = append(predicates, narrativehistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, groupmembership.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, narrativehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, groupmembership.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, narrativehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, groupmembership.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, narrativehistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, groupmembership.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, narrativehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, groupmembership.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, narrativehistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, groupmembership.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, narrativehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, groupmembership.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, narrativehistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, groupmembership.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, narrativehistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, groupmembership.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, narrativehistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, groupmembership.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, narrativehistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, groupmembership.DeletedAtIsNil()) + predicates = append(predicates, narrativehistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, groupmembership.DeletedAtNotNil()) + predicates = append(predicates, narrativehistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, groupmembership.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, narrativehistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, groupmembership.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, narrativehistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, groupmembership.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, narrativehistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, groupmembership.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, narrativehistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, groupmembership.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, narrativehistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, groupmembership.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, narrativehistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, groupmembership.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, narrativehistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, groupmembership.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, narrativehistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, groupmembership.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, narrativehistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, groupmembership.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, narrativehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, groupmembership.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, narrativehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, groupmembership.DeletedByIsNil()) + predicates = append(predicates, narrativehistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, groupmembership.DeletedByNotNil()) + predicates = append(predicates, narrativehistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, groupmembership.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, narrativehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, groupmembership.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, narrativehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.Role != nil { - predicates = append(predicates, groupmembership.RoleEQ(*i.Role)) + if i.Name != nil { + predicates = append(predicates, narrativehistory.NameEQ(*i.Name)) } - if i.RoleNEQ != nil { - predicates = append(predicates, groupmembership.RoleNEQ(*i.RoleNEQ)) + if i.NameNEQ != nil { + predicates = append(predicates, narrativehistory.NameNEQ(*i.NameNEQ)) } - if len(i.RoleIn) > 0 { - predicates = append(predicates, groupmembership.RoleIn(i.RoleIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, narrativehistory.NameIn(i.NameIn...)) } - if len(i.RoleNotIn) > 0 { - predicates = append(predicates, groupmembership.RoleNotIn(i.RoleNotIn...)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, narrativehistory.NameNotIn(i.NameNotIn...)) } - if i.GroupID != nil { - predicates = append(predicates, groupmembership.GroupIDEQ(*i.GroupID)) + if i.NameGT != nil { + predicates = append(predicates, narrativehistory.NameGT(*i.NameGT)) } - if i.GroupIDNEQ != nil { - predicates = append(predicates, groupmembership.GroupIDNEQ(*i.GroupIDNEQ)) + if i.NameGTE != nil { + predicates = append(predicates, narrativehistory.NameGTE(*i.NameGTE)) } - if len(i.GroupIDIn) > 0 { - predicates = append(predicates, groupmembership.GroupIDIn(i.GroupIDIn...)) + if i.NameLT != nil { + predicates = append(predicates, narrativehistory.NameLT(*i.NameLT)) } - if len(i.GroupIDNotIn) > 0 { - predicates = append(predicates, groupmembership.GroupIDNotIn(i.GroupIDNotIn...)) + if i.NameLTE != nil { + predicates = append(predicates, narrativehistory.NameLTE(*i.NameLTE)) } - if i.GroupIDGT != nil { - predicates = append(predicates, groupmembership.GroupIDGT(*i.GroupIDGT)) + if i.NameContains != nil { + predicates = append(predicates, narrativehistory.NameContains(*i.NameContains)) } - if i.GroupIDGTE != nil { - predicates = append(predicates, groupmembership.GroupIDGTE(*i.GroupIDGTE)) + if i.NameHasPrefix != nil { + predicates = append(predicates, narrativehistory.NameHasPrefix(*i.NameHasPrefix)) } - if i.GroupIDLT != nil { - predicates = append(predicates, groupmembership.GroupIDLT(*i.GroupIDLT)) + if i.NameHasSuffix != nil { + predicates = append(predicates, narrativehistory.NameHasSuffix(*i.NameHasSuffix)) } - if i.GroupIDLTE != nil { - predicates = append(predicates, groupmembership.GroupIDLTE(*i.GroupIDLTE)) + if i.NameEqualFold != nil { + predicates = append(predicates, narrativehistory.NameEqualFold(*i.NameEqualFold)) } - if i.GroupIDContains != nil { - predicates = append(predicates, groupmembership.GroupIDContains(*i.GroupIDContains)) + if i.NameContainsFold != nil { + predicates = append(predicates, narrativehistory.NameContainsFold(*i.NameContainsFold)) } - if i.GroupIDHasPrefix != nil { - predicates = append(predicates, groupmembership.GroupIDHasPrefix(*i.GroupIDHasPrefix)) + if i.Description != nil { + predicates = append(predicates, narrativehistory.DescriptionEQ(*i.Description)) } - if i.GroupIDHasSuffix != nil { - predicates = append(predicates, groupmembership.GroupIDHasSuffix(*i.GroupIDHasSuffix)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, narrativehistory.DescriptionNEQ(*i.DescriptionNEQ)) } - if i.GroupIDEqualFold != nil { - predicates = append(predicates, groupmembership.GroupIDEqualFold(*i.GroupIDEqualFold)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, narrativehistory.DescriptionIn(i.DescriptionIn...)) } - if i.GroupIDContainsFold != nil { - predicates = append(predicates, groupmembership.GroupIDContainsFold(*i.GroupIDContainsFold)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, narrativehistory.DescriptionNotIn(i.DescriptionNotIn...)) } - if i.UserID != nil { - predicates = append(predicates, groupmembership.UserIDEQ(*i.UserID)) + if i.DescriptionGT != nil { + predicates = append(predicates, narrativehistory.DescriptionGT(*i.DescriptionGT)) } - if i.UserIDNEQ != nil { - predicates = append(predicates, groupmembership.UserIDNEQ(*i.UserIDNEQ)) + if i.DescriptionGTE != nil { + predicates = append(predicates, narrativehistory.DescriptionGTE(*i.DescriptionGTE)) } - if len(i.UserIDIn) > 0 { - predicates = append(predicates, groupmembership.UserIDIn(i.UserIDIn...)) + if i.DescriptionLT != nil { + predicates = append(predicates, narrativehistory.DescriptionLT(*i.DescriptionLT)) } - if len(i.UserIDNotIn) > 0 { - predicates = append(predicates, groupmembership.UserIDNotIn(i.UserIDNotIn...)) + if i.DescriptionLTE != nil { + predicates = append(predicates, narrativehistory.DescriptionLTE(*i.DescriptionLTE)) } - if i.UserIDGT != nil { - predicates = append(predicates, groupmembership.UserIDGT(*i.UserIDGT)) + if i.DescriptionContains != nil { + predicates = append(predicates, narrativehistory.DescriptionContains(*i.DescriptionContains)) } - if i.UserIDGTE != nil { - predicates = append(predicates, groupmembership.UserIDGTE(*i.UserIDGTE)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, narrativehistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.UserIDLT != nil { - predicates = append(predicates, groupmembership.UserIDLT(*i.UserIDLT)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, narrativehistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.UserIDLTE != nil { - predicates = append(predicates, groupmembership.UserIDLTE(*i.UserIDLTE)) + if i.DescriptionIsNil { + predicates = append(predicates, narrativehistory.DescriptionIsNil()) } - if i.UserIDContains != nil { - predicates = append(predicates, groupmembership.UserIDContains(*i.UserIDContains)) + if i.DescriptionNotNil { + predicates = append(predicates, narrativehistory.DescriptionNotNil()) } - if i.UserIDHasPrefix != nil { - predicates = append(predicates, groupmembership.UserIDHasPrefix(*i.UserIDHasPrefix)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, narrativehistory.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.UserIDHasSuffix != nil { - predicates = append(predicates, groupmembership.UserIDHasSuffix(*i.UserIDHasSuffix)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, narrativehistory.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.UserIDEqualFold != nil { - predicates = append(predicates, groupmembership.UserIDEqualFold(*i.UserIDEqualFold)) + if i.Satisfies != nil { + predicates = append(predicates, narrativehistory.SatisfiesEQ(*i.Satisfies)) } - if i.UserIDContainsFold != nil { - predicates = append(predicates, groupmembership.UserIDContainsFold(*i.UserIDContainsFold)) + if i.SatisfiesNEQ != nil { + predicates = append(predicates, narrativehistory.SatisfiesNEQ(*i.SatisfiesNEQ)) } - - if i.HasGroup != nil { - p := groupmembership.HasGroup() - if !*i.HasGroup { - p = groupmembership.Not(p) - } - predicates = append(predicates, p) + if len(i.SatisfiesIn) > 0 { + predicates = append(predicates, narrativehistory.SatisfiesIn(i.SatisfiesIn...)) } - if len(i.HasGroupWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasGroupWith)) - 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, groupmembership.HasGroupWith(with...)) + if len(i.SatisfiesNotIn) > 0 { + predicates = append(predicates, narrativehistory.SatisfiesNotIn(i.SatisfiesNotIn...)) } - if i.HasUser != nil { - p := groupmembership.HasUser() - if !*i.HasUser { - p = groupmembership.Not(p) - } - predicates = append(predicates, p) + if i.SatisfiesGT != nil { + predicates = append(predicates, narrativehistory.SatisfiesGT(*i.SatisfiesGT)) } - if len(i.HasUserWith) > 0 { - with := make([]predicate.User, 0, len(i.HasUserWith)) - 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, groupmembership.HasUserWith(with...)) + if i.SatisfiesGTE != nil { + predicates = append(predicates, narrativehistory.SatisfiesGTE(*i.SatisfiesGTE)) } - if i.HasEvents != nil { - p := groupmembership.HasEvents() - if !*i.HasEvents { - p = groupmembership.Not(p) - } - predicates = append(predicates, p) + if i.SatisfiesLT != nil { + predicates = append(predicates, narrativehistory.SatisfiesLT(*i.SatisfiesLT)) } - if len(i.HasEventsWith) > 0 { - with := make([]predicate.Event, 0, len(i.HasEventsWith)) - for _, w := range i.HasEventsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, groupmembership.HasEventsWith(with...)) + if i.SatisfiesLTE != nil { + predicates = append(predicates, narrativehistory.SatisfiesLTE(*i.SatisfiesLTE)) + } + if i.SatisfiesContains != nil { + predicates = append(predicates, narrativehistory.SatisfiesContains(*i.SatisfiesContains)) } + if i.SatisfiesHasPrefix != nil { + predicates = append(predicates, narrativehistory.SatisfiesHasPrefix(*i.SatisfiesHasPrefix)) + } + if i.SatisfiesHasSuffix != nil { + predicates = append(predicates, narrativehistory.SatisfiesHasSuffix(*i.SatisfiesHasSuffix)) + } + if i.SatisfiesIsNil { + predicates = append(predicates, narrativehistory.SatisfiesIsNil()) + } + if i.SatisfiesNotNil { + predicates = append(predicates, narrativehistory.SatisfiesNotNil()) + } + if i.SatisfiesEqualFold != nil { + predicates = append(predicates, narrativehistory.SatisfiesEqualFold(*i.SatisfiesEqualFold)) + } + if i.SatisfiesContainsFold != nil { + predicates = append(predicates, narrativehistory.SatisfiesContainsFold(*i.SatisfiesContainsFold)) + } + switch len(predicates) { case 0: - return nil, ErrEmptyGroupMembershipWhereInput + return nil, ErrEmptyNarrativeHistoryWhereInput case 1: return predicates[0], nil default: - return groupmembership.And(predicates...), nil + return narrativehistory.And(predicates...), nil } } -// GroupMembershipHistoryWhereInput represents a where input for filtering GroupMembershipHistory queries. -type GroupMembershipHistoryWhereInput struct { - Predicates []predicate.GroupMembershipHistory `json:"-"` - Not *GroupMembershipHistoryWhereInput `json:"not,omitempty"` - Or []*GroupMembershipHistoryWhereInput `json:"or,omitempty"` - And []*GroupMembershipHistoryWhereInput `json:"and,omitempty"` +// NoteWhereInput represents a where input for filtering Note queries. +type NoteWhereInput struct { + Predicates []predicate.Note `json:"-"` + Not *NoteWhereInput `json:"not,omitempty"` + Or []*NoteWhereInput `json:"or,omitempty"` + And []*NoteWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -19946,39 +35644,6 @@ type GroupMembershipHistoryWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // "history_time" field predicates. - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` - RefGT *string `json:"refGT,omitempty"` - RefGTE *string `json:"refGTE,omitempty"` - RefLT *string `json:"refLT,omitempty"` - RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -20066,56 +35731,64 @@ type GroupMembershipHistoryWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "role" field predicates. - Role *enums.Role `json:"role,omitempty"` - RoleNEQ *enums.Role `json:"roleNEQ,omitempty"` - RoleIn []enums.Role `json:"roleIn,omitempty"` - RoleNotIn []enums.Role `json:"roleNotIn,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` - // "group_id" field predicates. - GroupID *string `json:"groupID,omitempty"` - GroupIDNEQ *string `json:"groupIDNEQ,omitempty"` - GroupIDIn []string `json:"groupIDIn,omitempty"` - GroupIDNotIn []string `json:"groupIDNotIn,omitempty"` - GroupIDGT *string `json:"groupIDGT,omitempty"` - GroupIDGTE *string `json:"groupIDGTE,omitempty"` - GroupIDLT *string `json:"groupIDLT,omitempty"` - GroupIDLTE *string `json:"groupIDLTE,omitempty"` - GroupIDContains *string `json:"groupIDContains,omitempty"` - GroupIDHasPrefix *string `json:"groupIDHasPrefix,omitempty"` - GroupIDHasSuffix *string `json:"groupIDHasSuffix,omitempty"` - GroupIDEqualFold *string `json:"groupIDEqualFold,omitempty"` - GroupIDContainsFold *string `json:"groupIDContainsFold,omitempty"` + // "text" field predicates. + Text *string `json:"text,omitempty"` + TextNEQ *string `json:"textNEQ,omitempty"` + TextIn []string `json:"textIn,omitempty"` + TextNotIn []string `json:"textNotIn,omitempty"` + TextGT *string `json:"textGT,omitempty"` + TextGTE *string `json:"textGTE,omitempty"` + TextLT *string `json:"textLT,omitempty"` + TextLTE *string `json:"textLTE,omitempty"` + TextContains *string `json:"textContains,omitempty"` + TextHasPrefix *string `json:"textHasPrefix,omitempty"` + TextHasSuffix *string `json:"textHasSuffix,omitempty"` + TextEqualFold *string `json:"textEqualFold,omitempty"` + TextContainsFold *string `json:"textContainsFold,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"` - UserIDGT *string `json:"userIDGT,omitempty"` - UserIDGTE *string `json:"userIDGTE,omitempty"` - UserIDLT *string `json:"userIDLT,omitempty"` - UserIDLTE *string `json:"userIDLTE,omitempty"` - UserIDContains *string `json:"userIDContains,omitempty"` - UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` - UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` - UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` - UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` + // "owner" edge predicates. + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + + // "entity" edge predicates. + HasEntity *bool `json:"hasEntity,omitempty"` + HasEntityWith []*EntityWhereInput `json:"hasEntityWith,omitempty"` + + // "subcontrols" edge predicates. + HasSubcontrols *bool `json:"hasSubcontrols,omitempty"` + HasSubcontrolsWith []*SubcontrolWhereInput `json:"hasSubcontrolsWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *GroupMembershipHistoryWhereInput) AddPredicates(predicates ...predicate.GroupMembershipHistory) { +func (i *NoteWhereInput) AddPredicates(predicates ...predicate.Note) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the GroupMembershipHistoryWhereInput filter on the GroupMembershipHistoryQuery builder. -func (i *GroupMembershipHistoryWhereInput) Filter(q *GroupMembershipHistoryQuery) (*GroupMembershipHistoryQuery, error) { +// Filter applies the NoteWhereInput filter on the NoteQuery builder. +func (i *NoteWhereInput) Filter(q *NoteQuery) (*NoteQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyGroupMembershipHistoryWhereInput { + if err == ErrEmptyNoteWhereInput { return q, nil } return nil, err @@ -20123,19 +35796,19 @@ func (i *GroupMembershipHistoryWhereInput) Filter(q *GroupMembershipHistoryQuery return q.Where(p), nil } -// ErrEmptyGroupMembershipHistoryWhereInput is returned in case the GroupMembershipHistoryWhereInput is empty. -var ErrEmptyGroupMembershipHistoryWhereInput = errors.New("generated: empty predicate GroupMembershipHistoryWhereInput") +// ErrEmptyNoteWhereInput is returned in case the NoteWhereInput is empty. +var ErrEmptyNoteWhereInput = errors.New("generated: empty predicate NoteWhereInput") -// P returns a predicate for filtering groupmembershiphistories. +// P returns a predicate for filtering notes. // An error is returned if the input is empty or invalid. -func (i *GroupMembershipHistoryWhereInput) P() (predicate.GroupMembershipHistory, error) { - var predicates []predicate.GroupMembershipHistory +func (i *NoteWhereInput) P() (predicate.Note, error) { + var predicates []predicate.Note if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, groupmembershiphistory.Not(p)) + predicates = append(predicates, note.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -20145,7 +35818,7 @@ func (i *GroupMembershipHistoryWhereInput) P() (predicate.GroupMembershipHistory } predicates = append(predicates, p) case n > 1: - or := make([]predicate.GroupMembershipHistory, 0, n) + or := make([]predicate.Note, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -20153,470 +35826,437 @@ func (i *GroupMembershipHistoryWhereInput) P() (predicate.GroupMembershipHistory } or = append(or, p) } - predicates = append(predicates, groupmembershiphistory.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.GroupMembershipHistory, 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, groupmembershiphistory.And(and...)) - } - predicates = append(predicates, i.Predicates...) - if i.ID != nil { - predicates = append(predicates, groupmembershiphistory.IDEQ(*i.ID)) - } - if i.IDNEQ != nil { - predicates = append(predicates, groupmembershiphistory.IDNEQ(*i.IDNEQ)) - } - if len(i.IDIn) > 0 { - predicates = append(predicates, groupmembershiphistory.IDIn(i.IDIn...)) - } - if len(i.IDNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.IDNotIn(i.IDNotIn...)) - } - if i.IDGT != nil { - predicates = append(predicates, groupmembershiphistory.IDGT(*i.IDGT)) - } - if i.IDGTE != nil { - predicates = append(predicates, groupmembershiphistory.IDGTE(*i.IDGTE)) - } - if i.IDLT != nil { - predicates = append(predicates, groupmembershiphistory.IDLT(*i.IDLT)) - } - if i.IDLTE != nil { - predicates = append(predicates, groupmembershiphistory.IDLTE(*i.IDLTE)) - } - if i.IDEqualFold != nil { - predicates = append(predicates, groupmembershiphistory.IDEqualFold(*i.IDEqualFold)) - } - if i.IDContainsFold != nil { - predicates = append(predicates, groupmembershiphistory.IDContainsFold(*i.IDContainsFold)) - } - if i.HistoryTime != nil { - predicates = append(predicates, groupmembershiphistory.HistoryTimeEQ(*i.HistoryTime)) - } - if i.HistoryTimeNEQ != nil { - predicates = append(predicates, groupmembershiphistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) - } - if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, groupmembershiphistory.HistoryTimeIn(i.HistoryTimeIn...)) - } - if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) - } - if i.HistoryTimeGT != nil { - predicates = append(predicates, groupmembershiphistory.HistoryTimeGT(*i.HistoryTimeGT)) - } - if i.HistoryTimeGTE != nil { - predicates = append(predicates, groupmembershiphistory.HistoryTimeGTE(*i.HistoryTimeGTE)) - } - if i.HistoryTimeLT != nil { - predicates = append(predicates, groupmembershiphistory.HistoryTimeLT(*i.HistoryTimeLT)) - } - if i.HistoryTimeLTE != nil { - predicates = append(predicates, groupmembershiphistory.HistoryTimeLTE(*i.HistoryTimeLTE)) - } - if i.Ref != nil { - predicates = append(predicates, groupmembershiphistory.RefEQ(*i.Ref)) - } - if i.RefNEQ != nil { - predicates = append(predicates, groupmembershiphistory.RefNEQ(*i.RefNEQ)) - } - if len(i.RefIn) > 0 { - predicates = append(predicates, groupmembershiphistory.RefIn(i.RefIn...)) - } - if len(i.RefNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.RefNotIn(i.RefNotIn...)) - } - if i.RefGT != nil { - predicates = append(predicates, groupmembershiphistory.RefGT(*i.RefGT)) - } - if i.RefGTE != nil { - predicates = append(predicates, groupmembershiphistory.RefGTE(*i.RefGTE)) - } - if i.RefLT != nil { - predicates = append(predicates, groupmembershiphistory.RefLT(*i.RefLT)) - } - if i.RefLTE != nil { - predicates = append(predicates, groupmembershiphistory.RefLTE(*i.RefLTE)) + predicates = append(predicates, note.Or(or...)) } - if i.RefContains != nil { - predicates = append(predicates, groupmembershiphistory.RefContains(*i.RefContains)) + 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.Note, 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, note.And(and...)) } - if i.RefHasPrefix != nil { - predicates = append(predicates, groupmembershiphistory.RefHasPrefix(*i.RefHasPrefix)) + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, note.IDEQ(*i.ID)) } - if i.RefHasSuffix != nil { - predicates = append(predicates, groupmembershiphistory.RefHasSuffix(*i.RefHasSuffix)) + if i.IDNEQ != nil { + predicates = append(predicates, note.IDNEQ(*i.IDNEQ)) } - if i.RefIsNil { - predicates = append(predicates, groupmembershiphistory.RefIsNil()) + if len(i.IDIn) > 0 { + predicates = append(predicates, note.IDIn(i.IDIn...)) } - if i.RefNotNil { - predicates = append(predicates, groupmembershiphistory.RefNotNil()) + if len(i.IDNotIn) > 0 { + predicates = append(predicates, note.IDNotIn(i.IDNotIn...)) } - if i.RefEqualFold != nil { - predicates = append(predicates, groupmembershiphistory.RefEqualFold(*i.RefEqualFold)) + if i.IDGT != nil { + predicates = append(predicates, note.IDGT(*i.IDGT)) } - if i.RefContainsFold != nil { - predicates = append(predicates, groupmembershiphistory.RefContainsFold(*i.RefContainsFold)) + if i.IDGTE != nil { + predicates = append(predicates, note.IDGTE(*i.IDGTE)) } - if i.Operation != nil { - predicates = append(predicates, groupmembershiphistory.OperationEQ(*i.Operation)) + if i.IDLT != nil { + predicates = append(predicates, note.IDLT(*i.IDLT)) } - if i.OperationNEQ != nil { - predicates = append(predicates, groupmembershiphistory.OperationNEQ(*i.OperationNEQ)) + if i.IDLTE != nil { + predicates = append(predicates, note.IDLTE(*i.IDLTE)) } - if len(i.OperationIn) > 0 { - predicates = append(predicates, groupmembershiphistory.OperationIn(i.OperationIn...)) + if i.IDEqualFold != nil { + predicates = append(predicates, note.IDEqualFold(*i.IDEqualFold)) } - if len(i.OperationNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.OperationNotIn(i.OperationNotIn...)) + if i.IDContainsFold != nil { + predicates = append(predicates, note.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, groupmembershiphistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, note.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, groupmembershiphistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, note.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, groupmembershiphistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, note.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, note.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, groupmembershiphistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, note.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, groupmembershiphistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, note.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, groupmembershiphistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, note.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, groupmembershiphistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, note.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, groupmembershiphistory.CreatedAtIsNil()) + predicates = append(predicates, note.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, groupmembershiphistory.CreatedAtNotNil()) + predicates = append(predicates, note.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, note.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, note.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, groupmembershiphistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, note.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, note.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, note.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, note.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, note.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, note.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, groupmembershiphistory.UpdatedAtIsNil()) + predicates = append(predicates, note.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, groupmembershiphistory.UpdatedAtNotNil()) + predicates = append(predicates, note.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, groupmembershiphistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, note.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, groupmembershiphistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, note.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, groupmembershiphistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, note.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, note.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, groupmembershiphistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, note.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, groupmembershiphistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, note.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, groupmembershiphistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, note.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, groupmembershiphistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, note.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, groupmembershiphistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, note.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, groupmembershiphistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, note.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, groupmembershiphistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, note.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, groupmembershiphistory.CreatedByIsNil()) + predicates = append(predicates, note.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, groupmembershiphistory.CreatedByNotNil()) + predicates = append(predicates, note.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, groupmembershiphistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, note.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, groupmembershiphistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, note.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, note.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, note.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, groupmembershiphistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, note.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, note.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, note.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, note.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, note.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, note.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, note.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, note.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, note.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, groupmembershiphistory.UpdatedByIsNil()) + predicates = append(predicates, note.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, groupmembershiphistory.UpdatedByNotNil()) + predicates = append(predicates, note.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, note.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, groupmembershiphistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, note.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, groupmembershiphistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, note.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, groupmembershiphistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, note.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, groupmembershiphistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, note.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, note.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, groupmembershiphistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, note.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, groupmembershiphistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, note.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, groupmembershiphistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, note.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, groupmembershiphistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, note.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, groupmembershiphistory.DeletedAtIsNil()) + predicates = append(predicates, note.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, groupmembershiphistory.DeletedAtNotNil()) + predicates = append(predicates, note.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, groupmembershiphistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, note.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, groupmembershiphistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, note.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, groupmembershiphistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, note.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, note.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, groupmembershiphistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, note.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, groupmembershiphistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, note.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, groupmembershiphistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, note.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, groupmembershiphistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, note.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, groupmembershiphistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, note.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, groupmembershiphistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, note.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, groupmembershiphistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, note.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, groupmembershiphistory.DeletedByIsNil()) + predicates = append(predicates, note.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, groupmembershiphistory.DeletedByNotNil()) + predicates = append(predicates, note.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, groupmembershiphistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, note.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, groupmembershiphistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, note.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.Role != nil { - predicates = append(predicates, groupmembershiphistory.RoleEQ(*i.Role)) + if i.OwnerID != nil { + predicates = append(predicates, note.OwnerIDEQ(*i.OwnerID)) } - if i.RoleNEQ != nil { - predicates = append(predicates, groupmembershiphistory.RoleNEQ(*i.RoleNEQ)) + if i.OwnerIDNEQ != nil { + predicates = append(predicates, note.OwnerIDNEQ(*i.OwnerIDNEQ)) } - if len(i.RoleIn) > 0 { - predicates = append(predicates, groupmembershiphistory.RoleIn(i.RoleIn...)) + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, note.OwnerIDIn(i.OwnerIDIn...)) } - if len(i.RoleNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.RoleNotIn(i.RoleNotIn...)) + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, note.OwnerIDNotIn(i.OwnerIDNotIn...)) } - if i.GroupID != nil { - predicates = append(predicates, groupmembershiphistory.GroupIDEQ(*i.GroupID)) + if i.OwnerIDGT != nil { + predicates = append(predicates, note.OwnerIDGT(*i.OwnerIDGT)) } - if i.GroupIDNEQ != nil { - predicates = append(predicates, groupmembershiphistory.GroupIDNEQ(*i.GroupIDNEQ)) + if i.OwnerIDGTE != nil { + predicates = append(predicates, note.OwnerIDGTE(*i.OwnerIDGTE)) } - if len(i.GroupIDIn) > 0 { - predicates = append(predicates, groupmembershiphistory.GroupIDIn(i.GroupIDIn...)) + if i.OwnerIDLT != nil { + predicates = append(predicates, note.OwnerIDLT(*i.OwnerIDLT)) } - if len(i.GroupIDNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.GroupIDNotIn(i.GroupIDNotIn...)) + if i.OwnerIDLTE != nil { + predicates = append(predicates, note.OwnerIDLTE(*i.OwnerIDLTE)) } - if i.GroupIDGT != nil { - predicates = append(predicates, groupmembershiphistory.GroupIDGT(*i.GroupIDGT)) + if i.OwnerIDContains != nil { + predicates = append(predicates, note.OwnerIDContains(*i.OwnerIDContains)) } - if i.GroupIDGTE != nil { - predicates = append(predicates, groupmembershiphistory.GroupIDGTE(*i.GroupIDGTE)) + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, note.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } - if i.GroupIDLT != nil { - predicates = append(predicates, groupmembershiphistory.GroupIDLT(*i.GroupIDLT)) + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, note.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } - if i.GroupIDLTE != nil { - predicates = append(predicates, groupmembershiphistory.GroupIDLTE(*i.GroupIDLTE)) + if i.OwnerIDIsNil { + predicates = append(predicates, note.OwnerIDIsNil()) } - if i.GroupIDContains != nil { - predicates = append(predicates, groupmembershiphistory.GroupIDContains(*i.GroupIDContains)) + if i.OwnerIDNotNil { + predicates = append(predicates, note.OwnerIDNotNil()) } - if i.GroupIDHasPrefix != nil { - predicates = append(predicates, groupmembershiphistory.GroupIDHasPrefix(*i.GroupIDHasPrefix)) + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, note.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } - if i.GroupIDHasSuffix != nil { - predicates = append(predicates, groupmembershiphistory.GroupIDHasSuffix(*i.GroupIDHasSuffix)) + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, note.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if i.GroupIDEqualFold != nil { - predicates = append(predicates, groupmembershiphistory.GroupIDEqualFold(*i.GroupIDEqualFold)) + if i.Text != nil { + predicates = append(predicates, note.TextEQ(*i.Text)) } - if i.GroupIDContainsFold != nil { - predicates = append(predicates, groupmembershiphistory.GroupIDContainsFold(*i.GroupIDContainsFold)) + if i.TextNEQ != nil { + predicates = append(predicates, note.TextNEQ(*i.TextNEQ)) } - if i.UserID != nil { - predicates = append(predicates, groupmembershiphistory.UserIDEQ(*i.UserID)) + if len(i.TextIn) > 0 { + predicates = append(predicates, note.TextIn(i.TextIn...)) } - if i.UserIDNEQ != nil { - predicates = append(predicates, groupmembershiphistory.UserIDNEQ(*i.UserIDNEQ)) + if len(i.TextNotIn) > 0 { + predicates = append(predicates, note.TextNotIn(i.TextNotIn...)) } - if len(i.UserIDIn) > 0 { - predicates = append(predicates, groupmembershiphistory.UserIDIn(i.UserIDIn...)) + if i.TextGT != nil { + predicates = append(predicates, note.TextGT(*i.TextGT)) } - if len(i.UserIDNotIn) > 0 { - predicates = append(predicates, groupmembershiphistory.UserIDNotIn(i.UserIDNotIn...)) + if i.TextGTE != nil { + predicates = append(predicates, note.TextGTE(*i.TextGTE)) } - if i.UserIDGT != nil { - predicates = append(predicates, groupmembershiphistory.UserIDGT(*i.UserIDGT)) + if i.TextLT != nil { + predicates = append(predicates, note.TextLT(*i.TextLT)) } - if i.UserIDGTE != nil { - predicates = append(predicates, groupmembershiphistory.UserIDGTE(*i.UserIDGTE)) + if i.TextLTE != nil { + predicates = append(predicates, note.TextLTE(*i.TextLTE)) } - if i.UserIDLT != nil { - predicates = append(predicates, groupmembershiphistory.UserIDLT(*i.UserIDLT)) + if i.TextContains != nil { + predicates = append(predicates, note.TextContains(*i.TextContains)) } - if i.UserIDLTE != nil { - predicates = append(predicates, groupmembershiphistory.UserIDLTE(*i.UserIDLTE)) + if i.TextHasPrefix != nil { + predicates = append(predicates, note.TextHasPrefix(*i.TextHasPrefix)) } - if i.UserIDContains != nil { - predicates = append(predicates, groupmembershiphistory.UserIDContains(*i.UserIDContains)) + if i.TextHasSuffix != nil { + predicates = append(predicates, note.TextHasSuffix(*i.TextHasSuffix)) } - if i.UserIDHasPrefix != nil { - predicates = append(predicates, groupmembershiphistory.UserIDHasPrefix(*i.UserIDHasPrefix)) + if i.TextEqualFold != nil { + predicates = append(predicates, note.TextEqualFold(*i.TextEqualFold)) } - if i.UserIDHasSuffix != nil { - predicates = append(predicates, groupmembershiphistory.UserIDHasSuffix(*i.UserIDHasSuffix)) + if i.TextContainsFold != nil { + predicates = append(predicates, note.TextContainsFold(*i.TextContainsFold)) } - if i.UserIDEqualFold != nil { - predicates = append(predicates, groupmembershiphistory.UserIDEqualFold(*i.UserIDEqualFold)) + + if i.HasOwner != nil { + p := note.HasOwner() + if !*i.HasOwner { + p = note.Not(p) + } + predicates = append(predicates, p) } - if i.UserIDContainsFold != nil { - predicates = append(predicates, groupmembershiphistory.UserIDContainsFold(*i.UserIDContainsFold)) + if len(i.HasOwnerWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) + 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, note.HasOwnerWith(with...)) + } + if i.HasEntity != nil { + p := note.HasEntity() + if !*i.HasEntity { + p = note.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEntityWith) > 0 { + with := make([]predicate.Entity, 0, len(i.HasEntityWith)) + for _, w := range i.HasEntityWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntityWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, note.HasEntityWith(with...)) + } + if i.HasSubcontrols != nil { + p := note.HasSubcontrols() + if !*i.HasSubcontrols { + p = note.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasSubcontrolsWith) > 0 { + with := make([]predicate.Subcontrol, 0, len(i.HasSubcontrolsWith)) + for _, w := range i.HasSubcontrolsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasSubcontrolsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, note.HasSubcontrolsWith(with...)) } - switch len(predicates) { case 0: - return nil, ErrEmptyGroupMembershipHistoryWhereInput + return nil, ErrEmptyNoteWhereInput case 1: return predicates[0], nil default: - return groupmembershiphistory.And(predicates...), nil + return note.And(predicates...), nil } } -// GroupSettingWhereInput represents a where input for filtering GroupSetting queries. -type GroupSettingWhereInput struct { - Predicates []predicate.GroupSetting `json:"-"` - Not *GroupSettingWhereInput `json:"not,omitempty"` - Or []*GroupSettingWhereInput `json:"or,omitempty"` - And []*GroupSettingWhereInput `json:"and,omitempty"` +// NoteHistoryWhereInput represents a where input for filtering NoteHistory queries. +type NoteHistoryWhereInput struct { + Predicates []predicate.NoteHistory `json:"-"` + Not *NoteHistoryWhereInput `json:"not,omitempty"` + Or []*NoteHistoryWhereInput `json:"or,omitempty"` + And []*NoteHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -20630,6 +36270,39 @@ type GroupSettingWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -20717,65 +36390,52 @@ type GroupSettingWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "visibility" field predicates. - Visibility *enums.Visibility `json:"visibility,omitempty"` - VisibilityNEQ *enums.Visibility `json:"visibilityNEQ,omitempty"` - VisibilityIn []enums.Visibility `json:"visibilityIn,omitempty"` - VisibilityNotIn []enums.Visibility `json:"visibilityNotIn,omitempty"` - - // "join_policy" field predicates. - JoinPolicy *enums.JoinPolicy `json:"joinPolicy,omitempty"` - JoinPolicyNEQ *enums.JoinPolicy `json:"joinPolicyNEQ,omitempty"` - JoinPolicyIn []enums.JoinPolicy `json:"joinPolicyIn,omitempty"` - JoinPolicyNotIn []enums.JoinPolicy `json:"joinPolicyNotIn,omitempty"` - - // "sync_to_slack" field predicates. - SyncToSlack *bool `json:"syncToSlack,omitempty"` - SyncToSlackNEQ *bool `json:"syncToSlackNEQ,omitempty"` - SyncToSlackIsNil bool `json:"syncToSlackIsNil,omitempty"` - SyncToSlackNotNil bool `json:"syncToSlackNotNil,omitempty"` - - // "sync_to_github" field predicates. - SyncToGithub *bool `json:"syncToGithub,omitempty"` - SyncToGithubNEQ *bool `json:"syncToGithubNEQ,omitempty"` - SyncToGithubIsNil bool `json:"syncToGithubIsNil,omitempty"` - SyncToGithubNotNil bool `json:"syncToGithubNotNil,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"` - GroupIDGT *string `json:"groupIDGT,omitempty"` - GroupIDGTE *string `json:"groupIDGTE,omitempty"` - GroupIDLT *string `json:"groupIDLT,omitempty"` - GroupIDLTE *string `json:"groupIDLTE,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"` + // "owner_id" field predicates. + OwnerID *string `json:"ownerID,omitempty"` + OwnerIDNEQ *string `json:"ownerIDNEQ,omitempty"` + OwnerIDIn []string `json:"ownerIDIn,omitempty"` + OwnerIDNotIn []string `json:"ownerIDNotIn,omitempty"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` - // "group" edge predicates. - HasGroup *bool `json:"hasGroup,omitempty"` - HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` + // "text" field predicates. + Text *string `json:"text,omitempty"` + TextNEQ *string `json:"textNEQ,omitempty"` + TextIn []string `json:"textIn,omitempty"` + TextNotIn []string `json:"textNotIn,omitempty"` + TextGT *string `json:"textGT,omitempty"` + TextGTE *string `json:"textGTE,omitempty"` + TextLT *string `json:"textLT,omitempty"` + TextLTE *string `json:"textLTE,omitempty"` + TextContains *string `json:"textContains,omitempty"` + TextHasPrefix *string `json:"textHasPrefix,omitempty"` + TextHasSuffix *string `json:"textHasSuffix,omitempty"` + TextEqualFold *string `json:"textEqualFold,omitempty"` + TextContainsFold *string `json:"textContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *GroupSettingWhereInput) AddPredicates(predicates ...predicate.GroupSetting) { +func (i *NoteHistoryWhereInput) AddPredicates(predicates ...predicate.NoteHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the GroupSettingWhereInput filter on the GroupSettingQuery builder. -func (i *GroupSettingWhereInput) Filter(q *GroupSettingQuery) (*GroupSettingQuery, error) { +// Filter applies the NoteHistoryWhereInput filter on the NoteHistoryQuery builder. +func (i *NoteHistoryWhereInput) Filter(q *NoteHistoryQuery) (*NoteHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyGroupSettingWhereInput { + if err == ErrEmptyNoteHistoryWhereInput { return q, nil } return nil, err @@ -20783,19 +36443,19 @@ func (i *GroupSettingWhereInput) Filter(q *GroupSettingQuery) (*GroupSettingQuer return q.Where(p), nil } -// ErrEmptyGroupSettingWhereInput is returned in case the GroupSettingWhereInput is empty. -var ErrEmptyGroupSettingWhereInput = errors.New("generated: empty predicate GroupSettingWhereInput") +// ErrEmptyNoteHistoryWhereInput is returned in case the NoteHistoryWhereInput is empty. +var ErrEmptyNoteHistoryWhereInput = errors.New("generated: empty predicate NoteHistoryWhereInput") -// P returns a predicate for filtering groupsettings. +// P returns a predicate for filtering notehistories. // An error is returned if the input is empty or invalid. -func (i *GroupSettingWhereInput) P() (predicate.GroupSetting, error) { - var predicates []predicate.GroupSetting +func (i *NoteHistoryWhereInput) P() (predicate.NoteHistory, error) { + var predicates []predicate.NoteHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, groupsetting.Not(p)) + predicates = append(predicates, notehistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -20805,7 +36465,7 @@ func (i *GroupSettingWhereInput) P() (predicate.GroupSetting, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.GroupSetting, 0, n) + or := make([]predicate.NoteHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -20813,7 +36473,7 @@ func (i *GroupSettingWhereInput) P() (predicate.GroupSetting, error) { } or = append(or, p) } - predicates = append(predicates, groupsetting.Or(or...)) + predicates = append(predicates, notehistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -20823,7 +36483,7 @@ func (i *GroupSettingWhereInput) P() (predicate.GroupSetting, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.GroupSetting, 0, n) + and := make([]predicate.NoteHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -20831,392 +36491,446 @@ func (i *GroupSettingWhereInput) P() (predicate.GroupSetting, error) { } and = append(and, p) } - predicates = append(predicates, groupsetting.And(and...)) + predicates = append(predicates, notehistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, groupsetting.IDEQ(*i.ID)) + predicates = append(predicates, notehistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, groupsetting.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, notehistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, groupsetting.IDIn(i.IDIn...)) + predicates = append(predicates, notehistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, groupsetting.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, notehistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, groupsetting.IDGT(*i.IDGT)) + predicates = append(predicates, notehistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, groupsetting.IDGTE(*i.IDGTE)) + predicates = append(predicates, notehistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, groupsetting.IDLT(*i.IDLT)) + predicates = append(predicates, notehistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, groupsetting.IDLTE(*i.IDLTE)) + predicates = append(predicates, notehistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, groupsetting.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, notehistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, groupsetting.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, notehistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, notehistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, notehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, notehistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, notehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, notehistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, notehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, notehistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, notehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, notehistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, notehistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, notehistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, notehistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, notehistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, notehistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, notehistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, notehistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, notehistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, notehistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, notehistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, notehistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, notehistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, notehistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, notehistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, notehistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, notehistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, notehistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, notehistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, groupsetting.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, notehistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, groupsetting.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, notehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, groupsetting.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, notehistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, groupsetting.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, notehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, groupsetting.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, notehistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, groupsetting.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, notehistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, groupsetting.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, notehistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, groupsetting.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, notehistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, groupsetting.CreatedAtIsNil()) + predicates = append(predicates, notehistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, groupsetting.CreatedAtNotNil()) + predicates = append(predicates, notehistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, groupsetting.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, notehistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, groupsetting.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, notehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, groupsetting.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, notehistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, groupsetting.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, notehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, groupsetting.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, notehistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, groupsetting.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, notehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, groupsetting.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, notehistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, groupsetting.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, notehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, groupsetting.UpdatedAtIsNil()) + predicates = append(predicates, notehistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, groupsetting.UpdatedAtNotNil()) + predicates = append(predicates, notehistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, groupsetting.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, notehistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, groupsetting.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, notehistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, groupsetting.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, notehistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, groupsetting.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, notehistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, groupsetting.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, notehistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, groupsetting.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, notehistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, groupsetting.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, notehistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, groupsetting.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, notehistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, groupsetting.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, notehistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, groupsetting.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, notehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, groupsetting.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, notehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, groupsetting.CreatedByIsNil()) + predicates = append(predicates, notehistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, groupsetting.CreatedByNotNil()) + predicates = append(predicates, notehistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, groupsetting.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, notehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, groupsetting.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, notehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, groupsetting.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, notehistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, groupsetting.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, notehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, groupsetting.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, notehistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, groupsetting.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, notehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, groupsetting.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, notehistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, groupsetting.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, notehistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, groupsetting.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, notehistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, groupsetting.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, notehistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, groupsetting.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, notehistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, groupsetting.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, notehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, groupsetting.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, notehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, groupsetting.UpdatedByIsNil()) + predicates = append(predicates, notehistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, groupsetting.UpdatedByNotNil()) + predicates = append(predicates, notehistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, groupsetting.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, notehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, groupsetting.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, notehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, groupsetting.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, notehistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, groupsetting.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, notehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, groupsetting.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, notehistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, groupsetting.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, notehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, groupsetting.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, notehistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, groupsetting.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, notehistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, groupsetting.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, notehistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, groupsetting.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, notehistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, groupsetting.DeletedAtIsNil()) + predicates = append(predicates, notehistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, groupsetting.DeletedAtNotNil()) + predicates = append(predicates, notehistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, groupsetting.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, notehistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, groupsetting.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, notehistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, groupsetting.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, notehistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, groupsetting.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, notehistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, groupsetting.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, notehistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, groupsetting.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, notehistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, groupsetting.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, notehistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, groupsetting.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, notehistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, groupsetting.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, notehistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, groupsetting.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, notehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, groupsetting.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, notehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, groupsetting.DeletedByIsNil()) + predicates = append(predicates, notehistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, groupsetting.DeletedByNotNil()) + predicates = append(predicates, notehistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, groupsetting.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, notehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, groupsetting.DeletedByContainsFold(*i.DeletedByContainsFold)) - } - if i.Visibility != nil { - predicates = append(predicates, groupsetting.VisibilityEQ(*i.Visibility)) - } - if i.VisibilityNEQ != nil { - predicates = append(predicates, groupsetting.VisibilityNEQ(*i.VisibilityNEQ)) - } - if len(i.VisibilityIn) > 0 { - predicates = append(predicates, groupsetting.VisibilityIn(i.VisibilityIn...)) + predicates = append(predicates, notehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if len(i.VisibilityNotIn) > 0 { - predicates = append(predicates, groupsetting.VisibilityNotIn(i.VisibilityNotIn...)) + if i.OwnerID != nil { + predicates = append(predicates, notehistory.OwnerIDEQ(*i.OwnerID)) } - if i.JoinPolicy != nil { - predicates = append(predicates, groupsetting.JoinPolicyEQ(*i.JoinPolicy)) + if i.OwnerIDNEQ != nil { + predicates = append(predicates, notehistory.OwnerIDNEQ(*i.OwnerIDNEQ)) } - if i.JoinPolicyNEQ != nil { - predicates = append(predicates, groupsetting.JoinPolicyNEQ(*i.JoinPolicyNEQ)) + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, notehistory.OwnerIDIn(i.OwnerIDIn...)) } - if len(i.JoinPolicyIn) > 0 { - predicates = append(predicates, groupsetting.JoinPolicyIn(i.JoinPolicyIn...)) + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, notehistory.OwnerIDNotIn(i.OwnerIDNotIn...)) } - if len(i.JoinPolicyNotIn) > 0 { - predicates = append(predicates, groupsetting.JoinPolicyNotIn(i.JoinPolicyNotIn...)) + if i.OwnerIDGT != nil { + predicates = append(predicates, notehistory.OwnerIDGT(*i.OwnerIDGT)) } - if i.SyncToSlack != nil { - predicates = append(predicates, groupsetting.SyncToSlackEQ(*i.SyncToSlack)) + if i.OwnerIDGTE != nil { + predicates = append(predicates, notehistory.OwnerIDGTE(*i.OwnerIDGTE)) } - if i.SyncToSlackNEQ != nil { - predicates = append(predicates, groupsetting.SyncToSlackNEQ(*i.SyncToSlackNEQ)) + if i.OwnerIDLT != nil { + predicates = append(predicates, notehistory.OwnerIDLT(*i.OwnerIDLT)) } - if i.SyncToSlackIsNil { - predicates = append(predicates, groupsetting.SyncToSlackIsNil()) + if i.OwnerIDLTE != nil { + predicates = append(predicates, notehistory.OwnerIDLTE(*i.OwnerIDLTE)) } - if i.SyncToSlackNotNil { - predicates = append(predicates, groupsetting.SyncToSlackNotNil()) + if i.OwnerIDContains != nil { + predicates = append(predicates, notehistory.OwnerIDContains(*i.OwnerIDContains)) } - if i.SyncToGithub != nil { - predicates = append(predicates, groupsetting.SyncToGithubEQ(*i.SyncToGithub)) + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, notehistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) } - if i.SyncToGithubNEQ != nil { - predicates = append(predicates, groupsetting.SyncToGithubNEQ(*i.SyncToGithubNEQ)) + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, notehistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) } - if i.SyncToGithubIsNil { - predicates = append(predicates, groupsetting.SyncToGithubIsNil()) + if i.OwnerIDIsNil { + predicates = append(predicates, notehistory.OwnerIDIsNil()) } - if i.SyncToGithubNotNil { - predicates = append(predicates, groupsetting.SyncToGithubNotNil()) + if i.OwnerIDNotNil { + predicates = append(predicates, notehistory.OwnerIDNotNil()) } - if i.GroupID != nil { - predicates = append(predicates, groupsetting.GroupIDEQ(*i.GroupID)) + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, notehistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) } - if i.GroupIDNEQ != nil { - predicates = append(predicates, groupsetting.GroupIDNEQ(*i.GroupIDNEQ)) + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, notehistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) } - if len(i.GroupIDIn) > 0 { - predicates = append(predicates, groupsetting.GroupIDIn(i.GroupIDIn...)) + if i.Text != nil { + predicates = append(predicates, notehistory.TextEQ(*i.Text)) } - if len(i.GroupIDNotIn) > 0 { - predicates = append(predicates, groupsetting.GroupIDNotIn(i.GroupIDNotIn...)) + if i.TextNEQ != nil { + predicates = append(predicates, notehistory.TextNEQ(*i.TextNEQ)) } - if i.GroupIDGT != nil { - predicates = append(predicates, groupsetting.GroupIDGT(*i.GroupIDGT)) + if len(i.TextIn) > 0 { + predicates = append(predicates, notehistory.TextIn(i.TextIn...)) } - if i.GroupIDGTE != nil { - predicates = append(predicates, groupsetting.GroupIDGTE(*i.GroupIDGTE)) + if len(i.TextNotIn) > 0 { + predicates = append(predicates, notehistory.TextNotIn(i.TextNotIn...)) } - if i.GroupIDLT != nil { - predicates = append(predicates, groupsetting.GroupIDLT(*i.GroupIDLT)) + if i.TextGT != nil { + predicates = append(predicates, notehistory.TextGT(*i.TextGT)) } - if i.GroupIDLTE != nil { - predicates = append(predicates, groupsetting.GroupIDLTE(*i.GroupIDLTE)) + if i.TextGTE != nil { + predicates = append(predicates, notehistory.TextGTE(*i.TextGTE)) } - if i.GroupIDContains != nil { - predicates = append(predicates, groupsetting.GroupIDContains(*i.GroupIDContains)) + if i.TextLT != nil { + predicates = append(predicates, notehistory.TextLT(*i.TextLT)) } - if i.GroupIDHasPrefix != nil { - predicates = append(predicates, groupsetting.GroupIDHasPrefix(*i.GroupIDHasPrefix)) + if i.TextLTE != nil { + predicates = append(predicates, notehistory.TextLTE(*i.TextLTE)) } - if i.GroupIDHasSuffix != nil { - predicates = append(predicates, groupsetting.GroupIDHasSuffix(*i.GroupIDHasSuffix)) + if i.TextContains != nil { + predicates = append(predicates, notehistory.TextContains(*i.TextContains)) } - if i.GroupIDIsNil { - predicates = append(predicates, groupsetting.GroupIDIsNil()) + if i.TextHasPrefix != nil { + predicates = append(predicates, notehistory.TextHasPrefix(*i.TextHasPrefix)) } - if i.GroupIDNotNil { - predicates = append(predicates, groupsetting.GroupIDNotNil()) + if i.TextHasSuffix != nil { + predicates = append(predicates, notehistory.TextHasSuffix(*i.TextHasSuffix)) } - if i.GroupIDEqualFold != nil { - predicates = append(predicates, groupsetting.GroupIDEqualFold(*i.GroupIDEqualFold)) + if i.TextEqualFold != nil { + predicates = append(predicates, notehistory.TextEqualFold(*i.TextEqualFold)) } - if i.GroupIDContainsFold != nil { - predicates = append(predicates, groupsetting.GroupIDContainsFold(*i.GroupIDContainsFold)) + if i.TextContainsFold != nil { + predicates = append(predicates, notehistory.TextContainsFold(*i.TextContainsFold)) } - if i.HasGroup != nil { - p := groupsetting.HasGroup() - if !*i.HasGroup { - p = groupsetting.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasGroupWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasGroupWith)) - 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, groupsetting.HasGroupWith(with...)) - } switch len(predicates) { case 0: - return nil, ErrEmptyGroupSettingWhereInput + return nil, ErrEmptyNoteHistoryWhereInput case 1: return predicates[0], nil default: - return groupsetting.And(predicates...), nil + return notehistory.And(predicates...), nil } } -// GroupSettingHistoryWhereInput represents a where input for filtering GroupSettingHistory queries. -type GroupSettingHistoryWhereInput struct { - Predicates []predicate.GroupSettingHistory `json:"-"` - Not *GroupSettingHistoryWhereInput `json:"not,omitempty"` - Or []*GroupSettingHistoryWhereInput `json:"or,omitempty"` - And []*GroupSettingHistoryWhereInput `json:"and,omitempty"` +// OauthProviderWhereInput represents a where input for filtering OauthProvider queries. +type OauthProviderWhereInput struct { + Predicates []predicate.OauthProvider `json:"-"` + Not *OauthProviderWhereInput `json:"not,omitempty"` + Or []*OauthProviderWhereInput `json:"or,omitempty"` + And []*OauthProviderWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -21230,39 +36944,6 @@ type GroupSettingHistoryWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // "history_time" field predicates. - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` - RefGT *string `json:"refGT,omitempty"` - RefGTE *string `json:"refGTE,omitempty"` - RefLT *string `json:"refLT,omitempty"` - RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -21350,61 +37031,171 @@ type GroupSettingHistoryWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "visibility" field predicates. - Visibility *enums.Visibility `json:"visibility,omitempty"` - VisibilityNEQ *enums.Visibility `json:"visibilityNEQ,omitempty"` - VisibilityIn []enums.Visibility `json:"visibilityIn,omitempty"` - VisibilityNotIn []enums.Visibility `json:"visibilityNotIn,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` + + // "client_id" field predicates. + ClientID *string `json:"clientID,omitempty"` + ClientIDNEQ *string `json:"clientIDNEQ,omitempty"` + ClientIDIn []string `json:"clientIDIn,omitempty"` + ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` + ClientIDGT *string `json:"clientIDGT,omitempty"` + ClientIDGTE *string `json:"clientIDGTE,omitempty"` + ClientIDLT *string `json:"clientIDLT,omitempty"` + ClientIDLTE *string `json:"clientIDLTE,omitempty"` + ClientIDContains *string `json:"clientIDContains,omitempty"` + ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` + ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` + ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` + ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` + + // "client_secret" field predicates. + ClientSecret *string `json:"clientSecret,omitempty"` + ClientSecretNEQ *string `json:"clientSecretNEQ,omitempty"` + ClientSecretIn []string `json:"clientSecretIn,omitempty"` + ClientSecretNotIn []string `json:"clientSecretNotIn,omitempty"` + ClientSecretGT *string `json:"clientSecretGT,omitempty"` + ClientSecretGTE *string `json:"clientSecretGTE,omitempty"` + ClientSecretLT *string `json:"clientSecretLT,omitempty"` + ClientSecretLTE *string `json:"clientSecretLTE,omitempty"` + ClientSecretContains *string `json:"clientSecretContains,omitempty"` + ClientSecretHasPrefix *string `json:"clientSecretHasPrefix,omitempty"` + ClientSecretHasSuffix *string `json:"clientSecretHasSuffix,omitempty"` + ClientSecretEqualFold *string `json:"clientSecretEqualFold,omitempty"` + ClientSecretContainsFold *string `json:"clientSecretContainsFold,omitempty"` + + // "redirect_url" field predicates. + RedirectURL *string `json:"redirectURL,omitempty"` + RedirectURLNEQ *string `json:"redirectURLNEQ,omitempty"` + RedirectURLIn []string `json:"redirectURLIn,omitempty"` + RedirectURLNotIn []string `json:"redirectURLNotIn,omitempty"` + RedirectURLGT *string `json:"redirectURLGT,omitempty"` + RedirectURLGTE *string `json:"redirectURLGTE,omitempty"` + RedirectURLLT *string `json:"redirectURLLT,omitempty"` + RedirectURLLTE *string `json:"redirectURLLTE,omitempty"` + RedirectURLContains *string `json:"redirectURLContains,omitempty"` + RedirectURLHasPrefix *string `json:"redirectURLHasPrefix,omitempty"` + RedirectURLHasSuffix *string `json:"redirectURLHasSuffix,omitempty"` + RedirectURLEqualFold *string `json:"redirectURLEqualFold,omitempty"` + RedirectURLContainsFold *string `json:"redirectURLContainsFold,omitempty"` + + // "scopes" field predicates. + Scopes *string `json:"scopes,omitempty"` + ScopesNEQ *string `json:"scopesNEQ,omitempty"` + ScopesIn []string `json:"scopesIn,omitempty"` + ScopesNotIn []string `json:"scopesNotIn,omitempty"` + ScopesGT *string `json:"scopesGT,omitempty"` + ScopesGTE *string `json:"scopesGTE,omitempty"` + ScopesLT *string `json:"scopesLT,omitempty"` + ScopesLTE *string `json:"scopesLTE,omitempty"` + ScopesContains *string `json:"scopesContains,omitempty"` + ScopesHasPrefix *string `json:"scopesHasPrefix,omitempty"` + ScopesHasSuffix *string `json:"scopesHasSuffix,omitempty"` + ScopesEqualFold *string `json:"scopesEqualFold,omitempty"` + ScopesContainsFold *string `json:"scopesContainsFold,omitempty"` - // "join_policy" field predicates. - JoinPolicy *enums.JoinPolicy `json:"joinPolicy,omitempty"` - JoinPolicyNEQ *enums.JoinPolicy `json:"joinPolicyNEQ,omitempty"` - JoinPolicyIn []enums.JoinPolicy `json:"joinPolicyIn,omitempty"` - JoinPolicyNotIn []enums.JoinPolicy `json:"joinPolicyNotIn,omitempty"` + // "auth_url" field predicates. + AuthURL *string `json:"authURL,omitempty"` + AuthURLNEQ *string `json:"authURLNEQ,omitempty"` + AuthURLIn []string `json:"authURLIn,omitempty"` + AuthURLNotIn []string `json:"authURLNotIn,omitempty"` + AuthURLGT *string `json:"authURLGT,omitempty"` + AuthURLGTE *string `json:"authURLGTE,omitempty"` + AuthURLLT *string `json:"authURLLT,omitempty"` + AuthURLLTE *string `json:"authURLLTE,omitempty"` + AuthURLContains *string `json:"authURLContains,omitempty"` + AuthURLHasPrefix *string `json:"authURLHasPrefix,omitempty"` + AuthURLHasSuffix *string `json:"authURLHasSuffix,omitempty"` + AuthURLEqualFold *string `json:"authURLEqualFold,omitempty"` + AuthURLContainsFold *string `json:"authURLContainsFold,omitempty"` - // "sync_to_slack" field predicates. - SyncToSlack *bool `json:"syncToSlack,omitempty"` - SyncToSlackNEQ *bool `json:"syncToSlackNEQ,omitempty"` - SyncToSlackIsNil bool `json:"syncToSlackIsNil,omitempty"` - SyncToSlackNotNil bool `json:"syncToSlackNotNil,omitempty"` + // "token_url" field predicates. + TokenURL *string `json:"tokenURL,omitempty"` + TokenURLNEQ *string `json:"tokenURLNEQ,omitempty"` + TokenURLIn []string `json:"tokenURLIn,omitempty"` + TokenURLNotIn []string `json:"tokenURLNotIn,omitempty"` + TokenURLGT *string `json:"tokenURLGT,omitempty"` + TokenURLGTE *string `json:"tokenURLGTE,omitempty"` + TokenURLLT *string `json:"tokenURLLT,omitempty"` + TokenURLLTE *string `json:"tokenURLLTE,omitempty"` + TokenURLContains *string `json:"tokenURLContains,omitempty"` + TokenURLHasPrefix *string `json:"tokenURLHasPrefix,omitempty"` + TokenURLHasSuffix *string `json:"tokenURLHasSuffix,omitempty"` + TokenURLEqualFold *string `json:"tokenURLEqualFold,omitempty"` + TokenURLContainsFold *string `json:"tokenURLContainsFold,omitempty"` - // "sync_to_github" field predicates. - SyncToGithub *bool `json:"syncToGithub,omitempty"` - SyncToGithubNEQ *bool `json:"syncToGithubNEQ,omitempty"` - SyncToGithubIsNil bool `json:"syncToGithubIsNil,omitempty"` - SyncToGithubNotNil bool `json:"syncToGithubNotNil,omitempty"` + // "auth_style" field predicates. + AuthStyle *customtypes.Uint8 `json:"authStyle,omitempty"` + AuthStyleNEQ *customtypes.Uint8 `json:"authStyleNEQ,omitempty"` + AuthStyleIn []customtypes.Uint8 `json:"authStyleIn,omitempty"` + AuthStyleNotIn []customtypes.Uint8 `json:"authStyleNotIn,omitempty"` + AuthStyleGT *customtypes.Uint8 `json:"authStyleGT,omitempty"` + AuthStyleGTE *customtypes.Uint8 `json:"authStyleGTE,omitempty"` + AuthStyleLT *customtypes.Uint8 `json:"authStyleLT,omitempty"` + AuthStyleLTE *customtypes.Uint8 `json:"authStyleLTE,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"` - GroupIDGT *string `json:"groupIDGT,omitempty"` - GroupIDGTE *string `json:"groupIDGTE,omitempty"` - GroupIDLT *string `json:"groupIDLT,omitempty"` - GroupIDLTE *string `json:"groupIDLTE,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"` + // "info_url" field predicates. + InfoURL *string `json:"infoURL,omitempty"` + InfoURLNEQ *string `json:"infoURLNEQ,omitempty"` + InfoURLIn []string `json:"infoURLIn,omitempty"` + InfoURLNotIn []string `json:"infoURLNotIn,omitempty"` + InfoURLGT *string `json:"infoURLGT,omitempty"` + InfoURLGTE *string `json:"infoURLGTE,omitempty"` + InfoURLLT *string `json:"infoURLLT,omitempty"` + InfoURLLTE *string `json:"infoURLLTE,omitempty"` + InfoURLContains *string `json:"infoURLContains,omitempty"` + InfoURLHasPrefix *string `json:"infoURLHasPrefix,omitempty"` + InfoURLHasSuffix *string `json:"infoURLHasSuffix,omitempty"` + InfoURLEqualFold *string `json:"infoURLEqualFold,omitempty"` + InfoURLContainsFold *string `json:"infoURLContainsFold,omitempty"` + + // "owner" edge predicates. + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *GroupSettingHistoryWhereInput) AddPredicates(predicates ...predicate.GroupSettingHistory) { +func (i *OauthProviderWhereInput) AddPredicates(predicates ...predicate.OauthProvider) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the GroupSettingHistoryWhereInput filter on the GroupSettingHistoryQuery builder. -func (i *GroupSettingHistoryWhereInput) Filter(q *GroupSettingHistoryQuery) (*GroupSettingHistoryQuery, error) { +// Filter applies the OauthProviderWhereInput filter on the OauthProviderQuery builder. +func (i *OauthProviderWhereInput) Filter(q *OauthProviderQuery) (*OauthProviderQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyGroupSettingHistoryWhereInput { + if err == ErrEmptyOauthProviderWhereInput { return q, nil } return nil, err @@ -21412,19 +37203,19 @@ func (i *GroupSettingHistoryWhereInput) Filter(q *GroupSettingHistoryQuery) (*Gr return q.Where(p), nil } -// ErrEmptyGroupSettingHistoryWhereInput is returned in case the GroupSettingHistoryWhereInput is empty. -var ErrEmptyGroupSettingHistoryWhereInput = errors.New("generated: empty predicate GroupSettingHistoryWhereInput") +// ErrEmptyOauthProviderWhereInput is returned in case the OauthProviderWhereInput is empty. +var ErrEmptyOauthProviderWhereInput = errors.New("generated: empty predicate OauthProviderWhereInput") -// P returns a predicate for filtering groupsettinghistories. +// P returns a predicate for filtering oauthproviders. // An error is returned if the input is empty or invalid. -func (i *GroupSettingHistoryWhereInput) P() (predicate.GroupSettingHistory, error) { - var predicates []predicate.GroupSettingHistory +func (i *OauthProviderWhereInput) P() (predicate.OauthProvider, error) { + var predicates []predicate.OauthProvider if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, groupsettinghistory.Not(p)) + predicates = append(predicates, oauthprovider.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -21434,7 +37225,7 @@ func (i *GroupSettingHistoryWhereInput) P() (predicate.GroupSettingHistory, erro } predicates = append(predicates, p) case n > 1: - or := make([]predicate.GroupSettingHistory, 0, n) + or := make([]predicate.OauthProvider, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -21442,7 +37233,7 @@ func (i *GroupSettingHistoryWhereInput) P() (predicate.GroupSettingHistory, erro } or = append(or, p) } - predicates = append(predicates, groupsettinghistory.Or(or...)) + predicates = append(predicates, oauthprovider.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -21452,7 +37243,7 @@ func (i *GroupSettingHistoryWhereInput) P() (predicate.GroupSettingHistory, erro } predicates = append(predicates, p) case n > 1: - and := make([]predicate.GroupSettingHistory, 0, n) + and := make([]predicate.OauthProvider, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -21460,455 +37251,680 @@ func (i *GroupSettingHistoryWhereInput) P() (predicate.GroupSettingHistory, erro } and = append(and, p) } - predicates = append(predicates, groupsettinghistory.And(and...)) + predicates = append(predicates, oauthprovider.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, groupsettinghistory.IDEQ(*i.ID)) + predicates = append(predicates, oauthprovider.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, groupsettinghistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, oauthprovider.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, groupsettinghistory.IDIn(i.IDIn...)) + predicates = append(predicates, oauthprovider.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, oauthprovider.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, groupsettinghistory.IDGT(*i.IDGT)) + predicates = append(predicates, oauthprovider.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, groupsettinghistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, oauthprovider.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, groupsettinghistory.IDLT(*i.IDLT)) + predicates = append(predicates, oauthprovider.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, groupsettinghistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, oauthprovider.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, groupsettinghistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, oauthprovider.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, groupsettinghistory.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, oauthprovider.IDContainsFold(*i.IDContainsFold)) } - if i.HistoryTime != nil { - predicates = append(predicates, groupsettinghistory.HistoryTimeEQ(*i.HistoryTime)) + if i.CreatedAt != nil { + predicates = append(predicates, oauthprovider.CreatedAtEQ(*i.CreatedAt)) } - if i.HistoryTimeNEQ != nil { - predicates = append(predicates, groupsettinghistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + if i.CreatedAtNEQ != nil { + predicates = append(predicates, oauthprovider.CreatedAtNEQ(*i.CreatedAtNEQ)) } - if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, groupsettinghistory.HistoryTimeIn(i.HistoryTimeIn...)) + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, oauthprovider.CreatedAtIn(i.CreatedAtIn...)) } - if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, oauthprovider.CreatedAtNotIn(i.CreatedAtNotIn...)) } - if i.HistoryTimeGT != nil { - predicates = append(predicates, groupsettinghistory.HistoryTimeGT(*i.HistoryTimeGT)) + if i.CreatedAtGT != nil { + predicates = append(predicates, oauthprovider.CreatedAtGT(*i.CreatedAtGT)) } - if i.HistoryTimeGTE != nil { - predicates = append(predicates, groupsettinghistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + if i.CreatedAtGTE != nil { + predicates = append(predicates, oauthprovider.CreatedAtGTE(*i.CreatedAtGTE)) } - if i.HistoryTimeLT != nil { - predicates = append(predicates, groupsettinghistory.HistoryTimeLT(*i.HistoryTimeLT)) + if i.CreatedAtLT != nil { + predicates = append(predicates, oauthprovider.CreatedAtLT(*i.CreatedAtLT)) } - if i.HistoryTimeLTE != nil { - predicates = append(predicates, groupsettinghistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + if i.CreatedAtLTE != nil { + predicates = append(predicates, oauthprovider.CreatedAtLTE(*i.CreatedAtLTE)) } - if i.Ref != nil { - predicates = append(predicates, groupsettinghistory.RefEQ(*i.Ref)) + if i.CreatedAtIsNil { + predicates = append(predicates, oauthprovider.CreatedAtIsNil()) } - if i.RefNEQ != nil { - predicates = append(predicates, groupsettinghistory.RefNEQ(*i.RefNEQ)) + if i.CreatedAtNotNil { + predicates = append(predicates, oauthprovider.CreatedAtNotNil()) } - if len(i.RefIn) > 0 { - predicates = append(predicates, groupsettinghistory.RefIn(i.RefIn...)) + if i.UpdatedAt != nil { + predicates = append(predicates, oauthprovider.UpdatedAtEQ(*i.UpdatedAt)) } - if len(i.RefNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.RefNotIn(i.RefNotIn...)) + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, oauthprovider.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } - if i.RefGT != nil { - predicates = append(predicates, groupsettinghistory.RefGT(*i.RefGT)) + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, oauthprovider.UpdatedAtIn(i.UpdatedAtIn...)) } - if i.RefGTE != nil { - predicates = append(predicates, groupsettinghistory.RefGTE(*i.RefGTE)) + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, oauthprovider.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } - if i.RefLT != nil { - predicates = append(predicates, groupsettinghistory.RefLT(*i.RefLT)) + if i.UpdatedAtGT != nil { + predicates = append(predicates, oauthprovider.UpdatedAtGT(*i.UpdatedAtGT)) } - if i.RefLTE != nil { - predicates = append(predicates, groupsettinghistory.RefLTE(*i.RefLTE)) + if i.UpdatedAtGTE != nil { + predicates = append(predicates, oauthprovider.UpdatedAtGTE(*i.UpdatedAtGTE)) } - if i.RefContains != nil { - predicates = append(predicates, groupsettinghistory.RefContains(*i.RefContains)) + if i.UpdatedAtLT != nil { + predicates = append(predicates, oauthprovider.UpdatedAtLT(*i.UpdatedAtLT)) } - if i.RefHasPrefix != nil { - predicates = append(predicates, groupsettinghistory.RefHasPrefix(*i.RefHasPrefix)) + if i.UpdatedAtLTE != nil { + predicates = append(predicates, oauthprovider.UpdatedAtLTE(*i.UpdatedAtLTE)) } - if i.RefHasSuffix != nil { - predicates = append(predicates, groupsettinghistory.RefHasSuffix(*i.RefHasSuffix)) + if i.UpdatedAtIsNil { + predicates = append(predicates, oauthprovider.UpdatedAtIsNil()) } - if i.RefIsNil { - predicates = append(predicates, groupsettinghistory.RefIsNil()) + if i.UpdatedAtNotNil { + predicates = append(predicates, oauthprovider.UpdatedAtNotNil()) } - if i.RefNotNil { - predicates = append(predicates, groupsettinghistory.RefNotNil()) + if i.CreatedBy != nil { + predicates = append(predicates, oauthprovider.CreatedByEQ(*i.CreatedBy)) } - if i.RefEqualFold != nil { - predicates = append(predicates, groupsettinghistory.RefEqualFold(*i.RefEqualFold)) + if i.CreatedByNEQ != nil { + predicates = append(predicates, oauthprovider.CreatedByNEQ(*i.CreatedByNEQ)) } - if i.RefContainsFold != nil { - predicates = append(predicates, groupsettinghistory.RefContainsFold(*i.RefContainsFold)) + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, oauthprovider.CreatedByIn(i.CreatedByIn...)) } - if i.Operation != nil { - predicates = append(predicates, groupsettinghistory.OperationEQ(*i.Operation)) + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, oauthprovider.CreatedByNotIn(i.CreatedByNotIn...)) } - if i.OperationNEQ != nil { - predicates = append(predicates, groupsettinghistory.OperationNEQ(*i.OperationNEQ)) + if i.CreatedByGT != nil { + predicates = append(predicates, oauthprovider.CreatedByGT(*i.CreatedByGT)) } - if len(i.OperationIn) > 0 { - predicates = append(predicates, groupsettinghistory.OperationIn(i.OperationIn...)) + if i.CreatedByGTE != nil { + predicates = append(predicates, oauthprovider.CreatedByGTE(*i.CreatedByGTE)) } - if len(i.OperationNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.OperationNotIn(i.OperationNotIn...)) + if i.CreatedByLT != nil { + predicates = append(predicates, oauthprovider.CreatedByLT(*i.CreatedByLT)) } - if i.CreatedAt != nil { - predicates = append(predicates, groupsettinghistory.CreatedAtEQ(*i.CreatedAt)) + if i.CreatedByLTE != nil { + predicates = append(predicates, oauthprovider.CreatedByLTE(*i.CreatedByLTE)) } - if i.CreatedAtNEQ != nil { - predicates = append(predicates, groupsettinghistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + if i.CreatedByContains != nil { + predicates = append(predicates, oauthprovider.CreatedByContains(*i.CreatedByContains)) } - if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, groupsettinghistory.CreatedAtIn(i.CreatedAtIn...)) + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, oauthprovider.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } - if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, oauthprovider.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } - if i.CreatedAtGT != nil { - predicates = append(predicates, groupsettinghistory.CreatedAtGT(*i.CreatedAtGT)) + if i.CreatedByIsNil { + predicates = append(predicates, oauthprovider.CreatedByIsNil()) } - if i.CreatedAtGTE != nil { - predicates = append(predicates, groupsettinghistory.CreatedAtGTE(*i.CreatedAtGTE)) + if i.CreatedByNotNil { + predicates = append(predicates, oauthprovider.CreatedByNotNil()) } - if i.CreatedAtLT != nil { - predicates = append(predicates, groupsettinghistory.CreatedAtLT(*i.CreatedAtLT)) + if i.CreatedByEqualFold != nil { + predicates = append(predicates, oauthprovider.CreatedByEqualFold(*i.CreatedByEqualFold)) } - if i.CreatedAtLTE != nil { - predicates = append(predicates, groupsettinghistory.CreatedAtLTE(*i.CreatedAtLTE)) + if i.CreatedByContainsFold != nil { + predicates = append(predicates, oauthprovider.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, oauthprovider.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, oauthprovider.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, oauthprovider.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, oauthprovider.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, oauthprovider.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, oauthprovider.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, oauthprovider.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, oauthprovider.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, oauthprovider.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, oauthprovider.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, oauthprovider.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, oauthprovider.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, oauthprovider.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, oauthprovider.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, oauthprovider.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, oauthprovider.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, oauthprovider.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, oauthprovider.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, oauthprovider.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, oauthprovider.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, oauthprovider.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, oauthprovider.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, oauthprovider.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, oauthprovider.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, oauthprovider.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, oauthprovider.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, oauthprovider.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, oauthprovider.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, oauthprovider.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, oauthprovider.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, oauthprovider.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, oauthprovider.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, oauthprovider.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, oauthprovider.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, oauthprovider.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, oauthprovider.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, oauthprovider.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, oauthprovider.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, oauthprovider.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, oauthprovider.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.OwnerID != nil { + predicates = append(predicates, oauthprovider.OwnerIDEQ(*i.OwnerID)) + } + if i.OwnerIDNEQ != nil { + predicates = append(predicates, oauthprovider.OwnerIDNEQ(*i.OwnerIDNEQ)) + } + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, oauthprovider.OwnerIDIn(i.OwnerIDIn...)) + } + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, oauthprovider.OwnerIDNotIn(i.OwnerIDNotIn...)) + } + if i.OwnerIDGT != nil { + predicates = append(predicates, oauthprovider.OwnerIDGT(*i.OwnerIDGT)) + } + if i.OwnerIDGTE != nil { + predicates = append(predicates, oauthprovider.OwnerIDGTE(*i.OwnerIDGTE)) + } + if i.OwnerIDLT != nil { + predicates = append(predicates, oauthprovider.OwnerIDLT(*i.OwnerIDLT)) + } + if i.OwnerIDLTE != nil { + predicates = append(predicates, oauthprovider.OwnerIDLTE(*i.OwnerIDLTE)) + } + if i.OwnerIDContains != nil { + predicates = append(predicates, oauthprovider.OwnerIDContains(*i.OwnerIDContains)) + } + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, oauthprovider.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + } + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, oauthprovider.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + } + if i.OwnerIDIsNil { + predicates = append(predicates, oauthprovider.OwnerIDIsNil()) + } + if i.OwnerIDNotNil { + predicates = append(predicates, oauthprovider.OwnerIDNotNil()) + } + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, oauthprovider.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + } + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, oauthprovider.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, oauthprovider.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, oauthprovider.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, oauthprovider.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, oauthprovider.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, oauthprovider.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, oauthprovider.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, oauthprovider.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, oauthprovider.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, oauthprovider.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, oauthprovider.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, oauthprovider.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, oauthprovider.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, oauthprovider.NameContainsFold(*i.NameContainsFold)) + } + if i.ClientID != nil { + predicates = append(predicates, oauthprovider.ClientIDEQ(*i.ClientID)) } - if i.CreatedAtIsNil { - predicates = append(predicates, groupsettinghistory.CreatedAtIsNil()) + if i.ClientIDNEQ != nil { + predicates = append(predicates, oauthprovider.ClientIDNEQ(*i.ClientIDNEQ)) } - if i.CreatedAtNotNil { - predicates = append(predicates, groupsettinghistory.CreatedAtNotNil()) + if len(i.ClientIDIn) > 0 { + predicates = append(predicates, oauthprovider.ClientIDIn(i.ClientIDIn...)) } - if i.UpdatedAt != nil { - predicates = append(predicates, groupsettinghistory.UpdatedAtEQ(*i.UpdatedAt)) + if len(i.ClientIDNotIn) > 0 { + predicates = append(predicates, oauthprovider.ClientIDNotIn(i.ClientIDNotIn...)) } - if i.UpdatedAtNEQ != nil { - predicates = append(predicates, groupsettinghistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + if i.ClientIDGT != nil { + predicates = append(predicates, oauthprovider.ClientIDGT(*i.ClientIDGT)) } - if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, groupsettinghistory.UpdatedAtIn(i.UpdatedAtIn...)) + if i.ClientIDGTE != nil { + predicates = append(predicates, oauthprovider.ClientIDGTE(*i.ClientIDGTE)) } - if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + if i.ClientIDLT != nil { + predicates = append(predicates, oauthprovider.ClientIDLT(*i.ClientIDLT)) } - if i.UpdatedAtGT != nil { - predicates = append(predicates, groupsettinghistory.UpdatedAtGT(*i.UpdatedAtGT)) + if i.ClientIDLTE != nil { + predicates = append(predicates, oauthprovider.ClientIDLTE(*i.ClientIDLTE)) } - if i.UpdatedAtGTE != nil { - predicates = append(predicates, groupsettinghistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + if i.ClientIDContains != nil { + predicates = append(predicates, oauthprovider.ClientIDContains(*i.ClientIDContains)) } - if i.UpdatedAtLT != nil { - predicates = append(predicates, groupsettinghistory.UpdatedAtLT(*i.UpdatedAtLT)) + if i.ClientIDHasPrefix != nil { + predicates = append(predicates, oauthprovider.ClientIDHasPrefix(*i.ClientIDHasPrefix)) } - if i.UpdatedAtLTE != nil { - predicates = append(predicates, groupsettinghistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + if i.ClientIDHasSuffix != nil { + predicates = append(predicates, oauthprovider.ClientIDHasSuffix(*i.ClientIDHasSuffix)) } - if i.UpdatedAtIsNil { - predicates = append(predicates, groupsettinghistory.UpdatedAtIsNil()) + if i.ClientIDEqualFold != nil { + predicates = append(predicates, oauthprovider.ClientIDEqualFold(*i.ClientIDEqualFold)) } - if i.UpdatedAtNotNil { - predicates = append(predicates, groupsettinghistory.UpdatedAtNotNil()) + if i.ClientIDContainsFold != nil { + predicates = append(predicates, oauthprovider.ClientIDContainsFold(*i.ClientIDContainsFold)) } - if i.CreatedBy != nil { - predicates = append(predicates, groupsettinghistory.CreatedByEQ(*i.CreatedBy)) + if i.ClientSecret != nil { + predicates = append(predicates, oauthprovider.ClientSecretEQ(*i.ClientSecret)) } - if i.CreatedByNEQ != nil { - predicates = append(predicates, groupsettinghistory.CreatedByNEQ(*i.CreatedByNEQ)) + if i.ClientSecretNEQ != nil { + predicates = append(predicates, oauthprovider.ClientSecretNEQ(*i.ClientSecretNEQ)) } - if len(i.CreatedByIn) > 0 { - predicates = append(predicates, groupsettinghistory.CreatedByIn(i.CreatedByIn...)) + if len(i.ClientSecretIn) > 0 { + predicates = append(predicates, oauthprovider.ClientSecretIn(i.ClientSecretIn...)) } - if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.CreatedByNotIn(i.CreatedByNotIn...)) + if len(i.ClientSecretNotIn) > 0 { + predicates = append(predicates, oauthprovider.ClientSecretNotIn(i.ClientSecretNotIn...)) } - if i.CreatedByGT != nil { - predicates = append(predicates, groupsettinghistory.CreatedByGT(*i.CreatedByGT)) + if i.ClientSecretGT != nil { + predicates = append(predicates, oauthprovider.ClientSecretGT(*i.ClientSecretGT)) } - if i.CreatedByGTE != nil { - predicates = append(predicates, groupsettinghistory.CreatedByGTE(*i.CreatedByGTE)) + if i.ClientSecretGTE != nil { + predicates = append(predicates, oauthprovider.ClientSecretGTE(*i.ClientSecretGTE)) } - if i.CreatedByLT != nil { - predicates = append(predicates, groupsettinghistory.CreatedByLT(*i.CreatedByLT)) + if i.ClientSecretLT != nil { + predicates = append(predicates, oauthprovider.ClientSecretLT(*i.ClientSecretLT)) } - if i.CreatedByLTE != nil { - predicates = append(predicates, groupsettinghistory.CreatedByLTE(*i.CreatedByLTE)) + if i.ClientSecretLTE != nil { + predicates = append(predicates, oauthprovider.ClientSecretLTE(*i.ClientSecretLTE)) } - if i.CreatedByContains != nil { - predicates = append(predicates, groupsettinghistory.CreatedByContains(*i.CreatedByContains)) + if i.ClientSecretContains != nil { + predicates = append(predicates, oauthprovider.ClientSecretContains(*i.ClientSecretContains)) } - if i.CreatedByHasPrefix != nil { - predicates = append(predicates, groupsettinghistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + if i.ClientSecretHasPrefix != nil { + predicates = append(predicates, oauthprovider.ClientSecretHasPrefix(*i.ClientSecretHasPrefix)) } - if i.CreatedByHasSuffix != nil { - predicates = append(predicates, groupsettinghistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + if i.ClientSecretHasSuffix != nil { + predicates = append(predicates, oauthprovider.ClientSecretHasSuffix(*i.ClientSecretHasSuffix)) } - if i.CreatedByIsNil { - predicates = append(predicates, groupsettinghistory.CreatedByIsNil()) + if i.ClientSecretEqualFold != nil { + predicates = append(predicates, oauthprovider.ClientSecretEqualFold(*i.ClientSecretEqualFold)) } - if i.CreatedByNotNil { - predicates = append(predicates, groupsettinghistory.CreatedByNotNil()) + if i.ClientSecretContainsFold != nil { + predicates = append(predicates, oauthprovider.ClientSecretContainsFold(*i.ClientSecretContainsFold)) } - if i.CreatedByEqualFold != nil { - predicates = append(predicates, groupsettinghistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + if i.RedirectURL != nil { + predicates = append(predicates, oauthprovider.RedirectURLEQ(*i.RedirectURL)) } - if i.CreatedByContainsFold != nil { - predicates = append(predicates, groupsettinghistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + if i.RedirectURLNEQ != nil { + predicates = append(predicates, oauthprovider.RedirectURLNEQ(*i.RedirectURLNEQ)) } - if i.UpdatedBy != nil { - predicates = append(predicates, groupsettinghistory.UpdatedByEQ(*i.UpdatedBy)) + if len(i.RedirectURLIn) > 0 { + predicates = append(predicates, oauthprovider.RedirectURLIn(i.RedirectURLIn...)) } - if i.UpdatedByNEQ != nil { - predicates = append(predicates, groupsettinghistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + if len(i.RedirectURLNotIn) > 0 { + predicates = append(predicates, oauthprovider.RedirectURLNotIn(i.RedirectURLNotIn...)) } - if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, groupsettinghistory.UpdatedByIn(i.UpdatedByIn...)) + if i.RedirectURLGT != nil { + predicates = append(predicates, oauthprovider.RedirectURLGT(*i.RedirectURLGT)) } - if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + if i.RedirectURLGTE != nil { + predicates = append(predicates, oauthprovider.RedirectURLGTE(*i.RedirectURLGTE)) } - if i.UpdatedByGT != nil { - predicates = append(predicates, groupsettinghistory.UpdatedByGT(*i.UpdatedByGT)) + if i.RedirectURLLT != nil { + predicates = append(predicates, oauthprovider.RedirectURLLT(*i.RedirectURLLT)) } - if i.UpdatedByGTE != nil { - predicates = append(predicates, groupsettinghistory.UpdatedByGTE(*i.UpdatedByGTE)) + if i.RedirectURLLTE != nil { + predicates = append(predicates, oauthprovider.RedirectURLLTE(*i.RedirectURLLTE)) } - if i.UpdatedByLT != nil { - predicates = append(predicates, groupsettinghistory.UpdatedByLT(*i.UpdatedByLT)) + if i.RedirectURLContains != nil { + predicates = append(predicates, oauthprovider.RedirectURLContains(*i.RedirectURLContains)) } - if i.UpdatedByLTE != nil { - predicates = append(predicates, groupsettinghistory.UpdatedByLTE(*i.UpdatedByLTE)) + if i.RedirectURLHasPrefix != nil { + predicates = append(predicates, oauthprovider.RedirectURLHasPrefix(*i.RedirectURLHasPrefix)) } - if i.UpdatedByContains != nil { - predicates = append(predicates, groupsettinghistory.UpdatedByContains(*i.UpdatedByContains)) + if i.RedirectURLHasSuffix != nil { + predicates = append(predicates, oauthprovider.RedirectURLHasSuffix(*i.RedirectURLHasSuffix)) } - if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, groupsettinghistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + if i.RedirectURLEqualFold != nil { + predicates = append(predicates, oauthprovider.RedirectURLEqualFold(*i.RedirectURLEqualFold)) } - if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, groupsettinghistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + if i.RedirectURLContainsFold != nil { + predicates = append(predicates, oauthprovider.RedirectURLContainsFold(*i.RedirectURLContainsFold)) } - if i.UpdatedByIsNil { - predicates = append(predicates, groupsettinghistory.UpdatedByIsNil()) + if i.Scopes != nil { + predicates = append(predicates, oauthprovider.ScopesEQ(*i.Scopes)) } - if i.UpdatedByNotNil { - predicates = append(predicates, groupsettinghistory.UpdatedByNotNil()) + if i.ScopesNEQ != nil { + predicates = append(predicates, oauthprovider.ScopesNEQ(*i.ScopesNEQ)) } - if i.UpdatedByEqualFold != nil { - predicates = append(predicates, groupsettinghistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + if len(i.ScopesIn) > 0 { + predicates = append(predicates, oauthprovider.ScopesIn(i.ScopesIn...)) } - if i.UpdatedByContainsFold != nil { - predicates = append(predicates, groupsettinghistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + if len(i.ScopesNotIn) > 0 { + predicates = append(predicates, oauthprovider.ScopesNotIn(i.ScopesNotIn...)) } - if i.DeletedAt != nil { - predicates = append(predicates, groupsettinghistory.DeletedAtEQ(*i.DeletedAt)) + if i.ScopesGT != nil { + predicates = append(predicates, oauthprovider.ScopesGT(*i.ScopesGT)) } - if i.DeletedAtNEQ != nil { - predicates = append(predicates, groupsettinghistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + if i.ScopesGTE != nil { + predicates = append(predicates, oauthprovider.ScopesGTE(*i.ScopesGTE)) } - if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, groupsettinghistory.DeletedAtIn(i.DeletedAtIn...)) + if i.ScopesLT != nil { + predicates = append(predicates, oauthprovider.ScopesLT(*i.ScopesLT)) } - if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + if i.ScopesLTE != nil { + predicates = append(predicates, oauthprovider.ScopesLTE(*i.ScopesLTE)) } - if i.DeletedAtGT != nil { - predicates = append(predicates, groupsettinghistory.DeletedAtGT(*i.DeletedAtGT)) + if i.ScopesContains != nil { + predicates = append(predicates, oauthprovider.ScopesContains(*i.ScopesContains)) } - if i.DeletedAtGTE != nil { - predicates = append(predicates, groupsettinghistory.DeletedAtGTE(*i.DeletedAtGTE)) + if i.ScopesHasPrefix != nil { + predicates = append(predicates, oauthprovider.ScopesHasPrefix(*i.ScopesHasPrefix)) } - if i.DeletedAtLT != nil { - predicates = append(predicates, groupsettinghistory.DeletedAtLT(*i.DeletedAtLT)) + if i.ScopesHasSuffix != nil { + predicates = append(predicates, oauthprovider.ScopesHasSuffix(*i.ScopesHasSuffix)) } - if i.DeletedAtLTE != nil { - predicates = append(predicates, groupsettinghistory.DeletedAtLTE(*i.DeletedAtLTE)) + if i.ScopesEqualFold != nil { + predicates = append(predicates, oauthprovider.ScopesEqualFold(*i.ScopesEqualFold)) } - if i.DeletedAtIsNil { - predicates = append(predicates, groupsettinghistory.DeletedAtIsNil()) + if i.ScopesContainsFold != nil { + predicates = append(predicates, oauthprovider.ScopesContainsFold(*i.ScopesContainsFold)) } - if i.DeletedAtNotNil { - predicates = append(predicates, groupsettinghistory.DeletedAtNotNil()) + if i.AuthURL != nil { + predicates = append(predicates, oauthprovider.AuthURLEQ(*i.AuthURL)) } - if i.DeletedBy != nil { - predicates = append(predicates, groupsettinghistory.DeletedByEQ(*i.DeletedBy)) + if i.AuthURLNEQ != nil { + predicates = append(predicates, oauthprovider.AuthURLNEQ(*i.AuthURLNEQ)) } - if i.DeletedByNEQ != nil { - predicates = append(predicates, groupsettinghistory.DeletedByNEQ(*i.DeletedByNEQ)) + if len(i.AuthURLIn) > 0 { + predicates = append(predicates, oauthprovider.AuthURLIn(i.AuthURLIn...)) } - if len(i.DeletedByIn) > 0 { - predicates = append(predicates, groupsettinghistory.DeletedByIn(i.DeletedByIn...)) + if len(i.AuthURLNotIn) > 0 { + predicates = append(predicates, oauthprovider.AuthURLNotIn(i.AuthURLNotIn...)) } - if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.DeletedByNotIn(i.DeletedByNotIn...)) + if i.AuthURLGT != nil { + predicates = append(predicates, oauthprovider.AuthURLGT(*i.AuthURLGT)) } - if i.DeletedByGT != nil { - predicates = append(predicates, groupsettinghistory.DeletedByGT(*i.DeletedByGT)) + if i.AuthURLGTE != nil { + predicates = append(predicates, oauthprovider.AuthURLGTE(*i.AuthURLGTE)) } - if i.DeletedByGTE != nil { - predicates = append(predicates, groupsettinghistory.DeletedByGTE(*i.DeletedByGTE)) + if i.AuthURLLT != nil { + predicates = append(predicates, oauthprovider.AuthURLLT(*i.AuthURLLT)) } - if i.DeletedByLT != nil { - predicates = append(predicates, groupsettinghistory.DeletedByLT(*i.DeletedByLT)) + if i.AuthURLLTE != nil { + predicates = append(predicates, oauthprovider.AuthURLLTE(*i.AuthURLLTE)) } - if i.DeletedByLTE != nil { - predicates = append(predicates, groupsettinghistory.DeletedByLTE(*i.DeletedByLTE)) + if i.AuthURLContains != nil { + predicates = append(predicates, oauthprovider.AuthURLContains(*i.AuthURLContains)) } - if i.DeletedByContains != nil { - predicates = append(predicates, groupsettinghistory.DeletedByContains(*i.DeletedByContains)) + if i.AuthURLHasPrefix != nil { + predicates = append(predicates, oauthprovider.AuthURLHasPrefix(*i.AuthURLHasPrefix)) } - if i.DeletedByHasPrefix != nil { - predicates = append(predicates, groupsettinghistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + if i.AuthURLHasSuffix != nil { + predicates = append(predicates, oauthprovider.AuthURLHasSuffix(*i.AuthURLHasSuffix)) } - if i.DeletedByHasSuffix != nil { - predicates = append(predicates, groupsettinghistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + if i.AuthURLEqualFold != nil { + predicates = append(predicates, oauthprovider.AuthURLEqualFold(*i.AuthURLEqualFold)) } - if i.DeletedByIsNil { - predicates = append(predicates, groupsettinghistory.DeletedByIsNil()) + if i.AuthURLContainsFold != nil { + predicates = append(predicates, oauthprovider.AuthURLContainsFold(*i.AuthURLContainsFold)) } - if i.DeletedByNotNil { - predicates = append(predicates, groupsettinghistory.DeletedByNotNil()) + if i.TokenURL != nil { + predicates = append(predicates, oauthprovider.TokenURLEQ(*i.TokenURL)) } - if i.DeletedByEqualFold != nil { - predicates = append(predicates, groupsettinghistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + if i.TokenURLNEQ != nil { + predicates = append(predicates, oauthprovider.TokenURLNEQ(*i.TokenURLNEQ)) } - if i.DeletedByContainsFold != nil { - predicates = append(predicates, groupsettinghistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + if len(i.TokenURLIn) > 0 { + predicates = append(predicates, oauthprovider.TokenURLIn(i.TokenURLIn...)) } - if i.Visibility != nil { - predicates = append(predicates, groupsettinghistory.VisibilityEQ(*i.Visibility)) + if len(i.TokenURLNotIn) > 0 { + predicates = append(predicates, oauthprovider.TokenURLNotIn(i.TokenURLNotIn...)) } - if i.VisibilityNEQ != nil { - predicates = append(predicates, groupsettinghistory.VisibilityNEQ(*i.VisibilityNEQ)) + if i.TokenURLGT != nil { + predicates = append(predicates, oauthprovider.TokenURLGT(*i.TokenURLGT)) } - if len(i.VisibilityIn) > 0 { - predicates = append(predicates, groupsettinghistory.VisibilityIn(i.VisibilityIn...)) + if i.TokenURLGTE != nil { + predicates = append(predicates, oauthprovider.TokenURLGTE(*i.TokenURLGTE)) } - if len(i.VisibilityNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.VisibilityNotIn(i.VisibilityNotIn...)) + if i.TokenURLLT != nil { + predicates = append(predicates, oauthprovider.TokenURLLT(*i.TokenURLLT)) } - if i.JoinPolicy != nil { - predicates = append(predicates, groupsettinghistory.JoinPolicyEQ(*i.JoinPolicy)) + if i.TokenURLLTE != nil { + predicates = append(predicates, oauthprovider.TokenURLLTE(*i.TokenURLLTE)) } - if i.JoinPolicyNEQ != nil { - predicates = append(predicates, groupsettinghistory.JoinPolicyNEQ(*i.JoinPolicyNEQ)) + if i.TokenURLContains != nil { + predicates = append(predicates, oauthprovider.TokenURLContains(*i.TokenURLContains)) } - if len(i.JoinPolicyIn) > 0 { - predicates = append(predicates, groupsettinghistory.JoinPolicyIn(i.JoinPolicyIn...)) + if i.TokenURLHasPrefix != nil { + predicates = append(predicates, oauthprovider.TokenURLHasPrefix(*i.TokenURLHasPrefix)) } - if len(i.JoinPolicyNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.JoinPolicyNotIn(i.JoinPolicyNotIn...)) + if i.TokenURLHasSuffix != nil { + predicates = append(predicates, oauthprovider.TokenURLHasSuffix(*i.TokenURLHasSuffix)) } - if i.SyncToSlack != nil { - predicates = append(predicates, groupsettinghistory.SyncToSlackEQ(*i.SyncToSlack)) + if i.TokenURLEqualFold != nil { + predicates = append(predicates, oauthprovider.TokenURLEqualFold(*i.TokenURLEqualFold)) } - if i.SyncToSlackNEQ != nil { - predicates = append(predicates, groupsettinghistory.SyncToSlackNEQ(*i.SyncToSlackNEQ)) + if i.TokenURLContainsFold != nil { + predicates = append(predicates, oauthprovider.TokenURLContainsFold(*i.TokenURLContainsFold)) } - if i.SyncToSlackIsNil { - predicates = append(predicates, groupsettinghistory.SyncToSlackIsNil()) + if i.AuthStyle != nil { + predicates = append(predicates, oauthprovider.AuthStyleEQ(*i.AuthStyle)) } - if i.SyncToSlackNotNil { - predicates = append(predicates, groupsettinghistory.SyncToSlackNotNil()) + if i.AuthStyleNEQ != nil { + predicates = append(predicates, oauthprovider.AuthStyleNEQ(*i.AuthStyleNEQ)) } - if i.SyncToGithub != nil { - predicates = append(predicates, groupsettinghistory.SyncToGithubEQ(*i.SyncToGithub)) + if len(i.AuthStyleIn) > 0 { + predicates = append(predicates, oauthprovider.AuthStyleIn(i.AuthStyleIn...)) } - if i.SyncToGithubNEQ != nil { - predicates = append(predicates, groupsettinghistory.SyncToGithubNEQ(*i.SyncToGithubNEQ)) + if len(i.AuthStyleNotIn) > 0 { + predicates = append(predicates, oauthprovider.AuthStyleNotIn(i.AuthStyleNotIn...)) } - if i.SyncToGithubIsNil { - predicates = append(predicates, groupsettinghistory.SyncToGithubIsNil()) + if i.AuthStyleGT != nil { + predicates = append(predicates, oauthprovider.AuthStyleGT(*i.AuthStyleGT)) } - if i.SyncToGithubNotNil { - predicates = append(predicates, groupsettinghistory.SyncToGithubNotNil()) + if i.AuthStyleGTE != nil { + predicates = append(predicates, oauthprovider.AuthStyleGTE(*i.AuthStyleGTE)) } - if i.GroupID != nil { - predicates = append(predicates, groupsettinghistory.GroupIDEQ(*i.GroupID)) + if i.AuthStyleLT != nil { + predicates = append(predicates, oauthprovider.AuthStyleLT(*i.AuthStyleLT)) } - if i.GroupIDNEQ != nil { - predicates = append(predicates, groupsettinghistory.GroupIDNEQ(*i.GroupIDNEQ)) + if i.AuthStyleLTE != nil { + predicates = append(predicates, oauthprovider.AuthStyleLTE(*i.AuthStyleLTE)) } - if len(i.GroupIDIn) > 0 { - predicates = append(predicates, groupsettinghistory.GroupIDIn(i.GroupIDIn...)) + if i.InfoURL != nil { + predicates = append(predicates, oauthprovider.InfoURLEQ(*i.InfoURL)) } - if len(i.GroupIDNotIn) > 0 { - predicates = append(predicates, groupsettinghistory.GroupIDNotIn(i.GroupIDNotIn...)) + if i.InfoURLNEQ != nil { + predicates = append(predicates, oauthprovider.InfoURLNEQ(*i.InfoURLNEQ)) } - if i.GroupIDGT != nil { - predicates = append(predicates, groupsettinghistory.GroupIDGT(*i.GroupIDGT)) + if len(i.InfoURLIn) > 0 { + predicates = append(predicates, oauthprovider.InfoURLIn(i.InfoURLIn...)) } - if i.GroupIDGTE != nil { - predicates = append(predicates, groupsettinghistory.GroupIDGTE(*i.GroupIDGTE)) + if len(i.InfoURLNotIn) > 0 { + predicates = append(predicates, oauthprovider.InfoURLNotIn(i.InfoURLNotIn...)) } - if i.GroupIDLT != nil { - predicates = append(predicates, groupsettinghistory.GroupIDLT(*i.GroupIDLT)) + if i.InfoURLGT != nil { + predicates = append(predicates, oauthprovider.InfoURLGT(*i.InfoURLGT)) } - if i.GroupIDLTE != nil { - predicates = append(predicates, groupsettinghistory.GroupIDLTE(*i.GroupIDLTE)) + if i.InfoURLGTE != nil { + predicates = append(predicates, oauthprovider.InfoURLGTE(*i.InfoURLGTE)) } - if i.GroupIDContains != nil { - predicates = append(predicates, groupsettinghistory.GroupIDContains(*i.GroupIDContains)) + if i.InfoURLLT != nil { + predicates = append(predicates, oauthprovider.InfoURLLT(*i.InfoURLLT)) } - if i.GroupIDHasPrefix != nil { - predicates = append(predicates, groupsettinghistory.GroupIDHasPrefix(*i.GroupIDHasPrefix)) + if i.InfoURLLTE != nil { + predicates = append(predicates, oauthprovider.InfoURLLTE(*i.InfoURLLTE)) } - if i.GroupIDHasSuffix != nil { - predicates = append(predicates, groupsettinghistory.GroupIDHasSuffix(*i.GroupIDHasSuffix)) + if i.InfoURLContains != nil { + predicates = append(predicates, oauthprovider.InfoURLContains(*i.InfoURLContains)) } - if i.GroupIDIsNil { - predicates = append(predicates, groupsettinghistory.GroupIDIsNil()) + if i.InfoURLHasPrefix != nil { + predicates = append(predicates, oauthprovider.InfoURLHasPrefix(*i.InfoURLHasPrefix)) } - if i.GroupIDNotNil { - predicates = append(predicates, groupsettinghistory.GroupIDNotNil()) + if i.InfoURLHasSuffix != nil { + predicates = append(predicates, oauthprovider.InfoURLHasSuffix(*i.InfoURLHasSuffix)) } - if i.GroupIDEqualFold != nil { - predicates = append(predicates, groupsettinghistory.GroupIDEqualFold(*i.GroupIDEqualFold)) + if i.InfoURLEqualFold != nil { + predicates = append(predicates, oauthprovider.InfoURLEqualFold(*i.InfoURLEqualFold)) } - if i.GroupIDContainsFold != nil { - predicates = append(predicates, groupsettinghistory.GroupIDContainsFold(*i.GroupIDContainsFold)) + if i.InfoURLContainsFold != nil { + predicates = append(predicates, oauthprovider.InfoURLContainsFold(*i.InfoURLContainsFold)) } + if i.HasOwner != nil { + p := oauthprovider.HasOwner() + if !*i.HasOwner { + p = oauthprovider.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOwnerWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) + 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, oauthprovider.HasOwnerWith(with...)) + } switch len(predicates) { case 0: - return nil, ErrEmptyGroupSettingHistoryWhereInput + return nil, ErrEmptyOauthProviderWhereInput case 1: return predicates[0], nil default: - return groupsettinghistory.And(predicates...), nil + return oauthprovider.And(predicates...), nil } } -// HushWhereInput represents a where input for filtering Hush queries. -type HushWhereInput struct { - Predicates []predicate.Hush `json:"-"` - Not *HushWhereInput `json:"not,omitempty"` - Or []*HushWhereInput `json:"or,omitempty"` - And []*HushWhereInput `json:"and,omitempty"` +// OauthProviderHistoryWhereInput represents a where input for filtering OauthProviderHistory queries. +type OauthProviderHistoryWhereInput struct { + Predicates []predicate.OauthProviderHistory `json:"-"` + Not *OauthProviderHistoryWhereInput `json:"not,omitempty"` + Or []*OauthProviderHistoryWhereInput `json:"or,omitempty"` + And []*OauthProviderHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -21922,6 +37938,39 @@ type HushWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -22009,6 +38058,23 @@ type HushWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIDGT *string `json:"ownerIDGT,omitempty"` + OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` + OwnerIDLT *string `json:"ownerIDLT,omitempty"` + OwnerIDLTE *string `json:"ownerIDLTE,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"` @@ -22024,66 +38090,135 @@ type HushWhereInput struct { NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` - // "kind" field predicates. - Kind *string `json:"kind,omitempty"` - KindNEQ *string `json:"kindNEQ,omitempty"` - KindIn []string `json:"kindIn,omitempty"` - KindNotIn []string `json:"kindNotIn,omitempty"` - KindGT *string `json:"kindGT,omitempty"` - KindGTE *string `json:"kindGTE,omitempty"` - KindLT *string `json:"kindLT,omitempty"` - KindLTE *string `json:"kindLTE,omitempty"` - KindContains *string `json:"kindContains,omitempty"` - KindHasPrefix *string `json:"kindHasPrefix,omitempty"` - KindHasSuffix *string `json:"kindHasSuffix,omitempty"` - KindIsNil bool `json:"kindIsNil,omitempty"` - KindNotNil bool `json:"kindNotNil,omitempty"` - KindEqualFold *string `json:"kindEqualFold,omitempty"` - KindContainsFold *string `json:"kindContainsFold,omitempty"` + // "client_id" field predicates. + ClientID *string `json:"clientID,omitempty"` + ClientIDNEQ *string `json:"clientIDNEQ,omitempty"` + ClientIDIn []string `json:"clientIDIn,omitempty"` + ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` + ClientIDGT *string `json:"clientIDGT,omitempty"` + ClientIDGTE *string `json:"clientIDGTE,omitempty"` + ClientIDLT *string `json:"clientIDLT,omitempty"` + ClientIDLTE *string `json:"clientIDLTE,omitempty"` + ClientIDContains *string `json:"clientIDContains,omitempty"` + ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` + ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` + ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` + ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` + + // "client_secret" field predicates. + ClientSecret *string `json:"clientSecret,omitempty"` + ClientSecretNEQ *string `json:"clientSecretNEQ,omitempty"` + ClientSecretIn []string `json:"clientSecretIn,omitempty"` + ClientSecretNotIn []string `json:"clientSecretNotIn,omitempty"` + ClientSecretGT *string `json:"clientSecretGT,omitempty"` + ClientSecretGTE *string `json:"clientSecretGTE,omitempty"` + ClientSecretLT *string `json:"clientSecretLT,omitempty"` + ClientSecretLTE *string `json:"clientSecretLTE,omitempty"` + ClientSecretContains *string `json:"clientSecretContains,omitempty"` + ClientSecretHasPrefix *string `json:"clientSecretHasPrefix,omitempty"` + ClientSecretHasSuffix *string `json:"clientSecretHasSuffix,omitempty"` + ClientSecretEqualFold *string `json:"clientSecretEqualFold,omitempty"` + ClientSecretContainsFold *string `json:"clientSecretContainsFold,omitempty"` + + // "redirect_url" field predicates. + RedirectURL *string `json:"redirectURL,omitempty"` + RedirectURLNEQ *string `json:"redirectURLNEQ,omitempty"` + RedirectURLIn []string `json:"redirectURLIn,omitempty"` + RedirectURLNotIn []string `json:"redirectURLNotIn,omitempty"` + RedirectURLGT *string `json:"redirectURLGT,omitempty"` + RedirectURLGTE *string `json:"redirectURLGTE,omitempty"` + RedirectURLLT *string `json:"redirectURLLT,omitempty"` + RedirectURLLTE *string `json:"redirectURLLTE,omitempty"` + RedirectURLContains *string `json:"redirectURLContains,omitempty"` + RedirectURLHasPrefix *string `json:"redirectURLHasPrefix,omitempty"` + RedirectURLHasSuffix *string `json:"redirectURLHasSuffix,omitempty"` + RedirectURLEqualFold *string `json:"redirectURLEqualFold,omitempty"` + RedirectURLContainsFold *string `json:"redirectURLContainsFold,omitempty"` + + // "scopes" field predicates. + Scopes *string `json:"scopes,omitempty"` + ScopesNEQ *string `json:"scopesNEQ,omitempty"` + ScopesIn []string `json:"scopesIn,omitempty"` + ScopesNotIn []string `json:"scopesNotIn,omitempty"` + ScopesGT *string `json:"scopesGT,omitempty"` + ScopesGTE *string `json:"scopesGTE,omitempty"` + ScopesLT *string `json:"scopesLT,omitempty"` + ScopesLTE *string `json:"scopesLTE,omitempty"` + ScopesContains *string `json:"scopesContains,omitempty"` + ScopesHasPrefix *string `json:"scopesHasPrefix,omitempty"` + ScopesHasSuffix *string `json:"scopesHasSuffix,omitempty"` + ScopesEqualFold *string `json:"scopesEqualFold,omitempty"` + ScopesContainsFold *string `json:"scopesContainsFold,omitempty"` - // "secret_name" field predicates. - SecretName *string `json:"secretName,omitempty"` - SecretNameNEQ *string `json:"secretNameNEQ,omitempty"` - SecretNameIn []string `json:"secretNameIn,omitempty"` - SecretNameNotIn []string `json:"secretNameNotIn,omitempty"` - SecretNameGT *string `json:"secretNameGT,omitempty"` - SecretNameGTE *string `json:"secretNameGTE,omitempty"` - SecretNameLT *string `json:"secretNameLT,omitempty"` - SecretNameLTE *string `json:"secretNameLTE,omitempty"` - SecretNameContains *string `json:"secretNameContains,omitempty"` - SecretNameHasPrefix *string `json:"secretNameHasPrefix,omitempty"` - SecretNameHasSuffix *string `json:"secretNameHasSuffix,omitempty"` - SecretNameIsNil bool `json:"secretNameIsNil,omitempty"` - SecretNameNotNil bool `json:"secretNameNotNil,omitempty"` - SecretNameEqualFold *string `json:"secretNameEqualFold,omitempty"` - SecretNameContainsFold *string `json:"secretNameContainsFold,omitempty"` + // "auth_url" field predicates. + AuthURL *string `json:"authURL,omitempty"` + AuthURLNEQ *string `json:"authURLNEQ,omitempty"` + AuthURLIn []string `json:"authURLIn,omitempty"` + AuthURLNotIn []string `json:"authURLNotIn,omitempty"` + AuthURLGT *string `json:"authURLGT,omitempty"` + AuthURLGTE *string `json:"authURLGTE,omitempty"` + AuthURLLT *string `json:"authURLLT,omitempty"` + AuthURLLTE *string `json:"authURLLTE,omitempty"` + AuthURLContains *string `json:"authURLContains,omitempty"` + AuthURLHasPrefix *string `json:"authURLHasPrefix,omitempty"` + AuthURLHasSuffix *string `json:"authURLHasSuffix,omitempty"` + AuthURLEqualFold *string `json:"authURLEqualFold,omitempty"` + AuthURLContainsFold *string `json:"authURLContainsFold,omitempty"` - // "integrations" edge predicates. - HasIntegrations *bool `json:"hasIntegrations,omitempty"` - HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` + // "token_url" field predicates. + TokenURL *string `json:"tokenURL,omitempty"` + TokenURLNEQ *string `json:"tokenURLNEQ,omitempty"` + TokenURLIn []string `json:"tokenURLIn,omitempty"` + TokenURLNotIn []string `json:"tokenURLNotIn,omitempty"` + TokenURLGT *string `json:"tokenURLGT,omitempty"` + TokenURLGTE *string `json:"tokenURLGTE,omitempty"` + TokenURLLT *string `json:"tokenURLLT,omitempty"` + TokenURLLTE *string `json:"tokenURLLTE,omitempty"` + TokenURLContains *string `json:"tokenURLContains,omitempty"` + TokenURLHasPrefix *string `json:"tokenURLHasPrefix,omitempty"` + TokenURLHasSuffix *string `json:"tokenURLHasSuffix,omitempty"` + TokenURLEqualFold *string `json:"tokenURLEqualFold,omitempty"` + TokenURLContainsFold *string `json:"tokenURLContainsFold,omitempty"` - // "organization" edge predicates. - HasOrganization *bool `json:"hasOrganization,omitempty"` - HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` + // "auth_style" field predicates. + AuthStyle *customtypes.Uint8 `json:"authStyle,omitempty"` + AuthStyleNEQ *customtypes.Uint8 `json:"authStyleNEQ,omitempty"` + AuthStyleIn []customtypes.Uint8 `json:"authStyleIn,omitempty"` + AuthStyleNotIn []customtypes.Uint8 `json:"authStyleNotIn,omitempty"` + AuthStyleGT *customtypes.Uint8 `json:"authStyleGT,omitempty"` + AuthStyleGTE *customtypes.Uint8 `json:"authStyleGTE,omitempty"` + AuthStyleLT *customtypes.Uint8 `json:"authStyleLT,omitempty"` + AuthStyleLTE *customtypes.Uint8 `json:"authStyleLTE,omitempty"` - // "events" edge predicates. - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // "info_url" field predicates. + InfoURL *string `json:"infoURL,omitempty"` + InfoURLNEQ *string `json:"infoURLNEQ,omitempty"` + InfoURLIn []string `json:"infoURLIn,omitempty"` + InfoURLNotIn []string `json:"infoURLNotIn,omitempty"` + InfoURLGT *string `json:"infoURLGT,omitempty"` + InfoURLGTE *string `json:"infoURLGTE,omitempty"` + InfoURLLT *string `json:"infoURLLT,omitempty"` + InfoURLLTE *string `json:"infoURLLTE,omitempty"` + InfoURLContains *string `json:"infoURLContains,omitempty"` + InfoURLHasPrefix *string `json:"infoURLHasPrefix,omitempty"` + InfoURLHasSuffix *string `json:"infoURLHasSuffix,omitempty"` + InfoURLEqualFold *string `json:"infoURLEqualFold,omitempty"` + InfoURLContainsFold *string `json:"infoURLContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *HushWhereInput) AddPredicates(predicates ...predicate.Hush) { +func (i *OauthProviderHistoryWhereInput) AddPredicates(predicates ...predicate.OauthProviderHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the HushWhereInput filter on the HushQuery builder. -func (i *HushWhereInput) Filter(q *HushQuery) (*HushQuery, error) { +// Filter applies the OauthProviderHistoryWhereInput filter on the OauthProviderHistoryQuery builder. +func (i *OauthProviderHistoryWhereInput) Filter(q *OauthProviderHistoryQuery) (*OauthProviderHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyHushWhereInput { + if err == ErrEmptyOauthProviderHistoryWhereInput { return q, nil } return nil, err @@ -22091,19 +38226,19 @@ func (i *HushWhereInput) Filter(q *HushQuery) (*HushQuery, error) { return q.Where(p), nil } -// ErrEmptyHushWhereInput is returned in case the HushWhereInput is empty. -var ErrEmptyHushWhereInput = errors.New("generated: empty predicate HushWhereInput") +// ErrEmptyOauthProviderHistoryWhereInput is returned in case the OauthProviderHistoryWhereInput is empty. +var ErrEmptyOauthProviderHistoryWhereInput = errors.New("generated: empty predicate OauthProviderHistoryWhereInput") -// P returns a predicate for filtering hushes. +// P returns a predicate for filtering oauthproviderhistories. // An error is returned if the input is empty or invalid. -func (i *HushWhereInput) P() (predicate.Hush, error) { - var predicates []predicate.Hush +func (i *OauthProviderHistoryWhereInput) P() (predicate.OauthProviderHistory, error) { + var predicates []predicate.OauthProviderHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, hush.Not(p)) + predicates = append(predicates, oauthproviderhistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -22113,7 +38248,7 @@ func (i *HushWhereInput) P() (predicate.Hush, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.Hush, 0, n) + or := make([]predicate.OauthProviderHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -22121,7 +38256,7 @@ func (i *HushWhereInput) P() (predicate.Hush, error) { } or = append(or, p) } - predicates = append(predicates, hush.Or(or...)) + predicates = append(predicates, oauthproviderhistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -22131,7 +38266,7 @@ func (i *HushWhereInput) P() (predicate.Hush, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.Hush, 0, n) + and := make([]predicate.OauthProviderHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -22139,464 +38274,743 @@ func (i *HushWhereInput) P() (predicate.Hush, error) { } and = append(and, p) } - predicates = append(predicates, hush.And(and...)) + predicates = append(predicates, oauthproviderhistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, hush.IDEQ(*i.ID)) + predicates = append(predicates, oauthproviderhistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, hush.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, oauthproviderhistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, hush.IDIn(i.IDIn...)) + predicates = append(predicates, oauthproviderhistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, hush.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, oauthproviderhistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, hush.IDGT(*i.IDGT)) + predicates = append(predicates, oauthproviderhistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, hush.IDGTE(*i.IDGTE)) + predicates = append(predicates, oauthproviderhistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, hush.IDLT(*i.IDLT)) + predicates = append(predicates, oauthproviderhistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, hush.IDLTE(*i.IDLTE)) + predicates = append(predicates, oauthproviderhistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, hush.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, oauthproviderhistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, hush.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, oauthproviderhistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, oauthproviderhistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, oauthproviderhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, oauthproviderhistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, oauthproviderhistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, oauthproviderhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, oauthproviderhistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, oauthproviderhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, oauthproviderhistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, oauthproviderhistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, oauthproviderhistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, oauthproviderhistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, oauthproviderhistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, oauthproviderhistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, oauthproviderhistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, oauthproviderhistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, oauthproviderhistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, oauthproviderhistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, oauthproviderhistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, oauthproviderhistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, oauthproviderhistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, hush.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, oauthproviderhistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, hush.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, oauthproviderhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, hush.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, oauthproviderhistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, hush.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, oauthproviderhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, hush.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, oauthproviderhistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, hush.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, oauthproviderhistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, hush.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, oauthproviderhistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, hush.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, oauthproviderhistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, hush.CreatedAtIsNil()) + predicates = append(predicates, oauthproviderhistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, hush.CreatedAtNotNil()) + predicates = append(predicates, oauthproviderhistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, hush.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, oauthproviderhistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, hush.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, oauthproviderhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, hush.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, oauthproviderhistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, hush.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, oauthproviderhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, hush.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, oauthproviderhistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, hush.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, oauthproviderhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, hush.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, oauthproviderhistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, hush.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, oauthproviderhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, oauthproviderhistory.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, oauthproviderhistory.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, oauthproviderhistory.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, oauthproviderhistory.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, oauthproviderhistory.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, oauthproviderhistory.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, oauthproviderhistory.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, oauthproviderhistory.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, oauthproviderhistory.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, oauthproviderhistory.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, oauthproviderhistory.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, oauthproviderhistory.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, oauthproviderhistory.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, oauthproviderhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, oauthproviderhistory.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, oauthproviderhistory.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, oauthproviderhistory.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, oauthproviderhistory.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, oauthproviderhistory.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, oauthproviderhistory.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, oauthproviderhistory.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, oauthproviderhistory.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, oauthproviderhistory.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, oauthproviderhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, oauthproviderhistory.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, oauthproviderhistory.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, oauthproviderhistory.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, oauthproviderhistory.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, oauthproviderhistory.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, oauthproviderhistory.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, oauthproviderhistory.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, oauthproviderhistory.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, oauthproviderhistory.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, oauthproviderhistory.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, oauthproviderhistory.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, oauthproviderhistory.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, oauthproviderhistory.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, oauthproviderhistory.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, oauthproviderhistory.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, oauthproviderhistory.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, oauthproviderhistory.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.OwnerID != nil { + predicates = append(predicates, oauthproviderhistory.OwnerIDEQ(*i.OwnerID)) + } + if i.OwnerIDNEQ != nil { + predicates = append(predicates, oauthproviderhistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + } + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, oauthproviderhistory.OwnerIDIn(i.OwnerIDIn...)) + } + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + } + if i.OwnerIDGT != nil { + predicates = append(predicates, oauthproviderhistory.OwnerIDGT(*i.OwnerIDGT)) + } + if i.OwnerIDGTE != nil { + predicates = append(predicates, oauthproviderhistory.OwnerIDGTE(*i.OwnerIDGTE)) + } + if i.OwnerIDLT != nil { + predicates = append(predicates, oauthproviderhistory.OwnerIDLT(*i.OwnerIDLT)) + } + if i.OwnerIDLTE != nil { + predicates = append(predicates, oauthproviderhistory.OwnerIDLTE(*i.OwnerIDLTE)) + } + if i.OwnerIDContains != nil { + predicates = append(predicates, oauthproviderhistory.OwnerIDContains(*i.OwnerIDContains)) + } + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + } + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + } + if i.OwnerIDIsNil { + predicates = append(predicates, oauthproviderhistory.OwnerIDIsNil()) + } + if i.OwnerIDNotNil { + predicates = append(predicates, oauthproviderhistory.OwnerIDNotNil()) + } + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + } + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, oauthproviderhistory.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, oauthproviderhistory.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, oauthproviderhistory.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, oauthproviderhistory.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, oauthproviderhistory.NameGTE(*i.NameGTE)) } - if i.UpdatedAtIsNil { - predicates = append(predicates, hush.UpdatedAtIsNil()) + if i.NameLT != nil { + predicates = append(predicates, oauthproviderhistory.NameLT(*i.NameLT)) } - if i.UpdatedAtNotNil { - predicates = append(predicates, hush.UpdatedAtNotNil()) + if i.NameLTE != nil { + predicates = append(predicates, oauthproviderhistory.NameLTE(*i.NameLTE)) } - if i.CreatedBy != nil { - predicates = append(predicates, hush.CreatedByEQ(*i.CreatedBy)) + if i.NameContains != nil { + predicates = append(predicates, oauthproviderhistory.NameContains(*i.NameContains)) } - if i.CreatedByNEQ != nil { - predicates = append(predicates, hush.CreatedByNEQ(*i.CreatedByNEQ)) + if i.NameHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.NameHasPrefix(*i.NameHasPrefix)) } - if len(i.CreatedByIn) > 0 { - predicates = append(predicates, hush.CreatedByIn(i.CreatedByIn...)) + if i.NameHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.NameHasSuffix(*i.NameHasSuffix)) } - if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, hush.CreatedByNotIn(i.CreatedByNotIn...)) + if i.NameEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.NameEqualFold(*i.NameEqualFold)) } - if i.CreatedByGT != nil { - predicates = append(predicates, hush.CreatedByGT(*i.CreatedByGT)) + if i.NameContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.NameContainsFold(*i.NameContainsFold)) } - if i.CreatedByGTE != nil { - predicates = append(predicates, hush.CreatedByGTE(*i.CreatedByGTE)) + if i.ClientID != nil { + predicates = append(predicates, oauthproviderhistory.ClientIDEQ(*i.ClientID)) } - if i.CreatedByLT != nil { - predicates = append(predicates, hush.CreatedByLT(*i.CreatedByLT)) + if i.ClientIDNEQ != nil { + predicates = append(predicates, oauthproviderhistory.ClientIDNEQ(*i.ClientIDNEQ)) } - if i.CreatedByLTE != nil { - predicates = append(predicates, hush.CreatedByLTE(*i.CreatedByLTE)) + if len(i.ClientIDIn) > 0 { + predicates = append(predicates, oauthproviderhistory.ClientIDIn(i.ClientIDIn...)) } - if i.CreatedByContains != nil { - predicates = append(predicates, hush.CreatedByContains(*i.CreatedByContains)) + if len(i.ClientIDNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.ClientIDNotIn(i.ClientIDNotIn...)) } - if i.CreatedByHasPrefix != nil { - predicates = append(predicates, hush.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + if i.ClientIDGT != nil { + predicates = append(predicates, oauthproviderhistory.ClientIDGT(*i.ClientIDGT)) } - if i.CreatedByHasSuffix != nil { - predicates = append(predicates, hush.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + if i.ClientIDGTE != nil { + predicates = append(predicates, oauthproviderhistory.ClientIDGTE(*i.ClientIDGTE)) } - if i.CreatedByIsNil { - predicates = append(predicates, hush.CreatedByIsNil()) + if i.ClientIDLT != nil { + predicates = append(predicates, oauthproviderhistory.ClientIDLT(*i.ClientIDLT)) } - if i.CreatedByNotNil { - predicates = append(predicates, hush.CreatedByNotNil()) + if i.ClientIDLTE != nil { + predicates = append(predicates, oauthproviderhistory.ClientIDLTE(*i.ClientIDLTE)) } - if i.CreatedByEqualFold != nil { - predicates = append(predicates, hush.CreatedByEqualFold(*i.CreatedByEqualFold)) + if i.ClientIDContains != nil { + predicates = append(predicates, oauthproviderhistory.ClientIDContains(*i.ClientIDContains)) } - if i.CreatedByContainsFold != nil { - predicates = append(predicates, hush.CreatedByContainsFold(*i.CreatedByContainsFold)) + if i.ClientIDHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.ClientIDHasPrefix(*i.ClientIDHasPrefix)) } - if i.UpdatedBy != nil { - predicates = append(predicates, hush.UpdatedByEQ(*i.UpdatedBy)) + if i.ClientIDHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.ClientIDHasSuffix(*i.ClientIDHasSuffix)) } - if i.UpdatedByNEQ != nil { - predicates = append(predicates, hush.UpdatedByNEQ(*i.UpdatedByNEQ)) + if i.ClientIDEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.ClientIDEqualFold(*i.ClientIDEqualFold)) } - if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, hush.UpdatedByIn(i.UpdatedByIn...)) + if i.ClientIDContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.ClientIDContainsFold(*i.ClientIDContainsFold)) } - if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, hush.UpdatedByNotIn(i.UpdatedByNotIn...)) + if i.ClientSecret != nil { + predicates = append(predicates, oauthproviderhistory.ClientSecretEQ(*i.ClientSecret)) } - if i.UpdatedByGT != nil { - predicates = append(predicates, hush.UpdatedByGT(*i.UpdatedByGT)) + if i.ClientSecretNEQ != nil { + predicates = append(predicates, oauthproviderhistory.ClientSecretNEQ(*i.ClientSecretNEQ)) } - if i.UpdatedByGTE != nil { - predicates = append(predicates, hush.UpdatedByGTE(*i.UpdatedByGTE)) + if len(i.ClientSecretIn) > 0 { + predicates = append(predicates, oauthproviderhistory.ClientSecretIn(i.ClientSecretIn...)) } - if i.UpdatedByLT != nil { - predicates = append(predicates, hush.UpdatedByLT(*i.UpdatedByLT)) + if len(i.ClientSecretNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.ClientSecretNotIn(i.ClientSecretNotIn...)) } - if i.UpdatedByLTE != nil { - predicates = append(predicates, hush.UpdatedByLTE(*i.UpdatedByLTE)) + if i.ClientSecretGT != nil { + predicates = append(predicates, oauthproviderhistory.ClientSecretGT(*i.ClientSecretGT)) } - if i.UpdatedByContains != nil { - predicates = append(predicates, hush.UpdatedByContains(*i.UpdatedByContains)) + if i.ClientSecretGTE != nil { + predicates = append(predicates, oauthproviderhistory.ClientSecretGTE(*i.ClientSecretGTE)) } - if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, hush.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + if i.ClientSecretLT != nil { + predicates = append(predicates, oauthproviderhistory.ClientSecretLT(*i.ClientSecretLT)) } - if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, hush.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + if i.ClientSecretLTE != nil { + predicates = append(predicates, oauthproviderhistory.ClientSecretLTE(*i.ClientSecretLTE)) } - if i.UpdatedByIsNil { - predicates = append(predicates, hush.UpdatedByIsNil()) + if i.ClientSecretContains != nil { + predicates = append(predicates, oauthproviderhistory.ClientSecretContains(*i.ClientSecretContains)) } - if i.UpdatedByNotNil { - predicates = append(predicates, hush.UpdatedByNotNil()) + if i.ClientSecretHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.ClientSecretHasPrefix(*i.ClientSecretHasPrefix)) } - if i.UpdatedByEqualFold != nil { - predicates = append(predicates, hush.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + if i.ClientSecretHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.ClientSecretHasSuffix(*i.ClientSecretHasSuffix)) } - if i.UpdatedByContainsFold != nil { - predicates = append(predicates, hush.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + if i.ClientSecretEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.ClientSecretEqualFold(*i.ClientSecretEqualFold)) } - if i.DeletedAt != nil { - predicates = append(predicates, hush.DeletedAtEQ(*i.DeletedAt)) + if i.ClientSecretContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.ClientSecretContainsFold(*i.ClientSecretContainsFold)) } - if i.DeletedAtNEQ != nil { - predicates = append(predicates, hush.DeletedAtNEQ(*i.DeletedAtNEQ)) + if i.RedirectURL != nil { + predicates = append(predicates, oauthproviderhistory.RedirectURLEQ(*i.RedirectURL)) } - if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, hush.DeletedAtIn(i.DeletedAtIn...)) + if i.RedirectURLNEQ != nil { + predicates = append(predicates, oauthproviderhistory.RedirectURLNEQ(*i.RedirectURLNEQ)) } - if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, hush.DeletedAtNotIn(i.DeletedAtNotIn...)) + if len(i.RedirectURLIn) > 0 { + predicates = append(predicates, oauthproviderhistory.RedirectURLIn(i.RedirectURLIn...)) } - if i.DeletedAtGT != nil { - predicates = append(predicates, hush.DeletedAtGT(*i.DeletedAtGT)) + if len(i.RedirectURLNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.RedirectURLNotIn(i.RedirectURLNotIn...)) } - if i.DeletedAtGTE != nil { - predicates = append(predicates, hush.DeletedAtGTE(*i.DeletedAtGTE)) + if i.RedirectURLGT != nil { + predicates = append(predicates, oauthproviderhistory.RedirectURLGT(*i.RedirectURLGT)) } - if i.DeletedAtLT != nil { - predicates = append(predicates, hush.DeletedAtLT(*i.DeletedAtLT)) + if i.RedirectURLGTE != nil { + predicates = append(predicates, oauthproviderhistory.RedirectURLGTE(*i.RedirectURLGTE)) } - if i.DeletedAtLTE != nil { - predicates = append(predicates, hush.DeletedAtLTE(*i.DeletedAtLTE)) + if i.RedirectURLLT != nil { + predicates = append(predicates, oauthproviderhistory.RedirectURLLT(*i.RedirectURLLT)) } - if i.DeletedAtIsNil { - predicates = append(predicates, hush.DeletedAtIsNil()) + if i.RedirectURLLTE != nil { + predicates = append(predicates, oauthproviderhistory.RedirectURLLTE(*i.RedirectURLLTE)) } - if i.DeletedAtNotNil { - predicates = append(predicates, hush.DeletedAtNotNil()) + if i.RedirectURLContains != nil { + predicates = append(predicates, oauthproviderhistory.RedirectURLContains(*i.RedirectURLContains)) } - if i.DeletedBy != nil { - predicates = append(predicates, hush.DeletedByEQ(*i.DeletedBy)) + if i.RedirectURLHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.RedirectURLHasPrefix(*i.RedirectURLHasPrefix)) } - if i.DeletedByNEQ != nil { - predicates = append(predicates, hush.DeletedByNEQ(*i.DeletedByNEQ)) + if i.RedirectURLHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.RedirectURLHasSuffix(*i.RedirectURLHasSuffix)) } - if len(i.DeletedByIn) > 0 { - predicates = append(predicates, hush.DeletedByIn(i.DeletedByIn...)) + if i.RedirectURLEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.RedirectURLEqualFold(*i.RedirectURLEqualFold)) } - if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, hush.DeletedByNotIn(i.DeletedByNotIn...)) + if i.RedirectURLContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.RedirectURLContainsFold(*i.RedirectURLContainsFold)) } - if i.DeletedByGT != nil { - predicates = append(predicates, hush.DeletedByGT(*i.DeletedByGT)) + if i.Scopes != nil { + predicates = append(predicates, oauthproviderhistory.ScopesEQ(*i.Scopes)) } - if i.DeletedByGTE != nil { - predicates = append(predicates, hush.DeletedByGTE(*i.DeletedByGTE)) + if i.ScopesNEQ != nil { + predicates = append(predicates, oauthproviderhistory.ScopesNEQ(*i.ScopesNEQ)) } - if i.DeletedByLT != nil { - predicates = append(predicates, hush.DeletedByLT(*i.DeletedByLT)) + if len(i.ScopesIn) > 0 { + predicates = append(predicates, oauthproviderhistory.ScopesIn(i.ScopesIn...)) } - if i.DeletedByLTE != nil { - predicates = append(predicates, hush.DeletedByLTE(*i.DeletedByLTE)) + if len(i.ScopesNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.ScopesNotIn(i.ScopesNotIn...)) } - if i.DeletedByContains != nil { - predicates = append(predicates, hush.DeletedByContains(*i.DeletedByContains)) + if i.ScopesGT != nil { + predicates = append(predicates, oauthproviderhistory.ScopesGT(*i.ScopesGT)) } - if i.DeletedByHasPrefix != nil { - predicates = append(predicates, hush.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + if i.ScopesGTE != nil { + predicates = append(predicates, oauthproviderhistory.ScopesGTE(*i.ScopesGTE)) } - if i.DeletedByHasSuffix != nil { - predicates = append(predicates, hush.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + if i.ScopesLT != nil { + predicates = append(predicates, oauthproviderhistory.ScopesLT(*i.ScopesLT)) } - if i.DeletedByIsNil { - predicates = append(predicates, hush.DeletedByIsNil()) + if i.ScopesLTE != nil { + predicates = append(predicates, oauthproviderhistory.ScopesLTE(*i.ScopesLTE)) } - if i.DeletedByNotNil { - predicates = append(predicates, hush.DeletedByNotNil()) + if i.ScopesContains != nil { + predicates = append(predicates, oauthproviderhistory.ScopesContains(*i.ScopesContains)) } - if i.DeletedByEqualFold != nil { - predicates = append(predicates, hush.DeletedByEqualFold(*i.DeletedByEqualFold)) + if i.ScopesHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.ScopesHasPrefix(*i.ScopesHasPrefix)) } - if i.DeletedByContainsFold != nil { - predicates = append(predicates, hush.DeletedByContainsFold(*i.DeletedByContainsFold)) + if i.ScopesHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.ScopesHasSuffix(*i.ScopesHasSuffix)) } - if i.Name != nil { - predicates = append(predicates, hush.NameEQ(*i.Name)) + if i.ScopesEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.ScopesEqualFold(*i.ScopesEqualFold)) } - if i.NameNEQ != nil { - predicates = append(predicates, hush.NameNEQ(*i.NameNEQ)) + if i.ScopesContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.ScopesContainsFold(*i.ScopesContainsFold)) } - if len(i.NameIn) > 0 { - predicates = append(predicates, hush.NameIn(i.NameIn...)) + if i.AuthURL != nil { + predicates = append(predicates, oauthproviderhistory.AuthURLEQ(*i.AuthURL)) } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, hush.NameNotIn(i.NameNotIn...)) + if i.AuthURLNEQ != nil { + predicates = append(predicates, oauthproviderhistory.AuthURLNEQ(*i.AuthURLNEQ)) } - if i.NameGT != nil { - predicates = append(predicates, hush.NameGT(*i.NameGT)) + if len(i.AuthURLIn) > 0 { + predicates = append(predicates, oauthproviderhistory.AuthURLIn(i.AuthURLIn...)) } - if i.NameGTE != nil { - predicates = append(predicates, hush.NameGTE(*i.NameGTE)) + if len(i.AuthURLNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.AuthURLNotIn(i.AuthURLNotIn...)) } - if i.NameLT != nil { - predicates = append(predicates, hush.NameLT(*i.NameLT)) + if i.AuthURLGT != nil { + predicates = append(predicates, oauthproviderhistory.AuthURLGT(*i.AuthURLGT)) } - if i.NameLTE != nil { - predicates = append(predicates, hush.NameLTE(*i.NameLTE)) + if i.AuthURLGTE != nil { + predicates = append(predicates, oauthproviderhistory.AuthURLGTE(*i.AuthURLGTE)) } - if i.NameContains != nil { - predicates = append(predicates, hush.NameContains(*i.NameContains)) + if i.AuthURLLT != nil { + predicates = append(predicates, oauthproviderhistory.AuthURLLT(*i.AuthURLLT)) } - if i.NameHasPrefix != nil { - predicates = append(predicates, hush.NameHasPrefix(*i.NameHasPrefix)) + if i.AuthURLLTE != nil { + predicates = append(predicates, oauthproviderhistory.AuthURLLTE(*i.AuthURLLTE)) } - if i.NameHasSuffix != nil { - predicates = append(predicates, hush.NameHasSuffix(*i.NameHasSuffix)) + if i.AuthURLContains != nil { + predicates = append(predicates, oauthproviderhistory.AuthURLContains(*i.AuthURLContains)) } - if i.NameEqualFold != nil { - predicates = append(predicates, hush.NameEqualFold(*i.NameEqualFold)) + if i.AuthURLHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.AuthURLHasPrefix(*i.AuthURLHasPrefix)) } - if i.NameContainsFold != nil { - predicates = append(predicates, hush.NameContainsFold(*i.NameContainsFold)) + if i.AuthURLHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.AuthURLHasSuffix(*i.AuthURLHasSuffix)) } - if i.Kind != nil { - predicates = append(predicates, hush.KindEQ(*i.Kind)) + if i.AuthURLEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.AuthURLEqualFold(*i.AuthURLEqualFold)) } - if i.KindNEQ != nil { - predicates = append(predicates, hush.KindNEQ(*i.KindNEQ)) + if i.AuthURLContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.AuthURLContainsFold(*i.AuthURLContainsFold)) } - if len(i.KindIn) > 0 { - predicates = append(predicates, hush.KindIn(i.KindIn...)) + if i.TokenURL != nil { + predicates = append(predicates, oauthproviderhistory.TokenURLEQ(*i.TokenURL)) } - if len(i.KindNotIn) > 0 { - predicates = append(predicates, hush.KindNotIn(i.KindNotIn...)) + if i.TokenURLNEQ != nil { + predicates = append(predicates, oauthproviderhistory.TokenURLNEQ(*i.TokenURLNEQ)) } - if i.KindGT != nil { - predicates = append(predicates, hush.KindGT(*i.KindGT)) + if len(i.TokenURLIn) > 0 { + predicates = append(predicates, oauthproviderhistory.TokenURLIn(i.TokenURLIn...)) } - if i.KindGTE != nil { - predicates = append(predicates, hush.KindGTE(*i.KindGTE)) + if len(i.TokenURLNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.TokenURLNotIn(i.TokenURLNotIn...)) } - if i.KindLT != nil { - predicates = append(predicates, hush.KindLT(*i.KindLT)) + if i.TokenURLGT != nil { + predicates = append(predicates, oauthproviderhistory.TokenURLGT(*i.TokenURLGT)) } - if i.KindLTE != nil { - predicates = append(predicates, hush.KindLTE(*i.KindLTE)) + if i.TokenURLGTE != nil { + predicates = append(predicates, oauthproviderhistory.TokenURLGTE(*i.TokenURLGTE)) } - if i.KindContains != nil { - predicates = append(predicates, hush.KindContains(*i.KindContains)) + if i.TokenURLLT != nil { + predicates = append(predicates, oauthproviderhistory.TokenURLLT(*i.TokenURLLT)) } - if i.KindHasPrefix != nil { - predicates = append(predicates, hush.KindHasPrefix(*i.KindHasPrefix)) + if i.TokenURLLTE != nil { + predicates = append(predicates, oauthproviderhistory.TokenURLLTE(*i.TokenURLLTE)) } - if i.KindHasSuffix != nil { - predicates = append(predicates, hush.KindHasSuffix(*i.KindHasSuffix)) + if i.TokenURLContains != nil { + predicates = append(predicates, oauthproviderhistory.TokenURLContains(*i.TokenURLContains)) } - if i.KindIsNil { - predicates = append(predicates, hush.KindIsNil()) + if i.TokenURLHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.TokenURLHasPrefix(*i.TokenURLHasPrefix)) } - if i.KindNotNil { - predicates = append(predicates, hush.KindNotNil()) + if i.TokenURLHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.TokenURLHasSuffix(*i.TokenURLHasSuffix)) } - if i.KindEqualFold != nil { - predicates = append(predicates, hush.KindEqualFold(*i.KindEqualFold)) + if i.TokenURLEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.TokenURLEqualFold(*i.TokenURLEqualFold)) } - if i.KindContainsFold != nil { - predicates = append(predicates, hush.KindContainsFold(*i.KindContainsFold)) + if i.TokenURLContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.TokenURLContainsFold(*i.TokenURLContainsFold)) } - if i.SecretName != nil { - predicates = append(predicates, hush.SecretNameEQ(*i.SecretName)) + if i.AuthStyle != nil { + predicates = append(predicates, oauthproviderhistory.AuthStyleEQ(*i.AuthStyle)) } - if i.SecretNameNEQ != nil { - predicates = append(predicates, hush.SecretNameNEQ(*i.SecretNameNEQ)) + if i.AuthStyleNEQ != nil { + predicates = append(predicates, oauthproviderhistory.AuthStyleNEQ(*i.AuthStyleNEQ)) } - if len(i.SecretNameIn) > 0 { - predicates = append(predicates, hush.SecretNameIn(i.SecretNameIn...)) + if len(i.AuthStyleIn) > 0 { + predicates = append(predicates, oauthproviderhistory.AuthStyleIn(i.AuthStyleIn...)) } - if len(i.SecretNameNotIn) > 0 { - predicates = append(predicates, hush.SecretNameNotIn(i.SecretNameNotIn...)) + if len(i.AuthStyleNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.AuthStyleNotIn(i.AuthStyleNotIn...)) } - if i.SecretNameGT != nil { - predicates = append(predicates, hush.SecretNameGT(*i.SecretNameGT)) + if i.AuthStyleGT != nil { + predicates = append(predicates, oauthproviderhistory.AuthStyleGT(*i.AuthStyleGT)) } - if i.SecretNameGTE != nil { - predicates = append(predicates, hush.SecretNameGTE(*i.SecretNameGTE)) + if i.AuthStyleGTE != nil { + predicates = append(predicates, oauthproviderhistory.AuthStyleGTE(*i.AuthStyleGTE)) } - if i.SecretNameLT != nil { - predicates = append(predicates, hush.SecretNameLT(*i.SecretNameLT)) + if i.AuthStyleLT != nil { + predicates = append(predicates, oauthproviderhistory.AuthStyleLT(*i.AuthStyleLT)) } - if i.SecretNameLTE != nil { - predicates = append(predicates, hush.SecretNameLTE(*i.SecretNameLTE)) + if i.AuthStyleLTE != nil { + predicates = append(predicates, oauthproviderhistory.AuthStyleLTE(*i.AuthStyleLTE)) } - if i.SecretNameContains != nil { - predicates = append(predicates, hush.SecretNameContains(*i.SecretNameContains)) + if i.InfoURL != nil { + predicates = append(predicates, oauthproviderhistory.InfoURLEQ(*i.InfoURL)) } - if i.SecretNameHasPrefix != nil { - predicates = append(predicates, hush.SecretNameHasPrefix(*i.SecretNameHasPrefix)) + if i.InfoURLNEQ != nil { + predicates = append(predicates, oauthproviderhistory.InfoURLNEQ(*i.InfoURLNEQ)) } - if i.SecretNameHasSuffix != nil { - predicates = append(predicates, hush.SecretNameHasSuffix(*i.SecretNameHasSuffix)) + if len(i.InfoURLIn) > 0 { + predicates = append(predicates, oauthproviderhistory.InfoURLIn(i.InfoURLIn...)) } - if i.SecretNameIsNil { - predicates = append(predicates, hush.SecretNameIsNil()) + if len(i.InfoURLNotIn) > 0 { + predicates = append(predicates, oauthproviderhistory.InfoURLNotIn(i.InfoURLNotIn...)) } - if i.SecretNameNotNil { - predicates = append(predicates, hush.SecretNameNotNil()) + if i.InfoURLGT != nil { + predicates = append(predicates, oauthproviderhistory.InfoURLGT(*i.InfoURLGT)) } - if i.SecretNameEqualFold != nil { - predicates = append(predicates, hush.SecretNameEqualFold(*i.SecretNameEqualFold)) + if i.InfoURLGTE != nil { + predicates = append(predicates, oauthproviderhistory.InfoURLGTE(*i.InfoURLGTE)) } - if i.SecretNameContainsFold != nil { - predicates = append(predicates, hush.SecretNameContainsFold(*i.SecretNameContainsFold)) + if i.InfoURLLT != nil { + predicates = append(predicates, oauthproviderhistory.InfoURLLT(*i.InfoURLLT)) } - - if i.HasIntegrations != nil { - p := hush.HasIntegrations() - if !*i.HasIntegrations { - p = hush.Not(p) - } - predicates = append(predicates, p) + if i.InfoURLLTE != nil { + predicates = append(predicates, oauthproviderhistory.InfoURLLTE(*i.InfoURLLTE)) } - if len(i.HasIntegrationsWith) > 0 { - with := make([]predicate.Integration, 0, len(i.HasIntegrationsWith)) - for _, w := range i.HasIntegrationsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasIntegrationsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, hush.HasIntegrationsWith(with...)) + if i.InfoURLContains != nil { + predicates = append(predicates, oauthproviderhistory.InfoURLContains(*i.InfoURLContains)) } - if i.HasOrganization != nil { - p := hush.HasOrganization() - if !*i.HasOrganization { - p = hush.Not(p) - } - predicates = append(predicates, p) + if i.InfoURLHasPrefix != nil { + predicates = append(predicates, oauthproviderhistory.InfoURLHasPrefix(*i.InfoURLHasPrefix)) } - if len(i.HasOrganizationWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOrganizationWith)) - for _, w := range i.HasOrganizationWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasOrganizationWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, hush.HasOrganizationWith(with...)) + if i.InfoURLHasSuffix != nil { + predicates = append(predicates, oauthproviderhistory.InfoURLHasSuffix(*i.InfoURLHasSuffix)) } - if i.HasEvents != nil { - p := hush.HasEvents() - if !*i.HasEvents { - p = hush.Not(p) - } - predicates = append(predicates, p) + if i.InfoURLEqualFold != nil { + predicates = append(predicates, oauthproviderhistory.InfoURLEqualFold(*i.InfoURLEqualFold)) } - if len(i.HasEventsWith) > 0 { - with := make([]predicate.Event, 0, len(i.HasEventsWith)) - for _, w := range i.HasEventsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, hush.HasEventsWith(with...)) + if i.InfoURLContainsFold != nil { + predicates = append(predicates, oauthproviderhistory.InfoURLContainsFold(*i.InfoURLContainsFold)) } + switch len(predicates) { case 0: - return nil, ErrEmptyHushWhereInput + return nil, ErrEmptyOauthProviderHistoryWhereInput case 1: return predicates[0], nil default: - return hush.And(predicates...), nil + return oauthproviderhistory.And(predicates...), nil } } -// HushHistoryWhereInput represents a where input for filtering HushHistory queries. -type HushHistoryWhereInput struct { - Predicates []predicate.HushHistory `json:"-"` - Not *HushHistoryWhereInput `json:"not,omitempty"` - Or []*HushHistoryWhereInput `json:"or,omitempty"` - And []*HushHistoryWhereInput `json:"and,omitempty"` +// OhAuthTooTokenWhereInput represents a where input for filtering OhAuthTooToken queries. +type OhAuthTooTokenWhereInput struct { + Predicates []predicate.OhAuthTooToken `json:"-"` + Not *OhAuthTooTokenWhereInput `json:"not,omitempty"` + Or []*OhAuthTooTokenWhereInput `json:"or,omitempty"` + And []*OhAuthTooTokenWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -22610,189 +39024,147 @@ type HushHistoryWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // "history_time" field predicates. - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` - RefGT *string `json:"refGT,omitempty"` - RefGTE *string `json:"refGTE,omitempty"` - RefLT *string `json:"refLT,omitempty"` - RefLTE *string `json:"refLTE,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"` + // "client_id" field predicates. + ClientID *string `json:"clientID,omitempty"` + ClientIDNEQ *string `json:"clientIDNEQ,omitempty"` + ClientIDIn []string `json:"clientIDIn,omitempty"` + ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` + ClientIDGT *string `json:"clientIDGT,omitempty"` + ClientIDGTE *string `json:"clientIDGTE,omitempty"` + ClientIDLT *string `json:"clientIDLT,omitempty"` + ClientIDLTE *string `json:"clientIDLTE,omitempty"` + ClientIDContains *string `json:"clientIDContains,omitempty"` + ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` + ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` + ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` + ClientIDContainsFold *string `json:"clientIDContainsFold,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"` + // "nonce" field predicates. + Nonce *string `json:"nonce,omitempty"` + NonceNEQ *string `json:"nonceNEQ,omitempty"` + NonceIn []string `json:"nonceIn,omitempty"` + NonceNotIn []string `json:"nonceNotIn,omitempty"` + NonceGT *string `json:"nonceGT,omitempty"` + NonceGTE *string `json:"nonceGTE,omitempty"` + NonceLT *string `json:"nonceLT,omitempty"` + NonceLTE *string `json:"nonceLTE,omitempty"` + NonceContains *string `json:"nonceContains,omitempty"` + NonceHasPrefix *string `json:"nonceHasPrefix,omitempty"` + NonceHasSuffix *string `json:"nonceHasSuffix,omitempty"` + NonceEqualFold *string `json:"nonceEqualFold,omitempty"` + NonceContainsFold *string `json:"nonceContainsFold,omitempty"` - // "created_at" field predicates. - CreatedAt *time.Time `json:"createdAt,omitempty"` - CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` - CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` - CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` + // "claims_user_id" field predicates. + ClaimsUserID *string `json:"claimsUserID,omitempty"` + ClaimsUserIDNEQ *string `json:"claimsUserIDNEQ,omitempty"` + ClaimsUserIDIn []string `json:"claimsUserIDIn,omitempty"` + ClaimsUserIDNotIn []string `json:"claimsUserIDNotIn,omitempty"` + ClaimsUserIDGT *string `json:"claimsUserIDGT,omitempty"` + ClaimsUserIDGTE *string `json:"claimsUserIDGTE,omitempty"` + ClaimsUserIDLT *string `json:"claimsUserIDLT,omitempty"` + ClaimsUserIDLTE *string `json:"claimsUserIDLTE,omitempty"` + ClaimsUserIDContains *string `json:"claimsUserIDContains,omitempty"` + ClaimsUserIDHasPrefix *string `json:"claimsUserIDHasPrefix,omitempty"` + ClaimsUserIDHasSuffix *string `json:"claimsUserIDHasSuffix,omitempty"` + ClaimsUserIDEqualFold *string `json:"claimsUserIDEqualFold,omitempty"` + ClaimsUserIDContainsFold *string `json:"claimsUserIDContainsFold,omitempty"` - // "updated_at" field predicates. - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` - UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` - UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` + // "claims_username" field predicates. + ClaimsUsername *string `json:"claimsUsername,omitempty"` + ClaimsUsernameNEQ *string `json:"claimsUsernameNEQ,omitempty"` + ClaimsUsernameIn []string `json:"claimsUsernameIn,omitempty"` + ClaimsUsernameNotIn []string `json:"claimsUsernameNotIn,omitempty"` + ClaimsUsernameGT *string `json:"claimsUsernameGT,omitempty"` + ClaimsUsernameGTE *string `json:"claimsUsernameGTE,omitempty"` + ClaimsUsernameLT *string `json:"claimsUsernameLT,omitempty"` + ClaimsUsernameLTE *string `json:"claimsUsernameLTE,omitempty"` + ClaimsUsernameContains *string `json:"claimsUsernameContains,omitempty"` + ClaimsUsernameHasPrefix *string `json:"claimsUsernameHasPrefix,omitempty"` + ClaimsUsernameHasSuffix *string `json:"claimsUsernameHasSuffix,omitempty"` + ClaimsUsernameEqualFold *string `json:"claimsUsernameEqualFold,omitempty"` + ClaimsUsernameContainsFold *string `json:"claimsUsernameContainsFold,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"` - CreatedByGT *string `json:"createdByGT,omitempty"` - CreatedByGTE *string `json:"createdByGTE,omitempty"` - CreatedByLT *string `json:"createdByLT,omitempty"` - CreatedByLTE *string `json:"createdByLTE,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"` + // "claims_email" field predicates. + ClaimsEmail *string `json:"claimsEmail,omitempty"` + ClaimsEmailNEQ *string `json:"claimsEmailNEQ,omitempty"` + ClaimsEmailIn []string `json:"claimsEmailIn,omitempty"` + ClaimsEmailNotIn []string `json:"claimsEmailNotIn,omitempty"` + ClaimsEmailGT *string `json:"claimsEmailGT,omitempty"` + ClaimsEmailGTE *string `json:"claimsEmailGTE,omitempty"` + ClaimsEmailLT *string `json:"claimsEmailLT,omitempty"` + ClaimsEmailLTE *string `json:"claimsEmailLTE,omitempty"` + ClaimsEmailContains *string `json:"claimsEmailContains,omitempty"` + ClaimsEmailHasPrefix *string `json:"claimsEmailHasPrefix,omitempty"` + ClaimsEmailHasSuffix *string `json:"claimsEmailHasSuffix,omitempty"` + ClaimsEmailEqualFold *string `json:"claimsEmailEqualFold,omitempty"` + ClaimsEmailContainsFold *string `json:"claimsEmailContainsFold,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"` - UpdatedByGT *string `json:"updatedByGT,omitempty"` - UpdatedByGTE *string `json:"updatedByGTE,omitempty"` - UpdatedByLT *string `json:"updatedByLT,omitempty"` - UpdatedByLTE *string `json:"updatedByLTE,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"` + // "claims_email_verified" field predicates. + ClaimsEmailVerified *bool `json:"claimsEmailVerified,omitempty"` + ClaimsEmailVerifiedNEQ *bool `json:"claimsEmailVerifiedNEQ,omitempty"` - // "deleted_at" field predicates. - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + // "claims_preferred_username" field predicates. + ClaimsPreferredUsername *string `json:"claimsPreferredUsername,omitempty"` + ClaimsPreferredUsernameNEQ *string `json:"claimsPreferredUsernameNEQ,omitempty"` + ClaimsPreferredUsernameIn []string `json:"claimsPreferredUsernameIn,omitempty"` + ClaimsPreferredUsernameNotIn []string `json:"claimsPreferredUsernameNotIn,omitempty"` + ClaimsPreferredUsernameGT *string `json:"claimsPreferredUsernameGT,omitempty"` + ClaimsPreferredUsernameGTE *string `json:"claimsPreferredUsernameGTE,omitempty"` + ClaimsPreferredUsernameLT *string `json:"claimsPreferredUsernameLT,omitempty"` + ClaimsPreferredUsernameLTE *string `json:"claimsPreferredUsernameLTE,omitempty"` + ClaimsPreferredUsernameContains *string `json:"claimsPreferredUsernameContains,omitempty"` + ClaimsPreferredUsernameHasPrefix *string `json:"claimsPreferredUsernameHasPrefix,omitempty"` + ClaimsPreferredUsernameHasSuffix *string `json:"claimsPreferredUsernameHasSuffix,omitempty"` + ClaimsPreferredUsernameEqualFold *string `json:"claimsPreferredUsernameEqualFold,omitempty"` + ClaimsPreferredUsernameContainsFold *string `json:"claimsPreferredUsernameContainsFold,omitempty"` - // "deleted_by" field predicates. - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGT *string `json:"deletedByGT,omitempty"` - DeletedByGTE *string `json:"deletedByGTE,omitempty"` - DeletedByLT *string `json:"deletedByLT,omitempty"` - DeletedByLTE *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // "connector_id" field predicates. + ConnectorID *string `json:"connectorID,omitempty"` + ConnectorIDNEQ *string `json:"connectorIDNEQ,omitempty"` + ConnectorIDIn []string `json:"connectorIDIn,omitempty"` + ConnectorIDNotIn []string `json:"connectorIDNotIn,omitempty"` + ConnectorIDGT *string `json:"connectorIDGT,omitempty"` + ConnectorIDGTE *string `json:"connectorIDGTE,omitempty"` + ConnectorIDLT *string `json:"connectorIDLT,omitempty"` + ConnectorIDLTE *string `json:"connectorIDLTE,omitempty"` + ConnectorIDContains *string `json:"connectorIDContains,omitempty"` + ConnectorIDHasPrefix *string `json:"connectorIDHasPrefix,omitempty"` + ConnectorIDHasSuffix *string `json:"connectorIDHasSuffix,omitempty"` + ConnectorIDEqualFold *string `json:"connectorIDEqualFold,omitempty"` + ConnectorIDContainsFold *string `json:"connectorIDContainsFold,omitempty"` - // "name" field predicates. - Name *string `json:"name,omitempty"` - NameNEQ *string `json:"nameNEQ,omitempty"` - NameIn []string `json:"nameIn,omitempty"` - NameNotIn []string `json:"nameNotIn,omitempty"` - NameGT *string `json:"nameGT,omitempty"` - NameGTE *string `json:"nameGTE,omitempty"` - NameLT *string `json:"nameLT,omitempty"` - NameLTE *string `json:"nameLTE,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"` + // "last_used" field predicates. + LastUsed *time.Time `json:"lastUsed,omitempty"` + LastUsedNEQ *time.Time `json:"lastUsedNEQ,omitempty"` + LastUsedIn []time.Time `json:"lastUsedIn,omitempty"` + LastUsedNotIn []time.Time `json:"lastUsedNotIn,omitempty"` + LastUsedGT *time.Time `json:"lastUsedGT,omitempty"` + LastUsedGTE *time.Time `json:"lastUsedGTE,omitempty"` + LastUsedLT *time.Time `json:"lastUsedLT,omitempty"` + LastUsedLTE *time.Time `json:"lastUsedLTE,omitempty"` - // "kind" field predicates. - Kind *string `json:"kind,omitempty"` - KindNEQ *string `json:"kindNEQ,omitempty"` - KindIn []string `json:"kindIn,omitempty"` - KindNotIn []string `json:"kindNotIn,omitempty"` - KindGT *string `json:"kindGT,omitempty"` - KindGTE *string `json:"kindGTE,omitempty"` - KindLT *string `json:"kindLT,omitempty"` - KindLTE *string `json:"kindLTE,omitempty"` - KindContains *string `json:"kindContains,omitempty"` - KindHasPrefix *string `json:"kindHasPrefix,omitempty"` - KindHasSuffix *string `json:"kindHasSuffix,omitempty"` - KindIsNil bool `json:"kindIsNil,omitempty"` - KindNotNil bool `json:"kindNotNil,omitempty"` - KindEqualFold *string `json:"kindEqualFold,omitempty"` - KindContainsFold *string `json:"kindContainsFold,omitempty"` + // "integration" edge predicates. + HasIntegration *bool `json:"hasIntegration,omitempty"` + HasIntegrationWith []*IntegrationWhereInput `json:"hasIntegrationWith,omitempty"` - // "secret_name" field predicates. - SecretName *string `json:"secretName,omitempty"` - SecretNameNEQ *string `json:"secretNameNEQ,omitempty"` - SecretNameIn []string `json:"secretNameIn,omitempty"` - SecretNameNotIn []string `json:"secretNameNotIn,omitempty"` - SecretNameGT *string `json:"secretNameGT,omitempty"` - SecretNameGTE *string `json:"secretNameGTE,omitempty"` - SecretNameLT *string `json:"secretNameLT,omitempty"` - SecretNameLTE *string `json:"secretNameLTE,omitempty"` - SecretNameContains *string `json:"secretNameContains,omitempty"` - SecretNameHasPrefix *string `json:"secretNameHasPrefix,omitempty"` - SecretNameHasSuffix *string `json:"secretNameHasSuffix,omitempty"` - SecretNameIsNil bool `json:"secretNameIsNil,omitempty"` - SecretNameNotNil bool `json:"secretNameNotNil,omitempty"` - SecretNameEqualFold *string `json:"secretNameEqualFold,omitempty"` - SecretNameContainsFold *string `json:"secretNameContainsFold,omitempty"` + // "events" edge predicates. + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *HushHistoryWhereInput) AddPredicates(predicates ...predicate.HushHistory) { +func (i *OhAuthTooTokenWhereInput) AddPredicates(predicates ...predicate.OhAuthTooToken) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the HushHistoryWhereInput filter on the HushHistoryQuery builder. -func (i *HushHistoryWhereInput) Filter(q *HushHistoryQuery) (*HushHistoryQuery, error) { +// Filter applies the OhAuthTooTokenWhereInput filter on the OhAuthTooTokenQuery builder. +func (i *OhAuthTooTokenWhereInput) Filter(q *OhAuthTooTokenQuery) (*OhAuthTooTokenQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyHushHistoryWhereInput { + if err == ErrEmptyOhAuthTooTokenWhereInput { return q, nil } return nil, err @@ -22800,19 +39172,19 @@ func (i *HushHistoryWhereInput) Filter(q *HushHistoryQuery) (*HushHistoryQuery, return q.Where(p), nil } -// ErrEmptyHushHistoryWhereInput is returned in case the HushHistoryWhereInput is empty. -var ErrEmptyHushHistoryWhereInput = errors.New("generated: empty predicate HushHistoryWhereInput") +// ErrEmptyOhAuthTooTokenWhereInput is returned in case the OhAuthTooTokenWhereInput is empty. +var ErrEmptyOhAuthTooTokenWhereInput = errors.New("generated: empty predicate OhAuthTooTokenWhereInput") -// P returns a predicate for filtering hushhistories. +// P returns a predicate for filtering ohauthtootokens. // An error is returned if the input is empty or invalid. -func (i *HushHistoryWhereInput) P() (predicate.HushHistory, error) { - var predicates []predicate.HushHistory +func (i *OhAuthTooTokenWhereInput) P() (predicate.OhAuthTooToken, error) { + var predicates []predicate.OhAuthTooToken if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, hushhistory.Not(p)) + predicates = append(predicates, ohauthtootoken.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -22822,7 +39194,7 @@ func (i *HushHistoryWhereInput) P() (predicate.HushHistory, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.HushHistory, 0, n) + or := make([]predicate.OhAuthTooToken, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -22830,7 +39202,7 @@ func (i *HushHistoryWhereInput) P() (predicate.HushHistory, error) { } or = append(or, p) } - predicates = append(predicates, hushhistory.Or(or...)) + predicates = append(predicates, ohauthtootoken.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -22840,7 +39212,7 @@ func (i *HushHistoryWhereInput) P() (predicate.HushHistory, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.HushHistory, 0, n) + and := make([]predicate.OhAuthTooToken, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -22848,491 +39220,395 @@ func (i *HushHistoryWhereInput) P() (predicate.HushHistory, error) { } and = append(and, p) } - predicates = append(predicates, hushhistory.And(and...)) + predicates = append(predicates, ohauthtootoken.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, hushhistory.IDEQ(*i.ID)) + predicates = append(predicates, ohauthtootoken.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, hushhistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, ohauthtootoken.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, hushhistory.IDIn(i.IDIn...)) + predicates = append(predicates, ohauthtootoken.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, hushhistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, ohauthtootoken.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, hushhistory.IDGT(*i.IDGT)) + predicates = append(predicates, ohauthtootoken.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, hushhistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, ohauthtootoken.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, hushhistory.IDLT(*i.IDLT)) + predicates = append(predicates, ohauthtootoken.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, hushhistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, ohauthtootoken.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, hushhistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, ohauthtootoken.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, hushhistory.IDContainsFold(*i.IDContainsFold)) - } - if i.HistoryTime != nil { - predicates = append(predicates, hushhistory.HistoryTimeEQ(*i.HistoryTime)) - } - if i.HistoryTimeNEQ != nil { - predicates = append(predicates, hushhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) - } - if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, hushhistory.HistoryTimeIn(i.HistoryTimeIn...)) - } - if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, hushhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) - } - if i.HistoryTimeGT != nil { - predicates = append(predicates, hushhistory.HistoryTimeGT(*i.HistoryTimeGT)) - } - if i.HistoryTimeGTE != nil { - predicates = append(predicates, hushhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) - } - if i.HistoryTimeLT != nil { - predicates = append(predicates, hushhistory.HistoryTimeLT(*i.HistoryTimeLT)) - } - if i.HistoryTimeLTE != nil { - predicates = append(predicates, hushhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) - } - if i.Ref != nil { - predicates = append(predicates, hushhistory.RefEQ(*i.Ref)) - } - if i.RefNEQ != nil { - predicates = append(predicates, hushhistory.RefNEQ(*i.RefNEQ)) - } - if len(i.RefIn) > 0 { - predicates = append(predicates, hushhistory.RefIn(i.RefIn...)) - } - if len(i.RefNotIn) > 0 { - predicates = append(predicates, hushhistory.RefNotIn(i.RefNotIn...)) - } - if i.RefGT != nil { - predicates = append(predicates, hushhistory.RefGT(*i.RefGT)) - } - if i.RefGTE != nil { - predicates = append(predicates, hushhistory.RefGTE(*i.RefGTE)) - } - if i.RefLT != nil { - predicates = append(predicates, hushhistory.RefLT(*i.RefLT)) - } - if i.RefLTE != nil { - predicates = append(predicates, hushhistory.RefLTE(*i.RefLTE)) - } - if i.RefContains != nil { - predicates = append(predicates, hushhistory.RefContains(*i.RefContains)) - } - if i.RefHasPrefix != nil { - predicates = append(predicates, hushhistory.RefHasPrefix(*i.RefHasPrefix)) - } - if i.RefHasSuffix != nil { - predicates = append(predicates, hushhistory.RefHasSuffix(*i.RefHasSuffix)) - } - if i.RefIsNil { - predicates = append(predicates, hushhistory.RefIsNil()) - } - if i.RefNotNil { - predicates = append(predicates, hushhistory.RefNotNil()) - } - if i.RefEqualFold != nil { - predicates = append(predicates, hushhistory.RefEqualFold(*i.RefEqualFold)) - } - if i.RefContainsFold != nil { - predicates = append(predicates, hushhistory.RefContainsFold(*i.RefContainsFold)) - } - if i.Operation != nil { - predicates = append(predicates, hushhistory.OperationEQ(*i.Operation)) - } - if i.OperationNEQ != nil { - predicates = append(predicates, hushhistory.OperationNEQ(*i.OperationNEQ)) - } - if len(i.OperationIn) > 0 { - predicates = append(predicates, hushhistory.OperationIn(i.OperationIn...)) - } - if len(i.OperationNotIn) > 0 { - predicates = append(predicates, hushhistory.OperationNotIn(i.OperationNotIn...)) - } - if i.CreatedAt != nil { - predicates = append(predicates, hushhistory.CreatedAtEQ(*i.CreatedAt)) - } - if i.CreatedAtNEQ != nil { - predicates = append(predicates, hushhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) - } - if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, hushhistory.CreatedAtIn(i.CreatedAtIn...)) - } - if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, hushhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) - } - if i.CreatedAtGT != nil { - predicates = append(predicates, hushhistory.CreatedAtGT(*i.CreatedAtGT)) - } - if i.CreatedAtGTE != nil { - predicates = append(predicates, hushhistory.CreatedAtGTE(*i.CreatedAtGTE)) - } - if i.CreatedAtLT != nil { - predicates = append(predicates, hushhistory.CreatedAtLT(*i.CreatedAtLT)) - } - if i.CreatedAtLTE != nil { - predicates = append(predicates, hushhistory.CreatedAtLTE(*i.CreatedAtLTE)) - } - if i.CreatedAtIsNil { - predicates = append(predicates, hushhistory.CreatedAtIsNil()) - } - if i.CreatedAtNotNil { - predicates = append(predicates, hushhistory.CreatedAtNotNil()) - } - if i.UpdatedAt != nil { - predicates = append(predicates, hushhistory.UpdatedAtEQ(*i.UpdatedAt)) - } - if i.UpdatedAtNEQ != nil { - predicates = append(predicates, hushhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) - } - if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, hushhistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, ohauthtootoken.IDContainsFold(*i.IDContainsFold)) } - if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, hushhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + if i.ClientID != nil { + predicates = append(predicates, ohauthtootoken.ClientIDEQ(*i.ClientID)) } - if i.UpdatedAtGT != nil { - predicates = append(predicates, hushhistory.UpdatedAtGT(*i.UpdatedAtGT)) + if i.ClientIDNEQ != nil { + predicates = append(predicates, ohauthtootoken.ClientIDNEQ(*i.ClientIDNEQ)) } - if i.UpdatedAtGTE != nil { - predicates = append(predicates, hushhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + if len(i.ClientIDIn) > 0 { + predicates = append(predicates, ohauthtootoken.ClientIDIn(i.ClientIDIn...)) } - if i.UpdatedAtLT != nil { - predicates = append(predicates, hushhistory.UpdatedAtLT(*i.UpdatedAtLT)) + if len(i.ClientIDNotIn) > 0 { + predicates = append(predicates, ohauthtootoken.ClientIDNotIn(i.ClientIDNotIn...)) } - if i.UpdatedAtLTE != nil { - predicates = append(predicates, hushhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + if i.ClientIDGT != nil { + predicates = append(predicates, ohauthtootoken.ClientIDGT(*i.ClientIDGT)) } - if i.UpdatedAtIsNil { - predicates = append(predicates, hushhistory.UpdatedAtIsNil()) + if i.ClientIDGTE != nil { + predicates = append(predicates, ohauthtootoken.ClientIDGTE(*i.ClientIDGTE)) } - if i.UpdatedAtNotNil { - predicates = append(predicates, hushhistory.UpdatedAtNotNil()) + if i.ClientIDLT != nil { + predicates = append(predicates, ohauthtootoken.ClientIDLT(*i.ClientIDLT)) } - if i.CreatedBy != nil { - predicates = append(predicates, hushhistory.CreatedByEQ(*i.CreatedBy)) + if i.ClientIDLTE != nil { + predicates = append(predicates, ohauthtootoken.ClientIDLTE(*i.ClientIDLTE)) } - if i.CreatedByNEQ != nil { - predicates = append(predicates, hushhistory.CreatedByNEQ(*i.CreatedByNEQ)) + if i.ClientIDContains != nil { + predicates = append(predicates, ohauthtootoken.ClientIDContains(*i.ClientIDContains)) } - if len(i.CreatedByIn) > 0 { - predicates = append(predicates, hushhistory.CreatedByIn(i.CreatedByIn...)) + if i.ClientIDHasPrefix != nil { + predicates = append(predicates, ohauthtootoken.ClientIDHasPrefix(*i.ClientIDHasPrefix)) } - if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, hushhistory.CreatedByNotIn(i.CreatedByNotIn...)) + if i.ClientIDHasSuffix != nil { + predicates = append(predicates, ohauthtootoken.ClientIDHasSuffix(*i.ClientIDHasSuffix)) } - if i.CreatedByGT != nil { - predicates = append(predicates, hushhistory.CreatedByGT(*i.CreatedByGT)) + if i.ClientIDEqualFold != nil { + predicates = append(predicates, ohauthtootoken.ClientIDEqualFold(*i.ClientIDEqualFold)) } - if i.CreatedByGTE != nil { - predicates = append(predicates, hushhistory.CreatedByGTE(*i.CreatedByGTE)) + if i.ClientIDContainsFold != nil { + predicates = append(predicates, ohauthtootoken.ClientIDContainsFold(*i.ClientIDContainsFold)) } - if i.CreatedByLT != nil { - predicates = append(predicates, hushhistory.CreatedByLT(*i.CreatedByLT)) + if i.Nonce != nil { + predicates = append(predicates, ohauthtootoken.NonceEQ(*i.Nonce)) } - if i.CreatedByLTE != nil { - predicates = append(predicates, hushhistory.CreatedByLTE(*i.CreatedByLTE)) + if i.NonceNEQ != nil { + predicates = append(predicates, ohauthtootoken.NonceNEQ(*i.NonceNEQ)) } - if i.CreatedByContains != nil { - predicates = append(predicates, hushhistory.CreatedByContains(*i.CreatedByContains)) + if len(i.NonceIn) > 0 { + predicates = append(predicates, ohauthtootoken.NonceIn(i.NonceIn...)) } - if i.CreatedByHasPrefix != nil { - predicates = append(predicates, hushhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + if len(i.NonceNotIn) > 0 { + predicates = append(predicates, ohauthtootoken.NonceNotIn(i.NonceNotIn...)) } - if i.CreatedByHasSuffix != nil { - predicates = append(predicates, hushhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + if i.NonceGT != nil { + predicates = append(predicates, ohauthtootoken.NonceGT(*i.NonceGT)) } - if i.CreatedByIsNil { - predicates = append(predicates, hushhistory.CreatedByIsNil()) + if i.NonceGTE != nil { + predicates = append(predicates, ohauthtootoken.NonceGTE(*i.NonceGTE)) } - if i.CreatedByNotNil { - predicates = append(predicates, hushhistory.CreatedByNotNil()) + if i.NonceLT != nil { + predicates = append(predicates, ohauthtootoken.NonceLT(*i.NonceLT)) } - if i.CreatedByEqualFold != nil { - predicates = append(predicates, hushhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + if i.NonceLTE != nil { + predicates = append(predicates, ohauthtootoken.NonceLTE(*i.NonceLTE)) } - if i.CreatedByContainsFold != nil { - predicates = append(predicates, hushhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + if i.NonceContains != nil { + predicates = append(predicates, ohauthtootoken.NonceContains(*i.NonceContains)) } - if i.UpdatedBy != nil { - predicates = append(predicates, hushhistory.UpdatedByEQ(*i.UpdatedBy)) + if i.NonceHasPrefix != nil { + predicates = append(predicates, ohauthtootoken.NonceHasPrefix(*i.NonceHasPrefix)) } - if i.UpdatedByNEQ != nil { - predicates = append(predicates, hushhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + if i.NonceHasSuffix != nil { + predicates = append(predicates, ohauthtootoken.NonceHasSuffix(*i.NonceHasSuffix)) } - if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, hushhistory.UpdatedByIn(i.UpdatedByIn...)) + if i.NonceEqualFold != nil { + predicates = append(predicates, ohauthtootoken.NonceEqualFold(*i.NonceEqualFold)) } - if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, hushhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + if i.NonceContainsFold != nil { + predicates = append(predicates, ohauthtootoken.NonceContainsFold(*i.NonceContainsFold)) } - if i.UpdatedByGT != nil { - predicates = append(predicates, hushhistory.UpdatedByGT(*i.UpdatedByGT)) + if i.ClaimsUserID != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDEQ(*i.ClaimsUserID)) } - if i.UpdatedByGTE != nil { - predicates = append(predicates, hushhistory.UpdatedByGTE(*i.UpdatedByGTE)) + if i.ClaimsUserIDNEQ != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDNEQ(*i.ClaimsUserIDNEQ)) } - if i.UpdatedByLT != nil { - predicates = append(predicates, hushhistory.UpdatedByLT(*i.UpdatedByLT)) + if len(i.ClaimsUserIDIn) > 0 { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDIn(i.ClaimsUserIDIn...)) } - if i.UpdatedByLTE != nil { - predicates = append(predicates, hushhistory.UpdatedByLTE(*i.UpdatedByLTE)) + if len(i.ClaimsUserIDNotIn) > 0 { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDNotIn(i.ClaimsUserIDNotIn...)) } - if i.UpdatedByContains != nil { - predicates = append(predicates, hushhistory.UpdatedByContains(*i.UpdatedByContains)) + if i.ClaimsUserIDGT != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDGT(*i.ClaimsUserIDGT)) } - if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, hushhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + if i.ClaimsUserIDGTE != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDGTE(*i.ClaimsUserIDGTE)) } - if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, hushhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + if i.ClaimsUserIDLT != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDLT(*i.ClaimsUserIDLT)) } - if i.UpdatedByIsNil { - predicates = append(predicates, hushhistory.UpdatedByIsNil()) + if i.ClaimsUserIDLTE != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDLTE(*i.ClaimsUserIDLTE)) } - if i.UpdatedByNotNil { - predicates = append(predicates, hushhistory.UpdatedByNotNil()) + if i.ClaimsUserIDContains != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDContains(*i.ClaimsUserIDContains)) } - if i.UpdatedByEqualFold != nil { - predicates = append(predicates, hushhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + if i.ClaimsUserIDHasPrefix != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDHasPrefix(*i.ClaimsUserIDHasPrefix)) } - if i.UpdatedByContainsFold != nil { - predicates = append(predicates, hushhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + if i.ClaimsUserIDHasSuffix != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDHasSuffix(*i.ClaimsUserIDHasSuffix)) } - if i.DeletedAt != nil { - predicates = append(predicates, hushhistory.DeletedAtEQ(*i.DeletedAt)) + if i.ClaimsUserIDEqualFold != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDEqualFold(*i.ClaimsUserIDEqualFold)) } - if i.DeletedAtNEQ != nil { - predicates = append(predicates, hushhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + if i.ClaimsUserIDContainsFold != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUserIDContainsFold(*i.ClaimsUserIDContainsFold)) } - if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, hushhistory.DeletedAtIn(i.DeletedAtIn...)) + if i.ClaimsUsername != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameEQ(*i.ClaimsUsername)) } - if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, hushhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + if i.ClaimsUsernameNEQ != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameNEQ(*i.ClaimsUsernameNEQ)) } - if i.DeletedAtGT != nil { - predicates = append(predicates, hushhistory.DeletedAtGT(*i.DeletedAtGT)) + if len(i.ClaimsUsernameIn) > 0 { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameIn(i.ClaimsUsernameIn...)) } - if i.DeletedAtGTE != nil { - predicates = append(predicates, hushhistory.DeletedAtGTE(*i.DeletedAtGTE)) + if len(i.ClaimsUsernameNotIn) > 0 { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameNotIn(i.ClaimsUsernameNotIn...)) } - if i.DeletedAtLT != nil { - predicates = append(predicates, hushhistory.DeletedAtLT(*i.DeletedAtLT)) + if i.ClaimsUsernameGT != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameGT(*i.ClaimsUsernameGT)) } - if i.DeletedAtLTE != nil { - predicates = append(predicates, hushhistory.DeletedAtLTE(*i.DeletedAtLTE)) + if i.ClaimsUsernameGTE != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameGTE(*i.ClaimsUsernameGTE)) } - if i.DeletedAtIsNil { - predicates = append(predicates, hushhistory.DeletedAtIsNil()) + if i.ClaimsUsernameLT != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameLT(*i.ClaimsUsernameLT)) } - if i.DeletedAtNotNil { - predicates = append(predicates, hushhistory.DeletedAtNotNil()) + if i.ClaimsUsernameLTE != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameLTE(*i.ClaimsUsernameLTE)) } - if i.DeletedBy != nil { - predicates = append(predicates, hushhistory.DeletedByEQ(*i.DeletedBy)) + if i.ClaimsUsernameContains != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameContains(*i.ClaimsUsernameContains)) } - if i.DeletedByNEQ != nil { - predicates = append(predicates, hushhistory.DeletedByNEQ(*i.DeletedByNEQ)) + if i.ClaimsUsernameHasPrefix != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameHasPrefix(*i.ClaimsUsernameHasPrefix)) } - if len(i.DeletedByIn) > 0 { - predicates = append(predicates, hushhistory.DeletedByIn(i.DeletedByIn...)) + if i.ClaimsUsernameHasSuffix != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameHasSuffix(*i.ClaimsUsernameHasSuffix)) } - if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, hushhistory.DeletedByNotIn(i.DeletedByNotIn...)) + if i.ClaimsUsernameEqualFold != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameEqualFold(*i.ClaimsUsernameEqualFold)) } - if i.DeletedByGT != nil { - predicates = append(predicates, hushhistory.DeletedByGT(*i.DeletedByGT)) + if i.ClaimsUsernameContainsFold != nil { + predicates = append(predicates, ohauthtootoken.ClaimsUsernameContainsFold(*i.ClaimsUsernameContainsFold)) } - if i.DeletedByGTE != nil { - predicates = append(predicates, hushhistory.DeletedByGTE(*i.DeletedByGTE)) + if i.ClaimsEmail != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailEQ(*i.ClaimsEmail)) } - if i.DeletedByLT != nil { - predicates = append(predicates, hushhistory.DeletedByLT(*i.DeletedByLT)) + if i.ClaimsEmailNEQ != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailNEQ(*i.ClaimsEmailNEQ)) } - if i.DeletedByLTE != nil { - predicates = append(predicates, hushhistory.DeletedByLTE(*i.DeletedByLTE)) + if len(i.ClaimsEmailIn) > 0 { + predicates = append(predicates, ohauthtootoken.ClaimsEmailIn(i.ClaimsEmailIn...)) } - if i.DeletedByContains != nil { - predicates = append(predicates, hushhistory.DeletedByContains(*i.DeletedByContains)) + if len(i.ClaimsEmailNotIn) > 0 { + predicates = append(predicates, ohauthtootoken.ClaimsEmailNotIn(i.ClaimsEmailNotIn...)) } - if i.DeletedByHasPrefix != nil { - predicates = append(predicates, hushhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + if i.ClaimsEmailGT != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailGT(*i.ClaimsEmailGT)) } - if i.DeletedByHasSuffix != nil { - predicates = append(predicates, hushhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + if i.ClaimsEmailGTE != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailGTE(*i.ClaimsEmailGTE)) } - if i.DeletedByIsNil { - predicates = append(predicates, hushhistory.DeletedByIsNil()) + if i.ClaimsEmailLT != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailLT(*i.ClaimsEmailLT)) } - if i.DeletedByNotNil { - predicates = append(predicates, hushhistory.DeletedByNotNil()) + if i.ClaimsEmailLTE != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailLTE(*i.ClaimsEmailLTE)) } - if i.DeletedByEqualFold != nil { - predicates = append(predicates, hushhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + if i.ClaimsEmailContains != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailContains(*i.ClaimsEmailContains)) } - if i.DeletedByContainsFold != nil { - predicates = append(predicates, hushhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + if i.ClaimsEmailHasPrefix != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailHasPrefix(*i.ClaimsEmailHasPrefix)) } - if i.Name != nil { - predicates = append(predicates, hushhistory.NameEQ(*i.Name)) + if i.ClaimsEmailHasSuffix != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailHasSuffix(*i.ClaimsEmailHasSuffix)) } - if i.NameNEQ != nil { - predicates = append(predicates, hushhistory.NameNEQ(*i.NameNEQ)) + if i.ClaimsEmailEqualFold != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailEqualFold(*i.ClaimsEmailEqualFold)) } - if len(i.NameIn) > 0 { - predicates = append(predicates, hushhistory.NameIn(i.NameIn...)) + if i.ClaimsEmailContainsFold != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailContainsFold(*i.ClaimsEmailContainsFold)) } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, hushhistory.NameNotIn(i.NameNotIn...)) + if i.ClaimsEmailVerified != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailVerifiedEQ(*i.ClaimsEmailVerified)) } - if i.NameGT != nil { - predicates = append(predicates, hushhistory.NameGT(*i.NameGT)) + if i.ClaimsEmailVerifiedNEQ != nil { + predicates = append(predicates, ohauthtootoken.ClaimsEmailVerifiedNEQ(*i.ClaimsEmailVerifiedNEQ)) } - if i.NameGTE != nil { - predicates = append(predicates, hushhistory.NameGTE(*i.NameGTE)) + if i.ClaimsPreferredUsername != nil { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameEQ(*i.ClaimsPreferredUsername)) } - if i.NameLT != nil { - predicates = append(predicates, hushhistory.NameLT(*i.NameLT)) + if i.ClaimsPreferredUsernameNEQ != nil { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameNEQ(*i.ClaimsPreferredUsernameNEQ)) } - if i.NameLTE != nil { - predicates = append(predicates, hushhistory.NameLTE(*i.NameLTE)) + if len(i.ClaimsPreferredUsernameIn) > 0 { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameIn(i.ClaimsPreferredUsernameIn...)) } - if i.NameContains != nil { - predicates = append(predicates, hushhistory.NameContains(*i.NameContains)) + if len(i.ClaimsPreferredUsernameNotIn) > 0 { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameNotIn(i.ClaimsPreferredUsernameNotIn...)) } - if i.NameHasPrefix != nil { - predicates = append(predicates, hushhistory.NameHasPrefix(*i.NameHasPrefix)) + if i.ClaimsPreferredUsernameGT != nil { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameGT(*i.ClaimsPreferredUsernameGT)) } - if i.NameHasSuffix != nil { - predicates = append(predicates, hushhistory.NameHasSuffix(*i.NameHasSuffix)) + if i.ClaimsPreferredUsernameGTE != nil { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameGTE(*i.ClaimsPreferredUsernameGTE)) } - if i.NameEqualFold != nil { - predicates = append(predicates, hushhistory.NameEqualFold(*i.NameEqualFold)) + if i.ClaimsPreferredUsernameLT != nil { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameLT(*i.ClaimsPreferredUsernameLT)) } - if i.NameContainsFold != nil { - predicates = append(predicates, hushhistory.NameContainsFold(*i.NameContainsFold)) + if i.ClaimsPreferredUsernameLTE != nil { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameLTE(*i.ClaimsPreferredUsernameLTE)) } - if i.Kind != nil { - predicates = append(predicates, hushhistory.KindEQ(*i.Kind)) + if i.ClaimsPreferredUsernameContains != nil { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameContains(*i.ClaimsPreferredUsernameContains)) } - if i.KindNEQ != nil { - predicates = append(predicates, hushhistory.KindNEQ(*i.KindNEQ)) + if i.ClaimsPreferredUsernameHasPrefix != nil { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameHasPrefix(*i.ClaimsPreferredUsernameHasPrefix)) } - if len(i.KindIn) > 0 { - predicates = append(predicates, hushhistory.KindIn(i.KindIn...)) + if i.ClaimsPreferredUsernameHasSuffix != nil { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameHasSuffix(*i.ClaimsPreferredUsernameHasSuffix)) } - if len(i.KindNotIn) > 0 { - predicates = append(predicates, hushhistory.KindNotIn(i.KindNotIn...)) + if i.ClaimsPreferredUsernameEqualFold != nil { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameEqualFold(*i.ClaimsPreferredUsernameEqualFold)) } - if i.KindGT != nil { - predicates = append(predicates, hushhistory.KindGT(*i.KindGT)) + if i.ClaimsPreferredUsernameContainsFold != nil { + predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameContainsFold(*i.ClaimsPreferredUsernameContainsFold)) } - if i.KindGTE != nil { - predicates = append(predicates, hushhistory.KindGTE(*i.KindGTE)) + if i.ConnectorID != nil { + predicates = append(predicates, ohauthtootoken.ConnectorIDEQ(*i.ConnectorID)) } - if i.KindLT != nil { - predicates = append(predicates, hushhistory.KindLT(*i.KindLT)) + if i.ConnectorIDNEQ != nil { + predicates = append(predicates, ohauthtootoken.ConnectorIDNEQ(*i.ConnectorIDNEQ)) } - if i.KindLTE != nil { - predicates = append(predicates, hushhistory.KindLTE(*i.KindLTE)) + if len(i.ConnectorIDIn) > 0 { + predicates = append(predicates, ohauthtootoken.ConnectorIDIn(i.ConnectorIDIn...)) } - if i.KindContains != nil { - predicates = append(predicates, hushhistory.KindContains(*i.KindContains)) + if len(i.ConnectorIDNotIn) > 0 { + predicates = append(predicates, ohauthtootoken.ConnectorIDNotIn(i.ConnectorIDNotIn...)) } - if i.KindHasPrefix != nil { - predicates = append(predicates, hushhistory.KindHasPrefix(*i.KindHasPrefix)) + if i.ConnectorIDGT != nil { + predicates = append(predicates, ohauthtootoken.ConnectorIDGT(*i.ConnectorIDGT)) } - if i.KindHasSuffix != nil { - predicates = append(predicates, hushhistory.KindHasSuffix(*i.KindHasSuffix)) + if i.ConnectorIDGTE != nil { + predicates = append(predicates, ohauthtootoken.ConnectorIDGTE(*i.ConnectorIDGTE)) } - if i.KindIsNil { - predicates = append(predicates, hushhistory.KindIsNil()) + if i.ConnectorIDLT != nil { + predicates = append(predicates, ohauthtootoken.ConnectorIDLT(*i.ConnectorIDLT)) } - if i.KindNotNil { - predicates = append(predicates, hushhistory.KindNotNil()) + if i.ConnectorIDLTE != nil { + predicates = append(predicates, ohauthtootoken.ConnectorIDLTE(*i.ConnectorIDLTE)) } - if i.KindEqualFold != nil { - predicates = append(predicates, hushhistory.KindEqualFold(*i.KindEqualFold)) + if i.ConnectorIDContains != nil { + predicates = append(predicates, ohauthtootoken.ConnectorIDContains(*i.ConnectorIDContains)) } - if i.KindContainsFold != nil { - predicates = append(predicates, hushhistory.KindContainsFold(*i.KindContainsFold)) + if i.ConnectorIDHasPrefix != nil { + predicates = append(predicates, ohauthtootoken.ConnectorIDHasPrefix(*i.ConnectorIDHasPrefix)) } - if i.SecretName != nil { - predicates = append(predicates, hushhistory.SecretNameEQ(*i.SecretName)) + if i.ConnectorIDHasSuffix != nil { + predicates = append(predicates, ohauthtootoken.ConnectorIDHasSuffix(*i.ConnectorIDHasSuffix)) } - if i.SecretNameNEQ != nil { - predicates = append(predicates, hushhistory.SecretNameNEQ(*i.SecretNameNEQ)) + if i.ConnectorIDEqualFold != nil { + predicates = append(predicates, ohauthtootoken.ConnectorIDEqualFold(*i.ConnectorIDEqualFold)) } - if len(i.SecretNameIn) > 0 { - predicates = append(predicates, hushhistory.SecretNameIn(i.SecretNameIn...)) + if i.ConnectorIDContainsFold != nil { + predicates = append(predicates, ohauthtootoken.ConnectorIDContainsFold(*i.ConnectorIDContainsFold)) } - if len(i.SecretNameNotIn) > 0 { - predicates = append(predicates, hushhistory.SecretNameNotIn(i.SecretNameNotIn...)) + if i.LastUsed != nil { + predicates = append(predicates, ohauthtootoken.LastUsedEQ(*i.LastUsed)) } - if i.SecretNameGT != nil { - predicates = append(predicates, hushhistory.SecretNameGT(*i.SecretNameGT)) + if i.LastUsedNEQ != nil { + predicates = append(predicates, ohauthtootoken.LastUsedNEQ(*i.LastUsedNEQ)) } - if i.SecretNameGTE != nil { - predicates = append(predicates, hushhistory.SecretNameGTE(*i.SecretNameGTE)) + if len(i.LastUsedIn) > 0 { + predicates = append(predicates, ohauthtootoken.LastUsedIn(i.LastUsedIn...)) } - if i.SecretNameLT != nil { - predicates = append(predicates, hushhistory.SecretNameLT(*i.SecretNameLT)) + if len(i.LastUsedNotIn) > 0 { + predicates = append(predicates, ohauthtootoken.LastUsedNotIn(i.LastUsedNotIn...)) } - if i.SecretNameLTE != nil { - predicates = append(predicates, hushhistory.SecretNameLTE(*i.SecretNameLTE)) + if i.LastUsedGT != nil { + predicates = append(predicates, ohauthtootoken.LastUsedGT(*i.LastUsedGT)) } - if i.SecretNameContains != nil { - predicates = append(predicates, hushhistory.SecretNameContains(*i.SecretNameContains)) + if i.LastUsedGTE != nil { + predicates = append(predicates, ohauthtootoken.LastUsedGTE(*i.LastUsedGTE)) } - if i.SecretNameHasPrefix != nil { - predicates = append(predicates, hushhistory.SecretNameHasPrefix(*i.SecretNameHasPrefix)) + if i.LastUsedLT != nil { + predicates = append(predicates, ohauthtootoken.LastUsedLT(*i.LastUsedLT)) } - if i.SecretNameHasSuffix != nil { - predicates = append(predicates, hushhistory.SecretNameHasSuffix(*i.SecretNameHasSuffix)) + if i.LastUsedLTE != nil { + predicates = append(predicates, ohauthtootoken.LastUsedLTE(*i.LastUsedLTE)) } - if i.SecretNameIsNil { - predicates = append(predicates, hushhistory.SecretNameIsNil()) + + if i.HasIntegration != nil { + p := ohauthtootoken.HasIntegration() + if !*i.HasIntegration { + p = ohauthtootoken.Not(p) + } + predicates = append(predicates, p) } - if i.SecretNameNotNil { - predicates = append(predicates, hushhistory.SecretNameNotNil()) + if len(i.HasIntegrationWith) > 0 { + with := make([]predicate.Integration, 0, len(i.HasIntegrationWith)) + for _, w := range i.HasIntegrationWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasIntegrationWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, ohauthtootoken.HasIntegrationWith(with...)) } - if i.SecretNameEqualFold != nil { - predicates = append(predicates, hushhistory.SecretNameEqualFold(*i.SecretNameEqualFold)) + if i.HasEvents != nil { + p := ohauthtootoken.HasEvents() + if !*i.HasEvents { + p = ohauthtootoken.Not(p) + } + predicates = append(predicates, p) } - if i.SecretNameContainsFold != nil { - predicates = append(predicates, hushhistory.SecretNameContainsFold(*i.SecretNameContainsFold)) + if len(i.HasEventsWith) > 0 { + with := make([]predicate.Event, 0, len(i.HasEventsWith)) + for _, w := range i.HasEventsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, ohauthtootoken.HasEventsWith(with...)) } - switch len(predicates) { case 0: - return nil, ErrEmptyHushHistoryWhereInput + return nil, ErrEmptyOhAuthTooTokenWhereInput case 1: return predicates[0], nil default: - return hushhistory.And(predicates...), nil + return ohauthtootoken.And(predicates...), nil } } -// IntegrationWhereInput represents a where input for filtering Integration queries. -type IntegrationWhereInput struct { - Predicates []predicate.Integration `json:"-"` - Not *IntegrationWhereInput `json:"not,omitempty"` - Or []*IntegrationWhereInput `json:"or,omitempty"` - And []*IntegrationWhereInput `json:"and,omitempty"` +// OrgMembershipWhereInput represents a where input for filtering OrgMembership queries. +type OrgMembershipWhereInput struct { + Predicates []predicate.OrgMembership `json:"-"` + Not *OrgMembershipWhereInput `json:"not,omitempty"` + Or []*OrgMembershipWhereInput `json:"or,omitempty"` + And []*OrgMembershipWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -23433,89 +39709,68 @@ type IntegrationWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` - NameGT *string `json:"nameGT,omitempty"` - NameGTE *string `json:"nameGTE,omitempty"` - NameLT *string `json:"nameLT,omitempty"` - NameLTE *string `json:"nameLTE,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"` + // "role" field predicates. + Role *enums.Role `json:"role,omitempty"` + RoleNEQ *enums.Role `json:"roleNEQ,omitempty"` + RoleIn []enums.Role `json:"roleIn,omitempty"` + RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` - // "kind" field predicates. - Kind *string `json:"kind,omitempty"` - KindNEQ *string `json:"kindNEQ,omitempty"` - KindIn []string `json:"kindIn,omitempty"` - KindNotIn []string `json:"kindNotIn,omitempty"` - KindGT *string `json:"kindGT,omitempty"` - KindGTE *string `json:"kindGTE,omitempty"` - KindLT *string `json:"kindLT,omitempty"` - KindLTE *string `json:"kindLTE,omitempty"` - KindContains *string `json:"kindContains,omitempty"` - KindHasPrefix *string `json:"kindHasPrefix,omitempty"` - KindHasSuffix *string `json:"kindHasSuffix,omitempty"` - KindIsNil bool `json:"kindIsNil,omitempty"` - KindNotNil bool `json:"kindNotNil,omitempty"` - KindEqualFold *string `json:"kindEqualFold,omitempty"` - KindContainsFold *string `json:"kindContainsFold,omitempty"` + // "organization_id" field predicates. + OrganizationID *string `json:"organizationID,omitempty"` + OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` + OrganizationIDIn []string `json:"organizationIDIn,omitempty"` + OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` + OrganizationIDGT *string `json:"organizationIDGT,omitempty"` + OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` + OrganizationIDLT *string `json:"organizationIDLT,omitempty"` + OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` + OrganizationIDContains *string `json:"organizationIDContains,omitempty"` + OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` + OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` + OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` + OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` - // "owner" edge predicates. - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,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"` + UserIDGT *string `json:"userIDGT,omitempty"` + UserIDGTE *string `json:"userIDGTE,omitempty"` + UserIDLT *string `json:"userIDLT,omitempty"` + UserIDLTE *string `json:"userIDLTE,omitempty"` + UserIDContains *string `json:"userIDContains,omitempty"` + UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` + UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` + UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` + UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` - // "secrets" edge predicates. - HasSecrets *bool `json:"hasSecrets,omitempty"` - HasSecretsWith []*HushWhereInput `json:"hasSecretsWith,omitempty"` + // "organization" edge predicates. + HasOrganization *bool `json:"hasOrganization,omitempty"` + HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` - // "oauth2tokens" edge predicates. - HasOauth2tokens *bool `json:"hasOauth2tokens,omitempty"` - HasOauth2tokensWith []*OhAuthTooTokenWhereInput `json:"hasOauth2tokensWith,omitempty"` + // "user" edge predicates. + HasUser *bool `json:"hasUser,omitempty"` + HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` // "events" edge predicates. HasEvents *bool `json:"hasEvents,omitempty"` HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` - - // "webhooks" edge predicates. - HasWebhooks *bool `json:"hasWebhooks,omitempty"` - HasWebhooksWith []*WebhookWhereInput `json:"hasWebhooksWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *IntegrationWhereInput) AddPredicates(predicates ...predicate.Integration) { +func (i *OrgMembershipWhereInput) AddPredicates(predicates ...predicate.OrgMembership) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the IntegrationWhereInput filter on the IntegrationQuery builder. -func (i *IntegrationWhereInput) Filter(q *IntegrationQuery) (*IntegrationQuery, error) { +// Filter applies the OrgMembershipWhereInput filter on the OrgMembershipQuery builder. +func (i *OrgMembershipWhereInput) Filter(q *OrgMembershipQuery) (*OrgMembershipQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyIntegrationWhereInput { + if err == ErrEmptyOrgMembershipWhereInput { return q, nil } return nil, err @@ -23523,19 +39778,19 @@ func (i *IntegrationWhereInput) Filter(q *IntegrationQuery) (*IntegrationQuery, return q.Where(p), nil } -// ErrEmptyIntegrationWhereInput is returned in case the IntegrationWhereInput is empty. -var ErrEmptyIntegrationWhereInput = errors.New("generated: empty predicate IntegrationWhereInput") +// ErrEmptyOrgMembershipWhereInput is returned in case the OrgMembershipWhereInput is empty. +var ErrEmptyOrgMembershipWhereInput = errors.New("generated: empty predicate OrgMembershipWhereInput") -// P returns a predicate for filtering integrations. +// P returns a predicate for filtering orgmemberships. // An error is returned if the input is empty or invalid. -func (i *IntegrationWhereInput) P() (predicate.Integration, error) { - var predicates []predicate.Integration +func (i *OrgMembershipWhereInput) P() (predicate.OrgMembership, error) { + var predicates []predicate.OrgMembership if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, integration.Not(p)) + predicates = append(predicates, orgmembership.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -23545,7 +39800,7 @@ func (i *IntegrationWhereInput) P() (predicate.Integration, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.Integration, 0, n) + or := make([]predicate.OrgMembership, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -23553,7 +39808,7 @@ func (i *IntegrationWhereInput) P() (predicate.Integration, error) { } or = append(or, p) } - predicates = append(predicates, integration.Or(or...)) + predicates = append(predicates, orgmembership.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -23563,7 +39818,7 @@ func (i *IntegrationWhereInput) P() (predicate.Integration, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.Integration, 0, n) + and := make([]predicate.OrgMembership, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -23571,452 +39826,395 @@ func (i *IntegrationWhereInput) P() (predicate.Integration, error) { } and = append(and, p) } - predicates = append(predicates, integration.And(and...)) + predicates = append(predicates, orgmembership.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, integration.IDEQ(*i.ID)) + predicates = append(predicates, orgmembership.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, integration.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, orgmembership.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, integration.IDIn(i.IDIn...)) + predicates = append(predicates, orgmembership.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, integration.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, orgmembership.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, integration.IDGT(*i.IDGT)) + predicates = append(predicates, orgmembership.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, integration.IDGTE(*i.IDGTE)) + predicates = append(predicates, orgmembership.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, integration.IDLT(*i.IDLT)) + predicates = append(predicates, orgmembership.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, integration.IDLTE(*i.IDLTE)) + predicates = append(predicates, orgmembership.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, integration.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, orgmembership.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, integration.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, orgmembership.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, integration.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, orgmembership.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, integration.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, orgmembership.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, integration.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, orgmembership.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, integration.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, orgmembership.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, integration.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, orgmembership.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, integration.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, orgmembership.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, integration.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, orgmembership.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, integration.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, orgmembership.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, integration.CreatedAtIsNil()) + predicates = append(predicates, orgmembership.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, integration.CreatedAtNotNil()) + predicates = append(predicates, orgmembership.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, integration.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, orgmembership.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, integration.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, orgmembership.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, integration.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, orgmembership.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, integration.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, orgmembership.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, integration.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, orgmembership.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, integration.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, orgmembership.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, integration.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, orgmembership.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, integration.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, orgmembership.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, integration.UpdatedAtIsNil()) + predicates = append(predicates, orgmembership.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, integration.UpdatedAtNotNil()) + predicates = append(predicates, orgmembership.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, integration.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, orgmembership.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, integration.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, orgmembership.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, integration.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, orgmembership.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, integration.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, orgmembership.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, integration.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, orgmembership.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, integration.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, orgmembership.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, integration.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, orgmembership.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, integration.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, orgmembership.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, integration.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, orgmembership.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, integration.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, orgmembership.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, integration.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, orgmembership.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, integration.CreatedByIsNil()) + predicates = append(predicates, orgmembership.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, integration.CreatedByNotNil()) + predicates = append(predicates, orgmembership.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, integration.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, orgmembership.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, integration.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, orgmembership.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, integration.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, orgmembership.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, integration.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, orgmembership.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, integration.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, orgmembership.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, integration.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, orgmembership.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, integration.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, orgmembership.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, integration.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, orgmembership.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, integration.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, orgmembership.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, integration.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, orgmembership.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, integration.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, orgmembership.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, integration.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, orgmembership.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, integration.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, orgmembership.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, integration.UpdatedByIsNil()) + predicates = append(predicates, orgmembership.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, integration.UpdatedByNotNil()) + predicates = append(predicates, orgmembership.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, integration.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, orgmembership.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, integration.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, orgmembership.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, integration.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, orgmembership.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, integration.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, orgmembership.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, integration.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, orgmembership.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, integration.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, orgmembership.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, integration.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, orgmembership.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, integration.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, orgmembership.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, integration.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, orgmembership.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, integration.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, orgmembership.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, integration.DeletedAtIsNil()) + predicates = append(predicates, orgmembership.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, integration.DeletedAtNotNil()) + predicates = append(predicates, orgmembership.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, integration.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, orgmembership.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, integration.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, orgmembership.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, integration.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, orgmembership.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, integration.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, orgmembership.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, integration.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, orgmembership.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, integration.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, orgmembership.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, integration.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, orgmembership.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, integration.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, orgmembership.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, integration.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, orgmembership.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, integration.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, orgmembership.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, integration.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, orgmembership.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, integration.DeletedByIsNil()) + predicates = append(predicates, orgmembership.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, integration.DeletedByNotNil()) + predicates = append(predicates, orgmembership.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, integration.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, orgmembership.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, integration.DeletedByContainsFold(*i.DeletedByContainsFold)) - } - if i.OwnerID != nil { - predicates = append(predicates, integration.OwnerIDEQ(*i.OwnerID)) - } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, integration.OwnerIDNEQ(*i.OwnerIDNEQ)) - } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, integration.OwnerIDIn(i.OwnerIDIn...)) - } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, integration.OwnerIDNotIn(i.OwnerIDNotIn...)) - } - if i.OwnerIDGT != nil { - predicates = append(predicates, integration.OwnerIDGT(*i.OwnerIDGT)) - } - if i.OwnerIDGTE != nil { - predicates = append(predicates, integration.OwnerIDGTE(*i.OwnerIDGTE)) - } - if i.OwnerIDLT != nil { - predicates = append(predicates, integration.OwnerIDLT(*i.OwnerIDLT)) - } - if i.OwnerIDLTE != nil { - predicates = append(predicates, integration.OwnerIDLTE(*i.OwnerIDLTE)) - } - if i.OwnerIDContains != nil { - predicates = append(predicates, integration.OwnerIDContains(*i.OwnerIDContains)) - } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, integration.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) - } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, integration.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) - } - if i.OwnerIDIsNil { - predicates = append(predicates, integration.OwnerIDIsNil()) - } - if i.OwnerIDNotNil { - predicates = append(predicates, integration.OwnerIDNotNil()) + predicates = append(predicates, orgmembership.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, integration.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + if i.Role != nil { + predicates = append(predicates, orgmembership.RoleEQ(*i.Role)) } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, integration.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + if i.RoleNEQ != nil { + predicates = append(predicates, orgmembership.RoleNEQ(*i.RoleNEQ)) } - if i.Name != nil { - predicates = append(predicates, integration.NameEQ(*i.Name)) + if len(i.RoleIn) > 0 { + predicates = append(predicates, orgmembership.RoleIn(i.RoleIn...)) } - if i.NameNEQ != nil { - predicates = append(predicates, integration.NameNEQ(*i.NameNEQ)) + if len(i.RoleNotIn) > 0 { + predicates = append(predicates, orgmembership.RoleNotIn(i.RoleNotIn...)) } - if len(i.NameIn) > 0 { - predicates = append(predicates, integration.NameIn(i.NameIn...)) + if i.OrganizationID != nil { + predicates = append(predicates, orgmembership.OrganizationIDEQ(*i.OrganizationID)) } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, integration.NameNotIn(i.NameNotIn...)) + if i.OrganizationIDNEQ != nil { + predicates = append(predicates, orgmembership.OrganizationIDNEQ(*i.OrganizationIDNEQ)) } - if i.NameGT != nil { - predicates = append(predicates, integration.NameGT(*i.NameGT)) + if len(i.OrganizationIDIn) > 0 { + predicates = append(predicates, orgmembership.OrganizationIDIn(i.OrganizationIDIn...)) } - if i.NameGTE != nil { - predicates = append(predicates, integration.NameGTE(*i.NameGTE)) + if len(i.OrganizationIDNotIn) > 0 { + predicates = append(predicates, orgmembership.OrganizationIDNotIn(i.OrganizationIDNotIn...)) } - if i.NameLT != nil { - predicates = append(predicates, integration.NameLT(*i.NameLT)) + if i.OrganizationIDGT != nil { + predicates = append(predicates, orgmembership.OrganizationIDGT(*i.OrganizationIDGT)) } - if i.NameLTE != nil { - predicates = append(predicates, integration.NameLTE(*i.NameLTE)) + if i.OrganizationIDGTE != nil { + predicates = append(predicates, orgmembership.OrganizationIDGTE(*i.OrganizationIDGTE)) } - if i.NameContains != nil { - predicates = append(predicates, integration.NameContains(*i.NameContains)) + if i.OrganizationIDLT != nil { + predicates = append(predicates, orgmembership.OrganizationIDLT(*i.OrganizationIDLT)) } - if i.NameHasPrefix != nil { - predicates = append(predicates, integration.NameHasPrefix(*i.NameHasPrefix)) + if i.OrganizationIDLTE != nil { + predicates = append(predicates, orgmembership.OrganizationIDLTE(*i.OrganizationIDLTE)) } - if i.NameHasSuffix != nil { - predicates = append(predicates, integration.NameHasSuffix(*i.NameHasSuffix)) + if i.OrganizationIDContains != nil { + predicates = append(predicates, orgmembership.OrganizationIDContains(*i.OrganizationIDContains)) } - if i.NameEqualFold != nil { - predicates = append(predicates, integration.NameEqualFold(*i.NameEqualFold)) + if i.OrganizationIDHasPrefix != nil { + predicates = append(predicates, orgmembership.OrganizationIDHasPrefix(*i.OrganizationIDHasPrefix)) } - if i.NameContainsFold != nil { - predicates = append(predicates, integration.NameContainsFold(*i.NameContainsFold)) + if i.OrganizationIDHasSuffix != nil { + predicates = append(predicates, orgmembership.OrganizationIDHasSuffix(*i.OrganizationIDHasSuffix)) } - if i.Kind != nil { - predicates = append(predicates, integration.KindEQ(*i.Kind)) + if i.OrganizationIDEqualFold != nil { + predicates = append(predicates, orgmembership.OrganizationIDEqualFold(*i.OrganizationIDEqualFold)) } - if i.KindNEQ != nil { - predicates = append(predicates, integration.KindNEQ(*i.KindNEQ)) + if i.OrganizationIDContainsFold != nil { + predicates = append(predicates, orgmembership.OrganizationIDContainsFold(*i.OrganizationIDContainsFold)) } - if len(i.KindIn) > 0 { - predicates = append(predicates, integration.KindIn(i.KindIn...)) + if i.UserID != nil { + predicates = append(predicates, orgmembership.UserIDEQ(*i.UserID)) } - if len(i.KindNotIn) > 0 { - predicates = append(predicates, integration.KindNotIn(i.KindNotIn...)) + if i.UserIDNEQ != nil { + predicates = append(predicates, orgmembership.UserIDNEQ(*i.UserIDNEQ)) } - if i.KindGT != nil { - predicates = append(predicates, integration.KindGT(*i.KindGT)) + if len(i.UserIDIn) > 0 { + predicates = append(predicates, orgmembership.UserIDIn(i.UserIDIn...)) } - if i.KindGTE != nil { - predicates = append(predicates, integration.KindGTE(*i.KindGTE)) + if len(i.UserIDNotIn) > 0 { + predicates = append(predicates, orgmembership.UserIDNotIn(i.UserIDNotIn...)) } - if i.KindLT != nil { - predicates = append(predicates, integration.KindLT(*i.KindLT)) + if i.UserIDGT != nil { + predicates = append(predicates, orgmembership.UserIDGT(*i.UserIDGT)) } - if i.KindLTE != nil { - predicates = append(predicates, integration.KindLTE(*i.KindLTE)) + if i.UserIDGTE != nil { + predicates = append(predicates, orgmembership.UserIDGTE(*i.UserIDGTE)) } - if i.KindContains != nil { - predicates = append(predicates, integration.KindContains(*i.KindContains)) + if i.UserIDLT != nil { + predicates = append(predicates, orgmembership.UserIDLT(*i.UserIDLT)) } - if i.KindHasPrefix != nil { - predicates = append(predicates, integration.KindHasPrefix(*i.KindHasPrefix)) + if i.UserIDLTE != nil { + predicates = append(predicates, orgmembership.UserIDLTE(*i.UserIDLTE)) } - if i.KindHasSuffix != nil { - predicates = append(predicates, integration.KindHasSuffix(*i.KindHasSuffix)) + if i.UserIDContains != nil { + predicates = append(predicates, orgmembership.UserIDContains(*i.UserIDContains)) } - if i.KindIsNil { - predicates = append(predicates, integration.KindIsNil()) + if i.UserIDHasPrefix != nil { + predicates = append(predicates, orgmembership.UserIDHasPrefix(*i.UserIDHasPrefix)) } - if i.KindNotNil { - predicates = append(predicates, integration.KindNotNil()) + if i.UserIDHasSuffix != nil { + predicates = append(predicates, orgmembership.UserIDHasSuffix(*i.UserIDHasSuffix)) } - if i.KindEqualFold != nil { - predicates = append(predicates, integration.KindEqualFold(*i.KindEqualFold)) + if i.UserIDEqualFold != nil { + predicates = append(predicates, orgmembership.UserIDEqualFold(*i.UserIDEqualFold)) } - if i.KindContainsFold != nil { - predicates = append(predicates, integration.KindContainsFold(*i.KindContainsFold)) + if i.UserIDContainsFold != nil { + predicates = append(predicates, orgmembership.UserIDContainsFold(*i.UserIDContainsFold)) } - if i.HasOwner != nil { - p := integration.HasOwner() - if !*i.HasOwner { - p = integration.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasOwnerWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) - 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, integration.HasOwnerWith(with...)) - } - if i.HasSecrets != nil { - p := integration.HasSecrets() - if !*i.HasSecrets { - p = integration.Not(p) + if i.HasOrganization != nil { + p := orgmembership.HasOrganization() + if !*i.HasOrganization { + p = orgmembership.Not(p) } predicates = append(predicates, p) } - if len(i.HasSecretsWith) > 0 { - with := make([]predicate.Hush, 0, len(i.HasSecretsWith)) - for _, w := range i.HasSecretsWith { + if len(i.HasOrganizationWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOrganizationWith)) + for _, w := range i.HasOrganizationWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasSecretsWith'", err) + return nil, fmt.Errorf("%w: field 'HasOrganizationWith'", err) } with = append(with, p) } - predicates = append(predicates, integration.HasSecretsWith(with...)) + predicates = append(predicates, orgmembership.HasOrganizationWith(with...)) } - if i.HasOauth2tokens != nil { - p := integration.HasOauth2tokens() - if !*i.HasOauth2tokens { - p = integration.Not(p) + if i.HasUser != nil { + p := orgmembership.HasUser() + if !*i.HasUser { + p = orgmembership.Not(p) } predicates = append(predicates, p) } - if len(i.HasOauth2tokensWith) > 0 { - with := make([]predicate.OhAuthTooToken, 0, len(i.HasOauth2tokensWith)) - for _, w := range i.HasOauth2tokensWith { + if len(i.HasUserWith) > 0 { + with := make([]predicate.User, 0, len(i.HasUserWith)) + for _, w := range i.HasUserWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasOauth2tokensWith'", err) + return nil, fmt.Errorf("%w: field 'HasUserWith'", err) } with = append(with, p) } - predicates = append(predicates, integration.HasOauth2tokensWith(with...)) + predicates = append(predicates, orgmembership.HasUserWith(with...)) } if i.HasEvents != nil { - p := integration.HasEvents() + p := orgmembership.HasEvents() if !*i.HasEvents { - p = integration.Not(p) + p = orgmembership.Not(p) } predicates = append(predicates, p) } @@ -24029,42 +40227,24 @@ func (i *IntegrationWhereInput) P() (predicate.Integration, error) { } with = append(with, p) } - predicates = append(predicates, integration.HasEventsWith(with...)) - } - if i.HasWebhooks != nil { - p := integration.HasWebhooks() - if !*i.HasWebhooks { - p = integration.Not(p) - } - predicates = append(predicates, p) - } - if len(i.HasWebhooksWith) > 0 { - with := make([]predicate.Webhook, 0, len(i.HasWebhooksWith)) - for _, w := range i.HasWebhooksWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasWebhooksWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, integration.HasWebhooksWith(with...)) + predicates = append(predicates, orgmembership.HasEventsWith(with...)) } switch len(predicates) { case 0: - return nil, ErrEmptyIntegrationWhereInput + return nil, ErrEmptyOrgMembershipWhereInput case 1: return predicates[0], nil default: - return integration.And(predicates...), nil + return orgmembership.And(predicates...), nil } } -// IntegrationHistoryWhereInput represents a where input for filtering IntegrationHistory queries. -type IntegrationHistoryWhereInput struct { - Predicates []predicate.IntegrationHistory `json:"-"` - Not *IntegrationHistoryWhereInput `json:"not,omitempty"` - Or []*IntegrationHistoryWhereInput `json:"or,omitempty"` - And []*IntegrationHistoryWhereInput `json:"and,omitempty"` +// OrgMembershipHistoryWhereInput represents a where input for filtering OrgMembershipHistory queries. +type OrgMembershipHistoryWhereInput struct { + Predicates []predicate.OrgMembershipHistory `json:"-"` + Not *OrgMembershipHistoryWhereInput `json:"not,omitempty"` + Or []*OrgMembershipHistoryWhereInput `json:"or,omitempty"` + And []*OrgMembershipHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -24198,69 +40378,56 @@ type IntegrationHistoryWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` + // "role" field predicates. + Role *enums.Role `json:"role,omitempty"` + RoleNEQ *enums.Role `json:"roleNEQ,omitempty"` + RoleIn []enums.Role `json:"roleIn,omitempty"` + RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` - // "name" field predicates. - Name *string `json:"name,omitempty"` - NameNEQ *string `json:"nameNEQ,omitempty"` - NameIn []string `json:"nameIn,omitempty"` - NameNotIn []string `json:"nameNotIn,omitempty"` - NameGT *string `json:"nameGT,omitempty"` - NameGTE *string `json:"nameGTE,omitempty"` - NameLT *string `json:"nameLT,omitempty"` - NameLTE *string `json:"nameLTE,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"` + // "organization_id" field predicates. + OrganizationID *string `json:"organizationID,omitempty"` + OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` + OrganizationIDIn []string `json:"organizationIDIn,omitempty"` + OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` + OrganizationIDGT *string `json:"organizationIDGT,omitempty"` + OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` + OrganizationIDLT *string `json:"organizationIDLT,omitempty"` + OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` + OrganizationIDContains *string `json:"organizationIDContains,omitempty"` + OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` + OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` + OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` + OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` - // "kind" field predicates. - Kind *string `json:"kind,omitempty"` - KindNEQ *string `json:"kindNEQ,omitempty"` - KindIn []string `json:"kindIn,omitempty"` - KindNotIn []string `json:"kindNotIn,omitempty"` - KindGT *string `json:"kindGT,omitempty"` - KindGTE *string `json:"kindGTE,omitempty"` - KindLT *string `json:"kindLT,omitempty"` - KindLTE *string `json:"kindLTE,omitempty"` - KindContains *string `json:"kindContains,omitempty"` - KindHasPrefix *string `json:"kindHasPrefix,omitempty"` - KindHasSuffix *string `json:"kindHasSuffix,omitempty"` - KindIsNil bool `json:"kindIsNil,omitempty"` - KindNotNil bool `json:"kindNotNil,omitempty"` - KindEqualFold *string `json:"kindEqualFold,omitempty"` - KindContainsFold *string `json:"kindContainsFold,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"` + UserIDGT *string `json:"userIDGT,omitempty"` + UserIDGTE *string `json:"userIDGTE,omitempty"` + UserIDLT *string `json:"userIDLT,omitempty"` + UserIDLTE *string `json:"userIDLTE,omitempty"` + UserIDContains *string `json:"userIDContains,omitempty"` + UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` + UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` + UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` + UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *IntegrationHistoryWhereInput) AddPredicates(predicates ...predicate.IntegrationHistory) { +func (i *OrgMembershipHistoryWhereInput) AddPredicates(predicates ...predicate.OrgMembershipHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the IntegrationHistoryWhereInput filter on the IntegrationHistoryQuery builder. -func (i *IntegrationHistoryWhereInput) Filter(q *IntegrationHistoryQuery) (*IntegrationHistoryQuery, error) { +// Filter applies the OrgMembershipHistoryWhereInput filter on the OrgMembershipHistoryQuery builder. +func (i *OrgMembershipHistoryWhereInput) Filter(q *OrgMembershipHistoryQuery) (*OrgMembershipHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyIntegrationHistoryWhereInput { + if err == ErrEmptyOrgMembershipHistoryWhereInput { return q, nil } return nil, err @@ -24268,19 +40435,19 @@ func (i *IntegrationHistoryWhereInput) Filter(q *IntegrationHistoryQuery) (*Inte return q.Where(p), nil } -// ErrEmptyIntegrationHistoryWhereInput is returned in case the IntegrationHistoryWhereInput is empty. -var ErrEmptyIntegrationHistoryWhereInput = errors.New("generated: empty predicate IntegrationHistoryWhereInput") +// ErrEmptyOrgMembershipHistoryWhereInput is returned in case the OrgMembershipHistoryWhereInput is empty. +var ErrEmptyOrgMembershipHistoryWhereInput = errors.New("generated: empty predicate OrgMembershipHistoryWhereInput") -// P returns a predicate for filtering integrationhistories. +// P returns a predicate for filtering orgmembershiphistories. // An error is returned if the input is empty or invalid. -func (i *IntegrationHistoryWhereInput) P() (predicate.IntegrationHistory, error) { - var predicates []predicate.IntegrationHistory +func (i *OrgMembershipHistoryWhereInput) P() (predicate.OrgMembershipHistory, error) { + var predicates []predicate.OrgMembershipHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, integrationhistory.Not(p)) + predicates = append(predicates, orgmembershiphistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -24290,7 +40457,7 @@ func (i *IntegrationHistoryWhereInput) P() (predicate.IntegrationHistory, error) } predicates = append(predicates, p) case n > 1: - or := make([]predicate.IntegrationHistory, 0, n) + or := make([]predicate.OrgMembershipHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -24298,7 +40465,7 @@ func (i *IntegrationHistoryWhereInput) P() (predicate.IntegrationHistory, error) } or = append(or, p) } - predicates = append(predicates, integrationhistory.Or(or...)) + predicates = append(predicates, orgmembershiphistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -24308,7 +40475,7 @@ func (i *IntegrationHistoryWhereInput) P() (predicate.IntegrationHistory, error) } predicates = append(predicates, p) case n > 1: - and := make([]predicate.IntegrationHistory, 0, n) + and := make([]predicate.OrgMembershipHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -24316,491 +40483,452 @@ func (i *IntegrationHistoryWhereInput) P() (predicate.IntegrationHistory, error) } and = append(and, p) } - predicates = append(predicates, integrationhistory.And(and...)) + predicates = append(predicates, orgmembershiphistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, integrationhistory.IDEQ(*i.ID)) + predicates = append(predicates, orgmembershiphistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, integrationhistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, orgmembershiphistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, integrationhistory.IDIn(i.IDIn...)) + predicates = append(predicates, orgmembershiphistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, integrationhistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, orgmembershiphistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, integrationhistory.IDGT(*i.IDGT)) + predicates = append(predicates, orgmembershiphistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, integrationhistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, orgmembershiphistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, integrationhistory.IDLT(*i.IDLT)) + predicates = append(predicates, orgmembershiphistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, integrationhistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, orgmembershiphistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, integrationhistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, orgmembershiphistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, integrationhistory.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, orgmembershiphistory.IDContainsFold(*i.IDContainsFold)) } if i.HistoryTime != nil { - predicates = append(predicates, integrationhistory.HistoryTimeEQ(*i.HistoryTime)) + predicates = append(predicates, orgmembershiphistory.HistoryTimeEQ(*i.HistoryTime)) } if i.HistoryTimeNEQ != nil { - predicates = append(predicates, integrationhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + predicates = append(predicates, orgmembershiphistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) } if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, integrationhistory.HistoryTimeIn(i.HistoryTimeIn...)) + predicates = append(predicates, orgmembershiphistory.HistoryTimeIn(i.HistoryTimeIn...)) } if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, integrationhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + predicates = append(predicates, orgmembershiphistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) } if i.HistoryTimeGT != nil { - predicates = append(predicates, integrationhistory.HistoryTimeGT(*i.HistoryTimeGT)) + predicates = append(predicates, orgmembershiphistory.HistoryTimeGT(*i.HistoryTimeGT)) } if i.HistoryTimeGTE != nil { - predicates = append(predicates, integrationhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + predicates = append(predicates, orgmembershiphistory.HistoryTimeGTE(*i.HistoryTimeGTE)) } if i.HistoryTimeLT != nil { - predicates = append(predicates, integrationhistory.HistoryTimeLT(*i.HistoryTimeLT)) + predicates = append(predicates, orgmembershiphistory.HistoryTimeLT(*i.HistoryTimeLT)) } if i.HistoryTimeLTE != nil { - predicates = append(predicates, integrationhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + predicates = append(predicates, orgmembershiphistory.HistoryTimeLTE(*i.HistoryTimeLTE)) } if i.Ref != nil { - predicates = append(predicates, integrationhistory.RefEQ(*i.Ref)) + predicates = append(predicates, orgmembershiphistory.RefEQ(*i.Ref)) } if i.RefNEQ != nil { - predicates = append(predicates, integrationhistory.RefNEQ(*i.RefNEQ)) + predicates = append(predicates, orgmembershiphistory.RefNEQ(*i.RefNEQ)) } if len(i.RefIn) > 0 { - predicates = append(predicates, integrationhistory.RefIn(i.RefIn...)) + predicates = append(predicates, orgmembershiphistory.RefIn(i.RefIn...)) } if len(i.RefNotIn) > 0 { - predicates = append(predicates, integrationhistory.RefNotIn(i.RefNotIn...)) + predicates = append(predicates, orgmembershiphistory.RefNotIn(i.RefNotIn...)) } if i.RefGT != nil { - predicates = append(predicates, integrationhistory.RefGT(*i.RefGT)) + predicates = append(predicates, orgmembershiphistory.RefGT(*i.RefGT)) } if i.RefGTE != nil { - predicates = append(predicates, integrationhistory.RefGTE(*i.RefGTE)) + predicates = append(predicates, orgmembershiphistory.RefGTE(*i.RefGTE)) } if i.RefLT != nil { - predicates = append(predicates, integrationhistory.RefLT(*i.RefLT)) + predicates = append(predicates, orgmembershiphistory.RefLT(*i.RefLT)) } if i.RefLTE != nil { - predicates = append(predicates, integrationhistory.RefLTE(*i.RefLTE)) + predicates = append(predicates, orgmembershiphistory.RefLTE(*i.RefLTE)) } if i.RefContains != nil { - predicates = append(predicates, integrationhistory.RefContains(*i.RefContains)) + predicates = append(predicates, orgmembershiphistory.RefContains(*i.RefContains)) } if i.RefHasPrefix != nil { - predicates = append(predicates, integrationhistory.RefHasPrefix(*i.RefHasPrefix)) + predicates = append(predicates, orgmembershiphistory.RefHasPrefix(*i.RefHasPrefix)) } if i.RefHasSuffix != nil { - predicates = append(predicates, integrationhistory.RefHasSuffix(*i.RefHasSuffix)) + predicates = append(predicates, orgmembershiphistory.RefHasSuffix(*i.RefHasSuffix)) } if i.RefIsNil { - predicates = append(predicates, integrationhistory.RefIsNil()) + predicates = append(predicates, orgmembershiphistory.RefIsNil()) } if i.RefNotNil { - predicates = append(predicates, integrationhistory.RefNotNil()) + predicates = append(predicates, orgmembershiphistory.RefNotNil()) } if i.RefEqualFold != nil { - predicates = append(predicates, integrationhistory.RefEqualFold(*i.RefEqualFold)) + predicates = append(predicates, orgmembershiphistory.RefEqualFold(*i.RefEqualFold)) } if i.RefContainsFold != nil { - predicates = append(predicates, integrationhistory.RefContainsFold(*i.RefContainsFold)) + predicates = append(predicates, orgmembershiphistory.RefContainsFold(*i.RefContainsFold)) } if i.Operation != nil { - predicates = append(predicates, integrationhistory.OperationEQ(*i.Operation)) + predicates = append(predicates, orgmembershiphistory.OperationEQ(*i.Operation)) } if i.OperationNEQ != nil { - predicates = append(predicates, integrationhistory.OperationNEQ(*i.OperationNEQ)) + predicates = append(predicates, orgmembershiphistory.OperationNEQ(*i.OperationNEQ)) } if len(i.OperationIn) > 0 { - predicates = append(predicates, integrationhistory.OperationIn(i.OperationIn...)) + predicates = append(predicates, orgmembershiphistory.OperationIn(i.OperationIn...)) } if len(i.OperationNotIn) > 0 { - predicates = append(predicates, integrationhistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, orgmembershiphistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, integrationhistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, orgmembershiphistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, integrationhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, orgmembershiphistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, integrationhistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, orgmembershiphistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, integrationhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, orgmembershiphistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, integrationhistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, orgmembershiphistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, integrationhistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, orgmembershiphistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, integrationhistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, orgmembershiphistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, integrationhistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, orgmembershiphistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, integrationhistory.CreatedAtIsNil()) + predicates = append(predicates, orgmembershiphistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, integrationhistory.CreatedAtNotNil()) + predicates = append(predicates, orgmembershiphistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, integrationhistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, orgmembershiphistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, integrationhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, orgmembershiphistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, integrationhistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, orgmembershiphistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, integrationhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, orgmembershiphistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, integrationhistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, orgmembershiphistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, integrationhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, orgmembershiphistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, integrationhistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, orgmembershiphistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, integrationhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, orgmembershiphistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, integrationhistory.UpdatedAtIsNil()) + predicates = append(predicates, orgmembershiphistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, integrationhistory.UpdatedAtNotNil()) + predicates = append(predicates, orgmembershiphistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, integrationhistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, orgmembershiphistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, integrationhistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, orgmembershiphistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, integrationhistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, orgmembershiphistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, integrationhistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, orgmembershiphistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, integrationhistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, orgmembershiphistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, integrationhistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, orgmembershiphistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, integrationhistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, orgmembershiphistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, integrationhistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, orgmembershiphistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, integrationhistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, orgmembershiphistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, integrationhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, orgmembershiphistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, integrationhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, orgmembershiphistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, integrationhistory.CreatedByIsNil()) + predicates = append(predicates, orgmembershiphistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, integrationhistory.CreatedByNotNil()) + predicates = append(predicates, orgmembershiphistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, integrationhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, orgmembershiphistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, integrationhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, orgmembershiphistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, integrationhistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, orgmembershiphistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, integrationhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, orgmembershiphistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, integrationhistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, orgmembershiphistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, integrationhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, orgmembershiphistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, integrationhistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, orgmembershiphistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, integrationhistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, orgmembershiphistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, integrationhistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, orgmembershiphistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, integrationhistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, orgmembershiphistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, integrationhistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, orgmembershiphistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, integrationhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, orgmembershiphistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, integrationhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, orgmembershiphistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, integrationhistory.UpdatedByIsNil()) + predicates = append(predicates, orgmembershiphistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, integrationhistory.UpdatedByNotNil()) + predicates = append(predicates, orgmembershiphistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, integrationhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, orgmembershiphistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, integrationhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, orgmembershiphistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, integrationhistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, orgmembershiphistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, integrationhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, orgmembershiphistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, integrationhistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, orgmembershiphistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, integrationhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, orgmembershiphistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, integrationhistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, orgmembershiphistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, integrationhistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, orgmembershiphistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, integrationhistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, orgmembershiphistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, integrationhistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, orgmembershiphistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, integrationhistory.DeletedAtIsNil()) + predicates = append(predicates, orgmembershiphistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, integrationhistory.DeletedAtNotNil()) + predicates = append(predicates, orgmembershiphistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, integrationhistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, orgmembershiphistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, integrationhistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, orgmembershiphistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, integrationhistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, orgmembershiphistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, integrationhistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, orgmembershiphistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, integrationhistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, orgmembershiphistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, integrationhistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, orgmembershiphistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, integrationhistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, orgmembershiphistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, integrationhistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, orgmembershiphistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, integrationhistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, orgmembershiphistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, integrationhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, orgmembershiphistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, integrationhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, orgmembershiphistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, integrationhistory.DeletedByIsNil()) + predicates = append(predicates, orgmembershiphistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, integrationhistory.DeletedByNotNil()) + predicates = append(predicates, orgmembershiphistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, integrationhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, orgmembershiphistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, integrationhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) - } - if i.OwnerID != nil { - predicates = append(predicates, integrationhistory.OwnerIDEQ(*i.OwnerID)) - } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, integrationhistory.OwnerIDNEQ(*i.OwnerIDNEQ)) - } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, integrationhistory.OwnerIDIn(i.OwnerIDIn...)) - } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, integrationhistory.OwnerIDNotIn(i.OwnerIDNotIn...)) - } - if i.OwnerIDGT != nil { - predicates = append(predicates, integrationhistory.OwnerIDGT(*i.OwnerIDGT)) - } - if i.OwnerIDGTE != nil { - predicates = append(predicates, integrationhistory.OwnerIDGTE(*i.OwnerIDGTE)) - } - if i.OwnerIDLT != nil { - predicates = append(predicates, integrationhistory.OwnerIDLT(*i.OwnerIDLT)) - } - if i.OwnerIDLTE != nil { - predicates = append(predicates, integrationhistory.OwnerIDLTE(*i.OwnerIDLTE)) - } - if i.OwnerIDContains != nil { - predicates = append(predicates, integrationhistory.OwnerIDContains(*i.OwnerIDContains)) - } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, integrationhistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) - } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, integrationhistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) - } - if i.OwnerIDIsNil { - predicates = append(predicates, integrationhistory.OwnerIDIsNil()) - } - if i.OwnerIDNotNil { - predicates = append(predicates, integrationhistory.OwnerIDNotNil()) + predicates = append(predicates, orgmembershiphistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, integrationhistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + if i.Role != nil { + predicates = append(predicates, orgmembershiphistory.RoleEQ(*i.Role)) } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, integrationhistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + if i.RoleNEQ != nil { + predicates = append(predicates, orgmembershiphistory.RoleNEQ(*i.RoleNEQ)) } - if i.Name != nil { - predicates = append(predicates, integrationhistory.NameEQ(*i.Name)) + if len(i.RoleIn) > 0 { + predicates = append(predicates, orgmembershiphistory.RoleIn(i.RoleIn...)) } - if i.NameNEQ != nil { - predicates = append(predicates, integrationhistory.NameNEQ(*i.NameNEQ)) + if len(i.RoleNotIn) > 0 { + predicates = append(predicates, orgmembershiphistory.RoleNotIn(i.RoleNotIn...)) } - if len(i.NameIn) > 0 { - predicates = append(predicates, integrationhistory.NameIn(i.NameIn...)) + if i.OrganizationID != nil { + predicates = append(predicates, orgmembershiphistory.OrganizationIDEQ(*i.OrganizationID)) } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, integrationhistory.NameNotIn(i.NameNotIn...)) + if i.OrganizationIDNEQ != nil { + predicates = append(predicates, orgmembershiphistory.OrganizationIDNEQ(*i.OrganizationIDNEQ)) } - if i.NameGT != nil { - predicates = append(predicates, integrationhistory.NameGT(*i.NameGT)) + if len(i.OrganizationIDIn) > 0 { + predicates = append(predicates, orgmembershiphistory.OrganizationIDIn(i.OrganizationIDIn...)) } - if i.NameGTE != nil { - predicates = append(predicates, integrationhistory.NameGTE(*i.NameGTE)) + if len(i.OrganizationIDNotIn) > 0 { + predicates = append(predicates, orgmembershiphistory.OrganizationIDNotIn(i.OrganizationIDNotIn...)) } - if i.NameLT != nil { - predicates = append(predicates, integrationhistory.NameLT(*i.NameLT)) + if i.OrganizationIDGT != nil { + predicates = append(predicates, orgmembershiphistory.OrganizationIDGT(*i.OrganizationIDGT)) } - if i.NameLTE != nil { - predicates = append(predicates, integrationhistory.NameLTE(*i.NameLTE)) + if i.OrganizationIDGTE != nil { + predicates = append(predicates, orgmembershiphistory.OrganizationIDGTE(*i.OrganizationIDGTE)) } - if i.NameContains != nil { - predicates = append(predicates, integrationhistory.NameContains(*i.NameContains)) + if i.OrganizationIDLT != nil { + predicates = append(predicates, orgmembershiphistory.OrganizationIDLT(*i.OrganizationIDLT)) } - if i.NameHasPrefix != nil { - predicates = append(predicates, integrationhistory.NameHasPrefix(*i.NameHasPrefix)) + if i.OrganizationIDLTE != nil { + predicates = append(predicates, orgmembershiphistory.OrganizationIDLTE(*i.OrganizationIDLTE)) } - if i.NameHasSuffix != nil { - predicates = append(predicates, integrationhistory.NameHasSuffix(*i.NameHasSuffix)) + if i.OrganizationIDContains != nil { + predicates = append(predicates, orgmembershiphistory.OrganizationIDContains(*i.OrganizationIDContains)) } - if i.NameEqualFold != nil { - predicates = append(predicates, integrationhistory.NameEqualFold(*i.NameEqualFold)) + if i.OrganizationIDHasPrefix != nil { + predicates = append(predicates, orgmembershiphistory.OrganizationIDHasPrefix(*i.OrganizationIDHasPrefix)) } - if i.NameContainsFold != nil { - predicates = append(predicates, integrationhistory.NameContainsFold(*i.NameContainsFold)) + if i.OrganizationIDHasSuffix != nil { + predicates = append(predicates, orgmembershiphistory.OrganizationIDHasSuffix(*i.OrganizationIDHasSuffix)) } - if i.Kind != nil { - predicates = append(predicates, integrationhistory.KindEQ(*i.Kind)) + if i.OrganizationIDEqualFold != nil { + predicates = append(predicates, orgmembershiphistory.OrganizationIDEqualFold(*i.OrganizationIDEqualFold)) } - if i.KindNEQ != nil { - predicates = append(predicates, integrationhistory.KindNEQ(*i.KindNEQ)) + if i.OrganizationIDContainsFold != nil { + predicates = append(predicates, orgmembershiphistory.OrganizationIDContainsFold(*i.OrganizationIDContainsFold)) } - if len(i.KindIn) > 0 { - predicates = append(predicates, integrationhistory.KindIn(i.KindIn...)) + if i.UserID != nil { + predicates = append(predicates, orgmembershiphistory.UserIDEQ(*i.UserID)) } - if len(i.KindNotIn) > 0 { - predicates = append(predicates, integrationhistory.KindNotIn(i.KindNotIn...)) + if i.UserIDNEQ != nil { + predicates = append(predicates, orgmembershiphistory.UserIDNEQ(*i.UserIDNEQ)) } - if i.KindGT != nil { - predicates = append(predicates, integrationhistory.KindGT(*i.KindGT)) + if len(i.UserIDIn) > 0 { + predicates = append(predicates, orgmembershiphistory.UserIDIn(i.UserIDIn...)) } - if i.KindGTE != nil { - predicates = append(predicates, integrationhistory.KindGTE(*i.KindGTE)) + if len(i.UserIDNotIn) > 0 { + predicates = append(predicates, orgmembershiphistory.UserIDNotIn(i.UserIDNotIn...)) } - if i.KindLT != nil { - predicates = append(predicates, integrationhistory.KindLT(*i.KindLT)) + if i.UserIDGT != nil { + predicates = append(predicates, orgmembershiphistory.UserIDGT(*i.UserIDGT)) } - if i.KindLTE != nil { - predicates = append(predicates, integrationhistory.KindLTE(*i.KindLTE)) + if i.UserIDGTE != nil { + predicates = append(predicates, orgmembershiphistory.UserIDGTE(*i.UserIDGTE)) } - if i.KindContains != nil { - predicates = append(predicates, integrationhistory.KindContains(*i.KindContains)) + if i.UserIDLT != nil { + predicates = append(predicates, orgmembershiphistory.UserIDLT(*i.UserIDLT)) } - if i.KindHasPrefix != nil { - predicates = append(predicates, integrationhistory.KindHasPrefix(*i.KindHasPrefix)) + if i.UserIDLTE != nil { + predicates = append(predicates, orgmembershiphistory.UserIDLTE(*i.UserIDLTE)) } - if i.KindHasSuffix != nil { - predicates = append(predicates, integrationhistory.KindHasSuffix(*i.KindHasSuffix)) + if i.UserIDContains != nil { + predicates = append(predicates, orgmembershiphistory.UserIDContains(*i.UserIDContains)) } - if i.KindIsNil { - predicates = append(predicates, integrationhistory.KindIsNil()) + if i.UserIDHasPrefix != nil { + predicates = append(predicates, orgmembershiphistory.UserIDHasPrefix(*i.UserIDHasPrefix)) } - if i.KindNotNil { - predicates = append(predicates, integrationhistory.KindNotNil()) + if i.UserIDHasSuffix != nil { + predicates = append(predicates, orgmembershiphistory.UserIDHasSuffix(*i.UserIDHasSuffix)) } - if i.KindEqualFold != nil { - predicates = append(predicates, integrationhistory.KindEqualFold(*i.KindEqualFold)) + if i.UserIDEqualFold != nil { + predicates = append(predicates, orgmembershiphistory.UserIDEqualFold(*i.UserIDEqualFold)) } - if i.KindContainsFold != nil { - predicates = append(predicates, integrationhistory.KindContainsFold(*i.KindContainsFold)) + if i.UserIDContainsFold != nil { + predicates = append(predicates, orgmembershiphistory.UserIDContainsFold(*i.UserIDContainsFold)) } switch len(predicates) { case 0: - return nil, ErrEmptyIntegrationHistoryWhereInput + return nil, ErrEmptyOrgMembershipHistoryWhereInput case 1: return predicates[0], nil default: - return integrationhistory.And(predicates...), nil + return orgmembershiphistory.And(predicates...), nil } } -// InviteWhereInput represents a where input for filtering Invite queries. -type InviteWhereInput struct { - Predicates []predicate.Invite `json:"-"` - Not *InviteWhereInput `json:"not,omitempty"` - Or []*InviteWhereInput `json:"or,omitempty"` - And []*InviteWhereInput `json:"and,omitempty"` +// OrganizationWhereInput represents a where input for filtering Organization queries. +type OrganizationWhereInput struct { + Predicates []predicate.Organization `json:"-"` + Not *OrganizationWhereInput `json:"not,omitempty"` + Or []*OrganizationWhereInput `json:"or,omitempty"` + And []*OrganizationWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -24855,157 +40983,229 @@ type InviteWhereInput struct { 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"` - UpdatedByGT *string `json:"updatedByGT,omitempty"` - UpdatedByGTE *string `json:"updatedByGTE,omitempty"` - UpdatedByLT *string `json:"updatedByLT,omitempty"` - UpdatedByLTE *string `json:"updatedByLTE,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" field predicates. + UpdatedBy *string `json:"updatedBy,omitempty"` + UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` + UpdatedByIn []string `json:"updatedByIn,omitempty"` + UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` + + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + + // "display_name" field predicates. + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGT *string `json:"displayNameGT,omitempty"` + DisplayNameGTE *string `json:"displayNameGTE,omitempty"` + DisplayNameLT *string `json:"displayNameLT,omitempty"` + DisplayNameLTE *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + + // "parent_organization_id" field predicates. + ParentOrganizationID *string `json:"parentOrganizationID,omitempty"` + ParentOrganizationIDNEQ *string `json:"parentOrganizationIDNEQ,omitempty"` + ParentOrganizationIDIn []string `json:"parentOrganizationIDIn,omitempty"` + ParentOrganizationIDNotIn []string `json:"parentOrganizationIDNotIn,omitempty"` + ParentOrganizationIDGT *string `json:"parentOrganizationIDGT,omitempty"` + ParentOrganizationIDGTE *string `json:"parentOrganizationIDGTE,omitempty"` + ParentOrganizationIDLT *string `json:"parentOrganizationIDLT,omitempty"` + ParentOrganizationIDLTE *string `json:"parentOrganizationIDLTE,omitempty"` + ParentOrganizationIDContains *string `json:"parentOrganizationIDContains,omitempty"` + ParentOrganizationIDHasPrefix *string `json:"parentOrganizationIDHasPrefix,omitempty"` + ParentOrganizationIDHasSuffix *string `json:"parentOrganizationIDHasSuffix,omitempty"` + ParentOrganizationIDIsNil bool `json:"parentOrganizationIDIsNil,omitempty"` + ParentOrganizationIDNotNil bool `json:"parentOrganizationIDNotNil,omitempty"` + ParentOrganizationIDEqualFold *string `json:"parentOrganizationIDEqualFold,omitempty"` + ParentOrganizationIDContainsFold *string `json:"parentOrganizationIDContainsFold,omitempty"` + + // "personal_org" field predicates. + PersonalOrg *bool `json:"personalOrg,omitempty"` + PersonalOrgNEQ *bool `json:"personalOrgNEQ,omitempty"` + PersonalOrgIsNil bool `json:"personalOrgIsNil,omitempty"` + PersonalOrgNotNil bool `json:"personalOrgNotNil,omitempty"` + + // "avatar_remote_url" field predicates. + AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` + AvatarRemoteURLNEQ *string `json:"avatarRemoteURLNEQ,omitempty"` + AvatarRemoteURLIn []string `json:"avatarRemoteURLIn,omitempty"` + AvatarRemoteURLNotIn []string `json:"avatarRemoteURLNotIn,omitempty"` + AvatarRemoteURLGT *string `json:"avatarRemoteURLGT,omitempty"` + AvatarRemoteURLGTE *string `json:"avatarRemoteURLGTE,omitempty"` + AvatarRemoteURLLT *string `json:"avatarRemoteURLLT,omitempty"` + AvatarRemoteURLLTE *string `json:"avatarRemoteURLLTE,omitempty"` + AvatarRemoteURLContains *string `json:"avatarRemoteURLContains,omitempty"` + AvatarRemoteURLHasPrefix *string `json:"avatarRemoteURLHasPrefix,omitempty"` + AvatarRemoteURLHasSuffix *string `json:"avatarRemoteURLHasSuffix,omitempty"` + AvatarRemoteURLIsNil bool `json:"avatarRemoteURLIsNil,omitempty"` + AvatarRemoteURLNotNil bool `json:"avatarRemoteURLNotNil,omitempty"` + AvatarRemoteURLEqualFold *string `json:"avatarRemoteURLEqualFold,omitempty"` + AvatarRemoteURLContainsFold *string `json:"avatarRemoteURLContainsFold,omitempty"` + + // "parent" edge predicates. + HasParent *bool `json:"hasParent,omitempty"` + HasParentWith []*OrganizationWhereInput `json:"hasParentWith,omitempty"` + + // "children" edge predicates. + HasChildren *bool `json:"hasChildren,omitempty"` + HasChildrenWith []*OrganizationWhereInput `json:"hasChildrenWith,omitempty"` + + // "groups" edge predicates. + HasGroups *bool `json:"hasGroups,omitempty"` + HasGroupsWith []*GroupWhereInput `json:"hasGroupsWith,omitempty"` + + // "templates" edge predicates. + HasTemplates *bool `json:"hasTemplates,omitempty"` + HasTemplatesWith []*TemplateWhereInput `json:"hasTemplatesWith,omitempty"` + + // "integrations" edge predicates. + HasIntegrations *bool `json:"hasIntegrations,omitempty"` + HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` + + // "setting" edge predicates. + HasSetting *bool `json:"hasSetting,omitempty"` + HasSettingWith []*OrganizationSettingWhereInput `json:"hasSettingWith,omitempty"` - // "deleted_at" field predicates. - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` + // "documentdata" edge predicates. + HasDocumentdata *bool `json:"hasDocumentdata,omitempty"` + HasDocumentdataWith []*DocumentDataWhereInput `json:"hasDocumentdataWith,omitempty"` - // "deleted_by" field predicates. - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGT *string `json:"deletedByGT,omitempty"` - DeletedByGTE *string `json:"deletedByGTE,omitempty"` - DeletedByLT *string `json:"deletedByLT,omitempty"` - DeletedByLTE *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // "entitlements" edge predicates. + HasEntitlements *bool `json:"hasEntitlements,omitempty"` + HasEntitlementsWith []*EntitlementWhereInput `json:"hasEntitlementsWith,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` + // "organization_entitlement" edge predicates. + HasOrganizationEntitlement *bool `json:"hasOrganizationEntitlement,omitempty"` + HasOrganizationEntitlementWith []*EntitlementWhereInput `json:"hasOrganizationEntitlementWith,omitempty"` - // "expires" field predicates. - Expires *time.Time `json:"expires,omitempty"` - ExpiresNEQ *time.Time `json:"expiresNEQ,omitempty"` - ExpiresIn []time.Time `json:"expiresIn,omitempty"` - ExpiresNotIn []time.Time `json:"expiresNotIn,omitempty"` - ExpiresGT *time.Time `json:"expiresGT,omitempty"` - ExpiresGTE *time.Time `json:"expiresGTE,omitempty"` - ExpiresLT *time.Time `json:"expiresLT,omitempty"` - ExpiresLTE *time.Time `json:"expiresLTE,omitempty"` - ExpiresIsNil bool `json:"expiresIsNil,omitempty"` - ExpiresNotNil bool `json:"expiresNotNil,omitempty"` + // "personal_access_tokens" edge predicates. + HasPersonalAccessTokens *bool `json:"hasPersonalAccessTokens,omitempty"` + HasPersonalAccessTokensWith []*PersonalAccessTokenWhereInput `json:"hasPersonalAccessTokensWith,omitempty"` - // "recipient" field predicates. - Recipient *string `json:"recipient,omitempty"` - RecipientNEQ *string `json:"recipientNEQ,omitempty"` - RecipientIn []string `json:"recipientIn,omitempty"` - RecipientNotIn []string `json:"recipientNotIn,omitempty"` - RecipientGT *string `json:"recipientGT,omitempty"` - RecipientGTE *string `json:"recipientGTE,omitempty"` - RecipientLT *string `json:"recipientLT,omitempty"` - RecipientLTE *string `json:"recipientLTE,omitempty"` - RecipientContains *string `json:"recipientContains,omitempty"` - RecipientHasPrefix *string `json:"recipientHasPrefix,omitempty"` - RecipientHasSuffix *string `json:"recipientHasSuffix,omitempty"` - RecipientEqualFold *string `json:"recipientEqualFold,omitempty"` - RecipientContainsFold *string `json:"recipientContainsFold,omitempty"` + // "api_tokens" edge predicates. + HasAPITokens *bool `json:"hasAPITokens,omitempty"` + HasAPITokensWith []*APITokenWhereInput `json:"hasAPITokensWith,omitempty"` - // "status" field predicates. - Status *enums.InviteStatus `json:"status,omitempty"` - StatusNEQ *enums.InviteStatus `json:"statusNEQ,omitempty"` - StatusIn []enums.InviteStatus `json:"statusIn,omitempty"` - StatusNotIn []enums.InviteStatus `json:"statusNotIn,omitempty"` + // "oauthprovider" edge predicates. + HasOauthprovider *bool `json:"hasOauthprovider,omitempty"` + HasOauthproviderWith []*OauthProviderWhereInput `json:"hasOauthproviderWith,omitempty"` - // "role" field predicates. - Role *enums.Role `json:"role,omitempty"` - RoleNEQ *enums.Role `json:"roleNEQ,omitempty"` - RoleIn []enums.Role `json:"roleIn,omitempty"` - RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` + // "users" edge predicates. + HasUsers *bool `json:"hasUsers,omitempty"` + HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"` - // "send_attempts" field predicates. - SendAttempts *int `json:"sendAttempts,omitempty"` - SendAttemptsNEQ *int `json:"sendAttemptsNEQ,omitempty"` - SendAttemptsIn []int `json:"sendAttemptsIn,omitempty"` - SendAttemptsNotIn []int `json:"sendAttemptsNotIn,omitempty"` - SendAttemptsGT *int `json:"sendAttemptsGT,omitempty"` - SendAttemptsGTE *int `json:"sendAttemptsGTE,omitempty"` - SendAttemptsLT *int `json:"sendAttemptsLT,omitempty"` - SendAttemptsLTE *int `json:"sendAttemptsLTE,omitempty"` + // "invites" edge predicates. + HasInvites *bool `json:"hasInvites,omitempty"` + HasInvitesWith []*InviteWhereInput `json:"hasInvitesWith,omitempty"` - // "requestor_id" field predicates. - RequestorID *string `json:"requestorID,omitempty"` - RequestorIDNEQ *string `json:"requestorIDNEQ,omitempty"` - RequestorIDIn []string `json:"requestorIDIn,omitempty"` - RequestorIDNotIn []string `json:"requestorIDNotIn,omitempty"` - RequestorIDGT *string `json:"requestorIDGT,omitempty"` - RequestorIDGTE *string `json:"requestorIDGTE,omitempty"` - RequestorIDLT *string `json:"requestorIDLT,omitempty"` - RequestorIDLTE *string `json:"requestorIDLTE,omitempty"` - RequestorIDContains *string `json:"requestorIDContains,omitempty"` - RequestorIDHasPrefix *string `json:"requestorIDHasPrefix,omitempty"` - RequestorIDHasSuffix *string `json:"requestorIDHasSuffix,omitempty"` - RequestorIDIsNil bool `json:"requestorIDIsNil,omitempty"` - RequestorIDNotNil bool `json:"requestorIDNotNil,omitempty"` - RequestorIDEqualFold *string `json:"requestorIDEqualFold,omitempty"` - RequestorIDContainsFold *string `json:"requestorIDContainsFold,omitempty"` + // "subscribers" edge predicates. + HasSubscribers *bool `json:"hasSubscribers,omitempty"` + HasSubscribersWith []*SubscriberWhereInput `json:"hasSubscribersWith,omitempty"` - // "owner" edge predicates. - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // "webhooks" edge predicates. + HasWebhooks *bool `json:"hasWebhooks,omitempty"` + HasWebhooksWith []*WebhookWhereInput `json:"hasWebhooksWith,omitempty"` // "events" edge predicates. HasEvents *bool `json:"hasEvents,omitempty"` HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + + // "secrets" edge predicates. + HasSecrets *bool `json:"hasSecrets,omitempty"` + HasSecretsWith []*HushWhereInput `json:"hasSecretsWith,omitempty"` + + // "features" edge predicates. + HasFeatures *bool `json:"hasFeatures,omitempty"` + HasFeaturesWith []*FeatureWhereInput `json:"hasFeaturesWith,omitempty"` + + // "files" edge predicates. + HasFiles *bool `json:"hasFiles,omitempty"` + HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` + + // "entitlementplans" edge predicates. + HasEntitlementplans *bool `json:"hasEntitlementplans,omitempty"` + HasEntitlementplansWith []*EntitlementPlanWhereInput `json:"hasEntitlementplansWith,omitempty"` + + // "entitlementplanfeatures" edge predicates. + HasEntitlementplanfeatures *bool `json:"hasEntitlementplanfeatures,omitempty"` + HasEntitlementplanfeaturesWith []*EntitlementPlanFeatureWhereInput `json:"hasEntitlementplanfeaturesWith,omitempty"` + + // "entities" edge predicates. + HasEntities *bool `json:"hasEntities,omitempty"` + HasEntitiesWith []*EntityWhereInput `json:"hasEntitiesWith,omitempty"` + + // "entitytypes" edge predicates. + HasEntitytypes *bool `json:"hasEntitytypes,omitempty"` + HasEntitytypesWith []*EntityTypeWhereInput `json:"hasEntitytypesWith,omitempty"` + + // "contacts" edge predicates. + HasContacts *bool `json:"hasContacts,omitempty"` + HasContactsWith []*ContactWhereInput `json:"hasContactsWith,omitempty"` + + // "notes" edge predicates. + HasNotes *bool `json:"hasNotes,omitempty"` + HasNotesWith []*NoteWhereInput `json:"hasNotesWith,omitempty"` + + // "members" edge predicates. + HasMembers *bool `json:"hasMembers,omitempty"` + HasMembersWith []*OrgMembershipWhereInput `json:"hasMembersWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *InviteWhereInput) AddPredicates(predicates ...predicate.Invite) { +func (i *OrganizationWhereInput) AddPredicates(predicates ...predicate.Organization) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the InviteWhereInput filter on the InviteQuery builder. -func (i *InviteWhereInput) Filter(q *InviteQuery) (*InviteQuery, error) { +// Filter applies the OrganizationWhereInput filter on the OrganizationQuery builder. +func (i *OrganizationWhereInput) Filter(q *OrganizationQuery) (*OrganizationQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyInviteWhereInput { + if err == ErrEmptyOrganizationWhereInput { return q, nil } return nil, err @@ -25013,19 +41213,19 @@ func (i *InviteWhereInput) Filter(q *InviteQuery) (*InviteQuery, error) { return q.Where(p), nil } -// ErrEmptyInviteWhereInput is returned in case the InviteWhereInput is empty. -var ErrEmptyInviteWhereInput = errors.New("generated: empty predicate InviteWhereInput") +// ErrEmptyOrganizationWhereInput is returned in case the OrganizationWhereInput is empty. +var ErrEmptyOrganizationWhereInput = errors.New("generated: empty predicate OrganizationWhereInput") -// P returns a predicate for filtering invites. +// P returns a predicate for filtering organizations. // An error is returned if the input is empty or invalid. -func (i *InviteWhereInput) P() (predicate.Invite, error) { - var predicates []predicate.Invite +func (i *OrganizationWhereInput) P() (predicate.Organization, error) { + var predicates []predicate.Organization if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, invite.Not(p)) + predicates = append(predicates, organization.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -25035,7 +41235,7 @@ func (i *InviteWhereInput) P() (predicate.Invite, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.Invite, 0, n) + or := make([]predicate.Organization, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -25043,7 +41243,7 @@ func (i *InviteWhereInput) P() (predicate.Invite, error) { } or = append(or, p) } - predicates = append(predicates, invite.Or(or...)) + predicates = append(predicates, organization.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -25053,7 +41253,7 @@ func (i *InviteWhereInput) P() (predicate.Invite, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.Invite, 0, n) + and := make([]predicate.Organization, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -25061,524 +41261,908 @@ func (i *InviteWhereInput) P() (predicate.Invite, error) { } and = append(and, p) } - predicates = append(predicates, invite.And(and...)) + predicates = append(predicates, organization.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, invite.IDEQ(*i.ID)) + predicates = append(predicates, organization.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, invite.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, organization.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, invite.IDIn(i.IDIn...)) + predicates = append(predicates, organization.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, invite.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, organization.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, invite.IDGT(*i.IDGT)) + predicates = append(predicates, organization.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, invite.IDGTE(*i.IDGTE)) + predicates = append(predicates, organization.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, invite.IDLT(*i.IDLT)) + predicates = append(predicates, organization.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, invite.IDLTE(*i.IDLTE)) + predicates = append(predicates, organization.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, invite.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, organization.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, invite.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, organization.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, invite.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, organization.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, invite.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, organization.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, invite.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, organization.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, invite.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, organization.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, invite.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, organization.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, invite.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, organization.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, invite.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, organization.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, invite.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, organization.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, invite.CreatedAtIsNil()) + predicates = append(predicates, organization.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, invite.CreatedAtNotNil()) + predicates = append(predicates, organization.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, invite.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, organization.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, invite.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, organization.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, invite.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, organization.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, invite.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, organization.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, invite.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, organization.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, invite.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, organization.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, invite.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, organization.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, invite.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, organization.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, invite.UpdatedAtIsNil()) + predicates = append(predicates, organization.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, invite.UpdatedAtNotNil()) + predicates = append(predicates, organization.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, invite.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, organization.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, invite.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, organization.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, invite.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, organization.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, invite.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, organization.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, invite.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, organization.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, invite.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, organization.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, invite.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, organization.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, invite.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, organization.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, invite.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, organization.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, invite.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, organization.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, invite.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, organization.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, invite.CreatedByIsNil()) + predicates = append(predicates, organization.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, invite.CreatedByNotNil()) + predicates = append(predicates, organization.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, invite.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, organization.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, invite.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, organization.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, invite.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, organization.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, invite.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, organization.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, invite.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, organization.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, invite.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, organization.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, invite.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, organization.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, invite.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, organization.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, invite.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, organization.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, invite.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, organization.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, invite.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, organization.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, invite.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, organization.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, invite.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, organization.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, invite.UpdatedByIsNil()) + predicates = append(predicates, organization.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, invite.UpdatedByNotNil()) + predicates = append(predicates, organization.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, invite.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, organization.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, invite.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, organization.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, invite.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, organization.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, invite.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, organization.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, invite.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, organization.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, invite.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, organization.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, invite.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, organization.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, invite.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, organization.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, invite.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, organization.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, invite.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, organization.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, invite.DeletedAtIsNil()) + predicates = append(predicates, organization.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, invite.DeletedAtNotNil()) + predicates = append(predicates, organization.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, invite.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, organization.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, invite.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, organization.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, invite.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, organization.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, invite.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, organization.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, invite.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, organization.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, invite.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, organization.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, invite.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, organization.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, invite.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, organization.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, invite.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, organization.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, invite.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, organization.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, invite.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, organization.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, invite.DeletedByIsNil()) + predicates = append(predicates, organization.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, invite.DeletedByNotNil()) + predicates = append(predicates, organization.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, invite.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, organization.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, invite.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, organization.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.OwnerID != nil { - predicates = append(predicates, invite.OwnerIDEQ(*i.OwnerID)) + if i.DisplayName != nil { + predicates = append(predicates, organization.DisplayNameEQ(*i.DisplayName)) } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, invite.OwnerIDNEQ(*i.OwnerIDNEQ)) + if i.DisplayNameNEQ != nil { + predicates = append(predicates, organization.DisplayNameNEQ(*i.DisplayNameNEQ)) } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, invite.OwnerIDIn(i.OwnerIDIn...)) + if len(i.DisplayNameIn) > 0 { + predicates = append(predicates, organization.DisplayNameIn(i.DisplayNameIn...)) } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, invite.OwnerIDNotIn(i.OwnerIDNotIn...)) + if len(i.DisplayNameNotIn) > 0 { + predicates = append(predicates, organization.DisplayNameNotIn(i.DisplayNameNotIn...)) } - if i.OwnerIDGT != nil { - predicates = append(predicates, invite.OwnerIDGT(*i.OwnerIDGT)) + if i.DisplayNameGT != nil { + predicates = append(predicates, organization.DisplayNameGT(*i.DisplayNameGT)) } - if i.OwnerIDGTE != nil { - predicates = append(predicates, invite.OwnerIDGTE(*i.OwnerIDGTE)) + if i.DisplayNameGTE != nil { + predicates = append(predicates, organization.DisplayNameGTE(*i.DisplayNameGTE)) } - if i.OwnerIDLT != nil { - predicates = append(predicates, invite.OwnerIDLT(*i.OwnerIDLT)) + if i.DisplayNameLT != nil { + predicates = append(predicates, organization.DisplayNameLT(*i.DisplayNameLT)) } - if i.OwnerIDLTE != nil { - predicates = append(predicates, invite.OwnerIDLTE(*i.OwnerIDLTE)) + if i.DisplayNameLTE != nil { + predicates = append(predicates, organization.DisplayNameLTE(*i.DisplayNameLTE)) } - if i.OwnerIDContains != nil { - predicates = append(predicates, invite.OwnerIDContains(*i.OwnerIDContains)) + if i.DisplayNameContains != nil { + predicates = append(predicates, organization.DisplayNameContains(*i.DisplayNameContains)) } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, invite.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + if i.DisplayNameHasPrefix != nil { + predicates = append(predicates, organization.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + } + if i.DisplayNameHasSuffix != nil { + predicates = append(predicates, organization.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + } + if i.DisplayNameEqualFold != nil { + predicates = append(predicates, organization.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + } + if i.DisplayNameContainsFold != nil { + predicates = append(predicates, organization.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + } + if i.ParentOrganizationID != nil { + predicates = append(predicates, organization.ParentOrganizationIDEQ(*i.ParentOrganizationID)) + } + if i.ParentOrganizationIDNEQ != nil { + predicates = append(predicates, organization.ParentOrganizationIDNEQ(*i.ParentOrganizationIDNEQ)) + } + if len(i.ParentOrganizationIDIn) > 0 { + predicates = append(predicates, organization.ParentOrganizationIDIn(i.ParentOrganizationIDIn...)) + } + if len(i.ParentOrganizationIDNotIn) > 0 { + predicates = append(predicates, organization.ParentOrganizationIDNotIn(i.ParentOrganizationIDNotIn...)) + } + if i.ParentOrganizationIDGT != nil { + predicates = append(predicates, organization.ParentOrganizationIDGT(*i.ParentOrganizationIDGT)) + } + if i.ParentOrganizationIDGTE != nil { + predicates = append(predicates, organization.ParentOrganizationIDGTE(*i.ParentOrganizationIDGTE)) + } + if i.ParentOrganizationIDLT != nil { + predicates = append(predicates, organization.ParentOrganizationIDLT(*i.ParentOrganizationIDLT)) + } + if i.ParentOrganizationIDLTE != nil { + predicates = append(predicates, organization.ParentOrganizationIDLTE(*i.ParentOrganizationIDLTE)) + } + if i.ParentOrganizationIDContains != nil { + predicates = append(predicates, organization.ParentOrganizationIDContains(*i.ParentOrganizationIDContains)) + } + if i.ParentOrganizationIDHasPrefix != nil { + predicates = append(predicates, organization.ParentOrganizationIDHasPrefix(*i.ParentOrganizationIDHasPrefix)) + } + if i.ParentOrganizationIDHasSuffix != nil { + predicates = append(predicates, organization.ParentOrganizationIDHasSuffix(*i.ParentOrganizationIDHasSuffix)) + } + if i.ParentOrganizationIDIsNil { + predicates = append(predicates, organization.ParentOrganizationIDIsNil()) + } + if i.ParentOrganizationIDNotNil { + predicates = append(predicates, organization.ParentOrganizationIDNotNil()) + } + if i.ParentOrganizationIDEqualFold != nil { + predicates = append(predicates, organization.ParentOrganizationIDEqualFold(*i.ParentOrganizationIDEqualFold)) + } + if i.ParentOrganizationIDContainsFold != nil { + predicates = append(predicates, organization.ParentOrganizationIDContainsFold(*i.ParentOrganizationIDContainsFold)) + } + if i.PersonalOrg != nil { + predicates = append(predicates, organization.PersonalOrgEQ(*i.PersonalOrg)) + } + if i.PersonalOrgNEQ != nil { + predicates = append(predicates, organization.PersonalOrgNEQ(*i.PersonalOrgNEQ)) + } + if i.PersonalOrgIsNil { + predicates = append(predicates, organization.PersonalOrgIsNil()) + } + if i.PersonalOrgNotNil { + predicates = append(predicates, organization.PersonalOrgNotNil()) + } + if i.AvatarRemoteURL != nil { + predicates = append(predicates, organization.AvatarRemoteURLEQ(*i.AvatarRemoteURL)) + } + if i.AvatarRemoteURLNEQ != nil { + predicates = append(predicates, organization.AvatarRemoteURLNEQ(*i.AvatarRemoteURLNEQ)) + } + if len(i.AvatarRemoteURLIn) > 0 { + predicates = append(predicates, organization.AvatarRemoteURLIn(i.AvatarRemoteURLIn...)) + } + if len(i.AvatarRemoteURLNotIn) > 0 { + predicates = append(predicates, organization.AvatarRemoteURLNotIn(i.AvatarRemoteURLNotIn...)) } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, invite.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + if i.AvatarRemoteURLGT != nil { + predicates = append(predicates, organization.AvatarRemoteURLGT(*i.AvatarRemoteURLGT)) } - if i.OwnerIDIsNil { - predicates = append(predicates, invite.OwnerIDIsNil()) + if i.AvatarRemoteURLGTE != nil { + predicates = append(predicates, organization.AvatarRemoteURLGTE(*i.AvatarRemoteURLGTE)) } - if i.OwnerIDNotNil { - predicates = append(predicates, invite.OwnerIDNotNil()) + if i.AvatarRemoteURLLT != nil { + predicates = append(predicates, organization.AvatarRemoteURLLT(*i.AvatarRemoteURLLT)) } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, invite.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + if i.AvatarRemoteURLLTE != nil { + predicates = append(predicates, organization.AvatarRemoteURLLTE(*i.AvatarRemoteURLLTE)) } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, invite.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + if i.AvatarRemoteURLContains != nil { + predicates = append(predicates, organization.AvatarRemoteURLContains(*i.AvatarRemoteURLContains)) } - if i.Expires != nil { - predicates = append(predicates, invite.ExpiresEQ(*i.Expires)) + if i.AvatarRemoteURLHasPrefix != nil { + predicates = append(predicates, organization.AvatarRemoteURLHasPrefix(*i.AvatarRemoteURLHasPrefix)) } - if i.ExpiresNEQ != nil { - predicates = append(predicates, invite.ExpiresNEQ(*i.ExpiresNEQ)) + if i.AvatarRemoteURLHasSuffix != nil { + predicates = append(predicates, organization.AvatarRemoteURLHasSuffix(*i.AvatarRemoteURLHasSuffix)) } - if len(i.ExpiresIn) > 0 { - predicates = append(predicates, invite.ExpiresIn(i.ExpiresIn...)) + if i.AvatarRemoteURLIsNil { + predicates = append(predicates, organization.AvatarRemoteURLIsNil()) } - if len(i.ExpiresNotIn) > 0 { - predicates = append(predicates, invite.ExpiresNotIn(i.ExpiresNotIn...)) + if i.AvatarRemoteURLNotNil { + predicates = append(predicates, organization.AvatarRemoteURLNotNil()) } - if i.ExpiresGT != nil { - predicates = append(predicates, invite.ExpiresGT(*i.ExpiresGT)) + if i.AvatarRemoteURLEqualFold != nil { + predicates = append(predicates, organization.AvatarRemoteURLEqualFold(*i.AvatarRemoteURLEqualFold)) } - if i.ExpiresGTE != nil { - predicates = append(predicates, invite.ExpiresGTE(*i.ExpiresGTE)) + if i.AvatarRemoteURLContainsFold != nil { + predicates = append(predicates, organization.AvatarRemoteURLContainsFold(*i.AvatarRemoteURLContainsFold)) } - if i.ExpiresLT != nil { - predicates = append(predicates, invite.ExpiresLT(*i.ExpiresLT)) + + if i.HasParent != nil { + p := organization.HasParent() + if !*i.HasParent { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.ExpiresLTE != nil { - predicates = append(predicates, invite.ExpiresLTE(*i.ExpiresLTE)) + if len(i.HasParentWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasParentWith)) + for _, w := range i.HasParentWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasParentWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasParentWith(with...)) } - if i.ExpiresIsNil { - predicates = append(predicates, invite.ExpiresIsNil()) + if i.HasChildren != nil { + p := organization.HasChildren() + if !*i.HasChildren { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.ExpiresNotNil { - predicates = append(predicates, invite.ExpiresNotNil()) + if len(i.HasChildrenWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasChildrenWith)) + for _, w := range i.HasChildrenWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasChildrenWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasChildrenWith(with...)) } - if i.Recipient != nil { - predicates = append(predicates, invite.RecipientEQ(*i.Recipient)) + if i.HasGroups != nil { + p := organization.HasGroups() + if !*i.HasGroups { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.RecipientNEQ != nil { - predicates = append(predicates, invite.RecipientNEQ(*i.RecipientNEQ)) + if len(i.HasGroupsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasGroupsWith)) + for _, w := range i.HasGroupsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasGroupsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasGroupsWith(with...)) } - if len(i.RecipientIn) > 0 { - predicates = append(predicates, invite.RecipientIn(i.RecipientIn...)) + if i.HasTemplates != nil { + p := organization.HasTemplates() + if !*i.HasTemplates { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if len(i.RecipientNotIn) > 0 { - predicates = append(predicates, invite.RecipientNotIn(i.RecipientNotIn...)) + if len(i.HasTemplatesWith) > 0 { + with := make([]predicate.Template, 0, len(i.HasTemplatesWith)) + for _, w := range i.HasTemplatesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasTemplatesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasTemplatesWith(with...)) } - if i.RecipientGT != nil { - predicates = append(predicates, invite.RecipientGT(*i.RecipientGT)) + if i.HasIntegrations != nil { + p := organization.HasIntegrations() + if !*i.HasIntegrations { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.RecipientGTE != nil { - predicates = append(predicates, invite.RecipientGTE(*i.RecipientGTE)) + if len(i.HasIntegrationsWith) > 0 { + with := make([]predicate.Integration, 0, len(i.HasIntegrationsWith)) + for _, w := range i.HasIntegrationsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasIntegrationsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasIntegrationsWith(with...)) } - if i.RecipientLT != nil { - predicates = append(predicates, invite.RecipientLT(*i.RecipientLT)) + if i.HasSetting != nil { + p := organization.HasSetting() + if !*i.HasSetting { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.RecipientLTE != nil { - predicates = append(predicates, invite.RecipientLTE(*i.RecipientLTE)) + if len(i.HasSettingWith) > 0 { + with := make([]predicate.OrganizationSetting, 0, len(i.HasSettingWith)) + for _, w := range i.HasSettingWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasSettingWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasSettingWith(with...)) } - if i.RecipientContains != nil { - predicates = append(predicates, invite.RecipientContains(*i.RecipientContains)) + if i.HasDocumentdata != nil { + p := organization.HasDocumentdata() + if !*i.HasDocumentdata { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.RecipientHasPrefix != nil { - predicates = append(predicates, invite.RecipientHasPrefix(*i.RecipientHasPrefix)) + if len(i.HasDocumentdataWith) > 0 { + with := make([]predicate.DocumentData, 0, len(i.HasDocumentdataWith)) + for _, w := range i.HasDocumentdataWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasDocumentdataWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasDocumentdataWith(with...)) } - if i.RecipientHasSuffix != nil { - predicates = append(predicates, invite.RecipientHasSuffix(*i.RecipientHasSuffix)) + if i.HasEntitlements != nil { + p := organization.HasEntitlements() + if !*i.HasEntitlements { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.RecipientEqualFold != nil { - predicates = append(predicates, invite.RecipientEqualFold(*i.RecipientEqualFold)) + if len(i.HasEntitlementsWith) > 0 { + with := make([]predicate.Entitlement, 0, len(i.HasEntitlementsWith)) + for _, w := range i.HasEntitlementsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntitlementsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasEntitlementsWith(with...)) } - if i.RecipientContainsFold != nil { - predicates = append(predicates, invite.RecipientContainsFold(*i.RecipientContainsFold)) + if i.HasOrganizationEntitlement != nil { + p := organization.HasOrganizationEntitlement() + if !*i.HasOrganizationEntitlement { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.Status != nil { - predicates = append(predicates, invite.StatusEQ(*i.Status)) + if len(i.HasOrganizationEntitlementWith) > 0 { + with := make([]predicate.Entitlement, 0, len(i.HasOrganizationEntitlementWith)) + for _, w := range i.HasOrganizationEntitlementWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOrganizationEntitlementWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasOrganizationEntitlementWith(with...)) } - if i.StatusNEQ != nil { - predicates = append(predicates, invite.StatusNEQ(*i.StatusNEQ)) + if i.HasPersonalAccessTokens != nil { + p := organization.HasPersonalAccessTokens() + if !*i.HasPersonalAccessTokens { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if len(i.StatusIn) > 0 { - predicates = append(predicates, invite.StatusIn(i.StatusIn...)) + if len(i.HasPersonalAccessTokensWith) > 0 { + with := make([]predicate.PersonalAccessToken, 0, len(i.HasPersonalAccessTokensWith)) + for _, w := range i.HasPersonalAccessTokensWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasPersonalAccessTokensWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasPersonalAccessTokensWith(with...)) } - if len(i.StatusNotIn) > 0 { - predicates = append(predicates, invite.StatusNotIn(i.StatusNotIn...)) + if i.HasAPITokens != nil { + p := organization.HasAPITokens() + if !*i.HasAPITokens { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.Role != nil { - predicates = append(predicates, invite.RoleEQ(*i.Role)) + if len(i.HasAPITokensWith) > 0 { + with := make([]predicate.APIToken, 0, len(i.HasAPITokensWith)) + for _, w := range i.HasAPITokensWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAPITokensWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasAPITokensWith(with...)) } - if i.RoleNEQ != nil { - predicates = append(predicates, invite.RoleNEQ(*i.RoleNEQ)) + if i.HasOauthprovider != nil { + p := organization.HasOauthprovider() + if !*i.HasOauthprovider { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if len(i.RoleIn) > 0 { - predicates = append(predicates, invite.RoleIn(i.RoleIn...)) + if len(i.HasOauthproviderWith) > 0 { + with := make([]predicate.OauthProvider, 0, len(i.HasOauthproviderWith)) + for _, w := range i.HasOauthproviderWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOauthproviderWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasOauthproviderWith(with...)) } - if len(i.RoleNotIn) > 0 { - predicates = append(predicates, invite.RoleNotIn(i.RoleNotIn...)) + if i.HasUsers != nil { + p := organization.HasUsers() + if !*i.HasUsers { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.SendAttempts != nil { - predicates = append(predicates, invite.SendAttemptsEQ(*i.SendAttempts)) + if len(i.HasUsersWith) > 0 { + with := make([]predicate.User, 0, len(i.HasUsersWith)) + for _, w := range i.HasUsersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasUsersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasUsersWith(with...)) } - if i.SendAttemptsNEQ != nil { - predicates = append(predicates, invite.SendAttemptsNEQ(*i.SendAttemptsNEQ)) + if i.HasInvites != nil { + p := organization.HasInvites() + if !*i.HasInvites { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if len(i.SendAttemptsIn) > 0 { - predicates = append(predicates, invite.SendAttemptsIn(i.SendAttemptsIn...)) + if len(i.HasInvitesWith) > 0 { + with := make([]predicate.Invite, 0, len(i.HasInvitesWith)) + for _, w := range i.HasInvitesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasInvitesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasInvitesWith(with...)) } - if len(i.SendAttemptsNotIn) > 0 { - predicates = append(predicates, invite.SendAttemptsNotIn(i.SendAttemptsNotIn...)) + if i.HasSubscribers != nil { + p := organization.HasSubscribers() + if !*i.HasSubscribers { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.SendAttemptsGT != nil { - predicates = append(predicates, invite.SendAttemptsGT(*i.SendAttemptsGT)) + if len(i.HasSubscribersWith) > 0 { + with := make([]predicate.Subscriber, 0, len(i.HasSubscribersWith)) + for _, w := range i.HasSubscribersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasSubscribersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasSubscribersWith(with...)) } - if i.SendAttemptsGTE != nil { - predicates = append(predicates, invite.SendAttemptsGTE(*i.SendAttemptsGTE)) + if i.HasWebhooks != nil { + p := organization.HasWebhooks() + if !*i.HasWebhooks { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.SendAttemptsLT != nil { - predicates = append(predicates, invite.SendAttemptsLT(*i.SendAttemptsLT)) + if len(i.HasWebhooksWith) > 0 { + with := make([]predicate.Webhook, 0, len(i.HasWebhooksWith)) + for _, w := range i.HasWebhooksWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasWebhooksWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasWebhooksWith(with...)) } - if i.SendAttemptsLTE != nil { - predicates = append(predicates, invite.SendAttemptsLTE(*i.SendAttemptsLTE)) + if i.HasEvents != nil { + p := organization.HasEvents() + if !*i.HasEvents { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.RequestorID != nil { - predicates = append(predicates, invite.RequestorIDEQ(*i.RequestorID)) + if len(i.HasEventsWith) > 0 { + with := make([]predicate.Event, 0, len(i.HasEventsWith)) + for _, w := range i.HasEventsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasEventsWith(with...)) } - if i.RequestorIDNEQ != nil { - predicates = append(predicates, invite.RequestorIDNEQ(*i.RequestorIDNEQ)) + if i.HasSecrets != nil { + p := organization.HasSecrets() + if !*i.HasSecrets { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if len(i.RequestorIDIn) > 0 { - predicates = append(predicates, invite.RequestorIDIn(i.RequestorIDIn...)) + if len(i.HasSecretsWith) > 0 { + with := make([]predicate.Hush, 0, len(i.HasSecretsWith)) + for _, w := range i.HasSecretsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasSecretsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasSecretsWith(with...)) } - if len(i.RequestorIDNotIn) > 0 { - predicates = append(predicates, invite.RequestorIDNotIn(i.RequestorIDNotIn...)) + if i.HasFeatures != nil { + p := organization.HasFeatures() + if !*i.HasFeatures { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.RequestorIDGT != nil { - predicates = append(predicates, invite.RequestorIDGT(*i.RequestorIDGT)) + if len(i.HasFeaturesWith) > 0 { + with := make([]predicate.Feature, 0, len(i.HasFeaturesWith)) + for _, w := range i.HasFeaturesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFeaturesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasFeaturesWith(with...)) } - if i.RequestorIDGTE != nil { - predicates = append(predicates, invite.RequestorIDGTE(*i.RequestorIDGTE)) + if i.HasFiles != nil { + p := organization.HasFiles() + if !*i.HasFiles { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.RequestorIDLT != nil { - predicates = append(predicates, invite.RequestorIDLT(*i.RequestorIDLT)) + if len(i.HasFilesWith) > 0 { + with := make([]predicate.File, 0, len(i.HasFilesWith)) + for _, w := range i.HasFilesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFilesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasFilesWith(with...)) } - if i.RequestorIDLTE != nil { - predicates = append(predicates, invite.RequestorIDLTE(*i.RequestorIDLTE)) + if i.HasEntitlementplans != nil { + p := organization.HasEntitlementplans() + if !*i.HasEntitlementplans { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.RequestorIDContains != nil { - predicates = append(predicates, invite.RequestorIDContains(*i.RequestorIDContains)) + if len(i.HasEntitlementplansWith) > 0 { + with := make([]predicate.EntitlementPlan, 0, len(i.HasEntitlementplansWith)) + for _, w := range i.HasEntitlementplansWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntitlementplansWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasEntitlementplansWith(with...)) } - if i.RequestorIDHasPrefix != nil { - predicates = append(predicates, invite.RequestorIDHasPrefix(*i.RequestorIDHasPrefix)) + if i.HasEntitlementplanfeatures != nil { + p := organization.HasEntitlementplanfeatures() + if !*i.HasEntitlementplanfeatures { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.RequestorIDHasSuffix != nil { - predicates = append(predicates, invite.RequestorIDHasSuffix(*i.RequestorIDHasSuffix)) + if len(i.HasEntitlementplanfeaturesWith) > 0 { + with := make([]predicate.EntitlementPlanFeature, 0, len(i.HasEntitlementplanfeaturesWith)) + for _, w := range i.HasEntitlementplanfeaturesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntitlementplanfeaturesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasEntitlementplanfeaturesWith(with...)) } - if i.RequestorIDIsNil { - predicates = append(predicates, invite.RequestorIDIsNil()) + if i.HasEntities != nil { + p := organization.HasEntities() + if !*i.HasEntities { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.RequestorIDNotNil { - predicates = append(predicates, invite.RequestorIDNotNil()) + if len(i.HasEntitiesWith) > 0 { + with := make([]predicate.Entity, 0, len(i.HasEntitiesWith)) + for _, w := range i.HasEntitiesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntitiesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasEntitiesWith(with...)) + } + if i.HasEntitytypes != nil { + p := organization.HasEntitytypes() + if !*i.HasEntitytypes { + p = organization.Not(p) + } + predicates = append(predicates, p) } - if i.RequestorIDEqualFold != nil { - predicates = append(predicates, invite.RequestorIDEqualFold(*i.RequestorIDEqualFold)) + if len(i.HasEntitytypesWith) > 0 { + with := make([]predicate.EntityType, 0, len(i.HasEntitytypesWith)) + for _, w := range i.HasEntitytypesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEntitytypesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasEntitytypesWith(with...)) } - if i.RequestorIDContainsFold != nil { - predicates = append(predicates, invite.RequestorIDContainsFold(*i.RequestorIDContainsFold)) + if i.HasContacts != nil { + p := organization.HasContacts() + if !*i.HasContacts { + p = organization.Not(p) + } + predicates = append(predicates, p) } - - if i.HasOwner != nil { - p := invite.HasOwner() - if !*i.HasOwner { - p = invite.Not(p) + if len(i.HasContactsWith) > 0 { + with := make([]predicate.Contact, 0, len(i.HasContactsWith)) + for _, w := range i.HasContactsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasContactsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasContactsWith(with...)) + } + if i.HasNotes != nil { + p := organization.HasNotes() + if !*i.HasNotes { + p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasOwnerWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) - for _, w := range i.HasOwnerWith { + if len(i.HasNotesWith) > 0 { + with := make([]predicate.Note, 0, len(i.HasNotesWith)) + for _, w := range i.HasNotesWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasOwnerWith'", err) + return nil, fmt.Errorf("%w: field 'HasNotesWith'", err) } with = append(with, p) } - predicates = append(predicates, invite.HasOwnerWith(with...)) + predicates = append(predicates, organization.HasNotesWith(with...)) } - if i.HasEvents != nil { - p := invite.HasEvents() - if !*i.HasEvents { - p = invite.Not(p) + if i.HasMembers != nil { + p := organization.HasMembers() + if !*i.HasMembers { + p = organization.Not(p) } predicates = append(predicates, p) } - if len(i.HasEventsWith) > 0 { - with := make([]predicate.Event, 0, len(i.HasEventsWith)) - for _, w := range i.HasEventsWith { + if len(i.HasMembersWith) > 0 { + with := make([]predicate.OrgMembership, 0, len(i.HasMembersWith)) + for _, w := range i.HasMembersWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + return nil, fmt.Errorf("%w: field 'HasMembersWith'", err) } with = append(with, p) } - predicates = append(predicates, invite.HasEventsWith(with...)) + predicates = append(predicates, organization.HasMembersWith(with...)) } switch len(predicates) { case 0: - return nil, ErrEmptyInviteWhereInput + return nil, ErrEmptyOrganizationWhereInput case 1: return predicates[0], nil default: - return invite.And(predicates...), nil + return organization.And(predicates...), nil } } -// NoteWhereInput represents a where input for filtering Note queries. -type NoteWhereInput struct { - Predicates []predicate.Note `json:"-"` - Not *NoteWhereInput `json:"not,omitempty"` - Or []*NoteWhereInput `json:"or,omitempty"` - And []*NoteWhereInput `json:"and,omitempty"` +// OrganizationHistoryWhereInput represents a where input for filtering OrganizationHistory queries. +type OrganizationHistoryWhereInput struct { + Predicates []predicate.OrganizationHistory `json:"-"` + Not *OrganizationHistoryWhereInput `json:"not,omitempty"` + Or []*OrganizationHistoryWhereInput `json:"or,omitempty"` + And []*OrganizationHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -25592,6 +42176,39 @@ type NoteWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -25679,60 +42296,75 @@ type NoteWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` + // "display_name" field predicates. + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGT *string `json:"displayNameGT,omitempty"` + DisplayNameGTE *string `json:"displayNameGTE,omitempty"` + DisplayNameLT *string `json:"displayNameLT,omitempty"` + DisplayNameLTE *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` - // "text" field predicates. - Text *string `json:"text,omitempty"` - TextNEQ *string `json:"textNEQ,omitempty"` - TextIn []string `json:"textIn,omitempty"` - TextNotIn []string `json:"textNotIn,omitempty"` - TextGT *string `json:"textGT,omitempty"` - TextGTE *string `json:"textGTE,omitempty"` - TextLT *string `json:"textLT,omitempty"` - TextLTE *string `json:"textLTE,omitempty"` - TextContains *string `json:"textContains,omitempty"` - TextHasPrefix *string `json:"textHasPrefix,omitempty"` - TextHasSuffix *string `json:"textHasSuffix,omitempty"` - TextEqualFold *string `json:"textEqualFold,omitempty"` - TextContainsFold *string `json:"textContainsFold,omitempty"` + // "parent_organization_id" field predicates. + ParentOrganizationID *string `json:"parentOrganizationID,omitempty"` + ParentOrganizationIDNEQ *string `json:"parentOrganizationIDNEQ,omitempty"` + ParentOrganizationIDIn []string `json:"parentOrganizationIDIn,omitempty"` + ParentOrganizationIDNotIn []string `json:"parentOrganizationIDNotIn,omitempty"` + ParentOrganizationIDGT *string `json:"parentOrganizationIDGT,omitempty"` + ParentOrganizationIDGTE *string `json:"parentOrganizationIDGTE,omitempty"` + ParentOrganizationIDLT *string `json:"parentOrganizationIDLT,omitempty"` + ParentOrganizationIDLTE *string `json:"parentOrganizationIDLTE,omitempty"` + ParentOrganizationIDContains *string `json:"parentOrganizationIDContains,omitempty"` + ParentOrganizationIDHasPrefix *string `json:"parentOrganizationIDHasPrefix,omitempty"` + ParentOrganizationIDHasSuffix *string `json:"parentOrganizationIDHasSuffix,omitempty"` + ParentOrganizationIDIsNil bool `json:"parentOrganizationIDIsNil,omitempty"` + ParentOrganizationIDNotNil bool `json:"parentOrganizationIDNotNil,omitempty"` + ParentOrganizationIDEqualFold *string `json:"parentOrganizationIDEqualFold,omitempty"` + ParentOrganizationIDContainsFold *string `json:"parentOrganizationIDContainsFold,omitempty"` - // "owner" edge predicates. - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // "personal_org" field predicates. + PersonalOrg *bool `json:"personalOrg,omitempty"` + PersonalOrgNEQ *bool `json:"personalOrgNEQ,omitempty"` + PersonalOrgIsNil bool `json:"personalOrgIsNil,omitempty"` + PersonalOrgNotNil bool `json:"personalOrgNotNil,omitempty"` - // "entity" edge predicates. - HasEntity *bool `json:"hasEntity,omitempty"` - HasEntityWith []*EntityWhereInput `json:"hasEntityWith,omitempty"` + // "avatar_remote_url" field predicates. + AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` + AvatarRemoteURLNEQ *string `json:"avatarRemoteURLNEQ,omitempty"` + AvatarRemoteURLIn []string `json:"avatarRemoteURLIn,omitempty"` + AvatarRemoteURLNotIn []string `json:"avatarRemoteURLNotIn,omitempty"` + AvatarRemoteURLGT *string `json:"avatarRemoteURLGT,omitempty"` + AvatarRemoteURLGTE *string `json:"avatarRemoteURLGTE,omitempty"` + AvatarRemoteURLLT *string `json:"avatarRemoteURLLT,omitempty"` + AvatarRemoteURLLTE *string `json:"avatarRemoteURLLTE,omitempty"` + AvatarRemoteURLContains *string `json:"avatarRemoteURLContains,omitempty"` + AvatarRemoteURLHasPrefix *string `json:"avatarRemoteURLHasPrefix,omitempty"` + AvatarRemoteURLHasSuffix *string `json:"avatarRemoteURLHasSuffix,omitempty"` + AvatarRemoteURLIsNil bool `json:"avatarRemoteURLIsNil,omitempty"` + AvatarRemoteURLNotNil bool `json:"avatarRemoteURLNotNil,omitempty"` + AvatarRemoteURLEqualFold *string `json:"avatarRemoteURLEqualFold,omitempty"` + AvatarRemoteURLContainsFold *string `json:"avatarRemoteURLContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *NoteWhereInput) AddPredicates(predicates ...predicate.Note) { +func (i *OrganizationHistoryWhereInput) AddPredicates(predicates ...predicate.OrganizationHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the NoteWhereInput filter on the NoteQuery builder. -func (i *NoteWhereInput) Filter(q *NoteQuery) (*NoteQuery, error) { +// Filter applies the OrganizationHistoryWhereInput filter on the OrganizationHistoryQuery builder. +func (i *OrganizationHistoryWhereInput) Filter(q *OrganizationHistoryQuery) (*OrganizationHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyNoteWhereInput { + if err == ErrEmptyOrganizationHistoryWhereInput { return q, nil } return nil, err @@ -25740,19 +42372,19 @@ func (i *NoteWhereInput) Filter(q *NoteQuery) (*NoteQuery, error) { return q.Where(p), nil } -// ErrEmptyNoteWhereInput is returned in case the NoteWhereInput is empty. -var ErrEmptyNoteWhereInput = errors.New("generated: empty predicate NoteWhereInput") +// ErrEmptyOrganizationHistoryWhereInput is returned in case the OrganizationHistoryWhereInput is empty. +var ErrEmptyOrganizationHistoryWhereInput = errors.New("generated: empty predicate OrganizationHistoryWhereInput") -// P returns a predicate for filtering notes. +// P returns a predicate for filtering organizationhistories. // An error is returned if the input is empty or invalid. -func (i *NoteWhereInput) P() (predicate.Note, error) { - var predicates []predicate.Note +func (i *OrganizationHistoryWhereInput) P() (predicate.OrganizationHistory, error) { + var predicates []predicate.OrganizationHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, note.Not(p)) + predicates = append(predicates, organizationhistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -25762,7 +42394,7 @@ func (i *NoteWhereInput) P() (predicate.Note, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.Note, 0, n) + or := make([]predicate.OrganizationHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -25770,7 +42402,7 @@ func (i *NoteWhereInput) P() (predicate.Note, error) { } or = append(or, p) } - predicates = append(predicates, note.Or(or...)) + predicates = append(predicates, organizationhistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -25780,7 +42412,7 @@ func (i *NoteWhereInput) P() (predicate.Note, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.Note, 0, n) + and := make([]predicate.OrganizationHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -25788,401 +42420,503 @@ func (i *NoteWhereInput) P() (predicate.Note, error) { } and = append(and, p) } - predicates = append(predicates, note.And(and...)) + predicates = append(predicates, organizationhistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, note.IDEQ(*i.ID)) + predicates = append(predicates, organizationhistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, note.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, organizationhistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, note.IDIn(i.IDIn...)) + predicates = append(predicates, organizationhistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, note.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, organizationhistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, note.IDGT(*i.IDGT)) + predicates = append(predicates, organizationhistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, note.IDGTE(*i.IDGTE)) + predicates = append(predicates, organizationhistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, note.IDLT(*i.IDLT)) + predicates = append(predicates, organizationhistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, note.IDLTE(*i.IDLTE)) + predicates = append(predicates, organizationhistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, note.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, organizationhistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, note.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, organizationhistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, organizationhistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, organizationhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, organizationhistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, organizationhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, organizationhistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, organizationhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, organizationhistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, organizationhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, organizationhistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, organizationhistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, organizationhistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, organizationhistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, organizationhistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, organizationhistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, organizationhistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, organizationhistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, organizationhistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, organizationhistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, organizationhistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, organizationhistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, organizationhistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, organizationhistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, organizationhistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, organizationhistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, organizationhistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, organizationhistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, organizationhistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, note.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, organizationhistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, note.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, organizationhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, note.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, organizationhistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, note.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, organizationhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, note.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, organizationhistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, note.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, organizationhistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, note.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, organizationhistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, note.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, organizationhistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, note.CreatedAtIsNil()) + predicates = append(predicates, organizationhistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, note.CreatedAtNotNil()) + predicates = append(predicates, organizationhistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, note.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, organizationhistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, note.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, organizationhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, note.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, organizationhistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, note.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, organizationhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, note.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, organizationhistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, note.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, organizationhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, note.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, organizationhistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, note.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, organizationhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, note.UpdatedAtIsNil()) + predicates = append(predicates, organizationhistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, note.UpdatedAtNotNil()) + predicates = append(predicates, organizationhistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, note.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, organizationhistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, note.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, organizationhistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, note.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, organizationhistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, note.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, organizationhistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, note.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, organizationhistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, note.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, organizationhistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, note.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, organizationhistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, note.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, organizationhistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, note.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, organizationhistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, note.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, organizationhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, note.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, organizationhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, note.CreatedByIsNil()) + predicates = append(predicates, organizationhistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, note.CreatedByNotNil()) + predicates = append(predicates, organizationhistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, note.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, organizationhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, note.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, organizationhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, note.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, organizationhistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, note.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, organizationhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, note.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, organizationhistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, note.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, organizationhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, note.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, organizationhistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, note.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, organizationhistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, note.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, organizationhistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, note.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, organizationhistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, note.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, organizationhistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, note.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, organizationhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, note.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, organizationhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, note.UpdatedByIsNil()) + predicates = append(predicates, organizationhistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, note.UpdatedByNotNil()) + predicates = append(predicates, organizationhistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, note.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, organizationhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, note.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, organizationhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, note.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, organizationhistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, note.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, organizationhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, note.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, organizationhistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, note.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, organizationhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, note.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, organizationhistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, note.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, organizationhistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, note.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, organizationhistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, note.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, organizationhistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, note.DeletedAtIsNil()) + predicates = append(predicates, organizationhistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, note.DeletedAtNotNil()) + predicates = append(predicates, organizationhistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, note.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, organizationhistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, note.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, organizationhistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, note.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, organizationhistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, note.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, organizationhistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, note.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, organizationhistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, note.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, organizationhistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, note.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, organizationhistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, note.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, organizationhistory.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, organizationhistory.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, organizationhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, organizationhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, organizationhistory.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, organizationhistory.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, organizationhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, organizationhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.DisplayName != nil { + predicates = append(predicates, organizationhistory.DisplayNameEQ(*i.DisplayName)) + } + if i.DisplayNameNEQ != nil { + predicates = append(predicates, organizationhistory.DisplayNameNEQ(*i.DisplayNameNEQ)) + } + if len(i.DisplayNameIn) > 0 { + predicates = append(predicates, organizationhistory.DisplayNameIn(i.DisplayNameIn...)) + } + if len(i.DisplayNameNotIn) > 0 { + predicates = append(predicates, organizationhistory.DisplayNameNotIn(i.DisplayNameNotIn...)) + } + if i.DisplayNameGT != nil { + predicates = append(predicates, organizationhistory.DisplayNameGT(*i.DisplayNameGT)) + } + if i.DisplayNameGTE != nil { + predicates = append(predicates, organizationhistory.DisplayNameGTE(*i.DisplayNameGTE)) + } + if i.DisplayNameLT != nil { + predicates = append(predicates, organizationhistory.DisplayNameLT(*i.DisplayNameLT)) + } + if i.DisplayNameLTE != nil { + predicates = append(predicates, organizationhistory.DisplayNameLTE(*i.DisplayNameLTE)) } - if i.DeletedByContains != nil { - predicates = append(predicates, note.DeletedByContains(*i.DeletedByContains)) + if i.DisplayNameContains != nil { + predicates = append(predicates, organizationhistory.DisplayNameContains(*i.DisplayNameContains)) } - if i.DeletedByHasPrefix != nil { - predicates = append(predicates, note.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + if i.DisplayNameHasPrefix != nil { + predicates = append(predicates, organizationhistory.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) } - if i.DeletedByHasSuffix != nil { - predicates = append(predicates, note.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + if i.DisplayNameHasSuffix != nil { + predicates = append(predicates, organizationhistory.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) } - if i.DeletedByIsNil { - predicates = append(predicates, note.DeletedByIsNil()) + if i.DisplayNameEqualFold != nil { + predicates = append(predicates, organizationhistory.DisplayNameEqualFold(*i.DisplayNameEqualFold)) } - if i.DeletedByNotNil { - predicates = append(predicates, note.DeletedByNotNil()) + if i.DisplayNameContainsFold != nil { + predicates = append(predicates, organizationhistory.DisplayNameContainsFold(*i.DisplayNameContainsFold)) } - if i.DeletedByEqualFold != nil { - predicates = append(predicates, note.DeletedByEqualFold(*i.DeletedByEqualFold)) + if i.ParentOrganizationID != nil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDEQ(*i.ParentOrganizationID)) } - if i.DeletedByContainsFold != nil { - predicates = append(predicates, note.DeletedByContainsFold(*i.DeletedByContainsFold)) + if i.ParentOrganizationIDNEQ != nil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDNEQ(*i.ParentOrganizationIDNEQ)) } - if i.OwnerID != nil { - predicates = append(predicates, note.OwnerIDEQ(*i.OwnerID)) + if len(i.ParentOrganizationIDIn) > 0 { + predicates = append(predicates, organizationhistory.ParentOrganizationIDIn(i.ParentOrganizationIDIn...)) } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, note.OwnerIDNEQ(*i.OwnerIDNEQ)) + if len(i.ParentOrganizationIDNotIn) > 0 { + predicates = append(predicates, organizationhistory.ParentOrganizationIDNotIn(i.ParentOrganizationIDNotIn...)) } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, note.OwnerIDIn(i.OwnerIDIn...)) + if i.ParentOrganizationIDGT != nil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDGT(*i.ParentOrganizationIDGT)) } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, note.OwnerIDNotIn(i.OwnerIDNotIn...)) + if i.ParentOrganizationIDGTE != nil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDGTE(*i.ParentOrganizationIDGTE)) } - if i.OwnerIDGT != nil { - predicates = append(predicates, note.OwnerIDGT(*i.OwnerIDGT)) + if i.ParentOrganizationIDLT != nil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDLT(*i.ParentOrganizationIDLT)) } - if i.OwnerIDGTE != nil { - predicates = append(predicates, note.OwnerIDGTE(*i.OwnerIDGTE)) + if i.ParentOrganizationIDLTE != nil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDLTE(*i.ParentOrganizationIDLTE)) } - if i.OwnerIDLT != nil { - predicates = append(predicates, note.OwnerIDLT(*i.OwnerIDLT)) + if i.ParentOrganizationIDContains != nil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDContains(*i.ParentOrganizationIDContains)) } - if i.OwnerIDLTE != nil { - predicates = append(predicates, note.OwnerIDLTE(*i.OwnerIDLTE)) + if i.ParentOrganizationIDHasPrefix != nil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDHasPrefix(*i.ParentOrganizationIDHasPrefix)) } - if i.OwnerIDContains != nil { - predicates = append(predicates, note.OwnerIDContains(*i.OwnerIDContains)) + if i.ParentOrganizationIDHasSuffix != nil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDHasSuffix(*i.ParentOrganizationIDHasSuffix)) } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, note.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + if i.ParentOrganizationIDIsNil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDIsNil()) } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, note.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + if i.ParentOrganizationIDNotNil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDNotNil()) } - if i.OwnerIDIsNil { - predicates = append(predicates, note.OwnerIDIsNil()) + if i.ParentOrganizationIDEqualFold != nil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDEqualFold(*i.ParentOrganizationIDEqualFold)) } - if i.OwnerIDNotNil { - predicates = append(predicates, note.OwnerIDNotNil()) + if i.ParentOrganizationIDContainsFold != nil { + predicates = append(predicates, organizationhistory.ParentOrganizationIDContainsFold(*i.ParentOrganizationIDContainsFold)) } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, note.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + if i.PersonalOrg != nil { + predicates = append(predicates, organizationhistory.PersonalOrgEQ(*i.PersonalOrg)) } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, note.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + if i.PersonalOrgNEQ != nil { + predicates = append(predicates, organizationhistory.PersonalOrgNEQ(*i.PersonalOrgNEQ)) } - if i.Text != nil { - predicates = append(predicates, note.TextEQ(*i.Text)) + if i.PersonalOrgIsNil { + predicates = append(predicates, organizationhistory.PersonalOrgIsNil()) } - if i.TextNEQ != nil { - predicates = append(predicates, note.TextNEQ(*i.TextNEQ)) + if i.PersonalOrgNotNil { + predicates = append(predicates, organizationhistory.PersonalOrgNotNil()) } - if len(i.TextIn) > 0 { - predicates = append(predicates, note.TextIn(i.TextIn...)) + if i.AvatarRemoteURL != nil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLEQ(*i.AvatarRemoteURL)) } - if len(i.TextNotIn) > 0 { - predicates = append(predicates, note.TextNotIn(i.TextNotIn...)) + if i.AvatarRemoteURLNEQ != nil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLNEQ(*i.AvatarRemoteURLNEQ)) } - if i.TextGT != nil { - predicates = append(predicates, note.TextGT(*i.TextGT)) + if len(i.AvatarRemoteURLIn) > 0 { + predicates = append(predicates, organizationhistory.AvatarRemoteURLIn(i.AvatarRemoteURLIn...)) } - if i.TextGTE != nil { - predicates = append(predicates, note.TextGTE(*i.TextGTE)) + if len(i.AvatarRemoteURLNotIn) > 0 { + predicates = append(predicates, organizationhistory.AvatarRemoteURLNotIn(i.AvatarRemoteURLNotIn...)) } - if i.TextLT != nil { - predicates = append(predicates, note.TextLT(*i.TextLT)) + if i.AvatarRemoteURLGT != nil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLGT(*i.AvatarRemoteURLGT)) } - if i.TextLTE != nil { - predicates = append(predicates, note.TextLTE(*i.TextLTE)) + if i.AvatarRemoteURLGTE != nil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLGTE(*i.AvatarRemoteURLGTE)) } - if i.TextContains != nil { - predicates = append(predicates, note.TextContains(*i.TextContains)) + if i.AvatarRemoteURLLT != nil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLLT(*i.AvatarRemoteURLLT)) } - if i.TextHasPrefix != nil { - predicates = append(predicates, note.TextHasPrefix(*i.TextHasPrefix)) + if i.AvatarRemoteURLLTE != nil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLLTE(*i.AvatarRemoteURLLTE)) } - if i.TextHasSuffix != nil { - predicates = append(predicates, note.TextHasSuffix(*i.TextHasSuffix)) + if i.AvatarRemoteURLContains != nil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLContains(*i.AvatarRemoteURLContains)) } - if i.TextEqualFold != nil { - predicates = append(predicates, note.TextEqualFold(*i.TextEqualFold)) + if i.AvatarRemoteURLHasPrefix != nil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLHasPrefix(*i.AvatarRemoteURLHasPrefix)) } - if i.TextContainsFold != nil { - predicates = append(predicates, note.TextContainsFold(*i.TextContainsFold)) + if i.AvatarRemoteURLHasSuffix != nil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLHasSuffix(*i.AvatarRemoteURLHasSuffix)) } - - if i.HasOwner != nil { - p := note.HasOwner() - if !*i.HasOwner { - p = note.Not(p) - } - predicates = append(predicates, p) + if i.AvatarRemoteURLIsNil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLIsNil()) } - if len(i.HasOwnerWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) - 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, note.HasOwnerWith(with...)) + if i.AvatarRemoteURLNotNil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLNotNil()) } - if i.HasEntity != nil { - p := note.HasEntity() - if !*i.HasEntity { - p = note.Not(p) - } - predicates = append(predicates, p) + if i.AvatarRemoteURLEqualFold != nil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLEqualFold(*i.AvatarRemoteURLEqualFold)) } - if len(i.HasEntityWith) > 0 { - with := make([]predicate.Entity, 0, len(i.HasEntityWith)) - for _, w := range i.HasEntityWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntityWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, note.HasEntityWith(with...)) + if i.AvatarRemoteURLContainsFold != nil { + predicates = append(predicates, organizationhistory.AvatarRemoteURLContainsFold(*i.AvatarRemoteURLContainsFold)) } + switch len(predicates) { case 0: - return nil, ErrEmptyNoteWhereInput + return nil, ErrEmptyOrganizationHistoryWhereInput case 1: return predicates[0], nil default: - return note.And(predicates...), nil + return organizationhistory.And(predicates...), nil } } -// NoteHistoryWhereInput represents a where input for filtering NoteHistory queries. -type NoteHistoryWhereInput struct { - Predicates []predicate.NoteHistory `json:"-"` - Not *NoteHistoryWhereInput `json:"not,omitempty"` - Or []*NoteHistoryWhereInput `json:"or,omitempty"` - And []*NoteHistoryWhereInput `json:"and,omitempty"` +// OrganizationSettingWhereInput represents a where input for filtering OrganizationSetting queries. +type OrganizationSettingWhereInput struct { + Predicates []predicate.OrganizationSetting `json:"-"` + Not *OrganizationSettingWhereInput `json:"not,omitempty"` + Or []*OrganizationSettingWhereInput `json:"or,omitempty"` + And []*OrganizationSettingWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -26196,39 +42930,6 @@ type NoteHistoryWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // "history_time" field predicates. - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` - RefGT *string `json:"refGT,omitempty"` - RefGTE *string `json:"refGTE,omitempty"` - RefLT *string `json:"refLT,omitempty"` - RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -26316,52 +43017,138 @@ type NoteHistoryWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` + // "billing_contact" field predicates. + BillingContact *string `json:"billingContact,omitempty"` + BillingContactNEQ *string `json:"billingContactNEQ,omitempty"` + BillingContactIn []string `json:"billingContactIn,omitempty"` + BillingContactNotIn []string `json:"billingContactNotIn,omitempty"` + BillingContactGT *string `json:"billingContactGT,omitempty"` + BillingContactGTE *string `json:"billingContactGTE,omitempty"` + BillingContactLT *string `json:"billingContactLT,omitempty"` + BillingContactLTE *string `json:"billingContactLTE,omitempty"` + BillingContactContains *string `json:"billingContactContains,omitempty"` + BillingContactHasPrefix *string `json:"billingContactHasPrefix,omitempty"` + BillingContactHasSuffix *string `json:"billingContactHasSuffix,omitempty"` + BillingContactIsNil bool `json:"billingContactIsNil,omitempty"` + BillingContactNotNil bool `json:"billingContactNotNil,omitempty"` + BillingContactEqualFold *string `json:"billingContactEqualFold,omitempty"` + BillingContactContainsFold *string `json:"billingContactContainsFold,omitempty"` - // "text" field predicates. - Text *string `json:"text,omitempty"` - TextNEQ *string `json:"textNEQ,omitempty"` - TextIn []string `json:"textIn,omitempty"` - TextNotIn []string `json:"textNotIn,omitempty"` - TextGT *string `json:"textGT,omitempty"` - TextGTE *string `json:"textGTE,omitempty"` - TextLT *string `json:"textLT,omitempty"` - TextLTE *string `json:"textLTE,omitempty"` - TextContains *string `json:"textContains,omitempty"` - TextHasPrefix *string `json:"textHasPrefix,omitempty"` - TextHasSuffix *string `json:"textHasSuffix,omitempty"` - TextEqualFold *string `json:"textEqualFold,omitempty"` - TextContainsFold *string `json:"textContainsFold,omitempty"` + // "billing_email" field predicates. + BillingEmail *string `json:"billingEmail,omitempty"` + BillingEmailNEQ *string `json:"billingEmailNEQ,omitempty"` + BillingEmailIn []string `json:"billingEmailIn,omitempty"` + BillingEmailNotIn []string `json:"billingEmailNotIn,omitempty"` + BillingEmailGT *string `json:"billingEmailGT,omitempty"` + BillingEmailGTE *string `json:"billingEmailGTE,omitempty"` + BillingEmailLT *string `json:"billingEmailLT,omitempty"` + BillingEmailLTE *string `json:"billingEmailLTE,omitempty"` + BillingEmailContains *string `json:"billingEmailContains,omitempty"` + BillingEmailHasPrefix *string `json:"billingEmailHasPrefix,omitempty"` + BillingEmailHasSuffix *string `json:"billingEmailHasSuffix,omitempty"` + BillingEmailIsNil bool `json:"billingEmailIsNil,omitempty"` + BillingEmailNotNil bool `json:"billingEmailNotNil,omitempty"` + BillingEmailEqualFold *string `json:"billingEmailEqualFold,omitempty"` + BillingEmailContainsFold *string `json:"billingEmailContainsFold,omitempty"` + + // "billing_phone" field predicates. + BillingPhone *string `json:"billingPhone,omitempty"` + BillingPhoneNEQ *string `json:"billingPhoneNEQ,omitempty"` + BillingPhoneIn []string `json:"billingPhoneIn,omitempty"` + BillingPhoneNotIn []string `json:"billingPhoneNotIn,omitempty"` + BillingPhoneGT *string `json:"billingPhoneGT,omitempty"` + BillingPhoneGTE *string `json:"billingPhoneGTE,omitempty"` + BillingPhoneLT *string `json:"billingPhoneLT,omitempty"` + BillingPhoneLTE *string `json:"billingPhoneLTE,omitempty"` + BillingPhoneContains *string `json:"billingPhoneContains,omitempty"` + BillingPhoneHasPrefix *string `json:"billingPhoneHasPrefix,omitempty"` + BillingPhoneHasSuffix *string `json:"billingPhoneHasSuffix,omitempty"` + BillingPhoneIsNil bool `json:"billingPhoneIsNil,omitempty"` + BillingPhoneNotNil bool `json:"billingPhoneNotNil,omitempty"` + BillingPhoneEqualFold *string `json:"billingPhoneEqualFold,omitempty"` + BillingPhoneContainsFold *string `json:"billingPhoneContainsFold,omitempty"` + + // "billing_address" field predicates. + BillingAddress *string `json:"billingAddress,omitempty"` + BillingAddressNEQ *string `json:"billingAddressNEQ,omitempty"` + BillingAddressIn []string `json:"billingAddressIn,omitempty"` + BillingAddressNotIn []string `json:"billingAddressNotIn,omitempty"` + BillingAddressGT *string `json:"billingAddressGT,omitempty"` + BillingAddressGTE *string `json:"billingAddressGTE,omitempty"` + BillingAddressLT *string `json:"billingAddressLT,omitempty"` + BillingAddressLTE *string `json:"billingAddressLTE,omitempty"` + BillingAddressContains *string `json:"billingAddressContains,omitempty"` + BillingAddressHasPrefix *string `json:"billingAddressHasPrefix,omitempty"` + BillingAddressHasSuffix *string `json:"billingAddressHasSuffix,omitempty"` + BillingAddressIsNil bool `json:"billingAddressIsNil,omitempty"` + BillingAddressNotNil bool `json:"billingAddressNotNil,omitempty"` + BillingAddressEqualFold *string `json:"billingAddressEqualFold,omitempty"` + BillingAddressContainsFold *string `json:"billingAddressContainsFold,omitempty"` + + // "tax_identifier" field predicates. + TaxIdentifier *string `json:"taxIdentifier,omitempty"` + TaxIdentifierNEQ *string `json:"taxIdentifierNEQ,omitempty"` + TaxIdentifierIn []string `json:"taxIdentifierIn,omitempty"` + TaxIdentifierNotIn []string `json:"taxIdentifierNotIn,omitempty"` + TaxIdentifierGT *string `json:"taxIdentifierGT,omitempty"` + TaxIdentifierGTE *string `json:"taxIdentifierGTE,omitempty"` + TaxIdentifierLT *string `json:"taxIdentifierLT,omitempty"` + TaxIdentifierLTE *string `json:"taxIdentifierLTE,omitempty"` + TaxIdentifierContains *string `json:"taxIdentifierContains,omitempty"` + TaxIdentifierHasPrefix *string `json:"taxIdentifierHasPrefix,omitempty"` + TaxIdentifierHasSuffix *string `json:"taxIdentifierHasSuffix,omitempty"` + TaxIdentifierIsNil bool `json:"taxIdentifierIsNil,omitempty"` + TaxIdentifierNotNil bool `json:"taxIdentifierNotNil,omitempty"` + TaxIdentifierEqualFold *string `json:"taxIdentifierEqualFold,omitempty"` + TaxIdentifierContainsFold *string `json:"taxIdentifierContainsFold,omitempty"` + + // "geo_location" field predicates. + GeoLocation *enums.Region `json:"geoLocation,omitempty"` + GeoLocationNEQ *enums.Region `json:"geoLocationNEQ,omitempty"` + GeoLocationIn []enums.Region `json:"geoLocationIn,omitempty"` + GeoLocationNotIn []enums.Region `json:"geoLocationNotIn,omitempty"` + GeoLocationIsNil bool `json:"geoLocationIsNil,omitempty"` + GeoLocationNotNil bool `json:"geoLocationNotNil,omitempty"` + + // "organization_id" field predicates. + OrganizationID *string `json:"organizationID,omitempty"` + OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` + OrganizationIDIn []string `json:"organizationIDIn,omitempty"` + OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` + OrganizationIDGT *string `json:"organizationIDGT,omitempty"` + OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` + OrganizationIDLT *string `json:"organizationIDLT,omitempty"` + OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` + OrganizationIDContains *string `json:"organizationIDContains,omitempty"` + OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` + OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` + OrganizationIDIsNil bool `json:"organizationIDIsNil,omitempty"` + OrganizationIDNotNil bool `json:"organizationIDNotNil,omitempty"` + OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` + OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` + + // "organization" edge predicates. + HasOrganization *bool `json:"hasOrganization,omitempty"` + HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` + + // "files" edge predicates. + HasFiles *bool `json:"hasFiles,omitempty"` + HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *NoteHistoryWhereInput) AddPredicates(predicates ...predicate.NoteHistory) { +func (i *OrganizationSettingWhereInput) AddPredicates(predicates ...predicate.OrganizationSetting) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the NoteHistoryWhereInput filter on the NoteHistoryQuery builder. -func (i *NoteHistoryWhereInput) Filter(q *NoteHistoryQuery) (*NoteHistoryQuery, error) { +// Filter applies the OrganizationSettingWhereInput filter on the OrganizationSettingQuery builder. +func (i *OrganizationSettingWhereInput) Filter(q *OrganizationSettingQuery) (*OrganizationSettingQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyNoteHistoryWhereInput { + if err == ErrEmptyOrganizationSettingWhereInput { return q, nil } return nil, err @@ -26369,494 +43156,653 @@ func (i *NoteHistoryWhereInput) Filter(q *NoteHistoryQuery) (*NoteHistoryQuery, return q.Where(p), nil } -// ErrEmptyNoteHistoryWhereInput is returned in case the NoteHistoryWhereInput is empty. -var ErrEmptyNoteHistoryWhereInput = errors.New("generated: empty predicate NoteHistoryWhereInput") +// ErrEmptyOrganizationSettingWhereInput is returned in case the OrganizationSettingWhereInput is empty. +var ErrEmptyOrganizationSettingWhereInput = errors.New("generated: empty predicate OrganizationSettingWhereInput") -// P returns a predicate for filtering notehistories. +// P returns a predicate for filtering organizationsettings. // An error is returned if the input is empty or invalid. -func (i *NoteHistoryWhereInput) P() (predicate.NoteHistory, error) { - var predicates []predicate.NoteHistory +func (i *OrganizationSettingWhereInput) P() (predicate.OrganizationSetting, error) { + var predicates []predicate.OrganizationSetting if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, notehistory.Not(p)) + predicates = append(predicates, organizationsetting.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.NoteHistory, 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, notehistory.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.NoteHistory, 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, notehistory.And(and...)) - } - predicates = append(predicates, i.Predicates...) - if i.ID != nil { - predicates = append(predicates, notehistory.IDEQ(*i.ID)) - } - if i.IDNEQ != nil { - predicates = append(predicates, notehistory.IDNEQ(*i.IDNEQ)) - } - if len(i.IDIn) > 0 { - predicates = append(predicates, notehistory.IDIn(i.IDIn...)) - } - if len(i.IDNotIn) > 0 { - predicates = append(predicates, notehistory.IDNotIn(i.IDNotIn...)) - } - if i.IDGT != nil { - predicates = append(predicates, notehistory.IDGT(*i.IDGT)) - } - if i.IDGTE != nil { - predicates = append(predicates, notehistory.IDGTE(*i.IDGTE)) - } - if i.IDLT != nil { - predicates = append(predicates, notehistory.IDLT(*i.IDLT)) - } - if i.IDLTE != nil { - predicates = append(predicates, notehistory.IDLTE(*i.IDLTE)) - } - if i.IDEqualFold != nil { - predicates = append(predicates, notehistory.IDEqualFold(*i.IDEqualFold)) - } - if i.IDContainsFold != nil { - predicates = append(predicates, notehistory.IDContainsFold(*i.IDContainsFold)) - } - if i.HistoryTime != nil { - predicates = append(predicates, notehistory.HistoryTimeEQ(*i.HistoryTime)) - } - if i.HistoryTimeNEQ != nil { - predicates = append(predicates, notehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) - } - if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, notehistory.HistoryTimeIn(i.HistoryTimeIn...)) - } - if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, notehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) - } - if i.HistoryTimeGT != nil { - predicates = append(predicates, notehistory.HistoryTimeGT(*i.HistoryTimeGT)) - } - if i.HistoryTimeGTE != nil { - predicates = append(predicates, notehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) - } - if i.HistoryTimeLT != nil { - predicates = append(predicates, notehistory.HistoryTimeLT(*i.HistoryTimeLT)) - } - if i.HistoryTimeLTE != nil { - predicates = append(predicates, notehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) - } - if i.Ref != nil { - predicates = append(predicates, notehistory.RefEQ(*i.Ref)) - } - if i.RefNEQ != nil { - predicates = append(predicates, notehistory.RefNEQ(*i.RefNEQ)) - } - if len(i.RefIn) > 0 { - predicates = append(predicates, notehistory.RefIn(i.RefIn...)) - } - if len(i.RefNotIn) > 0 { - predicates = append(predicates, notehistory.RefNotIn(i.RefNotIn...)) - } - if i.RefGT != nil { - predicates = append(predicates, notehistory.RefGT(*i.RefGT)) - } - if i.RefGTE != nil { - predicates = append(predicates, notehistory.RefGTE(*i.RefGTE)) - } - if i.RefLT != nil { - predicates = append(predicates, notehistory.RefLT(*i.RefLT)) - } - if i.RefLTE != nil { - predicates = append(predicates, notehistory.RefLTE(*i.RefLTE)) + 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.OrganizationSetting, 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, organizationsetting.Or(or...)) } - if i.RefContains != nil { - predicates = append(predicates, notehistory.RefContains(*i.RefContains)) + 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.OrganizationSetting, 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, organizationsetting.And(and...)) } - if i.RefHasPrefix != nil { - predicates = append(predicates, notehistory.RefHasPrefix(*i.RefHasPrefix)) + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, organizationsetting.IDEQ(*i.ID)) } - if i.RefHasSuffix != nil { - predicates = append(predicates, notehistory.RefHasSuffix(*i.RefHasSuffix)) + if i.IDNEQ != nil { + predicates = append(predicates, organizationsetting.IDNEQ(*i.IDNEQ)) } - if i.RefIsNil { - predicates = append(predicates, notehistory.RefIsNil()) + if len(i.IDIn) > 0 { + predicates = append(predicates, organizationsetting.IDIn(i.IDIn...)) } - if i.RefNotNil { - predicates = append(predicates, notehistory.RefNotNil()) + if len(i.IDNotIn) > 0 { + predicates = append(predicates, organizationsetting.IDNotIn(i.IDNotIn...)) } - if i.RefEqualFold != nil { - predicates = append(predicates, notehistory.RefEqualFold(*i.RefEqualFold)) + if i.IDGT != nil { + predicates = append(predicates, organizationsetting.IDGT(*i.IDGT)) } - if i.RefContainsFold != nil { - predicates = append(predicates, notehistory.RefContainsFold(*i.RefContainsFold)) + if i.IDGTE != nil { + predicates = append(predicates, organizationsetting.IDGTE(*i.IDGTE)) } - if i.Operation != nil { - predicates = append(predicates, notehistory.OperationEQ(*i.Operation)) + if i.IDLT != nil { + predicates = append(predicates, organizationsetting.IDLT(*i.IDLT)) } - if i.OperationNEQ != nil { - predicates = append(predicates, notehistory.OperationNEQ(*i.OperationNEQ)) + if i.IDLTE != nil { + predicates = append(predicates, organizationsetting.IDLTE(*i.IDLTE)) } - if len(i.OperationIn) > 0 { - predicates = append(predicates, notehistory.OperationIn(i.OperationIn...)) + if i.IDEqualFold != nil { + predicates = append(predicates, organizationsetting.IDEqualFold(*i.IDEqualFold)) } - if len(i.OperationNotIn) > 0 { - predicates = append(predicates, notehistory.OperationNotIn(i.OperationNotIn...)) + if i.IDContainsFold != nil { + predicates = append(predicates, organizationsetting.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, notehistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, organizationsetting.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, notehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, organizationsetting.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, notehistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, organizationsetting.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, notehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, organizationsetting.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, notehistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, organizationsetting.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, notehistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, organizationsetting.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, notehistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, organizationsetting.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, notehistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, organizationsetting.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, notehistory.CreatedAtIsNil()) + predicates = append(predicates, organizationsetting.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, notehistory.CreatedAtNotNil()) + predicates = append(predicates, organizationsetting.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, notehistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, organizationsetting.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, notehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, organizationsetting.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, notehistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, organizationsetting.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, notehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, organizationsetting.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, notehistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, organizationsetting.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, notehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, organizationsetting.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, notehistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, organizationsetting.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, notehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, organizationsetting.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, notehistory.UpdatedAtIsNil()) + predicates = append(predicates, organizationsetting.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, notehistory.UpdatedAtNotNil()) + predicates = append(predicates, organizationsetting.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, notehistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, organizationsetting.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, notehistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, organizationsetting.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, notehistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, organizationsetting.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, notehistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, organizationsetting.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, notehistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, organizationsetting.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, notehistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, organizationsetting.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, notehistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, organizationsetting.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, notehistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, organizationsetting.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, notehistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, organizationsetting.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, notehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, organizationsetting.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, notehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, organizationsetting.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, notehistory.CreatedByIsNil()) + predicates = append(predicates, organizationsetting.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, notehistory.CreatedByNotNil()) + predicates = append(predicates, organizationsetting.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, notehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, organizationsetting.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, notehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, organizationsetting.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, notehistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, organizationsetting.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, notehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, organizationsetting.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, notehistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, organizationsetting.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, notehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, organizationsetting.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, notehistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, organizationsetting.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, notehistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, organizationsetting.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, notehistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, organizationsetting.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, notehistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, organizationsetting.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, notehistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, organizationsetting.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, notehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, organizationsetting.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, notehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, organizationsetting.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, notehistory.UpdatedByIsNil()) + predicates = append(predicates, organizationsetting.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, notehistory.UpdatedByNotNil()) + predicates = append(predicates, organizationsetting.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, notehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, organizationsetting.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, notehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, organizationsetting.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, notehistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, organizationsetting.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, notehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, organizationsetting.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, notehistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, organizationsetting.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, notehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, organizationsetting.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, notehistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, organizationsetting.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, notehistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, organizationsetting.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, notehistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, organizationsetting.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, notehistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, organizationsetting.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, notehistory.DeletedAtIsNil()) + predicates = append(predicates, organizationsetting.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, notehistory.DeletedAtNotNil()) + predicates = append(predicates, organizationsetting.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, notehistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, organizationsetting.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, notehistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, organizationsetting.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, notehistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, organizationsetting.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, notehistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, organizationsetting.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, notehistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, organizationsetting.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, notehistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, organizationsetting.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, notehistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, organizationsetting.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, notehistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, organizationsetting.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, notehistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, organizationsetting.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, notehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, organizationsetting.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, notehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, organizationsetting.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, notehistory.DeletedByIsNil()) + predicates = append(predicates, organizationsetting.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, notehistory.DeletedByNotNil()) + predicates = append(predicates, organizationsetting.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, notehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, organizationsetting.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, notehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, organizationsetting.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.OwnerID != nil { - predicates = append(predicates, notehistory.OwnerIDEQ(*i.OwnerID)) + if i.BillingContact != nil { + predicates = append(predicates, organizationsetting.BillingContactEQ(*i.BillingContact)) } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, notehistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + if i.BillingContactNEQ != nil { + predicates = append(predicates, organizationsetting.BillingContactNEQ(*i.BillingContactNEQ)) } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, notehistory.OwnerIDIn(i.OwnerIDIn...)) + if len(i.BillingContactIn) > 0 { + predicates = append(predicates, organizationsetting.BillingContactIn(i.BillingContactIn...)) } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, notehistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + if len(i.BillingContactNotIn) > 0 { + predicates = append(predicates, organizationsetting.BillingContactNotIn(i.BillingContactNotIn...)) } - if i.OwnerIDGT != nil { - predicates = append(predicates, notehistory.OwnerIDGT(*i.OwnerIDGT)) + if i.BillingContactGT != nil { + predicates = append(predicates, organizationsetting.BillingContactGT(*i.BillingContactGT)) } - if i.OwnerIDGTE != nil { - predicates = append(predicates, notehistory.OwnerIDGTE(*i.OwnerIDGTE)) + if i.BillingContactGTE != nil { + predicates = append(predicates, organizationsetting.BillingContactGTE(*i.BillingContactGTE)) } - if i.OwnerIDLT != nil { - predicates = append(predicates, notehistory.OwnerIDLT(*i.OwnerIDLT)) + if i.BillingContactLT != nil { + predicates = append(predicates, organizationsetting.BillingContactLT(*i.BillingContactLT)) } - if i.OwnerIDLTE != nil { - predicates = append(predicates, notehistory.OwnerIDLTE(*i.OwnerIDLTE)) + if i.BillingContactLTE != nil { + predicates = append(predicates, organizationsetting.BillingContactLTE(*i.BillingContactLTE)) } - if i.OwnerIDContains != nil { - predicates = append(predicates, notehistory.OwnerIDContains(*i.OwnerIDContains)) + if i.BillingContactContains != nil { + predicates = append(predicates, organizationsetting.BillingContactContains(*i.BillingContactContains)) } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, notehistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + if i.BillingContactHasPrefix != nil { + predicates = append(predicates, organizationsetting.BillingContactHasPrefix(*i.BillingContactHasPrefix)) } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, notehistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + if i.BillingContactHasSuffix != nil { + predicates = append(predicates, organizationsetting.BillingContactHasSuffix(*i.BillingContactHasSuffix)) } - if i.OwnerIDIsNil { - predicates = append(predicates, notehistory.OwnerIDIsNil()) + if i.BillingContactIsNil { + predicates = append(predicates, organizationsetting.BillingContactIsNil()) } - if i.OwnerIDNotNil { - predicates = append(predicates, notehistory.OwnerIDNotNil()) + if i.BillingContactNotNil { + predicates = append(predicates, organizationsetting.BillingContactNotNil()) } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, notehistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + if i.BillingContactEqualFold != nil { + predicates = append(predicates, organizationsetting.BillingContactEqualFold(*i.BillingContactEqualFold)) } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, notehistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + if i.BillingContactContainsFold != nil { + predicates = append(predicates, organizationsetting.BillingContactContainsFold(*i.BillingContactContainsFold)) } - if i.Text != nil { - predicates = append(predicates, notehistory.TextEQ(*i.Text)) + if i.BillingEmail != nil { + predicates = append(predicates, organizationsetting.BillingEmailEQ(*i.BillingEmail)) } - if i.TextNEQ != nil { - predicates = append(predicates, notehistory.TextNEQ(*i.TextNEQ)) + if i.BillingEmailNEQ != nil { + predicates = append(predicates, organizationsetting.BillingEmailNEQ(*i.BillingEmailNEQ)) } - if len(i.TextIn) > 0 { - predicates = append(predicates, notehistory.TextIn(i.TextIn...)) + if len(i.BillingEmailIn) > 0 { + predicates = append(predicates, organizationsetting.BillingEmailIn(i.BillingEmailIn...)) + } + if len(i.BillingEmailNotIn) > 0 { + predicates = append(predicates, organizationsetting.BillingEmailNotIn(i.BillingEmailNotIn...)) + } + if i.BillingEmailGT != nil { + predicates = append(predicates, organizationsetting.BillingEmailGT(*i.BillingEmailGT)) + } + if i.BillingEmailGTE != nil { + predicates = append(predicates, organizationsetting.BillingEmailGTE(*i.BillingEmailGTE)) + } + if i.BillingEmailLT != nil { + predicates = append(predicates, organizationsetting.BillingEmailLT(*i.BillingEmailLT)) + } + if i.BillingEmailLTE != nil { + predicates = append(predicates, organizationsetting.BillingEmailLTE(*i.BillingEmailLTE)) + } + if i.BillingEmailContains != nil { + predicates = append(predicates, organizationsetting.BillingEmailContains(*i.BillingEmailContains)) + } + if i.BillingEmailHasPrefix != nil { + predicates = append(predicates, organizationsetting.BillingEmailHasPrefix(*i.BillingEmailHasPrefix)) + } + if i.BillingEmailHasSuffix != nil { + predicates = append(predicates, organizationsetting.BillingEmailHasSuffix(*i.BillingEmailHasSuffix)) + } + if i.BillingEmailIsNil { + predicates = append(predicates, organizationsetting.BillingEmailIsNil()) + } + if i.BillingEmailNotNil { + predicates = append(predicates, organizationsetting.BillingEmailNotNil()) + } + if i.BillingEmailEqualFold != nil { + predicates = append(predicates, organizationsetting.BillingEmailEqualFold(*i.BillingEmailEqualFold)) + } + if i.BillingEmailContainsFold != nil { + predicates = append(predicates, organizationsetting.BillingEmailContainsFold(*i.BillingEmailContainsFold)) + } + if i.BillingPhone != nil { + predicates = append(predicates, organizationsetting.BillingPhoneEQ(*i.BillingPhone)) + } + if i.BillingPhoneNEQ != nil { + predicates = append(predicates, organizationsetting.BillingPhoneNEQ(*i.BillingPhoneNEQ)) + } + if len(i.BillingPhoneIn) > 0 { + predicates = append(predicates, organizationsetting.BillingPhoneIn(i.BillingPhoneIn...)) + } + if len(i.BillingPhoneNotIn) > 0 { + predicates = append(predicates, organizationsetting.BillingPhoneNotIn(i.BillingPhoneNotIn...)) + } + if i.BillingPhoneGT != nil { + predicates = append(predicates, organizationsetting.BillingPhoneGT(*i.BillingPhoneGT)) + } + if i.BillingPhoneGTE != nil { + predicates = append(predicates, organizationsetting.BillingPhoneGTE(*i.BillingPhoneGTE)) + } + if i.BillingPhoneLT != nil { + predicates = append(predicates, organizationsetting.BillingPhoneLT(*i.BillingPhoneLT)) + } + if i.BillingPhoneLTE != nil { + predicates = append(predicates, organizationsetting.BillingPhoneLTE(*i.BillingPhoneLTE)) + } + if i.BillingPhoneContains != nil { + predicates = append(predicates, organizationsetting.BillingPhoneContains(*i.BillingPhoneContains)) + } + if i.BillingPhoneHasPrefix != nil { + predicates = append(predicates, organizationsetting.BillingPhoneHasPrefix(*i.BillingPhoneHasPrefix)) + } + if i.BillingPhoneHasSuffix != nil { + predicates = append(predicates, organizationsetting.BillingPhoneHasSuffix(*i.BillingPhoneHasSuffix)) + } + if i.BillingPhoneIsNil { + predicates = append(predicates, organizationsetting.BillingPhoneIsNil()) + } + if i.BillingPhoneNotNil { + predicates = append(predicates, organizationsetting.BillingPhoneNotNil()) + } + if i.BillingPhoneEqualFold != nil { + predicates = append(predicates, organizationsetting.BillingPhoneEqualFold(*i.BillingPhoneEqualFold)) + } + if i.BillingPhoneContainsFold != nil { + predicates = append(predicates, organizationsetting.BillingPhoneContainsFold(*i.BillingPhoneContainsFold)) + } + if i.BillingAddress != nil { + predicates = append(predicates, organizationsetting.BillingAddressEQ(*i.BillingAddress)) + } + if i.BillingAddressNEQ != nil { + predicates = append(predicates, organizationsetting.BillingAddressNEQ(*i.BillingAddressNEQ)) + } + if len(i.BillingAddressIn) > 0 { + predicates = append(predicates, organizationsetting.BillingAddressIn(i.BillingAddressIn...)) + } + if len(i.BillingAddressNotIn) > 0 { + predicates = append(predicates, organizationsetting.BillingAddressNotIn(i.BillingAddressNotIn...)) + } + if i.BillingAddressGT != nil { + predicates = append(predicates, organizationsetting.BillingAddressGT(*i.BillingAddressGT)) + } + if i.BillingAddressGTE != nil { + predicates = append(predicates, organizationsetting.BillingAddressGTE(*i.BillingAddressGTE)) + } + if i.BillingAddressLT != nil { + predicates = append(predicates, organizationsetting.BillingAddressLT(*i.BillingAddressLT)) + } + if i.BillingAddressLTE != nil { + predicates = append(predicates, organizationsetting.BillingAddressLTE(*i.BillingAddressLTE)) + } + if i.BillingAddressContains != nil { + predicates = append(predicates, organizationsetting.BillingAddressContains(*i.BillingAddressContains)) + } + if i.BillingAddressHasPrefix != nil { + predicates = append(predicates, organizationsetting.BillingAddressHasPrefix(*i.BillingAddressHasPrefix)) + } + if i.BillingAddressHasSuffix != nil { + predicates = append(predicates, organizationsetting.BillingAddressHasSuffix(*i.BillingAddressHasSuffix)) + } + if i.BillingAddressIsNil { + predicates = append(predicates, organizationsetting.BillingAddressIsNil()) + } + if i.BillingAddressNotNil { + predicates = append(predicates, organizationsetting.BillingAddressNotNil()) + } + if i.BillingAddressEqualFold != nil { + predicates = append(predicates, organizationsetting.BillingAddressEqualFold(*i.BillingAddressEqualFold)) + } + if i.BillingAddressContainsFold != nil { + predicates = append(predicates, organizationsetting.BillingAddressContainsFold(*i.BillingAddressContainsFold)) + } + if i.TaxIdentifier != nil { + predicates = append(predicates, organizationsetting.TaxIdentifierEQ(*i.TaxIdentifier)) + } + if i.TaxIdentifierNEQ != nil { + predicates = append(predicates, organizationsetting.TaxIdentifierNEQ(*i.TaxIdentifierNEQ)) + } + if len(i.TaxIdentifierIn) > 0 { + predicates = append(predicates, organizationsetting.TaxIdentifierIn(i.TaxIdentifierIn...)) + } + if len(i.TaxIdentifierNotIn) > 0 { + predicates = append(predicates, organizationsetting.TaxIdentifierNotIn(i.TaxIdentifierNotIn...)) + } + if i.TaxIdentifierGT != nil { + predicates = append(predicates, organizationsetting.TaxIdentifierGT(*i.TaxIdentifierGT)) + } + if i.TaxIdentifierGTE != nil { + predicates = append(predicates, organizationsetting.TaxIdentifierGTE(*i.TaxIdentifierGTE)) + } + if i.TaxIdentifierLT != nil { + predicates = append(predicates, organizationsetting.TaxIdentifierLT(*i.TaxIdentifierLT)) + } + if i.TaxIdentifierLTE != nil { + predicates = append(predicates, organizationsetting.TaxIdentifierLTE(*i.TaxIdentifierLTE)) + } + if i.TaxIdentifierContains != nil { + predicates = append(predicates, organizationsetting.TaxIdentifierContains(*i.TaxIdentifierContains)) + } + if i.TaxIdentifierHasPrefix != nil { + predicates = append(predicates, organizationsetting.TaxIdentifierHasPrefix(*i.TaxIdentifierHasPrefix)) + } + if i.TaxIdentifierHasSuffix != nil { + predicates = append(predicates, organizationsetting.TaxIdentifierHasSuffix(*i.TaxIdentifierHasSuffix)) + } + if i.TaxIdentifierIsNil { + predicates = append(predicates, organizationsetting.TaxIdentifierIsNil()) + } + if i.TaxIdentifierNotNil { + predicates = append(predicates, organizationsetting.TaxIdentifierNotNil()) + } + if i.TaxIdentifierEqualFold != nil { + predicates = append(predicates, organizationsetting.TaxIdentifierEqualFold(*i.TaxIdentifierEqualFold)) + } + if i.TaxIdentifierContainsFold != nil { + predicates = append(predicates, organizationsetting.TaxIdentifierContainsFold(*i.TaxIdentifierContainsFold)) + } + if i.GeoLocation != nil { + predicates = append(predicates, organizationsetting.GeoLocationEQ(*i.GeoLocation)) + } + if i.GeoLocationNEQ != nil { + predicates = append(predicates, organizationsetting.GeoLocationNEQ(*i.GeoLocationNEQ)) + } + if len(i.GeoLocationIn) > 0 { + predicates = append(predicates, organizationsetting.GeoLocationIn(i.GeoLocationIn...)) + } + if len(i.GeoLocationNotIn) > 0 { + predicates = append(predicates, organizationsetting.GeoLocationNotIn(i.GeoLocationNotIn...)) + } + if i.GeoLocationIsNil { + predicates = append(predicates, organizationsetting.GeoLocationIsNil()) + } + if i.GeoLocationNotNil { + predicates = append(predicates, organizationsetting.GeoLocationNotNil()) + } + if i.OrganizationID != nil { + predicates = append(predicates, organizationsetting.OrganizationIDEQ(*i.OrganizationID)) + } + if i.OrganizationIDNEQ != nil { + predicates = append(predicates, organizationsetting.OrganizationIDNEQ(*i.OrganizationIDNEQ)) + } + if len(i.OrganizationIDIn) > 0 { + predicates = append(predicates, organizationsetting.OrganizationIDIn(i.OrganizationIDIn...)) + } + if len(i.OrganizationIDNotIn) > 0 { + predicates = append(predicates, organizationsetting.OrganizationIDNotIn(i.OrganizationIDNotIn...)) + } + if i.OrganizationIDGT != nil { + predicates = append(predicates, organizationsetting.OrganizationIDGT(*i.OrganizationIDGT)) + } + if i.OrganizationIDGTE != nil { + predicates = append(predicates, organizationsetting.OrganizationIDGTE(*i.OrganizationIDGTE)) + } + if i.OrganizationIDLT != nil { + predicates = append(predicates, organizationsetting.OrganizationIDLT(*i.OrganizationIDLT)) + } + if i.OrganizationIDLTE != nil { + predicates = append(predicates, organizationsetting.OrganizationIDLTE(*i.OrganizationIDLTE)) + } + if i.OrganizationIDContains != nil { + predicates = append(predicates, organizationsetting.OrganizationIDContains(*i.OrganizationIDContains)) } - if len(i.TextNotIn) > 0 { - predicates = append(predicates, notehistory.TextNotIn(i.TextNotIn...)) + if i.OrganizationIDHasPrefix != nil { + predicates = append(predicates, organizationsetting.OrganizationIDHasPrefix(*i.OrganizationIDHasPrefix)) } - if i.TextGT != nil { - predicates = append(predicates, notehistory.TextGT(*i.TextGT)) + if i.OrganizationIDHasSuffix != nil { + predicates = append(predicates, organizationsetting.OrganizationIDHasSuffix(*i.OrganizationIDHasSuffix)) } - if i.TextGTE != nil { - predicates = append(predicates, notehistory.TextGTE(*i.TextGTE)) + if i.OrganizationIDIsNil { + predicates = append(predicates, organizationsetting.OrganizationIDIsNil()) } - if i.TextLT != nil { - predicates = append(predicates, notehistory.TextLT(*i.TextLT)) + if i.OrganizationIDNotNil { + predicates = append(predicates, organizationsetting.OrganizationIDNotNil()) } - if i.TextLTE != nil { - predicates = append(predicates, notehistory.TextLTE(*i.TextLTE)) + if i.OrganizationIDEqualFold != nil { + predicates = append(predicates, organizationsetting.OrganizationIDEqualFold(*i.OrganizationIDEqualFold)) } - if i.TextContains != nil { - predicates = append(predicates, notehistory.TextContains(*i.TextContains)) + if i.OrganizationIDContainsFold != nil { + predicates = append(predicates, organizationsetting.OrganizationIDContainsFold(*i.OrganizationIDContainsFold)) } - if i.TextHasPrefix != nil { - predicates = append(predicates, notehistory.TextHasPrefix(*i.TextHasPrefix)) + + if i.HasOrganization != nil { + p := organizationsetting.HasOrganization() + if !*i.HasOrganization { + p = organizationsetting.Not(p) + } + predicates = append(predicates, p) } - if i.TextHasSuffix != nil { - predicates = append(predicates, notehistory.TextHasSuffix(*i.TextHasSuffix)) + if len(i.HasOrganizationWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOrganizationWith)) + for _, w := range i.HasOrganizationWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOrganizationWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organizationsetting.HasOrganizationWith(with...)) } - if i.TextEqualFold != nil { - predicates = append(predicates, notehistory.TextEqualFold(*i.TextEqualFold)) + if i.HasFiles != nil { + p := organizationsetting.HasFiles() + if !*i.HasFiles { + p = organizationsetting.Not(p) + } + predicates = append(predicates, p) } - if i.TextContainsFold != nil { - predicates = append(predicates, notehistory.TextContainsFold(*i.TextContainsFold)) + if len(i.HasFilesWith) > 0 { + with := make([]predicate.File, 0, len(i.HasFilesWith)) + for _, w := range i.HasFilesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasFilesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organizationsetting.HasFilesWith(with...)) } - switch len(predicates) { case 0: - return nil, ErrEmptyNoteHistoryWhereInput + return nil, ErrEmptyOrganizationSettingWhereInput case 1: return predicates[0], nil default: - return notehistory.And(predicates...), nil + return organizationsetting.And(predicates...), nil } } -// OauthProviderWhereInput represents a where input for filtering OauthProvider queries. -type OauthProviderWhereInput struct { - Predicates []predicate.OauthProvider `json:"-"` - Not *OauthProviderWhereInput `json:"not,omitempty"` - Or []*OauthProviderWhereInput `json:"or,omitempty"` - And []*OauthProviderWhereInput `json:"and,omitempty"` +// OrganizationSettingHistoryWhereInput represents a where input for filtering OrganizationSettingHistory queries. +type OrganizationSettingHistoryWhereInput struct { + Predicates []predicate.OrganizationSettingHistory `json:"-"` + Not *OrganizationSettingHistoryWhereInput `json:"not,omitempty"` + Or []*OrganizationSettingHistoryWhereInput `json:"or,omitempty"` + And []*OrganizationSettingHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -26870,6 +43816,39 @@ type OauthProviderWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -26957,171 +43936,130 @@ type OauthProviderWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` - NameGT *string `json:"nameGT,omitempty"` - NameGTE *string `json:"nameGTE,omitempty"` - NameLT *string `json:"nameLT,omitempty"` - NameLTE *string `json:"nameLTE,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"` - - // "client_id" field predicates. - ClientID *string `json:"clientID,omitempty"` - ClientIDNEQ *string `json:"clientIDNEQ,omitempty"` - ClientIDIn []string `json:"clientIDIn,omitempty"` - ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` - ClientIDGT *string `json:"clientIDGT,omitempty"` - ClientIDGTE *string `json:"clientIDGTE,omitempty"` - ClientIDLT *string `json:"clientIDLT,omitempty"` - ClientIDLTE *string `json:"clientIDLTE,omitempty"` - ClientIDContains *string `json:"clientIDContains,omitempty"` - ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` - ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` - ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` - ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` - - // "client_secret" field predicates. - ClientSecret *string `json:"clientSecret,omitempty"` - ClientSecretNEQ *string `json:"clientSecretNEQ,omitempty"` - ClientSecretIn []string `json:"clientSecretIn,omitempty"` - ClientSecretNotIn []string `json:"clientSecretNotIn,omitempty"` - ClientSecretGT *string `json:"clientSecretGT,omitempty"` - ClientSecretGTE *string `json:"clientSecretGTE,omitempty"` - ClientSecretLT *string `json:"clientSecretLT,omitempty"` - ClientSecretLTE *string `json:"clientSecretLTE,omitempty"` - ClientSecretContains *string `json:"clientSecretContains,omitempty"` - ClientSecretHasPrefix *string `json:"clientSecretHasPrefix,omitempty"` - ClientSecretHasSuffix *string `json:"clientSecretHasSuffix,omitempty"` - ClientSecretEqualFold *string `json:"clientSecretEqualFold,omitempty"` - ClientSecretContainsFold *string `json:"clientSecretContainsFold,omitempty"` - - // "redirect_url" field predicates. - RedirectURL *string `json:"redirectURL,omitempty"` - RedirectURLNEQ *string `json:"redirectURLNEQ,omitempty"` - RedirectURLIn []string `json:"redirectURLIn,omitempty"` - RedirectURLNotIn []string `json:"redirectURLNotIn,omitempty"` - RedirectURLGT *string `json:"redirectURLGT,omitempty"` - RedirectURLGTE *string `json:"redirectURLGTE,omitempty"` - RedirectURLLT *string `json:"redirectURLLT,omitempty"` - RedirectURLLTE *string `json:"redirectURLLTE,omitempty"` - RedirectURLContains *string `json:"redirectURLContains,omitempty"` - RedirectURLHasPrefix *string `json:"redirectURLHasPrefix,omitempty"` - RedirectURLHasSuffix *string `json:"redirectURLHasSuffix,omitempty"` - RedirectURLEqualFold *string `json:"redirectURLEqualFold,omitempty"` - RedirectURLContainsFold *string `json:"redirectURLContainsFold,omitempty"` + // "billing_contact" field predicates. + BillingContact *string `json:"billingContact,omitempty"` + BillingContactNEQ *string `json:"billingContactNEQ,omitempty"` + BillingContactIn []string `json:"billingContactIn,omitempty"` + BillingContactNotIn []string `json:"billingContactNotIn,omitempty"` + BillingContactGT *string `json:"billingContactGT,omitempty"` + BillingContactGTE *string `json:"billingContactGTE,omitempty"` + BillingContactLT *string `json:"billingContactLT,omitempty"` + BillingContactLTE *string `json:"billingContactLTE,omitempty"` + BillingContactContains *string `json:"billingContactContains,omitempty"` + BillingContactHasPrefix *string `json:"billingContactHasPrefix,omitempty"` + BillingContactHasSuffix *string `json:"billingContactHasSuffix,omitempty"` + BillingContactIsNil bool `json:"billingContactIsNil,omitempty"` + BillingContactNotNil bool `json:"billingContactNotNil,omitempty"` + BillingContactEqualFold *string `json:"billingContactEqualFold,omitempty"` + BillingContactContainsFold *string `json:"billingContactContainsFold,omitempty"` - // "scopes" field predicates. - Scopes *string `json:"scopes,omitempty"` - ScopesNEQ *string `json:"scopesNEQ,omitempty"` - ScopesIn []string `json:"scopesIn,omitempty"` - ScopesNotIn []string `json:"scopesNotIn,omitempty"` - ScopesGT *string `json:"scopesGT,omitempty"` - ScopesGTE *string `json:"scopesGTE,omitempty"` - ScopesLT *string `json:"scopesLT,omitempty"` - ScopesLTE *string `json:"scopesLTE,omitempty"` - ScopesContains *string `json:"scopesContains,omitempty"` - ScopesHasPrefix *string `json:"scopesHasPrefix,omitempty"` - ScopesHasSuffix *string `json:"scopesHasSuffix,omitempty"` - ScopesEqualFold *string `json:"scopesEqualFold,omitempty"` - ScopesContainsFold *string `json:"scopesContainsFold,omitempty"` + // "billing_email" field predicates. + BillingEmail *string `json:"billingEmail,omitempty"` + BillingEmailNEQ *string `json:"billingEmailNEQ,omitempty"` + BillingEmailIn []string `json:"billingEmailIn,omitempty"` + BillingEmailNotIn []string `json:"billingEmailNotIn,omitempty"` + BillingEmailGT *string `json:"billingEmailGT,omitempty"` + BillingEmailGTE *string `json:"billingEmailGTE,omitempty"` + BillingEmailLT *string `json:"billingEmailLT,omitempty"` + BillingEmailLTE *string `json:"billingEmailLTE,omitempty"` + BillingEmailContains *string `json:"billingEmailContains,omitempty"` + BillingEmailHasPrefix *string `json:"billingEmailHasPrefix,omitempty"` + BillingEmailHasSuffix *string `json:"billingEmailHasSuffix,omitempty"` + BillingEmailIsNil bool `json:"billingEmailIsNil,omitempty"` + BillingEmailNotNil bool `json:"billingEmailNotNil,omitempty"` + BillingEmailEqualFold *string `json:"billingEmailEqualFold,omitempty"` + BillingEmailContainsFold *string `json:"billingEmailContainsFold,omitempty"` - // "auth_url" field predicates. - AuthURL *string `json:"authURL,omitempty"` - AuthURLNEQ *string `json:"authURLNEQ,omitempty"` - AuthURLIn []string `json:"authURLIn,omitempty"` - AuthURLNotIn []string `json:"authURLNotIn,omitempty"` - AuthURLGT *string `json:"authURLGT,omitempty"` - AuthURLGTE *string `json:"authURLGTE,omitempty"` - AuthURLLT *string `json:"authURLLT,omitempty"` - AuthURLLTE *string `json:"authURLLTE,omitempty"` - AuthURLContains *string `json:"authURLContains,omitempty"` - AuthURLHasPrefix *string `json:"authURLHasPrefix,omitempty"` - AuthURLHasSuffix *string `json:"authURLHasSuffix,omitempty"` - AuthURLEqualFold *string `json:"authURLEqualFold,omitempty"` - AuthURLContainsFold *string `json:"authURLContainsFold,omitempty"` + // "billing_phone" field predicates. + BillingPhone *string `json:"billingPhone,omitempty"` + BillingPhoneNEQ *string `json:"billingPhoneNEQ,omitempty"` + BillingPhoneIn []string `json:"billingPhoneIn,omitempty"` + BillingPhoneNotIn []string `json:"billingPhoneNotIn,omitempty"` + BillingPhoneGT *string `json:"billingPhoneGT,omitempty"` + BillingPhoneGTE *string `json:"billingPhoneGTE,omitempty"` + BillingPhoneLT *string `json:"billingPhoneLT,omitempty"` + BillingPhoneLTE *string `json:"billingPhoneLTE,omitempty"` + BillingPhoneContains *string `json:"billingPhoneContains,omitempty"` + BillingPhoneHasPrefix *string `json:"billingPhoneHasPrefix,omitempty"` + BillingPhoneHasSuffix *string `json:"billingPhoneHasSuffix,omitempty"` + BillingPhoneIsNil bool `json:"billingPhoneIsNil,omitempty"` + BillingPhoneNotNil bool `json:"billingPhoneNotNil,omitempty"` + BillingPhoneEqualFold *string `json:"billingPhoneEqualFold,omitempty"` + BillingPhoneContainsFold *string `json:"billingPhoneContainsFold,omitempty"` - // "token_url" field predicates. - TokenURL *string `json:"tokenURL,omitempty"` - TokenURLNEQ *string `json:"tokenURLNEQ,omitempty"` - TokenURLIn []string `json:"tokenURLIn,omitempty"` - TokenURLNotIn []string `json:"tokenURLNotIn,omitempty"` - TokenURLGT *string `json:"tokenURLGT,omitempty"` - TokenURLGTE *string `json:"tokenURLGTE,omitempty"` - TokenURLLT *string `json:"tokenURLLT,omitempty"` - TokenURLLTE *string `json:"tokenURLLTE,omitempty"` - TokenURLContains *string `json:"tokenURLContains,omitempty"` - TokenURLHasPrefix *string `json:"tokenURLHasPrefix,omitempty"` - TokenURLHasSuffix *string `json:"tokenURLHasSuffix,omitempty"` - TokenURLEqualFold *string `json:"tokenURLEqualFold,omitempty"` - TokenURLContainsFold *string `json:"tokenURLContainsFold,omitempty"` + // "billing_address" field predicates. + BillingAddress *string `json:"billingAddress,omitempty"` + BillingAddressNEQ *string `json:"billingAddressNEQ,omitempty"` + BillingAddressIn []string `json:"billingAddressIn,omitempty"` + BillingAddressNotIn []string `json:"billingAddressNotIn,omitempty"` + BillingAddressGT *string `json:"billingAddressGT,omitempty"` + BillingAddressGTE *string `json:"billingAddressGTE,omitempty"` + BillingAddressLT *string `json:"billingAddressLT,omitempty"` + BillingAddressLTE *string `json:"billingAddressLTE,omitempty"` + BillingAddressContains *string `json:"billingAddressContains,omitempty"` + BillingAddressHasPrefix *string `json:"billingAddressHasPrefix,omitempty"` + BillingAddressHasSuffix *string `json:"billingAddressHasSuffix,omitempty"` + BillingAddressIsNil bool `json:"billingAddressIsNil,omitempty"` + BillingAddressNotNil bool `json:"billingAddressNotNil,omitempty"` + BillingAddressEqualFold *string `json:"billingAddressEqualFold,omitempty"` + BillingAddressContainsFold *string `json:"billingAddressContainsFold,omitempty"` - // "auth_style" field predicates. - AuthStyle *customtypes.Uint8 `json:"authStyle,omitempty"` - AuthStyleNEQ *customtypes.Uint8 `json:"authStyleNEQ,omitempty"` - AuthStyleIn []customtypes.Uint8 `json:"authStyleIn,omitempty"` - AuthStyleNotIn []customtypes.Uint8 `json:"authStyleNotIn,omitempty"` - AuthStyleGT *customtypes.Uint8 `json:"authStyleGT,omitempty"` - AuthStyleGTE *customtypes.Uint8 `json:"authStyleGTE,omitempty"` - AuthStyleLT *customtypes.Uint8 `json:"authStyleLT,omitempty"` - AuthStyleLTE *customtypes.Uint8 `json:"authStyleLTE,omitempty"` + // "tax_identifier" field predicates. + TaxIdentifier *string `json:"taxIdentifier,omitempty"` + TaxIdentifierNEQ *string `json:"taxIdentifierNEQ,omitempty"` + TaxIdentifierIn []string `json:"taxIdentifierIn,omitempty"` + TaxIdentifierNotIn []string `json:"taxIdentifierNotIn,omitempty"` + TaxIdentifierGT *string `json:"taxIdentifierGT,omitempty"` + TaxIdentifierGTE *string `json:"taxIdentifierGTE,omitempty"` + TaxIdentifierLT *string `json:"taxIdentifierLT,omitempty"` + TaxIdentifierLTE *string `json:"taxIdentifierLTE,omitempty"` + TaxIdentifierContains *string `json:"taxIdentifierContains,omitempty"` + TaxIdentifierHasPrefix *string `json:"taxIdentifierHasPrefix,omitempty"` + TaxIdentifierHasSuffix *string `json:"taxIdentifierHasSuffix,omitempty"` + TaxIdentifierIsNil bool `json:"taxIdentifierIsNil,omitempty"` + TaxIdentifierNotNil bool `json:"taxIdentifierNotNil,omitempty"` + TaxIdentifierEqualFold *string `json:"taxIdentifierEqualFold,omitempty"` + TaxIdentifierContainsFold *string `json:"taxIdentifierContainsFold,omitempty"` - // "info_url" field predicates. - InfoURL *string `json:"infoURL,omitempty"` - InfoURLNEQ *string `json:"infoURLNEQ,omitempty"` - InfoURLIn []string `json:"infoURLIn,omitempty"` - InfoURLNotIn []string `json:"infoURLNotIn,omitempty"` - InfoURLGT *string `json:"infoURLGT,omitempty"` - InfoURLGTE *string `json:"infoURLGTE,omitempty"` - InfoURLLT *string `json:"infoURLLT,omitempty"` - InfoURLLTE *string `json:"infoURLLTE,omitempty"` - InfoURLContains *string `json:"infoURLContains,omitempty"` - InfoURLHasPrefix *string `json:"infoURLHasPrefix,omitempty"` - InfoURLHasSuffix *string `json:"infoURLHasSuffix,omitempty"` - InfoURLEqualFold *string `json:"infoURLEqualFold,omitempty"` - InfoURLContainsFold *string `json:"infoURLContainsFold,omitempty"` + // "geo_location" field predicates. + GeoLocation *enums.Region `json:"geoLocation,omitempty"` + GeoLocationNEQ *enums.Region `json:"geoLocationNEQ,omitempty"` + GeoLocationIn []enums.Region `json:"geoLocationIn,omitempty"` + GeoLocationNotIn []enums.Region `json:"geoLocationNotIn,omitempty"` + GeoLocationIsNil bool `json:"geoLocationIsNil,omitempty"` + GeoLocationNotNil bool `json:"geoLocationNotNil,omitempty"` - // "owner" edge predicates. - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // "organization_id" field predicates. + OrganizationID *string `json:"organizationID,omitempty"` + OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` + OrganizationIDIn []string `json:"organizationIDIn,omitempty"` + OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` + OrganizationIDGT *string `json:"organizationIDGT,omitempty"` + OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` + OrganizationIDLT *string `json:"organizationIDLT,omitempty"` + OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` + OrganizationIDContains *string `json:"organizationIDContains,omitempty"` + OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` + OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` + OrganizationIDIsNil bool `json:"organizationIDIsNil,omitempty"` + OrganizationIDNotNil bool `json:"organizationIDNotNil,omitempty"` + OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` + OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *OauthProviderWhereInput) AddPredicates(predicates ...predicate.OauthProvider) { +func (i *OrganizationSettingHistoryWhereInput) AddPredicates(predicates ...predicate.OrganizationSettingHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the OauthProviderWhereInput filter on the OauthProviderQuery builder. -func (i *OauthProviderWhereInput) Filter(q *OauthProviderQuery) (*OauthProviderQuery, error) { +// Filter applies the OrganizationSettingHistoryWhereInput filter on the OrganizationSettingHistoryQuery builder. +func (i *OrganizationSettingHistoryWhereInput) Filter(q *OrganizationSettingHistoryQuery) (*OrganizationSettingHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyOauthProviderWhereInput { + if err == ErrEmptyOrganizationSettingHistoryWhereInput { return q, nil } return nil, err @@ -27129,19 +44067,19 @@ func (i *OauthProviderWhereInput) Filter(q *OauthProviderQuery) (*OauthProviderQ return q.Where(p), nil } -// ErrEmptyOauthProviderWhereInput is returned in case the OauthProviderWhereInput is empty. -var ErrEmptyOauthProviderWhereInput = errors.New("generated: empty predicate OauthProviderWhereInput") +// ErrEmptyOrganizationSettingHistoryWhereInput is returned in case the OrganizationSettingHistoryWhereInput is empty. +var ErrEmptyOrganizationSettingHistoryWhereInput = errors.New("generated: empty predicate OrganizationSettingHistoryWhereInput") -// P returns a predicate for filtering oauthproviders. +// P returns a predicate for filtering organizationsettinghistories. // An error is returned if the input is empty or invalid. -func (i *OauthProviderWhereInput) P() (predicate.OauthProvider, error) { - var predicates []predicate.OauthProvider +func (i *OrganizationSettingHistoryWhereInput) P() (predicate.OrganizationSettingHistory, error) { + var predicates []predicate.OrganizationSettingHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, oauthprovider.Not(p)) + predicates = append(predicates, organizationsettinghistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -27151,7 +44089,7 @@ func (i *OauthProviderWhereInput) P() (predicate.OauthProvider, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.OauthProvider, 0, n) + or := make([]predicate.OrganizationSettingHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -27159,7 +44097,7 @@ func (i *OauthProviderWhereInput) P() (predicate.OauthProvider, error) { } or = append(or, p) } - predicates = append(predicates, oauthprovider.Or(or...)) + predicates = append(predicates, organizationsettinghistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -27169,7 +44107,7 @@ func (i *OauthProviderWhereInput) P() (predicate.OauthProvider, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.OauthProvider, 0, n) + and := make([]predicate.OrganizationSettingHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -27177,680 +44115,650 @@ func (i *OauthProviderWhereInput) P() (predicate.OauthProvider, error) { } and = append(and, p) } - predicates = append(predicates, oauthprovider.And(and...)) + predicates = append(predicates, organizationsettinghistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, oauthprovider.IDEQ(*i.ID)) + predicates = append(predicates, organizationsettinghistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, oauthprovider.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, organizationsettinghistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, oauthprovider.IDIn(i.IDIn...)) + predicates = append(predicates, organizationsettinghistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, oauthprovider.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, organizationsettinghistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, oauthprovider.IDGT(*i.IDGT)) + predicates = append(predicates, organizationsettinghistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, oauthprovider.IDGTE(*i.IDGTE)) + predicates = append(predicates, organizationsettinghistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, oauthprovider.IDLT(*i.IDLT)) + predicates = append(predicates, organizationsettinghistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, oauthprovider.IDLTE(*i.IDLTE)) + predicates = append(predicates, organizationsettinghistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, oauthprovider.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, organizationsettinghistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, oauthprovider.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, organizationsettinghistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, organizationsettinghistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, organizationsettinghistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, organizationsettinghistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, organizationsettinghistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, organizationsettinghistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, organizationsettinghistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, organizationsettinghistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, organizationsettinghistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, organizationsettinghistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, organizationsettinghistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, organizationsettinghistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, organizationsettinghistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, organizationsettinghistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, organizationsettinghistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, organizationsettinghistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, organizationsettinghistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, organizationsettinghistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, organizationsettinghistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, organizationsettinghistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, organizationsettinghistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, organizationsettinghistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, organizationsettinghistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, organizationsettinghistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, organizationsettinghistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, organizationsettinghistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, organizationsettinghistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, organizationsettinghistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, oauthprovider.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, organizationsettinghistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, oauthprovider.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, organizationsettinghistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, oauthprovider.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, organizationsettinghistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, oauthprovider.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, organizationsettinghistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, oauthprovider.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, organizationsettinghistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, oauthprovider.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, organizationsettinghistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, oauthprovider.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, organizationsettinghistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, oauthprovider.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, organizationsettinghistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, oauthprovider.CreatedAtIsNil()) + predicates = append(predicates, organizationsettinghistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, oauthprovider.CreatedAtNotNil()) + predicates = append(predicates, organizationsettinghistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, oauthprovider.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, organizationsettinghistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, oauthprovider.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, organizationsettinghistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, oauthprovider.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, organizationsettinghistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, oauthprovider.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, organizationsettinghistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, oauthprovider.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, organizationsettinghistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, oauthprovider.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, organizationsettinghistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, oauthprovider.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, organizationsettinghistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, oauthprovider.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, organizationsettinghistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, oauthprovider.UpdatedAtIsNil()) + predicates = append(predicates, organizationsettinghistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, oauthprovider.UpdatedAtNotNil()) + predicates = append(predicates, organizationsettinghistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, oauthprovider.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, organizationsettinghistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, oauthprovider.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, organizationsettinghistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, oauthprovider.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, organizationsettinghistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, oauthprovider.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, organizationsettinghistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, oauthprovider.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, organizationsettinghistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, oauthprovider.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, organizationsettinghistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, oauthprovider.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, organizationsettinghistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, oauthprovider.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, organizationsettinghistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, oauthprovider.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, organizationsettinghistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, oauthprovider.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, organizationsettinghistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, oauthprovider.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, organizationsettinghistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, oauthprovider.CreatedByIsNil()) + predicates = append(predicates, organizationsettinghistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, oauthprovider.CreatedByNotNil()) + predicates = append(predicates, organizationsettinghistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, oauthprovider.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, organizationsettinghistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, oauthprovider.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, organizationsettinghistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, oauthprovider.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, organizationsettinghistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, oauthprovider.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, organizationsettinghistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, oauthprovider.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, organizationsettinghistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, oauthprovider.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, organizationsettinghistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, oauthprovider.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, organizationsettinghistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, oauthprovider.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, organizationsettinghistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, oauthprovider.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, organizationsettinghistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, oauthprovider.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, organizationsettinghistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, oauthprovider.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, organizationsettinghistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, oauthprovider.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, organizationsettinghistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, oauthprovider.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, organizationsettinghistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, oauthprovider.UpdatedByIsNil()) + predicates = append(predicates, organizationsettinghistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, oauthprovider.UpdatedByNotNil()) + predicates = append(predicates, organizationsettinghistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, oauthprovider.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, organizationsettinghistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, oauthprovider.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, organizationsettinghistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, oauthprovider.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, organizationsettinghistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, oauthprovider.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, organizationsettinghistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, oauthprovider.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, organizationsettinghistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, oauthprovider.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, organizationsettinghistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, oauthprovider.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, organizationsettinghistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, oauthprovider.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, organizationsettinghistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, oauthprovider.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, organizationsettinghistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, oauthprovider.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, organizationsettinghistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, oauthprovider.DeletedAtIsNil()) + predicates = append(predicates, organizationsettinghistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, oauthprovider.DeletedAtNotNil()) + predicates = append(predicates, organizationsettinghistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, oauthprovider.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, organizationsettinghistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, oauthprovider.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, organizationsettinghistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, oauthprovider.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, organizationsettinghistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, oauthprovider.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, organizationsettinghistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, oauthprovider.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, organizationsettinghistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, oauthprovider.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, organizationsettinghistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, oauthprovider.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, organizationsettinghistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, oauthprovider.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, organizationsettinghistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, oauthprovider.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, organizationsettinghistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, oauthprovider.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, organizationsettinghistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, oauthprovider.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, organizationsettinghistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, oauthprovider.DeletedByIsNil()) + predicates = append(predicates, organizationsettinghistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, oauthprovider.DeletedByNotNil()) + predicates = append(predicates, organizationsettinghistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, oauthprovider.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, organizationsettinghistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, oauthprovider.DeletedByContainsFold(*i.DeletedByContainsFold)) - } - if i.OwnerID != nil { - predicates = append(predicates, oauthprovider.OwnerIDEQ(*i.OwnerID)) - } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, oauthprovider.OwnerIDNEQ(*i.OwnerIDNEQ)) - } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, oauthprovider.OwnerIDIn(i.OwnerIDIn...)) - } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, oauthprovider.OwnerIDNotIn(i.OwnerIDNotIn...)) - } - if i.OwnerIDGT != nil { - predicates = append(predicates, oauthprovider.OwnerIDGT(*i.OwnerIDGT)) - } - if i.OwnerIDGTE != nil { - predicates = append(predicates, oauthprovider.OwnerIDGTE(*i.OwnerIDGTE)) - } - if i.OwnerIDLT != nil { - predicates = append(predicates, oauthprovider.OwnerIDLT(*i.OwnerIDLT)) - } - if i.OwnerIDLTE != nil { - predicates = append(predicates, oauthprovider.OwnerIDLTE(*i.OwnerIDLTE)) - } - if i.OwnerIDContains != nil { - predicates = append(predicates, oauthprovider.OwnerIDContains(*i.OwnerIDContains)) - } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, oauthprovider.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) - } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, oauthprovider.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) - } - if i.OwnerIDIsNil { - predicates = append(predicates, oauthprovider.OwnerIDIsNil()) - } - if i.OwnerIDNotNil { - predicates = append(predicates, oauthprovider.OwnerIDNotNil()) - } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, oauthprovider.OwnerIDEqualFold(*i.OwnerIDEqualFold)) - } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, oauthprovider.OwnerIDContainsFold(*i.OwnerIDContainsFold)) - } - if i.Name != nil { - predicates = append(predicates, oauthprovider.NameEQ(*i.Name)) - } - if i.NameNEQ != nil { - predicates = append(predicates, oauthprovider.NameNEQ(*i.NameNEQ)) - } - if len(i.NameIn) > 0 { - predicates = append(predicates, oauthprovider.NameIn(i.NameIn...)) - } - if len(i.NameNotIn) > 0 { - predicates = append(predicates, oauthprovider.NameNotIn(i.NameNotIn...)) - } - if i.NameGT != nil { - predicates = append(predicates, oauthprovider.NameGT(*i.NameGT)) - } - if i.NameGTE != nil { - predicates = append(predicates, oauthprovider.NameGTE(*i.NameGTE)) - } - if i.NameLT != nil { - predicates = append(predicates, oauthprovider.NameLT(*i.NameLT)) - } - if i.NameLTE != nil { - predicates = append(predicates, oauthprovider.NameLTE(*i.NameLTE)) - } - if i.NameContains != nil { - predicates = append(predicates, oauthprovider.NameContains(*i.NameContains)) - } - if i.NameHasPrefix != nil { - predicates = append(predicates, oauthprovider.NameHasPrefix(*i.NameHasPrefix)) - } - if i.NameHasSuffix != nil { - predicates = append(predicates, oauthprovider.NameHasSuffix(*i.NameHasSuffix)) - } - if i.NameEqualFold != nil { - predicates = append(predicates, oauthprovider.NameEqualFold(*i.NameEqualFold)) - } - if i.NameContainsFold != nil { - predicates = append(predicates, oauthprovider.NameContainsFold(*i.NameContainsFold)) - } - if i.ClientID != nil { - predicates = append(predicates, oauthprovider.ClientIDEQ(*i.ClientID)) - } - if i.ClientIDNEQ != nil { - predicates = append(predicates, oauthprovider.ClientIDNEQ(*i.ClientIDNEQ)) - } - if len(i.ClientIDIn) > 0 { - predicates = append(predicates, oauthprovider.ClientIDIn(i.ClientIDIn...)) - } - if len(i.ClientIDNotIn) > 0 { - predicates = append(predicates, oauthprovider.ClientIDNotIn(i.ClientIDNotIn...)) - } - if i.ClientIDGT != nil { - predicates = append(predicates, oauthprovider.ClientIDGT(*i.ClientIDGT)) + predicates = append(predicates, organizationsettinghistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.ClientIDGTE != nil { - predicates = append(predicates, oauthprovider.ClientIDGTE(*i.ClientIDGTE)) + if i.BillingContact != nil { + predicates = append(predicates, organizationsettinghistory.BillingContactEQ(*i.BillingContact)) } - if i.ClientIDLT != nil { - predicates = append(predicates, oauthprovider.ClientIDLT(*i.ClientIDLT)) + if i.BillingContactNEQ != nil { + predicates = append(predicates, organizationsettinghistory.BillingContactNEQ(*i.BillingContactNEQ)) } - if i.ClientIDLTE != nil { - predicates = append(predicates, oauthprovider.ClientIDLTE(*i.ClientIDLTE)) + if len(i.BillingContactIn) > 0 { + predicates = append(predicates, organizationsettinghistory.BillingContactIn(i.BillingContactIn...)) } - if i.ClientIDContains != nil { - predicates = append(predicates, oauthprovider.ClientIDContains(*i.ClientIDContains)) + if len(i.BillingContactNotIn) > 0 { + predicates = append(predicates, organizationsettinghistory.BillingContactNotIn(i.BillingContactNotIn...)) } - if i.ClientIDHasPrefix != nil { - predicates = append(predicates, oauthprovider.ClientIDHasPrefix(*i.ClientIDHasPrefix)) + if i.BillingContactGT != nil { + predicates = append(predicates, organizationsettinghistory.BillingContactGT(*i.BillingContactGT)) } - if i.ClientIDHasSuffix != nil { - predicates = append(predicates, oauthprovider.ClientIDHasSuffix(*i.ClientIDHasSuffix)) + if i.BillingContactGTE != nil { + predicates = append(predicates, organizationsettinghistory.BillingContactGTE(*i.BillingContactGTE)) } - if i.ClientIDEqualFold != nil { - predicates = append(predicates, oauthprovider.ClientIDEqualFold(*i.ClientIDEqualFold)) + if i.BillingContactLT != nil { + predicates = append(predicates, organizationsettinghistory.BillingContactLT(*i.BillingContactLT)) } - if i.ClientIDContainsFold != nil { - predicates = append(predicates, oauthprovider.ClientIDContainsFold(*i.ClientIDContainsFold)) + if i.BillingContactLTE != nil { + predicates = append(predicates, organizationsettinghistory.BillingContactLTE(*i.BillingContactLTE)) } - if i.ClientSecret != nil { - predicates = append(predicates, oauthprovider.ClientSecretEQ(*i.ClientSecret)) + if i.BillingContactContains != nil { + predicates = append(predicates, organizationsettinghistory.BillingContactContains(*i.BillingContactContains)) } - if i.ClientSecretNEQ != nil { - predicates = append(predicates, oauthprovider.ClientSecretNEQ(*i.ClientSecretNEQ)) + if i.BillingContactHasPrefix != nil { + predicates = append(predicates, organizationsettinghistory.BillingContactHasPrefix(*i.BillingContactHasPrefix)) } - if len(i.ClientSecretIn) > 0 { - predicates = append(predicates, oauthprovider.ClientSecretIn(i.ClientSecretIn...)) + if i.BillingContactHasSuffix != nil { + predicates = append(predicates, organizationsettinghistory.BillingContactHasSuffix(*i.BillingContactHasSuffix)) } - if len(i.ClientSecretNotIn) > 0 { - predicates = append(predicates, oauthprovider.ClientSecretNotIn(i.ClientSecretNotIn...)) + if i.BillingContactIsNil { + predicates = append(predicates, organizationsettinghistory.BillingContactIsNil()) } - if i.ClientSecretGT != nil { - predicates = append(predicates, oauthprovider.ClientSecretGT(*i.ClientSecretGT)) + if i.BillingContactNotNil { + predicates = append(predicates, organizationsettinghistory.BillingContactNotNil()) } - if i.ClientSecretGTE != nil { - predicates = append(predicates, oauthprovider.ClientSecretGTE(*i.ClientSecretGTE)) + if i.BillingContactEqualFold != nil { + predicates = append(predicates, organizationsettinghistory.BillingContactEqualFold(*i.BillingContactEqualFold)) } - if i.ClientSecretLT != nil { - predicates = append(predicates, oauthprovider.ClientSecretLT(*i.ClientSecretLT)) + if i.BillingContactContainsFold != nil { + predicates = append(predicates, organizationsettinghistory.BillingContactContainsFold(*i.BillingContactContainsFold)) } - if i.ClientSecretLTE != nil { - predicates = append(predicates, oauthprovider.ClientSecretLTE(*i.ClientSecretLTE)) + if i.BillingEmail != nil { + predicates = append(predicates, organizationsettinghistory.BillingEmailEQ(*i.BillingEmail)) } - if i.ClientSecretContains != nil { - predicates = append(predicates, oauthprovider.ClientSecretContains(*i.ClientSecretContains)) + if i.BillingEmailNEQ != nil { + predicates = append(predicates, organizationsettinghistory.BillingEmailNEQ(*i.BillingEmailNEQ)) } - if i.ClientSecretHasPrefix != nil { - predicates = append(predicates, oauthprovider.ClientSecretHasPrefix(*i.ClientSecretHasPrefix)) + if len(i.BillingEmailIn) > 0 { + predicates = append(predicates, organizationsettinghistory.BillingEmailIn(i.BillingEmailIn...)) } - if i.ClientSecretHasSuffix != nil { - predicates = append(predicates, oauthprovider.ClientSecretHasSuffix(*i.ClientSecretHasSuffix)) + if len(i.BillingEmailNotIn) > 0 { + predicates = append(predicates, organizationsettinghistory.BillingEmailNotIn(i.BillingEmailNotIn...)) } - if i.ClientSecretEqualFold != nil { - predicates = append(predicates, oauthprovider.ClientSecretEqualFold(*i.ClientSecretEqualFold)) + if i.BillingEmailGT != nil { + predicates = append(predicates, organizationsettinghistory.BillingEmailGT(*i.BillingEmailGT)) } - if i.ClientSecretContainsFold != nil { - predicates = append(predicates, oauthprovider.ClientSecretContainsFold(*i.ClientSecretContainsFold)) + if i.BillingEmailGTE != nil { + predicates = append(predicates, organizationsettinghistory.BillingEmailGTE(*i.BillingEmailGTE)) } - if i.RedirectURL != nil { - predicates = append(predicates, oauthprovider.RedirectURLEQ(*i.RedirectURL)) + if i.BillingEmailLT != nil { + predicates = append(predicates, organizationsettinghistory.BillingEmailLT(*i.BillingEmailLT)) } - if i.RedirectURLNEQ != nil { - predicates = append(predicates, oauthprovider.RedirectURLNEQ(*i.RedirectURLNEQ)) + if i.BillingEmailLTE != nil { + predicates = append(predicates, organizationsettinghistory.BillingEmailLTE(*i.BillingEmailLTE)) } - if len(i.RedirectURLIn) > 0 { - predicates = append(predicates, oauthprovider.RedirectURLIn(i.RedirectURLIn...)) + if i.BillingEmailContains != nil { + predicates = append(predicates, organizationsettinghistory.BillingEmailContains(*i.BillingEmailContains)) } - if len(i.RedirectURLNotIn) > 0 { - predicates = append(predicates, oauthprovider.RedirectURLNotIn(i.RedirectURLNotIn...)) + if i.BillingEmailHasPrefix != nil { + predicates = append(predicates, organizationsettinghistory.BillingEmailHasPrefix(*i.BillingEmailHasPrefix)) } - if i.RedirectURLGT != nil { - predicates = append(predicates, oauthprovider.RedirectURLGT(*i.RedirectURLGT)) + if i.BillingEmailHasSuffix != nil { + predicates = append(predicates, organizationsettinghistory.BillingEmailHasSuffix(*i.BillingEmailHasSuffix)) } - if i.RedirectURLGTE != nil { - predicates = append(predicates, oauthprovider.RedirectURLGTE(*i.RedirectURLGTE)) + if i.BillingEmailIsNil { + predicates = append(predicates, organizationsettinghistory.BillingEmailIsNil()) } - if i.RedirectURLLT != nil { - predicates = append(predicates, oauthprovider.RedirectURLLT(*i.RedirectURLLT)) + if i.BillingEmailNotNil { + predicates = append(predicates, organizationsettinghistory.BillingEmailNotNil()) } - if i.RedirectURLLTE != nil { - predicates = append(predicates, oauthprovider.RedirectURLLTE(*i.RedirectURLLTE)) + if i.BillingEmailEqualFold != nil { + predicates = append(predicates, organizationsettinghistory.BillingEmailEqualFold(*i.BillingEmailEqualFold)) } - if i.RedirectURLContains != nil { - predicates = append(predicates, oauthprovider.RedirectURLContains(*i.RedirectURLContains)) + if i.BillingEmailContainsFold != nil { + predicates = append(predicates, organizationsettinghistory.BillingEmailContainsFold(*i.BillingEmailContainsFold)) } - if i.RedirectURLHasPrefix != nil { - predicates = append(predicates, oauthprovider.RedirectURLHasPrefix(*i.RedirectURLHasPrefix)) + if i.BillingPhone != nil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneEQ(*i.BillingPhone)) } - if i.RedirectURLHasSuffix != nil { - predicates = append(predicates, oauthprovider.RedirectURLHasSuffix(*i.RedirectURLHasSuffix)) + if i.BillingPhoneNEQ != nil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneNEQ(*i.BillingPhoneNEQ)) } - if i.RedirectURLEqualFold != nil { - predicates = append(predicates, oauthprovider.RedirectURLEqualFold(*i.RedirectURLEqualFold)) + if len(i.BillingPhoneIn) > 0 { + predicates = append(predicates, organizationsettinghistory.BillingPhoneIn(i.BillingPhoneIn...)) } - if i.RedirectURLContainsFold != nil { - predicates = append(predicates, oauthprovider.RedirectURLContainsFold(*i.RedirectURLContainsFold)) + if len(i.BillingPhoneNotIn) > 0 { + predicates = append(predicates, organizationsettinghistory.BillingPhoneNotIn(i.BillingPhoneNotIn...)) } - if i.Scopes != nil { - predicates = append(predicates, oauthprovider.ScopesEQ(*i.Scopes)) + if i.BillingPhoneGT != nil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneGT(*i.BillingPhoneGT)) } - if i.ScopesNEQ != nil { - predicates = append(predicates, oauthprovider.ScopesNEQ(*i.ScopesNEQ)) + if i.BillingPhoneGTE != nil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneGTE(*i.BillingPhoneGTE)) } - if len(i.ScopesIn) > 0 { - predicates = append(predicates, oauthprovider.ScopesIn(i.ScopesIn...)) + if i.BillingPhoneLT != nil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneLT(*i.BillingPhoneLT)) } - if len(i.ScopesNotIn) > 0 { - predicates = append(predicates, oauthprovider.ScopesNotIn(i.ScopesNotIn...)) + if i.BillingPhoneLTE != nil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneLTE(*i.BillingPhoneLTE)) } - if i.ScopesGT != nil { - predicates = append(predicates, oauthprovider.ScopesGT(*i.ScopesGT)) + if i.BillingPhoneContains != nil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneContains(*i.BillingPhoneContains)) } - if i.ScopesGTE != nil { - predicates = append(predicates, oauthprovider.ScopesGTE(*i.ScopesGTE)) + if i.BillingPhoneHasPrefix != nil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneHasPrefix(*i.BillingPhoneHasPrefix)) } - if i.ScopesLT != nil { - predicates = append(predicates, oauthprovider.ScopesLT(*i.ScopesLT)) + if i.BillingPhoneHasSuffix != nil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneHasSuffix(*i.BillingPhoneHasSuffix)) } - if i.ScopesLTE != nil { - predicates = append(predicates, oauthprovider.ScopesLTE(*i.ScopesLTE)) + if i.BillingPhoneIsNil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneIsNil()) } - if i.ScopesContains != nil { - predicates = append(predicates, oauthprovider.ScopesContains(*i.ScopesContains)) + if i.BillingPhoneNotNil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneNotNil()) } - if i.ScopesHasPrefix != nil { - predicates = append(predicates, oauthprovider.ScopesHasPrefix(*i.ScopesHasPrefix)) + if i.BillingPhoneEqualFold != nil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneEqualFold(*i.BillingPhoneEqualFold)) } - if i.ScopesHasSuffix != nil { - predicates = append(predicates, oauthprovider.ScopesHasSuffix(*i.ScopesHasSuffix)) + if i.BillingPhoneContainsFold != nil { + predicates = append(predicates, organizationsettinghistory.BillingPhoneContainsFold(*i.BillingPhoneContainsFold)) } - if i.ScopesEqualFold != nil { - predicates = append(predicates, oauthprovider.ScopesEqualFold(*i.ScopesEqualFold)) + if i.BillingAddress != nil { + predicates = append(predicates, organizationsettinghistory.BillingAddressEQ(*i.BillingAddress)) } - if i.ScopesContainsFold != nil { - predicates = append(predicates, oauthprovider.ScopesContainsFold(*i.ScopesContainsFold)) + if i.BillingAddressNEQ != nil { + predicates = append(predicates, organizationsettinghistory.BillingAddressNEQ(*i.BillingAddressNEQ)) } - if i.AuthURL != nil { - predicates = append(predicates, oauthprovider.AuthURLEQ(*i.AuthURL)) + if len(i.BillingAddressIn) > 0 { + predicates = append(predicates, organizationsettinghistory.BillingAddressIn(i.BillingAddressIn...)) } - if i.AuthURLNEQ != nil { - predicates = append(predicates, oauthprovider.AuthURLNEQ(*i.AuthURLNEQ)) + if len(i.BillingAddressNotIn) > 0 { + predicates = append(predicates, organizationsettinghistory.BillingAddressNotIn(i.BillingAddressNotIn...)) } - if len(i.AuthURLIn) > 0 { - predicates = append(predicates, oauthprovider.AuthURLIn(i.AuthURLIn...)) + if i.BillingAddressGT != nil { + predicates = append(predicates, organizationsettinghistory.BillingAddressGT(*i.BillingAddressGT)) } - if len(i.AuthURLNotIn) > 0 { - predicates = append(predicates, oauthprovider.AuthURLNotIn(i.AuthURLNotIn...)) + if i.BillingAddressGTE != nil { + predicates = append(predicates, organizationsettinghistory.BillingAddressGTE(*i.BillingAddressGTE)) } - if i.AuthURLGT != nil { - predicates = append(predicates, oauthprovider.AuthURLGT(*i.AuthURLGT)) + if i.BillingAddressLT != nil { + predicates = append(predicates, organizationsettinghistory.BillingAddressLT(*i.BillingAddressLT)) } - if i.AuthURLGTE != nil { - predicates = append(predicates, oauthprovider.AuthURLGTE(*i.AuthURLGTE)) + if i.BillingAddressLTE != nil { + predicates = append(predicates, organizationsettinghistory.BillingAddressLTE(*i.BillingAddressLTE)) } - if i.AuthURLLT != nil { - predicates = append(predicates, oauthprovider.AuthURLLT(*i.AuthURLLT)) + if i.BillingAddressContains != nil { + predicates = append(predicates, organizationsettinghistory.BillingAddressContains(*i.BillingAddressContains)) } - if i.AuthURLLTE != nil { - predicates = append(predicates, oauthprovider.AuthURLLTE(*i.AuthURLLTE)) + if i.BillingAddressHasPrefix != nil { + predicates = append(predicates, organizationsettinghistory.BillingAddressHasPrefix(*i.BillingAddressHasPrefix)) } - if i.AuthURLContains != nil { - predicates = append(predicates, oauthprovider.AuthURLContains(*i.AuthURLContains)) + if i.BillingAddressHasSuffix != nil { + predicates = append(predicates, organizationsettinghistory.BillingAddressHasSuffix(*i.BillingAddressHasSuffix)) } - if i.AuthURLHasPrefix != nil { - predicates = append(predicates, oauthprovider.AuthURLHasPrefix(*i.AuthURLHasPrefix)) + if i.BillingAddressIsNil { + predicates = append(predicates, organizationsettinghistory.BillingAddressIsNil()) } - if i.AuthURLHasSuffix != nil { - predicates = append(predicates, oauthprovider.AuthURLHasSuffix(*i.AuthURLHasSuffix)) + if i.BillingAddressNotNil { + predicates = append(predicates, organizationsettinghistory.BillingAddressNotNil()) } - if i.AuthURLEqualFold != nil { - predicates = append(predicates, oauthprovider.AuthURLEqualFold(*i.AuthURLEqualFold)) + if i.BillingAddressEqualFold != nil { + predicates = append(predicates, organizationsettinghistory.BillingAddressEqualFold(*i.BillingAddressEqualFold)) } - if i.AuthURLContainsFold != nil { - predicates = append(predicates, oauthprovider.AuthURLContainsFold(*i.AuthURLContainsFold)) + if i.BillingAddressContainsFold != nil { + predicates = append(predicates, organizationsettinghistory.BillingAddressContainsFold(*i.BillingAddressContainsFold)) } - if i.TokenURL != nil { - predicates = append(predicates, oauthprovider.TokenURLEQ(*i.TokenURL)) + if i.TaxIdentifier != nil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierEQ(*i.TaxIdentifier)) } - if i.TokenURLNEQ != nil { - predicates = append(predicates, oauthprovider.TokenURLNEQ(*i.TokenURLNEQ)) + if i.TaxIdentifierNEQ != nil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierNEQ(*i.TaxIdentifierNEQ)) } - if len(i.TokenURLIn) > 0 { - predicates = append(predicates, oauthprovider.TokenURLIn(i.TokenURLIn...)) + if len(i.TaxIdentifierIn) > 0 { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierIn(i.TaxIdentifierIn...)) } - if len(i.TokenURLNotIn) > 0 { - predicates = append(predicates, oauthprovider.TokenURLNotIn(i.TokenURLNotIn...)) + if len(i.TaxIdentifierNotIn) > 0 { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierNotIn(i.TaxIdentifierNotIn...)) } - if i.TokenURLGT != nil { - predicates = append(predicates, oauthprovider.TokenURLGT(*i.TokenURLGT)) + if i.TaxIdentifierGT != nil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierGT(*i.TaxIdentifierGT)) } - if i.TokenURLGTE != nil { - predicates = append(predicates, oauthprovider.TokenURLGTE(*i.TokenURLGTE)) + if i.TaxIdentifierGTE != nil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierGTE(*i.TaxIdentifierGTE)) } - if i.TokenURLLT != nil { - predicates = append(predicates, oauthprovider.TokenURLLT(*i.TokenURLLT)) + if i.TaxIdentifierLT != nil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierLT(*i.TaxIdentifierLT)) } - if i.TokenURLLTE != nil { - predicates = append(predicates, oauthprovider.TokenURLLTE(*i.TokenURLLTE)) + if i.TaxIdentifierLTE != nil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierLTE(*i.TaxIdentifierLTE)) } - if i.TokenURLContains != nil { - predicates = append(predicates, oauthprovider.TokenURLContains(*i.TokenURLContains)) + if i.TaxIdentifierContains != nil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierContains(*i.TaxIdentifierContains)) } - if i.TokenURLHasPrefix != nil { - predicates = append(predicates, oauthprovider.TokenURLHasPrefix(*i.TokenURLHasPrefix)) + if i.TaxIdentifierHasPrefix != nil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierHasPrefix(*i.TaxIdentifierHasPrefix)) } - if i.TokenURLHasSuffix != nil { - predicates = append(predicates, oauthprovider.TokenURLHasSuffix(*i.TokenURLHasSuffix)) + if i.TaxIdentifierHasSuffix != nil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierHasSuffix(*i.TaxIdentifierHasSuffix)) } - if i.TokenURLEqualFold != nil { - predicates = append(predicates, oauthprovider.TokenURLEqualFold(*i.TokenURLEqualFold)) + if i.TaxIdentifierIsNil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierIsNil()) } - if i.TokenURLContainsFold != nil { - predicates = append(predicates, oauthprovider.TokenURLContainsFold(*i.TokenURLContainsFold)) + if i.TaxIdentifierNotNil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierNotNil()) } - if i.AuthStyle != nil { - predicates = append(predicates, oauthprovider.AuthStyleEQ(*i.AuthStyle)) + if i.TaxIdentifierEqualFold != nil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierEqualFold(*i.TaxIdentifierEqualFold)) } - if i.AuthStyleNEQ != nil { - predicates = append(predicates, oauthprovider.AuthStyleNEQ(*i.AuthStyleNEQ)) + if i.TaxIdentifierContainsFold != nil { + predicates = append(predicates, organizationsettinghistory.TaxIdentifierContainsFold(*i.TaxIdentifierContainsFold)) } - if len(i.AuthStyleIn) > 0 { - predicates = append(predicates, oauthprovider.AuthStyleIn(i.AuthStyleIn...)) + if i.GeoLocation != nil { + predicates = append(predicates, organizationsettinghistory.GeoLocationEQ(*i.GeoLocation)) } - if len(i.AuthStyleNotIn) > 0 { - predicates = append(predicates, oauthprovider.AuthStyleNotIn(i.AuthStyleNotIn...)) + if i.GeoLocationNEQ != nil { + predicates = append(predicates, organizationsettinghistory.GeoLocationNEQ(*i.GeoLocationNEQ)) } - if i.AuthStyleGT != nil { - predicates = append(predicates, oauthprovider.AuthStyleGT(*i.AuthStyleGT)) + if len(i.GeoLocationIn) > 0 { + predicates = append(predicates, organizationsettinghistory.GeoLocationIn(i.GeoLocationIn...)) } - if i.AuthStyleGTE != nil { - predicates = append(predicates, oauthprovider.AuthStyleGTE(*i.AuthStyleGTE)) + if len(i.GeoLocationNotIn) > 0 { + predicates = append(predicates, organizationsettinghistory.GeoLocationNotIn(i.GeoLocationNotIn...)) } - if i.AuthStyleLT != nil { - predicates = append(predicates, oauthprovider.AuthStyleLT(*i.AuthStyleLT)) + if i.GeoLocationIsNil { + predicates = append(predicates, organizationsettinghistory.GeoLocationIsNil()) } - if i.AuthStyleLTE != nil { - predicates = append(predicates, oauthprovider.AuthStyleLTE(*i.AuthStyleLTE)) + if i.GeoLocationNotNil { + predicates = append(predicates, organizationsettinghistory.GeoLocationNotNil()) } - if i.InfoURL != nil { - predicates = append(predicates, oauthprovider.InfoURLEQ(*i.InfoURL)) + if i.OrganizationID != nil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDEQ(*i.OrganizationID)) } - if i.InfoURLNEQ != nil { - predicates = append(predicates, oauthprovider.InfoURLNEQ(*i.InfoURLNEQ)) + if i.OrganizationIDNEQ != nil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDNEQ(*i.OrganizationIDNEQ)) } - if len(i.InfoURLIn) > 0 { - predicates = append(predicates, oauthprovider.InfoURLIn(i.InfoURLIn...)) + if len(i.OrganizationIDIn) > 0 { + predicates = append(predicates, organizationsettinghistory.OrganizationIDIn(i.OrganizationIDIn...)) } - if len(i.InfoURLNotIn) > 0 { - predicates = append(predicates, oauthprovider.InfoURLNotIn(i.InfoURLNotIn...)) + if len(i.OrganizationIDNotIn) > 0 { + predicates = append(predicates, organizationsettinghistory.OrganizationIDNotIn(i.OrganizationIDNotIn...)) } - if i.InfoURLGT != nil { - predicates = append(predicates, oauthprovider.InfoURLGT(*i.InfoURLGT)) + if i.OrganizationIDGT != nil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDGT(*i.OrganizationIDGT)) } - if i.InfoURLGTE != nil { - predicates = append(predicates, oauthprovider.InfoURLGTE(*i.InfoURLGTE)) + if i.OrganizationIDGTE != nil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDGTE(*i.OrganizationIDGTE)) } - if i.InfoURLLT != nil { - predicates = append(predicates, oauthprovider.InfoURLLT(*i.InfoURLLT)) + if i.OrganizationIDLT != nil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDLT(*i.OrganizationIDLT)) } - if i.InfoURLLTE != nil { - predicates = append(predicates, oauthprovider.InfoURLLTE(*i.InfoURLLTE)) + if i.OrganizationIDLTE != nil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDLTE(*i.OrganizationIDLTE)) } - if i.InfoURLContains != nil { - predicates = append(predicates, oauthprovider.InfoURLContains(*i.InfoURLContains)) + if i.OrganizationIDContains != nil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDContains(*i.OrganizationIDContains)) } - if i.InfoURLHasPrefix != nil { - predicates = append(predicates, oauthprovider.InfoURLHasPrefix(*i.InfoURLHasPrefix)) + if i.OrganizationIDHasPrefix != nil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDHasPrefix(*i.OrganizationIDHasPrefix)) } - if i.InfoURLHasSuffix != nil { - predicates = append(predicates, oauthprovider.InfoURLHasSuffix(*i.InfoURLHasSuffix)) + if i.OrganizationIDHasSuffix != nil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDHasSuffix(*i.OrganizationIDHasSuffix)) } - if i.InfoURLEqualFold != nil { - predicates = append(predicates, oauthprovider.InfoURLEqualFold(*i.InfoURLEqualFold)) + if i.OrganizationIDIsNil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDIsNil()) } - if i.InfoURLContainsFold != nil { - predicates = append(predicates, oauthprovider.InfoURLContainsFold(*i.InfoURLContainsFold)) + if i.OrganizationIDNotNil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDNotNil()) } - - if i.HasOwner != nil { - p := oauthprovider.HasOwner() - if !*i.HasOwner { - p = oauthprovider.Not(p) - } - predicates = append(predicates, p) + if i.OrganizationIDEqualFold != nil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDEqualFold(*i.OrganizationIDEqualFold)) } - if len(i.HasOwnerWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) - 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, oauthprovider.HasOwnerWith(with...)) + if i.OrganizationIDContainsFold != nil { + predicates = append(predicates, organizationsettinghistory.OrganizationIDContainsFold(*i.OrganizationIDContainsFold)) } + switch len(predicates) { case 0: - return nil, ErrEmptyOauthProviderWhereInput + return nil, ErrEmptyOrganizationSettingHistoryWhereInput case 1: return predicates[0], nil default: - return oauthprovider.And(predicates...), nil + return organizationsettinghistory.And(predicates...), nil } } -// OauthProviderHistoryWhereInput represents a where input for filtering OauthProviderHistory queries. -type OauthProviderHistoryWhereInput struct { - Predicates []predicate.OauthProviderHistory `json:"-"` - Not *OauthProviderHistoryWhereInput `json:"not,omitempty"` - Or []*OauthProviderHistoryWhereInput `json:"or,omitempty"` - And []*OauthProviderHistoryWhereInput `json:"and,omitempty"` +// PersonalAccessTokenWhereInput represents a where input for filtering PersonalAccessToken queries. +type PersonalAccessTokenWhereInput struct { + Predicates []predicate.PersonalAccessToken `json:"-"` + Not *PersonalAccessTokenWhereInput `json:"not,omitempty"` + Or []*PersonalAccessTokenWhereInput `json:"or,omitempty"` + And []*PersonalAccessTokenWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -27864,39 +44772,6 @@ type OauthProviderHistoryWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // "history_time" field predicates. - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` - RefGT *string `json:"refGT,omitempty"` - RefGTE *string `json:"refGTE,omitempty"` - RefLT *string `json:"refLT,omitempty"` - RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -27984,23 +44859,6 @@ type OauthProviderHistoryWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIDGT *string `json:"ownerIDGT,omitempty"` - OwnerIDGTE *string `json:"ownerIDGTE,omitempty"` - OwnerIDLT *string `json:"ownerIDLT,omitempty"` - OwnerIDLTE *string `json:"ownerIDLTE,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"` @@ -28016,135 +44874,56 @@ type OauthProviderHistoryWhereInput struct { NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` - // "client_id" field predicates. - ClientID *string `json:"clientID,omitempty"` - ClientIDNEQ *string `json:"clientIDNEQ,omitempty"` - ClientIDIn []string `json:"clientIDIn,omitempty"` - ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` - ClientIDGT *string `json:"clientIDGT,omitempty"` - ClientIDGTE *string `json:"clientIDGTE,omitempty"` - ClientIDLT *string `json:"clientIDLT,omitempty"` - ClientIDLTE *string `json:"clientIDLTE,omitempty"` - ClientIDContains *string `json:"clientIDContains,omitempty"` - ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` - ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` - ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` - ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` - - // "client_secret" field predicates. - ClientSecret *string `json:"clientSecret,omitempty"` - ClientSecretNEQ *string `json:"clientSecretNEQ,omitempty"` - ClientSecretIn []string `json:"clientSecretIn,omitempty"` - ClientSecretNotIn []string `json:"clientSecretNotIn,omitempty"` - ClientSecretGT *string `json:"clientSecretGT,omitempty"` - ClientSecretGTE *string `json:"clientSecretGTE,omitempty"` - ClientSecretLT *string `json:"clientSecretLT,omitempty"` - ClientSecretLTE *string `json:"clientSecretLTE,omitempty"` - ClientSecretContains *string `json:"clientSecretContains,omitempty"` - ClientSecretHasPrefix *string `json:"clientSecretHasPrefix,omitempty"` - ClientSecretHasSuffix *string `json:"clientSecretHasSuffix,omitempty"` - ClientSecretEqualFold *string `json:"clientSecretEqualFold,omitempty"` - ClientSecretContainsFold *string `json:"clientSecretContainsFold,omitempty"` - - // "redirect_url" field predicates. - RedirectURL *string `json:"redirectURL,omitempty"` - RedirectURLNEQ *string `json:"redirectURLNEQ,omitempty"` - RedirectURLIn []string `json:"redirectURLIn,omitempty"` - RedirectURLNotIn []string `json:"redirectURLNotIn,omitempty"` - RedirectURLGT *string `json:"redirectURLGT,omitempty"` - RedirectURLGTE *string `json:"redirectURLGTE,omitempty"` - RedirectURLLT *string `json:"redirectURLLT,omitempty"` - RedirectURLLTE *string `json:"redirectURLLTE,omitempty"` - RedirectURLContains *string `json:"redirectURLContains,omitempty"` - RedirectURLHasPrefix *string `json:"redirectURLHasPrefix,omitempty"` - RedirectURLHasSuffix *string `json:"redirectURLHasSuffix,omitempty"` - RedirectURLEqualFold *string `json:"redirectURLEqualFold,omitempty"` - RedirectURLContainsFold *string `json:"redirectURLContainsFold,omitempty"` - - // "scopes" field predicates. - Scopes *string `json:"scopes,omitempty"` - ScopesNEQ *string `json:"scopesNEQ,omitempty"` - ScopesIn []string `json:"scopesIn,omitempty"` - ScopesNotIn []string `json:"scopesNotIn,omitempty"` - ScopesGT *string `json:"scopesGT,omitempty"` - ScopesGTE *string `json:"scopesGTE,omitempty"` - ScopesLT *string `json:"scopesLT,omitempty"` - ScopesLTE *string `json:"scopesLTE,omitempty"` - ScopesContains *string `json:"scopesContains,omitempty"` - ScopesHasPrefix *string `json:"scopesHasPrefix,omitempty"` - ScopesHasSuffix *string `json:"scopesHasSuffix,omitempty"` - ScopesEqualFold *string `json:"scopesEqualFold,omitempty"` - ScopesContainsFold *string `json:"scopesContainsFold,omitempty"` + // "expires_at" field predicates. + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + ExpiresAtNEQ *time.Time `json:"expiresAtNEQ,omitempty"` + ExpiresAtIn []time.Time `json:"expiresAtIn,omitempty"` + ExpiresAtNotIn []time.Time `json:"expiresAtNotIn,omitempty"` + ExpiresAtGT *time.Time `json:"expiresAtGT,omitempty"` + ExpiresAtGTE *time.Time `json:"expiresAtGTE,omitempty"` + ExpiresAtLT *time.Time `json:"expiresAtLT,omitempty"` + ExpiresAtLTE *time.Time `json:"expiresAtLTE,omitempty"` + ExpiresAtIsNil bool `json:"expiresAtIsNil,omitempty"` + ExpiresAtNotNil bool `json:"expiresAtNotNil,omitempty"` - // "auth_url" field predicates. - AuthURL *string `json:"authURL,omitempty"` - AuthURLNEQ *string `json:"authURLNEQ,omitempty"` - AuthURLIn []string `json:"authURLIn,omitempty"` - AuthURLNotIn []string `json:"authURLNotIn,omitempty"` - AuthURLGT *string `json:"authURLGT,omitempty"` - AuthURLGTE *string `json:"authURLGTE,omitempty"` - AuthURLLT *string `json:"authURLLT,omitempty"` - AuthURLLTE *string `json:"authURLLTE,omitempty"` - AuthURLContains *string `json:"authURLContains,omitempty"` - AuthURLHasPrefix *string `json:"authURLHasPrefix,omitempty"` - AuthURLHasSuffix *string `json:"authURLHasSuffix,omitempty"` - AuthURLEqualFold *string `json:"authURLEqualFold,omitempty"` - AuthURLContainsFold *string `json:"authURLContainsFold,omitempty"` + // "last_used_at" field predicates. + LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` + LastUsedAtNEQ *time.Time `json:"lastUsedAtNEQ,omitempty"` + LastUsedAtIn []time.Time `json:"lastUsedAtIn,omitempty"` + LastUsedAtNotIn []time.Time `json:"lastUsedAtNotIn,omitempty"` + LastUsedAtGT *time.Time `json:"lastUsedAtGT,omitempty"` + LastUsedAtGTE *time.Time `json:"lastUsedAtGTE,omitempty"` + LastUsedAtLT *time.Time `json:"lastUsedAtLT,omitempty"` + LastUsedAtLTE *time.Time `json:"lastUsedAtLTE,omitempty"` + LastUsedAtIsNil bool `json:"lastUsedAtIsNil,omitempty"` + LastUsedAtNotNil bool `json:"lastUsedAtNotNil,omitempty"` - // "token_url" field predicates. - TokenURL *string `json:"tokenURL,omitempty"` - TokenURLNEQ *string `json:"tokenURLNEQ,omitempty"` - TokenURLIn []string `json:"tokenURLIn,omitempty"` - TokenURLNotIn []string `json:"tokenURLNotIn,omitempty"` - TokenURLGT *string `json:"tokenURLGT,omitempty"` - TokenURLGTE *string `json:"tokenURLGTE,omitempty"` - TokenURLLT *string `json:"tokenURLLT,omitempty"` - TokenURLLTE *string `json:"tokenURLLTE,omitempty"` - TokenURLContains *string `json:"tokenURLContains,omitempty"` - TokenURLHasPrefix *string `json:"tokenURLHasPrefix,omitempty"` - TokenURLHasSuffix *string `json:"tokenURLHasSuffix,omitempty"` - TokenURLEqualFold *string `json:"tokenURLEqualFold,omitempty"` - TokenURLContainsFold *string `json:"tokenURLContainsFold,omitempty"` + // "owner" edge predicates. + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*UserWhereInput `json:"hasOwnerWith,omitempty"` - // "auth_style" field predicates. - AuthStyle *customtypes.Uint8 `json:"authStyle,omitempty"` - AuthStyleNEQ *customtypes.Uint8 `json:"authStyleNEQ,omitempty"` - AuthStyleIn []customtypes.Uint8 `json:"authStyleIn,omitempty"` - AuthStyleNotIn []customtypes.Uint8 `json:"authStyleNotIn,omitempty"` - AuthStyleGT *customtypes.Uint8 `json:"authStyleGT,omitempty"` - AuthStyleGTE *customtypes.Uint8 `json:"authStyleGTE,omitempty"` - AuthStyleLT *customtypes.Uint8 `json:"authStyleLT,omitempty"` - AuthStyleLTE *customtypes.Uint8 `json:"authStyleLTE,omitempty"` + // "organizations" edge predicates. + HasOrganizations *bool `json:"hasOrganizations,omitempty"` + HasOrganizationsWith []*OrganizationWhereInput `json:"hasOrganizationsWith,omitempty"` - // "info_url" field predicates. - InfoURL *string `json:"infoURL,omitempty"` - InfoURLNEQ *string `json:"infoURLNEQ,omitempty"` - InfoURLIn []string `json:"infoURLIn,omitempty"` - InfoURLNotIn []string `json:"infoURLNotIn,omitempty"` - InfoURLGT *string `json:"infoURLGT,omitempty"` - InfoURLGTE *string `json:"infoURLGTE,omitempty"` - InfoURLLT *string `json:"infoURLLT,omitempty"` - InfoURLLTE *string `json:"infoURLLTE,omitempty"` - InfoURLContains *string `json:"infoURLContains,omitempty"` - InfoURLHasPrefix *string `json:"infoURLHasPrefix,omitempty"` - InfoURLHasSuffix *string `json:"infoURLHasSuffix,omitempty"` - InfoURLEqualFold *string `json:"infoURLEqualFold,omitempty"` - InfoURLContainsFold *string `json:"infoURLContainsFold,omitempty"` + // "events" edge predicates. + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *OauthProviderHistoryWhereInput) AddPredicates(predicates ...predicate.OauthProviderHistory) { +func (i *PersonalAccessTokenWhereInput) AddPredicates(predicates ...predicate.PersonalAccessToken) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the OauthProviderHistoryWhereInput filter on the OauthProviderHistoryQuery builder. -func (i *OauthProviderHistoryWhereInput) Filter(q *OauthProviderHistoryQuery) (*OauthProviderHistoryQuery, error) { +// Filter applies the PersonalAccessTokenWhereInput filter on the PersonalAccessTokenQuery builder. +func (i *PersonalAccessTokenWhereInput) Filter(q *PersonalAccessTokenQuery) (*PersonalAccessTokenQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyOauthProviderHistoryWhereInput { + if err == ErrEmptyPersonalAccessTokenWhereInput { return q, nil } return nil, err @@ -28152,19 +44931,19 @@ func (i *OauthProviderHistoryWhereInput) Filter(q *OauthProviderHistoryQuery) (* return q.Where(p), nil } -// ErrEmptyOauthProviderHistoryWhereInput is returned in case the OauthProviderHistoryWhereInput is empty. -var ErrEmptyOauthProviderHistoryWhereInput = errors.New("generated: empty predicate OauthProviderHistoryWhereInput") +// ErrEmptyPersonalAccessTokenWhereInput is returned in case the PersonalAccessTokenWhereInput is empty. +var ErrEmptyPersonalAccessTokenWhereInput = errors.New("generated: empty predicate PersonalAccessTokenWhereInput") -// P returns a predicate for filtering oauthproviderhistories. +// P returns a predicate for filtering personalaccesstokens. // An error is returned if the input is empty or invalid. -func (i *OauthProviderHistoryWhereInput) P() (predicate.OauthProviderHistory, error) { - var predicates []predicate.OauthProviderHistory +func (i *PersonalAccessTokenWhereInput) P() (predicate.PersonalAccessToken, error) { + var predicates []predicate.PersonalAccessToken if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, oauthproviderhistory.Not(p)) + predicates = append(predicates, personalaccesstoken.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -28174,7 +44953,7 @@ func (i *OauthProviderHistoryWhereInput) P() (predicate.OauthProviderHistory, er } predicates = append(predicates, p) case n > 1: - or := make([]predicate.OauthProviderHistory, 0, n) + or := make([]predicate.PersonalAccessToken, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -28182,7 +44961,7 @@ func (i *OauthProviderHistoryWhereInput) P() (predicate.OauthProviderHistory, er } or = append(or, p) } - predicates = append(predicates, oauthproviderhistory.Or(or...)) + predicates = append(predicates, personalaccesstoken.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -28192,7 +44971,7 @@ func (i *OauthProviderHistoryWhereInput) P() (predicate.OauthProviderHistory, er } predicates = append(predicates, p) case n > 1: - and := make([]predicate.OauthProviderHistory, 0, n) + and := make([]predicate.PersonalAccessToken, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -28200,743 +44979,434 @@ func (i *OauthProviderHistoryWhereInput) P() (predicate.OauthProviderHistory, er } and = append(and, p) } - predicates = append(predicates, oauthproviderhistory.And(and...)) + predicates = append(predicates, personalaccesstoken.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, oauthproviderhistory.IDEQ(*i.ID)) + predicates = append(predicates, personalaccesstoken.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, oauthproviderhistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, personalaccesstoken.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, oauthproviderhistory.IDIn(i.IDIn...)) + predicates = append(predicates, personalaccesstoken.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, personalaccesstoken.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, oauthproviderhistory.IDGT(*i.IDGT)) + predicates = append(predicates, personalaccesstoken.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, oauthproviderhistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, personalaccesstoken.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, oauthproviderhistory.IDLT(*i.IDLT)) + predicates = append(predicates, personalaccesstoken.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, oauthproviderhistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, personalaccesstoken.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, personalaccesstoken.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.IDContainsFold(*i.IDContainsFold)) - } - if i.HistoryTime != nil { - predicates = append(predicates, oauthproviderhistory.HistoryTimeEQ(*i.HistoryTime)) - } - if i.HistoryTimeNEQ != nil { - predicates = append(predicates, oauthproviderhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) - } - if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, oauthproviderhistory.HistoryTimeIn(i.HistoryTimeIn...)) - } - if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) - } - if i.HistoryTimeGT != nil { - predicates = append(predicates, oauthproviderhistory.HistoryTimeGT(*i.HistoryTimeGT)) - } - if i.HistoryTimeGTE != nil { - predicates = append(predicates, oauthproviderhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) - } - if i.HistoryTimeLT != nil { - predicates = append(predicates, oauthproviderhistory.HistoryTimeLT(*i.HistoryTimeLT)) - } - if i.HistoryTimeLTE != nil { - predicates = append(predicates, oauthproviderhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) - } - if i.Ref != nil { - predicates = append(predicates, oauthproviderhistory.RefEQ(*i.Ref)) - } - if i.RefNEQ != nil { - predicates = append(predicates, oauthproviderhistory.RefNEQ(*i.RefNEQ)) - } - if len(i.RefIn) > 0 { - predicates = append(predicates, oauthproviderhistory.RefIn(i.RefIn...)) - } - if len(i.RefNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.RefNotIn(i.RefNotIn...)) - } - if i.RefGT != nil { - predicates = append(predicates, oauthproviderhistory.RefGT(*i.RefGT)) - } - if i.RefGTE != nil { - predicates = append(predicates, oauthproviderhistory.RefGTE(*i.RefGTE)) - } - if i.RefLT != nil { - predicates = append(predicates, oauthproviderhistory.RefLT(*i.RefLT)) - } - if i.RefLTE != nil { - predicates = append(predicates, oauthproviderhistory.RefLTE(*i.RefLTE)) - } - if i.RefContains != nil { - predicates = append(predicates, oauthproviderhistory.RefContains(*i.RefContains)) - } - if i.RefHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.RefHasPrefix(*i.RefHasPrefix)) - } - if i.RefHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.RefHasSuffix(*i.RefHasSuffix)) - } - if i.RefIsNil { - predicates = append(predicates, oauthproviderhistory.RefIsNil()) - } - if i.RefNotNil { - predicates = append(predicates, oauthproviderhistory.RefNotNil()) - } - if i.RefEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.RefEqualFold(*i.RefEqualFold)) - } - if i.RefContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.RefContainsFold(*i.RefContainsFold)) - } - if i.Operation != nil { - predicates = append(predicates, oauthproviderhistory.OperationEQ(*i.Operation)) - } - if i.OperationNEQ != nil { - predicates = append(predicates, oauthproviderhistory.OperationNEQ(*i.OperationNEQ)) - } - if len(i.OperationIn) > 0 { - predicates = append(predicates, oauthproviderhistory.OperationIn(i.OperationIn...)) - } - if len(i.OperationNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.OperationNotIn(i.OperationNotIn...)) + predicates = append(predicates, personalaccesstoken.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, oauthproviderhistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, personalaccesstoken.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, oauthproviderhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, personalaccesstoken.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, oauthproviderhistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, personalaccesstoken.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, personalaccesstoken.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, oauthproviderhistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, personalaccesstoken.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, oauthproviderhistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, personalaccesstoken.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, oauthproviderhistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, personalaccesstoken.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, oauthproviderhistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, personalaccesstoken.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, oauthproviderhistory.CreatedAtIsNil()) + predicates = append(predicates, personalaccesstoken.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, oauthproviderhistory.CreatedAtNotNil()) + predicates = append(predicates, personalaccesstoken.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, personalaccesstoken.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, personalaccesstoken.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, oauthproviderhistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, personalaccesstoken.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, personalaccesstoken.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, personalaccesstoken.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, personalaccesstoken.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, personalaccesstoken.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, personalaccesstoken.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, oauthproviderhistory.UpdatedAtIsNil()) + predicates = append(predicates, personalaccesstoken.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, oauthproviderhistory.UpdatedAtNotNil()) + predicates = append(predicates, personalaccesstoken.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, oauthproviderhistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, personalaccesstoken.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, oauthproviderhistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, personalaccesstoken.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, oauthproviderhistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, personalaccesstoken.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, personalaccesstoken.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, oauthproviderhistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, personalaccesstoken.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, oauthproviderhistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, personalaccesstoken.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, oauthproviderhistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, personalaccesstoken.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, oauthproviderhistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, personalaccesstoken.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, oauthproviderhistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, personalaccesstoken.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, personalaccesstoken.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, personalaccesstoken.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, oauthproviderhistory.CreatedByIsNil()) + predicates = append(predicates, personalaccesstoken.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, oauthproviderhistory.CreatedByNotNil()) + predicates = append(predicates, personalaccesstoken.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, personalaccesstoken.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, personalaccesstoken.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, personalaccesstoken.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, personalaccesstoken.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, oauthproviderhistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, personalaccesstoken.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, personalaccesstoken.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, personalaccesstoken.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, personalaccesstoken.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, personalaccesstoken.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, personalaccesstoken.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, personalaccesstoken.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, personalaccesstoken.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, personalaccesstoken.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, oauthproviderhistory.UpdatedByIsNil()) + predicates = append(predicates, personalaccesstoken.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, oauthproviderhistory.UpdatedByNotNil()) + predicates = append(predicates, personalaccesstoken.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, personalaccesstoken.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, personalaccesstoken.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, oauthproviderhistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, personalaccesstoken.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, oauthproviderhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, personalaccesstoken.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, oauthproviderhistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, personalaccesstoken.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, personalaccesstoken.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, oauthproviderhistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, personalaccesstoken.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, oauthproviderhistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, personalaccesstoken.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, oauthproviderhistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, personalaccesstoken.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, oauthproviderhistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, personalaccesstoken.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, oauthproviderhistory.DeletedAtIsNil()) + predicates = append(predicates, personalaccesstoken.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, oauthproviderhistory.DeletedAtNotNil()) + predicates = append(predicates, personalaccesstoken.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, oauthproviderhistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, personalaccesstoken.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, oauthproviderhistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, personalaccesstoken.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, oauthproviderhistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, personalaccesstoken.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, personalaccesstoken.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, oauthproviderhistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, personalaccesstoken.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, oauthproviderhistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, personalaccesstoken.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, oauthproviderhistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, personalaccesstoken.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, oauthproviderhistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, personalaccesstoken.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, oauthproviderhistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, personalaccesstoken.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, personalaccesstoken.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, personalaccesstoken.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, oauthproviderhistory.DeletedByIsNil()) + predicates = append(predicates, personalaccesstoken.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, oauthproviderhistory.DeletedByNotNil()) + predicates = append(predicates, personalaccesstoken.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, personalaccesstoken.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) - } - if i.OwnerID != nil { - predicates = append(predicates, oauthproviderhistory.OwnerIDEQ(*i.OwnerID)) - } - if i.OwnerIDNEQ != nil { - predicates = append(predicates, oauthproviderhistory.OwnerIDNEQ(*i.OwnerIDNEQ)) - } - if len(i.OwnerIDIn) > 0 { - predicates = append(predicates, oauthproviderhistory.OwnerIDIn(i.OwnerIDIn...)) - } - if len(i.OwnerIDNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.OwnerIDNotIn(i.OwnerIDNotIn...)) - } - if i.OwnerIDGT != nil { - predicates = append(predicates, oauthproviderhistory.OwnerIDGT(*i.OwnerIDGT)) - } - if i.OwnerIDGTE != nil { - predicates = append(predicates, oauthproviderhistory.OwnerIDGTE(*i.OwnerIDGTE)) - } - if i.OwnerIDLT != nil { - predicates = append(predicates, oauthproviderhistory.OwnerIDLT(*i.OwnerIDLT)) - } - if i.OwnerIDLTE != nil { - predicates = append(predicates, oauthproviderhistory.OwnerIDLTE(*i.OwnerIDLTE)) - } - if i.OwnerIDContains != nil { - predicates = append(predicates, oauthproviderhistory.OwnerIDContains(*i.OwnerIDContains)) - } - if i.OwnerIDHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) - } - if i.OwnerIDHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) - } - if i.OwnerIDIsNil { - predicates = append(predicates, oauthproviderhistory.OwnerIDIsNil()) - } - if i.OwnerIDNotNil { - predicates = append(predicates, oauthproviderhistory.OwnerIDNotNil()) - } - if i.OwnerIDEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) - } - if i.OwnerIDContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + predicates = append(predicates, personalaccesstoken.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.Name != nil { - predicates = append(predicates, oauthproviderhistory.NameEQ(*i.Name)) + predicates = append(predicates, personalaccesstoken.NameEQ(*i.Name)) } if i.NameNEQ != nil { - predicates = append(predicates, oauthproviderhistory.NameNEQ(*i.NameNEQ)) + predicates = append(predicates, personalaccesstoken.NameNEQ(*i.NameNEQ)) } if len(i.NameIn) > 0 { - predicates = append(predicates, oauthproviderhistory.NameIn(i.NameIn...)) + predicates = append(predicates, personalaccesstoken.NameIn(i.NameIn...)) } if len(i.NameNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.NameNotIn(i.NameNotIn...)) + predicates = append(predicates, personalaccesstoken.NameNotIn(i.NameNotIn...)) } if i.NameGT != nil { - predicates = append(predicates, oauthproviderhistory.NameGT(*i.NameGT)) + predicates = append(predicates, personalaccesstoken.NameGT(*i.NameGT)) } if i.NameGTE != nil { - predicates = append(predicates, oauthproviderhistory.NameGTE(*i.NameGTE)) + predicates = append(predicates, personalaccesstoken.NameGTE(*i.NameGTE)) } if i.NameLT != nil { - predicates = append(predicates, oauthproviderhistory.NameLT(*i.NameLT)) + predicates = append(predicates, personalaccesstoken.NameLT(*i.NameLT)) } if i.NameLTE != nil { - predicates = append(predicates, oauthproviderhistory.NameLTE(*i.NameLTE)) + predicates = append(predicates, personalaccesstoken.NameLTE(*i.NameLTE)) } if i.NameContains != nil { - predicates = append(predicates, oauthproviderhistory.NameContains(*i.NameContains)) + predicates = append(predicates, personalaccesstoken.NameContains(*i.NameContains)) } if i.NameHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.NameHasPrefix(*i.NameHasPrefix)) + predicates = append(predicates, personalaccesstoken.NameHasPrefix(*i.NameHasPrefix)) } if i.NameHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.NameHasSuffix(*i.NameHasSuffix)) + predicates = append(predicates, personalaccesstoken.NameHasSuffix(*i.NameHasSuffix)) } if i.NameEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.NameEqualFold(*i.NameEqualFold)) + predicates = append(predicates, personalaccesstoken.NameEqualFold(*i.NameEqualFold)) } if i.NameContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.NameContainsFold(*i.NameContainsFold)) - } - if i.ClientID != nil { - predicates = append(predicates, oauthproviderhistory.ClientIDEQ(*i.ClientID)) - } - if i.ClientIDNEQ != nil { - predicates = append(predicates, oauthproviderhistory.ClientIDNEQ(*i.ClientIDNEQ)) - } - if len(i.ClientIDIn) > 0 { - predicates = append(predicates, oauthproviderhistory.ClientIDIn(i.ClientIDIn...)) - } - if len(i.ClientIDNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.ClientIDNotIn(i.ClientIDNotIn...)) - } - if i.ClientIDGT != nil { - predicates = append(predicates, oauthproviderhistory.ClientIDGT(*i.ClientIDGT)) - } - if i.ClientIDGTE != nil { - predicates = append(predicates, oauthproviderhistory.ClientIDGTE(*i.ClientIDGTE)) - } - if i.ClientIDLT != nil { - predicates = append(predicates, oauthproviderhistory.ClientIDLT(*i.ClientIDLT)) - } - if i.ClientIDLTE != nil { - predicates = append(predicates, oauthproviderhistory.ClientIDLTE(*i.ClientIDLTE)) - } - if i.ClientIDContains != nil { - predicates = append(predicates, oauthproviderhistory.ClientIDContains(*i.ClientIDContains)) - } - if i.ClientIDHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.ClientIDHasPrefix(*i.ClientIDHasPrefix)) - } - if i.ClientIDHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.ClientIDHasSuffix(*i.ClientIDHasSuffix)) - } - if i.ClientIDEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.ClientIDEqualFold(*i.ClientIDEqualFold)) - } - if i.ClientIDContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.ClientIDContainsFold(*i.ClientIDContainsFold)) - } - if i.ClientSecret != nil { - predicates = append(predicates, oauthproviderhistory.ClientSecretEQ(*i.ClientSecret)) - } - if i.ClientSecretNEQ != nil { - predicates = append(predicates, oauthproviderhistory.ClientSecretNEQ(*i.ClientSecretNEQ)) - } - if len(i.ClientSecretIn) > 0 { - predicates = append(predicates, oauthproviderhistory.ClientSecretIn(i.ClientSecretIn...)) - } - if len(i.ClientSecretNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.ClientSecretNotIn(i.ClientSecretNotIn...)) - } - if i.ClientSecretGT != nil { - predicates = append(predicates, oauthproviderhistory.ClientSecretGT(*i.ClientSecretGT)) - } - if i.ClientSecretGTE != nil { - predicates = append(predicates, oauthproviderhistory.ClientSecretGTE(*i.ClientSecretGTE)) - } - if i.ClientSecretLT != nil { - predicates = append(predicates, oauthproviderhistory.ClientSecretLT(*i.ClientSecretLT)) - } - if i.ClientSecretLTE != nil { - predicates = append(predicates, oauthproviderhistory.ClientSecretLTE(*i.ClientSecretLTE)) - } - if i.ClientSecretContains != nil { - predicates = append(predicates, oauthproviderhistory.ClientSecretContains(*i.ClientSecretContains)) - } - if i.ClientSecretHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.ClientSecretHasPrefix(*i.ClientSecretHasPrefix)) - } - if i.ClientSecretHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.ClientSecretHasSuffix(*i.ClientSecretHasSuffix)) - } - if i.ClientSecretEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.ClientSecretEqualFold(*i.ClientSecretEqualFold)) - } - if i.ClientSecretContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.ClientSecretContainsFold(*i.ClientSecretContainsFold)) - } - if i.RedirectURL != nil { - predicates = append(predicates, oauthproviderhistory.RedirectURLEQ(*i.RedirectURL)) - } - if i.RedirectURLNEQ != nil { - predicates = append(predicates, oauthproviderhistory.RedirectURLNEQ(*i.RedirectURLNEQ)) - } - if len(i.RedirectURLIn) > 0 { - predicates = append(predicates, oauthproviderhistory.RedirectURLIn(i.RedirectURLIn...)) - } - if len(i.RedirectURLNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.RedirectURLNotIn(i.RedirectURLNotIn...)) - } - if i.RedirectURLGT != nil { - predicates = append(predicates, oauthproviderhistory.RedirectURLGT(*i.RedirectURLGT)) - } - if i.RedirectURLGTE != nil { - predicates = append(predicates, oauthproviderhistory.RedirectURLGTE(*i.RedirectURLGTE)) - } - if i.RedirectURLLT != nil { - predicates = append(predicates, oauthproviderhistory.RedirectURLLT(*i.RedirectURLLT)) - } - if i.RedirectURLLTE != nil { - predicates = append(predicates, oauthproviderhistory.RedirectURLLTE(*i.RedirectURLLTE)) - } - if i.RedirectURLContains != nil { - predicates = append(predicates, oauthproviderhistory.RedirectURLContains(*i.RedirectURLContains)) - } - if i.RedirectURLHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.RedirectURLHasPrefix(*i.RedirectURLHasPrefix)) - } - if i.RedirectURLHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.RedirectURLHasSuffix(*i.RedirectURLHasSuffix)) - } - if i.RedirectURLEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.RedirectURLEqualFold(*i.RedirectURLEqualFold)) - } - if i.RedirectURLContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.RedirectURLContainsFold(*i.RedirectURLContainsFold)) - } - if i.Scopes != nil { - predicates = append(predicates, oauthproviderhistory.ScopesEQ(*i.Scopes)) - } - if i.ScopesNEQ != nil { - predicates = append(predicates, oauthproviderhistory.ScopesNEQ(*i.ScopesNEQ)) - } - if len(i.ScopesIn) > 0 { - predicates = append(predicates, oauthproviderhistory.ScopesIn(i.ScopesIn...)) - } - if len(i.ScopesNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.ScopesNotIn(i.ScopesNotIn...)) - } - if i.ScopesGT != nil { - predicates = append(predicates, oauthproviderhistory.ScopesGT(*i.ScopesGT)) - } - if i.ScopesGTE != nil { - predicates = append(predicates, oauthproviderhistory.ScopesGTE(*i.ScopesGTE)) - } - if i.ScopesLT != nil { - predicates = append(predicates, oauthproviderhistory.ScopesLT(*i.ScopesLT)) - } - if i.ScopesLTE != nil { - predicates = append(predicates, oauthproviderhistory.ScopesLTE(*i.ScopesLTE)) - } - if i.ScopesContains != nil { - predicates = append(predicates, oauthproviderhistory.ScopesContains(*i.ScopesContains)) - } - if i.ScopesHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.ScopesHasPrefix(*i.ScopesHasPrefix)) - } - if i.ScopesHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.ScopesHasSuffix(*i.ScopesHasSuffix)) - } - if i.ScopesEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.ScopesEqualFold(*i.ScopesEqualFold)) - } - if i.ScopesContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.ScopesContainsFold(*i.ScopesContainsFold)) - } - if i.AuthURL != nil { - predicates = append(predicates, oauthproviderhistory.AuthURLEQ(*i.AuthURL)) - } - if i.AuthURLNEQ != nil { - predicates = append(predicates, oauthproviderhistory.AuthURLNEQ(*i.AuthURLNEQ)) - } - if len(i.AuthURLIn) > 0 { - predicates = append(predicates, oauthproviderhistory.AuthURLIn(i.AuthURLIn...)) - } - if len(i.AuthURLNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.AuthURLNotIn(i.AuthURLNotIn...)) - } - if i.AuthURLGT != nil { - predicates = append(predicates, oauthproviderhistory.AuthURLGT(*i.AuthURLGT)) - } - if i.AuthURLGTE != nil { - predicates = append(predicates, oauthproviderhistory.AuthURLGTE(*i.AuthURLGTE)) - } - if i.AuthURLLT != nil { - predicates = append(predicates, oauthproviderhistory.AuthURLLT(*i.AuthURLLT)) - } - if i.AuthURLLTE != nil { - predicates = append(predicates, oauthproviderhistory.AuthURLLTE(*i.AuthURLLTE)) - } - if i.AuthURLContains != nil { - predicates = append(predicates, oauthproviderhistory.AuthURLContains(*i.AuthURLContains)) - } - if i.AuthURLHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.AuthURLHasPrefix(*i.AuthURLHasPrefix)) - } - if i.AuthURLHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.AuthURLHasSuffix(*i.AuthURLHasSuffix)) - } - if i.AuthURLEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.AuthURLEqualFold(*i.AuthURLEqualFold)) - } - if i.AuthURLContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.AuthURLContainsFold(*i.AuthURLContainsFold)) - } - if i.TokenURL != nil { - predicates = append(predicates, oauthproviderhistory.TokenURLEQ(*i.TokenURL)) - } - if i.TokenURLNEQ != nil { - predicates = append(predicates, oauthproviderhistory.TokenURLNEQ(*i.TokenURLNEQ)) - } - if len(i.TokenURLIn) > 0 { - predicates = append(predicates, oauthproviderhistory.TokenURLIn(i.TokenURLIn...)) - } - if len(i.TokenURLNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.TokenURLNotIn(i.TokenURLNotIn...)) - } - if i.TokenURLGT != nil { - predicates = append(predicates, oauthproviderhistory.TokenURLGT(*i.TokenURLGT)) - } - if i.TokenURLGTE != nil { - predicates = append(predicates, oauthproviderhistory.TokenURLGTE(*i.TokenURLGTE)) - } - if i.TokenURLLT != nil { - predicates = append(predicates, oauthproviderhistory.TokenURLLT(*i.TokenURLLT)) - } - if i.TokenURLLTE != nil { - predicates = append(predicates, oauthproviderhistory.TokenURLLTE(*i.TokenURLLTE)) - } - if i.TokenURLContains != nil { - predicates = append(predicates, oauthproviderhistory.TokenURLContains(*i.TokenURLContains)) + predicates = append(predicates, personalaccesstoken.NameContainsFold(*i.NameContainsFold)) } - if i.TokenURLHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.TokenURLHasPrefix(*i.TokenURLHasPrefix)) + if i.ExpiresAt != nil { + predicates = append(predicates, personalaccesstoken.ExpiresAtEQ(*i.ExpiresAt)) } - if i.TokenURLHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.TokenURLHasSuffix(*i.TokenURLHasSuffix)) + if i.ExpiresAtNEQ != nil { + predicates = append(predicates, personalaccesstoken.ExpiresAtNEQ(*i.ExpiresAtNEQ)) } - if i.TokenURLEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.TokenURLEqualFold(*i.TokenURLEqualFold)) + if len(i.ExpiresAtIn) > 0 { + predicates = append(predicates, personalaccesstoken.ExpiresAtIn(i.ExpiresAtIn...)) } - if i.TokenURLContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.TokenURLContainsFold(*i.TokenURLContainsFold)) + if len(i.ExpiresAtNotIn) > 0 { + predicates = append(predicates, personalaccesstoken.ExpiresAtNotIn(i.ExpiresAtNotIn...)) } - if i.AuthStyle != nil { - predicates = append(predicates, oauthproviderhistory.AuthStyleEQ(*i.AuthStyle)) + if i.ExpiresAtGT != nil { + predicates = append(predicates, personalaccesstoken.ExpiresAtGT(*i.ExpiresAtGT)) } - if i.AuthStyleNEQ != nil { - predicates = append(predicates, oauthproviderhistory.AuthStyleNEQ(*i.AuthStyleNEQ)) + if i.ExpiresAtGTE != nil { + predicates = append(predicates, personalaccesstoken.ExpiresAtGTE(*i.ExpiresAtGTE)) } - if len(i.AuthStyleIn) > 0 { - predicates = append(predicates, oauthproviderhistory.AuthStyleIn(i.AuthStyleIn...)) + if i.ExpiresAtLT != nil { + predicates = append(predicates, personalaccesstoken.ExpiresAtLT(*i.ExpiresAtLT)) } - if len(i.AuthStyleNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.AuthStyleNotIn(i.AuthStyleNotIn...)) + if i.ExpiresAtLTE != nil { + predicates = append(predicates, personalaccesstoken.ExpiresAtLTE(*i.ExpiresAtLTE)) } - if i.AuthStyleGT != nil { - predicates = append(predicates, oauthproviderhistory.AuthStyleGT(*i.AuthStyleGT)) + if i.ExpiresAtIsNil { + predicates = append(predicates, personalaccesstoken.ExpiresAtIsNil()) } - if i.AuthStyleGTE != nil { - predicates = append(predicates, oauthproviderhistory.AuthStyleGTE(*i.AuthStyleGTE)) + if i.ExpiresAtNotNil { + predicates = append(predicates, personalaccesstoken.ExpiresAtNotNil()) } - if i.AuthStyleLT != nil { - predicates = append(predicates, oauthproviderhistory.AuthStyleLT(*i.AuthStyleLT)) + if i.LastUsedAt != nil { + predicates = append(predicates, personalaccesstoken.LastUsedAtEQ(*i.LastUsedAt)) } - if i.AuthStyleLTE != nil { - predicates = append(predicates, oauthproviderhistory.AuthStyleLTE(*i.AuthStyleLTE)) + if i.LastUsedAtNEQ != nil { + predicates = append(predicates, personalaccesstoken.LastUsedAtNEQ(*i.LastUsedAtNEQ)) } - if i.InfoURL != nil { - predicates = append(predicates, oauthproviderhistory.InfoURLEQ(*i.InfoURL)) + if len(i.LastUsedAtIn) > 0 { + predicates = append(predicates, personalaccesstoken.LastUsedAtIn(i.LastUsedAtIn...)) } - if i.InfoURLNEQ != nil { - predicates = append(predicates, oauthproviderhistory.InfoURLNEQ(*i.InfoURLNEQ)) + if len(i.LastUsedAtNotIn) > 0 { + predicates = append(predicates, personalaccesstoken.LastUsedAtNotIn(i.LastUsedAtNotIn...)) } - if len(i.InfoURLIn) > 0 { - predicates = append(predicates, oauthproviderhistory.InfoURLIn(i.InfoURLIn...)) + if i.LastUsedAtGT != nil { + predicates = append(predicates, personalaccesstoken.LastUsedAtGT(*i.LastUsedAtGT)) } - if len(i.InfoURLNotIn) > 0 { - predicates = append(predicates, oauthproviderhistory.InfoURLNotIn(i.InfoURLNotIn...)) + if i.LastUsedAtGTE != nil { + predicates = append(predicates, personalaccesstoken.LastUsedAtGTE(*i.LastUsedAtGTE)) } - if i.InfoURLGT != nil { - predicates = append(predicates, oauthproviderhistory.InfoURLGT(*i.InfoURLGT)) + if i.LastUsedAtLT != nil { + predicates = append(predicates, personalaccesstoken.LastUsedAtLT(*i.LastUsedAtLT)) } - if i.InfoURLGTE != nil { - predicates = append(predicates, oauthproviderhistory.InfoURLGTE(*i.InfoURLGTE)) + if i.LastUsedAtLTE != nil { + predicates = append(predicates, personalaccesstoken.LastUsedAtLTE(*i.LastUsedAtLTE)) } - if i.InfoURLLT != nil { - predicates = append(predicates, oauthproviderhistory.InfoURLLT(*i.InfoURLLT)) + if i.LastUsedAtIsNil { + predicates = append(predicates, personalaccesstoken.LastUsedAtIsNil()) } - if i.InfoURLLTE != nil { - predicates = append(predicates, oauthproviderhistory.InfoURLLTE(*i.InfoURLLTE)) + if i.LastUsedAtNotNil { + predicates = append(predicates, personalaccesstoken.LastUsedAtNotNil()) } - if i.InfoURLContains != nil { - predicates = append(predicates, oauthproviderhistory.InfoURLContains(*i.InfoURLContains)) + + if i.HasOwner != nil { + p := personalaccesstoken.HasOwner() + if !*i.HasOwner { + p = personalaccesstoken.Not(p) + } + predicates = append(predicates, p) } - if i.InfoURLHasPrefix != nil { - predicates = append(predicates, oauthproviderhistory.InfoURLHasPrefix(*i.InfoURLHasPrefix)) + if len(i.HasOwnerWith) > 0 { + with := make([]predicate.User, 0, len(i.HasOwnerWith)) + 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, personalaccesstoken.HasOwnerWith(with...)) } - if i.InfoURLHasSuffix != nil { - predicates = append(predicates, oauthproviderhistory.InfoURLHasSuffix(*i.InfoURLHasSuffix)) + if i.HasOrganizations != nil { + p := personalaccesstoken.HasOrganizations() + if !*i.HasOrganizations { + p = personalaccesstoken.Not(p) + } + predicates = append(predicates, p) } - if i.InfoURLEqualFold != nil { - predicates = append(predicates, oauthproviderhistory.InfoURLEqualFold(*i.InfoURLEqualFold)) + if len(i.HasOrganizationsWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOrganizationsWith)) + for _, w := range i.HasOrganizationsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOrganizationsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, personalaccesstoken.HasOrganizationsWith(with...)) } - if i.InfoURLContainsFold != nil { - predicates = append(predicates, oauthproviderhistory.InfoURLContainsFold(*i.InfoURLContainsFold)) + if i.HasEvents != nil { + p := personalaccesstoken.HasEvents() + if !*i.HasEvents { + p = personalaccesstoken.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEventsWith) > 0 { + with := make([]predicate.Event, 0, len(i.HasEventsWith)) + for _, w := range i.HasEventsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, personalaccesstoken.HasEventsWith(with...)) } - switch len(predicates) { case 0: - return nil, ErrEmptyOauthProviderHistoryWhereInput + return nil, ErrEmptyPersonalAccessTokenWhereInput case 1: return predicates[0], nil default: - return oauthproviderhistory.And(predicates...), nil + return personalaccesstoken.And(predicates...), nil } } -// OhAuthTooTokenWhereInput represents a where input for filtering OhAuthTooToken queries. -type OhAuthTooTokenWhereInput struct { - Predicates []predicate.OhAuthTooToken `json:"-"` - Not *OhAuthTooTokenWhereInput `json:"not,omitempty"` - Or []*OhAuthTooTokenWhereInput `json:"or,omitempty"` - And []*OhAuthTooTokenWhereInput `json:"and,omitempty"` +// ProcedureWhereInput represents a where input for filtering Procedure queries. +type ProcedureWhereInput struct { + Predicates []predicate.Procedure `json:"-"` + Not *ProcedureWhereInput `json:"not,omitempty"` + Or []*ProcedureWhereInput `json:"or,omitempty"` + And []*ProcedureWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -28950,147 +45420,257 @@ type OhAuthTooTokenWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // "client_id" field predicates. - ClientID *string `json:"clientID,omitempty"` - ClientIDNEQ *string `json:"clientIDNEQ,omitempty"` - ClientIDIn []string `json:"clientIDIn,omitempty"` - ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` - ClientIDGT *string `json:"clientIDGT,omitempty"` - ClientIDGTE *string `json:"clientIDGTE,omitempty"` - ClientIDLT *string `json:"clientIDLT,omitempty"` - ClientIDLTE *string `json:"clientIDLTE,omitempty"` - ClientIDContains *string `json:"clientIDContains,omitempty"` - ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` - ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` - ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` - ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []time.Time `json:"createdAtNotIn,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"` - // "nonce" field predicates. - Nonce *string `json:"nonce,omitempty"` - NonceNEQ *string `json:"nonceNEQ,omitempty"` - NonceIn []string `json:"nonceIn,omitempty"` - NonceNotIn []string `json:"nonceNotIn,omitempty"` - NonceGT *string `json:"nonceGT,omitempty"` - NonceGTE *string `json:"nonceGTE,omitempty"` - NonceLT *string `json:"nonceLT,omitempty"` - NonceLTE *string `json:"nonceLTE,omitempty"` - NonceContains *string `json:"nonceContains,omitempty"` - NonceHasPrefix *string `json:"nonceHasPrefix,omitempty"` - NonceHasSuffix *string `json:"nonceHasSuffix,omitempty"` - NonceEqualFold *string `json:"nonceEqualFold,omitempty"` - NonceContainsFold *string `json:"nonceContainsFold,omitempty"` + // "updated_at" field predicates. + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + UpdatedAtNEQ *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []time.Time `json:"updatedAtNotIn,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"` - // "claims_user_id" field predicates. - ClaimsUserID *string `json:"claimsUserID,omitempty"` - ClaimsUserIDNEQ *string `json:"claimsUserIDNEQ,omitempty"` - ClaimsUserIDIn []string `json:"claimsUserIDIn,omitempty"` - ClaimsUserIDNotIn []string `json:"claimsUserIDNotIn,omitempty"` - ClaimsUserIDGT *string `json:"claimsUserIDGT,omitempty"` - ClaimsUserIDGTE *string `json:"claimsUserIDGTE,omitempty"` - ClaimsUserIDLT *string `json:"claimsUserIDLT,omitempty"` - ClaimsUserIDLTE *string `json:"claimsUserIDLTE,omitempty"` - ClaimsUserIDContains *string `json:"claimsUserIDContains,omitempty"` - ClaimsUserIDHasPrefix *string `json:"claimsUserIDHasPrefix,omitempty"` - ClaimsUserIDHasSuffix *string `json:"claimsUserIDHasSuffix,omitempty"` - ClaimsUserIDEqualFold *string `json:"claimsUserIDEqualFold,omitempty"` - ClaimsUserIDContainsFold *string `json:"claimsUserIDContainsFold,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"` + CreatedByGT *string `json:"createdByGT,omitempty"` + CreatedByGTE *string `json:"createdByGTE,omitempty"` + CreatedByLT *string `json:"createdByLT,omitempty"` + CreatedByLTE *string `json:"createdByLTE,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"` - // "claims_username" field predicates. - ClaimsUsername *string `json:"claimsUsername,omitempty"` - ClaimsUsernameNEQ *string `json:"claimsUsernameNEQ,omitempty"` - ClaimsUsernameIn []string `json:"claimsUsernameIn,omitempty"` - ClaimsUsernameNotIn []string `json:"claimsUsernameNotIn,omitempty"` - ClaimsUsernameGT *string `json:"claimsUsernameGT,omitempty"` - ClaimsUsernameGTE *string `json:"claimsUsernameGTE,omitempty"` - ClaimsUsernameLT *string `json:"claimsUsernameLT,omitempty"` - ClaimsUsernameLTE *string `json:"claimsUsernameLTE,omitempty"` - ClaimsUsernameContains *string `json:"claimsUsernameContains,omitempty"` - ClaimsUsernameHasPrefix *string `json:"claimsUsernameHasPrefix,omitempty"` - ClaimsUsernameHasSuffix *string `json:"claimsUsernameHasSuffix,omitempty"` - ClaimsUsernameEqualFold *string `json:"claimsUsernameEqualFold,omitempty"` - ClaimsUsernameContainsFold *string `json:"claimsUsernameContainsFold,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"` + UpdatedByGT *string `json:"updatedByGT,omitempty"` + UpdatedByGTE *string `json:"updatedByGTE,omitempty"` + UpdatedByLT *string `json:"updatedByLT,omitempty"` + UpdatedByLTE *string `json:"updatedByLTE,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"` - // "claims_email" field predicates. - ClaimsEmail *string `json:"claimsEmail,omitempty"` - ClaimsEmailNEQ *string `json:"claimsEmailNEQ,omitempty"` - ClaimsEmailIn []string `json:"claimsEmailIn,omitempty"` - ClaimsEmailNotIn []string `json:"claimsEmailNotIn,omitempty"` - ClaimsEmailGT *string `json:"claimsEmailGT,omitempty"` - ClaimsEmailGTE *string `json:"claimsEmailGTE,omitempty"` - ClaimsEmailLT *string `json:"claimsEmailLT,omitempty"` - ClaimsEmailLTE *string `json:"claimsEmailLTE,omitempty"` - ClaimsEmailContains *string `json:"claimsEmailContains,omitempty"` - ClaimsEmailHasPrefix *string `json:"claimsEmailHasPrefix,omitempty"` - ClaimsEmailHasSuffix *string `json:"claimsEmailHasSuffix,omitempty"` - ClaimsEmailEqualFold *string `json:"claimsEmailEqualFold,omitempty"` - ClaimsEmailContainsFold *string `json:"claimsEmailContainsFold,omitempty"` + // "deleted_at" field predicates. + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNEQ *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGT *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGTE *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLT *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLTE *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil bool `json:"deletedAtNotNil,omitempty"` - // "claims_email_verified" field predicates. - ClaimsEmailVerified *bool `json:"claimsEmailVerified,omitempty"` - ClaimsEmailVerifiedNEQ *bool `json:"claimsEmailVerifiedNEQ,omitempty"` + // "deleted_by" field predicates. + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNEQ *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGT *string `json:"deletedByGT,omitempty"` + DeletedByGTE *string `json:"deletedByGTE,omitempty"` + DeletedByLT *string `json:"deletedByLT,omitempty"` + DeletedByLTE *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "claims_preferred_username" field predicates. - ClaimsPreferredUsername *string `json:"claimsPreferredUsername,omitempty"` - ClaimsPreferredUsernameNEQ *string `json:"claimsPreferredUsernameNEQ,omitempty"` - ClaimsPreferredUsernameIn []string `json:"claimsPreferredUsernameIn,omitempty"` - ClaimsPreferredUsernameNotIn []string `json:"claimsPreferredUsernameNotIn,omitempty"` - ClaimsPreferredUsernameGT *string `json:"claimsPreferredUsernameGT,omitempty"` - ClaimsPreferredUsernameGTE *string `json:"claimsPreferredUsernameGTE,omitempty"` - ClaimsPreferredUsernameLT *string `json:"claimsPreferredUsernameLT,omitempty"` - ClaimsPreferredUsernameLTE *string `json:"claimsPreferredUsernameLTE,omitempty"` - ClaimsPreferredUsernameContains *string `json:"claimsPreferredUsernameContains,omitempty"` - ClaimsPreferredUsernameHasPrefix *string `json:"claimsPreferredUsernameHasPrefix,omitempty"` - ClaimsPreferredUsernameHasSuffix *string `json:"claimsPreferredUsernameHasSuffix,omitempty"` - ClaimsPreferredUsernameEqualFold *string `json:"claimsPreferredUsernameEqualFold,omitempty"` - ClaimsPreferredUsernameContainsFold *string `json:"claimsPreferredUsernameContainsFold,omitempty"` + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "connector_id" field predicates. - ConnectorID *string `json:"connectorID,omitempty"` - ConnectorIDNEQ *string `json:"connectorIDNEQ,omitempty"` - ConnectorIDIn []string `json:"connectorIDIn,omitempty"` - ConnectorIDNotIn []string `json:"connectorIDNotIn,omitempty"` - ConnectorIDGT *string `json:"connectorIDGT,omitempty"` - ConnectorIDGTE *string `json:"connectorIDGTE,omitempty"` - ConnectorIDLT *string `json:"connectorIDLT,omitempty"` - ConnectorIDLTE *string `json:"connectorIDLTE,omitempty"` - ConnectorIDContains *string `json:"connectorIDContains,omitempty"` - ConnectorIDHasPrefix *string `json:"connectorIDHasPrefix,omitempty"` - ConnectorIDHasSuffix *string `json:"connectorIDHasSuffix,omitempty"` - ConnectorIDEqualFold *string `json:"connectorIDEqualFold,omitempty"` - ConnectorIDContainsFold *string `json:"connectorIDContainsFold,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` - // "last_used" field predicates. - LastUsed *time.Time `json:"lastUsed,omitempty"` - LastUsedNEQ *time.Time `json:"lastUsedNEQ,omitempty"` - LastUsedIn []time.Time `json:"lastUsedIn,omitempty"` - LastUsedNotIn []time.Time `json:"lastUsedNotIn,omitempty"` - LastUsedGT *time.Time `json:"lastUsedGT,omitempty"` - LastUsedGTE *time.Time `json:"lastUsedGTE,omitempty"` - LastUsedLT *time.Time `json:"lastUsedLT,omitempty"` - LastUsedLTE *time.Time `json:"lastUsedLTE,omitempty"` + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` - // "integration" edge predicates. - HasIntegration *bool `json:"hasIntegration,omitempty"` - HasIntegrationWith []*IntegrationWhereInput `json:"hasIntegrationWith,omitempty"` + // "procedure_type" field predicates. + ProcedureType *string `json:"procedureType,omitempty"` + ProcedureTypeNEQ *string `json:"procedureTypeNEQ,omitempty"` + ProcedureTypeIn []string `json:"procedureTypeIn,omitempty"` + ProcedureTypeNotIn []string `json:"procedureTypeNotIn,omitempty"` + ProcedureTypeGT *string `json:"procedureTypeGT,omitempty"` + ProcedureTypeGTE *string `json:"procedureTypeGTE,omitempty"` + ProcedureTypeLT *string `json:"procedureTypeLT,omitempty"` + ProcedureTypeLTE *string `json:"procedureTypeLTE,omitempty"` + ProcedureTypeContains *string `json:"procedureTypeContains,omitempty"` + ProcedureTypeHasPrefix *string `json:"procedureTypeHasPrefix,omitempty"` + ProcedureTypeHasSuffix *string `json:"procedureTypeHasSuffix,omitempty"` + ProcedureTypeIsNil bool `json:"procedureTypeIsNil,omitempty"` + ProcedureTypeNotNil bool `json:"procedureTypeNotNil,omitempty"` + ProcedureTypeEqualFold *string `json:"procedureTypeEqualFold,omitempty"` + ProcedureTypeContainsFold *string `json:"procedureTypeContainsFold,omitempty"` - // "events" edge predicates. - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil bool `json:"versionIsNil,omitempty"` + VersionNotNil bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + + // "purpose_and_scope" field predicates. + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + PurposeAndScopeNEQ *string `json:"purposeAndScopeNEQ,omitempty"` + PurposeAndScopeIn []string `json:"purposeAndScopeIn,omitempty"` + PurposeAndScopeNotIn []string `json:"purposeAndScopeNotIn,omitempty"` + PurposeAndScopeGT *string `json:"purposeAndScopeGT,omitempty"` + PurposeAndScopeGTE *string `json:"purposeAndScopeGTE,omitempty"` + PurposeAndScopeLT *string `json:"purposeAndScopeLT,omitempty"` + PurposeAndScopeLTE *string `json:"purposeAndScopeLTE,omitempty"` + PurposeAndScopeContains *string `json:"purposeAndScopeContains,omitempty"` + PurposeAndScopeHasPrefix *string `json:"purposeAndScopeHasPrefix,omitempty"` + PurposeAndScopeHasSuffix *string `json:"purposeAndScopeHasSuffix,omitempty"` + PurposeAndScopeIsNil bool `json:"purposeAndScopeIsNil,omitempty"` + PurposeAndScopeNotNil bool `json:"purposeAndScopeNotNil,omitempty"` + PurposeAndScopeEqualFold *string `json:"purposeAndScopeEqualFold,omitempty"` + PurposeAndScopeContainsFold *string `json:"purposeAndScopeContainsFold,omitempty"` + + // "background" field predicates. + Background *string `json:"background,omitempty"` + BackgroundNEQ *string `json:"backgroundNEQ,omitempty"` + BackgroundIn []string `json:"backgroundIn,omitempty"` + BackgroundNotIn []string `json:"backgroundNotIn,omitempty"` + BackgroundGT *string `json:"backgroundGT,omitempty"` + BackgroundGTE *string `json:"backgroundGTE,omitempty"` + BackgroundLT *string `json:"backgroundLT,omitempty"` + BackgroundLTE *string `json:"backgroundLTE,omitempty"` + BackgroundContains *string `json:"backgroundContains,omitempty"` + BackgroundHasPrefix *string `json:"backgroundHasPrefix,omitempty"` + BackgroundHasSuffix *string `json:"backgroundHasSuffix,omitempty"` + BackgroundIsNil bool `json:"backgroundIsNil,omitempty"` + BackgroundNotNil bool `json:"backgroundNotNil,omitempty"` + BackgroundEqualFold *string `json:"backgroundEqualFold,omitempty"` + BackgroundContainsFold *string `json:"backgroundContainsFold,omitempty"` + + // "satisfies" field predicates. + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNEQ *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGT *string `json:"satisfiesGT,omitempty"` + SatisfiesGTE *string `json:"satisfiesGTE,omitempty"` + SatisfiesLT *string `json:"satisfiesLT,omitempty"` + SatisfiesLTE *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` + + // "control" edge predicates. + HasControl *bool `json:"hasControl,omitempty"` + HasControlWith []*ControlWhereInput `json:"hasControlWith,omitempty"` + + // "internalpolicy" edge predicates. + HasInternalpolicy *bool `json:"hasInternalpolicy,omitempty"` + HasInternalpolicyWith []*InternalPolicyWhereInput `json:"hasInternalpolicyWith,omitempty"` + + // "narratives" edge predicates. + HasNarratives *bool `json:"hasNarratives,omitempty"` + HasNarrativesWith []*NarrativeWhereInput `json:"hasNarrativesWith,omitempty"` + + // "risks" edge predicates. + HasRisks *bool `json:"hasRisks,omitempty"` + HasRisksWith []*RiskWhereInput `json:"hasRisksWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *OhAuthTooTokenWhereInput) AddPredicates(predicates ...predicate.OhAuthTooToken) { +func (i *ProcedureWhereInput) AddPredicates(predicates ...predicate.Procedure) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the OhAuthTooTokenWhereInput filter on the OhAuthTooTokenQuery builder. -func (i *OhAuthTooTokenWhereInput) Filter(q *OhAuthTooTokenQuery) (*OhAuthTooTokenQuery, error) { +// Filter applies the ProcedureWhereInput filter on the ProcedureQuery builder. +func (i *ProcedureWhereInput) Filter(q *ProcedureQuery) (*ProcedureQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyOhAuthTooTokenWhereInput { + if err == ErrEmptyProcedureWhereInput { return q, nil } return nil, err @@ -29098,19 +45678,19 @@ func (i *OhAuthTooTokenWhereInput) Filter(q *OhAuthTooTokenQuery) (*OhAuthTooTok return q.Where(p), nil } -// ErrEmptyOhAuthTooTokenWhereInput is returned in case the OhAuthTooTokenWhereInput is empty. -var ErrEmptyOhAuthTooTokenWhereInput = errors.New("generated: empty predicate OhAuthTooTokenWhereInput") +// ErrEmptyProcedureWhereInput is returned in case the ProcedureWhereInput is empty. +var ErrEmptyProcedureWhereInput = errors.New("generated: empty predicate ProcedureWhereInput") -// P returns a predicate for filtering ohauthtootokens. +// P returns a predicate for filtering procedures. // An error is returned if the input is empty or invalid. -func (i *OhAuthTooTokenWhereInput) P() (predicate.OhAuthTooToken, error) { - var predicates []predicate.OhAuthTooToken +func (i *ProcedureWhereInput) P() (predicate.Procedure, error) { + var predicates []predicate.Procedure if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, ohauthtootoken.Not(p)) + predicates = append(predicates, procedure.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -29120,7 +45700,7 @@ func (i *OhAuthTooTokenWhereInput) P() (predicate.OhAuthTooToken, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.OhAuthTooToken, 0, n) + or := make([]predicate.Procedure, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -29128,7 +45708,7 @@ func (i *OhAuthTooTokenWhereInput) P() (predicate.OhAuthTooToken, error) { } or = append(or, p) } - predicates = append(predicates, ohauthtootoken.Or(or...)) + predicates = append(predicates, procedure.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -29138,7 +45718,7 @@ func (i *OhAuthTooTokenWhereInput) P() (predicate.OhAuthTooToken, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.OhAuthTooToken, 0, n) + and := make([]predicate.Procedure, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -29146,395 +45726,707 @@ func (i *OhAuthTooTokenWhereInput) P() (predicate.OhAuthTooToken, error) { } and = append(and, p) } - predicates = append(predicates, ohauthtootoken.And(and...)) + predicates = append(predicates, procedure.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, ohauthtootoken.IDEQ(*i.ID)) + predicates = append(predicates, procedure.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, ohauthtootoken.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, procedure.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, ohauthtootoken.IDIn(i.IDIn...)) + predicates = append(predicates, procedure.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, ohauthtootoken.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, procedure.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, ohauthtootoken.IDGT(*i.IDGT)) + predicates = append(predicates, procedure.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, ohauthtootoken.IDGTE(*i.IDGTE)) + predicates = append(predicates, procedure.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, ohauthtootoken.IDLT(*i.IDLT)) + predicates = append(predicates, procedure.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, ohauthtootoken.IDLTE(*i.IDLTE)) + predicates = append(predicates, procedure.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, ohauthtootoken.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, procedure.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, ohauthtootoken.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, procedure.IDContainsFold(*i.IDContainsFold)) } - if i.ClientID != nil { - predicates = append(predicates, ohauthtootoken.ClientIDEQ(*i.ClientID)) + if i.CreatedAt != nil { + predicates = append(predicates, procedure.CreatedAtEQ(*i.CreatedAt)) } - if i.ClientIDNEQ != nil { - predicates = append(predicates, ohauthtootoken.ClientIDNEQ(*i.ClientIDNEQ)) + if i.CreatedAtNEQ != nil { + predicates = append(predicates, procedure.CreatedAtNEQ(*i.CreatedAtNEQ)) } - if len(i.ClientIDIn) > 0 { - predicates = append(predicates, ohauthtootoken.ClientIDIn(i.ClientIDIn...)) + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, procedure.CreatedAtIn(i.CreatedAtIn...)) } - if len(i.ClientIDNotIn) > 0 { - predicates = append(predicates, ohauthtootoken.ClientIDNotIn(i.ClientIDNotIn...)) + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, procedure.CreatedAtNotIn(i.CreatedAtNotIn...)) } - if i.ClientIDGT != nil { - predicates = append(predicates, ohauthtootoken.ClientIDGT(*i.ClientIDGT)) + if i.CreatedAtGT != nil { + predicates = append(predicates, procedure.CreatedAtGT(*i.CreatedAtGT)) } - if i.ClientIDGTE != nil { - predicates = append(predicates, ohauthtootoken.ClientIDGTE(*i.ClientIDGTE)) + if i.CreatedAtGTE != nil { + predicates = append(predicates, procedure.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, procedure.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, procedure.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, procedure.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, procedure.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, procedure.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, procedure.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + } + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, procedure.UpdatedAtIn(i.UpdatedAtIn...)) + } + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, procedure.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, procedure.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, procedure.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, procedure.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, procedure.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, procedure.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, procedure.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, procedure.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, procedure.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, procedure.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, procedure.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, procedure.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, procedure.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, procedure.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, procedure.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, procedure.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, procedure.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, procedure.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, procedure.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, procedure.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, procedure.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, procedure.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, procedure.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, procedure.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, procedure.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, procedure.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, procedure.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, procedure.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, procedure.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, procedure.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, procedure.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, procedure.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, procedure.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, procedure.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, procedure.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, procedure.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, procedure.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, procedure.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, procedure.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, procedure.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, procedure.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, procedure.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, procedure.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, procedure.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, procedure.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, procedure.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, procedure.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, procedure.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, procedure.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, procedure.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, procedure.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, procedure.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, procedure.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, procedure.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, procedure.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, procedure.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, procedure.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, procedure.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, procedure.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, procedure.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, procedure.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, procedure.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, procedure.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, procedure.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, procedure.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, procedure.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, procedure.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, procedure.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, procedure.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, procedure.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, procedure.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, procedure.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, procedure.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, procedure.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, procedure.NameContainsFold(*i.NameContainsFold)) + } + if i.Description != nil { + predicates = append(predicates, procedure.DescriptionEQ(*i.Description)) + } + if i.DescriptionNEQ != nil { + predicates = append(predicates, procedure.DescriptionNEQ(*i.DescriptionNEQ)) + } + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, procedure.DescriptionIn(i.DescriptionIn...)) + } + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, procedure.DescriptionNotIn(i.DescriptionNotIn...)) + } + if i.DescriptionGT != nil { + predicates = append(predicates, procedure.DescriptionGT(*i.DescriptionGT)) + } + if i.DescriptionGTE != nil { + predicates = append(predicates, procedure.DescriptionGTE(*i.DescriptionGTE)) + } + if i.DescriptionLT != nil { + predicates = append(predicates, procedure.DescriptionLT(*i.DescriptionLT)) + } + if i.DescriptionLTE != nil { + predicates = append(predicates, procedure.DescriptionLTE(*i.DescriptionLTE)) + } + if i.DescriptionContains != nil { + predicates = append(predicates, procedure.DescriptionContains(*i.DescriptionContains)) + } + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, procedure.DescriptionHasPrefix(*i.DescriptionHasPrefix)) + } + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, procedure.DescriptionHasSuffix(*i.DescriptionHasSuffix)) + } + if i.DescriptionIsNil { + predicates = append(predicates, procedure.DescriptionIsNil()) + } + if i.DescriptionNotNil { + predicates = append(predicates, procedure.DescriptionNotNil()) } - if i.ClientIDLT != nil { - predicates = append(predicates, ohauthtootoken.ClientIDLT(*i.ClientIDLT)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, procedure.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.ClientIDLTE != nil { - predicates = append(predicates, ohauthtootoken.ClientIDLTE(*i.ClientIDLTE)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, procedure.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.ClientIDContains != nil { - predicates = append(predicates, ohauthtootoken.ClientIDContains(*i.ClientIDContains)) + if i.Status != nil { + predicates = append(predicates, procedure.StatusEQ(*i.Status)) } - if i.ClientIDHasPrefix != nil { - predicates = append(predicates, ohauthtootoken.ClientIDHasPrefix(*i.ClientIDHasPrefix)) + if i.StatusNEQ != nil { + predicates = append(predicates, procedure.StatusNEQ(*i.StatusNEQ)) } - if i.ClientIDHasSuffix != nil { - predicates = append(predicates, ohauthtootoken.ClientIDHasSuffix(*i.ClientIDHasSuffix)) + if len(i.StatusIn) > 0 { + predicates = append(predicates, procedure.StatusIn(i.StatusIn...)) } - if i.ClientIDEqualFold != nil { - predicates = append(predicates, ohauthtootoken.ClientIDEqualFold(*i.ClientIDEqualFold)) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, procedure.StatusNotIn(i.StatusNotIn...)) } - if i.ClientIDContainsFold != nil { - predicates = append(predicates, ohauthtootoken.ClientIDContainsFold(*i.ClientIDContainsFold)) + if i.StatusGT != nil { + predicates = append(predicates, procedure.StatusGT(*i.StatusGT)) } - if i.Nonce != nil { - predicates = append(predicates, ohauthtootoken.NonceEQ(*i.Nonce)) + if i.StatusGTE != nil { + predicates = append(predicates, procedure.StatusGTE(*i.StatusGTE)) } - if i.NonceNEQ != nil { - predicates = append(predicates, ohauthtootoken.NonceNEQ(*i.NonceNEQ)) + if i.StatusLT != nil { + predicates = append(predicates, procedure.StatusLT(*i.StatusLT)) } - if len(i.NonceIn) > 0 { - predicates = append(predicates, ohauthtootoken.NonceIn(i.NonceIn...)) + if i.StatusLTE != nil { + predicates = append(predicates, procedure.StatusLTE(*i.StatusLTE)) } - if len(i.NonceNotIn) > 0 { - predicates = append(predicates, ohauthtootoken.NonceNotIn(i.NonceNotIn...)) + if i.StatusContains != nil { + predicates = append(predicates, procedure.StatusContains(*i.StatusContains)) } - if i.NonceGT != nil { - predicates = append(predicates, ohauthtootoken.NonceGT(*i.NonceGT)) + if i.StatusHasPrefix != nil { + predicates = append(predicates, procedure.StatusHasPrefix(*i.StatusHasPrefix)) } - if i.NonceGTE != nil { - predicates = append(predicates, ohauthtootoken.NonceGTE(*i.NonceGTE)) + if i.StatusHasSuffix != nil { + predicates = append(predicates, procedure.StatusHasSuffix(*i.StatusHasSuffix)) } - if i.NonceLT != nil { - predicates = append(predicates, ohauthtootoken.NonceLT(*i.NonceLT)) + if i.StatusIsNil { + predicates = append(predicates, procedure.StatusIsNil()) } - if i.NonceLTE != nil { - predicates = append(predicates, ohauthtootoken.NonceLTE(*i.NonceLTE)) + if i.StatusNotNil { + predicates = append(predicates, procedure.StatusNotNil()) } - if i.NonceContains != nil { - predicates = append(predicates, ohauthtootoken.NonceContains(*i.NonceContains)) + if i.StatusEqualFold != nil { + predicates = append(predicates, procedure.StatusEqualFold(*i.StatusEqualFold)) } - if i.NonceHasPrefix != nil { - predicates = append(predicates, ohauthtootoken.NonceHasPrefix(*i.NonceHasPrefix)) + if i.StatusContainsFold != nil { + predicates = append(predicates, procedure.StatusContainsFold(*i.StatusContainsFold)) } - if i.NonceHasSuffix != nil { - predicates = append(predicates, ohauthtootoken.NonceHasSuffix(*i.NonceHasSuffix)) + if i.ProcedureType != nil { + predicates = append(predicates, procedure.ProcedureTypeEQ(*i.ProcedureType)) } - if i.NonceEqualFold != nil { - predicates = append(predicates, ohauthtootoken.NonceEqualFold(*i.NonceEqualFold)) + if i.ProcedureTypeNEQ != nil { + predicates = append(predicates, procedure.ProcedureTypeNEQ(*i.ProcedureTypeNEQ)) } - if i.NonceContainsFold != nil { - predicates = append(predicates, ohauthtootoken.NonceContainsFold(*i.NonceContainsFold)) + if len(i.ProcedureTypeIn) > 0 { + predicates = append(predicates, procedure.ProcedureTypeIn(i.ProcedureTypeIn...)) } - if i.ClaimsUserID != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDEQ(*i.ClaimsUserID)) + if len(i.ProcedureTypeNotIn) > 0 { + predicates = append(predicates, procedure.ProcedureTypeNotIn(i.ProcedureTypeNotIn...)) } - if i.ClaimsUserIDNEQ != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDNEQ(*i.ClaimsUserIDNEQ)) + if i.ProcedureTypeGT != nil { + predicates = append(predicates, procedure.ProcedureTypeGT(*i.ProcedureTypeGT)) } - if len(i.ClaimsUserIDIn) > 0 { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDIn(i.ClaimsUserIDIn...)) + if i.ProcedureTypeGTE != nil { + predicates = append(predicates, procedure.ProcedureTypeGTE(*i.ProcedureTypeGTE)) } - if len(i.ClaimsUserIDNotIn) > 0 { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDNotIn(i.ClaimsUserIDNotIn...)) + if i.ProcedureTypeLT != nil { + predicates = append(predicates, procedure.ProcedureTypeLT(*i.ProcedureTypeLT)) } - if i.ClaimsUserIDGT != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDGT(*i.ClaimsUserIDGT)) + if i.ProcedureTypeLTE != nil { + predicates = append(predicates, procedure.ProcedureTypeLTE(*i.ProcedureTypeLTE)) } - if i.ClaimsUserIDGTE != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDGTE(*i.ClaimsUserIDGTE)) + if i.ProcedureTypeContains != nil { + predicates = append(predicates, procedure.ProcedureTypeContains(*i.ProcedureTypeContains)) } - if i.ClaimsUserIDLT != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDLT(*i.ClaimsUserIDLT)) + if i.ProcedureTypeHasPrefix != nil { + predicates = append(predicates, procedure.ProcedureTypeHasPrefix(*i.ProcedureTypeHasPrefix)) } - if i.ClaimsUserIDLTE != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDLTE(*i.ClaimsUserIDLTE)) + if i.ProcedureTypeHasSuffix != nil { + predicates = append(predicates, procedure.ProcedureTypeHasSuffix(*i.ProcedureTypeHasSuffix)) } - if i.ClaimsUserIDContains != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDContains(*i.ClaimsUserIDContains)) + if i.ProcedureTypeIsNil { + predicates = append(predicates, procedure.ProcedureTypeIsNil()) } - if i.ClaimsUserIDHasPrefix != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDHasPrefix(*i.ClaimsUserIDHasPrefix)) + if i.ProcedureTypeNotNil { + predicates = append(predicates, procedure.ProcedureTypeNotNil()) } - if i.ClaimsUserIDHasSuffix != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDHasSuffix(*i.ClaimsUserIDHasSuffix)) + if i.ProcedureTypeEqualFold != nil { + predicates = append(predicates, procedure.ProcedureTypeEqualFold(*i.ProcedureTypeEqualFold)) } - if i.ClaimsUserIDEqualFold != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDEqualFold(*i.ClaimsUserIDEqualFold)) + if i.ProcedureTypeContainsFold != nil { + predicates = append(predicates, procedure.ProcedureTypeContainsFold(*i.ProcedureTypeContainsFold)) } - if i.ClaimsUserIDContainsFold != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUserIDContainsFold(*i.ClaimsUserIDContainsFold)) + if i.Version != nil { + predicates = append(predicates, procedure.VersionEQ(*i.Version)) } - if i.ClaimsUsername != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameEQ(*i.ClaimsUsername)) + if i.VersionNEQ != nil { + predicates = append(predicates, procedure.VersionNEQ(*i.VersionNEQ)) } - if i.ClaimsUsernameNEQ != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameNEQ(*i.ClaimsUsernameNEQ)) + if len(i.VersionIn) > 0 { + predicates = append(predicates, procedure.VersionIn(i.VersionIn...)) } - if len(i.ClaimsUsernameIn) > 0 { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameIn(i.ClaimsUsernameIn...)) + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, procedure.VersionNotIn(i.VersionNotIn...)) } - if len(i.ClaimsUsernameNotIn) > 0 { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameNotIn(i.ClaimsUsernameNotIn...)) + if i.VersionGT != nil { + predicates = append(predicates, procedure.VersionGT(*i.VersionGT)) } - if i.ClaimsUsernameGT != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameGT(*i.ClaimsUsernameGT)) + if i.VersionGTE != nil { + predicates = append(predicates, procedure.VersionGTE(*i.VersionGTE)) } - if i.ClaimsUsernameGTE != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameGTE(*i.ClaimsUsernameGTE)) + if i.VersionLT != nil { + predicates = append(predicates, procedure.VersionLT(*i.VersionLT)) } - if i.ClaimsUsernameLT != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameLT(*i.ClaimsUsernameLT)) + if i.VersionLTE != nil { + predicates = append(predicates, procedure.VersionLTE(*i.VersionLTE)) } - if i.ClaimsUsernameLTE != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameLTE(*i.ClaimsUsernameLTE)) + if i.VersionContains != nil { + predicates = append(predicates, procedure.VersionContains(*i.VersionContains)) } - if i.ClaimsUsernameContains != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameContains(*i.ClaimsUsernameContains)) + if i.VersionHasPrefix != nil { + predicates = append(predicates, procedure.VersionHasPrefix(*i.VersionHasPrefix)) } - if i.ClaimsUsernameHasPrefix != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameHasPrefix(*i.ClaimsUsernameHasPrefix)) + if i.VersionHasSuffix != nil { + predicates = append(predicates, procedure.VersionHasSuffix(*i.VersionHasSuffix)) } - if i.ClaimsUsernameHasSuffix != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameHasSuffix(*i.ClaimsUsernameHasSuffix)) + if i.VersionIsNil { + predicates = append(predicates, procedure.VersionIsNil()) } - if i.ClaimsUsernameEqualFold != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameEqualFold(*i.ClaimsUsernameEqualFold)) + if i.VersionNotNil { + predicates = append(predicates, procedure.VersionNotNil()) } - if i.ClaimsUsernameContainsFold != nil { - predicates = append(predicates, ohauthtootoken.ClaimsUsernameContainsFold(*i.ClaimsUsernameContainsFold)) + if i.VersionEqualFold != nil { + predicates = append(predicates, procedure.VersionEqualFold(*i.VersionEqualFold)) } - if i.ClaimsEmail != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailEQ(*i.ClaimsEmail)) + if i.VersionContainsFold != nil { + predicates = append(predicates, procedure.VersionContainsFold(*i.VersionContainsFold)) } - if i.ClaimsEmailNEQ != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailNEQ(*i.ClaimsEmailNEQ)) + if i.PurposeAndScope != nil { + predicates = append(predicates, procedure.PurposeAndScopeEQ(*i.PurposeAndScope)) } - if len(i.ClaimsEmailIn) > 0 { - predicates = append(predicates, ohauthtootoken.ClaimsEmailIn(i.ClaimsEmailIn...)) + if i.PurposeAndScopeNEQ != nil { + predicates = append(predicates, procedure.PurposeAndScopeNEQ(*i.PurposeAndScopeNEQ)) } - if len(i.ClaimsEmailNotIn) > 0 { - predicates = append(predicates, ohauthtootoken.ClaimsEmailNotIn(i.ClaimsEmailNotIn...)) + if len(i.PurposeAndScopeIn) > 0 { + predicates = append(predicates, procedure.PurposeAndScopeIn(i.PurposeAndScopeIn...)) } - if i.ClaimsEmailGT != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailGT(*i.ClaimsEmailGT)) + if len(i.PurposeAndScopeNotIn) > 0 { + predicates = append(predicates, procedure.PurposeAndScopeNotIn(i.PurposeAndScopeNotIn...)) } - if i.ClaimsEmailGTE != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailGTE(*i.ClaimsEmailGTE)) + if i.PurposeAndScopeGT != nil { + predicates = append(predicates, procedure.PurposeAndScopeGT(*i.PurposeAndScopeGT)) } - if i.ClaimsEmailLT != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailLT(*i.ClaimsEmailLT)) + if i.PurposeAndScopeGTE != nil { + predicates = append(predicates, procedure.PurposeAndScopeGTE(*i.PurposeAndScopeGTE)) } - if i.ClaimsEmailLTE != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailLTE(*i.ClaimsEmailLTE)) + if i.PurposeAndScopeLT != nil { + predicates = append(predicates, procedure.PurposeAndScopeLT(*i.PurposeAndScopeLT)) } - if i.ClaimsEmailContains != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailContains(*i.ClaimsEmailContains)) + if i.PurposeAndScopeLTE != nil { + predicates = append(predicates, procedure.PurposeAndScopeLTE(*i.PurposeAndScopeLTE)) } - if i.ClaimsEmailHasPrefix != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailHasPrefix(*i.ClaimsEmailHasPrefix)) + if i.PurposeAndScopeContains != nil { + predicates = append(predicates, procedure.PurposeAndScopeContains(*i.PurposeAndScopeContains)) } - if i.ClaimsEmailHasSuffix != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailHasSuffix(*i.ClaimsEmailHasSuffix)) + if i.PurposeAndScopeHasPrefix != nil { + predicates = append(predicates, procedure.PurposeAndScopeHasPrefix(*i.PurposeAndScopeHasPrefix)) } - if i.ClaimsEmailEqualFold != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailEqualFold(*i.ClaimsEmailEqualFold)) + if i.PurposeAndScopeHasSuffix != nil { + predicates = append(predicates, procedure.PurposeAndScopeHasSuffix(*i.PurposeAndScopeHasSuffix)) } - if i.ClaimsEmailContainsFold != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailContainsFold(*i.ClaimsEmailContainsFold)) + if i.PurposeAndScopeIsNil { + predicates = append(predicates, procedure.PurposeAndScopeIsNil()) } - if i.ClaimsEmailVerified != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailVerifiedEQ(*i.ClaimsEmailVerified)) + if i.PurposeAndScopeNotNil { + predicates = append(predicates, procedure.PurposeAndScopeNotNil()) } - if i.ClaimsEmailVerifiedNEQ != nil { - predicates = append(predicates, ohauthtootoken.ClaimsEmailVerifiedNEQ(*i.ClaimsEmailVerifiedNEQ)) + if i.PurposeAndScopeEqualFold != nil { + predicates = append(predicates, procedure.PurposeAndScopeEqualFold(*i.PurposeAndScopeEqualFold)) } - if i.ClaimsPreferredUsername != nil { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameEQ(*i.ClaimsPreferredUsername)) + if i.PurposeAndScopeContainsFold != nil { + predicates = append(predicates, procedure.PurposeAndScopeContainsFold(*i.PurposeAndScopeContainsFold)) } - if i.ClaimsPreferredUsernameNEQ != nil { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameNEQ(*i.ClaimsPreferredUsernameNEQ)) + if i.Background != nil { + predicates = append(predicates, procedure.BackgroundEQ(*i.Background)) } - if len(i.ClaimsPreferredUsernameIn) > 0 { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameIn(i.ClaimsPreferredUsernameIn...)) + if i.BackgroundNEQ != nil { + predicates = append(predicates, procedure.BackgroundNEQ(*i.BackgroundNEQ)) } - if len(i.ClaimsPreferredUsernameNotIn) > 0 { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameNotIn(i.ClaimsPreferredUsernameNotIn...)) + if len(i.BackgroundIn) > 0 { + predicates = append(predicates, procedure.BackgroundIn(i.BackgroundIn...)) } - if i.ClaimsPreferredUsernameGT != nil { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameGT(*i.ClaimsPreferredUsernameGT)) + if len(i.BackgroundNotIn) > 0 { + predicates = append(predicates, procedure.BackgroundNotIn(i.BackgroundNotIn...)) } - if i.ClaimsPreferredUsernameGTE != nil { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameGTE(*i.ClaimsPreferredUsernameGTE)) + if i.BackgroundGT != nil { + predicates = append(predicates, procedure.BackgroundGT(*i.BackgroundGT)) } - if i.ClaimsPreferredUsernameLT != nil { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameLT(*i.ClaimsPreferredUsernameLT)) + if i.BackgroundGTE != nil { + predicates = append(predicates, procedure.BackgroundGTE(*i.BackgroundGTE)) } - if i.ClaimsPreferredUsernameLTE != nil { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameLTE(*i.ClaimsPreferredUsernameLTE)) + if i.BackgroundLT != nil { + predicates = append(predicates, procedure.BackgroundLT(*i.BackgroundLT)) } - if i.ClaimsPreferredUsernameContains != nil { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameContains(*i.ClaimsPreferredUsernameContains)) + if i.BackgroundLTE != nil { + predicates = append(predicates, procedure.BackgroundLTE(*i.BackgroundLTE)) } - if i.ClaimsPreferredUsernameHasPrefix != nil { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameHasPrefix(*i.ClaimsPreferredUsernameHasPrefix)) + if i.BackgroundContains != nil { + predicates = append(predicates, procedure.BackgroundContains(*i.BackgroundContains)) } - if i.ClaimsPreferredUsernameHasSuffix != nil { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameHasSuffix(*i.ClaimsPreferredUsernameHasSuffix)) + if i.BackgroundHasPrefix != nil { + predicates = append(predicates, procedure.BackgroundHasPrefix(*i.BackgroundHasPrefix)) } - if i.ClaimsPreferredUsernameEqualFold != nil { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameEqualFold(*i.ClaimsPreferredUsernameEqualFold)) + if i.BackgroundHasSuffix != nil { + predicates = append(predicates, procedure.BackgroundHasSuffix(*i.BackgroundHasSuffix)) } - if i.ClaimsPreferredUsernameContainsFold != nil { - predicates = append(predicates, ohauthtootoken.ClaimsPreferredUsernameContainsFold(*i.ClaimsPreferredUsernameContainsFold)) + if i.BackgroundIsNil { + predicates = append(predicates, procedure.BackgroundIsNil()) } - if i.ConnectorID != nil { - predicates = append(predicates, ohauthtootoken.ConnectorIDEQ(*i.ConnectorID)) + if i.BackgroundNotNil { + predicates = append(predicates, procedure.BackgroundNotNil()) } - if i.ConnectorIDNEQ != nil { - predicates = append(predicates, ohauthtootoken.ConnectorIDNEQ(*i.ConnectorIDNEQ)) + if i.BackgroundEqualFold != nil { + predicates = append(predicates, procedure.BackgroundEqualFold(*i.BackgroundEqualFold)) } - if len(i.ConnectorIDIn) > 0 { - predicates = append(predicates, ohauthtootoken.ConnectorIDIn(i.ConnectorIDIn...)) + if i.BackgroundContainsFold != nil { + predicates = append(predicates, procedure.BackgroundContainsFold(*i.BackgroundContainsFold)) } - if len(i.ConnectorIDNotIn) > 0 { - predicates = append(predicates, ohauthtootoken.ConnectorIDNotIn(i.ConnectorIDNotIn...)) + if i.Satisfies != nil { + predicates = append(predicates, procedure.SatisfiesEQ(*i.Satisfies)) } - if i.ConnectorIDGT != nil { - predicates = append(predicates, ohauthtootoken.ConnectorIDGT(*i.ConnectorIDGT)) + if i.SatisfiesNEQ != nil { + predicates = append(predicates, procedure.SatisfiesNEQ(*i.SatisfiesNEQ)) } - if i.ConnectorIDGTE != nil { - predicates = append(predicates, ohauthtootoken.ConnectorIDGTE(*i.ConnectorIDGTE)) + if len(i.SatisfiesIn) > 0 { + predicates = append(predicates, procedure.SatisfiesIn(i.SatisfiesIn...)) } - if i.ConnectorIDLT != nil { - predicates = append(predicates, ohauthtootoken.ConnectorIDLT(*i.ConnectorIDLT)) + if len(i.SatisfiesNotIn) > 0 { + predicates = append(predicates, procedure.SatisfiesNotIn(i.SatisfiesNotIn...)) } - if i.ConnectorIDLTE != nil { - predicates = append(predicates, ohauthtootoken.ConnectorIDLTE(*i.ConnectorIDLTE)) + if i.SatisfiesGT != nil { + predicates = append(predicates, procedure.SatisfiesGT(*i.SatisfiesGT)) } - if i.ConnectorIDContains != nil { - predicates = append(predicates, ohauthtootoken.ConnectorIDContains(*i.ConnectorIDContains)) + if i.SatisfiesGTE != nil { + predicates = append(predicates, procedure.SatisfiesGTE(*i.SatisfiesGTE)) } - if i.ConnectorIDHasPrefix != nil { - predicates = append(predicates, ohauthtootoken.ConnectorIDHasPrefix(*i.ConnectorIDHasPrefix)) + if i.SatisfiesLT != nil { + predicates = append(predicates, procedure.SatisfiesLT(*i.SatisfiesLT)) } - if i.ConnectorIDHasSuffix != nil { - predicates = append(predicates, ohauthtootoken.ConnectorIDHasSuffix(*i.ConnectorIDHasSuffix)) + if i.SatisfiesLTE != nil { + predicates = append(predicates, procedure.SatisfiesLTE(*i.SatisfiesLTE)) } - if i.ConnectorIDEqualFold != nil { - predicates = append(predicates, ohauthtootoken.ConnectorIDEqualFold(*i.ConnectorIDEqualFold)) + if i.SatisfiesContains != nil { + predicates = append(predicates, procedure.SatisfiesContains(*i.SatisfiesContains)) } - if i.ConnectorIDContainsFold != nil { - predicates = append(predicates, ohauthtootoken.ConnectorIDContainsFold(*i.ConnectorIDContainsFold)) + if i.SatisfiesHasPrefix != nil { + predicates = append(predicates, procedure.SatisfiesHasPrefix(*i.SatisfiesHasPrefix)) } - if i.LastUsed != nil { - predicates = append(predicates, ohauthtootoken.LastUsedEQ(*i.LastUsed)) + if i.SatisfiesHasSuffix != nil { + predicates = append(predicates, procedure.SatisfiesHasSuffix(*i.SatisfiesHasSuffix)) } - if i.LastUsedNEQ != nil { - predicates = append(predicates, ohauthtootoken.LastUsedNEQ(*i.LastUsedNEQ)) + if i.SatisfiesIsNil { + predicates = append(predicates, procedure.SatisfiesIsNil()) } - if len(i.LastUsedIn) > 0 { - predicates = append(predicates, ohauthtootoken.LastUsedIn(i.LastUsedIn...)) + if i.SatisfiesNotNil { + predicates = append(predicates, procedure.SatisfiesNotNil()) } - if len(i.LastUsedNotIn) > 0 { - predicates = append(predicates, ohauthtootoken.LastUsedNotIn(i.LastUsedNotIn...)) + if i.SatisfiesEqualFold != nil { + predicates = append(predicates, procedure.SatisfiesEqualFold(*i.SatisfiesEqualFold)) } - if i.LastUsedGT != nil { - predicates = append(predicates, ohauthtootoken.LastUsedGT(*i.LastUsedGT)) + if i.SatisfiesContainsFold != nil { + predicates = append(predicates, procedure.SatisfiesContainsFold(*i.SatisfiesContainsFold)) } - if i.LastUsedGTE != nil { - predicates = append(predicates, ohauthtootoken.LastUsedGTE(*i.LastUsedGTE)) + + if i.HasControl != nil { + p := procedure.HasControl() + if !*i.HasControl { + p = procedure.Not(p) + } + predicates = append(predicates, p) } - if i.LastUsedLT != nil { - predicates = append(predicates, ohauthtootoken.LastUsedLT(*i.LastUsedLT)) + if len(i.HasControlWith) > 0 { + with := make([]predicate.Control, 0, len(i.HasControlWith)) + for _, w := range i.HasControlWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasControlWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, procedure.HasControlWith(with...)) } - if i.LastUsedLTE != nil { - predicates = append(predicates, ohauthtootoken.LastUsedLTE(*i.LastUsedLTE)) + if i.HasInternalpolicy != nil { + p := procedure.HasInternalpolicy() + if !*i.HasInternalpolicy { + p = procedure.Not(p) + } + predicates = append(predicates, p) } - - if i.HasIntegration != nil { - p := ohauthtootoken.HasIntegration() - if !*i.HasIntegration { - p = ohauthtootoken.Not(p) + if len(i.HasInternalpolicyWith) > 0 { + with := make([]predicate.InternalPolicy, 0, len(i.HasInternalpolicyWith)) + for _, w := range i.HasInternalpolicyWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasInternalpolicyWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, procedure.HasInternalpolicyWith(with...)) + } + if i.HasNarratives != nil { + p := procedure.HasNarratives() + if !*i.HasNarratives { + p = procedure.Not(p) } predicates = append(predicates, p) } - if len(i.HasIntegrationWith) > 0 { - with := make([]predicate.Integration, 0, len(i.HasIntegrationWith)) - for _, w := range i.HasIntegrationWith { + if len(i.HasNarrativesWith) > 0 { + with := make([]predicate.Narrative, 0, len(i.HasNarrativesWith)) + for _, w := range i.HasNarrativesWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasIntegrationWith'", err) + return nil, fmt.Errorf("%w: field 'HasNarrativesWith'", err) } with = append(with, p) } - predicates = append(predicates, ohauthtootoken.HasIntegrationWith(with...)) + predicates = append(predicates, procedure.HasNarrativesWith(with...)) } - if i.HasEvents != nil { - p := ohauthtootoken.HasEvents() - if !*i.HasEvents { - p = ohauthtootoken.Not(p) + if i.HasRisks != nil { + p := procedure.HasRisks() + if !*i.HasRisks { + p = procedure.Not(p) } predicates = append(predicates, p) } - if len(i.HasEventsWith) > 0 { - with := make([]predicate.Event, 0, len(i.HasEventsWith)) - for _, w := range i.HasEventsWith { + if len(i.HasRisksWith) > 0 { + with := make([]predicate.Risk, 0, len(i.HasRisksWith)) + for _, w := range i.HasRisksWith { p, err := w.P() if err != nil { - return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) + return nil, fmt.Errorf("%w: field 'HasRisksWith'", err) } with = append(with, p) } - predicates = append(predicates, ohauthtootoken.HasEventsWith(with...)) + predicates = append(predicates, procedure.HasRisksWith(with...)) } switch len(predicates) { case 0: - return nil, ErrEmptyOhAuthTooTokenWhereInput + return nil, ErrEmptyProcedureWhereInput case 1: return predicates[0], nil default: - return ohauthtootoken.And(predicates...), nil + return procedure.And(predicates...), nil } } -// OrgMembershipWhereInput represents a where input for filtering OrgMembership queries. -type OrgMembershipWhereInput struct { - Predicates []predicate.OrgMembership `json:"-"` - Not *OrgMembershipWhereInput `json:"not,omitempty"` - Or []*OrgMembershipWhereInput `json:"or,omitempty"` - And []*OrgMembershipWhereInput `json:"and,omitempty"` +// ProcedureHistoryWhereInput represents a where input for filtering ProcedureHistory queries. +type ProcedureHistoryWhereInput struct { + Predicates []predicate.ProcedureHistory `json:"-"` + Not *ProcedureHistoryWhereInput `json:"not,omitempty"` + Or []*ProcedureHistoryWhereInput `json:"or,omitempty"` + And []*ProcedureHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -29548,6 +46440,39 @@ type OrgMembershipWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -29635,68 +46560,154 @@ type OrgMembershipWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "role" field predicates. - Role *enums.Role `json:"role,omitempty"` - RoleNEQ *enums.Role `json:"roleNEQ,omitempty"` - RoleIn []enums.Role `json:"roleIn,omitempty"` - RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "organization_id" field predicates. - OrganizationID *string `json:"organizationID,omitempty"` - OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` - OrganizationIDIn []string `json:"organizationIDIn,omitempty"` - OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` - OrganizationIDGT *string `json:"organizationIDGT,omitempty"` - OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` - OrganizationIDLT *string `json:"organizationIDLT,omitempty"` - OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` - OrganizationIDContains *string `json:"organizationIDContains,omitempty"` - OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` - OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` - OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` - OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` - // "user_id" field predicates. - UserID *string `json:"userID,omitempty"` - UserIDNEQ *string `json:"userIDNEQ,omitempty"` - UserIDIn []string `json:"userIDIn,omitempty"` - UserIDNotIn []string `json:"userIDNotIn,omitempty"` - UserIDGT *string `json:"userIDGT,omitempty"` - UserIDGTE *string `json:"userIDGTE,omitempty"` - UserIDLT *string `json:"userIDLT,omitempty"` - UserIDLTE *string `json:"userIDLTE,omitempty"` - UserIDContains *string `json:"userIDContains,omitempty"` - UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` - UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` - UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` - UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` - // "organization" edge predicates. - HasOrganization *bool `json:"hasOrganization,omitempty"` - HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` + // "procedure_type" field predicates. + ProcedureType *string `json:"procedureType,omitempty"` + ProcedureTypeNEQ *string `json:"procedureTypeNEQ,omitempty"` + ProcedureTypeIn []string `json:"procedureTypeIn,omitempty"` + ProcedureTypeNotIn []string `json:"procedureTypeNotIn,omitempty"` + ProcedureTypeGT *string `json:"procedureTypeGT,omitempty"` + ProcedureTypeGTE *string `json:"procedureTypeGTE,omitempty"` + ProcedureTypeLT *string `json:"procedureTypeLT,omitempty"` + ProcedureTypeLTE *string `json:"procedureTypeLTE,omitempty"` + ProcedureTypeContains *string `json:"procedureTypeContains,omitempty"` + ProcedureTypeHasPrefix *string `json:"procedureTypeHasPrefix,omitempty"` + ProcedureTypeHasSuffix *string `json:"procedureTypeHasSuffix,omitempty"` + ProcedureTypeIsNil bool `json:"procedureTypeIsNil,omitempty"` + ProcedureTypeNotNil bool `json:"procedureTypeNotNil,omitempty"` + ProcedureTypeEqualFold *string `json:"procedureTypeEqualFold,omitempty"` + ProcedureTypeContainsFold *string `json:"procedureTypeContainsFold,omitempty"` - // "user" edge predicates. - HasUser *bool `json:"hasUser,omitempty"` - HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil bool `json:"versionIsNil,omitempty"` + VersionNotNil bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` - // "events" edge predicates. - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // "purpose_and_scope" field predicates. + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + PurposeAndScopeNEQ *string `json:"purposeAndScopeNEQ,omitempty"` + PurposeAndScopeIn []string `json:"purposeAndScopeIn,omitempty"` + PurposeAndScopeNotIn []string `json:"purposeAndScopeNotIn,omitempty"` + PurposeAndScopeGT *string `json:"purposeAndScopeGT,omitempty"` + PurposeAndScopeGTE *string `json:"purposeAndScopeGTE,omitempty"` + PurposeAndScopeLT *string `json:"purposeAndScopeLT,omitempty"` + PurposeAndScopeLTE *string `json:"purposeAndScopeLTE,omitempty"` + PurposeAndScopeContains *string `json:"purposeAndScopeContains,omitempty"` + PurposeAndScopeHasPrefix *string `json:"purposeAndScopeHasPrefix,omitempty"` + PurposeAndScopeHasSuffix *string `json:"purposeAndScopeHasSuffix,omitempty"` + PurposeAndScopeIsNil bool `json:"purposeAndScopeIsNil,omitempty"` + PurposeAndScopeNotNil bool `json:"purposeAndScopeNotNil,omitempty"` + PurposeAndScopeEqualFold *string `json:"purposeAndScopeEqualFold,omitempty"` + PurposeAndScopeContainsFold *string `json:"purposeAndScopeContainsFold,omitempty"` + + // "background" field predicates. + Background *string `json:"background,omitempty"` + BackgroundNEQ *string `json:"backgroundNEQ,omitempty"` + BackgroundIn []string `json:"backgroundIn,omitempty"` + BackgroundNotIn []string `json:"backgroundNotIn,omitempty"` + BackgroundGT *string `json:"backgroundGT,omitempty"` + BackgroundGTE *string `json:"backgroundGTE,omitempty"` + BackgroundLT *string `json:"backgroundLT,omitempty"` + BackgroundLTE *string `json:"backgroundLTE,omitempty"` + BackgroundContains *string `json:"backgroundContains,omitempty"` + BackgroundHasPrefix *string `json:"backgroundHasPrefix,omitempty"` + BackgroundHasSuffix *string `json:"backgroundHasSuffix,omitempty"` + BackgroundIsNil bool `json:"backgroundIsNil,omitempty"` + BackgroundNotNil bool `json:"backgroundNotNil,omitempty"` + BackgroundEqualFold *string `json:"backgroundEqualFold,omitempty"` + BackgroundContainsFold *string `json:"backgroundContainsFold,omitempty"` + + // "satisfies" field predicates. + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNEQ *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGT *string `json:"satisfiesGT,omitempty"` + SatisfiesGTE *string `json:"satisfiesGTE,omitempty"` + SatisfiesLT *string `json:"satisfiesLT,omitempty"` + SatisfiesLTE *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *OrgMembershipWhereInput) AddPredicates(predicates ...predicate.OrgMembership) { +func (i *ProcedureHistoryWhereInput) AddPredicates(predicates ...predicate.ProcedureHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the OrgMembershipWhereInput filter on the OrgMembershipQuery builder. -func (i *OrgMembershipWhereInput) Filter(q *OrgMembershipQuery) (*OrgMembershipQuery, error) { +// Filter applies the ProcedureHistoryWhereInput filter on the ProcedureHistoryQuery builder. +func (i *ProcedureHistoryWhereInput) Filter(q *ProcedureHistoryQuery) (*ProcedureHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyOrgMembershipWhereInput { + if err == ErrEmptyProcedureHistoryWhereInput { return q, nil } return nil, err @@ -29704,19 +46715,19 @@ func (i *OrgMembershipWhereInput) Filter(q *OrgMembershipQuery) (*OrgMembershipQ return q.Where(p), nil } -// ErrEmptyOrgMembershipWhereInput is returned in case the OrgMembershipWhereInput is empty. -var ErrEmptyOrgMembershipWhereInput = errors.New("generated: empty predicate OrgMembershipWhereInput") +// ErrEmptyProcedureHistoryWhereInput is returned in case the ProcedureHistoryWhereInput is empty. +var ErrEmptyProcedureHistoryWhereInput = errors.New("generated: empty predicate ProcedureHistoryWhereInput") -// P returns a predicate for filtering orgmemberships. +// P returns a predicate for filtering procedurehistories. // An error is returned if the input is empty or invalid. -func (i *OrgMembershipWhereInput) P() (predicate.OrgMembership, error) { - var predicates []predicate.OrgMembership +func (i *ProcedureHistoryWhereInput) P() (predicate.ProcedureHistory, error) { + var predicates []predicate.ProcedureHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, orgmembership.Not(p)) + predicates = append(predicates, procedurehistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -29726,7 +46737,7 @@ func (i *OrgMembershipWhereInput) P() (predicate.OrgMembership, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.OrgMembership, 0, n) + or := make([]predicate.ProcedureHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -29734,7 +46745,7 @@ func (i *OrgMembershipWhereInput) P() (predicate.OrgMembership, error) { } or = append(or, p) } - predicates = append(predicates, orgmembership.Or(or...)) + predicates = append(predicates, procedurehistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -29744,7 +46755,7 @@ func (i *OrgMembershipWhereInput) P() (predicate.OrgMembership, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.OrgMembership, 0, n) + and := make([]predicate.ProcedureHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -29752,425 +46763,716 @@ func (i *OrgMembershipWhereInput) P() (predicate.OrgMembership, error) { } and = append(and, p) } - predicates = append(predicates, orgmembership.And(and...)) + predicates = append(predicates, procedurehistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, orgmembership.IDEQ(*i.ID)) + predicates = append(predicates, procedurehistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, orgmembership.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, procedurehistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, orgmembership.IDIn(i.IDIn...)) + predicates = append(predicates, procedurehistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, orgmembership.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, procedurehistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, orgmembership.IDGT(*i.IDGT)) + predicates = append(predicates, procedurehistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, orgmembership.IDGTE(*i.IDGTE)) + predicates = append(predicates, procedurehistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, orgmembership.IDLT(*i.IDLT)) + predicates = append(predicates, procedurehistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, orgmembership.IDLTE(*i.IDLTE)) + predicates = append(predicates, procedurehistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, orgmembership.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, procedurehistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, orgmembership.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, procedurehistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, procedurehistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, procedurehistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, procedurehistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, procedurehistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, procedurehistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, procedurehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, procedurehistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, procedurehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, procedurehistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, procedurehistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, procedurehistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, procedurehistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, procedurehistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, procedurehistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, procedurehistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, procedurehistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, procedurehistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, procedurehistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, procedurehistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, procedurehistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, procedurehistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, procedurehistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, procedurehistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, procedurehistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, procedurehistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, procedurehistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, procedurehistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, orgmembership.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, procedurehistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, orgmembership.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, procedurehistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, orgmembership.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, procedurehistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, orgmembership.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, procedurehistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, orgmembership.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, procedurehistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, orgmembership.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, procedurehistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, orgmembership.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, procedurehistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, orgmembership.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, procedurehistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, orgmembership.CreatedAtIsNil()) + predicates = append(predicates, procedurehistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, orgmembership.CreatedAtNotNil()) + predicates = append(predicates, procedurehistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, orgmembership.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, procedurehistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, orgmembership.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, procedurehistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, orgmembership.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, procedurehistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, orgmembership.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, procedurehistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, orgmembership.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, procedurehistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, orgmembership.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, procedurehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, orgmembership.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, procedurehistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, orgmembership.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, procedurehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, orgmembership.UpdatedAtIsNil()) + predicates = append(predicates, procedurehistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, orgmembership.UpdatedAtNotNil()) + predicates = append(predicates, procedurehistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, orgmembership.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, procedurehistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, orgmembership.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, procedurehistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, orgmembership.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, procedurehistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, orgmembership.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, procedurehistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, orgmembership.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, procedurehistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, orgmembership.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, procedurehistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, orgmembership.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, procedurehistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, orgmembership.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, procedurehistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, orgmembership.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, procedurehistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, orgmembership.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, procedurehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, orgmembership.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, procedurehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, orgmembership.CreatedByIsNil()) + predicates = append(predicates, procedurehistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, orgmembership.CreatedByNotNil()) + predicates = append(predicates, procedurehistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, orgmembership.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, procedurehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, orgmembership.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, procedurehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, orgmembership.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, procedurehistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, orgmembership.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, procedurehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, orgmembership.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, procedurehistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, orgmembership.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, procedurehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, orgmembership.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, procedurehistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, orgmembership.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, procedurehistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, orgmembership.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, procedurehistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, orgmembership.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, procedurehistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, orgmembership.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, procedurehistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, orgmembership.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, procedurehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, orgmembership.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, procedurehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, orgmembership.UpdatedByIsNil()) + predicates = append(predicates, procedurehistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, orgmembership.UpdatedByNotNil()) + predicates = append(predicates, procedurehistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, orgmembership.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, procedurehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, orgmembership.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, procedurehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, orgmembership.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, procedurehistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, orgmembership.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, procedurehistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, orgmembership.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, procedurehistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, orgmembership.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, procedurehistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, orgmembership.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, procedurehistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, orgmembership.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, procedurehistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, orgmembership.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, procedurehistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, orgmembership.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, procedurehistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, orgmembership.DeletedAtIsNil()) + predicates = append(predicates, procedurehistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, orgmembership.DeletedAtNotNil()) + predicates = append(predicates, procedurehistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, orgmembership.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, procedurehistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, orgmembership.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, procedurehistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, orgmembership.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, procedurehistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, orgmembership.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, procedurehistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, orgmembership.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, procedurehistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, orgmembership.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, procedurehistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, orgmembership.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, procedurehistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, orgmembership.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, procedurehistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, orgmembership.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, procedurehistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, orgmembership.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, procedurehistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, orgmembership.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, procedurehistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, orgmembership.DeletedByIsNil()) + predicates = append(predicates, procedurehistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, orgmembership.DeletedByNotNil()) + predicates = append(predicates, procedurehistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, orgmembership.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, procedurehistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, orgmembership.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, procedurehistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.Role != nil { - predicates = append(predicates, orgmembership.RoleEQ(*i.Role)) + if i.Name != nil { + predicates = append(predicates, procedurehistory.NameEQ(*i.Name)) } - if i.RoleNEQ != nil { - predicates = append(predicates, orgmembership.RoleNEQ(*i.RoleNEQ)) + if i.NameNEQ != nil { + predicates = append(predicates, procedurehistory.NameNEQ(*i.NameNEQ)) } - if len(i.RoleIn) > 0 { - predicates = append(predicates, orgmembership.RoleIn(i.RoleIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, procedurehistory.NameIn(i.NameIn...)) } - if len(i.RoleNotIn) > 0 { - predicates = append(predicates, orgmembership.RoleNotIn(i.RoleNotIn...)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, procedurehistory.NameNotIn(i.NameNotIn...)) } - if i.OrganizationID != nil { - predicates = append(predicates, orgmembership.OrganizationIDEQ(*i.OrganizationID)) + if i.NameGT != nil { + predicates = append(predicates, procedurehistory.NameGT(*i.NameGT)) } - if i.OrganizationIDNEQ != nil { - predicates = append(predicates, orgmembership.OrganizationIDNEQ(*i.OrganizationIDNEQ)) + if i.NameGTE != nil { + predicates = append(predicates, procedurehistory.NameGTE(*i.NameGTE)) } - if len(i.OrganizationIDIn) > 0 { - predicates = append(predicates, orgmembership.OrganizationIDIn(i.OrganizationIDIn...)) + if i.NameLT != nil { + predicates = append(predicates, procedurehistory.NameLT(*i.NameLT)) } - if len(i.OrganizationIDNotIn) > 0 { - predicates = append(predicates, orgmembership.OrganizationIDNotIn(i.OrganizationIDNotIn...)) + if i.NameLTE != nil { + predicates = append(predicates, procedurehistory.NameLTE(*i.NameLTE)) } - if i.OrganizationIDGT != nil { - predicates = append(predicates, orgmembership.OrganizationIDGT(*i.OrganizationIDGT)) + if i.NameContains != nil { + predicates = append(predicates, procedurehistory.NameContains(*i.NameContains)) } - if i.OrganizationIDGTE != nil { - predicates = append(predicates, orgmembership.OrganizationIDGTE(*i.OrganizationIDGTE)) + if i.NameHasPrefix != nil { + predicates = append(predicates, procedurehistory.NameHasPrefix(*i.NameHasPrefix)) } - if i.OrganizationIDLT != nil { - predicates = append(predicates, orgmembership.OrganizationIDLT(*i.OrganizationIDLT)) + if i.NameHasSuffix != nil { + predicates = append(predicates, procedurehistory.NameHasSuffix(*i.NameHasSuffix)) } - if i.OrganizationIDLTE != nil { - predicates = append(predicates, orgmembership.OrganizationIDLTE(*i.OrganizationIDLTE)) + if i.NameEqualFold != nil { + predicates = append(predicates, procedurehistory.NameEqualFold(*i.NameEqualFold)) } - if i.OrganizationIDContains != nil { - predicates = append(predicates, orgmembership.OrganizationIDContains(*i.OrganizationIDContains)) + if i.NameContainsFold != nil { + predicates = append(predicates, procedurehistory.NameContainsFold(*i.NameContainsFold)) } - if i.OrganizationIDHasPrefix != nil { - predicates = append(predicates, orgmembership.OrganizationIDHasPrefix(*i.OrganizationIDHasPrefix)) + if i.Description != nil { + predicates = append(predicates, procedurehistory.DescriptionEQ(*i.Description)) } - if i.OrganizationIDHasSuffix != nil { - predicates = append(predicates, orgmembership.OrganizationIDHasSuffix(*i.OrganizationIDHasSuffix)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, procedurehistory.DescriptionNEQ(*i.DescriptionNEQ)) } - if i.OrganizationIDEqualFold != nil { - predicates = append(predicates, orgmembership.OrganizationIDEqualFold(*i.OrganizationIDEqualFold)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, procedurehistory.DescriptionIn(i.DescriptionIn...)) } - if i.OrganizationIDContainsFold != nil { - predicates = append(predicates, orgmembership.OrganizationIDContainsFold(*i.OrganizationIDContainsFold)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, procedurehistory.DescriptionNotIn(i.DescriptionNotIn...)) } - if i.UserID != nil { - predicates = append(predicates, orgmembership.UserIDEQ(*i.UserID)) + if i.DescriptionGT != nil { + predicates = append(predicates, procedurehistory.DescriptionGT(*i.DescriptionGT)) } - if i.UserIDNEQ != nil { - predicates = append(predicates, orgmembership.UserIDNEQ(*i.UserIDNEQ)) + if i.DescriptionGTE != nil { + predicates = append(predicates, procedurehistory.DescriptionGTE(*i.DescriptionGTE)) } - if len(i.UserIDIn) > 0 { - predicates = append(predicates, orgmembership.UserIDIn(i.UserIDIn...)) + if i.DescriptionLT != nil { + predicates = append(predicates, procedurehistory.DescriptionLT(*i.DescriptionLT)) } - if len(i.UserIDNotIn) > 0 { - predicates = append(predicates, orgmembership.UserIDNotIn(i.UserIDNotIn...)) + if i.DescriptionLTE != nil { + predicates = append(predicates, procedurehistory.DescriptionLTE(*i.DescriptionLTE)) } - if i.UserIDGT != nil { - predicates = append(predicates, orgmembership.UserIDGT(*i.UserIDGT)) + if i.DescriptionContains != nil { + predicates = append(predicates, procedurehistory.DescriptionContains(*i.DescriptionContains)) } - if i.UserIDGTE != nil { - predicates = append(predicates, orgmembership.UserIDGTE(*i.UserIDGTE)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, procedurehistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.UserIDLT != nil { - predicates = append(predicates, orgmembership.UserIDLT(*i.UserIDLT)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, procedurehistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.UserIDLTE != nil { - predicates = append(predicates, orgmembership.UserIDLTE(*i.UserIDLTE)) + if i.DescriptionIsNil { + predicates = append(predicates, procedurehistory.DescriptionIsNil()) } - if i.UserIDContains != nil { - predicates = append(predicates, orgmembership.UserIDContains(*i.UserIDContains)) + if i.DescriptionNotNil { + predicates = append(predicates, procedurehistory.DescriptionNotNil()) } - if i.UserIDHasPrefix != nil { - predicates = append(predicates, orgmembership.UserIDHasPrefix(*i.UserIDHasPrefix)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, procedurehistory.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.UserIDHasSuffix != nil { - predicates = append(predicates, orgmembership.UserIDHasSuffix(*i.UserIDHasSuffix)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, procedurehistory.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.UserIDEqualFold != nil { - predicates = append(predicates, orgmembership.UserIDEqualFold(*i.UserIDEqualFold)) + if i.Status != nil { + predicates = append(predicates, procedurehistory.StatusEQ(*i.Status)) } - if i.UserIDContainsFold != nil { - predicates = append(predicates, orgmembership.UserIDContainsFold(*i.UserIDContainsFold)) + if i.StatusNEQ != nil { + predicates = append(predicates, procedurehistory.StatusNEQ(*i.StatusNEQ)) } - - if i.HasOrganization != nil { - p := orgmembership.HasOrganization() - if !*i.HasOrganization { - p = orgmembership.Not(p) - } - predicates = append(predicates, p) + if len(i.StatusIn) > 0 { + predicates = append(predicates, procedurehistory.StatusIn(i.StatusIn...)) } - if len(i.HasOrganizationWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOrganizationWith)) - for _, w := range i.HasOrganizationWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasOrganizationWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, orgmembership.HasOrganizationWith(with...)) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, procedurehistory.StatusNotIn(i.StatusNotIn...)) } - if i.HasUser != nil { - p := orgmembership.HasUser() - if !*i.HasUser { - p = orgmembership.Not(p) - } - predicates = append(predicates, p) + if i.StatusGT != nil { + predicates = append(predicates, procedurehistory.StatusGT(*i.StatusGT)) } - if len(i.HasUserWith) > 0 { - with := make([]predicate.User, 0, len(i.HasUserWith)) - 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, orgmembership.HasUserWith(with...)) + if i.StatusGTE != nil { + predicates = append(predicates, procedurehistory.StatusGTE(*i.StatusGTE)) } - if i.HasEvents != nil { - p := orgmembership.HasEvents() - if !*i.HasEvents { - p = orgmembership.Not(p) - } - predicates = append(predicates, p) + if i.StatusLT != nil { + predicates = append(predicates, procedurehistory.StatusLT(*i.StatusLT)) } - if len(i.HasEventsWith) > 0 { - with := make([]predicate.Event, 0, len(i.HasEventsWith)) - for _, w := range i.HasEventsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, orgmembership.HasEventsWith(with...)) + if i.StatusLTE != nil { + predicates = append(predicates, procedurehistory.StatusLTE(*i.StatusLTE)) + } + if i.StatusContains != nil { + predicates = append(predicates, procedurehistory.StatusContains(*i.StatusContains)) + } + if i.StatusHasPrefix != nil { + predicates = append(predicates, procedurehistory.StatusHasPrefix(*i.StatusHasPrefix)) + } + if i.StatusHasSuffix != nil { + predicates = append(predicates, procedurehistory.StatusHasSuffix(*i.StatusHasSuffix)) + } + if i.StatusIsNil { + predicates = append(predicates, procedurehistory.StatusIsNil()) + } + if i.StatusNotNil { + predicates = append(predicates, procedurehistory.StatusNotNil()) + } + if i.StatusEqualFold != nil { + predicates = append(predicates, procedurehistory.StatusEqualFold(*i.StatusEqualFold)) + } + if i.StatusContainsFold != nil { + predicates = append(predicates, procedurehistory.StatusContainsFold(*i.StatusContainsFold)) + } + if i.ProcedureType != nil { + predicates = append(predicates, procedurehistory.ProcedureTypeEQ(*i.ProcedureType)) + } + if i.ProcedureTypeNEQ != nil { + predicates = append(predicates, procedurehistory.ProcedureTypeNEQ(*i.ProcedureTypeNEQ)) + } + if len(i.ProcedureTypeIn) > 0 { + predicates = append(predicates, procedurehistory.ProcedureTypeIn(i.ProcedureTypeIn...)) + } + if len(i.ProcedureTypeNotIn) > 0 { + predicates = append(predicates, procedurehistory.ProcedureTypeNotIn(i.ProcedureTypeNotIn...)) + } + if i.ProcedureTypeGT != nil { + predicates = append(predicates, procedurehistory.ProcedureTypeGT(*i.ProcedureTypeGT)) + } + if i.ProcedureTypeGTE != nil { + predicates = append(predicates, procedurehistory.ProcedureTypeGTE(*i.ProcedureTypeGTE)) + } + if i.ProcedureTypeLT != nil { + predicates = append(predicates, procedurehistory.ProcedureTypeLT(*i.ProcedureTypeLT)) + } + if i.ProcedureTypeLTE != nil { + predicates = append(predicates, procedurehistory.ProcedureTypeLTE(*i.ProcedureTypeLTE)) + } + if i.ProcedureTypeContains != nil { + predicates = append(predicates, procedurehistory.ProcedureTypeContains(*i.ProcedureTypeContains)) + } + if i.ProcedureTypeHasPrefix != nil { + predicates = append(predicates, procedurehistory.ProcedureTypeHasPrefix(*i.ProcedureTypeHasPrefix)) + } + if i.ProcedureTypeHasSuffix != nil { + predicates = append(predicates, procedurehistory.ProcedureTypeHasSuffix(*i.ProcedureTypeHasSuffix)) + } + if i.ProcedureTypeIsNil { + predicates = append(predicates, procedurehistory.ProcedureTypeIsNil()) + } + if i.ProcedureTypeNotNil { + predicates = append(predicates, procedurehistory.ProcedureTypeNotNil()) + } + if i.ProcedureTypeEqualFold != nil { + predicates = append(predicates, procedurehistory.ProcedureTypeEqualFold(*i.ProcedureTypeEqualFold)) + } + if i.ProcedureTypeContainsFold != nil { + predicates = append(predicates, procedurehistory.ProcedureTypeContainsFold(*i.ProcedureTypeContainsFold)) + } + if i.Version != nil { + predicates = append(predicates, procedurehistory.VersionEQ(*i.Version)) + } + if i.VersionNEQ != nil { + predicates = append(predicates, procedurehistory.VersionNEQ(*i.VersionNEQ)) + } + if len(i.VersionIn) > 0 { + predicates = append(predicates, procedurehistory.VersionIn(i.VersionIn...)) + } + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, procedurehistory.VersionNotIn(i.VersionNotIn...)) + } + if i.VersionGT != nil { + predicates = append(predicates, procedurehistory.VersionGT(*i.VersionGT)) + } + if i.VersionGTE != nil { + predicates = append(predicates, procedurehistory.VersionGTE(*i.VersionGTE)) + } + if i.VersionLT != nil { + predicates = append(predicates, procedurehistory.VersionLT(*i.VersionLT)) + } + if i.VersionLTE != nil { + predicates = append(predicates, procedurehistory.VersionLTE(*i.VersionLTE)) + } + if i.VersionContains != nil { + predicates = append(predicates, procedurehistory.VersionContains(*i.VersionContains)) + } + if i.VersionHasPrefix != nil { + predicates = append(predicates, procedurehistory.VersionHasPrefix(*i.VersionHasPrefix)) + } + if i.VersionHasSuffix != nil { + predicates = append(predicates, procedurehistory.VersionHasSuffix(*i.VersionHasSuffix)) + } + if i.VersionIsNil { + predicates = append(predicates, procedurehistory.VersionIsNil()) + } + if i.VersionNotNil { + predicates = append(predicates, procedurehistory.VersionNotNil()) + } + if i.VersionEqualFold != nil { + predicates = append(predicates, procedurehistory.VersionEqualFold(*i.VersionEqualFold)) + } + if i.VersionContainsFold != nil { + predicates = append(predicates, procedurehistory.VersionContainsFold(*i.VersionContainsFold)) + } + if i.PurposeAndScope != nil { + predicates = append(predicates, procedurehistory.PurposeAndScopeEQ(*i.PurposeAndScope)) + } + if i.PurposeAndScopeNEQ != nil { + predicates = append(predicates, procedurehistory.PurposeAndScopeNEQ(*i.PurposeAndScopeNEQ)) + } + if len(i.PurposeAndScopeIn) > 0 { + predicates = append(predicates, procedurehistory.PurposeAndScopeIn(i.PurposeAndScopeIn...)) + } + if len(i.PurposeAndScopeNotIn) > 0 { + predicates = append(predicates, procedurehistory.PurposeAndScopeNotIn(i.PurposeAndScopeNotIn...)) + } + if i.PurposeAndScopeGT != nil { + predicates = append(predicates, procedurehistory.PurposeAndScopeGT(*i.PurposeAndScopeGT)) + } + if i.PurposeAndScopeGTE != nil { + predicates = append(predicates, procedurehistory.PurposeAndScopeGTE(*i.PurposeAndScopeGTE)) + } + if i.PurposeAndScopeLT != nil { + predicates = append(predicates, procedurehistory.PurposeAndScopeLT(*i.PurposeAndScopeLT)) + } + if i.PurposeAndScopeLTE != nil { + predicates = append(predicates, procedurehistory.PurposeAndScopeLTE(*i.PurposeAndScopeLTE)) + } + if i.PurposeAndScopeContains != nil { + predicates = append(predicates, procedurehistory.PurposeAndScopeContains(*i.PurposeAndScopeContains)) + } + if i.PurposeAndScopeHasPrefix != nil { + predicates = append(predicates, procedurehistory.PurposeAndScopeHasPrefix(*i.PurposeAndScopeHasPrefix)) + } + if i.PurposeAndScopeHasSuffix != nil { + predicates = append(predicates, procedurehistory.PurposeAndScopeHasSuffix(*i.PurposeAndScopeHasSuffix)) + } + if i.PurposeAndScopeIsNil { + predicates = append(predicates, procedurehistory.PurposeAndScopeIsNil()) + } + if i.PurposeAndScopeNotNil { + predicates = append(predicates, procedurehistory.PurposeAndScopeNotNil()) + } + if i.PurposeAndScopeEqualFold != nil { + predicates = append(predicates, procedurehistory.PurposeAndScopeEqualFold(*i.PurposeAndScopeEqualFold)) + } + if i.PurposeAndScopeContainsFold != nil { + predicates = append(predicates, procedurehistory.PurposeAndScopeContainsFold(*i.PurposeAndScopeContainsFold)) } + if i.Background != nil { + predicates = append(predicates, procedurehistory.BackgroundEQ(*i.Background)) + } + if i.BackgroundNEQ != nil { + predicates = append(predicates, procedurehistory.BackgroundNEQ(*i.BackgroundNEQ)) + } + if len(i.BackgroundIn) > 0 { + predicates = append(predicates, procedurehistory.BackgroundIn(i.BackgroundIn...)) + } + if len(i.BackgroundNotIn) > 0 { + predicates = append(predicates, procedurehistory.BackgroundNotIn(i.BackgroundNotIn...)) + } + if i.BackgroundGT != nil { + predicates = append(predicates, procedurehistory.BackgroundGT(*i.BackgroundGT)) + } + if i.BackgroundGTE != nil { + predicates = append(predicates, procedurehistory.BackgroundGTE(*i.BackgroundGTE)) + } + if i.BackgroundLT != nil { + predicates = append(predicates, procedurehistory.BackgroundLT(*i.BackgroundLT)) + } + if i.BackgroundLTE != nil { + predicates = append(predicates, procedurehistory.BackgroundLTE(*i.BackgroundLTE)) + } + if i.BackgroundContains != nil { + predicates = append(predicates, procedurehistory.BackgroundContains(*i.BackgroundContains)) + } + if i.BackgroundHasPrefix != nil { + predicates = append(predicates, procedurehistory.BackgroundHasPrefix(*i.BackgroundHasPrefix)) + } + if i.BackgroundHasSuffix != nil { + predicates = append(predicates, procedurehistory.BackgroundHasSuffix(*i.BackgroundHasSuffix)) + } + if i.BackgroundIsNil { + predicates = append(predicates, procedurehistory.BackgroundIsNil()) + } + if i.BackgroundNotNil { + predicates = append(predicates, procedurehistory.BackgroundNotNil()) + } + if i.BackgroundEqualFold != nil { + predicates = append(predicates, procedurehistory.BackgroundEqualFold(*i.BackgroundEqualFold)) + } + if i.BackgroundContainsFold != nil { + predicates = append(predicates, procedurehistory.BackgroundContainsFold(*i.BackgroundContainsFold)) + } + if i.Satisfies != nil { + predicates = append(predicates, procedurehistory.SatisfiesEQ(*i.Satisfies)) + } + if i.SatisfiesNEQ != nil { + predicates = append(predicates, procedurehistory.SatisfiesNEQ(*i.SatisfiesNEQ)) + } + if len(i.SatisfiesIn) > 0 { + predicates = append(predicates, procedurehistory.SatisfiesIn(i.SatisfiesIn...)) + } + if len(i.SatisfiesNotIn) > 0 { + predicates = append(predicates, procedurehistory.SatisfiesNotIn(i.SatisfiesNotIn...)) + } + if i.SatisfiesGT != nil { + predicates = append(predicates, procedurehistory.SatisfiesGT(*i.SatisfiesGT)) + } + if i.SatisfiesGTE != nil { + predicates = append(predicates, procedurehistory.SatisfiesGTE(*i.SatisfiesGTE)) + } + if i.SatisfiesLT != nil { + predicates = append(predicates, procedurehistory.SatisfiesLT(*i.SatisfiesLT)) + } + if i.SatisfiesLTE != nil { + predicates = append(predicates, procedurehistory.SatisfiesLTE(*i.SatisfiesLTE)) + } + if i.SatisfiesContains != nil { + predicates = append(predicates, procedurehistory.SatisfiesContains(*i.SatisfiesContains)) + } + if i.SatisfiesHasPrefix != nil { + predicates = append(predicates, procedurehistory.SatisfiesHasPrefix(*i.SatisfiesHasPrefix)) + } + if i.SatisfiesHasSuffix != nil { + predicates = append(predicates, procedurehistory.SatisfiesHasSuffix(*i.SatisfiesHasSuffix)) + } + if i.SatisfiesIsNil { + predicates = append(predicates, procedurehistory.SatisfiesIsNil()) + } + if i.SatisfiesNotNil { + predicates = append(predicates, procedurehistory.SatisfiesNotNil()) + } + if i.SatisfiesEqualFold != nil { + predicates = append(predicates, procedurehistory.SatisfiesEqualFold(*i.SatisfiesEqualFold)) + } + if i.SatisfiesContainsFold != nil { + predicates = append(predicates, procedurehistory.SatisfiesContainsFold(*i.SatisfiesContainsFold)) + } + switch len(predicates) { case 0: - return nil, ErrEmptyOrgMembershipWhereInput + return nil, ErrEmptyProcedureHistoryWhereInput case 1: return predicates[0], nil default: - return orgmembership.And(predicates...), nil + return procedurehistory.And(predicates...), nil } } -// OrgMembershipHistoryWhereInput represents a where input for filtering OrgMembershipHistory queries. -type OrgMembershipHistoryWhereInput struct { - Predicates []predicate.OrgMembershipHistory `json:"-"` - Not *OrgMembershipHistoryWhereInput `json:"not,omitempty"` - Or []*OrgMembershipHistoryWhereInput `json:"or,omitempty"` - And []*OrgMembershipHistoryWhereInput `json:"and,omitempty"` +// RiskWhereInput represents a where input for filtering Risk queries. +type RiskWhereInput struct { + Predicates []predicate.Risk `json:"-"` + Not *RiskWhereInput `json:"not,omitempty"` + Or []*RiskWhereInput `json:"or,omitempty"` + And []*RiskWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -30184,39 +47486,6 @@ type OrgMembershipHistoryWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // "history_time" field predicates. - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` - RefGT *string `json:"refGT,omitempty"` - RefGTE *string `json:"refGTE,omitempty"` - RefLT *string `json:"refLT,omitempty"` - RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -30304,56 +47573,165 @@ type OrgMembershipHistoryWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "role" field predicates. - Role *enums.Role `json:"role,omitempty"` - RoleNEQ *enums.Role `json:"roleNEQ,omitempty"` - RoleIn []enums.Role `json:"roleIn,omitempty"` - RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "organization_id" field predicates. - OrganizationID *string `json:"organizationID,omitempty"` - OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` - OrganizationIDIn []string `json:"organizationIDIn,omitempty"` - OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` - OrganizationIDGT *string `json:"organizationIDGT,omitempty"` - OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` - OrganizationIDLT *string `json:"organizationIDLT,omitempty"` - OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` - OrganizationIDContains *string `json:"organizationIDContains,omitempty"` - OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` - OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` - OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` - OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` - // "user_id" field predicates. - UserID *string `json:"userID,omitempty"` - UserIDNEQ *string `json:"userIDNEQ,omitempty"` - UserIDIn []string `json:"userIDIn,omitempty"` - UserIDNotIn []string `json:"userIDNotIn,omitempty"` - UserIDGT *string `json:"userIDGT,omitempty"` - UserIDGTE *string `json:"userIDGTE,omitempty"` - UserIDLT *string `json:"userIDLT,omitempty"` - UserIDLTE *string `json:"userIDLTE,omitempty"` - UserIDContains *string `json:"userIDContains,omitempty"` - UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` - UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` - UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` - UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + + // "risk_type" field predicates. + RiskType *string `json:"riskType,omitempty"` + RiskTypeNEQ *string `json:"riskTypeNEQ,omitempty"` + RiskTypeIn []string `json:"riskTypeIn,omitempty"` + RiskTypeNotIn []string `json:"riskTypeNotIn,omitempty"` + RiskTypeGT *string `json:"riskTypeGT,omitempty"` + RiskTypeGTE *string `json:"riskTypeGTE,omitempty"` + RiskTypeLT *string `json:"riskTypeLT,omitempty"` + RiskTypeLTE *string `json:"riskTypeLTE,omitempty"` + RiskTypeContains *string `json:"riskTypeContains,omitempty"` + RiskTypeHasPrefix *string `json:"riskTypeHasPrefix,omitempty"` + RiskTypeHasSuffix *string `json:"riskTypeHasSuffix,omitempty"` + RiskTypeIsNil bool `json:"riskTypeIsNil,omitempty"` + RiskTypeNotNil bool `json:"riskTypeNotNil,omitempty"` + RiskTypeEqualFold *string `json:"riskTypeEqualFold,omitempty"` + RiskTypeContainsFold *string `json:"riskTypeContainsFold,omitempty"` + + // "business_costs" field predicates. + BusinessCosts *string `json:"businessCosts,omitempty"` + BusinessCostsNEQ *string `json:"businessCostsNEQ,omitempty"` + BusinessCostsIn []string `json:"businessCostsIn,omitempty"` + BusinessCostsNotIn []string `json:"businessCostsNotIn,omitempty"` + BusinessCostsGT *string `json:"businessCostsGT,omitempty"` + BusinessCostsGTE *string `json:"businessCostsGTE,omitempty"` + BusinessCostsLT *string `json:"businessCostsLT,omitempty"` + BusinessCostsLTE *string `json:"businessCostsLTE,omitempty"` + BusinessCostsContains *string `json:"businessCostsContains,omitempty"` + BusinessCostsHasPrefix *string `json:"businessCostsHasPrefix,omitempty"` + BusinessCostsHasSuffix *string `json:"businessCostsHasSuffix,omitempty"` + BusinessCostsIsNil bool `json:"businessCostsIsNil,omitempty"` + BusinessCostsNotNil bool `json:"businessCostsNotNil,omitempty"` + BusinessCostsEqualFold *string `json:"businessCostsEqualFold,omitempty"` + BusinessCostsContainsFold *string `json:"businessCostsContainsFold,omitempty"` + + // "impact" field predicates. + Impact *enums.RiskImpact `json:"impact,omitempty"` + ImpactNEQ *enums.RiskImpact `json:"impactNEQ,omitempty"` + ImpactIn []enums.RiskImpact `json:"impactIn,omitempty"` + ImpactNotIn []enums.RiskImpact `json:"impactNotIn,omitempty"` + ImpactIsNil bool `json:"impactIsNil,omitempty"` + ImpactNotNil bool `json:"impactNotNil,omitempty"` + + // "likelihood" field predicates. + Likelihood *enums.RiskLikelihood `json:"likelihood,omitempty"` + LikelihoodNEQ *enums.RiskLikelihood `json:"likelihoodNEQ,omitempty"` + LikelihoodIn []enums.RiskLikelihood `json:"likelihoodIn,omitempty"` + LikelihoodNotIn []enums.RiskLikelihood `json:"likelihoodNotIn,omitempty"` + LikelihoodIsNil bool `json:"likelihoodIsNil,omitempty"` + LikelihoodNotNil bool `json:"likelihoodNotNil,omitempty"` + + // "mitigation" field predicates. + Mitigation *string `json:"mitigation,omitempty"` + MitigationNEQ *string `json:"mitigationNEQ,omitempty"` + MitigationIn []string `json:"mitigationIn,omitempty"` + MitigationNotIn []string `json:"mitigationNotIn,omitempty"` + MitigationGT *string `json:"mitigationGT,omitempty"` + MitigationGTE *string `json:"mitigationGTE,omitempty"` + MitigationLT *string `json:"mitigationLT,omitempty"` + MitigationLTE *string `json:"mitigationLTE,omitempty"` + MitigationContains *string `json:"mitigationContains,omitempty"` + MitigationHasPrefix *string `json:"mitigationHasPrefix,omitempty"` + MitigationHasSuffix *string `json:"mitigationHasSuffix,omitempty"` + MitigationIsNil bool `json:"mitigationIsNil,omitempty"` + MitigationNotNil bool `json:"mitigationNotNil,omitempty"` + MitigationEqualFold *string `json:"mitigationEqualFold,omitempty"` + MitigationContainsFold *string `json:"mitigationContainsFold,omitempty"` + + // "satisfies" field predicates. + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNEQ *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGT *string `json:"satisfiesGT,omitempty"` + SatisfiesGTE *string `json:"satisfiesGTE,omitempty"` + SatisfiesLT *string `json:"satisfiesLT,omitempty"` + SatisfiesLTE *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` + + // "control" edge predicates. + HasControl *bool `json:"hasControl,omitempty"` + HasControlWith []*ControlWhereInput `json:"hasControlWith,omitempty"` + + // "procedure" edge predicates. + HasProcedure *bool `json:"hasProcedure,omitempty"` + HasProcedureWith []*ProcedureWhereInput `json:"hasProcedureWith,omitempty"` + + // "actionplans" edge predicates. + HasActionplans *bool `json:"hasActionplans,omitempty"` + HasActionplansWith []*ActionPlanWhereInput `json:"hasActionplansWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *OrgMembershipHistoryWhereInput) AddPredicates(predicates ...predicate.OrgMembershipHistory) { +func (i *RiskWhereInput) AddPredicates(predicates ...predicate.Risk) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the OrgMembershipHistoryWhereInput filter on the OrgMembershipHistoryQuery builder. -func (i *OrgMembershipHistoryWhereInput) Filter(q *OrgMembershipHistoryQuery) (*OrgMembershipHistoryQuery, error) { +// Filter applies the RiskWhereInput filter on the RiskQuery builder. +func (i *RiskWhereInput) Filter(q *RiskQuery) (*RiskQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyOrgMembershipHistoryWhereInput { + if err == ErrEmptyRiskWhereInput { return q, nil } return nil, err @@ -30361,19 +47739,19 @@ func (i *OrgMembershipHistoryWhereInput) Filter(q *OrgMembershipHistoryQuery) (* return q.Where(p), nil } -// ErrEmptyOrgMembershipHistoryWhereInput is returned in case the OrgMembershipHistoryWhereInput is empty. -var ErrEmptyOrgMembershipHistoryWhereInput = errors.New("generated: empty predicate OrgMembershipHistoryWhereInput") +// ErrEmptyRiskWhereInput is returned in case the RiskWhereInput is empty. +var ErrEmptyRiskWhereInput = errors.New("generated: empty predicate RiskWhereInput") -// P returns a predicate for filtering orgmembershiphistories. +// P returns a predicate for filtering risks. // An error is returned if the input is empty or invalid. -func (i *OrgMembershipHistoryWhereInput) P() (predicate.OrgMembershipHistory, error) { - var predicates []predicate.OrgMembershipHistory +func (i *RiskWhereInput) P() (predicate.Risk, error) { + var predicates []predicate.Risk if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, orgmembershiphistory.Not(p)) + predicates = append(predicates, risk.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -30383,7 +47761,7 @@ func (i *OrgMembershipHistoryWhereInput) P() (predicate.OrgMembershipHistory, er } predicates = append(predicates, p) case n > 1: - or := make([]predicate.OrgMembershipHistory, 0, n) + or := make([]predicate.Risk, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -30391,7 +47769,7 @@ func (i *OrgMembershipHistoryWhereInput) P() (predicate.OrgMembershipHistory, er } or = append(or, p) } - predicates = append(predicates, orgmembershiphistory.Or(or...)) + predicates = append(predicates, risk.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -30401,7 +47779,7 @@ func (i *OrgMembershipHistoryWhereInput) P() (predicate.OrgMembershipHistory, er } predicates = append(predicates, p) case n > 1: - and := make([]predicate.OrgMembershipHistory, 0, n) + and := make([]predicate.Risk, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -30409,452 +47787,680 @@ func (i *OrgMembershipHistoryWhereInput) P() (predicate.OrgMembershipHistory, er } and = append(and, p) } - predicates = append(predicates, orgmembershiphistory.And(and...)) + predicates = append(predicates, risk.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, orgmembershiphistory.IDEQ(*i.ID)) + predicates = append(predicates, risk.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, orgmembershiphistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, risk.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, orgmembershiphistory.IDIn(i.IDIn...)) + predicates = append(predicates, risk.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, risk.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, orgmembershiphistory.IDGT(*i.IDGT)) + predicates = append(predicates, risk.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, orgmembershiphistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, risk.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, orgmembershiphistory.IDLT(*i.IDLT)) - } - if i.IDLTE != nil { - predicates = append(predicates, orgmembershiphistory.IDLTE(*i.IDLTE)) - } - if i.IDEqualFold != nil { - predicates = append(predicates, orgmembershiphistory.IDEqualFold(*i.IDEqualFold)) - } - if i.IDContainsFold != nil { - predicates = append(predicates, orgmembershiphistory.IDContainsFold(*i.IDContainsFold)) - } - if i.HistoryTime != nil { - predicates = append(predicates, orgmembershiphistory.HistoryTimeEQ(*i.HistoryTime)) - } - if i.HistoryTimeNEQ != nil { - predicates = append(predicates, orgmembershiphistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) - } - if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, orgmembershiphistory.HistoryTimeIn(i.HistoryTimeIn...)) - } - if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) - } - if i.HistoryTimeGT != nil { - predicates = append(predicates, orgmembershiphistory.HistoryTimeGT(*i.HistoryTimeGT)) - } - if i.HistoryTimeGTE != nil { - predicates = append(predicates, orgmembershiphistory.HistoryTimeGTE(*i.HistoryTimeGTE)) - } - if i.HistoryTimeLT != nil { - predicates = append(predicates, orgmembershiphistory.HistoryTimeLT(*i.HistoryTimeLT)) - } - if i.HistoryTimeLTE != nil { - predicates = append(predicates, orgmembershiphistory.HistoryTimeLTE(*i.HistoryTimeLTE)) - } - if i.Ref != nil { - predicates = append(predicates, orgmembershiphistory.RefEQ(*i.Ref)) - } - if i.RefNEQ != nil { - predicates = append(predicates, orgmembershiphistory.RefNEQ(*i.RefNEQ)) - } - if len(i.RefIn) > 0 { - predicates = append(predicates, orgmembershiphistory.RefIn(i.RefIn...)) - } - if len(i.RefNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.RefNotIn(i.RefNotIn...)) - } - if i.RefGT != nil { - predicates = append(predicates, orgmembershiphistory.RefGT(*i.RefGT)) - } - if i.RefGTE != nil { - predicates = append(predicates, orgmembershiphistory.RefGTE(*i.RefGTE)) + predicates = append(predicates, risk.IDLT(*i.IDLT)) } - if i.RefLT != nil { - predicates = append(predicates, orgmembershiphistory.RefLT(*i.RefLT)) - } - if i.RefLTE != nil { - predicates = append(predicates, orgmembershiphistory.RefLTE(*i.RefLTE)) - } - if i.RefContains != nil { - predicates = append(predicates, orgmembershiphistory.RefContains(*i.RefContains)) - } - if i.RefHasPrefix != nil { - predicates = append(predicates, orgmembershiphistory.RefHasPrefix(*i.RefHasPrefix)) - } - if i.RefHasSuffix != nil { - predicates = append(predicates, orgmembershiphistory.RefHasSuffix(*i.RefHasSuffix)) - } - if i.RefIsNil { - predicates = append(predicates, orgmembershiphistory.RefIsNil()) - } - if i.RefNotNil { - predicates = append(predicates, orgmembershiphistory.RefNotNil()) - } - if i.RefEqualFold != nil { - predicates = append(predicates, orgmembershiphistory.RefEqualFold(*i.RefEqualFold)) - } - if i.RefContainsFold != nil { - predicates = append(predicates, orgmembershiphistory.RefContainsFold(*i.RefContainsFold)) - } - if i.Operation != nil { - predicates = append(predicates, orgmembershiphistory.OperationEQ(*i.Operation)) - } - if i.OperationNEQ != nil { - predicates = append(predicates, orgmembershiphistory.OperationNEQ(*i.OperationNEQ)) + if i.IDLTE != nil { + predicates = append(predicates, risk.IDLTE(*i.IDLTE)) } - if len(i.OperationIn) > 0 { - predicates = append(predicates, orgmembershiphistory.OperationIn(i.OperationIn...)) + if i.IDEqualFold != nil { + predicates = append(predicates, risk.IDEqualFold(*i.IDEqualFold)) } - if len(i.OperationNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.OperationNotIn(i.OperationNotIn...)) + if i.IDContainsFold != nil { + predicates = append(predicates, risk.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, orgmembershiphistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, risk.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, orgmembershiphistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, risk.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, orgmembershiphistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, risk.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, risk.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, orgmembershiphistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, risk.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, orgmembershiphistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, risk.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, orgmembershiphistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, risk.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, orgmembershiphistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, risk.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, orgmembershiphistory.CreatedAtIsNil()) + predicates = append(predicates, risk.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, orgmembershiphistory.CreatedAtNotNil()) + predicates = append(predicates, risk.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, risk.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, risk.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, orgmembershiphistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, risk.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, risk.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, risk.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, risk.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, risk.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, risk.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, orgmembershiphistory.UpdatedAtIsNil()) + predicates = append(predicates, risk.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, orgmembershiphistory.UpdatedAtNotNil()) + predicates = append(predicates, risk.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, orgmembershiphistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, risk.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, orgmembershiphistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, risk.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, orgmembershiphistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, risk.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, risk.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, orgmembershiphistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, risk.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, orgmembershiphistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, risk.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, orgmembershiphistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, risk.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, orgmembershiphistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, risk.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, orgmembershiphistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, risk.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, orgmembershiphistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, risk.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, orgmembershiphistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, risk.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, orgmembershiphistory.CreatedByIsNil()) + predicates = append(predicates, risk.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, orgmembershiphistory.CreatedByNotNil()) + predicates = append(predicates, risk.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, orgmembershiphistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, risk.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, orgmembershiphistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, risk.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, risk.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, risk.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, orgmembershiphistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, risk.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, risk.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, risk.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, risk.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, risk.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, risk.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, risk.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, risk.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, risk.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, orgmembershiphistory.UpdatedByIsNil()) + predicates = append(predicates, risk.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, orgmembershiphistory.UpdatedByNotNil()) + predicates = append(predicates, risk.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, risk.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, orgmembershiphistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, risk.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, orgmembershiphistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, risk.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, orgmembershiphistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, risk.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, orgmembershiphistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, risk.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, risk.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, orgmembershiphistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, risk.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, orgmembershiphistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, risk.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, orgmembershiphistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, risk.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, orgmembershiphistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, risk.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, orgmembershiphistory.DeletedAtIsNil()) + predicates = append(predicates, risk.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, orgmembershiphistory.DeletedAtNotNil()) + predicates = append(predicates, risk.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, orgmembershiphistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, risk.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, orgmembershiphistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, risk.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, orgmembershiphistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, risk.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, risk.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, orgmembershiphistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, risk.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, orgmembershiphistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, risk.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, orgmembershiphistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, risk.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, orgmembershiphistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, risk.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, orgmembershiphistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, risk.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, orgmembershiphistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, risk.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, orgmembershiphistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, risk.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, orgmembershiphistory.DeletedByIsNil()) + predicates = append(predicates, risk.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, orgmembershiphistory.DeletedByNotNil()) + predicates = append(predicates, risk.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, orgmembershiphistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, risk.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, orgmembershiphistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, risk.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.Role != nil { - predicates = append(predicates, orgmembershiphistory.RoleEQ(*i.Role)) + if i.Name != nil { + predicates = append(predicates, risk.NameEQ(*i.Name)) } - if i.RoleNEQ != nil { - predicates = append(predicates, orgmembershiphistory.RoleNEQ(*i.RoleNEQ)) + if i.NameNEQ != nil { + predicates = append(predicates, risk.NameNEQ(*i.NameNEQ)) } - if len(i.RoleIn) > 0 { - predicates = append(predicates, orgmembershiphistory.RoleIn(i.RoleIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, risk.NameIn(i.NameIn...)) } - if len(i.RoleNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.RoleNotIn(i.RoleNotIn...)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, risk.NameNotIn(i.NameNotIn...)) } - if i.OrganizationID != nil { - predicates = append(predicates, orgmembershiphistory.OrganizationIDEQ(*i.OrganizationID)) + if i.NameGT != nil { + predicates = append(predicates, risk.NameGT(*i.NameGT)) } - if i.OrganizationIDNEQ != nil { - predicates = append(predicates, orgmembershiphistory.OrganizationIDNEQ(*i.OrganizationIDNEQ)) + if i.NameGTE != nil { + predicates = append(predicates, risk.NameGTE(*i.NameGTE)) } - if len(i.OrganizationIDIn) > 0 { - predicates = append(predicates, orgmembershiphistory.OrganizationIDIn(i.OrganizationIDIn...)) + if i.NameLT != nil { + predicates = append(predicates, risk.NameLT(*i.NameLT)) } - if len(i.OrganizationIDNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.OrganizationIDNotIn(i.OrganizationIDNotIn...)) + if i.NameLTE != nil { + predicates = append(predicates, risk.NameLTE(*i.NameLTE)) } - if i.OrganizationIDGT != nil { - predicates = append(predicates, orgmembershiphistory.OrganizationIDGT(*i.OrganizationIDGT)) + if i.NameContains != nil { + predicates = append(predicates, risk.NameContains(*i.NameContains)) } - if i.OrganizationIDGTE != nil { - predicates = append(predicates, orgmembershiphistory.OrganizationIDGTE(*i.OrganizationIDGTE)) + if i.NameHasPrefix != nil { + predicates = append(predicates, risk.NameHasPrefix(*i.NameHasPrefix)) } - if i.OrganizationIDLT != nil { - predicates = append(predicates, orgmembershiphistory.OrganizationIDLT(*i.OrganizationIDLT)) + if i.NameHasSuffix != nil { + predicates = append(predicates, risk.NameHasSuffix(*i.NameHasSuffix)) } - if i.OrganizationIDLTE != nil { - predicates = append(predicates, orgmembershiphistory.OrganizationIDLTE(*i.OrganizationIDLTE)) + if i.NameEqualFold != nil { + predicates = append(predicates, risk.NameEqualFold(*i.NameEqualFold)) } - if i.OrganizationIDContains != nil { - predicates = append(predicates, orgmembershiphistory.OrganizationIDContains(*i.OrganizationIDContains)) + if i.NameContainsFold != nil { + predicates = append(predicates, risk.NameContainsFold(*i.NameContainsFold)) } - if i.OrganizationIDHasPrefix != nil { - predicates = append(predicates, orgmembershiphistory.OrganizationIDHasPrefix(*i.OrganizationIDHasPrefix)) + if i.Description != nil { + predicates = append(predicates, risk.DescriptionEQ(*i.Description)) } - if i.OrganizationIDHasSuffix != nil { - predicates = append(predicates, orgmembershiphistory.OrganizationIDHasSuffix(*i.OrganizationIDHasSuffix)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, risk.DescriptionNEQ(*i.DescriptionNEQ)) } - if i.OrganizationIDEqualFold != nil { - predicates = append(predicates, orgmembershiphistory.OrganizationIDEqualFold(*i.OrganizationIDEqualFold)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, risk.DescriptionIn(i.DescriptionIn...)) } - if i.OrganizationIDContainsFold != nil { - predicates = append(predicates, orgmembershiphistory.OrganizationIDContainsFold(*i.OrganizationIDContainsFold)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, risk.DescriptionNotIn(i.DescriptionNotIn...)) } - if i.UserID != nil { - predicates = append(predicates, orgmembershiphistory.UserIDEQ(*i.UserID)) + if i.DescriptionGT != nil { + predicates = append(predicates, risk.DescriptionGT(*i.DescriptionGT)) } - if i.UserIDNEQ != nil { - predicates = append(predicates, orgmembershiphistory.UserIDNEQ(*i.UserIDNEQ)) + if i.DescriptionGTE != nil { + predicates = append(predicates, risk.DescriptionGTE(*i.DescriptionGTE)) } - if len(i.UserIDIn) > 0 { - predicates = append(predicates, orgmembershiphistory.UserIDIn(i.UserIDIn...)) + if i.DescriptionLT != nil { + predicates = append(predicates, risk.DescriptionLT(*i.DescriptionLT)) } - if len(i.UserIDNotIn) > 0 { - predicates = append(predicates, orgmembershiphistory.UserIDNotIn(i.UserIDNotIn...)) + if i.DescriptionLTE != nil { + predicates = append(predicates, risk.DescriptionLTE(*i.DescriptionLTE)) } - if i.UserIDGT != nil { - predicates = append(predicates, orgmembershiphistory.UserIDGT(*i.UserIDGT)) + if i.DescriptionContains != nil { + predicates = append(predicates, risk.DescriptionContains(*i.DescriptionContains)) } - if i.UserIDGTE != nil { - predicates = append(predicates, orgmembershiphistory.UserIDGTE(*i.UserIDGTE)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, risk.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.UserIDLT != nil { - predicates = append(predicates, orgmembershiphistory.UserIDLT(*i.UserIDLT)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, risk.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.UserIDLTE != nil { - predicates = append(predicates, orgmembershiphistory.UserIDLTE(*i.UserIDLTE)) + if i.DescriptionIsNil { + predicates = append(predicates, risk.DescriptionIsNil()) } - if i.UserIDContains != nil { - predicates = append(predicates, orgmembershiphistory.UserIDContains(*i.UserIDContains)) + if i.DescriptionNotNil { + predicates = append(predicates, risk.DescriptionNotNil()) } - if i.UserIDHasPrefix != nil { - predicates = append(predicates, orgmembershiphistory.UserIDHasPrefix(*i.UserIDHasPrefix)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, risk.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.UserIDHasSuffix != nil { - predicates = append(predicates, orgmembershiphistory.UserIDHasSuffix(*i.UserIDHasSuffix)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, risk.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.UserIDEqualFold != nil { - predicates = append(predicates, orgmembershiphistory.UserIDEqualFold(*i.UserIDEqualFold)) + if i.Status != nil { + predicates = append(predicates, risk.StatusEQ(*i.Status)) } - if i.UserIDContainsFold != nil { - predicates = append(predicates, orgmembershiphistory.UserIDContainsFold(*i.UserIDContainsFold)) + if i.StatusNEQ != nil { + predicates = append(predicates, risk.StatusNEQ(*i.StatusNEQ)) + } + if len(i.StatusIn) > 0 { + predicates = append(predicates, risk.StatusIn(i.StatusIn...)) + } + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, risk.StatusNotIn(i.StatusNotIn...)) + } + if i.StatusGT != nil { + predicates = append(predicates, risk.StatusGT(*i.StatusGT)) + } + if i.StatusGTE != nil { + predicates = append(predicates, risk.StatusGTE(*i.StatusGTE)) + } + if i.StatusLT != nil { + predicates = append(predicates, risk.StatusLT(*i.StatusLT)) + } + if i.StatusLTE != nil { + predicates = append(predicates, risk.StatusLTE(*i.StatusLTE)) + } + if i.StatusContains != nil { + predicates = append(predicates, risk.StatusContains(*i.StatusContains)) + } + if i.StatusHasPrefix != nil { + predicates = append(predicates, risk.StatusHasPrefix(*i.StatusHasPrefix)) + } + if i.StatusHasSuffix != nil { + predicates = append(predicates, risk.StatusHasSuffix(*i.StatusHasSuffix)) + } + if i.StatusIsNil { + predicates = append(predicates, risk.StatusIsNil()) + } + if i.StatusNotNil { + predicates = append(predicates, risk.StatusNotNil()) + } + if i.StatusEqualFold != nil { + predicates = append(predicates, risk.StatusEqualFold(*i.StatusEqualFold)) + } + if i.StatusContainsFold != nil { + predicates = append(predicates, risk.StatusContainsFold(*i.StatusContainsFold)) + } + if i.RiskType != nil { + predicates = append(predicates, risk.RiskTypeEQ(*i.RiskType)) + } + if i.RiskTypeNEQ != nil { + predicates = append(predicates, risk.RiskTypeNEQ(*i.RiskTypeNEQ)) + } + if len(i.RiskTypeIn) > 0 { + predicates = append(predicates, risk.RiskTypeIn(i.RiskTypeIn...)) + } + if len(i.RiskTypeNotIn) > 0 { + predicates = append(predicates, risk.RiskTypeNotIn(i.RiskTypeNotIn...)) + } + if i.RiskTypeGT != nil { + predicates = append(predicates, risk.RiskTypeGT(*i.RiskTypeGT)) + } + if i.RiskTypeGTE != nil { + predicates = append(predicates, risk.RiskTypeGTE(*i.RiskTypeGTE)) + } + if i.RiskTypeLT != nil { + predicates = append(predicates, risk.RiskTypeLT(*i.RiskTypeLT)) + } + if i.RiskTypeLTE != nil { + predicates = append(predicates, risk.RiskTypeLTE(*i.RiskTypeLTE)) + } + if i.RiskTypeContains != nil { + predicates = append(predicates, risk.RiskTypeContains(*i.RiskTypeContains)) + } + if i.RiskTypeHasPrefix != nil { + predicates = append(predicates, risk.RiskTypeHasPrefix(*i.RiskTypeHasPrefix)) + } + if i.RiskTypeHasSuffix != nil { + predicates = append(predicates, risk.RiskTypeHasSuffix(*i.RiskTypeHasSuffix)) + } + if i.RiskTypeIsNil { + predicates = append(predicates, risk.RiskTypeIsNil()) + } + if i.RiskTypeNotNil { + predicates = append(predicates, risk.RiskTypeNotNil()) + } + if i.RiskTypeEqualFold != nil { + predicates = append(predicates, risk.RiskTypeEqualFold(*i.RiskTypeEqualFold)) + } + if i.RiskTypeContainsFold != nil { + predicates = append(predicates, risk.RiskTypeContainsFold(*i.RiskTypeContainsFold)) + } + if i.BusinessCosts != nil { + predicates = append(predicates, risk.BusinessCostsEQ(*i.BusinessCosts)) + } + if i.BusinessCostsNEQ != nil { + predicates = append(predicates, risk.BusinessCostsNEQ(*i.BusinessCostsNEQ)) + } + if len(i.BusinessCostsIn) > 0 { + predicates = append(predicates, risk.BusinessCostsIn(i.BusinessCostsIn...)) + } + if len(i.BusinessCostsNotIn) > 0 { + predicates = append(predicates, risk.BusinessCostsNotIn(i.BusinessCostsNotIn...)) + } + if i.BusinessCostsGT != nil { + predicates = append(predicates, risk.BusinessCostsGT(*i.BusinessCostsGT)) + } + if i.BusinessCostsGTE != nil { + predicates = append(predicates, risk.BusinessCostsGTE(*i.BusinessCostsGTE)) + } + if i.BusinessCostsLT != nil { + predicates = append(predicates, risk.BusinessCostsLT(*i.BusinessCostsLT)) + } + if i.BusinessCostsLTE != nil { + predicates = append(predicates, risk.BusinessCostsLTE(*i.BusinessCostsLTE)) + } + if i.BusinessCostsContains != nil { + predicates = append(predicates, risk.BusinessCostsContains(*i.BusinessCostsContains)) + } + if i.BusinessCostsHasPrefix != nil { + predicates = append(predicates, risk.BusinessCostsHasPrefix(*i.BusinessCostsHasPrefix)) + } + if i.BusinessCostsHasSuffix != nil { + predicates = append(predicates, risk.BusinessCostsHasSuffix(*i.BusinessCostsHasSuffix)) + } + if i.BusinessCostsIsNil { + predicates = append(predicates, risk.BusinessCostsIsNil()) + } + if i.BusinessCostsNotNil { + predicates = append(predicates, risk.BusinessCostsNotNil()) + } + if i.BusinessCostsEqualFold != nil { + predicates = append(predicates, risk.BusinessCostsEqualFold(*i.BusinessCostsEqualFold)) + } + if i.BusinessCostsContainsFold != nil { + predicates = append(predicates, risk.BusinessCostsContainsFold(*i.BusinessCostsContainsFold)) + } + if i.Impact != nil { + predicates = append(predicates, risk.ImpactEQ(*i.Impact)) + } + if i.ImpactNEQ != nil { + predicates = append(predicates, risk.ImpactNEQ(*i.ImpactNEQ)) + } + if len(i.ImpactIn) > 0 { + predicates = append(predicates, risk.ImpactIn(i.ImpactIn...)) + } + if len(i.ImpactNotIn) > 0 { + predicates = append(predicates, risk.ImpactNotIn(i.ImpactNotIn...)) + } + if i.ImpactIsNil { + predicates = append(predicates, risk.ImpactIsNil()) + } + if i.ImpactNotNil { + predicates = append(predicates, risk.ImpactNotNil()) + } + if i.Likelihood != nil { + predicates = append(predicates, risk.LikelihoodEQ(*i.Likelihood)) + } + if i.LikelihoodNEQ != nil { + predicates = append(predicates, risk.LikelihoodNEQ(*i.LikelihoodNEQ)) + } + if len(i.LikelihoodIn) > 0 { + predicates = append(predicates, risk.LikelihoodIn(i.LikelihoodIn...)) + } + if len(i.LikelihoodNotIn) > 0 { + predicates = append(predicates, risk.LikelihoodNotIn(i.LikelihoodNotIn...)) + } + if i.LikelihoodIsNil { + predicates = append(predicates, risk.LikelihoodIsNil()) + } + if i.LikelihoodNotNil { + predicates = append(predicates, risk.LikelihoodNotNil()) + } + if i.Mitigation != nil { + predicates = append(predicates, risk.MitigationEQ(*i.Mitigation)) + } + if i.MitigationNEQ != nil { + predicates = append(predicates, risk.MitigationNEQ(*i.MitigationNEQ)) + } + if len(i.MitigationIn) > 0 { + predicates = append(predicates, risk.MitigationIn(i.MitigationIn...)) + } + if len(i.MitigationNotIn) > 0 { + predicates = append(predicates, risk.MitigationNotIn(i.MitigationNotIn...)) + } + if i.MitigationGT != nil { + predicates = append(predicates, risk.MitigationGT(*i.MitigationGT)) + } + if i.MitigationGTE != nil { + predicates = append(predicates, risk.MitigationGTE(*i.MitigationGTE)) + } + if i.MitigationLT != nil { + predicates = append(predicates, risk.MitigationLT(*i.MitigationLT)) + } + if i.MitigationLTE != nil { + predicates = append(predicates, risk.MitigationLTE(*i.MitigationLTE)) + } + if i.MitigationContains != nil { + predicates = append(predicates, risk.MitigationContains(*i.MitigationContains)) + } + if i.MitigationHasPrefix != nil { + predicates = append(predicates, risk.MitigationHasPrefix(*i.MitigationHasPrefix)) + } + if i.MitigationHasSuffix != nil { + predicates = append(predicates, risk.MitigationHasSuffix(*i.MitigationHasSuffix)) + } + if i.MitigationIsNil { + predicates = append(predicates, risk.MitigationIsNil()) + } + if i.MitigationNotNil { + predicates = append(predicates, risk.MitigationNotNil()) + } + if i.MitigationEqualFold != nil { + predicates = append(predicates, risk.MitigationEqualFold(*i.MitigationEqualFold)) + } + if i.MitigationContainsFold != nil { + predicates = append(predicates, risk.MitigationContainsFold(*i.MitigationContainsFold)) + } + if i.Satisfies != nil { + predicates = append(predicates, risk.SatisfiesEQ(*i.Satisfies)) + } + if i.SatisfiesNEQ != nil { + predicates = append(predicates, risk.SatisfiesNEQ(*i.SatisfiesNEQ)) + } + if len(i.SatisfiesIn) > 0 { + predicates = append(predicates, risk.SatisfiesIn(i.SatisfiesIn...)) + } + if len(i.SatisfiesNotIn) > 0 { + predicates = append(predicates, risk.SatisfiesNotIn(i.SatisfiesNotIn...)) + } + if i.SatisfiesGT != nil { + predicates = append(predicates, risk.SatisfiesGT(*i.SatisfiesGT)) + } + if i.SatisfiesGTE != nil { + predicates = append(predicates, risk.SatisfiesGTE(*i.SatisfiesGTE)) + } + if i.SatisfiesLT != nil { + predicates = append(predicates, risk.SatisfiesLT(*i.SatisfiesLT)) + } + if i.SatisfiesLTE != nil { + predicates = append(predicates, risk.SatisfiesLTE(*i.SatisfiesLTE)) + } + if i.SatisfiesContains != nil { + predicates = append(predicates, risk.SatisfiesContains(*i.SatisfiesContains)) + } + if i.SatisfiesHasPrefix != nil { + predicates = append(predicates, risk.SatisfiesHasPrefix(*i.SatisfiesHasPrefix)) + } + if i.SatisfiesHasSuffix != nil { + predicates = append(predicates, risk.SatisfiesHasSuffix(*i.SatisfiesHasSuffix)) + } + if i.SatisfiesIsNil { + predicates = append(predicates, risk.SatisfiesIsNil()) + } + if i.SatisfiesNotNil { + predicates = append(predicates, risk.SatisfiesNotNil()) + } + if i.SatisfiesEqualFold != nil { + predicates = append(predicates, risk.SatisfiesEqualFold(*i.SatisfiesEqualFold)) + } + if i.SatisfiesContainsFold != nil { + predicates = append(predicates, risk.SatisfiesContainsFold(*i.SatisfiesContainsFold)) } + if i.HasControl != nil { + p := risk.HasControl() + if !*i.HasControl { + p = risk.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasControlWith) > 0 { + with := make([]predicate.Control, 0, len(i.HasControlWith)) + for _, w := range i.HasControlWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasControlWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, risk.HasControlWith(with...)) + } + if i.HasProcedure != nil { + p := risk.HasProcedure() + if !*i.HasProcedure { + p = risk.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasProcedureWith) > 0 { + with := make([]predicate.Procedure, 0, len(i.HasProcedureWith)) + for _, w := range i.HasProcedureWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasProcedureWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, risk.HasProcedureWith(with...)) + } + if i.HasActionplans != nil { + p := risk.HasActionplans() + if !*i.HasActionplans { + p = risk.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasActionplansWith) > 0 { + with := make([]predicate.ActionPlan, 0, len(i.HasActionplansWith)) + for _, w := range i.HasActionplansWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasActionplansWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, risk.HasActionplansWith(with...)) + } switch len(predicates) { case 0: - return nil, ErrEmptyOrgMembershipHistoryWhereInput + return nil, ErrEmptyRiskWhereInput case 1: return predicates[0], nil default: - return orgmembershiphistory.And(predicates...), nil + return risk.And(predicates...), nil } } -// OrganizationWhereInput represents a where input for filtering Organization queries. -type OrganizationWhereInput struct { - Predicates []predicate.Organization `json:"-"` - Not *OrganizationWhereInput `json:"not,omitempty"` - Or []*OrganizationWhereInput `json:"or,omitempty"` - And []*OrganizationWhereInput `json:"and,omitempty"` +// RiskHistoryWhereInput represents a where input for filtering RiskHistory queries. +type RiskHistoryWhereInput struct { + Predicates []predicate.RiskHistory `json:"-"` + Not *RiskHistoryWhereInput `json:"not,omitempty"` + Or []*RiskHistoryWhereInput `json:"or,omitempty"` + And []*RiskHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -30868,6 +48474,39 @@ type OrganizationWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -30955,183 +48594,153 @@ type OrganizationWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "display_name" field predicates. - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGT *string `json:"displayNameGT,omitempty"` - DisplayNameGTE *string `json:"displayNameGTE,omitempty"` - DisplayNameLT *string `json:"displayNameLT,omitempty"` - DisplayNameLTE *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` - - // "parent_organization_id" field predicates. - ParentOrganizationID *string `json:"parentOrganizationID,omitempty"` - ParentOrganizationIDNEQ *string `json:"parentOrganizationIDNEQ,omitempty"` - ParentOrganizationIDIn []string `json:"parentOrganizationIDIn,omitempty"` - ParentOrganizationIDNotIn []string `json:"parentOrganizationIDNotIn,omitempty"` - ParentOrganizationIDGT *string `json:"parentOrganizationIDGT,omitempty"` - ParentOrganizationIDGTE *string `json:"parentOrganizationIDGTE,omitempty"` - ParentOrganizationIDLT *string `json:"parentOrganizationIDLT,omitempty"` - ParentOrganizationIDLTE *string `json:"parentOrganizationIDLTE,omitempty"` - ParentOrganizationIDContains *string `json:"parentOrganizationIDContains,omitempty"` - ParentOrganizationIDHasPrefix *string `json:"parentOrganizationIDHasPrefix,omitempty"` - ParentOrganizationIDHasSuffix *string `json:"parentOrganizationIDHasSuffix,omitempty"` - ParentOrganizationIDIsNil bool `json:"parentOrganizationIDIsNil,omitempty"` - ParentOrganizationIDNotNil bool `json:"parentOrganizationIDNotNil,omitempty"` - ParentOrganizationIDEqualFold *string `json:"parentOrganizationIDEqualFold,omitempty"` - ParentOrganizationIDContainsFold *string `json:"parentOrganizationIDContainsFold,omitempty"` - - // "personal_org" field predicates. - PersonalOrg *bool `json:"personalOrg,omitempty"` - PersonalOrgNEQ *bool `json:"personalOrgNEQ,omitempty"` - PersonalOrgIsNil bool `json:"personalOrgIsNil,omitempty"` - PersonalOrgNotNil bool `json:"personalOrgNotNil,omitempty"` - - // "avatar_remote_url" field predicates. - AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` - AvatarRemoteURLNEQ *string `json:"avatarRemoteURLNEQ,omitempty"` - AvatarRemoteURLIn []string `json:"avatarRemoteURLIn,omitempty"` - AvatarRemoteURLNotIn []string `json:"avatarRemoteURLNotIn,omitempty"` - AvatarRemoteURLGT *string `json:"avatarRemoteURLGT,omitempty"` - AvatarRemoteURLGTE *string `json:"avatarRemoteURLGTE,omitempty"` - AvatarRemoteURLLT *string `json:"avatarRemoteURLLT,omitempty"` - AvatarRemoteURLLTE *string `json:"avatarRemoteURLLTE,omitempty"` - AvatarRemoteURLContains *string `json:"avatarRemoteURLContains,omitempty"` - AvatarRemoteURLHasPrefix *string `json:"avatarRemoteURLHasPrefix,omitempty"` - AvatarRemoteURLHasSuffix *string `json:"avatarRemoteURLHasSuffix,omitempty"` - AvatarRemoteURLIsNil bool `json:"avatarRemoteURLIsNil,omitempty"` - AvatarRemoteURLNotNil bool `json:"avatarRemoteURLNotNil,omitempty"` - AvatarRemoteURLEqualFold *string `json:"avatarRemoteURLEqualFold,omitempty"` - AvatarRemoteURLContainsFold *string `json:"avatarRemoteURLContainsFold,omitempty"` - - // "parent" edge predicates. - HasParent *bool `json:"hasParent,omitempty"` - HasParentWith []*OrganizationWhereInput `json:"hasParentWith,omitempty"` - - // "children" edge predicates. - HasChildren *bool `json:"hasChildren,omitempty"` - HasChildrenWith []*OrganizationWhereInput `json:"hasChildrenWith,omitempty"` - - // "groups" edge predicates. - HasGroups *bool `json:"hasGroups,omitempty"` - HasGroupsWith []*GroupWhereInput `json:"hasGroupsWith,omitempty"` - - // "templates" edge predicates. - HasTemplates *bool `json:"hasTemplates,omitempty"` - HasTemplatesWith []*TemplateWhereInput `json:"hasTemplatesWith,omitempty"` - - // "integrations" edge predicates. - HasIntegrations *bool `json:"hasIntegrations,omitempty"` - HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` - - // "setting" edge predicates. - HasSetting *bool `json:"hasSetting,omitempty"` - HasSettingWith []*OrganizationSettingWhereInput `json:"hasSettingWith,omitempty"` - - // "documentdata" edge predicates. - HasDocumentdata *bool `json:"hasDocumentdata,omitempty"` - HasDocumentdataWith []*DocumentDataWhereInput `json:"hasDocumentdataWith,omitempty"` - - // "entitlements" edge predicates. - HasEntitlements *bool `json:"hasEntitlements,omitempty"` - HasEntitlementsWith []*EntitlementWhereInput `json:"hasEntitlementsWith,omitempty"` - - // "organization_entitlement" edge predicates. - HasOrganizationEntitlement *bool `json:"hasOrganizationEntitlement,omitempty"` - HasOrganizationEntitlementWith []*EntitlementWhereInput `json:"hasOrganizationEntitlementWith,omitempty"` - - // "personal_access_tokens" edge predicates. - HasPersonalAccessTokens *bool `json:"hasPersonalAccessTokens,omitempty"` - HasPersonalAccessTokensWith []*PersonalAccessTokenWhereInput `json:"hasPersonalAccessTokensWith,omitempty"` - - // "api_tokens" edge predicates. - HasAPITokens *bool `json:"hasAPITokens,omitempty"` - HasAPITokensWith []*APITokenWhereInput `json:"hasAPITokensWith,omitempty"` - - // "oauthprovider" edge predicates. - HasOauthprovider *bool `json:"hasOauthprovider,omitempty"` - HasOauthproviderWith []*OauthProviderWhereInput `json:"hasOauthproviderWith,omitempty"` - - // "users" edge predicates. - HasUsers *bool `json:"hasUsers,omitempty"` - HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"` - - // "invites" edge predicates. - HasInvites *bool `json:"hasInvites,omitempty"` - HasInvitesWith []*InviteWhereInput `json:"hasInvitesWith,omitempty"` - - // "subscribers" edge predicates. - HasSubscribers *bool `json:"hasSubscribers,omitempty"` - HasSubscribersWith []*SubscriberWhereInput `json:"hasSubscribersWith,omitempty"` - - // "webhooks" edge predicates. - HasWebhooks *bool `json:"hasWebhooks,omitempty"` - HasWebhooksWith []*WebhookWhereInput `json:"hasWebhooksWith,omitempty"` - - // "events" edge predicates. - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` - - // "secrets" edge predicates. - HasSecrets *bool `json:"hasSecrets,omitempty"` - HasSecretsWith []*HushWhereInput `json:"hasSecretsWith,omitempty"` - - // "features" edge predicates. - HasFeatures *bool `json:"hasFeatures,omitempty"` - HasFeaturesWith []*FeatureWhereInput `json:"hasFeaturesWith,omitempty"` - - // "files" edge predicates. - HasFiles *bool `json:"hasFiles,omitempty"` - HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` - - // "entitlementplans" edge predicates. - HasEntitlementplans *bool `json:"hasEntitlementplans,omitempty"` - HasEntitlementplansWith []*EntitlementPlanWhereInput `json:"hasEntitlementplansWith,omitempty"` - - // "entitlementplanfeatures" edge predicates. - HasEntitlementplanfeatures *bool `json:"hasEntitlementplanfeatures,omitempty"` - HasEntitlementplanfeaturesWith []*EntitlementPlanFeatureWhereInput `json:"hasEntitlementplanfeaturesWith,omitempty"` - - // "entities" edge predicates. - HasEntities *bool `json:"hasEntities,omitempty"` - HasEntitiesWith []*EntityWhereInput `json:"hasEntitiesWith,omitempty"` - - // "entitytypes" edge predicates. - HasEntitytypes *bool `json:"hasEntitytypes,omitempty"` - HasEntitytypesWith []*EntityTypeWhereInput `json:"hasEntitytypesWith,omitempty"` + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "contacts" edge predicates. - HasContacts *bool `json:"hasContacts,omitempty"` - HasContactsWith []*ContactWhereInput `json:"hasContactsWith,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` - // "notes" edge predicates. - HasNotes *bool `json:"hasNotes,omitempty"` - HasNotesWith []*NoteWhereInput `json:"hasNotesWith,omitempty"` + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` - // "members" edge predicates. - HasMembers *bool `json:"hasMembers,omitempty"` - HasMembersWith []*OrgMembershipWhereInput `json:"hasMembersWith,omitempty"` + // "risk_type" field predicates. + RiskType *string `json:"riskType,omitempty"` + RiskTypeNEQ *string `json:"riskTypeNEQ,omitempty"` + RiskTypeIn []string `json:"riskTypeIn,omitempty"` + RiskTypeNotIn []string `json:"riskTypeNotIn,omitempty"` + RiskTypeGT *string `json:"riskTypeGT,omitempty"` + RiskTypeGTE *string `json:"riskTypeGTE,omitempty"` + RiskTypeLT *string `json:"riskTypeLT,omitempty"` + RiskTypeLTE *string `json:"riskTypeLTE,omitempty"` + RiskTypeContains *string `json:"riskTypeContains,omitempty"` + RiskTypeHasPrefix *string `json:"riskTypeHasPrefix,omitempty"` + RiskTypeHasSuffix *string `json:"riskTypeHasSuffix,omitempty"` + RiskTypeIsNil bool `json:"riskTypeIsNil,omitempty"` + RiskTypeNotNil bool `json:"riskTypeNotNil,omitempty"` + RiskTypeEqualFold *string `json:"riskTypeEqualFold,omitempty"` + RiskTypeContainsFold *string `json:"riskTypeContainsFold,omitempty"` + + // "business_costs" field predicates. + BusinessCosts *string `json:"businessCosts,omitempty"` + BusinessCostsNEQ *string `json:"businessCostsNEQ,omitempty"` + BusinessCostsIn []string `json:"businessCostsIn,omitempty"` + BusinessCostsNotIn []string `json:"businessCostsNotIn,omitempty"` + BusinessCostsGT *string `json:"businessCostsGT,omitempty"` + BusinessCostsGTE *string `json:"businessCostsGTE,omitempty"` + BusinessCostsLT *string `json:"businessCostsLT,omitempty"` + BusinessCostsLTE *string `json:"businessCostsLTE,omitempty"` + BusinessCostsContains *string `json:"businessCostsContains,omitempty"` + BusinessCostsHasPrefix *string `json:"businessCostsHasPrefix,omitempty"` + BusinessCostsHasSuffix *string `json:"businessCostsHasSuffix,omitempty"` + BusinessCostsIsNil bool `json:"businessCostsIsNil,omitempty"` + BusinessCostsNotNil bool `json:"businessCostsNotNil,omitempty"` + BusinessCostsEqualFold *string `json:"businessCostsEqualFold,omitempty"` + BusinessCostsContainsFold *string `json:"businessCostsContainsFold,omitempty"` + + // "impact" field predicates. + Impact *enums.RiskImpact `json:"impact,omitempty"` + ImpactNEQ *enums.RiskImpact `json:"impactNEQ,omitempty"` + ImpactIn []enums.RiskImpact `json:"impactIn,omitempty"` + ImpactNotIn []enums.RiskImpact `json:"impactNotIn,omitempty"` + ImpactIsNil bool `json:"impactIsNil,omitempty"` + ImpactNotNil bool `json:"impactNotNil,omitempty"` + + // "likelihood" field predicates. + Likelihood *enums.RiskLikelihood `json:"likelihood,omitempty"` + LikelihoodNEQ *enums.RiskLikelihood `json:"likelihoodNEQ,omitempty"` + LikelihoodIn []enums.RiskLikelihood `json:"likelihoodIn,omitempty"` + LikelihoodNotIn []enums.RiskLikelihood `json:"likelihoodNotIn,omitempty"` + LikelihoodIsNil bool `json:"likelihoodIsNil,omitempty"` + LikelihoodNotNil bool `json:"likelihoodNotNil,omitempty"` + + // "mitigation" field predicates. + Mitigation *string `json:"mitigation,omitempty"` + MitigationNEQ *string `json:"mitigationNEQ,omitempty"` + MitigationIn []string `json:"mitigationIn,omitempty"` + MitigationNotIn []string `json:"mitigationNotIn,omitempty"` + MitigationGT *string `json:"mitigationGT,omitempty"` + MitigationGTE *string `json:"mitigationGTE,omitempty"` + MitigationLT *string `json:"mitigationLT,omitempty"` + MitigationLTE *string `json:"mitigationLTE,omitempty"` + MitigationContains *string `json:"mitigationContains,omitempty"` + MitigationHasPrefix *string `json:"mitigationHasPrefix,omitempty"` + MitigationHasSuffix *string `json:"mitigationHasSuffix,omitempty"` + MitigationIsNil bool `json:"mitigationIsNil,omitempty"` + MitigationNotNil bool `json:"mitigationNotNil,omitempty"` + MitigationEqualFold *string `json:"mitigationEqualFold,omitempty"` + MitigationContainsFold *string `json:"mitigationContainsFold,omitempty"` + + // "satisfies" field predicates. + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNEQ *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGT *string `json:"satisfiesGT,omitempty"` + SatisfiesGTE *string `json:"satisfiesGTE,omitempty"` + SatisfiesLT *string `json:"satisfiesLT,omitempty"` + SatisfiesLTE *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *OrganizationWhereInput) AddPredicates(predicates ...predicate.Organization) { +func (i *RiskHistoryWhereInput) AddPredicates(predicates ...predicate.RiskHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the OrganizationWhereInput filter on the OrganizationQuery builder. -func (i *OrganizationWhereInput) Filter(q *OrganizationQuery) (*OrganizationQuery, error) { +// Filter applies the RiskHistoryWhereInput filter on the RiskHistoryQuery builder. +func (i *RiskHistoryWhereInput) Filter(q *RiskHistoryQuery) (*RiskHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyOrganizationWhereInput { + if err == ErrEmptyRiskHistoryWhereInput { return q, nil } return nil, err @@ -31139,19 +48748,19 @@ func (i *OrganizationWhereInput) Filter(q *OrganizationQuery) (*OrganizationQuer return q.Where(p), nil } -// ErrEmptyOrganizationWhereInput is returned in case the OrganizationWhereInput is empty. -var ErrEmptyOrganizationWhereInput = errors.New("generated: empty predicate OrganizationWhereInput") +// ErrEmptyRiskHistoryWhereInput is returned in case the RiskHistoryWhereInput is empty. +var ErrEmptyRiskHistoryWhereInput = errors.New("generated: empty predicate RiskHistoryWhereInput") -// P returns a predicate for filtering organizations. +// P returns a predicate for filtering riskhistories. // An error is returned if the input is empty or invalid. -func (i *OrganizationWhereInput) P() (predicate.Organization, error) { - var predicates []predicate.Organization +func (i *RiskHistoryWhereInput) P() (predicate.RiskHistory, error) { + var predicates []predicate.RiskHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, organization.Not(p)) + predicates = append(predicates, riskhistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -31161,7 +48770,7 @@ func (i *OrganizationWhereInput) P() (predicate.Organization, error) { } predicates = append(predicates, p) case n > 1: - or := make([]predicate.Organization, 0, n) + or := make([]predicate.RiskHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -31169,7 +48778,7 @@ func (i *OrganizationWhereInput) P() (predicate.Organization, error) { } or = append(or, p) } - predicates = append(predicates, organization.Or(or...)) + predicates = append(predicates, riskhistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -31179,7 +48788,7 @@ func (i *OrganizationWhereInput) P() (predicate.Organization, error) { } predicates = append(predicates, p) case n > 1: - and := make([]predicate.Organization, 0, n) + and := make([]predicate.RiskHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -31187,908 +48796,707 @@ func (i *OrganizationWhereInput) P() (predicate.Organization, error) { } and = append(and, p) } - predicates = append(predicates, organization.And(and...)) + predicates = append(predicates, riskhistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, organization.IDEQ(*i.ID)) + predicates = append(predicates, riskhistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, organization.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, riskhistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, organization.IDIn(i.IDIn...)) + predicates = append(predicates, riskhistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, organization.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, riskhistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, organization.IDGT(*i.IDGT)) + predicates = append(predicates, riskhistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, organization.IDGTE(*i.IDGTE)) + predicates = append(predicates, riskhistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, organization.IDLT(*i.IDLT)) + predicates = append(predicates, riskhistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, organization.IDLTE(*i.IDLTE)) + predicates = append(predicates, riskhistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, organization.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, riskhistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, organization.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, riskhistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, riskhistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, riskhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, riskhistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, riskhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, riskhistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, riskhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, riskhistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, riskhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, riskhistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, riskhistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, riskhistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, riskhistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, riskhistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, riskhistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, riskhistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, riskhistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, riskhistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, riskhistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, riskhistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, riskhistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, riskhistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, riskhistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, riskhistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, riskhistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, riskhistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, riskhistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, riskhistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, organization.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, riskhistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, organization.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, riskhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, organization.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, riskhistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, organization.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, riskhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, organization.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, riskhistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, organization.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, riskhistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, organization.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, riskhistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, organization.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, riskhistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, organization.CreatedAtIsNil()) + predicates = append(predicates, riskhistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, organization.CreatedAtNotNil()) + predicates = append(predicates, riskhistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, organization.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, riskhistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, organization.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, riskhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, organization.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, riskhistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, organization.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, riskhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, organization.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, riskhistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, organization.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, riskhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, organization.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, riskhistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, organization.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, riskhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, organization.UpdatedAtIsNil()) + predicates = append(predicates, riskhistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, organization.UpdatedAtNotNil()) + predicates = append(predicates, riskhistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, organization.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, riskhistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, organization.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, riskhistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, organization.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, riskhistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, organization.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, riskhistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, organization.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, riskhistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, organization.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, riskhistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, organization.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, riskhistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, organization.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, riskhistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, organization.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, riskhistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, organization.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, riskhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, organization.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, riskhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, organization.CreatedByIsNil()) + predicates = append(predicates, riskhistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, organization.CreatedByNotNil()) + predicates = append(predicates, riskhistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, organization.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, riskhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, organization.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, riskhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, organization.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, riskhistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, organization.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, riskhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, organization.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, riskhistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, organization.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, riskhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, organization.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, riskhistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, organization.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, riskhistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, organization.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, riskhistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, organization.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, riskhistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, organization.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, riskhistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, organization.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, riskhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, organization.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, riskhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, organization.UpdatedByIsNil()) + predicates = append(predicates, riskhistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, organization.UpdatedByNotNil()) + predicates = append(predicates, riskhistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, organization.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, riskhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, organization.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, riskhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, organization.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, riskhistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, organization.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, riskhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, organization.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, riskhistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, organization.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, riskhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, organization.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, riskhistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, organization.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, riskhistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, organization.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, riskhistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, organization.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, riskhistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, organization.DeletedAtIsNil()) + predicates = append(predicates, riskhistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, organization.DeletedAtNotNil()) + predicates = append(predicates, riskhistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, organization.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, riskhistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, organization.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, riskhistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, organization.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, riskhistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, organization.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, riskhistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, organization.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, riskhistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, organization.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, riskhistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, organization.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, riskhistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, organization.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, riskhistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, organization.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, riskhistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, organization.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, riskhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, organization.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, riskhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, organization.DeletedByIsNil()) + predicates = append(predicates, riskhistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, organization.DeletedByNotNil()) + predicates = append(predicates, riskhistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, organization.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, riskhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, organization.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, riskhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.DisplayName != nil { - predicates = append(predicates, organization.DisplayNameEQ(*i.DisplayName)) + if i.Name != nil { + predicates = append(predicates, riskhistory.NameEQ(*i.Name)) } - if i.DisplayNameNEQ != nil { - predicates = append(predicates, organization.DisplayNameNEQ(*i.DisplayNameNEQ)) + if i.NameNEQ != nil { + predicates = append(predicates, riskhistory.NameNEQ(*i.NameNEQ)) } - if len(i.DisplayNameIn) > 0 { - predicates = append(predicates, organization.DisplayNameIn(i.DisplayNameIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, riskhistory.NameIn(i.NameIn...)) } - if len(i.DisplayNameNotIn) > 0 { - predicates = append(predicates, organization.DisplayNameNotIn(i.DisplayNameNotIn...)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, riskhistory.NameNotIn(i.NameNotIn...)) } - if i.DisplayNameGT != nil { - predicates = append(predicates, organization.DisplayNameGT(*i.DisplayNameGT)) + if i.NameGT != nil { + predicates = append(predicates, riskhistory.NameGT(*i.NameGT)) } - if i.DisplayNameGTE != nil { - predicates = append(predicates, organization.DisplayNameGTE(*i.DisplayNameGTE)) + if i.NameGTE != nil { + predicates = append(predicates, riskhistory.NameGTE(*i.NameGTE)) } - if i.DisplayNameLT != nil { - predicates = append(predicates, organization.DisplayNameLT(*i.DisplayNameLT)) + if i.NameLT != nil { + predicates = append(predicates, riskhistory.NameLT(*i.NameLT)) } - if i.DisplayNameLTE != nil { - predicates = append(predicates, organization.DisplayNameLTE(*i.DisplayNameLTE)) + if i.NameLTE != nil { + predicates = append(predicates, riskhistory.NameLTE(*i.NameLTE)) } - if i.DisplayNameContains != nil { - predicates = append(predicates, organization.DisplayNameContains(*i.DisplayNameContains)) + if i.NameContains != nil { + predicates = append(predicates, riskhistory.NameContains(*i.NameContains)) } - if i.DisplayNameHasPrefix != nil { - predicates = append(predicates, organization.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + if i.NameHasPrefix != nil { + predicates = append(predicates, riskhistory.NameHasPrefix(*i.NameHasPrefix)) } - if i.DisplayNameHasSuffix != nil { - predicates = append(predicates, organization.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + if i.NameHasSuffix != nil { + predicates = append(predicates, riskhistory.NameHasSuffix(*i.NameHasSuffix)) } - if i.DisplayNameEqualFold != nil { - predicates = append(predicates, organization.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + if i.NameEqualFold != nil { + predicates = append(predicates, riskhistory.NameEqualFold(*i.NameEqualFold)) } - if i.DisplayNameContainsFold != nil { - predicates = append(predicates, organization.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + if i.NameContainsFold != nil { + predicates = append(predicates, riskhistory.NameContainsFold(*i.NameContainsFold)) } - if i.ParentOrganizationID != nil { - predicates = append(predicates, organization.ParentOrganizationIDEQ(*i.ParentOrganizationID)) + if i.Description != nil { + predicates = append(predicates, riskhistory.DescriptionEQ(*i.Description)) } - if i.ParentOrganizationIDNEQ != nil { - predicates = append(predicates, organization.ParentOrganizationIDNEQ(*i.ParentOrganizationIDNEQ)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, riskhistory.DescriptionNEQ(*i.DescriptionNEQ)) } - if len(i.ParentOrganizationIDIn) > 0 { - predicates = append(predicates, organization.ParentOrganizationIDIn(i.ParentOrganizationIDIn...)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, riskhistory.DescriptionIn(i.DescriptionIn...)) } - if len(i.ParentOrganizationIDNotIn) > 0 { - predicates = append(predicates, organization.ParentOrganizationIDNotIn(i.ParentOrganizationIDNotIn...)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, riskhistory.DescriptionNotIn(i.DescriptionNotIn...)) } - if i.ParentOrganizationIDGT != nil { - predicates = append(predicates, organization.ParentOrganizationIDGT(*i.ParentOrganizationIDGT)) + if i.DescriptionGT != nil { + predicates = append(predicates, riskhistory.DescriptionGT(*i.DescriptionGT)) } - if i.ParentOrganizationIDGTE != nil { - predicates = append(predicates, organization.ParentOrganizationIDGTE(*i.ParentOrganizationIDGTE)) + if i.DescriptionGTE != nil { + predicates = append(predicates, riskhistory.DescriptionGTE(*i.DescriptionGTE)) } - if i.ParentOrganizationIDLT != nil { - predicates = append(predicates, organization.ParentOrganizationIDLT(*i.ParentOrganizationIDLT)) + if i.DescriptionLT != nil { + predicates = append(predicates, riskhistory.DescriptionLT(*i.DescriptionLT)) } - if i.ParentOrganizationIDLTE != nil { - predicates = append(predicates, organization.ParentOrganizationIDLTE(*i.ParentOrganizationIDLTE)) + if i.DescriptionLTE != nil { + predicates = append(predicates, riskhistory.DescriptionLTE(*i.DescriptionLTE)) } - if i.ParentOrganizationIDContains != nil { - predicates = append(predicates, organization.ParentOrganizationIDContains(*i.ParentOrganizationIDContains)) + if i.DescriptionContains != nil { + predicates = append(predicates, riskhistory.DescriptionContains(*i.DescriptionContains)) } - if i.ParentOrganizationIDHasPrefix != nil { - predicates = append(predicates, organization.ParentOrganizationIDHasPrefix(*i.ParentOrganizationIDHasPrefix)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, riskhistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.ParentOrganizationIDHasSuffix != nil { - predicates = append(predicates, organization.ParentOrganizationIDHasSuffix(*i.ParentOrganizationIDHasSuffix)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, riskhistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.ParentOrganizationIDIsNil { - predicates = append(predicates, organization.ParentOrganizationIDIsNil()) + if i.DescriptionIsNil { + predicates = append(predicates, riskhistory.DescriptionIsNil()) } - if i.ParentOrganizationIDNotNil { - predicates = append(predicates, organization.ParentOrganizationIDNotNil()) + if i.DescriptionNotNil { + predicates = append(predicates, riskhistory.DescriptionNotNil()) } - if i.ParentOrganizationIDEqualFold != nil { - predicates = append(predicates, organization.ParentOrganizationIDEqualFold(*i.ParentOrganizationIDEqualFold)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, riskhistory.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.ParentOrganizationIDContainsFold != nil { - predicates = append(predicates, organization.ParentOrganizationIDContainsFold(*i.ParentOrganizationIDContainsFold)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, riskhistory.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.PersonalOrg != nil { - predicates = append(predicates, organization.PersonalOrgEQ(*i.PersonalOrg)) + if i.Status != nil { + predicates = append(predicates, riskhistory.StatusEQ(*i.Status)) } - if i.PersonalOrgNEQ != nil { - predicates = append(predicates, organization.PersonalOrgNEQ(*i.PersonalOrgNEQ)) + if i.StatusNEQ != nil { + predicates = append(predicates, riskhistory.StatusNEQ(*i.StatusNEQ)) } - if i.PersonalOrgIsNil { - predicates = append(predicates, organization.PersonalOrgIsNil()) + if len(i.StatusIn) > 0 { + predicates = append(predicates, riskhistory.StatusIn(i.StatusIn...)) } - if i.PersonalOrgNotNil { - predicates = append(predicates, organization.PersonalOrgNotNil()) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, riskhistory.StatusNotIn(i.StatusNotIn...)) } - if i.AvatarRemoteURL != nil { - predicates = append(predicates, organization.AvatarRemoteURLEQ(*i.AvatarRemoteURL)) + if i.StatusGT != nil { + predicates = append(predicates, riskhistory.StatusGT(*i.StatusGT)) } - if i.AvatarRemoteURLNEQ != nil { - predicates = append(predicates, organization.AvatarRemoteURLNEQ(*i.AvatarRemoteURLNEQ)) + if i.StatusGTE != nil { + predicates = append(predicates, riskhistory.StatusGTE(*i.StatusGTE)) } - if len(i.AvatarRemoteURLIn) > 0 { - predicates = append(predicates, organization.AvatarRemoteURLIn(i.AvatarRemoteURLIn...)) + if i.StatusLT != nil { + predicates = append(predicates, riskhistory.StatusLT(*i.StatusLT)) } - if len(i.AvatarRemoteURLNotIn) > 0 { - predicates = append(predicates, organization.AvatarRemoteURLNotIn(i.AvatarRemoteURLNotIn...)) + if i.StatusLTE != nil { + predicates = append(predicates, riskhistory.StatusLTE(*i.StatusLTE)) } - if i.AvatarRemoteURLGT != nil { - predicates = append(predicates, organization.AvatarRemoteURLGT(*i.AvatarRemoteURLGT)) + if i.StatusContains != nil { + predicates = append(predicates, riskhistory.StatusContains(*i.StatusContains)) } - if i.AvatarRemoteURLGTE != nil { - predicates = append(predicates, organization.AvatarRemoteURLGTE(*i.AvatarRemoteURLGTE)) + if i.StatusHasPrefix != nil { + predicates = append(predicates, riskhistory.StatusHasPrefix(*i.StatusHasPrefix)) } - if i.AvatarRemoteURLLT != nil { - predicates = append(predicates, organization.AvatarRemoteURLLT(*i.AvatarRemoteURLLT)) + if i.StatusHasSuffix != nil { + predicates = append(predicates, riskhistory.StatusHasSuffix(*i.StatusHasSuffix)) } - if i.AvatarRemoteURLLTE != nil { - predicates = append(predicates, organization.AvatarRemoteURLLTE(*i.AvatarRemoteURLLTE)) + if i.StatusIsNil { + predicates = append(predicates, riskhistory.StatusIsNil()) } - if i.AvatarRemoteURLContains != nil { - predicates = append(predicates, organization.AvatarRemoteURLContains(*i.AvatarRemoteURLContains)) + if i.StatusNotNil { + predicates = append(predicates, riskhistory.StatusNotNil()) } - if i.AvatarRemoteURLHasPrefix != nil { - predicates = append(predicates, organization.AvatarRemoteURLHasPrefix(*i.AvatarRemoteURLHasPrefix)) + if i.StatusEqualFold != nil { + predicates = append(predicates, riskhistory.StatusEqualFold(*i.StatusEqualFold)) } - if i.AvatarRemoteURLHasSuffix != nil { - predicates = append(predicates, organization.AvatarRemoteURLHasSuffix(*i.AvatarRemoteURLHasSuffix)) + if i.StatusContainsFold != nil { + predicates = append(predicates, riskhistory.StatusContainsFold(*i.StatusContainsFold)) } - if i.AvatarRemoteURLIsNil { - predicates = append(predicates, organization.AvatarRemoteURLIsNil()) + if i.RiskType != nil { + predicates = append(predicates, riskhistory.RiskTypeEQ(*i.RiskType)) } - if i.AvatarRemoteURLNotNil { - predicates = append(predicates, organization.AvatarRemoteURLNotNil()) + if i.RiskTypeNEQ != nil { + predicates = append(predicates, riskhistory.RiskTypeNEQ(*i.RiskTypeNEQ)) } - if i.AvatarRemoteURLEqualFold != nil { - predicates = append(predicates, organization.AvatarRemoteURLEqualFold(*i.AvatarRemoteURLEqualFold)) + if len(i.RiskTypeIn) > 0 { + predicates = append(predicates, riskhistory.RiskTypeIn(i.RiskTypeIn...)) } - if i.AvatarRemoteURLContainsFold != nil { - predicates = append(predicates, organization.AvatarRemoteURLContainsFold(*i.AvatarRemoteURLContainsFold)) + if len(i.RiskTypeNotIn) > 0 { + predicates = append(predicates, riskhistory.RiskTypeNotIn(i.RiskTypeNotIn...)) } - - if i.HasParent != nil { - p := organization.HasParent() - if !*i.HasParent { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.RiskTypeGT != nil { + predicates = append(predicates, riskhistory.RiskTypeGT(*i.RiskTypeGT)) } - if len(i.HasParentWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasParentWith)) - for _, w := range i.HasParentWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasParentWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasParentWith(with...)) + if i.RiskTypeGTE != nil { + predicates = append(predicates, riskhistory.RiskTypeGTE(*i.RiskTypeGTE)) } - if i.HasChildren != nil { - p := organization.HasChildren() - if !*i.HasChildren { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.RiskTypeLT != nil { + predicates = append(predicates, riskhistory.RiskTypeLT(*i.RiskTypeLT)) } - if len(i.HasChildrenWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasChildrenWith)) - for _, w := range i.HasChildrenWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasChildrenWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasChildrenWith(with...)) + if i.RiskTypeLTE != nil { + predicates = append(predicates, riskhistory.RiskTypeLTE(*i.RiskTypeLTE)) } - if i.HasGroups != nil { - p := organization.HasGroups() - if !*i.HasGroups { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.RiskTypeContains != nil { + predicates = append(predicates, riskhistory.RiskTypeContains(*i.RiskTypeContains)) } - if len(i.HasGroupsWith) > 0 { - with := make([]predicate.Group, 0, len(i.HasGroupsWith)) - for _, w := range i.HasGroupsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasGroupsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasGroupsWith(with...)) + if i.RiskTypeHasPrefix != nil { + predicates = append(predicates, riskhistory.RiskTypeHasPrefix(*i.RiskTypeHasPrefix)) } - if i.HasTemplates != nil { - p := organization.HasTemplates() - if !*i.HasTemplates { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.RiskTypeHasSuffix != nil { + predicates = append(predicates, riskhistory.RiskTypeHasSuffix(*i.RiskTypeHasSuffix)) } - if len(i.HasTemplatesWith) > 0 { - with := make([]predicate.Template, 0, len(i.HasTemplatesWith)) - for _, w := range i.HasTemplatesWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasTemplatesWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasTemplatesWith(with...)) + if i.RiskTypeIsNil { + predicates = append(predicates, riskhistory.RiskTypeIsNil()) } - if i.HasIntegrations != nil { - p := organization.HasIntegrations() - if !*i.HasIntegrations { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.RiskTypeNotNil { + predicates = append(predicates, riskhistory.RiskTypeNotNil()) } - if len(i.HasIntegrationsWith) > 0 { - with := make([]predicate.Integration, 0, len(i.HasIntegrationsWith)) - for _, w := range i.HasIntegrationsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasIntegrationsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasIntegrationsWith(with...)) + if i.RiskTypeEqualFold != nil { + predicates = append(predicates, riskhistory.RiskTypeEqualFold(*i.RiskTypeEqualFold)) } - if i.HasSetting != nil { - p := organization.HasSetting() - if !*i.HasSetting { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.RiskTypeContainsFold != nil { + predicates = append(predicates, riskhistory.RiskTypeContainsFold(*i.RiskTypeContainsFold)) } - if len(i.HasSettingWith) > 0 { - with := make([]predicate.OrganizationSetting, 0, len(i.HasSettingWith)) - for _, w := range i.HasSettingWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasSettingWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasSettingWith(with...)) + if i.BusinessCosts != nil { + predicates = append(predicates, riskhistory.BusinessCostsEQ(*i.BusinessCosts)) } - if i.HasDocumentdata != nil { - p := organization.HasDocumentdata() - if !*i.HasDocumentdata { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.BusinessCostsNEQ != nil { + predicates = append(predicates, riskhistory.BusinessCostsNEQ(*i.BusinessCostsNEQ)) } - if len(i.HasDocumentdataWith) > 0 { - with := make([]predicate.DocumentData, 0, len(i.HasDocumentdataWith)) - for _, w := range i.HasDocumentdataWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasDocumentdataWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasDocumentdataWith(with...)) + if len(i.BusinessCostsIn) > 0 { + predicates = append(predicates, riskhistory.BusinessCostsIn(i.BusinessCostsIn...)) } - if i.HasEntitlements != nil { - p := organization.HasEntitlements() - if !*i.HasEntitlements { - p = organization.Not(p) - } - predicates = append(predicates, p) + if len(i.BusinessCostsNotIn) > 0 { + predicates = append(predicates, riskhistory.BusinessCostsNotIn(i.BusinessCostsNotIn...)) } - if len(i.HasEntitlementsWith) > 0 { - with := make([]predicate.Entitlement, 0, len(i.HasEntitlementsWith)) - for _, w := range i.HasEntitlementsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntitlementsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasEntitlementsWith(with...)) + if i.BusinessCostsGT != nil { + predicates = append(predicates, riskhistory.BusinessCostsGT(*i.BusinessCostsGT)) } - if i.HasOrganizationEntitlement != nil { - p := organization.HasOrganizationEntitlement() - if !*i.HasOrganizationEntitlement { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.BusinessCostsGTE != nil { + predicates = append(predicates, riskhistory.BusinessCostsGTE(*i.BusinessCostsGTE)) } - if len(i.HasOrganizationEntitlementWith) > 0 { - with := make([]predicate.Entitlement, 0, len(i.HasOrganizationEntitlementWith)) - for _, w := range i.HasOrganizationEntitlementWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasOrganizationEntitlementWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasOrganizationEntitlementWith(with...)) + if i.BusinessCostsLT != nil { + predicates = append(predicates, riskhistory.BusinessCostsLT(*i.BusinessCostsLT)) } - if i.HasPersonalAccessTokens != nil { - p := organization.HasPersonalAccessTokens() - if !*i.HasPersonalAccessTokens { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.BusinessCostsLTE != nil { + predicates = append(predicates, riskhistory.BusinessCostsLTE(*i.BusinessCostsLTE)) } - if len(i.HasPersonalAccessTokensWith) > 0 { - with := make([]predicate.PersonalAccessToken, 0, len(i.HasPersonalAccessTokensWith)) - for _, w := range i.HasPersonalAccessTokensWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasPersonalAccessTokensWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasPersonalAccessTokensWith(with...)) + if i.BusinessCostsContains != nil { + predicates = append(predicates, riskhistory.BusinessCostsContains(*i.BusinessCostsContains)) } - if i.HasAPITokens != nil { - p := organization.HasAPITokens() - if !*i.HasAPITokens { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.BusinessCostsHasPrefix != nil { + predicates = append(predicates, riskhistory.BusinessCostsHasPrefix(*i.BusinessCostsHasPrefix)) } - if len(i.HasAPITokensWith) > 0 { - with := make([]predicate.APIToken, 0, len(i.HasAPITokensWith)) - for _, w := range i.HasAPITokensWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasAPITokensWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasAPITokensWith(with...)) + if i.BusinessCostsHasSuffix != nil { + predicates = append(predicates, riskhistory.BusinessCostsHasSuffix(*i.BusinessCostsHasSuffix)) + } + if i.BusinessCostsIsNil { + predicates = append(predicates, riskhistory.BusinessCostsIsNil()) + } + if i.BusinessCostsNotNil { + predicates = append(predicates, riskhistory.BusinessCostsNotNil()) + } + if i.BusinessCostsEqualFold != nil { + predicates = append(predicates, riskhistory.BusinessCostsEqualFold(*i.BusinessCostsEqualFold)) + } + if i.BusinessCostsContainsFold != nil { + predicates = append(predicates, riskhistory.BusinessCostsContainsFold(*i.BusinessCostsContainsFold)) + } + if i.Impact != nil { + predicates = append(predicates, riskhistory.ImpactEQ(*i.Impact)) + } + if i.ImpactNEQ != nil { + predicates = append(predicates, riskhistory.ImpactNEQ(*i.ImpactNEQ)) + } + if len(i.ImpactIn) > 0 { + predicates = append(predicates, riskhistory.ImpactIn(i.ImpactIn...)) + } + if len(i.ImpactNotIn) > 0 { + predicates = append(predicates, riskhistory.ImpactNotIn(i.ImpactNotIn...)) + } + if i.ImpactIsNil { + predicates = append(predicates, riskhistory.ImpactIsNil()) + } + if i.ImpactNotNil { + predicates = append(predicates, riskhistory.ImpactNotNil()) + } + if i.Likelihood != nil { + predicates = append(predicates, riskhistory.LikelihoodEQ(*i.Likelihood)) + } + if i.LikelihoodNEQ != nil { + predicates = append(predicates, riskhistory.LikelihoodNEQ(*i.LikelihoodNEQ)) + } + if len(i.LikelihoodIn) > 0 { + predicates = append(predicates, riskhistory.LikelihoodIn(i.LikelihoodIn...)) + } + if len(i.LikelihoodNotIn) > 0 { + predicates = append(predicates, riskhistory.LikelihoodNotIn(i.LikelihoodNotIn...)) } - if i.HasOauthprovider != nil { - p := organization.HasOauthprovider() - if !*i.HasOauthprovider { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.LikelihoodIsNil { + predicates = append(predicates, riskhistory.LikelihoodIsNil()) } - if len(i.HasOauthproviderWith) > 0 { - with := make([]predicate.OauthProvider, 0, len(i.HasOauthproviderWith)) - for _, w := range i.HasOauthproviderWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasOauthproviderWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasOauthproviderWith(with...)) + if i.LikelihoodNotNil { + predicates = append(predicates, riskhistory.LikelihoodNotNil()) } - if i.HasUsers != nil { - p := organization.HasUsers() - if !*i.HasUsers { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.Mitigation != nil { + predicates = append(predicates, riskhistory.MitigationEQ(*i.Mitigation)) } - if len(i.HasUsersWith) > 0 { - with := make([]predicate.User, 0, len(i.HasUsersWith)) - for _, w := range i.HasUsersWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasUsersWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasUsersWith(with...)) + if i.MitigationNEQ != nil { + predicates = append(predicates, riskhistory.MitigationNEQ(*i.MitigationNEQ)) } - if i.HasInvites != nil { - p := organization.HasInvites() - if !*i.HasInvites { - p = organization.Not(p) - } - predicates = append(predicates, p) + if len(i.MitigationIn) > 0 { + predicates = append(predicates, riskhistory.MitigationIn(i.MitigationIn...)) } - if len(i.HasInvitesWith) > 0 { - with := make([]predicate.Invite, 0, len(i.HasInvitesWith)) - for _, w := range i.HasInvitesWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasInvitesWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasInvitesWith(with...)) + if len(i.MitigationNotIn) > 0 { + predicates = append(predicates, riskhistory.MitigationNotIn(i.MitigationNotIn...)) } - if i.HasSubscribers != nil { - p := organization.HasSubscribers() - if !*i.HasSubscribers { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.MitigationGT != nil { + predicates = append(predicates, riskhistory.MitigationGT(*i.MitigationGT)) } - if len(i.HasSubscribersWith) > 0 { - with := make([]predicate.Subscriber, 0, len(i.HasSubscribersWith)) - for _, w := range i.HasSubscribersWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasSubscribersWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasSubscribersWith(with...)) + if i.MitigationGTE != nil { + predicates = append(predicates, riskhistory.MitigationGTE(*i.MitigationGTE)) } - if i.HasWebhooks != nil { - p := organization.HasWebhooks() - if !*i.HasWebhooks { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.MitigationLT != nil { + predicates = append(predicates, riskhistory.MitigationLT(*i.MitigationLT)) } - if len(i.HasWebhooksWith) > 0 { - with := make([]predicate.Webhook, 0, len(i.HasWebhooksWith)) - for _, w := range i.HasWebhooksWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasWebhooksWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasWebhooksWith(with...)) + if i.MitigationLTE != nil { + predicates = append(predicates, riskhistory.MitigationLTE(*i.MitigationLTE)) } - if i.HasEvents != nil { - p := organization.HasEvents() - if !*i.HasEvents { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.MitigationContains != nil { + predicates = append(predicates, riskhistory.MitigationContains(*i.MitigationContains)) } - if len(i.HasEventsWith) > 0 { - with := make([]predicate.Event, 0, len(i.HasEventsWith)) - for _, w := range i.HasEventsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasEventsWith(with...)) + if i.MitigationHasPrefix != nil { + predicates = append(predicates, riskhistory.MitigationHasPrefix(*i.MitigationHasPrefix)) } - if i.HasSecrets != nil { - p := organization.HasSecrets() - if !*i.HasSecrets { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.MitigationHasSuffix != nil { + predicates = append(predicates, riskhistory.MitigationHasSuffix(*i.MitigationHasSuffix)) } - if len(i.HasSecretsWith) > 0 { - with := make([]predicate.Hush, 0, len(i.HasSecretsWith)) - for _, w := range i.HasSecretsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasSecretsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasSecretsWith(with...)) + if i.MitigationIsNil { + predicates = append(predicates, riskhistory.MitigationIsNil()) } - if i.HasFeatures != nil { - p := organization.HasFeatures() - if !*i.HasFeatures { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.MitigationNotNil { + predicates = append(predicates, riskhistory.MitigationNotNil()) } - if len(i.HasFeaturesWith) > 0 { - with := make([]predicate.Feature, 0, len(i.HasFeaturesWith)) - for _, w := range i.HasFeaturesWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasFeaturesWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasFeaturesWith(with...)) + if i.MitigationEqualFold != nil { + predicates = append(predicates, riskhistory.MitigationEqualFold(*i.MitigationEqualFold)) } - if i.HasFiles != nil { - p := organization.HasFiles() - if !*i.HasFiles { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.MitigationContainsFold != nil { + predicates = append(predicates, riskhistory.MitigationContainsFold(*i.MitigationContainsFold)) } - if len(i.HasFilesWith) > 0 { - with := make([]predicate.File, 0, len(i.HasFilesWith)) - for _, w := range i.HasFilesWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasFilesWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasFilesWith(with...)) + if i.Satisfies != nil { + predicates = append(predicates, riskhistory.SatisfiesEQ(*i.Satisfies)) } - if i.HasEntitlementplans != nil { - p := organization.HasEntitlementplans() - if !*i.HasEntitlementplans { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.SatisfiesNEQ != nil { + predicates = append(predicates, riskhistory.SatisfiesNEQ(*i.SatisfiesNEQ)) } - if len(i.HasEntitlementplansWith) > 0 { - with := make([]predicate.EntitlementPlan, 0, len(i.HasEntitlementplansWith)) - for _, w := range i.HasEntitlementplansWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntitlementplansWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasEntitlementplansWith(with...)) + if len(i.SatisfiesIn) > 0 { + predicates = append(predicates, riskhistory.SatisfiesIn(i.SatisfiesIn...)) } - if i.HasEntitlementplanfeatures != nil { - p := organization.HasEntitlementplanfeatures() - if !*i.HasEntitlementplanfeatures { - p = organization.Not(p) - } - predicates = append(predicates, p) + if len(i.SatisfiesNotIn) > 0 { + predicates = append(predicates, riskhistory.SatisfiesNotIn(i.SatisfiesNotIn...)) } - if len(i.HasEntitlementplanfeaturesWith) > 0 { - with := make([]predicate.EntitlementPlanFeature, 0, len(i.HasEntitlementplanfeaturesWith)) - for _, w := range i.HasEntitlementplanfeaturesWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntitlementplanfeaturesWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasEntitlementplanfeaturesWith(with...)) + if i.SatisfiesGT != nil { + predicates = append(predicates, riskhistory.SatisfiesGT(*i.SatisfiesGT)) } - if i.HasEntities != nil { - p := organization.HasEntities() - if !*i.HasEntities { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.SatisfiesGTE != nil { + predicates = append(predicates, riskhistory.SatisfiesGTE(*i.SatisfiesGTE)) } - if len(i.HasEntitiesWith) > 0 { - with := make([]predicate.Entity, 0, len(i.HasEntitiesWith)) - for _, w := range i.HasEntitiesWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntitiesWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasEntitiesWith(with...)) + if i.SatisfiesLT != nil { + predicates = append(predicates, riskhistory.SatisfiesLT(*i.SatisfiesLT)) } - if i.HasEntitytypes != nil { - p := organization.HasEntitytypes() - if !*i.HasEntitytypes { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.SatisfiesLTE != nil { + predicates = append(predicates, riskhistory.SatisfiesLTE(*i.SatisfiesLTE)) } - if len(i.HasEntitytypesWith) > 0 { - with := make([]predicate.EntityType, 0, len(i.HasEntitytypesWith)) - for _, w := range i.HasEntitytypesWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEntitytypesWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasEntitytypesWith(with...)) + if i.SatisfiesContains != nil { + predicates = append(predicates, riskhistory.SatisfiesContains(*i.SatisfiesContains)) } - if i.HasContacts != nil { - p := organization.HasContacts() - if !*i.HasContacts { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.SatisfiesHasPrefix != nil { + predicates = append(predicates, riskhistory.SatisfiesHasPrefix(*i.SatisfiesHasPrefix)) } - if len(i.HasContactsWith) > 0 { - with := make([]predicate.Contact, 0, len(i.HasContactsWith)) - for _, w := range i.HasContactsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasContactsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasContactsWith(with...)) + if i.SatisfiesHasSuffix != nil { + predicates = append(predicates, riskhistory.SatisfiesHasSuffix(*i.SatisfiesHasSuffix)) } - if i.HasNotes != nil { - p := organization.HasNotes() - if !*i.HasNotes { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.SatisfiesIsNil { + predicates = append(predicates, riskhistory.SatisfiesIsNil()) } - if len(i.HasNotesWith) > 0 { - with := make([]predicate.Note, 0, len(i.HasNotesWith)) - for _, w := range i.HasNotesWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasNotesWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasNotesWith(with...)) + if i.SatisfiesNotNil { + predicates = append(predicates, riskhistory.SatisfiesNotNil()) } - if i.HasMembers != nil { - p := organization.HasMembers() - if !*i.HasMembers { - p = organization.Not(p) - } - predicates = append(predicates, p) + if i.SatisfiesEqualFold != nil { + predicates = append(predicates, riskhistory.SatisfiesEqualFold(*i.SatisfiesEqualFold)) } - if len(i.HasMembersWith) > 0 { - with := make([]predicate.OrgMembership, 0, len(i.HasMembersWith)) - for _, w := range i.HasMembersWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasMembersWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organization.HasMembersWith(with...)) + if i.SatisfiesContainsFold != nil { + predicates = append(predicates, riskhistory.SatisfiesContainsFold(*i.SatisfiesContainsFold)) } + switch len(predicates) { case 0: - return nil, ErrEmptyOrganizationWhereInput + return nil, ErrEmptyRiskHistoryWhereInput case 1: return predicates[0], nil default: - return organization.And(predicates...), nil + return riskhistory.And(predicates...), nil } } -// OrganizationHistoryWhereInput represents a where input for filtering OrganizationHistory queries. -type OrganizationHistoryWhereInput struct { - Predicates []predicate.OrganizationHistory `json:"-"` - Not *OrganizationHistoryWhereInput `json:"not,omitempty"` - Or []*OrganizationHistoryWhereInput `json:"or,omitempty"` - And []*OrganizationHistoryWhereInput `json:"and,omitempty"` +// StandardWhereInput represents a where input for filtering Standard queries. +type StandardWhereInput struct { + Predicates []predicate.Standard `json:"-"` + Not *StandardWhereInput `json:"not,omitempty"` + Or []*StandardWhereInput `json:"or,omitempty"` + And []*StandardWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -32102,39 +49510,6 @@ type OrganizationHistoryWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // "history_time" field predicates. - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` - RefGT *string `json:"refGT,omitempty"` - RefGTE *string `json:"refGTE,omitempty"` - RefLT *string `json:"refLT,omitempty"` - RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -32222,75 +49597,187 @@ type OrganizationHistoryWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "display_name" field predicates. - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNEQ *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGT *string `json:"displayNameGT,omitempty"` - DisplayNameGTE *string `json:"displayNameGTE,omitempty"` - DisplayNameLT *string `json:"displayNameLT,omitempty"` - DisplayNameLTE *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "parent_organization_id" field predicates. - ParentOrganizationID *string `json:"parentOrganizationID,omitempty"` - ParentOrganizationIDNEQ *string `json:"parentOrganizationIDNEQ,omitempty"` - ParentOrganizationIDIn []string `json:"parentOrganizationIDIn,omitempty"` - ParentOrganizationIDNotIn []string `json:"parentOrganizationIDNotIn,omitempty"` - ParentOrganizationIDGT *string `json:"parentOrganizationIDGT,omitempty"` - ParentOrganizationIDGTE *string `json:"parentOrganizationIDGTE,omitempty"` - ParentOrganizationIDLT *string `json:"parentOrganizationIDLT,omitempty"` - ParentOrganizationIDLTE *string `json:"parentOrganizationIDLTE,omitempty"` - ParentOrganizationIDContains *string `json:"parentOrganizationIDContains,omitempty"` - ParentOrganizationIDHasPrefix *string `json:"parentOrganizationIDHasPrefix,omitempty"` - ParentOrganizationIDHasSuffix *string `json:"parentOrganizationIDHasSuffix,omitempty"` - ParentOrganizationIDIsNil bool `json:"parentOrganizationIDIsNil,omitempty"` - ParentOrganizationIDNotNil bool `json:"parentOrganizationIDNotNil,omitempty"` - ParentOrganizationIDEqualFold *string `json:"parentOrganizationIDEqualFold,omitempty"` - ParentOrganizationIDContainsFold *string `json:"parentOrganizationIDContainsFold,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` - // "personal_org" field predicates. - PersonalOrg *bool `json:"personalOrg,omitempty"` - PersonalOrgNEQ *bool `json:"personalOrgNEQ,omitempty"` - PersonalOrgIsNil bool `json:"personalOrgIsNil,omitempty"` - PersonalOrgNotNil bool `json:"personalOrgNotNil,omitempty"` + // "family" field predicates. + Family *string `json:"family,omitempty"` + FamilyNEQ *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGT *string `json:"familyGT,omitempty"` + FamilyGTE *string `json:"familyGTE,omitempty"` + FamilyLT *string `json:"familyLT,omitempty"` + FamilyLTE *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil bool `json:"familyIsNil,omitempty"` + FamilyNotNil bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` - // "avatar_remote_url" field predicates. - AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` - AvatarRemoteURLNEQ *string `json:"avatarRemoteURLNEQ,omitempty"` - AvatarRemoteURLIn []string `json:"avatarRemoteURLIn,omitempty"` - AvatarRemoteURLNotIn []string `json:"avatarRemoteURLNotIn,omitempty"` - AvatarRemoteURLGT *string `json:"avatarRemoteURLGT,omitempty"` - AvatarRemoteURLGTE *string `json:"avatarRemoteURLGTE,omitempty"` - AvatarRemoteURLLT *string `json:"avatarRemoteURLLT,omitempty"` - AvatarRemoteURLLTE *string `json:"avatarRemoteURLLTE,omitempty"` - AvatarRemoteURLContains *string `json:"avatarRemoteURLContains,omitempty"` - AvatarRemoteURLHasPrefix *string `json:"avatarRemoteURLHasPrefix,omitempty"` - AvatarRemoteURLHasSuffix *string `json:"avatarRemoteURLHasSuffix,omitempty"` - AvatarRemoteURLIsNil bool `json:"avatarRemoteURLIsNil,omitempty"` - AvatarRemoteURLNotNil bool `json:"avatarRemoteURLNotNil,omitempty"` - AvatarRemoteURLEqualFold *string `json:"avatarRemoteURLEqualFold,omitempty"` - AvatarRemoteURLContainsFold *string `json:"avatarRemoteURLContainsFold,omitempty"` + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + + // "standard_type" field predicates. + StandardType *string `json:"standardType,omitempty"` + StandardTypeNEQ *string `json:"standardTypeNEQ,omitempty"` + StandardTypeIn []string `json:"standardTypeIn,omitempty"` + StandardTypeNotIn []string `json:"standardTypeNotIn,omitempty"` + StandardTypeGT *string `json:"standardTypeGT,omitempty"` + StandardTypeGTE *string `json:"standardTypeGTE,omitempty"` + StandardTypeLT *string `json:"standardTypeLT,omitempty"` + StandardTypeLTE *string `json:"standardTypeLTE,omitempty"` + StandardTypeContains *string `json:"standardTypeContains,omitempty"` + StandardTypeHasPrefix *string `json:"standardTypeHasPrefix,omitempty"` + StandardTypeHasSuffix *string `json:"standardTypeHasSuffix,omitempty"` + StandardTypeIsNil bool `json:"standardTypeIsNil,omitempty"` + StandardTypeNotNil bool `json:"standardTypeNotNil,omitempty"` + StandardTypeEqualFold *string `json:"standardTypeEqualFold,omitempty"` + StandardTypeContainsFold *string `json:"standardTypeContainsFold,omitempty"` + + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil bool `json:"versionIsNil,omitempty"` + VersionNotNil bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + + // "purpose_and_scope" field predicates. + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + PurposeAndScopeNEQ *string `json:"purposeAndScopeNEQ,omitempty"` + PurposeAndScopeIn []string `json:"purposeAndScopeIn,omitempty"` + PurposeAndScopeNotIn []string `json:"purposeAndScopeNotIn,omitempty"` + PurposeAndScopeGT *string `json:"purposeAndScopeGT,omitempty"` + PurposeAndScopeGTE *string `json:"purposeAndScopeGTE,omitempty"` + PurposeAndScopeLT *string `json:"purposeAndScopeLT,omitempty"` + PurposeAndScopeLTE *string `json:"purposeAndScopeLTE,omitempty"` + PurposeAndScopeContains *string `json:"purposeAndScopeContains,omitempty"` + PurposeAndScopeHasPrefix *string `json:"purposeAndScopeHasPrefix,omitempty"` + PurposeAndScopeHasSuffix *string `json:"purposeAndScopeHasSuffix,omitempty"` + PurposeAndScopeIsNil bool `json:"purposeAndScopeIsNil,omitempty"` + PurposeAndScopeNotNil bool `json:"purposeAndScopeNotNil,omitempty"` + PurposeAndScopeEqualFold *string `json:"purposeAndScopeEqualFold,omitempty"` + PurposeAndScopeContainsFold *string `json:"purposeAndScopeContainsFold,omitempty"` + + // "background" field predicates. + Background *string `json:"background,omitempty"` + BackgroundNEQ *string `json:"backgroundNEQ,omitempty"` + BackgroundIn []string `json:"backgroundIn,omitempty"` + BackgroundNotIn []string `json:"backgroundNotIn,omitempty"` + BackgroundGT *string `json:"backgroundGT,omitempty"` + BackgroundGTE *string `json:"backgroundGTE,omitempty"` + BackgroundLT *string `json:"backgroundLT,omitempty"` + BackgroundLTE *string `json:"backgroundLTE,omitempty"` + BackgroundContains *string `json:"backgroundContains,omitempty"` + BackgroundHasPrefix *string `json:"backgroundHasPrefix,omitempty"` + BackgroundHasSuffix *string `json:"backgroundHasSuffix,omitempty"` + BackgroundIsNil bool `json:"backgroundIsNil,omitempty"` + BackgroundNotNil bool `json:"backgroundNotNil,omitempty"` + BackgroundEqualFold *string `json:"backgroundEqualFold,omitempty"` + BackgroundContainsFold *string `json:"backgroundContainsFold,omitempty"` + + // "satisfies" field predicates. + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNEQ *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGT *string `json:"satisfiesGT,omitempty"` + SatisfiesGTE *string `json:"satisfiesGTE,omitempty"` + SatisfiesLT *string `json:"satisfiesLT,omitempty"` + SatisfiesLTE *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` + + // "controlobjectives" edge predicates. + HasControlobjectives *bool `json:"hasControlobjectives,omitempty"` + HasControlobjectivesWith []*ControlObjectiveWhereInput `json:"hasControlobjectivesWith,omitempty"` + + // "controls" edge predicates. + HasControls *bool `json:"hasControls,omitempty"` + HasControlsWith []*ControlWhereInput `json:"hasControlsWith,omitempty"` + + // "procedures" edge predicates. + HasProcedures *bool `json:"hasProcedures,omitempty"` + HasProceduresWith []*ProcedureWhereInput `json:"hasProceduresWith,omitempty"` + + // "actionplans" edge predicates. + HasActionplans *bool `json:"hasActionplans,omitempty"` + HasActionplansWith []*ActionPlanWhereInput `json:"hasActionplansWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *OrganizationHistoryWhereInput) AddPredicates(predicates ...predicate.OrganizationHistory) { +func (i *StandardWhereInput) AddPredicates(predicates ...predicate.Standard) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the OrganizationHistoryWhereInput filter on the OrganizationHistoryQuery builder. -func (i *OrganizationHistoryWhereInput) Filter(q *OrganizationHistoryQuery) (*OrganizationHistoryQuery, error) { +// Filter applies the StandardWhereInput filter on the StandardQuery builder. +func (i *StandardWhereInput) Filter(q *StandardQuery) (*StandardQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyOrganizationHistoryWhereInput { + if err == ErrEmptyStandardWhereInput { return q, nil } return nil, err @@ -32298,19 +49785,19 @@ func (i *OrganizationHistoryWhereInput) Filter(q *OrganizationHistoryQuery) (*Or return q.Where(p), nil } -// ErrEmptyOrganizationHistoryWhereInput is returned in case the OrganizationHistoryWhereInput is empty. -var ErrEmptyOrganizationHistoryWhereInput = errors.New("generated: empty predicate OrganizationHistoryWhereInput") +// ErrEmptyStandardWhereInput is returned in case the StandardWhereInput is empty. +var ErrEmptyStandardWhereInput = errors.New("generated: empty predicate StandardWhereInput") -// P returns a predicate for filtering organizationhistories. +// P returns a predicate for filtering standards. // An error is returned if the input is empty or invalid. -func (i *OrganizationHistoryWhereInput) P() (predicate.OrganizationHistory, error) { - var predicates []predicate.OrganizationHistory +func (i *StandardWhereInput) P() (predicate.Standard, error) { + var predicates []predicate.Standard if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, organizationhistory.Not(p)) + predicates = append(predicates, standard.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -32320,7 +49807,7 @@ func (i *OrganizationHistoryWhereInput) P() (predicate.OrganizationHistory, erro } predicates = append(predicates, p) case n > 1: - or := make([]predicate.OrganizationHistory, 0, n) + or := make([]predicate.Standard, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -32328,7 +49815,7 @@ func (i *OrganizationHistoryWhereInput) P() (predicate.OrganizationHistory, erro } or = append(or, p) } - predicates = append(predicates, organizationhistory.Or(or...)) + predicates = append(predicates, standard.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -32338,7 +49825,7 @@ func (i *OrganizationHistoryWhereInput) P() (predicate.OrganizationHistory, erro } predicates = append(predicates, p) case n > 1: - and := make([]predicate.OrganizationHistory, 0, n) + and := make([]predicate.Standard, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -32346,503 +49833,752 @@ func (i *OrganizationHistoryWhereInput) P() (predicate.OrganizationHistory, erro } and = append(and, p) } - predicates = append(predicates, organizationhistory.And(and...)) + predicates = append(predicates, standard.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, organizationhistory.IDEQ(*i.ID)) + predicates = append(predicates, standard.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, organizationhistory.IDNEQ(*i.IDNEQ)) - } - if len(i.IDIn) > 0 { - predicates = append(predicates, organizationhistory.IDIn(i.IDIn...)) - } - if len(i.IDNotIn) > 0 { - predicates = append(predicates, organizationhistory.IDNotIn(i.IDNotIn...)) - } - if i.IDGT != nil { - predicates = append(predicates, organizationhistory.IDGT(*i.IDGT)) - } - if i.IDGTE != nil { - predicates = append(predicates, organizationhistory.IDGTE(*i.IDGTE)) - } - if i.IDLT != nil { - predicates = append(predicates, organizationhistory.IDLT(*i.IDLT)) - } - if i.IDLTE != nil { - predicates = append(predicates, organizationhistory.IDLTE(*i.IDLTE)) - } - if i.IDEqualFold != nil { - predicates = append(predicates, organizationhistory.IDEqualFold(*i.IDEqualFold)) - } - if i.IDContainsFold != nil { - predicates = append(predicates, organizationhistory.IDContainsFold(*i.IDContainsFold)) - } - if i.HistoryTime != nil { - predicates = append(predicates, organizationhistory.HistoryTimeEQ(*i.HistoryTime)) - } - if i.HistoryTimeNEQ != nil { - predicates = append(predicates, organizationhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) - } - if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, organizationhistory.HistoryTimeIn(i.HistoryTimeIn...)) - } - if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, organizationhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) - } - if i.HistoryTimeGT != nil { - predicates = append(predicates, organizationhistory.HistoryTimeGT(*i.HistoryTimeGT)) - } - if i.HistoryTimeGTE != nil { - predicates = append(predicates, organizationhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) - } - if i.HistoryTimeLT != nil { - predicates = append(predicates, organizationhistory.HistoryTimeLT(*i.HistoryTimeLT)) - } - if i.HistoryTimeLTE != nil { - predicates = append(predicates, organizationhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) - } - if i.Ref != nil { - predicates = append(predicates, organizationhistory.RefEQ(*i.Ref)) - } - if i.RefNEQ != nil { - predicates = append(predicates, organizationhistory.RefNEQ(*i.RefNEQ)) - } - if len(i.RefIn) > 0 { - predicates = append(predicates, organizationhistory.RefIn(i.RefIn...)) - } - if len(i.RefNotIn) > 0 { - predicates = append(predicates, organizationhistory.RefNotIn(i.RefNotIn...)) - } - if i.RefGT != nil { - predicates = append(predicates, organizationhistory.RefGT(*i.RefGT)) - } - if i.RefGTE != nil { - predicates = append(predicates, organizationhistory.RefGTE(*i.RefGTE)) - } - if i.RefLT != nil { - predicates = append(predicates, organizationhistory.RefLT(*i.RefLT)) - } - if i.RefLTE != nil { - predicates = append(predicates, organizationhistory.RefLTE(*i.RefLTE)) - } - if i.RefContains != nil { - predicates = append(predicates, organizationhistory.RefContains(*i.RefContains)) - } - if i.RefHasPrefix != nil { - predicates = append(predicates, organizationhistory.RefHasPrefix(*i.RefHasPrefix)) - } - if i.RefHasSuffix != nil { - predicates = append(predicates, organizationhistory.RefHasSuffix(*i.RefHasSuffix)) - } - if i.RefIsNil { - predicates = append(predicates, organizationhistory.RefIsNil()) + predicates = append(predicates, standard.IDNEQ(*i.IDNEQ)) } - if i.RefNotNil { - predicates = append(predicates, organizationhistory.RefNotNil()) + if len(i.IDIn) > 0 { + predicates = append(predicates, standard.IDIn(i.IDIn...)) } - if i.RefEqualFold != nil { - predicates = append(predicates, organizationhistory.RefEqualFold(*i.RefEqualFold)) + if len(i.IDNotIn) > 0 { + predicates = append(predicates, standard.IDNotIn(i.IDNotIn...)) } - if i.RefContainsFold != nil { - predicates = append(predicates, organizationhistory.RefContainsFold(*i.RefContainsFold)) + if i.IDGT != nil { + predicates = append(predicates, standard.IDGT(*i.IDGT)) } - if i.Operation != nil { - predicates = append(predicates, organizationhistory.OperationEQ(*i.Operation)) + if i.IDGTE != nil { + predicates = append(predicates, standard.IDGTE(*i.IDGTE)) } - if i.OperationNEQ != nil { - predicates = append(predicates, organizationhistory.OperationNEQ(*i.OperationNEQ)) + if i.IDLT != nil { + predicates = append(predicates, standard.IDLT(*i.IDLT)) } - if len(i.OperationIn) > 0 { - predicates = append(predicates, organizationhistory.OperationIn(i.OperationIn...)) + if i.IDLTE != nil { + predicates = append(predicates, standard.IDLTE(*i.IDLTE)) } - if len(i.OperationNotIn) > 0 { - predicates = append(predicates, organizationhistory.OperationNotIn(i.OperationNotIn...)) + if i.IDEqualFold != nil { + predicates = append(predicates, standard.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, standard.IDContainsFold(*i.IDContainsFold)) } if i.CreatedAt != nil { - predicates = append(predicates, organizationhistory.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, standard.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, organizationhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, standard.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, organizationhistory.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, standard.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, organizationhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, standard.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, organizationhistory.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, standard.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, organizationhistory.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, standard.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, organizationhistory.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, standard.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, organizationhistory.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, standard.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, organizationhistory.CreatedAtIsNil()) + predicates = append(predicates, standard.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, organizationhistory.CreatedAtNotNil()) + predicates = append(predicates, standard.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, organizationhistory.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, standard.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, organizationhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, standard.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, organizationhistory.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, standard.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, organizationhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, standard.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, organizationhistory.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, standard.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, organizationhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, standard.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, organizationhistory.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, standard.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, organizationhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, standard.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, organizationhistory.UpdatedAtIsNil()) + predicates = append(predicates, standard.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, organizationhistory.UpdatedAtNotNil()) + predicates = append(predicates, standard.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, organizationhistory.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, standard.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, organizationhistory.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, standard.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, organizationhistory.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, standard.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, organizationhistory.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, standard.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, organizationhistory.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, standard.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, organizationhistory.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, standard.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, organizationhistory.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, standard.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, organizationhistory.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, standard.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, organizationhistory.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, standard.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, organizationhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, standard.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, organizationhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, standard.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, organizationhistory.CreatedByIsNil()) + predicates = append(predicates, standard.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, organizationhistory.CreatedByNotNil()) + predicates = append(predicates, standard.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, organizationhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, standard.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, organizationhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, standard.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, organizationhistory.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, standard.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, organizationhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, standard.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, organizationhistory.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, standard.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, organizationhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, standard.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, organizationhistory.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, standard.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, organizationhistory.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, standard.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, organizationhistory.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, standard.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, organizationhistory.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, standard.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, organizationhistory.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, standard.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, organizationhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, standard.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, organizationhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, standard.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, organizationhistory.UpdatedByIsNil()) + predicates = append(predicates, standard.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, organizationhistory.UpdatedByNotNil()) + predicates = append(predicates, standard.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, organizationhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, standard.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, organizationhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, standard.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, organizationhistory.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, standard.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, organizationhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, standard.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, organizationhistory.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, standard.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, organizationhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, standard.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, organizationhistory.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, standard.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, organizationhistory.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, standard.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, organizationhistory.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, standard.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, organizationhistory.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, standard.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, organizationhistory.DeletedAtIsNil()) + predicates = append(predicates, standard.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, organizationhistory.DeletedAtNotNil()) + predicates = append(predicates, standard.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, organizationhistory.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, standard.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, organizationhistory.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, standard.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, organizationhistory.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, standard.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, organizationhistory.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, standard.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, organizationhistory.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, standard.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, organizationhistory.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, standard.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, organizationhistory.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, standard.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, organizationhistory.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, standard.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, organizationhistory.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, standard.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, organizationhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, standard.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, organizationhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, standard.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, organizationhistory.DeletedByIsNil()) + predicates = append(predicates, standard.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, organizationhistory.DeletedByNotNil()) + predicates = append(predicates, standard.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, organizationhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, standard.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, organizationhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, standard.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.DisplayName != nil { - predicates = append(predicates, organizationhistory.DisplayNameEQ(*i.DisplayName)) + if i.Name != nil { + predicates = append(predicates, standard.NameEQ(*i.Name)) } - if i.DisplayNameNEQ != nil { - predicates = append(predicates, organizationhistory.DisplayNameNEQ(*i.DisplayNameNEQ)) + if i.NameNEQ != nil { + predicates = append(predicates, standard.NameNEQ(*i.NameNEQ)) } - if len(i.DisplayNameIn) > 0 { - predicates = append(predicates, organizationhistory.DisplayNameIn(i.DisplayNameIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, standard.NameIn(i.NameIn...)) } - if len(i.DisplayNameNotIn) > 0 { - predicates = append(predicates, organizationhistory.DisplayNameNotIn(i.DisplayNameNotIn...)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, standard.NameNotIn(i.NameNotIn...)) } - if i.DisplayNameGT != nil { - predicates = append(predicates, organizationhistory.DisplayNameGT(*i.DisplayNameGT)) + if i.NameGT != nil { + predicates = append(predicates, standard.NameGT(*i.NameGT)) } - if i.DisplayNameGTE != nil { - predicates = append(predicates, organizationhistory.DisplayNameGTE(*i.DisplayNameGTE)) + if i.NameGTE != nil { + predicates = append(predicates, standard.NameGTE(*i.NameGTE)) } - if i.DisplayNameLT != nil { - predicates = append(predicates, organizationhistory.DisplayNameLT(*i.DisplayNameLT)) + if i.NameLT != nil { + predicates = append(predicates, standard.NameLT(*i.NameLT)) } - if i.DisplayNameLTE != nil { - predicates = append(predicates, organizationhistory.DisplayNameLTE(*i.DisplayNameLTE)) + if i.NameLTE != nil { + predicates = append(predicates, standard.NameLTE(*i.NameLTE)) } - if i.DisplayNameContains != nil { - predicates = append(predicates, organizationhistory.DisplayNameContains(*i.DisplayNameContains)) + if i.NameContains != nil { + predicates = append(predicates, standard.NameContains(*i.NameContains)) } - if i.DisplayNameHasPrefix != nil { - predicates = append(predicates, organizationhistory.DisplayNameHasPrefix(*i.DisplayNameHasPrefix)) + if i.NameHasPrefix != nil { + predicates = append(predicates, standard.NameHasPrefix(*i.NameHasPrefix)) } - if i.DisplayNameHasSuffix != nil { - predicates = append(predicates, organizationhistory.DisplayNameHasSuffix(*i.DisplayNameHasSuffix)) + if i.NameHasSuffix != nil { + predicates = append(predicates, standard.NameHasSuffix(*i.NameHasSuffix)) } - if i.DisplayNameEqualFold != nil { - predicates = append(predicates, organizationhistory.DisplayNameEqualFold(*i.DisplayNameEqualFold)) + if i.NameEqualFold != nil { + predicates = append(predicates, standard.NameEqualFold(*i.NameEqualFold)) } - if i.DisplayNameContainsFold != nil { - predicates = append(predicates, organizationhistory.DisplayNameContainsFold(*i.DisplayNameContainsFold)) + if i.NameContainsFold != nil { + predicates = append(predicates, standard.NameContainsFold(*i.NameContainsFold)) } - if i.ParentOrganizationID != nil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDEQ(*i.ParentOrganizationID)) + if i.Description != nil { + predicates = append(predicates, standard.DescriptionEQ(*i.Description)) } - if i.ParentOrganizationIDNEQ != nil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDNEQ(*i.ParentOrganizationIDNEQ)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, standard.DescriptionNEQ(*i.DescriptionNEQ)) } - if len(i.ParentOrganizationIDIn) > 0 { - predicates = append(predicates, organizationhistory.ParentOrganizationIDIn(i.ParentOrganizationIDIn...)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, standard.DescriptionIn(i.DescriptionIn...)) } - if len(i.ParentOrganizationIDNotIn) > 0 { - predicates = append(predicates, organizationhistory.ParentOrganizationIDNotIn(i.ParentOrganizationIDNotIn...)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, standard.DescriptionNotIn(i.DescriptionNotIn...)) } - if i.ParentOrganizationIDGT != nil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDGT(*i.ParentOrganizationIDGT)) + if i.DescriptionGT != nil { + predicates = append(predicates, standard.DescriptionGT(*i.DescriptionGT)) } - if i.ParentOrganizationIDGTE != nil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDGTE(*i.ParentOrganizationIDGTE)) + if i.DescriptionGTE != nil { + predicates = append(predicates, standard.DescriptionGTE(*i.DescriptionGTE)) } - if i.ParentOrganizationIDLT != nil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDLT(*i.ParentOrganizationIDLT)) + if i.DescriptionLT != nil { + predicates = append(predicates, standard.DescriptionLT(*i.DescriptionLT)) } - if i.ParentOrganizationIDLTE != nil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDLTE(*i.ParentOrganizationIDLTE)) + if i.DescriptionLTE != nil { + predicates = append(predicates, standard.DescriptionLTE(*i.DescriptionLTE)) } - if i.ParentOrganizationIDContains != nil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDContains(*i.ParentOrganizationIDContains)) + if i.DescriptionContains != nil { + predicates = append(predicates, standard.DescriptionContains(*i.DescriptionContains)) } - if i.ParentOrganizationIDHasPrefix != nil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDHasPrefix(*i.ParentOrganizationIDHasPrefix)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, standard.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.ParentOrganizationIDHasSuffix != nil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDHasSuffix(*i.ParentOrganizationIDHasSuffix)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, standard.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.ParentOrganizationIDIsNil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDIsNil()) + if i.DescriptionIsNil { + predicates = append(predicates, standard.DescriptionIsNil()) } - if i.ParentOrganizationIDNotNil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDNotNil()) + if i.DescriptionNotNil { + predicates = append(predicates, standard.DescriptionNotNil()) } - if i.ParentOrganizationIDEqualFold != nil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDEqualFold(*i.ParentOrganizationIDEqualFold)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, standard.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.ParentOrganizationIDContainsFold != nil { - predicates = append(predicates, organizationhistory.ParentOrganizationIDContainsFold(*i.ParentOrganizationIDContainsFold)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, standard.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.PersonalOrg != nil { - predicates = append(predicates, organizationhistory.PersonalOrgEQ(*i.PersonalOrg)) + if i.Family != nil { + predicates = append(predicates, standard.FamilyEQ(*i.Family)) } - if i.PersonalOrgNEQ != nil { - predicates = append(predicates, organizationhistory.PersonalOrgNEQ(*i.PersonalOrgNEQ)) + if i.FamilyNEQ != nil { + predicates = append(predicates, standard.FamilyNEQ(*i.FamilyNEQ)) } - if i.PersonalOrgIsNil { - predicates = append(predicates, organizationhistory.PersonalOrgIsNil()) + if len(i.FamilyIn) > 0 { + predicates = append(predicates, standard.FamilyIn(i.FamilyIn...)) } - if i.PersonalOrgNotNil { - predicates = append(predicates, organizationhistory.PersonalOrgNotNil()) + if len(i.FamilyNotIn) > 0 { + predicates = append(predicates, standard.FamilyNotIn(i.FamilyNotIn...)) } - if i.AvatarRemoteURL != nil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLEQ(*i.AvatarRemoteURL)) + if i.FamilyGT != nil { + predicates = append(predicates, standard.FamilyGT(*i.FamilyGT)) } - if i.AvatarRemoteURLNEQ != nil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLNEQ(*i.AvatarRemoteURLNEQ)) + if i.FamilyGTE != nil { + predicates = append(predicates, standard.FamilyGTE(*i.FamilyGTE)) } - if len(i.AvatarRemoteURLIn) > 0 { - predicates = append(predicates, organizationhistory.AvatarRemoteURLIn(i.AvatarRemoteURLIn...)) + if i.FamilyLT != nil { + predicates = append(predicates, standard.FamilyLT(*i.FamilyLT)) } - if len(i.AvatarRemoteURLNotIn) > 0 { - predicates = append(predicates, organizationhistory.AvatarRemoteURLNotIn(i.AvatarRemoteURLNotIn...)) + if i.FamilyLTE != nil { + predicates = append(predicates, standard.FamilyLTE(*i.FamilyLTE)) } - if i.AvatarRemoteURLGT != nil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLGT(*i.AvatarRemoteURLGT)) + if i.FamilyContains != nil { + predicates = append(predicates, standard.FamilyContains(*i.FamilyContains)) } - if i.AvatarRemoteURLGTE != nil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLGTE(*i.AvatarRemoteURLGTE)) + if i.FamilyHasPrefix != nil { + predicates = append(predicates, standard.FamilyHasPrefix(*i.FamilyHasPrefix)) } - if i.AvatarRemoteURLLT != nil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLLT(*i.AvatarRemoteURLLT)) + if i.FamilyHasSuffix != nil { + predicates = append(predicates, standard.FamilyHasSuffix(*i.FamilyHasSuffix)) } - if i.AvatarRemoteURLLTE != nil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLLTE(*i.AvatarRemoteURLLTE)) + if i.FamilyIsNil { + predicates = append(predicates, standard.FamilyIsNil()) } - if i.AvatarRemoteURLContains != nil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLContains(*i.AvatarRemoteURLContains)) + if i.FamilyNotNil { + predicates = append(predicates, standard.FamilyNotNil()) } - if i.AvatarRemoteURLHasPrefix != nil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLHasPrefix(*i.AvatarRemoteURLHasPrefix)) + if i.FamilyEqualFold != nil { + predicates = append(predicates, standard.FamilyEqualFold(*i.FamilyEqualFold)) } - if i.AvatarRemoteURLHasSuffix != nil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLHasSuffix(*i.AvatarRemoteURLHasSuffix)) + if i.FamilyContainsFold != nil { + predicates = append(predicates, standard.FamilyContainsFold(*i.FamilyContainsFold)) } - if i.AvatarRemoteURLIsNil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLIsNil()) + if i.Status != nil { + predicates = append(predicates, standard.StatusEQ(*i.Status)) } - if i.AvatarRemoteURLNotNil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLNotNil()) + if i.StatusNEQ != nil { + predicates = append(predicates, standard.StatusNEQ(*i.StatusNEQ)) } - if i.AvatarRemoteURLEqualFold != nil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLEqualFold(*i.AvatarRemoteURLEqualFold)) + if len(i.StatusIn) > 0 { + predicates = append(predicates, standard.StatusIn(i.StatusIn...)) } - if i.AvatarRemoteURLContainsFold != nil { - predicates = append(predicates, organizationhistory.AvatarRemoteURLContainsFold(*i.AvatarRemoteURLContainsFold)) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, standard.StatusNotIn(i.StatusNotIn...)) + } + if i.StatusGT != nil { + predicates = append(predicates, standard.StatusGT(*i.StatusGT)) + } + if i.StatusGTE != nil { + predicates = append(predicates, standard.StatusGTE(*i.StatusGTE)) + } + if i.StatusLT != nil { + predicates = append(predicates, standard.StatusLT(*i.StatusLT)) + } + if i.StatusLTE != nil { + predicates = append(predicates, standard.StatusLTE(*i.StatusLTE)) + } + if i.StatusContains != nil { + predicates = append(predicates, standard.StatusContains(*i.StatusContains)) + } + if i.StatusHasPrefix != nil { + predicates = append(predicates, standard.StatusHasPrefix(*i.StatusHasPrefix)) + } + if i.StatusHasSuffix != nil { + predicates = append(predicates, standard.StatusHasSuffix(*i.StatusHasSuffix)) + } + if i.StatusIsNil { + predicates = append(predicates, standard.StatusIsNil()) + } + if i.StatusNotNil { + predicates = append(predicates, standard.StatusNotNil()) + } + if i.StatusEqualFold != nil { + predicates = append(predicates, standard.StatusEqualFold(*i.StatusEqualFold)) + } + if i.StatusContainsFold != nil { + predicates = append(predicates, standard.StatusContainsFold(*i.StatusContainsFold)) + } + if i.StandardType != nil { + predicates = append(predicates, standard.StandardTypeEQ(*i.StandardType)) + } + if i.StandardTypeNEQ != nil { + predicates = append(predicates, standard.StandardTypeNEQ(*i.StandardTypeNEQ)) + } + if len(i.StandardTypeIn) > 0 { + predicates = append(predicates, standard.StandardTypeIn(i.StandardTypeIn...)) + } + if len(i.StandardTypeNotIn) > 0 { + predicates = append(predicates, standard.StandardTypeNotIn(i.StandardTypeNotIn...)) + } + if i.StandardTypeGT != nil { + predicates = append(predicates, standard.StandardTypeGT(*i.StandardTypeGT)) + } + if i.StandardTypeGTE != nil { + predicates = append(predicates, standard.StandardTypeGTE(*i.StandardTypeGTE)) + } + if i.StandardTypeLT != nil { + predicates = append(predicates, standard.StandardTypeLT(*i.StandardTypeLT)) + } + if i.StandardTypeLTE != nil { + predicates = append(predicates, standard.StandardTypeLTE(*i.StandardTypeLTE)) + } + if i.StandardTypeContains != nil { + predicates = append(predicates, standard.StandardTypeContains(*i.StandardTypeContains)) + } + if i.StandardTypeHasPrefix != nil { + predicates = append(predicates, standard.StandardTypeHasPrefix(*i.StandardTypeHasPrefix)) + } + if i.StandardTypeHasSuffix != nil { + predicates = append(predicates, standard.StandardTypeHasSuffix(*i.StandardTypeHasSuffix)) + } + if i.StandardTypeIsNil { + predicates = append(predicates, standard.StandardTypeIsNil()) + } + if i.StandardTypeNotNil { + predicates = append(predicates, standard.StandardTypeNotNil()) + } + if i.StandardTypeEqualFold != nil { + predicates = append(predicates, standard.StandardTypeEqualFold(*i.StandardTypeEqualFold)) + } + if i.StandardTypeContainsFold != nil { + predicates = append(predicates, standard.StandardTypeContainsFold(*i.StandardTypeContainsFold)) + } + if i.Version != nil { + predicates = append(predicates, standard.VersionEQ(*i.Version)) + } + if i.VersionNEQ != nil { + predicates = append(predicates, standard.VersionNEQ(*i.VersionNEQ)) + } + if len(i.VersionIn) > 0 { + predicates = append(predicates, standard.VersionIn(i.VersionIn...)) + } + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, standard.VersionNotIn(i.VersionNotIn...)) + } + if i.VersionGT != nil { + predicates = append(predicates, standard.VersionGT(*i.VersionGT)) + } + if i.VersionGTE != nil { + predicates = append(predicates, standard.VersionGTE(*i.VersionGTE)) + } + if i.VersionLT != nil { + predicates = append(predicates, standard.VersionLT(*i.VersionLT)) + } + if i.VersionLTE != nil { + predicates = append(predicates, standard.VersionLTE(*i.VersionLTE)) + } + if i.VersionContains != nil { + predicates = append(predicates, standard.VersionContains(*i.VersionContains)) + } + if i.VersionHasPrefix != nil { + predicates = append(predicates, standard.VersionHasPrefix(*i.VersionHasPrefix)) + } + if i.VersionHasSuffix != nil { + predicates = append(predicates, standard.VersionHasSuffix(*i.VersionHasSuffix)) + } + if i.VersionIsNil { + predicates = append(predicates, standard.VersionIsNil()) + } + if i.VersionNotNil { + predicates = append(predicates, standard.VersionNotNil()) + } + if i.VersionEqualFold != nil { + predicates = append(predicates, standard.VersionEqualFold(*i.VersionEqualFold)) + } + if i.VersionContainsFold != nil { + predicates = append(predicates, standard.VersionContainsFold(*i.VersionContainsFold)) + } + if i.PurposeAndScope != nil { + predicates = append(predicates, standard.PurposeAndScopeEQ(*i.PurposeAndScope)) + } + if i.PurposeAndScopeNEQ != nil { + predicates = append(predicates, standard.PurposeAndScopeNEQ(*i.PurposeAndScopeNEQ)) + } + if len(i.PurposeAndScopeIn) > 0 { + predicates = append(predicates, standard.PurposeAndScopeIn(i.PurposeAndScopeIn...)) + } + if len(i.PurposeAndScopeNotIn) > 0 { + predicates = append(predicates, standard.PurposeAndScopeNotIn(i.PurposeAndScopeNotIn...)) + } + if i.PurposeAndScopeGT != nil { + predicates = append(predicates, standard.PurposeAndScopeGT(*i.PurposeAndScopeGT)) + } + if i.PurposeAndScopeGTE != nil { + predicates = append(predicates, standard.PurposeAndScopeGTE(*i.PurposeAndScopeGTE)) + } + if i.PurposeAndScopeLT != nil { + predicates = append(predicates, standard.PurposeAndScopeLT(*i.PurposeAndScopeLT)) + } + if i.PurposeAndScopeLTE != nil { + predicates = append(predicates, standard.PurposeAndScopeLTE(*i.PurposeAndScopeLTE)) + } + if i.PurposeAndScopeContains != nil { + predicates = append(predicates, standard.PurposeAndScopeContains(*i.PurposeAndScopeContains)) + } + if i.PurposeAndScopeHasPrefix != nil { + predicates = append(predicates, standard.PurposeAndScopeHasPrefix(*i.PurposeAndScopeHasPrefix)) + } + if i.PurposeAndScopeHasSuffix != nil { + predicates = append(predicates, standard.PurposeAndScopeHasSuffix(*i.PurposeAndScopeHasSuffix)) + } + if i.PurposeAndScopeIsNil { + predicates = append(predicates, standard.PurposeAndScopeIsNil()) + } + if i.PurposeAndScopeNotNil { + predicates = append(predicates, standard.PurposeAndScopeNotNil()) + } + if i.PurposeAndScopeEqualFold != nil { + predicates = append(predicates, standard.PurposeAndScopeEqualFold(*i.PurposeAndScopeEqualFold)) + } + if i.PurposeAndScopeContainsFold != nil { + predicates = append(predicates, standard.PurposeAndScopeContainsFold(*i.PurposeAndScopeContainsFold)) + } + if i.Background != nil { + predicates = append(predicates, standard.BackgroundEQ(*i.Background)) + } + if i.BackgroundNEQ != nil { + predicates = append(predicates, standard.BackgroundNEQ(*i.BackgroundNEQ)) + } + if len(i.BackgroundIn) > 0 { + predicates = append(predicates, standard.BackgroundIn(i.BackgroundIn...)) + } + if len(i.BackgroundNotIn) > 0 { + predicates = append(predicates, standard.BackgroundNotIn(i.BackgroundNotIn...)) + } + if i.BackgroundGT != nil { + predicates = append(predicates, standard.BackgroundGT(*i.BackgroundGT)) + } + if i.BackgroundGTE != nil { + predicates = append(predicates, standard.BackgroundGTE(*i.BackgroundGTE)) + } + if i.BackgroundLT != nil { + predicates = append(predicates, standard.BackgroundLT(*i.BackgroundLT)) + } + if i.BackgroundLTE != nil { + predicates = append(predicates, standard.BackgroundLTE(*i.BackgroundLTE)) + } + if i.BackgroundContains != nil { + predicates = append(predicates, standard.BackgroundContains(*i.BackgroundContains)) + } + if i.BackgroundHasPrefix != nil { + predicates = append(predicates, standard.BackgroundHasPrefix(*i.BackgroundHasPrefix)) + } + if i.BackgroundHasSuffix != nil { + predicates = append(predicates, standard.BackgroundHasSuffix(*i.BackgroundHasSuffix)) + } + if i.BackgroundIsNil { + predicates = append(predicates, standard.BackgroundIsNil()) + } + if i.BackgroundNotNil { + predicates = append(predicates, standard.BackgroundNotNil()) + } + if i.BackgroundEqualFold != nil { + predicates = append(predicates, standard.BackgroundEqualFold(*i.BackgroundEqualFold)) + } + if i.BackgroundContainsFold != nil { + predicates = append(predicates, standard.BackgroundContainsFold(*i.BackgroundContainsFold)) + } + if i.Satisfies != nil { + predicates = append(predicates, standard.SatisfiesEQ(*i.Satisfies)) + } + if i.SatisfiesNEQ != nil { + predicates = append(predicates, standard.SatisfiesNEQ(*i.SatisfiesNEQ)) + } + if len(i.SatisfiesIn) > 0 { + predicates = append(predicates, standard.SatisfiesIn(i.SatisfiesIn...)) + } + if len(i.SatisfiesNotIn) > 0 { + predicates = append(predicates, standard.SatisfiesNotIn(i.SatisfiesNotIn...)) + } + if i.SatisfiesGT != nil { + predicates = append(predicates, standard.SatisfiesGT(*i.SatisfiesGT)) + } + if i.SatisfiesGTE != nil { + predicates = append(predicates, standard.SatisfiesGTE(*i.SatisfiesGTE)) + } + if i.SatisfiesLT != nil { + predicates = append(predicates, standard.SatisfiesLT(*i.SatisfiesLT)) + } + if i.SatisfiesLTE != nil { + predicates = append(predicates, standard.SatisfiesLTE(*i.SatisfiesLTE)) + } + if i.SatisfiesContains != nil { + predicates = append(predicates, standard.SatisfiesContains(*i.SatisfiesContains)) + } + if i.SatisfiesHasPrefix != nil { + predicates = append(predicates, standard.SatisfiesHasPrefix(*i.SatisfiesHasPrefix)) + } + if i.SatisfiesHasSuffix != nil { + predicates = append(predicates, standard.SatisfiesHasSuffix(*i.SatisfiesHasSuffix)) + } + if i.SatisfiesIsNil { + predicates = append(predicates, standard.SatisfiesIsNil()) + } + if i.SatisfiesNotNil { + predicates = append(predicates, standard.SatisfiesNotNil()) + } + if i.SatisfiesEqualFold != nil { + predicates = append(predicates, standard.SatisfiesEqualFold(*i.SatisfiesEqualFold)) + } + if i.SatisfiesContainsFold != nil { + predicates = append(predicates, standard.SatisfiesContainsFold(*i.SatisfiesContainsFold)) } + if i.HasControlobjectives != nil { + p := standard.HasControlobjectives() + if !*i.HasControlobjectives { + p = standard.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasControlobjectivesWith) > 0 { + with := make([]predicate.ControlObjective, 0, len(i.HasControlobjectivesWith)) + for _, w := range i.HasControlobjectivesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasControlobjectivesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, standard.HasControlobjectivesWith(with...)) + } + if i.HasControls != nil { + p := standard.HasControls() + if !*i.HasControls { + p = standard.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasControlsWith) > 0 { + with := make([]predicate.Control, 0, len(i.HasControlsWith)) + for _, w := range i.HasControlsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasControlsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, standard.HasControlsWith(with...)) + } + if i.HasProcedures != nil { + p := standard.HasProcedures() + if !*i.HasProcedures { + p = standard.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasProceduresWith) > 0 { + with := make([]predicate.Procedure, 0, len(i.HasProceduresWith)) + for _, w := range i.HasProceduresWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasProceduresWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, standard.HasProceduresWith(with...)) + } + if i.HasActionplans != nil { + p := standard.HasActionplans() + if !*i.HasActionplans { + p = standard.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasActionplansWith) > 0 { + with := make([]predicate.ActionPlan, 0, len(i.HasActionplansWith)) + for _, w := range i.HasActionplansWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasActionplansWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, standard.HasActionplansWith(with...)) + } switch len(predicates) { case 0: - return nil, ErrEmptyOrganizationHistoryWhereInput + return nil, ErrEmptyStandardWhereInput case 1: return predicates[0], nil default: - return organizationhistory.And(predicates...), nil + return standard.And(predicates...), nil } } -// OrganizationSettingWhereInput represents a where input for filtering OrganizationSetting queries. -type OrganizationSettingWhereInput struct { - Predicates []predicate.OrganizationSetting `json:"-"` - Not *OrganizationSettingWhereInput `json:"not,omitempty"` - Or []*OrganizationSettingWhereInput `json:"or,omitempty"` - And []*OrganizationSettingWhereInput `json:"and,omitempty"` +// StandardHistoryWhereInput represents a where input for filtering StandardHistory queries. +type StandardHistoryWhereInput struct { + Predicates []predicate.StandardHistory `json:"-"` + Not *StandardHistoryWhereInput `json:"not,omitempty"` + Or []*StandardHistoryWhereInput `json:"or,omitempty"` + And []*StandardHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -32856,6 +50592,39 @@ type OrganizationSettingWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -32943,138 +50712,171 @@ type OrganizationSettingWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "billing_contact" field predicates. - BillingContact *string `json:"billingContact,omitempty"` - BillingContactNEQ *string `json:"billingContactNEQ,omitempty"` - BillingContactIn []string `json:"billingContactIn,omitempty"` - BillingContactNotIn []string `json:"billingContactNotIn,omitempty"` - BillingContactGT *string `json:"billingContactGT,omitempty"` - BillingContactGTE *string `json:"billingContactGTE,omitempty"` - BillingContactLT *string `json:"billingContactLT,omitempty"` - BillingContactLTE *string `json:"billingContactLTE,omitempty"` - BillingContactContains *string `json:"billingContactContains,omitempty"` - BillingContactHasPrefix *string `json:"billingContactHasPrefix,omitempty"` - BillingContactHasSuffix *string `json:"billingContactHasSuffix,omitempty"` - BillingContactIsNil bool `json:"billingContactIsNil,omitempty"` - BillingContactNotNil bool `json:"billingContactNotNil,omitempty"` - BillingContactEqualFold *string `json:"billingContactEqualFold,omitempty"` - BillingContactContainsFold *string `json:"billingContactContainsFold,omitempty"` - - // "billing_email" field predicates. - BillingEmail *string `json:"billingEmail,omitempty"` - BillingEmailNEQ *string `json:"billingEmailNEQ,omitempty"` - BillingEmailIn []string `json:"billingEmailIn,omitempty"` - BillingEmailNotIn []string `json:"billingEmailNotIn,omitempty"` - BillingEmailGT *string `json:"billingEmailGT,omitempty"` - BillingEmailGTE *string `json:"billingEmailGTE,omitempty"` - BillingEmailLT *string `json:"billingEmailLT,omitempty"` - BillingEmailLTE *string `json:"billingEmailLTE,omitempty"` - BillingEmailContains *string `json:"billingEmailContains,omitempty"` - BillingEmailHasPrefix *string `json:"billingEmailHasPrefix,omitempty"` - BillingEmailHasSuffix *string `json:"billingEmailHasSuffix,omitempty"` - BillingEmailIsNil bool `json:"billingEmailIsNil,omitempty"` - BillingEmailNotNil bool `json:"billingEmailNotNil,omitempty"` - BillingEmailEqualFold *string `json:"billingEmailEqualFold,omitempty"` - BillingEmailContainsFold *string `json:"billingEmailContainsFold,omitempty"` - - // "billing_phone" field predicates. - BillingPhone *string `json:"billingPhone,omitempty"` - BillingPhoneNEQ *string `json:"billingPhoneNEQ,omitempty"` - BillingPhoneIn []string `json:"billingPhoneIn,omitempty"` - BillingPhoneNotIn []string `json:"billingPhoneNotIn,omitempty"` - BillingPhoneGT *string `json:"billingPhoneGT,omitempty"` - BillingPhoneGTE *string `json:"billingPhoneGTE,omitempty"` - BillingPhoneLT *string `json:"billingPhoneLT,omitempty"` - BillingPhoneLTE *string `json:"billingPhoneLTE,omitempty"` - BillingPhoneContains *string `json:"billingPhoneContains,omitempty"` - BillingPhoneHasPrefix *string `json:"billingPhoneHasPrefix,omitempty"` - BillingPhoneHasSuffix *string `json:"billingPhoneHasSuffix,omitempty"` - BillingPhoneIsNil bool `json:"billingPhoneIsNil,omitempty"` - BillingPhoneNotNil bool `json:"billingPhoneNotNil,omitempty"` - BillingPhoneEqualFold *string `json:"billingPhoneEqualFold,omitempty"` - BillingPhoneContainsFold *string `json:"billingPhoneContainsFold,omitempty"` - - // "billing_address" field predicates. - BillingAddress *string `json:"billingAddress,omitempty"` - BillingAddressNEQ *string `json:"billingAddressNEQ,omitempty"` - BillingAddressIn []string `json:"billingAddressIn,omitempty"` - BillingAddressNotIn []string `json:"billingAddressNotIn,omitempty"` - BillingAddressGT *string `json:"billingAddressGT,omitempty"` - BillingAddressGTE *string `json:"billingAddressGTE,omitempty"` - BillingAddressLT *string `json:"billingAddressLT,omitempty"` - BillingAddressLTE *string `json:"billingAddressLTE,omitempty"` - BillingAddressContains *string `json:"billingAddressContains,omitempty"` - BillingAddressHasPrefix *string `json:"billingAddressHasPrefix,omitempty"` - BillingAddressHasSuffix *string `json:"billingAddressHasSuffix,omitempty"` - BillingAddressIsNil bool `json:"billingAddressIsNil,omitempty"` - BillingAddressNotNil bool `json:"billingAddressNotNil,omitempty"` - BillingAddressEqualFold *string `json:"billingAddressEqualFold,omitempty"` - BillingAddressContainsFold *string `json:"billingAddressContainsFold,omitempty"` + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "tax_identifier" field predicates. - TaxIdentifier *string `json:"taxIdentifier,omitempty"` - TaxIdentifierNEQ *string `json:"taxIdentifierNEQ,omitempty"` - TaxIdentifierIn []string `json:"taxIdentifierIn,omitempty"` - TaxIdentifierNotIn []string `json:"taxIdentifierNotIn,omitempty"` - TaxIdentifierGT *string `json:"taxIdentifierGT,omitempty"` - TaxIdentifierGTE *string `json:"taxIdentifierGTE,omitempty"` - TaxIdentifierLT *string `json:"taxIdentifierLT,omitempty"` - TaxIdentifierLTE *string `json:"taxIdentifierLTE,omitempty"` - TaxIdentifierContains *string `json:"taxIdentifierContains,omitempty"` - TaxIdentifierHasPrefix *string `json:"taxIdentifierHasPrefix,omitempty"` - TaxIdentifierHasSuffix *string `json:"taxIdentifierHasSuffix,omitempty"` - TaxIdentifierIsNil bool `json:"taxIdentifierIsNil,omitempty"` - TaxIdentifierNotNil bool `json:"taxIdentifierNotNil,omitempty"` - TaxIdentifierEqualFold *string `json:"taxIdentifierEqualFold,omitempty"` - TaxIdentifierContainsFold *string `json:"taxIdentifierContainsFold,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` - // "geo_location" field predicates. - GeoLocation *enums.Region `json:"geoLocation,omitempty"` - GeoLocationNEQ *enums.Region `json:"geoLocationNEQ,omitempty"` - GeoLocationIn []enums.Region `json:"geoLocationIn,omitempty"` - GeoLocationNotIn []enums.Region `json:"geoLocationNotIn,omitempty"` - GeoLocationIsNil bool `json:"geoLocationIsNil,omitempty"` - GeoLocationNotNil bool `json:"geoLocationNotNil,omitempty"` + // "family" field predicates. + Family *string `json:"family,omitempty"` + FamilyNEQ *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGT *string `json:"familyGT,omitempty"` + FamilyGTE *string `json:"familyGTE,omitempty"` + FamilyLT *string `json:"familyLT,omitempty"` + FamilyLTE *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil bool `json:"familyIsNil,omitempty"` + FamilyNotNil bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` - // "organization_id" field predicates. - OrganizationID *string `json:"organizationID,omitempty"` - OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` - OrganizationIDIn []string `json:"organizationIDIn,omitempty"` - OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` - OrganizationIDGT *string `json:"organizationIDGT,omitempty"` - OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` - OrganizationIDLT *string `json:"organizationIDLT,omitempty"` - OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` - OrganizationIDContains *string `json:"organizationIDContains,omitempty"` - OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` - OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` - OrganizationIDIsNil bool `json:"organizationIDIsNil,omitempty"` - OrganizationIDNotNil bool `json:"organizationIDNotNil,omitempty"` - OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` - OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` - // "organization" edge predicates. - HasOrganization *bool `json:"hasOrganization,omitempty"` - HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` + // "standard_type" field predicates. + StandardType *string `json:"standardType,omitempty"` + StandardTypeNEQ *string `json:"standardTypeNEQ,omitempty"` + StandardTypeIn []string `json:"standardTypeIn,omitempty"` + StandardTypeNotIn []string `json:"standardTypeNotIn,omitempty"` + StandardTypeGT *string `json:"standardTypeGT,omitempty"` + StandardTypeGTE *string `json:"standardTypeGTE,omitempty"` + StandardTypeLT *string `json:"standardTypeLT,omitempty"` + StandardTypeLTE *string `json:"standardTypeLTE,omitempty"` + StandardTypeContains *string `json:"standardTypeContains,omitempty"` + StandardTypeHasPrefix *string `json:"standardTypeHasPrefix,omitempty"` + StandardTypeHasSuffix *string `json:"standardTypeHasSuffix,omitempty"` + StandardTypeIsNil bool `json:"standardTypeIsNil,omitempty"` + StandardTypeNotNil bool `json:"standardTypeNotNil,omitempty"` + StandardTypeEqualFold *string `json:"standardTypeEqualFold,omitempty"` + StandardTypeContainsFold *string `json:"standardTypeContainsFold,omitempty"` - // "files" edge predicates. - HasFiles *bool `json:"hasFiles,omitempty"` - HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil bool `json:"versionIsNil,omitempty"` + VersionNotNil bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + + // "purpose_and_scope" field predicates. + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + PurposeAndScopeNEQ *string `json:"purposeAndScopeNEQ,omitempty"` + PurposeAndScopeIn []string `json:"purposeAndScopeIn,omitempty"` + PurposeAndScopeNotIn []string `json:"purposeAndScopeNotIn,omitempty"` + PurposeAndScopeGT *string `json:"purposeAndScopeGT,omitempty"` + PurposeAndScopeGTE *string `json:"purposeAndScopeGTE,omitempty"` + PurposeAndScopeLT *string `json:"purposeAndScopeLT,omitempty"` + PurposeAndScopeLTE *string `json:"purposeAndScopeLTE,omitempty"` + PurposeAndScopeContains *string `json:"purposeAndScopeContains,omitempty"` + PurposeAndScopeHasPrefix *string `json:"purposeAndScopeHasPrefix,omitempty"` + PurposeAndScopeHasSuffix *string `json:"purposeAndScopeHasSuffix,omitempty"` + PurposeAndScopeIsNil bool `json:"purposeAndScopeIsNil,omitempty"` + PurposeAndScopeNotNil bool `json:"purposeAndScopeNotNil,omitempty"` + PurposeAndScopeEqualFold *string `json:"purposeAndScopeEqualFold,omitempty"` + PurposeAndScopeContainsFold *string `json:"purposeAndScopeContainsFold,omitempty"` + + // "background" field predicates. + Background *string `json:"background,omitempty"` + BackgroundNEQ *string `json:"backgroundNEQ,omitempty"` + BackgroundIn []string `json:"backgroundIn,omitempty"` + BackgroundNotIn []string `json:"backgroundNotIn,omitempty"` + BackgroundGT *string `json:"backgroundGT,omitempty"` + BackgroundGTE *string `json:"backgroundGTE,omitempty"` + BackgroundLT *string `json:"backgroundLT,omitempty"` + BackgroundLTE *string `json:"backgroundLTE,omitempty"` + BackgroundContains *string `json:"backgroundContains,omitempty"` + BackgroundHasPrefix *string `json:"backgroundHasPrefix,omitempty"` + BackgroundHasSuffix *string `json:"backgroundHasSuffix,omitempty"` + BackgroundIsNil bool `json:"backgroundIsNil,omitempty"` + BackgroundNotNil bool `json:"backgroundNotNil,omitempty"` + BackgroundEqualFold *string `json:"backgroundEqualFold,omitempty"` + BackgroundContainsFold *string `json:"backgroundContainsFold,omitempty"` + + // "satisfies" field predicates. + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNEQ *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGT *string `json:"satisfiesGT,omitempty"` + SatisfiesGTE *string `json:"satisfiesGTE,omitempty"` + SatisfiesLT *string `json:"satisfiesLT,omitempty"` + SatisfiesLTE *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *OrganizationSettingWhereInput) AddPredicates(predicates ...predicate.OrganizationSetting) { +func (i *StandardHistoryWhereInput) AddPredicates(predicates ...predicate.StandardHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the OrganizationSettingWhereInput filter on the OrganizationSettingQuery builder. -func (i *OrganizationSettingWhereInput) Filter(q *OrganizationSettingQuery) (*OrganizationSettingQuery, error) { +// Filter applies the StandardHistoryWhereInput filter on the StandardHistoryQuery builder. +func (i *StandardHistoryWhereInput) Filter(q *StandardHistoryQuery) (*StandardHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyOrganizationSettingWhereInput { + if err == ErrEmptyStandardHistoryWhereInput { return q, nil } return nil, err @@ -33082,19 +50884,19 @@ func (i *OrganizationSettingWhereInput) Filter(q *OrganizationSettingQuery) (*Or return q.Where(p), nil } -// ErrEmptyOrganizationSettingWhereInput is returned in case the OrganizationSettingWhereInput is empty. -var ErrEmptyOrganizationSettingWhereInput = errors.New("generated: empty predicate OrganizationSettingWhereInput") +// ErrEmptyStandardHistoryWhereInput is returned in case the StandardHistoryWhereInput is empty. +var ErrEmptyStandardHistoryWhereInput = errors.New("generated: empty predicate StandardHistoryWhereInput") -// P returns a predicate for filtering organizationsettings. +// P returns a predicate for filtering standardhistories. // An error is returned if the input is empty or invalid. -func (i *OrganizationSettingWhereInput) P() (predicate.OrganizationSetting, error) { - var predicates []predicate.OrganizationSetting +func (i *StandardHistoryWhereInput) P() (predicate.StandardHistory, error) { + var predicates []predicate.StandardHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, organizationsetting.Not(p)) + predicates = append(predicates, standardhistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -33104,7 +50906,7 @@ func (i *OrganizationSettingWhereInput) P() (predicate.OrganizationSetting, erro } predicates = append(predicates, p) case n > 1: - or := make([]predicate.OrganizationSetting, 0, n) + or := make([]predicate.StandardHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -33112,7 +50914,7 @@ func (i *OrganizationSettingWhereInput) P() (predicate.OrganizationSetting, erro } or = append(or, p) } - predicates = append(predicates, organizationsetting.Or(or...)) + predicates = append(predicates, standardhistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -33122,7 +50924,7 @@ func (i *OrganizationSettingWhereInput) P() (predicate.OrganizationSetting, erro } predicates = append(predicates, p) case n > 1: - and := make([]predicate.OrganizationSetting, 0, n) + and := make([]predicate.StandardHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -33130,605 +50932,761 @@ func (i *OrganizationSettingWhereInput) P() (predicate.OrganizationSetting, erro } and = append(and, p) } - predicates = append(predicates, organizationsetting.And(and...)) + predicates = append(predicates, standardhistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, organizationsetting.IDEQ(*i.ID)) + predicates = append(predicates, standardhistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, organizationsetting.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, standardhistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, organizationsetting.IDIn(i.IDIn...)) + predicates = append(predicates, standardhistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, organizationsetting.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, standardhistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, organizationsetting.IDGT(*i.IDGT)) + predicates = append(predicates, standardhistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, organizationsetting.IDGTE(*i.IDGTE)) + predicates = append(predicates, standardhistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, organizationsetting.IDLT(*i.IDLT)) + predicates = append(predicates, standardhistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, organizationsetting.IDLTE(*i.IDLTE)) + predicates = append(predicates, standardhistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, organizationsetting.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, standardhistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, organizationsetting.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, standardhistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, standardhistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, standardhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, standardhistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, standardhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, standardhistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, standardhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, standardhistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, standardhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, standardhistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, standardhistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, standardhistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, standardhistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, standardhistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, standardhistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, standardhistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, standardhistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, standardhistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, standardhistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, standardhistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, standardhistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, standardhistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, standardhistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, standardhistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, standardhistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, standardhistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, standardhistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, standardhistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, organizationsetting.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, standardhistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, organizationsetting.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, standardhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, organizationsetting.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, standardhistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, organizationsetting.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, standardhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, organizationsetting.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, standardhistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, organizationsetting.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, standardhistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, organizationsetting.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, standardhistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, organizationsetting.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, standardhistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, organizationsetting.CreatedAtIsNil()) + predicates = append(predicates, standardhistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, organizationsetting.CreatedAtNotNil()) + predicates = append(predicates, standardhistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, organizationsetting.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, standardhistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, organizationsetting.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, standardhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, organizationsetting.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, standardhistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, organizationsetting.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, standardhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, organizationsetting.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, standardhistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, organizationsetting.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, standardhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, organizationsetting.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, standardhistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, organizationsetting.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, standardhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, organizationsetting.UpdatedAtIsNil()) + predicates = append(predicates, standardhistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, organizationsetting.UpdatedAtNotNil()) + predicates = append(predicates, standardhistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, organizationsetting.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, standardhistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, organizationsetting.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, standardhistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, organizationsetting.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, standardhistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, organizationsetting.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, standardhistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, organizationsetting.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, standardhistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, organizationsetting.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, standardhistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, organizationsetting.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, standardhistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, organizationsetting.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, standardhistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, organizationsetting.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, standardhistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, organizationsetting.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, standardhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, organizationsetting.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, standardhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, organizationsetting.CreatedByIsNil()) + predicates = append(predicates, standardhistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, organizationsetting.CreatedByNotNil()) + predicates = append(predicates, standardhistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, organizationsetting.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, standardhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, organizationsetting.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, standardhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, organizationsetting.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, standardhistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, organizationsetting.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, standardhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, organizationsetting.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, standardhistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, organizationsetting.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, standardhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, organizationsetting.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, standardhistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, organizationsetting.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, standardhistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, organizationsetting.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, standardhistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, organizationsetting.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, standardhistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, organizationsetting.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, standardhistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, organizationsetting.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, standardhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, organizationsetting.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, standardhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, organizationsetting.UpdatedByIsNil()) + predicates = append(predicates, standardhistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, organizationsetting.UpdatedByNotNil()) + predicates = append(predicates, standardhistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, organizationsetting.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, standardhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, organizationsetting.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, standardhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, organizationsetting.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, standardhistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, organizationsetting.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, standardhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, organizationsetting.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, standardhistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, organizationsetting.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, standardhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, organizationsetting.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, standardhistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, organizationsetting.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, standardhistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, organizationsetting.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, standardhistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, organizationsetting.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, standardhistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, organizationsetting.DeletedAtIsNil()) + predicates = append(predicates, standardhistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, organizationsetting.DeletedAtNotNil()) + predicates = append(predicates, standardhistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, organizationsetting.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, standardhistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, organizationsetting.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, standardhistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, organizationsetting.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, standardhistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, organizationsetting.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, standardhistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, organizationsetting.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, standardhistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, organizationsetting.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, standardhistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, organizationsetting.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, standardhistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, organizationsetting.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, standardhistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, organizationsetting.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, standardhistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, organizationsetting.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, standardhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, organizationsetting.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, standardhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, organizationsetting.DeletedByIsNil()) + predicates = append(predicates, standardhistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, organizationsetting.DeletedByNotNil()) + predicates = append(predicates, standardhistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, organizationsetting.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, standardhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, organizationsetting.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, standardhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } - if i.BillingContact != nil { - predicates = append(predicates, organizationsetting.BillingContactEQ(*i.BillingContact)) + if i.Name != nil { + predicates = append(predicates, standardhistory.NameEQ(*i.Name)) } - if i.BillingContactNEQ != nil { - predicates = append(predicates, organizationsetting.BillingContactNEQ(*i.BillingContactNEQ)) + if i.NameNEQ != nil { + predicates = append(predicates, standardhistory.NameNEQ(*i.NameNEQ)) } - if len(i.BillingContactIn) > 0 { - predicates = append(predicates, organizationsetting.BillingContactIn(i.BillingContactIn...)) + if len(i.NameIn) > 0 { + predicates = append(predicates, standardhistory.NameIn(i.NameIn...)) } - if len(i.BillingContactNotIn) > 0 { - predicates = append(predicates, organizationsetting.BillingContactNotIn(i.BillingContactNotIn...)) + if len(i.NameNotIn) > 0 { + predicates = append(predicates, standardhistory.NameNotIn(i.NameNotIn...)) } - if i.BillingContactGT != nil { - predicates = append(predicates, organizationsetting.BillingContactGT(*i.BillingContactGT)) + if i.NameGT != nil { + predicates = append(predicates, standardhistory.NameGT(*i.NameGT)) } - if i.BillingContactGTE != nil { - predicates = append(predicates, organizationsetting.BillingContactGTE(*i.BillingContactGTE)) + if i.NameGTE != nil { + predicates = append(predicates, standardhistory.NameGTE(*i.NameGTE)) } - if i.BillingContactLT != nil { - predicates = append(predicates, organizationsetting.BillingContactLT(*i.BillingContactLT)) + if i.NameLT != nil { + predicates = append(predicates, standardhistory.NameLT(*i.NameLT)) } - if i.BillingContactLTE != nil { - predicates = append(predicates, organizationsetting.BillingContactLTE(*i.BillingContactLTE)) + if i.NameLTE != nil { + predicates = append(predicates, standardhistory.NameLTE(*i.NameLTE)) } - if i.BillingContactContains != nil { - predicates = append(predicates, organizationsetting.BillingContactContains(*i.BillingContactContains)) + if i.NameContains != nil { + predicates = append(predicates, standardhistory.NameContains(*i.NameContains)) } - if i.BillingContactHasPrefix != nil { - predicates = append(predicates, organizationsetting.BillingContactHasPrefix(*i.BillingContactHasPrefix)) + if i.NameHasPrefix != nil { + predicates = append(predicates, standardhistory.NameHasPrefix(*i.NameHasPrefix)) } - if i.BillingContactHasSuffix != nil { - predicates = append(predicates, organizationsetting.BillingContactHasSuffix(*i.BillingContactHasSuffix)) + if i.NameHasSuffix != nil { + predicates = append(predicates, standardhistory.NameHasSuffix(*i.NameHasSuffix)) } - if i.BillingContactIsNil { - predicates = append(predicates, organizationsetting.BillingContactIsNil()) + if i.NameEqualFold != nil { + predicates = append(predicates, standardhistory.NameEqualFold(*i.NameEqualFold)) } - if i.BillingContactNotNil { - predicates = append(predicates, organizationsetting.BillingContactNotNil()) + if i.NameContainsFold != nil { + predicates = append(predicates, standardhistory.NameContainsFold(*i.NameContainsFold)) } - if i.BillingContactEqualFold != nil { - predicates = append(predicates, organizationsetting.BillingContactEqualFold(*i.BillingContactEqualFold)) + if i.Description != nil { + predicates = append(predicates, standardhistory.DescriptionEQ(*i.Description)) } - if i.BillingContactContainsFold != nil { - predicates = append(predicates, organizationsetting.BillingContactContainsFold(*i.BillingContactContainsFold)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, standardhistory.DescriptionNEQ(*i.DescriptionNEQ)) } - if i.BillingEmail != nil { - predicates = append(predicates, organizationsetting.BillingEmailEQ(*i.BillingEmail)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, standardhistory.DescriptionIn(i.DescriptionIn...)) } - if i.BillingEmailNEQ != nil { - predicates = append(predicates, organizationsetting.BillingEmailNEQ(*i.BillingEmailNEQ)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, standardhistory.DescriptionNotIn(i.DescriptionNotIn...)) } - if len(i.BillingEmailIn) > 0 { - predicates = append(predicates, organizationsetting.BillingEmailIn(i.BillingEmailIn...)) + if i.DescriptionGT != nil { + predicates = append(predicates, standardhistory.DescriptionGT(*i.DescriptionGT)) } - if len(i.BillingEmailNotIn) > 0 { - predicates = append(predicates, organizationsetting.BillingEmailNotIn(i.BillingEmailNotIn...)) + if i.DescriptionGTE != nil { + predicates = append(predicates, standardhistory.DescriptionGTE(*i.DescriptionGTE)) } - if i.BillingEmailGT != nil { - predicates = append(predicates, organizationsetting.BillingEmailGT(*i.BillingEmailGT)) + if i.DescriptionLT != nil { + predicates = append(predicates, standardhistory.DescriptionLT(*i.DescriptionLT)) } - if i.BillingEmailGTE != nil { - predicates = append(predicates, organizationsetting.BillingEmailGTE(*i.BillingEmailGTE)) + if i.DescriptionLTE != nil { + predicates = append(predicates, standardhistory.DescriptionLTE(*i.DescriptionLTE)) } - if i.BillingEmailLT != nil { - predicates = append(predicates, organizationsetting.BillingEmailLT(*i.BillingEmailLT)) + if i.DescriptionContains != nil { + predicates = append(predicates, standardhistory.DescriptionContains(*i.DescriptionContains)) } - if i.BillingEmailLTE != nil { - predicates = append(predicates, organizationsetting.BillingEmailLTE(*i.BillingEmailLTE)) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, standardhistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.BillingEmailContains != nil { - predicates = append(predicates, organizationsetting.BillingEmailContains(*i.BillingEmailContains)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, standardhistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.BillingEmailHasPrefix != nil { - predicates = append(predicates, organizationsetting.BillingEmailHasPrefix(*i.BillingEmailHasPrefix)) + if i.DescriptionIsNil { + predicates = append(predicates, standardhistory.DescriptionIsNil()) } - if i.BillingEmailHasSuffix != nil { - predicates = append(predicates, organizationsetting.BillingEmailHasSuffix(*i.BillingEmailHasSuffix)) + if i.DescriptionNotNil { + predicates = append(predicates, standardhistory.DescriptionNotNil()) } - if i.BillingEmailIsNil { - predicates = append(predicates, organizationsetting.BillingEmailIsNil()) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, standardhistory.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.BillingEmailNotNil { - predicates = append(predicates, organizationsetting.BillingEmailNotNil()) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, standardhistory.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.BillingEmailEqualFold != nil { - predicates = append(predicates, organizationsetting.BillingEmailEqualFold(*i.BillingEmailEqualFold)) + if i.Family != nil { + predicates = append(predicates, standardhistory.FamilyEQ(*i.Family)) } - if i.BillingEmailContainsFold != nil { - predicates = append(predicates, organizationsetting.BillingEmailContainsFold(*i.BillingEmailContainsFold)) + if i.FamilyNEQ != nil { + predicates = append(predicates, standardhistory.FamilyNEQ(*i.FamilyNEQ)) } - if i.BillingPhone != nil { - predicates = append(predicates, organizationsetting.BillingPhoneEQ(*i.BillingPhone)) + if len(i.FamilyIn) > 0 { + predicates = append(predicates, standardhistory.FamilyIn(i.FamilyIn...)) } - if i.BillingPhoneNEQ != nil { - predicates = append(predicates, organizationsetting.BillingPhoneNEQ(*i.BillingPhoneNEQ)) + if len(i.FamilyNotIn) > 0 { + predicates = append(predicates, standardhistory.FamilyNotIn(i.FamilyNotIn...)) } - if len(i.BillingPhoneIn) > 0 { - predicates = append(predicates, organizationsetting.BillingPhoneIn(i.BillingPhoneIn...)) + if i.FamilyGT != nil { + predicates = append(predicates, standardhistory.FamilyGT(*i.FamilyGT)) } - if len(i.BillingPhoneNotIn) > 0 { - predicates = append(predicates, organizationsetting.BillingPhoneNotIn(i.BillingPhoneNotIn...)) + if i.FamilyGTE != nil { + predicates = append(predicates, standardhistory.FamilyGTE(*i.FamilyGTE)) } - if i.BillingPhoneGT != nil { - predicates = append(predicates, organizationsetting.BillingPhoneGT(*i.BillingPhoneGT)) + if i.FamilyLT != nil { + predicates = append(predicates, standardhistory.FamilyLT(*i.FamilyLT)) } - if i.BillingPhoneGTE != nil { - predicates = append(predicates, organizationsetting.BillingPhoneGTE(*i.BillingPhoneGTE)) + if i.FamilyLTE != nil { + predicates = append(predicates, standardhistory.FamilyLTE(*i.FamilyLTE)) } - if i.BillingPhoneLT != nil { - predicates = append(predicates, organizationsetting.BillingPhoneLT(*i.BillingPhoneLT)) + if i.FamilyContains != nil { + predicates = append(predicates, standardhistory.FamilyContains(*i.FamilyContains)) } - if i.BillingPhoneLTE != nil { - predicates = append(predicates, organizationsetting.BillingPhoneLTE(*i.BillingPhoneLTE)) + if i.FamilyHasPrefix != nil { + predicates = append(predicates, standardhistory.FamilyHasPrefix(*i.FamilyHasPrefix)) } - if i.BillingPhoneContains != nil { - predicates = append(predicates, organizationsetting.BillingPhoneContains(*i.BillingPhoneContains)) + if i.FamilyHasSuffix != nil { + predicates = append(predicates, standardhistory.FamilyHasSuffix(*i.FamilyHasSuffix)) } - if i.BillingPhoneHasPrefix != nil { - predicates = append(predicates, organizationsetting.BillingPhoneHasPrefix(*i.BillingPhoneHasPrefix)) + if i.FamilyIsNil { + predicates = append(predicates, standardhistory.FamilyIsNil()) } - if i.BillingPhoneHasSuffix != nil { - predicates = append(predicates, organizationsetting.BillingPhoneHasSuffix(*i.BillingPhoneHasSuffix)) + if i.FamilyNotNil { + predicates = append(predicates, standardhistory.FamilyNotNil()) } - if i.BillingPhoneIsNil { - predicates = append(predicates, organizationsetting.BillingPhoneIsNil()) + if i.FamilyEqualFold != nil { + predicates = append(predicates, standardhistory.FamilyEqualFold(*i.FamilyEqualFold)) } - if i.BillingPhoneNotNil { - predicates = append(predicates, organizationsetting.BillingPhoneNotNil()) + if i.FamilyContainsFold != nil { + predicates = append(predicates, standardhistory.FamilyContainsFold(*i.FamilyContainsFold)) } - if i.BillingPhoneEqualFold != nil { - predicates = append(predicates, organizationsetting.BillingPhoneEqualFold(*i.BillingPhoneEqualFold)) + if i.Status != nil { + predicates = append(predicates, standardhistory.StatusEQ(*i.Status)) } - if i.BillingPhoneContainsFold != nil { - predicates = append(predicates, organizationsetting.BillingPhoneContainsFold(*i.BillingPhoneContainsFold)) + if i.StatusNEQ != nil { + predicates = append(predicates, standardhistory.StatusNEQ(*i.StatusNEQ)) } - if i.BillingAddress != nil { - predicates = append(predicates, organizationsetting.BillingAddressEQ(*i.BillingAddress)) + if len(i.StatusIn) > 0 { + predicates = append(predicates, standardhistory.StatusIn(i.StatusIn...)) } - if i.BillingAddressNEQ != nil { - predicates = append(predicates, organizationsetting.BillingAddressNEQ(*i.BillingAddressNEQ)) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, standardhistory.StatusNotIn(i.StatusNotIn...)) } - if len(i.BillingAddressIn) > 0 { - predicates = append(predicates, organizationsetting.BillingAddressIn(i.BillingAddressIn...)) + if i.StatusGT != nil { + predicates = append(predicates, standardhistory.StatusGT(*i.StatusGT)) } - if len(i.BillingAddressNotIn) > 0 { - predicates = append(predicates, organizationsetting.BillingAddressNotIn(i.BillingAddressNotIn...)) + if i.StatusGTE != nil { + predicates = append(predicates, standardhistory.StatusGTE(*i.StatusGTE)) } - if i.BillingAddressGT != nil { - predicates = append(predicates, organizationsetting.BillingAddressGT(*i.BillingAddressGT)) + if i.StatusLT != nil { + predicates = append(predicates, standardhistory.StatusLT(*i.StatusLT)) } - if i.BillingAddressGTE != nil { - predicates = append(predicates, organizationsetting.BillingAddressGTE(*i.BillingAddressGTE)) + if i.StatusLTE != nil { + predicates = append(predicates, standardhistory.StatusLTE(*i.StatusLTE)) } - if i.BillingAddressLT != nil { - predicates = append(predicates, organizationsetting.BillingAddressLT(*i.BillingAddressLT)) + if i.StatusContains != nil { + predicates = append(predicates, standardhistory.StatusContains(*i.StatusContains)) } - if i.BillingAddressLTE != nil { - predicates = append(predicates, organizationsetting.BillingAddressLTE(*i.BillingAddressLTE)) + if i.StatusHasPrefix != nil { + predicates = append(predicates, standardhistory.StatusHasPrefix(*i.StatusHasPrefix)) } - if i.BillingAddressContains != nil { - predicates = append(predicates, organizationsetting.BillingAddressContains(*i.BillingAddressContains)) + if i.StatusHasSuffix != nil { + predicates = append(predicates, standardhistory.StatusHasSuffix(*i.StatusHasSuffix)) } - if i.BillingAddressHasPrefix != nil { - predicates = append(predicates, organizationsetting.BillingAddressHasPrefix(*i.BillingAddressHasPrefix)) + if i.StatusIsNil { + predicates = append(predicates, standardhistory.StatusIsNil()) } - if i.BillingAddressHasSuffix != nil { - predicates = append(predicates, organizationsetting.BillingAddressHasSuffix(*i.BillingAddressHasSuffix)) + if i.StatusNotNil { + predicates = append(predicates, standardhistory.StatusNotNil()) } - if i.BillingAddressIsNil { - predicates = append(predicates, organizationsetting.BillingAddressIsNil()) + if i.StatusEqualFold != nil { + predicates = append(predicates, standardhistory.StatusEqualFold(*i.StatusEqualFold)) } - if i.BillingAddressNotNil { - predicates = append(predicates, organizationsetting.BillingAddressNotNil()) + if i.StatusContainsFold != nil { + predicates = append(predicates, standardhistory.StatusContainsFold(*i.StatusContainsFold)) } - if i.BillingAddressEqualFold != nil { - predicates = append(predicates, organizationsetting.BillingAddressEqualFold(*i.BillingAddressEqualFold)) + if i.StandardType != nil { + predicates = append(predicates, standardhistory.StandardTypeEQ(*i.StandardType)) } - if i.BillingAddressContainsFold != nil { - predicates = append(predicates, organizationsetting.BillingAddressContainsFold(*i.BillingAddressContainsFold)) + if i.StandardTypeNEQ != nil { + predicates = append(predicates, standardhistory.StandardTypeNEQ(*i.StandardTypeNEQ)) } - if i.TaxIdentifier != nil { - predicates = append(predicates, organizationsetting.TaxIdentifierEQ(*i.TaxIdentifier)) + if len(i.StandardTypeIn) > 0 { + predicates = append(predicates, standardhistory.StandardTypeIn(i.StandardTypeIn...)) } - if i.TaxIdentifierNEQ != nil { - predicates = append(predicates, organizationsetting.TaxIdentifierNEQ(*i.TaxIdentifierNEQ)) + if len(i.StandardTypeNotIn) > 0 { + predicates = append(predicates, standardhistory.StandardTypeNotIn(i.StandardTypeNotIn...)) } - if len(i.TaxIdentifierIn) > 0 { - predicates = append(predicates, organizationsetting.TaxIdentifierIn(i.TaxIdentifierIn...)) + if i.StandardTypeGT != nil { + predicates = append(predicates, standardhistory.StandardTypeGT(*i.StandardTypeGT)) } - if len(i.TaxIdentifierNotIn) > 0 { - predicates = append(predicates, organizationsetting.TaxIdentifierNotIn(i.TaxIdentifierNotIn...)) + if i.StandardTypeGTE != nil { + predicates = append(predicates, standardhistory.StandardTypeGTE(*i.StandardTypeGTE)) } - if i.TaxIdentifierGT != nil { - predicates = append(predicates, organizationsetting.TaxIdentifierGT(*i.TaxIdentifierGT)) + if i.StandardTypeLT != nil { + predicates = append(predicates, standardhistory.StandardTypeLT(*i.StandardTypeLT)) } - if i.TaxIdentifierGTE != nil { - predicates = append(predicates, organizationsetting.TaxIdentifierGTE(*i.TaxIdentifierGTE)) + if i.StandardTypeLTE != nil { + predicates = append(predicates, standardhistory.StandardTypeLTE(*i.StandardTypeLTE)) } - if i.TaxIdentifierLT != nil { - predicates = append(predicates, organizationsetting.TaxIdentifierLT(*i.TaxIdentifierLT)) + if i.StandardTypeContains != nil { + predicates = append(predicates, standardhistory.StandardTypeContains(*i.StandardTypeContains)) } - if i.TaxIdentifierLTE != nil { - predicates = append(predicates, organizationsetting.TaxIdentifierLTE(*i.TaxIdentifierLTE)) + if i.StandardTypeHasPrefix != nil { + predicates = append(predicates, standardhistory.StandardTypeHasPrefix(*i.StandardTypeHasPrefix)) } - if i.TaxIdentifierContains != nil { - predicates = append(predicates, organizationsetting.TaxIdentifierContains(*i.TaxIdentifierContains)) + if i.StandardTypeHasSuffix != nil { + predicates = append(predicates, standardhistory.StandardTypeHasSuffix(*i.StandardTypeHasSuffix)) } - if i.TaxIdentifierHasPrefix != nil { - predicates = append(predicates, organizationsetting.TaxIdentifierHasPrefix(*i.TaxIdentifierHasPrefix)) + if i.StandardTypeIsNil { + predicates = append(predicates, standardhistory.StandardTypeIsNil()) } - if i.TaxIdentifierHasSuffix != nil { - predicates = append(predicates, organizationsetting.TaxIdentifierHasSuffix(*i.TaxIdentifierHasSuffix)) + if i.StandardTypeNotNil { + predicates = append(predicates, standardhistory.StandardTypeNotNil()) } - if i.TaxIdentifierIsNil { - predicates = append(predicates, organizationsetting.TaxIdentifierIsNil()) + if i.StandardTypeEqualFold != nil { + predicates = append(predicates, standardhistory.StandardTypeEqualFold(*i.StandardTypeEqualFold)) } - if i.TaxIdentifierNotNil { - predicates = append(predicates, organizationsetting.TaxIdentifierNotNil()) + if i.StandardTypeContainsFold != nil { + predicates = append(predicates, standardhistory.StandardTypeContainsFold(*i.StandardTypeContainsFold)) } - if i.TaxIdentifierEqualFold != nil { - predicates = append(predicates, organizationsetting.TaxIdentifierEqualFold(*i.TaxIdentifierEqualFold)) + if i.Version != nil { + predicates = append(predicates, standardhistory.VersionEQ(*i.Version)) } - if i.TaxIdentifierContainsFold != nil { - predicates = append(predicates, organizationsetting.TaxIdentifierContainsFold(*i.TaxIdentifierContainsFold)) + if i.VersionNEQ != nil { + predicates = append(predicates, standardhistory.VersionNEQ(*i.VersionNEQ)) } - if i.GeoLocation != nil { - predicates = append(predicates, organizationsetting.GeoLocationEQ(*i.GeoLocation)) + if len(i.VersionIn) > 0 { + predicates = append(predicates, standardhistory.VersionIn(i.VersionIn...)) } - if i.GeoLocationNEQ != nil { - predicates = append(predicates, organizationsetting.GeoLocationNEQ(*i.GeoLocationNEQ)) + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, standardhistory.VersionNotIn(i.VersionNotIn...)) } - if len(i.GeoLocationIn) > 0 { - predicates = append(predicates, organizationsetting.GeoLocationIn(i.GeoLocationIn...)) + if i.VersionGT != nil { + predicates = append(predicates, standardhistory.VersionGT(*i.VersionGT)) } - if len(i.GeoLocationNotIn) > 0 { - predicates = append(predicates, organizationsetting.GeoLocationNotIn(i.GeoLocationNotIn...)) + if i.VersionGTE != nil { + predicates = append(predicates, standardhistory.VersionGTE(*i.VersionGTE)) } - if i.GeoLocationIsNil { - predicates = append(predicates, organizationsetting.GeoLocationIsNil()) + if i.VersionLT != nil { + predicates = append(predicates, standardhistory.VersionLT(*i.VersionLT)) } - if i.GeoLocationNotNil { - predicates = append(predicates, organizationsetting.GeoLocationNotNil()) + if i.VersionLTE != nil { + predicates = append(predicates, standardhistory.VersionLTE(*i.VersionLTE)) } - if i.OrganizationID != nil { - predicates = append(predicates, organizationsetting.OrganizationIDEQ(*i.OrganizationID)) + if i.VersionContains != nil { + predicates = append(predicates, standardhistory.VersionContains(*i.VersionContains)) } - if i.OrganizationIDNEQ != nil { - predicates = append(predicates, organizationsetting.OrganizationIDNEQ(*i.OrganizationIDNEQ)) + if i.VersionHasPrefix != nil { + predicates = append(predicates, standardhistory.VersionHasPrefix(*i.VersionHasPrefix)) } - if len(i.OrganizationIDIn) > 0 { - predicates = append(predicates, organizationsetting.OrganizationIDIn(i.OrganizationIDIn...)) + if i.VersionHasSuffix != nil { + predicates = append(predicates, standardhistory.VersionHasSuffix(*i.VersionHasSuffix)) } - if len(i.OrganizationIDNotIn) > 0 { - predicates = append(predicates, organizationsetting.OrganizationIDNotIn(i.OrganizationIDNotIn...)) + if i.VersionIsNil { + predicates = append(predicates, standardhistory.VersionIsNil()) } - if i.OrganizationIDGT != nil { - predicates = append(predicates, organizationsetting.OrganizationIDGT(*i.OrganizationIDGT)) + if i.VersionNotNil { + predicates = append(predicates, standardhistory.VersionNotNil()) } - if i.OrganizationIDGTE != nil { - predicates = append(predicates, organizationsetting.OrganizationIDGTE(*i.OrganizationIDGTE)) + if i.VersionEqualFold != nil { + predicates = append(predicates, standardhistory.VersionEqualFold(*i.VersionEqualFold)) } - if i.OrganizationIDLT != nil { - predicates = append(predicates, organizationsetting.OrganizationIDLT(*i.OrganizationIDLT)) + if i.VersionContainsFold != nil { + predicates = append(predicates, standardhistory.VersionContainsFold(*i.VersionContainsFold)) } - if i.OrganizationIDLTE != nil { - predicates = append(predicates, organizationsetting.OrganizationIDLTE(*i.OrganizationIDLTE)) + if i.PurposeAndScope != nil { + predicates = append(predicates, standardhistory.PurposeAndScopeEQ(*i.PurposeAndScope)) } - if i.OrganizationIDContains != nil { - predicates = append(predicates, organizationsetting.OrganizationIDContains(*i.OrganizationIDContains)) + if i.PurposeAndScopeNEQ != nil { + predicates = append(predicates, standardhistory.PurposeAndScopeNEQ(*i.PurposeAndScopeNEQ)) } - if i.OrganizationIDHasPrefix != nil { - predicates = append(predicates, organizationsetting.OrganizationIDHasPrefix(*i.OrganizationIDHasPrefix)) + if len(i.PurposeAndScopeIn) > 0 { + predicates = append(predicates, standardhistory.PurposeAndScopeIn(i.PurposeAndScopeIn...)) } - if i.OrganizationIDHasSuffix != nil { - predicates = append(predicates, organizationsetting.OrganizationIDHasSuffix(*i.OrganizationIDHasSuffix)) + if len(i.PurposeAndScopeNotIn) > 0 { + predicates = append(predicates, standardhistory.PurposeAndScopeNotIn(i.PurposeAndScopeNotIn...)) } - if i.OrganizationIDIsNil { - predicates = append(predicates, organizationsetting.OrganizationIDIsNil()) + if i.PurposeAndScopeGT != nil { + predicates = append(predicates, standardhistory.PurposeAndScopeGT(*i.PurposeAndScopeGT)) } - if i.OrganizationIDNotNil { - predicates = append(predicates, organizationsetting.OrganizationIDNotNil()) + if i.PurposeAndScopeGTE != nil { + predicates = append(predicates, standardhistory.PurposeAndScopeGTE(*i.PurposeAndScopeGTE)) } - if i.OrganizationIDEqualFold != nil { - predicates = append(predicates, organizationsetting.OrganizationIDEqualFold(*i.OrganizationIDEqualFold)) + if i.PurposeAndScopeLT != nil { + predicates = append(predicates, standardhistory.PurposeAndScopeLT(*i.PurposeAndScopeLT)) } - if i.OrganizationIDContainsFold != nil { - predicates = append(predicates, organizationsetting.OrganizationIDContainsFold(*i.OrganizationIDContainsFold)) + if i.PurposeAndScopeLTE != nil { + predicates = append(predicates, standardhistory.PurposeAndScopeLTE(*i.PurposeAndScopeLTE)) } - - if i.HasOrganization != nil { - p := organizationsetting.HasOrganization() - if !*i.HasOrganization { - p = organizationsetting.Not(p) - } - predicates = append(predicates, p) + if i.PurposeAndScopeContains != nil { + predicates = append(predicates, standardhistory.PurposeAndScopeContains(*i.PurposeAndScopeContains)) + } + if i.PurposeAndScopeHasPrefix != nil { + predicates = append(predicates, standardhistory.PurposeAndScopeHasPrefix(*i.PurposeAndScopeHasPrefix)) + } + if i.PurposeAndScopeHasSuffix != nil { + predicates = append(predicates, standardhistory.PurposeAndScopeHasSuffix(*i.PurposeAndScopeHasSuffix)) + } + if i.PurposeAndScopeIsNil { + predicates = append(predicates, standardhistory.PurposeAndScopeIsNil()) + } + if i.PurposeAndScopeNotNil { + predicates = append(predicates, standardhistory.PurposeAndScopeNotNil()) + } + if i.PurposeAndScopeEqualFold != nil { + predicates = append(predicates, standardhistory.PurposeAndScopeEqualFold(*i.PurposeAndScopeEqualFold)) + } + if i.PurposeAndScopeContainsFold != nil { + predicates = append(predicates, standardhistory.PurposeAndScopeContainsFold(*i.PurposeAndScopeContainsFold)) + } + if i.Background != nil { + predicates = append(predicates, standardhistory.BackgroundEQ(*i.Background)) + } + if i.BackgroundNEQ != nil { + predicates = append(predicates, standardhistory.BackgroundNEQ(*i.BackgroundNEQ)) + } + if len(i.BackgroundIn) > 0 { + predicates = append(predicates, standardhistory.BackgroundIn(i.BackgroundIn...)) + } + if len(i.BackgroundNotIn) > 0 { + predicates = append(predicates, standardhistory.BackgroundNotIn(i.BackgroundNotIn...)) + } + if i.BackgroundGT != nil { + predicates = append(predicates, standardhistory.BackgroundGT(*i.BackgroundGT)) + } + if i.BackgroundGTE != nil { + predicates = append(predicates, standardhistory.BackgroundGTE(*i.BackgroundGTE)) + } + if i.BackgroundLT != nil { + predicates = append(predicates, standardhistory.BackgroundLT(*i.BackgroundLT)) + } + if i.BackgroundLTE != nil { + predicates = append(predicates, standardhistory.BackgroundLTE(*i.BackgroundLTE)) + } + if i.BackgroundContains != nil { + predicates = append(predicates, standardhistory.BackgroundContains(*i.BackgroundContains)) + } + if i.BackgroundHasPrefix != nil { + predicates = append(predicates, standardhistory.BackgroundHasPrefix(*i.BackgroundHasPrefix)) + } + if i.BackgroundHasSuffix != nil { + predicates = append(predicates, standardhistory.BackgroundHasSuffix(*i.BackgroundHasSuffix)) + } + if i.BackgroundIsNil { + predicates = append(predicates, standardhistory.BackgroundIsNil()) + } + if i.BackgroundNotNil { + predicates = append(predicates, standardhistory.BackgroundNotNil()) + } + if i.BackgroundEqualFold != nil { + predicates = append(predicates, standardhistory.BackgroundEqualFold(*i.BackgroundEqualFold)) + } + if i.BackgroundContainsFold != nil { + predicates = append(predicates, standardhistory.BackgroundContainsFold(*i.BackgroundContainsFold)) + } + if i.Satisfies != nil { + predicates = append(predicates, standardhistory.SatisfiesEQ(*i.Satisfies)) + } + if i.SatisfiesNEQ != nil { + predicates = append(predicates, standardhistory.SatisfiesNEQ(*i.SatisfiesNEQ)) + } + if len(i.SatisfiesIn) > 0 { + predicates = append(predicates, standardhistory.SatisfiesIn(i.SatisfiesIn...)) + } + if len(i.SatisfiesNotIn) > 0 { + predicates = append(predicates, standardhistory.SatisfiesNotIn(i.SatisfiesNotIn...)) + } + if i.SatisfiesGT != nil { + predicates = append(predicates, standardhistory.SatisfiesGT(*i.SatisfiesGT)) + } + if i.SatisfiesGTE != nil { + predicates = append(predicates, standardhistory.SatisfiesGTE(*i.SatisfiesGTE)) + } + if i.SatisfiesLT != nil { + predicates = append(predicates, standardhistory.SatisfiesLT(*i.SatisfiesLT)) + } + if i.SatisfiesLTE != nil { + predicates = append(predicates, standardhistory.SatisfiesLTE(*i.SatisfiesLTE)) + } + if i.SatisfiesContains != nil { + predicates = append(predicates, standardhistory.SatisfiesContains(*i.SatisfiesContains)) + } + if i.SatisfiesHasPrefix != nil { + predicates = append(predicates, standardhistory.SatisfiesHasPrefix(*i.SatisfiesHasPrefix)) + } + if i.SatisfiesHasSuffix != nil { + predicates = append(predicates, standardhistory.SatisfiesHasSuffix(*i.SatisfiesHasSuffix)) } - if len(i.HasOrganizationWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOrganizationWith)) - for _, w := range i.HasOrganizationWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasOrganizationWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organizationsetting.HasOrganizationWith(with...)) + if i.SatisfiesIsNil { + predicates = append(predicates, standardhistory.SatisfiesIsNil()) } - if i.HasFiles != nil { - p := organizationsetting.HasFiles() - if !*i.HasFiles { - p = organizationsetting.Not(p) - } - predicates = append(predicates, p) + if i.SatisfiesNotNil { + predicates = append(predicates, standardhistory.SatisfiesNotNil()) } - if len(i.HasFilesWith) > 0 { - with := make([]predicate.File, 0, len(i.HasFilesWith)) - for _, w := range i.HasFilesWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasFilesWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, organizationsetting.HasFilesWith(with...)) + if i.SatisfiesEqualFold != nil { + predicates = append(predicates, standardhistory.SatisfiesEqualFold(*i.SatisfiesEqualFold)) } + if i.SatisfiesContainsFold != nil { + predicates = append(predicates, standardhistory.SatisfiesContainsFold(*i.SatisfiesContainsFold)) + } + switch len(predicates) { case 0: - return nil, ErrEmptyOrganizationSettingWhereInput + return nil, ErrEmptyStandardHistoryWhereInput case 1: return predicates[0], nil default: - return organizationsetting.And(predicates...), nil + return standardhistory.And(predicates...), nil } } -// OrganizationSettingHistoryWhereInput represents a where input for filtering OrganizationSettingHistory queries. -type OrganizationSettingHistoryWhereInput struct { - Predicates []predicate.OrganizationSettingHistory `json:"-"` - Not *OrganizationSettingHistoryWhereInput `json:"not,omitempty"` - Or []*OrganizationSettingHistoryWhereInput `json:"or,omitempty"` - And []*OrganizationSettingHistoryWhereInput `json:"and,omitempty"` +// SubcontrolWhereInput represents a where input for filtering Subcontrol queries. +type SubcontrolWhereInput struct { + Predicates []predicate.Subcontrol `json:"-"` + Not *SubcontrolWhereInput `json:"not,omitempty"` + Or []*SubcontrolWhereInput `json:"or,omitempty"` + And []*SubcontrolWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -33742,39 +51700,6 @@ type OrganizationSettingHistoryWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // "history_time" field predicates. - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` - RefGT *string `json:"refGT,omitempty"` - RefGTE *string `json:"refGTE,omitempty"` - RefLT *string `json:"refLT,omitempty"` - RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -33862,130 +51787,275 @@ type OrganizationSettingHistoryWhereInput struct { DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // "billing_contact" field predicates. - BillingContact *string `json:"billingContact,omitempty"` - BillingContactNEQ *string `json:"billingContactNEQ,omitempty"` - BillingContactIn []string `json:"billingContactIn,omitempty"` - BillingContactNotIn []string `json:"billingContactNotIn,omitempty"` - BillingContactGT *string `json:"billingContactGT,omitempty"` - BillingContactGTE *string `json:"billingContactGTE,omitempty"` - BillingContactLT *string `json:"billingContactLT,omitempty"` - BillingContactLTE *string `json:"billingContactLTE,omitempty"` - BillingContactContains *string `json:"billingContactContains,omitempty"` - BillingContactHasPrefix *string `json:"billingContactHasPrefix,omitempty"` - BillingContactHasSuffix *string `json:"billingContactHasSuffix,omitempty"` - BillingContactIsNil bool `json:"billingContactIsNil,omitempty"` - BillingContactNotNil bool `json:"billingContactNotNil,omitempty"` - BillingContactEqualFold *string `json:"billingContactEqualFold,omitempty"` - BillingContactContainsFold *string `json:"billingContactContainsFold,omitempty"` + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGT *string `json:"nameGT,omitempty"` + NameGTE *string `json:"nameGTE,omitempty"` + NameLT *string `json:"nameLT,omitempty"` + NameLTE *string `json:"nameLTE,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"` - // "billing_email" field predicates. - BillingEmail *string `json:"billingEmail,omitempty"` - BillingEmailNEQ *string `json:"billingEmailNEQ,omitempty"` - BillingEmailIn []string `json:"billingEmailIn,omitempty"` - BillingEmailNotIn []string `json:"billingEmailNotIn,omitempty"` - BillingEmailGT *string `json:"billingEmailGT,omitempty"` - BillingEmailGTE *string `json:"billingEmailGTE,omitempty"` - BillingEmailLT *string `json:"billingEmailLT,omitempty"` - BillingEmailLTE *string `json:"billingEmailLTE,omitempty"` - BillingEmailContains *string `json:"billingEmailContains,omitempty"` - BillingEmailHasPrefix *string `json:"billingEmailHasPrefix,omitempty"` - BillingEmailHasSuffix *string `json:"billingEmailHasSuffix,omitempty"` - BillingEmailIsNil bool `json:"billingEmailIsNil,omitempty"` - BillingEmailNotNil bool `json:"billingEmailNotNil,omitempty"` - BillingEmailEqualFold *string `json:"billingEmailEqualFold,omitempty"` - BillingEmailContainsFold *string `json:"billingEmailContainsFold,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` - // "billing_phone" field predicates. - BillingPhone *string `json:"billingPhone,omitempty"` - BillingPhoneNEQ *string `json:"billingPhoneNEQ,omitempty"` - BillingPhoneIn []string `json:"billingPhoneIn,omitempty"` - BillingPhoneNotIn []string `json:"billingPhoneNotIn,omitempty"` - BillingPhoneGT *string `json:"billingPhoneGT,omitempty"` - BillingPhoneGTE *string `json:"billingPhoneGTE,omitempty"` - BillingPhoneLT *string `json:"billingPhoneLT,omitempty"` - BillingPhoneLTE *string `json:"billingPhoneLTE,omitempty"` - BillingPhoneContains *string `json:"billingPhoneContains,omitempty"` - BillingPhoneHasPrefix *string `json:"billingPhoneHasPrefix,omitempty"` - BillingPhoneHasSuffix *string `json:"billingPhoneHasSuffix,omitempty"` - BillingPhoneIsNil bool `json:"billingPhoneIsNil,omitempty"` - BillingPhoneNotNil bool `json:"billingPhoneNotNil,omitempty"` - BillingPhoneEqualFold *string `json:"billingPhoneEqualFold,omitempty"` - BillingPhoneContainsFold *string `json:"billingPhoneContainsFold,omitempty"` + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` - // "billing_address" field predicates. - BillingAddress *string `json:"billingAddress,omitempty"` - BillingAddressNEQ *string `json:"billingAddressNEQ,omitempty"` - BillingAddressIn []string `json:"billingAddressIn,omitempty"` - BillingAddressNotIn []string `json:"billingAddressNotIn,omitempty"` - BillingAddressGT *string `json:"billingAddressGT,omitempty"` - BillingAddressGTE *string `json:"billingAddressGTE,omitempty"` - BillingAddressLT *string `json:"billingAddressLT,omitempty"` - BillingAddressLTE *string `json:"billingAddressLTE,omitempty"` - BillingAddressContains *string `json:"billingAddressContains,omitempty"` - BillingAddressHasPrefix *string `json:"billingAddressHasPrefix,omitempty"` - BillingAddressHasSuffix *string `json:"billingAddressHasSuffix,omitempty"` - BillingAddressIsNil bool `json:"billingAddressIsNil,omitempty"` - BillingAddressNotNil bool `json:"billingAddressNotNil,omitempty"` - BillingAddressEqualFold *string `json:"billingAddressEqualFold,omitempty"` - BillingAddressContainsFold *string `json:"billingAddressContainsFold,omitempty"` + // "subcontrol_type" field predicates. + SubcontrolType *string `json:"subcontrolType,omitempty"` + SubcontrolTypeNEQ *string `json:"subcontrolTypeNEQ,omitempty"` + SubcontrolTypeIn []string `json:"subcontrolTypeIn,omitempty"` + SubcontrolTypeNotIn []string `json:"subcontrolTypeNotIn,omitempty"` + SubcontrolTypeGT *string `json:"subcontrolTypeGT,omitempty"` + SubcontrolTypeGTE *string `json:"subcontrolTypeGTE,omitempty"` + SubcontrolTypeLT *string `json:"subcontrolTypeLT,omitempty"` + SubcontrolTypeLTE *string `json:"subcontrolTypeLTE,omitempty"` + SubcontrolTypeContains *string `json:"subcontrolTypeContains,omitempty"` + SubcontrolTypeHasPrefix *string `json:"subcontrolTypeHasPrefix,omitempty"` + SubcontrolTypeHasSuffix *string `json:"subcontrolTypeHasSuffix,omitempty"` + SubcontrolTypeIsNil bool `json:"subcontrolTypeIsNil,omitempty"` + SubcontrolTypeNotNil bool `json:"subcontrolTypeNotNil,omitempty"` + SubcontrolTypeEqualFold *string `json:"subcontrolTypeEqualFold,omitempty"` + SubcontrolTypeContainsFold *string `json:"subcontrolTypeContainsFold,omitempty"` - // "tax_identifier" field predicates. - TaxIdentifier *string `json:"taxIdentifier,omitempty"` - TaxIdentifierNEQ *string `json:"taxIdentifierNEQ,omitempty"` - TaxIdentifierIn []string `json:"taxIdentifierIn,omitempty"` - TaxIdentifierNotIn []string `json:"taxIdentifierNotIn,omitempty"` - TaxIdentifierGT *string `json:"taxIdentifierGT,omitempty"` - TaxIdentifierGTE *string `json:"taxIdentifierGTE,omitempty"` - TaxIdentifierLT *string `json:"taxIdentifierLT,omitempty"` - TaxIdentifierLTE *string `json:"taxIdentifierLTE,omitempty"` - TaxIdentifierContains *string `json:"taxIdentifierContains,omitempty"` - TaxIdentifierHasPrefix *string `json:"taxIdentifierHasPrefix,omitempty"` - TaxIdentifierHasSuffix *string `json:"taxIdentifierHasSuffix,omitempty"` - TaxIdentifierIsNil bool `json:"taxIdentifierIsNil,omitempty"` - TaxIdentifierNotNil bool `json:"taxIdentifierNotNil,omitempty"` - TaxIdentifierEqualFold *string `json:"taxIdentifierEqualFold,omitempty"` - TaxIdentifierContainsFold *string `json:"taxIdentifierContainsFold,omitempty"` + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil bool `json:"versionIsNil,omitempty"` + VersionNotNil bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` - // "geo_location" field predicates. - GeoLocation *enums.Region `json:"geoLocation,omitempty"` - GeoLocationNEQ *enums.Region `json:"geoLocationNEQ,omitempty"` - GeoLocationIn []enums.Region `json:"geoLocationIn,omitempty"` - GeoLocationNotIn []enums.Region `json:"geoLocationNotIn,omitempty"` - GeoLocationIsNil bool `json:"geoLocationIsNil,omitempty"` - GeoLocationNotNil bool `json:"geoLocationNotNil,omitempty"` + // "subcontrol_number" field predicates. + SubcontrolNumber *string `json:"subcontrolNumber,omitempty"` + SubcontrolNumberNEQ *string `json:"subcontrolNumberNEQ,omitempty"` + SubcontrolNumberIn []string `json:"subcontrolNumberIn,omitempty"` + SubcontrolNumberNotIn []string `json:"subcontrolNumberNotIn,omitempty"` + SubcontrolNumberGT *string `json:"subcontrolNumberGT,omitempty"` + SubcontrolNumberGTE *string `json:"subcontrolNumberGTE,omitempty"` + SubcontrolNumberLT *string `json:"subcontrolNumberLT,omitempty"` + SubcontrolNumberLTE *string `json:"subcontrolNumberLTE,omitempty"` + SubcontrolNumberContains *string `json:"subcontrolNumberContains,omitempty"` + SubcontrolNumberHasPrefix *string `json:"subcontrolNumberHasPrefix,omitempty"` + SubcontrolNumberHasSuffix *string `json:"subcontrolNumberHasSuffix,omitempty"` + SubcontrolNumberIsNil bool `json:"subcontrolNumberIsNil,omitempty"` + SubcontrolNumberNotNil bool `json:"subcontrolNumberNotNil,omitempty"` + SubcontrolNumberEqualFold *string `json:"subcontrolNumberEqualFold,omitempty"` + SubcontrolNumberContainsFold *string `json:"subcontrolNumberContainsFold,omitempty"` + + // "family" field predicates. + Family *string `json:"family,omitempty"` + FamilyNEQ *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGT *string `json:"familyGT,omitempty"` + FamilyGTE *string `json:"familyGTE,omitempty"` + FamilyLT *string `json:"familyLT,omitempty"` + FamilyLTE *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil bool `json:"familyIsNil,omitempty"` + FamilyNotNil bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + + // "class" field predicates. + Class *string `json:"class,omitempty"` + ClassNEQ *string `json:"classNEQ,omitempty"` + ClassIn []string `json:"classIn,omitempty"` + ClassNotIn []string `json:"classNotIn,omitempty"` + ClassGT *string `json:"classGT,omitempty"` + ClassGTE *string `json:"classGTE,omitempty"` + ClassLT *string `json:"classLT,omitempty"` + ClassLTE *string `json:"classLTE,omitempty"` + ClassContains *string `json:"classContains,omitempty"` + ClassHasPrefix *string `json:"classHasPrefix,omitempty"` + ClassHasSuffix *string `json:"classHasSuffix,omitempty"` + ClassIsNil bool `json:"classIsNil,omitempty"` + ClassNotNil bool `json:"classNotNil,omitempty"` + ClassEqualFold *string `json:"classEqualFold,omitempty"` + ClassContainsFold *string `json:"classContainsFold,omitempty"` + + // "source" field predicates. + Source *string `json:"source,omitempty"` + SourceNEQ *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGT *string `json:"sourceGT,omitempty"` + SourceGTE *string `json:"sourceGTE,omitempty"` + SourceLT *string `json:"sourceLT,omitempty"` + SourceLTE *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil bool `json:"sourceIsNil,omitempty"` + SourceNotNil bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + + // "mapped_frameworks" field predicates. + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + MappedFrameworksNEQ *string `json:"mappedFrameworksNEQ,omitempty"` + MappedFrameworksIn []string `json:"mappedFrameworksIn,omitempty"` + MappedFrameworksNotIn []string `json:"mappedFrameworksNotIn,omitempty"` + MappedFrameworksGT *string `json:"mappedFrameworksGT,omitempty"` + MappedFrameworksGTE *string `json:"mappedFrameworksGTE,omitempty"` + MappedFrameworksLT *string `json:"mappedFrameworksLT,omitempty"` + MappedFrameworksLTE *string `json:"mappedFrameworksLTE,omitempty"` + MappedFrameworksContains *string `json:"mappedFrameworksContains,omitempty"` + MappedFrameworksHasPrefix *string `json:"mappedFrameworksHasPrefix,omitempty"` + MappedFrameworksHasSuffix *string `json:"mappedFrameworksHasSuffix,omitempty"` + MappedFrameworksIsNil bool `json:"mappedFrameworksIsNil,omitempty"` + MappedFrameworksNotNil bool `json:"mappedFrameworksNotNil,omitempty"` + MappedFrameworksEqualFold *string `json:"mappedFrameworksEqualFold,omitempty"` + MappedFrameworksContainsFold *string `json:"mappedFrameworksContainsFold,omitempty"` + + // "implementation_evidence" field predicates. + ImplementationEvidence *string `json:"implementationEvidence,omitempty"` + ImplementationEvidenceNEQ *string `json:"implementationEvidenceNEQ,omitempty"` + ImplementationEvidenceIn []string `json:"implementationEvidenceIn,omitempty"` + ImplementationEvidenceNotIn []string `json:"implementationEvidenceNotIn,omitempty"` + ImplementationEvidenceGT *string `json:"implementationEvidenceGT,omitempty"` + ImplementationEvidenceGTE *string `json:"implementationEvidenceGTE,omitempty"` + ImplementationEvidenceLT *string `json:"implementationEvidenceLT,omitempty"` + ImplementationEvidenceLTE *string `json:"implementationEvidenceLTE,omitempty"` + ImplementationEvidenceContains *string `json:"implementationEvidenceContains,omitempty"` + ImplementationEvidenceHasPrefix *string `json:"implementationEvidenceHasPrefix,omitempty"` + ImplementationEvidenceHasSuffix *string `json:"implementationEvidenceHasSuffix,omitempty"` + ImplementationEvidenceIsNil bool `json:"implementationEvidenceIsNil,omitempty"` + ImplementationEvidenceNotNil bool `json:"implementationEvidenceNotNil,omitempty"` + ImplementationEvidenceEqualFold *string `json:"implementationEvidenceEqualFold,omitempty"` + ImplementationEvidenceContainsFold *string `json:"implementationEvidenceContainsFold,omitempty"` + + // "implementation_status" field predicates. + ImplementationStatus *string `json:"implementationStatus,omitempty"` + ImplementationStatusNEQ *string `json:"implementationStatusNEQ,omitempty"` + ImplementationStatusIn []string `json:"implementationStatusIn,omitempty"` + ImplementationStatusNotIn []string `json:"implementationStatusNotIn,omitempty"` + ImplementationStatusGT *string `json:"implementationStatusGT,omitempty"` + ImplementationStatusGTE *string `json:"implementationStatusGTE,omitempty"` + ImplementationStatusLT *string `json:"implementationStatusLT,omitempty"` + ImplementationStatusLTE *string `json:"implementationStatusLTE,omitempty"` + ImplementationStatusContains *string `json:"implementationStatusContains,omitempty"` + ImplementationStatusHasPrefix *string `json:"implementationStatusHasPrefix,omitempty"` + ImplementationStatusHasSuffix *string `json:"implementationStatusHasSuffix,omitempty"` + ImplementationStatusIsNil bool `json:"implementationStatusIsNil,omitempty"` + ImplementationStatusNotNil bool `json:"implementationStatusNotNil,omitempty"` + ImplementationStatusEqualFold *string `json:"implementationStatusEqualFold,omitempty"` + ImplementationStatusContainsFold *string `json:"implementationStatusContainsFold,omitempty"` + + // "implementation_date" field predicates. + ImplementationDate *time.Time `json:"implementationDate,omitempty"` + ImplementationDateNEQ *time.Time `json:"implementationDateNEQ,omitempty"` + ImplementationDateIn []time.Time `json:"implementationDateIn,omitempty"` + ImplementationDateNotIn []time.Time `json:"implementationDateNotIn,omitempty"` + ImplementationDateGT *time.Time `json:"implementationDateGT,omitempty"` + ImplementationDateGTE *time.Time `json:"implementationDateGTE,omitempty"` + ImplementationDateLT *time.Time `json:"implementationDateLT,omitempty"` + ImplementationDateLTE *time.Time `json:"implementationDateLTE,omitempty"` + ImplementationDateIsNil bool `json:"implementationDateIsNil,omitempty"` + ImplementationDateNotNil bool `json:"implementationDateNotNil,omitempty"` + + // "implementation_verification" field predicates. + ImplementationVerification *string `json:"implementationVerification,omitempty"` + ImplementationVerificationNEQ *string `json:"implementationVerificationNEQ,omitempty"` + ImplementationVerificationIn []string `json:"implementationVerificationIn,omitempty"` + ImplementationVerificationNotIn []string `json:"implementationVerificationNotIn,omitempty"` + ImplementationVerificationGT *string `json:"implementationVerificationGT,omitempty"` + ImplementationVerificationGTE *string `json:"implementationVerificationGTE,omitempty"` + ImplementationVerificationLT *string `json:"implementationVerificationLT,omitempty"` + ImplementationVerificationLTE *string `json:"implementationVerificationLTE,omitempty"` + ImplementationVerificationContains *string `json:"implementationVerificationContains,omitempty"` + ImplementationVerificationHasPrefix *string `json:"implementationVerificationHasPrefix,omitempty"` + ImplementationVerificationHasSuffix *string `json:"implementationVerificationHasSuffix,omitempty"` + ImplementationVerificationIsNil bool `json:"implementationVerificationIsNil,omitempty"` + ImplementationVerificationNotNil bool `json:"implementationVerificationNotNil,omitempty"` + ImplementationVerificationEqualFold *string `json:"implementationVerificationEqualFold,omitempty"` + ImplementationVerificationContainsFold *string `json:"implementationVerificationContainsFold,omitempty"` + + // "implementation_verification_date" field predicates. + ImplementationVerificationDate *time.Time `json:"implementationVerificationDate,omitempty"` + ImplementationVerificationDateNEQ *time.Time `json:"implementationVerificationDateNEQ,omitempty"` + ImplementationVerificationDateIn []time.Time `json:"implementationVerificationDateIn,omitempty"` + ImplementationVerificationDateNotIn []time.Time `json:"implementationVerificationDateNotIn,omitempty"` + ImplementationVerificationDateGT *time.Time `json:"implementationVerificationDateGT,omitempty"` + ImplementationVerificationDateGTE *time.Time `json:"implementationVerificationDateGTE,omitempty"` + ImplementationVerificationDateLT *time.Time `json:"implementationVerificationDateLT,omitempty"` + ImplementationVerificationDateLTE *time.Time `json:"implementationVerificationDateLTE,omitempty"` + ImplementationVerificationDateIsNil bool `json:"implementationVerificationDateIsNil,omitempty"` + ImplementationVerificationDateNotNil bool `json:"implementationVerificationDateNotNil,omitempty"` + + // "control" edge predicates. + HasControl *bool `json:"hasControl,omitempty"` + HasControlWith []*ControlWhereInput `json:"hasControlWith,omitempty"` - // "organization_id" field predicates. - OrganizationID *string `json:"organizationID,omitempty"` - OrganizationIDNEQ *string `json:"organizationIDNEQ,omitempty"` - OrganizationIDIn []string `json:"organizationIDIn,omitempty"` - OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` - OrganizationIDGT *string `json:"organizationIDGT,omitempty"` - OrganizationIDGTE *string `json:"organizationIDGTE,omitempty"` - OrganizationIDLT *string `json:"organizationIDLT,omitempty"` - OrganizationIDLTE *string `json:"organizationIDLTE,omitempty"` - OrganizationIDContains *string `json:"organizationIDContains,omitempty"` - OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` - OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` - OrganizationIDIsNil bool `json:"organizationIDIsNil,omitempty"` - OrganizationIDNotNil bool `json:"organizationIDNotNil,omitempty"` - OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` - OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` + // "user" edge predicates. + HasUser *bool `json:"hasUser,omitempty"` + HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` + + // "notes" edge predicates. + HasNotes *bool `json:"hasNotes,omitempty"` + HasNotesWith []*NoteWhereInput `json:"hasNotesWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *OrganizationSettingHistoryWhereInput) AddPredicates(predicates ...predicate.OrganizationSettingHistory) { +func (i *SubcontrolWhereInput) AddPredicates(predicates ...predicate.Subcontrol) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the OrganizationSettingHistoryWhereInput filter on the OrganizationSettingHistoryQuery builder. -func (i *OrganizationSettingHistoryWhereInput) Filter(q *OrganizationSettingHistoryQuery) (*OrganizationSettingHistoryQuery, error) { +// Filter applies the SubcontrolWhereInput filter on the SubcontrolQuery builder. +func (i *SubcontrolWhereInput) Filter(q *SubcontrolQuery) (*SubcontrolQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyOrganizationSettingHistoryWhereInput { + if err == ErrEmptySubcontrolWhereInput { return q, nil } return nil, err @@ -33993,19 +52063,19 @@ func (i *OrganizationSettingHistoryWhereInput) Filter(q *OrganizationSettingHist return q.Where(p), nil } -// ErrEmptyOrganizationSettingHistoryWhereInput is returned in case the OrganizationSettingHistoryWhereInput is empty. -var ErrEmptyOrganizationSettingHistoryWhereInput = errors.New("generated: empty predicate OrganizationSettingHistoryWhereInput") +// ErrEmptySubcontrolWhereInput is returned in case the SubcontrolWhereInput is empty. +var ErrEmptySubcontrolWhereInput = errors.New("generated: empty predicate SubcontrolWhereInput") -// P returns a predicate for filtering organizationsettinghistories. +// P returns a predicate for filtering subcontrols. // An error is returned if the input is empty or invalid. -func (i *OrganizationSettingHistoryWhereInput) P() (predicate.OrganizationSettingHistory, error) { - var predicates []predicate.OrganizationSettingHistory +func (i *SubcontrolWhereInput) P() (predicate.Subcontrol, error) { + var predicates []predicate.Subcontrol if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, organizationsettinghistory.Not(p)) + predicates = append(predicates, subcontrol.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -34015,7 +52085,7 @@ func (i *OrganizationSettingHistoryWhereInput) P() (predicate.OrganizationSettin } predicates = append(predicates, p) case n > 1: - or := make([]predicate.OrganizationSettingHistory, 0, n) + or := make([]predicate.Subcontrol, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -34023,7 +52093,7 @@ func (i *OrganizationSettingHistoryWhereInput) P() (predicate.OrganizationSettin } or = append(or, p) } - predicates = append(predicates, organizationsettinghistory.Or(or...)) + predicates = append(predicates, subcontrol.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -34033,7 +52103,7 @@ func (i *OrganizationSettingHistoryWhereInput) P() (predicate.OrganizationSettin } predicates = append(predicates, p) case n > 1: - and := make([]predicate.OrganizationSettingHistory, 0, n) + and := make([]predicate.Subcontrol, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -34041,650 +52111,974 @@ func (i *OrganizationSettingHistoryWhereInput) P() (predicate.OrganizationSettin } and = append(and, p) } - predicates = append(predicates, organizationsettinghistory.And(and...)) + predicates = append(predicates, subcontrol.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, organizationsettinghistory.IDEQ(*i.ID)) + predicates = append(predicates, subcontrol.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, organizationsettinghistory.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, subcontrol.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, organizationsettinghistory.IDIn(i.IDIn...)) + predicates = append(predicates, subcontrol.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, subcontrol.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, organizationsettinghistory.IDGT(*i.IDGT)) + predicates = append(predicates, subcontrol.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, organizationsettinghistory.IDGTE(*i.IDGTE)) + predicates = append(predicates, subcontrol.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, organizationsettinghistory.IDLT(*i.IDLT)) + predicates = append(predicates, subcontrol.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, organizationsettinghistory.IDLTE(*i.IDLTE)) + predicates = append(predicates, subcontrol.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, organizationsettinghistory.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, subcontrol.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, organizationsettinghistory.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, subcontrol.IDContainsFold(*i.IDContainsFold)) } - if i.HistoryTime != nil { - predicates = append(predicates, organizationsettinghistory.HistoryTimeEQ(*i.HistoryTime)) + if i.CreatedAt != nil { + predicates = append(predicates, subcontrol.CreatedAtEQ(*i.CreatedAt)) } - if i.HistoryTimeNEQ != nil { - predicates = append(predicates, organizationsettinghistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + if i.CreatedAtNEQ != nil { + predicates = append(predicates, subcontrol.CreatedAtNEQ(*i.CreatedAtNEQ)) } - if len(i.HistoryTimeIn) > 0 { - predicates = append(predicates, organizationsettinghistory.HistoryTimeIn(i.HistoryTimeIn...)) + if len(i.CreatedAtIn) > 0 { + predicates = append(predicates, subcontrol.CreatedAtIn(i.CreatedAtIn...)) } - if len(i.HistoryTimeNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + if len(i.CreatedAtNotIn) > 0 { + predicates = append(predicates, subcontrol.CreatedAtNotIn(i.CreatedAtNotIn...)) } - if i.HistoryTimeGT != nil { - predicates = append(predicates, organizationsettinghistory.HistoryTimeGT(*i.HistoryTimeGT)) + if i.CreatedAtGT != nil { + predicates = append(predicates, subcontrol.CreatedAtGT(*i.CreatedAtGT)) } - if i.HistoryTimeGTE != nil { - predicates = append(predicates, organizationsettinghistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + if i.CreatedAtGTE != nil { + predicates = append(predicates, subcontrol.CreatedAtGTE(*i.CreatedAtGTE)) } - if i.HistoryTimeLT != nil { - predicates = append(predicates, organizationsettinghistory.HistoryTimeLT(*i.HistoryTimeLT)) + if i.CreatedAtLT != nil { + predicates = append(predicates, subcontrol.CreatedAtLT(*i.CreatedAtLT)) } - if i.HistoryTimeLTE != nil { - predicates = append(predicates, organizationsettinghistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + if i.CreatedAtLTE != nil { + predicates = append(predicates, subcontrol.CreatedAtLTE(*i.CreatedAtLTE)) } - if i.Ref != nil { - predicates = append(predicates, organizationsettinghistory.RefEQ(*i.Ref)) + if i.CreatedAtIsNil { + predicates = append(predicates, subcontrol.CreatedAtIsNil()) } - if i.RefNEQ != nil { - predicates = append(predicates, organizationsettinghistory.RefNEQ(*i.RefNEQ)) + if i.CreatedAtNotNil { + predicates = append(predicates, subcontrol.CreatedAtNotNil()) } - if len(i.RefIn) > 0 { - predicates = append(predicates, organizationsettinghistory.RefIn(i.RefIn...)) + if i.UpdatedAt != nil { + predicates = append(predicates, subcontrol.UpdatedAtEQ(*i.UpdatedAt)) } - if len(i.RefNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.RefNotIn(i.RefNotIn...)) + if i.UpdatedAtNEQ != nil { + predicates = append(predicates, subcontrol.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } - if i.RefGT != nil { - predicates = append(predicates, organizationsettinghistory.RefGT(*i.RefGT)) + if len(i.UpdatedAtIn) > 0 { + predicates = append(predicates, subcontrol.UpdatedAtIn(i.UpdatedAtIn...)) } - if i.RefGTE != nil { - predicates = append(predicates, organizationsettinghistory.RefGTE(*i.RefGTE)) + if len(i.UpdatedAtNotIn) > 0 { + predicates = append(predicates, subcontrol.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } - if i.RefLT != nil { - predicates = append(predicates, organizationsettinghistory.RefLT(*i.RefLT)) + if i.UpdatedAtGT != nil { + predicates = append(predicates, subcontrol.UpdatedAtGT(*i.UpdatedAtGT)) } - if i.RefLTE != nil { - predicates = append(predicates, organizationsettinghistory.RefLTE(*i.RefLTE)) + if i.UpdatedAtGTE != nil { + predicates = append(predicates, subcontrol.UpdatedAtGTE(*i.UpdatedAtGTE)) } - if i.RefContains != nil { - predicates = append(predicates, organizationsettinghistory.RefContains(*i.RefContains)) + if i.UpdatedAtLT != nil { + predicates = append(predicates, subcontrol.UpdatedAtLT(*i.UpdatedAtLT)) } - if i.RefHasPrefix != nil { - predicates = append(predicates, organizationsettinghistory.RefHasPrefix(*i.RefHasPrefix)) + if i.UpdatedAtLTE != nil { + predicates = append(predicates, subcontrol.UpdatedAtLTE(*i.UpdatedAtLTE)) } - if i.RefHasSuffix != nil { - predicates = append(predicates, organizationsettinghistory.RefHasSuffix(*i.RefHasSuffix)) + if i.UpdatedAtIsNil { + predicates = append(predicates, subcontrol.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, subcontrol.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, subcontrol.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, subcontrol.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, subcontrol.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, subcontrol.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByGT != nil { + predicates = append(predicates, subcontrol.CreatedByGT(*i.CreatedByGT)) + } + if i.CreatedByGTE != nil { + predicates = append(predicates, subcontrol.CreatedByGTE(*i.CreatedByGTE)) + } + if i.CreatedByLT != nil { + predicates = append(predicates, subcontrol.CreatedByLT(*i.CreatedByLT)) + } + if i.CreatedByLTE != nil { + predicates = append(predicates, subcontrol.CreatedByLTE(*i.CreatedByLTE)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, subcontrol.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, subcontrol.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, subcontrol.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, subcontrol.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, subcontrol.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, subcontrol.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, subcontrol.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, subcontrol.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, subcontrol.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, subcontrol.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, subcontrol.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByGT != nil { + predicates = append(predicates, subcontrol.UpdatedByGT(*i.UpdatedByGT)) + } + if i.UpdatedByGTE != nil { + predicates = append(predicates, subcontrol.UpdatedByGTE(*i.UpdatedByGTE)) + } + if i.UpdatedByLT != nil { + predicates = append(predicates, subcontrol.UpdatedByLT(*i.UpdatedByLT)) + } + if i.UpdatedByLTE != nil { + predicates = append(predicates, subcontrol.UpdatedByLTE(*i.UpdatedByLTE)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, subcontrol.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, subcontrol.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, subcontrol.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, subcontrol.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, subcontrol.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, subcontrol.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, subcontrol.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.DeletedAt != nil { + predicates = append(predicates, subcontrol.DeletedAtEQ(*i.DeletedAt)) + } + if i.DeletedAtNEQ != nil { + predicates = append(predicates, subcontrol.DeletedAtNEQ(*i.DeletedAtNEQ)) + } + if len(i.DeletedAtIn) > 0 { + predicates = append(predicates, subcontrol.DeletedAtIn(i.DeletedAtIn...)) + } + if len(i.DeletedAtNotIn) > 0 { + predicates = append(predicates, subcontrol.DeletedAtNotIn(i.DeletedAtNotIn...)) + } + if i.DeletedAtGT != nil { + predicates = append(predicates, subcontrol.DeletedAtGT(*i.DeletedAtGT)) + } + if i.DeletedAtGTE != nil { + predicates = append(predicates, subcontrol.DeletedAtGTE(*i.DeletedAtGTE)) + } + if i.DeletedAtLT != nil { + predicates = append(predicates, subcontrol.DeletedAtLT(*i.DeletedAtLT)) + } + if i.DeletedAtLTE != nil { + predicates = append(predicates, subcontrol.DeletedAtLTE(*i.DeletedAtLTE)) + } + if i.DeletedAtIsNil { + predicates = append(predicates, subcontrol.DeletedAtIsNil()) + } + if i.DeletedAtNotNil { + predicates = append(predicates, subcontrol.DeletedAtNotNil()) + } + if i.DeletedBy != nil { + predicates = append(predicates, subcontrol.DeletedByEQ(*i.DeletedBy)) + } + if i.DeletedByNEQ != nil { + predicates = append(predicates, subcontrol.DeletedByNEQ(*i.DeletedByNEQ)) + } + if len(i.DeletedByIn) > 0 { + predicates = append(predicates, subcontrol.DeletedByIn(i.DeletedByIn...)) + } + if len(i.DeletedByNotIn) > 0 { + predicates = append(predicates, subcontrol.DeletedByNotIn(i.DeletedByNotIn...)) + } + if i.DeletedByGT != nil { + predicates = append(predicates, subcontrol.DeletedByGT(*i.DeletedByGT)) + } + if i.DeletedByGTE != nil { + predicates = append(predicates, subcontrol.DeletedByGTE(*i.DeletedByGTE)) + } + if i.DeletedByLT != nil { + predicates = append(predicates, subcontrol.DeletedByLT(*i.DeletedByLT)) + } + if i.DeletedByLTE != nil { + predicates = append(predicates, subcontrol.DeletedByLTE(*i.DeletedByLTE)) + } + if i.DeletedByContains != nil { + predicates = append(predicates, subcontrol.DeletedByContains(*i.DeletedByContains)) + } + if i.DeletedByHasPrefix != nil { + predicates = append(predicates, subcontrol.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + } + if i.DeletedByHasSuffix != nil { + predicates = append(predicates, subcontrol.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + } + if i.DeletedByIsNil { + predicates = append(predicates, subcontrol.DeletedByIsNil()) + } + if i.DeletedByNotNil { + predicates = append(predicates, subcontrol.DeletedByNotNil()) + } + if i.DeletedByEqualFold != nil { + predicates = append(predicates, subcontrol.DeletedByEqualFold(*i.DeletedByEqualFold)) + } + if i.DeletedByContainsFold != nil { + predicates = append(predicates, subcontrol.DeletedByContainsFold(*i.DeletedByContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, subcontrol.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, subcontrol.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, subcontrol.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, subcontrol.NameNotIn(i.NameNotIn...)) + } + if i.NameGT != nil { + predicates = append(predicates, subcontrol.NameGT(*i.NameGT)) + } + if i.NameGTE != nil { + predicates = append(predicates, subcontrol.NameGTE(*i.NameGTE)) + } + if i.NameLT != nil { + predicates = append(predicates, subcontrol.NameLT(*i.NameLT)) + } + if i.NameLTE != nil { + predicates = append(predicates, subcontrol.NameLTE(*i.NameLTE)) + } + if i.NameContains != nil { + predicates = append(predicates, subcontrol.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, subcontrol.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, subcontrol.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, subcontrol.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, subcontrol.NameContainsFold(*i.NameContainsFold)) + } + if i.Description != nil { + predicates = append(predicates, subcontrol.DescriptionEQ(*i.Description)) + } + if i.DescriptionNEQ != nil { + predicates = append(predicates, subcontrol.DescriptionNEQ(*i.DescriptionNEQ)) + } + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, subcontrol.DescriptionIn(i.DescriptionIn...)) + } + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, subcontrol.DescriptionNotIn(i.DescriptionNotIn...)) + } + if i.DescriptionGT != nil { + predicates = append(predicates, subcontrol.DescriptionGT(*i.DescriptionGT)) + } + if i.DescriptionGTE != nil { + predicates = append(predicates, subcontrol.DescriptionGTE(*i.DescriptionGTE)) + } + if i.DescriptionLT != nil { + predicates = append(predicates, subcontrol.DescriptionLT(*i.DescriptionLT)) + } + if i.DescriptionLTE != nil { + predicates = append(predicates, subcontrol.DescriptionLTE(*i.DescriptionLTE)) + } + if i.DescriptionContains != nil { + predicates = append(predicates, subcontrol.DescriptionContains(*i.DescriptionContains)) + } + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, subcontrol.DescriptionHasPrefix(*i.DescriptionHasPrefix)) + } + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, subcontrol.DescriptionHasSuffix(*i.DescriptionHasSuffix)) + } + if i.DescriptionIsNil { + predicates = append(predicates, subcontrol.DescriptionIsNil()) + } + if i.DescriptionNotNil { + predicates = append(predicates, subcontrol.DescriptionNotNil()) + } + if i.DescriptionEqualFold != nil { + predicates = append(predicates, subcontrol.DescriptionEqualFold(*i.DescriptionEqualFold)) + } + if i.DescriptionContainsFold != nil { + predicates = append(predicates, subcontrol.DescriptionContainsFold(*i.DescriptionContainsFold)) + } + if i.Status != nil { + predicates = append(predicates, subcontrol.StatusEQ(*i.Status)) + } + if i.StatusNEQ != nil { + predicates = append(predicates, subcontrol.StatusNEQ(*i.StatusNEQ)) + } + if len(i.StatusIn) > 0 { + predicates = append(predicates, subcontrol.StatusIn(i.StatusIn...)) + } + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, subcontrol.StatusNotIn(i.StatusNotIn...)) + } + if i.StatusGT != nil { + predicates = append(predicates, subcontrol.StatusGT(*i.StatusGT)) + } + if i.StatusGTE != nil { + predicates = append(predicates, subcontrol.StatusGTE(*i.StatusGTE)) + } + if i.StatusLT != nil { + predicates = append(predicates, subcontrol.StatusLT(*i.StatusLT)) + } + if i.StatusLTE != nil { + predicates = append(predicates, subcontrol.StatusLTE(*i.StatusLTE)) + } + if i.StatusContains != nil { + predicates = append(predicates, subcontrol.StatusContains(*i.StatusContains)) + } + if i.StatusHasPrefix != nil { + predicates = append(predicates, subcontrol.StatusHasPrefix(*i.StatusHasPrefix)) + } + if i.StatusHasSuffix != nil { + predicates = append(predicates, subcontrol.StatusHasSuffix(*i.StatusHasSuffix)) + } + if i.StatusIsNil { + predicates = append(predicates, subcontrol.StatusIsNil()) } - if i.RefIsNil { - predicates = append(predicates, organizationsettinghistory.RefIsNil()) + if i.StatusNotNil { + predicates = append(predicates, subcontrol.StatusNotNil()) } - if i.RefNotNil { - predicates = append(predicates, organizationsettinghistory.RefNotNil()) + if i.StatusEqualFold != nil { + predicates = append(predicates, subcontrol.StatusEqualFold(*i.StatusEqualFold)) } - if i.RefEqualFold != nil { - predicates = append(predicates, organizationsettinghistory.RefEqualFold(*i.RefEqualFold)) + if i.StatusContainsFold != nil { + predicates = append(predicates, subcontrol.StatusContainsFold(*i.StatusContainsFold)) } - if i.RefContainsFold != nil { - predicates = append(predicates, organizationsettinghistory.RefContainsFold(*i.RefContainsFold)) + if i.SubcontrolType != nil { + predicates = append(predicates, subcontrol.SubcontrolTypeEQ(*i.SubcontrolType)) } - if i.Operation != nil { - predicates = append(predicates, organizationsettinghistory.OperationEQ(*i.Operation)) + if i.SubcontrolTypeNEQ != nil { + predicates = append(predicates, subcontrol.SubcontrolTypeNEQ(*i.SubcontrolTypeNEQ)) } - if i.OperationNEQ != nil { - predicates = append(predicates, organizationsettinghistory.OperationNEQ(*i.OperationNEQ)) + if len(i.SubcontrolTypeIn) > 0 { + predicates = append(predicates, subcontrol.SubcontrolTypeIn(i.SubcontrolTypeIn...)) } - if len(i.OperationIn) > 0 { - predicates = append(predicates, organizationsettinghistory.OperationIn(i.OperationIn...)) + if len(i.SubcontrolTypeNotIn) > 0 { + predicates = append(predicates, subcontrol.SubcontrolTypeNotIn(i.SubcontrolTypeNotIn...)) } - if len(i.OperationNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.OperationNotIn(i.OperationNotIn...)) + if i.SubcontrolTypeGT != nil { + predicates = append(predicates, subcontrol.SubcontrolTypeGT(*i.SubcontrolTypeGT)) } - if i.CreatedAt != nil { - predicates = append(predicates, organizationsettinghistory.CreatedAtEQ(*i.CreatedAt)) + if i.SubcontrolTypeGTE != nil { + predicates = append(predicates, subcontrol.SubcontrolTypeGTE(*i.SubcontrolTypeGTE)) } - if i.CreatedAtNEQ != nil { - predicates = append(predicates, organizationsettinghistory.CreatedAtNEQ(*i.CreatedAtNEQ)) + if i.SubcontrolTypeLT != nil { + predicates = append(predicates, subcontrol.SubcontrolTypeLT(*i.SubcontrolTypeLT)) } - if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, organizationsettinghistory.CreatedAtIn(i.CreatedAtIn...)) + if i.SubcontrolTypeLTE != nil { + predicates = append(predicates, subcontrol.SubcontrolTypeLTE(*i.SubcontrolTypeLTE)) } - if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.CreatedAtNotIn(i.CreatedAtNotIn...)) + if i.SubcontrolTypeContains != nil { + predicates = append(predicates, subcontrol.SubcontrolTypeContains(*i.SubcontrolTypeContains)) } - if i.CreatedAtGT != nil { - predicates = append(predicates, organizationsettinghistory.CreatedAtGT(*i.CreatedAtGT)) + if i.SubcontrolTypeHasPrefix != nil { + predicates = append(predicates, subcontrol.SubcontrolTypeHasPrefix(*i.SubcontrolTypeHasPrefix)) } - if i.CreatedAtGTE != nil { - predicates = append(predicates, organizationsettinghistory.CreatedAtGTE(*i.CreatedAtGTE)) + if i.SubcontrolTypeHasSuffix != nil { + predicates = append(predicates, subcontrol.SubcontrolTypeHasSuffix(*i.SubcontrolTypeHasSuffix)) } - if i.CreatedAtLT != nil { - predicates = append(predicates, organizationsettinghistory.CreatedAtLT(*i.CreatedAtLT)) + if i.SubcontrolTypeIsNil { + predicates = append(predicates, subcontrol.SubcontrolTypeIsNil()) } - if i.CreatedAtLTE != nil { - predicates = append(predicates, organizationsettinghistory.CreatedAtLTE(*i.CreatedAtLTE)) + if i.SubcontrolTypeNotNil { + predicates = append(predicates, subcontrol.SubcontrolTypeNotNil()) } - if i.CreatedAtIsNil { - predicates = append(predicates, organizationsettinghistory.CreatedAtIsNil()) + if i.SubcontrolTypeEqualFold != nil { + predicates = append(predicates, subcontrol.SubcontrolTypeEqualFold(*i.SubcontrolTypeEqualFold)) } - if i.CreatedAtNotNil { - predicates = append(predicates, organizationsettinghistory.CreatedAtNotNil()) + if i.SubcontrolTypeContainsFold != nil { + predicates = append(predicates, subcontrol.SubcontrolTypeContainsFold(*i.SubcontrolTypeContainsFold)) } - if i.UpdatedAt != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedAtEQ(*i.UpdatedAt)) + if i.Version != nil { + predicates = append(predicates, subcontrol.VersionEQ(*i.Version)) } - if i.UpdatedAtNEQ != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + if i.VersionNEQ != nil { + predicates = append(predicates, subcontrol.VersionNEQ(*i.VersionNEQ)) } - if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, organizationsettinghistory.UpdatedAtIn(i.UpdatedAtIn...)) + if len(i.VersionIn) > 0 { + predicates = append(predicates, subcontrol.VersionIn(i.VersionIn...)) } - if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, subcontrol.VersionNotIn(i.VersionNotIn...)) } - if i.UpdatedAtGT != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedAtGT(*i.UpdatedAtGT)) + if i.VersionGT != nil { + predicates = append(predicates, subcontrol.VersionGT(*i.VersionGT)) } - if i.UpdatedAtGTE != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + if i.VersionGTE != nil { + predicates = append(predicates, subcontrol.VersionGTE(*i.VersionGTE)) } - if i.UpdatedAtLT != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedAtLT(*i.UpdatedAtLT)) + if i.VersionLT != nil { + predicates = append(predicates, subcontrol.VersionLT(*i.VersionLT)) } - if i.UpdatedAtLTE != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + if i.VersionLTE != nil { + predicates = append(predicates, subcontrol.VersionLTE(*i.VersionLTE)) } - if i.UpdatedAtIsNil { - predicates = append(predicates, organizationsettinghistory.UpdatedAtIsNil()) + if i.VersionContains != nil { + predicates = append(predicates, subcontrol.VersionContains(*i.VersionContains)) } - if i.UpdatedAtNotNil { - predicates = append(predicates, organizationsettinghistory.UpdatedAtNotNil()) + if i.VersionHasPrefix != nil { + predicates = append(predicates, subcontrol.VersionHasPrefix(*i.VersionHasPrefix)) } - if i.CreatedBy != nil { - predicates = append(predicates, organizationsettinghistory.CreatedByEQ(*i.CreatedBy)) + if i.VersionHasSuffix != nil { + predicates = append(predicates, subcontrol.VersionHasSuffix(*i.VersionHasSuffix)) } - if i.CreatedByNEQ != nil { - predicates = append(predicates, organizationsettinghistory.CreatedByNEQ(*i.CreatedByNEQ)) + if i.VersionIsNil { + predicates = append(predicates, subcontrol.VersionIsNil()) } - if len(i.CreatedByIn) > 0 { - predicates = append(predicates, organizationsettinghistory.CreatedByIn(i.CreatedByIn...)) + if i.VersionNotNil { + predicates = append(predicates, subcontrol.VersionNotNil()) } - if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.CreatedByNotIn(i.CreatedByNotIn...)) + if i.VersionEqualFold != nil { + predicates = append(predicates, subcontrol.VersionEqualFold(*i.VersionEqualFold)) } - if i.CreatedByGT != nil { - predicates = append(predicates, organizationsettinghistory.CreatedByGT(*i.CreatedByGT)) + if i.VersionContainsFold != nil { + predicates = append(predicates, subcontrol.VersionContainsFold(*i.VersionContainsFold)) } - if i.CreatedByGTE != nil { - predicates = append(predicates, organizationsettinghistory.CreatedByGTE(*i.CreatedByGTE)) + if i.SubcontrolNumber != nil { + predicates = append(predicates, subcontrol.SubcontrolNumberEQ(*i.SubcontrolNumber)) } - if i.CreatedByLT != nil { - predicates = append(predicates, organizationsettinghistory.CreatedByLT(*i.CreatedByLT)) + if i.SubcontrolNumberNEQ != nil { + predicates = append(predicates, subcontrol.SubcontrolNumberNEQ(*i.SubcontrolNumberNEQ)) } - if i.CreatedByLTE != nil { - predicates = append(predicates, organizationsettinghistory.CreatedByLTE(*i.CreatedByLTE)) + if len(i.SubcontrolNumberIn) > 0 { + predicates = append(predicates, subcontrol.SubcontrolNumberIn(i.SubcontrolNumberIn...)) } - if i.CreatedByContains != nil { - predicates = append(predicates, organizationsettinghistory.CreatedByContains(*i.CreatedByContains)) + if len(i.SubcontrolNumberNotIn) > 0 { + predicates = append(predicates, subcontrol.SubcontrolNumberNotIn(i.SubcontrolNumberNotIn...)) } - if i.CreatedByHasPrefix != nil { - predicates = append(predicates, organizationsettinghistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + if i.SubcontrolNumberGT != nil { + predicates = append(predicates, subcontrol.SubcontrolNumberGT(*i.SubcontrolNumberGT)) } - if i.CreatedByHasSuffix != nil { - predicates = append(predicates, organizationsettinghistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + if i.SubcontrolNumberGTE != nil { + predicates = append(predicates, subcontrol.SubcontrolNumberGTE(*i.SubcontrolNumberGTE)) } - if i.CreatedByIsNil { - predicates = append(predicates, organizationsettinghistory.CreatedByIsNil()) + if i.SubcontrolNumberLT != nil { + predicates = append(predicates, subcontrol.SubcontrolNumberLT(*i.SubcontrolNumberLT)) } - if i.CreatedByNotNil { - predicates = append(predicates, organizationsettinghistory.CreatedByNotNil()) + if i.SubcontrolNumberLTE != nil { + predicates = append(predicates, subcontrol.SubcontrolNumberLTE(*i.SubcontrolNumberLTE)) } - if i.CreatedByEqualFold != nil { - predicates = append(predicates, organizationsettinghistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + if i.SubcontrolNumberContains != nil { + predicates = append(predicates, subcontrol.SubcontrolNumberContains(*i.SubcontrolNumberContains)) } - if i.CreatedByContainsFold != nil { - predicates = append(predicates, organizationsettinghistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + if i.SubcontrolNumberHasPrefix != nil { + predicates = append(predicates, subcontrol.SubcontrolNumberHasPrefix(*i.SubcontrolNumberHasPrefix)) } - if i.UpdatedBy != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedByEQ(*i.UpdatedBy)) + if i.SubcontrolNumberHasSuffix != nil { + predicates = append(predicates, subcontrol.SubcontrolNumberHasSuffix(*i.SubcontrolNumberHasSuffix)) } - if i.UpdatedByNEQ != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + if i.SubcontrolNumberIsNil { + predicates = append(predicates, subcontrol.SubcontrolNumberIsNil()) } - if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, organizationsettinghistory.UpdatedByIn(i.UpdatedByIn...)) + if i.SubcontrolNumberNotNil { + predicates = append(predicates, subcontrol.SubcontrolNumberNotNil()) } - if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + if i.SubcontrolNumberEqualFold != nil { + predicates = append(predicates, subcontrol.SubcontrolNumberEqualFold(*i.SubcontrolNumberEqualFold)) } - if i.UpdatedByGT != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedByGT(*i.UpdatedByGT)) + if i.SubcontrolNumberContainsFold != nil { + predicates = append(predicates, subcontrol.SubcontrolNumberContainsFold(*i.SubcontrolNumberContainsFold)) } - if i.UpdatedByGTE != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedByGTE(*i.UpdatedByGTE)) + if i.Family != nil { + predicates = append(predicates, subcontrol.FamilyEQ(*i.Family)) } - if i.UpdatedByLT != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedByLT(*i.UpdatedByLT)) + if i.FamilyNEQ != nil { + predicates = append(predicates, subcontrol.FamilyNEQ(*i.FamilyNEQ)) } - if i.UpdatedByLTE != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedByLTE(*i.UpdatedByLTE)) + if len(i.FamilyIn) > 0 { + predicates = append(predicates, subcontrol.FamilyIn(i.FamilyIn...)) } - if i.UpdatedByContains != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedByContains(*i.UpdatedByContains)) + if len(i.FamilyNotIn) > 0 { + predicates = append(predicates, subcontrol.FamilyNotIn(i.FamilyNotIn...)) } - if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + if i.FamilyGT != nil { + predicates = append(predicates, subcontrol.FamilyGT(*i.FamilyGT)) } - if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + if i.FamilyGTE != nil { + predicates = append(predicates, subcontrol.FamilyGTE(*i.FamilyGTE)) } - if i.UpdatedByIsNil { - predicates = append(predicates, organizationsettinghistory.UpdatedByIsNil()) + if i.FamilyLT != nil { + predicates = append(predicates, subcontrol.FamilyLT(*i.FamilyLT)) } - if i.UpdatedByNotNil { - predicates = append(predicates, organizationsettinghistory.UpdatedByNotNil()) + if i.FamilyLTE != nil { + predicates = append(predicates, subcontrol.FamilyLTE(*i.FamilyLTE)) } - if i.UpdatedByEqualFold != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + if i.FamilyContains != nil { + predicates = append(predicates, subcontrol.FamilyContains(*i.FamilyContains)) } - if i.UpdatedByContainsFold != nil { - predicates = append(predicates, organizationsettinghistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + if i.FamilyHasPrefix != nil { + predicates = append(predicates, subcontrol.FamilyHasPrefix(*i.FamilyHasPrefix)) } - if i.DeletedAt != nil { - predicates = append(predicates, organizationsettinghistory.DeletedAtEQ(*i.DeletedAt)) + if i.FamilyHasSuffix != nil { + predicates = append(predicates, subcontrol.FamilyHasSuffix(*i.FamilyHasSuffix)) } - if i.DeletedAtNEQ != nil { - predicates = append(predicates, organizationsettinghistory.DeletedAtNEQ(*i.DeletedAtNEQ)) + if i.FamilyIsNil { + predicates = append(predicates, subcontrol.FamilyIsNil()) } - if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, organizationsettinghistory.DeletedAtIn(i.DeletedAtIn...)) + if i.FamilyNotNil { + predicates = append(predicates, subcontrol.FamilyNotNil()) } - if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.DeletedAtNotIn(i.DeletedAtNotIn...)) + if i.FamilyEqualFold != nil { + predicates = append(predicates, subcontrol.FamilyEqualFold(*i.FamilyEqualFold)) } - if i.DeletedAtGT != nil { - predicates = append(predicates, organizationsettinghistory.DeletedAtGT(*i.DeletedAtGT)) + if i.FamilyContainsFold != nil { + predicates = append(predicates, subcontrol.FamilyContainsFold(*i.FamilyContainsFold)) } - if i.DeletedAtGTE != nil { - predicates = append(predicates, organizationsettinghistory.DeletedAtGTE(*i.DeletedAtGTE)) + if i.Class != nil { + predicates = append(predicates, subcontrol.ClassEQ(*i.Class)) } - if i.DeletedAtLT != nil { - predicates = append(predicates, organizationsettinghistory.DeletedAtLT(*i.DeletedAtLT)) + if i.ClassNEQ != nil { + predicates = append(predicates, subcontrol.ClassNEQ(*i.ClassNEQ)) } - if i.DeletedAtLTE != nil { - predicates = append(predicates, organizationsettinghistory.DeletedAtLTE(*i.DeletedAtLTE)) + if len(i.ClassIn) > 0 { + predicates = append(predicates, subcontrol.ClassIn(i.ClassIn...)) } - if i.DeletedAtIsNil { - predicates = append(predicates, organizationsettinghistory.DeletedAtIsNil()) + if len(i.ClassNotIn) > 0 { + predicates = append(predicates, subcontrol.ClassNotIn(i.ClassNotIn...)) } - if i.DeletedAtNotNil { - predicates = append(predicates, organizationsettinghistory.DeletedAtNotNil()) + if i.ClassGT != nil { + predicates = append(predicates, subcontrol.ClassGT(*i.ClassGT)) } - if i.DeletedBy != nil { - predicates = append(predicates, organizationsettinghistory.DeletedByEQ(*i.DeletedBy)) + if i.ClassGTE != nil { + predicates = append(predicates, subcontrol.ClassGTE(*i.ClassGTE)) } - if i.DeletedByNEQ != nil { - predicates = append(predicates, organizationsettinghistory.DeletedByNEQ(*i.DeletedByNEQ)) + if i.ClassLT != nil { + predicates = append(predicates, subcontrol.ClassLT(*i.ClassLT)) } - if len(i.DeletedByIn) > 0 { - predicates = append(predicates, organizationsettinghistory.DeletedByIn(i.DeletedByIn...)) + if i.ClassLTE != nil { + predicates = append(predicates, subcontrol.ClassLTE(*i.ClassLTE)) } - if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.DeletedByNotIn(i.DeletedByNotIn...)) + if i.ClassContains != nil { + predicates = append(predicates, subcontrol.ClassContains(*i.ClassContains)) } - if i.DeletedByGT != nil { - predicates = append(predicates, organizationsettinghistory.DeletedByGT(*i.DeletedByGT)) + if i.ClassHasPrefix != nil { + predicates = append(predicates, subcontrol.ClassHasPrefix(*i.ClassHasPrefix)) } - if i.DeletedByGTE != nil { - predicates = append(predicates, organizationsettinghistory.DeletedByGTE(*i.DeletedByGTE)) + if i.ClassHasSuffix != nil { + predicates = append(predicates, subcontrol.ClassHasSuffix(*i.ClassHasSuffix)) } - if i.DeletedByLT != nil { - predicates = append(predicates, organizationsettinghistory.DeletedByLT(*i.DeletedByLT)) + if i.ClassIsNil { + predicates = append(predicates, subcontrol.ClassIsNil()) } - if i.DeletedByLTE != nil { - predicates = append(predicates, organizationsettinghistory.DeletedByLTE(*i.DeletedByLTE)) + if i.ClassNotNil { + predicates = append(predicates, subcontrol.ClassNotNil()) } - if i.DeletedByContains != nil { - predicates = append(predicates, organizationsettinghistory.DeletedByContains(*i.DeletedByContains)) + if i.ClassEqualFold != nil { + predicates = append(predicates, subcontrol.ClassEqualFold(*i.ClassEqualFold)) } - if i.DeletedByHasPrefix != nil { - predicates = append(predicates, organizationsettinghistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + if i.ClassContainsFold != nil { + predicates = append(predicates, subcontrol.ClassContainsFold(*i.ClassContainsFold)) } - if i.DeletedByHasSuffix != nil { - predicates = append(predicates, organizationsettinghistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + if i.Source != nil { + predicates = append(predicates, subcontrol.SourceEQ(*i.Source)) } - if i.DeletedByIsNil { - predicates = append(predicates, organizationsettinghistory.DeletedByIsNil()) + if i.SourceNEQ != nil { + predicates = append(predicates, subcontrol.SourceNEQ(*i.SourceNEQ)) } - if i.DeletedByNotNil { - predicates = append(predicates, organizationsettinghistory.DeletedByNotNil()) + if len(i.SourceIn) > 0 { + predicates = append(predicates, subcontrol.SourceIn(i.SourceIn...)) } - if i.DeletedByEqualFold != nil { - predicates = append(predicates, organizationsettinghistory.DeletedByEqualFold(*i.DeletedByEqualFold)) + if len(i.SourceNotIn) > 0 { + predicates = append(predicates, subcontrol.SourceNotIn(i.SourceNotIn...)) } - if i.DeletedByContainsFold != nil { - predicates = append(predicates, organizationsettinghistory.DeletedByContainsFold(*i.DeletedByContainsFold)) + if i.SourceGT != nil { + predicates = append(predicates, subcontrol.SourceGT(*i.SourceGT)) } - if i.BillingContact != nil { - predicates = append(predicates, organizationsettinghistory.BillingContactEQ(*i.BillingContact)) + if i.SourceGTE != nil { + predicates = append(predicates, subcontrol.SourceGTE(*i.SourceGTE)) } - if i.BillingContactNEQ != nil { - predicates = append(predicates, organizationsettinghistory.BillingContactNEQ(*i.BillingContactNEQ)) + if i.SourceLT != nil { + predicates = append(predicates, subcontrol.SourceLT(*i.SourceLT)) } - if len(i.BillingContactIn) > 0 { - predicates = append(predicates, organizationsettinghistory.BillingContactIn(i.BillingContactIn...)) + if i.SourceLTE != nil { + predicates = append(predicates, subcontrol.SourceLTE(*i.SourceLTE)) } - if len(i.BillingContactNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.BillingContactNotIn(i.BillingContactNotIn...)) + if i.SourceContains != nil { + predicates = append(predicates, subcontrol.SourceContains(*i.SourceContains)) } - if i.BillingContactGT != nil { - predicates = append(predicates, organizationsettinghistory.BillingContactGT(*i.BillingContactGT)) + if i.SourceHasPrefix != nil { + predicates = append(predicates, subcontrol.SourceHasPrefix(*i.SourceHasPrefix)) } - if i.BillingContactGTE != nil { - predicates = append(predicates, organizationsettinghistory.BillingContactGTE(*i.BillingContactGTE)) + if i.SourceHasSuffix != nil { + predicates = append(predicates, subcontrol.SourceHasSuffix(*i.SourceHasSuffix)) } - if i.BillingContactLT != nil { - predicates = append(predicates, organizationsettinghistory.BillingContactLT(*i.BillingContactLT)) + if i.SourceIsNil { + predicates = append(predicates, subcontrol.SourceIsNil()) } - if i.BillingContactLTE != nil { - predicates = append(predicates, organizationsettinghistory.BillingContactLTE(*i.BillingContactLTE)) + if i.SourceNotNil { + predicates = append(predicates, subcontrol.SourceNotNil()) } - if i.BillingContactContains != nil { - predicates = append(predicates, organizationsettinghistory.BillingContactContains(*i.BillingContactContains)) + if i.SourceEqualFold != nil { + predicates = append(predicates, subcontrol.SourceEqualFold(*i.SourceEqualFold)) } - if i.BillingContactHasPrefix != nil { - predicates = append(predicates, organizationsettinghistory.BillingContactHasPrefix(*i.BillingContactHasPrefix)) + if i.SourceContainsFold != nil { + predicates = append(predicates, subcontrol.SourceContainsFold(*i.SourceContainsFold)) } - if i.BillingContactHasSuffix != nil { - predicates = append(predicates, organizationsettinghistory.BillingContactHasSuffix(*i.BillingContactHasSuffix)) + if i.MappedFrameworks != nil { + predicates = append(predicates, subcontrol.MappedFrameworksEQ(*i.MappedFrameworks)) } - if i.BillingContactIsNil { - predicates = append(predicates, organizationsettinghistory.BillingContactIsNil()) + if i.MappedFrameworksNEQ != nil { + predicates = append(predicates, subcontrol.MappedFrameworksNEQ(*i.MappedFrameworksNEQ)) } - if i.BillingContactNotNil { - predicates = append(predicates, organizationsettinghistory.BillingContactNotNil()) + if len(i.MappedFrameworksIn) > 0 { + predicates = append(predicates, subcontrol.MappedFrameworksIn(i.MappedFrameworksIn...)) } - if i.BillingContactEqualFold != nil { - predicates = append(predicates, organizationsettinghistory.BillingContactEqualFold(*i.BillingContactEqualFold)) + if len(i.MappedFrameworksNotIn) > 0 { + predicates = append(predicates, subcontrol.MappedFrameworksNotIn(i.MappedFrameworksNotIn...)) } - if i.BillingContactContainsFold != nil { - predicates = append(predicates, organizationsettinghistory.BillingContactContainsFold(*i.BillingContactContainsFold)) + if i.MappedFrameworksGT != nil { + predicates = append(predicates, subcontrol.MappedFrameworksGT(*i.MappedFrameworksGT)) } - if i.BillingEmail != nil { - predicates = append(predicates, organizationsettinghistory.BillingEmailEQ(*i.BillingEmail)) + if i.MappedFrameworksGTE != nil { + predicates = append(predicates, subcontrol.MappedFrameworksGTE(*i.MappedFrameworksGTE)) } - if i.BillingEmailNEQ != nil { - predicates = append(predicates, organizationsettinghistory.BillingEmailNEQ(*i.BillingEmailNEQ)) + if i.MappedFrameworksLT != nil { + predicates = append(predicates, subcontrol.MappedFrameworksLT(*i.MappedFrameworksLT)) } - if len(i.BillingEmailIn) > 0 { - predicates = append(predicates, organizationsettinghistory.BillingEmailIn(i.BillingEmailIn...)) + if i.MappedFrameworksLTE != nil { + predicates = append(predicates, subcontrol.MappedFrameworksLTE(*i.MappedFrameworksLTE)) } - if len(i.BillingEmailNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.BillingEmailNotIn(i.BillingEmailNotIn...)) + if i.MappedFrameworksContains != nil { + predicates = append(predicates, subcontrol.MappedFrameworksContains(*i.MappedFrameworksContains)) } - if i.BillingEmailGT != nil { - predicates = append(predicates, organizationsettinghistory.BillingEmailGT(*i.BillingEmailGT)) + if i.MappedFrameworksHasPrefix != nil { + predicates = append(predicates, subcontrol.MappedFrameworksHasPrefix(*i.MappedFrameworksHasPrefix)) } - if i.BillingEmailGTE != nil { - predicates = append(predicates, organizationsettinghistory.BillingEmailGTE(*i.BillingEmailGTE)) + if i.MappedFrameworksHasSuffix != nil { + predicates = append(predicates, subcontrol.MappedFrameworksHasSuffix(*i.MappedFrameworksHasSuffix)) } - if i.BillingEmailLT != nil { - predicates = append(predicates, organizationsettinghistory.BillingEmailLT(*i.BillingEmailLT)) + if i.MappedFrameworksIsNil { + predicates = append(predicates, subcontrol.MappedFrameworksIsNil()) } - if i.BillingEmailLTE != nil { - predicates = append(predicates, organizationsettinghistory.BillingEmailLTE(*i.BillingEmailLTE)) + if i.MappedFrameworksNotNil { + predicates = append(predicates, subcontrol.MappedFrameworksNotNil()) } - if i.BillingEmailContains != nil { - predicates = append(predicates, organizationsettinghistory.BillingEmailContains(*i.BillingEmailContains)) + if i.MappedFrameworksEqualFold != nil { + predicates = append(predicates, subcontrol.MappedFrameworksEqualFold(*i.MappedFrameworksEqualFold)) } - if i.BillingEmailHasPrefix != nil { - predicates = append(predicates, organizationsettinghistory.BillingEmailHasPrefix(*i.BillingEmailHasPrefix)) + if i.MappedFrameworksContainsFold != nil { + predicates = append(predicates, subcontrol.MappedFrameworksContainsFold(*i.MappedFrameworksContainsFold)) } - if i.BillingEmailHasSuffix != nil { - predicates = append(predicates, organizationsettinghistory.BillingEmailHasSuffix(*i.BillingEmailHasSuffix)) + if i.ImplementationEvidence != nil { + predicates = append(predicates, subcontrol.ImplementationEvidenceEQ(*i.ImplementationEvidence)) } - if i.BillingEmailIsNil { - predicates = append(predicates, organizationsettinghistory.BillingEmailIsNil()) + if i.ImplementationEvidenceNEQ != nil { + predicates = append(predicates, subcontrol.ImplementationEvidenceNEQ(*i.ImplementationEvidenceNEQ)) } - if i.BillingEmailNotNil { - predicates = append(predicates, organizationsettinghistory.BillingEmailNotNil()) + if len(i.ImplementationEvidenceIn) > 0 { + predicates = append(predicates, subcontrol.ImplementationEvidenceIn(i.ImplementationEvidenceIn...)) } - if i.BillingEmailEqualFold != nil { - predicates = append(predicates, organizationsettinghistory.BillingEmailEqualFold(*i.BillingEmailEqualFold)) + if len(i.ImplementationEvidenceNotIn) > 0 { + predicates = append(predicates, subcontrol.ImplementationEvidenceNotIn(i.ImplementationEvidenceNotIn...)) } - if i.BillingEmailContainsFold != nil { - predicates = append(predicates, organizationsettinghistory.BillingEmailContainsFold(*i.BillingEmailContainsFold)) + if i.ImplementationEvidenceGT != nil { + predicates = append(predicates, subcontrol.ImplementationEvidenceGT(*i.ImplementationEvidenceGT)) } - if i.BillingPhone != nil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneEQ(*i.BillingPhone)) + if i.ImplementationEvidenceGTE != nil { + predicates = append(predicates, subcontrol.ImplementationEvidenceGTE(*i.ImplementationEvidenceGTE)) } - if i.BillingPhoneNEQ != nil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneNEQ(*i.BillingPhoneNEQ)) + if i.ImplementationEvidenceLT != nil { + predicates = append(predicates, subcontrol.ImplementationEvidenceLT(*i.ImplementationEvidenceLT)) } - if len(i.BillingPhoneIn) > 0 { - predicates = append(predicates, organizationsettinghistory.BillingPhoneIn(i.BillingPhoneIn...)) + if i.ImplementationEvidenceLTE != nil { + predicates = append(predicates, subcontrol.ImplementationEvidenceLTE(*i.ImplementationEvidenceLTE)) } - if len(i.BillingPhoneNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.BillingPhoneNotIn(i.BillingPhoneNotIn...)) + if i.ImplementationEvidenceContains != nil { + predicates = append(predicates, subcontrol.ImplementationEvidenceContains(*i.ImplementationEvidenceContains)) } - if i.BillingPhoneGT != nil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneGT(*i.BillingPhoneGT)) + if i.ImplementationEvidenceHasPrefix != nil { + predicates = append(predicates, subcontrol.ImplementationEvidenceHasPrefix(*i.ImplementationEvidenceHasPrefix)) } - if i.BillingPhoneGTE != nil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneGTE(*i.BillingPhoneGTE)) + if i.ImplementationEvidenceHasSuffix != nil { + predicates = append(predicates, subcontrol.ImplementationEvidenceHasSuffix(*i.ImplementationEvidenceHasSuffix)) } - if i.BillingPhoneLT != nil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneLT(*i.BillingPhoneLT)) + if i.ImplementationEvidenceIsNil { + predicates = append(predicates, subcontrol.ImplementationEvidenceIsNil()) } - if i.BillingPhoneLTE != nil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneLTE(*i.BillingPhoneLTE)) + if i.ImplementationEvidenceNotNil { + predicates = append(predicates, subcontrol.ImplementationEvidenceNotNil()) } - if i.BillingPhoneContains != nil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneContains(*i.BillingPhoneContains)) + if i.ImplementationEvidenceEqualFold != nil { + predicates = append(predicates, subcontrol.ImplementationEvidenceEqualFold(*i.ImplementationEvidenceEqualFold)) } - if i.BillingPhoneHasPrefix != nil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneHasPrefix(*i.BillingPhoneHasPrefix)) + if i.ImplementationEvidenceContainsFold != nil { + predicates = append(predicates, subcontrol.ImplementationEvidenceContainsFold(*i.ImplementationEvidenceContainsFold)) } - if i.BillingPhoneHasSuffix != nil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneHasSuffix(*i.BillingPhoneHasSuffix)) + if i.ImplementationStatus != nil { + predicates = append(predicates, subcontrol.ImplementationStatusEQ(*i.ImplementationStatus)) } - if i.BillingPhoneIsNil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneIsNil()) + if i.ImplementationStatusNEQ != nil { + predicates = append(predicates, subcontrol.ImplementationStatusNEQ(*i.ImplementationStatusNEQ)) } - if i.BillingPhoneNotNil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneNotNil()) + if len(i.ImplementationStatusIn) > 0 { + predicates = append(predicates, subcontrol.ImplementationStatusIn(i.ImplementationStatusIn...)) } - if i.BillingPhoneEqualFold != nil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneEqualFold(*i.BillingPhoneEqualFold)) + if len(i.ImplementationStatusNotIn) > 0 { + predicates = append(predicates, subcontrol.ImplementationStatusNotIn(i.ImplementationStatusNotIn...)) } - if i.BillingPhoneContainsFold != nil { - predicates = append(predicates, organizationsettinghistory.BillingPhoneContainsFold(*i.BillingPhoneContainsFold)) + if i.ImplementationStatusGT != nil { + predicates = append(predicates, subcontrol.ImplementationStatusGT(*i.ImplementationStatusGT)) } - if i.BillingAddress != nil { - predicates = append(predicates, organizationsettinghistory.BillingAddressEQ(*i.BillingAddress)) + if i.ImplementationStatusGTE != nil { + predicates = append(predicates, subcontrol.ImplementationStatusGTE(*i.ImplementationStatusGTE)) } - if i.BillingAddressNEQ != nil { - predicates = append(predicates, organizationsettinghistory.BillingAddressNEQ(*i.BillingAddressNEQ)) + if i.ImplementationStatusLT != nil { + predicates = append(predicates, subcontrol.ImplementationStatusLT(*i.ImplementationStatusLT)) } - if len(i.BillingAddressIn) > 0 { - predicates = append(predicates, organizationsettinghistory.BillingAddressIn(i.BillingAddressIn...)) + if i.ImplementationStatusLTE != nil { + predicates = append(predicates, subcontrol.ImplementationStatusLTE(*i.ImplementationStatusLTE)) } - if len(i.BillingAddressNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.BillingAddressNotIn(i.BillingAddressNotIn...)) + if i.ImplementationStatusContains != nil { + predicates = append(predicates, subcontrol.ImplementationStatusContains(*i.ImplementationStatusContains)) } - if i.BillingAddressGT != nil { - predicates = append(predicates, organizationsettinghistory.BillingAddressGT(*i.BillingAddressGT)) + if i.ImplementationStatusHasPrefix != nil { + predicates = append(predicates, subcontrol.ImplementationStatusHasPrefix(*i.ImplementationStatusHasPrefix)) } - if i.BillingAddressGTE != nil { - predicates = append(predicates, organizationsettinghistory.BillingAddressGTE(*i.BillingAddressGTE)) + if i.ImplementationStatusHasSuffix != nil { + predicates = append(predicates, subcontrol.ImplementationStatusHasSuffix(*i.ImplementationStatusHasSuffix)) } - if i.BillingAddressLT != nil { - predicates = append(predicates, organizationsettinghistory.BillingAddressLT(*i.BillingAddressLT)) + if i.ImplementationStatusIsNil { + predicates = append(predicates, subcontrol.ImplementationStatusIsNil()) } - if i.BillingAddressLTE != nil { - predicates = append(predicates, organizationsettinghistory.BillingAddressLTE(*i.BillingAddressLTE)) + if i.ImplementationStatusNotNil { + predicates = append(predicates, subcontrol.ImplementationStatusNotNil()) } - if i.BillingAddressContains != nil { - predicates = append(predicates, organizationsettinghistory.BillingAddressContains(*i.BillingAddressContains)) + if i.ImplementationStatusEqualFold != nil { + predicates = append(predicates, subcontrol.ImplementationStatusEqualFold(*i.ImplementationStatusEqualFold)) } - if i.BillingAddressHasPrefix != nil { - predicates = append(predicates, organizationsettinghistory.BillingAddressHasPrefix(*i.BillingAddressHasPrefix)) + if i.ImplementationStatusContainsFold != nil { + predicates = append(predicates, subcontrol.ImplementationStatusContainsFold(*i.ImplementationStatusContainsFold)) } - if i.BillingAddressHasSuffix != nil { - predicates = append(predicates, organizationsettinghistory.BillingAddressHasSuffix(*i.BillingAddressHasSuffix)) + if i.ImplementationDate != nil { + predicates = append(predicates, subcontrol.ImplementationDateEQ(*i.ImplementationDate)) } - if i.BillingAddressIsNil { - predicates = append(predicates, organizationsettinghistory.BillingAddressIsNil()) + if i.ImplementationDateNEQ != nil { + predicates = append(predicates, subcontrol.ImplementationDateNEQ(*i.ImplementationDateNEQ)) } - if i.BillingAddressNotNil { - predicates = append(predicates, organizationsettinghistory.BillingAddressNotNil()) + if len(i.ImplementationDateIn) > 0 { + predicates = append(predicates, subcontrol.ImplementationDateIn(i.ImplementationDateIn...)) } - if i.BillingAddressEqualFold != nil { - predicates = append(predicates, organizationsettinghistory.BillingAddressEqualFold(*i.BillingAddressEqualFold)) + if len(i.ImplementationDateNotIn) > 0 { + predicates = append(predicates, subcontrol.ImplementationDateNotIn(i.ImplementationDateNotIn...)) } - if i.BillingAddressContainsFold != nil { - predicates = append(predicates, organizationsettinghistory.BillingAddressContainsFold(*i.BillingAddressContainsFold)) + if i.ImplementationDateGT != nil { + predicates = append(predicates, subcontrol.ImplementationDateGT(*i.ImplementationDateGT)) } - if i.TaxIdentifier != nil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierEQ(*i.TaxIdentifier)) + if i.ImplementationDateGTE != nil { + predicates = append(predicates, subcontrol.ImplementationDateGTE(*i.ImplementationDateGTE)) } - if i.TaxIdentifierNEQ != nil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierNEQ(*i.TaxIdentifierNEQ)) + if i.ImplementationDateLT != nil { + predicates = append(predicates, subcontrol.ImplementationDateLT(*i.ImplementationDateLT)) } - if len(i.TaxIdentifierIn) > 0 { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierIn(i.TaxIdentifierIn...)) + if i.ImplementationDateLTE != nil { + predicates = append(predicates, subcontrol.ImplementationDateLTE(*i.ImplementationDateLTE)) } - if len(i.TaxIdentifierNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierNotIn(i.TaxIdentifierNotIn...)) + if i.ImplementationDateIsNil { + predicates = append(predicates, subcontrol.ImplementationDateIsNil()) } - if i.TaxIdentifierGT != nil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierGT(*i.TaxIdentifierGT)) + if i.ImplementationDateNotNil { + predicates = append(predicates, subcontrol.ImplementationDateNotNil()) } - if i.TaxIdentifierGTE != nil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierGTE(*i.TaxIdentifierGTE)) + if i.ImplementationVerification != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationEQ(*i.ImplementationVerification)) } - if i.TaxIdentifierLT != nil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierLT(*i.TaxIdentifierLT)) + if i.ImplementationVerificationNEQ != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationNEQ(*i.ImplementationVerificationNEQ)) } - if i.TaxIdentifierLTE != nil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierLTE(*i.TaxIdentifierLTE)) + if len(i.ImplementationVerificationIn) > 0 { + predicates = append(predicates, subcontrol.ImplementationVerificationIn(i.ImplementationVerificationIn...)) } - if i.TaxIdentifierContains != nil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierContains(*i.TaxIdentifierContains)) + if len(i.ImplementationVerificationNotIn) > 0 { + predicates = append(predicates, subcontrol.ImplementationVerificationNotIn(i.ImplementationVerificationNotIn...)) } - if i.TaxIdentifierHasPrefix != nil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierHasPrefix(*i.TaxIdentifierHasPrefix)) + if i.ImplementationVerificationGT != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationGT(*i.ImplementationVerificationGT)) } - if i.TaxIdentifierHasSuffix != nil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierHasSuffix(*i.TaxIdentifierHasSuffix)) + if i.ImplementationVerificationGTE != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationGTE(*i.ImplementationVerificationGTE)) } - if i.TaxIdentifierIsNil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierIsNil()) + if i.ImplementationVerificationLT != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationLT(*i.ImplementationVerificationLT)) } - if i.TaxIdentifierNotNil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierNotNil()) + if i.ImplementationVerificationLTE != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationLTE(*i.ImplementationVerificationLTE)) } - if i.TaxIdentifierEqualFold != nil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierEqualFold(*i.TaxIdentifierEqualFold)) + if i.ImplementationVerificationContains != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationContains(*i.ImplementationVerificationContains)) } - if i.TaxIdentifierContainsFold != nil { - predicates = append(predicates, organizationsettinghistory.TaxIdentifierContainsFold(*i.TaxIdentifierContainsFold)) + if i.ImplementationVerificationHasPrefix != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationHasPrefix(*i.ImplementationVerificationHasPrefix)) } - if i.GeoLocation != nil { - predicates = append(predicates, organizationsettinghistory.GeoLocationEQ(*i.GeoLocation)) + if i.ImplementationVerificationHasSuffix != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationHasSuffix(*i.ImplementationVerificationHasSuffix)) } - if i.GeoLocationNEQ != nil { - predicates = append(predicates, organizationsettinghistory.GeoLocationNEQ(*i.GeoLocationNEQ)) + if i.ImplementationVerificationIsNil { + predicates = append(predicates, subcontrol.ImplementationVerificationIsNil()) } - if len(i.GeoLocationIn) > 0 { - predicates = append(predicates, organizationsettinghistory.GeoLocationIn(i.GeoLocationIn...)) + if i.ImplementationVerificationNotNil { + predicates = append(predicates, subcontrol.ImplementationVerificationNotNil()) } - if len(i.GeoLocationNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.GeoLocationNotIn(i.GeoLocationNotIn...)) + if i.ImplementationVerificationEqualFold != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationEqualFold(*i.ImplementationVerificationEqualFold)) } - if i.GeoLocationIsNil { - predicates = append(predicates, organizationsettinghistory.GeoLocationIsNil()) + if i.ImplementationVerificationContainsFold != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationContainsFold(*i.ImplementationVerificationContainsFold)) } - if i.GeoLocationNotNil { - predicates = append(predicates, organizationsettinghistory.GeoLocationNotNil()) + if i.ImplementationVerificationDate != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationDateEQ(*i.ImplementationVerificationDate)) } - if i.OrganizationID != nil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDEQ(*i.OrganizationID)) + if i.ImplementationVerificationDateNEQ != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationDateNEQ(*i.ImplementationVerificationDateNEQ)) } - if i.OrganizationIDNEQ != nil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDNEQ(*i.OrganizationIDNEQ)) + if len(i.ImplementationVerificationDateIn) > 0 { + predicates = append(predicates, subcontrol.ImplementationVerificationDateIn(i.ImplementationVerificationDateIn...)) } - if len(i.OrganizationIDIn) > 0 { - predicates = append(predicates, organizationsettinghistory.OrganizationIDIn(i.OrganizationIDIn...)) + if len(i.ImplementationVerificationDateNotIn) > 0 { + predicates = append(predicates, subcontrol.ImplementationVerificationDateNotIn(i.ImplementationVerificationDateNotIn...)) } - if len(i.OrganizationIDNotIn) > 0 { - predicates = append(predicates, organizationsettinghistory.OrganizationIDNotIn(i.OrganizationIDNotIn...)) + if i.ImplementationVerificationDateGT != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationDateGT(*i.ImplementationVerificationDateGT)) } - if i.OrganizationIDGT != nil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDGT(*i.OrganizationIDGT)) + if i.ImplementationVerificationDateGTE != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationDateGTE(*i.ImplementationVerificationDateGTE)) } - if i.OrganizationIDGTE != nil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDGTE(*i.OrganizationIDGTE)) + if i.ImplementationVerificationDateLT != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationDateLT(*i.ImplementationVerificationDateLT)) } - if i.OrganizationIDLT != nil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDLT(*i.OrganizationIDLT)) + if i.ImplementationVerificationDateLTE != nil { + predicates = append(predicates, subcontrol.ImplementationVerificationDateLTE(*i.ImplementationVerificationDateLTE)) } - if i.OrganizationIDLTE != nil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDLTE(*i.OrganizationIDLTE)) + if i.ImplementationVerificationDateIsNil { + predicates = append(predicates, subcontrol.ImplementationVerificationDateIsNil()) } - if i.OrganizationIDContains != nil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDContains(*i.OrganizationIDContains)) + if i.ImplementationVerificationDateNotNil { + predicates = append(predicates, subcontrol.ImplementationVerificationDateNotNil()) } - if i.OrganizationIDHasPrefix != nil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDHasPrefix(*i.OrganizationIDHasPrefix)) + + if i.HasControl != nil { + p := subcontrol.HasControl() + if !*i.HasControl { + p = subcontrol.Not(p) + } + predicates = append(predicates, p) } - if i.OrganizationIDHasSuffix != nil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDHasSuffix(*i.OrganizationIDHasSuffix)) + if len(i.HasControlWith) > 0 { + with := make([]predicate.Control, 0, len(i.HasControlWith)) + for _, w := range i.HasControlWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasControlWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, subcontrol.HasControlWith(with...)) } - if i.OrganizationIDIsNil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDIsNil()) + if i.HasUser != nil { + p := subcontrol.HasUser() + if !*i.HasUser { + p = subcontrol.Not(p) + } + predicates = append(predicates, p) } - if i.OrganizationIDNotNil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDNotNil()) + if len(i.HasUserWith) > 0 { + with := make([]predicate.User, 0, len(i.HasUserWith)) + 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, subcontrol.HasUserWith(with...)) } - if i.OrganizationIDEqualFold != nil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDEqualFold(*i.OrganizationIDEqualFold)) + if i.HasNotes != nil { + p := subcontrol.HasNotes() + if !*i.HasNotes { + p = subcontrol.Not(p) + } + predicates = append(predicates, p) } - if i.OrganizationIDContainsFold != nil { - predicates = append(predicates, organizationsettinghistory.OrganizationIDContainsFold(*i.OrganizationIDContainsFold)) + if len(i.HasNotesWith) > 0 { + with := make([]predicate.Note, 0, len(i.HasNotesWith)) + for _, w := range i.HasNotesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasNotesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, subcontrol.HasNotesWith(with...)) } - switch len(predicates) { case 0: - return nil, ErrEmptyOrganizationSettingHistoryWhereInput + return nil, ErrEmptySubcontrolWhereInput case 1: return predicates[0], nil default: - return organizationsettinghistory.And(predicates...), nil + return subcontrol.And(predicates...), nil } } -// PersonalAccessTokenWhereInput represents a where input for filtering PersonalAccessToken queries. -type PersonalAccessTokenWhereInput struct { - Predicates []predicate.PersonalAccessToken `json:"-"` - Not *PersonalAccessTokenWhereInput `json:"not,omitempty"` - Or []*PersonalAccessTokenWhereInput `json:"or,omitempty"` - And []*PersonalAccessTokenWhereInput `json:"and,omitempty"` +// SubcontrolHistoryWhereInput represents a where input for filtering SubcontrolHistory queries. +type SubcontrolHistoryWhereInput struct { + Predicates []predicate.SubcontrolHistory `json:"-"` + Not *SubcontrolHistoryWhereInput `json:"not,omitempty"` + Or []*SubcontrolHistoryWhereInput `json:"or,omitempty"` + And []*SubcontrolHistoryWhereInput `json:"and,omitempty"` // "id" field predicates. ID *string `json:"id,omitempty"` @@ -34698,6 +53092,39 @@ type PersonalAccessTokenWhereInput struct { IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNEQ *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []time.Time `json:"historyTimeNotIn,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"` + RefGT *string `json:"refGT,omitempty"` + RefGTE *string `json:"refGTE,omitempty"` + RefLT *string `json:"refLT,omitempty"` + RefLTE *string `json:"refLTE,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"` CreatedAtNEQ *time.Time `json:"createdAtNEQ,omitempty"` @@ -34800,56 +53227,248 @@ type PersonalAccessTokenWhereInput struct { NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` - // "expires_at" field predicates. - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - ExpiresAtNEQ *time.Time `json:"expiresAtNEQ,omitempty"` - ExpiresAtIn []time.Time `json:"expiresAtIn,omitempty"` - ExpiresAtNotIn []time.Time `json:"expiresAtNotIn,omitempty"` - ExpiresAtGT *time.Time `json:"expiresAtGT,omitempty"` - ExpiresAtGTE *time.Time `json:"expiresAtGTE,omitempty"` - ExpiresAtLT *time.Time `json:"expiresAtLT,omitempty"` - ExpiresAtLTE *time.Time `json:"expiresAtLTE,omitempty"` - ExpiresAtIsNil bool `json:"expiresAtIsNil,omitempty"` - ExpiresAtNotNil bool `json:"expiresAtNotNil,omitempty"` + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGT *string `json:"descriptionGT,omitempty"` + DescriptionGTE *string `json:"descriptionGTE,omitempty"` + DescriptionLT *string `json:"descriptionLT,omitempty"` + DescriptionLTE *string `json:"descriptionLTE,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"` - // "last_used_at" field predicates. - LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` - LastUsedAtNEQ *time.Time `json:"lastUsedAtNEQ,omitempty"` - LastUsedAtIn []time.Time `json:"lastUsedAtIn,omitempty"` - LastUsedAtNotIn []time.Time `json:"lastUsedAtNotIn,omitempty"` - LastUsedAtGT *time.Time `json:"lastUsedAtGT,omitempty"` - LastUsedAtGTE *time.Time `json:"lastUsedAtGTE,omitempty"` - LastUsedAtLT *time.Time `json:"lastUsedAtLT,omitempty"` - LastUsedAtLTE *time.Time `json:"lastUsedAtLTE,omitempty"` - LastUsedAtIsNil bool `json:"lastUsedAtIsNil,omitempty"` - LastUsedAtNotNil bool `json:"lastUsedAtNotNil,omitempty"` + // "status" field predicates. + Status *string `json:"status,omitempty"` + StatusNEQ *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGT *string `json:"statusGT,omitempty"` + StatusGTE *string `json:"statusGTE,omitempty"` + StatusLT *string `json:"statusLT,omitempty"` + StatusLTE *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil bool `json:"statusIsNil,omitempty"` + StatusNotNil bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` - // "owner" edge predicates. - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*UserWhereInput `json:"hasOwnerWith,omitempty"` + // "subcontrol_type" field predicates. + SubcontrolType *string `json:"subcontrolType,omitempty"` + SubcontrolTypeNEQ *string `json:"subcontrolTypeNEQ,omitempty"` + SubcontrolTypeIn []string `json:"subcontrolTypeIn,omitempty"` + SubcontrolTypeNotIn []string `json:"subcontrolTypeNotIn,omitempty"` + SubcontrolTypeGT *string `json:"subcontrolTypeGT,omitempty"` + SubcontrolTypeGTE *string `json:"subcontrolTypeGTE,omitempty"` + SubcontrolTypeLT *string `json:"subcontrolTypeLT,omitempty"` + SubcontrolTypeLTE *string `json:"subcontrolTypeLTE,omitempty"` + SubcontrolTypeContains *string `json:"subcontrolTypeContains,omitempty"` + SubcontrolTypeHasPrefix *string `json:"subcontrolTypeHasPrefix,omitempty"` + SubcontrolTypeHasSuffix *string `json:"subcontrolTypeHasSuffix,omitempty"` + SubcontrolTypeIsNil bool `json:"subcontrolTypeIsNil,omitempty"` + SubcontrolTypeNotNil bool `json:"subcontrolTypeNotNil,omitempty"` + SubcontrolTypeEqualFold *string `json:"subcontrolTypeEqualFold,omitempty"` + SubcontrolTypeContainsFold *string `json:"subcontrolTypeContainsFold,omitempty"` - // "organizations" edge predicates. - HasOrganizations *bool `json:"hasOrganizations,omitempty"` - HasOrganizationsWith []*OrganizationWhereInput `json:"hasOrganizationsWith,omitempty"` + // "version" field predicates. + Version *string `json:"version,omitempty"` + VersionNEQ *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGT *string `json:"versionGT,omitempty"` + VersionGTE *string `json:"versionGTE,omitempty"` + VersionLT *string `json:"versionLT,omitempty"` + VersionLTE *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil bool `json:"versionIsNil,omitempty"` + VersionNotNil bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` - // "events" edge predicates. - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // "subcontrol_number" field predicates. + SubcontrolNumber *string `json:"subcontrolNumber,omitempty"` + SubcontrolNumberNEQ *string `json:"subcontrolNumberNEQ,omitempty"` + SubcontrolNumberIn []string `json:"subcontrolNumberIn,omitempty"` + SubcontrolNumberNotIn []string `json:"subcontrolNumberNotIn,omitempty"` + SubcontrolNumberGT *string `json:"subcontrolNumberGT,omitempty"` + SubcontrolNumberGTE *string `json:"subcontrolNumberGTE,omitempty"` + SubcontrolNumberLT *string `json:"subcontrolNumberLT,omitempty"` + SubcontrolNumberLTE *string `json:"subcontrolNumberLTE,omitempty"` + SubcontrolNumberContains *string `json:"subcontrolNumberContains,omitempty"` + SubcontrolNumberHasPrefix *string `json:"subcontrolNumberHasPrefix,omitempty"` + SubcontrolNumberHasSuffix *string `json:"subcontrolNumberHasSuffix,omitempty"` + SubcontrolNumberIsNil bool `json:"subcontrolNumberIsNil,omitempty"` + SubcontrolNumberNotNil bool `json:"subcontrolNumberNotNil,omitempty"` + SubcontrolNumberEqualFold *string `json:"subcontrolNumberEqualFold,omitempty"` + SubcontrolNumberContainsFold *string `json:"subcontrolNumberContainsFold,omitempty"` + + // "family" field predicates. + Family *string `json:"family,omitempty"` + FamilyNEQ *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGT *string `json:"familyGT,omitempty"` + FamilyGTE *string `json:"familyGTE,omitempty"` + FamilyLT *string `json:"familyLT,omitempty"` + FamilyLTE *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil bool `json:"familyIsNil,omitempty"` + FamilyNotNil bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + + // "class" field predicates. + Class *string `json:"class,omitempty"` + ClassNEQ *string `json:"classNEQ,omitempty"` + ClassIn []string `json:"classIn,omitempty"` + ClassNotIn []string `json:"classNotIn,omitempty"` + ClassGT *string `json:"classGT,omitempty"` + ClassGTE *string `json:"classGTE,omitempty"` + ClassLT *string `json:"classLT,omitempty"` + ClassLTE *string `json:"classLTE,omitempty"` + ClassContains *string `json:"classContains,omitempty"` + ClassHasPrefix *string `json:"classHasPrefix,omitempty"` + ClassHasSuffix *string `json:"classHasSuffix,omitempty"` + ClassIsNil bool `json:"classIsNil,omitempty"` + ClassNotNil bool `json:"classNotNil,omitempty"` + ClassEqualFold *string `json:"classEqualFold,omitempty"` + ClassContainsFold *string `json:"classContainsFold,omitempty"` + + // "source" field predicates. + Source *string `json:"source,omitempty"` + SourceNEQ *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGT *string `json:"sourceGT,omitempty"` + SourceGTE *string `json:"sourceGTE,omitempty"` + SourceLT *string `json:"sourceLT,omitempty"` + SourceLTE *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil bool `json:"sourceIsNil,omitempty"` + SourceNotNil bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + + // "mapped_frameworks" field predicates. + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + MappedFrameworksNEQ *string `json:"mappedFrameworksNEQ,omitempty"` + MappedFrameworksIn []string `json:"mappedFrameworksIn,omitempty"` + MappedFrameworksNotIn []string `json:"mappedFrameworksNotIn,omitempty"` + MappedFrameworksGT *string `json:"mappedFrameworksGT,omitempty"` + MappedFrameworksGTE *string `json:"mappedFrameworksGTE,omitempty"` + MappedFrameworksLT *string `json:"mappedFrameworksLT,omitempty"` + MappedFrameworksLTE *string `json:"mappedFrameworksLTE,omitempty"` + MappedFrameworksContains *string `json:"mappedFrameworksContains,omitempty"` + MappedFrameworksHasPrefix *string `json:"mappedFrameworksHasPrefix,omitempty"` + MappedFrameworksHasSuffix *string `json:"mappedFrameworksHasSuffix,omitempty"` + MappedFrameworksIsNil bool `json:"mappedFrameworksIsNil,omitempty"` + MappedFrameworksNotNil bool `json:"mappedFrameworksNotNil,omitempty"` + MappedFrameworksEqualFold *string `json:"mappedFrameworksEqualFold,omitempty"` + MappedFrameworksContainsFold *string `json:"mappedFrameworksContainsFold,omitempty"` + + // "implementation_evidence" field predicates. + ImplementationEvidence *string `json:"implementationEvidence,omitempty"` + ImplementationEvidenceNEQ *string `json:"implementationEvidenceNEQ,omitempty"` + ImplementationEvidenceIn []string `json:"implementationEvidenceIn,omitempty"` + ImplementationEvidenceNotIn []string `json:"implementationEvidenceNotIn,omitempty"` + ImplementationEvidenceGT *string `json:"implementationEvidenceGT,omitempty"` + ImplementationEvidenceGTE *string `json:"implementationEvidenceGTE,omitempty"` + ImplementationEvidenceLT *string `json:"implementationEvidenceLT,omitempty"` + ImplementationEvidenceLTE *string `json:"implementationEvidenceLTE,omitempty"` + ImplementationEvidenceContains *string `json:"implementationEvidenceContains,omitempty"` + ImplementationEvidenceHasPrefix *string `json:"implementationEvidenceHasPrefix,omitempty"` + ImplementationEvidenceHasSuffix *string `json:"implementationEvidenceHasSuffix,omitempty"` + ImplementationEvidenceIsNil bool `json:"implementationEvidenceIsNil,omitempty"` + ImplementationEvidenceNotNil bool `json:"implementationEvidenceNotNil,omitempty"` + ImplementationEvidenceEqualFold *string `json:"implementationEvidenceEqualFold,omitempty"` + ImplementationEvidenceContainsFold *string `json:"implementationEvidenceContainsFold,omitempty"` + + // "implementation_status" field predicates. + ImplementationStatus *string `json:"implementationStatus,omitempty"` + ImplementationStatusNEQ *string `json:"implementationStatusNEQ,omitempty"` + ImplementationStatusIn []string `json:"implementationStatusIn,omitempty"` + ImplementationStatusNotIn []string `json:"implementationStatusNotIn,omitempty"` + ImplementationStatusGT *string `json:"implementationStatusGT,omitempty"` + ImplementationStatusGTE *string `json:"implementationStatusGTE,omitempty"` + ImplementationStatusLT *string `json:"implementationStatusLT,omitempty"` + ImplementationStatusLTE *string `json:"implementationStatusLTE,omitempty"` + ImplementationStatusContains *string `json:"implementationStatusContains,omitempty"` + ImplementationStatusHasPrefix *string `json:"implementationStatusHasPrefix,omitempty"` + ImplementationStatusHasSuffix *string `json:"implementationStatusHasSuffix,omitempty"` + ImplementationStatusIsNil bool `json:"implementationStatusIsNil,omitempty"` + ImplementationStatusNotNil bool `json:"implementationStatusNotNil,omitempty"` + ImplementationStatusEqualFold *string `json:"implementationStatusEqualFold,omitempty"` + ImplementationStatusContainsFold *string `json:"implementationStatusContainsFold,omitempty"` + + // "implementation_date" field predicates. + ImplementationDate *time.Time `json:"implementationDate,omitempty"` + ImplementationDateNEQ *time.Time `json:"implementationDateNEQ,omitempty"` + ImplementationDateIn []time.Time `json:"implementationDateIn,omitempty"` + ImplementationDateNotIn []time.Time `json:"implementationDateNotIn,omitempty"` + ImplementationDateGT *time.Time `json:"implementationDateGT,omitempty"` + ImplementationDateGTE *time.Time `json:"implementationDateGTE,omitempty"` + ImplementationDateLT *time.Time `json:"implementationDateLT,omitempty"` + ImplementationDateLTE *time.Time `json:"implementationDateLTE,omitempty"` + ImplementationDateIsNil bool `json:"implementationDateIsNil,omitempty"` + ImplementationDateNotNil bool `json:"implementationDateNotNil,omitempty"` + + // "implementation_verification" field predicates. + ImplementationVerification *string `json:"implementationVerification,omitempty"` + ImplementationVerificationNEQ *string `json:"implementationVerificationNEQ,omitempty"` + ImplementationVerificationIn []string `json:"implementationVerificationIn,omitempty"` + ImplementationVerificationNotIn []string `json:"implementationVerificationNotIn,omitempty"` + ImplementationVerificationGT *string `json:"implementationVerificationGT,omitempty"` + ImplementationVerificationGTE *string `json:"implementationVerificationGTE,omitempty"` + ImplementationVerificationLT *string `json:"implementationVerificationLT,omitempty"` + ImplementationVerificationLTE *string `json:"implementationVerificationLTE,omitempty"` + ImplementationVerificationContains *string `json:"implementationVerificationContains,omitempty"` + ImplementationVerificationHasPrefix *string `json:"implementationVerificationHasPrefix,omitempty"` + ImplementationVerificationHasSuffix *string `json:"implementationVerificationHasSuffix,omitempty"` + ImplementationVerificationIsNil bool `json:"implementationVerificationIsNil,omitempty"` + ImplementationVerificationNotNil bool `json:"implementationVerificationNotNil,omitempty"` + ImplementationVerificationEqualFold *string `json:"implementationVerificationEqualFold,omitempty"` + ImplementationVerificationContainsFold *string `json:"implementationVerificationContainsFold,omitempty"` + + // "implementation_verification_date" field predicates. + ImplementationVerificationDate *time.Time `json:"implementationVerificationDate,omitempty"` + ImplementationVerificationDateNEQ *time.Time `json:"implementationVerificationDateNEQ,omitempty"` + ImplementationVerificationDateIn []time.Time `json:"implementationVerificationDateIn,omitempty"` + ImplementationVerificationDateNotIn []time.Time `json:"implementationVerificationDateNotIn,omitempty"` + ImplementationVerificationDateGT *time.Time `json:"implementationVerificationDateGT,omitempty"` + ImplementationVerificationDateGTE *time.Time `json:"implementationVerificationDateGTE,omitempty"` + ImplementationVerificationDateLT *time.Time `json:"implementationVerificationDateLT,omitempty"` + ImplementationVerificationDateLTE *time.Time `json:"implementationVerificationDateLTE,omitempty"` + ImplementationVerificationDateIsNil bool `json:"implementationVerificationDateIsNil,omitempty"` + ImplementationVerificationDateNotNil bool `json:"implementationVerificationDateNotNil,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. -func (i *PersonalAccessTokenWhereInput) AddPredicates(predicates ...predicate.PersonalAccessToken) { +func (i *SubcontrolHistoryWhereInput) AddPredicates(predicates ...predicate.SubcontrolHistory) { i.Predicates = append(i.Predicates, predicates...) } -// Filter applies the PersonalAccessTokenWhereInput filter on the PersonalAccessTokenQuery builder. -func (i *PersonalAccessTokenWhereInput) Filter(q *PersonalAccessTokenQuery) (*PersonalAccessTokenQuery, error) { +// Filter applies the SubcontrolHistoryWhereInput filter on the SubcontrolHistoryQuery builder. +func (i *SubcontrolHistoryWhereInput) Filter(q *SubcontrolHistoryQuery) (*SubcontrolHistoryQuery, error) { if i == nil { return q, nil } p, err := i.P() if err != nil { - if err == ErrEmptyPersonalAccessTokenWhereInput { + if err == ErrEmptySubcontrolHistoryWhereInput { return q, nil } return nil, err @@ -34857,19 +53476,19 @@ func (i *PersonalAccessTokenWhereInput) Filter(q *PersonalAccessTokenQuery) (*Pe return q.Where(p), nil } -// ErrEmptyPersonalAccessTokenWhereInput is returned in case the PersonalAccessTokenWhereInput is empty. -var ErrEmptyPersonalAccessTokenWhereInput = errors.New("generated: empty predicate PersonalAccessTokenWhereInput") +// ErrEmptySubcontrolHistoryWhereInput is returned in case the SubcontrolHistoryWhereInput is empty. +var ErrEmptySubcontrolHistoryWhereInput = errors.New("generated: empty predicate SubcontrolHistoryWhereInput") -// P returns a predicate for filtering personalaccesstokens. +// P returns a predicate for filtering subcontrolhistories. // An error is returned if the input is empty or invalid. -func (i *PersonalAccessTokenWhereInput) P() (predicate.PersonalAccessToken, error) { - var predicates []predicate.PersonalAccessToken +func (i *SubcontrolHistoryWhereInput) P() (predicate.SubcontrolHistory, error) { + var predicates []predicate.SubcontrolHistory if i.Not != nil { p, err := i.Not.P() if err != nil { return nil, fmt.Errorf("%w: field 'not'", err) } - predicates = append(predicates, personalaccesstoken.Not(p)) + predicates = append(predicates, subcontrolhistory.Not(p)) } switch n := len(i.Or); { case n == 1: @@ -34879,7 +53498,7 @@ func (i *PersonalAccessTokenWhereInput) P() (predicate.PersonalAccessToken, erro } predicates = append(predicates, p) case n > 1: - or := make([]predicate.PersonalAccessToken, 0, n) + or := make([]predicate.SubcontrolHistory, 0, n) for _, w := range i.Or { p, err := w.P() if err != nil { @@ -34887,7 +53506,7 @@ func (i *PersonalAccessTokenWhereInput) P() (predicate.PersonalAccessToken, erro } or = append(or, p) } - predicates = append(predicates, personalaccesstoken.Or(or...)) + predicates = append(predicates, subcontrolhistory.Or(or...)) } switch n := len(i.And); { case n == 1: @@ -34897,7 +53516,7 @@ func (i *PersonalAccessTokenWhereInput) P() (predicate.PersonalAccessToken, erro } predicates = append(predicates, p) case n > 1: - and := make([]predicate.PersonalAccessToken, 0, n) + and := make([]predicate.SubcontrolHistory, 0, n) for _, w := range i.And { p, err := w.P() if err != nil { @@ -34905,425 +53524,992 @@ func (i *PersonalAccessTokenWhereInput) P() (predicate.PersonalAccessToken, erro } and = append(and, p) } - predicates = append(predicates, personalaccesstoken.And(and...)) + predicates = append(predicates, subcontrolhistory.And(and...)) } predicates = append(predicates, i.Predicates...) if i.ID != nil { - predicates = append(predicates, personalaccesstoken.IDEQ(*i.ID)) + predicates = append(predicates, subcontrolhistory.IDEQ(*i.ID)) } if i.IDNEQ != nil { - predicates = append(predicates, personalaccesstoken.IDNEQ(*i.IDNEQ)) + predicates = append(predicates, subcontrolhistory.IDNEQ(*i.IDNEQ)) } if len(i.IDIn) > 0 { - predicates = append(predicates, personalaccesstoken.IDIn(i.IDIn...)) + predicates = append(predicates, subcontrolhistory.IDIn(i.IDIn...)) } if len(i.IDNotIn) > 0 { - predicates = append(predicates, personalaccesstoken.IDNotIn(i.IDNotIn...)) + predicates = append(predicates, subcontrolhistory.IDNotIn(i.IDNotIn...)) } if i.IDGT != nil { - predicates = append(predicates, personalaccesstoken.IDGT(*i.IDGT)) + predicates = append(predicates, subcontrolhistory.IDGT(*i.IDGT)) } if i.IDGTE != nil { - predicates = append(predicates, personalaccesstoken.IDGTE(*i.IDGTE)) + predicates = append(predicates, subcontrolhistory.IDGTE(*i.IDGTE)) } if i.IDLT != nil { - predicates = append(predicates, personalaccesstoken.IDLT(*i.IDLT)) + predicates = append(predicates, subcontrolhistory.IDLT(*i.IDLT)) } if i.IDLTE != nil { - predicates = append(predicates, personalaccesstoken.IDLTE(*i.IDLTE)) + predicates = append(predicates, subcontrolhistory.IDLTE(*i.IDLTE)) } if i.IDEqualFold != nil { - predicates = append(predicates, personalaccesstoken.IDEqualFold(*i.IDEqualFold)) + predicates = append(predicates, subcontrolhistory.IDEqualFold(*i.IDEqualFold)) } if i.IDContainsFold != nil { - predicates = append(predicates, personalaccesstoken.IDContainsFold(*i.IDContainsFold)) + predicates = append(predicates, subcontrolhistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, subcontrolhistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeNEQ != nil { + predicates = append(predicates, subcontrolhistory.HistoryTimeNEQ(*i.HistoryTimeNEQ)) + } + if len(i.HistoryTimeIn) > 0 { + predicates = append(predicates, subcontrolhistory.HistoryTimeIn(i.HistoryTimeIn...)) + } + if len(i.HistoryTimeNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.HistoryTimeNotIn(i.HistoryTimeNotIn...)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, subcontrolhistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, subcontrolhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, subcontrolhistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, subcontrolhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, subcontrolhistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, subcontrolhistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, subcontrolhistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.RefNotIn(i.RefNotIn...)) + } + if i.RefGT != nil { + predicates = append(predicates, subcontrolhistory.RefGT(*i.RefGT)) + } + if i.RefGTE != nil { + predicates = append(predicates, subcontrolhistory.RefGTE(*i.RefGTE)) + } + if i.RefLT != nil { + predicates = append(predicates, subcontrolhistory.RefLT(*i.RefLT)) + } + if i.RefLTE != nil { + predicates = append(predicates, subcontrolhistory.RefLTE(*i.RefLTE)) + } + if i.RefContains != nil { + predicates = append(predicates, subcontrolhistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, subcontrolhistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, subcontrolhistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, subcontrolhistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, subcontrolhistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, subcontrolhistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, subcontrolhistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, subcontrolhistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.OperationNotIn(i.OperationNotIn...)) } if i.CreatedAt != nil { - predicates = append(predicates, personalaccesstoken.CreatedAtEQ(*i.CreatedAt)) + predicates = append(predicates, subcontrolhistory.CreatedAtEQ(*i.CreatedAt)) } if i.CreatedAtNEQ != nil { - predicates = append(predicates, personalaccesstoken.CreatedAtNEQ(*i.CreatedAtNEQ)) + predicates = append(predicates, subcontrolhistory.CreatedAtNEQ(*i.CreatedAtNEQ)) } if len(i.CreatedAtIn) > 0 { - predicates = append(predicates, personalaccesstoken.CreatedAtIn(i.CreatedAtIn...)) + predicates = append(predicates, subcontrolhistory.CreatedAtIn(i.CreatedAtIn...)) } if len(i.CreatedAtNotIn) > 0 { - predicates = append(predicates, personalaccesstoken.CreatedAtNotIn(i.CreatedAtNotIn...)) + predicates = append(predicates, subcontrolhistory.CreatedAtNotIn(i.CreatedAtNotIn...)) } if i.CreatedAtGT != nil { - predicates = append(predicates, personalaccesstoken.CreatedAtGT(*i.CreatedAtGT)) + predicates = append(predicates, subcontrolhistory.CreatedAtGT(*i.CreatedAtGT)) } if i.CreatedAtGTE != nil { - predicates = append(predicates, personalaccesstoken.CreatedAtGTE(*i.CreatedAtGTE)) + predicates = append(predicates, subcontrolhistory.CreatedAtGTE(*i.CreatedAtGTE)) } if i.CreatedAtLT != nil { - predicates = append(predicates, personalaccesstoken.CreatedAtLT(*i.CreatedAtLT)) + predicates = append(predicates, subcontrolhistory.CreatedAtLT(*i.CreatedAtLT)) } if i.CreatedAtLTE != nil { - predicates = append(predicates, personalaccesstoken.CreatedAtLTE(*i.CreatedAtLTE)) + predicates = append(predicates, subcontrolhistory.CreatedAtLTE(*i.CreatedAtLTE)) } if i.CreatedAtIsNil { - predicates = append(predicates, personalaccesstoken.CreatedAtIsNil()) + predicates = append(predicates, subcontrolhistory.CreatedAtIsNil()) } if i.CreatedAtNotNil { - predicates = append(predicates, personalaccesstoken.CreatedAtNotNil()) + predicates = append(predicates, subcontrolhistory.CreatedAtNotNil()) } if i.UpdatedAt != nil { - predicates = append(predicates, personalaccesstoken.UpdatedAtEQ(*i.UpdatedAt)) + predicates = append(predicates, subcontrolhistory.UpdatedAtEQ(*i.UpdatedAt)) } if i.UpdatedAtNEQ != nil { - predicates = append(predicates, personalaccesstoken.UpdatedAtNEQ(*i.UpdatedAtNEQ)) + predicates = append(predicates, subcontrolhistory.UpdatedAtNEQ(*i.UpdatedAtNEQ)) } if len(i.UpdatedAtIn) > 0 { - predicates = append(predicates, personalaccesstoken.UpdatedAtIn(i.UpdatedAtIn...)) + predicates = append(predicates, subcontrolhistory.UpdatedAtIn(i.UpdatedAtIn...)) } if len(i.UpdatedAtNotIn) > 0 { - predicates = append(predicates, personalaccesstoken.UpdatedAtNotIn(i.UpdatedAtNotIn...)) + predicates = append(predicates, subcontrolhistory.UpdatedAtNotIn(i.UpdatedAtNotIn...)) } if i.UpdatedAtGT != nil { - predicates = append(predicates, personalaccesstoken.UpdatedAtGT(*i.UpdatedAtGT)) + predicates = append(predicates, subcontrolhistory.UpdatedAtGT(*i.UpdatedAtGT)) } if i.UpdatedAtGTE != nil { - predicates = append(predicates, personalaccesstoken.UpdatedAtGTE(*i.UpdatedAtGTE)) + predicates = append(predicates, subcontrolhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) } if i.UpdatedAtLT != nil { - predicates = append(predicates, personalaccesstoken.UpdatedAtLT(*i.UpdatedAtLT)) + predicates = append(predicates, subcontrolhistory.UpdatedAtLT(*i.UpdatedAtLT)) } if i.UpdatedAtLTE != nil { - predicates = append(predicates, personalaccesstoken.UpdatedAtLTE(*i.UpdatedAtLTE)) + predicates = append(predicates, subcontrolhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) } if i.UpdatedAtIsNil { - predicates = append(predicates, personalaccesstoken.UpdatedAtIsNil()) + predicates = append(predicates, subcontrolhistory.UpdatedAtIsNil()) } if i.UpdatedAtNotNil { - predicates = append(predicates, personalaccesstoken.UpdatedAtNotNil()) + predicates = append(predicates, subcontrolhistory.UpdatedAtNotNil()) } if i.CreatedBy != nil { - predicates = append(predicates, personalaccesstoken.CreatedByEQ(*i.CreatedBy)) + predicates = append(predicates, subcontrolhistory.CreatedByEQ(*i.CreatedBy)) } if i.CreatedByNEQ != nil { - predicates = append(predicates, personalaccesstoken.CreatedByNEQ(*i.CreatedByNEQ)) + predicates = append(predicates, subcontrolhistory.CreatedByNEQ(*i.CreatedByNEQ)) } if len(i.CreatedByIn) > 0 { - predicates = append(predicates, personalaccesstoken.CreatedByIn(i.CreatedByIn...)) + predicates = append(predicates, subcontrolhistory.CreatedByIn(i.CreatedByIn...)) } if len(i.CreatedByNotIn) > 0 { - predicates = append(predicates, personalaccesstoken.CreatedByNotIn(i.CreatedByNotIn...)) + predicates = append(predicates, subcontrolhistory.CreatedByNotIn(i.CreatedByNotIn...)) } if i.CreatedByGT != nil { - predicates = append(predicates, personalaccesstoken.CreatedByGT(*i.CreatedByGT)) + predicates = append(predicates, subcontrolhistory.CreatedByGT(*i.CreatedByGT)) } if i.CreatedByGTE != nil { - predicates = append(predicates, personalaccesstoken.CreatedByGTE(*i.CreatedByGTE)) + predicates = append(predicates, subcontrolhistory.CreatedByGTE(*i.CreatedByGTE)) } if i.CreatedByLT != nil { - predicates = append(predicates, personalaccesstoken.CreatedByLT(*i.CreatedByLT)) + predicates = append(predicates, subcontrolhistory.CreatedByLT(*i.CreatedByLT)) } if i.CreatedByLTE != nil { - predicates = append(predicates, personalaccesstoken.CreatedByLTE(*i.CreatedByLTE)) + predicates = append(predicates, subcontrolhistory.CreatedByLTE(*i.CreatedByLTE)) } if i.CreatedByContains != nil { - predicates = append(predicates, personalaccesstoken.CreatedByContains(*i.CreatedByContains)) + predicates = append(predicates, subcontrolhistory.CreatedByContains(*i.CreatedByContains)) } if i.CreatedByHasPrefix != nil { - predicates = append(predicates, personalaccesstoken.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + predicates = append(predicates, subcontrolhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) } if i.CreatedByHasSuffix != nil { - predicates = append(predicates, personalaccesstoken.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + predicates = append(predicates, subcontrolhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) } if i.CreatedByIsNil { - predicates = append(predicates, personalaccesstoken.CreatedByIsNil()) + predicates = append(predicates, subcontrolhistory.CreatedByIsNil()) } if i.CreatedByNotNil { - predicates = append(predicates, personalaccesstoken.CreatedByNotNil()) + predicates = append(predicates, subcontrolhistory.CreatedByNotNil()) } if i.CreatedByEqualFold != nil { - predicates = append(predicates, personalaccesstoken.CreatedByEqualFold(*i.CreatedByEqualFold)) + predicates = append(predicates, subcontrolhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) } if i.CreatedByContainsFold != nil { - predicates = append(predicates, personalaccesstoken.CreatedByContainsFold(*i.CreatedByContainsFold)) + predicates = append(predicates, subcontrolhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) } if i.UpdatedBy != nil { - predicates = append(predicates, personalaccesstoken.UpdatedByEQ(*i.UpdatedBy)) + predicates = append(predicates, subcontrolhistory.UpdatedByEQ(*i.UpdatedBy)) } if i.UpdatedByNEQ != nil { - predicates = append(predicates, personalaccesstoken.UpdatedByNEQ(*i.UpdatedByNEQ)) + predicates = append(predicates, subcontrolhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) } if len(i.UpdatedByIn) > 0 { - predicates = append(predicates, personalaccesstoken.UpdatedByIn(i.UpdatedByIn...)) + predicates = append(predicates, subcontrolhistory.UpdatedByIn(i.UpdatedByIn...)) } if len(i.UpdatedByNotIn) > 0 { - predicates = append(predicates, personalaccesstoken.UpdatedByNotIn(i.UpdatedByNotIn...)) + predicates = append(predicates, subcontrolhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) } if i.UpdatedByGT != nil { - predicates = append(predicates, personalaccesstoken.UpdatedByGT(*i.UpdatedByGT)) + predicates = append(predicates, subcontrolhistory.UpdatedByGT(*i.UpdatedByGT)) } if i.UpdatedByGTE != nil { - predicates = append(predicates, personalaccesstoken.UpdatedByGTE(*i.UpdatedByGTE)) + predicates = append(predicates, subcontrolhistory.UpdatedByGTE(*i.UpdatedByGTE)) } if i.UpdatedByLT != nil { - predicates = append(predicates, personalaccesstoken.UpdatedByLT(*i.UpdatedByLT)) + predicates = append(predicates, subcontrolhistory.UpdatedByLT(*i.UpdatedByLT)) } if i.UpdatedByLTE != nil { - predicates = append(predicates, personalaccesstoken.UpdatedByLTE(*i.UpdatedByLTE)) + predicates = append(predicates, subcontrolhistory.UpdatedByLTE(*i.UpdatedByLTE)) } if i.UpdatedByContains != nil { - predicates = append(predicates, personalaccesstoken.UpdatedByContains(*i.UpdatedByContains)) + predicates = append(predicates, subcontrolhistory.UpdatedByContains(*i.UpdatedByContains)) } if i.UpdatedByHasPrefix != nil { - predicates = append(predicates, personalaccesstoken.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + predicates = append(predicates, subcontrolhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) } if i.UpdatedByHasSuffix != nil { - predicates = append(predicates, personalaccesstoken.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + predicates = append(predicates, subcontrolhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) } if i.UpdatedByIsNil { - predicates = append(predicates, personalaccesstoken.UpdatedByIsNil()) + predicates = append(predicates, subcontrolhistory.UpdatedByIsNil()) } if i.UpdatedByNotNil { - predicates = append(predicates, personalaccesstoken.UpdatedByNotNil()) + predicates = append(predicates, subcontrolhistory.UpdatedByNotNil()) } if i.UpdatedByEqualFold != nil { - predicates = append(predicates, personalaccesstoken.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + predicates = append(predicates, subcontrolhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) } if i.UpdatedByContainsFold != nil { - predicates = append(predicates, personalaccesstoken.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + predicates = append(predicates, subcontrolhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) } if i.DeletedAt != nil { - predicates = append(predicates, personalaccesstoken.DeletedAtEQ(*i.DeletedAt)) + predicates = append(predicates, subcontrolhistory.DeletedAtEQ(*i.DeletedAt)) } if i.DeletedAtNEQ != nil { - predicates = append(predicates, personalaccesstoken.DeletedAtNEQ(*i.DeletedAtNEQ)) + predicates = append(predicates, subcontrolhistory.DeletedAtNEQ(*i.DeletedAtNEQ)) } if len(i.DeletedAtIn) > 0 { - predicates = append(predicates, personalaccesstoken.DeletedAtIn(i.DeletedAtIn...)) + predicates = append(predicates, subcontrolhistory.DeletedAtIn(i.DeletedAtIn...)) } if len(i.DeletedAtNotIn) > 0 { - predicates = append(predicates, personalaccesstoken.DeletedAtNotIn(i.DeletedAtNotIn...)) + predicates = append(predicates, subcontrolhistory.DeletedAtNotIn(i.DeletedAtNotIn...)) } if i.DeletedAtGT != nil { - predicates = append(predicates, personalaccesstoken.DeletedAtGT(*i.DeletedAtGT)) + predicates = append(predicates, subcontrolhistory.DeletedAtGT(*i.DeletedAtGT)) } if i.DeletedAtGTE != nil { - predicates = append(predicates, personalaccesstoken.DeletedAtGTE(*i.DeletedAtGTE)) + predicates = append(predicates, subcontrolhistory.DeletedAtGTE(*i.DeletedAtGTE)) } if i.DeletedAtLT != nil { - predicates = append(predicates, personalaccesstoken.DeletedAtLT(*i.DeletedAtLT)) + predicates = append(predicates, subcontrolhistory.DeletedAtLT(*i.DeletedAtLT)) } if i.DeletedAtLTE != nil { - predicates = append(predicates, personalaccesstoken.DeletedAtLTE(*i.DeletedAtLTE)) + predicates = append(predicates, subcontrolhistory.DeletedAtLTE(*i.DeletedAtLTE)) } if i.DeletedAtIsNil { - predicates = append(predicates, personalaccesstoken.DeletedAtIsNil()) + predicates = append(predicates, subcontrolhistory.DeletedAtIsNil()) } if i.DeletedAtNotNil { - predicates = append(predicates, personalaccesstoken.DeletedAtNotNil()) + predicates = append(predicates, subcontrolhistory.DeletedAtNotNil()) } if i.DeletedBy != nil { - predicates = append(predicates, personalaccesstoken.DeletedByEQ(*i.DeletedBy)) + predicates = append(predicates, subcontrolhistory.DeletedByEQ(*i.DeletedBy)) } if i.DeletedByNEQ != nil { - predicates = append(predicates, personalaccesstoken.DeletedByNEQ(*i.DeletedByNEQ)) + predicates = append(predicates, subcontrolhistory.DeletedByNEQ(*i.DeletedByNEQ)) } if len(i.DeletedByIn) > 0 { - predicates = append(predicates, personalaccesstoken.DeletedByIn(i.DeletedByIn...)) + predicates = append(predicates, subcontrolhistory.DeletedByIn(i.DeletedByIn...)) } if len(i.DeletedByNotIn) > 0 { - predicates = append(predicates, personalaccesstoken.DeletedByNotIn(i.DeletedByNotIn...)) + predicates = append(predicates, subcontrolhistory.DeletedByNotIn(i.DeletedByNotIn...)) } if i.DeletedByGT != nil { - predicates = append(predicates, personalaccesstoken.DeletedByGT(*i.DeletedByGT)) + predicates = append(predicates, subcontrolhistory.DeletedByGT(*i.DeletedByGT)) } if i.DeletedByGTE != nil { - predicates = append(predicates, personalaccesstoken.DeletedByGTE(*i.DeletedByGTE)) + predicates = append(predicates, subcontrolhistory.DeletedByGTE(*i.DeletedByGTE)) } if i.DeletedByLT != nil { - predicates = append(predicates, personalaccesstoken.DeletedByLT(*i.DeletedByLT)) + predicates = append(predicates, subcontrolhistory.DeletedByLT(*i.DeletedByLT)) } if i.DeletedByLTE != nil { - predicates = append(predicates, personalaccesstoken.DeletedByLTE(*i.DeletedByLTE)) + predicates = append(predicates, subcontrolhistory.DeletedByLTE(*i.DeletedByLTE)) } if i.DeletedByContains != nil { - predicates = append(predicates, personalaccesstoken.DeletedByContains(*i.DeletedByContains)) + predicates = append(predicates, subcontrolhistory.DeletedByContains(*i.DeletedByContains)) } if i.DeletedByHasPrefix != nil { - predicates = append(predicates, personalaccesstoken.DeletedByHasPrefix(*i.DeletedByHasPrefix)) + predicates = append(predicates, subcontrolhistory.DeletedByHasPrefix(*i.DeletedByHasPrefix)) } if i.DeletedByHasSuffix != nil { - predicates = append(predicates, personalaccesstoken.DeletedByHasSuffix(*i.DeletedByHasSuffix)) + predicates = append(predicates, subcontrolhistory.DeletedByHasSuffix(*i.DeletedByHasSuffix)) } if i.DeletedByIsNil { - predicates = append(predicates, personalaccesstoken.DeletedByIsNil()) + predicates = append(predicates, subcontrolhistory.DeletedByIsNil()) } if i.DeletedByNotNil { - predicates = append(predicates, personalaccesstoken.DeletedByNotNil()) + predicates = append(predicates, subcontrolhistory.DeletedByNotNil()) } if i.DeletedByEqualFold != nil { - predicates = append(predicates, personalaccesstoken.DeletedByEqualFold(*i.DeletedByEqualFold)) + predicates = append(predicates, subcontrolhistory.DeletedByEqualFold(*i.DeletedByEqualFold)) } if i.DeletedByContainsFold != nil { - predicates = append(predicates, personalaccesstoken.DeletedByContainsFold(*i.DeletedByContainsFold)) + predicates = append(predicates, subcontrolhistory.DeletedByContainsFold(*i.DeletedByContainsFold)) } if i.Name != nil { - predicates = append(predicates, personalaccesstoken.NameEQ(*i.Name)) + predicates = append(predicates, subcontrolhistory.NameEQ(*i.Name)) } if i.NameNEQ != nil { - predicates = append(predicates, personalaccesstoken.NameNEQ(*i.NameNEQ)) + predicates = append(predicates, subcontrolhistory.NameNEQ(*i.NameNEQ)) } if len(i.NameIn) > 0 { - predicates = append(predicates, personalaccesstoken.NameIn(i.NameIn...)) + predicates = append(predicates, subcontrolhistory.NameIn(i.NameIn...)) } if len(i.NameNotIn) > 0 { - predicates = append(predicates, personalaccesstoken.NameNotIn(i.NameNotIn...)) + predicates = append(predicates, subcontrolhistory.NameNotIn(i.NameNotIn...)) } if i.NameGT != nil { - predicates = append(predicates, personalaccesstoken.NameGT(*i.NameGT)) + predicates = append(predicates, subcontrolhistory.NameGT(*i.NameGT)) } if i.NameGTE != nil { - predicates = append(predicates, personalaccesstoken.NameGTE(*i.NameGTE)) + predicates = append(predicates, subcontrolhistory.NameGTE(*i.NameGTE)) } if i.NameLT != nil { - predicates = append(predicates, personalaccesstoken.NameLT(*i.NameLT)) + predicates = append(predicates, subcontrolhistory.NameLT(*i.NameLT)) } if i.NameLTE != nil { - predicates = append(predicates, personalaccesstoken.NameLTE(*i.NameLTE)) + predicates = append(predicates, subcontrolhistory.NameLTE(*i.NameLTE)) } if i.NameContains != nil { - predicates = append(predicates, personalaccesstoken.NameContains(*i.NameContains)) + predicates = append(predicates, subcontrolhistory.NameContains(*i.NameContains)) } if i.NameHasPrefix != nil { - predicates = append(predicates, personalaccesstoken.NameHasPrefix(*i.NameHasPrefix)) + predicates = append(predicates, subcontrolhistory.NameHasPrefix(*i.NameHasPrefix)) } if i.NameHasSuffix != nil { - predicates = append(predicates, personalaccesstoken.NameHasSuffix(*i.NameHasSuffix)) + predicates = append(predicates, subcontrolhistory.NameHasSuffix(*i.NameHasSuffix)) } if i.NameEqualFold != nil { - predicates = append(predicates, personalaccesstoken.NameEqualFold(*i.NameEqualFold)) + predicates = append(predicates, subcontrolhistory.NameEqualFold(*i.NameEqualFold)) } if i.NameContainsFold != nil { - predicates = append(predicates, personalaccesstoken.NameContainsFold(*i.NameContainsFold)) + predicates = append(predicates, subcontrolhistory.NameContainsFold(*i.NameContainsFold)) } - if i.ExpiresAt != nil { - predicates = append(predicates, personalaccesstoken.ExpiresAtEQ(*i.ExpiresAt)) + if i.Description != nil { + predicates = append(predicates, subcontrolhistory.DescriptionEQ(*i.Description)) } - if i.ExpiresAtNEQ != nil { - predicates = append(predicates, personalaccesstoken.ExpiresAtNEQ(*i.ExpiresAtNEQ)) + if i.DescriptionNEQ != nil { + predicates = append(predicates, subcontrolhistory.DescriptionNEQ(*i.DescriptionNEQ)) } - if len(i.ExpiresAtIn) > 0 { - predicates = append(predicates, personalaccesstoken.ExpiresAtIn(i.ExpiresAtIn...)) + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, subcontrolhistory.DescriptionIn(i.DescriptionIn...)) } - if len(i.ExpiresAtNotIn) > 0 { - predicates = append(predicates, personalaccesstoken.ExpiresAtNotIn(i.ExpiresAtNotIn...)) + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.DescriptionNotIn(i.DescriptionNotIn...)) } - if i.ExpiresAtGT != nil { - predicates = append(predicates, personalaccesstoken.ExpiresAtGT(*i.ExpiresAtGT)) + if i.DescriptionGT != nil { + predicates = append(predicates, subcontrolhistory.DescriptionGT(*i.DescriptionGT)) } - if i.ExpiresAtGTE != nil { - predicates = append(predicates, personalaccesstoken.ExpiresAtGTE(*i.ExpiresAtGTE)) + if i.DescriptionGTE != nil { + predicates = append(predicates, subcontrolhistory.DescriptionGTE(*i.DescriptionGTE)) } - if i.ExpiresAtLT != nil { - predicates = append(predicates, personalaccesstoken.ExpiresAtLT(*i.ExpiresAtLT)) + if i.DescriptionLT != nil { + predicates = append(predicates, subcontrolhistory.DescriptionLT(*i.DescriptionLT)) } - if i.ExpiresAtLTE != nil { - predicates = append(predicates, personalaccesstoken.ExpiresAtLTE(*i.ExpiresAtLTE)) + if i.DescriptionLTE != nil { + predicates = append(predicates, subcontrolhistory.DescriptionLTE(*i.DescriptionLTE)) } - if i.ExpiresAtIsNil { - predicates = append(predicates, personalaccesstoken.ExpiresAtIsNil()) + if i.DescriptionContains != nil { + predicates = append(predicates, subcontrolhistory.DescriptionContains(*i.DescriptionContains)) } - if i.ExpiresAtNotNil { - predicates = append(predicates, personalaccesstoken.ExpiresAtNotNil()) + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) } - if i.LastUsedAt != nil { - predicates = append(predicates, personalaccesstoken.LastUsedAtEQ(*i.LastUsedAt)) + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) } - if i.LastUsedAtNEQ != nil { - predicates = append(predicates, personalaccesstoken.LastUsedAtNEQ(*i.LastUsedAtNEQ)) + if i.DescriptionIsNil { + predicates = append(predicates, subcontrolhistory.DescriptionIsNil()) } - if len(i.LastUsedAtIn) > 0 { - predicates = append(predicates, personalaccesstoken.LastUsedAtIn(i.LastUsedAtIn...)) + if i.DescriptionNotNil { + predicates = append(predicates, subcontrolhistory.DescriptionNotNil()) } - if len(i.LastUsedAtNotIn) > 0 { - predicates = append(predicates, personalaccesstoken.LastUsedAtNotIn(i.LastUsedAtNotIn...)) + if i.DescriptionEqualFold != nil { + predicates = append(predicates, subcontrolhistory.DescriptionEqualFold(*i.DescriptionEqualFold)) } - if i.LastUsedAtGT != nil { - predicates = append(predicates, personalaccesstoken.LastUsedAtGT(*i.LastUsedAtGT)) + if i.DescriptionContainsFold != nil { + predicates = append(predicates, subcontrolhistory.DescriptionContainsFold(*i.DescriptionContainsFold)) } - if i.LastUsedAtGTE != nil { - predicates = append(predicates, personalaccesstoken.LastUsedAtGTE(*i.LastUsedAtGTE)) + if i.Status != nil { + predicates = append(predicates, subcontrolhistory.StatusEQ(*i.Status)) } - if i.LastUsedAtLT != nil { - predicates = append(predicates, personalaccesstoken.LastUsedAtLT(*i.LastUsedAtLT)) + if i.StatusNEQ != nil { + predicates = append(predicates, subcontrolhistory.StatusNEQ(*i.StatusNEQ)) } - if i.LastUsedAtLTE != nil { - predicates = append(predicates, personalaccesstoken.LastUsedAtLTE(*i.LastUsedAtLTE)) + if len(i.StatusIn) > 0 { + predicates = append(predicates, subcontrolhistory.StatusIn(i.StatusIn...)) } - if i.LastUsedAtIsNil { - predicates = append(predicates, personalaccesstoken.LastUsedAtIsNil()) + if len(i.StatusNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.StatusNotIn(i.StatusNotIn...)) } - if i.LastUsedAtNotNil { - predicates = append(predicates, personalaccesstoken.LastUsedAtNotNil()) + if i.StatusGT != nil { + predicates = append(predicates, subcontrolhistory.StatusGT(*i.StatusGT)) } - - if i.HasOwner != nil { - p := personalaccesstoken.HasOwner() - if !*i.HasOwner { - p = personalaccesstoken.Not(p) - } - predicates = append(predicates, p) + if i.StatusGTE != nil { + predicates = append(predicates, subcontrolhistory.StatusGTE(*i.StatusGTE)) } - if len(i.HasOwnerWith) > 0 { - with := make([]predicate.User, 0, len(i.HasOwnerWith)) - 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, personalaccesstoken.HasOwnerWith(with...)) + if i.StatusLT != nil { + predicates = append(predicates, subcontrolhistory.StatusLT(*i.StatusLT)) } - if i.HasOrganizations != nil { - p := personalaccesstoken.HasOrganizations() - if !*i.HasOrganizations { - p = personalaccesstoken.Not(p) - } - predicates = append(predicates, p) + if i.StatusLTE != nil { + predicates = append(predicates, subcontrolhistory.StatusLTE(*i.StatusLTE)) } - if len(i.HasOrganizationsWith) > 0 { - with := make([]predicate.Organization, 0, len(i.HasOrganizationsWith)) - for _, w := range i.HasOrganizationsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasOrganizationsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, personalaccesstoken.HasOrganizationsWith(with...)) + if i.StatusContains != nil { + predicates = append(predicates, subcontrolhistory.StatusContains(*i.StatusContains)) } - if i.HasEvents != nil { - p := personalaccesstoken.HasEvents() - if !*i.HasEvents { - p = personalaccesstoken.Not(p) - } - predicates = append(predicates, p) + if i.StatusHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.StatusHasPrefix(*i.StatusHasPrefix)) } - if len(i.HasEventsWith) > 0 { - with := make([]predicate.Event, 0, len(i.HasEventsWith)) - for _, w := range i.HasEventsWith { - p, err := w.P() - if err != nil { - return nil, fmt.Errorf("%w: field 'HasEventsWith'", err) - } - with = append(with, p) - } - predicates = append(predicates, personalaccesstoken.HasEventsWith(with...)) + if i.StatusHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.StatusHasSuffix(*i.StatusHasSuffix)) + } + if i.StatusIsNil { + predicates = append(predicates, subcontrolhistory.StatusIsNil()) + } + if i.StatusNotNil { + predicates = append(predicates, subcontrolhistory.StatusNotNil()) + } + if i.StatusEqualFold != nil { + predicates = append(predicates, subcontrolhistory.StatusEqualFold(*i.StatusEqualFold)) + } + if i.StatusContainsFold != nil { + predicates = append(predicates, subcontrolhistory.StatusContainsFold(*i.StatusContainsFold)) + } + if i.SubcontrolType != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeEQ(*i.SubcontrolType)) + } + if i.SubcontrolTypeNEQ != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeNEQ(*i.SubcontrolTypeNEQ)) + } + if len(i.SubcontrolTypeIn) > 0 { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeIn(i.SubcontrolTypeIn...)) + } + if len(i.SubcontrolTypeNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeNotIn(i.SubcontrolTypeNotIn...)) + } + if i.SubcontrolTypeGT != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeGT(*i.SubcontrolTypeGT)) + } + if i.SubcontrolTypeGTE != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeGTE(*i.SubcontrolTypeGTE)) + } + if i.SubcontrolTypeLT != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeLT(*i.SubcontrolTypeLT)) + } + if i.SubcontrolTypeLTE != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeLTE(*i.SubcontrolTypeLTE)) + } + if i.SubcontrolTypeContains != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeContains(*i.SubcontrolTypeContains)) + } + if i.SubcontrolTypeHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeHasPrefix(*i.SubcontrolTypeHasPrefix)) + } + if i.SubcontrolTypeHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeHasSuffix(*i.SubcontrolTypeHasSuffix)) + } + if i.SubcontrolTypeIsNil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeIsNil()) + } + if i.SubcontrolTypeNotNil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeNotNil()) + } + if i.SubcontrolTypeEqualFold != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeEqualFold(*i.SubcontrolTypeEqualFold)) + } + if i.SubcontrolTypeContainsFold != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolTypeContainsFold(*i.SubcontrolTypeContainsFold)) + } + if i.Version != nil { + predicates = append(predicates, subcontrolhistory.VersionEQ(*i.Version)) + } + if i.VersionNEQ != nil { + predicates = append(predicates, subcontrolhistory.VersionNEQ(*i.VersionNEQ)) + } + if len(i.VersionIn) > 0 { + predicates = append(predicates, subcontrolhistory.VersionIn(i.VersionIn...)) + } + if len(i.VersionNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.VersionNotIn(i.VersionNotIn...)) + } + if i.VersionGT != nil { + predicates = append(predicates, subcontrolhistory.VersionGT(*i.VersionGT)) + } + if i.VersionGTE != nil { + predicates = append(predicates, subcontrolhistory.VersionGTE(*i.VersionGTE)) + } + if i.VersionLT != nil { + predicates = append(predicates, subcontrolhistory.VersionLT(*i.VersionLT)) + } + if i.VersionLTE != nil { + predicates = append(predicates, subcontrolhistory.VersionLTE(*i.VersionLTE)) + } + if i.VersionContains != nil { + predicates = append(predicates, subcontrolhistory.VersionContains(*i.VersionContains)) + } + if i.VersionHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.VersionHasPrefix(*i.VersionHasPrefix)) + } + if i.VersionHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.VersionHasSuffix(*i.VersionHasSuffix)) + } + if i.VersionIsNil { + predicates = append(predicates, subcontrolhistory.VersionIsNil()) + } + if i.VersionNotNil { + predicates = append(predicates, subcontrolhistory.VersionNotNil()) + } + if i.VersionEqualFold != nil { + predicates = append(predicates, subcontrolhistory.VersionEqualFold(*i.VersionEqualFold)) + } + if i.VersionContainsFold != nil { + predicates = append(predicates, subcontrolhistory.VersionContainsFold(*i.VersionContainsFold)) + } + if i.SubcontrolNumber != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberEQ(*i.SubcontrolNumber)) + } + if i.SubcontrolNumberNEQ != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberNEQ(*i.SubcontrolNumberNEQ)) + } + if len(i.SubcontrolNumberIn) > 0 { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberIn(i.SubcontrolNumberIn...)) + } + if len(i.SubcontrolNumberNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberNotIn(i.SubcontrolNumberNotIn...)) + } + if i.SubcontrolNumberGT != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberGT(*i.SubcontrolNumberGT)) + } + if i.SubcontrolNumberGTE != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberGTE(*i.SubcontrolNumberGTE)) + } + if i.SubcontrolNumberLT != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberLT(*i.SubcontrolNumberLT)) + } + if i.SubcontrolNumberLTE != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberLTE(*i.SubcontrolNumberLTE)) + } + if i.SubcontrolNumberContains != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberContains(*i.SubcontrolNumberContains)) + } + if i.SubcontrolNumberHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberHasPrefix(*i.SubcontrolNumberHasPrefix)) + } + if i.SubcontrolNumberHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberHasSuffix(*i.SubcontrolNumberHasSuffix)) + } + if i.SubcontrolNumberIsNil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberIsNil()) + } + if i.SubcontrolNumberNotNil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberNotNil()) + } + if i.SubcontrolNumberEqualFold != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberEqualFold(*i.SubcontrolNumberEqualFold)) + } + if i.SubcontrolNumberContainsFold != nil { + predicates = append(predicates, subcontrolhistory.SubcontrolNumberContainsFold(*i.SubcontrolNumberContainsFold)) + } + if i.Family != nil { + predicates = append(predicates, subcontrolhistory.FamilyEQ(*i.Family)) + } + if i.FamilyNEQ != nil { + predicates = append(predicates, subcontrolhistory.FamilyNEQ(*i.FamilyNEQ)) + } + if len(i.FamilyIn) > 0 { + predicates = append(predicates, subcontrolhistory.FamilyIn(i.FamilyIn...)) + } + if len(i.FamilyNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.FamilyNotIn(i.FamilyNotIn...)) + } + if i.FamilyGT != nil { + predicates = append(predicates, subcontrolhistory.FamilyGT(*i.FamilyGT)) + } + if i.FamilyGTE != nil { + predicates = append(predicates, subcontrolhistory.FamilyGTE(*i.FamilyGTE)) + } + if i.FamilyLT != nil { + predicates = append(predicates, subcontrolhistory.FamilyLT(*i.FamilyLT)) + } + if i.FamilyLTE != nil { + predicates = append(predicates, subcontrolhistory.FamilyLTE(*i.FamilyLTE)) + } + if i.FamilyContains != nil { + predicates = append(predicates, subcontrolhistory.FamilyContains(*i.FamilyContains)) + } + if i.FamilyHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.FamilyHasPrefix(*i.FamilyHasPrefix)) + } + if i.FamilyHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.FamilyHasSuffix(*i.FamilyHasSuffix)) + } + if i.FamilyIsNil { + predicates = append(predicates, subcontrolhistory.FamilyIsNil()) + } + if i.FamilyNotNil { + predicates = append(predicates, subcontrolhistory.FamilyNotNil()) + } + if i.FamilyEqualFold != nil { + predicates = append(predicates, subcontrolhistory.FamilyEqualFold(*i.FamilyEqualFold)) + } + if i.FamilyContainsFold != nil { + predicates = append(predicates, subcontrolhistory.FamilyContainsFold(*i.FamilyContainsFold)) + } + if i.Class != nil { + predicates = append(predicates, subcontrolhistory.ClassEQ(*i.Class)) + } + if i.ClassNEQ != nil { + predicates = append(predicates, subcontrolhistory.ClassNEQ(*i.ClassNEQ)) + } + if len(i.ClassIn) > 0 { + predicates = append(predicates, subcontrolhistory.ClassIn(i.ClassIn...)) + } + if len(i.ClassNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.ClassNotIn(i.ClassNotIn...)) + } + if i.ClassGT != nil { + predicates = append(predicates, subcontrolhistory.ClassGT(*i.ClassGT)) + } + if i.ClassGTE != nil { + predicates = append(predicates, subcontrolhistory.ClassGTE(*i.ClassGTE)) + } + if i.ClassLT != nil { + predicates = append(predicates, subcontrolhistory.ClassLT(*i.ClassLT)) } + if i.ClassLTE != nil { + predicates = append(predicates, subcontrolhistory.ClassLTE(*i.ClassLTE)) + } + if i.ClassContains != nil { + predicates = append(predicates, subcontrolhistory.ClassContains(*i.ClassContains)) + } + if i.ClassHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.ClassHasPrefix(*i.ClassHasPrefix)) + } + if i.ClassHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.ClassHasSuffix(*i.ClassHasSuffix)) + } + if i.ClassIsNil { + predicates = append(predicates, subcontrolhistory.ClassIsNil()) + } + if i.ClassNotNil { + predicates = append(predicates, subcontrolhistory.ClassNotNil()) + } + if i.ClassEqualFold != nil { + predicates = append(predicates, subcontrolhistory.ClassEqualFold(*i.ClassEqualFold)) + } + if i.ClassContainsFold != nil { + predicates = append(predicates, subcontrolhistory.ClassContainsFold(*i.ClassContainsFold)) + } + if i.Source != nil { + predicates = append(predicates, subcontrolhistory.SourceEQ(*i.Source)) + } + if i.SourceNEQ != nil { + predicates = append(predicates, subcontrolhistory.SourceNEQ(*i.SourceNEQ)) + } + if len(i.SourceIn) > 0 { + predicates = append(predicates, subcontrolhistory.SourceIn(i.SourceIn...)) + } + if len(i.SourceNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.SourceNotIn(i.SourceNotIn...)) + } + if i.SourceGT != nil { + predicates = append(predicates, subcontrolhistory.SourceGT(*i.SourceGT)) + } + if i.SourceGTE != nil { + predicates = append(predicates, subcontrolhistory.SourceGTE(*i.SourceGTE)) + } + if i.SourceLT != nil { + predicates = append(predicates, subcontrolhistory.SourceLT(*i.SourceLT)) + } + if i.SourceLTE != nil { + predicates = append(predicates, subcontrolhistory.SourceLTE(*i.SourceLTE)) + } + if i.SourceContains != nil { + predicates = append(predicates, subcontrolhistory.SourceContains(*i.SourceContains)) + } + if i.SourceHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.SourceHasPrefix(*i.SourceHasPrefix)) + } + if i.SourceHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.SourceHasSuffix(*i.SourceHasSuffix)) + } + if i.SourceIsNil { + predicates = append(predicates, subcontrolhistory.SourceIsNil()) + } + if i.SourceNotNil { + predicates = append(predicates, subcontrolhistory.SourceNotNil()) + } + if i.SourceEqualFold != nil { + predicates = append(predicates, subcontrolhistory.SourceEqualFold(*i.SourceEqualFold)) + } + if i.SourceContainsFold != nil { + predicates = append(predicates, subcontrolhistory.SourceContainsFold(*i.SourceContainsFold)) + } + if i.MappedFrameworks != nil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksEQ(*i.MappedFrameworks)) + } + if i.MappedFrameworksNEQ != nil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksNEQ(*i.MappedFrameworksNEQ)) + } + if len(i.MappedFrameworksIn) > 0 { + predicates = append(predicates, subcontrolhistory.MappedFrameworksIn(i.MappedFrameworksIn...)) + } + if len(i.MappedFrameworksNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.MappedFrameworksNotIn(i.MappedFrameworksNotIn...)) + } + if i.MappedFrameworksGT != nil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksGT(*i.MappedFrameworksGT)) + } + if i.MappedFrameworksGTE != nil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksGTE(*i.MappedFrameworksGTE)) + } + if i.MappedFrameworksLT != nil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksLT(*i.MappedFrameworksLT)) + } + if i.MappedFrameworksLTE != nil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksLTE(*i.MappedFrameworksLTE)) + } + if i.MappedFrameworksContains != nil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksContains(*i.MappedFrameworksContains)) + } + if i.MappedFrameworksHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksHasPrefix(*i.MappedFrameworksHasPrefix)) + } + if i.MappedFrameworksHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksHasSuffix(*i.MappedFrameworksHasSuffix)) + } + if i.MappedFrameworksIsNil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksIsNil()) + } + if i.MappedFrameworksNotNil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksNotNil()) + } + if i.MappedFrameworksEqualFold != nil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksEqualFold(*i.MappedFrameworksEqualFold)) + } + if i.MappedFrameworksContainsFold != nil { + predicates = append(predicates, subcontrolhistory.MappedFrameworksContainsFold(*i.MappedFrameworksContainsFold)) + } + if i.ImplementationEvidence != nil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceEQ(*i.ImplementationEvidence)) + } + if i.ImplementationEvidenceNEQ != nil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceNEQ(*i.ImplementationEvidenceNEQ)) + } + if len(i.ImplementationEvidenceIn) > 0 { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceIn(i.ImplementationEvidenceIn...)) + } + if len(i.ImplementationEvidenceNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceNotIn(i.ImplementationEvidenceNotIn...)) + } + if i.ImplementationEvidenceGT != nil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceGT(*i.ImplementationEvidenceGT)) + } + if i.ImplementationEvidenceGTE != nil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceGTE(*i.ImplementationEvidenceGTE)) + } + if i.ImplementationEvidenceLT != nil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceLT(*i.ImplementationEvidenceLT)) + } + if i.ImplementationEvidenceLTE != nil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceLTE(*i.ImplementationEvidenceLTE)) + } + if i.ImplementationEvidenceContains != nil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceContains(*i.ImplementationEvidenceContains)) + } + if i.ImplementationEvidenceHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceHasPrefix(*i.ImplementationEvidenceHasPrefix)) + } + if i.ImplementationEvidenceHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceHasSuffix(*i.ImplementationEvidenceHasSuffix)) + } + if i.ImplementationEvidenceIsNil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceIsNil()) + } + if i.ImplementationEvidenceNotNil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceNotNil()) + } + if i.ImplementationEvidenceEqualFold != nil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceEqualFold(*i.ImplementationEvidenceEqualFold)) + } + if i.ImplementationEvidenceContainsFold != nil { + predicates = append(predicates, subcontrolhistory.ImplementationEvidenceContainsFold(*i.ImplementationEvidenceContainsFold)) + } + if i.ImplementationStatus != nil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusEQ(*i.ImplementationStatus)) + } + if i.ImplementationStatusNEQ != nil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusNEQ(*i.ImplementationStatusNEQ)) + } + if len(i.ImplementationStatusIn) > 0 { + predicates = append(predicates, subcontrolhistory.ImplementationStatusIn(i.ImplementationStatusIn...)) + } + if len(i.ImplementationStatusNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.ImplementationStatusNotIn(i.ImplementationStatusNotIn...)) + } + if i.ImplementationStatusGT != nil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusGT(*i.ImplementationStatusGT)) + } + if i.ImplementationStatusGTE != nil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusGTE(*i.ImplementationStatusGTE)) + } + if i.ImplementationStatusLT != nil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusLT(*i.ImplementationStatusLT)) + } + if i.ImplementationStatusLTE != nil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusLTE(*i.ImplementationStatusLTE)) + } + if i.ImplementationStatusContains != nil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusContains(*i.ImplementationStatusContains)) + } + if i.ImplementationStatusHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusHasPrefix(*i.ImplementationStatusHasPrefix)) + } + if i.ImplementationStatusHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusHasSuffix(*i.ImplementationStatusHasSuffix)) + } + if i.ImplementationStatusIsNil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusIsNil()) + } + if i.ImplementationStatusNotNil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusNotNil()) + } + if i.ImplementationStatusEqualFold != nil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusEqualFold(*i.ImplementationStatusEqualFold)) + } + if i.ImplementationStatusContainsFold != nil { + predicates = append(predicates, subcontrolhistory.ImplementationStatusContainsFold(*i.ImplementationStatusContainsFold)) + } + if i.ImplementationDate != nil { + predicates = append(predicates, subcontrolhistory.ImplementationDateEQ(*i.ImplementationDate)) + } + if i.ImplementationDateNEQ != nil { + predicates = append(predicates, subcontrolhistory.ImplementationDateNEQ(*i.ImplementationDateNEQ)) + } + if len(i.ImplementationDateIn) > 0 { + predicates = append(predicates, subcontrolhistory.ImplementationDateIn(i.ImplementationDateIn...)) + } + if len(i.ImplementationDateNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.ImplementationDateNotIn(i.ImplementationDateNotIn...)) + } + if i.ImplementationDateGT != nil { + predicates = append(predicates, subcontrolhistory.ImplementationDateGT(*i.ImplementationDateGT)) + } + if i.ImplementationDateGTE != nil { + predicates = append(predicates, subcontrolhistory.ImplementationDateGTE(*i.ImplementationDateGTE)) + } + if i.ImplementationDateLT != nil { + predicates = append(predicates, subcontrolhistory.ImplementationDateLT(*i.ImplementationDateLT)) + } + if i.ImplementationDateLTE != nil { + predicates = append(predicates, subcontrolhistory.ImplementationDateLTE(*i.ImplementationDateLTE)) + } + if i.ImplementationDateIsNil { + predicates = append(predicates, subcontrolhistory.ImplementationDateIsNil()) + } + if i.ImplementationDateNotNil { + predicates = append(predicates, subcontrolhistory.ImplementationDateNotNil()) + } + if i.ImplementationVerification != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationEQ(*i.ImplementationVerification)) + } + if i.ImplementationVerificationNEQ != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationNEQ(*i.ImplementationVerificationNEQ)) + } + if len(i.ImplementationVerificationIn) > 0 { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationIn(i.ImplementationVerificationIn...)) + } + if len(i.ImplementationVerificationNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationNotIn(i.ImplementationVerificationNotIn...)) + } + if i.ImplementationVerificationGT != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationGT(*i.ImplementationVerificationGT)) + } + if i.ImplementationVerificationGTE != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationGTE(*i.ImplementationVerificationGTE)) + } + if i.ImplementationVerificationLT != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationLT(*i.ImplementationVerificationLT)) + } + if i.ImplementationVerificationLTE != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationLTE(*i.ImplementationVerificationLTE)) + } + if i.ImplementationVerificationContains != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationContains(*i.ImplementationVerificationContains)) + } + if i.ImplementationVerificationHasPrefix != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationHasPrefix(*i.ImplementationVerificationHasPrefix)) + } + if i.ImplementationVerificationHasSuffix != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationHasSuffix(*i.ImplementationVerificationHasSuffix)) + } + if i.ImplementationVerificationIsNil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationIsNil()) + } + if i.ImplementationVerificationNotNil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationNotNil()) + } + if i.ImplementationVerificationEqualFold != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationEqualFold(*i.ImplementationVerificationEqualFold)) + } + if i.ImplementationVerificationContainsFold != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationContainsFold(*i.ImplementationVerificationContainsFold)) + } + if i.ImplementationVerificationDate != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationDateEQ(*i.ImplementationVerificationDate)) + } + if i.ImplementationVerificationDateNEQ != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationDateNEQ(*i.ImplementationVerificationDateNEQ)) + } + if len(i.ImplementationVerificationDateIn) > 0 { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationDateIn(i.ImplementationVerificationDateIn...)) + } + if len(i.ImplementationVerificationDateNotIn) > 0 { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationDateNotIn(i.ImplementationVerificationDateNotIn...)) + } + if i.ImplementationVerificationDateGT != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationDateGT(*i.ImplementationVerificationDateGT)) + } + if i.ImplementationVerificationDateGTE != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationDateGTE(*i.ImplementationVerificationDateGTE)) + } + if i.ImplementationVerificationDateLT != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationDateLT(*i.ImplementationVerificationDateLT)) + } + if i.ImplementationVerificationDateLTE != nil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationDateLTE(*i.ImplementationVerificationDateLTE)) + } + if i.ImplementationVerificationDateIsNil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationDateIsNil()) + } + if i.ImplementationVerificationDateNotNil { + predicates = append(predicates, subcontrolhistory.ImplementationVerificationDateNotNil()) + } + switch len(predicates) { case 0: - return nil, ErrEmptyPersonalAccessTokenWhereInput + return nil, ErrEmptySubcontrolHistoryWhereInput case 1: return predicates[0], nil default: - return personalaccesstoken.And(predicates...), nil + return subcontrolhistory.And(predicates...), nil } } @@ -38364,6 +57550,14 @@ type UserWhereInput struct { HasEvents *bool `json:"hasEvents,omitempty"` HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // "actionplans" edge predicates. + HasActionplans *bool `json:"hasActionplans,omitempty"` + HasActionplansWith []*ActionPlanWhereInput `json:"hasActionplansWith,omitempty"` + + // "subcontrols" edge predicates. + HasSubcontrols *bool `json:"hasSubcontrols,omitempty"` + HasSubcontrolsWith []*SubcontrolWhereInput `json:"hasSubcontrolsWith,omitempty"` + // "group_memberships" edge predicates. HasGroupMemberships *bool `json:"hasGroupMemberships,omitempty"` HasGroupMembershipsWith []*GroupMembershipWhereInput `json:"hasGroupMembershipsWith,omitempty"` @@ -39327,6 +58521,42 @@ func (i *UserWhereInput) P() (predicate.User, error) { } predicates = append(predicates, user.HasEventsWith(with...)) } + if i.HasActionplans != nil { + p := user.HasActionplans() + if !*i.HasActionplans { + p = user.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasActionplansWith) > 0 { + with := make([]predicate.ActionPlan, 0, len(i.HasActionplansWith)) + for _, w := range i.HasActionplansWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasActionplansWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, user.HasActionplansWith(with...)) + } + if i.HasSubcontrols != nil { + p := user.HasSubcontrols() + if !*i.HasSubcontrols { + p = user.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasSubcontrolsWith) > 0 { + with := make([]predicate.Subcontrol, 0, len(i.HasSubcontrolsWith)) + for _, w := range i.HasSubcontrolsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasSubcontrolsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, user.HasSubcontrolsWith(with...)) + } if i.HasGroupMemberships != nil { p := user.HasGroupMemberships() if !*i.HasGroupMemberships { diff --git a/internal/ent/generated/history_client.go b/internal/ent/generated/history_client.go index 4aafe05b..e9d459ba 100644 --- a/internal/ent/generated/history_client.go +++ b/internal/ent/generated/history_client.go @@ -8,9 +8,18 @@ import "github.com/theopenlane/entx/history" // withHistory adds the history hooks to the appropriate schemas - generated by entx.history func (c *Client) WithHistory() { + for _, hook := range history.HistoryHooks[*ActionPlanMutation]() { + c.ActionPlan.Use(hook) + } for _, hook := range history.HistoryHooks[*ContactMutation]() { c.Contact.Use(hook) } + for _, hook := range history.HistoryHooks[*ControlMutation]() { + c.Control.Use(hook) + } + for _, hook := range history.HistoryHooks[*ControlObjectiveMutation]() { + c.ControlObjective.Use(hook) + } for _, hook := range history.HistoryHooks[*DocumentDataMutation]() { c.DocumentData.Use(hook) } @@ -53,6 +62,12 @@ func (c *Client) WithHistory() { for _, hook := range history.HistoryHooks[*IntegrationMutation]() { c.Integration.Use(hook) } + for _, hook := range history.HistoryHooks[*InternalPolicyMutation]() { + c.InternalPolicy.Use(hook) + } + for _, hook := range history.HistoryHooks[*NarrativeMutation]() { + c.Narrative.Use(hook) + } for _, hook := range history.HistoryHooks[*NoteMutation]() { c.Note.Use(hook) } @@ -68,6 +83,18 @@ func (c *Client) WithHistory() { for _, hook := range history.HistoryHooks[*OrganizationSettingMutation]() { c.OrganizationSetting.Use(hook) } + for _, hook := range history.HistoryHooks[*ProcedureMutation]() { + c.Procedure.Use(hook) + } + for _, hook := range history.HistoryHooks[*RiskMutation]() { + c.Risk.Use(hook) + } + for _, hook := range history.HistoryHooks[*StandardMutation]() { + c.Standard.Use(hook) + } + for _, hook := range history.HistoryHooks[*SubcontrolMutation]() { + c.Subcontrol.Use(hook) + } for _, hook := range history.HistoryHooks[*TemplateMutation]() { c.Template.Use(hook) } diff --git a/internal/ent/generated/history_from_mutation.go b/internal/ent/generated/history_from_mutation.go index 562b648e..c4e89e1e 100644 --- a/internal/ent/generated/history_from_mutation.go +++ b/internal/ent/generated/history_from_mutation.go @@ -30,7 +30,7 @@ func EntOpToHistoryOp(op ent.Op) history.OpType { } } -func (m *ContactMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *ActionPlanMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -38,7 +38,7 @@ func (m *ContactMutation) CreateHistoryFromCreate(ctx context.Context) error { return idNotFoundError } - create := client.ContactHistory.Create() + create := client.ActionPlanHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -61,10 +61,6 @@ func (m *ContactMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetUpdatedBy(updatedBy) } - if mappingID, exists := m.MappingID(); exists { - create = create.SetMappingID(mappingID) - } - if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } @@ -73,40 +69,40 @@ func (m *ContactMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetDeletedBy(deletedBy) } - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) } - if fullName, exists := m.FullName(); exists { - create = create.SetFullName(fullName) + if name, exists := m.Name(); exists { + create = create.SetName(name) } - if title, exists := m.Title(); exists { - create = create.SetTitle(title) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } - if company, exists := m.Company(); exists { - create = create.SetCompany(company) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } - if email, exists := m.Email(); exists { - create = create.SetEmail(email) + if dueDate, exists := m.DueDate(); exists { + create = create.SetDueDate(dueDate) } - if phoneNumber, exists := m.PhoneNumber(); exists { - create = create.SetPhoneNumber(phoneNumber) + if priority, exists := m.Priority(); exists { + create = create.SetPriority(priority) } - if address, exists := m.Address(); exists { - create = create.SetAddress(address) + if source, exists := m.Source(); exists { + create = create.SetSource(source) } - if status, exists := m.Status(); exists { - create = create.SetStatus(status) + if details, exists := m.Details(); exists { + create = create.SetDetails(details) } _, err := create.Save(ctx) @@ -114,7 +110,7 @@ func (m *ContactMutation) CreateHistoryFromCreate(ctx context.Context) error { return err } -func (m *ContactMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *ActionPlanMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -127,12 +123,12 @@ func (m *ContactMutation) CreateHistoryFromUpdate(ctx context.Context) error { } for _, id := range ids { - contact, err := client.Contact.Get(ctx, id) + actionplan, err := client.ActionPlan.Get(ctx, id) if err != nil { return err } - create := client.ContactHistory.Create() + create := client.ActionPlanHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -142,97 +138,91 @@ func (m *ContactMutation) CreateHistoryFromUpdate(ctx context.Context) error { if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(contact.CreatedAt) + create = create.SetCreatedAt(actionplan.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(contact.UpdatedAt) + create = create.SetUpdatedAt(actionplan.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(contact.CreatedBy) + create = create.SetCreatedBy(actionplan.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(contact.UpdatedBy) - } - - if mappingID, exists := m.MappingID(); exists { - create = create.SetMappingID(mappingID) - } else { - create = create.SetMappingID(contact.MappingID) + create = create.SetUpdatedBy(actionplan.UpdatedBy) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(contact.DeletedAt) + create = create.SetDeletedAt(actionplan.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(contact.DeletedBy) + create = create.SetDeletedBy(actionplan.DeletedBy) } - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) } else { - create = create.SetTags(contact.Tags) + create = create.SetMappingID(actionplan.MappingID) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) } else { - create = create.SetOwnerID(contact.OwnerID) + create = create.SetTags(actionplan.Tags) } - if fullName, exists := m.FullName(); exists { - create = create.SetFullName(fullName) + if name, exists := m.Name(); exists { + create = create.SetName(name) } else { - create = create.SetFullName(contact.FullName) + create = create.SetName(actionplan.Name) } - if title, exists := m.Title(); exists { - create = create.SetTitle(title) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } else { - create = create.SetTitle(contact.Title) + create = create.SetDescription(actionplan.Description) } - if company, exists := m.Company(); exists { - create = create.SetCompany(company) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } else { - create = create.SetCompany(contact.Company) + create = create.SetStatus(actionplan.Status) } - if email, exists := m.Email(); exists { - create = create.SetEmail(email) + if dueDate, exists := m.DueDate(); exists { + create = create.SetDueDate(dueDate) } else { - create = create.SetEmail(contact.Email) + create = create.SetDueDate(actionplan.DueDate) } - if phoneNumber, exists := m.PhoneNumber(); exists { - create = create.SetPhoneNumber(phoneNumber) + if priority, exists := m.Priority(); exists { + create = create.SetPriority(priority) } else { - create = create.SetPhoneNumber(contact.PhoneNumber) + create = create.SetPriority(actionplan.Priority) } - if address, exists := m.Address(); exists { - create = create.SetAddress(address) + if source, exists := m.Source(); exists { + create = create.SetSource(source) } else { - create = create.SetAddress(contact.Address) + create = create.SetSource(actionplan.Source) } - if status, exists := m.Status(); exists { - create = create.SetStatus(status) + if details, exists := m.Details(); exists { + create = create.SetDetails(details) } else { - create = create.SetStatus(contact.Status) + create = create.SetDetails(actionplan.Details) } if _, err := create.Save(ctx); err != nil { @@ -243,7 +233,7 @@ func (m *ContactMutation) CreateHistoryFromUpdate(ctx context.Context) error { return nil } -func (m *ContactMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *ActionPlanMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -256,33 +246,32 @@ func (m *ContactMutation) CreateHistoryFromDelete(ctx context.Context) error { } for _, id := range ids { - contact, err := client.Contact.Get(ctx, id) + actionplan, err := client.ActionPlan.Get(ctx, id) if err != nil { return err } - create := client.ContactHistory.Create() + create := client.ActionPlanHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(contact.CreatedAt). - SetUpdatedAt(contact.UpdatedAt). - SetCreatedBy(contact.CreatedBy). - SetUpdatedBy(contact.UpdatedBy). - SetMappingID(contact.MappingID). - SetDeletedAt(contact.DeletedAt). - SetDeletedBy(contact.DeletedBy). - SetTags(contact.Tags). - SetOwnerID(contact.OwnerID). - SetFullName(contact.FullName). - SetTitle(contact.Title). - SetCompany(contact.Company). - SetEmail(contact.Email). - SetPhoneNumber(contact.PhoneNumber). - SetAddress(contact.Address). - SetStatus(contact.Status). + SetCreatedAt(actionplan.CreatedAt). + SetUpdatedAt(actionplan.UpdatedAt). + SetCreatedBy(actionplan.CreatedBy). + SetUpdatedBy(actionplan.UpdatedBy). + SetDeletedAt(actionplan.DeletedAt). + SetDeletedBy(actionplan.DeletedBy). + SetMappingID(actionplan.MappingID). + SetTags(actionplan.Tags). + SetName(actionplan.Name). + SetDescription(actionplan.Description). + SetStatus(actionplan.Status). + SetDueDate(actionplan.DueDate). + SetPriority(actionplan.Priority). + SetSource(actionplan.Source). + SetDetails(actionplan.Details). Save(ctx) if err != nil { return err @@ -292,7 +281,7 @@ func (m *ContactMutation) CreateHistoryFromDelete(ctx context.Context) error { return nil } -func (m *DocumentDataMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *ContactMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -300,7 +289,7 @@ func (m *DocumentDataMutation) CreateHistoryFromCreate(ctx context.Context) erro return idNotFoundError } - create := client.DocumentDataHistory.Create() + create := client.ContactHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -327,10 +316,6 @@ func (m *DocumentDataMutation) CreateHistoryFromCreate(ctx context.Context) erro create = create.SetMappingID(mappingID) } - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) - } - if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } @@ -339,16 +324,40 @@ func (m *DocumentDataMutation) CreateHistoryFromCreate(ctx context.Context) erro create = create.SetDeletedBy(deletedBy) } + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } + if ownerID, exists := m.OwnerID(); exists { create = create.SetOwnerID(ownerID) } - if templateID, exists := m.TemplateID(); exists { - create = create.SetTemplateID(templateID) + if fullName, exists := m.FullName(); exists { + create = create.SetFullName(fullName) } - if data, exists := m.Data(); exists { - create = create.SetData(data) + if title, exists := m.Title(); exists { + create = create.SetTitle(title) + } + + if company, exists := m.Company(); exists { + create = create.SetCompany(company) + } + + if email, exists := m.Email(); exists { + create = create.SetEmail(email) + } + + if phoneNumber, exists := m.PhoneNumber(); exists { + create = create.SetPhoneNumber(phoneNumber) + } + + if address, exists := m.Address(); exists { + create = create.SetAddress(address) + } + + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } _, err := create.Save(ctx) @@ -356,7 +365,7 @@ func (m *DocumentDataMutation) CreateHistoryFromCreate(ctx context.Context) erro return err } -func (m *DocumentDataMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *ContactMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -369,12 +378,12 @@ func (m *DocumentDataMutation) CreateHistoryFromUpdate(ctx context.Context) erro } for _, id := range ids { - documentdata, err := client.DocumentData.Get(ctx, id) + contact, err := client.Contact.Get(ctx, id) if err != nil { return err } - create := client.DocumentDataHistory.Create() + create := client.ContactHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -384,67 +393,97 @@ func (m *DocumentDataMutation) CreateHistoryFromUpdate(ctx context.Context) erro if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(documentdata.CreatedAt) + create = create.SetCreatedAt(contact.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(documentdata.UpdatedAt) + create = create.SetUpdatedAt(contact.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(documentdata.CreatedBy) + create = create.SetCreatedBy(contact.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(documentdata.UpdatedBy) + create = create.SetUpdatedBy(contact.UpdatedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(documentdata.MappingID) - } - - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) - } else { - create = create.SetTags(documentdata.Tags) + create = create.SetMappingID(contact.MappingID) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(documentdata.DeletedAt) + create = create.SetDeletedAt(contact.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(documentdata.DeletedBy) + create = create.SetDeletedBy(contact.DeletedBy) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(contact.Tags) } if ownerID, exists := m.OwnerID(); exists { create = create.SetOwnerID(ownerID) } else { - create = create.SetOwnerID(documentdata.OwnerID) + create = create.SetOwnerID(contact.OwnerID) } - if templateID, exists := m.TemplateID(); exists { - create = create.SetTemplateID(templateID) + if fullName, exists := m.FullName(); exists { + create = create.SetFullName(fullName) } else { - create = create.SetTemplateID(documentdata.TemplateID) + create = create.SetFullName(contact.FullName) } - if data, exists := m.Data(); exists { - create = create.SetData(data) + if title, exists := m.Title(); exists { + create = create.SetTitle(title) } else { - create = create.SetData(documentdata.Data) + create = create.SetTitle(contact.Title) + } + + if company, exists := m.Company(); exists { + create = create.SetCompany(company) + } else { + create = create.SetCompany(contact.Company) + } + + if email, exists := m.Email(); exists { + create = create.SetEmail(email) + } else { + create = create.SetEmail(contact.Email) + } + + if phoneNumber, exists := m.PhoneNumber(); exists { + create = create.SetPhoneNumber(phoneNumber) + } else { + create = create.SetPhoneNumber(contact.PhoneNumber) + } + + if address, exists := m.Address(); exists { + create = create.SetAddress(address) + } else { + create = create.SetAddress(contact.Address) + } + + if status, exists := m.Status(); exists { + create = create.SetStatus(status) + } else { + create = create.SetStatus(contact.Status) } if _, err := create.Save(ctx); err != nil { @@ -455,7 +494,7 @@ func (m *DocumentDataMutation) CreateHistoryFromUpdate(ctx context.Context) erro return nil } -func (m *DocumentDataMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *ContactMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -468,28 +507,33 @@ func (m *DocumentDataMutation) CreateHistoryFromDelete(ctx context.Context) erro } for _, id := range ids { - documentdata, err := client.DocumentData.Get(ctx, id) + contact, err := client.Contact.Get(ctx, id) if err != nil { return err } - create := client.DocumentDataHistory.Create() + create := client.ContactHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(documentdata.CreatedAt). - SetUpdatedAt(documentdata.UpdatedAt). - SetCreatedBy(documentdata.CreatedBy). - SetUpdatedBy(documentdata.UpdatedBy). - SetMappingID(documentdata.MappingID). - SetTags(documentdata.Tags). - SetDeletedAt(documentdata.DeletedAt). - SetDeletedBy(documentdata.DeletedBy). - SetOwnerID(documentdata.OwnerID). - SetTemplateID(documentdata.TemplateID). - SetData(documentdata.Data). + SetCreatedAt(contact.CreatedAt). + SetUpdatedAt(contact.UpdatedAt). + SetCreatedBy(contact.CreatedBy). + SetUpdatedBy(contact.UpdatedBy). + SetMappingID(contact.MappingID). + SetDeletedAt(contact.DeletedAt). + SetDeletedBy(contact.DeletedBy). + SetTags(contact.Tags). + SetOwnerID(contact.OwnerID). + SetFullName(contact.FullName). + SetTitle(contact.Title). + SetCompany(contact.Company). + SetEmail(contact.Email). + SetPhoneNumber(contact.PhoneNumber). + SetAddress(contact.Address). + SetStatus(contact.Status). Save(ctx) if err != nil { return err @@ -499,7 +543,7 @@ func (m *DocumentDataMutation) CreateHistoryFromDelete(ctx context.Context) erro return nil } -func (m *EntitlementMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *ControlMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -507,7 +551,7 @@ func (m *EntitlementMutation) CreateHistoryFromCreate(ctx context.Context) error return idNotFoundError } - create := client.EntitlementHistory.Create() + create := client.ControlHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -530,6 +574,14 @@ func (m *EntitlementMutation) CreateHistoryFromCreate(ctx context.Context) error create = create.SetUpdatedBy(updatedBy) } + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } @@ -538,44 +590,52 @@ func (m *EntitlementMutation) CreateHistoryFromCreate(ctx context.Context) error create = create.SetTags(tags) } - if deletedAt, exists := m.DeletedAt(); exists { - create = create.SetDeletedAt(deletedAt) + if name, exists := m.Name(); exists { + create = create.SetName(name) } - if deletedBy, exists := m.DeletedBy(); exists { - create = create.SetDeletedBy(deletedBy) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } - if planID, exists := m.PlanID(); exists { - create = create.SetPlanID(planID) + if controlType, exists := m.ControlType(); exists { + create = create.SetControlType(controlType) } - if organizationID, exists := m.OrganizationID(); exists { - create = create.SetOrganizationID(organizationID) + if version, exists := m.Version(); exists { + create = create.SetVersion(version) } - if externalCustomerID, exists := m.ExternalCustomerID(); exists { - create = create.SetExternalCustomerID(externalCustomerID) + if controlNumber, exists := m.ControlNumber(); exists { + create = create.SetControlNumber(controlNumber) } - if externalSubscriptionID, exists := m.ExternalSubscriptionID(); exists { - create = create.SetExternalSubscriptionID(externalSubscriptionID) + if family, exists := m.Family(); exists { + create = create.SetFamily(family) } - if expires, exists := m.Expires(); exists { - create = create.SetExpires(expires) + if class, exists := m.Class(); exists { + create = create.SetClass(class) } - if expiresAt, exists := m.ExpiresAt(); exists { - create = create.SetNillableExpiresAt(&expiresAt) + if source, exists := m.Source(); exists { + create = create.SetSource(source) } - if cancelled, exists := m.Cancelled(); exists { - create = create.SetCancelled(cancelled) + if satisfies, exists := m.Satisfies(); exists { + create = create.SetSatisfies(satisfies) + } + + if mappedFrameworks, exists := m.MappedFrameworks(); exists { + create = create.SetMappedFrameworks(mappedFrameworks) + } + + if details, exists := m.Details(); exists { + create = create.SetDetails(details) } _, err := create.Save(ctx) @@ -583,7 +643,7 @@ func (m *EntitlementMutation) CreateHistoryFromCreate(ctx context.Context) error return err } -func (m *EntitlementMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *ControlMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -596,12 +656,12 @@ func (m *EntitlementMutation) CreateHistoryFromUpdate(ctx context.Context) error } for _, id := range ids { - entitlement, err := client.Entitlement.Get(ctx, id) + control, err := client.Control.Get(ctx, id) if err != nil { return err } - create := client.EntitlementHistory.Create() + create := client.ControlHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -611,97 +671,121 @@ func (m *EntitlementMutation) CreateHistoryFromUpdate(ctx context.Context) error if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(entitlement.CreatedAt) + create = create.SetCreatedAt(control.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(entitlement.UpdatedAt) + create = create.SetUpdatedAt(control.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(entitlement.CreatedBy) + create = create.SetCreatedBy(control.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(entitlement.UpdatedBy) + create = create.SetUpdatedBy(control.UpdatedBy) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(control.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(control.DeletedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(entitlement.MappingID) + create = create.SetMappingID(control.MappingID) } if tags, exists := m.Tags(); exists { create = create.SetTags(tags) } else { - create = create.SetTags(entitlement.Tags) + create = create.SetTags(control.Tags) } - if deletedAt, exists := m.DeletedAt(); exists { - create = create.SetDeletedAt(deletedAt) + if name, exists := m.Name(); exists { + create = create.SetName(name) } else { - create = create.SetDeletedAt(entitlement.DeletedAt) + create = create.SetName(control.Name) } - if deletedBy, exists := m.DeletedBy(); exists { - create = create.SetDeletedBy(deletedBy) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } else { - create = create.SetDeletedBy(entitlement.DeletedBy) + create = create.SetDescription(control.Description) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } else { - create = create.SetOwnerID(entitlement.OwnerID) + create = create.SetStatus(control.Status) } - if planID, exists := m.PlanID(); exists { - create = create.SetPlanID(planID) + if controlType, exists := m.ControlType(); exists { + create = create.SetControlType(controlType) } else { - create = create.SetPlanID(entitlement.PlanID) + create = create.SetControlType(control.ControlType) } - if organizationID, exists := m.OrganizationID(); exists { - create = create.SetOrganizationID(organizationID) + if version, exists := m.Version(); exists { + create = create.SetVersion(version) } else { - create = create.SetOrganizationID(entitlement.OrganizationID) + create = create.SetVersion(control.Version) } - if externalCustomerID, exists := m.ExternalCustomerID(); exists { - create = create.SetExternalCustomerID(externalCustomerID) + if controlNumber, exists := m.ControlNumber(); exists { + create = create.SetControlNumber(controlNumber) } else { - create = create.SetExternalCustomerID(entitlement.ExternalCustomerID) + create = create.SetControlNumber(control.ControlNumber) } - if externalSubscriptionID, exists := m.ExternalSubscriptionID(); exists { - create = create.SetExternalSubscriptionID(externalSubscriptionID) + if family, exists := m.Family(); exists { + create = create.SetFamily(family) } else { - create = create.SetExternalSubscriptionID(entitlement.ExternalSubscriptionID) + create = create.SetFamily(control.Family) } - if expires, exists := m.Expires(); exists { - create = create.SetExpires(expires) + if class, exists := m.Class(); exists { + create = create.SetClass(class) } else { - create = create.SetExpires(entitlement.Expires) + create = create.SetClass(control.Class) } - if expiresAt, exists := m.ExpiresAt(); exists { - create = create.SetNillableExpiresAt(&expiresAt) + if source, exists := m.Source(); exists { + create = create.SetSource(source) } else { - create = create.SetNillableExpiresAt(entitlement.ExpiresAt) + create = create.SetSource(control.Source) } - if cancelled, exists := m.Cancelled(); exists { - create = create.SetCancelled(cancelled) + if satisfies, exists := m.Satisfies(); exists { + create = create.SetSatisfies(satisfies) } else { - create = create.SetCancelled(entitlement.Cancelled) + create = create.SetSatisfies(control.Satisfies) + } + + if mappedFrameworks, exists := m.MappedFrameworks(); exists { + create = create.SetMappedFrameworks(mappedFrameworks) + } else { + create = create.SetMappedFrameworks(control.MappedFrameworks) + } + + if details, exists := m.Details(); exists { + create = create.SetDetails(details) + } else { + create = create.SetDetails(control.Details) } if _, err := create.Save(ctx); err != nil { @@ -712,7 +796,7 @@ func (m *EntitlementMutation) CreateHistoryFromUpdate(ctx context.Context) error return nil } -func (m *EntitlementMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *ControlMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -725,33 +809,37 @@ func (m *EntitlementMutation) CreateHistoryFromDelete(ctx context.Context) error } for _, id := range ids { - entitlement, err := client.Entitlement.Get(ctx, id) + control, err := client.Control.Get(ctx, id) if err != nil { return err } - create := client.EntitlementHistory.Create() + create := client.ControlHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(entitlement.CreatedAt). - SetUpdatedAt(entitlement.UpdatedAt). - SetCreatedBy(entitlement.CreatedBy). - SetUpdatedBy(entitlement.UpdatedBy). - SetMappingID(entitlement.MappingID). - SetTags(entitlement.Tags). - SetDeletedAt(entitlement.DeletedAt). - SetDeletedBy(entitlement.DeletedBy). - SetOwnerID(entitlement.OwnerID). - SetPlanID(entitlement.PlanID). - SetOrganizationID(entitlement.OrganizationID). - SetExternalCustomerID(entitlement.ExternalCustomerID). - SetExternalSubscriptionID(entitlement.ExternalSubscriptionID). - SetExpires(entitlement.Expires). - SetNillableExpiresAt(entitlement.ExpiresAt). - SetCancelled(entitlement.Cancelled). + SetCreatedAt(control.CreatedAt). + SetUpdatedAt(control.UpdatedAt). + SetCreatedBy(control.CreatedBy). + SetUpdatedBy(control.UpdatedBy). + SetDeletedAt(control.DeletedAt). + SetDeletedBy(control.DeletedBy). + SetMappingID(control.MappingID). + SetTags(control.Tags). + SetName(control.Name). + SetDescription(control.Description). + SetStatus(control.Status). + SetControlType(control.ControlType). + SetVersion(control.Version). + SetControlNumber(control.ControlNumber). + SetFamily(control.Family). + SetClass(control.Class). + SetSource(control.Source). + SetSatisfies(control.Satisfies). + SetMappedFrameworks(control.MappedFrameworks). + SetDetails(control.Details). Save(ctx) if err != nil { return err @@ -761,7 +849,7 @@ func (m *EntitlementMutation) CreateHistoryFromDelete(ctx context.Context) error return nil } -func (m *EntitlementPlanMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *ControlObjectiveMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -769,7 +857,7 @@ func (m *EntitlementPlanMutation) CreateHistoryFromCreate(ctx context.Context) e return idNotFoundError } - create := client.EntitlementPlanHistory.Create() + create := client.ControlObjectiveHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -792,10 +880,6 @@ func (m *EntitlementPlanMutation) CreateHistoryFromCreate(ctx context.Context) e create = create.SetUpdatedBy(updatedBy) } - if mappingID, exists := m.MappingID(); exists { - create = create.SetMappingID(mappingID) - } - if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } @@ -804,16 +888,12 @@ func (m *EntitlementPlanMutation) CreateHistoryFromCreate(ctx context.Context) e create = create.SetDeletedBy(deletedBy) } - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) - } - - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) } - if displayName, exists := m.DisplayName(); exists { - create = create.SetDisplayName(displayName) + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) } if name, exists := m.Name(); exists { @@ -824,12 +904,40 @@ func (m *EntitlementPlanMutation) CreateHistoryFromCreate(ctx context.Context) e create = create.SetDescription(description) } + if status, exists := m.Status(); exists { + create = create.SetStatus(status) + } + + if controlObjectiveType, exists := m.ControlObjectiveType(); exists { + create = create.SetControlObjectiveType(controlObjectiveType) + } + if version, exists := m.Version(); exists { create = create.SetVersion(version) } - if metadata, exists := m.Metadata(); exists { - create = create.SetMetadata(metadata) + if controlNumber, exists := m.ControlNumber(); exists { + create = create.SetControlNumber(controlNumber) + } + + if family, exists := m.Family(); exists { + create = create.SetFamily(family) + } + + if class, exists := m.Class(); exists { + create = create.SetClass(class) + } + + if source, exists := m.Source(); exists { + create = create.SetSource(source) + } + + if mappedFrameworks, exists := m.MappedFrameworks(); exists { + create = create.SetMappedFrameworks(mappedFrameworks) + } + + if details, exists := m.Details(); exists { + create = create.SetDetails(details) } _, err := create.Save(ctx) @@ -837,7 +945,7 @@ func (m *EntitlementPlanMutation) CreateHistoryFromCreate(ctx context.Context) e return err } -func (m *EntitlementPlanMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *ControlObjectiveMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -850,12 +958,12 @@ func (m *EntitlementPlanMutation) CreateHistoryFromUpdate(ctx context.Context) e } for _, id := range ids { - entitlementplan, err := client.EntitlementPlan.Get(ctx, id) + controlobjective, err := client.ControlObjective.Get(ctx, id) if err != nil { return err } - create := client.EntitlementPlanHistory.Create() + create := client.ControlObjectiveHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -865,85 +973,115 @@ func (m *EntitlementPlanMutation) CreateHistoryFromUpdate(ctx context.Context) e if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(entitlementplan.CreatedAt) + create = create.SetCreatedAt(controlobjective.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(entitlementplan.UpdatedAt) + create = create.SetUpdatedAt(controlobjective.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(entitlementplan.CreatedBy) + create = create.SetCreatedBy(controlobjective.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(entitlementplan.UpdatedBy) - } - - if mappingID, exists := m.MappingID(); exists { - create = create.SetMappingID(mappingID) - } else { - create = create.SetMappingID(entitlementplan.MappingID) + create = create.SetUpdatedBy(controlobjective.UpdatedBy) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(entitlementplan.DeletedAt) + create = create.SetDeletedAt(controlobjective.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(entitlementplan.DeletedBy) + create = create.SetDeletedBy(controlobjective.DeletedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } else { + create = create.SetMappingID(controlobjective.MappingID) } if tags, exists := m.Tags(); exists { create = create.SetTags(tags) } else { - create = create.SetTags(entitlementplan.Tags) + create = create.SetTags(controlobjective.Tags) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) + if name, exists := m.Name(); exists { + create = create.SetName(name) } else { - create = create.SetOwnerID(entitlementplan.OwnerID) + create = create.SetName(controlobjective.Name) } - if displayName, exists := m.DisplayName(); exists { - create = create.SetDisplayName(displayName) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } else { - create = create.SetDisplayName(entitlementplan.DisplayName) + create = create.SetDescription(controlobjective.Description) } - if name, exists := m.Name(); exists { - create = create.SetName(name) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } else { - create = create.SetName(entitlementplan.Name) + create = create.SetStatus(controlobjective.Status) } - if description, exists := m.Description(); exists { - create = create.SetDescription(description) + if controlObjectiveType, exists := m.ControlObjectiveType(); exists { + create = create.SetControlObjectiveType(controlObjectiveType) } else { - create = create.SetDescription(entitlementplan.Description) + create = create.SetControlObjectiveType(controlobjective.ControlObjectiveType) } if version, exists := m.Version(); exists { create = create.SetVersion(version) } else { - create = create.SetVersion(entitlementplan.Version) + create = create.SetVersion(controlobjective.Version) } - if metadata, exists := m.Metadata(); exists { - create = create.SetMetadata(metadata) + if controlNumber, exists := m.ControlNumber(); exists { + create = create.SetControlNumber(controlNumber) } else { - create = create.SetMetadata(entitlementplan.Metadata) + create = create.SetControlNumber(controlobjective.ControlNumber) + } + + if family, exists := m.Family(); exists { + create = create.SetFamily(family) + } else { + create = create.SetFamily(controlobjective.Family) + } + + if class, exists := m.Class(); exists { + create = create.SetClass(class) + } else { + create = create.SetClass(controlobjective.Class) + } + + if source, exists := m.Source(); exists { + create = create.SetSource(source) + } else { + create = create.SetSource(controlobjective.Source) + } + + if mappedFrameworks, exists := m.MappedFrameworks(); exists { + create = create.SetMappedFrameworks(mappedFrameworks) + } else { + create = create.SetMappedFrameworks(controlobjective.MappedFrameworks) + } + + if details, exists := m.Details(); exists { + create = create.SetDetails(details) + } else { + create = create.SetDetails(controlobjective.Details) } if _, err := create.Save(ctx); err != nil { @@ -954,7 +1092,7 @@ func (m *EntitlementPlanMutation) CreateHistoryFromUpdate(ctx context.Context) e return nil } -func (m *EntitlementPlanMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *ControlObjectiveMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -967,31 +1105,36 @@ func (m *EntitlementPlanMutation) CreateHistoryFromDelete(ctx context.Context) e } for _, id := range ids { - entitlementplan, err := client.EntitlementPlan.Get(ctx, id) + controlobjective, err := client.ControlObjective.Get(ctx, id) if err != nil { return err } - create := client.EntitlementPlanHistory.Create() + create := client.ControlObjectiveHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(entitlementplan.CreatedAt). - SetUpdatedAt(entitlementplan.UpdatedAt). - SetCreatedBy(entitlementplan.CreatedBy). - SetUpdatedBy(entitlementplan.UpdatedBy). - SetMappingID(entitlementplan.MappingID). - SetDeletedAt(entitlementplan.DeletedAt). - SetDeletedBy(entitlementplan.DeletedBy). - SetTags(entitlementplan.Tags). - SetOwnerID(entitlementplan.OwnerID). - SetDisplayName(entitlementplan.DisplayName). - SetName(entitlementplan.Name). - SetDescription(entitlementplan.Description). - SetVersion(entitlementplan.Version). - SetMetadata(entitlementplan.Metadata). + SetCreatedAt(controlobjective.CreatedAt). + SetUpdatedAt(controlobjective.UpdatedAt). + SetCreatedBy(controlobjective.CreatedBy). + SetUpdatedBy(controlobjective.UpdatedBy). + SetDeletedAt(controlobjective.DeletedAt). + SetDeletedBy(controlobjective.DeletedBy). + SetMappingID(controlobjective.MappingID). + SetTags(controlobjective.Tags). + SetName(controlobjective.Name). + SetDescription(controlobjective.Description). + SetStatus(controlobjective.Status). + SetControlObjectiveType(controlobjective.ControlObjectiveType). + SetVersion(controlobjective.Version). + SetControlNumber(controlobjective.ControlNumber). + SetFamily(controlobjective.Family). + SetClass(controlobjective.Class). + SetSource(controlobjective.Source). + SetMappedFrameworks(controlobjective.MappedFrameworks). + SetDetails(controlobjective.Details). Save(ctx) if err != nil { return err @@ -1001,7 +1144,7 @@ func (m *EntitlementPlanMutation) CreateHistoryFromDelete(ctx context.Context) e return nil } -func (m *EntitlementPlanFeatureMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *DocumentDataMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -1009,7 +1152,7 @@ func (m *EntitlementPlanFeatureMutation) CreateHistoryFromCreate(ctx context.Con return idNotFoundError } - create := client.EntitlementPlanFeatureHistory.Create() + create := client.DocumentDataHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -1036,6 +1179,10 @@ func (m *EntitlementPlanFeatureMutation) CreateHistoryFromCreate(ctx context.Con create = create.SetMappingID(mappingID) } + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } + if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } @@ -1044,24 +1191,16 @@ func (m *EntitlementPlanFeatureMutation) CreateHistoryFromCreate(ctx context.Con create = create.SetDeletedBy(deletedBy) } - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) - } - if ownerID, exists := m.OwnerID(); exists { create = create.SetOwnerID(ownerID) } - if metadata, exists := m.Metadata(); exists { - create = create.SetMetadata(metadata) + if templateID, exists := m.TemplateID(); exists { + create = create.SetTemplateID(templateID) } - if planID, exists := m.PlanID(); exists { - create = create.SetPlanID(planID) - } - - if featureID, exists := m.FeatureID(); exists { - create = create.SetFeatureID(featureID) + if data, exists := m.Data(); exists { + create = create.SetData(data) } _, err := create.Save(ctx) @@ -1069,7 +1208,7 @@ func (m *EntitlementPlanFeatureMutation) CreateHistoryFromCreate(ctx context.Con return err } -func (m *EntitlementPlanFeatureMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *DocumentDataMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -1082,12 +1221,12 @@ func (m *EntitlementPlanFeatureMutation) CreateHistoryFromUpdate(ctx context.Con } for _, id := range ids { - entitlementplanfeature, err := client.EntitlementPlanFeature.Get(ctx, id) + documentdata, err := client.DocumentData.Get(ctx, id) if err != nil { return err } - create := client.EntitlementPlanFeatureHistory.Create() + create := client.DocumentDataHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -1097,73 +1236,67 @@ func (m *EntitlementPlanFeatureMutation) CreateHistoryFromUpdate(ctx context.Con if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(entitlementplanfeature.CreatedAt) + create = create.SetCreatedAt(documentdata.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(entitlementplanfeature.UpdatedAt) + create = create.SetUpdatedAt(documentdata.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(entitlementplanfeature.CreatedBy) + create = create.SetCreatedBy(documentdata.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(entitlementplanfeature.UpdatedBy) + create = create.SetUpdatedBy(documentdata.UpdatedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(entitlementplanfeature.MappingID) + create = create.SetMappingID(documentdata.MappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(documentdata.Tags) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(entitlementplanfeature.DeletedAt) + create = create.SetDeletedAt(documentdata.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(entitlementplanfeature.DeletedBy) - } - - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) - } else { - create = create.SetTags(entitlementplanfeature.Tags) + create = create.SetDeletedBy(documentdata.DeletedBy) } if ownerID, exists := m.OwnerID(); exists { create = create.SetOwnerID(ownerID) } else { - create = create.SetOwnerID(entitlementplanfeature.OwnerID) - } - - if metadata, exists := m.Metadata(); exists { - create = create.SetMetadata(metadata) - } else { - create = create.SetMetadata(entitlementplanfeature.Metadata) + create = create.SetOwnerID(documentdata.OwnerID) } - if planID, exists := m.PlanID(); exists { - create = create.SetPlanID(planID) + if templateID, exists := m.TemplateID(); exists { + create = create.SetTemplateID(templateID) } else { - create = create.SetPlanID(entitlementplanfeature.PlanID) + create = create.SetTemplateID(documentdata.TemplateID) } - if featureID, exists := m.FeatureID(); exists { - create = create.SetFeatureID(featureID) + if data, exists := m.Data(); exists { + create = create.SetData(data) } else { - create = create.SetFeatureID(entitlementplanfeature.FeatureID) + create = create.SetData(documentdata.Data) } if _, err := create.Save(ctx); err != nil { @@ -1174,7 +1307,7 @@ func (m *EntitlementPlanFeatureMutation) CreateHistoryFromUpdate(ctx context.Con return nil } -func (m *EntitlementPlanFeatureMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *DocumentDataMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -1187,29 +1320,28 @@ func (m *EntitlementPlanFeatureMutation) CreateHistoryFromDelete(ctx context.Con } for _, id := range ids { - entitlementplanfeature, err := client.EntitlementPlanFeature.Get(ctx, id) + documentdata, err := client.DocumentData.Get(ctx, id) if err != nil { return err } - create := client.EntitlementPlanFeatureHistory.Create() + create := client.DocumentDataHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(entitlementplanfeature.CreatedAt). - SetUpdatedAt(entitlementplanfeature.UpdatedAt). - SetCreatedBy(entitlementplanfeature.CreatedBy). - SetUpdatedBy(entitlementplanfeature.UpdatedBy). - SetMappingID(entitlementplanfeature.MappingID). - SetDeletedAt(entitlementplanfeature.DeletedAt). - SetDeletedBy(entitlementplanfeature.DeletedBy). - SetTags(entitlementplanfeature.Tags). - SetOwnerID(entitlementplanfeature.OwnerID). - SetMetadata(entitlementplanfeature.Metadata). - SetPlanID(entitlementplanfeature.PlanID). - SetFeatureID(entitlementplanfeature.FeatureID). + SetCreatedAt(documentdata.CreatedAt). + SetUpdatedAt(documentdata.UpdatedAt). + SetCreatedBy(documentdata.CreatedBy). + SetUpdatedBy(documentdata.UpdatedBy). + SetMappingID(documentdata.MappingID). + SetTags(documentdata.Tags). + SetDeletedAt(documentdata.DeletedAt). + SetDeletedBy(documentdata.DeletedBy). + SetOwnerID(documentdata.OwnerID). + SetTemplateID(documentdata.TemplateID). + SetData(documentdata.Data). Save(ctx) if err != nil { return err @@ -1219,7 +1351,7 @@ func (m *EntitlementPlanFeatureMutation) CreateHistoryFromDelete(ctx context.Con return nil } -func (m *EntityMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *EntitlementMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -1227,7 +1359,7 @@ func (m *EntityMutation) CreateHistoryFromCreate(ctx context.Context) error { return idNotFoundError } - create := client.EntityHistory.Create() + create := client.EntitlementHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -1254,6 +1386,10 @@ func (m *EntityMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetMappingID(mappingID) } + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } + if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } @@ -1262,36 +1398,36 @@ func (m *EntityMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetDeletedBy(deletedBy) } - 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 planID, exists := m.PlanID(); exists { + create = create.SetPlanID(planID) } - if displayName, exists := m.DisplayName(); exists { - create = create.SetDisplayName(displayName) + if organizationID, exists := m.OrganizationID(); exists { + create = create.SetOrganizationID(organizationID) } - if description, exists := m.Description(); exists { - create = create.SetDescription(description) + if externalCustomerID, exists := m.ExternalCustomerID(); exists { + create = create.SetExternalCustomerID(externalCustomerID) } - if domains, exists := m.Domains(); exists { - create = create.SetDomains(domains) + if externalSubscriptionID, exists := m.ExternalSubscriptionID(); exists { + create = create.SetExternalSubscriptionID(externalSubscriptionID) } - if entityTypeID, exists := m.EntityTypeID(); exists { - create = create.SetEntityTypeID(entityTypeID) + if expires, exists := m.Expires(); exists { + create = create.SetExpires(expires) } - if status, exists := m.Status(); exists { - create = create.SetStatus(status) + if expiresAt, exists := m.ExpiresAt(); exists { + create = create.SetNillableExpiresAt(&expiresAt) + } + + if cancelled, exists := m.Cancelled(); exists { + create = create.SetCancelled(cancelled) } _, err := create.Save(ctx) @@ -1299,7 +1435,7 @@ func (m *EntityMutation) CreateHistoryFromCreate(ctx context.Context) error { return err } -func (m *EntityMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *EntitlementMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -1312,12 +1448,12 @@ func (m *EntityMutation) CreateHistoryFromUpdate(ctx context.Context) error { } for _, id := range ids { - entity, err := client.Entity.Get(ctx, id) + entitlement, err := client.Entitlement.Get(ctx, id) if err != nil { return err } - create := client.EntityHistory.Create() + create := client.EntitlementHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -1327,91 +1463,97 @@ func (m *EntityMutation) CreateHistoryFromUpdate(ctx context.Context) error { if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(entity.CreatedAt) + create = create.SetCreatedAt(entitlement.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(entity.UpdatedAt) + create = create.SetUpdatedAt(entitlement.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(entity.CreatedBy) + create = create.SetCreatedBy(entitlement.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(entity.UpdatedBy) + create = create.SetUpdatedBy(entitlement.UpdatedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(entity.MappingID) + create = create.SetMappingID(entitlement.MappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(entitlement.Tags) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(entity.DeletedAt) + create = create.SetDeletedAt(entitlement.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(entity.DeletedBy) + create = create.SetDeletedBy(entitlement.DeletedBy) } - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) } else { - create = create.SetTags(entity.Tags) + create = create.SetOwnerID(entitlement.OwnerID) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) + if planID, exists := m.PlanID(); exists { + create = create.SetPlanID(planID) } else { - create = create.SetOwnerID(entity.OwnerID) + create = create.SetPlanID(entitlement.PlanID) } - if name, exists := m.Name(); exists { - create = create.SetName(name) + if organizationID, exists := m.OrganizationID(); exists { + create = create.SetOrganizationID(organizationID) } else { - create = create.SetName(entity.Name) + create = create.SetOrganizationID(entitlement.OrganizationID) } - if displayName, exists := m.DisplayName(); exists { - create = create.SetDisplayName(displayName) + if externalCustomerID, exists := m.ExternalCustomerID(); exists { + create = create.SetExternalCustomerID(externalCustomerID) } else { - create = create.SetDisplayName(entity.DisplayName) + create = create.SetExternalCustomerID(entitlement.ExternalCustomerID) } - if description, exists := m.Description(); exists { - create = create.SetDescription(description) + if externalSubscriptionID, exists := m.ExternalSubscriptionID(); exists { + create = create.SetExternalSubscriptionID(externalSubscriptionID) } else { - create = create.SetDescription(entity.Description) + create = create.SetExternalSubscriptionID(entitlement.ExternalSubscriptionID) } - if domains, exists := m.Domains(); exists { - create = create.SetDomains(domains) + if expires, exists := m.Expires(); exists { + create = create.SetExpires(expires) } else { - create = create.SetDomains(entity.Domains) + create = create.SetExpires(entitlement.Expires) } - if entityTypeID, exists := m.EntityTypeID(); exists { - create = create.SetEntityTypeID(entityTypeID) + if expiresAt, exists := m.ExpiresAt(); exists { + create = create.SetNillableExpiresAt(&expiresAt) } else { - create = create.SetEntityTypeID(entity.EntityTypeID) + create = create.SetNillableExpiresAt(entitlement.ExpiresAt) } - if status, exists := m.Status(); exists { - create = create.SetStatus(status) + if cancelled, exists := m.Cancelled(); exists { + create = create.SetCancelled(cancelled) } else { - create = create.SetStatus(entity.Status) + create = create.SetCancelled(entitlement.Cancelled) } if _, err := create.Save(ctx); err != nil { @@ -1422,7 +1564,7 @@ func (m *EntityMutation) CreateHistoryFromUpdate(ctx context.Context) error { return nil } -func (m *EntityMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *EntitlementMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -1435,32 +1577,33 @@ func (m *EntityMutation) CreateHistoryFromDelete(ctx context.Context) error { } for _, id := range ids { - entity, err := client.Entity.Get(ctx, id) + entitlement, err := client.Entitlement.Get(ctx, id) if err != nil { return err } - create := client.EntityHistory.Create() + create := client.EntitlementHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(entity.CreatedAt). - SetUpdatedAt(entity.UpdatedAt). - SetCreatedBy(entity.CreatedBy). - SetUpdatedBy(entity.UpdatedBy). - SetMappingID(entity.MappingID). - SetDeletedAt(entity.DeletedAt). - SetDeletedBy(entity.DeletedBy). - SetTags(entity.Tags). - SetOwnerID(entity.OwnerID). - SetName(entity.Name). - SetDisplayName(entity.DisplayName). - SetDescription(entity.Description). - SetDomains(entity.Domains). - SetEntityTypeID(entity.EntityTypeID). - SetStatus(entity.Status). + SetCreatedAt(entitlement.CreatedAt). + SetUpdatedAt(entitlement.UpdatedAt). + SetCreatedBy(entitlement.CreatedBy). + SetUpdatedBy(entitlement.UpdatedBy). + SetMappingID(entitlement.MappingID). + SetTags(entitlement.Tags). + SetDeletedAt(entitlement.DeletedAt). + SetDeletedBy(entitlement.DeletedBy). + SetOwnerID(entitlement.OwnerID). + SetPlanID(entitlement.PlanID). + SetOrganizationID(entitlement.OrganizationID). + SetExternalCustomerID(entitlement.ExternalCustomerID). + SetExternalSubscriptionID(entitlement.ExternalSubscriptionID). + SetExpires(entitlement.Expires). + SetNillableExpiresAt(entitlement.ExpiresAt). + SetCancelled(entitlement.Cancelled). Save(ctx) if err != nil { return err @@ -1470,7 +1613,7 @@ func (m *EntityMutation) CreateHistoryFromDelete(ctx context.Context) error { return nil } -func (m *EntityTypeMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *EntitlementPlanMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -1478,7 +1621,7 @@ func (m *EntityTypeMutation) CreateHistoryFromCreate(ctx context.Context) error return idNotFoundError } - create := client.EntityTypeHistory.Create() + create := client.EntitlementPlanHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -1521,16 +1664,32 @@ func (m *EntityTypeMutation) CreateHistoryFromCreate(ctx context.Context) error create = create.SetOwnerID(ownerID) } + if displayName, exists := m.DisplayName(); exists { + create = create.SetDisplayName(displayName) + } + if name, exists := m.Name(); exists { create = create.SetName(name) } + if description, exists := m.Description(); exists { + create = create.SetDescription(description) + } + + if version, exists := m.Version(); exists { + create = create.SetVersion(version) + } + + if metadata, exists := m.Metadata(); exists { + create = create.SetMetadata(metadata) + } + _, err := create.Save(ctx) return err } -func (m *EntityTypeMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *EntitlementPlanMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -1543,12 +1702,12 @@ func (m *EntityTypeMutation) CreateHistoryFromUpdate(ctx context.Context) error } for _, id := range ids { - entitytype, err := client.EntityType.Get(ctx, id) + entitlementplan, err := client.EntitlementPlan.Get(ctx, id) if err != nil { return err } - create := client.EntityTypeHistory.Create() + create := client.EntitlementPlanHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -1558,61 +1717,85 @@ func (m *EntityTypeMutation) CreateHistoryFromUpdate(ctx context.Context) error if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(entitytype.CreatedAt) + create = create.SetCreatedAt(entitlementplan.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(entitytype.UpdatedAt) + create = create.SetUpdatedAt(entitlementplan.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(entitytype.CreatedBy) + create = create.SetCreatedBy(entitlementplan.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(entitytype.UpdatedBy) + create = create.SetUpdatedBy(entitlementplan.UpdatedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(entitytype.MappingID) + create = create.SetMappingID(entitlementplan.MappingID) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(entitytype.DeletedAt) + create = create.SetDeletedAt(entitlementplan.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(entitytype.DeletedBy) + create = create.SetDeletedBy(entitlementplan.DeletedBy) } if tags, exists := m.Tags(); exists { create = create.SetTags(tags) } else { - create = create.SetTags(entitytype.Tags) + create = create.SetTags(entitlementplan.Tags) } if ownerID, exists := m.OwnerID(); exists { create = create.SetOwnerID(ownerID) } else { - create = create.SetOwnerID(entitytype.OwnerID) + create = create.SetOwnerID(entitlementplan.OwnerID) + } + + if displayName, exists := m.DisplayName(); exists { + create = create.SetDisplayName(displayName) + } else { + create = create.SetDisplayName(entitlementplan.DisplayName) } if name, exists := m.Name(); exists { create = create.SetName(name) } else { - create = create.SetName(entitytype.Name) + create = create.SetName(entitlementplan.Name) + } + + if description, exists := m.Description(); exists { + create = create.SetDescription(description) + } else { + create = create.SetDescription(entitlementplan.Description) + } + + if version, exists := m.Version(); exists { + create = create.SetVersion(version) + } else { + create = create.SetVersion(entitlementplan.Version) + } + + if metadata, exists := m.Metadata(); exists { + create = create.SetMetadata(metadata) + } else { + create = create.SetMetadata(entitlementplan.Metadata) } if _, err := create.Save(ctx); err != nil { @@ -1623,7 +1806,7 @@ func (m *EntityTypeMutation) CreateHistoryFromUpdate(ctx context.Context) error return nil } -func (m *EntityTypeMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *EntitlementPlanMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -1636,27 +1819,31 @@ func (m *EntityTypeMutation) CreateHistoryFromDelete(ctx context.Context) error } for _, id := range ids { - entitytype, err := client.EntityType.Get(ctx, id) + entitlementplan, err := client.EntitlementPlan.Get(ctx, id) if err != nil { return err } - create := client.EntityTypeHistory.Create() + create := client.EntitlementPlanHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(entitytype.CreatedAt). - SetUpdatedAt(entitytype.UpdatedAt). - SetCreatedBy(entitytype.CreatedBy). - SetUpdatedBy(entitytype.UpdatedBy). - SetMappingID(entitytype.MappingID). - SetDeletedAt(entitytype.DeletedAt). - SetDeletedBy(entitytype.DeletedBy). - SetTags(entitytype.Tags). - SetOwnerID(entitytype.OwnerID). - SetName(entitytype.Name). + SetCreatedAt(entitlementplan.CreatedAt). + SetUpdatedAt(entitlementplan.UpdatedAt). + SetCreatedBy(entitlementplan.CreatedBy). + SetUpdatedBy(entitlementplan.UpdatedBy). + SetMappingID(entitlementplan.MappingID). + SetDeletedAt(entitlementplan.DeletedAt). + SetDeletedBy(entitlementplan.DeletedBy). + SetTags(entitlementplan.Tags). + SetOwnerID(entitlementplan.OwnerID). + SetDisplayName(entitlementplan.DisplayName). + SetName(entitlementplan.Name). + SetDescription(entitlementplan.Description). + SetVersion(entitlementplan.Version). + SetMetadata(entitlementplan.Metadata). Save(ctx) if err != nil { return err @@ -1666,7 +1853,7 @@ func (m *EntityTypeMutation) CreateHistoryFromDelete(ctx context.Context) error return nil } -func (m *EventMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *EntitlementPlanFeatureMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -1674,7 +1861,7 @@ func (m *EventMutation) CreateHistoryFromCreate(ctx context.Context) error { return idNotFoundError } - create := client.EventHistory.Create() + create := client.EntitlementPlanFeatureHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -1701,32 +1888,40 @@ func (m *EventMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetMappingID(mappingID) } - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) } - if eventID, exists := m.EventID(); exists { - create = create.SetEventID(eventID) + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) } - if correlationID, exists := m.CorrelationID(); exists { - create = create.SetCorrelationID(correlationID) + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) } - if eventType, exists := m.EventType(); exists { - create = create.SetEventType(eventType) + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) } if metadata, exists := m.Metadata(); exists { create = create.SetMetadata(metadata) } + if planID, exists := m.PlanID(); exists { + create = create.SetPlanID(planID) + } + + if featureID, exists := m.FeatureID(); exists { + create = create.SetFeatureID(featureID) + } + _, err := create.Save(ctx) return err } -func (m *EventMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *EntitlementPlanFeatureMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -1739,12 +1934,12 @@ func (m *EventMutation) CreateHistoryFromUpdate(ctx context.Context) error { } for _, id := range ids { - event, err := client.Event.Get(ctx, id) + entitlementplanfeature, err := client.EntitlementPlanFeature.Get(ctx, id) if err != nil { return err } - create := client.EventHistory.Create() + create := client.EntitlementPlanFeatureHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -1754,61 +1949,73 @@ func (m *EventMutation) CreateHistoryFromUpdate(ctx context.Context) error { if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(event.CreatedAt) + create = create.SetCreatedAt(entitlementplanfeature.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(event.UpdatedAt) + create = create.SetUpdatedAt(entitlementplanfeature.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(event.CreatedBy) + create = create.SetCreatedBy(entitlementplanfeature.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(event.UpdatedBy) + create = create.SetUpdatedBy(entitlementplanfeature.UpdatedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(event.MappingID) + create = create.SetMappingID(entitlementplanfeature.MappingID) } - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) } else { - create = create.SetTags(event.Tags) + create = create.SetDeletedAt(entitlementplanfeature.DeletedAt) } - if eventID, exists := m.EventID(); exists { - create = create.SetEventID(eventID) + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) } else { - create = create.SetEventID(event.EventID) + create = create.SetDeletedBy(entitlementplanfeature.DeletedBy) } - if correlationID, exists := m.CorrelationID(); exists { - create = create.SetCorrelationID(correlationID) + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) } else { - create = create.SetCorrelationID(event.CorrelationID) + create = create.SetTags(entitlementplanfeature.Tags) } - if eventType, exists := m.EventType(); exists { - create = create.SetEventType(eventType) + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) } else { - create = create.SetEventType(event.EventType) + create = create.SetOwnerID(entitlementplanfeature.OwnerID) } if metadata, exists := m.Metadata(); exists { create = create.SetMetadata(metadata) } else { - create = create.SetMetadata(event.Metadata) + create = create.SetMetadata(entitlementplanfeature.Metadata) + } + + if planID, exists := m.PlanID(); exists { + create = create.SetPlanID(planID) + } else { + create = create.SetPlanID(entitlementplanfeature.PlanID) + } + + if featureID, exists := m.FeatureID(); exists { + create = create.SetFeatureID(featureID) + } else { + create = create.SetFeatureID(entitlementplanfeature.FeatureID) } if _, err := create.Save(ctx); err != nil { @@ -1819,7 +2026,7 @@ func (m *EventMutation) CreateHistoryFromUpdate(ctx context.Context) error { return nil } -func (m *EventMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *EntitlementPlanFeatureMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -1832,27 +2039,29 @@ func (m *EventMutation) CreateHistoryFromDelete(ctx context.Context) error { } for _, id := range ids { - event, err := client.Event.Get(ctx, id) + entitlementplanfeature, err := client.EntitlementPlanFeature.Get(ctx, id) if err != nil { return err } - create := client.EventHistory.Create() + create := client.EntitlementPlanFeatureHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(event.CreatedAt). - SetUpdatedAt(event.UpdatedAt). - SetCreatedBy(event.CreatedBy). - SetUpdatedBy(event.UpdatedBy). - SetMappingID(event.MappingID). - SetTags(event.Tags). - SetEventID(event.EventID). - SetCorrelationID(event.CorrelationID). - SetEventType(event.EventType). - SetMetadata(event.Metadata). + SetCreatedAt(entitlementplanfeature.CreatedAt). + SetUpdatedAt(entitlementplanfeature.UpdatedAt). + SetCreatedBy(entitlementplanfeature.CreatedBy). + SetUpdatedBy(entitlementplanfeature.UpdatedBy). + SetMappingID(entitlementplanfeature.MappingID). + SetDeletedAt(entitlementplanfeature.DeletedAt). + SetDeletedBy(entitlementplanfeature.DeletedBy). + SetTags(entitlementplanfeature.Tags). + SetOwnerID(entitlementplanfeature.OwnerID). + SetMetadata(entitlementplanfeature.Metadata). + SetPlanID(entitlementplanfeature.PlanID). + SetFeatureID(entitlementplanfeature.FeatureID). Save(ctx) if err != nil { return err @@ -1862,7 +2071,7 @@ func (m *EventMutation) CreateHistoryFromDelete(ctx context.Context) error { return nil } -func (m *FeatureMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *EntityMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -1870,7 +2079,7 @@ func (m *FeatureMutation) CreateHistoryFromCreate(ctx context.Context) error { return idNotFoundError } - create := client.FeatureHistory.Create() + create := client.EntityHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -1893,6 +2102,10 @@ func (m *FeatureMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetUpdatedBy(updatedBy) } + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } @@ -1901,10 +2114,6 @@ func (m *FeatureMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetDeletedBy(deletedBy) } - if mappingID, exists := m.MappingID(); exists { - create = create.SetMappingID(mappingID) - } - if tags, exists := m.Tags(); exists { create = create.SetTags(tags) } @@ -1921,16 +2130,20 @@ func (m *FeatureMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetDisplayName(displayName) } - if enabled, exists := m.Enabled(); exists { - create = create.SetEnabled(enabled) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } - if description, exists := m.Description(); exists { - create = create.SetNillableDescription(&description) + if domains, exists := m.Domains(); exists { + create = create.SetDomains(domains) } - if metadata, exists := m.Metadata(); exists { - create = create.SetMetadata(metadata) + if entityTypeID, exists := m.EntityTypeID(); exists { + create = create.SetEntityTypeID(entityTypeID) + } + + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } _, err := create.Save(ctx) @@ -1938,7 +2151,7 @@ func (m *FeatureMutation) CreateHistoryFromCreate(ctx context.Context) error { return err } -func (m *FeatureMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *EntityMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -1951,12 +2164,12 @@ func (m *FeatureMutation) CreateHistoryFromUpdate(ctx context.Context) error { } for _, id := range ids { - feature, err := client.Feature.Get(ctx, id) + entity, err := client.Entity.Get(ctx, id) if err != nil { return err } - create := client.FeatureHistory.Create() + create := client.EntityHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -1966,85 +2179,91 @@ func (m *FeatureMutation) CreateHistoryFromUpdate(ctx context.Context) error { if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(feature.CreatedAt) + create = create.SetCreatedAt(entity.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(feature.UpdatedAt) + create = create.SetUpdatedAt(entity.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(feature.CreatedBy) + create = create.SetCreatedBy(entity.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(feature.UpdatedBy) + create = create.SetUpdatedBy(entity.UpdatedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } else { + create = create.SetMappingID(entity.MappingID) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(feature.DeletedAt) + create = create.SetDeletedAt(entity.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(feature.DeletedBy) - } - - if mappingID, exists := m.MappingID(); exists { - create = create.SetMappingID(mappingID) - } else { - create = create.SetMappingID(feature.MappingID) + create = create.SetDeletedBy(entity.DeletedBy) } if tags, exists := m.Tags(); exists { create = create.SetTags(tags) } else { - create = create.SetTags(feature.Tags) + create = create.SetTags(entity.Tags) } if ownerID, exists := m.OwnerID(); exists { create = create.SetOwnerID(ownerID) } else { - create = create.SetOwnerID(feature.OwnerID) + create = create.SetOwnerID(entity.OwnerID) } if name, exists := m.Name(); exists { create = create.SetName(name) } else { - create = create.SetName(feature.Name) + create = create.SetName(entity.Name) } if displayName, exists := m.DisplayName(); exists { create = create.SetDisplayName(displayName) } else { - create = create.SetDisplayName(feature.DisplayName) + create = create.SetDisplayName(entity.DisplayName) } - if enabled, exists := m.Enabled(); exists { - create = create.SetEnabled(enabled) - } else { - create = create.SetEnabled(feature.Enabled) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) + } else { + create = create.SetDescription(entity.Description) } - if description, exists := m.Description(); exists { - create = create.SetNillableDescription(&description) + if domains, exists := m.Domains(); exists { + create = create.SetDomains(domains) } else { - create = create.SetNillableDescription(feature.Description) + create = create.SetDomains(entity.Domains) } - if metadata, exists := m.Metadata(); exists { - create = create.SetMetadata(metadata) + if entityTypeID, exists := m.EntityTypeID(); exists { + create = create.SetEntityTypeID(entityTypeID) } else { - create = create.SetMetadata(feature.Metadata) + create = create.SetEntityTypeID(entity.EntityTypeID) + } + + if status, exists := m.Status(); exists { + create = create.SetStatus(status) + } else { + create = create.SetStatus(entity.Status) } if _, err := create.Save(ctx); err != nil { @@ -2055,7 +2274,7 @@ func (m *FeatureMutation) CreateHistoryFromUpdate(ctx context.Context) error { return nil } -func (m *FeatureMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *EntityMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -2068,31 +2287,32 @@ func (m *FeatureMutation) CreateHistoryFromDelete(ctx context.Context) error { } for _, id := range ids { - feature, err := client.Feature.Get(ctx, id) + entity, err := client.Entity.Get(ctx, id) if err != nil { return err } - create := client.FeatureHistory.Create() + create := client.EntityHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(feature.CreatedAt). - SetUpdatedAt(feature.UpdatedAt). - SetCreatedBy(feature.CreatedBy). - SetUpdatedBy(feature.UpdatedBy). - SetDeletedAt(feature.DeletedAt). - SetDeletedBy(feature.DeletedBy). - SetMappingID(feature.MappingID). - SetTags(feature.Tags). - SetOwnerID(feature.OwnerID). - SetName(feature.Name). - SetDisplayName(feature.DisplayName). - SetEnabled(feature.Enabled). - SetNillableDescription(feature.Description). - SetMetadata(feature.Metadata). + SetCreatedAt(entity.CreatedAt). + SetUpdatedAt(entity.UpdatedAt). + SetCreatedBy(entity.CreatedBy). + SetUpdatedBy(entity.UpdatedBy). + SetMappingID(entity.MappingID). + SetDeletedAt(entity.DeletedAt). + SetDeletedBy(entity.DeletedBy). + SetTags(entity.Tags). + SetOwnerID(entity.OwnerID). + SetName(entity.Name). + SetDisplayName(entity.DisplayName). + SetDescription(entity.Description). + SetDomains(entity.Domains). + SetEntityTypeID(entity.EntityTypeID). + SetStatus(entity.Status). Save(ctx) if err != nil { return err @@ -2102,7 +2322,7 @@ func (m *FeatureMutation) CreateHistoryFromDelete(ctx context.Context) error { return nil } -func (m *FileMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *EntityTypeMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -2110,7 +2330,7 @@ func (m *FileMutation) CreateHistoryFromCreate(ctx context.Context) error { return idNotFoundError } - create := client.FileHistory.Create() + create := client.EntityTypeHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -2133,6 +2353,10 @@ func (m *FileMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetUpdatedBy(updatedBy) } + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } @@ -2141,68 +2365,16 @@ func (m *FileMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetDeletedBy(deletedBy) } - if mappingID, exists := m.MappingID(); exists { - create = create.SetMappingID(mappingID) - } - if tags, exists := m.Tags(); exists { create = create.SetTags(tags) } - if providedFileName, exists := m.ProvidedFileName(); exists { - create = create.SetProvidedFileName(providedFileName) - } - - if providedFileExtension, exists := m.ProvidedFileExtension(); exists { - create = create.SetProvidedFileExtension(providedFileExtension) - } - - if providedFileSize, exists := m.ProvidedFileSize(); exists { - create = create.SetProvidedFileSize(providedFileSize) - } - - if persistedFileSize, exists := m.PersistedFileSize(); exists { - create = create.SetPersistedFileSize(persistedFileSize) - } - - if detectedMimeType, exists := m.DetectedMimeType(); exists { - create = create.SetDetectedMimeType(detectedMimeType) - } - - if md5Hash, exists := m.Md5Hash(); exists { - create = create.SetMd5Hash(md5Hash) - } - - if detectedContentType, exists := m.DetectedContentType(); exists { - create = create.SetDetectedContentType(detectedContentType) - } - - if storeKey, exists := m.StoreKey(); exists { - create = create.SetStoreKey(storeKey) - } - - if categoryType, exists := m.CategoryType(); exists { - create = create.SetCategoryType(categoryType) - } - - if uri, exists := m.URI(); exists { - create = create.SetURI(uri) - } - - if storageScheme, exists := m.StorageScheme(); exists { - create = create.SetStorageScheme(storageScheme) - } - - if storageVolume, exists := m.StorageVolume(); exists { - create = create.SetStorageVolume(storageVolume) - } - - if storagePath, exists := m.StoragePath(); exists { - create = create.SetStoragePath(storagePath) + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) } - if fileContents, exists := m.FileContents(); exists { - create = create.SetFileContents(fileContents) + if name, exists := m.Name(); exists { + create = create.SetName(name) } _, err := create.Save(ctx) @@ -2210,7 +2382,7 @@ func (m *FileMutation) CreateHistoryFromCreate(ctx context.Context) error { return err } -func (m *FileMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *EntityTypeMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -2223,12 +2395,12 @@ func (m *FileMutation) CreateHistoryFromUpdate(ctx context.Context) error { } for _, id := range ids { - file, err := client.File.Get(ctx, id) + entitytype, err := client.EntityType.Get(ctx, id) if err != nil { return err } - create := client.FileHistory.Create() + create := client.EntityTypeHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -2238,133 +2410,2182 @@ func (m *FileMutation) CreateHistoryFromUpdate(ctx context.Context) error { if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(file.CreatedAt) + create = create.SetCreatedAt(entitytype.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(file.UpdatedAt) + create = create.SetUpdatedAt(entitytype.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(file.CreatedBy) + create = create.SetCreatedBy(entitytype.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(file.UpdatedBy) + create = create.SetUpdatedBy(entitytype.UpdatedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } else { + create = create.SetMappingID(entitytype.MappingID) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(file.DeletedAt) + create = create.SetDeletedAt(entitytype.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(file.DeletedBy) + create = create.SetDeletedBy(entitytype.DeletedBy) } - if mappingID, exists := m.MappingID(); exists { - create = create.SetMappingID(mappingID) + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) } else { - create = create.SetMappingID(file.MappingID) + create = create.SetTags(entitytype.Tags) } - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) + } else { + create = create.SetOwnerID(entitytype.OwnerID) + } + + if name, exists := m.Name(); exists { + create = create.SetName(name) + } else { + create = create.SetName(entitytype.Name) + } + + if _, err := create.Save(ctx); err != nil { + return err + } + } + + return nil +} + +func (m *EntityTypeMutation) CreateHistoryFromDelete(ctx context.Context) error { + // check for soft delete operation and skip so it happens on update + if entx.CheckIsSoftDelete(ctx) { + return nil + } + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + entitytype, err := client.EntityType.Get(ctx, id) + if err != nil { + return err + } + + create := client.EntityTypeHistory.Create() + + _, err = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id). + SetCreatedAt(entitytype.CreatedAt). + SetUpdatedAt(entitytype.UpdatedAt). + SetCreatedBy(entitytype.CreatedBy). + SetUpdatedBy(entitytype.UpdatedBy). + SetMappingID(entitytype.MappingID). + SetDeletedAt(entitytype.DeletedAt). + SetDeletedBy(entitytype.DeletedBy). + SetTags(entitytype.Tags). + SetOwnerID(entitytype.OwnerID). + SetName(entitytype.Name). + Save(ctx) + if err != nil { + return err + } + } + + return nil +} + +func (m *EventMutation) CreateHistoryFromCreate(ctx context.Context) error { + client := m.Client() + + id, ok := m.ID() + if !ok { + return idNotFoundError + } + + create := client.EventHistory.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 mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } + + if eventID, exists := m.EventID(); exists { + create = create.SetEventID(eventID) + } + + if correlationID, exists := m.CorrelationID(); exists { + create = create.SetCorrelationID(correlationID) + } + + if eventType, exists := m.EventType(); exists { + create = create.SetEventType(eventType) + } + + if metadata, exists := m.Metadata(); exists { + create = create.SetMetadata(metadata) + } + + _, err := create.Save(ctx) + + return err +} + +func (m *EventMutation) CreateHistoryFromUpdate(ctx context.Context) error { + // check for soft delete operation and delete instead + if entx.CheckIsSoftDelete(ctx) { + 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 { + event, err := client.Event.Get(ctx, id) + if err != nil { + return err + } + + create := client.EventHistory.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(event.CreatedAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) + } else { + create = create.SetUpdatedAt(event.UpdatedAt) + } + + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) + } else { + create = create.SetCreatedBy(event.CreatedBy) + } + + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) + } else { + create = create.SetUpdatedBy(event.UpdatedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } else { + create = create.SetMappingID(event.MappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(event.Tags) + } + + if eventID, exists := m.EventID(); exists { + create = create.SetEventID(eventID) + } else { + create = create.SetEventID(event.EventID) + } + + if correlationID, exists := m.CorrelationID(); exists { + create = create.SetCorrelationID(correlationID) + } else { + create = create.SetCorrelationID(event.CorrelationID) + } + + if eventType, exists := m.EventType(); exists { + create = create.SetEventType(eventType) + } else { + create = create.SetEventType(event.EventType) + } + + if metadata, exists := m.Metadata(); exists { + create = create.SetMetadata(metadata) + } else { + create = create.SetMetadata(event.Metadata) + } + + if _, err := create.Save(ctx); err != nil { + return err + } + } + + return nil +} + +func (m *EventMutation) CreateHistoryFromDelete(ctx context.Context) error { + // check for soft delete operation and skip so it happens on update + if entx.CheckIsSoftDelete(ctx) { + return nil + } + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + event, err := client.Event.Get(ctx, id) + if err != nil { + return err + } + + create := client.EventHistory.Create() + + _, err = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id). + SetCreatedAt(event.CreatedAt). + SetUpdatedAt(event.UpdatedAt). + SetCreatedBy(event.CreatedBy). + SetUpdatedBy(event.UpdatedBy). + SetMappingID(event.MappingID). + SetTags(event.Tags). + SetEventID(event.EventID). + SetCorrelationID(event.CorrelationID). + SetEventType(event.EventType). + SetMetadata(event.Metadata). + Save(ctx) + if err != nil { + return err + } + } + + return nil +} + +func (m *FeatureMutation) CreateHistoryFromCreate(ctx context.Context) error { + client := m.Client() + + id, ok := m.ID() + if !ok { + return idNotFoundError + } + + create := client.FeatureHistory.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 deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + + 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 displayName, exists := m.DisplayName(); exists { + create = create.SetDisplayName(displayName) + } + + if enabled, exists := m.Enabled(); exists { + create = create.SetEnabled(enabled) + } + + if description, exists := m.Description(); exists { + create = create.SetNillableDescription(&description) + } + + if metadata, exists := m.Metadata(); exists { + create = create.SetMetadata(metadata) + } + + _, err := create.Save(ctx) + + return err +} + +func (m *FeatureMutation) CreateHistoryFromUpdate(ctx context.Context) error { + // check for soft delete operation and delete instead + if entx.CheckIsSoftDelete(ctx) { + 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 { + feature, err := client.Feature.Get(ctx, id) + if err != nil { + return err + } + + create := client.FeatureHistory.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(feature.CreatedAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) + } else { + create = create.SetUpdatedAt(feature.UpdatedAt) + } + + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) + } else { + create = create.SetCreatedBy(feature.CreatedBy) + } + + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) + } else { + create = create.SetUpdatedBy(feature.UpdatedBy) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(feature.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(feature.DeletedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } else { + create = create.SetMappingID(feature.MappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(feature.Tags) + } + + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) + } else { + create = create.SetOwnerID(feature.OwnerID) + } + + if name, exists := m.Name(); exists { + create = create.SetName(name) + } else { + create = create.SetName(feature.Name) + } + + if displayName, exists := m.DisplayName(); exists { + create = create.SetDisplayName(displayName) + } else { + create = create.SetDisplayName(feature.DisplayName) + } + + if enabled, exists := m.Enabled(); exists { + create = create.SetEnabled(enabled) + } else { + create = create.SetEnabled(feature.Enabled) + } + + if description, exists := m.Description(); exists { + create = create.SetNillableDescription(&description) + } else { + create = create.SetNillableDescription(feature.Description) + } + + if metadata, exists := m.Metadata(); exists { + create = create.SetMetadata(metadata) + } else { + create = create.SetMetadata(feature.Metadata) + } + + if _, err := create.Save(ctx); err != nil { + return err + } + } + + return nil +} + +func (m *FeatureMutation) CreateHistoryFromDelete(ctx context.Context) error { + // check for soft delete operation and skip so it happens on update + if entx.CheckIsSoftDelete(ctx) { + return nil + } + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + feature, err := client.Feature.Get(ctx, id) + if err != nil { + return err + } + + create := client.FeatureHistory.Create() + + _, err = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id). + SetCreatedAt(feature.CreatedAt). + SetUpdatedAt(feature.UpdatedAt). + SetCreatedBy(feature.CreatedBy). + SetUpdatedBy(feature.UpdatedBy). + SetDeletedAt(feature.DeletedAt). + SetDeletedBy(feature.DeletedBy). + SetMappingID(feature.MappingID). + SetTags(feature.Tags). + SetOwnerID(feature.OwnerID). + SetName(feature.Name). + SetDisplayName(feature.DisplayName). + SetEnabled(feature.Enabled). + SetNillableDescription(feature.Description). + SetMetadata(feature.Metadata). + Save(ctx) + if err != nil { + return err + } + } + + return nil +} + +func (m *FileMutation) CreateHistoryFromCreate(ctx context.Context) error { + client := m.Client() + + id, ok := m.ID() + if !ok { + return idNotFoundError + } + + create := client.FileHistory.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 deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } + + if providedFileName, exists := m.ProvidedFileName(); exists { + create = create.SetProvidedFileName(providedFileName) + } + + if providedFileExtension, exists := m.ProvidedFileExtension(); exists { + create = create.SetProvidedFileExtension(providedFileExtension) + } + + if providedFileSize, exists := m.ProvidedFileSize(); exists { + create = create.SetProvidedFileSize(providedFileSize) + } + + if persistedFileSize, exists := m.PersistedFileSize(); exists { + create = create.SetPersistedFileSize(persistedFileSize) + } + + if detectedMimeType, exists := m.DetectedMimeType(); exists { + create = create.SetDetectedMimeType(detectedMimeType) + } + + if md5Hash, exists := m.Md5Hash(); exists { + create = create.SetMd5Hash(md5Hash) + } + + if detectedContentType, exists := m.DetectedContentType(); exists { + create = create.SetDetectedContentType(detectedContentType) + } + + if storeKey, exists := m.StoreKey(); exists { + create = create.SetStoreKey(storeKey) + } + + if categoryType, exists := m.CategoryType(); exists { + create = create.SetCategoryType(categoryType) + } + + if uri, exists := m.URI(); exists { + create = create.SetURI(uri) + } + + if storageScheme, exists := m.StorageScheme(); exists { + create = create.SetStorageScheme(storageScheme) + } + + if storageVolume, exists := m.StorageVolume(); exists { + create = create.SetStorageVolume(storageVolume) + } + + if storagePath, exists := m.StoragePath(); exists { + create = create.SetStoragePath(storagePath) + } + + if fileContents, exists := m.FileContents(); exists { + create = create.SetFileContents(fileContents) + } + + _, err := create.Save(ctx) + + return err +} + +func (m *FileMutation) CreateHistoryFromUpdate(ctx context.Context) error { + // check for soft delete operation and delete instead + if entx.CheckIsSoftDelete(ctx) { + 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 { + file, err := client.File.Get(ctx, id) + if err != nil { + return err + } + + create := client.FileHistory.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(file.CreatedAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) + } else { + create = create.SetUpdatedAt(file.UpdatedAt) + } + + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) + } else { + create = create.SetCreatedBy(file.CreatedBy) + } + + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) + } else { + create = create.SetUpdatedBy(file.UpdatedBy) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(file.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(file.DeletedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } else { + create = create.SetMappingID(file.MappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(file.Tags) + } + + if providedFileName, exists := m.ProvidedFileName(); exists { + create = create.SetProvidedFileName(providedFileName) + } else { + create = create.SetProvidedFileName(file.ProvidedFileName) + } + + if providedFileExtension, exists := m.ProvidedFileExtension(); exists { + create = create.SetProvidedFileExtension(providedFileExtension) + } else { + create = create.SetProvidedFileExtension(file.ProvidedFileExtension) + } + + if providedFileSize, exists := m.ProvidedFileSize(); exists { + create = create.SetProvidedFileSize(providedFileSize) + } else { + create = create.SetProvidedFileSize(file.ProvidedFileSize) + } + + if persistedFileSize, exists := m.PersistedFileSize(); exists { + create = create.SetPersistedFileSize(persistedFileSize) + } else { + create = create.SetPersistedFileSize(file.PersistedFileSize) + } + + if detectedMimeType, exists := m.DetectedMimeType(); exists { + create = create.SetDetectedMimeType(detectedMimeType) + } else { + create = create.SetDetectedMimeType(file.DetectedMimeType) + } + + if md5Hash, exists := m.Md5Hash(); exists { + create = create.SetMd5Hash(md5Hash) + } else { + create = create.SetMd5Hash(file.Md5Hash) + } + + if detectedContentType, exists := m.DetectedContentType(); exists { + create = create.SetDetectedContentType(detectedContentType) + } else { + create = create.SetDetectedContentType(file.DetectedContentType) + } + + if storeKey, exists := m.StoreKey(); exists { + create = create.SetStoreKey(storeKey) + } else { + create = create.SetStoreKey(file.StoreKey) + } + + if categoryType, exists := m.CategoryType(); exists { + create = create.SetCategoryType(categoryType) + } else { + create = create.SetCategoryType(file.CategoryType) + } + + if uri, exists := m.URI(); exists { + create = create.SetURI(uri) + } else { + create = create.SetURI(file.URI) + } + + if storageScheme, exists := m.StorageScheme(); exists { + create = create.SetStorageScheme(storageScheme) + } else { + create = create.SetStorageScheme(file.StorageScheme) + } + + if storageVolume, exists := m.StorageVolume(); exists { + create = create.SetStorageVolume(storageVolume) + } else { + create = create.SetStorageVolume(file.StorageVolume) + } + + if storagePath, exists := m.StoragePath(); exists { + create = create.SetStoragePath(storagePath) + } else { + create = create.SetStoragePath(file.StoragePath) + } + + if fileContents, exists := m.FileContents(); exists { + create = create.SetFileContents(fileContents) + } else { + create = create.SetFileContents(file.FileContents) + } + + if _, err := create.Save(ctx); err != nil { + return err + } + } + + return nil +} + +func (m *FileMutation) CreateHistoryFromDelete(ctx context.Context) error { + // check for soft delete operation and skip so it happens on update + if entx.CheckIsSoftDelete(ctx) { + return nil + } + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + file, err := client.File.Get(ctx, id) + if err != nil { + return err + } + + create := client.FileHistory.Create() + + _, err = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id). + SetCreatedAt(file.CreatedAt). + SetUpdatedAt(file.UpdatedAt). + SetCreatedBy(file.CreatedBy). + SetUpdatedBy(file.UpdatedBy). + SetDeletedAt(file.DeletedAt). + SetDeletedBy(file.DeletedBy). + SetMappingID(file.MappingID). + SetTags(file.Tags). + SetProvidedFileName(file.ProvidedFileName). + SetProvidedFileExtension(file.ProvidedFileExtension). + SetProvidedFileSize(file.ProvidedFileSize). + SetPersistedFileSize(file.PersistedFileSize). + SetDetectedMimeType(file.DetectedMimeType). + SetMd5Hash(file.Md5Hash). + SetDetectedContentType(file.DetectedContentType). + SetStoreKey(file.StoreKey). + SetCategoryType(file.CategoryType). + SetURI(file.URI). + SetStorageScheme(file.StorageScheme). + SetStorageVolume(file.StorageVolume). + SetStoragePath(file.StoragePath). + SetFileContents(file.FileContents). + Save(ctx) + if err != nil { + return err + } + } + + return nil +} + +func (m *GroupMutation) CreateHistoryFromCreate(ctx context.Context) error { + client := m.Client() + + id, ok := m.ID() + if !ok { + return idNotFoundError + } + + create := client.GroupHistory.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 deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + + 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 gravatarLogoURL, exists := m.GravatarLogoURL(); exists { + create = create.SetGravatarLogoURL(gravatarLogoURL) + } + + if logoURL, exists := m.LogoURL(); exists { + create = create.SetLogoURL(logoURL) + } + + if displayName, exists := m.DisplayName(); exists { + create = create.SetDisplayName(displayName) + } + + _, err := create.Save(ctx) + + return err +} + +func (m *GroupMutation) CreateHistoryFromUpdate(ctx context.Context) error { + // check for soft delete operation and delete instead + if entx.CheckIsSoftDelete(ctx) { + 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 { + group, err := client.Group.Get(ctx, id) + if err != nil { + return err + } + + create := client.GroupHistory.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(group.CreatedAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) + } else { + create = create.SetUpdatedAt(group.UpdatedAt) + } + + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) + } else { + create = create.SetCreatedBy(group.CreatedBy) + } + + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) + } else { + create = create.SetUpdatedBy(group.UpdatedBy) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(group.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(group.DeletedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } else { + create = create.SetMappingID(group.MappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(group.Tags) + } + + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) + } else { + create = create.SetOwnerID(group.OwnerID) + } + + if name, exists := m.Name(); exists { + create = create.SetName(name) + } else { + create = create.SetName(group.Name) + } + + if description, exists := m.Description(); exists { + create = create.SetDescription(description) + } else { + create = create.SetDescription(group.Description) + } + + if gravatarLogoURL, exists := m.GravatarLogoURL(); exists { + create = create.SetGravatarLogoURL(gravatarLogoURL) + } else { + create = create.SetGravatarLogoURL(group.GravatarLogoURL) + } + + if logoURL, exists := m.LogoURL(); exists { + create = create.SetLogoURL(logoURL) + } else { + create = create.SetLogoURL(group.LogoURL) + } + + if displayName, exists := m.DisplayName(); exists { + create = create.SetDisplayName(displayName) + } else { + create = create.SetDisplayName(group.DisplayName) + } + + if _, err := create.Save(ctx); err != nil { + return err + } + } + + return nil +} + +func (m *GroupMutation) CreateHistoryFromDelete(ctx context.Context) error { + // check for soft delete operation and skip so it happens on update + if entx.CheckIsSoftDelete(ctx) { + return nil + } + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + group, err := client.Group.Get(ctx, id) + if err != nil { + return err + } + + create := client.GroupHistory.Create() + + _, err = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id). + SetCreatedAt(group.CreatedAt). + SetUpdatedAt(group.UpdatedAt). + SetCreatedBy(group.CreatedBy). + SetUpdatedBy(group.UpdatedBy). + SetDeletedAt(group.DeletedAt). + SetDeletedBy(group.DeletedBy). + SetMappingID(group.MappingID). + SetTags(group.Tags). + SetOwnerID(group.OwnerID). + SetName(group.Name). + SetDescription(group.Description). + SetGravatarLogoURL(group.GravatarLogoURL). + SetLogoURL(group.LogoURL). + SetDisplayName(group.DisplayName). + Save(ctx) + if err != nil { + return err + } + } + + return nil +} + +func (m *GroupMembershipMutation) CreateHistoryFromCreate(ctx context.Context) error { + client := m.Client() + + id, ok := m.ID() + if !ok { + return idNotFoundError + } + + create := client.GroupMembershipHistory.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 mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + + if role, exists := m.Role(); exists { + create = create.SetRole(role) + } + + if groupID, exists := m.GroupID(); exists { + create = create.SetGroupID(groupID) + } + + if userID, exists := m.UserID(); exists { + create = create.SetUserID(userID) + } + + _, err := create.Save(ctx) + + return err +} + +func (m *GroupMembershipMutation) CreateHistoryFromUpdate(ctx context.Context) error { + // check for soft delete operation and delete instead + if entx.CheckIsSoftDelete(ctx) { + 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 { + groupmembership, err := client.GroupMembership.Get(ctx, id) + if err != nil { + return err + } + + create := client.GroupMembershipHistory.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(groupmembership.CreatedAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) + } else { + create = create.SetUpdatedAt(groupmembership.UpdatedAt) + } + + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) + } else { + create = create.SetCreatedBy(groupmembership.CreatedBy) + } + + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) + } else { + create = create.SetUpdatedBy(groupmembership.UpdatedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } else { + create = create.SetMappingID(groupmembership.MappingID) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(groupmembership.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(groupmembership.DeletedBy) + } + + if role, exists := m.Role(); exists { + create = create.SetRole(role) + } else { + create = create.SetRole(groupmembership.Role) + } + + if groupID, exists := m.GroupID(); exists { + create = create.SetGroupID(groupID) + } else { + create = create.SetGroupID(groupmembership.GroupID) + } + + if userID, exists := m.UserID(); exists { + create = create.SetUserID(userID) + } else { + create = create.SetUserID(groupmembership.UserID) + } + + if _, err := create.Save(ctx); err != nil { + return err + } + } + + return nil +} + +func (m *GroupMembershipMutation) CreateHistoryFromDelete(ctx context.Context) error { + // check for soft delete operation and skip so it happens on update + if entx.CheckIsSoftDelete(ctx) { + return nil + } + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + groupmembership, err := client.GroupMembership.Get(ctx, id) + if err != nil { + return err + } + + create := client.GroupMembershipHistory.Create() + + _, err = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id). + SetCreatedAt(groupmembership.CreatedAt). + SetUpdatedAt(groupmembership.UpdatedAt). + SetCreatedBy(groupmembership.CreatedBy). + SetUpdatedBy(groupmembership.UpdatedBy). + SetMappingID(groupmembership.MappingID). + SetDeletedAt(groupmembership.DeletedAt). + SetDeletedBy(groupmembership.DeletedBy). + SetRole(groupmembership.Role). + SetGroupID(groupmembership.GroupID). + SetUserID(groupmembership.UserID). + Save(ctx) + if err != nil { + return err + } + } + + return nil +} + +func (m *GroupSettingMutation) CreateHistoryFromCreate(ctx context.Context) error { + client := m.Client() + + id, ok := m.ID() + if !ok { + return idNotFoundError + } + + create := client.GroupSettingHistory.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 mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + + if visibility, exists := m.Visibility(); exists { + create = create.SetVisibility(visibility) + } + + if joinPolicy, exists := m.JoinPolicy(); exists { + create = create.SetJoinPolicy(joinPolicy) + } + + if syncToSlack, exists := m.SyncToSlack(); exists { + create = create.SetSyncToSlack(syncToSlack) + } + + if syncToGithub, exists := m.SyncToGithub(); exists { + create = create.SetSyncToGithub(syncToGithub) + } + + if groupID, exists := m.GroupID(); exists { + create = create.SetGroupID(groupID) + } + + _, err := create.Save(ctx) + + return err +} + +func (m *GroupSettingMutation) CreateHistoryFromUpdate(ctx context.Context) error { + // check for soft delete operation and delete instead + if entx.CheckIsSoftDelete(ctx) { + 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 { + groupsetting, err := client.GroupSetting.Get(ctx, id) + if err != nil { + return err + } + + create := client.GroupSettingHistory.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(groupsetting.CreatedAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) + } else { + create = create.SetUpdatedAt(groupsetting.UpdatedAt) + } + + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) + } else { + create = create.SetCreatedBy(groupsetting.CreatedBy) + } + + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) + } else { + create = create.SetUpdatedBy(groupsetting.UpdatedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } else { + create = create.SetMappingID(groupsetting.MappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(groupsetting.Tags) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(groupsetting.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(groupsetting.DeletedBy) + } + + if visibility, exists := m.Visibility(); exists { + create = create.SetVisibility(visibility) + } else { + create = create.SetVisibility(groupsetting.Visibility) + } + + if joinPolicy, exists := m.JoinPolicy(); exists { + create = create.SetJoinPolicy(joinPolicy) + } else { + create = create.SetJoinPolicy(groupsetting.JoinPolicy) + } + + if syncToSlack, exists := m.SyncToSlack(); exists { + create = create.SetSyncToSlack(syncToSlack) + } else { + create = create.SetSyncToSlack(groupsetting.SyncToSlack) + } + + if syncToGithub, exists := m.SyncToGithub(); exists { + create = create.SetSyncToGithub(syncToGithub) + } else { + create = create.SetSyncToGithub(groupsetting.SyncToGithub) + } + + if groupID, exists := m.GroupID(); exists { + create = create.SetGroupID(groupID) + } else { + create = create.SetGroupID(groupsetting.GroupID) + } + + if _, err := create.Save(ctx); err != nil { + return err + } + } + + return nil +} + +func (m *GroupSettingMutation) CreateHistoryFromDelete(ctx context.Context) error { + // check for soft delete operation and skip so it happens on update + if entx.CheckIsSoftDelete(ctx) { + return nil + } + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + groupsetting, err := client.GroupSetting.Get(ctx, id) + if err != nil { + return err + } + + create := client.GroupSettingHistory.Create() + + _, err = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id). + SetCreatedAt(groupsetting.CreatedAt). + SetUpdatedAt(groupsetting.UpdatedAt). + SetCreatedBy(groupsetting.CreatedBy). + SetUpdatedBy(groupsetting.UpdatedBy). + SetMappingID(groupsetting.MappingID). + SetTags(groupsetting.Tags). + SetDeletedAt(groupsetting.DeletedAt). + SetDeletedBy(groupsetting.DeletedBy). + SetVisibility(groupsetting.Visibility). + SetJoinPolicy(groupsetting.JoinPolicy). + SetSyncToSlack(groupsetting.SyncToSlack). + SetSyncToGithub(groupsetting.SyncToGithub). + SetGroupID(groupsetting.GroupID). + Save(ctx) + if err != nil { + return err + } + } + + return nil +} + +func (m *HushMutation) CreateHistoryFromCreate(ctx context.Context) error { + client := m.Client() + + id, ok := m.ID() + if !ok { + return idNotFoundError + } + + create := client.HushHistory.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 mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + + if name, exists := m.Name(); exists { + create = create.SetName(name) + } + + if description, exists := m.Description(); exists { + create = create.SetDescription(description) + } + + if kind, exists := m.Kind(); exists { + create = create.SetKind(kind) + } + + if secretName, exists := m.SecretName(); exists { + create = create.SetSecretName(secretName) + } + + if secretValue, exists := m.SecretValue(); exists { + create = create.SetSecretValue(secretValue) + } + + _, err := create.Save(ctx) + + return err +} + +func (m *HushMutation) CreateHistoryFromUpdate(ctx context.Context) error { + // check for soft delete operation and delete instead + if entx.CheckIsSoftDelete(ctx) { + 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 { + hush, err := client.Hush.Get(ctx, id) + if err != nil { + return err + } + + create := client.HushHistory.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(hush.CreatedAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) + } else { + create = create.SetUpdatedAt(hush.UpdatedAt) + } + + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) + } else { + create = create.SetCreatedBy(hush.CreatedBy) + } + + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) + } else { + create = create.SetUpdatedBy(hush.UpdatedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } else { + create = create.SetMappingID(hush.MappingID) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(hush.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(hush.DeletedBy) + } + + if name, exists := m.Name(); exists { + create = create.SetName(name) + } else { + create = create.SetName(hush.Name) + } + + if description, exists := m.Description(); exists { + create = create.SetDescription(description) + } else { + create = create.SetDescription(hush.Description) + } + + if kind, exists := m.Kind(); exists { + create = create.SetKind(kind) + } else { + create = create.SetKind(hush.Kind) + } + + if secretName, exists := m.SecretName(); exists { + create = create.SetSecretName(secretName) + } else { + create = create.SetSecretName(hush.SecretName) + } + + if secretValue, exists := m.SecretValue(); exists { + create = create.SetSecretValue(secretValue) + } else { + create = create.SetSecretValue(hush.SecretValue) + } + + if _, err := create.Save(ctx); err != nil { + return err + } + } + + return nil +} + +func (m *HushMutation) CreateHistoryFromDelete(ctx context.Context) error { + // check for soft delete operation and skip so it happens on update + if entx.CheckIsSoftDelete(ctx) { + return nil + } + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + hush, err := client.Hush.Get(ctx, id) + if err != nil { + return err + } + + create := client.HushHistory.Create() + + _, err = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id). + SetCreatedAt(hush.CreatedAt). + SetUpdatedAt(hush.UpdatedAt). + SetCreatedBy(hush.CreatedBy). + SetUpdatedBy(hush.UpdatedBy). + SetMappingID(hush.MappingID). + SetDeletedAt(hush.DeletedAt). + SetDeletedBy(hush.DeletedBy). + SetName(hush.Name). + SetDescription(hush.Description). + SetKind(hush.Kind). + SetSecretName(hush.SecretName). + SetSecretValue(hush.SecretValue). + Save(ctx) + if err != nil { + return err + } + } + + return nil +} + +func (m *IntegrationMutation) CreateHistoryFromCreate(ctx context.Context) error { + client := m.Client() + + id, ok := m.ID() + if !ok { + return idNotFoundError + } + + create := client.IntegrationHistory.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 mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + + 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 kind, exists := m.Kind(); exists { + create = create.SetKind(kind) + } + + _, err := create.Save(ctx) + + return err +} + +func (m *IntegrationMutation) CreateHistoryFromUpdate(ctx context.Context) error { + // check for soft delete operation and delete instead + if entx.CheckIsSoftDelete(ctx) { + 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 { + integration, err := client.Integration.Get(ctx, id) + if err != nil { + return err + } + + create := client.IntegrationHistory.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(integration.CreatedAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) + } else { + create = create.SetUpdatedAt(integration.UpdatedAt) + } + + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) + } else { + create = create.SetCreatedBy(integration.CreatedBy) + } + + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) + } else { + create = create.SetUpdatedBy(integration.UpdatedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } else { + create = create.SetMappingID(integration.MappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(integration.Tags) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(integration.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(integration.DeletedBy) + } + + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) + } else { + create = create.SetOwnerID(integration.OwnerID) + } + + if name, exists := m.Name(); exists { + create = create.SetName(name) + } else { + create = create.SetName(integration.Name) + } + + if description, exists := m.Description(); exists { + create = create.SetDescription(description) + } else { + create = create.SetDescription(integration.Description) + } + + if kind, exists := m.Kind(); exists { + create = create.SetKind(kind) + } else { + create = create.SetKind(integration.Kind) + } + + if _, err := create.Save(ctx); err != nil { + return err + } + } + + return nil +} + +func (m *IntegrationMutation) CreateHistoryFromDelete(ctx context.Context) error { + // check for soft delete operation and skip so it happens on update + if entx.CheckIsSoftDelete(ctx) { + return nil + } + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + integration, err := client.Integration.Get(ctx, id) + if err != nil { + return err + } + + create := client.IntegrationHistory.Create() + + _, err = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id). + SetCreatedAt(integration.CreatedAt). + SetUpdatedAt(integration.UpdatedAt). + SetCreatedBy(integration.CreatedBy). + SetUpdatedBy(integration.UpdatedBy). + SetMappingID(integration.MappingID). + SetTags(integration.Tags). + SetDeletedAt(integration.DeletedAt). + SetDeletedBy(integration.DeletedBy). + SetOwnerID(integration.OwnerID). + SetName(integration.Name). + SetDescription(integration.Description). + SetKind(integration.Kind). + Save(ctx) + if err != nil { + return err + } + } + + return nil +} + +func (m *InternalPolicyMutation) CreateHistoryFromCreate(ctx context.Context) error { + client := m.Client() + + id, ok := m.ID() + if !ok { + return idNotFoundError + } + + create := client.InternalPolicyHistory.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 deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } + + if name, exists := m.Name(); exists { + create = create.SetName(name) + } + + if description, exists := m.Description(); exists { + create = create.SetDescription(description) + } + + if status, exists := m.Status(); exists { + create = create.SetStatus(status) + } + + if policyType, exists := m.PolicyType(); exists { + create = create.SetPolicyType(policyType) + } + + if version, exists := m.Version(); exists { + create = create.SetVersion(version) + } + + if purposeAndScope, exists := m.PurposeAndScope(); exists { + create = create.SetPurposeAndScope(purposeAndScope) + } + + if background, exists := m.Background(); exists { + create = create.SetBackground(background) + } + + if details, exists := m.Details(); exists { + create = create.SetDetails(details) + } + + _, err := create.Save(ctx) + + return err +} + +func (m *InternalPolicyMutation) CreateHistoryFromUpdate(ctx context.Context) error { + // check for soft delete operation and delete instead + if entx.CheckIsSoftDelete(ctx) { + 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 { + internalpolicy, err := client.InternalPolicy.Get(ctx, id) + if err != nil { + return err + } + + create := client.InternalPolicyHistory.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(internalpolicy.CreatedAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetTags(file.Tags) + create = create.SetUpdatedAt(internalpolicy.UpdatedAt) } - if providedFileName, exists := m.ProvidedFileName(); exists { - create = create.SetProvidedFileName(providedFileName) + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) } else { - create = create.SetProvidedFileName(file.ProvidedFileName) + create = create.SetCreatedBy(internalpolicy.CreatedBy) } - if providedFileExtension, exists := m.ProvidedFileExtension(); exists { - create = create.SetProvidedFileExtension(providedFileExtension) + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetProvidedFileExtension(file.ProvidedFileExtension) + create = create.SetUpdatedBy(internalpolicy.UpdatedBy) } - if providedFileSize, exists := m.ProvidedFileSize(); exists { - create = create.SetProvidedFileSize(providedFileSize) + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) } else { - create = create.SetProvidedFileSize(file.ProvidedFileSize) + create = create.SetDeletedAt(internalpolicy.DeletedAt) } - if persistedFileSize, exists := m.PersistedFileSize(); exists { - create = create.SetPersistedFileSize(persistedFileSize) + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) } else { - create = create.SetPersistedFileSize(file.PersistedFileSize) + create = create.SetDeletedBy(internalpolicy.DeletedBy) } - if detectedMimeType, exists := m.DetectedMimeType(); exists { - create = create.SetDetectedMimeType(detectedMimeType) + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) } else { - create = create.SetDetectedMimeType(file.DetectedMimeType) + create = create.SetMappingID(internalpolicy.MappingID) } - if md5Hash, exists := m.Md5Hash(); exists { - create = create.SetMd5Hash(md5Hash) + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) } else { - create = create.SetMd5Hash(file.Md5Hash) + create = create.SetTags(internalpolicy.Tags) } - if detectedContentType, exists := m.DetectedContentType(); exists { - create = create.SetDetectedContentType(detectedContentType) + if name, exists := m.Name(); exists { + create = create.SetName(name) } else { - create = create.SetDetectedContentType(file.DetectedContentType) + create = create.SetName(internalpolicy.Name) } - if storeKey, exists := m.StoreKey(); exists { - create = create.SetStoreKey(storeKey) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } else { - create = create.SetStoreKey(file.StoreKey) + create = create.SetDescription(internalpolicy.Description) } - if categoryType, exists := m.CategoryType(); exists { - create = create.SetCategoryType(categoryType) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } else { - create = create.SetCategoryType(file.CategoryType) + create = create.SetStatus(internalpolicy.Status) } - if uri, exists := m.URI(); exists { - create = create.SetURI(uri) + if policyType, exists := m.PolicyType(); exists { + create = create.SetPolicyType(policyType) } else { - create = create.SetURI(file.URI) + create = create.SetPolicyType(internalpolicy.PolicyType) } - if storageScheme, exists := m.StorageScheme(); exists { - create = create.SetStorageScheme(storageScheme) + if version, exists := m.Version(); exists { + create = create.SetVersion(version) } else { - create = create.SetStorageScheme(file.StorageScheme) + create = create.SetVersion(internalpolicy.Version) } - if storageVolume, exists := m.StorageVolume(); exists { - create = create.SetStorageVolume(storageVolume) + if purposeAndScope, exists := m.PurposeAndScope(); exists { + create = create.SetPurposeAndScope(purposeAndScope) } else { - create = create.SetStorageVolume(file.StorageVolume) + create = create.SetPurposeAndScope(internalpolicy.PurposeAndScope) } - if storagePath, exists := m.StoragePath(); exists { - create = create.SetStoragePath(storagePath) + if background, exists := m.Background(); exists { + create = create.SetBackground(background) } else { - create = create.SetStoragePath(file.StoragePath) + create = create.SetBackground(internalpolicy.Background) } - if fileContents, exists := m.FileContents(); exists { - create = create.SetFileContents(fileContents) + if details, exists := m.Details(); exists { + create = create.SetDetails(details) } else { - create = create.SetFileContents(file.FileContents) + create = create.SetDetails(internalpolicy.Details) } if _, err := create.Save(ctx); err != nil { @@ -2375,7 +4596,7 @@ func (m *FileMutation) CreateHistoryFromUpdate(ctx context.Context) error { return nil } -func (m *FileMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *InternalPolicyMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -2388,39 +4609,33 @@ func (m *FileMutation) CreateHistoryFromDelete(ctx context.Context) error { } for _, id := range ids { - file, err := client.File.Get(ctx, id) + internalpolicy, err := client.InternalPolicy.Get(ctx, id) if err != nil { return err } - create := client.FileHistory.Create() + create := client.InternalPolicyHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(file.CreatedAt). - SetUpdatedAt(file.UpdatedAt). - SetCreatedBy(file.CreatedBy). - SetUpdatedBy(file.UpdatedBy). - SetDeletedAt(file.DeletedAt). - SetDeletedBy(file.DeletedBy). - SetMappingID(file.MappingID). - SetTags(file.Tags). - SetProvidedFileName(file.ProvidedFileName). - SetProvidedFileExtension(file.ProvidedFileExtension). - SetProvidedFileSize(file.ProvidedFileSize). - SetPersistedFileSize(file.PersistedFileSize). - SetDetectedMimeType(file.DetectedMimeType). - SetMd5Hash(file.Md5Hash). - SetDetectedContentType(file.DetectedContentType). - SetStoreKey(file.StoreKey). - SetCategoryType(file.CategoryType). - SetURI(file.URI). - SetStorageScheme(file.StorageScheme). - SetStorageVolume(file.StorageVolume). - SetStoragePath(file.StoragePath). - SetFileContents(file.FileContents). + SetCreatedAt(internalpolicy.CreatedAt). + SetUpdatedAt(internalpolicy.UpdatedAt). + SetCreatedBy(internalpolicy.CreatedBy). + SetUpdatedBy(internalpolicy.UpdatedBy). + SetDeletedAt(internalpolicy.DeletedAt). + SetDeletedBy(internalpolicy.DeletedBy). + SetMappingID(internalpolicy.MappingID). + SetTags(internalpolicy.Tags). + SetName(internalpolicy.Name). + SetDescription(internalpolicy.Description). + SetStatus(internalpolicy.Status). + SetPolicyType(internalpolicy.PolicyType). + SetVersion(internalpolicy.Version). + SetPurposeAndScope(internalpolicy.PurposeAndScope). + SetBackground(internalpolicy.Background). + SetDetails(internalpolicy.Details). Save(ctx) if err != nil { return err @@ -2430,7 +4645,7 @@ func (m *FileMutation) CreateHistoryFromDelete(ctx context.Context) error { return nil } -func (m *GroupMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *NarrativeMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -2438,7 +4653,7 @@ func (m *GroupMutation) CreateHistoryFromCreate(ctx context.Context) error { return idNotFoundError } - create := client.GroupHistory.Create() + create := client.NarrativeHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -2477,10 +4692,6 @@ func (m *GroupMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetTags(tags) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) - } - if name, exists := m.Name(); exists { create = create.SetName(name) } @@ -2489,16 +4700,12 @@ func (m *GroupMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetDescription(description) } - if gravatarLogoURL, exists := m.GravatarLogoURL(); exists { - create = create.SetGravatarLogoURL(gravatarLogoURL) - } - - if logoURL, exists := m.LogoURL(); exists { - create = create.SetLogoURL(logoURL) + if satisfies, exists := m.Satisfies(); exists { + create = create.SetSatisfies(satisfies) } - if displayName, exists := m.DisplayName(); exists { - create = create.SetDisplayName(displayName) + if details, exists := m.Details(); exists { + create = create.SetDetails(details) } _, err := create.Save(ctx) @@ -2506,7 +4713,7 @@ func (m *GroupMutation) CreateHistoryFromCreate(ctx context.Context) error { return err } -func (m *GroupMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *NarrativeMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -2519,12 +4726,12 @@ func (m *GroupMutation) CreateHistoryFromUpdate(ctx context.Context) error { } for _, id := range ids { - group, err := client.Group.Get(ctx, id) + narrative, err := client.Narrative.Get(ctx, id) if err != nil { return err } - create := client.GroupHistory.Create() + create := client.NarrativeHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -2534,85 +4741,73 @@ func (m *GroupMutation) CreateHistoryFromUpdate(ctx context.Context) error { if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(group.CreatedAt) + create = create.SetCreatedAt(narrative.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(group.UpdatedAt) + create = create.SetUpdatedAt(narrative.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(group.CreatedBy) + create = create.SetCreatedBy(narrative.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(group.UpdatedBy) + create = create.SetUpdatedBy(narrative.UpdatedBy) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(group.DeletedAt) + create = create.SetDeletedAt(narrative.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(group.DeletedBy) + create = create.SetDeletedBy(narrative.DeletedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(group.MappingID) + create = create.SetMappingID(narrative.MappingID) } if tags, exists := m.Tags(); exists { create = create.SetTags(tags) } else { - create = create.SetTags(group.Tags) - } - - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) - } else { - create = create.SetOwnerID(group.OwnerID) + create = create.SetTags(narrative.Tags) } if name, exists := m.Name(); exists { create = create.SetName(name) } else { - create = create.SetName(group.Name) + create = create.SetName(narrative.Name) } if description, exists := m.Description(); exists { create = create.SetDescription(description) } else { - create = create.SetDescription(group.Description) - } - - if gravatarLogoURL, exists := m.GravatarLogoURL(); exists { - create = create.SetGravatarLogoURL(gravatarLogoURL) - } else { - create = create.SetGravatarLogoURL(group.GravatarLogoURL) + create = create.SetDescription(narrative.Description) } - if logoURL, exists := m.LogoURL(); exists { - create = create.SetLogoURL(logoURL) + if satisfies, exists := m.Satisfies(); exists { + create = create.SetSatisfies(satisfies) } else { - create = create.SetLogoURL(group.LogoURL) + create = create.SetSatisfies(narrative.Satisfies) } - if displayName, exists := m.DisplayName(); exists { - create = create.SetDisplayName(displayName) + if details, exists := m.Details(); exists { + create = create.SetDetails(details) } else { - create = create.SetDisplayName(group.DisplayName) + create = create.SetDetails(narrative.Details) } if _, err := create.Save(ctx); err != nil { @@ -2623,7 +4818,7 @@ func (m *GroupMutation) CreateHistoryFromUpdate(ctx context.Context) error { return nil } -func (m *GroupMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *NarrativeMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -2636,31 +4831,29 @@ func (m *GroupMutation) CreateHistoryFromDelete(ctx context.Context) error { } for _, id := range ids { - group, err := client.Group.Get(ctx, id) + narrative, err := client.Narrative.Get(ctx, id) if err != nil { return err } - create := client.GroupHistory.Create() + create := client.NarrativeHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(group.CreatedAt). - SetUpdatedAt(group.UpdatedAt). - SetCreatedBy(group.CreatedBy). - SetUpdatedBy(group.UpdatedBy). - SetDeletedAt(group.DeletedAt). - SetDeletedBy(group.DeletedBy). - SetMappingID(group.MappingID). - SetTags(group.Tags). - SetOwnerID(group.OwnerID). - SetName(group.Name). - SetDescription(group.Description). - SetGravatarLogoURL(group.GravatarLogoURL). - SetLogoURL(group.LogoURL). - SetDisplayName(group.DisplayName). + SetCreatedAt(narrative.CreatedAt). + SetUpdatedAt(narrative.UpdatedAt). + SetCreatedBy(narrative.CreatedBy). + SetUpdatedBy(narrative.UpdatedBy). + SetDeletedAt(narrative.DeletedAt). + SetDeletedBy(narrative.DeletedBy). + SetMappingID(narrative.MappingID). + SetTags(narrative.Tags). + SetName(narrative.Name). + SetDescription(narrative.Description). + SetSatisfies(narrative.Satisfies). + SetDetails(narrative.Details). Save(ctx) if err != nil { return err @@ -2670,7 +4863,7 @@ func (m *GroupMutation) CreateHistoryFromDelete(ctx context.Context) error { return nil } -func (m *GroupMembershipMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *NoteMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -2678,7 +4871,7 @@ func (m *GroupMembershipMutation) CreateHistoryFromCreate(ctx context.Context) e return idNotFoundError } - create := client.GroupMembershipHistory.Create() + create := client.NoteHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -2713,16 +4906,16 @@ func (m *GroupMembershipMutation) CreateHistoryFromCreate(ctx context.Context) e create = create.SetDeletedBy(deletedBy) } - if role, exists := m.Role(); exists { - create = create.SetRole(role) + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) } - if groupID, exists := m.GroupID(); exists { - create = create.SetGroupID(groupID) + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) } - if userID, exists := m.UserID(); exists { - create = create.SetUserID(userID) + if text, exists := m.Text(); exists { + create = create.SetText(text) } _, err := create.Save(ctx) @@ -2730,7 +4923,7 @@ func (m *GroupMembershipMutation) CreateHistoryFromCreate(ctx context.Context) e return err } -func (m *GroupMembershipMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *NoteMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -2743,12 +4936,12 @@ func (m *GroupMembershipMutation) CreateHistoryFromUpdate(ctx context.Context) e } for _, id := range ids { - groupmembership, err := client.GroupMembership.Get(ctx, id) + note, err := client.Note.Get(ctx, id) if err != nil { return err } - create := client.GroupMembershipHistory.Create() + create := client.NoteHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -2758,61 +4951,61 @@ func (m *GroupMembershipMutation) CreateHistoryFromUpdate(ctx context.Context) e if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(groupmembership.CreatedAt) + create = create.SetCreatedAt(note.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(groupmembership.UpdatedAt) + create = create.SetUpdatedAt(note.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(groupmembership.CreatedBy) + create = create.SetCreatedBy(note.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(groupmembership.UpdatedBy) + create = create.SetUpdatedBy(note.UpdatedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(groupmembership.MappingID) + create = create.SetMappingID(note.MappingID) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(groupmembership.DeletedAt) + create = create.SetDeletedAt(note.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(groupmembership.DeletedBy) + create = create.SetDeletedBy(note.DeletedBy) } - if role, exists := m.Role(); exists { - create = create.SetRole(role) + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) } else { - create = create.SetRole(groupmembership.Role) + create = create.SetTags(note.Tags) } - if groupID, exists := m.GroupID(); exists { - create = create.SetGroupID(groupID) + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) } else { - create = create.SetGroupID(groupmembership.GroupID) + create = create.SetOwnerID(note.OwnerID) } - if userID, exists := m.UserID(); exists { - create = create.SetUserID(userID) + if text, exists := m.Text(); exists { + create = create.SetText(text) } else { - create = create.SetUserID(groupmembership.UserID) + create = create.SetText(note.Text) } if _, err := create.Save(ctx); err != nil { @@ -2823,7 +5016,7 @@ func (m *GroupMembershipMutation) CreateHistoryFromUpdate(ctx context.Context) e return nil } -func (m *GroupMembershipMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *NoteMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -2836,27 +5029,27 @@ func (m *GroupMembershipMutation) CreateHistoryFromDelete(ctx context.Context) e } for _, id := range ids { - groupmembership, err := client.GroupMembership.Get(ctx, id) + note, err := client.Note.Get(ctx, id) if err != nil { return err } - create := client.GroupMembershipHistory.Create() + create := client.NoteHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(groupmembership.CreatedAt). - SetUpdatedAt(groupmembership.UpdatedAt). - SetCreatedBy(groupmembership.CreatedBy). - SetUpdatedBy(groupmembership.UpdatedBy). - SetMappingID(groupmembership.MappingID). - SetDeletedAt(groupmembership.DeletedAt). - SetDeletedBy(groupmembership.DeletedBy). - SetRole(groupmembership.Role). - SetGroupID(groupmembership.GroupID). - SetUserID(groupmembership.UserID). + SetCreatedAt(note.CreatedAt). + SetUpdatedAt(note.UpdatedAt). + SetCreatedBy(note.CreatedBy). + SetUpdatedBy(note.UpdatedBy). + SetMappingID(note.MappingID). + SetDeletedAt(note.DeletedAt). + SetDeletedBy(note.DeletedBy). + SetTags(note.Tags). + SetOwnerID(note.OwnerID). + SetText(note.Text). Save(ctx) if err != nil { return err @@ -2866,7 +5059,7 @@ func (m *GroupMembershipMutation) CreateHistoryFromDelete(ctx context.Context) e return nil } -func (m *GroupSettingMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *OauthProviderMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -2874,7 +5067,7 @@ func (m *GroupSettingMutation) CreateHistoryFromCreate(ctx context.Context) erro return idNotFoundError } - create := client.GroupSettingHistory.Create() + create := client.OauthProviderHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -2897,40 +5090,60 @@ func (m *GroupSettingMutation) CreateHistoryFromCreate(ctx context.Context) erro create = create.SetUpdatedBy(updatedBy) } - if mappingID, exists := m.MappingID(); exists { - create = create.SetMappingID(mappingID) + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) + } + + if name, exists := m.Name(); exists { + create = create.SetName(name) } - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) + if clientID, exists := m.ClientID(); exists { + create = create.SetClientID(clientID) } - if deletedAt, exists := m.DeletedAt(); exists { - create = create.SetDeletedAt(deletedAt) + if clientSecret, exists := m.ClientSecret(); exists { + create = create.SetClientSecret(clientSecret) } - if deletedBy, exists := m.DeletedBy(); exists { - create = create.SetDeletedBy(deletedBy) + if redirectURL, exists := m.RedirectURL(); exists { + create = create.SetRedirectURL(redirectURL) } - if visibility, exists := m.Visibility(); exists { - create = create.SetVisibility(visibility) + if scopes, exists := m.Scopes(); exists { + create = create.SetScopes(scopes) } - if joinPolicy, exists := m.JoinPolicy(); exists { - create = create.SetJoinPolicy(joinPolicy) + if authURL, exists := m.AuthURL(); exists { + create = create.SetAuthURL(authURL) } - if syncToSlack, exists := m.SyncToSlack(); exists { - create = create.SetSyncToSlack(syncToSlack) + if tokenURL, exists := m.TokenURL(); exists { + create = create.SetTokenURL(tokenURL) } - if syncToGithub, exists := m.SyncToGithub(); exists { - create = create.SetSyncToGithub(syncToGithub) + if authStyle, exists := m.AuthStyle(); exists { + create = create.SetAuthStyle(authStyle) } - if groupID, exists := m.GroupID(); exists { - create = create.SetGroupID(groupID) + if infoURL, exists := m.InfoURL(); exists { + create = create.SetInfoURL(infoURL) } _, err := create.Save(ctx) @@ -2938,7 +5151,7 @@ func (m *GroupSettingMutation) CreateHistoryFromCreate(ctx context.Context) erro return err } -func (m *GroupSettingMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *OauthProviderMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -2951,12 +5164,12 @@ func (m *GroupSettingMutation) CreateHistoryFromUpdate(ctx context.Context) erro } for _, id := range ids { - groupsetting, err := client.GroupSetting.Get(ctx, id) + oauthprovider, err := client.OauthProvider.Get(ctx, id) if err != nil { return err } - create := client.GroupSettingHistory.Create() + create := client.OauthProviderHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -2966,79 +5179,109 @@ func (m *GroupSettingMutation) CreateHistoryFromUpdate(ctx context.Context) erro if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(groupsetting.CreatedAt) + create = create.SetCreatedAt(oauthprovider.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(groupsetting.UpdatedAt) + create = create.SetUpdatedAt(oauthprovider.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(groupsetting.CreatedBy) + create = create.SetCreatedBy(oauthprovider.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(groupsetting.UpdatedBy) + create = create.SetUpdatedBy(oauthprovider.UpdatedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(groupsetting.MappingID) + create = create.SetMappingID(oauthprovider.MappingID) } if tags, exists := m.Tags(); exists { create = create.SetTags(tags) } else { - create = create.SetTags(groupsetting.Tags) + create = create.SetTags(oauthprovider.Tags) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(groupsetting.DeletedAt) + create = create.SetDeletedAt(oauthprovider.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(groupsetting.DeletedBy) + create = create.SetDeletedBy(oauthprovider.DeletedBy) } - if visibility, exists := m.Visibility(); exists { - create = create.SetVisibility(visibility) + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) } else { - create = create.SetVisibility(groupsetting.Visibility) + create = create.SetOwnerID(oauthprovider.OwnerID) } - if joinPolicy, exists := m.JoinPolicy(); exists { - create = create.SetJoinPolicy(joinPolicy) + if name, exists := m.Name(); exists { + create = create.SetName(name) } else { - create = create.SetJoinPolicy(groupsetting.JoinPolicy) + create = create.SetName(oauthprovider.Name) } - if syncToSlack, exists := m.SyncToSlack(); exists { - create = create.SetSyncToSlack(syncToSlack) + if clientID, exists := m.ClientID(); exists { + create = create.SetClientID(clientID) } else { - create = create.SetSyncToSlack(groupsetting.SyncToSlack) + create = create.SetClientID(oauthprovider.ClientID) } - if syncToGithub, exists := m.SyncToGithub(); exists { - create = create.SetSyncToGithub(syncToGithub) + if clientSecret, exists := m.ClientSecret(); exists { + create = create.SetClientSecret(clientSecret) } else { - create = create.SetSyncToGithub(groupsetting.SyncToGithub) + create = create.SetClientSecret(oauthprovider.ClientSecret) } - if groupID, exists := m.GroupID(); exists { - create = create.SetGroupID(groupID) + if redirectURL, exists := m.RedirectURL(); exists { + create = create.SetRedirectURL(redirectURL) } else { - create = create.SetGroupID(groupsetting.GroupID) + create = create.SetRedirectURL(oauthprovider.RedirectURL) + } + + if scopes, exists := m.Scopes(); exists { + create = create.SetScopes(scopes) + } else { + create = create.SetScopes(oauthprovider.Scopes) + } + + if authURL, exists := m.AuthURL(); exists { + create = create.SetAuthURL(authURL) + } else { + create = create.SetAuthURL(oauthprovider.AuthURL) + } + + if tokenURL, exists := m.TokenURL(); exists { + create = create.SetTokenURL(tokenURL) + } else { + create = create.SetTokenURL(oauthprovider.TokenURL) + } + + if authStyle, exists := m.AuthStyle(); exists { + create = create.SetAuthStyle(authStyle) + } else { + create = create.SetAuthStyle(oauthprovider.AuthStyle) + } + + if infoURL, exists := m.InfoURL(); exists { + create = create.SetInfoURL(infoURL) + } else { + create = create.SetInfoURL(oauthprovider.InfoURL) } if _, err := create.Save(ctx); err != nil { @@ -3049,7 +5292,7 @@ func (m *GroupSettingMutation) CreateHistoryFromUpdate(ctx context.Context) erro return nil } -func (m *GroupSettingMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *OauthProviderMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -3062,30 +5305,35 @@ func (m *GroupSettingMutation) CreateHistoryFromDelete(ctx context.Context) erro } for _, id := range ids { - groupsetting, err := client.GroupSetting.Get(ctx, id) + oauthprovider, err := client.OauthProvider.Get(ctx, id) if err != nil { return err } - create := client.GroupSettingHistory.Create() + create := client.OauthProviderHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(groupsetting.CreatedAt). - SetUpdatedAt(groupsetting.UpdatedAt). - SetCreatedBy(groupsetting.CreatedBy). - SetUpdatedBy(groupsetting.UpdatedBy). - SetMappingID(groupsetting.MappingID). - SetTags(groupsetting.Tags). - SetDeletedAt(groupsetting.DeletedAt). - SetDeletedBy(groupsetting.DeletedBy). - SetVisibility(groupsetting.Visibility). - SetJoinPolicy(groupsetting.JoinPolicy). - SetSyncToSlack(groupsetting.SyncToSlack). - SetSyncToGithub(groupsetting.SyncToGithub). - SetGroupID(groupsetting.GroupID). + SetCreatedAt(oauthprovider.CreatedAt). + SetUpdatedAt(oauthprovider.UpdatedAt). + SetCreatedBy(oauthprovider.CreatedBy). + SetUpdatedBy(oauthprovider.UpdatedBy). + SetMappingID(oauthprovider.MappingID). + SetTags(oauthprovider.Tags). + SetDeletedAt(oauthprovider.DeletedAt). + SetDeletedBy(oauthprovider.DeletedBy). + SetOwnerID(oauthprovider.OwnerID). + SetName(oauthprovider.Name). + SetClientID(oauthprovider.ClientID). + SetClientSecret(oauthprovider.ClientSecret). + SetRedirectURL(oauthprovider.RedirectURL). + SetScopes(oauthprovider.Scopes). + SetAuthURL(oauthprovider.AuthURL). + SetTokenURL(oauthprovider.TokenURL). + SetAuthStyle(oauthprovider.AuthStyle). + SetInfoURL(oauthprovider.InfoURL). Save(ctx) if err != nil { return err @@ -3095,7 +5343,7 @@ func (m *GroupSettingMutation) CreateHistoryFromDelete(ctx context.Context) erro return nil } -func (m *HushMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *OrgMembershipMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -3103,7 +5351,7 @@ func (m *HushMutation) CreateHistoryFromCreate(ctx context.Context) error { return idNotFoundError } - create := client.HushHistory.Create() + create := client.OrgMembershipHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -3138,24 +5386,16 @@ func (m *HushMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetDeletedBy(deletedBy) } - if name, exists := m.Name(); exists { - create = create.SetName(name) - } - - if description, exists := m.Description(); exists { - create = create.SetDescription(description) - } - - if kind, exists := m.Kind(); exists { - create = create.SetKind(kind) + if role, exists := m.Role(); exists { + create = create.SetRole(role) } - if secretName, exists := m.SecretName(); exists { - create = create.SetSecretName(secretName) + if organizationID, exists := m.OrganizationID(); exists { + create = create.SetOrganizationID(organizationID) } - if secretValue, exists := m.SecretValue(); exists { - create = create.SetSecretValue(secretValue) + if userID, exists := m.UserID(); exists { + create = create.SetUserID(userID) } _, err := create.Save(ctx) @@ -3163,7 +5403,7 @@ func (m *HushMutation) CreateHistoryFromCreate(ctx context.Context) error { return err } -func (m *HushMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *OrgMembershipMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -3176,12 +5416,12 @@ func (m *HushMutation) CreateHistoryFromUpdate(ctx context.Context) error { } for _, id := range ids { - hush, err := client.Hush.Get(ctx, id) + orgmembership, err := client.OrgMembership.Get(ctx, id) if err != nil { return err } - create := client.HushHistory.Create() + create := client.OrgMembershipHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -3191,73 +5431,61 @@ func (m *HushMutation) CreateHistoryFromUpdate(ctx context.Context) error { if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(hush.CreatedAt) + create = create.SetCreatedAt(orgmembership.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(hush.UpdatedAt) + create = create.SetUpdatedAt(orgmembership.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(hush.CreatedBy) + create = create.SetCreatedBy(orgmembership.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(hush.UpdatedBy) + create = create.SetUpdatedBy(orgmembership.UpdatedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(hush.MappingID) + create = create.SetMappingID(orgmembership.MappingID) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(hush.DeletedAt) + create = create.SetDeletedAt(orgmembership.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(hush.DeletedBy) - } - - if name, exists := m.Name(); exists { - create = create.SetName(name) - } else { - create = create.SetName(hush.Name) - } - - if description, exists := m.Description(); exists { - create = create.SetDescription(description) - } else { - create = create.SetDescription(hush.Description) + create = create.SetDeletedBy(orgmembership.DeletedBy) } - if kind, exists := m.Kind(); exists { - create = create.SetKind(kind) + if role, exists := m.Role(); exists { + create = create.SetRole(role) } else { - create = create.SetKind(hush.Kind) + create = create.SetRole(orgmembership.Role) } - if secretName, exists := m.SecretName(); exists { - create = create.SetSecretName(secretName) + if organizationID, exists := m.OrganizationID(); exists { + create = create.SetOrganizationID(organizationID) } else { - create = create.SetSecretName(hush.SecretName) + create = create.SetOrganizationID(orgmembership.OrganizationID) } - if secretValue, exists := m.SecretValue(); exists { - create = create.SetSecretValue(secretValue) + if userID, exists := m.UserID(); exists { + create = create.SetUserID(userID) } else { - create = create.SetSecretValue(hush.SecretValue) + create = create.SetUserID(orgmembership.UserID) } if _, err := create.Save(ctx); err != nil { @@ -3268,7 +5496,7 @@ func (m *HushMutation) CreateHistoryFromUpdate(ctx context.Context) error { return nil } -func (m *HushMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *OrgMembershipMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -3281,29 +5509,27 @@ func (m *HushMutation) CreateHistoryFromDelete(ctx context.Context) error { } for _, id := range ids { - hush, err := client.Hush.Get(ctx, id) + orgmembership, err := client.OrgMembership.Get(ctx, id) if err != nil { return err } - create := client.HushHistory.Create() + create := client.OrgMembershipHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(hush.CreatedAt). - SetUpdatedAt(hush.UpdatedAt). - SetCreatedBy(hush.CreatedBy). - SetUpdatedBy(hush.UpdatedBy). - SetMappingID(hush.MappingID). - SetDeletedAt(hush.DeletedAt). - SetDeletedBy(hush.DeletedBy). - SetName(hush.Name). - SetDescription(hush.Description). - SetKind(hush.Kind). - SetSecretName(hush.SecretName). - SetSecretValue(hush.SecretValue). + SetCreatedAt(orgmembership.CreatedAt). + SetUpdatedAt(orgmembership.UpdatedAt). + SetCreatedBy(orgmembership.CreatedBy). + SetUpdatedBy(orgmembership.UpdatedBy). + SetMappingID(orgmembership.MappingID). + SetDeletedAt(orgmembership.DeletedAt). + SetDeletedBy(orgmembership.DeletedBy). + SetRole(orgmembership.Role). + SetOrganizationID(orgmembership.OrganizationID). + SetUserID(orgmembership.UserID). Save(ctx) if err != nil { return err @@ -3313,7 +5539,7 @@ func (m *HushMutation) CreateHistoryFromDelete(ctx context.Context) error { return nil } -func (m *IntegrationMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *OrganizationMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -3321,7 +5547,7 @@ func (m *IntegrationMutation) CreateHistoryFromCreate(ctx context.Context) error return idNotFoundError } - create := client.IntegrationHistory.Create() + create := client.OrganizationHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -3360,20 +5586,32 @@ func (m *IntegrationMutation) CreateHistoryFromCreate(ctx context.Context) error create = create.SetDeletedBy(deletedBy) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) - } - if name, exists := m.Name(); exists { create = create.SetName(name) } + if displayName, exists := m.DisplayName(); exists { + create = create.SetDisplayName(displayName) + } + if description, exists := m.Description(); exists { create = create.SetDescription(description) } - if kind, exists := m.Kind(); exists { - create = create.SetKind(kind) + if parentOrganizationID, exists := m.ParentOrganizationID(); exists { + create = create.SetParentOrganizationID(parentOrganizationID) + } + + if personalOrg, exists := m.PersonalOrg(); exists { + create = create.SetPersonalOrg(personalOrg) + } + + if avatarRemoteURL, exists := m.AvatarRemoteURL(); exists { + create = create.SetNillableAvatarRemoteURL(&avatarRemoteURL) + } + + if dedicatedDb, exists := m.DedicatedDb(); exists { + create = create.SetDedicatedDb(dedicatedDb) } _, err := create.Save(ctx) @@ -3381,7 +5619,7 @@ func (m *IntegrationMutation) CreateHistoryFromCreate(ctx context.Context) error return err } -func (m *IntegrationMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *OrganizationMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -3394,12 +5632,12 @@ func (m *IntegrationMutation) CreateHistoryFromUpdate(ctx context.Context) error } for _, id := range ids { - integration, err := client.Integration.Get(ctx, id) + organization, err := client.Organization.Get(ctx, id) if err != nil { return err } - create := client.IntegrationHistory.Create() + create := client.OrganizationHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -3409,73 +5647,91 @@ func (m *IntegrationMutation) CreateHistoryFromUpdate(ctx context.Context) error if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(integration.CreatedAt) + create = create.SetCreatedAt(organization.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(integration.UpdatedAt) + create = create.SetUpdatedAt(organization.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(integration.CreatedBy) + create = create.SetCreatedBy(organization.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(integration.UpdatedBy) + create = create.SetUpdatedBy(organization.UpdatedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(integration.MappingID) + create = create.SetMappingID(organization.MappingID) } if tags, exists := m.Tags(); exists { create = create.SetTags(tags) } else { - create = create.SetTags(integration.Tags) + create = create.SetTags(organization.Tags) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(integration.DeletedAt) + create = create.SetDeletedAt(organization.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(integration.DeletedBy) + create = create.SetDeletedBy(organization.DeletedBy) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) + if name, exists := m.Name(); exists { + create = create.SetName(name) } else { - create = create.SetOwnerID(integration.OwnerID) + create = create.SetName(organization.Name) } - if name, exists := m.Name(); exists { - create = create.SetName(name) + if displayName, exists := m.DisplayName(); exists { + create = create.SetDisplayName(displayName) } else { - create = create.SetName(integration.Name) + create = create.SetDisplayName(organization.DisplayName) } if description, exists := m.Description(); exists { create = create.SetDescription(description) } else { - create = create.SetDescription(integration.Description) + create = create.SetDescription(organization.Description) } - if kind, exists := m.Kind(); exists { - create = create.SetKind(kind) + if parentOrganizationID, exists := m.ParentOrganizationID(); exists { + create = create.SetParentOrganizationID(parentOrganizationID) } else { - create = create.SetKind(integration.Kind) + create = create.SetParentOrganizationID(organization.ParentOrganizationID) + } + + if personalOrg, exists := m.PersonalOrg(); exists { + create = create.SetPersonalOrg(personalOrg) + } else { + create = create.SetPersonalOrg(organization.PersonalOrg) + } + + if avatarRemoteURL, exists := m.AvatarRemoteURL(); exists { + create = create.SetNillableAvatarRemoteURL(&avatarRemoteURL) + } else { + create = create.SetNillableAvatarRemoteURL(organization.AvatarRemoteURL) + } + + if dedicatedDb, exists := m.DedicatedDb(); exists { + create = create.SetDedicatedDb(dedicatedDb) + } else { + create = create.SetDedicatedDb(organization.DedicatedDb) } if _, err := create.Save(ctx); err != nil { @@ -3486,7 +5742,7 @@ func (m *IntegrationMutation) CreateHistoryFromUpdate(ctx context.Context) error return nil } -func (m *IntegrationMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *OrganizationMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -3499,29 +5755,32 @@ func (m *IntegrationMutation) CreateHistoryFromDelete(ctx context.Context) error } for _, id := range ids { - integration, err := client.Integration.Get(ctx, id) + organization, err := client.Organization.Get(ctx, id) if err != nil { return err } - create := client.IntegrationHistory.Create() + create := client.OrganizationHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(integration.CreatedAt). - SetUpdatedAt(integration.UpdatedAt). - SetCreatedBy(integration.CreatedBy). - SetUpdatedBy(integration.UpdatedBy). - SetMappingID(integration.MappingID). - SetTags(integration.Tags). - SetDeletedAt(integration.DeletedAt). - SetDeletedBy(integration.DeletedBy). - SetOwnerID(integration.OwnerID). - SetName(integration.Name). - SetDescription(integration.Description). - SetKind(integration.Kind). + SetCreatedAt(organization.CreatedAt). + SetUpdatedAt(organization.UpdatedAt). + SetCreatedBy(organization.CreatedBy). + SetUpdatedBy(organization.UpdatedBy). + SetMappingID(organization.MappingID). + SetTags(organization.Tags). + SetDeletedAt(organization.DeletedAt). + SetDeletedBy(organization.DeletedBy). + SetName(organization.Name). + SetDisplayName(organization.DisplayName). + SetDescription(organization.Description). + SetParentOrganizationID(organization.ParentOrganizationID). + SetPersonalOrg(organization.PersonalOrg). + SetNillableAvatarRemoteURL(organization.AvatarRemoteURL). + SetDedicatedDb(organization.DedicatedDb). Save(ctx) if err != nil { return err @@ -3531,7 +5790,7 @@ func (m *IntegrationMutation) CreateHistoryFromDelete(ctx context.Context) error return nil } -func (m *NoteMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *OrganizationSettingMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -3539,7 +5798,7 @@ func (m *NoteMutation) CreateHistoryFromCreate(ctx context.Context) error { return idNotFoundError } - create := client.NoteHistory.Create() + create := client.OrganizationSettingHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -3566,6 +5825,10 @@ func (m *NoteMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetMappingID(mappingID) } + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } + if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } @@ -3574,16 +5837,36 @@ func (m *NoteMutation) CreateHistoryFromCreate(ctx context.Context) error { create = create.SetDeletedBy(deletedBy) } - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) + if domains, exists := m.Domains(); exists { + create = create.SetDomains(domains) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) + if billingContact, exists := m.BillingContact(); exists { + create = create.SetBillingContact(billingContact) } - if text, exists := m.Text(); exists { - create = create.SetText(text) + if billingEmail, exists := m.BillingEmail(); exists { + create = create.SetBillingEmail(billingEmail) + } + + if billingPhone, exists := m.BillingPhone(); exists { + create = create.SetBillingPhone(billingPhone) + } + + if billingAddress, exists := m.BillingAddress(); exists { + create = create.SetBillingAddress(billingAddress) + } + + if taxIdentifier, exists := m.TaxIdentifier(); exists { + create = create.SetTaxIdentifier(taxIdentifier) + } + + if geoLocation, exists := m.GeoLocation(); exists { + create = create.SetGeoLocation(geoLocation) + } + + if organizationID, exists := m.OrganizationID(); exists { + create = create.SetOrganizationID(organizationID) } _, err := create.Save(ctx) @@ -3591,7 +5874,7 @@ func (m *NoteMutation) CreateHistoryFromCreate(ctx context.Context) error { return err } -func (m *NoteMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *OrganizationSettingMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -3604,12 +5887,12 @@ func (m *NoteMutation) CreateHistoryFromUpdate(ctx context.Context) error { } for _, id := range ids { - note, err := client.Note.Get(ctx, id) + organizationsetting, err := client.OrganizationSetting.Get(ctx, id) if err != nil { return err } - create := client.NoteHistory.Create() + create := client.OrganizationSettingHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -3619,61 +5902,97 @@ func (m *NoteMutation) CreateHistoryFromUpdate(ctx context.Context) error { if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(note.CreatedAt) + create = create.SetCreatedAt(organizationsetting.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(note.UpdatedAt) + create = create.SetUpdatedAt(organizationsetting.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(note.CreatedBy) + create = create.SetCreatedBy(organizationsetting.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(note.UpdatedBy) + create = create.SetUpdatedBy(organizationsetting.UpdatedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(note.MappingID) + create = create.SetMappingID(organizationsetting.MappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(organizationsetting.Tags) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(note.DeletedAt) + create = create.SetDeletedAt(organizationsetting.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(note.DeletedBy) + create = create.SetDeletedBy(organizationsetting.DeletedBy) } - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) + if domains, exists := m.Domains(); exists { + create = create.SetDomains(domains) } else { - create = create.SetTags(note.Tags) + create = create.SetDomains(organizationsetting.Domains) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) + if billingContact, exists := m.BillingContact(); exists { + create = create.SetBillingContact(billingContact) } else { - create = create.SetOwnerID(note.OwnerID) + create = create.SetBillingContact(organizationsetting.BillingContact) } - if text, exists := m.Text(); exists { - create = create.SetText(text) + if billingEmail, exists := m.BillingEmail(); exists { + create = create.SetBillingEmail(billingEmail) } else { - create = create.SetText(note.Text) + create = create.SetBillingEmail(organizationsetting.BillingEmail) + } + + if billingPhone, exists := m.BillingPhone(); exists { + create = create.SetBillingPhone(billingPhone) + } else { + create = create.SetBillingPhone(organizationsetting.BillingPhone) + } + + if billingAddress, exists := m.BillingAddress(); exists { + create = create.SetBillingAddress(billingAddress) + } else { + create = create.SetBillingAddress(organizationsetting.BillingAddress) + } + + if taxIdentifier, exists := m.TaxIdentifier(); exists { + create = create.SetTaxIdentifier(taxIdentifier) + } else { + create = create.SetTaxIdentifier(organizationsetting.TaxIdentifier) + } + + if geoLocation, exists := m.GeoLocation(); exists { + create = create.SetGeoLocation(geoLocation) + } else { + create = create.SetGeoLocation(organizationsetting.GeoLocation) + } + + if organizationID, exists := m.OrganizationID(); exists { + create = create.SetOrganizationID(organizationID) + } else { + create = create.SetOrganizationID(organizationsetting.OrganizationID) } if _, err := create.Save(ctx); err != nil { @@ -3684,7 +6003,7 @@ func (m *NoteMutation) CreateHistoryFromUpdate(ctx context.Context) error { return nil } -func (m *NoteMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *OrganizationSettingMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -3697,27 +6016,33 @@ func (m *NoteMutation) CreateHistoryFromDelete(ctx context.Context) error { } for _, id := range ids { - note, err := client.Note.Get(ctx, id) + organizationsetting, err := client.OrganizationSetting.Get(ctx, id) if err != nil { return err } - create := client.NoteHistory.Create() + create := client.OrganizationSettingHistory.Create() - _, err = create. - SetOperation(EntOpToHistoryOp(m.Op())). - SetHistoryTime(time.Now()). - SetRef(id). - SetCreatedAt(note.CreatedAt). - SetUpdatedAt(note.UpdatedAt). - SetCreatedBy(note.CreatedBy). - SetUpdatedBy(note.UpdatedBy). - SetMappingID(note.MappingID). - SetDeletedAt(note.DeletedAt). - SetDeletedBy(note.DeletedBy). - SetTags(note.Tags). - SetOwnerID(note.OwnerID). - SetText(note.Text). + _, err = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id). + SetCreatedAt(organizationsetting.CreatedAt). + SetUpdatedAt(organizationsetting.UpdatedAt). + SetCreatedBy(organizationsetting.CreatedBy). + SetUpdatedBy(organizationsetting.UpdatedBy). + SetMappingID(organizationsetting.MappingID). + SetTags(organizationsetting.Tags). + SetDeletedAt(organizationsetting.DeletedAt). + SetDeletedBy(organizationsetting.DeletedBy). + SetDomains(organizationsetting.Domains). + SetBillingContact(organizationsetting.BillingContact). + SetBillingEmail(organizationsetting.BillingEmail). + SetBillingPhone(organizationsetting.BillingPhone). + SetBillingAddress(organizationsetting.BillingAddress). + SetTaxIdentifier(organizationsetting.TaxIdentifier). + SetGeoLocation(organizationsetting.GeoLocation). + SetOrganizationID(organizationsetting.OrganizationID). Save(ctx) if err != nil { return err @@ -3727,7 +6052,7 @@ func (m *NoteMutation) CreateHistoryFromDelete(ctx context.Context) error { return nil } -func (m *OauthProviderMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *ProcedureMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -3735,7 +6060,7 @@ func (m *OauthProviderMutation) CreateHistoryFromCreate(ctx context.Context) err return idNotFoundError } - create := client.OauthProviderHistory.Create() + create := client.ProcedureHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -3758,14 +6083,6 @@ func (m *OauthProviderMutation) CreateHistoryFromCreate(ctx context.Context) err create = create.SetUpdatedBy(updatedBy) } - if mappingID, exists := m.MappingID(); exists { - create = create.SetMappingID(mappingID) - } - - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) - } - if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } @@ -3774,44 +6091,48 @@ func (m *OauthProviderMutation) CreateHistoryFromCreate(ctx context.Context) err create = create.SetDeletedBy(deletedBy) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) } if name, exists := m.Name(); exists { create = create.SetName(name) } - if clientID, exists := m.ClientID(); exists { - create = create.SetClientID(clientID) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } - if clientSecret, exists := m.ClientSecret(); exists { - create = create.SetClientSecret(clientSecret) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } - if redirectURL, exists := m.RedirectURL(); exists { - create = create.SetRedirectURL(redirectURL) + if procedureType, exists := m.ProcedureType(); exists { + create = create.SetProcedureType(procedureType) } - if scopes, exists := m.Scopes(); exists { - create = create.SetScopes(scopes) + if version, exists := m.Version(); exists { + create = create.SetVersion(version) } - if authURL, exists := m.AuthURL(); exists { - create = create.SetAuthURL(authURL) + if purposeAndScope, exists := m.PurposeAndScope(); exists { + create = create.SetPurposeAndScope(purposeAndScope) } - if tokenURL, exists := m.TokenURL(); exists { - create = create.SetTokenURL(tokenURL) + if background, exists := m.Background(); exists { + create = create.SetBackground(background) } - if authStyle, exists := m.AuthStyle(); exists { - create = create.SetAuthStyle(authStyle) + if satisfies, exists := m.Satisfies(); exists { + create = create.SetSatisfies(satisfies) } - if infoURL, exists := m.InfoURL(); exists { - create = create.SetInfoURL(infoURL) + if details, exists := m.Details(); exists { + create = create.SetDetails(details) } _, err := create.Save(ctx) @@ -3819,7 +6140,7 @@ func (m *OauthProviderMutation) CreateHistoryFromCreate(ctx context.Context) err return err } -func (m *OauthProviderMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *ProcedureMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -3832,12 +6153,12 @@ func (m *OauthProviderMutation) CreateHistoryFromUpdate(ctx context.Context) err } for _, id := range ids { - oauthprovider, err := client.OauthProvider.Get(ctx, id) + procedure, err := client.Procedure.Get(ctx, id) if err != nil { return err } - create := client.OauthProviderHistory.Create() + create := client.ProcedureHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -3847,109 +6168,103 @@ func (m *OauthProviderMutation) CreateHistoryFromUpdate(ctx context.Context) err if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(oauthprovider.CreatedAt) + create = create.SetCreatedAt(procedure.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(oauthprovider.UpdatedAt) + create = create.SetUpdatedAt(procedure.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(oauthprovider.CreatedBy) + create = create.SetCreatedBy(procedure.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(oauthprovider.UpdatedBy) - } - - if mappingID, exists := m.MappingID(); exists { - create = create.SetMappingID(mappingID) - } else { - create = create.SetMappingID(oauthprovider.MappingID) - } - - if tags, exists := m.Tags(); exists { - create = create.SetTags(tags) - } else { - create = create.SetTags(oauthprovider.Tags) + create = create.SetUpdatedBy(procedure.UpdatedBy) } if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } else { - create = create.SetDeletedAt(oauthprovider.DeletedAt) + create = create.SetDeletedAt(procedure.DeletedAt) } if deletedBy, exists := m.DeletedBy(); exists { create = create.SetDeletedBy(deletedBy) } else { - create = create.SetDeletedBy(oauthprovider.DeletedBy) + create = create.SetDeletedBy(procedure.DeletedBy) } - if ownerID, exists := m.OwnerID(); exists { - create = create.SetOwnerID(ownerID) + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) } else { - create = create.SetOwnerID(oauthprovider.OwnerID) + create = create.SetMappingID(procedure.MappingID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(procedure.Tags) } if name, exists := m.Name(); exists { create = create.SetName(name) } else { - create = create.SetName(oauthprovider.Name) + create = create.SetName(procedure.Name) } - if clientID, exists := m.ClientID(); exists { - create = create.SetClientID(clientID) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } else { - create = create.SetClientID(oauthprovider.ClientID) + create = create.SetDescription(procedure.Description) } - if clientSecret, exists := m.ClientSecret(); exists { - create = create.SetClientSecret(clientSecret) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } else { - create = create.SetClientSecret(oauthprovider.ClientSecret) + create = create.SetStatus(procedure.Status) } - if redirectURL, exists := m.RedirectURL(); exists { - create = create.SetRedirectURL(redirectURL) + if procedureType, exists := m.ProcedureType(); exists { + create = create.SetProcedureType(procedureType) } else { - create = create.SetRedirectURL(oauthprovider.RedirectURL) + create = create.SetProcedureType(procedure.ProcedureType) } - if scopes, exists := m.Scopes(); exists { - create = create.SetScopes(scopes) + if version, exists := m.Version(); exists { + create = create.SetVersion(version) } else { - create = create.SetScopes(oauthprovider.Scopes) + create = create.SetVersion(procedure.Version) } - if authURL, exists := m.AuthURL(); exists { - create = create.SetAuthURL(authURL) + if purposeAndScope, exists := m.PurposeAndScope(); exists { + create = create.SetPurposeAndScope(purposeAndScope) } else { - create = create.SetAuthURL(oauthprovider.AuthURL) + create = create.SetPurposeAndScope(procedure.PurposeAndScope) } - if tokenURL, exists := m.TokenURL(); exists { - create = create.SetTokenURL(tokenURL) + if background, exists := m.Background(); exists { + create = create.SetBackground(background) } else { - create = create.SetTokenURL(oauthprovider.TokenURL) + create = create.SetBackground(procedure.Background) } - if authStyle, exists := m.AuthStyle(); exists { - create = create.SetAuthStyle(authStyle) + if satisfies, exists := m.Satisfies(); exists { + create = create.SetSatisfies(satisfies) } else { - create = create.SetAuthStyle(oauthprovider.AuthStyle) + create = create.SetSatisfies(procedure.Satisfies) } - if infoURL, exists := m.InfoURL(); exists { - create = create.SetInfoURL(infoURL) + if details, exists := m.Details(); exists { + create = create.SetDetails(details) } else { - create = create.SetInfoURL(oauthprovider.InfoURL) + create = create.SetDetails(procedure.Details) } if _, err := create.Save(ctx); err != nil { @@ -3960,7 +6275,7 @@ func (m *OauthProviderMutation) CreateHistoryFromUpdate(ctx context.Context) err return nil } -func (m *OauthProviderMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *ProcedureMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -3973,35 +6288,34 @@ func (m *OauthProviderMutation) CreateHistoryFromDelete(ctx context.Context) err } for _, id := range ids { - oauthprovider, err := client.OauthProvider.Get(ctx, id) + procedure, err := client.Procedure.Get(ctx, id) if err != nil { return err } - create := client.OauthProviderHistory.Create() + create := client.ProcedureHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(oauthprovider.CreatedAt). - SetUpdatedAt(oauthprovider.UpdatedAt). - SetCreatedBy(oauthprovider.CreatedBy). - SetUpdatedBy(oauthprovider.UpdatedBy). - SetMappingID(oauthprovider.MappingID). - SetTags(oauthprovider.Tags). - SetDeletedAt(oauthprovider.DeletedAt). - SetDeletedBy(oauthprovider.DeletedBy). - SetOwnerID(oauthprovider.OwnerID). - SetName(oauthprovider.Name). - SetClientID(oauthprovider.ClientID). - SetClientSecret(oauthprovider.ClientSecret). - SetRedirectURL(oauthprovider.RedirectURL). - SetScopes(oauthprovider.Scopes). - SetAuthURL(oauthprovider.AuthURL). - SetTokenURL(oauthprovider.TokenURL). - SetAuthStyle(oauthprovider.AuthStyle). - SetInfoURL(oauthprovider.InfoURL). + SetCreatedAt(procedure.CreatedAt). + SetUpdatedAt(procedure.UpdatedAt). + SetCreatedBy(procedure.CreatedBy). + SetUpdatedBy(procedure.UpdatedBy). + SetDeletedAt(procedure.DeletedAt). + SetDeletedBy(procedure.DeletedBy). + SetMappingID(procedure.MappingID). + SetTags(procedure.Tags). + SetName(procedure.Name). + SetDescription(procedure.Description). + SetStatus(procedure.Status). + SetProcedureType(procedure.ProcedureType). + SetVersion(procedure.Version). + SetPurposeAndScope(procedure.PurposeAndScope). + SetBackground(procedure.Background). + SetSatisfies(procedure.Satisfies). + SetDetails(procedure.Details). Save(ctx) if err != nil { return err @@ -4011,7 +6325,7 @@ func (m *OauthProviderMutation) CreateHistoryFromDelete(ctx context.Context) err return nil } -func (m *OrgMembershipMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *RiskMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -4019,7 +6333,7 @@ func (m *OrgMembershipMutation) CreateHistoryFromCreate(ctx context.Context) err return idNotFoundError } - create := client.OrgMembershipHistory.Create() + create := client.RiskHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -4042,10 +6356,6 @@ func (m *OrgMembershipMutation) CreateHistoryFromCreate(ctx context.Context) err create = create.SetUpdatedBy(updatedBy) } - if mappingID, exists := m.MappingID(); exists { - create = create.SetMappingID(mappingID) - } - if deletedAt, exists := m.DeletedAt(); exists { create = create.SetDeletedAt(deletedAt) } @@ -4054,16 +6364,52 @@ func (m *OrgMembershipMutation) CreateHistoryFromCreate(ctx context.Context) err create = create.SetDeletedBy(deletedBy) } - if role, exists := m.Role(); exists { - create = create.SetRole(role) + if mappingID, exists := m.MappingID(); exists { + create = create.SetMappingID(mappingID) } - if organizationID, exists := m.OrganizationID(); exists { - create = create.SetOrganizationID(organizationID) + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) } - if userID, exists := m.UserID(); exists { - create = create.SetUserID(userID) + if name, exists := m.Name(); exists { + create = create.SetName(name) + } + + if description, exists := m.Description(); exists { + create = create.SetDescription(description) + } + + if status, exists := m.Status(); exists { + create = create.SetStatus(status) + } + + if riskType, exists := m.RiskType(); exists { + create = create.SetRiskType(riskType) + } + + if businessCosts, exists := m.BusinessCosts(); exists { + create = create.SetBusinessCosts(businessCosts) + } + + if impact, exists := m.Impact(); exists { + create = create.SetImpact(impact) + } + + if likelihood, exists := m.Likelihood(); exists { + create = create.SetLikelihood(likelihood) + } + + if mitigation, exists := m.Mitigation(); exists { + create = create.SetMitigation(mitigation) + } + + if satisfies, exists := m.Satisfies(); exists { + create = create.SetSatisfies(satisfies) + } + + if details, exists := m.Details(); exists { + create = create.SetDetails(details) } _, err := create.Save(ctx) @@ -4071,7 +6417,7 @@ func (m *OrgMembershipMutation) CreateHistoryFromCreate(ctx context.Context) err return err } -func (m *OrgMembershipMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *RiskMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -4084,12 +6430,12 @@ func (m *OrgMembershipMutation) CreateHistoryFromUpdate(ctx context.Context) err } for _, id := range ids { - orgmembership, err := client.OrgMembership.Get(ctx, id) + risk, err := client.Risk.Get(ctx, id) if err != nil { return err } - create := client.OrgMembershipHistory.Create() + create := client.RiskHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -4099,61 +6445,109 @@ func (m *OrgMembershipMutation) CreateHistoryFromUpdate(ctx context.Context) err if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(orgmembership.CreatedAt) + create = create.SetCreatedAt(risk.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(orgmembership.UpdatedAt) + create = create.SetUpdatedAt(risk.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(orgmembership.CreatedBy) + create = create.SetCreatedBy(risk.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(orgmembership.UpdatedBy) + create = create.SetUpdatedBy(risk.UpdatedBy) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(risk.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(risk.DeletedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(orgmembership.MappingID) + create = create.SetMappingID(risk.MappingID) } - if deletedAt, exists := m.DeletedAt(); exists { - create = create.SetDeletedAt(deletedAt) + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) } else { - create = create.SetDeletedAt(orgmembership.DeletedAt) + create = create.SetTags(risk.Tags) } - if deletedBy, exists := m.DeletedBy(); exists { - create = create.SetDeletedBy(deletedBy) + if name, exists := m.Name(); exists { + create = create.SetName(name) } else { - create = create.SetDeletedBy(orgmembership.DeletedBy) + create = create.SetName(risk.Name) } - if role, exists := m.Role(); exists { - create = create.SetRole(role) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } else { - create = create.SetRole(orgmembership.Role) + create = create.SetDescription(risk.Description) } - if organizationID, exists := m.OrganizationID(); exists { - create = create.SetOrganizationID(organizationID) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } else { - create = create.SetOrganizationID(orgmembership.OrganizationID) + create = create.SetStatus(risk.Status) } - if userID, exists := m.UserID(); exists { - create = create.SetUserID(userID) + if riskType, exists := m.RiskType(); exists { + create = create.SetRiskType(riskType) } else { - create = create.SetUserID(orgmembership.UserID) + create = create.SetRiskType(risk.RiskType) + } + + if businessCosts, exists := m.BusinessCosts(); exists { + create = create.SetBusinessCosts(businessCosts) + } else { + create = create.SetBusinessCosts(risk.BusinessCosts) + } + + if impact, exists := m.Impact(); exists { + create = create.SetImpact(impact) + } else { + create = create.SetImpact(risk.Impact) + } + + if likelihood, exists := m.Likelihood(); exists { + create = create.SetLikelihood(likelihood) + } else { + create = create.SetLikelihood(risk.Likelihood) + } + + if mitigation, exists := m.Mitigation(); exists { + create = create.SetMitigation(mitigation) + } else { + create = create.SetMitigation(risk.Mitigation) + } + + if satisfies, exists := m.Satisfies(); exists { + create = create.SetSatisfies(satisfies) + } else { + create = create.SetSatisfies(risk.Satisfies) + } + + if details, exists := m.Details(); exists { + create = create.SetDetails(details) + } else { + create = create.SetDetails(risk.Details) } if _, err := create.Save(ctx); err != nil { @@ -4164,7 +6558,7 @@ func (m *OrgMembershipMutation) CreateHistoryFromUpdate(ctx context.Context) err return nil } -func (m *OrgMembershipMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *RiskMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -4177,27 +6571,35 @@ func (m *OrgMembershipMutation) CreateHistoryFromDelete(ctx context.Context) err } for _, id := range ids { - orgmembership, err := client.OrgMembership.Get(ctx, id) + risk, err := client.Risk.Get(ctx, id) if err != nil { return err } - create := client.OrgMembershipHistory.Create() + create := client.RiskHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(orgmembership.CreatedAt). - SetUpdatedAt(orgmembership.UpdatedAt). - SetCreatedBy(orgmembership.CreatedBy). - SetUpdatedBy(orgmembership.UpdatedBy). - SetMappingID(orgmembership.MappingID). - SetDeletedAt(orgmembership.DeletedAt). - SetDeletedBy(orgmembership.DeletedBy). - SetRole(orgmembership.Role). - SetOrganizationID(orgmembership.OrganizationID). - SetUserID(orgmembership.UserID). + SetCreatedAt(risk.CreatedAt). + SetUpdatedAt(risk.UpdatedAt). + SetCreatedBy(risk.CreatedBy). + SetUpdatedBy(risk.UpdatedBy). + SetDeletedAt(risk.DeletedAt). + SetDeletedBy(risk.DeletedBy). + SetMappingID(risk.MappingID). + SetTags(risk.Tags). + SetName(risk.Name). + SetDescription(risk.Description). + SetStatus(risk.Status). + SetRiskType(risk.RiskType). + SetBusinessCosts(risk.BusinessCosts). + SetImpact(risk.Impact). + SetLikelihood(risk.Likelihood). + SetMitigation(risk.Mitigation). + SetSatisfies(risk.Satisfies). + SetDetails(risk.Details). Save(ctx) if err != nil { return err @@ -4207,7 +6609,7 @@ func (m *OrgMembershipMutation) CreateHistoryFromDelete(ctx context.Context) err return nil } -func (m *OrganizationMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *StandardMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -4215,7 +6617,7 @@ func (m *OrganizationMutation) CreateHistoryFromCreate(ctx context.Context) erro return idNotFoundError } - create := client.OrganizationHistory.Create() + create := client.StandardHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -4238,6 +6640,14 @@ func (m *OrganizationMutation) CreateHistoryFromCreate(ctx context.Context) erro create = create.SetUpdatedBy(updatedBy) } + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } @@ -4246,40 +6656,44 @@ func (m *OrganizationMutation) CreateHistoryFromCreate(ctx context.Context) erro create = create.SetTags(tags) } - if deletedAt, exists := m.DeletedAt(); exists { - create = create.SetDeletedAt(deletedAt) + if name, exists := m.Name(); exists { + create = create.SetName(name) } - if deletedBy, exists := m.DeletedBy(); exists { - create = create.SetDeletedBy(deletedBy) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } - if name, exists := m.Name(); exists { - create = create.SetName(name) + if family, exists := m.Family(); exists { + create = create.SetFamily(family) } - if displayName, exists := m.DisplayName(); exists { - create = create.SetDisplayName(displayName) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } - if description, exists := m.Description(); exists { - create = create.SetDescription(description) + if standardType, exists := m.StandardType(); exists { + create = create.SetStandardType(standardType) } - if parentOrganizationID, exists := m.ParentOrganizationID(); exists { - create = create.SetParentOrganizationID(parentOrganizationID) + if version, exists := m.Version(); exists { + create = create.SetVersion(version) } - if personalOrg, exists := m.PersonalOrg(); exists { - create = create.SetPersonalOrg(personalOrg) + if purposeAndScope, exists := m.PurposeAndScope(); exists { + create = create.SetPurposeAndScope(purposeAndScope) } - if avatarRemoteURL, exists := m.AvatarRemoteURL(); exists { - create = create.SetNillableAvatarRemoteURL(&avatarRemoteURL) + if background, exists := m.Background(); exists { + create = create.SetBackground(background) } - if dedicatedDb, exists := m.DedicatedDb(); exists { - create = create.SetDedicatedDb(dedicatedDb) + if satisfies, exists := m.Satisfies(); exists { + create = create.SetSatisfies(satisfies) + } + + if details, exists := m.Details(); exists { + create = create.SetDetails(details) } _, err := create.Save(ctx) @@ -4287,7 +6701,7 @@ func (m *OrganizationMutation) CreateHistoryFromCreate(ctx context.Context) erro return err } -func (m *OrganizationMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *StandardMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -4300,12 +6714,12 @@ func (m *OrganizationMutation) CreateHistoryFromUpdate(ctx context.Context) erro } for _, id := range ids { - organization, err := client.Organization.Get(ctx, id) + standard, err := client.Standard.Get(ctx, id) if err != nil { return err } - create := client.OrganizationHistory.Create() + create := client.StandardHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -4315,91 +6729,109 @@ func (m *OrganizationMutation) CreateHistoryFromUpdate(ctx context.Context) erro if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(organization.CreatedAt) + create = create.SetCreatedAt(standard.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(organization.UpdatedAt) + create = create.SetUpdatedAt(standard.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(organization.CreatedBy) + create = create.SetCreatedBy(standard.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(organization.UpdatedBy) + create = create.SetUpdatedBy(standard.UpdatedBy) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(standard.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(standard.DeletedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(organization.MappingID) + create = create.SetMappingID(standard.MappingID) } if tags, exists := m.Tags(); exists { create = create.SetTags(tags) } else { - create = create.SetTags(organization.Tags) + create = create.SetTags(standard.Tags) } - if deletedAt, exists := m.DeletedAt(); exists { - create = create.SetDeletedAt(deletedAt) + if name, exists := m.Name(); exists { + create = create.SetName(name) } else { - create = create.SetDeletedAt(organization.DeletedAt) + create = create.SetName(standard.Name) } - if deletedBy, exists := m.DeletedBy(); exists { - create = create.SetDeletedBy(deletedBy) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } else { - create = create.SetDeletedBy(organization.DeletedBy) + create = create.SetDescription(standard.Description) } - if name, exists := m.Name(); exists { - create = create.SetName(name) + if family, exists := m.Family(); exists { + create = create.SetFamily(family) } else { - create = create.SetName(organization.Name) + create = create.SetFamily(standard.Family) } - if displayName, exists := m.DisplayName(); exists { - create = create.SetDisplayName(displayName) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } else { - create = create.SetDisplayName(organization.DisplayName) + create = create.SetStatus(standard.Status) } - if description, exists := m.Description(); exists { - create = create.SetDescription(description) + if standardType, exists := m.StandardType(); exists { + create = create.SetStandardType(standardType) } else { - create = create.SetDescription(organization.Description) + create = create.SetStandardType(standard.StandardType) } - if parentOrganizationID, exists := m.ParentOrganizationID(); exists { - create = create.SetParentOrganizationID(parentOrganizationID) + if version, exists := m.Version(); exists { + create = create.SetVersion(version) } else { - create = create.SetParentOrganizationID(organization.ParentOrganizationID) + create = create.SetVersion(standard.Version) } - if personalOrg, exists := m.PersonalOrg(); exists { - create = create.SetPersonalOrg(personalOrg) + if purposeAndScope, exists := m.PurposeAndScope(); exists { + create = create.SetPurposeAndScope(purposeAndScope) } else { - create = create.SetPersonalOrg(organization.PersonalOrg) + create = create.SetPurposeAndScope(standard.PurposeAndScope) } - if avatarRemoteURL, exists := m.AvatarRemoteURL(); exists { - create = create.SetNillableAvatarRemoteURL(&avatarRemoteURL) + if background, exists := m.Background(); exists { + create = create.SetBackground(background) } else { - create = create.SetNillableAvatarRemoteURL(organization.AvatarRemoteURL) + create = create.SetBackground(standard.Background) } - if dedicatedDb, exists := m.DedicatedDb(); exists { - create = create.SetDedicatedDb(dedicatedDb) + if satisfies, exists := m.Satisfies(); exists { + create = create.SetSatisfies(satisfies) } else { - create = create.SetDedicatedDb(organization.DedicatedDb) + create = create.SetSatisfies(standard.Satisfies) + } + + if details, exists := m.Details(); exists { + create = create.SetDetails(details) + } else { + create = create.SetDetails(standard.Details) } if _, err := create.Save(ctx); err != nil { @@ -4410,7 +6842,7 @@ func (m *OrganizationMutation) CreateHistoryFromUpdate(ctx context.Context) erro return nil } -func (m *OrganizationMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *StandardMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -4423,32 +6855,35 @@ func (m *OrganizationMutation) CreateHistoryFromDelete(ctx context.Context) erro } for _, id := range ids { - organization, err := client.Organization.Get(ctx, id) + standard, err := client.Standard.Get(ctx, id) if err != nil { return err } - create := client.OrganizationHistory.Create() + create := client.StandardHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(organization.CreatedAt). - SetUpdatedAt(organization.UpdatedAt). - SetCreatedBy(organization.CreatedBy). - SetUpdatedBy(organization.UpdatedBy). - SetMappingID(organization.MappingID). - SetTags(organization.Tags). - SetDeletedAt(organization.DeletedAt). - SetDeletedBy(organization.DeletedBy). - SetName(organization.Name). - SetDisplayName(organization.DisplayName). - SetDescription(organization.Description). - SetParentOrganizationID(organization.ParentOrganizationID). - SetPersonalOrg(organization.PersonalOrg). - SetNillableAvatarRemoteURL(organization.AvatarRemoteURL). - SetDedicatedDb(organization.DedicatedDb). + SetCreatedAt(standard.CreatedAt). + SetUpdatedAt(standard.UpdatedAt). + SetCreatedBy(standard.CreatedBy). + SetUpdatedBy(standard.UpdatedBy). + SetDeletedAt(standard.DeletedAt). + SetDeletedBy(standard.DeletedBy). + SetMappingID(standard.MappingID). + SetTags(standard.Tags). + SetName(standard.Name). + SetDescription(standard.Description). + SetFamily(standard.Family). + SetStatus(standard.Status). + SetStandardType(standard.StandardType). + SetVersion(standard.Version). + SetPurposeAndScope(standard.PurposeAndScope). + SetBackground(standard.Background). + SetSatisfies(standard.Satisfies). + SetDetails(standard.Details). Save(ctx) if err != nil { return err @@ -4458,7 +6893,7 @@ func (m *OrganizationMutation) CreateHistoryFromDelete(ctx context.Context) erro return nil } -func (m *OrganizationSettingMutation) CreateHistoryFromCreate(ctx context.Context) error { +func (m *SubcontrolMutation) CreateHistoryFromCreate(ctx context.Context) error { client := m.Client() id, ok := m.ID() @@ -4466,7 +6901,7 @@ func (m *OrganizationSettingMutation) CreateHistoryFromCreate(ctx context.Contex return idNotFoundError } - create := client.OrganizationSettingHistory.Create() + create := client.SubcontrolHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -4489,6 +6924,14 @@ func (m *OrganizationSettingMutation) CreateHistoryFromCreate(ctx context.Contex create = create.SetUpdatedBy(updatedBy) } + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } @@ -4497,44 +6940,68 @@ func (m *OrganizationSettingMutation) CreateHistoryFromCreate(ctx context.Contex create = create.SetTags(tags) } - if deletedAt, exists := m.DeletedAt(); exists { - create = create.SetDeletedAt(deletedAt) + if name, exists := m.Name(); exists { + create = create.SetName(name) } - if deletedBy, exists := m.DeletedBy(); exists { - create = create.SetDeletedBy(deletedBy) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } - if domains, exists := m.Domains(); exists { - create = create.SetDomains(domains) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } - if billingContact, exists := m.BillingContact(); exists { - create = create.SetBillingContact(billingContact) + if subcontrolType, exists := m.SubcontrolType(); exists { + create = create.SetSubcontrolType(subcontrolType) } - if billingEmail, exists := m.BillingEmail(); exists { - create = create.SetBillingEmail(billingEmail) + if version, exists := m.Version(); exists { + create = create.SetVersion(version) } - if billingPhone, exists := m.BillingPhone(); exists { - create = create.SetBillingPhone(billingPhone) + if subcontrolNumber, exists := m.SubcontrolNumber(); exists { + create = create.SetSubcontrolNumber(subcontrolNumber) } - if billingAddress, exists := m.BillingAddress(); exists { - create = create.SetBillingAddress(billingAddress) + if family, exists := m.Family(); exists { + create = create.SetFamily(family) } - if taxIdentifier, exists := m.TaxIdentifier(); exists { - create = create.SetTaxIdentifier(taxIdentifier) + if class, exists := m.Class(); exists { + create = create.SetClass(class) } - if geoLocation, exists := m.GeoLocation(); exists { - create = create.SetGeoLocation(geoLocation) + if source, exists := m.Source(); exists { + create = create.SetSource(source) } - if organizationID, exists := m.OrganizationID(); exists { - create = create.SetOrganizationID(organizationID) + if mappedFrameworks, exists := m.MappedFrameworks(); exists { + create = create.SetMappedFrameworks(mappedFrameworks) + } + + if implementationEvidence, exists := m.ImplementationEvidence(); exists { + create = create.SetImplementationEvidence(implementationEvidence) + } + + if implementationStatus, exists := m.ImplementationStatus(); exists { + create = create.SetImplementationStatus(implementationStatus) + } + + if implementationDate, exists := m.ImplementationDate(); exists { + create = create.SetImplementationDate(implementationDate) + } + + if implementationVerification, exists := m.ImplementationVerification(); exists { + create = create.SetImplementationVerification(implementationVerification) + } + + if implementationVerificationDate, exists := m.ImplementationVerificationDate(); exists { + create = create.SetImplementationVerificationDate(implementationVerificationDate) + } + + if details, exists := m.Details(); exists { + create = create.SetDetails(details) } _, err := create.Save(ctx) @@ -4542,7 +7009,7 @@ func (m *OrganizationSettingMutation) CreateHistoryFromCreate(ctx context.Contex return err } -func (m *OrganizationSettingMutation) CreateHistoryFromUpdate(ctx context.Context) error { +func (m *SubcontrolMutation) CreateHistoryFromUpdate(ctx context.Context) error { // check for soft delete operation and delete instead if entx.CheckIsSoftDelete(ctx) { return m.CreateHistoryFromDelete(ctx) @@ -4555,12 +7022,12 @@ func (m *OrganizationSettingMutation) CreateHistoryFromUpdate(ctx context.Contex } for _, id := range ids { - organizationsetting, err := client.OrganizationSetting.Get(ctx, id) + subcontrol, err := client.Subcontrol.Get(ctx, id) if err != nil { return err } - create := client.OrganizationSettingHistory.Create() + create := client.SubcontrolHistory.Create() create = create. SetOperation(EntOpToHistoryOp(m.Op())). @@ -4570,97 +7037,145 @@ func (m *OrganizationSettingMutation) CreateHistoryFromUpdate(ctx context.Contex if createdAt, exists := m.CreatedAt(); exists { create = create.SetCreatedAt(createdAt) } else { - create = create.SetCreatedAt(organizationsetting.CreatedAt) + create = create.SetCreatedAt(subcontrol.CreatedAt) } if updatedAt, exists := m.UpdatedAt(); exists { create = create.SetUpdatedAt(updatedAt) } else { - create = create.SetUpdatedAt(organizationsetting.UpdatedAt) + create = create.SetUpdatedAt(subcontrol.UpdatedAt) } if createdBy, exists := m.CreatedBy(); exists { create = create.SetCreatedBy(createdBy) } else { - create = create.SetCreatedBy(organizationsetting.CreatedBy) + create = create.SetCreatedBy(subcontrol.CreatedBy) } if updatedBy, exists := m.UpdatedBy(); exists { create = create.SetUpdatedBy(updatedBy) } else { - create = create.SetUpdatedBy(organizationsetting.UpdatedBy) + create = create.SetUpdatedBy(subcontrol.UpdatedBy) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(subcontrol.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(subcontrol.DeletedBy) } if mappingID, exists := m.MappingID(); exists { create = create.SetMappingID(mappingID) } else { - create = create.SetMappingID(organizationsetting.MappingID) + create = create.SetMappingID(subcontrol.MappingID) } if tags, exists := m.Tags(); exists { create = create.SetTags(tags) } else { - create = create.SetTags(organizationsetting.Tags) + create = create.SetTags(subcontrol.Tags) } - if deletedAt, exists := m.DeletedAt(); exists { - create = create.SetDeletedAt(deletedAt) + if name, exists := m.Name(); exists { + create = create.SetName(name) } else { - create = create.SetDeletedAt(organizationsetting.DeletedAt) + create = create.SetName(subcontrol.Name) } - if deletedBy, exists := m.DeletedBy(); exists { - create = create.SetDeletedBy(deletedBy) + if description, exists := m.Description(); exists { + create = create.SetDescription(description) } else { - create = create.SetDeletedBy(organizationsetting.DeletedBy) + create = create.SetDescription(subcontrol.Description) } - if domains, exists := m.Domains(); exists { - create = create.SetDomains(domains) + if status, exists := m.Status(); exists { + create = create.SetStatus(status) } else { - create = create.SetDomains(organizationsetting.Domains) + create = create.SetStatus(subcontrol.Status) } - if billingContact, exists := m.BillingContact(); exists { - create = create.SetBillingContact(billingContact) + if subcontrolType, exists := m.SubcontrolType(); exists { + create = create.SetSubcontrolType(subcontrolType) } else { - create = create.SetBillingContact(organizationsetting.BillingContact) + create = create.SetSubcontrolType(subcontrol.SubcontrolType) } - if billingEmail, exists := m.BillingEmail(); exists { - create = create.SetBillingEmail(billingEmail) + if version, exists := m.Version(); exists { + create = create.SetVersion(version) } else { - create = create.SetBillingEmail(organizationsetting.BillingEmail) + create = create.SetVersion(subcontrol.Version) } - if billingPhone, exists := m.BillingPhone(); exists { - create = create.SetBillingPhone(billingPhone) + if subcontrolNumber, exists := m.SubcontrolNumber(); exists { + create = create.SetSubcontrolNumber(subcontrolNumber) } else { - create = create.SetBillingPhone(organizationsetting.BillingPhone) + create = create.SetSubcontrolNumber(subcontrol.SubcontrolNumber) } - if billingAddress, exists := m.BillingAddress(); exists { - create = create.SetBillingAddress(billingAddress) + if family, exists := m.Family(); exists { + create = create.SetFamily(family) } else { - create = create.SetBillingAddress(organizationsetting.BillingAddress) + create = create.SetFamily(subcontrol.Family) } - if taxIdentifier, exists := m.TaxIdentifier(); exists { - create = create.SetTaxIdentifier(taxIdentifier) + if class, exists := m.Class(); exists { + create = create.SetClass(class) } else { - create = create.SetTaxIdentifier(organizationsetting.TaxIdentifier) + create = create.SetClass(subcontrol.Class) } - if geoLocation, exists := m.GeoLocation(); exists { - create = create.SetGeoLocation(geoLocation) + if source, exists := m.Source(); exists { + create = create.SetSource(source) } else { - create = create.SetGeoLocation(organizationsetting.GeoLocation) + create = create.SetSource(subcontrol.Source) } - if organizationID, exists := m.OrganizationID(); exists { - create = create.SetOrganizationID(organizationID) + if mappedFrameworks, exists := m.MappedFrameworks(); exists { + create = create.SetMappedFrameworks(mappedFrameworks) } else { - create = create.SetOrganizationID(organizationsetting.OrganizationID) + create = create.SetMappedFrameworks(subcontrol.MappedFrameworks) + } + + if implementationEvidence, exists := m.ImplementationEvidence(); exists { + create = create.SetImplementationEvidence(implementationEvidence) + } else { + create = create.SetImplementationEvidence(subcontrol.ImplementationEvidence) + } + + if implementationStatus, exists := m.ImplementationStatus(); exists { + create = create.SetImplementationStatus(implementationStatus) + } else { + create = create.SetImplementationStatus(subcontrol.ImplementationStatus) + } + + if implementationDate, exists := m.ImplementationDate(); exists { + create = create.SetImplementationDate(implementationDate) + } else { + create = create.SetImplementationDate(subcontrol.ImplementationDate) + } + + if implementationVerification, exists := m.ImplementationVerification(); exists { + create = create.SetImplementationVerification(implementationVerification) + } else { + create = create.SetImplementationVerification(subcontrol.ImplementationVerification) + } + + if implementationVerificationDate, exists := m.ImplementationVerificationDate(); exists { + create = create.SetImplementationVerificationDate(implementationVerificationDate) + } else { + create = create.SetImplementationVerificationDate(subcontrol.ImplementationVerificationDate) + } + + if details, exists := m.Details(); exists { + create = create.SetDetails(details) + } else { + create = create.SetDetails(subcontrol.Details) } if _, err := create.Save(ctx); err != nil { @@ -4671,7 +7186,7 @@ func (m *OrganizationSettingMutation) CreateHistoryFromUpdate(ctx context.Contex return nil } -func (m *OrganizationSettingMutation) CreateHistoryFromDelete(ctx context.Context) error { +func (m *SubcontrolMutation) CreateHistoryFromDelete(ctx context.Context) error { // check for soft delete operation and skip so it happens on update if entx.CheckIsSoftDelete(ctx) { return nil @@ -4684,33 +7199,41 @@ func (m *OrganizationSettingMutation) CreateHistoryFromDelete(ctx context.Contex } for _, id := range ids { - organizationsetting, err := client.OrganizationSetting.Get(ctx, id) + subcontrol, err := client.Subcontrol.Get(ctx, id) if err != nil { return err } - create := client.OrganizationSettingHistory.Create() + create := client.SubcontrolHistory.Create() _, err = create. SetOperation(EntOpToHistoryOp(m.Op())). SetHistoryTime(time.Now()). SetRef(id). - SetCreatedAt(organizationsetting.CreatedAt). - SetUpdatedAt(organizationsetting.UpdatedAt). - SetCreatedBy(organizationsetting.CreatedBy). - SetUpdatedBy(organizationsetting.UpdatedBy). - SetMappingID(organizationsetting.MappingID). - SetTags(organizationsetting.Tags). - SetDeletedAt(organizationsetting.DeletedAt). - SetDeletedBy(organizationsetting.DeletedBy). - SetDomains(organizationsetting.Domains). - SetBillingContact(organizationsetting.BillingContact). - SetBillingEmail(organizationsetting.BillingEmail). - SetBillingPhone(organizationsetting.BillingPhone). - SetBillingAddress(organizationsetting.BillingAddress). - SetTaxIdentifier(organizationsetting.TaxIdentifier). - SetGeoLocation(organizationsetting.GeoLocation). - SetOrganizationID(organizationsetting.OrganizationID). + SetCreatedAt(subcontrol.CreatedAt). + SetUpdatedAt(subcontrol.UpdatedAt). + SetCreatedBy(subcontrol.CreatedBy). + SetUpdatedBy(subcontrol.UpdatedBy). + SetDeletedAt(subcontrol.DeletedAt). + SetDeletedBy(subcontrol.DeletedBy). + SetMappingID(subcontrol.MappingID). + SetTags(subcontrol.Tags). + SetName(subcontrol.Name). + SetDescription(subcontrol.Description). + SetStatus(subcontrol.Status). + SetSubcontrolType(subcontrol.SubcontrolType). + SetVersion(subcontrol.Version). + SetSubcontrolNumber(subcontrol.SubcontrolNumber). + SetFamily(subcontrol.Family). + SetClass(subcontrol.Class). + SetSource(subcontrol.Source). + SetMappedFrameworks(subcontrol.MappedFrameworks). + SetImplementationEvidence(subcontrol.ImplementationEvidence). + SetImplementationStatus(subcontrol.ImplementationStatus). + SetImplementationDate(subcontrol.ImplementationDate). + SetImplementationVerification(subcontrol.ImplementationVerification). + SetImplementationVerificationDate(subcontrol.ImplementationVerificationDate). + SetDetails(subcontrol.Details). Save(ctx) if err != nil { return err diff --git a/internal/ent/generated/history_query.go b/internal/ent/generated/history_query.go index b13fa56f..10538764 100644 --- a/internal/ent/generated/history_query.go +++ b/internal/ent/generated/history_query.go @@ -8,7 +8,10 @@ import ( "time" "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" "github.com/theopenlane/core/internal/ent/generated/contacthistory" + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" "github.com/theopenlane/core/internal/ent/generated/documentdatahistory" "github.com/theopenlane/core/internal/ent/generated/entitlementhistory" "github.com/theopenlane/core/internal/ent/generated/entitlementplanfeaturehistory" @@ -23,17 +26,69 @@ import ( "github.com/theopenlane/core/internal/ent/generated/groupsettinghistory" "github.com/theopenlane/core/internal/ent/generated/hushhistory" "github.com/theopenlane/core/internal/ent/generated/integrationhistory" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" "github.com/theopenlane/core/internal/ent/generated/notehistory" "github.com/theopenlane/core/internal/ent/generated/oauthproviderhistory" "github.com/theopenlane/core/internal/ent/generated/organizationhistory" "github.com/theopenlane/core/internal/ent/generated/organizationsettinghistory" "github.com/theopenlane/core/internal/ent/generated/orgmembershiphistory" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" "github.com/theopenlane/core/internal/ent/generated/templatehistory" "github.com/theopenlane/core/internal/ent/generated/userhistory" "github.com/theopenlane/core/internal/ent/generated/usersettinghistory" "github.com/theopenlane/core/internal/ent/generated/webhookhistory" ) +func (ap *ActionPlan) History() *ActionPlanHistoryQuery { + historyClient := NewActionPlanHistoryClient(ap.config) + return historyClient.Query().Where(actionplanhistory.Ref(ap.ID)) +} + +func (aph *ActionPlanHistory) Next(ctx context.Context) (*ActionPlanHistory, error) { + client := NewActionPlanHistoryClient(aph.config) + return client.Query(). + Where( + actionplanhistory.Ref(aph.Ref), + actionplanhistory.HistoryTimeGT(aph.HistoryTime), + ). + Order(actionplanhistory.ByHistoryTime()). + First(ctx) +} + +func (aph *ActionPlanHistory) Prev(ctx context.Context) (*ActionPlanHistory, error) { + client := NewActionPlanHistoryClient(aph.config) + return client.Query(). + Where( + actionplanhistory.Ref(aph.Ref), + actionplanhistory.HistoryTimeLT(aph.HistoryTime), + ). + Order(actionplanhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (aphq *ActionPlanHistoryQuery) Earliest(ctx context.Context) (*ActionPlanHistory, error) { + return aphq. + Order(actionplanhistory.ByHistoryTime()). + First(ctx) +} + +func (aphq *ActionPlanHistoryQuery) Latest(ctx context.Context) (*ActionPlanHistory, error) { + return aphq. + Order(actionplanhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (aphq *ActionPlanHistoryQuery) AsOf(ctx context.Context, time time.Time) (*ActionPlanHistory, error) { + return aphq. + Where(actionplanhistory.HistoryTimeLTE(time)). + Order(actionplanhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + func (c *Contact) History() *ContactHistoryQuery { historyClient := NewContactHistoryClient(c.config) return historyClient.Query().Where(contacthistory.Ref(c.ID)) @@ -80,6 +135,98 @@ func (chq *ContactHistoryQuery) AsOf(ctx context.Context, time time.Time) (*Cont First(ctx) } +func (c *Control) History() *ControlHistoryQuery { + historyClient := NewControlHistoryClient(c.config) + return historyClient.Query().Where(controlhistory.Ref(c.ID)) +} + +func (ch *ControlHistory) Next(ctx context.Context) (*ControlHistory, error) { + client := NewControlHistoryClient(ch.config) + return client.Query(). + Where( + controlhistory.Ref(ch.Ref), + controlhistory.HistoryTimeGT(ch.HistoryTime), + ). + Order(controlhistory.ByHistoryTime()). + First(ctx) +} + +func (ch *ControlHistory) Prev(ctx context.Context) (*ControlHistory, error) { + client := NewControlHistoryClient(ch.config) + return client.Query(). + Where( + controlhistory.Ref(ch.Ref), + controlhistory.HistoryTimeLT(ch.HistoryTime), + ). + Order(controlhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (chq *ControlHistoryQuery) Earliest(ctx context.Context) (*ControlHistory, error) { + return chq. + Order(controlhistory.ByHistoryTime()). + First(ctx) +} + +func (chq *ControlHistoryQuery) Latest(ctx context.Context) (*ControlHistory, error) { + return chq. + Order(controlhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (chq *ControlHistoryQuery) AsOf(ctx context.Context, time time.Time) (*ControlHistory, error) { + return chq. + Where(controlhistory.HistoryTimeLTE(time)). + Order(controlhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (co *ControlObjective) History() *ControlObjectiveHistoryQuery { + historyClient := NewControlObjectiveHistoryClient(co.config) + return historyClient.Query().Where(controlobjectivehistory.Ref(co.ID)) +} + +func (coh *ControlObjectiveHistory) Next(ctx context.Context) (*ControlObjectiveHistory, error) { + client := NewControlObjectiveHistoryClient(coh.config) + return client.Query(). + Where( + controlobjectivehistory.Ref(coh.Ref), + controlobjectivehistory.HistoryTimeGT(coh.HistoryTime), + ). + Order(controlobjectivehistory.ByHistoryTime()). + First(ctx) +} + +func (coh *ControlObjectiveHistory) Prev(ctx context.Context) (*ControlObjectiveHistory, error) { + client := NewControlObjectiveHistoryClient(coh.config) + return client.Query(). + Where( + controlobjectivehistory.Ref(coh.Ref), + controlobjectivehistory.HistoryTimeLT(coh.HistoryTime), + ). + Order(controlobjectivehistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (cohq *ControlObjectiveHistoryQuery) Earliest(ctx context.Context) (*ControlObjectiveHistory, error) { + return cohq. + Order(controlobjectivehistory.ByHistoryTime()). + First(ctx) +} + +func (cohq *ControlObjectiveHistoryQuery) Latest(ctx context.Context) (*ControlObjectiveHistory, error) { + return cohq. + Order(controlobjectivehistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (cohq *ControlObjectiveHistoryQuery) AsOf(ctx context.Context, time time.Time) (*ControlObjectiveHistory, error) { + return cohq. + Where(controlobjectivehistory.HistoryTimeLTE(time)). + Order(controlobjectivehistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + func (dd *DocumentData) History() *DocumentDataHistoryQuery { historyClient := NewDocumentDataHistoryClient(dd.config) return historyClient.Query().Where(documentdatahistory.Ref(dd.ID)) @@ -724,6 +871,98 @@ func (ihq *IntegrationHistoryQuery) AsOf(ctx context.Context, time time.Time) (* First(ctx) } +func (ip *InternalPolicy) History() *InternalPolicyHistoryQuery { + historyClient := NewInternalPolicyHistoryClient(ip.config) + return historyClient.Query().Where(internalpolicyhistory.Ref(ip.ID)) +} + +func (iph *InternalPolicyHistory) Next(ctx context.Context) (*InternalPolicyHistory, error) { + client := NewInternalPolicyHistoryClient(iph.config) + return client.Query(). + Where( + internalpolicyhistory.Ref(iph.Ref), + internalpolicyhistory.HistoryTimeGT(iph.HistoryTime), + ). + Order(internalpolicyhistory.ByHistoryTime()). + First(ctx) +} + +func (iph *InternalPolicyHistory) Prev(ctx context.Context) (*InternalPolicyHistory, error) { + client := NewInternalPolicyHistoryClient(iph.config) + return client.Query(). + Where( + internalpolicyhistory.Ref(iph.Ref), + internalpolicyhistory.HistoryTimeLT(iph.HistoryTime), + ). + Order(internalpolicyhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (iphq *InternalPolicyHistoryQuery) Earliest(ctx context.Context) (*InternalPolicyHistory, error) { + return iphq. + Order(internalpolicyhistory.ByHistoryTime()). + First(ctx) +} + +func (iphq *InternalPolicyHistoryQuery) Latest(ctx context.Context) (*InternalPolicyHistory, error) { + return iphq. + Order(internalpolicyhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (iphq *InternalPolicyHistoryQuery) AsOf(ctx context.Context, time time.Time) (*InternalPolicyHistory, error) { + return iphq. + Where(internalpolicyhistory.HistoryTimeLTE(time)). + Order(internalpolicyhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (n *Narrative) History() *NarrativeHistoryQuery { + historyClient := NewNarrativeHistoryClient(n.config) + return historyClient.Query().Where(narrativehistory.Ref(n.ID)) +} + +func (nh *NarrativeHistory) Next(ctx context.Context) (*NarrativeHistory, error) { + client := NewNarrativeHistoryClient(nh.config) + return client.Query(). + Where( + narrativehistory.Ref(nh.Ref), + narrativehistory.HistoryTimeGT(nh.HistoryTime), + ). + Order(narrativehistory.ByHistoryTime()). + First(ctx) +} + +func (nh *NarrativeHistory) Prev(ctx context.Context) (*NarrativeHistory, error) { + client := NewNarrativeHistoryClient(nh.config) + return client.Query(). + Where( + narrativehistory.Ref(nh.Ref), + narrativehistory.HistoryTimeLT(nh.HistoryTime), + ). + Order(narrativehistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (nhq *NarrativeHistoryQuery) Earliest(ctx context.Context) (*NarrativeHistory, error) { + return nhq. + Order(narrativehistory.ByHistoryTime()). + First(ctx) +} + +func (nhq *NarrativeHistoryQuery) Latest(ctx context.Context) (*NarrativeHistory, error) { + return nhq. + Order(narrativehistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (nhq *NarrativeHistoryQuery) AsOf(ctx context.Context, time time.Time) (*NarrativeHistory, error) { + return nhq. + Where(narrativehistory.HistoryTimeLTE(time)). + Order(narrativehistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + func (n *Note) History() *NoteHistoryQuery { historyClient := NewNoteHistoryClient(n.config) return historyClient.Query().Where(notehistory.Ref(n.ID)) @@ -954,6 +1193,190 @@ func (oshq *OrganizationSettingHistoryQuery) AsOf(ctx context.Context, time time First(ctx) } +func (pr *Procedure) History() *ProcedureHistoryQuery { + historyClient := NewProcedureHistoryClient(pr.config) + return historyClient.Query().Where(procedurehistory.Ref(pr.ID)) +} + +func (ph *ProcedureHistory) Next(ctx context.Context) (*ProcedureHistory, error) { + client := NewProcedureHistoryClient(ph.config) + return client.Query(). + Where( + procedurehistory.Ref(ph.Ref), + procedurehistory.HistoryTimeGT(ph.HistoryTime), + ). + Order(procedurehistory.ByHistoryTime()). + First(ctx) +} + +func (ph *ProcedureHistory) Prev(ctx context.Context) (*ProcedureHistory, error) { + client := NewProcedureHistoryClient(ph.config) + return client.Query(). + Where( + procedurehistory.Ref(ph.Ref), + procedurehistory.HistoryTimeLT(ph.HistoryTime), + ). + Order(procedurehistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (phq *ProcedureHistoryQuery) Earliest(ctx context.Context) (*ProcedureHistory, error) { + return phq. + Order(procedurehistory.ByHistoryTime()). + First(ctx) +} + +func (phq *ProcedureHistoryQuery) Latest(ctx context.Context) (*ProcedureHistory, error) { + return phq. + Order(procedurehistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (phq *ProcedureHistoryQuery) AsOf(ctx context.Context, time time.Time) (*ProcedureHistory, error) { + return phq. + Where(procedurehistory.HistoryTimeLTE(time)). + Order(procedurehistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (r *Risk) History() *RiskHistoryQuery { + historyClient := NewRiskHistoryClient(r.config) + return historyClient.Query().Where(riskhistory.Ref(r.ID)) +} + +func (rh *RiskHistory) Next(ctx context.Context) (*RiskHistory, error) { + client := NewRiskHistoryClient(rh.config) + return client.Query(). + Where( + riskhistory.Ref(rh.Ref), + riskhistory.HistoryTimeGT(rh.HistoryTime), + ). + Order(riskhistory.ByHistoryTime()). + First(ctx) +} + +func (rh *RiskHistory) Prev(ctx context.Context) (*RiskHistory, error) { + client := NewRiskHistoryClient(rh.config) + return client.Query(). + Where( + riskhistory.Ref(rh.Ref), + riskhistory.HistoryTimeLT(rh.HistoryTime), + ). + Order(riskhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (rhq *RiskHistoryQuery) Earliest(ctx context.Context) (*RiskHistory, error) { + return rhq. + Order(riskhistory.ByHistoryTime()). + First(ctx) +} + +func (rhq *RiskHistoryQuery) Latest(ctx context.Context) (*RiskHistory, error) { + return rhq. + Order(riskhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (rhq *RiskHistoryQuery) AsOf(ctx context.Context, time time.Time) (*RiskHistory, error) { + return rhq. + Where(riskhistory.HistoryTimeLTE(time)). + Order(riskhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (s *Standard) History() *StandardHistoryQuery { + historyClient := NewStandardHistoryClient(s.config) + return historyClient.Query().Where(standardhistory.Ref(s.ID)) +} + +func (sh *StandardHistory) Next(ctx context.Context) (*StandardHistory, error) { + client := NewStandardHistoryClient(sh.config) + return client.Query(). + Where( + standardhistory.Ref(sh.Ref), + standardhistory.HistoryTimeGT(sh.HistoryTime), + ). + Order(standardhistory.ByHistoryTime()). + First(ctx) +} + +func (sh *StandardHistory) Prev(ctx context.Context) (*StandardHistory, error) { + client := NewStandardHistoryClient(sh.config) + return client.Query(). + Where( + standardhistory.Ref(sh.Ref), + standardhistory.HistoryTimeLT(sh.HistoryTime), + ). + Order(standardhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (shq *StandardHistoryQuery) Earliest(ctx context.Context) (*StandardHistory, error) { + return shq. + Order(standardhistory.ByHistoryTime()). + First(ctx) +} + +func (shq *StandardHistoryQuery) Latest(ctx context.Context) (*StandardHistory, error) { + return shq. + Order(standardhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (shq *StandardHistoryQuery) AsOf(ctx context.Context, time time.Time) (*StandardHistory, error) { + return shq. + Where(standardhistory.HistoryTimeLTE(time)). + Order(standardhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (s *Subcontrol) History() *SubcontrolHistoryQuery { + historyClient := NewSubcontrolHistoryClient(s.config) + return historyClient.Query().Where(subcontrolhistory.Ref(s.ID)) +} + +func (sh *SubcontrolHistory) Next(ctx context.Context) (*SubcontrolHistory, error) { + client := NewSubcontrolHistoryClient(sh.config) + return client.Query(). + Where( + subcontrolhistory.Ref(sh.Ref), + subcontrolhistory.HistoryTimeGT(sh.HistoryTime), + ). + Order(subcontrolhistory.ByHistoryTime()). + First(ctx) +} + +func (sh *SubcontrolHistory) Prev(ctx context.Context) (*SubcontrolHistory, error) { + client := NewSubcontrolHistoryClient(sh.config) + return client.Query(). + Where( + subcontrolhistory.Ref(sh.Ref), + subcontrolhistory.HistoryTimeLT(sh.HistoryTime), + ). + Order(subcontrolhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (shq *SubcontrolHistoryQuery) Earliest(ctx context.Context) (*SubcontrolHistory, error) { + return shq. + Order(subcontrolhistory.ByHistoryTime()). + First(ctx) +} + +func (shq *SubcontrolHistoryQuery) Latest(ctx context.Context) (*SubcontrolHistory, error) { + return shq. + Order(subcontrolhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + +func (shq *SubcontrolHistoryQuery) AsOf(ctx context.Context, time time.Time) (*SubcontrolHistory, error) { + return shq. + Where(subcontrolhistory.HistoryTimeLTE(time)). + Order(subcontrolhistory.ByHistoryTime(sql.OrderDesc())). + First(ctx) +} + func (t *Template) History() *TemplateHistoryQuery { historyClient := NewTemplateHistoryClient(t.config) return historyClient.Query().Where(templatehistory.Ref(t.ID)) diff --git a/internal/ent/generated/hook/hook.go b/internal/ent/generated/hook/hook.go index 5f152593..ae3c3172 100644 --- a/internal/ent/generated/hook/hook.go +++ b/internal/ent/generated/hook/hook.go @@ -21,6 +21,30 @@ func (f APITokenFunc) Mutate(ctx context.Context, m generated.Mutation) (generat return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.APITokenMutation", m) } +// The ActionPlanFunc type is an adapter to allow the use of ordinary +// function as ActionPlan mutator. +type ActionPlanFunc func(context.Context, *generated.ActionPlanMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f ActionPlanFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.ActionPlanMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.ActionPlanMutation", m) +} + +// The ActionPlanHistoryFunc type is an adapter to allow the use of ordinary +// function as ActionPlanHistory mutator. +type ActionPlanHistoryFunc func(context.Context, *generated.ActionPlanHistoryMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f ActionPlanHistoryFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.ActionPlanHistoryMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.ActionPlanHistoryMutation", m) +} + // The ContactFunc type is an adapter to allow the use of ordinary // function as Contact mutator. type ContactFunc func(context.Context, *generated.ContactMutation) (generated.Value, error) @@ -45,6 +69,54 @@ func (f ContactHistoryFunc) Mutate(ctx context.Context, m generated.Mutation) (g return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.ContactHistoryMutation", m) } +// The ControlFunc type is an adapter to allow the use of ordinary +// function as Control mutator. +type ControlFunc func(context.Context, *generated.ControlMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f ControlFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.ControlMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.ControlMutation", m) +} + +// The ControlHistoryFunc type is an adapter to allow the use of ordinary +// function as ControlHistory mutator. +type ControlHistoryFunc func(context.Context, *generated.ControlHistoryMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f ControlHistoryFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.ControlHistoryMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.ControlHistoryMutation", m) +} + +// The ControlObjectiveFunc type is an adapter to allow the use of ordinary +// function as ControlObjective mutator. +type ControlObjectiveFunc func(context.Context, *generated.ControlObjectiveMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f ControlObjectiveFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.ControlObjectiveMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.ControlObjectiveMutation", m) +} + +// The ControlObjectiveHistoryFunc type is an adapter to allow the use of ordinary +// function as ControlObjectiveHistory mutator. +type ControlObjectiveHistoryFunc func(context.Context, *generated.ControlObjectiveHistoryMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f ControlObjectiveHistoryFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.ControlObjectiveHistoryMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.ControlObjectiveHistoryMutation", m) +} + // The DocumentDataFunc type is an adapter to allow the use of ordinary // function as DocumentData mutator. type DocumentDataFunc func(context.Context, *generated.DocumentDataMutation) (generated.Value, error) @@ -393,6 +465,30 @@ func (f IntegrationHistoryFunc) Mutate(ctx context.Context, m generated.Mutation return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.IntegrationHistoryMutation", m) } +// The InternalPolicyFunc type is an adapter to allow the use of ordinary +// function as InternalPolicy mutator. +type InternalPolicyFunc func(context.Context, *generated.InternalPolicyMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f InternalPolicyFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.InternalPolicyMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.InternalPolicyMutation", m) +} + +// The InternalPolicyHistoryFunc type is an adapter to allow the use of ordinary +// function as InternalPolicyHistory mutator. +type InternalPolicyHistoryFunc func(context.Context, *generated.InternalPolicyHistoryMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f InternalPolicyHistoryFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.InternalPolicyHistoryMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.InternalPolicyHistoryMutation", m) +} + // The InviteFunc type is an adapter to allow the use of ordinary // function as Invite mutator. type InviteFunc func(context.Context, *generated.InviteMutation) (generated.Value, error) @@ -405,6 +501,30 @@ func (f InviteFunc) Mutate(ctx context.Context, m generated.Mutation) (generated return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.InviteMutation", m) } +// The NarrativeFunc type is an adapter to allow the use of ordinary +// function as Narrative mutator. +type NarrativeFunc func(context.Context, *generated.NarrativeMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f NarrativeFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.NarrativeMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.NarrativeMutation", m) +} + +// The NarrativeHistoryFunc type is an adapter to allow the use of ordinary +// function as NarrativeHistory mutator. +type NarrativeHistoryFunc func(context.Context, *generated.NarrativeHistoryMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f NarrativeHistoryFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.NarrativeHistoryMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.NarrativeHistoryMutation", m) +} + // The NoteFunc type is an adapter to allow the use of ordinary // function as Note mutator. type NoteFunc func(context.Context, *generated.NoteMutation) (generated.Value, error) @@ -561,6 +681,102 @@ func (f PersonalAccessTokenFunc) Mutate(ctx context.Context, m generated.Mutatio return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.PersonalAccessTokenMutation", m) } +// The ProcedureFunc type is an adapter to allow the use of ordinary +// function as Procedure mutator. +type ProcedureFunc func(context.Context, *generated.ProcedureMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f ProcedureFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.ProcedureMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.ProcedureMutation", m) +} + +// The ProcedureHistoryFunc type is an adapter to allow the use of ordinary +// function as ProcedureHistory mutator. +type ProcedureHistoryFunc func(context.Context, *generated.ProcedureHistoryMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f ProcedureHistoryFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.ProcedureHistoryMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.ProcedureHistoryMutation", m) +} + +// The RiskFunc type is an adapter to allow the use of ordinary +// function as Risk mutator. +type RiskFunc func(context.Context, *generated.RiskMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f RiskFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.RiskMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.RiskMutation", m) +} + +// The RiskHistoryFunc type is an adapter to allow the use of ordinary +// function as RiskHistory mutator. +type RiskHistoryFunc func(context.Context, *generated.RiskHistoryMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f RiskHistoryFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.RiskHistoryMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.RiskHistoryMutation", m) +} + +// The StandardFunc type is an adapter to allow the use of ordinary +// function as Standard mutator. +type StandardFunc func(context.Context, *generated.StandardMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f StandardFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.StandardMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.StandardMutation", m) +} + +// The StandardHistoryFunc type is an adapter to allow the use of ordinary +// function as StandardHistory mutator. +type StandardHistoryFunc func(context.Context, *generated.StandardHistoryMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f StandardHistoryFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.StandardHistoryMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.StandardHistoryMutation", m) +} + +// The SubcontrolFunc type is an adapter to allow the use of ordinary +// function as Subcontrol mutator. +type SubcontrolFunc func(context.Context, *generated.SubcontrolMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f SubcontrolFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.SubcontrolMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.SubcontrolMutation", m) +} + +// The SubcontrolHistoryFunc type is an adapter to allow the use of ordinary +// function as SubcontrolHistory mutator. +type SubcontrolHistoryFunc func(context.Context, *generated.SubcontrolHistoryMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f SubcontrolHistoryFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.SubcontrolHistoryMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.SubcontrolHistoryMutation", m) +} + // The SubscriberFunc type is an adapter to allow the use of ordinary // function as Subscriber mutator. type SubscriberFunc func(context.Context, *generated.SubscriberMutation) (generated.Value, error) diff --git a/internal/ent/generated/intercept/intercept.go b/internal/ent/generated/intercept/intercept.go index 4ea06f53..45767830 100644 --- a/internal/ent/generated/intercept/intercept.go +++ b/internal/ent/generated/intercept/intercept.go @@ -8,9 +8,15 @@ import ( "entgo.io/ent/dialect/sql" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" "github.com/theopenlane/core/internal/ent/generated/apitoken" "github.com/theopenlane/core/internal/ent/generated/contact" "github.com/theopenlane/core/internal/ent/generated/contacthistory" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" "github.com/theopenlane/core/internal/ent/generated/documentdata" "github.com/theopenlane/core/internal/ent/generated/documentdatahistory" "github.com/theopenlane/core/internal/ent/generated/emailverificationtoken" @@ -40,7 +46,11 @@ import ( "github.com/theopenlane/core/internal/ent/generated/hushhistory" "github.com/theopenlane/core/internal/ent/generated/integration" "github.com/theopenlane/core/internal/ent/generated/integrationhistory" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" "github.com/theopenlane/core/internal/ent/generated/invite" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/notehistory" "github.com/theopenlane/core/internal/ent/generated/oauthprovider" @@ -55,6 +65,14 @@ import ( "github.com/theopenlane/core/internal/ent/generated/passwordresettoken" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" "github.com/theopenlane/core/internal/ent/generated/subscriber" "github.com/theopenlane/core/internal/ent/generated/template" "github.com/theopenlane/core/internal/ent/generated/templatehistory" @@ -151,6 +169,60 @@ func (f TraverseAPIToken) Traverse(ctx context.Context, q generated.Query) error return fmt.Errorf("unexpected query type %T. expect *generated.APITokenQuery", q) } +// The ActionPlanFunc type is an adapter to allow the use of ordinary function as a Querier. +type ActionPlanFunc func(context.Context, *generated.ActionPlanQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f ActionPlanFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.ActionPlanQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.ActionPlanQuery", q) +} + +// The TraverseActionPlan type is an adapter to allow the use of ordinary function as Traverser. +type TraverseActionPlan func(context.Context, *generated.ActionPlanQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseActionPlan) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseActionPlan) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ActionPlanQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.ActionPlanQuery", q) +} + +// The ActionPlanHistoryFunc type is an adapter to allow the use of ordinary function as a Querier. +type ActionPlanHistoryFunc func(context.Context, *generated.ActionPlanHistoryQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f ActionPlanHistoryFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.ActionPlanHistoryQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.ActionPlanHistoryQuery", q) +} + +// The TraverseActionPlanHistory type is an adapter to allow the use of ordinary function as Traverser. +type TraverseActionPlanHistory func(context.Context, *generated.ActionPlanHistoryQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseActionPlanHistory) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseActionPlanHistory) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ActionPlanHistoryQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.ActionPlanHistoryQuery", q) +} + // The ContactFunc type is an adapter to allow the use of ordinary function as a Querier. type ContactFunc func(context.Context, *generated.ContactQuery) (generated.Value, error) @@ -205,6 +277,114 @@ func (f TraverseContactHistory) Traverse(ctx context.Context, q generated.Query) return fmt.Errorf("unexpected query type %T. expect *generated.ContactHistoryQuery", q) } +// The ControlFunc type is an adapter to allow the use of ordinary function as a Querier. +type ControlFunc func(context.Context, *generated.ControlQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f ControlFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.ControlQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.ControlQuery", q) +} + +// The TraverseControl type is an adapter to allow the use of ordinary function as Traverser. +type TraverseControl func(context.Context, *generated.ControlQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseControl) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseControl) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ControlQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.ControlQuery", q) +} + +// The ControlHistoryFunc type is an adapter to allow the use of ordinary function as a Querier. +type ControlHistoryFunc func(context.Context, *generated.ControlHistoryQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f ControlHistoryFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.ControlHistoryQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.ControlHistoryQuery", q) +} + +// The TraverseControlHistory type is an adapter to allow the use of ordinary function as Traverser. +type TraverseControlHistory func(context.Context, *generated.ControlHistoryQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseControlHistory) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseControlHistory) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ControlHistoryQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.ControlHistoryQuery", q) +} + +// The ControlObjectiveFunc type is an adapter to allow the use of ordinary function as a Querier. +type ControlObjectiveFunc func(context.Context, *generated.ControlObjectiveQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f ControlObjectiveFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.ControlObjectiveQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.ControlObjectiveQuery", q) +} + +// The TraverseControlObjective type is an adapter to allow the use of ordinary function as Traverser. +type TraverseControlObjective func(context.Context, *generated.ControlObjectiveQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseControlObjective) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseControlObjective) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ControlObjectiveQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.ControlObjectiveQuery", q) +} + +// The ControlObjectiveHistoryFunc type is an adapter to allow the use of ordinary function as a Querier. +type ControlObjectiveHistoryFunc func(context.Context, *generated.ControlObjectiveHistoryQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f ControlObjectiveHistoryFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.ControlObjectiveHistoryQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.ControlObjectiveHistoryQuery", q) +} + +// The TraverseControlObjectiveHistory type is an adapter to allow the use of ordinary function as Traverser. +type TraverseControlObjectiveHistory func(context.Context, *generated.ControlObjectiveHistoryQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseControlObjectiveHistory) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseControlObjectiveHistory) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ControlObjectiveHistoryQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.ControlObjectiveHistoryQuery", q) +} + // The DocumentDataFunc type is an adapter to allow the use of ordinary function as a Querier. type DocumentDataFunc func(context.Context, *generated.DocumentDataQuery) (generated.Value, error) @@ -988,6 +1168,60 @@ func (f TraverseIntegrationHistory) Traverse(ctx context.Context, q generated.Qu return fmt.Errorf("unexpected query type %T. expect *generated.IntegrationHistoryQuery", q) } +// The InternalPolicyFunc type is an adapter to allow the use of ordinary function as a Querier. +type InternalPolicyFunc func(context.Context, *generated.InternalPolicyQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f InternalPolicyFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.InternalPolicyQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.InternalPolicyQuery", q) +} + +// The TraverseInternalPolicy type is an adapter to allow the use of ordinary function as Traverser. +type TraverseInternalPolicy func(context.Context, *generated.InternalPolicyQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseInternalPolicy) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseInternalPolicy) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.InternalPolicyQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.InternalPolicyQuery", q) +} + +// The InternalPolicyHistoryFunc type is an adapter to allow the use of ordinary function as a Querier. +type InternalPolicyHistoryFunc func(context.Context, *generated.InternalPolicyHistoryQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f InternalPolicyHistoryFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.InternalPolicyHistoryQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.InternalPolicyHistoryQuery", q) +} + +// The TraverseInternalPolicyHistory type is an adapter to allow the use of ordinary function as Traverser. +type TraverseInternalPolicyHistory func(context.Context, *generated.InternalPolicyHistoryQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseInternalPolicyHistory) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseInternalPolicyHistory) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.InternalPolicyHistoryQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.InternalPolicyHistoryQuery", q) +} + // The InviteFunc type is an adapter to allow the use of ordinary function as a Querier. type InviteFunc func(context.Context, *generated.InviteQuery) (generated.Value, error) @@ -1015,6 +1249,60 @@ func (f TraverseInvite) Traverse(ctx context.Context, q generated.Query) error { return fmt.Errorf("unexpected query type %T. expect *generated.InviteQuery", q) } +// The NarrativeFunc type is an adapter to allow the use of ordinary function as a Querier. +type NarrativeFunc func(context.Context, *generated.NarrativeQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f NarrativeFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.NarrativeQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.NarrativeQuery", q) +} + +// The TraverseNarrative type is an adapter to allow the use of ordinary function as Traverser. +type TraverseNarrative func(context.Context, *generated.NarrativeQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseNarrative) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseNarrative) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.NarrativeQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.NarrativeQuery", q) +} + +// The NarrativeHistoryFunc type is an adapter to allow the use of ordinary function as a Querier. +type NarrativeHistoryFunc func(context.Context, *generated.NarrativeHistoryQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f NarrativeHistoryFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.NarrativeHistoryQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.NarrativeHistoryQuery", q) +} + +// The TraverseNarrativeHistory type is an adapter to allow the use of ordinary function as Traverser. +type TraverseNarrativeHistory func(context.Context, *generated.NarrativeHistoryQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseNarrativeHistory) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseNarrativeHistory) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.NarrativeHistoryQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.NarrativeHistoryQuery", q) +} + // The NoteFunc type is an adapter to allow the use of ordinary function as a Querier. type NoteFunc func(context.Context, *generated.NoteQuery) (generated.Value, error) @@ -1366,6 +1654,222 @@ func (f TraversePersonalAccessToken) Traverse(ctx context.Context, q generated.Q return fmt.Errorf("unexpected query type %T. expect *generated.PersonalAccessTokenQuery", q) } +// The ProcedureFunc type is an adapter to allow the use of ordinary function as a Querier. +type ProcedureFunc func(context.Context, *generated.ProcedureQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f ProcedureFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.ProcedureQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.ProcedureQuery", q) +} + +// The TraverseProcedure type is an adapter to allow the use of ordinary function as Traverser. +type TraverseProcedure func(context.Context, *generated.ProcedureQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseProcedure) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseProcedure) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ProcedureQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.ProcedureQuery", q) +} + +// The ProcedureHistoryFunc type is an adapter to allow the use of ordinary function as a Querier. +type ProcedureHistoryFunc func(context.Context, *generated.ProcedureHistoryQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f ProcedureHistoryFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.ProcedureHistoryQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.ProcedureHistoryQuery", q) +} + +// The TraverseProcedureHistory type is an adapter to allow the use of ordinary function as Traverser. +type TraverseProcedureHistory func(context.Context, *generated.ProcedureHistoryQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseProcedureHistory) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseProcedureHistory) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ProcedureHistoryQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.ProcedureHistoryQuery", q) +} + +// The RiskFunc type is an adapter to allow the use of ordinary function as a Querier. +type RiskFunc func(context.Context, *generated.RiskQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f RiskFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.RiskQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.RiskQuery", q) +} + +// The TraverseRisk type is an adapter to allow the use of ordinary function as Traverser. +type TraverseRisk func(context.Context, *generated.RiskQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseRisk) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseRisk) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.RiskQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.RiskQuery", q) +} + +// The RiskHistoryFunc type is an adapter to allow the use of ordinary function as a Querier. +type RiskHistoryFunc func(context.Context, *generated.RiskHistoryQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f RiskHistoryFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.RiskHistoryQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.RiskHistoryQuery", q) +} + +// The TraverseRiskHistory type is an adapter to allow the use of ordinary function as Traverser. +type TraverseRiskHistory func(context.Context, *generated.RiskHistoryQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseRiskHistory) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseRiskHistory) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.RiskHistoryQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.RiskHistoryQuery", q) +} + +// The StandardFunc type is an adapter to allow the use of ordinary function as a Querier. +type StandardFunc func(context.Context, *generated.StandardQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f StandardFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.StandardQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.StandardQuery", q) +} + +// The TraverseStandard type is an adapter to allow the use of ordinary function as Traverser. +type TraverseStandard func(context.Context, *generated.StandardQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseStandard) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseStandard) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.StandardQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.StandardQuery", q) +} + +// The StandardHistoryFunc type is an adapter to allow the use of ordinary function as a Querier. +type StandardHistoryFunc func(context.Context, *generated.StandardHistoryQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f StandardHistoryFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.StandardHistoryQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.StandardHistoryQuery", q) +} + +// The TraverseStandardHistory type is an adapter to allow the use of ordinary function as Traverser. +type TraverseStandardHistory func(context.Context, *generated.StandardHistoryQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseStandardHistory) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseStandardHistory) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.StandardHistoryQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.StandardHistoryQuery", q) +} + +// The SubcontrolFunc type is an adapter to allow the use of ordinary function as a Querier. +type SubcontrolFunc func(context.Context, *generated.SubcontrolQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f SubcontrolFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.SubcontrolQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.SubcontrolQuery", q) +} + +// The TraverseSubcontrol type is an adapter to allow the use of ordinary function as Traverser. +type TraverseSubcontrol func(context.Context, *generated.SubcontrolQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseSubcontrol) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseSubcontrol) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.SubcontrolQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.SubcontrolQuery", q) +} + +// The SubcontrolHistoryFunc type is an adapter to allow the use of ordinary function as a Querier. +type SubcontrolHistoryFunc func(context.Context, *generated.SubcontrolHistoryQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f SubcontrolHistoryFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.SubcontrolHistoryQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.SubcontrolHistoryQuery", q) +} + +// The TraverseSubcontrolHistory type is an adapter to allow the use of ordinary function as Traverser. +type TraverseSubcontrolHistory func(context.Context, *generated.SubcontrolHistoryQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseSubcontrolHistory) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseSubcontrolHistory) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.SubcontrolHistoryQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.SubcontrolHistoryQuery", q) +} + // The SubscriberFunc type is an adapter to allow the use of ordinary function as a Querier. type SubscriberFunc func(context.Context, *generated.SubscriberQuery) (generated.Value, error) @@ -1668,10 +2172,22 @@ func NewQuery(q generated.Query) (Query, error) { switch q := q.(type) { case *generated.APITokenQuery: return &query[*generated.APITokenQuery, predicate.APIToken, apitoken.OrderOption]{typ: generated.TypeAPIToken, tq: q}, nil + case *generated.ActionPlanQuery: + return &query[*generated.ActionPlanQuery, predicate.ActionPlan, actionplan.OrderOption]{typ: generated.TypeActionPlan, tq: q}, nil + case *generated.ActionPlanHistoryQuery: + return &query[*generated.ActionPlanHistoryQuery, predicate.ActionPlanHistory, actionplanhistory.OrderOption]{typ: generated.TypeActionPlanHistory, tq: q}, nil case *generated.ContactQuery: return &query[*generated.ContactQuery, predicate.Contact, contact.OrderOption]{typ: generated.TypeContact, tq: q}, nil case *generated.ContactHistoryQuery: return &query[*generated.ContactHistoryQuery, predicate.ContactHistory, contacthistory.OrderOption]{typ: generated.TypeContactHistory, tq: q}, nil + case *generated.ControlQuery: + return &query[*generated.ControlQuery, predicate.Control, control.OrderOption]{typ: generated.TypeControl, tq: q}, nil + case *generated.ControlHistoryQuery: + return &query[*generated.ControlHistoryQuery, predicate.ControlHistory, controlhistory.OrderOption]{typ: generated.TypeControlHistory, tq: q}, nil + case *generated.ControlObjectiveQuery: + return &query[*generated.ControlObjectiveQuery, predicate.ControlObjective, controlobjective.OrderOption]{typ: generated.TypeControlObjective, tq: q}, nil + case *generated.ControlObjectiveHistoryQuery: + return &query[*generated.ControlObjectiveHistoryQuery, predicate.ControlObjectiveHistory, controlobjectivehistory.OrderOption]{typ: generated.TypeControlObjectiveHistory, tq: q}, nil case *generated.DocumentDataQuery: return &query[*generated.DocumentDataQuery, predicate.DocumentData, documentdata.OrderOption]{typ: generated.TypeDocumentData, tq: q}, nil case *generated.DocumentDataHistoryQuery: @@ -1730,8 +2246,16 @@ func NewQuery(q generated.Query) (Query, error) { return &query[*generated.IntegrationQuery, predicate.Integration, integration.OrderOption]{typ: generated.TypeIntegration, tq: q}, nil case *generated.IntegrationHistoryQuery: return &query[*generated.IntegrationHistoryQuery, predicate.IntegrationHistory, integrationhistory.OrderOption]{typ: generated.TypeIntegrationHistory, tq: q}, nil + case *generated.InternalPolicyQuery: + return &query[*generated.InternalPolicyQuery, predicate.InternalPolicy, internalpolicy.OrderOption]{typ: generated.TypeInternalPolicy, tq: q}, nil + case *generated.InternalPolicyHistoryQuery: + return &query[*generated.InternalPolicyHistoryQuery, predicate.InternalPolicyHistory, internalpolicyhistory.OrderOption]{typ: generated.TypeInternalPolicyHistory, tq: q}, nil case *generated.InviteQuery: return &query[*generated.InviteQuery, predicate.Invite, invite.OrderOption]{typ: generated.TypeInvite, tq: q}, nil + case *generated.NarrativeQuery: + return &query[*generated.NarrativeQuery, predicate.Narrative, narrative.OrderOption]{typ: generated.TypeNarrative, tq: q}, nil + case *generated.NarrativeHistoryQuery: + return &query[*generated.NarrativeHistoryQuery, predicate.NarrativeHistory, narrativehistory.OrderOption]{typ: generated.TypeNarrativeHistory, tq: q}, nil case *generated.NoteQuery: return &query[*generated.NoteQuery, predicate.Note, note.OrderOption]{typ: generated.TypeNote, tq: q}, nil case *generated.NoteHistoryQuery: @@ -1758,6 +2282,22 @@ func NewQuery(q generated.Query) (Query, error) { return &query[*generated.PasswordResetTokenQuery, predicate.PasswordResetToken, passwordresettoken.OrderOption]{typ: generated.TypePasswordResetToken, tq: q}, nil case *generated.PersonalAccessTokenQuery: return &query[*generated.PersonalAccessTokenQuery, predicate.PersonalAccessToken, personalaccesstoken.OrderOption]{typ: generated.TypePersonalAccessToken, tq: q}, nil + case *generated.ProcedureQuery: + return &query[*generated.ProcedureQuery, predicate.Procedure, procedure.OrderOption]{typ: generated.TypeProcedure, tq: q}, nil + case *generated.ProcedureHistoryQuery: + return &query[*generated.ProcedureHistoryQuery, predicate.ProcedureHistory, procedurehistory.OrderOption]{typ: generated.TypeProcedureHistory, tq: q}, nil + case *generated.RiskQuery: + return &query[*generated.RiskQuery, predicate.Risk, risk.OrderOption]{typ: generated.TypeRisk, tq: q}, nil + case *generated.RiskHistoryQuery: + return &query[*generated.RiskHistoryQuery, predicate.RiskHistory, riskhistory.OrderOption]{typ: generated.TypeRiskHistory, tq: q}, nil + case *generated.StandardQuery: + return &query[*generated.StandardQuery, predicate.Standard, standard.OrderOption]{typ: generated.TypeStandard, tq: q}, nil + case *generated.StandardHistoryQuery: + return &query[*generated.StandardHistoryQuery, predicate.StandardHistory, standardhistory.OrderOption]{typ: generated.TypeStandardHistory, tq: q}, nil + case *generated.SubcontrolQuery: + return &query[*generated.SubcontrolQuery, predicate.Subcontrol, subcontrol.OrderOption]{typ: generated.TypeSubcontrol, tq: q}, nil + case *generated.SubcontrolHistoryQuery: + return &query[*generated.SubcontrolHistoryQuery, predicate.SubcontrolHistory, subcontrolhistory.OrderOption]{typ: generated.TypeSubcontrolHistory, tq: q}, nil case *generated.SubscriberQuery: return &query[*generated.SubscriberQuery, predicate.Subscriber, subscriber.OrderOption]{typ: generated.TypeSubscriber, tq: q}, nil case *generated.TFASettingQuery: diff --git a/internal/ent/generated/internal/schemaconfig.go b/internal/ent/generated/internal/schemaconfig.go index 11adbf75..5bcb81cf 100644 --- a/internal/ent/generated/internal/schemaconfig.go +++ b/internal/ent/generated/internal/schemaconfig.go @@ -8,9 +8,21 @@ import "context" // that can be passed at runtime. type SchemaConfig struct { APIToken string // APIToken table. + ActionPlan string // ActionPlan table. + ActionPlanHistory string // ActionPlanHistory table. Contact string // Contact table. ContactFiles string // Contact-files->File table. ContactHistory string // ContactHistory table. + Control string // Control table. + ControlProcedures string // Control-procedures->Procedure table. + ControlSubcontrols string // Control-subcontrols->Subcontrol table. + ControlNarratives string // Control-narratives->Narrative table. + ControlRisks string // Control-risks->Risk table. + ControlActionplans string // Control-actionplans->ActionPlan table. + ControlHistory string // ControlHistory table. + ControlObjective string // ControlObjective table. + ControlObjectiveNarratives string // ControlObjective-narratives->Narrative table. + ControlObjectiveHistory string // ControlObjectiveHistory table. DocumentData string // DocumentData table. DocumentDataFiles string // DocumentData-files->File table. DocumentDataHistory string // DocumentDataHistory table. @@ -57,8 +69,15 @@ type SchemaConfig struct { IntegrationEvents string // Integration-events->Event table. IntegrationWebhooks string // Integration-webhooks->Webhook table. IntegrationHistory string // IntegrationHistory table. + InternalPolicy string // InternalPolicy table. + InternalPolicyControlobjectives string // InternalPolicy-controlobjectives->ControlObjective table. + InternalPolicyProcedures string // InternalPolicy-procedures->Procedure table. + InternalPolicyNarratives string // InternalPolicy-narratives->Narrative table. + InternalPolicyHistory string // InternalPolicyHistory table. Invite string // Invite table. InviteEvents string // Invite-events->Event table. + Narrative string // Narrative table. + NarrativeHistory string // NarrativeHistory table. Note string // Note table. NoteHistory string // NoteHistory table. OauthProvider string // OauthProvider table. @@ -80,6 +99,20 @@ type SchemaConfig struct { PasswordResetToken string // PasswordResetToken table. PersonalAccessToken string // PersonalAccessToken table. PersonalAccessTokenEvents string // PersonalAccessToken-events->Event table. + Procedure string // Procedure table. + ProcedureNarratives string // Procedure-narratives->Narrative table. + ProcedureRisks string // Procedure-risks->Risk table. + ProcedureHistory string // ProcedureHistory table. + Risk string // Risk table. + RiskActionplans string // Risk-actionplans->ActionPlan table. + RiskHistory string // RiskHistory table. + Standard string // Standard table. + StandardControlobjectives string // Standard-controlobjectives->ControlObjective table. + StandardControls string // Standard-controls->Control table. + StandardActionplans string // Standard-actionplans->ActionPlan table. + StandardHistory string // StandardHistory table. + Subcontrol string // Subcontrol table. + SubcontrolHistory string // SubcontrolHistory table. Subscriber string // Subscriber table. SubscriberEvents string // Subscriber-events->Event table. TFASetting string // TFASetting table. @@ -89,6 +122,8 @@ type SchemaConfig struct { User string // User table. UserFiles string // User-files->File table. UserEvents string // User-events->Event table. + UserActionplans string // User-actionplans->ActionPlan table. + UserSubcontrols string // User-subcontrols->Subcontrol table. UserHistory string // UserHistory table. UserSetting string // UserSetting table. UserSettingFiles string // UserSetting-files->File table. diff --git a/internal/ent/generated/internalpolicy.go b/internal/ent/generated/internalpolicy.go new file mode 100644 index 00000000..797e09d5 --- /dev/null +++ b/internal/ent/generated/internalpolicy.go @@ -0,0 +1,453 @@ +// 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/internal/ent/generated/internalpolicy" +) + +// InternalPolicy is the model entity for the InternalPolicy schema. +type InternalPolicy 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the policy + Name string `json:"name,omitempty"` + // description of the policy + Description string `json:"description,omitempty"` + // status of the policy + Status string `json:"status,omitempty"` + // type of the policy + PolicyType string `json:"policy_type,omitempty"` + // version of the policy + Version string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope string `json:"purpose_and_scope,omitempty"` + // background of the policy + Background string `json:"background,omitempty"` + // json data for the policy document + Details map[string]interface{} `json:"details,omitempty"` + // Edges holds the relations/edges for other nodes in the graph. + // The values are being populated by the InternalPolicyQuery when eager-loading is set. + Edges InternalPolicyEdges `json:"edges"` + selectValues sql.SelectValues +} + +// InternalPolicyEdges holds the relations/edges for other nodes in the graph. +type InternalPolicyEdges struct { + // Controlobjectives holds the value of the controlobjectives edge. + Controlobjectives []*ControlObjective `json:"controlobjectives,omitempty"` + // Controls holds the value of the controls edge. + Controls []*Control `json:"controls,omitempty"` + // Procedures holds the value of the procedures edge. + Procedures []*Procedure `json:"procedures,omitempty"` + // Narratives holds the value of the narratives edge. + Narratives []*Narrative `json:"narratives,omitempty"` + // loadedTypes holds the information for reporting if a + // type was loaded (or requested) in eager-loading or not. + loadedTypes [4]bool + // totalCount holds the count of the edges above. + totalCount [4]map[string]int + + namedControlobjectives map[string][]*ControlObjective + namedControls map[string][]*Control + namedProcedures map[string][]*Procedure + namedNarratives map[string][]*Narrative +} + +// ControlobjectivesOrErr returns the Controlobjectives value or an error if the edge +// was not loaded in eager-loading. +func (e InternalPolicyEdges) ControlobjectivesOrErr() ([]*ControlObjective, error) { + if e.loadedTypes[0] { + return e.Controlobjectives, nil + } + return nil, &NotLoadedError{edge: "controlobjectives"} +} + +// ControlsOrErr returns the Controls value or an error if the edge +// was not loaded in eager-loading. +func (e InternalPolicyEdges) ControlsOrErr() ([]*Control, error) { + if e.loadedTypes[1] { + return e.Controls, nil + } + return nil, &NotLoadedError{edge: "controls"} +} + +// ProceduresOrErr returns the Procedures value or an error if the edge +// was not loaded in eager-loading. +func (e InternalPolicyEdges) ProceduresOrErr() ([]*Procedure, error) { + if e.loadedTypes[2] { + return e.Procedures, nil + } + return nil, &NotLoadedError{edge: "procedures"} +} + +// NarrativesOrErr returns the Narratives value or an error if the edge +// was not loaded in eager-loading. +func (e InternalPolicyEdges) NarrativesOrErr() ([]*Narrative, error) { + if e.loadedTypes[3] { + return e.Narratives, nil + } + return nil, &NotLoadedError{edge: "narratives"} +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*InternalPolicy) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case internalpolicy.FieldTags, internalpolicy.FieldDetails: + values[i] = new([]byte) + case internalpolicy.FieldID, internalpolicy.FieldCreatedBy, internalpolicy.FieldUpdatedBy, internalpolicy.FieldDeletedBy, internalpolicy.FieldMappingID, internalpolicy.FieldName, internalpolicy.FieldDescription, internalpolicy.FieldStatus, internalpolicy.FieldPolicyType, internalpolicy.FieldVersion, internalpolicy.FieldPurposeAndScope, internalpolicy.FieldBackground: + values[i] = new(sql.NullString) + case internalpolicy.FieldCreatedAt, internalpolicy.FieldUpdatedAt, internalpolicy.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 InternalPolicy fields. +func (ip *InternalPolicy) 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 internalpolicy.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + ip.ID = value.String + } + case internalpolicy.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 { + ip.CreatedAt = value.Time + } + case internalpolicy.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 { + ip.UpdatedAt = value.Time + } + case internalpolicy.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 { + ip.CreatedBy = value.String + } + case internalpolicy.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 { + ip.UpdatedBy = value.String + } + case internalpolicy.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 { + ip.DeletedAt = value.Time + } + case internalpolicy.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 { + ip.DeletedBy = value.String + } + case internalpolicy.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + ip.MappingID = value.String + } + case internalpolicy.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, &ip.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case internalpolicy.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + ip.Name = value.String + } + case internalpolicy.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + ip.Description = value.String + } + case internalpolicy.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + ip.Status = value.String + } + case internalpolicy.FieldPolicyType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field policy_type", values[i]) + } else if value.Valid { + ip.PolicyType = value.String + } + case internalpolicy.FieldVersion: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field version", values[i]) + } else if value.Valid { + ip.Version = value.String + } + case internalpolicy.FieldPurposeAndScope: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field purpose_and_scope", values[i]) + } else if value.Valid { + ip.PurposeAndScope = value.String + } + case internalpolicy.FieldBackground: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field background", values[i]) + } else if value.Valid { + ip.Background = value.String + } + case internalpolicy.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &ip.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + ip.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the InternalPolicy. +// This includes values selected through modifiers, order, etc. +func (ip *InternalPolicy) Value(name string) (ent.Value, error) { + return ip.selectValues.Get(name) +} + +// QueryControlobjectives queries the "controlobjectives" edge of the InternalPolicy entity. +func (ip *InternalPolicy) QueryControlobjectives() *ControlObjectiveQuery { + return NewInternalPolicyClient(ip.config).QueryControlobjectives(ip) +} + +// QueryControls queries the "controls" edge of the InternalPolicy entity. +func (ip *InternalPolicy) QueryControls() *ControlQuery { + return NewInternalPolicyClient(ip.config).QueryControls(ip) +} + +// QueryProcedures queries the "procedures" edge of the InternalPolicy entity. +func (ip *InternalPolicy) QueryProcedures() *ProcedureQuery { + return NewInternalPolicyClient(ip.config).QueryProcedures(ip) +} + +// QueryNarratives queries the "narratives" edge of the InternalPolicy entity. +func (ip *InternalPolicy) QueryNarratives() *NarrativeQuery { + return NewInternalPolicyClient(ip.config).QueryNarratives(ip) +} + +// Update returns a builder for updating this InternalPolicy. +// Note that you need to call InternalPolicy.Unwrap() before calling this method if this InternalPolicy +// was returned from a transaction, and the transaction was committed or rolled back. +func (ip *InternalPolicy) Update() *InternalPolicyUpdateOne { + return NewInternalPolicyClient(ip.config).UpdateOne(ip) +} + +// Unwrap unwraps the InternalPolicy 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 (ip *InternalPolicy) Unwrap() *InternalPolicy { + _tx, ok := ip.config.driver.(*txDriver) + if !ok { + panic("generated: InternalPolicy is not a transactional entity") + } + ip.config.driver = _tx.drv + return ip +} + +// String implements the fmt.Stringer. +func (ip *InternalPolicy) String() string { + var builder strings.Builder + builder.WriteString("InternalPolicy(") + builder.WriteString(fmt.Sprintf("id=%v, ", ip.ID)) + builder.WriteString("created_at=") + builder.WriteString(ip.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(ip.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(ip.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(ip.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(ip.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(ip.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(ip.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", ip.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(ip.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(ip.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(ip.Status) + builder.WriteString(", ") + builder.WriteString("policy_type=") + builder.WriteString(ip.PolicyType) + builder.WriteString(", ") + builder.WriteString("version=") + builder.WriteString(ip.Version) + builder.WriteString(", ") + builder.WriteString("purpose_and_scope=") + builder.WriteString(ip.PurposeAndScope) + builder.WriteString(", ") + builder.WriteString("background=") + builder.WriteString(ip.Background) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", ip.Details)) + builder.WriteByte(')') + return builder.String() +} + +// NamedControlobjectives returns the Controlobjectives named value or an error if the edge was not +// loaded in eager-loading with this name. +func (ip *InternalPolicy) NamedControlobjectives(name string) ([]*ControlObjective, error) { + if ip.Edges.namedControlobjectives == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := ip.Edges.namedControlobjectives[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (ip *InternalPolicy) appendNamedControlobjectives(name string, edges ...*ControlObjective) { + if ip.Edges.namedControlobjectives == nil { + ip.Edges.namedControlobjectives = make(map[string][]*ControlObjective) + } + if len(edges) == 0 { + ip.Edges.namedControlobjectives[name] = []*ControlObjective{} + } else { + ip.Edges.namedControlobjectives[name] = append(ip.Edges.namedControlobjectives[name], edges...) + } +} + +// NamedControls returns the Controls named value or an error if the edge was not +// loaded in eager-loading with this name. +func (ip *InternalPolicy) NamedControls(name string) ([]*Control, error) { + if ip.Edges.namedControls == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := ip.Edges.namedControls[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (ip *InternalPolicy) appendNamedControls(name string, edges ...*Control) { + if ip.Edges.namedControls == nil { + ip.Edges.namedControls = make(map[string][]*Control) + } + if len(edges) == 0 { + ip.Edges.namedControls[name] = []*Control{} + } else { + ip.Edges.namedControls[name] = append(ip.Edges.namedControls[name], edges...) + } +} + +// NamedProcedures returns the Procedures named value or an error if the edge was not +// loaded in eager-loading with this name. +func (ip *InternalPolicy) NamedProcedures(name string) ([]*Procedure, error) { + if ip.Edges.namedProcedures == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := ip.Edges.namedProcedures[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (ip *InternalPolicy) appendNamedProcedures(name string, edges ...*Procedure) { + if ip.Edges.namedProcedures == nil { + ip.Edges.namedProcedures = make(map[string][]*Procedure) + } + if len(edges) == 0 { + ip.Edges.namedProcedures[name] = []*Procedure{} + } else { + ip.Edges.namedProcedures[name] = append(ip.Edges.namedProcedures[name], edges...) + } +} + +// NamedNarratives returns the Narratives named value or an error if the edge was not +// loaded in eager-loading with this name. +func (ip *InternalPolicy) NamedNarratives(name string) ([]*Narrative, error) { + if ip.Edges.namedNarratives == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := ip.Edges.namedNarratives[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (ip *InternalPolicy) appendNamedNarratives(name string, edges ...*Narrative) { + if ip.Edges.namedNarratives == nil { + ip.Edges.namedNarratives = make(map[string][]*Narrative) + } + if len(edges) == 0 { + ip.Edges.namedNarratives[name] = []*Narrative{} + } else { + ip.Edges.namedNarratives[name] = append(ip.Edges.namedNarratives[name], edges...) + } +} + +// InternalPolicies is a parsable slice of InternalPolicy. +type InternalPolicies []*InternalPolicy diff --git a/internal/ent/generated/internalpolicy/internalpolicy.go b/internal/ent/generated/internalpolicy/internalpolicy.go new file mode 100644 index 00000000..112437f8 --- /dev/null +++ b/internal/ent/generated/internalpolicy/internalpolicy.go @@ -0,0 +1,309 @@ +// Code generated by ent, DO NOT EDIT. + +package internalpolicy + +import ( + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" +) + +const ( + // Label holds the string label denoting the internalpolicy type in the database. + Label = "internal_policy" + // 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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldPolicyType holds the string denoting the policy_type field in the database. + FieldPolicyType = "policy_type" + // FieldVersion holds the string denoting the version field in the database. + FieldVersion = "version" + // FieldPurposeAndScope holds the string denoting the purpose_and_scope field in the database. + FieldPurposeAndScope = "purpose_and_scope" + // FieldBackground holds the string denoting the background field in the database. + FieldBackground = "background" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // EdgeControlobjectives holds the string denoting the controlobjectives edge name in mutations. + EdgeControlobjectives = "controlobjectives" + // EdgeControls holds the string denoting the controls edge name in mutations. + EdgeControls = "controls" + // EdgeProcedures holds the string denoting the procedures edge name in mutations. + EdgeProcedures = "procedures" + // EdgeNarratives holds the string denoting the narratives edge name in mutations. + EdgeNarratives = "narratives" + // Table holds the table name of the internalpolicy in the database. + Table = "internal_policies" + // ControlobjectivesTable is the table that holds the controlobjectives relation/edge. The primary key declared below. + ControlobjectivesTable = "internal_policy_controlobjectives" + // ControlobjectivesInverseTable is the table name for the ControlObjective entity. + // It exists in this package in order to avoid circular dependency with the "controlobjective" package. + ControlobjectivesInverseTable = "control_objectives" + // ControlsTable is the table that holds the controls relation/edge. + ControlsTable = "controls" + // ControlsInverseTable is the table name for the Control entity. + // It exists in this package in order to avoid circular dependency with the "control" package. + ControlsInverseTable = "controls" + // ControlsColumn is the table column denoting the controls relation/edge. + ControlsColumn = "internal_policy_controls" + // ProceduresTable is the table that holds the procedures relation/edge. The primary key declared below. + ProceduresTable = "internal_policy_procedures" + // ProceduresInverseTable is the table name for the Procedure entity. + // It exists in this package in order to avoid circular dependency with the "procedure" package. + ProceduresInverseTable = "procedures" + // NarrativesTable is the table that holds the narratives relation/edge. The primary key declared below. + NarrativesTable = "internal_policy_narratives" + // NarrativesInverseTable is the table name for the Narrative entity. + // It exists in this package in order to avoid circular dependency with the "narrative" package. + NarrativesInverseTable = "narratives" +) + +// Columns holds all SQL columns for internalpolicy fields. +var Columns = []string{ + FieldID, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldPolicyType, + FieldVersion, + FieldPurposeAndScope, + FieldBackground, + FieldDetails, +} + +var ( + // ControlobjectivesPrimaryKey and ControlobjectivesColumn2 are the table columns denoting the + // primary key for the controlobjectives relation (M2M). + ControlobjectivesPrimaryKey = []string{"internal_policy_id", "control_objective_id"} + // ProceduresPrimaryKey and ProceduresColumn2 are the table columns denoting the + // primary key for the procedures relation (M2M). + ProceduresPrimaryKey = []string{"internal_policy_id", "procedure_id"} + // NarrativesPrimaryKey and NarrativesColumn2 are the table columns denoting the + // primary key for the narratives relation (M2M). + NarrativesPrimaryKey = []string{"internal_policy_id", "narrative_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/internal/ent/generated/runtime" +var ( + Hooks [2]ent.Hook + Interceptors [1]ent.Interceptor + // 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 + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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 +) + +// OrderOption defines the ordering options for the InternalPolicy 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByPolicyType orders the results by the policy_type field. +func ByPolicyType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldPolicyType, opts...).ToFunc() +} + +// ByVersion orders the results by the version field. +func ByVersion(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldVersion, opts...).ToFunc() +} + +// ByPurposeAndScope orders the results by the purpose_and_scope field. +func ByPurposeAndScope(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldPurposeAndScope, opts...).ToFunc() +} + +// ByBackground orders the results by the background field. +func ByBackground(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldBackground, opts...).ToFunc() +} + +// ByControlobjectivesCount orders the results by controlobjectives count. +func ByControlobjectivesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlobjectivesStep(), opts...) + } +} + +// ByControlobjectives orders the results by controlobjectives terms. +func ByControlobjectives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlobjectivesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByControlsCount orders the results by controls count. +func ByControlsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlsStep(), opts...) + } +} + +// ByControls orders the results by controls terms. +func ByControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByProceduresCount orders the results by procedures count. +func ByProceduresCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newProceduresStep(), opts...) + } +} + +// ByProcedures orders the results by procedures terms. +func ByProcedures(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newProceduresStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByNarrativesCount orders the results by narratives count. +func ByNarrativesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newNarrativesStep(), opts...) + } +} + +// ByNarratives orders the results by narratives terms. +func ByNarratives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newNarrativesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} +func newControlobjectivesStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ControlobjectivesInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ControlobjectivesTable, ControlobjectivesPrimaryKey...), + ) +} +func newControlsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ControlsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ControlsTable, ControlsColumn), + ) +} +func newProceduresStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ProceduresInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ProceduresTable, ProceduresPrimaryKey...), + ) +} +func newNarrativesStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(NarrativesInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, NarrativesTable, NarrativesPrimaryKey...), + ) +} diff --git a/internal/ent/generated/internalpolicy/where.go b/internal/ent/generated/internalpolicy/where.go new file mode 100644 index 00000000..41d16244 --- /dev/null +++ b/internal/ent/generated/internalpolicy/where.go @@ -0,0 +1,1234 @@ +// Code generated by ent, DO NOT EDIT. + +package internalpolicy + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.InternalPolicy { + return predicate.InternalPolicy(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.InternalPolicy { + return predicate.InternalPolicy(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.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldStatus, v)) +} + +// PolicyType applies equality check predicate on the "policy_type" field. It's identical to PolicyTypeEQ. +func PolicyType(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldPolicyType, v)) +} + +// Version applies equality check predicate on the "version" field. It's identical to VersionEQ. +func Version(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldVersion, v)) +} + +// PurposeAndScope applies equality check predicate on the "purpose_and_scope" field. It's identical to PurposeAndScopeEQ. +func PurposeAndScope(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldPurposeAndScope, v)) +} + +// Background applies equality check predicate on the "background" field. It's identical to BackgroundEQ. +func Background(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldBackground, v)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContainsFold(FieldStatus, v)) +} + +// PolicyTypeEQ applies the EQ predicate on the "policy_type" field. +func PolicyTypeEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldPolicyType, v)) +} + +// PolicyTypeNEQ applies the NEQ predicate on the "policy_type" field. +func PolicyTypeNEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldPolicyType, v)) +} + +// PolicyTypeIn applies the In predicate on the "policy_type" field. +func PolicyTypeIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldPolicyType, vs...)) +} + +// PolicyTypeNotIn applies the NotIn predicate on the "policy_type" field. +func PolicyTypeNotIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldPolicyType, vs...)) +} + +// PolicyTypeGT applies the GT predicate on the "policy_type" field. +func PolicyTypeGT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldPolicyType, v)) +} + +// PolicyTypeGTE applies the GTE predicate on the "policy_type" field. +func PolicyTypeGTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldPolicyType, v)) +} + +// PolicyTypeLT applies the LT predicate on the "policy_type" field. +func PolicyTypeLT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldPolicyType, v)) +} + +// PolicyTypeLTE applies the LTE predicate on the "policy_type" field. +func PolicyTypeLTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldPolicyType, v)) +} + +// PolicyTypeContains applies the Contains predicate on the "policy_type" field. +func PolicyTypeContains(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContains(FieldPolicyType, v)) +} + +// PolicyTypeHasPrefix applies the HasPrefix predicate on the "policy_type" field. +func PolicyTypeHasPrefix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasPrefix(FieldPolicyType, v)) +} + +// PolicyTypeHasSuffix applies the HasSuffix predicate on the "policy_type" field. +func PolicyTypeHasSuffix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasSuffix(FieldPolicyType, v)) +} + +// PolicyTypeIsNil applies the IsNil predicate on the "policy_type" field. +func PolicyTypeIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldPolicyType)) +} + +// PolicyTypeNotNil applies the NotNil predicate on the "policy_type" field. +func PolicyTypeNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldPolicyType)) +} + +// PolicyTypeEqualFold applies the EqualFold predicate on the "policy_type" field. +func PolicyTypeEqualFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEqualFold(FieldPolicyType, v)) +} + +// PolicyTypeContainsFold applies the ContainsFold predicate on the "policy_type" field. +func PolicyTypeContainsFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContainsFold(FieldPolicyType, v)) +} + +// VersionEQ applies the EQ predicate on the "version" field. +func VersionEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldVersion, v)) +} + +// VersionNEQ applies the NEQ predicate on the "version" field. +func VersionNEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldVersion, v)) +} + +// VersionIn applies the In predicate on the "version" field. +func VersionIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldVersion, vs...)) +} + +// VersionNotIn applies the NotIn predicate on the "version" field. +func VersionNotIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldVersion, vs...)) +} + +// VersionGT applies the GT predicate on the "version" field. +func VersionGT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldVersion, v)) +} + +// VersionGTE applies the GTE predicate on the "version" field. +func VersionGTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldVersion, v)) +} + +// VersionLT applies the LT predicate on the "version" field. +func VersionLT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldVersion, v)) +} + +// VersionLTE applies the LTE predicate on the "version" field. +func VersionLTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldVersion, v)) +} + +// VersionContains applies the Contains predicate on the "version" field. +func VersionContains(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContains(FieldVersion, v)) +} + +// VersionHasPrefix applies the HasPrefix predicate on the "version" field. +func VersionHasPrefix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasPrefix(FieldVersion, v)) +} + +// VersionHasSuffix applies the HasSuffix predicate on the "version" field. +func VersionHasSuffix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasSuffix(FieldVersion, v)) +} + +// VersionIsNil applies the IsNil predicate on the "version" field. +func VersionIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldVersion)) +} + +// VersionNotNil applies the NotNil predicate on the "version" field. +func VersionNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldVersion)) +} + +// VersionEqualFold applies the EqualFold predicate on the "version" field. +func VersionEqualFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEqualFold(FieldVersion, v)) +} + +// VersionContainsFold applies the ContainsFold predicate on the "version" field. +func VersionContainsFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContainsFold(FieldVersion, v)) +} + +// PurposeAndScopeEQ applies the EQ predicate on the "purpose_and_scope" field. +func PurposeAndScopeEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeNEQ applies the NEQ predicate on the "purpose_and_scope" field. +func PurposeAndScopeNEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeIn applies the In predicate on the "purpose_and_scope" field. +func PurposeAndScopeIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldPurposeAndScope, vs...)) +} + +// PurposeAndScopeNotIn applies the NotIn predicate on the "purpose_and_scope" field. +func PurposeAndScopeNotIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldPurposeAndScope, vs...)) +} + +// PurposeAndScopeGT applies the GT predicate on the "purpose_and_scope" field. +func PurposeAndScopeGT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeGTE applies the GTE predicate on the "purpose_and_scope" field. +func PurposeAndScopeGTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeLT applies the LT predicate on the "purpose_and_scope" field. +func PurposeAndScopeLT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeLTE applies the LTE predicate on the "purpose_and_scope" field. +func PurposeAndScopeLTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeContains applies the Contains predicate on the "purpose_and_scope" field. +func PurposeAndScopeContains(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContains(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeHasPrefix applies the HasPrefix predicate on the "purpose_and_scope" field. +func PurposeAndScopeHasPrefix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasPrefix(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeHasSuffix applies the HasSuffix predicate on the "purpose_and_scope" field. +func PurposeAndScopeHasSuffix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasSuffix(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeIsNil applies the IsNil predicate on the "purpose_and_scope" field. +func PurposeAndScopeIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldPurposeAndScope)) +} + +// PurposeAndScopeNotNil applies the NotNil predicate on the "purpose_and_scope" field. +func PurposeAndScopeNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldPurposeAndScope)) +} + +// PurposeAndScopeEqualFold applies the EqualFold predicate on the "purpose_and_scope" field. +func PurposeAndScopeEqualFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEqualFold(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeContainsFold applies the ContainsFold predicate on the "purpose_and_scope" field. +func PurposeAndScopeContainsFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContainsFold(FieldPurposeAndScope, v)) +} + +// BackgroundEQ applies the EQ predicate on the "background" field. +func BackgroundEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEQ(FieldBackground, v)) +} + +// BackgroundNEQ applies the NEQ predicate on the "background" field. +func BackgroundNEQ(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNEQ(FieldBackground, v)) +} + +// BackgroundIn applies the In predicate on the "background" field. +func BackgroundIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIn(FieldBackground, vs...)) +} + +// BackgroundNotIn applies the NotIn predicate on the "background" field. +func BackgroundNotIn(vs ...string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotIn(FieldBackground, vs...)) +} + +// BackgroundGT applies the GT predicate on the "background" field. +func BackgroundGT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGT(FieldBackground, v)) +} + +// BackgroundGTE applies the GTE predicate on the "background" field. +func BackgroundGTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldGTE(FieldBackground, v)) +} + +// BackgroundLT applies the LT predicate on the "background" field. +func BackgroundLT(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLT(FieldBackground, v)) +} + +// BackgroundLTE applies the LTE predicate on the "background" field. +func BackgroundLTE(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldLTE(FieldBackground, v)) +} + +// BackgroundContains applies the Contains predicate on the "background" field. +func BackgroundContains(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContains(FieldBackground, v)) +} + +// BackgroundHasPrefix applies the HasPrefix predicate on the "background" field. +func BackgroundHasPrefix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasPrefix(FieldBackground, v)) +} + +// BackgroundHasSuffix applies the HasSuffix predicate on the "background" field. +func BackgroundHasSuffix(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldHasSuffix(FieldBackground, v)) +} + +// BackgroundIsNil applies the IsNil predicate on the "background" field. +func BackgroundIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldBackground)) +} + +// BackgroundNotNil applies the NotNil predicate on the "background" field. +func BackgroundNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldBackground)) +} + +// BackgroundEqualFold applies the EqualFold predicate on the "background" field. +func BackgroundEqualFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldEqualFold(FieldBackground, v)) +} + +// BackgroundContainsFold applies the ContainsFold predicate on the "background" field. +func BackgroundContainsFold(v string) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldContainsFold(FieldBackground, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.InternalPolicy { + return predicate.InternalPolicy(sql.FieldNotNull(FieldDetails)) +} + +// HasControlobjectives applies the HasEdge predicate on the "controlobjectives" edge. +func HasControlobjectives() predicate.InternalPolicy { + return predicate.InternalPolicy(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ControlobjectivesTable, ControlobjectivesPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.InternalPolicyControlobjectives + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlobjectivesWith applies the HasEdge predicate on the "controlobjectives" edge with a given conditions (other predicates). +func HasControlobjectivesWith(preds ...predicate.ControlObjective) predicate.InternalPolicy { + return predicate.InternalPolicy(func(s *sql.Selector) { + step := newControlobjectivesStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.InternalPolicyControlobjectives + 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.InternalPolicy { + return predicate.InternalPolicy(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ControlsTable, ControlsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.Control + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlsWith applies the HasEdge predicate on the "controls" edge with a given conditions (other predicates). +func HasControlsWith(preds ...predicate.Control) predicate.InternalPolicy { + return predicate.InternalPolicy(func(s *sql.Selector) { + step := newControlsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.Control + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasProcedures applies the HasEdge predicate on the "procedures" edge. +func HasProcedures() predicate.InternalPolicy { + return predicate.InternalPolicy(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ProceduresTable, ProceduresPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.InternalPolicyProcedures + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasProceduresWith applies the HasEdge predicate on the "procedures" edge with a given conditions (other predicates). +func HasProceduresWith(preds ...predicate.Procedure) predicate.InternalPolicy { + return predicate.InternalPolicy(func(s *sql.Selector) { + step := newProceduresStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.InternalPolicyProcedures + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasNarratives applies the HasEdge predicate on the "narratives" edge. +func HasNarratives() predicate.InternalPolicy { + return predicate.InternalPolicy(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, NarrativesTable, NarrativesPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.InternalPolicyNarratives + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasNarrativesWith applies the HasEdge predicate on the "narratives" edge with a given conditions (other predicates). +func HasNarrativesWith(preds ...predicate.Narrative) predicate.InternalPolicy { + return predicate.InternalPolicy(func(s *sql.Selector) { + step := newNarrativesStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.InternalPolicyNarratives + 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.InternalPolicy) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.InternalPolicy) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.InternalPolicy) predicate.InternalPolicy { + return predicate.InternalPolicy(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/internalpolicy_create.go b/internal/ent/generated/internalpolicy_create.go new file mode 100644 index 00000000..5419f48e --- /dev/null +++ b/internal/ent/generated/internalpolicy_create.go @@ -0,0 +1,629 @@ +// 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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/procedure" +) + +// InternalPolicyCreate is the builder for creating a InternalPolicy entity. +type InternalPolicyCreate struct { + config + mutation *InternalPolicyMutation + hooks []Hook +} + +// SetCreatedAt sets the "created_at" field. +func (ipc *InternalPolicyCreate) SetCreatedAt(t time.Time) *InternalPolicyCreate { + ipc.mutation.SetCreatedAt(t) + return ipc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillableCreatedAt(t *time.Time) *InternalPolicyCreate { + if t != nil { + ipc.SetCreatedAt(*t) + } + return ipc +} + +// SetUpdatedAt sets the "updated_at" field. +func (ipc *InternalPolicyCreate) SetUpdatedAt(t time.Time) *InternalPolicyCreate { + ipc.mutation.SetUpdatedAt(t) + return ipc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillableUpdatedAt(t *time.Time) *InternalPolicyCreate { + if t != nil { + ipc.SetUpdatedAt(*t) + } + return ipc +} + +// SetCreatedBy sets the "created_by" field. +func (ipc *InternalPolicyCreate) SetCreatedBy(s string) *InternalPolicyCreate { + ipc.mutation.SetCreatedBy(s) + return ipc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillableCreatedBy(s *string) *InternalPolicyCreate { + if s != nil { + ipc.SetCreatedBy(*s) + } + return ipc +} + +// SetUpdatedBy sets the "updated_by" field. +func (ipc *InternalPolicyCreate) SetUpdatedBy(s string) *InternalPolicyCreate { + ipc.mutation.SetUpdatedBy(s) + return ipc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillableUpdatedBy(s *string) *InternalPolicyCreate { + if s != nil { + ipc.SetUpdatedBy(*s) + } + return ipc +} + +// SetDeletedAt sets the "deleted_at" field. +func (ipc *InternalPolicyCreate) SetDeletedAt(t time.Time) *InternalPolicyCreate { + ipc.mutation.SetDeletedAt(t) + return ipc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillableDeletedAt(t *time.Time) *InternalPolicyCreate { + if t != nil { + ipc.SetDeletedAt(*t) + } + return ipc +} + +// SetDeletedBy sets the "deleted_by" field. +func (ipc *InternalPolicyCreate) SetDeletedBy(s string) *InternalPolicyCreate { + ipc.mutation.SetDeletedBy(s) + return ipc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillableDeletedBy(s *string) *InternalPolicyCreate { + if s != nil { + ipc.SetDeletedBy(*s) + } + return ipc +} + +// SetMappingID sets the "mapping_id" field. +func (ipc *InternalPolicyCreate) SetMappingID(s string) *InternalPolicyCreate { + ipc.mutation.SetMappingID(s) + return ipc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillableMappingID(s *string) *InternalPolicyCreate { + if s != nil { + ipc.SetMappingID(*s) + } + return ipc +} + +// SetTags sets the "tags" field. +func (ipc *InternalPolicyCreate) SetTags(s []string) *InternalPolicyCreate { + ipc.mutation.SetTags(s) + return ipc +} + +// SetName sets the "name" field. +func (ipc *InternalPolicyCreate) SetName(s string) *InternalPolicyCreate { + ipc.mutation.SetName(s) + return ipc +} + +// SetDescription sets the "description" field. +func (ipc *InternalPolicyCreate) SetDescription(s string) *InternalPolicyCreate { + ipc.mutation.SetDescription(s) + return ipc +} + +// SetStatus sets the "status" field. +func (ipc *InternalPolicyCreate) SetStatus(s string) *InternalPolicyCreate { + ipc.mutation.SetStatus(s) + return ipc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillableStatus(s *string) *InternalPolicyCreate { + if s != nil { + ipc.SetStatus(*s) + } + return ipc +} + +// SetPolicyType sets the "policy_type" field. +func (ipc *InternalPolicyCreate) SetPolicyType(s string) *InternalPolicyCreate { + ipc.mutation.SetPolicyType(s) + return ipc +} + +// SetNillablePolicyType sets the "policy_type" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillablePolicyType(s *string) *InternalPolicyCreate { + if s != nil { + ipc.SetPolicyType(*s) + } + return ipc +} + +// SetVersion sets the "version" field. +func (ipc *InternalPolicyCreate) SetVersion(s string) *InternalPolicyCreate { + ipc.mutation.SetVersion(s) + return ipc +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillableVersion(s *string) *InternalPolicyCreate { + if s != nil { + ipc.SetVersion(*s) + } + return ipc +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (ipc *InternalPolicyCreate) SetPurposeAndScope(s string) *InternalPolicyCreate { + ipc.mutation.SetPurposeAndScope(s) + return ipc +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillablePurposeAndScope(s *string) *InternalPolicyCreate { + if s != nil { + ipc.SetPurposeAndScope(*s) + } + return ipc +} + +// SetBackground sets the "background" field. +func (ipc *InternalPolicyCreate) SetBackground(s string) *InternalPolicyCreate { + ipc.mutation.SetBackground(s) + return ipc +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillableBackground(s *string) *InternalPolicyCreate { + if s != nil { + ipc.SetBackground(*s) + } + return ipc +} + +// SetDetails sets the "details" field. +func (ipc *InternalPolicyCreate) SetDetails(m map[string]interface{}) *InternalPolicyCreate { + ipc.mutation.SetDetails(m) + return ipc +} + +// SetID sets the "id" field. +func (ipc *InternalPolicyCreate) SetID(s string) *InternalPolicyCreate { + ipc.mutation.SetID(s) + return ipc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (ipc *InternalPolicyCreate) SetNillableID(s *string) *InternalPolicyCreate { + if s != nil { + ipc.SetID(*s) + } + return ipc +} + +// AddControlobjectiveIDs adds the "controlobjectives" edge to the ControlObjective entity by IDs. +func (ipc *InternalPolicyCreate) AddControlobjectiveIDs(ids ...string) *InternalPolicyCreate { + ipc.mutation.AddControlobjectiveIDs(ids...) + return ipc +} + +// AddControlobjectives adds the "controlobjectives" edges to the ControlObjective entity. +func (ipc *InternalPolicyCreate) AddControlobjectives(c ...*ControlObjective) *InternalPolicyCreate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ipc.AddControlobjectiveIDs(ids...) +} + +// AddControlIDs adds the "controls" edge to the Control entity by IDs. +func (ipc *InternalPolicyCreate) AddControlIDs(ids ...string) *InternalPolicyCreate { + ipc.mutation.AddControlIDs(ids...) + return ipc +} + +// AddControls adds the "controls" edges to the Control entity. +func (ipc *InternalPolicyCreate) AddControls(c ...*Control) *InternalPolicyCreate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ipc.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (ipc *InternalPolicyCreate) AddProcedureIDs(ids ...string) *InternalPolicyCreate { + ipc.mutation.AddProcedureIDs(ids...) + return ipc +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (ipc *InternalPolicyCreate) AddProcedures(p ...*Procedure) *InternalPolicyCreate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return ipc.AddProcedureIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (ipc *InternalPolicyCreate) AddNarrativeIDs(ids ...string) *InternalPolicyCreate { + ipc.mutation.AddNarrativeIDs(ids...) + return ipc +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (ipc *InternalPolicyCreate) AddNarratives(n ...*Narrative) *InternalPolicyCreate { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return ipc.AddNarrativeIDs(ids...) +} + +// Mutation returns the InternalPolicyMutation object of the builder. +func (ipc *InternalPolicyCreate) Mutation() *InternalPolicyMutation { + return ipc.mutation +} + +// Save creates the InternalPolicy in the database. +func (ipc *InternalPolicyCreate) Save(ctx context.Context) (*InternalPolicy, error) { + if err := ipc.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, ipc.sqlSave, ipc.mutation, ipc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (ipc *InternalPolicyCreate) SaveX(ctx context.Context) *InternalPolicy { + v, err := ipc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (ipc *InternalPolicyCreate) Exec(ctx context.Context) error { + _, err := ipc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (ipc *InternalPolicyCreate) ExecX(ctx context.Context) { + if err := ipc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (ipc *InternalPolicyCreate) defaults() error { + if _, ok := ipc.mutation.CreatedAt(); !ok { + if internalpolicy.DefaultCreatedAt == nil { + return fmt.Errorf("generated: uninitialized internalpolicy.DefaultCreatedAt (forgotten import generated/runtime?)") + } + v := internalpolicy.DefaultCreatedAt() + ipc.mutation.SetCreatedAt(v) + } + if _, ok := ipc.mutation.UpdatedAt(); !ok { + if internalpolicy.DefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized internalpolicy.DefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := internalpolicy.DefaultUpdatedAt() + ipc.mutation.SetUpdatedAt(v) + } + if _, ok := ipc.mutation.MappingID(); !ok { + if internalpolicy.DefaultMappingID == nil { + return fmt.Errorf("generated: uninitialized internalpolicy.DefaultMappingID (forgotten import generated/runtime?)") + } + v := internalpolicy.DefaultMappingID() + ipc.mutation.SetMappingID(v) + } + if _, ok := ipc.mutation.Tags(); !ok { + v := internalpolicy.DefaultTags + ipc.mutation.SetTags(v) + } + if _, ok := ipc.mutation.ID(); !ok { + if internalpolicy.DefaultID == nil { + return fmt.Errorf("generated: uninitialized internalpolicy.DefaultID (forgotten import generated/runtime?)") + } + v := internalpolicy.DefaultID() + ipc.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (ipc *InternalPolicyCreate) check() error { + if _, ok := ipc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "InternalPolicy.mapping_id"`)} + } + if _, ok := ipc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "InternalPolicy.name"`)} + } + if _, ok := ipc.mutation.Description(); !ok { + return &ValidationError{Name: "description", err: errors.New(`generated: missing required field "InternalPolicy.description"`)} + } + return nil +} + +func (ipc *InternalPolicyCreate) sqlSave(ctx context.Context) (*InternalPolicy, error) { + if err := ipc.check(); err != nil { + return nil, err + } + _node, _spec := ipc.createSpec() + if err := sqlgraph.CreateNode(ctx, ipc.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 InternalPolicy.ID type: %T", _spec.ID.Value) + } + } + ipc.mutation.id = &_node.ID + ipc.mutation.done = true + return _node, nil +} + +func (ipc *InternalPolicyCreate) createSpec() (*InternalPolicy, *sqlgraph.CreateSpec) { + var ( + _node = &InternalPolicy{config: ipc.config} + _spec = sqlgraph.NewCreateSpec(internalpolicy.Table, sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString)) + ) + _spec.Schema = ipc.schemaConfig.InternalPolicy + if id, ok := ipc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := ipc.mutation.CreatedAt(); ok { + _spec.SetField(internalpolicy.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := ipc.mutation.UpdatedAt(); ok { + _spec.SetField(internalpolicy.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := ipc.mutation.CreatedBy(); ok { + _spec.SetField(internalpolicy.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := ipc.mutation.UpdatedBy(); ok { + _spec.SetField(internalpolicy.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := ipc.mutation.DeletedAt(); ok { + _spec.SetField(internalpolicy.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := ipc.mutation.DeletedBy(); ok { + _spec.SetField(internalpolicy.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := ipc.mutation.MappingID(); ok { + _spec.SetField(internalpolicy.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := ipc.mutation.Tags(); ok { + _spec.SetField(internalpolicy.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := ipc.mutation.Name(); ok { + _spec.SetField(internalpolicy.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := ipc.mutation.Description(); ok { + _spec.SetField(internalpolicy.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := ipc.mutation.Status(); ok { + _spec.SetField(internalpolicy.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := ipc.mutation.PolicyType(); ok { + _spec.SetField(internalpolicy.FieldPolicyType, field.TypeString, value) + _node.PolicyType = value + } + if value, ok := ipc.mutation.Version(); ok { + _spec.SetField(internalpolicy.FieldVersion, field.TypeString, value) + _node.Version = value + } + if value, ok := ipc.mutation.PurposeAndScope(); ok { + _spec.SetField(internalpolicy.FieldPurposeAndScope, field.TypeString, value) + _node.PurposeAndScope = value + } + if value, ok := ipc.mutation.Background(); ok { + _spec.SetField(internalpolicy.FieldBackground, field.TypeString, value) + _node.Background = value + } + if value, ok := ipc.mutation.Details(); ok { + _spec.SetField(internalpolicy.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + if nodes := ipc.mutation.ControlobjectivesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ControlobjectivesTable, + Columns: internalpolicy.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = ipc.schemaConfig.InternalPolicyControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := ipc.mutation.ControlsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: internalpolicy.ControlsTable, + Columns: []string{internalpolicy.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ipc.schemaConfig.Control + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := ipc.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ProceduresTable, + Columns: internalpolicy.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ipc.schemaConfig.InternalPolicyProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := ipc.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.NarrativesTable, + Columns: internalpolicy.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = ipc.schemaConfig.InternalPolicyNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + return _node, _spec +} + +// InternalPolicyCreateBulk is the builder for creating many InternalPolicy entities in bulk. +type InternalPolicyCreateBulk struct { + config + err error + builders []*InternalPolicyCreate +} + +// Save creates the InternalPolicy entities in the database. +func (ipcb *InternalPolicyCreateBulk) Save(ctx context.Context) ([]*InternalPolicy, error) { + if ipcb.err != nil { + return nil, ipcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(ipcb.builders)) + nodes := make([]*InternalPolicy, len(ipcb.builders)) + mutators := make([]Mutator, len(ipcb.builders)) + for i := range ipcb.builders { + func(i int, root context.Context) { + builder := ipcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*InternalPolicyMutation) + 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, ipcb.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, ipcb.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, ipcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (ipcb *InternalPolicyCreateBulk) SaveX(ctx context.Context) []*InternalPolicy { + v, err := ipcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (ipcb *InternalPolicyCreateBulk) Exec(ctx context.Context) error { + _, err := ipcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (ipcb *InternalPolicyCreateBulk) ExecX(ctx context.Context) { + if err := ipcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/internalpolicy_delete.go b/internal/ent/generated/internalpolicy_delete.go new file mode 100644 index 00000000..5d1ff8d0 --- /dev/null +++ b/internal/ent/generated/internalpolicy_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" +) + +// InternalPolicyDelete is the builder for deleting a InternalPolicy entity. +type InternalPolicyDelete struct { + config + hooks []Hook + mutation *InternalPolicyMutation +} + +// Where appends a list predicates to the InternalPolicyDelete builder. +func (ipd *InternalPolicyDelete) Where(ps ...predicate.InternalPolicy) *InternalPolicyDelete { + ipd.mutation.Where(ps...) + return ipd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (ipd *InternalPolicyDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, ipd.sqlExec, ipd.mutation, ipd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (ipd *InternalPolicyDelete) ExecX(ctx context.Context) int { + n, err := ipd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (ipd *InternalPolicyDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(internalpolicy.Table, sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString)) + _spec.Node.Schema = ipd.schemaConfig.InternalPolicy + ctx = internal.NewSchemaConfigContext(ctx, ipd.schemaConfig) + if ps := ipd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, ipd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + ipd.mutation.done = true + return affected, err +} + +// InternalPolicyDeleteOne is the builder for deleting a single InternalPolicy entity. +type InternalPolicyDeleteOne struct { + ipd *InternalPolicyDelete +} + +// Where appends a list predicates to the InternalPolicyDelete builder. +func (ipdo *InternalPolicyDeleteOne) Where(ps ...predicate.InternalPolicy) *InternalPolicyDeleteOne { + ipdo.ipd.mutation.Where(ps...) + return ipdo +} + +// Exec executes the deletion query. +func (ipdo *InternalPolicyDeleteOne) Exec(ctx context.Context) error { + n, err := ipdo.ipd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{internalpolicy.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (ipdo *InternalPolicyDeleteOne) ExecX(ctx context.Context) { + if err := ipdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/internalpolicy_query.go b/internal/ent/generated/internalpolicy_query.go new file mode 100644 index 00000000..fffc4c66 --- /dev/null +++ b/internal/ent/generated/internalpolicy_query.go @@ -0,0 +1,1065 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "database/sql/driver" + "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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// InternalPolicyQuery is the builder for querying InternalPolicy entities. +type InternalPolicyQuery struct { + config + ctx *QueryContext + order []internalpolicy.OrderOption + inters []Interceptor + predicates []predicate.InternalPolicy + withControlobjectives *ControlObjectiveQuery + withControls *ControlQuery + withProcedures *ProcedureQuery + withNarratives *NarrativeQuery + loadTotal []func(context.Context, []*InternalPolicy) error + modifiers []func(*sql.Selector) + withNamedControlobjectives map[string]*ControlObjectiveQuery + withNamedControls map[string]*ControlQuery + withNamedProcedures map[string]*ProcedureQuery + withNamedNarratives map[string]*NarrativeQuery + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the InternalPolicyQuery builder. +func (ipq *InternalPolicyQuery) Where(ps ...predicate.InternalPolicy) *InternalPolicyQuery { + ipq.predicates = append(ipq.predicates, ps...) + return ipq +} + +// Limit the number of records to be returned by this query. +func (ipq *InternalPolicyQuery) Limit(limit int) *InternalPolicyQuery { + ipq.ctx.Limit = &limit + return ipq +} + +// Offset to start from. +func (ipq *InternalPolicyQuery) Offset(offset int) *InternalPolicyQuery { + ipq.ctx.Offset = &offset + return ipq +} + +// 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 (ipq *InternalPolicyQuery) Unique(unique bool) *InternalPolicyQuery { + ipq.ctx.Unique = &unique + return ipq +} + +// Order specifies how the records should be ordered. +func (ipq *InternalPolicyQuery) Order(o ...internalpolicy.OrderOption) *InternalPolicyQuery { + ipq.order = append(ipq.order, o...) + return ipq +} + +// QueryControlobjectives chains the current query on the "controlobjectives" edge. +func (ipq *InternalPolicyQuery) QueryControlobjectives() *ControlObjectiveQuery { + query := (&ControlObjectiveClient{config: ipq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := ipq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := ipq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(internalpolicy.Table, internalpolicy.FieldID, selector), + sqlgraph.To(controlobjective.Table, controlobjective.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, internalpolicy.ControlobjectivesTable, internalpolicy.ControlobjectivesPrimaryKey...), + ) + schemaConfig := ipq.schemaConfig + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.InternalPolicyControlobjectives + fromU = sqlgraph.SetNeighbors(ipq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryControls chains the current query on the "controls" edge. +func (ipq *InternalPolicyQuery) QueryControls() *ControlQuery { + query := (&ControlClient{config: ipq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := ipq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := ipq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(internalpolicy.Table, internalpolicy.FieldID, selector), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, internalpolicy.ControlsTable, internalpolicy.ControlsColumn), + ) + schemaConfig := ipq.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.Control + fromU = sqlgraph.SetNeighbors(ipq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryProcedures chains the current query on the "procedures" edge. +func (ipq *InternalPolicyQuery) QueryProcedures() *ProcedureQuery { + query := (&ProcedureClient{config: ipq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := ipq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := ipq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(internalpolicy.Table, internalpolicy.FieldID, selector), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, internalpolicy.ProceduresTable, internalpolicy.ProceduresPrimaryKey...), + ) + schemaConfig := ipq.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.InternalPolicyProcedures + fromU = sqlgraph.SetNeighbors(ipq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryNarratives chains the current query on the "narratives" edge. +func (ipq *InternalPolicyQuery) QueryNarratives() *NarrativeQuery { + query := (&NarrativeClient{config: ipq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := ipq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := ipq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(internalpolicy.Table, internalpolicy.FieldID, selector), + sqlgraph.To(narrative.Table, narrative.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, internalpolicy.NarrativesTable, internalpolicy.NarrativesPrimaryKey...), + ) + schemaConfig := ipq.schemaConfig + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.InternalPolicyNarratives + fromU = sqlgraph.SetNeighbors(ipq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// First returns the first InternalPolicy entity from the query. +// Returns a *NotFoundError when no InternalPolicy was found. +func (ipq *InternalPolicyQuery) First(ctx context.Context) (*InternalPolicy, error) { + nodes, err := ipq.Limit(1).All(setContextOp(ctx, ipq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{internalpolicy.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (ipq *InternalPolicyQuery) FirstX(ctx context.Context) *InternalPolicy { + node, err := ipq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first InternalPolicy ID from the query. +// Returns a *NotFoundError when no InternalPolicy ID was found. +func (ipq *InternalPolicyQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = ipq.Limit(1).IDs(setContextOp(ctx, ipq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{internalpolicy.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (ipq *InternalPolicyQuery) FirstIDX(ctx context.Context) string { + id, err := ipq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single InternalPolicy entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one InternalPolicy entity is found. +// Returns a *NotFoundError when no InternalPolicy entities are found. +func (ipq *InternalPolicyQuery) Only(ctx context.Context) (*InternalPolicy, error) { + nodes, err := ipq.Limit(2).All(setContextOp(ctx, ipq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{internalpolicy.Label} + default: + return nil, &NotSingularError{internalpolicy.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (ipq *InternalPolicyQuery) OnlyX(ctx context.Context) *InternalPolicy { + node, err := ipq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only InternalPolicy ID in the query. +// Returns a *NotSingularError when more than one InternalPolicy ID is found. +// Returns a *NotFoundError when no entities are found. +func (ipq *InternalPolicyQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = ipq.Limit(2).IDs(setContextOp(ctx, ipq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{internalpolicy.Label} + default: + err = &NotSingularError{internalpolicy.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (ipq *InternalPolicyQuery) OnlyIDX(ctx context.Context) string { + id, err := ipq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of InternalPolicies. +func (ipq *InternalPolicyQuery) All(ctx context.Context) ([]*InternalPolicy, error) { + ctx = setContextOp(ctx, ipq.ctx, ent.OpQueryAll) + if err := ipq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*InternalPolicy, *InternalPolicyQuery]() + return withInterceptors[[]*InternalPolicy](ctx, ipq, qr, ipq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (ipq *InternalPolicyQuery) AllX(ctx context.Context) []*InternalPolicy { + nodes, err := ipq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of InternalPolicy IDs. +func (ipq *InternalPolicyQuery) IDs(ctx context.Context) (ids []string, err error) { + if ipq.ctx.Unique == nil && ipq.path != nil { + ipq.Unique(true) + } + ctx = setContextOp(ctx, ipq.ctx, ent.OpQueryIDs) + if err = ipq.Select(internalpolicy.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (ipq *InternalPolicyQuery) IDsX(ctx context.Context) []string { + ids, err := ipq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (ipq *InternalPolicyQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, ipq.ctx, ent.OpQueryCount) + if err := ipq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, ipq, querierCount[*InternalPolicyQuery](), ipq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (ipq *InternalPolicyQuery) CountX(ctx context.Context) int { + count, err := ipq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (ipq *InternalPolicyQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, ipq.ctx, ent.OpQueryExist) + switch _, err := ipq.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 (ipq *InternalPolicyQuery) ExistX(ctx context.Context) bool { + exist, err := ipq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the InternalPolicyQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (ipq *InternalPolicyQuery) Clone() *InternalPolicyQuery { + if ipq == nil { + return nil + } + return &InternalPolicyQuery{ + config: ipq.config, + ctx: ipq.ctx.Clone(), + order: append([]internalpolicy.OrderOption{}, ipq.order...), + inters: append([]Interceptor{}, ipq.inters...), + predicates: append([]predicate.InternalPolicy{}, ipq.predicates...), + withControlobjectives: ipq.withControlobjectives.Clone(), + withControls: ipq.withControls.Clone(), + withProcedures: ipq.withProcedures.Clone(), + withNarratives: ipq.withNarratives.Clone(), + // clone intermediate query. + sql: ipq.sql.Clone(), + path: ipq.path, + modifiers: append([]func(*sql.Selector){}, ipq.modifiers...), + } +} + +// WithControlobjectives tells the query-builder to eager-load the nodes that are connected to +// the "controlobjectives" edge. The optional arguments are used to configure the query builder of the edge. +func (ipq *InternalPolicyQuery) WithControlobjectives(opts ...func(*ControlObjectiveQuery)) *InternalPolicyQuery { + query := (&ControlObjectiveClient{config: ipq.config}).Query() + for _, opt := range opts { + opt(query) + } + ipq.withControlobjectives = query + return ipq +} + +// 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 (ipq *InternalPolicyQuery) WithControls(opts ...func(*ControlQuery)) *InternalPolicyQuery { + query := (&ControlClient{config: ipq.config}).Query() + for _, opt := range opts { + opt(query) + } + ipq.withControls = query + return ipq +} + +// WithProcedures tells the query-builder to eager-load the nodes that are connected to +// the "procedures" edge. The optional arguments are used to configure the query builder of the edge. +func (ipq *InternalPolicyQuery) WithProcedures(opts ...func(*ProcedureQuery)) *InternalPolicyQuery { + query := (&ProcedureClient{config: ipq.config}).Query() + for _, opt := range opts { + opt(query) + } + ipq.withProcedures = query + return ipq +} + +// WithNarratives tells the query-builder to eager-load the nodes that are connected to +// the "narratives" edge. The optional arguments are used to configure the query builder of the edge. +func (ipq *InternalPolicyQuery) WithNarratives(opts ...func(*NarrativeQuery)) *InternalPolicyQuery { + query := (&NarrativeClient{config: ipq.config}).Query() + for _, opt := range opts { + opt(query) + } + ipq.withNarratives = query + return ipq +} + +// 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.InternalPolicy.Query(). +// GroupBy(internalpolicy.FieldCreatedAt). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (ipq *InternalPolicyQuery) GroupBy(field string, fields ...string) *InternalPolicyGroupBy { + ipq.ctx.Fields = append([]string{field}, fields...) + grbuild := &InternalPolicyGroupBy{build: ipq} + grbuild.flds = &ipq.ctx.Fields + grbuild.label = internalpolicy.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.InternalPolicy.Query(). +// Select(internalpolicy.FieldCreatedAt). +// Scan(ctx, &v) +func (ipq *InternalPolicyQuery) Select(fields ...string) *InternalPolicySelect { + ipq.ctx.Fields = append(ipq.ctx.Fields, fields...) + sbuild := &InternalPolicySelect{InternalPolicyQuery: ipq} + sbuild.label = internalpolicy.Label + sbuild.flds, sbuild.scan = &ipq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a InternalPolicySelect configured with the given aggregations. +func (ipq *InternalPolicyQuery) Aggregate(fns ...AggregateFunc) *InternalPolicySelect { + return ipq.Select().Aggregate(fns...) +} + +func (ipq *InternalPolicyQuery) prepareQuery(ctx context.Context) error { + for _, inter := range ipq.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, ipq); err != nil { + return err + } + } + } + for _, f := range ipq.ctx.Fields { + if !internalpolicy.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if ipq.path != nil { + prev, err := ipq.path(ctx) + if err != nil { + return err + } + ipq.sql = prev + } + return nil +} + +func (ipq *InternalPolicyQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*InternalPolicy, error) { + var ( + nodes = []*InternalPolicy{} + _spec = ipq.querySpec() + loadedTypes = [4]bool{ + ipq.withControlobjectives != nil, + ipq.withControls != nil, + ipq.withProcedures != nil, + ipq.withNarratives != nil, + } + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*InternalPolicy).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &InternalPolicy{config: ipq.config} + nodes = append(nodes, node) + node.Edges.loadedTypes = loadedTypes + return node.assignValues(columns, values) + } + _spec.Node.Schema = ipq.schemaConfig.InternalPolicy + ctx = internal.NewSchemaConfigContext(ctx, ipq.schemaConfig) + if len(ipq.modifiers) > 0 { + _spec.Modifiers = ipq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, ipq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + if query := ipq.withControlobjectives; query != nil { + if err := ipq.loadControlobjectives(ctx, query, nodes, + func(n *InternalPolicy) { n.Edges.Controlobjectives = []*ControlObjective{} }, + func(n *InternalPolicy, e *ControlObjective) { + n.Edges.Controlobjectives = append(n.Edges.Controlobjectives, e) + }); err != nil { + return nil, err + } + } + if query := ipq.withControls; query != nil { + if err := ipq.loadControls(ctx, query, nodes, + func(n *InternalPolicy) { n.Edges.Controls = []*Control{} }, + func(n *InternalPolicy, e *Control) { n.Edges.Controls = append(n.Edges.Controls, e) }); err != nil { + return nil, err + } + } + if query := ipq.withProcedures; query != nil { + if err := ipq.loadProcedures(ctx, query, nodes, + func(n *InternalPolicy) { n.Edges.Procedures = []*Procedure{} }, + func(n *InternalPolicy, e *Procedure) { n.Edges.Procedures = append(n.Edges.Procedures, e) }); err != nil { + return nil, err + } + } + if query := ipq.withNarratives; query != nil { + if err := ipq.loadNarratives(ctx, query, nodes, + func(n *InternalPolicy) { n.Edges.Narratives = []*Narrative{} }, + func(n *InternalPolicy, e *Narrative) { n.Edges.Narratives = append(n.Edges.Narratives, e) }); err != nil { + return nil, err + } + } + for name, query := range ipq.withNamedControlobjectives { + if err := ipq.loadControlobjectives(ctx, query, nodes, + func(n *InternalPolicy) { n.appendNamedControlobjectives(name) }, + func(n *InternalPolicy, e *ControlObjective) { n.appendNamedControlobjectives(name, e) }); err != nil { + return nil, err + } + } + for name, query := range ipq.withNamedControls { + if err := ipq.loadControls(ctx, query, nodes, + func(n *InternalPolicy) { n.appendNamedControls(name) }, + func(n *InternalPolicy, e *Control) { n.appendNamedControls(name, e) }); err != nil { + return nil, err + } + } + for name, query := range ipq.withNamedProcedures { + if err := ipq.loadProcedures(ctx, query, nodes, + func(n *InternalPolicy) { n.appendNamedProcedures(name) }, + func(n *InternalPolicy, e *Procedure) { n.appendNamedProcedures(name, e) }); err != nil { + return nil, err + } + } + for name, query := range ipq.withNamedNarratives { + if err := ipq.loadNarratives(ctx, query, nodes, + func(n *InternalPolicy) { n.appendNamedNarratives(name) }, + func(n *InternalPolicy, e *Narrative) { n.appendNamedNarratives(name, e) }); err != nil { + return nil, err + } + } + for i := range ipq.loadTotal { + if err := ipq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (ipq *InternalPolicyQuery) loadControlobjectives(ctx context.Context, query *ControlObjectiveQuery, nodes []*InternalPolicy, init func(*InternalPolicy), assign func(*InternalPolicy, *ControlObjective)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*InternalPolicy) + nids := make(map[string]map[*InternalPolicy]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(internalpolicy.ControlobjectivesTable) + joinT.Schema(ipq.schemaConfig.InternalPolicyControlobjectives) + s.Join(joinT).On(s.C(controlobjective.FieldID), joinT.C(internalpolicy.ControlobjectivesPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(internalpolicy.ControlobjectivesPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(internalpolicy.ControlobjectivesPrimaryKey[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[*InternalPolicy]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*ControlObjective](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 "controlobjectives" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (ipq *InternalPolicyQuery) loadControls(ctx context.Context, query *ControlQuery, nodes []*InternalPolicy, init func(*InternalPolicy), assign func(*InternalPolicy, *Control)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*InternalPolicy) + 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.Control(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(internalpolicy.ControlsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.internal_policy_controls + if fk == nil { + return fmt.Errorf(`foreign-key "internal_policy_controls" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "internal_policy_controls" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (ipq *InternalPolicyQuery) loadProcedures(ctx context.Context, query *ProcedureQuery, nodes []*InternalPolicy, init func(*InternalPolicy), assign func(*InternalPolicy, *Procedure)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*InternalPolicy) + nids := make(map[string]map[*InternalPolicy]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(internalpolicy.ProceduresTable) + joinT.Schema(ipq.schemaConfig.InternalPolicyProcedures) + s.Join(joinT).On(s.C(procedure.FieldID), joinT.C(internalpolicy.ProceduresPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(internalpolicy.ProceduresPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(internalpolicy.ProceduresPrimaryKey[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[*InternalPolicy]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Procedure](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 "procedures" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (ipq *InternalPolicyQuery) loadNarratives(ctx context.Context, query *NarrativeQuery, nodes []*InternalPolicy, init func(*InternalPolicy), assign func(*InternalPolicy, *Narrative)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*InternalPolicy) + nids := make(map[string]map[*InternalPolicy]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(internalpolicy.NarrativesTable) + joinT.Schema(ipq.schemaConfig.InternalPolicyNarratives) + s.Join(joinT).On(s.C(narrative.FieldID), joinT.C(internalpolicy.NarrativesPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(internalpolicy.NarrativesPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(internalpolicy.NarrativesPrimaryKey[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[*InternalPolicy]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Narrative](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 "narratives" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} + +func (ipq *InternalPolicyQuery) sqlCount(ctx context.Context) (int, error) { + _spec := ipq.querySpec() + _spec.Node.Schema = ipq.schemaConfig.InternalPolicy + ctx = internal.NewSchemaConfigContext(ctx, ipq.schemaConfig) + if len(ipq.modifiers) > 0 { + _spec.Modifiers = ipq.modifiers + } + _spec.Node.Columns = ipq.ctx.Fields + if len(ipq.ctx.Fields) > 0 { + _spec.Unique = ipq.ctx.Unique != nil && *ipq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, ipq.driver, _spec) +} + +func (ipq *InternalPolicyQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(internalpolicy.Table, internalpolicy.Columns, sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString)) + _spec.From = ipq.sql + if unique := ipq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if ipq.path != nil { + _spec.Unique = true + } + if fields := ipq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, internalpolicy.FieldID) + for i := range fields { + if fields[i] != internalpolicy.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := ipq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := ipq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := ipq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := ipq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (ipq *InternalPolicyQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(ipq.driver.Dialect()) + t1 := builder.Table(internalpolicy.Table) + columns := ipq.ctx.Fields + if len(columns) == 0 { + columns = internalpolicy.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if ipq.sql != nil { + selector = ipq.sql + selector.Select(selector.Columns(columns...)...) + } + if ipq.ctx.Unique != nil && *ipq.ctx.Unique { + selector.Distinct() + } + t1.Schema(ipq.schemaConfig.InternalPolicy) + ctx = internal.NewSchemaConfigContext(ctx, ipq.schemaConfig) + selector.WithContext(ctx) + for _, m := range ipq.modifiers { + m(selector) + } + for _, p := range ipq.predicates { + p(selector) + } + for _, p := range ipq.order { + p(selector) + } + if offset := ipq.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 := ipq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (ipq *InternalPolicyQuery) Modify(modifiers ...func(s *sql.Selector)) *InternalPolicySelect { + ipq.modifiers = append(ipq.modifiers, modifiers...) + return ipq.Select() +} + +// WithNamedControlobjectives tells the query-builder to eager-load the nodes that are connected to the "controlobjectives" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (ipq *InternalPolicyQuery) WithNamedControlobjectives(name string, opts ...func(*ControlObjectiveQuery)) *InternalPolicyQuery { + query := (&ControlObjectiveClient{config: ipq.config}).Query() + for _, opt := range opts { + opt(query) + } + if ipq.withNamedControlobjectives == nil { + ipq.withNamedControlobjectives = make(map[string]*ControlObjectiveQuery) + } + ipq.withNamedControlobjectives[name] = query + return ipq +} + +// 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 (ipq *InternalPolicyQuery) WithNamedControls(name string, opts ...func(*ControlQuery)) *InternalPolicyQuery { + query := (&ControlClient{config: ipq.config}).Query() + for _, opt := range opts { + opt(query) + } + if ipq.withNamedControls == nil { + ipq.withNamedControls = make(map[string]*ControlQuery) + } + ipq.withNamedControls[name] = query + return ipq +} + +// WithNamedProcedures tells the query-builder to eager-load the nodes that are connected to the "procedures" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (ipq *InternalPolicyQuery) WithNamedProcedures(name string, opts ...func(*ProcedureQuery)) *InternalPolicyQuery { + query := (&ProcedureClient{config: ipq.config}).Query() + for _, opt := range opts { + opt(query) + } + if ipq.withNamedProcedures == nil { + ipq.withNamedProcedures = make(map[string]*ProcedureQuery) + } + ipq.withNamedProcedures[name] = query + return ipq +} + +// WithNamedNarratives tells the query-builder to eager-load the nodes that are connected to the "narratives" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (ipq *InternalPolicyQuery) WithNamedNarratives(name string, opts ...func(*NarrativeQuery)) *InternalPolicyQuery { + query := (&NarrativeClient{config: ipq.config}).Query() + for _, opt := range opts { + opt(query) + } + if ipq.withNamedNarratives == nil { + ipq.withNamedNarratives = make(map[string]*NarrativeQuery) + } + ipq.withNamedNarratives[name] = query + return ipq +} + +// InternalPolicyGroupBy is the group-by builder for InternalPolicy entities. +type InternalPolicyGroupBy struct { + selector + build *InternalPolicyQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (ipgb *InternalPolicyGroupBy) Aggregate(fns ...AggregateFunc) *InternalPolicyGroupBy { + ipgb.fns = append(ipgb.fns, fns...) + return ipgb +} + +// Scan applies the selector query and scans the result into the given value. +func (ipgb *InternalPolicyGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, ipgb.build.ctx, ent.OpQueryGroupBy) + if err := ipgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*InternalPolicyQuery, *InternalPolicyGroupBy](ctx, ipgb.build, ipgb, ipgb.build.inters, v) +} + +func (ipgb *InternalPolicyGroupBy) sqlScan(ctx context.Context, root *InternalPolicyQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(ipgb.fns)) + for _, fn := range ipgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*ipgb.flds)+len(ipgb.fns)) + for _, f := range *ipgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*ipgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := ipgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// InternalPolicySelect is the builder for selecting fields of InternalPolicy entities. +type InternalPolicySelect struct { + *InternalPolicyQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (ips *InternalPolicySelect) Aggregate(fns ...AggregateFunc) *InternalPolicySelect { + ips.fns = append(ips.fns, fns...) + return ips +} + +// Scan applies the selector query and scans the result into the given value. +func (ips *InternalPolicySelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, ips.ctx, ent.OpQuerySelect) + if err := ips.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*InternalPolicyQuery, *InternalPolicySelect](ctx, ips.InternalPolicyQuery, ips, ips.inters, v) +} + +func (ips *InternalPolicySelect) sqlScan(ctx context.Context, root *InternalPolicyQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(ips.fns)) + for _, fn := range ips.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*ips.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 := ips.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 (ips *InternalPolicySelect) Modify(modifiers ...func(s *sql.Selector)) *InternalPolicySelect { + ips.modifiers = append(ips.modifiers, modifiers...) + return ips +} diff --git a/internal/ent/generated/internalpolicy_update.go b/internal/ent/generated/internalpolicy_update.go new file mode 100644 index 00000000..fa133366 --- /dev/null +++ b/internal/ent/generated/internalpolicy_update.go @@ -0,0 +1,1531 @@ +// 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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// InternalPolicyUpdate is the builder for updating InternalPolicy entities. +type InternalPolicyUpdate struct { + config + hooks []Hook + mutation *InternalPolicyMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the InternalPolicyUpdate builder. +func (ipu *InternalPolicyUpdate) Where(ps ...predicate.InternalPolicy) *InternalPolicyUpdate { + ipu.mutation.Where(ps...) + return ipu +} + +// SetUpdatedAt sets the "updated_at" field. +func (ipu *InternalPolicyUpdate) SetUpdatedAt(t time.Time) *InternalPolicyUpdate { + ipu.mutation.SetUpdatedAt(t) + return ipu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (ipu *InternalPolicyUpdate) ClearUpdatedAt() *InternalPolicyUpdate { + ipu.mutation.ClearUpdatedAt() + return ipu +} + +// SetUpdatedBy sets the "updated_by" field. +func (ipu *InternalPolicyUpdate) SetUpdatedBy(s string) *InternalPolicyUpdate { + ipu.mutation.SetUpdatedBy(s) + return ipu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (ipu *InternalPolicyUpdate) SetNillableUpdatedBy(s *string) *InternalPolicyUpdate { + if s != nil { + ipu.SetUpdatedBy(*s) + } + return ipu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (ipu *InternalPolicyUpdate) ClearUpdatedBy() *InternalPolicyUpdate { + ipu.mutation.ClearUpdatedBy() + return ipu +} + +// SetDeletedAt sets the "deleted_at" field. +func (ipu *InternalPolicyUpdate) SetDeletedAt(t time.Time) *InternalPolicyUpdate { + ipu.mutation.SetDeletedAt(t) + return ipu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (ipu *InternalPolicyUpdate) SetNillableDeletedAt(t *time.Time) *InternalPolicyUpdate { + if t != nil { + ipu.SetDeletedAt(*t) + } + return ipu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (ipu *InternalPolicyUpdate) ClearDeletedAt() *InternalPolicyUpdate { + ipu.mutation.ClearDeletedAt() + return ipu +} + +// SetDeletedBy sets the "deleted_by" field. +func (ipu *InternalPolicyUpdate) SetDeletedBy(s string) *InternalPolicyUpdate { + ipu.mutation.SetDeletedBy(s) + return ipu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (ipu *InternalPolicyUpdate) SetNillableDeletedBy(s *string) *InternalPolicyUpdate { + if s != nil { + ipu.SetDeletedBy(*s) + } + return ipu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (ipu *InternalPolicyUpdate) ClearDeletedBy() *InternalPolicyUpdate { + ipu.mutation.ClearDeletedBy() + return ipu +} + +// SetTags sets the "tags" field. +func (ipu *InternalPolicyUpdate) SetTags(s []string) *InternalPolicyUpdate { + ipu.mutation.SetTags(s) + return ipu +} + +// AppendTags appends s to the "tags" field. +func (ipu *InternalPolicyUpdate) AppendTags(s []string) *InternalPolicyUpdate { + ipu.mutation.AppendTags(s) + return ipu +} + +// ClearTags clears the value of the "tags" field. +func (ipu *InternalPolicyUpdate) ClearTags() *InternalPolicyUpdate { + ipu.mutation.ClearTags() + return ipu +} + +// SetName sets the "name" field. +func (ipu *InternalPolicyUpdate) SetName(s string) *InternalPolicyUpdate { + ipu.mutation.SetName(s) + return ipu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (ipu *InternalPolicyUpdate) SetNillableName(s *string) *InternalPolicyUpdate { + if s != nil { + ipu.SetName(*s) + } + return ipu +} + +// SetDescription sets the "description" field. +func (ipu *InternalPolicyUpdate) SetDescription(s string) *InternalPolicyUpdate { + ipu.mutation.SetDescription(s) + return ipu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (ipu *InternalPolicyUpdate) SetNillableDescription(s *string) *InternalPolicyUpdate { + if s != nil { + ipu.SetDescription(*s) + } + return ipu +} + +// SetStatus sets the "status" field. +func (ipu *InternalPolicyUpdate) SetStatus(s string) *InternalPolicyUpdate { + ipu.mutation.SetStatus(s) + return ipu +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (ipu *InternalPolicyUpdate) SetNillableStatus(s *string) *InternalPolicyUpdate { + if s != nil { + ipu.SetStatus(*s) + } + return ipu +} + +// ClearStatus clears the value of the "status" field. +func (ipu *InternalPolicyUpdate) ClearStatus() *InternalPolicyUpdate { + ipu.mutation.ClearStatus() + return ipu +} + +// SetPolicyType sets the "policy_type" field. +func (ipu *InternalPolicyUpdate) SetPolicyType(s string) *InternalPolicyUpdate { + ipu.mutation.SetPolicyType(s) + return ipu +} + +// SetNillablePolicyType sets the "policy_type" field if the given value is not nil. +func (ipu *InternalPolicyUpdate) SetNillablePolicyType(s *string) *InternalPolicyUpdate { + if s != nil { + ipu.SetPolicyType(*s) + } + return ipu +} + +// ClearPolicyType clears the value of the "policy_type" field. +func (ipu *InternalPolicyUpdate) ClearPolicyType() *InternalPolicyUpdate { + ipu.mutation.ClearPolicyType() + return ipu +} + +// SetVersion sets the "version" field. +func (ipu *InternalPolicyUpdate) SetVersion(s string) *InternalPolicyUpdate { + ipu.mutation.SetVersion(s) + return ipu +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (ipu *InternalPolicyUpdate) SetNillableVersion(s *string) *InternalPolicyUpdate { + if s != nil { + ipu.SetVersion(*s) + } + return ipu +} + +// ClearVersion clears the value of the "version" field. +func (ipu *InternalPolicyUpdate) ClearVersion() *InternalPolicyUpdate { + ipu.mutation.ClearVersion() + return ipu +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (ipu *InternalPolicyUpdate) SetPurposeAndScope(s string) *InternalPolicyUpdate { + ipu.mutation.SetPurposeAndScope(s) + return ipu +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (ipu *InternalPolicyUpdate) SetNillablePurposeAndScope(s *string) *InternalPolicyUpdate { + if s != nil { + ipu.SetPurposeAndScope(*s) + } + return ipu +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (ipu *InternalPolicyUpdate) ClearPurposeAndScope() *InternalPolicyUpdate { + ipu.mutation.ClearPurposeAndScope() + return ipu +} + +// SetBackground sets the "background" field. +func (ipu *InternalPolicyUpdate) SetBackground(s string) *InternalPolicyUpdate { + ipu.mutation.SetBackground(s) + return ipu +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (ipu *InternalPolicyUpdate) SetNillableBackground(s *string) *InternalPolicyUpdate { + if s != nil { + ipu.SetBackground(*s) + } + return ipu +} + +// ClearBackground clears the value of the "background" field. +func (ipu *InternalPolicyUpdate) ClearBackground() *InternalPolicyUpdate { + ipu.mutation.ClearBackground() + return ipu +} + +// SetDetails sets the "details" field. +func (ipu *InternalPolicyUpdate) SetDetails(m map[string]interface{}) *InternalPolicyUpdate { + ipu.mutation.SetDetails(m) + return ipu +} + +// ClearDetails clears the value of the "details" field. +func (ipu *InternalPolicyUpdate) ClearDetails() *InternalPolicyUpdate { + ipu.mutation.ClearDetails() + return ipu +} + +// AddControlobjectiveIDs adds the "controlobjectives" edge to the ControlObjective entity by IDs. +func (ipu *InternalPolicyUpdate) AddControlobjectiveIDs(ids ...string) *InternalPolicyUpdate { + ipu.mutation.AddControlobjectiveIDs(ids...) + return ipu +} + +// AddControlobjectives adds the "controlobjectives" edges to the ControlObjective entity. +func (ipu *InternalPolicyUpdate) AddControlobjectives(c ...*ControlObjective) *InternalPolicyUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ipu.AddControlobjectiveIDs(ids...) +} + +// AddControlIDs adds the "controls" edge to the Control entity by IDs. +func (ipu *InternalPolicyUpdate) AddControlIDs(ids ...string) *InternalPolicyUpdate { + ipu.mutation.AddControlIDs(ids...) + return ipu +} + +// AddControls adds the "controls" edges to the Control entity. +func (ipu *InternalPolicyUpdate) AddControls(c ...*Control) *InternalPolicyUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ipu.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (ipu *InternalPolicyUpdate) AddProcedureIDs(ids ...string) *InternalPolicyUpdate { + ipu.mutation.AddProcedureIDs(ids...) + return ipu +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (ipu *InternalPolicyUpdate) AddProcedures(p ...*Procedure) *InternalPolicyUpdate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return ipu.AddProcedureIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (ipu *InternalPolicyUpdate) AddNarrativeIDs(ids ...string) *InternalPolicyUpdate { + ipu.mutation.AddNarrativeIDs(ids...) + return ipu +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (ipu *InternalPolicyUpdate) AddNarratives(n ...*Narrative) *InternalPolicyUpdate { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return ipu.AddNarrativeIDs(ids...) +} + +// Mutation returns the InternalPolicyMutation object of the builder. +func (ipu *InternalPolicyUpdate) Mutation() *InternalPolicyMutation { + return ipu.mutation +} + +// ClearControlobjectives clears all "controlobjectives" edges to the ControlObjective entity. +func (ipu *InternalPolicyUpdate) ClearControlobjectives() *InternalPolicyUpdate { + ipu.mutation.ClearControlobjectives() + return ipu +} + +// RemoveControlobjectiveIDs removes the "controlobjectives" edge to ControlObjective entities by IDs. +func (ipu *InternalPolicyUpdate) RemoveControlobjectiveIDs(ids ...string) *InternalPolicyUpdate { + ipu.mutation.RemoveControlobjectiveIDs(ids...) + return ipu +} + +// RemoveControlobjectives removes "controlobjectives" edges to ControlObjective entities. +func (ipu *InternalPolicyUpdate) RemoveControlobjectives(c ...*ControlObjective) *InternalPolicyUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ipu.RemoveControlobjectiveIDs(ids...) +} + +// ClearControls clears all "controls" edges to the Control entity. +func (ipu *InternalPolicyUpdate) ClearControls() *InternalPolicyUpdate { + ipu.mutation.ClearControls() + return ipu +} + +// RemoveControlIDs removes the "controls" edge to Control entities by IDs. +func (ipu *InternalPolicyUpdate) RemoveControlIDs(ids ...string) *InternalPolicyUpdate { + ipu.mutation.RemoveControlIDs(ids...) + return ipu +} + +// RemoveControls removes "controls" edges to Control entities. +func (ipu *InternalPolicyUpdate) RemoveControls(c ...*Control) *InternalPolicyUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ipu.RemoveControlIDs(ids...) +} + +// ClearProcedures clears all "procedures" edges to the Procedure entity. +func (ipu *InternalPolicyUpdate) ClearProcedures() *InternalPolicyUpdate { + ipu.mutation.ClearProcedures() + return ipu +} + +// RemoveProcedureIDs removes the "procedures" edge to Procedure entities by IDs. +func (ipu *InternalPolicyUpdate) RemoveProcedureIDs(ids ...string) *InternalPolicyUpdate { + ipu.mutation.RemoveProcedureIDs(ids...) + return ipu +} + +// RemoveProcedures removes "procedures" edges to Procedure entities. +func (ipu *InternalPolicyUpdate) RemoveProcedures(p ...*Procedure) *InternalPolicyUpdate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return ipu.RemoveProcedureIDs(ids...) +} + +// ClearNarratives clears all "narratives" edges to the Narrative entity. +func (ipu *InternalPolicyUpdate) ClearNarratives() *InternalPolicyUpdate { + ipu.mutation.ClearNarratives() + return ipu +} + +// RemoveNarrativeIDs removes the "narratives" edge to Narrative entities by IDs. +func (ipu *InternalPolicyUpdate) RemoveNarrativeIDs(ids ...string) *InternalPolicyUpdate { + ipu.mutation.RemoveNarrativeIDs(ids...) + return ipu +} + +// RemoveNarratives removes "narratives" edges to Narrative entities. +func (ipu *InternalPolicyUpdate) RemoveNarratives(n ...*Narrative) *InternalPolicyUpdate { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return ipu.RemoveNarrativeIDs(ids...) +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (ipu *InternalPolicyUpdate) Save(ctx context.Context) (int, error) { + if err := ipu.defaults(); err != nil { + return 0, err + } + return withHooks(ctx, ipu.sqlSave, ipu.mutation, ipu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (ipu *InternalPolicyUpdate) SaveX(ctx context.Context) int { + affected, err := ipu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (ipu *InternalPolicyUpdate) Exec(ctx context.Context) error { + _, err := ipu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (ipu *InternalPolicyUpdate) ExecX(ctx context.Context) { + if err := ipu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (ipu *InternalPolicyUpdate) defaults() error { + if _, ok := ipu.mutation.UpdatedAt(); !ok && !ipu.mutation.UpdatedAtCleared() { + if internalpolicy.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized internalpolicy.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := internalpolicy.UpdateDefaultUpdatedAt() + ipu.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (ipu *InternalPolicyUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *InternalPolicyUpdate { + ipu.modifiers = append(ipu.modifiers, modifiers...) + return ipu +} + +func (ipu *InternalPolicyUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(internalpolicy.Table, internalpolicy.Columns, sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString)) + if ps := ipu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if ipu.mutation.CreatedAtCleared() { + _spec.ClearField(internalpolicy.FieldCreatedAt, field.TypeTime) + } + if value, ok := ipu.mutation.UpdatedAt(); ok { + _spec.SetField(internalpolicy.FieldUpdatedAt, field.TypeTime, value) + } + if ipu.mutation.UpdatedAtCleared() { + _spec.ClearField(internalpolicy.FieldUpdatedAt, field.TypeTime) + } + if ipu.mutation.CreatedByCleared() { + _spec.ClearField(internalpolicy.FieldCreatedBy, field.TypeString) + } + if value, ok := ipu.mutation.UpdatedBy(); ok { + _spec.SetField(internalpolicy.FieldUpdatedBy, field.TypeString, value) + } + if ipu.mutation.UpdatedByCleared() { + _spec.ClearField(internalpolicy.FieldUpdatedBy, field.TypeString) + } + if value, ok := ipu.mutation.DeletedAt(); ok { + _spec.SetField(internalpolicy.FieldDeletedAt, field.TypeTime, value) + } + if ipu.mutation.DeletedAtCleared() { + _spec.ClearField(internalpolicy.FieldDeletedAt, field.TypeTime) + } + if value, ok := ipu.mutation.DeletedBy(); ok { + _spec.SetField(internalpolicy.FieldDeletedBy, field.TypeString, value) + } + if ipu.mutation.DeletedByCleared() { + _spec.ClearField(internalpolicy.FieldDeletedBy, field.TypeString) + } + if value, ok := ipu.mutation.Tags(); ok { + _spec.SetField(internalpolicy.FieldTags, field.TypeJSON, value) + } + if value, ok := ipu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, internalpolicy.FieldTags, value) + }) + } + if ipu.mutation.TagsCleared() { + _spec.ClearField(internalpolicy.FieldTags, field.TypeJSON) + } + if value, ok := ipu.mutation.Name(); ok { + _spec.SetField(internalpolicy.FieldName, field.TypeString, value) + } + if value, ok := ipu.mutation.Description(); ok { + _spec.SetField(internalpolicy.FieldDescription, field.TypeString, value) + } + if value, ok := ipu.mutation.Status(); ok { + _spec.SetField(internalpolicy.FieldStatus, field.TypeString, value) + } + if ipu.mutation.StatusCleared() { + _spec.ClearField(internalpolicy.FieldStatus, field.TypeString) + } + if value, ok := ipu.mutation.PolicyType(); ok { + _spec.SetField(internalpolicy.FieldPolicyType, field.TypeString, value) + } + if ipu.mutation.PolicyTypeCleared() { + _spec.ClearField(internalpolicy.FieldPolicyType, field.TypeString) + } + if value, ok := ipu.mutation.Version(); ok { + _spec.SetField(internalpolicy.FieldVersion, field.TypeString, value) + } + if ipu.mutation.VersionCleared() { + _spec.ClearField(internalpolicy.FieldVersion, field.TypeString) + } + if value, ok := ipu.mutation.PurposeAndScope(); ok { + _spec.SetField(internalpolicy.FieldPurposeAndScope, field.TypeString, value) + } + if ipu.mutation.PurposeAndScopeCleared() { + _spec.ClearField(internalpolicy.FieldPurposeAndScope, field.TypeString) + } + if value, ok := ipu.mutation.Background(); ok { + _spec.SetField(internalpolicy.FieldBackground, field.TypeString, value) + } + if ipu.mutation.BackgroundCleared() { + _spec.ClearField(internalpolicy.FieldBackground, field.TypeString) + } + if value, ok := ipu.mutation.Details(); ok { + _spec.SetField(internalpolicy.FieldDetails, field.TypeJSON, value) + } + if ipu.mutation.DetailsCleared() { + _spec.ClearField(internalpolicy.FieldDetails, field.TypeJSON) + } + if ipu.mutation.ControlobjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ControlobjectivesTable, + Columns: internalpolicy.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = ipu.schemaConfig.InternalPolicyControlobjectives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipu.mutation.RemovedControlobjectivesIDs(); len(nodes) > 0 && !ipu.mutation.ControlobjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ControlobjectivesTable, + Columns: internalpolicy.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = ipu.schemaConfig.InternalPolicyControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipu.mutation.ControlobjectivesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ControlobjectivesTable, + Columns: internalpolicy.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = ipu.schemaConfig.InternalPolicyControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if ipu.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: internalpolicy.ControlsTable, + Columns: []string{internalpolicy.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ipu.schemaConfig.Control + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipu.mutation.RemovedControlsIDs(); len(nodes) > 0 && !ipu.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: internalpolicy.ControlsTable, + Columns: []string{internalpolicy.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ipu.schemaConfig.Control + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipu.mutation.ControlsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: internalpolicy.ControlsTable, + Columns: []string{internalpolicy.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ipu.schemaConfig.Control + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if ipu.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ProceduresTable, + Columns: internalpolicy.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ipu.schemaConfig.InternalPolicyProcedures + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipu.mutation.RemovedProceduresIDs(); len(nodes) > 0 && !ipu.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ProceduresTable, + Columns: internalpolicy.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ipu.schemaConfig.InternalPolicyProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipu.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ProceduresTable, + Columns: internalpolicy.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ipu.schemaConfig.InternalPolicyProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if ipu.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.NarrativesTable, + Columns: internalpolicy.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = ipu.schemaConfig.InternalPolicyNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipu.mutation.RemovedNarrativesIDs(); len(nodes) > 0 && !ipu.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.NarrativesTable, + Columns: internalpolicy.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = ipu.schemaConfig.InternalPolicyNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipu.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.NarrativesTable, + Columns: internalpolicy.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = ipu.schemaConfig.InternalPolicyNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = ipu.schemaConfig.InternalPolicy + ctx = internal.NewSchemaConfigContext(ctx, ipu.schemaConfig) + _spec.AddModifiers(ipu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, ipu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{internalpolicy.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + ipu.mutation.done = true + return n, nil +} + +// InternalPolicyUpdateOne is the builder for updating a single InternalPolicy entity. +type InternalPolicyUpdateOne struct { + config + fields []string + hooks []Hook + mutation *InternalPolicyMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (ipuo *InternalPolicyUpdateOne) SetUpdatedAt(t time.Time) *InternalPolicyUpdateOne { + ipuo.mutation.SetUpdatedAt(t) + return ipuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (ipuo *InternalPolicyUpdateOne) ClearUpdatedAt() *InternalPolicyUpdateOne { + ipuo.mutation.ClearUpdatedAt() + return ipuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (ipuo *InternalPolicyUpdateOne) SetUpdatedBy(s string) *InternalPolicyUpdateOne { + ipuo.mutation.SetUpdatedBy(s) + return ipuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (ipuo *InternalPolicyUpdateOne) SetNillableUpdatedBy(s *string) *InternalPolicyUpdateOne { + if s != nil { + ipuo.SetUpdatedBy(*s) + } + return ipuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (ipuo *InternalPolicyUpdateOne) ClearUpdatedBy() *InternalPolicyUpdateOne { + ipuo.mutation.ClearUpdatedBy() + return ipuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (ipuo *InternalPolicyUpdateOne) SetDeletedAt(t time.Time) *InternalPolicyUpdateOne { + ipuo.mutation.SetDeletedAt(t) + return ipuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (ipuo *InternalPolicyUpdateOne) SetNillableDeletedAt(t *time.Time) *InternalPolicyUpdateOne { + if t != nil { + ipuo.SetDeletedAt(*t) + } + return ipuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (ipuo *InternalPolicyUpdateOne) ClearDeletedAt() *InternalPolicyUpdateOne { + ipuo.mutation.ClearDeletedAt() + return ipuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (ipuo *InternalPolicyUpdateOne) SetDeletedBy(s string) *InternalPolicyUpdateOne { + ipuo.mutation.SetDeletedBy(s) + return ipuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (ipuo *InternalPolicyUpdateOne) SetNillableDeletedBy(s *string) *InternalPolicyUpdateOne { + if s != nil { + ipuo.SetDeletedBy(*s) + } + return ipuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (ipuo *InternalPolicyUpdateOne) ClearDeletedBy() *InternalPolicyUpdateOne { + ipuo.mutation.ClearDeletedBy() + return ipuo +} + +// SetTags sets the "tags" field. +func (ipuo *InternalPolicyUpdateOne) SetTags(s []string) *InternalPolicyUpdateOne { + ipuo.mutation.SetTags(s) + return ipuo +} + +// AppendTags appends s to the "tags" field. +func (ipuo *InternalPolicyUpdateOne) AppendTags(s []string) *InternalPolicyUpdateOne { + ipuo.mutation.AppendTags(s) + return ipuo +} + +// ClearTags clears the value of the "tags" field. +func (ipuo *InternalPolicyUpdateOne) ClearTags() *InternalPolicyUpdateOne { + ipuo.mutation.ClearTags() + return ipuo +} + +// SetName sets the "name" field. +func (ipuo *InternalPolicyUpdateOne) SetName(s string) *InternalPolicyUpdateOne { + ipuo.mutation.SetName(s) + return ipuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (ipuo *InternalPolicyUpdateOne) SetNillableName(s *string) *InternalPolicyUpdateOne { + if s != nil { + ipuo.SetName(*s) + } + return ipuo +} + +// SetDescription sets the "description" field. +func (ipuo *InternalPolicyUpdateOne) SetDescription(s string) *InternalPolicyUpdateOne { + ipuo.mutation.SetDescription(s) + return ipuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (ipuo *InternalPolicyUpdateOne) SetNillableDescription(s *string) *InternalPolicyUpdateOne { + if s != nil { + ipuo.SetDescription(*s) + } + return ipuo +} + +// SetStatus sets the "status" field. +func (ipuo *InternalPolicyUpdateOne) SetStatus(s string) *InternalPolicyUpdateOne { + ipuo.mutation.SetStatus(s) + return ipuo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (ipuo *InternalPolicyUpdateOne) SetNillableStatus(s *string) *InternalPolicyUpdateOne { + if s != nil { + ipuo.SetStatus(*s) + } + return ipuo +} + +// ClearStatus clears the value of the "status" field. +func (ipuo *InternalPolicyUpdateOne) ClearStatus() *InternalPolicyUpdateOne { + ipuo.mutation.ClearStatus() + return ipuo +} + +// SetPolicyType sets the "policy_type" field. +func (ipuo *InternalPolicyUpdateOne) SetPolicyType(s string) *InternalPolicyUpdateOne { + ipuo.mutation.SetPolicyType(s) + return ipuo +} + +// SetNillablePolicyType sets the "policy_type" field if the given value is not nil. +func (ipuo *InternalPolicyUpdateOne) SetNillablePolicyType(s *string) *InternalPolicyUpdateOne { + if s != nil { + ipuo.SetPolicyType(*s) + } + return ipuo +} + +// ClearPolicyType clears the value of the "policy_type" field. +func (ipuo *InternalPolicyUpdateOne) ClearPolicyType() *InternalPolicyUpdateOne { + ipuo.mutation.ClearPolicyType() + return ipuo +} + +// SetVersion sets the "version" field. +func (ipuo *InternalPolicyUpdateOne) SetVersion(s string) *InternalPolicyUpdateOne { + ipuo.mutation.SetVersion(s) + return ipuo +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (ipuo *InternalPolicyUpdateOne) SetNillableVersion(s *string) *InternalPolicyUpdateOne { + if s != nil { + ipuo.SetVersion(*s) + } + return ipuo +} + +// ClearVersion clears the value of the "version" field. +func (ipuo *InternalPolicyUpdateOne) ClearVersion() *InternalPolicyUpdateOne { + ipuo.mutation.ClearVersion() + return ipuo +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (ipuo *InternalPolicyUpdateOne) SetPurposeAndScope(s string) *InternalPolicyUpdateOne { + ipuo.mutation.SetPurposeAndScope(s) + return ipuo +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (ipuo *InternalPolicyUpdateOne) SetNillablePurposeAndScope(s *string) *InternalPolicyUpdateOne { + if s != nil { + ipuo.SetPurposeAndScope(*s) + } + return ipuo +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (ipuo *InternalPolicyUpdateOne) ClearPurposeAndScope() *InternalPolicyUpdateOne { + ipuo.mutation.ClearPurposeAndScope() + return ipuo +} + +// SetBackground sets the "background" field. +func (ipuo *InternalPolicyUpdateOne) SetBackground(s string) *InternalPolicyUpdateOne { + ipuo.mutation.SetBackground(s) + return ipuo +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (ipuo *InternalPolicyUpdateOne) SetNillableBackground(s *string) *InternalPolicyUpdateOne { + if s != nil { + ipuo.SetBackground(*s) + } + return ipuo +} + +// ClearBackground clears the value of the "background" field. +func (ipuo *InternalPolicyUpdateOne) ClearBackground() *InternalPolicyUpdateOne { + ipuo.mutation.ClearBackground() + return ipuo +} + +// SetDetails sets the "details" field. +func (ipuo *InternalPolicyUpdateOne) SetDetails(m map[string]interface{}) *InternalPolicyUpdateOne { + ipuo.mutation.SetDetails(m) + return ipuo +} + +// ClearDetails clears the value of the "details" field. +func (ipuo *InternalPolicyUpdateOne) ClearDetails() *InternalPolicyUpdateOne { + ipuo.mutation.ClearDetails() + return ipuo +} + +// AddControlobjectiveIDs adds the "controlobjectives" edge to the ControlObjective entity by IDs. +func (ipuo *InternalPolicyUpdateOne) AddControlobjectiveIDs(ids ...string) *InternalPolicyUpdateOne { + ipuo.mutation.AddControlobjectiveIDs(ids...) + return ipuo +} + +// AddControlobjectives adds the "controlobjectives" edges to the ControlObjective entity. +func (ipuo *InternalPolicyUpdateOne) AddControlobjectives(c ...*ControlObjective) *InternalPolicyUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ipuo.AddControlobjectiveIDs(ids...) +} + +// AddControlIDs adds the "controls" edge to the Control entity by IDs. +func (ipuo *InternalPolicyUpdateOne) AddControlIDs(ids ...string) *InternalPolicyUpdateOne { + ipuo.mutation.AddControlIDs(ids...) + return ipuo +} + +// AddControls adds the "controls" edges to the Control entity. +func (ipuo *InternalPolicyUpdateOne) AddControls(c ...*Control) *InternalPolicyUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ipuo.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (ipuo *InternalPolicyUpdateOne) AddProcedureIDs(ids ...string) *InternalPolicyUpdateOne { + ipuo.mutation.AddProcedureIDs(ids...) + return ipuo +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (ipuo *InternalPolicyUpdateOne) AddProcedures(p ...*Procedure) *InternalPolicyUpdateOne { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return ipuo.AddProcedureIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (ipuo *InternalPolicyUpdateOne) AddNarrativeIDs(ids ...string) *InternalPolicyUpdateOne { + ipuo.mutation.AddNarrativeIDs(ids...) + return ipuo +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (ipuo *InternalPolicyUpdateOne) AddNarratives(n ...*Narrative) *InternalPolicyUpdateOne { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return ipuo.AddNarrativeIDs(ids...) +} + +// Mutation returns the InternalPolicyMutation object of the builder. +func (ipuo *InternalPolicyUpdateOne) Mutation() *InternalPolicyMutation { + return ipuo.mutation +} + +// ClearControlobjectives clears all "controlobjectives" edges to the ControlObjective entity. +func (ipuo *InternalPolicyUpdateOne) ClearControlobjectives() *InternalPolicyUpdateOne { + ipuo.mutation.ClearControlobjectives() + return ipuo +} + +// RemoveControlobjectiveIDs removes the "controlobjectives" edge to ControlObjective entities by IDs. +func (ipuo *InternalPolicyUpdateOne) RemoveControlobjectiveIDs(ids ...string) *InternalPolicyUpdateOne { + ipuo.mutation.RemoveControlobjectiveIDs(ids...) + return ipuo +} + +// RemoveControlobjectives removes "controlobjectives" edges to ControlObjective entities. +func (ipuo *InternalPolicyUpdateOne) RemoveControlobjectives(c ...*ControlObjective) *InternalPolicyUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ipuo.RemoveControlobjectiveIDs(ids...) +} + +// ClearControls clears all "controls" edges to the Control entity. +func (ipuo *InternalPolicyUpdateOne) ClearControls() *InternalPolicyUpdateOne { + ipuo.mutation.ClearControls() + return ipuo +} + +// RemoveControlIDs removes the "controls" edge to Control entities by IDs. +func (ipuo *InternalPolicyUpdateOne) RemoveControlIDs(ids ...string) *InternalPolicyUpdateOne { + ipuo.mutation.RemoveControlIDs(ids...) + return ipuo +} + +// RemoveControls removes "controls" edges to Control entities. +func (ipuo *InternalPolicyUpdateOne) RemoveControls(c ...*Control) *InternalPolicyUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ipuo.RemoveControlIDs(ids...) +} + +// ClearProcedures clears all "procedures" edges to the Procedure entity. +func (ipuo *InternalPolicyUpdateOne) ClearProcedures() *InternalPolicyUpdateOne { + ipuo.mutation.ClearProcedures() + return ipuo +} + +// RemoveProcedureIDs removes the "procedures" edge to Procedure entities by IDs. +func (ipuo *InternalPolicyUpdateOne) RemoveProcedureIDs(ids ...string) *InternalPolicyUpdateOne { + ipuo.mutation.RemoveProcedureIDs(ids...) + return ipuo +} + +// RemoveProcedures removes "procedures" edges to Procedure entities. +func (ipuo *InternalPolicyUpdateOne) RemoveProcedures(p ...*Procedure) *InternalPolicyUpdateOne { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return ipuo.RemoveProcedureIDs(ids...) +} + +// ClearNarratives clears all "narratives" edges to the Narrative entity. +func (ipuo *InternalPolicyUpdateOne) ClearNarratives() *InternalPolicyUpdateOne { + ipuo.mutation.ClearNarratives() + return ipuo +} + +// RemoveNarrativeIDs removes the "narratives" edge to Narrative entities by IDs. +func (ipuo *InternalPolicyUpdateOne) RemoveNarrativeIDs(ids ...string) *InternalPolicyUpdateOne { + ipuo.mutation.RemoveNarrativeIDs(ids...) + return ipuo +} + +// RemoveNarratives removes "narratives" edges to Narrative entities. +func (ipuo *InternalPolicyUpdateOne) RemoveNarratives(n ...*Narrative) *InternalPolicyUpdateOne { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return ipuo.RemoveNarrativeIDs(ids...) +} + +// Where appends a list predicates to the InternalPolicyUpdate builder. +func (ipuo *InternalPolicyUpdateOne) Where(ps ...predicate.InternalPolicy) *InternalPolicyUpdateOne { + ipuo.mutation.Where(ps...) + return ipuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (ipuo *InternalPolicyUpdateOne) Select(field string, fields ...string) *InternalPolicyUpdateOne { + ipuo.fields = append([]string{field}, fields...) + return ipuo +} + +// Save executes the query and returns the updated InternalPolicy entity. +func (ipuo *InternalPolicyUpdateOne) Save(ctx context.Context) (*InternalPolicy, error) { + if err := ipuo.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, ipuo.sqlSave, ipuo.mutation, ipuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (ipuo *InternalPolicyUpdateOne) SaveX(ctx context.Context) *InternalPolicy { + node, err := ipuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (ipuo *InternalPolicyUpdateOne) Exec(ctx context.Context) error { + _, err := ipuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (ipuo *InternalPolicyUpdateOne) ExecX(ctx context.Context) { + if err := ipuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (ipuo *InternalPolicyUpdateOne) defaults() error { + if _, ok := ipuo.mutation.UpdatedAt(); !ok && !ipuo.mutation.UpdatedAtCleared() { + if internalpolicy.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized internalpolicy.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := internalpolicy.UpdateDefaultUpdatedAt() + ipuo.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (ipuo *InternalPolicyUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *InternalPolicyUpdateOne { + ipuo.modifiers = append(ipuo.modifiers, modifiers...) + return ipuo +} + +func (ipuo *InternalPolicyUpdateOne) sqlSave(ctx context.Context) (_node *InternalPolicy, err error) { + _spec := sqlgraph.NewUpdateSpec(internalpolicy.Table, internalpolicy.Columns, sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString)) + id, ok := ipuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "InternalPolicy.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := ipuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, internalpolicy.FieldID) + for _, f := range fields { + if !internalpolicy.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != internalpolicy.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := ipuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if ipuo.mutation.CreatedAtCleared() { + _spec.ClearField(internalpolicy.FieldCreatedAt, field.TypeTime) + } + if value, ok := ipuo.mutation.UpdatedAt(); ok { + _spec.SetField(internalpolicy.FieldUpdatedAt, field.TypeTime, value) + } + if ipuo.mutation.UpdatedAtCleared() { + _spec.ClearField(internalpolicy.FieldUpdatedAt, field.TypeTime) + } + if ipuo.mutation.CreatedByCleared() { + _spec.ClearField(internalpolicy.FieldCreatedBy, field.TypeString) + } + if value, ok := ipuo.mutation.UpdatedBy(); ok { + _spec.SetField(internalpolicy.FieldUpdatedBy, field.TypeString, value) + } + if ipuo.mutation.UpdatedByCleared() { + _spec.ClearField(internalpolicy.FieldUpdatedBy, field.TypeString) + } + if value, ok := ipuo.mutation.DeletedAt(); ok { + _spec.SetField(internalpolicy.FieldDeletedAt, field.TypeTime, value) + } + if ipuo.mutation.DeletedAtCleared() { + _spec.ClearField(internalpolicy.FieldDeletedAt, field.TypeTime) + } + if value, ok := ipuo.mutation.DeletedBy(); ok { + _spec.SetField(internalpolicy.FieldDeletedBy, field.TypeString, value) + } + if ipuo.mutation.DeletedByCleared() { + _spec.ClearField(internalpolicy.FieldDeletedBy, field.TypeString) + } + if value, ok := ipuo.mutation.Tags(); ok { + _spec.SetField(internalpolicy.FieldTags, field.TypeJSON, value) + } + if value, ok := ipuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, internalpolicy.FieldTags, value) + }) + } + if ipuo.mutation.TagsCleared() { + _spec.ClearField(internalpolicy.FieldTags, field.TypeJSON) + } + if value, ok := ipuo.mutation.Name(); ok { + _spec.SetField(internalpolicy.FieldName, field.TypeString, value) + } + if value, ok := ipuo.mutation.Description(); ok { + _spec.SetField(internalpolicy.FieldDescription, field.TypeString, value) + } + if value, ok := ipuo.mutation.Status(); ok { + _spec.SetField(internalpolicy.FieldStatus, field.TypeString, value) + } + if ipuo.mutation.StatusCleared() { + _spec.ClearField(internalpolicy.FieldStatus, field.TypeString) + } + if value, ok := ipuo.mutation.PolicyType(); ok { + _spec.SetField(internalpolicy.FieldPolicyType, field.TypeString, value) + } + if ipuo.mutation.PolicyTypeCleared() { + _spec.ClearField(internalpolicy.FieldPolicyType, field.TypeString) + } + if value, ok := ipuo.mutation.Version(); ok { + _spec.SetField(internalpolicy.FieldVersion, field.TypeString, value) + } + if ipuo.mutation.VersionCleared() { + _spec.ClearField(internalpolicy.FieldVersion, field.TypeString) + } + if value, ok := ipuo.mutation.PurposeAndScope(); ok { + _spec.SetField(internalpolicy.FieldPurposeAndScope, field.TypeString, value) + } + if ipuo.mutation.PurposeAndScopeCleared() { + _spec.ClearField(internalpolicy.FieldPurposeAndScope, field.TypeString) + } + if value, ok := ipuo.mutation.Background(); ok { + _spec.SetField(internalpolicy.FieldBackground, field.TypeString, value) + } + if ipuo.mutation.BackgroundCleared() { + _spec.ClearField(internalpolicy.FieldBackground, field.TypeString) + } + if value, ok := ipuo.mutation.Details(); ok { + _spec.SetField(internalpolicy.FieldDetails, field.TypeJSON, value) + } + if ipuo.mutation.DetailsCleared() { + _spec.ClearField(internalpolicy.FieldDetails, field.TypeJSON) + } + if ipuo.mutation.ControlobjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ControlobjectivesTable, + Columns: internalpolicy.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = ipuo.schemaConfig.InternalPolicyControlobjectives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipuo.mutation.RemovedControlobjectivesIDs(); len(nodes) > 0 && !ipuo.mutation.ControlobjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ControlobjectivesTable, + Columns: internalpolicy.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = ipuo.schemaConfig.InternalPolicyControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipuo.mutation.ControlobjectivesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ControlobjectivesTable, + Columns: internalpolicy.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = ipuo.schemaConfig.InternalPolicyControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if ipuo.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: internalpolicy.ControlsTable, + Columns: []string{internalpolicy.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ipuo.schemaConfig.Control + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipuo.mutation.RemovedControlsIDs(); len(nodes) > 0 && !ipuo.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: internalpolicy.ControlsTable, + Columns: []string{internalpolicy.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ipuo.schemaConfig.Control + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipuo.mutation.ControlsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: internalpolicy.ControlsTable, + Columns: []string{internalpolicy.ControlsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ipuo.schemaConfig.Control + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if ipuo.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ProceduresTable, + Columns: internalpolicy.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ipuo.schemaConfig.InternalPolicyProcedures + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipuo.mutation.RemovedProceduresIDs(); len(nodes) > 0 && !ipuo.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ProceduresTable, + Columns: internalpolicy.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ipuo.schemaConfig.InternalPolicyProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipuo.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.ProceduresTable, + Columns: internalpolicy.ProceduresPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ipuo.schemaConfig.InternalPolicyProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if ipuo.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.NarrativesTable, + Columns: internalpolicy.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = ipuo.schemaConfig.InternalPolicyNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipuo.mutation.RemovedNarrativesIDs(); len(nodes) > 0 && !ipuo.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.NarrativesTable, + Columns: internalpolicy.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = ipuo.schemaConfig.InternalPolicyNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ipuo.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: internalpolicy.NarrativesTable, + Columns: internalpolicy.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = ipuo.schemaConfig.InternalPolicyNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = ipuo.schemaConfig.InternalPolicy + ctx = internal.NewSchemaConfigContext(ctx, ipuo.schemaConfig) + _spec.AddModifiers(ipuo.modifiers...) + _node = &InternalPolicy{config: ipuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, ipuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{internalpolicy.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + ipuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/internalpolicyhistory.go b/internal/ent/generated/internalpolicyhistory.go new file mode 100644 index 00000000..b9534bcb --- /dev/null +++ b/internal/ent/generated/internalpolicyhistory.go @@ -0,0 +1,312 @@ +// 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/internal/ent/generated/internalpolicyhistory" + "github.com/theopenlane/entx/history" +) + +// InternalPolicyHistory is the model entity for the InternalPolicyHistory schema. +type InternalPolicyHistory 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the policy + Name string `json:"name,omitempty"` + // description of the policy + Description string `json:"description,omitempty"` + // status of the policy + Status string `json:"status,omitempty"` + // type of the policy + PolicyType string `json:"policy_type,omitempty"` + // version of the policy + Version string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope string `json:"purpose_and_scope,omitempty"` + // background of the policy + Background string `json:"background,omitempty"` + // json data for the policy document + Details map[string]interface{} `json:"details,omitempty"` + selectValues sql.SelectValues +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*InternalPolicyHistory) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case internalpolicyhistory.FieldTags, internalpolicyhistory.FieldDetails: + values[i] = new([]byte) + case internalpolicyhistory.FieldOperation: + values[i] = new(history.OpType) + case internalpolicyhistory.FieldID, internalpolicyhistory.FieldRef, internalpolicyhistory.FieldCreatedBy, internalpolicyhistory.FieldUpdatedBy, internalpolicyhistory.FieldDeletedBy, internalpolicyhistory.FieldMappingID, internalpolicyhistory.FieldName, internalpolicyhistory.FieldDescription, internalpolicyhistory.FieldStatus, internalpolicyhistory.FieldPolicyType, internalpolicyhistory.FieldVersion, internalpolicyhistory.FieldPurposeAndScope, internalpolicyhistory.FieldBackground: + values[i] = new(sql.NullString) + case internalpolicyhistory.FieldHistoryTime, internalpolicyhistory.FieldCreatedAt, internalpolicyhistory.FieldUpdatedAt, internalpolicyhistory.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 InternalPolicyHistory fields. +func (iph *InternalPolicyHistory) 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 internalpolicyhistory.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + iph.ID = value.String + } + case internalpolicyhistory.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 { + iph.HistoryTime = value.Time + } + case internalpolicyhistory.FieldRef: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field ref", values[i]) + } else if value.Valid { + iph.Ref = value.String + } + case internalpolicyhistory.FieldOperation: + if value, ok := values[i].(*history.OpType); !ok { + return fmt.Errorf("unexpected type %T for field operation", values[i]) + } else if value != nil { + iph.Operation = *value + } + case internalpolicyhistory.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 { + iph.CreatedAt = value.Time + } + case internalpolicyhistory.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 { + iph.UpdatedAt = value.Time + } + case internalpolicyhistory.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 { + iph.CreatedBy = value.String + } + case internalpolicyhistory.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 { + iph.UpdatedBy = value.String + } + case internalpolicyhistory.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 { + iph.DeletedAt = value.Time + } + case internalpolicyhistory.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 { + iph.DeletedBy = value.String + } + case internalpolicyhistory.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + iph.MappingID = value.String + } + case internalpolicyhistory.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, &iph.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case internalpolicyhistory.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + iph.Name = value.String + } + case internalpolicyhistory.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + iph.Description = value.String + } + case internalpolicyhistory.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + iph.Status = value.String + } + case internalpolicyhistory.FieldPolicyType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field policy_type", values[i]) + } else if value.Valid { + iph.PolicyType = value.String + } + case internalpolicyhistory.FieldVersion: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field version", values[i]) + } else if value.Valid { + iph.Version = value.String + } + case internalpolicyhistory.FieldPurposeAndScope: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field purpose_and_scope", values[i]) + } else if value.Valid { + iph.PurposeAndScope = value.String + } + case internalpolicyhistory.FieldBackground: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field background", values[i]) + } else if value.Valid { + iph.Background = value.String + } + case internalpolicyhistory.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &iph.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + iph.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the InternalPolicyHistory. +// This includes values selected through modifiers, order, etc. +func (iph *InternalPolicyHistory) Value(name string) (ent.Value, error) { + return iph.selectValues.Get(name) +} + +// Update returns a builder for updating this InternalPolicyHistory. +// Note that you need to call InternalPolicyHistory.Unwrap() before calling this method if this InternalPolicyHistory +// was returned from a transaction, and the transaction was committed or rolled back. +func (iph *InternalPolicyHistory) Update() *InternalPolicyHistoryUpdateOne { + return NewInternalPolicyHistoryClient(iph.config).UpdateOne(iph) +} + +// Unwrap unwraps the InternalPolicyHistory 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 (iph *InternalPolicyHistory) Unwrap() *InternalPolicyHistory { + _tx, ok := iph.config.driver.(*txDriver) + if !ok { + panic("generated: InternalPolicyHistory is not a transactional entity") + } + iph.config.driver = _tx.drv + return iph +} + +// String implements the fmt.Stringer. +func (iph *InternalPolicyHistory) String() string { + var builder strings.Builder + builder.WriteString("InternalPolicyHistory(") + builder.WriteString(fmt.Sprintf("id=%v, ", iph.ID)) + builder.WriteString("history_time=") + builder.WriteString(iph.HistoryTime.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("ref=") + builder.WriteString(iph.Ref) + builder.WriteString(", ") + builder.WriteString("operation=") + builder.WriteString(fmt.Sprintf("%v", iph.Operation)) + builder.WriteString(", ") + builder.WriteString("created_at=") + builder.WriteString(iph.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(iph.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(iph.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(iph.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(iph.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(iph.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(iph.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", iph.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(iph.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(iph.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(iph.Status) + builder.WriteString(", ") + builder.WriteString("policy_type=") + builder.WriteString(iph.PolicyType) + builder.WriteString(", ") + builder.WriteString("version=") + builder.WriteString(iph.Version) + builder.WriteString(", ") + builder.WriteString("purpose_and_scope=") + builder.WriteString(iph.PurposeAndScope) + builder.WriteString(", ") + builder.WriteString("background=") + builder.WriteString(iph.Background) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", iph.Details)) + builder.WriteByte(')') + return builder.String() +} + +// InternalPolicyHistories is a parsable slice of InternalPolicyHistory. +type InternalPolicyHistories []*InternalPolicyHistory diff --git a/internal/ent/generated/internalpolicyhistory/internalpolicyhistory.go b/internal/ent/generated/internalpolicyhistory/internalpolicyhistory.go new file mode 100644 index 00000000..862d90a9 --- /dev/null +++ b/internal/ent/generated/internalpolicyhistory/internalpolicyhistory.go @@ -0,0 +1,220 @@ +// Code generated by ent, DO NOT EDIT. + +package internalpolicyhistory + +import ( + "fmt" + "time" + + "entgo.io/ent/dialect/sql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/entx/history" +) + +const ( + // Label holds the string label denoting the internalpolicyhistory type in the database. + Label = "internal_policy_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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldPolicyType holds the string denoting the policy_type field in the database. + FieldPolicyType = "policy_type" + // FieldVersion holds the string denoting the version field in the database. + FieldVersion = "version" + // FieldPurposeAndScope holds the string denoting the purpose_and_scope field in the database. + FieldPurposeAndScope = "purpose_and_scope" + // FieldBackground holds the string denoting the background field in the database. + FieldBackground = "background" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // Table holds the table name of the internalpolicyhistory in the database. + Table = "internal_policy_history" +) + +// Columns holds all SQL columns for internalpolicyhistory fields. +var Columns = []string{ + FieldID, + FieldHistoryTime, + FieldRef, + FieldOperation, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldPolicyType, + FieldVersion, + FieldPurposeAndScope, + FieldBackground, + FieldDetails, +} + +// 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 +} + +var ( + // 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 + // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. + UpdateDefaultUpdatedAt func() time.Time + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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("internalpolicyhistory: invalid enum value for operation field: %q", o) + } +} + +// OrderOption defines the ordering options for the InternalPolicyHistory 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByPolicyType orders the results by the policy_type field. +func ByPolicyType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldPolicyType, opts...).ToFunc() +} + +// ByVersion orders the results by the version field. +func ByVersion(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldVersion, opts...).ToFunc() +} + +// ByPurposeAndScope orders the results by the purpose_and_scope field. +func ByPurposeAndScope(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldPurposeAndScope, opts...).ToFunc() +} + +// ByBackground orders the results by the background field. +func ByBackground(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldBackground, 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/generated/internalpolicyhistory/where.go b/internal/ent/generated/internalpolicyhistory/where.go new file mode 100644 index 00000000..4429d0c9 --- /dev/null +++ b/internal/ent/generated/internalpolicyhistory/where.go @@ -0,0 +1,1261 @@ +// Code generated by ent, DO NOT EDIT. + +package internalpolicyhistory + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/entx/history" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(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.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// Ref applies equality check predicate on the "ref" field. It's identical to RefEQ. +func Ref(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(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.InternalPolicyHistory { + return predicate.InternalPolicyHistory(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.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldStatus, v)) +} + +// PolicyType applies equality check predicate on the "policy_type" field. It's identical to PolicyTypeEQ. +func PolicyType(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldPolicyType, v)) +} + +// Version applies equality check predicate on the "version" field. It's identical to VersionEQ. +func Version(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldVersion, v)) +} + +// PurposeAndScope applies equality check predicate on the "purpose_and_scope" field. It's identical to PurposeAndScopeEQ. +func PurposeAndScope(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldPurposeAndScope, v)) +} + +// Background applies equality check predicate on the "background" field. It's identical to BackgroundEQ. +func Background(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldBackground, v)) +} + +// HistoryTimeEQ applies the EQ predicate on the "history_time" field. +func HistoryTimeEQ(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// HistoryTimeNEQ applies the NEQ predicate on the "history_time" field. +func HistoryTimeNEQ(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldHistoryTime, v)) +} + +// HistoryTimeIn applies the In predicate on the "history_time" field. +func HistoryTimeIn(vs ...time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeNotIn applies the NotIn predicate on the "history_time" field. +func HistoryTimeNotIn(vs ...time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeGT applies the GT predicate on the "history_time" field. +func HistoryTimeGT(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldHistoryTime, v)) +} + +// HistoryTimeGTE applies the GTE predicate on the "history_time" field. +func HistoryTimeGTE(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldHistoryTime, v)) +} + +// HistoryTimeLT applies the LT predicate on the "history_time" field. +func HistoryTimeLT(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldHistoryTime, v)) +} + +// HistoryTimeLTE applies the LTE predicate on the "history_time" field. +func HistoryTimeLTE(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldHistoryTime, v)) +} + +// RefEQ applies the EQ predicate on the "ref" field. +func RefEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldRef, v)) +} + +// RefNEQ applies the NEQ predicate on the "ref" field. +func RefNEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldRef, v)) +} + +// RefIn applies the In predicate on the "ref" field. +func RefIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldRef, vs...)) +} + +// RefNotIn applies the NotIn predicate on the "ref" field. +func RefNotIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldRef, vs...)) +} + +// RefGT applies the GT predicate on the "ref" field. +func RefGT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldRef, v)) +} + +// RefGTE applies the GTE predicate on the "ref" field. +func RefGTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldRef, v)) +} + +// RefLT applies the LT predicate on the "ref" field. +func RefLT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldRef, v)) +} + +// RefLTE applies the LTE predicate on the "ref" field. +func RefLTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldRef, v)) +} + +// RefContains applies the Contains predicate on the "ref" field. +func RefContains(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContains(FieldRef, v)) +} + +// RefHasPrefix applies the HasPrefix predicate on the "ref" field. +func RefHasPrefix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasPrefix(FieldRef, v)) +} + +// RefHasSuffix applies the HasSuffix predicate on the "ref" field. +func RefHasSuffix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasSuffix(FieldRef, v)) +} + +// RefIsNil applies the IsNil predicate on the "ref" field. +func RefIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldRef)) +} + +// RefNotNil applies the NotNil predicate on the "ref" field. +func RefNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldRef)) +} + +// RefEqualFold applies the EqualFold predicate on the "ref" field. +func RefEqualFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldRef, v)) +} + +// RefContainsFold applies the ContainsFold predicate on the "ref" field. +func RefContainsFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContainsFold(FieldRef, v)) +} + +// OperationEQ applies the EQ predicate on the "operation" field. +func OperationEQ(v history.OpType) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldOperation, v)) +} + +// OperationNEQ applies the NEQ predicate on the "operation" field. +func OperationNEQ(v history.OpType) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldOperation, v)) +} + +// OperationIn applies the In predicate on the "operation" field. +func OperationIn(vs ...history.OpType) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldOperation, vs...)) +} + +// OperationNotIn applies the NotIn predicate on the "operation" field. +func OperationNotIn(vs ...history.OpType) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldOperation, vs...)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContainsFold(FieldStatus, v)) +} + +// PolicyTypeEQ applies the EQ predicate on the "policy_type" field. +func PolicyTypeEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldPolicyType, v)) +} + +// PolicyTypeNEQ applies the NEQ predicate on the "policy_type" field. +func PolicyTypeNEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldPolicyType, v)) +} + +// PolicyTypeIn applies the In predicate on the "policy_type" field. +func PolicyTypeIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldPolicyType, vs...)) +} + +// PolicyTypeNotIn applies the NotIn predicate on the "policy_type" field. +func PolicyTypeNotIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldPolicyType, vs...)) +} + +// PolicyTypeGT applies the GT predicate on the "policy_type" field. +func PolicyTypeGT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldPolicyType, v)) +} + +// PolicyTypeGTE applies the GTE predicate on the "policy_type" field. +func PolicyTypeGTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldPolicyType, v)) +} + +// PolicyTypeLT applies the LT predicate on the "policy_type" field. +func PolicyTypeLT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldPolicyType, v)) +} + +// PolicyTypeLTE applies the LTE predicate on the "policy_type" field. +func PolicyTypeLTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldPolicyType, v)) +} + +// PolicyTypeContains applies the Contains predicate on the "policy_type" field. +func PolicyTypeContains(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContains(FieldPolicyType, v)) +} + +// PolicyTypeHasPrefix applies the HasPrefix predicate on the "policy_type" field. +func PolicyTypeHasPrefix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasPrefix(FieldPolicyType, v)) +} + +// PolicyTypeHasSuffix applies the HasSuffix predicate on the "policy_type" field. +func PolicyTypeHasSuffix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasSuffix(FieldPolicyType, v)) +} + +// PolicyTypeIsNil applies the IsNil predicate on the "policy_type" field. +func PolicyTypeIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldPolicyType)) +} + +// PolicyTypeNotNil applies the NotNil predicate on the "policy_type" field. +func PolicyTypeNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldPolicyType)) +} + +// PolicyTypeEqualFold applies the EqualFold predicate on the "policy_type" field. +func PolicyTypeEqualFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldPolicyType, v)) +} + +// PolicyTypeContainsFold applies the ContainsFold predicate on the "policy_type" field. +func PolicyTypeContainsFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContainsFold(FieldPolicyType, v)) +} + +// VersionEQ applies the EQ predicate on the "version" field. +func VersionEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldVersion, v)) +} + +// VersionNEQ applies the NEQ predicate on the "version" field. +func VersionNEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldVersion, v)) +} + +// VersionIn applies the In predicate on the "version" field. +func VersionIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldVersion, vs...)) +} + +// VersionNotIn applies the NotIn predicate on the "version" field. +func VersionNotIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldVersion, vs...)) +} + +// VersionGT applies the GT predicate on the "version" field. +func VersionGT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldVersion, v)) +} + +// VersionGTE applies the GTE predicate on the "version" field. +func VersionGTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldVersion, v)) +} + +// VersionLT applies the LT predicate on the "version" field. +func VersionLT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldVersion, v)) +} + +// VersionLTE applies the LTE predicate on the "version" field. +func VersionLTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldVersion, v)) +} + +// VersionContains applies the Contains predicate on the "version" field. +func VersionContains(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContains(FieldVersion, v)) +} + +// VersionHasPrefix applies the HasPrefix predicate on the "version" field. +func VersionHasPrefix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasPrefix(FieldVersion, v)) +} + +// VersionHasSuffix applies the HasSuffix predicate on the "version" field. +func VersionHasSuffix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasSuffix(FieldVersion, v)) +} + +// VersionIsNil applies the IsNil predicate on the "version" field. +func VersionIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldVersion)) +} + +// VersionNotNil applies the NotNil predicate on the "version" field. +func VersionNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldVersion)) +} + +// VersionEqualFold applies the EqualFold predicate on the "version" field. +func VersionEqualFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldVersion, v)) +} + +// VersionContainsFold applies the ContainsFold predicate on the "version" field. +func VersionContainsFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContainsFold(FieldVersion, v)) +} + +// PurposeAndScopeEQ applies the EQ predicate on the "purpose_and_scope" field. +func PurposeAndScopeEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeNEQ applies the NEQ predicate on the "purpose_and_scope" field. +func PurposeAndScopeNEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeIn applies the In predicate on the "purpose_and_scope" field. +func PurposeAndScopeIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldPurposeAndScope, vs...)) +} + +// PurposeAndScopeNotIn applies the NotIn predicate on the "purpose_and_scope" field. +func PurposeAndScopeNotIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldPurposeAndScope, vs...)) +} + +// PurposeAndScopeGT applies the GT predicate on the "purpose_and_scope" field. +func PurposeAndScopeGT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeGTE applies the GTE predicate on the "purpose_and_scope" field. +func PurposeAndScopeGTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeLT applies the LT predicate on the "purpose_and_scope" field. +func PurposeAndScopeLT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeLTE applies the LTE predicate on the "purpose_and_scope" field. +func PurposeAndScopeLTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeContains applies the Contains predicate on the "purpose_and_scope" field. +func PurposeAndScopeContains(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContains(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeHasPrefix applies the HasPrefix predicate on the "purpose_and_scope" field. +func PurposeAndScopeHasPrefix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasPrefix(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeHasSuffix applies the HasSuffix predicate on the "purpose_and_scope" field. +func PurposeAndScopeHasSuffix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasSuffix(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeIsNil applies the IsNil predicate on the "purpose_and_scope" field. +func PurposeAndScopeIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldPurposeAndScope)) +} + +// PurposeAndScopeNotNil applies the NotNil predicate on the "purpose_and_scope" field. +func PurposeAndScopeNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldPurposeAndScope)) +} + +// PurposeAndScopeEqualFold applies the EqualFold predicate on the "purpose_and_scope" field. +func PurposeAndScopeEqualFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeContainsFold applies the ContainsFold predicate on the "purpose_and_scope" field. +func PurposeAndScopeContainsFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContainsFold(FieldPurposeAndScope, v)) +} + +// BackgroundEQ applies the EQ predicate on the "background" field. +func BackgroundEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEQ(FieldBackground, v)) +} + +// BackgroundNEQ applies the NEQ predicate on the "background" field. +func BackgroundNEQ(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNEQ(FieldBackground, v)) +} + +// BackgroundIn applies the In predicate on the "background" field. +func BackgroundIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIn(FieldBackground, vs...)) +} + +// BackgroundNotIn applies the NotIn predicate on the "background" field. +func BackgroundNotIn(vs ...string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotIn(FieldBackground, vs...)) +} + +// BackgroundGT applies the GT predicate on the "background" field. +func BackgroundGT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGT(FieldBackground, v)) +} + +// BackgroundGTE applies the GTE predicate on the "background" field. +func BackgroundGTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldGTE(FieldBackground, v)) +} + +// BackgroundLT applies the LT predicate on the "background" field. +func BackgroundLT(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLT(FieldBackground, v)) +} + +// BackgroundLTE applies the LTE predicate on the "background" field. +func BackgroundLTE(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldLTE(FieldBackground, v)) +} + +// BackgroundContains applies the Contains predicate on the "background" field. +func BackgroundContains(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContains(FieldBackground, v)) +} + +// BackgroundHasPrefix applies the HasPrefix predicate on the "background" field. +func BackgroundHasPrefix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasPrefix(FieldBackground, v)) +} + +// BackgroundHasSuffix applies the HasSuffix predicate on the "background" field. +func BackgroundHasSuffix(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldHasSuffix(FieldBackground, v)) +} + +// BackgroundIsNil applies the IsNil predicate on the "background" field. +func BackgroundIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldBackground)) +} + +// BackgroundNotNil applies the NotNil predicate on the "background" field. +func BackgroundNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldBackground)) +} + +// BackgroundEqualFold applies the EqualFold predicate on the "background" field. +func BackgroundEqualFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldEqualFold(FieldBackground, v)) +} + +// BackgroundContainsFold applies the ContainsFold predicate on the "background" field. +func BackgroundContainsFold(v string) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldContainsFold(FieldBackground, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.FieldNotNull(FieldDetails)) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.InternalPolicyHistory) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.InternalPolicyHistory) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.InternalPolicyHistory) predicate.InternalPolicyHistory { + return predicate.InternalPolicyHistory(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/internalpolicyhistory_create.go b/internal/ent/generated/internalpolicyhistory_create.go new file mode 100644 index 00000000..5e99a474 --- /dev/null +++ b/internal/ent/generated/internalpolicyhistory_create.go @@ -0,0 +1,544 @@ +// 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/internal/ent/generated/internalpolicyhistory" + "github.com/theopenlane/entx/history" +) + +// InternalPolicyHistoryCreate is the builder for creating a InternalPolicyHistory entity. +type InternalPolicyHistoryCreate struct { + config + mutation *InternalPolicyHistoryMutation + hooks []Hook +} + +// SetHistoryTime sets the "history_time" field. +func (iphc *InternalPolicyHistoryCreate) SetHistoryTime(t time.Time) *InternalPolicyHistoryCreate { + iphc.mutation.SetHistoryTime(t) + return iphc +} + +// SetNillableHistoryTime sets the "history_time" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableHistoryTime(t *time.Time) *InternalPolicyHistoryCreate { + if t != nil { + iphc.SetHistoryTime(*t) + } + return iphc +} + +// SetRef sets the "ref" field. +func (iphc *InternalPolicyHistoryCreate) SetRef(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetRef(s) + return iphc +} + +// SetNillableRef sets the "ref" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableRef(s *string) *InternalPolicyHistoryCreate { + if s != nil { + iphc.SetRef(*s) + } + return iphc +} + +// SetOperation sets the "operation" field. +func (iphc *InternalPolicyHistoryCreate) SetOperation(ht history.OpType) *InternalPolicyHistoryCreate { + iphc.mutation.SetOperation(ht) + return iphc +} + +// SetCreatedAt sets the "created_at" field. +func (iphc *InternalPolicyHistoryCreate) SetCreatedAt(t time.Time) *InternalPolicyHistoryCreate { + iphc.mutation.SetCreatedAt(t) + return iphc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableCreatedAt(t *time.Time) *InternalPolicyHistoryCreate { + if t != nil { + iphc.SetCreatedAt(*t) + } + return iphc +} + +// SetUpdatedAt sets the "updated_at" field. +func (iphc *InternalPolicyHistoryCreate) SetUpdatedAt(t time.Time) *InternalPolicyHistoryCreate { + iphc.mutation.SetUpdatedAt(t) + return iphc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableUpdatedAt(t *time.Time) *InternalPolicyHistoryCreate { + if t != nil { + iphc.SetUpdatedAt(*t) + } + return iphc +} + +// SetCreatedBy sets the "created_by" field. +func (iphc *InternalPolicyHistoryCreate) SetCreatedBy(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetCreatedBy(s) + return iphc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableCreatedBy(s *string) *InternalPolicyHistoryCreate { + if s != nil { + iphc.SetCreatedBy(*s) + } + return iphc +} + +// SetUpdatedBy sets the "updated_by" field. +func (iphc *InternalPolicyHistoryCreate) SetUpdatedBy(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetUpdatedBy(s) + return iphc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableUpdatedBy(s *string) *InternalPolicyHistoryCreate { + if s != nil { + iphc.SetUpdatedBy(*s) + } + return iphc +} + +// SetDeletedAt sets the "deleted_at" field. +func (iphc *InternalPolicyHistoryCreate) SetDeletedAt(t time.Time) *InternalPolicyHistoryCreate { + iphc.mutation.SetDeletedAt(t) + return iphc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableDeletedAt(t *time.Time) *InternalPolicyHistoryCreate { + if t != nil { + iphc.SetDeletedAt(*t) + } + return iphc +} + +// SetDeletedBy sets the "deleted_by" field. +func (iphc *InternalPolicyHistoryCreate) SetDeletedBy(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetDeletedBy(s) + return iphc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableDeletedBy(s *string) *InternalPolicyHistoryCreate { + if s != nil { + iphc.SetDeletedBy(*s) + } + return iphc +} + +// SetMappingID sets the "mapping_id" field. +func (iphc *InternalPolicyHistoryCreate) SetMappingID(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetMappingID(s) + return iphc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableMappingID(s *string) *InternalPolicyHistoryCreate { + if s != nil { + iphc.SetMappingID(*s) + } + return iphc +} + +// SetTags sets the "tags" field. +func (iphc *InternalPolicyHistoryCreate) SetTags(s []string) *InternalPolicyHistoryCreate { + iphc.mutation.SetTags(s) + return iphc +} + +// SetName sets the "name" field. +func (iphc *InternalPolicyHistoryCreate) SetName(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetName(s) + return iphc +} + +// SetDescription sets the "description" field. +func (iphc *InternalPolicyHistoryCreate) SetDescription(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetDescription(s) + return iphc +} + +// SetStatus sets the "status" field. +func (iphc *InternalPolicyHistoryCreate) SetStatus(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetStatus(s) + return iphc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableStatus(s *string) *InternalPolicyHistoryCreate { + if s != nil { + iphc.SetStatus(*s) + } + return iphc +} + +// SetPolicyType sets the "policy_type" field. +func (iphc *InternalPolicyHistoryCreate) SetPolicyType(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetPolicyType(s) + return iphc +} + +// SetNillablePolicyType sets the "policy_type" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillablePolicyType(s *string) *InternalPolicyHistoryCreate { + if s != nil { + iphc.SetPolicyType(*s) + } + return iphc +} + +// SetVersion sets the "version" field. +func (iphc *InternalPolicyHistoryCreate) SetVersion(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetVersion(s) + return iphc +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableVersion(s *string) *InternalPolicyHistoryCreate { + if s != nil { + iphc.SetVersion(*s) + } + return iphc +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (iphc *InternalPolicyHistoryCreate) SetPurposeAndScope(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetPurposeAndScope(s) + return iphc +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillablePurposeAndScope(s *string) *InternalPolicyHistoryCreate { + if s != nil { + iphc.SetPurposeAndScope(*s) + } + return iphc +} + +// SetBackground sets the "background" field. +func (iphc *InternalPolicyHistoryCreate) SetBackground(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetBackground(s) + return iphc +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableBackground(s *string) *InternalPolicyHistoryCreate { + if s != nil { + iphc.SetBackground(*s) + } + return iphc +} + +// SetDetails sets the "details" field. +func (iphc *InternalPolicyHistoryCreate) SetDetails(m map[string]interface{}) *InternalPolicyHistoryCreate { + iphc.mutation.SetDetails(m) + return iphc +} + +// SetID sets the "id" field. +func (iphc *InternalPolicyHistoryCreate) SetID(s string) *InternalPolicyHistoryCreate { + iphc.mutation.SetID(s) + return iphc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (iphc *InternalPolicyHistoryCreate) SetNillableID(s *string) *InternalPolicyHistoryCreate { + if s != nil { + iphc.SetID(*s) + } + return iphc +} + +// Mutation returns the InternalPolicyHistoryMutation object of the builder. +func (iphc *InternalPolicyHistoryCreate) Mutation() *InternalPolicyHistoryMutation { + return iphc.mutation +} + +// Save creates the InternalPolicyHistory in the database. +func (iphc *InternalPolicyHistoryCreate) Save(ctx context.Context) (*InternalPolicyHistory, error) { + iphc.defaults() + return withHooks(ctx, iphc.sqlSave, iphc.mutation, iphc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (iphc *InternalPolicyHistoryCreate) SaveX(ctx context.Context) *InternalPolicyHistory { + v, err := iphc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (iphc *InternalPolicyHistoryCreate) Exec(ctx context.Context) error { + _, err := iphc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (iphc *InternalPolicyHistoryCreate) ExecX(ctx context.Context) { + if err := iphc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (iphc *InternalPolicyHistoryCreate) defaults() { + if _, ok := iphc.mutation.HistoryTime(); !ok { + v := internalpolicyhistory.DefaultHistoryTime() + iphc.mutation.SetHistoryTime(v) + } + if _, ok := iphc.mutation.CreatedAt(); !ok { + v := internalpolicyhistory.DefaultCreatedAt() + iphc.mutation.SetCreatedAt(v) + } + if _, ok := iphc.mutation.UpdatedAt(); !ok { + v := internalpolicyhistory.DefaultUpdatedAt() + iphc.mutation.SetUpdatedAt(v) + } + if _, ok := iphc.mutation.MappingID(); !ok { + v := internalpolicyhistory.DefaultMappingID() + iphc.mutation.SetMappingID(v) + } + if _, ok := iphc.mutation.Tags(); !ok { + v := internalpolicyhistory.DefaultTags + iphc.mutation.SetTags(v) + } + if _, ok := iphc.mutation.ID(); !ok { + v := internalpolicyhistory.DefaultID() + iphc.mutation.SetID(v) + } +} + +// check runs all checks and user-defined validators on the builder. +func (iphc *InternalPolicyHistoryCreate) check() error { + if _, ok := iphc.mutation.HistoryTime(); !ok { + return &ValidationError{Name: "history_time", err: errors.New(`generated: missing required field "InternalPolicyHistory.history_time"`)} + } + if _, ok := iphc.mutation.Operation(); !ok { + return &ValidationError{Name: "operation", err: errors.New(`generated: missing required field "InternalPolicyHistory.operation"`)} + } + if v, ok := iphc.mutation.Operation(); ok { + if err := internalpolicyhistory.OperationValidator(v); err != nil { + return &ValidationError{Name: "operation", err: fmt.Errorf(`generated: validator failed for field "InternalPolicyHistory.operation": %w`, err)} + } + } + if _, ok := iphc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "InternalPolicyHistory.mapping_id"`)} + } + if _, ok := iphc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "InternalPolicyHistory.name"`)} + } + if _, ok := iphc.mutation.Description(); !ok { + return &ValidationError{Name: "description", err: errors.New(`generated: missing required field "InternalPolicyHistory.description"`)} + } + return nil +} + +func (iphc *InternalPolicyHistoryCreate) sqlSave(ctx context.Context) (*InternalPolicyHistory, error) { + if err := iphc.check(); err != nil { + return nil, err + } + _node, _spec := iphc.createSpec() + if err := sqlgraph.CreateNode(ctx, iphc.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 InternalPolicyHistory.ID type: %T", _spec.ID.Value) + } + } + iphc.mutation.id = &_node.ID + iphc.mutation.done = true + return _node, nil +} + +func (iphc *InternalPolicyHistoryCreate) createSpec() (*InternalPolicyHistory, *sqlgraph.CreateSpec) { + var ( + _node = &InternalPolicyHistory{config: iphc.config} + _spec = sqlgraph.NewCreateSpec(internalpolicyhistory.Table, sqlgraph.NewFieldSpec(internalpolicyhistory.FieldID, field.TypeString)) + ) + _spec.Schema = iphc.schemaConfig.InternalPolicyHistory + if id, ok := iphc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := iphc.mutation.HistoryTime(); ok { + _spec.SetField(internalpolicyhistory.FieldHistoryTime, field.TypeTime, value) + _node.HistoryTime = value + } + if value, ok := iphc.mutation.Ref(); ok { + _spec.SetField(internalpolicyhistory.FieldRef, field.TypeString, value) + _node.Ref = value + } + if value, ok := iphc.mutation.Operation(); ok { + _spec.SetField(internalpolicyhistory.FieldOperation, field.TypeEnum, value) + _node.Operation = value + } + if value, ok := iphc.mutation.CreatedAt(); ok { + _spec.SetField(internalpolicyhistory.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := iphc.mutation.UpdatedAt(); ok { + _spec.SetField(internalpolicyhistory.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := iphc.mutation.CreatedBy(); ok { + _spec.SetField(internalpolicyhistory.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := iphc.mutation.UpdatedBy(); ok { + _spec.SetField(internalpolicyhistory.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := iphc.mutation.DeletedAt(); ok { + _spec.SetField(internalpolicyhistory.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := iphc.mutation.DeletedBy(); ok { + _spec.SetField(internalpolicyhistory.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := iphc.mutation.MappingID(); ok { + _spec.SetField(internalpolicyhistory.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := iphc.mutation.Tags(); ok { + _spec.SetField(internalpolicyhistory.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := iphc.mutation.Name(); ok { + _spec.SetField(internalpolicyhistory.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := iphc.mutation.Description(); ok { + _spec.SetField(internalpolicyhistory.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := iphc.mutation.Status(); ok { + _spec.SetField(internalpolicyhistory.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := iphc.mutation.PolicyType(); ok { + _spec.SetField(internalpolicyhistory.FieldPolicyType, field.TypeString, value) + _node.PolicyType = value + } + if value, ok := iphc.mutation.Version(); ok { + _spec.SetField(internalpolicyhistory.FieldVersion, field.TypeString, value) + _node.Version = value + } + if value, ok := iphc.mutation.PurposeAndScope(); ok { + _spec.SetField(internalpolicyhistory.FieldPurposeAndScope, field.TypeString, value) + _node.PurposeAndScope = value + } + if value, ok := iphc.mutation.Background(); ok { + _spec.SetField(internalpolicyhistory.FieldBackground, field.TypeString, value) + _node.Background = value + } + if value, ok := iphc.mutation.Details(); ok { + _spec.SetField(internalpolicyhistory.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + return _node, _spec +} + +// InternalPolicyHistoryCreateBulk is the builder for creating many InternalPolicyHistory entities in bulk. +type InternalPolicyHistoryCreateBulk struct { + config + err error + builders []*InternalPolicyHistoryCreate +} + +// Save creates the InternalPolicyHistory entities in the database. +func (iphcb *InternalPolicyHistoryCreateBulk) Save(ctx context.Context) ([]*InternalPolicyHistory, error) { + if iphcb.err != nil { + return nil, iphcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(iphcb.builders)) + nodes := make([]*InternalPolicyHistory, len(iphcb.builders)) + mutators := make([]Mutator, len(iphcb.builders)) + for i := range iphcb.builders { + func(i int, root context.Context) { + builder := iphcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*InternalPolicyHistoryMutation) + 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, iphcb.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, iphcb.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, iphcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (iphcb *InternalPolicyHistoryCreateBulk) SaveX(ctx context.Context) []*InternalPolicyHistory { + v, err := iphcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (iphcb *InternalPolicyHistoryCreateBulk) Exec(ctx context.Context) error { + _, err := iphcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (iphcb *InternalPolicyHistoryCreateBulk) ExecX(ctx context.Context) { + if err := iphcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/internalpolicyhistory_delete.go b/internal/ent/generated/internalpolicyhistory_delete.go new file mode 100644 index 00000000..0b028829 --- /dev/null +++ b/internal/ent/generated/internalpolicyhistory_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" +) + +// InternalPolicyHistoryDelete is the builder for deleting a InternalPolicyHistory entity. +type InternalPolicyHistoryDelete struct { + config + hooks []Hook + mutation *InternalPolicyHistoryMutation +} + +// Where appends a list predicates to the InternalPolicyHistoryDelete builder. +func (iphd *InternalPolicyHistoryDelete) Where(ps ...predicate.InternalPolicyHistory) *InternalPolicyHistoryDelete { + iphd.mutation.Where(ps...) + return iphd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (iphd *InternalPolicyHistoryDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, iphd.sqlExec, iphd.mutation, iphd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (iphd *InternalPolicyHistoryDelete) ExecX(ctx context.Context) int { + n, err := iphd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (iphd *InternalPolicyHistoryDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(internalpolicyhistory.Table, sqlgraph.NewFieldSpec(internalpolicyhistory.FieldID, field.TypeString)) + _spec.Node.Schema = iphd.schemaConfig.InternalPolicyHistory + ctx = internal.NewSchemaConfigContext(ctx, iphd.schemaConfig) + if ps := iphd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, iphd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + iphd.mutation.done = true + return affected, err +} + +// InternalPolicyHistoryDeleteOne is the builder for deleting a single InternalPolicyHistory entity. +type InternalPolicyHistoryDeleteOne struct { + iphd *InternalPolicyHistoryDelete +} + +// Where appends a list predicates to the InternalPolicyHistoryDelete builder. +func (iphdo *InternalPolicyHistoryDeleteOne) Where(ps ...predicate.InternalPolicyHistory) *InternalPolicyHistoryDeleteOne { + iphdo.iphd.mutation.Where(ps...) + return iphdo +} + +// Exec executes the deletion query. +func (iphdo *InternalPolicyHistoryDeleteOne) Exec(ctx context.Context) error { + n, err := iphdo.iphd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{internalpolicyhistory.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (iphdo *InternalPolicyHistoryDeleteOne) ExecX(ctx context.Context) { + if err := iphdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/internalpolicyhistory_query.go b/internal/ent/generated/internalpolicyhistory_query.go new file mode 100644 index 00000000..62db4249 --- /dev/null +++ b/internal/ent/generated/internalpolicyhistory_query.go @@ -0,0 +1,565 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "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/internal/ent/generated/internalpolicyhistory" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// InternalPolicyHistoryQuery is the builder for querying InternalPolicyHistory entities. +type InternalPolicyHistoryQuery struct { + config + ctx *QueryContext + order []internalpolicyhistory.OrderOption + inters []Interceptor + predicates []predicate.InternalPolicyHistory + loadTotal []func(context.Context, []*InternalPolicyHistory) 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 InternalPolicyHistoryQuery builder. +func (iphq *InternalPolicyHistoryQuery) Where(ps ...predicate.InternalPolicyHistory) *InternalPolicyHistoryQuery { + iphq.predicates = append(iphq.predicates, ps...) + return iphq +} + +// Limit the number of records to be returned by this query. +func (iphq *InternalPolicyHistoryQuery) Limit(limit int) *InternalPolicyHistoryQuery { + iphq.ctx.Limit = &limit + return iphq +} + +// Offset to start from. +func (iphq *InternalPolicyHistoryQuery) Offset(offset int) *InternalPolicyHistoryQuery { + iphq.ctx.Offset = &offset + return iphq +} + +// 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 (iphq *InternalPolicyHistoryQuery) Unique(unique bool) *InternalPolicyHistoryQuery { + iphq.ctx.Unique = &unique + return iphq +} + +// Order specifies how the records should be ordered. +func (iphq *InternalPolicyHistoryQuery) Order(o ...internalpolicyhistory.OrderOption) *InternalPolicyHistoryQuery { + iphq.order = append(iphq.order, o...) + return iphq +} + +// First returns the first InternalPolicyHistory entity from the query. +// Returns a *NotFoundError when no InternalPolicyHistory was found. +func (iphq *InternalPolicyHistoryQuery) First(ctx context.Context) (*InternalPolicyHistory, error) { + nodes, err := iphq.Limit(1).All(setContextOp(ctx, iphq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{internalpolicyhistory.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (iphq *InternalPolicyHistoryQuery) FirstX(ctx context.Context) *InternalPolicyHistory { + node, err := iphq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first InternalPolicyHistory ID from the query. +// Returns a *NotFoundError when no InternalPolicyHistory ID was found. +func (iphq *InternalPolicyHistoryQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = iphq.Limit(1).IDs(setContextOp(ctx, iphq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{internalpolicyhistory.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (iphq *InternalPolicyHistoryQuery) FirstIDX(ctx context.Context) string { + id, err := iphq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single InternalPolicyHistory entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one InternalPolicyHistory entity is found. +// Returns a *NotFoundError when no InternalPolicyHistory entities are found. +func (iphq *InternalPolicyHistoryQuery) Only(ctx context.Context) (*InternalPolicyHistory, error) { + nodes, err := iphq.Limit(2).All(setContextOp(ctx, iphq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{internalpolicyhistory.Label} + default: + return nil, &NotSingularError{internalpolicyhistory.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (iphq *InternalPolicyHistoryQuery) OnlyX(ctx context.Context) *InternalPolicyHistory { + node, err := iphq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only InternalPolicyHistory ID in the query. +// Returns a *NotSingularError when more than one InternalPolicyHistory ID is found. +// Returns a *NotFoundError when no entities are found. +func (iphq *InternalPolicyHistoryQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = iphq.Limit(2).IDs(setContextOp(ctx, iphq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{internalpolicyhistory.Label} + default: + err = &NotSingularError{internalpolicyhistory.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (iphq *InternalPolicyHistoryQuery) OnlyIDX(ctx context.Context) string { + id, err := iphq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of InternalPolicyHistories. +func (iphq *InternalPolicyHistoryQuery) All(ctx context.Context) ([]*InternalPolicyHistory, error) { + ctx = setContextOp(ctx, iphq.ctx, ent.OpQueryAll) + if err := iphq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*InternalPolicyHistory, *InternalPolicyHistoryQuery]() + return withInterceptors[[]*InternalPolicyHistory](ctx, iphq, qr, iphq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (iphq *InternalPolicyHistoryQuery) AllX(ctx context.Context) []*InternalPolicyHistory { + nodes, err := iphq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of InternalPolicyHistory IDs. +func (iphq *InternalPolicyHistoryQuery) IDs(ctx context.Context) (ids []string, err error) { + if iphq.ctx.Unique == nil && iphq.path != nil { + iphq.Unique(true) + } + ctx = setContextOp(ctx, iphq.ctx, ent.OpQueryIDs) + if err = iphq.Select(internalpolicyhistory.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (iphq *InternalPolicyHistoryQuery) IDsX(ctx context.Context) []string { + ids, err := iphq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (iphq *InternalPolicyHistoryQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, iphq.ctx, ent.OpQueryCount) + if err := iphq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, iphq, querierCount[*InternalPolicyHistoryQuery](), iphq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (iphq *InternalPolicyHistoryQuery) CountX(ctx context.Context) int { + count, err := iphq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (iphq *InternalPolicyHistoryQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, iphq.ctx, ent.OpQueryExist) + switch _, err := iphq.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 (iphq *InternalPolicyHistoryQuery) ExistX(ctx context.Context) bool { + exist, err := iphq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the InternalPolicyHistoryQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (iphq *InternalPolicyHistoryQuery) Clone() *InternalPolicyHistoryQuery { + if iphq == nil { + return nil + } + return &InternalPolicyHistoryQuery{ + config: iphq.config, + ctx: iphq.ctx.Clone(), + order: append([]internalpolicyhistory.OrderOption{}, iphq.order...), + inters: append([]Interceptor{}, iphq.inters...), + predicates: append([]predicate.InternalPolicyHistory{}, iphq.predicates...), + // clone intermediate query. + sql: iphq.sql.Clone(), + path: iphq.path, + modifiers: append([]func(*sql.Selector){}, iphq.modifiers...), + } +} + +// 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.InternalPolicyHistory.Query(). +// GroupBy(internalpolicyhistory.FieldHistoryTime). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (iphq *InternalPolicyHistoryQuery) GroupBy(field string, fields ...string) *InternalPolicyHistoryGroupBy { + iphq.ctx.Fields = append([]string{field}, fields...) + grbuild := &InternalPolicyHistoryGroupBy{build: iphq} + grbuild.flds = &iphq.ctx.Fields + grbuild.label = internalpolicyhistory.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.InternalPolicyHistory.Query(). +// Select(internalpolicyhistory.FieldHistoryTime). +// Scan(ctx, &v) +func (iphq *InternalPolicyHistoryQuery) Select(fields ...string) *InternalPolicyHistorySelect { + iphq.ctx.Fields = append(iphq.ctx.Fields, fields...) + sbuild := &InternalPolicyHistorySelect{InternalPolicyHistoryQuery: iphq} + sbuild.label = internalpolicyhistory.Label + sbuild.flds, sbuild.scan = &iphq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a InternalPolicyHistorySelect configured with the given aggregations. +func (iphq *InternalPolicyHistoryQuery) Aggregate(fns ...AggregateFunc) *InternalPolicyHistorySelect { + return iphq.Select().Aggregate(fns...) +} + +func (iphq *InternalPolicyHistoryQuery) prepareQuery(ctx context.Context) error { + for _, inter := range iphq.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, iphq); err != nil { + return err + } + } + } + for _, f := range iphq.ctx.Fields { + if !internalpolicyhistory.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if iphq.path != nil { + prev, err := iphq.path(ctx) + if err != nil { + return err + } + iphq.sql = prev + } + return nil +} + +func (iphq *InternalPolicyHistoryQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*InternalPolicyHistory, error) { + var ( + nodes = []*InternalPolicyHistory{} + _spec = iphq.querySpec() + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*InternalPolicyHistory).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &InternalPolicyHistory{config: iphq.config} + nodes = append(nodes, node) + return node.assignValues(columns, values) + } + _spec.Node.Schema = iphq.schemaConfig.InternalPolicyHistory + ctx = internal.NewSchemaConfigContext(ctx, iphq.schemaConfig) + if len(iphq.modifiers) > 0 { + _spec.Modifiers = iphq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, iphq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + for i := range iphq.loadTotal { + if err := iphq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (iphq *InternalPolicyHistoryQuery) sqlCount(ctx context.Context) (int, error) { + _spec := iphq.querySpec() + _spec.Node.Schema = iphq.schemaConfig.InternalPolicyHistory + ctx = internal.NewSchemaConfigContext(ctx, iphq.schemaConfig) + if len(iphq.modifiers) > 0 { + _spec.Modifiers = iphq.modifiers + } + _spec.Node.Columns = iphq.ctx.Fields + if len(iphq.ctx.Fields) > 0 { + _spec.Unique = iphq.ctx.Unique != nil && *iphq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, iphq.driver, _spec) +} + +func (iphq *InternalPolicyHistoryQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(internalpolicyhistory.Table, internalpolicyhistory.Columns, sqlgraph.NewFieldSpec(internalpolicyhistory.FieldID, field.TypeString)) + _spec.From = iphq.sql + if unique := iphq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if iphq.path != nil { + _spec.Unique = true + } + if fields := iphq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, internalpolicyhistory.FieldID) + for i := range fields { + if fields[i] != internalpolicyhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := iphq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := iphq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := iphq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := iphq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (iphq *InternalPolicyHistoryQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(iphq.driver.Dialect()) + t1 := builder.Table(internalpolicyhistory.Table) + columns := iphq.ctx.Fields + if len(columns) == 0 { + columns = internalpolicyhistory.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if iphq.sql != nil { + selector = iphq.sql + selector.Select(selector.Columns(columns...)...) + } + if iphq.ctx.Unique != nil && *iphq.ctx.Unique { + selector.Distinct() + } + t1.Schema(iphq.schemaConfig.InternalPolicyHistory) + ctx = internal.NewSchemaConfigContext(ctx, iphq.schemaConfig) + selector.WithContext(ctx) + for _, m := range iphq.modifiers { + m(selector) + } + for _, p := range iphq.predicates { + p(selector) + } + for _, p := range iphq.order { + p(selector) + } + if offset := iphq.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 := iphq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (iphq *InternalPolicyHistoryQuery) Modify(modifiers ...func(s *sql.Selector)) *InternalPolicyHistorySelect { + iphq.modifiers = append(iphq.modifiers, modifiers...) + return iphq.Select() +} + +// InternalPolicyHistoryGroupBy is the group-by builder for InternalPolicyHistory entities. +type InternalPolicyHistoryGroupBy struct { + selector + build *InternalPolicyHistoryQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (iphgb *InternalPolicyHistoryGroupBy) Aggregate(fns ...AggregateFunc) *InternalPolicyHistoryGroupBy { + iphgb.fns = append(iphgb.fns, fns...) + return iphgb +} + +// Scan applies the selector query and scans the result into the given value. +func (iphgb *InternalPolicyHistoryGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, iphgb.build.ctx, ent.OpQueryGroupBy) + if err := iphgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*InternalPolicyHistoryQuery, *InternalPolicyHistoryGroupBy](ctx, iphgb.build, iphgb, iphgb.build.inters, v) +} + +func (iphgb *InternalPolicyHistoryGroupBy) sqlScan(ctx context.Context, root *InternalPolicyHistoryQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(iphgb.fns)) + for _, fn := range iphgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*iphgb.flds)+len(iphgb.fns)) + for _, f := range *iphgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*iphgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := iphgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// InternalPolicyHistorySelect is the builder for selecting fields of InternalPolicyHistory entities. +type InternalPolicyHistorySelect struct { + *InternalPolicyHistoryQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (iphs *InternalPolicyHistorySelect) Aggregate(fns ...AggregateFunc) *InternalPolicyHistorySelect { + iphs.fns = append(iphs.fns, fns...) + return iphs +} + +// Scan applies the selector query and scans the result into the given value. +func (iphs *InternalPolicyHistorySelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, iphs.ctx, ent.OpQuerySelect) + if err := iphs.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*InternalPolicyHistoryQuery, *InternalPolicyHistorySelect](ctx, iphs.InternalPolicyHistoryQuery, iphs, iphs.inters, v) +} + +func (iphs *InternalPolicyHistorySelect) sqlScan(ctx context.Context, root *InternalPolicyHistoryQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(iphs.fns)) + for _, fn := range iphs.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*iphs.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 := iphs.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 (iphs *InternalPolicyHistorySelect) Modify(modifiers ...func(s *sql.Selector)) *InternalPolicyHistorySelect { + iphs.modifiers = append(iphs.modifiers, modifiers...) + return iphs +} diff --git a/internal/ent/generated/internalpolicyhistory_update.go b/internal/ent/generated/internalpolicyhistory_update.go new file mode 100644 index 00000000..d78f73f8 --- /dev/null +++ b/internal/ent/generated/internalpolicyhistory_update.go @@ -0,0 +1,849 @@ +// 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/internal/ent/generated/internalpolicyhistory" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// InternalPolicyHistoryUpdate is the builder for updating InternalPolicyHistory entities. +type InternalPolicyHistoryUpdate struct { + config + hooks []Hook + mutation *InternalPolicyHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the InternalPolicyHistoryUpdate builder. +func (iphu *InternalPolicyHistoryUpdate) Where(ps ...predicate.InternalPolicyHistory) *InternalPolicyHistoryUpdate { + iphu.mutation.Where(ps...) + return iphu +} + +// SetUpdatedAt sets the "updated_at" field. +func (iphu *InternalPolicyHistoryUpdate) SetUpdatedAt(t time.Time) *InternalPolicyHistoryUpdate { + iphu.mutation.SetUpdatedAt(t) + return iphu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (iphu *InternalPolicyHistoryUpdate) ClearUpdatedAt() *InternalPolicyHistoryUpdate { + iphu.mutation.ClearUpdatedAt() + return iphu +} + +// SetUpdatedBy sets the "updated_by" field. +func (iphu *InternalPolicyHistoryUpdate) SetUpdatedBy(s string) *InternalPolicyHistoryUpdate { + iphu.mutation.SetUpdatedBy(s) + return iphu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (iphu *InternalPolicyHistoryUpdate) SetNillableUpdatedBy(s *string) *InternalPolicyHistoryUpdate { + if s != nil { + iphu.SetUpdatedBy(*s) + } + return iphu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (iphu *InternalPolicyHistoryUpdate) ClearUpdatedBy() *InternalPolicyHistoryUpdate { + iphu.mutation.ClearUpdatedBy() + return iphu +} + +// SetDeletedAt sets the "deleted_at" field. +func (iphu *InternalPolicyHistoryUpdate) SetDeletedAt(t time.Time) *InternalPolicyHistoryUpdate { + iphu.mutation.SetDeletedAt(t) + return iphu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (iphu *InternalPolicyHistoryUpdate) SetNillableDeletedAt(t *time.Time) *InternalPolicyHistoryUpdate { + if t != nil { + iphu.SetDeletedAt(*t) + } + return iphu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (iphu *InternalPolicyHistoryUpdate) ClearDeletedAt() *InternalPolicyHistoryUpdate { + iphu.mutation.ClearDeletedAt() + return iphu +} + +// SetDeletedBy sets the "deleted_by" field. +func (iphu *InternalPolicyHistoryUpdate) SetDeletedBy(s string) *InternalPolicyHistoryUpdate { + iphu.mutation.SetDeletedBy(s) + return iphu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (iphu *InternalPolicyHistoryUpdate) SetNillableDeletedBy(s *string) *InternalPolicyHistoryUpdate { + if s != nil { + iphu.SetDeletedBy(*s) + } + return iphu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (iphu *InternalPolicyHistoryUpdate) ClearDeletedBy() *InternalPolicyHistoryUpdate { + iphu.mutation.ClearDeletedBy() + return iphu +} + +// SetTags sets the "tags" field. +func (iphu *InternalPolicyHistoryUpdate) SetTags(s []string) *InternalPolicyHistoryUpdate { + iphu.mutation.SetTags(s) + return iphu +} + +// AppendTags appends s to the "tags" field. +func (iphu *InternalPolicyHistoryUpdate) AppendTags(s []string) *InternalPolicyHistoryUpdate { + iphu.mutation.AppendTags(s) + return iphu +} + +// ClearTags clears the value of the "tags" field. +func (iphu *InternalPolicyHistoryUpdate) ClearTags() *InternalPolicyHistoryUpdate { + iphu.mutation.ClearTags() + return iphu +} + +// SetName sets the "name" field. +func (iphu *InternalPolicyHistoryUpdate) SetName(s string) *InternalPolicyHistoryUpdate { + iphu.mutation.SetName(s) + return iphu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (iphu *InternalPolicyHistoryUpdate) SetNillableName(s *string) *InternalPolicyHistoryUpdate { + if s != nil { + iphu.SetName(*s) + } + return iphu +} + +// SetDescription sets the "description" field. +func (iphu *InternalPolicyHistoryUpdate) SetDescription(s string) *InternalPolicyHistoryUpdate { + iphu.mutation.SetDescription(s) + return iphu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (iphu *InternalPolicyHistoryUpdate) SetNillableDescription(s *string) *InternalPolicyHistoryUpdate { + if s != nil { + iphu.SetDescription(*s) + } + return iphu +} + +// SetStatus sets the "status" field. +func (iphu *InternalPolicyHistoryUpdate) SetStatus(s string) *InternalPolicyHistoryUpdate { + iphu.mutation.SetStatus(s) + return iphu +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (iphu *InternalPolicyHistoryUpdate) SetNillableStatus(s *string) *InternalPolicyHistoryUpdate { + if s != nil { + iphu.SetStatus(*s) + } + return iphu +} + +// ClearStatus clears the value of the "status" field. +func (iphu *InternalPolicyHistoryUpdate) ClearStatus() *InternalPolicyHistoryUpdate { + iphu.mutation.ClearStatus() + return iphu +} + +// SetPolicyType sets the "policy_type" field. +func (iphu *InternalPolicyHistoryUpdate) SetPolicyType(s string) *InternalPolicyHistoryUpdate { + iphu.mutation.SetPolicyType(s) + return iphu +} + +// SetNillablePolicyType sets the "policy_type" field if the given value is not nil. +func (iphu *InternalPolicyHistoryUpdate) SetNillablePolicyType(s *string) *InternalPolicyHistoryUpdate { + if s != nil { + iphu.SetPolicyType(*s) + } + return iphu +} + +// ClearPolicyType clears the value of the "policy_type" field. +func (iphu *InternalPolicyHistoryUpdate) ClearPolicyType() *InternalPolicyHistoryUpdate { + iphu.mutation.ClearPolicyType() + return iphu +} + +// SetVersion sets the "version" field. +func (iphu *InternalPolicyHistoryUpdate) SetVersion(s string) *InternalPolicyHistoryUpdate { + iphu.mutation.SetVersion(s) + return iphu +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (iphu *InternalPolicyHistoryUpdate) SetNillableVersion(s *string) *InternalPolicyHistoryUpdate { + if s != nil { + iphu.SetVersion(*s) + } + return iphu +} + +// ClearVersion clears the value of the "version" field. +func (iphu *InternalPolicyHistoryUpdate) ClearVersion() *InternalPolicyHistoryUpdate { + iphu.mutation.ClearVersion() + return iphu +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (iphu *InternalPolicyHistoryUpdate) SetPurposeAndScope(s string) *InternalPolicyHistoryUpdate { + iphu.mutation.SetPurposeAndScope(s) + return iphu +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (iphu *InternalPolicyHistoryUpdate) SetNillablePurposeAndScope(s *string) *InternalPolicyHistoryUpdate { + if s != nil { + iphu.SetPurposeAndScope(*s) + } + return iphu +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (iphu *InternalPolicyHistoryUpdate) ClearPurposeAndScope() *InternalPolicyHistoryUpdate { + iphu.mutation.ClearPurposeAndScope() + return iphu +} + +// SetBackground sets the "background" field. +func (iphu *InternalPolicyHistoryUpdate) SetBackground(s string) *InternalPolicyHistoryUpdate { + iphu.mutation.SetBackground(s) + return iphu +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (iphu *InternalPolicyHistoryUpdate) SetNillableBackground(s *string) *InternalPolicyHistoryUpdate { + if s != nil { + iphu.SetBackground(*s) + } + return iphu +} + +// ClearBackground clears the value of the "background" field. +func (iphu *InternalPolicyHistoryUpdate) ClearBackground() *InternalPolicyHistoryUpdate { + iphu.mutation.ClearBackground() + return iphu +} + +// SetDetails sets the "details" field. +func (iphu *InternalPolicyHistoryUpdate) SetDetails(m map[string]interface{}) *InternalPolicyHistoryUpdate { + iphu.mutation.SetDetails(m) + return iphu +} + +// ClearDetails clears the value of the "details" field. +func (iphu *InternalPolicyHistoryUpdate) ClearDetails() *InternalPolicyHistoryUpdate { + iphu.mutation.ClearDetails() + return iphu +} + +// Mutation returns the InternalPolicyHistoryMutation object of the builder. +func (iphu *InternalPolicyHistoryUpdate) Mutation() *InternalPolicyHistoryMutation { + return iphu.mutation +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (iphu *InternalPolicyHistoryUpdate) Save(ctx context.Context) (int, error) { + iphu.defaults() + return withHooks(ctx, iphu.sqlSave, iphu.mutation, iphu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (iphu *InternalPolicyHistoryUpdate) SaveX(ctx context.Context) int { + affected, err := iphu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (iphu *InternalPolicyHistoryUpdate) Exec(ctx context.Context) error { + _, err := iphu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (iphu *InternalPolicyHistoryUpdate) ExecX(ctx context.Context) { + if err := iphu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (iphu *InternalPolicyHistoryUpdate) defaults() { + if _, ok := iphu.mutation.UpdatedAt(); !ok && !iphu.mutation.UpdatedAtCleared() { + v := internalpolicyhistory.UpdateDefaultUpdatedAt() + iphu.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (iphu *InternalPolicyHistoryUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *InternalPolicyHistoryUpdate { + iphu.modifiers = append(iphu.modifiers, modifiers...) + return iphu +} + +func (iphu *InternalPolicyHistoryUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(internalpolicyhistory.Table, internalpolicyhistory.Columns, sqlgraph.NewFieldSpec(internalpolicyhistory.FieldID, field.TypeString)) + if ps := iphu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if iphu.mutation.RefCleared() { + _spec.ClearField(internalpolicyhistory.FieldRef, field.TypeString) + } + if iphu.mutation.CreatedAtCleared() { + _spec.ClearField(internalpolicyhistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := iphu.mutation.UpdatedAt(); ok { + _spec.SetField(internalpolicyhistory.FieldUpdatedAt, field.TypeTime, value) + } + if iphu.mutation.UpdatedAtCleared() { + _spec.ClearField(internalpolicyhistory.FieldUpdatedAt, field.TypeTime) + } + if iphu.mutation.CreatedByCleared() { + _spec.ClearField(internalpolicyhistory.FieldCreatedBy, field.TypeString) + } + if value, ok := iphu.mutation.UpdatedBy(); ok { + _spec.SetField(internalpolicyhistory.FieldUpdatedBy, field.TypeString, value) + } + if iphu.mutation.UpdatedByCleared() { + _spec.ClearField(internalpolicyhistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := iphu.mutation.DeletedAt(); ok { + _spec.SetField(internalpolicyhistory.FieldDeletedAt, field.TypeTime, value) + } + if iphu.mutation.DeletedAtCleared() { + _spec.ClearField(internalpolicyhistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := iphu.mutation.DeletedBy(); ok { + _spec.SetField(internalpolicyhistory.FieldDeletedBy, field.TypeString, value) + } + if iphu.mutation.DeletedByCleared() { + _spec.ClearField(internalpolicyhistory.FieldDeletedBy, field.TypeString) + } + if value, ok := iphu.mutation.Tags(); ok { + _spec.SetField(internalpolicyhistory.FieldTags, field.TypeJSON, value) + } + if value, ok := iphu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, internalpolicyhistory.FieldTags, value) + }) + } + if iphu.mutation.TagsCleared() { + _spec.ClearField(internalpolicyhistory.FieldTags, field.TypeJSON) + } + if value, ok := iphu.mutation.Name(); ok { + _spec.SetField(internalpolicyhistory.FieldName, field.TypeString, value) + } + if value, ok := iphu.mutation.Description(); ok { + _spec.SetField(internalpolicyhistory.FieldDescription, field.TypeString, value) + } + if value, ok := iphu.mutation.Status(); ok { + _spec.SetField(internalpolicyhistory.FieldStatus, field.TypeString, value) + } + if iphu.mutation.StatusCleared() { + _spec.ClearField(internalpolicyhistory.FieldStatus, field.TypeString) + } + if value, ok := iphu.mutation.PolicyType(); ok { + _spec.SetField(internalpolicyhistory.FieldPolicyType, field.TypeString, value) + } + if iphu.mutation.PolicyTypeCleared() { + _spec.ClearField(internalpolicyhistory.FieldPolicyType, field.TypeString) + } + if value, ok := iphu.mutation.Version(); ok { + _spec.SetField(internalpolicyhistory.FieldVersion, field.TypeString, value) + } + if iphu.mutation.VersionCleared() { + _spec.ClearField(internalpolicyhistory.FieldVersion, field.TypeString) + } + if value, ok := iphu.mutation.PurposeAndScope(); ok { + _spec.SetField(internalpolicyhistory.FieldPurposeAndScope, field.TypeString, value) + } + if iphu.mutation.PurposeAndScopeCleared() { + _spec.ClearField(internalpolicyhistory.FieldPurposeAndScope, field.TypeString) + } + if value, ok := iphu.mutation.Background(); ok { + _spec.SetField(internalpolicyhistory.FieldBackground, field.TypeString, value) + } + if iphu.mutation.BackgroundCleared() { + _spec.ClearField(internalpolicyhistory.FieldBackground, field.TypeString) + } + if value, ok := iphu.mutation.Details(); ok { + _spec.SetField(internalpolicyhistory.FieldDetails, field.TypeJSON, value) + } + if iphu.mutation.DetailsCleared() { + _spec.ClearField(internalpolicyhistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = iphu.schemaConfig.InternalPolicyHistory + ctx = internal.NewSchemaConfigContext(ctx, iphu.schemaConfig) + _spec.AddModifiers(iphu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, iphu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{internalpolicyhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + iphu.mutation.done = true + return n, nil +} + +// InternalPolicyHistoryUpdateOne is the builder for updating a single InternalPolicyHistory entity. +type InternalPolicyHistoryUpdateOne struct { + config + fields []string + hooks []Hook + mutation *InternalPolicyHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetUpdatedAt(t time.Time) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetUpdatedAt(t) + return iphuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (iphuo *InternalPolicyHistoryUpdateOne) ClearUpdatedAt() *InternalPolicyHistoryUpdateOne { + iphuo.mutation.ClearUpdatedAt() + return iphuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetUpdatedBy(s string) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetUpdatedBy(s) + return iphuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (iphuo *InternalPolicyHistoryUpdateOne) SetNillableUpdatedBy(s *string) *InternalPolicyHistoryUpdateOne { + if s != nil { + iphuo.SetUpdatedBy(*s) + } + return iphuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (iphuo *InternalPolicyHistoryUpdateOne) ClearUpdatedBy() *InternalPolicyHistoryUpdateOne { + iphuo.mutation.ClearUpdatedBy() + return iphuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetDeletedAt(t time.Time) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetDeletedAt(t) + return iphuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (iphuo *InternalPolicyHistoryUpdateOne) SetNillableDeletedAt(t *time.Time) *InternalPolicyHistoryUpdateOne { + if t != nil { + iphuo.SetDeletedAt(*t) + } + return iphuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (iphuo *InternalPolicyHistoryUpdateOne) ClearDeletedAt() *InternalPolicyHistoryUpdateOne { + iphuo.mutation.ClearDeletedAt() + return iphuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetDeletedBy(s string) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetDeletedBy(s) + return iphuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (iphuo *InternalPolicyHistoryUpdateOne) SetNillableDeletedBy(s *string) *InternalPolicyHistoryUpdateOne { + if s != nil { + iphuo.SetDeletedBy(*s) + } + return iphuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (iphuo *InternalPolicyHistoryUpdateOne) ClearDeletedBy() *InternalPolicyHistoryUpdateOne { + iphuo.mutation.ClearDeletedBy() + return iphuo +} + +// SetTags sets the "tags" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetTags(s []string) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetTags(s) + return iphuo +} + +// AppendTags appends s to the "tags" field. +func (iphuo *InternalPolicyHistoryUpdateOne) AppendTags(s []string) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.AppendTags(s) + return iphuo +} + +// ClearTags clears the value of the "tags" field. +func (iphuo *InternalPolicyHistoryUpdateOne) ClearTags() *InternalPolicyHistoryUpdateOne { + iphuo.mutation.ClearTags() + return iphuo +} + +// SetName sets the "name" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetName(s string) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetName(s) + return iphuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (iphuo *InternalPolicyHistoryUpdateOne) SetNillableName(s *string) *InternalPolicyHistoryUpdateOne { + if s != nil { + iphuo.SetName(*s) + } + return iphuo +} + +// SetDescription sets the "description" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetDescription(s string) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetDescription(s) + return iphuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (iphuo *InternalPolicyHistoryUpdateOne) SetNillableDescription(s *string) *InternalPolicyHistoryUpdateOne { + if s != nil { + iphuo.SetDescription(*s) + } + return iphuo +} + +// SetStatus sets the "status" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetStatus(s string) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetStatus(s) + return iphuo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (iphuo *InternalPolicyHistoryUpdateOne) SetNillableStatus(s *string) *InternalPolicyHistoryUpdateOne { + if s != nil { + iphuo.SetStatus(*s) + } + return iphuo +} + +// ClearStatus clears the value of the "status" field. +func (iphuo *InternalPolicyHistoryUpdateOne) ClearStatus() *InternalPolicyHistoryUpdateOne { + iphuo.mutation.ClearStatus() + return iphuo +} + +// SetPolicyType sets the "policy_type" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetPolicyType(s string) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetPolicyType(s) + return iphuo +} + +// SetNillablePolicyType sets the "policy_type" field if the given value is not nil. +func (iphuo *InternalPolicyHistoryUpdateOne) SetNillablePolicyType(s *string) *InternalPolicyHistoryUpdateOne { + if s != nil { + iphuo.SetPolicyType(*s) + } + return iphuo +} + +// ClearPolicyType clears the value of the "policy_type" field. +func (iphuo *InternalPolicyHistoryUpdateOne) ClearPolicyType() *InternalPolicyHistoryUpdateOne { + iphuo.mutation.ClearPolicyType() + return iphuo +} + +// SetVersion sets the "version" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetVersion(s string) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetVersion(s) + return iphuo +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (iphuo *InternalPolicyHistoryUpdateOne) SetNillableVersion(s *string) *InternalPolicyHistoryUpdateOne { + if s != nil { + iphuo.SetVersion(*s) + } + return iphuo +} + +// ClearVersion clears the value of the "version" field. +func (iphuo *InternalPolicyHistoryUpdateOne) ClearVersion() *InternalPolicyHistoryUpdateOne { + iphuo.mutation.ClearVersion() + return iphuo +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetPurposeAndScope(s string) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetPurposeAndScope(s) + return iphuo +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (iphuo *InternalPolicyHistoryUpdateOne) SetNillablePurposeAndScope(s *string) *InternalPolicyHistoryUpdateOne { + if s != nil { + iphuo.SetPurposeAndScope(*s) + } + return iphuo +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (iphuo *InternalPolicyHistoryUpdateOne) ClearPurposeAndScope() *InternalPolicyHistoryUpdateOne { + iphuo.mutation.ClearPurposeAndScope() + return iphuo +} + +// SetBackground sets the "background" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetBackground(s string) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetBackground(s) + return iphuo +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (iphuo *InternalPolicyHistoryUpdateOne) SetNillableBackground(s *string) *InternalPolicyHistoryUpdateOne { + if s != nil { + iphuo.SetBackground(*s) + } + return iphuo +} + +// ClearBackground clears the value of the "background" field. +func (iphuo *InternalPolicyHistoryUpdateOne) ClearBackground() *InternalPolicyHistoryUpdateOne { + iphuo.mutation.ClearBackground() + return iphuo +} + +// SetDetails sets the "details" field. +func (iphuo *InternalPolicyHistoryUpdateOne) SetDetails(m map[string]interface{}) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.SetDetails(m) + return iphuo +} + +// ClearDetails clears the value of the "details" field. +func (iphuo *InternalPolicyHistoryUpdateOne) ClearDetails() *InternalPolicyHistoryUpdateOne { + iphuo.mutation.ClearDetails() + return iphuo +} + +// Mutation returns the InternalPolicyHistoryMutation object of the builder. +func (iphuo *InternalPolicyHistoryUpdateOne) Mutation() *InternalPolicyHistoryMutation { + return iphuo.mutation +} + +// Where appends a list predicates to the InternalPolicyHistoryUpdate builder. +func (iphuo *InternalPolicyHistoryUpdateOne) Where(ps ...predicate.InternalPolicyHistory) *InternalPolicyHistoryUpdateOne { + iphuo.mutation.Where(ps...) + return iphuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (iphuo *InternalPolicyHistoryUpdateOne) Select(field string, fields ...string) *InternalPolicyHistoryUpdateOne { + iphuo.fields = append([]string{field}, fields...) + return iphuo +} + +// Save executes the query and returns the updated InternalPolicyHistory entity. +func (iphuo *InternalPolicyHistoryUpdateOne) Save(ctx context.Context) (*InternalPolicyHistory, error) { + iphuo.defaults() + return withHooks(ctx, iphuo.sqlSave, iphuo.mutation, iphuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (iphuo *InternalPolicyHistoryUpdateOne) SaveX(ctx context.Context) *InternalPolicyHistory { + node, err := iphuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (iphuo *InternalPolicyHistoryUpdateOne) Exec(ctx context.Context) error { + _, err := iphuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (iphuo *InternalPolicyHistoryUpdateOne) ExecX(ctx context.Context) { + if err := iphuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (iphuo *InternalPolicyHistoryUpdateOne) defaults() { + if _, ok := iphuo.mutation.UpdatedAt(); !ok && !iphuo.mutation.UpdatedAtCleared() { + v := internalpolicyhistory.UpdateDefaultUpdatedAt() + iphuo.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (iphuo *InternalPolicyHistoryUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *InternalPolicyHistoryUpdateOne { + iphuo.modifiers = append(iphuo.modifiers, modifiers...) + return iphuo +} + +func (iphuo *InternalPolicyHistoryUpdateOne) sqlSave(ctx context.Context) (_node *InternalPolicyHistory, err error) { + _spec := sqlgraph.NewUpdateSpec(internalpolicyhistory.Table, internalpolicyhistory.Columns, sqlgraph.NewFieldSpec(internalpolicyhistory.FieldID, field.TypeString)) + id, ok := iphuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "InternalPolicyHistory.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := iphuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, internalpolicyhistory.FieldID) + for _, f := range fields { + if !internalpolicyhistory.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != internalpolicyhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := iphuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if iphuo.mutation.RefCleared() { + _spec.ClearField(internalpolicyhistory.FieldRef, field.TypeString) + } + if iphuo.mutation.CreatedAtCleared() { + _spec.ClearField(internalpolicyhistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := iphuo.mutation.UpdatedAt(); ok { + _spec.SetField(internalpolicyhistory.FieldUpdatedAt, field.TypeTime, value) + } + if iphuo.mutation.UpdatedAtCleared() { + _spec.ClearField(internalpolicyhistory.FieldUpdatedAt, field.TypeTime) + } + if iphuo.mutation.CreatedByCleared() { + _spec.ClearField(internalpolicyhistory.FieldCreatedBy, field.TypeString) + } + if value, ok := iphuo.mutation.UpdatedBy(); ok { + _spec.SetField(internalpolicyhistory.FieldUpdatedBy, field.TypeString, value) + } + if iphuo.mutation.UpdatedByCleared() { + _spec.ClearField(internalpolicyhistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := iphuo.mutation.DeletedAt(); ok { + _spec.SetField(internalpolicyhistory.FieldDeletedAt, field.TypeTime, value) + } + if iphuo.mutation.DeletedAtCleared() { + _spec.ClearField(internalpolicyhistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := iphuo.mutation.DeletedBy(); ok { + _spec.SetField(internalpolicyhistory.FieldDeletedBy, field.TypeString, value) + } + if iphuo.mutation.DeletedByCleared() { + _spec.ClearField(internalpolicyhistory.FieldDeletedBy, field.TypeString) + } + if value, ok := iphuo.mutation.Tags(); ok { + _spec.SetField(internalpolicyhistory.FieldTags, field.TypeJSON, value) + } + if value, ok := iphuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, internalpolicyhistory.FieldTags, value) + }) + } + if iphuo.mutation.TagsCleared() { + _spec.ClearField(internalpolicyhistory.FieldTags, field.TypeJSON) + } + if value, ok := iphuo.mutation.Name(); ok { + _spec.SetField(internalpolicyhistory.FieldName, field.TypeString, value) + } + if value, ok := iphuo.mutation.Description(); ok { + _spec.SetField(internalpolicyhistory.FieldDescription, field.TypeString, value) + } + if value, ok := iphuo.mutation.Status(); ok { + _spec.SetField(internalpolicyhistory.FieldStatus, field.TypeString, value) + } + if iphuo.mutation.StatusCleared() { + _spec.ClearField(internalpolicyhistory.FieldStatus, field.TypeString) + } + if value, ok := iphuo.mutation.PolicyType(); ok { + _spec.SetField(internalpolicyhistory.FieldPolicyType, field.TypeString, value) + } + if iphuo.mutation.PolicyTypeCleared() { + _spec.ClearField(internalpolicyhistory.FieldPolicyType, field.TypeString) + } + if value, ok := iphuo.mutation.Version(); ok { + _spec.SetField(internalpolicyhistory.FieldVersion, field.TypeString, value) + } + if iphuo.mutation.VersionCleared() { + _spec.ClearField(internalpolicyhistory.FieldVersion, field.TypeString) + } + if value, ok := iphuo.mutation.PurposeAndScope(); ok { + _spec.SetField(internalpolicyhistory.FieldPurposeAndScope, field.TypeString, value) + } + if iphuo.mutation.PurposeAndScopeCleared() { + _spec.ClearField(internalpolicyhistory.FieldPurposeAndScope, field.TypeString) + } + if value, ok := iphuo.mutation.Background(); ok { + _spec.SetField(internalpolicyhistory.FieldBackground, field.TypeString, value) + } + if iphuo.mutation.BackgroundCleared() { + _spec.ClearField(internalpolicyhistory.FieldBackground, field.TypeString) + } + if value, ok := iphuo.mutation.Details(); ok { + _spec.SetField(internalpolicyhistory.FieldDetails, field.TypeJSON, value) + } + if iphuo.mutation.DetailsCleared() { + _spec.ClearField(internalpolicyhistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = iphuo.schemaConfig.InternalPolicyHistory + ctx = internal.NewSchemaConfigContext(ctx, iphuo.schemaConfig) + _spec.AddModifiers(iphuo.modifiers...) + _node = &InternalPolicyHistory{config: iphuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, iphuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{internalpolicyhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + iphuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/migrate/schema.go b/internal/ent/generated/migrate/schema.go index be77c85a..9bee00e8 100644 --- a/internal/ent/generated/migrate/schema.go +++ b/internal/ent/generated/migrate/schema.go @@ -49,6 +49,66 @@ var ( }, }, } + // ActionPlansColumns holds the columns for the "action_plans" table. + ActionPlansColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString, Unique: true}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "due_date", Type: field.TypeTime, Nullable: true}, + {Name: "priority", Type: field.TypeString, Nullable: true}, + {Name: "source", Type: field.TypeString, Nullable: true}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // ActionPlansTable holds the schema information for the "action_plans" table. + ActionPlansTable = &schema.Table{ + Name: "action_plans", + Columns: ActionPlansColumns, + PrimaryKey: []*schema.Column{ActionPlansColumns[0]}, + } + // ActionPlanHistoryColumns holds the columns for the "action_plan_history" table. + ActionPlanHistoryColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "due_date", Type: field.TypeTime, Nullable: true}, + {Name: "priority", Type: field.TypeString, Nullable: true}, + {Name: "source", Type: field.TypeString, Nullable: true}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // ActionPlanHistoryTable holds the schema information for the "action_plan_history" table. + ActionPlanHistoryTable = &schema.Table{ + Name: "action_plan_history", + Columns: ActionPlanHistoryColumns, + PrimaryKey: []*schema.Column{ActionPlanHistoryColumns[0]}, + Indexes: []*schema.Index{ + { + Name: "actionplanhistory_history_time", + Unique: false, + Columns: []*schema.Column{ActionPlanHistoryColumns[1]}, + }, + }, + } // ContactsColumns holds the columns for the "contacts" table. ContactsColumns = []*schema.Column{ {Name: "id", Type: field.TypeString}, @@ -119,6 +179,169 @@ var ( }, }, } + // ControlsColumns holds the columns for the "controls" table. + ControlsColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString, Unique: true}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "control_type", Type: field.TypeString, Nullable: true}, + {Name: "version", Type: field.TypeString, Nullable: true}, + {Name: "control_number", Type: field.TypeString, Nullable: true}, + {Name: "family", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "class", Type: field.TypeString, Nullable: true}, + {Name: "source", Type: field.TypeString, Nullable: true}, + {Name: "satisfies", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "mapped_frameworks", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + {Name: "control_objective_controls", Type: field.TypeString, Nullable: true}, + {Name: "internal_policy_controls", Type: field.TypeString, Nullable: true}, + } + // ControlsTable holds the schema information for the "controls" table. + ControlsTable = &schema.Table{ + Name: "controls", + Columns: ControlsColumns, + PrimaryKey: []*schema.Column{ControlsColumns[0]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "controls_control_objectives_controls", + Columns: []*schema.Column{ControlsColumns[21]}, + RefColumns: []*schema.Column{ControlObjectivesColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "controls_internal_policies_controls", + Columns: []*schema.Column{ControlsColumns[22]}, + RefColumns: []*schema.Column{InternalPoliciesColumns[0]}, + OnDelete: schema.SetNull, + }, + }, + } + // ControlHistoryColumns holds the columns for the "control_history" table. + ControlHistoryColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "control_type", Type: field.TypeString, Nullable: true}, + {Name: "version", Type: field.TypeString, Nullable: true}, + {Name: "control_number", Type: field.TypeString, Nullable: true}, + {Name: "family", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "class", Type: field.TypeString, Nullable: true}, + {Name: "source", Type: field.TypeString, Nullable: true}, + {Name: "satisfies", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "mapped_frameworks", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // ControlHistoryTable holds the schema information for the "control_history" table. + ControlHistoryTable = &schema.Table{ + Name: "control_history", + Columns: ControlHistoryColumns, + PrimaryKey: []*schema.Column{ControlHistoryColumns[0]}, + Indexes: []*schema.Index{ + { + Name: "controlhistory_history_time", + Unique: false, + Columns: []*schema.Column{ControlHistoryColumns[1]}, + }, + }, + } + // ControlObjectivesColumns holds the columns for the "control_objectives" table. + ControlObjectivesColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString, Unique: true}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "control_objective_type", Type: field.TypeString, Nullable: true}, + {Name: "version", Type: field.TypeString, Nullable: true}, + {Name: "control_number", Type: field.TypeString, Nullable: true}, + {Name: "family", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "class", Type: field.TypeString, Nullable: true}, + {Name: "source", Type: field.TypeString, Nullable: true}, + {Name: "mapped_frameworks", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + {Name: "control_controlobjectives", Type: field.TypeString, Nullable: true}, + } + // ControlObjectivesTable holds the schema information for the "control_objectives" table. + ControlObjectivesTable = &schema.Table{ + Name: "control_objectives", + Columns: ControlObjectivesColumns, + PrimaryKey: []*schema.Column{ControlObjectivesColumns[0]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "control_objectives_controls_controlobjectives", + Columns: []*schema.Column{ControlObjectivesColumns[20]}, + RefColumns: []*schema.Column{ControlsColumns[0]}, + OnDelete: schema.SetNull, + }, + }, + } + // ControlObjectiveHistoryColumns holds the columns for the "control_objective_history" table. + ControlObjectiveHistoryColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "control_objective_type", Type: field.TypeString, Nullable: true}, + {Name: "version", Type: field.TypeString, Nullable: true}, + {Name: "control_number", Type: field.TypeString, Nullable: true}, + {Name: "family", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "class", Type: field.TypeString, Nullable: true}, + {Name: "source", Type: field.TypeString, Nullable: true}, + {Name: "mapped_frameworks", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // ControlObjectiveHistoryTable holds the schema information for the "control_objective_history" table. + ControlObjectiveHistoryTable = &schema.Table{ + Name: "control_objective_history", + Columns: ControlObjectiveHistoryColumns, + PrimaryKey: []*schema.Column{ControlObjectiveHistoryColumns[0]}, + Indexes: []*schema.Index{ + { + Name: "controlobjectivehistory_history_time", + Unique: false, + Columns: []*schema.Column{ControlObjectiveHistoryColumns[1]}, + }, + }, + } // DocumentDataColumns holds the columns for the "document_data" table. DocumentDataColumns = []*schema.Column{ {Name: "id", Type: field.TypeString}, @@ -1173,6 +1396,68 @@ var ( }, }, } + // InternalPoliciesColumns holds the columns for the "internal_policies" table. + InternalPoliciesColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString, Unique: true}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "policy_type", Type: field.TypeString, Nullable: true}, + {Name: "version", Type: field.TypeString, Nullable: true}, + {Name: "purpose_and_scope", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "background", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // InternalPoliciesTable holds the schema information for the "internal_policies" table. + InternalPoliciesTable = &schema.Table{ + Name: "internal_policies", + Columns: InternalPoliciesColumns, + PrimaryKey: []*schema.Column{InternalPoliciesColumns[0]}, + } + // InternalPolicyHistoryColumns holds the columns for the "internal_policy_history" table. + InternalPolicyHistoryColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "policy_type", Type: field.TypeString, Nullable: true}, + {Name: "version", Type: field.TypeString, Nullable: true}, + {Name: "purpose_and_scope", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "background", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // InternalPolicyHistoryTable holds the schema information for the "internal_policy_history" table. + InternalPolicyHistoryTable = &schema.Table{ + Name: "internal_policy_history", + Columns: InternalPolicyHistoryColumns, + PrimaryKey: []*schema.Column{InternalPolicyHistoryColumns[0]}, + Indexes: []*schema.Index{ + { + Name: "internalpolicyhistory_history_time", + Unique: false, + Columns: []*schema.Column{InternalPolicyHistoryColumns[1]}, + }, + }, + } // InvitesColumns holds the columns for the "invites" table. InvitesColumns = []*schema.Column{ {Name: "id", Type: field.TypeString}, @@ -1217,6 +1502,60 @@ var ( }, }, } + // NarrativesColumns holds the columns for the "narratives" table. + NarrativesColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString, Unique: true}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "satisfies", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // NarrativesTable holds the schema information for the "narratives" table. + NarrativesTable = &schema.Table{ + Name: "narratives", + Columns: NarrativesColumns, + PrimaryKey: []*schema.Column{NarrativesColumns[0]}, + } + // NarrativeHistoryColumns holds the columns for the "narrative_history" table. + NarrativeHistoryColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "satisfies", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // NarrativeHistoryTable holds the schema information for the "narrative_history" table. + NarrativeHistoryTable = &schema.Table{ + Name: "narrative_history", + Columns: NarrativeHistoryColumns, + PrimaryKey: []*schema.Column{NarrativeHistoryColumns[0]}, + Indexes: []*schema.Index{ + { + Name: "narrativehistory_history_time", + Unique: false, + Columns: []*schema.Column{NarrativeHistoryColumns[1]}, + }, + }, + } // NotesColumns holds the columns for the "notes" table. NotesColumns = []*schema.Column{ {Name: "id", Type: field.TypeString}, @@ -1682,6 +2021,321 @@ var ( }, }, } + // ProceduresColumns holds the columns for the "procedures" table. + ProceduresColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString, Unique: true}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "procedure_type", Type: field.TypeString, Nullable: true}, + {Name: "version", Type: field.TypeString, Nullable: true}, + {Name: "purpose_and_scope", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "background", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "satisfies", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + {Name: "control_objective_procedures", Type: field.TypeString, Nullable: true}, + {Name: "standard_procedures", Type: field.TypeString, Nullable: true}, + } + // ProceduresTable holds the schema information for the "procedures" table. + ProceduresTable = &schema.Table{ + Name: "procedures", + Columns: ProceduresColumns, + PrimaryKey: []*schema.Column{ProceduresColumns[0]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "procedures_control_objectives_procedures", + Columns: []*schema.Column{ProceduresColumns[18]}, + RefColumns: []*schema.Column{ControlObjectivesColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "procedures_standards_procedures", + Columns: []*schema.Column{ProceduresColumns[19]}, + RefColumns: []*schema.Column{StandardsColumns[0]}, + OnDelete: schema.SetNull, + }, + }, + } + // ProcedureHistoryColumns holds the columns for the "procedure_history" table. + ProcedureHistoryColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "procedure_type", Type: field.TypeString, Nullable: true}, + {Name: "version", Type: field.TypeString, Nullable: true}, + {Name: "purpose_and_scope", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "background", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "satisfies", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // ProcedureHistoryTable holds the schema information for the "procedure_history" table. + ProcedureHistoryTable = &schema.Table{ + Name: "procedure_history", + Columns: ProcedureHistoryColumns, + PrimaryKey: []*schema.Column{ProcedureHistoryColumns[0]}, + Indexes: []*schema.Index{ + { + Name: "procedurehistory_history_time", + Unique: false, + Columns: []*schema.Column{ProcedureHistoryColumns[1]}, + }, + }, + } + // RisksColumns holds the columns for the "risks" table. + RisksColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString, Unique: true}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "risk_type", Type: field.TypeString, Nullable: true}, + {Name: "business_costs", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "impact", Type: field.TypeEnum, Nullable: true, Enums: []string{"LOW", "MODERATE", "HIGH"}}, + {Name: "likelihood", Type: field.TypeEnum, Nullable: true, Enums: []string{"UNLIKELY", "LIKELY", "HIGHLY_LIKELY"}}, + {Name: "mitigation", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "satisfies", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + {Name: "control_objective_risks", Type: field.TypeString, Nullable: true}, + } + // RisksTable holds the schema information for the "risks" table. + RisksTable = &schema.Table{ + Name: "risks", + Columns: RisksColumns, + PrimaryKey: []*schema.Column{RisksColumns[0]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "risks_control_objectives_risks", + Columns: []*schema.Column{RisksColumns[19]}, + RefColumns: []*schema.Column{ControlObjectivesColumns[0]}, + OnDelete: schema.SetNull, + }, + }, + } + // RiskHistoryColumns holds the columns for the "risk_history" table. + RiskHistoryColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "risk_type", Type: field.TypeString, Nullable: true}, + {Name: "business_costs", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "impact", Type: field.TypeEnum, Nullable: true, Enums: []string{"LOW", "MODERATE", "HIGH"}}, + {Name: "likelihood", Type: field.TypeEnum, Nullable: true, Enums: []string{"UNLIKELY", "LIKELY", "HIGHLY_LIKELY"}}, + {Name: "mitigation", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "satisfies", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // RiskHistoryTable holds the schema information for the "risk_history" table. + RiskHistoryTable = &schema.Table{ + Name: "risk_history", + Columns: RiskHistoryColumns, + PrimaryKey: []*schema.Column{RiskHistoryColumns[0]}, + Indexes: []*schema.Index{ + { + Name: "riskhistory_history_time", + Unique: false, + Columns: []*schema.Column{RiskHistoryColumns[1]}, + }, + }, + } + // StandardsColumns holds the columns for the "standards" table. + StandardsColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString, Unique: true}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "family", Type: field.TypeString, Nullable: true}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "standard_type", Type: field.TypeString, Nullable: true}, + {Name: "version", Type: field.TypeString, Nullable: true}, + {Name: "purpose_and_scope", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "background", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "satisfies", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // StandardsTable holds the schema information for the "standards" table. + StandardsTable = &schema.Table{ + Name: "standards", + Columns: StandardsColumns, + PrimaryKey: []*schema.Column{StandardsColumns[0]}, + } + // StandardHistoryColumns holds the columns for the "standard_history" table. + StandardHistoryColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "family", Type: field.TypeString, Nullable: true}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "standard_type", Type: field.TypeString, Nullable: true}, + {Name: "version", Type: field.TypeString, Nullable: true}, + {Name: "purpose_and_scope", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "background", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "satisfies", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // StandardHistoryTable holds the schema information for the "standard_history" table. + StandardHistoryTable = &schema.Table{ + Name: "standard_history", + Columns: StandardHistoryColumns, + PrimaryKey: []*schema.Column{StandardHistoryColumns[0]}, + Indexes: []*schema.Index{ + { + Name: "standardhistory_history_time", + Unique: false, + Columns: []*schema.Column{StandardHistoryColumns[1]}, + }, + }, + } + // SubcontrolsColumns holds the columns for the "subcontrols" table. + SubcontrolsColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString, Unique: true}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "subcontrol_type", Type: field.TypeString, Nullable: true}, + {Name: "version", Type: field.TypeString, Nullable: true}, + {Name: "subcontrol_number", Type: field.TypeString, Nullable: true}, + {Name: "family", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "class", Type: field.TypeString, Nullable: true}, + {Name: "source", Type: field.TypeString, Nullable: true}, + {Name: "mapped_frameworks", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "implementation_evidence", Type: field.TypeString, Nullable: true}, + {Name: "implementation_status", Type: field.TypeString, Nullable: true}, + {Name: "implementation_date", Type: field.TypeTime, Nullable: true}, + {Name: "implementation_verification", Type: field.TypeString, Nullable: true}, + {Name: "implementation_verification_date", Type: field.TypeTime, Nullable: true}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + {Name: "control_objective_subcontrols", Type: field.TypeString, Nullable: true}, + {Name: "note_subcontrols", Type: field.TypeString, Nullable: true}, + } + // SubcontrolsTable holds the schema information for the "subcontrols" table. + SubcontrolsTable = &schema.Table{ + Name: "subcontrols", + Columns: SubcontrolsColumns, + PrimaryKey: []*schema.Column{SubcontrolsColumns[0]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "subcontrols_control_objectives_subcontrols", + Columns: []*schema.Column{SubcontrolsColumns[25]}, + RefColumns: []*schema.Column{ControlObjectivesColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "subcontrols_notes_subcontrols", + Columns: []*schema.Column{SubcontrolsColumns[26]}, + RefColumns: []*schema.Column{NotesColumns[0]}, + OnDelete: schema.SetNull, + }, + }, + } + // SubcontrolHistoryColumns holds the columns for the "subcontrol_history" table. + SubcontrolHistoryColumns = []*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: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "mapping_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "status", Type: field.TypeString, Nullable: true}, + {Name: "subcontrol_type", Type: field.TypeString, Nullable: true}, + {Name: "version", Type: field.TypeString, Nullable: true}, + {Name: "subcontrol_number", Type: field.TypeString, Nullable: true}, + {Name: "family", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "class", Type: field.TypeString, Nullable: true}, + {Name: "source", Type: field.TypeString, Nullable: true}, + {Name: "mapped_frameworks", Type: field.TypeString, Nullable: true, Size: 2147483647}, + {Name: "implementation_evidence", Type: field.TypeString, Nullable: true}, + {Name: "implementation_status", Type: field.TypeString, Nullable: true}, + {Name: "implementation_date", Type: field.TypeTime, Nullable: true}, + {Name: "implementation_verification", Type: field.TypeString, Nullable: true}, + {Name: "implementation_verification_date", Type: field.TypeTime, Nullable: true}, + {Name: "details", Type: field.TypeJSON, Nullable: true}, + } + // SubcontrolHistoryTable holds the schema information for the "subcontrol_history" table. + SubcontrolHistoryTable = &schema.Table{ + Name: "subcontrol_history", + Columns: SubcontrolHistoryColumns, + PrimaryKey: []*schema.Column{SubcontrolHistoryColumns[0]}, + Indexes: []*schema.Index{ + { + Name: "subcontrolhistory_history_time", + Unique: false, + Columns: []*schema.Column{SubcontrolHistoryColumns[1]}, + }, + }, + } // SubscribersColumns holds the columns for the "subscribers" table. SubscribersColumns = []*schema.Column{ {Name: "id", Type: field.TypeString}, @@ -2166,6 +2820,156 @@ var ( }, }, } + // ControlProceduresColumns holds the columns for the "control_procedures" table. + ControlProceduresColumns = []*schema.Column{ + {Name: "control_id", Type: field.TypeString}, + {Name: "procedure_id", Type: field.TypeString}, + } + // ControlProceduresTable holds the schema information for the "control_procedures" table. + ControlProceduresTable = &schema.Table{ + Name: "control_procedures", + Columns: ControlProceduresColumns, + PrimaryKey: []*schema.Column{ControlProceduresColumns[0], ControlProceduresColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "control_procedures_control_id", + Columns: []*schema.Column{ControlProceduresColumns[0]}, + RefColumns: []*schema.Column{ControlsColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "control_procedures_procedure_id", + Columns: []*schema.Column{ControlProceduresColumns[1]}, + RefColumns: []*schema.Column{ProceduresColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // ControlSubcontrolsColumns holds the columns for the "control_subcontrols" table. + ControlSubcontrolsColumns = []*schema.Column{ + {Name: "control_id", Type: field.TypeString}, + {Name: "subcontrol_id", Type: field.TypeString}, + } + // ControlSubcontrolsTable holds the schema information for the "control_subcontrols" table. + ControlSubcontrolsTable = &schema.Table{ + Name: "control_subcontrols", + Columns: ControlSubcontrolsColumns, + PrimaryKey: []*schema.Column{ControlSubcontrolsColumns[0], ControlSubcontrolsColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "control_subcontrols_control_id", + Columns: []*schema.Column{ControlSubcontrolsColumns[0]}, + RefColumns: []*schema.Column{ControlsColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "control_subcontrols_subcontrol_id", + Columns: []*schema.Column{ControlSubcontrolsColumns[1]}, + RefColumns: []*schema.Column{SubcontrolsColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // ControlNarrativesColumns holds the columns for the "control_narratives" table. + ControlNarrativesColumns = []*schema.Column{ + {Name: "control_id", Type: field.TypeString}, + {Name: "narrative_id", Type: field.TypeString}, + } + // ControlNarrativesTable holds the schema information for the "control_narratives" table. + ControlNarrativesTable = &schema.Table{ + Name: "control_narratives", + Columns: ControlNarrativesColumns, + PrimaryKey: []*schema.Column{ControlNarrativesColumns[0], ControlNarrativesColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "control_narratives_control_id", + Columns: []*schema.Column{ControlNarrativesColumns[0]}, + RefColumns: []*schema.Column{ControlsColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "control_narratives_narrative_id", + Columns: []*schema.Column{ControlNarrativesColumns[1]}, + RefColumns: []*schema.Column{NarrativesColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // ControlRisksColumns holds the columns for the "control_risks" table. + ControlRisksColumns = []*schema.Column{ + {Name: "control_id", Type: field.TypeString}, + {Name: "risk_id", Type: field.TypeString}, + } + // ControlRisksTable holds the schema information for the "control_risks" table. + ControlRisksTable = &schema.Table{ + Name: "control_risks", + Columns: ControlRisksColumns, + PrimaryKey: []*schema.Column{ControlRisksColumns[0], ControlRisksColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "control_risks_control_id", + Columns: []*schema.Column{ControlRisksColumns[0]}, + RefColumns: []*schema.Column{ControlsColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "control_risks_risk_id", + Columns: []*schema.Column{ControlRisksColumns[1]}, + RefColumns: []*schema.Column{RisksColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // ControlActionplansColumns holds the columns for the "control_actionplans" table. + ControlActionplansColumns = []*schema.Column{ + {Name: "control_id", Type: field.TypeString}, + {Name: "action_plan_id", Type: field.TypeString}, + } + // ControlActionplansTable holds the schema information for the "control_actionplans" table. + ControlActionplansTable = &schema.Table{ + Name: "control_actionplans", + Columns: ControlActionplansColumns, + PrimaryKey: []*schema.Column{ControlActionplansColumns[0], ControlActionplansColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "control_actionplans_control_id", + Columns: []*schema.Column{ControlActionplansColumns[0]}, + RefColumns: []*schema.Column{ControlsColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "control_actionplans_action_plan_id", + Columns: []*schema.Column{ControlActionplansColumns[1]}, + RefColumns: []*schema.Column{ActionPlansColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // ControlObjectiveNarrativesColumns holds the columns for the "control_objective_narratives" table. + ControlObjectiveNarrativesColumns = []*schema.Column{ + {Name: "control_objective_id", Type: field.TypeString}, + {Name: "narrative_id", Type: field.TypeString}, + } + // ControlObjectiveNarrativesTable holds the schema information for the "control_objective_narratives" table. + ControlObjectiveNarrativesTable = &schema.Table{ + Name: "control_objective_narratives", + Columns: ControlObjectiveNarrativesColumns, + PrimaryKey: []*schema.Column{ControlObjectiveNarrativesColumns[0], ControlObjectiveNarrativesColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "control_objective_narratives_control_objective_id", + Columns: []*schema.Column{ControlObjectiveNarrativesColumns[0]}, + RefColumns: []*schema.Column{ControlObjectivesColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "control_objective_narratives_narrative_id", + Columns: []*schema.Column{ControlObjectiveNarrativesColumns[1]}, + RefColumns: []*schema.Column{NarrativesColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } // DocumentDataFilesColumns holds the columns for the "document_data_files" table. DocumentDataFilesColumns = []*schema.Column{ {Name: "document_data_id", Type: field.TypeString}, @@ -2591,6 +3395,81 @@ var ( }, }, } + // InternalPolicyControlobjectivesColumns holds the columns for the "internal_policy_controlobjectives" table. + InternalPolicyControlobjectivesColumns = []*schema.Column{ + {Name: "internal_policy_id", Type: field.TypeString}, + {Name: "control_objective_id", Type: field.TypeString}, + } + // InternalPolicyControlobjectivesTable holds the schema information for the "internal_policy_controlobjectives" table. + InternalPolicyControlobjectivesTable = &schema.Table{ + Name: "internal_policy_controlobjectives", + Columns: InternalPolicyControlobjectivesColumns, + PrimaryKey: []*schema.Column{InternalPolicyControlobjectivesColumns[0], InternalPolicyControlobjectivesColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "internal_policy_controlobjectives_internal_policy_id", + Columns: []*schema.Column{InternalPolicyControlobjectivesColumns[0]}, + RefColumns: []*schema.Column{InternalPoliciesColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "internal_policy_controlobjectives_control_objective_id", + Columns: []*schema.Column{InternalPolicyControlobjectivesColumns[1]}, + RefColumns: []*schema.Column{ControlObjectivesColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // InternalPolicyProceduresColumns holds the columns for the "internal_policy_procedures" table. + InternalPolicyProceduresColumns = []*schema.Column{ + {Name: "internal_policy_id", Type: field.TypeString}, + {Name: "procedure_id", Type: field.TypeString}, + } + // InternalPolicyProceduresTable holds the schema information for the "internal_policy_procedures" table. + InternalPolicyProceduresTable = &schema.Table{ + Name: "internal_policy_procedures", + Columns: InternalPolicyProceduresColumns, + PrimaryKey: []*schema.Column{InternalPolicyProceduresColumns[0], InternalPolicyProceduresColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "internal_policy_procedures_internal_policy_id", + Columns: []*schema.Column{InternalPolicyProceduresColumns[0]}, + RefColumns: []*schema.Column{InternalPoliciesColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "internal_policy_procedures_procedure_id", + Columns: []*schema.Column{InternalPolicyProceduresColumns[1]}, + RefColumns: []*schema.Column{ProceduresColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // InternalPolicyNarrativesColumns holds the columns for the "internal_policy_narratives" table. + InternalPolicyNarrativesColumns = []*schema.Column{ + {Name: "internal_policy_id", Type: field.TypeString}, + {Name: "narrative_id", Type: field.TypeString}, + } + // InternalPolicyNarrativesTable holds the schema information for the "internal_policy_narratives" table. + InternalPolicyNarrativesTable = &schema.Table{ + Name: "internal_policy_narratives", + Columns: InternalPolicyNarrativesColumns, + PrimaryKey: []*schema.Column{InternalPolicyNarrativesColumns[0], InternalPolicyNarrativesColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "internal_policy_narratives_internal_policy_id", + Columns: []*schema.Column{InternalPolicyNarrativesColumns[0]}, + RefColumns: []*schema.Column{InternalPoliciesColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "internal_policy_narratives_narrative_id", + Columns: []*schema.Column{InternalPolicyNarrativesColumns[1]}, + RefColumns: []*schema.Column{NarrativesColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } // InviteEventsColumns holds the columns for the "invite_events" table. InviteEventsColumns = []*schema.Column{ {Name: "invite_id", Type: field.TypeString}, @@ -2816,6 +3695,156 @@ var ( }, }, } + // ProcedureNarrativesColumns holds the columns for the "procedure_narratives" table. + ProcedureNarrativesColumns = []*schema.Column{ + {Name: "procedure_id", Type: field.TypeString}, + {Name: "narrative_id", Type: field.TypeString}, + } + // ProcedureNarrativesTable holds the schema information for the "procedure_narratives" table. + ProcedureNarrativesTable = &schema.Table{ + Name: "procedure_narratives", + Columns: ProcedureNarrativesColumns, + PrimaryKey: []*schema.Column{ProcedureNarrativesColumns[0], ProcedureNarrativesColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "procedure_narratives_procedure_id", + Columns: []*schema.Column{ProcedureNarrativesColumns[0]}, + RefColumns: []*schema.Column{ProceduresColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "procedure_narratives_narrative_id", + Columns: []*schema.Column{ProcedureNarrativesColumns[1]}, + RefColumns: []*schema.Column{NarrativesColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // ProcedureRisksColumns holds the columns for the "procedure_risks" table. + ProcedureRisksColumns = []*schema.Column{ + {Name: "procedure_id", Type: field.TypeString}, + {Name: "risk_id", Type: field.TypeString}, + } + // ProcedureRisksTable holds the schema information for the "procedure_risks" table. + ProcedureRisksTable = &schema.Table{ + Name: "procedure_risks", + Columns: ProcedureRisksColumns, + PrimaryKey: []*schema.Column{ProcedureRisksColumns[0], ProcedureRisksColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "procedure_risks_procedure_id", + Columns: []*schema.Column{ProcedureRisksColumns[0]}, + RefColumns: []*schema.Column{ProceduresColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "procedure_risks_risk_id", + Columns: []*schema.Column{ProcedureRisksColumns[1]}, + RefColumns: []*schema.Column{RisksColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // RiskActionplansColumns holds the columns for the "risk_actionplans" table. + RiskActionplansColumns = []*schema.Column{ + {Name: "risk_id", Type: field.TypeString}, + {Name: "action_plan_id", Type: field.TypeString}, + } + // RiskActionplansTable holds the schema information for the "risk_actionplans" table. + RiskActionplansTable = &schema.Table{ + Name: "risk_actionplans", + Columns: RiskActionplansColumns, + PrimaryKey: []*schema.Column{RiskActionplansColumns[0], RiskActionplansColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "risk_actionplans_risk_id", + Columns: []*schema.Column{RiskActionplansColumns[0]}, + RefColumns: []*schema.Column{RisksColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "risk_actionplans_action_plan_id", + Columns: []*schema.Column{RiskActionplansColumns[1]}, + RefColumns: []*schema.Column{ActionPlansColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // StandardControlobjectivesColumns holds the columns for the "standard_controlobjectives" table. + StandardControlobjectivesColumns = []*schema.Column{ + {Name: "standard_id", Type: field.TypeString}, + {Name: "control_objective_id", Type: field.TypeString}, + } + // StandardControlobjectivesTable holds the schema information for the "standard_controlobjectives" table. + StandardControlobjectivesTable = &schema.Table{ + Name: "standard_controlobjectives", + Columns: StandardControlobjectivesColumns, + PrimaryKey: []*schema.Column{StandardControlobjectivesColumns[0], StandardControlobjectivesColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "standard_controlobjectives_standard_id", + Columns: []*schema.Column{StandardControlobjectivesColumns[0]}, + RefColumns: []*schema.Column{StandardsColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "standard_controlobjectives_control_objective_id", + Columns: []*schema.Column{StandardControlobjectivesColumns[1]}, + RefColumns: []*schema.Column{ControlObjectivesColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // StandardControlsColumns holds the columns for the "standard_controls" table. + StandardControlsColumns = []*schema.Column{ + {Name: "standard_id", Type: field.TypeString}, + {Name: "control_id", Type: field.TypeString}, + } + // StandardControlsTable holds the schema information for the "standard_controls" table. + StandardControlsTable = &schema.Table{ + Name: "standard_controls", + Columns: StandardControlsColumns, + PrimaryKey: []*schema.Column{StandardControlsColumns[0], StandardControlsColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "standard_controls_standard_id", + Columns: []*schema.Column{StandardControlsColumns[0]}, + RefColumns: []*schema.Column{StandardsColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "standard_controls_control_id", + Columns: []*schema.Column{StandardControlsColumns[1]}, + RefColumns: []*schema.Column{ControlsColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // StandardActionplansColumns holds the columns for the "standard_actionplans" table. + StandardActionplansColumns = []*schema.Column{ + {Name: "standard_id", Type: field.TypeString}, + {Name: "action_plan_id", Type: field.TypeString}, + } + // StandardActionplansTable holds the schema information for the "standard_actionplans" table. + StandardActionplansTable = &schema.Table{ + Name: "standard_actionplans", + Columns: StandardActionplansColumns, + PrimaryKey: []*schema.Column{StandardActionplansColumns[0], StandardActionplansColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "standard_actionplans_standard_id", + Columns: []*schema.Column{StandardActionplansColumns[0]}, + RefColumns: []*schema.Column{StandardsColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "standard_actionplans_action_plan_id", + Columns: []*schema.Column{StandardActionplansColumns[1]}, + RefColumns: []*schema.Column{ActionPlansColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } // SubscriberEventsColumns holds the columns for the "subscriber_events" table. SubscriberEventsColumns = []*schema.Column{ {Name: "subscriber_id", Type: field.TypeString}, @@ -2916,6 +3945,56 @@ var ( }, }, } + // UserActionplansColumns holds the columns for the "user_actionplans" table. + UserActionplansColumns = []*schema.Column{ + {Name: "user_id", Type: field.TypeString}, + {Name: "action_plan_id", Type: field.TypeString}, + } + // UserActionplansTable holds the schema information for the "user_actionplans" table. + UserActionplansTable = &schema.Table{ + Name: "user_actionplans", + Columns: UserActionplansColumns, + PrimaryKey: []*schema.Column{UserActionplansColumns[0], UserActionplansColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "user_actionplans_user_id", + Columns: []*schema.Column{UserActionplansColumns[0]}, + RefColumns: []*schema.Column{UsersColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "user_actionplans_action_plan_id", + Columns: []*schema.Column{UserActionplansColumns[1]}, + RefColumns: []*schema.Column{ActionPlansColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // UserSubcontrolsColumns holds the columns for the "user_subcontrols" table. + UserSubcontrolsColumns = []*schema.Column{ + {Name: "user_id", Type: field.TypeString}, + {Name: "subcontrol_id", Type: field.TypeString}, + } + // UserSubcontrolsTable holds the schema information for the "user_subcontrols" table. + UserSubcontrolsTable = &schema.Table{ + Name: "user_subcontrols", + Columns: UserSubcontrolsColumns, + PrimaryKey: []*schema.Column{UserSubcontrolsColumns[0], UserSubcontrolsColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "user_subcontrols_user_id", + Columns: []*schema.Column{UserSubcontrolsColumns[0]}, + RefColumns: []*schema.Column{UsersColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "user_subcontrols_subcontrol_id", + Columns: []*schema.Column{UserSubcontrolsColumns[1]}, + RefColumns: []*schema.Column{SubcontrolsColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } // UserSettingFilesColumns holds the columns for the "user_setting_files" table. UserSettingFilesColumns = []*schema.Column{ {Name: "user_setting_id", Type: field.TypeString}, @@ -2969,8 +4048,14 @@ var ( // Tables holds all the tables in the schema. Tables = []*schema.Table{ APITokensTable, + ActionPlansTable, + ActionPlanHistoryTable, ContactsTable, ContactHistoryTable, + ControlsTable, + ControlHistoryTable, + ControlObjectivesTable, + ControlObjectiveHistoryTable, DocumentDataTable, DocumentDataHistoryTable, EmailVerificationTokensTable, @@ -3000,7 +4085,11 @@ var ( HushHistoryTable, IntegrationsTable, IntegrationHistoryTable, + InternalPoliciesTable, + InternalPolicyHistoryTable, InvitesTable, + NarrativesTable, + NarrativeHistoryTable, NotesTable, NoteHistoryTable, OauthProvidersTable, @@ -3014,6 +4103,14 @@ var ( OrganizationSettingHistoryTable, PasswordResetTokensTable, PersonalAccessTokensTable, + ProceduresTable, + ProcedureHistoryTable, + RisksTable, + RiskHistoryTable, + StandardsTable, + StandardHistoryTable, + SubcontrolsTable, + SubcontrolHistoryTable, SubscribersTable, TfaSettingsTable, TemplatesTable, @@ -3026,6 +4123,12 @@ var ( WebhooksTable, WebhookHistoryTable, ContactFilesTable, + ControlProceduresTable, + ControlSubcontrolsTable, + ControlNarrativesTable, + ControlRisksTable, + ControlActionplansTable, + ControlObjectiveNarrativesTable, DocumentDataFilesTable, EntitlementEventsTable, EntitlementPlanEventsTable, @@ -3043,6 +4146,9 @@ var ( IntegrationOauth2tokensTable, IntegrationEventsTable, IntegrationWebhooksTable, + InternalPolicyControlobjectivesTable, + InternalPolicyProceduresTable, + InternalPolicyNarrativesTable, InviteEventsTable, OhAuthTooTokenEventsTable, OrgMembershipEventsTable, @@ -3052,10 +4158,18 @@ var ( OrganizationFilesTable, OrganizationSettingFilesTable, PersonalAccessTokenEventsTable, + ProcedureNarrativesTable, + ProcedureRisksTable, + RiskActionplansTable, + StandardControlobjectivesTable, + StandardControlsTable, + StandardActionplansTable, SubscriberEventsTable, TemplateFilesTable, UserFilesTable, UserEventsTable, + UserActionplansTable, + UserSubcontrolsTable, UserSettingFilesTable, WebhookEventsTable, } @@ -3063,10 +4177,22 @@ var ( func init() { APITokensTable.ForeignKeys[0].RefTable = OrganizationsTable + ActionPlanHistoryTable.Annotation = &entsql.Annotation{ + Table: "action_plan_history", + } ContactsTable.ForeignKeys[0].RefTable = OrganizationsTable ContactHistoryTable.Annotation = &entsql.Annotation{ Table: "contact_history", } + ControlsTable.ForeignKeys[0].RefTable = ControlObjectivesTable + ControlsTable.ForeignKeys[1].RefTable = InternalPoliciesTable + ControlHistoryTable.Annotation = &entsql.Annotation{ + Table: "control_history", + } + ControlObjectivesTable.ForeignKeys[0].RefTable = ControlsTable + ControlObjectiveHistoryTable.Annotation = &entsql.Annotation{ + Table: "control_objective_history", + } DocumentDataTable.ForeignKeys[0].RefTable = OrganizationsTable DocumentDataTable.ForeignKeys[1].RefTable = TemplatesTable DocumentDataHistoryTable.Annotation = &entsql.Annotation{ @@ -3130,7 +4256,13 @@ func init() { IntegrationHistoryTable.Annotation = &entsql.Annotation{ Table: "integration_history", } + InternalPolicyHistoryTable.Annotation = &entsql.Annotation{ + Table: "internal_policy_history", + } InvitesTable.ForeignKeys[0].RefTable = OrganizationsTable + NarrativeHistoryTable.Annotation = &entsql.Annotation{ + Table: "narrative_history", + } NotesTable.ForeignKeys[0].RefTable = EntitiesTable NotesTable.ForeignKeys[1].RefTable = OrganizationsTable NoteHistoryTable.Annotation = &entsql.Annotation{ @@ -3155,6 +4287,23 @@ func init() { } PasswordResetTokensTable.ForeignKeys[0].RefTable = UsersTable PersonalAccessTokensTable.ForeignKeys[0].RefTable = UsersTable + ProceduresTable.ForeignKeys[0].RefTable = ControlObjectivesTable + ProceduresTable.ForeignKeys[1].RefTable = StandardsTable + ProcedureHistoryTable.Annotation = &entsql.Annotation{ + Table: "procedure_history", + } + RisksTable.ForeignKeys[0].RefTable = ControlObjectivesTable + RiskHistoryTable.Annotation = &entsql.Annotation{ + Table: "risk_history", + } + StandardHistoryTable.Annotation = &entsql.Annotation{ + Table: "standard_history", + } + SubcontrolsTable.ForeignKeys[0].RefTable = ControlObjectivesTable + SubcontrolsTable.ForeignKeys[1].RefTable = NotesTable + SubcontrolHistoryTable.Annotation = &entsql.Annotation{ + Table: "subcontrol_history", + } SubscribersTable.ForeignKeys[0].RefTable = OrganizationsTable TfaSettingsTable.ForeignKeys[0].RefTable = UsersTable TemplatesTable.ForeignKeys[0].RefTable = OrganizationsTable @@ -3177,6 +4326,18 @@ func init() { } ContactFilesTable.ForeignKeys[0].RefTable = ContactsTable ContactFilesTable.ForeignKeys[1].RefTable = FilesTable + ControlProceduresTable.ForeignKeys[0].RefTable = ControlsTable + ControlProceduresTable.ForeignKeys[1].RefTable = ProceduresTable + ControlSubcontrolsTable.ForeignKeys[0].RefTable = ControlsTable + ControlSubcontrolsTable.ForeignKeys[1].RefTable = SubcontrolsTable + ControlNarrativesTable.ForeignKeys[0].RefTable = ControlsTable + ControlNarrativesTable.ForeignKeys[1].RefTable = NarrativesTable + ControlRisksTable.ForeignKeys[0].RefTable = ControlsTable + ControlRisksTable.ForeignKeys[1].RefTable = RisksTable + ControlActionplansTable.ForeignKeys[0].RefTable = ControlsTable + ControlActionplansTable.ForeignKeys[1].RefTable = ActionPlansTable + ControlObjectiveNarrativesTable.ForeignKeys[0].RefTable = ControlObjectivesTable + ControlObjectiveNarrativesTable.ForeignKeys[1].RefTable = NarrativesTable DocumentDataFilesTable.ForeignKeys[0].RefTable = DocumentDataTable DocumentDataFilesTable.ForeignKeys[1].RefTable = FilesTable EntitlementEventsTable.ForeignKeys[0].RefTable = EntitlementsTable @@ -3211,6 +4372,12 @@ func init() { IntegrationEventsTable.ForeignKeys[1].RefTable = EventsTable IntegrationWebhooksTable.ForeignKeys[0].RefTable = IntegrationsTable IntegrationWebhooksTable.ForeignKeys[1].RefTable = WebhooksTable + InternalPolicyControlobjectivesTable.ForeignKeys[0].RefTable = InternalPoliciesTable + InternalPolicyControlobjectivesTable.ForeignKeys[1].RefTable = ControlObjectivesTable + InternalPolicyProceduresTable.ForeignKeys[0].RefTable = InternalPoliciesTable + InternalPolicyProceduresTable.ForeignKeys[1].RefTable = ProceduresTable + InternalPolicyNarrativesTable.ForeignKeys[0].RefTable = InternalPoliciesTable + InternalPolicyNarrativesTable.ForeignKeys[1].RefTable = NarrativesTable InviteEventsTable.ForeignKeys[0].RefTable = InvitesTable InviteEventsTable.ForeignKeys[1].RefTable = EventsTable OhAuthTooTokenEventsTable.ForeignKeys[0].RefTable = OhAuthTooTokensTable @@ -3229,6 +4396,18 @@ func init() { OrganizationSettingFilesTable.ForeignKeys[1].RefTable = FilesTable PersonalAccessTokenEventsTable.ForeignKeys[0].RefTable = PersonalAccessTokensTable PersonalAccessTokenEventsTable.ForeignKeys[1].RefTable = EventsTable + ProcedureNarrativesTable.ForeignKeys[0].RefTable = ProceduresTable + ProcedureNarrativesTable.ForeignKeys[1].RefTable = NarrativesTable + ProcedureRisksTable.ForeignKeys[0].RefTable = ProceduresTable + ProcedureRisksTable.ForeignKeys[1].RefTable = RisksTable + RiskActionplansTable.ForeignKeys[0].RefTable = RisksTable + RiskActionplansTable.ForeignKeys[1].RefTable = ActionPlansTable + StandardControlobjectivesTable.ForeignKeys[0].RefTable = StandardsTable + StandardControlobjectivesTable.ForeignKeys[1].RefTable = ControlObjectivesTable + StandardControlsTable.ForeignKeys[0].RefTable = StandardsTable + StandardControlsTable.ForeignKeys[1].RefTable = ControlsTable + StandardActionplansTable.ForeignKeys[0].RefTable = StandardsTable + StandardActionplansTable.ForeignKeys[1].RefTable = ActionPlansTable SubscriberEventsTable.ForeignKeys[0].RefTable = SubscribersTable SubscriberEventsTable.ForeignKeys[1].RefTable = EventsTable TemplateFilesTable.ForeignKeys[0].RefTable = TemplatesTable @@ -3237,6 +4416,10 @@ func init() { UserFilesTable.ForeignKeys[1].RefTable = FilesTable UserEventsTable.ForeignKeys[0].RefTable = UsersTable UserEventsTable.ForeignKeys[1].RefTable = EventsTable + UserActionplansTable.ForeignKeys[0].RefTable = UsersTable + UserActionplansTable.ForeignKeys[1].RefTable = ActionPlansTable + UserSubcontrolsTable.ForeignKeys[0].RefTable = UsersTable + UserSubcontrolsTable.ForeignKeys[1].RefTable = SubcontrolsTable UserSettingFilesTable.ForeignKeys[0].RefTable = UserSettingsTable UserSettingFilesTable.ForeignKeys[1].RefTable = FilesTable WebhookEventsTable.ForeignKeys[0].RefTable = WebhooksTable diff --git a/internal/ent/generated/mutation.go b/internal/ent/generated/mutation.go index bfd8a977..936e2a47 100644 --- a/internal/ent/generated/mutation.go +++ b/internal/ent/generated/mutation.go @@ -12,9 +12,15 @@ import ( "entgo.io/ent" "entgo.io/ent/dialect/sql" "github.com/theopenlane/core/internal/ent/customtypes" + "github.com/theopenlane/core/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" "github.com/theopenlane/core/internal/ent/generated/apitoken" "github.com/theopenlane/core/internal/ent/generated/contact" "github.com/theopenlane/core/internal/ent/generated/contacthistory" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" "github.com/theopenlane/core/internal/ent/generated/documentdata" "github.com/theopenlane/core/internal/ent/generated/documentdatahistory" "github.com/theopenlane/core/internal/ent/generated/emailverificationtoken" @@ -44,7 +50,11 @@ import ( "github.com/theopenlane/core/internal/ent/generated/hushhistory" "github.com/theopenlane/core/internal/ent/generated/integration" "github.com/theopenlane/core/internal/ent/generated/integrationhistory" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" "github.com/theopenlane/core/internal/ent/generated/invite" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/notehistory" "github.com/theopenlane/core/internal/ent/generated/oauthprovider" @@ -59,6 +69,14 @@ import ( "github.com/theopenlane/core/internal/ent/generated/passwordresettoken" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" "github.com/theopenlane/core/internal/ent/generated/subscriber" "github.com/theopenlane/core/internal/ent/generated/template" "github.com/theopenlane/core/internal/ent/generated/templatehistory" @@ -84,8 +102,14 @@ const ( // Node types. TypeAPIToken = "APIToken" + TypeActionPlan = "ActionPlan" + TypeActionPlanHistory = "ActionPlanHistory" TypeContact = "Contact" TypeContactHistory = "ContactHistory" + TypeControl = "Control" + TypeControlHistory = "ControlHistory" + TypeControlObjective = "ControlObjective" + TypeControlObjectiveHistory = "ControlObjectiveHistory" TypeDocumentData = "DocumentData" TypeDocumentDataHistory = "DocumentDataHistory" TypeEmailVerificationToken = "EmailVerificationToken" @@ -115,7 +139,11 @@ const ( TypeHushHistory = "HushHistory" TypeIntegration = "Integration" TypeIntegrationHistory = "IntegrationHistory" + TypeInternalPolicy = "InternalPolicy" + TypeInternalPolicyHistory = "InternalPolicyHistory" TypeInvite = "Invite" + TypeNarrative = "Narrative" + TypeNarrativeHistory = "NarrativeHistory" TypeNote = "Note" TypeNoteHistory = "NoteHistory" TypeOauthProvider = "OauthProvider" @@ -129,6 +157,14 @@ const ( TypeOrganizationSettingHistory = "OrganizationSettingHistory" TypePasswordResetToken = "PasswordResetToken" TypePersonalAccessToken = "PersonalAccessToken" + TypeProcedure = "Procedure" + TypeProcedureHistory = "ProcedureHistory" + TypeRisk = "Risk" + TypeRiskHistory = "RiskHistory" + TypeStandard = "Standard" + TypeStandardHistory = "StandardHistory" + TypeSubcontrol = "Subcontrol" + TypeSubcontrolHistory = "SubcontrolHistory" TypeSubscriber = "Subscriber" TypeTFASetting = "TFASetting" TypeTemplate = "Template" @@ -1549,8 +1585,8 @@ func (m *APITokenMutation) ResetEdge(name string) error { return fmt.Errorf("unknown APIToken edge %s", name) } -// ContactMutation represents an operation that mutates the Contact nodes in the graph. -type ContactMutation struct { +// ActionPlanMutation represents an operation that mutates the ActionPlan nodes in the graph. +type ActionPlanMutation struct { config op Op typ string @@ -1559,43 +1595,47 @@ type ContactMutation struct { updated_at *time.Time created_by *string updated_by *string - mapping_id *string deleted_at *time.Time deleted_by *string + mapping_id *string tags *[]string appendtags []string - full_name *string - title *string - company *string - email *string - phone_number *string - address *string - status *enums.UserStatus + name *string + description *string + status *string + due_date *time.Time + priority *string + source *string + details *map[string]interface{} clearedFields map[string]struct{} - owner *string - clearedowner bool - entities map[string]struct{} - removedentities map[string]struct{} - clearedentities bool - files map[string]struct{} - removedfiles map[string]struct{} - clearedfiles bool + standard map[string]struct{} + removedstandard map[string]struct{} + clearedstandard bool + risk map[string]struct{} + removedrisk map[string]struct{} + clearedrisk bool + control map[string]struct{} + removedcontrol map[string]struct{} + clearedcontrol bool + user map[string]struct{} + removeduser map[string]struct{} + cleareduser bool done bool - oldValue func(context.Context) (*Contact, error) - predicates []predicate.Contact + oldValue func(context.Context) (*ActionPlan, error) + predicates []predicate.ActionPlan } -var _ ent.Mutation = (*ContactMutation)(nil) +var _ ent.Mutation = (*ActionPlanMutation)(nil) -// contactOption allows management of the mutation configuration using functional options. -type contactOption func(*ContactMutation) +// actionplanOption allows management of the mutation configuration using functional options. +type actionplanOption func(*ActionPlanMutation) -// newContactMutation creates new mutation for the Contact entity. -func newContactMutation(c config, op Op, opts ...contactOption) *ContactMutation { - m := &ContactMutation{ +// newActionPlanMutation creates new mutation for the ActionPlan entity. +func newActionPlanMutation(c config, op Op, opts ...actionplanOption) *ActionPlanMutation { + m := &ActionPlanMutation{ config: c, op: op, - typ: TypeContact, + typ: TypeActionPlan, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -1604,20 +1644,20 @@ func newContactMutation(c config, op Op, opts ...contactOption) *ContactMutation return m } -// withContactID sets the ID field of the mutation. -func withContactID(id string) contactOption { - return func(m *ContactMutation) { +// withActionPlanID sets the ID field of the mutation. +func withActionPlanID(id string) actionplanOption { + return func(m *ActionPlanMutation) { var ( err error once sync.Once - value *Contact + value *ActionPlan ) - m.oldValue = func(ctx context.Context) (*Contact, error) { + m.oldValue = func(ctx context.Context) (*ActionPlan, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().Contact.Get(ctx, id) + value, err = m.Client().ActionPlan.Get(ctx, id) } }) return value, err @@ -1626,10 +1666,10 @@ func withContactID(id string) contactOption { } } -// withContact sets the old Contact of the mutation. -func withContact(node *Contact) contactOption { - return func(m *ContactMutation) { - m.oldValue = func(context.Context) (*Contact, error) { +// withActionPlan sets the old ActionPlan of the mutation. +func withActionPlan(node *ActionPlan) actionplanOption { + return func(m *ActionPlanMutation) { + m.oldValue = func(context.Context) (*ActionPlan, error) { return node, nil } m.id = &node.ID @@ -1638,7 +1678,7 @@ func withContact(node *Contact) contactOption { // 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 ContactMutation) Client() *Client { +func (m ActionPlanMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -1646,7 +1686,7 @@ func (m ContactMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m ContactMutation) Tx() (*Tx, error) { +func (m ActionPlanMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -1656,14 +1696,14 @@ func (m ContactMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of Contact entities. -func (m *ContactMutation) SetID(id string) { +// operation is only accepted on creation of ActionPlan entities. +func (m *ActionPlanMutation) 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 *ContactMutation) ID() (id string, exists bool) { +func (m *ActionPlanMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -1674,7 +1714,7 @@ func (m *ContactMutation) ID() (id string, exists bool) { // 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 *ContactMutation) IDs(ctx context.Context) ([]string, error) { +func (m *ActionPlanMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -1683,19 +1723,19 @@ func (m *ContactMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().Contact.Query().Where(m.predicates...).IDs(ctx) + return m.Client().ActionPlan.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 *ContactMutation) SetCreatedAt(t time.Time) { +func (m *ActionPlanMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *ContactMutation) CreatedAt() (r time.Time, exists bool) { +func (m *ActionPlanMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -1703,10 +1743,10 @@ func (m *ContactMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ActionPlanMutation) 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") } @@ -1721,30 +1761,30 @@ func (m *ContactMutation) OldCreatedAt(ctx context.Context) (v time.Time, err er } // ClearCreatedAt clears the value of the "created_at" field. -func (m *ContactMutation) ClearCreatedAt() { +func (m *ActionPlanMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[contact.FieldCreatedAt] = struct{}{} + m.clearedFields[actionplan.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *ContactMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[contact.FieldCreatedAt] +func (m *ActionPlanMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[actionplan.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *ContactMutation) ResetCreatedAt() { +func (m *ActionPlanMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, contact.FieldCreatedAt) + delete(m.clearedFields, actionplan.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *ContactMutation) SetUpdatedAt(t time.Time) { +func (m *ActionPlanMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *ContactMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *ActionPlanMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -1752,10 +1792,10 @@ func (m *ContactMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ActionPlanMutation) 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") } @@ -1770,30 +1810,30 @@ func (m *ContactMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err er } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *ContactMutation) ClearUpdatedAt() { +func (m *ActionPlanMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[contact.FieldUpdatedAt] = struct{}{} + m.clearedFields[actionplan.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *ContactMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[contact.FieldUpdatedAt] +func (m *ActionPlanMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[actionplan.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *ContactMutation) ResetUpdatedAt() { +func (m *ActionPlanMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, contact.FieldUpdatedAt) + delete(m.clearedFields, actionplan.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *ContactMutation) SetCreatedBy(s string) { +func (m *ActionPlanMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *ContactMutation) CreatedBy() (r string, exists bool) { +func (m *ActionPlanMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -1801,10 +1841,10 @@ func (m *ContactMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *ActionPlanMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -1819,30 +1859,30 @@ func (m *ContactMutation) OldCreatedBy(ctx context.Context) (v string, err error } // ClearCreatedBy clears the value of the "created_by" field. -func (m *ContactMutation) ClearCreatedBy() { +func (m *ActionPlanMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[contact.FieldCreatedBy] = struct{}{} + m.clearedFields[actionplan.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *ContactMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[contact.FieldCreatedBy] +func (m *ActionPlanMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[actionplan.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *ContactMutation) ResetCreatedBy() { +func (m *ActionPlanMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, contact.FieldCreatedBy) + delete(m.clearedFields, actionplan.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *ContactMutation) SetUpdatedBy(s string) { +func (m *ActionPlanMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *ContactMutation) UpdatedBy() (r string, exists bool) { +func (m *ActionPlanMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -1850,10 +1890,10 @@ func (m *ContactMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *ActionPlanMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -1868,66 +1908,30 @@ func (m *ContactMutation) OldUpdatedBy(ctx context.Context) (v string, err error } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *ContactMutation) ClearUpdatedBy() { +func (m *ActionPlanMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[contact.FieldUpdatedBy] = struct{}{} + m.clearedFields[actionplan.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *ContactMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[contact.FieldUpdatedBy] +func (m *ActionPlanMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[actionplan.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *ContactMutation) ResetUpdatedBy() { +func (m *ActionPlanMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, contact.FieldUpdatedBy) -} - -// SetMappingID sets the "mapping_id" field. -func (m *ContactMutation) SetMappingID(s string) { - m.mapping_id = &s -} - -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *ContactMutation) MappingID() (r string, exists bool) { - v := m.mapping_id - if v == nil { - return - } - return *v, true -} - -// OldMappingID returns the old "mapping_id" field's value of the Contact entity. -// If the Contact 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 *ContactMutation) OldMappingID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) - } - return oldValue.MappingID, nil -} - -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *ContactMutation) ResetMappingID() { - m.mapping_id = nil + delete(m.clearedFields, actionplan.FieldUpdatedBy) } // SetDeletedAt sets the "deleted_at" field. -func (m *ContactMutation) SetDeletedAt(t time.Time) { +func (m *ActionPlanMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *ContactMutation) DeletedAt() (r time.Time, exists bool) { +func (m *ActionPlanMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -1935,10 +1939,10 @@ func (m *ContactMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *ActionPlanMutation) 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") } @@ -1953,30 +1957,30 @@ func (m *ContactMutation) OldDeletedAt(ctx context.Context) (v time.Time, err er } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *ContactMutation) ClearDeletedAt() { +func (m *ActionPlanMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[contact.FieldDeletedAt] = struct{}{} + m.clearedFields[actionplan.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *ContactMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[contact.FieldDeletedAt] +func (m *ActionPlanMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[actionplan.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *ContactMutation) ResetDeletedAt() { +func (m *ActionPlanMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, contact.FieldDeletedAt) + delete(m.clearedFields, actionplan.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *ContactMutation) SetDeletedBy(s string) { +func (m *ActionPlanMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *ContactMutation) DeletedBy() (r string, exists bool) { +func (m *ActionPlanMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -1984,10 +1988,10 @@ func (m *ContactMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *ActionPlanMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -2002,31 +2006,67 @@ func (m *ContactMutation) OldDeletedBy(ctx context.Context) (v string, err error } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *ContactMutation) ClearDeletedBy() { +func (m *ActionPlanMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[contact.FieldDeletedBy] = struct{}{} + m.clearedFields[actionplan.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *ContactMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[contact.FieldDeletedBy] +func (m *ActionPlanMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[actionplan.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *ContactMutation) ResetDeletedBy() { +func (m *ActionPlanMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, contact.FieldDeletedBy) + delete(m.clearedFields, actionplan.FieldDeletedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *ActionPlanMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *ActionPlanMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ActionPlanMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *ActionPlanMutation) ResetMappingID() { + m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *ContactMutation) SetTags(s []string) { +func (m *ActionPlanMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *ContactMutation) Tags() (r []string, exists bool) { +func (m *ActionPlanMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -2034,10 +2074,10 @@ func (m *ContactMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *ActionPlanMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -2052,12 +2092,12 @@ func (m *ContactMutation) OldTags(ctx context.Context) (v []string, err error) { } // AppendTags adds s to the "tags" field. -func (m *ContactMutation) AppendTags(s []string) { +func (m *ActionPlanMutation) 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 *ContactMutation) AppendedTags() ([]string, bool) { +func (m *ActionPlanMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -2065,535 +2105,580 @@ func (m *ContactMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *ContactMutation) ClearTags() { +func (m *ActionPlanMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[contact.FieldTags] = struct{}{} + m.clearedFields[actionplan.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *ContactMutation) TagsCleared() bool { - _, ok := m.clearedFields[contact.FieldTags] +func (m *ActionPlanMutation) TagsCleared() bool { + _, ok := m.clearedFields[actionplan.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *ContactMutation) ResetTags() { +func (m *ActionPlanMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, contact.FieldTags) + delete(m.clearedFields, actionplan.FieldTags) } -// SetOwnerID sets the "owner_id" field. -func (m *ContactMutation) SetOwnerID(s string) { - m.owner = &s +// SetName sets the "name" field. +func (m *ActionPlanMutation) SetName(s string) { + m.name = &s } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *ContactMutation) OwnerID() (r string, exists bool) { - v := m.owner +// Name returns the value of the "name" field in the mutation. +func (m *ActionPlanMutation) Name() (r string, exists bool) { + v := m.name if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *ActionPlanMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldName 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") + 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 OldOwnerID: %w", err) + return v, fmt.Errorf("querying old value for OldName: %w", err) } - return oldValue.OwnerID, nil -} - -// ClearOwnerID clears the value of the "owner_id" field. -func (m *ContactMutation) ClearOwnerID() { - m.owner = nil - m.clearedFields[contact.FieldOwnerID] = struct{}{} -} - -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *ContactMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[contact.FieldOwnerID] - return ok + return oldValue.Name, nil } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *ContactMutation) ResetOwnerID() { - m.owner = nil - delete(m.clearedFields, contact.FieldOwnerID) +// ResetName resets all changes to the "name" field. +func (m *ActionPlanMutation) ResetName() { + m.name = nil } -// SetFullName sets the "full_name" field. -func (m *ContactMutation) SetFullName(s string) { - m.full_name = &s +// SetDescription sets the "description" field. +func (m *ActionPlanMutation) SetDescription(s string) { + m.description = &s } -// FullName returns the value of the "full_name" field in the mutation. -func (m *ContactMutation) FullName() (r string, exists bool) { - v := m.full_name +// Description returns the value of the "description" field in the mutation. +func (m *ActionPlanMutation) Description() (r string, exists bool) { + v := m.description if v == nil { return } return *v, true } -// OldFullName returns the old "full_name" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldFullName(ctx context.Context) (v string, err error) { +func (m *ActionPlanMutation) OldDescription(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldFullName is only allowed on UpdateOne operations") + return v, errors.New("OldDescription 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") + 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 OldFullName: %w", err) + return v, fmt.Errorf("querying old value for OldDescription: %w", err) } - return oldValue.FullName, nil + return oldValue.Description, nil } -// ResetFullName resets all changes to the "full_name" field. -func (m *ContactMutation) ResetFullName() { - m.full_name = nil +// ClearDescription clears the value of the "description" field. +func (m *ActionPlanMutation) ClearDescription() { + m.description = nil + m.clearedFields[actionplan.FieldDescription] = struct{}{} } -// SetTitle sets the "title" field. -func (m *ContactMutation) SetTitle(s string) { - m.title = &s +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *ActionPlanMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[actionplan.FieldDescription] + return ok } -// Title returns the value of the "title" field in the mutation. -func (m *ContactMutation) Title() (r string, exists bool) { - v := m.title +// ResetDescription resets all changes to the "description" field. +func (m *ActionPlanMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, actionplan.FieldDescription) +} + +// SetStatus sets the "status" field. +func (m *ActionPlanMutation) SetStatus(s string) { + m.status = &s +} + +// Status returns the value of the "status" field in the mutation. +func (m *ActionPlanMutation) Status() (r string, exists bool) { + v := m.status if v == nil { return } return *v, true } -// OldTitle returns the old "title" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldStatus returns the old "status" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldTitle(ctx context.Context) (v string, err error) { +func (m *ActionPlanMutation) OldStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTitle is only allowed on UpdateOne operations") + return v, errors.New("OldStatus is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldTitle requires an ID field in the mutation") + return v, errors.New("OldStatus requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldTitle: %w", err) + return v, fmt.Errorf("querying old value for OldStatus: %w", err) } - return oldValue.Title, nil + return oldValue.Status, nil } -// ClearTitle clears the value of the "title" field. -func (m *ContactMutation) ClearTitle() { - m.title = nil - m.clearedFields[contact.FieldTitle] = struct{}{} +// ClearStatus clears the value of the "status" field. +func (m *ActionPlanMutation) ClearStatus() { + m.status = nil + m.clearedFields[actionplan.FieldStatus] = struct{}{} } -// TitleCleared returns if the "title" field was cleared in this mutation. -func (m *ContactMutation) TitleCleared() bool { - _, ok := m.clearedFields[contact.FieldTitle] +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *ActionPlanMutation) StatusCleared() bool { + _, ok := m.clearedFields[actionplan.FieldStatus] return ok } -// ResetTitle resets all changes to the "title" field. -func (m *ContactMutation) ResetTitle() { - m.title = nil - delete(m.clearedFields, contact.FieldTitle) +// ResetStatus resets all changes to the "status" field. +func (m *ActionPlanMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, actionplan.FieldStatus) } -// SetCompany sets the "company" field. -func (m *ContactMutation) SetCompany(s string) { - m.company = &s +// SetDueDate sets the "due_date" field. +func (m *ActionPlanMutation) SetDueDate(t time.Time) { + m.due_date = &t } -// Company returns the value of the "company" field in the mutation. -func (m *ContactMutation) Company() (r string, exists bool) { - v := m.company +// DueDate returns the value of the "due_date" field in the mutation. +func (m *ActionPlanMutation) DueDate() (r time.Time, exists bool) { + v := m.due_date if v == nil { return } return *v, true } -// OldCompany returns the old "company" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldDueDate returns the old "due_date" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldCompany(ctx context.Context) (v string, err error) { +func (m *ActionPlanMutation) OldDueDate(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCompany is only allowed on UpdateOne operations") + return v, errors.New("OldDueDate is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldCompany requires an ID field in the mutation") + return v, errors.New("OldDueDate requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldCompany: %w", err) + return v, fmt.Errorf("querying old value for OldDueDate: %w", err) } - return oldValue.Company, nil + return oldValue.DueDate, nil } -// ClearCompany clears the value of the "company" field. -func (m *ContactMutation) ClearCompany() { - m.company = nil - m.clearedFields[contact.FieldCompany] = struct{}{} +// ClearDueDate clears the value of the "due_date" field. +func (m *ActionPlanMutation) ClearDueDate() { + m.due_date = nil + m.clearedFields[actionplan.FieldDueDate] = struct{}{} } -// CompanyCleared returns if the "company" field was cleared in this mutation. -func (m *ContactMutation) CompanyCleared() bool { - _, ok := m.clearedFields[contact.FieldCompany] +// DueDateCleared returns if the "due_date" field was cleared in this mutation. +func (m *ActionPlanMutation) DueDateCleared() bool { + _, ok := m.clearedFields[actionplan.FieldDueDate] return ok } -// ResetCompany resets all changes to the "company" field. -func (m *ContactMutation) ResetCompany() { - m.company = nil - delete(m.clearedFields, contact.FieldCompany) +// ResetDueDate resets all changes to the "due_date" field. +func (m *ActionPlanMutation) ResetDueDate() { + m.due_date = nil + delete(m.clearedFields, actionplan.FieldDueDate) } -// SetEmail sets the "email" field. -func (m *ContactMutation) SetEmail(s string) { - m.email = &s +// SetPriority sets the "priority" field. +func (m *ActionPlanMutation) SetPriority(s string) { + m.priority = &s } -// Email returns the value of the "email" field in the mutation. -func (m *ContactMutation) Email() (r string, exists bool) { - v := m.email +// Priority returns the value of the "priority" field in the mutation. +func (m *ActionPlanMutation) Priority() (r string, exists bool) { + v := m.priority if v == nil { return } return *v, true } -// OldEmail returns the old "email" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldPriority returns the old "priority" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldEmail(ctx context.Context) (v string, err error) { +func (m *ActionPlanMutation) OldPriority(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldEmail is only allowed on UpdateOne operations") + return v, errors.New("OldPriority 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") + return v, errors.New("OldPriority 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 v, fmt.Errorf("querying old value for OldPriority: %w", err) } - return oldValue.Email, nil + return oldValue.Priority, nil } -// ClearEmail clears the value of the "email" field. -func (m *ContactMutation) ClearEmail() { - m.email = nil - m.clearedFields[contact.FieldEmail] = struct{}{} +// ClearPriority clears the value of the "priority" field. +func (m *ActionPlanMutation) ClearPriority() { + m.priority = nil + m.clearedFields[actionplan.FieldPriority] = struct{}{} } -// EmailCleared returns if the "email" field was cleared in this mutation. -func (m *ContactMutation) EmailCleared() bool { - _, ok := m.clearedFields[contact.FieldEmail] +// PriorityCleared returns if the "priority" field was cleared in this mutation. +func (m *ActionPlanMutation) PriorityCleared() bool { + _, ok := m.clearedFields[actionplan.FieldPriority] return ok } -// ResetEmail resets all changes to the "email" field. -func (m *ContactMutation) ResetEmail() { - m.email = nil - delete(m.clearedFields, contact.FieldEmail) +// ResetPriority resets all changes to the "priority" field. +func (m *ActionPlanMutation) ResetPriority() { + m.priority = nil + delete(m.clearedFields, actionplan.FieldPriority) } -// SetPhoneNumber sets the "phone_number" field. -func (m *ContactMutation) SetPhoneNumber(s string) { - m.phone_number = &s +// SetSource sets the "source" field. +func (m *ActionPlanMutation) SetSource(s string) { + m.source = &s } -// PhoneNumber returns the value of the "phone_number" field in the mutation. -func (m *ContactMutation) PhoneNumber() (r string, exists bool) { - v := m.phone_number +// Source returns the value of the "source" field in the mutation. +func (m *ActionPlanMutation) Source() (r string, exists bool) { + v := m.source if v == nil { return } return *v, true } -// OldPhoneNumber returns the old "phone_number" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldSource returns the old "source" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldPhoneNumber(ctx context.Context) (v string, err error) { +func (m *ActionPlanMutation) OldSource(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldPhoneNumber is only allowed on UpdateOne operations") + return v, errors.New("OldSource is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldPhoneNumber requires an ID field in the mutation") + return v, errors.New("OldSource requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldPhoneNumber: %w", err) + return v, fmt.Errorf("querying old value for OldSource: %w", err) } - return oldValue.PhoneNumber, nil + return oldValue.Source, nil } -// ClearPhoneNumber clears the value of the "phone_number" field. -func (m *ContactMutation) ClearPhoneNumber() { - m.phone_number = nil - m.clearedFields[contact.FieldPhoneNumber] = struct{}{} +// ClearSource clears the value of the "source" field. +func (m *ActionPlanMutation) ClearSource() { + m.source = nil + m.clearedFields[actionplan.FieldSource] = struct{}{} } -// PhoneNumberCleared returns if the "phone_number" field was cleared in this mutation. -func (m *ContactMutation) PhoneNumberCleared() bool { - _, ok := m.clearedFields[contact.FieldPhoneNumber] +// SourceCleared returns if the "source" field was cleared in this mutation. +func (m *ActionPlanMutation) SourceCleared() bool { + _, ok := m.clearedFields[actionplan.FieldSource] return ok } -// ResetPhoneNumber resets all changes to the "phone_number" field. -func (m *ContactMutation) ResetPhoneNumber() { - m.phone_number = nil - delete(m.clearedFields, contact.FieldPhoneNumber) +// ResetSource resets all changes to the "source" field. +func (m *ActionPlanMutation) ResetSource() { + m.source = nil + delete(m.clearedFields, actionplan.FieldSource) } -// SetAddress sets the "address" field. -func (m *ContactMutation) SetAddress(s string) { - m.address = &s +// SetDetails sets the "details" field. +func (m *ActionPlanMutation) SetDetails(value map[string]interface{}) { + m.details = &value } -// Address returns the value of the "address" field in the mutation. -func (m *ContactMutation) Address() (r string, exists bool) { - v := m.address +// Details returns the value of the "details" field in the mutation. +func (m *ActionPlanMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details if v == nil { return } return *v, true } -// OldAddress returns the old "address" field's value of the Contact entity. -// If the Contact object wasn't provided to the builder, the object is fetched from the database. +// OldDetails returns the old "details" field's value of the ActionPlan entity. +// If the ActionPlan 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 *ContactMutation) OldAddress(ctx context.Context) (v string, err error) { +func (m *ActionPlanMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldAddress is only allowed on UpdateOne operations") + return v, errors.New("OldDetails is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldAddress requires an ID field in the mutation") + return v, errors.New("OldDetails requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldAddress: %w", err) + return v, fmt.Errorf("querying old value for OldDetails: %w", err) } - return oldValue.Address, nil + return oldValue.Details, nil } -// ClearAddress clears the value of the "address" field. -func (m *ContactMutation) ClearAddress() { - m.address = nil - m.clearedFields[contact.FieldAddress] = struct{}{} +// ClearDetails clears the value of the "details" field. +func (m *ActionPlanMutation) ClearDetails() { + m.details = nil + m.clearedFields[actionplan.FieldDetails] = struct{}{} } -// AddressCleared returns if the "address" field was cleared in this mutation. -func (m *ContactMutation) AddressCleared() bool { - _, ok := m.clearedFields[contact.FieldAddress] +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *ActionPlanMutation) DetailsCleared() bool { + _, ok := m.clearedFields[actionplan.FieldDetails] return ok } -// ResetAddress resets all changes to the "address" field. -func (m *ContactMutation) ResetAddress() { - m.address = nil - delete(m.clearedFields, contact.FieldAddress) -} - -// SetStatus sets the "status" field. -func (m *ContactMutation) SetStatus(es enums.UserStatus) { - m.status = &es +// ResetDetails resets all changes to the "details" field. +func (m *ActionPlanMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, actionplan.FieldDetails) } -// Status returns the value of the "status" field in the mutation. -func (m *ContactMutation) Status() (r enums.UserStatus, exists bool) { - v := m.status - if v == nil { - return +// AddStandardIDs adds the "standard" edge to the Standard entity by ids. +func (m *ActionPlanMutation) AddStandardIDs(ids ...string) { + if m.standard == nil { + m.standard = make(map[string]struct{}) + } + for i := range ids { + m.standard[ids[i]] = struct{}{} } - return *v, true } -// OldStatus returns the old "status" field's value of the Contact entity. -// If the Contact 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 *ContactMutation) OldStatus(ctx context.Context) (v enums.UserStatus, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStatus is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStatus requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldStatus: %w", err) - } - return oldValue.Status, nil +// ClearStandard clears the "standard" edge to the Standard entity. +func (m *ActionPlanMutation) ClearStandard() { + m.clearedstandard = true } -// ResetStatus resets all changes to the "status" field. -func (m *ContactMutation) ResetStatus() { - m.status = nil +// StandardCleared reports if the "standard" edge to the Standard entity was cleared. +func (m *ActionPlanMutation) StandardCleared() bool { + return m.clearedstandard } -// ClearOwner clears the "owner" edge to the Organization entity. -func (m *ContactMutation) ClearOwner() { - m.clearedowner = true - m.clearedFields[contact.FieldOwnerID] = struct{}{} +// RemoveStandardIDs removes the "standard" edge to the Standard entity by IDs. +func (m *ActionPlanMutation) RemoveStandardIDs(ids ...string) { + if m.removedstandard == nil { + m.removedstandard = make(map[string]struct{}) + } + for i := range ids { + delete(m.standard, ids[i]) + m.removedstandard[ids[i]] = struct{}{} + } } -// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *ContactMutation) OwnerCleared() bool { - return m.OwnerIDCleared() || m.clearedowner +// RemovedStandard returns the removed IDs of the "standard" edge to the Standard entity. +func (m *ActionPlanMutation) RemovedStandardIDs() (ids []string) { + for id := range m.removedstandard { + ids = append(ids, id) + } + return } -// 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 *ContactMutation) OwnerIDs() (ids []string) { - if id := m.owner; id != nil { - ids = append(ids, *id) +// StandardIDs returns the "standard" edge IDs in the mutation. +func (m *ActionPlanMutation) StandardIDs() (ids []string) { + for id := range m.standard { + ids = append(ids, id) } return } -// ResetOwner resets all changes to the "owner" edge. -func (m *ContactMutation) ResetOwner() { - m.owner = nil - m.clearedowner = false +// ResetStandard resets all changes to the "standard" edge. +func (m *ActionPlanMutation) ResetStandard() { + m.standard = nil + m.clearedstandard = false + m.removedstandard = nil } -// AddEntityIDs adds the "entities" edge to the Entity entity by ids. -func (m *ContactMutation) AddEntityIDs(ids ...string) { - if m.entities == nil { - m.entities = make(map[string]struct{}) +// AddRiskIDs adds the "risk" edge to the Risk entity by ids. +func (m *ActionPlanMutation) AddRiskIDs(ids ...string) { + if m.risk == nil { + m.risk = make(map[string]struct{}) } for i := range ids { - m.entities[ids[i]] = struct{}{} + m.risk[ids[i]] = struct{}{} } } -// ClearEntities clears the "entities" edge to the Entity entity. -func (m *ContactMutation) ClearEntities() { - m.clearedentities = true +// ClearRisk clears the "risk" edge to the Risk entity. +func (m *ActionPlanMutation) ClearRisk() { + m.clearedrisk = true } -// EntitiesCleared reports if the "entities" edge to the Entity entity was cleared. -func (m *ContactMutation) EntitiesCleared() bool { - return m.clearedentities +// RiskCleared reports if the "risk" edge to the Risk entity was cleared. +func (m *ActionPlanMutation) RiskCleared() bool { + return m.clearedrisk } -// RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs. -func (m *ContactMutation) RemoveEntityIDs(ids ...string) { - if m.removedentities == nil { - m.removedentities = make(map[string]struct{}) +// RemoveRiskIDs removes the "risk" edge to the Risk entity by IDs. +func (m *ActionPlanMutation) RemoveRiskIDs(ids ...string) { + if m.removedrisk == nil { + m.removedrisk = make(map[string]struct{}) } for i := range ids { - delete(m.entities, ids[i]) - m.removedentities[ids[i]] = struct{}{} + delete(m.risk, ids[i]) + m.removedrisk[ids[i]] = struct{}{} } } -// RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity. -func (m *ContactMutation) RemovedEntitiesIDs() (ids []string) { - for id := range m.removedentities { +// RemovedRisk returns the removed IDs of the "risk" edge to the Risk entity. +func (m *ActionPlanMutation) RemovedRiskIDs() (ids []string) { + for id := range m.removedrisk { ids = append(ids, id) } return } -// EntitiesIDs returns the "entities" edge IDs in the mutation. -func (m *ContactMutation) EntitiesIDs() (ids []string) { - for id := range m.entities { +// RiskIDs returns the "risk" edge IDs in the mutation. +func (m *ActionPlanMutation) RiskIDs() (ids []string) { + for id := range m.risk { ids = append(ids, id) } return } -// ResetEntities resets all changes to the "entities" edge. -func (m *ContactMutation) ResetEntities() { - m.entities = nil - m.clearedentities = false - m.removedentities = nil +// ResetRisk resets all changes to the "risk" edge. +func (m *ActionPlanMutation) ResetRisk() { + m.risk = nil + m.clearedrisk = false + m.removedrisk = nil } -// AddFileIDs adds the "files" edge to the File entity by ids. -func (m *ContactMutation) AddFileIDs(ids ...string) { - if m.files == nil { - m.files = make(map[string]struct{}) +// AddControlIDs adds the "control" edge to the Control entity by ids. +func (m *ActionPlanMutation) AddControlIDs(ids ...string) { + if m.control == nil { + m.control = make(map[string]struct{}) } for i := range ids { - m.files[ids[i]] = struct{}{} + m.control[ids[i]] = struct{}{} } } -// ClearFiles clears the "files" edge to the File entity. -func (m *ContactMutation) ClearFiles() { - m.clearedfiles = true +// ClearControl clears the "control" edge to the Control entity. +func (m *ActionPlanMutation) ClearControl() { + m.clearedcontrol = true } -// FilesCleared reports if the "files" edge to the File entity was cleared. -func (m *ContactMutation) FilesCleared() bool { - return m.clearedfiles +// ControlCleared reports if the "control" edge to the Control entity was cleared. +func (m *ActionPlanMutation) ControlCleared() bool { + return m.clearedcontrol } -// RemoveFileIDs removes the "files" edge to the File entity by IDs. -func (m *ContactMutation) RemoveFileIDs(ids ...string) { - if m.removedfiles == nil { - m.removedfiles = make(map[string]struct{}) +// RemoveControlIDs removes the "control" edge to the Control entity by IDs. +func (m *ActionPlanMutation) RemoveControlIDs(ids ...string) { + if m.removedcontrol == nil { + m.removedcontrol = make(map[string]struct{}) } for i := range ids { - delete(m.files, ids[i]) - m.removedfiles[ids[i]] = struct{}{} + delete(m.control, ids[i]) + m.removedcontrol[ids[i]] = struct{}{} } } -// RemovedFiles returns the removed IDs of the "files" edge to the File entity. -func (m *ContactMutation) RemovedFilesIDs() (ids []string) { - for id := range m.removedfiles { +// RemovedControl returns the removed IDs of the "control" edge to the Control entity. +func (m *ActionPlanMutation) RemovedControlIDs() (ids []string) { + for id := range m.removedcontrol { ids = append(ids, id) } return } -// FilesIDs returns the "files" edge IDs in the mutation. -func (m *ContactMutation) FilesIDs() (ids []string) { - for id := range m.files { +// ControlIDs returns the "control" edge IDs in the mutation. +func (m *ActionPlanMutation) ControlIDs() (ids []string) { + for id := range m.control { ids = append(ids, id) } return } -// ResetFiles resets all changes to the "files" edge. -func (m *ContactMutation) ResetFiles() { - m.files = nil - m.clearedfiles = false - m.removedfiles = nil +// ResetControl resets all changes to the "control" edge. +func (m *ActionPlanMutation) ResetControl() { + m.control = nil + m.clearedcontrol = false + m.removedcontrol = nil } -// Where appends a list predicates to the ContactMutation builder. -func (m *ContactMutation) Where(ps ...predicate.Contact) { - m.predicates = append(m.predicates, ps...) +// AddUserIDs adds the "user" edge to the User entity by ids. +func (m *ActionPlanMutation) AddUserIDs(ids ...string) { + if m.user == nil { + m.user = make(map[string]struct{}) + } + for i := range ids { + m.user[ids[i]] = struct{}{} + } } -// WhereP appends storage-level predicates to the ContactMutation builder. Using this method, +// ClearUser clears the "user" edge to the User entity. +func (m *ActionPlanMutation) ClearUser() { + m.cleareduser = true +} + +// UserCleared reports if the "user" edge to the User entity was cleared. +func (m *ActionPlanMutation) UserCleared() bool { + return m.cleareduser +} + +// RemoveUserIDs removes the "user" edge to the User entity by IDs. +func (m *ActionPlanMutation) RemoveUserIDs(ids ...string) { + if m.removeduser == nil { + m.removeduser = make(map[string]struct{}) + } + for i := range ids { + delete(m.user, ids[i]) + m.removeduser[ids[i]] = struct{}{} + } +} + +// RemovedUser returns the removed IDs of the "user" edge to the User entity. +func (m *ActionPlanMutation) RemovedUserIDs() (ids []string) { + for id := range m.removeduser { + ids = append(ids, id) + } + return +} + +// UserIDs returns the "user" edge IDs in the mutation. +func (m *ActionPlanMutation) UserIDs() (ids []string) { + for id := range m.user { + ids = append(ids, id) + } + return +} + +// ResetUser resets all changes to the "user" edge. +func (m *ActionPlanMutation) ResetUser() { + m.user = nil + m.cleareduser = false + m.removeduser = nil +} + +// Where appends a list predicates to the ActionPlanMutation builder. +func (m *ActionPlanMutation) Where(ps ...predicate.ActionPlan) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the ActionPlanMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *ContactMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.Contact, len(ps)) +func (m *ActionPlanMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.ActionPlan, len(ps)) for i := range ps { p[i] = ps[i] } @@ -2601,72 +2686,69 @@ func (m *ContactMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *ContactMutation) Op() Op { +func (m *ActionPlanMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *ContactMutation) SetOp(op Op) { +func (m *ActionPlanMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (Contact). -func (m *ContactMutation) Type() string { +// Type returns the node type of this mutation (ActionPlan). +func (m *ActionPlanMutation) 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 *ContactMutation) Fields() []string { - fields := make([]string, 0, 16) +func (m *ActionPlanMutation) Fields() []string { + fields := make([]string, 0, 15) if m.created_at != nil { - fields = append(fields, contact.FieldCreatedAt) + fields = append(fields, actionplan.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, contact.FieldUpdatedAt) + fields = append(fields, actionplan.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, contact.FieldCreatedBy) + fields = append(fields, actionplan.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, contact.FieldUpdatedBy) - } - if m.mapping_id != nil { - fields = append(fields, contact.FieldMappingID) + fields = append(fields, actionplan.FieldUpdatedBy) } if m.deleted_at != nil { - fields = append(fields, contact.FieldDeletedAt) + fields = append(fields, actionplan.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, contact.FieldDeletedBy) + fields = append(fields, actionplan.FieldDeletedBy) } - if m.tags != nil { - fields = append(fields, contact.FieldTags) + if m.mapping_id != nil { + fields = append(fields, actionplan.FieldMappingID) } - if m.owner != nil { - fields = append(fields, contact.FieldOwnerID) + if m.tags != nil { + fields = append(fields, actionplan.FieldTags) } - if m.full_name != nil { - fields = append(fields, contact.FieldFullName) + if m.name != nil { + fields = append(fields, actionplan.FieldName) } - if m.title != nil { - fields = append(fields, contact.FieldTitle) + if m.description != nil { + fields = append(fields, actionplan.FieldDescription) } - if m.company != nil { - fields = append(fields, contact.FieldCompany) + if m.status != nil { + fields = append(fields, actionplan.FieldStatus) } - if m.email != nil { - fields = append(fields, contact.FieldEmail) + if m.due_date != nil { + fields = append(fields, actionplan.FieldDueDate) } - if m.phone_number != nil { - fields = append(fields, contact.FieldPhoneNumber) + if m.priority != nil { + fields = append(fields, actionplan.FieldPriority) } - if m.address != nil { - fields = append(fields, contact.FieldAddress) + if m.source != nil { + fields = append(fields, actionplan.FieldSource) } - if m.status != nil { - fields = append(fields, contact.FieldStatus) + if m.details != nil { + fields = append(fields, actionplan.FieldDetails) } return fields } @@ -2674,40 +2756,38 @@ func (m *ContactMutation) Fields() []string { // 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 *ContactMutation) Field(name string) (ent.Value, bool) { +func (m *ActionPlanMutation) Field(name string) (ent.Value, bool) { switch name { - case contact.FieldCreatedAt: + case actionplan.FieldCreatedAt: return m.CreatedAt() - case contact.FieldUpdatedAt: + case actionplan.FieldUpdatedAt: return m.UpdatedAt() - case contact.FieldCreatedBy: + case actionplan.FieldCreatedBy: return m.CreatedBy() - case contact.FieldUpdatedBy: + case actionplan.FieldUpdatedBy: return m.UpdatedBy() - case contact.FieldMappingID: - return m.MappingID() - case contact.FieldDeletedAt: + case actionplan.FieldDeletedAt: return m.DeletedAt() - case contact.FieldDeletedBy: + case actionplan.FieldDeletedBy: return m.DeletedBy() - case contact.FieldTags: + case actionplan.FieldMappingID: + return m.MappingID() + case actionplan.FieldTags: return m.Tags() - case contact.FieldOwnerID: - return m.OwnerID() - case contact.FieldFullName: - return m.FullName() - case contact.FieldTitle: - return m.Title() - case contact.FieldCompany: - return m.Company() - case contact.FieldEmail: - return m.Email() - case contact.FieldPhoneNumber: - return m.PhoneNumber() - case contact.FieldAddress: - return m.Address() - case contact.FieldStatus: + case actionplan.FieldName: + return m.Name() + case actionplan.FieldDescription: + return m.Description() + case actionplan.FieldStatus: return m.Status() + case actionplan.FieldDueDate: + return m.DueDate() + case actionplan.FieldPriority: + return m.Priority() + case actionplan.FieldSource: + return m.Source() + case actionplan.FieldDetails: + return m.Details() } return nil, false } @@ -2715,375 +2795,374 @@ func (m *ContactMutation) Field(name string) (ent.Value, bool) { // 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 *ContactMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *ActionPlanMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case contact.FieldCreatedAt: + case actionplan.FieldCreatedAt: return m.OldCreatedAt(ctx) - case contact.FieldUpdatedAt: + case actionplan.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case contact.FieldCreatedBy: + case actionplan.FieldCreatedBy: return m.OldCreatedBy(ctx) - case contact.FieldUpdatedBy: + case actionplan.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case contact.FieldMappingID: - return m.OldMappingID(ctx) - case contact.FieldDeletedAt: + case actionplan.FieldDeletedAt: return m.OldDeletedAt(ctx) - case contact.FieldDeletedBy: + case actionplan.FieldDeletedBy: return m.OldDeletedBy(ctx) - case contact.FieldTags: + case actionplan.FieldMappingID: + return m.OldMappingID(ctx) + case actionplan.FieldTags: return m.OldTags(ctx) - case contact.FieldOwnerID: - return m.OldOwnerID(ctx) - case contact.FieldFullName: - return m.OldFullName(ctx) - case contact.FieldTitle: - return m.OldTitle(ctx) - case contact.FieldCompany: - return m.OldCompany(ctx) - case contact.FieldEmail: - return m.OldEmail(ctx) - case contact.FieldPhoneNumber: - return m.OldPhoneNumber(ctx) - case contact.FieldAddress: - return m.OldAddress(ctx) - case contact.FieldStatus: + case actionplan.FieldName: + return m.OldName(ctx) + case actionplan.FieldDescription: + return m.OldDescription(ctx) + case actionplan.FieldStatus: return m.OldStatus(ctx) + case actionplan.FieldDueDate: + return m.OldDueDate(ctx) + case actionplan.FieldPriority: + return m.OldPriority(ctx) + case actionplan.FieldSource: + return m.OldSource(ctx) + case actionplan.FieldDetails: + return m.OldDetails(ctx) } - return nil, fmt.Errorf("unknown Contact field %s", name) + return nil, fmt.Errorf("unknown ActionPlan 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 *ContactMutation) SetField(name string, value ent.Value) error { +func (m *ActionPlanMutation) SetField(name string, value ent.Value) error { switch name { - case contact.FieldCreatedAt: + case actionplan.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 contact.FieldUpdatedAt: + case actionplan.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 contact.FieldCreatedBy: + case actionplan.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case contact.FieldUpdatedBy: + case actionplan.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case contact.FieldMappingID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetMappingID(v) - return nil - case contact.FieldDeletedAt: + case actionplan.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 contact.FieldDeletedBy: + case actionplan.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case contact.FieldTags: - v, ok := value.([]string) + case actionplan.FieldMappingID: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTags(v) + m.SetMappingID(v) return nil - case contact.FieldOwnerID: - v, ok := value.(string) + case actionplan.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetTags(v) return nil - case contact.FieldFullName: + case actionplan.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetFullName(v) + m.SetName(v) return nil - case contact.FieldTitle: + case actionplan.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTitle(v) + m.SetDescription(v) return nil - case contact.FieldCompany: + case actionplan.FieldStatus: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCompany(v) + m.SetStatus(v) return nil - case contact.FieldEmail: - v, ok := value.(string) + case actionplan.FieldDueDate: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetEmail(v) + m.SetDueDate(v) return nil - case contact.FieldPhoneNumber: + case actionplan.FieldPriority: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetPhoneNumber(v) + m.SetPriority(v) return nil - case contact.FieldAddress: + case actionplan.FieldSource: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetAddress(v) + m.SetSource(v) return nil - case contact.FieldStatus: - v, ok := value.(enums.UserStatus) + case actionplan.FieldDetails: + v, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetStatus(v) + m.SetDetails(v) return nil } - return fmt.Errorf("unknown Contact field %s", name) + return fmt.Errorf("unknown ActionPlan field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *ContactMutation) AddedFields() []string { +func (m *ActionPlanMutation) 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 *ContactMutation) AddedField(name string) (ent.Value, bool) { +func (m *ActionPlanMutation) 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 *ContactMutation) AddField(name string, value ent.Value) error { +func (m *ActionPlanMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown Contact numeric field %s", name) + return fmt.Errorf("unknown ActionPlan numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *ContactMutation) ClearedFields() []string { +func (m *ActionPlanMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(contact.FieldCreatedAt) { - fields = append(fields, contact.FieldCreatedAt) + if m.FieldCleared(actionplan.FieldCreatedAt) { + fields = append(fields, actionplan.FieldCreatedAt) } - if m.FieldCleared(contact.FieldUpdatedAt) { - fields = append(fields, contact.FieldUpdatedAt) + if m.FieldCleared(actionplan.FieldUpdatedAt) { + fields = append(fields, actionplan.FieldUpdatedAt) } - if m.FieldCleared(contact.FieldCreatedBy) { - fields = append(fields, contact.FieldCreatedBy) + if m.FieldCleared(actionplan.FieldCreatedBy) { + fields = append(fields, actionplan.FieldCreatedBy) } - if m.FieldCleared(contact.FieldUpdatedBy) { - fields = append(fields, contact.FieldUpdatedBy) + if m.FieldCleared(actionplan.FieldUpdatedBy) { + fields = append(fields, actionplan.FieldUpdatedBy) } - if m.FieldCleared(contact.FieldDeletedAt) { - fields = append(fields, contact.FieldDeletedAt) + if m.FieldCleared(actionplan.FieldDeletedAt) { + fields = append(fields, actionplan.FieldDeletedAt) } - if m.FieldCleared(contact.FieldDeletedBy) { - fields = append(fields, contact.FieldDeletedBy) + if m.FieldCleared(actionplan.FieldDeletedBy) { + fields = append(fields, actionplan.FieldDeletedBy) } - if m.FieldCleared(contact.FieldTags) { - fields = append(fields, contact.FieldTags) + if m.FieldCleared(actionplan.FieldTags) { + fields = append(fields, actionplan.FieldTags) } - if m.FieldCleared(contact.FieldOwnerID) { - fields = append(fields, contact.FieldOwnerID) + if m.FieldCleared(actionplan.FieldDescription) { + fields = append(fields, actionplan.FieldDescription) } - if m.FieldCleared(contact.FieldTitle) { - fields = append(fields, contact.FieldTitle) + if m.FieldCleared(actionplan.FieldStatus) { + fields = append(fields, actionplan.FieldStatus) } - if m.FieldCleared(contact.FieldCompany) { - fields = append(fields, contact.FieldCompany) + if m.FieldCleared(actionplan.FieldDueDate) { + fields = append(fields, actionplan.FieldDueDate) } - if m.FieldCleared(contact.FieldEmail) { - fields = append(fields, contact.FieldEmail) + if m.FieldCleared(actionplan.FieldPriority) { + fields = append(fields, actionplan.FieldPriority) } - if m.FieldCleared(contact.FieldPhoneNumber) { - fields = append(fields, contact.FieldPhoneNumber) + if m.FieldCleared(actionplan.FieldSource) { + fields = append(fields, actionplan.FieldSource) } - if m.FieldCleared(contact.FieldAddress) { - fields = append(fields, contact.FieldAddress) + if m.FieldCleared(actionplan.FieldDetails) { + fields = append(fields, actionplan.FieldDetails) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *ContactMutation) FieldCleared(name string) bool { +func (m *ActionPlanMutation) 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 *ContactMutation) ClearField(name string) error { +func (m *ActionPlanMutation) ClearField(name string) error { switch name { - case contact.FieldCreatedAt: + case actionplan.FieldCreatedAt: m.ClearCreatedAt() return nil - case contact.FieldUpdatedAt: + case actionplan.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case contact.FieldCreatedBy: + case actionplan.FieldCreatedBy: m.ClearCreatedBy() return nil - case contact.FieldUpdatedBy: + case actionplan.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case contact.FieldDeletedAt: + case actionplan.FieldDeletedAt: m.ClearDeletedAt() return nil - case contact.FieldDeletedBy: + case actionplan.FieldDeletedBy: m.ClearDeletedBy() return nil - case contact.FieldTags: + case actionplan.FieldTags: m.ClearTags() return nil - case contact.FieldOwnerID: - m.ClearOwnerID() + case actionplan.FieldDescription: + m.ClearDescription() return nil - case contact.FieldTitle: - m.ClearTitle() + case actionplan.FieldStatus: + m.ClearStatus() return nil - case contact.FieldCompany: - m.ClearCompany() + case actionplan.FieldDueDate: + m.ClearDueDate() return nil - case contact.FieldEmail: - m.ClearEmail() + case actionplan.FieldPriority: + m.ClearPriority() return nil - case contact.FieldPhoneNumber: - m.ClearPhoneNumber() + case actionplan.FieldSource: + m.ClearSource() return nil - case contact.FieldAddress: - m.ClearAddress() + case actionplan.FieldDetails: + m.ClearDetails() return nil } - return fmt.Errorf("unknown Contact nullable field %s", name) + return fmt.Errorf("unknown ActionPlan 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 *ContactMutation) ResetField(name string) error { +func (m *ActionPlanMutation) ResetField(name string) error { switch name { - case contact.FieldCreatedAt: + case actionplan.FieldCreatedAt: m.ResetCreatedAt() return nil - case contact.FieldUpdatedAt: + case actionplan.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case contact.FieldCreatedBy: + case actionplan.FieldCreatedBy: m.ResetCreatedBy() return nil - case contact.FieldUpdatedBy: + case actionplan.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case contact.FieldMappingID: - m.ResetMappingID() - return nil - case contact.FieldDeletedAt: + case actionplan.FieldDeletedAt: m.ResetDeletedAt() return nil - case contact.FieldDeletedBy: + case actionplan.FieldDeletedBy: m.ResetDeletedBy() return nil - case contact.FieldTags: - m.ResetTags() + case actionplan.FieldMappingID: + m.ResetMappingID() return nil - case contact.FieldOwnerID: - m.ResetOwnerID() + case actionplan.FieldTags: + m.ResetTags() return nil - case contact.FieldFullName: - m.ResetFullName() + case actionplan.FieldName: + m.ResetName() return nil - case contact.FieldTitle: - m.ResetTitle() + case actionplan.FieldDescription: + m.ResetDescription() return nil - case contact.FieldCompany: - m.ResetCompany() + case actionplan.FieldStatus: + m.ResetStatus() return nil - case contact.FieldEmail: - m.ResetEmail() + case actionplan.FieldDueDate: + m.ResetDueDate() return nil - case contact.FieldPhoneNumber: - m.ResetPhoneNumber() + case actionplan.FieldPriority: + m.ResetPriority() return nil - case contact.FieldAddress: - m.ResetAddress() + case actionplan.FieldSource: + m.ResetSource() return nil - case contact.FieldStatus: - m.ResetStatus() + case actionplan.FieldDetails: + m.ResetDetails() return nil } - return fmt.Errorf("unknown Contact field %s", name) + return fmt.Errorf("unknown ActionPlan field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *ContactMutation) AddedEdges() []string { - edges := make([]string, 0, 3) - if m.owner != nil { - edges = append(edges, contact.EdgeOwner) +func (m *ActionPlanMutation) AddedEdges() []string { + edges := make([]string, 0, 4) + if m.standard != nil { + edges = append(edges, actionplan.EdgeStandard) } - if m.entities != nil { - edges = append(edges, contact.EdgeEntities) + if m.risk != nil { + edges = append(edges, actionplan.EdgeRisk) } - if m.files != nil { - edges = append(edges, contact.EdgeFiles) + if m.control != nil { + edges = append(edges, actionplan.EdgeControl) + } + if m.user != nil { + edges = append(edges, actionplan.EdgeUser) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *ContactMutation) AddedIDs(name string) []ent.Value { +func (m *ActionPlanMutation) AddedIDs(name string) []ent.Value { switch name { - case contact.EdgeOwner: - if id := m.owner; id != nil { - return []ent.Value{*id} + case actionplan.EdgeStandard: + ids := make([]ent.Value, 0, len(m.standard)) + for id := range m.standard { + ids = append(ids, id) } - case contact.EdgeEntities: - ids := make([]ent.Value, 0, len(m.entities)) - for id := range m.entities { + return ids + case actionplan.EdgeRisk: + ids := make([]ent.Value, 0, len(m.risk)) + for id := range m.risk { ids = append(ids, id) } return ids - case contact.EdgeFiles: - ids := make([]ent.Value, 0, len(m.files)) - for id := range m.files { + case actionplan.EdgeControl: + ids := make([]ent.Value, 0, len(m.control)) + for id := range m.control { + ids = append(ids, id) + } + return ids + case actionplan.EdgeUser: + ids := make([]ent.Value, 0, len(m.user)) + for id := range m.user { ids = append(ids, id) } return ids @@ -3092,30 +3171,48 @@ 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, 3) - if m.removedentities != nil { - edges = append(edges, contact.EdgeEntities) +func (m *ActionPlanMutation) RemovedEdges() []string { + edges := make([]string, 0, 4) + if m.removedstandard != nil { + edges = append(edges, actionplan.EdgeStandard) } - if m.removedfiles != nil { - edges = append(edges, contact.EdgeFiles) + if m.removedrisk != nil { + edges = append(edges, actionplan.EdgeRisk) + } + if m.removedcontrol != nil { + edges = append(edges, actionplan.EdgeControl) + } + if m.removeduser != nil { + edges = append(edges, actionplan.EdgeUser) } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *ContactMutation) RemovedIDs(name string) []ent.Value { +func (m *ActionPlanMutation) RemovedIDs(name string) []ent.Value { switch name { - case contact.EdgeEntities: - ids := make([]ent.Value, 0, len(m.removedentities)) - for id := range m.removedentities { + case actionplan.EdgeStandard: + ids := make([]ent.Value, 0, len(m.removedstandard)) + for id := range m.removedstandard { ids = append(ids, id) } return ids - case contact.EdgeFiles: - ids := make([]ent.Value, 0, len(m.removedfiles)) - for id := range m.removedfiles { + case actionplan.EdgeRisk: + ids := make([]ent.Value, 0, len(m.removedrisk)) + for id := range m.removedrisk { + ids = append(ids, id) + } + return ids + case actionplan.EdgeControl: + ids := make([]ent.Value, 0, len(m.removedcontrol)) + for id := range m.removedcontrol { + ids = append(ids, id) + } + return ids + case actionplan.EdgeUser: + ids := make([]ent.Value, 0, len(m.removeduser)) + for id := range m.removeduser { ids = append(ids, id) } return ids @@ -3124,64 +3221,69 @@ 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, 3) - if m.clearedowner { - edges = append(edges, contact.EdgeOwner) +func (m *ActionPlanMutation) ClearedEdges() []string { + edges := make([]string, 0, 4) + if m.clearedstandard { + edges = append(edges, actionplan.EdgeStandard) } - if m.clearedentities { - edges = append(edges, contact.EdgeEntities) + if m.clearedrisk { + edges = append(edges, actionplan.EdgeRisk) } - if m.clearedfiles { - edges = append(edges, contact.EdgeFiles) + if m.clearedcontrol { + edges = append(edges, actionplan.EdgeControl) + } + if m.cleareduser { + edges = append(edges, actionplan.EdgeUser) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *ContactMutation) EdgeCleared(name string) bool { +func (m *ActionPlanMutation) EdgeCleared(name string) bool { switch name { - case contact.EdgeOwner: - return m.clearedowner - case contact.EdgeEntities: - return m.clearedentities - case contact.EdgeFiles: - return m.clearedfiles + case actionplan.EdgeStandard: + return m.clearedstandard + case actionplan.EdgeRisk: + return m.clearedrisk + case actionplan.EdgeControl: + return m.clearedcontrol + case actionplan.EdgeUser: + return m.cleareduser } 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 *ContactMutation) ClearEdge(name string) error { +func (m *ActionPlanMutation) ClearEdge(name string) error { switch name { - case contact.EdgeOwner: - m.ClearOwner() - return nil } - return fmt.Errorf("unknown Contact unique edge %s", name) + return fmt.Errorf("unknown ActionPlan 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 *ContactMutation) ResetEdge(name string) error { +func (m *ActionPlanMutation) ResetEdge(name string) error { switch name { - case contact.EdgeOwner: - m.ResetOwner() + case actionplan.EdgeStandard: + m.ResetStandard() return nil - case contact.EdgeEntities: - m.ResetEntities() + case actionplan.EdgeRisk: + m.ResetRisk() return nil - case contact.EdgeFiles: - m.ResetFiles() + case actionplan.EdgeControl: + m.ResetControl() + return nil + case actionplan.EdgeUser: + m.ResetUser() return nil } - return fmt.Errorf("unknown Contact edge %s", name) + return fmt.Errorf("unknown ActionPlan edge %s", name) } -// ContactHistoryMutation represents an operation that mutates the ContactHistory nodes in the graph. -type ContactHistoryMutation struct { +// ActionPlanHistoryMutation represents an operation that mutates the ActionPlanHistory nodes in the graph. +type ActionPlanHistoryMutation struct { config op Op typ string @@ -3193,36 +3295,35 @@ type ContactHistoryMutation struct { updated_at *time.Time created_by *string updated_by *string - mapping_id *string deleted_at *time.Time deleted_by *string + mapping_id *string tags *[]string appendtags []string - owner_id *string - full_name *string - title *string - company *string - email *string - phone_number *string - address *string - status *enums.UserStatus + name *string + description *string + status *string + due_date *time.Time + priority *string + source *string + details *map[string]interface{} clearedFields map[string]struct{} done bool - oldValue func(context.Context) (*ContactHistory, error) - predicates []predicate.ContactHistory + oldValue func(context.Context) (*ActionPlanHistory, error) + predicates []predicate.ActionPlanHistory } -var _ ent.Mutation = (*ContactHistoryMutation)(nil) +var _ ent.Mutation = (*ActionPlanHistoryMutation)(nil) -// contacthistoryOption allows management of the mutation configuration using functional options. -type contacthistoryOption func(*ContactHistoryMutation) +// actionplanhistoryOption allows management of the mutation configuration using functional options. +type actionplanhistoryOption func(*ActionPlanHistoryMutation) -// newContactHistoryMutation creates new mutation for the ContactHistory entity. -func newContactHistoryMutation(c config, op Op, opts ...contacthistoryOption) *ContactHistoryMutation { - m := &ContactHistoryMutation{ +// newActionPlanHistoryMutation creates new mutation for the ActionPlanHistory entity. +func newActionPlanHistoryMutation(c config, op Op, opts ...actionplanhistoryOption) *ActionPlanHistoryMutation { + m := &ActionPlanHistoryMutation{ config: c, op: op, - typ: TypeContactHistory, + typ: TypeActionPlanHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -3231,20 +3332,20 @@ func newContactHistoryMutation(c config, op Op, opts ...contacthistoryOption) *C return m } -// withContactHistoryID sets the ID field of the mutation. -func withContactHistoryID(id string) contacthistoryOption { - return func(m *ContactHistoryMutation) { +// withActionPlanHistoryID sets the ID field of the mutation. +func withActionPlanHistoryID(id string) actionplanhistoryOption { + return func(m *ActionPlanHistoryMutation) { var ( err error once sync.Once - value *ContactHistory + value *ActionPlanHistory ) - m.oldValue = func(ctx context.Context) (*ContactHistory, error) { + m.oldValue = func(ctx context.Context) (*ActionPlanHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().ContactHistory.Get(ctx, id) + value, err = m.Client().ActionPlanHistory.Get(ctx, id) } }) return value, err @@ -3253,10 +3354,10 @@ func withContactHistoryID(id string) contacthistoryOption { } } -// withContactHistory sets the old ContactHistory of the mutation. -func withContactHistory(node *ContactHistory) contacthistoryOption { - return func(m *ContactHistoryMutation) { - m.oldValue = func(context.Context) (*ContactHistory, error) { +// withActionPlanHistory sets the old ActionPlanHistory of the mutation. +func withActionPlanHistory(node *ActionPlanHistory) actionplanhistoryOption { + return func(m *ActionPlanHistoryMutation) { + m.oldValue = func(context.Context) (*ActionPlanHistory, error) { return node, nil } m.id = &node.ID @@ -3265,7 +3366,7 @@ func withContactHistory(node *ContactHistory) contacthistoryOption { // 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 ContactHistoryMutation) Client() *Client { +func (m ActionPlanHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -3273,7 +3374,7 @@ func (m ContactHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m ContactHistoryMutation) Tx() (*Tx, error) { +func (m ActionPlanHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -3283,14 +3384,14 @@ func (m ContactHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of ContactHistory entities. -func (m *ContactHistoryMutation) SetID(id string) { +// operation is only accepted on creation of ActionPlanHistory entities. +func (m *ActionPlanHistoryMutation) 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 *ContactHistoryMutation) ID() (id string, exists bool) { +func (m *ActionPlanHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -3301,7 +3402,7 @@ func (m *ContactHistoryMutation) ID() (id string, exists bool) { // 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 *ContactHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *ActionPlanHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -3310,19 +3411,19 @@ func (m *ContactHistoryMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().ContactHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().ActionPlanHistory.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 *ContactHistoryMutation) SetHistoryTime(t time.Time) { +func (m *ActionPlanHistoryMutation) SetHistoryTime(t time.Time) { m.history_time = &t } // HistoryTime returns the value of the "history_time" field in the mutation. -func (m *ContactHistoryMutation) HistoryTime() (r time.Time, exists bool) { +func (m *ActionPlanHistoryMutation) HistoryTime() (r time.Time, exists bool) { v := m.history_time if v == nil { return @@ -3330,10 +3431,10 @@ func (m *ContactHistoryMutation) HistoryTime() (r time.Time, exists bool) { return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *ActionPlanHistoryMutation) 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") } @@ -3348,17 +3449,17 @@ func (m *ContactHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Tim } // ResetHistoryTime resets all changes to the "history_time" field. -func (m *ContactHistoryMutation) ResetHistoryTime() { +func (m *ActionPlanHistoryMutation) ResetHistoryTime() { m.history_time = nil } // SetRef sets the "ref" field. -func (m *ContactHistoryMutation) SetRef(s string) { +func (m *ActionPlanHistoryMutation) SetRef(s string) { m.ref = &s } // Ref returns the value of the "ref" field in the mutation. -func (m *ContactHistoryMutation) Ref() (r string, exists bool) { +func (m *ActionPlanHistoryMutation) Ref() (r string, exists bool) { v := m.ref if v == nil { return @@ -3366,10 +3467,10 @@ func (m *ContactHistoryMutation) Ref() (r string, exists bool) { return *v, true } -// OldRef returns the old "ref" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *ActionPlanHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldRef is only allowed on UpdateOne operations") } @@ -3384,30 +3485,30 @@ func (m *ContactHistoryMutation) OldRef(ctx context.Context) (v string, err erro } // ClearRef clears the value of the "ref" field. -func (m *ContactHistoryMutation) ClearRef() { +func (m *ActionPlanHistoryMutation) ClearRef() { m.ref = nil - m.clearedFields[contacthistory.FieldRef] = struct{}{} + m.clearedFields[actionplanhistory.FieldRef] = struct{}{} } // RefCleared returns if the "ref" field was cleared in this mutation. -func (m *ContactHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldRef] +func (m *ActionPlanHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldRef] return ok } // ResetRef resets all changes to the "ref" field. -func (m *ContactHistoryMutation) ResetRef() { +func (m *ActionPlanHistoryMutation) ResetRef() { m.ref = nil - delete(m.clearedFields, contacthistory.FieldRef) + delete(m.clearedFields, actionplanhistory.FieldRef) } // SetOperation sets the "operation" field. -func (m *ContactHistoryMutation) SetOperation(ht history.OpType) { +func (m *ActionPlanHistoryMutation) SetOperation(ht history.OpType) { m.operation = &ht } // Operation returns the value of the "operation" field in the mutation. -func (m *ContactHistoryMutation) Operation() (r history.OpType, exists bool) { +func (m *ActionPlanHistoryMutation) Operation() (r history.OpType, exists bool) { v := m.operation if v == nil { return @@ -3415,10 +3516,10 @@ func (m *ContactHistoryMutation) Operation() (r history.OpType, exists bool) { return *v, true } -// OldOperation returns the old "operation" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *ActionPlanHistoryMutation) 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") } @@ -3433,17 +3534,17 @@ func (m *ContactHistoryMutation) OldOperation(ctx context.Context) (v history.Op } // ResetOperation resets all changes to the "operation" field. -func (m *ContactHistoryMutation) ResetOperation() { +func (m *ActionPlanHistoryMutation) ResetOperation() { m.operation = nil } // SetCreatedAt sets the "created_at" field. -func (m *ContactHistoryMutation) SetCreatedAt(t time.Time) { +func (m *ActionPlanHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *ContactHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *ActionPlanHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -3451,10 +3552,10 @@ func (m *ContactHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ActionPlanHistoryMutation) 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") } @@ -3469,30 +3570,30 @@ func (m *ContactHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, } // ClearCreatedAt clears the value of the "created_at" field. -func (m *ContactHistoryMutation) ClearCreatedAt() { +func (m *ActionPlanHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[contacthistory.FieldCreatedAt] = struct{}{} + m.clearedFields[actionplanhistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *ContactHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldCreatedAt] +func (m *ActionPlanHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *ContactHistoryMutation) ResetCreatedAt() { +func (m *ActionPlanHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, contacthistory.FieldCreatedAt) + delete(m.clearedFields, actionplanhistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *ContactHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *ActionPlanHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *ContactHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *ActionPlanHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -3500,10 +3601,10 @@ func (m *ContactHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ActionPlanHistoryMutation) 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") } @@ -3518,30 +3619,30 @@ func (m *ContactHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *ContactHistoryMutation) ClearUpdatedAt() { +func (m *ActionPlanHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[contacthistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[actionplanhistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *ContactHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldUpdatedAt] +func (m *ActionPlanHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *ContactHistoryMutation) ResetUpdatedAt() { +func (m *ActionPlanHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, contacthistory.FieldUpdatedAt) + delete(m.clearedFields, actionplanhistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *ContactHistoryMutation) SetCreatedBy(s string) { +func (m *ActionPlanHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *ContactHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *ActionPlanHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -3549,10 +3650,10 @@ func (m *ContactHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *ActionPlanHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -3567,30 +3668,30 @@ func (m *ContactHistoryMutation) OldCreatedBy(ctx context.Context) (v string, er } // ClearCreatedBy clears the value of the "created_by" field. -func (m *ContactHistoryMutation) ClearCreatedBy() { +func (m *ActionPlanHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[contacthistory.FieldCreatedBy] = struct{}{} + m.clearedFields[actionplanhistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *ContactHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldCreatedBy] +func (m *ActionPlanHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *ContactHistoryMutation) ResetCreatedBy() { +func (m *ActionPlanHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, contacthistory.FieldCreatedBy) + delete(m.clearedFields, actionplanhistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *ContactHistoryMutation) SetUpdatedBy(s string) { +func (m *ActionPlanHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *ContactHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *ActionPlanHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -3598,10 +3699,10 @@ func (m *ContactHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *ActionPlanHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -3616,115 +3717,79 @@ func (m *ContactHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, er } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *ContactHistoryMutation) ClearUpdatedBy() { +func (m *ActionPlanHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[contacthistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[actionplanhistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *ContactHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldUpdatedBy] +func (m *ActionPlanHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *ContactHistoryMutation) ResetUpdatedBy() { +func (m *ActionPlanHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, contacthistory.FieldUpdatedBy) + delete(m.clearedFields, actionplanhistory.FieldUpdatedBy) } -// SetMappingID sets the "mapping_id" field. -func (m *ContactHistoryMutation) SetMappingID(s string) { - m.mapping_id = &s +// SetDeletedAt sets the "deleted_at" field. +func (m *ActionPlanHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t } -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *ContactHistoryMutation) MappingID() (r string, exists bool) { - v := m.mapping_id +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *ActionPlanHistoryMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at if v == nil { return } return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *ActionPlanHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") + 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 OldMappingID: %w", err) + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) } - return oldValue.MappingID, nil + return oldValue.DeletedAt, nil } -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *ContactHistoryMutation) ResetMappingID() { - m.mapping_id = nil +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *ActionPlanHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[actionplanhistory.FieldDeletedAt] = struct{}{} } -// SetDeletedAt sets the "deleted_at" field. -func (m *ContactHistoryMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t -} - -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *ContactHistoryMutation) 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 ContactHistory entity. -// If the ContactHistory 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 *ContactHistoryMutation) 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 *ContactHistoryMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[contacthistory.FieldDeletedAt] = struct{}{} -} - -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *ContactHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldDeletedAt] - return ok +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *ActionPlanHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldDeletedAt] + return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *ContactHistoryMutation) ResetDeletedAt() { +func (m *ActionPlanHistoryMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, contacthistory.FieldDeletedAt) + delete(m.clearedFields, actionplanhistory.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *ContactHistoryMutation) SetDeletedBy(s string) { +func (m *ActionPlanHistoryMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *ContactHistoryMutation) DeletedBy() (r string, exists bool) { +func (m *ActionPlanHistoryMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -3732,10 +3797,10 @@ func (m *ContactHistoryMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *ActionPlanHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -3750,31 +3815,67 @@ func (m *ContactHistoryMutation) OldDeletedBy(ctx context.Context) (v string, er } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *ContactHistoryMutation) ClearDeletedBy() { +func (m *ActionPlanHistoryMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[contacthistory.FieldDeletedBy] = struct{}{} + m.clearedFields[actionplanhistory.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *ContactHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldDeletedBy] +func (m *ActionPlanHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *ContactHistoryMutation) ResetDeletedBy() { +func (m *ActionPlanHistoryMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, contacthistory.FieldDeletedBy) + delete(m.clearedFields, actionplanhistory.FieldDeletedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *ActionPlanHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *ActionPlanHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ActionPlanHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *ActionPlanHistoryMutation) ResetMappingID() { + m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *ContactHistoryMutation) SetTags(s []string) { +func (m *ActionPlanHistoryMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *ContactHistoryMutation) Tags() (r []string, exists bool) { +func (m *ActionPlanHistoryMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -3782,10 +3883,10 @@ func (m *ContactHistoryMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *ActionPlanHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -3800,12 +3901,12 @@ func (m *ContactHistoryMutation) OldTags(ctx context.Context) (v []string, err e } // AppendTags adds s to the "tags" field. -func (m *ContactHistoryMutation) AppendTags(s []string) { +func (m *ActionPlanHistoryMutation) 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 *ContactHistoryMutation) AppendedTags() ([]string, bool) { +func (m *ActionPlanHistoryMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -3813,400 +3914,364 @@ func (m *ContactHistoryMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *ContactHistoryMutation) ClearTags() { +func (m *ActionPlanHistoryMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[contacthistory.FieldTags] = struct{}{} + m.clearedFields[actionplanhistory.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *ContactHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldTags] +func (m *ActionPlanHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *ContactHistoryMutation) ResetTags() { +func (m *ActionPlanHistoryMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, contacthistory.FieldTags) -} - -// SetOwnerID sets the "owner_id" field. -func (m *ContactHistoryMutation) SetOwnerID(s string) { - m.owner_id = &s -} - -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *ContactHistoryMutation) 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 ContactHistory entity. -// If the ContactHistory 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 *ContactHistoryMutation) 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 *ContactHistoryMutation) ClearOwnerID() { - m.owner_id = nil - m.clearedFields[contacthistory.FieldOwnerID] = struct{}{} -} - -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *ContactHistoryMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldOwnerID] - return ok -} - -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *ContactHistoryMutation) ResetOwnerID() { - m.owner_id = nil - delete(m.clearedFields, contacthistory.FieldOwnerID) + delete(m.clearedFields, actionplanhistory.FieldTags) } -// SetFullName sets the "full_name" field. -func (m *ContactHistoryMutation) SetFullName(s string) { - m.full_name = &s +// SetName sets the "name" field. +func (m *ActionPlanHistoryMutation) SetName(s string) { + m.name = &s } -// FullName returns the value of the "full_name" field in the mutation. -func (m *ContactHistoryMutation) FullName() (r string, exists bool) { - v := m.full_name +// Name returns the value of the "name" field in the mutation. +func (m *ActionPlanHistoryMutation) Name() (r string, exists bool) { + v := m.name if v == nil { return } return *v, true } -// OldFullName returns the old "full_name" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldFullName(ctx context.Context) (v string, err error) { +func (m *ActionPlanHistoryMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldFullName is only allowed on UpdateOne operations") + return v, errors.New("OldName 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") + 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 OldFullName: %w", err) + return v, fmt.Errorf("querying old value for OldName: %w", err) } - return oldValue.FullName, nil + return oldValue.Name, nil } -// ResetFullName resets all changes to the "full_name" field. -func (m *ContactHistoryMutation) ResetFullName() { - m.full_name = nil +// ResetName resets all changes to the "name" field. +func (m *ActionPlanHistoryMutation) ResetName() { + m.name = nil } -// SetTitle sets the "title" field. -func (m *ContactHistoryMutation) SetTitle(s string) { - m.title = &s +// SetDescription sets the "description" field. +func (m *ActionPlanHistoryMutation) SetDescription(s string) { + m.description = &s } -// Title returns the value of the "title" field in the mutation. -func (m *ContactHistoryMutation) Title() (r string, exists bool) { - v := m.title +// Description returns the value of the "description" field in the mutation. +func (m *ActionPlanHistoryMutation) Description() (r string, exists bool) { + v := m.description if v == nil { return } return *v, true } -// OldTitle returns the old "title" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldTitle(ctx context.Context) (v string, err error) { +func (m *ActionPlanHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTitle is only allowed on UpdateOne operations") + return v, errors.New("OldDescription is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldTitle requires an ID field in the mutation") + 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 OldTitle: %w", err) + return v, fmt.Errorf("querying old value for OldDescription: %w", err) } - return oldValue.Title, nil + return oldValue.Description, nil } -// ClearTitle clears the value of the "title" field. -func (m *ContactHistoryMutation) ClearTitle() { - m.title = nil - m.clearedFields[contacthistory.FieldTitle] = struct{}{} +// ClearDescription clears the value of the "description" field. +func (m *ActionPlanHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[actionplanhistory.FieldDescription] = struct{}{} } -// TitleCleared returns if the "title" field was cleared in this mutation. -func (m *ContactHistoryMutation) TitleCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldTitle] +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *ActionPlanHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldDescription] return ok } -// ResetTitle resets all changes to the "title" field. -func (m *ContactHistoryMutation) ResetTitle() { - m.title = nil - delete(m.clearedFields, contacthistory.FieldTitle) +// ResetDescription resets all changes to the "description" field. +func (m *ActionPlanHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, actionplanhistory.FieldDescription) } -// SetCompany sets the "company" field. -func (m *ContactHistoryMutation) SetCompany(s string) { - m.company = &s +// SetStatus sets the "status" field. +func (m *ActionPlanHistoryMutation) SetStatus(s string) { + m.status = &s } -// Company returns the value of the "company" field in the mutation. -func (m *ContactHistoryMutation) Company() (r string, exists bool) { - v := m.company +// Status returns the value of the "status" field in the mutation. +func (m *ActionPlanHistoryMutation) Status() (r string, exists bool) { + v := m.status if v == nil { return } return *v, true } -// OldCompany returns the old "company" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldStatus returns the old "status" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldCompany(ctx context.Context) (v string, err error) { +func (m *ActionPlanHistoryMutation) OldStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCompany is only allowed on UpdateOne operations") + return v, errors.New("OldStatus is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldCompany requires an ID field in the mutation") + return v, errors.New("OldStatus requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldCompany: %w", err) + return v, fmt.Errorf("querying old value for OldStatus: %w", err) } - return oldValue.Company, nil + return oldValue.Status, nil } -// ClearCompany clears the value of the "company" field. -func (m *ContactHistoryMutation) ClearCompany() { - m.company = nil - m.clearedFields[contacthistory.FieldCompany] = struct{}{} +// ClearStatus clears the value of the "status" field. +func (m *ActionPlanHistoryMutation) ClearStatus() { + m.status = nil + m.clearedFields[actionplanhistory.FieldStatus] = struct{}{} } -// CompanyCleared returns if the "company" field was cleared in this mutation. -func (m *ContactHistoryMutation) CompanyCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldCompany] +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *ActionPlanHistoryMutation) StatusCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldStatus] return ok } -// ResetCompany resets all changes to the "company" field. -func (m *ContactHistoryMutation) ResetCompany() { - m.company = nil - delete(m.clearedFields, contacthistory.FieldCompany) +// ResetStatus resets all changes to the "status" field. +func (m *ActionPlanHistoryMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, actionplanhistory.FieldStatus) } -// SetEmail sets the "email" field. -func (m *ContactHistoryMutation) SetEmail(s string) { - m.email = &s +// SetDueDate sets the "due_date" field. +func (m *ActionPlanHistoryMutation) SetDueDate(t time.Time) { + m.due_date = &t } -// Email returns the value of the "email" field in the mutation. -func (m *ContactHistoryMutation) Email() (r string, exists bool) { - v := m.email +// DueDate returns the value of the "due_date" field in the mutation. +func (m *ActionPlanHistoryMutation) DueDate() (r time.Time, exists bool) { + v := m.due_date if v == nil { return } return *v, true } -// OldEmail returns the old "email" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDueDate returns the old "due_date" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldEmail(ctx context.Context) (v string, err error) { +func (m *ActionPlanHistoryMutation) OldDueDate(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldEmail is only allowed on UpdateOne operations") + return v, errors.New("OldDueDate 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") + return v, errors.New("OldDueDate 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 v, fmt.Errorf("querying old value for OldDueDate: %w", err) } - return oldValue.Email, nil + return oldValue.DueDate, nil } -// ClearEmail clears the value of the "email" field. -func (m *ContactHistoryMutation) ClearEmail() { - m.email = nil - m.clearedFields[contacthistory.FieldEmail] = struct{}{} +// ClearDueDate clears the value of the "due_date" field. +func (m *ActionPlanHistoryMutation) ClearDueDate() { + m.due_date = nil + m.clearedFields[actionplanhistory.FieldDueDate] = struct{}{} } -// EmailCleared returns if the "email" field was cleared in this mutation. -func (m *ContactHistoryMutation) EmailCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldEmail] +// DueDateCleared returns if the "due_date" field was cleared in this mutation. +func (m *ActionPlanHistoryMutation) DueDateCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldDueDate] return ok } -// ResetEmail resets all changes to the "email" field. -func (m *ContactHistoryMutation) ResetEmail() { - m.email = nil - delete(m.clearedFields, contacthistory.FieldEmail) +// ResetDueDate resets all changes to the "due_date" field. +func (m *ActionPlanHistoryMutation) ResetDueDate() { + m.due_date = nil + delete(m.clearedFields, actionplanhistory.FieldDueDate) } -// SetPhoneNumber sets the "phone_number" field. -func (m *ContactHistoryMutation) SetPhoneNumber(s string) { - m.phone_number = &s +// SetPriority sets the "priority" field. +func (m *ActionPlanHistoryMutation) SetPriority(s string) { + m.priority = &s } -// PhoneNumber returns the value of the "phone_number" field in the mutation. -func (m *ContactHistoryMutation) PhoneNumber() (r string, exists bool) { - v := m.phone_number +// Priority returns the value of the "priority" field in the mutation. +func (m *ActionPlanHistoryMutation) Priority() (r string, exists bool) { + v := m.priority if v == nil { return } return *v, true } -// OldPhoneNumber returns the old "phone_number" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldPriority returns the old "priority" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldPhoneNumber(ctx context.Context) (v string, err error) { +func (m *ActionPlanHistoryMutation) OldPriority(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldPhoneNumber is only allowed on UpdateOne operations") + return v, errors.New("OldPriority is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldPhoneNumber requires an ID field in the mutation") + return v, errors.New("OldPriority requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldPhoneNumber: %w", err) + return v, fmt.Errorf("querying old value for OldPriority: %w", err) } - return oldValue.PhoneNumber, nil + return oldValue.Priority, nil } -// ClearPhoneNumber clears the value of the "phone_number" field. -func (m *ContactHistoryMutation) ClearPhoneNumber() { - m.phone_number = nil - m.clearedFields[contacthistory.FieldPhoneNumber] = struct{}{} +// ClearPriority clears the value of the "priority" field. +func (m *ActionPlanHistoryMutation) ClearPriority() { + m.priority = nil + m.clearedFields[actionplanhistory.FieldPriority] = struct{}{} } -// PhoneNumberCleared returns if the "phone_number" field was cleared in this mutation. -func (m *ContactHistoryMutation) PhoneNumberCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldPhoneNumber] +// PriorityCleared returns if the "priority" field was cleared in this mutation. +func (m *ActionPlanHistoryMutation) PriorityCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldPriority] return ok } -// ResetPhoneNumber resets all changes to the "phone_number" field. -func (m *ContactHistoryMutation) ResetPhoneNumber() { - m.phone_number = nil - delete(m.clearedFields, contacthistory.FieldPhoneNumber) +// ResetPriority resets all changes to the "priority" field. +func (m *ActionPlanHistoryMutation) ResetPriority() { + m.priority = nil + delete(m.clearedFields, actionplanhistory.FieldPriority) } -// SetAddress sets the "address" field. -func (m *ContactHistoryMutation) SetAddress(s string) { - m.address = &s +// SetSource sets the "source" field. +func (m *ActionPlanHistoryMutation) SetSource(s string) { + m.source = &s } -// Address returns the value of the "address" field in the mutation. -func (m *ContactHistoryMutation) Address() (r string, exists bool) { - v := m.address +// Source returns the value of the "source" field in the mutation. +func (m *ActionPlanHistoryMutation) Source() (r string, exists bool) { + v := m.source if v == nil { return } return *v, true } -// OldAddress returns the old "address" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldSource returns the old "source" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldAddress(ctx context.Context) (v string, err error) { +func (m *ActionPlanHistoryMutation) OldSource(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldAddress is only allowed on UpdateOne operations") + return v, errors.New("OldSource is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldAddress requires an ID field in the mutation") + return v, errors.New("OldSource requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldAddress: %w", err) + return v, fmt.Errorf("querying old value for OldSource: %w", err) } - return oldValue.Address, nil + return oldValue.Source, nil } -// ClearAddress clears the value of the "address" field. -func (m *ContactHistoryMutation) ClearAddress() { - m.address = nil - m.clearedFields[contacthistory.FieldAddress] = struct{}{} +// ClearSource clears the value of the "source" field. +func (m *ActionPlanHistoryMutation) ClearSource() { + m.source = nil + m.clearedFields[actionplanhistory.FieldSource] = struct{}{} } -// AddressCleared returns if the "address" field was cleared in this mutation. -func (m *ContactHistoryMutation) AddressCleared() bool { - _, ok := m.clearedFields[contacthistory.FieldAddress] +// SourceCleared returns if the "source" field was cleared in this mutation. +func (m *ActionPlanHistoryMutation) SourceCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldSource] return ok } -// ResetAddress resets all changes to the "address" field. -func (m *ContactHistoryMutation) ResetAddress() { - m.address = nil - delete(m.clearedFields, contacthistory.FieldAddress) +// ResetSource resets all changes to the "source" field. +func (m *ActionPlanHistoryMutation) ResetSource() { + m.source = nil + delete(m.clearedFields, actionplanhistory.FieldSource) } -// SetStatus sets the "status" field. -func (m *ContactHistoryMutation) SetStatus(es enums.UserStatus) { - m.status = &es +// SetDetails sets the "details" field. +func (m *ActionPlanHistoryMutation) SetDetails(value map[string]interface{}) { + m.details = &value } -// Status returns the value of the "status" field in the mutation. -func (m *ContactHistoryMutation) Status() (r enums.UserStatus, exists bool) { - v := m.status +// Details returns the value of the "details" field in the mutation. +func (m *ActionPlanHistoryMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details if v == nil { return } return *v, true } -// OldStatus returns the old "status" field's value of the ContactHistory entity. -// If the ContactHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDetails returns the old "details" field's value of the ActionPlanHistory entity. +// If the ActionPlanHistory 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 *ContactHistoryMutation) OldStatus(ctx context.Context) (v enums.UserStatus, err error) { +func (m *ActionPlanHistoryMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStatus is only allowed on UpdateOne operations") + return v, errors.New("OldDetails is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStatus requires an ID field in the mutation") + return v, errors.New("OldDetails requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldStatus: %w", err) + return v, fmt.Errorf("querying old value for OldDetails: %w", err) } - return oldValue.Status, nil + return oldValue.Details, nil } -// ResetStatus resets all changes to the "status" field. -func (m *ContactHistoryMutation) ResetStatus() { - m.status = nil +// ClearDetails clears the value of the "details" field. +func (m *ActionPlanHistoryMutation) ClearDetails() { + m.details = nil + m.clearedFields[actionplanhistory.FieldDetails] = struct{}{} } -// Where appends a list predicates to the ContactHistoryMutation builder. -func (m *ContactHistoryMutation) Where(ps ...predicate.ContactHistory) { +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *ActionPlanHistoryMutation) DetailsCleared() bool { + _, ok := m.clearedFields[actionplanhistory.FieldDetails] + return ok +} + +// ResetDetails resets all changes to the "details" field. +func (m *ActionPlanHistoryMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, actionplanhistory.FieldDetails) +} + +// Where appends a list predicates to the ActionPlanHistoryMutation builder. +func (m *ActionPlanHistoryMutation) Where(ps ...predicate.ActionPlanHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the ContactHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the ActionPlanHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *ContactHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.ContactHistory, len(ps)) +func (m *ActionPlanHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.ActionPlanHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -4214,81 +4279,78 @@ func (m *ContactHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *ContactHistoryMutation) Op() Op { +func (m *ActionPlanHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *ContactHistoryMutation) SetOp(op Op) { +func (m *ActionPlanHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (ContactHistory). -func (m *ContactHistoryMutation) Type() string { +// Type returns the node type of this mutation (ActionPlanHistory). +func (m *ActionPlanHistoryMutation) 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 *ContactHistoryMutation) Fields() []string { - fields := make([]string, 0, 19) +func (m *ActionPlanHistoryMutation) Fields() []string { + fields := make([]string, 0, 18) if m.history_time != nil { - fields = append(fields, contacthistory.FieldHistoryTime) + fields = append(fields, actionplanhistory.FieldHistoryTime) } if m.ref != nil { - fields = append(fields, contacthistory.FieldRef) + fields = append(fields, actionplanhistory.FieldRef) } if m.operation != nil { - fields = append(fields, contacthistory.FieldOperation) + fields = append(fields, actionplanhistory.FieldOperation) } if m.created_at != nil { - fields = append(fields, contacthistory.FieldCreatedAt) + fields = append(fields, actionplanhistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, contacthistory.FieldUpdatedAt) + fields = append(fields, actionplanhistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, contacthistory.FieldCreatedBy) + fields = append(fields, actionplanhistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, contacthistory.FieldUpdatedBy) - } - if m.mapping_id != nil { - fields = append(fields, contacthistory.FieldMappingID) + fields = append(fields, actionplanhistory.FieldUpdatedBy) } if m.deleted_at != nil { - fields = append(fields, contacthistory.FieldDeletedAt) + fields = append(fields, actionplanhistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, contacthistory.FieldDeletedBy) + fields = append(fields, actionplanhistory.FieldDeletedBy) } - if m.tags != nil { - fields = append(fields, contacthistory.FieldTags) + if m.mapping_id != nil { + fields = append(fields, actionplanhistory.FieldMappingID) } - if m.owner_id != nil { - fields = append(fields, contacthistory.FieldOwnerID) + if m.tags != nil { + fields = append(fields, actionplanhistory.FieldTags) } - if m.full_name != nil { - fields = append(fields, contacthistory.FieldFullName) + if m.name != nil { + fields = append(fields, actionplanhistory.FieldName) } - if m.title != nil { - fields = append(fields, contacthistory.FieldTitle) + if m.description != nil { + fields = append(fields, actionplanhistory.FieldDescription) } - if m.company != nil { - fields = append(fields, contacthistory.FieldCompany) + if m.status != nil { + fields = append(fields, actionplanhistory.FieldStatus) } - if m.email != nil { - fields = append(fields, contacthistory.FieldEmail) + if m.due_date != nil { + fields = append(fields, actionplanhistory.FieldDueDate) } - if m.phone_number != nil { - fields = append(fields, contacthistory.FieldPhoneNumber) + if m.priority != nil { + fields = append(fields, actionplanhistory.FieldPriority) } - if m.address != nil { - fields = append(fields, contacthistory.FieldAddress) + if m.source != nil { + fields = append(fields, actionplanhistory.FieldSource) } - if m.status != nil { - fields = append(fields, contacthistory.FieldStatus) + if m.details != nil { + fields = append(fields, actionplanhistory.FieldDetails) } return fields } @@ -4296,46 +4358,44 @@ func (m *ContactHistoryMutation) Fields() []string { // 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 *ContactHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *ActionPlanHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case contacthistory.FieldHistoryTime: + case actionplanhistory.FieldHistoryTime: return m.HistoryTime() - case contacthistory.FieldRef: + case actionplanhistory.FieldRef: return m.Ref() - case contacthistory.FieldOperation: + case actionplanhistory.FieldOperation: return m.Operation() - case contacthistory.FieldCreatedAt: + case actionplanhistory.FieldCreatedAt: return m.CreatedAt() - case contacthistory.FieldUpdatedAt: + case actionplanhistory.FieldUpdatedAt: return m.UpdatedAt() - case contacthistory.FieldCreatedBy: + case actionplanhistory.FieldCreatedBy: return m.CreatedBy() - case contacthistory.FieldUpdatedBy: + case actionplanhistory.FieldUpdatedBy: return m.UpdatedBy() - case contacthistory.FieldMappingID: - return m.MappingID() - case contacthistory.FieldDeletedAt: + case actionplanhistory.FieldDeletedAt: return m.DeletedAt() - case contacthistory.FieldDeletedBy: + case actionplanhistory.FieldDeletedBy: return m.DeletedBy() - case contacthistory.FieldTags: + case actionplanhistory.FieldMappingID: + return m.MappingID() + case actionplanhistory.FieldTags: return m.Tags() - case contacthistory.FieldOwnerID: - return m.OwnerID() - case contacthistory.FieldFullName: - return m.FullName() - case contacthistory.FieldTitle: - return m.Title() - case contacthistory.FieldCompany: - return m.Company() - case contacthistory.FieldEmail: - return m.Email() - case contacthistory.FieldPhoneNumber: - return m.PhoneNumber() - case contacthistory.FieldAddress: - return m.Address() - case contacthistory.FieldStatus: + case actionplanhistory.FieldName: + return m.Name() + case actionplanhistory.FieldDescription: + return m.Description() + case actionplanhistory.FieldStatus: return m.Status() + case actionplanhistory.FieldDueDate: + return m.DueDate() + case actionplanhistory.FieldPriority: + return m.Priority() + case actionplanhistory.FieldSource: + return m.Source() + case actionplanhistory.FieldDetails: + return m.Details() } return nil, false } @@ -4343,435 +4403,423 @@ func (m *ContactHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *ContactHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *ActionPlanHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case contacthistory.FieldHistoryTime: + case actionplanhistory.FieldHistoryTime: return m.OldHistoryTime(ctx) - case contacthistory.FieldRef: + case actionplanhistory.FieldRef: return m.OldRef(ctx) - case contacthistory.FieldOperation: + case actionplanhistory.FieldOperation: return m.OldOperation(ctx) - case contacthistory.FieldCreatedAt: + case actionplanhistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case contacthistory.FieldUpdatedAt: + case actionplanhistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case contacthistory.FieldCreatedBy: + case actionplanhistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case contacthistory.FieldUpdatedBy: + case actionplanhistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case contacthistory.FieldMappingID: - return m.OldMappingID(ctx) - case contacthistory.FieldDeletedAt: + case actionplanhistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case contacthistory.FieldDeletedBy: + case actionplanhistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case contacthistory.FieldTags: + case actionplanhistory.FieldMappingID: + return m.OldMappingID(ctx) + case actionplanhistory.FieldTags: return m.OldTags(ctx) - case contacthistory.FieldOwnerID: - return m.OldOwnerID(ctx) - case contacthistory.FieldFullName: - return m.OldFullName(ctx) - case contacthistory.FieldTitle: - return m.OldTitle(ctx) - case contacthistory.FieldCompany: - return m.OldCompany(ctx) - case contacthistory.FieldEmail: - return m.OldEmail(ctx) - case contacthistory.FieldPhoneNumber: - return m.OldPhoneNumber(ctx) - case contacthistory.FieldAddress: - return m.OldAddress(ctx) - case contacthistory.FieldStatus: + case actionplanhistory.FieldName: + return m.OldName(ctx) + case actionplanhistory.FieldDescription: + return m.OldDescription(ctx) + case actionplanhistory.FieldStatus: return m.OldStatus(ctx) + case actionplanhistory.FieldDueDate: + return m.OldDueDate(ctx) + case actionplanhistory.FieldPriority: + return m.OldPriority(ctx) + case actionplanhistory.FieldSource: + return m.OldSource(ctx) + case actionplanhistory.FieldDetails: + return m.OldDetails(ctx) } - return nil, fmt.Errorf("unknown ContactHistory field %s", name) + return nil, fmt.Errorf("unknown ActionPlanHistory 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 *ContactHistoryMutation) SetField(name string, value ent.Value) error { +func (m *ActionPlanHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case contacthistory.FieldHistoryTime: + case actionplanhistory.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 contacthistory.FieldRef: + case actionplanhistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetRef(v) return nil - case contacthistory.FieldOperation: + case actionplanhistory.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 contacthistory.FieldCreatedAt: + case actionplanhistory.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 contacthistory.FieldUpdatedAt: + case actionplanhistory.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 contacthistory.FieldCreatedBy: + case actionplanhistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case contacthistory.FieldUpdatedBy: + case actionplanhistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case contacthistory.FieldMappingID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetMappingID(v) - return nil - case contacthistory.FieldDeletedAt: + case actionplanhistory.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 contacthistory.FieldDeletedBy: + case actionplanhistory.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case contacthistory.FieldTags: - v, ok := value.([]string) + case actionplanhistory.FieldMappingID: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTags(v) + m.SetMappingID(v) return nil - case contacthistory.FieldOwnerID: - v, ok := value.(string) + case actionplanhistory.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetTags(v) return nil - case contacthistory.FieldFullName: + case actionplanhistory.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetFullName(v) + m.SetName(v) return nil - case contacthistory.FieldTitle: + case actionplanhistory.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTitle(v) + m.SetDescription(v) return nil - case contacthistory.FieldCompany: + case actionplanhistory.FieldStatus: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCompany(v) + m.SetStatus(v) return nil - case contacthistory.FieldEmail: - v, ok := value.(string) + case actionplanhistory.FieldDueDate: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetEmail(v) + m.SetDueDate(v) return nil - case contacthistory.FieldPhoneNumber: + case actionplanhistory.FieldPriority: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetPhoneNumber(v) + m.SetPriority(v) return nil - case contacthistory.FieldAddress: + case actionplanhistory.FieldSource: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetAddress(v) + m.SetSource(v) return nil - case contacthistory.FieldStatus: - v, ok := value.(enums.UserStatus) + case actionplanhistory.FieldDetails: + v, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetStatus(v) + m.SetDetails(v) return nil } - return fmt.Errorf("unknown ContactHistory field %s", name) + return fmt.Errorf("unknown ActionPlanHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *ContactHistoryMutation) AddedFields() []string { +func (m *ActionPlanHistoryMutation) 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 *ContactHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *ActionPlanHistoryMutation) 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 *ContactHistoryMutation) AddField(name string, value ent.Value) error { +func (m *ActionPlanHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown ContactHistory numeric field %s", name) + return fmt.Errorf("unknown ActionPlanHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *ContactHistoryMutation) ClearedFields() []string { +func (m *ActionPlanHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(contacthistory.FieldRef) { - fields = append(fields, contacthistory.FieldRef) + if m.FieldCleared(actionplanhistory.FieldRef) { + fields = append(fields, actionplanhistory.FieldRef) } - if m.FieldCleared(contacthistory.FieldCreatedAt) { - fields = append(fields, contacthistory.FieldCreatedAt) + if m.FieldCleared(actionplanhistory.FieldCreatedAt) { + fields = append(fields, actionplanhistory.FieldCreatedAt) } - if m.FieldCleared(contacthistory.FieldUpdatedAt) { - fields = append(fields, contacthistory.FieldUpdatedAt) + if m.FieldCleared(actionplanhistory.FieldUpdatedAt) { + fields = append(fields, actionplanhistory.FieldUpdatedAt) } - if m.FieldCleared(contacthistory.FieldCreatedBy) { - fields = append(fields, contacthistory.FieldCreatedBy) + if m.FieldCleared(actionplanhistory.FieldCreatedBy) { + fields = append(fields, actionplanhistory.FieldCreatedBy) } - if m.FieldCleared(contacthistory.FieldUpdatedBy) { - fields = append(fields, contacthistory.FieldUpdatedBy) + if m.FieldCleared(actionplanhistory.FieldUpdatedBy) { + fields = append(fields, actionplanhistory.FieldUpdatedBy) } - if m.FieldCleared(contacthistory.FieldDeletedAt) { - fields = append(fields, contacthistory.FieldDeletedAt) + if m.FieldCleared(actionplanhistory.FieldDeletedAt) { + fields = append(fields, actionplanhistory.FieldDeletedAt) } - if m.FieldCleared(contacthistory.FieldDeletedBy) { - fields = append(fields, contacthistory.FieldDeletedBy) + if m.FieldCleared(actionplanhistory.FieldDeletedBy) { + fields = append(fields, actionplanhistory.FieldDeletedBy) } - if m.FieldCleared(contacthistory.FieldTags) { - fields = append(fields, contacthistory.FieldTags) + if m.FieldCleared(actionplanhistory.FieldTags) { + fields = append(fields, actionplanhistory.FieldTags) } - if m.FieldCleared(contacthistory.FieldOwnerID) { - fields = append(fields, contacthistory.FieldOwnerID) + if m.FieldCleared(actionplanhistory.FieldDescription) { + fields = append(fields, actionplanhistory.FieldDescription) } - if m.FieldCleared(contacthistory.FieldTitle) { - fields = append(fields, contacthistory.FieldTitle) + if m.FieldCleared(actionplanhistory.FieldStatus) { + fields = append(fields, actionplanhistory.FieldStatus) } - if m.FieldCleared(contacthistory.FieldCompany) { - fields = append(fields, contacthistory.FieldCompany) + if m.FieldCleared(actionplanhistory.FieldDueDate) { + fields = append(fields, actionplanhistory.FieldDueDate) } - if m.FieldCleared(contacthistory.FieldEmail) { - fields = append(fields, contacthistory.FieldEmail) + if m.FieldCleared(actionplanhistory.FieldPriority) { + fields = append(fields, actionplanhistory.FieldPriority) } - if m.FieldCleared(contacthistory.FieldPhoneNumber) { - fields = append(fields, contacthistory.FieldPhoneNumber) + if m.FieldCleared(actionplanhistory.FieldSource) { + fields = append(fields, actionplanhistory.FieldSource) } - if m.FieldCleared(contacthistory.FieldAddress) { - fields = append(fields, contacthistory.FieldAddress) + if m.FieldCleared(actionplanhistory.FieldDetails) { + fields = append(fields, actionplanhistory.FieldDetails) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *ContactHistoryMutation) FieldCleared(name string) bool { +func (m *ActionPlanHistoryMutation) 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 *ContactHistoryMutation) ClearField(name string) error { +func (m *ActionPlanHistoryMutation) ClearField(name string) error { switch name { - case contacthistory.FieldRef: + case actionplanhistory.FieldRef: m.ClearRef() return nil - case contacthistory.FieldCreatedAt: + case actionplanhistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case contacthistory.FieldUpdatedAt: + case actionplanhistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case contacthistory.FieldCreatedBy: + case actionplanhistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case contacthistory.FieldUpdatedBy: + case actionplanhistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case contacthistory.FieldDeletedAt: + case actionplanhistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case contacthistory.FieldDeletedBy: + case actionplanhistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case contacthistory.FieldTags: + case actionplanhistory.FieldTags: m.ClearTags() return nil - case contacthistory.FieldOwnerID: - m.ClearOwnerID() + case actionplanhistory.FieldDescription: + m.ClearDescription() return nil - case contacthistory.FieldTitle: - m.ClearTitle() + case actionplanhistory.FieldStatus: + m.ClearStatus() return nil - case contacthistory.FieldCompany: - m.ClearCompany() + case actionplanhistory.FieldDueDate: + m.ClearDueDate() return nil - case contacthistory.FieldEmail: - m.ClearEmail() + case actionplanhistory.FieldPriority: + m.ClearPriority() return nil - case contacthistory.FieldPhoneNumber: - m.ClearPhoneNumber() + case actionplanhistory.FieldSource: + m.ClearSource() return nil - case contacthistory.FieldAddress: - m.ClearAddress() + case actionplanhistory.FieldDetails: + m.ClearDetails() return nil } - return fmt.Errorf("unknown ContactHistory nullable field %s", name) + return fmt.Errorf("unknown ActionPlanHistory 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 *ContactHistoryMutation) ResetField(name string) error { +func (m *ActionPlanHistoryMutation) ResetField(name string) error { switch name { - case contacthistory.FieldHistoryTime: + case actionplanhistory.FieldHistoryTime: m.ResetHistoryTime() return nil - case contacthistory.FieldRef: + case actionplanhistory.FieldRef: m.ResetRef() return nil - case contacthistory.FieldOperation: + case actionplanhistory.FieldOperation: m.ResetOperation() return nil - case contacthistory.FieldCreatedAt: + case actionplanhistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case contacthistory.FieldUpdatedAt: + case actionplanhistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case contacthistory.FieldCreatedBy: + case actionplanhistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case contacthistory.FieldUpdatedBy: + case actionplanhistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case contacthistory.FieldMappingID: - m.ResetMappingID() - return nil - case contacthistory.FieldDeletedAt: + case actionplanhistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case contacthistory.FieldDeletedBy: + case actionplanhistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case contacthistory.FieldTags: - m.ResetTags() + case actionplanhistory.FieldMappingID: + m.ResetMappingID() return nil - case contacthistory.FieldOwnerID: - m.ResetOwnerID() + case actionplanhistory.FieldTags: + m.ResetTags() return nil - case contacthistory.FieldFullName: - m.ResetFullName() + case actionplanhistory.FieldName: + m.ResetName() return nil - case contacthistory.FieldTitle: - m.ResetTitle() + case actionplanhistory.FieldDescription: + m.ResetDescription() return nil - case contacthistory.FieldCompany: - m.ResetCompany() + case actionplanhistory.FieldStatus: + m.ResetStatus() return nil - case contacthistory.FieldEmail: - m.ResetEmail() + case actionplanhistory.FieldDueDate: + m.ResetDueDate() return nil - case contacthistory.FieldPhoneNumber: - m.ResetPhoneNumber() + case actionplanhistory.FieldPriority: + m.ResetPriority() return nil - case contacthistory.FieldAddress: - m.ResetAddress() + case actionplanhistory.FieldSource: + m.ResetSource() return nil - case contacthistory.FieldStatus: - m.ResetStatus() + case actionplanhistory.FieldDetails: + m.ResetDetails() return nil } - return fmt.Errorf("unknown ContactHistory field %s", name) + return fmt.Errorf("unknown ActionPlanHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *ContactHistoryMutation) AddedEdges() []string { +func (m *ActionPlanHistoryMutation) 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 *ContactHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *ActionPlanHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *ContactHistoryMutation) RemovedEdges() []string { +func (m *ActionPlanHistoryMutation) 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 *ContactHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *ActionPlanHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *ContactHistoryMutation) ClearedEdges() []string { +func (m *ActionPlanHistoryMutation) 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 *ContactHistoryMutation) EdgeCleared(name string) bool { +func (m *ActionPlanHistoryMutation) 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 *ContactHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown ContactHistory unique edge %s", name) +func (m *ActionPlanHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown ActionPlanHistory 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 *ContactHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown ContactHistory edge %s", name) +func (m *ActionPlanHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown ActionPlanHistory edge %s", name) } -// DocumentDataMutation represents an operation that mutates the DocumentData nodes in the graph. -type DocumentDataMutation struct { +// ContactMutation represents an operation that mutates the Contact nodes in the graph. +type ContactMutation struct { config op Op typ string @@ -4781,38 +4829,42 @@ type DocumentDataMutation struct { created_by *string updated_by *string mapping_id *string - tags *[]string - appendtags []string deleted_at *time.Time deleted_by *string - data *customtypes.JSONObject + tags *[]string + appendtags []string + full_name *string + title *string + company *string + email *string + phone_number *string + address *string + status *enums.UserStatus clearedFields map[string]struct{} owner *string clearedowner bool - template *string - clearedtemplate bool - entity map[string]struct{} - removedentity map[string]struct{} - clearedentity bool + entities map[string]struct{} + removedentities map[string]struct{} + clearedentities bool files map[string]struct{} removedfiles map[string]struct{} clearedfiles bool done bool - oldValue func(context.Context) (*DocumentData, error) - predicates []predicate.DocumentData + oldValue func(context.Context) (*Contact, error) + predicates []predicate.Contact } -var _ ent.Mutation = (*DocumentDataMutation)(nil) +var _ ent.Mutation = (*ContactMutation)(nil) -// documentdataOption allows management of the mutation configuration using functional options. -type documentdataOption func(*DocumentDataMutation) +// contactOption allows management of the mutation configuration using functional options. +type contactOption func(*ContactMutation) -// newDocumentDataMutation creates new mutation for the DocumentData entity. -func newDocumentDataMutation(c config, op Op, opts ...documentdataOption) *DocumentDataMutation { - m := &DocumentDataMutation{ +// newContactMutation creates new mutation for the Contact entity. +func newContactMutation(c config, op Op, opts ...contactOption) *ContactMutation { + m := &ContactMutation{ config: c, op: op, - typ: TypeDocumentData, + typ: TypeContact, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -4821,20 +4873,20 @@ func newDocumentDataMutation(c config, op Op, opts ...documentdataOption) *Docum return m } -// withDocumentDataID sets the ID field of the mutation. -func withDocumentDataID(id string) documentdataOption { - return func(m *DocumentDataMutation) { +// withContactID sets the ID field of the mutation. +func withContactID(id string) contactOption { + return func(m *ContactMutation) { var ( err error once sync.Once - value *DocumentData + value *Contact ) - m.oldValue = func(ctx context.Context) (*DocumentData, error) { + m.oldValue = func(ctx context.Context) (*Contact, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().DocumentData.Get(ctx, id) + value, err = m.Client().Contact.Get(ctx, id) } }) return value, err @@ -4843,10 +4895,10 @@ func withDocumentDataID(id string) documentdataOption { } } -// withDocumentData sets the old DocumentData of the mutation. -func withDocumentData(node *DocumentData) documentdataOption { - return func(m *DocumentDataMutation) { - m.oldValue = func(context.Context) (*DocumentData, error) { +// withContact sets the old Contact of the mutation. +func withContact(node *Contact) contactOption { + return func(m *ContactMutation) { + m.oldValue = func(context.Context) (*Contact, error) { return node, nil } m.id = &node.ID @@ -4855,7 +4907,7 @@ func withDocumentData(node *DocumentData) documentdataOption { // 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 DocumentDataMutation) Client() *Client { +func (m ContactMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -4863,7 +4915,7 @@ func (m DocumentDataMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m DocumentDataMutation) Tx() (*Tx, error) { +func (m ContactMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -4873,14 +4925,14 @@ func (m DocumentDataMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of DocumentData entities. -func (m *DocumentDataMutation) SetID(id string) { +// operation is only accepted on creation of Contact entities. +func (m *ContactMutation) 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 *DocumentDataMutation) ID() (id string, exists bool) { +func (m *ContactMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -4891,7 +4943,7 @@ func (m *DocumentDataMutation) ID() (id string, exists bool) { // 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 *DocumentDataMutation) IDs(ctx context.Context) ([]string, error) { +func (m *ContactMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -4900,19 +4952,19 @@ func (m *DocumentDataMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().DocumentData.Query().Where(m.predicates...).IDs(ctx) + return m.Client().Contact.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 *DocumentDataMutation) SetCreatedAt(t time.Time) { +func (m *ContactMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *DocumentDataMutation) CreatedAt() (r time.Time, exists bool) { +func (m *ContactMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -4920,10 +4972,10 @@ func (m *DocumentDataMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the DocumentData entity. -// If the DocumentData object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the Contact entity. +// If the Contact 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 *DocumentDataMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ContactMutation) 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") } @@ -4938,30 +4990,30 @@ func (m *DocumentDataMutation) OldCreatedAt(ctx context.Context) (v time.Time, e } // ClearCreatedAt clears the value of the "created_at" field. -func (m *DocumentDataMutation) ClearCreatedAt() { +func (m *ContactMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[documentdata.FieldCreatedAt] = struct{}{} + m.clearedFields[contact.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *DocumentDataMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[documentdata.FieldCreatedAt] +func (m *ContactMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[contact.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *DocumentDataMutation) ResetCreatedAt() { +func (m *ContactMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, documentdata.FieldCreatedAt) + delete(m.clearedFields, contact.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *DocumentDataMutation) SetUpdatedAt(t time.Time) { +func (m *ContactMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *DocumentDataMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *ContactMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -4969,10 +5021,10 @@ func (m *DocumentDataMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the DocumentData entity. -// If the DocumentData object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the Contact entity. +// If the Contact 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 *DocumentDataMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ContactMutation) 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") } @@ -4987,30 +5039,30 @@ func (m *DocumentDataMutation) OldUpdatedAt(ctx context.Context) (v time.Time, e } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *DocumentDataMutation) ClearUpdatedAt() { +func (m *ContactMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[documentdata.FieldUpdatedAt] = struct{}{} + m.clearedFields[contact.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *DocumentDataMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[documentdata.FieldUpdatedAt] +func (m *ContactMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[contact.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *DocumentDataMutation) ResetUpdatedAt() { +func (m *ContactMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, documentdata.FieldUpdatedAt) + delete(m.clearedFields, contact.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *DocumentDataMutation) SetCreatedBy(s string) { +func (m *ContactMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *DocumentDataMutation) CreatedBy() (r string, exists bool) { +func (m *ContactMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -5018,10 +5070,10 @@ func (m *DocumentDataMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the DocumentData entity. -// If the DocumentData object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the Contact entity. +// If the Contact 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 *DocumentDataMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *ContactMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -5036,30 +5088,30 @@ func (m *DocumentDataMutation) OldCreatedBy(ctx context.Context) (v string, err } // ClearCreatedBy clears the value of the "created_by" field. -func (m *DocumentDataMutation) ClearCreatedBy() { +func (m *ContactMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[documentdata.FieldCreatedBy] = struct{}{} + m.clearedFields[contact.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *DocumentDataMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[documentdata.FieldCreatedBy] +func (m *ContactMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[contact.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *DocumentDataMutation) ResetCreatedBy() { +func (m *ContactMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, documentdata.FieldCreatedBy) + delete(m.clearedFields, contact.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *DocumentDataMutation) SetUpdatedBy(s string) { +func (m *ContactMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *DocumentDataMutation) UpdatedBy() (r string, exists bool) { +func (m *ContactMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -5067,10 +5119,10 @@ func (m *DocumentDataMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the DocumentData entity. -// If the DocumentData object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the Contact entity. +// If the Contact 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 *DocumentDataMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *ContactMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -5085,30 +5137,30 @@ func (m *DocumentDataMutation) OldUpdatedBy(ctx context.Context) (v string, err } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *DocumentDataMutation) ClearUpdatedBy() { +func (m *ContactMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[documentdata.FieldUpdatedBy] = struct{}{} + m.clearedFields[contact.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *DocumentDataMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[documentdata.FieldUpdatedBy] +func (m *ContactMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[contact.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *DocumentDataMutation) ResetUpdatedBy() { +func (m *ContactMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, documentdata.FieldUpdatedBy) + delete(m.clearedFields, contact.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *DocumentDataMutation) SetMappingID(s string) { +func (m *ContactMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *DocumentDataMutation) MappingID() (r string, exists bool) { +func (m *ContactMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -5116,10 +5168,10 @@ func (m *DocumentDataMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the DocumentData entity. -// If the DocumentData object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the Contact entity. +// If the Contact 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 *DocumentDataMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *ContactMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -5134,82 +5186,17 @@ func (m *DocumentDataMutation) OldMappingID(ctx context.Context) (v string, err } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *DocumentDataMutation) ResetMappingID() { +func (m *ContactMutation) ResetMappingID() { m.mapping_id = nil } -// SetTags sets the "tags" field. -func (m *DocumentDataMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil -} - -// Tags returns the value of the "tags" field in the mutation. -func (m *DocumentDataMutation) 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 DocumentData entity. -// If the DocumentData 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 *DocumentDataMutation) 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 *DocumentDataMutation) 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 *DocumentDataMutation) 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 *DocumentDataMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[documentdata.FieldTags] = struct{}{} -} - -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *DocumentDataMutation) TagsCleared() bool { - _, ok := m.clearedFields[documentdata.FieldTags] - return ok -} - -// ResetTags resets all changes to the "tags" field. -func (m *DocumentDataMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, documentdata.FieldTags) -} - // SetDeletedAt sets the "deleted_at" field. -func (m *DocumentDataMutation) SetDeletedAt(t time.Time) { +func (m *ContactMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *DocumentDataMutation) DeletedAt() (r time.Time, exists bool) { +func (m *ContactMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -5217,10 +5204,10 @@ func (m *DocumentDataMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the DocumentData entity. -// If the DocumentData object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the Contact entity. +// If the Contact 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 *DocumentDataMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *ContactMutation) 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") } @@ -5235,30 +5222,30 @@ func (m *DocumentDataMutation) OldDeletedAt(ctx context.Context) (v time.Time, e } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *DocumentDataMutation) ClearDeletedAt() { +func (m *ContactMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[documentdata.FieldDeletedAt] = struct{}{} + m.clearedFields[contact.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *DocumentDataMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[documentdata.FieldDeletedAt] +func (m *ContactMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[contact.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *DocumentDataMutation) ResetDeletedAt() { +func (m *ContactMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, documentdata.FieldDeletedAt) + delete(m.clearedFields, contact.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *DocumentDataMutation) SetDeletedBy(s string) { +func (m *ContactMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *DocumentDataMutation) DeletedBy() (r string, exists bool) { +func (m *ContactMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -5266,10 +5253,10 @@ func (m *DocumentDataMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the DocumentData entity. -// If the DocumentData object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the Contact entity. +// If the Contact 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 *DocumentDataMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *ContactMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -5284,30 +5271,95 @@ func (m *DocumentDataMutation) OldDeletedBy(ctx context.Context) (v string, err } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *DocumentDataMutation) ClearDeletedBy() { +func (m *ContactMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[documentdata.FieldDeletedBy] = struct{}{} + m.clearedFields[contact.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *DocumentDataMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[documentdata.FieldDeletedBy] +func (m *ContactMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[contact.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *DocumentDataMutation) ResetDeletedBy() { +func (m *ContactMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, documentdata.FieldDeletedBy) + delete(m.clearedFields, contact.FieldDeletedBy) +} + +// SetTags sets the "tags" field. +func (m *ContactMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *ContactMutation) 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 Contact entity. +// If the Contact 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 *ContactMutation) 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 *ContactMutation) 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 *ContactMutation) 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 *ContactMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[contact.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *ContactMutation) TagsCleared() bool { + _, ok := m.clearedFields[contact.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *ContactMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, contact.FieldTags) } // SetOwnerID sets the "owner_id" field. -func (m *DocumentDataMutation) SetOwnerID(s string) { +func (m *ContactMutation) SetOwnerID(s string) { m.owner = &s } // OwnerID returns the value of the "owner_id" field in the mutation. -func (m *DocumentDataMutation) OwnerID() (r string, exists bool) { +func (m *ContactMutation) OwnerID() (r string, exists bool) { v := m.owner if v == nil { return @@ -5315,10 +5367,10 @@ func (m *DocumentDataMutation) OwnerID() (r string, exists bool) { return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the DocumentData entity. -// If the DocumentData object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the Contact entity. +// If the Contact 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 *DocumentDataMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *ContactMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") } @@ -5333,110 +5385,355 @@ func (m *DocumentDataMutation) OldOwnerID(ctx context.Context) (v string, err er } // ClearOwnerID clears the value of the "owner_id" field. -func (m *DocumentDataMutation) ClearOwnerID() { +func (m *ContactMutation) ClearOwnerID() { m.owner = nil - m.clearedFields[documentdata.FieldOwnerID] = struct{}{} + m.clearedFields[contact.FieldOwnerID] = struct{}{} } // OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *DocumentDataMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[documentdata.FieldOwnerID] +func (m *ContactMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[contact.FieldOwnerID] return ok } // ResetOwnerID resets all changes to the "owner_id" field. -func (m *DocumentDataMutation) ResetOwnerID() { +func (m *ContactMutation) ResetOwnerID() { m.owner = nil - delete(m.clearedFields, documentdata.FieldOwnerID) + delete(m.clearedFields, contact.FieldOwnerID) } -// SetTemplateID sets the "template_id" field. -func (m *DocumentDataMutation) SetTemplateID(s string) { - m.template = &s +// SetFullName sets the "full_name" field. +func (m *ContactMutation) SetFullName(s string) { + m.full_name = &s } -// TemplateID returns the value of the "template_id" field in the mutation. -func (m *DocumentDataMutation) TemplateID() (r string, exists bool) { - v := m.template +// FullName returns the value of the "full_name" field in the mutation. +func (m *ContactMutation) FullName() (r string, exists bool) { + v := m.full_name if v == nil { return } return *v, true } -// OldTemplateID returns the old "template_id" field's value of the DocumentData entity. -// If the DocumentData object wasn't provided to the builder, the object is fetched from the database. +// OldFullName returns the old "full_name" field's value of the Contact entity. +// If the Contact 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 *DocumentDataMutation) OldTemplateID(ctx context.Context) (v string, err error) { +func (m *ContactMutation) OldFullName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTemplateID is only allowed on UpdateOne operations") + return v, errors.New("OldFullName is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldTemplateID requires an ID field in the mutation") + 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 OldTemplateID: %w", err) + return v, fmt.Errorf("querying old value for OldFullName: %w", err) } - return oldValue.TemplateID, nil + return oldValue.FullName, nil } -// ResetTemplateID resets all changes to the "template_id" field. -func (m *DocumentDataMutation) ResetTemplateID() { - m.template = nil +// ResetFullName resets all changes to the "full_name" field. +func (m *ContactMutation) ResetFullName() { + m.full_name = nil } -// SetData sets the "data" field. -func (m *DocumentDataMutation) SetData(co customtypes.JSONObject) { - m.data = &co +// SetTitle sets the "title" field. +func (m *ContactMutation) SetTitle(s string) { + m.title = &s } -// Data returns the value of the "data" field in the mutation. -func (m *DocumentDataMutation) Data() (r customtypes.JSONObject, exists bool) { - v := m.data +// Title returns the value of the "title" field in the mutation. +func (m *ContactMutation) Title() (r string, exists bool) { + v := m.title if v == nil { return } return *v, true } -// OldData returns the old "data" field's value of the DocumentData entity. -// If the DocumentData object wasn't provided to the builder, the object is fetched from the database. +// OldTitle returns the old "title" field's value of the Contact entity. +// If the Contact 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 *DocumentDataMutation) OldData(ctx context.Context) (v customtypes.JSONObject, err error) { +func (m *ContactMutation) OldTitle(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldData is only allowed on UpdateOne operations") + return v, errors.New("OldTitle is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldData requires an ID field in the mutation") + return v, errors.New("OldTitle requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldData: %w", err) + return v, fmt.Errorf("querying old value for OldTitle: %w", err) } - return oldValue.Data, nil + return oldValue.Title, nil } -// ResetData resets all changes to the "data" field. -func (m *DocumentDataMutation) ResetData() { - m.data = nil +// ClearTitle clears the value of the "title" field. +func (m *ContactMutation) ClearTitle() { + m.title = nil + m.clearedFields[contact.FieldTitle] = struct{}{} +} + +// TitleCleared returns if the "title" field was cleared in this mutation. +func (m *ContactMutation) TitleCleared() bool { + _, ok := m.clearedFields[contact.FieldTitle] + return ok +} + +// ResetTitle resets all changes to the "title" field. +func (m *ContactMutation) ResetTitle() { + m.title = nil + delete(m.clearedFields, contact.FieldTitle) +} + +// SetCompany sets the "company" field. +func (m *ContactMutation) SetCompany(s string) { + m.company = &s +} + +// Company returns the value of the "company" field in the mutation. +func (m *ContactMutation) Company() (r string, exists bool) { + v := m.company + if v == nil { + return + } + return *v, true +} + +// OldCompany returns the old "company" field's value of the Contact entity. +// If the Contact 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 *ContactMutation) OldCompany(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCompany is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldCompany requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldCompany: %w", err) + } + return oldValue.Company, nil +} + +// ClearCompany clears the value of the "company" field. +func (m *ContactMutation) ClearCompany() { + m.company = nil + m.clearedFields[contact.FieldCompany] = struct{}{} +} + +// CompanyCleared returns if the "company" field was cleared in this mutation. +func (m *ContactMutation) CompanyCleared() bool { + _, ok := m.clearedFields[contact.FieldCompany] + return ok +} + +// ResetCompany resets all changes to the "company" field. +func (m *ContactMutation) ResetCompany() { + m.company = nil + delete(m.clearedFields, contact.FieldCompany) +} + +// SetEmail sets the "email" field. +func (m *ContactMutation) SetEmail(s string) { + m.email = &s +} + +// Email returns the value of the "email" field in the mutation. +func (m *ContactMutation) 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 Contact entity. +// If the Contact 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 *ContactMutation) 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 +} + +// ClearEmail clears the value of the "email" field. +func (m *ContactMutation) ClearEmail() { + m.email = nil + m.clearedFields[contact.FieldEmail] = struct{}{} +} + +// EmailCleared returns if the "email" field was cleared in this mutation. +func (m *ContactMutation) EmailCleared() bool { + _, ok := m.clearedFields[contact.FieldEmail] + return ok +} + +// ResetEmail resets all changes to the "email" field. +func (m *ContactMutation) ResetEmail() { + m.email = nil + delete(m.clearedFields, contact.FieldEmail) +} + +// SetPhoneNumber sets the "phone_number" field. +func (m *ContactMutation) SetPhoneNumber(s string) { + m.phone_number = &s +} + +// PhoneNumber returns the value of the "phone_number" field in the mutation. +func (m *ContactMutation) PhoneNumber() (r string, exists bool) { + v := m.phone_number + if v == nil { + return + } + return *v, true +} + +// OldPhoneNumber returns the old "phone_number" field's value of the Contact entity. +// If the Contact 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 *ContactMutation) OldPhoneNumber(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldPhoneNumber is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldPhoneNumber requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldPhoneNumber: %w", err) + } + return oldValue.PhoneNumber, nil +} + +// ClearPhoneNumber clears the value of the "phone_number" field. +func (m *ContactMutation) ClearPhoneNumber() { + m.phone_number = nil + m.clearedFields[contact.FieldPhoneNumber] = struct{}{} +} + +// PhoneNumberCleared returns if the "phone_number" field was cleared in this mutation. +func (m *ContactMutation) PhoneNumberCleared() bool { + _, ok := m.clearedFields[contact.FieldPhoneNumber] + return ok +} + +// ResetPhoneNumber resets all changes to the "phone_number" field. +func (m *ContactMutation) ResetPhoneNumber() { + m.phone_number = nil + delete(m.clearedFields, contact.FieldPhoneNumber) +} + +// SetAddress sets the "address" field. +func (m *ContactMutation) SetAddress(s string) { + m.address = &s +} + +// Address returns the value of the "address" field in the mutation. +func (m *ContactMutation) Address() (r string, exists bool) { + v := m.address + if v == nil { + return + } + return *v, true +} + +// OldAddress returns the old "address" field's value of the Contact entity. +// If the Contact 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 *ContactMutation) OldAddress(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldAddress is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldAddress requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldAddress: %w", err) + } + return oldValue.Address, nil +} + +// ClearAddress clears the value of the "address" field. +func (m *ContactMutation) ClearAddress() { + m.address = nil + m.clearedFields[contact.FieldAddress] = struct{}{} +} + +// AddressCleared returns if the "address" field was cleared in this mutation. +func (m *ContactMutation) AddressCleared() bool { + _, ok := m.clearedFields[contact.FieldAddress] + return ok +} + +// ResetAddress resets all changes to the "address" field. +func (m *ContactMutation) ResetAddress() { + m.address = nil + delete(m.clearedFields, contact.FieldAddress) +} + +// SetStatus sets the "status" field. +func (m *ContactMutation) SetStatus(es enums.UserStatus) { + m.status = &es +} + +// Status returns the value of the "status" field in the mutation. +func (m *ContactMutation) Status() (r enums.UserStatus, exists bool) { + v := m.status + if v == nil { + return + } + return *v, true +} + +// OldStatus returns the old "status" field's value of the Contact entity. +// If the Contact 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 *ContactMutation) OldStatus(ctx context.Context) (v enums.UserStatus, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStatus is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStatus requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStatus: %w", err) + } + return oldValue.Status, nil +} + +// ResetStatus resets all changes to the "status" field. +func (m *ContactMutation) ResetStatus() { + m.status = nil } // ClearOwner clears the "owner" edge to the Organization entity. -func (m *DocumentDataMutation) ClearOwner() { +func (m *ContactMutation) ClearOwner() { m.clearedowner = true - m.clearedFields[documentdata.FieldOwnerID] = struct{}{} + m.clearedFields[contact.FieldOwnerID] = struct{}{} } // OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *DocumentDataMutation) OwnerCleared() bool { +func (m *ContactMutation) 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 *DocumentDataMutation) OwnerIDs() (ids []string) { +func (m *ContactMutation) OwnerIDs() (ids []string) { if id := m.owner; id != nil { ids = append(ids, *id) } @@ -5444,94 +5741,67 @@ func (m *DocumentDataMutation) OwnerIDs() (ids []string) { } // ResetOwner resets all changes to the "owner" edge. -func (m *DocumentDataMutation) ResetOwner() { +func (m *ContactMutation) ResetOwner() { m.owner = nil m.clearedowner = false } -// ClearTemplate clears the "template" edge to the Template entity. -func (m *DocumentDataMutation) ClearTemplate() { - m.clearedtemplate = true - m.clearedFields[documentdata.FieldTemplateID] = struct{}{} -} - -// TemplateCleared reports if the "template" edge to the Template entity was cleared. -func (m *DocumentDataMutation) TemplateCleared() bool { - return m.clearedtemplate -} - -// TemplateIDs returns the "template" edge IDs in the mutation. -// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use -// TemplateID instead. It exists only for internal usage by the builders. -func (m *DocumentDataMutation) TemplateIDs() (ids []string) { - if id := m.template; id != nil { - ids = append(ids, *id) - } - return -} - -// ResetTemplate resets all changes to the "template" edge. -func (m *DocumentDataMutation) ResetTemplate() { - m.template = nil - m.clearedtemplate = false -} - -// AddEntityIDs adds the "entity" edge to the Entity entity by ids. -func (m *DocumentDataMutation) AddEntityIDs(ids ...string) { - if m.entity == nil { - m.entity = make(map[string]struct{}) +// AddEntityIDs adds the "entities" edge to the Entity entity by ids. +func (m *ContactMutation) AddEntityIDs(ids ...string) { + if m.entities == nil { + m.entities = make(map[string]struct{}) } for i := range ids { - m.entity[ids[i]] = struct{}{} + m.entities[ids[i]] = struct{}{} } } -// ClearEntity clears the "entity" edge to the Entity entity. -func (m *DocumentDataMutation) ClearEntity() { - m.clearedentity = true +// ClearEntities clears the "entities" edge to the Entity entity. +func (m *ContactMutation) ClearEntities() { + m.clearedentities = true } -// EntityCleared reports if the "entity" edge to the Entity entity was cleared. -func (m *DocumentDataMutation) EntityCleared() bool { - return m.clearedentity +// EntitiesCleared reports if the "entities" edge to the Entity entity was cleared. +func (m *ContactMutation) EntitiesCleared() bool { + return m.clearedentities } -// RemoveEntityIDs removes the "entity" edge to the Entity entity by IDs. -func (m *DocumentDataMutation) RemoveEntityIDs(ids ...string) { - if m.removedentity == nil { - m.removedentity = make(map[string]struct{}) +// RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs. +func (m *ContactMutation) RemoveEntityIDs(ids ...string) { + if m.removedentities == nil { + m.removedentities = make(map[string]struct{}) } for i := range ids { - delete(m.entity, ids[i]) - m.removedentity[ids[i]] = struct{}{} + delete(m.entities, ids[i]) + m.removedentities[ids[i]] = struct{}{} } } -// RemovedEntity returns the removed IDs of the "entity" edge to the Entity entity. -func (m *DocumentDataMutation) RemovedEntityIDs() (ids []string) { - for id := range m.removedentity { +// RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity. +func (m *ContactMutation) RemovedEntitiesIDs() (ids []string) { + for id := range m.removedentities { ids = append(ids, id) } return } -// EntityIDs returns the "entity" edge IDs in the mutation. -func (m *DocumentDataMutation) EntityIDs() (ids []string) { - for id := range m.entity { +// EntitiesIDs returns the "entities" edge IDs in the mutation. +func (m *ContactMutation) EntitiesIDs() (ids []string) { + for id := range m.entities { ids = append(ids, id) } return } -// ResetEntity resets all changes to the "entity" edge. -func (m *DocumentDataMutation) ResetEntity() { - m.entity = nil - m.clearedentity = false - m.removedentity = nil +// ResetEntities resets all changes to the "entities" edge. +func (m *ContactMutation) ResetEntities() { + m.entities = nil + m.clearedentities = false + m.removedentities = nil } // AddFileIDs adds the "files" edge to the File entity by ids. -func (m *DocumentDataMutation) AddFileIDs(ids ...string) { +func (m *ContactMutation) AddFileIDs(ids ...string) { if m.files == nil { m.files = make(map[string]struct{}) } @@ -5541,17 +5811,17 @@ func (m *DocumentDataMutation) AddFileIDs(ids ...string) { } // ClearFiles clears the "files" edge to the File entity. -func (m *DocumentDataMutation) ClearFiles() { +func (m *ContactMutation) ClearFiles() { m.clearedfiles = true } // FilesCleared reports if the "files" edge to the File entity was cleared. -func (m *DocumentDataMutation) FilesCleared() bool { +func (m *ContactMutation) FilesCleared() bool { return m.clearedfiles } // RemoveFileIDs removes the "files" edge to the File entity by IDs. -func (m *DocumentDataMutation) RemoveFileIDs(ids ...string) { +func (m *ContactMutation) RemoveFileIDs(ids ...string) { if m.removedfiles == nil { m.removedfiles = make(map[string]struct{}) } @@ -5562,7 +5832,7 @@ func (m *DocumentDataMutation) RemoveFileIDs(ids ...string) { } // RemovedFiles returns the removed IDs of the "files" edge to the File entity. -func (m *DocumentDataMutation) RemovedFilesIDs() (ids []string) { +func (m *ContactMutation) RemovedFilesIDs() (ids []string) { for id := range m.removedfiles { ids = append(ids, id) } @@ -5570,7 +5840,7 @@ func (m *DocumentDataMutation) RemovedFilesIDs() (ids []string) { } // FilesIDs returns the "files" edge IDs in the mutation. -func (m *DocumentDataMutation) FilesIDs() (ids []string) { +func (m *ContactMutation) FilesIDs() (ids []string) { for id := range m.files { ids = append(ids, id) } @@ -5578,21 +5848,21 @@ func (m *DocumentDataMutation) FilesIDs() (ids []string) { } // ResetFiles resets all changes to the "files" edge. -func (m *DocumentDataMutation) ResetFiles() { +func (m *ContactMutation) ResetFiles() { m.files = nil m.clearedfiles = false m.removedfiles = nil } -// Where appends a list predicates to the DocumentDataMutation builder. -func (m *DocumentDataMutation) Where(ps ...predicate.DocumentData) { +// Where appends a list predicates to the ContactMutation builder. +func (m *ContactMutation) Where(ps ...predicate.Contact) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the DocumentDataMutation builder. Using this method, +// WhereP appends storage-level predicates to the ContactMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *DocumentDataMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.DocumentData, len(ps)) +func (m *ContactMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Contact, len(ps)) for i := range ps { p[i] = ps[i] } @@ -5600,57 +5870,72 @@ func (m *DocumentDataMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *DocumentDataMutation) Op() Op { +func (m *ContactMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *DocumentDataMutation) SetOp(op Op) { +func (m *ContactMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (DocumentData). -func (m *DocumentDataMutation) Type() string { +// Type returns the node type of this mutation (Contact). +func (m *ContactMutation) 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 *DocumentDataMutation) Fields() []string { - fields := make([]string, 0, 11) +func (m *ContactMutation) Fields() []string { + fields := make([]string, 0, 16) if m.created_at != nil { - fields = append(fields, documentdata.FieldCreatedAt) + fields = append(fields, contact.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, documentdata.FieldUpdatedAt) + fields = append(fields, contact.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, documentdata.FieldCreatedBy) + fields = append(fields, contact.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, documentdata.FieldUpdatedBy) + fields = append(fields, contact.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, documentdata.FieldMappingID) - } - if m.tags != nil { - fields = append(fields, documentdata.FieldTags) + fields = append(fields, contact.FieldMappingID) } if m.deleted_at != nil { - fields = append(fields, documentdata.FieldDeletedAt) + fields = append(fields, contact.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, documentdata.FieldDeletedBy) + fields = append(fields, contact.FieldDeletedBy) + } + if m.tags != nil { + fields = append(fields, contact.FieldTags) } if m.owner != nil { - fields = append(fields, documentdata.FieldOwnerID) + fields = append(fields, contact.FieldOwnerID) } - if m.template != nil { - fields = append(fields, documentdata.FieldTemplateID) + if m.full_name != nil { + fields = append(fields, contact.FieldFullName) } - if m.data != nil { - fields = append(fields, documentdata.FieldData) + if m.title != nil { + fields = append(fields, contact.FieldTitle) + } + if m.company != nil { + fields = append(fields, contact.FieldCompany) + } + if m.email != nil { + fields = append(fields, contact.FieldEmail) + } + if m.phone_number != nil { + fields = append(fields, contact.FieldPhoneNumber) + } + if m.address != nil { + fields = append(fields, contact.FieldAddress) + } + if m.status != nil { + fields = append(fields, contact.FieldStatus) } return fields } @@ -5658,30 +5943,40 @@ func (m *DocumentDataMutation) Fields() []string { // 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 *DocumentDataMutation) Field(name string) (ent.Value, bool) { +func (m *ContactMutation) Field(name string) (ent.Value, bool) { switch name { - case documentdata.FieldCreatedAt: + case contact.FieldCreatedAt: return m.CreatedAt() - case documentdata.FieldUpdatedAt: + case contact.FieldUpdatedAt: return m.UpdatedAt() - case documentdata.FieldCreatedBy: + case contact.FieldCreatedBy: return m.CreatedBy() - case documentdata.FieldUpdatedBy: + case contact.FieldUpdatedBy: return m.UpdatedBy() - case documentdata.FieldMappingID: + case contact.FieldMappingID: return m.MappingID() - case documentdata.FieldTags: - return m.Tags() - case documentdata.FieldDeletedAt: + case contact.FieldDeletedAt: return m.DeletedAt() - case documentdata.FieldDeletedBy: + case contact.FieldDeletedBy: return m.DeletedBy() - case documentdata.FieldOwnerID: + case contact.FieldTags: + return m.Tags() + case contact.FieldOwnerID: return m.OwnerID() - case documentdata.FieldTemplateID: - return m.TemplateID() - case documentdata.FieldData: - return m.Data() + case contact.FieldFullName: + return m.FullName() + case contact.FieldTitle: + return m.Title() + case contact.FieldCompany: + return m.Company() + case contact.FieldEmail: + return m.Email() + case contact.FieldPhoneNumber: + return m.PhoneNumber() + case contact.FieldAddress: + return m.Address() + case contact.FieldStatus: + return m.Status() } return nil, false } @@ -5689,290 +5984,373 @@ func (m *DocumentDataMutation) Field(name string) (ent.Value, bool) { // 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 *DocumentDataMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *ContactMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case documentdata.FieldCreatedAt: + case contact.FieldCreatedAt: return m.OldCreatedAt(ctx) - case documentdata.FieldUpdatedAt: + case contact.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case documentdata.FieldCreatedBy: + case contact.FieldCreatedBy: return m.OldCreatedBy(ctx) - case documentdata.FieldUpdatedBy: + case contact.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case documentdata.FieldMappingID: + case contact.FieldMappingID: return m.OldMappingID(ctx) - case documentdata.FieldTags: - return m.OldTags(ctx) - case documentdata.FieldDeletedAt: + case contact.FieldDeletedAt: return m.OldDeletedAt(ctx) - case documentdata.FieldDeletedBy: + case contact.FieldDeletedBy: return m.OldDeletedBy(ctx) - case documentdata.FieldOwnerID: + case contact.FieldTags: + return m.OldTags(ctx) + case contact.FieldOwnerID: return m.OldOwnerID(ctx) - case documentdata.FieldTemplateID: - return m.OldTemplateID(ctx) - case documentdata.FieldData: - return m.OldData(ctx) + case contact.FieldFullName: + return m.OldFullName(ctx) + case contact.FieldTitle: + return m.OldTitle(ctx) + case contact.FieldCompany: + return m.OldCompany(ctx) + case contact.FieldEmail: + return m.OldEmail(ctx) + case contact.FieldPhoneNumber: + return m.OldPhoneNumber(ctx) + case contact.FieldAddress: + return m.OldAddress(ctx) + case contact.FieldStatus: + return m.OldStatus(ctx) } - return nil, fmt.Errorf("unknown DocumentData field %s", name) + return nil, fmt.Errorf("unknown Contact 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 *DocumentDataMutation) SetField(name string, value ent.Value) error { +func (m *ContactMutation) SetField(name string, value ent.Value) error { switch name { - case documentdata.FieldCreatedAt: + case contact.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 documentdata.FieldUpdatedAt: + case contact.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 documentdata.FieldCreatedBy: + case contact.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case documentdata.FieldUpdatedBy: + case contact.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case documentdata.FieldMappingID: + case contact.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case documentdata.FieldTags: + case contact.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 contact.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case contact.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case documentdata.FieldDeletedAt: - v, ok := value.(time.Time) + case contact.FieldOwnerID: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetOwnerID(v) return nil - case documentdata.FieldDeletedBy: + case contact.FieldFullName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetFullName(v) return nil - case documentdata.FieldOwnerID: + case contact.FieldTitle: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetTitle(v) return nil - case documentdata.FieldTemplateID: + case contact.FieldCompany: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTemplateID(v) + m.SetCompany(v) return nil - case documentdata.FieldData: - v, ok := value.(customtypes.JSONObject) + case contact.FieldEmail: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetData(v) + m.SetEmail(v) + return nil + case contact.FieldPhoneNumber: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetPhoneNumber(v) + return nil + case contact.FieldAddress: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetAddress(v) + return nil + case contact.FieldStatus: + v, ok := value.(enums.UserStatus) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStatus(v) return nil } - return fmt.Errorf("unknown DocumentData field %s", name) + return fmt.Errorf("unknown Contact field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *DocumentDataMutation) AddedFields() []string { +func (m *ContactMutation) 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 *DocumentDataMutation) AddedField(name string) (ent.Value, bool) { +func (m *ContactMutation) 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 *DocumentDataMutation) AddField(name string, value ent.Value) error { +func (m *ContactMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown DocumentData numeric field %s", name) + return fmt.Errorf("unknown Contact numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *DocumentDataMutation) ClearedFields() []string { +func (m *ContactMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(documentdata.FieldCreatedAt) { - fields = append(fields, documentdata.FieldCreatedAt) + if m.FieldCleared(contact.FieldCreatedAt) { + fields = append(fields, contact.FieldCreatedAt) } - if m.FieldCleared(documentdata.FieldUpdatedAt) { - fields = append(fields, documentdata.FieldUpdatedAt) + if m.FieldCleared(contact.FieldUpdatedAt) { + fields = append(fields, contact.FieldUpdatedAt) } - if m.FieldCleared(documentdata.FieldCreatedBy) { - fields = append(fields, documentdata.FieldCreatedBy) + if m.FieldCleared(contact.FieldCreatedBy) { + fields = append(fields, contact.FieldCreatedBy) } - if m.FieldCleared(documentdata.FieldUpdatedBy) { - fields = append(fields, documentdata.FieldUpdatedBy) + if m.FieldCleared(contact.FieldUpdatedBy) { + fields = append(fields, contact.FieldUpdatedBy) } - if m.FieldCleared(documentdata.FieldTags) { - fields = append(fields, documentdata.FieldTags) + if m.FieldCleared(contact.FieldDeletedAt) { + fields = append(fields, contact.FieldDeletedAt) } - if m.FieldCleared(documentdata.FieldDeletedAt) { - fields = append(fields, documentdata.FieldDeletedAt) + if m.FieldCleared(contact.FieldDeletedBy) { + fields = append(fields, contact.FieldDeletedBy) } - if m.FieldCleared(documentdata.FieldDeletedBy) { - fields = append(fields, documentdata.FieldDeletedBy) + if m.FieldCleared(contact.FieldTags) { + fields = append(fields, contact.FieldTags) } - if m.FieldCleared(documentdata.FieldOwnerID) { - fields = append(fields, documentdata.FieldOwnerID) + if m.FieldCleared(contact.FieldOwnerID) { + fields = append(fields, contact.FieldOwnerID) + } + if m.FieldCleared(contact.FieldTitle) { + fields = append(fields, contact.FieldTitle) + } + if m.FieldCleared(contact.FieldCompany) { + fields = append(fields, contact.FieldCompany) + } + if m.FieldCleared(contact.FieldEmail) { + fields = append(fields, contact.FieldEmail) + } + if m.FieldCleared(contact.FieldPhoneNumber) { + fields = append(fields, contact.FieldPhoneNumber) + } + if m.FieldCleared(contact.FieldAddress) { + fields = append(fields, contact.FieldAddress) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *DocumentDataMutation) FieldCleared(name string) bool { +func (m *ContactMutation) 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 *DocumentDataMutation) ClearField(name string) error { +func (m *ContactMutation) ClearField(name string) error { switch name { - case documentdata.FieldCreatedAt: + case contact.FieldCreatedAt: m.ClearCreatedAt() return nil - case documentdata.FieldUpdatedAt: + case contact.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case documentdata.FieldCreatedBy: + case contact.FieldCreatedBy: m.ClearCreatedBy() return nil - case documentdata.FieldUpdatedBy: + case contact.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case documentdata.FieldTags: - m.ClearTags() - return nil - case documentdata.FieldDeletedAt: + case contact.FieldDeletedAt: m.ClearDeletedAt() return nil - case documentdata.FieldDeletedBy: + case contact.FieldDeletedBy: m.ClearDeletedBy() return nil - case documentdata.FieldOwnerID: + case contact.FieldTags: + m.ClearTags() + return nil + case contact.FieldOwnerID: m.ClearOwnerID() return nil + case contact.FieldTitle: + m.ClearTitle() + return nil + case contact.FieldCompany: + m.ClearCompany() + return nil + case contact.FieldEmail: + m.ClearEmail() + return nil + case contact.FieldPhoneNumber: + m.ClearPhoneNumber() + return nil + case contact.FieldAddress: + m.ClearAddress() + return nil } - return fmt.Errorf("unknown DocumentData nullable field %s", name) + return fmt.Errorf("unknown Contact 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 *DocumentDataMutation) ResetField(name string) error { +func (m *ContactMutation) ResetField(name string) error { switch name { - case documentdata.FieldCreatedAt: + case contact.FieldCreatedAt: m.ResetCreatedAt() return nil - case documentdata.FieldUpdatedAt: + case contact.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case documentdata.FieldCreatedBy: + case contact.FieldCreatedBy: m.ResetCreatedBy() return nil - case documentdata.FieldUpdatedBy: + case contact.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case documentdata.FieldMappingID: + case contact.FieldMappingID: m.ResetMappingID() return nil - case documentdata.FieldTags: - m.ResetTags() - return nil - case documentdata.FieldDeletedAt: + case contact.FieldDeletedAt: m.ResetDeletedAt() return nil - case documentdata.FieldDeletedBy: + case contact.FieldDeletedBy: m.ResetDeletedBy() return nil - case documentdata.FieldOwnerID: + case contact.FieldTags: + m.ResetTags() + return nil + case contact.FieldOwnerID: m.ResetOwnerID() return nil - case documentdata.FieldTemplateID: - m.ResetTemplateID() + case contact.FieldFullName: + m.ResetFullName() return nil - case documentdata.FieldData: - m.ResetData() + case contact.FieldTitle: + m.ResetTitle() + return nil + case contact.FieldCompany: + m.ResetCompany() + return nil + case contact.FieldEmail: + m.ResetEmail() + return nil + case contact.FieldPhoneNumber: + m.ResetPhoneNumber() + return nil + case contact.FieldAddress: + m.ResetAddress() + return nil + case contact.FieldStatus: + m.ResetStatus() return nil } - return fmt.Errorf("unknown DocumentData field %s", name) + return fmt.Errorf("unknown Contact field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *DocumentDataMutation) AddedEdges() []string { - edges := make([]string, 0, 4) +func (m *ContactMutation) AddedEdges() []string { + edges := make([]string, 0, 3) if m.owner != nil { - edges = append(edges, documentdata.EdgeOwner) - } - if m.template != nil { - edges = append(edges, documentdata.EdgeTemplate) + edges = append(edges, contact.EdgeOwner) } - if m.entity != nil { - edges = append(edges, documentdata.EdgeEntity) + if m.entities != nil { + edges = append(edges, contact.EdgeEntities) } if m.files != nil { - edges = append(edges, documentdata.EdgeFiles) + edges = append(edges, contact.EdgeFiles) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *DocumentDataMutation) AddedIDs(name string) []ent.Value { +func (m *ContactMutation) AddedIDs(name string) []ent.Value { switch name { - case documentdata.EdgeOwner: + case contact.EdgeOwner: if id := m.owner; id != nil { return []ent.Value{*id} } - case documentdata.EdgeTemplate: - if id := m.template; id != nil { - return []ent.Value{*id} - } - case documentdata.EdgeEntity: - ids := make([]ent.Value, 0, len(m.entity)) - for id := range m.entity { + case contact.EdgeEntities: + ids := make([]ent.Value, 0, len(m.entities)) + for id := range m.entities { ids = append(ids, id) } return ids - case documentdata.EdgeFiles: + case contact.EdgeFiles: ids := make([]ent.Value, 0, len(m.files)) for id := range m.files { ids = append(ids, id) @@ -5983,28 +6361,28 @@ func (m *DocumentDataMutation) AddedIDs(name string) []ent.Value { } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *DocumentDataMutation) RemovedEdges() []string { - edges := make([]string, 0, 4) - if m.removedentity != nil { - edges = append(edges, documentdata.EdgeEntity) +func (m *ContactMutation) RemovedEdges() []string { + edges := make([]string, 0, 3) + if m.removedentities != nil { + edges = append(edges, contact.EdgeEntities) } if m.removedfiles != nil { - edges = append(edges, documentdata.EdgeFiles) + edges = append(edges, contact.EdgeFiles) } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *DocumentDataMutation) RemovedIDs(name string) []ent.Value { +func (m *ContactMutation) RemovedIDs(name string) []ent.Value { switch name { - case documentdata.EdgeEntity: - ids := make([]ent.Value, 0, len(m.removedentity)) - for id := range m.removedentity { + case contact.EdgeEntities: + ids := make([]ent.Value, 0, len(m.removedentities)) + for id := range m.removedentities { ids = append(ids, id) } return ids - case documentdata.EdgeFiles: + case contact.EdgeFiles: ids := make([]ent.Value, 0, len(m.removedfiles)) for id := range m.removedfiles { ids = append(ids, id) @@ -6015,34 +6393,29 @@ func (m *DocumentDataMutation) RemovedIDs(name string) []ent.Value { } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *DocumentDataMutation) ClearedEdges() []string { - edges := make([]string, 0, 4) +func (m *ContactMutation) ClearedEdges() []string { + edges := make([]string, 0, 3) if m.clearedowner { - edges = append(edges, documentdata.EdgeOwner) - } - if m.clearedtemplate { - edges = append(edges, documentdata.EdgeTemplate) + edges = append(edges, contact.EdgeOwner) } - if m.clearedentity { - edges = append(edges, documentdata.EdgeEntity) + if m.clearedentities { + edges = append(edges, contact.EdgeEntities) } if m.clearedfiles { - edges = append(edges, documentdata.EdgeFiles) + edges = append(edges, contact.EdgeFiles) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *DocumentDataMutation) EdgeCleared(name string) bool { +func (m *ContactMutation) EdgeCleared(name string) bool { switch name { - case documentdata.EdgeOwner: + case contact.EdgeOwner: return m.clearedowner - case documentdata.EdgeTemplate: - return m.clearedtemplate - case documentdata.EdgeEntity: - return m.clearedentity - case documentdata.EdgeFiles: + case contact.EdgeEntities: + return m.clearedentities + case contact.EdgeFiles: return m.clearedfiles } return false @@ -6050,40 +6423,34 @@ func (m *DocumentDataMutation) EdgeCleared(name string) bool { // 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 *DocumentDataMutation) ClearEdge(name string) error { +func (m *ContactMutation) ClearEdge(name string) error { switch name { - case documentdata.EdgeOwner: + case contact.EdgeOwner: m.ClearOwner() return nil - case documentdata.EdgeTemplate: - m.ClearTemplate() - return nil } - return fmt.Errorf("unknown DocumentData unique edge %s", name) + return fmt.Errorf("unknown Contact 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 *DocumentDataMutation) ResetEdge(name string) error { +func (m *ContactMutation) ResetEdge(name string) error { switch name { - case documentdata.EdgeOwner: + case contact.EdgeOwner: m.ResetOwner() return nil - case documentdata.EdgeTemplate: - m.ResetTemplate() - return nil - case documentdata.EdgeEntity: - m.ResetEntity() + case contact.EdgeEntities: + m.ResetEntities() return nil - case documentdata.EdgeFiles: + case contact.EdgeFiles: m.ResetFiles() return nil } - return fmt.Errorf("unknown DocumentData edge %s", name) + return fmt.Errorf("unknown Contact edge %s", name) } -// DocumentDataHistoryMutation represents an operation that mutates the DocumentDataHistory nodes in the graph. -type DocumentDataHistoryMutation struct { +// ContactHistoryMutation represents an operation that mutates the ContactHistory nodes in the graph. +type ContactHistoryMutation struct { config op Op typ string @@ -6096,30 +6463,35 @@ type DocumentDataHistoryMutation struct { created_by *string updated_by *string mapping_id *string - tags *[]string - appendtags []string deleted_at *time.Time deleted_by *string + tags *[]string + appendtags []string owner_id *string - template_id *string - data *customtypes.JSONObject + full_name *string + title *string + company *string + email *string + phone_number *string + address *string + status *enums.UserStatus clearedFields map[string]struct{} done bool - oldValue func(context.Context) (*DocumentDataHistory, error) - predicates []predicate.DocumentDataHistory + oldValue func(context.Context) (*ContactHistory, error) + predicates []predicate.ContactHistory } -var _ ent.Mutation = (*DocumentDataHistoryMutation)(nil) +var _ ent.Mutation = (*ContactHistoryMutation)(nil) -// documentdatahistoryOption allows management of the mutation configuration using functional options. -type documentdatahistoryOption func(*DocumentDataHistoryMutation) +// contacthistoryOption allows management of the mutation configuration using functional options. +type contacthistoryOption func(*ContactHistoryMutation) -// newDocumentDataHistoryMutation creates new mutation for the DocumentDataHistory entity. -func newDocumentDataHistoryMutation(c config, op Op, opts ...documentdatahistoryOption) *DocumentDataHistoryMutation { - m := &DocumentDataHistoryMutation{ +// newContactHistoryMutation creates new mutation for the ContactHistory entity. +func newContactHistoryMutation(c config, op Op, opts ...contacthistoryOption) *ContactHistoryMutation { + m := &ContactHistoryMutation{ config: c, op: op, - typ: TypeDocumentDataHistory, + typ: TypeContactHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -6128,20 +6500,20 @@ func newDocumentDataHistoryMutation(c config, op Op, opts ...documentdatahistory return m } -// withDocumentDataHistoryID sets the ID field of the mutation. -func withDocumentDataHistoryID(id string) documentdatahistoryOption { - return func(m *DocumentDataHistoryMutation) { +// withContactHistoryID sets the ID field of the mutation. +func withContactHistoryID(id string) contacthistoryOption { + return func(m *ContactHistoryMutation) { var ( err error once sync.Once - value *DocumentDataHistory + value *ContactHistory ) - m.oldValue = func(ctx context.Context) (*DocumentDataHistory, error) { + m.oldValue = func(ctx context.Context) (*ContactHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().DocumentDataHistory.Get(ctx, id) + value, err = m.Client().ContactHistory.Get(ctx, id) } }) return value, err @@ -6150,10 +6522,10 @@ func withDocumentDataHistoryID(id string) documentdatahistoryOption { } } -// withDocumentDataHistory sets the old DocumentDataHistory of the mutation. -func withDocumentDataHistory(node *DocumentDataHistory) documentdatahistoryOption { - return func(m *DocumentDataHistoryMutation) { - m.oldValue = func(context.Context) (*DocumentDataHistory, error) { +// withContactHistory sets the old ContactHistory of the mutation. +func withContactHistory(node *ContactHistory) contacthistoryOption { + return func(m *ContactHistoryMutation) { + m.oldValue = func(context.Context) (*ContactHistory, error) { return node, nil } m.id = &node.ID @@ -6162,7 +6534,7 @@ func withDocumentDataHistory(node *DocumentDataHistory) documentdatahistoryOptio // 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 DocumentDataHistoryMutation) Client() *Client { +func (m ContactHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -6170,7 +6542,7 @@ func (m DocumentDataHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m DocumentDataHistoryMutation) Tx() (*Tx, error) { +func (m ContactHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -6180,14 +6552,14 @@ func (m DocumentDataHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of DocumentDataHistory entities. -func (m *DocumentDataHistoryMutation) SetID(id string) { +// operation is only accepted on creation of ContactHistory entities. +func (m *ContactHistoryMutation) 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 *DocumentDataHistoryMutation) ID() (id string, exists bool) { +func (m *ContactHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -6198,7 +6570,7 @@ func (m *DocumentDataHistoryMutation) ID() (id string, exists bool) { // 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 *DocumentDataHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *ContactHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -6207,19 +6579,19 @@ func (m *DocumentDataHistoryMutation) IDs(ctx context.Context) ([]string, error) } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().DocumentDataHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().ContactHistory.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 *DocumentDataHistoryMutation) SetHistoryTime(t time.Time) { +func (m *ContactHistoryMutation) SetHistoryTime(t time.Time) { m.history_time = &t } // HistoryTime returns the value of the "history_time" field in the mutation. -func (m *DocumentDataHistoryMutation) HistoryTime() (r time.Time, exists bool) { +func (m *ContactHistoryMutation) HistoryTime() (r time.Time, exists bool) { v := m.history_time if v == nil { return @@ -6227,10 +6599,10 @@ func (m *DocumentDataHistoryMutation) HistoryTime() (r time.Time, exists bool) { return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *ContactHistoryMutation) 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") } @@ -6245,17 +6617,17 @@ func (m *DocumentDataHistoryMutation) OldHistoryTime(ctx context.Context) (v tim } // ResetHistoryTime resets all changes to the "history_time" field. -func (m *DocumentDataHistoryMutation) ResetHistoryTime() { +func (m *ContactHistoryMutation) ResetHistoryTime() { m.history_time = nil } // SetRef sets the "ref" field. -func (m *DocumentDataHistoryMutation) SetRef(s string) { +func (m *ContactHistoryMutation) SetRef(s string) { m.ref = &s } // Ref returns the value of the "ref" field in the mutation. -func (m *DocumentDataHistoryMutation) Ref() (r string, exists bool) { +func (m *ContactHistoryMutation) Ref() (r string, exists bool) { v := m.ref if v == nil { return @@ -6263,10 +6635,10 @@ func (m *DocumentDataHistoryMutation) Ref() (r string, exists bool) { return *v, true } -// OldRef returns the old "ref" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *ContactHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldRef is only allowed on UpdateOne operations") } @@ -6281,30 +6653,30 @@ func (m *DocumentDataHistoryMutation) OldRef(ctx context.Context) (v string, err } // ClearRef clears the value of the "ref" field. -func (m *DocumentDataHistoryMutation) ClearRef() { +func (m *ContactHistoryMutation) ClearRef() { m.ref = nil - m.clearedFields[documentdatahistory.FieldRef] = struct{}{} + m.clearedFields[contacthistory.FieldRef] = struct{}{} } // RefCleared returns if the "ref" field was cleared in this mutation. -func (m *DocumentDataHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[documentdatahistory.FieldRef] +func (m *ContactHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldRef] return ok } // ResetRef resets all changes to the "ref" field. -func (m *DocumentDataHistoryMutation) ResetRef() { +func (m *ContactHistoryMutation) ResetRef() { m.ref = nil - delete(m.clearedFields, documentdatahistory.FieldRef) + delete(m.clearedFields, contacthistory.FieldRef) } // SetOperation sets the "operation" field. -func (m *DocumentDataHistoryMutation) SetOperation(ht history.OpType) { +func (m *ContactHistoryMutation) SetOperation(ht history.OpType) { m.operation = &ht } // Operation returns the value of the "operation" field in the mutation. -func (m *DocumentDataHistoryMutation) Operation() (r history.OpType, exists bool) { +func (m *ContactHistoryMutation) Operation() (r history.OpType, exists bool) { v := m.operation if v == nil { return @@ -6312,10 +6684,10 @@ func (m *DocumentDataHistoryMutation) Operation() (r history.OpType, exists bool return *v, true } -// OldOperation returns the old "operation" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *ContactHistoryMutation) 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") } @@ -6330,17 +6702,17 @@ func (m *DocumentDataHistoryMutation) OldOperation(ctx context.Context) (v histo } // ResetOperation resets all changes to the "operation" field. -func (m *DocumentDataHistoryMutation) ResetOperation() { +func (m *ContactHistoryMutation) ResetOperation() { m.operation = nil } // SetCreatedAt sets the "created_at" field. -func (m *DocumentDataHistoryMutation) SetCreatedAt(t time.Time) { +func (m *ContactHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *DocumentDataHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *ContactHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -6348,10 +6720,10 @@ func (m *DocumentDataHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ContactHistoryMutation) 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") } @@ -6366,30 +6738,30 @@ func (m *DocumentDataHistoryMutation) OldCreatedAt(ctx context.Context) (v time. } // ClearCreatedAt clears the value of the "created_at" field. -func (m *DocumentDataHistoryMutation) ClearCreatedAt() { +func (m *ContactHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[documentdatahistory.FieldCreatedAt] = struct{}{} + m.clearedFields[contacthistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *DocumentDataHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[documentdatahistory.FieldCreatedAt] +func (m *ContactHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *DocumentDataHistoryMutation) ResetCreatedAt() { +func (m *ContactHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, documentdatahistory.FieldCreatedAt) + delete(m.clearedFields, contacthistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *DocumentDataHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *ContactHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *DocumentDataHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *ContactHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -6397,10 +6769,10 @@ func (m *DocumentDataHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ContactHistoryMutation) 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") } @@ -6415,30 +6787,30 @@ func (m *DocumentDataHistoryMutation) OldUpdatedAt(ctx context.Context) (v time. } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *DocumentDataHistoryMutation) ClearUpdatedAt() { +func (m *ContactHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[documentdatahistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[contacthistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *DocumentDataHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[documentdatahistory.FieldUpdatedAt] +func (m *ContactHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *DocumentDataHistoryMutation) ResetUpdatedAt() { +func (m *ContactHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, documentdatahistory.FieldUpdatedAt) + delete(m.clearedFields, contacthistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *DocumentDataHistoryMutation) SetCreatedBy(s string) { +func (m *ContactHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *DocumentDataHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *ContactHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -6446,10 +6818,10 @@ func (m *DocumentDataHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *ContactHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -6464,30 +6836,30 @@ func (m *DocumentDataHistoryMutation) OldCreatedBy(ctx context.Context) (v strin } // ClearCreatedBy clears the value of the "created_by" field. -func (m *DocumentDataHistoryMutation) ClearCreatedBy() { +func (m *ContactHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[documentdatahistory.FieldCreatedBy] = struct{}{} + m.clearedFields[contacthistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *DocumentDataHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[documentdatahistory.FieldCreatedBy] +func (m *ContactHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *DocumentDataHistoryMutation) ResetCreatedBy() { +func (m *ContactHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, documentdatahistory.FieldCreatedBy) + delete(m.clearedFields, contacthistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *DocumentDataHistoryMutation) SetUpdatedBy(s string) { +func (m *ContactHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *DocumentDataHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *ContactHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -6495,10 +6867,10 @@ func (m *DocumentDataHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *ContactHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -6513,30 +6885,30 @@ func (m *DocumentDataHistoryMutation) OldUpdatedBy(ctx context.Context) (v strin } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *DocumentDataHistoryMutation) ClearUpdatedBy() { +func (m *ContactHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[documentdatahistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[contacthistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *DocumentDataHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[documentdatahistory.FieldUpdatedBy] +func (m *ContactHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *DocumentDataHistoryMutation) ResetUpdatedBy() { +func (m *ContactHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, documentdatahistory.FieldUpdatedBy) + delete(m.clearedFields, contacthistory.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *DocumentDataHistoryMutation) SetMappingID(s string) { +func (m *ContactHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *DocumentDataHistoryMutation) MappingID() (r string, exists bool) { +func (m *ContactHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -6544,10 +6916,10 @@ func (m *DocumentDataHistoryMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *ContactHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -6562,18 +6934,116 @@ func (m *DocumentDataHistoryMutation) OldMappingID(ctx context.Context) (v strin } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *DocumentDataHistoryMutation) ResetMappingID() { +func (m *ContactHistoryMutation) ResetMappingID() { m.mapping_id = nil } +// SetDeletedAt sets the "deleted_at" field. +func (m *ContactHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *ContactHistoryMutation) 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 ContactHistory entity. +// If the ContactHistory 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 *ContactHistoryMutation) 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 *ContactHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[contacthistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *ContactHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *ContactHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, contacthistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *ContactHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *ContactHistoryMutation) 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 ContactHistory entity. +// If the ContactHistory 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 *ContactHistoryMutation) 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 *ContactHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[contacthistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *ContactHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *ContactHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, contacthistory.FieldDeletedBy) +} + // SetTags sets the "tags" field. -func (m *DocumentDataHistoryMutation) SetTags(s []string) { +func (m *ContactHistoryMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *DocumentDataHistoryMutation) Tags() (r []string, exists bool) { +func (m *ContactHistoryMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -6581,10 +7051,10 @@ func (m *DocumentDataHistoryMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *ContactHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -6599,12 +7069,12 @@ func (m *DocumentDataHistoryMutation) OldTags(ctx context.Context) (v []string, } // AppendTags adds s to the "tags" field. -func (m *DocumentDataHistoryMutation) AppendTags(s []string) { +func (m *ContactHistoryMutation) 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 *DocumentDataHistoryMutation) AppendedTags() ([]string, bool) { +func (m *ContactHistoryMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -6612,320 +7082,482 @@ func (m *DocumentDataHistoryMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *DocumentDataHistoryMutation) ClearTags() { +func (m *ContactHistoryMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[documentdatahistory.FieldTags] = struct{}{} + m.clearedFields[contacthistory.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *DocumentDataHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[documentdatahistory.FieldTags] +func (m *ContactHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *DocumentDataHistoryMutation) ResetTags() { +func (m *ContactHistoryMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, documentdatahistory.FieldTags) + delete(m.clearedFields, contacthistory.FieldTags) } -// SetDeletedAt sets the "deleted_at" field. -func (m *DocumentDataHistoryMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetOwnerID sets the "owner_id" field. +func (m *ContactHistoryMutation) SetOwnerID(s string) { + m.owner_id = &s } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *DocumentDataHistoryMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *ContactHistoryMutation) OwnerID() (r string, exists bool) { + v := m.owner_id if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *ContactHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldOwnerID 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") + 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 OldDeletedAt: %w", err) + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) } - return oldValue.DeletedAt, nil + return oldValue.OwnerID, nil } -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *DocumentDataHistoryMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[documentdatahistory.FieldDeletedAt] = struct{}{} +// ClearOwnerID clears the value of the "owner_id" field. +func (m *ContactHistoryMutation) ClearOwnerID() { + m.owner_id = nil + m.clearedFields[contacthistory.FieldOwnerID] = struct{}{} } -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *DocumentDataHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[documentdatahistory.FieldDeletedAt] +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *ContactHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldOwnerID] return ok } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *DocumentDataHistoryMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, documentdatahistory.FieldDeletedAt) +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *ContactHistoryMutation) ResetOwnerID() { + m.owner_id = nil + delete(m.clearedFields, contacthistory.FieldOwnerID) } -// SetDeletedBy sets the "deleted_by" field. -func (m *DocumentDataHistoryMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetFullName sets the "full_name" field. +func (m *ContactHistoryMutation) SetFullName(s string) { + m.full_name = &s } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *DocumentDataHistoryMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// FullName returns the value of the "full_name" field in the mutation. +func (m *ContactHistoryMutation) FullName() (r string, exists bool) { + v := m.full_name if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldFullName returns the old "full_name" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *ContactHistoryMutation) OldFullName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldFullName 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") + 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 OldDeletedBy: %w", err) + return v, fmt.Errorf("querying old value for OldFullName: %w", err) } - return oldValue.DeletedBy, nil + return oldValue.FullName, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *DocumentDataHistoryMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[documentdatahistory.FieldDeletedBy] = struct{}{} +// ResetFullName resets all changes to the "full_name" field. +func (m *ContactHistoryMutation) ResetFullName() { + m.full_name = nil } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *DocumentDataHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[documentdatahistory.FieldDeletedBy] +// SetTitle sets the "title" field. +func (m *ContactHistoryMutation) SetTitle(s string) { + m.title = &s +} + +// Title returns the value of the "title" field in the mutation. +func (m *ContactHistoryMutation) Title() (r string, exists bool) { + v := m.title + if v == nil { + return + } + return *v, true +} + +// OldTitle returns the old "title" field's value of the ContactHistory entity. +// If the ContactHistory 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 *ContactHistoryMutation) OldTitle(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldTitle is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldTitle requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldTitle: %w", err) + } + return oldValue.Title, nil +} + +// ClearTitle clears the value of the "title" field. +func (m *ContactHistoryMutation) ClearTitle() { + m.title = nil + m.clearedFields[contacthistory.FieldTitle] = struct{}{} +} + +// TitleCleared returns if the "title" field was cleared in this mutation. +func (m *ContactHistoryMutation) TitleCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldTitle] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *DocumentDataHistoryMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, documentdatahistory.FieldDeletedBy) +// ResetTitle resets all changes to the "title" field. +func (m *ContactHistoryMutation) ResetTitle() { + m.title = nil + delete(m.clearedFields, contacthistory.FieldTitle) } -// SetOwnerID sets the "owner_id" field. -func (m *DocumentDataHistoryMutation) SetOwnerID(s string) { - m.owner_id = &s +// SetCompany sets the "company" field. +func (m *ContactHistoryMutation) SetCompany(s string) { + m.company = &s } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *DocumentDataHistoryMutation) OwnerID() (r string, exists bool) { - v := m.owner_id +// Company returns the value of the "company" field in the mutation. +func (m *ContactHistoryMutation) Company() (r string, exists bool) { + v := m.company if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCompany returns the old "company" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *ContactHistoryMutation) OldCompany(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldCompany 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") + return v, errors.New("OldCompany 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 v, fmt.Errorf("querying old value for OldCompany: %w", err) } - return oldValue.OwnerID, nil + return oldValue.Company, nil } -// ClearOwnerID clears the value of the "owner_id" field. -func (m *DocumentDataHistoryMutation) ClearOwnerID() { - m.owner_id = nil - m.clearedFields[documentdatahistory.FieldOwnerID] = struct{}{} +// ClearCompany clears the value of the "company" field. +func (m *ContactHistoryMutation) ClearCompany() { + m.company = nil + m.clearedFields[contacthistory.FieldCompany] = struct{}{} } -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *DocumentDataHistoryMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[documentdatahistory.FieldOwnerID] +// CompanyCleared returns if the "company" field was cleared in this mutation. +func (m *ContactHistoryMutation) CompanyCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldCompany] return ok } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *DocumentDataHistoryMutation) ResetOwnerID() { - m.owner_id = nil - delete(m.clearedFields, documentdatahistory.FieldOwnerID) +// ResetCompany resets all changes to the "company" field. +func (m *ContactHistoryMutation) ResetCompany() { + m.company = nil + delete(m.clearedFields, contacthistory.FieldCompany) } -// SetTemplateID sets the "template_id" field. -func (m *DocumentDataHistoryMutation) SetTemplateID(s string) { - m.template_id = &s +// SetEmail sets the "email" field. +func (m *ContactHistoryMutation) SetEmail(s string) { + m.email = &s } -// TemplateID returns the value of the "template_id" field in the mutation. -func (m *DocumentDataHistoryMutation) TemplateID() (r string, exists bool) { - v := m.template_id +// Email returns the value of the "email" field in the mutation. +func (m *ContactHistoryMutation) Email() (r string, exists bool) { + v := m.email if v == nil { return } return *v, true } -// OldTemplateID returns the old "template_id" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldEmail returns the old "email" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldTemplateID(ctx context.Context) (v string, err error) { +func (m *ContactHistoryMutation) OldEmail(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTemplateID is only allowed on UpdateOne operations") + return v, errors.New("OldEmail is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldTemplateID requires an ID field in the mutation") + 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 OldTemplateID: %w", err) + return v, fmt.Errorf("querying old value for OldEmail: %w", err) } - return oldValue.TemplateID, nil + return oldValue.Email, nil } -// ResetTemplateID resets all changes to the "template_id" field. -func (m *DocumentDataHistoryMutation) ResetTemplateID() { - m.template_id = nil +// ClearEmail clears the value of the "email" field. +func (m *ContactHistoryMutation) ClearEmail() { + m.email = nil + m.clearedFields[contacthistory.FieldEmail] = struct{}{} } -// SetData sets the "data" field. -func (m *DocumentDataHistoryMutation) SetData(co customtypes.JSONObject) { - m.data = &co +// EmailCleared returns if the "email" field was cleared in this mutation. +func (m *ContactHistoryMutation) EmailCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldEmail] + return ok } -// Data returns the value of the "data" field in the mutation. -func (m *DocumentDataHistoryMutation) Data() (r customtypes.JSONObject, exists bool) { - v := m.data +// ResetEmail resets all changes to the "email" field. +func (m *ContactHistoryMutation) ResetEmail() { + m.email = nil + delete(m.clearedFields, contacthistory.FieldEmail) +} + +// SetPhoneNumber sets the "phone_number" field. +func (m *ContactHistoryMutation) SetPhoneNumber(s string) { + m.phone_number = &s +} + +// PhoneNumber returns the value of the "phone_number" field in the mutation. +func (m *ContactHistoryMutation) PhoneNumber() (r string, exists bool) { + v := m.phone_number if v == nil { return } return *v, true } -// OldData returns the old "data" field's value of the DocumentDataHistory entity. -// If the DocumentDataHistory object wasn't provided to the builder, the object is fetched from the database. +// OldPhoneNumber returns the old "phone_number" field's value of the ContactHistory entity. +// If the ContactHistory 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 *DocumentDataHistoryMutation) OldData(ctx context.Context) (v customtypes.JSONObject, err error) { +func (m *ContactHistoryMutation) OldPhoneNumber(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldData is only allowed on UpdateOne operations") + return v, errors.New("OldPhoneNumber is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldData requires an ID field in the mutation") + return v, errors.New("OldPhoneNumber requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldData: %w", err) + return v, fmt.Errorf("querying old value for OldPhoneNumber: %w", err) } - return oldValue.Data, nil + return oldValue.PhoneNumber, nil } -// ResetData resets all changes to the "data" field. -func (m *DocumentDataHistoryMutation) ResetData() { - m.data = nil +// ClearPhoneNumber clears the value of the "phone_number" field. +func (m *ContactHistoryMutation) ClearPhoneNumber() { + m.phone_number = nil + m.clearedFields[contacthistory.FieldPhoneNumber] = struct{}{} } -// Where appends a list predicates to the DocumentDataHistoryMutation builder. -func (m *DocumentDataHistoryMutation) Where(ps ...predicate.DocumentDataHistory) { - m.predicates = append(m.predicates, ps...) +// PhoneNumberCleared returns if the "phone_number" field was cleared in this mutation. +func (m *ContactHistoryMutation) PhoneNumberCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldPhoneNumber] + return ok } -// WhereP appends storage-level predicates to the DocumentDataHistoryMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *DocumentDataHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.DocumentDataHistory, len(ps)) - for i := range ps { - p[i] = ps[i] +// ResetPhoneNumber resets all changes to the "phone_number" field. +func (m *ContactHistoryMutation) ResetPhoneNumber() { + m.phone_number = nil + delete(m.clearedFields, contacthistory.FieldPhoneNumber) +} + +// SetAddress sets the "address" field. +func (m *ContactHistoryMutation) SetAddress(s string) { + m.address = &s +} + +// Address returns the value of the "address" field in the mutation. +func (m *ContactHistoryMutation) Address() (r string, exists bool) { + v := m.address + if v == nil { + return } - m.Where(p...) + return *v, true } -// Op returns the operation name. -func (m *DocumentDataHistoryMutation) Op() Op { - return m.op +// OldAddress returns the old "address" field's value of the ContactHistory entity. +// If the ContactHistory 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 *ContactHistoryMutation) OldAddress(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldAddress is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldAddress requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldAddress: %w", err) + } + return oldValue.Address, nil } -// SetOp allows setting the mutation operation. -func (m *DocumentDataHistoryMutation) SetOp(op Op) { - m.op = op +// ClearAddress clears the value of the "address" field. +func (m *ContactHistoryMutation) ClearAddress() { + m.address = nil + m.clearedFields[contacthistory.FieldAddress] = struct{}{} } -// Type returns the node type of this mutation (DocumentDataHistory). -func (m *DocumentDataHistoryMutation) Type() string { - return m.typ +// AddressCleared returns if the "address" field was cleared in this mutation. +func (m *ContactHistoryMutation) AddressCleared() bool { + _, ok := m.clearedFields[contacthistory.FieldAddress] + return ok } -// 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 *DocumentDataHistoryMutation) Fields() []string { - fields := make([]string, 0, 14) - if m.history_time != nil { - fields = append(fields, documentdatahistory.FieldHistoryTime) +// ResetAddress resets all changes to the "address" field. +func (m *ContactHistoryMutation) ResetAddress() { + m.address = nil + delete(m.clearedFields, contacthistory.FieldAddress) +} + +// SetStatus sets the "status" field. +func (m *ContactHistoryMutation) SetStatus(es enums.UserStatus) { + m.status = &es +} + +// Status returns the value of the "status" field in the mutation. +func (m *ContactHistoryMutation) Status() (r enums.UserStatus, exists bool) { + v := m.status + if v == nil { + return } - if m.ref != nil { - fields = append(fields, documentdatahistory.FieldRef) + return *v, true +} + +// OldStatus returns the old "status" field's value of the ContactHistory entity. +// If the ContactHistory 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 *ContactHistoryMutation) OldStatus(ctx context.Context) (v enums.UserStatus, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStatus is only allowed on UpdateOne operations") } - if m.operation != nil { - fields = append(fields, documentdatahistory.FieldOperation) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStatus requires an ID field in the mutation") } - if m.created_at != nil { - fields = append(fields, documentdatahistory.FieldCreatedAt) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStatus: %w", err) } - if m.updated_at != nil { - fields = append(fields, documentdatahistory.FieldUpdatedAt) + return oldValue.Status, nil +} + +// ResetStatus resets all changes to the "status" field. +func (m *ContactHistoryMutation) ResetStatus() { + m.status = nil +} + +// Where appends a list predicates to the ContactHistoryMutation builder. +func (m *ContactHistoryMutation) Where(ps ...predicate.ContactHistory) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the ContactHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *ContactHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.ContactHistory, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *ContactHistoryMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *ContactHistoryMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (ContactHistory). +func (m *ContactHistoryMutation) 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 *ContactHistoryMutation) Fields() []string { + fields := make([]string, 0, 19) + if m.history_time != nil { + fields = append(fields, contacthistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, contacthistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, contacthistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, contacthistory.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, contacthistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, documentdatahistory.FieldCreatedBy) + fields = append(fields, contacthistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, documentdatahistory.FieldUpdatedBy) + fields = append(fields, contacthistory.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, documentdatahistory.FieldMappingID) - } - if m.tags != nil { - fields = append(fields, documentdatahistory.FieldTags) + fields = append(fields, contacthistory.FieldMappingID) } if m.deleted_at != nil { - fields = append(fields, documentdatahistory.FieldDeletedAt) + fields = append(fields, contacthistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, documentdatahistory.FieldDeletedBy) + fields = append(fields, contacthistory.FieldDeletedBy) + } + if m.tags != nil { + fields = append(fields, contacthistory.FieldTags) } if m.owner_id != nil { - fields = append(fields, documentdatahistory.FieldOwnerID) + fields = append(fields, contacthistory.FieldOwnerID) } - if m.template_id != nil { - fields = append(fields, documentdatahistory.FieldTemplateID) + if m.full_name != nil { + fields = append(fields, contacthistory.FieldFullName) } - if m.data != nil { - fields = append(fields, documentdatahistory.FieldData) + if m.title != nil { + fields = append(fields, contacthistory.FieldTitle) + } + if m.company != nil { + fields = append(fields, contacthistory.FieldCompany) + } + if m.email != nil { + fields = append(fields, contacthistory.FieldEmail) + } + if m.phone_number != nil { + fields = append(fields, contacthistory.FieldPhoneNumber) + } + if m.address != nil { + fields = append(fields, contacthistory.FieldAddress) + } + if m.status != nil { + fields = append(fields, contacthistory.FieldStatus) } return fields } @@ -6933,36 +7565,46 @@ func (m *DocumentDataHistoryMutation) Fields() []string { // 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 *DocumentDataHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *ContactHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case documentdatahistory.FieldHistoryTime: + case contacthistory.FieldHistoryTime: return m.HistoryTime() - case documentdatahistory.FieldRef: + case contacthistory.FieldRef: return m.Ref() - case documentdatahistory.FieldOperation: + case contacthistory.FieldOperation: return m.Operation() - case documentdatahistory.FieldCreatedAt: + case contacthistory.FieldCreatedAt: return m.CreatedAt() - case documentdatahistory.FieldUpdatedAt: + case contacthistory.FieldUpdatedAt: return m.UpdatedAt() - case documentdatahistory.FieldCreatedBy: + case contacthistory.FieldCreatedBy: return m.CreatedBy() - case documentdatahistory.FieldUpdatedBy: + case contacthistory.FieldUpdatedBy: return m.UpdatedBy() - case documentdatahistory.FieldMappingID: + case contacthistory.FieldMappingID: return m.MappingID() - case documentdatahistory.FieldTags: - return m.Tags() - case documentdatahistory.FieldDeletedAt: + case contacthistory.FieldDeletedAt: return m.DeletedAt() - case documentdatahistory.FieldDeletedBy: + case contacthistory.FieldDeletedBy: return m.DeletedBy() - case documentdatahistory.FieldOwnerID: + case contacthistory.FieldTags: + return m.Tags() + case contacthistory.FieldOwnerID: return m.OwnerID() - case documentdatahistory.FieldTemplateID: - return m.TemplateID() - case documentdatahistory.FieldData: - return m.Data() + case contacthistory.FieldFullName: + return m.FullName() + case contacthistory.FieldTitle: + return m.Title() + case contacthistory.FieldCompany: + return m.Company() + case contacthistory.FieldEmail: + return m.Email() + case contacthistory.FieldPhoneNumber: + return m.PhoneNumber() + case contacthistory.FieldAddress: + return m.Address() + case contacthistory.FieldStatus: + return m.Status() } return nil, false } @@ -6970,379 +7612,498 @@ func (m *DocumentDataHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *DocumentDataHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *ContactHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case documentdatahistory.FieldHistoryTime: + case contacthistory.FieldHistoryTime: return m.OldHistoryTime(ctx) - case documentdatahistory.FieldRef: + case contacthistory.FieldRef: return m.OldRef(ctx) - case documentdatahistory.FieldOperation: + case contacthistory.FieldOperation: return m.OldOperation(ctx) - case documentdatahistory.FieldCreatedAt: + case contacthistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case documentdatahistory.FieldUpdatedAt: + case contacthistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case documentdatahistory.FieldCreatedBy: + case contacthistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case documentdatahistory.FieldUpdatedBy: + case contacthistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case documentdatahistory.FieldMappingID: + case contacthistory.FieldMappingID: return m.OldMappingID(ctx) - case documentdatahistory.FieldTags: - return m.OldTags(ctx) - case documentdatahistory.FieldDeletedAt: + case contacthistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case documentdatahistory.FieldDeletedBy: + case contacthistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case documentdatahistory.FieldOwnerID: + case contacthistory.FieldTags: + return m.OldTags(ctx) + case contacthistory.FieldOwnerID: return m.OldOwnerID(ctx) - case documentdatahistory.FieldTemplateID: - return m.OldTemplateID(ctx) - case documentdatahistory.FieldData: - return m.OldData(ctx) + case contacthistory.FieldFullName: + return m.OldFullName(ctx) + case contacthistory.FieldTitle: + return m.OldTitle(ctx) + case contacthistory.FieldCompany: + return m.OldCompany(ctx) + case contacthistory.FieldEmail: + return m.OldEmail(ctx) + case contacthistory.FieldPhoneNumber: + return m.OldPhoneNumber(ctx) + case contacthistory.FieldAddress: + return m.OldAddress(ctx) + case contacthistory.FieldStatus: + return m.OldStatus(ctx) } - return nil, fmt.Errorf("unknown DocumentDataHistory field %s", name) + return nil, fmt.Errorf("unknown ContactHistory 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 *DocumentDataHistoryMutation) SetField(name string, value ent.Value) error { +func (m *ContactHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case documentdatahistory.FieldHistoryTime: + case contacthistory.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 documentdatahistory.FieldRef: + case contacthistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetRef(v) return nil - case documentdatahistory.FieldOperation: + case contacthistory.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 documentdatahistory.FieldCreatedAt: + case contacthistory.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 documentdatahistory.FieldUpdatedAt: + case contacthistory.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 documentdatahistory.FieldCreatedBy: + case contacthistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case documentdatahistory.FieldUpdatedBy: + case contacthistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case documentdatahistory.FieldMappingID: + case contacthistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case documentdatahistory.FieldTags: + case contacthistory.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 contacthistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case contacthistory.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case documentdatahistory.FieldDeletedAt: - v, ok := value.(time.Time) + case contacthistory.FieldOwnerID: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetOwnerID(v) return nil - case documentdatahistory.FieldDeletedBy: + case contacthistory.FieldFullName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetFullName(v) return nil - case documentdatahistory.FieldOwnerID: + case contacthistory.FieldTitle: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetTitle(v) return nil - case documentdatahistory.FieldTemplateID: + case contacthistory.FieldCompany: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTemplateID(v) + m.SetCompany(v) return nil - case documentdatahistory.FieldData: - v, ok := value.(customtypes.JSONObject) + case contacthistory.FieldEmail: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetData(v) + m.SetEmail(v) + return nil + case contacthistory.FieldPhoneNumber: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetPhoneNumber(v) + return nil + case contacthistory.FieldAddress: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetAddress(v) + return nil + case contacthistory.FieldStatus: + v, ok := value.(enums.UserStatus) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStatus(v) return nil } - return fmt.Errorf("unknown DocumentDataHistory field %s", name) + return fmt.Errorf("unknown ContactHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *DocumentDataHistoryMutation) AddedFields() []string { +func (m *ContactHistoryMutation) 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 *DocumentDataHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *ContactHistoryMutation) 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 *DocumentDataHistoryMutation) AddField(name string, value ent.Value) error { +func (m *ContactHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown DocumentDataHistory numeric field %s", name) + return fmt.Errorf("unknown ContactHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *DocumentDataHistoryMutation) ClearedFields() []string { +func (m *ContactHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(documentdatahistory.FieldRef) { - fields = append(fields, documentdatahistory.FieldRef) + if m.FieldCleared(contacthistory.FieldRef) { + fields = append(fields, contacthistory.FieldRef) } - if m.FieldCleared(documentdatahistory.FieldCreatedAt) { - fields = append(fields, documentdatahistory.FieldCreatedAt) + if m.FieldCleared(contacthistory.FieldCreatedAt) { + fields = append(fields, contacthistory.FieldCreatedAt) } - if m.FieldCleared(documentdatahistory.FieldUpdatedAt) { - fields = append(fields, documentdatahistory.FieldUpdatedAt) + if m.FieldCleared(contacthistory.FieldUpdatedAt) { + fields = append(fields, contacthistory.FieldUpdatedAt) } - if m.FieldCleared(documentdatahistory.FieldCreatedBy) { - fields = append(fields, documentdatahistory.FieldCreatedBy) + if m.FieldCleared(contacthistory.FieldCreatedBy) { + fields = append(fields, contacthistory.FieldCreatedBy) } - if m.FieldCleared(documentdatahistory.FieldUpdatedBy) { - fields = append(fields, documentdatahistory.FieldUpdatedBy) + if m.FieldCleared(contacthistory.FieldUpdatedBy) { + fields = append(fields, contacthistory.FieldUpdatedBy) } - if m.FieldCleared(documentdatahistory.FieldTags) { - fields = append(fields, documentdatahistory.FieldTags) + if m.FieldCleared(contacthistory.FieldDeletedAt) { + fields = append(fields, contacthistory.FieldDeletedAt) } - if m.FieldCleared(documentdatahistory.FieldDeletedAt) { - fields = append(fields, documentdatahistory.FieldDeletedAt) + if m.FieldCleared(contacthistory.FieldDeletedBy) { + fields = append(fields, contacthistory.FieldDeletedBy) } - if m.FieldCleared(documentdatahistory.FieldDeletedBy) { - fields = append(fields, documentdatahistory.FieldDeletedBy) + if m.FieldCleared(contacthistory.FieldTags) { + fields = append(fields, contacthistory.FieldTags) } - if m.FieldCleared(documentdatahistory.FieldOwnerID) { - fields = append(fields, documentdatahistory.FieldOwnerID) + if m.FieldCleared(contacthistory.FieldOwnerID) { + fields = append(fields, contacthistory.FieldOwnerID) + } + if m.FieldCleared(contacthistory.FieldTitle) { + fields = append(fields, contacthistory.FieldTitle) + } + if m.FieldCleared(contacthistory.FieldCompany) { + fields = append(fields, contacthistory.FieldCompany) + } + if m.FieldCleared(contacthistory.FieldEmail) { + fields = append(fields, contacthistory.FieldEmail) + } + if m.FieldCleared(contacthistory.FieldPhoneNumber) { + fields = append(fields, contacthistory.FieldPhoneNumber) + } + if m.FieldCleared(contacthistory.FieldAddress) { + fields = append(fields, contacthistory.FieldAddress) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *DocumentDataHistoryMutation) FieldCleared(name string) bool { +func (m *ContactHistoryMutation) 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 *DocumentDataHistoryMutation) ClearField(name string) error { +func (m *ContactHistoryMutation) ClearField(name string) error { switch name { - case documentdatahistory.FieldRef: + case contacthistory.FieldRef: m.ClearRef() return nil - case documentdatahistory.FieldCreatedAt: + case contacthistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case documentdatahistory.FieldUpdatedAt: + case contacthistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case documentdatahistory.FieldCreatedBy: + case contacthistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case documentdatahistory.FieldUpdatedBy: + case contacthistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case documentdatahistory.FieldTags: - m.ClearTags() - return nil - case documentdatahistory.FieldDeletedAt: + case contacthistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case documentdatahistory.FieldDeletedBy: + case contacthistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case documentdatahistory.FieldOwnerID: + case contacthistory.FieldTags: + m.ClearTags() + return nil + case contacthistory.FieldOwnerID: m.ClearOwnerID() return nil + case contacthistory.FieldTitle: + m.ClearTitle() + return nil + case contacthistory.FieldCompany: + m.ClearCompany() + return nil + case contacthistory.FieldEmail: + m.ClearEmail() + return nil + case contacthistory.FieldPhoneNumber: + m.ClearPhoneNumber() + return nil + case contacthistory.FieldAddress: + m.ClearAddress() + return nil } - return fmt.Errorf("unknown DocumentDataHistory nullable field %s", name) + return fmt.Errorf("unknown ContactHistory 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 *DocumentDataHistoryMutation) ResetField(name string) error { +func (m *ContactHistoryMutation) ResetField(name string) error { switch name { - case documentdatahistory.FieldHistoryTime: + case contacthistory.FieldHistoryTime: m.ResetHistoryTime() return nil - case documentdatahistory.FieldRef: + case contacthistory.FieldRef: m.ResetRef() return nil - case documentdatahistory.FieldOperation: + case contacthistory.FieldOperation: m.ResetOperation() return nil - case documentdatahistory.FieldCreatedAt: + case contacthistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case documentdatahistory.FieldUpdatedAt: + case contacthistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case documentdatahistory.FieldCreatedBy: + case contacthistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case documentdatahistory.FieldUpdatedBy: + case contacthistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case documentdatahistory.FieldMappingID: + case contacthistory.FieldMappingID: m.ResetMappingID() return nil - case documentdatahistory.FieldTags: - m.ResetTags() - return nil - case documentdatahistory.FieldDeletedAt: + case contacthistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case documentdatahistory.FieldDeletedBy: + case contacthistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case documentdatahistory.FieldOwnerID: + case contacthistory.FieldTags: + m.ResetTags() + return nil + case contacthistory.FieldOwnerID: m.ResetOwnerID() return nil - case documentdatahistory.FieldTemplateID: - m.ResetTemplateID() + case contacthistory.FieldFullName: + m.ResetFullName() return nil - case documentdatahistory.FieldData: - m.ResetData() + case contacthistory.FieldTitle: + m.ResetTitle() + return nil + case contacthistory.FieldCompany: + m.ResetCompany() + return nil + case contacthistory.FieldEmail: + m.ResetEmail() + return nil + case contacthistory.FieldPhoneNumber: + m.ResetPhoneNumber() + return nil + case contacthistory.FieldAddress: + m.ResetAddress() + return nil + case contacthistory.FieldStatus: + m.ResetStatus() return nil } - return fmt.Errorf("unknown DocumentDataHistory field %s", name) + return fmt.Errorf("unknown ContactHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *DocumentDataHistoryMutation) AddedEdges() []string { +func (m *ContactHistoryMutation) 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 *DocumentDataHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *ContactHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *DocumentDataHistoryMutation) RemovedEdges() []string { +func (m *ContactHistoryMutation) 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 *DocumentDataHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *ContactHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *DocumentDataHistoryMutation) ClearedEdges() []string { +func (m *ContactHistoryMutation) 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 *DocumentDataHistoryMutation) EdgeCleared(name string) bool { +func (m *ContactHistoryMutation) 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 *DocumentDataHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown DocumentDataHistory unique edge %s", name) +func (m *ContactHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown ContactHistory 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 *DocumentDataHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown DocumentDataHistory edge %s", name) +func (m *ContactHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown ContactHistory edge %s", name) } -// EmailVerificationTokenMutation represents an operation that mutates the EmailVerificationToken nodes in the graph. -type EmailVerificationTokenMutation struct { +// ControlMutation represents an operation that mutates the Control nodes in the graph. +type ControlMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - deleted_at *time.Time - deleted_by *string - token *string - ttl *time.Time - email *string - secret *[]byte - clearedFields map[string]struct{} - owner *string - clearedowner bool - done bool - oldValue func(context.Context) (*EmailVerificationToken, error) - predicates []predicate.EmailVerificationToken + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + status *string + control_type *string + version *string + control_number *string + family *string + class *string + source *string + satisfies *string + mapped_frameworks *string + details *map[string]interface{} + clearedFields map[string]struct{} + procedures map[string]struct{} + removedprocedures map[string]struct{} + clearedprocedures bool + subcontrols map[string]struct{} + removedsubcontrols map[string]struct{} + clearedsubcontrols bool + controlobjectives map[string]struct{} + removedcontrolobjectives map[string]struct{} + clearedcontrolobjectives bool + standard map[string]struct{} + removedstandard map[string]struct{} + clearedstandard bool + narratives map[string]struct{} + removednarratives map[string]struct{} + clearednarratives bool + risks map[string]struct{} + removedrisks map[string]struct{} + clearedrisks bool + actionplans map[string]struct{} + removedactionplans map[string]struct{} + clearedactionplans bool + done bool + oldValue func(context.Context) (*Control, error) + predicates []predicate.Control } -var _ ent.Mutation = (*EmailVerificationTokenMutation)(nil) +var _ ent.Mutation = (*ControlMutation)(nil) -// emailverificationtokenOption allows management of the mutation configuration using functional options. -type emailverificationtokenOption func(*EmailVerificationTokenMutation) +// controlOption allows management of the mutation configuration using functional options. +type controlOption func(*ControlMutation) -// newEmailVerificationTokenMutation creates new mutation for the EmailVerificationToken entity. -func newEmailVerificationTokenMutation(c config, op Op, opts ...emailverificationtokenOption) *EmailVerificationTokenMutation { - m := &EmailVerificationTokenMutation{ +// newControlMutation creates new mutation for the Control entity. +func newControlMutation(c config, op Op, opts ...controlOption) *ControlMutation { + m := &ControlMutation{ config: c, op: op, - typ: TypeEmailVerificationToken, + typ: TypeControl, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -7351,20 +8112,20 @@ func newEmailVerificationTokenMutation(c config, op Op, opts ...emailverificatio return m } -// withEmailVerificationTokenID sets the ID field of the mutation. -func withEmailVerificationTokenID(id string) emailverificationtokenOption { - return func(m *EmailVerificationTokenMutation) { +// withControlID sets the ID field of the mutation. +func withControlID(id string) controlOption { + return func(m *ControlMutation) { var ( err error once sync.Once - value *EmailVerificationToken + value *Control ) - m.oldValue = func(ctx context.Context) (*EmailVerificationToken, error) { + m.oldValue = func(ctx context.Context) (*Control, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().EmailVerificationToken.Get(ctx, id) + value, err = m.Client().Control.Get(ctx, id) } }) return value, err @@ -7373,10 +8134,10 @@ func withEmailVerificationTokenID(id string) emailverificationtokenOption { } } -// withEmailVerificationToken sets the old EmailVerificationToken of the mutation. -func withEmailVerificationToken(node *EmailVerificationToken) emailverificationtokenOption { - return func(m *EmailVerificationTokenMutation) { - m.oldValue = func(context.Context) (*EmailVerificationToken, error) { +// withControl sets the old Control of the mutation. +func withControl(node *Control) controlOption { + return func(m *ControlMutation) { + m.oldValue = func(context.Context) (*Control, error) { return node, nil } m.id = &node.ID @@ -7385,7 +8146,7 @@ func withEmailVerificationToken(node *EmailVerificationToken) emailverificationt // 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 EmailVerificationTokenMutation) Client() *Client { +func (m ControlMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -7393,7 +8154,7 @@ func (m EmailVerificationTokenMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EmailVerificationTokenMutation) Tx() (*Tx, error) { +func (m ControlMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -7403,14 +8164,14 @@ func (m EmailVerificationTokenMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of EmailVerificationToken entities. -func (m *EmailVerificationTokenMutation) SetID(id string) { +// operation is only accepted on creation of Control entities. +func (m *ControlMutation) 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 *EmailVerificationTokenMutation) ID() (id string, exists bool) { +func (m *ControlMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -7421,7 +8182,7 @@ func (m *EmailVerificationTokenMutation) ID() (id string, exists bool) { // 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 *EmailVerificationTokenMutation) IDs(ctx context.Context) ([]string, error) { +func (m *ControlMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -7430,19 +8191,19 @@ func (m *EmailVerificationTokenMutation) IDs(ctx context.Context) ([]string, err } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().EmailVerificationToken.Query().Where(m.predicates...).IDs(ctx) + return m.Client().Control.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 *EmailVerificationTokenMutation) SetCreatedAt(t time.Time) { +func (m *ControlMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EmailVerificationTokenMutation) CreatedAt() (r time.Time, exists bool) { +func (m *ControlMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -7450,10 +8211,10 @@ func (m *EmailVerificationTokenMutation) CreatedAt() (r time.Time, exists bool) return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the EmailVerificationToken entity. -// If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the Control entity. +// If the Control 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 *EmailVerificationTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ControlMutation) 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") } @@ -7468,30 +8229,30 @@ func (m *EmailVerificationTokenMutation) OldCreatedAt(ctx context.Context) (v ti } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EmailVerificationTokenMutation) ClearCreatedAt() { +func (m *ControlMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[emailverificationtoken.FieldCreatedAt] = struct{}{} + m.clearedFields[control.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EmailVerificationTokenMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[emailverificationtoken.FieldCreatedAt] +func (m *ControlMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[control.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EmailVerificationTokenMutation) ResetCreatedAt() { +func (m *ControlMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, emailverificationtoken.FieldCreatedAt) + delete(m.clearedFields, control.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EmailVerificationTokenMutation) SetUpdatedAt(t time.Time) { +func (m *ControlMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EmailVerificationTokenMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *ControlMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -7499,10 +8260,10 @@ func (m *EmailVerificationTokenMutation) UpdatedAt() (r time.Time, exists bool) return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the EmailVerificationToken entity. -// If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the Control entity. +// If the Control 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 *EmailVerificationTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ControlMutation) 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") } @@ -7517,30 +8278,30 @@ func (m *EmailVerificationTokenMutation) OldUpdatedAt(ctx context.Context) (v ti } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EmailVerificationTokenMutation) ClearUpdatedAt() { +func (m *ControlMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[emailverificationtoken.FieldUpdatedAt] = struct{}{} + m.clearedFields[control.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EmailVerificationTokenMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[emailverificationtoken.FieldUpdatedAt] +func (m *ControlMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[control.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EmailVerificationTokenMutation) ResetUpdatedAt() { +func (m *ControlMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, emailverificationtoken.FieldUpdatedAt) + delete(m.clearedFields, control.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EmailVerificationTokenMutation) SetCreatedBy(s string) { +func (m *ControlMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EmailVerificationTokenMutation) CreatedBy() (r string, exists bool) { +func (m *ControlMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -7548,10 +8309,10 @@ func (m *EmailVerificationTokenMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the EmailVerificationToken entity. -// If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the Control entity. +// If the Control 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 *EmailVerificationTokenMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *ControlMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -7566,30 +8327,30 @@ func (m *EmailVerificationTokenMutation) OldCreatedBy(ctx context.Context) (v st } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EmailVerificationTokenMutation) ClearCreatedBy() { +func (m *ControlMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[emailverificationtoken.FieldCreatedBy] = struct{}{} + m.clearedFields[control.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EmailVerificationTokenMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[emailverificationtoken.FieldCreatedBy] +func (m *ControlMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[control.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EmailVerificationTokenMutation) ResetCreatedBy() { +func (m *ControlMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, emailverificationtoken.FieldCreatedBy) + delete(m.clearedFields, control.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EmailVerificationTokenMutation) SetUpdatedBy(s string) { +func (m *ControlMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EmailVerificationTokenMutation) UpdatedBy() (r string, exists bool) { +func (m *ControlMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -7597,10 +8358,10 @@ func (m *EmailVerificationTokenMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the EmailVerificationToken entity. -// If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the Control entity. +// If the Control 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 *EmailVerificationTokenMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *ControlMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -7615,66 +8376,30 @@ func (m *EmailVerificationTokenMutation) OldUpdatedBy(ctx context.Context) (v st } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EmailVerificationTokenMutation) ClearUpdatedBy() { +func (m *ControlMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[emailverificationtoken.FieldUpdatedBy] = struct{}{} + m.clearedFields[control.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EmailVerificationTokenMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[emailverificationtoken.FieldUpdatedBy] +func (m *ControlMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[control.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EmailVerificationTokenMutation) ResetUpdatedBy() { +func (m *ControlMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, emailverificationtoken.FieldUpdatedBy) -} - -// SetMappingID sets the "mapping_id" field. -func (m *EmailVerificationTokenMutation) SetMappingID(s string) { - m.mapping_id = &s -} - -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EmailVerificationTokenMutation) MappingID() (r string, exists bool) { - v := m.mapping_id - if v == nil { - return - } - return *v, true -} - -// OldMappingID returns the old "mapping_id" field's value of the EmailVerificationToken entity. -// If the EmailVerificationToken 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 *EmailVerificationTokenMutation) OldMappingID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) - } - return oldValue.MappingID, nil -} - -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *EmailVerificationTokenMutation) ResetMappingID() { - m.mapping_id = nil + delete(m.clearedFields, control.FieldUpdatedBy) } // SetDeletedAt sets the "deleted_at" field. -func (m *EmailVerificationTokenMutation) SetDeletedAt(t time.Time) { +func (m *ControlMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *EmailVerificationTokenMutation) DeletedAt() (r time.Time, exists bool) { +func (m *ControlMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -7682,10 +8407,10 @@ func (m *EmailVerificationTokenMutation) DeletedAt() (r time.Time, exists bool) return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the EmailVerificationToken entity. -// If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the Control entity. +// If the Control 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 *EmailVerificationTokenMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *ControlMutation) 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") } @@ -7700,30 +8425,30 @@ func (m *EmailVerificationTokenMutation) OldDeletedAt(ctx context.Context) (v ti } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *EmailVerificationTokenMutation) ClearDeletedAt() { +func (m *ControlMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[emailverificationtoken.FieldDeletedAt] = struct{}{} + m.clearedFields[control.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *EmailVerificationTokenMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[emailverificationtoken.FieldDeletedAt] +func (m *ControlMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[control.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *EmailVerificationTokenMutation) ResetDeletedAt() { +func (m *ControlMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, emailverificationtoken.FieldDeletedAt) + delete(m.clearedFields, control.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *EmailVerificationTokenMutation) SetDeletedBy(s string) { +func (m *ControlMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *EmailVerificationTokenMutation) DeletedBy() (r string, exists bool) { +func (m *ControlMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -7731,10 +8456,10 @@ func (m *EmailVerificationTokenMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the EmailVerificationToken entity. -// If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the Control entity. +// If the Control 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 *EmailVerificationTokenMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *ControlMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -7749,707 +8474,1929 @@ func (m *EmailVerificationTokenMutation) OldDeletedBy(ctx context.Context) (v st } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *EmailVerificationTokenMutation) ClearDeletedBy() { +func (m *ControlMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[emailverificationtoken.FieldDeletedBy] = struct{}{} + m.clearedFields[control.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *EmailVerificationTokenMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[emailverificationtoken.FieldDeletedBy] +func (m *ControlMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[control.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *EmailVerificationTokenMutation) ResetDeletedBy() { +func (m *ControlMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, emailverificationtoken.FieldDeletedBy) + delete(m.clearedFields, control.FieldDeletedBy) } -// SetOwnerID sets the "owner_id" field. -func (m *EmailVerificationTokenMutation) SetOwnerID(s string) { - m.owner = &s +// SetMappingID sets the "mapping_id" field. +func (m *ControlMutation) SetMappingID(s string) { + m.mapping_id = &s } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *EmailVerificationTokenMutation) OwnerID() (r string, exists bool) { - v := m.owner +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *ControlMutation) MappingID() (r string, exists bool) { + v := m.mapping_id if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the EmailVerificationToken entity. -// If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the Control entity. +// If the Control 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 *EmailVerificationTokenMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *ControlMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldMappingID 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") + return v, errors.New("OldMappingID 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 v, fmt.Errorf("querying old value for OldMappingID: %w", err) } - return oldValue.OwnerID, nil + return oldValue.MappingID, nil } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *EmailVerificationTokenMutation) ResetOwnerID() { - m.owner = nil +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *ControlMutation) ResetMappingID() { + m.mapping_id = nil } -// SetToken sets the "token" field. -func (m *EmailVerificationTokenMutation) SetToken(s string) { - m.token = &s +// SetTags sets the "tags" field. +func (m *ControlMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// Token returns the value of the "token" field in the mutation. -func (m *EmailVerificationTokenMutation) Token() (r string, exists bool) { - v := m.token +// Tags returns the value of the "tags" field in the mutation. +func (m *ControlMutation) Tags() (r []string, exists bool) { + v := m.tags if v == nil { return } return *v, true } -// OldToken returns the old "token" field's value of the EmailVerificationToken entity. -// If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the Control entity. +// If the Control 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 *EmailVerificationTokenMutation) OldToken(ctx context.Context) (v string, err error) { +func (m *ControlMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldToken is only allowed on UpdateOne operations") + return v, errors.New("OldTags is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldToken requires an ID field in the mutation") + 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 OldToken: %w", err) + return v, fmt.Errorf("querying old value for OldTags: %w", err) } - return oldValue.Token, nil + return oldValue.Tags, nil } -// ResetToken resets all changes to the "token" field. -func (m *EmailVerificationTokenMutation) ResetToken() { - m.token = nil +// AppendTags adds s to the "tags" field. +func (m *ControlMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) } -// SetTTL sets the "ttl" field. -func (m *EmailVerificationTokenMutation) SetTTL(t time.Time) { - m.ttl = &t +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *ControlMutation) AppendedTags() ([]string, bool) { + if len(m.appendtags) == 0 { + return nil, false + } + return m.appendtags, true } -// TTL returns the value of the "ttl" field in the mutation. -func (m *EmailVerificationTokenMutation) TTL() (r time.Time, exists bool) { - v := m.ttl +// ClearTags clears the value of the "tags" field. +func (m *ControlMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[control.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *ControlMutation) TagsCleared() bool { + _, ok := m.clearedFields[control.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *ControlMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, control.FieldTags) +} + +// SetName sets the "name" field. +func (m *ControlMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *ControlMutation) Name() (r string, exists bool) { + v := m.name if v == nil { return } return *v, true } -// OldTTL returns the old "ttl" field's value of the EmailVerificationToken entity. -// If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the Control entity. +// If the Control 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 *EmailVerificationTokenMutation) OldTTL(ctx context.Context) (v *time.Time, err error) { +func (m *ControlMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTTL is only allowed on UpdateOne operations") + return v, errors.New("OldName is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldTTL requires an ID field in the mutation") + 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 OldTTL: %w", err) + return v, fmt.Errorf("querying old value for OldName: %w", err) } - return oldValue.TTL, nil + return oldValue.Name, nil } -// ResetTTL resets all changes to the "ttl" field. -func (m *EmailVerificationTokenMutation) ResetTTL() { - m.ttl = nil +// ResetName resets all changes to the "name" field. +func (m *ControlMutation) ResetName() { + m.name = nil } -// SetEmail sets the "email" field. -func (m *EmailVerificationTokenMutation) SetEmail(s string) { - m.email = &s +// SetDescription sets the "description" field. +func (m *ControlMutation) SetDescription(s string) { + m.description = &s } -// Email returns the value of the "email" field in the mutation. -func (m *EmailVerificationTokenMutation) Email() (r string, exists bool) { - v := m.email +// Description returns the value of the "description" field in the mutation. +func (m *ControlMutation) Description() (r string, exists bool) { + v := m.description if v == nil { return } return *v, true } -// OldEmail returns the old "email" field's value of the EmailVerificationToken entity. -// If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the Control entity. +// If the Control 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 *EmailVerificationTokenMutation) OldEmail(ctx context.Context) (v string, err error) { +func (m *ControlMutation) OldDescription(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldEmail is only allowed on UpdateOne operations") + return v, errors.New("OldDescription 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") + 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 OldEmail: %w", err) + return v, fmt.Errorf("querying old value for OldDescription: %w", err) } - return oldValue.Email, nil + return oldValue.Description, nil } -// ResetEmail resets all changes to the "email" field. -func (m *EmailVerificationTokenMutation) ResetEmail() { - m.email = nil +// ClearDescription clears the value of the "description" field. +func (m *ControlMutation) ClearDescription() { + m.description = nil + m.clearedFields[control.FieldDescription] = struct{}{} } -// SetSecret sets the "secret" field. -func (m *EmailVerificationTokenMutation) SetSecret(b []byte) { - m.secret = &b +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *ControlMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[control.FieldDescription] + return ok } -// Secret returns the value of the "secret" field in the mutation. -func (m *EmailVerificationTokenMutation) Secret() (r []byte, exists bool) { - v := m.secret +// ResetDescription resets all changes to the "description" field. +func (m *ControlMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, control.FieldDescription) +} + +// SetStatus sets the "status" field. +func (m *ControlMutation) SetStatus(s string) { + m.status = &s +} + +// Status returns the value of the "status" field in the mutation. +func (m *ControlMutation) Status() (r string, exists bool) { + v := m.status if v == nil { return } return *v, true } -// OldSecret returns the old "secret" field's value of the EmailVerificationToken entity. -// If the EmailVerificationToken object wasn't provided to the builder, the object is fetched from the database. +// OldStatus returns the old "status" field's value of the Control entity. +// If the Control 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 *EmailVerificationTokenMutation) OldSecret(ctx context.Context) (v *[]byte, err error) { +func (m *ControlMutation) OldStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldSecret is only allowed on UpdateOne operations") + return v, errors.New("OldStatus is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldSecret requires an ID field in the mutation") + return v, errors.New("OldStatus requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldSecret: %w", err) + return v, fmt.Errorf("querying old value for OldStatus: %w", err) } - return oldValue.Secret, nil + return oldValue.Status, nil } -// ResetSecret resets all changes to the "secret" field. -func (m *EmailVerificationTokenMutation) ResetSecret() { - m.secret = nil +// ClearStatus clears the value of the "status" field. +func (m *ControlMutation) ClearStatus() { + m.status = nil + m.clearedFields[control.FieldStatus] = struct{}{} } -// ClearOwner clears the "owner" edge to the User entity. -func (m *EmailVerificationTokenMutation) ClearOwner() { - m.clearedowner = true - m.clearedFields[emailverificationtoken.FieldOwnerID] = struct{}{} +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *ControlMutation) StatusCleared() bool { + _, ok := m.clearedFields[control.FieldStatus] + return ok } -// OwnerCleared reports if the "owner" edge to the User entity was cleared. -func (m *EmailVerificationTokenMutation) OwnerCleared() bool { - return m.clearedowner +// ResetStatus resets all changes to the "status" field. +func (m *ControlMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, control.FieldStatus) } -// 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 *EmailVerificationTokenMutation) OwnerIDs() (ids []string) { - if id := m.owner; id != nil { - ids = append(ids, *id) +// SetControlType sets the "control_type" field. +func (m *ControlMutation) SetControlType(s string) { + m.control_type = &s +} + +// ControlType returns the value of the "control_type" field in the mutation. +func (m *ControlMutation) ControlType() (r string, exists bool) { + v := m.control_type + if v == nil { + return } - return + return *v, true } -// ResetOwner resets all changes to the "owner" edge. -func (m *EmailVerificationTokenMutation) ResetOwner() { - m.owner = nil - m.clearedowner = false +// OldControlType returns the old "control_type" field's value of the Control entity. +// If the Control 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 *ControlMutation) OldControlType(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldControlType is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldControlType requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldControlType: %w", err) + } + return oldValue.ControlType, nil } -// Where appends a list predicates to the EmailVerificationTokenMutation builder. -func (m *EmailVerificationTokenMutation) Where(ps ...predicate.EmailVerificationToken) { - m.predicates = append(m.predicates, ps...) +// ClearControlType clears the value of the "control_type" field. +func (m *ControlMutation) ClearControlType() { + m.control_type = nil + m.clearedFields[control.FieldControlType] = struct{}{} } -// WhereP appends storage-level predicates to the EmailVerificationTokenMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EmailVerificationTokenMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.EmailVerificationToken, len(ps)) - for i := range ps { - p[i] = ps[i] +// ControlTypeCleared returns if the "control_type" field was cleared in this mutation. +func (m *ControlMutation) ControlTypeCleared() bool { + _, ok := m.clearedFields[control.FieldControlType] + return ok +} + +// ResetControlType resets all changes to the "control_type" field. +func (m *ControlMutation) ResetControlType() { + m.control_type = nil + delete(m.clearedFields, control.FieldControlType) +} + +// SetVersion sets the "version" field. +func (m *ControlMutation) SetVersion(s string) { + m.version = &s +} + +// Version returns the value of the "version" field in the mutation. +func (m *ControlMutation) Version() (r string, exists bool) { + v := m.version + if v == nil { + return } - m.Where(p...) + return *v, true } -// Op returns the operation name. -func (m *EmailVerificationTokenMutation) Op() Op { - return m.op +// OldVersion returns the old "version" field's value of the Control entity. +// If the Control 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 *ControlMutation) OldVersion(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldVersion is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldVersion requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldVersion: %w", err) + } + return oldValue.Version, nil } -// SetOp allows setting the mutation operation. -func (m *EmailVerificationTokenMutation) SetOp(op Op) { - m.op = op +// ClearVersion clears the value of the "version" field. +func (m *ControlMutation) ClearVersion() { + m.version = nil + m.clearedFields[control.FieldVersion] = struct{}{} } -// Type returns the node type of this mutation (EmailVerificationToken). -func (m *EmailVerificationTokenMutation) Type() string { - return m.typ +// VersionCleared returns if the "version" field was cleared in this mutation. +func (m *ControlMutation) VersionCleared() bool { + _, ok := m.clearedFields[control.FieldVersion] + return ok } -// 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 *EmailVerificationTokenMutation) Fields() []string { - fields := make([]string, 0, 12) - if m.created_at != nil { - fields = append(fields, emailverificationtoken.FieldCreatedAt) +// ResetVersion resets all changes to the "version" field. +func (m *ControlMutation) ResetVersion() { + m.version = nil + delete(m.clearedFields, control.FieldVersion) +} + +// SetControlNumber sets the "control_number" field. +func (m *ControlMutation) SetControlNumber(s string) { + m.control_number = &s +} + +// ControlNumber returns the value of the "control_number" field in the mutation. +func (m *ControlMutation) ControlNumber() (r string, exists bool) { + v := m.control_number + if v == nil { + return } - if m.updated_at != nil { - fields = append(fields, emailverificationtoken.FieldUpdatedAt) + return *v, true +} + +// OldControlNumber returns the old "control_number" field's value of the Control entity. +// If the Control 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 *ControlMutation) OldControlNumber(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldControlNumber is only allowed on UpdateOne operations") } - if m.created_by != nil { - fields = append(fields, emailverificationtoken.FieldCreatedBy) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldControlNumber requires an ID field in the mutation") } - if m.updated_by != nil { - fields = append(fields, emailverificationtoken.FieldUpdatedBy) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldControlNumber: %w", err) } - if m.mapping_id != nil { - fields = append(fields, emailverificationtoken.FieldMappingID) + return oldValue.ControlNumber, nil +} + +// ClearControlNumber clears the value of the "control_number" field. +func (m *ControlMutation) ClearControlNumber() { + m.control_number = nil + m.clearedFields[control.FieldControlNumber] = struct{}{} +} + +// ControlNumberCleared returns if the "control_number" field was cleared in this mutation. +func (m *ControlMutation) ControlNumberCleared() bool { + _, ok := m.clearedFields[control.FieldControlNumber] + return ok +} + +// ResetControlNumber resets all changes to the "control_number" field. +func (m *ControlMutation) ResetControlNumber() { + m.control_number = nil + delete(m.clearedFields, control.FieldControlNumber) +} + +// SetFamily sets the "family" field. +func (m *ControlMutation) SetFamily(s string) { + m.family = &s +} + +// Family returns the value of the "family" field in the mutation. +func (m *ControlMutation) Family() (r string, exists bool) { + v := m.family + if v == nil { + return } - if m.deleted_at != nil { - fields = append(fields, emailverificationtoken.FieldDeletedAt) + return *v, true +} + +// OldFamily returns the old "family" field's value of the Control entity. +// If the Control 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 *ControlMutation) OldFamily(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldFamily is only allowed on UpdateOne operations") } - if m.deleted_by != nil { - fields = append(fields, emailverificationtoken.FieldDeletedBy) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldFamily requires an ID field in the mutation") } - if m.owner != nil { - fields = append(fields, emailverificationtoken.FieldOwnerID) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldFamily: %w", err) } - if m.token != nil { - fields = append(fields, emailverificationtoken.FieldToken) + return oldValue.Family, nil +} + +// ClearFamily clears the value of the "family" field. +func (m *ControlMutation) ClearFamily() { + m.family = nil + m.clearedFields[control.FieldFamily] = struct{}{} +} + +// FamilyCleared returns if the "family" field was cleared in this mutation. +func (m *ControlMutation) FamilyCleared() bool { + _, ok := m.clearedFields[control.FieldFamily] + return ok +} + +// ResetFamily resets all changes to the "family" field. +func (m *ControlMutation) ResetFamily() { + m.family = nil + delete(m.clearedFields, control.FieldFamily) +} + +// SetClass sets the "class" field. +func (m *ControlMutation) SetClass(s string) { + m.class = &s +} + +// Class returns the value of the "class" field in the mutation. +func (m *ControlMutation) Class() (r string, exists bool) { + v := m.class + if v == nil { + return } - if m.ttl != nil { - fields = append(fields, emailverificationtoken.FieldTTL) + return *v, true +} + +// OldClass returns the old "class" field's value of the Control entity. +// If the Control 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 *ControlMutation) OldClass(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClass is only allowed on UpdateOne operations") } - if m.email != nil { - fields = append(fields, emailverificationtoken.FieldEmail) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClass requires an ID field in the mutation") } - if m.secret != nil { - fields = append(fields, emailverificationtoken.FieldSecret) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClass: %w", err) } - return fields + return oldValue.Class, nil } -// 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 *EmailVerificationTokenMutation) Field(name string) (ent.Value, bool) { - switch name { - case emailverificationtoken.FieldCreatedAt: - return m.CreatedAt() - case emailverificationtoken.FieldUpdatedAt: - return m.UpdatedAt() - case emailverificationtoken.FieldCreatedBy: - return m.CreatedBy() - case emailverificationtoken.FieldUpdatedBy: - return m.UpdatedBy() - case emailverificationtoken.FieldMappingID: - return m.MappingID() - case emailverificationtoken.FieldDeletedAt: - return m.DeletedAt() - case emailverificationtoken.FieldDeletedBy: - return m.DeletedBy() - case emailverificationtoken.FieldOwnerID: - return m.OwnerID() - case emailverificationtoken.FieldToken: - return m.Token() - case emailverificationtoken.FieldTTL: - return m.TTL() - case emailverificationtoken.FieldEmail: - return m.Email() - case emailverificationtoken.FieldSecret: - return m.Secret() +// ClearClass clears the value of the "class" field. +func (m *ControlMutation) ClearClass() { + m.class = nil + m.clearedFields[control.FieldClass] = struct{}{} +} + +// ClassCleared returns if the "class" field was cleared in this mutation. +func (m *ControlMutation) ClassCleared() bool { + _, ok := m.clearedFields[control.FieldClass] + return ok +} + +// ResetClass resets all changes to the "class" field. +func (m *ControlMutation) ResetClass() { + m.class = nil + delete(m.clearedFields, control.FieldClass) +} + +// SetSource sets the "source" field. +func (m *ControlMutation) SetSource(s string) { + m.source = &s +} + +// Source returns the value of the "source" field in the mutation. +func (m *ControlMutation) Source() (r string, exists bool) { + v := m.source + if v == nil { + return } - return nil, false + return *v, true } -// 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 *EmailVerificationTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error) { - switch name { - case emailverificationtoken.FieldCreatedAt: - return m.OldCreatedAt(ctx) - case emailverificationtoken.FieldUpdatedAt: - return m.OldUpdatedAt(ctx) - case emailverificationtoken.FieldCreatedBy: - return m.OldCreatedBy(ctx) - case emailverificationtoken.FieldUpdatedBy: - return m.OldUpdatedBy(ctx) - case emailverificationtoken.FieldMappingID: - return m.OldMappingID(ctx) - case emailverificationtoken.FieldDeletedAt: - return m.OldDeletedAt(ctx) - case emailverificationtoken.FieldDeletedBy: - return m.OldDeletedBy(ctx) - case emailverificationtoken.FieldOwnerID: - return m.OldOwnerID(ctx) - case emailverificationtoken.FieldToken: - return m.OldToken(ctx) - case emailverificationtoken.FieldTTL: - return m.OldTTL(ctx) - case emailverificationtoken.FieldEmail: - return m.OldEmail(ctx) - case emailverificationtoken.FieldSecret: - return m.OldSecret(ctx) +// OldSource returns the old "source" field's value of the Control entity. +// If the Control 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 *ControlMutation) OldSource(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSource is only allowed on UpdateOne operations") } - return nil, fmt.Errorf("unknown EmailVerificationToken field %s", name) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSource requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSource: %w", err) + } + return oldValue.Source, nil +} + +// ClearSource clears the value of the "source" field. +func (m *ControlMutation) ClearSource() { + m.source = nil + m.clearedFields[control.FieldSource] = struct{}{} +} + +// SourceCleared returns if the "source" field was cleared in this mutation. +func (m *ControlMutation) SourceCleared() bool { + _, ok := m.clearedFields[control.FieldSource] + return ok +} + +// ResetSource resets all changes to the "source" field. +func (m *ControlMutation) ResetSource() { + m.source = nil + delete(m.clearedFields, control.FieldSource) +} + +// SetSatisfies sets the "satisfies" field. +func (m *ControlMutation) SetSatisfies(s string) { + m.satisfies = &s +} + +// Satisfies returns the value of the "satisfies" field in the mutation. +func (m *ControlMutation) Satisfies() (r string, exists bool) { + v := m.satisfies + if v == nil { + return + } + return *v, true +} + +// OldSatisfies returns the old "satisfies" field's value of the Control entity. +// If the Control 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 *ControlMutation) OldSatisfies(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSatisfies is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSatisfies requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSatisfies: %w", err) + } + return oldValue.Satisfies, nil +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (m *ControlMutation) ClearSatisfies() { + m.satisfies = nil + m.clearedFields[control.FieldSatisfies] = struct{}{} +} + +// SatisfiesCleared returns if the "satisfies" field was cleared in this mutation. +func (m *ControlMutation) SatisfiesCleared() bool { + _, ok := m.clearedFields[control.FieldSatisfies] + return ok +} + +// ResetSatisfies resets all changes to the "satisfies" field. +func (m *ControlMutation) ResetSatisfies() { + m.satisfies = nil + delete(m.clearedFields, control.FieldSatisfies) +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (m *ControlMutation) SetMappedFrameworks(s string) { + m.mapped_frameworks = &s +} + +// MappedFrameworks returns the value of the "mapped_frameworks" field in the mutation. +func (m *ControlMutation) MappedFrameworks() (r string, exists bool) { + v := m.mapped_frameworks + if v == nil { + return + } + return *v, true +} + +// OldMappedFrameworks returns the old "mapped_frameworks" field's value of the Control entity. +// If the Control 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 *ControlMutation) OldMappedFrameworks(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappedFrameworks is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappedFrameworks requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappedFrameworks: %w", err) + } + return oldValue.MappedFrameworks, nil +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (m *ControlMutation) ClearMappedFrameworks() { + m.mapped_frameworks = nil + m.clearedFields[control.FieldMappedFrameworks] = struct{}{} +} + +// MappedFrameworksCleared returns if the "mapped_frameworks" field was cleared in this mutation. +func (m *ControlMutation) MappedFrameworksCleared() bool { + _, ok := m.clearedFields[control.FieldMappedFrameworks] + return ok +} + +// ResetMappedFrameworks resets all changes to the "mapped_frameworks" field. +func (m *ControlMutation) ResetMappedFrameworks() { + m.mapped_frameworks = nil + delete(m.clearedFields, control.FieldMappedFrameworks) +} + +// SetDetails sets the "details" field. +func (m *ControlMutation) SetDetails(value map[string]interface{}) { + m.details = &value +} + +// Details returns the value of the "details" field in the mutation. +func (m *ControlMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details + if v == nil { + return + } + return *v, true +} + +// OldDetails returns the old "details" field's value of the Control entity. +// If the Control 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 *ControlMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetails is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetails requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetails: %w", err) + } + return oldValue.Details, nil +} + +// ClearDetails clears the value of the "details" field. +func (m *ControlMutation) ClearDetails() { + m.details = nil + m.clearedFields[control.FieldDetails] = struct{}{} +} + +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *ControlMutation) DetailsCleared() bool { + _, ok := m.clearedFields[control.FieldDetails] + return ok +} + +// ResetDetails resets all changes to the "details" field. +func (m *ControlMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, control.FieldDetails) +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by ids. +func (m *ControlMutation) AddProcedureIDs(ids ...string) { + if m.procedures == nil { + m.procedures = make(map[string]struct{}) + } + for i := range ids { + m.procedures[ids[i]] = struct{}{} + } +} + +// ClearProcedures clears the "procedures" edge to the Procedure entity. +func (m *ControlMutation) ClearProcedures() { + m.clearedprocedures = true +} + +// ProceduresCleared reports if the "procedures" edge to the Procedure entity was cleared. +func (m *ControlMutation) ProceduresCleared() bool { + return m.clearedprocedures +} + +// RemoveProcedureIDs removes the "procedures" edge to the Procedure entity by IDs. +func (m *ControlMutation) RemoveProcedureIDs(ids ...string) { + if m.removedprocedures == nil { + m.removedprocedures = make(map[string]struct{}) + } + for i := range ids { + delete(m.procedures, ids[i]) + m.removedprocedures[ids[i]] = struct{}{} + } +} + +// RemovedProcedures returns the removed IDs of the "procedures" edge to the Procedure entity. +func (m *ControlMutation) RemovedProceduresIDs() (ids []string) { + for id := range m.removedprocedures { + ids = append(ids, id) + } + return +} + +// ProceduresIDs returns the "procedures" edge IDs in the mutation. +func (m *ControlMutation) ProceduresIDs() (ids []string) { + for id := range m.procedures { + ids = append(ids, id) + } + return +} + +// ResetProcedures resets all changes to the "procedures" edge. +func (m *ControlMutation) ResetProcedures() { + m.procedures = nil + m.clearedprocedures = false + m.removedprocedures = nil +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by ids. +func (m *ControlMutation) AddSubcontrolIDs(ids ...string) { + if m.subcontrols == nil { + m.subcontrols = make(map[string]struct{}) + } + for i := range ids { + m.subcontrols[ids[i]] = struct{}{} + } +} + +// ClearSubcontrols clears the "subcontrols" edge to the Subcontrol entity. +func (m *ControlMutation) ClearSubcontrols() { + m.clearedsubcontrols = true +} + +// SubcontrolsCleared reports if the "subcontrols" edge to the Subcontrol entity was cleared. +func (m *ControlMutation) SubcontrolsCleared() bool { + return m.clearedsubcontrols +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to the Subcontrol entity by IDs. +func (m *ControlMutation) RemoveSubcontrolIDs(ids ...string) { + if m.removedsubcontrols == nil { + m.removedsubcontrols = make(map[string]struct{}) + } + for i := range ids { + delete(m.subcontrols, ids[i]) + m.removedsubcontrols[ids[i]] = struct{}{} + } +} + +// RemovedSubcontrols returns the removed IDs of the "subcontrols" edge to the Subcontrol entity. +func (m *ControlMutation) RemovedSubcontrolsIDs() (ids []string) { + for id := range m.removedsubcontrols { + ids = append(ids, id) + } + return +} + +// SubcontrolsIDs returns the "subcontrols" edge IDs in the mutation. +func (m *ControlMutation) SubcontrolsIDs() (ids []string) { + for id := range m.subcontrols { + ids = append(ids, id) + } + return +} + +// ResetSubcontrols resets all changes to the "subcontrols" edge. +func (m *ControlMutation) ResetSubcontrols() { + m.subcontrols = nil + m.clearedsubcontrols = false + m.removedsubcontrols = nil +} + +// AddControlobjectiveIDs adds the "controlobjectives" edge to the ControlObjective entity by ids. +func (m *ControlMutation) AddControlobjectiveIDs(ids ...string) { + if m.controlobjectives == nil { + m.controlobjectives = make(map[string]struct{}) + } + for i := range ids { + m.controlobjectives[ids[i]] = struct{}{} + } +} + +// ClearControlobjectives clears the "controlobjectives" edge to the ControlObjective entity. +func (m *ControlMutation) ClearControlobjectives() { + m.clearedcontrolobjectives = true +} + +// ControlobjectivesCleared reports if the "controlobjectives" edge to the ControlObjective entity was cleared. +func (m *ControlMutation) ControlobjectivesCleared() bool { + return m.clearedcontrolobjectives +} + +// RemoveControlobjectiveIDs removes the "controlobjectives" edge to the ControlObjective entity by IDs. +func (m *ControlMutation) RemoveControlobjectiveIDs(ids ...string) { + if m.removedcontrolobjectives == nil { + m.removedcontrolobjectives = make(map[string]struct{}) + } + for i := range ids { + delete(m.controlobjectives, ids[i]) + m.removedcontrolobjectives[ids[i]] = struct{}{} + } +} + +// RemovedControlobjectives returns the removed IDs of the "controlobjectives" edge to the ControlObjective entity. +func (m *ControlMutation) RemovedControlobjectivesIDs() (ids []string) { + for id := range m.removedcontrolobjectives { + ids = append(ids, id) + } + return +} + +// ControlobjectivesIDs returns the "controlobjectives" edge IDs in the mutation. +func (m *ControlMutation) ControlobjectivesIDs() (ids []string) { + for id := range m.controlobjectives { + ids = append(ids, id) + } + return +} + +// ResetControlobjectives resets all changes to the "controlobjectives" edge. +func (m *ControlMutation) ResetControlobjectives() { + m.controlobjectives = nil + m.clearedcontrolobjectives = false + m.removedcontrolobjectives = nil +} + +// AddStandardIDs adds the "standard" edge to the Standard entity by ids. +func (m *ControlMutation) AddStandardIDs(ids ...string) { + if m.standard == nil { + m.standard = make(map[string]struct{}) + } + for i := range ids { + m.standard[ids[i]] = struct{}{} + } +} + +// ClearStandard clears the "standard" edge to the Standard entity. +func (m *ControlMutation) ClearStandard() { + m.clearedstandard = true +} + +// StandardCleared reports if the "standard" edge to the Standard entity was cleared. +func (m *ControlMutation) StandardCleared() bool { + return m.clearedstandard +} + +// RemoveStandardIDs removes the "standard" edge to the Standard entity by IDs. +func (m *ControlMutation) RemoveStandardIDs(ids ...string) { + if m.removedstandard == nil { + m.removedstandard = make(map[string]struct{}) + } + for i := range ids { + delete(m.standard, ids[i]) + m.removedstandard[ids[i]] = struct{}{} + } +} + +// RemovedStandard returns the removed IDs of the "standard" edge to the Standard entity. +func (m *ControlMutation) RemovedStandardIDs() (ids []string) { + for id := range m.removedstandard { + ids = append(ids, id) + } + return +} + +// StandardIDs returns the "standard" edge IDs in the mutation. +func (m *ControlMutation) StandardIDs() (ids []string) { + for id := range m.standard { + ids = append(ids, id) + } + return +} + +// ResetStandard resets all changes to the "standard" edge. +func (m *ControlMutation) ResetStandard() { + m.standard = nil + m.clearedstandard = false + m.removedstandard = nil +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by ids. +func (m *ControlMutation) AddNarrativeIDs(ids ...string) { + if m.narratives == nil { + m.narratives = make(map[string]struct{}) + } + for i := range ids { + m.narratives[ids[i]] = struct{}{} + } +} + +// ClearNarratives clears the "narratives" edge to the Narrative entity. +func (m *ControlMutation) ClearNarratives() { + m.clearednarratives = true +} + +// NarrativesCleared reports if the "narratives" edge to the Narrative entity was cleared. +func (m *ControlMutation) NarrativesCleared() bool { + return m.clearednarratives +} + +// RemoveNarrativeIDs removes the "narratives" edge to the Narrative entity by IDs. +func (m *ControlMutation) RemoveNarrativeIDs(ids ...string) { + if m.removednarratives == nil { + m.removednarratives = make(map[string]struct{}) + } + for i := range ids { + delete(m.narratives, ids[i]) + m.removednarratives[ids[i]] = struct{}{} + } +} + +// RemovedNarratives returns the removed IDs of the "narratives" edge to the Narrative entity. +func (m *ControlMutation) RemovedNarrativesIDs() (ids []string) { + for id := range m.removednarratives { + ids = append(ids, id) + } + return +} + +// NarrativesIDs returns the "narratives" edge IDs in the mutation. +func (m *ControlMutation) NarrativesIDs() (ids []string) { + for id := range m.narratives { + ids = append(ids, id) + } + return +} + +// ResetNarratives resets all changes to the "narratives" edge. +func (m *ControlMutation) ResetNarratives() { + m.narratives = nil + m.clearednarratives = false + m.removednarratives = nil +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by ids. +func (m *ControlMutation) AddRiskIDs(ids ...string) { + if m.risks == nil { + m.risks = make(map[string]struct{}) + } + for i := range ids { + m.risks[ids[i]] = struct{}{} + } +} + +// ClearRisks clears the "risks" edge to the Risk entity. +func (m *ControlMutation) ClearRisks() { + m.clearedrisks = true +} + +// RisksCleared reports if the "risks" edge to the Risk entity was cleared. +func (m *ControlMutation) RisksCleared() bool { + return m.clearedrisks +} + +// RemoveRiskIDs removes the "risks" edge to the Risk entity by IDs. +func (m *ControlMutation) RemoveRiskIDs(ids ...string) { + if m.removedrisks == nil { + m.removedrisks = make(map[string]struct{}) + } + for i := range ids { + delete(m.risks, ids[i]) + m.removedrisks[ids[i]] = struct{}{} + } +} + +// RemovedRisks returns the removed IDs of the "risks" edge to the Risk entity. +func (m *ControlMutation) RemovedRisksIDs() (ids []string) { + for id := range m.removedrisks { + ids = append(ids, id) + } + return +} + +// RisksIDs returns the "risks" edge IDs in the mutation. +func (m *ControlMutation) RisksIDs() (ids []string) { + for id := range m.risks { + ids = append(ids, id) + } + return +} + +// ResetRisks resets all changes to the "risks" edge. +func (m *ControlMutation) ResetRisks() { + m.risks = nil + m.clearedrisks = false + m.removedrisks = nil +} + +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by ids. +func (m *ControlMutation) AddActionplanIDs(ids ...string) { + if m.actionplans == nil { + m.actionplans = make(map[string]struct{}) + } + for i := range ids { + m.actionplans[ids[i]] = struct{}{} + } +} + +// ClearActionplans clears the "actionplans" edge to the ActionPlan entity. +func (m *ControlMutation) ClearActionplans() { + m.clearedactionplans = true +} + +// ActionplansCleared reports if the "actionplans" edge to the ActionPlan entity was cleared. +func (m *ControlMutation) ActionplansCleared() bool { + return m.clearedactionplans +} + +// RemoveActionplanIDs removes the "actionplans" edge to the ActionPlan entity by IDs. +func (m *ControlMutation) RemoveActionplanIDs(ids ...string) { + if m.removedactionplans == nil { + m.removedactionplans = make(map[string]struct{}) + } + for i := range ids { + delete(m.actionplans, ids[i]) + m.removedactionplans[ids[i]] = struct{}{} + } +} + +// RemovedActionplans returns the removed IDs of the "actionplans" edge to the ActionPlan entity. +func (m *ControlMutation) RemovedActionplansIDs() (ids []string) { + for id := range m.removedactionplans { + ids = append(ids, id) + } + return +} + +// ActionplansIDs returns the "actionplans" edge IDs in the mutation. +func (m *ControlMutation) ActionplansIDs() (ids []string) { + for id := range m.actionplans { + ids = append(ids, id) + } + return +} + +// ResetActionplans resets all changes to the "actionplans" edge. +func (m *ControlMutation) ResetActionplans() { + m.actionplans = nil + m.clearedactionplans = false + m.removedactionplans = nil +} + +// Where appends a list predicates to the ControlMutation builder. +func (m *ControlMutation) Where(ps ...predicate.Control) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the ControlMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *ControlMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Control, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *ControlMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *ControlMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (Control). +func (m *ControlMutation) 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 *ControlMutation) Fields() []string { + fields := make([]string, 0, 20) + if m.created_at != nil { + fields = append(fields, control.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, control.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, control.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, control.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, control.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, control.FieldDeletedBy) + } + if m.mapping_id != nil { + fields = append(fields, control.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, control.FieldTags) + } + if m.name != nil { + fields = append(fields, control.FieldName) + } + if m.description != nil { + fields = append(fields, control.FieldDescription) + } + if m.status != nil { + fields = append(fields, control.FieldStatus) + } + if m.control_type != nil { + fields = append(fields, control.FieldControlType) + } + if m.version != nil { + fields = append(fields, control.FieldVersion) + } + if m.control_number != nil { + fields = append(fields, control.FieldControlNumber) + } + if m.family != nil { + fields = append(fields, control.FieldFamily) + } + if m.class != nil { + fields = append(fields, control.FieldClass) + } + if m.source != nil { + fields = append(fields, control.FieldSource) + } + if m.satisfies != nil { + fields = append(fields, control.FieldSatisfies) + } + if m.mapped_frameworks != nil { + fields = append(fields, control.FieldMappedFrameworks) + } + if m.details != nil { + fields = append(fields, control.FieldDetails) + } + 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 *ControlMutation) Field(name string) (ent.Value, bool) { + switch name { + case control.FieldCreatedAt: + return m.CreatedAt() + case control.FieldUpdatedAt: + return m.UpdatedAt() + case control.FieldCreatedBy: + return m.CreatedBy() + case control.FieldUpdatedBy: + return m.UpdatedBy() + case control.FieldDeletedAt: + return m.DeletedAt() + case control.FieldDeletedBy: + return m.DeletedBy() + case control.FieldMappingID: + return m.MappingID() + case control.FieldTags: + return m.Tags() + case control.FieldName: + return m.Name() + case control.FieldDescription: + return m.Description() + case control.FieldStatus: + return m.Status() + case control.FieldControlType: + return m.ControlType() + case control.FieldVersion: + return m.Version() + case control.FieldControlNumber: + return m.ControlNumber() + case control.FieldFamily: + return m.Family() + case control.FieldClass: + return m.Class() + case control.FieldSource: + return m.Source() + case control.FieldSatisfies: + return m.Satisfies() + case control.FieldMappedFrameworks: + return m.MappedFrameworks() + case control.FieldDetails: + return m.Details() + } + 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 *ControlMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case control.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case control.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case control.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case control.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case control.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case control.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case control.FieldMappingID: + return m.OldMappingID(ctx) + case control.FieldTags: + return m.OldTags(ctx) + case control.FieldName: + return m.OldName(ctx) + case control.FieldDescription: + return m.OldDescription(ctx) + case control.FieldStatus: + return m.OldStatus(ctx) + case control.FieldControlType: + return m.OldControlType(ctx) + case control.FieldVersion: + return m.OldVersion(ctx) + case control.FieldControlNumber: + return m.OldControlNumber(ctx) + case control.FieldFamily: + return m.OldFamily(ctx) + case control.FieldClass: + return m.OldClass(ctx) + case control.FieldSource: + return m.OldSource(ctx) + case control.FieldSatisfies: + return m.OldSatisfies(ctx) + case control.FieldMappedFrameworks: + return m.OldMappedFrameworks(ctx) + case control.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown Control 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 *EmailVerificationTokenMutation) SetField(name string, value ent.Value) error { +func (m *ControlMutation) SetField(name string, value ent.Value) error { switch name { - case emailverificationtoken.FieldCreatedAt: + case control.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 emailverificationtoken.FieldUpdatedAt: + case control.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 emailverificationtoken.FieldCreatedBy: + case control.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case emailverificationtoken.FieldUpdatedBy: + case control.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case emailverificationtoken.FieldMappingID: + case control.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 control.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case control.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case emailverificationtoken.FieldDeletedAt: - v, ok := value.(time.Time) + case control.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetTags(v) return nil - case emailverificationtoken.FieldDeletedBy: + case control.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetName(v) return nil - case emailverificationtoken.FieldOwnerID: + case control.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetDescription(v) return nil - case emailverificationtoken.FieldToken: + case control.FieldStatus: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetToken(v) + m.SetStatus(v) return nil - case emailverificationtoken.FieldTTL: - v, ok := value.(time.Time) + case control.FieldControlType: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTTL(v) + m.SetControlType(v) return nil - case emailverificationtoken.FieldEmail: + case control.FieldVersion: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetEmail(v) + m.SetVersion(v) return nil - case emailverificationtoken.FieldSecret: - v, ok := value.([]byte) + case control.FieldControlNumber: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetSecret(v) + m.SetControlNumber(v) + return nil + case control.FieldFamily: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetFamily(v) + return nil + case control.FieldClass: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClass(v) + return nil + case control.FieldSource: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSource(v) + return nil + case control.FieldSatisfies: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSatisfies(v) + return nil + case control.FieldMappedFrameworks: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappedFrameworks(v) + return nil + case control.FieldDetails: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDetails(v) return nil } - return fmt.Errorf("unknown EmailVerificationToken field %s", name) + return fmt.Errorf("unknown Control field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *EmailVerificationTokenMutation) AddedFields() []string { +func (m *ControlMutation) 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 *EmailVerificationTokenMutation) AddedField(name string) (ent.Value, bool) { +func (m *ControlMutation) 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 *EmailVerificationTokenMutation) AddField(name string, value ent.Value) error { +func (m *ControlMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown EmailVerificationToken numeric field %s", name) + return fmt.Errorf("unknown Control numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *EmailVerificationTokenMutation) ClearedFields() []string { +func (m *ControlMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(emailverificationtoken.FieldCreatedAt) { - fields = append(fields, emailverificationtoken.FieldCreatedAt) + if m.FieldCleared(control.FieldCreatedAt) { + fields = append(fields, control.FieldCreatedAt) } - if m.FieldCleared(emailverificationtoken.FieldUpdatedAt) { - fields = append(fields, emailverificationtoken.FieldUpdatedAt) + if m.FieldCleared(control.FieldUpdatedAt) { + fields = append(fields, control.FieldUpdatedAt) } - if m.FieldCleared(emailverificationtoken.FieldCreatedBy) { - fields = append(fields, emailverificationtoken.FieldCreatedBy) + if m.FieldCleared(control.FieldCreatedBy) { + fields = append(fields, control.FieldCreatedBy) } - if m.FieldCleared(emailverificationtoken.FieldUpdatedBy) { - fields = append(fields, emailverificationtoken.FieldUpdatedBy) + if m.FieldCleared(control.FieldUpdatedBy) { + fields = append(fields, control.FieldUpdatedBy) } - if m.FieldCleared(emailverificationtoken.FieldDeletedAt) { - fields = append(fields, emailverificationtoken.FieldDeletedAt) + if m.FieldCleared(control.FieldDeletedAt) { + fields = append(fields, control.FieldDeletedAt) } - if m.FieldCleared(emailverificationtoken.FieldDeletedBy) { - fields = append(fields, emailverificationtoken.FieldDeletedBy) + if m.FieldCleared(control.FieldDeletedBy) { + fields = append(fields, control.FieldDeletedBy) + } + if m.FieldCleared(control.FieldTags) { + fields = append(fields, control.FieldTags) + } + if m.FieldCleared(control.FieldDescription) { + fields = append(fields, control.FieldDescription) + } + if m.FieldCleared(control.FieldStatus) { + fields = append(fields, control.FieldStatus) + } + if m.FieldCleared(control.FieldControlType) { + fields = append(fields, control.FieldControlType) + } + if m.FieldCleared(control.FieldVersion) { + fields = append(fields, control.FieldVersion) + } + if m.FieldCleared(control.FieldControlNumber) { + fields = append(fields, control.FieldControlNumber) + } + if m.FieldCleared(control.FieldFamily) { + fields = append(fields, control.FieldFamily) + } + if m.FieldCleared(control.FieldClass) { + fields = append(fields, control.FieldClass) + } + if m.FieldCleared(control.FieldSource) { + fields = append(fields, control.FieldSource) + } + if m.FieldCleared(control.FieldSatisfies) { + fields = append(fields, control.FieldSatisfies) + } + if m.FieldCleared(control.FieldMappedFrameworks) { + fields = append(fields, control.FieldMappedFrameworks) + } + if m.FieldCleared(control.FieldDetails) { + fields = append(fields, control.FieldDetails) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *EmailVerificationTokenMutation) FieldCleared(name string) bool { +func (m *ControlMutation) 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 *EmailVerificationTokenMutation) ClearField(name string) error { +func (m *ControlMutation) ClearField(name string) error { switch name { - case emailverificationtoken.FieldCreatedAt: + case control.FieldCreatedAt: m.ClearCreatedAt() return nil - case emailverificationtoken.FieldUpdatedAt: + case control.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case emailverificationtoken.FieldCreatedBy: + case control.FieldCreatedBy: m.ClearCreatedBy() return nil - case emailverificationtoken.FieldUpdatedBy: + case control.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case emailverificationtoken.FieldDeletedAt: + case control.FieldDeletedAt: m.ClearDeletedAt() return nil - case emailverificationtoken.FieldDeletedBy: + case control.FieldDeletedBy: m.ClearDeletedBy() return nil + case control.FieldTags: + m.ClearTags() + return nil + case control.FieldDescription: + m.ClearDescription() + return nil + case control.FieldStatus: + m.ClearStatus() + return nil + case control.FieldControlType: + m.ClearControlType() + return nil + case control.FieldVersion: + m.ClearVersion() + return nil + case control.FieldControlNumber: + m.ClearControlNumber() + return nil + case control.FieldFamily: + m.ClearFamily() + return nil + case control.FieldClass: + m.ClearClass() + return nil + case control.FieldSource: + m.ClearSource() + return nil + case control.FieldSatisfies: + m.ClearSatisfies() + return nil + case control.FieldMappedFrameworks: + m.ClearMappedFrameworks() + return nil + case control.FieldDetails: + m.ClearDetails() + return nil } - return fmt.Errorf("unknown EmailVerificationToken nullable field %s", name) + return fmt.Errorf("unknown Control 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 *EmailVerificationTokenMutation) ResetField(name string) error { +func (m *ControlMutation) ResetField(name string) error { switch name { - case emailverificationtoken.FieldCreatedAt: + case control.FieldCreatedAt: m.ResetCreatedAt() return nil - case emailverificationtoken.FieldUpdatedAt: + case control.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case emailverificationtoken.FieldCreatedBy: + case control.FieldCreatedBy: m.ResetCreatedBy() return nil - case emailverificationtoken.FieldUpdatedBy: + case control.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case emailverificationtoken.FieldMappingID: - m.ResetMappingID() - return nil - case emailverificationtoken.FieldDeletedAt: + case control.FieldDeletedAt: m.ResetDeletedAt() return nil - case emailverificationtoken.FieldDeletedBy: + case control.FieldDeletedBy: m.ResetDeletedBy() return nil - case emailverificationtoken.FieldOwnerID: - m.ResetOwnerID() + case control.FieldMappingID: + m.ResetMappingID() return nil - case emailverificationtoken.FieldToken: - m.ResetToken() + case control.FieldTags: + m.ResetTags() return nil - case emailverificationtoken.FieldTTL: - m.ResetTTL() + case control.FieldName: + m.ResetName() return nil - case emailverificationtoken.FieldEmail: - m.ResetEmail() + case control.FieldDescription: + m.ResetDescription() return nil - case emailverificationtoken.FieldSecret: - m.ResetSecret() + case control.FieldStatus: + m.ResetStatus() + return nil + case control.FieldControlType: + m.ResetControlType() + return nil + case control.FieldVersion: + m.ResetVersion() + return nil + case control.FieldControlNumber: + m.ResetControlNumber() + return nil + case control.FieldFamily: + m.ResetFamily() + return nil + case control.FieldClass: + m.ResetClass() + return nil + case control.FieldSource: + m.ResetSource() + return nil + case control.FieldSatisfies: + m.ResetSatisfies() + return nil + case control.FieldMappedFrameworks: + m.ResetMappedFrameworks() + return nil + case control.FieldDetails: + m.ResetDetails() return nil } - return fmt.Errorf("unknown EmailVerificationToken field %s", name) + return fmt.Errorf("unknown Control field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *EmailVerificationTokenMutation) AddedEdges() []string { - edges := make([]string, 0, 1) - if m.owner != nil { - edges = append(edges, emailverificationtoken.EdgeOwner) +func (m *ControlMutation) AddedEdges() []string { + edges := make([]string, 0, 7) + if m.procedures != nil { + edges = append(edges, control.EdgeProcedures) + } + if m.subcontrols != nil { + edges = append(edges, control.EdgeSubcontrols) + } + if m.controlobjectives != nil { + edges = append(edges, control.EdgeControlobjectives) + } + if m.standard != nil { + edges = append(edges, control.EdgeStandard) + } + if m.narratives != nil { + edges = append(edges, control.EdgeNarratives) + } + if m.risks != nil { + edges = append(edges, control.EdgeRisks) + } + if m.actionplans != nil { + edges = append(edges, control.EdgeActionplans) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *EmailVerificationTokenMutation) AddedIDs(name string) []ent.Value { +func (m *ControlMutation) AddedIDs(name string) []ent.Value { switch name { - case emailverificationtoken.EdgeOwner: - if id := m.owner; id != nil { - return []ent.Value{*id} + case control.EdgeProcedures: + ids := make([]ent.Value, 0, len(m.procedures)) + for id := range m.procedures { + ids = append(ids, id) + } + return ids + case control.EdgeSubcontrols: + ids := make([]ent.Value, 0, len(m.subcontrols)) + for id := range m.subcontrols { + ids = append(ids, id) } + return ids + case control.EdgeControlobjectives: + ids := make([]ent.Value, 0, len(m.controlobjectives)) + for id := range m.controlobjectives { + ids = append(ids, id) + } + return ids + case control.EdgeStandard: + ids := make([]ent.Value, 0, len(m.standard)) + for id := range m.standard { + ids = append(ids, id) + } + return ids + case control.EdgeNarratives: + ids := make([]ent.Value, 0, len(m.narratives)) + for id := range m.narratives { + ids = append(ids, id) + } + return ids + case control.EdgeRisks: + ids := make([]ent.Value, 0, len(m.risks)) + for id := range m.risks { + ids = append(ids, id) + } + return ids + case control.EdgeActionplans: + ids := make([]ent.Value, 0, len(m.actionplans)) + for id := range m.actionplans { + ids = append(ids, id) + } + return ids } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *EmailVerificationTokenMutation) RemovedEdges() []string { - edges := make([]string, 0, 1) +func (m *ControlMutation) RemovedEdges() []string { + edges := make([]string, 0, 7) + if m.removedprocedures != nil { + edges = append(edges, control.EdgeProcedures) + } + if m.removedsubcontrols != nil { + edges = append(edges, control.EdgeSubcontrols) + } + if m.removedcontrolobjectives != nil { + edges = append(edges, control.EdgeControlobjectives) + } + if m.removedstandard != nil { + edges = append(edges, control.EdgeStandard) + } + if m.removednarratives != nil { + edges = append(edges, control.EdgeNarratives) + } + if m.removedrisks != nil { + edges = append(edges, control.EdgeRisks) + } + if m.removedactionplans != nil { + edges = append(edges, control.EdgeActionplans) + } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *EmailVerificationTokenMutation) RemovedIDs(name string) []ent.Value { +func (m *ControlMutation) RemovedIDs(name string) []ent.Value { + switch name { + case control.EdgeProcedures: + ids := make([]ent.Value, 0, len(m.removedprocedures)) + for id := range m.removedprocedures { + ids = append(ids, id) + } + return ids + case control.EdgeSubcontrols: + ids := make([]ent.Value, 0, len(m.removedsubcontrols)) + for id := range m.removedsubcontrols { + ids = append(ids, id) + } + return ids + case control.EdgeControlobjectives: + ids := make([]ent.Value, 0, len(m.removedcontrolobjectives)) + for id := range m.removedcontrolobjectives { + ids = append(ids, id) + } + return ids + case control.EdgeStandard: + ids := make([]ent.Value, 0, len(m.removedstandard)) + for id := range m.removedstandard { + ids = append(ids, id) + } + return ids + case control.EdgeNarratives: + ids := make([]ent.Value, 0, len(m.removednarratives)) + for id := range m.removednarratives { + ids = append(ids, id) + } + return ids + case control.EdgeRisks: + ids := make([]ent.Value, 0, len(m.removedrisks)) + for id := range m.removedrisks { + ids = append(ids, id) + } + return ids + case control.EdgeActionplans: + ids := make([]ent.Value, 0, len(m.removedactionplans)) + for id := range m.removedactionplans { + ids = append(ids, id) + } + return ids + } return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EmailVerificationTokenMutation) ClearedEdges() []string { - edges := make([]string, 0, 1) - if m.clearedowner { - edges = append(edges, emailverificationtoken.EdgeOwner) +func (m *ControlMutation) ClearedEdges() []string { + edges := make([]string, 0, 7) + if m.clearedprocedures { + edges = append(edges, control.EdgeProcedures) + } + if m.clearedsubcontrols { + edges = append(edges, control.EdgeSubcontrols) + } + if m.clearedcontrolobjectives { + edges = append(edges, control.EdgeControlobjectives) + } + if m.clearedstandard { + edges = append(edges, control.EdgeStandard) + } + if m.clearednarratives { + edges = append(edges, control.EdgeNarratives) + } + if m.clearedrisks { + edges = append(edges, control.EdgeRisks) + } + if m.clearedactionplans { + edges = append(edges, control.EdgeActionplans) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *EmailVerificationTokenMutation) EdgeCleared(name string) bool { +func (m *ControlMutation) EdgeCleared(name string) bool { switch name { - case emailverificationtoken.EdgeOwner: - return m.clearedowner + case control.EdgeProcedures: + return m.clearedprocedures + case control.EdgeSubcontrols: + return m.clearedsubcontrols + case control.EdgeControlobjectives: + return m.clearedcontrolobjectives + case control.EdgeStandard: + return m.clearedstandard + case control.EdgeNarratives: + return m.clearednarratives + case control.EdgeRisks: + return m.clearedrisks + case control.EdgeActionplans: + return m.clearedactionplans } 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 *EmailVerificationTokenMutation) ClearEdge(name string) error { +func (m *ControlMutation) ClearEdge(name string) error { switch name { - case emailverificationtoken.EdgeOwner: - m.ClearOwner() - return nil } - return fmt.Errorf("unknown EmailVerificationToken unique edge %s", name) + return fmt.Errorf("unknown Control 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 *EmailVerificationTokenMutation) ResetEdge(name string) error { +func (m *ControlMutation) ResetEdge(name string) error { switch name { - case emailverificationtoken.EdgeOwner: - m.ResetOwner() + case control.EdgeProcedures: + m.ResetProcedures() + return nil + case control.EdgeSubcontrols: + m.ResetSubcontrols() + return nil + case control.EdgeControlobjectives: + m.ResetControlobjectives() + return nil + case control.EdgeStandard: + m.ResetStandard() + return nil + case control.EdgeNarratives: + m.ResetNarratives() + return nil + case control.EdgeRisks: + m.ResetRisks() + return nil + case control.EdgeActionplans: + m.ResetActionplans() return nil } - return fmt.Errorf("unknown EmailVerificationToken edge %s", name) + return fmt.Errorf("unknown Control edge %s", name) } -// EntitlementMutation represents an operation that mutates the Entitlement nodes in the graph. -type EntitlementMutation struct { +// ControlHistoryMutation represents an operation that mutates the ControlHistory nodes in the graph. +type ControlHistoryMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - tags *[]string - appendtags []string - deleted_at *time.Time - deleted_by *string - external_customer_id *string - external_subscription_id *string - expires *bool - expires_at *time.Time - cancelled *bool - clearedFields map[string]struct{} - owner *string - clearedowner bool - plan *string - clearedplan bool - organization *string - clearedorganization bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - done bool - oldValue func(context.Context) (*Entitlement, error) - predicates []predicate.Entitlement + 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 + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + status *string + control_type *string + version *string + control_number *string + family *string + class *string + source *string + satisfies *string + mapped_frameworks *string + details *map[string]interface{} + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*ControlHistory, error) + predicates []predicate.ControlHistory } -var _ ent.Mutation = (*EntitlementMutation)(nil) +var _ ent.Mutation = (*ControlHistoryMutation)(nil) -// entitlementOption allows management of the mutation configuration using functional options. -type entitlementOption func(*EntitlementMutation) +// controlhistoryOption allows management of the mutation configuration using functional options. +type controlhistoryOption func(*ControlHistoryMutation) -// newEntitlementMutation creates new mutation for the Entitlement entity. -func newEntitlementMutation(c config, op Op, opts ...entitlementOption) *EntitlementMutation { - m := &EntitlementMutation{ +// newControlHistoryMutation creates new mutation for the ControlHistory entity. +func newControlHistoryMutation(c config, op Op, opts ...controlhistoryOption) *ControlHistoryMutation { + m := &ControlHistoryMutation{ config: c, op: op, - typ: TypeEntitlement, + typ: TypeControlHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -8458,20 +10405,20 @@ func newEntitlementMutation(c config, op Op, opts ...entitlementOption) *Entitle return m } -// withEntitlementID sets the ID field of the mutation. -func withEntitlementID(id string) entitlementOption { - return func(m *EntitlementMutation) { +// withControlHistoryID sets the ID field of the mutation. +func withControlHistoryID(id string) controlhistoryOption { + return func(m *ControlHistoryMutation) { var ( err error once sync.Once - value *Entitlement + value *ControlHistory ) - m.oldValue = func(ctx context.Context) (*Entitlement, error) { + m.oldValue = func(ctx context.Context) (*ControlHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().Entitlement.Get(ctx, id) + value, err = m.Client().ControlHistory.Get(ctx, id) } }) return value, err @@ -8480,10 +10427,10 @@ func withEntitlementID(id string) entitlementOption { } } -// withEntitlement sets the old Entitlement of the mutation. -func withEntitlement(node *Entitlement) entitlementOption { - return func(m *EntitlementMutation) { - m.oldValue = func(context.Context) (*Entitlement, error) { +// withControlHistory sets the old ControlHistory of the mutation. +func withControlHistory(node *ControlHistory) controlhistoryOption { + return func(m *ControlHistoryMutation) { + m.oldValue = func(context.Context) (*ControlHistory, error) { return node, nil } m.id = &node.ID @@ -8492,7 +10439,7 @@ func withEntitlement(node *Entitlement) entitlementOption { // 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 EntitlementMutation) Client() *Client { +func (m ControlHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -8500,7 +10447,7 @@ func (m EntitlementMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EntitlementMutation) Tx() (*Tx, error) { +func (m ControlHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -8510,14 +10457,14 @@ func (m EntitlementMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of Entitlement entities. -func (m *EntitlementMutation) SetID(id string) { +// operation is only accepted on creation of ControlHistory entities. +func (m *ControlHistoryMutation) 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 *EntitlementMutation) ID() (id string, exists bool) { +func (m *ControlHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -8528,7 +10475,7 @@ func (m *EntitlementMutation) ID() (id string, exists bool) { // 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 *EntitlementMutation) IDs(ctx context.Context) ([]string, error) { +func (m *ControlHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -8537,19 +10484,140 @@ func (m *EntitlementMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().Entitlement.Query().Where(m.predicates...).IDs(ctx) + return m.Client().ControlHistory.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 *ControlHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *ControlHistoryMutation) 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 ControlHistory entity. +// If the ControlHistory 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 *ControlHistoryMutation) 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 *ControlHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *ControlHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *ControlHistoryMutation) 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 ControlHistory entity. +// If the ControlHistory 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 *ControlHistoryMutation) 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 *ControlHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[controlhistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *ControlHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *ControlHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, controlhistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *ControlHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *ControlHistoryMutation) 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 ControlHistory entity. +// If the ControlHistory 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 *ControlHistoryMutation) 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 *ControlHistoryMutation) ResetOperation() { + m.operation = nil +} + // SetCreatedAt sets the "created_at" field. -func (m *EntitlementMutation) SetCreatedAt(t time.Time) { +func (m *ControlHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EntitlementMutation) CreatedAt() (r time.Time, exists bool) { +func (m *ControlHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -8557,10 +10625,10 @@ func (m *EntitlementMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ControlHistoryMutation) 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") } @@ -8575,30 +10643,30 @@ func (m *EntitlementMutation) OldCreatedAt(ctx context.Context) (v time.Time, er } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EntitlementMutation) ClearCreatedAt() { +func (m *ControlHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[entitlement.FieldCreatedAt] = struct{}{} + m.clearedFields[controlhistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EntitlementMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[entitlement.FieldCreatedAt] +func (m *ControlHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EntitlementMutation) ResetCreatedAt() { +func (m *ControlHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, entitlement.FieldCreatedAt) + delete(m.clearedFields, controlhistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EntitlementMutation) SetUpdatedAt(t time.Time) { +func (m *ControlHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EntitlementMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *ControlHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -8606,10 +10674,10 @@ func (m *EntitlementMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ControlHistoryMutation) 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") } @@ -8624,30 +10692,30 @@ func (m *EntitlementMutation) OldUpdatedAt(ctx context.Context) (v time.Time, er } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EntitlementMutation) ClearUpdatedAt() { +func (m *ControlHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[entitlement.FieldUpdatedAt] = struct{}{} + m.clearedFields[controlhistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EntitlementMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[entitlement.FieldUpdatedAt] +func (m *ControlHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EntitlementMutation) ResetUpdatedAt() { +func (m *ControlHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, entitlement.FieldUpdatedAt) + delete(m.clearedFields, controlhistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EntitlementMutation) SetCreatedBy(s string) { +func (m *ControlHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EntitlementMutation) CreatedBy() (r string, exists bool) { +func (m *ControlHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -8655,10 +10723,10 @@ func (m *EntitlementMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *ControlHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -8673,30 +10741,30 @@ func (m *EntitlementMutation) OldCreatedBy(ctx context.Context) (v string, err e } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EntitlementMutation) ClearCreatedBy() { +func (m *ControlHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[entitlement.FieldCreatedBy] = struct{}{} + m.clearedFields[controlhistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EntitlementMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[entitlement.FieldCreatedBy] +func (m *ControlHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EntitlementMutation) ResetCreatedBy() { +func (m *ControlHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, entitlement.FieldCreatedBy) + delete(m.clearedFields, controlhistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EntitlementMutation) SetUpdatedBy(s string) { +func (m *ControlHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EntitlementMutation) UpdatedBy() (r string, exists bool) { +func (m *ControlHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -8704,10 +10772,10 @@ func (m *EntitlementMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *ControlHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -8722,30 +10790,128 @@ func (m *EntitlementMutation) OldUpdatedBy(ctx context.Context) (v string, err e } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EntitlementMutation) ClearUpdatedBy() { +func (m *ControlHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[entitlement.FieldUpdatedBy] = struct{}{} + m.clearedFields[controlhistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EntitlementMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[entitlement.FieldUpdatedBy] +func (m *ControlHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EntitlementMutation) ResetUpdatedBy() { +func (m *ControlHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, entitlement.FieldUpdatedBy) + delete(m.clearedFields, controlhistory.FieldUpdatedBy) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *ControlHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *ControlHistoryMutation) 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 ControlHistory entity. +// If the ControlHistory 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 *ControlHistoryMutation) 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 *ControlHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[controlhistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *ControlHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *ControlHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, controlhistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *ControlHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *ControlHistoryMutation) 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 ControlHistory entity. +// If the ControlHistory 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 *ControlHistoryMutation) 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 *ControlHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[controlhistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *ControlHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *ControlHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, controlhistory.FieldDeletedBy) } // SetMappingID sets the "mapping_id" field. -func (m *EntitlementMutation) SetMappingID(s string) { +func (m *ControlHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EntitlementMutation) MappingID() (r string, exists bool) { +func (m *ControlHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -8753,10 +10919,10 @@ func (m *EntitlementMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *ControlHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -8771,18 +10937,18 @@ func (m *EntitlementMutation) OldMappingID(ctx context.Context) (v string, err e } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *EntitlementMutation) ResetMappingID() { +func (m *ControlHistoryMutation) ResetMappingID() { m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *EntitlementMutation) SetTags(s []string) { +func (m *ControlHistoryMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *EntitlementMutation) Tags() (r []string, exists bool) { +func (m *ControlHistoryMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -8790,10 +10956,10 @@ func (m *EntitlementMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *ControlHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -8808,12 +10974,12 @@ func (m *EntitlementMutation) OldTags(ctx context.Context) (v []string, err erro } // AppendTags adds s to the "tags" field. -func (m *EntitlementMutation) AppendTags(s []string) { +func (m *ControlHistoryMutation) 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 *EntitlementMutation) AppendedTags() ([]string, bool) { +func (m *ControlHistoryMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -8821,607 +10987,609 @@ func (m *EntitlementMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *EntitlementMutation) ClearTags() { +func (m *ControlHistoryMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[entitlement.FieldTags] = struct{}{} + m.clearedFields[controlhistory.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *EntitlementMutation) TagsCleared() bool { - _, ok := m.clearedFields[entitlement.FieldTags] +func (m *ControlHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *EntitlementMutation) ResetTags() { +func (m *ControlHistoryMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, entitlement.FieldTags) + delete(m.clearedFields, controlhistory.FieldTags) } -// SetDeletedAt sets the "deleted_at" field. -func (m *EntitlementMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetName sets the "name" field. +func (m *ControlHistoryMutation) SetName(s string) { + m.name = &s } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *EntitlementMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// Name returns the value of the "name" field in the mutation. +func (m *ControlHistoryMutation) Name() (r string, exists bool) { + v := m.name if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *ControlHistoryMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldName 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") + 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 OldDeletedAt: %w", err) + return v, fmt.Errorf("querying old value for OldName: %w", err) } - return oldValue.DeletedAt, nil -} - -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *EntitlementMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[entitlement.FieldDeletedAt] = struct{}{} -} - -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *EntitlementMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[entitlement.FieldDeletedAt] - return ok + return oldValue.Name, nil } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *EntitlementMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, entitlement.FieldDeletedAt) +// ResetName resets all changes to the "name" field. +func (m *ControlHistoryMutation) ResetName() { + m.name = nil } -// SetDeletedBy sets the "deleted_by" field. -func (m *EntitlementMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetDescription sets the "description" field. +func (m *ControlHistoryMutation) SetDescription(s string) { + m.description = &s } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *EntitlementMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// Description returns the value of the "description" field in the mutation. +func (m *ControlHistoryMutation) Description() (r string, exists bool) { + v := m.description if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *ControlHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldDescription 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") + 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 OldDeletedBy: %w", err) + return v, fmt.Errorf("querying old value for OldDescription: %w", err) } - return oldValue.DeletedBy, nil + return oldValue.Description, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *EntitlementMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[entitlement.FieldDeletedBy] = struct{}{} +// ClearDescription clears the value of the "description" field. +func (m *ControlHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[controlhistory.FieldDescription] = struct{}{} } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *EntitlementMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[entitlement.FieldDeletedBy] +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *ControlHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldDescription] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *EntitlementMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, entitlement.FieldDeletedBy) +// ResetDescription resets all changes to the "description" field. +func (m *ControlHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, controlhistory.FieldDescription) } -// SetOwnerID sets the "owner_id" field. -func (m *EntitlementMutation) SetOwnerID(s string) { - m.owner = &s +// SetStatus sets the "status" field. +func (m *ControlHistoryMutation) SetStatus(s string) { + m.status = &s } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *EntitlementMutation) OwnerID() (r string, exists bool) { - v := m.owner +// Status returns the value of the "status" field in the mutation. +func (m *ControlHistoryMutation) Status() (r string, exists bool) { + v := m.status if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldStatus returns the old "status" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *ControlHistoryMutation) OldStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldStatus 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") + return v, errors.New("OldStatus 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 v, fmt.Errorf("querying old value for OldStatus: %w", err) } - return oldValue.OwnerID, nil + return oldValue.Status, nil } -// ClearOwnerID clears the value of the "owner_id" field. -func (m *EntitlementMutation) ClearOwnerID() { - m.owner = nil - m.clearedFields[entitlement.FieldOwnerID] = struct{}{} +// ClearStatus clears the value of the "status" field. +func (m *ControlHistoryMutation) ClearStatus() { + m.status = nil + m.clearedFields[controlhistory.FieldStatus] = struct{}{} } -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *EntitlementMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[entitlement.FieldOwnerID] +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *ControlHistoryMutation) StatusCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldStatus] return ok } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *EntitlementMutation) ResetOwnerID() { - m.owner = nil - delete(m.clearedFields, entitlement.FieldOwnerID) +// ResetStatus resets all changes to the "status" field. +func (m *ControlHistoryMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, controlhistory.FieldStatus) } -// SetPlanID sets the "plan_id" field. -func (m *EntitlementMutation) SetPlanID(s string) { - m.plan = &s +// SetControlType sets the "control_type" field. +func (m *ControlHistoryMutation) SetControlType(s string) { + m.control_type = &s } -// PlanID returns the value of the "plan_id" field in the mutation. -func (m *EntitlementMutation) PlanID() (r string, exists bool) { - v := m.plan +// ControlType returns the value of the "control_type" field in the mutation. +func (m *ControlHistoryMutation) ControlType() (r string, exists bool) { + v := m.control_type if v == nil { return } return *v, true } -// OldPlanID returns the old "plan_id" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldControlType returns the old "control_type" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldPlanID(ctx context.Context) (v string, err error) { +func (m *ControlHistoryMutation) OldControlType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldPlanID is only allowed on UpdateOne operations") + return v, errors.New("OldControlType is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldPlanID requires an ID field in the mutation") + return v, errors.New("OldControlType requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldPlanID: %w", err) + return v, fmt.Errorf("querying old value for OldControlType: %w", err) } - return oldValue.PlanID, nil + return oldValue.ControlType, nil } -// ResetPlanID resets all changes to the "plan_id" field. -func (m *EntitlementMutation) ResetPlanID() { - m.plan = nil +// ClearControlType clears the value of the "control_type" field. +func (m *ControlHistoryMutation) ClearControlType() { + m.control_type = nil + m.clearedFields[controlhistory.FieldControlType] = struct{}{} } -// SetOrganizationID sets the "organization_id" field. -func (m *EntitlementMutation) SetOrganizationID(s string) { - m.organization = &s +// ControlTypeCleared returns if the "control_type" field was cleared in this mutation. +func (m *ControlHistoryMutation) ControlTypeCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldControlType] + return ok } -// OrganizationID returns the value of the "organization_id" field in the mutation. -func (m *EntitlementMutation) OrganizationID() (r string, exists bool) { - v := m.organization +// ResetControlType resets all changes to the "control_type" field. +func (m *ControlHistoryMutation) ResetControlType() { + m.control_type = nil + delete(m.clearedFields, controlhistory.FieldControlType) +} + +// SetVersion sets the "version" field. +func (m *ControlHistoryMutation) SetVersion(s string) { + m.version = &s +} + +// Version returns the value of the "version" field in the mutation. +func (m *ControlHistoryMutation) Version() (r string, exists bool) { + v := m.version if v == nil { return } return *v, true } -// OldOrganizationID returns the old "organization_id" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldVersion returns the old "version" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldOrganizationID(ctx context.Context) (v string, err error) { +func (m *ControlHistoryMutation) OldVersion(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOrganizationID is only allowed on UpdateOne operations") + return v, errors.New("OldVersion is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldOrganizationID requires an ID field in the mutation") + return v, errors.New("OldVersion requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldOrganizationID: %w", err) + return v, fmt.Errorf("querying old value for OldVersion: %w", err) } - return oldValue.OrganizationID, nil + return oldValue.Version, nil } -// ResetOrganizationID resets all changes to the "organization_id" field. -func (m *EntitlementMutation) ResetOrganizationID() { - m.organization = nil +// ClearVersion clears the value of the "version" field. +func (m *ControlHistoryMutation) ClearVersion() { + m.version = nil + m.clearedFields[controlhistory.FieldVersion] = struct{}{} } -// SetExternalCustomerID sets the "external_customer_id" field. -func (m *EntitlementMutation) SetExternalCustomerID(s string) { - m.external_customer_id = &s +// VersionCleared returns if the "version" field was cleared in this mutation. +func (m *ControlHistoryMutation) VersionCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldVersion] + return ok } -// ExternalCustomerID returns the value of the "external_customer_id" field in the mutation. -func (m *EntitlementMutation) ExternalCustomerID() (r string, exists bool) { - v := m.external_customer_id +// ResetVersion resets all changes to the "version" field. +func (m *ControlHistoryMutation) ResetVersion() { + m.version = nil + delete(m.clearedFields, controlhistory.FieldVersion) +} + +// SetControlNumber sets the "control_number" field. +func (m *ControlHistoryMutation) SetControlNumber(s string) { + m.control_number = &s +} + +// ControlNumber returns the value of the "control_number" field in the mutation. +func (m *ControlHistoryMutation) ControlNumber() (r string, exists bool) { + v := m.control_number if v == nil { return } return *v, true } -// OldExternalCustomerID returns the old "external_customer_id" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldControlNumber returns the old "control_number" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldExternalCustomerID(ctx context.Context) (v string, err error) { +func (m *ControlHistoryMutation) OldControlNumber(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldExternalCustomerID is only allowed on UpdateOne operations") + return v, errors.New("OldControlNumber is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldExternalCustomerID requires an ID field in the mutation") + return v, errors.New("OldControlNumber requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldExternalCustomerID: %w", err) + return v, fmt.Errorf("querying old value for OldControlNumber: %w", err) } - return oldValue.ExternalCustomerID, nil + return oldValue.ControlNumber, nil } -// ClearExternalCustomerID clears the value of the "external_customer_id" field. -func (m *EntitlementMutation) ClearExternalCustomerID() { - m.external_customer_id = nil - m.clearedFields[entitlement.FieldExternalCustomerID] = struct{}{} +// ClearControlNumber clears the value of the "control_number" field. +func (m *ControlHistoryMutation) ClearControlNumber() { + m.control_number = nil + m.clearedFields[controlhistory.FieldControlNumber] = struct{}{} } -// ExternalCustomerIDCleared returns if the "external_customer_id" field was cleared in this mutation. -func (m *EntitlementMutation) ExternalCustomerIDCleared() bool { - _, ok := m.clearedFields[entitlement.FieldExternalCustomerID] +// ControlNumberCleared returns if the "control_number" field was cleared in this mutation. +func (m *ControlHistoryMutation) ControlNumberCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldControlNumber] return ok } -// ResetExternalCustomerID resets all changes to the "external_customer_id" field. -func (m *EntitlementMutation) ResetExternalCustomerID() { - m.external_customer_id = nil - delete(m.clearedFields, entitlement.FieldExternalCustomerID) +// ResetControlNumber resets all changes to the "control_number" field. +func (m *ControlHistoryMutation) ResetControlNumber() { + m.control_number = nil + delete(m.clearedFields, controlhistory.FieldControlNumber) } -// SetExternalSubscriptionID sets the "external_subscription_id" field. -func (m *EntitlementMutation) SetExternalSubscriptionID(s string) { - m.external_subscription_id = &s +// SetFamily sets the "family" field. +func (m *ControlHistoryMutation) SetFamily(s string) { + m.family = &s } -// ExternalSubscriptionID returns the value of the "external_subscription_id" field in the mutation. -func (m *EntitlementMutation) ExternalSubscriptionID() (r string, exists bool) { - v := m.external_subscription_id +// Family returns the value of the "family" field in the mutation. +func (m *ControlHistoryMutation) Family() (r string, exists bool) { + v := m.family if v == nil { return } return *v, true } -// OldExternalSubscriptionID returns the old "external_subscription_id" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldFamily returns the old "family" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldExternalSubscriptionID(ctx context.Context) (v string, err error) { +func (m *ControlHistoryMutation) OldFamily(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldExternalSubscriptionID is only allowed on UpdateOne operations") + return v, errors.New("OldFamily is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldExternalSubscriptionID requires an ID field in the mutation") + return v, errors.New("OldFamily requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldExternalSubscriptionID: %w", err) + return v, fmt.Errorf("querying old value for OldFamily: %w", err) } - return oldValue.ExternalSubscriptionID, nil + return oldValue.Family, nil } -// ClearExternalSubscriptionID clears the value of the "external_subscription_id" field. -func (m *EntitlementMutation) ClearExternalSubscriptionID() { - m.external_subscription_id = nil - m.clearedFields[entitlement.FieldExternalSubscriptionID] = struct{}{} +// ClearFamily clears the value of the "family" field. +func (m *ControlHistoryMutation) ClearFamily() { + m.family = nil + m.clearedFields[controlhistory.FieldFamily] = struct{}{} } -// ExternalSubscriptionIDCleared returns if the "external_subscription_id" field was cleared in this mutation. -func (m *EntitlementMutation) ExternalSubscriptionIDCleared() bool { - _, ok := m.clearedFields[entitlement.FieldExternalSubscriptionID] +// FamilyCleared returns if the "family" field was cleared in this mutation. +func (m *ControlHistoryMutation) FamilyCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldFamily] return ok } -// ResetExternalSubscriptionID resets all changes to the "external_subscription_id" field. -func (m *EntitlementMutation) ResetExternalSubscriptionID() { - m.external_subscription_id = nil - delete(m.clearedFields, entitlement.FieldExternalSubscriptionID) +// ResetFamily resets all changes to the "family" field. +func (m *ControlHistoryMutation) ResetFamily() { + m.family = nil + delete(m.clearedFields, controlhistory.FieldFamily) } -// SetExpires sets the "expires" field. -func (m *EntitlementMutation) SetExpires(b bool) { - m.expires = &b +// SetClass sets the "class" field. +func (m *ControlHistoryMutation) SetClass(s string) { + m.class = &s } -// Expires returns the value of the "expires" field in the mutation. -func (m *EntitlementMutation) Expires() (r bool, exists bool) { - v := m.expires +// Class returns the value of the "class" field in the mutation. +func (m *ControlHistoryMutation) Class() (r string, exists bool) { + v := m.class if v == nil { return } return *v, true } -// OldExpires returns the old "expires" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldClass returns the old "class" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldExpires(ctx context.Context) (v bool, err error) { +func (m *ControlHistoryMutation) OldClass(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldExpires is only allowed on UpdateOne operations") + return v, errors.New("OldClass is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldExpires requires an ID field in the mutation") + return v, errors.New("OldClass requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldExpires: %w", err) + return v, fmt.Errorf("querying old value for OldClass: %w", err) } - return oldValue.Expires, nil + return oldValue.Class, nil } -// ResetExpires resets all changes to the "expires" field. -func (m *EntitlementMutation) ResetExpires() { - m.expires = nil +// ClearClass clears the value of the "class" field. +func (m *ControlHistoryMutation) ClearClass() { + m.class = nil + m.clearedFields[controlhistory.FieldClass] = struct{}{} } -// SetExpiresAt sets the "expires_at" field. -func (m *EntitlementMutation) SetExpiresAt(t time.Time) { - m.expires_at = &t +// ClassCleared returns if the "class" field was cleared in this mutation. +func (m *ControlHistoryMutation) ClassCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldClass] + return ok } -// ExpiresAt returns the value of the "expires_at" field in the mutation. -func (m *EntitlementMutation) ExpiresAt() (r time.Time, exists bool) { - v := m.expires_at +// ResetClass resets all changes to the "class" field. +func (m *ControlHistoryMutation) ResetClass() { + m.class = nil + delete(m.clearedFields, controlhistory.FieldClass) +} + +// SetSource sets the "source" field. +func (m *ControlHistoryMutation) SetSource(s string) { + m.source = &s +} + +// Source returns the value of the "source" field in the mutation. +func (m *ControlHistoryMutation) Source() (r string, exists bool) { + v := m.source if v == nil { return } return *v, true } -// OldExpiresAt returns the old "expires_at" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldSource returns the old "source" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldExpiresAt(ctx context.Context) (v *time.Time, err error) { +func (m *ControlHistoryMutation) OldSource(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldExpiresAt is only allowed on UpdateOne operations") + return v, errors.New("OldSource is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldExpiresAt requires an ID field in the mutation") + return v, errors.New("OldSource requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldExpiresAt: %w", err) + return v, fmt.Errorf("querying old value for OldSource: %w", err) } - return oldValue.ExpiresAt, nil + return oldValue.Source, nil } -// ClearExpiresAt clears the value of the "expires_at" field. -func (m *EntitlementMutation) ClearExpiresAt() { - m.expires_at = nil - m.clearedFields[entitlement.FieldExpiresAt] = struct{}{} +// ClearSource clears the value of the "source" field. +func (m *ControlHistoryMutation) ClearSource() { + m.source = nil + m.clearedFields[controlhistory.FieldSource] = struct{}{} } -// ExpiresAtCleared returns if the "expires_at" field was cleared in this mutation. -func (m *EntitlementMutation) ExpiresAtCleared() bool { - _, ok := m.clearedFields[entitlement.FieldExpiresAt] +// SourceCleared returns if the "source" field was cleared in this mutation. +func (m *ControlHistoryMutation) SourceCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldSource] return ok } -// ResetExpiresAt resets all changes to the "expires_at" field. -func (m *EntitlementMutation) ResetExpiresAt() { - m.expires_at = nil - delete(m.clearedFields, entitlement.FieldExpiresAt) +// ResetSource resets all changes to the "source" field. +func (m *ControlHistoryMutation) ResetSource() { + m.source = nil + delete(m.clearedFields, controlhistory.FieldSource) } -// SetCancelled sets the "cancelled" field. -func (m *EntitlementMutation) SetCancelled(b bool) { - m.cancelled = &b +// SetSatisfies sets the "satisfies" field. +func (m *ControlHistoryMutation) SetSatisfies(s string) { + m.satisfies = &s } -// Cancelled returns the value of the "cancelled" field in the mutation. -func (m *EntitlementMutation) Cancelled() (r bool, exists bool) { - v := m.cancelled +// Satisfies returns the value of the "satisfies" field in the mutation. +func (m *ControlHistoryMutation) Satisfies() (r string, exists bool) { + v := m.satisfies if v == nil { return } return *v, true } -// OldCancelled returns the old "cancelled" field's value of the Entitlement entity. -// If the Entitlement object wasn't provided to the builder, the object is fetched from the database. +// OldSatisfies returns the old "satisfies" field's value of the ControlHistory entity. +// If the ControlHistory 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 *EntitlementMutation) OldCancelled(ctx context.Context) (v bool, err error) { +func (m *ControlHistoryMutation) OldSatisfies(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCancelled is only allowed on UpdateOne operations") + return v, errors.New("OldSatisfies is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldCancelled requires an ID field in the mutation") + return v, errors.New("OldSatisfies requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldCancelled: %w", err) + return v, fmt.Errorf("querying old value for OldSatisfies: %w", err) } - return oldValue.Cancelled, nil -} - -// ResetCancelled resets all changes to the "cancelled" field. -func (m *EntitlementMutation) ResetCancelled() { - m.cancelled = nil -} - -// ClearOwner clears the "owner" edge to the Organization entity. -func (m *EntitlementMutation) ClearOwner() { - m.clearedowner = true - m.clearedFields[entitlement.FieldOwnerID] = struct{}{} -} - -// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *EntitlementMutation) OwnerCleared() bool { - return m.OwnerIDCleared() || m.clearedowner + return oldValue.Satisfies, nil } -// 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 *EntitlementMutation) OwnerIDs() (ids []string) { - if id := m.owner; id != nil { - ids = append(ids, *id) - } - return +// ClearSatisfies clears the value of the "satisfies" field. +func (m *ControlHistoryMutation) ClearSatisfies() { + m.satisfies = nil + m.clearedFields[controlhistory.FieldSatisfies] = struct{}{} } -// ResetOwner resets all changes to the "owner" edge. -func (m *EntitlementMutation) ResetOwner() { - m.owner = nil - m.clearedowner = false +// SatisfiesCleared returns if the "satisfies" field was cleared in this mutation. +func (m *ControlHistoryMutation) SatisfiesCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldSatisfies] + return ok } -// ClearPlan clears the "plan" edge to the EntitlementPlan entity. -func (m *EntitlementMutation) ClearPlan() { - m.clearedplan = true - m.clearedFields[entitlement.FieldPlanID] = struct{}{} +// ResetSatisfies resets all changes to the "satisfies" field. +func (m *ControlHistoryMutation) ResetSatisfies() { + m.satisfies = nil + delete(m.clearedFields, controlhistory.FieldSatisfies) } -// PlanCleared reports if the "plan" edge to the EntitlementPlan entity was cleared. -func (m *EntitlementMutation) PlanCleared() bool { - return m.clearedplan +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (m *ControlHistoryMutation) SetMappedFrameworks(s string) { + m.mapped_frameworks = &s } -// PlanIDs returns the "plan" edge IDs in the mutation. -// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use -// PlanID instead. It exists only for internal usage by the builders. -func (m *EntitlementMutation) PlanIDs() (ids []string) { - if id := m.plan; id != nil { - ids = append(ids, *id) +// MappedFrameworks returns the value of the "mapped_frameworks" field in the mutation. +func (m *ControlHistoryMutation) MappedFrameworks() (r string, exists bool) { + v := m.mapped_frameworks + if v == nil { + return } - return + return *v, true } -// ResetPlan resets all changes to the "plan" edge. -func (m *EntitlementMutation) ResetPlan() { - m.plan = nil - m.clearedplan = false +// OldMappedFrameworks returns the old "mapped_frameworks" field's value of the ControlHistory entity. +// If the ControlHistory 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 *ControlHistoryMutation) OldMappedFrameworks(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappedFrameworks is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappedFrameworks requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappedFrameworks: %w", err) + } + return oldValue.MappedFrameworks, nil } -// ClearOrganization clears the "organization" edge to the Organization entity. -func (m *EntitlementMutation) ClearOrganization() { - m.clearedorganization = true - m.clearedFields[entitlement.FieldOrganizationID] = struct{}{} +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (m *ControlHistoryMutation) ClearMappedFrameworks() { + m.mapped_frameworks = nil + m.clearedFields[controlhistory.FieldMappedFrameworks] = struct{}{} } -// OrganizationCleared reports if the "organization" edge to the Organization entity was cleared. -func (m *EntitlementMutation) OrganizationCleared() bool { - return m.clearedorganization +// MappedFrameworksCleared returns if the "mapped_frameworks" field was cleared in this mutation. +func (m *ControlHistoryMutation) MappedFrameworksCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldMappedFrameworks] + return ok } -// OrganizationIDs returns the "organization" edge IDs in the mutation. -// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use -// OrganizationID instead. It exists only for internal usage by the builders. -func (m *EntitlementMutation) OrganizationIDs() (ids []string) { - if id := m.organization; id != nil { - ids = append(ids, *id) - } - return +// ResetMappedFrameworks resets all changes to the "mapped_frameworks" field. +func (m *ControlHistoryMutation) ResetMappedFrameworks() { + m.mapped_frameworks = nil + delete(m.clearedFields, controlhistory.FieldMappedFrameworks) } -// ResetOrganization resets all changes to the "organization" edge. -func (m *EntitlementMutation) ResetOrganization() { - m.organization = nil - m.clearedorganization = false +// SetDetails sets the "details" field. +func (m *ControlHistoryMutation) SetDetails(value map[string]interface{}) { + m.details = &value } -// AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *EntitlementMutation) AddEventIDs(ids ...string) { - if m.events == nil { - m.events = make(map[string]struct{}) - } - for i := range ids { - m.events[ids[i]] = struct{}{} +// Details returns the value of the "details" field in the mutation. +func (m *ControlHistoryMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details + if v == nil { + return } + return *v, true } -// ClearEvents clears the "events" edge to the Event entity. -func (m *EntitlementMutation) ClearEvents() { - m.clearedevents = true -} - -// EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *EntitlementMutation) EventsCleared() bool { - return m.clearedevents -} - -// RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *EntitlementMutation) RemoveEventIDs(ids ...string) { - if m.removedevents == nil { - m.removedevents = make(map[string]struct{}) +// OldDetails returns the old "details" field's value of the ControlHistory entity. +// If the ControlHistory 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 *ControlHistoryMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetails is only allowed on UpdateOne operations") } - for i := range ids { - delete(m.events, ids[i]) - m.removedevents[ids[i]] = struct{}{} + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetails requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetails: %w", err) } + return oldValue.Details, nil } -// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *EntitlementMutation) RemovedEventsIDs() (ids []string) { - for id := range m.removedevents { - ids = append(ids, id) - } - return +// ClearDetails clears the value of the "details" field. +func (m *ControlHistoryMutation) ClearDetails() { + m.details = nil + m.clearedFields[controlhistory.FieldDetails] = struct{}{} } -// EventsIDs returns the "events" edge IDs in the mutation. -func (m *EntitlementMutation) EventsIDs() (ids []string) { - for id := range m.events { - ids = append(ids, id) - } - return +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *ControlHistoryMutation) DetailsCleared() bool { + _, ok := m.clearedFields[controlhistory.FieldDetails] + return ok } -// ResetEvents resets all changes to the "events" edge. -func (m *EntitlementMutation) ResetEvents() { - m.events = nil - m.clearedevents = false - m.removedevents = nil +// ResetDetails resets all changes to the "details" field. +func (m *ControlHistoryMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, controlhistory.FieldDetails) } -// Where appends a list predicates to the EntitlementMutation builder. -func (m *EntitlementMutation) Where(ps ...predicate.Entitlement) { +// Where appends a list predicates to the ControlHistoryMutation builder. +func (m *ControlHistoryMutation) Where(ps ...predicate.ControlHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the EntitlementMutation builder. Using this method, +// WhereP appends storage-level predicates to the ControlHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EntitlementMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.Entitlement, len(ps)) +func (m *ControlHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.ControlHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -9429,72 +11597,93 @@ func (m *EntitlementMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *EntitlementMutation) Op() Op { +func (m *ControlHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *EntitlementMutation) SetOp(op Op) { +func (m *ControlHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (Entitlement). -func (m *EntitlementMutation) Type() string { +// Type returns the node type of this mutation (ControlHistory). +func (m *ControlHistoryMutation) 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 *EntitlementMutation) Fields() []string { - fields := make([]string, 0, 16) +func (m *ControlHistoryMutation) Fields() []string { + fields := make([]string, 0, 23) + if m.history_time != nil { + fields = append(fields, controlhistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, controlhistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, controlhistory.FieldOperation) + } if m.created_at != nil { - fields = append(fields, entitlement.FieldCreatedAt) + fields = append(fields, controlhistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, entitlement.FieldUpdatedAt) + fields = append(fields, controlhistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, entitlement.FieldCreatedBy) + fields = append(fields, controlhistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, entitlement.FieldUpdatedBy) + fields = append(fields, controlhistory.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, controlhistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, controlhistory.FieldDeletedBy) } if m.mapping_id != nil { - fields = append(fields, entitlement.FieldMappingID) + fields = append(fields, controlhistory.FieldMappingID) } if m.tags != nil { - fields = append(fields, entitlement.FieldTags) + fields = append(fields, controlhistory.FieldTags) } - if m.deleted_at != nil { - fields = append(fields, entitlement.FieldDeletedAt) + if m.name != nil { + fields = append(fields, controlhistory.FieldName) } - if m.deleted_by != nil { - fields = append(fields, entitlement.FieldDeletedBy) + if m.description != nil { + fields = append(fields, controlhistory.FieldDescription) } - if m.owner != nil { - fields = append(fields, entitlement.FieldOwnerID) + if m.status != nil { + fields = append(fields, controlhistory.FieldStatus) } - if m.plan != nil { - fields = append(fields, entitlement.FieldPlanID) + if m.control_type != nil { + fields = append(fields, controlhistory.FieldControlType) } - if m.organization != nil { - fields = append(fields, entitlement.FieldOrganizationID) + if m.version != nil { + fields = append(fields, controlhistory.FieldVersion) } - if m.external_customer_id != nil { - fields = append(fields, entitlement.FieldExternalCustomerID) + if m.control_number != nil { + fields = append(fields, controlhistory.FieldControlNumber) } - if m.external_subscription_id != nil { - fields = append(fields, entitlement.FieldExternalSubscriptionID) + if m.family != nil { + fields = append(fields, controlhistory.FieldFamily) } - if m.expires != nil { - fields = append(fields, entitlement.FieldExpires) + if m.class != nil { + fields = append(fields, controlhistory.FieldClass) } - if m.expires_at != nil { - fields = append(fields, entitlement.FieldExpiresAt) + if m.source != nil { + fields = append(fields, controlhistory.FieldSource) } - if m.cancelled != nil { - fields = append(fields, entitlement.FieldCancelled) + if m.satisfies != nil { + fields = append(fields, controlhistory.FieldSatisfies) + } + if m.mapped_frameworks != nil { + fields = append(fields, controlhistory.FieldMappedFrameworks) + } + if m.details != nil { + fields = append(fields, controlhistory.FieldDetails) } return fields } @@ -9502,40 +11691,54 @@ func (m *EntitlementMutation) Fields() []string { // 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 *EntitlementMutation) Field(name string) (ent.Value, bool) { +func (m *ControlHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case entitlement.FieldCreatedAt: + case controlhistory.FieldHistoryTime: + return m.HistoryTime() + case controlhistory.FieldRef: + return m.Ref() + case controlhistory.FieldOperation: + return m.Operation() + case controlhistory.FieldCreatedAt: return m.CreatedAt() - case entitlement.FieldUpdatedAt: + case controlhistory.FieldUpdatedAt: return m.UpdatedAt() - case entitlement.FieldCreatedBy: + case controlhistory.FieldCreatedBy: return m.CreatedBy() - case entitlement.FieldUpdatedBy: + case controlhistory.FieldUpdatedBy: return m.UpdatedBy() - case entitlement.FieldMappingID: - return m.MappingID() - case entitlement.FieldTags: - return m.Tags() - case entitlement.FieldDeletedAt: + case controlhistory.FieldDeletedAt: return m.DeletedAt() - case entitlement.FieldDeletedBy: + case controlhistory.FieldDeletedBy: return m.DeletedBy() - case entitlement.FieldOwnerID: - return m.OwnerID() - case entitlement.FieldPlanID: - return m.PlanID() - case entitlement.FieldOrganizationID: - return m.OrganizationID() - case entitlement.FieldExternalCustomerID: - return m.ExternalCustomerID() - case entitlement.FieldExternalSubscriptionID: - return m.ExternalSubscriptionID() - case entitlement.FieldExpires: - return m.Expires() - case entitlement.FieldExpiresAt: - return m.ExpiresAt() - case entitlement.FieldCancelled: - return m.Cancelled() + case controlhistory.FieldMappingID: + return m.MappingID() + case controlhistory.FieldTags: + return m.Tags() + case controlhistory.FieldName: + return m.Name() + case controlhistory.FieldDescription: + return m.Description() + case controlhistory.FieldStatus: + return m.Status() + case controlhistory.FieldControlType: + return m.ControlType() + case controlhistory.FieldVersion: + return m.Version() + case controlhistory.FieldControlNumber: + return m.ControlNumber() + case controlhistory.FieldFamily: + return m.Family() + case controlhistory.FieldClass: + return m.Class() + case controlhistory.FieldSource: + return m.Source() + case controlhistory.FieldSatisfies: + return m.Satisfies() + case controlhistory.FieldMappedFrameworks: + return m.MappedFrameworks() + case controlhistory.FieldDetails: + return m.Details() } return nil, false } @@ -9543,512 +11746,575 @@ func (m *EntitlementMutation) Field(name string) (ent.Value, bool) { // 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 *EntitlementMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *ControlHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case entitlement.FieldCreatedAt: + case controlhistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case controlhistory.FieldRef: + return m.OldRef(ctx) + case controlhistory.FieldOperation: + return m.OldOperation(ctx) + case controlhistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case entitlement.FieldUpdatedAt: + case controlhistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case entitlement.FieldCreatedBy: + case controlhistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case entitlement.FieldUpdatedBy: + case controlhistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case entitlement.FieldMappingID: - return m.OldMappingID(ctx) - case entitlement.FieldTags: - return m.OldTags(ctx) - case entitlement.FieldDeletedAt: + case controlhistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case entitlement.FieldDeletedBy: + case controlhistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case entitlement.FieldOwnerID: - return m.OldOwnerID(ctx) - case entitlement.FieldPlanID: - return m.OldPlanID(ctx) - case entitlement.FieldOrganizationID: - return m.OldOrganizationID(ctx) - case entitlement.FieldExternalCustomerID: - return m.OldExternalCustomerID(ctx) - case entitlement.FieldExternalSubscriptionID: - return m.OldExternalSubscriptionID(ctx) - case entitlement.FieldExpires: - return m.OldExpires(ctx) - case entitlement.FieldExpiresAt: - return m.OldExpiresAt(ctx) - case entitlement.FieldCancelled: - return m.OldCancelled(ctx) - } - return nil, fmt.Errorf("unknown Entitlement field %s", name) + case controlhistory.FieldMappingID: + return m.OldMappingID(ctx) + case controlhistory.FieldTags: + return m.OldTags(ctx) + case controlhistory.FieldName: + return m.OldName(ctx) + case controlhistory.FieldDescription: + return m.OldDescription(ctx) + case controlhistory.FieldStatus: + return m.OldStatus(ctx) + case controlhistory.FieldControlType: + return m.OldControlType(ctx) + case controlhistory.FieldVersion: + return m.OldVersion(ctx) + case controlhistory.FieldControlNumber: + return m.OldControlNumber(ctx) + case controlhistory.FieldFamily: + return m.OldFamily(ctx) + case controlhistory.FieldClass: + return m.OldClass(ctx) + case controlhistory.FieldSource: + return m.OldSource(ctx) + case controlhistory.FieldSatisfies: + return m.OldSatisfies(ctx) + case controlhistory.FieldMappedFrameworks: + return m.OldMappedFrameworks(ctx) + case controlhistory.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown ControlHistory 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 *EntitlementMutation) SetField(name string, value ent.Value) error { +func (m *ControlHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case entitlement.FieldCreatedAt: + case controlhistory.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 controlhistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case controlhistory.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 controlhistory.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 entitlement.FieldUpdatedAt: + case controlhistory.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 entitlement.FieldCreatedBy: + case controlhistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case entitlement.FieldUpdatedBy: + case controlhistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case entitlement.FieldMappingID: + case controlhistory.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 controlhistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case controlhistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case entitlement.FieldTags: + case controlhistory.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case entitlement.FieldDeletedAt: - v, ok := value.(time.Time) + case controlhistory.FieldName: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetName(v) return nil - case entitlement.FieldDeletedBy: + case controlhistory.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetDescription(v) return nil - case entitlement.FieldOwnerID: + case controlhistory.FieldStatus: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetStatus(v) return nil - case entitlement.FieldPlanID: + case controlhistory.FieldControlType: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetPlanID(v) + m.SetControlType(v) return nil - case entitlement.FieldOrganizationID: + case controlhistory.FieldVersion: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOrganizationID(v) + m.SetVersion(v) return nil - case entitlement.FieldExternalCustomerID: + case controlhistory.FieldControlNumber: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetExternalCustomerID(v) + m.SetControlNumber(v) return nil - case entitlement.FieldExternalSubscriptionID: + case controlhistory.FieldFamily: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetExternalSubscriptionID(v) + m.SetFamily(v) return nil - case entitlement.FieldExpires: - v, ok := value.(bool) + case controlhistory.FieldClass: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetExpires(v) + m.SetClass(v) return nil - case entitlement.FieldExpiresAt: - v, ok := value.(time.Time) + case controlhistory.FieldSource: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetExpiresAt(v) + m.SetSource(v) return nil - case entitlement.FieldCancelled: - v, ok := value.(bool) + case controlhistory.FieldSatisfies: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCancelled(v) + m.SetSatisfies(v) return nil - } - return fmt.Errorf("unknown Entitlement field %s", name) -} - + case controlhistory.FieldMappedFrameworks: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappedFrameworks(v) + return nil + case controlhistory.FieldDetails: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDetails(v) + return nil + } + return fmt.Errorf("unknown ControlHistory field %s", name) +} + // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *EntitlementMutation) AddedFields() []string { +func (m *ControlHistoryMutation) 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 *EntitlementMutation) AddedField(name string) (ent.Value, bool) { +func (m *ControlHistoryMutation) 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 *EntitlementMutation) AddField(name string, value ent.Value) error { +func (m *ControlHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown Entitlement numeric field %s", name) + return fmt.Errorf("unknown ControlHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *EntitlementMutation) ClearedFields() []string { +func (m *ControlHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(entitlement.FieldCreatedAt) { - fields = append(fields, entitlement.FieldCreatedAt) + if m.FieldCleared(controlhistory.FieldRef) { + fields = append(fields, controlhistory.FieldRef) } - if m.FieldCleared(entitlement.FieldUpdatedAt) { - fields = append(fields, entitlement.FieldUpdatedAt) + if m.FieldCleared(controlhistory.FieldCreatedAt) { + fields = append(fields, controlhistory.FieldCreatedAt) } - if m.FieldCleared(entitlement.FieldCreatedBy) { - fields = append(fields, entitlement.FieldCreatedBy) + if m.FieldCleared(controlhistory.FieldUpdatedAt) { + fields = append(fields, controlhistory.FieldUpdatedAt) } - if m.FieldCleared(entitlement.FieldUpdatedBy) { - fields = append(fields, entitlement.FieldUpdatedBy) + if m.FieldCleared(controlhistory.FieldCreatedBy) { + fields = append(fields, controlhistory.FieldCreatedBy) } - if m.FieldCleared(entitlement.FieldTags) { - fields = append(fields, entitlement.FieldTags) + if m.FieldCleared(controlhistory.FieldUpdatedBy) { + fields = append(fields, controlhistory.FieldUpdatedBy) } - if m.FieldCleared(entitlement.FieldDeletedAt) { - fields = append(fields, entitlement.FieldDeletedAt) + if m.FieldCleared(controlhistory.FieldDeletedAt) { + fields = append(fields, controlhistory.FieldDeletedAt) } - if m.FieldCleared(entitlement.FieldDeletedBy) { - fields = append(fields, entitlement.FieldDeletedBy) + if m.FieldCleared(controlhistory.FieldDeletedBy) { + fields = append(fields, controlhistory.FieldDeletedBy) } - if m.FieldCleared(entitlement.FieldOwnerID) { - fields = append(fields, entitlement.FieldOwnerID) + if m.FieldCleared(controlhistory.FieldTags) { + fields = append(fields, controlhistory.FieldTags) } - if m.FieldCleared(entitlement.FieldExternalCustomerID) { - fields = append(fields, entitlement.FieldExternalCustomerID) + if m.FieldCleared(controlhistory.FieldDescription) { + fields = append(fields, controlhistory.FieldDescription) } - if m.FieldCleared(entitlement.FieldExternalSubscriptionID) { - fields = append(fields, entitlement.FieldExternalSubscriptionID) + if m.FieldCleared(controlhistory.FieldStatus) { + fields = append(fields, controlhistory.FieldStatus) } - if m.FieldCleared(entitlement.FieldExpiresAt) { - fields = append(fields, entitlement.FieldExpiresAt) + if m.FieldCleared(controlhistory.FieldControlType) { + fields = append(fields, controlhistory.FieldControlType) + } + if m.FieldCleared(controlhistory.FieldVersion) { + fields = append(fields, controlhistory.FieldVersion) + } + if m.FieldCleared(controlhistory.FieldControlNumber) { + fields = append(fields, controlhistory.FieldControlNumber) + } + if m.FieldCleared(controlhistory.FieldFamily) { + fields = append(fields, controlhistory.FieldFamily) + } + if m.FieldCleared(controlhistory.FieldClass) { + fields = append(fields, controlhistory.FieldClass) + } + if m.FieldCleared(controlhistory.FieldSource) { + fields = append(fields, controlhistory.FieldSource) + } + if m.FieldCleared(controlhistory.FieldSatisfies) { + fields = append(fields, controlhistory.FieldSatisfies) + } + if m.FieldCleared(controlhistory.FieldMappedFrameworks) { + fields = append(fields, controlhistory.FieldMappedFrameworks) + } + if m.FieldCleared(controlhistory.FieldDetails) { + fields = append(fields, controlhistory.FieldDetails) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *EntitlementMutation) FieldCleared(name string) bool { +func (m *ControlHistoryMutation) 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 *EntitlementMutation) ClearField(name string) error { +func (m *ControlHistoryMutation) ClearField(name string) error { switch name { - case entitlement.FieldCreatedAt: + case controlhistory.FieldRef: + m.ClearRef() + return nil + case controlhistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case entitlement.FieldUpdatedAt: + case controlhistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case entitlement.FieldCreatedBy: + case controlhistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case entitlement.FieldUpdatedBy: + case controlhistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case entitlement.FieldTags: - m.ClearTags() - return nil - case entitlement.FieldDeletedAt: + case controlhistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case entitlement.FieldDeletedBy: + case controlhistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case entitlement.FieldOwnerID: - m.ClearOwnerID() + case controlhistory.FieldTags: + m.ClearTags() return nil - case entitlement.FieldExternalCustomerID: - m.ClearExternalCustomerID() + case controlhistory.FieldDescription: + m.ClearDescription() return nil - case entitlement.FieldExternalSubscriptionID: - m.ClearExternalSubscriptionID() + case controlhistory.FieldStatus: + m.ClearStatus() return nil - case entitlement.FieldExpiresAt: - m.ClearExpiresAt() + case controlhistory.FieldControlType: + m.ClearControlType() + return nil + case controlhistory.FieldVersion: + m.ClearVersion() + return nil + case controlhistory.FieldControlNumber: + m.ClearControlNumber() + return nil + case controlhistory.FieldFamily: + m.ClearFamily() + return nil + case controlhistory.FieldClass: + m.ClearClass() + return nil + case controlhistory.FieldSource: + m.ClearSource() + return nil + case controlhistory.FieldSatisfies: + m.ClearSatisfies() + return nil + case controlhistory.FieldMappedFrameworks: + m.ClearMappedFrameworks() + return nil + case controlhistory.FieldDetails: + m.ClearDetails() return nil } - return fmt.Errorf("unknown Entitlement nullable field %s", name) + return fmt.Errorf("unknown ControlHistory 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 *EntitlementMutation) ResetField(name string) error { +func (m *ControlHistoryMutation) ResetField(name string) error { switch name { - case entitlement.FieldCreatedAt: + case controlhistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case controlhistory.FieldRef: + m.ResetRef() + return nil + case controlhistory.FieldOperation: + m.ResetOperation() + return nil + case controlhistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case entitlement.FieldUpdatedAt: + case controlhistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case entitlement.FieldCreatedBy: + case controlhistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case entitlement.FieldUpdatedBy: + case controlhistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case entitlement.FieldMappingID: + case controlhistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case controlhistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case controlhistory.FieldMappingID: m.ResetMappingID() return nil - case entitlement.FieldTags: + case controlhistory.FieldTags: m.ResetTags() return nil - case entitlement.FieldDeletedAt: - m.ResetDeletedAt() + case controlhistory.FieldName: + m.ResetName() return nil - case entitlement.FieldDeletedBy: - m.ResetDeletedBy() + case controlhistory.FieldDescription: + m.ResetDescription() return nil - case entitlement.FieldOwnerID: - m.ResetOwnerID() + case controlhistory.FieldStatus: + m.ResetStatus() return nil - case entitlement.FieldPlanID: - m.ResetPlanID() + case controlhistory.FieldControlType: + m.ResetControlType() return nil - case entitlement.FieldOrganizationID: - m.ResetOrganizationID() + case controlhistory.FieldVersion: + m.ResetVersion() return nil - case entitlement.FieldExternalCustomerID: - m.ResetExternalCustomerID() + case controlhistory.FieldControlNumber: + m.ResetControlNumber() return nil - case entitlement.FieldExternalSubscriptionID: - m.ResetExternalSubscriptionID() + case controlhistory.FieldFamily: + m.ResetFamily() return nil - case entitlement.FieldExpires: - m.ResetExpires() + case controlhistory.FieldClass: + m.ResetClass() return nil - case entitlement.FieldExpiresAt: - m.ResetExpiresAt() + case controlhistory.FieldSource: + m.ResetSource() return nil - case entitlement.FieldCancelled: - m.ResetCancelled() + case controlhistory.FieldSatisfies: + m.ResetSatisfies() + return nil + case controlhistory.FieldMappedFrameworks: + m.ResetMappedFrameworks() + return nil + case controlhistory.FieldDetails: + m.ResetDetails() return nil } - return fmt.Errorf("unknown Entitlement field %s", name) + return fmt.Errorf("unknown ControlHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *EntitlementMutation) AddedEdges() []string { - edges := make([]string, 0, 4) - if m.owner != nil { - edges = append(edges, entitlement.EdgeOwner) - } - if m.plan != nil { - edges = append(edges, entitlement.EdgePlan) - } - if m.organization != nil { - edges = append(edges, entitlement.EdgeOrganization) - } - if m.events != nil { - edges = append(edges, entitlement.EdgeEvents) - } +func (m *ControlHistoryMutation) 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 *EntitlementMutation) AddedIDs(name string) []ent.Value { - switch name { - case entitlement.EdgeOwner: - if id := m.owner; id != nil { - return []ent.Value{*id} - } - case entitlement.EdgePlan: - if id := m.plan; id != nil { - return []ent.Value{*id} - } - case entitlement.EdgeOrganization: - if id := m.organization; id != nil { - return []ent.Value{*id} - } - case entitlement.EdgeEvents: - ids := make([]ent.Value, 0, len(m.events)) - for id := range m.events { - ids = append(ids, id) - } - return ids - } +func (m *ControlHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *EntitlementMutation) RemovedEdges() []string { - edges := make([]string, 0, 4) - if m.removedevents != nil { - edges = append(edges, entitlement.EdgeEvents) - } +func (m *ControlHistoryMutation) 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 *EntitlementMutation) RemovedIDs(name string) []ent.Value { - switch name { - case entitlement.EdgeEvents: - ids := make([]ent.Value, 0, len(m.removedevents)) - for id := range m.removedevents { - ids = append(ids, id) - } - return ids - } +func (m *ControlHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EntitlementMutation) ClearedEdges() []string { - edges := make([]string, 0, 4) - if m.clearedowner { - edges = append(edges, entitlement.EdgeOwner) - } - if m.clearedplan { - edges = append(edges, entitlement.EdgePlan) - } - if m.clearedorganization { - edges = append(edges, entitlement.EdgeOrganization) - } - if m.clearedevents { - edges = append(edges, entitlement.EdgeEvents) - } +func (m *ControlHistoryMutation) 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 *EntitlementMutation) EdgeCleared(name string) bool { - switch name { - case entitlement.EdgeOwner: - return m.clearedowner - case entitlement.EdgePlan: - return m.clearedplan - case entitlement.EdgeOrganization: - return m.clearedorganization - case entitlement.EdgeEvents: - return m.clearedevents - } +func (m *ControlHistoryMutation) 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 *EntitlementMutation) ClearEdge(name string) error { - switch name { - case entitlement.EdgeOwner: - m.ClearOwner() - return nil - case entitlement.EdgePlan: - m.ClearPlan() - return nil - case entitlement.EdgeOrganization: - m.ClearOrganization() - return nil - } - return fmt.Errorf("unknown Entitlement unique edge %s", name) +func (m *ControlHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown ControlHistory 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 *EntitlementMutation) ResetEdge(name string) error { - switch name { - case entitlement.EdgeOwner: - m.ResetOwner() - return nil - case entitlement.EdgePlan: - m.ResetPlan() - return nil - case entitlement.EdgeOrganization: - m.ResetOrganization() - return nil - case entitlement.EdgeEvents: - m.ResetEvents() - return nil - } - return fmt.Errorf("unknown Entitlement edge %s", name) +func (m *ControlHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown ControlHistory edge %s", name) } -// EntitlementHistoryMutation represents an operation that mutates the EntitlementHistory nodes in the graph. -type EntitlementHistoryMutation struct { +// ControlObjectiveMutation represents an operation that mutates the ControlObjective nodes in the graph. +type ControlObjectiveMutation 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 - mapping_id *string - tags *[]string - appendtags []string - deleted_at *time.Time - deleted_by *string - owner_id *string - plan_id *string - organization_id *string - external_customer_id *string - external_subscription_id *string - expires *bool - expires_at *time.Time - cancelled *bool - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*EntitlementHistory, error) - predicates []predicate.EntitlementHistory + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + status *string + control_objective_type *string + version *string + control_number *string + family *string + class *string + source *string + mapped_frameworks *string + details *map[string]interface{} + clearedFields map[string]struct{} + policy map[string]struct{} + removedpolicy map[string]struct{} + clearedpolicy bool + controls map[string]struct{} + removedcontrols map[string]struct{} + clearedcontrols bool + procedures map[string]struct{} + removedprocedures map[string]struct{} + clearedprocedures bool + risks map[string]struct{} + removedrisks map[string]struct{} + clearedrisks bool + subcontrols map[string]struct{} + removedsubcontrols map[string]struct{} + clearedsubcontrols bool + standard map[string]struct{} + removedstandard map[string]struct{} + clearedstandard bool + narratives map[string]struct{} + removednarratives map[string]struct{} + clearednarratives bool + done bool + oldValue func(context.Context) (*ControlObjective, error) + predicates []predicate.ControlObjective } -var _ ent.Mutation = (*EntitlementHistoryMutation)(nil) +var _ ent.Mutation = (*ControlObjectiveMutation)(nil) -// entitlementhistoryOption allows management of the mutation configuration using functional options. -type entitlementhistoryOption func(*EntitlementHistoryMutation) +// controlobjectiveOption allows management of the mutation configuration using functional options. +type controlobjectiveOption func(*ControlObjectiveMutation) -// newEntitlementHistoryMutation creates new mutation for the EntitlementHistory entity. -func newEntitlementHistoryMutation(c config, op Op, opts ...entitlementhistoryOption) *EntitlementHistoryMutation { - m := &EntitlementHistoryMutation{ +// newControlObjectiveMutation creates new mutation for the ControlObjective entity. +func newControlObjectiveMutation(c config, op Op, opts ...controlobjectiveOption) *ControlObjectiveMutation { + m := &ControlObjectiveMutation{ config: c, op: op, - typ: TypeEntitlementHistory, + typ: TypeControlObjective, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -10057,20 +12323,20 @@ func newEntitlementHistoryMutation(c config, op Op, opts ...entitlementhistoryOp return m } -// withEntitlementHistoryID sets the ID field of the mutation. -func withEntitlementHistoryID(id string) entitlementhistoryOption { - return func(m *EntitlementHistoryMutation) { +// withControlObjectiveID sets the ID field of the mutation. +func withControlObjectiveID(id string) controlobjectiveOption { + return func(m *ControlObjectiveMutation) { var ( err error once sync.Once - value *EntitlementHistory + value *ControlObjective ) - m.oldValue = func(ctx context.Context) (*EntitlementHistory, error) { + m.oldValue = func(ctx context.Context) (*ControlObjective, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().EntitlementHistory.Get(ctx, id) + value, err = m.Client().ControlObjective.Get(ctx, id) } }) return value, err @@ -10079,10 +12345,10 @@ func withEntitlementHistoryID(id string) entitlementhistoryOption { } } -// withEntitlementHistory sets the old EntitlementHistory of the mutation. -func withEntitlementHistory(node *EntitlementHistory) entitlementhistoryOption { - return func(m *EntitlementHistoryMutation) { - m.oldValue = func(context.Context) (*EntitlementHistory, error) { +// withControlObjective sets the old ControlObjective of the mutation. +func withControlObjective(node *ControlObjective) controlobjectiveOption { + return func(m *ControlObjectiveMutation) { + m.oldValue = func(context.Context) (*ControlObjective, error) { return node, nil } m.id = &node.ID @@ -10091,7 +12357,7 @@ func withEntitlementHistory(node *EntitlementHistory) entitlementhistoryOption { // 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 EntitlementHistoryMutation) Client() *Client { +func (m ControlObjectiveMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -10099,7 +12365,7 @@ func (m EntitlementHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EntitlementHistoryMutation) Tx() (*Tx, error) { +func (m ControlObjectiveMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -10109,14 +12375,14 @@ func (m EntitlementHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of EntitlementHistory entities. -func (m *EntitlementHistoryMutation) SetID(id string) { +// operation is only accepted on creation of ControlObjective entities. +func (m *ControlObjectiveMutation) 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 *EntitlementHistoryMutation) ID() (id string, exists bool) { +func (m *ControlObjectiveMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -10127,7 +12393,7 @@ func (m *EntitlementHistoryMutation) ID() (id string, exists bool) { // 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 *EntitlementHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *ControlObjectiveMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -10136,140 +12402,19 @@ func (m *EntitlementHistoryMutation) IDs(ctx context.Context) ([]string, error) } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().EntitlementHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().ControlObjective.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 *EntitlementHistoryMutation) SetHistoryTime(t time.Time) { - m.history_time = &t -} - -// HistoryTime returns the value of the "history_time" field in the mutation. -func (m *EntitlementHistoryMutation) 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 EntitlementHistory entity. -// If the EntitlementHistory 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 *EntitlementHistoryMutation) 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 *EntitlementHistoryMutation) ResetHistoryTime() { - m.history_time = nil -} - -// SetRef sets the "ref" field. -func (m *EntitlementHistoryMutation) SetRef(s string) { - m.ref = &s -} - -// Ref returns the value of the "ref" field in the mutation. -func (m *EntitlementHistoryMutation) 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 EntitlementHistory entity. -// If the EntitlementHistory 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 *EntitlementHistoryMutation) 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 *EntitlementHistoryMutation) ClearRef() { - m.ref = nil - m.clearedFields[entitlementhistory.FieldRef] = struct{}{} -} - -// RefCleared returns if the "ref" field was cleared in this mutation. -func (m *EntitlementHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[entitlementhistory.FieldRef] - return ok -} - -// ResetRef resets all changes to the "ref" field. -func (m *EntitlementHistoryMutation) ResetRef() { - m.ref = nil - delete(m.clearedFields, entitlementhistory.FieldRef) -} - -// SetOperation sets the "operation" field. -func (m *EntitlementHistoryMutation) SetOperation(ht history.OpType) { - m.operation = &ht -} - -// Operation returns the value of the "operation" field in the mutation. -func (m *EntitlementHistoryMutation) 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 EntitlementHistory entity. -// If the EntitlementHistory 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 *EntitlementHistoryMutation) 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 *EntitlementHistoryMutation) ResetOperation() { - m.operation = nil -} - // SetCreatedAt sets the "created_at" field. -func (m *EntitlementHistoryMutation) SetCreatedAt(t time.Time) { +func (m *ControlObjectiveMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EntitlementHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *ControlObjectiveMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -10277,10 +12422,10 @@ func (m *EntitlementHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ControlObjectiveMutation) 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") } @@ -10295,30 +12440,30 @@ func (m *EntitlementHistoryMutation) OldCreatedAt(ctx context.Context) (v time.T } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EntitlementHistoryMutation) ClearCreatedAt() { +func (m *ControlObjectiveMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[entitlementhistory.FieldCreatedAt] = struct{}{} + m.clearedFields[controlobjective.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EntitlementHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[entitlementhistory.FieldCreatedAt] +func (m *ControlObjectiveMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EntitlementHistoryMutation) ResetCreatedAt() { +func (m *ControlObjectiveMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, entitlementhistory.FieldCreatedAt) + delete(m.clearedFields, controlobjective.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EntitlementHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *ControlObjectiveMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EntitlementHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *ControlObjectiveMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -10326,10 +12471,10 @@ func (m *EntitlementHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ControlObjectiveMutation) 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") } @@ -10344,30 +12489,30 @@ func (m *EntitlementHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.T } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EntitlementHistoryMutation) ClearUpdatedAt() { +func (m *ControlObjectiveMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[entitlementhistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[controlobjective.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EntitlementHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[entitlementhistory.FieldUpdatedAt] +func (m *ControlObjectiveMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EntitlementHistoryMutation) ResetUpdatedAt() { +func (m *ControlObjectiveMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, entitlementhistory.FieldUpdatedAt) + delete(m.clearedFields, controlobjective.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EntitlementHistoryMutation) SetCreatedBy(s string) { +func (m *ControlObjectiveMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EntitlementHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *ControlObjectiveMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -10375,10 +12520,10 @@ func (m *EntitlementHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -10393,30 +12538,30 @@ func (m *EntitlementHistoryMutation) OldCreatedBy(ctx context.Context) (v string } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EntitlementHistoryMutation) ClearCreatedBy() { +func (m *ControlObjectiveMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[entitlementhistory.FieldCreatedBy] = struct{}{} + m.clearedFields[controlobjective.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EntitlementHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[entitlementhistory.FieldCreatedBy] +func (m *ControlObjectiveMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EntitlementHistoryMutation) ResetCreatedBy() { +func (m *ControlObjectiveMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, entitlementhistory.FieldCreatedBy) + delete(m.clearedFields, controlobjective.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EntitlementHistoryMutation) SetUpdatedBy(s string) { +func (m *ControlObjectiveMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EntitlementHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *ControlObjectiveMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -10424,10 +12569,10 @@ func (m *EntitlementHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -10442,78 +12587,176 @@ func (m *EntitlementHistoryMutation) OldUpdatedBy(ctx context.Context) (v string } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EntitlementHistoryMutation) ClearUpdatedBy() { +func (m *ControlObjectiveMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[entitlementhistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[controlobjective.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EntitlementHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[entitlementhistory.FieldUpdatedBy] +func (m *ControlObjectiveMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EntitlementHistoryMutation) ResetUpdatedBy() { +func (m *ControlObjectiveMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, entitlementhistory.FieldUpdatedBy) + delete(m.clearedFields, controlobjective.FieldUpdatedBy) } -// SetMappingID sets the "mapping_id" field. -func (m *EntitlementHistoryMutation) SetMappingID(s string) { - m.mapping_id = &s +// SetDeletedAt sets the "deleted_at" field. +func (m *ControlObjectiveMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t } -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EntitlementHistoryMutation) MappingID() (r string, exists bool) { - v := m.mapping_id +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *ControlObjectiveMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at if v == nil { return } return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") + 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 OldMappingID: %w", err) + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) } - return oldValue.MappingID, nil + return oldValue.DeletedAt, nil } -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *EntitlementHistoryMutation) ResetMappingID() { - m.mapping_id = nil +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *ControlObjectiveMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[controlobjective.FieldDeletedAt] = struct{}{} } -// SetTags sets the "tags" field. -func (m *EntitlementHistoryMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *ControlObjectiveMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldDeletedAt] + return ok } -// Tags returns the value of the "tags" field in the mutation. -func (m *EntitlementHistoryMutation) Tags() (r []string, exists bool) { - v := m.tags +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *ControlObjectiveMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, controlobjective.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *ControlObjectiveMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *ControlObjectiveMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by if v == nil { return } return *v, true } -// OldTags returns the old "tags" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *ControlObjectiveMutation) 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 *ControlObjectiveMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[controlobjective.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *ControlObjectiveMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *ControlObjectiveMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, controlobjective.FieldDeletedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *ControlObjectiveMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *ControlObjectiveMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the ControlObjective entity. +// If the ControlObjective 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 *ControlObjectiveMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *ControlObjectiveMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *ControlObjectiveMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *ControlObjectiveMutation) 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 ControlObjective entity. +// If the ControlObjective 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 *ControlObjectiveMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -10528,12 +12771,12 @@ func (m *EntitlementHistoryMutation) OldTags(ctx context.Context) (v []string, e } // AppendTags adds s to the "tags" field. -func (m *EntitlementHistoryMutation) AppendTags(s []string) { +func (m *ControlObjectiveMutation) 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 *EntitlementHistoryMutation) AppendedTags() ([]string, bool) { +func (m *ControlObjectiveMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -10541,601 +12784,1067 @@ func (m *EntitlementHistoryMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *EntitlementHistoryMutation) ClearTags() { +func (m *ControlObjectiveMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[entitlementhistory.FieldTags] = struct{}{} + m.clearedFields[controlobjective.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *EntitlementHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[entitlementhistory.FieldTags] +func (m *ControlObjectiveMutation) TagsCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *EntitlementHistoryMutation) ResetTags() { +func (m *ControlObjectiveMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, entitlementhistory.FieldTags) + delete(m.clearedFields, controlobjective.FieldTags) } -// SetDeletedAt sets the "deleted_at" field. -func (m *EntitlementHistoryMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetName sets the "name" field. +func (m *ControlObjectiveMutation) SetName(s string) { + m.name = &s } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *EntitlementHistoryMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// Name returns the value of the "name" field in the mutation. +func (m *ControlObjectiveMutation) Name() (r string, exists bool) { + v := m.name if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *ControlObjectiveMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldName 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") + 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 OldDeletedAt: %w", err) + return v, fmt.Errorf("querying old value for OldName: %w", err) } - return oldValue.DeletedAt, nil + return oldValue.Name, nil } -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *EntitlementHistoryMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[entitlementhistory.FieldDeletedAt] = struct{}{} +// ResetName resets all changes to the "name" field. +func (m *ControlObjectiveMutation) ResetName() { + m.name = nil } -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *EntitlementHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[entitlementhistory.FieldDeletedAt] +// SetDescription sets the "description" field. +func (m *ControlObjectiveMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *ControlObjectiveMutation) 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 ControlObjective entity. +// If the ControlObjective 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 *ControlObjectiveMutation) 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 *ControlObjectiveMutation) ClearDescription() { + m.description = nil + m.clearedFields[controlobjective.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *ControlObjectiveMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldDescription] return ok } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *EntitlementHistoryMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, entitlementhistory.FieldDeletedAt) +// ResetDescription resets all changes to the "description" field. +func (m *ControlObjectiveMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, controlobjective.FieldDescription) } -// SetDeletedBy sets the "deleted_by" field. -func (m *EntitlementHistoryMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetStatus sets the "status" field. +func (m *ControlObjectiveMutation) SetStatus(s string) { + m.status = &s } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *EntitlementHistoryMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// Status returns the value of the "status" field in the mutation. +func (m *ControlObjectiveMutation) Status() (r string, exists bool) { + v := m.status if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldStatus returns the old "status" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveMutation) OldStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldStatus 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") + return v, errors.New("OldStatus 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 v, fmt.Errorf("querying old value for OldStatus: %w", err) } - return oldValue.DeletedBy, nil + return oldValue.Status, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *EntitlementHistoryMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[entitlementhistory.FieldDeletedBy] = struct{}{} +// ClearStatus clears the value of the "status" field. +func (m *ControlObjectiveMutation) ClearStatus() { + m.status = nil + m.clearedFields[controlobjective.FieldStatus] = struct{}{} } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *EntitlementHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[entitlementhistory.FieldDeletedBy] +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *ControlObjectiveMutation) StatusCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldStatus] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *EntitlementHistoryMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, entitlementhistory.FieldDeletedBy) +// ResetStatus resets all changes to the "status" field. +func (m *ControlObjectiveMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, controlobjective.FieldStatus) } -// SetOwnerID sets the "owner_id" field. -func (m *EntitlementHistoryMutation) SetOwnerID(s string) { - m.owner_id = &s +// SetControlObjectiveType sets the "control_objective_type" field. +func (m *ControlObjectiveMutation) SetControlObjectiveType(s string) { + m.control_objective_type = &s } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *EntitlementHistoryMutation) OwnerID() (r string, exists bool) { - v := m.owner_id +// ControlObjectiveType returns the value of the "control_objective_type" field in the mutation. +func (m *ControlObjectiveMutation) ControlObjectiveType() (r string, exists bool) { + v := m.control_objective_type if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldControlObjectiveType returns the old "control_objective_type" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveMutation) OldControlObjectiveType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldControlObjectiveType 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") + return v, errors.New("OldControlObjectiveType 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 v, fmt.Errorf("querying old value for OldControlObjectiveType: %w", err) } - return oldValue.OwnerID, nil + return oldValue.ControlObjectiveType, nil } -// ClearOwnerID clears the value of the "owner_id" field. -func (m *EntitlementHistoryMutation) ClearOwnerID() { - m.owner_id = nil - m.clearedFields[entitlementhistory.FieldOwnerID] = struct{}{} +// ClearControlObjectiveType clears the value of the "control_objective_type" field. +func (m *ControlObjectiveMutation) ClearControlObjectiveType() { + m.control_objective_type = nil + m.clearedFields[controlobjective.FieldControlObjectiveType] = struct{}{} } -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *EntitlementHistoryMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[entitlementhistory.FieldOwnerID] +// ControlObjectiveTypeCleared returns if the "control_objective_type" field was cleared in this mutation. +func (m *ControlObjectiveMutation) ControlObjectiveTypeCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldControlObjectiveType] return ok } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *EntitlementHistoryMutation) ResetOwnerID() { - m.owner_id = nil - delete(m.clearedFields, entitlementhistory.FieldOwnerID) +// ResetControlObjectiveType resets all changes to the "control_objective_type" field. +func (m *ControlObjectiveMutation) ResetControlObjectiveType() { + m.control_objective_type = nil + delete(m.clearedFields, controlobjective.FieldControlObjectiveType) } -// SetPlanID sets the "plan_id" field. -func (m *EntitlementHistoryMutation) SetPlanID(s string) { - m.plan_id = &s +// SetVersion sets the "version" field. +func (m *ControlObjectiveMutation) SetVersion(s string) { + m.version = &s } -// PlanID returns the value of the "plan_id" field in the mutation. -func (m *EntitlementHistoryMutation) PlanID() (r string, exists bool) { - v := m.plan_id +// Version returns the value of the "version" field in the mutation. +func (m *ControlObjectiveMutation) Version() (r string, exists bool) { + v := m.version if v == nil { return } return *v, true } -// OldPlanID returns the old "plan_id" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldVersion returns the old "version" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldPlanID(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveMutation) OldVersion(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldPlanID is only allowed on UpdateOne operations") + return v, errors.New("OldVersion is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldPlanID requires an ID field in the mutation") + return v, errors.New("OldVersion requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldPlanID: %w", err) + return v, fmt.Errorf("querying old value for OldVersion: %w", err) } - return oldValue.PlanID, nil + return oldValue.Version, nil } -// ResetPlanID resets all changes to the "plan_id" field. -func (m *EntitlementHistoryMutation) ResetPlanID() { - m.plan_id = nil +// ClearVersion clears the value of the "version" field. +func (m *ControlObjectiveMutation) ClearVersion() { + m.version = nil + m.clearedFields[controlobjective.FieldVersion] = struct{}{} } -// SetOrganizationID sets the "organization_id" field. -func (m *EntitlementHistoryMutation) SetOrganizationID(s string) { - m.organization_id = &s +// VersionCleared returns if the "version" field was cleared in this mutation. +func (m *ControlObjectiveMutation) VersionCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldVersion] + return ok } -// OrganizationID returns the value of the "organization_id" field in the mutation. -func (m *EntitlementHistoryMutation) OrganizationID() (r string, exists bool) { - v := m.organization_id +// ResetVersion resets all changes to the "version" field. +func (m *ControlObjectiveMutation) ResetVersion() { + m.version = nil + delete(m.clearedFields, controlobjective.FieldVersion) +} + +// SetControlNumber sets the "control_number" field. +func (m *ControlObjectiveMutation) SetControlNumber(s string) { + m.control_number = &s +} + +// ControlNumber returns the value of the "control_number" field in the mutation. +func (m *ControlObjectiveMutation) ControlNumber() (r string, exists bool) { + v := m.control_number if v == nil { return } return *v, true } -// OldOrganizationID returns the old "organization_id" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldControlNumber returns the old "control_number" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldOrganizationID(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveMutation) OldControlNumber(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOrganizationID is only allowed on UpdateOne operations") + return v, errors.New("OldControlNumber is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldOrganizationID requires an ID field in the mutation") + return v, errors.New("OldControlNumber requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldOrganizationID: %w", err) + return v, fmt.Errorf("querying old value for OldControlNumber: %w", err) } - return oldValue.OrganizationID, nil + return oldValue.ControlNumber, nil } -// ResetOrganizationID resets all changes to the "organization_id" field. -func (m *EntitlementHistoryMutation) ResetOrganizationID() { - m.organization_id = nil +// ClearControlNumber clears the value of the "control_number" field. +func (m *ControlObjectiveMutation) ClearControlNumber() { + m.control_number = nil + m.clearedFields[controlobjective.FieldControlNumber] = struct{}{} } -// SetExternalCustomerID sets the "external_customer_id" field. -func (m *EntitlementHistoryMutation) SetExternalCustomerID(s string) { - m.external_customer_id = &s +// ControlNumberCleared returns if the "control_number" field was cleared in this mutation. +func (m *ControlObjectiveMutation) ControlNumberCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldControlNumber] + return ok } -// ExternalCustomerID returns the value of the "external_customer_id" field in the mutation. -func (m *EntitlementHistoryMutation) ExternalCustomerID() (r string, exists bool) { - v := m.external_customer_id +// ResetControlNumber resets all changes to the "control_number" field. +func (m *ControlObjectiveMutation) ResetControlNumber() { + m.control_number = nil + delete(m.clearedFields, controlobjective.FieldControlNumber) +} + +// SetFamily sets the "family" field. +func (m *ControlObjectiveMutation) SetFamily(s string) { + m.family = &s +} + +// Family returns the value of the "family" field in the mutation. +func (m *ControlObjectiveMutation) Family() (r string, exists bool) { + v := m.family if v == nil { return } return *v, true } -// OldExternalCustomerID returns the old "external_customer_id" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldFamily returns the old "family" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldExternalCustomerID(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveMutation) OldFamily(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldExternalCustomerID is only allowed on UpdateOne operations") + return v, errors.New("OldFamily is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldExternalCustomerID requires an ID field in the mutation") + return v, errors.New("OldFamily requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldExternalCustomerID: %w", err) + return v, fmt.Errorf("querying old value for OldFamily: %w", err) } - return oldValue.ExternalCustomerID, nil + return oldValue.Family, nil } -// ClearExternalCustomerID clears the value of the "external_customer_id" field. -func (m *EntitlementHistoryMutation) ClearExternalCustomerID() { - m.external_customer_id = nil - m.clearedFields[entitlementhistory.FieldExternalCustomerID] = struct{}{} +// ClearFamily clears the value of the "family" field. +func (m *ControlObjectiveMutation) ClearFamily() { + m.family = nil + m.clearedFields[controlobjective.FieldFamily] = struct{}{} } -// ExternalCustomerIDCleared returns if the "external_customer_id" field was cleared in this mutation. -func (m *EntitlementHistoryMutation) ExternalCustomerIDCleared() bool { - _, ok := m.clearedFields[entitlementhistory.FieldExternalCustomerID] +// FamilyCleared returns if the "family" field was cleared in this mutation. +func (m *ControlObjectiveMutation) FamilyCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldFamily] return ok } -// ResetExternalCustomerID resets all changes to the "external_customer_id" field. -func (m *EntitlementHistoryMutation) ResetExternalCustomerID() { - m.external_customer_id = nil - delete(m.clearedFields, entitlementhistory.FieldExternalCustomerID) +// ResetFamily resets all changes to the "family" field. +func (m *ControlObjectiveMutation) ResetFamily() { + m.family = nil + delete(m.clearedFields, controlobjective.FieldFamily) } -// SetExternalSubscriptionID sets the "external_subscription_id" field. -func (m *EntitlementHistoryMutation) SetExternalSubscriptionID(s string) { - m.external_subscription_id = &s +// SetClass sets the "class" field. +func (m *ControlObjectiveMutation) SetClass(s string) { + m.class = &s } -// ExternalSubscriptionID returns the value of the "external_subscription_id" field in the mutation. -func (m *EntitlementHistoryMutation) ExternalSubscriptionID() (r string, exists bool) { - v := m.external_subscription_id +// Class returns the value of the "class" field in the mutation. +func (m *ControlObjectiveMutation) Class() (r string, exists bool) { + v := m.class if v == nil { return } return *v, true } -// OldExternalSubscriptionID returns the old "external_subscription_id" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldClass returns the old "class" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldExternalSubscriptionID(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveMutation) OldClass(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldExternalSubscriptionID is only allowed on UpdateOne operations") + return v, errors.New("OldClass is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldExternalSubscriptionID requires an ID field in the mutation") + return v, errors.New("OldClass requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldExternalSubscriptionID: %w", err) + return v, fmt.Errorf("querying old value for OldClass: %w", err) } - return oldValue.ExternalSubscriptionID, nil + return oldValue.Class, nil } -// ClearExternalSubscriptionID clears the value of the "external_subscription_id" field. -func (m *EntitlementHistoryMutation) ClearExternalSubscriptionID() { - m.external_subscription_id = nil - m.clearedFields[entitlementhistory.FieldExternalSubscriptionID] = struct{}{} +// ClearClass clears the value of the "class" field. +func (m *ControlObjectiveMutation) ClearClass() { + m.class = nil + m.clearedFields[controlobjective.FieldClass] = struct{}{} } -// ExternalSubscriptionIDCleared returns if the "external_subscription_id" field was cleared in this mutation. -func (m *EntitlementHistoryMutation) ExternalSubscriptionIDCleared() bool { - _, ok := m.clearedFields[entitlementhistory.FieldExternalSubscriptionID] +// ClassCleared returns if the "class" field was cleared in this mutation. +func (m *ControlObjectiveMutation) ClassCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldClass] return ok } -// ResetExternalSubscriptionID resets all changes to the "external_subscription_id" field. -func (m *EntitlementHistoryMutation) ResetExternalSubscriptionID() { - m.external_subscription_id = nil - delete(m.clearedFields, entitlementhistory.FieldExternalSubscriptionID) +// ResetClass resets all changes to the "class" field. +func (m *ControlObjectiveMutation) ResetClass() { + m.class = nil + delete(m.clearedFields, controlobjective.FieldClass) } -// SetExpires sets the "expires" field. -func (m *EntitlementHistoryMutation) SetExpires(b bool) { - m.expires = &b +// SetSource sets the "source" field. +func (m *ControlObjectiveMutation) SetSource(s string) { + m.source = &s } -// Expires returns the value of the "expires" field in the mutation. -func (m *EntitlementHistoryMutation) Expires() (r bool, exists bool) { - v := m.expires +// Source returns the value of the "source" field in the mutation. +func (m *ControlObjectiveMutation) Source() (r string, exists bool) { + v := m.source if v == nil { return } return *v, true } -// OldExpires returns the old "expires" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldSource returns the old "source" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldExpires(ctx context.Context) (v bool, err error) { +func (m *ControlObjectiveMutation) OldSource(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldExpires is only allowed on UpdateOne operations") + return v, errors.New("OldSource is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldExpires requires an ID field in the mutation") + return v, errors.New("OldSource requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldExpires: %w", err) + return v, fmt.Errorf("querying old value for OldSource: %w", err) } - return oldValue.Expires, nil + return oldValue.Source, nil } -// ResetExpires resets all changes to the "expires" field. -func (m *EntitlementHistoryMutation) ResetExpires() { - m.expires = nil +// ClearSource clears the value of the "source" field. +func (m *ControlObjectiveMutation) ClearSource() { + m.source = nil + m.clearedFields[controlobjective.FieldSource] = struct{}{} } -// SetExpiresAt sets the "expires_at" field. -func (m *EntitlementHistoryMutation) SetExpiresAt(t time.Time) { - m.expires_at = &t +// SourceCleared returns if the "source" field was cleared in this mutation. +func (m *ControlObjectiveMutation) SourceCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldSource] + return ok } -// ExpiresAt returns the value of the "expires_at" field in the mutation. -func (m *EntitlementHistoryMutation) ExpiresAt() (r time.Time, exists bool) { - v := m.expires_at +// ResetSource resets all changes to the "source" field. +func (m *ControlObjectiveMutation) ResetSource() { + m.source = nil + delete(m.clearedFields, controlobjective.FieldSource) +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (m *ControlObjectiveMutation) SetMappedFrameworks(s string) { + m.mapped_frameworks = &s +} + +// MappedFrameworks returns the value of the "mapped_frameworks" field in the mutation. +func (m *ControlObjectiveMutation) MappedFrameworks() (r string, exists bool) { + v := m.mapped_frameworks if v == nil { return } return *v, true } -// OldExpiresAt returns the old "expires_at" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappedFrameworks returns the old "mapped_frameworks" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldExpiresAt(ctx context.Context) (v *time.Time, err error) { +func (m *ControlObjectiveMutation) OldMappedFrameworks(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldExpiresAt is only allowed on UpdateOne operations") + return v, errors.New("OldMappedFrameworks is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldExpiresAt requires an ID field in the mutation") + return v, errors.New("OldMappedFrameworks requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldExpiresAt: %w", err) + return v, fmt.Errorf("querying old value for OldMappedFrameworks: %w", err) } - return oldValue.ExpiresAt, nil + return oldValue.MappedFrameworks, nil } -// ClearExpiresAt clears the value of the "expires_at" field. -func (m *EntitlementHistoryMutation) ClearExpiresAt() { - m.expires_at = nil - m.clearedFields[entitlementhistory.FieldExpiresAt] = struct{}{} +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (m *ControlObjectiveMutation) ClearMappedFrameworks() { + m.mapped_frameworks = nil + m.clearedFields[controlobjective.FieldMappedFrameworks] = struct{}{} } -// ExpiresAtCleared returns if the "expires_at" field was cleared in this mutation. -func (m *EntitlementHistoryMutation) ExpiresAtCleared() bool { - _, ok := m.clearedFields[entitlementhistory.FieldExpiresAt] +// MappedFrameworksCleared returns if the "mapped_frameworks" field was cleared in this mutation. +func (m *ControlObjectiveMutation) MappedFrameworksCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldMappedFrameworks] return ok } -// ResetExpiresAt resets all changes to the "expires_at" field. -func (m *EntitlementHistoryMutation) ResetExpiresAt() { - m.expires_at = nil - delete(m.clearedFields, entitlementhistory.FieldExpiresAt) +// ResetMappedFrameworks resets all changes to the "mapped_frameworks" field. +func (m *ControlObjectiveMutation) ResetMappedFrameworks() { + m.mapped_frameworks = nil + delete(m.clearedFields, controlobjective.FieldMappedFrameworks) } -// SetCancelled sets the "cancelled" field. -func (m *EntitlementHistoryMutation) SetCancelled(b bool) { - m.cancelled = &b +// SetDetails sets the "details" field. +func (m *ControlObjectiveMutation) SetDetails(value map[string]interface{}) { + m.details = &value } -// Cancelled returns the value of the "cancelled" field in the mutation. -func (m *EntitlementHistoryMutation) Cancelled() (r bool, exists bool) { - v := m.cancelled +// Details returns the value of the "details" field in the mutation. +func (m *ControlObjectiveMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details if v == nil { return } return *v, true } -// OldCancelled returns the old "cancelled" field's value of the EntitlementHistory entity. -// If the EntitlementHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDetails returns the old "details" field's value of the ControlObjective entity. +// If the ControlObjective 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 *EntitlementHistoryMutation) OldCancelled(ctx context.Context) (v bool, err error) { +func (m *ControlObjectiveMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCancelled is only allowed on UpdateOne operations") + return v, errors.New("OldDetails is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldCancelled requires an ID field in the mutation") + return v, errors.New("OldDetails requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldCancelled: %w", err) + return v, fmt.Errorf("querying old value for OldDetails: %w", err) } - return oldValue.Cancelled, nil + return oldValue.Details, nil } -// ResetCancelled resets all changes to the "cancelled" field. -func (m *EntitlementHistoryMutation) ResetCancelled() { - m.cancelled = nil +// ClearDetails clears the value of the "details" field. +func (m *ControlObjectiveMutation) ClearDetails() { + m.details = nil + m.clearedFields[controlobjective.FieldDetails] = struct{}{} } -// Where appends a list predicates to the EntitlementHistoryMutation builder. -func (m *EntitlementHistoryMutation) Where(ps ...predicate.EntitlementHistory) { - m.predicates = append(m.predicates, ps...) +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *ControlObjectiveMutation) DetailsCleared() bool { + _, ok := m.clearedFields[controlobjective.FieldDetails] + return ok } -// WhereP appends storage-level predicates to the EntitlementHistoryMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EntitlementHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.EntitlementHistory, len(ps)) - for i := range ps { - p[i] = ps[i] +// ResetDetails resets all changes to the "details" field. +func (m *ControlObjectiveMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, controlobjective.FieldDetails) +} + +// AddPolicyIDs adds the "policy" edge to the InternalPolicy entity by ids. +func (m *ControlObjectiveMutation) AddPolicyIDs(ids ...string) { + if m.policy == nil { + m.policy = make(map[string]struct{}) + } + for i := range ids { + m.policy[ids[i]] = struct{}{} } - m.Where(p...) } -// Op returns the operation name. -func (m *EntitlementHistoryMutation) Op() Op { - return m.op +// ClearPolicy clears the "policy" edge to the InternalPolicy entity. +func (m *ControlObjectiveMutation) ClearPolicy() { + m.clearedpolicy = true } -// SetOp allows setting the mutation operation. -func (m *EntitlementHistoryMutation) SetOp(op Op) { - m.op = op +// PolicyCleared reports if the "policy" edge to the InternalPolicy entity was cleared. +func (m *ControlObjectiveMutation) PolicyCleared() bool { + return m.clearedpolicy } -// Type returns the node type of this mutation (EntitlementHistory). -func (m *EntitlementHistoryMutation) Type() string { - return m.typ +// RemovePolicyIDs removes the "policy" edge to the InternalPolicy entity by IDs. +func (m *ControlObjectiveMutation) RemovePolicyIDs(ids ...string) { + if m.removedpolicy == nil { + m.removedpolicy = make(map[string]struct{}) + } + for i := range ids { + delete(m.policy, ids[i]) + m.removedpolicy[ids[i]] = struct{}{} + } } -// 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 *EntitlementHistoryMutation) Fields() []string { - fields := make([]string, 0, 19) - if m.history_time != nil { - fields = append(fields, entitlementhistory.FieldHistoryTime) +// RemovedPolicy returns the removed IDs of the "policy" edge to the InternalPolicy entity. +func (m *ControlObjectiveMutation) RemovedPolicyIDs() (ids []string) { + for id := range m.removedpolicy { + ids = append(ids, id) } - if m.ref != nil { - fields = append(fields, entitlementhistory.FieldRef) + return +} + +// PolicyIDs returns the "policy" edge IDs in the mutation. +func (m *ControlObjectiveMutation) PolicyIDs() (ids []string) { + for id := range m.policy { + ids = append(ids, id) } - if m.operation != nil { - fields = append(fields, entitlementhistory.FieldOperation) + return +} + +// ResetPolicy resets all changes to the "policy" edge. +func (m *ControlObjectiveMutation) ResetPolicy() { + m.policy = nil + m.clearedpolicy = false + m.removedpolicy = nil +} + +// AddControlIDs adds the "controls" edge to the Control entity by ids. +func (m *ControlObjectiveMutation) AddControlIDs(ids ...string) { + if m.controls == nil { + m.controls = make(map[string]struct{}) } - if m.created_at != nil { - fields = append(fields, entitlementhistory.FieldCreatedAt) + for i := range ids { + m.controls[ids[i]] = struct{}{} } - if m.updated_at != nil { - fields = append(fields, entitlementhistory.FieldUpdatedAt) +} + +// ClearControls clears the "controls" edge to the Control entity. +func (m *ControlObjectiveMutation) ClearControls() { + m.clearedcontrols = true +} + +// ControlsCleared reports if the "controls" edge to the Control entity was cleared. +func (m *ControlObjectiveMutation) ControlsCleared() bool { + return m.clearedcontrols +} + +// RemoveControlIDs removes the "controls" edge to the Control entity by IDs. +func (m *ControlObjectiveMutation) RemoveControlIDs(ids ...string) { + if m.removedcontrols == nil { + m.removedcontrols = make(map[string]struct{}) } - if m.created_by != nil { - fields = append(fields, entitlementhistory.FieldCreatedBy) + for i := range ids { + delete(m.controls, ids[i]) + m.removedcontrols[ids[i]] = struct{}{} } - if m.updated_by != nil { - fields = append(fields, entitlementhistory.FieldUpdatedBy) +} + +// RemovedControls returns the removed IDs of the "controls" edge to the Control entity. +func (m *ControlObjectiveMutation) RemovedControlsIDs() (ids []string) { + for id := range m.removedcontrols { + ids = append(ids, id) } - if m.mapping_id != nil { - fields = append(fields, entitlementhistory.FieldMappingID) + return +} + +// ControlsIDs returns the "controls" edge IDs in the mutation. +func (m *ControlObjectiveMutation) ControlsIDs() (ids []string) { + for id := range m.controls { + ids = append(ids, id) } - if m.tags != nil { - fields = append(fields, entitlementhistory.FieldTags) + return +} + +// ResetControls resets all changes to the "controls" edge. +func (m *ControlObjectiveMutation) ResetControls() { + m.controls = nil + m.clearedcontrols = false + m.removedcontrols = nil +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by ids. +func (m *ControlObjectiveMutation) AddProcedureIDs(ids ...string) { + if m.procedures == nil { + m.procedures = make(map[string]struct{}) } - if m.deleted_at != nil { - fields = append(fields, entitlementhistory.FieldDeletedAt) + for i := range ids { + m.procedures[ids[i]] = struct{}{} } - if m.deleted_by != nil { - fields = append(fields, entitlementhistory.FieldDeletedBy) +} + +// ClearProcedures clears the "procedures" edge to the Procedure entity. +func (m *ControlObjectiveMutation) ClearProcedures() { + m.clearedprocedures = true +} + +// ProceduresCleared reports if the "procedures" edge to the Procedure entity was cleared. +func (m *ControlObjectiveMutation) ProceduresCleared() bool { + return m.clearedprocedures +} + +// RemoveProcedureIDs removes the "procedures" edge to the Procedure entity by IDs. +func (m *ControlObjectiveMutation) RemoveProcedureIDs(ids ...string) { + if m.removedprocedures == nil { + m.removedprocedures = make(map[string]struct{}) } - if m.owner_id != nil { - fields = append(fields, entitlementhistory.FieldOwnerID) + for i := range ids { + delete(m.procedures, ids[i]) + m.removedprocedures[ids[i]] = struct{}{} } - if m.plan_id != nil { - fields = append(fields, entitlementhistory.FieldPlanID) +} + +// RemovedProcedures returns the removed IDs of the "procedures" edge to the Procedure entity. +func (m *ControlObjectiveMutation) RemovedProceduresIDs() (ids []string) { + for id := range m.removedprocedures { + ids = append(ids, id) } - if m.organization_id != nil { - fields = append(fields, entitlementhistory.FieldOrganizationID) + return +} + +// ProceduresIDs returns the "procedures" edge IDs in the mutation. +func (m *ControlObjectiveMutation) ProceduresIDs() (ids []string) { + for id := range m.procedures { + ids = append(ids, id) } - if m.external_customer_id != nil { - fields = append(fields, entitlementhistory.FieldExternalCustomerID) + return +} + +// ResetProcedures resets all changes to the "procedures" edge. +func (m *ControlObjectiveMutation) ResetProcedures() { + m.procedures = nil + m.clearedprocedures = false + m.removedprocedures = nil +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by ids. +func (m *ControlObjectiveMutation) AddRiskIDs(ids ...string) { + if m.risks == nil { + m.risks = make(map[string]struct{}) } - if m.external_subscription_id != nil { - fields = append(fields, entitlementhistory.FieldExternalSubscriptionID) + for i := range ids { + m.risks[ids[i]] = struct{}{} } - if m.expires != nil { - fields = append(fields, entitlementhistory.FieldExpires) +} + +// ClearRisks clears the "risks" edge to the Risk entity. +func (m *ControlObjectiveMutation) ClearRisks() { + m.clearedrisks = true +} + +// RisksCleared reports if the "risks" edge to the Risk entity was cleared. +func (m *ControlObjectiveMutation) RisksCleared() bool { + return m.clearedrisks +} + +// RemoveRiskIDs removes the "risks" edge to the Risk entity by IDs. +func (m *ControlObjectiveMutation) RemoveRiskIDs(ids ...string) { + if m.removedrisks == nil { + m.removedrisks = make(map[string]struct{}) } - if m.expires_at != nil { - fields = append(fields, entitlementhistory.FieldExpiresAt) + for i := range ids { + delete(m.risks, ids[i]) + m.removedrisks[ids[i]] = struct{}{} } - if m.cancelled != nil { - fields = append(fields, entitlementhistory.FieldCancelled) +} + +// RemovedRisks returns the removed IDs of the "risks" edge to the Risk entity. +func (m *ControlObjectiveMutation) RemovedRisksIDs() (ids []string) { + for id := range m.removedrisks { + ids = append(ids, id) } - return fields + return } -// 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 *EntitlementHistoryMutation) Field(name string) (ent.Value, bool) { - switch name { - case entitlementhistory.FieldHistoryTime: - return m.HistoryTime() - case entitlementhistory.FieldRef: - return m.Ref() - case entitlementhistory.FieldOperation: - return m.Operation() - case entitlementhistory.FieldCreatedAt: +// RisksIDs returns the "risks" edge IDs in the mutation. +func (m *ControlObjectiveMutation) RisksIDs() (ids []string) { + for id := range m.risks { + ids = append(ids, id) + } + return +} + +// ResetRisks resets all changes to the "risks" edge. +func (m *ControlObjectiveMutation) ResetRisks() { + m.risks = nil + m.clearedrisks = false + m.removedrisks = nil +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by ids. +func (m *ControlObjectiveMutation) AddSubcontrolIDs(ids ...string) { + if m.subcontrols == nil { + m.subcontrols = make(map[string]struct{}) + } + for i := range ids { + m.subcontrols[ids[i]] = struct{}{} + } +} + +// ClearSubcontrols clears the "subcontrols" edge to the Subcontrol entity. +func (m *ControlObjectiveMutation) ClearSubcontrols() { + m.clearedsubcontrols = true +} + +// SubcontrolsCleared reports if the "subcontrols" edge to the Subcontrol entity was cleared. +func (m *ControlObjectiveMutation) SubcontrolsCleared() bool { + return m.clearedsubcontrols +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to the Subcontrol entity by IDs. +func (m *ControlObjectiveMutation) RemoveSubcontrolIDs(ids ...string) { + if m.removedsubcontrols == nil { + m.removedsubcontrols = make(map[string]struct{}) + } + for i := range ids { + delete(m.subcontrols, ids[i]) + m.removedsubcontrols[ids[i]] = struct{}{} + } +} + +// RemovedSubcontrols returns the removed IDs of the "subcontrols" edge to the Subcontrol entity. +func (m *ControlObjectiveMutation) RemovedSubcontrolsIDs() (ids []string) { + for id := range m.removedsubcontrols { + ids = append(ids, id) + } + return +} + +// SubcontrolsIDs returns the "subcontrols" edge IDs in the mutation. +func (m *ControlObjectiveMutation) SubcontrolsIDs() (ids []string) { + for id := range m.subcontrols { + ids = append(ids, id) + } + return +} + +// ResetSubcontrols resets all changes to the "subcontrols" edge. +func (m *ControlObjectiveMutation) ResetSubcontrols() { + m.subcontrols = nil + m.clearedsubcontrols = false + m.removedsubcontrols = nil +} + +// AddStandardIDs adds the "standard" edge to the Standard entity by ids. +func (m *ControlObjectiveMutation) AddStandardIDs(ids ...string) { + if m.standard == nil { + m.standard = make(map[string]struct{}) + } + for i := range ids { + m.standard[ids[i]] = struct{}{} + } +} + +// ClearStandard clears the "standard" edge to the Standard entity. +func (m *ControlObjectiveMutation) ClearStandard() { + m.clearedstandard = true +} + +// StandardCleared reports if the "standard" edge to the Standard entity was cleared. +func (m *ControlObjectiveMutation) StandardCleared() bool { + return m.clearedstandard +} + +// RemoveStandardIDs removes the "standard" edge to the Standard entity by IDs. +func (m *ControlObjectiveMutation) RemoveStandardIDs(ids ...string) { + if m.removedstandard == nil { + m.removedstandard = make(map[string]struct{}) + } + for i := range ids { + delete(m.standard, ids[i]) + m.removedstandard[ids[i]] = struct{}{} + } +} + +// RemovedStandard returns the removed IDs of the "standard" edge to the Standard entity. +func (m *ControlObjectiveMutation) RemovedStandardIDs() (ids []string) { + for id := range m.removedstandard { + ids = append(ids, id) + } + return +} + +// StandardIDs returns the "standard" edge IDs in the mutation. +func (m *ControlObjectiveMutation) StandardIDs() (ids []string) { + for id := range m.standard { + ids = append(ids, id) + } + return +} + +// ResetStandard resets all changes to the "standard" edge. +func (m *ControlObjectiveMutation) ResetStandard() { + m.standard = nil + m.clearedstandard = false + m.removedstandard = nil +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by ids. +func (m *ControlObjectiveMutation) AddNarrativeIDs(ids ...string) { + if m.narratives == nil { + m.narratives = make(map[string]struct{}) + } + for i := range ids { + m.narratives[ids[i]] = struct{}{} + } +} + +// ClearNarratives clears the "narratives" edge to the Narrative entity. +func (m *ControlObjectiveMutation) ClearNarratives() { + m.clearednarratives = true +} + +// NarrativesCleared reports if the "narratives" edge to the Narrative entity was cleared. +func (m *ControlObjectiveMutation) NarrativesCleared() bool { + return m.clearednarratives +} + +// RemoveNarrativeIDs removes the "narratives" edge to the Narrative entity by IDs. +func (m *ControlObjectiveMutation) RemoveNarrativeIDs(ids ...string) { + if m.removednarratives == nil { + m.removednarratives = make(map[string]struct{}) + } + for i := range ids { + delete(m.narratives, ids[i]) + m.removednarratives[ids[i]] = struct{}{} + } +} + +// RemovedNarratives returns the removed IDs of the "narratives" edge to the Narrative entity. +func (m *ControlObjectiveMutation) RemovedNarrativesIDs() (ids []string) { + for id := range m.removednarratives { + ids = append(ids, id) + } + return +} + +// NarrativesIDs returns the "narratives" edge IDs in the mutation. +func (m *ControlObjectiveMutation) NarrativesIDs() (ids []string) { + for id := range m.narratives { + ids = append(ids, id) + } + return +} + +// ResetNarratives resets all changes to the "narratives" edge. +func (m *ControlObjectiveMutation) ResetNarratives() { + m.narratives = nil + m.clearednarratives = false + m.removednarratives = nil +} + +// Where appends a list predicates to the ControlObjectiveMutation builder. +func (m *ControlObjectiveMutation) Where(ps ...predicate.ControlObjective) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the ControlObjectiveMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *ControlObjectiveMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.ControlObjective, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *ControlObjectiveMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *ControlObjectiveMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (ControlObjective). +func (m *ControlObjectiveMutation) 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 *ControlObjectiveMutation) Fields() []string { + fields := make([]string, 0, 19) + if m.created_at != nil { + fields = append(fields, controlobjective.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, controlobjective.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, controlobjective.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, controlobjective.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, controlobjective.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, controlobjective.FieldDeletedBy) + } + if m.mapping_id != nil { + fields = append(fields, controlobjective.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, controlobjective.FieldTags) + } + if m.name != nil { + fields = append(fields, controlobjective.FieldName) + } + if m.description != nil { + fields = append(fields, controlobjective.FieldDescription) + } + if m.status != nil { + fields = append(fields, controlobjective.FieldStatus) + } + if m.control_objective_type != nil { + fields = append(fields, controlobjective.FieldControlObjectiveType) + } + if m.version != nil { + fields = append(fields, controlobjective.FieldVersion) + } + if m.control_number != nil { + fields = append(fields, controlobjective.FieldControlNumber) + } + if m.family != nil { + fields = append(fields, controlobjective.FieldFamily) + } + if m.class != nil { + fields = append(fields, controlobjective.FieldClass) + } + if m.source != nil { + fields = append(fields, controlobjective.FieldSource) + } + if m.mapped_frameworks != nil { + fields = append(fields, controlobjective.FieldMappedFrameworks) + } + if m.details != nil { + fields = append(fields, controlobjective.FieldDetails) + } + 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 *ControlObjectiveMutation) Field(name string) (ent.Value, bool) { + switch name { + case controlobjective.FieldCreatedAt: return m.CreatedAt() - case entitlementhistory.FieldUpdatedAt: + case controlobjective.FieldUpdatedAt: return m.UpdatedAt() - case entitlementhistory.FieldCreatedBy: + case controlobjective.FieldCreatedBy: return m.CreatedBy() - case entitlementhistory.FieldUpdatedBy: + case controlobjective.FieldUpdatedBy: return m.UpdatedBy() - case entitlementhistory.FieldMappingID: - return m.MappingID() - case entitlementhistory.FieldTags: - return m.Tags() - case entitlementhistory.FieldDeletedAt: + case controlobjective.FieldDeletedAt: return m.DeletedAt() - case entitlementhistory.FieldDeletedBy: + case controlobjective.FieldDeletedBy: return m.DeletedBy() - case entitlementhistory.FieldOwnerID: - return m.OwnerID() - case entitlementhistory.FieldPlanID: - return m.PlanID() - case entitlementhistory.FieldOrganizationID: - return m.OrganizationID() - case entitlementhistory.FieldExternalCustomerID: - return m.ExternalCustomerID() - case entitlementhistory.FieldExternalSubscriptionID: - return m.ExternalSubscriptionID() - case entitlementhistory.FieldExpires: - return m.Expires() - case entitlementhistory.FieldExpiresAt: - return m.ExpiresAt() - case entitlementhistory.FieldCancelled: - return m.Cancelled() + case controlobjective.FieldMappingID: + return m.MappingID() + case controlobjective.FieldTags: + return m.Tags() + case controlobjective.FieldName: + return m.Name() + case controlobjective.FieldDescription: + return m.Description() + case controlobjective.FieldStatus: + return m.Status() + case controlobjective.FieldControlObjectiveType: + return m.ControlObjectiveType() + case controlobjective.FieldVersion: + return m.Version() + case controlobjective.FieldControlNumber: + return m.ControlNumber() + case controlobjective.FieldFamily: + return m.Family() + case controlobjective.FieldClass: + return m.Class() + case controlobjective.FieldSource: + return m.Source() + case controlobjective.FieldMappedFrameworks: + return m.MappedFrameworks() + case controlobjective.FieldDetails: + return m.Details() } return nil, false } @@ -11143,472 +13852,689 @@ func (m *EntitlementHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *EntitlementHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *ControlObjectiveMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case entitlementhistory.FieldHistoryTime: - return m.OldHistoryTime(ctx) - case entitlementhistory.FieldRef: - return m.OldRef(ctx) - case entitlementhistory.FieldOperation: - return m.OldOperation(ctx) - case entitlementhistory.FieldCreatedAt: + case controlobjective.FieldCreatedAt: return m.OldCreatedAt(ctx) - case entitlementhistory.FieldUpdatedAt: + case controlobjective.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case entitlementhistory.FieldCreatedBy: + case controlobjective.FieldCreatedBy: return m.OldCreatedBy(ctx) - case entitlementhistory.FieldUpdatedBy: + case controlobjective.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case entitlementhistory.FieldMappingID: - return m.OldMappingID(ctx) - case entitlementhistory.FieldTags: - return m.OldTags(ctx) - case entitlementhistory.FieldDeletedAt: + case controlobjective.FieldDeletedAt: return m.OldDeletedAt(ctx) - case entitlementhistory.FieldDeletedBy: + case controlobjective.FieldDeletedBy: return m.OldDeletedBy(ctx) - case entitlementhistory.FieldOwnerID: - return m.OldOwnerID(ctx) - case entitlementhistory.FieldPlanID: - return m.OldPlanID(ctx) - case entitlementhistory.FieldOrganizationID: - return m.OldOrganizationID(ctx) - case entitlementhistory.FieldExternalCustomerID: - return m.OldExternalCustomerID(ctx) - case entitlementhistory.FieldExternalSubscriptionID: - return m.OldExternalSubscriptionID(ctx) - case entitlementhistory.FieldExpires: - return m.OldExpires(ctx) - case entitlementhistory.FieldExpiresAt: - return m.OldExpiresAt(ctx) - case entitlementhistory.FieldCancelled: - return m.OldCancelled(ctx) - } - return nil, fmt.Errorf("unknown EntitlementHistory field %s", name) + case controlobjective.FieldMappingID: + return m.OldMappingID(ctx) + case controlobjective.FieldTags: + return m.OldTags(ctx) + case controlobjective.FieldName: + return m.OldName(ctx) + case controlobjective.FieldDescription: + return m.OldDescription(ctx) + case controlobjective.FieldStatus: + return m.OldStatus(ctx) + case controlobjective.FieldControlObjectiveType: + return m.OldControlObjectiveType(ctx) + case controlobjective.FieldVersion: + return m.OldVersion(ctx) + case controlobjective.FieldControlNumber: + return m.OldControlNumber(ctx) + case controlobjective.FieldFamily: + return m.OldFamily(ctx) + case controlobjective.FieldClass: + return m.OldClass(ctx) + case controlobjective.FieldSource: + return m.OldSource(ctx) + case controlobjective.FieldMappedFrameworks: + return m.OldMappedFrameworks(ctx) + case controlobjective.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown ControlObjective 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 *EntitlementHistoryMutation) SetField(name string, value ent.Value) error { +func (m *ControlObjectiveMutation) SetField(name string, value ent.Value) error { switch name { - case entitlementhistory.FieldHistoryTime: + case controlobjective.FieldCreatedAt: v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetHistoryTime(v) + m.SetCreatedAt(v) return nil - case entitlementhistory.FieldRef: - v, ok := value.(string) + case controlobjective.FieldUpdatedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetRef(v) + m.SetUpdatedAt(v) return nil - case entitlementhistory.FieldOperation: - v, ok := value.(history.OpType) + case controlobjective.FieldCreatedBy: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOperation(v) + m.SetCreatedBy(v) return nil - case entitlementhistory.FieldCreatedAt: - v, ok := value.(time.Time) + case controlobjective.FieldUpdatedBy: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCreatedAt(v) + m.SetUpdatedBy(v) return nil - case entitlementhistory.FieldUpdatedAt: + case controlobjective.FieldDeletedAt: v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetUpdatedAt(v) + m.SetDeletedAt(v) return nil - case entitlementhistory.FieldCreatedBy: + case controlobjective.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCreatedBy(v) + m.SetDeletedBy(v) return nil - case entitlementhistory.FieldUpdatedBy: + case controlobjective.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetUpdatedBy(v) + m.SetMappingID(v) return nil - case entitlementhistory.FieldMappingID: - v, ok := value.(string) + case controlobjective.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMappingID(v) + m.SetTags(v) return nil - case entitlementhistory.FieldTags: - v, ok := value.([]string) + case controlobjective.FieldName: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTags(v) + m.SetName(v) return nil - case entitlementhistory.FieldDeletedAt: - v, ok := value.(time.Time) + case controlobjective.FieldDescription: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetDescription(v) return nil - case entitlementhistory.FieldDeletedBy: + case controlobjective.FieldStatus: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetStatus(v) return nil - case entitlementhistory.FieldOwnerID: + case controlobjective.FieldControlObjectiveType: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetControlObjectiveType(v) return nil - case entitlementhistory.FieldPlanID: + case controlobjective.FieldVersion: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetPlanID(v) + m.SetVersion(v) return nil - case entitlementhistory.FieldOrganizationID: + case controlobjective.FieldControlNumber: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOrganizationID(v) + m.SetControlNumber(v) return nil - case entitlementhistory.FieldExternalCustomerID: + case controlobjective.FieldFamily: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetExternalCustomerID(v) + m.SetFamily(v) return nil - case entitlementhistory.FieldExternalSubscriptionID: + case controlobjective.FieldClass: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetExternalSubscriptionID(v) + m.SetClass(v) return nil - case entitlementhistory.FieldExpires: - v, ok := value.(bool) + case controlobjective.FieldSource: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetExpires(v) + m.SetSource(v) return nil - case entitlementhistory.FieldExpiresAt: - v, ok := value.(time.Time) + case controlobjective.FieldMappedFrameworks: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetExpiresAt(v) + m.SetMappedFrameworks(v) return nil - case entitlementhistory.FieldCancelled: - v, ok := value.(bool) + case controlobjective.FieldDetails: + v, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCancelled(v) + m.SetDetails(v) return nil } - return fmt.Errorf("unknown EntitlementHistory field %s", name) + return fmt.Errorf("unknown ControlObjective field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *EntitlementHistoryMutation) AddedFields() []string { +func (m *ControlObjectiveMutation) 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 *EntitlementHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *ControlObjectiveMutation) 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 *EntitlementHistoryMutation) AddField(name string, value ent.Value) error { +func (m *ControlObjectiveMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown EntitlementHistory numeric field %s", name) + return fmt.Errorf("unknown ControlObjective numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *EntitlementHistoryMutation) ClearedFields() []string { +func (m *ControlObjectiveMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(entitlementhistory.FieldRef) { - fields = append(fields, entitlementhistory.FieldRef) + if m.FieldCleared(controlobjective.FieldCreatedAt) { + fields = append(fields, controlobjective.FieldCreatedAt) } - if m.FieldCleared(entitlementhistory.FieldCreatedAt) { - fields = append(fields, entitlementhistory.FieldCreatedAt) + if m.FieldCleared(controlobjective.FieldUpdatedAt) { + fields = append(fields, controlobjective.FieldUpdatedAt) } - if m.FieldCleared(entitlementhistory.FieldUpdatedAt) { - fields = append(fields, entitlementhistory.FieldUpdatedAt) + if m.FieldCleared(controlobjective.FieldCreatedBy) { + fields = append(fields, controlobjective.FieldCreatedBy) } - if m.FieldCleared(entitlementhistory.FieldCreatedBy) { - fields = append(fields, entitlementhistory.FieldCreatedBy) + if m.FieldCleared(controlobjective.FieldUpdatedBy) { + fields = append(fields, controlobjective.FieldUpdatedBy) } - if m.FieldCleared(entitlementhistory.FieldUpdatedBy) { - fields = append(fields, entitlementhistory.FieldUpdatedBy) + if m.FieldCleared(controlobjective.FieldDeletedAt) { + fields = append(fields, controlobjective.FieldDeletedAt) } - if m.FieldCleared(entitlementhistory.FieldTags) { - fields = append(fields, entitlementhistory.FieldTags) + if m.FieldCleared(controlobjective.FieldDeletedBy) { + fields = append(fields, controlobjective.FieldDeletedBy) } - if m.FieldCleared(entitlementhistory.FieldDeletedAt) { - fields = append(fields, entitlementhistory.FieldDeletedAt) + if m.FieldCleared(controlobjective.FieldTags) { + fields = append(fields, controlobjective.FieldTags) } - if m.FieldCleared(entitlementhistory.FieldDeletedBy) { - fields = append(fields, entitlementhistory.FieldDeletedBy) + if m.FieldCleared(controlobjective.FieldDescription) { + fields = append(fields, controlobjective.FieldDescription) } - if m.FieldCleared(entitlementhistory.FieldOwnerID) { - fields = append(fields, entitlementhistory.FieldOwnerID) + if m.FieldCleared(controlobjective.FieldStatus) { + fields = append(fields, controlobjective.FieldStatus) } - if m.FieldCleared(entitlementhistory.FieldExternalCustomerID) { - fields = append(fields, entitlementhistory.FieldExternalCustomerID) + if m.FieldCleared(controlobjective.FieldControlObjectiveType) { + fields = append(fields, controlobjective.FieldControlObjectiveType) } - if m.FieldCleared(entitlementhistory.FieldExternalSubscriptionID) { - fields = append(fields, entitlementhistory.FieldExternalSubscriptionID) + if m.FieldCleared(controlobjective.FieldVersion) { + fields = append(fields, controlobjective.FieldVersion) } - if m.FieldCleared(entitlementhistory.FieldExpiresAt) { - fields = append(fields, entitlementhistory.FieldExpiresAt) + if m.FieldCleared(controlobjective.FieldControlNumber) { + fields = append(fields, controlobjective.FieldControlNumber) + } + if m.FieldCleared(controlobjective.FieldFamily) { + fields = append(fields, controlobjective.FieldFamily) + } + if m.FieldCleared(controlobjective.FieldClass) { + fields = append(fields, controlobjective.FieldClass) + } + if m.FieldCleared(controlobjective.FieldSource) { + fields = append(fields, controlobjective.FieldSource) + } + if m.FieldCleared(controlobjective.FieldMappedFrameworks) { + fields = append(fields, controlobjective.FieldMappedFrameworks) + } + if m.FieldCleared(controlobjective.FieldDetails) { + fields = append(fields, controlobjective.FieldDetails) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *EntitlementHistoryMutation) FieldCleared(name string) bool { +func (m *ControlObjectiveMutation) 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 *EntitlementHistoryMutation) ClearField(name string) error { +func (m *ControlObjectiveMutation) ClearField(name string) error { switch name { - case entitlementhistory.FieldRef: - m.ClearRef() - return nil - case entitlementhistory.FieldCreatedAt: + case controlobjective.FieldCreatedAt: m.ClearCreatedAt() return nil - case entitlementhistory.FieldUpdatedAt: + case controlobjective.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case entitlementhistory.FieldCreatedBy: + case controlobjective.FieldCreatedBy: m.ClearCreatedBy() return nil - case entitlementhistory.FieldUpdatedBy: + case controlobjective.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case entitlementhistory.FieldTags: - m.ClearTags() - return nil - case entitlementhistory.FieldDeletedAt: + case controlobjective.FieldDeletedAt: m.ClearDeletedAt() return nil - case entitlementhistory.FieldDeletedBy: + case controlobjective.FieldDeletedBy: m.ClearDeletedBy() return nil - case entitlementhistory.FieldOwnerID: - m.ClearOwnerID() + case controlobjective.FieldTags: + m.ClearTags() return nil - case entitlementhistory.FieldExternalCustomerID: - m.ClearExternalCustomerID() + case controlobjective.FieldDescription: + m.ClearDescription() return nil - case entitlementhistory.FieldExternalSubscriptionID: - m.ClearExternalSubscriptionID() + case controlobjective.FieldStatus: + m.ClearStatus() return nil - case entitlementhistory.FieldExpiresAt: - m.ClearExpiresAt() + case controlobjective.FieldControlObjectiveType: + m.ClearControlObjectiveType() + return nil + case controlobjective.FieldVersion: + m.ClearVersion() + return nil + case controlobjective.FieldControlNumber: + m.ClearControlNumber() + return nil + case controlobjective.FieldFamily: + m.ClearFamily() + return nil + case controlobjective.FieldClass: + m.ClearClass() + return nil + case controlobjective.FieldSource: + m.ClearSource() + return nil + case controlobjective.FieldMappedFrameworks: + m.ClearMappedFrameworks() + return nil + case controlobjective.FieldDetails: + m.ClearDetails() return nil } - return fmt.Errorf("unknown EntitlementHistory nullable field %s", name) + return fmt.Errorf("unknown ControlObjective 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 *EntitlementHistoryMutation) ResetField(name string) error { +func (m *ControlObjectiveMutation) ResetField(name string) error { switch name { - case entitlementhistory.FieldHistoryTime: - m.ResetHistoryTime() - return nil - case entitlementhistory.FieldRef: - m.ResetRef() - return nil - case entitlementhistory.FieldOperation: - m.ResetOperation() - return nil - case entitlementhistory.FieldCreatedAt: + case controlobjective.FieldCreatedAt: m.ResetCreatedAt() return nil - case entitlementhistory.FieldUpdatedAt: + case controlobjective.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case entitlementhistory.FieldCreatedBy: + case controlobjective.FieldCreatedBy: m.ResetCreatedBy() return nil - case entitlementhistory.FieldUpdatedBy: + case controlobjective.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case entitlementhistory.FieldMappingID: + case controlobjective.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case controlobjective.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case controlobjective.FieldMappingID: m.ResetMappingID() return nil - case entitlementhistory.FieldTags: + case controlobjective.FieldTags: m.ResetTags() return nil - case entitlementhistory.FieldDeletedAt: - m.ResetDeletedAt() + case controlobjective.FieldName: + m.ResetName() return nil - case entitlementhistory.FieldDeletedBy: - m.ResetDeletedBy() + case controlobjective.FieldDescription: + m.ResetDescription() return nil - case entitlementhistory.FieldOwnerID: - m.ResetOwnerID() + case controlobjective.FieldStatus: + m.ResetStatus() return nil - case entitlementhistory.FieldPlanID: - m.ResetPlanID() + case controlobjective.FieldControlObjectiveType: + m.ResetControlObjectiveType() return nil - case entitlementhistory.FieldOrganizationID: - m.ResetOrganizationID() + case controlobjective.FieldVersion: + m.ResetVersion() return nil - case entitlementhistory.FieldExternalCustomerID: - m.ResetExternalCustomerID() + case controlobjective.FieldControlNumber: + m.ResetControlNumber() return nil - case entitlementhistory.FieldExternalSubscriptionID: - m.ResetExternalSubscriptionID() + case controlobjective.FieldFamily: + m.ResetFamily() return nil - case entitlementhistory.FieldExpires: - m.ResetExpires() + case controlobjective.FieldClass: + m.ResetClass() return nil - case entitlementhistory.FieldExpiresAt: - m.ResetExpiresAt() + case controlobjective.FieldSource: + m.ResetSource() return nil - case entitlementhistory.FieldCancelled: - m.ResetCancelled() + case controlobjective.FieldMappedFrameworks: + m.ResetMappedFrameworks() + return nil + case controlobjective.FieldDetails: + m.ResetDetails() return nil } - return fmt.Errorf("unknown EntitlementHistory field %s", name) + return fmt.Errorf("unknown ControlObjective field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *EntitlementHistoryMutation) AddedEdges() []string { - edges := make([]string, 0, 0) +func (m *ControlObjectiveMutation) AddedEdges() []string { + edges := make([]string, 0, 7) + if m.policy != nil { + edges = append(edges, controlobjective.EdgePolicy) + } + if m.controls != nil { + edges = append(edges, controlobjective.EdgeControls) + } + if m.procedures != nil { + edges = append(edges, controlobjective.EdgeProcedures) + } + if m.risks != nil { + edges = append(edges, controlobjective.EdgeRisks) + } + if m.subcontrols != nil { + edges = append(edges, controlobjective.EdgeSubcontrols) + } + if m.standard != nil { + edges = append(edges, controlobjective.EdgeStandard) + } + if m.narratives != nil { + edges = append(edges, controlobjective.EdgeNarratives) + } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *EntitlementHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *ControlObjectiveMutation) AddedIDs(name string) []ent.Value { + switch name { + case controlobjective.EdgePolicy: + ids := make([]ent.Value, 0, len(m.policy)) + for id := range m.policy { + ids = append(ids, id) + } + return ids + case controlobjective.EdgeControls: + ids := make([]ent.Value, 0, len(m.controls)) + for id := range m.controls { + ids = append(ids, id) + } + return ids + case controlobjective.EdgeProcedures: + ids := make([]ent.Value, 0, len(m.procedures)) + for id := range m.procedures { + ids = append(ids, id) + } + return ids + case controlobjective.EdgeRisks: + ids := make([]ent.Value, 0, len(m.risks)) + for id := range m.risks { + ids = append(ids, id) + } + return ids + case controlobjective.EdgeSubcontrols: + ids := make([]ent.Value, 0, len(m.subcontrols)) + for id := range m.subcontrols { + ids = append(ids, id) + } + return ids + case controlobjective.EdgeStandard: + ids := make([]ent.Value, 0, len(m.standard)) + for id := range m.standard { + ids = append(ids, id) + } + return ids + case controlobjective.EdgeNarratives: + ids := make([]ent.Value, 0, len(m.narratives)) + for id := range m.narratives { + ids = append(ids, id) + } + return ids + } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *EntitlementHistoryMutation) RemovedEdges() []string { - edges := make([]string, 0, 0) +func (m *ControlObjectiveMutation) RemovedEdges() []string { + edges := make([]string, 0, 7) + if m.removedpolicy != nil { + edges = append(edges, controlobjective.EdgePolicy) + } + if m.removedcontrols != nil { + edges = append(edges, controlobjective.EdgeControls) + } + if m.removedprocedures != nil { + edges = append(edges, controlobjective.EdgeProcedures) + } + if m.removedrisks != nil { + edges = append(edges, controlobjective.EdgeRisks) + } + if m.removedsubcontrols != nil { + edges = append(edges, controlobjective.EdgeSubcontrols) + } + if m.removedstandard != nil { + edges = append(edges, controlobjective.EdgeStandard) + } + if m.removednarratives != nil { + edges = append(edges, controlobjective.EdgeNarratives) + } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *EntitlementHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *ControlObjectiveMutation) RemovedIDs(name string) []ent.Value { + switch name { + case controlobjective.EdgePolicy: + ids := make([]ent.Value, 0, len(m.removedpolicy)) + for id := range m.removedpolicy { + ids = append(ids, id) + } + return ids + case controlobjective.EdgeControls: + ids := make([]ent.Value, 0, len(m.removedcontrols)) + for id := range m.removedcontrols { + ids = append(ids, id) + } + return ids + case controlobjective.EdgeProcedures: + ids := make([]ent.Value, 0, len(m.removedprocedures)) + for id := range m.removedprocedures { + ids = append(ids, id) + } + return ids + case controlobjective.EdgeRisks: + ids := make([]ent.Value, 0, len(m.removedrisks)) + for id := range m.removedrisks { + ids = append(ids, id) + } + return ids + case controlobjective.EdgeSubcontrols: + ids := make([]ent.Value, 0, len(m.removedsubcontrols)) + for id := range m.removedsubcontrols { + ids = append(ids, id) + } + return ids + case controlobjective.EdgeStandard: + ids := make([]ent.Value, 0, len(m.removedstandard)) + for id := range m.removedstandard { + ids = append(ids, id) + } + return ids + case controlobjective.EdgeNarratives: + ids := make([]ent.Value, 0, len(m.removednarratives)) + for id := range m.removednarratives { + ids = append(ids, id) + } + return ids + } return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EntitlementHistoryMutation) ClearedEdges() []string { - edges := make([]string, 0, 0) +func (m *ControlObjectiveMutation) ClearedEdges() []string { + edges := make([]string, 0, 7) + if m.clearedpolicy { + edges = append(edges, controlobjective.EdgePolicy) + } + if m.clearedcontrols { + edges = append(edges, controlobjective.EdgeControls) + } + if m.clearedprocedures { + edges = append(edges, controlobjective.EdgeProcedures) + } + if m.clearedrisks { + edges = append(edges, controlobjective.EdgeRisks) + } + if m.clearedsubcontrols { + edges = append(edges, controlobjective.EdgeSubcontrols) + } + if m.clearedstandard { + edges = append(edges, controlobjective.EdgeStandard) + } + if m.clearednarratives { + edges = append(edges, controlobjective.EdgeNarratives) + } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *EntitlementHistoryMutation) EdgeCleared(name string) bool { +func (m *ControlObjectiveMutation) EdgeCleared(name string) bool { + switch name { + case controlobjective.EdgePolicy: + return m.clearedpolicy + case controlobjective.EdgeControls: + return m.clearedcontrols + case controlobjective.EdgeProcedures: + return m.clearedprocedures + case controlobjective.EdgeRisks: + return m.clearedrisks + case controlobjective.EdgeSubcontrols: + return m.clearedsubcontrols + case controlobjective.EdgeStandard: + return m.clearedstandard + case controlobjective.EdgeNarratives: + return m.clearednarratives + } 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 *EntitlementHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown EntitlementHistory unique edge %s", name) +func (m *ControlObjectiveMutation) ClearEdge(name string) error { + switch name { + } + return fmt.Errorf("unknown ControlObjective 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 *EntitlementHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown EntitlementHistory edge %s", name) +func (m *ControlObjectiveMutation) ResetEdge(name string) error { + switch name { + case controlobjective.EdgePolicy: + m.ResetPolicy() + return nil + case controlobjective.EdgeControls: + m.ResetControls() + return nil + case controlobjective.EdgeProcedures: + m.ResetProcedures() + return nil + case controlobjective.EdgeRisks: + m.ResetRisks() + return nil + case controlobjective.EdgeSubcontrols: + m.ResetSubcontrols() + return nil + case controlobjective.EdgeStandard: + m.ResetStandard() + return nil + case controlobjective.EdgeNarratives: + m.ResetNarratives() + return nil + } + return fmt.Errorf("unknown ControlObjective edge %s", name) } -// EntitlementPlanMutation represents an operation that mutates the EntitlementPlan nodes in the graph. -type EntitlementPlanMutation struct { +// ControlObjectiveHistoryMutation represents an operation that mutates the ControlObjectiveHistory nodes in the graph. +type ControlObjectiveHistoryMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - deleted_at *time.Time - deleted_by *string - tags *[]string - appendtags []string - display_name *string - name *string - description *string - version *string - metadata *map[string]interface{} - clearedFields map[string]struct{} - owner *string - clearedowner bool - entitlements map[string]struct{} - removedentitlements map[string]struct{} - clearedentitlements bool - base_features map[string]struct{} - removedbase_features map[string]struct{} - clearedbase_features bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - features map[string]struct{} - removedfeatures map[string]struct{} - clearedfeatures bool - done bool - oldValue func(context.Context) (*EntitlementPlan, error) - predicates []predicate.EntitlementPlan + 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 + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + status *string + control_objective_type *string + version *string + control_number *string + family *string + class *string + source *string + mapped_frameworks *string + details *map[string]interface{} + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*ControlObjectiveHistory, error) + predicates []predicate.ControlObjectiveHistory } -var _ ent.Mutation = (*EntitlementPlanMutation)(nil) +var _ ent.Mutation = (*ControlObjectiveHistoryMutation)(nil) -// entitlementplanOption allows management of the mutation configuration using functional options. -type entitlementplanOption func(*EntitlementPlanMutation) +// controlobjectivehistoryOption allows management of the mutation configuration using functional options. +type controlobjectivehistoryOption func(*ControlObjectiveHistoryMutation) -// newEntitlementPlanMutation creates new mutation for the EntitlementPlan entity. -func newEntitlementPlanMutation(c config, op Op, opts ...entitlementplanOption) *EntitlementPlanMutation { - m := &EntitlementPlanMutation{ +// newControlObjectiveHistoryMutation creates new mutation for the ControlObjectiveHistory entity. +func newControlObjectiveHistoryMutation(c config, op Op, opts ...controlobjectivehistoryOption) *ControlObjectiveHistoryMutation { + m := &ControlObjectiveHistoryMutation{ config: c, op: op, - typ: TypeEntitlementPlan, + typ: TypeControlObjectiveHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -11617,20 +14543,20 @@ func newEntitlementPlanMutation(c config, op Op, opts ...entitlementplanOption) return m } -// withEntitlementPlanID sets the ID field of the mutation. -func withEntitlementPlanID(id string) entitlementplanOption { - return func(m *EntitlementPlanMutation) { +// withControlObjectiveHistoryID sets the ID field of the mutation. +func withControlObjectiveHistoryID(id string) controlobjectivehistoryOption { + return func(m *ControlObjectiveHistoryMutation) { var ( err error once sync.Once - value *EntitlementPlan + value *ControlObjectiveHistory ) - m.oldValue = func(ctx context.Context) (*EntitlementPlan, error) { + m.oldValue = func(ctx context.Context) (*ControlObjectiveHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().EntitlementPlan.Get(ctx, id) + value, err = m.Client().ControlObjectiveHistory.Get(ctx, id) } }) return value, err @@ -11639,10 +14565,10 @@ func withEntitlementPlanID(id string) entitlementplanOption { } } -// withEntitlementPlan sets the old EntitlementPlan of the mutation. -func withEntitlementPlan(node *EntitlementPlan) entitlementplanOption { - return func(m *EntitlementPlanMutation) { - m.oldValue = func(context.Context) (*EntitlementPlan, error) { +// withControlObjectiveHistory sets the old ControlObjectiveHistory of the mutation. +func withControlObjectiveHistory(node *ControlObjectiveHistory) controlobjectivehistoryOption { + return func(m *ControlObjectiveHistoryMutation) { + m.oldValue = func(context.Context) (*ControlObjectiveHistory, error) { return node, nil } m.id = &node.ID @@ -11651,7 +14577,7 @@ func withEntitlementPlan(node *EntitlementPlan) entitlementplanOption { // 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 EntitlementPlanMutation) Client() *Client { +func (m ControlObjectiveHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -11659,7 +14585,7 @@ func (m EntitlementPlanMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EntitlementPlanMutation) Tx() (*Tx, error) { +func (m ControlObjectiveHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -11669,14 +14595,14 @@ func (m EntitlementPlanMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of EntitlementPlan entities. -func (m *EntitlementPlanMutation) SetID(id string) { +// operation is only accepted on creation of ControlObjectiveHistory entities. +func (m *ControlObjectiveHistoryMutation) 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 *EntitlementPlanMutation) ID() (id string, exists bool) { +func (m *ControlObjectiveHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -11687,7 +14613,7 @@ func (m *EntitlementPlanMutation) ID() (id string, exists bool) { // 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 *EntitlementPlanMutation) IDs(ctx context.Context) ([]string, error) { +func (m *ControlObjectiveHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -11696,19 +14622,140 @@ func (m *EntitlementPlanMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().EntitlementPlan.Query().Where(m.predicates...).IDs(ctx) + return m.Client().ControlObjectiveHistory.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 *ControlObjectiveHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *ControlObjectiveHistoryMutation) 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 ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *ControlObjectiveHistoryMutation) 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 *ControlObjectiveHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *ControlObjectiveHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *ControlObjectiveHistoryMutation) 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 ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *ControlObjectiveHistoryMutation) 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 *ControlObjectiveHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[controlobjectivehistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *ControlObjectiveHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *ControlObjectiveHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, controlobjectivehistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *ControlObjectiveHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *ControlObjectiveHistoryMutation) 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 ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *ControlObjectiveHistoryMutation) 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 *ControlObjectiveHistoryMutation) ResetOperation() { + m.operation = nil +} + // SetCreatedAt sets the "created_at" field. -func (m *EntitlementPlanMutation) SetCreatedAt(t time.Time) { +func (m *ControlObjectiveHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EntitlementPlanMutation) CreatedAt() (r time.Time, exists bool) { +func (m *ControlObjectiveHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -11716,10 +14763,10 @@ func (m *EntitlementPlanMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ControlObjectiveHistoryMutation) 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") } @@ -11734,30 +14781,30 @@ func (m *EntitlementPlanMutation) OldCreatedAt(ctx context.Context) (v time.Time } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EntitlementPlanMutation) ClearCreatedAt() { +func (m *ControlObjectiveHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[entitlementplan.FieldCreatedAt] = struct{}{} + m.clearedFields[controlobjectivehistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EntitlementPlanMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[entitlementplan.FieldCreatedAt] +func (m *ControlObjectiveHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EntitlementPlanMutation) ResetCreatedAt() { +func (m *ControlObjectiveHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, entitlementplan.FieldCreatedAt) + delete(m.clearedFields, controlobjectivehistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EntitlementPlanMutation) SetUpdatedAt(t time.Time) { +func (m *ControlObjectiveHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EntitlementPlanMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *ControlObjectiveHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -11765,10 +14812,10 @@ func (m *EntitlementPlanMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ControlObjectiveHistoryMutation) 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") } @@ -11783,30 +14830,30 @@ func (m *EntitlementPlanMutation) OldUpdatedAt(ctx context.Context) (v time.Time } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EntitlementPlanMutation) ClearUpdatedAt() { +func (m *ControlObjectiveHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[entitlementplan.FieldUpdatedAt] = struct{}{} + m.clearedFields[controlobjectivehistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EntitlementPlanMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[entitlementplan.FieldUpdatedAt] +func (m *ControlObjectiveHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EntitlementPlanMutation) ResetUpdatedAt() { +func (m *ControlObjectiveHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, entitlementplan.FieldUpdatedAt) + delete(m.clearedFields, controlobjectivehistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EntitlementPlanMutation) SetCreatedBy(s string) { +func (m *ControlObjectiveHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EntitlementPlanMutation) CreatedBy() (r string, exists bool) { +func (m *ControlObjectiveHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -11814,10 +14861,10 @@ func (m *EntitlementPlanMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -11832,30 +14879,30 @@ func (m *EntitlementPlanMutation) OldCreatedBy(ctx context.Context) (v string, e } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EntitlementPlanMutation) ClearCreatedBy() { +func (m *ControlObjectiveHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[entitlementplan.FieldCreatedBy] = struct{}{} + m.clearedFields[controlobjectivehistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EntitlementPlanMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[entitlementplan.FieldCreatedBy] +func (m *ControlObjectiveHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EntitlementPlanMutation) ResetCreatedBy() { +func (m *ControlObjectiveHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, entitlementplan.FieldCreatedBy) + delete(m.clearedFields, controlobjectivehistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EntitlementPlanMutation) SetUpdatedBy(s string) { +func (m *ControlObjectiveHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EntitlementPlanMutation) UpdatedBy() (r string, exists bool) { +func (m *ControlObjectiveHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -11863,10 +14910,10 @@ func (m *EntitlementPlanMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -11881,66 +14928,30 @@ func (m *EntitlementPlanMutation) OldUpdatedBy(ctx context.Context) (v string, e } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EntitlementPlanMutation) ClearUpdatedBy() { +func (m *ControlObjectiveHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[entitlementplan.FieldUpdatedBy] = struct{}{} + m.clearedFields[controlobjectivehistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EntitlementPlanMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[entitlementplan.FieldUpdatedBy] +func (m *ControlObjectiveHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EntitlementPlanMutation) ResetUpdatedBy() { +func (m *ControlObjectiveHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, entitlementplan.FieldUpdatedBy) -} - -// SetMappingID sets the "mapping_id" field. -func (m *EntitlementPlanMutation) SetMappingID(s string) { - m.mapping_id = &s -} - -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EntitlementPlanMutation) MappingID() (r string, exists bool) { - v := m.mapping_id - if v == nil { - return - } - return *v, true -} - -// OldMappingID returns the old "mapping_id" field's value of the EntitlementPlan entity. -// If the EntitlementPlan 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 *EntitlementPlanMutation) OldMappingID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) - } - return oldValue.MappingID, nil -} - -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *EntitlementPlanMutation) ResetMappingID() { - m.mapping_id = nil + delete(m.clearedFields, controlobjectivehistory.FieldUpdatedBy) } // SetDeletedAt sets the "deleted_at" field. -func (m *EntitlementPlanMutation) SetDeletedAt(t time.Time) { +func (m *ControlObjectiveHistoryMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *EntitlementPlanMutation) DeletedAt() (r time.Time, exists bool) { +func (m *ControlObjectiveHistoryMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -11948,10 +14959,10 @@ func (m *EntitlementPlanMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *ControlObjectiveHistoryMutation) 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") } @@ -11966,30 +14977,30 @@ func (m *EntitlementPlanMutation) OldDeletedAt(ctx context.Context) (v time.Time } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *EntitlementPlanMutation) ClearDeletedAt() { +func (m *ControlObjectiveHistoryMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[entitlementplan.FieldDeletedAt] = struct{}{} + m.clearedFields[controlobjectivehistory.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *EntitlementPlanMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[entitlementplan.FieldDeletedAt] +func (m *ControlObjectiveHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *EntitlementPlanMutation) ResetDeletedAt() { +func (m *ControlObjectiveHistoryMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, entitlementplan.FieldDeletedAt) + delete(m.clearedFields, controlobjectivehistory.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *EntitlementPlanMutation) SetDeletedBy(s string) { +func (m *ControlObjectiveHistoryMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *EntitlementPlanMutation) DeletedBy() (r string, exists bool) { +func (m *ControlObjectiveHistoryMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -11997,10 +15008,10 @@ func (m *EntitlementPlanMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -12015,31 +15026,67 @@ func (m *EntitlementPlanMutation) OldDeletedBy(ctx context.Context) (v string, e } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *EntitlementPlanMutation) ClearDeletedBy() { +func (m *ControlObjectiveHistoryMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[entitlementplan.FieldDeletedBy] = struct{}{} + m.clearedFields[controlobjectivehistory.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *EntitlementPlanMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[entitlementplan.FieldDeletedBy] +func (m *ControlObjectiveHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *EntitlementPlanMutation) ResetDeletedBy() { +func (m *ControlObjectiveHistoryMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, entitlementplan.FieldDeletedBy) + delete(m.clearedFields, controlobjectivehistory.FieldDeletedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *ControlObjectiveHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *ControlObjectiveHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *ControlObjectiveHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *ControlObjectiveHistoryMutation) ResetMappingID() { + m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *EntitlementPlanMutation) SetTags(s []string) { +func (m *ControlObjectiveHistoryMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *EntitlementPlanMutation) Tags() (r []string, exists bool) { +func (m *ControlObjectiveHistoryMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -12047,10 +15094,10 @@ func (m *EntitlementPlanMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *ControlObjectiveHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -12065,12 +15112,12 @@ func (m *EntitlementPlanMutation) OldTags(ctx context.Context) (v []string, err } // AppendTags adds s to the "tags" field. -func (m *EntitlementPlanMutation) AppendTags(s []string) { +func (m *ControlObjectiveHistoryMutation) 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 *EntitlementPlanMutation) AppendedTags() ([]string, bool) { +func (m *ControlObjectiveHistoryMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -12078,215 +15125,215 @@ func (m *EntitlementPlanMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *EntitlementPlanMutation) ClearTags() { +func (m *ControlObjectiveHistoryMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[entitlementplan.FieldTags] = struct{}{} + m.clearedFields[controlobjectivehistory.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *EntitlementPlanMutation) TagsCleared() bool { - _, ok := m.clearedFields[entitlementplan.FieldTags] +func (m *ControlObjectiveHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *EntitlementPlanMutation) ResetTags() { +func (m *ControlObjectiveHistoryMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, entitlementplan.FieldTags) + delete(m.clearedFields, controlobjectivehistory.FieldTags) } -// SetOwnerID sets the "owner_id" field. -func (m *EntitlementPlanMutation) SetOwnerID(s string) { - m.owner = &s +// SetName sets the "name" field. +func (m *ControlObjectiveHistoryMutation) SetName(s string) { + m.name = &s } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *EntitlementPlanMutation) OwnerID() (r string, exists bool) { - v := m.owner +// Name returns the value of the "name" field in the mutation. +func (m *ControlObjectiveHistoryMutation) Name() (r string, exists bool) { + v := m.name if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveHistoryMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldName 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") + 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 OldOwnerID: %w", err) + return v, fmt.Errorf("querying old value for OldName: %w", err) } - return oldValue.OwnerID, nil -} - -// ClearOwnerID clears the value of the "owner_id" field. -func (m *EntitlementPlanMutation) ClearOwnerID() { - m.owner = nil - m.clearedFields[entitlementplan.FieldOwnerID] = struct{}{} -} - -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *EntitlementPlanMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[entitlementplan.FieldOwnerID] - return ok + return oldValue.Name, nil } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *EntitlementPlanMutation) ResetOwnerID() { - m.owner = nil - delete(m.clearedFields, entitlementplan.FieldOwnerID) +// ResetName resets all changes to the "name" field. +func (m *ControlObjectiveHistoryMutation) ResetName() { + m.name = nil } -// SetDisplayName sets the "display_name" field. -func (m *EntitlementPlanMutation) SetDisplayName(s string) { - m.display_name = &s +// SetDescription sets the "description" field. +func (m *ControlObjectiveHistoryMutation) SetDescription(s string) { + m.description = &s } -// DisplayName returns the value of the "display_name" field in the mutation. -func (m *EntitlementPlanMutation) DisplayName() (r string, exists bool) { - v := m.display_name +// Description returns the value of the "description" field in the mutation. +func (m *ControlObjectiveHistoryMutation) Description() (r string, exists bool) { + v := m.description if v == nil { return } return *v, true } -// OldDisplayName returns the old "display_name" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldDisplayName(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") + return v, errors.New("OldDescription is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDisplayName requires an ID field in the mutation") + 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 OldDisplayName: %w", err) + return v, fmt.Errorf("querying old value for OldDescription: %w", err) } - return oldValue.DisplayName, nil + return oldValue.Description, nil } -// ClearDisplayName clears the value of the "display_name" field. -func (m *EntitlementPlanMutation) ClearDisplayName() { - m.display_name = nil - m.clearedFields[entitlementplan.FieldDisplayName] = struct{}{} +// ClearDescription clears the value of the "description" field. +func (m *ControlObjectiveHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[controlobjectivehistory.FieldDescription] = struct{}{} } -// DisplayNameCleared returns if the "display_name" field was cleared in this mutation. -func (m *EntitlementPlanMutation) DisplayNameCleared() bool { - _, ok := m.clearedFields[entitlementplan.FieldDisplayName] +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *ControlObjectiveHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldDescription] return ok } -// ResetDisplayName resets all changes to the "display_name" field. -func (m *EntitlementPlanMutation) ResetDisplayName() { - m.display_name = nil - delete(m.clearedFields, entitlementplan.FieldDisplayName) +// ResetDescription resets all changes to the "description" field. +func (m *ControlObjectiveHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, controlobjectivehistory.FieldDescription) } -// SetName sets the "name" field. -func (m *EntitlementPlanMutation) SetName(s string) { - m.name = &s +// SetStatus sets the "status" field. +func (m *ControlObjectiveHistoryMutation) SetStatus(s string) { + m.status = &s } -// Name returns the value of the "name" field in the mutation. -func (m *EntitlementPlanMutation) Name() (r string, exists bool) { - v := m.name +// Status returns the value of the "status" field in the mutation. +func (m *ControlObjectiveHistoryMutation) Status() (r string, exists bool) { + v := m.status if v == nil { return } return *v, true } -// OldName returns the old "name" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldStatus returns the old "status" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldName(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveHistoryMutation) OldStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldName is only allowed on UpdateOne operations") + return v, errors.New("OldStatus 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") + return v, errors.New("OldStatus 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 v, fmt.Errorf("querying old value for OldStatus: %w", err) } - return oldValue.Name, nil + return oldValue.Status, nil } -// ResetName resets all changes to the "name" field. -func (m *EntitlementPlanMutation) ResetName() { - m.name = nil +// ClearStatus clears the value of the "status" field. +func (m *ControlObjectiveHistoryMutation) ClearStatus() { + m.status = nil + m.clearedFields[controlobjectivehistory.FieldStatus] = struct{}{} } -// SetDescription sets the "description" field. -func (m *EntitlementPlanMutation) SetDescription(s string) { - m.description = &s +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *ControlObjectiveHistoryMutation) StatusCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldStatus] + return ok } -// Description returns the value of the "description" field in the mutation. -func (m *EntitlementPlanMutation) Description() (r string, exists bool) { - v := m.description +// ResetStatus resets all changes to the "status" field. +func (m *ControlObjectiveHistoryMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, controlobjectivehistory.FieldStatus) +} + +// SetControlObjectiveType sets the "control_objective_type" field. +func (m *ControlObjectiveHistoryMutation) SetControlObjectiveType(s string) { + m.control_objective_type = &s +} + +// ControlObjectiveType returns the value of the "control_objective_type" field in the mutation. +func (m *ControlObjectiveHistoryMutation) ControlObjectiveType() (r string, exists bool) { + v := m.control_objective_type if v == nil { return } return *v, true } -// OldDescription returns the old "description" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldControlObjectiveType returns the old "control_objective_type" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldDescription(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveHistoryMutation) OldControlObjectiveType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDescription is only allowed on UpdateOne operations") + return v, errors.New("OldControlObjectiveType 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") + return v, errors.New("OldControlObjectiveType 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 v, fmt.Errorf("querying old value for OldControlObjectiveType: %w", err) } - return oldValue.Description, nil + return oldValue.ControlObjectiveType, nil } -// ClearDescription clears the value of the "description" field. -func (m *EntitlementPlanMutation) ClearDescription() { - m.description = nil - m.clearedFields[entitlementplan.FieldDescription] = struct{}{} +// ClearControlObjectiveType clears the value of the "control_objective_type" field. +func (m *ControlObjectiveHistoryMutation) ClearControlObjectiveType() { + m.control_objective_type = nil + m.clearedFields[controlobjectivehistory.FieldControlObjectiveType] = struct{}{} } -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *EntitlementPlanMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[entitlementplan.FieldDescription] +// ControlObjectiveTypeCleared returns if the "control_objective_type" field was cleared in this mutation. +func (m *ControlObjectiveHistoryMutation) ControlObjectiveTypeCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldControlObjectiveType] return ok } -// ResetDescription resets all changes to the "description" field. -func (m *EntitlementPlanMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, entitlementplan.FieldDescription) +// ResetControlObjectiveType resets all changes to the "control_objective_type" field. +func (m *ControlObjectiveHistoryMutation) ResetControlObjectiveType() { + m.control_objective_type = nil + delete(m.clearedFields, controlobjectivehistory.FieldControlObjectiveType) } // SetVersion sets the "version" field. -func (m *EntitlementPlanMutation) SetVersion(s string) { +func (m *ControlObjectiveHistoryMutation) SetVersion(s string) { m.version = &s } // Version returns the value of the "version" field in the mutation. -func (m *EntitlementPlanMutation) Version() (r string, exists bool) { +func (m *ControlObjectiveHistoryMutation) Version() (r string, exists bool) { v := m.version if v == nil { return @@ -12294,10 +15341,10 @@ func (m *EntitlementPlanMutation) Version() (r string, exists bool) { return *v, true } -// OldVersion returns the old "version" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldVersion returns the old "version" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldVersion(ctx context.Context) (v string, err error) { +func (m *ControlObjectiveHistoryMutation) OldVersion(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldVersion is only allowed on UpdateOne operations") } @@ -12311,312 +15358,327 @@ func (m *EntitlementPlanMutation) OldVersion(ctx context.Context) (v string, err return oldValue.Version, nil } +// ClearVersion clears the value of the "version" field. +func (m *ControlObjectiveHistoryMutation) ClearVersion() { + m.version = nil + m.clearedFields[controlobjectivehistory.FieldVersion] = struct{}{} +} + +// VersionCleared returns if the "version" field was cleared in this mutation. +func (m *ControlObjectiveHistoryMutation) VersionCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldVersion] + return ok +} + // ResetVersion resets all changes to the "version" field. -func (m *EntitlementPlanMutation) ResetVersion() { +func (m *ControlObjectiveHistoryMutation) ResetVersion() { m.version = nil + delete(m.clearedFields, controlobjectivehistory.FieldVersion) } -// SetMetadata sets the "metadata" field. -func (m *EntitlementPlanMutation) SetMetadata(value map[string]interface{}) { - m.metadata = &value +// SetControlNumber sets the "control_number" field. +func (m *ControlObjectiveHistoryMutation) SetControlNumber(s string) { + m.control_number = &s } -// Metadata returns the value of the "metadata" field in the mutation. -func (m *EntitlementPlanMutation) Metadata() (r map[string]interface{}, exists bool) { - v := m.metadata +// ControlNumber returns the value of the "control_number" field in the mutation. +func (m *ControlObjectiveHistoryMutation) ControlNumber() (r string, exists bool) { + v := m.control_number if v == nil { return } return *v, true } -// OldMetadata returns the old "metadata" field's value of the EntitlementPlan entity. -// If the EntitlementPlan object wasn't provided to the builder, the object is fetched from the database. +// OldControlNumber returns the old "control_number" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *EntitlementPlanMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error) { +func (m *ControlObjectiveHistoryMutation) OldControlNumber(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMetadata is only allowed on UpdateOne operations") + return v, errors.New("OldControlNumber 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") + return v, errors.New("OldControlNumber 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 v, fmt.Errorf("querying old value for OldControlNumber: %w", err) } - return oldValue.Metadata, nil + return oldValue.ControlNumber, nil } -// ClearMetadata clears the value of the "metadata" field. -func (m *EntitlementPlanMutation) ClearMetadata() { - m.metadata = nil - m.clearedFields[entitlementplan.FieldMetadata] = struct{}{} +// ClearControlNumber clears the value of the "control_number" field. +func (m *ControlObjectiveHistoryMutation) ClearControlNumber() { + m.control_number = nil + m.clearedFields[controlobjectivehistory.FieldControlNumber] = struct{}{} } -// MetadataCleared returns if the "metadata" field was cleared in this mutation. -func (m *EntitlementPlanMutation) MetadataCleared() bool { - _, ok := m.clearedFields[entitlementplan.FieldMetadata] +// ControlNumberCleared returns if the "control_number" field was cleared in this mutation. +func (m *ControlObjectiveHistoryMutation) ControlNumberCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldControlNumber] return ok } -// ResetMetadata resets all changes to the "metadata" field. -func (m *EntitlementPlanMutation) ResetMetadata() { - m.metadata = nil - delete(m.clearedFields, entitlementplan.FieldMetadata) +// ResetControlNumber resets all changes to the "control_number" field. +func (m *ControlObjectiveHistoryMutation) ResetControlNumber() { + m.control_number = nil + delete(m.clearedFields, controlobjectivehistory.FieldControlNumber) } -// ClearOwner clears the "owner" edge to the Organization entity. -func (m *EntitlementPlanMutation) ClearOwner() { - m.clearedowner = true - m.clearedFields[entitlementplan.FieldOwnerID] = struct{}{} +// SetFamily sets the "family" field. +func (m *ControlObjectiveHistoryMutation) SetFamily(s string) { + m.family = &s } -// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *EntitlementPlanMutation) OwnerCleared() bool { - return m.OwnerIDCleared() || m.clearedowner +// Family returns the value of the "family" field in the mutation. +func (m *ControlObjectiveHistoryMutation) Family() (r string, exists bool) { + v := m.family + if v == nil { + return + } + return *v, true } -// 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 *EntitlementPlanMutation) OwnerIDs() (ids []string) { - if id := m.owner; id != nil { - ids = append(ids, *id) +// OldFamily returns the old "family" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *ControlObjectiveHistoryMutation) OldFamily(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldFamily is only allowed on UpdateOne operations") } - return + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldFamily requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldFamily: %w", err) + } + return oldValue.Family, nil } -// ResetOwner resets all changes to the "owner" edge. -func (m *EntitlementPlanMutation) ResetOwner() { - m.owner = nil - m.clearedowner = false +// ClearFamily clears the value of the "family" field. +func (m *ControlObjectiveHistoryMutation) ClearFamily() { + m.family = nil + m.clearedFields[controlobjectivehistory.FieldFamily] = struct{}{} } -// AddEntitlementIDs adds the "entitlements" edge to the Entitlement entity by ids. -func (m *EntitlementPlanMutation) AddEntitlementIDs(ids ...string) { - if m.entitlements == nil { - m.entitlements = make(map[string]struct{}) - } - for i := range ids { - m.entitlements[ids[i]] = struct{}{} - } +// FamilyCleared returns if the "family" field was cleared in this mutation. +func (m *ControlObjectiveHistoryMutation) FamilyCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldFamily] + return ok } -// ClearEntitlements clears the "entitlements" edge to the Entitlement entity. -func (m *EntitlementPlanMutation) ClearEntitlements() { - m.clearedentitlements = true +// ResetFamily resets all changes to the "family" field. +func (m *ControlObjectiveHistoryMutation) ResetFamily() { + m.family = nil + delete(m.clearedFields, controlobjectivehistory.FieldFamily) } -// EntitlementsCleared reports if the "entitlements" edge to the Entitlement entity was cleared. -func (m *EntitlementPlanMutation) EntitlementsCleared() bool { - return m.clearedentitlements +// SetClass sets the "class" field. +func (m *ControlObjectiveHistoryMutation) SetClass(s string) { + m.class = &s } -// RemoveEntitlementIDs removes the "entitlements" edge to the Entitlement entity by IDs. -func (m *EntitlementPlanMutation) RemoveEntitlementIDs(ids ...string) { - if m.removedentitlements == nil { - m.removedentitlements = make(map[string]struct{}) - } - for i := range ids { - delete(m.entitlements, ids[i]) - m.removedentitlements[ids[i]] = struct{}{} +// Class returns the value of the "class" field in the mutation. +func (m *ControlObjectiveHistoryMutation) Class() (r string, exists bool) { + v := m.class + if v == nil { + return } + return *v, true } -// RemovedEntitlements returns the removed IDs of the "entitlements" edge to the Entitlement entity. -func (m *EntitlementPlanMutation) RemovedEntitlementsIDs() (ids []string) { - for id := range m.removedentitlements { - ids = append(ids, id) +// OldClass returns the old "class" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *ControlObjectiveHistoryMutation) OldClass(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClass is only allowed on UpdateOne operations") } - return -} - -// EntitlementsIDs returns the "entitlements" edge IDs in the mutation. -func (m *EntitlementPlanMutation) EntitlementsIDs() (ids []string) { - for id := range m.entitlements { - ids = append(ids, id) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClass requires an ID field in the mutation") } - return + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClass: %w", err) + } + return oldValue.Class, nil } -// ResetEntitlements resets all changes to the "entitlements" edge. -func (m *EntitlementPlanMutation) ResetEntitlements() { - m.entitlements = nil - m.clearedentitlements = false - m.removedentitlements = nil +// ClearClass clears the value of the "class" field. +func (m *ControlObjectiveHistoryMutation) ClearClass() { + m.class = nil + m.clearedFields[controlobjectivehistory.FieldClass] = struct{}{} } -// AddBaseFeatureIDs adds the "base_features" edge to the Feature entity by ids. -func (m *EntitlementPlanMutation) AddBaseFeatureIDs(ids ...string) { - if m.base_features == nil { - m.base_features = make(map[string]struct{}) - } - for i := range ids { - m.base_features[ids[i]] = struct{}{} - } +// ClassCleared returns if the "class" field was cleared in this mutation. +func (m *ControlObjectiveHistoryMutation) ClassCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldClass] + return ok } -// ClearBaseFeatures clears the "base_features" edge to the Feature entity. -func (m *EntitlementPlanMutation) ClearBaseFeatures() { - m.clearedbase_features = true +// ResetClass resets all changes to the "class" field. +func (m *ControlObjectiveHistoryMutation) ResetClass() { + m.class = nil + delete(m.clearedFields, controlobjectivehistory.FieldClass) } -// BaseFeaturesCleared reports if the "base_features" edge to the Feature entity was cleared. -func (m *EntitlementPlanMutation) BaseFeaturesCleared() bool { - return m.clearedbase_features +// SetSource sets the "source" field. +func (m *ControlObjectiveHistoryMutation) SetSource(s string) { + m.source = &s } -// RemoveBaseFeatureIDs removes the "base_features" edge to the Feature entity by IDs. -func (m *EntitlementPlanMutation) RemoveBaseFeatureIDs(ids ...string) { - if m.removedbase_features == nil { - m.removedbase_features = make(map[string]struct{}) - } - for i := range ids { - delete(m.base_features, ids[i]) - m.removedbase_features[ids[i]] = struct{}{} +// Source returns the value of the "source" field in the mutation. +func (m *ControlObjectiveHistoryMutation) Source() (r string, exists bool) { + v := m.source + if v == nil { + return } + return *v, true } -// RemovedBaseFeatures returns the removed IDs of the "base_features" edge to the Feature entity. -func (m *EntitlementPlanMutation) RemovedBaseFeaturesIDs() (ids []string) { - for id := range m.removedbase_features { - ids = append(ids, id) +// OldSource returns the old "source" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *ControlObjectiveHistoryMutation) OldSource(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSource is only allowed on UpdateOne operations") } - return -} - -// BaseFeaturesIDs returns the "base_features" edge IDs in the mutation. -func (m *EntitlementPlanMutation) BaseFeaturesIDs() (ids []string) { - for id := range m.base_features { - ids = append(ids, id) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSource requires an ID field in the mutation") } - return + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSource: %w", err) + } + return oldValue.Source, nil } -// ResetBaseFeatures resets all changes to the "base_features" edge. -func (m *EntitlementPlanMutation) ResetBaseFeatures() { - m.base_features = nil - m.clearedbase_features = false - m.removedbase_features = nil +// ClearSource clears the value of the "source" field. +func (m *ControlObjectiveHistoryMutation) ClearSource() { + m.source = nil + m.clearedFields[controlobjectivehistory.FieldSource] = struct{}{} } -// AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *EntitlementPlanMutation) AddEventIDs(ids ...string) { - if m.events == nil { - m.events = make(map[string]struct{}) - } - for i := range ids { - m.events[ids[i]] = struct{}{} - } +// SourceCleared returns if the "source" field was cleared in this mutation. +func (m *ControlObjectiveHistoryMutation) SourceCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldSource] + return ok } -// ClearEvents clears the "events" edge to the Event entity. -func (m *EntitlementPlanMutation) ClearEvents() { - m.clearedevents = true +// ResetSource resets all changes to the "source" field. +func (m *ControlObjectiveHistoryMutation) ResetSource() { + m.source = nil + delete(m.clearedFields, controlobjectivehistory.FieldSource) } -// EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *EntitlementPlanMutation) EventsCleared() bool { - return m.clearedevents +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (m *ControlObjectiveHistoryMutation) SetMappedFrameworks(s string) { + m.mapped_frameworks = &s } -// RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *EntitlementPlanMutation) RemoveEventIDs(ids ...string) { - if m.removedevents == nil { - m.removedevents = make(map[string]struct{}) - } - for i := range ids { - delete(m.events, ids[i]) - m.removedevents[ids[i]] = struct{}{} +// MappedFrameworks returns the value of the "mapped_frameworks" field in the mutation. +func (m *ControlObjectiveHistoryMutation) MappedFrameworks() (r string, exists bool) { + v := m.mapped_frameworks + if v == nil { + return } + return *v, true } -// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *EntitlementPlanMutation) RemovedEventsIDs() (ids []string) { - for id := range m.removedevents { - ids = append(ids, id) +// OldMappedFrameworks returns the old "mapped_frameworks" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *ControlObjectiveHistoryMutation) OldMappedFrameworks(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappedFrameworks is only allowed on UpdateOne operations") } - return + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappedFrameworks requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappedFrameworks: %w", err) + } + return oldValue.MappedFrameworks, nil } -// EventsIDs returns the "events" edge IDs in the mutation. -func (m *EntitlementPlanMutation) EventsIDs() (ids []string) { - for id := range m.events { - ids = append(ids, id) - } - return +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (m *ControlObjectiveHistoryMutation) ClearMappedFrameworks() { + m.mapped_frameworks = nil + m.clearedFields[controlobjectivehistory.FieldMappedFrameworks] = struct{}{} } -// ResetEvents resets all changes to the "events" edge. -func (m *EntitlementPlanMutation) ResetEvents() { - m.events = nil - m.clearedevents = false - m.removedevents = nil +// MappedFrameworksCleared returns if the "mapped_frameworks" field was cleared in this mutation. +func (m *ControlObjectiveHistoryMutation) MappedFrameworksCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldMappedFrameworks] + return ok } -// AddFeatureIDs adds the "features" edge to the EntitlementPlanFeature entity by ids. -func (m *EntitlementPlanMutation) AddFeatureIDs(ids ...string) { - if m.features == nil { - m.features = make(map[string]struct{}) - } - for i := range ids { - m.features[ids[i]] = struct{}{} - } +// ResetMappedFrameworks resets all changes to the "mapped_frameworks" field. +func (m *ControlObjectiveHistoryMutation) ResetMappedFrameworks() { + m.mapped_frameworks = nil + delete(m.clearedFields, controlobjectivehistory.FieldMappedFrameworks) } -// ClearFeatures clears the "features" edge to the EntitlementPlanFeature entity. -func (m *EntitlementPlanMutation) ClearFeatures() { - m.clearedfeatures = true +// SetDetails sets the "details" field. +func (m *ControlObjectiveHistoryMutation) SetDetails(value map[string]interface{}) { + m.details = &value } -// FeaturesCleared reports if the "features" edge to the EntitlementPlanFeature entity was cleared. -func (m *EntitlementPlanMutation) FeaturesCleared() bool { - return m.clearedfeatures +// Details returns the value of the "details" field in the mutation. +func (m *ControlObjectiveHistoryMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details + if v == nil { + return + } + return *v, true } -// RemoveFeatureIDs removes the "features" edge to the EntitlementPlanFeature entity by IDs. -func (m *EntitlementPlanMutation) RemoveFeatureIDs(ids ...string) { - if m.removedfeatures == nil { - m.removedfeatures = make(map[string]struct{}) +// OldDetails returns the old "details" field's value of the ControlObjectiveHistory entity. +// If the ControlObjectiveHistory 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 *ControlObjectiveHistoryMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetails is only allowed on UpdateOne operations") } - for i := range ids { - delete(m.features, ids[i]) - m.removedfeatures[ids[i]] = struct{}{} + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetails requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetails: %w", err) } + return oldValue.Details, nil } -// RemovedFeatures returns the removed IDs of the "features" edge to the EntitlementPlanFeature entity. -func (m *EntitlementPlanMutation) RemovedFeaturesIDs() (ids []string) { - for id := range m.removedfeatures { - ids = append(ids, id) - } - return +// ClearDetails clears the value of the "details" field. +func (m *ControlObjectiveHistoryMutation) ClearDetails() { + m.details = nil + m.clearedFields[controlobjectivehistory.FieldDetails] = struct{}{} } -// FeaturesIDs returns the "features" edge IDs in the mutation. -func (m *EntitlementPlanMutation) FeaturesIDs() (ids []string) { - for id := range m.features { - ids = append(ids, id) - } - return +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *ControlObjectiveHistoryMutation) DetailsCleared() bool { + _, ok := m.clearedFields[controlobjectivehistory.FieldDetails] + return ok } -// ResetFeatures resets all changes to the "features" edge. -func (m *EntitlementPlanMutation) ResetFeatures() { - m.features = nil - m.clearedfeatures = false - m.removedfeatures = nil +// ResetDetails resets all changes to the "details" field. +func (m *ControlObjectiveHistoryMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, controlobjectivehistory.FieldDetails) } -// Where appends a list predicates to the EntitlementPlanMutation builder. -func (m *EntitlementPlanMutation) Where(ps ...predicate.EntitlementPlan) { +// Where appends a list predicates to the ControlObjectiveHistoryMutation builder. +func (m *ControlObjectiveHistoryMutation) Where(ps ...predicate.ControlObjectiveHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the EntitlementPlanMutation builder. Using this method, +// WhereP appends storage-level predicates to the ControlObjectiveHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EntitlementPlanMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.EntitlementPlan, len(ps)) +func (m *ControlObjectiveHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.ControlObjectiveHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -12624,66 +15686,90 @@ func (m *EntitlementPlanMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *EntitlementPlanMutation) Op() Op { +func (m *ControlObjectiveHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *EntitlementPlanMutation) SetOp(op Op) { +func (m *ControlObjectiveHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (EntitlementPlan). -func (m *EntitlementPlanMutation) Type() string { +// Type returns the node type of this mutation (ControlObjectiveHistory). +func (m *ControlObjectiveHistoryMutation) 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 *EntitlementPlanMutation) Fields() []string { - fields := make([]string, 0, 14) +func (m *ControlObjectiveHistoryMutation) Fields() []string { + fields := make([]string, 0, 22) + if m.history_time != nil { + fields = append(fields, controlobjectivehistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, controlobjectivehistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, controlobjectivehistory.FieldOperation) + } if m.created_at != nil { - fields = append(fields, entitlementplan.FieldCreatedAt) + fields = append(fields, controlobjectivehistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, entitlementplan.FieldUpdatedAt) + fields = append(fields, controlobjectivehistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, entitlementplan.FieldCreatedBy) + fields = append(fields, controlobjectivehistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, entitlementplan.FieldUpdatedBy) - } - if m.mapping_id != nil { - fields = append(fields, entitlementplan.FieldMappingID) + fields = append(fields, controlobjectivehistory.FieldUpdatedBy) } if m.deleted_at != nil { - fields = append(fields, entitlementplan.FieldDeletedAt) + fields = append(fields, controlobjectivehistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, entitlementplan.FieldDeletedBy) - } - if m.tags != nil { - fields = append(fields, entitlementplan.FieldTags) + fields = append(fields, controlobjectivehistory.FieldDeletedBy) } - if m.owner != nil { - fields = append(fields, entitlementplan.FieldOwnerID) + if m.mapping_id != nil { + fields = append(fields, controlobjectivehistory.FieldMappingID) } - if m.display_name != nil { - fields = append(fields, entitlementplan.FieldDisplayName) + if m.tags != nil { + fields = append(fields, controlobjectivehistory.FieldTags) } if m.name != nil { - fields = append(fields, entitlementplan.FieldName) + fields = append(fields, controlobjectivehistory.FieldName) } if m.description != nil { - fields = append(fields, entitlementplan.FieldDescription) + fields = append(fields, controlobjectivehistory.FieldDescription) + } + if m.status != nil { + fields = append(fields, controlobjectivehistory.FieldStatus) + } + if m.control_objective_type != nil { + fields = append(fields, controlobjectivehistory.FieldControlObjectiveType) } if m.version != nil { - fields = append(fields, entitlementplan.FieldVersion) + fields = append(fields, controlobjectivehistory.FieldVersion) } - if m.metadata != nil { - fields = append(fields, entitlementplan.FieldMetadata) + if m.control_number != nil { + fields = append(fields, controlobjectivehistory.FieldControlNumber) + } + if m.family != nil { + fields = append(fields, controlobjectivehistory.FieldFamily) + } + if m.class != nil { + fields = append(fields, controlobjectivehistory.FieldClass) + } + if m.source != nil { + fields = append(fields, controlobjectivehistory.FieldSource) + } + if m.mapped_frameworks != nil { + fields = append(fields, controlobjectivehistory.FieldMappedFrameworks) + } + if m.details != nil { + fields = append(fields, controlobjectivehistory.FieldDetails) } return fields } @@ -12691,36 +15777,52 @@ func (m *EntitlementPlanMutation) Fields() []string { // 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 *EntitlementPlanMutation) Field(name string) (ent.Value, bool) { +func (m *ControlObjectiveHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case entitlementplan.FieldCreatedAt: + case controlobjectivehistory.FieldHistoryTime: + return m.HistoryTime() + case controlobjectivehistory.FieldRef: + return m.Ref() + case controlobjectivehistory.FieldOperation: + return m.Operation() + case controlobjectivehistory.FieldCreatedAt: return m.CreatedAt() - case entitlementplan.FieldUpdatedAt: + case controlobjectivehistory.FieldUpdatedAt: return m.UpdatedAt() - case entitlementplan.FieldCreatedBy: + case controlobjectivehistory.FieldCreatedBy: return m.CreatedBy() - case entitlementplan.FieldUpdatedBy: + case controlobjectivehistory.FieldUpdatedBy: return m.UpdatedBy() - case entitlementplan.FieldMappingID: - return m.MappingID() - case entitlementplan.FieldDeletedAt: + case controlobjectivehistory.FieldDeletedAt: return m.DeletedAt() - case entitlementplan.FieldDeletedBy: + case controlobjectivehistory.FieldDeletedBy: return m.DeletedBy() - case entitlementplan.FieldTags: + case controlobjectivehistory.FieldMappingID: + return m.MappingID() + case controlobjectivehistory.FieldTags: return m.Tags() - case entitlementplan.FieldOwnerID: - return m.OwnerID() - case entitlementplan.FieldDisplayName: - return m.DisplayName() - case entitlementplan.FieldName: + case controlobjectivehistory.FieldName: return m.Name() - case entitlementplan.FieldDescription: + case controlobjectivehistory.FieldDescription: return m.Description() - case entitlementplan.FieldVersion: + case controlobjectivehistory.FieldStatus: + return m.Status() + case controlobjectivehistory.FieldControlObjectiveType: + return m.ControlObjectiveType() + case controlobjectivehistory.FieldVersion: return m.Version() - case entitlementplan.FieldMetadata: - return m.Metadata() + case controlobjectivehistory.FieldControlNumber: + return m.ControlNumber() + case controlobjectivehistory.FieldFamily: + return m.Family() + case controlobjectivehistory.FieldClass: + return m.Class() + case controlobjectivehistory.FieldSource: + return m.Source() + case controlobjectivehistory.FieldMappedFrameworks: + return m.MappedFrameworks() + case controlobjectivehistory.FieldDetails: + return m.Details() } return nil, false } @@ -12728,529 +15830,536 @@ func (m *EntitlementPlanMutation) Field(name string) (ent.Value, bool) { // 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 *EntitlementPlanMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *ControlObjectiveHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case entitlementplan.FieldCreatedAt: + case controlobjectivehistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case controlobjectivehistory.FieldRef: + return m.OldRef(ctx) + case controlobjectivehistory.FieldOperation: + return m.OldOperation(ctx) + case controlobjectivehistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case entitlementplan.FieldUpdatedAt: + case controlobjectivehistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case entitlementplan.FieldCreatedBy: + case controlobjectivehistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case entitlementplan.FieldUpdatedBy: + case controlobjectivehistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case entitlementplan.FieldMappingID: - return m.OldMappingID(ctx) - case entitlementplan.FieldDeletedAt: + case controlobjectivehistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case entitlementplan.FieldDeletedBy: + case controlobjectivehistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case entitlementplan.FieldTags: + case controlobjectivehistory.FieldMappingID: + return m.OldMappingID(ctx) + case controlobjectivehistory.FieldTags: return m.OldTags(ctx) - case entitlementplan.FieldOwnerID: - return m.OldOwnerID(ctx) - case entitlementplan.FieldDisplayName: - return m.OldDisplayName(ctx) - case entitlementplan.FieldName: + case controlobjectivehistory.FieldName: return m.OldName(ctx) - case entitlementplan.FieldDescription: + case controlobjectivehistory.FieldDescription: return m.OldDescription(ctx) - case entitlementplan.FieldVersion: + case controlobjectivehistory.FieldStatus: + return m.OldStatus(ctx) + case controlobjectivehistory.FieldControlObjectiveType: + return m.OldControlObjectiveType(ctx) + case controlobjectivehistory.FieldVersion: return m.OldVersion(ctx) - case entitlementplan.FieldMetadata: - return m.OldMetadata(ctx) - } - return nil, fmt.Errorf("unknown EntitlementPlan field %s", name) + case controlobjectivehistory.FieldControlNumber: + return m.OldControlNumber(ctx) + case controlobjectivehistory.FieldFamily: + return m.OldFamily(ctx) + case controlobjectivehistory.FieldClass: + return m.OldClass(ctx) + case controlobjectivehistory.FieldSource: + return m.OldSource(ctx) + case controlobjectivehistory.FieldMappedFrameworks: + return m.OldMappedFrameworks(ctx) + case controlobjectivehistory.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown ControlObjectiveHistory 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 *EntitlementPlanMutation) SetField(name string, value ent.Value) error { +func (m *ControlObjectiveHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case entitlementplan.FieldCreatedAt: + case controlobjectivehistory.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 controlobjectivehistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case controlobjectivehistory.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 controlobjectivehistory.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 entitlementplan.FieldUpdatedAt: + case controlobjectivehistory.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 entitlementplan.FieldCreatedBy: + case controlobjectivehistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case entitlementplan.FieldUpdatedBy: + case controlobjectivehistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case entitlementplan.FieldMappingID: - v, ok := value.(string) + case controlobjectivehistory.FieldDeletedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMappingID(v) + m.SetDeletedAt(v) return nil - case entitlementplan.FieldDeletedAt: - v, ok := value.(time.Time) + case controlobjectivehistory.FieldDeletedBy: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetDeletedBy(v) return nil - case entitlementplan.FieldDeletedBy: + case controlobjectivehistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetMappingID(v) return nil - case entitlementplan.FieldTags: + case controlobjectivehistory.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case entitlementplan.FieldOwnerID: + case controlobjectivehistory.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetName(v) return nil - case entitlementplan.FieldDisplayName: + case controlobjectivehistory.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDisplayName(v) + m.SetDescription(v) return nil - case entitlementplan.FieldName: + case controlobjectivehistory.FieldStatus: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetName(v) + m.SetStatus(v) return nil - case entitlementplan.FieldDescription: + case controlobjectivehistory.FieldControlObjectiveType: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetControlObjectiveType(v) return nil - case entitlementplan.FieldVersion: + case controlobjectivehistory.FieldVersion: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetVersion(v) return nil - case entitlementplan.FieldMetadata: + case controlobjectivehistory.FieldControlNumber: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetControlNumber(v) + return nil + case controlobjectivehistory.FieldFamily: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetFamily(v) + return nil + case controlobjectivehistory.FieldClass: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClass(v) + return nil + case controlobjectivehistory.FieldSource: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSource(v) + return nil + case controlobjectivehistory.FieldMappedFrameworks: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappedFrameworks(v) + return nil + case controlobjectivehistory.FieldDetails: v, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMetadata(v) + m.SetDetails(v) return nil } - return fmt.Errorf("unknown EntitlementPlan field %s", name) + return fmt.Errorf("unknown ControlObjectiveHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *EntitlementPlanMutation) AddedFields() []string { +func (m *ControlObjectiveHistoryMutation) 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 *EntitlementPlanMutation) AddedField(name string) (ent.Value, bool) { +func (m *ControlObjectiveHistoryMutation) 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 *EntitlementPlanMutation) AddField(name string, value ent.Value) error { +func (m *ControlObjectiveHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown EntitlementPlan numeric field %s", name) + return fmt.Errorf("unknown ControlObjectiveHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *EntitlementPlanMutation) ClearedFields() []string { +func (m *ControlObjectiveHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(entitlementplan.FieldCreatedAt) { - fields = append(fields, entitlementplan.FieldCreatedAt) + if m.FieldCleared(controlobjectivehistory.FieldRef) { + fields = append(fields, controlobjectivehistory.FieldRef) } - if m.FieldCleared(entitlementplan.FieldUpdatedAt) { - fields = append(fields, entitlementplan.FieldUpdatedAt) + if m.FieldCleared(controlobjectivehistory.FieldCreatedAt) { + fields = append(fields, controlobjectivehistory.FieldCreatedAt) } - if m.FieldCleared(entitlementplan.FieldCreatedBy) { - fields = append(fields, entitlementplan.FieldCreatedBy) + if m.FieldCleared(controlobjectivehistory.FieldUpdatedAt) { + fields = append(fields, controlobjectivehistory.FieldUpdatedAt) } - if m.FieldCleared(entitlementplan.FieldUpdatedBy) { - fields = append(fields, entitlementplan.FieldUpdatedBy) + if m.FieldCleared(controlobjectivehistory.FieldCreatedBy) { + fields = append(fields, controlobjectivehistory.FieldCreatedBy) } - if m.FieldCleared(entitlementplan.FieldDeletedAt) { - fields = append(fields, entitlementplan.FieldDeletedAt) + if m.FieldCleared(controlobjectivehistory.FieldUpdatedBy) { + fields = append(fields, controlobjectivehistory.FieldUpdatedBy) } - if m.FieldCleared(entitlementplan.FieldDeletedBy) { - fields = append(fields, entitlementplan.FieldDeletedBy) + if m.FieldCleared(controlobjectivehistory.FieldDeletedAt) { + fields = append(fields, controlobjectivehistory.FieldDeletedAt) } - if m.FieldCleared(entitlementplan.FieldTags) { - fields = append(fields, entitlementplan.FieldTags) + if m.FieldCleared(controlobjectivehistory.FieldDeletedBy) { + fields = append(fields, controlobjectivehistory.FieldDeletedBy) } - if m.FieldCleared(entitlementplan.FieldOwnerID) { - fields = append(fields, entitlementplan.FieldOwnerID) + if m.FieldCleared(controlobjectivehistory.FieldTags) { + fields = append(fields, controlobjectivehistory.FieldTags) } - if m.FieldCleared(entitlementplan.FieldDisplayName) { - fields = append(fields, entitlementplan.FieldDisplayName) + if m.FieldCleared(controlobjectivehistory.FieldDescription) { + fields = append(fields, controlobjectivehistory.FieldDescription) } - if m.FieldCleared(entitlementplan.FieldDescription) { - fields = append(fields, entitlementplan.FieldDescription) + if m.FieldCleared(controlobjectivehistory.FieldStatus) { + fields = append(fields, controlobjectivehistory.FieldStatus) } - if m.FieldCleared(entitlementplan.FieldMetadata) { - fields = append(fields, entitlementplan.FieldMetadata) + if m.FieldCleared(controlobjectivehistory.FieldControlObjectiveType) { + fields = append(fields, controlobjectivehistory.FieldControlObjectiveType) + } + if m.FieldCleared(controlobjectivehistory.FieldVersion) { + fields = append(fields, controlobjectivehistory.FieldVersion) + } + if m.FieldCleared(controlobjectivehistory.FieldControlNumber) { + fields = append(fields, controlobjectivehistory.FieldControlNumber) + } + if m.FieldCleared(controlobjectivehistory.FieldFamily) { + fields = append(fields, controlobjectivehistory.FieldFamily) + } + if m.FieldCleared(controlobjectivehistory.FieldClass) { + fields = append(fields, controlobjectivehistory.FieldClass) + } + if m.FieldCleared(controlobjectivehistory.FieldSource) { + fields = append(fields, controlobjectivehistory.FieldSource) + } + if m.FieldCleared(controlobjectivehistory.FieldMappedFrameworks) { + fields = append(fields, controlobjectivehistory.FieldMappedFrameworks) + } + if m.FieldCleared(controlobjectivehistory.FieldDetails) { + fields = append(fields, controlobjectivehistory.FieldDetails) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *EntitlementPlanMutation) FieldCleared(name string) bool { +func (m *ControlObjectiveHistoryMutation) 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 *EntitlementPlanMutation) ClearField(name string) error { +func (m *ControlObjectiveHistoryMutation) ClearField(name string) error { switch name { - case entitlementplan.FieldCreatedAt: + case controlobjectivehistory.FieldRef: + m.ClearRef() + return nil + case controlobjectivehistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case entitlementplan.FieldUpdatedAt: + case controlobjectivehistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case entitlementplan.FieldCreatedBy: + case controlobjectivehistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case entitlementplan.FieldUpdatedBy: + case controlobjectivehistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case entitlementplan.FieldDeletedAt: + case controlobjectivehistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case entitlementplan.FieldDeletedBy: + case controlobjectivehistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case entitlementplan.FieldTags: + case controlobjectivehistory.FieldTags: m.ClearTags() return nil - case entitlementplan.FieldOwnerID: - m.ClearOwnerID() + case controlobjectivehistory.FieldDescription: + m.ClearDescription() return nil - case entitlementplan.FieldDisplayName: - m.ClearDisplayName() + case controlobjectivehistory.FieldStatus: + m.ClearStatus() return nil - case entitlementplan.FieldDescription: - m.ClearDescription() + case controlobjectivehistory.FieldControlObjectiveType: + m.ClearControlObjectiveType() return nil - case entitlementplan.FieldMetadata: - m.ClearMetadata() + case controlobjectivehistory.FieldVersion: + m.ClearVersion() + return nil + case controlobjectivehistory.FieldControlNumber: + m.ClearControlNumber() + return nil + case controlobjectivehistory.FieldFamily: + m.ClearFamily() + return nil + case controlobjectivehistory.FieldClass: + m.ClearClass() + return nil + case controlobjectivehistory.FieldSource: + m.ClearSource() + return nil + case controlobjectivehistory.FieldMappedFrameworks: + m.ClearMappedFrameworks() + return nil + case controlobjectivehistory.FieldDetails: + m.ClearDetails() return nil } - return fmt.Errorf("unknown EntitlementPlan nullable field %s", name) + return fmt.Errorf("unknown ControlObjectiveHistory 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 *EntitlementPlanMutation) ResetField(name string) error { +func (m *ControlObjectiveHistoryMutation) ResetField(name string) error { switch name { - case entitlementplan.FieldCreatedAt: + case controlobjectivehistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case controlobjectivehistory.FieldRef: + m.ResetRef() + return nil + case controlobjectivehistory.FieldOperation: + m.ResetOperation() + return nil + case controlobjectivehistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case entitlementplan.FieldUpdatedAt: + case controlobjectivehistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case entitlementplan.FieldCreatedBy: + case controlobjectivehistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case entitlementplan.FieldUpdatedBy: + case controlobjectivehistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case entitlementplan.FieldMappingID: - m.ResetMappingID() - return nil - case entitlementplan.FieldDeletedAt: + case controlobjectivehistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case entitlementplan.FieldDeletedBy: + case controlobjectivehistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case entitlementplan.FieldTags: - m.ResetTags() - return nil - case entitlementplan.FieldOwnerID: - m.ResetOwnerID() + case controlobjectivehistory.FieldMappingID: + m.ResetMappingID() return nil - case entitlementplan.FieldDisplayName: - m.ResetDisplayName() + case controlobjectivehistory.FieldTags: + m.ResetTags() return nil - case entitlementplan.FieldName: + case controlobjectivehistory.FieldName: m.ResetName() return nil - case entitlementplan.FieldDescription: + case controlobjectivehistory.FieldDescription: m.ResetDescription() return nil - case entitlementplan.FieldVersion: + case controlobjectivehistory.FieldStatus: + m.ResetStatus() + return nil + case controlobjectivehistory.FieldControlObjectiveType: + m.ResetControlObjectiveType() + return nil + case controlobjectivehistory.FieldVersion: m.ResetVersion() return nil - case entitlementplan.FieldMetadata: - m.ResetMetadata() + case controlobjectivehistory.FieldControlNumber: + m.ResetControlNumber() + return nil + case controlobjectivehistory.FieldFamily: + m.ResetFamily() + return nil + case controlobjectivehistory.FieldClass: + m.ResetClass() + return nil + case controlobjectivehistory.FieldSource: + m.ResetSource() + return nil + case controlobjectivehistory.FieldMappedFrameworks: + m.ResetMappedFrameworks() + return nil + case controlobjectivehistory.FieldDetails: + m.ResetDetails() return nil } - return fmt.Errorf("unknown EntitlementPlan field %s", name) + return fmt.Errorf("unknown ControlObjectiveHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *EntitlementPlanMutation) AddedEdges() []string { - edges := make([]string, 0, 5) - if m.owner != nil { - edges = append(edges, entitlementplan.EdgeOwner) - } - if m.entitlements != nil { - edges = append(edges, entitlementplan.EdgeEntitlements) - } - if m.base_features != nil { - edges = append(edges, entitlementplan.EdgeBaseFeatures) - } - if m.events != nil { - edges = append(edges, entitlementplan.EdgeEvents) - } - if m.features != nil { - edges = append(edges, entitlementplan.EdgeFeatures) - } +func (m *ControlObjectiveHistoryMutation) 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 *EntitlementPlanMutation) AddedIDs(name string) []ent.Value { - switch name { - case entitlementplan.EdgeOwner: - if id := m.owner; id != nil { - return []ent.Value{*id} - } - case entitlementplan.EdgeEntitlements: - ids := make([]ent.Value, 0, len(m.entitlements)) - for id := range m.entitlements { - ids = append(ids, id) - } - return ids - case entitlementplan.EdgeBaseFeatures: - ids := make([]ent.Value, 0, len(m.base_features)) - for id := range m.base_features { - ids = append(ids, id) - } - return ids - case entitlementplan.EdgeEvents: - ids := make([]ent.Value, 0, len(m.events)) - for id := range m.events { - ids = append(ids, id) - } - return ids - case entitlementplan.EdgeFeatures: - ids := make([]ent.Value, 0, len(m.features)) - for id := range m.features { - ids = append(ids, id) - } - return ids - } +func (m *ControlObjectiveHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *EntitlementPlanMutation) RemovedEdges() []string { - edges := make([]string, 0, 5) - if m.removedentitlements != nil { - edges = append(edges, entitlementplan.EdgeEntitlements) - } - if m.removedbase_features != nil { - edges = append(edges, entitlementplan.EdgeBaseFeatures) - } - if m.removedevents != nil { - edges = append(edges, entitlementplan.EdgeEvents) - } - if m.removedfeatures != nil { - edges = append(edges, entitlementplan.EdgeFeatures) - } +func (m *ControlObjectiveHistoryMutation) 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 *EntitlementPlanMutation) RemovedIDs(name string) []ent.Value { - switch name { - case entitlementplan.EdgeEntitlements: - ids := make([]ent.Value, 0, len(m.removedentitlements)) - for id := range m.removedentitlements { - ids = append(ids, id) - } - return ids - case entitlementplan.EdgeBaseFeatures: - ids := make([]ent.Value, 0, len(m.removedbase_features)) - for id := range m.removedbase_features { - ids = append(ids, id) - } - return ids - case entitlementplan.EdgeEvents: - ids := make([]ent.Value, 0, len(m.removedevents)) - for id := range m.removedevents { - ids = append(ids, id) - } - return ids - case entitlementplan.EdgeFeatures: - ids := make([]ent.Value, 0, len(m.removedfeatures)) - for id := range m.removedfeatures { - ids = append(ids, id) - } - return ids - } +func (m *ControlObjectiveHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EntitlementPlanMutation) ClearedEdges() []string { - edges := make([]string, 0, 5) - if m.clearedowner { - edges = append(edges, entitlementplan.EdgeOwner) - } - if m.clearedentitlements { - edges = append(edges, entitlementplan.EdgeEntitlements) - } - if m.clearedbase_features { - edges = append(edges, entitlementplan.EdgeBaseFeatures) - } - if m.clearedevents { - edges = append(edges, entitlementplan.EdgeEvents) - } - if m.clearedfeatures { - edges = append(edges, entitlementplan.EdgeFeatures) - } +func (m *ControlObjectiveHistoryMutation) 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 *EntitlementPlanMutation) EdgeCleared(name string) bool { - switch name { - case entitlementplan.EdgeOwner: - return m.clearedowner - case entitlementplan.EdgeEntitlements: - return m.clearedentitlements - case entitlementplan.EdgeBaseFeatures: - return m.clearedbase_features - case entitlementplan.EdgeEvents: - return m.clearedevents - case entitlementplan.EdgeFeatures: - return m.clearedfeatures - } +func (m *ControlObjectiveHistoryMutation) 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 *EntitlementPlanMutation) ClearEdge(name string) error { - switch name { - case entitlementplan.EdgeOwner: - m.ClearOwner() - return nil - } - return fmt.Errorf("unknown EntitlementPlan unique edge %s", name) +func (m *ControlObjectiveHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown ControlObjectiveHistory 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 *EntitlementPlanMutation) ResetEdge(name string) error { - switch name { - case entitlementplan.EdgeOwner: - m.ResetOwner() - return nil - case entitlementplan.EdgeEntitlements: - m.ResetEntitlements() - return nil - case entitlementplan.EdgeBaseFeatures: - m.ResetBaseFeatures() - return nil - case entitlementplan.EdgeEvents: - m.ResetEvents() - return nil - case entitlementplan.EdgeFeatures: - m.ResetFeatures() - return nil - } - return fmt.Errorf("unknown EntitlementPlan edge %s", name) +func (m *ControlObjectiveHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown ControlObjectiveHistory edge %s", name) } -// EntitlementPlanFeatureMutation represents an operation that mutates the EntitlementPlanFeature nodes in the graph. -type EntitlementPlanFeatureMutation struct { +// DocumentDataMutation represents an operation that mutates the DocumentData nodes in the graph. +type DocumentDataMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - deleted_at *time.Time - deleted_by *string - tags *[]string - appendtags []string - metadata *map[string]interface{} - clearedFields map[string]struct{} - owner *string - clearedowner bool - plan *string - clearedplan bool - feature *string - clearedfeature bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - done bool - oldValue func(context.Context) (*EntitlementPlanFeature, error) - predicates []predicate.EntitlementPlanFeature + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + data *customtypes.JSONObject + clearedFields map[string]struct{} + owner *string + clearedowner bool + template *string + clearedtemplate bool + entity map[string]struct{} + removedentity map[string]struct{} + clearedentity bool + files map[string]struct{} + removedfiles map[string]struct{} + clearedfiles bool + done bool + oldValue func(context.Context) (*DocumentData, error) + predicates []predicate.DocumentData } -var _ ent.Mutation = (*EntitlementPlanFeatureMutation)(nil) +var _ ent.Mutation = (*DocumentDataMutation)(nil) -// entitlementplanfeatureOption allows management of the mutation configuration using functional options. -type entitlementplanfeatureOption func(*EntitlementPlanFeatureMutation) +// documentdataOption allows management of the mutation configuration using functional options. +type documentdataOption func(*DocumentDataMutation) -// newEntitlementPlanFeatureMutation creates new mutation for the EntitlementPlanFeature entity. -func newEntitlementPlanFeatureMutation(c config, op Op, opts ...entitlementplanfeatureOption) *EntitlementPlanFeatureMutation { - m := &EntitlementPlanFeatureMutation{ +// newDocumentDataMutation creates new mutation for the DocumentData entity. +func newDocumentDataMutation(c config, op Op, opts ...documentdataOption) *DocumentDataMutation { + m := &DocumentDataMutation{ config: c, op: op, - typ: TypeEntitlementPlanFeature, + typ: TypeDocumentData, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -13259,20 +16368,20 @@ func newEntitlementPlanFeatureMutation(c config, op Op, opts ...entitlementplanf return m } -// withEntitlementPlanFeatureID sets the ID field of the mutation. -func withEntitlementPlanFeatureID(id string) entitlementplanfeatureOption { - return func(m *EntitlementPlanFeatureMutation) { +// withDocumentDataID sets the ID field of the mutation. +func withDocumentDataID(id string) documentdataOption { + return func(m *DocumentDataMutation) { var ( err error once sync.Once - value *EntitlementPlanFeature + value *DocumentData ) - m.oldValue = func(ctx context.Context) (*EntitlementPlanFeature, error) { + m.oldValue = func(ctx context.Context) (*DocumentData, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().EntitlementPlanFeature.Get(ctx, id) + value, err = m.Client().DocumentData.Get(ctx, id) } }) return value, err @@ -13281,10 +16390,10 @@ func withEntitlementPlanFeatureID(id string) entitlementplanfeatureOption { } } -// withEntitlementPlanFeature sets the old EntitlementPlanFeature of the mutation. -func withEntitlementPlanFeature(node *EntitlementPlanFeature) entitlementplanfeatureOption { - return func(m *EntitlementPlanFeatureMutation) { - m.oldValue = func(context.Context) (*EntitlementPlanFeature, error) { +// withDocumentData sets the old DocumentData of the mutation. +func withDocumentData(node *DocumentData) documentdataOption { + return func(m *DocumentDataMutation) { + m.oldValue = func(context.Context) (*DocumentData, error) { return node, nil } m.id = &node.ID @@ -13293,7 +16402,7 @@ func withEntitlementPlanFeature(node *EntitlementPlanFeature) entitlementplanfea // 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 EntitlementPlanFeatureMutation) Client() *Client { +func (m DocumentDataMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -13301,7 +16410,7 @@ func (m EntitlementPlanFeatureMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EntitlementPlanFeatureMutation) Tx() (*Tx, error) { +func (m DocumentDataMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -13311,14 +16420,14 @@ func (m EntitlementPlanFeatureMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of EntitlementPlanFeature entities. -func (m *EntitlementPlanFeatureMutation) SetID(id string) { +// operation is only accepted on creation of DocumentData entities. +func (m *DocumentDataMutation) 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 *EntitlementPlanFeatureMutation) ID() (id string, exists bool) { +func (m *DocumentDataMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -13329,7 +16438,7 @@ func (m *EntitlementPlanFeatureMutation) ID() (id string, exists bool) { // 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 *EntitlementPlanFeatureMutation) IDs(ctx context.Context) ([]string, error) { +func (m *DocumentDataMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -13338,19 +16447,19 @@ func (m *EntitlementPlanFeatureMutation) IDs(ctx context.Context) ([]string, err } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().EntitlementPlanFeature.Query().Where(m.predicates...).IDs(ctx) + return m.Client().DocumentData.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 *EntitlementPlanFeatureMutation) SetCreatedAt(t time.Time) { +func (m *DocumentDataMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EntitlementPlanFeatureMutation) CreatedAt() (r time.Time, exists bool) { +func (m *DocumentDataMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -13358,10 +16467,10 @@ func (m *EntitlementPlanFeatureMutation) CreatedAt() (r time.Time, exists bool) return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the EntitlementPlanFeature entity. -// If the EntitlementPlanFeature object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the DocumentData entity. +// If the DocumentData 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 *EntitlementPlanFeatureMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *DocumentDataMutation) 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") } @@ -13376,30 +16485,30 @@ func (m *EntitlementPlanFeatureMutation) OldCreatedAt(ctx context.Context) (v ti } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EntitlementPlanFeatureMutation) ClearCreatedAt() { +func (m *DocumentDataMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[entitlementplanfeature.FieldCreatedAt] = struct{}{} + m.clearedFields[documentdata.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EntitlementPlanFeatureMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[entitlementplanfeature.FieldCreatedAt] +func (m *DocumentDataMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[documentdata.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EntitlementPlanFeatureMutation) ResetCreatedAt() { +func (m *DocumentDataMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, entitlementplanfeature.FieldCreatedAt) + delete(m.clearedFields, documentdata.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EntitlementPlanFeatureMutation) SetUpdatedAt(t time.Time) { +func (m *DocumentDataMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EntitlementPlanFeatureMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *DocumentDataMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -13407,10 +16516,10 @@ func (m *EntitlementPlanFeatureMutation) UpdatedAt() (r time.Time, exists bool) return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the EntitlementPlanFeature entity. -// If the EntitlementPlanFeature object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the DocumentData entity. +// If the DocumentData 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 *EntitlementPlanFeatureMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *DocumentDataMutation) 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") } @@ -13425,30 +16534,30 @@ func (m *EntitlementPlanFeatureMutation) OldUpdatedAt(ctx context.Context) (v ti } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EntitlementPlanFeatureMutation) ClearUpdatedAt() { +func (m *DocumentDataMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[entitlementplanfeature.FieldUpdatedAt] = struct{}{} + m.clearedFields[documentdata.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EntitlementPlanFeatureMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[entitlementplanfeature.FieldUpdatedAt] +func (m *DocumentDataMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[documentdata.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EntitlementPlanFeatureMutation) ResetUpdatedAt() { +func (m *DocumentDataMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, entitlementplanfeature.FieldUpdatedAt) + delete(m.clearedFields, documentdata.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EntitlementPlanFeatureMutation) SetCreatedBy(s string) { +func (m *DocumentDataMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EntitlementPlanFeatureMutation) CreatedBy() (r string, exists bool) { +func (m *DocumentDataMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -13456,10 +16565,10 @@ func (m *EntitlementPlanFeatureMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the EntitlementPlanFeature entity. -// If the EntitlementPlanFeature object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the DocumentData entity. +// If the DocumentData 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 *EntitlementPlanFeatureMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *DocumentDataMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -13474,30 +16583,30 @@ func (m *EntitlementPlanFeatureMutation) OldCreatedBy(ctx context.Context) (v st } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EntitlementPlanFeatureMutation) ClearCreatedBy() { +func (m *DocumentDataMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[entitlementplanfeature.FieldCreatedBy] = struct{}{} + m.clearedFields[documentdata.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EntitlementPlanFeatureMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[entitlementplanfeature.FieldCreatedBy] +func (m *DocumentDataMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[documentdata.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EntitlementPlanFeatureMutation) ResetCreatedBy() { +func (m *DocumentDataMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, entitlementplanfeature.FieldCreatedBy) + delete(m.clearedFields, documentdata.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EntitlementPlanFeatureMutation) SetUpdatedBy(s string) { +func (m *DocumentDataMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EntitlementPlanFeatureMutation) UpdatedBy() (r string, exists bool) { +func (m *DocumentDataMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -13505,10 +16614,10 @@ func (m *EntitlementPlanFeatureMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the EntitlementPlanFeature entity. -// If the EntitlementPlanFeature object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the DocumentData entity. +// If the DocumentData 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 *EntitlementPlanFeatureMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *DocumentDataMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -13523,30 +16632,30 @@ func (m *EntitlementPlanFeatureMutation) OldUpdatedBy(ctx context.Context) (v st } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EntitlementPlanFeatureMutation) ClearUpdatedBy() { +func (m *DocumentDataMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[entitlementplanfeature.FieldUpdatedBy] = struct{}{} + m.clearedFields[documentdata.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EntitlementPlanFeatureMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[entitlementplanfeature.FieldUpdatedBy] +func (m *DocumentDataMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[documentdata.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EntitlementPlanFeatureMutation) ResetUpdatedBy() { +func (m *DocumentDataMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, entitlementplanfeature.FieldUpdatedBy) + delete(m.clearedFields, documentdata.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *EntitlementPlanFeatureMutation) SetMappingID(s string) { +func (m *DocumentDataMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EntitlementPlanFeatureMutation) MappingID() (r string, exists bool) { +func (m *DocumentDataMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -13554,10 +16663,10 @@ func (m *EntitlementPlanFeatureMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the EntitlementPlanFeature entity. -// If the EntitlementPlanFeature object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the DocumentData entity. +// If the DocumentData 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 *EntitlementPlanFeatureMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *DocumentDataMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -13572,17 +16681,82 @@ func (m *EntitlementPlanFeatureMutation) OldMappingID(ctx context.Context) (v st } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *EntitlementPlanFeatureMutation) ResetMappingID() { +func (m *DocumentDataMutation) ResetMappingID() { m.mapping_id = nil } +// SetTags sets the "tags" field. +func (m *DocumentDataMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *DocumentDataMutation) 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 DocumentData entity. +// If the DocumentData 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 *DocumentDataMutation) 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 *DocumentDataMutation) 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 *DocumentDataMutation) 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 *DocumentDataMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[documentdata.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *DocumentDataMutation) TagsCleared() bool { + _, ok := m.clearedFields[documentdata.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *DocumentDataMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, documentdata.FieldTags) +} + // SetDeletedAt sets the "deleted_at" field. -func (m *EntitlementPlanFeatureMutation) SetDeletedAt(t time.Time) { +func (m *DocumentDataMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *EntitlementPlanFeatureMutation) DeletedAt() (r time.Time, exists bool) { +func (m *DocumentDataMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -13590,10 +16764,10 @@ func (m *EntitlementPlanFeatureMutation) DeletedAt() (r time.Time, exists bool) return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the EntitlementPlanFeature entity. -// If the EntitlementPlanFeature object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the DocumentData entity. +// If the DocumentData 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 *EntitlementPlanFeatureMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *DocumentDataMutation) 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") } @@ -13608,30 +16782,30 @@ func (m *EntitlementPlanFeatureMutation) OldDeletedAt(ctx context.Context) (v ti } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *EntitlementPlanFeatureMutation) ClearDeletedAt() { +func (m *DocumentDataMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[entitlementplanfeature.FieldDeletedAt] = struct{}{} + m.clearedFields[documentdata.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *EntitlementPlanFeatureMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[entitlementplanfeature.FieldDeletedAt] +func (m *DocumentDataMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[documentdata.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *EntitlementPlanFeatureMutation) ResetDeletedAt() { +func (m *DocumentDataMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, entitlementplanfeature.FieldDeletedAt) + delete(m.clearedFields, documentdata.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *EntitlementPlanFeatureMutation) SetDeletedBy(s string) { +func (m *DocumentDataMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *EntitlementPlanFeatureMutation) DeletedBy() (r string, exists bool) { +func (m *DocumentDataMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -13639,10 +16813,10 @@ func (m *EntitlementPlanFeatureMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the EntitlementPlanFeature entity. -// If the EntitlementPlanFeature object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the DocumentData entity. +// If the DocumentData 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 *EntitlementPlanFeatureMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *DocumentDataMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -13657,273 +16831,159 @@ func (m *EntitlementPlanFeatureMutation) OldDeletedBy(ctx context.Context) (v st } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *EntitlementPlanFeatureMutation) ClearDeletedBy() { +func (m *DocumentDataMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[entitlementplanfeature.FieldDeletedBy] = struct{}{} + m.clearedFields[documentdata.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *EntitlementPlanFeatureMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[entitlementplanfeature.FieldDeletedBy] +func (m *DocumentDataMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[documentdata.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *EntitlementPlanFeatureMutation) ResetDeletedBy() { +func (m *DocumentDataMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, entitlementplanfeature.FieldDeletedBy) + delete(m.clearedFields, documentdata.FieldDeletedBy) } -// SetTags sets the "tags" field. -func (m *EntitlementPlanFeatureMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil +// SetOwnerID sets the "owner_id" field. +func (m *DocumentDataMutation) SetOwnerID(s string) { + m.owner = &s } -// Tags returns the value of the "tags" field in the mutation. -func (m *EntitlementPlanFeatureMutation) Tags() (r []string, exists bool) { - v := m.tags +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *DocumentDataMutation) OwnerID() (r string, exists bool) { + v := m.owner if v == nil { return } return *v, true } -// OldTags returns the old "tags" field's value of the EntitlementPlanFeature entity. -// If the EntitlementPlanFeature object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the DocumentData entity. +// If the DocumentData 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 *EntitlementPlanFeatureMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *DocumentDataMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTags is only allowed on UpdateOne operations") + return v, errors.New("OldOwnerID 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") + 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 OldTags: %w", err) - } - return oldValue.Tags, nil -} - -// AppendTags adds s to the "tags" field. -func (m *EntitlementPlanFeatureMutation) 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 *EntitlementPlanFeatureMutation) AppendedTags() ([]string, bool) { - if len(m.appendtags) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) } - return m.appendtags, true + return oldValue.OwnerID, nil } -// ClearTags clears the value of the "tags" field. -func (m *EntitlementPlanFeatureMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[entitlementplanfeature.FieldTags] = struct{}{} +// ClearOwnerID clears the value of the "owner_id" field. +func (m *DocumentDataMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[documentdata.FieldOwnerID] = struct{}{} } -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *EntitlementPlanFeatureMutation) TagsCleared() bool { - _, ok := m.clearedFields[entitlementplanfeature.FieldTags] +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *DocumentDataMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[documentdata.FieldOwnerID] return ok } -// ResetTags resets all changes to the "tags" field. -func (m *EntitlementPlanFeatureMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, entitlementplanfeature.FieldTags) +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *DocumentDataMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, documentdata.FieldOwnerID) } -// SetOwnerID sets the "owner_id" field. -func (m *EntitlementPlanFeatureMutation) SetOwnerID(s string) { - m.owner = &s +// SetTemplateID sets the "template_id" field. +func (m *DocumentDataMutation) SetTemplateID(s string) { + m.template = &s } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *EntitlementPlanFeatureMutation) OwnerID() (r string, exists bool) { - v := m.owner +// TemplateID returns the value of the "template_id" field in the mutation. +func (m *DocumentDataMutation) TemplateID() (r string, exists bool) { + v := m.template if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the EntitlementPlanFeature entity. -// If the EntitlementPlanFeature object wasn't provided to the builder, the object is fetched from the database. +// OldTemplateID returns the old "template_id" field's value of the DocumentData entity. +// If the DocumentData 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 *EntitlementPlanFeatureMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *DocumentDataMutation) OldTemplateID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldTemplateID 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") + return v, errors.New("OldTemplateID 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 v, fmt.Errorf("querying old value for OldTemplateID: %w", err) } - return oldValue.OwnerID, nil + return oldValue.TemplateID, nil } -// ClearOwnerID clears the value of the "owner_id" field. -func (m *EntitlementPlanFeatureMutation) ClearOwnerID() { - m.owner = nil - m.clearedFields[entitlementplanfeature.FieldOwnerID] = struct{}{} -} - -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *EntitlementPlanFeatureMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[entitlementplanfeature.FieldOwnerID] - return ok -} - -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *EntitlementPlanFeatureMutation) ResetOwnerID() { - m.owner = nil - delete(m.clearedFields, entitlementplanfeature.FieldOwnerID) -} - -// SetMetadata sets the "metadata" field. -func (m *EntitlementPlanFeatureMutation) SetMetadata(value map[string]interface{}) { - m.metadata = &value -} - -// Metadata returns the value of the "metadata" field in the mutation. -func (m *EntitlementPlanFeatureMutation) 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 EntitlementPlanFeature entity. -// If the EntitlementPlanFeature 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 *EntitlementPlanFeatureMutation) 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 *EntitlementPlanFeatureMutation) ClearMetadata() { - m.metadata = nil - m.clearedFields[entitlementplanfeature.FieldMetadata] = struct{}{} -} - -// MetadataCleared returns if the "metadata" field was cleared in this mutation. -func (m *EntitlementPlanFeatureMutation) MetadataCleared() bool { - _, ok := m.clearedFields[entitlementplanfeature.FieldMetadata] - return ok -} - -// ResetMetadata resets all changes to the "metadata" field. -func (m *EntitlementPlanFeatureMutation) ResetMetadata() { - m.metadata = nil - delete(m.clearedFields, entitlementplanfeature.FieldMetadata) -} - -// SetPlanID sets the "plan_id" field. -func (m *EntitlementPlanFeatureMutation) SetPlanID(s string) { - m.plan = &s -} - -// PlanID returns the value of the "plan_id" field in the mutation. -func (m *EntitlementPlanFeatureMutation) PlanID() (r string, exists bool) { - v := m.plan - if v == nil { - return - } - return *v, true -} - -// OldPlanID returns the old "plan_id" field's value of the EntitlementPlanFeature entity. -// If the EntitlementPlanFeature 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 *EntitlementPlanFeatureMutation) OldPlanID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldPlanID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldPlanID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldPlanID: %w", err) - } - return oldValue.PlanID, nil -} - -// ResetPlanID resets all changes to the "plan_id" field. -func (m *EntitlementPlanFeatureMutation) ResetPlanID() { - m.plan = nil +// ResetTemplateID resets all changes to the "template_id" field. +func (m *DocumentDataMutation) ResetTemplateID() { + m.template = nil } -// SetFeatureID sets the "feature_id" field. -func (m *EntitlementPlanFeatureMutation) SetFeatureID(s string) { - m.feature = &s +// SetData sets the "data" field. +func (m *DocumentDataMutation) SetData(co customtypes.JSONObject) { + m.data = &co } -// FeatureID returns the value of the "feature_id" field in the mutation. -func (m *EntitlementPlanFeatureMutation) FeatureID() (r string, exists bool) { - v := m.feature +// Data returns the value of the "data" field in the mutation. +func (m *DocumentDataMutation) Data() (r customtypes.JSONObject, exists bool) { + v := m.data if v == nil { return } return *v, true } -// OldFeatureID returns the old "feature_id" field's value of the EntitlementPlanFeature entity. -// If the EntitlementPlanFeature object wasn't provided to the builder, the object is fetched from the database. +// OldData returns the old "data" field's value of the DocumentData entity. +// If the DocumentData 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 *EntitlementPlanFeatureMutation) OldFeatureID(ctx context.Context) (v string, err error) { +func (m *DocumentDataMutation) OldData(ctx context.Context) (v customtypes.JSONObject, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldFeatureID is only allowed on UpdateOne operations") + return v, errors.New("OldData is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldFeatureID requires an ID field in the mutation") + return v, errors.New("OldData requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldFeatureID: %w", err) + return v, fmt.Errorf("querying old value for OldData: %w", err) } - return oldValue.FeatureID, nil + return oldValue.Data, nil } -// ResetFeatureID resets all changes to the "feature_id" field. -func (m *EntitlementPlanFeatureMutation) ResetFeatureID() { - m.feature = nil +// ResetData resets all changes to the "data" field. +func (m *DocumentDataMutation) ResetData() { + m.data = nil } // ClearOwner clears the "owner" edge to the Organization entity. -func (m *EntitlementPlanFeatureMutation) ClearOwner() { +func (m *DocumentDataMutation) ClearOwner() { m.clearedowner = true - m.clearedFields[entitlementplanfeature.FieldOwnerID] = struct{}{} + m.clearedFields[documentdata.FieldOwnerID] = struct{}{} } // OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *EntitlementPlanFeatureMutation) OwnerCleared() bool { +func (m *DocumentDataMutation) 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 *EntitlementPlanFeatureMutation) OwnerIDs() (ids []string) { +func (m *DocumentDataMutation) OwnerIDs() (ids []string) { if id := m.owner; id != nil { ids = append(ids, *id) } @@ -13931,128 +16991,155 @@ func (m *EntitlementPlanFeatureMutation) OwnerIDs() (ids []string) { } // ResetOwner resets all changes to the "owner" edge. -func (m *EntitlementPlanFeatureMutation) ResetOwner() { +func (m *DocumentDataMutation) ResetOwner() { m.owner = nil m.clearedowner = false } -// ClearPlan clears the "plan" edge to the EntitlementPlan entity. -func (m *EntitlementPlanFeatureMutation) ClearPlan() { - m.clearedplan = true - m.clearedFields[entitlementplanfeature.FieldPlanID] = struct{}{} +// ClearTemplate clears the "template" edge to the Template entity. +func (m *DocumentDataMutation) ClearTemplate() { + m.clearedtemplate = true + m.clearedFields[documentdata.FieldTemplateID] = struct{}{} } -// PlanCleared reports if the "plan" edge to the EntitlementPlan entity was cleared. -func (m *EntitlementPlanFeatureMutation) PlanCleared() bool { - return m.clearedplan +// TemplateCleared reports if the "template" edge to the Template entity was cleared. +func (m *DocumentDataMutation) TemplateCleared() bool { + return m.clearedtemplate } -// PlanIDs returns the "plan" edge IDs in the mutation. +// TemplateIDs returns the "template" edge IDs in the mutation. // Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use -// PlanID instead. It exists only for internal usage by the builders. -func (m *EntitlementPlanFeatureMutation) PlanIDs() (ids []string) { - if id := m.plan; id != nil { +// TemplateID instead. It exists only for internal usage by the builders. +func (m *DocumentDataMutation) TemplateIDs() (ids []string) { + if id := m.template; id != nil { ids = append(ids, *id) } return } -// ResetPlan resets all changes to the "plan" edge. -func (m *EntitlementPlanFeatureMutation) ResetPlan() { - m.plan = nil - m.clearedplan = false +// ResetTemplate resets all changes to the "template" edge. +func (m *DocumentDataMutation) ResetTemplate() { + m.template = nil + m.clearedtemplate = false } -// ClearFeature clears the "feature" edge to the Feature entity. -func (m *EntitlementPlanFeatureMutation) ClearFeature() { - m.clearedfeature = true - m.clearedFields[entitlementplanfeature.FieldFeatureID] = struct{}{} +// AddEntityIDs adds the "entity" edge to the Entity entity by ids. +func (m *DocumentDataMutation) AddEntityIDs(ids ...string) { + if m.entity == nil { + m.entity = make(map[string]struct{}) + } + for i := range ids { + m.entity[ids[i]] = struct{}{} + } } -// FeatureCleared reports if the "feature" edge to the Feature entity was cleared. -func (m *EntitlementPlanFeatureMutation) FeatureCleared() bool { - return m.clearedfeature +// ClearEntity clears the "entity" edge to the Entity entity. +func (m *DocumentDataMutation) ClearEntity() { + m.clearedentity = true } -// FeatureIDs returns the "feature" edge IDs in the mutation. -// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use -// FeatureID instead. It exists only for internal usage by the builders. -func (m *EntitlementPlanFeatureMutation) FeatureIDs() (ids []string) { - if id := m.feature; id != nil { - ids = append(ids, *id) +// EntityCleared reports if the "entity" edge to the Entity entity was cleared. +func (m *DocumentDataMutation) EntityCleared() bool { + return m.clearedentity +} + +// RemoveEntityIDs removes the "entity" edge to the Entity entity by IDs. +func (m *DocumentDataMutation) RemoveEntityIDs(ids ...string) { + if m.removedentity == nil { + m.removedentity = make(map[string]struct{}) + } + for i := range ids { + delete(m.entity, ids[i]) + m.removedentity[ids[i]] = struct{}{} + } +} + +// RemovedEntity returns the removed IDs of the "entity" edge to the Entity entity. +func (m *DocumentDataMutation) RemovedEntityIDs() (ids []string) { + for id := range m.removedentity { + ids = append(ids, id) } return } -// ResetFeature resets all changes to the "feature" edge. -func (m *EntitlementPlanFeatureMutation) ResetFeature() { - m.feature = nil - m.clearedfeature = false +// EntityIDs returns the "entity" edge IDs in the mutation. +func (m *DocumentDataMutation) EntityIDs() (ids []string) { + for id := range m.entity { + ids = append(ids, id) + } + return } -// AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *EntitlementPlanFeatureMutation) AddEventIDs(ids ...string) { - if m.events == nil { - m.events = make(map[string]struct{}) +// ResetEntity resets all changes to the "entity" edge. +func (m *DocumentDataMutation) ResetEntity() { + m.entity = nil + m.clearedentity = false + m.removedentity = nil +} + +// AddFileIDs adds the "files" edge to the File entity by ids. +func (m *DocumentDataMutation) AddFileIDs(ids ...string) { + if m.files == nil { + m.files = make(map[string]struct{}) } for i := range ids { - m.events[ids[i]] = struct{}{} + m.files[ids[i]] = struct{}{} } } -// ClearEvents clears the "events" edge to the Event entity. -func (m *EntitlementPlanFeatureMutation) ClearEvents() { - m.clearedevents = true +// ClearFiles clears the "files" edge to the File entity. +func (m *DocumentDataMutation) ClearFiles() { + m.clearedfiles = true } -// EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *EntitlementPlanFeatureMutation) EventsCleared() bool { - return m.clearedevents +// FilesCleared reports if the "files" edge to the File entity was cleared. +func (m *DocumentDataMutation) FilesCleared() bool { + return m.clearedfiles } -// RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *EntitlementPlanFeatureMutation) RemoveEventIDs(ids ...string) { - if m.removedevents == nil { - m.removedevents = make(map[string]struct{}) +// RemoveFileIDs removes the "files" edge to the File entity by IDs. +func (m *DocumentDataMutation) RemoveFileIDs(ids ...string) { + if m.removedfiles == nil { + m.removedfiles = make(map[string]struct{}) } for i := range ids { - delete(m.events, ids[i]) - m.removedevents[ids[i]] = struct{}{} + delete(m.files, ids[i]) + m.removedfiles[ids[i]] = struct{}{} } } -// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *EntitlementPlanFeatureMutation) RemovedEventsIDs() (ids []string) { - for id := range m.removedevents { +// RemovedFiles returns the removed IDs of the "files" edge to the File entity. +func (m *DocumentDataMutation) RemovedFilesIDs() (ids []string) { + for id := range m.removedfiles { ids = append(ids, id) } return } -// EventsIDs returns the "events" edge IDs in the mutation. -func (m *EntitlementPlanFeatureMutation) EventsIDs() (ids []string) { - for id := range m.events { +// FilesIDs returns the "files" edge IDs in the mutation. +func (m *DocumentDataMutation) FilesIDs() (ids []string) { + for id := range m.files { ids = append(ids, id) } return } -// ResetEvents resets all changes to the "events" edge. -func (m *EntitlementPlanFeatureMutation) ResetEvents() { - m.events = nil - m.clearedevents = false - m.removedevents = nil +// ResetFiles resets all changes to the "files" edge. +func (m *DocumentDataMutation) ResetFiles() { + m.files = nil + m.clearedfiles = false + m.removedfiles = nil } -// Where appends a list predicates to the EntitlementPlanFeatureMutation builder. -func (m *EntitlementPlanFeatureMutation) Where(ps ...predicate.EntitlementPlanFeature) { +// Where appends a list predicates to the DocumentDataMutation builder. +func (m *DocumentDataMutation) Where(ps ...predicate.DocumentData) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the EntitlementPlanFeatureMutation builder. Using this method, +// WhereP appends storage-level predicates to the DocumentDataMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EntitlementPlanFeatureMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.EntitlementPlanFeature, len(ps)) +func (m *DocumentDataMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.DocumentData, len(ps)) for i := range ps { p[i] = ps[i] } @@ -14060,60 +17147,57 @@ func (m *EntitlementPlanFeatureMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *EntitlementPlanFeatureMutation) Op() Op { +func (m *DocumentDataMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *EntitlementPlanFeatureMutation) SetOp(op Op) { +func (m *DocumentDataMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (EntitlementPlanFeature). -func (m *EntitlementPlanFeatureMutation) Type() string { +// Type returns the node type of this mutation (DocumentData). +func (m *DocumentDataMutation) 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 *EntitlementPlanFeatureMutation) Fields() []string { - fields := make([]string, 0, 12) +func (m *DocumentDataMutation) Fields() []string { + fields := make([]string, 0, 11) if m.created_at != nil { - fields = append(fields, entitlementplanfeature.FieldCreatedAt) + fields = append(fields, documentdata.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, entitlementplanfeature.FieldUpdatedAt) + fields = append(fields, documentdata.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, entitlementplanfeature.FieldCreatedBy) + fields = append(fields, documentdata.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, entitlementplanfeature.FieldUpdatedBy) + fields = append(fields, documentdata.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, entitlementplanfeature.FieldMappingID) + fields = append(fields, documentdata.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, documentdata.FieldTags) } if m.deleted_at != nil { - fields = append(fields, entitlementplanfeature.FieldDeletedAt) + fields = append(fields, documentdata.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, entitlementplanfeature.FieldDeletedBy) - } - if m.tags != nil { - fields = append(fields, entitlementplanfeature.FieldTags) + fields = append(fields, documentdata.FieldDeletedBy) } if m.owner != nil { - fields = append(fields, entitlementplanfeature.FieldOwnerID) - } - if m.metadata != nil { - fields = append(fields, entitlementplanfeature.FieldMetadata) + fields = append(fields, documentdata.FieldOwnerID) } - if m.plan != nil { - fields = append(fields, entitlementplanfeature.FieldPlanID) + if m.template != nil { + fields = append(fields, documentdata.FieldTemplateID) } - if m.feature != nil { - fields = append(fields, entitlementplanfeature.FieldFeatureID) + if m.data != nil { + fields = append(fields, documentdata.FieldData) } return fields } @@ -14121,32 +17205,30 @@ func (m *EntitlementPlanFeatureMutation) Fields() []string { // 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 *EntitlementPlanFeatureMutation) Field(name string) (ent.Value, bool) { +func (m *DocumentDataMutation) Field(name string) (ent.Value, bool) { switch name { - case entitlementplanfeature.FieldCreatedAt: + case documentdata.FieldCreatedAt: return m.CreatedAt() - case entitlementplanfeature.FieldUpdatedAt: + case documentdata.FieldUpdatedAt: return m.UpdatedAt() - case entitlementplanfeature.FieldCreatedBy: + case documentdata.FieldCreatedBy: return m.CreatedBy() - case entitlementplanfeature.FieldUpdatedBy: + case documentdata.FieldUpdatedBy: return m.UpdatedBy() - case entitlementplanfeature.FieldMappingID: + case documentdata.FieldMappingID: return m.MappingID() - case entitlementplanfeature.FieldDeletedAt: + case documentdata.FieldTags: + return m.Tags() + case documentdata.FieldDeletedAt: return m.DeletedAt() - case entitlementplanfeature.FieldDeletedBy: + case documentdata.FieldDeletedBy: return m.DeletedBy() - case entitlementplanfeature.FieldTags: - return m.Tags() - case entitlementplanfeature.FieldOwnerID: + case documentdata.FieldOwnerID: return m.OwnerID() - case entitlementplanfeature.FieldMetadata: - return m.Metadata() - case entitlementplanfeature.FieldPlanID: - return m.PlanID() - case entitlementplanfeature.FieldFeatureID: - return m.FeatureID() + case documentdata.FieldTemplateID: + return m.TemplateID() + case documentdata.FieldData: + return m.Data() } return nil, false } @@ -14154,308 +17236,292 @@ func (m *EntitlementPlanFeatureMutation) Field(name string) (ent.Value, bool) { // 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 *EntitlementPlanFeatureMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *DocumentDataMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case entitlementplanfeature.FieldCreatedAt: + case documentdata.FieldCreatedAt: return m.OldCreatedAt(ctx) - case entitlementplanfeature.FieldUpdatedAt: + case documentdata.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case entitlementplanfeature.FieldCreatedBy: + case documentdata.FieldCreatedBy: return m.OldCreatedBy(ctx) - case entitlementplanfeature.FieldUpdatedBy: + case documentdata.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case entitlementplanfeature.FieldMappingID: + case documentdata.FieldMappingID: return m.OldMappingID(ctx) - case entitlementplanfeature.FieldDeletedAt: + case documentdata.FieldTags: + return m.OldTags(ctx) + case documentdata.FieldDeletedAt: return m.OldDeletedAt(ctx) - case entitlementplanfeature.FieldDeletedBy: + case documentdata.FieldDeletedBy: return m.OldDeletedBy(ctx) - case entitlementplanfeature.FieldTags: - return m.OldTags(ctx) - case entitlementplanfeature.FieldOwnerID: + case documentdata.FieldOwnerID: return m.OldOwnerID(ctx) - case entitlementplanfeature.FieldMetadata: - return m.OldMetadata(ctx) - case entitlementplanfeature.FieldPlanID: - return m.OldPlanID(ctx) - case entitlementplanfeature.FieldFeatureID: - return m.OldFeatureID(ctx) + case documentdata.FieldTemplateID: + return m.OldTemplateID(ctx) + case documentdata.FieldData: + return m.OldData(ctx) } - return nil, fmt.Errorf("unknown EntitlementPlanFeature field %s", name) + return nil, fmt.Errorf("unknown DocumentData 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 *EntitlementPlanFeatureMutation) SetField(name string, value ent.Value) error { +func (m *DocumentDataMutation) SetField(name string, value ent.Value) error { switch name { - case entitlementplanfeature.FieldCreatedAt: + case documentdata.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 entitlementplanfeature.FieldUpdatedAt: + case documentdata.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 entitlementplanfeature.FieldCreatedBy: + case documentdata.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case entitlementplanfeature.FieldUpdatedBy: + case documentdata.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case entitlementplanfeature.FieldMappingID: + case documentdata.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case entitlementplanfeature.FieldDeletedAt: - v, ok := value.(time.Time) + case documentdata.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetTags(v) return nil - case entitlementplanfeature.FieldDeletedBy: - v, ok := value.(string) + case documentdata.FieldDeletedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetDeletedAt(v) return nil - case entitlementplanfeature.FieldTags: - v, ok := value.([]string) + case documentdata.FieldDeletedBy: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTags(v) + m.SetDeletedBy(v) return nil - case entitlementplanfeature.FieldOwnerID: + case documentdata.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetOwnerID(v) return nil - case entitlementplanfeature.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 - case entitlementplanfeature.FieldPlanID: + case documentdata.FieldTemplateID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetPlanID(v) + m.SetTemplateID(v) return nil - case entitlementplanfeature.FieldFeatureID: - v, ok := value.(string) + case documentdata.FieldData: + v, ok := value.(customtypes.JSONObject) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetFeatureID(v) + m.SetData(v) return nil } - return fmt.Errorf("unknown EntitlementPlanFeature field %s", name) + return fmt.Errorf("unknown DocumentData field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *EntitlementPlanFeatureMutation) AddedFields() []string { +func (m *DocumentDataMutation) 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 *EntitlementPlanFeatureMutation) AddedField(name string) (ent.Value, bool) { +func (m *DocumentDataMutation) 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 *EntitlementPlanFeatureMutation) AddField(name string, value ent.Value) error { +func (m *DocumentDataMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown EntitlementPlanFeature numeric field %s", name) + return fmt.Errorf("unknown DocumentData numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *EntitlementPlanFeatureMutation) ClearedFields() []string { +func (m *DocumentDataMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(entitlementplanfeature.FieldCreatedAt) { - fields = append(fields, entitlementplanfeature.FieldCreatedAt) - } - if m.FieldCleared(entitlementplanfeature.FieldUpdatedAt) { - fields = append(fields, entitlementplanfeature.FieldUpdatedAt) + if m.FieldCleared(documentdata.FieldCreatedAt) { + fields = append(fields, documentdata.FieldCreatedAt) } - if m.FieldCleared(entitlementplanfeature.FieldCreatedBy) { - fields = append(fields, entitlementplanfeature.FieldCreatedBy) + if m.FieldCleared(documentdata.FieldUpdatedAt) { + fields = append(fields, documentdata.FieldUpdatedAt) } - if m.FieldCleared(entitlementplanfeature.FieldUpdatedBy) { - fields = append(fields, entitlementplanfeature.FieldUpdatedBy) + if m.FieldCleared(documentdata.FieldCreatedBy) { + fields = append(fields, documentdata.FieldCreatedBy) } - if m.FieldCleared(entitlementplanfeature.FieldDeletedAt) { - fields = append(fields, entitlementplanfeature.FieldDeletedAt) + if m.FieldCleared(documentdata.FieldUpdatedBy) { + fields = append(fields, documentdata.FieldUpdatedBy) } - if m.FieldCleared(entitlementplanfeature.FieldDeletedBy) { - fields = append(fields, entitlementplanfeature.FieldDeletedBy) + if m.FieldCleared(documentdata.FieldTags) { + fields = append(fields, documentdata.FieldTags) } - if m.FieldCleared(entitlementplanfeature.FieldTags) { - fields = append(fields, entitlementplanfeature.FieldTags) + if m.FieldCleared(documentdata.FieldDeletedAt) { + fields = append(fields, documentdata.FieldDeletedAt) } - if m.FieldCleared(entitlementplanfeature.FieldOwnerID) { - fields = append(fields, entitlementplanfeature.FieldOwnerID) + if m.FieldCleared(documentdata.FieldDeletedBy) { + fields = append(fields, documentdata.FieldDeletedBy) } - if m.FieldCleared(entitlementplanfeature.FieldMetadata) { - fields = append(fields, entitlementplanfeature.FieldMetadata) + if m.FieldCleared(documentdata.FieldOwnerID) { + fields = append(fields, documentdata.FieldOwnerID) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *EntitlementPlanFeatureMutation) FieldCleared(name string) bool { +func (m *DocumentDataMutation) 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 *EntitlementPlanFeatureMutation) ClearField(name string) error { +func (m *DocumentDataMutation) ClearField(name string) error { switch name { - case entitlementplanfeature.FieldCreatedAt: + case documentdata.FieldCreatedAt: m.ClearCreatedAt() return nil - case entitlementplanfeature.FieldUpdatedAt: + case documentdata.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case entitlementplanfeature.FieldCreatedBy: + case documentdata.FieldCreatedBy: m.ClearCreatedBy() return nil - case entitlementplanfeature.FieldUpdatedBy: + case documentdata.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case entitlementplanfeature.FieldDeletedAt: + case documentdata.FieldTags: + m.ClearTags() + return nil + case documentdata.FieldDeletedAt: m.ClearDeletedAt() return nil - case entitlementplanfeature.FieldDeletedBy: + case documentdata.FieldDeletedBy: m.ClearDeletedBy() return nil - case entitlementplanfeature.FieldTags: - m.ClearTags() - return nil - case entitlementplanfeature.FieldOwnerID: + case documentdata.FieldOwnerID: m.ClearOwnerID() return nil - case entitlementplanfeature.FieldMetadata: - m.ClearMetadata() - return nil } - return fmt.Errorf("unknown EntitlementPlanFeature nullable field %s", name) + return fmt.Errorf("unknown DocumentData 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 *EntitlementPlanFeatureMutation) ResetField(name string) error { +func (m *DocumentDataMutation) ResetField(name string) error { switch name { - case entitlementplanfeature.FieldCreatedAt: + case documentdata.FieldCreatedAt: m.ResetCreatedAt() return nil - case entitlementplanfeature.FieldUpdatedAt: + case documentdata.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case entitlementplanfeature.FieldCreatedBy: + case documentdata.FieldCreatedBy: m.ResetCreatedBy() return nil - case entitlementplanfeature.FieldUpdatedBy: + case documentdata.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case entitlementplanfeature.FieldMappingID: + case documentdata.FieldMappingID: m.ResetMappingID() return nil - case entitlementplanfeature.FieldDeletedAt: + case documentdata.FieldTags: + m.ResetTags() + return nil + case documentdata.FieldDeletedAt: m.ResetDeletedAt() return nil - case entitlementplanfeature.FieldDeletedBy: + case documentdata.FieldDeletedBy: m.ResetDeletedBy() return nil - case entitlementplanfeature.FieldTags: - m.ResetTags() - return nil - case entitlementplanfeature.FieldOwnerID: + case documentdata.FieldOwnerID: m.ResetOwnerID() return nil - case entitlementplanfeature.FieldMetadata: - m.ResetMetadata() - return nil - case entitlementplanfeature.FieldPlanID: - m.ResetPlanID() + case documentdata.FieldTemplateID: + m.ResetTemplateID() return nil - case entitlementplanfeature.FieldFeatureID: - m.ResetFeatureID() + case documentdata.FieldData: + m.ResetData() return nil } - return fmt.Errorf("unknown EntitlementPlanFeature field %s", name) + return fmt.Errorf("unknown DocumentData field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *EntitlementPlanFeatureMutation) AddedEdges() []string { +func (m *DocumentDataMutation) AddedEdges() []string { edges := make([]string, 0, 4) if m.owner != nil { - edges = append(edges, entitlementplanfeature.EdgeOwner) + edges = append(edges, documentdata.EdgeOwner) } - if m.plan != nil { - edges = append(edges, entitlementplanfeature.EdgePlan) + if m.template != nil { + edges = append(edges, documentdata.EdgeTemplate) } - if m.feature != nil { - edges = append(edges, entitlementplanfeature.EdgeFeature) + if m.entity != nil { + edges = append(edges, documentdata.EdgeEntity) } - if m.events != nil { - edges = append(edges, entitlementplanfeature.EdgeEvents) + if m.files != nil { + edges = append(edges, documentdata.EdgeFiles) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *EntitlementPlanFeatureMutation) AddedIDs(name string) []ent.Value { +func (m *DocumentDataMutation) AddedIDs(name string) []ent.Value { switch name { - case entitlementplanfeature.EdgeOwner: + case documentdata.EdgeOwner: if id := m.owner; id != nil { return []ent.Value{*id} } - case entitlementplanfeature.EdgePlan: - if id := m.plan; id != nil { + case documentdata.EdgeTemplate: + if id := m.template; id != nil { return []ent.Value{*id} } - case entitlementplanfeature.EdgeFeature: - if id := m.feature; id != nil { - return []ent.Value{*id} + case documentdata.EdgeEntity: + ids := make([]ent.Value, 0, len(m.entity)) + for id := range m.entity { + ids = append(ids, id) } - case entitlementplanfeature.EdgeEvents: - ids := make([]ent.Value, 0, len(m.events)) - for id := range m.events { + return ids + case documentdata.EdgeFiles: + ids := make([]ent.Value, 0, len(m.files)) + for id := range m.files { ids = append(ids, id) } return ids @@ -14464,21 +17530,30 @@ func (m *EntitlementPlanFeatureMutation) AddedIDs(name string) []ent.Value { } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *EntitlementPlanFeatureMutation) RemovedEdges() []string { +func (m *DocumentDataMutation) RemovedEdges() []string { edges := make([]string, 0, 4) - if m.removedevents != nil { - edges = append(edges, entitlementplanfeature.EdgeEvents) + if m.removedentity != nil { + edges = append(edges, documentdata.EdgeEntity) + } + if m.removedfiles != nil { + edges = append(edges, documentdata.EdgeFiles) } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *EntitlementPlanFeatureMutation) RemovedIDs(name string) []ent.Value { +func (m *DocumentDataMutation) RemovedIDs(name string) []ent.Value { switch name { - case entitlementplanfeature.EdgeEvents: - ids := make([]ent.Value, 0, len(m.removedevents)) - for id := range m.removedevents { + case documentdata.EdgeEntity: + ids := make([]ent.Value, 0, len(m.removedentity)) + for id := range m.removedentity { + ids = append(ids, id) + } + return ids + case documentdata.EdgeFiles: + ids := make([]ent.Value, 0, len(m.removedfiles)) + for id := range m.removedfiles { ids = append(ids, id) } return ids @@ -14487,78 +17562,75 @@ func (m *EntitlementPlanFeatureMutation) RemovedIDs(name string) []ent.Value { } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EntitlementPlanFeatureMutation) ClearedEdges() []string { +func (m *DocumentDataMutation) ClearedEdges() []string { edges := make([]string, 0, 4) if m.clearedowner { - edges = append(edges, entitlementplanfeature.EdgeOwner) + edges = append(edges, documentdata.EdgeOwner) } - if m.clearedplan { - edges = append(edges, entitlementplanfeature.EdgePlan) + if m.clearedtemplate { + edges = append(edges, documentdata.EdgeTemplate) } - if m.clearedfeature { - edges = append(edges, entitlementplanfeature.EdgeFeature) + if m.clearedentity { + edges = append(edges, documentdata.EdgeEntity) } - if m.clearedevents { - edges = append(edges, entitlementplanfeature.EdgeEvents) + if m.clearedfiles { + edges = append(edges, documentdata.EdgeFiles) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *EntitlementPlanFeatureMutation) EdgeCleared(name string) bool { +func (m *DocumentDataMutation) EdgeCleared(name string) bool { switch name { - case entitlementplanfeature.EdgeOwner: + case documentdata.EdgeOwner: return m.clearedowner - case entitlementplanfeature.EdgePlan: - return m.clearedplan - case entitlementplanfeature.EdgeFeature: - return m.clearedfeature - case entitlementplanfeature.EdgeEvents: - return m.clearedevents + case documentdata.EdgeTemplate: + return m.clearedtemplate + case documentdata.EdgeEntity: + return m.clearedentity + case documentdata.EdgeFiles: + return m.clearedfiles } 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 *EntitlementPlanFeatureMutation) ClearEdge(name string) error { +func (m *DocumentDataMutation) ClearEdge(name string) error { switch name { - case entitlementplanfeature.EdgeOwner: + case documentdata.EdgeOwner: m.ClearOwner() return nil - case entitlementplanfeature.EdgePlan: - m.ClearPlan() - return nil - case entitlementplanfeature.EdgeFeature: - m.ClearFeature() + case documentdata.EdgeTemplate: + m.ClearTemplate() return nil } - return fmt.Errorf("unknown EntitlementPlanFeature unique edge %s", name) + return fmt.Errorf("unknown DocumentData 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 *EntitlementPlanFeatureMutation) ResetEdge(name string) error { +func (m *DocumentDataMutation) ResetEdge(name string) error { switch name { - case entitlementplanfeature.EdgeOwner: + case documentdata.EdgeOwner: m.ResetOwner() return nil - case entitlementplanfeature.EdgePlan: - m.ResetPlan() + case documentdata.EdgeTemplate: + m.ResetTemplate() return nil - case entitlementplanfeature.EdgeFeature: - m.ResetFeature() + case documentdata.EdgeEntity: + m.ResetEntity() return nil - case entitlementplanfeature.EdgeEvents: - m.ResetEvents() + case documentdata.EdgeFiles: + m.ResetFiles() return nil } - return fmt.Errorf("unknown EntitlementPlanFeature edge %s", name) + return fmt.Errorf("unknown DocumentData edge %s", name) } -// EntitlementPlanFeatureHistoryMutation represents an operation that mutates the EntitlementPlanFeatureHistory nodes in the graph. -type EntitlementPlanFeatureHistoryMutation struct { +// DocumentDataHistoryMutation represents an operation that mutates the DocumentDataHistory nodes in the graph. +type DocumentDataHistoryMutation struct { config op Op typ string @@ -14571,31 +17643,30 @@ type EntitlementPlanFeatureHistoryMutation struct { created_by *string updated_by *string mapping_id *string - deleted_at *time.Time - deleted_by *string tags *[]string appendtags []string + deleted_at *time.Time + deleted_by *string owner_id *string - metadata *map[string]interface{} - plan_id *string - feature_id *string + template_id *string + data *customtypes.JSONObject clearedFields map[string]struct{} done bool - oldValue func(context.Context) (*EntitlementPlanFeatureHistory, error) - predicates []predicate.EntitlementPlanFeatureHistory + oldValue func(context.Context) (*DocumentDataHistory, error) + predicates []predicate.DocumentDataHistory } -var _ ent.Mutation = (*EntitlementPlanFeatureHistoryMutation)(nil) +var _ ent.Mutation = (*DocumentDataHistoryMutation)(nil) -// entitlementplanfeaturehistoryOption allows management of the mutation configuration using functional options. -type entitlementplanfeaturehistoryOption func(*EntitlementPlanFeatureHistoryMutation) +// documentdatahistoryOption allows management of the mutation configuration using functional options. +type documentdatahistoryOption func(*DocumentDataHistoryMutation) -// newEntitlementPlanFeatureHistoryMutation creates new mutation for the EntitlementPlanFeatureHistory entity. -func newEntitlementPlanFeatureHistoryMutation(c config, op Op, opts ...entitlementplanfeaturehistoryOption) *EntitlementPlanFeatureHistoryMutation { - m := &EntitlementPlanFeatureHistoryMutation{ +// newDocumentDataHistoryMutation creates new mutation for the DocumentDataHistory entity. +func newDocumentDataHistoryMutation(c config, op Op, opts ...documentdatahistoryOption) *DocumentDataHistoryMutation { + m := &DocumentDataHistoryMutation{ config: c, op: op, - typ: TypeEntitlementPlanFeatureHistory, + typ: TypeDocumentDataHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -14604,20 +17675,20 @@ func newEntitlementPlanFeatureHistoryMutation(c config, op Op, opts ...entitleme return m } -// withEntitlementPlanFeatureHistoryID sets the ID field of the mutation. -func withEntitlementPlanFeatureHistoryID(id string) entitlementplanfeaturehistoryOption { - return func(m *EntitlementPlanFeatureHistoryMutation) { +// withDocumentDataHistoryID sets the ID field of the mutation. +func withDocumentDataHistoryID(id string) documentdatahistoryOption { + return func(m *DocumentDataHistoryMutation) { var ( err error once sync.Once - value *EntitlementPlanFeatureHistory + value *DocumentDataHistory ) - m.oldValue = func(ctx context.Context) (*EntitlementPlanFeatureHistory, error) { + m.oldValue = func(ctx context.Context) (*DocumentDataHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().EntitlementPlanFeatureHistory.Get(ctx, id) + value, err = m.Client().DocumentDataHistory.Get(ctx, id) } }) return value, err @@ -14626,10 +17697,10 @@ func withEntitlementPlanFeatureHistoryID(id string) entitlementplanfeaturehistor } } -// withEntitlementPlanFeatureHistory sets the old EntitlementPlanFeatureHistory of the mutation. -func withEntitlementPlanFeatureHistory(node *EntitlementPlanFeatureHistory) entitlementplanfeaturehistoryOption { - return func(m *EntitlementPlanFeatureHistoryMutation) { - m.oldValue = func(context.Context) (*EntitlementPlanFeatureHistory, error) { +// withDocumentDataHistory sets the old DocumentDataHistory of the mutation. +func withDocumentDataHistory(node *DocumentDataHistory) documentdatahistoryOption { + return func(m *DocumentDataHistoryMutation) { + m.oldValue = func(context.Context) (*DocumentDataHistory, error) { return node, nil } m.id = &node.ID @@ -14638,7 +17709,7 @@ func withEntitlementPlanFeatureHistory(node *EntitlementPlanFeatureHistory) enti // 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 EntitlementPlanFeatureHistoryMutation) Client() *Client { +func (m DocumentDataHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -14646,7 +17717,7 @@ func (m EntitlementPlanFeatureHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EntitlementPlanFeatureHistoryMutation) Tx() (*Tx, error) { +func (m DocumentDataHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -14656,14 +17727,14 @@ func (m EntitlementPlanFeatureHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of EntitlementPlanFeatureHistory entities. -func (m *EntitlementPlanFeatureHistoryMutation) SetID(id string) { +// operation is only accepted on creation of DocumentDataHistory entities. +func (m *DocumentDataHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) ID() (id string, exists bool) { +func (m *DocumentDataHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -14674,7 +17745,7 @@ func (m *EntitlementPlanFeatureHistoryMutation) ID() (id string, exists bool) { // 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 *EntitlementPlanFeatureHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *DocumentDataHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -14683,19 +17754,19 @@ func (m *EntitlementPlanFeatureHistoryMutation) IDs(ctx context.Context) ([]stri } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().EntitlementPlanFeatureHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().DocumentDataHistory.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 *EntitlementPlanFeatureHistoryMutation) SetHistoryTime(t time.Time) { +func (m *DocumentDataHistoryMutation) SetHistoryTime(t time.Time) { m.history_time = &t } // HistoryTime returns the value of the "history_time" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) HistoryTime() (r time.Time, exists bool) { +func (m *DocumentDataHistoryMutation) HistoryTime() (r time.Time, exists bool) { v := m.history_time if v == nil { return @@ -14703,10 +17774,10 @@ func (m *EntitlementPlanFeatureHistoryMutation) HistoryTime() (r time.Time, exis return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *DocumentDataHistoryMutation) 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") } @@ -14721,17 +17792,17 @@ func (m *EntitlementPlanFeatureHistoryMutation) OldHistoryTime(ctx context.Conte } // ResetHistoryTime resets all changes to the "history_time" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetHistoryTime() { +func (m *DocumentDataHistoryMutation) ResetHistoryTime() { m.history_time = nil } // SetRef sets the "ref" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetRef(s string) { +func (m *DocumentDataHistoryMutation) SetRef(s string) { m.ref = &s } // Ref returns the value of the "ref" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) Ref() (r string, exists bool) { +func (m *DocumentDataHistoryMutation) Ref() (r string, exists bool) { v := m.ref if v == nil { return @@ -14739,10 +17810,10 @@ func (m *EntitlementPlanFeatureHistoryMutation) Ref() (r string, exists bool) { return *v, true } -// OldRef returns the old "ref" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *DocumentDataHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldRef is only allowed on UpdateOne operations") } @@ -14757,30 +17828,30 @@ func (m *EntitlementPlanFeatureHistoryMutation) OldRef(ctx context.Context) (v s } // ClearRef clears the value of the "ref" field. -func (m *EntitlementPlanFeatureHistoryMutation) ClearRef() { +func (m *DocumentDataHistoryMutation) ClearRef() { m.ref = nil - m.clearedFields[entitlementplanfeaturehistory.FieldRef] = struct{}{} + m.clearedFields[documentdatahistory.FieldRef] = struct{}{} } // RefCleared returns if the "ref" field was cleared in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldRef] +func (m *DocumentDataHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[documentdatahistory.FieldRef] return ok } // ResetRef resets all changes to the "ref" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetRef() { +func (m *DocumentDataHistoryMutation) ResetRef() { m.ref = nil - delete(m.clearedFields, entitlementplanfeaturehistory.FieldRef) + delete(m.clearedFields, documentdatahistory.FieldRef) } // SetOperation sets the "operation" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetOperation(ht history.OpType) { +func (m *DocumentDataHistoryMutation) SetOperation(ht history.OpType) { m.operation = &ht } // Operation returns the value of the "operation" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) Operation() (r history.OpType, exists bool) { +func (m *DocumentDataHistoryMutation) Operation() (r history.OpType, exists bool) { v := m.operation if v == nil { return @@ -14788,10 +17859,10 @@ func (m *EntitlementPlanFeatureHistoryMutation) Operation() (r history.OpType, e return *v, true } -// OldOperation returns the old "operation" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *DocumentDataHistoryMutation) 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") } @@ -14806,17 +17877,17 @@ func (m *EntitlementPlanFeatureHistoryMutation) OldOperation(ctx context.Context } // ResetOperation resets all changes to the "operation" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetOperation() { +func (m *DocumentDataHistoryMutation) ResetOperation() { m.operation = nil } // SetCreatedAt sets the "created_at" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetCreatedAt(t time.Time) { +func (m *DocumentDataHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *DocumentDataHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -14824,10 +17895,10 @@ func (m *EntitlementPlanFeatureHistoryMutation) CreatedAt() (r time.Time, exists return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *DocumentDataHistoryMutation) 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") } @@ -14842,30 +17913,30 @@ func (m *EntitlementPlanFeatureHistoryMutation) OldCreatedAt(ctx context.Context } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EntitlementPlanFeatureHistoryMutation) ClearCreatedAt() { +func (m *DocumentDataHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[entitlementplanfeaturehistory.FieldCreatedAt] = struct{}{} + m.clearedFields[documentdatahistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldCreatedAt] +func (m *DocumentDataHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[documentdatahistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetCreatedAt() { +func (m *DocumentDataHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, entitlementplanfeaturehistory.FieldCreatedAt) + delete(m.clearedFields, documentdatahistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *DocumentDataHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *DocumentDataHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -14873,10 +17944,10 @@ func (m *EntitlementPlanFeatureHistoryMutation) UpdatedAt() (r time.Time, exists return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *DocumentDataHistoryMutation) 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") } @@ -14891,30 +17962,30 @@ func (m *EntitlementPlanFeatureHistoryMutation) OldUpdatedAt(ctx context.Context } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EntitlementPlanFeatureHistoryMutation) ClearUpdatedAt() { +func (m *DocumentDataHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[entitlementplanfeaturehistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[documentdatahistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldUpdatedAt] +func (m *DocumentDataHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[documentdatahistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetUpdatedAt() { +func (m *DocumentDataHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, entitlementplanfeaturehistory.FieldUpdatedAt) + delete(m.clearedFields, documentdatahistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetCreatedBy(s string) { +func (m *DocumentDataHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *DocumentDataHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -14922,10 +17993,10 @@ func (m *EntitlementPlanFeatureHistoryMutation) CreatedBy() (r string, exists bo return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *DocumentDataHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -14940,30 +18011,30 @@ func (m *EntitlementPlanFeatureHistoryMutation) OldCreatedBy(ctx context.Context } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EntitlementPlanFeatureHistoryMutation) ClearCreatedBy() { +func (m *DocumentDataHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[entitlementplanfeaturehistory.FieldCreatedBy] = struct{}{} + m.clearedFields[documentdatahistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldCreatedBy] +func (m *DocumentDataHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[documentdatahistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetCreatedBy() { +func (m *DocumentDataHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, entitlementplanfeaturehistory.FieldCreatedBy) + delete(m.clearedFields, documentdatahistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetUpdatedBy(s string) { +func (m *DocumentDataHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *DocumentDataHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -14971,10 +18042,10 @@ func (m *EntitlementPlanFeatureHistoryMutation) UpdatedBy() (r string, exists bo return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *DocumentDataHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -14989,30 +18060,30 @@ func (m *EntitlementPlanFeatureHistoryMutation) OldUpdatedBy(ctx context.Context } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EntitlementPlanFeatureHistoryMutation) ClearUpdatedBy() { +func (m *DocumentDataHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[entitlementplanfeaturehistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[documentdatahistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldUpdatedBy] +func (m *DocumentDataHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[documentdatahistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetUpdatedBy() { +func (m *DocumentDataHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, entitlementplanfeaturehistory.FieldUpdatedBy) + delete(m.clearedFields, documentdatahistory.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetMappingID(s string) { +func (m *DocumentDataHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) MappingID() (r string, exists bool) { +func (m *DocumentDataHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -15020,10 +18091,10 @@ func (m *EntitlementPlanFeatureHistoryMutation) MappingID() (r string, exists bo return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *DocumentDataHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -15038,17 +18109,82 @@ func (m *EntitlementPlanFeatureHistoryMutation) OldMappingID(ctx context.Context } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetMappingID() { +func (m *DocumentDataHistoryMutation) ResetMappingID() { m.mapping_id = nil } +// SetTags sets the "tags" field. +func (m *DocumentDataHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *DocumentDataHistoryMutation) 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 DocumentDataHistory entity. +// If the DocumentDataHistory 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 *DocumentDataHistoryMutation) 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 *DocumentDataHistoryMutation) 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 *DocumentDataHistoryMutation) 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 *DocumentDataHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[documentdatahistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *DocumentDataHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[documentdatahistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *DocumentDataHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, documentdatahistory.FieldTags) +} + // SetDeletedAt sets the "deleted_at" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetDeletedAt(t time.Time) { +func (m *DocumentDataHistoryMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) DeletedAt() (r time.Time, exists bool) { +func (m *DocumentDataHistoryMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -15056,10 +18192,10 @@ func (m *EntitlementPlanFeatureHistoryMutation) DeletedAt() (r time.Time, exists return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *DocumentDataHistoryMutation) 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") } @@ -15074,30 +18210,30 @@ func (m *EntitlementPlanFeatureHistoryMutation) OldDeletedAt(ctx context.Context } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *EntitlementPlanFeatureHistoryMutation) ClearDeletedAt() { +func (m *DocumentDataHistoryMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[entitlementplanfeaturehistory.FieldDeletedAt] = struct{}{} + m.clearedFields[documentdatahistory.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldDeletedAt] +func (m *DocumentDataHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[documentdatahistory.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetDeletedAt() { +func (m *DocumentDataHistoryMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, entitlementplanfeaturehistory.FieldDeletedAt) + delete(m.clearedFields, documentdatahistory.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetDeletedBy(s string) { +func (m *DocumentDataHistoryMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) DeletedBy() (r string, exists bool) { +func (m *DocumentDataHistoryMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -15105,10 +18241,10 @@ func (m *EntitlementPlanFeatureHistoryMutation) DeletedBy() (r string, exists bo return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *DocumentDataHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -15123,95 +18259,30 @@ func (m *EntitlementPlanFeatureHistoryMutation) OldDeletedBy(ctx context.Context } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *EntitlementPlanFeatureHistoryMutation) ClearDeletedBy() { +func (m *DocumentDataHistoryMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[entitlementplanfeaturehistory.FieldDeletedBy] = struct{}{} + m.clearedFields[documentdatahistory.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldDeletedBy] +func (m *DocumentDataHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[documentdatahistory.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetDeletedBy() { +func (m *DocumentDataHistoryMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, entitlementplanfeaturehistory.FieldDeletedBy) -} - -// SetTags sets the "tags" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil -} - -// Tags returns the value of the "tags" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) 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 EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory 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 *EntitlementPlanFeatureHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[entitlementplanfeaturehistory.FieldTags] = struct{}{} -} - -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldTags] - return ok -} - -// ResetTags resets all changes to the "tags" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, entitlementplanfeaturehistory.FieldTags) + delete(m.clearedFields, documentdatahistory.FieldDeletedBy) } // SetOwnerID sets the "owner_id" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetOwnerID(s string) { +func (m *DocumentDataHistoryMutation) SetOwnerID(s string) { m.owner_id = &s } // OwnerID returns the value of the "owner_id" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) OwnerID() (r string, exists bool) { +func (m *DocumentDataHistoryMutation) OwnerID() (r string, exists bool) { v := m.owner_id if v == nil { return @@ -15219,10 +18290,10 @@ func (m *EntitlementPlanFeatureHistoryMutation) OwnerID() (r string, exists bool return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *DocumentDataHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") } @@ -15237,153 +18308,104 @@ func (m *EntitlementPlanFeatureHistoryMutation) OldOwnerID(ctx context.Context) } // ClearOwnerID clears the value of the "owner_id" field. -func (m *EntitlementPlanFeatureHistoryMutation) ClearOwnerID() { +func (m *DocumentDataHistoryMutation) ClearOwnerID() { m.owner_id = nil - m.clearedFields[entitlementplanfeaturehistory.FieldOwnerID] = struct{}{} + m.clearedFields[documentdatahistory.FieldOwnerID] = struct{}{} } // OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldOwnerID] +func (m *DocumentDataHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[documentdatahistory.FieldOwnerID] return ok } // ResetOwnerID resets all changes to the "owner_id" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetOwnerID() { +func (m *DocumentDataHistoryMutation) ResetOwnerID() { m.owner_id = nil - delete(m.clearedFields, entitlementplanfeaturehistory.FieldOwnerID) -} - -// SetMetadata sets the "metadata" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetMetadata(value map[string]interface{}) { - m.metadata = &value -} - -// Metadata returns the value of the "metadata" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) 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 EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory 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 *EntitlementPlanFeatureHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) ClearMetadata() { - m.metadata = nil - m.clearedFields[entitlementplanfeaturehistory.FieldMetadata] = struct{}{} -} - -// MetadataCleared returns if the "metadata" field was cleared in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) MetadataCleared() bool { - _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldMetadata] - return ok -} - -// ResetMetadata resets all changes to the "metadata" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetMetadata() { - m.metadata = nil - delete(m.clearedFields, entitlementplanfeaturehistory.FieldMetadata) + delete(m.clearedFields, documentdatahistory.FieldOwnerID) } -// SetPlanID sets the "plan_id" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetPlanID(s string) { - m.plan_id = &s +// SetTemplateID sets the "template_id" field. +func (m *DocumentDataHistoryMutation) SetTemplateID(s string) { + m.template_id = &s } -// PlanID returns the value of the "plan_id" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) PlanID() (r string, exists bool) { - v := m.plan_id +// TemplateID returns the value of the "template_id" field in the mutation. +func (m *DocumentDataHistoryMutation) TemplateID() (r string, exists bool) { + v := m.template_id if v == nil { return } return *v, true } -// OldPlanID returns the old "plan_id" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTemplateID returns the old "template_id" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldPlanID(ctx context.Context) (v string, err error) { +func (m *DocumentDataHistoryMutation) OldTemplateID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldPlanID is only allowed on UpdateOne operations") + return v, errors.New("OldTemplateID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldPlanID requires an ID field in the mutation") + return v, errors.New("OldTemplateID requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldPlanID: %w", err) + return v, fmt.Errorf("querying old value for OldTemplateID: %w", err) } - return oldValue.PlanID, nil + return oldValue.TemplateID, nil } -// ResetPlanID resets all changes to the "plan_id" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetPlanID() { - m.plan_id = nil +// ResetTemplateID resets all changes to the "template_id" field. +func (m *DocumentDataHistoryMutation) ResetTemplateID() { + m.template_id = nil } -// SetFeatureID sets the "feature_id" field. -func (m *EntitlementPlanFeatureHistoryMutation) SetFeatureID(s string) { - m.feature_id = &s +// SetData sets the "data" field. +func (m *DocumentDataHistoryMutation) SetData(co customtypes.JSONObject) { + m.data = &co } -// FeatureID returns the value of the "feature_id" field in the mutation. -func (m *EntitlementPlanFeatureHistoryMutation) FeatureID() (r string, exists bool) { - v := m.feature_id +// Data returns the value of the "data" field in the mutation. +func (m *DocumentDataHistoryMutation) Data() (r customtypes.JSONObject, exists bool) { + v := m.data if v == nil { return } return *v, true } -// OldFeatureID returns the old "feature_id" field's value of the EntitlementPlanFeatureHistory entity. -// If the EntitlementPlanFeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldData returns the old "data" field's value of the DocumentDataHistory entity. +// If the DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) OldFeatureID(ctx context.Context) (v string, err error) { +func (m *DocumentDataHistoryMutation) OldData(ctx context.Context) (v customtypes.JSONObject, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldFeatureID is only allowed on UpdateOne operations") + return v, errors.New("OldData is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldFeatureID requires an ID field in the mutation") + return v, errors.New("OldData requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldFeatureID: %w", err) + return v, fmt.Errorf("querying old value for OldData: %w", err) } - return oldValue.FeatureID, nil + return oldValue.Data, nil } -// ResetFeatureID resets all changes to the "feature_id" field. -func (m *EntitlementPlanFeatureHistoryMutation) ResetFeatureID() { - m.feature_id = nil +// ResetData resets all changes to the "data" field. +func (m *DocumentDataHistoryMutation) ResetData() { + m.data = nil } -// Where appends a list predicates to the EntitlementPlanFeatureHistoryMutation builder. -func (m *EntitlementPlanFeatureHistoryMutation) Where(ps ...predicate.EntitlementPlanFeatureHistory) { +// Where appends a list predicates to the DocumentDataHistoryMutation builder. +func (m *DocumentDataHistoryMutation) Where(ps ...predicate.DocumentDataHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the EntitlementPlanFeatureHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the DocumentDataHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EntitlementPlanFeatureHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.EntitlementPlanFeatureHistory, len(ps)) +func (m *DocumentDataHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.DocumentDataHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -15391,69 +18413,66 @@ func (m *EntitlementPlanFeatureHistoryMutation) WhereP(ps ...func(*sql.Selector) } // Op returns the operation name. -func (m *EntitlementPlanFeatureHistoryMutation) Op() Op { +func (m *DocumentDataHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *EntitlementPlanFeatureHistoryMutation) SetOp(op Op) { +func (m *DocumentDataHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (EntitlementPlanFeatureHistory). -func (m *EntitlementPlanFeatureHistoryMutation) Type() string { +// Type returns the node type of this mutation (DocumentDataHistory). +func (m *DocumentDataHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) Fields() []string { - fields := make([]string, 0, 15) +func (m *DocumentDataHistoryMutation) Fields() []string { + fields := make([]string, 0, 14) if m.history_time != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldHistoryTime) + fields = append(fields, documentdatahistory.FieldHistoryTime) } if m.ref != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldRef) + fields = append(fields, documentdatahistory.FieldRef) } if m.operation != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldOperation) + fields = append(fields, documentdatahistory.FieldOperation) } if m.created_at != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldCreatedAt) + fields = append(fields, documentdatahistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldUpdatedAt) + fields = append(fields, documentdatahistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldCreatedBy) + fields = append(fields, documentdatahistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldUpdatedBy) + fields = append(fields, documentdatahistory.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldMappingID) + fields = append(fields, documentdatahistory.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, documentdatahistory.FieldTags) } if m.deleted_at != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldDeletedAt) + fields = append(fields, documentdatahistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldDeletedBy) - } - if m.tags != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldTags) + fields = append(fields, documentdatahistory.FieldDeletedBy) } if m.owner_id != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldOwnerID) - } - if m.metadata != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldMetadata) + fields = append(fields, documentdatahistory.FieldOwnerID) } - if m.plan_id != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldPlanID) + if m.template_id != nil { + fields = append(fields, documentdatahistory.FieldTemplateID) } - if m.feature_id != nil { - fields = append(fields, entitlementplanfeaturehistory.FieldFeatureID) + if m.data != nil { + fields = append(fields, documentdatahistory.FieldData) } return fields } @@ -15461,38 +18480,36 @@ func (m *EntitlementPlanFeatureHistoryMutation) Fields() []string { // 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 *EntitlementPlanFeatureHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *DocumentDataHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case entitlementplanfeaturehistory.FieldHistoryTime: + case documentdatahistory.FieldHistoryTime: return m.HistoryTime() - case entitlementplanfeaturehistory.FieldRef: + case documentdatahistory.FieldRef: return m.Ref() - case entitlementplanfeaturehistory.FieldOperation: + case documentdatahistory.FieldOperation: return m.Operation() - case entitlementplanfeaturehistory.FieldCreatedAt: + case documentdatahistory.FieldCreatedAt: return m.CreatedAt() - case entitlementplanfeaturehistory.FieldUpdatedAt: + case documentdatahistory.FieldUpdatedAt: return m.UpdatedAt() - case entitlementplanfeaturehistory.FieldCreatedBy: + case documentdatahistory.FieldCreatedBy: return m.CreatedBy() - case entitlementplanfeaturehistory.FieldUpdatedBy: + case documentdatahistory.FieldUpdatedBy: return m.UpdatedBy() - case entitlementplanfeaturehistory.FieldMappingID: + case documentdatahistory.FieldMappingID: return m.MappingID() - case entitlementplanfeaturehistory.FieldDeletedAt: + case documentdatahistory.FieldTags: + return m.Tags() + case documentdatahistory.FieldDeletedAt: return m.DeletedAt() - case entitlementplanfeaturehistory.FieldDeletedBy: + case documentdatahistory.FieldDeletedBy: return m.DeletedBy() - case entitlementplanfeaturehistory.FieldTags: - return m.Tags() - case entitlementplanfeaturehistory.FieldOwnerID: + case documentdatahistory.FieldOwnerID: return m.OwnerID() - case entitlementplanfeaturehistory.FieldMetadata: - return m.Metadata() - case entitlementplanfeaturehistory.FieldPlanID: - return m.PlanID() - case entitlementplanfeaturehistory.FieldFeatureID: - return m.FeatureID() + case documentdatahistory.FieldTemplateID: + return m.TemplateID() + case documentdatahistory.FieldData: + return m.Data() } return nil, false } @@ -15500,370 +18517,349 @@ func (m *EntitlementPlanFeatureHistoryMutation) Field(name string) (ent.Value, b // 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 *EntitlementPlanFeatureHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *DocumentDataHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case entitlementplanfeaturehistory.FieldHistoryTime: + case documentdatahistory.FieldHistoryTime: return m.OldHistoryTime(ctx) - case entitlementplanfeaturehistory.FieldRef: + case documentdatahistory.FieldRef: return m.OldRef(ctx) - case entitlementplanfeaturehistory.FieldOperation: + case documentdatahistory.FieldOperation: return m.OldOperation(ctx) - case entitlementplanfeaturehistory.FieldCreatedAt: + case documentdatahistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case entitlementplanfeaturehistory.FieldUpdatedAt: + case documentdatahistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case entitlementplanfeaturehistory.FieldCreatedBy: + case documentdatahistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case entitlementplanfeaturehistory.FieldUpdatedBy: + case documentdatahistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case entitlementplanfeaturehistory.FieldMappingID: + case documentdatahistory.FieldMappingID: return m.OldMappingID(ctx) - case entitlementplanfeaturehistory.FieldDeletedAt: + case documentdatahistory.FieldTags: + return m.OldTags(ctx) + case documentdatahistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case entitlementplanfeaturehistory.FieldDeletedBy: + case documentdatahistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case entitlementplanfeaturehistory.FieldTags: - return m.OldTags(ctx) - case entitlementplanfeaturehistory.FieldOwnerID: + case documentdatahistory.FieldOwnerID: return m.OldOwnerID(ctx) - case entitlementplanfeaturehistory.FieldMetadata: - return m.OldMetadata(ctx) - case entitlementplanfeaturehistory.FieldPlanID: - return m.OldPlanID(ctx) - case entitlementplanfeaturehistory.FieldFeatureID: - return m.OldFeatureID(ctx) + case documentdatahistory.FieldTemplateID: + return m.OldTemplateID(ctx) + case documentdatahistory.FieldData: + return m.OldData(ctx) } - return nil, fmt.Errorf("unknown EntitlementPlanFeatureHistory field %s", name) + return nil, fmt.Errorf("unknown DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) SetField(name string, value ent.Value) error { +func (m *DocumentDataHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case entitlementplanfeaturehistory.FieldHistoryTime: + case documentdatahistory.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 entitlementplanfeaturehistory.FieldRef: + case documentdatahistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetRef(v) return nil - case entitlementplanfeaturehistory.FieldOperation: + case documentdatahistory.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 entitlementplanfeaturehistory.FieldCreatedAt: + case documentdatahistory.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 entitlementplanfeaturehistory.FieldUpdatedAt: + case documentdatahistory.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 entitlementplanfeaturehistory.FieldCreatedBy: + case documentdatahistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case entitlementplanfeaturehistory.FieldUpdatedBy: + case documentdatahistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case entitlementplanfeaturehistory.FieldMappingID: + case documentdatahistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case entitlementplanfeaturehistory.FieldDeletedAt: - v, ok := value.(time.Time) + case documentdatahistory.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetTags(v) return nil - case entitlementplanfeaturehistory.FieldDeletedBy: - v, ok := value.(string) + case documentdatahistory.FieldDeletedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetDeletedAt(v) return nil - case entitlementplanfeaturehistory.FieldTags: - v, ok := value.([]string) + case documentdatahistory.FieldDeletedBy: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTags(v) + m.SetDeletedBy(v) return nil - case entitlementplanfeaturehistory.FieldOwnerID: + case documentdatahistory.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetOwnerID(v) return nil - case entitlementplanfeaturehistory.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 - case entitlementplanfeaturehistory.FieldPlanID: + case documentdatahistory.FieldTemplateID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetPlanID(v) + m.SetTemplateID(v) return nil - case entitlementplanfeaturehistory.FieldFeatureID: - v, ok := value.(string) + case documentdatahistory.FieldData: + v, ok := value.(customtypes.JSONObject) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetFeatureID(v) + m.SetData(v) return nil } - return fmt.Errorf("unknown EntitlementPlanFeatureHistory field %s", name) + return fmt.Errorf("unknown DocumentDataHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) AddedFields() []string { +func (m *DocumentDataHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *DocumentDataHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) AddField(name string, value ent.Value) error { +func (m *DocumentDataHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown EntitlementPlanFeatureHistory numeric field %s", name) + return fmt.Errorf("unknown DocumentDataHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *EntitlementPlanFeatureHistoryMutation) ClearedFields() []string { +func (m *DocumentDataHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(entitlementplanfeaturehistory.FieldRef) { - fields = append(fields, entitlementplanfeaturehistory.FieldRef) - } - if m.FieldCleared(entitlementplanfeaturehistory.FieldCreatedAt) { - fields = append(fields, entitlementplanfeaturehistory.FieldCreatedAt) + if m.FieldCleared(documentdatahistory.FieldRef) { + fields = append(fields, documentdatahistory.FieldRef) } - if m.FieldCleared(entitlementplanfeaturehistory.FieldUpdatedAt) { - fields = append(fields, entitlementplanfeaturehistory.FieldUpdatedAt) + if m.FieldCleared(documentdatahistory.FieldCreatedAt) { + fields = append(fields, documentdatahistory.FieldCreatedAt) } - if m.FieldCleared(entitlementplanfeaturehistory.FieldCreatedBy) { - fields = append(fields, entitlementplanfeaturehistory.FieldCreatedBy) + if m.FieldCleared(documentdatahistory.FieldUpdatedAt) { + fields = append(fields, documentdatahistory.FieldUpdatedAt) } - if m.FieldCleared(entitlementplanfeaturehistory.FieldUpdatedBy) { - fields = append(fields, entitlementplanfeaturehistory.FieldUpdatedBy) + if m.FieldCleared(documentdatahistory.FieldCreatedBy) { + fields = append(fields, documentdatahistory.FieldCreatedBy) } - if m.FieldCleared(entitlementplanfeaturehistory.FieldDeletedAt) { - fields = append(fields, entitlementplanfeaturehistory.FieldDeletedAt) + if m.FieldCleared(documentdatahistory.FieldUpdatedBy) { + fields = append(fields, documentdatahistory.FieldUpdatedBy) } - if m.FieldCleared(entitlementplanfeaturehistory.FieldDeletedBy) { - fields = append(fields, entitlementplanfeaturehistory.FieldDeletedBy) + if m.FieldCleared(documentdatahistory.FieldTags) { + fields = append(fields, documentdatahistory.FieldTags) } - if m.FieldCleared(entitlementplanfeaturehistory.FieldTags) { - fields = append(fields, entitlementplanfeaturehistory.FieldTags) + if m.FieldCleared(documentdatahistory.FieldDeletedAt) { + fields = append(fields, documentdatahistory.FieldDeletedAt) } - if m.FieldCleared(entitlementplanfeaturehistory.FieldOwnerID) { - fields = append(fields, entitlementplanfeaturehistory.FieldOwnerID) + if m.FieldCleared(documentdatahistory.FieldDeletedBy) { + fields = append(fields, documentdatahistory.FieldDeletedBy) } - if m.FieldCleared(entitlementplanfeaturehistory.FieldMetadata) { - fields = append(fields, entitlementplanfeaturehistory.FieldMetadata) + if m.FieldCleared(documentdatahistory.FieldOwnerID) { + fields = append(fields, documentdatahistory.FieldOwnerID) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) FieldCleared(name string) bool { +func (m *DocumentDataHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) ClearField(name string) error { +func (m *DocumentDataHistoryMutation) ClearField(name string) error { switch name { - case entitlementplanfeaturehistory.FieldRef: + case documentdatahistory.FieldRef: m.ClearRef() return nil - case entitlementplanfeaturehistory.FieldCreatedAt: + case documentdatahistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case entitlementplanfeaturehistory.FieldUpdatedAt: + case documentdatahistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case entitlementplanfeaturehistory.FieldCreatedBy: + case documentdatahistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case entitlementplanfeaturehistory.FieldUpdatedBy: + case documentdatahistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case entitlementplanfeaturehistory.FieldDeletedAt: + case documentdatahistory.FieldTags: + m.ClearTags() + return nil + case documentdatahistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case entitlementplanfeaturehistory.FieldDeletedBy: + case documentdatahistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case entitlementplanfeaturehistory.FieldTags: - m.ClearTags() - return nil - case entitlementplanfeaturehistory.FieldOwnerID: + case documentdatahistory.FieldOwnerID: m.ClearOwnerID() return nil - case entitlementplanfeaturehistory.FieldMetadata: - m.ClearMetadata() - return nil } - return fmt.Errorf("unknown EntitlementPlanFeatureHistory nullable field %s", name) + return fmt.Errorf("unknown DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) ResetField(name string) error { +func (m *DocumentDataHistoryMutation) ResetField(name string) error { switch name { - case entitlementplanfeaturehistory.FieldHistoryTime: + case documentdatahistory.FieldHistoryTime: m.ResetHistoryTime() return nil - case entitlementplanfeaturehistory.FieldRef: + case documentdatahistory.FieldRef: m.ResetRef() return nil - case entitlementplanfeaturehistory.FieldOperation: + case documentdatahistory.FieldOperation: m.ResetOperation() return nil - case entitlementplanfeaturehistory.FieldCreatedAt: + case documentdatahistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case entitlementplanfeaturehistory.FieldUpdatedAt: + case documentdatahistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case entitlementplanfeaturehistory.FieldCreatedBy: + case documentdatahistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case entitlementplanfeaturehistory.FieldUpdatedBy: + case documentdatahistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case entitlementplanfeaturehistory.FieldMappingID: + case documentdatahistory.FieldMappingID: m.ResetMappingID() return nil - case entitlementplanfeaturehistory.FieldDeletedAt: + case documentdatahistory.FieldTags: + m.ResetTags() + return nil + case documentdatahistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case entitlementplanfeaturehistory.FieldDeletedBy: + case documentdatahistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case entitlementplanfeaturehistory.FieldTags: - m.ResetTags() - return nil - case entitlementplanfeaturehistory.FieldOwnerID: + case documentdatahistory.FieldOwnerID: m.ResetOwnerID() return nil - case entitlementplanfeaturehistory.FieldMetadata: - m.ResetMetadata() + case documentdatahistory.FieldTemplateID: + m.ResetTemplateID() return nil - case entitlementplanfeaturehistory.FieldPlanID: - m.ResetPlanID() - return nil - case entitlementplanfeaturehistory.FieldFeatureID: - m.ResetFeatureID() + case documentdatahistory.FieldData: + m.ResetData() return nil } - return fmt.Errorf("unknown EntitlementPlanFeatureHistory field %s", name) + return fmt.Errorf("unknown DocumentDataHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) AddedEdges() []string { +func (m *DocumentDataHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *DocumentDataHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) RemovedEdges() []string { +func (m *DocumentDataHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *DocumentDataHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EntitlementPlanFeatureHistoryMutation) ClearedEdges() []string { +func (m *DocumentDataHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) EdgeCleared(name string) bool { +func (m *DocumentDataHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown EntitlementPlanFeatureHistory unique edge %s", name) +func (m *DocumentDataHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown DocumentDataHistory 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 *EntitlementPlanFeatureHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown EntitlementPlanFeatureHistory edge %s", name) +func (m *DocumentDataHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown DocumentDataHistory edge %s", name) } -// EntitlementPlanHistoryMutation represents an operation that mutates the EntitlementPlanHistory nodes in the graph. -type EntitlementPlanHistoryMutation struct { +// EmailVerificationTokenMutation represents an operation that mutates the EmailVerificationToken nodes in the graph. +type EmailVerificationTokenMutation 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 @@ -15871,31 +18867,29 @@ type EntitlementPlanHistoryMutation struct { mapping_id *string deleted_at *time.Time deleted_by *string - tags *[]string - appendtags []string - owner_id *string - display_name *string - name *string - description *string - version *string - metadata *map[string]interface{} + token *string + ttl *time.Time + email *string + secret *[]byte clearedFields map[string]struct{} + owner *string + clearedowner bool done bool - oldValue func(context.Context) (*EntitlementPlanHistory, error) - predicates []predicate.EntitlementPlanHistory + oldValue func(context.Context) (*EmailVerificationToken, error) + predicates []predicate.EmailVerificationToken } -var _ ent.Mutation = (*EntitlementPlanHistoryMutation)(nil) +var _ ent.Mutation = (*EmailVerificationTokenMutation)(nil) -// entitlementplanhistoryOption allows management of the mutation configuration using functional options. -type entitlementplanhistoryOption func(*EntitlementPlanHistoryMutation) +// emailverificationtokenOption allows management of the mutation configuration using functional options. +type emailverificationtokenOption func(*EmailVerificationTokenMutation) -// newEntitlementPlanHistoryMutation creates new mutation for the EntitlementPlanHistory entity. -func newEntitlementPlanHistoryMutation(c config, op Op, opts ...entitlementplanhistoryOption) *EntitlementPlanHistoryMutation { - m := &EntitlementPlanHistoryMutation{ +// newEmailVerificationTokenMutation creates new mutation for the EmailVerificationToken entity. +func newEmailVerificationTokenMutation(c config, op Op, opts ...emailverificationtokenOption) *EmailVerificationTokenMutation { + m := &EmailVerificationTokenMutation{ config: c, op: op, - typ: TypeEntitlementPlanHistory, + typ: TypeEmailVerificationToken, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -15904,20 +18898,20 @@ func newEntitlementPlanHistoryMutation(c config, op Op, opts ...entitlementplanh return m } -// withEntitlementPlanHistoryID sets the ID field of the mutation. -func withEntitlementPlanHistoryID(id string) entitlementplanhistoryOption { - return func(m *EntitlementPlanHistoryMutation) { +// withEmailVerificationTokenID sets the ID field of the mutation. +func withEmailVerificationTokenID(id string) emailverificationtokenOption { + return func(m *EmailVerificationTokenMutation) { var ( err error once sync.Once - value *EntitlementPlanHistory + value *EmailVerificationToken ) - m.oldValue = func(ctx context.Context) (*EntitlementPlanHistory, error) { + m.oldValue = func(ctx context.Context) (*EmailVerificationToken, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().EntitlementPlanHistory.Get(ctx, id) + value, err = m.Client().EmailVerificationToken.Get(ctx, id) } }) return value, err @@ -15926,10 +18920,10 @@ func withEntitlementPlanHistoryID(id string) entitlementplanhistoryOption { } } -// withEntitlementPlanHistory sets the old EntitlementPlanHistory of the mutation. -func withEntitlementPlanHistory(node *EntitlementPlanHistory) entitlementplanhistoryOption { - return func(m *EntitlementPlanHistoryMutation) { - m.oldValue = func(context.Context) (*EntitlementPlanHistory, error) { +// withEmailVerificationToken sets the old EmailVerificationToken of the mutation. +func withEmailVerificationToken(node *EmailVerificationToken) emailverificationtokenOption { + return func(m *EmailVerificationTokenMutation) { + m.oldValue = func(context.Context) (*EmailVerificationToken, error) { return node, nil } m.id = &node.ID @@ -15938,7 +18932,7 @@ func withEntitlementPlanHistory(node *EntitlementPlanHistory) entitlementplanhis // 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 EntitlementPlanHistoryMutation) Client() *Client { +func (m EmailVerificationTokenMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -15946,7 +18940,7 @@ func (m EntitlementPlanHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EntitlementPlanHistoryMutation) Tx() (*Tx, error) { +func (m EmailVerificationTokenMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -15956,14 +18950,14 @@ func (m EntitlementPlanHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of EntitlementPlanHistory entities. -func (m *EntitlementPlanHistoryMutation) SetID(id string) { +// operation is only accepted on creation of EmailVerificationToken entities. +func (m *EmailVerificationTokenMutation) 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 *EntitlementPlanHistoryMutation) ID() (id string, exists bool) { +func (m *EmailVerificationTokenMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -15974,7 +18968,7 @@ func (m *EntitlementPlanHistoryMutation) ID() (id string, exists bool) { // 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 *EntitlementPlanHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *EmailVerificationTokenMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -15983,140 +18977,19 @@ func (m *EntitlementPlanHistoryMutation) IDs(ctx context.Context) ([]string, err } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().EntitlementPlanHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().EmailVerificationToken.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 *EntitlementPlanHistoryMutation) SetHistoryTime(t time.Time) { - m.history_time = &t -} - -// HistoryTime returns the value of the "history_time" field in the mutation. -func (m *EntitlementPlanHistoryMutation) 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 EntitlementPlanHistory entity. -// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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 *EntitlementPlanHistoryMutation) ResetHistoryTime() { - m.history_time = nil -} - -// SetRef sets the "ref" field. -func (m *EntitlementPlanHistoryMutation) SetRef(s string) { - m.ref = &s -} - -// Ref returns the value of the "ref" field in the mutation. -func (m *EntitlementPlanHistoryMutation) 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 EntitlementPlanHistory entity. -// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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 *EntitlementPlanHistoryMutation) ClearRef() { - m.ref = nil - m.clearedFields[entitlementplanhistory.FieldRef] = struct{}{} -} - -// RefCleared returns if the "ref" field was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[entitlementplanhistory.FieldRef] - return ok -} - -// ResetRef resets all changes to the "ref" field. -func (m *EntitlementPlanHistoryMutation) ResetRef() { - m.ref = nil - delete(m.clearedFields, entitlementplanhistory.FieldRef) -} - -// SetOperation sets the "operation" field. -func (m *EntitlementPlanHistoryMutation) SetOperation(ht history.OpType) { - m.operation = &ht -} - -// Operation returns the value of the "operation" field in the mutation. -func (m *EntitlementPlanHistoryMutation) 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 EntitlementPlanHistory entity. -// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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 *EntitlementPlanHistoryMutation) ResetOperation() { - m.operation = nil -} - // SetCreatedAt sets the "created_at" field. -func (m *EntitlementPlanHistoryMutation) SetCreatedAt(t time.Time) { +func (m *EmailVerificationTokenMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EntitlementPlanHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *EmailVerificationTokenMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -16124,10 +18997,10 @@ func (m *EntitlementPlanHistoryMutation) CreatedAt() (r time.Time, exists bool) return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the EntitlementPlanHistory entity. -// If the EntitlementPlanHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the EmailVerificationToken entity. +// If the EmailVerificationToken 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 *EntitlementPlanHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EmailVerificationTokenMutation) 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") } @@ -16142,30 +19015,30 @@ func (m *EntitlementPlanHistoryMutation) OldCreatedAt(ctx context.Context) (v ti } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EntitlementPlanHistoryMutation) ClearCreatedAt() { +func (m *EmailVerificationTokenMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[entitlementplanhistory.FieldCreatedAt] = struct{}{} + m.clearedFields[emailverificationtoken.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[entitlementplanhistory.FieldCreatedAt] +func (m *EmailVerificationTokenMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[emailverificationtoken.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EntitlementPlanHistoryMutation) ResetCreatedAt() { +func (m *EmailVerificationTokenMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, entitlementplanhistory.FieldCreatedAt) + delete(m.clearedFields, emailverificationtoken.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EntitlementPlanHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *EmailVerificationTokenMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EntitlementPlanHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *EmailVerificationTokenMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -16173,10 +19046,10 @@ func (m *EntitlementPlanHistoryMutation) UpdatedAt() (r time.Time, exists bool) return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the EntitlementPlanHistory entity. -// If the EntitlementPlanHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the EmailVerificationToken entity. +// If the EmailVerificationToken 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 *EntitlementPlanHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EmailVerificationTokenMutation) 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") } @@ -16191,30 +19064,30 @@ func (m *EntitlementPlanHistoryMutation) OldUpdatedAt(ctx context.Context) (v ti } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EntitlementPlanHistoryMutation) ClearUpdatedAt() { +func (m *EmailVerificationTokenMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[entitlementplanhistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[emailverificationtoken.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[entitlementplanhistory.FieldUpdatedAt] +func (m *EmailVerificationTokenMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[emailverificationtoken.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EntitlementPlanHistoryMutation) ResetUpdatedAt() { +func (m *EmailVerificationTokenMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, entitlementplanhistory.FieldUpdatedAt) + delete(m.clearedFields, emailverificationtoken.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EntitlementPlanHistoryMutation) SetCreatedBy(s string) { +func (m *EmailVerificationTokenMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EntitlementPlanHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *EmailVerificationTokenMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -16222,10 +19095,10 @@ func (m *EntitlementPlanHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the EntitlementPlanHistory entity. -// If the EntitlementPlanHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the EmailVerificationToken entity. +// If the EmailVerificationToken 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 *EntitlementPlanHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *EmailVerificationTokenMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -16240,30 +19113,30 @@ func (m *EntitlementPlanHistoryMutation) OldCreatedBy(ctx context.Context) (v st } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EntitlementPlanHistoryMutation) ClearCreatedBy() { +func (m *EmailVerificationTokenMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[entitlementplanhistory.FieldCreatedBy] = struct{}{} + m.clearedFields[emailverificationtoken.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[entitlementplanhistory.FieldCreatedBy] +func (m *EmailVerificationTokenMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[emailverificationtoken.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EntitlementPlanHistoryMutation) ResetCreatedBy() { +func (m *EmailVerificationTokenMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, entitlementplanhistory.FieldCreatedBy) + delete(m.clearedFields, emailverificationtoken.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EntitlementPlanHistoryMutation) SetUpdatedBy(s string) { +func (m *EmailVerificationTokenMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EntitlementPlanHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *EmailVerificationTokenMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -16271,10 +19144,10 @@ func (m *EntitlementPlanHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the EntitlementPlanHistory entity. -// If the EntitlementPlanHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the EmailVerificationToken entity. +// If the EmailVerificationToken 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 *EntitlementPlanHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *EmailVerificationTokenMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -16289,30 +19162,30 @@ func (m *EntitlementPlanHistoryMutation) OldUpdatedBy(ctx context.Context) (v st } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EntitlementPlanHistoryMutation) ClearUpdatedBy() { +func (m *EmailVerificationTokenMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[entitlementplanhistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[emailverificationtoken.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[entitlementplanhistory.FieldUpdatedBy] +func (m *EmailVerificationTokenMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[emailverificationtoken.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EntitlementPlanHistoryMutation) ResetUpdatedBy() { +func (m *EmailVerificationTokenMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, entitlementplanhistory.FieldUpdatedBy) + delete(m.clearedFields, emailverificationtoken.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *EntitlementPlanHistoryMutation) SetMappingID(s string) { +func (m *EmailVerificationTokenMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EntitlementPlanHistoryMutation) MappingID() (r string, exists bool) { +func (m *EmailVerificationTokenMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -16320,10 +19193,10 @@ func (m *EntitlementPlanHistoryMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the EntitlementPlanHistory entity. -// If the EntitlementPlanHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the EmailVerificationToken entity. +// If the EmailVerificationToken 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 *EntitlementPlanHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *EmailVerificationTokenMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -16338,17 +19211,17 @@ func (m *EntitlementPlanHistoryMutation) OldMappingID(ctx context.Context) (v st } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *EntitlementPlanHistoryMutation) ResetMappingID() { +func (m *EmailVerificationTokenMutation) ResetMappingID() { m.mapping_id = nil } // SetDeletedAt sets the "deleted_at" field. -func (m *EntitlementPlanHistoryMutation) SetDeletedAt(t time.Time) { +func (m *EmailVerificationTokenMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *EntitlementPlanHistoryMutation) DeletedAt() (r time.Time, exists bool) { +func (m *EmailVerificationTokenMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -16356,10 +19229,10 @@ func (m *EntitlementPlanHistoryMutation) DeletedAt() (r time.Time, exists bool) return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the EntitlementPlanHistory entity. -// If the EntitlementPlanHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the EmailVerificationToken entity. +// If the EmailVerificationToken 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 *EntitlementPlanHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *EmailVerificationTokenMutation) 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") } @@ -16374,30 +19247,30 @@ func (m *EntitlementPlanHistoryMutation) OldDeletedAt(ctx context.Context) (v ti } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *EntitlementPlanHistoryMutation) ClearDeletedAt() { +func (m *EmailVerificationTokenMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[entitlementplanhistory.FieldDeletedAt] = struct{}{} + m.clearedFields[emailverificationtoken.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[entitlementplanhistory.FieldDeletedAt] +func (m *EmailVerificationTokenMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[emailverificationtoken.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *EntitlementPlanHistoryMutation) ResetDeletedAt() { +func (m *EmailVerificationTokenMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, entitlementplanhistory.FieldDeletedAt) + delete(m.clearedFields, emailverificationtoken.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *EntitlementPlanHistoryMutation) SetDeletedBy(s string) { +func (m *EmailVerificationTokenMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *EntitlementPlanHistoryMutation) DeletedBy() (r string, exists bool) { +func (m *EmailVerificationTokenMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -16405,10 +19278,10 @@ func (m *EntitlementPlanHistoryMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the EntitlementPlanHistory entity. -// If the EntitlementPlanHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the EmailVerificationToken entity. +// If the EmailVerificationToken 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 *EntitlementPlanHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *EmailVerificationTokenMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -16423,365 +19296,239 @@ func (m *EntitlementPlanHistoryMutation) OldDeletedBy(ctx context.Context) (v st } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *EntitlementPlanHistoryMutation) ClearDeletedBy() { +func (m *EmailVerificationTokenMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[entitlementplanhistory.FieldDeletedBy] = struct{}{} + m.clearedFields[emailverificationtoken.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[entitlementplanhistory.FieldDeletedBy] +func (m *EmailVerificationTokenMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[emailverificationtoken.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *EntitlementPlanHistoryMutation) ResetDeletedBy() { +func (m *EmailVerificationTokenMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, entitlementplanhistory.FieldDeletedBy) + delete(m.clearedFields, emailverificationtoken.FieldDeletedBy) } -// SetTags sets the "tags" field. -func (m *EntitlementPlanHistoryMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil +// SetOwnerID sets the "owner_id" field. +func (m *EmailVerificationTokenMutation) SetOwnerID(s string) { + m.owner = &s } -// Tags returns the value of the "tags" field in the mutation. -func (m *EntitlementPlanHistoryMutation) Tags() (r []string, exists bool) { - v := m.tags +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *EmailVerificationTokenMutation) OwnerID() (r string, exists bool) { + v := m.owner if v == nil { return } return *v, true } -// OldTags returns the old "tags" field's value of the EntitlementPlanHistory entity. -// If the EntitlementPlanHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the EmailVerificationToken entity. +// If the EmailVerificationToken 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 *EntitlementPlanHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *EmailVerificationTokenMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTags is only allowed on UpdateOne operations") + return v, errors.New("OldOwnerID 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") + 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 OldTags: %w", err) + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) } - return oldValue.Tags, nil + return oldValue.OwnerID, nil } -// AppendTags adds s to the "tags" field. -func (m *EntitlementPlanHistoryMutation) AppendTags(s []string) { - m.appendtags = append(m.appendtags, s...) +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *EmailVerificationTokenMutation) ResetOwnerID() { + m.owner = nil } -// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. -func (m *EntitlementPlanHistoryMutation) AppendedTags() ([]string, bool) { - if len(m.appendtags) == 0 { - return nil, false - } - return m.appendtags, true +// SetToken sets the "token" field. +func (m *EmailVerificationTokenMutation) SetToken(s string) { + m.token = &s } -// ClearTags clears the value of the "tags" field. -func (m *EntitlementPlanHistoryMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[entitlementplanhistory.FieldTags] = struct{}{} +// Token returns the value of the "token" field in the mutation. +func (m *EmailVerificationTokenMutation) Token() (r string, exists bool) { + v := m.token + if v == nil { + return + } + return *v, true } -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[entitlementplanhistory.FieldTags] - return ok +// OldToken returns the old "token" field's value of the EmailVerificationToken entity. +// If the EmailVerificationToken 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 *EmailVerificationTokenMutation) OldToken(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldToken is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldToken requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldToken: %w", err) + } + return oldValue.Token, nil } -// ResetTags resets all changes to the "tags" field. -func (m *EntitlementPlanHistoryMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, entitlementplanhistory.FieldTags) +// ResetToken resets all changes to the "token" field. +func (m *EmailVerificationTokenMutation) ResetToken() { + m.token = nil } -// SetOwnerID sets the "owner_id" field. -func (m *EntitlementPlanHistoryMutation) SetOwnerID(s string) { - m.owner_id = &s +// SetTTL sets the "ttl" field. +func (m *EmailVerificationTokenMutation) SetTTL(t time.Time) { + m.ttl = &t } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *EntitlementPlanHistoryMutation) OwnerID() (r string, exists bool) { - v := m.owner_id +// TTL returns the value of the "ttl" field in the mutation. +func (m *EmailVerificationTokenMutation) TTL() (r time.Time, exists bool) { + v := m.ttl if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the EntitlementPlanHistory entity. -// If the EntitlementPlanHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTTL returns the old "ttl" field's value of the EmailVerificationToken entity. +// If the EmailVerificationToken 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 *EntitlementPlanHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *EmailVerificationTokenMutation) OldTTL(ctx context.Context) (v *time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldTTL 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") + return v, errors.New("OldTTL 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 v, fmt.Errorf("querying old value for OldTTL: %w", err) } - return oldValue.OwnerID, nil -} - -// ClearOwnerID clears the value of the "owner_id" field. -func (m *EntitlementPlanHistoryMutation) ClearOwnerID() { - m.owner_id = nil - m.clearedFields[entitlementplanhistory.FieldOwnerID] = struct{}{} -} - -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[entitlementplanhistory.FieldOwnerID] - return ok + return oldValue.TTL, nil } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *EntitlementPlanHistoryMutation) ResetOwnerID() { - m.owner_id = nil - delete(m.clearedFields, entitlementplanhistory.FieldOwnerID) +// ResetTTL resets all changes to the "ttl" field. +func (m *EmailVerificationTokenMutation) ResetTTL() { + m.ttl = nil } -// SetDisplayName sets the "display_name" field. -func (m *EntitlementPlanHistoryMutation) SetDisplayName(s string) { - m.display_name = &s +// SetEmail sets the "email" field. +func (m *EmailVerificationTokenMutation) SetEmail(s string) { + m.email = &s } -// DisplayName returns the value of the "display_name" field in the mutation. -func (m *EntitlementPlanHistoryMutation) DisplayName() (r string, exists bool) { - v := m.display_name +// Email returns the value of the "email" field in the mutation. +func (m *EmailVerificationTokenMutation) Email() (r string, exists bool) { + v := m.email if v == nil { return } return *v, true } -// OldDisplayName returns the old "display_name" field's value of the EntitlementPlanHistory entity. -// If the EntitlementPlanHistory object wasn't provided to the builder, the object is fetched from the database. +// OldEmail returns the old "email" field's value of the EmailVerificationToken entity. +// If the EmailVerificationToken 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 *EntitlementPlanHistoryMutation) OldDisplayName(ctx context.Context) (v string, err error) { +func (m *EmailVerificationTokenMutation) OldEmail(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") + return v, errors.New("OldEmail is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDisplayName requires an ID field in the mutation") + 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 OldDisplayName: %w", err) + return v, fmt.Errorf("querying old value for OldEmail: %w", err) } - return oldValue.DisplayName, nil -} - -// ClearDisplayName clears the value of the "display_name" field. -func (m *EntitlementPlanHistoryMutation) ClearDisplayName() { - m.display_name = nil - m.clearedFields[entitlementplanhistory.FieldDisplayName] = struct{}{} -} - -// DisplayNameCleared returns if the "display_name" field was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) DisplayNameCleared() bool { - _, ok := m.clearedFields[entitlementplanhistory.FieldDisplayName] - return ok -} - -// ResetDisplayName resets all changes to the "display_name" field. -func (m *EntitlementPlanHistoryMutation) ResetDisplayName() { - m.display_name = nil - delete(m.clearedFields, entitlementplanhistory.FieldDisplayName) -} - -// SetName sets the "name" field. -func (m *EntitlementPlanHistoryMutation) SetName(s string) { - m.name = &s -} - -// Name returns the value of the "name" field in the mutation. -func (m *EntitlementPlanHistoryMutation) 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 EntitlementPlanHistory entity. -// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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 *EntitlementPlanHistoryMutation) ResetName() { - m.name = nil -} - -// SetDescription sets the "description" field. -func (m *EntitlementPlanHistoryMutation) SetDescription(s string) { - m.description = &s -} - -// Description returns the value of the "description" field in the mutation. -func (m *EntitlementPlanHistoryMutation) 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 EntitlementPlanHistory entity. -// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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 *EntitlementPlanHistoryMutation) ClearDescription() { - m.description = nil - m.clearedFields[entitlementplanhistory.FieldDescription] = struct{}{} -} - -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[entitlementplanhistory.FieldDescription] - return ok + return oldValue.Email, nil } -// ResetDescription resets all changes to the "description" field. -func (m *EntitlementPlanHistoryMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, entitlementplanhistory.FieldDescription) +// ResetEmail resets all changes to the "email" field. +func (m *EmailVerificationTokenMutation) ResetEmail() { + m.email = nil } -// SetVersion sets the "version" field. -func (m *EntitlementPlanHistoryMutation) SetVersion(s string) { - m.version = &s +// SetSecret sets the "secret" field. +func (m *EmailVerificationTokenMutation) SetSecret(b []byte) { + m.secret = &b } -// Version returns the value of the "version" field in the mutation. -func (m *EntitlementPlanHistoryMutation) Version() (r string, exists bool) { - v := m.version +// Secret returns the value of the "secret" field in the mutation. +func (m *EmailVerificationTokenMutation) Secret() (r []byte, exists bool) { + v := m.secret if v == nil { return } return *v, true } -// OldVersion returns the old "version" field's value of the EntitlementPlanHistory entity. -// If the EntitlementPlanHistory object wasn't provided to the builder, the object is fetched from the database. +// OldSecret returns the old "secret" field's value of the EmailVerificationToken entity. +// If the EmailVerificationToken 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 *EntitlementPlanHistoryMutation) OldVersion(ctx context.Context) (v string, err error) { +func (m *EmailVerificationTokenMutation) OldSecret(ctx context.Context) (v *[]byte, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldVersion is only allowed on UpdateOne operations") + return v, errors.New("OldSecret is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldVersion requires an ID field in the mutation") + return v, errors.New("OldSecret requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldVersion: %w", err) + return v, fmt.Errorf("querying old value for OldSecret: %w", err) } - return oldValue.Version, nil + return oldValue.Secret, nil } -// ResetVersion resets all changes to the "version" field. -func (m *EntitlementPlanHistoryMutation) ResetVersion() { - m.version = nil +// ResetSecret resets all changes to the "secret" field. +func (m *EmailVerificationTokenMutation) ResetSecret() { + m.secret = nil } -// SetMetadata sets the "metadata" field. -func (m *EntitlementPlanHistoryMutation) SetMetadata(value map[string]interface{}) { - m.metadata = &value +// ClearOwner clears the "owner" edge to the User entity. +func (m *EmailVerificationTokenMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[emailverificationtoken.FieldOwnerID] = struct{}{} } -// Metadata returns the value of the "metadata" field in the mutation. -func (m *EntitlementPlanHistoryMutation) Metadata() (r map[string]interface{}, exists bool) { - v := m.metadata - if v == nil { - return - } - return *v, true +// OwnerCleared reports if the "owner" edge to the User entity was cleared. +func (m *EmailVerificationTokenMutation) OwnerCleared() bool { + return m.clearedowner } -// OldMetadata returns the old "metadata" field's value of the EntitlementPlanHistory entity. -// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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) +// 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 *EmailVerificationTokenMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) } - return oldValue.Metadata, nil -} - -// ClearMetadata clears the value of the "metadata" field. -func (m *EntitlementPlanHistoryMutation) ClearMetadata() { - m.metadata = nil - m.clearedFields[entitlementplanhistory.FieldMetadata] = struct{}{} -} - -// MetadataCleared returns if the "metadata" field was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) MetadataCleared() bool { - _, ok := m.clearedFields[entitlementplanhistory.FieldMetadata] - return ok + return } -// ResetMetadata resets all changes to the "metadata" field. -func (m *EntitlementPlanHistoryMutation) ResetMetadata() { - m.metadata = nil - delete(m.clearedFields, entitlementplanhistory.FieldMetadata) +// ResetOwner resets all changes to the "owner" edge. +func (m *EmailVerificationTokenMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false } -// Where appends a list predicates to the EntitlementPlanHistoryMutation builder. -func (m *EntitlementPlanHistoryMutation) Where(ps ...predicate.EntitlementPlanHistory) { +// Where appends a list predicates to the EmailVerificationTokenMutation builder. +func (m *EmailVerificationTokenMutation) Where(ps ...predicate.EmailVerificationToken) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the EntitlementPlanHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the EmailVerificationTokenMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EntitlementPlanHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.EntitlementPlanHistory, len(ps)) +func (m *EmailVerificationTokenMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.EmailVerificationToken, len(ps)) for i := range ps { p[i] = ps[i] } @@ -16789,75 +19536,60 @@ func (m *EntitlementPlanHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *EntitlementPlanHistoryMutation) Op() Op { +func (m *EmailVerificationTokenMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *EntitlementPlanHistoryMutation) SetOp(op Op) { +func (m *EmailVerificationTokenMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (EntitlementPlanHistory). -func (m *EntitlementPlanHistoryMutation) Type() string { +// Type returns the node type of this mutation (EmailVerificationToken). +func (m *EmailVerificationTokenMutation) 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 *EntitlementPlanHistoryMutation) Fields() []string { - fields := make([]string, 0, 17) - if m.history_time != nil { - fields = append(fields, entitlementplanhistory.FieldHistoryTime) - } - if m.ref != nil { - fields = append(fields, entitlementplanhistory.FieldRef) - } - if m.operation != nil { - fields = append(fields, entitlementplanhistory.FieldOperation) - } +func (m *EmailVerificationTokenMutation) Fields() []string { + fields := make([]string, 0, 12) if m.created_at != nil { - fields = append(fields, entitlementplanhistory.FieldCreatedAt) + fields = append(fields, emailverificationtoken.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, entitlementplanhistory.FieldUpdatedAt) + fields = append(fields, emailverificationtoken.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, entitlementplanhistory.FieldCreatedBy) + fields = append(fields, emailverificationtoken.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, entitlementplanhistory.FieldUpdatedBy) + fields = append(fields, emailverificationtoken.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, entitlementplanhistory.FieldMappingID) + fields = append(fields, emailverificationtoken.FieldMappingID) } if m.deleted_at != nil { - fields = append(fields, entitlementplanhistory.FieldDeletedAt) + fields = append(fields, emailverificationtoken.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, entitlementplanhistory.FieldDeletedBy) - } - if m.tags != nil { - fields = append(fields, entitlementplanhistory.FieldTags) - } - if m.owner_id != nil { - fields = append(fields, entitlementplanhistory.FieldOwnerID) + fields = append(fields, emailverificationtoken.FieldDeletedBy) } - if m.display_name != nil { - fields = append(fields, entitlementplanhistory.FieldDisplayName) + if m.owner != nil { + fields = append(fields, emailverificationtoken.FieldOwnerID) } - if m.name != nil { - fields = append(fields, entitlementplanhistory.FieldName) + if m.token != nil { + fields = append(fields, emailverificationtoken.FieldToken) } - if m.description != nil { - fields = append(fields, entitlementplanhistory.FieldDescription) + if m.ttl != nil { + fields = append(fields, emailverificationtoken.FieldTTL) } - if m.version != nil { - fields = append(fields, entitlementplanhistory.FieldVersion) + if m.email != nil { + fields = append(fields, emailverificationtoken.FieldEmail) } - if m.metadata != nil { - fields = append(fields, entitlementplanhistory.FieldMetadata) + if m.secret != nil { + fields = append(fields, emailverificationtoken.FieldSecret) } return fields } @@ -16865,42 +19597,32 @@ func (m *EntitlementPlanHistoryMutation) Fields() []string { // 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 *EntitlementPlanHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *EmailVerificationTokenMutation) Field(name string) (ent.Value, bool) { switch name { - case entitlementplanhistory.FieldHistoryTime: - return m.HistoryTime() - case entitlementplanhistory.FieldRef: - return m.Ref() - case entitlementplanhistory.FieldOperation: - return m.Operation() - case entitlementplanhistory.FieldCreatedAt: + case emailverificationtoken.FieldCreatedAt: return m.CreatedAt() - case entitlementplanhistory.FieldUpdatedAt: + case emailverificationtoken.FieldUpdatedAt: return m.UpdatedAt() - case entitlementplanhistory.FieldCreatedBy: + case emailverificationtoken.FieldCreatedBy: return m.CreatedBy() - case entitlementplanhistory.FieldUpdatedBy: + case emailverificationtoken.FieldUpdatedBy: return m.UpdatedBy() - case entitlementplanhistory.FieldMappingID: + case emailverificationtoken.FieldMappingID: return m.MappingID() - case entitlementplanhistory.FieldDeletedAt: + case emailverificationtoken.FieldDeletedAt: return m.DeletedAt() - case entitlementplanhistory.FieldDeletedBy: + case emailverificationtoken.FieldDeletedBy: return m.DeletedBy() - case entitlementplanhistory.FieldTags: - return m.Tags() - case entitlementplanhistory.FieldOwnerID: + case emailverificationtoken.FieldOwnerID: return m.OwnerID() - case entitlementplanhistory.FieldDisplayName: - return m.DisplayName() - case entitlementplanhistory.FieldName: - return m.Name() - case entitlementplanhistory.FieldDescription: - return m.Description() - case entitlementplanhistory.FieldVersion: - return m.Version() - case entitlementplanhistory.FieldMetadata: - return m.Metadata() + case emailverificationtoken.FieldToken: + return m.Token() + case emailverificationtoken.FieldTTL: + return m.TTL() + case emailverificationtoken.FieldEmail: + return m.Email() + case emailverificationtoken.FieldSecret: + return m.Secret() } return nil, false } @@ -16908,451 +19630,373 @@ func (m *EntitlementPlanHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *EntitlementPlanHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *EmailVerificationTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case entitlementplanhistory.FieldHistoryTime: - return m.OldHistoryTime(ctx) - case entitlementplanhistory.FieldRef: - return m.OldRef(ctx) - case entitlementplanhistory.FieldOperation: - return m.OldOperation(ctx) - case entitlementplanhistory.FieldCreatedAt: + case emailverificationtoken.FieldCreatedAt: return m.OldCreatedAt(ctx) - case entitlementplanhistory.FieldUpdatedAt: + case emailverificationtoken.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case entitlementplanhistory.FieldCreatedBy: + case emailverificationtoken.FieldCreatedBy: return m.OldCreatedBy(ctx) - case entitlementplanhistory.FieldUpdatedBy: + case emailverificationtoken.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case entitlementplanhistory.FieldMappingID: + case emailverificationtoken.FieldMappingID: return m.OldMappingID(ctx) - case entitlementplanhistory.FieldDeletedAt: + case emailverificationtoken.FieldDeletedAt: return m.OldDeletedAt(ctx) - case entitlementplanhistory.FieldDeletedBy: + case emailverificationtoken.FieldDeletedBy: return m.OldDeletedBy(ctx) - case entitlementplanhistory.FieldTags: - return m.OldTags(ctx) - case entitlementplanhistory.FieldOwnerID: + case emailverificationtoken.FieldOwnerID: return m.OldOwnerID(ctx) - case entitlementplanhistory.FieldDisplayName: - return m.OldDisplayName(ctx) - case entitlementplanhistory.FieldName: - return m.OldName(ctx) - case entitlementplanhistory.FieldDescription: - return m.OldDescription(ctx) - case entitlementplanhistory.FieldVersion: - return m.OldVersion(ctx) - case entitlementplanhistory.FieldMetadata: - return m.OldMetadata(ctx) + case emailverificationtoken.FieldToken: + return m.OldToken(ctx) + case emailverificationtoken.FieldTTL: + return m.OldTTL(ctx) + case emailverificationtoken.FieldEmail: + return m.OldEmail(ctx) + case emailverificationtoken.FieldSecret: + return m.OldSecret(ctx) } - return nil, fmt.Errorf("unknown EntitlementPlanHistory field %s", name) + return nil, fmt.Errorf("unknown EmailVerificationToken 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 *EntitlementPlanHistoryMutation) SetField(name string, value ent.Value) error { +func (m *EmailVerificationTokenMutation) SetField(name string, value ent.Value) error { switch name { - case entitlementplanhistory.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 entitlementplanhistory.FieldRef: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetRef(v) - return nil - case entitlementplanhistory.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 entitlementplanhistory.FieldCreatedAt: + case emailverificationtoken.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 entitlementplanhistory.FieldUpdatedAt: + case emailverificationtoken.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 entitlementplanhistory.FieldCreatedBy: + case emailverificationtoken.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case entitlementplanhistory.FieldUpdatedBy: + case emailverificationtoken.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case entitlementplanhistory.FieldMappingID: + case emailverificationtoken.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case entitlementplanhistory.FieldDeletedAt: + case emailverificationtoken.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 entitlementplanhistory.FieldDeletedBy: + case emailverificationtoken.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case entitlementplanhistory.FieldTags: - v, ok := value.([]string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetTags(v) - return nil - case entitlementplanhistory.FieldOwnerID: + case emailverificationtoken.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetOwnerID(v) return nil - case entitlementplanhistory.FieldDisplayName: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetDisplayName(v) - return nil - case entitlementplanhistory.FieldName: + case emailverificationtoken.FieldToken: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetName(v) + m.SetToken(v) return nil - case entitlementplanhistory.FieldDescription: - v, ok := value.(string) + case emailverificationtoken.FieldTTL: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetTTL(v) return nil - case entitlementplanhistory.FieldVersion: + case emailverificationtoken.FieldEmail: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetVersion(v) + m.SetEmail(v) return nil - case entitlementplanhistory.FieldMetadata: - v, ok := value.(map[string]interface{}) + case emailverificationtoken.FieldSecret: + v, ok := value.([]byte) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMetadata(v) + m.SetSecret(v) return nil } - return fmt.Errorf("unknown EntitlementPlanHistory field %s", name) + return fmt.Errorf("unknown EmailVerificationToken field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *EntitlementPlanHistoryMutation) AddedFields() []string { +func (m *EmailVerificationTokenMutation) 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 *EntitlementPlanHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *EmailVerificationTokenMutation) 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 *EntitlementPlanHistoryMutation) AddField(name string, value ent.Value) error { +func (m *EmailVerificationTokenMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown EntitlementPlanHistory numeric field %s", name) + return fmt.Errorf("unknown EmailVerificationToken numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *EntitlementPlanHistoryMutation) ClearedFields() []string { +func (m *EmailVerificationTokenMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(entitlementplanhistory.FieldRef) { - fields = append(fields, entitlementplanhistory.FieldRef) - } - if m.FieldCleared(entitlementplanhistory.FieldCreatedAt) { - fields = append(fields, entitlementplanhistory.FieldCreatedAt) - } - if m.FieldCleared(entitlementplanhistory.FieldUpdatedAt) { - fields = append(fields, entitlementplanhistory.FieldUpdatedAt) - } - if m.FieldCleared(entitlementplanhistory.FieldCreatedBy) { - fields = append(fields, entitlementplanhistory.FieldCreatedBy) - } - if m.FieldCleared(entitlementplanhistory.FieldUpdatedBy) { - fields = append(fields, entitlementplanhistory.FieldUpdatedBy) - } - if m.FieldCleared(entitlementplanhistory.FieldDeletedAt) { - fields = append(fields, entitlementplanhistory.FieldDeletedAt) - } - if m.FieldCleared(entitlementplanhistory.FieldDeletedBy) { - fields = append(fields, entitlementplanhistory.FieldDeletedBy) + if m.FieldCleared(emailverificationtoken.FieldCreatedAt) { + fields = append(fields, emailverificationtoken.FieldCreatedAt) } - if m.FieldCleared(entitlementplanhistory.FieldTags) { - fields = append(fields, entitlementplanhistory.FieldTags) + if m.FieldCleared(emailverificationtoken.FieldUpdatedAt) { + fields = append(fields, emailverificationtoken.FieldUpdatedAt) } - if m.FieldCleared(entitlementplanhistory.FieldOwnerID) { - fields = append(fields, entitlementplanhistory.FieldOwnerID) + if m.FieldCleared(emailverificationtoken.FieldCreatedBy) { + fields = append(fields, emailverificationtoken.FieldCreatedBy) } - if m.FieldCleared(entitlementplanhistory.FieldDisplayName) { - fields = append(fields, entitlementplanhistory.FieldDisplayName) + if m.FieldCleared(emailverificationtoken.FieldUpdatedBy) { + fields = append(fields, emailverificationtoken.FieldUpdatedBy) } - if m.FieldCleared(entitlementplanhistory.FieldDescription) { - fields = append(fields, entitlementplanhistory.FieldDescription) + if m.FieldCleared(emailverificationtoken.FieldDeletedAt) { + fields = append(fields, emailverificationtoken.FieldDeletedAt) } - if m.FieldCleared(entitlementplanhistory.FieldMetadata) { - fields = append(fields, entitlementplanhistory.FieldMetadata) + if m.FieldCleared(emailverificationtoken.FieldDeletedBy) { + fields = append(fields, emailverificationtoken.FieldDeletedBy) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) FieldCleared(name string) bool { +func (m *EmailVerificationTokenMutation) 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 *EntitlementPlanHistoryMutation) ClearField(name string) error { +func (m *EmailVerificationTokenMutation) ClearField(name string) error { switch name { - case entitlementplanhistory.FieldRef: - m.ClearRef() - return nil - case entitlementplanhistory.FieldCreatedAt: + case emailverificationtoken.FieldCreatedAt: m.ClearCreatedAt() return nil - case entitlementplanhistory.FieldUpdatedAt: + case emailverificationtoken.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case entitlementplanhistory.FieldCreatedBy: + case emailverificationtoken.FieldCreatedBy: m.ClearCreatedBy() return nil - case entitlementplanhistory.FieldUpdatedBy: + case emailverificationtoken.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case entitlementplanhistory.FieldDeletedAt: + case emailverificationtoken.FieldDeletedAt: m.ClearDeletedAt() return nil - case entitlementplanhistory.FieldDeletedBy: + case emailverificationtoken.FieldDeletedBy: m.ClearDeletedBy() return nil - case entitlementplanhistory.FieldTags: - m.ClearTags() - return nil - case entitlementplanhistory.FieldOwnerID: - m.ClearOwnerID() - return nil - case entitlementplanhistory.FieldDisplayName: - m.ClearDisplayName() - return nil - case entitlementplanhistory.FieldDescription: - m.ClearDescription() - return nil - case entitlementplanhistory.FieldMetadata: - m.ClearMetadata() - return nil } - return fmt.Errorf("unknown EntitlementPlanHistory nullable field %s", name) + return fmt.Errorf("unknown EmailVerificationToken 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 *EntitlementPlanHistoryMutation) ResetField(name string) error { +func (m *EmailVerificationTokenMutation) ResetField(name string) error { switch name { - case entitlementplanhistory.FieldHistoryTime: - m.ResetHistoryTime() - return nil - case entitlementplanhistory.FieldRef: - m.ResetRef() - return nil - case entitlementplanhistory.FieldOperation: - m.ResetOperation() - return nil - case entitlementplanhistory.FieldCreatedAt: + case emailverificationtoken.FieldCreatedAt: m.ResetCreatedAt() return nil - case entitlementplanhistory.FieldUpdatedAt: + case emailverificationtoken.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case entitlementplanhistory.FieldCreatedBy: + case emailverificationtoken.FieldCreatedBy: m.ResetCreatedBy() return nil - case entitlementplanhistory.FieldUpdatedBy: + case emailverificationtoken.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case entitlementplanhistory.FieldMappingID: + case emailverificationtoken.FieldMappingID: m.ResetMappingID() return nil - case entitlementplanhistory.FieldDeletedAt: + case emailverificationtoken.FieldDeletedAt: m.ResetDeletedAt() return nil - case entitlementplanhistory.FieldDeletedBy: + case emailverificationtoken.FieldDeletedBy: m.ResetDeletedBy() return nil - case entitlementplanhistory.FieldTags: - m.ResetTags() - return nil - case entitlementplanhistory.FieldOwnerID: + case emailverificationtoken.FieldOwnerID: m.ResetOwnerID() return nil - case entitlementplanhistory.FieldDisplayName: - m.ResetDisplayName() - return nil - case entitlementplanhistory.FieldName: - m.ResetName() + case emailverificationtoken.FieldToken: + m.ResetToken() return nil - case entitlementplanhistory.FieldDescription: - m.ResetDescription() + case emailverificationtoken.FieldTTL: + m.ResetTTL() return nil - case entitlementplanhistory.FieldVersion: - m.ResetVersion() + case emailverificationtoken.FieldEmail: + m.ResetEmail() return nil - case entitlementplanhistory.FieldMetadata: - m.ResetMetadata() + case emailverificationtoken.FieldSecret: + m.ResetSecret() return nil } - return fmt.Errorf("unknown EntitlementPlanHistory field %s", name) + return fmt.Errorf("unknown EmailVerificationToken field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *EntitlementPlanHistoryMutation) AddedEdges() []string { - edges := make([]string, 0, 0) +func (m *EmailVerificationTokenMutation) AddedEdges() []string { + edges := make([]string, 0, 1) + if m.owner != nil { + edges = append(edges, emailverificationtoken.EdgeOwner) + } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *EntitlementPlanHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *EmailVerificationTokenMutation) AddedIDs(name string) []ent.Value { + switch name { + case emailverificationtoken.EdgeOwner: + if id := m.owner; id != nil { + return []ent.Value{*id} + } + } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *EntitlementPlanHistoryMutation) RemovedEdges() []string { - edges := make([]string, 0, 0) +func (m *EmailVerificationTokenMutation) RemovedEdges() []string { + edges := make([]string, 0, 1) return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *EntitlementPlanHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *EmailVerificationTokenMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) ClearedEdges() []string { - edges := make([]string, 0, 0) +func (m *EmailVerificationTokenMutation) ClearedEdges() []string { + edges := make([]string, 0, 1) + if m.clearedowner { + edges = append(edges, emailverificationtoken.EdgeOwner) + } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *EntitlementPlanHistoryMutation) EdgeCleared(name string) bool { +func (m *EmailVerificationTokenMutation) EdgeCleared(name string) bool { + switch name { + case emailverificationtoken.EdgeOwner: + return m.clearedowner + } 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 *EntitlementPlanHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown EntitlementPlanHistory unique edge %s", name) +func (m *EmailVerificationTokenMutation) ClearEdge(name string) error { + switch name { + case emailverificationtoken.EdgeOwner: + m.ClearOwner() + return nil + } + return fmt.Errorf("unknown EmailVerificationToken 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 *EntitlementPlanHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown EntitlementPlanHistory edge %s", name) +func (m *EmailVerificationTokenMutation) ResetEdge(name string) error { + switch name { + case emailverificationtoken.EdgeOwner: + m.ResetOwner() + return nil + } + return fmt.Errorf("unknown EmailVerificationToken edge %s", name) } -// EntityMutation represents an operation that mutates the Entity nodes in the graph. -type EntityMutation struct { +// EntitlementMutation represents an operation that mutates the Entitlement nodes in the graph. +type EntitlementMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - deleted_at *time.Time - deleted_by *string - tags *[]string - appendtags []string - name *string - display_name *string - description *string - domains *[]string - appenddomains []string - status *string - clearedFields map[string]struct{} - owner *string - clearedowner bool - contacts map[string]struct{} - removedcontacts map[string]struct{} - clearedcontacts bool - documents map[string]struct{} - removeddocuments map[string]struct{} - cleareddocuments bool - notes map[string]struct{} - removednotes map[string]struct{} - clearednotes bool - files map[string]struct{} - removedfiles map[string]struct{} - clearedfiles bool - entity_type *string - clearedentity_type bool - done bool - oldValue func(context.Context) (*Entity, error) - predicates []predicate.Entity + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + external_customer_id *string + external_subscription_id *string + expires *bool + expires_at *time.Time + cancelled *bool + clearedFields map[string]struct{} + owner *string + clearedowner bool + plan *string + clearedplan bool + organization *string + clearedorganization bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + done bool + oldValue func(context.Context) (*Entitlement, error) + predicates []predicate.Entitlement } -var _ ent.Mutation = (*EntityMutation)(nil) +var _ ent.Mutation = (*EntitlementMutation)(nil) -// entityOption allows management of the mutation configuration using functional options. -type entityOption func(*EntityMutation) +// entitlementOption allows management of the mutation configuration using functional options. +type entitlementOption func(*EntitlementMutation) -// newEntityMutation creates new mutation for the Entity entity. -func newEntityMutation(c config, op Op, opts ...entityOption) *EntityMutation { - m := &EntityMutation{ +// newEntitlementMutation creates new mutation for the Entitlement entity. +func newEntitlementMutation(c config, op Op, opts ...entitlementOption) *EntitlementMutation { + m := &EntitlementMutation{ config: c, op: op, - typ: TypeEntity, + typ: TypeEntitlement, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -17361,20 +20005,20 @@ func newEntityMutation(c config, op Op, opts ...entityOption) *EntityMutation { return m } -// withEntityID sets the ID field of the mutation. -func withEntityID(id string) entityOption { - return func(m *EntityMutation) { +// withEntitlementID sets the ID field of the mutation. +func withEntitlementID(id string) entitlementOption { + return func(m *EntitlementMutation) { var ( err error once sync.Once - value *Entity + value *Entitlement ) - m.oldValue = func(ctx context.Context) (*Entity, error) { + m.oldValue = func(ctx context.Context) (*Entitlement, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().Entity.Get(ctx, id) + value, err = m.Client().Entitlement.Get(ctx, id) } }) return value, err @@ -17383,10 +20027,10 @@ func withEntityID(id string) entityOption { } } -// withEntity sets the old Entity of the mutation. -func withEntity(node *Entity) entityOption { - return func(m *EntityMutation) { - m.oldValue = func(context.Context) (*Entity, error) { +// withEntitlement sets the old Entitlement of the mutation. +func withEntitlement(node *Entitlement) entitlementOption { + return func(m *EntitlementMutation) { + m.oldValue = func(context.Context) (*Entitlement, error) { return node, nil } m.id = &node.ID @@ -17395,7 +20039,7 @@ func withEntity(node *Entity) entityOption { // 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 EntityMutation) Client() *Client { +func (m EntitlementMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -17403,7 +20047,7 @@ func (m EntityMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EntityMutation) Tx() (*Tx, error) { +func (m EntitlementMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -17413,14 +20057,14 @@ func (m EntityMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of Entity entities. -func (m *EntityMutation) SetID(id string) { +// operation is only accepted on creation of Entitlement entities. +func (m *EntitlementMutation) 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 *EntityMutation) ID() (id string, exists bool) { +func (m *EntitlementMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -17431,7 +20075,7 @@ func (m *EntityMutation) ID() (id string, exists bool) { // 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 *EntityMutation) IDs(ctx context.Context) ([]string, error) { +func (m *EntitlementMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -17440,19 +20084,19 @@ func (m *EntityMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().Entity.Query().Where(m.predicates...).IDs(ctx) + return m.Client().Entitlement.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 *EntityMutation) SetCreatedAt(t time.Time) { +func (m *EntitlementMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EntityMutation) CreatedAt() (r time.Time, exists bool) { +func (m *EntitlementMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -17460,10 +20104,10 @@ func (m *EntityMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementMutation) 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") } @@ -17478,30 +20122,30 @@ func (m *EntityMutation) OldCreatedAt(ctx context.Context) (v time.Time, err err } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EntityMutation) ClearCreatedAt() { +func (m *EntitlementMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[entity.FieldCreatedAt] = struct{}{} + m.clearedFields[entitlement.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EntityMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[entity.FieldCreatedAt] +func (m *EntitlementMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[entitlement.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EntityMutation) ResetCreatedAt() { +func (m *EntitlementMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, entity.FieldCreatedAt) + delete(m.clearedFields, entitlement.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EntityMutation) SetUpdatedAt(t time.Time) { +func (m *EntitlementMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EntityMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *EntitlementMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -17509,10 +20153,10 @@ func (m *EntityMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementMutation) 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") } @@ -17527,30 +20171,30 @@ func (m *EntityMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err err } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EntityMutation) ClearUpdatedAt() { +func (m *EntitlementMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[entity.FieldUpdatedAt] = struct{}{} + m.clearedFields[entitlement.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EntityMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[entity.FieldUpdatedAt] +func (m *EntitlementMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[entitlement.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EntityMutation) ResetUpdatedAt() { +func (m *EntitlementMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, entity.FieldUpdatedAt) + delete(m.clearedFields, entitlement.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EntityMutation) SetCreatedBy(s string) { +func (m *EntitlementMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EntityMutation) CreatedBy() (r string, exists bool) { +func (m *EntitlementMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -17558,10 +20202,10 @@ func (m *EntityMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -17576,30 +20220,30 @@ func (m *EntityMutation) OldCreatedBy(ctx context.Context) (v string, err error) } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EntityMutation) ClearCreatedBy() { +func (m *EntitlementMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[entity.FieldCreatedBy] = struct{}{} + m.clearedFields[entitlement.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EntityMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[entity.FieldCreatedBy] +func (m *EntitlementMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[entitlement.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EntityMutation) ResetCreatedBy() { +func (m *EntitlementMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, entity.FieldCreatedBy) + delete(m.clearedFields, entitlement.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EntityMutation) SetUpdatedBy(s string) { +func (m *EntitlementMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EntityMutation) UpdatedBy() (r string, exists bool) { +func (m *EntitlementMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -17607,10 +20251,10 @@ func (m *EntityMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -17625,30 +20269,30 @@ func (m *EntityMutation) OldUpdatedBy(ctx context.Context) (v string, err error) } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EntityMutation) ClearUpdatedBy() { +func (m *EntitlementMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[entity.FieldUpdatedBy] = struct{}{} + m.clearedFields[entitlement.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EntityMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[entity.FieldUpdatedBy] +func (m *EntitlementMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[entitlement.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EntityMutation) ResetUpdatedBy() { +func (m *EntitlementMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, entity.FieldUpdatedBy) + delete(m.clearedFields, entitlement.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *EntityMutation) SetMappingID(s string) { +func (m *EntitlementMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EntityMutation) MappingID() (r string, exists bool) { +func (m *EntitlementMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -17656,10 +20300,10 @@ func (m *EntityMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *EntitlementMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -17674,17 +20318,82 @@ func (m *EntityMutation) OldMappingID(ctx context.Context) (v string, err error) } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *EntityMutation) ResetMappingID() { +func (m *EntitlementMutation) ResetMappingID() { m.mapping_id = nil } +// SetTags sets the "tags" field. +func (m *EntitlementMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *EntitlementMutation) 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 Entitlement entity. +// If the Entitlement 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 *EntitlementMutation) 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 *EntitlementMutation) 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 *EntitlementMutation) 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 *EntitlementMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[entitlement.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *EntitlementMutation) TagsCleared() bool { + _, ok := m.clearedFields[entitlement.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *EntitlementMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, entitlement.FieldTags) +} + // SetDeletedAt sets the "deleted_at" field. -func (m *EntityMutation) SetDeletedAt(t time.Time) { +func (m *EntitlementMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *EntityMutation) DeletedAt() (r time.Time, exists bool) { +func (m *EntitlementMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -17692,10 +20401,10 @@ func (m *EntityMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementMutation) 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") } @@ -17710,30 +20419,30 @@ func (m *EntityMutation) OldDeletedAt(ctx context.Context) (v time.Time, err err } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *EntityMutation) ClearDeletedAt() { +func (m *EntitlementMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[entity.FieldDeletedAt] = struct{}{} + m.clearedFields[entitlement.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *EntityMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[entity.FieldDeletedAt] +func (m *EntitlementMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[entitlement.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *EntityMutation) ResetDeletedAt() { +func (m *EntitlementMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, entity.FieldDeletedAt) + delete(m.clearedFields, entitlement.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *EntityMutation) SetDeletedBy(s string) { +func (m *EntitlementMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *EntityMutation) DeletedBy() (r string, exists bool) { +func (m *EntitlementMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -17741,10 +20450,10 @@ func (m *EntityMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -17759,462 +20468,378 @@ func (m *EntityMutation) OldDeletedBy(ctx context.Context) (v string, err error) } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *EntityMutation) ClearDeletedBy() { +func (m *EntitlementMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[entity.FieldDeletedBy] = struct{}{} + m.clearedFields[entitlement.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *EntityMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[entity.FieldDeletedBy] +func (m *EntitlementMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[entitlement.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *EntityMutation) ResetDeletedBy() { +func (m *EntitlementMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, entity.FieldDeletedBy) + delete(m.clearedFields, entitlement.FieldDeletedBy) } -// SetTags sets the "tags" field. -func (m *EntityMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil +// SetOwnerID sets the "owner_id" field. +func (m *EntitlementMutation) SetOwnerID(s string) { + m.owner = &s } -// Tags returns the value of the "tags" field in the mutation. -func (m *EntityMutation) Tags() (r []string, exists bool) { - v := m.tags +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *EntitlementMutation) OwnerID() (r string, exists bool) { + v := m.owner if v == nil { return } return *v, true } -// OldTags returns the old "tags" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *EntitlementMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTags is only allowed on UpdateOne operations") + return v, errors.New("OldOwnerID 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") + 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 OldTags: %w", err) + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) } - return oldValue.Tags, nil + return oldValue.OwnerID, nil } -// AppendTags adds s to the "tags" field. -func (m *EntityMutation) AppendTags(s []string) { - m.appendtags = append(m.appendtags, s...) +// ClearOwnerID clears the value of the "owner_id" field. +func (m *EntitlementMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[entitlement.FieldOwnerID] = struct{}{} } -// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. -func (m *EntityMutation) AppendedTags() ([]string, bool) { - if len(m.appendtags) == 0 { - return nil, false - } - return m.appendtags, true +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *EntitlementMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[entitlement.FieldOwnerID] + return ok } -// ClearTags clears the value of the "tags" field. -func (m *EntityMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[entity.FieldTags] = struct{}{} +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *EntitlementMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, entitlement.FieldOwnerID) } -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *EntityMutation) TagsCleared() bool { - _, ok := m.clearedFields[entity.FieldTags] - return ok +// SetPlanID sets the "plan_id" field. +func (m *EntitlementMutation) SetPlanID(s string) { + m.plan = &s } -// ResetTags resets all changes to the "tags" field. -func (m *EntityMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, entity.FieldTags) +// PlanID returns the value of the "plan_id" field in the mutation. +func (m *EntitlementMutation) PlanID() (r string, exists bool) { + v := m.plan + if v == nil { + return + } + return *v, true } -// SetOwnerID sets the "owner_id" field. -func (m *EntityMutation) SetOwnerID(s string) { - m.owner = &s -} - -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *EntityMutation) 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 Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldPlanID returns the old "plan_id" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *EntitlementMutation) OldPlanID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldPlanID 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") + return v, errors.New("OldPlanID 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 v, fmt.Errorf("querying old value for OldPlanID: %w", err) } - return oldValue.OwnerID, nil -} - -// ClearOwnerID clears the value of the "owner_id" field. -func (m *EntityMutation) ClearOwnerID() { - m.owner = nil - m.clearedFields[entity.FieldOwnerID] = struct{}{} -} - -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *EntityMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[entity.FieldOwnerID] - return ok + return oldValue.PlanID, nil } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *EntityMutation) ResetOwnerID() { - m.owner = nil - delete(m.clearedFields, entity.FieldOwnerID) +// ResetPlanID resets all changes to the "plan_id" field. +func (m *EntitlementMutation) ResetPlanID() { + m.plan = nil } -// SetName sets the "name" field. -func (m *EntityMutation) SetName(s string) { - m.name = &s +// SetOrganizationID sets the "organization_id" field. +func (m *EntitlementMutation) SetOrganizationID(s string) { + m.organization = &s } -// Name returns the value of the "name" field in the mutation. -func (m *EntityMutation) Name() (r string, exists bool) { - v := m.name +// OrganizationID returns the value of the "organization_id" field in the mutation. +func (m *EntitlementMutation) OrganizationID() (r string, exists bool) { + v := m.organization if v == nil { return } return *v, true } -// OldName returns the old "name" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldOrganizationID returns the old "organization_id" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldName(ctx context.Context) (v string, err error) { +func (m *EntitlementMutation) OldOrganizationID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldName is only allowed on UpdateOne operations") + return v, errors.New("OldOrganizationID 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") + return v, errors.New("OldOrganizationID 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 v, fmt.Errorf("querying old value for OldOrganizationID: %w", err) } - return oldValue.Name, nil -} - -// ClearName clears the value of the "name" field. -func (m *EntityMutation) ClearName() { - m.name = nil - m.clearedFields[entity.FieldName] = struct{}{} -} - -// NameCleared returns if the "name" field was cleared in this mutation. -func (m *EntityMutation) NameCleared() bool { - _, ok := m.clearedFields[entity.FieldName] - return ok + return oldValue.OrganizationID, nil } -// ResetName resets all changes to the "name" field. -func (m *EntityMutation) ResetName() { - m.name = nil - delete(m.clearedFields, entity.FieldName) +// ResetOrganizationID resets all changes to the "organization_id" field. +func (m *EntitlementMutation) ResetOrganizationID() { + m.organization = nil } -// SetDisplayName sets the "display_name" field. -func (m *EntityMutation) SetDisplayName(s string) { - m.display_name = &s +// SetExternalCustomerID sets the "external_customer_id" field. +func (m *EntitlementMutation) SetExternalCustomerID(s string) { + m.external_customer_id = &s } -// DisplayName returns the value of the "display_name" field in the mutation. -func (m *EntityMutation) DisplayName() (r string, exists bool) { - v := m.display_name +// ExternalCustomerID returns the value of the "external_customer_id" field in the mutation. +func (m *EntitlementMutation) ExternalCustomerID() (r string, exists bool) { + v := m.external_customer_id if v == nil { return } return *v, true } -// OldDisplayName returns the old "display_name" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldExternalCustomerID returns the old "external_customer_id" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldDisplayName(ctx context.Context) (v string, err error) { +func (m *EntitlementMutation) OldExternalCustomerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") + return v, errors.New("OldExternalCustomerID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDisplayName requires an ID field in the mutation") + return v, errors.New("OldExternalCustomerID requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) + return v, fmt.Errorf("querying old value for OldExternalCustomerID: %w", err) } - return oldValue.DisplayName, nil + return oldValue.ExternalCustomerID, nil } -// ClearDisplayName clears the value of the "display_name" field. -func (m *EntityMutation) ClearDisplayName() { - m.display_name = nil - m.clearedFields[entity.FieldDisplayName] = struct{}{} +// ClearExternalCustomerID clears the value of the "external_customer_id" field. +func (m *EntitlementMutation) ClearExternalCustomerID() { + m.external_customer_id = nil + m.clearedFields[entitlement.FieldExternalCustomerID] = struct{}{} } -// DisplayNameCleared returns if the "display_name" field was cleared in this mutation. -func (m *EntityMutation) DisplayNameCleared() bool { - _, ok := m.clearedFields[entity.FieldDisplayName] +// ExternalCustomerIDCleared returns if the "external_customer_id" field was cleared in this mutation. +func (m *EntitlementMutation) ExternalCustomerIDCleared() bool { + _, ok := m.clearedFields[entitlement.FieldExternalCustomerID] return ok } -// ResetDisplayName resets all changes to the "display_name" field. -func (m *EntityMutation) ResetDisplayName() { - m.display_name = nil - delete(m.clearedFields, entity.FieldDisplayName) +// ResetExternalCustomerID resets all changes to the "external_customer_id" field. +func (m *EntitlementMutation) ResetExternalCustomerID() { + m.external_customer_id = nil + delete(m.clearedFields, entitlement.FieldExternalCustomerID) } -// SetDescription sets the "description" field. -func (m *EntityMutation) SetDescription(s string) { - m.description = &s +// SetExternalSubscriptionID sets the "external_subscription_id" field. +func (m *EntitlementMutation) SetExternalSubscriptionID(s string) { + m.external_subscription_id = &s } -// Description returns the value of the "description" field in the mutation. -func (m *EntityMutation) Description() (r string, exists bool) { - v := m.description +// ExternalSubscriptionID returns the value of the "external_subscription_id" field in the mutation. +func (m *EntitlementMutation) ExternalSubscriptionID() (r string, exists bool) { + v := m.external_subscription_id if v == nil { return } return *v, true } -// OldDescription returns the old "description" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldExternalSubscriptionID returns the old "external_subscription_id" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldDescription(ctx context.Context) (v string, err error) { +func (m *EntitlementMutation) OldExternalSubscriptionID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDescription is only allowed on UpdateOne operations") + return v, errors.New("OldExternalSubscriptionID 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") + return v, errors.New("OldExternalSubscriptionID 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 v, fmt.Errorf("querying old value for OldExternalSubscriptionID: %w", err) } - return oldValue.Description, nil + return oldValue.ExternalSubscriptionID, nil } -// ClearDescription clears the value of the "description" field. -func (m *EntityMutation) ClearDescription() { - m.description = nil - m.clearedFields[entity.FieldDescription] = struct{}{} +// ClearExternalSubscriptionID clears the value of the "external_subscription_id" field. +func (m *EntitlementMutation) ClearExternalSubscriptionID() { + m.external_subscription_id = nil + m.clearedFields[entitlement.FieldExternalSubscriptionID] = struct{}{} } -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *EntityMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[entity.FieldDescription] +// ExternalSubscriptionIDCleared returns if the "external_subscription_id" field was cleared in this mutation. +func (m *EntitlementMutation) ExternalSubscriptionIDCleared() bool { + _, ok := m.clearedFields[entitlement.FieldExternalSubscriptionID] return ok } -// ResetDescription resets all changes to the "description" field. -func (m *EntityMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, entity.FieldDescription) +// ResetExternalSubscriptionID resets all changes to the "external_subscription_id" field. +func (m *EntitlementMutation) ResetExternalSubscriptionID() { + m.external_subscription_id = nil + delete(m.clearedFields, entitlement.FieldExternalSubscriptionID) } -// SetDomains sets the "domains" field. -func (m *EntityMutation) SetDomains(s []string) { - m.domains = &s - m.appenddomains = nil +// SetExpires sets the "expires" field. +func (m *EntitlementMutation) SetExpires(b bool) { + m.expires = &b } -// Domains returns the value of the "domains" field in the mutation. -func (m *EntityMutation) Domains() (r []string, exists bool) { - v := m.domains +// Expires returns the value of the "expires" field in the mutation. +func (m *EntitlementMutation) Expires() (r bool, exists bool) { + v := m.expires if v == nil { return } return *v, true } -// OldDomains returns the old "domains" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldExpires returns the old "expires" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldDomains(ctx context.Context) (v []string, err error) { +func (m *EntitlementMutation) OldExpires(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDomains is only allowed on UpdateOne operations") + return v, errors.New("OldExpires is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDomains requires an ID field in the mutation") + return v, errors.New("OldExpires requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldDomains: %w", err) - } - return oldValue.Domains, nil -} - -// AppendDomains adds s to the "domains" field. -func (m *EntityMutation) AppendDomains(s []string) { - m.appenddomains = append(m.appenddomains, s...) -} - -// AppendedDomains returns the list of values that were appended to the "domains" field in this mutation. -func (m *EntityMutation) AppendedDomains() ([]string, bool) { - if len(m.appenddomains) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldExpires: %w", err) } - return m.appenddomains, true -} - -// ClearDomains clears the value of the "domains" field. -func (m *EntityMutation) ClearDomains() { - m.domains = nil - m.appenddomains = nil - m.clearedFields[entity.FieldDomains] = struct{}{} -} - -// DomainsCleared returns if the "domains" field was cleared in this mutation. -func (m *EntityMutation) DomainsCleared() bool { - _, ok := m.clearedFields[entity.FieldDomains] - return ok + return oldValue.Expires, nil } -// ResetDomains resets all changes to the "domains" field. -func (m *EntityMutation) ResetDomains() { - m.domains = nil - m.appenddomains = nil - delete(m.clearedFields, entity.FieldDomains) +// ResetExpires resets all changes to the "expires" field. +func (m *EntitlementMutation) ResetExpires() { + m.expires = nil } -// SetEntityTypeID sets the "entity_type_id" field. -func (m *EntityMutation) SetEntityTypeID(s string) { - m.entity_type = &s +// SetExpiresAt sets the "expires_at" field. +func (m *EntitlementMutation) SetExpiresAt(t time.Time) { + m.expires_at = &t } -// EntityTypeID returns the value of the "entity_type_id" field in the mutation. -func (m *EntityMutation) EntityTypeID() (r string, exists bool) { - v := m.entity_type +// ExpiresAt returns the value of the "expires_at" field in the mutation. +func (m *EntitlementMutation) ExpiresAt() (r time.Time, exists bool) { + v := m.expires_at if v == nil { return } return *v, true } -// OldEntityTypeID returns the old "entity_type_id" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldExpiresAt returns the old "expires_at" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldEntityTypeID(ctx context.Context) (v string, err error) { +func (m *EntitlementMutation) OldExpiresAt(ctx context.Context) (v *time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldEntityTypeID is only allowed on UpdateOne operations") + return v, errors.New("OldExpiresAt is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldEntityTypeID requires an ID field in the mutation") + return v, errors.New("OldExpiresAt requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldEntityTypeID: %w", err) + return v, fmt.Errorf("querying old value for OldExpiresAt: %w", err) } - return oldValue.EntityTypeID, nil + return oldValue.ExpiresAt, nil } -// ClearEntityTypeID clears the value of the "entity_type_id" field. -func (m *EntityMutation) ClearEntityTypeID() { - m.entity_type = nil - m.clearedFields[entity.FieldEntityTypeID] = struct{}{} +// ClearExpiresAt clears the value of the "expires_at" field. +func (m *EntitlementMutation) ClearExpiresAt() { + m.expires_at = nil + m.clearedFields[entitlement.FieldExpiresAt] = struct{}{} } -// EntityTypeIDCleared returns if the "entity_type_id" field was cleared in this mutation. -func (m *EntityMutation) EntityTypeIDCleared() bool { - _, ok := m.clearedFields[entity.FieldEntityTypeID] +// ExpiresAtCleared returns if the "expires_at" field was cleared in this mutation. +func (m *EntitlementMutation) ExpiresAtCleared() bool { + _, ok := m.clearedFields[entitlement.FieldExpiresAt] return ok } -// ResetEntityTypeID resets all changes to the "entity_type_id" field. -func (m *EntityMutation) ResetEntityTypeID() { - m.entity_type = nil - delete(m.clearedFields, entity.FieldEntityTypeID) +// ResetExpiresAt resets all changes to the "expires_at" field. +func (m *EntitlementMutation) ResetExpiresAt() { + m.expires_at = nil + delete(m.clearedFields, entitlement.FieldExpiresAt) } -// SetStatus sets the "status" field. -func (m *EntityMutation) SetStatus(s string) { - m.status = &s +// SetCancelled sets the "cancelled" field. +func (m *EntitlementMutation) SetCancelled(b bool) { + m.cancelled = &b } -// Status returns the value of the "status" field in the mutation. -func (m *EntityMutation) Status() (r string, exists bool) { - v := m.status +// Cancelled returns the value of the "cancelled" field in the mutation. +func (m *EntitlementMutation) Cancelled() (r bool, exists bool) { + v := m.cancelled if v == nil { return } return *v, true } -// OldStatus returns the old "status" field's value of the Entity entity. -// If the Entity object wasn't provided to the builder, the object is fetched from the database. +// OldCancelled returns the old "cancelled" field's value of the Entitlement entity. +// If the Entitlement 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 *EntityMutation) OldStatus(ctx context.Context) (v string, err error) { +func (m *EntitlementMutation) OldCancelled(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStatus is only allowed on UpdateOne operations") + return v, errors.New("OldCancelled is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStatus requires an ID field in the mutation") + return v, errors.New("OldCancelled requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldStatus: %w", err) + return v, fmt.Errorf("querying old value for OldCancelled: %w", err) } - return oldValue.Status, nil -} - -// ClearStatus clears the value of the "status" field. -func (m *EntityMutation) ClearStatus() { - m.status = nil - m.clearedFields[entity.FieldStatus] = struct{}{} -} - -// StatusCleared returns if the "status" field was cleared in this mutation. -func (m *EntityMutation) StatusCleared() bool { - _, ok := m.clearedFields[entity.FieldStatus] - return ok + return oldValue.Cancelled, nil } -// ResetStatus resets all changes to the "status" field. -func (m *EntityMutation) ResetStatus() { - m.status = nil - delete(m.clearedFields, entity.FieldStatus) +// ResetCancelled resets all changes to the "cancelled" field. +func (m *EntitlementMutation) ResetCancelled() { + m.cancelled = nil } // ClearOwner clears the "owner" edge to the Organization entity. -func (m *EntityMutation) ClearOwner() { +func (m *EntitlementMutation) ClearOwner() { m.clearedowner = true - m.clearedFields[entity.FieldOwnerID] = struct{}{} + m.clearedFields[entitlement.FieldOwnerID] = struct{}{} } // OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *EntityMutation) OwnerCleared() bool { +func (m *EntitlementMutation) 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 *EntityMutation) OwnerIDs() (ids []string) { +func (m *EntitlementMutation) OwnerIDs() (ids []string) { if id := m.owner; id != nil { ids = append(ids, *id) } @@ -18222,333 +20847,201 @@ func (m *EntityMutation) OwnerIDs() (ids []string) { } // ResetOwner resets all changes to the "owner" edge. -func (m *EntityMutation) ResetOwner() { +func (m *EntitlementMutation) ResetOwner() { m.owner = nil m.clearedowner = false } -// AddContactIDs adds the "contacts" edge to the Contact entity by ids. -func (m *EntityMutation) AddContactIDs(ids ...string) { - if m.contacts == nil { - m.contacts = make(map[string]struct{}) - } - for i := range ids { - m.contacts[ids[i]] = struct{}{} - } +// ClearPlan clears the "plan" edge to the EntitlementPlan entity. +func (m *EntitlementMutation) ClearPlan() { + m.clearedplan = true + m.clearedFields[entitlement.FieldPlanID] = struct{}{} } -// ClearContacts clears the "contacts" edge to the Contact entity. -func (m *EntityMutation) ClearContacts() { - m.clearedcontacts = true +// PlanCleared reports if the "plan" edge to the EntitlementPlan entity was cleared. +func (m *EntitlementMutation) PlanCleared() bool { + return m.clearedplan } -// ContactsCleared reports if the "contacts" edge to the Contact entity was cleared. -func (m *EntityMutation) ContactsCleared() bool { - return m.clearedcontacts +// PlanIDs returns the "plan" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// PlanID instead. It exists only for internal usage by the builders. +func (m *EntitlementMutation) PlanIDs() (ids []string) { + if id := m.plan; id != nil { + ids = append(ids, *id) + } + return } -// RemoveContactIDs removes the "contacts" edge to the Contact entity by IDs. -func (m *EntityMutation) RemoveContactIDs(ids ...string) { - if m.removedcontacts == nil { - m.removedcontacts = make(map[string]struct{}) - } - for i := range ids { - delete(m.contacts, ids[i]) - m.removedcontacts[ids[i]] = struct{}{} - } +// ResetPlan resets all changes to the "plan" edge. +func (m *EntitlementMutation) ResetPlan() { + m.plan = nil + m.clearedplan = false } -// RemovedContacts returns the removed IDs of the "contacts" edge to the Contact entity. -func (m *EntityMutation) RemovedContactsIDs() (ids []string) { - for id := range m.removedcontacts { - ids = append(ids, id) - } - return +// ClearOrganization clears the "organization" edge to the Organization entity. +func (m *EntitlementMutation) ClearOrganization() { + m.clearedorganization = true + m.clearedFields[entitlement.FieldOrganizationID] = struct{}{} } -// ContactsIDs returns the "contacts" edge IDs in the mutation. -func (m *EntityMutation) ContactsIDs() (ids []string) { - for id := range m.contacts { - ids = append(ids, id) +// OrganizationCleared reports if the "organization" edge to the Organization entity was cleared. +func (m *EntitlementMutation) OrganizationCleared() bool { + return m.clearedorganization +} + +// OrganizationIDs returns the "organization" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// OrganizationID instead. It exists only for internal usage by the builders. +func (m *EntitlementMutation) OrganizationIDs() (ids []string) { + if id := m.organization; id != nil { + ids = append(ids, *id) } return } -// ResetContacts resets all changes to the "contacts" edge. -func (m *EntityMutation) ResetContacts() { - m.contacts = nil - m.clearedcontacts = false - m.removedcontacts = nil +// ResetOrganization resets all changes to the "organization" edge. +func (m *EntitlementMutation) ResetOrganization() { + m.organization = nil + m.clearedorganization = false } -// AddDocumentIDs adds the "documents" edge to the DocumentData entity by ids. -func (m *EntityMutation) AddDocumentIDs(ids ...string) { - if m.documents == nil { - m.documents = make(map[string]struct{}) +// AddEventIDs adds the "events" edge to the Event entity by ids. +func (m *EntitlementMutation) AddEventIDs(ids ...string) { + if m.events == nil { + m.events = make(map[string]struct{}) } for i := range ids { - m.documents[ids[i]] = struct{}{} + m.events[ids[i]] = struct{}{} } } -// ClearDocuments clears the "documents" edge to the DocumentData entity. -func (m *EntityMutation) ClearDocuments() { - m.cleareddocuments = true +// ClearEvents clears the "events" edge to the Event entity. +func (m *EntitlementMutation) ClearEvents() { + m.clearedevents = true } -// DocumentsCleared reports if the "documents" edge to the DocumentData entity was cleared. -func (m *EntityMutation) DocumentsCleared() bool { - return m.cleareddocuments +// EventsCleared reports if the "events" edge to the Event entity was cleared. +func (m *EntitlementMutation) EventsCleared() bool { + return m.clearedevents } -// RemoveDocumentIDs removes the "documents" edge to the DocumentData entity by IDs. -func (m *EntityMutation) RemoveDocumentIDs(ids ...string) { - if m.removeddocuments == nil { - m.removeddocuments = make(map[string]struct{}) +// RemoveEventIDs removes the "events" edge to the Event entity by IDs. +func (m *EntitlementMutation) RemoveEventIDs(ids ...string) { + if m.removedevents == nil { + m.removedevents = make(map[string]struct{}) } for i := range ids { - delete(m.documents, ids[i]) - m.removeddocuments[ids[i]] = struct{}{} + delete(m.events, ids[i]) + m.removedevents[ids[i]] = struct{}{} } } -// RemovedDocuments returns the removed IDs of the "documents" edge to the DocumentData entity. -func (m *EntityMutation) RemovedDocumentsIDs() (ids []string) { - for id := range m.removeddocuments { +// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. +func (m *EntitlementMutation) RemovedEventsIDs() (ids []string) { + for id := range m.removedevents { ids = append(ids, id) } return } -// DocumentsIDs returns the "documents" edge IDs in the mutation. -func (m *EntityMutation) DocumentsIDs() (ids []string) { - for id := range m.documents { +// EventsIDs returns the "events" edge IDs in the mutation. +func (m *EntitlementMutation) EventsIDs() (ids []string) { + for id := range m.events { ids = append(ids, id) } return } -// ResetDocuments resets all changes to the "documents" edge. -func (m *EntityMutation) ResetDocuments() { - m.documents = nil - m.cleareddocuments = false - m.removeddocuments = nil +// ResetEvents resets all changes to the "events" edge. +func (m *EntitlementMutation) ResetEvents() { + m.events = nil + m.clearedevents = false + m.removedevents = nil } -// AddNoteIDs adds the "notes" edge to the Note entity by ids. -func (m *EntityMutation) AddNoteIDs(ids ...string) { - if m.notes == nil { - m.notes = make(map[string]struct{}) - } - for i := range ids { - m.notes[ids[i]] = struct{}{} - } +// Where appends a list predicates to the EntitlementMutation builder. +func (m *EntitlementMutation) Where(ps ...predicate.Entitlement) { + m.predicates = append(m.predicates, ps...) } -// ClearNotes clears the "notes" edge to the Note entity. -func (m *EntityMutation) ClearNotes() { - m.clearednotes = true +// WhereP appends storage-level predicates to the EntitlementMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *EntitlementMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Entitlement, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) } -// NotesCleared reports if the "notes" edge to the Note entity was cleared. -func (m *EntityMutation) NotesCleared() bool { - return m.clearednotes -} - -// RemoveNoteIDs removes the "notes" edge to the Note entity by IDs. -func (m *EntityMutation) RemoveNoteIDs(ids ...string) { - if m.removednotes == nil { - m.removednotes = make(map[string]struct{}) - } - for i := range ids { - delete(m.notes, ids[i]) - m.removednotes[ids[i]] = struct{}{} - } -} - -// RemovedNotes returns the removed IDs of the "notes" edge to the Note entity. -func (m *EntityMutation) RemovedNotesIDs() (ids []string) { - for id := range m.removednotes { - ids = append(ids, id) - } - return -} - -// NotesIDs returns the "notes" edge IDs in the mutation. -func (m *EntityMutation) NotesIDs() (ids []string) { - for id := range m.notes { - ids = append(ids, id) - } - return -} - -// ResetNotes resets all changes to the "notes" edge. -func (m *EntityMutation) ResetNotes() { - m.notes = nil - m.clearednotes = false - m.removednotes = nil -} - -// AddFileIDs adds the "files" edge to the File entity by ids. -func (m *EntityMutation) AddFileIDs(ids ...string) { - if m.files == nil { - m.files = make(map[string]struct{}) - } - for i := range ids { - m.files[ids[i]] = struct{}{} - } -} - -// ClearFiles clears the "files" edge to the File entity. -func (m *EntityMutation) ClearFiles() { - m.clearedfiles = true -} - -// FilesCleared reports if the "files" edge to the File entity was cleared. -func (m *EntityMutation) FilesCleared() bool { - return m.clearedfiles -} - -// RemoveFileIDs removes the "files" edge to the File entity by IDs. -func (m *EntityMutation) RemoveFileIDs(ids ...string) { - if m.removedfiles == nil { - m.removedfiles = make(map[string]struct{}) - } - for i := range ids { - delete(m.files, ids[i]) - m.removedfiles[ids[i]] = struct{}{} - } -} - -// RemovedFiles returns the removed IDs of the "files" edge to the File entity. -func (m *EntityMutation) RemovedFilesIDs() (ids []string) { - for id := range m.removedfiles { - ids = append(ids, id) - } - return -} - -// FilesIDs returns the "files" edge IDs in the mutation. -func (m *EntityMutation) FilesIDs() (ids []string) { - for id := range m.files { - ids = append(ids, id) - } - return -} - -// ResetFiles resets all changes to the "files" edge. -func (m *EntityMutation) ResetFiles() { - m.files = nil - m.clearedfiles = false - m.removedfiles = nil -} - -// ClearEntityType clears the "entity_type" edge to the EntityType entity. -func (m *EntityMutation) ClearEntityType() { - m.clearedentity_type = true - m.clearedFields[entity.FieldEntityTypeID] = struct{}{} -} - -// EntityTypeCleared reports if the "entity_type" edge to the EntityType entity was cleared. -func (m *EntityMutation) EntityTypeCleared() bool { - return m.EntityTypeIDCleared() || m.clearedentity_type -} - -// EntityTypeIDs returns the "entity_type" edge IDs in the mutation. -// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use -// EntityTypeID instead. It exists only for internal usage by the builders. -func (m *EntityMutation) EntityTypeIDs() (ids []string) { - if id := m.entity_type; id != nil { - ids = append(ids, *id) - } - return -} - -// ResetEntityType resets all changes to the "entity_type" edge. -func (m *EntityMutation) ResetEntityType() { - m.entity_type = nil - m.clearedentity_type = false -} - -// Where appends a list predicates to the EntityMutation builder. -func (m *EntityMutation) Where(ps ...predicate.Entity) { - m.predicates = append(m.predicates, ps...) -} - -// WhereP appends storage-level predicates to the EntityMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EntityMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.Entity, len(ps)) - for i := range ps { - p[i] = ps[i] - } - m.Where(p...) -} - -// Op returns the operation name. -func (m *EntityMutation) Op() Op { - return m.op +// Op returns the operation name. +func (m *EntitlementMutation) Op() Op { + return m.op } // SetOp allows setting the mutation operation. -func (m *EntityMutation) SetOp(op Op) { +func (m *EntitlementMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (Entity). -func (m *EntityMutation) Type() string { +// Type returns the node type of this mutation (Entitlement). +func (m *EntitlementMutation) 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 *EntityMutation) Fields() []string { - fields := make([]string, 0, 15) +func (m *EntitlementMutation) Fields() []string { + fields := make([]string, 0, 16) if m.created_at != nil { - fields = append(fields, entity.FieldCreatedAt) + fields = append(fields, entitlement.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, entity.FieldUpdatedAt) + fields = append(fields, entitlement.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, entity.FieldCreatedBy) + fields = append(fields, entitlement.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, entity.FieldUpdatedBy) + fields = append(fields, entitlement.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, entity.FieldMappingID) + fields = append(fields, entitlement.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, entitlement.FieldTags) } if m.deleted_at != nil { - fields = append(fields, entity.FieldDeletedAt) + fields = append(fields, entitlement.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, entity.FieldDeletedBy) - } - if m.tags != nil { - fields = append(fields, entity.FieldTags) + fields = append(fields, entitlement.FieldDeletedBy) } if m.owner != nil { - fields = append(fields, entity.FieldOwnerID) + fields = append(fields, entitlement.FieldOwnerID) } - if m.name != nil { - fields = append(fields, entity.FieldName) + if m.plan != nil { + fields = append(fields, entitlement.FieldPlanID) } - if m.display_name != nil { - fields = append(fields, entity.FieldDisplayName) + if m.organization != nil { + fields = append(fields, entitlement.FieldOrganizationID) } - if m.description != nil { - fields = append(fields, entity.FieldDescription) + if m.external_customer_id != nil { + fields = append(fields, entitlement.FieldExternalCustomerID) } - if m.domains != nil { - fields = append(fields, entity.FieldDomains) + if m.external_subscription_id != nil { + fields = append(fields, entitlement.FieldExternalSubscriptionID) } - if m.entity_type != nil { - fields = append(fields, entity.FieldEntityTypeID) + if m.expires != nil { + fields = append(fields, entitlement.FieldExpires) } - if m.status != nil { - fields = append(fields, entity.FieldStatus) + if m.expires_at != nil { + fields = append(fields, entitlement.FieldExpiresAt) + } + if m.cancelled != nil { + fields = append(fields, entitlement.FieldCancelled) } return fields } @@ -18556,38 +21049,40 @@ func (m *EntityMutation) Fields() []string { // 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 *EntityMutation) Field(name string) (ent.Value, bool) { +func (m *EntitlementMutation) Field(name string) (ent.Value, bool) { switch name { - case entity.FieldCreatedAt: + case entitlement.FieldCreatedAt: return m.CreatedAt() - case entity.FieldUpdatedAt: + case entitlement.FieldUpdatedAt: return m.UpdatedAt() - case entity.FieldCreatedBy: + case entitlement.FieldCreatedBy: return m.CreatedBy() - case entity.FieldUpdatedBy: + case entitlement.FieldUpdatedBy: return m.UpdatedBy() - case entity.FieldMappingID: + case entitlement.FieldMappingID: return m.MappingID() - case entity.FieldDeletedAt: + case entitlement.FieldTags: + return m.Tags() + case entitlement.FieldDeletedAt: return m.DeletedAt() - case entity.FieldDeletedBy: + case entitlement.FieldDeletedBy: return m.DeletedBy() - case entity.FieldTags: - return m.Tags() - case entity.FieldOwnerID: + case entitlement.FieldOwnerID: return m.OwnerID() - case entity.FieldName: - return m.Name() - case entity.FieldDisplayName: - return m.DisplayName() - case entity.FieldDescription: - return m.Description() - case entity.FieldDomains: - return m.Domains() - case entity.FieldEntityTypeID: - return m.EntityTypeID() - case entity.FieldStatus: - return m.Status() + case entitlement.FieldPlanID: + return m.PlanID() + case entitlement.FieldOrganizationID: + return m.OrganizationID() + case entitlement.FieldExternalCustomerID: + return m.ExternalCustomerID() + case entitlement.FieldExternalSubscriptionID: + return m.ExternalSubscriptionID() + case entitlement.FieldExpires: + return m.Expires() + case entitlement.FieldExpiresAt: + return m.ExpiresAt() + case entitlement.FieldCancelled: + return m.Cancelled() } return nil, false } @@ -18595,444 +21090,391 @@ func (m *EntityMutation) Field(name string) (ent.Value, bool) { // 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 *EntityMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *EntitlementMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case entity.FieldCreatedAt: + case entitlement.FieldCreatedAt: return m.OldCreatedAt(ctx) - case entity.FieldUpdatedAt: + case entitlement.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case entity.FieldCreatedBy: + case entitlement.FieldCreatedBy: return m.OldCreatedBy(ctx) - case entity.FieldUpdatedBy: + case entitlement.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case entity.FieldMappingID: + case entitlement.FieldMappingID: return m.OldMappingID(ctx) - case entity.FieldDeletedAt: + case entitlement.FieldTags: + return m.OldTags(ctx) + case entitlement.FieldDeletedAt: return m.OldDeletedAt(ctx) - case entity.FieldDeletedBy: + case entitlement.FieldDeletedBy: return m.OldDeletedBy(ctx) - case entity.FieldTags: - return m.OldTags(ctx) - case entity.FieldOwnerID: + case entitlement.FieldOwnerID: return m.OldOwnerID(ctx) - case entity.FieldName: - return m.OldName(ctx) - case entity.FieldDisplayName: - return m.OldDisplayName(ctx) - case entity.FieldDescription: - return m.OldDescription(ctx) - case entity.FieldDomains: - return m.OldDomains(ctx) - case entity.FieldEntityTypeID: - return m.OldEntityTypeID(ctx) - case entity.FieldStatus: - return m.OldStatus(ctx) + case entitlement.FieldPlanID: + return m.OldPlanID(ctx) + case entitlement.FieldOrganizationID: + return m.OldOrganizationID(ctx) + case entitlement.FieldExternalCustomerID: + return m.OldExternalCustomerID(ctx) + case entitlement.FieldExternalSubscriptionID: + return m.OldExternalSubscriptionID(ctx) + case entitlement.FieldExpires: + return m.OldExpires(ctx) + case entitlement.FieldExpiresAt: + return m.OldExpiresAt(ctx) + case entitlement.FieldCancelled: + return m.OldCancelled(ctx) } - return nil, fmt.Errorf("unknown Entity field %s", name) + return nil, fmt.Errorf("unknown Entitlement 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 *EntityMutation) SetField(name string, value ent.Value) error { +func (m *EntitlementMutation) SetField(name string, value ent.Value) error { switch name { - case entity.FieldCreatedAt: + case entitlement.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 entity.FieldUpdatedAt: + case entitlement.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 entity.FieldCreatedBy: + case entitlement.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case entity.FieldUpdatedBy: + case entitlement.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case entity.FieldMappingID: + case entitlement.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case entity.FieldDeletedAt: + case entitlement.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case entitlement.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 entity.FieldDeletedBy: + case entitlement.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case entity.FieldTags: - v, ok := value.([]string) + case entitlement.FieldOwnerID: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTags(v) + m.SetOwnerID(v) return nil - case entity.FieldOwnerID: + case entitlement.FieldPlanID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetPlanID(v) return nil - case entity.FieldName: + case entitlement.FieldOrganizationID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetName(v) + m.SetOrganizationID(v) return nil - case entity.FieldDisplayName: + case entitlement.FieldExternalCustomerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDisplayName(v) + m.SetExternalCustomerID(v) return nil - case entity.FieldDescription: + case entitlement.FieldExternalSubscriptionID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetExternalSubscriptionID(v) return nil - case entity.FieldDomains: - v, ok := value.([]string) + case entitlement.FieldExpires: + v, ok := value.(bool) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDomains(v) + m.SetExpires(v) return nil - case entity.FieldEntityTypeID: - v, ok := value.(string) + case entitlement.FieldExpiresAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetEntityTypeID(v) + m.SetExpiresAt(v) return nil - case entity.FieldStatus: - v, ok := value.(string) + case entitlement.FieldCancelled: + v, ok := value.(bool) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetStatus(v) + m.SetCancelled(v) return nil } - return fmt.Errorf("unknown Entity field %s", name) + return fmt.Errorf("unknown Entitlement field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *EntityMutation) AddedFields() []string { +func (m *EntitlementMutation) 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 *EntityMutation) AddedField(name string) (ent.Value, bool) { +func (m *EntitlementMutation) 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 *EntityMutation) AddField(name string, value ent.Value) error { +func (m *EntitlementMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown Entity numeric field %s", name) + return fmt.Errorf("unknown Entitlement numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *EntityMutation) ClearedFields() []string { +func (m *EntitlementMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(entity.FieldCreatedAt) { - fields = append(fields, entity.FieldCreatedAt) - } - if m.FieldCleared(entity.FieldUpdatedAt) { - fields = append(fields, entity.FieldUpdatedAt) - } - if m.FieldCleared(entity.FieldCreatedBy) { - fields = append(fields, entity.FieldCreatedBy) - } - if m.FieldCleared(entity.FieldUpdatedBy) { - fields = append(fields, entity.FieldUpdatedBy) + if m.FieldCleared(entitlement.FieldCreatedAt) { + fields = append(fields, entitlement.FieldCreatedAt) } - if m.FieldCleared(entity.FieldDeletedAt) { - fields = append(fields, entity.FieldDeletedAt) + if m.FieldCleared(entitlement.FieldUpdatedAt) { + fields = append(fields, entitlement.FieldUpdatedAt) } - if m.FieldCleared(entity.FieldDeletedBy) { - fields = append(fields, entity.FieldDeletedBy) + if m.FieldCleared(entitlement.FieldCreatedBy) { + fields = append(fields, entitlement.FieldCreatedBy) } - if m.FieldCleared(entity.FieldTags) { - fields = append(fields, entity.FieldTags) + if m.FieldCleared(entitlement.FieldUpdatedBy) { + fields = append(fields, entitlement.FieldUpdatedBy) } - if m.FieldCleared(entity.FieldOwnerID) { - fields = append(fields, entity.FieldOwnerID) + if m.FieldCleared(entitlement.FieldTags) { + fields = append(fields, entitlement.FieldTags) } - if m.FieldCleared(entity.FieldName) { - fields = append(fields, entity.FieldName) + if m.FieldCleared(entitlement.FieldDeletedAt) { + fields = append(fields, entitlement.FieldDeletedAt) } - if m.FieldCleared(entity.FieldDisplayName) { - fields = append(fields, entity.FieldDisplayName) + if m.FieldCleared(entitlement.FieldDeletedBy) { + fields = append(fields, entitlement.FieldDeletedBy) } - if m.FieldCleared(entity.FieldDescription) { - fields = append(fields, entity.FieldDescription) + if m.FieldCleared(entitlement.FieldOwnerID) { + fields = append(fields, entitlement.FieldOwnerID) } - if m.FieldCleared(entity.FieldDomains) { - fields = append(fields, entity.FieldDomains) + if m.FieldCleared(entitlement.FieldExternalCustomerID) { + fields = append(fields, entitlement.FieldExternalCustomerID) } - if m.FieldCleared(entity.FieldEntityTypeID) { - fields = append(fields, entity.FieldEntityTypeID) + if m.FieldCleared(entitlement.FieldExternalSubscriptionID) { + fields = append(fields, entitlement.FieldExternalSubscriptionID) } - if m.FieldCleared(entity.FieldStatus) { - fields = append(fields, entity.FieldStatus) + if m.FieldCleared(entitlement.FieldExpiresAt) { + fields = append(fields, entitlement.FieldExpiresAt) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *EntityMutation) FieldCleared(name string) bool { +func (m *EntitlementMutation) 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 *EntityMutation) ClearField(name string) error { +func (m *EntitlementMutation) ClearField(name string) error { switch name { - case entity.FieldCreatedAt: + case entitlement.FieldCreatedAt: m.ClearCreatedAt() return nil - case entity.FieldUpdatedAt: + case entitlement.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case entity.FieldCreatedBy: + case entitlement.FieldCreatedBy: m.ClearCreatedBy() return nil - case entity.FieldUpdatedBy: + case entitlement.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case entity.FieldDeletedAt: + case entitlement.FieldTags: + m.ClearTags() + return nil + case entitlement.FieldDeletedAt: m.ClearDeletedAt() return nil - case entity.FieldDeletedBy: + case entitlement.FieldDeletedBy: m.ClearDeletedBy() return nil - case entity.FieldTags: - m.ClearTags() - return nil - case entity.FieldOwnerID: + case entitlement.FieldOwnerID: m.ClearOwnerID() return nil - case entity.FieldName: - m.ClearName() - return nil - case entity.FieldDisplayName: - m.ClearDisplayName() - return nil - case entity.FieldDescription: - m.ClearDescription() - return nil - case entity.FieldDomains: - m.ClearDomains() + case entitlement.FieldExternalCustomerID: + m.ClearExternalCustomerID() return nil - case entity.FieldEntityTypeID: - m.ClearEntityTypeID() + case entitlement.FieldExternalSubscriptionID: + m.ClearExternalSubscriptionID() return nil - case entity.FieldStatus: - m.ClearStatus() + case entitlement.FieldExpiresAt: + m.ClearExpiresAt() return nil } - return fmt.Errorf("unknown Entity nullable field %s", name) + return fmt.Errorf("unknown Entitlement 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 *EntityMutation) ResetField(name string) error { +func (m *EntitlementMutation) ResetField(name string) error { switch name { - case entity.FieldCreatedAt: + case entitlement.FieldCreatedAt: m.ResetCreatedAt() return nil - case entity.FieldUpdatedAt: + case entitlement.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case entity.FieldCreatedBy: + case entitlement.FieldCreatedBy: m.ResetCreatedBy() return nil - case entity.FieldUpdatedBy: + case entitlement.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case entity.FieldMappingID: + case entitlement.FieldMappingID: m.ResetMappingID() return nil - case entity.FieldDeletedAt: + case entitlement.FieldTags: + m.ResetTags() + return nil + case entitlement.FieldDeletedAt: m.ResetDeletedAt() return nil - case entity.FieldDeletedBy: + case entitlement.FieldDeletedBy: m.ResetDeletedBy() return nil - case entity.FieldTags: - m.ResetTags() - return nil - case entity.FieldOwnerID: + case entitlement.FieldOwnerID: m.ResetOwnerID() return nil - case entity.FieldName: - m.ResetName() + case entitlement.FieldPlanID: + m.ResetPlanID() return nil - case entity.FieldDisplayName: - m.ResetDisplayName() + case entitlement.FieldOrganizationID: + m.ResetOrganizationID() return nil - case entity.FieldDescription: - m.ResetDescription() + case entitlement.FieldExternalCustomerID: + m.ResetExternalCustomerID() return nil - case entity.FieldDomains: - m.ResetDomains() + case entitlement.FieldExternalSubscriptionID: + m.ResetExternalSubscriptionID() return nil - case entity.FieldEntityTypeID: - m.ResetEntityTypeID() + case entitlement.FieldExpires: + m.ResetExpires() return nil - case entity.FieldStatus: - m.ResetStatus() + case entitlement.FieldExpiresAt: + m.ResetExpiresAt() + return nil + case entitlement.FieldCancelled: + m.ResetCancelled() return nil } - return fmt.Errorf("unknown Entity field %s", name) + return fmt.Errorf("unknown Entitlement field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *EntityMutation) AddedEdges() []string { - edges := make([]string, 0, 6) +func (m *EntitlementMutation) AddedEdges() []string { + edges := make([]string, 0, 4) if m.owner != nil { - edges = append(edges, entity.EdgeOwner) - } - if m.contacts != nil { - edges = append(edges, entity.EdgeContacts) - } - if m.documents != nil { - edges = append(edges, entity.EdgeDocuments) + edges = append(edges, entitlement.EdgeOwner) } - if m.notes != nil { - edges = append(edges, entity.EdgeNotes) + if m.plan != nil { + edges = append(edges, entitlement.EdgePlan) } - if m.files != nil { - edges = append(edges, entity.EdgeFiles) + if m.organization != nil { + edges = append(edges, entitlement.EdgeOrganization) } - if m.entity_type != nil { - edges = append(edges, entity.EdgeEntityType) + if m.events != nil { + edges = append(edges, entitlement.EdgeEvents) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *EntityMutation) AddedIDs(name string) []ent.Value { +func (m *EntitlementMutation) AddedIDs(name string) []ent.Value { switch name { - case entity.EdgeOwner: + case entitlement.EdgeOwner: if id := m.owner; id != nil { return []ent.Value{*id} } - case entity.EdgeContacts: - ids := make([]ent.Value, 0, len(m.contacts)) - for id := range m.contacts { - ids = append(ids, id) - } - return ids - case entity.EdgeDocuments: - ids := make([]ent.Value, 0, len(m.documents)) - for id := range m.documents { - ids = append(ids, id) + case entitlement.EdgePlan: + if id := m.plan; id != nil { + return []ent.Value{*id} } - return ids - case entity.EdgeNotes: - ids := make([]ent.Value, 0, len(m.notes)) - for id := range m.notes { - ids = append(ids, id) + case entitlement.EdgeOrganization: + if id := m.organization; id != nil { + return []ent.Value{*id} } - return ids - case entity.EdgeFiles: - ids := make([]ent.Value, 0, len(m.files)) - for id := range m.files { + case entitlement.EdgeEvents: + ids := make([]ent.Value, 0, len(m.events)) + for id := range m.events { ids = append(ids, id) } return ids - case entity.EdgeEntityType: - if id := m.entity_type; id != nil { - return []ent.Value{*id} - } } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *EntityMutation) RemovedEdges() []string { - edges := make([]string, 0, 6) - if m.removedcontacts != nil { - edges = append(edges, entity.EdgeContacts) - } - if m.removeddocuments != nil { - edges = append(edges, entity.EdgeDocuments) - } - if m.removednotes != nil { - edges = append(edges, entity.EdgeNotes) - } - if m.removedfiles != nil { - edges = append(edges, entity.EdgeFiles) +func (m *EntitlementMutation) RemovedEdges() []string { + edges := make([]string, 0, 4) + if m.removedevents != nil { + edges = append(edges, entitlement.EdgeEvents) } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *EntityMutation) RemovedIDs(name string) []ent.Value { +func (m *EntitlementMutation) RemovedIDs(name string) []ent.Value { switch name { - case entity.EdgeContacts: - ids := make([]ent.Value, 0, len(m.removedcontacts)) - for id := range m.removedcontacts { - ids = append(ids, id) - } - return ids - case entity.EdgeDocuments: - ids := make([]ent.Value, 0, len(m.removeddocuments)) - for id := range m.removeddocuments { - ids = append(ids, id) - } - return ids - case entity.EdgeNotes: - ids := make([]ent.Value, 0, len(m.removednotes)) - for id := range m.removednotes { - ids = append(ids, id) - } - return ids - case entity.EdgeFiles: - ids := make([]ent.Value, 0, len(m.removedfiles)) - for id := range m.removedfiles { + case entitlement.EdgeEvents: + ids := make([]ent.Value, 0, len(m.removedevents)) + for id := range m.removedevents { ids = append(ids, id) } return ids @@ -19041,132 +21483,119 @@ func (m *EntityMutation) RemovedIDs(name string) []ent.Value { } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EntityMutation) ClearedEdges() []string { - edges := make([]string, 0, 6) +func (m *EntitlementMutation) ClearedEdges() []string { + edges := make([]string, 0, 4) if m.clearedowner { - edges = append(edges, entity.EdgeOwner) - } - if m.clearedcontacts { - edges = append(edges, entity.EdgeContacts) - } - if m.cleareddocuments { - edges = append(edges, entity.EdgeDocuments) + edges = append(edges, entitlement.EdgeOwner) } - if m.clearednotes { - edges = append(edges, entity.EdgeNotes) + if m.clearedplan { + edges = append(edges, entitlement.EdgePlan) } - if m.clearedfiles { - edges = append(edges, entity.EdgeFiles) + if m.clearedorganization { + edges = append(edges, entitlement.EdgeOrganization) } - if m.clearedentity_type { - edges = append(edges, entity.EdgeEntityType) + if m.clearedevents { + edges = append(edges, entitlement.EdgeEvents) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *EntityMutation) EdgeCleared(name string) bool { +func (m *EntitlementMutation) EdgeCleared(name string) bool { switch name { - case entity.EdgeOwner: + case entitlement.EdgeOwner: return m.clearedowner - case entity.EdgeContacts: - return m.clearedcontacts - case entity.EdgeDocuments: - return m.cleareddocuments - case entity.EdgeNotes: - return m.clearednotes - case entity.EdgeFiles: - return m.clearedfiles - case entity.EdgeEntityType: - return m.clearedentity_type + case entitlement.EdgePlan: + return m.clearedplan + case entitlement.EdgeOrganization: + return m.clearedorganization + case entitlement.EdgeEvents: + return m.clearedevents } 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 *EntityMutation) ClearEdge(name string) error { +func (m *EntitlementMutation) ClearEdge(name string) error { switch name { - case entity.EdgeOwner: + case entitlement.EdgeOwner: m.ClearOwner() return nil - case entity.EdgeEntityType: - m.ClearEntityType() + case entitlement.EdgePlan: + m.ClearPlan() + return nil + case entitlement.EdgeOrganization: + m.ClearOrganization() return nil } - return fmt.Errorf("unknown Entity unique edge %s", name) + return fmt.Errorf("unknown Entitlement 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 *EntityMutation) ResetEdge(name string) error { +func (m *EntitlementMutation) ResetEdge(name string) error { switch name { - case entity.EdgeOwner: + case entitlement.EdgeOwner: m.ResetOwner() return nil - case entity.EdgeContacts: - m.ResetContacts() - return nil - case entity.EdgeDocuments: - m.ResetDocuments() - return nil - case entity.EdgeNotes: - m.ResetNotes() + case entitlement.EdgePlan: + m.ResetPlan() return nil - case entity.EdgeFiles: - m.ResetFiles() + case entitlement.EdgeOrganization: + m.ResetOrganization() return nil - case entity.EdgeEntityType: - m.ResetEntityType() + case entitlement.EdgeEvents: + m.ResetEvents() return nil } - return fmt.Errorf("unknown Entity edge %s", name) + return fmt.Errorf("unknown Entitlement edge %s", name) } -// EntityHistoryMutation represents an operation that mutates the EntityHistory nodes in the graph. -type EntityHistoryMutation struct { +// EntitlementHistoryMutation represents an operation that mutates the EntitlementHistory nodes in the graph. +type EntitlementHistoryMutation 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 - mapping_id *string - deleted_at *time.Time - deleted_by *string - tags *[]string - appendtags []string - owner_id *string - name *string - display_name *string - description *string - domains *[]string - appenddomains []string - entity_type_id *string - status *string - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*EntityHistory, error) - predicates []predicate.EntityHistory + 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 + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + owner_id *string + plan_id *string + organization_id *string + external_customer_id *string + external_subscription_id *string + expires *bool + expires_at *time.Time + cancelled *bool + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*EntitlementHistory, error) + predicates []predicate.EntitlementHistory } -var _ ent.Mutation = (*EntityHistoryMutation)(nil) +var _ ent.Mutation = (*EntitlementHistoryMutation)(nil) -// entityhistoryOption allows management of the mutation configuration using functional options. -type entityhistoryOption func(*EntityHistoryMutation) +// entitlementhistoryOption allows management of the mutation configuration using functional options. +type entitlementhistoryOption func(*EntitlementHistoryMutation) -// newEntityHistoryMutation creates new mutation for the EntityHistory entity. -func newEntityHistoryMutation(c config, op Op, opts ...entityhistoryOption) *EntityHistoryMutation { - m := &EntityHistoryMutation{ +// newEntitlementHistoryMutation creates new mutation for the EntitlementHistory entity. +func newEntitlementHistoryMutation(c config, op Op, opts ...entitlementhistoryOption) *EntitlementHistoryMutation { + m := &EntitlementHistoryMutation{ config: c, op: op, - typ: TypeEntityHistory, + typ: TypeEntitlementHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -19175,20 +21604,20 @@ func newEntityHistoryMutation(c config, op Op, opts ...entityhistoryOption) *Ent return m } -// withEntityHistoryID sets the ID field of the mutation. -func withEntityHistoryID(id string) entityhistoryOption { - return func(m *EntityHistoryMutation) { +// withEntitlementHistoryID sets the ID field of the mutation. +func withEntitlementHistoryID(id string) entitlementhistoryOption { + return func(m *EntitlementHistoryMutation) { var ( err error once sync.Once - value *EntityHistory + value *EntitlementHistory ) - m.oldValue = func(ctx context.Context) (*EntityHistory, error) { + m.oldValue = func(ctx context.Context) (*EntitlementHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().EntityHistory.Get(ctx, id) + value, err = m.Client().EntitlementHistory.Get(ctx, id) } }) return value, err @@ -19197,10 +21626,10 @@ func withEntityHistoryID(id string) entityhistoryOption { } } -// withEntityHistory sets the old EntityHistory of the mutation. -func withEntityHistory(node *EntityHistory) entityhistoryOption { - return func(m *EntityHistoryMutation) { - m.oldValue = func(context.Context) (*EntityHistory, error) { +// withEntitlementHistory sets the old EntitlementHistory of the mutation. +func withEntitlementHistory(node *EntitlementHistory) entitlementhistoryOption { + return func(m *EntitlementHistoryMutation) { + m.oldValue = func(context.Context) (*EntitlementHistory, error) { return node, nil } m.id = &node.ID @@ -19209,7 +21638,7 @@ func withEntityHistory(node *EntityHistory) entityhistoryOption { // 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 EntityHistoryMutation) Client() *Client { +func (m EntitlementHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -19217,7 +21646,7 @@ func (m EntityHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EntityHistoryMutation) Tx() (*Tx, error) { +func (m EntitlementHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -19227,14 +21656,14 @@ func (m EntityHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of EntityHistory entities. -func (m *EntityHistoryMutation) SetID(id string) { +// operation is only accepted on creation of EntitlementHistory entities. +func (m *EntitlementHistoryMutation) 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 *EntityHistoryMutation) ID() (id string, exists bool) { +func (m *EntitlementHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -19245,7 +21674,7 @@ func (m *EntityHistoryMutation) ID() (id string, exists bool) { // 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 *EntityHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *EntitlementHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -19254,19 +21683,19 @@ func (m *EntityHistoryMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().EntityHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().EntitlementHistory.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 *EntityHistoryMutation) SetHistoryTime(t time.Time) { +func (m *EntitlementHistoryMutation) SetHistoryTime(t time.Time) { m.history_time = &t } // HistoryTime returns the value of the "history_time" field in the mutation. -func (m *EntityHistoryMutation) HistoryTime() (r time.Time, exists bool) { +func (m *EntitlementHistoryMutation) HistoryTime() (r time.Time, exists bool) { v := m.history_time if v == nil { return @@ -19274,10 +21703,10 @@ func (m *EntityHistoryMutation) HistoryTime() (r time.Time, exists bool) { return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementHistoryMutation) 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") } @@ -19292,17 +21721,17 @@ func (m *EntityHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time } // ResetHistoryTime resets all changes to the "history_time" field. -func (m *EntityHistoryMutation) ResetHistoryTime() { +func (m *EntitlementHistoryMutation) ResetHistoryTime() { m.history_time = nil } // SetRef sets the "ref" field. -func (m *EntityHistoryMutation) SetRef(s string) { +func (m *EntitlementHistoryMutation) SetRef(s string) { m.ref = &s } // Ref returns the value of the "ref" field in the mutation. -func (m *EntityHistoryMutation) Ref() (r string, exists bool) { +func (m *EntitlementHistoryMutation) Ref() (r string, exists bool) { v := m.ref if v == nil { return @@ -19310,10 +21739,10 @@ func (m *EntityHistoryMutation) Ref() (r string, exists bool) { return *v, true } -// OldRef returns the old "ref" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *EntitlementHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldRef is only allowed on UpdateOne operations") } @@ -19328,30 +21757,30 @@ func (m *EntityHistoryMutation) OldRef(ctx context.Context) (v string, err error } // ClearRef clears the value of the "ref" field. -func (m *EntityHistoryMutation) ClearRef() { +func (m *EntitlementHistoryMutation) ClearRef() { m.ref = nil - m.clearedFields[entityhistory.FieldRef] = struct{}{} + m.clearedFields[entitlementhistory.FieldRef] = struct{}{} } // RefCleared returns if the "ref" field was cleared in this mutation. -func (m *EntityHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldRef] +func (m *EntitlementHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[entitlementhistory.FieldRef] return ok } // ResetRef resets all changes to the "ref" field. -func (m *EntityHistoryMutation) ResetRef() { +func (m *EntitlementHistoryMutation) ResetRef() { m.ref = nil - delete(m.clearedFields, entityhistory.FieldRef) + delete(m.clearedFields, entitlementhistory.FieldRef) } // SetOperation sets the "operation" field. -func (m *EntityHistoryMutation) SetOperation(ht history.OpType) { +func (m *EntitlementHistoryMutation) SetOperation(ht history.OpType) { m.operation = &ht } // Operation returns the value of the "operation" field in the mutation. -func (m *EntityHistoryMutation) Operation() (r history.OpType, exists bool) { +func (m *EntitlementHistoryMutation) Operation() (r history.OpType, exists bool) { v := m.operation if v == nil { return @@ -19359,10 +21788,10 @@ func (m *EntityHistoryMutation) Operation() (r history.OpType, exists bool) { return *v, true } -// OldOperation returns the old "operation" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *EntitlementHistoryMutation) 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") } @@ -19377,17 +21806,17 @@ func (m *EntityHistoryMutation) OldOperation(ctx context.Context) (v history.OpT } // ResetOperation resets all changes to the "operation" field. -func (m *EntityHistoryMutation) ResetOperation() { +func (m *EntitlementHistoryMutation) ResetOperation() { m.operation = nil } // SetCreatedAt sets the "created_at" field. -func (m *EntityHistoryMutation) SetCreatedAt(t time.Time) { +func (m *EntitlementHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EntityHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *EntitlementHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -19395,10 +21824,10 @@ func (m *EntityHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementHistoryMutation) 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") } @@ -19413,30 +21842,30 @@ func (m *EntityHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EntityHistoryMutation) ClearCreatedAt() { +func (m *EntitlementHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[entityhistory.FieldCreatedAt] = struct{}{} + m.clearedFields[entitlementhistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EntityHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldCreatedAt] +func (m *EntitlementHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[entitlementhistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EntityHistoryMutation) ResetCreatedAt() { +func (m *EntitlementHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, entityhistory.FieldCreatedAt) + delete(m.clearedFields, entitlementhistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EntityHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *EntitlementHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EntityHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *EntitlementHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -19444,10 +21873,10 @@ func (m *EntityHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementHistoryMutation) 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") } @@ -19462,30 +21891,30 @@ func (m *EntityHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EntityHistoryMutation) ClearUpdatedAt() { +func (m *EntitlementHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[entityhistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[entitlementhistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EntityHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldUpdatedAt] +func (m *EntitlementHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[entitlementhistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EntityHistoryMutation) ResetUpdatedAt() { +func (m *EntitlementHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, entityhistory.FieldUpdatedAt) + delete(m.clearedFields, entitlementhistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EntityHistoryMutation) SetCreatedBy(s string) { +func (m *EntitlementHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EntityHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *EntitlementHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -19493,10 +21922,10 @@ func (m *EntityHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -19511,30 +21940,30 @@ func (m *EntityHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EntityHistoryMutation) ClearCreatedBy() { +func (m *EntitlementHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[entityhistory.FieldCreatedBy] = struct{}{} + m.clearedFields[entitlementhistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EntityHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldCreatedBy] +func (m *EntitlementHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[entitlementhistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EntityHistoryMutation) ResetCreatedBy() { +func (m *EntitlementHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, entityhistory.FieldCreatedBy) + delete(m.clearedFields, entitlementhistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EntityHistoryMutation) SetUpdatedBy(s string) { +func (m *EntitlementHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EntityHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *EntitlementHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -19542,10 +21971,10 @@ func (m *EntityHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -19560,30 +21989,30 @@ func (m *EntityHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EntityHistoryMutation) ClearUpdatedBy() { +func (m *EntitlementHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[entityhistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[entitlementhistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EntityHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldUpdatedBy] +func (m *EntitlementHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[entitlementhistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EntityHistoryMutation) ResetUpdatedBy() { +func (m *EntitlementHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, entityhistory.FieldUpdatedBy) + delete(m.clearedFields, entitlementhistory.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *EntityHistoryMutation) SetMappingID(s string) { +func (m *EntitlementHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EntityHistoryMutation) MappingID() (r string, exists bool) { +func (m *EntitlementHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -19591,10 +22020,10 @@ func (m *EntityHistoryMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *EntitlementHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -19609,180 +22038,180 @@ func (m *EntityHistoryMutation) OldMappingID(ctx context.Context) (v string, err } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *EntityHistoryMutation) ResetMappingID() { +func (m *EntitlementHistoryMutation) ResetMappingID() { m.mapping_id = nil } -// SetDeletedAt sets the "deleted_at" field. -func (m *EntityHistoryMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetTags sets the "tags" field. +func (m *EntitlementHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *EntityHistoryMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// Tags returns the value of the "tags" field in the mutation. +func (m *EntitlementHistoryMutation) Tags() (r []string, exists bool) { + v := m.tags if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldTags 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") + 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 OldDeletedAt: %w", err) + return v, fmt.Errorf("querying old value for OldTags: %w", err) } - return oldValue.DeletedAt, nil -} - -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *EntityHistoryMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[entityhistory.FieldDeletedAt] = struct{}{} + return oldValue.Tags, nil } -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *EntityHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldDeletedAt] - return ok +// AppendTags adds s to the "tags" field. +func (m *EntitlementHistoryMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *EntityHistoryMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, entityhistory.FieldDeletedAt) +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *EntitlementHistoryMutation) AppendedTags() ([]string, bool) { + if len(m.appendtags) == 0 { + return nil, false + } + return m.appendtags, true } -// SetDeletedBy sets the "deleted_by" field. -func (m *EntityHistoryMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// ClearTags clears the value of the "tags" field. +func (m *EntitlementHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[entitlementhistory.FieldTags] = struct{}{} } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *EntityHistoryMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by - if v == nil { - return - } - return *v, true +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *EntitlementHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[entitlementhistory.FieldTags] + return ok } -// OldDeletedBy returns the old "deleted_by" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// ResetTags resets all changes to the "tags" field. +func (m *EntitlementHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, entitlementhistory.FieldTags) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *EntitlementHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *EntitlementHistoryMutation) 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 EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldDeletedAt 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") + 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 OldDeletedBy: %w", err) + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) } - return oldValue.DeletedBy, nil + return oldValue.DeletedAt, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *EntityHistoryMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[entityhistory.FieldDeletedBy] = struct{}{} +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *EntitlementHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[entitlementhistory.FieldDeletedAt] = struct{}{} } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *EntityHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldDeletedBy] +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *EntitlementHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[entitlementhistory.FieldDeletedAt] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *EntityHistoryMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, entityhistory.FieldDeletedBy) +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *EntitlementHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, entitlementhistory.FieldDeletedAt) } -// SetTags sets the "tags" field. -func (m *EntityHistoryMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil +// SetDeletedBy sets the "deleted_by" field. +func (m *EntitlementHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s } -// Tags returns the value of the "tags" field in the mutation. -func (m *EntityHistoryMutation) Tags() (r []string, exists bool) { - v := m.tags +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *EntitlementHistoryMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by if v == nil { return } return *v, true } -// OldTags returns the old "tags" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *EntitlementHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTags is only allowed on UpdateOne operations") + return v, errors.New("OldDeletedBy 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") + 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 OldTags: %w", err) - } - return oldValue.Tags, nil -} - -// AppendTags adds s to the "tags" field. -func (m *EntityHistoryMutation) 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 *EntityHistoryMutation) AppendedTags() ([]string, bool) { - if len(m.appendtags) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldDeletedBy: %w", err) } - return m.appendtags, true + return oldValue.DeletedBy, nil } -// ClearTags clears the value of the "tags" field. -func (m *EntityHistoryMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[entityhistory.FieldTags] = struct{}{} +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *EntitlementHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[entitlementhistory.FieldDeletedBy] = struct{}{} } -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *EntityHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldTags] +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *EntitlementHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[entitlementhistory.FieldDeletedBy] return ok } -// ResetTags resets all changes to the "tags" field. -func (m *EntityHistoryMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, entityhistory.FieldTags) +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *EntitlementHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, entitlementhistory.FieldDeletedBy) } // SetOwnerID sets the "owner_id" field. -func (m *EntityHistoryMutation) SetOwnerID(s string) { +func (m *EntitlementHistoryMutation) SetOwnerID(s string) { m.owner_id = &s } // OwnerID returns the value of the "owner_id" field in the mutation. -func (m *EntityHistoryMutation) OwnerID() (r string, exists bool) { +func (m *EntitlementHistoryMutation) OwnerID() (r string, exists bool) { v := m.owner_id if v == nil { return @@ -19790,10 +22219,10 @@ func (m *EntityHistoryMutation) OwnerID() (r string, exists bool) { return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *EntitlementHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") } @@ -19808,342 +22237,323 @@ func (m *EntityHistoryMutation) OldOwnerID(ctx context.Context) (v string, err e } // ClearOwnerID clears the value of the "owner_id" field. -func (m *EntityHistoryMutation) ClearOwnerID() { +func (m *EntitlementHistoryMutation) ClearOwnerID() { m.owner_id = nil - m.clearedFields[entityhistory.FieldOwnerID] = struct{}{} + m.clearedFields[entitlementhistory.FieldOwnerID] = struct{}{} } // OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *EntityHistoryMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldOwnerID] +func (m *EntitlementHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[entitlementhistory.FieldOwnerID] return ok } // ResetOwnerID resets all changes to the "owner_id" field. -func (m *EntityHistoryMutation) ResetOwnerID() { +func (m *EntitlementHistoryMutation) ResetOwnerID() { m.owner_id = nil - delete(m.clearedFields, entityhistory.FieldOwnerID) + delete(m.clearedFields, entitlementhistory.FieldOwnerID) } -// SetName sets the "name" field. -func (m *EntityHistoryMutation) SetName(s string) { - m.name = &s +// SetPlanID sets the "plan_id" field. +func (m *EntitlementHistoryMutation) SetPlanID(s string) { + m.plan_id = &s } -// Name returns the value of the "name" field in the mutation. -func (m *EntityHistoryMutation) Name() (r string, exists bool) { - v := m.name +// PlanID returns the value of the "plan_id" field in the mutation. +func (m *EntitlementHistoryMutation) PlanID() (r string, exists bool) { + v := m.plan_id if v == nil { return } return *v, true } -// OldName returns the old "name" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldPlanID returns the old "plan_id" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldName(ctx context.Context) (v string, err error) { +func (m *EntitlementHistoryMutation) OldPlanID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldName is only allowed on UpdateOne operations") + return v, errors.New("OldPlanID 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") + return v, errors.New("OldPlanID 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 v, fmt.Errorf("querying old value for OldPlanID: %w", err) } - return oldValue.Name, nil + return oldValue.PlanID, nil } -// ClearName clears the value of the "name" field. -func (m *EntityHistoryMutation) ClearName() { - m.name = nil - m.clearedFields[entityhistory.FieldName] = struct{}{} +// ResetPlanID resets all changes to the "plan_id" field. +func (m *EntitlementHistoryMutation) ResetPlanID() { + m.plan_id = nil } -// NameCleared returns if the "name" field was cleared in this mutation. -func (m *EntityHistoryMutation) NameCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldName] - return ok +// SetOrganizationID sets the "organization_id" field. +func (m *EntitlementHistoryMutation) SetOrganizationID(s string) { + m.organization_id = &s } -// ResetName resets all changes to the "name" field. -func (m *EntityHistoryMutation) ResetName() { - m.name = nil - delete(m.clearedFields, entityhistory.FieldName) +// OrganizationID returns the value of the "organization_id" field in the mutation. +func (m *EntitlementHistoryMutation) OrganizationID() (r string, exists bool) { + v := m.organization_id + if v == nil { + return + } + return *v, true } -// SetDisplayName sets the "display_name" field. -func (m *EntityHistoryMutation) SetDisplayName(s string) { - m.display_name = &s +// OldOrganizationID returns the old "organization_id" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntitlementHistoryMutation) OldOrganizationID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldOrganizationID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldOrganizationID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldOrganizationID: %w", err) + } + return oldValue.OrganizationID, nil } -// DisplayName returns the value of the "display_name" field in the mutation. -func (m *EntityHistoryMutation) DisplayName() (r string, exists bool) { - v := m.display_name +// ResetOrganizationID resets all changes to the "organization_id" field. +func (m *EntitlementHistoryMutation) ResetOrganizationID() { + m.organization_id = nil +} + +// SetExternalCustomerID sets the "external_customer_id" field. +func (m *EntitlementHistoryMutation) SetExternalCustomerID(s string) { + m.external_customer_id = &s +} + +// ExternalCustomerID returns the value of the "external_customer_id" field in the mutation. +func (m *EntitlementHistoryMutation) ExternalCustomerID() (r string, exists bool) { + v := m.external_customer_id if v == nil { return } return *v, true } -// OldDisplayName returns the old "display_name" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldExternalCustomerID returns the old "external_customer_id" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldDisplayName(ctx context.Context) (v string, err error) { +func (m *EntitlementHistoryMutation) OldExternalCustomerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") + return v, errors.New("OldExternalCustomerID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDisplayName requires an ID field in the mutation") + return v, errors.New("OldExternalCustomerID requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) + return v, fmt.Errorf("querying old value for OldExternalCustomerID: %w", err) } - return oldValue.DisplayName, nil + return oldValue.ExternalCustomerID, nil } -// ClearDisplayName clears the value of the "display_name" field. -func (m *EntityHistoryMutation) ClearDisplayName() { - m.display_name = nil - m.clearedFields[entityhistory.FieldDisplayName] = struct{}{} +// ClearExternalCustomerID clears the value of the "external_customer_id" field. +func (m *EntitlementHistoryMutation) ClearExternalCustomerID() { + m.external_customer_id = nil + m.clearedFields[entitlementhistory.FieldExternalCustomerID] = struct{}{} } -// DisplayNameCleared returns if the "display_name" field was cleared in this mutation. -func (m *EntityHistoryMutation) DisplayNameCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldDisplayName] +// ExternalCustomerIDCleared returns if the "external_customer_id" field was cleared in this mutation. +func (m *EntitlementHistoryMutation) ExternalCustomerIDCleared() bool { + _, ok := m.clearedFields[entitlementhistory.FieldExternalCustomerID] return ok } -// ResetDisplayName resets all changes to the "display_name" field. -func (m *EntityHistoryMutation) ResetDisplayName() { - m.display_name = nil - delete(m.clearedFields, entityhistory.FieldDisplayName) +// ResetExternalCustomerID resets all changes to the "external_customer_id" field. +func (m *EntitlementHistoryMutation) ResetExternalCustomerID() { + m.external_customer_id = nil + delete(m.clearedFields, entitlementhistory.FieldExternalCustomerID) } -// SetDescription sets the "description" field. -func (m *EntityHistoryMutation) SetDescription(s string) { - m.description = &s +// SetExternalSubscriptionID sets the "external_subscription_id" field. +func (m *EntitlementHistoryMutation) SetExternalSubscriptionID(s string) { + m.external_subscription_id = &s } -// Description returns the value of the "description" field in the mutation. -func (m *EntityHistoryMutation) Description() (r string, exists bool) { - v := m.description +// ExternalSubscriptionID returns the value of the "external_subscription_id" field in the mutation. +func (m *EntitlementHistoryMutation) ExternalSubscriptionID() (r string, exists bool) { + v := m.external_subscription_id if v == nil { return } return *v, true } -// OldDescription returns the old "description" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldExternalSubscriptionID returns the old "external_subscription_id" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { +func (m *EntitlementHistoryMutation) OldExternalSubscriptionID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDescription is only allowed on UpdateOne operations") + return v, errors.New("OldExternalSubscriptionID 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") + return v, errors.New("OldExternalSubscriptionID 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 v, fmt.Errorf("querying old value for OldExternalSubscriptionID: %w", err) } - return oldValue.Description, nil + return oldValue.ExternalSubscriptionID, nil } -// ClearDescription clears the value of the "description" field. -func (m *EntityHistoryMutation) ClearDescription() { - m.description = nil - m.clearedFields[entityhistory.FieldDescription] = struct{}{} +// ClearExternalSubscriptionID clears the value of the "external_subscription_id" field. +func (m *EntitlementHistoryMutation) ClearExternalSubscriptionID() { + m.external_subscription_id = nil + m.clearedFields[entitlementhistory.FieldExternalSubscriptionID] = struct{}{} } -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *EntityHistoryMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldDescription] +// ExternalSubscriptionIDCleared returns if the "external_subscription_id" field was cleared in this mutation. +func (m *EntitlementHistoryMutation) ExternalSubscriptionIDCleared() bool { + _, ok := m.clearedFields[entitlementhistory.FieldExternalSubscriptionID] return ok } -// ResetDescription resets all changes to the "description" field. -func (m *EntityHistoryMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, entityhistory.FieldDescription) +// ResetExternalSubscriptionID resets all changes to the "external_subscription_id" field. +func (m *EntitlementHistoryMutation) ResetExternalSubscriptionID() { + m.external_subscription_id = nil + delete(m.clearedFields, entitlementhistory.FieldExternalSubscriptionID) } -// SetDomains sets the "domains" field. -func (m *EntityHistoryMutation) SetDomains(s []string) { - m.domains = &s - m.appenddomains = nil +// SetExpires sets the "expires" field. +func (m *EntitlementHistoryMutation) SetExpires(b bool) { + m.expires = &b } -// Domains returns the value of the "domains" field in the mutation. -func (m *EntityHistoryMutation) Domains() (r []string, exists bool) { - v := m.domains +// Expires returns the value of the "expires" field in the mutation. +func (m *EntitlementHistoryMutation) Expires() (r bool, exists bool) { + v := m.expires if v == nil { return } return *v, true } -// OldDomains returns the old "domains" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldExpires returns the old "expires" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldDomains(ctx context.Context) (v []string, err error) { +func (m *EntitlementHistoryMutation) OldExpires(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDomains is only allowed on UpdateOne operations") + return v, errors.New("OldExpires is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDomains requires an ID field in the mutation") + return v, errors.New("OldExpires requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldDomains: %w", err) - } - return oldValue.Domains, nil -} - -// AppendDomains adds s to the "domains" field. -func (m *EntityHistoryMutation) AppendDomains(s []string) { - m.appenddomains = append(m.appenddomains, s...) -} - -// AppendedDomains returns the list of values that were appended to the "domains" field in this mutation. -func (m *EntityHistoryMutation) AppendedDomains() ([]string, bool) { - if len(m.appenddomains) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldExpires: %w", err) } - return m.appenddomains, true -} - -// ClearDomains clears the value of the "domains" field. -func (m *EntityHistoryMutation) ClearDomains() { - m.domains = nil - m.appenddomains = nil - m.clearedFields[entityhistory.FieldDomains] = struct{}{} -} - -// DomainsCleared returns if the "domains" field was cleared in this mutation. -func (m *EntityHistoryMutation) DomainsCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldDomains] - return ok + return oldValue.Expires, nil } -// ResetDomains resets all changes to the "domains" field. -func (m *EntityHistoryMutation) ResetDomains() { - m.domains = nil - m.appenddomains = nil - delete(m.clearedFields, entityhistory.FieldDomains) +// ResetExpires resets all changes to the "expires" field. +func (m *EntitlementHistoryMutation) ResetExpires() { + m.expires = nil } -// SetEntityTypeID sets the "entity_type_id" field. -func (m *EntityHistoryMutation) SetEntityTypeID(s string) { - m.entity_type_id = &s +// SetExpiresAt sets the "expires_at" field. +func (m *EntitlementHistoryMutation) SetExpiresAt(t time.Time) { + m.expires_at = &t } -// EntityTypeID returns the value of the "entity_type_id" field in the mutation. -func (m *EntityHistoryMutation) EntityTypeID() (r string, exists bool) { - v := m.entity_type_id +// ExpiresAt returns the value of the "expires_at" field in the mutation. +func (m *EntitlementHistoryMutation) ExpiresAt() (r time.Time, exists bool) { + v := m.expires_at if v == nil { return } return *v, true } -// OldEntityTypeID returns the old "entity_type_id" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldExpiresAt returns the old "expires_at" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldEntityTypeID(ctx context.Context) (v string, err error) { +func (m *EntitlementHistoryMutation) OldExpiresAt(ctx context.Context) (v *time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldEntityTypeID is only allowed on UpdateOne operations") + return v, errors.New("OldExpiresAt is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldEntityTypeID requires an ID field in the mutation") + return v, errors.New("OldExpiresAt requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldEntityTypeID: %w", err) + return v, fmt.Errorf("querying old value for OldExpiresAt: %w", err) } - return oldValue.EntityTypeID, nil + return oldValue.ExpiresAt, nil } -// ClearEntityTypeID clears the value of the "entity_type_id" field. -func (m *EntityHistoryMutation) ClearEntityTypeID() { - m.entity_type_id = nil - m.clearedFields[entityhistory.FieldEntityTypeID] = struct{}{} +// ClearExpiresAt clears the value of the "expires_at" field. +func (m *EntitlementHistoryMutation) ClearExpiresAt() { + m.expires_at = nil + m.clearedFields[entitlementhistory.FieldExpiresAt] = struct{}{} } -// EntityTypeIDCleared returns if the "entity_type_id" field was cleared in this mutation. -func (m *EntityHistoryMutation) EntityTypeIDCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldEntityTypeID] +// ExpiresAtCleared returns if the "expires_at" field was cleared in this mutation. +func (m *EntitlementHistoryMutation) ExpiresAtCleared() bool { + _, ok := m.clearedFields[entitlementhistory.FieldExpiresAt] return ok } -// ResetEntityTypeID resets all changes to the "entity_type_id" field. -func (m *EntityHistoryMutation) ResetEntityTypeID() { - m.entity_type_id = nil - delete(m.clearedFields, entityhistory.FieldEntityTypeID) +// ResetExpiresAt resets all changes to the "expires_at" field. +func (m *EntitlementHistoryMutation) ResetExpiresAt() { + m.expires_at = nil + delete(m.clearedFields, entitlementhistory.FieldExpiresAt) } -// SetStatus sets the "status" field. -func (m *EntityHistoryMutation) SetStatus(s string) { - m.status = &s +// SetCancelled sets the "cancelled" field. +func (m *EntitlementHistoryMutation) SetCancelled(b bool) { + m.cancelled = &b } -// Status returns the value of the "status" field in the mutation. -func (m *EntityHistoryMutation) Status() (r string, exists bool) { - v := m.status +// Cancelled returns the value of the "cancelled" field in the mutation. +func (m *EntitlementHistoryMutation) Cancelled() (r bool, exists bool) { + v := m.cancelled if v == nil { return } return *v, true } -// OldStatus returns the old "status" field's value of the EntityHistory entity. -// If the EntityHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCancelled returns the old "cancelled" field's value of the EntitlementHistory entity. +// If the EntitlementHistory 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 *EntityHistoryMutation) OldStatus(ctx context.Context) (v string, err error) { +func (m *EntitlementHistoryMutation) OldCancelled(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStatus is only allowed on UpdateOne operations") + return v, errors.New("OldCancelled is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStatus requires an ID field in the mutation") + return v, errors.New("OldCancelled requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldStatus: %w", err) + return v, fmt.Errorf("querying old value for OldCancelled: %w", err) } - return oldValue.Status, nil -} - -// ClearStatus clears the value of the "status" field. -func (m *EntityHistoryMutation) ClearStatus() { - m.status = nil - m.clearedFields[entityhistory.FieldStatus] = struct{}{} -} - -// StatusCleared returns if the "status" field was cleared in this mutation. -func (m *EntityHistoryMutation) StatusCleared() bool { - _, ok := m.clearedFields[entityhistory.FieldStatus] - return ok + return oldValue.Cancelled, nil } -// ResetStatus resets all changes to the "status" field. -func (m *EntityHistoryMutation) ResetStatus() { - m.status = nil - delete(m.clearedFields, entityhistory.FieldStatus) +// ResetCancelled resets all changes to the "cancelled" field. +func (m *EntitlementHistoryMutation) ResetCancelled() { + m.cancelled = nil } -// Where appends a list predicates to the EntityHistoryMutation builder. -func (m *EntityHistoryMutation) Where(ps ...predicate.EntityHistory) { +// Where appends a list predicates to the EntitlementHistoryMutation builder. +func (m *EntitlementHistoryMutation) Where(ps ...predicate.EntitlementHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the EntityHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the EntitlementHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EntityHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.EntityHistory, len(ps)) +func (m *EntitlementHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.EntitlementHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -20151,78 +22561,81 @@ func (m *EntityHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *EntityHistoryMutation) Op() Op { +func (m *EntitlementHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *EntityHistoryMutation) SetOp(op Op) { +func (m *EntitlementHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (EntityHistory). -func (m *EntityHistoryMutation) Type() string { +// Type returns the node type of this mutation (EntitlementHistory). +func (m *EntitlementHistoryMutation) 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 *EntityHistoryMutation) Fields() []string { - fields := make([]string, 0, 18) +func (m *EntitlementHistoryMutation) Fields() []string { + fields := make([]string, 0, 19) if m.history_time != nil { - fields = append(fields, entityhistory.FieldHistoryTime) + fields = append(fields, entitlementhistory.FieldHistoryTime) } if m.ref != nil { - fields = append(fields, entityhistory.FieldRef) + fields = append(fields, entitlementhistory.FieldRef) } if m.operation != nil { - fields = append(fields, entityhistory.FieldOperation) + fields = append(fields, entitlementhistory.FieldOperation) } if m.created_at != nil { - fields = append(fields, entityhistory.FieldCreatedAt) + fields = append(fields, entitlementhistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, entityhistory.FieldUpdatedAt) + fields = append(fields, entitlementhistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, entityhistory.FieldCreatedBy) + fields = append(fields, entitlementhistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, entityhistory.FieldUpdatedBy) + fields = append(fields, entitlementhistory.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, entityhistory.FieldMappingID) + fields = append(fields, entitlementhistory.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, entitlementhistory.FieldTags) } if m.deleted_at != nil { - fields = append(fields, entityhistory.FieldDeletedAt) + fields = append(fields, entitlementhistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, entityhistory.FieldDeletedBy) - } - if m.tags != nil { - fields = append(fields, entityhistory.FieldTags) + fields = append(fields, entitlementhistory.FieldDeletedBy) } if m.owner_id != nil { - fields = append(fields, entityhistory.FieldOwnerID) + fields = append(fields, entitlementhistory.FieldOwnerID) } - if m.name != nil { - fields = append(fields, entityhistory.FieldName) + if m.plan_id != nil { + fields = append(fields, entitlementhistory.FieldPlanID) } - if m.display_name != nil { - fields = append(fields, entityhistory.FieldDisplayName) + if m.organization_id != nil { + fields = append(fields, entitlementhistory.FieldOrganizationID) } - if m.description != nil { - fields = append(fields, entityhistory.FieldDescription) + if m.external_customer_id != nil { + fields = append(fields, entitlementhistory.FieldExternalCustomerID) } - if m.domains != nil { - fields = append(fields, entityhistory.FieldDomains) + if m.external_subscription_id != nil { + fields = append(fields, entitlementhistory.FieldExternalSubscriptionID) } - if m.entity_type_id != nil { - fields = append(fields, entityhistory.FieldEntityTypeID) + if m.expires != nil { + fields = append(fields, entitlementhistory.FieldExpires) } - if m.status != nil { - fields = append(fields, entityhistory.FieldStatus) + if m.expires_at != nil { + fields = append(fields, entitlementhistory.FieldExpiresAt) + } + if m.cancelled != nil { + fields = append(fields, entitlementhistory.FieldCancelled) } return fields } @@ -20230,44 +22643,46 @@ func (m *EntityHistoryMutation) Fields() []string { // 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 *EntityHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *EntitlementHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case entityhistory.FieldHistoryTime: + case entitlementhistory.FieldHistoryTime: return m.HistoryTime() - case entityhistory.FieldRef: + case entitlementhistory.FieldRef: return m.Ref() - case entityhistory.FieldOperation: + case entitlementhistory.FieldOperation: return m.Operation() - case entityhistory.FieldCreatedAt: + case entitlementhistory.FieldCreatedAt: return m.CreatedAt() - case entityhistory.FieldUpdatedAt: + case entitlementhistory.FieldUpdatedAt: return m.UpdatedAt() - case entityhistory.FieldCreatedBy: + case entitlementhistory.FieldCreatedBy: return m.CreatedBy() - case entityhistory.FieldUpdatedBy: + case entitlementhistory.FieldUpdatedBy: return m.UpdatedBy() - case entityhistory.FieldMappingID: + case entitlementhistory.FieldMappingID: return m.MappingID() - case entityhistory.FieldDeletedAt: + case entitlementhistory.FieldTags: + return m.Tags() + case entitlementhistory.FieldDeletedAt: return m.DeletedAt() - case entityhistory.FieldDeletedBy: + case entitlementhistory.FieldDeletedBy: return m.DeletedBy() - case entityhistory.FieldTags: - return m.Tags() - case entityhistory.FieldOwnerID: + case entitlementhistory.FieldOwnerID: return m.OwnerID() - case entityhistory.FieldName: - return m.Name() - case entityhistory.FieldDisplayName: - return m.DisplayName() - case entityhistory.FieldDescription: - return m.Description() - case entityhistory.FieldDomains: - return m.Domains() - case entityhistory.FieldEntityTypeID: - return m.EntityTypeID() - case entityhistory.FieldStatus: - return m.Status() + case entitlementhistory.FieldPlanID: + return m.PlanID() + case entitlementhistory.FieldOrganizationID: + return m.OrganizationID() + case entitlementhistory.FieldExternalCustomerID: + return m.ExternalCustomerID() + case entitlementhistory.FieldExternalSubscriptionID: + return m.ExternalSubscriptionID() + case entitlementhistory.FieldExpires: + return m.Expires() + case entitlementhistory.FieldExpiresAt: + return m.ExpiresAt() + case entitlementhistory.FieldCancelled: + return m.Cancelled() } return nil, false } @@ -20275,465 +22690,472 @@ func (m *EntityHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *EntityHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *EntitlementHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case entityhistory.FieldHistoryTime: + case entitlementhistory.FieldHistoryTime: return m.OldHistoryTime(ctx) - case entityhistory.FieldRef: + case entitlementhistory.FieldRef: return m.OldRef(ctx) - case entityhistory.FieldOperation: + case entitlementhistory.FieldOperation: return m.OldOperation(ctx) - case entityhistory.FieldCreatedAt: + case entitlementhistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case entityhistory.FieldUpdatedAt: + case entitlementhistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case entityhistory.FieldCreatedBy: + case entitlementhistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case entityhistory.FieldUpdatedBy: + case entitlementhistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case entityhistory.FieldMappingID: + case entitlementhistory.FieldMappingID: return m.OldMappingID(ctx) - case entityhistory.FieldDeletedAt: + case entitlementhistory.FieldTags: + return m.OldTags(ctx) + case entitlementhistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case entityhistory.FieldDeletedBy: + case entitlementhistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case entityhistory.FieldTags: - return m.OldTags(ctx) - case entityhistory.FieldOwnerID: + case entitlementhistory.FieldOwnerID: return m.OldOwnerID(ctx) - case entityhistory.FieldName: - return m.OldName(ctx) - case entityhistory.FieldDisplayName: - return m.OldDisplayName(ctx) - case entityhistory.FieldDescription: - return m.OldDescription(ctx) - case entityhistory.FieldDomains: - return m.OldDomains(ctx) - case entityhistory.FieldEntityTypeID: - return m.OldEntityTypeID(ctx) - case entityhistory.FieldStatus: - return m.OldStatus(ctx) + case entitlementhistory.FieldPlanID: + return m.OldPlanID(ctx) + case entitlementhistory.FieldOrganizationID: + return m.OldOrganizationID(ctx) + case entitlementhistory.FieldExternalCustomerID: + return m.OldExternalCustomerID(ctx) + case entitlementhistory.FieldExternalSubscriptionID: + return m.OldExternalSubscriptionID(ctx) + case entitlementhistory.FieldExpires: + return m.OldExpires(ctx) + case entitlementhistory.FieldExpiresAt: + return m.OldExpiresAt(ctx) + case entitlementhistory.FieldCancelled: + return m.OldCancelled(ctx) } - return nil, fmt.Errorf("unknown EntityHistory field %s", name) + return nil, fmt.Errorf("unknown EntitlementHistory 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 *EntityHistoryMutation) SetField(name string, value ent.Value) error { +func (m *EntitlementHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case entityhistory.FieldHistoryTime: + case entitlementhistory.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 entityhistory.FieldRef: + case entitlementhistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetRef(v) return nil - case entityhistory.FieldOperation: + case entitlementhistory.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 entityhistory.FieldCreatedAt: + case entitlementhistory.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 entityhistory.FieldUpdatedAt: + case entitlementhistory.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 entityhistory.FieldCreatedBy: + case entitlementhistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case entityhistory.FieldUpdatedBy: + case entitlementhistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case entityhistory.FieldMappingID: + case entitlementhistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case entityhistory.FieldDeletedAt: + case entitlementhistory.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case entitlementhistory.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 entityhistory.FieldDeletedBy: + case entitlementhistory.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case entityhistory.FieldTags: - v, ok := value.([]string) + case entitlementhistory.FieldOwnerID: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTags(v) + m.SetOwnerID(v) return nil - case entityhistory.FieldOwnerID: + case entitlementhistory.FieldPlanID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetPlanID(v) return nil - case entityhistory.FieldName: + case entitlementhistory.FieldOrganizationID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetName(v) + m.SetOrganizationID(v) return nil - case entityhistory.FieldDisplayName: + case entitlementhistory.FieldExternalCustomerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDisplayName(v) + m.SetExternalCustomerID(v) return nil - case entityhistory.FieldDescription: + case entitlementhistory.FieldExternalSubscriptionID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetExternalSubscriptionID(v) return nil - case entityhistory.FieldDomains: - v, ok := value.([]string) + case entitlementhistory.FieldExpires: + v, ok := value.(bool) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDomains(v) + m.SetExpires(v) return nil - case entityhistory.FieldEntityTypeID: - v, ok := value.(string) + case entitlementhistory.FieldExpiresAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetEntityTypeID(v) + m.SetExpiresAt(v) return nil - case entityhistory.FieldStatus: - v, ok := value.(string) + case entitlementhistory.FieldCancelled: + v, ok := value.(bool) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetStatus(v) + m.SetCancelled(v) return nil } - return fmt.Errorf("unknown EntityHistory field %s", name) + return fmt.Errorf("unknown EntitlementHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *EntityHistoryMutation) AddedFields() []string { +func (m *EntitlementHistoryMutation) 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 *EntityHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *EntitlementHistoryMutation) 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 *EntityHistoryMutation) AddField(name string, value ent.Value) error { +func (m *EntitlementHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown EntityHistory numeric field %s", name) + return fmt.Errorf("unknown EntitlementHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *EntityHistoryMutation) ClearedFields() []string { +func (m *EntitlementHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(entityhistory.FieldRef) { - fields = append(fields, entityhistory.FieldRef) - } - if m.FieldCleared(entityhistory.FieldCreatedAt) { - fields = append(fields, entityhistory.FieldCreatedAt) - } - if m.FieldCleared(entityhistory.FieldUpdatedAt) { - fields = append(fields, entityhistory.FieldUpdatedAt) - } - if m.FieldCleared(entityhistory.FieldCreatedBy) { - fields = append(fields, entityhistory.FieldCreatedBy) + if m.FieldCleared(entitlementhistory.FieldRef) { + fields = append(fields, entitlementhistory.FieldRef) } - if m.FieldCleared(entityhistory.FieldUpdatedBy) { - fields = append(fields, entityhistory.FieldUpdatedBy) + if m.FieldCleared(entitlementhistory.FieldCreatedAt) { + fields = append(fields, entitlementhistory.FieldCreatedAt) } - if m.FieldCleared(entityhistory.FieldDeletedAt) { - fields = append(fields, entityhistory.FieldDeletedAt) + if m.FieldCleared(entitlementhistory.FieldUpdatedAt) { + fields = append(fields, entitlementhistory.FieldUpdatedAt) } - if m.FieldCleared(entityhistory.FieldDeletedBy) { - fields = append(fields, entityhistory.FieldDeletedBy) + if m.FieldCleared(entitlementhistory.FieldCreatedBy) { + fields = append(fields, entitlementhistory.FieldCreatedBy) } - if m.FieldCleared(entityhistory.FieldTags) { - fields = append(fields, entityhistory.FieldTags) + if m.FieldCleared(entitlementhistory.FieldUpdatedBy) { + fields = append(fields, entitlementhistory.FieldUpdatedBy) } - if m.FieldCleared(entityhistory.FieldOwnerID) { - fields = append(fields, entityhistory.FieldOwnerID) + if m.FieldCleared(entitlementhistory.FieldTags) { + fields = append(fields, entitlementhistory.FieldTags) } - if m.FieldCleared(entityhistory.FieldName) { - fields = append(fields, entityhistory.FieldName) + if m.FieldCleared(entitlementhistory.FieldDeletedAt) { + fields = append(fields, entitlementhistory.FieldDeletedAt) } - if m.FieldCleared(entityhistory.FieldDisplayName) { - fields = append(fields, entityhistory.FieldDisplayName) + if m.FieldCleared(entitlementhistory.FieldDeletedBy) { + fields = append(fields, entitlementhistory.FieldDeletedBy) } - if m.FieldCleared(entityhistory.FieldDescription) { - fields = append(fields, entityhistory.FieldDescription) + if m.FieldCleared(entitlementhistory.FieldOwnerID) { + fields = append(fields, entitlementhistory.FieldOwnerID) } - if m.FieldCleared(entityhistory.FieldDomains) { - fields = append(fields, entityhistory.FieldDomains) + if m.FieldCleared(entitlementhistory.FieldExternalCustomerID) { + fields = append(fields, entitlementhistory.FieldExternalCustomerID) } - if m.FieldCleared(entityhistory.FieldEntityTypeID) { - fields = append(fields, entityhistory.FieldEntityTypeID) + if m.FieldCleared(entitlementhistory.FieldExternalSubscriptionID) { + fields = append(fields, entitlementhistory.FieldExternalSubscriptionID) } - if m.FieldCleared(entityhistory.FieldStatus) { - fields = append(fields, entityhistory.FieldStatus) + if m.FieldCleared(entitlementhistory.FieldExpiresAt) { + fields = append(fields, entitlementhistory.FieldExpiresAt) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *EntityHistoryMutation) FieldCleared(name string) bool { +func (m *EntitlementHistoryMutation) 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 *EntityHistoryMutation) ClearField(name string) error { +func (m *EntitlementHistoryMutation) ClearField(name string) error { switch name { - case entityhistory.FieldRef: + case entitlementhistory.FieldRef: m.ClearRef() return nil - case entityhistory.FieldCreatedAt: + case entitlementhistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case entityhistory.FieldUpdatedAt: + case entitlementhistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case entityhistory.FieldCreatedBy: + case entitlementhistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case entityhistory.FieldUpdatedBy: + case entitlementhistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case entityhistory.FieldDeletedAt: + case entitlementhistory.FieldTags: + m.ClearTags() + return nil + case entitlementhistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case entityhistory.FieldDeletedBy: + case entitlementhistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case entityhistory.FieldTags: - m.ClearTags() - return nil - case entityhistory.FieldOwnerID: + case entitlementhistory.FieldOwnerID: m.ClearOwnerID() return nil - case entityhistory.FieldName: - m.ClearName() - return nil - case entityhistory.FieldDisplayName: - m.ClearDisplayName() - return nil - case entityhistory.FieldDescription: - m.ClearDescription() - return nil - case entityhistory.FieldDomains: - m.ClearDomains() + case entitlementhistory.FieldExternalCustomerID: + m.ClearExternalCustomerID() return nil - case entityhistory.FieldEntityTypeID: - m.ClearEntityTypeID() + case entitlementhistory.FieldExternalSubscriptionID: + m.ClearExternalSubscriptionID() return nil - case entityhistory.FieldStatus: - m.ClearStatus() + case entitlementhistory.FieldExpiresAt: + m.ClearExpiresAt() return nil } - return fmt.Errorf("unknown EntityHistory nullable field %s", name) + return fmt.Errorf("unknown EntitlementHistory 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 *EntityHistoryMutation) ResetField(name string) error { +func (m *EntitlementHistoryMutation) ResetField(name string) error { switch name { - case entityhistory.FieldHistoryTime: + case entitlementhistory.FieldHistoryTime: m.ResetHistoryTime() return nil - case entityhistory.FieldRef: + case entitlementhistory.FieldRef: m.ResetRef() return nil - case entityhistory.FieldOperation: + case entitlementhistory.FieldOperation: m.ResetOperation() return nil - case entityhistory.FieldCreatedAt: + case entitlementhistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case entityhistory.FieldUpdatedAt: + case entitlementhistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case entityhistory.FieldCreatedBy: + case entitlementhistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case entityhistory.FieldUpdatedBy: + case entitlementhistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case entityhistory.FieldMappingID: + case entitlementhistory.FieldMappingID: m.ResetMappingID() return nil - case entityhistory.FieldDeletedAt: + case entitlementhistory.FieldTags: + m.ResetTags() + return nil + case entitlementhistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case entityhistory.FieldDeletedBy: + case entitlementhistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case entityhistory.FieldTags: - m.ResetTags() - return nil - case entityhistory.FieldOwnerID: + case entitlementhistory.FieldOwnerID: m.ResetOwnerID() return nil - case entityhistory.FieldName: - m.ResetName() + case entitlementhistory.FieldPlanID: + m.ResetPlanID() return nil - case entityhistory.FieldDisplayName: - m.ResetDisplayName() + case entitlementhistory.FieldOrganizationID: + m.ResetOrganizationID() return nil - case entityhistory.FieldDescription: - m.ResetDescription() + case entitlementhistory.FieldExternalCustomerID: + m.ResetExternalCustomerID() return nil - case entityhistory.FieldDomains: - m.ResetDomains() + case entitlementhistory.FieldExternalSubscriptionID: + m.ResetExternalSubscriptionID() return nil - case entityhistory.FieldEntityTypeID: - m.ResetEntityTypeID() + case entitlementhistory.FieldExpires: + m.ResetExpires() return nil - case entityhistory.FieldStatus: - m.ResetStatus() + case entitlementhistory.FieldExpiresAt: + m.ResetExpiresAt() + return nil + case entitlementhistory.FieldCancelled: + m.ResetCancelled() return nil } - return fmt.Errorf("unknown EntityHistory field %s", name) + return fmt.Errorf("unknown EntitlementHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *EntityHistoryMutation) AddedEdges() []string { +func (m *EntitlementHistoryMutation) 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 *EntityHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *EntitlementHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *EntityHistoryMutation) RemovedEdges() []string { +func (m *EntitlementHistoryMutation) 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 *EntityHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *EntitlementHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EntityHistoryMutation) ClearedEdges() []string { +func (m *EntitlementHistoryMutation) 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 *EntityHistoryMutation) EdgeCleared(name string) bool { +func (m *EntitlementHistoryMutation) 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 *EntityHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown EntityHistory unique edge %s", name) +func (m *EntitlementHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown EntitlementHistory 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 *EntityHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown EntityHistory edge %s", name) +func (m *EntitlementHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown EntitlementHistory edge %s", name) } -// EntityTypeMutation represents an operation that mutates the EntityType nodes in the graph. -type EntityTypeMutation struct { +// EntitlementPlanMutation represents an operation that mutates the EntitlementPlan nodes in the graph. +type EntitlementPlanMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - deleted_at *time.Time - deleted_by *string - tags *[]string - appendtags []string - name *string - clearedFields map[string]struct{} - owner *string - clearedowner bool - entities map[string]struct{} - removedentities map[string]struct{} - clearedentities bool - done bool - oldValue func(context.Context) (*EntityType, error) - predicates []predicate.EntityType + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + deleted_at *time.Time + deleted_by *string + tags *[]string + appendtags []string + display_name *string + name *string + description *string + version *string + metadata *map[string]interface{} + clearedFields map[string]struct{} + owner *string + clearedowner bool + entitlements map[string]struct{} + removedentitlements map[string]struct{} + clearedentitlements bool + base_features map[string]struct{} + removedbase_features map[string]struct{} + clearedbase_features bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + features map[string]struct{} + removedfeatures map[string]struct{} + clearedfeatures bool + done bool + oldValue func(context.Context) (*EntitlementPlan, error) + predicates []predicate.EntitlementPlan } -var _ ent.Mutation = (*EntityTypeMutation)(nil) +var _ ent.Mutation = (*EntitlementPlanMutation)(nil) -// entitytypeOption allows management of the mutation configuration using functional options. -type entitytypeOption func(*EntityTypeMutation) +// entitlementplanOption allows management of the mutation configuration using functional options. +type entitlementplanOption func(*EntitlementPlanMutation) -// newEntityTypeMutation creates new mutation for the EntityType entity. -func newEntityTypeMutation(c config, op Op, opts ...entitytypeOption) *EntityTypeMutation { - m := &EntityTypeMutation{ +// newEntitlementPlanMutation creates new mutation for the EntitlementPlan entity. +func newEntitlementPlanMutation(c config, op Op, opts ...entitlementplanOption) *EntitlementPlanMutation { + m := &EntitlementPlanMutation{ config: c, op: op, - typ: TypeEntityType, + typ: TypeEntitlementPlan, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -20742,20 +23164,20 @@ func newEntityTypeMutation(c config, op Op, opts ...entitytypeOption) *EntityTyp return m } -// withEntityTypeID sets the ID field of the mutation. -func withEntityTypeID(id string) entitytypeOption { - return func(m *EntityTypeMutation) { +// withEntitlementPlanID sets the ID field of the mutation. +func withEntitlementPlanID(id string) entitlementplanOption { + return func(m *EntitlementPlanMutation) { var ( err error once sync.Once - value *EntityType + value *EntitlementPlan ) - m.oldValue = func(ctx context.Context) (*EntityType, error) { + m.oldValue = func(ctx context.Context) (*EntitlementPlan, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().EntityType.Get(ctx, id) + value, err = m.Client().EntitlementPlan.Get(ctx, id) } }) return value, err @@ -20764,10 +23186,10 @@ func withEntityTypeID(id string) entitytypeOption { } } -// withEntityType sets the old EntityType of the mutation. -func withEntityType(node *EntityType) entitytypeOption { - return func(m *EntityTypeMutation) { - m.oldValue = func(context.Context) (*EntityType, error) { +// withEntitlementPlan sets the old EntitlementPlan of the mutation. +func withEntitlementPlan(node *EntitlementPlan) entitlementplanOption { + return func(m *EntitlementPlanMutation) { + m.oldValue = func(context.Context) (*EntitlementPlan, error) { return node, nil } m.id = &node.ID @@ -20776,7 +23198,7 @@ func withEntityType(node *EntityType) entitytypeOption { // 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 EntityTypeMutation) Client() *Client { +func (m EntitlementPlanMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -20784,7 +23206,7 @@ func (m EntityTypeMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EntityTypeMutation) Tx() (*Tx, error) { +func (m EntitlementPlanMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -20794,14 +23216,14 @@ func (m EntityTypeMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of EntityType entities. -func (m *EntityTypeMutation) SetID(id string) { +// operation is only accepted on creation of EntitlementPlan entities. +func (m *EntitlementPlanMutation) 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 *EntityTypeMutation) ID() (id string, exists bool) { +func (m *EntitlementPlanMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -20812,7 +23234,7 @@ func (m *EntityTypeMutation) ID() (id string, exists bool) { // 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 *EntityTypeMutation) IDs(ctx context.Context) ([]string, error) { +func (m *EntitlementPlanMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -20821,19 +23243,19 @@ func (m *EntityTypeMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().EntityType.Query().Where(m.predicates...).IDs(ctx) + return m.Client().EntitlementPlan.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 *EntityTypeMutation) SetCreatedAt(t time.Time) { +func (m *EntitlementPlanMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EntityTypeMutation) CreatedAt() (r time.Time, exists bool) { +func (m *EntitlementPlanMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -20841,10 +23263,10 @@ func (m *EntityTypeMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the EntityType entity. -// If the EntityType object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the EntitlementPlan entity. +// If the EntitlementPlan 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 *EntityTypeMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementPlanMutation) 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") } @@ -20859,30 +23281,30 @@ func (m *EntityTypeMutation) OldCreatedAt(ctx context.Context) (v time.Time, err } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EntityTypeMutation) ClearCreatedAt() { +func (m *EntitlementPlanMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[entitytype.FieldCreatedAt] = struct{}{} + m.clearedFields[entitlementplan.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EntityTypeMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[entitytype.FieldCreatedAt] +func (m *EntitlementPlanMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[entitlementplan.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EntityTypeMutation) ResetCreatedAt() { +func (m *EntitlementPlanMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, entitytype.FieldCreatedAt) + delete(m.clearedFields, entitlementplan.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EntityTypeMutation) SetUpdatedAt(t time.Time) { +func (m *EntitlementPlanMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EntityTypeMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *EntitlementPlanMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -20890,10 +23312,10 @@ func (m *EntityTypeMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the EntityType entity. -// If the EntityType object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the EntitlementPlan entity. +// If the EntitlementPlan 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 *EntityTypeMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementPlanMutation) 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") } @@ -20908,30 +23330,30 @@ func (m *EntityTypeMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EntityTypeMutation) ClearUpdatedAt() { +func (m *EntitlementPlanMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[entitytype.FieldUpdatedAt] = struct{}{} + m.clearedFields[entitlementplan.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EntityTypeMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[entitytype.FieldUpdatedAt] +func (m *EntitlementPlanMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[entitlementplan.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EntityTypeMutation) ResetUpdatedAt() { +func (m *EntitlementPlanMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, entitytype.FieldUpdatedAt) + delete(m.clearedFields, entitlementplan.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EntityTypeMutation) SetCreatedBy(s string) { +func (m *EntitlementPlanMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EntityTypeMutation) CreatedBy() (r string, exists bool) { +func (m *EntitlementPlanMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -20939,10 +23361,10 @@ func (m *EntityTypeMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the EntityType entity. -// If the EntityType object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the EntitlementPlan entity. +// If the EntitlementPlan 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 *EntityTypeMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -20957,30 +23379,30 @@ func (m *EntityTypeMutation) OldCreatedBy(ctx context.Context) (v string, err er } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EntityTypeMutation) ClearCreatedBy() { +func (m *EntitlementPlanMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[entitytype.FieldCreatedBy] = struct{}{} + m.clearedFields[entitlementplan.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EntityTypeMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[entitytype.FieldCreatedBy] +func (m *EntitlementPlanMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[entitlementplan.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EntityTypeMutation) ResetCreatedBy() { +func (m *EntitlementPlanMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, entitytype.FieldCreatedBy) + delete(m.clearedFields, entitlementplan.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EntityTypeMutation) SetUpdatedBy(s string) { +func (m *EntitlementPlanMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EntityTypeMutation) UpdatedBy() (r string, exists bool) { +func (m *EntitlementPlanMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -20988,10 +23410,10 @@ func (m *EntityTypeMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the EntityType entity. -// If the EntityType object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the EntitlementPlan entity. +// If the EntitlementPlan 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 *EntityTypeMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -21006,30 +23428,30 @@ func (m *EntityTypeMutation) OldUpdatedBy(ctx context.Context) (v string, err er } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EntityTypeMutation) ClearUpdatedBy() { +func (m *EntitlementPlanMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[entitytype.FieldUpdatedBy] = struct{}{} + m.clearedFields[entitlementplan.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EntityTypeMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[entitytype.FieldUpdatedBy] +func (m *EntitlementPlanMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[entitlementplan.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EntityTypeMutation) ResetUpdatedBy() { +func (m *EntitlementPlanMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, entitytype.FieldUpdatedBy) + delete(m.clearedFields, entitlementplan.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *EntityTypeMutation) SetMappingID(s string) { +func (m *EntitlementPlanMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EntityTypeMutation) MappingID() (r string, exists bool) { +func (m *EntitlementPlanMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -21037,10 +23459,10 @@ func (m *EntityTypeMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the EntityType entity. -// If the EntityType object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the EntitlementPlan entity. +// If the EntitlementPlan 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 *EntityTypeMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -21055,17 +23477,17 @@ func (m *EntityTypeMutation) OldMappingID(ctx context.Context) (v string, err er } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *EntityTypeMutation) ResetMappingID() { +func (m *EntitlementPlanMutation) ResetMappingID() { m.mapping_id = nil } // SetDeletedAt sets the "deleted_at" field. -func (m *EntityTypeMutation) SetDeletedAt(t time.Time) { +func (m *EntitlementPlanMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *EntityTypeMutation) DeletedAt() (r time.Time, exists bool) { +func (m *EntitlementPlanMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -21073,10 +23495,10 @@ func (m *EntityTypeMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the EntityType entity. -// If the EntityType object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the EntitlementPlan entity. +// If the EntitlementPlan 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 *EntityTypeMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementPlanMutation) 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") } @@ -21091,30 +23513,30 @@ func (m *EntityTypeMutation) OldDeletedAt(ctx context.Context) (v time.Time, err } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *EntityTypeMutation) ClearDeletedAt() { +func (m *EntitlementPlanMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[entitytype.FieldDeletedAt] = struct{}{} + m.clearedFields[entitlementplan.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *EntityTypeMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[entitytype.FieldDeletedAt] +func (m *EntitlementPlanMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[entitlementplan.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *EntityTypeMutation) ResetDeletedAt() { +func (m *EntitlementPlanMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, entitytype.FieldDeletedAt) + delete(m.clearedFields, entitlementplan.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *EntityTypeMutation) SetDeletedBy(s string) { +func (m *EntitlementPlanMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *EntityTypeMutation) DeletedBy() (r string, exists bool) { +func (m *EntitlementPlanMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -21122,10 +23544,10 @@ func (m *EntityTypeMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the EntityType entity. -// If the EntityType object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the EntitlementPlan entity. +// If the EntitlementPlan 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 *EntityTypeMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -21140,31 +23562,31 @@ func (m *EntityTypeMutation) OldDeletedBy(ctx context.Context) (v string, err er } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *EntityTypeMutation) ClearDeletedBy() { +func (m *EntitlementPlanMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[entitytype.FieldDeletedBy] = struct{}{} + m.clearedFields[entitlementplan.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *EntityTypeMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[entitytype.FieldDeletedBy] +func (m *EntitlementPlanMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[entitlementplan.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *EntityTypeMutation) ResetDeletedBy() { +func (m *EntitlementPlanMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, entitytype.FieldDeletedBy) + delete(m.clearedFields, entitlementplan.FieldDeletedBy) } // SetTags sets the "tags" field. -func (m *EntityTypeMutation) SetTags(s []string) { +func (m *EntitlementPlanMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *EntityTypeMutation) Tags() (r []string, exists bool) { +func (m *EntitlementPlanMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -21172,10 +23594,10 @@ func (m *EntityTypeMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the EntityType entity. -// If the EntityType object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the EntitlementPlan entity. +// If the EntitlementPlan 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 *EntityTypeMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *EntitlementPlanMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -21190,12 +23612,12 @@ func (m *EntityTypeMutation) OldTags(ctx context.Context) (v []string, err error } // AppendTags adds s to the "tags" field. -func (m *EntityTypeMutation) AppendTags(s []string) { +func (m *EntitlementPlanMutation) 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 *EntityTypeMutation) AppendedTags() ([]string, bool) { +func (m *EntitlementPlanMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -21203,32 +23625,32 @@ func (m *EntityTypeMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *EntityTypeMutation) ClearTags() { +func (m *EntitlementPlanMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[entitytype.FieldTags] = struct{}{} + m.clearedFields[entitlementplan.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *EntityTypeMutation) TagsCleared() bool { - _, ok := m.clearedFields[entitytype.FieldTags] +func (m *EntitlementPlanMutation) TagsCleared() bool { + _, ok := m.clearedFields[entitlementplan.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *EntityTypeMutation) ResetTags() { +func (m *EntitlementPlanMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, entitytype.FieldTags) + delete(m.clearedFields, entitlementplan.FieldTags) } // SetOwnerID sets the "owner_id" field. -func (m *EntityTypeMutation) SetOwnerID(s string) { +func (m *EntitlementPlanMutation) SetOwnerID(s string) { m.owner = &s } // OwnerID returns the value of the "owner_id" field in the mutation. -func (m *EntityTypeMutation) OwnerID() (r string, exists bool) { +func (m *EntitlementPlanMutation) OwnerID() (r string, exists bool) { v := m.owner if v == nil { return @@ -21236,10 +23658,10 @@ func (m *EntityTypeMutation) OwnerID() (r string, exists bool) { return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the EntityType entity. -// If the EntityType object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the EntitlementPlan entity. +// If the EntitlementPlan 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 *EntityTypeMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") } @@ -21254,30 +23676,79 @@ func (m *EntityTypeMutation) OldOwnerID(ctx context.Context) (v string, err erro } // ClearOwnerID clears the value of the "owner_id" field. -func (m *EntityTypeMutation) ClearOwnerID() { +func (m *EntitlementPlanMutation) ClearOwnerID() { m.owner = nil - m.clearedFields[entitytype.FieldOwnerID] = struct{}{} + m.clearedFields[entitlementplan.FieldOwnerID] = struct{}{} } // OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *EntityTypeMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[entitytype.FieldOwnerID] +func (m *EntitlementPlanMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[entitlementplan.FieldOwnerID] return ok } // ResetOwnerID resets all changes to the "owner_id" field. -func (m *EntityTypeMutation) ResetOwnerID() { +func (m *EntitlementPlanMutation) ResetOwnerID() { m.owner = nil - delete(m.clearedFields, entitytype.FieldOwnerID) + delete(m.clearedFields, entitlementplan.FieldOwnerID) +} + +// SetDisplayName sets the "display_name" field. +func (m *EntitlementPlanMutation) SetDisplayName(s string) { + m.display_name = &s +} + +// DisplayName returns the value of the "display_name" field in the mutation. +func (m *EntitlementPlanMutation) DisplayName() (r string, exists bool) { + v := m.display_name + if v == nil { + return + } + return *v, true +} + +// OldDisplayName returns the old "display_name" field's value of the EntitlementPlan entity. +// If the EntitlementPlan 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 *EntitlementPlanMutation) OldDisplayName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDisplayName requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) + } + return oldValue.DisplayName, nil +} + +// ClearDisplayName clears the value of the "display_name" field. +func (m *EntitlementPlanMutation) ClearDisplayName() { + m.display_name = nil + m.clearedFields[entitlementplan.FieldDisplayName] = struct{}{} +} + +// DisplayNameCleared returns if the "display_name" field was cleared in this mutation. +func (m *EntitlementPlanMutation) DisplayNameCleared() bool { + _, ok := m.clearedFields[entitlementplan.FieldDisplayName] + return ok +} + +// ResetDisplayName resets all changes to the "display_name" field. +func (m *EntitlementPlanMutation) ResetDisplayName() { + m.display_name = nil + delete(m.clearedFields, entitlementplan.FieldDisplayName) } // SetName sets the "name" field. -func (m *EntityTypeMutation) SetName(s string) { +func (m *EntitlementPlanMutation) SetName(s string) { m.name = &s } // Name returns the value of the "name" field in the mutation. -func (m *EntityTypeMutation) Name() (r string, exists bool) { +func (m *EntitlementPlanMutation) Name() (r string, exists bool) { v := m.name if v == nil { return @@ -21285,10 +23756,10 @@ func (m *EntityTypeMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old "name" field's value of the EntityType entity. -// If the EntityType object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the EntitlementPlan entity. +// If the EntitlementPlan 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 *EntityTypeMutation) OldName(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldName is only allowed on UpdateOne operations") } @@ -21303,25 +23774,159 @@ func (m *EntityTypeMutation) OldName(ctx context.Context) (v string, err error) } // ResetName resets all changes to the "name" field. -func (m *EntityTypeMutation) ResetName() { +func (m *EntitlementPlanMutation) ResetName() { m.name = nil } +// SetDescription sets the "description" field. +func (m *EntitlementPlanMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *EntitlementPlanMutation) 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 EntitlementPlan entity. +// If the EntitlementPlan 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 *EntitlementPlanMutation) 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 *EntitlementPlanMutation) ClearDescription() { + m.description = nil + m.clearedFields[entitlementplan.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *EntitlementPlanMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[entitlementplan.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *EntitlementPlanMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, entitlementplan.FieldDescription) +} + +// SetVersion sets the "version" field. +func (m *EntitlementPlanMutation) SetVersion(s string) { + m.version = &s +} + +// Version returns the value of the "version" field in the mutation. +func (m *EntitlementPlanMutation) Version() (r string, exists bool) { + v := m.version + if v == nil { + return + } + return *v, true +} + +// OldVersion returns the old "version" field's value of the EntitlementPlan entity. +// If the EntitlementPlan 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 *EntitlementPlanMutation) OldVersion(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldVersion is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldVersion requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldVersion: %w", err) + } + return oldValue.Version, nil +} + +// ResetVersion resets all changes to the "version" field. +func (m *EntitlementPlanMutation) ResetVersion() { + m.version = nil +} + +// SetMetadata sets the "metadata" field. +func (m *EntitlementPlanMutation) SetMetadata(value map[string]interface{}) { + m.metadata = &value +} + +// Metadata returns the value of the "metadata" field in the mutation. +func (m *EntitlementPlanMutation) 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 EntitlementPlan entity. +// If the EntitlementPlan 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 *EntitlementPlanMutation) 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 *EntitlementPlanMutation) ClearMetadata() { + m.metadata = nil + m.clearedFields[entitlementplan.FieldMetadata] = struct{}{} +} + +// MetadataCleared returns if the "metadata" field was cleared in this mutation. +func (m *EntitlementPlanMutation) MetadataCleared() bool { + _, ok := m.clearedFields[entitlementplan.FieldMetadata] + return ok +} + +// ResetMetadata resets all changes to the "metadata" field. +func (m *EntitlementPlanMutation) ResetMetadata() { + m.metadata = nil + delete(m.clearedFields, entitlementplan.FieldMetadata) +} + // ClearOwner clears the "owner" edge to the Organization entity. -func (m *EntityTypeMutation) ClearOwner() { +func (m *EntitlementPlanMutation) ClearOwner() { m.clearedowner = true - m.clearedFields[entitytype.FieldOwnerID] = struct{}{} + m.clearedFields[entitlementplan.FieldOwnerID] = struct{}{} } // OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *EntityTypeMutation) OwnerCleared() bool { +func (m *EntitlementPlanMutation) 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 *EntityTypeMutation) OwnerIDs() (ids []string) { +func (m *EntitlementPlanMutation) OwnerIDs() (ids []string) { if id := m.owner; id != nil { ids = append(ids, *id) } @@ -21329,129 +23934,303 @@ func (m *EntityTypeMutation) OwnerIDs() (ids []string) { } // ResetOwner resets all changes to the "owner" edge. -func (m *EntityTypeMutation) ResetOwner() { +func (m *EntitlementPlanMutation) ResetOwner() { m.owner = nil m.clearedowner = false } -// AddEntityIDs adds the "entities" edge to the Entity entity by ids. -func (m *EntityTypeMutation) AddEntityIDs(ids ...string) { - if m.entities == nil { - m.entities = make(map[string]struct{}) +// AddEntitlementIDs adds the "entitlements" edge to the Entitlement entity by ids. +func (m *EntitlementPlanMutation) AddEntitlementIDs(ids ...string) { + if m.entitlements == nil { + m.entitlements = make(map[string]struct{}) } for i := range ids { - m.entities[ids[i]] = struct{}{} + m.entitlements[ids[i]] = struct{}{} } } -// ClearEntities clears the "entities" edge to the Entity entity. -func (m *EntityTypeMutation) ClearEntities() { - m.clearedentities = true +// ClearEntitlements clears the "entitlements" edge to the Entitlement entity. +func (m *EntitlementPlanMutation) ClearEntitlements() { + m.clearedentitlements = true } -// EntitiesCleared reports if the "entities" edge to the Entity entity was cleared. -func (m *EntityTypeMutation) EntitiesCleared() bool { - return m.clearedentities +// EntitlementsCleared reports if the "entitlements" edge to the Entitlement entity was cleared. +func (m *EntitlementPlanMutation) EntitlementsCleared() bool { + return m.clearedentitlements } -// RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs. -func (m *EntityTypeMutation) RemoveEntityIDs(ids ...string) { - if m.removedentities == nil { - m.removedentities = make(map[string]struct{}) +// RemoveEntitlementIDs removes the "entitlements" edge to the Entitlement entity by IDs. +func (m *EntitlementPlanMutation) RemoveEntitlementIDs(ids ...string) { + if m.removedentitlements == nil { + m.removedentitlements = make(map[string]struct{}) } for i := range ids { - delete(m.entities, ids[i]) - m.removedentities[ids[i]] = struct{}{} + delete(m.entitlements, ids[i]) + m.removedentitlements[ids[i]] = struct{}{} } } -// RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity. -func (m *EntityTypeMutation) RemovedEntitiesIDs() (ids []string) { - for id := range m.removedentities { +// RemovedEntitlements returns the removed IDs of the "entitlements" edge to the Entitlement entity. +func (m *EntitlementPlanMutation) RemovedEntitlementsIDs() (ids []string) { + for id := range m.removedentitlements { ids = append(ids, id) } return } -// EntitiesIDs returns the "entities" edge IDs in the mutation. -func (m *EntityTypeMutation) EntitiesIDs() (ids []string) { - for id := range m.entities { +// EntitlementsIDs returns the "entitlements" edge IDs in the mutation. +func (m *EntitlementPlanMutation) EntitlementsIDs() (ids []string) { + for id := range m.entitlements { ids = append(ids, id) } return } -// ResetEntities resets all changes to the "entities" edge. -func (m *EntityTypeMutation) ResetEntities() { - m.entities = nil - m.clearedentities = false - m.removedentities = nil -} - -// Where appends a list predicates to the EntityTypeMutation builder. -func (m *EntityTypeMutation) Where(ps ...predicate.EntityType) { - m.predicates = append(m.predicates, ps...) +// ResetEntitlements resets all changes to the "entitlements" edge. +func (m *EntitlementPlanMutation) ResetEntitlements() { + m.entitlements = nil + m.clearedentitlements = false + m.removedentitlements = nil } -// WhereP appends storage-level predicates to the EntityTypeMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EntityTypeMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.EntityType, len(ps)) - for i := range ps { - p[i] = ps[i] +// AddBaseFeatureIDs adds the "base_features" edge to the Feature entity by ids. +func (m *EntitlementPlanMutation) AddBaseFeatureIDs(ids ...string) { + if m.base_features == nil { + m.base_features = make(map[string]struct{}) + } + for i := range ids { + m.base_features[ids[i]] = struct{}{} } - m.Where(p...) } -// Op returns the operation name. -func (m *EntityTypeMutation) Op() Op { - return m.op +// ClearBaseFeatures clears the "base_features" edge to the Feature entity. +func (m *EntitlementPlanMutation) ClearBaseFeatures() { + m.clearedbase_features = true } -// SetOp allows setting the mutation operation. -func (m *EntityTypeMutation) SetOp(op Op) { - m.op = op +// BaseFeaturesCleared reports if the "base_features" edge to the Feature entity was cleared. +func (m *EntitlementPlanMutation) BaseFeaturesCleared() bool { + return m.clearedbase_features } -// Type returns the node type of this mutation (EntityType). -func (m *EntityTypeMutation) Type() string { - return m.typ +// RemoveBaseFeatureIDs removes the "base_features" edge to the Feature entity by IDs. +func (m *EntitlementPlanMutation) RemoveBaseFeatureIDs(ids ...string) { + if m.removedbase_features == nil { + m.removedbase_features = make(map[string]struct{}) + } + for i := range ids { + delete(m.base_features, ids[i]) + m.removedbase_features[ids[i]] = struct{}{} + } } -// 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 *EntityTypeMutation) Fields() []string { - fields := make([]string, 0, 10) - if m.created_at != nil { - fields = append(fields, entitytype.FieldCreatedAt) +// RemovedBaseFeatures returns the removed IDs of the "base_features" edge to the Feature entity. +func (m *EntitlementPlanMutation) RemovedBaseFeaturesIDs() (ids []string) { + for id := range m.removedbase_features { + ids = append(ids, id) } - if m.updated_at != nil { - fields = append(fields, entitytype.FieldUpdatedAt) + return +} + +// BaseFeaturesIDs returns the "base_features" edge IDs in the mutation. +func (m *EntitlementPlanMutation) BaseFeaturesIDs() (ids []string) { + for id := range m.base_features { + ids = append(ids, id) + } + return +} + +// ResetBaseFeatures resets all changes to the "base_features" edge. +func (m *EntitlementPlanMutation) ResetBaseFeatures() { + m.base_features = nil + m.clearedbase_features = false + m.removedbase_features = nil +} + +// AddEventIDs adds the "events" edge to the Event entity by ids. +func (m *EntitlementPlanMutation) AddEventIDs(ids ...string) { + if m.events == nil { + m.events = make(map[string]struct{}) + } + for i := range ids { + m.events[ids[i]] = struct{}{} + } +} + +// ClearEvents clears the "events" edge to the Event entity. +func (m *EntitlementPlanMutation) ClearEvents() { + m.clearedevents = true +} + +// EventsCleared reports if the "events" edge to the Event entity was cleared. +func (m *EntitlementPlanMutation) EventsCleared() bool { + return m.clearedevents +} + +// RemoveEventIDs removes the "events" edge to the Event entity by IDs. +func (m *EntitlementPlanMutation) RemoveEventIDs(ids ...string) { + if m.removedevents == nil { + m.removedevents = make(map[string]struct{}) + } + for i := range ids { + delete(m.events, ids[i]) + m.removedevents[ids[i]] = struct{}{} + } +} + +// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. +func (m *EntitlementPlanMutation) RemovedEventsIDs() (ids []string) { + for id := range m.removedevents { + ids = append(ids, id) + } + return +} + +// EventsIDs returns the "events" edge IDs in the mutation. +func (m *EntitlementPlanMutation) EventsIDs() (ids []string) { + for id := range m.events { + ids = append(ids, id) + } + return +} + +// ResetEvents resets all changes to the "events" edge. +func (m *EntitlementPlanMutation) ResetEvents() { + m.events = nil + m.clearedevents = false + m.removedevents = nil +} + +// AddFeatureIDs adds the "features" edge to the EntitlementPlanFeature entity by ids. +func (m *EntitlementPlanMutation) AddFeatureIDs(ids ...string) { + if m.features == nil { + m.features = make(map[string]struct{}) + } + for i := range ids { + m.features[ids[i]] = struct{}{} + } +} + +// ClearFeatures clears the "features" edge to the EntitlementPlanFeature entity. +func (m *EntitlementPlanMutation) ClearFeatures() { + m.clearedfeatures = true +} + +// FeaturesCleared reports if the "features" edge to the EntitlementPlanFeature entity was cleared. +func (m *EntitlementPlanMutation) FeaturesCleared() bool { + return m.clearedfeatures +} + +// RemoveFeatureIDs removes the "features" edge to the EntitlementPlanFeature entity by IDs. +func (m *EntitlementPlanMutation) RemoveFeatureIDs(ids ...string) { + if m.removedfeatures == nil { + m.removedfeatures = make(map[string]struct{}) + } + for i := range ids { + delete(m.features, ids[i]) + m.removedfeatures[ids[i]] = struct{}{} + } +} + +// RemovedFeatures returns the removed IDs of the "features" edge to the EntitlementPlanFeature entity. +func (m *EntitlementPlanMutation) RemovedFeaturesIDs() (ids []string) { + for id := range m.removedfeatures { + ids = append(ids, id) + } + return +} + +// FeaturesIDs returns the "features" edge IDs in the mutation. +func (m *EntitlementPlanMutation) FeaturesIDs() (ids []string) { + for id := range m.features { + ids = append(ids, id) + } + return +} + +// ResetFeatures resets all changes to the "features" edge. +func (m *EntitlementPlanMutation) ResetFeatures() { + m.features = nil + m.clearedfeatures = false + m.removedfeatures = nil +} + +// Where appends a list predicates to the EntitlementPlanMutation builder. +func (m *EntitlementPlanMutation) Where(ps ...predicate.EntitlementPlan) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the EntitlementPlanMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *EntitlementPlanMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.EntitlementPlan, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *EntitlementPlanMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *EntitlementPlanMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (EntitlementPlan). +func (m *EntitlementPlanMutation) 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 *EntitlementPlanMutation) Fields() []string { + fields := make([]string, 0, 14) + if m.created_at != nil { + fields = append(fields, entitlementplan.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, entitlementplan.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, entitytype.FieldCreatedBy) + fields = append(fields, entitlementplan.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, entitytype.FieldUpdatedBy) + fields = append(fields, entitlementplan.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, entitytype.FieldMappingID) + fields = append(fields, entitlementplan.FieldMappingID) } if m.deleted_at != nil { - fields = append(fields, entitytype.FieldDeletedAt) + fields = append(fields, entitlementplan.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, entitytype.FieldDeletedBy) + fields = append(fields, entitlementplan.FieldDeletedBy) } if m.tags != nil { - fields = append(fields, entitytype.FieldTags) + fields = append(fields, entitlementplan.FieldTags) } if m.owner != nil { - fields = append(fields, entitytype.FieldOwnerID) + fields = append(fields, entitlementplan.FieldOwnerID) + } + if m.display_name != nil { + fields = append(fields, entitlementplan.FieldDisplayName) } if m.name != nil { - fields = append(fields, entitytype.FieldName) + fields = append(fields, entitlementplan.FieldName) + } + if m.description != nil { + fields = append(fields, entitlementplan.FieldDescription) + } + if m.version != nil { + fields = append(fields, entitlementplan.FieldVersion) + } + if m.metadata != nil { + fields = append(fields, entitlementplan.FieldMetadata) } return fields } @@ -21459,28 +24238,36 @@ func (m *EntityTypeMutation) Fields() []string { // 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 *EntityTypeMutation) Field(name string) (ent.Value, bool) { +func (m *EntitlementPlanMutation) Field(name string) (ent.Value, bool) { switch name { - case entitytype.FieldCreatedAt: + case entitlementplan.FieldCreatedAt: return m.CreatedAt() - case entitytype.FieldUpdatedAt: + case entitlementplan.FieldUpdatedAt: return m.UpdatedAt() - case entitytype.FieldCreatedBy: + case entitlementplan.FieldCreatedBy: return m.CreatedBy() - case entitytype.FieldUpdatedBy: + case entitlementplan.FieldUpdatedBy: return m.UpdatedBy() - case entitytype.FieldMappingID: + case entitlementplan.FieldMappingID: return m.MappingID() - case entitytype.FieldDeletedAt: + case entitlementplan.FieldDeletedAt: return m.DeletedAt() - case entitytype.FieldDeletedBy: + case entitlementplan.FieldDeletedBy: return m.DeletedBy() - case entitytype.FieldTags: + case entitlementplan.FieldTags: return m.Tags() - case entitytype.FieldOwnerID: + case entitlementplan.FieldOwnerID: return m.OwnerID() - case entitytype.FieldName: + case entitlementplan.FieldDisplayName: + return m.DisplayName() + case entitlementplan.FieldName: return m.Name() + case entitlementplan.FieldDescription: + return m.Description() + case entitlementplan.FieldVersion: + return m.Version() + case entitlementplan.FieldMetadata: + return m.Metadata() } return nil, false } @@ -21488,264 +24275,357 @@ func (m *EntityTypeMutation) Field(name string) (ent.Value, bool) { // 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 *EntityTypeMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *EntitlementPlanMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case entitytype.FieldCreatedAt: + case entitlementplan.FieldCreatedAt: return m.OldCreatedAt(ctx) - case entitytype.FieldUpdatedAt: + case entitlementplan.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case entitytype.FieldCreatedBy: + case entitlementplan.FieldCreatedBy: return m.OldCreatedBy(ctx) - case entitytype.FieldUpdatedBy: + case entitlementplan.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case entitytype.FieldMappingID: + case entitlementplan.FieldMappingID: return m.OldMappingID(ctx) - case entitytype.FieldDeletedAt: + case entitlementplan.FieldDeletedAt: return m.OldDeletedAt(ctx) - case entitytype.FieldDeletedBy: + case entitlementplan.FieldDeletedBy: return m.OldDeletedBy(ctx) - case entitytype.FieldTags: + case entitlementplan.FieldTags: return m.OldTags(ctx) - case entitytype.FieldOwnerID: + case entitlementplan.FieldOwnerID: return m.OldOwnerID(ctx) - case entitytype.FieldName: + case entitlementplan.FieldDisplayName: + return m.OldDisplayName(ctx) + case entitlementplan.FieldName: return m.OldName(ctx) + case entitlementplan.FieldDescription: + return m.OldDescription(ctx) + case entitlementplan.FieldVersion: + return m.OldVersion(ctx) + case entitlementplan.FieldMetadata: + return m.OldMetadata(ctx) } - return nil, fmt.Errorf("unknown EntityType field %s", name) + return nil, fmt.Errorf("unknown EntitlementPlan 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 *EntityTypeMutation) SetField(name string, value ent.Value) error { +func (m *EntitlementPlanMutation) SetField(name string, value ent.Value) error { switch name { - case entitytype.FieldCreatedAt: + case entitlementplan.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 entitytype.FieldUpdatedAt: + case entitlementplan.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 entitytype.FieldCreatedBy: + case entitlementplan.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case entitytype.FieldUpdatedBy: + case entitlementplan.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case entitytype.FieldMappingID: + case entitlementplan.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case entitytype.FieldDeletedAt: + case entitlementplan.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 entitytype.FieldDeletedBy: + case entitlementplan.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case entitytype.FieldTags: + case entitlementplan.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case entitytype.FieldOwnerID: + case entitlementplan.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetOwnerID(v) return nil - case entitytype.FieldName: + case entitlementplan.FieldDisplayName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDisplayName(v) + return nil + case entitlementplan.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetName(v) return nil + case entitlementplan.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case entitlementplan.FieldVersion: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetVersion(v) + return nil + case entitlementplan.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 EntityType field %s", name) + return fmt.Errorf("unknown EntitlementPlan field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *EntityTypeMutation) AddedFields() []string { +func (m *EntitlementPlanMutation) 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 *EntityTypeMutation) AddedField(name string) (ent.Value, bool) { +func (m *EntitlementPlanMutation) 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 *EntityTypeMutation) AddField(name string, value ent.Value) error { +func (m *EntitlementPlanMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown EntityType numeric field %s", name) + return fmt.Errorf("unknown EntitlementPlan numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *EntityTypeMutation) ClearedFields() []string { +func (m *EntitlementPlanMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(entitytype.FieldCreatedAt) { - fields = append(fields, entitytype.FieldCreatedAt) + if m.FieldCleared(entitlementplan.FieldCreatedAt) { + fields = append(fields, entitlementplan.FieldCreatedAt) } - if m.FieldCleared(entitytype.FieldUpdatedAt) { - fields = append(fields, entitytype.FieldUpdatedAt) + if m.FieldCleared(entitlementplan.FieldUpdatedAt) { + fields = append(fields, entitlementplan.FieldUpdatedAt) } - if m.FieldCleared(entitytype.FieldCreatedBy) { - fields = append(fields, entitytype.FieldCreatedBy) + if m.FieldCleared(entitlementplan.FieldCreatedBy) { + fields = append(fields, entitlementplan.FieldCreatedBy) } - if m.FieldCleared(entitytype.FieldUpdatedBy) { - fields = append(fields, entitytype.FieldUpdatedBy) + if m.FieldCleared(entitlementplan.FieldUpdatedBy) { + fields = append(fields, entitlementplan.FieldUpdatedBy) } - if m.FieldCleared(entitytype.FieldDeletedAt) { - fields = append(fields, entitytype.FieldDeletedAt) + if m.FieldCleared(entitlementplan.FieldDeletedAt) { + fields = append(fields, entitlementplan.FieldDeletedAt) } - if m.FieldCleared(entitytype.FieldDeletedBy) { - fields = append(fields, entitytype.FieldDeletedBy) + if m.FieldCleared(entitlementplan.FieldDeletedBy) { + fields = append(fields, entitlementplan.FieldDeletedBy) } - if m.FieldCleared(entitytype.FieldTags) { - fields = append(fields, entitytype.FieldTags) + if m.FieldCleared(entitlementplan.FieldTags) { + fields = append(fields, entitlementplan.FieldTags) } - if m.FieldCleared(entitytype.FieldOwnerID) { - fields = append(fields, entitytype.FieldOwnerID) + if m.FieldCleared(entitlementplan.FieldOwnerID) { + fields = append(fields, entitlementplan.FieldOwnerID) + } + if m.FieldCleared(entitlementplan.FieldDisplayName) { + fields = append(fields, entitlementplan.FieldDisplayName) + } + if m.FieldCleared(entitlementplan.FieldDescription) { + fields = append(fields, entitlementplan.FieldDescription) + } + if m.FieldCleared(entitlementplan.FieldMetadata) { + fields = append(fields, entitlementplan.FieldMetadata) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *EntityTypeMutation) FieldCleared(name string) bool { +func (m *EntitlementPlanMutation) 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 *EntityTypeMutation) ClearField(name string) error { +func (m *EntitlementPlanMutation) ClearField(name string) error { switch name { - case entitytype.FieldCreatedAt: + case entitlementplan.FieldCreatedAt: m.ClearCreatedAt() return nil - case entitytype.FieldUpdatedAt: + case entitlementplan.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case entitytype.FieldCreatedBy: + case entitlementplan.FieldCreatedBy: m.ClearCreatedBy() return nil - case entitytype.FieldUpdatedBy: + case entitlementplan.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case entitytype.FieldDeletedAt: + case entitlementplan.FieldDeletedAt: m.ClearDeletedAt() return nil - case entitytype.FieldDeletedBy: + case entitlementplan.FieldDeletedBy: m.ClearDeletedBy() return nil - case entitytype.FieldTags: + case entitlementplan.FieldTags: m.ClearTags() return nil - case entitytype.FieldOwnerID: + case entitlementplan.FieldOwnerID: m.ClearOwnerID() return nil + case entitlementplan.FieldDisplayName: + m.ClearDisplayName() + return nil + case entitlementplan.FieldDescription: + m.ClearDescription() + return nil + case entitlementplan.FieldMetadata: + m.ClearMetadata() + return nil } - return fmt.Errorf("unknown EntityType nullable field %s", name) + return fmt.Errorf("unknown EntitlementPlan 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 *EntityTypeMutation) ResetField(name string) error { +func (m *EntitlementPlanMutation) ResetField(name string) error { switch name { - case entitytype.FieldCreatedAt: + case entitlementplan.FieldCreatedAt: m.ResetCreatedAt() return nil - case entitytype.FieldUpdatedAt: + case entitlementplan.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case entitytype.FieldCreatedBy: + case entitlementplan.FieldCreatedBy: m.ResetCreatedBy() return nil - case entitytype.FieldUpdatedBy: + case entitlementplan.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case entitytype.FieldMappingID: + case entitlementplan.FieldMappingID: m.ResetMappingID() return nil - case entitytype.FieldDeletedAt: + case entitlementplan.FieldDeletedAt: m.ResetDeletedAt() return nil - case entitytype.FieldDeletedBy: + case entitlementplan.FieldDeletedBy: m.ResetDeletedBy() return nil - case entitytype.FieldTags: + case entitlementplan.FieldTags: m.ResetTags() return nil - case entitytype.FieldOwnerID: + case entitlementplan.FieldOwnerID: m.ResetOwnerID() return nil - case entitytype.FieldName: + case entitlementplan.FieldDisplayName: + m.ResetDisplayName() + return nil + case entitlementplan.FieldName: m.ResetName() return nil + case entitlementplan.FieldDescription: + m.ResetDescription() + return nil + case entitlementplan.FieldVersion: + m.ResetVersion() + return nil + case entitlementplan.FieldMetadata: + m.ResetMetadata() + return nil } - return fmt.Errorf("unknown EntityType field %s", name) + return fmt.Errorf("unknown EntitlementPlan field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *EntityTypeMutation) AddedEdges() []string { - edges := make([]string, 0, 2) +func (m *EntitlementPlanMutation) AddedEdges() []string { + edges := make([]string, 0, 5) if m.owner != nil { - edges = append(edges, entitytype.EdgeOwner) + edges = append(edges, entitlementplan.EdgeOwner) } - if m.entities != nil { - edges = append(edges, entitytype.EdgeEntities) + if m.entitlements != nil { + edges = append(edges, entitlementplan.EdgeEntitlements) + } + if m.base_features != nil { + edges = append(edges, entitlementplan.EdgeBaseFeatures) + } + if m.events != nil { + edges = append(edges, entitlementplan.EdgeEvents) + } + if m.features != nil { + edges = append(edges, entitlementplan.EdgeFeatures) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *EntityTypeMutation) AddedIDs(name string) []ent.Value { +func (m *EntitlementPlanMutation) AddedIDs(name string) []ent.Value { switch name { - case entitytype.EdgeOwner: + case entitlementplan.EdgeOwner: if id := m.owner; id != nil { return []ent.Value{*id} } - case entitytype.EdgeEntities: - ids := make([]ent.Value, 0, len(m.entities)) - for id := range m.entities { + case entitlementplan.EdgeEntitlements: + ids := make([]ent.Value, 0, len(m.entitlements)) + for id := range m.entitlements { + ids = append(ids, id) + } + return ids + case entitlementplan.EdgeBaseFeatures: + ids := make([]ent.Value, 0, len(m.base_features)) + for id := range m.base_features { + ids = append(ids, id) + } + return ids + case entitlementplan.EdgeEvents: + ids := make([]ent.Value, 0, len(m.events)) + for id := range m.events { + ids = append(ids, id) + } + return ids + case entitlementplan.EdgeFeatures: + ids := make([]ent.Value, 0, len(m.features)) + for id := range m.features { ids = append(ids, id) } return ids @@ -21754,114 +24634,170 @@ func (m *EntityTypeMutation) AddedIDs(name string) []ent.Value { } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *EntityTypeMutation) RemovedEdges() []string { - edges := make([]string, 0, 2) - if m.removedentities != nil { - edges = append(edges, entitytype.EdgeEntities) +func (m *EntitlementPlanMutation) RemovedEdges() []string { + edges := make([]string, 0, 5) + if m.removedentitlements != nil { + edges = append(edges, entitlementplan.EdgeEntitlements) + } + if m.removedbase_features != nil { + edges = append(edges, entitlementplan.EdgeBaseFeatures) + } + if m.removedevents != nil { + edges = append(edges, entitlementplan.EdgeEvents) + } + if m.removedfeatures != nil { + edges = append(edges, entitlementplan.EdgeFeatures) } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *EntityTypeMutation) RemovedIDs(name string) []ent.Value { +func (m *EntitlementPlanMutation) RemovedIDs(name string) []ent.Value { switch name { - case entitytype.EdgeEntities: - ids := make([]ent.Value, 0, len(m.removedentities)) - for id := range m.removedentities { + case entitlementplan.EdgeEntitlements: + ids := make([]ent.Value, 0, len(m.removedentitlements)) + for id := range m.removedentitlements { ids = append(ids, id) } return ids - } - return nil -} - -// ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EntityTypeMutation) ClearedEdges() []string { - edges := make([]string, 0, 2) - if m.clearedowner { - edges = append(edges, entitytype.EdgeOwner) - } - if m.clearedentities { - edges = append(edges, entitytype.EdgeEntities) - } + case entitlementplan.EdgeBaseFeatures: + ids := make([]ent.Value, 0, len(m.removedbase_features)) + for id := range m.removedbase_features { + ids = append(ids, id) + } + return ids + case entitlementplan.EdgeEvents: + ids := make([]ent.Value, 0, len(m.removedevents)) + for id := range m.removedevents { + ids = append(ids, id) + } + return ids + case entitlementplan.EdgeFeatures: + ids := make([]ent.Value, 0, len(m.removedfeatures)) + for id := range m.removedfeatures { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *EntitlementPlanMutation) ClearedEdges() []string { + edges := make([]string, 0, 5) + if m.clearedowner { + edges = append(edges, entitlementplan.EdgeOwner) + } + if m.clearedentitlements { + edges = append(edges, entitlementplan.EdgeEntitlements) + } + if m.clearedbase_features { + edges = append(edges, entitlementplan.EdgeBaseFeatures) + } + if m.clearedevents { + edges = append(edges, entitlementplan.EdgeEvents) + } + if m.clearedfeatures { + edges = append(edges, entitlementplan.EdgeFeatures) + } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *EntityTypeMutation) EdgeCleared(name string) bool { +func (m *EntitlementPlanMutation) EdgeCleared(name string) bool { switch name { - case entitytype.EdgeOwner: + case entitlementplan.EdgeOwner: return m.clearedowner - case entitytype.EdgeEntities: - return m.clearedentities + case entitlementplan.EdgeEntitlements: + return m.clearedentitlements + case entitlementplan.EdgeBaseFeatures: + return m.clearedbase_features + case entitlementplan.EdgeEvents: + return m.clearedevents + case entitlementplan.EdgeFeatures: + return m.clearedfeatures } 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 *EntityTypeMutation) ClearEdge(name string) error { +func (m *EntitlementPlanMutation) ClearEdge(name string) error { switch name { - case entitytype.EdgeOwner: + case entitlementplan.EdgeOwner: m.ClearOwner() return nil } - return fmt.Errorf("unknown EntityType unique edge %s", name) + return fmt.Errorf("unknown EntitlementPlan 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 *EntityTypeMutation) ResetEdge(name string) error { +func (m *EntitlementPlanMutation) ResetEdge(name string) error { switch name { - case entitytype.EdgeOwner: + case entitlementplan.EdgeOwner: m.ResetOwner() return nil - case entitytype.EdgeEntities: - m.ResetEntities() + case entitlementplan.EdgeEntitlements: + m.ResetEntitlements() + return nil + case entitlementplan.EdgeBaseFeatures: + m.ResetBaseFeatures() + return nil + case entitlementplan.EdgeEvents: + m.ResetEvents() + return nil + case entitlementplan.EdgeFeatures: + m.ResetFeatures() return nil } - return fmt.Errorf("unknown EntityType edge %s", name) + return fmt.Errorf("unknown EntitlementPlan edge %s", name) } -// EntityTypeHistoryMutation represents an operation that mutates the EntityTypeHistory nodes in the graph. -type EntityTypeHistoryMutation struct { +// EntitlementPlanFeatureMutation represents an operation that mutates the EntitlementPlanFeature nodes in the graph. +type EntitlementPlanFeatureMutation 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 - mapping_id *string - deleted_at *time.Time - deleted_by *string - tags *[]string - appendtags []string - owner_id *string - name *string - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*EntityTypeHistory, error) - predicates []predicate.EntityTypeHistory + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + deleted_at *time.Time + deleted_by *string + tags *[]string + appendtags []string + metadata *map[string]interface{} + clearedFields map[string]struct{} + owner *string + clearedowner bool + plan *string + clearedplan bool + feature *string + clearedfeature bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + done bool + oldValue func(context.Context) (*EntitlementPlanFeature, error) + predicates []predicate.EntitlementPlanFeature } -var _ ent.Mutation = (*EntityTypeHistoryMutation)(nil) +var _ ent.Mutation = (*EntitlementPlanFeatureMutation)(nil) -// entitytypehistoryOption allows management of the mutation configuration using functional options. -type entitytypehistoryOption func(*EntityTypeHistoryMutation) +// entitlementplanfeatureOption allows management of the mutation configuration using functional options. +type entitlementplanfeatureOption func(*EntitlementPlanFeatureMutation) -// newEntityTypeHistoryMutation creates new mutation for the EntityTypeHistory entity. -func newEntityTypeHistoryMutation(c config, op Op, opts ...entitytypehistoryOption) *EntityTypeHistoryMutation { - m := &EntityTypeHistoryMutation{ +// newEntitlementPlanFeatureMutation creates new mutation for the EntitlementPlanFeature entity. +func newEntitlementPlanFeatureMutation(c config, op Op, opts ...entitlementplanfeatureOption) *EntitlementPlanFeatureMutation { + m := &EntitlementPlanFeatureMutation{ config: c, op: op, - typ: TypeEntityTypeHistory, + typ: TypeEntitlementPlanFeature, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -21870,20 +24806,20 @@ func newEntityTypeHistoryMutation(c config, op Op, opts ...entitytypehistoryOpti return m } -// withEntityTypeHistoryID sets the ID field of the mutation. -func withEntityTypeHistoryID(id string) entitytypehistoryOption { - return func(m *EntityTypeHistoryMutation) { +// withEntitlementPlanFeatureID sets the ID field of the mutation. +func withEntitlementPlanFeatureID(id string) entitlementplanfeatureOption { + return func(m *EntitlementPlanFeatureMutation) { var ( err error once sync.Once - value *EntityTypeHistory + value *EntitlementPlanFeature ) - m.oldValue = func(ctx context.Context) (*EntityTypeHistory, error) { + m.oldValue = func(ctx context.Context) (*EntitlementPlanFeature, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().EntityTypeHistory.Get(ctx, id) + value, err = m.Client().EntitlementPlanFeature.Get(ctx, id) } }) return value, err @@ -21892,10 +24828,10 @@ func withEntityTypeHistoryID(id string) entitytypehistoryOption { } } -// withEntityTypeHistory sets the old EntityTypeHistory of the mutation. -func withEntityTypeHistory(node *EntityTypeHistory) entitytypehistoryOption { - return func(m *EntityTypeHistoryMutation) { - m.oldValue = func(context.Context) (*EntityTypeHistory, error) { +// withEntitlementPlanFeature sets the old EntitlementPlanFeature of the mutation. +func withEntitlementPlanFeature(node *EntitlementPlanFeature) entitlementplanfeatureOption { + return func(m *EntitlementPlanFeatureMutation) { + m.oldValue = func(context.Context) (*EntitlementPlanFeature, error) { return node, nil } m.id = &node.ID @@ -21904,7 +24840,7 @@ func withEntityTypeHistory(node *EntityTypeHistory) entitytypehistoryOption { // 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 EntityTypeHistoryMutation) Client() *Client { +func (m EntitlementPlanFeatureMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -21912,7 +24848,7 @@ func (m EntityTypeHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EntityTypeHistoryMutation) Tx() (*Tx, error) { +func (m EntitlementPlanFeatureMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -21922,14 +24858,14 @@ func (m EntityTypeHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of EntityTypeHistory entities. -func (m *EntityTypeHistoryMutation) SetID(id string) { +// operation is only accepted on creation of EntitlementPlanFeature entities. +func (m *EntitlementPlanFeatureMutation) 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 *EntityTypeHistoryMutation) ID() (id string, exists bool) { +func (m *EntitlementPlanFeatureMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -21940,7 +24876,7 @@ func (m *EntityTypeHistoryMutation) ID() (id string, exists bool) { // 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 *EntityTypeHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *EntitlementPlanFeatureMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -21949,140 +24885,19 @@ func (m *EntityTypeHistoryMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().EntityTypeHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().EntitlementPlanFeature.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 *EntityTypeHistoryMutation) SetHistoryTime(t time.Time) { - m.history_time = &t -} - -// HistoryTime returns the value of the "history_time" field in the mutation. -func (m *EntityTypeHistoryMutation) 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 EntityTypeHistory entity. -// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) 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 *EntityTypeHistoryMutation) ResetHistoryTime() { - m.history_time = nil -} - -// SetRef sets the "ref" field. -func (m *EntityTypeHistoryMutation) SetRef(s string) { - m.ref = &s -} - -// Ref returns the value of the "ref" field in the mutation. -func (m *EntityTypeHistoryMutation) 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 EntityTypeHistory entity. -// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) 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 *EntityTypeHistoryMutation) ClearRef() { - m.ref = nil - m.clearedFields[entitytypehistory.FieldRef] = struct{}{} -} - -// RefCleared returns if the "ref" field was cleared in this mutation. -func (m *EntityTypeHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[entitytypehistory.FieldRef] - return ok -} - -// ResetRef resets all changes to the "ref" field. -func (m *EntityTypeHistoryMutation) ResetRef() { - m.ref = nil - delete(m.clearedFields, entitytypehistory.FieldRef) -} - -// SetOperation sets the "operation" field. -func (m *EntityTypeHistoryMutation) SetOperation(ht history.OpType) { - m.operation = &ht -} - -// Operation returns the value of the "operation" field in the mutation. -func (m *EntityTypeHistoryMutation) 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 EntityTypeHistory entity. -// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) 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 *EntityTypeHistoryMutation) ResetOperation() { - m.operation = nil -} - // SetCreatedAt sets the "created_at" field. -func (m *EntityTypeHistoryMutation) SetCreatedAt(t time.Time) { +func (m *EntitlementPlanFeatureMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EntityTypeHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *EntitlementPlanFeatureMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -22090,10 +24905,10 @@ func (m *EntityTypeHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the EntityTypeHistory entity. -// If the EntityTypeHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the EntitlementPlanFeature entity. +// If the EntitlementPlanFeature 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 *EntityTypeHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementPlanFeatureMutation) 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") } @@ -22108,30 +24923,30 @@ func (m *EntityTypeHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Ti } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EntityTypeHistoryMutation) ClearCreatedAt() { +func (m *EntitlementPlanFeatureMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[entitytypehistory.FieldCreatedAt] = struct{}{} + m.clearedFields[entitlementplanfeature.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EntityTypeHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[entitytypehistory.FieldCreatedAt] +func (m *EntitlementPlanFeatureMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[entitlementplanfeature.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EntityTypeHistoryMutation) ResetCreatedAt() { +func (m *EntitlementPlanFeatureMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, entitytypehistory.FieldCreatedAt) + delete(m.clearedFields, entitlementplanfeature.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EntityTypeHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *EntitlementPlanFeatureMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EntityTypeHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *EntitlementPlanFeatureMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -22139,10 +24954,10 @@ func (m *EntityTypeHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the EntityTypeHistory entity. -// If the EntityTypeHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the EntitlementPlanFeature entity. +// If the EntitlementPlanFeature 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 *EntityTypeHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementPlanFeatureMutation) 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") } @@ -22157,30 +24972,30 @@ func (m *EntityTypeHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Ti } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EntityTypeHistoryMutation) ClearUpdatedAt() { +func (m *EntitlementPlanFeatureMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[entitytypehistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[entitlementplanfeature.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EntityTypeHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[entitytypehistory.FieldUpdatedAt] +func (m *EntitlementPlanFeatureMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[entitlementplanfeature.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EntityTypeHistoryMutation) ResetUpdatedAt() { +func (m *EntitlementPlanFeatureMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, entitytypehistory.FieldUpdatedAt) + delete(m.clearedFields, entitlementplanfeature.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EntityTypeHistoryMutation) SetCreatedBy(s string) { +func (m *EntitlementPlanFeatureMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EntityTypeHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *EntitlementPlanFeatureMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -22188,10 +25003,10 @@ func (m *EntityTypeHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the EntityTypeHistory entity. -// If the EntityTypeHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the EntitlementPlanFeature entity. +// If the EntitlementPlanFeature 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 *EntityTypeHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanFeatureMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -22206,30 +25021,30 @@ func (m *EntityTypeHistoryMutation) OldCreatedBy(ctx context.Context) (v string, } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EntityTypeHistoryMutation) ClearCreatedBy() { +func (m *EntitlementPlanFeatureMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[entitytypehistory.FieldCreatedBy] = struct{}{} + m.clearedFields[entitlementplanfeature.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EntityTypeHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[entitytypehistory.FieldCreatedBy] +func (m *EntitlementPlanFeatureMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[entitlementplanfeature.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EntityTypeHistoryMutation) ResetCreatedBy() { +func (m *EntitlementPlanFeatureMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, entitytypehistory.FieldCreatedBy) + delete(m.clearedFields, entitlementplanfeature.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EntityTypeHistoryMutation) SetUpdatedBy(s string) { +func (m *EntitlementPlanFeatureMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EntityTypeHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *EntitlementPlanFeatureMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -22237,10 +25052,10 @@ func (m *EntityTypeHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the EntityTypeHistory entity. -// If the EntityTypeHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the EntitlementPlanFeature entity. +// If the EntitlementPlanFeature 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 *EntityTypeHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanFeatureMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -22255,30 +25070,30 @@ func (m *EntityTypeHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EntityTypeHistoryMutation) ClearUpdatedBy() { +func (m *EntitlementPlanFeatureMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[entitytypehistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[entitlementplanfeature.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EntityTypeHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[entitytypehistory.FieldUpdatedBy] +func (m *EntitlementPlanFeatureMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[entitlementplanfeature.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EntityTypeHistoryMutation) ResetUpdatedBy() { +func (m *EntitlementPlanFeatureMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, entitytypehistory.FieldUpdatedBy) + delete(m.clearedFields, entitlementplanfeature.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *EntityTypeHistoryMutation) SetMappingID(s string) { +func (m *EntitlementPlanFeatureMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EntityTypeHistoryMutation) MappingID() (r string, exists bool) { +func (m *EntitlementPlanFeatureMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -22286,10 +25101,10 @@ func (m *EntityTypeHistoryMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the EntityTypeHistory entity. -// If the EntityTypeHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the EntitlementPlanFeature entity. +// If the EntitlementPlanFeature 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 *EntityTypeHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanFeatureMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -22304,17 +25119,17 @@ func (m *EntityTypeHistoryMutation) OldMappingID(ctx context.Context) (v string, } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *EntityTypeHistoryMutation) ResetMappingID() { +func (m *EntitlementPlanFeatureMutation) ResetMappingID() { m.mapping_id = nil } // SetDeletedAt sets the "deleted_at" field. -func (m *EntityTypeHistoryMutation) SetDeletedAt(t time.Time) { +func (m *EntitlementPlanFeatureMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *EntityTypeHistoryMutation) DeletedAt() (r time.Time, exists bool) { +func (m *EntitlementPlanFeatureMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -22322,10 +25137,10 @@ func (m *EntityTypeHistoryMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the EntityTypeHistory entity. -// If the EntityTypeHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the EntitlementPlanFeature entity. +// If the EntitlementPlanFeature 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 *EntityTypeHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementPlanFeatureMutation) 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") } @@ -22340,30 +25155,30 @@ func (m *EntityTypeHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Ti } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *EntityTypeHistoryMutation) ClearDeletedAt() { +func (m *EntitlementPlanFeatureMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[entitytypehistory.FieldDeletedAt] = struct{}{} + m.clearedFields[entitlementplanfeature.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *EntityTypeHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[entitytypehistory.FieldDeletedAt] +func (m *EntitlementPlanFeatureMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[entitlementplanfeature.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *EntityTypeHistoryMutation) ResetDeletedAt() { +func (m *EntitlementPlanFeatureMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, entitytypehistory.FieldDeletedAt) + delete(m.clearedFields, entitlementplanfeature.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *EntityTypeHistoryMutation) SetDeletedBy(s string) { +func (m *EntitlementPlanFeatureMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *EntityTypeHistoryMutation) DeletedBy() (r string, exists bool) { +func (m *EntitlementPlanFeatureMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -22371,10 +25186,10 @@ func (m *EntityTypeHistoryMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the EntityTypeHistory entity. -// If the EntityTypeHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the EntitlementPlanFeature entity. +// If the EntitlementPlanFeature 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 *EntityTypeHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanFeatureMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -22389,31 +25204,31 @@ func (m *EntityTypeHistoryMutation) OldDeletedBy(ctx context.Context) (v string, } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *EntityTypeHistoryMutation) ClearDeletedBy() { +func (m *EntitlementPlanFeatureMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[entitytypehistory.FieldDeletedBy] = struct{}{} + m.clearedFields[entitlementplanfeature.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *EntityTypeHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[entitytypehistory.FieldDeletedBy] +func (m *EntitlementPlanFeatureMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[entitlementplanfeature.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *EntityTypeHistoryMutation) ResetDeletedBy() { +func (m *EntitlementPlanFeatureMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, entitytypehistory.FieldDeletedBy) + delete(m.clearedFields, entitlementplanfeature.FieldDeletedBy) } // SetTags sets the "tags" field. -func (m *EntityTypeHistoryMutation) SetTags(s []string) { +func (m *EntitlementPlanFeatureMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *EntityTypeHistoryMutation) Tags() (r []string, exists bool) { +func (m *EntitlementPlanFeatureMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -22421,10 +25236,10 @@ func (m *EntityTypeHistoryMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the EntityTypeHistory entity. -// If the EntityTypeHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the EntitlementPlanFeature entity. +// If the EntitlementPlanFeature 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 *EntityTypeHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *EntitlementPlanFeatureMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -22439,12 +25254,12 @@ func (m *EntityTypeHistoryMutation) OldTags(ctx context.Context) (v []string, er } // AppendTags adds s to the "tags" field. -func (m *EntityTypeHistoryMutation) AppendTags(s []string) { +func (m *EntitlementPlanFeatureMutation) 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 *EntityTypeHistoryMutation) AppendedTags() ([]string, bool) { +func (m *EntitlementPlanFeatureMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -22452,43 +25267,43 @@ func (m *EntityTypeHistoryMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *EntityTypeHistoryMutation) ClearTags() { +func (m *EntitlementPlanFeatureMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[entitytypehistory.FieldTags] = struct{}{} + m.clearedFields[entitlementplanfeature.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *EntityTypeHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[entitytypehistory.FieldTags] +func (m *EntitlementPlanFeatureMutation) TagsCleared() bool { + _, ok := m.clearedFields[entitlementplanfeature.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *EntityTypeHistoryMutation) ResetTags() { +func (m *EntitlementPlanFeatureMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, entitytypehistory.FieldTags) + delete(m.clearedFields, entitlementplanfeature.FieldTags) } // SetOwnerID sets the "owner_id" field. -func (m *EntityTypeHistoryMutation) SetOwnerID(s string) { - m.owner_id = &s +func (m *EntitlementPlanFeatureMutation) SetOwnerID(s string) { + m.owner = &s } // OwnerID returns the value of the "owner_id" field in the mutation. -func (m *EntityTypeHistoryMutation) OwnerID() (r string, exists bool) { - v := m.owner_id +func (m *EntitlementPlanFeatureMutation) 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 EntityTypeHistory entity. -// If the EntityTypeHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the EntitlementPlanFeature entity. +// If the EntitlementPlanFeature 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 *EntityTypeHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanFeatureMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") } @@ -22503,68 +25318,288 @@ func (m *EntityTypeHistoryMutation) OldOwnerID(ctx context.Context) (v string, e } // ClearOwnerID clears the value of the "owner_id" field. -func (m *EntityTypeHistoryMutation) ClearOwnerID() { - m.owner_id = nil - m.clearedFields[entitytypehistory.FieldOwnerID] = struct{}{} +func (m *EntitlementPlanFeatureMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[entitlementplanfeature.FieldOwnerID] = struct{}{} } // OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *EntityTypeHistoryMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[entitytypehistory.FieldOwnerID] +func (m *EntitlementPlanFeatureMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[entitlementplanfeature.FieldOwnerID] return ok } // ResetOwnerID resets all changes to the "owner_id" field. -func (m *EntityTypeHistoryMutation) ResetOwnerID() { - m.owner_id = nil - delete(m.clearedFields, entitytypehistory.FieldOwnerID) +func (m *EntitlementPlanFeatureMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, entitlementplanfeature.FieldOwnerID) } -// SetName sets the "name" field. -func (m *EntityTypeHistoryMutation) SetName(s string) { - m.name = &s +// SetMetadata sets the "metadata" field. +func (m *EntitlementPlanFeatureMutation) SetMetadata(value map[string]interface{}) { + m.metadata = &value } -// Name returns the value of the "name" field in the mutation. -func (m *EntityTypeHistoryMutation) Name() (r string, exists bool) { - v := m.name +// Metadata returns the value of the "metadata" field in the mutation. +func (m *EntitlementPlanFeatureMutation) Metadata() (r map[string]interface{}, exists bool) { + v := m.metadata if v == nil { return } return *v, true } -// OldName returns the old "name" field's value of the EntityTypeHistory entity. -// If the EntityTypeHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMetadata returns the old "metadata" field's value of the EntitlementPlanFeature entity. +// If the EntitlementPlanFeature 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 *EntityTypeHistoryMutation) OldName(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanFeatureMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldName is only allowed on UpdateOne operations") + return v, errors.New("OldMetadata 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") + 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 OldName: %w", err) + return v, fmt.Errorf("querying old value for OldMetadata: %w", err) } - return oldValue.Name, nil + return oldValue.Metadata, nil } -// ResetName resets all changes to the "name" field. -func (m *EntityTypeHistoryMutation) ResetName() { - m.name = nil +// ClearMetadata clears the value of the "metadata" field. +func (m *EntitlementPlanFeatureMutation) ClearMetadata() { + m.metadata = nil + m.clearedFields[entitlementplanfeature.FieldMetadata] = struct{}{} } -// Where appends a list predicates to the EntityTypeHistoryMutation builder. -func (m *EntityTypeHistoryMutation) Where(ps ...predicate.EntityTypeHistory) { +// MetadataCleared returns if the "metadata" field was cleared in this mutation. +func (m *EntitlementPlanFeatureMutation) MetadataCleared() bool { + _, ok := m.clearedFields[entitlementplanfeature.FieldMetadata] + return ok +} + +// ResetMetadata resets all changes to the "metadata" field. +func (m *EntitlementPlanFeatureMutation) ResetMetadata() { + m.metadata = nil + delete(m.clearedFields, entitlementplanfeature.FieldMetadata) +} + +// SetPlanID sets the "plan_id" field. +func (m *EntitlementPlanFeatureMutation) SetPlanID(s string) { + m.plan = &s +} + +// PlanID returns the value of the "plan_id" field in the mutation. +func (m *EntitlementPlanFeatureMutation) PlanID() (r string, exists bool) { + v := m.plan + if v == nil { + return + } + return *v, true +} + +// OldPlanID returns the old "plan_id" field's value of the EntitlementPlanFeature entity. +// If the EntitlementPlanFeature 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 *EntitlementPlanFeatureMutation) OldPlanID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldPlanID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldPlanID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldPlanID: %w", err) + } + return oldValue.PlanID, nil +} + +// ResetPlanID resets all changes to the "plan_id" field. +func (m *EntitlementPlanFeatureMutation) ResetPlanID() { + m.plan = nil +} + +// SetFeatureID sets the "feature_id" field. +func (m *EntitlementPlanFeatureMutation) SetFeatureID(s string) { + m.feature = &s +} + +// FeatureID returns the value of the "feature_id" field in the mutation. +func (m *EntitlementPlanFeatureMutation) FeatureID() (r string, exists bool) { + v := m.feature + if v == nil { + return + } + return *v, true +} + +// OldFeatureID returns the old "feature_id" field's value of the EntitlementPlanFeature entity. +// If the EntitlementPlanFeature 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 *EntitlementPlanFeatureMutation) OldFeatureID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldFeatureID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldFeatureID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldFeatureID: %w", err) + } + return oldValue.FeatureID, nil +} + +// ResetFeatureID resets all changes to the "feature_id" field. +func (m *EntitlementPlanFeatureMutation) ResetFeatureID() { + m.feature = nil +} + +// ClearOwner clears the "owner" edge to the Organization entity. +func (m *EntitlementPlanFeatureMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[entitlementplanfeature.FieldOwnerID] = struct{}{} +} + +// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. +func (m *EntitlementPlanFeatureMutation) 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 *EntitlementPlanFeatureMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetOwner resets all changes to the "owner" edge. +func (m *EntitlementPlanFeatureMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false +} + +// ClearPlan clears the "plan" edge to the EntitlementPlan entity. +func (m *EntitlementPlanFeatureMutation) ClearPlan() { + m.clearedplan = true + m.clearedFields[entitlementplanfeature.FieldPlanID] = struct{}{} +} + +// PlanCleared reports if the "plan" edge to the EntitlementPlan entity was cleared. +func (m *EntitlementPlanFeatureMutation) PlanCleared() bool { + return m.clearedplan +} + +// PlanIDs returns the "plan" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// PlanID instead. It exists only for internal usage by the builders. +func (m *EntitlementPlanFeatureMutation) PlanIDs() (ids []string) { + if id := m.plan; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetPlan resets all changes to the "plan" edge. +func (m *EntitlementPlanFeatureMutation) ResetPlan() { + m.plan = nil + m.clearedplan = false +} + +// ClearFeature clears the "feature" edge to the Feature entity. +func (m *EntitlementPlanFeatureMutation) ClearFeature() { + m.clearedfeature = true + m.clearedFields[entitlementplanfeature.FieldFeatureID] = struct{}{} +} + +// FeatureCleared reports if the "feature" edge to the Feature entity was cleared. +func (m *EntitlementPlanFeatureMutation) FeatureCleared() bool { + return m.clearedfeature +} + +// FeatureIDs returns the "feature" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// FeatureID instead. It exists only for internal usage by the builders. +func (m *EntitlementPlanFeatureMutation) FeatureIDs() (ids []string) { + if id := m.feature; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetFeature resets all changes to the "feature" edge. +func (m *EntitlementPlanFeatureMutation) ResetFeature() { + m.feature = nil + m.clearedfeature = false +} + +// AddEventIDs adds the "events" edge to the Event entity by ids. +func (m *EntitlementPlanFeatureMutation) AddEventIDs(ids ...string) { + if m.events == nil { + m.events = make(map[string]struct{}) + } + for i := range ids { + m.events[ids[i]] = struct{}{} + } +} + +// ClearEvents clears the "events" edge to the Event entity. +func (m *EntitlementPlanFeatureMutation) ClearEvents() { + m.clearedevents = true +} + +// EventsCleared reports if the "events" edge to the Event entity was cleared. +func (m *EntitlementPlanFeatureMutation) EventsCleared() bool { + return m.clearedevents +} + +// RemoveEventIDs removes the "events" edge to the Event entity by IDs. +func (m *EntitlementPlanFeatureMutation) RemoveEventIDs(ids ...string) { + if m.removedevents == nil { + m.removedevents = make(map[string]struct{}) + } + for i := range ids { + delete(m.events, ids[i]) + m.removedevents[ids[i]] = struct{}{} + } +} + +// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. +func (m *EntitlementPlanFeatureMutation) RemovedEventsIDs() (ids []string) { + for id := range m.removedevents { + ids = append(ids, id) + } + return +} + +// EventsIDs returns the "events" edge IDs in the mutation. +func (m *EntitlementPlanFeatureMutation) EventsIDs() (ids []string) { + for id := range m.events { + ids = append(ids, id) + } + return +} + +// ResetEvents resets all changes to the "events" edge. +func (m *EntitlementPlanFeatureMutation) ResetEvents() { + m.events = nil + m.clearedevents = false + m.removedevents = nil +} + +// Where appends a list predicates to the EntitlementPlanFeatureMutation builder. +func (m *EntitlementPlanFeatureMutation) Where(ps ...predicate.EntitlementPlanFeature) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the EntityTypeHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the EntitlementPlanFeatureMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EntityTypeHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.EntityTypeHistory, len(ps)) +func (m *EntitlementPlanFeatureMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.EntitlementPlanFeature, len(ps)) for i := range ps { p[i] = ps[i] } @@ -22572,63 +25607,60 @@ func (m *EntityTypeHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *EntityTypeHistoryMutation) Op() Op { +func (m *EntitlementPlanFeatureMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *EntityTypeHistoryMutation) SetOp(op Op) { +func (m *EntitlementPlanFeatureMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (EntityTypeHistory). -func (m *EntityTypeHistoryMutation) Type() string { +// Type returns the node type of this mutation (EntitlementPlanFeature). +func (m *EntitlementPlanFeatureMutation) 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 *EntityTypeHistoryMutation) Fields() []string { - fields := make([]string, 0, 13) - if m.history_time != nil { - fields = append(fields, entitytypehistory.FieldHistoryTime) - } - if m.ref != nil { - fields = append(fields, entitytypehistory.FieldRef) - } - if m.operation != nil { - fields = append(fields, entitytypehistory.FieldOperation) - } +func (m *EntitlementPlanFeatureMutation) Fields() []string { + fields := make([]string, 0, 12) if m.created_at != nil { - fields = append(fields, entitytypehistory.FieldCreatedAt) + fields = append(fields, entitlementplanfeature.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, entitytypehistory.FieldUpdatedAt) + fields = append(fields, entitlementplanfeature.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, entitytypehistory.FieldCreatedBy) + fields = append(fields, entitlementplanfeature.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, entitytypehistory.FieldUpdatedBy) + fields = append(fields, entitlementplanfeature.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, entitytypehistory.FieldMappingID) + fields = append(fields, entitlementplanfeature.FieldMappingID) } if m.deleted_at != nil { - fields = append(fields, entitytypehistory.FieldDeletedAt) + fields = append(fields, entitlementplanfeature.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, entitytypehistory.FieldDeletedBy) + fields = append(fields, entitlementplanfeature.FieldDeletedBy) } if m.tags != nil { - fields = append(fields, entitytypehistory.FieldTags) + fields = append(fields, entitlementplanfeature.FieldTags) } - if m.owner_id != nil { - fields = append(fields, entitytypehistory.FieldOwnerID) + if m.owner != nil { + fields = append(fields, entitlementplanfeature.FieldOwnerID) } - if m.name != nil { - fields = append(fields, entitytypehistory.FieldName) + if m.metadata != nil { + fields = append(fields, entitlementplanfeature.FieldMetadata) + } + if m.plan != nil { + fields = append(fields, entitlementplanfeature.FieldPlanID) + } + if m.feature != nil { + fields = append(fields, entitlementplanfeature.FieldFeatureID) } return fields } @@ -22636,34 +25668,32 @@ func (m *EntityTypeHistoryMutation) Fields() []string { // 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 *EntityTypeHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *EntitlementPlanFeatureMutation) Field(name string) (ent.Value, bool) { switch name { - case entitytypehistory.FieldHistoryTime: - return m.HistoryTime() - case entitytypehistory.FieldRef: - return m.Ref() - case entitytypehistory.FieldOperation: - return m.Operation() - case entitytypehistory.FieldCreatedAt: + case entitlementplanfeature.FieldCreatedAt: return m.CreatedAt() - case entitytypehistory.FieldUpdatedAt: + case entitlementplanfeature.FieldUpdatedAt: return m.UpdatedAt() - case entitytypehistory.FieldCreatedBy: + case entitlementplanfeature.FieldCreatedBy: return m.CreatedBy() - case entitytypehistory.FieldUpdatedBy: + case entitlementplanfeature.FieldUpdatedBy: return m.UpdatedBy() - case entitytypehistory.FieldMappingID: + case entitlementplanfeature.FieldMappingID: return m.MappingID() - case entitytypehistory.FieldDeletedAt: + case entitlementplanfeature.FieldDeletedAt: return m.DeletedAt() - case entitytypehistory.FieldDeletedBy: + case entitlementplanfeature.FieldDeletedBy: return m.DeletedBy() - case entitytypehistory.FieldTags: + case entitlementplanfeature.FieldTags: return m.Tags() - case entitytypehistory.FieldOwnerID: + case entitlementplanfeature.FieldOwnerID: return m.OwnerID() - case entitytypehistory.FieldName: - return m.Name() + case entitlementplanfeature.FieldMetadata: + return m.Metadata() + case entitlementplanfeature.FieldPlanID: + return m.PlanID() + case entitlementplanfeature.FieldFeatureID: + return m.FeatureID() } return nil, false } @@ -22671,416 +25701,448 @@ func (m *EntityTypeHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *EntityTypeHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *EntitlementPlanFeatureMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case entitytypehistory.FieldHistoryTime: - return m.OldHistoryTime(ctx) - case entitytypehistory.FieldRef: - return m.OldRef(ctx) - case entitytypehistory.FieldOperation: - return m.OldOperation(ctx) - case entitytypehistory.FieldCreatedAt: + case entitlementplanfeature.FieldCreatedAt: return m.OldCreatedAt(ctx) - case entitytypehistory.FieldUpdatedAt: + case entitlementplanfeature.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case entitytypehistory.FieldCreatedBy: + case entitlementplanfeature.FieldCreatedBy: return m.OldCreatedBy(ctx) - case entitytypehistory.FieldUpdatedBy: + case entitlementplanfeature.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case entitytypehistory.FieldMappingID: + case entitlementplanfeature.FieldMappingID: return m.OldMappingID(ctx) - case entitytypehistory.FieldDeletedAt: + case entitlementplanfeature.FieldDeletedAt: return m.OldDeletedAt(ctx) - case entitytypehistory.FieldDeletedBy: + case entitlementplanfeature.FieldDeletedBy: return m.OldDeletedBy(ctx) - case entitytypehistory.FieldTags: + case entitlementplanfeature.FieldTags: return m.OldTags(ctx) - case entitytypehistory.FieldOwnerID: + case entitlementplanfeature.FieldOwnerID: return m.OldOwnerID(ctx) - case entitytypehistory.FieldName: - return m.OldName(ctx) + case entitlementplanfeature.FieldMetadata: + return m.OldMetadata(ctx) + case entitlementplanfeature.FieldPlanID: + return m.OldPlanID(ctx) + case entitlementplanfeature.FieldFeatureID: + return m.OldFeatureID(ctx) } - return nil, fmt.Errorf("unknown EntityTypeHistory field %s", name) + return nil, fmt.Errorf("unknown EntitlementPlanFeature 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 *EntityTypeHistoryMutation) SetField(name string, value ent.Value) error { +func (m *EntitlementPlanFeatureMutation) SetField(name string, value ent.Value) error { switch name { - case entitytypehistory.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 entitytypehistory.FieldRef: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetRef(v) - return nil - case entitytypehistory.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 entitytypehistory.FieldCreatedAt: + case entitlementplanfeature.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 entitytypehistory.FieldUpdatedAt: + case entitlementplanfeature.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 entitytypehistory.FieldCreatedBy: + case entitlementplanfeature.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case entitytypehistory.FieldUpdatedBy: + case entitlementplanfeature.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case entitytypehistory.FieldMappingID: + case entitlementplanfeature.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case entitytypehistory.FieldDeletedAt: + case entitlementplanfeature.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 entitytypehistory.FieldDeletedBy: + case entitlementplanfeature.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case entitytypehistory.FieldTags: + case entitlementplanfeature.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case entitytypehistory.FieldOwnerID: + case entitlementplanfeature.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetOwnerID(v) return nil - case entitytypehistory.FieldName: + case entitlementplanfeature.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 + case entitlementplanfeature.FieldPlanID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetName(v) + m.SetPlanID(v) + return nil + case entitlementplanfeature.FieldFeatureID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetFeatureID(v) return nil } - return fmt.Errorf("unknown EntityTypeHistory field %s", name) + return fmt.Errorf("unknown EntitlementPlanFeature field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *EntityTypeHistoryMutation) AddedFields() []string { +func (m *EntitlementPlanFeatureMutation) 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 *EntityTypeHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *EntitlementPlanFeatureMutation) 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 *EntityTypeHistoryMutation) AddField(name string, value ent.Value) error { +func (m *EntitlementPlanFeatureMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown EntityTypeHistory numeric field %s", name) + return fmt.Errorf("unknown EntitlementPlanFeature numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *EntityTypeHistoryMutation) ClearedFields() []string { +func (m *EntitlementPlanFeatureMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(entitytypehistory.FieldRef) { - fields = append(fields, entitytypehistory.FieldRef) + if m.FieldCleared(entitlementplanfeature.FieldCreatedAt) { + fields = append(fields, entitlementplanfeature.FieldCreatedAt) } - if m.FieldCleared(entitytypehistory.FieldCreatedAt) { - fields = append(fields, entitytypehistory.FieldCreatedAt) + if m.FieldCleared(entitlementplanfeature.FieldUpdatedAt) { + fields = append(fields, entitlementplanfeature.FieldUpdatedAt) } - if m.FieldCleared(entitytypehistory.FieldUpdatedAt) { - fields = append(fields, entitytypehistory.FieldUpdatedAt) + if m.FieldCleared(entitlementplanfeature.FieldCreatedBy) { + fields = append(fields, entitlementplanfeature.FieldCreatedBy) } - if m.FieldCleared(entitytypehistory.FieldCreatedBy) { - fields = append(fields, entitytypehistory.FieldCreatedBy) + if m.FieldCleared(entitlementplanfeature.FieldUpdatedBy) { + fields = append(fields, entitlementplanfeature.FieldUpdatedBy) } - if m.FieldCleared(entitytypehistory.FieldUpdatedBy) { - fields = append(fields, entitytypehistory.FieldUpdatedBy) + if m.FieldCleared(entitlementplanfeature.FieldDeletedAt) { + fields = append(fields, entitlementplanfeature.FieldDeletedAt) } - if m.FieldCleared(entitytypehistory.FieldDeletedAt) { - fields = append(fields, entitytypehistory.FieldDeletedAt) + if m.FieldCleared(entitlementplanfeature.FieldDeletedBy) { + fields = append(fields, entitlementplanfeature.FieldDeletedBy) } - if m.FieldCleared(entitytypehistory.FieldDeletedBy) { - fields = append(fields, entitytypehistory.FieldDeletedBy) + if m.FieldCleared(entitlementplanfeature.FieldTags) { + fields = append(fields, entitlementplanfeature.FieldTags) } - if m.FieldCleared(entitytypehistory.FieldTags) { - fields = append(fields, entitytypehistory.FieldTags) + if m.FieldCleared(entitlementplanfeature.FieldOwnerID) { + fields = append(fields, entitlementplanfeature.FieldOwnerID) } - if m.FieldCleared(entitytypehistory.FieldOwnerID) { - fields = append(fields, entitytypehistory.FieldOwnerID) + if m.FieldCleared(entitlementplanfeature.FieldMetadata) { + fields = append(fields, entitlementplanfeature.FieldMetadata) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *EntityTypeHistoryMutation) FieldCleared(name string) bool { +func (m *EntitlementPlanFeatureMutation) 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 *EntityTypeHistoryMutation) ClearField(name string) error { +func (m *EntitlementPlanFeatureMutation) ClearField(name string) error { switch name { - case entitytypehistory.FieldRef: - m.ClearRef() - return nil - case entitytypehistory.FieldCreatedAt: + case entitlementplanfeature.FieldCreatedAt: m.ClearCreatedAt() return nil - case entitytypehistory.FieldUpdatedAt: + case entitlementplanfeature.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case entitytypehistory.FieldCreatedBy: + case entitlementplanfeature.FieldCreatedBy: m.ClearCreatedBy() return nil - case entitytypehistory.FieldUpdatedBy: + case entitlementplanfeature.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case entitytypehistory.FieldDeletedAt: + case entitlementplanfeature.FieldDeletedAt: m.ClearDeletedAt() return nil - case entitytypehistory.FieldDeletedBy: + case entitlementplanfeature.FieldDeletedBy: m.ClearDeletedBy() return nil - case entitytypehistory.FieldTags: + case entitlementplanfeature.FieldTags: m.ClearTags() return nil - case entitytypehistory.FieldOwnerID: + case entitlementplanfeature.FieldOwnerID: m.ClearOwnerID() return nil + case entitlementplanfeature.FieldMetadata: + m.ClearMetadata() + return nil } - return fmt.Errorf("unknown EntityTypeHistory nullable field %s", name) + return fmt.Errorf("unknown EntitlementPlanFeature 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 *EntityTypeHistoryMutation) ResetField(name string) error { +func (m *EntitlementPlanFeatureMutation) ResetField(name string) error { switch name { - case entitytypehistory.FieldHistoryTime: - m.ResetHistoryTime() + case entitlementplanfeature.FieldCreatedAt: + m.ResetCreatedAt() return nil - case entitytypehistory.FieldRef: - m.ResetRef() - return nil - case entitytypehistory.FieldOperation: - m.ResetOperation() - return nil - case entitytypehistory.FieldCreatedAt: - m.ResetCreatedAt() - return nil - case entitytypehistory.FieldUpdatedAt: + case entitlementplanfeature.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case entitytypehistory.FieldCreatedBy: + case entitlementplanfeature.FieldCreatedBy: m.ResetCreatedBy() return nil - case entitytypehistory.FieldUpdatedBy: + case entitlementplanfeature.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case entitytypehistory.FieldMappingID: + case entitlementplanfeature.FieldMappingID: m.ResetMappingID() return nil - case entitytypehistory.FieldDeletedAt: + case entitlementplanfeature.FieldDeletedAt: m.ResetDeletedAt() return nil - case entitytypehistory.FieldDeletedBy: + case entitlementplanfeature.FieldDeletedBy: m.ResetDeletedBy() return nil - case entitytypehistory.FieldTags: + case entitlementplanfeature.FieldTags: m.ResetTags() return nil - case entitytypehistory.FieldOwnerID: + case entitlementplanfeature.FieldOwnerID: m.ResetOwnerID() return nil - case entitytypehistory.FieldName: - m.ResetName() + case entitlementplanfeature.FieldMetadata: + m.ResetMetadata() + return nil + case entitlementplanfeature.FieldPlanID: + m.ResetPlanID() + return nil + case entitlementplanfeature.FieldFeatureID: + m.ResetFeatureID() return nil } - return fmt.Errorf("unknown EntityTypeHistory field %s", name) + return fmt.Errorf("unknown EntitlementPlanFeature field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *EntityTypeHistoryMutation) AddedEdges() []string { - edges := make([]string, 0, 0) +func (m *EntitlementPlanFeatureMutation) AddedEdges() []string { + edges := make([]string, 0, 4) + if m.owner != nil { + edges = append(edges, entitlementplanfeature.EdgeOwner) + } + if m.plan != nil { + edges = append(edges, entitlementplanfeature.EdgePlan) + } + if m.feature != nil { + edges = append(edges, entitlementplanfeature.EdgeFeature) + } + if m.events != nil { + edges = append(edges, entitlementplanfeature.EdgeEvents) + } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *EntityTypeHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *EntitlementPlanFeatureMutation) AddedIDs(name string) []ent.Value { + switch name { + case entitlementplanfeature.EdgeOwner: + if id := m.owner; id != nil { + return []ent.Value{*id} + } + case entitlementplanfeature.EdgePlan: + if id := m.plan; id != nil { + return []ent.Value{*id} + } + case entitlementplanfeature.EdgeFeature: + if id := m.feature; id != nil { + return []ent.Value{*id} + } + case entitlementplanfeature.EdgeEvents: + ids := make([]ent.Value, 0, len(m.events)) + for id := range m.events { + ids = append(ids, id) + } + return ids + } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *EntityTypeHistoryMutation) RemovedEdges() []string { - edges := make([]string, 0, 0) +func (m *EntitlementPlanFeatureMutation) RemovedEdges() []string { + edges := make([]string, 0, 4) + if m.removedevents != nil { + edges = append(edges, entitlementplanfeature.EdgeEvents) + } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *EntityTypeHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *EntitlementPlanFeatureMutation) RemovedIDs(name string) []ent.Value { + switch name { + case entitlementplanfeature.EdgeEvents: + ids := make([]ent.Value, 0, len(m.removedevents)) + for id := range m.removedevents { + ids = append(ids, id) + } + return ids + } return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EntityTypeHistoryMutation) ClearedEdges() []string { - edges := make([]string, 0, 0) +func (m *EntitlementPlanFeatureMutation) ClearedEdges() []string { + edges := make([]string, 0, 4) + if m.clearedowner { + edges = append(edges, entitlementplanfeature.EdgeOwner) + } + if m.clearedplan { + edges = append(edges, entitlementplanfeature.EdgePlan) + } + if m.clearedfeature { + edges = append(edges, entitlementplanfeature.EdgeFeature) + } + if m.clearedevents { + edges = append(edges, entitlementplanfeature.EdgeEvents) + } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *EntityTypeHistoryMutation) EdgeCleared(name string) bool { +func (m *EntitlementPlanFeatureMutation) EdgeCleared(name string) bool { + switch name { + case entitlementplanfeature.EdgeOwner: + return m.clearedowner + case entitlementplanfeature.EdgePlan: + return m.clearedplan + case entitlementplanfeature.EdgeFeature: + return m.clearedfeature + case entitlementplanfeature.EdgeEvents: + return m.clearedevents + } 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 *EntityTypeHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown EntityTypeHistory unique edge %s", name) +func (m *EntitlementPlanFeatureMutation) ClearEdge(name string) error { + switch name { + case entitlementplanfeature.EdgeOwner: + m.ClearOwner() + return nil + case entitlementplanfeature.EdgePlan: + m.ClearPlan() + return nil + case entitlementplanfeature.EdgeFeature: + m.ClearFeature() + return nil + } + return fmt.Errorf("unknown EntitlementPlanFeature 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 *EntityTypeHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown EntityTypeHistory edge %s", name) +func (m *EntitlementPlanFeatureMutation) ResetEdge(name string) error { + switch name { + case entitlementplanfeature.EdgeOwner: + m.ResetOwner() + return nil + case entitlementplanfeature.EdgePlan: + m.ResetPlan() + return nil + case entitlementplanfeature.EdgeFeature: + m.ResetFeature() + return nil + case entitlementplanfeature.EdgeEvents: + m.ResetEvents() + return nil + } + return fmt.Errorf("unknown EntitlementPlanFeature edge %s", name) } -// EventMutation represents an operation that mutates the Event nodes in the graph. -type EventMutation struct { +// EntitlementPlanFeatureHistoryMutation represents an operation that mutates the EntitlementPlanFeatureHistory nodes in the graph. +type EntitlementPlanFeatureHistoryMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - tags *[]string - appendtags []string - event_id *string - correlation_id *string - event_type *string - metadata *map[string]interface{} - clearedFields map[string]struct{} - user map[string]struct{} - removeduser map[string]struct{} - cleareduser bool - group map[string]struct{} - removedgroup map[string]struct{} - clearedgroup bool - integration map[string]struct{} - removedintegration map[string]struct{} - clearedintegration bool - organization map[string]struct{} - removedorganization map[string]struct{} - clearedorganization bool - invite map[string]struct{} - removedinvite map[string]struct{} - clearedinvite bool - feature map[string]struct{} - removedfeature map[string]struct{} - clearedfeature bool - entitlementplan map[string]struct{} - removedentitlementplan map[string]struct{} - clearedentitlementplan bool - entitlementplanfeature map[string]struct{} - removedentitlementplanfeature map[string]struct{} - clearedentitlementplanfeature bool - personal_access_token map[string]struct{} - removedpersonal_access_token map[string]struct{} - clearedpersonal_access_token bool - oauth2token map[string]struct{} - removedoauth2token map[string]struct{} - clearedoauth2token bool - hush map[string]struct{} - removedhush map[string]struct{} - clearedhush bool - orgmembership map[string]struct{} - removedorgmembership map[string]struct{} - clearedorgmembership bool - groupmembership map[string]struct{} - removedgroupmembership map[string]struct{} - clearedgroupmembership bool - entitlement map[string]struct{} - removedentitlement map[string]struct{} - clearedentitlement bool - webhook map[string]struct{} - removedwebhook map[string]struct{} - clearedwebhook bool - subscriber map[string]struct{} - removedsubscriber map[string]struct{} - clearedsubscriber bool - file map[string]struct{} - removedfile map[string]struct{} - clearedfile bool - done bool - oldValue func(context.Context) (*Event, error) - predicates []predicate.Event + 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 + mapping_id *string + deleted_at *time.Time + deleted_by *string + tags *[]string + appendtags []string + owner_id *string + metadata *map[string]interface{} + plan_id *string + feature_id *string + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*EntitlementPlanFeatureHistory, error) + predicates []predicate.EntitlementPlanFeatureHistory } -var _ ent.Mutation = (*EventMutation)(nil) +var _ ent.Mutation = (*EntitlementPlanFeatureHistoryMutation)(nil) -// eventOption allows management of the mutation configuration using functional options. -type eventOption func(*EventMutation) +// entitlementplanfeaturehistoryOption allows management of the mutation configuration using functional options. +type entitlementplanfeaturehistoryOption func(*EntitlementPlanFeatureHistoryMutation) -// newEventMutation creates new mutation for the Event entity. -func newEventMutation(c config, op Op, opts ...eventOption) *EventMutation { - m := &EventMutation{ +// newEntitlementPlanFeatureHistoryMutation creates new mutation for the EntitlementPlanFeatureHistory entity. +func newEntitlementPlanFeatureHistoryMutation(c config, op Op, opts ...entitlementplanfeaturehistoryOption) *EntitlementPlanFeatureHistoryMutation { + m := &EntitlementPlanFeatureHistoryMutation{ config: c, op: op, - typ: TypeEvent, + typ: TypeEntitlementPlanFeatureHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -23089,20 +26151,20 @@ func newEventMutation(c config, op Op, opts ...eventOption) *EventMutation { return m } -// withEventID sets the ID field of the mutation. -func withEventID(id string) eventOption { - return func(m *EventMutation) { +// withEntitlementPlanFeatureHistoryID sets the ID field of the mutation. +func withEntitlementPlanFeatureHistoryID(id string) entitlementplanfeaturehistoryOption { + return func(m *EntitlementPlanFeatureHistoryMutation) { var ( err error once sync.Once - value *Event + value *EntitlementPlanFeatureHistory ) - m.oldValue = func(ctx context.Context) (*Event, error) { + m.oldValue = func(ctx context.Context) (*EntitlementPlanFeatureHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().Event.Get(ctx, id) + value, err = m.Client().EntitlementPlanFeatureHistory.Get(ctx, id) } }) return value, err @@ -23111,10 +26173,10 @@ func withEventID(id string) eventOption { } } -// withEvent sets the old Event of the mutation. -func withEvent(node *Event) eventOption { - return func(m *EventMutation) { - m.oldValue = func(context.Context) (*Event, error) { +// withEntitlementPlanFeatureHistory sets the old EntitlementPlanFeatureHistory of the mutation. +func withEntitlementPlanFeatureHistory(node *EntitlementPlanFeatureHistory) entitlementplanfeaturehistoryOption { + return func(m *EntitlementPlanFeatureHistoryMutation) { + m.oldValue = func(context.Context) (*EntitlementPlanFeatureHistory, error) { return node, nil } m.id = &node.ID @@ -23123,7 +26185,7 @@ func withEvent(node *Event) eventOption { // 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 EventMutation) Client() *Client { +func (m EntitlementPlanFeatureHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -23131,7 +26193,7 @@ func (m EventMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EventMutation) Tx() (*Tx, error) { +func (m EntitlementPlanFeatureHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -23141,14 +26203,14 @@ func (m EventMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of Event entities. -func (m *EventMutation) SetID(id string) { +// operation is only accepted on creation of EntitlementPlanFeatureHistory entities. +func (m *EntitlementPlanFeatureHistoryMutation) 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 *EventMutation) ID() (id string, exists bool) { +func (m *EntitlementPlanFeatureHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -23159,7 +26221,7 @@ func (m *EventMutation) ID() (id string, exists bool) { // 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 *EventMutation) IDs(ctx context.Context) ([]string, error) { +func (m *EntitlementPlanFeatureHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -23168,19 +26230,140 @@ func (m *EventMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().Event.Query().Where(m.predicates...).IDs(ctx) + return m.Client().EntitlementPlanFeatureHistory.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 *EntitlementPlanFeatureHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *EntitlementPlanFeatureHistoryMutation) 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 EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EntitlementPlanFeatureHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *EntitlementPlanFeatureHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *EntitlementPlanFeatureHistoryMutation) 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 EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EntitlementPlanFeatureHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[entitlementplanfeaturehistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *EntitlementPlanFeatureHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, entitlementplanfeaturehistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *EntitlementPlanFeatureHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *EntitlementPlanFeatureHistoryMutation) 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 EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EntitlementPlanFeatureHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) ResetOperation() { + m.operation = nil +} + // SetCreatedAt sets the "created_at" field. -func (m *EventMutation) SetCreatedAt(t time.Time) { +func (m *EntitlementPlanFeatureHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EventMutation) CreatedAt() (r time.Time, exists bool) { +func (m *EntitlementPlanFeatureHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -23188,10 +26371,10 @@ func (m *EventMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the Event entity. -// If the Event object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EventMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementPlanFeatureHistoryMutation) 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") } @@ -23206,30 +26389,30 @@ func (m *EventMutation) OldCreatedAt(ctx context.Context) (v time.Time, err erro } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EventMutation) ClearCreatedAt() { +func (m *EntitlementPlanFeatureHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[event.FieldCreatedAt] = struct{}{} + m.clearedFields[entitlementplanfeaturehistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EventMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[event.FieldCreatedAt] +func (m *EntitlementPlanFeatureHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EventMutation) ResetCreatedAt() { +func (m *EntitlementPlanFeatureHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, event.FieldCreatedAt) + delete(m.clearedFields, entitlementplanfeaturehistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EventMutation) SetUpdatedAt(t time.Time) { +func (m *EntitlementPlanFeatureHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EventMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *EntitlementPlanFeatureHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -23237,10 +26420,10 @@ func (m *EventMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the Event entity. -// If the Event object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EventMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntitlementPlanFeatureHistoryMutation) 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") } @@ -23255,30 +26438,30 @@ func (m *EventMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err erro } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EventMutation) ClearUpdatedAt() { +func (m *EntitlementPlanFeatureHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[event.FieldUpdatedAt] = struct{}{} + m.clearedFields[entitlementplanfeaturehistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EventMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[event.FieldUpdatedAt] +func (m *EntitlementPlanFeatureHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EventMutation) ResetUpdatedAt() { +func (m *EntitlementPlanFeatureHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, event.FieldUpdatedAt) + delete(m.clearedFields, entitlementplanfeaturehistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EventMutation) SetCreatedBy(s string) { +func (m *EntitlementPlanFeatureHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EventMutation) CreatedBy() (r string, exists bool) { +func (m *EntitlementPlanFeatureHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -23286,10 +26469,10 @@ func (m *EventMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the Event entity. -// If the Event object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EventMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanFeatureHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -23304,30 +26487,30 @@ func (m *EventMutation) OldCreatedBy(ctx context.Context) (v string, err error) } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EventMutation) ClearCreatedBy() { +func (m *EntitlementPlanFeatureHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[event.FieldCreatedBy] = struct{}{} + m.clearedFields[entitlementplanfeaturehistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EventMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[event.FieldCreatedBy] +func (m *EntitlementPlanFeatureHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EventMutation) ResetCreatedBy() { +func (m *EntitlementPlanFeatureHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, event.FieldCreatedBy) + delete(m.clearedFields, entitlementplanfeaturehistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EventMutation) SetUpdatedBy(s string) { +func (m *EntitlementPlanFeatureHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EventMutation) UpdatedBy() (r string, exists bool) { +func (m *EntitlementPlanFeatureHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -23335,10 +26518,10 @@ func (m *EventMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the Event entity. -// If the Event object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EventMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanFeatureHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -23353,30 +26536,30 @@ func (m *EventMutation) OldUpdatedBy(ctx context.Context) (v string, err error) } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EventMutation) ClearUpdatedBy() { +func (m *EntitlementPlanFeatureHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[event.FieldUpdatedBy] = struct{}{} + m.clearedFields[entitlementplanfeaturehistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EventMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[event.FieldUpdatedBy] +func (m *EntitlementPlanFeatureHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EventMutation) ResetUpdatedBy() { +func (m *EntitlementPlanFeatureHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, event.FieldUpdatedBy) + delete(m.clearedFields, entitlementplanfeaturehistory.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *EventMutation) SetMappingID(s string) { +func (m *EntitlementPlanFeatureHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EventMutation) MappingID() (r string, exists bool) { +func (m *EntitlementPlanFeatureHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -23384,10 +26567,10 @@ func (m *EventMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the Event entity. -// If the Event 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 *EventMutation) OldMappingID(ctx context.Context) (v string, err error) { +// OldMappingID returns the old "mapping_id" field's value of the EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EntitlementPlanFeatureHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -23402,216 +26585,229 @@ func (m *EventMutation) OldMappingID(ctx context.Context) (v string, err error) } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *EventMutation) ResetMappingID() { +func (m *EntitlementPlanFeatureHistoryMutation) ResetMappingID() { m.mapping_id = nil } -// SetTags sets the "tags" field. -func (m *EventMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil +// SetDeletedAt sets the "deleted_at" field. +func (m *EntitlementPlanFeatureHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t } -// Tags returns the value of the "tags" field in the mutation. -func (m *EventMutation) Tags() (r []string, exists bool) { - v := m.tags +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *EntitlementPlanFeatureHistoryMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at if v == nil { return } return *v, true } -// OldTags returns the old "tags" field's value of the Event entity. -// If the Event object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EventMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *EntitlementPlanFeatureHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTags is only allowed on UpdateOne operations") + return v, errors.New("OldDeletedAt 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") + 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 OldTags: %w", err) - } - return oldValue.Tags, nil -} - -// AppendTags adds s to the "tags" field. -func (m *EventMutation) 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 *EventMutation) AppendedTags() ([]string, bool) { - if len(m.appendtags) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) } - return m.appendtags, true + return oldValue.DeletedAt, nil } -// ClearTags clears the value of the "tags" field. -func (m *EventMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[event.FieldTags] = struct{}{} +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *EntitlementPlanFeatureHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[entitlementplanfeaturehistory.FieldDeletedAt] = struct{}{} } -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *EventMutation) TagsCleared() bool { - _, ok := m.clearedFields[event.FieldTags] +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldDeletedAt] return ok } -// ResetTags resets all changes to the "tags" field. -func (m *EventMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, event.FieldTags) +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *EntitlementPlanFeatureHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, entitlementplanfeaturehistory.FieldDeletedAt) } -// SetEventID sets the "event_id" field. -func (m *EventMutation) SetEventID(s string) { - m.event_id = &s +// SetDeletedBy sets the "deleted_by" field. +func (m *EntitlementPlanFeatureHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s } -// EventID returns the value of the "event_id" field in the mutation. -func (m *EventMutation) EventID() (r string, exists bool) { - v := m.event_id +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *EntitlementPlanFeatureHistoryMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by if v == nil { return } return *v, true } -// OldEventID returns the old "event_id" field's value of the Event entity. -// If the Event object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EventMutation) OldEventID(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanFeatureHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldEventID is only allowed on UpdateOne operations") + return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldEventID requires an ID field in the mutation") + 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 OldEventID: %w", err) + return v, fmt.Errorf("querying old value for OldDeletedBy: %w", err) } - return oldValue.EventID, nil + return oldValue.DeletedBy, nil } -// ClearEventID clears the value of the "event_id" field. -func (m *EventMutation) ClearEventID() { - m.event_id = nil - m.clearedFields[event.FieldEventID] = struct{}{} +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *EntitlementPlanFeatureHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[entitlementplanfeaturehistory.FieldDeletedBy] = struct{}{} } -// EventIDCleared returns if the "event_id" field was cleared in this mutation. -func (m *EventMutation) EventIDCleared() bool { - _, ok := m.clearedFields[event.FieldEventID] +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldDeletedBy] return ok } -// ResetEventID resets all changes to the "event_id" field. -func (m *EventMutation) ResetEventID() { - m.event_id = nil - delete(m.clearedFields, event.FieldEventID) +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *EntitlementPlanFeatureHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, entitlementplanfeaturehistory.FieldDeletedBy) } -// SetCorrelationID sets the "correlation_id" field. -func (m *EventMutation) SetCorrelationID(s string) { - m.correlation_id = &s +// SetTags sets the "tags" field. +func (m *EntitlementPlanFeatureHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// CorrelationID returns the value of the "correlation_id" field in the mutation. -func (m *EventMutation) CorrelationID() (r string, exists bool) { - v := m.correlation_id +// Tags returns the value of the "tags" field in the mutation. +func (m *EntitlementPlanFeatureHistoryMutation) Tags() (r []string, exists bool) { + v := m.tags if v == nil { return } return *v, true } -// OldCorrelationID returns the old "correlation_id" field's value of the Event entity. -// If the Event object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EventMutation) OldCorrelationID(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanFeatureHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCorrelationID is only allowed on UpdateOne operations") + return v, errors.New("OldTags is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldCorrelationID requires an ID field in the mutation") + 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 OldCorrelationID: %w", err) + return v, fmt.Errorf("querying old value for OldTags: %w", err) } - return oldValue.CorrelationID, nil + return oldValue.Tags, nil } -// ClearCorrelationID clears the value of the "correlation_id" field. -func (m *EventMutation) ClearCorrelationID() { - m.correlation_id = nil - m.clearedFields[event.FieldCorrelationID] = struct{}{} +// AppendTags adds s to the "tags" field. +func (m *EntitlementPlanFeatureHistoryMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) } -// CorrelationIDCleared returns if the "correlation_id" field was cleared in this mutation. -func (m *EventMutation) CorrelationIDCleared() bool { - _, ok := m.clearedFields[event.FieldCorrelationID] +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) 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 *EntitlementPlanFeatureHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[entitlementplanfeaturehistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldTags] return ok } -// ResetCorrelationID resets all changes to the "correlation_id" field. -func (m *EventMutation) ResetCorrelationID() { - m.correlation_id = nil - delete(m.clearedFields, event.FieldCorrelationID) +// ResetTags resets all changes to the "tags" field. +func (m *EntitlementPlanFeatureHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, entitlementplanfeaturehistory.FieldTags) } -// SetEventType sets the "event_type" field. -func (m *EventMutation) SetEventType(s string) { - m.event_type = &s +// SetOwnerID sets the "owner_id" field. +func (m *EntitlementPlanFeatureHistoryMutation) SetOwnerID(s string) { + m.owner_id = &s } -// EventType returns the value of the "event_type" field in the mutation. -func (m *EventMutation) EventType() (r string, exists bool) { - v := m.event_type +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *EntitlementPlanFeatureHistoryMutation) OwnerID() (r string, exists bool) { + v := m.owner_id if v == nil { return } return *v, true } -// OldEventType returns the old "event_type" field's value of the Event entity. -// If the Event object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EventMutation) OldEventType(ctx context.Context) (v string, err error) { +func (m *EntitlementPlanFeatureHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldEventType is only allowed on UpdateOne operations") + return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldEventType requires an ID field in the mutation") + 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 OldEventType: %w", err) + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) } - return oldValue.EventType, nil + return oldValue.OwnerID, nil } -// ResetEventType resets all changes to the "event_type" field. -func (m *EventMutation) ResetEventType() { - m.event_type = nil +// ClearOwnerID clears the value of the "owner_id" field. +func (m *EntitlementPlanFeatureHistoryMutation) ClearOwnerID() { + m.owner_id = nil + m.clearedFields[entitlementplanfeaturehistory.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *EntitlementPlanFeatureHistoryMutation) ResetOwnerID() { + m.owner_id = nil + delete(m.clearedFields, entitlementplanfeaturehistory.FieldOwnerID) } // SetMetadata sets the "metadata" field. -func (m *EventMutation) SetMetadata(value map[string]interface{}) { +func (m *EntitlementPlanFeatureHistoryMutation) SetMetadata(value map[string]interface{}) { m.metadata = &value } // Metadata returns the value of the "metadata" field in the mutation. -func (m *EventMutation) Metadata() (r map[string]interface{}, exists bool) { +func (m *EntitlementPlanFeatureHistoryMutation) Metadata() (r map[string]interface{}, exists bool) { v := m.metadata if v == nil { return @@ -23619,10 +26815,10 @@ func (m *EventMutation) Metadata() (r map[string]interface{}, exists bool) { return *v, true } -// OldMetadata returns the old "metadata" field's value of the Event entity. -// If the Event object wasn't provided to the builder, the object is fetched from the database. +// OldMetadata returns the old "metadata" field's value of the EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EventMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error) { +func (m *EntitlementPlanFeatureHistoryMutation) 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") } @@ -23637,1136 +26833,1786 @@ func (m *EventMutation) OldMetadata(ctx context.Context) (v map[string]interface } // ClearMetadata clears the value of the "metadata" field. -func (m *EventMutation) ClearMetadata() { +func (m *EntitlementPlanFeatureHistoryMutation) ClearMetadata() { m.metadata = nil - m.clearedFields[event.FieldMetadata] = struct{}{} + m.clearedFields[entitlementplanfeaturehistory.FieldMetadata] = struct{}{} } // MetadataCleared returns if the "metadata" field was cleared in this mutation. -func (m *EventMutation) MetadataCleared() bool { - _, ok := m.clearedFields[event.FieldMetadata] +func (m *EntitlementPlanFeatureHistoryMutation) MetadataCleared() bool { + _, ok := m.clearedFields[entitlementplanfeaturehistory.FieldMetadata] return ok } // ResetMetadata resets all changes to the "metadata" field. -func (m *EventMutation) ResetMetadata() { +func (m *EntitlementPlanFeatureHistoryMutation) ResetMetadata() { m.metadata = nil - delete(m.clearedFields, event.FieldMetadata) -} - -// AddUserIDs adds the "user" edge to the User entity by ids. -func (m *EventMutation) AddUserIDs(ids ...string) { - if m.user == nil { - m.user = make(map[string]struct{}) - } - for i := range ids { - m.user[ids[i]] = struct{}{} - } + delete(m.clearedFields, entitlementplanfeaturehistory.FieldMetadata) } -// ClearUser clears the "user" edge to the User entity. -func (m *EventMutation) ClearUser() { - m.cleareduser = true +// SetPlanID sets the "plan_id" field. +func (m *EntitlementPlanFeatureHistoryMutation) SetPlanID(s string) { + m.plan_id = &s } -// UserCleared reports if the "user" edge to the User entity was cleared. -func (m *EventMutation) UserCleared() bool { - return m.cleareduser +// PlanID returns the value of the "plan_id" field in the mutation. +func (m *EntitlementPlanFeatureHistoryMutation) PlanID() (r string, exists bool) { + v := m.plan_id + if v == nil { + return + } + return *v, true } -// RemoveUserIDs removes the "user" edge to the User entity by IDs. -func (m *EventMutation) RemoveUserIDs(ids ...string) { - if m.removeduser == nil { - m.removeduser = make(map[string]struct{}) +// OldPlanID returns the old "plan_id" field's value of the EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EntitlementPlanFeatureHistoryMutation) OldPlanID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldPlanID is only allowed on UpdateOne operations") } - for i := range ids { - delete(m.user, ids[i]) - m.removeduser[ids[i]] = struct{}{} + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldPlanID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldPlanID: %w", err) } + return oldValue.PlanID, nil } -// RemovedUser returns the removed IDs of the "user" edge to the User entity. -func (m *EventMutation) RemovedUserIDs() (ids []string) { - for id := range m.removeduser { - ids = append(ids, id) - } - return +// ResetPlanID resets all changes to the "plan_id" field. +func (m *EntitlementPlanFeatureHistoryMutation) ResetPlanID() { + m.plan_id = nil } -// UserIDs returns the "user" edge IDs in the mutation. -func (m *EventMutation) UserIDs() (ids []string) { - for id := range m.user { - ids = append(ids, id) - } - return +// SetFeatureID sets the "feature_id" field. +func (m *EntitlementPlanFeatureHistoryMutation) SetFeatureID(s string) { + m.feature_id = &s } -// ResetUser resets all changes to the "user" edge. -func (m *EventMutation) ResetUser() { - m.user = nil - m.cleareduser = false - m.removeduser = nil +// FeatureID returns the value of the "feature_id" field in the mutation. +func (m *EntitlementPlanFeatureHistoryMutation) FeatureID() (r string, exists bool) { + v := m.feature_id + if v == nil { + return + } + return *v, true } -// AddGroupIDs adds the "group" edge to the Group entity by ids. -func (m *EventMutation) AddGroupIDs(ids ...string) { - if m.group == nil { - m.group = make(map[string]struct{}) +// OldFeatureID returns the old "feature_id" field's value of the EntitlementPlanFeatureHistory entity. +// If the EntitlementPlanFeatureHistory 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 *EntitlementPlanFeatureHistoryMutation) OldFeatureID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldFeatureID is only allowed on UpdateOne operations") } - for i := range ids { - m.group[ids[i]] = struct{}{} + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldFeatureID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldFeatureID: %w", err) } + return oldValue.FeatureID, nil } -// ClearGroup clears the "group" edge to the Group entity. -func (m *EventMutation) ClearGroup() { - m.clearedgroup = true +// ResetFeatureID resets all changes to the "feature_id" field. +func (m *EntitlementPlanFeatureHistoryMutation) ResetFeatureID() { + m.feature_id = nil } -// GroupCleared reports if the "group" edge to the Group entity was cleared. -func (m *EventMutation) GroupCleared() bool { - return m.clearedgroup +// Where appends a list predicates to the EntitlementPlanFeatureHistoryMutation builder. +func (m *EntitlementPlanFeatureHistoryMutation) Where(ps ...predicate.EntitlementPlanFeatureHistory) { + m.predicates = append(m.predicates, ps...) } -// RemoveGroupIDs removes the "group" edge to the Group entity by IDs. -func (m *EventMutation) RemoveGroupIDs(ids ...string) { - if m.removedgroup == nil { - m.removedgroup = make(map[string]struct{}) - } - for i := range ids { - delete(m.group, ids[i]) - m.removedgroup[ids[i]] = struct{}{} +// WhereP appends storage-level predicates to the EntitlementPlanFeatureHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *EntitlementPlanFeatureHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.EntitlementPlanFeatureHistory, len(ps)) + for i := range ps { + p[i] = ps[i] } + m.Where(p...) } -// RemovedGroup returns the removed IDs of the "group" edge to the Group entity. -func (m *EventMutation) RemovedGroupIDs() (ids []string) { - for id := range m.removedgroup { - ids = append(ids, id) - } - return +// Op returns the operation name. +func (m *EntitlementPlanFeatureHistoryMutation) Op() Op { + return m.op } -// GroupIDs returns the "group" edge IDs in the mutation. -func (m *EventMutation) GroupIDs() (ids []string) { - for id := range m.group { - ids = append(ids, id) - } - return +// SetOp allows setting the mutation operation. +func (m *EntitlementPlanFeatureHistoryMutation) SetOp(op Op) { + m.op = op } -// ResetGroup resets all changes to the "group" edge. -func (m *EventMutation) ResetGroup() { - m.group = nil - m.clearedgroup = false - m.removedgroup = nil +// Type returns the node type of this mutation (EntitlementPlanFeatureHistory). +func (m *EntitlementPlanFeatureHistoryMutation) Type() string { + return m.typ } -// AddIntegrationIDs adds the "integration" edge to the Integration entity by ids. -func (m *EventMutation) AddIntegrationIDs(ids ...string) { - if m.integration == nil { - m.integration = make(map[string]struct{}) +// 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 *EntitlementPlanFeatureHistoryMutation) Fields() []string { + fields := make([]string, 0, 15) + if m.history_time != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldHistoryTime) } - for i := range ids { - m.integration[ids[i]] = struct{}{} + if m.ref != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldRef) } -} - -// ClearIntegration clears the "integration" edge to the Integration entity. -func (m *EventMutation) ClearIntegration() { - m.clearedintegration = true -} - -// IntegrationCleared reports if the "integration" edge to the Integration entity was cleared. -func (m *EventMutation) IntegrationCleared() bool { - return m.clearedintegration -} - -// RemoveIntegrationIDs removes the "integration" edge to the Integration entity by IDs. -func (m *EventMutation) RemoveIntegrationIDs(ids ...string) { - if m.removedintegration == nil { - m.removedintegration = make(map[string]struct{}) + if m.operation != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldOperation) } - for i := range ids { - delete(m.integration, ids[i]) - m.removedintegration[ids[i]] = struct{}{} + if m.created_at != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldCreatedAt) } -} - -// RemovedIntegration returns the removed IDs of the "integration" edge to the Integration entity. -func (m *EventMutation) RemovedIntegrationIDs() (ids []string) { - for id := range m.removedintegration { - ids = append(ids, id) + if m.updated_at != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldUpdatedAt) } - return -} - -// IntegrationIDs returns the "integration" edge IDs in the mutation. -func (m *EventMutation) IntegrationIDs() (ids []string) { - for id := range m.integration { - ids = append(ids, id) + if m.created_by != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldCreatedBy) } - return -} - -// ResetIntegration resets all changes to the "integration" edge. -func (m *EventMutation) ResetIntegration() { - m.integration = nil - m.clearedintegration = false - m.removedintegration = nil -} - -// AddOrganizationIDs adds the "organization" edge to the Organization entity by ids. -func (m *EventMutation) AddOrganizationIDs(ids ...string) { - if m.organization == nil { - m.organization = make(map[string]struct{}) + if m.updated_by != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldUpdatedBy) } - for i := range ids { - m.organization[ids[i]] = struct{}{} + if m.mapping_id != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldMappingID) } -} - -// ClearOrganization clears the "organization" edge to the Organization entity. -func (m *EventMutation) ClearOrganization() { - m.clearedorganization = true -} - -// OrganizationCleared reports if the "organization" edge to the Organization entity was cleared. -func (m *EventMutation) OrganizationCleared() bool { - return m.clearedorganization -} - -// RemoveOrganizationIDs removes the "organization" edge to the Organization entity by IDs. -func (m *EventMutation) RemoveOrganizationIDs(ids ...string) { - if m.removedorganization == nil { - m.removedorganization = make(map[string]struct{}) + if m.deleted_at != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldDeletedAt) } - for i := range ids { - delete(m.organization, ids[i]) - m.removedorganization[ids[i]] = struct{}{} + if m.deleted_by != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldDeletedBy) } + if m.tags != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldTags) + } + if m.owner_id != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldOwnerID) + } + if m.metadata != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldMetadata) + } + if m.plan_id != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldPlanID) + } + if m.feature_id != nil { + fields = append(fields, entitlementplanfeaturehistory.FieldFeatureID) + } + return fields } -// RemovedOrganization returns the removed IDs of the "organization" edge to the Organization entity. -func (m *EventMutation) RemovedOrganizationIDs() (ids []string) { - for id := range m.removedorganization { - ids = append(ids, id) +// 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 *EntitlementPlanFeatureHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case entitlementplanfeaturehistory.FieldHistoryTime: + return m.HistoryTime() + case entitlementplanfeaturehistory.FieldRef: + return m.Ref() + case entitlementplanfeaturehistory.FieldOperation: + return m.Operation() + case entitlementplanfeaturehistory.FieldCreatedAt: + return m.CreatedAt() + case entitlementplanfeaturehistory.FieldUpdatedAt: + return m.UpdatedAt() + case entitlementplanfeaturehistory.FieldCreatedBy: + return m.CreatedBy() + case entitlementplanfeaturehistory.FieldUpdatedBy: + return m.UpdatedBy() + case entitlementplanfeaturehistory.FieldMappingID: + return m.MappingID() + case entitlementplanfeaturehistory.FieldDeletedAt: + return m.DeletedAt() + case entitlementplanfeaturehistory.FieldDeletedBy: + return m.DeletedBy() + case entitlementplanfeaturehistory.FieldTags: + return m.Tags() + case entitlementplanfeaturehistory.FieldOwnerID: + return m.OwnerID() + case entitlementplanfeaturehistory.FieldMetadata: + return m.Metadata() + case entitlementplanfeaturehistory.FieldPlanID: + return m.PlanID() + case entitlementplanfeaturehistory.FieldFeatureID: + return m.FeatureID() } - return + return nil, false } -// OrganizationIDs returns the "organization" edge IDs in the mutation. -func (m *EventMutation) OrganizationIDs() (ids []string) { - for id := range m.organization { - ids = append(ids, id) +// 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 *EntitlementPlanFeatureHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case entitlementplanfeaturehistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case entitlementplanfeaturehistory.FieldRef: + return m.OldRef(ctx) + case entitlementplanfeaturehistory.FieldOperation: + return m.OldOperation(ctx) + case entitlementplanfeaturehistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case entitlementplanfeaturehistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case entitlementplanfeaturehistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case entitlementplanfeaturehistory.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case entitlementplanfeaturehistory.FieldMappingID: + return m.OldMappingID(ctx) + case entitlementplanfeaturehistory.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case entitlementplanfeaturehistory.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case entitlementplanfeaturehistory.FieldTags: + return m.OldTags(ctx) + case entitlementplanfeaturehistory.FieldOwnerID: + return m.OldOwnerID(ctx) + case entitlementplanfeaturehistory.FieldMetadata: + return m.OldMetadata(ctx) + case entitlementplanfeaturehistory.FieldPlanID: + return m.OldPlanID(ctx) + case entitlementplanfeaturehistory.FieldFeatureID: + return m.OldFeatureID(ctx) } - return -} - -// ResetOrganization resets all changes to the "organization" edge. -func (m *EventMutation) ResetOrganization() { - m.organization = nil - m.clearedorganization = false - m.removedorganization = nil + return nil, fmt.Errorf("unknown EntitlementPlanFeatureHistory field %s", name) } -// AddInviteIDs adds the "invite" edge to the Invite entity by ids. -func (m *EventMutation) AddInviteIDs(ids ...string) { - if m.invite == nil { - m.invite = make(map[string]struct{}) - } - for i := range ids { - m.invite[ids[i]] = struct{}{} +// 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 *EntitlementPlanFeatureHistoryMutation) SetField(name string, value ent.Value) error { + switch name { + case entitlementplanfeaturehistory.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 entitlementplanfeaturehistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case entitlementplanfeaturehistory.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 entitlementplanfeaturehistory.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 entitlementplanfeaturehistory.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 entitlementplanfeaturehistory.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case entitlementplanfeaturehistory.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case entitlementplanfeaturehistory.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case entitlementplanfeaturehistory.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 entitlementplanfeaturehistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case entitlementplanfeaturehistory.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case entitlementplanfeaturehistory.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case entitlementplanfeaturehistory.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 + case entitlementplanfeaturehistory.FieldPlanID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetPlanID(v) + return nil + case entitlementplanfeaturehistory.FieldFeatureID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetFeatureID(v) + return nil } + return fmt.Errorf("unknown EntitlementPlanFeatureHistory field %s", name) } -// ClearInvite clears the "invite" edge to the Invite entity. -func (m *EventMutation) ClearInvite() { - m.clearedinvite = true +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) AddedFields() []string { + return nil } -// InviteCleared reports if the "invite" edge to the Invite entity was cleared. -func (m *EventMutation) InviteCleared() bool { - return m.clearedinvite +// 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 *EntitlementPlanFeatureHistoryMutation) AddedField(name string) (ent.Value, bool) { + return nil, false } -// RemoveInviteIDs removes the "invite" edge to the Invite entity by IDs. -func (m *EventMutation) RemoveInviteIDs(ids ...string) { - if m.removedinvite == nil { - m.removedinvite = make(map[string]struct{}) - } - for i := range ids { - delete(m.invite, ids[i]) - m.removedinvite[ids[i]] = struct{}{} +// 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 *EntitlementPlanFeatureHistoryMutation) AddField(name string, value ent.Value) error { + switch name { } + return fmt.Errorf("unknown EntitlementPlanFeatureHistory numeric field %s", name) } -// RemovedInvite returns the removed IDs of the "invite" edge to the Invite entity. -func (m *EventMutation) RemovedInviteIDs() (ids []string) { - for id := range m.removedinvite { - ids = append(ids, id) +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *EntitlementPlanFeatureHistoryMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(entitlementplanfeaturehistory.FieldRef) { + fields = append(fields, entitlementplanfeaturehistory.FieldRef) } - return -} - -// InviteIDs returns the "invite" edge IDs in the mutation. -func (m *EventMutation) InviteIDs() (ids []string) { - for id := range m.invite { - ids = append(ids, id) + if m.FieldCleared(entitlementplanfeaturehistory.FieldCreatedAt) { + fields = append(fields, entitlementplanfeaturehistory.FieldCreatedAt) } - return -} - -// ResetInvite resets all changes to the "invite" edge. -func (m *EventMutation) ResetInvite() { - m.invite = nil - m.clearedinvite = false - m.removedinvite = nil -} - -// AddFeatureIDs adds the "feature" edge to the Feature entity by ids. -func (m *EventMutation) AddFeatureIDs(ids ...string) { - if m.feature == nil { - m.feature = make(map[string]struct{}) + if m.FieldCleared(entitlementplanfeaturehistory.FieldUpdatedAt) { + fields = append(fields, entitlementplanfeaturehistory.FieldUpdatedAt) } - for i := range ids { - m.feature[ids[i]] = struct{}{} + if m.FieldCleared(entitlementplanfeaturehistory.FieldCreatedBy) { + fields = append(fields, entitlementplanfeaturehistory.FieldCreatedBy) } -} - -// ClearFeature clears the "feature" edge to the Feature entity. -func (m *EventMutation) ClearFeature() { - m.clearedfeature = true -} - -// FeatureCleared reports if the "feature" edge to the Feature entity was cleared. -func (m *EventMutation) FeatureCleared() bool { - return m.clearedfeature -} - -// RemoveFeatureIDs removes the "feature" edge to the Feature entity by IDs. -func (m *EventMutation) RemoveFeatureIDs(ids ...string) { - if m.removedfeature == nil { - m.removedfeature = make(map[string]struct{}) + if m.FieldCleared(entitlementplanfeaturehistory.FieldUpdatedBy) { + fields = append(fields, entitlementplanfeaturehistory.FieldUpdatedBy) } - for i := range ids { - delete(m.feature, ids[i]) - m.removedfeature[ids[i]] = struct{}{} + if m.FieldCleared(entitlementplanfeaturehistory.FieldDeletedAt) { + fields = append(fields, entitlementplanfeaturehistory.FieldDeletedAt) } -} - -// RemovedFeature returns the removed IDs of the "feature" edge to the Feature entity. -func (m *EventMutation) RemovedFeatureIDs() (ids []string) { - for id := range m.removedfeature { - ids = append(ids, id) + if m.FieldCleared(entitlementplanfeaturehistory.FieldDeletedBy) { + fields = append(fields, entitlementplanfeaturehistory.FieldDeletedBy) } - return -} - -// FeatureIDs returns the "feature" edge IDs in the mutation. -func (m *EventMutation) FeatureIDs() (ids []string) { - for id := range m.feature { - ids = append(ids, id) + if m.FieldCleared(entitlementplanfeaturehistory.FieldTags) { + fields = append(fields, entitlementplanfeaturehistory.FieldTags) } - return -} - -// ResetFeature resets all changes to the "feature" edge. -func (m *EventMutation) ResetFeature() { - m.feature = nil - m.clearedfeature = false - m.removedfeature = nil -} - -// AddEntitlementplanIDs adds the "entitlementplan" edge to the EntitlementPlan entity by ids. -func (m *EventMutation) AddEntitlementplanIDs(ids ...string) { - if m.entitlementplan == nil { - m.entitlementplan = make(map[string]struct{}) + if m.FieldCleared(entitlementplanfeaturehistory.FieldOwnerID) { + fields = append(fields, entitlementplanfeaturehistory.FieldOwnerID) } - for i := range ids { - m.entitlementplan[ids[i]] = struct{}{} + if m.FieldCleared(entitlementplanfeaturehistory.FieldMetadata) { + fields = append(fields, entitlementplanfeaturehistory.FieldMetadata) } + return fields } -// ClearEntitlementplan clears the "entitlementplan" edge to the EntitlementPlan entity. -func (m *EventMutation) ClearEntitlementplan() { - m.clearedentitlementplan = true +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) FieldCleared(name string) bool { + _, ok := m.clearedFields[name] + return ok } -// EntitlementplanCleared reports if the "entitlementplan" edge to the EntitlementPlan entity was cleared. -func (m *EventMutation) EntitlementplanCleared() bool { - return m.clearedentitlementplan +// 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 *EntitlementPlanFeatureHistoryMutation) ClearField(name string) error { + switch name { + case entitlementplanfeaturehistory.FieldRef: + m.ClearRef() + return nil + case entitlementplanfeaturehistory.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case entitlementplanfeaturehistory.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case entitlementplanfeaturehistory.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case entitlementplanfeaturehistory.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case entitlementplanfeaturehistory.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case entitlementplanfeaturehistory.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case entitlementplanfeaturehistory.FieldTags: + m.ClearTags() + return nil + case entitlementplanfeaturehistory.FieldOwnerID: + m.ClearOwnerID() + return nil + case entitlementplanfeaturehistory.FieldMetadata: + m.ClearMetadata() + return nil + } + return fmt.Errorf("unknown EntitlementPlanFeatureHistory nullable field %s", name) } -// RemoveEntitlementplanIDs removes the "entitlementplan" edge to the EntitlementPlan entity by IDs. -func (m *EventMutation) RemoveEntitlementplanIDs(ids ...string) { - if m.removedentitlementplan == nil { - m.removedentitlementplan = make(map[string]struct{}) - } - for i := range ids { - delete(m.entitlementplan, ids[i]) - m.removedentitlementplan[ids[i]] = struct{}{} +// 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 *EntitlementPlanFeatureHistoryMutation) ResetField(name string) error { + switch name { + case entitlementplanfeaturehistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case entitlementplanfeaturehistory.FieldRef: + m.ResetRef() + return nil + case entitlementplanfeaturehistory.FieldOperation: + m.ResetOperation() + return nil + case entitlementplanfeaturehistory.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case entitlementplanfeaturehistory.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case entitlementplanfeaturehistory.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case entitlementplanfeaturehistory.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case entitlementplanfeaturehistory.FieldMappingID: + m.ResetMappingID() + return nil + case entitlementplanfeaturehistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case entitlementplanfeaturehistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case entitlementplanfeaturehistory.FieldTags: + m.ResetTags() + return nil + case entitlementplanfeaturehistory.FieldOwnerID: + m.ResetOwnerID() + return nil + case entitlementplanfeaturehistory.FieldMetadata: + m.ResetMetadata() + return nil + case entitlementplanfeaturehistory.FieldPlanID: + m.ResetPlanID() + return nil + case entitlementplanfeaturehistory.FieldFeatureID: + m.ResetFeatureID() + return nil } + return fmt.Errorf("unknown EntitlementPlanFeatureHistory field %s", name) } -// RemovedEntitlementplan returns the removed IDs of the "entitlementplan" edge to the EntitlementPlan entity. -func (m *EventMutation) RemovedEntitlementplanIDs() (ids []string) { - for id := range m.removedentitlementplan { - ids = append(ids, id) - } - return +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) AddedEdges() []string { + edges := make([]string, 0, 0) + return edges } -// EntitlementplanIDs returns the "entitlementplan" edge IDs in the mutation. -func (m *EventMutation) EntitlementplanIDs() (ids []string) { - for id := range m.entitlementplan { - ids = append(ids, id) - } - return +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) AddedIDs(name string) []ent.Value { + return nil } -// ResetEntitlementplan resets all changes to the "entitlementplan" edge. -func (m *EventMutation) ResetEntitlementplan() { - m.entitlementplan = nil - m.clearedentitlementplan = false - m.removedentitlementplan = nil +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) RemovedEdges() []string { + edges := make([]string, 0, 0) + return edges } -// AddEntitlementplanfeatureIDs adds the "entitlementplanfeature" edge to the EntitlementPlanFeature entity by ids. -func (m *EventMutation) AddEntitlementplanfeatureIDs(ids ...string) { - if m.entitlementplanfeature == nil { - m.entitlementplanfeature = make(map[string]struct{}) - } - for i := range ids { - m.entitlementplanfeature[ids[i]] = struct{}{} - } +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) RemovedIDs(name string) []ent.Value { + return nil } -// ClearEntitlementplanfeature clears the "entitlementplanfeature" edge to the EntitlementPlanFeature entity. -func (m *EventMutation) ClearEntitlementplanfeature() { - m.clearedentitlementplanfeature = true +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) ClearedEdges() []string { + edges := make([]string, 0, 0) + return edges } -// EntitlementplanfeatureCleared reports if the "entitlementplanfeature" edge to the EntitlementPlanFeature entity was cleared. -func (m *EventMutation) EntitlementplanfeatureCleared() bool { - return m.clearedentitlementplanfeature +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *EntitlementPlanFeatureHistoryMutation) EdgeCleared(name string) bool { + return false } -// RemoveEntitlementplanfeatureIDs removes the "entitlementplanfeature" edge to the EntitlementPlanFeature entity by IDs. -func (m *EventMutation) RemoveEntitlementplanfeatureIDs(ids ...string) { - if m.removedentitlementplanfeature == nil { - m.removedentitlementplanfeature = make(map[string]struct{}) - } - for i := range ids { - delete(m.entitlementplanfeature, ids[i]) - m.removedentitlementplanfeature[ids[i]] = struct{}{} - } +// 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 *EntitlementPlanFeatureHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown EntitlementPlanFeatureHistory unique edge %s", name) } -// RemovedEntitlementplanfeature returns the removed IDs of the "entitlementplanfeature" edge to the EntitlementPlanFeature entity. -func (m *EventMutation) RemovedEntitlementplanfeatureIDs() (ids []string) { - for id := range m.removedentitlementplanfeature { - ids = append(ids, id) - } - return -} - -// EntitlementplanfeatureIDs returns the "entitlementplanfeature" edge IDs in the mutation. -func (m *EventMutation) EntitlementplanfeatureIDs() (ids []string) { - for id := range m.entitlementplanfeature { - ids = append(ids, id) - } - return -} - -// ResetEntitlementplanfeature resets all changes to the "entitlementplanfeature" edge. -func (m *EventMutation) ResetEntitlementplanfeature() { - m.entitlementplanfeature = nil - m.clearedentitlementplanfeature = false - m.removedentitlementplanfeature = nil +// 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 *EntitlementPlanFeatureHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown EntitlementPlanFeatureHistory edge %s", name) } -// AddPersonalAccessTokenIDs adds the "personal_access_token" edge to the PersonalAccessToken entity by ids. -func (m *EventMutation) AddPersonalAccessTokenIDs(ids ...string) { - if m.personal_access_token == nil { - m.personal_access_token = make(map[string]struct{}) - } - for i := range ids { - m.personal_access_token[ids[i]] = struct{}{} - } +// EntitlementPlanHistoryMutation represents an operation that mutates the EntitlementPlanHistory nodes in the graph. +type EntitlementPlanHistoryMutation 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 + mapping_id *string + deleted_at *time.Time + deleted_by *string + tags *[]string + appendtags []string + owner_id *string + display_name *string + name *string + description *string + version *string + metadata *map[string]interface{} + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*EntitlementPlanHistory, error) + predicates []predicate.EntitlementPlanHistory } -// ClearPersonalAccessToken clears the "personal_access_token" edge to the PersonalAccessToken entity. -func (m *EventMutation) ClearPersonalAccessToken() { - m.clearedpersonal_access_token = true -} +var _ ent.Mutation = (*EntitlementPlanHistoryMutation)(nil) -// PersonalAccessTokenCleared reports if the "personal_access_token" edge to the PersonalAccessToken entity was cleared. -func (m *EventMutation) PersonalAccessTokenCleared() bool { - return m.clearedpersonal_access_token -} +// entitlementplanhistoryOption allows management of the mutation configuration using functional options. +type entitlementplanhistoryOption func(*EntitlementPlanHistoryMutation) -// RemovePersonalAccessTokenIDs removes the "personal_access_token" edge to the PersonalAccessToken entity by IDs. -func (m *EventMutation) RemovePersonalAccessTokenIDs(ids ...string) { - if m.removedpersonal_access_token == nil { - m.removedpersonal_access_token = make(map[string]struct{}) +// newEntitlementPlanHistoryMutation creates new mutation for the EntitlementPlanHistory entity. +func newEntitlementPlanHistoryMutation(c config, op Op, opts ...entitlementplanhistoryOption) *EntitlementPlanHistoryMutation { + m := &EntitlementPlanHistoryMutation{ + config: c, + op: op, + typ: TypeEntitlementPlanHistory, + clearedFields: make(map[string]struct{}), } - for i := range ids { - delete(m.personal_access_token, ids[i]) - m.removedpersonal_access_token[ids[i]] = struct{}{} + for _, opt := range opts { + opt(m) } + return m } -// RemovedPersonalAccessToken returns the removed IDs of the "personal_access_token" edge to the PersonalAccessToken entity. -func (m *EventMutation) RemovedPersonalAccessTokenIDs() (ids []string) { - for id := range m.removedpersonal_access_token { - ids = append(ids, id) +// withEntitlementPlanHistoryID sets the ID field of the mutation. +func withEntitlementPlanHistoryID(id string) entitlementplanhistoryOption { + return func(m *EntitlementPlanHistoryMutation) { + var ( + err error + once sync.Once + value *EntitlementPlanHistory + ) + m.oldValue = func(ctx context.Context) (*EntitlementPlanHistory, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().EntitlementPlanHistory.Get(ctx, id) + } + }) + return value, err + } + m.id = &id } - return } -// PersonalAccessTokenIDs returns the "personal_access_token" edge IDs in the mutation. -func (m *EventMutation) PersonalAccessTokenIDs() (ids []string) { - for id := range m.personal_access_token { - ids = append(ids, id) +// withEntitlementPlanHistory sets the old EntitlementPlanHistory of the mutation. +func withEntitlementPlanHistory(node *EntitlementPlanHistory) entitlementplanhistoryOption { + return func(m *EntitlementPlanHistoryMutation) { + m.oldValue = func(context.Context) (*EntitlementPlanHistory, error) { + return node, nil + } + m.id = &node.ID } - return } -// ResetPersonalAccessToken resets all changes to the "personal_access_token" edge. -func (m *EventMutation) ResetPersonalAccessToken() { - m.personal_access_token = nil - m.clearedpersonal_access_token = false - m.removedpersonal_access_token = nil +// 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 EntitlementPlanHistoryMutation) Client() *Client { + client := &Client{config: m.config} + client.init() + return client } -// AddOauth2tokenIDs adds the "oauth2token" edge to the OhAuthTooToken entity by ids. -func (m *EventMutation) AddOauth2tokenIDs(ids ...string) { - if m.oauth2token == nil { - m.oauth2token = make(map[string]struct{}) - } - for i := range ids { - m.oauth2token[ids[i]] = struct{}{} +// Tx returns an `ent.Tx` for mutations that were executed in transactions; +// it returns an error otherwise. +func (m EntitlementPlanHistoryMutation) 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 } -// ClearOauth2token clears the "oauth2token" edge to the OhAuthTooToken entity. -func (m *EventMutation) ClearOauth2token() { - m.clearedoauth2token = true -} - -// Oauth2tokenCleared reports if the "oauth2token" edge to the OhAuthTooToken entity was cleared. -func (m *EventMutation) Oauth2tokenCleared() bool { - return m.clearedoauth2token +// SetID sets the value of the id field. Note that this +// operation is only accepted on creation of EntitlementPlanHistory entities. +func (m *EntitlementPlanHistoryMutation) SetID(id string) { + m.id = &id } -// RemoveOauth2tokenIDs removes the "oauth2token" edge to the OhAuthTooToken entity by IDs. -func (m *EventMutation) RemoveOauth2tokenIDs(ids ...string) { - if m.removedoauth2token == nil { - m.removedoauth2token = make(map[string]struct{}) - } - for i := range ids { - delete(m.oauth2token, ids[i]) - m.removedoauth2token[ids[i]] = struct{}{} +// 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 *EntitlementPlanHistoryMutation) ID() (id string, exists bool) { + if m.id == nil { + return } + return *m.id, true } -// RemovedOauth2token returns the removed IDs of the "oauth2token" edge to the OhAuthTooToken entity. -func (m *EventMutation) RemovedOauth2tokenIDs() (ids []string) { - for id := range m.removedoauth2token { - ids = append(ids, id) +// 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 *EntitlementPlanHistoryMutation) 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().EntitlementPlanHistory.Query().Where(m.predicates...).IDs(ctx) + default: + return nil, fmt.Errorf("IDs is not allowed on %s operations", m.op) } - return } -// Oauth2tokenIDs returns the "oauth2token" edge IDs in the mutation. -func (m *EventMutation) Oauth2tokenIDs() (ids []string) { - for id := range m.oauth2token { - ids = append(ids, id) - } - return +// SetHistoryTime sets the "history_time" field. +func (m *EntitlementPlanHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t } -// ResetOauth2token resets all changes to the "oauth2token" edge. -func (m *EventMutation) ResetOauth2token() { - m.oauth2token = nil - m.clearedoauth2token = false - m.removedoauth2token = nil +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *EntitlementPlanHistoryMutation) HistoryTime() (r time.Time, exists bool) { + v := m.history_time + if v == nil { + return + } + return *v, true } -// AddHushIDs adds the "hush" edge to the Hush entity by ids. -func (m *EventMutation) AddHushIDs(ids ...string) { - if m.hush == nil { - m.hush = make(map[string]struct{}) +// OldHistoryTime returns the old "history_time" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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") } - for i := range ids { - m.hush[ids[i]] = struct{}{} + 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 } -// ClearHush clears the "hush" edge to the Hush entity. -func (m *EventMutation) ClearHush() { - m.clearedhush = true +// ResetHistoryTime resets all changes to the "history_time" field. +func (m *EntitlementPlanHistoryMutation) ResetHistoryTime() { + m.history_time = nil } -// HushCleared reports if the "hush" edge to the Hush entity was cleared. -func (m *EventMutation) HushCleared() bool { - return m.clearedhush +// SetRef sets the "ref" field. +func (m *EntitlementPlanHistoryMutation) SetRef(s string) { + m.ref = &s } -// RemoveHushIDs removes the "hush" edge to the Hush entity by IDs. -func (m *EventMutation) RemoveHushIDs(ids ...string) { - if m.removedhush == nil { - m.removedhush = make(map[string]struct{}) - } - for i := range ids { - delete(m.hush, ids[i]) - m.removedhush[ids[i]] = struct{}{} +// Ref returns the value of the "ref" field in the mutation. +func (m *EntitlementPlanHistoryMutation) Ref() (r string, exists bool) { + v := m.ref + if v == nil { + return } + return *v, true } -// RemovedHush returns the removed IDs of the "hush" edge to the Hush entity. -func (m *EventMutation) RemovedHushIDs() (ids []string) { - for id := range m.removedhush { - ids = append(ids, id) +// OldRef returns the old "ref" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) OldRef(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldRef is only allowed on UpdateOne operations") } - return + 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 } -// HushIDs returns the "hush" edge IDs in the mutation. -func (m *EventMutation) HushIDs() (ids []string) { - for id := range m.hush { - ids = append(ids, id) - } - return +// ClearRef clears the value of the "ref" field. +func (m *EntitlementPlanHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[entitlementplanhistory.FieldRef] = struct{}{} } -// ResetHush resets all changes to the "hush" edge. -func (m *EventMutation) ResetHush() { - m.hush = nil - m.clearedhush = false - m.removedhush = nil +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *EntitlementPlanHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[entitlementplanhistory.FieldRef] + return ok } -// AddOrgmembershipIDs adds the "orgmembership" edge to the OrgMembership entity by ids. -func (m *EventMutation) AddOrgmembershipIDs(ids ...string) { - if m.orgmembership == nil { - m.orgmembership = make(map[string]struct{}) - } - for i := range ids { - m.orgmembership[ids[i]] = struct{}{} - } +// ResetRef resets all changes to the "ref" field. +func (m *EntitlementPlanHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, entitlementplanhistory.FieldRef) } -// ClearOrgmembership clears the "orgmembership" edge to the OrgMembership entity. -func (m *EventMutation) ClearOrgmembership() { - m.clearedorgmembership = true +// SetOperation sets the "operation" field. +func (m *EntitlementPlanHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht } -// OrgmembershipCleared reports if the "orgmembership" edge to the OrgMembership entity was cleared. -func (m *EventMutation) OrgmembershipCleared() bool { - return m.clearedorgmembership +// Operation returns the value of the "operation" field in the mutation. +func (m *EntitlementPlanHistoryMutation) Operation() (r history.OpType, exists bool) { + v := m.operation + if v == nil { + return + } + return *v, true } -// RemoveOrgmembershipIDs removes the "orgmembership" edge to the OrgMembership entity by IDs. -func (m *EventMutation) RemoveOrgmembershipIDs(ids ...string) { - if m.removedorgmembership == nil { - m.removedorgmembership = make(map[string]struct{}) +// OldOperation returns the old "operation" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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") } - for i := range ids { - delete(m.orgmembership, ids[i]) - m.removedorgmembership[ids[i]] = struct{}{} + 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 } -// RemovedOrgmembership returns the removed IDs of the "orgmembership" edge to the OrgMembership entity. -func (m *EventMutation) RemovedOrgmembershipIDs() (ids []string) { - for id := range m.removedorgmembership { - ids = append(ids, id) - } - return +// ResetOperation resets all changes to the "operation" field. +func (m *EntitlementPlanHistoryMutation) ResetOperation() { + m.operation = nil } -// OrgmembershipIDs returns the "orgmembership" edge IDs in the mutation. -func (m *EventMutation) OrgmembershipIDs() (ids []string) { - for id := range m.orgmembership { - ids = append(ids, id) - } - return +// SetCreatedAt sets the "created_at" field. +func (m *EntitlementPlanHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t } -// ResetOrgmembership resets all changes to the "orgmembership" edge. -func (m *EventMutation) ResetOrgmembership() { - m.orgmembership = nil - m.clearedorgmembership = false - m.removedorgmembership = nil +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *EntitlementPlanHistoryMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at + if v == nil { + return + } + return *v, true } -// AddGroupmembershipIDs adds the "groupmembership" edge to the GroupMembership entity by ids. -func (m *EventMutation) AddGroupmembershipIDs(ids ...string) { - if m.groupmembership == nil { - m.groupmembership = make(map[string]struct{}) +// OldCreatedAt returns the old "created_at" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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") } - for i := range ids { - m.groupmembership[ids[i]] = struct{}{} + 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 } -// ClearGroupmembership clears the "groupmembership" edge to the GroupMembership entity. -func (m *EventMutation) ClearGroupmembership() { - m.clearedgroupmembership = true +// ClearCreatedAt clears the value of the "created_at" field. +func (m *EntitlementPlanHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[entitlementplanhistory.FieldCreatedAt] = struct{}{} } -// GroupmembershipCleared reports if the "groupmembership" edge to the GroupMembership entity was cleared. -func (m *EventMutation) GroupmembershipCleared() bool { - return m.clearedgroupmembership +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *EntitlementPlanHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[entitlementplanhistory.FieldCreatedAt] + return ok } -// RemoveGroupmembershipIDs removes the "groupmembership" edge to the GroupMembership entity by IDs. -func (m *EventMutation) RemoveGroupmembershipIDs(ids ...string) { - if m.removedgroupmembership == nil { - m.removedgroupmembership = make(map[string]struct{}) - } - for i := range ids { - delete(m.groupmembership, ids[i]) - m.removedgroupmembership[ids[i]] = struct{}{} - } +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *EntitlementPlanHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, entitlementplanhistory.FieldCreatedAt) } -// RemovedGroupmembership returns the removed IDs of the "groupmembership" edge to the GroupMembership entity. -func (m *EventMutation) RemovedGroupmembershipIDs() (ids []string) { - for id := range m.removedgroupmembership { - ids = append(ids, id) - } - return +// SetUpdatedAt sets the "updated_at" field. +func (m *EntitlementPlanHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t } -// GroupmembershipIDs returns the "groupmembership" edge IDs in the mutation. -func (m *EventMutation) GroupmembershipIDs() (ids []string) { - for id := range m.groupmembership { - ids = append(ids, id) +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *EntitlementPlanHistoryMutation) UpdatedAt() (r time.Time, exists bool) { + v := m.updated_at + if v == nil { + return } - return -} - -// ResetGroupmembership resets all changes to the "groupmembership" edge. -func (m *EventMutation) ResetGroupmembership() { - m.groupmembership = nil - m.clearedgroupmembership = false - m.removedgroupmembership = nil + return *v, true } -// AddEntitlementIDs adds the "entitlement" edge to the Entitlement entity by ids. -func (m *EventMutation) AddEntitlementIDs(ids ...string) { - if m.entitlement == nil { - m.entitlement = make(map[string]struct{}) +// OldUpdatedAt returns the old "updated_at" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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") } - for i := range ids { - m.entitlement[ids[i]] = struct{}{} + 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 } -// ClearEntitlement clears the "entitlement" edge to the Entitlement entity. -func (m *EventMutation) ClearEntitlement() { - m.clearedentitlement = true +// ClearUpdatedAt clears the value of the "updated_at" field. +func (m *EntitlementPlanHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[entitlementplanhistory.FieldUpdatedAt] = struct{}{} } -// EntitlementCleared reports if the "entitlement" edge to the Entitlement entity was cleared. -func (m *EventMutation) EntitlementCleared() bool { - return m.clearedentitlement +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *EntitlementPlanHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[entitlementplanhistory.FieldUpdatedAt] + return ok } -// RemoveEntitlementIDs removes the "entitlement" edge to the Entitlement entity by IDs. -func (m *EventMutation) RemoveEntitlementIDs(ids ...string) { - if m.removedentitlement == nil { - m.removedentitlement = make(map[string]struct{}) - } - for i := range ids { - delete(m.entitlement, ids[i]) - m.removedentitlement[ids[i]] = struct{}{} - } +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *EntitlementPlanHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, entitlementplanhistory.FieldUpdatedAt) } -// RemovedEntitlement returns the removed IDs of the "entitlement" edge to the Entitlement entity. -func (m *EventMutation) RemovedEntitlementIDs() (ids []string) { - for id := range m.removedentitlement { - ids = append(ids, id) +// SetCreatedBy sets the "created_by" field. +func (m *EntitlementPlanHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *EntitlementPlanHistoryMutation) CreatedBy() (r string, exists bool) { + v := m.created_by + if v == nil { + return } - return + return *v, true } -// EntitlementIDs returns the "entitlement" edge IDs in the mutation. -func (m *EventMutation) EntitlementIDs() (ids []string) { - for id := range m.entitlement { - ids = append(ids, id) +// OldCreatedBy returns the old "created_by" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } - return + 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 } -// ResetEntitlement resets all changes to the "entitlement" edge. -func (m *EventMutation) ResetEntitlement() { - m.entitlement = nil - m.clearedentitlement = false - m.removedentitlement = nil +// ClearCreatedBy clears the value of the "created_by" field. +func (m *EntitlementPlanHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[entitlementplanhistory.FieldCreatedBy] = struct{}{} } -// AddWebhookIDs adds the "webhook" edge to the Webhook entity by ids. -func (m *EventMutation) AddWebhookIDs(ids ...string) { - if m.webhook == nil { - m.webhook = make(map[string]struct{}) - } - for i := range ids { - m.webhook[ids[i]] = struct{}{} - } +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *EntitlementPlanHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[entitlementplanhistory.FieldCreatedBy] + return ok } -// ClearWebhook clears the "webhook" edge to the Webhook entity. -func (m *EventMutation) ClearWebhook() { - m.clearedwebhook = true +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *EntitlementPlanHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, entitlementplanhistory.FieldCreatedBy) } -// WebhookCleared reports if the "webhook" edge to the Webhook entity was cleared. -func (m *EventMutation) WebhookCleared() bool { - return m.clearedwebhook +// SetUpdatedBy sets the "updated_by" field. +func (m *EntitlementPlanHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s } -// RemoveWebhookIDs removes the "webhook" edge to the Webhook entity by IDs. -func (m *EventMutation) RemoveWebhookIDs(ids ...string) { - if m.removedwebhook == nil { - m.removedwebhook = make(map[string]struct{}) - } - for i := range ids { - delete(m.webhook, ids[i]) - m.removedwebhook[ids[i]] = struct{}{} +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *EntitlementPlanHistoryMutation) UpdatedBy() (r string, exists bool) { + v := m.updated_by + if v == nil { + return } + return *v, true } -// RemovedWebhook returns the removed IDs of the "webhook" edge to the Webhook entity. -func (m *EventMutation) RemovedWebhookIDs() (ids []string) { - for id := range m.removedwebhook { - ids = append(ids, id) +// OldUpdatedBy returns the old "updated_by" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } - return + 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 } -// WebhookIDs returns the "webhook" edge IDs in the mutation. -func (m *EventMutation) WebhookIDs() (ids []string) { - for id := range m.webhook { - ids = append(ids, id) - } - return +// ClearUpdatedBy clears the value of the "updated_by" field. +func (m *EntitlementPlanHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[entitlementplanhistory.FieldUpdatedBy] = struct{}{} } -// ResetWebhook resets all changes to the "webhook" edge. -func (m *EventMutation) ResetWebhook() { - m.webhook = nil - m.clearedwebhook = false - m.removedwebhook = nil +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *EntitlementPlanHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[entitlementplanhistory.FieldUpdatedBy] + return ok } -// AddSubscriberIDs adds the "subscriber" edge to the Subscriber entity by ids. -func (m *EventMutation) AddSubscriberIDs(ids ...string) { - if m.subscriber == nil { - m.subscriber = make(map[string]struct{}) - } - for i := range ids { - m.subscriber[ids[i]] = struct{}{} - } +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *EntitlementPlanHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, entitlementplanhistory.FieldUpdatedBy) } -// ClearSubscriber clears the "subscriber" edge to the Subscriber entity. -func (m *EventMutation) ClearSubscriber() { - m.clearedsubscriber = true +// SetMappingID sets the "mapping_id" field. +func (m *EntitlementPlanHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s } -// SubscriberCleared reports if the "subscriber" edge to the Subscriber entity was cleared. -func (m *EventMutation) SubscriberCleared() bool { - return m.clearedsubscriber +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *EntitlementPlanHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true } -// RemoveSubscriberIDs removes the "subscriber" edge to the Subscriber entity by IDs. -func (m *EventMutation) RemoveSubscriberIDs(ids ...string) { - if m.removedsubscriber == nil { - m.removedsubscriber = make(map[string]struct{}) +// OldMappingID returns the old "mapping_id" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } - for i := range ids { - delete(m.subscriber, ids[i]) - m.removedsubscriber[ids[i]] = struct{}{} + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) } + return oldValue.MappingID, nil } -// RemovedSubscriber returns the removed IDs of the "subscriber" edge to the Subscriber entity. -func (m *EventMutation) RemovedSubscriberIDs() (ids []string) { - for id := range m.removedsubscriber { - ids = append(ids, id) - } - return +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *EntitlementPlanHistoryMutation) ResetMappingID() { + m.mapping_id = nil } -// SubscriberIDs returns the "subscriber" edge IDs in the mutation. -func (m *EventMutation) SubscriberIDs() (ids []string) { - for id := range m.subscriber { - ids = append(ids, id) - } - return +// SetDeletedAt sets the "deleted_at" field. +func (m *EntitlementPlanHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t } -// ResetSubscriber resets all changes to the "subscriber" edge. -func (m *EventMutation) ResetSubscriber() { - m.subscriber = nil - m.clearedsubscriber = false - m.removedsubscriber = nil +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *EntitlementPlanHistoryMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at + if v == nil { + return + } + return *v, true } -// AddFileIDs adds the "file" edge to the File entity by ids. -func (m *EventMutation) AddFileIDs(ids ...string) { - if m.file == nil { - m.file = make(map[string]struct{}) +// OldDeletedAt returns the old "deleted_at" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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") } - for i := range ids { - m.file[ids[i]] = struct{}{} + 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 } -// ClearFile clears the "file" edge to the File entity. -func (m *EventMutation) ClearFile() { - m.clearedfile = true +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *EntitlementPlanHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[entitlementplanhistory.FieldDeletedAt] = struct{}{} } -// FileCleared reports if the "file" edge to the File entity was cleared. -func (m *EventMutation) FileCleared() bool { - return m.clearedfile +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *EntitlementPlanHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[entitlementplanhistory.FieldDeletedAt] + return ok } -// RemoveFileIDs removes the "file" edge to the File entity by IDs. -func (m *EventMutation) RemoveFileIDs(ids ...string) { - if m.removedfile == nil { - m.removedfile = make(map[string]struct{}) - } - for i := range ids { - delete(m.file, ids[i]) - m.removedfile[ids[i]] = struct{}{} - } +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *EntitlementPlanHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, entitlementplanhistory.FieldDeletedAt) } -// RemovedFile returns the removed IDs of the "file" edge to the File entity. -func (m *EventMutation) RemovedFileIDs() (ids []string) { - for id := range m.removedfile { - ids = append(ids, id) - } - return +// SetDeletedBy sets the "deleted_by" field. +func (m *EntitlementPlanHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s } -// FileIDs returns the "file" edge IDs in the mutation. -func (m *EventMutation) FileIDs() (ids []string) { - for id := range m.file { - ids = append(ids, id) +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *EntitlementPlanHistoryMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by + if v == nil { + return } - return + return *v, true } -// ResetFile resets all changes to the "file" edge. -func (m *EventMutation) ResetFile() { - m.file = nil - m.clearedfile = false - m.removedfile = nil +// OldDeletedBy returns the old "deleted_by" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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 } -// Where appends a list predicates to the EventMutation builder. -func (m *EventMutation) Where(ps ...predicate.Event) { - m.predicates = append(m.predicates, ps...) +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *EntitlementPlanHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[entitlementplanhistory.FieldDeletedBy] = struct{}{} } -// WhereP appends storage-level predicates to the EventMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EventMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.Event, len(ps)) - for i := range ps { - p[i] = ps[i] - } - m.Where(p...) +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *EntitlementPlanHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[entitlementplanhistory.FieldDeletedBy] + return ok } -// Op returns the operation name. -func (m *EventMutation) Op() Op { - return m.op +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *EntitlementPlanHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, entitlementplanhistory.FieldDeletedBy) } -// SetOp allows setting the mutation operation. -func (m *EventMutation) SetOp(op Op) { - m.op = op +// SetTags sets the "tags" field. +func (m *EntitlementPlanHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// Type returns the node type of this mutation (Event). -func (m *EventMutation) Type() string { - return m.typ +// Tags returns the value of the "tags" field in the mutation. +func (m *EntitlementPlanHistoryMutation) Tags() (r []string, exists bool) { + v := m.tags + if v == nil { + return + } + return *v, true } -// 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 *EventMutation) Fields() []string { - fields := make([]string, 0, 10) - if m.created_at != nil { - fields = append(fields, event.FieldCreatedAt) - } - if m.updated_at != nil { - fields = append(fields, event.FieldUpdatedAt) - } - if m.created_by != nil { - fields = append(fields, event.FieldCreatedBy) +// OldTags returns the old "tags" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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.updated_by != nil { - fields = append(fields, event.FieldUpdatedBy) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldTags requires an ID field in the mutation") } - if m.mapping_id != nil { - fields = append(fields, event.FieldMappingID) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldTags: %w", err) } - if m.tags != nil { - fields = append(fields, event.FieldTags) + return oldValue.Tags, nil +} + +// AppendTags adds s to the "tags" field. +func (m *EntitlementPlanHistoryMutation) 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 *EntitlementPlanHistoryMutation) AppendedTags() ([]string, bool) { + if len(m.appendtags) == 0 { + return nil, false } - if m.event_id != nil { - fields = append(fields, event.FieldEventID) + return m.appendtags, true +} + +// ClearTags clears the value of the "tags" field. +func (m *EntitlementPlanHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[entitlementplanhistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *EntitlementPlanHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[entitlementplanhistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *EntitlementPlanHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, entitlementplanhistory.FieldTags) +} + +// SetOwnerID sets the "owner_id" field. +func (m *EntitlementPlanHistoryMutation) SetOwnerID(s string) { + m.owner_id = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *EntitlementPlanHistoryMutation) OwnerID() (r string, exists bool) { + v := m.owner_id + if v == nil { + return } - if m.correlation_id != nil { - fields = append(fields, event.FieldCorrelationID) + return *v, true +} + +// OldOwnerID returns the old "owner_id" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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.event_type != nil { - fields = append(fields, event.FieldEventType) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldOwnerID requires an ID field in the mutation") } - if m.metadata != nil { - fields = append(fields, event.FieldMetadata) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) } - return fields + return oldValue.OwnerID, nil } -// 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 *EventMutation) Field(name string) (ent.Value, bool) { - switch name { - case event.FieldCreatedAt: - return m.CreatedAt() - case event.FieldUpdatedAt: - return m.UpdatedAt() - case event.FieldCreatedBy: - return m.CreatedBy() - case event.FieldUpdatedBy: - return m.UpdatedBy() - case event.FieldMappingID: - return m.MappingID() - case event.FieldTags: - return m.Tags() - case event.FieldEventID: - return m.EventID() - case event.FieldCorrelationID: - return m.CorrelationID() - case event.FieldEventType: - return m.EventType() - case event.FieldMetadata: - return m.Metadata() +// ClearOwnerID clears the value of the "owner_id" field. +func (m *EntitlementPlanHistoryMutation) ClearOwnerID() { + m.owner_id = nil + m.clearedFields[entitlementplanhistory.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *EntitlementPlanHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[entitlementplanhistory.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *EntitlementPlanHistoryMutation) ResetOwnerID() { + m.owner_id = nil + delete(m.clearedFields, entitlementplanhistory.FieldOwnerID) +} + +// SetDisplayName sets the "display_name" field. +func (m *EntitlementPlanHistoryMutation) SetDisplayName(s string) { + m.display_name = &s +} + +// DisplayName returns the value of the "display_name" field in the mutation. +func (m *EntitlementPlanHistoryMutation) DisplayName() (r string, exists bool) { + v := m.display_name + if v == nil { + return } - return nil, false + return *v, true } -// 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 *EventMutation) OldField(ctx context.Context, name string) (ent.Value, error) { - switch name { - case event.FieldCreatedAt: - return m.OldCreatedAt(ctx) - case event.FieldUpdatedAt: - return m.OldUpdatedAt(ctx) - case event.FieldCreatedBy: - return m.OldCreatedBy(ctx) - case event.FieldUpdatedBy: - return m.OldUpdatedBy(ctx) - case event.FieldMappingID: - return m.OldMappingID(ctx) - case event.FieldTags: - return m.OldTags(ctx) - case event.FieldEventID: - return m.OldEventID(ctx) - case event.FieldCorrelationID: - return m.OldCorrelationID(ctx) - case event.FieldEventType: - return m.OldEventType(ctx) - case event.FieldMetadata: - return m.OldMetadata(ctx) +// OldDisplayName returns the old "display_name" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) OldDisplayName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") } - return nil, fmt.Errorf("unknown Event field %s", name) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDisplayName requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) + } + return oldValue.DisplayName, nil } -// 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 *EventMutation) SetField(name string, value ent.Value) error { - switch name { - case event.FieldCreatedAt: +// ClearDisplayName clears the value of the "display_name" field. +func (m *EntitlementPlanHistoryMutation) ClearDisplayName() { + m.display_name = nil + m.clearedFields[entitlementplanhistory.FieldDisplayName] = struct{}{} +} + +// DisplayNameCleared returns if the "display_name" field was cleared in this mutation. +func (m *EntitlementPlanHistoryMutation) DisplayNameCleared() bool { + _, ok := m.clearedFields[entitlementplanhistory.FieldDisplayName] + return ok +} + +// ResetDisplayName resets all changes to the "display_name" field. +func (m *EntitlementPlanHistoryMutation) ResetDisplayName() { + m.display_name = nil + delete(m.clearedFields, entitlementplanhistory.FieldDisplayName) +} + +// SetName sets the "name" field. +func (m *EntitlementPlanHistoryMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *EntitlementPlanHistoryMutation) 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 EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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 *EntitlementPlanHistoryMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *EntitlementPlanHistoryMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *EntitlementPlanHistoryMutation) 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 EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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 *EntitlementPlanHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[entitlementplanhistory.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *EntitlementPlanHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[entitlementplanhistory.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *EntitlementPlanHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, entitlementplanhistory.FieldDescription) +} + +// SetVersion sets the "version" field. +func (m *EntitlementPlanHistoryMutation) SetVersion(s string) { + m.version = &s +} + +// Version returns the value of the "version" field in the mutation. +func (m *EntitlementPlanHistoryMutation) Version() (r string, exists bool) { + v := m.version + if v == nil { + return + } + return *v, true +} + +// OldVersion returns the old "version" field's value of the EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) OldVersion(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldVersion is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldVersion requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldVersion: %w", err) + } + return oldValue.Version, nil +} + +// ResetVersion resets all changes to the "version" field. +func (m *EntitlementPlanHistoryMutation) ResetVersion() { + m.version = nil +} + +// SetMetadata sets the "metadata" field. +func (m *EntitlementPlanHistoryMutation) SetMetadata(value map[string]interface{}) { + m.metadata = &value +} + +// Metadata returns the value of the "metadata" field in the mutation. +func (m *EntitlementPlanHistoryMutation) 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 EntitlementPlanHistory entity. +// If the EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) 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 *EntitlementPlanHistoryMutation) ClearMetadata() { + m.metadata = nil + m.clearedFields[entitlementplanhistory.FieldMetadata] = struct{}{} +} + +// MetadataCleared returns if the "metadata" field was cleared in this mutation. +func (m *EntitlementPlanHistoryMutation) MetadataCleared() bool { + _, ok := m.clearedFields[entitlementplanhistory.FieldMetadata] + return ok +} + +// ResetMetadata resets all changes to the "metadata" field. +func (m *EntitlementPlanHistoryMutation) ResetMetadata() { + m.metadata = nil + delete(m.clearedFields, entitlementplanhistory.FieldMetadata) +} + +// Where appends a list predicates to the EntitlementPlanHistoryMutation builder. +func (m *EntitlementPlanHistoryMutation) Where(ps ...predicate.EntitlementPlanHistory) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the EntitlementPlanHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *EntitlementPlanHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.EntitlementPlanHistory, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *EntitlementPlanHistoryMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *EntitlementPlanHistoryMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (EntitlementPlanHistory). +func (m *EntitlementPlanHistoryMutation) 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 *EntitlementPlanHistoryMutation) Fields() []string { + fields := make([]string, 0, 17) + if m.history_time != nil { + fields = append(fields, entitlementplanhistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, entitlementplanhistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, entitlementplanhistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, entitlementplanhistory.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, entitlementplanhistory.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, entitlementplanhistory.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, entitlementplanhistory.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, entitlementplanhistory.FieldMappingID) + } + if m.deleted_at != nil { + fields = append(fields, entitlementplanhistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, entitlementplanhistory.FieldDeletedBy) + } + if m.tags != nil { + fields = append(fields, entitlementplanhistory.FieldTags) + } + if m.owner_id != nil { + fields = append(fields, entitlementplanhistory.FieldOwnerID) + } + if m.display_name != nil { + fields = append(fields, entitlementplanhistory.FieldDisplayName) + } + if m.name != nil { + fields = append(fields, entitlementplanhistory.FieldName) + } + if m.description != nil { + fields = append(fields, entitlementplanhistory.FieldDescription) + } + if m.version != nil { + fields = append(fields, entitlementplanhistory.FieldVersion) + } + if m.metadata != nil { + fields = append(fields, entitlementplanhistory.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 *EntitlementPlanHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case entitlementplanhistory.FieldHistoryTime: + return m.HistoryTime() + case entitlementplanhistory.FieldRef: + return m.Ref() + case entitlementplanhistory.FieldOperation: + return m.Operation() + case entitlementplanhistory.FieldCreatedAt: + return m.CreatedAt() + case entitlementplanhistory.FieldUpdatedAt: + return m.UpdatedAt() + case entitlementplanhistory.FieldCreatedBy: + return m.CreatedBy() + case entitlementplanhistory.FieldUpdatedBy: + return m.UpdatedBy() + case entitlementplanhistory.FieldMappingID: + return m.MappingID() + case entitlementplanhistory.FieldDeletedAt: + return m.DeletedAt() + case entitlementplanhistory.FieldDeletedBy: + return m.DeletedBy() + case entitlementplanhistory.FieldTags: + return m.Tags() + case entitlementplanhistory.FieldOwnerID: + return m.OwnerID() + case entitlementplanhistory.FieldDisplayName: + return m.DisplayName() + case entitlementplanhistory.FieldName: + return m.Name() + case entitlementplanhistory.FieldDescription: + return m.Description() + case entitlementplanhistory.FieldVersion: + return m.Version() + case entitlementplanhistory.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 *EntitlementPlanHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case entitlementplanhistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case entitlementplanhistory.FieldRef: + return m.OldRef(ctx) + case entitlementplanhistory.FieldOperation: + return m.OldOperation(ctx) + case entitlementplanhistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case entitlementplanhistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case entitlementplanhistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case entitlementplanhistory.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case entitlementplanhistory.FieldMappingID: + return m.OldMappingID(ctx) + case entitlementplanhistory.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case entitlementplanhistory.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case entitlementplanhistory.FieldTags: + return m.OldTags(ctx) + case entitlementplanhistory.FieldOwnerID: + return m.OldOwnerID(ctx) + case entitlementplanhistory.FieldDisplayName: + return m.OldDisplayName(ctx) + case entitlementplanhistory.FieldName: + return m.OldName(ctx) + case entitlementplanhistory.FieldDescription: + return m.OldDescription(ctx) + case entitlementplanhistory.FieldVersion: + return m.OldVersion(ctx) + case entitlementplanhistory.FieldMetadata: + return m.OldMetadata(ctx) + } + return nil, fmt.Errorf("unknown EntitlementPlanHistory 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 *EntitlementPlanHistoryMutation) SetField(name string, value ent.Value) error { + switch name { + case entitlementplanhistory.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 entitlementplanhistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case entitlementplanhistory.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 entitlementplanhistory.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 event.FieldUpdatedAt: + case entitlementplanhistory.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 event.FieldCreatedBy: + case entitlementplanhistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case event.FieldUpdatedBy: + case entitlementplanhistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case event.FieldMappingID: + case entitlementplanhistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case event.FieldTags: + case entitlementplanhistory.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 entitlementplanhistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case entitlementplanhistory.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case event.FieldEventID: + case entitlementplanhistory.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetEventID(v) + m.SetOwnerID(v) return nil - case event.FieldCorrelationID: + case entitlementplanhistory.FieldDisplayName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCorrelationID(v) + m.SetDisplayName(v) return nil - case event.FieldEventType: + case entitlementplanhistory.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetEventType(v) + m.SetName(v) return nil - case event.FieldMetadata: + case entitlementplanhistory.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case entitlementplanhistory.FieldVersion: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetVersion(v) + return nil + case entitlementplanhistory.FieldMetadata: v, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) @@ -24774,676 +28620,286 @@ func (m *EventMutation) SetField(name string, value ent.Value) error { m.SetMetadata(v) return nil } - return fmt.Errorf("unknown Event field %s", name) + return fmt.Errorf("unknown EntitlementPlanHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *EventMutation) AddedFields() []string { +func (m *EntitlementPlanHistoryMutation) 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 *EventMutation) AddedField(name string) (ent.Value, bool) { +func (m *EntitlementPlanHistoryMutation) 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 *EventMutation) AddField(name string, value ent.Value) error { +func (m *EntitlementPlanHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown Event numeric field %s", name) + return fmt.Errorf("unknown EntitlementPlanHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *EventMutation) ClearedFields() []string { +func (m *EntitlementPlanHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(event.FieldCreatedAt) { - fields = append(fields, event.FieldCreatedAt) + if m.FieldCleared(entitlementplanhistory.FieldRef) { + fields = append(fields, entitlementplanhistory.FieldRef) } - if m.FieldCleared(event.FieldUpdatedAt) { - fields = append(fields, event.FieldUpdatedAt) + if m.FieldCleared(entitlementplanhistory.FieldCreatedAt) { + fields = append(fields, entitlementplanhistory.FieldCreatedAt) } - if m.FieldCleared(event.FieldCreatedBy) { - fields = append(fields, event.FieldCreatedBy) + if m.FieldCleared(entitlementplanhistory.FieldUpdatedAt) { + fields = append(fields, entitlementplanhistory.FieldUpdatedAt) } - if m.FieldCleared(event.FieldUpdatedBy) { - fields = append(fields, event.FieldUpdatedBy) + if m.FieldCleared(entitlementplanhistory.FieldCreatedBy) { + fields = append(fields, entitlementplanhistory.FieldCreatedBy) } - if m.FieldCleared(event.FieldTags) { - fields = append(fields, event.FieldTags) + if m.FieldCleared(entitlementplanhistory.FieldUpdatedBy) { + fields = append(fields, entitlementplanhistory.FieldUpdatedBy) } - if m.FieldCleared(event.FieldEventID) { - fields = append(fields, event.FieldEventID) + if m.FieldCleared(entitlementplanhistory.FieldDeletedAt) { + fields = append(fields, entitlementplanhistory.FieldDeletedAt) } - if m.FieldCleared(event.FieldCorrelationID) { - fields = append(fields, event.FieldCorrelationID) + if m.FieldCleared(entitlementplanhistory.FieldDeletedBy) { + fields = append(fields, entitlementplanhistory.FieldDeletedBy) } - if m.FieldCleared(event.FieldMetadata) { - fields = append(fields, event.FieldMetadata) + if m.FieldCleared(entitlementplanhistory.FieldTags) { + fields = append(fields, entitlementplanhistory.FieldTags) + } + if m.FieldCleared(entitlementplanhistory.FieldOwnerID) { + fields = append(fields, entitlementplanhistory.FieldOwnerID) + } + if m.FieldCleared(entitlementplanhistory.FieldDisplayName) { + fields = append(fields, entitlementplanhistory.FieldDisplayName) + } + if m.FieldCleared(entitlementplanhistory.FieldDescription) { + fields = append(fields, entitlementplanhistory.FieldDescription) + } + if m.FieldCleared(entitlementplanhistory.FieldMetadata) { + fields = append(fields, entitlementplanhistory.FieldMetadata) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *EventMutation) FieldCleared(name string) bool { +func (m *EntitlementPlanHistoryMutation) 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 *EventMutation) ClearField(name string) error { +func (m *EntitlementPlanHistoryMutation) ClearField(name string) error { switch name { - case event.FieldCreatedAt: + case entitlementplanhistory.FieldRef: + m.ClearRef() + return nil + case entitlementplanhistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case event.FieldUpdatedAt: + case entitlementplanhistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case event.FieldCreatedBy: + case entitlementplanhistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case event.FieldUpdatedBy: + case entitlementplanhistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case event.FieldTags: + case entitlementplanhistory.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case entitlementplanhistory.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case entitlementplanhistory.FieldTags: m.ClearTags() return nil - case event.FieldEventID: - m.ClearEventID() + case entitlementplanhistory.FieldOwnerID: + m.ClearOwnerID() return nil - case event.FieldCorrelationID: - m.ClearCorrelationID() + case entitlementplanhistory.FieldDisplayName: + m.ClearDisplayName() return nil - case event.FieldMetadata: + case entitlementplanhistory.FieldDescription: + m.ClearDescription() + return nil + case entitlementplanhistory.FieldMetadata: m.ClearMetadata() return nil } - return fmt.Errorf("unknown Event nullable field %s", name) + return fmt.Errorf("unknown EntitlementPlanHistory 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 *EventMutation) ResetField(name string) error { +func (m *EntitlementPlanHistoryMutation) ResetField(name string) error { switch name { - case event.FieldCreatedAt: + case entitlementplanhistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case entitlementplanhistory.FieldRef: + m.ResetRef() + return nil + case entitlementplanhistory.FieldOperation: + m.ResetOperation() + return nil + case entitlementplanhistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case event.FieldUpdatedAt: + case entitlementplanhistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case event.FieldCreatedBy: + case entitlementplanhistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case event.FieldUpdatedBy: + case entitlementplanhistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case event.FieldMappingID: + case entitlementplanhistory.FieldMappingID: m.ResetMappingID() return nil - case event.FieldTags: + case entitlementplanhistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case entitlementplanhistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case entitlementplanhistory.FieldTags: m.ResetTags() return nil - case event.FieldEventID: - m.ResetEventID() + case entitlementplanhistory.FieldOwnerID: + m.ResetOwnerID() return nil - case event.FieldCorrelationID: - m.ResetCorrelationID() + case entitlementplanhistory.FieldDisplayName: + m.ResetDisplayName() return nil - case event.FieldEventType: - m.ResetEventType() + case entitlementplanhistory.FieldName: + m.ResetName() return nil - case event.FieldMetadata: + case entitlementplanhistory.FieldDescription: + m.ResetDescription() + return nil + case entitlementplanhistory.FieldVersion: + m.ResetVersion() + return nil + case entitlementplanhistory.FieldMetadata: m.ResetMetadata() return nil } - return fmt.Errorf("unknown Event field %s", name) + return fmt.Errorf("unknown EntitlementPlanHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *EventMutation) AddedEdges() []string { - edges := make([]string, 0, 17) - if m.user != nil { - edges = append(edges, event.EdgeUser) - } - if m.group != nil { - edges = append(edges, event.EdgeGroup) - } - if m.integration != nil { - edges = append(edges, event.EdgeIntegration) - } - if m.organization != nil { - edges = append(edges, event.EdgeOrganization) - } - if m.invite != nil { - edges = append(edges, event.EdgeInvite) - } - if m.feature != nil { - edges = append(edges, event.EdgeFeature) - } - if m.entitlementplan != nil { - edges = append(edges, event.EdgeEntitlementplan) - } - if m.entitlementplanfeature != nil { - edges = append(edges, event.EdgeEntitlementplanfeature) - } - if m.personal_access_token != nil { - edges = append(edges, event.EdgePersonalAccessToken) - } - if m.oauth2token != nil { - edges = append(edges, event.EdgeOauth2token) - } - if m.hush != nil { - edges = append(edges, event.EdgeHush) - } - if m.orgmembership != nil { - edges = append(edges, event.EdgeOrgmembership) - } - if m.groupmembership != nil { - edges = append(edges, event.EdgeGroupmembership) - } - if m.entitlement != nil { - edges = append(edges, event.EdgeEntitlement) - } - if m.webhook != nil { - edges = append(edges, event.EdgeWebhook) - } - if m.subscriber != nil { - edges = append(edges, event.EdgeSubscriber) - } - if m.file != nil { - edges = append(edges, event.EdgeFile) - } +func (m *EntitlementPlanHistoryMutation) 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 *EventMutation) AddedIDs(name string) []ent.Value { - switch name { - case event.EdgeUser: - ids := make([]ent.Value, 0, len(m.user)) - for id := range m.user { - ids = append(ids, id) - } - return ids - case event.EdgeGroup: - ids := make([]ent.Value, 0, len(m.group)) - for id := range m.group { - ids = append(ids, id) - } - return ids - case event.EdgeIntegration: - ids := make([]ent.Value, 0, len(m.integration)) - for id := range m.integration { - ids = append(ids, id) - } - return ids - case event.EdgeOrganization: - ids := make([]ent.Value, 0, len(m.organization)) - for id := range m.organization { - ids = append(ids, id) - } - return ids - case event.EdgeInvite: - ids := make([]ent.Value, 0, len(m.invite)) - for id := range m.invite { - ids = append(ids, id) - } - return ids - case event.EdgeFeature: - ids := make([]ent.Value, 0, len(m.feature)) - for id := range m.feature { - ids = append(ids, id) - } - return ids - case event.EdgeEntitlementplan: - ids := make([]ent.Value, 0, len(m.entitlementplan)) - for id := range m.entitlementplan { - ids = append(ids, id) - } - return ids - case event.EdgeEntitlementplanfeature: - ids := make([]ent.Value, 0, len(m.entitlementplanfeature)) - for id := range m.entitlementplanfeature { - ids = append(ids, id) - } - return ids - case event.EdgePersonalAccessToken: - ids := make([]ent.Value, 0, len(m.personal_access_token)) - for id := range m.personal_access_token { - ids = append(ids, id) - } - return ids - case event.EdgeOauth2token: - ids := make([]ent.Value, 0, len(m.oauth2token)) - for id := range m.oauth2token { - ids = append(ids, id) - } - return ids - case event.EdgeHush: - ids := make([]ent.Value, 0, len(m.hush)) - for id := range m.hush { - ids = append(ids, id) - } - return ids - case event.EdgeOrgmembership: - ids := make([]ent.Value, 0, len(m.orgmembership)) - for id := range m.orgmembership { - ids = append(ids, id) - } - return ids - case event.EdgeGroupmembership: - ids := make([]ent.Value, 0, len(m.groupmembership)) - for id := range m.groupmembership { - ids = append(ids, id) - } - return ids - case event.EdgeEntitlement: - ids := make([]ent.Value, 0, len(m.entitlement)) - for id := range m.entitlement { - ids = append(ids, id) - } - return ids - case event.EdgeWebhook: - ids := make([]ent.Value, 0, len(m.webhook)) - for id := range m.webhook { - ids = append(ids, id) - } - return ids - case event.EdgeSubscriber: - ids := make([]ent.Value, 0, len(m.subscriber)) - for id := range m.subscriber { - ids = append(ids, id) - } - return ids - case event.EdgeFile: - ids := make([]ent.Value, 0, len(m.file)) - for id := range m.file { - ids = append(ids, id) - } - return ids - } +func (m *EntitlementPlanHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *EventMutation) RemovedEdges() []string { - edges := make([]string, 0, 17) - if m.removeduser != nil { - edges = append(edges, event.EdgeUser) - } - if m.removedgroup != nil { - edges = append(edges, event.EdgeGroup) - } - if m.removedintegration != nil { - edges = append(edges, event.EdgeIntegration) - } - if m.removedorganization != nil { - edges = append(edges, event.EdgeOrganization) - } - if m.removedinvite != nil { - edges = append(edges, event.EdgeInvite) - } - if m.removedfeature != nil { - edges = append(edges, event.EdgeFeature) - } - if m.removedentitlementplan != nil { - edges = append(edges, event.EdgeEntitlementplan) - } - if m.removedentitlementplanfeature != nil { - edges = append(edges, event.EdgeEntitlementplanfeature) - } - if m.removedpersonal_access_token != nil { - edges = append(edges, event.EdgePersonalAccessToken) - } - if m.removedoauth2token != nil { - edges = append(edges, event.EdgeOauth2token) - } - if m.removedhush != nil { - edges = append(edges, event.EdgeHush) - } - if m.removedorgmembership != nil { - edges = append(edges, event.EdgeOrgmembership) - } - if m.removedgroupmembership != nil { - edges = append(edges, event.EdgeGroupmembership) - } - if m.removedentitlement != nil { - edges = append(edges, event.EdgeEntitlement) - } - if m.removedwebhook != nil { - edges = append(edges, event.EdgeWebhook) - } - if m.removedsubscriber != nil { - edges = append(edges, event.EdgeSubscriber) - } - if m.removedfile != nil { - edges = append(edges, event.EdgeFile) - } +func (m *EntitlementPlanHistoryMutation) 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 *EventMutation) RemovedIDs(name string) []ent.Value { - switch name { - case event.EdgeUser: - ids := make([]ent.Value, 0, len(m.removeduser)) - for id := range m.removeduser { - ids = append(ids, id) - } - return ids - case event.EdgeGroup: - ids := make([]ent.Value, 0, len(m.removedgroup)) - for id := range m.removedgroup { - ids = append(ids, id) - } - return ids - case event.EdgeIntegration: - ids := make([]ent.Value, 0, len(m.removedintegration)) - for id := range m.removedintegration { - ids = append(ids, id) - } - return ids - case event.EdgeOrganization: - ids := make([]ent.Value, 0, len(m.removedorganization)) - for id := range m.removedorganization { - ids = append(ids, id) - } - return ids - case event.EdgeInvite: - ids := make([]ent.Value, 0, len(m.removedinvite)) - for id := range m.removedinvite { - ids = append(ids, id) - } - return ids - case event.EdgeFeature: - ids := make([]ent.Value, 0, len(m.removedfeature)) - for id := range m.removedfeature { - ids = append(ids, id) - } - return ids - case event.EdgeEntitlementplan: - ids := make([]ent.Value, 0, len(m.removedentitlementplan)) - for id := range m.removedentitlementplan { - ids = append(ids, id) - } - return ids - case event.EdgeEntitlementplanfeature: - ids := make([]ent.Value, 0, len(m.removedentitlementplanfeature)) - for id := range m.removedentitlementplanfeature { - ids = append(ids, id) - } - return ids - case event.EdgePersonalAccessToken: - ids := make([]ent.Value, 0, len(m.removedpersonal_access_token)) - for id := range m.removedpersonal_access_token { - ids = append(ids, id) - } - return ids - case event.EdgeOauth2token: - ids := make([]ent.Value, 0, len(m.removedoauth2token)) - for id := range m.removedoauth2token { - ids = append(ids, id) - } - return ids - case event.EdgeHush: - ids := make([]ent.Value, 0, len(m.removedhush)) - for id := range m.removedhush { - ids = append(ids, id) - } - return ids - case event.EdgeOrgmembership: - ids := make([]ent.Value, 0, len(m.removedorgmembership)) - for id := range m.removedorgmembership { - ids = append(ids, id) - } - return ids - case event.EdgeGroupmembership: - ids := make([]ent.Value, 0, len(m.removedgroupmembership)) - for id := range m.removedgroupmembership { - ids = append(ids, id) - } - return ids - case event.EdgeEntitlement: - ids := make([]ent.Value, 0, len(m.removedentitlement)) - for id := range m.removedentitlement { - ids = append(ids, id) - } - return ids - case event.EdgeWebhook: - ids := make([]ent.Value, 0, len(m.removedwebhook)) - for id := range m.removedwebhook { - ids = append(ids, id) - } - return ids - case event.EdgeSubscriber: - ids := make([]ent.Value, 0, len(m.removedsubscriber)) - for id := range m.removedsubscriber { - ids = append(ids, id) - } - return ids - case event.EdgeFile: - ids := make([]ent.Value, 0, len(m.removedfile)) - for id := range m.removedfile { - ids = append(ids, id) - } - return ids - } +func (m *EntitlementPlanHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EventMutation) ClearedEdges() []string { - edges := make([]string, 0, 17) - if m.cleareduser { - edges = append(edges, event.EdgeUser) - } - if m.clearedgroup { - edges = append(edges, event.EdgeGroup) - } - if m.clearedintegration { - edges = append(edges, event.EdgeIntegration) - } - if m.clearedorganization { - edges = append(edges, event.EdgeOrganization) - } - if m.clearedinvite { - edges = append(edges, event.EdgeInvite) - } - if m.clearedfeature { - edges = append(edges, event.EdgeFeature) - } - if m.clearedentitlementplan { - edges = append(edges, event.EdgeEntitlementplan) - } - if m.clearedentitlementplanfeature { - edges = append(edges, event.EdgeEntitlementplanfeature) - } - if m.clearedpersonal_access_token { - edges = append(edges, event.EdgePersonalAccessToken) - } - if m.clearedoauth2token { - edges = append(edges, event.EdgeOauth2token) - } - if m.clearedhush { - edges = append(edges, event.EdgeHush) - } - if m.clearedorgmembership { - edges = append(edges, event.EdgeOrgmembership) - } - if m.clearedgroupmembership { - edges = append(edges, event.EdgeGroupmembership) - } - if m.clearedentitlement { - edges = append(edges, event.EdgeEntitlement) - } - if m.clearedwebhook { - edges = append(edges, event.EdgeWebhook) - } - if m.clearedsubscriber { - edges = append(edges, event.EdgeSubscriber) - } - if m.clearedfile { - edges = append(edges, event.EdgeFile) - } +func (m *EntitlementPlanHistoryMutation) 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 *EventMutation) EdgeCleared(name string) bool { - switch name { - case event.EdgeUser: - return m.cleareduser - case event.EdgeGroup: - return m.clearedgroup - case event.EdgeIntegration: - return m.clearedintegration - case event.EdgeOrganization: - return m.clearedorganization - case event.EdgeInvite: - return m.clearedinvite - case event.EdgeFeature: - return m.clearedfeature - case event.EdgeEntitlementplan: - return m.clearedentitlementplan - case event.EdgeEntitlementplanfeature: - return m.clearedentitlementplanfeature - case event.EdgePersonalAccessToken: - return m.clearedpersonal_access_token - case event.EdgeOauth2token: - return m.clearedoauth2token - case event.EdgeHush: - return m.clearedhush - case event.EdgeOrgmembership: - return m.clearedorgmembership - case event.EdgeGroupmembership: - return m.clearedgroupmembership - case event.EdgeEntitlement: - return m.clearedentitlement - case event.EdgeWebhook: - return m.clearedwebhook - case event.EdgeSubscriber: - return m.clearedsubscriber - case event.EdgeFile: - return m.clearedfile - } +func (m *EntitlementPlanHistoryMutation) 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 *EventMutation) ClearEdge(name string) error { - switch name { - } - return fmt.Errorf("unknown Event unique edge %s", name) +func (m *EntitlementPlanHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown EntitlementPlanHistory 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 *EventMutation) ResetEdge(name string) error { - switch name { - case event.EdgeUser: - m.ResetUser() - return nil - case event.EdgeGroup: - m.ResetGroup() - return nil - case event.EdgeIntegration: - m.ResetIntegration() - return nil - case event.EdgeOrganization: - m.ResetOrganization() - return nil - case event.EdgeInvite: - m.ResetInvite() - return nil - case event.EdgeFeature: - m.ResetFeature() - return nil - case event.EdgeEntitlementplan: - m.ResetEntitlementplan() - return nil - case event.EdgeEntitlementplanfeature: - m.ResetEntitlementplanfeature() - return nil - case event.EdgePersonalAccessToken: - m.ResetPersonalAccessToken() - return nil - case event.EdgeOauth2token: - m.ResetOauth2token() - return nil - case event.EdgeHush: - m.ResetHush() - return nil - case event.EdgeOrgmembership: - m.ResetOrgmembership() - return nil - case event.EdgeGroupmembership: - m.ResetGroupmembership() - return nil - case event.EdgeEntitlement: - m.ResetEntitlement() - return nil - case event.EdgeWebhook: - m.ResetWebhook() - return nil - case event.EdgeSubscriber: - m.ResetSubscriber() - return nil - case event.EdgeFile: - m.ResetFile() - return nil - } - return fmt.Errorf("unknown Event edge %s", name) +func (m *EntitlementPlanHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown EntitlementPlanHistory edge %s", name) } -// EventHistoryMutation represents an operation that mutates the EventHistory nodes in the graph. -type EventHistoryMutation struct { +// EntityMutation represents an operation that mutates the Entity nodes in the graph. +type EntityMutation 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 - mapping_id *string - tags *[]string - appendtags []string - event_id *string - correlation_id *string - event_type *string - metadata *map[string]interface{} - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*EventHistory, error) - predicates []predicate.EventHistory + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + deleted_at *time.Time + deleted_by *string + tags *[]string + appendtags []string + name *string + display_name *string + description *string + domains *[]string + appenddomains []string + status *string + clearedFields map[string]struct{} + owner *string + clearedowner bool + contacts map[string]struct{} + removedcontacts map[string]struct{} + clearedcontacts bool + documents map[string]struct{} + removeddocuments map[string]struct{} + cleareddocuments bool + notes map[string]struct{} + removednotes map[string]struct{} + clearednotes bool + files map[string]struct{} + removedfiles map[string]struct{} + clearedfiles bool + entity_type *string + clearedentity_type bool + done bool + oldValue func(context.Context) (*Entity, error) + predicates []predicate.Entity } -var _ ent.Mutation = (*EventHistoryMutation)(nil) +var _ ent.Mutation = (*EntityMutation)(nil) -// eventhistoryOption allows management of the mutation configuration using functional options. -type eventhistoryOption func(*EventHistoryMutation) +// entityOption allows management of the mutation configuration using functional options. +type entityOption func(*EntityMutation) -// newEventHistoryMutation creates new mutation for the EventHistory entity. -func newEventHistoryMutation(c config, op Op, opts ...eventhistoryOption) *EventHistoryMutation { - m := &EventHistoryMutation{ +// newEntityMutation creates new mutation for the Entity entity. +func newEntityMutation(c config, op Op, opts ...entityOption) *EntityMutation { + m := &EntityMutation{ config: c, op: op, - typ: TypeEventHistory, + typ: TypeEntity, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -25452,20 +28908,20 @@ func newEventHistoryMutation(c config, op Op, opts ...eventhistoryOption) *Event return m } -// withEventHistoryID sets the ID field of the mutation. -func withEventHistoryID(id string) eventhistoryOption { - return func(m *EventHistoryMutation) { +// withEntityID sets the ID field of the mutation. +func withEntityID(id string) entityOption { + return func(m *EntityMutation) { var ( err error once sync.Once - value *EventHistory + value *Entity ) - m.oldValue = func(ctx context.Context) (*EventHistory, error) { + m.oldValue = func(ctx context.Context) (*Entity, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().EventHistory.Get(ctx, id) + value, err = m.Client().Entity.Get(ctx, id) } }) return value, err @@ -25474,10 +28930,10 @@ func withEventHistoryID(id string) eventhistoryOption { } } -// withEventHistory sets the old EventHistory of the mutation. -func withEventHistory(node *EventHistory) eventhistoryOption { - return func(m *EventHistoryMutation) { - m.oldValue = func(context.Context) (*EventHistory, error) { +// withEntity sets the old Entity of the mutation. +func withEntity(node *Entity) entityOption { + return func(m *EntityMutation) { + m.oldValue = func(context.Context) (*Entity, error) { return node, nil } m.id = &node.ID @@ -25486,7 +28942,7 @@ func withEventHistory(node *EventHistory) eventhistoryOption { // 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 EventHistoryMutation) Client() *Client { +func (m EntityMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -25494,7 +28950,7 @@ func (m EventHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m EventHistoryMutation) Tx() (*Tx, error) { +func (m EntityMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -25504,14 +28960,14 @@ func (m EventHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of EventHistory entities. -func (m *EventHistoryMutation) SetID(id string) { +// operation is only accepted on creation of Entity entities. +func (m *EntityMutation) 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 *EventHistoryMutation) ID() (id string, exists bool) { +func (m *EntityMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -25522,7 +28978,7 @@ func (m *EventHistoryMutation) ID() (id string, exists bool) { // 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 *EventHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *EntityMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -25531,140 +28987,19 @@ func (m *EventHistoryMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().EventHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().Entity.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 *EventHistoryMutation) SetHistoryTime(t time.Time) { - m.history_time = &t -} - -// HistoryTime returns the value of the "history_time" field in the mutation. -func (m *EventHistoryMutation) 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 EventHistory entity. -// If the EventHistory 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 *EventHistoryMutation) 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 *EventHistoryMutation) ResetHistoryTime() { - m.history_time = nil -} - -// SetRef sets the "ref" field. -func (m *EventHistoryMutation) SetRef(s string) { - m.ref = &s -} - -// Ref returns the value of the "ref" field in the mutation. -func (m *EventHistoryMutation) 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 EventHistory entity. -// If the EventHistory 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 *EventHistoryMutation) 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 *EventHistoryMutation) ClearRef() { - m.ref = nil - m.clearedFields[eventhistory.FieldRef] = struct{}{} -} - -// RefCleared returns if the "ref" field was cleared in this mutation. -func (m *EventHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[eventhistory.FieldRef] - return ok -} - -// ResetRef resets all changes to the "ref" field. -func (m *EventHistoryMutation) ResetRef() { - m.ref = nil - delete(m.clearedFields, eventhistory.FieldRef) -} - -// SetOperation sets the "operation" field. -func (m *EventHistoryMutation) SetOperation(ht history.OpType) { - m.operation = &ht -} - -// Operation returns the value of the "operation" field in the mutation. -func (m *EventHistoryMutation) 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 EventHistory entity. -// If the EventHistory 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 *EventHistoryMutation) 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 *EventHistoryMutation) ResetOperation() { - m.operation = nil -} - // SetCreatedAt sets the "created_at" field. -func (m *EventHistoryMutation) SetCreatedAt(t time.Time) { +func (m *EntityMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *EventHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *EntityMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -25672,10 +29007,10 @@ func (m *EventHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the EventHistory entity. -// If the EventHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the Entity entity. +// If the Entity 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 *EventHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntityMutation) 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") } @@ -25690,30 +29025,30 @@ func (m *EventHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, e } // ClearCreatedAt clears the value of the "created_at" field. -func (m *EventHistoryMutation) ClearCreatedAt() { +func (m *EntityMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[eventhistory.FieldCreatedAt] = struct{}{} + m.clearedFields[entity.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *EventHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[eventhistory.FieldCreatedAt] +func (m *EntityMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[entity.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *EventHistoryMutation) ResetCreatedAt() { +func (m *EntityMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, eventhistory.FieldCreatedAt) + delete(m.clearedFields, entity.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *EventHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *EntityMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *EventHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *EntityMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -25721,10 +29056,10 @@ func (m *EventHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the EventHistory entity. -// If the EventHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the Entity entity. +// If the Entity 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 *EventHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntityMutation) 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") } @@ -25739,30 +29074,30 @@ func (m *EventHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, e } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *EventHistoryMutation) ClearUpdatedAt() { +func (m *EntityMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[eventhistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[entity.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *EventHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[eventhistory.FieldUpdatedAt] +func (m *EntityMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[entity.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *EventHistoryMutation) ResetUpdatedAt() { +func (m *EntityMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, eventhistory.FieldUpdatedAt) + delete(m.clearedFields, entity.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *EventHistoryMutation) SetCreatedBy(s string) { +func (m *EntityMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *EventHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *EntityMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -25770,10 +29105,10 @@ func (m *EventHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the EventHistory entity. -// If the EventHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the Entity entity. +// If the Entity 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 *EventHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *EntityMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -25788,30 +29123,30 @@ func (m *EventHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err } // ClearCreatedBy clears the value of the "created_by" field. -func (m *EventHistoryMutation) ClearCreatedBy() { +func (m *EntityMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[eventhistory.FieldCreatedBy] = struct{}{} + m.clearedFields[entity.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *EventHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[eventhistory.FieldCreatedBy] +func (m *EntityMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[entity.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *EventHistoryMutation) ResetCreatedBy() { +func (m *EntityMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, eventhistory.FieldCreatedBy) + delete(m.clearedFields, entity.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *EventHistoryMutation) SetUpdatedBy(s string) { +func (m *EntityMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *EventHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *EntityMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -25819,10 +29154,10 @@ func (m *EventHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the EventHistory entity. -// If the EventHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the Entity entity. +// If the Entity 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 *EventHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *EntityMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -25837,30 +29172,30 @@ func (m *EventHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *EventHistoryMutation) ClearUpdatedBy() { +func (m *EntityMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[eventhistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[entity.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *EventHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[eventhistory.FieldUpdatedBy] +func (m *EntityMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[entity.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *EventHistoryMutation) ResetUpdatedBy() { +func (m *EntityMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, eventhistory.FieldUpdatedBy) + delete(m.clearedFields, entity.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *EventHistoryMutation) SetMappingID(s string) { +func (m *EntityMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *EventHistoryMutation) MappingID() (r string, exists bool) { +func (m *EntityMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -25868,10 +29203,10 @@ func (m *EventHistoryMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the EventHistory entity. -// If the EventHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the Entity entity. +// If the Entity 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 *EventHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *EntityMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -25886,1804 +29221,920 @@ func (m *EventHistoryMutation) OldMappingID(ctx context.Context) (v string, err } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *EventHistoryMutation) ResetMappingID() { +func (m *EntityMutation) ResetMappingID() { m.mapping_id = nil } -// SetTags sets the "tags" field. -func (m *EventHistoryMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil +// SetDeletedAt sets the "deleted_at" field. +func (m *EntityMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t } -// Tags returns the value of the "tags" field in the mutation. -func (m *EventHistoryMutation) Tags() (r []string, exists bool) { - v := m.tags +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *EntityMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at if v == nil { return } return *v, true } -// OldTags returns the old "tags" field's value of the EventHistory entity. -// If the EventHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the Entity entity. +// If the Entity 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 *EventHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *EntityMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTags is only allowed on UpdateOne operations") + return v, errors.New("OldDeletedAt 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") + 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 OldTags: %w", err) - } - return oldValue.Tags, nil -} - -// AppendTags adds s to the "tags" field. -func (m *EventHistoryMutation) 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 *EventHistoryMutation) AppendedTags() ([]string, bool) { - if len(m.appendtags) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) } - return m.appendtags, true + return oldValue.DeletedAt, nil } -// ClearTags clears the value of the "tags" field. -func (m *EventHistoryMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[eventhistory.FieldTags] = struct{}{} +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *EntityMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[entity.FieldDeletedAt] = struct{}{} } -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *EventHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[eventhistory.FieldTags] +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *EntityMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[entity.FieldDeletedAt] return ok } -// ResetTags resets all changes to the "tags" field. -func (m *EventHistoryMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, eventhistory.FieldTags) +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *EntityMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, entity.FieldDeletedAt) } -// SetEventID sets the "event_id" field. -func (m *EventHistoryMutation) SetEventID(s string) { - m.event_id = &s +// SetDeletedBy sets the "deleted_by" field. +func (m *EntityMutation) SetDeletedBy(s string) { + m.deleted_by = &s } -// EventID returns the value of the "event_id" field in the mutation. -func (m *EventHistoryMutation) EventID() (r string, exists bool) { - v := m.event_id +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *EntityMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by if v == nil { return } return *v, true } -// OldEventID returns the old "event_id" field's value of the EventHistory entity. -// If the EventHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the Entity entity. +// If the Entity 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 *EventHistoryMutation) OldEventID(ctx context.Context) (v string, err error) { +func (m *EntityMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldEventID is only allowed on UpdateOne operations") + return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldEventID requires an ID field in the mutation") + 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 OldEventID: %w", err) + return v, fmt.Errorf("querying old value for OldDeletedBy: %w", err) } - return oldValue.EventID, nil + return oldValue.DeletedBy, nil } -// ClearEventID clears the value of the "event_id" field. -func (m *EventHistoryMutation) ClearEventID() { - m.event_id = nil - m.clearedFields[eventhistory.FieldEventID] = struct{}{} +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *EntityMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[entity.FieldDeletedBy] = struct{}{} } -// EventIDCleared returns if the "event_id" field was cleared in this mutation. -func (m *EventHistoryMutation) EventIDCleared() bool { - _, ok := m.clearedFields[eventhistory.FieldEventID] +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *EntityMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[entity.FieldDeletedBy] return ok } -// ResetEventID resets all changes to the "event_id" field. -func (m *EventHistoryMutation) ResetEventID() { - m.event_id = nil - delete(m.clearedFields, eventhistory.FieldEventID) +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *EntityMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, entity.FieldDeletedBy) } -// SetCorrelationID sets the "correlation_id" field. -func (m *EventHistoryMutation) SetCorrelationID(s string) { - m.correlation_id = &s +// SetTags sets the "tags" field. +func (m *EntityMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// CorrelationID returns the value of the "correlation_id" field in the mutation. -func (m *EventHistoryMutation) CorrelationID() (r string, exists bool) { - v := m.correlation_id +// Tags returns the value of the "tags" field in the mutation. +func (m *EntityMutation) Tags() (r []string, exists bool) { + v := m.tags if v == nil { return } return *v, true } -// OldCorrelationID returns the old "correlation_id" field's value of the EventHistory entity. -// If the EventHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the Entity entity. +// If the Entity 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 *EventHistoryMutation) OldCorrelationID(ctx context.Context) (v string, err error) { +func (m *EntityMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCorrelationID is only allowed on UpdateOne operations") + return v, errors.New("OldTags is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldCorrelationID requires an ID field in the mutation") + 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 OldCorrelationID: %w", err) + return v, fmt.Errorf("querying old value for OldTags: %w", err) } - return oldValue.CorrelationID, nil + return oldValue.Tags, nil } -// ClearCorrelationID clears the value of the "correlation_id" field. -func (m *EventHistoryMutation) ClearCorrelationID() { - m.correlation_id = nil - m.clearedFields[eventhistory.FieldCorrelationID] = struct{}{} +// AppendTags adds s to the "tags" field. +func (m *EntityMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) } -// CorrelationIDCleared returns if the "correlation_id" field was cleared in this mutation. -func (m *EventHistoryMutation) CorrelationIDCleared() bool { - _, ok := m.clearedFields[eventhistory.FieldCorrelationID] +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *EntityMutation) 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 *EntityMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[entity.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *EntityMutation) TagsCleared() bool { + _, ok := m.clearedFields[entity.FieldTags] return ok } -// ResetCorrelationID resets all changes to the "correlation_id" field. -func (m *EventHistoryMutation) ResetCorrelationID() { - m.correlation_id = nil - delete(m.clearedFields, eventhistory.FieldCorrelationID) +// ResetTags resets all changes to the "tags" field. +func (m *EntityMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, entity.FieldTags) } -// SetEventType sets the "event_type" field. -func (m *EventHistoryMutation) SetEventType(s string) { - m.event_type = &s +// SetOwnerID sets the "owner_id" field. +func (m *EntityMutation) SetOwnerID(s string) { + m.owner = &s } -// EventType returns the value of the "event_type" field in the mutation. -func (m *EventHistoryMutation) EventType() (r string, exists bool) { - v := m.event_type +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *EntityMutation) OwnerID() (r string, exists bool) { + v := m.owner if v == nil { return } return *v, true } -// OldEventType returns the old "event_type" field's value of the EventHistory entity. -// If the EventHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the Entity entity. +// If the Entity 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 *EventHistoryMutation) OldEventType(ctx context.Context) (v string, err error) { +func (m *EntityMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldEventType is only allowed on UpdateOne operations") + return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldEventType requires an ID field in the mutation") + 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 OldEventType: %w", err) + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) } - return oldValue.EventType, nil + return oldValue.OwnerID, nil } -// ResetEventType resets all changes to the "event_type" field. -func (m *EventHistoryMutation) ResetEventType() { - m.event_type = nil +// ClearOwnerID clears the value of the "owner_id" field. +func (m *EntityMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[entity.FieldOwnerID] = struct{}{} } -// SetMetadata sets the "metadata" field. -func (m *EventHistoryMutation) SetMetadata(value map[string]interface{}) { - m.metadata = &value +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *EntityMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[entity.FieldOwnerID] + return ok } -// Metadata returns the value of the "metadata" field in the mutation. -func (m *EventHistoryMutation) Metadata() (r map[string]interface{}, exists bool) { - v := m.metadata +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *EntityMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, entity.FieldOwnerID) +} + +// SetName sets the "name" field. +func (m *EntityMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *EntityMutation) Name() (r string, exists bool) { + v := m.name if v == nil { return } return *v, true } -// OldMetadata returns the old "metadata" field's value of the EventHistory entity. -// If the EventHistory object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the Entity entity. +// If the Entity 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 *EventHistoryMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error) { +func (m *EntityMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMetadata is only allowed on UpdateOne operations") + return v, errors.New("OldName 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") + 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 OldMetadata: %w", err) + return v, fmt.Errorf("querying old value for OldName: %w", err) } - return oldValue.Metadata, nil + return oldValue.Name, nil } -// ClearMetadata clears the value of the "metadata" field. -func (m *EventHistoryMutation) ClearMetadata() { - m.metadata = nil - m.clearedFields[eventhistory.FieldMetadata] = struct{}{} +// ClearName clears the value of the "name" field. +func (m *EntityMutation) ClearName() { + m.name = nil + m.clearedFields[entity.FieldName] = struct{}{} } -// MetadataCleared returns if the "metadata" field was cleared in this mutation. -func (m *EventHistoryMutation) MetadataCleared() bool { - _, ok := m.clearedFields[eventhistory.FieldMetadata] +// NameCleared returns if the "name" field was cleared in this mutation. +func (m *EntityMutation) NameCleared() bool { + _, ok := m.clearedFields[entity.FieldName] return ok } -// ResetMetadata resets all changes to the "metadata" field. -func (m *EventHistoryMutation) ResetMetadata() { - m.metadata = nil - delete(m.clearedFields, eventhistory.FieldMetadata) +// ResetName resets all changes to the "name" field. +func (m *EntityMutation) ResetName() { + m.name = nil + delete(m.clearedFields, entity.FieldName) } -// Where appends a list predicates to the EventHistoryMutation builder. -func (m *EventHistoryMutation) Where(ps ...predicate.EventHistory) { - m.predicates = append(m.predicates, ps...) +// SetDisplayName sets the "display_name" field. +func (m *EntityMutation) SetDisplayName(s string) { + m.display_name = &s } -// WhereP appends storage-level predicates to the EventHistoryMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *EventHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.EventHistory, len(ps)) - for i := range ps { - p[i] = ps[i] +// DisplayName returns the value of the "display_name" field in the mutation. +func (m *EntityMutation) DisplayName() (r string, exists bool) { + v := m.display_name + if v == nil { + return } - m.Where(p...) + return *v, true } -// Op returns the operation name. -func (m *EventHistoryMutation) Op() Op { - return m.op +// OldDisplayName returns the old "display_name" field's value of the Entity entity. +// If the Entity 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 *EntityMutation) OldDisplayName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDisplayName requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) + } + return oldValue.DisplayName, nil } -// SetOp allows setting the mutation operation. -func (m *EventHistoryMutation) SetOp(op Op) { - m.op = op +// ClearDisplayName clears the value of the "display_name" field. +func (m *EntityMutation) ClearDisplayName() { + m.display_name = nil + m.clearedFields[entity.FieldDisplayName] = struct{}{} } -// Type returns the node type of this mutation (EventHistory). -func (m *EventHistoryMutation) Type() string { - return m.typ +// DisplayNameCleared returns if the "display_name" field was cleared in this mutation. +func (m *EntityMutation) DisplayNameCleared() bool { + _, ok := m.clearedFields[entity.FieldDisplayName] + return ok } -// 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 *EventHistoryMutation) Fields() []string { - fields := make([]string, 0, 13) - if m.history_time != nil { - fields = append(fields, eventhistory.FieldHistoryTime) - } - if m.ref != nil { - fields = append(fields, eventhistory.FieldRef) - } - if m.operation != nil { - fields = append(fields, eventhistory.FieldOperation) - } - if m.created_at != nil { - fields = append(fields, eventhistory.FieldCreatedAt) - } - if m.updated_at != nil { - fields = append(fields, eventhistory.FieldUpdatedAt) - } - if m.created_by != nil { - fields = append(fields, eventhistory.FieldCreatedBy) - } - if m.updated_by != nil { - fields = append(fields, eventhistory.FieldUpdatedBy) - } - if m.mapping_id != nil { - fields = append(fields, eventhistory.FieldMappingID) - } - if m.tags != nil { - fields = append(fields, eventhistory.FieldTags) - } - if m.event_id != nil { - fields = append(fields, eventhistory.FieldEventID) - } - if m.correlation_id != nil { - fields = append(fields, eventhistory.FieldCorrelationID) - } - if m.event_type != nil { - fields = append(fields, eventhistory.FieldEventType) - } - if m.metadata != nil { - fields = append(fields, eventhistory.FieldMetadata) - } - return fields +// ResetDisplayName resets all changes to the "display_name" field. +func (m *EntityMutation) ResetDisplayName() { + m.display_name = nil + delete(m.clearedFields, entity.FieldDisplayName) } -// 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 *EventHistoryMutation) Field(name string) (ent.Value, bool) { - switch name { - case eventhistory.FieldHistoryTime: - return m.HistoryTime() - case eventhistory.FieldRef: - return m.Ref() - case eventhistory.FieldOperation: - return m.Operation() - case eventhistory.FieldCreatedAt: - return m.CreatedAt() - case eventhistory.FieldUpdatedAt: - return m.UpdatedAt() - case eventhistory.FieldCreatedBy: - return m.CreatedBy() - case eventhistory.FieldUpdatedBy: - return m.UpdatedBy() - case eventhistory.FieldMappingID: - return m.MappingID() - case eventhistory.FieldTags: - return m.Tags() - case eventhistory.FieldEventID: - return m.EventID() - case eventhistory.FieldCorrelationID: - return m.CorrelationID() - case eventhistory.FieldEventType: - return m.EventType() - case eventhistory.FieldMetadata: - return m.Metadata() - } - return nil, false +// SetDescription sets the "description" field. +func (m *EntityMutation) SetDescription(s string) { + m.description = &s } -// 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 *EventHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { - switch name { - case eventhistory.FieldHistoryTime: - return m.OldHistoryTime(ctx) - case eventhistory.FieldRef: - return m.OldRef(ctx) - case eventhistory.FieldOperation: - return m.OldOperation(ctx) - case eventhistory.FieldCreatedAt: - return m.OldCreatedAt(ctx) - case eventhistory.FieldUpdatedAt: - return m.OldUpdatedAt(ctx) - case eventhistory.FieldCreatedBy: - return m.OldCreatedBy(ctx) - case eventhistory.FieldUpdatedBy: - return m.OldUpdatedBy(ctx) - case eventhistory.FieldMappingID: - return m.OldMappingID(ctx) - case eventhistory.FieldTags: - return m.OldTags(ctx) - case eventhistory.FieldEventID: - return m.OldEventID(ctx) - case eventhistory.FieldCorrelationID: - return m.OldCorrelationID(ctx) - case eventhistory.FieldEventType: - return m.OldEventType(ctx) - case eventhistory.FieldMetadata: - return m.OldMetadata(ctx) +// Description returns the value of the "description" field in the mutation. +func (m *EntityMutation) Description() (r string, exists bool) { + v := m.description + if v == nil { + return } - return nil, fmt.Errorf("unknown EventHistory field %s", name) + return *v, true } -// 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 *EventHistoryMutation) SetField(name string, value ent.Value) error { - switch name { - case eventhistory.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 eventhistory.FieldRef: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetRef(v) - return nil - case eventhistory.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 eventhistory.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 eventhistory.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 eventhistory.FieldCreatedBy: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetCreatedBy(v) - return nil - case eventhistory.FieldUpdatedBy: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetUpdatedBy(v) - return nil - case eventhistory.FieldMappingID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetMappingID(v) - return nil - case eventhistory.FieldTags: - v, ok := value.([]string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetTags(v) - return nil - case eventhistory.FieldEventID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetEventID(v) - return nil - case eventhistory.FieldCorrelationID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetCorrelationID(v) - return nil - case eventhistory.FieldEventType: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetEventType(v) - return nil - case eventhistory.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 +// OldDescription returns the old "description" field's value of the Entity entity. +// If the Entity 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 *EntityMutation) OldDescription(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDescription is only allowed on UpdateOne operations") } - return fmt.Errorf("unknown EventHistory field %s", name) + 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 } -// AddedFields returns all numeric fields that were incremented/decremented during -// this mutation. -func (m *EventHistoryMutation) AddedFields() []string { - return nil +// ClearDescription clears the value of the "description" field. +func (m *EntityMutation) ClearDescription() { + m.description = nil + m.clearedFields[entity.FieldDescription] = struct{}{} } -// 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 *EventHistoryMutation) AddedField(name string) (ent.Value, bool) { - return nil, false +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *EntityMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[entity.FieldDescription] + return ok } -// 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 *EventHistoryMutation) AddField(name string, value ent.Value) error { - switch name { - } - return fmt.Errorf("unknown EventHistory numeric field %s", name) +// ResetDescription resets all changes to the "description" field. +func (m *EntityMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, entity.FieldDescription) } -// ClearedFields returns all nullable fields that were cleared during this -// mutation. -func (m *EventHistoryMutation) ClearedFields() []string { - var fields []string - if m.FieldCleared(eventhistory.FieldRef) { - fields = append(fields, eventhistory.FieldRef) - } - if m.FieldCleared(eventhistory.FieldCreatedAt) { - fields = append(fields, eventhistory.FieldCreatedAt) - } - if m.FieldCleared(eventhistory.FieldUpdatedAt) { - fields = append(fields, eventhistory.FieldUpdatedAt) - } - if m.FieldCleared(eventhistory.FieldCreatedBy) { - fields = append(fields, eventhistory.FieldCreatedBy) - } - if m.FieldCleared(eventhistory.FieldUpdatedBy) { - fields = append(fields, eventhistory.FieldUpdatedBy) - } - if m.FieldCleared(eventhistory.FieldTags) { - fields = append(fields, eventhistory.FieldTags) +// SetDomains sets the "domains" field. +func (m *EntityMutation) SetDomains(s []string) { + m.domains = &s + m.appenddomains = nil +} + +// Domains returns the value of the "domains" field in the mutation. +func (m *EntityMutation) Domains() (r []string, exists bool) { + v := m.domains + if v == nil { + return } - if m.FieldCleared(eventhistory.FieldEventID) { - fields = append(fields, eventhistory.FieldEventID) + return *v, true +} + +// OldDomains returns the old "domains" field's value of the Entity entity. +// If the Entity 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 *EntityMutation) OldDomains(ctx context.Context) (v []string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDomains is only allowed on UpdateOne operations") } - if m.FieldCleared(eventhistory.FieldCorrelationID) { - fields = append(fields, eventhistory.FieldCorrelationID) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDomains requires an ID field in the mutation") } - if m.FieldCleared(eventhistory.FieldMetadata) { - fields = append(fields, eventhistory.FieldMetadata) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDomains: %w", err) } - return fields + return oldValue.Domains, nil } -// FieldCleared returns a boolean indicating if a field with the given name was -// cleared in this mutation. -func (m *EventHistoryMutation) FieldCleared(name string) bool { - _, ok := m.clearedFields[name] - return ok +// AppendDomains adds s to the "domains" field. +func (m *EntityMutation) AppendDomains(s []string) { + m.appenddomains = append(m.appenddomains, s...) } -// 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 *EventHistoryMutation) ClearField(name string) error { - switch name { - case eventhistory.FieldRef: - m.ClearRef() - return nil - case eventhistory.FieldCreatedAt: - m.ClearCreatedAt() - return nil - case eventhistory.FieldUpdatedAt: - m.ClearUpdatedAt() - return nil - case eventhistory.FieldCreatedBy: - m.ClearCreatedBy() - return nil - case eventhistory.FieldUpdatedBy: - m.ClearUpdatedBy() - return nil - case eventhistory.FieldTags: - m.ClearTags() - return nil - case eventhistory.FieldEventID: - m.ClearEventID() - return nil - case eventhistory.FieldCorrelationID: - m.ClearCorrelationID() - return nil - case eventhistory.FieldMetadata: - m.ClearMetadata() - return nil - } - return fmt.Errorf("unknown EventHistory 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 *EventHistoryMutation) ResetField(name string) error { - switch name { - case eventhistory.FieldHistoryTime: - m.ResetHistoryTime() - return nil - case eventhistory.FieldRef: - m.ResetRef() - return nil - case eventhistory.FieldOperation: - m.ResetOperation() - return nil - case eventhistory.FieldCreatedAt: - m.ResetCreatedAt() - return nil - case eventhistory.FieldUpdatedAt: - m.ResetUpdatedAt() - return nil - case eventhistory.FieldCreatedBy: - m.ResetCreatedBy() - return nil - case eventhistory.FieldUpdatedBy: - m.ResetUpdatedBy() - return nil - case eventhistory.FieldMappingID: - m.ResetMappingID() - return nil - case eventhistory.FieldTags: - m.ResetTags() - return nil - case eventhistory.FieldEventID: - m.ResetEventID() - return nil - case eventhistory.FieldCorrelationID: - m.ResetCorrelationID() - return nil - case eventhistory.FieldEventType: - m.ResetEventType() - return nil - case eventhistory.FieldMetadata: - m.ResetMetadata() - return nil - } - return fmt.Errorf("unknown EventHistory field %s", name) -} - -// AddedEdges returns all edge names that were set/added in this mutation. -func (m *EventHistoryMutation) 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 *EventHistoryMutation) AddedIDs(name string) []ent.Value { - return nil -} - -// RemovedEdges returns all edge names that were removed in this mutation. -func (m *EventHistoryMutation) 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 *EventHistoryMutation) RemovedIDs(name string) []ent.Value { - return nil -} - -// ClearedEdges returns all edge names that were cleared in this mutation. -func (m *EventHistoryMutation) 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 *EventHistoryMutation) 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 *EventHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown EventHistory 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 *EventHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown EventHistory edge %s", name) -} - -// FeatureMutation represents an operation that mutates the Feature nodes in the graph. -type FeatureMutation struct { - config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - deleted_at *time.Time - deleted_by *string - mapping_id *string - tags *[]string - appendtags []string - name *string - display_name *string - enabled *bool - description *string - metadata *map[string]interface{} - clearedFields map[string]struct{} - owner *string - clearedowner bool - plans map[string]struct{} - removedplans map[string]struct{} - clearedplans bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - features map[string]struct{} - removedfeatures map[string]struct{} - clearedfeatures bool - done bool - oldValue func(context.Context) (*Feature, error) - predicates []predicate.Feature -} - -var _ ent.Mutation = (*FeatureMutation)(nil) - -// featureOption allows management of the mutation configuration using functional options. -type featureOption func(*FeatureMutation) - -// newFeatureMutation creates new mutation for the Feature entity. -func newFeatureMutation(c config, op Op, opts ...featureOption) *FeatureMutation { - m := &FeatureMutation{ - config: c, - op: op, - typ: TypeFeature, - clearedFields: make(map[string]struct{}), - } - for _, opt := range opts { - opt(m) - } - return m -} - -// withFeatureID sets the ID field of the mutation. -func withFeatureID(id string) featureOption { - return func(m *FeatureMutation) { - var ( - err error - once sync.Once - value *Feature - ) - m.oldValue = func(ctx context.Context) (*Feature, error) { - once.Do(func() { - if m.done { - err = errors.New("querying old values post mutation is not allowed") - } else { - value, err = m.Client().Feature.Get(ctx, id) - } - }) - return value, err - } - m.id = &id - } -} - -// withFeature sets the old Feature of the mutation. -func withFeature(node *Feature) featureOption { - return func(m *FeatureMutation) { - m.oldValue = func(context.Context) (*Feature, 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 FeatureMutation) 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 FeatureMutation) Tx() (*Tx, error) { - if _, ok := m.driver.(*txDriver); !ok { - return nil, errors.New("generated: mutation is not running in a transaction") +// AppendedDomains returns the list of values that were appended to the "domains" field in this mutation. +func (m *EntityMutation) AppendedDomains() ([]string, bool) { + if len(m.appenddomains) == 0 { + return nil, false } - tx := &Tx{config: m.config} - tx.init() - return tx, nil + return m.appenddomains, true } -// SetID sets the value of the id field. Note that this -// operation is only accepted on creation of Feature entities. -func (m *FeatureMutation) SetID(id string) { - m.id = &id +// ClearDomains clears the value of the "domains" field. +func (m *EntityMutation) ClearDomains() { + m.domains = nil + m.appenddomains = nil + m.clearedFields[entity.FieldDomains] = struct{}{} } -// 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 *FeatureMutation) ID() (id string, exists bool) { - if m.id == nil { - return - } - return *m.id, true +// DomainsCleared returns if the "domains" field was cleared in this mutation. +func (m *EntityMutation) DomainsCleared() bool { + _, ok := m.clearedFields[entity.FieldDomains] + return ok } -// 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 *FeatureMutation) 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().Feature.Query().Where(m.predicates...).IDs(ctx) - default: - return nil, fmt.Errorf("IDs is not allowed on %s operations", m.op) - } +// ResetDomains resets all changes to the "domains" field. +func (m *EntityMutation) ResetDomains() { + m.domains = nil + m.appenddomains = nil + delete(m.clearedFields, entity.FieldDomains) } -// SetCreatedAt sets the "created_at" field. -func (m *FeatureMutation) SetCreatedAt(t time.Time) { - m.created_at = &t +// SetEntityTypeID sets the "entity_type_id" field. +func (m *EntityMutation) SetEntityTypeID(s string) { + m.entity_type = &s } -// CreatedAt returns the value of the "created_at" field in the mutation. -func (m *FeatureMutation) CreatedAt() (r time.Time, exists bool) { - v := m.created_at +// EntityTypeID returns the value of the "entity_type_id" field in the mutation. +func (m *EntityMutation) EntityTypeID() (r string, exists bool) { + v := m.entity_type if v == nil { return } return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the Feature entity. -// If the Feature object wasn't provided to the builder, the object is fetched from the database. +// OldEntityTypeID returns the old "entity_type_id" field's value of the Entity entity. +// If the Entity 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 *FeatureMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntityMutation) OldEntityTypeID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldEntityTypeID 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") + return v, errors.New("OldEntityTypeID 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 v, fmt.Errorf("querying old value for OldEntityTypeID: %w", err) } - return oldValue.CreatedAt, nil + return oldValue.EntityTypeID, nil } -// ClearCreatedAt clears the value of the "created_at" field. -func (m *FeatureMutation) ClearCreatedAt() { - m.created_at = nil - m.clearedFields[feature.FieldCreatedAt] = struct{}{} +// ClearEntityTypeID clears the value of the "entity_type_id" field. +func (m *EntityMutation) ClearEntityTypeID() { + m.entity_type = nil + m.clearedFields[entity.FieldEntityTypeID] = struct{}{} } -// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *FeatureMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[feature.FieldCreatedAt] +// EntityTypeIDCleared returns if the "entity_type_id" field was cleared in this mutation. +func (m *EntityMutation) EntityTypeIDCleared() bool { + _, ok := m.clearedFields[entity.FieldEntityTypeID] return ok } -// ResetCreatedAt resets all changes to the "created_at" field. -func (m *FeatureMutation) ResetCreatedAt() { - m.created_at = nil - delete(m.clearedFields, feature.FieldCreatedAt) +// ResetEntityTypeID resets all changes to the "entity_type_id" field. +func (m *EntityMutation) ResetEntityTypeID() { + m.entity_type = nil + delete(m.clearedFields, entity.FieldEntityTypeID) } -// SetUpdatedAt sets the "updated_at" field. -func (m *FeatureMutation) SetUpdatedAt(t time.Time) { - m.updated_at = &t +// SetStatus sets the "status" field. +func (m *EntityMutation) SetStatus(s string) { + m.status = &s } -// UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *FeatureMutation) UpdatedAt() (r time.Time, exists bool) { - v := m.updated_at +// Status returns the value of the "status" field in the mutation. +func (m *EntityMutation) Status() (r string, exists bool) { + v := m.status if v == nil { return } return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the Feature entity. -// If the Feature object wasn't provided to the builder, the object is fetched from the database. +// OldStatus returns the old "status" field's value of the Entity entity. +// If the Entity 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 *FeatureMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntityMutation) OldStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldStatus 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") + return v, errors.New("OldStatus 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 v, fmt.Errorf("querying old value for OldStatus: %w", err) } - return oldValue.UpdatedAt, nil + return oldValue.Status, nil } -// ClearUpdatedAt clears the value of the "updated_at" field. -func (m *FeatureMutation) ClearUpdatedAt() { - m.updated_at = nil - m.clearedFields[feature.FieldUpdatedAt] = struct{}{} +// ClearStatus clears the value of the "status" field. +func (m *EntityMutation) ClearStatus() { + m.status = nil + m.clearedFields[entity.FieldStatus] = struct{}{} } -// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *FeatureMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[feature.FieldUpdatedAt] +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *EntityMutation) StatusCleared() bool { + _, ok := m.clearedFields[entity.FieldStatus] return ok } -// ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *FeatureMutation) ResetUpdatedAt() { - m.updated_at = nil - delete(m.clearedFields, feature.FieldUpdatedAt) +// ResetStatus resets all changes to the "status" field. +func (m *EntityMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, entity.FieldStatus) } -// SetCreatedBy sets the "created_by" field. -func (m *FeatureMutation) SetCreatedBy(s string) { - m.created_by = &s +// ClearOwner clears the "owner" edge to the Organization entity. +func (m *EntityMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[entity.FieldOwnerID] = struct{}{} } -// CreatedBy returns the value of the "created_by" field in the mutation. -func (m *FeatureMutation) CreatedBy() (r string, exists bool) { - v := m.created_by - if v == nil { - return - } - return *v, true +// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. +func (m *EntityMutation) OwnerCleared() bool { + return m.OwnerIDCleared() || m.clearedowner } -// OldCreatedBy returns the old "created_by" field's value of the Feature entity. -// If the Feature 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 *FeatureMutation) 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) +// 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 *EntityMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) } - return oldValue.CreatedBy, nil + return } -// ClearCreatedBy clears the value of the "created_by" field. -func (m *FeatureMutation) ClearCreatedBy() { - m.created_by = nil - m.clearedFields[feature.FieldCreatedBy] = struct{}{} +// ResetOwner resets all changes to the "owner" edge. +func (m *EntityMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false } -// CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *FeatureMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[feature.FieldCreatedBy] - return ok +// AddContactIDs adds the "contacts" edge to the Contact entity by ids. +func (m *EntityMutation) AddContactIDs(ids ...string) { + if m.contacts == nil { + m.contacts = make(map[string]struct{}) + } + for i := range ids { + m.contacts[ids[i]] = struct{}{} + } } -// ResetCreatedBy resets all changes to the "created_by" field. -func (m *FeatureMutation) ResetCreatedBy() { - m.created_by = nil - delete(m.clearedFields, feature.FieldCreatedBy) +// ClearContacts clears the "contacts" edge to the Contact entity. +func (m *EntityMutation) ClearContacts() { + m.clearedcontacts = true } -// SetUpdatedBy sets the "updated_by" field. -func (m *FeatureMutation) SetUpdatedBy(s string) { - m.updated_by = &s +// ContactsCleared reports if the "contacts" edge to the Contact entity was cleared. +func (m *EntityMutation) ContactsCleared() bool { + return m.clearedcontacts } -// UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *FeatureMutation) UpdatedBy() (r string, exists bool) { - v := m.updated_by - if v == nil { - return +// RemoveContactIDs removes the "contacts" edge to the Contact entity by IDs. +func (m *EntityMutation) RemoveContactIDs(ids ...string) { + if m.removedcontacts == nil { + m.removedcontacts = make(map[string]struct{}) + } + for i := range ids { + delete(m.contacts, ids[i]) + m.removedcontacts[ids[i]] = struct{}{} } - return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the Feature entity. -// If the Feature 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 *FeatureMutation) 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) +// RemovedContacts returns the removed IDs of the "contacts" edge to the Contact entity. +func (m *EntityMutation) RemovedContactsIDs() (ids []string) { + for id := range m.removedcontacts { + ids = append(ids, id) } - return oldValue.UpdatedBy, nil + return } -// ClearUpdatedBy clears the value of the "updated_by" field. -func (m *FeatureMutation) ClearUpdatedBy() { - m.updated_by = nil - m.clearedFields[feature.FieldUpdatedBy] = struct{}{} +// ContactsIDs returns the "contacts" edge IDs in the mutation. +func (m *EntityMutation) ContactsIDs() (ids []string) { + for id := range m.contacts { + ids = append(ids, id) + } + return } -// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *FeatureMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[feature.FieldUpdatedBy] - return ok +// ResetContacts resets all changes to the "contacts" edge. +func (m *EntityMutation) ResetContacts() { + m.contacts = nil + m.clearedcontacts = false + m.removedcontacts = nil } -// ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *FeatureMutation) ResetUpdatedBy() { - m.updated_by = nil - delete(m.clearedFields, feature.FieldUpdatedBy) +// AddDocumentIDs adds the "documents" edge to the DocumentData entity by ids. +func (m *EntityMutation) AddDocumentIDs(ids ...string) { + if m.documents == nil { + m.documents = make(map[string]struct{}) + } + for i := range ids { + m.documents[ids[i]] = struct{}{} + } } -// SetDeletedAt sets the "deleted_at" field. -func (m *FeatureMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// ClearDocuments clears the "documents" edge to the DocumentData entity. +func (m *EntityMutation) ClearDocuments() { + m.cleareddocuments = true } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *FeatureMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at - if v == nil { - return - } - return *v, true +// DocumentsCleared reports if the "documents" edge to the DocumentData entity was cleared. +func (m *EntityMutation) DocumentsCleared() bool { + return m.cleareddocuments } -// OldDeletedAt returns the old "deleted_at" field's value of the Feature entity. -// If the Feature 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 *FeatureMutation) 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") +// RemoveDocumentIDs removes the "documents" edge to the DocumentData entity by IDs. +func (m *EntityMutation) RemoveDocumentIDs(ids ...string) { + if m.removeddocuments == nil { + m.removeddocuments = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) + for i := range ids { + delete(m.documents, ids[i]) + m.removeddocuments[ids[i]] = struct{}{} } - return oldValue.DeletedAt, nil -} - -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *FeatureMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[feature.FieldDeletedAt] = struct{}{} -} - -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *FeatureMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[feature.FieldDeletedAt] - return ok } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *FeatureMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, feature.FieldDeletedAt) +// RemovedDocuments returns the removed IDs of the "documents" edge to the DocumentData entity. +func (m *EntityMutation) RemovedDocumentsIDs() (ids []string) { + for id := range m.removeddocuments { + ids = append(ids, id) + } + return } -// SetDeletedBy sets the "deleted_by" field. -func (m *FeatureMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// DocumentsIDs returns the "documents" edge IDs in the mutation. +func (m *EntityMutation) DocumentsIDs() (ids []string) { + for id := range m.documents { + ids = append(ids, id) + } + return } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *FeatureMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by - if v == nil { - return - } - return *v, true +// ResetDocuments resets all changes to the "documents" edge. +func (m *EntityMutation) ResetDocuments() { + m.documents = nil + m.cleareddocuments = false + m.removeddocuments = nil } -// OldDeletedBy returns the old "deleted_by" field's value of the Feature entity. -// If the Feature 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 *FeatureMutation) 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") +// AddNoteIDs adds the "notes" edge to the Note entity by ids. +func (m *EntityMutation) AddNoteIDs(ids ...string) { + if m.notes == nil { + m.notes = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldDeletedBy: %w", err) + for i := range ids { + m.notes[ids[i]] = struct{}{} } - return oldValue.DeletedBy, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *FeatureMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[feature.FieldDeletedBy] = struct{}{} +// ClearNotes clears the "notes" edge to the Note entity. +func (m *EntityMutation) ClearNotes() { + m.clearednotes = true } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *FeatureMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[feature.FieldDeletedBy] - return ok +// NotesCleared reports if the "notes" edge to the Note entity was cleared. +func (m *EntityMutation) NotesCleared() bool { + return m.clearednotes } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *FeatureMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, feature.FieldDeletedBy) +// RemoveNoteIDs removes the "notes" edge to the Note entity by IDs. +func (m *EntityMutation) RemoveNoteIDs(ids ...string) { + if m.removednotes == nil { + m.removednotes = make(map[string]struct{}) + } + for i := range ids { + delete(m.notes, ids[i]) + m.removednotes[ids[i]] = struct{}{} + } } -// SetMappingID sets the "mapping_id" field. -func (m *FeatureMutation) SetMappingID(s string) { - m.mapping_id = &s +// RemovedNotes returns the removed IDs of the "notes" edge to the Note entity. +func (m *EntityMutation) RemovedNotesIDs() (ids []string) { + for id := range m.removednotes { + ids = append(ids, id) + } + return } -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *FeatureMutation) MappingID() (r string, exists bool) { - v := m.mapping_id - if v == nil { - return +// NotesIDs returns the "notes" edge IDs in the mutation. +func (m *EntityMutation) NotesIDs() (ids []string) { + for id := range m.notes { + ids = append(ids, id) } - return *v, true + return } -// OldMappingID returns the old "mapping_id" field's value of the Feature entity. -// If the Feature 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 *FeatureMutation) OldMappingID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) - } - return oldValue.MappingID, nil +// ResetNotes resets all changes to the "notes" edge. +func (m *EntityMutation) ResetNotes() { + m.notes = nil + m.clearednotes = false + m.removednotes = nil } -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *FeatureMutation) ResetMappingID() { - m.mapping_id = nil +// AddFileIDs adds the "files" edge to the File entity by ids. +func (m *EntityMutation) AddFileIDs(ids ...string) { + if m.files == nil { + m.files = make(map[string]struct{}) + } + for i := range ids { + m.files[ids[i]] = struct{}{} + } } -// SetTags sets the "tags" field. -func (m *FeatureMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil +// ClearFiles clears the "files" edge to the File entity. +func (m *EntityMutation) ClearFiles() { + m.clearedfiles = true } -// Tags returns the value of the "tags" field in the mutation. -func (m *FeatureMutation) Tags() (r []string, exists bool) { - v := m.tags - if v == nil { - return - } - return *v, true +// FilesCleared reports if the "files" edge to the File entity was cleared. +func (m *EntityMutation) FilesCleared() bool { + return m.clearedfiles } -// OldTags returns the old "tags" field's value of the Feature entity. -// If the Feature 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 *FeatureMutation) 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") +// RemoveFileIDs removes the "files" edge to the File entity by IDs. +func (m *EntityMutation) RemoveFileIDs(ids ...string) { + if m.removedfiles == nil { + m.removedfiles = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldTags: %w", err) + for i := range ids { + delete(m.files, ids[i]) + m.removedfiles[ids[i]] = struct{}{} } - return oldValue.Tags, nil -} - -// AppendTags adds s to the "tags" field. -func (m *FeatureMutation) 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 *FeatureMutation) AppendedTags() ([]string, bool) { - if len(m.appendtags) == 0 { - return nil, false +// RemovedFiles returns the removed IDs of the "files" edge to the File entity. +func (m *EntityMutation) RemovedFilesIDs() (ids []string) { + for id := range m.removedfiles { + ids = append(ids, id) } - return m.appendtags, true + return } -// ClearTags clears the value of the "tags" field. -func (m *FeatureMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[feature.FieldTags] = struct{}{} +// FilesIDs returns the "files" edge IDs in the mutation. +func (m *EntityMutation) FilesIDs() (ids []string) { + for id := range m.files { + ids = append(ids, id) + } + return } -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *FeatureMutation) TagsCleared() bool { - _, ok := m.clearedFields[feature.FieldTags] - return ok +// ResetFiles resets all changes to the "files" edge. +func (m *EntityMutation) ResetFiles() { + m.files = nil + m.clearedfiles = false + m.removedfiles = nil } -// ResetTags resets all changes to the "tags" field. -func (m *FeatureMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, feature.FieldTags) +// ClearEntityType clears the "entity_type" edge to the EntityType entity. +func (m *EntityMutation) ClearEntityType() { + m.clearedentity_type = true + m.clearedFields[entity.FieldEntityTypeID] = struct{}{} } -// SetOwnerID sets the "owner_id" field. -func (m *FeatureMutation) SetOwnerID(s string) { - m.owner = &s +// EntityTypeCleared reports if the "entity_type" edge to the EntityType entity was cleared. +func (m *EntityMutation) EntityTypeCleared() bool { + return m.EntityTypeIDCleared() || m.clearedentity_type } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *FeatureMutation) OwnerID() (r string, exists bool) { - v := m.owner - if v == nil { - return +// EntityTypeIDs returns the "entity_type" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// EntityTypeID instead. It exists only for internal usage by the builders. +func (m *EntityMutation) EntityTypeIDs() (ids []string) { + if id := m.entity_type; id != nil { + ids = append(ids, *id) } - return *v, true + return } -// OldOwnerID returns the old "owner_id" field's value of the Feature entity. -// If the Feature 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 *FeatureMutation) 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 +// ResetEntityType resets all changes to the "entity_type" edge. +func (m *EntityMutation) ResetEntityType() { + m.entity_type = nil + m.clearedentity_type = false } -// ClearOwnerID clears the value of the "owner_id" field. -func (m *FeatureMutation) ClearOwnerID() { - m.owner = nil - m.clearedFields[feature.FieldOwnerID] = struct{}{} +// Where appends a list predicates to the EntityMutation builder. +func (m *EntityMutation) Where(ps ...predicate.Entity) { + m.predicates = append(m.predicates, ps...) } -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *FeatureMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[feature.FieldOwnerID] - return ok +// WhereP appends storage-level predicates to the EntityMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *EntityMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Entity, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *FeatureMutation) ResetOwnerID() { - m.owner = nil - delete(m.clearedFields, feature.FieldOwnerID) +// Op returns the operation name. +func (m *EntityMutation) Op() Op { + return m.op } -// SetName sets the "name" field. -func (m *FeatureMutation) SetName(s string) { - m.name = &s +// SetOp allows setting the mutation operation. +func (m *EntityMutation) SetOp(op Op) { + m.op = op } -// Name returns the value of the "name" field in the mutation. -func (m *FeatureMutation) Name() (r string, exists bool) { - v := m.name - if v == nil { - return - } - return *v, true +// Type returns the node type of this mutation (Entity). +func (m *EntityMutation) Type() string { + return m.typ } -// OldName returns the old "name" field's value of the Feature entity. -// If the Feature 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 *FeatureMutation) OldName(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldName is only allowed on UpdateOne operations") +// 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 *EntityMutation) Fields() []string { + fields := make([]string, 0, 15) + if m.created_at != nil { + fields = append(fields, entity.FieldCreatedAt) } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldName requires an ID field in the mutation") + if m.updated_at != nil { + fields = append(fields, entity.FieldUpdatedAt) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldName: %w", err) + if m.created_by != nil { + fields = append(fields, entity.FieldCreatedBy) } - return oldValue.Name, nil -} - -// ResetName resets all changes to the "name" field. -func (m *FeatureMutation) ResetName() { - m.name = nil -} - -// SetDisplayName sets the "display_name" field. -func (m *FeatureMutation) SetDisplayName(s string) { - m.display_name = &s -} - -// DisplayName returns the value of the "display_name" field in the mutation. -func (m *FeatureMutation) DisplayName() (r string, exists bool) { - v := m.display_name - if v == nil { - return + if m.updated_by != nil { + fields = append(fields, entity.FieldUpdatedBy) } - return *v, true -} - -// OldDisplayName returns the old "display_name" field's value of the Feature entity. -// If the Feature 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 *FeatureMutation) OldDisplayName(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") + if m.mapping_id != nil { + fields = append(fields, entity.FieldMappingID) } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDisplayName requires an ID field in the mutation") + if m.deleted_at != nil { + fields = append(fields, entity.FieldDeletedAt) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) + if m.deleted_by != nil { + fields = append(fields, entity.FieldDeletedBy) } - return oldValue.DisplayName, nil -} - -// ClearDisplayName clears the value of the "display_name" field. -func (m *FeatureMutation) ClearDisplayName() { - m.display_name = nil - m.clearedFields[feature.FieldDisplayName] = struct{}{} -} - -// DisplayNameCleared returns if the "display_name" field was cleared in this mutation. -func (m *FeatureMutation) DisplayNameCleared() bool { - _, ok := m.clearedFields[feature.FieldDisplayName] - return ok -} - -// ResetDisplayName resets all changes to the "display_name" field. -func (m *FeatureMutation) ResetDisplayName() { - m.display_name = nil - delete(m.clearedFields, feature.FieldDisplayName) -} - -// SetEnabled sets the "enabled" field. -func (m *FeatureMutation) SetEnabled(b bool) { - m.enabled = &b -} - -// Enabled returns the value of the "enabled" field in the mutation. -func (m *FeatureMutation) Enabled() (r bool, exists bool) { - v := m.enabled - if v == nil { - return + if m.tags != nil { + fields = append(fields, entity.FieldTags) } - return *v, true -} - -// OldEnabled returns the old "enabled" field's value of the Feature entity. -// If the Feature 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 *FeatureMutation) OldEnabled(ctx context.Context) (v bool, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldEnabled is only allowed on UpdateOne operations") + if m.owner != nil { + fields = append(fields, entity.FieldOwnerID) } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldEnabled requires an ID field in the mutation") + if m.name != nil { + fields = append(fields, entity.FieldName) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldEnabled: %w", err) + if m.display_name != nil { + fields = append(fields, entity.FieldDisplayName) } - return oldValue.Enabled, nil -} - -// ResetEnabled resets all changes to the "enabled" field. -func (m *FeatureMutation) ResetEnabled() { - m.enabled = nil -} - -// SetDescription sets the "description" field. -func (m *FeatureMutation) SetDescription(s string) { - m.description = &s -} - -// Description returns the value of the "description" field in the mutation. -func (m *FeatureMutation) Description() (r string, exists bool) { - v := m.description - if v == nil { - return + if m.description != nil { + fields = append(fields, entity.FieldDescription) } - return *v, true -} - -// OldDescription returns the old "description" field's value of the Feature entity. -// If the Feature 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 *FeatureMutation) 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.domains != nil { + fields = append(fields, entity.FieldDomains) } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDescription requires an ID field in the mutation") + if m.entity_type != nil { + fields = append(fields, entity.FieldEntityTypeID) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldDescription: %w", err) + if m.status != nil { + fields = append(fields, entity.FieldStatus) } - return oldValue.Description, nil -} - -// ClearDescription clears the value of the "description" field. -func (m *FeatureMutation) ClearDescription() { - m.description = nil - m.clearedFields[feature.FieldDescription] = struct{}{} -} - -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *FeatureMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[feature.FieldDescription] - return ok -} - -// ResetDescription resets all changes to the "description" field. -func (m *FeatureMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, feature.FieldDescription) -} - -// SetMetadata sets the "metadata" field. -func (m *FeatureMutation) SetMetadata(value map[string]interface{}) { - m.metadata = &value -} - -// Metadata returns the value of the "metadata" field in the mutation. -func (m *FeatureMutation) 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 Feature entity. -// If the Feature 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 *FeatureMutation) 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 *FeatureMutation) ClearMetadata() { - m.metadata = nil - m.clearedFields[feature.FieldMetadata] = struct{}{} -} - -// MetadataCleared returns if the "metadata" field was cleared in this mutation. -func (m *FeatureMutation) MetadataCleared() bool { - _, ok := m.clearedFields[feature.FieldMetadata] - return ok -} - -// ResetMetadata resets all changes to the "metadata" field. -func (m *FeatureMutation) ResetMetadata() { - m.metadata = nil - delete(m.clearedFields, feature.FieldMetadata) -} - -// ClearOwner clears the "owner" edge to the Organization entity. -func (m *FeatureMutation) ClearOwner() { - m.clearedowner = true - m.clearedFields[feature.FieldOwnerID] = struct{}{} -} - -// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *FeatureMutation) 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 *FeatureMutation) OwnerIDs() (ids []string) { - if id := m.owner; id != nil { - ids = append(ids, *id) - } - return -} - -// ResetOwner resets all changes to the "owner" edge. -func (m *FeatureMutation) ResetOwner() { - m.owner = nil - m.clearedowner = false -} - -// AddPlanIDs adds the "plans" edge to the EntitlementPlan entity by ids. -func (m *FeatureMutation) AddPlanIDs(ids ...string) { - if m.plans == nil { - m.plans = make(map[string]struct{}) - } - for i := range ids { - m.plans[ids[i]] = struct{}{} - } -} - -// ClearPlans clears the "plans" edge to the EntitlementPlan entity. -func (m *FeatureMutation) ClearPlans() { - m.clearedplans = true -} - -// PlansCleared reports if the "plans" edge to the EntitlementPlan entity was cleared. -func (m *FeatureMutation) PlansCleared() bool { - return m.clearedplans -} - -// RemovePlanIDs removes the "plans" edge to the EntitlementPlan entity by IDs. -func (m *FeatureMutation) RemovePlanIDs(ids ...string) { - if m.removedplans == nil { - m.removedplans = make(map[string]struct{}) - } - for i := range ids { - delete(m.plans, ids[i]) - m.removedplans[ids[i]] = struct{}{} - } -} - -// RemovedPlans returns the removed IDs of the "plans" edge to the EntitlementPlan entity. -func (m *FeatureMutation) RemovedPlansIDs() (ids []string) { - for id := range m.removedplans { - ids = append(ids, id) - } - return -} - -// PlansIDs returns the "plans" edge IDs in the mutation. -func (m *FeatureMutation) PlansIDs() (ids []string) { - for id := range m.plans { - ids = append(ids, id) - } - return -} - -// ResetPlans resets all changes to the "plans" edge. -func (m *FeatureMutation) ResetPlans() { - m.plans = nil - m.clearedplans = false - m.removedplans = nil -} - -// AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *FeatureMutation) AddEventIDs(ids ...string) { - if m.events == nil { - m.events = make(map[string]struct{}) - } - for i := range ids { - m.events[ids[i]] = struct{}{} - } -} - -// ClearEvents clears the "events" edge to the Event entity. -func (m *FeatureMutation) ClearEvents() { - m.clearedevents = true -} - -// EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *FeatureMutation) EventsCleared() bool { - return m.clearedevents -} - -// RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *FeatureMutation) RemoveEventIDs(ids ...string) { - if m.removedevents == nil { - m.removedevents = make(map[string]struct{}) - } - for i := range ids { - delete(m.events, ids[i]) - m.removedevents[ids[i]] = struct{}{} - } -} - -// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *FeatureMutation) RemovedEventsIDs() (ids []string) { - for id := range m.removedevents { - ids = append(ids, id) - } - return -} - -// EventsIDs returns the "events" edge IDs in the mutation. -func (m *FeatureMutation) EventsIDs() (ids []string) { - for id := range m.events { - ids = append(ids, id) - } - return -} - -// ResetEvents resets all changes to the "events" edge. -func (m *FeatureMutation) ResetEvents() { - m.events = nil - m.clearedevents = false - m.removedevents = nil -} - -// AddFeatureIDs adds the "features" edge to the EntitlementPlanFeature entity by ids. -func (m *FeatureMutation) AddFeatureIDs(ids ...string) { - if m.features == nil { - m.features = make(map[string]struct{}) - } - for i := range ids { - m.features[ids[i]] = struct{}{} - } -} - -// ClearFeatures clears the "features" edge to the EntitlementPlanFeature entity. -func (m *FeatureMutation) ClearFeatures() { - m.clearedfeatures = true -} - -// FeaturesCleared reports if the "features" edge to the EntitlementPlanFeature entity was cleared. -func (m *FeatureMutation) FeaturesCleared() bool { - return m.clearedfeatures -} - -// RemoveFeatureIDs removes the "features" edge to the EntitlementPlanFeature entity by IDs. -func (m *FeatureMutation) RemoveFeatureIDs(ids ...string) { - if m.removedfeatures == nil { - m.removedfeatures = make(map[string]struct{}) - } - for i := range ids { - delete(m.features, ids[i]) - m.removedfeatures[ids[i]] = struct{}{} - } -} - -// RemovedFeatures returns the removed IDs of the "features" edge to the EntitlementPlanFeature entity. -func (m *FeatureMutation) RemovedFeaturesIDs() (ids []string) { - for id := range m.removedfeatures { - ids = append(ids, id) - } - return -} - -// FeaturesIDs returns the "features" edge IDs in the mutation. -func (m *FeatureMutation) FeaturesIDs() (ids []string) { - for id := range m.features { - ids = append(ids, id) - } - return -} - -// ResetFeatures resets all changes to the "features" edge. -func (m *FeatureMutation) ResetFeatures() { - m.features = nil - m.clearedfeatures = false - m.removedfeatures = nil -} - -// Where appends a list predicates to the FeatureMutation builder. -func (m *FeatureMutation) Where(ps ...predicate.Feature) { - m.predicates = append(m.predicates, ps...) -} - -// WhereP appends storage-level predicates to the FeatureMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *FeatureMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.Feature, len(ps)) - for i := range ps { - p[i] = ps[i] - } - m.Where(p...) -} - -// Op returns the operation name. -func (m *FeatureMutation) Op() Op { - return m.op -} - -// SetOp allows setting the mutation operation. -func (m *FeatureMutation) SetOp(op Op) { - m.op = op -} - -// Type returns the node type of this mutation (Feature). -func (m *FeatureMutation) 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 *FeatureMutation) Fields() []string { - fields := make([]string, 0, 14) - if m.created_at != nil { - fields = append(fields, feature.FieldCreatedAt) - } - if m.updated_at != nil { - fields = append(fields, feature.FieldUpdatedAt) - } - if m.created_by != nil { - fields = append(fields, feature.FieldCreatedBy) - } - if m.updated_by != nil { - fields = append(fields, feature.FieldUpdatedBy) - } - if m.deleted_at != nil { - fields = append(fields, feature.FieldDeletedAt) - } - if m.deleted_by != nil { - fields = append(fields, feature.FieldDeletedBy) - } - if m.mapping_id != nil { - fields = append(fields, feature.FieldMappingID) - } - if m.tags != nil { - fields = append(fields, feature.FieldTags) - } - if m.owner != nil { - fields = append(fields, feature.FieldOwnerID) - } - if m.name != nil { - fields = append(fields, feature.FieldName) - } - if m.display_name != nil { - fields = append(fields, feature.FieldDisplayName) - } - if m.enabled != nil { - fields = append(fields, feature.FieldEnabled) - } - if m.description != nil { - fields = append(fields, feature.FieldDescription) - } - if m.metadata != nil { - fields = append(fields, feature.FieldMetadata) - } - return fields + 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 *FeatureMutation) Field(name string) (ent.Value, bool) { +func (m *EntityMutation) Field(name string) (ent.Value, bool) { switch name { - case feature.FieldCreatedAt: + case entity.FieldCreatedAt: return m.CreatedAt() - case feature.FieldUpdatedAt: + case entity.FieldUpdatedAt: return m.UpdatedAt() - case feature.FieldCreatedBy: + case entity.FieldCreatedBy: return m.CreatedBy() - case feature.FieldUpdatedBy: + case entity.FieldUpdatedBy: return m.UpdatedBy() - case feature.FieldDeletedAt: + case entity.FieldMappingID: + return m.MappingID() + case entity.FieldDeletedAt: return m.DeletedAt() - case feature.FieldDeletedBy: + case entity.FieldDeletedBy: return m.DeletedBy() - case feature.FieldMappingID: - return m.MappingID() - case feature.FieldTags: + case entity.FieldTags: return m.Tags() - case feature.FieldOwnerID: + case entity.FieldOwnerID: return m.OwnerID() - case feature.FieldName: + case entity.FieldName: return m.Name() - case feature.FieldDisplayName: + case entity.FieldDisplayName: return m.DisplayName() - case feature.FieldEnabled: - return m.Enabled() - case feature.FieldDescription: + case entity.FieldDescription: return m.Description() - case feature.FieldMetadata: - return m.Metadata() + case entity.FieldDomains: + return m.Domains() + case entity.FieldEntityTypeID: + return m.EntityTypeID() + case entity.FieldStatus: + return m.Status() } return nil, false } @@ -27691,389 +30142,444 @@ func (m *FeatureMutation) Field(name string) (ent.Value, bool) { // 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 *FeatureMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *EntityMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case feature.FieldCreatedAt: + case entity.FieldCreatedAt: return m.OldCreatedAt(ctx) - case feature.FieldUpdatedAt: + case entity.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case feature.FieldCreatedBy: + case entity.FieldCreatedBy: return m.OldCreatedBy(ctx) - case feature.FieldUpdatedBy: + case entity.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case feature.FieldDeletedAt: + case entity.FieldMappingID: + return m.OldMappingID(ctx) + case entity.FieldDeletedAt: return m.OldDeletedAt(ctx) - case feature.FieldDeletedBy: + case entity.FieldDeletedBy: return m.OldDeletedBy(ctx) - case feature.FieldMappingID: - return m.OldMappingID(ctx) - case feature.FieldTags: + case entity.FieldTags: return m.OldTags(ctx) - case feature.FieldOwnerID: + case entity.FieldOwnerID: return m.OldOwnerID(ctx) - case feature.FieldName: + case entity.FieldName: return m.OldName(ctx) - case feature.FieldDisplayName: + case entity.FieldDisplayName: return m.OldDisplayName(ctx) - case feature.FieldEnabled: - return m.OldEnabled(ctx) - case feature.FieldDescription: + case entity.FieldDescription: return m.OldDescription(ctx) - case feature.FieldMetadata: - return m.OldMetadata(ctx) + case entity.FieldDomains: + return m.OldDomains(ctx) + case entity.FieldEntityTypeID: + return m.OldEntityTypeID(ctx) + case entity.FieldStatus: + return m.OldStatus(ctx) } - return nil, fmt.Errorf("unknown Feature field %s", name) + return nil, fmt.Errorf("unknown Entity 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 *FeatureMutation) SetField(name string, value ent.Value) error { +func (m *EntityMutation) SetField(name string, value ent.Value) error { switch name { - case feature.FieldCreatedAt: + case entity.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 feature.FieldUpdatedAt: + case entity.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 feature.FieldCreatedBy: + case entity.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case feature.FieldUpdatedBy: + case entity.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case feature.FieldDeletedAt: - v, ok := value.(time.Time) + case entity.FieldMappingID: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetMappingID(v) return nil - case feature.FieldDeletedBy: - v, ok := value.(string) + case entity.FieldDeletedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetDeletedAt(v) return nil - case feature.FieldMappingID: + case entity.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMappingID(v) + m.SetDeletedBy(v) return nil - case feature.FieldTags: + case entity.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case feature.FieldOwnerID: + case entity.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetOwnerID(v) return nil - case feature.FieldName: + case entity.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetName(v) return nil - case feature.FieldDisplayName: + case entity.FieldDisplayName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDisplayName(v) return nil - case feature.FieldEnabled: - v, ok := value.(bool) + case entity.FieldDescription: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetEnabled(v) + m.SetDescription(v) return nil - case feature.FieldDescription: + case entity.FieldDomains: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDomains(v) + return nil + case entity.FieldEntityTypeID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetEntityTypeID(v) return nil - case feature.FieldMetadata: - v, ok := value.(map[string]interface{}) + case entity.FieldStatus: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMetadata(v) + m.SetStatus(v) return nil } - return fmt.Errorf("unknown Feature field %s", name) + return fmt.Errorf("unknown Entity field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *FeatureMutation) AddedFields() []string { +func (m *EntityMutation) 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 *FeatureMutation) AddedField(name string) (ent.Value, bool) { +func (m *EntityMutation) 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 *FeatureMutation) AddField(name string, value ent.Value) error { +func (m *EntityMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown Feature numeric field %s", name) + return fmt.Errorf("unknown Entity numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *FeatureMutation) ClearedFields() []string { +func (m *EntityMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(feature.FieldCreatedAt) { - fields = append(fields, feature.FieldCreatedAt) + if m.FieldCleared(entity.FieldCreatedAt) { + fields = append(fields, entity.FieldCreatedAt) } - if m.FieldCleared(feature.FieldUpdatedAt) { - fields = append(fields, feature.FieldUpdatedAt) + if m.FieldCleared(entity.FieldUpdatedAt) { + fields = append(fields, entity.FieldUpdatedAt) } - if m.FieldCleared(feature.FieldCreatedBy) { - fields = append(fields, feature.FieldCreatedBy) + if m.FieldCleared(entity.FieldCreatedBy) { + fields = append(fields, entity.FieldCreatedBy) } - if m.FieldCleared(feature.FieldUpdatedBy) { - fields = append(fields, feature.FieldUpdatedBy) + if m.FieldCleared(entity.FieldUpdatedBy) { + fields = append(fields, entity.FieldUpdatedBy) } - if m.FieldCleared(feature.FieldDeletedAt) { - fields = append(fields, feature.FieldDeletedAt) + if m.FieldCleared(entity.FieldDeletedAt) { + fields = append(fields, entity.FieldDeletedAt) } - if m.FieldCleared(feature.FieldDeletedBy) { - fields = append(fields, feature.FieldDeletedBy) + if m.FieldCleared(entity.FieldDeletedBy) { + fields = append(fields, entity.FieldDeletedBy) } - if m.FieldCleared(feature.FieldTags) { - fields = append(fields, feature.FieldTags) + if m.FieldCleared(entity.FieldTags) { + fields = append(fields, entity.FieldTags) } - if m.FieldCleared(feature.FieldOwnerID) { - fields = append(fields, feature.FieldOwnerID) + if m.FieldCleared(entity.FieldOwnerID) { + fields = append(fields, entity.FieldOwnerID) } - if m.FieldCleared(feature.FieldDisplayName) { - fields = append(fields, feature.FieldDisplayName) + if m.FieldCleared(entity.FieldName) { + fields = append(fields, entity.FieldName) } - if m.FieldCleared(feature.FieldDescription) { - fields = append(fields, feature.FieldDescription) + if m.FieldCleared(entity.FieldDisplayName) { + fields = append(fields, entity.FieldDisplayName) } - if m.FieldCleared(feature.FieldMetadata) { - fields = append(fields, feature.FieldMetadata) + if m.FieldCleared(entity.FieldDescription) { + fields = append(fields, entity.FieldDescription) + } + if m.FieldCleared(entity.FieldDomains) { + fields = append(fields, entity.FieldDomains) + } + if m.FieldCleared(entity.FieldEntityTypeID) { + fields = append(fields, entity.FieldEntityTypeID) + } + if m.FieldCleared(entity.FieldStatus) { + fields = append(fields, entity.FieldStatus) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *FeatureMutation) FieldCleared(name string) bool { +func (m *EntityMutation) 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 *FeatureMutation) ClearField(name string) error { +func (m *EntityMutation) ClearField(name string) error { switch name { - case feature.FieldCreatedAt: + case entity.FieldCreatedAt: m.ClearCreatedAt() return nil - case feature.FieldUpdatedAt: + case entity.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case feature.FieldCreatedBy: + case entity.FieldCreatedBy: m.ClearCreatedBy() return nil - case feature.FieldUpdatedBy: + case entity.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case feature.FieldDeletedAt: + case entity.FieldDeletedAt: m.ClearDeletedAt() return nil - case feature.FieldDeletedBy: + case entity.FieldDeletedBy: m.ClearDeletedBy() return nil - case feature.FieldTags: + case entity.FieldTags: m.ClearTags() return nil - case feature.FieldOwnerID: + case entity.FieldOwnerID: m.ClearOwnerID() return nil - case feature.FieldDisplayName: + case entity.FieldName: + m.ClearName() + return nil + case entity.FieldDisplayName: m.ClearDisplayName() return nil - case feature.FieldDescription: + case entity.FieldDescription: m.ClearDescription() return nil - case feature.FieldMetadata: - m.ClearMetadata() + case entity.FieldDomains: + m.ClearDomains() + return nil + case entity.FieldEntityTypeID: + m.ClearEntityTypeID() + return nil + case entity.FieldStatus: + m.ClearStatus() return nil } - return fmt.Errorf("unknown Feature nullable field %s", name) + return fmt.Errorf("unknown Entity 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 *FeatureMutation) ResetField(name string) error { +func (m *EntityMutation) ResetField(name string) error { switch name { - case feature.FieldCreatedAt: + case entity.FieldCreatedAt: m.ResetCreatedAt() return nil - case feature.FieldUpdatedAt: + case entity.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case feature.FieldCreatedBy: + case entity.FieldCreatedBy: m.ResetCreatedBy() return nil - case feature.FieldUpdatedBy: + case entity.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case feature.FieldDeletedAt: + case entity.FieldMappingID: + m.ResetMappingID() + return nil + case entity.FieldDeletedAt: m.ResetDeletedAt() return nil - case feature.FieldDeletedBy: + case entity.FieldDeletedBy: m.ResetDeletedBy() return nil - case feature.FieldMappingID: - m.ResetMappingID() - return nil - case feature.FieldTags: + case entity.FieldTags: m.ResetTags() return nil - case feature.FieldOwnerID: + case entity.FieldOwnerID: m.ResetOwnerID() return nil - case feature.FieldName: + case entity.FieldName: m.ResetName() return nil - case feature.FieldDisplayName: + case entity.FieldDisplayName: m.ResetDisplayName() return nil - case feature.FieldEnabled: - m.ResetEnabled() - return nil - case feature.FieldDescription: + case entity.FieldDescription: m.ResetDescription() return nil - case feature.FieldMetadata: - m.ResetMetadata() + case entity.FieldDomains: + m.ResetDomains() + return nil + case entity.FieldEntityTypeID: + m.ResetEntityTypeID() + return nil + case entity.FieldStatus: + m.ResetStatus() return nil } - return fmt.Errorf("unknown Feature field %s", name) + return fmt.Errorf("unknown Entity field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *FeatureMutation) AddedEdges() []string { - edges := make([]string, 0, 4) +func (m *EntityMutation) AddedEdges() []string { + edges := make([]string, 0, 6) if m.owner != nil { - edges = append(edges, feature.EdgeOwner) + edges = append(edges, entity.EdgeOwner) } - if m.plans != nil { - edges = append(edges, feature.EdgePlans) + if m.contacts != nil { + edges = append(edges, entity.EdgeContacts) } - if m.events != nil { - edges = append(edges, feature.EdgeEvents) + if m.documents != nil { + edges = append(edges, entity.EdgeDocuments) } - if m.features != nil { - edges = append(edges, feature.EdgeFeatures) + if m.notes != nil { + edges = append(edges, entity.EdgeNotes) + } + if m.files != nil { + edges = append(edges, entity.EdgeFiles) + } + if m.entity_type != nil { + edges = append(edges, entity.EdgeEntityType) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *FeatureMutation) AddedIDs(name string) []ent.Value { +func (m *EntityMutation) AddedIDs(name string) []ent.Value { switch name { - case feature.EdgeOwner: + case entity.EdgeOwner: if id := m.owner; id != nil { return []ent.Value{*id} } - case feature.EdgePlans: - ids := make([]ent.Value, 0, len(m.plans)) - for id := range m.plans { + case entity.EdgeContacts: + ids := make([]ent.Value, 0, len(m.contacts)) + for id := range m.contacts { ids = append(ids, id) } return ids - case feature.EdgeEvents: - ids := make([]ent.Value, 0, len(m.events)) - for id := range m.events { + case entity.EdgeDocuments: + ids := make([]ent.Value, 0, len(m.documents)) + for id := range m.documents { ids = append(ids, id) } return ids - case feature.EdgeFeatures: - ids := make([]ent.Value, 0, len(m.features)) - for id := range m.features { + case entity.EdgeNotes: + ids := make([]ent.Value, 0, len(m.notes)) + for id := range m.notes { + ids = append(ids, id) + } + return ids + case entity.EdgeFiles: + ids := make([]ent.Value, 0, len(m.files)) + for id := range m.files { ids = append(ids, id) } return ids + case entity.EdgeEntityType: + if id := m.entity_type; id != nil { + return []ent.Value{*id} + } } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *FeatureMutation) RemovedEdges() []string { - edges := make([]string, 0, 4) - if m.removedplans != nil { - edges = append(edges, feature.EdgePlans) +func (m *EntityMutation) RemovedEdges() []string { + edges := make([]string, 0, 6) + if m.removedcontacts != nil { + edges = append(edges, entity.EdgeContacts) } - if m.removedevents != nil { - edges = append(edges, feature.EdgeEvents) + if m.removeddocuments != nil { + edges = append(edges, entity.EdgeDocuments) } - if m.removedfeatures != nil { - edges = append(edges, feature.EdgeFeatures) + if m.removednotes != nil { + edges = append(edges, entity.EdgeNotes) + } + if m.removedfiles != nil { + edges = append(edges, entity.EdgeFiles) } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *FeatureMutation) RemovedIDs(name string) []ent.Value { +func (m *EntityMutation) RemovedIDs(name string) []ent.Value { switch name { - case feature.EdgePlans: - ids := make([]ent.Value, 0, len(m.removedplans)) - for id := range m.removedplans { + case entity.EdgeContacts: + ids := make([]ent.Value, 0, len(m.removedcontacts)) + for id := range m.removedcontacts { ids = append(ids, id) } return ids - case feature.EdgeEvents: - ids := make([]ent.Value, 0, len(m.removedevents)) - for id := range m.removedevents { + case entity.EdgeDocuments: + ids := make([]ent.Value, 0, len(m.removeddocuments)) + for id := range m.removeddocuments { ids = append(ids, id) } return ids - case feature.EdgeFeatures: - ids := make([]ent.Value, 0, len(m.removedfeatures)) - for id := range m.removedfeatures { + case entity.EdgeNotes: + ids := make([]ent.Value, 0, len(m.removednotes)) + for id := range m.removednotes { + ids = append(ids, id) + } + return ids + case entity.EdgeFiles: + ids := make([]ent.Value, 0, len(m.removedfiles)) + for id := range m.removedfiles { ids = append(ids, id) } return ids @@ -28082,111 +30588,132 @@ func (m *FeatureMutation) RemovedIDs(name string) []ent.Value { } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *FeatureMutation) ClearedEdges() []string { - edges := make([]string, 0, 4) +func (m *EntityMutation) ClearedEdges() []string { + edges := make([]string, 0, 6) if m.clearedowner { - edges = append(edges, feature.EdgeOwner) + edges = append(edges, entity.EdgeOwner) } - if m.clearedplans { - edges = append(edges, feature.EdgePlans) + if m.clearedcontacts { + edges = append(edges, entity.EdgeContacts) } - if m.clearedevents { - edges = append(edges, feature.EdgeEvents) + if m.cleareddocuments { + edges = append(edges, entity.EdgeDocuments) } - if m.clearedfeatures { - edges = append(edges, feature.EdgeFeatures) + if m.clearednotes { + edges = append(edges, entity.EdgeNotes) + } + if m.clearedfiles { + edges = append(edges, entity.EdgeFiles) + } + if m.clearedentity_type { + edges = append(edges, entity.EdgeEntityType) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *FeatureMutation) EdgeCleared(name string) bool { +func (m *EntityMutation) EdgeCleared(name string) bool { switch name { - case feature.EdgeOwner: + case entity.EdgeOwner: return m.clearedowner - case feature.EdgePlans: - return m.clearedplans - case feature.EdgeEvents: - return m.clearedevents - case feature.EdgeFeatures: - return m.clearedfeatures + case entity.EdgeContacts: + return m.clearedcontacts + case entity.EdgeDocuments: + return m.cleareddocuments + case entity.EdgeNotes: + return m.clearednotes + case entity.EdgeFiles: + return m.clearedfiles + case entity.EdgeEntityType: + return m.clearedentity_type } 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 *FeatureMutation) ClearEdge(name string) error { +func (m *EntityMutation) ClearEdge(name string) error { switch name { - case feature.EdgeOwner: + case entity.EdgeOwner: m.ClearOwner() return nil + case entity.EdgeEntityType: + m.ClearEntityType() + return nil } - return fmt.Errorf("unknown Feature unique edge %s", name) + return fmt.Errorf("unknown Entity 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 *FeatureMutation) ResetEdge(name string) error { +func (m *EntityMutation) ResetEdge(name string) error { switch name { - case feature.EdgeOwner: + case entity.EdgeOwner: m.ResetOwner() return nil - case feature.EdgePlans: - m.ResetPlans() + case entity.EdgeContacts: + m.ResetContacts() return nil - case feature.EdgeEvents: - m.ResetEvents() + case entity.EdgeDocuments: + m.ResetDocuments() return nil - case feature.EdgeFeatures: - m.ResetFeatures() + case entity.EdgeNotes: + m.ResetNotes() + return nil + case entity.EdgeFiles: + m.ResetFiles() + return nil + case entity.EdgeEntityType: + m.ResetEntityType() return nil } - return fmt.Errorf("unknown Feature edge %s", name) + return fmt.Errorf("unknown Entity edge %s", name) } -// FeatureHistoryMutation represents an operation that mutates the FeatureHistory nodes in the graph. -type FeatureHistoryMutation struct { +// EntityHistoryMutation represents an operation that mutates the EntityHistory nodes in the graph. +type EntityHistoryMutation 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 - deleted_at *time.Time - deleted_by *string - mapping_id *string - tags *[]string - appendtags []string - owner_id *string - name *string - display_name *string - enabled *bool - description *string - metadata *map[string]interface{} - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*FeatureHistory, error) - predicates []predicate.FeatureHistory + 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 + mapping_id *string + deleted_at *time.Time + deleted_by *string + tags *[]string + appendtags []string + owner_id *string + name *string + display_name *string + description *string + domains *[]string + appenddomains []string + entity_type_id *string + status *string + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*EntityHistory, error) + predicates []predicate.EntityHistory } -var _ ent.Mutation = (*FeatureHistoryMutation)(nil) +var _ ent.Mutation = (*EntityHistoryMutation)(nil) -// featurehistoryOption allows management of the mutation configuration using functional options. -type featurehistoryOption func(*FeatureHistoryMutation) +// entityhistoryOption allows management of the mutation configuration using functional options. +type entityhistoryOption func(*EntityHistoryMutation) -// newFeatureHistoryMutation creates new mutation for the FeatureHistory entity. -func newFeatureHistoryMutation(c config, op Op, opts ...featurehistoryOption) *FeatureHistoryMutation { - m := &FeatureHistoryMutation{ +// newEntityHistoryMutation creates new mutation for the EntityHistory entity. +func newEntityHistoryMutation(c config, op Op, opts ...entityhistoryOption) *EntityHistoryMutation { + m := &EntityHistoryMutation{ config: c, op: op, - typ: TypeFeatureHistory, + typ: TypeEntityHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -28195,20 +30722,20 @@ func newFeatureHistoryMutation(c config, op Op, opts ...featurehistoryOption) *F return m } -// withFeatureHistoryID sets the ID field of the mutation. -func withFeatureHistoryID(id string) featurehistoryOption { - return func(m *FeatureHistoryMutation) { +// withEntityHistoryID sets the ID field of the mutation. +func withEntityHistoryID(id string) entityhistoryOption { + return func(m *EntityHistoryMutation) { var ( err error once sync.Once - value *FeatureHistory + value *EntityHistory ) - m.oldValue = func(ctx context.Context) (*FeatureHistory, error) { + m.oldValue = func(ctx context.Context) (*EntityHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().FeatureHistory.Get(ctx, id) + value, err = m.Client().EntityHistory.Get(ctx, id) } }) return value, err @@ -28217,10 +30744,10 @@ func withFeatureHistoryID(id string) featurehistoryOption { } } -// withFeatureHistory sets the old FeatureHistory of the mutation. -func withFeatureHistory(node *FeatureHistory) featurehistoryOption { - return func(m *FeatureHistoryMutation) { - m.oldValue = func(context.Context) (*FeatureHistory, error) { +// withEntityHistory sets the old EntityHistory of the mutation. +func withEntityHistory(node *EntityHistory) entityhistoryOption { + return func(m *EntityHistoryMutation) { + m.oldValue = func(context.Context) (*EntityHistory, error) { return node, nil } m.id = &node.ID @@ -28229,7 +30756,7 @@ func withFeatureHistory(node *FeatureHistory) featurehistoryOption { // 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 FeatureHistoryMutation) Client() *Client { +func (m EntityHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -28237,7 +30764,7 @@ func (m FeatureHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m FeatureHistoryMutation) Tx() (*Tx, error) { +func (m EntityHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -28247,14 +30774,14 @@ func (m FeatureHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of FeatureHistory entities. -func (m *FeatureHistoryMutation) SetID(id string) { +// operation is only accepted on creation of EntityHistory entities. +func (m *EntityHistoryMutation) 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 *FeatureHistoryMutation) ID() (id string, exists bool) { +func (m *EntityHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -28265,7 +30792,7 @@ func (m *FeatureHistoryMutation) ID() (id string, exists bool) { // 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 *FeatureHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *EntityHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -28274,19 +30801,19 @@ func (m *FeatureHistoryMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().FeatureHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().EntityHistory.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 *FeatureHistoryMutation) SetHistoryTime(t time.Time) { +func (m *EntityHistoryMutation) SetHistoryTime(t time.Time) { m.history_time = &t } // HistoryTime returns the value of the "history_time" field in the mutation. -func (m *FeatureHistoryMutation) HistoryTime() (r time.Time, exists bool) { +func (m *EntityHistoryMutation) HistoryTime() (r time.Time, exists bool) { v := m.history_time if v == nil { return @@ -28294,10 +30821,10 @@ func (m *FeatureHistoryMutation) HistoryTime() (r time.Time, exists bool) { return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *EntityHistoryMutation) 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") } @@ -28312,17 +30839,17 @@ func (m *FeatureHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Tim } // ResetHistoryTime resets all changes to the "history_time" field. -func (m *FeatureHistoryMutation) ResetHistoryTime() { +func (m *EntityHistoryMutation) ResetHistoryTime() { m.history_time = nil } // SetRef sets the "ref" field. -func (m *FeatureHistoryMutation) SetRef(s string) { +func (m *EntityHistoryMutation) SetRef(s string) { m.ref = &s } // Ref returns the value of the "ref" field in the mutation. -func (m *FeatureHistoryMutation) Ref() (r string, exists bool) { +func (m *EntityHistoryMutation) Ref() (r string, exists bool) { v := m.ref if v == nil { return @@ -28330,10 +30857,10 @@ func (m *FeatureHistoryMutation) Ref() (r string, exists bool) { return *v, true } -// OldRef returns the old "ref" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *EntityHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldRef is only allowed on UpdateOne operations") } @@ -28348,30 +30875,30 @@ func (m *FeatureHistoryMutation) OldRef(ctx context.Context) (v string, err erro } // ClearRef clears the value of the "ref" field. -func (m *FeatureHistoryMutation) ClearRef() { +func (m *EntityHistoryMutation) ClearRef() { m.ref = nil - m.clearedFields[featurehistory.FieldRef] = struct{}{} + m.clearedFields[entityhistory.FieldRef] = struct{}{} } // RefCleared returns if the "ref" field was cleared in this mutation. -func (m *FeatureHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[featurehistory.FieldRef] +func (m *EntityHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldRef] return ok } // ResetRef resets all changes to the "ref" field. -func (m *FeatureHistoryMutation) ResetRef() { +func (m *EntityHistoryMutation) ResetRef() { m.ref = nil - delete(m.clearedFields, featurehistory.FieldRef) + delete(m.clearedFields, entityhistory.FieldRef) } // SetOperation sets the "operation" field. -func (m *FeatureHistoryMutation) SetOperation(ht history.OpType) { +func (m *EntityHistoryMutation) SetOperation(ht history.OpType) { m.operation = &ht } // Operation returns the value of the "operation" field in the mutation. -func (m *FeatureHistoryMutation) Operation() (r history.OpType, exists bool) { +func (m *EntityHistoryMutation) Operation() (r history.OpType, exists bool) { v := m.operation if v == nil { return @@ -28379,10 +30906,10 @@ func (m *FeatureHistoryMutation) Operation() (r history.OpType, exists bool) { return *v, true } -// OldOperation returns the old "operation" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *EntityHistoryMutation) 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") } @@ -28397,17 +30924,17 @@ func (m *FeatureHistoryMutation) OldOperation(ctx context.Context) (v history.Op } // ResetOperation resets all changes to the "operation" field. -func (m *FeatureHistoryMutation) ResetOperation() { +func (m *EntityHistoryMutation) ResetOperation() { m.operation = nil } // SetCreatedAt sets the "created_at" field. -func (m *FeatureHistoryMutation) SetCreatedAt(t time.Time) { +func (m *EntityHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *FeatureHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *EntityHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -28415,10 +30942,10 @@ func (m *FeatureHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntityHistoryMutation) 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") } @@ -28433,30 +30960,30 @@ func (m *FeatureHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, } // ClearCreatedAt clears the value of the "created_at" field. -func (m *FeatureHistoryMutation) ClearCreatedAt() { +func (m *EntityHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[featurehistory.FieldCreatedAt] = struct{}{} + m.clearedFields[entityhistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *FeatureHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[featurehistory.FieldCreatedAt] +func (m *EntityHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *FeatureHistoryMutation) ResetCreatedAt() { +func (m *EntityHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, featurehistory.FieldCreatedAt) + delete(m.clearedFields, entityhistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *FeatureHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *EntityHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *FeatureHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *EntityHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -28464,10 +30991,10 @@ func (m *FeatureHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntityHistoryMutation) 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") } @@ -28482,30 +31009,30 @@ func (m *FeatureHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *FeatureHistoryMutation) ClearUpdatedAt() { +func (m *EntityHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[featurehistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[entityhistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *FeatureHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[featurehistory.FieldUpdatedAt] +func (m *EntityHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *FeatureHistoryMutation) ResetUpdatedAt() { +func (m *EntityHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, featurehistory.FieldUpdatedAt) + delete(m.clearedFields, entityhistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *FeatureHistoryMutation) SetCreatedBy(s string) { +func (m *EntityHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *FeatureHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *EntityHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -28513,10 +31040,10 @@ func (m *FeatureHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *EntityHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -28531,30 +31058,30 @@ func (m *FeatureHistoryMutation) OldCreatedBy(ctx context.Context) (v string, er } // ClearCreatedBy clears the value of the "created_by" field. -func (m *FeatureHistoryMutation) ClearCreatedBy() { +func (m *EntityHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[featurehistory.FieldCreatedBy] = struct{}{} + m.clearedFields[entityhistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *FeatureHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[featurehistory.FieldCreatedBy] +func (m *EntityHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *FeatureHistoryMutation) ResetCreatedBy() { +func (m *EntityHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, featurehistory.FieldCreatedBy) + delete(m.clearedFields, entityhistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *FeatureHistoryMutation) SetUpdatedBy(s string) { +func (m *EntityHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *FeatureHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *EntityHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -28562,10 +31089,10 @@ func (m *FeatureHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *EntityHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -28580,41 +31107,77 @@ func (m *FeatureHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, er } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *FeatureHistoryMutation) ClearUpdatedBy() { +func (m *EntityHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[featurehistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[entityhistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *FeatureHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[featurehistory.FieldUpdatedBy] +func (m *EntityHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *FeatureHistoryMutation) ResetUpdatedBy() { +func (m *EntityHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, featurehistory.FieldUpdatedBy) + delete(m.clearedFields, entityhistory.FieldUpdatedBy) } -// SetDeletedAt sets the "deleted_at" field. -func (m *FeatureHistoryMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetMappingID sets the "mapping_id" field. +func (m *EntityHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *FeatureHistoryMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *EntityHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntityHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *EntityHistoryMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *EntityHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *EntityHistoryMutation) 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 EntityHistory entity. +// If the EntityHistory 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 *EntityHistoryMutation) 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") } @@ -28629,30 +31192,30 @@ func (m *FeatureHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *FeatureHistoryMutation) ClearDeletedAt() { +func (m *EntityHistoryMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[featurehistory.FieldDeletedAt] = struct{}{} + m.clearedFields[entityhistory.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *FeatureHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[featurehistory.FieldDeletedAt] +func (m *EntityHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *FeatureHistoryMutation) ResetDeletedAt() { +func (m *EntityHistoryMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, featurehistory.FieldDeletedAt) + delete(m.clearedFields, entityhistory.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *FeatureHistoryMutation) SetDeletedBy(s string) { +func (m *EntityHistoryMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *FeatureHistoryMutation) DeletedBy() (r string, exists bool) { +func (m *EntityHistoryMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -28660,10 +31223,10 @@ func (m *FeatureHistoryMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *EntityHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -28678,67 +31241,31 @@ func (m *FeatureHistoryMutation) OldDeletedBy(ctx context.Context) (v string, er } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *FeatureHistoryMutation) ClearDeletedBy() { +func (m *EntityHistoryMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[featurehistory.FieldDeletedBy] = struct{}{} + m.clearedFields[entityhistory.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *FeatureHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[featurehistory.FieldDeletedBy] +func (m *EntityHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *FeatureHistoryMutation) ResetDeletedBy() { +func (m *EntityHistoryMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, featurehistory.FieldDeletedBy) -} - -// SetMappingID sets the "mapping_id" field. -func (m *FeatureHistoryMutation) SetMappingID(s string) { - m.mapping_id = &s -} - -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *FeatureHistoryMutation) MappingID() (r string, exists bool) { - v := m.mapping_id - if v == nil { - return - } - return *v, true -} - -// OldMappingID returns the old "mapping_id" field's value of the FeatureHistory entity. -// If the FeatureHistory 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 *FeatureHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) - } - return oldValue.MappingID, nil -} - -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *FeatureHistoryMutation) ResetMappingID() { - m.mapping_id = nil + delete(m.clearedFields, entityhistory.FieldDeletedBy) } // SetTags sets the "tags" field. -func (m *FeatureHistoryMutation) SetTags(s []string) { +func (m *EntityHistoryMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *FeatureHistoryMutation) Tags() (r []string, exists bool) { +func (m *EntityHistoryMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -28746,10 +31273,10 @@ func (m *FeatureHistoryMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *EntityHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -28764,12 +31291,12 @@ func (m *FeatureHistoryMutation) OldTags(ctx context.Context) (v []string, err e } // AppendTags adds s to the "tags" field. -func (m *FeatureHistoryMutation) AppendTags(s []string) { +func (m *EntityHistoryMutation) 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 *FeatureHistoryMutation) AppendedTags() ([]string, bool) { +func (m *EntityHistoryMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -28777,32 +31304,32 @@ func (m *FeatureHistoryMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *FeatureHistoryMutation) ClearTags() { +func (m *EntityHistoryMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[featurehistory.FieldTags] = struct{}{} + m.clearedFields[entityhistory.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *FeatureHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[featurehistory.FieldTags] +func (m *EntityHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *FeatureHistoryMutation) ResetTags() { +func (m *EntityHistoryMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, featurehistory.FieldTags) + delete(m.clearedFields, entityhistory.FieldTags) } // SetOwnerID sets the "owner_id" field. -func (m *FeatureHistoryMutation) SetOwnerID(s string) { +func (m *EntityHistoryMutation) SetOwnerID(s string) { m.owner_id = &s } // OwnerID returns the value of the "owner_id" field in the mutation. -func (m *FeatureHistoryMutation) OwnerID() (r string, exists bool) { +func (m *EntityHistoryMutation) OwnerID() (r string, exists bool) { v := m.owner_id if v == nil { return @@ -28810,10 +31337,10 @@ func (m *FeatureHistoryMutation) OwnerID() (r string, exists bool) { return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *EntityHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") } @@ -28828,30 +31355,30 @@ func (m *FeatureHistoryMutation) OldOwnerID(ctx context.Context) (v string, err } // ClearOwnerID clears the value of the "owner_id" field. -func (m *FeatureHistoryMutation) ClearOwnerID() { +func (m *EntityHistoryMutation) ClearOwnerID() { m.owner_id = nil - m.clearedFields[featurehistory.FieldOwnerID] = struct{}{} + m.clearedFields[entityhistory.FieldOwnerID] = struct{}{} } // OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *FeatureHistoryMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[featurehistory.FieldOwnerID] +func (m *EntityHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldOwnerID] return ok } // ResetOwnerID resets all changes to the "owner_id" field. -func (m *FeatureHistoryMutation) ResetOwnerID() { +func (m *EntityHistoryMutation) ResetOwnerID() { m.owner_id = nil - delete(m.clearedFields, featurehistory.FieldOwnerID) + delete(m.clearedFields, entityhistory.FieldOwnerID) } // SetName sets the "name" field. -func (m *FeatureHistoryMutation) SetName(s string) { +func (m *EntityHistoryMutation) SetName(s string) { m.name = &s } // Name returns the value of the "name" field in the mutation. -func (m *FeatureHistoryMutation) Name() (r string, exists bool) { +func (m *EntityHistoryMutation) Name() (r string, exists bool) { v := m.name if v == nil { return @@ -28859,10 +31386,10 @@ func (m *FeatureHistoryMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old "name" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldName(ctx context.Context) (v string, err error) { +func (m *EntityHistoryMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldName is only allowed on UpdateOne operations") } @@ -28876,18 +31403,31 @@ func (m *FeatureHistoryMutation) OldName(ctx context.Context) (v string, err err return oldValue.Name, nil } +// ClearName clears the value of the "name" field. +func (m *EntityHistoryMutation) ClearName() { + m.name = nil + m.clearedFields[entityhistory.FieldName] = struct{}{} +} + +// NameCleared returns if the "name" field was cleared in this mutation. +func (m *EntityHistoryMutation) NameCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldName] + return ok +} + // ResetName resets all changes to the "name" field. -func (m *FeatureHistoryMutation) ResetName() { +func (m *EntityHistoryMutation) ResetName() { m.name = nil + delete(m.clearedFields, entityhistory.FieldName) } // SetDisplayName sets the "display_name" field. -func (m *FeatureHistoryMutation) SetDisplayName(s string) { +func (m *EntityHistoryMutation) SetDisplayName(s string) { m.display_name = &s } // DisplayName returns the value of the "display_name" field in the mutation. -func (m *FeatureHistoryMutation) DisplayName() (r string, exists bool) { +func (m *EntityHistoryMutation) DisplayName() (r string, exists bool) { v := m.display_name if v == nil { return @@ -28895,10 +31435,10 @@ func (m *FeatureHistoryMutation) DisplayName() (r string, exists bool) { return *v, true } -// OldDisplayName returns the old "display_name" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDisplayName returns the old "display_name" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldDisplayName(ctx context.Context) (v string, err error) { +func (m *EntityHistoryMutation) OldDisplayName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") } @@ -28913,166 +31453,244 @@ func (m *FeatureHistoryMutation) OldDisplayName(ctx context.Context) (v string, } // ClearDisplayName clears the value of the "display_name" field. -func (m *FeatureHistoryMutation) ClearDisplayName() { +func (m *EntityHistoryMutation) ClearDisplayName() { m.display_name = nil - m.clearedFields[featurehistory.FieldDisplayName] = struct{}{} + m.clearedFields[entityhistory.FieldDisplayName] = struct{}{} } // DisplayNameCleared returns if the "display_name" field was cleared in this mutation. -func (m *FeatureHistoryMutation) DisplayNameCleared() bool { - _, ok := m.clearedFields[featurehistory.FieldDisplayName] +func (m *EntityHistoryMutation) DisplayNameCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldDisplayName] return ok } // ResetDisplayName resets all changes to the "display_name" field. -func (m *FeatureHistoryMutation) ResetDisplayName() { +func (m *EntityHistoryMutation) ResetDisplayName() { m.display_name = nil - delete(m.clearedFields, featurehistory.FieldDisplayName) + delete(m.clearedFields, entityhistory.FieldDisplayName) } -// SetEnabled sets the "enabled" field. -func (m *FeatureHistoryMutation) SetEnabled(b bool) { - m.enabled = &b +// SetDescription sets the "description" field. +func (m *EntityHistoryMutation) SetDescription(s string) { + m.description = &s } -// Enabled returns the value of the "enabled" field in the mutation. -func (m *FeatureHistoryMutation) Enabled() (r bool, exists bool) { - v := m.enabled +// Description returns the value of the "description" field in the mutation. +func (m *EntityHistoryMutation) Description() (r string, exists bool) { + v := m.description if v == nil { return } return *v, true } -// OldEnabled returns the old "enabled" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldEnabled(ctx context.Context) (v bool, err error) { +func (m *EntityHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldEnabled is only allowed on UpdateOne operations") + return v, errors.New("OldDescription is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldEnabled requires an ID field in the mutation") + 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 OldEnabled: %w", err) + return v, fmt.Errorf("querying old value for OldDescription: %w", err) } - return oldValue.Enabled, nil + return oldValue.Description, nil } -// ResetEnabled resets all changes to the "enabled" field. -func (m *FeatureHistoryMutation) ResetEnabled() { - m.enabled = nil +// ClearDescription clears the value of the "description" field. +func (m *EntityHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[entityhistory.FieldDescription] = struct{}{} } -// SetDescription sets the "description" field. -func (m *FeatureHistoryMutation) SetDescription(s string) { - m.description = &s +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *EntityHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldDescription] + return ok } -// Description returns the value of the "description" field in the mutation. -func (m *FeatureHistoryMutation) Description() (r string, exists bool) { - v := m.description +// ResetDescription resets all changes to the "description" field. +func (m *EntityHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, entityhistory.FieldDescription) +} + +// SetDomains sets the "domains" field. +func (m *EntityHistoryMutation) SetDomains(s []string) { + m.domains = &s + m.appenddomains = nil +} + +// Domains returns the value of the "domains" field in the mutation. +func (m *EntityHistoryMutation) Domains() (r []string, exists bool) { + v := m.domains if v == nil { return } return *v, true } -// OldDescription returns the old "description" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDomains returns the old "domains" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldDescription(ctx context.Context) (v *string, err error) { +func (m *EntityHistoryMutation) OldDomains(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDescription is only allowed on UpdateOne operations") + return v, errors.New("OldDomains 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") + return v, errors.New("OldDomains 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 v, fmt.Errorf("querying old value for OldDomains: %w", err) } - return oldValue.Description, nil + return oldValue.Domains, nil } -// ClearDescription clears the value of the "description" field. -func (m *FeatureHistoryMutation) ClearDescription() { - m.description = nil - m.clearedFields[featurehistory.FieldDescription] = struct{}{} +// AppendDomains adds s to the "domains" field. +func (m *EntityHistoryMutation) AppendDomains(s []string) { + m.appenddomains = append(m.appenddomains, s...) } -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *FeatureHistoryMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[featurehistory.FieldDescription] +// AppendedDomains returns the list of values that were appended to the "domains" field in this mutation. +func (m *EntityHistoryMutation) AppendedDomains() ([]string, bool) { + if len(m.appenddomains) == 0 { + return nil, false + } + return m.appenddomains, true +} + +// ClearDomains clears the value of the "domains" field. +func (m *EntityHistoryMutation) ClearDomains() { + m.domains = nil + m.appenddomains = nil + m.clearedFields[entityhistory.FieldDomains] = struct{}{} +} + +// DomainsCleared returns if the "domains" field was cleared in this mutation. +func (m *EntityHistoryMutation) DomainsCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldDomains] return ok } -// ResetDescription resets all changes to the "description" field. -func (m *FeatureHistoryMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, featurehistory.FieldDescription) +// ResetDomains resets all changes to the "domains" field. +func (m *EntityHistoryMutation) ResetDomains() { + m.domains = nil + m.appenddomains = nil + delete(m.clearedFields, entityhistory.FieldDomains) } -// SetMetadata sets the "metadata" field. -func (m *FeatureHistoryMutation) SetMetadata(value map[string]interface{}) { - m.metadata = &value +// SetEntityTypeID sets the "entity_type_id" field. +func (m *EntityHistoryMutation) SetEntityTypeID(s string) { + m.entity_type_id = &s } -// Metadata returns the value of the "metadata" field in the mutation. -func (m *FeatureHistoryMutation) Metadata() (r map[string]interface{}, exists bool) { - v := m.metadata +// EntityTypeID returns the value of the "entity_type_id" field in the mutation. +func (m *EntityHistoryMutation) EntityTypeID() (r string, exists bool) { + v := m.entity_type_id if v == nil { return } return *v, true } -// OldMetadata returns the old "metadata" field's value of the FeatureHistory entity. -// If the FeatureHistory object wasn't provided to the builder, the object is fetched from the database. +// OldEntityTypeID returns the old "entity_type_id" field's value of the EntityHistory entity. +// If the EntityHistory 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 *FeatureHistoryMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error) { +func (m *EntityHistoryMutation) OldEntityTypeID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMetadata is only allowed on UpdateOne operations") + return v, errors.New("OldEntityTypeID 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") + return v, errors.New("OldEntityTypeID 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 v, fmt.Errorf("querying old value for OldEntityTypeID: %w", err) } - return oldValue.Metadata, nil + return oldValue.EntityTypeID, nil } -// ClearMetadata clears the value of the "metadata" field. -func (m *FeatureHistoryMutation) ClearMetadata() { - m.metadata = nil - m.clearedFields[featurehistory.FieldMetadata] = struct{}{} +// ClearEntityTypeID clears the value of the "entity_type_id" field. +func (m *EntityHistoryMutation) ClearEntityTypeID() { + m.entity_type_id = nil + m.clearedFields[entityhistory.FieldEntityTypeID] = struct{}{} } -// MetadataCleared returns if the "metadata" field was cleared in this mutation. -func (m *FeatureHistoryMutation) MetadataCleared() bool { - _, ok := m.clearedFields[featurehistory.FieldMetadata] +// EntityTypeIDCleared returns if the "entity_type_id" field was cleared in this mutation. +func (m *EntityHistoryMutation) EntityTypeIDCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldEntityTypeID] return ok } -// ResetMetadata resets all changes to the "metadata" field. -func (m *FeatureHistoryMutation) ResetMetadata() { - m.metadata = nil - delete(m.clearedFields, featurehistory.FieldMetadata) +// ResetEntityTypeID resets all changes to the "entity_type_id" field. +func (m *EntityHistoryMutation) ResetEntityTypeID() { + m.entity_type_id = nil + delete(m.clearedFields, entityhistory.FieldEntityTypeID) } -// Where appends a list predicates to the FeatureHistoryMutation builder. -func (m *FeatureHistoryMutation) Where(ps ...predicate.FeatureHistory) { +// SetStatus sets the "status" field. +func (m *EntityHistoryMutation) SetStatus(s string) { + m.status = &s +} + +// Status returns the value of the "status" field in the mutation. +func (m *EntityHistoryMutation) Status() (r string, exists bool) { + v := m.status + if v == nil { + return + } + return *v, true +} + +// OldStatus returns the old "status" field's value of the EntityHistory entity. +// If the EntityHistory 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 *EntityHistoryMutation) OldStatus(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStatus is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStatus requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStatus: %w", err) + } + return oldValue.Status, nil +} + +// ClearStatus clears the value of the "status" field. +func (m *EntityHistoryMutation) ClearStatus() { + m.status = nil + m.clearedFields[entityhistory.FieldStatus] = struct{}{} +} + +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *EntityHistoryMutation) StatusCleared() bool { + _, ok := m.clearedFields[entityhistory.FieldStatus] + return ok +} + +// ResetStatus resets all changes to the "status" field. +func (m *EntityHistoryMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, entityhistory.FieldStatus) +} + +// Where appends a list predicates to the EntityHistoryMutation builder. +func (m *EntityHistoryMutation) Where(ps ...predicate.EntityHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the FeatureHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the EntityHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *FeatureHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.FeatureHistory, len(ps)) +func (m *EntityHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.EntityHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -29080,75 +31698,78 @@ func (m *FeatureHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *FeatureHistoryMutation) Op() Op { +func (m *EntityHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *FeatureHistoryMutation) SetOp(op Op) { +func (m *EntityHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (FeatureHistory). -func (m *FeatureHistoryMutation) Type() string { +// Type returns the node type of this mutation (EntityHistory). +func (m *EntityHistoryMutation) 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 *FeatureHistoryMutation) Fields() []string { - fields := make([]string, 0, 17) +func (m *EntityHistoryMutation) Fields() []string { + fields := make([]string, 0, 18) if m.history_time != nil { - fields = append(fields, featurehistory.FieldHistoryTime) + fields = append(fields, entityhistory.FieldHistoryTime) } if m.ref != nil { - fields = append(fields, featurehistory.FieldRef) + fields = append(fields, entityhistory.FieldRef) } if m.operation != nil { - fields = append(fields, featurehistory.FieldOperation) + fields = append(fields, entityhistory.FieldOperation) } if m.created_at != nil { - fields = append(fields, featurehistory.FieldCreatedAt) + fields = append(fields, entityhistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, featurehistory.FieldUpdatedAt) + fields = append(fields, entityhistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, featurehistory.FieldCreatedBy) + fields = append(fields, entityhistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, featurehistory.FieldUpdatedBy) + fields = append(fields, entityhistory.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, entityhistory.FieldMappingID) } if m.deleted_at != nil { - fields = append(fields, featurehistory.FieldDeletedAt) + fields = append(fields, entityhistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, featurehistory.FieldDeletedBy) - } - if m.mapping_id != nil { - fields = append(fields, featurehistory.FieldMappingID) + fields = append(fields, entityhistory.FieldDeletedBy) } if m.tags != nil { - fields = append(fields, featurehistory.FieldTags) + fields = append(fields, entityhistory.FieldTags) } if m.owner_id != nil { - fields = append(fields, featurehistory.FieldOwnerID) + fields = append(fields, entityhistory.FieldOwnerID) } if m.name != nil { - fields = append(fields, featurehistory.FieldName) + fields = append(fields, entityhistory.FieldName) } if m.display_name != nil { - fields = append(fields, featurehistory.FieldDisplayName) - } - if m.enabled != nil { - fields = append(fields, featurehistory.FieldEnabled) + fields = append(fields, entityhistory.FieldDisplayName) } if m.description != nil { - fields = append(fields, featurehistory.FieldDescription) + fields = append(fields, entityhistory.FieldDescription) } - if m.metadata != nil { - fields = append(fields, featurehistory.FieldMetadata) + if m.domains != nil { + fields = append(fields, entityhistory.FieldDomains) + } + if m.entity_type_id != nil { + fields = append(fields, entityhistory.FieldEntityTypeID) + } + if m.status != nil { + fields = append(fields, entityhistory.FieldStatus) } return fields } @@ -29156,42 +31777,44 @@ func (m *FeatureHistoryMutation) Fields() []string { // 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 *FeatureHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *EntityHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case featurehistory.FieldHistoryTime: + case entityhistory.FieldHistoryTime: return m.HistoryTime() - case featurehistory.FieldRef: + case entityhistory.FieldRef: return m.Ref() - case featurehistory.FieldOperation: + case entityhistory.FieldOperation: return m.Operation() - case featurehistory.FieldCreatedAt: + case entityhistory.FieldCreatedAt: return m.CreatedAt() - case featurehistory.FieldUpdatedAt: + case entityhistory.FieldUpdatedAt: return m.UpdatedAt() - case featurehistory.FieldCreatedBy: + case entityhistory.FieldCreatedBy: return m.CreatedBy() - case featurehistory.FieldUpdatedBy: + case entityhistory.FieldUpdatedBy: return m.UpdatedBy() - case featurehistory.FieldDeletedAt: + case entityhistory.FieldMappingID: + return m.MappingID() + case entityhistory.FieldDeletedAt: return m.DeletedAt() - case featurehistory.FieldDeletedBy: + case entityhistory.FieldDeletedBy: return m.DeletedBy() - case featurehistory.FieldMappingID: - return m.MappingID() - case featurehistory.FieldTags: + case entityhistory.FieldTags: return m.Tags() - case featurehistory.FieldOwnerID: + case entityhistory.FieldOwnerID: return m.OwnerID() - case featurehistory.FieldName: + case entityhistory.FieldName: return m.Name() - case featurehistory.FieldDisplayName: + case entityhistory.FieldDisplayName: return m.DisplayName() - case featurehistory.FieldEnabled: - return m.Enabled() - case featurehistory.FieldDescription: + case entityhistory.FieldDescription: return m.Description() - case featurehistory.FieldMetadata: - return m.Metadata() + case entityhistory.FieldDomains: + return m.Domains() + case entityhistory.FieldEntityTypeID: + return m.EntityTypeID() + case entityhistory.FieldStatus: + return m.Status() } return nil, false } @@ -29199,475 +31822,465 @@ func (m *FeatureHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *FeatureHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *EntityHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case featurehistory.FieldHistoryTime: + case entityhistory.FieldHistoryTime: return m.OldHistoryTime(ctx) - case featurehistory.FieldRef: + case entityhistory.FieldRef: return m.OldRef(ctx) - case featurehistory.FieldOperation: + case entityhistory.FieldOperation: return m.OldOperation(ctx) - case featurehistory.FieldCreatedAt: + case entityhistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case featurehistory.FieldUpdatedAt: + case entityhistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case featurehistory.FieldCreatedBy: + case entityhistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case featurehistory.FieldUpdatedBy: + case entityhistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case featurehistory.FieldDeletedAt: + case entityhistory.FieldMappingID: + return m.OldMappingID(ctx) + case entityhistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case featurehistory.FieldDeletedBy: + case entityhistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case featurehistory.FieldMappingID: - return m.OldMappingID(ctx) - case featurehistory.FieldTags: + case entityhistory.FieldTags: return m.OldTags(ctx) - case featurehistory.FieldOwnerID: + case entityhistory.FieldOwnerID: return m.OldOwnerID(ctx) - case featurehistory.FieldName: + case entityhistory.FieldName: return m.OldName(ctx) - case featurehistory.FieldDisplayName: + case entityhistory.FieldDisplayName: return m.OldDisplayName(ctx) - case featurehistory.FieldEnabled: - return m.OldEnabled(ctx) - case featurehistory.FieldDescription: + case entityhistory.FieldDescription: return m.OldDescription(ctx) - case featurehistory.FieldMetadata: - return m.OldMetadata(ctx) + case entityhistory.FieldDomains: + return m.OldDomains(ctx) + case entityhistory.FieldEntityTypeID: + return m.OldEntityTypeID(ctx) + case entityhistory.FieldStatus: + return m.OldStatus(ctx) } - return nil, fmt.Errorf("unknown FeatureHistory field %s", name) + return nil, fmt.Errorf("unknown EntityHistory 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 *FeatureHistoryMutation) SetField(name string, value ent.Value) error { +func (m *EntityHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case featurehistory.FieldHistoryTime: + case entityhistory.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 featurehistory.FieldRef: + case entityhistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetRef(v) return nil - case featurehistory.FieldOperation: + case entityhistory.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 featurehistory.FieldCreatedAt: + case entityhistory.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 featurehistory.FieldUpdatedAt: + case entityhistory.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 featurehistory.FieldCreatedBy: + case entityhistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case featurehistory.FieldUpdatedBy: + case entityhistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case featurehistory.FieldDeletedAt: - v, ok := value.(time.Time) + case entityhistory.FieldMappingID: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetMappingID(v) return nil - case featurehistory.FieldDeletedBy: - v, ok := value.(string) + case entityhistory.FieldDeletedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetDeletedAt(v) return nil - case featurehistory.FieldMappingID: + case entityhistory.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMappingID(v) + m.SetDeletedBy(v) return nil - case featurehistory.FieldTags: + case entityhistory.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case featurehistory.FieldOwnerID: + case entityhistory.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetOwnerID(v) return nil - case featurehistory.FieldName: + case entityhistory.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetName(v) return nil - case featurehistory.FieldDisplayName: + case entityhistory.FieldDisplayName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDisplayName(v) return nil - case featurehistory.FieldEnabled: - v, ok := value.(bool) + case entityhistory.FieldDescription: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetEnabled(v) + m.SetDescription(v) return nil - case featurehistory.FieldDescription: + case entityhistory.FieldDomains: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDomains(v) + return nil + case entityhistory.FieldEntityTypeID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetEntityTypeID(v) return nil - case featurehistory.FieldMetadata: - v, ok := value.(map[string]interface{}) + case entityhistory.FieldStatus: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMetadata(v) + m.SetStatus(v) return nil } - return fmt.Errorf("unknown FeatureHistory field %s", name) + return fmt.Errorf("unknown EntityHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *FeatureHistoryMutation) AddedFields() []string { +func (m *EntityHistoryMutation) 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 *FeatureHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *EntityHistoryMutation) 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 *FeatureHistoryMutation) AddField(name string, value ent.Value) error { +func (m *EntityHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown FeatureHistory numeric field %s", name) + return fmt.Errorf("unknown EntityHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *FeatureHistoryMutation) ClearedFields() []string { +func (m *EntityHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(featurehistory.FieldRef) { - fields = append(fields, featurehistory.FieldRef) + if m.FieldCleared(entityhistory.FieldRef) { + fields = append(fields, entityhistory.FieldRef) } - if m.FieldCleared(featurehistory.FieldCreatedAt) { - fields = append(fields, featurehistory.FieldCreatedAt) + if m.FieldCleared(entityhistory.FieldCreatedAt) { + fields = append(fields, entityhistory.FieldCreatedAt) } - if m.FieldCleared(featurehistory.FieldUpdatedAt) { - fields = append(fields, featurehistory.FieldUpdatedAt) + if m.FieldCleared(entityhistory.FieldUpdatedAt) { + fields = append(fields, entityhistory.FieldUpdatedAt) } - if m.FieldCleared(featurehistory.FieldCreatedBy) { - fields = append(fields, featurehistory.FieldCreatedBy) + if m.FieldCleared(entityhistory.FieldCreatedBy) { + fields = append(fields, entityhistory.FieldCreatedBy) } - if m.FieldCleared(featurehistory.FieldUpdatedBy) { - fields = append(fields, featurehistory.FieldUpdatedBy) + if m.FieldCleared(entityhistory.FieldUpdatedBy) { + fields = append(fields, entityhistory.FieldUpdatedBy) } - if m.FieldCleared(featurehistory.FieldDeletedAt) { - fields = append(fields, featurehistory.FieldDeletedAt) + if m.FieldCleared(entityhistory.FieldDeletedAt) { + fields = append(fields, entityhistory.FieldDeletedAt) } - if m.FieldCleared(featurehistory.FieldDeletedBy) { - fields = append(fields, featurehistory.FieldDeletedBy) + if m.FieldCleared(entityhistory.FieldDeletedBy) { + fields = append(fields, entityhistory.FieldDeletedBy) } - if m.FieldCleared(featurehistory.FieldTags) { - fields = append(fields, featurehistory.FieldTags) + if m.FieldCleared(entityhistory.FieldTags) { + fields = append(fields, entityhistory.FieldTags) } - if m.FieldCleared(featurehistory.FieldOwnerID) { - fields = append(fields, featurehistory.FieldOwnerID) + if m.FieldCleared(entityhistory.FieldOwnerID) { + fields = append(fields, entityhistory.FieldOwnerID) } - if m.FieldCleared(featurehistory.FieldDisplayName) { - fields = append(fields, featurehistory.FieldDisplayName) + if m.FieldCleared(entityhistory.FieldName) { + fields = append(fields, entityhistory.FieldName) } - if m.FieldCleared(featurehistory.FieldDescription) { - fields = append(fields, featurehistory.FieldDescription) + if m.FieldCleared(entityhistory.FieldDisplayName) { + fields = append(fields, entityhistory.FieldDisplayName) } - if m.FieldCleared(featurehistory.FieldMetadata) { - fields = append(fields, featurehistory.FieldMetadata) + if m.FieldCleared(entityhistory.FieldDescription) { + fields = append(fields, entityhistory.FieldDescription) + } + if m.FieldCleared(entityhistory.FieldDomains) { + fields = append(fields, entityhistory.FieldDomains) + } + if m.FieldCleared(entityhistory.FieldEntityTypeID) { + fields = append(fields, entityhistory.FieldEntityTypeID) + } + if m.FieldCleared(entityhistory.FieldStatus) { + fields = append(fields, entityhistory.FieldStatus) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *FeatureHistoryMutation) FieldCleared(name string) bool { +func (m *EntityHistoryMutation) 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 *FeatureHistoryMutation) ClearField(name string) error { +func (m *EntityHistoryMutation) ClearField(name string) error { switch name { - case featurehistory.FieldRef: + case entityhistory.FieldRef: m.ClearRef() return nil - case featurehistory.FieldCreatedAt: + case entityhistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case featurehistory.FieldUpdatedAt: + case entityhistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case featurehistory.FieldCreatedBy: + case entityhistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case featurehistory.FieldUpdatedBy: + case entityhistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case featurehistory.FieldDeletedAt: + case entityhistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case featurehistory.FieldDeletedBy: + case entityhistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case featurehistory.FieldTags: + case entityhistory.FieldTags: m.ClearTags() return nil - case featurehistory.FieldOwnerID: + case entityhistory.FieldOwnerID: m.ClearOwnerID() return nil - case featurehistory.FieldDisplayName: + case entityhistory.FieldName: + m.ClearName() + return nil + case entityhistory.FieldDisplayName: m.ClearDisplayName() return nil - case featurehistory.FieldDescription: + case entityhistory.FieldDescription: m.ClearDescription() return nil - case featurehistory.FieldMetadata: - m.ClearMetadata() + case entityhistory.FieldDomains: + m.ClearDomains() + return nil + case entityhistory.FieldEntityTypeID: + m.ClearEntityTypeID() + return nil + case entityhistory.FieldStatus: + m.ClearStatus() return nil } - return fmt.Errorf("unknown FeatureHistory nullable field %s", name) + return fmt.Errorf("unknown EntityHistory 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 *FeatureHistoryMutation) ResetField(name string) error { +func (m *EntityHistoryMutation) ResetField(name string) error { switch name { - case featurehistory.FieldHistoryTime: + case entityhistory.FieldHistoryTime: m.ResetHistoryTime() return nil - case featurehistory.FieldRef: + case entityhistory.FieldRef: m.ResetRef() return nil - case featurehistory.FieldOperation: + case entityhistory.FieldOperation: m.ResetOperation() return nil - case featurehistory.FieldCreatedAt: + case entityhistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case featurehistory.FieldUpdatedAt: + case entityhistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case featurehistory.FieldCreatedBy: + case entityhistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case featurehistory.FieldUpdatedBy: + case entityhistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case featurehistory.FieldDeletedAt: + case entityhistory.FieldMappingID: + m.ResetMappingID() + return nil + case entityhistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case featurehistory.FieldDeletedBy: + case entityhistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case featurehistory.FieldMappingID: - m.ResetMappingID() - return nil - case featurehistory.FieldTags: + case entityhistory.FieldTags: m.ResetTags() return nil - case featurehistory.FieldOwnerID: + case entityhistory.FieldOwnerID: m.ResetOwnerID() return nil - case featurehistory.FieldName: + case entityhistory.FieldName: m.ResetName() return nil - case featurehistory.FieldDisplayName: + case entityhistory.FieldDisplayName: m.ResetDisplayName() return nil - case featurehistory.FieldEnabled: - m.ResetEnabled() - return nil - case featurehistory.FieldDescription: + case entityhistory.FieldDescription: m.ResetDescription() return nil - case featurehistory.FieldMetadata: - m.ResetMetadata() + case entityhistory.FieldDomains: + m.ResetDomains() + return nil + case entityhistory.FieldEntityTypeID: + m.ResetEntityTypeID() + return nil + case entityhistory.FieldStatus: + m.ResetStatus() return nil } - return fmt.Errorf("unknown FeatureHistory field %s", name) + return fmt.Errorf("unknown EntityHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *FeatureHistoryMutation) AddedEdges() []string { +func (m *EntityHistoryMutation) 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 *FeatureHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *EntityHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *FeatureHistoryMutation) RemovedEdges() []string { +func (m *EntityHistoryMutation) 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 *FeatureHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *EntityHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *FeatureHistoryMutation) ClearedEdges() []string { +func (m *EntityHistoryMutation) 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 *FeatureHistoryMutation) EdgeCleared(name string) bool { +func (m *EntityHistoryMutation) 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 *FeatureHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown FeatureHistory unique edge %s", name) +func (m *EntityHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown EntityHistory 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 *FeatureHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown FeatureHistory edge %s", name) +func (m *EntityHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown EntityHistory edge %s", name) } -// FileMutation represents an operation that mutates the File nodes in the graph. -type FileMutation struct { +// EntityTypeMutation represents an operation that mutates the EntityType nodes in the graph. +type EntityTypeMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - deleted_at *time.Time - deleted_by *string - mapping_id *string - tags *[]string - appendtags []string - provided_file_name *string - provided_file_extension *string - provided_file_size *int64 - addprovided_file_size *int64 - persisted_file_size *int64 - addpersisted_file_size *int64 - detected_mime_type *string - md5_hash *string - detected_content_type *string - store_key *string - category_type *string - uri *string - storage_scheme *string - storage_volume *string - storage_path *string - file_contents *[]byte - clearedFields map[string]struct{} - user map[string]struct{} - removeduser map[string]struct{} - cleareduser bool - organization map[string]struct{} - removedorganization map[string]struct{} - clearedorganization bool - group map[string]struct{} - removedgroup map[string]struct{} - clearedgroup bool - contact map[string]struct{} - removedcontact map[string]struct{} - clearedcontact bool - entity map[string]struct{} - removedentity map[string]struct{} - clearedentity bool - usersetting map[string]struct{} - removedusersetting map[string]struct{} - clearedusersetting bool - organizationsetting map[string]struct{} - removedorganizationsetting map[string]struct{} - clearedorganizationsetting bool - template map[string]struct{} - removedtemplate map[string]struct{} - clearedtemplate bool - documentdata map[string]struct{} - removeddocumentdata map[string]struct{} - cleareddocumentdata bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - done bool - oldValue func(context.Context) (*File, error) - predicates []predicate.File + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + deleted_at *time.Time + deleted_by *string + tags *[]string + appendtags []string + name *string + clearedFields map[string]struct{} + owner *string + clearedowner bool + entities map[string]struct{} + removedentities map[string]struct{} + clearedentities bool + done bool + oldValue func(context.Context) (*EntityType, error) + predicates []predicate.EntityType } -var _ ent.Mutation = (*FileMutation)(nil) +var _ ent.Mutation = (*EntityTypeMutation)(nil) -// fileOption allows management of the mutation configuration using functional options. -type fileOption func(*FileMutation) +// entitytypeOption allows management of the mutation configuration using functional options. +type entitytypeOption func(*EntityTypeMutation) -// newFileMutation creates new mutation for the File entity. -func newFileMutation(c config, op Op, opts ...fileOption) *FileMutation { - m := &FileMutation{ +// newEntityTypeMutation creates new mutation for the EntityType entity. +func newEntityTypeMutation(c config, op Op, opts ...entitytypeOption) *EntityTypeMutation { + m := &EntityTypeMutation{ config: c, op: op, - typ: TypeFile, + typ: TypeEntityType, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -29676,20 +32289,20 @@ func newFileMutation(c config, op Op, opts ...fileOption) *FileMutation { return m } -// withFileID sets the ID field of the mutation. -func withFileID(id string) fileOption { - return func(m *FileMutation) { +// withEntityTypeID sets the ID field of the mutation. +func withEntityTypeID(id string) entitytypeOption { + return func(m *EntityTypeMutation) { var ( err error once sync.Once - value *File + value *EntityType ) - m.oldValue = func(ctx context.Context) (*File, error) { + m.oldValue = func(ctx context.Context) (*EntityType, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().File.Get(ctx, id) + value, err = m.Client().EntityType.Get(ctx, id) } }) return value, err @@ -29698,10 +32311,10 @@ func withFileID(id string) fileOption { } } -// withFile sets the old File of the mutation. -func withFile(node *File) fileOption { - return func(m *FileMutation) { - m.oldValue = func(context.Context) (*File, error) { +// withEntityType sets the old EntityType of the mutation. +func withEntityType(node *EntityType) entitytypeOption { + return func(m *EntityTypeMutation) { + m.oldValue = func(context.Context) (*EntityType, error) { return node, nil } m.id = &node.ID @@ -29710,7 +32323,7 @@ func withFile(node *File) fileOption { // 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 FileMutation) Client() *Client { +func (m EntityTypeMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -29718,7 +32331,7 @@ func (m FileMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m FileMutation) Tx() (*Tx, error) { +func (m EntityTypeMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -29728,14 +32341,14 @@ func (m FileMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of File entities. -func (m *FileMutation) SetID(id string) { +// operation is only accepted on creation of EntityType entities. +func (m *EntityTypeMutation) 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 *FileMutation) ID() (id string, exists bool) { +func (m *EntityTypeMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -29746,7 +32359,7 @@ func (m *FileMutation) ID() (id string, exists bool) { // 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 *FileMutation) IDs(ctx context.Context) ([]string, error) { +func (m *EntityTypeMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -29755,19 +32368,19 @@ func (m *FileMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().File.Query().Where(m.predicates...).IDs(ctx) + return m.Client().EntityType.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 *FileMutation) SetCreatedAt(t time.Time) { +func (m *EntityTypeMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *FileMutation) CreatedAt() (r time.Time, exists bool) { +func (m *EntityTypeMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -29775,10 +32388,10 @@ func (m *FileMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the File entity. -// If the File object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the EntityType entity. +// If the EntityType 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 *FileMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntityTypeMutation) 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") } @@ -29793,30 +32406,30 @@ func (m *FileMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error } // ClearCreatedAt clears the value of the "created_at" field. -func (m *FileMutation) ClearCreatedAt() { +func (m *EntityTypeMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[file.FieldCreatedAt] = struct{}{} + m.clearedFields[entitytype.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *FileMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[file.FieldCreatedAt] +func (m *EntityTypeMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[entitytype.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *FileMutation) ResetCreatedAt() { +func (m *EntityTypeMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, file.FieldCreatedAt) + delete(m.clearedFields, entitytype.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *FileMutation) SetUpdatedAt(t time.Time) { +func (m *EntityTypeMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *FileMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *EntityTypeMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -29824,10 +32437,10 @@ func (m *FileMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the File entity. -// If the File object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the EntityType entity. +// If the EntityType 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 *FileMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntityTypeMutation) 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") } @@ -29842,30 +32455,30 @@ func (m *FileMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *FileMutation) ClearUpdatedAt() { +func (m *EntityTypeMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[file.FieldUpdatedAt] = struct{}{} + m.clearedFields[entitytype.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *FileMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[file.FieldUpdatedAt] +func (m *EntityTypeMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[entitytype.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *FileMutation) ResetUpdatedAt() { +func (m *EntityTypeMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, file.FieldUpdatedAt) + delete(m.clearedFields, entitytype.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *FileMutation) SetCreatedBy(s string) { +func (m *EntityTypeMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *FileMutation) CreatedBy() (r string, exists bool) { +func (m *EntityTypeMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -29873,10 +32486,10 @@ func (m *FileMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the File entity. -// If the File object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the EntityType entity. +// If the EntityType 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 *FileMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *EntityTypeMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -29891,30 +32504,30 @@ func (m *FileMutation) OldCreatedBy(ctx context.Context) (v string, err error) { } // ClearCreatedBy clears the value of the "created_by" field. -func (m *FileMutation) ClearCreatedBy() { +func (m *EntityTypeMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[file.FieldCreatedBy] = struct{}{} + m.clearedFields[entitytype.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *FileMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[file.FieldCreatedBy] +func (m *EntityTypeMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[entitytype.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *FileMutation) ResetCreatedBy() { +func (m *EntityTypeMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, file.FieldCreatedBy) + delete(m.clearedFields, entitytype.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *FileMutation) SetUpdatedBy(s string) { +func (m *EntityTypeMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *FileMutation) UpdatedBy() (r string, exists bool) { +func (m *EntityTypeMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -29922,10 +32535,10 @@ func (m *FileMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the File entity. -// If the File 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 *FileMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +// OldUpdatedBy returns the old "updated_by" field's value of the EntityType entity. +// If the EntityType 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 *EntityTypeMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -29940,30 +32553,66 @@ func (m *FileMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *FileMutation) ClearUpdatedBy() { +func (m *EntityTypeMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[file.FieldUpdatedBy] = struct{}{} + m.clearedFields[entitytype.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *FileMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[file.FieldUpdatedBy] +func (m *EntityTypeMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[entitytype.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *FileMutation) ResetUpdatedBy() { +func (m *EntityTypeMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, file.FieldUpdatedBy) + delete(m.clearedFields, entitytype.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *EntityTypeMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *EntityTypeMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the EntityType entity. +// If the EntityType 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 *EntityTypeMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *EntityTypeMutation) ResetMappingID() { + m.mapping_id = nil } // SetDeletedAt sets the "deleted_at" field. -func (m *FileMutation) SetDeletedAt(t time.Time) { +func (m *EntityTypeMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *FileMutation) DeletedAt() (r time.Time, exists bool) { +func (m *EntityTypeMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -29971,10 +32620,10 @@ func (m *FileMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the File entity. -// If the File object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the EntityType entity. +// If the EntityType 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 *FileMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *EntityTypeMutation) 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") } @@ -29989,30 +32638,30 @@ func (m *FileMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *FileMutation) ClearDeletedAt() { +func (m *EntityTypeMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[file.FieldDeletedAt] = struct{}{} + m.clearedFields[entitytype.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *FileMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[file.FieldDeletedAt] +func (m *EntityTypeMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[entitytype.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *FileMutation) ResetDeletedAt() { +func (m *EntityTypeMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, file.FieldDeletedAt) + delete(m.clearedFields, entitytype.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *FileMutation) SetDeletedBy(s string) { +func (m *EntityTypeMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *FileMutation) DeletedBy() (r string, exists bool) { +func (m *EntityTypeMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -30020,10 +32669,10 @@ func (m *FileMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the File entity. -// If the File object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the EntityType entity. +// If the EntityType 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 *FileMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *EntityTypeMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -30038,67 +32687,31 @@ func (m *FileMutation) OldDeletedBy(ctx context.Context) (v string, err error) { } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *FileMutation) ClearDeletedBy() { +func (m *EntityTypeMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[file.FieldDeletedBy] = struct{}{} + m.clearedFields[entitytype.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *FileMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[file.FieldDeletedBy] +func (m *EntityTypeMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[entitytype.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *FileMutation) ResetDeletedBy() { +func (m *EntityTypeMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, file.FieldDeletedBy) -} - -// SetMappingID sets the "mapping_id" field. -func (m *FileMutation) SetMappingID(s string) { - m.mapping_id = &s -} - -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *FileMutation) MappingID() (r string, exists bool) { - v := m.mapping_id - if v == nil { - return - } - return *v, true -} - -// OldMappingID returns the old "mapping_id" field's value of the File entity. -// If the File 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 *FileMutation) OldMappingID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) - } - return oldValue.MappingID, nil -} - -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *FileMutation) ResetMappingID() { - m.mapping_id = nil + delete(m.clearedFields, entitytype.FieldDeletedBy) } // SetTags sets the "tags" field. -func (m *FileMutation) SetTags(s []string) { +func (m *EntityTypeMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *FileMutation) Tags() (r []string, exists bool) { +func (m *EntityTypeMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -30106,10 +32719,10 @@ func (m *FileMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the File entity. -// If the File object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the EntityType entity. +// If the EntityType 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 *FileMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *EntityTypeMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -30124,12 +32737,12 @@ func (m *FileMutation) OldTags(ctx context.Context) (v []string, err error) { } // AppendTags adds s to the "tags" field. -func (m *FileMutation) AppendTags(s []string) { +func (m *EntityTypeMutation) 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 *FileMutation) AppendedTags() ([]string, bool) { +func (m *EntityTypeMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -30137,1263 +32750,1368 @@ func (m *FileMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *FileMutation) ClearTags() { +func (m *EntityTypeMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[file.FieldTags] = struct{}{} + m.clearedFields[entitytype.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *FileMutation) TagsCleared() bool { - _, ok := m.clearedFields[file.FieldTags] +func (m *EntityTypeMutation) TagsCleared() bool { + _, ok := m.clearedFields[entitytype.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *FileMutation) ResetTags() { +func (m *EntityTypeMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, file.FieldTags) + delete(m.clearedFields, entitytype.FieldTags) } -// SetProvidedFileName sets the "provided_file_name" field. -func (m *FileMutation) SetProvidedFileName(s string) { - m.provided_file_name = &s +// SetOwnerID sets the "owner_id" field. +func (m *EntityTypeMutation) SetOwnerID(s string) { + m.owner = &s } -// ProvidedFileName returns the value of the "provided_file_name" field in the mutation. -func (m *FileMutation) ProvidedFileName() (r string, exists bool) { - v := m.provided_file_name +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *EntityTypeMutation) OwnerID() (r string, exists bool) { + v := m.owner if v == nil { return } return *v, true } -// OldProvidedFileName returns the old "provided_file_name" field's value of the File entity. -// If the File object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the EntityType entity. +// If the EntityType 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 *FileMutation) OldProvidedFileName(ctx context.Context) (v string, err error) { +func (m *EntityTypeMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldProvidedFileName is only allowed on UpdateOne operations") + return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldProvidedFileName requires an ID field in the mutation") + 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 OldProvidedFileName: %w", err) + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) } - return oldValue.ProvidedFileName, nil + return oldValue.OwnerID, nil } -// ResetProvidedFileName resets all changes to the "provided_file_name" field. -func (m *FileMutation) ResetProvidedFileName() { - m.provided_file_name = nil +// ClearOwnerID clears the value of the "owner_id" field. +func (m *EntityTypeMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[entitytype.FieldOwnerID] = struct{}{} } -// SetProvidedFileExtension sets the "provided_file_extension" field. -func (m *FileMutation) SetProvidedFileExtension(s string) { - m.provided_file_extension = &s +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *EntityTypeMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[entitytype.FieldOwnerID] + return ok } -// ProvidedFileExtension returns the value of the "provided_file_extension" field in the mutation. -func (m *FileMutation) ProvidedFileExtension() (r string, exists bool) { - v := m.provided_file_extension +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *EntityTypeMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, entitytype.FieldOwnerID) +} + +// SetName sets the "name" field. +func (m *EntityTypeMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *EntityTypeMutation) Name() (r string, exists bool) { + v := m.name if v == nil { return } return *v, true } -// OldProvidedFileExtension returns the old "provided_file_extension" field's value of the File entity. -// If the File object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the EntityType entity. +// If the EntityType 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 *FileMutation) OldProvidedFileExtension(ctx context.Context) (v string, err error) { +func (m *EntityTypeMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldProvidedFileExtension is only allowed on UpdateOne operations") + return v, errors.New("OldName is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldProvidedFileExtension requires an ID field in the mutation") + 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 OldProvidedFileExtension: %w", err) + return v, fmt.Errorf("querying old value for OldName: %w", err) } - return oldValue.ProvidedFileExtension, nil + return oldValue.Name, nil } -// ResetProvidedFileExtension resets all changes to the "provided_file_extension" field. -func (m *FileMutation) ResetProvidedFileExtension() { - m.provided_file_extension = nil +// ResetName resets all changes to the "name" field. +func (m *EntityTypeMutation) ResetName() { + m.name = nil } -// SetProvidedFileSize sets the "provided_file_size" field. -func (m *FileMutation) SetProvidedFileSize(i int64) { - m.provided_file_size = &i - m.addprovided_file_size = nil +// ClearOwner clears the "owner" edge to the Organization entity. +func (m *EntityTypeMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[entitytype.FieldOwnerID] = struct{}{} } -// ProvidedFileSize returns the value of the "provided_file_size" field in the mutation. -func (m *FileMutation) ProvidedFileSize() (r int64, exists bool) { - v := m.provided_file_size - if v == nil { - return - } - return *v, true +// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. +func (m *EntityTypeMutation) OwnerCleared() bool { + return m.OwnerIDCleared() || m.clearedowner } -// OldProvidedFileSize returns the old "provided_file_size" field's value of the File entity. -// If the File 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 *FileMutation) OldProvidedFileSize(ctx context.Context) (v int64, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldProvidedFileSize is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldProvidedFileSize requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldProvidedFileSize: %w", err) +// 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 *EntityTypeMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) } - return oldValue.ProvidedFileSize, nil + return } -// AddProvidedFileSize adds i to the "provided_file_size" field. -func (m *FileMutation) AddProvidedFileSize(i int64) { - if m.addprovided_file_size != nil { - *m.addprovided_file_size += i - } else { - m.addprovided_file_size = &i - } +// ResetOwner resets all changes to the "owner" edge. +func (m *EntityTypeMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false } -// AddedProvidedFileSize returns the value that was added to the "provided_file_size" field in this mutation. -func (m *FileMutation) AddedProvidedFileSize() (r int64, exists bool) { - v := m.addprovided_file_size - if v == nil { - return +// AddEntityIDs adds the "entities" edge to the Entity entity by ids. +func (m *EntityTypeMutation) AddEntityIDs(ids ...string) { + if m.entities == nil { + m.entities = make(map[string]struct{}) + } + for i := range ids { + m.entities[ids[i]] = struct{}{} } - return *v, true -} - -// ClearProvidedFileSize clears the value of the "provided_file_size" field. -func (m *FileMutation) ClearProvidedFileSize() { - m.provided_file_size = nil - m.addprovided_file_size = nil - m.clearedFields[file.FieldProvidedFileSize] = struct{}{} -} - -// ProvidedFileSizeCleared returns if the "provided_file_size" field was cleared in this mutation. -func (m *FileMutation) ProvidedFileSizeCleared() bool { - _, ok := m.clearedFields[file.FieldProvidedFileSize] - return ok } -// ResetProvidedFileSize resets all changes to the "provided_file_size" field. -func (m *FileMutation) ResetProvidedFileSize() { - m.provided_file_size = nil - m.addprovided_file_size = nil - delete(m.clearedFields, file.FieldProvidedFileSize) +// ClearEntities clears the "entities" edge to the Entity entity. +func (m *EntityTypeMutation) ClearEntities() { + m.clearedentities = true } -// SetPersistedFileSize sets the "persisted_file_size" field. -func (m *FileMutation) SetPersistedFileSize(i int64) { - m.persisted_file_size = &i - m.addpersisted_file_size = nil +// EntitiesCleared reports if the "entities" edge to the Entity entity was cleared. +func (m *EntityTypeMutation) EntitiesCleared() bool { + return m.clearedentities } -// PersistedFileSize returns the value of the "persisted_file_size" field in the mutation. -func (m *FileMutation) PersistedFileSize() (r int64, exists bool) { - v := m.persisted_file_size - if v == nil { - return +// RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs. +func (m *EntityTypeMutation) RemoveEntityIDs(ids ...string) { + if m.removedentities == nil { + m.removedentities = make(map[string]struct{}) + } + for i := range ids { + delete(m.entities, ids[i]) + m.removedentities[ids[i]] = struct{}{} } - return *v, true } -// OldPersistedFileSize returns the old "persisted_file_size" field's value of the File entity. -// If the File 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 *FileMutation) OldPersistedFileSize(ctx context.Context) (v int64, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldPersistedFileSize is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldPersistedFileSize requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldPersistedFileSize: %w", err) +// RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity. +func (m *EntityTypeMutation) RemovedEntitiesIDs() (ids []string) { + for id := range m.removedentities { + ids = append(ids, id) } - return oldValue.PersistedFileSize, nil + return } -// AddPersistedFileSize adds i to the "persisted_file_size" field. -func (m *FileMutation) AddPersistedFileSize(i int64) { - if m.addpersisted_file_size != nil { - *m.addpersisted_file_size += i - } else { - m.addpersisted_file_size = &i +// EntitiesIDs returns the "entities" edge IDs in the mutation. +func (m *EntityTypeMutation) EntitiesIDs() (ids []string) { + for id := range m.entities { + ids = append(ids, id) } + return } -// AddedPersistedFileSize returns the value that was added to the "persisted_file_size" field in this mutation. -func (m *FileMutation) AddedPersistedFileSize() (r int64, exists bool) { - v := m.addpersisted_file_size - if v == nil { - return - } - return *v, true +// ResetEntities resets all changes to the "entities" edge. +func (m *EntityTypeMutation) ResetEntities() { + m.entities = nil + m.clearedentities = false + m.removedentities = nil } -// ClearPersistedFileSize clears the value of the "persisted_file_size" field. -func (m *FileMutation) ClearPersistedFileSize() { - m.persisted_file_size = nil - m.addpersisted_file_size = nil - m.clearedFields[file.FieldPersistedFileSize] = struct{}{} +// Where appends a list predicates to the EntityTypeMutation builder. +func (m *EntityTypeMutation) Where(ps ...predicate.EntityType) { + m.predicates = append(m.predicates, ps...) } -// PersistedFileSizeCleared returns if the "persisted_file_size" field was cleared in this mutation. -func (m *FileMutation) PersistedFileSizeCleared() bool { - _, ok := m.clearedFields[file.FieldPersistedFileSize] - return ok +// WhereP appends storage-level predicates to the EntityTypeMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *EntityTypeMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.EntityType, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) } -// ResetPersistedFileSize resets all changes to the "persisted_file_size" field. -func (m *FileMutation) ResetPersistedFileSize() { - m.persisted_file_size = nil - m.addpersisted_file_size = nil - delete(m.clearedFields, file.FieldPersistedFileSize) +// Op returns the operation name. +func (m *EntityTypeMutation) Op() Op { + return m.op } -// SetDetectedMimeType sets the "detected_mime_type" field. -func (m *FileMutation) SetDetectedMimeType(s string) { - m.detected_mime_type = &s +// SetOp allows setting the mutation operation. +func (m *EntityTypeMutation) SetOp(op Op) { + m.op = op } -// DetectedMimeType returns the value of the "detected_mime_type" field in the mutation. -func (m *FileMutation) DetectedMimeType() (r string, exists bool) { - v := m.detected_mime_type - if v == nil { - return - } - return *v, true +// Type returns the node type of this mutation (EntityType). +func (m *EntityTypeMutation) Type() string { + return m.typ } -// OldDetectedMimeType returns the old "detected_mime_type" field's value of the File entity. -// If the File 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 *FileMutation) OldDetectedMimeType(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDetectedMimeType is only allowed on UpdateOne operations") +// 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 *EntityTypeMutation) Fields() []string { + fields := make([]string, 0, 10) + if m.created_at != nil { + fields = append(fields, entitytype.FieldCreatedAt) } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDetectedMimeType requires an ID field in the mutation") + if m.updated_at != nil { + fields = append(fields, entitytype.FieldUpdatedAt) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldDetectedMimeType: %w", err) + if m.created_by != nil { + fields = append(fields, entitytype.FieldCreatedBy) } - return oldValue.DetectedMimeType, nil -} - -// ClearDetectedMimeType clears the value of the "detected_mime_type" field. -func (m *FileMutation) ClearDetectedMimeType() { - m.detected_mime_type = nil - m.clearedFields[file.FieldDetectedMimeType] = struct{}{} -} - -// DetectedMimeTypeCleared returns if the "detected_mime_type" field was cleared in this mutation. -func (m *FileMutation) DetectedMimeTypeCleared() bool { - _, ok := m.clearedFields[file.FieldDetectedMimeType] - return ok -} - -// ResetDetectedMimeType resets all changes to the "detected_mime_type" field. -func (m *FileMutation) ResetDetectedMimeType() { - m.detected_mime_type = nil - delete(m.clearedFields, file.FieldDetectedMimeType) -} - -// SetMd5Hash sets the "md5_hash" field. -func (m *FileMutation) SetMd5Hash(s string) { - m.md5_hash = &s -} - -// Md5Hash returns the value of the "md5_hash" field in the mutation. -func (m *FileMutation) Md5Hash() (r string, exists bool) { - v := m.md5_hash - if v == nil { - return + if m.updated_by != nil { + fields = append(fields, entitytype.FieldUpdatedBy) } - return *v, true -} - -// OldMd5Hash returns the old "md5_hash" field's value of the File entity. -// If the File 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 *FileMutation) OldMd5Hash(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMd5Hash is only allowed on UpdateOne operations") + if m.mapping_id != nil { + fields = append(fields, entitytype.FieldMappingID) } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMd5Hash requires an ID field in the mutation") + if m.deleted_at != nil { + fields = append(fields, entitytype.FieldDeletedAt) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMd5Hash: %w", err) + if m.deleted_by != nil { + fields = append(fields, entitytype.FieldDeletedBy) } - return oldValue.Md5Hash, nil -} - -// ClearMd5Hash clears the value of the "md5_hash" field. -func (m *FileMutation) ClearMd5Hash() { - m.md5_hash = nil - m.clearedFields[file.FieldMd5Hash] = struct{}{} -} - -// Md5HashCleared returns if the "md5_hash" field was cleared in this mutation. -func (m *FileMutation) Md5HashCleared() bool { - _, ok := m.clearedFields[file.FieldMd5Hash] - return ok -} - -// ResetMd5Hash resets all changes to the "md5_hash" field. -func (m *FileMutation) ResetMd5Hash() { - m.md5_hash = nil - delete(m.clearedFields, file.FieldMd5Hash) + if m.tags != nil { + fields = append(fields, entitytype.FieldTags) + } + if m.owner != nil { + fields = append(fields, entitytype.FieldOwnerID) + } + if m.name != nil { + fields = append(fields, entitytype.FieldName) + } + return fields } -// SetDetectedContentType sets the "detected_content_type" field. -func (m *FileMutation) SetDetectedContentType(s string) { - m.detected_content_type = &s +// 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 *EntityTypeMutation) Field(name string) (ent.Value, bool) { + switch name { + case entitytype.FieldCreatedAt: + return m.CreatedAt() + case entitytype.FieldUpdatedAt: + return m.UpdatedAt() + case entitytype.FieldCreatedBy: + return m.CreatedBy() + case entitytype.FieldUpdatedBy: + return m.UpdatedBy() + case entitytype.FieldMappingID: + return m.MappingID() + case entitytype.FieldDeletedAt: + return m.DeletedAt() + case entitytype.FieldDeletedBy: + return m.DeletedBy() + case entitytype.FieldTags: + return m.Tags() + case entitytype.FieldOwnerID: + return m.OwnerID() + case entitytype.FieldName: + return m.Name() + } + return nil, false } -// DetectedContentType returns the value of the "detected_content_type" field in the mutation. -func (m *FileMutation) DetectedContentType() (r string, exists bool) { - v := m.detected_content_type - if v == nil { - return +// 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 *EntityTypeMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case entitytype.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case entitytype.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case entitytype.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case entitytype.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case entitytype.FieldMappingID: + return m.OldMappingID(ctx) + case entitytype.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case entitytype.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case entitytype.FieldTags: + return m.OldTags(ctx) + case entitytype.FieldOwnerID: + return m.OldOwnerID(ctx) + case entitytype.FieldName: + return m.OldName(ctx) } - return *v, true + return nil, fmt.Errorf("unknown EntityType field %s", name) } -// OldDetectedContentType returns the old "detected_content_type" field's value of the File entity. -// If the File 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 *FileMutation) OldDetectedContentType(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDetectedContentType is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDetectedContentType requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldDetectedContentType: %w", err) +// 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 *EntityTypeMutation) SetField(name string, value ent.Value) error { + switch name { + case entitytype.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 entitytype.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 entitytype.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case entitytype.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case entitytype.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case entitytype.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 entitytype.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case entitytype.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case entitytype.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case entitytype.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil } - return oldValue.DetectedContentType, nil + return fmt.Errorf("unknown EntityType field %s", name) } -// ResetDetectedContentType resets all changes to the "detected_content_type" field. -func (m *FileMutation) ResetDetectedContentType() { - m.detected_content_type = nil +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *EntityTypeMutation) AddedFields() []string { + return nil } -// SetStoreKey sets the "store_key" field. -func (m *FileMutation) SetStoreKey(s string) { - m.store_key = &s +// 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 *EntityTypeMutation) AddedField(name string) (ent.Value, bool) { + return nil, false } -// StoreKey returns the value of the "store_key" field in the mutation. -func (m *FileMutation) StoreKey() (r string, exists bool) { - v := m.store_key - if v == nil { - return +// 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 *EntityTypeMutation) AddField(name string, value ent.Value) error { + switch name { } - return *v, true + return fmt.Errorf("unknown EntityType numeric field %s", name) } -// OldStoreKey returns the old "store_key" field's value of the File entity. -// If the File 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 *FileMutation) OldStoreKey(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStoreKey is only allowed on UpdateOne operations") +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *EntityTypeMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(entitytype.FieldCreatedAt) { + fields = append(fields, entitytype.FieldCreatedAt) } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStoreKey requires an ID field in the mutation") + if m.FieldCleared(entitytype.FieldUpdatedAt) { + fields = append(fields, entitytype.FieldUpdatedAt) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldStoreKey: %w", err) + if m.FieldCleared(entitytype.FieldCreatedBy) { + fields = append(fields, entitytype.FieldCreatedBy) } - return oldValue.StoreKey, nil -} - -// ClearStoreKey clears the value of the "store_key" field. -func (m *FileMutation) ClearStoreKey() { - m.store_key = nil - m.clearedFields[file.FieldStoreKey] = struct{}{} -} - -// StoreKeyCleared returns if the "store_key" field was cleared in this mutation. -func (m *FileMutation) StoreKeyCleared() bool { - _, ok := m.clearedFields[file.FieldStoreKey] - return ok -} - -// ResetStoreKey resets all changes to the "store_key" field. -func (m *FileMutation) ResetStoreKey() { - m.store_key = nil - delete(m.clearedFields, file.FieldStoreKey) -} - -// SetCategoryType sets the "category_type" field. -func (m *FileMutation) SetCategoryType(s string) { - m.category_type = &s -} - -// CategoryType returns the value of the "category_type" field in the mutation. -func (m *FileMutation) CategoryType() (r string, exists bool) { - v := m.category_type - if v == nil { - return + if m.FieldCleared(entitytype.FieldUpdatedBy) { + fields = append(fields, entitytype.FieldUpdatedBy) } - return *v, true -} - -// OldCategoryType returns the old "category_type" field's value of the File entity. -// If the File 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 *FileMutation) OldCategoryType(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCategoryType is only allowed on UpdateOne operations") + if m.FieldCleared(entitytype.FieldDeletedAt) { + fields = append(fields, entitytype.FieldDeletedAt) } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldCategoryType requires an ID field in the mutation") + if m.FieldCleared(entitytype.FieldDeletedBy) { + fields = append(fields, entitytype.FieldDeletedBy) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldCategoryType: %w", err) + if m.FieldCleared(entitytype.FieldTags) { + fields = append(fields, entitytype.FieldTags) } - return oldValue.CategoryType, nil -} - -// ClearCategoryType clears the value of the "category_type" field. -func (m *FileMutation) ClearCategoryType() { - m.category_type = nil - m.clearedFields[file.FieldCategoryType] = struct{}{} + if m.FieldCleared(entitytype.FieldOwnerID) { + fields = append(fields, entitytype.FieldOwnerID) + } + return fields } -// CategoryTypeCleared returns if the "category_type" field was cleared in this mutation. -func (m *FileMutation) CategoryTypeCleared() bool { - _, ok := m.clearedFields[file.FieldCategoryType] +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *EntityTypeMutation) FieldCleared(name string) bool { + _, ok := m.clearedFields[name] return ok } -// ResetCategoryType resets all changes to the "category_type" field. -func (m *FileMutation) ResetCategoryType() { - m.category_type = nil - delete(m.clearedFields, file.FieldCategoryType) -} - -// SetURI sets the "uri" field. -func (m *FileMutation) SetURI(s string) { - m.uri = &s +// 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 *EntityTypeMutation) ClearField(name string) error { + switch name { + case entitytype.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case entitytype.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case entitytype.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case entitytype.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case entitytype.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case entitytype.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case entitytype.FieldTags: + m.ClearTags() + return nil + case entitytype.FieldOwnerID: + m.ClearOwnerID() + return nil + } + return fmt.Errorf("unknown EntityType nullable field %s", name) } -// URI returns the value of the "uri" field in the mutation. -func (m *FileMutation) URI() (r string, exists bool) { - v := m.uri - if v == nil { - return +// 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 *EntityTypeMutation) ResetField(name string) error { + switch name { + case entitytype.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case entitytype.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case entitytype.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case entitytype.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case entitytype.FieldMappingID: + m.ResetMappingID() + return nil + case entitytype.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case entitytype.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case entitytype.FieldTags: + m.ResetTags() + return nil + case entitytype.FieldOwnerID: + m.ResetOwnerID() + return nil + case entitytype.FieldName: + m.ResetName() + return nil } - return *v, true + return fmt.Errorf("unknown EntityType field %s", name) } -// OldURI returns the old "uri" field's value of the File entity. -// If the File 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 *FileMutation) OldURI(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldURI is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldURI requires an ID field in the mutation") +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *EntityTypeMutation) AddedEdges() []string { + edges := make([]string, 0, 2) + if m.owner != nil { + edges = append(edges, entitytype.EdgeOwner) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldURI: %w", err) + if m.entities != nil { + edges = append(edges, entitytype.EdgeEntities) } - return oldValue.URI, nil -} - -// ClearURI clears the value of the "uri" field. -func (m *FileMutation) ClearURI() { - m.uri = nil - m.clearedFields[file.FieldURI] = struct{}{} -} - -// URICleared returns if the "uri" field was cleared in this mutation. -func (m *FileMutation) URICleared() bool { - _, ok := m.clearedFields[file.FieldURI] - return ok + return edges } -// ResetURI resets all changes to the "uri" field. -func (m *FileMutation) ResetURI() { - m.uri = nil - delete(m.clearedFields, file.FieldURI) +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *EntityTypeMutation) AddedIDs(name string) []ent.Value { + switch name { + case entitytype.EdgeOwner: + if id := m.owner; id != nil { + return []ent.Value{*id} + } + case entitytype.EdgeEntities: + ids := make([]ent.Value, 0, len(m.entities)) + for id := range m.entities { + ids = append(ids, id) + } + return ids + } + return nil } -// SetStorageScheme sets the "storage_scheme" field. -func (m *FileMutation) SetStorageScheme(s string) { - m.storage_scheme = &s +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *EntityTypeMutation) RemovedEdges() []string { + edges := make([]string, 0, 2) + if m.removedentities != nil { + edges = append(edges, entitytype.EdgeEntities) + } + return edges } -// StorageScheme returns the value of the "storage_scheme" field in the mutation. -func (m *FileMutation) StorageScheme() (r string, exists bool) { - v := m.storage_scheme - if v == nil { - return +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *EntityTypeMutation) RemovedIDs(name string) []ent.Value { + switch name { + case entitytype.EdgeEntities: + ids := make([]ent.Value, 0, len(m.removedentities)) + for id := range m.removedentities { + ids = append(ids, id) + } + return ids } - return *v, true + return nil } -// OldStorageScheme returns the old "storage_scheme" field's value of the File entity. -// If the File 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 *FileMutation) OldStorageScheme(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStorageScheme is only allowed on UpdateOne operations") +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *EntityTypeMutation) ClearedEdges() []string { + edges := make([]string, 0, 2) + if m.clearedowner { + edges = append(edges, entitytype.EdgeOwner) } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStorageScheme requires an ID field in the mutation") + if m.clearedentities { + edges = append(edges, entitytype.EdgeEntities) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldStorageScheme: %w", err) + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *EntityTypeMutation) EdgeCleared(name string) bool { + switch name { + case entitytype.EdgeOwner: + return m.clearedowner + case entitytype.EdgeEntities: + return m.clearedentities } - return oldValue.StorageScheme, nil + return false } -// ClearStorageScheme clears the value of the "storage_scheme" field. -func (m *FileMutation) ClearStorageScheme() { - m.storage_scheme = nil - m.clearedFields[file.FieldStorageScheme] = struct{}{} +// 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 *EntityTypeMutation) ClearEdge(name string) error { + switch name { + case entitytype.EdgeOwner: + m.ClearOwner() + return nil + } + return fmt.Errorf("unknown EntityType unique edge %s", name) } -// StorageSchemeCleared returns if the "storage_scheme" field was cleared in this mutation. -func (m *FileMutation) StorageSchemeCleared() bool { - _, ok := m.clearedFields[file.FieldStorageScheme] - return ok +// 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 *EntityTypeMutation) ResetEdge(name string) error { + switch name { + case entitytype.EdgeOwner: + m.ResetOwner() + return nil + case entitytype.EdgeEntities: + m.ResetEntities() + return nil + } + return fmt.Errorf("unknown EntityType edge %s", name) } -// ResetStorageScheme resets all changes to the "storage_scheme" field. -func (m *FileMutation) ResetStorageScheme() { - m.storage_scheme = nil - delete(m.clearedFields, file.FieldStorageScheme) +// EntityTypeHistoryMutation represents an operation that mutates the EntityTypeHistory nodes in the graph. +type EntityTypeHistoryMutation 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 + mapping_id *string + deleted_at *time.Time + deleted_by *string + tags *[]string + appendtags []string + owner_id *string + name *string + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*EntityTypeHistory, error) + predicates []predicate.EntityTypeHistory } -// SetStorageVolume sets the "storage_volume" field. -func (m *FileMutation) SetStorageVolume(s string) { - m.storage_volume = &s +var _ ent.Mutation = (*EntityTypeHistoryMutation)(nil) + +// entitytypehistoryOption allows management of the mutation configuration using functional options. +type entitytypehistoryOption func(*EntityTypeHistoryMutation) + +// newEntityTypeHistoryMutation creates new mutation for the EntityTypeHistory entity. +func newEntityTypeHistoryMutation(c config, op Op, opts ...entitytypehistoryOption) *EntityTypeHistoryMutation { + m := &EntityTypeHistoryMutation{ + config: c, + op: op, + typ: TypeEntityTypeHistory, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m } -// StorageVolume returns the value of the "storage_volume" field in the mutation. -func (m *FileMutation) StorageVolume() (r string, exists bool) { - v := m.storage_volume +// withEntityTypeHistoryID sets the ID field of the mutation. +func withEntityTypeHistoryID(id string) entitytypehistoryOption { + return func(m *EntityTypeHistoryMutation) { + var ( + err error + once sync.Once + value *EntityTypeHistory + ) + m.oldValue = func(ctx context.Context) (*EntityTypeHistory, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().EntityTypeHistory.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withEntityTypeHistory sets the old EntityTypeHistory of the mutation. +func withEntityTypeHistory(node *EntityTypeHistory) entitytypehistoryOption { + return func(m *EntityTypeHistoryMutation) { + m.oldValue = func(context.Context) (*EntityTypeHistory, 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 EntityTypeHistoryMutation) 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 EntityTypeHistoryMutation) 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 EntityTypeHistory entities. +func (m *EntityTypeHistoryMutation) 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 *EntityTypeHistoryMutation) 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 *EntityTypeHistoryMutation) 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().EntityTypeHistory.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 *EntityTypeHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *EntityTypeHistoryMutation) HistoryTime() (r time.Time, exists bool) { + v := m.history_time if v == nil { return } return *v, true } -// OldStorageVolume returns the old "storage_volume" field's value of the File entity. -// If the File object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *FileMutation) OldStorageVolume(ctx context.Context) (v string, err error) { +func (m *EntityTypeHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStorageVolume is only allowed on UpdateOne operations") + return v, errors.New("OldHistoryTime is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStorageVolume requires an ID field in the mutation") + 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 OldStorageVolume: %w", err) + return v, fmt.Errorf("querying old value for OldHistoryTime: %w", err) } - return oldValue.StorageVolume, nil -} - -// ClearStorageVolume clears the value of the "storage_volume" field. -func (m *FileMutation) ClearStorageVolume() { - m.storage_volume = nil - m.clearedFields[file.FieldStorageVolume] = struct{}{} -} - -// StorageVolumeCleared returns if the "storage_volume" field was cleared in this mutation. -func (m *FileMutation) StorageVolumeCleared() bool { - _, ok := m.clearedFields[file.FieldStorageVolume] - return ok + return oldValue.HistoryTime, nil } -// ResetStorageVolume resets all changes to the "storage_volume" field. -func (m *FileMutation) ResetStorageVolume() { - m.storage_volume = nil - delete(m.clearedFields, file.FieldStorageVolume) +// ResetHistoryTime resets all changes to the "history_time" field. +func (m *EntityTypeHistoryMutation) ResetHistoryTime() { + m.history_time = nil } -// SetStoragePath sets the "storage_path" field. -func (m *FileMutation) SetStoragePath(s string) { - m.storage_path = &s +// SetRef sets the "ref" field. +func (m *EntityTypeHistoryMutation) SetRef(s string) { + m.ref = &s } -// StoragePath returns the value of the "storage_path" field in the mutation. -func (m *FileMutation) StoragePath() (r string, exists bool) { - v := m.storage_path +// Ref returns the value of the "ref" field in the mutation. +func (m *EntityTypeHistoryMutation) Ref() (r string, exists bool) { + v := m.ref if v == nil { return } return *v, true } -// OldStoragePath returns the old "storage_path" field's value of the File entity. -// If the File object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *FileMutation) OldStoragePath(ctx context.Context) (v string, err error) { +func (m *EntityTypeHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStoragePath is only allowed on UpdateOne operations") + return v, errors.New("OldRef is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStoragePath requires an ID field in the mutation") + 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 OldStoragePath: %w", err) + return v, fmt.Errorf("querying old value for OldRef: %w", err) } - return oldValue.StoragePath, nil + return oldValue.Ref, nil } -// ClearStoragePath clears the value of the "storage_path" field. -func (m *FileMutation) ClearStoragePath() { - m.storage_path = nil - m.clearedFields[file.FieldStoragePath] = struct{}{} +// ClearRef clears the value of the "ref" field. +func (m *EntityTypeHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[entitytypehistory.FieldRef] = struct{}{} } -// StoragePathCleared returns if the "storage_path" field was cleared in this mutation. -func (m *FileMutation) StoragePathCleared() bool { - _, ok := m.clearedFields[file.FieldStoragePath] +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *EntityTypeHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[entitytypehistory.FieldRef] return ok } -// ResetStoragePath resets all changes to the "storage_path" field. -func (m *FileMutation) ResetStoragePath() { - m.storage_path = nil - delete(m.clearedFields, file.FieldStoragePath) +// ResetRef resets all changes to the "ref" field. +func (m *EntityTypeHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, entitytypehistory.FieldRef) } -// SetFileContents sets the "file_contents" field. -func (m *FileMutation) SetFileContents(b []byte) { - m.file_contents = &b +// SetOperation sets the "operation" field. +func (m *EntityTypeHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht } -// FileContents returns the value of the "file_contents" field in the mutation. -func (m *FileMutation) FileContents() (r []byte, exists bool) { - v := m.file_contents +// Operation returns the value of the "operation" field in the mutation. +func (m *EntityTypeHistoryMutation) Operation() (r history.OpType, exists bool) { + v := m.operation if v == nil { return } return *v, true } -// OldFileContents returns the old "file_contents" field's value of the File entity. -// If the File object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *FileMutation) OldFileContents(ctx context.Context) (v []byte, err error) { +func (m *EntityTypeHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldFileContents is only allowed on UpdateOne operations") + return v, errors.New("OldOperation is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldFileContents requires an ID field in the mutation") + 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 OldFileContents: %w", err) + return v, fmt.Errorf("querying old value for OldOperation: %w", err) } - return oldValue.FileContents, nil + return oldValue.Operation, nil } -// ClearFileContents clears the value of the "file_contents" field. -func (m *FileMutation) ClearFileContents() { - m.file_contents = nil - m.clearedFields[file.FieldFileContents] = struct{}{} +// ResetOperation resets all changes to the "operation" field. +func (m *EntityTypeHistoryMutation) ResetOperation() { + m.operation = nil } -// FileContentsCleared returns if the "file_contents" field was cleared in this mutation. -func (m *FileMutation) FileContentsCleared() bool { - _, ok := m.clearedFields[file.FieldFileContents] - return ok +// SetCreatedAt sets the "created_at" field. +func (m *EntityTypeHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t } -// ResetFileContents resets all changes to the "file_contents" field. -func (m *FileMutation) ResetFileContents() { - m.file_contents = nil - delete(m.clearedFields, file.FieldFileContents) +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *EntityTypeHistoryMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at + if v == nil { + return + } + return *v, true } -// AddUserIDs adds the "user" edge to the User entity by ids. -func (m *FileMutation) AddUserIDs(ids ...string) { - if m.user == nil { - m.user = make(map[string]struct{}) +// OldCreatedAt returns the old "created_at" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) 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") } - for i := range ids { - m.user[ids[i]] = struct{}{} + 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 } -// ClearUser clears the "user" edge to the User entity. -func (m *FileMutation) ClearUser() { - m.cleareduser = true +// ClearCreatedAt clears the value of the "created_at" field. +func (m *EntityTypeHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[entitytypehistory.FieldCreatedAt] = struct{}{} } -// UserCleared reports if the "user" edge to the User entity was cleared. -func (m *FileMutation) UserCleared() bool { - return m.cleareduser +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *EntityTypeHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[entitytypehistory.FieldCreatedAt] + return ok } -// RemoveUserIDs removes the "user" edge to the User entity by IDs. -func (m *FileMutation) RemoveUserIDs(ids ...string) { - if m.removeduser == nil { - m.removeduser = make(map[string]struct{}) - } - for i := range ids { - delete(m.user, ids[i]) - m.removeduser[ids[i]] = struct{}{} - } +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *EntityTypeHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, entitytypehistory.FieldCreatedAt) } -// RemovedUser returns the removed IDs of the "user" edge to the User entity. -func (m *FileMutation) RemovedUserIDs() (ids []string) { - for id := range m.removeduser { - ids = append(ids, id) - } - return +// SetUpdatedAt sets the "updated_at" field. +func (m *EntityTypeHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t } -// UserIDs returns the "user" edge IDs in the mutation. -func (m *FileMutation) UserIDs() (ids []string) { - for id := range m.user { - ids = append(ids, id) +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *EntityTypeHistoryMutation) UpdatedAt() (r time.Time, exists bool) { + v := m.updated_at + if v == nil { + return } - return -} - -// ResetUser resets all changes to the "user" edge. -func (m *FileMutation) ResetUser() { - m.user = nil - m.cleareduser = false - m.removeduser = nil + return *v, true } -// AddOrganizationIDs adds the "organization" edge to the Organization entity by ids. -func (m *FileMutation) AddOrganizationIDs(ids ...string) { - if m.organization == nil { - m.organization = make(map[string]struct{}) +// OldUpdatedAt returns the old "updated_at" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) 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") } - for i := range ids { - m.organization[ids[i]] = struct{}{} + 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 } -// ClearOrganization clears the "organization" edge to the Organization entity. -func (m *FileMutation) ClearOrganization() { - m.clearedorganization = true +// ClearUpdatedAt clears the value of the "updated_at" field. +func (m *EntityTypeHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[entitytypehistory.FieldUpdatedAt] = struct{}{} } -// OrganizationCleared reports if the "organization" edge to the Organization entity was cleared. -func (m *FileMutation) OrganizationCleared() bool { - return m.clearedorganization +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *EntityTypeHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[entitytypehistory.FieldUpdatedAt] + return ok } -// RemoveOrganizationIDs removes the "organization" edge to the Organization entity by IDs. -func (m *FileMutation) RemoveOrganizationIDs(ids ...string) { - if m.removedorganization == nil { - m.removedorganization = make(map[string]struct{}) - } - for i := range ids { - delete(m.organization, ids[i]) - m.removedorganization[ids[i]] = struct{}{} - } +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *EntityTypeHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, entitytypehistory.FieldUpdatedAt) } -// RemovedOrganization returns the removed IDs of the "organization" edge to the Organization entity. -func (m *FileMutation) RemovedOrganizationIDs() (ids []string) { - for id := range m.removedorganization { - ids = append(ids, id) - } - return +// SetCreatedBy sets the "created_by" field. +func (m *EntityTypeHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s } -// OrganizationIDs returns the "organization" edge IDs in the mutation. -func (m *FileMutation) OrganizationIDs() (ids []string) { - for id := range m.organization { - ids = append(ids, id) +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *EntityTypeHistoryMutation) CreatedBy() (r string, exists bool) { + v := m.created_by + if v == nil { + return } - return -} - -// ResetOrganization resets all changes to the "organization" edge. -func (m *FileMutation) ResetOrganization() { - m.organization = nil - m.clearedorganization = false - m.removedorganization = nil + return *v, true } -// AddGroupIDs adds the "group" edge to the Group entity by ids. -func (m *FileMutation) AddGroupIDs(ids ...string) { - if m.group == nil { - m.group = make(map[string]struct{}) +// OldCreatedBy returns the old "created_by" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } - for i := range ids { - m.group[ids[i]] = struct{}{} + 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 } -// ClearGroup clears the "group" edge to the Group entity. -func (m *FileMutation) ClearGroup() { - m.clearedgroup = true +// ClearCreatedBy clears the value of the "created_by" field. +func (m *EntityTypeHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[entitytypehistory.FieldCreatedBy] = struct{}{} } -// GroupCleared reports if the "group" edge to the Group entity was cleared. -func (m *FileMutation) GroupCleared() bool { - return m.clearedgroup +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *EntityTypeHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[entitytypehistory.FieldCreatedBy] + return ok } -// RemoveGroupIDs removes the "group" edge to the Group entity by IDs. -func (m *FileMutation) RemoveGroupIDs(ids ...string) { - if m.removedgroup == nil { - m.removedgroup = make(map[string]struct{}) - } - for i := range ids { - delete(m.group, ids[i]) - m.removedgroup[ids[i]] = struct{}{} - } +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *EntityTypeHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, entitytypehistory.FieldCreatedBy) } -// RemovedGroup returns the removed IDs of the "group" edge to the Group entity. -func (m *FileMutation) RemovedGroupIDs() (ids []string) { - for id := range m.removedgroup { - ids = append(ids, id) - } - return +// SetUpdatedBy sets the "updated_by" field. +func (m *EntityTypeHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s } -// GroupIDs returns the "group" edge IDs in the mutation. -func (m *FileMutation) GroupIDs() (ids []string) { - for id := range m.group { - ids = append(ids, id) +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *EntityTypeHistoryMutation) UpdatedBy() (r string, exists bool) { + v := m.updated_by + if v == nil { + return } - return -} - -// ResetGroup resets all changes to the "group" edge. -func (m *FileMutation) ResetGroup() { - m.group = nil - m.clearedgroup = false - m.removedgroup = nil + return *v, true } -// AddContactIDs adds the "contact" edge to the Contact entity by ids. -func (m *FileMutation) AddContactIDs(ids ...string) { - if m.contact == nil { - m.contact = make(map[string]struct{}) +// OldUpdatedBy returns the old "updated_by" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } - for i := range ids { - m.contact[ids[i]] = struct{}{} + 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 } -// ClearContact clears the "contact" edge to the Contact entity. -func (m *FileMutation) ClearContact() { - m.clearedcontact = true +// ClearUpdatedBy clears the value of the "updated_by" field. +func (m *EntityTypeHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[entitytypehistory.FieldUpdatedBy] = struct{}{} } -// ContactCleared reports if the "contact" edge to the Contact entity was cleared. -func (m *FileMutation) ContactCleared() bool { - return m.clearedcontact +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *EntityTypeHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[entitytypehistory.FieldUpdatedBy] + return ok } -// RemoveContactIDs removes the "contact" edge to the Contact entity by IDs. -func (m *FileMutation) RemoveContactIDs(ids ...string) { - if m.removedcontact == nil { - m.removedcontact = make(map[string]struct{}) - } - for i := range ids { - delete(m.contact, ids[i]) - m.removedcontact[ids[i]] = struct{}{} - } +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *EntityTypeHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, entitytypehistory.FieldUpdatedBy) } -// RemovedContact returns the removed IDs of the "contact" edge to the Contact entity. -func (m *FileMutation) RemovedContactIDs() (ids []string) { - for id := range m.removedcontact { - ids = append(ids, id) - } - return +// SetMappingID sets the "mapping_id" field. +func (m *EntityTypeHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s } -// ContactIDs returns the "contact" edge IDs in the mutation. -func (m *FileMutation) ContactIDs() (ids []string) { - for id := range m.contact { - ids = append(ids, id) +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *EntityTypeHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return } - return -} - -// ResetContact resets all changes to the "contact" edge. -func (m *FileMutation) ResetContact() { - m.contact = nil - m.clearedcontact = false - m.removedcontact = nil + return *v, true } -// AddEntityIDs adds the "entity" edge to the Entity entity by ids. -func (m *FileMutation) AddEntityIDs(ids ...string) { - if m.entity == nil { - m.entity = make(map[string]struct{}) +// OldMappingID returns the old "mapping_id" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } - for i := range ids { - m.entity[ids[i]] = struct{}{} + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil } -// ClearEntity clears the "entity" edge to the Entity entity. -func (m *FileMutation) ClearEntity() { - m.clearedentity = true -} - -// EntityCleared reports if the "entity" edge to the Entity entity was cleared. -func (m *FileMutation) EntityCleared() bool { - return m.clearedentity +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *EntityTypeHistoryMutation) ResetMappingID() { + m.mapping_id = nil } -// RemoveEntityIDs removes the "entity" edge to the Entity entity by IDs. -func (m *FileMutation) RemoveEntityIDs(ids ...string) { - if m.removedentity == nil { - m.removedentity = make(map[string]struct{}) - } - for i := range ids { - delete(m.entity, ids[i]) - m.removedentity[ids[i]] = struct{}{} - } +// SetDeletedAt sets the "deleted_at" field. +func (m *EntityTypeHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t } -// RemovedEntity returns the removed IDs of the "entity" edge to the Entity entity. -func (m *FileMutation) RemovedEntityIDs() (ids []string) { - for id := range m.removedentity { - ids = append(ids, id) +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *EntityTypeHistoryMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at + if v == nil { + return } - return + return *v, true } -// EntityIDs returns the "entity" edge IDs in the mutation. -func (m *FileMutation) EntityIDs() (ids []string) { - for id := range m.entity { - ids = append(ids, id) +// OldDeletedAt returns the old "deleted_at" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) 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") } - return -} - -// ResetEntity resets all changes to the "entity" edge. -func (m *FileMutation) ResetEntity() { - m.entity = nil - m.clearedentity = false - m.removedentity = nil -} - -// AddUsersettingIDs adds the "usersetting" edge to the UserSetting entity by ids. -func (m *FileMutation) AddUsersettingIDs(ids ...string) { - if m.usersetting == nil { - m.usersetting = make(map[string]struct{}) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDeletedAt requires an ID field in the mutation") } - for i := range ids { - m.usersetting[ids[i]] = struct{}{} + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) } + return oldValue.DeletedAt, nil } -// ClearUsersetting clears the "usersetting" edge to the UserSetting entity. -func (m *FileMutation) ClearUsersetting() { - m.clearedusersetting = true +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *EntityTypeHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[entitytypehistory.FieldDeletedAt] = struct{}{} } -// UsersettingCleared reports if the "usersetting" edge to the UserSetting entity was cleared. -func (m *FileMutation) UsersettingCleared() bool { - return m.clearedusersetting +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *EntityTypeHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[entitytypehistory.FieldDeletedAt] + return ok } -// RemoveUsersettingIDs removes the "usersetting" edge to the UserSetting entity by IDs. -func (m *FileMutation) RemoveUsersettingIDs(ids ...string) { - if m.removedusersetting == nil { - m.removedusersetting = make(map[string]struct{}) - } - for i := range ids { - delete(m.usersetting, ids[i]) - m.removedusersetting[ids[i]] = struct{}{} - } +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *EntityTypeHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, entitytypehistory.FieldDeletedAt) } -// RemovedUsersetting returns the removed IDs of the "usersetting" edge to the UserSetting entity. -func (m *FileMutation) RemovedUsersettingIDs() (ids []string) { - for id := range m.removedusersetting { - ids = append(ids, id) - } - return +// SetDeletedBy sets the "deleted_by" field. +func (m *EntityTypeHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s } -// UsersettingIDs returns the "usersetting" edge IDs in the mutation. -func (m *FileMutation) UsersettingIDs() (ids []string) { - for id := range m.usersetting { - ids = append(ids, id) +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *EntityTypeHistoryMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by + if v == nil { + return } - return -} - -// ResetUsersetting resets all changes to the "usersetting" edge. -func (m *FileMutation) ResetUsersetting() { - m.usersetting = nil - m.clearedusersetting = false - m.removedusersetting = nil + return *v, true } -// AddOrganizationsettingIDs adds the "organizationsetting" edge to the OrganizationSetting entity by ids. -func (m *FileMutation) AddOrganizationsettingIDs(ids ...string) { - if m.organizationsetting == nil { - m.organizationsetting = make(map[string]struct{}) +// OldDeletedBy returns the old "deleted_by" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } - for i := range ids { - m.organizationsetting[ids[i]] = struct{}{} + 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 } -// ClearOrganizationsetting clears the "organizationsetting" edge to the OrganizationSetting entity. -func (m *FileMutation) ClearOrganizationsetting() { - m.clearedorganizationsetting = true +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *EntityTypeHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[entitytypehistory.FieldDeletedBy] = struct{}{} } -// OrganizationsettingCleared reports if the "organizationsetting" edge to the OrganizationSetting entity was cleared. -func (m *FileMutation) OrganizationsettingCleared() bool { - return m.clearedorganizationsetting +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *EntityTypeHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[entitytypehistory.FieldDeletedBy] + return ok } -// RemoveOrganizationsettingIDs removes the "organizationsetting" edge to the OrganizationSetting entity by IDs. -func (m *FileMutation) RemoveOrganizationsettingIDs(ids ...string) { - if m.removedorganizationsetting == nil { - m.removedorganizationsetting = make(map[string]struct{}) - } - for i := range ids { - delete(m.organizationsetting, ids[i]) - m.removedorganizationsetting[ids[i]] = struct{}{} - } +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *EntityTypeHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, entitytypehistory.FieldDeletedBy) } -// RemovedOrganizationsetting returns the removed IDs of the "organizationsetting" edge to the OrganizationSetting entity. -func (m *FileMutation) RemovedOrganizationsettingIDs() (ids []string) { - for id := range m.removedorganizationsetting { - ids = append(ids, id) - } - return +// SetTags sets the "tags" field. +func (m *EntityTypeHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// OrganizationsettingIDs returns the "organizationsetting" edge IDs in the mutation. -func (m *FileMutation) OrganizationsettingIDs() (ids []string) { - for id := range m.organizationsetting { - ids = append(ids, id) +// Tags returns the value of the "tags" field in the mutation. +func (m *EntityTypeHistoryMutation) Tags() (r []string, exists bool) { + v := m.tags + if v == nil { + return } - return -} - -// ResetOrganizationsetting resets all changes to the "organizationsetting" edge. -func (m *FileMutation) ResetOrganizationsetting() { - m.organizationsetting = nil - m.clearedorganizationsetting = false - m.removedorganizationsetting = nil + return *v, true } -// AddTemplateIDs adds the "template" edge to the Template entity by ids. -func (m *FileMutation) AddTemplateIDs(ids ...string) { - if m.template == nil { - m.template = make(map[string]struct{}) - } - for i := range ids { - m.template[ids[i]] = struct{}{} +// OldTags returns the old "tags" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldTags is only allowed on UpdateOne operations") } -} - -// ClearTemplate clears the "template" edge to the Template entity. -func (m *FileMutation) ClearTemplate() { - m.clearedtemplate = true -} - -// TemplateCleared reports if the "template" edge to the Template entity was cleared. -func (m *FileMutation) TemplateCleared() bool { - return m.clearedtemplate -} - -// RemoveTemplateIDs removes the "template" edge to the Template entity by IDs. -func (m *FileMutation) RemoveTemplateIDs(ids ...string) { - if m.removedtemplate == nil { - m.removedtemplate = make(map[string]struct{}) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldTags requires an ID field in the mutation") } - for i := range ids { - delete(m.template, ids[i]) - m.removedtemplate[ids[i]] = struct{}{} + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldTags: %w", err) } + return oldValue.Tags, nil } -// RemovedTemplate returns the removed IDs of the "template" edge to the Template entity. -func (m *FileMutation) RemovedTemplateIDs() (ids []string) { - for id := range m.removedtemplate { - ids = append(ids, id) - } - return +// AppendTags adds s to the "tags" field. +func (m *EntityTypeHistoryMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) } -// TemplateIDs returns the "template" edge IDs in the mutation. -func (m *FileMutation) TemplateIDs() (ids []string) { - for id := range m.template { - ids = append(ids, id) +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *EntityTypeHistoryMutation) AppendedTags() ([]string, bool) { + if len(m.appendtags) == 0 { + return nil, false } - return + return m.appendtags, true } -// ResetTemplate resets all changes to the "template" edge. -func (m *FileMutation) ResetTemplate() { - m.template = nil - m.clearedtemplate = false - m.removedtemplate = nil +// ClearTags clears the value of the "tags" field. +func (m *EntityTypeHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[entitytypehistory.FieldTags] = struct{}{} } -// AddDocumentdatumIDs adds the "documentdata" edge to the DocumentData entity by ids. -func (m *FileMutation) AddDocumentdatumIDs(ids ...string) { - if m.documentdata == nil { - m.documentdata = make(map[string]struct{}) - } - for i := range ids { - m.documentdata[ids[i]] = struct{}{} - } +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *EntityTypeHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[entitytypehistory.FieldTags] + return ok } -// ClearDocumentdata clears the "documentdata" edge to the DocumentData entity. -func (m *FileMutation) ClearDocumentdata() { - m.cleareddocumentdata = true +// ResetTags resets all changes to the "tags" field. +func (m *EntityTypeHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, entitytypehistory.FieldTags) } -// DocumentdataCleared reports if the "documentdata" edge to the DocumentData entity was cleared. -func (m *FileMutation) DocumentdataCleared() bool { - return m.cleareddocumentdata +// SetOwnerID sets the "owner_id" field. +func (m *EntityTypeHistoryMutation) SetOwnerID(s string) { + m.owner_id = &s } -// RemoveDocumentdatumIDs removes the "documentdata" edge to the DocumentData entity by IDs. -func (m *FileMutation) RemoveDocumentdatumIDs(ids ...string) { - if m.removeddocumentdata == nil { - m.removeddocumentdata = make(map[string]struct{}) - } - for i := range ids { - delete(m.documentdata, ids[i]) - m.removeddocumentdata[ids[i]] = struct{}{} +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *EntityTypeHistoryMutation) OwnerID() (r string, exists bool) { + v := m.owner_id + if v == nil { + return } + return *v, true } -// RemovedDocumentdata returns the removed IDs of the "documentdata" edge to the DocumentData entity. -func (m *FileMutation) RemovedDocumentdataIDs() (ids []string) { - for id := range m.removeddocumentdata { - ids = append(ids, id) +// OldOwnerID returns the old "owner_id" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") } - return -} - -// DocumentdataIDs returns the "documentdata" edge IDs in the mutation. -func (m *FileMutation) DocumentdataIDs() (ids []string) { - for id := range m.documentdata { - ids = append(ids, id) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldOwnerID requires an ID field in the mutation") } - return + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) + } + return oldValue.OwnerID, nil } -// ResetDocumentdata resets all changes to the "documentdata" edge. -func (m *FileMutation) ResetDocumentdata() { - m.documentdata = nil - m.cleareddocumentdata = false - m.removeddocumentdata = nil +// ClearOwnerID clears the value of the "owner_id" field. +func (m *EntityTypeHistoryMutation) ClearOwnerID() { + m.owner_id = nil + m.clearedFields[entitytypehistory.FieldOwnerID] = struct{}{} } -// AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *FileMutation) AddEventIDs(ids ...string) { - if m.events == nil { - m.events = make(map[string]struct{}) - } - for i := range ids { - m.events[ids[i]] = struct{}{} - } +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *EntityTypeHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[entitytypehistory.FieldOwnerID] + return ok } -// ClearEvents clears the "events" edge to the Event entity. -func (m *FileMutation) ClearEvents() { - m.clearedevents = true +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *EntityTypeHistoryMutation) ResetOwnerID() { + m.owner_id = nil + delete(m.clearedFields, entitytypehistory.FieldOwnerID) } -// EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *FileMutation) EventsCleared() bool { - return m.clearedevents +// SetName sets the "name" field. +func (m *EntityTypeHistoryMutation) SetName(s string) { + m.name = &s } -// RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *FileMutation) RemoveEventIDs(ids ...string) { - if m.removedevents == nil { - m.removedevents = make(map[string]struct{}) - } - for i := range ids { - delete(m.events, ids[i]) - m.removedevents[ids[i]] = struct{}{} +// Name returns the value of the "name" field in the mutation. +func (m *EntityTypeHistoryMutation) Name() (r string, exists bool) { + v := m.name + if v == nil { + return } + return *v, true } -// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *FileMutation) RemovedEventsIDs() (ids []string) { - for id := range m.removedevents { - ids = append(ids, id) +// OldName returns the old "name" field's value of the EntityTypeHistory entity. +// If the EntityTypeHistory 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 *EntityTypeHistoryMutation) OldName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldName is only allowed on UpdateOne operations") } - return -} - -// EventsIDs returns the "events" edge IDs in the mutation. -func (m *FileMutation) EventsIDs() (ids []string) { - for id := range m.events { - ids = append(ids, id) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldName requires an ID field in the mutation") } - return + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldName: %w", err) + } + return oldValue.Name, nil } -// ResetEvents resets all changes to the "events" edge. -func (m *FileMutation) ResetEvents() { - m.events = nil - m.clearedevents = false - m.removedevents = nil +// ResetName resets all changes to the "name" field. +func (m *EntityTypeHistoryMutation) ResetName() { + m.name = nil } -// Where appends a list predicates to the FileMutation builder. -func (m *FileMutation) Where(ps ...predicate.File) { +// Where appends a list predicates to the EntityTypeHistoryMutation builder. +func (m *EntityTypeHistoryMutation) Where(ps ...predicate.EntityTypeHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the FileMutation builder. Using this method, +// WhereP appends storage-level predicates to the EntityTypeHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *FileMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.File, len(ps)) +func (m *EntityTypeHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.EntityTypeHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -31401,90 +34119,63 @@ func (m *FileMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *FileMutation) Op() Op { +func (m *EntityTypeHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *FileMutation) SetOp(op Op) { +func (m *EntityTypeHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (File). -func (m *FileMutation) Type() string { +// Type returns the node type of this mutation (EntityTypeHistory). +func (m *EntityTypeHistoryMutation) 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 *FileMutation) Fields() []string { - fields := make([]string, 0, 22) - if m.created_at != nil { - fields = append(fields, file.FieldCreatedAt) +func (m *EntityTypeHistoryMutation) Fields() []string { + fields := make([]string, 0, 13) + if m.history_time != nil { + fields = append(fields, entitytypehistory.FieldHistoryTime) } - if m.updated_at != nil { - fields = append(fields, file.FieldUpdatedAt) + if m.ref != nil { + fields = append(fields, entitytypehistory.FieldRef) } - if m.created_by != nil { - fields = append(fields, file.FieldCreatedBy) - } - if m.updated_by != nil { - fields = append(fields, file.FieldUpdatedBy) - } - if m.deleted_at != nil { - fields = append(fields, file.FieldDeletedAt) - } - if m.deleted_by != nil { - fields = append(fields, file.FieldDeletedBy) - } - if m.mapping_id != nil { - fields = append(fields, file.FieldMappingID) - } - if m.tags != nil { - fields = append(fields, file.FieldTags) - } - if m.provided_file_name != nil { - fields = append(fields, file.FieldProvidedFileName) - } - if m.provided_file_extension != nil { - fields = append(fields, file.FieldProvidedFileExtension) - } - if m.provided_file_size != nil { - fields = append(fields, file.FieldProvidedFileSize) - } - if m.persisted_file_size != nil { - fields = append(fields, file.FieldPersistedFileSize) + if m.operation != nil { + fields = append(fields, entitytypehistory.FieldOperation) } - if m.detected_mime_type != nil { - fields = append(fields, file.FieldDetectedMimeType) + if m.created_at != nil { + fields = append(fields, entitytypehistory.FieldCreatedAt) } - if m.md5_hash != nil { - fields = append(fields, file.FieldMd5Hash) + if m.updated_at != nil { + fields = append(fields, entitytypehistory.FieldUpdatedAt) } - if m.detected_content_type != nil { - fields = append(fields, file.FieldDetectedContentType) + if m.created_by != nil { + fields = append(fields, entitytypehistory.FieldCreatedBy) } - if m.store_key != nil { - fields = append(fields, file.FieldStoreKey) + if m.updated_by != nil { + fields = append(fields, entitytypehistory.FieldUpdatedBy) } - if m.category_type != nil { - fields = append(fields, file.FieldCategoryType) + if m.mapping_id != nil { + fields = append(fields, entitytypehistory.FieldMappingID) } - if m.uri != nil { - fields = append(fields, file.FieldURI) + if m.deleted_at != nil { + fields = append(fields, entitytypehistory.FieldDeletedAt) } - if m.storage_scheme != nil { - fields = append(fields, file.FieldStorageScheme) + if m.deleted_by != nil { + fields = append(fields, entitytypehistory.FieldDeletedBy) } - if m.storage_volume != nil { - fields = append(fields, file.FieldStorageVolume) + if m.tags != nil { + fields = append(fields, entitytypehistory.FieldTags) } - if m.storage_path != nil { - fields = append(fields, file.FieldStoragePath) + if m.owner_id != nil { + fields = append(fields, entitytypehistory.FieldOwnerID) } - if m.file_contents != nil { - fields = append(fields, file.FieldFileContents) + if m.name != nil { + fields = append(fields, entitytypehistory.FieldName) } return fields } @@ -31492,52 +34183,34 @@ func (m *FileMutation) Fields() []string { // 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 *FileMutation) Field(name string) (ent.Value, bool) { +func (m *EntityTypeHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case file.FieldCreatedAt: + case entitytypehistory.FieldHistoryTime: + return m.HistoryTime() + case entitytypehistory.FieldRef: + return m.Ref() + case entitytypehistory.FieldOperation: + return m.Operation() + case entitytypehistory.FieldCreatedAt: return m.CreatedAt() - case file.FieldUpdatedAt: + case entitytypehistory.FieldUpdatedAt: return m.UpdatedAt() - case file.FieldCreatedBy: + case entitytypehistory.FieldCreatedBy: return m.CreatedBy() - case file.FieldUpdatedBy: + case entitytypehistory.FieldUpdatedBy: return m.UpdatedBy() - case file.FieldDeletedAt: + case entitytypehistory.FieldMappingID: + return m.MappingID() + case entitytypehistory.FieldDeletedAt: return m.DeletedAt() - case file.FieldDeletedBy: + case entitytypehistory.FieldDeletedBy: return m.DeletedBy() - case file.FieldMappingID: - return m.MappingID() - case file.FieldTags: + case entitytypehistory.FieldTags: return m.Tags() - case file.FieldProvidedFileName: - return m.ProvidedFileName() - case file.FieldProvidedFileExtension: - return m.ProvidedFileExtension() - case file.FieldProvidedFileSize: - return m.ProvidedFileSize() - case file.FieldPersistedFileSize: - return m.PersistedFileSize() - case file.FieldDetectedMimeType: - return m.DetectedMimeType() - case file.FieldMd5Hash: - return m.Md5Hash() - case file.FieldDetectedContentType: - return m.DetectedContentType() - case file.FieldStoreKey: - return m.StoreKey() - case file.FieldCategoryType: - return m.CategoryType() - case file.FieldURI: - return m.URI() - case file.FieldStorageScheme: - return m.StorageScheme() - case file.FieldStorageVolume: - return m.StorageVolume() - case file.FieldStoragePath: - return m.StoragePath() - case file.FieldFileContents: - return m.FileContents() + case entitytypehistory.FieldOwnerID: + return m.OwnerID() + case entitytypehistory.FieldName: + return m.Name() } return nil, false } @@ -31545,841 +34218,416 @@ func (m *FileMutation) Field(name string) (ent.Value, bool) { // 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 *FileMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *EntityTypeHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case file.FieldCreatedAt: + case entitytypehistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case entitytypehistory.FieldRef: + return m.OldRef(ctx) + case entitytypehistory.FieldOperation: + return m.OldOperation(ctx) + case entitytypehistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case file.FieldUpdatedAt: + case entitytypehistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case file.FieldCreatedBy: + case entitytypehistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case file.FieldUpdatedBy: + case entitytypehistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case file.FieldDeletedAt: + case entitytypehistory.FieldMappingID: + return m.OldMappingID(ctx) + case entitytypehistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case file.FieldDeletedBy: + case entitytypehistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case file.FieldMappingID: - return m.OldMappingID(ctx) - case file.FieldTags: + case entitytypehistory.FieldTags: return m.OldTags(ctx) - case file.FieldProvidedFileName: - return m.OldProvidedFileName(ctx) - case file.FieldProvidedFileExtension: - return m.OldProvidedFileExtension(ctx) - case file.FieldProvidedFileSize: - return m.OldProvidedFileSize(ctx) - case file.FieldPersistedFileSize: - return m.OldPersistedFileSize(ctx) - case file.FieldDetectedMimeType: - return m.OldDetectedMimeType(ctx) - case file.FieldMd5Hash: - return m.OldMd5Hash(ctx) - case file.FieldDetectedContentType: - return m.OldDetectedContentType(ctx) - case file.FieldStoreKey: - return m.OldStoreKey(ctx) - case file.FieldCategoryType: - return m.OldCategoryType(ctx) - case file.FieldURI: - return m.OldURI(ctx) - case file.FieldStorageScheme: - return m.OldStorageScheme(ctx) - case file.FieldStorageVolume: - return m.OldStorageVolume(ctx) - case file.FieldStoragePath: - return m.OldStoragePath(ctx) - case file.FieldFileContents: - return m.OldFileContents(ctx) + case entitytypehistory.FieldOwnerID: + return m.OldOwnerID(ctx) + case entitytypehistory.FieldName: + return m.OldName(ctx) } - return nil, fmt.Errorf("unknown File field %s", name) + return nil, fmt.Errorf("unknown EntityTypeHistory 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 *FileMutation) SetField(name string, value ent.Value) error { +func (m *EntityTypeHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case file.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 file.FieldUpdatedAt: + case entitytypehistory.FieldHistoryTime: v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetUpdatedAt(v) + m.SetHistoryTime(v) return nil - case file.FieldCreatedBy: + case entitytypehistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCreatedBy(v) + m.SetRef(v) return nil - case file.FieldUpdatedBy: - v, ok := value.(string) + case entitytypehistory.FieldOperation: + v, ok := value.(history.OpType) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetUpdatedBy(v) + m.SetOperation(v) return nil - case file.FieldDeletedAt: + case entitytypehistory.FieldCreatedAt: v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) - return nil - case file.FieldDeletedBy: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetDeletedBy(v) - return nil - case file.FieldMappingID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetMappingID(v) - return nil - case file.FieldTags: - v, ok := value.([]string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetTags(v) - return nil - case file.FieldProvidedFileName: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetProvidedFileName(v) - return nil - case file.FieldProvidedFileExtension: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetProvidedFileExtension(v) - return nil - case file.FieldProvidedFileSize: - v, ok := value.(int64) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetProvidedFileSize(v) - return nil - case file.FieldPersistedFileSize: - v, ok := value.(int64) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetPersistedFileSize(v) + m.SetCreatedAt(v) return nil - case file.FieldDetectedMimeType: - v, ok := value.(string) + case entitytypehistory.FieldUpdatedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDetectedMimeType(v) + m.SetUpdatedAt(v) return nil - case file.FieldMd5Hash: + case entitytypehistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMd5Hash(v) + m.SetCreatedBy(v) return nil - case file.FieldDetectedContentType: + case entitytypehistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDetectedContentType(v) + m.SetUpdatedBy(v) return nil - case file.FieldStoreKey: + case entitytypehistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetStoreKey(v) + m.SetMappingID(v) return nil - case file.FieldCategoryType: - v, ok := value.(string) + case entitytypehistory.FieldDeletedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCategoryType(v) + m.SetDeletedAt(v) return nil - case file.FieldURI: + case entitytypehistory.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetURI(v) + m.SetDeletedBy(v) return nil - case file.FieldStorageScheme: - v, ok := value.(string) + case entitytypehistory.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetStorageScheme(v) + m.SetTags(v) return nil - case file.FieldStorageVolume: + case entitytypehistory.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetStorageVolume(v) + m.SetOwnerID(v) return nil - case file.FieldStoragePath: + case entitytypehistory.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetStoragePath(v) - return nil - case file.FieldFileContents: - v, ok := value.([]byte) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetFileContents(v) + m.SetName(v) return nil } - return fmt.Errorf("unknown File field %s", name) + return fmt.Errorf("unknown EntityTypeHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *FileMutation) AddedFields() []string { - var fields []string - if m.addprovided_file_size != nil { - fields = append(fields, file.FieldProvidedFileSize) - } - if m.addpersisted_file_size != nil { - fields = append(fields, file.FieldPersistedFileSize) - } - return fields +func (m *EntityTypeHistoryMutation) 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 *FileMutation) AddedField(name string) (ent.Value, bool) { - switch name { - case file.FieldProvidedFileSize: - return m.AddedProvidedFileSize() - case file.FieldPersistedFileSize: - return m.AddedPersistedFileSize() - } +func (m *EntityTypeHistoryMutation) 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 *FileMutation) AddField(name string, value ent.Value) error { +func (m *EntityTypeHistoryMutation) AddField(name string, value ent.Value) error { switch name { - case file.FieldProvidedFileSize: - v, ok := value.(int64) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.AddProvidedFileSize(v) - return nil - case file.FieldPersistedFileSize: - v, ok := value.(int64) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.AddPersistedFileSize(v) - return nil } - return fmt.Errorf("unknown File numeric field %s", name) + return fmt.Errorf("unknown EntityTypeHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *FileMutation) ClearedFields() []string { +func (m *EntityTypeHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(file.FieldCreatedAt) { - fields = append(fields, file.FieldCreatedAt) - } - if m.FieldCleared(file.FieldUpdatedAt) { - fields = append(fields, file.FieldUpdatedAt) - } - if m.FieldCleared(file.FieldCreatedBy) { - fields = append(fields, file.FieldCreatedBy) - } - if m.FieldCleared(file.FieldUpdatedBy) { - fields = append(fields, file.FieldUpdatedBy) - } - if m.FieldCleared(file.FieldDeletedAt) { - fields = append(fields, file.FieldDeletedAt) - } - if m.FieldCleared(file.FieldDeletedBy) { - fields = append(fields, file.FieldDeletedBy) - } - if m.FieldCleared(file.FieldTags) { - fields = append(fields, file.FieldTags) - } - if m.FieldCleared(file.FieldProvidedFileSize) { - fields = append(fields, file.FieldProvidedFileSize) - } - if m.FieldCleared(file.FieldPersistedFileSize) { - fields = append(fields, file.FieldPersistedFileSize) - } - if m.FieldCleared(file.FieldDetectedMimeType) { - fields = append(fields, file.FieldDetectedMimeType) + if m.FieldCleared(entitytypehistory.FieldRef) { + fields = append(fields, entitytypehistory.FieldRef) } - if m.FieldCleared(file.FieldMd5Hash) { - fields = append(fields, file.FieldMd5Hash) + if m.FieldCleared(entitytypehistory.FieldCreatedAt) { + fields = append(fields, entitytypehistory.FieldCreatedAt) } - if m.FieldCleared(file.FieldStoreKey) { - fields = append(fields, file.FieldStoreKey) + if m.FieldCleared(entitytypehistory.FieldUpdatedAt) { + fields = append(fields, entitytypehistory.FieldUpdatedAt) } - if m.FieldCleared(file.FieldCategoryType) { - fields = append(fields, file.FieldCategoryType) + if m.FieldCleared(entitytypehistory.FieldCreatedBy) { + fields = append(fields, entitytypehistory.FieldCreatedBy) } - if m.FieldCleared(file.FieldURI) { - fields = append(fields, file.FieldURI) + if m.FieldCleared(entitytypehistory.FieldUpdatedBy) { + fields = append(fields, entitytypehistory.FieldUpdatedBy) } - if m.FieldCleared(file.FieldStorageScheme) { - fields = append(fields, file.FieldStorageScheme) + if m.FieldCleared(entitytypehistory.FieldDeletedAt) { + fields = append(fields, entitytypehistory.FieldDeletedAt) } - if m.FieldCleared(file.FieldStorageVolume) { - fields = append(fields, file.FieldStorageVolume) + if m.FieldCleared(entitytypehistory.FieldDeletedBy) { + fields = append(fields, entitytypehistory.FieldDeletedBy) } - if m.FieldCleared(file.FieldStoragePath) { - fields = append(fields, file.FieldStoragePath) + if m.FieldCleared(entitytypehistory.FieldTags) { + fields = append(fields, entitytypehistory.FieldTags) } - if m.FieldCleared(file.FieldFileContents) { - fields = append(fields, file.FieldFileContents) + if m.FieldCleared(entitytypehistory.FieldOwnerID) { + fields = append(fields, entitytypehistory.FieldOwnerID) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *FileMutation) FieldCleared(name string) bool { +func (m *EntityTypeHistoryMutation) 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 *FileMutation) ClearField(name string) error { +func (m *EntityTypeHistoryMutation) ClearField(name string) error { switch name { - case file.FieldCreatedAt: + case entitytypehistory.FieldRef: + m.ClearRef() + return nil + case entitytypehistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case file.FieldUpdatedAt: + case entitytypehistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case file.FieldCreatedBy: + case entitytypehistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case file.FieldUpdatedBy: + case entitytypehistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case file.FieldDeletedAt: + case entitytypehistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case file.FieldDeletedBy: + case entitytypehistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case file.FieldTags: + case entitytypehistory.FieldTags: m.ClearTags() return nil - case file.FieldProvidedFileSize: - m.ClearProvidedFileSize() - return nil - case file.FieldPersistedFileSize: - m.ClearPersistedFileSize() - return nil - case file.FieldDetectedMimeType: - m.ClearDetectedMimeType() - return nil - case file.FieldMd5Hash: - m.ClearMd5Hash() - return nil - case file.FieldStoreKey: - m.ClearStoreKey() - return nil - case file.FieldCategoryType: - m.ClearCategoryType() - return nil - case file.FieldURI: - m.ClearURI() - return nil - case file.FieldStorageScheme: - m.ClearStorageScheme() - return nil - case file.FieldStorageVolume: - m.ClearStorageVolume() - return nil - case file.FieldStoragePath: - m.ClearStoragePath() - return nil - case file.FieldFileContents: - m.ClearFileContents() + case entitytypehistory.FieldOwnerID: + m.ClearOwnerID() return nil } - return fmt.Errorf("unknown File nullable field %s", name) + return fmt.Errorf("unknown EntityTypeHistory 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 *FileMutation) ResetField(name string) error { +func (m *EntityTypeHistoryMutation) ResetField(name string) error { switch name { - case file.FieldCreatedAt: + case entitytypehistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case entitytypehistory.FieldRef: + m.ResetRef() + return nil + case entitytypehistory.FieldOperation: + m.ResetOperation() + return nil + case entitytypehistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case file.FieldUpdatedAt: + case entitytypehistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case file.FieldCreatedBy: + case entitytypehistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case file.FieldUpdatedBy: + case entitytypehistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case file.FieldDeletedAt: + case entitytypehistory.FieldMappingID: + m.ResetMappingID() + return nil + case entitytypehistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case file.FieldDeletedBy: + case entitytypehistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case file.FieldMappingID: - m.ResetMappingID() - return nil - case file.FieldTags: + case entitytypehistory.FieldTags: m.ResetTags() return nil - case file.FieldProvidedFileName: - m.ResetProvidedFileName() + case entitytypehistory.FieldOwnerID: + m.ResetOwnerID() return nil - case file.FieldProvidedFileExtension: - m.ResetProvidedFileExtension() - return nil - case file.FieldProvidedFileSize: - m.ResetProvidedFileSize() - return nil - case file.FieldPersistedFileSize: - m.ResetPersistedFileSize() - return nil - case file.FieldDetectedMimeType: - m.ResetDetectedMimeType() - return nil - case file.FieldMd5Hash: - m.ResetMd5Hash() - return nil - case file.FieldDetectedContentType: - m.ResetDetectedContentType() - return nil - case file.FieldStoreKey: - m.ResetStoreKey() - return nil - case file.FieldCategoryType: - m.ResetCategoryType() - return nil - case file.FieldURI: - m.ResetURI() - return nil - case file.FieldStorageScheme: - m.ResetStorageScheme() - return nil - case file.FieldStorageVolume: - m.ResetStorageVolume() - return nil - case file.FieldStoragePath: - m.ResetStoragePath() - return nil - case file.FieldFileContents: - m.ResetFileContents() + case entitytypehistory.FieldName: + m.ResetName() return nil } - return fmt.Errorf("unknown File field %s", name) + return fmt.Errorf("unknown EntityTypeHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *FileMutation) AddedEdges() []string { - edges := make([]string, 0, 10) - if m.user != nil { - edges = append(edges, file.EdgeUser) - } - if m.organization != nil { - edges = append(edges, file.EdgeOrganization) - } - if m.group != nil { - edges = append(edges, file.EdgeGroup) - } - if m.contact != nil { - edges = append(edges, file.EdgeContact) - } - if m.entity != nil { - edges = append(edges, file.EdgeEntity) - } - if m.usersetting != nil { - edges = append(edges, file.EdgeUsersetting) - } - if m.organizationsetting != nil { - edges = append(edges, file.EdgeOrganizationsetting) - } - if m.template != nil { - edges = append(edges, file.EdgeTemplate) - } - if m.documentdata != nil { - edges = append(edges, file.EdgeDocumentdata) - } - if m.events != nil { - edges = append(edges, file.EdgeEvents) - } +func (m *EntityTypeHistoryMutation) 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 *FileMutation) AddedIDs(name string) []ent.Value { - switch name { - case file.EdgeUser: - ids := make([]ent.Value, 0, len(m.user)) - for id := range m.user { - ids = append(ids, id) - } - return ids - case file.EdgeOrganization: - ids := make([]ent.Value, 0, len(m.organization)) - for id := range m.organization { - ids = append(ids, id) - } - return ids - case file.EdgeGroup: - ids := make([]ent.Value, 0, len(m.group)) - for id := range m.group { - ids = append(ids, id) - } - return ids - case file.EdgeContact: - ids := make([]ent.Value, 0, len(m.contact)) - for id := range m.contact { - ids = append(ids, id) - } - return ids - case file.EdgeEntity: - ids := make([]ent.Value, 0, len(m.entity)) - for id := range m.entity { - ids = append(ids, id) - } - return ids - case file.EdgeUsersetting: - ids := make([]ent.Value, 0, len(m.usersetting)) - for id := range m.usersetting { - ids = append(ids, id) - } - return ids - case file.EdgeOrganizationsetting: - ids := make([]ent.Value, 0, len(m.organizationsetting)) - for id := range m.organizationsetting { - ids = append(ids, id) - } - return ids - case file.EdgeTemplate: - ids := make([]ent.Value, 0, len(m.template)) - for id := range m.template { - ids = append(ids, id) - } - return ids - case file.EdgeDocumentdata: - ids := make([]ent.Value, 0, len(m.documentdata)) - for id := range m.documentdata { - ids = append(ids, id) - } - return ids - case file.EdgeEvents: - ids := make([]ent.Value, 0, len(m.events)) - for id := range m.events { - ids = append(ids, id) - } - return ids - } +func (m *EntityTypeHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *FileMutation) RemovedEdges() []string { - edges := make([]string, 0, 10) - if m.removeduser != nil { - edges = append(edges, file.EdgeUser) - } - if m.removedorganization != nil { - edges = append(edges, file.EdgeOrganization) - } - if m.removedgroup != nil { - edges = append(edges, file.EdgeGroup) - } - if m.removedcontact != nil { - edges = append(edges, file.EdgeContact) - } - if m.removedentity != nil { - edges = append(edges, file.EdgeEntity) - } - if m.removedusersetting != nil { - edges = append(edges, file.EdgeUsersetting) - } - if m.removedorganizationsetting != nil { - edges = append(edges, file.EdgeOrganizationsetting) - } - if m.removedtemplate != nil { - edges = append(edges, file.EdgeTemplate) - } - if m.removeddocumentdata != nil { - edges = append(edges, file.EdgeDocumentdata) - } - if m.removedevents != nil { - edges = append(edges, file.EdgeEvents) - } +func (m *EntityTypeHistoryMutation) 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 *FileMutation) RemovedIDs(name string) []ent.Value { - switch name { - case file.EdgeUser: - ids := make([]ent.Value, 0, len(m.removeduser)) - for id := range m.removeduser { - ids = append(ids, id) - } - return ids - case file.EdgeOrganization: - ids := make([]ent.Value, 0, len(m.removedorganization)) - for id := range m.removedorganization { - ids = append(ids, id) - } - return ids - case file.EdgeGroup: - ids := make([]ent.Value, 0, len(m.removedgroup)) - for id := range m.removedgroup { - ids = append(ids, id) - } - return ids - case file.EdgeContact: - ids := make([]ent.Value, 0, len(m.removedcontact)) - for id := range m.removedcontact { - ids = append(ids, id) - } - return ids - case file.EdgeEntity: - ids := make([]ent.Value, 0, len(m.removedentity)) - for id := range m.removedentity { - ids = append(ids, id) - } - return ids - case file.EdgeUsersetting: - ids := make([]ent.Value, 0, len(m.removedusersetting)) - for id := range m.removedusersetting { - ids = append(ids, id) - } - return ids - case file.EdgeOrganizationsetting: - ids := make([]ent.Value, 0, len(m.removedorganizationsetting)) - for id := range m.removedorganizationsetting { - ids = append(ids, id) - } - return ids - case file.EdgeTemplate: - ids := make([]ent.Value, 0, len(m.removedtemplate)) - for id := range m.removedtemplate { - ids = append(ids, id) - } - return ids - case file.EdgeDocumentdata: - ids := make([]ent.Value, 0, len(m.removeddocumentdata)) - for id := range m.removeddocumentdata { - ids = append(ids, id) - } - return ids - case file.EdgeEvents: - ids := make([]ent.Value, 0, len(m.removedevents)) - for id := range m.removedevents { - ids = append(ids, id) - } - return ids - } +func (m *EntityTypeHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *FileMutation) ClearedEdges() []string { - edges := make([]string, 0, 10) - if m.cleareduser { - edges = append(edges, file.EdgeUser) - } - if m.clearedorganization { - edges = append(edges, file.EdgeOrganization) - } - if m.clearedgroup { - edges = append(edges, file.EdgeGroup) - } - if m.clearedcontact { - edges = append(edges, file.EdgeContact) - } - if m.clearedentity { - edges = append(edges, file.EdgeEntity) - } - if m.clearedusersetting { - edges = append(edges, file.EdgeUsersetting) - } - if m.clearedorganizationsetting { - edges = append(edges, file.EdgeOrganizationsetting) - } - if m.clearedtemplate { - edges = append(edges, file.EdgeTemplate) - } - if m.cleareddocumentdata { - edges = append(edges, file.EdgeDocumentdata) - } - if m.clearedevents { - edges = append(edges, file.EdgeEvents) - } +func (m *EntityTypeHistoryMutation) 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 *FileMutation) EdgeCleared(name string) bool { - switch name { - case file.EdgeUser: - return m.cleareduser - case file.EdgeOrganization: - return m.clearedorganization - case file.EdgeGroup: - return m.clearedgroup - case file.EdgeContact: - return m.clearedcontact - case file.EdgeEntity: - return m.clearedentity - case file.EdgeUsersetting: - return m.clearedusersetting - case file.EdgeOrganizationsetting: - return m.clearedorganizationsetting - case file.EdgeTemplate: - return m.clearedtemplate - case file.EdgeDocumentdata: - return m.cleareddocumentdata - case file.EdgeEvents: - return m.clearedevents - } +func (m *EntityTypeHistoryMutation) 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 *FileMutation) ClearEdge(name string) error { - switch name { - } - return fmt.Errorf("unknown File unique edge %s", name) +func (m *EntityTypeHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown EntityTypeHistory 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 *FileMutation) ResetEdge(name string) error { - switch name { - case file.EdgeUser: - m.ResetUser() - return nil - case file.EdgeOrganization: - m.ResetOrganization() - return nil - case file.EdgeGroup: - m.ResetGroup() - return nil - case file.EdgeContact: - m.ResetContact() - return nil - case file.EdgeEntity: - m.ResetEntity() - return nil - case file.EdgeUsersetting: - m.ResetUsersetting() - return nil - case file.EdgeOrganizationsetting: - m.ResetOrganizationsetting() - return nil - case file.EdgeTemplate: - m.ResetTemplate() - return nil - case file.EdgeDocumentdata: - m.ResetDocumentdata() - return nil - case file.EdgeEvents: - m.ResetEvents() - return nil - } - return fmt.Errorf("unknown File edge %s", name) +func (m *EntityTypeHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown EntityTypeHistory edge %s", name) } -// FileHistoryMutation represents an operation that mutates the FileHistory nodes in the graph. -type FileHistoryMutation struct { +// EventMutation represents an operation that mutates the Event nodes in the graph. +type EventMutation 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 - deleted_at *time.Time - deleted_by *string - mapping_id *string - tags *[]string - appendtags []string - provided_file_name *string - provided_file_extension *string - provided_file_size *int64 - addprovided_file_size *int64 - persisted_file_size *int64 - addpersisted_file_size *int64 - detected_mime_type *string - md5_hash *string - detected_content_type *string - store_key *string - category_type *string - uri *string - storage_scheme *string - storage_volume *string - storage_path *string - file_contents *[]byte - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*FileHistory, error) - predicates []predicate.FileHistory + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + tags *[]string + appendtags []string + event_id *string + correlation_id *string + event_type *string + metadata *map[string]interface{} + clearedFields map[string]struct{} + user map[string]struct{} + removeduser map[string]struct{} + cleareduser bool + group map[string]struct{} + removedgroup map[string]struct{} + clearedgroup bool + integration map[string]struct{} + removedintegration map[string]struct{} + clearedintegration bool + organization map[string]struct{} + removedorganization map[string]struct{} + clearedorganization bool + invite map[string]struct{} + removedinvite map[string]struct{} + clearedinvite bool + feature map[string]struct{} + removedfeature map[string]struct{} + clearedfeature bool + entitlementplan map[string]struct{} + removedentitlementplan map[string]struct{} + clearedentitlementplan bool + entitlementplanfeature map[string]struct{} + removedentitlementplanfeature map[string]struct{} + clearedentitlementplanfeature bool + personal_access_token map[string]struct{} + removedpersonal_access_token map[string]struct{} + clearedpersonal_access_token bool + oauth2token map[string]struct{} + removedoauth2token map[string]struct{} + clearedoauth2token bool + hush map[string]struct{} + removedhush map[string]struct{} + clearedhush bool + orgmembership map[string]struct{} + removedorgmembership map[string]struct{} + clearedorgmembership bool + groupmembership map[string]struct{} + removedgroupmembership map[string]struct{} + clearedgroupmembership bool + entitlement map[string]struct{} + removedentitlement map[string]struct{} + clearedentitlement bool + webhook map[string]struct{} + removedwebhook map[string]struct{} + clearedwebhook bool + subscriber map[string]struct{} + removedsubscriber map[string]struct{} + clearedsubscriber bool + file map[string]struct{} + removedfile map[string]struct{} + clearedfile bool + done bool + oldValue func(context.Context) (*Event, error) + predicates []predicate.Event } -var _ ent.Mutation = (*FileHistoryMutation)(nil) +var _ ent.Mutation = (*EventMutation)(nil) -// filehistoryOption allows management of the mutation configuration using functional options. -type filehistoryOption func(*FileHistoryMutation) +// eventOption allows management of the mutation configuration using functional options. +type eventOption func(*EventMutation) -// newFileHistoryMutation creates new mutation for the FileHistory entity. -func newFileHistoryMutation(c config, op Op, opts ...filehistoryOption) *FileHistoryMutation { - m := &FileHistoryMutation{ +// newEventMutation creates new mutation for the Event entity. +func newEventMutation(c config, op Op, opts ...eventOption) *EventMutation { + m := &EventMutation{ config: c, op: op, - typ: TypeFileHistory, + typ: TypeEvent, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -32388,20 +34636,20 @@ func newFileHistoryMutation(c config, op Op, opts ...filehistoryOption) *FileHis return m } -// withFileHistoryID sets the ID field of the mutation. -func withFileHistoryID(id string) filehistoryOption { - return func(m *FileHistoryMutation) { +// withEventID sets the ID field of the mutation. +func withEventID(id string) eventOption { + return func(m *EventMutation) { var ( err error once sync.Once - value *FileHistory + value *Event ) - m.oldValue = func(ctx context.Context) (*FileHistory, error) { + m.oldValue = func(ctx context.Context) (*Event, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().FileHistory.Get(ctx, id) + value, err = m.Client().Event.Get(ctx, id) } }) return value, err @@ -32410,10 +34658,10 @@ func withFileHistoryID(id string) filehistoryOption { } } -// withFileHistory sets the old FileHistory of the mutation. -func withFileHistory(node *FileHistory) filehistoryOption { - return func(m *FileHistoryMutation) { - m.oldValue = func(context.Context) (*FileHistory, error) { +// withEvent sets the old Event of the mutation. +func withEvent(node *Event) eventOption { + return func(m *EventMutation) { + m.oldValue = func(context.Context) (*Event, error) { return node, nil } m.id = &node.ID @@ -32422,7 +34670,7 @@ func withFileHistory(node *FileHistory) filehistoryOption { // 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 FileHistoryMutation) Client() *Client { +func (m EventMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -32430,7 +34678,7 @@ func (m FileHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m FileHistoryMutation) Tx() (*Tx, error) { +func (m EventMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -32440,14 +34688,14 @@ func (m FileHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of FileHistory entities. -func (m *FileHistoryMutation) SetID(id string) { +// operation is only accepted on creation of Event entities. +func (m *EventMutation) 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 *FileHistoryMutation) ID() (id string, exists bool) { +func (m *EventMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -32458,7 +34706,7 @@ func (m *FileHistoryMutation) ID() (id string, exists bool) { // 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 *FileHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *EventMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -32467,156 +34715,35 @@ func (m *FileHistoryMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().FileHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().Event.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 *FileHistoryMutation) SetHistoryTime(t time.Time) { - m.history_time = &t +// SetCreatedAt sets the "created_at" field. +func (m *EventMutation) SetCreatedAt(t time.Time) { + m.created_at = &t } -// HistoryTime returns the value of the "history_time" field in the mutation. -func (m *FileHistoryMutation) HistoryTime() (r time.Time, exists bool) { - v := m.history_time +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *EventMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at if v == nil { return } return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the FileHistory entity. -// If the FileHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the Event entity. +// If the Event 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 *FileHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *EventMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldHistoryTime is only allowed on UpdateOne operations") + return v, errors.New("OldCreatedAt 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 *FileHistoryMutation) ResetHistoryTime() { - m.history_time = nil -} - -// SetRef sets the "ref" field. -func (m *FileHistoryMutation) SetRef(s string) { - m.ref = &s -} - -// Ref returns the value of the "ref" field in the mutation. -func (m *FileHistoryMutation) 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 FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) 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 *FileHistoryMutation) ClearRef() { - m.ref = nil - m.clearedFields[filehistory.FieldRef] = struct{}{} -} - -// RefCleared returns if the "ref" field was cleared in this mutation. -func (m *FileHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[filehistory.FieldRef] - return ok -} - -// ResetRef resets all changes to the "ref" field. -func (m *FileHistoryMutation) ResetRef() { - m.ref = nil - delete(m.clearedFields, filehistory.FieldRef) -} - -// SetOperation sets the "operation" field. -func (m *FileHistoryMutation) SetOperation(ht history.OpType) { - m.operation = &ht -} - -// Operation returns the value of the "operation" field in the mutation. -func (m *FileHistoryMutation) 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 FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) 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 *FileHistoryMutation) ResetOperation() { - m.operation = nil -} - -// SetCreatedAt sets the "created_at" field. -func (m *FileHistoryMutation) SetCreatedAt(t time.Time) { - m.created_at = &t -} - -// CreatedAt returns the value of the "created_at" field in the mutation. -func (m *FileHistoryMutation) 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 FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) 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") + return v, errors.New("OldCreatedAt requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { @@ -32626,30 +34753,30 @@ func (m *FileHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, er } // ClearCreatedAt clears the value of the "created_at" field. -func (m *FileHistoryMutation) ClearCreatedAt() { +func (m *EventMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[filehistory.FieldCreatedAt] = struct{}{} + m.clearedFields[event.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *FileHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[filehistory.FieldCreatedAt] +func (m *EventMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[event.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *FileHistoryMutation) ResetCreatedAt() { +func (m *EventMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, filehistory.FieldCreatedAt) + delete(m.clearedFields, event.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *FileHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *EventMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *FileHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *EventMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -32657,10 +34784,10 @@ func (m *FileHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the FileHistory entity. -// If the FileHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the Event entity. +// If the Event 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 *FileHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EventMutation) 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") } @@ -32675,30 +34802,30 @@ func (m *FileHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, er } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *FileHistoryMutation) ClearUpdatedAt() { +func (m *EventMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[filehistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[event.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *FileHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[filehistory.FieldUpdatedAt] +func (m *EventMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[event.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *FileHistoryMutation) ResetUpdatedAt() { +func (m *EventMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, filehistory.FieldUpdatedAt) + delete(m.clearedFields, event.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *FileHistoryMutation) SetCreatedBy(s string) { +func (m *EventMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *FileHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *EventMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -32706,10 +34833,10 @@ func (m *FileHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the FileHistory entity. -// If the FileHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the Event entity. +// If the Event 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 *FileHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *EventMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -32724,30 +34851,30 @@ func (m *FileHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err e } // ClearCreatedBy clears the value of the "created_by" field. -func (m *FileHistoryMutation) ClearCreatedBy() { +func (m *EventMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[filehistory.FieldCreatedBy] = struct{}{} + m.clearedFields[event.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *FileHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[filehistory.FieldCreatedBy] +func (m *EventMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[event.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *FileHistoryMutation) ResetCreatedBy() { +func (m *EventMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, filehistory.FieldCreatedBy) + delete(m.clearedFields, event.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *FileHistoryMutation) SetUpdatedBy(s string) { +func (m *EventMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *FileHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *EventMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -32755,10 +34882,10 @@ func (m *FileHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the FileHistory entity. -// If the FileHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the Event entity. +// If the Event 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 *FileHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *EventMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -32773,128 +34900,30 @@ func (m *FileHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err e } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *FileHistoryMutation) ClearUpdatedBy() { +func (m *EventMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[filehistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[event.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *FileHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[filehistory.FieldUpdatedBy] +func (m *EventMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[event.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *FileHistoryMutation) ResetUpdatedBy() { +func (m *EventMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, filehistory.FieldUpdatedBy) -} - -// SetDeletedAt sets the "deleted_at" field. -func (m *FileHistoryMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t -} - -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *FileHistoryMutation) 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 FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) 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 *FileHistoryMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[filehistory.FieldDeletedAt] = struct{}{} -} - -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *FileHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[filehistory.FieldDeletedAt] - return ok -} - -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *FileHistoryMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, filehistory.FieldDeletedAt) -} - -// SetDeletedBy sets the "deleted_by" field. -func (m *FileHistoryMutation) SetDeletedBy(s string) { - m.deleted_by = &s -} - -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *FileHistoryMutation) 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 FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) 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 *FileHistoryMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[filehistory.FieldDeletedBy] = struct{}{} -} - -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *FileHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[filehistory.FieldDeletedBy] - return ok -} - -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *FileHistoryMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, filehistory.FieldDeletedBy) + delete(m.clearedFields, event.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *FileHistoryMutation) SetMappingID(s string) { +func (m *EventMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *FileHistoryMutation) MappingID() (r string, exists bool) { +func (m *EventMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -32902,10 +34931,10 @@ func (m *FileHistoryMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the FileHistory entity. -// If the FileHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the Event entity. +// If the Event 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 *FileHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *EventMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -32920,18 +34949,18 @@ func (m *FileHistoryMutation) OldMappingID(ctx context.Context) (v string, err e } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *FileHistoryMutation) ResetMappingID() { +func (m *EventMutation) ResetMappingID() { m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *FileHistoryMutation) SetTags(s []string) { +func (m *EventMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *FileHistoryMutation) Tags() (r []string, exists bool) { +func (m *EventMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -32939,10 +34968,10 @@ func (m *FileHistoryMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the FileHistory entity. -// If the FileHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the Event entity. +// If the Event 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 *FileHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *EventMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -32957,12 +34986,12 @@ func (m *FileHistoryMutation) OldTags(ctx context.Context) (v []string, err erro } // AppendTags adds s to the "tags" field. -func (m *FileHistoryMutation) AppendTags(s []string) { +func (m *EventMutation) 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 *FileHistoryMutation) AppendedTags() ([]string, bool) { +func (m *EventMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -32970,882 +34999,1219 @@ func (m *FileHistoryMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *FileHistoryMutation) ClearTags() { +func (m *EventMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[filehistory.FieldTags] = struct{}{} + m.clearedFields[event.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *FileHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[filehistory.FieldTags] +func (m *EventMutation) TagsCleared() bool { + _, ok := m.clearedFields[event.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *FileHistoryMutation) ResetTags() { +func (m *EventMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, filehistory.FieldTags) + delete(m.clearedFields, event.FieldTags) } -// SetProvidedFileName sets the "provided_file_name" field. -func (m *FileHistoryMutation) SetProvidedFileName(s string) { - m.provided_file_name = &s +// SetEventID sets the "event_id" field. +func (m *EventMutation) SetEventID(s string) { + m.event_id = &s } -// ProvidedFileName returns the value of the "provided_file_name" field in the mutation. -func (m *FileHistoryMutation) ProvidedFileName() (r string, exists bool) { - v := m.provided_file_name +// EventID returns the value of the "event_id" field in the mutation. +func (m *EventMutation) EventID() (r string, exists bool) { + v := m.event_id if v == nil { return } return *v, true } -// OldProvidedFileName returns the old "provided_file_name" field's value of the FileHistory entity. -// If the FileHistory object wasn't provided to the builder, the object is fetched from the database. +// OldEventID returns the old "event_id" field's value of the Event entity. +// If the Event 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 *FileHistoryMutation) OldProvidedFileName(ctx context.Context) (v string, err error) { +func (m *EventMutation) OldEventID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldProvidedFileName is only allowed on UpdateOne operations") + return v, errors.New("OldEventID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldProvidedFileName requires an ID field in the mutation") + return v, errors.New("OldEventID requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldProvidedFileName: %w", err) + return v, fmt.Errorf("querying old value for OldEventID: %w", err) } - return oldValue.ProvidedFileName, nil + return oldValue.EventID, nil } -// ResetProvidedFileName resets all changes to the "provided_file_name" field. -func (m *FileHistoryMutation) ResetProvidedFileName() { - m.provided_file_name = nil +// ClearEventID clears the value of the "event_id" field. +func (m *EventMutation) ClearEventID() { + m.event_id = nil + m.clearedFields[event.FieldEventID] = struct{}{} } -// SetProvidedFileExtension sets the "provided_file_extension" field. -func (m *FileHistoryMutation) SetProvidedFileExtension(s string) { - m.provided_file_extension = &s +// EventIDCleared returns if the "event_id" field was cleared in this mutation. +func (m *EventMutation) EventIDCleared() bool { + _, ok := m.clearedFields[event.FieldEventID] + return ok } -// ProvidedFileExtension returns the value of the "provided_file_extension" field in the mutation. -func (m *FileHistoryMutation) ProvidedFileExtension() (r string, exists bool) { - v := m.provided_file_extension +// ResetEventID resets all changes to the "event_id" field. +func (m *EventMutation) ResetEventID() { + m.event_id = nil + delete(m.clearedFields, event.FieldEventID) +} + +// SetCorrelationID sets the "correlation_id" field. +func (m *EventMutation) SetCorrelationID(s string) { + m.correlation_id = &s +} + +// CorrelationID returns the value of the "correlation_id" field in the mutation. +func (m *EventMutation) CorrelationID() (r string, exists bool) { + v := m.correlation_id if v == nil { return } return *v, true } -// OldProvidedFileExtension returns the old "provided_file_extension" field's value of the FileHistory entity. -// If the FileHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCorrelationID returns the old "correlation_id" field's value of the Event entity. +// If the Event 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 *FileHistoryMutation) OldProvidedFileExtension(ctx context.Context) (v string, err error) { +func (m *EventMutation) OldCorrelationID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldProvidedFileExtension is only allowed on UpdateOne operations") + return v, errors.New("OldCorrelationID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldProvidedFileExtension requires an ID field in the mutation") + return v, errors.New("OldCorrelationID requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldProvidedFileExtension: %w", err) + return v, fmt.Errorf("querying old value for OldCorrelationID: %w", err) } - return oldValue.ProvidedFileExtension, nil + return oldValue.CorrelationID, nil } -// ResetProvidedFileExtension resets all changes to the "provided_file_extension" field. -func (m *FileHistoryMutation) ResetProvidedFileExtension() { - m.provided_file_extension = nil +// ClearCorrelationID clears the value of the "correlation_id" field. +func (m *EventMutation) ClearCorrelationID() { + m.correlation_id = nil + m.clearedFields[event.FieldCorrelationID] = struct{}{} } -// SetProvidedFileSize sets the "provided_file_size" field. -func (m *FileHistoryMutation) SetProvidedFileSize(i int64) { - m.provided_file_size = &i - m.addprovided_file_size = nil +// CorrelationIDCleared returns if the "correlation_id" field was cleared in this mutation. +func (m *EventMutation) CorrelationIDCleared() bool { + _, ok := m.clearedFields[event.FieldCorrelationID] + return ok } -// ProvidedFileSize returns the value of the "provided_file_size" field in the mutation. -func (m *FileHistoryMutation) ProvidedFileSize() (r int64, exists bool) { - v := m.provided_file_size +// ResetCorrelationID resets all changes to the "correlation_id" field. +func (m *EventMutation) ResetCorrelationID() { + m.correlation_id = nil + delete(m.clearedFields, event.FieldCorrelationID) +} + +// SetEventType sets the "event_type" field. +func (m *EventMutation) SetEventType(s string) { + m.event_type = &s +} + +// EventType returns the value of the "event_type" field in the mutation. +func (m *EventMutation) EventType() (r string, exists bool) { + v := m.event_type if v == nil { return } return *v, true } -// OldProvidedFileSize returns the old "provided_file_size" field's value of the FileHistory entity. -// If the FileHistory object wasn't provided to the builder, the object is fetched from the database. +// OldEventType returns the old "event_type" field's value of the Event entity. +// If the Event 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 *FileHistoryMutation) OldProvidedFileSize(ctx context.Context) (v int64, err error) { +func (m *EventMutation) OldEventType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldProvidedFileSize is only allowed on UpdateOne operations") + return v, errors.New("OldEventType is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldProvidedFileSize requires an ID field in the mutation") + return v, errors.New("OldEventType requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldProvidedFileSize: %w", err) - } - return oldValue.ProvidedFileSize, nil -} - -// AddProvidedFileSize adds i to the "provided_file_size" field. -func (m *FileHistoryMutation) AddProvidedFileSize(i int64) { - if m.addprovided_file_size != nil { - *m.addprovided_file_size += i - } else { - m.addprovided_file_size = &i - } -} - -// AddedProvidedFileSize returns the value that was added to the "provided_file_size" field in this mutation. -func (m *FileHistoryMutation) AddedProvidedFileSize() (r int64, exists bool) { - v := m.addprovided_file_size - if v == nil { - return + return v, fmt.Errorf("querying old value for OldEventType: %w", err) } - return *v, true -} - -// ClearProvidedFileSize clears the value of the "provided_file_size" field. -func (m *FileHistoryMutation) ClearProvidedFileSize() { - m.provided_file_size = nil - m.addprovided_file_size = nil - m.clearedFields[filehistory.FieldProvidedFileSize] = struct{}{} -} - -// ProvidedFileSizeCleared returns if the "provided_file_size" field was cleared in this mutation. -func (m *FileHistoryMutation) ProvidedFileSizeCleared() bool { - _, ok := m.clearedFields[filehistory.FieldProvidedFileSize] - return ok + return oldValue.EventType, nil } -// ResetProvidedFileSize resets all changes to the "provided_file_size" field. -func (m *FileHistoryMutation) ResetProvidedFileSize() { - m.provided_file_size = nil - m.addprovided_file_size = nil - delete(m.clearedFields, filehistory.FieldProvidedFileSize) +// ResetEventType resets all changes to the "event_type" field. +func (m *EventMutation) ResetEventType() { + m.event_type = nil } -// SetPersistedFileSize sets the "persisted_file_size" field. -func (m *FileHistoryMutation) SetPersistedFileSize(i int64) { - m.persisted_file_size = &i - m.addpersisted_file_size = nil +// SetMetadata sets the "metadata" field. +func (m *EventMutation) SetMetadata(value map[string]interface{}) { + m.metadata = &value } -// PersistedFileSize returns the value of the "persisted_file_size" field in the mutation. -func (m *FileHistoryMutation) PersistedFileSize() (r int64, exists bool) { - v := m.persisted_file_size +// Metadata returns the value of the "metadata" field in the mutation. +func (m *EventMutation) Metadata() (r map[string]interface{}, exists bool) { + v := m.metadata if v == nil { return } return *v, true } -// OldPersistedFileSize returns the old "persisted_file_size" field's value of the FileHistory entity. -// If the FileHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMetadata returns the old "metadata" field's value of the Event entity. +// If the Event 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 *FileHistoryMutation) OldPersistedFileSize(ctx context.Context) (v int64, err error) { +func (m *EventMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldPersistedFileSize is only allowed on UpdateOne operations") + return v, errors.New("OldMetadata is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldPersistedFileSize requires an ID field in the mutation") + 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 OldPersistedFileSize: %w", err) + return v, fmt.Errorf("querying old value for OldMetadata: %w", err) } - return oldValue.PersistedFileSize, nil + return oldValue.Metadata, nil } -// AddPersistedFileSize adds i to the "persisted_file_size" field. -func (m *FileHistoryMutation) AddPersistedFileSize(i int64) { - if m.addpersisted_file_size != nil { - *m.addpersisted_file_size += i - } else { - m.addpersisted_file_size = &i - } +// ClearMetadata clears the value of the "metadata" field. +func (m *EventMutation) ClearMetadata() { + m.metadata = nil + m.clearedFields[event.FieldMetadata] = struct{}{} } -// AddedPersistedFileSize returns the value that was added to the "persisted_file_size" field in this mutation. -func (m *FileHistoryMutation) AddedPersistedFileSize() (r int64, exists bool) { - v := m.addpersisted_file_size - if v == nil { - return - } - return *v, true +// MetadataCleared returns if the "metadata" field was cleared in this mutation. +func (m *EventMutation) MetadataCleared() bool { + _, ok := m.clearedFields[event.FieldMetadata] + return ok } -// ClearPersistedFileSize clears the value of the "persisted_file_size" field. -func (m *FileHistoryMutation) ClearPersistedFileSize() { - m.persisted_file_size = nil - m.addpersisted_file_size = nil - m.clearedFields[filehistory.FieldPersistedFileSize] = struct{}{} +// ResetMetadata resets all changes to the "metadata" field. +func (m *EventMutation) ResetMetadata() { + m.metadata = nil + delete(m.clearedFields, event.FieldMetadata) } -// PersistedFileSizeCleared returns if the "persisted_file_size" field was cleared in this mutation. -func (m *FileHistoryMutation) PersistedFileSizeCleared() bool { - _, ok := m.clearedFields[filehistory.FieldPersistedFileSize] - return ok +// AddUserIDs adds the "user" edge to the User entity by ids. +func (m *EventMutation) AddUserIDs(ids ...string) { + if m.user == nil { + m.user = make(map[string]struct{}) + } + for i := range ids { + m.user[ids[i]] = struct{}{} + } } -// ResetPersistedFileSize resets all changes to the "persisted_file_size" field. -func (m *FileHistoryMutation) ResetPersistedFileSize() { - m.persisted_file_size = nil - m.addpersisted_file_size = nil - delete(m.clearedFields, filehistory.FieldPersistedFileSize) +// ClearUser clears the "user" edge to the User entity. +func (m *EventMutation) ClearUser() { + m.cleareduser = true } -// SetDetectedMimeType sets the "detected_mime_type" field. -func (m *FileHistoryMutation) SetDetectedMimeType(s string) { - m.detected_mime_type = &s +// UserCleared reports if the "user" edge to the User entity was cleared. +func (m *EventMutation) UserCleared() bool { + return m.cleareduser } -// DetectedMimeType returns the value of the "detected_mime_type" field in the mutation. -func (m *FileHistoryMutation) DetectedMimeType() (r string, exists bool) { - v := m.detected_mime_type - if v == nil { - return +// RemoveUserIDs removes the "user" edge to the User entity by IDs. +func (m *EventMutation) RemoveUserIDs(ids ...string) { + if m.removeduser == nil { + m.removeduser = make(map[string]struct{}) + } + for i := range ids { + delete(m.user, ids[i]) + m.removeduser[ids[i]] = struct{}{} } - return *v, true } -// OldDetectedMimeType returns the old "detected_mime_type" field's value of the FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) OldDetectedMimeType(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDetectedMimeType is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDetectedMimeType requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldDetectedMimeType: %w", err) +// RemovedUser returns the removed IDs of the "user" edge to the User entity. +func (m *EventMutation) RemovedUserIDs() (ids []string) { + for id := range m.removeduser { + ids = append(ids, id) } - return oldValue.DetectedMimeType, nil + return } -// ClearDetectedMimeType clears the value of the "detected_mime_type" field. -func (m *FileHistoryMutation) ClearDetectedMimeType() { - m.detected_mime_type = nil - m.clearedFields[filehistory.FieldDetectedMimeType] = struct{}{} +// UserIDs returns the "user" edge IDs in the mutation. +func (m *EventMutation) UserIDs() (ids []string) { + for id := range m.user { + ids = append(ids, id) + } + return } -// DetectedMimeTypeCleared returns if the "detected_mime_type" field was cleared in this mutation. -func (m *FileHistoryMutation) DetectedMimeTypeCleared() bool { - _, ok := m.clearedFields[filehistory.FieldDetectedMimeType] - return ok +// ResetUser resets all changes to the "user" edge. +func (m *EventMutation) ResetUser() { + m.user = nil + m.cleareduser = false + m.removeduser = nil } -// ResetDetectedMimeType resets all changes to the "detected_mime_type" field. -func (m *FileHistoryMutation) ResetDetectedMimeType() { - m.detected_mime_type = nil - delete(m.clearedFields, filehistory.FieldDetectedMimeType) +// AddGroupIDs adds the "group" edge to the Group entity by ids. +func (m *EventMutation) AddGroupIDs(ids ...string) { + if m.group == nil { + m.group = make(map[string]struct{}) + } + for i := range ids { + m.group[ids[i]] = struct{}{} + } } -// SetMd5Hash sets the "md5_hash" field. -func (m *FileHistoryMutation) SetMd5Hash(s string) { - m.md5_hash = &s +// ClearGroup clears the "group" edge to the Group entity. +func (m *EventMutation) ClearGroup() { + m.clearedgroup = true } -// Md5Hash returns the value of the "md5_hash" field in the mutation. -func (m *FileHistoryMutation) Md5Hash() (r string, exists bool) { - v := m.md5_hash - if v == nil { - return - } - return *v, true +// GroupCleared reports if the "group" edge to the Group entity was cleared. +func (m *EventMutation) GroupCleared() bool { + return m.clearedgroup } -// OldMd5Hash returns the old "md5_hash" field's value of the FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) OldMd5Hash(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMd5Hash is only allowed on UpdateOne operations") +// RemoveGroupIDs removes the "group" edge to the Group entity by IDs. +func (m *EventMutation) RemoveGroupIDs(ids ...string) { + if m.removedgroup == nil { + m.removedgroup = make(map[string]struct{}) } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMd5Hash requires an ID field in the mutation") + for i := range ids { + delete(m.group, ids[i]) + m.removedgroup[ids[i]] = struct{}{} } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMd5Hash: %w", err) +} + +// RemovedGroup returns the removed IDs of the "group" edge to the Group entity. +func (m *EventMutation) RemovedGroupIDs() (ids []string) { + for id := range m.removedgroup { + ids = append(ids, id) } - return oldValue.Md5Hash, nil + return } -// ClearMd5Hash clears the value of the "md5_hash" field. -func (m *FileHistoryMutation) ClearMd5Hash() { - m.md5_hash = nil - m.clearedFields[filehistory.FieldMd5Hash] = struct{}{} +// GroupIDs returns the "group" edge IDs in the mutation. +func (m *EventMutation) GroupIDs() (ids []string) { + for id := range m.group { + ids = append(ids, id) + } + return } -// Md5HashCleared returns if the "md5_hash" field was cleared in this mutation. -func (m *FileHistoryMutation) Md5HashCleared() bool { - _, ok := m.clearedFields[filehistory.FieldMd5Hash] - return ok +// ResetGroup resets all changes to the "group" edge. +func (m *EventMutation) ResetGroup() { + m.group = nil + m.clearedgroup = false + m.removedgroup = nil } -// ResetMd5Hash resets all changes to the "md5_hash" field. -func (m *FileHistoryMutation) ResetMd5Hash() { - m.md5_hash = nil - delete(m.clearedFields, filehistory.FieldMd5Hash) +// AddIntegrationIDs adds the "integration" edge to the Integration entity by ids. +func (m *EventMutation) AddIntegrationIDs(ids ...string) { + if m.integration == nil { + m.integration = make(map[string]struct{}) + } + for i := range ids { + m.integration[ids[i]] = struct{}{} + } } -// SetDetectedContentType sets the "detected_content_type" field. -func (m *FileHistoryMutation) SetDetectedContentType(s string) { - m.detected_content_type = &s +// ClearIntegration clears the "integration" edge to the Integration entity. +func (m *EventMutation) ClearIntegration() { + m.clearedintegration = true } -// DetectedContentType returns the value of the "detected_content_type" field in the mutation. -func (m *FileHistoryMutation) DetectedContentType() (r string, exists bool) { - v := m.detected_content_type - if v == nil { - return - } - return *v, true +// IntegrationCleared reports if the "integration" edge to the Integration entity was cleared. +func (m *EventMutation) IntegrationCleared() bool { + return m.clearedintegration } -// OldDetectedContentType returns the old "detected_content_type" field's value of the FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) OldDetectedContentType(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDetectedContentType is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDetectedContentType requires an ID field in the mutation") +// RemoveIntegrationIDs removes the "integration" edge to the Integration entity by IDs. +func (m *EventMutation) RemoveIntegrationIDs(ids ...string) { + if m.removedintegration == nil { + m.removedintegration = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldDetectedContentType: %w", err) + for i := range ids { + delete(m.integration, ids[i]) + m.removedintegration[ids[i]] = struct{}{} } - return oldValue.DetectedContentType, nil } -// ResetDetectedContentType resets all changes to the "detected_content_type" field. -func (m *FileHistoryMutation) ResetDetectedContentType() { - m.detected_content_type = nil +// RemovedIntegration returns the removed IDs of the "integration" edge to the Integration entity. +func (m *EventMutation) RemovedIntegrationIDs() (ids []string) { + for id := range m.removedintegration { + ids = append(ids, id) + } + return } -// SetStoreKey sets the "store_key" field. -func (m *FileHistoryMutation) SetStoreKey(s string) { - m.store_key = &s +// IntegrationIDs returns the "integration" edge IDs in the mutation. +func (m *EventMutation) IntegrationIDs() (ids []string) { + for id := range m.integration { + ids = append(ids, id) + } + return } -// StoreKey returns the value of the "store_key" field in the mutation. -func (m *FileHistoryMutation) StoreKey() (r string, exists bool) { - v := m.store_key - if v == nil { - return - } - return *v, true +// ResetIntegration resets all changes to the "integration" edge. +func (m *EventMutation) ResetIntegration() { + m.integration = nil + m.clearedintegration = false + m.removedintegration = nil } -// OldStoreKey returns the old "store_key" field's value of the FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) OldStoreKey(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStoreKey is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStoreKey requires an ID field in the mutation") +// AddOrganizationIDs adds the "organization" edge to the Organization entity by ids. +func (m *EventMutation) AddOrganizationIDs(ids ...string) { + if m.organization == nil { + m.organization = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldStoreKey: %w", err) + for i := range ids { + m.organization[ids[i]] = struct{}{} } - return oldValue.StoreKey, nil } -// ClearStoreKey clears the value of the "store_key" field. -func (m *FileHistoryMutation) ClearStoreKey() { - m.store_key = nil - m.clearedFields[filehistory.FieldStoreKey] = struct{}{} +// ClearOrganization clears the "organization" edge to the Organization entity. +func (m *EventMutation) ClearOrganization() { + m.clearedorganization = true } -// StoreKeyCleared returns if the "store_key" field was cleared in this mutation. -func (m *FileHistoryMutation) StoreKeyCleared() bool { - _, ok := m.clearedFields[filehistory.FieldStoreKey] - return ok +// OrganizationCleared reports if the "organization" edge to the Organization entity was cleared. +func (m *EventMutation) OrganizationCleared() bool { + return m.clearedorganization } -// ResetStoreKey resets all changes to the "store_key" field. -func (m *FileHistoryMutation) ResetStoreKey() { - m.store_key = nil - delete(m.clearedFields, filehistory.FieldStoreKey) +// RemoveOrganizationIDs removes the "organization" edge to the Organization entity by IDs. +func (m *EventMutation) RemoveOrganizationIDs(ids ...string) { + if m.removedorganization == nil { + m.removedorganization = make(map[string]struct{}) + } + for i := range ids { + delete(m.organization, ids[i]) + m.removedorganization[ids[i]] = struct{}{} + } } -// SetCategoryType sets the "category_type" field. -func (m *FileHistoryMutation) SetCategoryType(s string) { - m.category_type = &s +// RemovedOrganization returns the removed IDs of the "organization" edge to the Organization entity. +func (m *EventMutation) RemovedOrganizationIDs() (ids []string) { + for id := range m.removedorganization { + ids = append(ids, id) + } + return } -// CategoryType returns the value of the "category_type" field in the mutation. -func (m *FileHistoryMutation) CategoryType() (r string, exists bool) { - v := m.category_type - if v == nil { - return +// OrganizationIDs returns the "organization" edge IDs in the mutation. +func (m *EventMutation) OrganizationIDs() (ids []string) { + for id := range m.organization { + ids = append(ids, id) } - return *v, true + return } -// OldCategoryType returns the old "category_type" field's value of the FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) OldCategoryType(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCategoryType is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldCategoryType requires an ID field in the mutation") +// ResetOrganization resets all changes to the "organization" edge. +func (m *EventMutation) ResetOrganization() { + m.organization = nil + m.clearedorganization = false + m.removedorganization = nil +} + +// AddInviteIDs adds the "invite" edge to the Invite entity by ids. +func (m *EventMutation) AddInviteIDs(ids ...string) { + if m.invite == nil { + m.invite = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldCategoryType: %w", err) + for i := range ids { + m.invite[ids[i]] = struct{}{} } - return oldValue.CategoryType, nil } -// ClearCategoryType clears the value of the "category_type" field. -func (m *FileHistoryMutation) ClearCategoryType() { - m.category_type = nil - m.clearedFields[filehistory.FieldCategoryType] = struct{}{} +// ClearInvite clears the "invite" edge to the Invite entity. +func (m *EventMutation) ClearInvite() { + m.clearedinvite = true } -// CategoryTypeCleared returns if the "category_type" field was cleared in this mutation. -func (m *FileHistoryMutation) CategoryTypeCleared() bool { - _, ok := m.clearedFields[filehistory.FieldCategoryType] - return ok +// InviteCleared reports if the "invite" edge to the Invite entity was cleared. +func (m *EventMutation) InviteCleared() bool { + return m.clearedinvite } -// ResetCategoryType resets all changes to the "category_type" field. -func (m *FileHistoryMutation) ResetCategoryType() { - m.category_type = nil - delete(m.clearedFields, filehistory.FieldCategoryType) +// RemoveInviteIDs removes the "invite" edge to the Invite entity by IDs. +func (m *EventMutation) RemoveInviteIDs(ids ...string) { + if m.removedinvite == nil { + m.removedinvite = make(map[string]struct{}) + } + for i := range ids { + delete(m.invite, ids[i]) + m.removedinvite[ids[i]] = struct{}{} + } } -// SetURI sets the "uri" field. -func (m *FileHistoryMutation) SetURI(s string) { - m.uri = &s +// RemovedInvite returns the removed IDs of the "invite" edge to the Invite entity. +func (m *EventMutation) RemovedInviteIDs() (ids []string) { + for id := range m.removedinvite { + ids = append(ids, id) + } + return } -// URI returns the value of the "uri" field in the mutation. -func (m *FileHistoryMutation) URI() (r string, exists bool) { - v := m.uri - if v == nil { - return +// InviteIDs returns the "invite" edge IDs in the mutation. +func (m *EventMutation) InviteIDs() (ids []string) { + for id := range m.invite { + ids = append(ids, id) } - return *v, true + return } -// OldURI returns the old "uri" field's value of the FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) OldURI(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldURI is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldURI requires an ID field in the mutation") +// ResetInvite resets all changes to the "invite" edge. +func (m *EventMutation) ResetInvite() { + m.invite = nil + m.clearedinvite = false + m.removedinvite = nil +} + +// AddFeatureIDs adds the "feature" edge to the Feature entity by ids. +func (m *EventMutation) AddFeatureIDs(ids ...string) { + if m.feature == nil { + m.feature = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldURI: %w", err) + for i := range ids { + m.feature[ids[i]] = struct{}{} } - return oldValue.URI, nil } -// ClearURI clears the value of the "uri" field. -func (m *FileHistoryMutation) ClearURI() { - m.uri = nil - m.clearedFields[filehistory.FieldURI] = struct{}{} +// ClearFeature clears the "feature" edge to the Feature entity. +func (m *EventMutation) ClearFeature() { + m.clearedfeature = true } -// URICleared returns if the "uri" field was cleared in this mutation. -func (m *FileHistoryMutation) URICleared() bool { - _, ok := m.clearedFields[filehistory.FieldURI] - return ok +// FeatureCleared reports if the "feature" edge to the Feature entity was cleared. +func (m *EventMutation) FeatureCleared() bool { + return m.clearedfeature } -// ResetURI resets all changes to the "uri" field. -func (m *FileHistoryMutation) ResetURI() { - m.uri = nil - delete(m.clearedFields, filehistory.FieldURI) +// RemoveFeatureIDs removes the "feature" edge to the Feature entity by IDs. +func (m *EventMutation) RemoveFeatureIDs(ids ...string) { + if m.removedfeature == nil { + m.removedfeature = make(map[string]struct{}) + } + for i := range ids { + delete(m.feature, ids[i]) + m.removedfeature[ids[i]] = struct{}{} + } } -// SetStorageScheme sets the "storage_scheme" field. -func (m *FileHistoryMutation) SetStorageScheme(s string) { - m.storage_scheme = &s +// RemovedFeature returns the removed IDs of the "feature" edge to the Feature entity. +func (m *EventMutation) RemovedFeatureIDs() (ids []string) { + for id := range m.removedfeature { + ids = append(ids, id) + } + return } -// StorageScheme returns the value of the "storage_scheme" field in the mutation. -func (m *FileHistoryMutation) StorageScheme() (r string, exists bool) { - v := m.storage_scheme - if v == nil { - return +// FeatureIDs returns the "feature" edge IDs in the mutation. +func (m *EventMutation) FeatureIDs() (ids []string) { + for id := range m.feature { + ids = append(ids, id) } - return *v, true + return } -// OldStorageScheme returns the old "storage_scheme" field's value of the FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) OldStorageScheme(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStorageScheme is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStorageScheme requires an ID field in the mutation") +// ResetFeature resets all changes to the "feature" edge. +func (m *EventMutation) ResetFeature() { + m.feature = nil + m.clearedfeature = false + m.removedfeature = nil +} + +// AddEntitlementplanIDs adds the "entitlementplan" edge to the EntitlementPlan entity by ids. +func (m *EventMutation) AddEntitlementplanIDs(ids ...string) { + if m.entitlementplan == nil { + m.entitlementplan = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldStorageScheme: %w", err) + for i := range ids { + m.entitlementplan[ids[i]] = struct{}{} } - return oldValue.StorageScheme, nil } -// ClearStorageScheme clears the value of the "storage_scheme" field. -func (m *FileHistoryMutation) ClearStorageScheme() { - m.storage_scheme = nil - m.clearedFields[filehistory.FieldStorageScheme] = struct{}{} +// ClearEntitlementplan clears the "entitlementplan" edge to the EntitlementPlan entity. +func (m *EventMutation) ClearEntitlementplan() { + m.clearedentitlementplan = true } -// StorageSchemeCleared returns if the "storage_scheme" field was cleared in this mutation. -func (m *FileHistoryMutation) StorageSchemeCleared() bool { - _, ok := m.clearedFields[filehistory.FieldStorageScheme] - return ok +// EntitlementplanCleared reports if the "entitlementplan" edge to the EntitlementPlan entity was cleared. +func (m *EventMutation) EntitlementplanCleared() bool { + return m.clearedentitlementplan } -// ResetStorageScheme resets all changes to the "storage_scheme" field. -func (m *FileHistoryMutation) ResetStorageScheme() { - m.storage_scheme = nil - delete(m.clearedFields, filehistory.FieldStorageScheme) +// RemoveEntitlementplanIDs removes the "entitlementplan" edge to the EntitlementPlan entity by IDs. +func (m *EventMutation) RemoveEntitlementplanIDs(ids ...string) { + if m.removedentitlementplan == nil { + m.removedentitlementplan = make(map[string]struct{}) + } + for i := range ids { + delete(m.entitlementplan, ids[i]) + m.removedentitlementplan[ids[i]] = struct{}{} + } } -// SetStorageVolume sets the "storage_volume" field. -func (m *FileHistoryMutation) SetStorageVolume(s string) { - m.storage_volume = &s +// RemovedEntitlementplan returns the removed IDs of the "entitlementplan" edge to the EntitlementPlan entity. +func (m *EventMutation) RemovedEntitlementplanIDs() (ids []string) { + for id := range m.removedentitlementplan { + ids = append(ids, id) + } + return } -// StorageVolume returns the value of the "storage_volume" field in the mutation. -func (m *FileHistoryMutation) StorageVolume() (r string, exists bool) { - v := m.storage_volume - if v == nil { - return +// EntitlementplanIDs returns the "entitlementplan" edge IDs in the mutation. +func (m *EventMutation) EntitlementplanIDs() (ids []string) { + for id := range m.entitlementplan { + ids = append(ids, id) } - return *v, true + return } -// OldStorageVolume returns the old "storage_volume" field's value of the FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) OldStorageVolume(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStorageVolume is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStorageVolume requires an ID field in the mutation") +// ResetEntitlementplan resets all changes to the "entitlementplan" edge. +func (m *EventMutation) ResetEntitlementplan() { + m.entitlementplan = nil + m.clearedentitlementplan = false + m.removedentitlementplan = nil +} + +// AddEntitlementplanfeatureIDs adds the "entitlementplanfeature" edge to the EntitlementPlanFeature entity by ids. +func (m *EventMutation) AddEntitlementplanfeatureIDs(ids ...string) { + if m.entitlementplanfeature == nil { + m.entitlementplanfeature = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldStorageVolume: %w", err) + for i := range ids { + m.entitlementplanfeature[ids[i]] = struct{}{} } - return oldValue.StorageVolume, nil } -// ClearStorageVolume clears the value of the "storage_volume" field. -func (m *FileHistoryMutation) ClearStorageVolume() { - m.storage_volume = nil - m.clearedFields[filehistory.FieldStorageVolume] = struct{}{} +// ClearEntitlementplanfeature clears the "entitlementplanfeature" edge to the EntitlementPlanFeature entity. +func (m *EventMutation) ClearEntitlementplanfeature() { + m.clearedentitlementplanfeature = true } -// StorageVolumeCleared returns if the "storage_volume" field was cleared in this mutation. -func (m *FileHistoryMutation) StorageVolumeCleared() bool { - _, ok := m.clearedFields[filehistory.FieldStorageVolume] - return ok +// EntitlementplanfeatureCleared reports if the "entitlementplanfeature" edge to the EntitlementPlanFeature entity was cleared. +func (m *EventMutation) EntitlementplanfeatureCleared() bool { + return m.clearedentitlementplanfeature } -// ResetStorageVolume resets all changes to the "storage_volume" field. -func (m *FileHistoryMutation) ResetStorageVolume() { - m.storage_volume = nil - delete(m.clearedFields, filehistory.FieldStorageVolume) +// RemoveEntitlementplanfeatureIDs removes the "entitlementplanfeature" edge to the EntitlementPlanFeature entity by IDs. +func (m *EventMutation) RemoveEntitlementplanfeatureIDs(ids ...string) { + if m.removedentitlementplanfeature == nil { + m.removedentitlementplanfeature = make(map[string]struct{}) + } + for i := range ids { + delete(m.entitlementplanfeature, ids[i]) + m.removedentitlementplanfeature[ids[i]] = struct{}{} + } } -// SetStoragePath sets the "storage_path" field. -func (m *FileHistoryMutation) SetStoragePath(s string) { - m.storage_path = &s +// RemovedEntitlementplanfeature returns the removed IDs of the "entitlementplanfeature" edge to the EntitlementPlanFeature entity. +func (m *EventMutation) RemovedEntitlementplanfeatureIDs() (ids []string) { + for id := range m.removedentitlementplanfeature { + ids = append(ids, id) + } + return } -// StoragePath returns the value of the "storage_path" field in the mutation. -func (m *FileHistoryMutation) StoragePath() (r string, exists bool) { - v := m.storage_path - if v == nil { - return +// EntitlementplanfeatureIDs returns the "entitlementplanfeature" edge IDs in the mutation. +func (m *EventMutation) EntitlementplanfeatureIDs() (ids []string) { + for id := range m.entitlementplanfeature { + ids = append(ids, id) } - return *v, true + return } -// OldStoragePath returns the old "storage_path" field's value of the FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) OldStoragePath(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStoragePath is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStoragePath requires an ID field in the mutation") +// ResetEntitlementplanfeature resets all changes to the "entitlementplanfeature" edge. +func (m *EventMutation) ResetEntitlementplanfeature() { + m.entitlementplanfeature = nil + m.clearedentitlementplanfeature = false + m.removedentitlementplanfeature = nil +} + +// AddPersonalAccessTokenIDs adds the "personal_access_token" edge to the PersonalAccessToken entity by ids. +func (m *EventMutation) AddPersonalAccessTokenIDs(ids ...string) { + if m.personal_access_token == nil { + m.personal_access_token = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldStoragePath: %w", err) + for i := range ids { + m.personal_access_token[ids[i]] = struct{}{} } - return oldValue.StoragePath, nil } -// ClearStoragePath clears the value of the "storage_path" field. -func (m *FileHistoryMutation) ClearStoragePath() { - m.storage_path = nil - m.clearedFields[filehistory.FieldStoragePath] = struct{}{} +// ClearPersonalAccessToken clears the "personal_access_token" edge to the PersonalAccessToken entity. +func (m *EventMutation) ClearPersonalAccessToken() { + m.clearedpersonal_access_token = true } -// StoragePathCleared returns if the "storage_path" field was cleared in this mutation. -func (m *FileHistoryMutation) StoragePathCleared() bool { - _, ok := m.clearedFields[filehistory.FieldStoragePath] - return ok +// PersonalAccessTokenCleared reports if the "personal_access_token" edge to the PersonalAccessToken entity was cleared. +func (m *EventMutation) PersonalAccessTokenCleared() bool { + return m.clearedpersonal_access_token } -// ResetStoragePath resets all changes to the "storage_path" field. -func (m *FileHistoryMutation) ResetStoragePath() { - m.storage_path = nil - delete(m.clearedFields, filehistory.FieldStoragePath) +// RemovePersonalAccessTokenIDs removes the "personal_access_token" edge to the PersonalAccessToken entity by IDs. +func (m *EventMutation) RemovePersonalAccessTokenIDs(ids ...string) { + if m.removedpersonal_access_token == nil { + m.removedpersonal_access_token = make(map[string]struct{}) + } + for i := range ids { + delete(m.personal_access_token, ids[i]) + m.removedpersonal_access_token[ids[i]] = struct{}{} + } } -// SetFileContents sets the "file_contents" field. -func (m *FileHistoryMutation) SetFileContents(b []byte) { - m.file_contents = &b +// RemovedPersonalAccessToken returns the removed IDs of the "personal_access_token" edge to the PersonalAccessToken entity. +func (m *EventMutation) RemovedPersonalAccessTokenIDs() (ids []string) { + for id := range m.removedpersonal_access_token { + ids = append(ids, id) + } + return } -// FileContents returns the value of the "file_contents" field in the mutation. -func (m *FileHistoryMutation) FileContents() (r []byte, exists bool) { - v := m.file_contents - if v == nil { - return +// PersonalAccessTokenIDs returns the "personal_access_token" edge IDs in the mutation. +func (m *EventMutation) PersonalAccessTokenIDs() (ids []string) { + for id := range m.personal_access_token { + ids = append(ids, id) } - return *v, true + return } -// OldFileContents returns the old "file_contents" field's value of the FileHistory entity. -// If the FileHistory 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 *FileHistoryMutation) OldFileContents(ctx context.Context) (v []byte, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldFileContents is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldFileContents requires an ID field in the mutation") +// ResetPersonalAccessToken resets all changes to the "personal_access_token" edge. +func (m *EventMutation) ResetPersonalAccessToken() { + m.personal_access_token = nil + m.clearedpersonal_access_token = false + m.removedpersonal_access_token = nil +} + +// AddOauth2tokenIDs adds the "oauth2token" edge to the OhAuthTooToken entity by ids. +func (m *EventMutation) AddOauth2tokenIDs(ids ...string) { + if m.oauth2token == nil { + m.oauth2token = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldFileContents: %w", err) + for i := range ids { + m.oauth2token[ids[i]] = struct{}{} } - return oldValue.FileContents, nil } -// ClearFileContents clears the value of the "file_contents" field. -func (m *FileHistoryMutation) ClearFileContents() { - m.file_contents = nil - m.clearedFields[filehistory.FieldFileContents] = struct{}{} +// ClearOauth2token clears the "oauth2token" edge to the OhAuthTooToken entity. +func (m *EventMutation) ClearOauth2token() { + m.clearedoauth2token = true } -// FileContentsCleared returns if the "file_contents" field was cleared in this mutation. -func (m *FileHistoryMutation) FileContentsCleared() bool { - _, ok := m.clearedFields[filehistory.FieldFileContents] - return ok +// Oauth2tokenCleared reports if the "oauth2token" edge to the OhAuthTooToken entity was cleared. +func (m *EventMutation) Oauth2tokenCleared() bool { + return m.clearedoauth2token } -// ResetFileContents resets all changes to the "file_contents" field. -func (m *FileHistoryMutation) ResetFileContents() { - m.file_contents = nil - delete(m.clearedFields, filehistory.FieldFileContents) +// RemoveOauth2tokenIDs removes the "oauth2token" edge to the OhAuthTooToken entity by IDs. +func (m *EventMutation) RemoveOauth2tokenIDs(ids ...string) { + if m.removedoauth2token == nil { + m.removedoauth2token = make(map[string]struct{}) + } + for i := range ids { + delete(m.oauth2token, ids[i]) + m.removedoauth2token[ids[i]] = struct{}{} + } } -// Where appends a list predicates to the FileHistoryMutation builder. -func (m *FileHistoryMutation) Where(ps ...predicate.FileHistory) { - m.predicates = append(m.predicates, ps...) +// RemovedOauth2token returns the removed IDs of the "oauth2token" edge to the OhAuthTooToken entity. +func (m *EventMutation) RemovedOauth2tokenIDs() (ids []string) { + for id := range m.removedoauth2token { + ids = append(ids, id) + } + return } -// WhereP appends storage-level predicates to the FileHistoryMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *FileHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.FileHistory, len(ps)) - for i := range ps { - p[i] = ps[i] +// Oauth2tokenIDs returns the "oauth2token" edge IDs in the mutation. +func (m *EventMutation) Oauth2tokenIDs() (ids []string) { + for id := range m.oauth2token { + ids = append(ids, id) } - m.Where(p...) + return } -// Op returns the operation name. -func (m *FileHistoryMutation) Op() Op { - return m.op +// ResetOauth2token resets all changes to the "oauth2token" edge. +func (m *EventMutation) ResetOauth2token() { + m.oauth2token = nil + m.clearedoauth2token = false + m.removedoauth2token = nil } -// SetOp allows setting the mutation operation. -func (m *FileHistoryMutation) SetOp(op Op) { - m.op = op +// AddHushIDs adds the "hush" edge to the Hush entity by ids. +func (m *EventMutation) AddHushIDs(ids ...string) { + if m.hush == nil { + m.hush = make(map[string]struct{}) + } + for i := range ids { + m.hush[ids[i]] = struct{}{} + } } -// Type returns the node type of this mutation (FileHistory). -func (m *FileHistoryMutation) Type() string { - return m.typ +// ClearHush clears the "hush" edge to the Hush entity. +func (m *EventMutation) ClearHush() { + m.clearedhush = true } -// 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 *FileHistoryMutation) Fields() []string { - fields := make([]string, 0, 25) - if m.history_time != nil { - fields = append(fields, filehistory.FieldHistoryTime) - } - if m.ref != nil { - fields = append(fields, filehistory.FieldRef) - } - if m.operation != nil { - fields = append(fields, filehistory.FieldOperation) - } - if m.created_at != nil { - fields = append(fields, filehistory.FieldCreatedAt) - } - if m.updated_at != nil { - fields = append(fields, filehistory.FieldUpdatedAt) +// HushCleared reports if the "hush" edge to the Hush entity was cleared. +func (m *EventMutation) HushCleared() bool { + return m.clearedhush +} + +// RemoveHushIDs removes the "hush" edge to the Hush entity by IDs. +func (m *EventMutation) RemoveHushIDs(ids ...string) { + if m.removedhush == nil { + m.removedhush = make(map[string]struct{}) } - if m.created_by != nil { - fields = append(fields, filehistory.FieldCreatedBy) + for i := range ids { + delete(m.hush, ids[i]) + m.removedhush[ids[i]] = struct{}{} } - if m.updated_by != nil { - fields = append(fields, filehistory.FieldUpdatedBy) +} + +// RemovedHush returns the removed IDs of the "hush" edge to the Hush entity. +func (m *EventMutation) RemovedHushIDs() (ids []string) { + for id := range m.removedhush { + ids = append(ids, id) } - if m.deleted_at != nil { - fields = append(fields, filehistory.FieldDeletedAt) + return +} + +// HushIDs returns the "hush" edge IDs in the mutation. +func (m *EventMutation) HushIDs() (ids []string) { + for id := range m.hush { + ids = append(ids, id) } - if m.deleted_by != nil { - fields = append(fields, filehistory.FieldDeletedBy) + return +} + +// ResetHush resets all changes to the "hush" edge. +func (m *EventMutation) ResetHush() { + m.hush = nil + m.clearedhush = false + m.removedhush = nil +} + +// AddOrgmembershipIDs adds the "orgmembership" edge to the OrgMembership entity by ids. +func (m *EventMutation) AddOrgmembershipIDs(ids ...string) { + if m.orgmembership == nil { + m.orgmembership = make(map[string]struct{}) } - if m.mapping_id != nil { - fields = append(fields, filehistory.FieldMappingID) + for i := range ids { + m.orgmembership[ids[i]] = struct{}{} } - if m.tags != nil { - fields = append(fields, filehistory.FieldTags) +} + +// ClearOrgmembership clears the "orgmembership" edge to the OrgMembership entity. +func (m *EventMutation) ClearOrgmembership() { + m.clearedorgmembership = true +} + +// OrgmembershipCleared reports if the "orgmembership" edge to the OrgMembership entity was cleared. +func (m *EventMutation) OrgmembershipCleared() bool { + return m.clearedorgmembership +} + +// RemoveOrgmembershipIDs removes the "orgmembership" edge to the OrgMembership entity by IDs. +func (m *EventMutation) RemoveOrgmembershipIDs(ids ...string) { + if m.removedorgmembership == nil { + m.removedorgmembership = make(map[string]struct{}) } - if m.provided_file_name != nil { - fields = append(fields, filehistory.FieldProvidedFileName) + for i := range ids { + delete(m.orgmembership, ids[i]) + m.removedorgmembership[ids[i]] = struct{}{} } - if m.provided_file_extension != nil { - fields = append(fields, filehistory.FieldProvidedFileExtension) +} + +// RemovedOrgmembership returns the removed IDs of the "orgmembership" edge to the OrgMembership entity. +func (m *EventMutation) RemovedOrgmembershipIDs() (ids []string) { + for id := range m.removedorgmembership { + ids = append(ids, id) } - if m.provided_file_size != nil { - fields = append(fields, filehistory.FieldProvidedFileSize) + return +} + +// OrgmembershipIDs returns the "orgmembership" edge IDs in the mutation. +func (m *EventMutation) OrgmembershipIDs() (ids []string) { + for id := range m.orgmembership { + ids = append(ids, id) } - if m.persisted_file_size != nil { - fields = append(fields, filehistory.FieldPersistedFileSize) + return +} + +// ResetOrgmembership resets all changes to the "orgmembership" edge. +func (m *EventMutation) ResetOrgmembership() { + m.orgmembership = nil + m.clearedorgmembership = false + m.removedorgmembership = nil +} + +// AddGroupmembershipIDs adds the "groupmembership" edge to the GroupMembership entity by ids. +func (m *EventMutation) AddGroupmembershipIDs(ids ...string) { + if m.groupmembership == nil { + m.groupmembership = make(map[string]struct{}) } - if m.detected_mime_type != nil { - fields = append(fields, filehistory.FieldDetectedMimeType) + for i := range ids { + m.groupmembership[ids[i]] = struct{}{} } - if m.md5_hash != nil { - fields = append(fields, filehistory.FieldMd5Hash) +} + +// ClearGroupmembership clears the "groupmembership" edge to the GroupMembership entity. +func (m *EventMutation) ClearGroupmembership() { + m.clearedgroupmembership = true +} + +// GroupmembershipCleared reports if the "groupmembership" edge to the GroupMembership entity was cleared. +func (m *EventMutation) GroupmembershipCleared() bool { + return m.clearedgroupmembership +} + +// RemoveGroupmembershipIDs removes the "groupmembership" edge to the GroupMembership entity by IDs. +func (m *EventMutation) RemoveGroupmembershipIDs(ids ...string) { + if m.removedgroupmembership == nil { + m.removedgroupmembership = make(map[string]struct{}) } - if m.detected_content_type != nil { - fields = append(fields, filehistory.FieldDetectedContentType) + for i := range ids { + delete(m.groupmembership, ids[i]) + m.removedgroupmembership[ids[i]] = struct{}{} } - if m.store_key != nil { - fields = append(fields, filehistory.FieldStoreKey) +} + +// RemovedGroupmembership returns the removed IDs of the "groupmembership" edge to the GroupMembership entity. +func (m *EventMutation) RemovedGroupmembershipIDs() (ids []string) { + for id := range m.removedgroupmembership { + ids = append(ids, id) } - if m.category_type != nil { - fields = append(fields, filehistory.FieldCategoryType) + return +} + +// GroupmembershipIDs returns the "groupmembership" edge IDs in the mutation. +func (m *EventMutation) GroupmembershipIDs() (ids []string) { + for id := range m.groupmembership { + ids = append(ids, id) } - if m.uri != nil { - fields = append(fields, filehistory.FieldURI) + return +} + +// ResetGroupmembership resets all changes to the "groupmembership" edge. +func (m *EventMutation) ResetGroupmembership() { + m.groupmembership = nil + m.clearedgroupmembership = false + m.removedgroupmembership = nil +} + +// AddEntitlementIDs adds the "entitlement" edge to the Entitlement entity by ids. +func (m *EventMutation) AddEntitlementIDs(ids ...string) { + if m.entitlement == nil { + m.entitlement = make(map[string]struct{}) } - if m.storage_scheme != nil { - fields = append(fields, filehistory.FieldStorageScheme) + for i := range ids { + m.entitlement[ids[i]] = struct{}{} } - if m.storage_volume != nil { - fields = append(fields, filehistory.FieldStorageVolume) +} + +// ClearEntitlement clears the "entitlement" edge to the Entitlement entity. +func (m *EventMutation) ClearEntitlement() { + m.clearedentitlement = true +} + +// EntitlementCleared reports if the "entitlement" edge to the Entitlement entity was cleared. +func (m *EventMutation) EntitlementCleared() bool { + return m.clearedentitlement +} + +// RemoveEntitlementIDs removes the "entitlement" edge to the Entitlement entity by IDs. +func (m *EventMutation) RemoveEntitlementIDs(ids ...string) { + if m.removedentitlement == nil { + m.removedentitlement = make(map[string]struct{}) } - if m.storage_path != nil { - fields = append(fields, filehistory.FieldStoragePath) + for i := range ids { + delete(m.entitlement, ids[i]) + m.removedentitlement[ids[i]] = struct{}{} } - if m.file_contents != nil { - fields = append(fields, filehistory.FieldFileContents) +} + +// RemovedEntitlement returns the removed IDs of the "entitlement" edge to the Entitlement entity. +func (m *EventMutation) RemovedEntitlementIDs() (ids []string) { + for id := range m.removedentitlement { + ids = append(ids, id) } - return fields + return } -// 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 *FileHistoryMutation) Field(name string) (ent.Value, bool) { - switch name { - case filehistory.FieldHistoryTime: - return m.HistoryTime() - case filehistory.FieldRef: - return m.Ref() - case filehistory.FieldOperation: - return m.Operation() - case filehistory.FieldCreatedAt: +// EntitlementIDs returns the "entitlement" edge IDs in the mutation. +func (m *EventMutation) EntitlementIDs() (ids []string) { + for id := range m.entitlement { + ids = append(ids, id) + } + return +} + +// ResetEntitlement resets all changes to the "entitlement" edge. +func (m *EventMutation) ResetEntitlement() { + m.entitlement = nil + m.clearedentitlement = false + m.removedentitlement = nil +} + +// AddWebhookIDs adds the "webhook" edge to the Webhook entity by ids. +func (m *EventMutation) AddWebhookIDs(ids ...string) { + if m.webhook == nil { + m.webhook = make(map[string]struct{}) + } + for i := range ids { + m.webhook[ids[i]] = struct{}{} + } +} + +// ClearWebhook clears the "webhook" edge to the Webhook entity. +func (m *EventMutation) ClearWebhook() { + m.clearedwebhook = true +} + +// WebhookCleared reports if the "webhook" edge to the Webhook entity was cleared. +func (m *EventMutation) WebhookCleared() bool { + return m.clearedwebhook +} + +// RemoveWebhookIDs removes the "webhook" edge to the Webhook entity by IDs. +func (m *EventMutation) RemoveWebhookIDs(ids ...string) { + if m.removedwebhook == nil { + m.removedwebhook = make(map[string]struct{}) + } + for i := range ids { + delete(m.webhook, ids[i]) + m.removedwebhook[ids[i]] = struct{}{} + } +} + +// RemovedWebhook returns the removed IDs of the "webhook" edge to the Webhook entity. +func (m *EventMutation) RemovedWebhookIDs() (ids []string) { + for id := range m.removedwebhook { + ids = append(ids, id) + } + return +} + +// WebhookIDs returns the "webhook" edge IDs in the mutation. +func (m *EventMutation) WebhookIDs() (ids []string) { + for id := range m.webhook { + ids = append(ids, id) + } + return +} + +// ResetWebhook resets all changes to the "webhook" edge. +func (m *EventMutation) ResetWebhook() { + m.webhook = nil + m.clearedwebhook = false + m.removedwebhook = nil +} + +// AddSubscriberIDs adds the "subscriber" edge to the Subscriber entity by ids. +func (m *EventMutation) AddSubscriberIDs(ids ...string) { + if m.subscriber == nil { + m.subscriber = make(map[string]struct{}) + } + for i := range ids { + m.subscriber[ids[i]] = struct{}{} + } +} + +// ClearSubscriber clears the "subscriber" edge to the Subscriber entity. +func (m *EventMutation) ClearSubscriber() { + m.clearedsubscriber = true +} + +// SubscriberCleared reports if the "subscriber" edge to the Subscriber entity was cleared. +func (m *EventMutation) SubscriberCleared() bool { + return m.clearedsubscriber +} + +// RemoveSubscriberIDs removes the "subscriber" edge to the Subscriber entity by IDs. +func (m *EventMutation) RemoveSubscriberIDs(ids ...string) { + if m.removedsubscriber == nil { + m.removedsubscriber = make(map[string]struct{}) + } + for i := range ids { + delete(m.subscriber, ids[i]) + m.removedsubscriber[ids[i]] = struct{}{} + } +} + +// RemovedSubscriber returns the removed IDs of the "subscriber" edge to the Subscriber entity. +func (m *EventMutation) RemovedSubscriberIDs() (ids []string) { + for id := range m.removedsubscriber { + ids = append(ids, id) + } + return +} + +// SubscriberIDs returns the "subscriber" edge IDs in the mutation. +func (m *EventMutation) SubscriberIDs() (ids []string) { + for id := range m.subscriber { + ids = append(ids, id) + } + return +} + +// ResetSubscriber resets all changes to the "subscriber" edge. +func (m *EventMutation) ResetSubscriber() { + m.subscriber = nil + m.clearedsubscriber = false + m.removedsubscriber = nil +} + +// AddFileIDs adds the "file" edge to the File entity by ids. +func (m *EventMutation) AddFileIDs(ids ...string) { + if m.file == nil { + m.file = make(map[string]struct{}) + } + for i := range ids { + m.file[ids[i]] = struct{}{} + } +} + +// ClearFile clears the "file" edge to the File entity. +func (m *EventMutation) ClearFile() { + m.clearedfile = true +} + +// FileCleared reports if the "file" edge to the File entity was cleared. +func (m *EventMutation) FileCleared() bool { + return m.clearedfile +} + +// RemoveFileIDs removes the "file" edge to the File entity by IDs. +func (m *EventMutation) RemoveFileIDs(ids ...string) { + if m.removedfile == nil { + m.removedfile = make(map[string]struct{}) + } + for i := range ids { + delete(m.file, ids[i]) + m.removedfile[ids[i]] = struct{}{} + } +} + +// RemovedFile returns the removed IDs of the "file" edge to the File entity. +func (m *EventMutation) RemovedFileIDs() (ids []string) { + for id := range m.removedfile { + ids = append(ids, id) + } + return +} + +// FileIDs returns the "file" edge IDs in the mutation. +func (m *EventMutation) FileIDs() (ids []string) { + for id := range m.file { + ids = append(ids, id) + } + return +} + +// ResetFile resets all changes to the "file" edge. +func (m *EventMutation) ResetFile() { + m.file = nil + m.clearedfile = false + m.removedfile = nil +} + +// Where appends a list predicates to the EventMutation builder. +func (m *EventMutation) Where(ps ...predicate.Event) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the EventMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *EventMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Event, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *EventMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *EventMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (Event). +func (m *EventMutation) 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 *EventMutation) Fields() []string { + fields := make([]string, 0, 10) + if m.created_at != nil { + fields = append(fields, event.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, event.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, event.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, event.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, event.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, event.FieldTags) + } + if m.event_id != nil { + fields = append(fields, event.FieldEventID) + } + if m.correlation_id != nil { + fields = append(fields, event.FieldCorrelationID) + } + if m.event_type != nil { + fields = append(fields, event.FieldEventType) + } + if m.metadata != nil { + fields = append(fields, event.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 *EventMutation) Field(name string) (ent.Value, bool) { + switch name { + case event.FieldCreatedAt: return m.CreatedAt() - case filehistory.FieldUpdatedAt: + case event.FieldUpdatedAt: return m.UpdatedAt() - case filehistory.FieldCreatedBy: + case event.FieldCreatedBy: return m.CreatedBy() - case filehistory.FieldUpdatedBy: + case event.FieldUpdatedBy: return m.UpdatedBy() - case filehistory.FieldDeletedAt: - return m.DeletedAt() - case filehistory.FieldDeletedBy: - return m.DeletedBy() - case filehistory.FieldMappingID: + case event.FieldMappingID: return m.MappingID() - case filehistory.FieldTags: + case event.FieldTags: return m.Tags() - case filehistory.FieldProvidedFileName: - return m.ProvidedFileName() - case filehistory.FieldProvidedFileExtension: - return m.ProvidedFileExtension() - case filehistory.FieldProvidedFileSize: - return m.ProvidedFileSize() - case filehistory.FieldPersistedFileSize: - return m.PersistedFileSize() - case filehistory.FieldDetectedMimeType: - return m.DetectedMimeType() - case filehistory.FieldMd5Hash: - return m.Md5Hash() - case filehistory.FieldDetectedContentType: - return m.DetectedContentType() - case filehistory.FieldStoreKey: - return m.StoreKey() - case filehistory.FieldCategoryType: - return m.CategoryType() - case filehistory.FieldURI: - return m.URI() - case filehistory.FieldStorageScheme: - return m.StorageScheme() - case filehistory.FieldStorageVolume: - return m.StorageVolume() - case filehistory.FieldStoragePath: - return m.StoragePath() - case filehistory.FieldFileContents: - return m.FileContents() + case event.FieldEventID: + return m.EventID() + case event.FieldCorrelationID: + return m.CorrelationID() + case event.FieldEventType: + return m.EventType() + case event.FieldMetadata: + return m.Metadata() } return nil, false } @@ -33853,618 +36219,778 @@ func (m *FileHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *FileHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *EventMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case filehistory.FieldHistoryTime: - return m.OldHistoryTime(ctx) - case filehistory.FieldRef: - return m.OldRef(ctx) - case filehistory.FieldOperation: - return m.OldOperation(ctx) - case filehistory.FieldCreatedAt: + case event.FieldCreatedAt: return m.OldCreatedAt(ctx) - case filehistory.FieldUpdatedAt: + case event.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case filehistory.FieldCreatedBy: + case event.FieldCreatedBy: return m.OldCreatedBy(ctx) - case filehistory.FieldUpdatedBy: + case event.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case filehistory.FieldDeletedAt: - return m.OldDeletedAt(ctx) - case filehistory.FieldDeletedBy: - return m.OldDeletedBy(ctx) - case filehistory.FieldMappingID: + case event.FieldMappingID: return m.OldMappingID(ctx) - case filehistory.FieldTags: + case event.FieldTags: return m.OldTags(ctx) - case filehistory.FieldProvidedFileName: - return m.OldProvidedFileName(ctx) - case filehistory.FieldProvidedFileExtension: - return m.OldProvidedFileExtension(ctx) - case filehistory.FieldProvidedFileSize: - return m.OldProvidedFileSize(ctx) - case filehistory.FieldPersistedFileSize: - return m.OldPersistedFileSize(ctx) - case filehistory.FieldDetectedMimeType: - return m.OldDetectedMimeType(ctx) - case filehistory.FieldMd5Hash: - return m.OldMd5Hash(ctx) - case filehistory.FieldDetectedContentType: - return m.OldDetectedContentType(ctx) - case filehistory.FieldStoreKey: - return m.OldStoreKey(ctx) - case filehistory.FieldCategoryType: - return m.OldCategoryType(ctx) - case filehistory.FieldURI: - return m.OldURI(ctx) - case filehistory.FieldStorageScheme: - return m.OldStorageScheme(ctx) - case filehistory.FieldStorageVolume: - return m.OldStorageVolume(ctx) - case filehistory.FieldStoragePath: - return m.OldStoragePath(ctx) - case filehistory.FieldFileContents: - return m.OldFileContents(ctx) + case event.FieldEventID: + return m.OldEventID(ctx) + case event.FieldCorrelationID: + return m.OldCorrelationID(ctx) + case event.FieldEventType: + return m.OldEventType(ctx) + case event.FieldMetadata: + return m.OldMetadata(ctx) } - return nil, fmt.Errorf("unknown FileHistory field %s", name) + return nil, fmt.Errorf("unknown Event 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 *FileHistoryMutation) SetField(name string, value ent.Value) error { +func (m *EventMutation) SetField(name string, value ent.Value) error { switch name { - case filehistory.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 filehistory.FieldRef: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetRef(v) - return nil - case filehistory.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 filehistory.FieldCreatedAt: + case event.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 filehistory.FieldUpdatedAt: + case event.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 filehistory.FieldCreatedBy: + case event.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case filehistory.FieldUpdatedBy: + case event.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case filehistory.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 filehistory.FieldDeletedBy: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetDeletedBy(v) - return nil - case filehistory.FieldMappingID: + case event.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case filehistory.FieldTags: + case event.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case filehistory.FieldProvidedFileName: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetProvidedFileName(v) - return nil - case filehistory.FieldProvidedFileExtension: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetProvidedFileExtension(v) - return nil - case filehistory.FieldProvidedFileSize: - v, ok := value.(int64) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetProvidedFileSize(v) - return nil - case filehistory.FieldPersistedFileSize: - v, ok := value.(int64) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetPersistedFileSize(v) - return nil - case filehistory.FieldDetectedMimeType: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetDetectedMimeType(v) - return nil - case filehistory.FieldMd5Hash: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetMd5Hash(v) - return nil - case filehistory.FieldDetectedContentType: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetDetectedContentType(v) - return nil - case filehistory.FieldStoreKey: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetStoreKey(v) - return nil - case filehistory.FieldCategoryType: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetCategoryType(v) - return nil - case filehistory.FieldURI: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetURI(v) - return nil - case filehistory.FieldStorageScheme: + case event.FieldEventID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetStorageScheme(v) + m.SetEventID(v) return nil - case filehistory.FieldStorageVolume: + case event.FieldCorrelationID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetStorageVolume(v) + m.SetCorrelationID(v) return nil - case filehistory.FieldStoragePath: + case event.FieldEventType: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetStoragePath(v) + m.SetEventType(v) return nil - case filehistory.FieldFileContents: - v, ok := value.([]byte) + case event.FieldMetadata: + v, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetFileContents(v) + m.SetMetadata(v) return nil } - return fmt.Errorf("unknown FileHistory field %s", name) + return fmt.Errorf("unknown Event field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *FileHistoryMutation) AddedFields() []string { - var fields []string - if m.addprovided_file_size != nil { - fields = append(fields, filehistory.FieldProvidedFileSize) - } - if m.addpersisted_file_size != nil { - fields = append(fields, filehistory.FieldPersistedFileSize) - } - return fields +func (m *EventMutation) 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 *FileHistoryMutation) AddedField(name string) (ent.Value, bool) { - switch name { - case filehistory.FieldProvidedFileSize: - return m.AddedProvidedFileSize() - case filehistory.FieldPersistedFileSize: - return m.AddedPersistedFileSize() - } +func (m *EventMutation) 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 *FileHistoryMutation) AddField(name string, value ent.Value) error { +func (m *EventMutation) AddField(name string, value ent.Value) error { switch name { - case filehistory.FieldProvidedFileSize: - v, ok := value.(int64) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.AddProvidedFileSize(v) - return nil - case filehistory.FieldPersistedFileSize: - v, ok := value.(int64) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.AddPersistedFileSize(v) - return nil } - return fmt.Errorf("unknown FileHistory numeric field %s", name) + return fmt.Errorf("unknown Event numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *FileHistoryMutation) ClearedFields() []string { +func (m *EventMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(filehistory.FieldRef) { - fields = append(fields, filehistory.FieldRef) - } - if m.FieldCleared(filehistory.FieldCreatedAt) { - fields = append(fields, filehistory.FieldCreatedAt) - } - if m.FieldCleared(filehistory.FieldUpdatedAt) { - fields = append(fields, filehistory.FieldUpdatedAt) - } - if m.FieldCleared(filehistory.FieldCreatedBy) { - fields = append(fields, filehistory.FieldCreatedBy) - } - if m.FieldCleared(filehistory.FieldUpdatedBy) { - fields = append(fields, filehistory.FieldUpdatedBy) - } - if m.FieldCleared(filehistory.FieldDeletedAt) { - fields = append(fields, filehistory.FieldDeletedAt) - } - if m.FieldCleared(filehistory.FieldDeletedBy) { - fields = append(fields, filehistory.FieldDeletedBy) - } - if m.FieldCleared(filehistory.FieldTags) { - fields = append(fields, filehistory.FieldTags) - } - if m.FieldCleared(filehistory.FieldProvidedFileSize) { - fields = append(fields, filehistory.FieldProvidedFileSize) - } - if m.FieldCleared(filehistory.FieldPersistedFileSize) { - fields = append(fields, filehistory.FieldPersistedFileSize) - } - if m.FieldCleared(filehistory.FieldDetectedMimeType) { - fields = append(fields, filehistory.FieldDetectedMimeType) - } - if m.FieldCleared(filehistory.FieldMd5Hash) { - fields = append(fields, filehistory.FieldMd5Hash) + if m.FieldCleared(event.FieldCreatedAt) { + fields = append(fields, event.FieldCreatedAt) } - if m.FieldCleared(filehistory.FieldStoreKey) { - fields = append(fields, filehistory.FieldStoreKey) + if m.FieldCleared(event.FieldUpdatedAt) { + fields = append(fields, event.FieldUpdatedAt) } - if m.FieldCleared(filehistory.FieldCategoryType) { - fields = append(fields, filehistory.FieldCategoryType) + if m.FieldCleared(event.FieldCreatedBy) { + fields = append(fields, event.FieldCreatedBy) } - if m.FieldCleared(filehistory.FieldURI) { - fields = append(fields, filehistory.FieldURI) + if m.FieldCleared(event.FieldUpdatedBy) { + fields = append(fields, event.FieldUpdatedBy) } - if m.FieldCleared(filehistory.FieldStorageScheme) { - fields = append(fields, filehistory.FieldStorageScheme) + if m.FieldCleared(event.FieldTags) { + fields = append(fields, event.FieldTags) } - if m.FieldCleared(filehistory.FieldStorageVolume) { - fields = append(fields, filehistory.FieldStorageVolume) + if m.FieldCleared(event.FieldEventID) { + fields = append(fields, event.FieldEventID) } - if m.FieldCleared(filehistory.FieldStoragePath) { - fields = append(fields, filehistory.FieldStoragePath) + if m.FieldCleared(event.FieldCorrelationID) { + fields = append(fields, event.FieldCorrelationID) } - if m.FieldCleared(filehistory.FieldFileContents) { - fields = append(fields, filehistory.FieldFileContents) + if m.FieldCleared(event.FieldMetadata) { + fields = append(fields, event.FieldMetadata) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *FileHistoryMutation) FieldCleared(name string) bool { +func (m *EventMutation) 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 *FileHistoryMutation) ClearField(name string) error { +func (m *EventMutation) ClearField(name string) error { switch name { - case filehistory.FieldRef: - m.ClearRef() - return nil - case filehistory.FieldCreatedAt: + case event.FieldCreatedAt: m.ClearCreatedAt() return nil - case filehistory.FieldUpdatedAt: + case event.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case filehistory.FieldCreatedBy: + case event.FieldCreatedBy: m.ClearCreatedBy() return nil - case filehistory.FieldUpdatedBy: + case event.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case filehistory.FieldDeletedAt: - m.ClearDeletedAt() - return nil - case filehistory.FieldDeletedBy: - m.ClearDeletedBy() - return nil - case filehistory.FieldTags: + case event.FieldTags: m.ClearTags() return nil - case filehistory.FieldProvidedFileSize: - m.ClearProvidedFileSize() - return nil - case filehistory.FieldPersistedFileSize: - m.ClearPersistedFileSize() - return nil - case filehistory.FieldDetectedMimeType: - m.ClearDetectedMimeType() - return nil - case filehistory.FieldMd5Hash: - m.ClearMd5Hash() - return nil - case filehistory.FieldStoreKey: - m.ClearStoreKey() - return nil - case filehistory.FieldCategoryType: - m.ClearCategoryType() - return nil - case filehistory.FieldURI: - m.ClearURI() - return nil - case filehistory.FieldStorageScheme: - m.ClearStorageScheme() - return nil - case filehistory.FieldStorageVolume: - m.ClearStorageVolume() + case event.FieldEventID: + m.ClearEventID() return nil - case filehistory.FieldStoragePath: - m.ClearStoragePath() + case event.FieldCorrelationID: + m.ClearCorrelationID() return nil - case filehistory.FieldFileContents: - m.ClearFileContents() + case event.FieldMetadata: + m.ClearMetadata() return nil } - return fmt.Errorf("unknown FileHistory nullable field %s", name) + return fmt.Errorf("unknown Event 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 *FileHistoryMutation) ResetField(name string) error { +func (m *EventMutation) ResetField(name string) error { switch name { - case filehistory.FieldHistoryTime: - m.ResetHistoryTime() - return nil - case filehistory.FieldRef: - m.ResetRef() - return nil - case filehistory.FieldOperation: - m.ResetOperation() - return nil - case filehistory.FieldCreatedAt: + case event.FieldCreatedAt: m.ResetCreatedAt() return nil - case filehistory.FieldUpdatedAt: + case event.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case filehistory.FieldCreatedBy: + case event.FieldCreatedBy: m.ResetCreatedBy() return nil - case filehistory.FieldUpdatedBy: + case event.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case filehistory.FieldDeletedAt: - m.ResetDeletedAt() - return nil - case filehistory.FieldDeletedBy: - m.ResetDeletedBy() - return nil - case filehistory.FieldMappingID: + case event.FieldMappingID: m.ResetMappingID() return nil - case filehistory.FieldTags: + case event.FieldTags: m.ResetTags() return nil - case filehistory.FieldProvidedFileName: - m.ResetProvidedFileName() - return nil - case filehistory.FieldProvidedFileExtension: - m.ResetProvidedFileExtension() - return nil - case filehistory.FieldProvidedFileSize: - m.ResetProvidedFileSize() - return nil - case filehistory.FieldPersistedFileSize: - m.ResetPersistedFileSize() - return nil - case filehistory.FieldDetectedMimeType: - m.ResetDetectedMimeType() - return nil - case filehistory.FieldMd5Hash: - m.ResetMd5Hash() - return nil - case filehistory.FieldDetectedContentType: - m.ResetDetectedContentType() - return nil - case filehistory.FieldStoreKey: - m.ResetStoreKey() - return nil - case filehistory.FieldCategoryType: - m.ResetCategoryType() - return nil - case filehistory.FieldURI: - m.ResetURI() - return nil - case filehistory.FieldStorageScheme: - m.ResetStorageScheme() + case event.FieldEventID: + m.ResetEventID() return nil - case filehistory.FieldStorageVolume: - m.ResetStorageVolume() + case event.FieldCorrelationID: + m.ResetCorrelationID() return nil - case filehistory.FieldStoragePath: - m.ResetStoragePath() + case event.FieldEventType: + m.ResetEventType() return nil - case filehistory.FieldFileContents: - m.ResetFileContents() + case event.FieldMetadata: + m.ResetMetadata() return nil } - return fmt.Errorf("unknown FileHistory field %s", name) + return fmt.Errorf("unknown Event field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *FileHistoryMutation) AddedEdges() []string { - edges := make([]string, 0, 0) +func (m *EventMutation) AddedEdges() []string { + edges := make([]string, 0, 17) + if m.user != nil { + edges = append(edges, event.EdgeUser) + } + if m.group != nil { + edges = append(edges, event.EdgeGroup) + } + if m.integration != nil { + edges = append(edges, event.EdgeIntegration) + } + if m.organization != nil { + edges = append(edges, event.EdgeOrganization) + } + if m.invite != nil { + edges = append(edges, event.EdgeInvite) + } + if m.feature != nil { + edges = append(edges, event.EdgeFeature) + } + if m.entitlementplan != nil { + edges = append(edges, event.EdgeEntitlementplan) + } + if m.entitlementplanfeature != nil { + edges = append(edges, event.EdgeEntitlementplanfeature) + } + if m.personal_access_token != nil { + edges = append(edges, event.EdgePersonalAccessToken) + } + if m.oauth2token != nil { + edges = append(edges, event.EdgeOauth2token) + } + if m.hush != nil { + edges = append(edges, event.EdgeHush) + } + if m.orgmembership != nil { + edges = append(edges, event.EdgeOrgmembership) + } + if m.groupmembership != nil { + edges = append(edges, event.EdgeGroupmembership) + } + if m.entitlement != nil { + edges = append(edges, event.EdgeEntitlement) + } + if m.webhook != nil { + edges = append(edges, event.EdgeWebhook) + } + if m.subscriber != nil { + edges = append(edges, event.EdgeSubscriber) + } + if m.file != nil { + edges = append(edges, event.EdgeFile) + } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *FileHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *EventMutation) AddedIDs(name string) []ent.Value { + switch name { + case event.EdgeUser: + ids := make([]ent.Value, 0, len(m.user)) + for id := range m.user { + ids = append(ids, id) + } + return ids + case event.EdgeGroup: + ids := make([]ent.Value, 0, len(m.group)) + for id := range m.group { + ids = append(ids, id) + } + return ids + case event.EdgeIntegration: + ids := make([]ent.Value, 0, len(m.integration)) + for id := range m.integration { + ids = append(ids, id) + } + return ids + case event.EdgeOrganization: + ids := make([]ent.Value, 0, len(m.organization)) + for id := range m.organization { + ids = append(ids, id) + } + return ids + case event.EdgeInvite: + ids := make([]ent.Value, 0, len(m.invite)) + for id := range m.invite { + ids = append(ids, id) + } + return ids + case event.EdgeFeature: + ids := make([]ent.Value, 0, len(m.feature)) + for id := range m.feature { + ids = append(ids, id) + } + return ids + case event.EdgeEntitlementplan: + ids := make([]ent.Value, 0, len(m.entitlementplan)) + for id := range m.entitlementplan { + ids = append(ids, id) + } + return ids + case event.EdgeEntitlementplanfeature: + ids := make([]ent.Value, 0, len(m.entitlementplanfeature)) + for id := range m.entitlementplanfeature { + ids = append(ids, id) + } + return ids + case event.EdgePersonalAccessToken: + ids := make([]ent.Value, 0, len(m.personal_access_token)) + for id := range m.personal_access_token { + ids = append(ids, id) + } + return ids + case event.EdgeOauth2token: + ids := make([]ent.Value, 0, len(m.oauth2token)) + for id := range m.oauth2token { + ids = append(ids, id) + } + return ids + case event.EdgeHush: + ids := make([]ent.Value, 0, len(m.hush)) + for id := range m.hush { + ids = append(ids, id) + } + return ids + case event.EdgeOrgmembership: + ids := make([]ent.Value, 0, len(m.orgmembership)) + for id := range m.orgmembership { + ids = append(ids, id) + } + return ids + case event.EdgeGroupmembership: + ids := make([]ent.Value, 0, len(m.groupmembership)) + for id := range m.groupmembership { + ids = append(ids, id) + } + return ids + case event.EdgeEntitlement: + ids := make([]ent.Value, 0, len(m.entitlement)) + for id := range m.entitlement { + ids = append(ids, id) + } + return ids + case event.EdgeWebhook: + ids := make([]ent.Value, 0, len(m.webhook)) + for id := range m.webhook { + ids = append(ids, id) + } + return ids + case event.EdgeSubscriber: + ids := make([]ent.Value, 0, len(m.subscriber)) + for id := range m.subscriber { + ids = append(ids, id) + } + return ids + case event.EdgeFile: + ids := make([]ent.Value, 0, len(m.file)) + for id := range m.file { + ids = append(ids, id) + } + return ids + } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *FileHistoryMutation) RemovedEdges() []string { - edges := make([]string, 0, 0) +func (m *EventMutation) RemovedEdges() []string { + edges := make([]string, 0, 17) + if m.removeduser != nil { + edges = append(edges, event.EdgeUser) + } + if m.removedgroup != nil { + edges = append(edges, event.EdgeGroup) + } + if m.removedintegration != nil { + edges = append(edges, event.EdgeIntegration) + } + if m.removedorganization != nil { + edges = append(edges, event.EdgeOrganization) + } + if m.removedinvite != nil { + edges = append(edges, event.EdgeInvite) + } + if m.removedfeature != nil { + edges = append(edges, event.EdgeFeature) + } + if m.removedentitlementplan != nil { + edges = append(edges, event.EdgeEntitlementplan) + } + if m.removedentitlementplanfeature != nil { + edges = append(edges, event.EdgeEntitlementplanfeature) + } + if m.removedpersonal_access_token != nil { + edges = append(edges, event.EdgePersonalAccessToken) + } + if m.removedoauth2token != nil { + edges = append(edges, event.EdgeOauth2token) + } + if m.removedhush != nil { + edges = append(edges, event.EdgeHush) + } + if m.removedorgmembership != nil { + edges = append(edges, event.EdgeOrgmembership) + } + if m.removedgroupmembership != nil { + edges = append(edges, event.EdgeGroupmembership) + } + if m.removedentitlement != nil { + edges = append(edges, event.EdgeEntitlement) + } + if m.removedwebhook != nil { + edges = append(edges, event.EdgeWebhook) + } + if m.removedsubscriber != nil { + edges = append(edges, event.EdgeSubscriber) + } + if m.removedfile != nil { + edges = append(edges, event.EdgeFile) + } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *FileHistoryMutation) RemovedIDs(name string) []ent.Value { - return nil -} - -// ClearedEdges returns all edge names that were cleared in this mutation. -func (m *FileHistoryMutation) 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 *FileHistoryMutation) 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 *FileHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown FileHistory 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 *FileHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown FileHistory edge %s", name) -} - -// GroupMutation represents an operation that mutates the Group nodes in the graph. -type GroupMutation struct { - config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - deleted_at *time.Time - deleted_by *string - mapping_id *string - tags *[]string - appendtags []string - name *string - description *string - gravatar_logo_url *string - logo_url *string - display_name *string - clearedFields map[string]struct{} - owner *string - clearedowner bool - setting *string - clearedsetting bool - users map[string]struct{} - removedusers map[string]struct{} - clearedusers bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - integrations map[string]struct{} - removedintegrations map[string]struct{} - clearedintegrations bool - files map[string]struct{} - removedfiles map[string]struct{} - clearedfiles bool - members map[string]struct{} - removedmembers map[string]struct{} - clearedmembers bool - done bool - oldValue func(context.Context) (*Group, error) - predicates []predicate.Group +func (m *EventMutation) RemovedIDs(name string) []ent.Value { + switch name { + case event.EdgeUser: + ids := make([]ent.Value, 0, len(m.removeduser)) + for id := range m.removeduser { + ids = append(ids, id) + } + return ids + case event.EdgeGroup: + ids := make([]ent.Value, 0, len(m.removedgroup)) + for id := range m.removedgroup { + ids = append(ids, id) + } + return ids + case event.EdgeIntegration: + ids := make([]ent.Value, 0, len(m.removedintegration)) + for id := range m.removedintegration { + ids = append(ids, id) + } + return ids + case event.EdgeOrganization: + ids := make([]ent.Value, 0, len(m.removedorganization)) + for id := range m.removedorganization { + ids = append(ids, id) + } + return ids + case event.EdgeInvite: + ids := make([]ent.Value, 0, len(m.removedinvite)) + for id := range m.removedinvite { + ids = append(ids, id) + } + return ids + case event.EdgeFeature: + ids := make([]ent.Value, 0, len(m.removedfeature)) + for id := range m.removedfeature { + ids = append(ids, id) + } + return ids + case event.EdgeEntitlementplan: + ids := make([]ent.Value, 0, len(m.removedentitlementplan)) + for id := range m.removedentitlementplan { + ids = append(ids, id) + } + return ids + case event.EdgeEntitlementplanfeature: + ids := make([]ent.Value, 0, len(m.removedentitlementplanfeature)) + for id := range m.removedentitlementplanfeature { + ids = append(ids, id) + } + return ids + case event.EdgePersonalAccessToken: + ids := make([]ent.Value, 0, len(m.removedpersonal_access_token)) + for id := range m.removedpersonal_access_token { + ids = append(ids, id) + } + return ids + case event.EdgeOauth2token: + ids := make([]ent.Value, 0, len(m.removedoauth2token)) + for id := range m.removedoauth2token { + ids = append(ids, id) + } + return ids + case event.EdgeHush: + ids := make([]ent.Value, 0, len(m.removedhush)) + for id := range m.removedhush { + ids = append(ids, id) + } + return ids + case event.EdgeOrgmembership: + ids := make([]ent.Value, 0, len(m.removedorgmembership)) + for id := range m.removedorgmembership { + ids = append(ids, id) + } + return ids + case event.EdgeGroupmembership: + ids := make([]ent.Value, 0, len(m.removedgroupmembership)) + for id := range m.removedgroupmembership { + ids = append(ids, id) + } + return ids + case event.EdgeEntitlement: + ids := make([]ent.Value, 0, len(m.removedentitlement)) + for id := range m.removedentitlement { + ids = append(ids, id) + } + return ids + case event.EdgeWebhook: + ids := make([]ent.Value, 0, len(m.removedwebhook)) + for id := range m.removedwebhook { + ids = append(ids, id) + } + return ids + case event.EdgeSubscriber: + ids := make([]ent.Value, 0, len(m.removedsubscriber)) + for id := range m.removedsubscriber { + ids = append(ids, id) + } + return ids + case event.EdgeFile: + ids := make([]ent.Value, 0, len(m.removedfile)) + for id := range m.removedfile { + ids = append(ids, id) + } + return ids + } + return nil } -var _ ent.Mutation = (*GroupMutation)(nil) +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *EventMutation) ClearedEdges() []string { + edges := make([]string, 0, 17) + if m.cleareduser { + edges = append(edges, event.EdgeUser) + } + if m.clearedgroup { + edges = append(edges, event.EdgeGroup) + } + if m.clearedintegration { + edges = append(edges, event.EdgeIntegration) + } + if m.clearedorganization { + edges = append(edges, event.EdgeOrganization) + } + if m.clearedinvite { + edges = append(edges, event.EdgeInvite) + } + if m.clearedfeature { + edges = append(edges, event.EdgeFeature) + } + if m.clearedentitlementplan { + edges = append(edges, event.EdgeEntitlementplan) + } + if m.clearedentitlementplanfeature { + edges = append(edges, event.EdgeEntitlementplanfeature) + } + if m.clearedpersonal_access_token { + edges = append(edges, event.EdgePersonalAccessToken) + } + if m.clearedoauth2token { + edges = append(edges, event.EdgeOauth2token) + } + if m.clearedhush { + edges = append(edges, event.EdgeHush) + } + if m.clearedorgmembership { + edges = append(edges, event.EdgeOrgmembership) + } + if m.clearedgroupmembership { + edges = append(edges, event.EdgeGroupmembership) + } + if m.clearedentitlement { + edges = append(edges, event.EdgeEntitlement) + } + if m.clearedwebhook { + edges = append(edges, event.EdgeWebhook) + } + if m.clearedsubscriber { + edges = append(edges, event.EdgeSubscriber) + } + if m.clearedfile { + edges = append(edges, event.EdgeFile) + } + return edges +} -// groupOption allows management of the mutation configuration using functional options. -type groupOption func(*GroupMutation) +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *EventMutation) EdgeCleared(name string) bool { + switch name { + case event.EdgeUser: + return m.cleareduser + case event.EdgeGroup: + return m.clearedgroup + case event.EdgeIntegration: + return m.clearedintegration + case event.EdgeOrganization: + return m.clearedorganization + case event.EdgeInvite: + return m.clearedinvite + case event.EdgeFeature: + return m.clearedfeature + case event.EdgeEntitlementplan: + return m.clearedentitlementplan + case event.EdgeEntitlementplanfeature: + return m.clearedentitlementplanfeature + case event.EdgePersonalAccessToken: + return m.clearedpersonal_access_token + case event.EdgeOauth2token: + return m.clearedoauth2token + case event.EdgeHush: + return m.clearedhush + case event.EdgeOrgmembership: + return m.clearedorgmembership + case event.EdgeGroupmembership: + return m.clearedgroupmembership + case event.EdgeEntitlement: + return m.clearedentitlement + case event.EdgeWebhook: + return m.clearedwebhook + case event.EdgeSubscriber: + return m.clearedsubscriber + case event.EdgeFile: + return m.clearedfile + } + return false +} -// newGroupMutation creates new mutation for the Group entity. -func newGroupMutation(c config, op Op, opts ...groupOption) *GroupMutation { - m := &GroupMutation{ +// 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 *EventMutation) ClearEdge(name string) error { + switch name { + } + return fmt.Errorf("unknown Event 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 *EventMutation) ResetEdge(name string) error { + switch name { + case event.EdgeUser: + m.ResetUser() + return nil + case event.EdgeGroup: + m.ResetGroup() + return nil + case event.EdgeIntegration: + m.ResetIntegration() + return nil + case event.EdgeOrganization: + m.ResetOrganization() + return nil + case event.EdgeInvite: + m.ResetInvite() + return nil + case event.EdgeFeature: + m.ResetFeature() + return nil + case event.EdgeEntitlementplan: + m.ResetEntitlementplan() + return nil + case event.EdgeEntitlementplanfeature: + m.ResetEntitlementplanfeature() + return nil + case event.EdgePersonalAccessToken: + m.ResetPersonalAccessToken() + return nil + case event.EdgeOauth2token: + m.ResetOauth2token() + return nil + case event.EdgeHush: + m.ResetHush() + return nil + case event.EdgeOrgmembership: + m.ResetOrgmembership() + return nil + case event.EdgeGroupmembership: + m.ResetGroupmembership() + return nil + case event.EdgeEntitlement: + m.ResetEntitlement() + return nil + case event.EdgeWebhook: + m.ResetWebhook() + return nil + case event.EdgeSubscriber: + m.ResetSubscriber() + return nil + case event.EdgeFile: + m.ResetFile() + return nil + } + return fmt.Errorf("unknown Event edge %s", name) +} + +// EventHistoryMutation represents an operation that mutates the EventHistory nodes in the graph. +type EventHistoryMutation 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 + mapping_id *string + tags *[]string + appendtags []string + event_id *string + correlation_id *string + event_type *string + metadata *map[string]interface{} + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*EventHistory, error) + predicates []predicate.EventHistory +} + +var _ ent.Mutation = (*EventHistoryMutation)(nil) + +// eventhistoryOption allows management of the mutation configuration using functional options. +type eventhistoryOption func(*EventHistoryMutation) + +// newEventHistoryMutation creates new mutation for the EventHistory entity. +func newEventHistoryMutation(c config, op Op, opts ...eventhistoryOption) *EventHistoryMutation { + m := &EventHistoryMutation{ config: c, op: op, - typ: TypeGroup, + typ: TypeEventHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -34473,20 +36999,20 @@ func newGroupMutation(c config, op Op, opts ...groupOption) *GroupMutation { return m } -// withGroupID sets the ID field of the mutation. -func withGroupID(id string) groupOption { - return func(m *GroupMutation) { +// withEventHistoryID sets the ID field of the mutation. +func withEventHistoryID(id string) eventhistoryOption { + return func(m *EventHistoryMutation) { var ( err error once sync.Once - value *Group + value *EventHistory ) - m.oldValue = func(ctx context.Context) (*Group, error) { + m.oldValue = func(ctx context.Context) (*EventHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().Group.Get(ctx, id) + value, err = m.Client().EventHistory.Get(ctx, id) } }) return value, err @@ -34495,10 +37021,10 @@ func withGroupID(id string) groupOption { } } -// withGroup sets the old Group of the mutation. -func withGroup(node *Group) groupOption { - return func(m *GroupMutation) { - m.oldValue = func(context.Context) (*Group, error) { +// withEventHistory sets the old EventHistory of the mutation. +func withEventHistory(node *EventHistory) eventhistoryOption { + return func(m *EventHistoryMutation) { + m.oldValue = func(context.Context) (*EventHistory, error) { return node, nil } m.id = &node.ID @@ -34507,7 +37033,7 @@ func withGroup(node *Group) groupOption { // 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 GroupMutation) Client() *Client { +func (m EventHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -34515,7 +37041,7 @@ func (m GroupMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m GroupMutation) Tx() (*Tx, error) { +func (m EventHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -34525,14 +37051,14 @@ func (m GroupMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of Group entities. -func (m *GroupMutation) SetID(id string) { +// operation is only accepted on creation of EventHistory entities. +func (m *EventHistoryMutation) 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 *GroupMutation) ID() (id string, exists bool) { +func (m *EventHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -34543,7 +37069,7 @@ func (m *GroupMutation) ID() (id string, exists bool) { // 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 *GroupMutation) IDs(ctx context.Context) ([]string, error) { +func (m *EventHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -34552,313 +37078,336 @@ func (m *GroupMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().Group.Query().Where(m.predicates...).IDs(ctx) + return m.Client().EventHistory.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 *GroupMutation) SetCreatedAt(t time.Time) { - m.created_at = &t +// SetHistoryTime sets the "history_time" field. +func (m *EventHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t } -// CreatedAt returns the value of the "created_at" field in the mutation. -func (m *GroupMutation) CreatedAt() (r time.Time, exists bool) { - v := m.created_at +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *EventHistoryMutation) HistoryTime() (r time.Time, exists bool) { + v := m.history_time if v == nil { return } return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the Group entity. -// If the Group object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the EventHistory entity. +// If the EventHistory 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 *GroupMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EventHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldHistoryTime 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") + 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 OldCreatedAt: %w", err) + return v, fmt.Errorf("querying old value for OldHistoryTime: %w", err) } - return oldValue.CreatedAt, nil -} - -// ClearCreatedAt clears the value of the "created_at" field. -func (m *GroupMutation) ClearCreatedAt() { - m.created_at = nil - m.clearedFields[group.FieldCreatedAt] = struct{}{} -} - -// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *GroupMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[group.FieldCreatedAt] - return ok + return oldValue.HistoryTime, nil } -// ResetCreatedAt resets all changes to the "created_at" field. -func (m *GroupMutation) ResetCreatedAt() { - m.created_at = nil - delete(m.clearedFields, group.FieldCreatedAt) +// ResetHistoryTime resets all changes to the "history_time" field. +func (m *EventHistoryMutation) ResetHistoryTime() { + m.history_time = nil } -// SetUpdatedAt sets the "updated_at" field. -func (m *GroupMutation) SetUpdatedAt(t time.Time) { - m.updated_at = &t +// SetRef sets the "ref" field. +func (m *EventHistoryMutation) SetRef(s string) { + m.ref = &s } -// UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *GroupMutation) UpdatedAt() (r time.Time, exists bool) { - v := m.updated_at +// Ref returns the value of the "ref" field in the mutation. +func (m *EventHistoryMutation) Ref() (r string, exists bool) { + v := m.ref if v == nil { return } return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the Group entity. -// If the Group object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the EventHistory entity. +// If the EventHistory 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 *GroupMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *EventHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldRef 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") + 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 OldUpdatedAt: %w", err) + return v, fmt.Errorf("querying old value for OldRef: %w", err) } - return oldValue.UpdatedAt, nil + return oldValue.Ref, nil } -// ClearUpdatedAt clears the value of the "updated_at" field. -func (m *GroupMutation) ClearUpdatedAt() { - m.updated_at = nil - m.clearedFields[group.FieldUpdatedAt] = struct{}{} +// ClearRef clears the value of the "ref" field. +func (m *EventHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[eventhistory.FieldRef] = struct{}{} } -// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *GroupMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[group.FieldUpdatedAt] +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *EventHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[eventhistory.FieldRef] return ok } -// ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *GroupMutation) ResetUpdatedAt() { - m.updated_at = nil - delete(m.clearedFields, group.FieldUpdatedAt) +// ResetRef resets all changes to the "ref" field. +func (m *EventHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, eventhistory.FieldRef) } -// SetCreatedBy sets the "created_by" field. -func (m *GroupMutation) SetCreatedBy(s string) { - m.created_by = &s +// SetOperation sets the "operation" field. +func (m *EventHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht } -// CreatedBy returns the value of the "created_by" field in the mutation. -func (m *GroupMutation) CreatedBy() (r string, exists bool) { - v := m.created_by +// Operation returns the value of the "operation" field in the mutation. +func (m *EventHistoryMutation) Operation() (r history.OpType, exists bool) { + v := m.operation if v == nil { return } return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the Group entity. -// If the Group object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the EventHistory entity. +// If the EventHistory 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 *GroupMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *EventHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") + return v, errors.New("OldOperation 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") + 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 OldCreatedBy: %w", err) + return v, fmt.Errorf("querying old value for OldOperation: %w", err) } - return oldValue.CreatedBy, nil -} - -// ClearCreatedBy clears the value of the "created_by" field. -func (m *GroupMutation) ClearCreatedBy() { - m.created_by = nil - m.clearedFields[group.FieldCreatedBy] = struct{}{} -} - -// CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *GroupMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[group.FieldCreatedBy] - return ok + return oldValue.Operation, nil } -// ResetCreatedBy resets all changes to the "created_by" field. -func (m *GroupMutation) ResetCreatedBy() { - m.created_by = nil - delete(m.clearedFields, group.FieldCreatedBy) +// ResetOperation resets all changes to the "operation" field. +func (m *EventHistoryMutation) ResetOperation() { + m.operation = nil } -// SetUpdatedBy sets the "updated_by" field. -func (m *GroupMutation) SetUpdatedBy(s string) { - m.updated_by = &s +// SetCreatedAt sets the "created_at" field. +func (m *EventHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t } -// UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *GroupMutation) UpdatedBy() (r string, exists bool) { - v := m.updated_by +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *EventHistoryMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at if v == nil { return } return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the Group entity. -// If the Group object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the EventHistory entity. +// If the EventHistory 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 *GroupMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *EventHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") + return v, errors.New("OldCreatedAt 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") + 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 OldUpdatedBy: %w", err) + return v, fmt.Errorf("querying old value for OldCreatedAt: %w", err) } - return oldValue.UpdatedBy, nil + return oldValue.CreatedAt, nil } -// ClearUpdatedBy clears the value of the "updated_by" field. -func (m *GroupMutation) ClearUpdatedBy() { - m.updated_by = nil - m.clearedFields[group.FieldUpdatedBy] = struct{}{} +// ClearCreatedAt clears the value of the "created_at" field. +func (m *EventHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[eventhistory.FieldCreatedAt] = struct{}{} } -// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *GroupMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[group.FieldUpdatedBy] +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *EventHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[eventhistory.FieldCreatedAt] return ok } -// ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *GroupMutation) ResetUpdatedBy() { - m.updated_by = nil - delete(m.clearedFields, group.FieldUpdatedBy) +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *EventHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, eventhistory.FieldCreatedAt) } -// SetDeletedAt sets the "deleted_at" field. -func (m *GroupMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetUpdatedAt sets the "updated_at" field. +func (m *EventHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *GroupMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *EventHistoryMutation) UpdatedAt() (r time.Time, exists bool) { + v := m.updated_at if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the Group entity. -// If the Group object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the EventHistory entity. +// If the EventHistory 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 *GroupMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *EventHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldUpdatedAt 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") + 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 OldDeletedAt: %w", err) + return v, fmt.Errorf("querying old value for OldUpdatedAt: %w", err) } - return oldValue.DeletedAt, nil + return oldValue.UpdatedAt, nil } -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *GroupMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[group.FieldDeletedAt] = struct{}{} +// ClearUpdatedAt clears the value of the "updated_at" field. +func (m *EventHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[eventhistory.FieldUpdatedAt] = struct{}{} } -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *GroupMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[group.FieldDeletedAt] +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *EventHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[eventhistory.FieldUpdatedAt] return ok } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *GroupMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, group.FieldDeletedAt) +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *EventHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, eventhistory.FieldUpdatedAt) } -// SetDeletedBy sets the "deleted_by" field. -func (m *GroupMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetCreatedBy sets the "created_by" field. +func (m *EventHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *GroupMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *EventHistoryMutation) CreatedBy() (r string, exists bool) { + v := m.created_by if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the Group entity. -// If the Group object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the EventHistory entity. +// If the EventHistory 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 *GroupMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *EventHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldCreatedBy 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") + 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 OldDeletedBy: %w", err) + return v, fmt.Errorf("querying old value for OldCreatedBy: %w", err) } - return oldValue.DeletedBy, nil + return oldValue.CreatedBy, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *GroupMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[group.FieldDeletedBy] = struct{}{} +// ClearCreatedBy clears the value of the "created_by" field. +func (m *EventHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[eventhistory.FieldCreatedBy] = struct{}{} } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *GroupMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[group.FieldDeletedBy] +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *EventHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[eventhistory.FieldCreatedBy] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *GroupMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, group.FieldDeletedBy) +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *EventHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, eventhistory.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *EventHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *EventHistoryMutation) 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 EventHistory entity. +// If the EventHistory 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 *EventHistoryMutation) 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 *EventHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[eventhistory.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *EventHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[eventhistory.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *EventHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, eventhistory.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *GroupMutation) SetMappingID(s string) { +func (m *EventHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *GroupMutation) MappingID() (r string, exists bool) { +func (m *EventHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -34866,10 +37415,10 @@ func (m *GroupMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the Group entity. -// If the Group object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the EventHistory entity. +// If the EventHistory 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 *GroupMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *EventHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -34884,18 +37433,18 @@ func (m *GroupMutation) OldMappingID(ctx context.Context) (v string, err error) } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *GroupMutation) ResetMappingID() { +func (m *EventHistoryMutation) ResetMappingID() { m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *GroupMutation) SetTags(s []string) { +func (m *EventHistoryMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *GroupMutation) Tags() (r []string, exists bool) { +func (m *EventHistoryMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -34903,10 +37452,10 @@ func (m *GroupMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the Group entity. -// If the Group object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the EventHistory entity. +// If the EventHistory 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 *GroupMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *EventHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -34921,12 +37470,12 @@ func (m *GroupMutation) OldTags(ctx context.Context) (v []string, err error) { } // AppendTags adds s to the "tags" field. -func (m *GroupMutation) AppendTags(s []string) { +func (m *EventHistoryMutation) 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 *GroupMutation) AppendedTags() ([]string, bool) { +func (m *EventHistoryMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -34934,705 +37483,281 @@ func (m *GroupMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *GroupMutation) ClearTags() { +func (m *EventHistoryMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[group.FieldTags] = struct{}{} + m.clearedFields[eventhistory.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *GroupMutation) TagsCleared() bool { - _, ok := m.clearedFields[group.FieldTags] +func (m *EventHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[eventhistory.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *GroupMutation) ResetTags() { +func (m *EventHistoryMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, group.FieldTags) + delete(m.clearedFields, eventhistory.FieldTags) } -// SetOwnerID sets the "owner_id" field. -func (m *GroupMutation) SetOwnerID(s string) { - m.owner = &s +// SetEventID sets the "event_id" field. +func (m *EventHistoryMutation) SetEventID(s string) { + m.event_id = &s } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *GroupMutation) OwnerID() (r string, exists bool) { - v := m.owner +// EventID returns the value of the "event_id" field in the mutation. +func (m *EventHistoryMutation) EventID() (r string, exists bool) { + v := m.event_id if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the Group entity. -// If the Group object wasn't provided to the builder, the object is fetched from the database. +// OldEventID returns the old "event_id" field's value of the EventHistory entity. +// If the EventHistory 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 *GroupMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *EventHistoryMutation) OldEventID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldEventID 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") + return v, errors.New("OldEventID 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 v, fmt.Errorf("querying old value for OldEventID: %w", err) } - return oldValue.OwnerID, nil + return oldValue.EventID, nil } -// ClearOwnerID clears the value of the "owner_id" field. -func (m *GroupMutation) ClearOwnerID() { - m.owner = nil - m.clearedFields[group.FieldOwnerID] = struct{}{} +// ClearEventID clears the value of the "event_id" field. +func (m *EventHistoryMutation) ClearEventID() { + m.event_id = nil + m.clearedFields[eventhistory.FieldEventID] = struct{}{} } -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *GroupMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[group.FieldOwnerID] +// EventIDCleared returns if the "event_id" field was cleared in this mutation. +func (m *EventHistoryMutation) EventIDCleared() bool { + _, ok := m.clearedFields[eventhistory.FieldEventID] return ok } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *GroupMutation) ResetOwnerID() { - m.owner = nil - delete(m.clearedFields, group.FieldOwnerID) -} - -// SetName sets the "name" field. -func (m *GroupMutation) SetName(s string) { - m.name = &s -} - -// Name returns the value of the "name" field in the mutation. -func (m *GroupMutation) 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 Group entity. -// If the Group 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 *GroupMutation) 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 *GroupMutation) ResetName() { - m.name = nil +// ResetEventID resets all changes to the "event_id" field. +func (m *EventHistoryMutation) ResetEventID() { + m.event_id = nil + delete(m.clearedFields, eventhistory.FieldEventID) } -// SetDescription sets the "description" field. -func (m *GroupMutation) SetDescription(s string) { - m.description = &s +// SetCorrelationID sets the "correlation_id" field. +func (m *EventHistoryMutation) SetCorrelationID(s string) { + m.correlation_id = &s } -// Description returns the value of the "description" field in the mutation. -func (m *GroupMutation) Description() (r string, exists bool) { - v := m.description +// CorrelationID returns the value of the "correlation_id" field in the mutation. +func (m *EventHistoryMutation) CorrelationID() (r string, exists bool) { + v := m.correlation_id if v == nil { return } return *v, true } -// OldDescription returns the old "description" field's value of the Group entity. -// If the Group object wasn't provided to the builder, the object is fetched from the database. +// OldCorrelationID returns the old "correlation_id" field's value of the EventHistory entity. +// If the EventHistory 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 *GroupMutation) OldDescription(ctx context.Context) (v string, err error) { +func (m *EventHistoryMutation) OldCorrelationID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDescription is only allowed on UpdateOne operations") + return v, errors.New("OldCorrelationID 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") + return v, errors.New("OldCorrelationID 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 v, fmt.Errorf("querying old value for OldCorrelationID: %w", err) } - return oldValue.Description, nil + return oldValue.CorrelationID, nil } -// ClearDescription clears the value of the "description" field. -func (m *GroupMutation) ClearDescription() { - m.description = nil - m.clearedFields[group.FieldDescription] = struct{}{} +// ClearCorrelationID clears the value of the "correlation_id" field. +func (m *EventHistoryMutation) ClearCorrelationID() { + m.correlation_id = nil + m.clearedFields[eventhistory.FieldCorrelationID] = struct{}{} } -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *GroupMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[group.FieldDescription] +// CorrelationIDCleared returns if the "correlation_id" field was cleared in this mutation. +func (m *EventHistoryMutation) CorrelationIDCleared() bool { + _, ok := m.clearedFields[eventhistory.FieldCorrelationID] return ok } -// ResetDescription resets all changes to the "description" field. -func (m *GroupMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, group.FieldDescription) +// ResetCorrelationID resets all changes to the "correlation_id" field. +func (m *EventHistoryMutation) ResetCorrelationID() { + m.correlation_id = nil + delete(m.clearedFields, eventhistory.FieldCorrelationID) } -// SetGravatarLogoURL sets the "gravatar_logo_url" field. -func (m *GroupMutation) SetGravatarLogoURL(s string) { - m.gravatar_logo_url = &s +// SetEventType sets the "event_type" field. +func (m *EventHistoryMutation) SetEventType(s string) { + m.event_type = &s } -// GravatarLogoURL returns the value of the "gravatar_logo_url" field in the mutation. -func (m *GroupMutation) GravatarLogoURL() (r string, exists bool) { - v := m.gravatar_logo_url +// EventType returns the value of the "event_type" field in the mutation. +func (m *EventHistoryMutation) EventType() (r string, exists bool) { + v := m.event_type if v == nil { return } return *v, true } -// OldGravatarLogoURL returns the old "gravatar_logo_url" field's value of the Group entity. -// If the Group object wasn't provided to the builder, the object is fetched from the database. +// OldEventType returns the old "event_type" field's value of the EventHistory entity. +// If the EventHistory 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 *GroupMutation) OldGravatarLogoURL(ctx context.Context) (v string, err error) { +func (m *EventHistoryMutation) OldEventType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldGravatarLogoURL is only allowed on UpdateOne operations") + return v, errors.New("OldEventType is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldGravatarLogoURL requires an ID field in the mutation") + return v, errors.New("OldEventType requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldGravatarLogoURL: %w", err) + return v, fmt.Errorf("querying old value for OldEventType: %w", err) } - return oldValue.GravatarLogoURL, nil -} - -// ClearGravatarLogoURL clears the value of the "gravatar_logo_url" field. -func (m *GroupMutation) ClearGravatarLogoURL() { - m.gravatar_logo_url = nil - m.clearedFields[group.FieldGravatarLogoURL] = struct{}{} -} - -// GravatarLogoURLCleared returns if the "gravatar_logo_url" field was cleared in this mutation. -func (m *GroupMutation) GravatarLogoURLCleared() bool { - _, ok := m.clearedFields[group.FieldGravatarLogoURL] - return ok + return oldValue.EventType, nil } -// ResetGravatarLogoURL resets all changes to the "gravatar_logo_url" field. -func (m *GroupMutation) ResetGravatarLogoURL() { - m.gravatar_logo_url = nil - delete(m.clearedFields, group.FieldGravatarLogoURL) +// ResetEventType resets all changes to the "event_type" field. +func (m *EventHistoryMutation) ResetEventType() { + m.event_type = nil } -// SetLogoURL sets the "logo_url" field. -func (m *GroupMutation) SetLogoURL(s string) { - m.logo_url = &s +// SetMetadata sets the "metadata" field. +func (m *EventHistoryMutation) SetMetadata(value map[string]interface{}) { + m.metadata = &value } -// LogoURL returns the value of the "logo_url" field in the mutation. -func (m *GroupMutation) LogoURL() (r string, exists bool) { - v := m.logo_url +// Metadata returns the value of the "metadata" field in the mutation. +func (m *EventHistoryMutation) Metadata() (r map[string]interface{}, exists bool) { + v := m.metadata if v == nil { return } return *v, true } -// OldLogoURL returns the old "logo_url" field's value of the Group entity. -// If the Group object wasn't provided to the builder, the object is fetched from the database. +// OldMetadata returns the old "metadata" field's value of the EventHistory entity. +// If the EventHistory 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 *GroupMutation) OldLogoURL(ctx context.Context) (v string, err error) { +func (m *EventHistoryMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldLogoURL is only allowed on UpdateOne operations") + return v, errors.New("OldMetadata is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldLogoURL requires an ID field in the mutation") + 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 OldLogoURL: %w", err) + return v, fmt.Errorf("querying old value for OldMetadata: %w", err) } - return oldValue.LogoURL, nil + return oldValue.Metadata, nil } -// ClearLogoURL clears the value of the "logo_url" field. -func (m *GroupMutation) ClearLogoURL() { - m.logo_url = nil - m.clearedFields[group.FieldLogoURL] = struct{}{} +// ClearMetadata clears the value of the "metadata" field. +func (m *EventHistoryMutation) ClearMetadata() { + m.metadata = nil + m.clearedFields[eventhistory.FieldMetadata] = struct{}{} } -// LogoURLCleared returns if the "logo_url" field was cleared in this mutation. -func (m *GroupMutation) LogoURLCleared() bool { - _, ok := m.clearedFields[group.FieldLogoURL] +// MetadataCleared returns if the "metadata" field was cleared in this mutation. +func (m *EventHistoryMutation) MetadataCleared() bool { + _, ok := m.clearedFields[eventhistory.FieldMetadata] return ok } -// ResetLogoURL resets all changes to the "logo_url" field. -func (m *GroupMutation) ResetLogoURL() { - m.logo_url = nil - delete(m.clearedFields, group.FieldLogoURL) -} - -// SetDisplayName sets the "display_name" field. -func (m *GroupMutation) SetDisplayName(s string) { - m.display_name = &s +// ResetMetadata resets all changes to the "metadata" field. +func (m *EventHistoryMutation) ResetMetadata() { + m.metadata = nil + delete(m.clearedFields, eventhistory.FieldMetadata) } -// DisplayName returns the value of the "display_name" field in the mutation. -func (m *GroupMutation) DisplayName() (r string, exists bool) { - v := m.display_name - if v == nil { - return - } - return *v, true +// Where appends a list predicates to the EventHistoryMutation builder. +func (m *EventHistoryMutation) Where(ps ...predicate.EventHistory) { + m.predicates = append(m.predicates, ps...) } -// OldDisplayName returns the old "display_name" field's value of the Group entity. -// If the Group 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 *GroupMutation) OldDisplayName(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDisplayName requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) +// WhereP appends storage-level predicates to the EventHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *EventHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.EventHistory, len(ps)) + for i := range ps { + p[i] = ps[i] } - return oldValue.DisplayName, nil + m.Where(p...) } -// ResetDisplayName resets all changes to the "display_name" field. -func (m *GroupMutation) ResetDisplayName() { - m.display_name = nil +// Op returns the operation name. +func (m *EventHistoryMutation) Op() Op { + return m.op } -// ClearOwner clears the "owner" edge to the Organization entity. -func (m *GroupMutation) ClearOwner() { - m.clearedowner = true - m.clearedFields[group.FieldOwnerID] = struct{}{} +// SetOp allows setting the mutation operation. +func (m *EventHistoryMutation) SetOp(op Op) { + m.op = op } -// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *GroupMutation) OwnerCleared() bool { - return m.OwnerIDCleared() || m.clearedowner +// Type returns the node type of this mutation (EventHistory). +func (m *EventHistoryMutation) Type() string { + return m.typ } -// 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 *GroupMutation) OwnerIDs() (ids []string) { - if id := m.owner; id != nil { - ids = append(ids, *id) +// 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 *EventHistoryMutation) Fields() []string { + fields := make([]string, 0, 13) + if m.history_time != nil { + fields = append(fields, eventhistory.FieldHistoryTime) } - return -} - -// ResetOwner resets all changes to the "owner" edge. -func (m *GroupMutation) ResetOwner() { - m.owner = nil - m.clearedowner = false -} - -// SetSettingID sets the "setting" edge to the GroupSetting entity by id. -func (m *GroupMutation) SetSettingID(id string) { - m.setting = &id -} - -// ClearSetting clears the "setting" edge to the GroupSetting entity. -func (m *GroupMutation) ClearSetting() { - m.clearedsetting = true -} - -// SettingCleared reports if the "setting" edge to the GroupSetting entity was cleared. -func (m *GroupMutation) SettingCleared() bool { - return m.clearedsetting -} - -// SettingID returns the "setting" edge ID in the mutation. -func (m *GroupMutation) SettingID() (id string, exists bool) { - if m.setting != nil { - return *m.setting, true - } - return -} - -// SettingIDs returns the "setting" edge IDs in the mutation. -// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use -// SettingID instead. It exists only for internal usage by the builders. -func (m *GroupMutation) SettingIDs() (ids []string) { - if id := m.setting; id != nil { - ids = append(ids, *id) - } - return -} - -// ResetSetting resets all changes to the "setting" edge. -func (m *GroupMutation) ResetSetting() { - m.setting = nil - m.clearedsetting = false -} - -// AddUserIDs adds the "users" edge to the User entity by ids. -func (m *GroupMutation) AddUserIDs(ids ...string) { - if m.users == nil { - m.users = make(map[string]struct{}) - } - for i := range ids { - m.users[ids[i]] = struct{}{} - } -} - -// ClearUsers clears the "users" edge to the User entity. -func (m *GroupMutation) ClearUsers() { - m.clearedusers = true -} - -// UsersCleared reports if the "users" edge to the User entity was cleared. -func (m *GroupMutation) UsersCleared() bool { - return m.clearedusers -} - -// RemoveUserIDs removes the "users" edge to the User entity by IDs. -func (m *GroupMutation) RemoveUserIDs(ids ...string) { - if m.removedusers == nil { - m.removedusers = make(map[string]struct{}) - } - for i := range ids { - delete(m.users, ids[i]) - m.removedusers[ids[i]] = struct{}{} - } -} - -// RemovedUsers returns the removed IDs of the "users" edge to the User entity. -func (m *GroupMutation) RemovedUsersIDs() (ids []string) { - for id := range m.removedusers { - ids = append(ids, id) - } - return -} - -// UsersIDs returns the "users" edge IDs in the mutation. -func (m *GroupMutation) UsersIDs() (ids []string) { - for id := range m.users { - ids = append(ids, id) - } - return -} - -// ResetUsers resets all changes to the "users" edge. -func (m *GroupMutation) ResetUsers() { - m.users = nil - m.clearedusers = false - m.removedusers = nil -} - -// AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *GroupMutation) AddEventIDs(ids ...string) { - if m.events == nil { - m.events = make(map[string]struct{}) - } - for i := range ids { - m.events[ids[i]] = struct{}{} - } -} - -// ClearEvents clears the "events" edge to the Event entity. -func (m *GroupMutation) ClearEvents() { - m.clearedevents = true -} - -// EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *GroupMutation) EventsCleared() bool { - return m.clearedevents -} - -// RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *GroupMutation) RemoveEventIDs(ids ...string) { - if m.removedevents == nil { - m.removedevents = make(map[string]struct{}) - } - for i := range ids { - delete(m.events, ids[i]) - m.removedevents[ids[i]] = struct{}{} - } -} - -// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *GroupMutation) RemovedEventsIDs() (ids []string) { - for id := range m.removedevents { - ids = append(ids, id) - } - return -} - -// EventsIDs returns the "events" edge IDs in the mutation. -func (m *GroupMutation) EventsIDs() (ids []string) { - for id := range m.events { - ids = append(ids, id) - } - return -} - -// ResetEvents resets all changes to the "events" edge. -func (m *GroupMutation) ResetEvents() { - m.events = nil - m.clearedevents = false - m.removedevents = nil -} - -// AddIntegrationIDs adds the "integrations" edge to the Integration entity by ids. -func (m *GroupMutation) AddIntegrationIDs(ids ...string) { - if m.integrations == nil { - m.integrations = make(map[string]struct{}) - } - for i := range ids { - m.integrations[ids[i]] = struct{}{} - } -} - -// ClearIntegrations clears the "integrations" edge to the Integration entity. -func (m *GroupMutation) ClearIntegrations() { - m.clearedintegrations = true -} - -// IntegrationsCleared reports if the "integrations" edge to the Integration entity was cleared. -func (m *GroupMutation) IntegrationsCleared() bool { - return m.clearedintegrations -} - -// RemoveIntegrationIDs removes the "integrations" edge to the Integration entity by IDs. -func (m *GroupMutation) RemoveIntegrationIDs(ids ...string) { - if m.removedintegrations == nil { - m.removedintegrations = make(map[string]struct{}) - } - for i := range ids { - delete(m.integrations, ids[i]) - m.removedintegrations[ids[i]] = struct{}{} - } -} - -// RemovedIntegrations returns the removed IDs of the "integrations" edge to the Integration entity. -func (m *GroupMutation) RemovedIntegrationsIDs() (ids []string) { - for id := range m.removedintegrations { - ids = append(ids, id) - } - return -} - -// IntegrationsIDs returns the "integrations" edge IDs in the mutation. -func (m *GroupMutation) IntegrationsIDs() (ids []string) { - for id := range m.integrations { - ids = append(ids, id) - } - return -} - -// ResetIntegrations resets all changes to the "integrations" edge. -func (m *GroupMutation) ResetIntegrations() { - m.integrations = nil - m.clearedintegrations = false - m.removedintegrations = nil -} - -// AddFileIDs adds the "files" edge to the File entity by ids. -func (m *GroupMutation) AddFileIDs(ids ...string) { - if m.files == nil { - m.files = make(map[string]struct{}) - } - for i := range ids { - m.files[ids[i]] = struct{}{} - } -} - -// ClearFiles clears the "files" edge to the File entity. -func (m *GroupMutation) ClearFiles() { - m.clearedfiles = true -} - -// FilesCleared reports if the "files" edge to the File entity was cleared. -func (m *GroupMutation) FilesCleared() bool { - return m.clearedfiles -} - -// RemoveFileIDs removes the "files" edge to the File entity by IDs. -func (m *GroupMutation) RemoveFileIDs(ids ...string) { - if m.removedfiles == nil { - m.removedfiles = make(map[string]struct{}) - } - for i := range ids { - delete(m.files, ids[i]) - m.removedfiles[ids[i]] = struct{}{} - } -} - -// RemovedFiles returns the removed IDs of the "files" edge to the File entity. -func (m *GroupMutation) RemovedFilesIDs() (ids []string) { - for id := range m.removedfiles { - ids = append(ids, id) - } - return -} - -// FilesIDs returns the "files" edge IDs in the mutation. -func (m *GroupMutation) FilesIDs() (ids []string) { - for id := range m.files { - ids = append(ids, id) - } - return -} - -// ResetFiles resets all changes to the "files" edge. -func (m *GroupMutation) ResetFiles() { - m.files = nil - m.clearedfiles = false - m.removedfiles = nil -} - -// AddMemberIDs adds the "members" edge to the GroupMembership entity by ids. -func (m *GroupMutation) AddMemberIDs(ids ...string) { - if m.members == nil { - m.members = make(map[string]struct{}) - } - for i := range ids { - m.members[ids[i]] = struct{}{} - } -} - -// ClearMembers clears the "members" edge to the GroupMembership entity. -func (m *GroupMutation) ClearMembers() { - m.clearedmembers = true -} - -// MembersCleared reports if the "members" edge to the GroupMembership entity was cleared. -func (m *GroupMutation) MembersCleared() bool { - return m.clearedmembers -} - -// RemoveMemberIDs removes the "members" edge to the GroupMembership entity by IDs. -func (m *GroupMutation) RemoveMemberIDs(ids ...string) { - if m.removedmembers == nil { - m.removedmembers = make(map[string]struct{}) - } - for i := range ids { - delete(m.members, ids[i]) - m.removedmembers[ids[i]] = struct{}{} - } -} - -// RemovedMembers returns the removed IDs of the "members" edge to the GroupMembership entity. -func (m *GroupMutation) RemovedMembersIDs() (ids []string) { - for id := range m.removedmembers { - ids = append(ids, id) - } - return -} - -// MembersIDs returns the "members" edge IDs in the mutation. -func (m *GroupMutation) MembersIDs() (ids []string) { - for id := range m.members { - ids = append(ids, id) + if m.ref != nil { + fields = append(fields, eventhistory.FieldRef) } - return -} - -// ResetMembers resets all changes to the "members" edge. -func (m *GroupMutation) ResetMembers() { - m.members = nil - m.clearedmembers = false - m.removedmembers = nil -} - -// Where appends a list predicates to the GroupMutation builder. -func (m *GroupMutation) Where(ps ...predicate.Group) { - m.predicates = append(m.predicates, ps...) -} - -// WhereP appends storage-level predicates to the GroupMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *GroupMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.Group, len(ps)) - for i := range ps { - p[i] = ps[i] + if m.operation != nil { + fields = append(fields, eventhistory.FieldOperation) } - m.Where(p...) -} - -// Op returns the operation name. -func (m *GroupMutation) Op() Op { - return m.op -} - -// SetOp allows setting the mutation operation. -func (m *GroupMutation) SetOp(op Op) { - m.op = op -} - -// Type returns the node type of this mutation (Group). -func (m *GroupMutation) 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 *GroupMutation) Fields() []string { - fields := make([]string, 0, 14) if m.created_at != nil { - fields = append(fields, group.FieldCreatedAt) + fields = append(fields, eventhistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, group.FieldUpdatedAt) + fields = append(fields, eventhistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, group.FieldCreatedBy) + fields = append(fields, eventhistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, group.FieldUpdatedBy) - } - if m.deleted_at != nil { - fields = append(fields, group.FieldDeletedAt) - } - if m.deleted_by != nil { - fields = append(fields, group.FieldDeletedBy) + fields = append(fields, eventhistory.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, group.FieldMappingID) + fields = append(fields, eventhistory.FieldMappingID) } if m.tags != nil { - fields = append(fields, group.FieldTags) - } - if m.owner != nil { - fields = append(fields, group.FieldOwnerID) - } - if m.name != nil { - fields = append(fields, group.FieldName) + fields = append(fields, eventhistory.FieldTags) } - if m.description != nil { - fields = append(fields, group.FieldDescription) + if m.event_id != nil { + fields = append(fields, eventhistory.FieldEventID) } - if m.gravatar_logo_url != nil { - fields = append(fields, group.FieldGravatarLogoURL) + if m.correlation_id != nil { + fields = append(fields, eventhistory.FieldCorrelationID) } - if m.logo_url != nil { - fields = append(fields, group.FieldLogoURL) + if m.event_type != nil { + fields = append(fields, eventhistory.FieldEventType) } - if m.display_name != nil { - fields = append(fields, group.FieldDisplayName) + if m.metadata != nil { + fields = append(fields, eventhistory.FieldMetadata) } return fields } @@ -35640,36 +37765,34 @@ func (m *GroupMutation) Fields() []string { // 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 *GroupMutation) Field(name string) (ent.Value, bool) { +func (m *EventHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case group.FieldCreatedAt: + case eventhistory.FieldHistoryTime: + return m.HistoryTime() + case eventhistory.FieldRef: + return m.Ref() + case eventhistory.FieldOperation: + return m.Operation() + case eventhistory.FieldCreatedAt: return m.CreatedAt() - case group.FieldUpdatedAt: + case eventhistory.FieldUpdatedAt: return m.UpdatedAt() - case group.FieldCreatedBy: + case eventhistory.FieldCreatedBy: return m.CreatedBy() - case group.FieldUpdatedBy: + case eventhistory.FieldUpdatedBy: return m.UpdatedBy() - case group.FieldDeletedAt: - return m.DeletedAt() - case group.FieldDeletedBy: - return m.DeletedBy() - case group.FieldMappingID: + case eventhistory.FieldMappingID: return m.MappingID() - case group.FieldTags: + case eventhistory.FieldTags: return m.Tags() - case group.FieldOwnerID: - return m.OwnerID() - case group.FieldName: - return m.Name() - case group.FieldDescription: - return m.Description() - case group.FieldGravatarLogoURL: - return m.GravatarLogoURL() - case group.FieldLogoURL: - return m.LogoURL() - case group.FieldDisplayName: - return m.DisplayName() + case eventhistory.FieldEventID: + return m.EventID() + case eventhistory.FieldCorrelationID: + return m.CorrelationID() + case eventhistory.FieldEventType: + return m.EventType() + case eventhistory.FieldMetadata: + return m.Metadata() } return nil, false } @@ -35677,572 +37800,379 @@ func (m *GroupMutation) Field(name string) (ent.Value, bool) { // 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 *GroupMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *EventHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case group.FieldCreatedAt: + case eventhistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case eventhistory.FieldRef: + return m.OldRef(ctx) + case eventhistory.FieldOperation: + return m.OldOperation(ctx) + case eventhistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case group.FieldUpdatedAt: + case eventhistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case group.FieldCreatedBy: + case eventhistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case group.FieldUpdatedBy: + case eventhistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case group.FieldDeletedAt: - return m.OldDeletedAt(ctx) - case group.FieldDeletedBy: - return m.OldDeletedBy(ctx) - case group.FieldMappingID: + case eventhistory.FieldMappingID: return m.OldMappingID(ctx) - case group.FieldTags: + case eventhistory.FieldTags: return m.OldTags(ctx) - case group.FieldOwnerID: - return m.OldOwnerID(ctx) - case group.FieldName: - return m.OldName(ctx) - case group.FieldDescription: - return m.OldDescription(ctx) - case group.FieldGravatarLogoURL: - return m.OldGravatarLogoURL(ctx) - case group.FieldLogoURL: - return m.OldLogoURL(ctx) - case group.FieldDisplayName: - return m.OldDisplayName(ctx) + case eventhistory.FieldEventID: + return m.OldEventID(ctx) + case eventhistory.FieldCorrelationID: + return m.OldCorrelationID(ctx) + case eventhistory.FieldEventType: + return m.OldEventType(ctx) + case eventhistory.FieldMetadata: + return m.OldMetadata(ctx) } - return nil, fmt.Errorf("unknown Group field %s", name) + return nil, fmt.Errorf("unknown EventHistory 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 *GroupMutation) SetField(name string, value ent.Value) error { +func (m *EventHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case group.FieldCreatedAt: + case eventhistory.FieldHistoryTime: v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCreatedAt(v) + m.SetHistoryTime(v) return nil - case group.FieldUpdatedAt: - v, ok := value.(time.Time) + case eventhistory.FieldRef: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetUpdatedAt(v) + m.SetRef(v) return nil - case group.FieldCreatedBy: - v, ok := value.(string) + case eventhistory.FieldOperation: + v, ok := value.(history.OpType) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCreatedBy(v) + m.SetOperation(v) return nil - case group.FieldUpdatedBy: - v, ok := value.(string) + case eventhistory.FieldCreatedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetUpdatedBy(v) + m.SetCreatedAt(v) return nil - case group.FieldDeletedAt: + case eventhistory.FieldUpdatedAt: v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetUpdatedAt(v) return nil - case group.FieldDeletedBy: + case eventhistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetCreatedBy(v) return nil - case group.FieldMappingID: + case eventhistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMappingID(v) - return nil - case group.FieldTags: - v, ok := value.([]string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetTags(v) + m.SetUpdatedBy(v) return nil - case group.FieldOwnerID: + case eventhistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetMappingID(v) return nil - case group.FieldName: - v, ok := value.(string) + case eventhistory.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetName(v) + m.SetTags(v) return nil - case group.FieldDescription: + case eventhistory.FieldEventID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetEventID(v) return nil - case group.FieldGravatarLogoURL: + case eventhistory.FieldCorrelationID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetGravatarLogoURL(v) + m.SetCorrelationID(v) return nil - case group.FieldLogoURL: + case eventhistory.FieldEventType: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetLogoURL(v) + m.SetEventType(v) return nil - case group.FieldDisplayName: - v, ok := value.(string) + case eventhistory.FieldMetadata: + v, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDisplayName(v) + m.SetMetadata(v) return nil } - return fmt.Errorf("unknown Group field %s", name) + return fmt.Errorf("unknown EventHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *GroupMutation) AddedFields() []string { +func (m *EventHistoryMutation) 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 *GroupMutation) AddedField(name string) (ent.Value, bool) { +func (m *EventHistoryMutation) 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 *GroupMutation) AddField(name string, value ent.Value) error { +func (m *EventHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown Group numeric field %s", name) + return fmt.Errorf("unknown EventHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *GroupMutation) ClearedFields() []string { +func (m *EventHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(group.FieldCreatedAt) { - fields = append(fields, group.FieldCreatedAt) - } - if m.FieldCleared(group.FieldUpdatedAt) { - fields = append(fields, group.FieldUpdatedAt) - } - if m.FieldCleared(group.FieldCreatedBy) { - fields = append(fields, group.FieldCreatedBy) + if m.FieldCleared(eventhistory.FieldRef) { + fields = append(fields, eventhistory.FieldRef) } - if m.FieldCleared(group.FieldUpdatedBy) { - fields = append(fields, group.FieldUpdatedBy) + if m.FieldCleared(eventhistory.FieldCreatedAt) { + fields = append(fields, eventhistory.FieldCreatedAt) } - if m.FieldCleared(group.FieldDeletedAt) { - fields = append(fields, group.FieldDeletedAt) + if m.FieldCleared(eventhistory.FieldUpdatedAt) { + fields = append(fields, eventhistory.FieldUpdatedAt) } - if m.FieldCleared(group.FieldDeletedBy) { - fields = append(fields, group.FieldDeletedBy) + if m.FieldCleared(eventhistory.FieldCreatedBy) { + fields = append(fields, eventhistory.FieldCreatedBy) } - if m.FieldCleared(group.FieldTags) { - fields = append(fields, group.FieldTags) + if m.FieldCleared(eventhistory.FieldUpdatedBy) { + fields = append(fields, eventhistory.FieldUpdatedBy) } - if m.FieldCleared(group.FieldOwnerID) { - fields = append(fields, group.FieldOwnerID) + if m.FieldCleared(eventhistory.FieldTags) { + fields = append(fields, eventhistory.FieldTags) } - if m.FieldCleared(group.FieldDescription) { - fields = append(fields, group.FieldDescription) + if m.FieldCleared(eventhistory.FieldEventID) { + fields = append(fields, eventhistory.FieldEventID) } - if m.FieldCleared(group.FieldGravatarLogoURL) { - fields = append(fields, group.FieldGravatarLogoURL) + if m.FieldCleared(eventhistory.FieldCorrelationID) { + fields = append(fields, eventhistory.FieldCorrelationID) } - if m.FieldCleared(group.FieldLogoURL) { - fields = append(fields, group.FieldLogoURL) + if m.FieldCleared(eventhistory.FieldMetadata) { + fields = append(fields, eventhistory.FieldMetadata) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *GroupMutation) FieldCleared(name string) bool { +func (m *EventHistoryMutation) 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 *GroupMutation) ClearField(name string) error { +func (m *EventHistoryMutation) ClearField(name string) error { switch name { - case group.FieldCreatedAt: + case eventhistory.FieldRef: + m.ClearRef() + return nil + case eventhistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case group.FieldUpdatedAt: + case eventhistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case group.FieldCreatedBy: + case eventhistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case group.FieldUpdatedBy: + case eventhistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case group.FieldDeletedAt: - m.ClearDeletedAt() - return nil - case group.FieldDeletedBy: - m.ClearDeletedBy() - return nil - case group.FieldTags: + case eventhistory.FieldTags: m.ClearTags() return nil - case group.FieldOwnerID: - m.ClearOwnerID() - return nil - case group.FieldDescription: - m.ClearDescription() + case eventhistory.FieldEventID: + m.ClearEventID() return nil - case group.FieldGravatarLogoURL: - m.ClearGravatarLogoURL() + case eventhistory.FieldCorrelationID: + m.ClearCorrelationID() return nil - case group.FieldLogoURL: - m.ClearLogoURL() + case eventhistory.FieldMetadata: + m.ClearMetadata() return nil } - return fmt.Errorf("unknown Group nullable field %s", name) + return fmt.Errorf("unknown EventHistory 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 *GroupMutation) ResetField(name string) error { +func (m *EventHistoryMutation) ResetField(name string) error { switch name { - case group.FieldCreatedAt: + case eventhistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case eventhistory.FieldRef: + m.ResetRef() + return nil + case eventhistory.FieldOperation: + m.ResetOperation() + return nil + case eventhistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case group.FieldUpdatedAt: + case eventhistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case group.FieldCreatedBy: + case eventhistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case group.FieldUpdatedBy: + case eventhistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case group.FieldDeletedAt: - m.ResetDeletedAt() - return nil - case group.FieldDeletedBy: - m.ResetDeletedBy() - return nil - case group.FieldMappingID: + case eventhistory.FieldMappingID: m.ResetMappingID() return nil - case group.FieldTags: + case eventhistory.FieldTags: m.ResetTags() return nil - case group.FieldOwnerID: - m.ResetOwnerID() - return nil - case group.FieldName: - m.ResetName() - return nil - case group.FieldDescription: - m.ResetDescription() + case eventhistory.FieldEventID: + m.ResetEventID() return nil - case group.FieldGravatarLogoURL: - m.ResetGravatarLogoURL() + case eventhistory.FieldCorrelationID: + m.ResetCorrelationID() return nil - case group.FieldLogoURL: - m.ResetLogoURL() + case eventhistory.FieldEventType: + m.ResetEventType() return nil - case group.FieldDisplayName: - m.ResetDisplayName() + case eventhistory.FieldMetadata: + m.ResetMetadata() return nil } - return fmt.Errorf("unknown Group field %s", name) + return fmt.Errorf("unknown EventHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *GroupMutation) AddedEdges() []string { - edges := make([]string, 0, 7) - if m.owner != nil { - edges = append(edges, group.EdgeOwner) - } - if m.setting != nil { - edges = append(edges, group.EdgeSetting) - } - if m.users != nil { - edges = append(edges, group.EdgeUsers) - } - if m.events != nil { - edges = append(edges, group.EdgeEvents) - } - if m.integrations != nil { - edges = append(edges, group.EdgeIntegrations) - } - if m.files != nil { - edges = append(edges, group.EdgeFiles) - } - if m.members != nil { - edges = append(edges, group.EdgeMembers) - } +func (m *EventHistoryMutation) 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 *GroupMutation) AddedIDs(name string) []ent.Value { - switch name { - case group.EdgeOwner: - if id := m.owner; id != nil { - return []ent.Value{*id} - } - case group.EdgeSetting: - if id := m.setting; id != nil { - return []ent.Value{*id} - } - case group.EdgeUsers: - ids := make([]ent.Value, 0, len(m.users)) - for id := range m.users { - ids = append(ids, id) - } - return ids - case group.EdgeEvents: - ids := make([]ent.Value, 0, len(m.events)) - for id := range m.events { - ids = append(ids, id) - } - return ids - case group.EdgeIntegrations: - ids := make([]ent.Value, 0, len(m.integrations)) - for id := range m.integrations { - ids = append(ids, id) - } - return ids - case group.EdgeFiles: - ids := make([]ent.Value, 0, len(m.files)) - for id := range m.files { - ids = append(ids, id) - } - return ids - case group.EdgeMembers: - ids := make([]ent.Value, 0, len(m.members)) - for id := range m.members { - ids = append(ids, id) - } - return ids - } +func (m *EventHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *GroupMutation) RemovedEdges() []string { - edges := make([]string, 0, 7) - if m.removedusers != nil { - edges = append(edges, group.EdgeUsers) - } - if m.removedevents != nil { - edges = append(edges, group.EdgeEvents) - } - if m.removedintegrations != nil { - edges = append(edges, group.EdgeIntegrations) - } - if m.removedfiles != nil { - edges = append(edges, group.EdgeFiles) - } - if m.removedmembers != nil { - edges = append(edges, group.EdgeMembers) - } +func (m *EventHistoryMutation) 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 *GroupMutation) RemovedIDs(name string) []ent.Value { - switch name { - case group.EdgeUsers: - ids := make([]ent.Value, 0, len(m.removedusers)) - for id := range m.removedusers { - ids = append(ids, id) - } - return ids - case group.EdgeEvents: - ids := make([]ent.Value, 0, len(m.removedevents)) - for id := range m.removedevents { - ids = append(ids, id) - } - return ids - case group.EdgeIntegrations: - ids := make([]ent.Value, 0, len(m.removedintegrations)) - for id := range m.removedintegrations { - ids = append(ids, id) - } - return ids - case group.EdgeFiles: - ids := make([]ent.Value, 0, len(m.removedfiles)) - for id := range m.removedfiles { - ids = append(ids, id) - } - return ids - case group.EdgeMembers: - ids := make([]ent.Value, 0, len(m.removedmembers)) - for id := range m.removedmembers { - ids = append(ids, id) - } - return ids - } +func (m *EventHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *GroupMutation) ClearedEdges() []string { - edges := make([]string, 0, 7) - if m.clearedowner { - edges = append(edges, group.EdgeOwner) - } - if m.clearedsetting { - edges = append(edges, group.EdgeSetting) - } - if m.clearedusers { - edges = append(edges, group.EdgeUsers) - } - if m.clearedevents { - edges = append(edges, group.EdgeEvents) - } - if m.clearedintegrations { - edges = append(edges, group.EdgeIntegrations) - } - if m.clearedfiles { - edges = append(edges, group.EdgeFiles) - } - if m.clearedmembers { - edges = append(edges, group.EdgeMembers) - } +func (m *EventHistoryMutation) 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 *GroupMutation) EdgeCleared(name string) bool { - switch name { - case group.EdgeOwner: - return m.clearedowner - case group.EdgeSetting: - return m.clearedsetting - case group.EdgeUsers: - return m.clearedusers - case group.EdgeEvents: - return m.clearedevents - case group.EdgeIntegrations: - return m.clearedintegrations - case group.EdgeFiles: - return m.clearedfiles - case group.EdgeMembers: - return m.clearedmembers - } +func (m *EventHistoryMutation) 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 *GroupMutation) ClearEdge(name string) error { - switch name { - case group.EdgeOwner: - m.ClearOwner() - return nil - case group.EdgeSetting: - m.ClearSetting() - return nil - } - return fmt.Errorf("unknown Group unique edge %s", name) +func (m *EventHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown EventHistory 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 *GroupMutation) ResetEdge(name string) error { - switch name { - case group.EdgeOwner: - m.ResetOwner() - return nil - case group.EdgeSetting: - m.ResetSetting() - return nil - case group.EdgeUsers: - m.ResetUsers() - return nil - case group.EdgeEvents: - m.ResetEvents() - return nil - case group.EdgeIntegrations: - m.ResetIntegrations() - return nil - case group.EdgeFiles: - m.ResetFiles() - return nil - case group.EdgeMembers: - m.ResetMembers() - return nil - } - return fmt.Errorf("unknown Group edge %s", name) +func (m *EventHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown EventHistory edge %s", name) } -// GroupHistoryMutation represents an operation that mutates the GroupHistory nodes in the graph. -type GroupHistoryMutation struct { +// FeatureMutation represents an operation that mutates the Feature nodes in the graph. +type FeatureMutation 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 - deleted_at *time.Time - deleted_by *string - mapping_id *string - tags *[]string - appendtags []string - owner_id *string - name *string - description *string - gravatar_logo_url *string - logo_url *string - display_name *string - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*GroupHistory, error) - predicates []predicate.GroupHistory + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + display_name *string + enabled *bool + description *string + metadata *map[string]interface{} + clearedFields map[string]struct{} + owner *string + clearedowner bool + plans map[string]struct{} + removedplans map[string]struct{} + clearedplans bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + features map[string]struct{} + removedfeatures map[string]struct{} + clearedfeatures bool + done bool + oldValue func(context.Context) (*Feature, error) + predicates []predicate.Feature } -var _ ent.Mutation = (*GroupHistoryMutation)(nil) +var _ ent.Mutation = (*FeatureMutation)(nil) -// grouphistoryOption allows management of the mutation configuration using functional options. -type grouphistoryOption func(*GroupHistoryMutation) +// featureOption allows management of the mutation configuration using functional options. +type featureOption func(*FeatureMutation) -// newGroupHistoryMutation creates new mutation for the GroupHistory entity. -func newGroupHistoryMutation(c config, op Op, opts ...grouphistoryOption) *GroupHistoryMutation { - m := &GroupHistoryMutation{ +// newFeatureMutation creates new mutation for the Feature entity. +func newFeatureMutation(c config, op Op, opts ...featureOption) *FeatureMutation { + m := &FeatureMutation{ config: c, op: op, - typ: TypeGroupHistory, + typ: TypeFeature, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -36251,20 +38181,20 @@ func newGroupHistoryMutation(c config, op Op, opts ...grouphistoryOption) *Group return m } -// withGroupHistoryID sets the ID field of the mutation. -func withGroupHistoryID(id string) grouphistoryOption { - return func(m *GroupHistoryMutation) { +// withFeatureID sets the ID field of the mutation. +func withFeatureID(id string) featureOption { + return func(m *FeatureMutation) { var ( err error once sync.Once - value *GroupHistory + value *Feature ) - m.oldValue = func(ctx context.Context) (*GroupHistory, error) { + m.oldValue = func(ctx context.Context) (*Feature, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().GroupHistory.Get(ctx, id) + value, err = m.Client().Feature.Get(ctx, id) } }) return value, err @@ -36273,10 +38203,10 @@ func withGroupHistoryID(id string) grouphistoryOption { } } -// withGroupHistory sets the old GroupHistory of the mutation. -func withGroupHistory(node *GroupHistory) grouphistoryOption { - return func(m *GroupHistoryMutation) { - m.oldValue = func(context.Context) (*GroupHistory, error) { +// withFeature sets the old Feature of the mutation. +func withFeature(node *Feature) featureOption { + return func(m *FeatureMutation) { + m.oldValue = func(context.Context) (*Feature, error) { return node, nil } m.id = &node.ID @@ -36285,7 +38215,7 @@ func withGroupHistory(node *GroupHistory) grouphistoryOption { // 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 GroupHistoryMutation) Client() *Client { +func (m FeatureMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -36293,7 +38223,7 @@ func (m GroupHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m GroupHistoryMutation) Tx() (*Tx, error) { +func (m FeatureMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -36303,14 +38233,14 @@ func (m GroupHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of GroupHistory entities. -func (m *GroupHistoryMutation) SetID(id string) { +// operation is only accepted on creation of Feature entities. +func (m *FeatureMutation) 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 *GroupHistoryMutation) ID() (id string, exists bool) { +func (m *FeatureMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -36321,7 +38251,7 @@ func (m *GroupHistoryMutation) ID() (id string, exists bool) { // 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 *GroupHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *FeatureMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -36330,151 +38260,30 @@ func (m *GroupHistoryMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().GroupHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().Feature.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 *GroupHistoryMutation) SetHistoryTime(t time.Time) { - m.history_time = &t +// SetCreatedAt sets the "created_at" field. +func (m *FeatureMutation) SetCreatedAt(t time.Time) { + m.created_at = &t } -// HistoryTime returns the value of the "history_time" field in the mutation. -func (m *GroupHistoryMutation) HistoryTime() (r time.Time, exists bool) { - v := m.history_time +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *FeatureMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at if v == nil { return } return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the GroupHistory entity. -// If the GroupHistory 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 *GroupHistoryMutation) 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 *GroupHistoryMutation) ResetHistoryTime() { - m.history_time = nil -} - -// SetRef sets the "ref" field. -func (m *GroupHistoryMutation) SetRef(s string) { - m.ref = &s -} - -// Ref returns the value of the "ref" field in the mutation. -func (m *GroupHistoryMutation) 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 GroupHistory entity. -// If the GroupHistory 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 *GroupHistoryMutation) 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 *GroupHistoryMutation) ClearRef() { - m.ref = nil - m.clearedFields[grouphistory.FieldRef] = struct{}{} -} - -// RefCleared returns if the "ref" field was cleared in this mutation. -func (m *GroupHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[grouphistory.FieldRef] - return ok -} - -// ResetRef resets all changes to the "ref" field. -func (m *GroupHistoryMutation) ResetRef() { - m.ref = nil - delete(m.clearedFields, grouphistory.FieldRef) -} - -// SetOperation sets the "operation" field. -func (m *GroupHistoryMutation) SetOperation(ht history.OpType) { - m.operation = &ht -} - -// Operation returns the value of the "operation" field in the mutation. -func (m *GroupHistoryMutation) 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 GroupHistory entity. -// If the GroupHistory 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 *GroupHistoryMutation) 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 *GroupHistoryMutation) ResetOperation() { - m.operation = nil -} - -// SetCreatedAt sets the "created_at" field. -func (m *GroupHistoryMutation) SetCreatedAt(t time.Time) { - m.created_at = &t -} - -// CreatedAt returns the value of the "created_at" field in the mutation. -func (m *GroupHistoryMutation) 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 GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *FeatureMutation) 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") } @@ -36489,30 +38298,30 @@ func (m *GroupHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, e } // ClearCreatedAt clears the value of the "created_at" field. -func (m *GroupHistoryMutation) ClearCreatedAt() { +func (m *FeatureMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[grouphistory.FieldCreatedAt] = struct{}{} + m.clearedFields[feature.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *GroupHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[grouphistory.FieldCreatedAt] +func (m *FeatureMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[feature.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *GroupHistoryMutation) ResetCreatedAt() { +func (m *FeatureMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, grouphistory.FieldCreatedAt) + delete(m.clearedFields, feature.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *GroupHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *FeatureMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *GroupHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *FeatureMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -36520,10 +38329,10 @@ func (m *GroupHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *FeatureMutation) 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") } @@ -36538,30 +38347,30 @@ func (m *GroupHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, e } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *GroupHistoryMutation) ClearUpdatedAt() { +func (m *FeatureMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[grouphistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[feature.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *GroupHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[grouphistory.FieldUpdatedAt] +func (m *FeatureMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[feature.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *GroupHistoryMutation) ResetUpdatedAt() { +func (m *FeatureMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, grouphistory.FieldUpdatedAt) + delete(m.clearedFields, feature.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *GroupHistoryMutation) SetCreatedBy(s string) { +func (m *FeatureMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *GroupHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *FeatureMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -36569,10 +38378,10 @@ func (m *GroupHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *FeatureMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -36587,30 +38396,30 @@ func (m *GroupHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err } // ClearCreatedBy clears the value of the "created_by" field. -func (m *GroupHistoryMutation) ClearCreatedBy() { +func (m *FeatureMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[grouphistory.FieldCreatedBy] = struct{}{} + m.clearedFields[feature.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *GroupHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[grouphistory.FieldCreatedBy] +func (m *FeatureMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[feature.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *GroupHistoryMutation) ResetCreatedBy() { +func (m *FeatureMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, grouphistory.FieldCreatedBy) + delete(m.clearedFields, feature.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *GroupHistoryMutation) SetUpdatedBy(s string) { +func (m *FeatureMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *GroupHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *FeatureMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -36618,10 +38427,10 @@ func (m *GroupHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *FeatureMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -36636,30 +38445,30 @@ func (m *GroupHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *GroupHistoryMutation) ClearUpdatedBy() { +func (m *FeatureMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[grouphistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[feature.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *GroupHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[grouphistory.FieldUpdatedBy] +func (m *FeatureMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[feature.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *GroupHistoryMutation) ResetUpdatedBy() { +func (m *FeatureMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, grouphistory.FieldUpdatedBy) + delete(m.clearedFields, feature.FieldUpdatedBy) } // SetDeletedAt sets the "deleted_at" field. -func (m *GroupHistoryMutation) SetDeletedAt(t time.Time) { +func (m *FeatureMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *GroupHistoryMutation) DeletedAt() (r time.Time, exists bool) { +func (m *FeatureMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -36667,10 +38476,10 @@ func (m *GroupHistoryMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *FeatureMutation) 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") } @@ -36685,30 +38494,30 @@ func (m *GroupHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, e } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *GroupHistoryMutation) ClearDeletedAt() { +func (m *FeatureMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[grouphistory.FieldDeletedAt] = struct{}{} + m.clearedFields[feature.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *GroupHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[grouphistory.FieldDeletedAt] +func (m *FeatureMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[feature.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *GroupHistoryMutation) ResetDeletedAt() { +func (m *FeatureMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, grouphistory.FieldDeletedAt) + delete(m.clearedFields, feature.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *GroupHistoryMutation) SetDeletedBy(s string) { +func (m *FeatureMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *GroupHistoryMutation) DeletedBy() (r string, exists bool) { +func (m *FeatureMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -36716,10 +38525,10 @@ func (m *GroupHistoryMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *FeatureMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -36734,30 +38543,30 @@ func (m *GroupHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *GroupHistoryMutation) ClearDeletedBy() { +func (m *FeatureMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[grouphistory.FieldDeletedBy] = struct{}{} + m.clearedFields[feature.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *GroupHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[grouphistory.FieldDeletedBy] +func (m *FeatureMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[feature.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *GroupHistoryMutation) ResetDeletedBy() { +func (m *FeatureMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, grouphistory.FieldDeletedBy) + delete(m.clearedFields, feature.FieldDeletedBy) } // SetMappingID sets the "mapping_id" field. -func (m *GroupHistoryMutation) SetMappingID(s string) { +func (m *FeatureMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *GroupHistoryMutation) MappingID() (r string, exists bool) { +func (m *FeatureMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -36765,10 +38574,10 @@ func (m *GroupHistoryMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *FeatureMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -36783,18 +38592,18 @@ func (m *GroupHistoryMutation) OldMappingID(ctx context.Context) (v string, err } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *GroupHistoryMutation) ResetMappingID() { +func (m *FeatureMutation) ResetMappingID() { m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *GroupHistoryMutation) SetTags(s []string) { +func (m *FeatureMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *GroupHistoryMutation) Tags() (r []string, exists bool) { +func (m *FeatureMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -36802,10 +38611,10 @@ func (m *GroupHistoryMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *FeatureMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -36820,12 +38629,12 @@ func (m *GroupHistoryMutation) OldTags(ctx context.Context) (v []string, err err } // AppendTags adds s to the "tags" field. -func (m *GroupHistoryMutation) AppendTags(s []string) { +func (m *FeatureMutation) 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 *GroupHistoryMutation) AppendedTags() ([]string, bool) { +func (m *FeatureMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -36833,43 +38642,43 @@ func (m *GroupHistoryMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *GroupHistoryMutation) ClearTags() { +func (m *FeatureMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[grouphistory.FieldTags] = struct{}{} + m.clearedFields[feature.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *GroupHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[grouphistory.FieldTags] +func (m *FeatureMutation) TagsCleared() bool { + _, ok := m.clearedFields[feature.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *GroupHistoryMutation) ResetTags() { +func (m *FeatureMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, grouphistory.FieldTags) + delete(m.clearedFields, feature.FieldTags) } // SetOwnerID sets the "owner_id" field. -func (m *GroupHistoryMutation) SetOwnerID(s string) { - m.owner_id = &s +func (m *FeatureMutation) SetOwnerID(s string) { + m.owner = &s } // OwnerID returns the value of the "owner_id" field in the mutation. -func (m *GroupHistoryMutation) OwnerID() (r string, exists bool) { - v := m.owner_id +func (m *FeatureMutation) 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 GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *FeatureMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") } @@ -36884,30 +38693,30 @@ func (m *GroupHistoryMutation) OldOwnerID(ctx context.Context) (v string, err er } // ClearOwnerID clears the value of the "owner_id" field. -func (m *GroupHistoryMutation) ClearOwnerID() { - m.owner_id = nil - m.clearedFields[grouphistory.FieldOwnerID] = struct{}{} +func (m *FeatureMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[feature.FieldOwnerID] = struct{}{} } // OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *GroupHistoryMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[grouphistory.FieldOwnerID] +func (m *FeatureMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[feature.FieldOwnerID] return ok } // ResetOwnerID resets all changes to the "owner_id" field. -func (m *GroupHistoryMutation) ResetOwnerID() { - m.owner_id = nil - delete(m.clearedFields, grouphistory.FieldOwnerID) +func (m *FeatureMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, feature.FieldOwnerID) } // SetName sets the "name" field. -func (m *GroupHistoryMutation) SetName(s string) { +func (m *FeatureMutation) SetName(s string) { m.name = &s } // Name returns the value of the "name" field in the mutation. -func (m *GroupHistoryMutation) Name() (r string, exists bool) { +func (m *FeatureMutation) Name() (r string, exists bool) { v := m.name if v == nil { return @@ -36915,10 +38724,10 @@ func (m *GroupHistoryMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old "name" field's value of the GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldName(ctx context.Context) (v string, err error) { +func (m *FeatureMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldName is only allowed on UpdateOne operations") } @@ -36933,202 +38742,391 @@ func (m *GroupHistoryMutation) OldName(ctx context.Context) (v string, err error } // ResetName resets all changes to the "name" field. -func (m *GroupHistoryMutation) ResetName() { +func (m *FeatureMutation) ResetName() { m.name = nil } -// SetDescription sets the "description" field. -func (m *GroupHistoryMutation) SetDescription(s string) { - m.description = &s +// SetDisplayName sets the "display_name" field. +func (m *FeatureMutation) SetDisplayName(s string) { + m.display_name = &s } -// Description returns the value of the "description" field in the mutation. -func (m *GroupHistoryMutation) Description() (r string, exists bool) { - v := m.description +// DisplayName returns the value of the "display_name" field in the mutation. +func (m *FeatureMutation) DisplayName() (r string, exists bool) { + v := m.display_name if v == nil { return } return *v, true } -// OldDescription returns the old "description" field's value of the GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDisplayName returns the old "display_name" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { +func (m *FeatureMutation) OldDisplayName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDescription is only allowed on UpdateOne operations") + return v, errors.New("OldDisplayName 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") + return v, errors.New("OldDisplayName 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 v, fmt.Errorf("querying old value for OldDisplayName: %w", err) } - return oldValue.Description, nil + return oldValue.DisplayName, nil } -// ClearDescription clears the value of the "description" field. -func (m *GroupHistoryMutation) ClearDescription() { - m.description = nil - m.clearedFields[grouphistory.FieldDescription] = struct{}{} +// ClearDisplayName clears the value of the "display_name" field. +func (m *FeatureMutation) ClearDisplayName() { + m.display_name = nil + m.clearedFields[feature.FieldDisplayName] = struct{}{} } -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *GroupHistoryMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[grouphistory.FieldDescription] +// DisplayNameCleared returns if the "display_name" field was cleared in this mutation. +func (m *FeatureMutation) DisplayNameCleared() bool { + _, ok := m.clearedFields[feature.FieldDisplayName] return ok } -// ResetDescription resets all changes to the "description" field. -func (m *GroupHistoryMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, grouphistory.FieldDescription) +// ResetDisplayName resets all changes to the "display_name" field. +func (m *FeatureMutation) ResetDisplayName() { + m.display_name = nil + delete(m.clearedFields, feature.FieldDisplayName) } -// SetGravatarLogoURL sets the "gravatar_logo_url" field. -func (m *GroupHistoryMutation) SetGravatarLogoURL(s string) { - m.gravatar_logo_url = &s +// SetEnabled sets the "enabled" field. +func (m *FeatureMutation) SetEnabled(b bool) { + m.enabled = &b } -// GravatarLogoURL returns the value of the "gravatar_logo_url" field in the mutation. -func (m *GroupHistoryMutation) GravatarLogoURL() (r string, exists bool) { - v := m.gravatar_logo_url +// Enabled returns the value of the "enabled" field in the mutation. +func (m *FeatureMutation) Enabled() (r bool, exists bool) { + v := m.enabled if v == nil { return } return *v, true } -// OldGravatarLogoURL returns the old "gravatar_logo_url" field's value of the GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldEnabled returns the old "enabled" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldGravatarLogoURL(ctx context.Context) (v string, err error) { +func (m *FeatureMutation) OldEnabled(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldGravatarLogoURL is only allowed on UpdateOne operations") + return v, errors.New("OldEnabled is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldGravatarLogoURL requires an ID field in the mutation") + return v, errors.New("OldEnabled requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldGravatarLogoURL: %w", err) + return v, fmt.Errorf("querying old value for OldEnabled: %w", err) } - return oldValue.GravatarLogoURL, nil -} - -// ClearGravatarLogoURL clears the value of the "gravatar_logo_url" field. -func (m *GroupHistoryMutation) ClearGravatarLogoURL() { - m.gravatar_logo_url = nil - m.clearedFields[grouphistory.FieldGravatarLogoURL] = struct{}{} -} - -// GravatarLogoURLCleared returns if the "gravatar_logo_url" field was cleared in this mutation. -func (m *GroupHistoryMutation) GravatarLogoURLCleared() bool { - _, ok := m.clearedFields[grouphistory.FieldGravatarLogoURL] - return ok + return oldValue.Enabled, nil } -// ResetGravatarLogoURL resets all changes to the "gravatar_logo_url" field. -func (m *GroupHistoryMutation) ResetGravatarLogoURL() { - m.gravatar_logo_url = nil - delete(m.clearedFields, grouphistory.FieldGravatarLogoURL) +// ResetEnabled resets all changes to the "enabled" field. +func (m *FeatureMutation) ResetEnabled() { + m.enabled = nil } -// SetLogoURL sets the "logo_url" field. -func (m *GroupHistoryMutation) SetLogoURL(s string) { - m.logo_url = &s +// SetDescription sets the "description" field. +func (m *FeatureMutation) SetDescription(s string) { + m.description = &s } -// LogoURL returns the value of the "logo_url" field in the mutation. -func (m *GroupHistoryMutation) LogoURL() (r string, exists bool) { - v := m.logo_url +// Description returns the value of the "description" field in the mutation. +func (m *FeatureMutation) Description() (r string, exists bool) { + v := m.description if v == nil { return } return *v, true } -// OldLogoURL returns the old "logo_url" field's value of the GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldLogoURL(ctx context.Context) (v string, err error) { +func (m *FeatureMutation) OldDescription(ctx context.Context) (v *string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldLogoURL is only allowed on UpdateOne operations") + return v, errors.New("OldDescription is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldLogoURL requires an ID field in the mutation") + 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 OldLogoURL: %w", err) + return v, fmt.Errorf("querying old value for OldDescription: %w", err) } - return oldValue.LogoURL, nil + return oldValue.Description, nil } -// ClearLogoURL clears the value of the "logo_url" field. -func (m *GroupHistoryMutation) ClearLogoURL() { - m.logo_url = nil - m.clearedFields[grouphistory.FieldLogoURL] = struct{}{} +// ClearDescription clears the value of the "description" field. +func (m *FeatureMutation) ClearDescription() { + m.description = nil + m.clearedFields[feature.FieldDescription] = struct{}{} } -// LogoURLCleared returns if the "logo_url" field was cleared in this mutation. -func (m *GroupHistoryMutation) LogoURLCleared() bool { - _, ok := m.clearedFields[grouphistory.FieldLogoURL] +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *FeatureMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[feature.FieldDescription] return ok } -// ResetLogoURL resets all changes to the "logo_url" field. -func (m *GroupHistoryMutation) ResetLogoURL() { - m.logo_url = nil - delete(m.clearedFields, grouphistory.FieldLogoURL) +// ResetDescription resets all changes to the "description" field. +func (m *FeatureMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, feature.FieldDescription) } -// SetDisplayName sets the "display_name" field. -func (m *GroupHistoryMutation) SetDisplayName(s string) { - m.display_name = &s +// SetMetadata sets the "metadata" field. +func (m *FeatureMutation) SetMetadata(value map[string]interface{}) { + m.metadata = &value } -// DisplayName returns the value of the "display_name" field in the mutation. -func (m *GroupHistoryMutation) DisplayName() (r string, exists bool) { - v := m.display_name +// Metadata returns the value of the "metadata" field in the mutation. +func (m *FeatureMutation) Metadata() (r map[string]interface{}, exists bool) { + v := m.metadata if v == nil { return } return *v, true } -// OldDisplayName returns the old "display_name" field's value of the GroupHistory entity. -// If the GroupHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMetadata returns the old "metadata" field's value of the Feature entity. +// If the Feature 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 *GroupHistoryMutation) OldDisplayName(ctx context.Context) (v string, err error) { +func (m *FeatureMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") + return v, errors.New("OldMetadata is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDisplayName requires an ID field in the mutation") + 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 OldDisplayName: %w", err) + return v, fmt.Errorf("querying old value for OldMetadata: %w", err) } - return oldValue.DisplayName, nil + return oldValue.Metadata, nil } -// ResetDisplayName resets all changes to the "display_name" field. -func (m *GroupHistoryMutation) ResetDisplayName() { - m.display_name = nil +// ClearMetadata clears the value of the "metadata" field. +func (m *FeatureMutation) ClearMetadata() { + m.metadata = nil + m.clearedFields[feature.FieldMetadata] = struct{}{} } -// Where appends a list predicates to the GroupHistoryMutation builder. -func (m *GroupHistoryMutation) Where(ps ...predicate.GroupHistory) { - m.predicates = append(m.predicates, ps...) +// MetadataCleared returns if the "metadata" field was cleared in this mutation. +func (m *FeatureMutation) MetadataCleared() bool { + _, ok := m.clearedFields[feature.FieldMetadata] + return ok } -// WhereP appends storage-level predicates to the GroupHistoryMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *GroupHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.GroupHistory, len(ps)) +// ResetMetadata resets all changes to the "metadata" field. +func (m *FeatureMutation) ResetMetadata() { + m.metadata = nil + delete(m.clearedFields, feature.FieldMetadata) +} + +// ClearOwner clears the "owner" edge to the Organization entity. +func (m *FeatureMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[feature.FieldOwnerID] = struct{}{} +} + +// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. +func (m *FeatureMutation) 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 *FeatureMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetOwner resets all changes to the "owner" edge. +func (m *FeatureMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false +} + +// AddPlanIDs adds the "plans" edge to the EntitlementPlan entity by ids. +func (m *FeatureMutation) AddPlanIDs(ids ...string) { + if m.plans == nil { + m.plans = make(map[string]struct{}) + } + for i := range ids { + m.plans[ids[i]] = struct{}{} + } +} + +// ClearPlans clears the "plans" edge to the EntitlementPlan entity. +func (m *FeatureMutation) ClearPlans() { + m.clearedplans = true +} + +// PlansCleared reports if the "plans" edge to the EntitlementPlan entity was cleared. +func (m *FeatureMutation) PlansCleared() bool { + return m.clearedplans +} + +// RemovePlanIDs removes the "plans" edge to the EntitlementPlan entity by IDs. +func (m *FeatureMutation) RemovePlanIDs(ids ...string) { + if m.removedplans == nil { + m.removedplans = make(map[string]struct{}) + } + for i := range ids { + delete(m.plans, ids[i]) + m.removedplans[ids[i]] = struct{}{} + } +} + +// RemovedPlans returns the removed IDs of the "plans" edge to the EntitlementPlan entity. +func (m *FeatureMutation) RemovedPlansIDs() (ids []string) { + for id := range m.removedplans { + ids = append(ids, id) + } + return +} + +// PlansIDs returns the "plans" edge IDs in the mutation. +func (m *FeatureMutation) PlansIDs() (ids []string) { + for id := range m.plans { + ids = append(ids, id) + } + return +} + +// ResetPlans resets all changes to the "plans" edge. +func (m *FeatureMutation) ResetPlans() { + m.plans = nil + m.clearedplans = false + m.removedplans = nil +} + +// AddEventIDs adds the "events" edge to the Event entity by ids. +func (m *FeatureMutation) AddEventIDs(ids ...string) { + if m.events == nil { + m.events = make(map[string]struct{}) + } + for i := range ids { + m.events[ids[i]] = struct{}{} + } +} + +// ClearEvents clears the "events" edge to the Event entity. +func (m *FeatureMutation) ClearEvents() { + m.clearedevents = true +} + +// EventsCleared reports if the "events" edge to the Event entity was cleared. +func (m *FeatureMutation) EventsCleared() bool { + return m.clearedevents +} + +// RemoveEventIDs removes the "events" edge to the Event entity by IDs. +func (m *FeatureMutation) RemoveEventIDs(ids ...string) { + if m.removedevents == nil { + m.removedevents = make(map[string]struct{}) + } + for i := range ids { + delete(m.events, ids[i]) + m.removedevents[ids[i]] = struct{}{} + } +} + +// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. +func (m *FeatureMutation) RemovedEventsIDs() (ids []string) { + for id := range m.removedevents { + ids = append(ids, id) + } + return +} + +// EventsIDs returns the "events" edge IDs in the mutation. +func (m *FeatureMutation) EventsIDs() (ids []string) { + for id := range m.events { + ids = append(ids, id) + } + return +} + +// ResetEvents resets all changes to the "events" edge. +func (m *FeatureMutation) ResetEvents() { + m.events = nil + m.clearedevents = false + m.removedevents = nil +} + +// AddFeatureIDs adds the "features" edge to the EntitlementPlanFeature entity by ids. +func (m *FeatureMutation) AddFeatureIDs(ids ...string) { + if m.features == nil { + m.features = make(map[string]struct{}) + } + for i := range ids { + m.features[ids[i]] = struct{}{} + } +} + +// ClearFeatures clears the "features" edge to the EntitlementPlanFeature entity. +func (m *FeatureMutation) ClearFeatures() { + m.clearedfeatures = true +} + +// FeaturesCleared reports if the "features" edge to the EntitlementPlanFeature entity was cleared. +func (m *FeatureMutation) FeaturesCleared() bool { + return m.clearedfeatures +} + +// RemoveFeatureIDs removes the "features" edge to the EntitlementPlanFeature entity by IDs. +func (m *FeatureMutation) RemoveFeatureIDs(ids ...string) { + if m.removedfeatures == nil { + m.removedfeatures = make(map[string]struct{}) + } + for i := range ids { + delete(m.features, ids[i]) + m.removedfeatures[ids[i]] = struct{}{} + } +} + +// RemovedFeatures returns the removed IDs of the "features" edge to the EntitlementPlanFeature entity. +func (m *FeatureMutation) RemovedFeaturesIDs() (ids []string) { + for id := range m.removedfeatures { + ids = append(ids, id) + } + return +} + +// FeaturesIDs returns the "features" edge IDs in the mutation. +func (m *FeatureMutation) FeaturesIDs() (ids []string) { + for id := range m.features { + ids = append(ids, id) + } + return +} + +// ResetFeatures resets all changes to the "features" edge. +func (m *FeatureMutation) ResetFeatures() { + m.features = nil + m.clearedfeatures = false + m.removedfeatures = nil +} + +// Where appends a list predicates to the FeatureMutation builder. +func (m *FeatureMutation) Where(ps ...predicate.Feature) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the FeatureMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *FeatureMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Feature, len(ps)) for i := range ps { p[i] = ps[i] } @@ -37136,75 +39134,66 @@ func (m *GroupHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *GroupHistoryMutation) Op() Op { +func (m *FeatureMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *GroupHistoryMutation) SetOp(op Op) { +func (m *FeatureMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (GroupHistory). -func (m *GroupHistoryMutation) Type() string { +// Type returns the node type of this mutation (Feature). +func (m *FeatureMutation) 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 *GroupHistoryMutation) Fields() []string { - fields := make([]string, 0, 17) - if m.history_time != nil { - fields = append(fields, grouphistory.FieldHistoryTime) - } - if m.ref != nil { - fields = append(fields, grouphistory.FieldRef) - } - if m.operation != nil { - fields = append(fields, grouphistory.FieldOperation) - } +func (m *FeatureMutation) Fields() []string { + fields := make([]string, 0, 14) if m.created_at != nil { - fields = append(fields, grouphistory.FieldCreatedAt) + fields = append(fields, feature.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, grouphistory.FieldUpdatedAt) + fields = append(fields, feature.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, grouphistory.FieldCreatedBy) + fields = append(fields, feature.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, grouphistory.FieldUpdatedBy) + fields = append(fields, feature.FieldUpdatedBy) } if m.deleted_at != nil { - fields = append(fields, grouphistory.FieldDeletedAt) + fields = append(fields, feature.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, grouphistory.FieldDeletedBy) + fields = append(fields, feature.FieldDeletedBy) } if m.mapping_id != nil { - fields = append(fields, grouphistory.FieldMappingID) + fields = append(fields, feature.FieldMappingID) } if m.tags != nil { - fields = append(fields, grouphistory.FieldTags) + fields = append(fields, feature.FieldTags) } - if m.owner_id != nil { - fields = append(fields, grouphistory.FieldOwnerID) + if m.owner != nil { + fields = append(fields, feature.FieldOwnerID) } if m.name != nil { - fields = append(fields, grouphistory.FieldName) + fields = append(fields, feature.FieldName) } - if m.description != nil { - fields = append(fields, grouphistory.FieldDescription) + if m.display_name != nil { + fields = append(fields, feature.FieldDisplayName) } - if m.gravatar_logo_url != nil { - fields = append(fields, grouphistory.FieldGravatarLogoURL) + if m.enabled != nil { + fields = append(fields, feature.FieldEnabled) } - if m.logo_url != nil { - fields = append(fields, grouphistory.FieldLogoURL) + if m.description != nil { + fields = append(fields, feature.FieldDescription) } - if m.display_name != nil { - fields = append(fields, grouphistory.FieldDisplayName) + if m.metadata != nil { + fields = append(fields, feature.FieldMetadata) } return fields } @@ -37212,42 +39201,36 @@ func (m *GroupHistoryMutation) Fields() []string { // 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 *GroupHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *FeatureMutation) Field(name string) (ent.Value, bool) { switch name { - case grouphistory.FieldHistoryTime: - return m.HistoryTime() - case grouphistory.FieldRef: - return m.Ref() - case grouphistory.FieldOperation: - return m.Operation() - case grouphistory.FieldCreatedAt: + case feature.FieldCreatedAt: return m.CreatedAt() - case grouphistory.FieldUpdatedAt: + case feature.FieldUpdatedAt: return m.UpdatedAt() - case grouphistory.FieldCreatedBy: + case feature.FieldCreatedBy: return m.CreatedBy() - case grouphistory.FieldUpdatedBy: + case feature.FieldUpdatedBy: return m.UpdatedBy() - case grouphistory.FieldDeletedAt: + case feature.FieldDeletedAt: return m.DeletedAt() - case grouphistory.FieldDeletedBy: + case feature.FieldDeletedBy: return m.DeletedBy() - case grouphistory.FieldMappingID: + case feature.FieldMappingID: return m.MappingID() - case grouphistory.FieldTags: + case feature.FieldTags: return m.Tags() - case grouphistory.FieldOwnerID: + case feature.FieldOwnerID: return m.OwnerID() - case grouphistory.FieldName: + case feature.FieldName: return m.Name() - case grouphistory.FieldDescription: - return m.Description() - case grouphistory.FieldGravatarLogoURL: - return m.GravatarLogoURL() - case grouphistory.FieldLogoURL: - return m.LogoURL() - case grouphistory.FieldDisplayName: + case feature.FieldDisplayName: return m.DisplayName() + case feature.FieldEnabled: + return m.Enabled() + case feature.FieldDescription: + return m.Description() + case feature.FieldMetadata: + return m.Metadata() } return nil, false } @@ -37255,435 +39238,502 @@ func (m *GroupHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *GroupHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *FeatureMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case grouphistory.FieldHistoryTime: - return m.OldHistoryTime(ctx) - case grouphistory.FieldRef: - return m.OldRef(ctx) - case grouphistory.FieldOperation: - return m.OldOperation(ctx) - case grouphistory.FieldCreatedAt: + case feature.FieldCreatedAt: return m.OldCreatedAt(ctx) - case grouphistory.FieldUpdatedAt: + case feature.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case grouphistory.FieldCreatedBy: + case feature.FieldCreatedBy: return m.OldCreatedBy(ctx) - case grouphistory.FieldUpdatedBy: + case feature.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case grouphistory.FieldDeletedAt: + case feature.FieldDeletedAt: return m.OldDeletedAt(ctx) - case grouphistory.FieldDeletedBy: + case feature.FieldDeletedBy: return m.OldDeletedBy(ctx) - case grouphistory.FieldMappingID: + case feature.FieldMappingID: return m.OldMappingID(ctx) - case grouphistory.FieldTags: + case feature.FieldTags: return m.OldTags(ctx) - case grouphistory.FieldOwnerID: + case feature.FieldOwnerID: return m.OldOwnerID(ctx) - case grouphistory.FieldName: + case feature.FieldName: return m.OldName(ctx) - case grouphistory.FieldDescription: - return m.OldDescription(ctx) - case grouphistory.FieldGravatarLogoURL: - return m.OldGravatarLogoURL(ctx) - case grouphistory.FieldLogoURL: - return m.OldLogoURL(ctx) - case grouphistory.FieldDisplayName: + case feature.FieldDisplayName: return m.OldDisplayName(ctx) + case feature.FieldEnabled: + return m.OldEnabled(ctx) + case feature.FieldDescription: + return m.OldDescription(ctx) + case feature.FieldMetadata: + return m.OldMetadata(ctx) } - return nil, fmt.Errorf("unknown GroupHistory field %s", name) + return nil, fmt.Errorf("unknown Feature 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 *GroupHistoryMutation) SetField(name string, value ent.Value) error { +func (m *FeatureMutation) SetField(name string, value ent.Value) error { switch name { - case grouphistory.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 grouphistory.FieldRef: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetRef(v) - return nil - case grouphistory.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 grouphistory.FieldCreatedAt: + case feature.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 grouphistory.FieldUpdatedAt: + case feature.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 grouphistory.FieldCreatedBy: + case feature.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case grouphistory.FieldUpdatedBy: + case feature.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case grouphistory.FieldDeletedAt: + case feature.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 grouphistory.FieldDeletedBy: + case feature.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case grouphistory.FieldMappingID: + case feature.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case grouphistory.FieldTags: + case feature.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case grouphistory.FieldOwnerID: + case feature.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetOwnerID(v) return nil - case grouphistory.FieldName: + case feature.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetName(v) return nil - case grouphistory.FieldDescription: + case feature.FieldDisplayName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetDisplayName(v) return nil - case grouphistory.FieldGravatarLogoURL: - v, ok := value.(string) + case feature.FieldEnabled: + v, ok := value.(bool) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetGravatarLogoURL(v) + m.SetEnabled(v) return nil - case grouphistory.FieldLogoURL: + case feature.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetLogoURL(v) + m.SetDescription(v) return nil - case grouphistory.FieldDisplayName: - v, ok := value.(string) + case feature.FieldMetadata: + v, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDisplayName(v) + m.SetMetadata(v) return nil } - return fmt.Errorf("unknown GroupHistory field %s", name) + return fmt.Errorf("unknown Feature field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *GroupHistoryMutation) AddedFields() []string { +func (m *FeatureMutation) 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 *GroupHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *FeatureMutation) 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 *GroupHistoryMutation) AddField(name string, value ent.Value) error { +func (m *FeatureMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown GroupHistory numeric field %s", name) + return fmt.Errorf("unknown Feature numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *GroupHistoryMutation) ClearedFields() []string { +func (m *FeatureMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(grouphistory.FieldRef) { - fields = append(fields, grouphistory.FieldRef) - } - if m.FieldCleared(grouphistory.FieldCreatedAt) { - fields = append(fields, grouphistory.FieldCreatedAt) + if m.FieldCleared(feature.FieldCreatedAt) { + fields = append(fields, feature.FieldCreatedAt) } - if m.FieldCleared(grouphistory.FieldUpdatedAt) { - fields = append(fields, grouphistory.FieldUpdatedAt) + if m.FieldCleared(feature.FieldUpdatedAt) { + fields = append(fields, feature.FieldUpdatedAt) } - if m.FieldCleared(grouphistory.FieldCreatedBy) { - fields = append(fields, grouphistory.FieldCreatedBy) + if m.FieldCleared(feature.FieldCreatedBy) { + fields = append(fields, feature.FieldCreatedBy) } - if m.FieldCleared(grouphistory.FieldUpdatedBy) { - fields = append(fields, grouphistory.FieldUpdatedBy) + if m.FieldCleared(feature.FieldUpdatedBy) { + fields = append(fields, feature.FieldUpdatedBy) } - if m.FieldCleared(grouphistory.FieldDeletedAt) { - fields = append(fields, grouphistory.FieldDeletedAt) + if m.FieldCleared(feature.FieldDeletedAt) { + fields = append(fields, feature.FieldDeletedAt) } - if m.FieldCleared(grouphistory.FieldDeletedBy) { - fields = append(fields, grouphistory.FieldDeletedBy) + if m.FieldCleared(feature.FieldDeletedBy) { + fields = append(fields, feature.FieldDeletedBy) } - if m.FieldCleared(grouphistory.FieldTags) { - fields = append(fields, grouphistory.FieldTags) + if m.FieldCleared(feature.FieldTags) { + fields = append(fields, feature.FieldTags) } - if m.FieldCleared(grouphistory.FieldOwnerID) { - fields = append(fields, grouphistory.FieldOwnerID) + if m.FieldCleared(feature.FieldOwnerID) { + fields = append(fields, feature.FieldOwnerID) } - if m.FieldCleared(grouphistory.FieldDescription) { - fields = append(fields, grouphistory.FieldDescription) + if m.FieldCleared(feature.FieldDisplayName) { + fields = append(fields, feature.FieldDisplayName) } - if m.FieldCleared(grouphistory.FieldGravatarLogoURL) { - fields = append(fields, grouphistory.FieldGravatarLogoURL) + if m.FieldCleared(feature.FieldDescription) { + fields = append(fields, feature.FieldDescription) } - if m.FieldCleared(grouphistory.FieldLogoURL) { - fields = append(fields, grouphistory.FieldLogoURL) + if m.FieldCleared(feature.FieldMetadata) { + fields = append(fields, feature.FieldMetadata) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *GroupHistoryMutation) FieldCleared(name string) bool { +func (m *FeatureMutation) 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 *GroupHistoryMutation) ClearField(name string) error { +func (m *FeatureMutation) ClearField(name string) error { switch name { - case grouphistory.FieldRef: - m.ClearRef() - return nil - case grouphistory.FieldCreatedAt: + case feature.FieldCreatedAt: m.ClearCreatedAt() return nil - case grouphistory.FieldUpdatedAt: + case feature.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case grouphistory.FieldCreatedBy: + case feature.FieldCreatedBy: m.ClearCreatedBy() return nil - case grouphistory.FieldUpdatedBy: + case feature.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case grouphistory.FieldDeletedAt: + case feature.FieldDeletedAt: m.ClearDeletedAt() return nil - case grouphistory.FieldDeletedBy: + case feature.FieldDeletedBy: m.ClearDeletedBy() return nil - case grouphistory.FieldTags: + case feature.FieldTags: m.ClearTags() return nil - case grouphistory.FieldOwnerID: + case feature.FieldOwnerID: m.ClearOwnerID() return nil - case grouphistory.FieldDescription: - m.ClearDescription() + case feature.FieldDisplayName: + m.ClearDisplayName() return nil - case grouphistory.FieldGravatarLogoURL: - m.ClearGravatarLogoURL() + case feature.FieldDescription: + m.ClearDescription() return nil - case grouphistory.FieldLogoURL: - m.ClearLogoURL() + case feature.FieldMetadata: + m.ClearMetadata() return nil } - return fmt.Errorf("unknown GroupHistory nullable field %s", name) + return fmt.Errorf("unknown Feature 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 *GroupHistoryMutation) ResetField(name string) error { +func (m *FeatureMutation) ResetField(name string) error { switch name { - case grouphistory.FieldHistoryTime: - m.ResetHistoryTime() - return nil - case grouphistory.FieldRef: - m.ResetRef() - return nil - case grouphistory.FieldOperation: - m.ResetOperation() - return nil - case grouphistory.FieldCreatedAt: + case feature.FieldCreatedAt: m.ResetCreatedAt() return nil - case grouphistory.FieldUpdatedAt: + case feature.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case grouphistory.FieldCreatedBy: + case feature.FieldCreatedBy: m.ResetCreatedBy() return nil - case grouphistory.FieldUpdatedBy: + case feature.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case grouphistory.FieldDeletedAt: + case feature.FieldDeletedAt: m.ResetDeletedAt() return nil - case grouphistory.FieldDeletedBy: + case feature.FieldDeletedBy: m.ResetDeletedBy() return nil - case grouphistory.FieldMappingID: + case feature.FieldMappingID: m.ResetMappingID() return nil - case grouphistory.FieldTags: + case feature.FieldTags: m.ResetTags() return nil - case grouphistory.FieldOwnerID: + case feature.FieldOwnerID: m.ResetOwnerID() return nil - case grouphistory.FieldName: + case feature.FieldName: m.ResetName() return nil - case grouphistory.FieldDescription: - m.ResetDescription() + case feature.FieldDisplayName: + m.ResetDisplayName() return nil - case grouphistory.FieldGravatarLogoURL: - m.ResetGravatarLogoURL() + case feature.FieldEnabled: + m.ResetEnabled() return nil - case grouphistory.FieldLogoURL: - m.ResetLogoURL() + case feature.FieldDescription: + m.ResetDescription() return nil - case grouphistory.FieldDisplayName: - m.ResetDisplayName() + case feature.FieldMetadata: + m.ResetMetadata() return nil } - return fmt.Errorf("unknown GroupHistory field %s", name) + return fmt.Errorf("unknown Feature field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *GroupHistoryMutation) AddedEdges() []string { - edges := make([]string, 0, 0) +func (m *FeatureMutation) AddedEdges() []string { + edges := make([]string, 0, 4) + if m.owner != nil { + edges = append(edges, feature.EdgeOwner) + } + if m.plans != nil { + edges = append(edges, feature.EdgePlans) + } + if m.events != nil { + edges = append(edges, feature.EdgeEvents) + } + if m.features != nil { + edges = append(edges, feature.EdgeFeatures) + } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *GroupHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *FeatureMutation) AddedIDs(name string) []ent.Value { + switch name { + case feature.EdgeOwner: + if id := m.owner; id != nil { + return []ent.Value{*id} + } + case feature.EdgePlans: + ids := make([]ent.Value, 0, len(m.plans)) + for id := range m.plans { + ids = append(ids, id) + } + return ids + case feature.EdgeEvents: + ids := make([]ent.Value, 0, len(m.events)) + for id := range m.events { + ids = append(ids, id) + } + return ids + case feature.EdgeFeatures: + ids := make([]ent.Value, 0, len(m.features)) + for id := range m.features { + ids = append(ids, id) + } + return ids + } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *GroupHistoryMutation) RemovedEdges() []string { - edges := make([]string, 0, 0) +func (m *FeatureMutation) RemovedEdges() []string { + edges := make([]string, 0, 4) + if m.removedplans != nil { + edges = append(edges, feature.EdgePlans) + } + if m.removedevents != nil { + edges = append(edges, feature.EdgeEvents) + } + if m.removedfeatures != nil { + edges = append(edges, feature.EdgeFeatures) + } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *GroupHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *FeatureMutation) RemovedIDs(name string) []ent.Value { + switch name { + case feature.EdgePlans: + ids := make([]ent.Value, 0, len(m.removedplans)) + for id := range m.removedplans { + ids = append(ids, id) + } + return ids + case feature.EdgeEvents: + ids := make([]ent.Value, 0, len(m.removedevents)) + for id := range m.removedevents { + ids = append(ids, id) + } + return ids + case feature.EdgeFeatures: + ids := make([]ent.Value, 0, len(m.removedfeatures)) + for id := range m.removedfeatures { + ids = append(ids, id) + } + return ids + } return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *GroupHistoryMutation) ClearedEdges() []string { - edges := make([]string, 0, 0) +func (m *FeatureMutation) ClearedEdges() []string { + edges := make([]string, 0, 4) + if m.clearedowner { + edges = append(edges, feature.EdgeOwner) + } + if m.clearedplans { + edges = append(edges, feature.EdgePlans) + } + if m.clearedevents { + edges = append(edges, feature.EdgeEvents) + } + if m.clearedfeatures { + edges = append(edges, feature.EdgeFeatures) + } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *GroupHistoryMutation) EdgeCleared(name string) bool { +func (m *FeatureMutation) EdgeCleared(name string) bool { + switch name { + case feature.EdgeOwner: + return m.clearedowner + case feature.EdgePlans: + return m.clearedplans + case feature.EdgeEvents: + return m.clearedevents + case feature.EdgeFeatures: + return m.clearedfeatures + } 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 *GroupHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown GroupHistory unique edge %s", name) +func (m *FeatureMutation) ClearEdge(name string) error { + switch name { + case feature.EdgeOwner: + m.ClearOwner() + return nil + } + return fmt.Errorf("unknown Feature 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 *GroupHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown GroupHistory edge %s", name) +func (m *FeatureMutation) ResetEdge(name string) error { + switch name { + case feature.EdgeOwner: + m.ResetOwner() + return nil + case feature.EdgePlans: + m.ResetPlans() + return nil + case feature.EdgeEvents: + m.ResetEvents() + return nil + case feature.EdgeFeatures: + m.ResetFeatures() + return nil + } + return fmt.Errorf("unknown Feature edge %s", name) } -// GroupMembershipMutation represents an operation that mutates the GroupMembership nodes in the graph. -type GroupMembershipMutation struct { +// FeatureHistoryMutation represents an operation that mutates the FeatureHistory nodes in the graph. +type FeatureHistoryMutation 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 - mapping_id *string deleted_at *time.Time deleted_by *string - role *enums.Role + mapping_id *string + tags *[]string + appendtags []string + owner_id *string + name *string + display_name *string + enabled *bool + description *string + metadata *map[string]interface{} clearedFields map[string]struct{} - group *string - clearedgroup bool - user *string - cleareduser bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool done bool - oldValue func(context.Context) (*GroupMembership, error) - predicates []predicate.GroupMembership + oldValue func(context.Context) (*FeatureHistory, error) + predicates []predicate.FeatureHistory } -var _ ent.Mutation = (*GroupMembershipMutation)(nil) +var _ ent.Mutation = (*FeatureHistoryMutation)(nil) -// groupmembershipOption allows management of the mutation configuration using functional options. -type groupmembershipOption func(*GroupMembershipMutation) +// featurehistoryOption allows management of the mutation configuration using functional options. +type featurehistoryOption func(*FeatureHistoryMutation) -// newGroupMembershipMutation creates new mutation for the GroupMembership entity. -func newGroupMembershipMutation(c config, op Op, opts ...groupmembershipOption) *GroupMembershipMutation { - m := &GroupMembershipMutation{ +// newFeatureHistoryMutation creates new mutation for the FeatureHistory entity. +func newFeatureHistoryMutation(c config, op Op, opts ...featurehistoryOption) *FeatureHistoryMutation { + m := &FeatureHistoryMutation{ config: c, op: op, - typ: TypeGroupMembership, + typ: TypeFeatureHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -37692,20 +39742,20 @@ func newGroupMembershipMutation(c config, op Op, opts ...groupmembershipOption) return m } -// withGroupMembershipID sets the ID field of the mutation. -func withGroupMembershipID(id string) groupmembershipOption { - return func(m *GroupMembershipMutation) { +// withFeatureHistoryID sets the ID field of the mutation. +func withFeatureHistoryID(id string) featurehistoryOption { + return func(m *FeatureHistoryMutation) { var ( err error once sync.Once - value *GroupMembership + value *FeatureHistory ) - m.oldValue = func(ctx context.Context) (*GroupMembership, error) { + m.oldValue = func(ctx context.Context) (*FeatureHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().GroupMembership.Get(ctx, id) + value, err = m.Client().FeatureHistory.Get(ctx, id) } }) return value, err @@ -37714,10 +39764,10 @@ func withGroupMembershipID(id string) groupmembershipOption { } } -// withGroupMembership sets the old GroupMembership of the mutation. -func withGroupMembership(node *GroupMembership) groupmembershipOption { - return func(m *GroupMembershipMutation) { - m.oldValue = func(context.Context) (*GroupMembership, error) { +// withFeatureHistory sets the old FeatureHistory of the mutation. +func withFeatureHistory(node *FeatureHistory) featurehistoryOption { + return func(m *FeatureHistoryMutation) { + m.oldValue = func(context.Context) (*FeatureHistory, error) { return node, nil } m.id = &node.ID @@ -37726,7 +39776,7 @@ func withGroupMembership(node *GroupMembership) groupmembershipOption { // 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 GroupMembershipMutation) Client() *Client { +func (m FeatureHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -37734,7 +39784,7 @@ func (m GroupMembershipMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m GroupMembershipMutation) Tx() (*Tx, error) { +func (m FeatureHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -37744,14 +39794,14 @@ func (m GroupMembershipMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of GroupMembership entities. -func (m *GroupMembershipMutation) SetID(id string) { +// operation is only accepted on creation of FeatureHistory entities. +func (m *FeatureHistoryMutation) 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 *GroupMembershipMutation) ID() (id string, exists bool) { +func (m *FeatureHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -37762,7 +39812,7 @@ func (m *GroupMembershipMutation) ID() (id string, exists bool) { // 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 *GroupMembershipMutation) IDs(ctx context.Context) ([]string, error) { +func (m *FeatureHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -37771,19 +39821,140 @@ func (m *GroupMembershipMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().GroupMembership.Query().Where(m.predicates...).IDs(ctx) + return m.Client().FeatureHistory.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 *FeatureHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *FeatureHistoryMutation) 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 FeatureHistory entity. +// If the FeatureHistory 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 *FeatureHistoryMutation) 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 *FeatureHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *FeatureHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *FeatureHistoryMutation) 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 FeatureHistory entity. +// If the FeatureHistory 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 *FeatureHistoryMutation) 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 *FeatureHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[featurehistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *FeatureHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[featurehistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *FeatureHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, featurehistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *FeatureHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *FeatureHistoryMutation) 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 FeatureHistory entity. +// If the FeatureHistory 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 *FeatureHistoryMutation) 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 *FeatureHistoryMutation) ResetOperation() { + m.operation = nil +} + // SetCreatedAt sets the "created_at" field. -func (m *GroupMembershipMutation) SetCreatedAt(t time.Time) { +func (m *FeatureHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *GroupMembershipMutation) CreatedAt() (r time.Time, exists bool) { +func (m *FeatureHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -37791,10 +39962,10 @@ func (m *GroupMembershipMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the GroupMembership entity. -// If the GroupMembership object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *GroupMembershipMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *FeatureHistoryMutation) 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") } @@ -37809,30 +39980,30 @@ func (m *GroupMembershipMutation) OldCreatedAt(ctx context.Context) (v time.Time } // ClearCreatedAt clears the value of the "created_at" field. -func (m *GroupMembershipMutation) ClearCreatedAt() { +func (m *FeatureHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[groupmembership.FieldCreatedAt] = struct{}{} + m.clearedFields[featurehistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *GroupMembershipMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[groupmembership.FieldCreatedAt] +func (m *FeatureHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[featurehistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *GroupMembershipMutation) ResetCreatedAt() { +func (m *FeatureHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, groupmembership.FieldCreatedAt) + delete(m.clearedFields, featurehistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *GroupMembershipMutation) SetUpdatedAt(t time.Time) { +func (m *FeatureHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *GroupMembershipMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *FeatureHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -37840,10 +40011,10 @@ func (m *GroupMembershipMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the GroupMembership entity. -// If the GroupMembership object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *GroupMembershipMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *FeatureHistoryMutation) 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") } @@ -37858,30 +40029,30 @@ func (m *GroupMembershipMutation) OldUpdatedAt(ctx context.Context) (v time.Time } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *GroupMembershipMutation) ClearUpdatedAt() { +func (m *FeatureHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[groupmembership.FieldUpdatedAt] = struct{}{} + m.clearedFields[featurehistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *GroupMembershipMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[groupmembership.FieldUpdatedAt] +func (m *FeatureHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[featurehistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *GroupMembershipMutation) ResetUpdatedAt() { +func (m *FeatureHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, groupmembership.FieldUpdatedAt) + delete(m.clearedFields, featurehistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *GroupMembershipMutation) SetCreatedBy(s string) { +func (m *FeatureHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *GroupMembershipMutation) CreatedBy() (r string, exists bool) { +func (m *FeatureHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -37889,10 +40060,10 @@ func (m *GroupMembershipMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the GroupMembership entity. -// If the GroupMembership object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *GroupMembershipMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *FeatureHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -37907,30 +40078,30 @@ func (m *GroupMembershipMutation) OldCreatedBy(ctx context.Context) (v string, e } // ClearCreatedBy clears the value of the "created_by" field. -func (m *GroupMembershipMutation) ClearCreatedBy() { +func (m *FeatureHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[groupmembership.FieldCreatedBy] = struct{}{} + m.clearedFields[featurehistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *GroupMembershipMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[groupmembership.FieldCreatedBy] +func (m *FeatureHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[featurehistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *GroupMembershipMutation) ResetCreatedBy() { +func (m *FeatureHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, groupmembership.FieldCreatedBy) + delete(m.clearedFields, featurehistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *GroupMembershipMutation) SetUpdatedBy(s string) { +func (m *FeatureHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *GroupMembershipMutation) UpdatedBy() (r string, exists bool) { +func (m *FeatureHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -37938,10 +40109,10 @@ func (m *GroupMembershipMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the GroupMembership entity. -// If the GroupMembership object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *GroupMembershipMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *FeatureHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -37956,66 +40127,30 @@ func (m *GroupMembershipMutation) OldUpdatedBy(ctx context.Context) (v string, e } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *GroupMembershipMutation) ClearUpdatedBy() { +func (m *FeatureHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[groupmembership.FieldUpdatedBy] = struct{}{} + m.clearedFields[featurehistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *GroupMembershipMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[groupmembership.FieldUpdatedBy] +func (m *FeatureHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[featurehistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *GroupMembershipMutation) ResetUpdatedBy() { +func (m *FeatureHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, groupmembership.FieldUpdatedBy) -} - -// SetMappingID sets the "mapping_id" field. -func (m *GroupMembershipMutation) SetMappingID(s string) { - m.mapping_id = &s -} - -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *GroupMembershipMutation) MappingID() (r string, exists bool) { - v := m.mapping_id - if v == nil { - return - } - return *v, true -} - -// OldMappingID returns the old "mapping_id" field's value of the GroupMembership entity. -// If the GroupMembership 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 *GroupMembershipMutation) OldMappingID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) - } - return oldValue.MappingID, nil -} - -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *GroupMembershipMutation) ResetMappingID() { - m.mapping_id = nil + delete(m.clearedFields, featurehistory.FieldUpdatedBy) } // SetDeletedAt sets the "deleted_at" field. -func (m *GroupMembershipMutation) SetDeletedAt(t time.Time) { +func (m *FeatureHistoryMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *GroupMembershipMutation) DeletedAt() (r time.Time, exists bool) { +func (m *FeatureHistoryMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -38023,10 +40158,10 @@ func (m *GroupMembershipMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the GroupMembership entity. -// If the GroupMembership object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *GroupMembershipMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *FeatureHistoryMutation) 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") } @@ -38041,30 +40176,30 @@ func (m *GroupMembershipMutation) OldDeletedAt(ctx context.Context) (v time.Time } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *GroupMembershipMutation) ClearDeletedAt() { +func (m *FeatureHistoryMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[groupmembership.FieldDeletedAt] = struct{}{} + m.clearedFields[featurehistory.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *GroupMembershipMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[groupmembership.FieldDeletedAt] +func (m *FeatureHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[featurehistory.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *GroupMembershipMutation) ResetDeletedAt() { +func (m *FeatureHistoryMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, groupmembership.FieldDeletedAt) + delete(m.clearedFields, featurehistory.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *GroupMembershipMutation) SetDeletedBy(s string) { +func (m *FeatureHistoryMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *GroupMembershipMutation) DeletedBy() (r string, exists bool) { +func (m *FeatureHistoryMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -38072,10 +40207,10 @@ func (m *GroupMembershipMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the GroupMembership entity. -// If the GroupMembership object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *GroupMembershipMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *FeatureHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -38090,248 +40225,401 @@ func (m *GroupMembershipMutation) OldDeletedBy(ctx context.Context) (v string, e } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *GroupMembershipMutation) ClearDeletedBy() { +func (m *FeatureHistoryMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[groupmembership.FieldDeletedBy] = struct{}{} + m.clearedFields[featurehistory.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *GroupMembershipMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[groupmembership.FieldDeletedBy] +func (m *FeatureHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[featurehistory.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *GroupMembershipMutation) ResetDeletedBy() { +func (m *FeatureHistoryMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, groupmembership.FieldDeletedBy) + delete(m.clearedFields, featurehistory.FieldDeletedBy) } -// SetRole sets the "role" field. -func (m *GroupMembershipMutation) SetRole(e enums.Role) { - m.role = &e +// SetMappingID sets the "mapping_id" field. +func (m *FeatureHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s } -// Role returns the value of the "role" field in the mutation. -func (m *GroupMembershipMutation) Role() (r enums.Role, exists bool) { - v := m.role +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *FeatureHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id if v == nil { return } return *v, true } -// OldRole returns the old "role" field's value of the GroupMembership entity. -// If the GroupMembership object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *GroupMembershipMutation) OldRole(ctx context.Context) (v enums.Role, err error) { +func (m *FeatureHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldRole is only allowed on UpdateOne operations") + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldRole requires an ID field in the mutation") + return v, errors.New("OldMappingID requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldRole: %w", err) + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) } - return oldValue.Role, nil + return oldValue.MappingID, nil } -// ResetRole resets all changes to the "role" field. -func (m *GroupMembershipMutation) ResetRole() { - m.role = nil +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *FeatureHistoryMutation) ResetMappingID() { + m.mapping_id = nil } -// SetGroupID sets the "group_id" field. -func (m *GroupMembershipMutation) SetGroupID(s string) { - m.group = &s +// SetTags sets the "tags" field. +func (m *FeatureHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// GroupID returns the value of the "group_id" field in the mutation. -func (m *GroupMembershipMutation) GroupID() (r string, exists bool) { - v := m.group +// Tags returns the value of the "tags" field in the mutation. +func (m *FeatureHistoryMutation) Tags() (r []string, exists bool) { + v := m.tags if v == nil { return } return *v, true } -// OldGroupID returns the old "group_id" field's value of the GroupMembership entity. -// If the GroupMembership object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *GroupMembershipMutation) OldGroupID(ctx context.Context) (v string, err error) { +func (m *FeatureHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldGroupID is only allowed on UpdateOne operations") + return v, errors.New("OldTags 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") + 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 OldGroupID: %w", err) + return v, fmt.Errorf("querying old value for OldTags: %w", err) } - return oldValue.GroupID, nil + return oldValue.Tags, nil } -// ResetGroupID resets all changes to the "group_id" field. -func (m *GroupMembershipMutation) ResetGroupID() { - m.group = nil +// AppendTags adds s to the "tags" field. +func (m *FeatureHistoryMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) } -// SetUserID sets the "user_id" field. -func (m *GroupMembershipMutation) SetUserID(s string) { - m.user = &s +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *FeatureHistoryMutation) AppendedTags() ([]string, bool) { + if len(m.appendtags) == 0 { + return nil, false + } + return m.appendtags, true } -// UserID returns the value of the "user_id" field in the mutation. -func (m *GroupMembershipMutation) UserID() (r string, exists bool) { - v := m.user +// ClearTags clears the value of the "tags" field. +func (m *FeatureHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[featurehistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *FeatureHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[featurehistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *FeatureHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, featurehistory.FieldTags) +} + +// SetOwnerID sets the "owner_id" field. +func (m *FeatureHistoryMutation) SetOwnerID(s string) { + m.owner_id = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *FeatureHistoryMutation) OwnerID() (r string, exists bool) { + v := m.owner_id if v == nil { return } return *v, true } -// OldUserID returns the old "user_id" field's value of the GroupMembership entity. -// If the GroupMembership object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *GroupMembershipMutation) OldUserID(ctx context.Context) (v string, err error) { +func (m *FeatureHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUserID is only allowed on UpdateOne operations") + return v, errors.New("OldOwnerID 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") + 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 OldUserID: %w", err) + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) } - return oldValue.UserID, nil + return oldValue.OwnerID, nil } -// ResetUserID resets all changes to the "user_id" field. -func (m *GroupMembershipMutation) ResetUserID() { - m.user = nil +// ClearOwnerID clears the value of the "owner_id" field. +func (m *FeatureHistoryMutation) ClearOwnerID() { + m.owner_id = nil + m.clearedFields[featurehistory.FieldOwnerID] = struct{}{} } -// ClearGroup clears the "group" edge to the Group entity. -func (m *GroupMembershipMutation) ClearGroup() { - m.clearedgroup = true - m.clearedFields[groupmembership.FieldGroupID] = struct{}{} +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *FeatureHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[featurehistory.FieldOwnerID] + return ok } -// GroupCleared reports if the "group" edge to the Group entity was cleared. -func (m *GroupMembershipMutation) GroupCleared() bool { - return m.clearedgroup +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *FeatureHistoryMutation) ResetOwnerID() { + m.owner_id = nil + delete(m.clearedFields, featurehistory.FieldOwnerID) } -// 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 *GroupMembershipMutation) GroupIDs() (ids []string) { - if id := m.group; id != nil { - ids = append(ids, *id) +// SetName sets the "name" field. +func (m *FeatureHistoryMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *FeatureHistoryMutation) Name() (r string, exists bool) { + v := m.name + if v == nil { + return } - return + return *v, true } -// ResetGroup resets all changes to the "group" edge. -func (m *GroupMembershipMutation) ResetGroup() { - m.group = nil - m.clearedgroup = false +// OldName returns the old "name" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *FeatureHistoryMutation) 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 } -// ClearUser clears the "user" edge to the User entity. -func (m *GroupMembershipMutation) ClearUser() { - m.cleareduser = true - m.clearedFields[groupmembership.FieldUserID] = struct{}{} +// ResetName resets all changes to the "name" field. +func (m *FeatureHistoryMutation) ResetName() { + m.name = nil } -// UserCleared reports if the "user" edge to the User entity was cleared. -func (m *GroupMembershipMutation) UserCleared() bool { - return m.cleareduser +// SetDisplayName sets the "display_name" field. +func (m *FeatureHistoryMutation) SetDisplayName(s string) { + m.display_name = &s } -// 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 *GroupMembershipMutation) UserIDs() (ids []string) { - if id := m.user; id != nil { - ids = append(ids, *id) +// DisplayName returns the value of the "display_name" field in the mutation. +func (m *FeatureHistoryMutation) DisplayName() (r string, exists bool) { + v := m.display_name + if v == nil { + return } - return + return *v, true } -// ResetUser resets all changes to the "user" edge. -func (m *GroupMembershipMutation) ResetUser() { - m.user = nil - m.cleareduser = false +// OldDisplayName returns the old "display_name" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *FeatureHistoryMutation) OldDisplayName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDisplayName requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) + } + return oldValue.DisplayName, nil } -// AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *GroupMembershipMutation) AddEventIDs(ids ...string) { - if m.events == nil { - m.events = make(map[string]struct{}) +// ClearDisplayName clears the value of the "display_name" field. +func (m *FeatureHistoryMutation) ClearDisplayName() { + m.display_name = nil + m.clearedFields[featurehistory.FieldDisplayName] = struct{}{} +} + +// DisplayNameCleared returns if the "display_name" field was cleared in this mutation. +func (m *FeatureHistoryMutation) DisplayNameCleared() bool { + _, ok := m.clearedFields[featurehistory.FieldDisplayName] + return ok +} + +// ResetDisplayName resets all changes to the "display_name" field. +func (m *FeatureHistoryMutation) ResetDisplayName() { + m.display_name = nil + delete(m.clearedFields, featurehistory.FieldDisplayName) +} + +// SetEnabled sets the "enabled" field. +func (m *FeatureHistoryMutation) SetEnabled(b bool) { + m.enabled = &b +} + +// Enabled returns the value of the "enabled" field in the mutation. +func (m *FeatureHistoryMutation) Enabled() (r bool, exists bool) { + v := m.enabled + if v == nil { + return } - for i := range ids { - m.events[ids[i]] = struct{}{} + return *v, true +} + +// OldEnabled returns the old "enabled" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *FeatureHistoryMutation) OldEnabled(ctx context.Context) (v bool, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldEnabled is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldEnabled requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldEnabled: %w", err) } + return oldValue.Enabled, nil } -// ClearEvents clears the "events" edge to the Event entity. -func (m *GroupMembershipMutation) ClearEvents() { - m.clearedevents = true +// ResetEnabled resets all changes to the "enabled" field. +func (m *FeatureHistoryMutation) ResetEnabled() { + m.enabled = nil } -// EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *GroupMembershipMutation) EventsCleared() bool { - return m.clearedevents +// SetDescription sets the "description" field. +func (m *FeatureHistoryMutation) SetDescription(s string) { + m.description = &s } -// RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *GroupMembershipMutation) RemoveEventIDs(ids ...string) { - if m.removedevents == nil { - m.removedevents = make(map[string]struct{}) +// Description returns the value of the "description" field in the mutation. +func (m *FeatureHistoryMutation) Description() (r string, exists bool) { + v := m.description + if v == nil { + return } - for i := range ids { - delete(m.events, ids[i]) - m.removedevents[ids[i]] = struct{}{} + return *v, true +} + +// OldDescription returns the old "description" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *FeatureHistoryMutation) 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 } -// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *GroupMembershipMutation) RemovedEventsIDs() (ids []string) { - for id := range m.removedevents { - ids = append(ids, id) +// ClearDescription clears the value of the "description" field. +func (m *FeatureHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[featurehistory.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *FeatureHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[featurehistory.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *FeatureHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, featurehistory.FieldDescription) +} + +// SetMetadata sets the "metadata" field. +func (m *FeatureHistoryMutation) SetMetadata(value map[string]interface{}) { + m.metadata = &value +} + +// Metadata returns the value of the "metadata" field in the mutation. +func (m *FeatureHistoryMutation) Metadata() (r map[string]interface{}, exists bool) { + v := m.metadata + if v == nil { + return } - return + return *v, true } -// EventsIDs returns the "events" edge IDs in the mutation. -func (m *GroupMembershipMutation) EventsIDs() (ids []string) { - for id := range m.events { - ids = append(ids, id) +// OldMetadata returns the old "metadata" field's value of the FeatureHistory entity. +// If the FeatureHistory 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 *FeatureHistoryMutation) 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") } - return + 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 } -// ResetEvents resets all changes to the "events" edge. -func (m *GroupMembershipMutation) ResetEvents() { - m.events = nil - m.clearedevents = false - m.removedevents = nil +// ClearMetadata clears the value of the "metadata" field. +func (m *FeatureHistoryMutation) ClearMetadata() { + m.metadata = nil + m.clearedFields[featurehistory.FieldMetadata] = struct{}{} } -// Where appends a list predicates to the GroupMembershipMutation builder. -func (m *GroupMembershipMutation) Where(ps ...predicate.GroupMembership) { +// MetadataCleared returns if the "metadata" field was cleared in this mutation. +func (m *FeatureHistoryMutation) MetadataCleared() bool { + _, ok := m.clearedFields[featurehistory.FieldMetadata] + return ok +} + +// ResetMetadata resets all changes to the "metadata" field. +func (m *FeatureHistoryMutation) ResetMetadata() { + m.metadata = nil + delete(m.clearedFields, featurehistory.FieldMetadata) +} + +// Where appends a list predicates to the FeatureHistoryMutation builder. +func (m *FeatureHistoryMutation) Where(ps ...predicate.FeatureHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the GroupMembershipMutation builder. Using this method, +// WhereP appends storage-level predicates to the FeatureHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *GroupMembershipMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.GroupMembership, len(ps)) +func (m *FeatureHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.FeatureHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -38339,54 +40627,75 @@ func (m *GroupMembershipMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *GroupMembershipMutation) Op() Op { +func (m *FeatureHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *GroupMembershipMutation) SetOp(op Op) { +func (m *FeatureHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (GroupMembership). -func (m *GroupMembershipMutation) Type() string { +// Type returns the node type of this mutation (FeatureHistory). +func (m *FeatureHistoryMutation) 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 *GroupMembershipMutation) Fields() []string { - fields := make([]string, 0, 10) +func (m *FeatureHistoryMutation) Fields() []string { + fields := make([]string, 0, 17) + if m.history_time != nil { + fields = append(fields, featurehistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, featurehistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, featurehistory.FieldOperation) + } if m.created_at != nil { - fields = append(fields, groupmembership.FieldCreatedAt) + fields = append(fields, featurehistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, groupmembership.FieldUpdatedAt) + fields = append(fields, featurehistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, groupmembership.FieldCreatedBy) + fields = append(fields, featurehistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, groupmembership.FieldUpdatedBy) - } - if m.mapping_id != nil { - fields = append(fields, groupmembership.FieldMappingID) + fields = append(fields, featurehistory.FieldUpdatedBy) } if m.deleted_at != nil { - fields = append(fields, groupmembership.FieldDeletedAt) + fields = append(fields, featurehistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, groupmembership.FieldDeletedBy) + fields = append(fields, featurehistory.FieldDeletedBy) } - if m.role != nil { - fields = append(fields, groupmembership.FieldRole) + if m.mapping_id != nil { + fields = append(fields, featurehistory.FieldMappingID) } - if m.group != nil { - fields = append(fields, groupmembership.FieldGroupID) + if m.tags != nil { + fields = append(fields, featurehistory.FieldTags) } - if m.user != nil { - fields = append(fields, groupmembership.FieldUserID) + if m.owner_id != nil { + fields = append(fields, featurehistory.FieldOwnerID) + } + if m.name != nil { + fields = append(fields, featurehistory.FieldName) + } + if m.display_name != nil { + fields = append(fields, featurehistory.FieldDisplayName) + } + if m.enabled != nil { + fields = append(fields, featurehistory.FieldEnabled) + } + if m.description != nil { + fields = append(fields, featurehistory.FieldDescription) + } + if m.metadata != nil { + fields = append(fields, featurehistory.FieldMetadata) } return fields } @@ -38394,28 +40703,42 @@ func (m *GroupMembershipMutation) Fields() []string { // 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 *GroupMembershipMutation) Field(name string) (ent.Value, bool) { +func (m *FeatureHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case groupmembership.FieldCreatedAt: + case featurehistory.FieldHistoryTime: + return m.HistoryTime() + case featurehistory.FieldRef: + return m.Ref() + case featurehistory.FieldOperation: + return m.Operation() + case featurehistory.FieldCreatedAt: return m.CreatedAt() - case groupmembership.FieldUpdatedAt: + case featurehistory.FieldUpdatedAt: return m.UpdatedAt() - case groupmembership.FieldCreatedBy: + case featurehistory.FieldCreatedBy: return m.CreatedBy() - case groupmembership.FieldUpdatedBy: + case featurehistory.FieldUpdatedBy: return m.UpdatedBy() - case groupmembership.FieldMappingID: - return m.MappingID() - case groupmembership.FieldDeletedAt: + case featurehistory.FieldDeletedAt: return m.DeletedAt() - case groupmembership.FieldDeletedBy: + case featurehistory.FieldDeletedBy: return m.DeletedBy() - case groupmembership.FieldRole: - return m.Role() - case groupmembership.FieldGroupID: - return m.GroupID() - case groupmembership.FieldUserID: - return m.UserID() + case featurehistory.FieldMappingID: + return m.MappingID() + case featurehistory.FieldTags: + return m.Tags() + case featurehistory.FieldOwnerID: + return m.OwnerID() + case featurehistory.FieldName: + return m.Name() + case featurehistory.FieldDisplayName: + return m.DisplayName() + case featurehistory.FieldEnabled: + return m.Enabled() + case featurehistory.FieldDescription: + return m.Description() + case featurehistory.FieldMetadata: + return m.Metadata() } return nil, false } @@ -38423,385 +40746,475 @@ func (m *GroupMembershipMutation) Field(name string) (ent.Value, bool) { // 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 *GroupMembershipMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *FeatureHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case groupmembership.FieldCreatedAt: + case featurehistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case featurehistory.FieldRef: + return m.OldRef(ctx) + case featurehistory.FieldOperation: + return m.OldOperation(ctx) + case featurehistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case groupmembership.FieldUpdatedAt: + case featurehistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case groupmembership.FieldCreatedBy: + case featurehistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case groupmembership.FieldUpdatedBy: + case featurehistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case groupmembership.FieldMappingID: - return m.OldMappingID(ctx) - case groupmembership.FieldDeletedAt: + case featurehistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case groupmembership.FieldDeletedBy: + case featurehistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case groupmembership.FieldRole: - return m.OldRole(ctx) - case groupmembership.FieldGroupID: - return m.OldGroupID(ctx) - case groupmembership.FieldUserID: - return m.OldUserID(ctx) + case featurehistory.FieldMappingID: + return m.OldMappingID(ctx) + case featurehistory.FieldTags: + return m.OldTags(ctx) + case featurehistory.FieldOwnerID: + return m.OldOwnerID(ctx) + case featurehistory.FieldName: + return m.OldName(ctx) + case featurehistory.FieldDisplayName: + return m.OldDisplayName(ctx) + case featurehistory.FieldEnabled: + return m.OldEnabled(ctx) + case featurehistory.FieldDescription: + return m.OldDescription(ctx) + case featurehistory.FieldMetadata: + return m.OldMetadata(ctx) } - return nil, fmt.Errorf("unknown GroupMembership field %s", name) + return nil, fmt.Errorf("unknown FeatureHistory 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 *GroupMembershipMutation) SetField(name string, value ent.Value) error { +func (m *FeatureHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case groupmembership.FieldCreatedAt: + case featurehistory.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 featurehistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case featurehistory.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 featurehistory.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 groupmembership.FieldUpdatedAt: + case featurehistory.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 groupmembership.FieldCreatedBy: + case featurehistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case groupmembership.FieldUpdatedBy: + case featurehistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case groupmembership.FieldMappingID: + case featurehistory.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 featurehistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case featurehistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case groupmembership.FieldDeletedAt: - v, ok := value.(time.Time) + case featurehistory.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetTags(v) return nil - case groupmembership.FieldDeletedBy: + case featurehistory.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetOwnerID(v) return nil - case groupmembership.FieldRole: - v, ok := value.(enums.Role) + case featurehistory.FieldName: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetRole(v) + m.SetName(v) return nil - case groupmembership.FieldGroupID: + case featurehistory.FieldDisplayName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetGroupID(v) + m.SetDisplayName(v) return nil - case groupmembership.FieldUserID: + case featurehistory.FieldEnabled: + v, ok := value.(bool) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetEnabled(v) + return nil + case featurehistory.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetUserID(v) + m.SetDescription(v) + return nil + case featurehistory.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 GroupMembership field %s", name) + return fmt.Errorf("unknown FeatureHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *GroupMembershipMutation) AddedFields() []string { +func (m *FeatureHistoryMutation) 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 *GroupMembershipMutation) AddedField(name string) (ent.Value, bool) { +func (m *FeatureHistoryMutation) 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 *GroupMembershipMutation) AddField(name string, value ent.Value) error { +func (m *FeatureHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown GroupMembership numeric field %s", name) + return fmt.Errorf("unknown FeatureHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *GroupMembershipMutation) ClearedFields() []string { +func (m *FeatureHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(groupmembership.FieldCreatedAt) { - fields = append(fields, groupmembership.FieldCreatedAt) + if m.FieldCleared(featurehistory.FieldRef) { + fields = append(fields, featurehistory.FieldRef) } - if m.FieldCleared(groupmembership.FieldUpdatedAt) { - fields = append(fields, groupmembership.FieldUpdatedAt) + if m.FieldCleared(featurehistory.FieldCreatedAt) { + fields = append(fields, featurehistory.FieldCreatedAt) } - if m.FieldCleared(groupmembership.FieldCreatedBy) { - fields = append(fields, groupmembership.FieldCreatedBy) + if m.FieldCleared(featurehistory.FieldUpdatedAt) { + fields = append(fields, featurehistory.FieldUpdatedAt) } - if m.FieldCleared(groupmembership.FieldUpdatedBy) { - fields = append(fields, groupmembership.FieldUpdatedBy) + if m.FieldCleared(featurehistory.FieldCreatedBy) { + fields = append(fields, featurehistory.FieldCreatedBy) } - if m.FieldCleared(groupmembership.FieldDeletedAt) { - fields = append(fields, groupmembership.FieldDeletedAt) + if m.FieldCleared(featurehistory.FieldUpdatedBy) { + fields = append(fields, featurehistory.FieldUpdatedBy) } - if m.FieldCleared(groupmembership.FieldDeletedBy) { - fields = append(fields, groupmembership.FieldDeletedBy) + if m.FieldCleared(featurehistory.FieldDeletedAt) { + fields = append(fields, featurehistory.FieldDeletedAt) + } + if m.FieldCleared(featurehistory.FieldDeletedBy) { + fields = append(fields, featurehistory.FieldDeletedBy) + } + if m.FieldCleared(featurehistory.FieldTags) { + fields = append(fields, featurehistory.FieldTags) + } + if m.FieldCleared(featurehistory.FieldOwnerID) { + fields = append(fields, featurehistory.FieldOwnerID) + } + if m.FieldCleared(featurehistory.FieldDisplayName) { + fields = append(fields, featurehistory.FieldDisplayName) + } + if m.FieldCleared(featurehistory.FieldDescription) { + fields = append(fields, featurehistory.FieldDescription) + } + if m.FieldCleared(featurehistory.FieldMetadata) { + fields = append(fields, featurehistory.FieldMetadata) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *GroupMembershipMutation) FieldCleared(name string) bool { +func (m *FeatureHistoryMutation) 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 *GroupMembershipMutation) ClearField(name string) error { +func (m *FeatureHistoryMutation) ClearField(name string) error { switch name { - case groupmembership.FieldCreatedAt: + case featurehistory.FieldRef: + m.ClearRef() + return nil + case featurehistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case groupmembership.FieldUpdatedAt: + case featurehistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case groupmembership.FieldCreatedBy: + case featurehistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case groupmembership.FieldUpdatedBy: + case featurehistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case groupmembership.FieldDeletedAt: + case featurehistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case groupmembership.FieldDeletedBy: + case featurehistory.FieldDeletedBy: m.ClearDeletedBy() return nil + case featurehistory.FieldTags: + m.ClearTags() + return nil + case featurehistory.FieldOwnerID: + m.ClearOwnerID() + return nil + case featurehistory.FieldDisplayName: + m.ClearDisplayName() + return nil + case featurehistory.FieldDescription: + m.ClearDescription() + return nil + case featurehistory.FieldMetadata: + m.ClearMetadata() + return nil } - return fmt.Errorf("unknown GroupMembership nullable field %s", name) + return fmt.Errorf("unknown FeatureHistory 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 *GroupMembershipMutation) ResetField(name string) error { +func (m *FeatureHistoryMutation) ResetField(name string) error { switch name { - case groupmembership.FieldCreatedAt: + case featurehistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case featurehistory.FieldRef: + m.ResetRef() + return nil + case featurehistory.FieldOperation: + m.ResetOperation() + return nil + case featurehistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case groupmembership.FieldUpdatedAt: + case featurehistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case groupmembership.FieldCreatedBy: + case featurehistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case groupmembership.FieldUpdatedBy: + case featurehistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case groupmembership.FieldMappingID: - m.ResetMappingID() - return nil - case groupmembership.FieldDeletedAt: + case featurehistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case groupmembership.FieldDeletedBy: + case featurehistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case groupmembership.FieldRole: - m.ResetRole() + case featurehistory.FieldMappingID: + m.ResetMappingID() return nil - case groupmembership.FieldGroupID: - m.ResetGroupID() + case featurehistory.FieldTags: + m.ResetTags() return nil - case groupmembership.FieldUserID: - m.ResetUserID() + case featurehistory.FieldOwnerID: + m.ResetOwnerID() + return nil + case featurehistory.FieldName: + m.ResetName() + return nil + case featurehistory.FieldDisplayName: + m.ResetDisplayName() + return nil + case featurehistory.FieldEnabled: + m.ResetEnabled() + return nil + case featurehistory.FieldDescription: + m.ResetDescription() + return nil + case featurehistory.FieldMetadata: + m.ResetMetadata() return nil } - return fmt.Errorf("unknown GroupMembership field %s", name) + return fmt.Errorf("unknown FeatureHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *GroupMembershipMutation) AddedEdges() []string { - edges := make([]string, 0, 3) - if m.group != nil { - edges = append(edges, groupmembership.EdgeGroup) - } - if m.user != nil { - edges = append(edges, groupmembership.EdgeUser) - } - if m.events != nil { - edges = append(edges, groupmembership.EdgeEvents) - } +func (m *FeatureHistoryMutation) 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 *GroupMembershipMutation) AddedIDs(name string) []ent.Value { - switch name { - case groupmembership.EdgeGroup: - if id := m.group; id != nil { - return []ent.Value{*id} - } - case groupmembership.EdgeUser: - if id := m.user; id != nil { - return []ent.Value{*id} - } - case groupmembership.EdgeEvents: - ids := make([]ent.Value, 0, len(m.events)) - for id := range m.events { - ids = append(ids, id) - } - return ids - } +func (m *FeatureHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *GroupMembershipMutation) RemovedEdges() []string { - edges := make([]string, 0, 3) - if m.removedevents != nil { - edges = append(edges, groupmembership.EdgeEvents) - } +func (m *FeatureHistoryMutation) 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 *GroupMembershipMutation) RemovedIDs(name string) []ent.Value { - switch name { - case groupmembership.EdgeEvents: - ids := make([]ent.Value, 0, len(m.removedevents)) - for id := range m.removedevents { - ids = append(ids, id) - } - return ids - } +func (m *FeatureHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *GroupMembershipMutation) ClearedEdges() []string { - edges := make([]string, 0, 3) - if m.clearedgroup { - edges = append(edges, groupmembership.EdgeGroup) - } - if m.cleareduser { - edges = append(edges, groupmembership.EdgeUser) - } - if m.clearedevents { - edges = append(edges, groupmembership.EdgeEvents) - } +func (m *FeatureHistoryMutation) 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 *GroupMembershipMutation) EdgeCleared(name string) bool { - switch name { - case groupmembership.EdgeGroup: - return m.clearedgroup - case groupmembership.EdgeUser: - return m.cleareduser - case groupmembership.EdgeEvents: - return m.clearedevents - } +func (m *FeatureHistoryMutation) 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 *GroupMembershipMutation) ClearEdge(name string) error { - switch name { - case groupmembership.EdgeGroup: - m.ClearGroup() - return nil - case groupmembership.EdgeUser: - m.ClearUser() - return nil - } - return fmt.Errorf("unknown GroupMembership unique edge %s", name) +func (m *FeatureHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown FeatureHistory 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 *GroupMembershipMutation) ResetEdge(name string) error { - switch name { - case groupmembership.EdgeGroup: - m.ResetGroup() - return nil - case groupmembership.EdgeUser: - m.ResetUser() - return nil - case groupmembership.EdgeEvents: - m.ResetEvents() - return nil - } - return fmt.Errorf("unknown GroupMembership edge %s", name) +func (m *FeatureHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown FeatureHistory edge %s", name) } -// GroupMembershipHistoryMutation represents an operation that mutates the GroupMembershipHistory nodes in the graph. -type GroupMembershipHistoryMutation struct { +// FileMutation represents an operation that mutates the File nodes in the graph. +type FileMutation 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 - mapping_id *string - deleted_at *time.Time - deleted_by *string - role *enums.Role - group_id *string - user_id *string - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*GroupMembershipHistory, error) - predicates []predicate.GroupMembershipHistory + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + provided_file_name *string + provided_file_extension *string + provided_file_size *int64 + addprovided_file_size *int64 + persisted_file_size *int64 + addpersisted_file_size *int64 + detected_mime_type *string + md5_hash *string + detected_content_type *string + store_key *string + category_type *string + uri *string + storage_scheme *string + storage_volume *string + storage_path *string + file_contents *[]byte + clearedFields map[string]struct{} + user map[string]struct{} + removeduser map[string]struct{} + cleareduser bool + organization map[string]struct{} + removedorganization map[string]struct{} + clearedorganization bool + group map[string]struct{} + removedgroup map[string]struct{} + clearedgroup bool + contact map[string]struct{} + removedcontact map[string]struct{} + clearedcontact bool + entity map[string]struct{} + removedentity map[string]struct{} + clearedentity bool + usersetting map[string]struct{} + removedusersetting map[string]struct{} + clearedusersetting bool + organizationsetting map[string]struct{} + removedorganizationsetting map[string]struct{} + clearedorganizationsetting bool + template map[string]struct{} + removedtemplate map[string]struct{} + clearedtemplate bool + documentdata map[string]struct{} + removeddocumentdata map[string]struct{} + cleareddocumentdata bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + done bool + oldValue func(context.Context) (*File, error) + predicates []predicate.File } -var _ ent.Mutation = (*GroupMembershipHistoryMutation)(nil) +var _ ent.Mutation = (*FileMutation)(nil) -// groupmembershiphistoryOption allows management of the mutation configuration using functional options. -type groupmembershiphistoryOption func(*GroupMembershipHistoryMutation) +// fileOption allows management of the mutation configuration using functional options. +type fileOption func(*FileMutation) -// newGroupMembershipHistoryMutation creates new mutation for the GroupMembershipHistory entity. -func newGroupMembershipHistoryMutation(c config, op Op, opts ...groupmembershiphistoryOption) *GroupMembershipHistoryMutation { - m := &GroupMembershipHistoryMutation{ +// newFileMutation creates new mutation for the File entity. +func newFileMutation(c config, op Op, opts ...fileOption) *FileMutation { + m := &FileMutation{ config: c, op: op, - typ: TypeGroupMembershipHistory, + typ: TypeFile, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -38810,20 +41223,20 @@ func newGroupMembershipHistoryMutation(c config, op Op, opts ...groupmembershiph return m } -// withGroupMembershipHistoryID sets the ID field of the mutation. -func withGroupMembershipHistoryID(id string) groupmembershiphistoryOption { - return func(m *GroupMembershipHistoryMutation) { +// withFileID sets the ID field of the mutation. +func withFileID(id string) fileOption { + return func(m *FileMutation) { var ( err error once sync.Once - value *GroupMembershipHistory + value *File ) - m.oldValue = func(ctx context.Context) (*GroupMembershipHistory, error) { + m.oldValue = func(ctx context.Context) (*File, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().GroupMembershipHistory.Get(ctx, id) + value, err = m.Client().File.Get(ctx, id) } }) return value, err @@ -38832,10 +41245,10 @@ func withGroupMembershipHistoryID(id string) groupmembershiphistoryOption { } } -// withGroupMembershipHistory sets the old GroupMembershipHistory of the mutation. -func withGroupMembershipHistory(node *GroupMembershipHistory) groupmembershiphistoryOption { - return func(m *GroupMembershipHistoryMutation) { - m.oldValue = func(context.Context) (*GroupMembershipHistory, error) { +// withFile sets the old File of the mutation. +func withFile(node *File) fileOption { + return func(m *FileMutation) { + m.oldValue = func(context.Context) (*File, error) { return node, nil } m.id = &node.ID @@ -38844,7 +41257,7 @@ func withGroupMembershipHistory(node *GroupMembershipHistory) groupmembershiphis // 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 GroupMembershipHistoryMutation) Client() *Client { +func (m FileMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -38852,7 +41265,7 @@ func (m GroupMembershipHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m GroupMembershipHistoryMutation) Tx() (*Tx, error) { +func (m FileMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -38862,14 +41275,14 @@ func (m GroupMembershipHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of GroupMembershipHistory entities. -func (m *GroupMembershipHistoryMutation) SetID(id string) { +// operation is only accepted on creation of File entities. +func (m *FileMutation) 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 *GroupMembershipHistoryMutation) ID() (id string, exists bool) { +func (m *FileMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -38880,7 +41293,7 @@ func (m *GroupMembershipHistoryMutation) ID() (id string, exists bool) { // 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 *GroupMembershipHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *FileMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -38889,140 +41302,19 @@ func (m *GroupMembershipHistoryMutation) IDs(ctx context.Context) ([]string, err } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().GroupMembershipHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().File.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 *GroupMembershipHistoryMutation) SetHistoryTime(t time.Time) { - m.history_time = &t -} - -// HistoryTime returns the value of the "history_time" field in the mutation. -func (m *GroupMembershipHistoryMutation) 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 GroupMembershipHistory entity. -// If the GroupMembershipHistory 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 *GroupMembershipHistoryMutation) 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 *GroupMembershipHistoryMutation) ResetHistoryTime() { - m.history_time = nil -} - -// SetRef sets the "ref" field. -func (m *GroupMembershipHistoryMutation) SetRef(s string) { - m.ref = &s -} - -// Ref returns the value of the "ref" field in the mutation. -func (m *GroupMembershipHistoryMutation) 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 GroupMembershipHistory entity. -// If the GroupMembershipHistory 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 *GroupMembershipHistoryMutation) 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 *GroupMembershipHistoryMutation) ClearRef() { - m.ref = nil - m.clearedFields[groupmembershiphistory.FieldRef] = struct{}{} -} - -// RefCleared returns if the "ref" field was cleared in this mutation. -func (m *GroupMembershipHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[groupmembershiphistory.FieldRef] - return ok -} - -// ResetRef resets all changes to the "ref" field. -func (m *GroupMembershipHistoryMutation) ResetRef() { - m.ref = nil - delete(m.clearedFields, groupmembershiphistory.FieldRef) -} - -// SetOperation sets the "operation" field. -func (m *GroupMembershipHistoryMutation) SetOperation(ht history.OpType) { - m.operation = &ht -} - -// Operation returns the value of the "operation" field in the mutation. -func (m *GroupMembershipHistoryMutation) 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 GroupMembershipHistory entity. -// If the GroupMembershipHistory 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 *GroupMembershipHistoryMutation) 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 *GroupMembershipHistoryMutation) ResetOperation() { - m.operation = nil -} - // SetCreatedAt sets the "created_at" field. -func (m *GroupMembershipHistoryMutation) SetCreatedAt(t time.Time) { +func (m *FileMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *GroupMembershipHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *FileMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -39030,10 +41322,10 @@ func (m *GroupMembershipHistoryMutation) CreatedAt() (r time.Time, exists bool) return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the GroupMembershipHistory entity. -// If the GroupMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the File entity. +// If the File 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 *GroupMembershipHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *FileMutation) 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") } @@ -39048,30 +41340,30 @@ func (m *GroupMembershipHistoryMutation) OldCreatedAt(ctx context.Context) (v ti } // ClearCreatedAt clears the value of the "created_at" field. -func (m *GroupMembershipHistoryMutation) ClearCreatedAt() { +func (m *FileMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[groupmembershiphistory.FieldCreatedAt] = struct{}{} + m.clearedFields[file.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *GroupMembershipHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[groupmembershiphistory.FieldCreatedAt] +func (m *FileMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[file.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *GroupMembershipHistoryMutation) ResetCreatedAt() { +func (m *FileMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, groupmembershiphistory.FieldCreatedAt) + delete(m.clearedFields, file.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *GroupMembershipHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *FileMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *GroupMembershipHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *FileMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -39079,10 +41371,10 @@ func (m *GroupMembershipHistoryMutation) UpdatedAt() (r time.Time, exists bool) return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the GroupMembershipHistory entity. -// If the GroupMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the File entity. +// If the File 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 *GroupMembershipHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *FileMutation) 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") } @@ -39097,30 +41389,30 @@ func (m *GroupMembershipHistoryMutation) OldUpdatedAt(ctx context.Context) (v ti } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *GroupMembershipHistoryMutation) ClearUpdatedAt() { +func (m *FileMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[groupmembershiphistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[file.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *GroupMembershipHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[groupmembershiphistory.FieldUpdatedAt] +func (m *FileMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[file.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *GroupMembershipHistoryMutation) ResetUpdatedAt() { +func (m *FileMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, groupmembershiphistory.FieldUpdatedAt) + delete(m.clearedFields, file.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *GroupMembershipHistoryMutation) SetCreatedBy(s string) { +func (m *FileMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *GroupMembershipHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *FileMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -39128,10 +41420,10 @@ func (m *GroupMembershipHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the GroupMembershipHistory entity. -// If the GroupMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the File entity. +// If the File 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 *GroupMembershipHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *FileMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -39146,30 +41438,30 @@ func (m *GroupMembershipHistoryMutation) OldCreatedBy(ctx context.Context) (v st } // ClearCreatedBy clears the value of the "created_by" field. -func (m *GroupMembershipHistoryMutation) ClearCreatedBy() { +func (m *FileMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[groupmembershiphistory.FieldCreatedBy] = struct{}{} + m.clearedFields[file.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *GroupMembershipHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[groupmembershiphistory.FieldCreatedBy] +func (m *FileMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[file.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *GroupMembershipHistoryMutation) ResetCreatedBy() { +func (m *FileMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, groupmembershiphistory.FieldCreatedBy) + delete(m.clearedFields, file.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *GroupMembershipHistoryMutation) SetUpdatedBy(s string) { +func (m *FileMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *GroupMembershipHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *FileMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -39177,10 +41469,10 @@ func (m *GroupMembershipHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the GroupMembershipHistory entity. -// If the GroupMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the File entity. +// If the File 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 *GroupMembershipHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *FileMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -39195,66 +41487,30 @@ func (m *GroupMembershipHistoryMutation) OldUpdatedBy(ctx context.Context) (v st } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *GroupMembershipHistoryMutation) ClearUpdatedBy() { +func (m *FileMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[groupmembershiphistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[file.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *GroupMembershipHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[groupmembershiphistory.FieldUpdatedBy] +func (m *FileMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[file.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *GroupMembershipHistoryMutation) ResetUpdatedBy() { +func (m *FileMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, groupmembershiphistory.FieldUpdatedBy) -} - -// SetMappingID sets the "mapping_id" field. -func (m *GroupMembershipHistoryMutation) SetMappingID(s string) { - m.mapping_id = &s -} - -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *GroupMembershipHistoryMutation) MappingID() (r string, exists bool) { - v := m.mapping_id - if v == nil { - return - } - return *v, true -} - -// OldMappingID returns the old "mapping_id" field's value of the GroupMembershipHistory entity. -// If the GroupMembershipHistory 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 *GroupMembershipHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) - } - return oldValue.MappingID, nil -} - -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *GroupMembershipHistoryMutation) ResetMappingID() { - m.mapping_id = nil + delete(m.clearedFields, file.FieldUpdatedBy) } // SetDeletedAt sets the "deleted_at" field. -func (m *GroupMembershipHistoryMutation) SetDeletedAt(t time.Time) { +func (m *FileMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *GroupMembershipHistoryMutation) DeletedAt() (r time.Time, exists bool) { +func (m *FileMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -39262,10 +41518,10 @@ func (m *GroupMembershipHistoryMutation) DeletedAt() (r time.Time, exists bool) return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the GroupMembershipHistory entity. -// If the GroupMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the File entity. +// If the File 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 *GroupMembershipHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *FileMutation) 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") } @@ -39280,30 +41536,30 @@ func (m *GroupMembershipHistoryMutation) OldDeletedAt(ctx context.Context) (v ti } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *GroupMembershipHistoryMutation) ClearDeletedAt() { +func (m *FileMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[groupmembershiphistory.FieldDeletedAt] = struct{}{} + m.clearedFields[file.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *GroupMembershipHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[groupmembershiphistory.FieldDeletedAt] +func (m *FileMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[file.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *GroupMembershipHistoryMutation) ResetDeletedAt() { +func (m *FileMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, groupmembershiphistory.FieldDeletedAt) + delete(m.clearedFields, file.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *GroupMembershipHistoryMutation) SetDeletedBy(s string) { +func (m *FileMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *GroupMembershipHistoryMutation) DeletedBy() (r string, exists bool) { +func (m *FileMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -39311,10 +41567,10 @@ func (m *GroupMembershipHistoryMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the GroupMembershipHistory entity. -// If the GroupMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the File entity. +// If the File 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 *GroupMembershipHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *FileMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -39329,1439 +41585,1506 @@ func (m *GroupMembershipHistoryMutation) OldDeletedBy(ctx context.Context) (v st } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *GroupMembershipHistoryMutation) ClearDeletedBy() { +func (m *FileMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[groupmembershiphistory.FieldDeletedBy] = struct{}{} + m.clearedFields[file.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *GroupMembershipHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[groupmembershiphistory.FieldDeletedBy] +func (m *FileMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[file.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *GroupMembershipHistoryMutation) ResetDeletedBy() { +func (m *FileMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, groupmembershiphistory.FieldDeletedBy) + delete(m.clearedFields, file.FieldDeletedBy) } -// SetRole sets the "role" field. -func (m *GroupMembershipHistoryMutation) SetRole(e enums.Role) { - m.role = &e +// SetMappingID sets the "mapping_id" field. +func (m *FileMutation) SetMappingID(s string) { + m.mapping_id = &s } -// Role returns the value of the "role" field in the mutation. -func (m *GroupMembershipHistoryMutation) Role() (r enums.Role, exists bool) { - v := m.role +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *FileMutation) MappingID() (r string, exists bool) { + v := m.mapping_id if v == nil { return } return *v, true } -// OldRole returns the old "role" field's value of the GroupMembershipHistory entity. -// If the GroupMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the File entity. +// If the File 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 *GroupMembershipHistoryMutation) OldRole(ctx context.Context) (v enums.Role, err error) { +func (m *FileMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldRole is only allowed on UpdateOne operations") + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldRole requires an ID field in the mutation") + return v, errors.New("OldMappingID requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldRole: %w", err) + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) } - return oldValue.Role, nil + return oldValue.MappingID, nil } -// ResetRole resets all changes to the "role" field. -func (m *GroupMembershipHistoryMutation) ResetRole() { - m.role = nil +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *FileMutation) ResetMappingID() { + m.mapping_id = nil } -// SetGroupID sets the "group_id" field. -func (m *GroupMembershipHistoryMutation) SetGroupID(s string) { - m.group_id = &s +// SetTags sets the "tags" field. +func (m *FileMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// GroupID returns the value of the "group_id" field in the mutation. -func (m *GroupMembershipHistoryMutation) GroupID() (r string, exists bool) { - v := m.group_id +// Tags returns the value of the "tags" field in the mutation. +func (m *FileMutation) Tags() (r []string, exists bool) { + v := m.tags if v == nil { return } return *v, true } -// OldGroupID returns the old "group_id" field's value of the GroupMembershipHistory entity. -// If the GroupMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the File entity. +// If the File 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 *GroupMembershipHistoryMutation) OldGroupID(ctx context.Context) (v string, err error) { +func (m *FileMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldGroupID is only allowed on UpdateOne operations") + return v, errors.New("OldTags 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") + 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 OldGroupID: %w", err) + return v, fmt.Errorf("querying old value for OldTags: %w", err) } - return oldValue.GroupID, nil + return oldValue.Tags, nil } -// ResetGroupID resets all changes to the "group_id" field. -func (m *GroupMembershipHistoryMutation) ResetGroupID() { - m.group_id = nil +// AppendTags adds s to the "tags" field. +func (m *FileMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) } -// SetUserID sets the "user_id" field. -func (m *GroupMembershipHistoryMutation) SetUserID(s string) { - m.user_id = &s +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *FileMutation) AppendedTags() ([]string, bool) { + if len(m.appendtags) == 0 { + return nil, false + } + return m.appendtags, true } -// UserID returns the value of the "user_id" field in the mutation. -func (m *GroupMembershipHistoryMutation) UserID() (r string, exists bool) { - v := m.user_id +// ClearTags clears the value of the "tags" field. +func (m *FileMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[file.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *FileMutation) TagsCleared() bool { + _, ok := m.clearedFields[file.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *FileMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, file.FieldTags) +} + +// SetProvidedFileName sets the "provided_file_name" field. +func (m *FileMutation) SetProvidedFileName(s string) { + m.provided_file_name = &s +} + +// ProvidedFileName returns the value of the "provided_file_name" field in the mutation. +func (m *FileMutation) ProvidedFileName() (r string, exists bool) { + v := m.provided_file_name if v == nil { return } return *v, true } -// OldUserID returns the old "user_id" field's value of the GroupMembershipHistory entity. -// If the GroupMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldProvidedFileName returns the old "provided_file_name" field's value of the File entity. +// If the File 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 *GroupMembershipHistoryMutation) OldUserID(ctx context.Context) (v string, err error) { +func (m *FileMutation) OldProvidedFileName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUserID is only allowed on UpdateOne operations") + return v, errors.New("OldProvidedFileName 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") + return v, errors.New("OldProvidedFileName 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 v, fmt.Errorf("querying old value for OldProvidedFileName: %w", err) } - return oldValue.UserID, nil + return oldValue.ProvidedFileName, nil } -// ResetUserID resets all changes to the "user_id" field. -func (m *GroupMembershipHistoryMutation) ResetUserID() { - m.user_id = nil +// ResetProvidedFileName resets all changes to the "provided_file_name" field. +func (m *FileMutation) ResetProvidedFileName() { + m.provided_file_name = nil } -// Where appends a list predicates to the GroupMembershipHistoryMutation builder. -func (m *GroupMembershipHistoryMutation) Where(ps ...predicate.GroupMembershipHistory) { - m.predicates = append(m.predicates, ps...) +// SetProvidedFileExtension sets the "provided_file_extension" field. +func (m *FileMutation) SetProvidedFileExtension(s string) { + m.provided_file_extension = &s } -// WhereP appends storage-level predicates to the GroupMembershipHistoryMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *GroupMembershipHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.GroupMembershipHistory, len(ps)) - for i := range ps { - p[i] = ps[i] +// ProvidedFileExtension returns the value of the "provided_file_extension" field in the mutation. +func (m *FileMutation) ProvidedFileExtension() (r string, exists bool) { + v := m.provided_file_extension + if v == nil { + return } - m.Where(p...) + return *v, true } -// Op returns the operation name. -func (m *GroupMembershipHistoryMutation) Op() Op { - return m.op +// OldProvidedFileExtension returns the old "provided_file_extension" field's value of the File entity. +// If the File 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 *FileMutation) OldProvidedFileExtension(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldProvidedFileExtension is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldProvidedFileExtension requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldProvidedFileExtension: %w", err) + } + return oldValue.ProvidedFileExtension, nil } -// SetOp allows setting the mutation operation. -func (m *GroupMembershipHistoryMutation) SetOp(op Op) { - m.op = op +// ResetProvidedFileExtension resets all changes to the "provided_file_extension" field. +func (m *FileMutation) ResetProvidedFileExtension() { + m.provided_file_extension = nil } -// Type returns the node type of this mutation (GroupMembershipHistory). -func (m *GroupMembershipHistoryMutation) Type() string { - return m.typ +// SetProvidedFileSize sets the "provided_file_size" field. +func (m *FileMutation) SetProvidedFileSize(i int64) { + m.provided_file_size = &i + m.addprovided_file_size = nil } -// 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 *GroupMembershipHistoryMutation) Fields() []string { - fields := make([]string, 0, 13) - if m.history_time != nil { - fields = append(fields, groupmembershiphistory.FieldHistoryTime) +// ProvidedFileSize returns the value of the "provided_file_size" field in the mutation. +func (m *FileMutation) ProvidedFileSize() (r int64, exists bool) { + v := m.provided_file_size + if v == nil { + return } - if m.ref != nil { - fields = append(fields, groupmembershiphistory.FieldRef) + return *v, true +} + +// OldProvidedFileSize returns the old "provided_file_size" field's value of the File entity. +// If the File 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 *FileMutation) OldProvidedFileSize(ctx context.Context) (v int64, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldProvidedFileSize is only allowed on UpdateOne operations") } - if m.operation != nil { - fields = append(fields, groupmembershiphistory.FieldOperation) - } - if m.created_at != nil { - fields = append(fields, groupmembershiphistory.FieldCreatedAt) - } - if m.updated_at != nil { - fields = append(fields, groupmembershiphistory.FieldUpdatedAt) - } - if m.created_by != nil { - fields = append(fields, groupmembershiphistory.FieldCreatedBy) - } - if m.updated_by != nil { - fields = append(fields, groupmembershiphistory.FieldUpdatedBy) - } - if m.mapping_id != nil { - fields = append(fields, groupmembershiphistory.FieldMappingID) - } - if m.deleted_at != nil { - fields = append(fields, groupmembershiphistory.FieldDeletedAt) - } - if m.deleted_by != nil { - fields = append(fields, groupmembershiphistory.FieldDeletedBy) - } - if m.role != nil { - fields = append(fields, groupmembershiphistory.FieldRole) - } - if m.group_id != nil { - fields = append(fields, groupmembershiphistory.FieldGroupID) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldProvidedFileSize requires an ID field in the mutation") } - if m.user_id != nil { - fields = append(fields, groupmembershiphistory.FieldUserID) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldProvidedFileSize: %w", err) } - return fields + return oldValue.ProvidedFileSize, nil } -// 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 *GroupMembershipHistoryMutation) Field(name string) (ent.Value, bool) { - switch name { - case groupmembershiphistory.FieldHistoryTime: - return m.HistoryTime() - case groupmembershiphistory.FieldRef: - return m.Ref() - case groupmembershiphistory.FieldOperation: - return m.Operation() - case groupmembershiphistory.FieldCreatedAt: - return m.CreatedAt() - case groupmembershiphistory.FieldUpdatedAt: - return m.UpdatedAt() - case groupmembershiphistory.FieldCreatedBy: - return m.CreatedBy() - case groupmembershiphistory.FieldUpdatedBy: - return m.UpdatedBy() - case groupmembershiphistory.FieldMappingID: - return m.MappingID() - case groupmembershiphistory.FieldDeletedAt: - return m.DeletedAt() - case groupmembershiphistory.FieldDeletedBy: - return m.DeletedBy() - case groupmembershiphistory.FieldRole: - return m.Role() - case groupmembershiphistory.FieldGroupID: - return m.GroupID() - case groupmembershiphistory.FieldUserID: - return m.UserID() +// AddProvidedFileSize adds i to the "provided_file_size" field. +func (m *FileMutation) AddProvidedFileSize(i int64) { + if m.addprovided_file_size != nil { + *m.addprovided_file_size += i + } else { + m.addprovided_file_size = &i } - 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 *GroupMembershipHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { - switch name { - case groupmembershiphistory.FieldHistoryTime: - return m.OldHistoryTime(ctx) - case groupmembershiphistory.FieldRef: - return m.OldRef(ctx) - case groupmembershiphistory.FieldOperation: - return m.OldOperation(ctx) - case groupmembershiphistory.FieldCreatedAt: - return m.OldCreatedAt(ctx) - case groupmembershiphistory.FieldUpdatedAt: - return m.OldUpdatedAt(ctx) - case groupmembershiphistory.FieldCreatedBy: - return m.OldCreatedBy(ctx) - case groupmembershiphistory.FieldUpdatedBy: - return m.OldUpdatedBy(ctx) - case groupmembershiphistory.FieldMappingID: - return m.OldMappingID(ctx) - case groupmembershiphistory.FieldDeletedAt: - return m.OldDeletedAt(ctx) - case groupmembershiphistory.FieldDeletedBy: - return m.OldDeletedBy(ctx) - case groupmembershiphistory.FieldRole: - return m.OldRole(ctx) - case groupmembershiphistory.FieldGroupID: - return m.OldGroupID(ctx) - case groupmembershiphistory.FieldUserID: - return m.OldUserID(ctx) +// AddedProvidedFileSize returns the value that was added to the "provided_file_size" field in this mutation. +func (m *FileMutation) AddedProvidedFileSize() (r int64, exists bool) { + v := m.addprovided_file_size + if v == nil { + return } - return nil, fmt.Errorf("unknown GroupMembershipHistory field %s", name) + return *v, true } -// 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 *GroupMembershipHistoryMutation) SetField(name string, value ent.Value) error { - switch name { - case groupmembershiphistory.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 groupmembershiphistory.FieldRef: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetRef(v) - return nil - case groupmembershiphistory.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 groupmembershiphistory.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 groupmembershiphistory.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 groupmembershiphistory.FieldCreatedBy: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetCreatedBy(v) - return nil - case groupmembershiphistory.FieldUpdatedBy: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetUpdatedBy(v) - return nil - case groupmembershiphistory.FieldMappingID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetMappingID(v) - return nil - case groupmembershiphistory.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 groupmembershiphistory.FieldDeletedBy: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetDeletedBy(v) - return nil - case groupmembershiphistory.FieldRole: - v, ok := value.(enums.Role) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetRole(v) - return nil - case groupmembershiphistory.FieldGroupID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetGroupID(v) - return nil - case groupmembershiphistory.FieldUserID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetUserID(v) - return nil - } - return fmt.Errorf("unknown GroupMembershipHistory field %s", name) +// ClearProvidedFileSize clears the value of the "provided_file_size" field. +func (m *FileMutation) ClearProvidedFileSize() { + m.provided_file_size = nil + m.addprovided_file_size = nil + m.clearedFields[file.FieldProvidedFileSize] = struct{}{} } -// AddedFields returns all numeric fields that were incremented/decremented during -// this mutation. -func (m *GroupMembershipHistoryMutation) AddedFields() []string { - return nil +// ProvidedFileSizeCleared returns if the "provided_file_size" field was cleared in this mutation. +func (m *FileMutation) ProvidedFileSizeCleared() bool { + _, ok := m.clearedFields[file.FieldProvidedFileSize] + return ok } -// 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 *GroupMembershipHistoryMutation) AddedField(name string) (ent.Value, bool) { - return nil, false +// ResetProvidedFileSize resets all changes to the "provided_file_size" field. +func (m *FileMutation) ResetProvidedFileSize() { + m.provided_file_size = nil + m.addprovided_file_size = nil + delete(m.clearedFields, file.FieldProvidedFileSize) } -// 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 *GroupMembershipHistoryMutation) AddField(name string, value ent.Value) error { - switch name { - } - return fmt.Errorf("unknown GroupMembershipHistory numeric field %s", name) +// SetPersistedFileSize sets the "persisted_file_size" field. +func (m *FileMutation) SetPersistedFileSize(i int64) { + m.persisted_file_size = &i + m.addpersisted_file_size = nil } -// ClearedFields returns all nullable fields that were cleared during this -// mutation. -func (m *GroupMembershipHistoryMutation) ClearedFields() []string { - var fields []string - if m.FieldCleared(groupmembershiphistory.FieldRef) { - fields = append(fields, groupmembershiphistory.FieldRef) - } - if m.FieldCleared(groupmembershiphistory.FieldCreatedAt) { - fields = append(fields, groupmembershiphistory.FieldCreatedAt) - } - if m.FieldCleared(groupmembershiphistory.FieldUpdatedAt) { - fields = append(fields, groupmembershiphistory.FieldUpdatedAt) - } - if m.FieldCleared(groupmembershiphistory.FieldCreatedBy) { - fields = append(fields, groupmembershiphistory.FieldCreatedBy) +// PersistedFileSize returns the value of the "persisted_file_size" field in the mutation. +func (m *FileMutation) PersistedFileSize() (r int64, exists bool) { + v := m.persisted_file_size + if v == nil { + return } - if m.FieldCleared(groupmembershiphistory.FieldUpdatedBy) { - fields = append(fields, groupmembershiphistory.FieldUpdatedBy) + return *v, true +} + +// OldPersistedFileSize returns the old "persisted_file_size" field's value of the File entity. +// If the File 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 *FileMutation) OldPersistedFileSize(ctx context.Context) (v int64, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldPersistedFileSize is only allowed on UpdateOne operations") } - if m.FieldCleared(groupmembershiphistory.FieldDeletedAt) { - fields = append(fields, groupmembershiphistory.FieldDeletedAt) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldPersistedFileSize requires an ID field in the mutation") } - if m.FieldCleared(groupmembershiphistory.FieldDeletedBy) { - fields = append(fields, groupmembershiphistory.FieldDeletedBy) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldPersistedFileSize: %w", err) } - return fields -} - -// FieldCleared returns a boolean indicating if a field with the given name was -// cleared in this mutation. -func (m *GroupMembershipHistoryMutation) FieldCleared(name string) bool { - _, ok := m.clearedFields[name] - return ok + return oldValue.PersistedFileSize, nil } -// 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 *GroupMembershipHistoryMutation) ClearField(name string) error { - switch name { - case groupmembershiphistory.FieldRef: - m.ClearRef() - return nil - case groupmembershiphistory.FieldCreatedAt: - m.ClearCreatedAt() - return nil - case groupmembershiphistory.FieldUpdatedAt: - m.ClearUpdatedAt() - return nil - case groupmembershiphistory.FieldCreatedBy: - m.ClearCreatedBy() - return nil - case groupmembershiphistory.FieldUpdatedBy: - m.ClearUpdatedBy() - return nil - case groupmembershiphistory.FieldDeletedAt: - m.ClearDeletedAt() - return nil - case groupmembershiphistory.FieldDeletedBy: - m.ClearDeletedBy() - return nil +// AddPersistedFileSize adds i to the "persisted_file_size" field. +func (m *FileMutation) AddPersistedFileSize(i int64) { + if m.addpersisted_file_size != nil { + *m.addpersisted_file_size += i + } else { + m.addpersisted_file_size = &i } - return fmt.Errorf("unknown GroupMembershipHistory 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 *GroupMembershipHistoryMutation) ResetField(name string) error { - switch name { - case groupmembershiphistory.FieldHistoryTime: - m.ResetHistoryTime() - return nil - case groupmembershiphistory.FieldRef: - m.ResetRef() - return nil - case groupmembershiphistory.FieldOperation: - m.ResetOperation() - return nil - case groupmembershiphistory.FieldCreatedAt: - m.ResetCreatedAt() - return nil - case groupmembershiphistory.FieldUpdatedAt: - m.ResetUpdatedAt() - return nil - case groupmembershiphistory.FieldCreatedBy: - m.ResetCreatedBy() - return nil - case groupmembershiphistory.FieldUpdatedBy: - m.ResetUpdatedBy() - return nil - case groupmembershiphistory.FieldMappingID: - m.ResetMappingID() - return nil - case groupmembershiphistory.FieldDeletedAt: - m.ResetDeletedAt() - return nil - case groupmembershiphistory.FieldDeletedBy: - m.ResetDeletedBy() - return nil - case groupmembershiphistory.FieldRole: - m.ResetRole() - return nil - case groupmembershiphistory.FieldGroupID: - m.ResetGroupID() - return nil - case groupmembershiphistory.FieldUserID: - m.ResetUserID() - return nil +// AddedPersistedFileSize returns the value that was added to the "persisted_file_size" field in this mutation. +func (m *FileMutation) AddedPersistedFileSize() (r int64, exists bool) { + v := m.addpersisted_file_size + if v == nil { + return } - return fmt.Errorf("unknown GroupMembershipHistory field %s", name) + return *v, true } -// AddedEdges returns all edge names that were set/added in this mutation. -func (m *GroupMembershipHistoryMutation) AddedEdges() []string { - edges := make([]string, 0, 0) - return edges +// ClearPersistedFileSize clears the value of the "persisted_file_size" field. +func (m *FileMutation) ClearPersistedFileSize() { + m.persisted_file_size = nil + m.addpersisted_file_size = nil + m.clearedFields[file.FieldPersistedFileSize] = struct{}{} } -// AddedIDs returns all IDs (to other nodes) that were added for the given edge -// name in this mutation. -func (m *GroupMembershipHistoryMutation) AddedIDs(name string) []ent.Value { - return nil +// PersistedFileSizeCleared returns if the "persisted_file_size" field was cleared in this mutation. +func (m *FileMutation) PersistedFileSizeCleared() bool { + _, ok := m.clearedFields[file.FieldPersistedFileSize] + return ok } -// RemovedEdges returns all edge names that were removed in this mutation. -func (m *GroupMembershipHistoryMutation) RemovedEdges() []string { - edges := make([]string, 0, 0) - return edges +// ResetPersistedFileSize resets all changes to the "persisted_file_size" field. +func (m *FileMutation) ResetPersistedFileSize() { + m.persisted_file_size = nil + m.addpersisted_file_size = nil + delete(m.clearedFields, file.FieldPersistedFileSize) } -// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with -// the given name in this mutation. -func (m *GroupMembershipHistoryMutation) RemovedIDs(name string) []ent.Value { - return nil +// SetDetectedMimeType sets the "detected_mime_type" field. +func (m *FileMutation) SetDetectedMimeType(s string) { + m.detected_mime_type = &s } -// ClearedEdges returns all edge names that were cleared in this mutation. -func (m *GroupMembershipHistoryMutation) ClearedEdges() []string { - edges := make([]string, 0, 0) - return edges +// DetectedMimeType returns the value of the "detected_mime_type" field in the mutation. +func (m *FileMutation) DetectedMimeType() (r string, exists bool) { + v := m.detected_mime_type + if v == nil { + return + } + return *v, true } -// EdgeCleared returns a boolean which indicates if the edge with the given name -// was cleared in this mutation. -func (m *GroupMembershipHistoryMutation) EdgeCleared(name string) bool { - return false +// OldDetectedMimeType returns the old "detected_mime_type" field's value of the File entity. +// If the File 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 *FileMutation) OldDetectedMimeType(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetectedMimeType is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetectedMimeType requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetectedMimeType: %w", err) + } + return oldValue.DetectedMimeType, nil } -// 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 *GroupMembershipHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown GroupMembershipHistory unique edge %s", name) +// ClearDetectedMimeType clears the value of the "detected_mime_type" field. +func (m *FileMutation) ClearDetectedMimeType() { + m.detected_mime_type = nil + m.clearedFields[file.FieldDetectedMimeType] = struct{}{} } -// 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 *GroupMembershipHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown GroupMembershipHistory edge %s", name) +// DetectedMimeTypeCleared returns if the "detected_mime_type" field was cleared in this mutation. +func (m *FileMutation) DetectedMimeTypeCleared() bool { + _, ok := m.clearedFields[file.FieldDetectedMimeType] + return ok } -// GroupSettingMutation represents an operation that mutates the GroupSetting nodes in the graph. -type GroupSettingMutation struct { - config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - tags *[]string - appendtags []string - deleted_at *time.Time - deleted_by *string - visibility *enums.Visibility - join_policy *enums.JoinPolicy - sync_to_slack *bool - sync_to_github *bool - clearedFields map[string]struct{} - group *string - clearedgroup bool - done bool - oldValue func(context.Context) (*GroupSetting, error) - predicates []predicate.GroupSetting +// ResetDetectedMimeType resets all changes to the "detected_mime_type" field. +func (m *FileMutation) ResetDetectedMimeType() { + m.detected_mime_type = nil + delete(m.clearedFields, file.FieldDetectedMimeType) } -var _ ent.Mutation = (*GroupSettingMutation)(nil) - -// groupsettingOption allows management of the mutation configuration using functional options. -type groupsettingOption func(*GroupSettingMutation) +// SetMd5Hash sets the "md5_hash" field. +func (m *FileMutation) SetMd5Hash(s string) { + m.md5_hash = &s +} -// newGroupSettingMutation creates new mutation for the GroupSetting entity. -func newGroupSettingMutation(c config, op Op, opts ...groupsettingOption) *GroupSettingMutation { - m := &GroupSettingMutation{ - config: c, - op: op, - typ: TypeGroupSetting, - clearedFields: make(map[string]struct{}), - } - for _, opt := range opts { - opt(m) +// Md5Hash returns the value of the "md5_hash" field in the mutation. +func (m *FileMutation) Md5Hash() (r string, exists bool) { + v := m.md5_hash + if v == nil { + return } - return m + return *v, true } -// withGroupSettingID sets the ID field of the mutation. -func withGroupSettingID(id string) groupsettingOption { - return func(m *GroupSettingMutation) { - var ( - err error - once sync.Once - value *GroupSetting - ) - m.oldValue = func(ctx context.Context) (*GroupSetting, error) { - once.Do(func() { - if m.done { - err = errors.New("querying old values post mutation is not allowed") - } else { - value, err = m.Client().GroupSetting.Get(ctx, id) - } - }) - return value, err - } - m.id = &id +// OldMd5Hash returns the old "md5_hash" field's value of the File entity. +// If the File 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 *FileMutation) OldMd5Hash(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMd5Hash is only allowed on UpdateOne operations") } -} - -// withGroupSetting sets the old GroupSetting of the mutation. -func withGroupSetting(node *GroupSetting) groupsettingOption { - return func(m *GroupSettingMutation) { - m.oldValue = func(context.Context) (*GroupSetting, error) { - return node, nil - } - m.id = &node.ID + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMd5Hash requires an ID field in the mutation") } -} - -// 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 GroupSettingMutation) 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 GroupSettingMutation) Tx() (*Tx, error) { - if _, ok := m.driver.(*txDriver); !ok { - return nil, errors.New("generated: mutation is not running in a transaction") + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMd5Hash: %w", err) } - tx := &Tx{config: m.config} - tx.init() - return tx, nil + return oldValue.Md5Hash, nil } -// SetID sets the value of the id field. Note that this -// operation is only accepted on creation of GroupSetting entities. -func (m *GroupSettingMutation) SetID(id string) { - m.id = &id +// ClearMd5Hash clears the value of the "md5_hash" field. +func (m *FileMutation) ClearMd5Hash() { + m.md5_hash = nil + m.clearedFields[file.FieldMd5Hash] = struct{}{} } -// 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 *GroupSettingMutation) ID() (id string, exists bool) { - if m.id == nil { - return - } - return *m.id, true +// Md5HashCleared returns if the "md5_hash" field was cleared in this mutation. +func (m *FileMutation) Md5HashCleared() bool { + _, ok := m.clearedFields[file.FieldMd5Hash] + return ok } -// 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 *GroupSettingMutation) 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().GroupSetting.Query().Where(m.predicates...).IDs(ctx) - default: - return nil, fmt.Errorf("IDs is not allowed on %s operations", m.op) - } +// ResetMd5Hash resets all changes to the "md5_hash" field. +func (m *FileMutation) ResetMd5Hash() { + m.md5_hash = nil + delete(m.clearedFields, file.FieldMd5Hash) } -// SetCreatedAt sets the "created_at" field. -func (m *GroupSettingMutation) SetCreatedAt(t time.Time) { - m.created_at = &t +// SetDetectedContentType sets the "detected_content_type" field. +func (m *FileMutation) SetDetectedContentType(s string) { + m.detected_content_type = &s } -// CreatedAt returns the value of the "created_at" field in the mutation. -func (m *GroupSettingMutation) CreatedAt() (r time.Time, exists bool) { - v := m.created_at +// DetectedContentType returns the value of the "detected_content_type" field in the mutation. +func (m *FileMutation) DetectedContentType() (r string, exists bool) { + v := m.detected_content_type if v == nil { return } return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the GroupSetting entity. -// If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. +// OldDetectedContentType returns the old "detected_content_type" field's value of the File entity. +// If the File 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 *GroupSettingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *FileMutation) OldDetectedContentType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldDetectedContentType 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") + return v, errors.New("OldDetectedContentType 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 v, fmt.Errorf("querying old value for OldDetectedContentType: %w", err) } - return oldValue.CreatedAt, nil -} - -// ClearCreatedAt clears the value of the "created_at" field. -func (m *GroupSettingMutation) ClearCreatedAt() { - m.created_at = nil - m.clearedFields[groupsetting.FieldCreatedAt] = struct{}{} -} - -// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *GroupSettingMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[groupsetting.FieldCreatedAt] - return ok + return oldValue.DetectedContentType, nil } -// ResetCreatedAt resets all changes to the "created_at" field. -func (m *GroupSettingMutation) ResetCreatedAt() { - m.created_at = nil - delete(m.clearedFields, groupsetting.FieldCreatedAt) +// ResetDetectedContentType resets all changes to the "detected_content_type" field. +func (m *FileMutation) ResetDetectedContentType() { + m.detected_content_type = nil } -// SetUpdatedAt sets the "updated_at" field. -func (m *GroupSettingMutation) SetUpdatedAt(t time.Time) { - m.updated_at = &t +// SetStoreKey sets the "store_key" field. +func (m *FileMutation) SetStoreKey(s string) { + m.store_key = &s } -// UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *GroupSettingMutation) UpdatedAt() (r time.Time, exists bool) { - v := m.updated_at +// StoreKey returns the value of the "store_key" field in the mutation. +func (m *FileMutation) StoreKey() (r string, exists bool) { + v := m.store_key if v == nil { return } return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the GroupSetting entity. -// If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. +// OldStoreKey returns the old "store_key" field's value of the File entity. +// If the File 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 *GroupSettingMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *FileMutation) OldStoreKey(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldStoreKey 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") + return v, errors.New("OldStoreKey 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 v, fmt.Errorf("querying old value for OldStoreKey: %w", err) } - return oldValue.UpdatedAt, nil + return oldValue.StoreKey, nil } -// ClearUpdatedAt clears the value of the "updated_at" field. -func (m *GroupSettingMutation) ClearUpdatedAt() { - m.updated_at = nil - m.clearedFields[groupsetting.FieldUpdatedAt] = struct{}{} +// ClearStoreKey clears the value of the "store_key" field. +func (m *FileMutation) ClearStoreKey() { + m.store_key = nil + m.clearedFields[file.FieldStoreKey] = struct{}{} } -// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *GroupSettingMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[groupsetting.FieldUpdatedAt] +// StoreKeyCleared returns if the "store_key" field was cleared in this mutation. +func (m *FileMutation) StoreKeyCleared() bool { + _, ok := m.clearedFields[file.FieldStoreKey] return ok } -// ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *GroupSettingMutation) ResetUpdatedAt() { - m.updated_at = nil - delete(m.clearedFields, groupsetting.FieldUpdatedAt) +// ResetStoreKey resets all changes to the "store_key" field. +func (m *FileMutation) ResetStoreKey() { + m.store_key = nil + delete(m.clearedFields, file.FieldStoreKey) } -// SetCreatedBy sets the "created_by" field. -func (m *GroupSettingMutation) SetCreatedBy(s string) { - m.created_by = &s +// SetCategoryType sets the "category_type" field. +func (m *FileMutation) SetCategoryType(s string) { + m.category_type = &s } -// CreatedBy returns the value of the "created_by" field in the mutation. -func (m *GroupSettingMutation) CreatedBy() (r string, exists bool) { - v := m.created_by +// CategoryType returns the value of the "category_type" field in the mutation. +func (m *FileMutation) CategoryType() (r string, exists bool) { + v := m.category_type if v == nil { return } return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the GroupSetting entity. -// If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. +// OldCategoryType returns the old "category_type" field's value of the File entity. +// If the File 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 *GroupSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *FileMutation) OldCategoryType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") + return v, errors.New("OldCategoryType 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") + return v, errors.New("OldCategoryType 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 v, fmt.Errorf("querying old value for OldCategoryType: %w", err) } - return oldValue.CreatedBy, nil + return oldValue.CategoryType, nil } -// ClearCreatedBy clears the value of the "created_by" field. -func (m *GroupSettingMutation) ClearCreatedBy() { - m.created_by = nil - m.clearedFields[groupsetting.FieldCreatedBy] = struct{}{} +// ClearCategoryType clears the value of the "category_type" field. +func (m *FileMutation) ClearCategoryType() { + m.category_type = nil + m.clearedFields[file.FieldCategoryType] = struct{}{} } -// CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *GroupSettingMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[groupsetting.FieldCreatedBy] +// CategoryTypeCleared returns if the "category_type" field was cleared in this mutation. +func (m *FileMutation) CategoryTypeCleared() bool { + _, ok := m.clearedFields[file.FieldCategoryType] return ok } -// ResetCreatedBy resets all changes to the "created_by" field. -func (m *GroupSettingMutation) ResetCreatedBy() { - m.created_by = nil - delete(m.clearedFields, groupsetting.FieldCreatedBy) +// ResetCategoryType resets all changes to the "category_type" field. +func (m *FileMutation) ResetCategoryType() { + m.category_type = nil + delete(m.clearedFields, file.FieldCategoryType) } -// SetUpdatedBy sets the "updated_by" field. -func (m *GroupSettingMutation) SetUpdatedBy(s string) { - m.updated_by = &s +// SetURI sets the "uri" field. +func (m *FileMutation) SetURI(s string) { + m.uri = &s } -// UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *GroupSettingMutation) UpdatedBy() (r string, exists bool) { - v := m.updated_by +// URI returns the value of the "uri" field in the mutation. +func (m *FileMutation) URI() (r string, exists bool) { + v := m.uri if v == nil { return } return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the GroupSetting entity. -// If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. +// OldURI returns the old "uri" field's value of the File entity. +// If the File 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 *GroupSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *FileMutation) OldURI(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") + return v, errors.New("OldURI 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") + return v, errors.New("OldURI 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 v, fmt.Errorf("querying old value for OldURI: %w", err) } - return oldValue.UpdatedBy, nil + return oldValue.URI, nil } -// ClearUpdatedBy clears the value of the "updated_by" field. -func (m *GroupSettingMutation) ClearUpdatedBy() { - m.updated_by = nil - m.clearedFields[groupsetting.FieldUpdatedBy] = struct{}{} +// ClearURI clears the value of the "uri" field. +func (m *FileMutation) ClearURI() { + m.uri = nil + m.clearedFields[file.FieldURI] = struct{}{} } -// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *GroupSettingMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[groupsetting.FieldUpdatedBy] +// URICleared returns if the "uri" field was cleared in this mutation. +func (m *FileMutation) URICleared() bool { + _, ok := m.clearedFields[file.FieldURI] return ok } -// ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *GroupSettingMutation) ResetUpdatedBy() { - m.updated_by = nil - delete(m.clearedFields, groupsetting.FieldUpdatedBy) +// ResetURI resets all changes to the "uri" field. +func (m *FileMutation) ResetURI() { + m.uri = nil + delete(m.clearedFields, file.FieldURI) } -// SetMappingID sets the "mapping_id" field. -func (m *GroupSettingMutation) SetMappingID(s string) { - m.mapping_id = &s +// SetStorageScheme sets the "storage_scheme" field. +func (m *FileMutation) SetStorageScheme(s string) { + m.storage_scheme = &s } -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *GroupSettingMutation) MappingID() (r string, exists bool) { - v := m.mapping_id +// StorageScheme returns the value of the "storage_scheme" field in the mutation. +func (m *FileMutation) StorageScheme() (r string, exists bool) { + v := m.storage_scheme if v == nil { return } return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the GroupSetting entity. -// If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. +// OldStorageScheme returns the old "storage_scheme" field's value of the File entity. +// If the File 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 *GroupSettingMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *FileMutation) OldStorageScheme(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + return v, errors.New("OldStorageScheme is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") + return v, errors.New("OldStorageScheme requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + return v, fmt.Errorf("querying old value for OldStorageScheme: %w", err) } - return oldValue.MappingID, nil + return oldValue.StorageScheme, nil } -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *GroupSettingMutation) ResetMappingID() { - m.mapping_id = nil +// ClearStorageScheme clears the value of the "storage_scheme" field. +func (m *FileMutation) ClearStorageScheme() { + m.storage_scheme = nil + m.clearedFields[file.FieldStorageScheme] = struct{}{} } -// SetTags sets the "tags" field. -func (m *GroupSettingMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil +// StorageSchemeCleared returns if the "storage_scheme" field was cleared in this mutation. +func (m *FileMutation) StorageSchemeCleared() bool { + _, ok := m.clearedFields[file.FieldStorageScheme] + return ok } -// Tags returns the value of the "tags" field in the mutation. -func (m *GroupSettingMutation) Tags() (r []string, exists bool) { - v := m.tags +// ResetStorageScheme resets all changes to the "storage_scheme" field. +func (m *FileMutation) ResetStorageScheme() { + m.storage_scheme = nil + delete(m.clearedFields, file.FieldStorageScheme) +} + +// SetStorageVolume sets the "storage_volume" field. +func (m *FileMutation) SetStorageVolume(s string) { + m.storage_volume = &s +} + +// StorageVolume returns the value of the "storage_volume" field in the mutation. +func (m *FileMutation) StorageVolume() (r string, exists bool) { + v := m.storage_volume if v == nil { return } return *v, true } -// OldTags returns the old "tags" field's value of the GroupSetting entity. -// If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. +// OldStorageVolume returns the old "storage_volume" field's value of the File entity. +// If the File 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 *GroupSettingMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *FileMutation) OldStorageVolume(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTags is only allowed on UpdateOne operations") + return v, errors.New("OldStorageVolume 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") + return v, errors.New("OldStorageVolume 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 *GroupSettingMutation) 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 *GroupSettingMutation) AppendedTags() ([]string, bool) { - if len(m.appendtags) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldStorageVolume: %w", err) } - return m.appendtags, true + return oldValue.StorageVolume, nil } -// ClearTags clears the value of the "tags" field. -func (m *GroupSettingMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[groupsetting.FieldTags] = struct{}{} +// ClearStorageVolume clears the value of the "storage_volume" field. +func (m *FileMutation) ClearStorageVolume() { + m.storage_volume = nil + m.clearedFields[file.FieldStorageVolume] = struct{}{} } -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *GroupSettingMutation) TagsCleared() bool { - _, ok := m.clearedFields[groupsetting.FieldTags] +// StorageVolumeCleared returns if the "storage_volume" field was cleared in this mutation. +func (m *FileMutation) StorageVolumeCleared() bool { + _, ok := m.clearedFields[file.FieldStorageVolume] return ok } -// ResetTags resets all changes to the "tags" field. -func (m *GroupSettingMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, groupsetting.FieldTags) +// ResetStorageVolume resets all changes to the "storage_volume" field. +func (m *FileMutation) ResetStorageVolume() { + m.storage_volume = nil + delete(m.clearedFields, file.FieldStorageVolume) } -// SetDeletedAt sets the "deleted_at" field. -func (m *GroupSettingMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetStoragePath sets the "storage_path" field. +func (m *FileMutation) SetStoragePath(s string) { + m.storage_path = &s } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *GroupSettingMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// StoragePath returns the value of the "storage_path" field in the mutation. +func (m *FileMutation) StoragePath() (r string, exists bool) { + v := m.storage_path if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the GroupSetting entity. -// If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. +// OldStoragePath returns the old "storage_path" field's value of the File entity. +// If the File 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 *GroupSettingMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *FileMutation) OldStoragePath(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldStoragePath 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") + return v, errors.New("OldStoragePath 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 v, fmt.Errorf("querying old value for OldStoragePath: %w", err) } - return oldValue.DeletedAt, nil + return oldValue.StoragePath, nil } -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *GroupSettingMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[groupsetting.FieldDeletedAt] = struct{}{} +// ClearStoragePath clears the value of the "storage_path" field. +func (m *FileMutation) ClearStoragePath() { + m.storage_path = nil + m.clearedFields[file.FieldStoragePath] = struct{}{} } -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *GroupSettingMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[groupsetting.FieldDeletedAt] +// StoragePathCleared returns if the "storage_path" field was cleared in this mutation. +func (m *FileMutation) StoragePathCleared() bool { + _, ok := m.clearedFields[file.FieldStoragePath] return ok } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *GroupSettingMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, groupsetting.FieldDeletedAt) +// ResetStoragePath resets all changes to the "storage_path" field. +func (m *FileMutation) ResetStoragePath() { + m.storage_path = nil + delete(m.clearedFields, file.FieldStoragePath) } -// SetDeletedBy sets the "deleted_by" field. -func (m *GroupSettingMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetFileContents sets the "file_contents" field. +func (m *FileMutation) SetFileContents(b []byte) { + m.file_contents = &b } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *GroupSettingMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// FileContents returns the value of the "file_contents" field in the mutation. +func (m *FileMutation) FileContents() (r []byte, exists bool) { + v := m.file_contents if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the GroupSetting entity. -// If the GroupSetting object wasn't provided to the builder, the object is fetched from the database. +// OldFileContents returns the old "file_contents" field's value of the File entity. +// If the File 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 *GroupSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *FileMutation) OldFileContents(ctx context.Context) (v []byte, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldFileContents 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") + return v, errors.New("OldFileContents 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 v, fmt.Errorf("querying old value for OldFileContents: %w", err) } - return oldValue.DeletedBy, nil + return oldValue.FileContents, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *GroupSettingMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[groupsetting.FieldDeletedBy] = struct{}{} +// ClearFileContents clears the value of the "file_contents" field. +func (m *FileMutation) ClearFileContents() { + m.file_contents = nil + m.clearedFields[file.FieldFileContents] = struct{}{} } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *GroupSettingMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[groupsetting.FieldDeletedBy] +// FileContentsCleared returns if the "file_contents" field was cleared in this mutation. +func (m *FileMutation) FileContentsCleared() bool { + _, ok := m.clearedFields[file.FieldFileContents] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *GroupSettingMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, groupsetting.FieldDeletedBy) +// ResetFileContents resets all changes to the "file_contents" field. +func (m *FileMutation) ResetFileContents() { + m.file_contents = nil + delete(m.clearedFields, file.FieldFileContents) } -// SetVisibility sets the "visibility" field. -func (m *GroupSettingMutation) SetVisibility(e enums.Visibility) { - m.visibility = &e +// AddUserIDs adds the "user" edge to the User entity by ids. +func (m *FileMutation) AddUserIDs(ids ...string) { + if m.user == nil { + m.user = make(map[string]struct{}) + } + for i := range ids { + m.user[ids[i]] = struct{}{} + } } -// Visibility returns the value of the "visibility" field in the mutation. -func (m *GroupSettingMutation) Visibility() (r enums.Visibility, exists bool) { - v := m.visibility - if v == nil { - return - } - return *v, true +// ClearUser clears the "user" edge to the User entity. +func (m *FileMutation) ClearUser() { + m.cleareduser = true } -// OldVisibility returns the old "visibility" field's value of the GroupSetting entity. -// If the GroupSetting 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 *GroupSettingMutation) OldVisibility(ctx context.Context) (v enums.Visibility, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldVisibility is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldVisibility requires an ID field in the mutation") +// UserCleared reports if the "user" edge to the User entity was cleared. +func (m *FileMutation) UserCleared() bool { + return m.cleareduser +} + +// RemoveUserIDs removes the "user" edge to the User entity by IDs. +func (m *FileMutation) RemoveUserIDs(ids ...string) { + if m.removeduser == nil { + m.removeduser = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldVisibility: %w", err) + for i := range ids { + delete(m.user, ids[i]) + m.removeduser[ids[i]] = struct{}{} } - return oldValue.Visibility, nil } -// ResetVisibility resets all changes to the "visibility" field. -func (m *GroupSettingMutation) ResetVisibility() { - m.visibility = nil +// RemovedUser returns the removed IDs of the "user" edge to the User entity. +func (m *FileMutation) RemovedUserIDs() (ids []string) { + for id := range m.removeduser { + ids = append(ids, id) + } + return } -// SetJoinPolicy sets the "join_policy" field. -func (m *GroupSettingMutation) SetJoinPolicy(ep enums.JoinPolicy) { - m.join_policy = &ep +// UserIDs returns the "user" edge IDs in the mutation. +func (m *FileMutation) UserIDs() (ids []string) { + for id := range m.user { + ids = append(ids, id) + } + return } -// JoinPolicy returns the value of the "join_policy" field in the mutation. -func (m *GroupSettingMutation) JoinPolicy() (r enums.JoinPolicy, exists bool) { - v := m.join_policy - if v == nil { - return - } - return *v, true +// ResetUser resets all changes to the "user" edge. +func (m *FileMutation) ResetUser() { + m.user = nil + m.cleareduser = false + m.removeduser = nil } -// OldJoinPolicy returns the old "join_policy" field's value of the GroupSetting entity. -// If the GroupSetting 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 *GroupSettingMutation) OldJoinPolicy(ctx context.Context) (v enums.JoinPolicy, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldJoinPolicy is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldJoinPolicy requires an ID field in the mutation") +// AddOrganizationIDs adds the "organization" edge to the Organization entity by ids. +func (m *FileMutation) AddOrganizationIDs(ids ...string) { + if m.organization == nil { + m.organization = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldJoinPolicy: %w", err) + for i := range ids { + m.organization[ids[i]] = struct{}{} } - return oldValue.JoinPolicy, nil } -// ResetJoinPolicy resets all changes to the "join_policy" field. -func (m *GroupSettingMutation) ResetJoinPolicy() { - m.join_policy = nil +// ClearOrganization clears the "organization" edge to the Organization entity. +func (m *FileMutation) ClearOrganization() { + m.clearedorganization = true } -// SetSyncToSlack sets the "sync_to_slack" field. -func (m *GroupSettingMutation) SetSyncToSlack(b bool) { - m.sync_to_slack = &b +// OrganizationCleared reports if the "organization" edge to the Organization entity was cleared. +func (m *FileMutation) OrganizationCleared() bool { + return m.clearedorganization } -// SyncToSlack returns the value of the "sync_to_slack" field in the mutation. -func (m *GroupSettingMutation) SyncToSlack() (r bool, exists bool) { - v := m.sync_to_slack - if v == nil { - return +// RemoveOrganizationIDs removes the "organization" edge to the Organization entity by IDs. +func (m *FileMutation) RemoveOrganizationIDs(ids ...string) { + if m.removedorganization == nil { + m.removedorganization = make(map[string]struct{}) + } + for i := range ids { + delete(m.organization, ids[i]) + m.removedorganization[ids[i]] = struct{}{} } - return *v, true } -// OldSyncToSlack returns the old "sync_to_slack" field's value of the GroupSetting entity. -// If the GroupSetting 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 *GroupSettingMutation) OldSyncToSlack(ctx context.Context) (v bool, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldSyncToSlack is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldSyncToSlack requires an ID field in the mutation") +// RemovedOrganization returns the removed IDs of the "organization" edge to the Organization entity. +func (m *FileMutation) RemovedOrganizationIDs() (ids []string) { + for id := range m.removedorganization { + ids = append(ids, id) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldSyncToSlack: %w", err) + return +} + +// OrganizationIDs returns the "organization" edge IDs in the mutation. +func (m *FileMutation) OrganizationIDs() (ids []string) { + for id := range m.organization { + ids = append(ids, id) } - return oldValue.SyncToSlack, nil + return } -// ClearSyncToSlack clears the value of the "sync_to_slack" field. -func (m *GroupSettingMutation) ClearSyncToSlack() { - m.sync_to_slack = nil - m.clearedFields[groupsetting.FieldSyncToSlack] = struct{}{} +// ResetOrganization resets all changes to the "organization" edge. +func (m *FileMutation) ResetOrganization() { + m.organization = nil + m.clearedorganization = false + m.removedorganization = nil } -// SyncToSlackCleared returns if the "sync_to_slack" field was cleared in this mutation. -func (m *GroupSettingMutation) SyncToSlackCleared() bool { - _, ok := m.clearedFields[groupsetting.FieldSyncToSlack] - return ok +// AddGroupIDs adds the "group" edge to the Group entity by ids. +func (m *FileMutation) AddGroupIDs(ids ...string) { + if m.group == nil { + m.group = make(map[string]struct{}) + } + for i := range ids { + m.group[ids[i]] = struct{}{} + } } -// ResetSyncToSlack resets all changes to the "sync_to_slack" field. -func (m *GroupSettingMutation) ResetSyncToSlack() { - m.sync_to_slack = nil - delete(m.clearedFields, groupsetting.FieldSyncToSlack) +// ClearGroup clears the "group" edge to the Group entity. +func (m *FileMutation) ClearGroup() { + m.clearedgroup = true } -// SetSyncToGithub sets the "sync_to_github" field. -func (m *GroupSettingMutation) SetSyncToGithub(b bool) { - m.sync_to_github = &b +// GroupCleared reports if the "group" edge to the Group entity was cleared. +func (m *FileMutation) GroupCleared() bool { + return m.clearedgroup } -// SyncToGithub returns the value of the "sync_to_github" field in the mutation. -func (m *GroupSettingMutation) SyncToGithub() (r bool, exists bool) { - v := m.sync_to_github - if v == nil { - return +// RemoveGroupIDs removes the "group" edge to the Group entity by IDs. +func (m *FileMutation) RemoveGroupIDs(ids ...string) { + if m.removedgroup == nil { + m.removedgroup = make(map[string]struct{}) + } + for i := range ids { + delete(m.group, ids[i]) + m.removedgroup[ids[i]] = struct{}{} } - return *v, true } -// OldSyncToGithub returns the old "sync_to_github" field's value of the GroupSetting entity. -// If the GroupSetting 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 *GroupSettingMutation) OldSyncToGithub(ctx context.Context) (v bool, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldSyncToGithub is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldSyncToGithub requires an ID field in the mutation") +// RemovedGroup returns the removed IDs of the "group" edge to the Group entity. +func (m *FileMutation) RemovedGroupIDs() (ids []string) { + for id := range m.removedgroup { + ids = append(ids, id) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldSyncToGithub: %w", err) + return +} + +// GroupIDs returns the "group" edge IDs in the mutation. +func (m *FileMutation) GroupIDs() (ids []string) { + for id := range m.group { + ids = append(ids, id) } - return oldValue.SyncToGithub, nil + return } -// ClearSyncToGithub clears the value of the "sync_to_github" field. -func (m *GroupSettingMutation) ClearSyncToGithub() { - m.sync_to_github = nil - m.clearedFields[groupsetting.FieldSyncToGithub] = struct{}{} +// ResetGroup resets all changes to the "group" edge. +func (m *FileMutation) ResetGroup() { + m.group = nil + m.clearedgroup = false + m.removedgroup = nil } -// SyncToGithubCleared returns if the "sync_to_github" field was cleared in this mutation. -func (m *GroupSettingMutation) SyncToGithubCleared() bool { - _, ok := m.clearedFields[groupsetting.FieldSyncToGithub] - return ok +// AddContactIDs adds the "contact" edge to the Contact entity by ids. +func (m *FileMutation) AddContactIDs(ids ...string) { + if m.contact == nil { + m.contact = make(map[string]struct{}) + } + for i := range ids { + m.contact[ids[i]] = struct{}{} + } } -// ResetSyncToGithub resets all changes to the "sync_to_github" field. -func (m *GroupSettingMutation) ResetSyncToGithub() { - m.sync_to_github = nil - delete(m.clearedFields, groupsetting.FieldSyncToGithub) +// ClearContact clears the "contact" edge to the Contact entity. +func (m *FileMutation) ClearContact() { + m.clearedcontact = true } -// SetGroupID sets the "group_id" field. -func (m *GroupSettingMutation) SetGroupID(s string) { - m.group = &s +// ContactCleared reports if the "contact" edge to the Contact entity was cleared. +func (m *FileMutation) ContactCleared() bool { + return m.clearedcontact } -// GroupID returns the value of the "group_id" field in the mutation. -func (m *GroupSettingMutation) GroupID() (r string, exists bool) { - v := m.group - if v == nil { - return +// RemoveContactIDs removes the "contact" edge to the Contact entity by IDs. +func (m *FileMutation) RemoveContactIDs(ids ...string) { + if m.removedcontact == nil { + m.removedcontact = make(map[string]struct{}) + } + for i := range ids { + delete(m.contact, ids[i]) + m.removedcontact[ids[i]] = struct{}{} } - return *v, true } -// OldGroupID returns the old "group_id" field's value of the GroupSetting entity. -// If the GroupSetting 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 *GroupSettingMutation) 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") +// RemovedContact returns the removed IDs of the "contact" edge to the Contact entity. +func (m *FileMutation) RemovedContactIDs() (ids []string) { + for id := range m.removedcontact { + ids = append(ids, id) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldGroupID: %w", err) + return +} + +// ContactIDs returns the "contact" edge IDs in the mutation. +func (m *FileMutation) ContactIDs() (ids []string) { + for id := range m.contact { + ids = append(ids, id) } - return oldValue.GroupID, nil + return } -// ClearGroupID clears the value of the "group_id" field. -func (m *GroupSettingMutation) ClearGroupID() { - m.group = nil - m.clearedFields[groupsetting.FieldGroupID] = struct{}{} +// ResetContact resets all changes to the "contact" edge. +func (m *FileMutation) ResetContact() { + m.contact = nil + m.clearedcontact = false + m.removedcontact = nil } -// GroupIDCleared returns if the "group_id" field was cleared in this mutation. -func (m *GroupSettingMutation) GroupIDCleared() bool { - _, ok := m.clearedFields[groupsetting.FieldGroupID] - return ok +// AddEntityIDs adds the "entity" edge to the Entity entity by ids. +func (m *FileMutation) AddEntityIDs(ids ...string) { + if m.entity == nil { + m.entity = make(map[string]struct{}) + } + for i := range ids { + m.entity[ids[i]] = struct{}{} + } } -// ResetGroupID resets all changes to the "group_id" field. -func (m *GroupSettingMutation) ResetGroupID() { - m.group = nil - delete(m.clearedFields, groupsetting.FieldGroupID) +// ClearEntity clears the "entity" edge to the Entity entity. +func (m *FileMutation) ClearEntity() { + m.clearedentity = true } -// ClearGroup clears the "group" edge to the Group entity. -func (m *GroupSettingMutation) ClearGroup() { - m.clearedgroup = true - m.clearedFields[groupsetting.FieldGroupID] = struct{}{} +// EntityCleared reports if the "entity" edge to the Entity entity was cleared. +func (m *FileMutation) EntityCleared() bool { + return m.clearedentity } -// GroupCleared reports if the "group" edge to the Group entity was cleared. -func (m *GroupSettingMutation) GroupCleared() bool { - return m.GroupIDCleared() || m.clearedgroup +// RemoveEntityIDs removes the "entity" edge to the Entity entity by IDs. +func (m *FileMutation) RemoveEntityIDs(ids ...string) { + if m.removedentity == nil { + m.removedentity = make(map[string]struct{}) + } + for i := range ids { + delete(m.entity, ids[i]) + m.removedentity[ids[i]] = struct{}{} + } } -// 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 *GroupSettingMutation) GroupIDs() (ids []string) { - if id := m.group; id != nil { - ids = append(ids, *id) +// RemovedEntity returns the removed IDs of the "entity" edge to the Entity entity. +func (m *FileMutation) RemovedEntityIDs() (ids []string) { + for id := range m.removedentity { + ids = append(ids, id) } return } -// ResetGroup resets all changes to the "group" edge. -func (m *GroupSettingMutation) ResetGroup() { - m.group = nil - m.clearedgroup = false +// EntityIDs returns the "entity" edge IDs in the mutation. +func (m *FileMutation) EntityIDs() (ids []string) { + for id := range m.entity { + ids = append(ids, id) + } + return } -// Where appends a list predicates to the GroupSettingMutation builder. -func (m *GroupSettingMutation) Where(ps ...predicate.GroupSetting) { - m.predicates = append(m.predicates, ps...) +// ResetEntity resets all changes to the "entity" edge. +func (m *FileMutation) ResetEntity() { + m.entity = nil + m.clearedentity = false + m.removedentity = nil } -// WhereP appends storage-level predicates to the GroupSettingMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *GroupSettingMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.GroupSetting, len(ps)) - for i := range ps { - p[i] = ps[i] +// AddUsersettingIDs adds the "usersetting" edge to the UserSetting entity by ids. +func (m *FileMutation) AddUsersettingIDs(ids ...string) { + if m.usersetting == nil { + m.usersetting = make(map[string]struct{}) + } + for i := range ids { + m.usersetting[ids[i]] = struct{}{} } - m.Where(p...) } -// Op returns the operation name. -func (m *GroupSettingMutation) Op() Op { - return m.op +// ClearUsersetting clears the "usersetting" edge to the UserSetting entity. +func (m *FileMutation) ClearUsersetting() { + m.clearedusersetting = true } -// SetOp allows setting the mutation operation. -func (m *GroupSettingMutation) SetOp(op Op) { - m.op = op +// UsersettingCleared reports if the "usersetting" edge to the UserSetting entity was cleared. +func (m *FileMutation) UsersettingCleared() bool { + return m.clearedusersetting } -// Type returns the node type of this mutation (GroupSetting). -func (m *GroupSettingMutation) Type() string { - return m.typ +// RemoveUsersettingIDs removes the "usersetting" edge to the UserSetting entity by IDs. +func (m *FileMutation) RemoveUsersettingIDs(ids ...string) { + if m.removedusersetting == nil { + m.removedusersetting = make(map[string]struct{}) + } + for i := range ids { + delete(m.usersetting, ids[i]) + m.removedusersetting[ids[i]] = struct{}{} + } } -// 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 *GroupSettingMutation) Fields() []string { - fields := make([]string, 0, 13) - if m.created_at != nil { - fields = append(fields, groupsetting.FieldCreatedAt) - } - if m.updated_at != nil { - fields = append(fields, groupsetting.FieldUpdatedAt) +// RemovedUsersetting returns the removed IDs of the "usersetting" edge to the UserSetting entity. +func (m *FileMutation) RemovedUsersettingIDs() (ids []string) { + for id := range m.removedusersetting { + ids = append(ids, id) } - if m.created_by != nil { - fields = append(fields, groupsetting.FieldCreatedBy) + return +} + +// UsersettingIDs returns the "usersetting" edge IDs in the mutation. +func (m *FileMutation) UsersettingIDs() (ids []string) { + for id := range m.usersetting { + ids = append(ids, id) } - if m.updated_by != nil { - fields = append(fields, groupsetting.FieldUpdatedBy) + return +} + +// ResetUsersetting resets all changes to the "usersetting" edge. +func (m *FileMutation) ResetUsersetting() { + m.usersetting = nil + m.clearedusersetting = false + m.removedusersetting = nil +} + +// AddOrganizationsettingIDs adds the "organizationsetting" edge to the OrganizationSetting entity by ids. +func (m *FileMutation) AddOrganizationsettingIDs(ids ...string) { + if m.organizationsetting == nil { + m.organizationsetting = make(map[string]struct{}) } - if m.mapping_id != nil { - fields = append(fields, groupsetting.FieldMappingID) + for i := range ids { + m.organizationsetting[ids[i]] = struct{}{} } - if m.tags != nil { - fields = append(fields, groupsetting.FieldTags) +} + +// ClearOrganizationsetting clears the "organizationsetting" edge to the OrganizationSetting entity. +func (m *FileMutation) ClearOrganizationsetting() { + m.clearedorganizationsetting = true +} + +// OrganizationsettingCleared reports if the "organizationsetting" edge to the OrganizationSetting entity was cleared. +func (m *FileMutation) OrganizationsettingCleared() bool { + return m.clearedorganizationsetting +} + +// RemoveOrganizationsettingIDs removes the "organizationsetting" edge to the OrganizationSetting entity by IDs. +func (m *FileMutation) RemoveOrganizationsettingIDs(ids ...string) { + if m.removedorganizationsetting == nil { + m.removedorganizationsetting = make(map[string]struct{}) } - if m.deleted_at != nil { - fields = append(fields, groupsetting.FieldDeletedAt) + for i := range ids { + delete(m.organizationsetting, ids[i]) + m.removedorganizationsetting[ids[i]] = struct{}{} } - if m.deleted_by != nil { - fields = append(fields, groupsetting.FieldDeletedBy) +} + +// RemovedOrganizationsetting returns the removed IDs of the "organizationsetting" edge to the OrganizationSetting entity. +func (m *FileMutation) RemovedOrganizationsettingIDs() (ids []string) { + for id := range m.removedorganizationsetting { + ids = append(ids, id) } - if m.visibility != nil { - fields = append(fields, groupsetting.FieldVisibility) + return +} + +// OrganizationsettingIDs returns the "organizationsetting" edge IDs in the mutation. +func (m *FileMutation) OrganizationsettingIDs() (ids []string) { + for id := range m.organizationsetting { + ids = append(ids, id) } - if m.join_policy != nil { - fields = append(fields, groupsetting.FieldJoinPolicy) + return +} + +// ResetOrganizationsetting resets all changes to the "organizationsetting" edge. +func (m *FileMutation) ResetOrganizationsetting() { + m.organizationsetting = nil + m.clearedorganizationsetting = false + m.removedorganizationsetting = nil +} + +// AddTemplateIDs adds the "template" edge to the Template entity by ids. +func (m *FileMutation) AddTemplateIDs(ids ...string) { + if m.template == nil { + m.template = make(map[string]struct{}) } - if m.sync_to_slack != nil { - fields = append(fields, groupsetting.FieldSyncToSlack) + for i := range ids { + m.template[ids[i]] = struct{}{} } - if m.sync_to_github != nil { - fields = append(fields, groupsetting.FieldSyncToGithub) +} + +// ClearTemplate clears the "template" edge to the Template entity. +func (m *FileMutation) ClearTemplate() { + m.clearedtemplate = true +} + +// TemplateCleared reports if the "template" edge to the Template entity was cleared. +func (m *FileMutation) TemplateCleared() bool { + return m.clearedtemplate +} + +// RemoveTemplateIDs removes the "template" edge to the Template entity by IDs. +func (m *FileMutation) RemoveTemplateIDs(ids ...string) { + if m.removedtemplate == nil { + m.removedtemplate = make(map[string]struct{}) } - if m.group != nil { - fields = append(fields, groupsetting.FieldGroupID) + for i := range ids { + delete(m.template, ids[i]) + m.removedtemplate[ids[i]] = struct{}{} } - 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 *GroupSettingMutation) Field(name string) (ent.Value, bool) { +// RemovedTemplate returns the removed IDs of the "template" edge to the Template entity. +func (m *FileMutation) RemovedTemplateIDs() (ids []string) { + for id := range m.removedtemplate { + ids = append(ids, id) + } + return +} + +// TemplateIDs returns the "template" edge IDs in the mutation. +func (m *FileMutation) TemplateIDs() (ids []string) { + for id := range m.template { + ids = append(ids, id) + } + return +} + +// ResetTemplate resets all changes to the "template" edge. +func (m *FileMutation) ResetTemplate() { + m.template = nil + m.clearedtemplate = false + m.removedtemplate = nil +} + +// AddDocumentdatumIDs adds the "documentdata" edge to the DocumentData entity by ids. +func (m *FileMutation) AddDocumentdatumIDs(ids ...string) { + if m.documentdata == nil { + m.documentdata = make(map[string]struct{}) + } + for i := range ids { + m.documentdata[ids[i]] = struct{}{} + } +} + +// ClearDocumentdata clears the "documentdata" edge to the DocumentData entity. +func (m *FileMutation) ClearDocumentdata() { + m.cleareddocumentdata = true +} + +// DocumentdataCleared reports if the "documentdata" edge to the DocumentData entity was cleared. +func (m *FileMutation) DocumentdataCleared() bool { + return m.cleareddocumentdata +} + +// RemoveDocumentdatumIDs removes the "documentdata" edge to the DocumentData entity by IDs. +func (m *FileMutation) RemoveDocumentdatumIDs(ids ...string) { + if m.removeddocumentdata == nil { + m.removeddocumentdata = make(map[string]struct{}) + } + for i := range ids { + delete(m.documentdata, ids[i]) + m.removeddocumentdata[ids[i]] = struct{}{} + } +} + +// RemovedDocumentdata returns the removed IDs of the "documentdata" edge to the DocumentData entity. +func (m *FileMutation) RemovedDocumentdataIDs() (ids []string) { + for id := range m.removeddocumentdata { + ids = append(ids, id) + } + return +} + +// DocumentdataIDs returns the "documentdata" edge IDs in the mutation. +func (m *FileMutation) DocumentdataIDs() (ids []string) { + for id := range m.documentdata { + ids = append(ids, id) + } + return +} + +// ResetDocumentdata resets all changes to the "documentdata" edge. +func (m *FileMutation) ResetDocumentdata() { + m.documentdata = nil + m.cleareddocumentdata = false + m.removeddocumentdata = nil +} + +// AddEventIDs adds the "events" edge to the Event entity by ids. +func (m *FileMutation) AddEventIDs(ids ...string) { + if m.events == nil { + m.events = make(map[string]struct{}) + } + for i := range ids { + m.events[ids[i]] = struct{}{} + } +} + +// ClearEvents clears the "events" edge to the Event entity. +func (m *FileMutation) ClearEvents() { + m.clearedevents = true +} + +// EventsCleared reports if the "events" edge to the Event entity was cleared. +func (m *FileMutation) EventsCleared() bool { + return m.clearedevents +} + +// RemoveEventIDs removes the "events" edge to the Event entity by IDs. +func (m *FileMutation) RemoveEventIDs(ids ...string) { + if m.removedevents == nil { + m.removedevents = make(map[string]struct{}) + } + for i := range ids { + delete(m.events, ids[i]) + m.removedevents[ids[i]] = struct{}{} + } +} + +// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. +func (m *FileMutation) RemovedEventsIDs() (ids []string) { + for id := range m.removedevents { + ids = append(ids, id) + } + return +} + +// EventsIDs returns the "events" edge IDs in the mutation. +func (m *FileMutation) EventsIDs() (ids []string) { + for id := range m.events { + ids = append(ids, id) + } + return +} + +// ResetEvents resets all changes to the "events" edge. +func (m *FileMutation) ResetEvents() { + m.events = nil + m.clearedevents = false + m.removedevents = nil +} + +// Where appends a list predicates to the FileMutation builder. +func (m *FileMutation) Where(ps ...predicate.File) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the FileMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *FileMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.File, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *FileMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *FileMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (File). +func (m *FileMutation) 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 *FileMutation) Fields() []string { + fields := make([]string, 0, 22) + if m.created_at != nil { + fields = append(fields, file.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, file.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, file.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, file.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, file.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, file.FieldDeletedBy) + } + if m.mapping_id != nil { + fields = append(fields, file.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, file.FieldTags) + } + if m.provided_file_name != nil { + fields = append(fields, file.FieldProvidedFileName) + } + if m.provided_file_extension != nil { + fields = append(fields, file.FieldProvidedFileExtension) + } + if m.provided_file_size != nil { + fields = append(fields, file.FieldProvidedFileSize) + } + if m.persisted_file_size != nil { + fields = append(fields, file.FieldPersistedFileSize) + } + if m.detected_mime_type != nil { + fields = append(fields, file.FieldDetectedMimeType) + } + if m.md5_hash != nil { + fields = append(fields, file.FieldMd5Hash) + } + if m.detected_content_type != nil { + fields = append(fields, file.FieldDetectedContentType) + } + if m.store_key != nil { + fields = append(fields, file.FieldStoreKey) + } + if m.category_type != nil { + fields = append(fields, file.FieldCategoryType) + } + if m.uri != nil { + fields = append(fields, file.FieldURI) + } + if m.storage_scheme != nil { + fields = append(fields, file.FieldStorageScheme) + } + if m.storage_volume != nil { + fields = append(fields, file.FieldStorageVolume) + } + if m.storage_path != nil { + fields = append(fields, file.FieldStoragePath) + } + if m.file_contents != nil { + fields = append(fields, file.FieldFileContents) + } + 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 *FileMutation) Field(name string) (ent.Value, bool) { switch name { - case groupsetting.FieldCreatedAt: + case file.FieldCreatedAt: return m.CreatedAt() - case groupsetting.FieldUpdatedAt: + case file.FieldUpdatedAt: return m.UpdatedAt() - case groupsetting.FieldCreatedBy: + case file.FieldCreatedBy: return m.CreatedBy() - case groupsetting.FieldUpdatedBy: + case file.FieldUpdatedBy: return m.UpdatedBy() - case groupsetting.FieldMappingID: - return m.MappingID() - case groupsetting.FieldTags: - return m.Tags() - case groupsetting.FieldDeletedAt: + case file.FieldDeletedAt: return m.DeletedAt() - case groupsetting.FieldDeletedBy: + case file.FieldDeletedBy: return m.DeletedBy() - case groupsetting.FieldVisibility: - return m.Visibility() - case groupsetting.FieldJoinPolicy: - return m.JoinPolicy() - case groupsetting.FieldSyncToSlack: - return m.SyncToSlack() - case groupsetting.FieldSyncToGithub: - return m.SyncToGithub() - case groupsetting.FieldGroupID: - return m.GroupID() + case file.FieldMappingID: + return m.MappingID() + case file.FieldTags: + return m.Tags() + case file.FieldProvidedFileName: + return m.ProvidedFileName() + case file.FieldProvidedFileExtension: + return m.ProvidedFileExtension() + case file.FieldProvidedFileSize: + return m.ProvidedFileSize() + case file.FieldPersistedFileSize: + return m.PersistedFileSize() + case file.FieldDetectedMimeType: + return m.DetectedMimeType() + case file.FieldMd5Hash: + return m.Md5Hash() + case file.FieldDetectedContentType: + return m.DetectedContentType() + case file.FieldStoreKey: + return m.StoreKey() + case file.FieldCategoryType: + return m.CategoryType() + case file.FieldURI: + return m.URI() + case file.FieldStorageScheme: + return m.StorageScheme() + case file.FieldStorageVolume: + return m.StorageVolume() + case file.FieldStoragePath: + return m.StoragePath() + case file.FieldFileContents: + return m.FileContents() } return nil, false } @@ -40769,403 +43092,841 @@ func (m *GroupSettingMutation) Field(name string) (ent.Value, bool) { // 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 *GroupSettingMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *FileMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case groupsetting.FieldCreatedAt: + case file.FieldCreatedAt: return m.OldCreatedAt(ctx) - case groupsetting.FieldUpdatedAt: + case file.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case groupsetting.FieldCreatedBy: + case file.FieldCreatedBy: return m.OldCreatedBy(ctx) - case groupsetting.FieldUpdatedBy: + case file.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case groupsetting.FieldMappingID: - return m.OldMappingID(ctx) - case groupsetting.FieldTags: - return m.OldTags(ctx) - case groupsetting.FieldDeletedAt: + case file.FieldDeletedAt: return m.OldDeletedAt(ctx) - case groupsetting.FieldDeletedBy: + case file.FieldDeletedBy: return m.OldDeletedBy(ctx) - case groupsetting.FieldVisibility: - return m.OldVisibility(ctx) - case groupsetting.FieldJoinPolicy: - return m.OldJoinPolicy(ctx) - case groupsetting.FieldSyncToSlack: - return m.OldSyncToSlack(ctx) - case groupsetting.FieldSyncToGithub: - return m.OldSyncToGithub(ctx) - case groupsetting.FieldGroupID: - return m.OldGroupID(ctx) + case file.FieldMappingID: + return m.OldMappingID(ctx) + case file.FieldTags: + return m.OldTags(ctx) + case file.FieldProvidedFileName: + return m.OldProvidedFileName(ctx) + case file.FieldProvidedFileExtension: + return m.OldProvidedFileExtension(ctx) + case file.FieldProvidedFileSize: + return m.OldProvidedFileSize(ctx) + case file.FieldPersistedFileSize: + return m.OldPersistedFileSize(ctx) + case file.FieldDetectedMimeType: + return m.OldDetectedMimeType(ctx) + case file.FieldMd5Hash: + return m.OldMd5Hash(ctx) + case file.FieldDetectedContentType: + return m.OldDetectedContentType(ctx) + case file.FieldStoreKey: + return m.OldStoreKey(ctx) + case file.FieldCategoryType: + return m.OldCategoryType(ctx) + case file.FieldURI: + return m.OldURI(ctx) + case file.FieldStorageScheme: + return m.OldStorageScheme(ctx) + case file.FieldStorageVolume: + return m.OldStorageVolume(ctx) + case file.FieldStoragePath: + return m.OldStoragePath(ctx) + case file.FieldFileContents: + return m.OldFileContents(ctx) } - return nil, fmt.Errorf("unknown GroupSetting field %s", name) + return nil, fmt.Errorf("unknown File 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 *GroupSettingMutation) SetField(name string, value ent.Value) error { +func (m *FileMutation) SetField(name string, value ent.Value) error { switch name { - case groupsetting.FieldCreatedAt: + case file.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 groupsetting.FieldUpdatedAt: + case file.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 groupsetting.FieldCreatedBy: + case file.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case groupsetting.FieldUpdatedBy: + case file.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case groupsetting.FieldMappingID: + case file.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 file.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case file.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case groupsetting.FieldTags: + case file.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case groupsetting.FieldDeletedAt: - v, ok := value.(time.Time) + case file.FieldProvidedFileName: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetProvidedFileName(v) return nil - case groupsetting.FieldDeletedBy: + case file.FieldProvidedFileExtension: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetProvidedFileExtension(v) return nil - case groupsetting.FieldVisibility: - v, ok := value.(enums.Visibility) + case file.FieldProvidedFileSize: + v, ok := value.(int64) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetVisibility(v) + m.SetProvidedFileSize(v) return nil - case groupsetting.FieldJoinPolicy: - v, ok := value.(enums.JoinPolicy) + case file.FieldPersistedFileSize: + v, ok := value.(int64) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetJoinPolicy(v) + m.SetPersistedFileSize(v) return nil - case groupsetting.FieldSyncToSlack: - v, ok := value.(bool) + case file.FieldDetectedMimeType: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetSyncToSlack(v) + m.SetDetectedMimeType(v) return nil - case groupsetting.FieldSyncToGithub: - v, ok := value.(bool) + case file.FieldMd5Hash: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetSyncToGithub(v) + m.SetMd5Hash(v) return nil - case groupsetting.FieldGroupID: + case file.FieldDetectedContentType: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetGroupID(v) + m.SetDetectedContentType(v) + return nil + case file.FieldStoreKey: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStoreKey(v) + return nil + case file.FieldCategoryType: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCategoryType(v) + return nil + case file.FieldURI: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetURI(v) + return nil + case file.FieldStorageScheme: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStorageScheme(v) + return nil + case file.FieldStorageVolume: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStorageVolume(v) + return nil + case file.FieldStoragePath: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStoragePath(v) + return nil + case file.FieldFileContents: + v, ok := value.([]byte) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetFileContents(v) return nil } - return fmt.Errorf("unknown GroupSetting field %s", name) + return fmt.Errorf("unknown File field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *GroupSettingMutation) AddedFields() []string { - return nil +func (m *FileMutation) AddedFields() []string { + var fields []string + if m.addprovided_file_size != nil { + fields = append(fields, file.FieldProvidedFileSize) + } + if m.addpersisted_file_size != nil { + fields = append(fields, file.FieldPersistedFileSize) + } + return fields } // 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 *GroupSettingMutation) AddedField(name string) (ent.Value, bool) { +func (m *FileMutation) AddedField(name string) (ent.Value, bool) { + switch name { + case file.FieldProvidedFileSize: + return m.AddedProvidedFileSize() + case file.FieldPersistedFileSize: + return m.AddedPersistedFileSize() + } 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 *GroupSettingMutation) AddField(name string, value ent.Value) error { +func (m *FileMutation) AddField(name string, value ent.Value) error { switch name { + case file.FieldProvidedFileSize: + v, ok := value.(int64) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.AddProvidedFileSize(v) + return nil + case file.FieldPersistedFileSize: + v, ok := value.(int64) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.AddPersistedFileSize(v) + return nil } - return fmt.Errorf("unknown GroupSetting numeric field %s", name) + return fmt.Errorf("unknown File numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *GroupSettingMutation) ClearedFields() []string { +func (m *FileMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(groupsetting.FieldCreatedAt) { - fields = append(fields, groupsetting.FieldCreatedAt) + if m.FieldCleared(file.FieldCreatedAt) { + fields = append(fields, file.FieldCreatedAt) } - if m.FieldCleared(groupsetting.FieldUpdatedAt) { - fields = append(fields, groupsetting.FieldUpdatedAt) + if m.FieldCleared(file.FieldUpdatedAt) { + fields = append(fields, file.FieldUpdatedAt) } - if m.FieldCleared(groupsetting.FieldCreatedBy) { - fields = append(fields, groupsetting.FieldCreatedBy) + if m.FieldCleared(file.FieldCreatedBy) { + fields = append(fields, file.FieldCreatedBy) } - if m.FieldCleared(groupsetting.FieldUpdatedBy) { - fields = append(fields, groupsetting.FieldUpdatedBy) + if m.FieldCleared(file.FieldUpdatedBy) { + fields = append(fields, file.FieldUpdatedBy) } - if m.FieldCleared(groupsetting.FieldTags) { - fields = append(fields, groupsetting.FieldTags) + if m.FieldCleared(file.FieldDeletedAt) { + fields = append(fields, file.FieldDeletedAt) } - if m.FieldCleared(groupsetting.FieldDeletedAt) { - fields = append(fields, groupsetting.FieldDeletedAt) + if m.FieldCleared(file.FieldDeletedBy) { + fields = append(fields, file.FieldDeletedBy) } - if m.FieldCleared(groupsetting.FieldDeletedBy) { - fields = append(fields, groupsetting.FieldDeletedBy) + if m.FieldCleared(file.FieldTags) { + fields = append(fields, file.FieldTags) } - if m.FieldCleared(groupsetting.FieldSyncToSlack) { - fields = append(fields, groupsetting.FieldSyncToSlack) + if m.FieldCleared(file.FieldProvidedFileSize) { + fields = append(fields, file.FieldProvidedFileSize) } - if m.FieldCleared(groupsetting.FieldSyncToGithub) { - fields = append(fields, groupsetting.FieldSyncToGithub) + if m.FieldCleared(file.FieldPersistedFileSize) { + fields = append(fields, file.FieldPersistedFileSize) } - if m.FieldCleared(groupsetting.FieldGroupID) { - fields = append(fields, groupsetting.FieldGroupID) + if m.FieldCleared(file.FieldDetectedMimeType) { + fields = append(fields, file.FieldDetectedMimeType) + } + if m.FieldCleared(file.FieldMd5Hash) { + fields = append(fields, file.FieldMd5Hash) + } + if m.FieldCleared(file.FieldStoreKey) { + fields = append(fields, file.FieldStoreKey) + } + if m.FieldCleared(file.FieldCategoryType) { + fields = append(fields, file.FieldCategoryType) + } + if m.FieldCleared(file.FieldURI) { + fields = append(fields, file.FieldURI) + } + if m.FieldCleared(file.FieldStorageScheme) { + fields = append(fields, file.FieldStorageScheme) + } + if m.FieldCleared(file.FieldStorageVolume) { + fields = append(fields, file.FieldStorageVolume) + } + if m.FieldCleared(file.FieldStoragePath) { + fields = append(fields, file.FieldStoragePath) + } + if m.FieldCleared(file.FieldFileContents) { + fields = append(fields, file.FieldFileContents) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *GroupSettingMutation) FieldCleared(name string) bool { +func (m *FileMutation) 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 *GroupSettingMutation) ClearField(name string) error { +func (m *FileMutation) ClearField(name string) error { switch name { - case groupsetting.FieldCreatedAt: + case file.FieldCreatedAt: m.ClearCreatedAt() return nil - case groupsetting.FieldUpdatedAt: + case file.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case groupsetting.FieldCreatedBy: + case file.FieldCreatedBy: m.ClearCreatedBy() return nil - case groupsetting.FieldUpdatedBy: + case file.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case groupsetting.FieldTags: - m.ClearTags() - return nil - case groupsetting.FieldDeletedAt: + case file.FieldDeletedAt: m.ClearDeletedAt() return nil - case groupsetting.FieldDeletedBy: + case file.FieldDeletedBy: m.ClearDeletedBy() return nil - case groupsetting.FieldSyncToSlack: - m.ClearSyncToSlack() + case file.FieldTags: + m.ClearTags() return nil - case groupsetting.FieldSyncToGithub: - m.ClearSyncToGithub() + case file.FieldProvidedFileSize: + m.ClearProvidedFileSize() return nil - case groupsetting.FieldGroupID: - m.ClearGroupID() + case file.FieldPersistedFileSize: + m.ClearPersistedFileSize() + return nil + case file.FieldDetectedMimeType: + m.ClearDetectedMimeType() + return nil + case file.FieldMd5Hash: + m.ClearMd5Hash() + return nil + case file.FieldStoreKey: + m.ClearStoreKey() + return nil + case file.FieldCategoryType: + m.ClearCategoryType() + return nil + case file.FieldURI: + m.ClearURI() + return nil + case file.FieldStorageScheme: + m.ClearStorageScheme() + return nil + case file.FieldStorageVolume: + m.ClearStorageVolume() + return nil + case file.FieldStoragePath: + m.ClearStoragePath() + return nil + case file.FieldFileContents: + m.ClearFileContents() return nil } - return fmt.Errorf("unknown GroupSetting nullable field %s", name) + return fmt.Errorf("unknown File 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 *GroupSettingMutation) ResetField(name string) error { +func (m *FileMutation) ResetField(name string) error { switch name { - case groupsetting.FieldCreatedAt: + case file.FieldCreatedAt: m.ResetCreatedAt() return nil - case groupsetting.FieldUpdatedAt: + case file.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case groupsetting.FieldCreatedBy: + case file.FieldCreatedBy: m.ResetCreatedBy() return nil - case groupsetting.FieldUpdatedBy: + case file.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case groupsetting.FieldMappingID: + case file.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case file.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case file.FieldMappingID: m.ResetMappingID() return nil - case groupsetting.FieldTags: + case file.FieldTags: m.ResetTags() return nil - case groupsetting.FieldDeletedAt: - m.ResetDeletedAt() + case file.FieldProvidedFileName: + m.ResetProvidedFileName() return nil - case groupsetting.FieldDeletedBy: - m.ResetDeletedBy() + case file.FieldProvidedFileExtension: + m.ResetProvidedFileExtension() return nil - case groupsetting.FieldVisibility: - m.ResetVisibility() + case file.FieldProvidedFileSize: + m.ResetProvidedFileSize() return nil - case groupsetting.FieldJoinPolicy: - m.ResetJoinPolicy() + case file.FieldPersistedFileSize: + m.ResetPersistedFileSize() return nil - case groupsetting.FieldSyncToSlack: - m.ResetSyncToSlack() + case file.FieldDetectedMimeType: + m.ResetDetectedMimeType() return nil - case groupsetting.FieldSyncToGithub: - m.ResetSyncToGithub() + case file.FieldMd5Hash: + m.ResetMd5Hash() return nil - case groupsetting.FieldGroupID: - m.ResetGroupID() + case file.FieldDetectedContentType: + m.ResetDetectedContentType() + return nil + case file.FieldStoreKey: + m.ResetStoreKey() + return nil + case file.FieldCategoryType: + m.ResetCategoryType() + return nil + case file.FieldURI: + m.ResetURI() + return nil + case file.FieldStorageScheme: + m.ResetStorageScheme() + return nil + case file.FieldStorageVolume: + m.ResetStorageVolume() + return nil + case file.FieldStoragePath: + m.ResetStoragePath() + return nil + case file.FieldFileContents: + m.ResetFileContents() return nil } - return fmt.Errorf("unknown GroupSetting field %s", name) + return fmt.Errorf("unknown File field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *GroupSettingMutation) AddedEdges() []string { - edges := make([]string, 0, 1) +func (m *FileMutation) AddedEdges() []string { + edges := make([]string, 0, 10) + if m.user != nil { + edges = append(edges, file.EdgeUser) + } + if m.organization != nil { + edges = append(edges, file.EdgeOrganization) + } if m.group != nil { - edges = append(edges, groupsetting.EdgeGroup) + edges = append(edges, file.EdgeGroup) + } + if m.contact != nil { + edges = append(edges, file.EdgeContact) + } + if m.entity != nil { + edges = append(edges, file.EdgeEntity) + } + if m.usersetting != nil { + edges = append(edges, file.EdgeUsersetting) + } + if m.organizationsetting != nil { + edges = append(edges, file.EdgeOrganizationsetting) + } + if m.template != nil { + edges = append(edges, file.EdgeTemplate) + } + if m.documentdata != nil { + edges = append(edges, file.EdgeDocumentdata) + } + if m.events != nil { + edges = append(edges, file.EdgeEvents) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *GroupSettingMutation) AddedIDs(name string) []ent.Value { +func (m *FileMutation) AddedIDs(name string) []ent.Value { switch name { - case groupsetting.EdgeGroup: - if id := m.group; id != nil { - return []ent.Value{*id} + case file.EdgeUser: + ids := make([]ent.Value, 0, len(m.user)) + for id := range m.user { + ids = append(ids, id) + } + return ids + case file.EdgeOrganization: + ids := make([]ent.Value, 0, len(m.organization)) + for id := range m.organization { + ids = append(ids, id) + } + return ids + case file.EdgeGroup: + ids := make([]ent.Value, 0, len(m.group)) + for id := range m.group { + ids = append(ids, id) + } + return ids + case file.EdgeContact: + ids := make([]ent.Value, 0, len(m.contact)) + for id := range m.contact { + ids = append(ids, id) + } + return ids + case file.EdgeEntity: + ids := make([]ent.Value, 0, len(m.entity)) + for id := range m.entity { + ids = append(ids, id) + } + return ids + case file.EdgeUsersetting: + ids := make([]ent.Value, 0, len(m.usersetting)) + for id := range m.usersetting { + ids = append(ids, id) + } + return ids + case file.EdgeOrganizationsetting: + ids := make([]ent.Value, 0, len(m.organizationsetting)) + for id := range m.organizationsetting { + ids = append(ids, id) + } + return ids + case file.EdgeTemplate: + ids := make([]ent.Value, 0, len(m.template)) + for id := range m.template { + ids = append(ids, id) + } + return ids + case file.EdgeDocumentdata: + ids := make([]ent.Value, 0, len(m.documentdata)) + for id := range m.documentdata { + ids = append(ids, id) } + return ids + case file.EdgeEvents: + ids := make([]ent.Value, 0, len(m.events)) + for id := range m.events { + ids = append(ids, id) + } + return ids } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *GroupSettingMutation) RemovedEdges() []string { - edges := make([]string, 0, 1) +func (m *FileMutation) RemovedEdges() []string { + edges := make([]string, 0, 10) + if m.removeduser != nil { + edges = append(edges, file.EdgeUser) + } + if m.removedorganization != nil { + edges = append(edges, file.EdgeOrganization) + } + if m.removedgroup != nil { + edges = append(edges, file.EdgeGroup) + } + if m.removedcontact != nil { + edges = append(edges, file.EdgeContact) + } + if m.removedentity != nil { + edges = append(edges, file.EdgeEntity) + } + if m.removedusersetting != nil { + edges = append(edges, file.EdgeUsersetting) + } + if m.removedorganizationsetting != nil { + edges = append(edges, file.EdgeOrganizationsetting) + } + if m.removedtemplate != nil { + edges = append(edges, file.EdgeTemplate) + } + if m.removeddocumentdata != nil { + edges = append(edges, file.EdgeDocumentdata) + } + if m.removedevents != nil { + edges = append(edges, file.EdgeEvents) + } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *GroupSettingMutation) RemovedIDs(name string) []ent.Value { +func (m *FileMutation) RemovedIDs(name string) []ent.Value { + switch name { + case file.EdgeUser: + ids := make([]ent.Value, 0, len(m.removeduser)) + for id := range m.removeduser { + ids = append(ids, id) + } + return ids + case file.EdgeOrganization: + ids := make([]ent.Value, 0, len(m.removedorganization)) + for id := range m.removedorganization { + ids = append(ids, id) + } + return ids + case file.EdgeGroup: + ids := make([]ent.Value, 0, len(m.removedgroup)) + for id := range m.removedgroup { + ids = append(ids, id) + } + return ids + case file.EdgeContact: + ids := make([]ent.Value, 0, len(m.removedcontact)) + for id := range m.removedcontact { + ids = append(ids, id) + } + return ids + case file.EdgeEntity: + ids := make([]ent.Value, 0, len(m.removedentity)) + for id := range m.removedentity { + ids = append(ids, id) + } + return ids + case file.EdgeUsersetting: + ids := make([]ent.Value, 0, len(m.removedusersetting)) + for id := range m.removedusersetting { + ids = append(ids, id) + } + return ids + case file.EdgeOrganizationsetting: + ids := make([]ent.Value, 0, len(m.removedorganizationsetting)) + for id := range m.removedorganizationsetting { + ids = append(ids, id) + } + return ids + case file.EdgeTemplate: + ids := make([]ent.Value, 0, len(m.removedtemplate)) + for id := range m.removedtemplate { + ids = append(ids, id) + } + return ids + case file.EdgeDocumentdata: + ids := make([]ent.Value, 0, len(m.removeddocumentdata)) + for id := range m.removeddocumentdata { + ids = append(ids, id) + } + return ids + case file.EdgeEvents: + ids := make([]ent.Value, 0, len(m.removedevents)) + for id := range m.removedevents { + ids = append(ids, id) + } + return ids + } return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *GroupSettingMutation) ClearedEdges() []string { - edges := make([]string, 0, 1) +func (m *FileMutation) ClearedEdges() []string { + edges := make([]string, 0, 10) + if m.cleareduser { + edges = append(edges, file.EdgeUser) + } + if m.clearedorganization { + edges = append(edges, file.EdgeOrganization) + } if m.clearedgroup { - edges = append(edges, groupsetting.EdgeGroup) + edges = append(edges, file.EdgeGroup) + } + if m.clearedcontact { + edges = append(edges, file.EdgeContact) + } + if m.clearedentity { + edges = append(edges, file.EdgeEntity) + } + if m.clearedusersetting { + edges = append(edges, file.EdgeUsersetting) + } + if m.clearedorganizationsetting { + edges = append(edges, file.EdgeOrganizationsetting) + } + if m.clearedtemplate { + edges = append(edges, file.EdgeTemplate) + } + if m.cleareddocumentdata { + edges = append(edges, file.EdgeDocumentdata) + } + if m.clearedevents { + edges = append(edges, file.EdgeEvents) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *GroupSettingMutation) EdgeCleared(name string) bool { +func (m *FileMutation) EdgeCleared(name string) bool { switch name { - case groupsetting.EdgeGroup: + case file.EdgeUser: + return m.cleareduser + case file.EdgeOrganization: + return m.clearedorganization + case file.EdgeGroup: return m.clearedgroup + case file.EdgeContact: + return m.clearedcontact + case file.EdgeEntity: + return m.clearedentity + case file.EdgeUsersetting: + return m.clearedusersetting + case file.EdgeOrganizationsetting: + return m.clearedorganizationsetting + case file.EdgeTemplate: + return m.clearedtemplate + case file.EdgeDocumentdata: + return m.cleareddocumentdata + case file.EdgeEvents: + return m.clearedevents } 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 *GroupSettingMutation) ClearEdge(name string) error { +func (m *FileMutation) ClearEdge(name string) error { switch name { - case groupsetting.EdgeGroup: - m.ClearGroup() - return nil } - return fmt.Errorf("unknown GroupSetting unique edge %s", name) + return fmt.Errorf("unknown File 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 *GroupSettingMutation) ResetEdge(name string) error { +func (m *FileMutation) ResetEdge(name string) error { switch name { - case groupsetting.EdgeGroup: + case file.EdgeUser: + m.ResetUser() + return nil + case file.EdgeOrganization: + m.ResetOrganization() + return nil + case file.EdgeGroup: m.ResetGroup() return nil + case file.EdgeContact: + m.ResetContact() + return nil + case file.EdgeEntity: + m.ResetEntity() + return nil + case file.EdgeUsersetting: + m.ResetUsersetting() + return nil + case file.EdgeOrganizationsetting: + m.ResetOrganizationsetting() + return nil + case file.EdgeTemplate: + m.ResetTemplate() + return nil + case file.EdgeDocumentdata: + m.ResetDocumentdata() + return nil + case file.EdgeEvents: + m.ResetEvents() + return nil } - return fmt.Errorf("unknown GroupSetting edge %s", name) + return fmt.Errorf("unknown File edge %s", name) } -// GroupSettingHistoryMutation represents an operation that mutates the GroupSettingHistory nodes in the graph. -type GroupSettingHistoryMutation struct { +// FileHistoryMutation represents an operation that mutates the FileHistory nodes in the graph. +type FileHistoryMutation 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 - mapping_id *string - tags *[]string - appendtags []string - deleted_at *time.Time - deleted_by *string - visibility *enums.Visibility - join_policy *enums.JoinPolicy - sync_to_slack *bool - sync_to_github *bool - group_id *string - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*GroupSettingHistory, error) - predicates []predicate.GroupSettingHistory + 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 + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + provided_file_name *string + provided_file_extension *string + provided_file_size *int64 + addprovided_file_size *int64 + persisted_file_size *int64 + addpersisted_file_size *int64 + detected_mime_type *string + md5_hash *string + detected_content_type *string + store_key *string + category_type *string + uri *string + storage_scheme *string + storage_volume *string + storage_path *string + file_contents *[]byte + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*FileHistory, error) + predicates []predicate.FileHistory } -var _ ent.Mutation = (*GroupSettingHistoryMutation)(nil) +var _ ent.Mutation = (*FileHistoryMutation)(nil) -// groupsettinghistoryOption allows management of the mutation configuration using functional options. -type groupsettinghistoryOption func(*GroupSettingHistoryMutation) +// filehistoryOption allows management of the mutation configuration using functional options. +type filehistoryOption func(*FileHistoryMutation) -// newGroupSettingHistoryMutation creates new mutation for the GroupSettingHistory entity. -func newGroupSettingHistoryMutation(c config, op Op, opts ...groupsettinghistoryOption) *GroupSettingHistoryMutation { - m := &GroupSettingHistoryMutation{ +// newFileHistoryMutation creates new mutation for the FileHistory entity. +func newFileHistoryMutation(c config, op Op, opts ...filehistoryOption) *FileHistoryMutation { + m := &FileHistoryMutation{ config: c, op: op, - typ: TypeGroupSettingHistory, + typ: TypeFileHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -41174,20 +43935,20 @@ func newGroupSettingHistoryMutation(c config, op Op, opts ...groupsettinghistory return m } -// withGroupSettingHistoryID sets the ID field of the mutation. -func withGroupSettingHistoryID(id string) groupsettinghistoryOption { - return func(m *GroupSettingHistoryMutation) { +// withFileHistoryID sets the ID field of the mutation. +func withFileHistoryID(id string) filehistoryOption { + return func(m *FileHistoryMutation) { var ( err error once sync.Once - value *GroupSettingHistory + value *FileHistory ) - m.oldValue = func(ctx context.Context) (*GroupSettingHistory, error) { + m.oldValue = func(ctx context.Context) (*FileHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().GroupSettingHistory.Get(ctx, id) + value, err = m.Client().FileHistory.Get(ctx, id) } }) return value, err @@ -41196,10 +43957,10 @@ func withGroupSettingHistoryID(id string) groupsettinghistoryOption { } } -// withGroupSettingHistory sets the old GroupSettingHistory of the mutation. -func withGroupSettingHistory(node *GroupSettingHistory) groupsettinghistoryOption { - return func(m *GroupSettingHistoryMutation) { - m.oldValue = func(context.Context) (*GroupSettingHistory, error) { +// withFileHistory sets the old FileHistory of the mutation. +func withFileHistory(node *FileHistory) filehistoryOption { + return func(m *FileHistoryMutation) { + m.oldValue = func(context.Context) (*FileHistory, error) { return node, nil } m.id = &node.ID @@ -41208,7 +43969,7 @@ func withGroupSettingHistory(node *GroupSettingHistory) groupsettinghistoryOptio // 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 GroupSettingHistoryMutation) Client() *Client { +func (m FileHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -41216,7 +43977,7 @@ func (m GroupSettingHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m GroupSettingHistoryMutation) Tx() (*Tx, error) { +func (m FileHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -41226,14 +43987,14 @@ func (m GroupSettingHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of GroupSettingHistory entities. -func (m *GroupSettingHistoryMutation) SetID(id string) { +// operation is only accepted on creation of FileHistory entities. +func (m *FileHistoryMutation) 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 *GroupSettingHistoryMutation) ID() (id string, exists bool) { +func (m *FileHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -41244,7 +44005,7 @@ func (m *GroupSettingHistoryMutation) ID() (id string, exists bool) { // 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 *GroupSettingHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *FileHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -41253,19 +44014,19 @@ func (m *GroupSettingHistoryMutation) IDs(ctx context.Context) ([]string, error) } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().GroupSettingHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().FileHistory.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 *GroupSettingHistoryMutation) SetHistoryTime(t time.Time) { +func (m *FileHistoryMutation) SetHistoryTime(t time.Time) { m.history_time = &t } // HistoryTime returns the value of the "history_time" field in the mutation. -func (m *GroupSettingHistoryMutation) HistoryTime() (r time.Time, exists bool) { +func (m *FileHistoryMutation) HistoryTime() (r time.Time, exists bool) { v := m.history_time if v == nil { return @@ -41273,10 +44034,10 @@ func (m *GroupSettingHistoryMutation) HistoryTime() (r time.Time, exists bool) { return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *FileHistoryMutation) 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") } @@ -41291,17 +44052,17 @@ func (m *GroupSettingHistoryMutation) OldHistoryTime(ctx context.Context) (v tim } // ResetHistoryTime resets all changes to the "history_time" field. -func (m *GroupSettingHistoryMutation) ResetHistoryTime() { +func (m *FileHistoryMutation) ResetHistoryTime() { m.history_time = nil } // SetRef sets the "ref" field. -func (m *GroupSettingHistoryMutation) SetRef(s string) { +func (m *FileHistoryMutation) SetRef(s string) { m.ref = &s } // Ref returns the value of the "ref" field in the mutation. -func (m *GroupSettingHistoryMutation) Ref() (r string, exists bool) { +func (m *FileHistoryMutation) Ref() (r string, exists bool) { v := m.ref if v == nil { return @@ -41309,10 +44070,10 @@ func (m *GroupSettingHistoryMutation) Ref() (r string, exists bool) { return *v, true } -// OldRef returns the old "ref" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *FileHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldRef is only allowed on UpdateOne operations") } @@ -41327,30 +44088,30 @@ func (m *GroupSettingHistoryMutation) OldRef(ctx context.Context) (v string, err } // ClearRef clears the value of the "ref" field. -func (m *GroupSettingHistoryMutation) ClearRef() { +func (m *FileHistoryMutation) ClearRef() { m.ref = nil - m.clearedFields[groupsettinghistory.FieldRef] = struct{}{} + m.clearedFields[filehistory.FieldRef] = struct{}{} } // RefCleared returns if the "ref" field was cleared in this mutation. -func (m *GroupSettingHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[groupsettinghistory.FieldRef] +func (m *FileHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[filehistory.FieldRef] return ok } // ResetRef resets all changes to the "ref" field. -func (m *GroupSettingHistoryMutation) ResetRef() { +func (m *FileHistoryMutation) ResetRef() { m.ref = nil - delete(m.clearedFields, groupsettinghistory.FieldRef) + delete(m.clearedFields, filehistory.FieldRef) } // SetOperation sets the "operation" field. -func (m *GroupSettingHistoryMutation) SetOperation(ht history.OpType) { +func (m *FileHistoryMutation) SetOperation(ht history.OpType) { m.operation = &ht } // Operation returns the value of the "operation" field in the mutation. -func (m *GroupSettingHistoryMutation) Operation() (r history.OpType, exists bool) { +func (m *FileHistoryMutation) Operation() (r history.OpType, exists bool) { v := m.operation if v == nil { return @@ -41358,10 +44119,10 @@ func (m *GroupSettingHistoryMutation) Operation() (r history.OpType, exists bool return *v, true } -// OldOperation returns the old "operation" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *FileHistoryMutation) 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") } @@ -41376,17 +44137,17 @@ func (m *GroupSettingHistoryMutation) OldOperation(ctx context.Context) (v histo } // ResetOperation resets all changes to the "operation" field. -func (m *GroupSettingHistoryMutation) ResetOperation() { +func (m *FileHistoryMutation) ResetOperation() { m.operation = nil } // SetCreatedAt sets the "created_at" field. -func (m *GroupSettingHistoryMutation) SetCreatedAt(t time.Time) { +func (m *FileHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *GroupSettingHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *FileHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -41394,10 +44155,10 @@ func (m *GroupSettingHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *FileHistoryMutation) 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") } @@ -41412,30 +44173,30 @@ func (m *GroupSettingHistoryMutation) OldCreatedAt(ctx context.Context) (v time. } // ClearCreatedAt clears the value of the "created_at" field. -func (m *GroupSettingHistoryMutation) ClearCreatedAt() { +func (m *FileHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[groupsettinghistory.FieldCreatedAt] = struct{}{} + m.clearedFields[filehistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *GroupSettingHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[groupsettinghistory.FieldCreatedAt] +func (m *FileHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[filehistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *GroupSettingHistoryMutation) ResetCreatedAt() { +func (m *FileHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, groupsettinghistory.FieldCreatedAt) + delete(m.clearedFields, filehistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *GroupSettingHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *FileHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *GroupSettingHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *FileHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -41443,10 +44204,10 @@ func (m *GroupSettingHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *FileHistoryMutation) 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") } @@ -41461,30 +44222,30 @@ func (m *GroupSettingHistoryMutation) OldUpdatedAt(ctx context.Context) (v time. } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *GroupSettingHistoryMutation) ClearUpdatedAt() { +func (m *FileHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[groupsettinghistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[filehistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *GroupSettingHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[groupsettinghistory.FieldUpdatedAt] +func (m *FileHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[filehistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *GroupSettingHistoryMutation) ResetUpdatedAt() { +func (m *FileHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, groupsettinghistory.FieldUpdatedAt) + delete(m.clearedFields, filehistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *GroupSettingHistoryMutation) SetCreatedBy(s string) { +func (m *FileHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *GroupSettingHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *FileHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -41492,10 +44253,10 @@ func (m *GroupSettingHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *FileHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -41510,30 +44271,30 @@ func (m *GroupSettingHistoryMutation) OldCreatedBy(ctx context.Context) (v strin } // ClearCreatedBy clears the value of the "created_by" field. -func (m *GroupSettingHistoryMutation) ClearCreatedBy() { +func (m *FileHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[groupsettinghistory.FieldCreatedBy] = struct{}{} + m.clearedFields[filehistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *GroupSettingHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[groupsettinghistory.FieldCreatedBy] +func (m *FileHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[filehistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *GroupSettingHistoryMutation) ResetCreatedBy() { +func (m *FileHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, groupsettinghistory.FieldCreatedBy) + delete(m.clearedFields, filehistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *GroupSettingHistoryMutation) SetUpdatedBy(s string) { +func (m *FileHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *GroupSettingHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *FileHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -41541,10 +44302,10 @@ func (m *GroupSettingHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *FileHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -41559,30 +44320,128 @@ func (m *GroupSettingHistoryMutation) OldUpdatedBy(ctx context.Context) (v strin } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *GroupSettingHistoryMutation) ClearUpdatedBy() { +func (m *FileHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[groupsettinghistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[filehistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *GroupSettingHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[groupsettinghistory.FieldUpdatedBy] +func (m *FileHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[filehistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *GroupSettingHistoryMutation) ResetUpdatedBy() { +func (m *FileHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, groupsettinghistory.FieldUpdatedBy) + delete(m.clearedFields, filehistory.FieldUpdatedBy) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *FileHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *FileHistoryMutation) 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 FileHistory entity. +// If the FileHistory 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 *FileHistoryMutation) 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 *FileHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[filehistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *FileHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[filehistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *FileHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, filehistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *FileHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *FileHistoryMutation) 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 FileHistory entity. +// If the FileHistory 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 *FileHistoryMutation) 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 *FileHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[filehistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *FileHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[filehistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *FileHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, filehistory.FieldDeletedBy) } // SetMappingID sets the "mapping_id" field. -func (m *GroupSettingHistoryMutation) SetMappingID(s string) { +func (m *FileHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *GroupSettingHistoryMutation) MappingID() (r string, exists bool) { +func (m *FileHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -41590,10 +44449,10 @@ func (m *GroupSettingHistoryMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *FileHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -41608,18 +44467,18 @@ func (m *GroupSettingHistoryMutation) OldMappingID(ctx context.Context) (v strin } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *GroupSettingHistoryMutation) ResetMappingID() { +func (m *FileHistoryMutation) ResetMappingID() { m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *GroupSettingHistoryMutation) SetTags(s []string) { +func (m *FileHistoryMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *GroupSettingHistoryMutation) Tags() (r []string, exists bool) { +func (m *FileHistoryMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -41627,10 +44486,10 @@ func (m *GroupSettingHistoryMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *FileHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -41645,12 +44504,12 @@ func (m *GroupSettingHistoryMutation) OldTags(ctx context.Context) (v []string, } // AppendTags adds s to the "tags" field. -func (m *GroupSettingHistoryMutation) AppendTags(s []string) { +func (m *FileHistoryMutation) 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 *GroupSettingHistoryMutation) AppendedTags() ([]string, bool) { +func (m *FileHistoryMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -41658,847 +44517,1447 @@ func (m *GroupSettingHistoryMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *GroupSettingHistoryMutation) ClearTags() { +func (m *FileHistoryMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[groupsettinghistory.FieldTags] = struct{}{} + m.clearedFields[filehistory.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *GroupSettingHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[groupsettinghistory.FieldTags] +func (m *FileHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[filehistory.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *GroupSettingHistoryMutation) ResetTags() { +func (m *FileHistoryMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, groupsettinghistory.FieldTags) + delete(m.clearedFields, filehistory.FieldTags) } -// SetDeletedAt sets the "deleted_at" field. -func (m *GroupSettingHistoryMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetProvidedFileName sets the "provided_file_name" field. +func (m *FileHistoryMutation) SetProvidedFileName(s string) { + m.provided_file_name = &s } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *GroupSettingHistoryMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// ProvidedFileName returns the value of the "provided_file_name" field in the mutation. +func (m *FileHistoryMutation) ProvidedFileName() (r string, exists bool) { + v := m.provided_file_name if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldProvidedFileName returns the old "provided_file_name" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *FileHistoryMutation) OldProvidedFileName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldProvidedFileName 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") + return v, errors.New("OldProvidedFileName 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 v, fmt.Errorf("querying old value for OldProvidedFileName: %w", err) } - return oldValue.DeletedAt, nil -} - -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *GroupSettingHistoryMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[groupsettinghistory.FieldDeletedAt] = struct{}{} -} - -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *GroupSettingHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[groupsettinghistory.FieldDeletedAt] - return ok + return oldValue.ProvidedFileName, nil } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *GroupSettingHistoryMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, groupsettinghistory.FieldDeletedAt) +// ResetProvidedFileName resets all changes to the "provided_file_name" field. +func (m *FileHistoryMutation) ResetProvidedFileName() { + m.provided_file_name = nil } -// SetDeletedBy sets the "deleted_by" field. -func (m *GroupSettingHistoryMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetProvidedFileExtension sets the "provided_file_extension" field. +func (m *FileHistoryMutation) SetProvidedFileExtension(s string) { + m.provided_file_extension = &s } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *GroupSettingHistoryMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// ProvidedFileExtension returns the value of the "provided_file_extension" field in the mutation. +func (m *FileHistoryMutation) ProvidedFileExtension() (r string, exists bool) { + v := m.provided_file_extension if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldProvidedFileExtension returns the old "provided_file_extension" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *FileHistoryMutation) OldProvidedFileExtension(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldProvidedFileExtension 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") + return v, errors.New("OldProvidedFileExtension 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 v, fmt.Errorf("querying old value for OldProvidedFileExtension: %w", err) } - return oldValue.DeletedBy, nil -} - -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *GroupSettingHistoryMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[groupsettinghistory.FieldDeletedBy] = struct{}{} -} - -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *GroupSettingHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[groupsettinghistory.FieldDeletedBy] - return ok + return oldValue.ProvidedFileExtension, nil } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *GroupSettingHistoryMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, groupsettinghistory.FieldDeletedBy) +// ResetProvidedFileExtension resets all changes to the "provided_file_extension" field. +func (m *FileHistoryMutation) ResetProvidedFileExtension() { + m.provided_file_extension = nil } -// SetVisibility sets the "visibility" field. -func (m *GroupSettingHistoryMutation) SetVisibility(e enums.Visibility) { - m.visibility = &e +// SetProvidedFileSize sets the "provided_file_size" field. +func (m *FileHistoryMutation) SetProvidedFileSize(i int64) { + m.provided_file_size = &i + m.addprovided_file_size = nil } -// Visibility returns the value of the "visibility" field in the mutation. -func (m *GroupSettingHistoryMutation) Visibility() (r enums.Visibility, exists bool) { - v := m.visibility +// ProvidedFileSize returns the value of the "provided_file_size" field in the mutation. +func (m *FileHistoryMutation) ProvidedFileSize() (r int64, exists bool) { + v := m.provided_file_size if v == nil { return } return *v, true } -// OldVisibility returns the old "visibility" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldProvidedFileSize returns the old "provided_file_size" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldVisibility(ctx context.Context) (v enums.Visibility, err error) { +func (m *FileHistoryMutation) OldProvidedFileSize(ctx context.Context) (v int64, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldVisibility is only allowed on UpdateOne operations") + return v, errors.New("OldProvidedFileSize is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldVisibility requires an ID field in the mutation") + return v, errors.New("OldProvidedFileSize requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldVisibility: %w", err) + return v, fmt.Errorf("querying old value for OldProvidedFileSize: %w", err) } - return oldValue.Visibility, nil -} - -// ResetVisibility resets all changes to the "visibility" field. -func (m *GroupSettingHistoryMutation) ResetVisibility() { - m.visibility = nil + return oldValue.ProvidedFileSize, nil } -// SetJoinPolicy sets the "join_policy" field. -func (m *GroupSettingHistoryMutation) SetJoinPolicy(ep enums.JoinPolicy) { - m.join_policy = &ep +// AddProvidedFileSize adds i to the "provided_file_size" field. +func (m *FileHistoryMutation) AddProvidedFileSize(i int64) { + if m.addprovided_file_size != nil { + *m.addprovided_file_size += i + } else { + m.addprovided_file_size = &i + } } -// JoinPolicy returns the value of the "join_policy" field in the mutation. -func (m *GroupSettingHistoryMutation) JoinPolicy() (r enums.JoinPolicy, exists bool) { - v := m.join_policy +// AddedProvidedFileSize returns the value that was added to the "provided_file_size" field in this mutation. +func (m *FileHistoryMutation) AddedProvidedFileSize() (r int64, exists bool) { + v := m.addprovided_file_size if v == nil { return } return *v, true } -// OldJoinPolicy returns the old "join_policy" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory 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 *GroupSettingHistoryMutation) OldJoinPolicy(ctx context.Context) (v enums.JoinPolicy, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldJoinPolicy is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldJoinPolicy requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldJoinPolicy: %w", err) - } - return oldValue.JoinPolicy, nil -} - -// ResetJoinPolicy resets all changes to the "join_policy" field. -func (m *GroupSettingHistoryMutation) ResetJoinPolicy() { - m.join_policy = nil +// ClearProvidedFileSize clears the value of the "provided_file_size" field. +func (m *FileHistoryMutation) ClearProvidedFileSize() { + m.provided_file_size = nil + m.addprovided_file_size = nil + m.clearedFields[filehistory.FieldProvidedFileSize] = struct{}{} } -// SetSyncToSlack sets the "sync_to_slack" field. -func (m *GroupSettingHistoryMutation) SetSyncToSlack(b bool) { - m.sync_to_slack = &b +// ProvidedFileSizeCleared returns if the "provided_file_size" field was cleared in this mutation. +func (m *FileHistoryMutation) ProvidedFileSizeCleared() bool { + _, ok := m.clearedFields[filehistory.FieldProvidedFileSize] + return ok } -// SyncToSlack returns the value of the "sync_to_slack" field in the mutation. -func (m *GroupSettingHistoryMutation) SyncToSlack() (r bool, exists bool) { - v := m.sync_to_slack +// ResetProvidedFileSize resets all changes to the "provided_file_size" field. +func (m *FileHistoryMutation) ResetProvidedFileSize() { + m.provided_file_size = nil + m.addprovided_file_size = nil + delete(m.clearedFields, filehistory.FieldProvidedFileSize) +} + +// SetPersistedFileSize sets the "persisted_file_size" field. +func (m *FileHistoryMutation) SetPersistedFileSize(i int64) { + m.persisted_file_size = &i + m.addpersisted_file_size = nil +} + +// PersistedFileSize returns the value of the "persisted_file_size" field in the mutation. +func (m *FileHistoryMutation) PersistedFileSize() (r int64, exists bool) { + v := m.persisted_file_size if v == nil { return } return *v, true } -// OldSyncToSlack returns the old "sync_to_slack" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldPersistedFileSize returns the old "persisted_file_size" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldSyncToSlack(ctx context.Context) (v bool, err error) { +func (m *FileHistoryMutation) OldPersistedFileSize(ctx context.Context) (v int64, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldSyncToSlack is only allowed on UpdateOne operations") + return v, errors.New("OldPersistedFileSize is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldSyncToSlack requires an ID field in the mutation") + return v, errors.New("OldPersistedFileSize requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldSyncToSlack: %w", err) + return v, fmt.Errorf("querying old value for OldPersistedFileSize: %w", err) } - return oldValue.SyncToSlack, nil + return oldValue.PersistedFileSize, nil } -// ClearSyncToSlack clears the value of the "sync_to_slack" field. -func (m *GroupSettingHistoryMutation) ClearSyncToSlack() { - m.sync_to_slack = nil - m.clearedFields[groupsettinghistory.FieldSyncToSlack] = struct{}{} +// AddPersistedFileSize adds i to the "persisted_file_size" field. +func (m *FileHistoryMutation) AddPersistedFileSize(i int64) { + if m.addpersisted_file_size != nil { + *m.addpersisted_file_size += i + } else { + m.addpersisted_file_size = &i + } } -// SyncToSlackCleared returns if the "sync_to_slack" field was cleared in this mutation. -func (m *GroupSettingHistoryMutation) SyncToSlackCleared() bool { - _, ok := m.clearedFields[groupsettinghistory.FieldSyncToSlack] +// AddedPersistedFileSize returns the value that was added to the "persisted_file_size" field in this mutation. +func (m *FileHistoryMutation) AddedPersistedFileSize() (r int64, exists bool) { + v := m.addpersisted_file_size + if v == nil { + return + } + return *v, true +} + +// ClearPersistedFileSize clears the value of the "persisted_file_size" field. +func (m *FileHistoryMutation) ClearPersistedFileSize() { + m.persisted_file_size = nil + m.addpersisted_file_size = nil + m.clearedFields[filehistory.FieldPersistedFileSize] = struct{}{} +} + +// PersistedFileSizeCleared returns if the "persisted_file_size" field was cleared in this mutation. +func (m *FileHistoryMutation) PersistedFileSizeCleared() bool { + _, ok := m.clearedFields[filehistory.FieldPersistedFileSize] return ok } -// ResetSyncToSlack resets all changes to the "sync_to_slack" field. -func (m *GroupSettingHistoryMutation) ResetSyncToSlack() { - m.sync_to_slack = nil - delete(m.clearedFields, groupsettinghistory.FieldSyncToSlack) +// ResetPersistedFileSize resets all changes to the "persisted_file_size" field. +func (m *FileHistoryMutation) ResetPersistedFileSize() { + m.persisted_file_size = nil + m.addpersisted_file_size = nil + delete(m.clearedFields, filehistory.FieldPersistedFileSize) } -// SetSyncToGithub sets the "sync_to_github" field. -func (m *GroupSettingHistoryMutation) SetSyncToGithub(b bool) { - m.sync_to_github = &b +// SetDetectedMimeType sets the "detected_mime_type" field. +func (m *FileHistoryMutation) SetDetectedMimeType(s string) { + m.detected_mime_type = &s } -// SyncToGithub returns the value of the "sync_to_github" field in the mutation. -func (m *GroupSettingHistoryMutation) SyncToGithub() (r bool, exists bool) { - v := m.sync_to_github +// DetectedMimeType returns the value of the "detected_mime_type" field in the mutation. +func (m *FileHistoryMutation) DetectedMimeType() (r string, exists bool) { + v := m.detected_mime_type if v == nil { return } return *v, true } -// OldSyncToGithub returns the old "sync_to_github" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDetectedMimeType returns the old "detected_mime_type" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldSyncToGithub(ctx context.Context) (v bool, err error) { +func (m *FileHistoryMutation) OldDetectedMimeType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldSyncToGithub is only allowed on UpdateOne operations") + return v, errors.New("OldDetectedMimeType is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldSyncToGithub requires an ID field in the mutation") + return v, errors.New("OldDetectedMimeType requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldSyncToGithub: %w", err) + return v, fmt.Errorf("querying old value for OldDetectedMimeType: %w", err) } - return oldValue.SyncToGithub, nil + return oldValue.DetectedMimeType, nil } -// ClearSyncToGithub clears the value of the "sync_to_github" field. -func (m *GroupSettingHistoryMutation) ClearSyncToGithub() { - m.sync_to_github = nil - m.clearedFields[groupsettinghistory.FieldSyncToGithub] = struct{}{} +// ClearDetectedMimeType clears the value of the "detected_mime_type" field. +func (m *FileHistoryMutation) ClearDetectedMimeType() { + m.detected_mime_type = nil + m.clearedFields[filehistory.FieldDetectedMimeType] = struct{}{} } -// SyncToGithubCleared returns if the "sync_to_github" field was cleared in this mutation. -func (m *GroupSettingHistoryMutation) SyncToGithubCleared() bool { - _, ok := m.clearedFields[groupsettinghistory.FieldSyncToGithub] +// DetectedMimeTypeCleared returns if the "detected_mime_type" field was cleared in this mutation. +func (m *FileHistoryMutation) DetectedMimeTypeCleared() bool { + _, ok := m.clearedFields[filehistory.FieldDetectedMimeType] return ok } -// ResetSyncToGithub resets all changes to the "sync_to_github" field. -func (m *GroupSettingHistoryMutation) ResetSyncToGithub() { - m.sync_to_github = nil - delete(m.clearedFields, groupsettinghistory.FieldSyncToGithub) +// ResetDetectedMimeType resets all changes to the "detected_mime_type" field. +func (m *FileHistoryMutation) ResetDetectedMimeType() { + m.detected_mime_type = nil + delete(m.clearedFields, filehistory.FieldDetectedMimeType) } -// SetGroupID sets the "group_id" field. -func (m *GroupSettingHistoryMutation) SetGroupID(s string) { - m.group_id = &s +// SetMd5Hash sets the "md5_hash" field. +func (m *FileHistoryMutation) SetMd5Hash(s string) { + m.md5_hash = &s } -// GroupID returns the value of the "group_id" field in the mutation. -func (m *GroupSettingHistoryMutation) GroupID() (r string, exists bool) { - v := m.group_id +// Md5Hash returns the value of the "md5_hash" field in the mutation. +func (m *FileHistoryMutation) Md5Hash() (r string, exists bool) { + v := m.md5_hash if v == nil { return } return *v, true } -// OldGroupID returns the old "group_id" field's value of the GroupSettingHistory entity. -// If the GroupSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMd5Hash returns the old "md5_hash" field's value of the FileHistory entity. +// If the FileHistory 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 *GroupSettingHistoryMutation) OldGroupID(ctx context.Context) (v string, err error) { +func (m *FileHistoryMutation) OldMd5Hash(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldGroupID is only allowed on UpdateOne operations") + return v, errors.New("OldMd5Hash 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") + return v, errors.New("OldMd5Hash 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 v, fmt.Errorf("querying old value for OldMd5Hash: %w", err) } - return oldValue.GroupID, nil + return oldValue.Md5Hash, nil } -// ClearGroupID clears the value of the "group_id" field. -func (m *GroupSettingHistoryMutation) ClearGroupID() { - m.group_id = nil - m.clearedFields[groupsettinghistory.FieldGroupID] = struct{}{} +// ClearMd5Hash clears the value of the "md5_hash" field. +func (m *FileHistoryMutation) ClearMd5Hash() { + m.md5_hash = nil + m.clearedFields[filehistory.FieldMd5Hash] = struct{}{} } -// GroupIDCleared returns if the "group_id" field was cleared in this mutation. -func (m *GroupSettingHistoryMutation) GroupIDCleared() bool { - _, ok := m.clearedFields[groupsettinghistory.FieldGroupID] +// Md5HashCleared returns if the "md5_hash" field was cleared in this mutation. +func (m *FileHistoryMutation) Md5HashCleared() bool { + _, ok := m.clearedFields[filehistory.FieldMd5Hash] return ok } -// ResetGroupID resets all changes to the "group_id" field. -func (m *GroupSettingHistoryMutation) ResetGroupID() { - m.group_id = nil - delete(m.clearedFields, groupsettinghistory.FieldGroupID) +// ResetMd5Hash resets all changes to the "md5_hash" field. +func (m *FileHistoryMutation) ResetMd5Hash() { + m.md5_hash = nil + delete(m.clearedFields, filehistory.FieldMd5Hash) } -// Where appends a list predicates to the GroupSettingHistoryMutation builder. -func (m *GroupSettingHistoryMutation) Where(ps ...predicate.GroupSettingHistory) { - m.predicates = append(m.predicates, ps...) +// SetDetectedContentType sets the "detected_content_type" field. +func (m *FileHistoryMutation) SetDetectedContentType(s string) { + m.detected_content_type = &s } -// WhereP appends storage-level predicates to the GroupSettingHistoryMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *GroupSettingHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.GroupSettingHistory, len(ps)) - for i := range ps { - p[i] = ps[i] +// DetectedContentType returns the value of the "detected_content_type" field in the mutation. +func (m *FileHistoryMutation) DetectedContentType() (r string, exists bool) { + v := m.detected_content_type + if v == nil { + return } - m.Where(p...) + return *v, true } -// Op returns the operation name. -func (m *GroupSettingHistoryMutation) Op() Op { - return m.op +// OldDetectedContentType returns the old "detected_content_type" field's value of the FileHistory entity. +// If the FileHistory 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 *FileHistoryMutation) OldDetectedContentType(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetectedContentType is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetectedContentType requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetectedContentType: %w", err) + } + return oldValue.DetectedContentType, nil } -// SetOp allows setting the mutation operation. -func (m *GroupSettingHistoryMutation) SetOp(op Op) { - m.op = op +// ResetDetectedContentType resets all changes to the "detected_content_type" field. +func (m *FileHistoryMutation) ResetDetectedContentType() { + m.detected_content_type = nil } -// Type returns the node type of this mutation (GroupSettingHistory). -func (m *GroupSettingHistoryMutation) Type() string { - return m.typ +// SetStoreKey sets the "store_key" field. +func (m *FileHistoryMutation) SetStoreKey(s string) { + m.store_key = &s } -// 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 *GroupSettingHistoryMutation) Fields() []string { - fields := make([]string, 0, 16) - if m.history_time != nil { - fields = append(fields, groupsettinghistory.FieldHistoryTime) +// StoreKey returns the value of the "store_key" field in the mutation. +func (m *FileHistoryMutation) StoreKey() (r string, exists bool) { + v := m.store_key + if v == nil { + return } - if m.ref != nil { - fields = append(fields, groupsettinghistory.FieldRef) + return *v, true +} + +// OldStoreKey returns the old "store_key" field's value of the FileHistory entity. +// If the FileHistory 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 *FileHistoryMutation) OldStoreKey(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStoreKey is only allowed on UpdateOne operations") } - if m.operation != nil { - fields = append(fields, groupsettinghistory.FieldOperation) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStoreKey requires an ID field in the mutation") } - if m.created_at != nil { - fields = append(fields, groupsettinghistory.FieldCreatedAt) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStoreKey: %w", err) } - if m.updated_at != nil { - fields = append(fields, groupsettinghistory.FieldUpdatedAt) + return oldValue.StoreKey, nil +} + +// ClearStoreKey clears the value of the "store_key" field. +func (m *FileHistoryMutation) ClearStoreKey() { + m.store_key = nil + m.clearedFields[filehistory.FieldStoreKey] = struct{}{} +} + +// StoreKeyCleared returns if the "store_key" field was cleared in this mutation. +func (m *FileHistoryMutation) StoreKeyCleared() bool { + _, ok := m.clearedFields[filehistory.FieldStoreKey] + return ok +} + +// ResetStoreKey resets all changes to the "store_key" field. +func (m *FileHistoryMutation) ResetStoreKey() { + m.store_key = nil + delete(m.clearedFields, filehistory.FieldStoreKey) +} + +// SetCategoryType sets the "category_type" field. +func (m *FileHistoryMutation) SetCategoryType(s string) { + m.category_type = &s +} + +// CategoryType returns the value of the "category_type" field in the mutation. +func (m *FileHistoryMutation) CategoryType() (r string, exists bool) { + v := m.category_type + if v == nil { + return } - if m.created_by != nil { - fields = append(fields, groupsettinghistory.FieldCreatedBy) + return *v, true +} + +// OldCategoryType returns the old "category_type" field's value of the FileHistory entity. +// If the FileHistory 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 *FileHistoryMutation) OldCategoryType(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCategoryType is only allowed on UpdateOne operations") } - if m.updated_by != nil { - fields = append(fields, groupsettinghistory.FieldUpdatedBy) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldCategoryType requires an ID field in the mutation") } - if m.mapping_id != nil { - fields = append(fields, groupsettinghistory.FieldMappingID) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldCategoryType: %w", err) } - if m.tags != nil { - fields = append(fields, groupsettinghistory.FieldTags) + return oldValue.CategoryType, nil +} + +// ClearCategoryType clears the value of the "category_type" field. +func (m *FileHistoryMutation) ClearCategoryType() { + m.category_type = nil + m.clearedFields[filehistory.FieldCategoryType] = struct{}{} +} + +// CategoryTypeCleared returns if the "category_type" field was cleared in this mutation. +func (m *FileHistoryMutation) CategoryTypeCleared() bool { + _, ok := m.clearedFields[filehistory.FieldCategoryType] + return ok +} + +// ResetCategoryType resets all changes to the "category_type" field. +func (m *FileHistoryMutation) ResetCategoryType() { + m.category_type = nil + delete(m.clearedFields, filehistory.FieldCategoryType) +} + +// SetURI sets the "uri" field. +func (m *FileHistoryMutation) SetURI(s string) { + m.uri = &s +} + +// URI returns the value of the "uri" field in the mutation. +func (m *FileHistoryMutation) URI() (r string, exists bool) { + v := m.uri + if v == nil { + return } - if m.deleted_at != nil { - fields = append(fields, groupsettinghistory.FieldDeletedAt) + return *v, true +} + +// OldURI returns the old "uri" field's value of the FileHistory entity. +// If the FileHistory 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 *FileHistoryMutation) OldURI(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldURI is only allowed on UpdateOne operations") } - if m.deleted_by != nil { - fields = append(fields, groupsettinghistory.FieldDeletedBy) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldURI requires an ID field in the mutation") } - if m.visibility != nil { - fields = append(fields, groupsettinghistory.FieldVisibility) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldURI: %w", err) } - if m.join_policy != nil { - fields = append(fields, groupsettinghistory.FieldJoinPolicy) + return oldValue.URI, nil +} + +// ClearURI clears the value of the "uri" field. +func (m *FileHistoryMutation) ClearURI() { + m.uri = nil + m.clearedFields[filehistory.FieldURI] = struct{}{} +} + +// URICleared returns if the "uri" field was cleared in this mutation. +func (m *FileHistoryMutation) URICleared() bool { + _, ok := m.clearedFields[filehistory.FieldURI] + return ok +} + +// ResetURI resets all changes to the "uri" field. +func (m *FileHistoryMutation) ResetURI() { + m.uri = nil + delete(m.clearedFields, filehistory.FieldURI) +} + +// SetStorageScheme sets the "storage_scheme" field. +func (m *FileHistoryMutation) SetStorageScheme(s string) { + m.storage_scheme = &s +} + +// StorageScheme returns the value of the "storage_scheme" field in the mutation. +func (m *FileHistoryMutation) StorageScheme() (r string, exists bool) { + v := m.storage_scheme + if v == nil { + return } - if m.sync_to_slack != nil { - fields = append(fields, groupsettinghistory.FieldSyncToSlack) + return *v, true +} + +// OldStorageScheme returns the old "storage_scheme" field's value of the FileHistory entity. +// If the FileHistory 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 *FileHistoryMutation) OldStorageScheme(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStorageScheme is only allowed on UpdateOne operations") } - if m.sync_to_github != nil { - fields = append(fields, groupsettinghistory.FieldSyncToGithub) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStorageScheme requires an ID field in the mutation") } - if m.group_id != nil { - fields = append(fields, groupsettinghistory.FieldGroupID) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStorageScheme: %w", err) } - return fields + return oldValue.StorageScheme, nil } -// 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 *GroupSettingHistoryMutation) Field(name string) (ent.Value, bool) { - switch name { - case groupsettinghistory.FieldHistoryTime: - return m.HistoryTime() - case groupsettinghistory.FieldRef: - return m.Ref() - case groupsettinghistory.FieldOperation: - return m.Operation() - case groupsettinghistory.FieldCreatedAt: - return m.CreatedAt() - case groupsettinghistory.FieldUpdatedAt: - return m.UpdatedAt() - case groupsettinghistory.FieldCreatedBy: - return m.CreatedBy() - case groupsettinghistory.FieldUpdatedBy: - return m.UpdatedBy() - case groupsettinghistory.FieldMappingID: - return m.MappingID() - case groupsettinghistory.FieldTags: - return m.Tags() - case groupsettinghistory.FieldDeletedAt: - return m.DeletedAt() - case groupsettinghistory.FieldDeletedBy: - return m.DeletedBy() - case groupsettinghistory.FieldVisibility: - return m.Visibility() - case groupsettinghistory.FieldJoinPolicy: - return m.JoinPolicy() - case groupsettinghistory.FieldSyncToSlack: - return m.SyncToSlack() - case groupsettinghistory.FieldSyncToGithub: - return m.SyncToGithub() - case groupsettinghistory.FieldGroupID: - return m.GroupID() +// ClearStorageScheme clears the value of the "storage_scheme" field. +func (m *FileHistoryMutation) ClearStorageScheme() { + m.storage_scheme = nil + m.clearedFields[filehistory.FieldStorageScheme] = struct{}{} +} + +// StorageSchemeCleared returns if the "storage_scheme" field was cleared in this mutation. +func (m *FileHistoryMutation) StorageSchemeCleared() bool { + _, ok := m.clearedFields[filehistory.FieldStorageScheme] + return ok +} + +// ResetStorageScheme resets all changes to the "storage_scheme" field. +func (m *FileHistoryMutation) ResetStorageScheme() { + m.storage_scheme = nil + delete(m.clearedFields, filehistory.FieldStorageScheme) +} + +// SetStorageVolume sets the "storage_volume" field. +func (m *FileHistoryMutation) SetStorageVolume(s string) { + m.storage_volume = &s +} + +// StorageVolume returns the value of the "storage_volume" field in the mutation. +func (m *FileHistoryMutation) StorageVolume() (r string, exists bool) { + v := m.storage_volume + if v == nil { + return } - return nil, false + return *v, true } -// 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 *GroupSettingHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { - switch name { - case groupsettinghistory.FieldHistoryTime: - return m.OldHistoryTime(ctx) - case groupsettinghistory.FieldRef: - return m.OldRef(ctx) - case groupsettinghistory.FieldOperation: - return m.OldOperation(ctx) - case groupsettinghistory.FieldCreatedAt: - return m.OldCreatedAt(ctx) - case groupsettinghistory.FieldUpdatedAt: - return m.OldUpdatedAt(ctx) - case groupsettinghistory.FieldCreatedBy: - return m.OldCreatedBy(ctx) - case groupsettinghistory.FieldUpdatedBy: +// OldStorageVolume returns the old "storage_volume" field's value of the FileHistory entity. +// If the FileHistory 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 *FileHistoryMutation) OldStorageVolume(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStorageVolume is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStorageVolume requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStorageVolume: %w", err) + } + return oldValue.StorageVolume, nil +} + +// ClearStorageVolume clears the value of the "storage_volume" field. +func (m *FileHistoryMutation) ClearStorageVolume() { + m.storage_volume = nil + m.clearedFields[filehistory.FieldStorageVolume] = struct{}{} +} + +// StorageVolumeCleared returns if the "storage_volume" field was cleared in this mutation. +func (m *FileHistoryMutation) StorageVolumeCleared() bool { + _, ok := m.clearedFields[filehistory.FieldStorageVolume] + return ok +} + +// ResetStorageVolume resets all changes to the "storage_volume" field. +func (m *FileHistoryMutation) ResetStorageVolume() { + m.storage_volume = nil + delete(m.clearedFields, filehistory.FieldStorageVolume) +} + +// SetStoragePath sets the "storage_path" field. +func (m *FileHistoryMutation) SetStoragePath(s string) { + m.storage_path = &s +} + +// StoragePath returns the value of the "storage_path" field in the mutation. +func (m *FileHistoryMutation) StoragePath() (r string, exists bool) { + v := m.storage_path + if v == nil { + return + } + return *v, true +} + +// OldStoragePath returns the old "storage_path" field's value of the FileHistory entity. +// If the FileHistory 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 *FileHistoryMutation) OldStoragePath(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStoragePath is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStoragePath requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStoragePath: %w", err) + } + return oldValue.StoragePath, nil +} + +// ClearStoragePath clears the value of the "storage_path" field. +func (m *FileHistoryMutation) ClearStoragePath() { + m.storage_path = nil + m.clearedFields[filehistory.FieldStoragePath] = struct{}{} +} + +// StoragePathCleared returns if the "storage_path" field was cleared in this mutation. +func (m *FileHistoryMutation) StoragePathCleared() bool { + _, ok := m.clearedFields[filehistory.FieldStoragePath] + return ok +} + +// ResetStoragePath resets all changes to the "storage_path" field. +func (m *FileHistoryMutation) ResetStoragePath() { + m.storage_path = nil + delete(m.clearedFields, filehistory.FieldStoragePath) +} + +// SetFileContents sets the "file_contents" field. +func (m *FileHistoryMutation) SetFileContents(b []byte) { + m.file_contents = &b +} + +// FileContents returns the value of the "file_contents" field in the mutation. +func (m *FileHistoryMutation) FileContents() (r []byte, exists bool) { + v := m.file_contents + if v == nil { + return + } + return *v, true +} + +// OldFileContents returns the old "file_contents" field's value of the FileHistory entity. +// If the FileHistory 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 *FileHistoryMutation) OldFileContents(ctx context.Context) (v []byte, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldFileContents is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldFileContents requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldFileContents: %w", err) + } + return oldValue.FileContents, nil +} + +// ClearFileContents clears the value of the "file_contents" field. +func (m *FileHistoryMutation) ClearFileContents() { + m.file_contents = nil + m.clearedFields[filehistory.FieldFileContents] = struct{}{} +} + +// FileContentsCleared returns if the "file_contents" field was cleared in this mutation. +func (m *FileHistoryMutation) FileContentsCleared() bool { + _, ok := m.clearedFields[filehistory.FieldFileContents] + return ok +} + +// ResetFileContents resets all changes to the "file_contents" field. +func (m *FileHistoryMutation) ResetFileContents() { + m.file_contents = nil + delete(m.clearedFields, filehistory.FieldFileContents) +} + +// Where appends a list predicates to the FileHistoryMutation builder. +func (m *FileHistoryMutation) Where(ps ...predicate.FileHistory) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the FileHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *FileHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.FileHistory, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *FileHistoryMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *FileHistoryMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (FileHistory). +func (m *FileHistoryMutation) 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 *FileHistoryMutation) Fields() []string { + fields := make([]string, 0, 25) + if m.history_time != nil { + fields = append(fields, filehistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, filehistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, filehistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, filehistory.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, filehistory.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, filehistory.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, filehistory.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, filehistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, filehistory.FieldDeletedBy) + } + if m.mapping_id != nil { + fields = append(fields, filehistory.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, filehistory.FieldTags) + } + if m.provided_file_name != nil { + fields = append(fields, filehistory.FieldProvidedFileName) + } + if m.provided_file_extension != nil { + fields = append(fields, filehistory.FieldProvidedFileExtension) + } + if m.provided_file_size != nil { + fields = append(fields, filehistory.FieldProvidedFileSize) + } + if m.persisted_file_size != nil { + fields = append(fields, filehistory.FieldPersistedFileSize) + } + if m.detected_mime_type != nil { + fields = append(fields, filehistory.FieldDetectedMimeType) + } + if m.md5_hash != nil { + fields = append(fields, filehistory.FieldMd5Hash) + } + if m.detected_content_type != nil { + fields = append(fields, filehistory.FieldDetectedContentType) + } + if m.store_key != nil { + fields = append(fields, filehistory.FieldStoreKey) + } + if m.category_type != nil { + fields = append(fields, filehistory.FieldCategoryType) + } + if m.uri != nil { + fields = append(fields, filehistory.FieldURI) + } + if m.storage_scheme != nil { + fields = append(fields, filehistory.FieldStorageScheme) + } + if m.storage_volume != nil { + fields = append(fields, filehistory.FieldStorageVolume) + } + if m.storage_path != nil { + fields = append(fields, filehistory.FieldStoragePath) + } + if m.file_contents != nil { + fields = append(fields, filehistory.FieldFileContents) + } + 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 *FileHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case filehistory.FieldHistoryTime: + return m.HistoryTime() + case filehistory.FieldRef: + return m.Ref() + case filehistory.FieldOperation: + return m.Operation() + case filehistory.FieldCreatedAt: + return m.CreatedAt() + case filehistory.FieldUpdatedAt: + return m.UpdatedAt() + case filehistory.FieldCreatedBy: + return m.CreatedBy() + case filehistory.FieldUpdatedBy: + return m.UpdatedBy() + case filehistory.FieldDeletedAt: + return m.DeletedAt() + case filehistory.FieldDeletedBy: + return m.DeletedBy() + case filehistory.FieldMappingID: + return m.MappingID() + case filehistory.FieldTags: + return m.Tags() + case filehistory.FieldProvidedFileName: + return m.ProvidedFileName() + case filehistory.FieldProvidedFileExtension: + return m.ProvidedFileExtension() + case filehistory.FieldProvidedFileSize: + return m.ProvidedFileSize() + case filehistory.FieldPersistedFileSize: + return m.PersistedFileSize() + case filehistory.FieldDetectedMimeType: + return m.DetectedMimeType() + case filehistory.FieldMd5Hash: + return m.Md5Hash() + case filehistory.FieldDetectedContentType: + return m.DetectedContentType() + case filehistory.FieldStoreKey: + return m.StoreKey() + case filehistory.FieldCategoryType: + return m.CategoryType() + case filehistory.FieldURI: + return m.URI() + case filehistory.FieldStorageScheme: + return m.StorageScheme() + case filehistory.FieldStorageVolume: + return m.StorageVolume() + case filehistory.FieldStoragePath: + return m.StoragePath() + case filehistory.FieldFileContents: + return m.FileContents() + } + 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 *FileHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case filehistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case filehistory.FieldRef: + return m.OldRef(ctx) + case filehistory.FieldOperation: + return m.OldOperation(ctx) + case filehistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case filehistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case filehistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case filehistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case groupsettinghistory.FieldMappingID: - return m.OldMappingID(ctx) - case groupsettinghistory.FieldTags: - return m.OldTags(ctx) - case groupsettinghistory.FieldDeletedAt: + case filehistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case groupsettinghistory.FieldDeletedBy: + case filehistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case groupsettinghistory.FieldVisibility: - return m.OldVisibility(ctx) - case groupsettinghistory.FieldJoinPolicy: - return m.OldJoinPolicy(ctx) - case groupsettinghistory.FieldSyncToSlack: - return m.OldSyncToSlack(ctx) - case groupsettinghistory.FieldSyncToGithub: - return m.OldSyncToGithub(ctx) - case groupsettinghistory.FieldGroupID: - return m.OldGroupID(ctx) + case filehistory.FieldMappingID: + return m.OldMappingID(ctx) + case filehistory.FieldTags: + return m.OldTags(ctx) + case filehistory.FieldProvidedFileName: + return m.OldProvidedFileName(ctx) + case filehistory.FieldProvidedFileExtension: + return m.OldProvidedFileExtension(ctx) + case filehistory.FieldProvidedFileSize: + return m.OldProvidedFileSize(ctx) + case filehistory.FieldPersistedFileSize: + return m.OldPersistedFileSize(ctx) + case filehistory.FieldDetectedMimeType: + return m.OldDetectedMimeType(ctx) + case filehistory.FieldMd5Hash: + return m.OldMd5Hash(ctx) + case filehistory.FieldDetectedContentType: + return m.OldDetectedContentType(ctx) + case filehistory.FieldStoreKey: + return m.OldStoreKey(ctx) + case filehistory.FieldCategoryType: + return m.OldCategoryType(ctx) + case filehistory.FieldURI: + return m.OldURI(ctx) + case filehistory.FieldStorageScheme: + return m.OldStorageScheme(ctx) + case filehistory.FieldStorageVolume: + return m.OldStorageVolume(ctx) + case filehistory.FieldStoragePath: + return m.OldStoragePath(ctx) + case filehistory.FieldFileContents: + return m.OldFileContents(ctx) } - return nil, fmt.Errorf("unknown GroupSettingHistory field %s", name) + return nil, fmt.Errorf("unknown FileHistory 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 *GroupSettingHistoryMutation) SetField(name string, value ent.Value) error { +func (m *FileHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case groupsettinghistory.FieldHistoryTime: + case filehistory.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 groupsettinghistory.FieldRef: + case filehistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetRef(v) return nil - case groupsettinghistory.FieldOperation: + case filehistory.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 groupsettinghistory.FieldCreatedAt: + case filehistory.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 groupsettinghistory.FieldUpdatedAt: + case filehistory.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 groupsettinghistory.FieldCreatedBy: + case filehistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case groupsettinghistory.FieldUpdatedBy: + case filehistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case groupsettinghistory.FieldMappingID: + case filehistory.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 filehistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case filehistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case groupsettinghistory.FieldTags: + case filehistory.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case groupsettinghistory.FieldDeletedAt: - v, ok := value.(time.Time) + case filehistory.FieldProvidedFileName: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetProvidedFileName(v) return nil - case groupsettinghistory.FieldDeletedBy: + case filehistory.FieldProvidedFileExtension: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetProvidedFileExtension(v) return nil - case groupsettinghistory.FieldVisibility: - v, ok := value.(enums.Visibility) + case filehistory.FieldProvidedFileSize: + v, ok := value.(int64) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetVisibility(v) + m.SetProvidedFileSize(v) return nil - case groupsettinghistory.FieldJoinPolicy: - v, ok := value.(enums.JoinPolicy) + case filehistory.FieldPersistedFileSize: + v, ok := value.(int64) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetJoinPolicy(v) + m.SetPersistedFileSize(v) return nil - case groupsettinghistory.FieldSyncToSlack: - v, ok := value.(bool) + case filehistory.FieldDetectedMimeType: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetSyncToSlack(v) + m.SetDetectedMimeType(v) return nil - case groupsettinghistory.FieldSyncToGithub: - v, ok := value.(bool) + case filehistory.FieldMd5Hash: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetSyncToGithub(v) + m.SetMd5Hash(v) return nil - case groupsettinghistory.FieldGroupID: + case filehistory.FieldDetectedContentType: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetGroupID(v) + m.SetDetectedContentType(v) + return nil + case filehistory.FieldStoreKey: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStoreKey(v) + return nil + case filehistory.FieldCategoryType: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCategoryType(v) + return nil + case filehistory.FieldURI: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetURI(v) + return nil + case filehistory.FieldStorageScheme: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStorageScheme(v) + return nil + case filehistory.FieldStorageVolume: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStorageVolume(v) + return nil + case filehistory.FieldStoragePath: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStoragePath(v) + return nil + case filehistory.FieldFileContents: + v, ok := value.([]byte) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetFileContents(v) return nil } - return fmt.Errorf("unknown GroupSettingHistory field %s", name) + return fmt.Errorf("unknown FileHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *GroupSettingHistoryMutation) AddedFields() []string { - return nil +func (m *FileHistoryMutation) AddedFields() []string { + var fields []string + if m.addprovided_file_size != nil { + fields = append(fields, filehistory.FieldProvidedFileSize) + } + if m.addpersisted_file_size != nil { + fields = append(fields, filehistory.FieldPersistedFileSize) + } + return fields } // 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 *GroupSettingHistoryMutation) AddedField(name string) (ent.Value, bool) { - return nil, false +func (m *FileHistoryMutation) AddedField(name string) (ent.Value, bool) { + switch name { + case filehistory.FieldProvidedFileSize: + return m.AddedProvidedFileSize() + case filehistory.FieldPersistedFileSize: + return m.AddedPersistedFileSize() + } + 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 *GroupSettingHistoryMutation) AddField(name string, value ent.Value) error { +func (m *FileHistoryMutation) AddField(name string, value ent.Value) error { switch name { + case filehistory.FieldProvidedFileSize: + v, ok := value.(int64) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.AddProvidedFileSize(v) + return nil + case filehistory.FieldPersistedFileSize: + v, ok := value.(int64) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.AddPersistedFileSize(v) + return nil } - return fmt.Errorf("unknown GroupSettingHistory numeric field %s", name) + return fmt.Errorf("unknown FileHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *GroupSettingHistoryMutation) ClearedFields() []string { +func (m *FileHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(groupsettinghistory.FieldRef) { - fields = append(fields, groupsettinghistory.FieldRef) + if m.FieldCleared(filehistory.FieldRef) { + fields = append(fields, filehistory.FieldRef) } - if m.FieldCleared(groupsettinghistory.FieldCreatedAt) { - fields = append(fields, groupsettinghistory.FieldCreatedAt) + if m.FieldCleared(filehistory.FieldCreatedAt) { + fields = append(fields, filehistory.FieldCreatedAt) } - if m.FieldCleared(groupsettinghistory.FieldUpdatedAt) { - fields = append(fields, groupsettinghistory.FieldUpdatedAt) + if m.FieldCleared(filehistory.FieldUpdatedAt) { + fields = append(fields, filehistory.FieldUpdatedAt) } - if m.FieldCleared(groupsettinghistory.FieldCreatedBy) { - fields = append(fields, groupsettinghistory.FieldCreatedBy) + if m.FieldCleared(filehistory.FieldCreatedBy) { + fields = append(fields, filehistory.FieldCreatedBy) } - if m.FieldCleared(groupsettinghistory.FieldUpdatedBy) { - fields = append(fields, groupsettinghistory.FieldUpdatedBy) + if m.FieldCleared(filehistory.FieldUpdatedBy) { + fields = append(fields, filehistory.FieldUpdatedBy) } - if m.FieldCleared(groupsettinghistory.FieldTags) { - fields = append(fields, groupsettinghistory.FieldTags) + if m.FieldCleared(filehistory.FieldDeletedAt) { + fields = append(fields, filehistory.FieldDeletedAt) } - if m.FieldCleared(groupsettinghistory.FieldDeletedAt) { - fields = append(fields, groupsettinghistory.FieldDeletedAt) + if m.FieldCleared(filehistory.FieldDeletedBy) { + fields = append(fields, filehistory.FieldDeletedBy) } - if m.FieldCleared(groupsettinghistory.FieldDeletedBy) { - fields = append(fields, groupsettinghistory.FieldDeletedBy) + if m.FieldCleared(filehistory.FieldTags) { + fields = append(fields, filehistory.FieldTags) } - if m.FieldCleared(groupsettinghistory.FieldSyncToSlack) { - fields = append(fields, groupsettinghistory.FieldSyncToSlack) + if m.FieldCleared(filehistory.FieldProvidedFileSize) { + fields = append(fields, filehistory.FieldProvidedFileSize) } - if m.FieldCleared(groupsettinghistory.FieldSyncToGithub) { - fields = append(fields, groupsettinghistory.FieldSyncToGithub) + if m.FieldCleared(filehistory.FieldPersistedFileSize) { + fields = append(fields, filehistory.FieldPersistedFileSize) } - if m.FieldCleared(groupsettinghistory.FieldGroupID) { - fields = append(fields, groupsettinghistory.FieldGroupID) + if m.FieldCleared(filehistory.FieldDetectedMimeType) { + fields = append(fields, filehistory.FieldDetectedMimeType) + } + if m.FieldCleared(filehistory.FieldMd5Hash) { + fields = append(fields, filehistory.FieldMd5Hash) + } + if m.FieldCleared(filehistory.FieldStoreKey) { + fields = append(fields, filehistory.FieldStoreKey) + } + if m.FieldCleared(filehistory.FieldCategoryType) { + fields = append(fields, filehistory.FieldCategoryType) + } + if m.FieldCleared(filehistory.FieldURI) { + fields = append(fields, filehistory.FieldURI) + } + if m.FieldCleared(filehistory.FieldStorageScheme) { + fields = append(fields, filehistory.FieldStorageScheme) + } + if m.FieldCleared(filehistory.FieldStorageVolume) { + fields = append(fields, filehistory.FieldStorageVolume) + } + if m.FieldCleared(filehistory.FieldStoragePath) { + fields = append(fields, filehistory.FieldStoragePath) + } + if m.FieldCleared(filehistory.FieldFileContents) { + fields = append(fields, filehistory.FieldFileContents) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *GroupSettingHistoryMutation) FieldCleared(name string) bool { +func (m *FileHistoryMutation) 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 *GroupSettingHistoryMutation) ClearField(name string) error { +func (m *FileHistoryMutation) ClearField(name string) error { switch name { - case groupsettinghistory.FieldRef: + case filehistory.FieldRef: m.ClearRef() return nil - case groupsettinghistory.FieldCreatedAt: + case filehistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case groupsettinghistory.FieldUpdatedAt: + case filehistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case groupsettinghistory.FieldCreatedBy: + case filehistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case groupsettinghistory.FieldUpdatedBy: + case filehistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case groupsettinghistory.FieldTags: - m.ClearTags() - return nil - case groupsettinghistory.FieldDeletedAt: + case filehistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case groupsettinghistory.FieldDeletedBy: + case filehistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case groupsettinghistory.FieldSyncToSlack: - m.ClearSyncToSlack() + case filehistory.FieldTags: + m.ClearTags() return nil - case groupsettinghistory.FieldSyncToGithub: - m.ClearSyncToGithub() + case filehistory.FieldProvidedFileSize: + m.ClearProvidedFileSize() return nil - case groupsettinghistory.FieldGroupID: - m.ClearGroupID() + case filehistory.FieldPersistedFileSize: + m.ClearPersistedFileSize() + return nil + case filehistory.FieldDetectedMimeType: + m.ClearDetectedMimeType() + return nil + case filehistory.FieldMd5Hash: + m.ClearMd5Hash() + return nil + case filehistory.FieldStoreKey: + m.ClearStoreKey() + return nil + case filehistory.FieldCategoryType: + m.ClearCategoryType() + return nil + case filehistory.FieldURI: + m.ClearURI() + return nil + case filehistory.FieldStorageScheme: + m.ClearStorageScheme() + return nil + case filehistory.FieldStorageVolume: + m.ClearStorageVolume() + return nil + case filehistory.FieldStoragePath: + m.ClearStoragePath() + return nil + case filehistory.FieldFileContents: + m.ClearFileContents() return nil } - return fmt.Errorf("unknown GroupSettingHistory nullable field %s", name) + return fmt.Errorf("unknown FileHistory 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 *GroupSettingHistoryMutation) ResetField(name string) error { +func (m *FileHistoryMutation) ResetField(name string) error { switch name { - case groupsettinghistory.FieldHistoryTime: + case filehistory.FieldHistoryTime: m.ResetHistoryTime() return nil - case groupsettinghistory.FieldRef: + case filehistory.FieldRef: m.ResetRef() return nil - case groupsettinghistory.FieldOperation: + case filehistory.FieldOperation: m.ResetOperation() return nil - case groupsettinghistory.FieldCreatedAt: + case filehistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case groupsettinghistory.FieldUpdatedAt: + case filehistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case groupsettinghistory.FieldCreatedBy: + case filehistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case groupsettinghistory.FieldUpdatedBy: + case filehistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case groupsettinghistory.FieldMappingID: + case filehistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case filehistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case filehistory.FieldMappingID: m.ResetMappingID() return nil - case groupsettinghistory.FieldTags: + case filehistory.FieldTags: m.ResetTags() return nil - case groupsettinghistory.FieldDeletedAt: - m.ResetDeletedAt() + case filehistory.FieldProvidedFileName: + m.ResetProvidedFileName() return nil - case groupsettinghistory.FieldDeletedBy: - m.ResetDeletedBy() + case filehistory.FieldProvidedFileExtension: + m.ResetProvidedFileExtension() return nil - case groupsettinghistory.FieldVisibility: - m.ResetVisibility() + case filehistory.FieldProvidedFileSize: + m.ResetProvidedFileSize() return nil - case groupsettinghistory.FieldJoinPolicy: - m.ResetJoinPolicy() + case filehistory.FieldPersistedFileSize: + m.ResetPersistedFileSize() return nil - case groupsettinghistory.FieldSyncToSlack: - m.ResetSyncToSlack() + case filehistory.FieldDetectedMimeType: + m.ResetDetectedMimeType() return nil - case groupsettinghistory.FieldSyncToGithub: - m.ResetSyncToGithub() + case filehistory.FieldMd5Hash: + m.ResetMd5Hash() return nil - case groupsettinghistory.FieldGroupID: - m.ResetGroupID() + case filehistory.FieldDetectedContentType: + m.ResetDetectedContentType() + return nil + case filehistory.FieldStoreKey: + m.ResetStoreKey() + return nil + case filehistory.FieldCategoryType: + m.ResetCategoryType() + return nil + case filehistory.FieldURI: + m.ResetURI() + return nil + case filehistory.FieldStorageScheme: + m.ResetStorageScheme() + return nil + case filehistory.FieldStorageVolume: + m.ResetStorageVolume() + return nil + case filehistory.FieldStoragePath: + m.ResetStoragePath() + return nil + case filehistory.FieldFileContents: + m.ResetFileContents() return nil } - return fmt.Errorf("unknown GroupSettingHistory field %s", name) + return fmt.Errorf("unknown FileHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *GroupSettingHistoryMutation) AddedEdges() []string { +func (m *FileHistoryMutation) 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 *GroupSettingHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *FileHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *GroupSettingHistoryMutation) RemovedEdges() []string { +func (m *FileHistoryMutation) 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 *GroupSettingHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *FileHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *GroupSettingHistoryMutation) ClearedEdges() []string { +func (m *FileHistoryMutation) 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 *GroupSettingHistoryMutation) EdgeCleared(name string) bool { +func (m *FileHistoryMutation) 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 *GroupSettingHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown GroupSettingHistory unique edge %s", name) +func (m *FileHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown FileHistory 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 *GroupSettingHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown GroupSettingHistory edge %s", name) +func (m *FileHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown FileHistory edge %s", name) } -// HushMutation represents an operation that mutates the Hush nodes in the graph. -type HushMutation struct { +// GroupMutation represents an operation that mutates the Group nodes in the graph. +type GroupMutation struct { config op Op typ string @@ -42507,40 +45966,52 @@ type HushMutation struct { updated_at *time.Time created_by *string updated_by *string - mapping_id *string deleted_at *time.Time deleted_by *string + mapping_id *string + tags *[]string + appendtags []string name *string description *string - kind *string - secret_name *string - secret_value *string + gravatar_logo_url *string + logo_url *string + display_name *string clearedFields map[string]struct{} - integrations map[string]struct{} - removedintegrations map[string]struct{} - clearedintegrations bool - organization map[string]struct{} - removedorganization map[string]struct{} - clearedorganization bool + owner *string + clearedowner bool + setting *string + clearedsetting bool + users map[string]struct{} + removedusers map[string]struct{} + clearedusers bool events map[string]struct{} removedevents map[string]struct{} clearedevents bool + integrations map[string]struct{} + removedintegrations map[string]struct{} + clearedintegrations bool + files map[string]struct{} + removedfiles map[string]struct{} + clearedfiles bool + members map[string]struct{} + removedmembers map[string]struct{} + clearedmembers bool done bool - oldValue func(context.Context) (*Hush, error) - predicates []predicate.Hush + oldValue func(context.Context) (*Group, error) + predicates []predicate.Group } -var _ ent.Mutation = (*HushMutation)(nil) +var _ ent.Mutation = (*GroupMutation)(nil) -// hushOption allows management of the mutation configuration using functional options. -type hushOption func(*HushMutation) +// groupOption allows management of the mutation configuration using functional options. +type groupOption func(*GroupMutation) -// newHushMutation creates new mutation for the Hush entity. -func newHushMutation(c config, op Op, opts ...hushOption) *HushMutation { - m := &HushMutation{ +// newGroupMutation creates new mutation for the Group entity. +func newGroupMutation(c config, op Op, opts ...groupOption) *GroupMutation { + m := &GroupMutation{ config: c, op: op, - typ: TypeHush, + typ: TypeGroup, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -42549,20 +46020,20 @@ func newHushMutation(c config, op Op, opts ...hushOption) *HushMutation { return m } -// withHushID sets the ID field of the mutation. -func withHushID(id string) hushOption { - return func(m *HushMutation) { +// withGroupID sets the ID field of the mutation. +func withGroupID(id string) groupOption { + return func(m *GroupMutation) { var ( err error once sync.Once - value *Hush + value *Group ) - m.oldValue = func(ctx context.Context) (*Hush, error) { + m.oldValue = func(ctx context.Context) (*Group, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().Hush.Get(ctx, id) + value, err = m.Client().Group.Get(ctx, id) } }) return value, err @@ -42571,10 +46042,10 @@ func withHushID(id string) hushOption { } } -// withHush sets the old Hush of the mutation. -func withHush(node *Hush) hushOption { - return func(m *HushMutation) { - m.oldValue = func(context.Context) (*Hush, error) { +// withGroup sets the old Group of the mutation. +func withGroup(node *Group) groupOption { + return func(m *GroupMutation) { + m.oldValue = func(context.Context) (*Group, error) { return node, nil } m.id = &node.ID @@ -42583,7 +46054,7 @@ func withHush(node *Hush) hushOption { // 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 HushMutation) Client() *Client { +func (m GroupMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -42591,7 +46062,7 @@ func (m HushMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m HushMutation) Tx() (*Tx, error) { +func (m GroupMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -42601,14 +46072,14 @@ func (m HushMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of Hush entities. -func (m *HushMutation) SetID(id string) { +// operation is only accepted on creation of Group entities. +func (m *GroupMutation) 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 *HushMutation) ID() (id string, exists bool) { +func (m *GroupMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -42619,7 +46090,7 @@ func (m *HushMutation) ID() (id string, exists bool) { // 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 *HushMutation) IDs(ctx context.Context) ([]string, error) { +func (m *GroupMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -42628,19 +46099,19 @@ func (m *HushMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().Hush.Query().Where(m.predicates...).IDs(ctx) + return m.Client().Group.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 *HushMutation) SetCreatedAt(t time.Time) { +func (m *GroupMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *HushMutation) CreatedAt() (r time.Time, exists bool) { +func (m *GroupMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -42648,10 +46119,10 @@ func (m *HushMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the Hush entity. -// If the Hush object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the Group entity. +// If the Group 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 *HushMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupMutation) 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") } @@ -42666,30 +46137,30 @@ func (m *HushMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error } // ClearCreatedAt clears the value of the "created_at" field. -func (m *HushMutation) ClearCreatedAt() { +func (m *GroupMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[hush.FieldCreatedAt] = struct{}{} + m.clearedFields[group.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *HushMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[hush.FieldCreatedAt] +func (m *GroupMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[group.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *HushMutation) ResetCreatedAt() { +func (m *GroupMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, hush.FieldCreatedAt) + delete(m.clearedFields, group.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *HushMutation) SetUpdatedAt(t time.Time) { +func (m *GroupMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *HushMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *GroupMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -42697,10 +46168,10 @@ func (m *HushMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the Hush entity. -// If the Hush object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the Group entity. +// If the Group 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 *HushMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupMutation) 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") } @@ -42715,30 +46186,30 @@ func (m *HushMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *HushMutation) ClearUpdatedAt() { +func (m *GroupMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[hush.FieldUpdatedAt] = struct{}{} + m.clearedFields[group.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *HushMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[hush.FieldUpdatedAt] +func (m *GroupMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[group.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *HushMutation) ResetUpdatedAt() { +func (m *GroupMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, hush.FieldUpdatedAt) + delete(m.clearedFields, group.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *HushMutation) SetCreatedBy(s string) { +func (m *GroupMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *HushMutation) CreatedBy() (r string, exists bool) { +func (m *GroupMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -42746,10 +46217,10 @@ func (m *HushMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the Hush entity. -// If the Hush object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the Group entity. +// If the Group 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 *HushMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *GroupMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -42764,30 +46235,30 @@ func (m *HushMutation) OldCreatedBy(ctx context.Context) (v string, err error) { } // ClearCreatedBy clears the value of the "created_by" field. -func (m *HushMutation) ClearCreatedBy() { +func (m *GroupMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[hush.FieldCreatedBy] = struct{}{} + m.clearedFields[group.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *HushMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[hush.FieldCreatedBy] +func (m *GroupMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[group.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *HushMutation) ResetCreatedBy() { +func (m *GroupMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, hush.FieldCreatedBy) + delete(m.clearedFields, group.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *HushMutation) SetUpdatedBy(s string) { +func (m *GroupMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *HushMutation) UpdatedBy() (r string, exists bool) { +func (m *GroupMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -42795,10 +46266,10 @@ func (m *HushMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the Hush entity. -// If the Hush object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the Group entity. +// If the Group 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 *HushMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *GroupMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -42813,66 +46284,30 @@ func (m *HushMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *HushMutation) ClearUpdatedBy() { +func (m *GroupMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[hush.FieldUpdatedBy] = struct{}{} + m.clearedFields[group.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *HushMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[hush.FieldUpdatedBy] +func (m *GroupMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[group.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *HushMutation) ResetUpdatedBy() { +func (m *GroupMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, hush.FieldUpdatedBy) -} - -// SetMappingID sets the "mapping_id" field. -func (m *HushMutation) SetMappingID(s string) { - m.mapping_id = &s -} - -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *HushMutation) MappingID() (r string, exists bool) { - v := m.mapping_id - if v == nil { - return - } - return *v, true -} - -// OldMappingID returns the old "mapping_id" field's value of the Hush entity. -// If the Hush 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 *HushMutation) OldMappingID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) - } - return oldValue.MappingID, nil -} - -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *HushMutation) ResetMappingID() { - m.mapping_id = nil + delete(m.clearedFields, group.FieldUpdatedBy) } // SetDeletedAt sets the "deleted_at" field. -func (m *HushMutation) SetDeletedAt(t time.Time) { +func (m *GroupMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *HushMutation) DeletedAt() (r time.Time, exists bool) { +func (m *GroupMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -42880,10 +46315,10 @@ func (m *HushMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the Hush entity. -// If the Hush object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the Group entity. +// If the Group 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 *HushMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupMutation) 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") } @@ -42898,30 +46333,30 @@ func (m *HushMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *HushMutation) ClearDeletedAt() { +func (m *GroupMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[hush.FieldDeletedAt] = struct{}{} + m.clearedFields[group.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *HushMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[hush.FieldDeletedAt] +func (m *GroupMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[group.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *HushMutation) ResetDeletedAt() { +func (m *GroupMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, hush.FieldDeletedAt) + delete(m.clearedFields, group.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *HushMutation) SetDeletedBy(s string) { +func (m *GroupMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *HushMutation) DeletedBy() (r string, exists bool) { +func (m *GroupMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -42929,10 +46364,10 @@ func (m *HushMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the Hush entity. -// If the Hush object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the Group entity. +// If the Group 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 *HushMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *GroupMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -42947,30 +46382,180 @@ func (m *HushMutation) OldDeletedBy(ctx context.Context) (v string, err error) { } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *HushMutation) ClearDeletedBy() { +func (m *GroupMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[hush.FieldDeletedBy] = struct{}{} + m.clearedFields[group.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *HushMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[hush.FieldDeletedBy] +func (m *GroupMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[group.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *HushMutation) ResetDeletedBy() { +func (m *GroupMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, hush.FieldDeletedBy) + delete(m.clearedFields, group.FieldDeletedBy) } -// SetName sets the "name" field. -func (m *HushMutation) SetName(s string) { +// SetMappingID sets the "mapping_id" field. +func (m *GroupMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *GroupMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the Group entity. +// If the Group 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 *GroupMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *GroupMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *GroupMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *GroupMutation) 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 Group entity. +// If the Group 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 *GroupMutation) 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 *GroupMutation) 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 *GroupMutation) 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 *GroupMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[group.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *GroupMutation) TagsCleared() bool { + _, ok := m.clearedFields[group.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *GroupMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, group.FieldTags) +} + +// SetOwnerID sets the "owner_id" field. +func (m *GroupMutation) SetOwnerID(s string) { + m.owner = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *GroupMutation) 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 Group entity. +// If the Group 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 *GroupMutation) 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 *GroupMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[group.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *GroupMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[group.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *GroupMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, group.FieldOwnerID) +} + +// SetName sets the "name" field. +func (m *GroupMutation) SetName(s string) { m.name = &s } // Name returns the value of the "name" field in the mutation. -func (m *HushMutation) Name() (r string, exists bool) { +func (m *GroupMutation) Name() (r string, exists bool) { v := m.name if v == nil { return @@ -42978,10 +46563,10 @@ func (m *HushMutation) Name() (r string, exists bool) { return *v, true } -// OldName returns the old "name" field's value of the Hush entity. -// If the Hush object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the Group entity. +// If the Group 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 *HushMutation) OldName(ctx context.Context) (v string, err error) { +func (m *GroupMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldName is only allowed on UpdateOne operations") } @@ -42996,17 +46581,17 @@ func (m *HushMutation) OldName(ctx context.Context) (v string, err error) { } // ResetName resets all changes to the "name" field. -func (m *HushMutation) ResetName() { +func (m *GroupMutation) ResetName() { m.name = nil } // SetDescription sets the "description" field. -func (m *HushMutation) SetDescription(s string) { +func (m *GroupMutation) SetDescription(s string) { m.description = &s } // Description returns the value of the "description" field in the mutation. -func (m *HushMutation) Description() (r string, exists bool) { +func (m *GroupMutation) Description() (r string, exists bool) { v := m.description if v == nil { return @@ -43014,10 +46599,10 @@ func (m *HushMutation) Description() (r string, exists bool) { return *v, true } -// OldDescription returns the old "description" field's value of the Hush entity. -// If the Hush object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the Group entity. +// If the Group 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 *HushMutation) OldDescription(ctx context.Context) (v string, err error) { +func (m *GroupMutation) OldDescription(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDescription is only allowed on UpdateOne operations") } @@ -43032,280 +46617,279 @@ func (m *HushMutation) OldDescription(ctx context.Context) (v string, err error) } // ClearDescription clears the value of the "description" field. -func (m *HushMutation) ClearDescription() { +func (m *GroupMutation) ClearDescription() { m.description = nil - m.clearedFields[hush.FieldDescription] = struct{}{} + m.clearedFields[group.FieldDescription] = struct{}{} } // DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *HushMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[hush.FieldDescription] +func (m *GroupMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[group.FieldDescription] return ok } // ResetDescription resets all changes to the "description" field. -func (m *HushMutation) ResetDescription() { +func (m *GroupMutation) ResetDescription() { m.description = nil - delete(m.clearedFields, hush.FieldDescription) + delete(m.clearedFields, group.FieldDescription) } -// SetKind sets the "kind" field. -func (m *HushMutation) SetKind(s string) { - m.kind = &s +// SetGravatarLogoURL sets the "gravatar_logo_url" field. +func (m *GroupMutation) SetGravatarLogoURL(s string) { + m.gravatar_logo_url = &s } -// Kind returns the value of the "kind" field in the mutation. -func (m *HushMutation) Kind() (r string, exists bool) { - v := m.kind +// GravatarLogoURL returns the value of the "gravatar_logo_url" field in the mutation. +func (m *GroupMutation) GravatarLogoURL() (r string, exists bool) { + v := m.gravatar_logo_url if v == nil { return } return *v, true } -// OldKind returns the old "kind" field's value of the Hush entity. -// If the Hush object wasn't provided to the builder, the object is fetched from the database. +// OldGravatarLogoURL returns the old "gravatar_logo_url" field's value of the Group entity. +// If the Group 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 *HushMutation) OldKind(ctx context.Context) (v string, err error) { +func (m *GroupMutation) OldGravatarLogoURL(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldKind is only allowed on UpdateOne operations") + return v, errors.New("OldGravatarLogoURL is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldKind requires an ID field in the mutation") + return v, errors.New("OldGravatarLogoURL requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldKind: %w", err) + return v, fmt.Errorf("querying old value for OldGravatarLogoURL: %w", err) } - return oldValue.Kind, nil + return oldValue.GravatarLogoURL, nil } -// ClearKind clears the value of the "kind" field. -func (m *HushMutation) ClearKind() { - m.kind = nil - m.clearedFields[hush.FieldKind] = struct{}{} +// ClearGravatarLogoURL clears the value of the "gravatar_logo_url" field. +func (m *GroupMutation) ClearGravatarLogoURL() { + m.gravatar_logo_url = nil + m.clearedFields[group.FieldGravatarLogoURL] = struct{}{} } -// KindCleared returns if the "kind" field was cleared in this mutation. -func (m *HushMutation) KindCleared() bool { - _, ok := m.clearedFields[hush.FieldKind] +// GravatarLogoURLCleared returns if the "gravatar_logo_url" field was cleared in this mutation. +func (m *GroupMutation) GravatarLogoURLCleared() bool { + _, ok := m.clearedFields[group.FieldGravatarLogoURL] return ok } -// ResetKind resets all changes to the "kind" field. -func (m *HushMutation) ResetKind() { - m.kind = nil - delete(m.clearedFields, hush.FieldKind) +// ResetGravatarLogoURL resets all changes to the "gravatar_logo_url" field. +func (m *GroupMutation) ResetGravatarLogoURL() { + m.gravatar_logo_url = nil + delete(m.clearedFields, group.FieldGravatarLogoURL) } -// SetSecretName sets the "secret_name" field. -func (m *HushMutation) SetSecretName(s string) { - m.secret_name = &s +// SetLogoURL sets the "logo_url" field. +func (m *GroupMutation) SetLogoURL(s string) { + m.logo_url = &s } -// SecretName returns the value of the "secret_name" field in the mutation. -func (m *HushMutation) SecretName() (r string, exists bool) { - v := m.secret_name +// LogoURL returns the value of the "logo_url" field in the mutation. +func (m *GroupMutation) LogoURL() (r string, exists bool) { + v := m.logo_url if v == nil { return } return *v, true } -// OldSecretName returns the old "secret_name" field's value of the Hush entity. -// If the Hush object wasn't provided to the builder, the object is fetched from the database. +// OldLogoURL returns the old "logo_url" field's value of the Group entity. +// If the Group 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 *HushMutation) OldSecretName(ctx context.Context) (v string, err error) { +func (m *GroupMutation) OldLogoURL(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldSecretName is only allowed on UpdateOne operations") + return v, errors.New("OldLogoURL is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldSecretName requires an ID field in the mutation") + return v, errors.New("OldLogoURL requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldSecretName: %w", err) + return v, fmt.Errorf("querying old value for OldLogoURL: %w", err) } - return oldValue.SecretName, nil + return oldValue.LogoURL, nil } -// ClearSecretName clears the value of the "secret_name" field. -func (m *HushMutation) ClearSecretName() { - m.secret_name = nil - m.clearedFields[hush.FieldSecretName] = struct{}{} +// ClearLogoURL clears the value of the "logo_url" field. +func (m *GroupMutation) ClearLogoURL() { + m.logo_url = nil + m.clearedFields[group.FieldLogoURL] = struct{}{} } -// SecretNameCleared returns if the "secret_name" field was cleared in this mutation. -func (m *HushMutation) SecretNameCleared() bool { - _, ok := m.clearedFields[hush.FieldSecretName] +// LogoURLCleared returns if the "logo_url" field was cleared in this mutation. +func (m *GroupMutation) LogoURLCleared() bool { + _, ok := m.clearedFields[group.FieldLogoURL] return ok } -// ResetSecretName resets all changes to the "secret_name" field. -func (m *HushMutation) ResetSecretName() { - m.secret_name = nil - delete(m.clearedFields, hush.FieldSecretName) +// ResetLogoURL resets all changes to the "logo_url" field. +func (m *GroupMutation) ResetLogoURL() { + m.logo_url = nil + delete(m.clearedFields, group.FieldLogoURL) } -// SetSecretValue sets the "secret_value" field. -func (m *HushMutation) SetSecretValue(s string) { - m.secret_value = &s +// SetDisplayName sets the "display_name" field. +func (m *GroupMutation) SetDisplayName(s string) { + m.display_name = &s } -// SecretValue returns the value of the "secret_value" field in the mutation. -func (m *HushMutation) SecretValue() (r string, exists bool) { - v := m.secret_value +// DisplayName returns the value of the "display_name" field in the mutation. +func (m *GroupMutation) DisplayName() (r string, exists bool) { + v := m.display_name if v == nil { return } return *v, true } -// OldSecretValue returns the old "secret_value" field's value of the Hush entity. -// If the Hush object wasn't provided to the builder, the object is fetched from the database. +// OldDisplayName returns the old "display_name" field's value of the Group entity. +// If the Group 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 *HushMutation) OldSecretValue(ctx context.Context) (v string, err error) { +func (m *GroupMutation) OldDisplayName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldSecretValue is only allowed on UpdateOne operations") + return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldSecretValue requires an ID field in the mutation") + return v, errors.New("OldDisplayName requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldSecretValue: %w", err) + return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) } - return oldValue.SecretValue, nil + return oldValue.DisplayName, nil } -// ClearSecretValue clears the value of the "secret_value" field. -func (m *HushMutation) ClearSecretValue() { - m.secret_value = nil - m.clearedFields[hush.FieldSecretValue] = struct{}{} +// ResetDisplayName resets all changes to the "display_name" field. +func (m *GroupMutation) ResetDisplayName() { + m.display_name = nil } -// SecretValueCleared returns if the "secret_value" field was cleared in this mutation. -func (m *HushMutation) SecretValueCleared() bool { - _, ok := m.clearedFields[hush.FieldSecretValue] - return ok +// ClearOwner clears the "owner" edge to the Organization entity. +func (m *GroupMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[group.FieldOwnerID] = struct{}{} } -// ResetSecretValue resets all changes to the "secret_value" field. -func (m *HushMutation) ResetSecretValue() { - m.secret_value = nil - delete(m.clearedFields, hush.FieldSecretValue) +// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. +func (m *GroupMutation) OwnerCleared() bool { + return m.OwnerIDCleared() || m.clearedowner } -// AddIntegrationIDs adds the "integrations" edge to the Integration entity by ids. -func (m *HushMutation) AddIntegrationIDs(ids ...string) { - if m.integrations == nil { - m.integrations = make(map[string]struct{}) - } - for i := range ids { - m.integrations[ids[i]] = struct{}{} +// 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 *GroupMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) } + return } -// ClearIntegrations clears the "integrations" edge to the Integration entity. -func (m *HushMutation) ClearIntegrations() { - m.clearedintegrations = true +// ResetOwner resets all changes to the "owner" edge. +func (m *GroupMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false } -// IntegrationsCleared reports if the "integrations" edge to the Integration entity was cleared. -func (m *HushMutation) IntegrationsCleared() bool { - return m.clearedintegrations +// SetSettingID sets the "setting" edge to the GroupSetting entity by id. +func (m *GroupMutation) SetSettingID(id string) { + m.setting = &id } -// RemoveIntegrationIDs removes the "integrations" edge to the Integration entity by IDs. -func (m *HushMutation) RemoveIntegrationIDs(ids ...string) { - if m.removedintegrations == nil { - m.removedintegrations = make(map[string]struct{}) - } - for i := range ids { - delete(m.integrations, ids[i]) - m.removedintegrations[ids[i]] = struct{}{} - } +// ClearSetting clears the "setting" edge to the GroupSetting entity. +func (m *GroupMutation) ClearSetting() { + m.clearedsetting = true } -// RemovedIntegrations returns the removed IDs of the "integrations" edge to the Integration entity. -func (m *HushMutation) RemovedIntegrationsIDs() (ids []string) { - for id := range m.removedintegrations { - ids = append(ids, id) +// SettingCleared reports if the "setting" edge to the GroupSetting entity was cleared. +func (m *GroupMutation) SettingCleared() bool { + return m.clearedsetting +} + +// SettingID returns the "setting" edge ID in the mutation. +func (m *GroupMutation) SettingID() (id string, exists bool) { + if m.setting != nil { + return *m.setting, true } return } -// IntegrationsIDs returns the "integrations" edge IDs in the mutation. -func (m *HushMutation) IntegrationsIDs() (ids []string) { - for id := range m.integrations { - ids = append(ids, id) +// SettingIDs returns the "setting" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// SettingID instead. It exists only for internal usage by the builders. +func (m *GroupMutation) SettingIDs() (ids []string) { + if id := m.setting; id != nil { + ids = append(ids, *id) } return } -// ResetIntegrations resets all changes to the "integrations" edge. -func (m *HushMutation) ResetIntegrations() { - m.integrations = nil - m.clearedintegrations = false - m.removedintegrations = nil +// ResetSetting resets all changes to the "setting" edge. +func (m *GroupMutation) ResetSetting() { + m.setting = nil + m.clearedsetting = false } -// AddOrganizationIDs adds the "organization" edge to the Organization entity by ids. -func (m *HushMutation) AddOrganizationIDs(ids ...string) { - if m.organization == nil { - m.organization = make(map[string]struct{}) +// AddUserIDs adds the "users" edge to the User entity by ids. +func (m *GroupMutation) AddUserIDs(ids ...string) { + if m.users == nil { + m.users = make(map[string]struct{}) } for i := range ids { - m.organization[ids[i]] = struct{}{} + m.users[ids[i]] = struct{}{} } } -// ClearOrganization clears the "organization" edge to the Organization entity. -func (m *HushMutation) ClearOrganization() { - m.clearedorganization = true +// ClearUsers clears the "users" edge to the User entity. +func (m *GroupMutation) ClearUsers() { + m.clearedusers = true } -// OrganizationCleared reports if the "organization" edge to the Organization entity was cleared. -func (m *HushMutation) OrganizationCleared() bool { - return m.clearedorganization +// UsersCleared reports if the "users" edge to the User entity was cleared. +func (m *GroupMutation) UsersCleared() bool { + return m.clearedusers } -// RemoveOrganizationIDs removes the "organization" edge to the Organization entity by IDs. -func (m *HushMutation) RemoveOrganizationIDs(ids ...string) { - if m.removedorganization == nil { - m.removedorganization = make(map[string]struct{}) +// RemoveUserIDs removes the "users" edge to the User entity by IDs. +func (m *GroupMutation) RemoveUserIDs(ids ...string) { + if m.removedusers == nil { + m.removedusers = make(map[string]struct{}) } for i := range ids { - delete(m.organization, ids[i]) - m.removedorganization[ids[i]] = struct{}{} + delete(m.users, ids[i]) + m.removedusers[ids[i]] = struct{}{} } } -// RemovedOrganization returns the removed IDs of the "organization" edge to the Organization entity. -func (m *HushMutation) RemovedOrganizationIDs() (ids []string) { - for id := range m.removedorganization { +// RemovedUsers returns the removed IDs of the "users" edge to the User entity. +func (m *GroupMutation) RemovedUsersIDs() (ids []string) { + for id := range m.removedusers { ids = append(ids, id) } return } -// OrganizationIDs returns the "organization" edge IDs in the mutation. -func (m *HushMutation) OrganizationIDs() (ids []string) { - for id := range m.organization { +// UsersIDs returns the "users" edge IDs in the mutation. +func (m *GroupMutation) UsersIDs() (ids []string) { + for id := range m.users { ids = append(ids, id) } return } -// ResetOrganization resets all changes to the "organization" edge. -func (m *HushMutation) ResetOrganization() { - m.organization = nil - m.clearedorganization = false - m.removedorganization = nil +// ResetUsers resets all changes to the "users" edge. +func (m *GroupMutation) ResetUsers() { + m.users = nil + m.clearedusers = false + m.removedusers = nil } // AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *HushMutation) AddEventIDs(ids ...string) { +func (m *GroupMutation) AddEventIDs(ids ...string) { if m.events == nil { m.events = make(map[string]struct{}) } @@ -43315,17 +46899,17 @@ func (m *HushMutation) AddEventIDs(ids ...string) { } // ClearEvents clears the "events" edge to the Event entity. -func (m *HushMutation) ClearEvents() { +func (m *GroupMutation) ClearEvents() { m.clearedevents = true } // EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *HushMutation) EventsCleared() bool { +func (m *GroupMutation) EventsCleared() bool { return m.clearedevents } // RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *HushMutation) RemoveEventIDs(ids ...string) { +func (m *GroupMutation) RemoveEventIDs(ids ...string) { if m.removedevents == nil { m.removedevents = make(map[string]struct{}) } @@ -43336,7 +46920,7 @@ func (m *HushMutation) RemoveEventIDs(ids ...string) { } // RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *HushMutation) RemovedEventsIDs() (ids []string) { +func (m *GroupMutation) RemovedEventsIDs() (ids []string) { for id := range m.removedevents { ids = append(ids, id) } @@ -43344,7 +46928,7 @@ func (m *HushMutation) RemovedEventsIDs() (ids []string) { } // EventsIDs returns the "events" edge IDs in the mutation. -func (m *HushMutation) EventsIDs() (ids []string) { +func (m *GroupMutation) EventsIDs() (ids []string) { for id := range m.events { ids = append(ids, id) } @@ -43352,82 +46936,250 @@ func (m *HushMutation) EventsIDs() (ids []string) { } // ResetEvents resets all changes to the "events" edge. -func (m *HushMutation) ResetEvents() { +func (m *GroupMutation) ResetEvents() { m.events = nil m.clearedevents = false m.removedevents = nil } -// Where appends a list predicates to the HushMutation builder. -func (m *HushMutation) Where(ps ...predicate.Hush) { - m.predicates = append(m.predicates, ps...) +// AddIntegrationIDs adds the "integrations" edge to the Integration entity by ids. +func (m *GroupMutation) AddIntegrationIDs(ids ...string) { + if m.integrations == nil { + m.integrations = make(map[string]struct{}) + } + for i := range ids { + m.integrations[ids[i]] = struct{}{} + } } -// WhereP appends storage-level predicates to the HushMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *HushMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.Hush, len(ps)) - for i := range ps { - p[i] = ps[i] - } - m.Where(p...) +// ClearIntegrations clears the "integrations" edge to the Integration entity. +func (m *GroupMutation) ClearIntegrations() { + m.clearedintegrations = true } -// Op returns the operation name. -func (m *HushMutation) Op() Op { - return m.op +// IntegrationsCleared reports if the "integrations" edge to the Integration entity was cleared. +func (m *GroupMutation) IntegrationsCleared() bool { + return m.clearedintegrations } -// SetOp allows setting the mutation operation. -func (m *HushMutation) SetOp(op Op) { - m.op = op +// RemoveIntegrationIDs removes the "integrations" edge to the Integration entity by IDs. +func (m *GroupMutation) RemoveIntegrationIDs(ids ...string) { + if m.removedintegrations == nil { + m.removedintegrations = make(map[string]struct{}) + } + for i := range ids { + delete(m.integrations, ids[i]) + m.removedintegrations[ids[i]] = struct{}{} + } } -// Type returns the node type of this mutation (Hush). -func (m *HushMutation) Type() string { +// RemovedIntegrations returns the removed IDs of the "integrations" edge to the Integration entity. +func (m *GroupMutation) RemovedIntegrationsIDs() (ids []string) { + for id := range m.removedintegrations { + ids = append(ids, id) + } + return +} + +// IntegrationsIDs returns the "integrations" edge IDs in the mutation. +func (m *GroupMutation) IntegrationsIDs() (ids []string) { + for id := range m.integrations { + ids = append(ids, id) + } + return +} + +// ResetIntegrations resets all changes to the "integrations" edge. +func (m *GroupMutation) ResetIntegrations() { + m.integrations = nil + m.clearedintegrations = false + m.removedintegrations = nil +} + +// AddFileIDs adds the "files" edge to the File entity by ids. +func (m *GroupMutation) AddFileIDs(ids ...string) { + if m.files == nil { + m.files = make(map[string]struct{}) + } + for i := range ids { + m.files[ids[i]] = struct{}{} + } +} + +// ClearFiles clears the "files" edge to the File entity. +func (m *GroupMutation) ClearFiles() { + m.clearedfiles = true +} + +// FilesCleared reports if the "files" edge to the File entity was cleared. +func (m *GroupMutation) FilesCleared() bool { + return m.clearedfiles +} + +// RemoveFileIDs removes the "files" edge to the File entity by IDs. +func (m *GroupMutation) RemoveFileIDs(ids ...string) { + if m.removedfiles == nil { + m.removedfiles = make(map[string]struct{}) + } + for i := range ids { + delete(m.files, ids[i]) + m.removedfiles[ids[i]] = struct{}{} + } +} + +// RemovedFiles returns the removed IDs of the "files" edge to the File entity. +func (m *GroupMutation) RemovedFilesIDs() (ids []string) { + for id := range m.removedfiles { + ids = append(ids, id) + } + return +} + +// FilesIDs returns the "files" edge IDs in the mutation. +func (m *GroupMutation) FilesIDs() (ids []string) { + for id := range m.files { + ids = append(ids, id) + } + return +} + +// ResetFiles resets all changes to the "files" edge. +func (m *GroupMutation) ResetFiles() { + m.files = nil + m.clearedfiles = false + m.removedfiles = nil +} + +// AddMemberIDs adds the "members" edge to the GroupMembership entity by ids. +func (m *GroupMutation) AddMemberIDs(ids ...string) { + if m.members == nil { + m.members = make(map[string]struct{}) + } + for i := range ids { + m.members[ids[i]] = struct{}{} + } +} + +// ClearMembers clears the "members" edge to the GroupMembership entity. +func (m *GroupMutation) ClearMembers() { + m.clearedmembers = true +} + +// MembersCleared reports if the "members" edge to the GroupMembership entity was cleared. +func (m *GroupMutation) MembersCleared() bool { + return m.clearedmembers +} + +// RemoveMemberIDs removes the "members" edge to the GroupMembership entity by IDs. +func (m *GroupMutation) RemoveMemberIDs(ids ...string) { + if m.removedmembers == nil { + m.removedmembers = make(map[string]struct{}) + } + for i := range ids { + delete(m.members, ids[i]) + m.removedmembers[ids[i]] = struct{}{} + } +} + +// RemovedMembers returns the removed IDs of the "members" edge to the GroupMembership entity. +func (m *GroupMutation) RemovedMembersIDs() (ids []string) { + for id := range m.removedmembers { + ids = append(ids, id) + } + return +} + +// MembersIDs returns the "members" edge IDs in the mutation. +func (m *GroupMutation) MembersIDs() (ids []string) { + for id := range m.members { + ids = append(ids, id) + } + return +} + +// ResetMembers resets all changes to the "members" edge. +func (m *GroupMutation) ResetMembers() { + m.members = nil + m.clearedmembers = false + m.removedmembers = nil +} + +// Where appends a list predicates to the GroupMutation builder. +func (m *GroupMutation) Where(ps ...predicate.Group) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the GroupMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *GroupMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Group, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *GroupMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *GroupMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (Group). +func (m *GroupMutation) 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 *HushMutation) Fields() []string { - fields := make([]string, 0, 12) +func (m *GroupMutation) Fields() []string { + fields := make([]string, 0, 14) if m.created_at != nil { - fields = append(fields, hush.FieldCreatedAt) + fields = append(fields, group.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, hush.FieldUpdatedAt) + fields = append(fields, group.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, hush.FieldCreatedBy) + fields = append(fields, group.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, hush.FieldUpdatedBy) - } - if m.mapping_id != nil { - fields = append(fields, hush.FieldMappingID) + fields = append(fields, group.FieldUpdatedBy) } if m.deleted_at != nil { - fields = append(fields, hush.FieldDeletedAt) + fields = append(fields, group.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, hush.FieldDeletedBy) + fields = append(fields, group.FieldDeletedBy) + } + if m.mapping_id != nil { + fields = append(fields, group.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, group.FieldTags) + } + if m.owner != nil { + fields = append(fields, group.FieldOwnerID) } if m.name != nil { - fields = append(fields, hush.FieldName) + fields = append(fields, group.FieldName) } if m.description != nil { - fields = append(fields, hush.FieldDescription) + fields = append(fields, group.FieldDescription) } - if m.kind != nil { - fields = append(fields, hush.FieldKind) + if m.gravatar_logo_url != nil { + fields = append(fields, group.FieldGravatarLogoURL) } - if m.secret_name != nil { - fields = append(fields, hush.FieldSecretName) + if m.logo_url != nil { + fields = append(fields, group.FieldLogoURL) } - if m.secret_value != nil { - fields = append(fields, hush.FieldSecretValue) + if m.display_name != nil { + fields = append(fields, group.FieldDisplayName) } return fields } @@ -43435,32 +47187,36 @@ func (m *HushMutation) Fields() []string { // 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 *HushMutation) Field(name string) (ent.Value, bool) { +func (m *GroupMutation) Field(name string) (ent.Value, bool) { switch name { - case hush.FieldCreatedAt: + case group.FieldCreatedAt: return m.CreatedAt() - case hush.FieldUpdatedAt: + case group.FieldUpdatedAt: return m.UpdatedAt() - case hush.FieldCreatedBy: + case group.FieldCreatedBy: return m.CreatedBy() - case hush.FieldUpdatedBy: + case group.FieldUpdatedBy: return m.UpdatedBy() - case hush.FieldMappingID: - return m.MappingID() - case hush.FieldDeletedAt: + case group.FieldDeletedAt: return m.DeletedAt() - case hush.FieldDeletedBy: + case group.FieldDeletedBy: return m.DeletedBy() - case hush.FieldName: + case group.FieldMappingID: + return m.MappingID() + case group.FieldTags: + return m.Tags() + case group.FieldOwnerID: + return m.OwnerID() + case group.FieldName: return m.Name() - case hush.FieldDescription: + case group.FieldDescription: return m.Description() - case hush.FieldKind: - return m.Kind() - case hush.FieldSecretName: - return m.SecretName() - case hush.FieldSecretValue: - return m.SecretValue() + case group.FieldGravatarLogoURL: + return m.GravatarLogoURL() + case group.FieldLogoURL: + return m.LogoURL() + case group.FieldDisplayName: + return m.DisplayName() } return nil, false } @@ -43468,311 +47224,373 @@ func (m *HushMutation) Field(name string) (ent.Value, bool) { // 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 *HushMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *GroupMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case hush.FieldCreatedAt: + case group.FieldCreatedAt: return m.OldCreatedAt(ctx) - case hush.FieldUpdatedAt: + case group.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case hush.FieldCreatedBy: + case group.FieldCreatedBy: return m.OldCreatedBy(ctx) - case hush.FieldUpdatedBy: + case group.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case hush.FieldMappingID: - return m.OldMappingID(ctx) - case hush.FieldDeletedAt: + case group.FieldDeletedAt: return m.OldDeletedAt(ctx) - case hush.FieldDeletedBy: + case group.FieldDeletedBy: return m.OldDeletedBy(ctx) - case hush.FieldName: + case group.FieldMappingID: + return m.OldMappingID(ctx) + case group.FieldTags: + return m.OldTags(ctx) + case group.FieldOwnerID: + return m.OldOwnerID(ctx) + case group.FieldName: return m.OldName(ctx) - case hush.FieldDescription: + case group.FieldDescription: return m.OldDescription(ctx) - case hush.FieldKind: - return m.OldKind(ctx) - case hush.FieldSecretName: - return m.OldSecretName(ctx) - case hush.FieldSecretValue: - return m.OldSecretValue(ctx) + case group.FieldGravatarLogoURL: + return m.OldGravatarLogoURL(ctx) + case group.FieldLogoURL: + return m.OldLogoURL(ctx) + case group.FieldDisplayName: + return m.OldDisplayName(ctx) } - return nil, fmt.Errorf("unknown Hush field %s", name) + return nil, fmt.Errorf("unknown Group 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 *HushMutation) SetField(name string, value ent.Value) error { +func (m *GroupMutation) SetField(name string, value ent.Value) error { switch name { - case hush.FieldCreatedAt: + case group.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 hush.FieldUpdatedAt: + case group.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 hush.FieldCreatedBy: + case group.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case hush.FieldUpdatedBy: + case group.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case hush.FieldMappingID: + case group.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 group.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case group.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case hush.FieldDeletedAt: - v, ok := value.(time.Time) + case group.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetTags(v) return nil - case hush.FieldDeletedBy: + case group.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetOwnerID(v) return nil - case hush.FieldName: + case group.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetName(v) return nil - case hush.FieldDescription: + case group.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDescription(v) return nil - case hush.FieldKind: + case group.FieldGravatarLogoURL: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetKind(v) + m.SetGravatarLogoURL(v) return nil - case hush.FieldSecretName: + case group.FieldLogoURL: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetSecretName(v) + m.SetLogoURL(v) return nil - case hush.FieldSecretValue: + case group.FieldDisplayName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetSecretValue(v) + m.SetDisplayName(v) return nil } - return fmt.Errorf("unknown Hush field %s", name) + return fmt.Errorf("unknown Group field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *HushMutation) AddedFields() []string { +func (m *GroupMutation) 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 *HushMutation) AddedField(name string) (ent.Value, bool) { +func (m *GroupMutation) 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 *HushMutation) AddField(name string, value ent.Value) error { +func (m *GroupMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown Hush numeric field %s", name) + return fmt.Errorf("unknown Group numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *HushMutation) ClearedFields() []string { +func (m *GroupMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(hush.FieldCreatedAt) { - fields = append(fields, hush.FieldCreatedAt) + if m.FieldCleared(group.FieldCreatedAt) { + fields = append(fields, group.FieldCreatedAt) } - if m.FieldCleared(hush.FieldUpdatedAt) { - fields = append(fields, hush.FieldUpdatedAt) + if m.FieldCleared(group.FieldUpdatedAt) { + fields = append(fields, group.FieldUpdatedAt) } - if m.FieldCleared(hush.FieldCreatedBy) { - fields = append(fields, hush.FieldCreatedBy) + if m.FieldCleared(group.FieldCreatedBy) { + fields = append(fields, group.FieldCreatedBy) } - if m.FieldCleared(hush.FieldUpdatedBy) { - fields = append(fields, hush.FieldUpdatedBy) + if m.FieldCleared(group.FieldUpdatedBy) { + fields = append(fields, group.FieldUpdatedBy) } - if m.FieldCleared(hush.FieldDeletedAt) { - fields = append(fields, hush.FieldDeletedAt) + if m.FieldCleared(group.FieldDeletedAt) { + fields = append(fields, group.FieldDeletedAt) } - if m.FieldCleared(hush.FieldDeletedBy) { - fields = append(fields, hush.FieldDeletedBy) + if m.FieldCleared(group.FieldDeletedBy) { + fields = append(fields, group.FieldDeletedBy) } - if m.FieldCleared(hush.FieldDescription) { - fields = append(fields, hush.FieldDescription) + if m.FieldCleared(group.FieldTags) { + fields = append(fields, group.FieldTags) } - if m.FieldCleared(hush.FieldKind) { - fields = append(fields, hush.FieldKind) + if m.FieldCleared(group.FieldOwnerID) { + fields = append(fields, group.FieldOwnerID) } - if m.FieldCleared(hush.FieldSecretName) { - fields = append(fields, hush.FieldSecretName) + if m.FieldCleared(group.FieldDescription) { + fields = append(fields, group.FieldDescription) } - if m.FieldCleared(hush.FieldSecretValue) { - fields = append(fields, hush.FieldSecretValue) + if m.FieldCleared(group.FieldGravatarLogoURL) { + fields = append(fields, group.FieldGravatarLogoURL) + } + if m.FieldCleared(group.FieldLogoURL) { + fields = append(fields, group.FieldLogoURL) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *HushMutation) FieldCleared(name string) bool { +func (m *GroupMutation) 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 *HushMutation) ClearField(name string) error { +func (m *GroupMutation) ClearField(name string) error { switch name { - case hush.FieldCreatedAt: + case group.FieldCreatedAt: m.ClearCreatedAt() return nil - case hush.FieldUpdatedAt: + case group.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case hush.FieldCreatedBy: + case group.FieldCreatedBy: m.ClearCreatedBy() return nil - case hush.FieldUpdatedBy: + case group.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case hush.FieldDeletedAt: + case group.FieldDeletedAt: m.ClearDeletedAt() return nil - case hush.FieldDeletedBy: + case group.FieldDeletedBy: m.ClearDeletedBy() return nil - case hush.FieldDescription: - m.ClearDescription() + case group.FieldTags: + m.ClearTags() return nil - case hush.FieldKind: - m.ClearKind() + case group.FieldOwnerID: + m.ClearOwnerID() return nil - case hush.FieldSecretName: - m.ClearSecretName() + case group.FieldDescription: + m.ClearDescription() return nil - case hush.FieldSecretValue: - m.ClearSecretValue() + case group.FieldGravatarLogoURL: + m.ClearGravatarLogoURL() + return nil + case group.FieldLogoURL: + m.ClearLogoURL() return nil } - return fmt.Errorf("unknown Hush nullable field %s", name) + return fmt.Errorf("unknown Group 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 *HushMutation) ResetField(name string) error { +func (m *GroupMutation) ResetField(name string) error { switch name { - case hush.FieldCreatedAt: + case group.FieldCreatedAt: m.ResetCreatedAt() return nil - case hush.FieldUpdatedAt: + case group.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case hush.FieldCreatedBy: + case group.FieldCreatedBy: m.ResetCreatedBy() return nil - case hush.FieldUpdatedBy: + case group.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case hush.FieldMappingID: - m.ResetMappingID() - return nil - case hush.FieldDeletedAt: + case group.FieldDeletedAt: m.ResetDeletedAt() return nil - case hush.FieldDeletedBy: + case group.FieldDeletedBy: m.ResetDeletedBy() return nil - case hush.FieldName: + case group.FieldMappingID: + m.ResetMappingID() + return nil + case group.FieldTags: + m.ResetTags() + return nil + case group.FieldOwnerID: + m.ResetOwnerID() + return nil + case group.FieldName: m.ResetName() return nil - case hush.FieldDescription: + case group.FieldDescription: m.ResetDescription() return nil - case hush.FieldKind: - m.ResetKind() + case group.FieldGravatarLogoURL: + m.ResetGravatarLogoURL() return nil - case hush.FieldSecretName: - m.ResetSecretName() + case group.FieldLogoURL: + m.ResetLogoURL() return nil - case hush.FieldSecretValue: - m.ResetSecretValue() + case group.FieldDisplayName: + m.ResetDisplayName() return nil } - return fmt.Errorf("unknown Hush field %s", name) + return fmt.Errorf("unknown Group field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *HushMutation) AddedEdges() []string { - edges := make([]string, 0, 3) - if m.integrations != nil { - edges = append(edges, hush.EdgeIntegrations) +func (m *GroupMutation) AddedEdges() []string { + edges := make([]string, 0, 7) + if m.owner != nil { + edges = append(edges, group.EdgeOwner) } - if m.organization != nil { - edges = append(edges, hush.EdgeOrganization) + if m.setting != nil { + edges = append(edges, group.EdgeSetting) + } + if m.users != nil { + edges = append(edges, group.EdgeUsers) } if m.events != nil { - edges = append(edges, hush.EdgeEvents) + edges = append(edges, group.EdgeEvents) + } + if m.integrations != nil { + edges = append(edges, group.EdgeIntegrations) + } + if m.files != nil { + edges = append(edges, group.EdgeFiles) + } + if m.members != nil { + edges = append(edges, group.EdgeMembers) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *HushMutation) AddedIDs(name string) []ent.Value { +func (m *GroupMutation) AddedIDs(name string) []ent.Value { switch name { - case hush.EdgeIntegrations: - ids := make([]ent.Value, 0, len(m.integrations)) - for id := range m.integrations { + case group.EdgeOwner: + if id := m.owner; id != nil { + return []ent.Value{*id} + } + case group.EdgeSetting: + if id := m.setting; id != nil { + return []ent.Value{*id} + } + case group.EdgeUsers: + ids := make([]ent.Value, 0, len(m.users)) + for id := range m.users { ids = append(ids, id) } return ids - case hush.EdgeOrganization: - ids := make([]ent.Value, 0, len(m.organization)) - for id := range m.organization { + case group.EdgeEvents: + ids := make([]ent.Value, 0, len(m.events)) + for id := range m.events { ids = append(ids, id) } return ids - case hush.EdgeEvents: - ids := make([]ent.Value, 0, len(m.events)) - for id := range m.events { + case group.EdgeIntegrations: + ids := make([]ent.Value, 0, len(m.integrations)) + for id := range m.integrations { + ids = append(ids, id) + } + return ids + case group.EdgeFiles: + ids := make([]ent.Value, 0, len(m.files)) + for id := range m.files { + ids = append(ids, id) + } + return ids + case group.EdgeMembers: + ids := make([]ent.Value, 0, len(m.members)) + for id := range m.members { ids = append(ids, id) } return ids @@ -43781,39 +47599,57 @@ func (m *HushMutation) AddedIDs(name string) []ent.Value { } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *HushMutation) RemovedEdges() []string { - edges := make([]string, 0, 3) +func (m *GroupMutation) RemovedEdges() []string { + edges := make([]string, 0, 7) + if m.removedusers != nil { + edges = append(edges, group.EdgeUsers) + } + if m.removedevents != nil { + edges = append(edges, group.EdgeEvents) + } if m.removedintegrations != nil { - edges = append(edges, hush.EdgeIntegrations) + edges = append(edges, group.EdgeIntegrations) } - if m.removedorganization != nil { - edges = append(edges, hush.EdgeOrganization) + if m.removedfiles != nil { + edges = append(edges, group.EdgeFiles) } - if m.removedevents != nil { - edges = append(edges, hush.EdgeEvents) + if m.removedmembers != nil { + edges = append(edges, group.EdgeMembers) } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *HushMutation) RemovedIDs(name string) []ent.Value { +func (m *GroupMutation) RemovedIDs(name string) []ent.Value { switch name { - case hush.EdgeIntegrations: + case group.EdgeUsers: + ids := make([]ent.Value, 0, len(m.removedusers)) + for id := range m.removedusers { + ids = append(ids, id) + } + return ids + case group.EdgeEvents: + ids := make([]ent.Value, 0, len(m.removedevents)) + for id := range m.removedevents { + ids = append(ids, id) + } + return ids + case group.EdgeIntegrations: ids := make([]ent.Value, 0, len(m.removedintegrations)) for id := range m.removedintegrations { ids = append(ids, id) } return ids - case hush.EdgeOrganization: - ids := make([]ent.Value, 0, len(m.removedorganization)) - for id := range m.removedorganization { + case group.EdgeFiles: + ids := make([]ent.Value, 0, len(m.removedfiles)) + for id := range m.removedfiles { ids = append(ids, id) } return ids - case hush.EdgeEvents: - ids := make([]ent.Value, 0, len(m.removedevents)) - for id := range m.removedevents { + case group.EdgeMembers: + ids := make([]ent.Value, 0, len(m.removedmembers)) + for id := range m.removedmembers { ids = append(ids, id) } return ids @@ -43822,97 +47658,138 @@ func (m *HushMutation) RemovedIDs(name string) []ent.Value { } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *HushMutation) ClearedEdges() []string { - edges := make([]string, 0, 3) - if m.clearedintegrations { - edges = append(edges, hush.EdgeIntegrations) +func (m *GroupMutation) ClearedEdges() []string { + edges := make([]string, 0, 7) + if m.clearedowner { + edges = append(edges, group.EdgeOwner) } - if m.clearedorganization { - edges = append(edges, hush.EdgeOrganization) + if m.clearedsetting { + edges = append(edges, group.EdgeSetting) + } + if m.clearedusers { + edges = append(edges, group.EdgeUsers) } if m.clearedevents { - edges = append(edges, hush.EdgeEvents) + edges = append(edges, group.EdgeEvents) + } + if m.clearedintegrations { + edges = append(edges, group.EdgeIntegrations) + } + if m.clearedfiles { + edges = append(edges, group.EdgeFiles) + } + if m.clearedmembers { + edges = append(edges, group.EdgeMembers) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *HushMutation) EdgeCleared(name string) bool { +func (m *GroupMutation) EdgeCleared(name string) bool { switch name { - case hush.EdgeIntegrations: - return m.clearedintegrations - case hush.EdgeOrganization: - return m.clearedorganization - case hush.EdgeEvents: + case group.EdgeOwner: + return m.clearedowner + case group.EdgeSetting: + return m.clearedsetting + case group.EdgeUsers: + return m.clearedusers + case group.EdgeEvents: return m.clearedevents + case group.EdgeIntegrations: + return m.clearedintegrations + case group.EdgeFiles: + return m.clearedfiles + case group.EdgeMembers: + return m.clearedmembers } 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 *HushMutation) ClearEdge(name string) error { +func (m *GroupMutation) ClearEdge(name string) error { switch name { + case group.EdgeOwner: + m.ClearOwner() + return nil + case group.EdgeSetting: + m.ClearSetting() + return nil } - return fmt.Errorf("unknown Hush unique edge %s", name) + return fmt.Errorf("unknown Group 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 *HushMutation) ResetEdge(name string) error { +func (m *GroupMutation) ResetEdge(name string) error { switch name { - case hush.EdgeIntegrations: - m.ResetIntegrations() + case group.EdgeOwner: + m.ResetOwner() return nil - case hush.EdgeOrganization: - m.ResetOrganization() + case group.EdgeSetting: + m.ResetSetting() return nil - case hush.EdgeEvents: + case group.EdgeUsers: + m.ResetUsers() + return nil + case group.EdgeEvents: m.ResetEvents() return nil + case group.EdgeIntegrations: + m.ResetIntegrations() + return nil + case group.EdgeFiles: + m.ResetFiles() + return nil + case group.EdgeMembers: + m.ResetMembers() + return nil } - return fmt.Errorf("unknown Hush edge %s", name) + return fmt.Errorf("unknown Group edge %s", name) } -// HushHistoryMutation represents an operation that mutates the HushHistory nodes in the graph. -type HushHistoryMutation struct { +// GroupHistoryMutation represents an operation that mutates the GroupHistory nodes in the graph. +type GroupHistoryMutation 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 - mapping_id *string - deleted_at *time.Time - deleted_by *string - name *string - description *string - kind *string - secret_name *string - secret_value *string - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*HushHistory, error) - predicates []predicate.HushHistory + 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 + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + owner_id *string + name *string + description *string + gravatar_logo_url *string + logo_url *string + display_name *string + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*GroupHistory, error) + predicates []predicate.GroupHistory } -var _ ent.Mutation = (*HushHistoryMutation)(nil) +var _ ent.Mutation = (*GroupHistoryMutation)(nil) -// hushhistoryOption allows management of the mutation configuration using functional options. -type hushhistoryOption func(*HushHistoryMutation) +// grouphistoryOption allows management of the mutation configuration using functional options. +type grouphistoryOption func(*GroupHistoryMutation) -// newHushHistoryMutation creates new mutation for the HushHistory entity. -func newHushHistoryMutation(c config, op Op, opts ...hushhistoryOption) *HushHistoryMutation { - m := &HushHistoryMutation{ +// newGroupHistoryMutation creates new mutation for the GroupHistory entity. +func newGroupHistoryMutation(c config, op Op, opts ...grouphistoryOption) *GroupHistoryMutation { + m := &GroupHistoryMutation{ config: c, op: op, - typ: TypeHushHistory, + typ: TypeGroupHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -43921,20 +47798,20 @@ func newHushHistoryMutation(c config, op Op, opts ...hushhistoryOption) *HushHis return m } -// withHushHistoryID sets the ID field of the mutation. -func withHushHistoryID(id string) hushhistoryOption { - return func(m *HushHistoryMutation) { +// withGroupHistoryID sets the ID field of the mutation. +func withGroupHistoryID(id string) grouphistoryOption { + return func(m *GroupHistoryMutation) { var ( err error once sync.Once - value *HushHistory + value *GroupHistory ) - m.oldValue = func(ctx context.Context) (*HushHistory, error) { + m.oldValue = func(ctx context.Context) (*GroupHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().HushHistory.Get(ctx, id) + value, err = m.Client().GroupHistory.Get(ctx, id) } }) return value, err @@ -43943,10 +47820,10 @@ func withHushHistoryID(id string) hushhistoryOption { } } -// withHushHistory sets the old HushHistory of the mutation. -func withHushHistory(node *HushHistory) hushhistoryOption { - return func(m *HushHistoryMutation) { - m.oldValue = func(context.Context) (*HushHistory, error) { +// withGroupHistory sets the old GroupHistory of the mutation. +func withGroupHistory(node *GroupHistory) grouphistoryOption { + return func(m *GroupHistoryMutation) { + m.oldValue = func(context.Context) (*GroupHistory, error) { return node, nil } m.id = &node.ID @@ -43955,7 +47832,7 @@ func withHushHistory(node *HushHistory) hushhistoryOption { // 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 HushHistoryMutation) Client() *Client { +func (m GroupHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -43963,7 +47840,7 @@ func (m HushHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m HushHistoryMutation) Tx() (*Tx, error) { +func (m GroupHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -43973,14 +47850,14 @@ func (m HushHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of HushHistory entities. -func (m *HushHistoryMutation) SetID(id string) { +// operation is only accepted on creation of GroupHistory entities. +func (m *GroupHistoryMutation) 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 *HushHistoryMutation) ID() (id string, exists bool) { +func (m *GroupHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -43991,7 +47868,7 @@ func (m *HushHistoryMutation) ID() (id string, exists bool) { // 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 *HushHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *GroupHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -44000,19 +47877,19 @@ func (m *HushHistoryMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().HushHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().GroupHistory.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 *HushHistoryMutation) SetHistoryTime(t time.Time) { +func (m *GroupHistoryMutation) SetHistoryTime(t time.Time) { m.history_time = &t } // HistoryTime returns the value of the "history_time" field in the mutation. -func (m *HushHistoryMutation) HistoryTime() (r time.Time, exists bool) { +func (m *GroupHistoryMutation) HistoryTime() (r time.Time, exists bool) { v := m.history_time if v == nil { return @@ -44020,10 +47897,10 @@ func (m *HushHistoryMutation) HistoryTime() (r time.Time, exists bool) { return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *GroupHistoryMutation) 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") } @@ -44038,17 +47915,17 @@ func (m *HushHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, } // ResetHistoryTime resets all changes to the "history_time" field. -func (m *HushHistoryMutation) ResetHistoryTime() { +func (m *GroupHistoryMutation) ResetHistoryTime() { m.history_time = nil } // SetRef sets the "ref" field. -func (m *HushHistoryMutation) SetRef(s string) { +func (m *GroupHistoryMutation) SetRef(s string) { m.ref = &s } // Ref returns the value of the "ref" field in the mutation. -func (m *HushHistoryMutation) Ref() (r string, exists bool) { +func (m *GroupHistoryMutation) Ref() (r string, exists bool) { v := m.ref if v == nil { return @@ -44056,10 +47933,10 @@ func (m *HushHistoryMutation) Ref() (r string, exists bool) { return *v, true } -// OldRef returns the old "ref" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *GroupHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldRef is only allowed on UpdateOne operations") } @@ -44074,30 +47951,30 @@ func (m *HushHistoryMutation) OldRef(ctx context.Context) (v string, err error) } // ClearRef clears the value of the "ref" field. -func (m *HushHistoryMutation) ClearRef() { +func (m *GroupHistoryMutation) ClearRef() { m.ref = nil - m.clearedFields[hushhistory.FieldRef] = struct{}{} + m.clearedFields[grouphistory.FieldRef] = struct{}{} } // RefCleared returns if the "ref" field was cleared in this mutation. -func (m *HushHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[hushhistory.FieldRef] +func (m *GroupHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[grouphistory.FieldRef] return ok } // ResetRef resets all changes to the "ref" field. -func (m *HushHistoryMutation) ResetRef() { +func (m *GroupHistoryMutation) ResetRef() { m.ref = nil - delete(m.clearedFields, hushhistory.FieldRef) + delete(m.clearedFields, grouphistory.FieldRef) } // SetOperation sets the "operation" field. -func (m *HushHistoryMutation) SetOperation(ht history.OpType) { +func (m *GroupHistoryMutation) SetOperation(ht history.OpType) { m.operation = &ht } // Operation returns the value of the "operation" field in the mutation. -func (m *HushHistoryMutation) Operation() (r history.OpType, exists bool) { +func (m *GroupHistoryMutation) Operation() (r history.OpType, exists bool) { v := m.operation if v == nil { return @@ -44105,10 +47982,10 @@ func (m *HushHistoryMutation) Operation() (r history.OpType, exists bool) { return *v, true } -// OldOperation returns the old "operation" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *GroupHistoryMutation) 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") } @@ -44123,17 +48000,17 @@ func (m *HushHistoryMutation) OldOperation(ctx context.Context) (v history.OpTyp } // ResetOperation resets all changes to the "operation" field. -func (m *HushHistoryMutation) ResetOperation() { +func (m *GroupHistoryMutation) ResetOperation() { m.operation = nil } // SetCreatedAt sets the "created_at" field. -func (m *HushHistoryMutation) SetCreatedAt(t time.Time) { +func (m *GroupHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *HushHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *GroupHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -44141,10 +48018,10 @@ func (m *HushHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupHistoryMutation) 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") } @@ -44159,30 +48036,30 @@ func (m *HushHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, er } // ClearCreatedAt clears the value of the "created_at" field. -func (m *HushHistoryMutation) ClearCreatedAt() { +func (m *GroupHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[hushhistory.FieldCreatedAt] = struct{}{} + m.clearedFields[grouphistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *HushHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[hushhistory.FieldCreatedAt] +func (m *GroupHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[grouphistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *HushHistoryMutation) ResetCreatedAt() { +func (m *GroupHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, hushhistory.FieldCreatedAt) + delete(m.clearedFields, grouphistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *HushHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *GroupHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *HushHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *GroupHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -44190,10 +48067,10 @@ func (m *HushHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupHistoryMutation) 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") } @@ -44208,30 +48085,30 @@ func (m *HushHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, er } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *HushHistoryMutation) ClearUpdatedAt() { +func (m *GroupHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[hushhistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[grouphistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *HushHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[hushhistory.FieldUpdatedAt] +func (m *GroupHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[grouphistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *HushHistoryMutation) ResetUpdatedAt() { +func (m *GroupHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, hushhistory.FieldUpdatedAt) + delete(m.clearedFields, grouphistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *HushHistoryMutation) SetCreatedBy(s string) { +func (m *GroupHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *HushHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *GroupHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -44239,10 +48116,10 @@ func (m *HushHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *GroupHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -44257,30 +48134,30 @@ func (m *HushHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err e } // ClearCreatedBy clears the value of the "created_by" field. -func (m *HushHistoryMutation) ClearCreatedBy() { +func (m *GroupHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[hushhistory.FieldCreatedBy] = struct{}{} + m.clearedFields[grouphistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *HushHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[hushhistory.FieldCreatedBy] +func (m *GroupHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[grouphistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *HushHistoryMutation) ResetCreatedBy() { +func (m *GroupHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, hushhistory.FieldCreatedBy) + delete(m.clearedFields, grouphistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *HushHistoryMutation) SetUpdatedBy(s string) { +func (m *GroupHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *HushHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *GroupHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -44288,10 +48165,10 @@ func (m *HushHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *GroupHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -44306,66 +48183,30 @@ func (m *HushHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err e } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *HushHistoryMutation) ClearUpdatedBy() { +func (m *GroupHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[hushhistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[grouphistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *HushHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[hushhistory.FieldUpdatedBy] +func (m *GroupHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[grouphistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *HushHistoryMutation) ResetUpdatedBy() { +func (m *GroupHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, hushhistory.FieldUpdatedBy) -} - -// SetMappingID sets the "mapping_id" field. -func (m *HushHistoryMutation) SetMappingID(s string) { - m.mapping_id = &s -} - -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *HushHistoryMutation) MappingID() (r string, exists bool) { - v := m.mapping_id - if v == nil { - return - } - return *v, true -} - -// OldMappingID returns the old "mapping_id" field's value of the HushHistory entity. -// If the HushHistory 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 *HushHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) - } - return oldValue.MappingID, nil -} - -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *HushHistoryMutation) ResetMappingID() { - m.mapping_id = nil + delete(m.clearedFields, grouphistory.FieldUpdatedBy) } // SetDeletedAt sets the "deleted_at" field. -func (m *HushHistoryMutation) SetDeletedAt(t time.Time) { +func (m *GroupHistoryMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *HushHistoryMutation) DeletedAt() (r time.Time, exists bool) { +func (m *GroupHistoryMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -44373,10 +48214,10 @@ func (m *HushHistoryMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupHistoryMutation) 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") } @@ -44391,30 +48232,30 @@ func (m *HushHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, er } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *HushHistoryMutation) ClearDeletedAt() { +func (m *GroupHistoryMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[hushhistory.FieldDeletedAt] = struct{}{} + m.clearedFields[grouphistory.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *HushHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[hushhistory.FieldDeletedAt] +func (m *GroupHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[grouphistory.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *HushHistoryMutation) ResetDeletedAt() { +func (m *GroupHistoryMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, hushhistory.FieldDeletedAt) + delete(m.clearedFields, grouphistory.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *HushHistoryMutation) SetDeletedBy(s string) { +func (m *GroupHistoryMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *HushHistoryMutation) DeletedBy() (r string, exists bool) { +func (m *GroupHistoryMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -44422,10 +48263,10 @@ func (m *HushHistoryMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *GroupHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -44440,77 +48281,227 @@ func (m *HushHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err e } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *HushHistoryMutation) ClearDeletedBy() { +func (m *GroupHistoryMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[hushhistory.FieldDeletedBy] = struct{}{} + m.clearedFields[grouphistory.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *HushHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[hushhistory.FieldDeletedBy] +func (m *GroupHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[grouphistory.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *HushHistoryMutation) ResetDeletedBy() { +func (m *GroupHistoryMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, hushhistory.FieldDeletedBy) + delete(m.clearedFields, grouphistory.FieldDeletedBy) } -// SetName sets the "name" field. -func (m *HushHistoryMutation) SetName(s string) { - m.name = &s +// SetMappingID sets the "mapping_id" field. +func (m *GroupHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s } -// Name returns the value of the "name" field in the mutation. -func (m *HushHistoryMutation) Name() (r string, exists bool) { - v := m.name +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *GroupHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id if v == nil { return } return *v, true } -// OldName returns the old "name" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldName(ctx context.Context) (v string, err error) { +func (m *GroupHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldName is only allowed on UpdateOne operations") + return v, errors.New("OldMappingID 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") + return v, errors.New("OldMappingID 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 v, fmt.Errorf("querying old value for OldMappingID: %w", err) } - return oldValue.Name, nil + return oldValue.MappingID, nil } -// ResetName resets all changes to the "name" field. -func (m *HushHistoryMutation) ResetName() { - m.name = nil +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *GroupHistoryMutation) ResetMappingID() { + m.mapping_id = nil } -// SetDescription sets the "description" field. -func (m *HushHistoryMutation) SetDescription(s string) { - m.description = &s +// SetTags sets the "tags" field. +func (m *GroupHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// Description returns the value of the "description" field in the mutation. -func (m *HushHistoryMutation) Description() (r string, exists bool) { - v := m.description +// Tags returns the value of the "tags" field in the mutation. +func (m *GroupHistoryMutation) Tags() (r []string, exists bool) { + v := m.tags if v == nil { return } return *v, true } -// OldDescription returns the old "description" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { +func (m *GroupHistoryMutation) 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 *GroupHistoryMutation) 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 *GroupHistoryMutation) 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 *GroupHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[grouphistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *GroupHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[grouphistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *GroupHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, grouphistory.FieldTags) +} + +// SetOwnerID sets the "owner_id" field. +func (m *GroupHistoryMutation) SetOwnerID(s string) { + m.owner_id = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *GroupHistoryMutation) 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 GroupHistory entity. +// If the GroupHistory 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 *GroupHistoryMutation) 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 *GroupHistoryMutation) ClearOwnerID() { + m.owner_id = nil + m.clearedFields[grouphistory.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *GroupHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[grouphistory.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *GroupHistoryMutation) ResetOwnerID() { + m.owner_id = nil + delete(m.clearedFields, grouphistory.FieldOwnerID) +} + +// SetName sets the "name" field. +func (m *GroupHistoryMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *GroupHistoryMutation) 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 GroupHistory entity. +// If the GroupHistory 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 *GroupHistoryMutation) 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 *GroupHistoryMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *GroupHistoryMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *GroupHistoryMutation) 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 GroupHistory entity. +// If the GroupHistory 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 *GroupHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDescription is only allowed on UpdateOne operations") } @@ -44525,179 +48516,166 @@ func (m *HushHistoryMutation) OldDescription(ctx context.Context) (v string, err } // ClearDescription clears the value of the "description" field. -func (m *HushHistoryMutation) ClearDescription() { +func (m *GroupHistoryMutation) ClearDescription() { m.description = nil - m.clearedFields[hushhistory.FieldDescription] = struct{}{} + m.clearedFields[grouphistory.FieldDescription] = struct{}{} } // DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *HushHistoryMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[hushhistory.FieldDescription] +func (m *GroupHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[grouphistory.FieldDescription] return ok } // ResetDescription resets all changes to the "description" field. -func (m *HushHistoryMutation) ResetDescription() { +func (m *GroupHistoryMutation) ResetDescription() { m.description = nil - delete(m.clearedFields, hushhistory.FieldDescription) + delete(m.clearedFields, grouphistory.FieldDescription) } -// SetKind sets the "kind" field. -func (m *HushHistoryMutation) SetKind(s string) { - m.kind = &s +// SetGravatarLogoURL sets the "gravatar_logo_url" field. +func (m *GroupHistoryMutation) SetGravatarLogoURL(s string) { + m.gravatar_logo_url = &s } -// Kind returns the value of the "kind" field in the mutation. -func (m *HushHistoryMutation) Kind() (r string, exists bool) { - v := m.kind +// GravatarLogoURL returns the value of the "gravatar_logo_url" field in the mutation. +func (m *GroupHistoryMutation) GravatarLogoURL() (r string, exists bool) { + v := m.gravatar_logo_url if v == nil { return } return *v, true } -// OldKind returns the old "kind" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldGravatarLogoURL returns the old "gravatar_logo_url" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldKind(ctx context.Context) (v string, err error) { +func (m *GroupHistoryMutation) OldGravatarLogoURL(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldKind is only allowed on UpdateOne operations") + return v, errors.New("OldGravatarLogoURL is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldKind requires an ID field in the mutation") + return v, errors.New("OldGravatarLogoURL requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldKind: %w", err) + return v, fmt.Errorf("querying old value for OldGravatarLogoURL: %w", err) } - return oldValue.Kind, nil + return oldValue.GravatarLogoURL, nil } -// ClearKind clears the value of the "kind" field. -func (m *HushHistoryMutation) ClearKind() { - m.kind = nil - m.clearedFields[hushhistory.FieldKind] = struct{}{} +// ClearGravatarLogoURL clears the value of the "gravatar_logo_url" field. +func (m *GroupHistoryMutation) ClearGravatarLogoURL() { + m.gravatar_logo_url = nil + m.clearedFields[grouphistory.FieldGravatarLogoURL] = struct{}{} } -// KindCleared returns if the "kind" field was cleared in this mutation. -func (m *HushHistoryMutation) KindCleared() bool { - _, ok := m.clearedFields[hushhistory.FieldKind] +// GravatarLogoURLCleared returns if the "gravatar_logo_url" field was cleared in this mutation. +func (m *GroupHistoryMutation) GravatarLogoURLCleared() bool { + _, ok := m.clearedFields[grouphistory.FieldGravatarLogoURL] return ok } -// ResetKind resets all changes to the "kind" field. -func (m *HushHistoryMutation) ResetKind() { - m.kind = nil - delete(m.clearedFields, hushhistory.FieldKind) +// ResetGravatarLogoURL resets all changes to the "gravatar_logo_url" field. +func (m *GroupHistoryMutation) ResetGravatarLogoURL() { + m.gravatar_logo_url = nil + delete(m.clearedFields, grouphistory.FieldGravatarLogoURL) } -// SetSecretName sets the "secret_name" field. -func (m *HushHistoryMutation) SetSecretName(s string) { - m.secret_name = &s +// SetLogoURL sets the "logo_url" field. +func (m *GroupHistoryMutation) SetLogoURL(s string) { + m.logo_url = &s } -// SecretName returns the value of the "secret_name" field in the mutation. -func (m *HushHistoryMutation) SecretName() (r string, exists bool) { - v := m.secret_name +// LogoURL returns the value of the "logo_url" field in the mutation. +func (m *GroupHistoryMutation) LogoURL() (r string, exists bool) { + v := m.logo_url if v == nil { return } return *v, true } -// OldSecretName returns the old "secret_name" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldLogoURL returns the old "logo_url" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldSecretName(ctx context.Context) (v string, err error) { +func (m *GroupHistoryMutation) OldLogoURL(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldSecretName is only allowed on UpdateOne operations") + return v, errors.New("OldLogoURL is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldSecretName requires an ID field in the mutation") + return v, errors.New("OldLogoURL requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldSecretName: %w", err) + return v, fmt.Errorf("querying old value for OldLogoURL: %w", err) } - return oldValue.SecretName, nil + return oldValue.LogoURL, nil } -// ClearSecretName clears the value of the "secret_name" field. -func (m *HushHistoryMutation) ClearSecretName() { - m.secret_name = nil - m.clearedFields[hushhistory.FieldSecretName] = struct{}{} +// ClearLogoURL clears the value of the "logo_url" field. +func (m *GroupHistoryMutation) ClearLogoURL() { + m.logo_url = nil + m.clearedFields[grouphistory.FieldLogoURL] = struct{}{} } -// SecretNameCleared returns if the "secret_name" field was cleared in this mutation. -func (m *HushHistoryMutation) SecretNameCleared() bool { - _, ok := m.clearedFields[hushhistory.FieldSecretName] +// LogoURLCleared returns if the "logo_url" field was cleared in this mutation. +func (m *GroupHistoryMutation) LogoURLCleared() bool { + _, ok := m.clearedFields[grouphistory.FieldLogoURL] return ok } -// ResetSecretName resets all changes to the "secret_name" field. -func (m *HushHistoryMutation) ResetSecretName() { - m.secret_name = nil - delete(m.clearedFields, hushhistory.FieldSecretName) +// ResetLogoURL resets all changes to the "logo_url" field. +func (m *GroupHistoryMutation) ResetLogoURL() { + m.logo_url = nil + delete(m.clearedFields, grouphistory.FieldLogoURL) } -// SetSecretValue sets the "secret_value" field. -func (m *HushHistoryMutation) SetSecretValue(s string) { - m.secret_value = &s +// SetDisplayName sets the "display_name" field. +func (m *GroupHistoryMutation) SetDisplayName(s string) { + m.display_name = &s } -// SecretValue returns the value of the "secret_value" field in the mutation. -func (m *HushHistoryMutation) SecretValue() (r string, exists bool) { - v := m.secret_value +// DisplayName returns the value of the "display_name" field in the mutation. +func (m *GroupHistoryMutation) DisplayName() (r string, exists bool) { + v := m.display_name if v == nil { return } return *v, true } -// OldSecretValue returns the old "secret_value" field's value of the HushHistory entity. -// If the HushHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDisplayName returns the old "display_name" field's value of the GroupHistory entity. +// If the GroupHistory 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 *HushHistoryMutation) OldSecretValue(ctx context.Context) (v string, err error) { +func (m *GroupHistoryMutation) OldDisplayName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldSecretValue is only allowed on UpdateOne operations") + return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldSecretValue requires an ID field in the mutation") + return v, errors.New("OldDisplayName requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldSecretValue: %w", err) + return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) } - return oldValue.SecretValue, nil -} - -// ClearSecretValue clears the value of the "secret_value" field. -func (m *HushHistoryMutation) ClearSecretValue() { - m.secret_value = nil - m.clearedFields[hushhistory.FieldSecretValue] = struct{}{} -} - -// SecretValueCleared returns if the "secret_value" field was cleared in this mutation. -func (m *HushHistoryMutation) SecretValueCleared() bool { - _, ok := m.clearedFields[hushhistory.FieldSecretValue] - return ok + return oldValue.DisplayName, nil } -// ResetSecretValue resets all changes to the "secret_value" field. -func (m *HushHistoryMutation) ResetSecretValue() { - m.secret_value = nil - delete(m.clearedFields, hushhistory.FieldSecretValue) +// ResetDisplayName resets all changes to the "display_name" field. +func (m *GroupHistoryMutation) ResetDisplayName() { + m.display_name = nil } -// Where appends a list predicates to the HushHistoryMutation builder. -func (m *HushHistoryMutation) Where(ps ...predicate.HushHistory) { +// Where appends a list predicates to the GroupHistoryMutation builder. +func (m *GroupHistoryMutation) Where(ps ...predicate.GroupHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the HushHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the GroupHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *HushHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.HushHistory, len(ps)) +func (m *GroupHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.GroupHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -44705,69 +48683,75 @@ func (m *HushHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *HushHistoryMutation) Op() Op { +func (m *GroupHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *HushHistoryMutation) SetOp(op Op) { +func (m *GroupHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (HushHistory). -func (m *HushHistoryMutation) Type() string { +// Type returns the node type of this mutation (GroupHistory). +func (m *GroupHistoryMutation) 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 *HushHistoryMutation) Fields() []string { - fields := make([]string, 0, 15) +func (m *GroupHistoryMutation) Fields() []string { + fields := make([]string, 0, 17) if m.history_time != nil { - fields = append(fields, hushhistory.FieldHistoryTime) + fields = append(fields, grouphistory.FieldHistoryTime) } if m.ref != nil { - fields = append(fields, hushhistory.FieldRef) + fields = append(fields, grouphistory.FieldRef) } if m.operation != nil { - fields = append(fields, hushhistory.FieldOperation) + fields = append(fields, grouphistory.FieldOperation) } if m.created_at != nil { - fields = append(fields, hushhistory.FieldCreatedAt) + fields = append(fields, grouphistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, hushhistory.FieldUpdatedAt) + fields = append(fields, grouphistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, hushhistory.FieldCreatedBy) + fields = append(fields, grouphistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, hushhistory.FieldUpdatedBy) - } - if m.mapping_id != nil { - fields = append(fields, hushhistory.FieldMappingID) + fields = append(fields, grouphistory.FieldUpdatedBy) } if m.deleted_at != nil { - fields = append(fields, hushhistory.FieldDeletedAt) + fields = append(fields, grouphistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, hushhistory.FieldDeletedBy) + fields = append(fields, grouphistory.FieldDeletedBy) + } + if m.mapping_id != nil { + fields = append(fields, grouphistory.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, grouphistory.FieldTags) + } + if m.owner_id != nil { + fields = append(fields, grouphistory.FieldOwnerID) } if m.name != nil { - fields = append(fields, hushhistory.FieldName) + fields = append(fields, grouphistory.FieldName) } if m.description != nil { - fields = append(fields, hushhistory.FieldDescription) + fields = append(fields, grouphistory.FieldDescription) } - if m.kind != nil { - fields = append(fields, hushhistory.FieldKind) + if m.gravatar_logo_url != nil { + fields = append(fields, grouphistory.FieldGravatarLogoURL) } - if m.secret_name != nil { - fields = append(fields, hushhistory.FieldSecretName) + if m.logo_url != nil { + fields = append(fields, grouphistory.FieldLogoURL) } - if m.secret_value != nil { - fields = append(fields, hushhistory.FieldSecretValue) + if m.display_name != nil { + fields = append(fields, grouphistory.FieldDisplayName) } return fields } @@ -44775,38 +48759,42 @@ func (m *HushHistoryMutation) Fields() []string { // 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 *HushHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *GroupHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case hushhistory.FieldHistoryTime: + case grouphistory.FieldHistoryTime: return m.HistoryTime() - case hushhistory.FieldRef: + case grouphistory.FieldRef: return m.Ref() - case hushhistory.FieldOperation: + case grouphistory.FieldOperation: return m.Operation() - case hushhistory.FieldCreatedAt: + case grouphistory.FieldCreatedAt: return m.CreatedAt() - case hushhistory.FieldUpdatedAt: + case grouphistory.FieldUpdatedAt: return m.UpdatedAt() - case hushhistory.FieldCreatedBy: + case grouphistory.FieldCreatedBy: return m.CreatedBy() - case hushhistory.FieldUpdatedBy: + case grouphistory.FieldUpdatedBy: return m.UpdatedBy() - case hushhistory.FieldMappingID: - return m.MappingID() - case hushhistory.FieldDeletedAt: + case grouphistory.FieldDeletedAt: return m.DeletedAt() - case hushhistory.FieldDeletedBy: + case grouphistory.FieldDeletedBy: return m.DeletedBy() - case hushhistory.FieldName: + case grouphistory.FieldMappingID: + return m.MappingID() + case grouphistory.FieldTags: + return m.Tags() + case grouphistory.FieldOwnerID: + return m.OwnerID() + case grouphistory.FieldName: return m.Name() - case hushhistory.FieldDescription: + case grouphistory.FieldDescription: return m.Description() - case hushhistory.FieldKind: - return m.Kind() - case hushhistory.FieldSecretName: - return m.SecretName() - case hushhistory.FieldSecretValue: - return m.SecretValue() + case grouphistory.FieldGravatarLogoURL: + return m.GravatarLogoURL() + case grouphistory.FieldLogoURL: + return m.LogoURL() + case grouphistory.FieldDisplayName: + return m.DisplayName() } return nil, false } @@ -44814,416 +48802,435 @@ func (m *HushHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *HushHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *GroupHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case hushhistory.FieldHistoryTime: + case grouphistory.FieldHistoryTime: return m.OldHistoryTime(ctx) - case hushhistory.FieldRef: + case grouphistory.FieldRef: return m.OldRef(ctx) - case hushhistory.FieldOperation: + case grouphistory.FieldOperation: return m.OldOperation(ctx) - case hushhistory.FieldCreatedAt: + case grouphistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case hushhistory.FieldUpdatedAt: + case grouphistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case hushhistory.FieldCreatedBy: + case grouphistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case hushhistory.FieldUpdatedBy: + case grouphistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case hushhistory.FieldMappingID: - return m.OldMappingID(ctx) - case hushhistory.FieldDeletedAt: + case grouphistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case hushhistory.FieldDeletedBy: + case grouphistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case hushhistory.FieldName: + case grouphistory.FieldMappingID: + return m.OldMappingID(ctx) + case grouphistory.FieldTags: + return m.OldTags(ctx) + case grouphistory.FieldOwnerID: + return m.OldOwnerID(ctx) + case grouphistory.FieldName: return m.OldName(ctx) - case hushhistory.FieldDescription: + case grouphistory.FieldDescription: return m.OldDescription(ctx) - case hushhistory.FieldKind: - return m.OldKind(ctx) - case hushhistory.FieldSecretName: - return m.OldSecretName(ctx) - case hushhistory.FieldSecretValue: - return m.OldSecretValue(ctx) + case grouphistory.FieldGravatarLogoURL: + return m.OldGravatarLogoURL(ctx) + case grouphistory.FieldLogoURL: + return m.OldLogoURL(ctx) + case grouphistory.FieldDisplayName: + return m.OldDisplayName(ctx) } - return nil, fmt.Errorf("unknown HushHistory field %s", name) + return nil, fmt.Errorf("unknown GroupHistory 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 *HushHistoryMutation) SetField(name string, value ent.Value) error { +func (m *GroupHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case hushhistory.FieldHistoryTime: + case grouphistory.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 hushhistory.FieldRef: + case grouphistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetRef(v) return nil - case hushhistory.FieldOperation: + case grouphistory.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 hushhistory.FieldCreatedAt: + case grouphistory.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 hushhistory.FieldUpdatedAt: + case grouphistory.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 hushhistory.FieldCreatedBy: + case grouphistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case hushhistory.FieldUpdatedBy: + case grouphistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case hushhistory.FieldMappingID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetMappingID(v) - return nil - case hushhistory.FieldDeletedAt: + case grouphistory.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 hushhistory.FieldDeletedBy: + case grouphistory.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case hushhistory.FieldName: + case grouphistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetName(v) + m.SetMappingID(v) return nil - case hushhistory.FieldDescription: - v, ok := value.(string) + case grouphistory.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetTags(v) return nil - case hushhistory.FieldKind: + case grouphistory.FieldOwnerID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetKind(v) + m.SetOwnerID(v) return nil - case hushhistory.FieldSecretName: + case grouphistory.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetSecretName(v) + m.SetName(v) return nil - case hushhistory.FieldSecretValue: + case grouphistory.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetSecretValue(v) + m.SetDescription(v) + return nil + case grouphistory.FieldGravatarLogoURL: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetGravatarLogoURL(v) + return nil + case grouphistory.FieldLogoURL: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetLogoURL(v) + return nil + case grouphistory.FieldDisplayName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDisplayName(v) return nil } - return fmt.Errorf("unknown HushHistory field %s", name) + return fmt.Errorf("unknown GroupHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *HushHistoryMutation) AddedFields() []string { +func (m *GroupHistoryMutation) 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 *HushHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *GroupHistoryMutation) 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 *HushHistoryMutation) AddField(name string, value ent.Value) error { +func (m *GroupHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown HushHistory numeric field %s", name) + return fmt.Errorf("unknown GroupHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *HushHistoryMutation) ClearedFields() []string { +func (m *GroupHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(hushhistory.FieldRef) { - fields = append(fields, hushhistory.FieldRef) + if m.FieldCleared(grouphistory.FieldRef) { + fields = append(fields, grouphistory.FieldRef) } - if m.FieldCleared(hushhistory.FieldCreatedAt) { - fields = append(fields, hushhistory.FieldCreatedAt) + if m.FieldCleared(grouphistory.FieldCreatedAt) { + fields = append(fields, grouphistory.FieldCreatedAt) } - if m.FieldCleared(hushhistory.FieldUpdatedAt) { - fields = append(fields, hushhistory.FieldUpdatedAt) + if m.FieldCleared(grouphistory.FieldUpdatedAt) { + fields = append(fields, grouphistory.FieldUpdatedAt) } - if m.FieldCleared(hushhistory.FieldCreatedBy) { - fields = append(fields, hushhistory.FieldCreatedBy) + if m.FieldCleared(grouphistory.FieldCreatedBy) { + fields = append(fields, grouphistory.FieldCreatedBy) } - if m.FieldCleared(hushhistory.FieldUpdatedBy) { - fields = append(fields, hushhistory.FieldUpdatedBy) + if m.FieldCleared(grouphistory.FieldUpdatedBy) { + fields = append(fields, grouphistory.FieldUpdatedBy) } - if m.FieldCleared(hushhistory.FieldDeletedAt) { - fields = append(fields, hushhistory.FieldDeletedAt) + if m.FieldCleared(grouphistory.FieldDeletedAt) { + fields = append(fields, grouphistory.FieldDeletedAt) } - if m.FieldCleared(hushhistory.FieldDeletedBy) { - fields = append(fields, hushhistory.FieldDeletedBy) + if m.FieldCleared(grouphistory.FieldDeletedBy) { + fields = append(fields, grouphistory.FieldDeletedBy) } - if m.FieldCleared(hushhistory.FieldDescription) { - fields = append(fields, hushhistory.FieldDescription) + if m.FieldCleared(grouphistory.FieldTags) { + fields = append(fields, grouphistory.FieldTags) } - if m.FieldCleared(hushhistory.FieldKind) { - fields = append(fields, hushhistory.FieldKind) + if m.FieldCleared(grouphistory.FieldOwnerID) { + fields = append(fields, grouphistory.FieldOwnerID) } - if m.FieldCleared(hushhistory.FieldSecretName) { - fields = append(fields, hushhistory.FieldSecretName) + if m.FieldCleared(grouphistory.FieldDescription) { + fields = append(fields, grouphistory.FieldDescription) } - if m.FieldCleared(hushhistory.FieldSecretValue) { - fields = append(fields, hushhistory.FieldSecretValue) + if m.FieldCleared(grouphistory.FieldGravatarLogoURL) { + fields = append(fields, grouphistory.FieldGravatarLogoURL) + } + if m.FieldCleared(grouphistory.FieldLogoURL) { + fields = append(fields, grouphistory.FieldLogoURL) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *HushHistoryMutation) FieldCleared(name string) bool { +func (m *GroupHistoryMutation) 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 *HushHistoryMutation) ClearField(name string) error { +func (m *GroupHistoryMutation) ClearField(name string) error { switch name { - case hushhistory.FieldRef: + case grouphistory.FieldRef: m.ClearRef() return nil - case hushhistory.FieldCreatedAt: + case grouphistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case hushhistory.FieldUpdatedAt: + case grouphistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case hushhistory.FieldCreatedBy: + case grouphistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case hushhistory.FieldUpdatedBy: + case grouphistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case hushhistory.FieldDeletedAt: + case grouphistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case hushhistory.FieldDeletedBy: + case grouphistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case hushhistory.FieldDescription: - m.ClearDescription() + case grouphistory.FieldTags: + m.ClearTags() return nil - case hushhistory.FieldKind: - m.ClearKind() + case grouphistory.FieldOwnerID: + m.ClearOwnerID() return nil - case hushhistory.FieldSecretName: - m.ClearSecretName() + case grouphistory.FieldDescription: + m.ClearDescription() return nil - case hushhistory.FieldSecretValue: - m.ClearSecretValue() + case grouphistory.FieldGravatarLogoURL: + m.ClearGravatarLogoURL() + return nil + case grouphistory.FieldLogoURL: + m.ClearLogoURL() return nil } - return fmt.Errorf("unknown HushHistory nullable field %s", name) + return fmt.Errorf("unknown GroupHistory 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 *HushHistoryMutation) ResetField(name string) error { +func (m *GroupHistoryMutation) ResetField(name string) error { switch name { - case hushhistory.FieldHistoryTime: + case grouphistory.FieldHistoryTime: m.ResetHistoryTime() return nil - case hushhistory.FieldRef: + case grouphistory.FieldRef: m.ResetRef() return nil - case hushhistory.FieldOperation: + case grouphistory.FieldOperation: m.ResetOperation() return nil - case hushhistory.FieldCreatedAt: + case grouphistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case hushhistory.FieldUpdatedAt: + case grouphistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case hushhistory.FieldCreatedBy: + case grouphistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case hushhistory.FieldUpdatedBy: + case grouphistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case hushhistory.FieldMappingID: - m.ResetMappingID() - return nil - case hushhistory.FieldDeletedAt: + case grouphistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case hushhistory.FieldDeletedBy: + case grouphistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case hushhistory.FieldName: + case grouphistory.FieldMappingID: + m.ResetMappingID() + return nil + case grouphistory.FieldTags: + m.ResetTags() + return nil + case grouphistory.FieldOwnerID: + m.ResetOwnerID() + return nil + case grouphistory.FieldName: m.ResetName() return nil - case hushhistory.FieldDescription: + case grouphistory.FieldDescription: m.ResetDescription() return nil - case hushhistory.FieldKind: - m.ResetKind() + case grouphistory.FieldGravatarLogoURL: + m.ResetGravatarLogoURL() return nil - case hushhistory.FieldSecretName: - m.ResetSecretName() + case grouphistory.FieldLogoURL: + m.ResetLogoURL() return nil - case hushhistory.FieldSecretValue: - m.ResetSecretValue() + case grouphistory.FieldDisplayName: + m.ResetDisplayName() return nil } - return fmt.Errorf("unknown HushHistory field %s", name) + return fmt.Errorf("unknown GroupHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *HushHistoryMutation) AddedEdges() []string { +func (m *GroupHistoryMutation) 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 *HushHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *GroupHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *HushHistoryMutation) RemovedEdges() []string { +func (m *GroupHistoryMutation) 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 *HushHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *GroupHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *HushHistoryMutation) ClearedEdges() []string { +func (m *GroupHistoryMutation) 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 *HushHistoryMutation) EdgeCleared(name string) bool { +func (m *GroupHistoryMutation) 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 *HushHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown HushHistory unique edge %s", name) +func (m *GroupHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown GroupHistory 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 *HushHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown HushHistory edge %s", name) +func (m *GroupHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown GroupHistory edge %s", name) } -// IntegrationMutation represents an operation that mutates the Integration nodes in the graph. -type IntegrationMutation struct { +// GroupMembershipMutation represents an operation that mutates the GroupMembership nodes in the graph. +type GroupMembershipMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - tags *[]string - appendtags []string - deleted_at *time.Time - deleted_by *string - name *string - description *string - kind *string - clearedFields map[string]struct{} - owner *string - clearedowner bool - secrets map[string]struct{} - removedsecrets map[string]struct{} - clearedsecrets bool - oauth2tokens map[string]struct{} - removedoauth2tokens map[string]struct{} - clearedoauth2tokens bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - webhooks map[string]struct{} - removedwebhooks map[string]struct{} - clearedwebhooks bool - done bool - oldValue func(context.Context) (*Integration, error) - predicates []predicate.Integration + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + deleted_at *time.Time + deleted_by *string + role *enums.Role + clearedFields map[string]struct{} + group *string + clearedgroup bool + user *string + cleareduser bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + done bool + oldValue func(context.Context) (*GroupMembership, error) + predicates []predicate.GroupMembership } -var _ ent.Mutation = (*IntegrationMutation)(nil) +var _ ent.Mutation = (*GroupMembershipMutation)(nil) -// integrationOption allows management of the mutation configuration using functional options. -type integrationOption func(*IntegrationMutation) +// groupmembershipOption allows management of the mutation configuration using functional options. +type groupmembershipOption func(*GroupMembershipMutation) -// newIntegrationMutation creates new mutation for the Integration entity. -func newIntegrationMutation(c config, op Op, opts ...integrationOption) *IntegrationMutation { - m := &IntegrationMutation{ +// newGroupMembershipMutation creates new mutation for the GroupMembership entity. +func newGroupMembershipMutation(c config, op Op, opts ...groupmembershipOption) *GroupMembershipMutation { + m := &GroupMembershipMutation{ config: c, op: op, - typ: TypeIntegration, + typ: TypeGroupMembership, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -45232,20 +49239,20 @@ func newIntegrationMutation(c config, op Op, opts ...integrationOption) *Integra return m } -// withIntegrationID sets the ID field of the mutation. -func withIntegrationID(id string) integrationOption { - return func(m *IntegrationMutation) { +// withGroupMembershipID sets the ID field of the mutation. +func withGroupMembershipID(id string) groupmembershipOption { + return func(m *GroupMembershipMutation) { var ( err error once sync.Once - value *Integration + value *GroupMembership ) - m.oldValue = func(ctx context.Context) (*Integration, error) { + m.oldValue = func(ctx context.Context) (*GroupMembership, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().Integration.Get(ctx, id) + value, err = m.Client().GroupMembership.Get(ctx, id) } }) return value, err @@ -45254,10 +49261,10 @@ func withIntegrationID(id string) integrationOption { } } -// withIntegration sets the old Integration of the mutation. -func withIntegration(node *Integration) integrationOption { - return func(m *IntegrationMutation) { - m.oldValue = func(context.Context) (*Integration, error) { +// withGroupMembership sets the old GroupMembership of the mutation. +func withGroupMembership(node *GroupMembership) groupmembershipOption { + return func(m *GroupMembershipMutation) { + m.oldValue = func(context.Context) (*GroupMembership, error) { return node, nil } m.id = &node.ID @@ -45266,7 +49273,7 @@ func withIntegration(node *Integration) integrationOption { // 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 IntegrationMutation) Client() *Client { +func (m GroupMembershipMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -45274,7 +49281,7 @@ func (m IntegrationMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m IntegrationMutation) Tx() (*Tx, error) { +func (m GroupMembershipMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -45284,14 +49291,14 @@ func (m IntegrationMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of Integration entities. -func (m *IntegrationMutation) SetID(id string) { +// operation is only accepted on creation of GroupMembership entities. +func (m *GroupMembershipMutation) 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 *IntegrationMutation) ID() (id string, exists bool) { +func (m *GroupMembershipMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -45302,7 +49309,7 @@ func (m *IntegrationMutation) ID() (id string, exists bool) { // 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 *IntegrationMutation) IDs(ctx context.Context) ([]string, error) { +func (m *GroupMembershipMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -45311,19 +49318,19 @@ func (m *IntegrationMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().Integration.Query().Where(m.predicates...).IDs(ctx) + return m.Client().GroupMembership.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 *IntegrationMutation) SetCreatedAt(t time.Time) { +func (m *GroupMembershipMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *IntegrationMutation) CreatedAt() (r time.Time, exists bool) { +func (m *GroupMembershipMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -45331,10 +49338,10 @@ func (m *IntegrationMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the Integration entity. -// If the Integration object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the GroupMembership entity. +// If the GroupMembership 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 *IntegrationMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupMembershipMutation) 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") } @@ -45349,30 +49356,30 @@ func (m *IntegrationMutation) OldCreatedAt(ctx context.Context) (v time.Time, er } // ClearCreatedAt clears the value of the "created_at" field. -func (m *IntegrationMutation) ClearCreatedAt() { +func (m *GroupMembershipMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[integration.FieldCreatedAt] = struct{}{} + m.clearedFields[groupmembership.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *IntegrationMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[integration.FieldCreatedAt] +func (m *GroupMembershipMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[groupmembership.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *IntegrationMutation) ResetCreatedAt() { +func (m *GroupMembershipMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, integration.FieldCreatedAt) + delete(m.clearedFields, groupmembership.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *IntegrationMutation) SetUpdatedAt(t time.Time) { +func (m *GroupMembershipMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *IntegrationMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *GroupMembershipMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -45380,10 +49387,10 @@ func (m *IntegrationMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the Integration entity. -// If the Integration object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the GroupMembership entity. +// If the GroupMembership 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 *IntegrationMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupMembershipMutation) 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") } @@ -45398,30 +49405,30 @@ func (m *IntegrationMutation) OldUpdatedAt(ctx context.Context) (v time.Time, er } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *IntegrationMutation) ClearUpdatedAt() { +func (m *GroupMembershipMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[integration.FieldUpdatedAt] = struct{}{} + m.clearedFields[groupmembership.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *IntegrationMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[integration.FieldUpdatedAt] +func (m *GroupMembershipMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[groupmembership.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *IntegrationMutation) ResetUpdatedAt() { +func (m *GroupMembershipMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, integration.FieldUpdatedAt) + delete(m.clearedFields, groupmembership.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *IntegrationMutation) SetCreatedBy(s string) { +func (m *GroupMembershipMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *IntegrationMutation) CreatedBy() (r string, exists bool) { +func (m *GroupMembershipMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -45429,10 +49436,10 @@ func (m *IntegrationMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the Integration entity. -// If the Integration object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the GroupMembership entity. +// If the GroupMembership 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 *IntegrationMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *GroupMembershipMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -45447,30 +49454,30 @@ func (m *IntegrationMutation) OldCreatedBy(ctx context.Context) (v string, err e } // ClearCreatedBy clears the value of the "created_by" field. -func (m *IntegrationMutation) ClearCreatedBy() { +func (m *GroupMembershipMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[integration.FieldCreatedBy] = struct{}{} + m.clearedFields[groupmembership.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *IntegrationMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[integration.FieldCreatedBy] +func (m *GroupMembershipMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[groupmembership.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *IntegrationMutation) ResetCreatedBy() { +func (m *GroupMembershipMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, integration.FieldCreatedBy) + delete(m.clearedFields, groupmembership.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *IntegrationMutation) SetUpdatedBy(s string) { +func (m *GroupMembershipMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *IntegrationMutation) UpdatedBy() (r string, exists bool) { +func (m *GroupMembershipMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -45478,10 +49485,10 @@ func (m *IntegrationMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the Integration entity. -// If the Integration object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the GroupMembership entity. +// If the GroupMembership 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 *IntegrationMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *GroupMembershipMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -45496,30 +49503,30 @@ func (m *IntegrationMutation) OldUpdatedBy(ctx context.Context) (v string, err e } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *IntegrationMutation) ClearUpdatedBy() { +func (m *GroupMembershipMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[integration.FieldUpdatedBy] = struct{}{} + m.clearedFields[groupmembership.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *IntegrationMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[integration.FieldUpdatedBy] +func (m *GroupMembershipMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[groupmembership.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *IntegrationMutation) ResetUpdatedBy() { +func (m *GroupMembershipMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, integration.FieldUpdatedBy) + delete(m.clearedFields, groupmembership.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *IntegrationMutation) SetMappingID(s string) { +func (m *GroupMembershipMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *IntegrationMutation) MappingID() (r string, exists bool) { +func (m *GroupMembershipMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -45527,10 +49534,10 @@ func (m *IntegrationMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the Integration entity. -// If the Integration object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the GroupMembership entity. +// If the GroupMembership 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 *IntegrationMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *GroupMembershipMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -45545,82 +49552,17 @@ func (m *IntegrationMutation) OldMappingID(ctx context.Context) (v string, err e } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *IntegrationMutation) ResetMappingID() { +func (m *GroupMembershipMutation) ResetMappingID() { m.mapping_id = nil } -// SetTags sets the "tags" field. -func (m *IntegrationMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil -} - -// Tags returns the value of the "tags" field in the mutation. -func (m *IntegrationMutation) 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 Integration entity. -// If the Integration 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 *IntegrationMutation) 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 *IntegrationMutation) 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 *IntegrationMutation) 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 *IntegrationMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[integration.FieldTags] = struct{}{} -} - -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *IntegrationMutation) TagsCleared() bool { - _, ok := m.clearedFields[integration.FieldTags] - return ok -} - -// ResetTags resets all changes to the "tags" field. -func (m *IntegrationMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, integration.FieldTags) -} - // SetDeletedAt sets the "deleted_at" field. -func (m *IntegrationMutation) SetDeletedAt(t time.Time) { +func (m *GroupMembershipMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *IntegrationMutation) DeletedAt() (r time.Time, exists bool) { +func (m *GroupMembershipMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -45628,10 +49570,10 @@ func (m *IntegrationMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the Integration entity. -// If the Integration object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the GroupMembership entity. +// If the GroupMembership 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 *IntegrationMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupMembershipMutation) 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") } @@ -45646,30 +49588,30 @@ func (m *IntegrationMutation) OldDeletedAt(ctx context.Context) (v time.Time, er } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *IntegrationMutation) ClearDeletedAt() { +func (m *GroupMembershipMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[integration.FieldDeletedAt] = struct{}{} + m.clearedFields[groupmembership.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *IntegrationMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[integration.FieldDeletedAt] +func (m *GroupMembershipMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[groupmembership.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *IntegrationMutation) ResetDeletedAt() { +func (m *GroupMembershipMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, integration.FieldDeletedAt) + delete(m.clearedFields, groupmembership.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *IntegrationMutation) SetDeletedBy(s string) { +func (m *GroupMembershipMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *IntegrationMutation) DeletedBy() (r string, exists bool) { +func (m *GroupMembershipMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -45677,10 +49619,10 @@ func (m *IntegrationMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the Integration entity. -// If the Integration object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the GroupMembership entity. +// If the GroupMembership 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 *IntegrationMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *GroupMembershipMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -45695,343 +49637,187 @@ func (m *IntegrationMutation) OldDeletedBy(ctx context.Context) (v string, err e } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *IntegrationMutation) ClearDeletedBy() { +func (m *GroupMembershipMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[integration.FieldDeletedBy] = struct{}{} + m.clearedFields[groupmembership.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *IntegrationMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[integration.FieldDeletedBy] +func (m *GroupMembershipMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[groupmembership.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *IntegrationMutation) ResetDeletedBy() { +func (m *GroupMembershipMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, integration.FieldDeletedBy) + delete(m.clearedFields, groupmembership.FieldDeletedBy) } -// SetOwnerID sets the "owner_id" field. -func (m *IntegrationMutation) SetOwnerID(s string) { - m.owner = &s +// SetRole sets the "role" field. +func (m *GroupMembershipMutation) SetRole(e enums.Role) { + m.role = &e } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *IntegrationMutation) 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 Integration entity. -// If the Integration 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 *IntegrationMutation) 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 *IntegrationMutation) ClearOwnerID() { - m.owner = nil - m.clearedFields[integration.FieldOwnerID] = struct{}{} -} - -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *IntegrationMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[integration.FieldOwnerID] - return ok -} - -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *IntegrationMutation) ResetOwnerID() { - m.owner = nil - delete(m.clearedFields, integration.FieldOwnerID) -} - -// SetName sets the "name" field. -func (m *IntegrationMutation) SetName(s string) { - m.name = &s -} - -// Name returns the value of the "name" field in the mutation. -func (m *IntegrationMutation) Name() (r string, exists bool) { - v := m.name +// Role returns the value of the "role" field in the mutation. +func (m *GroupMembershipMutation) Role() (r enums.Role, exists bool) { + v := m.role if v == nil { return } return *v, true } -// OldName returns the old "name" field's value of the Integration entity. -// If the Integration object wasn't provided to the builder, the object is fetched from the database. +// OldRole returns the old "role" field's value of the GroupMembership entity. +// If the GroupMembership 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 *IntegrationMutation) OldName(ctx context.Context) (v string, err error) { +func (m *GroupMembershipMutation) OldRole(ctx context.Context) (v enums.Role, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldName is only allowed on UpdateOne operations") + return v, errors.New("OldRole 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") + return v, errors.New("OldRole 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 v, fmt.Errorf("querying old value for OldRole: %w", err) } - return oldValue.Name, nil + return oldValue.Role, nil } -// ResetName resets all changes to the "name" field. -func (m *IntegrationMutation) ResetName() { - m.name = nil +// ResetRole resets all changes to the "role" field. +func (m *GroupMembershipMutation) ResetRole() { + m.role = nil } -// SetDescription sets the "description" field. -func (m *IntegrationMutation) SetDescription(s string) { - m.description = &s +// SetGroupID sets the "group_id" field. +func (m *GroupMembershipMutation) SetGroupID(s string) { + m.group = &s } -// Description returns the value of the "description" field in the mutation. -func (m *IntegrationMutation) Description() (r string, exists bool) { - v := m.description +// GroupID returns the value of the "group_id" field in the mutation. +func (m *GroupMembershipMutation) GroupID() (r string, exists bool) { + v := m.group if v == nil { return } return *v, true } -// OldDescription returns the old "description" field's value of the Integration entity. -// If the Integration object wasn't provided to the builder, the object is fetched from the database. +// OldGroupID returns the old "group_id" field's value of the GroupMembership entity. +// If the GroupMembership 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 *IntegrationMutation) OldDescription(ctx context.Context) (v string, err error) { +func (m *GroupMembershipMutation) OldGroupID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDescription is only allowed on UpdateOne operations") + return v, errors.New("OldGroupID 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") + 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 OldDescription: %w", err) + return v, fmt.Errorf("querying old value for OldGroupID: %w", err) } - return oldValue.Description, nil -} - -// ClearDescription clears the value of the "description" field. -func (m *IntegrationMutation) ClearDescription() { - m.description = nil - m.clearedFields[integration.FieldDescription] = struct{}{} -} - -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *IntegrationMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[integration.FieldDescription] - return ok + return oldValue.GroupID, nil } -// ResetDescription resets all changes to the "description" field. -func (m *IntegrationMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, integration.FieldDescription) +// ResetGroupID resets all changes to the "group_id" field. +func (m *GroupMembershipMutation) ResetGroupID() { + m.group = nil } -// SetKind sets the "kind" field. -func (m *IntegrationMutation) SetKind(s string) { - m.kind = &s +// SetUserID sets the "user_id" field. +func (m *GroupMembershipMutation) SetUserID(s string) { + m.user = &s } -// Kind returns the value of the "kind" field in the mutation. -func (m *IntegrationMutation) Kind() (r string, exists bool) { - v := m.kind +// UserID returns the value of the "user_id" field in the mutation. +func (m *GroupMembershipMutation) UserID() (r string, exists bool) { + v := m.user if v == nil { return } return *v, true } -// OldKind returns the old "kind" field's value of the Integration entity. -// If the Integration object wasn't provided to the builder, the object is fetched from the database. +// OldUserID returns the old "user_id" field's value of the GroupMembership entity. +// If the GroupMembership 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 *IntegrationMutation) OldKind(ctx context.Context) (v string, err error) { +func (m *GroupMembershipMutation) OldUserID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldKind is only allowed on UpdateOne operations") + return v, errors.New("OldUserID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldKind requires an ID field in the mutation") + 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 OldKind: %w", err) + return v, fmt.Errorf("querying old value for OldUserID: %w", err) } - return oldValue.Kind, nil -} - -// ClearKind clears the value of the "kind" field. -func (m *IntegrationMutation) ClearKind() { - m.kind = nil - m.clearedFields[integration.FieldKind] = struct{}{} -} - -// KindCleared returns if the "kind" field was cleared in this mutation. -func (m *IntegrationMutation) KindCleared() bool { - _, ok := m.clearedFields[integration.FieldKind] - return ok + return oldValue.UserID, nil } -// ResetKind resets all changes to the "kind" field. -func (m *IntegrationMutation) ResetKind() { - m.kind = nil - delete(m.clearedFields, integration.FieldKind) +// ResetUserID resets all changes to the "user_id" field. +func (m *GroupMembershipMutation) ResetUserID() { + m.user = nil } -// ClearOwner clears the "owner" edge to the Organization entity. -func (m *IntegrationMutation) ClearOwner() { - m.clearedowner = true - m.clearedFields[integration.FieldOwnerID] = struct{}{} +// ClearGroup clears the "group" edge to the Group entity. +func (m *GroupMembershipMutation) ClearGroup() { + m.clearedgroup = true + m.clearedFields[groupmembership.FieldGroupID] = struct{}{} } -// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *IntegrationMutation) OwnerCleared() bool { - return m.OwnerIDCleared() || m.clearedowner +// GroupCleared reports if the "group" edge to the Group entity was cleared. +func (m *GroupMembershipMutation) GroupCleared() bool { + return m.clearedgroup } -// OwnerIDs returns the "owner" edge IDs in the mutation. +// GroupIDs returns the "group" 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 *IntegrationMutation) OwnerIDs() (ids []string) { - if id := m.owner; id != nil { +// GroupID instead. It exists only for internal usage by the builders. +func (m *GroupMembershipMutation) GroupIDs() (ids []string) { + if id := m.group; id != nil { ids = append(ids, *id) } return } -// ResetOwner resets all changes to the "owner" edge. -func (m *IntegrationMutation) ResetOwner() { - m.owner = nil - m.clearedowner = false -} - -// AddSecretIDs adds the "secrets" edge to the Hush entity by ids. -func (m *IntegrationMutation) AddSecretIDs(ids ...string) { - if m.secrets == nil { - m.secrets = make(map[string]struct{}) - } - for i := range ids { - m.secrets[ids[i]] = struct{}{} - } -} - -// ClearSecrets clears the "secrets" edge to the Hush entity. -func (m *IntegrationMutation) ClearSecrets() { - m.clearedsecrets = true -} - -// SecretsCleared reports if the "secrets" edge to the Hush entity was cleared. -func (m *IntegrationMutation) SecretsCleared() bool { - return m.clearedsecrets -} - -// RemoveSecretIDs removes the "secrets" edge to the Hush entity by IDs. -func (m *IntegrationMutation) RemoveSecretIDs(ids ...string) { - if m.removedsecrets == nil { - m.removedsecrets = make(map[string]struct{}) - } - for i := range ids { - delete(m.secrets, ids[i]) - m.removedsecrets[ids[i]] = struct{}{} - } -} - -// RemovedSecrets returns the removed IDs of the "secrets" edge to the Hush entity. -func (m *IntegrationMutation) RemovedSecretsIDs() (ids []string) { - for id := range m.removedsecrets { - ids = append(ids, id) - } - return -} - -// SecretsIDs returns the "secrets" edge IDs in the mutation. -func (m *IntegrationMutation) SecretsIDs() (ids []string) { - for id := range m.secrets { - ids = append(ids, id) - } - return -} - -// ResetSecrets resets all changes to the "secrets" edge. -func (m *IntegrationMutation) ResetSecrets() { - m.secrets = nil - m.clearedsecrets = false - m.removedsecrets = nil -} - -// AddOauth2tokenIDs adds the "oauth2tokens" edge to the OhAuthTooToken entity by ids. -func (m *IntegrationMutation) AddOauth2tokenIDs(ids ...string) { - if m.oauth2tokens == nil { - m.oauth2tokens = make(map[string]struct{}) - } - for i := range ids { - m.oauth2tokens[ids[i]] = struct{}{} - } -} - -// ClearOauth2tokens clears the "oauth2tokens" edge to the OhAuthTooToken entity. -func (m *IntegrationMutation) ClearOauth2tokens() { - m.clearedoauth2tokens = true -} - -// Oauth2tokensCleared reports if the "oauth2tokens" edge to the OhAuthTooToken entity was cleared. -func (m *IntegrationMutation) Oauth2tokensCleared() bool { - return m.clearedoauth2tokens +// ResetGroup resets all changes to the "group" edge. +func (m *GroupMembershipMutation) ResetGroup() { + m.group = nil + m.clearedgroup = false } -// RemoveOauth2tokenIDs removes the "oauth2tokens" edge to the OhAuthTooToken entity by IDs. -func (m *IntegrationMutation) RemoveOauth2tokenIDs(ids ...string) { - if m.removedoauth2tokens == nil { - m.removedoauth2tokens = make(map[string]struct{}) - } - for i := range ids { - delete(m.oauth2tokens, ids[i]) - m.removedoauth2tokens[ids[i]] = struct{}{} - } +// ClearUser clears the "user" edge to the User entity. +func (m *GroupMembershipMutation) ClearUser() { + m.cleareduser = true + m.clearedFields[groupmembership.FieldUserID] = struct{}{} } -// RemovedOauth2tokens returns the removed IDs of the "oauth2tokens" edge to the OhAuthTooToken entity. -func (m *IntegrationMutation) RemovedOauth2tokensIDs() (ids []string) { - for id := range m.removedoauth2tokens { - ids = append(ids, id) - } - return +// UserCleared reports if the "user" edge to the User entity was cleared. +func (m *GroupMembershipMutation) UserCleared() bool { + return m.cleareduser } -// Oauth2tokensIDs returns the "oauth2tokens" edge IDs in the mutation. -func (m *IntegrationMutation) Oauth2tokensIDs() (ids []string) { - for id := range m.oauth2tokens { - ids = append(ids, id) +// 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 *GroupMembershipMutation) UserIDs() (ids []string) { + if id := m.user; id != nil { + ids = append(ids, *id) } return } -// ResetOauth2tokens resets all changes to the "oauth2tokens" edge. -func (m *IntegrationMutation) ResetOauth2tokens() { - m.oauth2tokens = nil - m.clearedoauth2tokens = false - m.removedoauth2tokens = nil +// ResetUser resets all changes to the "user" edge. +func (m *GroupMembershipMutation) ResetUser() { + m.user = nil + m.cleareduser = false } // AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *IntegrationMutation) AddEventIDs(ids ...string) { +func (m *GroupMembershipMutation) AddEventIDs(ids ...string) { if m.events == nil { m.events = make(map[string]struct{}) } @@ -46041,17 +49827,17 @@ func (m *IntegrationMutation) AddEventIDs(ids ...string) { } // ClearEvents clears the "events" edge to the Event entity. -func (m *IntegrationMutation) ClearEvents() { +func (m *GroupMembershipMutation) ClearEvents() { m.clearedevents = true } // EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *IntegrationMutation) EventsCleared() bool { +func (m *GroupMembershipMutation) EventsCleared() bool { return m.clearedevents } // RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *IntegrationMutation) RemoveEventIDs(ids ...string) { +func (m *GroupMembershipMutation) RemoveEventIDs(ids ...string) { if m.removedevents == nil { m.removedevents = make(map[string]struct{}) } @@ -46062,7 +49848,7 @@ func (m *IntegrationMutation) RemoveEventIDs(ids ...string) { } // RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *IntegrationMutation) RemovedEventsIDs() (ids []string) { +func (m *GroupMembershipMutation) RemovedEventsIDs() (ids []string) { for id := range m.removedevents { ids = append(ids, id) } @@ -46070,7 +49856,7 @@ func (m *IntegrationMutation) RemovedEventsIDs() (ids []string) { } // EventsIDs returns the "events" edge IDs in the mutation. -func (m *IntegrationMutation) EventsIDs() (ids []string) { +func (m *GroupMembershipMutation) EventsIDs() (ids []string) { for id := range m.events { ids = append(ids, id) } @@ -46078,75 +49864,21 @@ func (m *IntegrationMutation) EventsIDs() (ids []string) { } // ResetEvents resets all changes to the "events" edge. -func (m *IntegrationMutation) ResetEvents() { +func (m *GroupMembershipMutation) ResetEvents() { m.events = nil m.clearedevents = false m.removedevents = nil } -// AddWebhookIDs adds the "webhooks" edge to the Webhook entity by ids. -func (m *IntegrationMutation) AddWebhookIDs(ids ...string) { - if m.webhooks == nil { - m.webhooks = make(map[string]struct{}) - } - for i := range ids { - m.webhooks[ids[i]] = struct{}{} - } -} - -// ClearWebhooks clears the "webhooks" edge to the Webhook entity. -func (m *IntegrationMutation) ClearWebhooks() { - m.clearedwebhooks = true -} - -// WebhooksCleared reports if the "webhooks" edge to the Webhook entity was cleared. -func (m *IntegrationMutation) WebhooksCleared() bool { - return m.clearedwebhooks -} - -// RemoveWebhookIDs removes the "webhooks" edge to the Webhook entity by IDs. -func (m *IntegrationMutation) RemoveWebhookIDs(ids ...string) { - if m.removedwebhooks == nil { - m.removedwebhooks = make(map[string]struct{}) - } - for i := range ids { - delete(m.webhooks, ids[i]) - m.removedwebhooks[ids[i]] = struct{}{} - } -} - -// RemovedWebhooks returns the removed IDs of the "webhooks" edge to the Webhook entity. -func (m *IntegrationMutation) RemovedWebhooksIDs() (ids []string) { - for id := range m.removedwebhooks { - ids = append(ids, id) - } - return -} - -// WebhooksIDs returns the "webhooks" edge IDs in the mutation. -func (m *IntegrationMutation) WebhooksIDs() (ids []string) { - for id := range m.webhooks { - ids = append(ids, id) - } - return -} - -// ResetWebhooks resets all changes to the "webhooks" edge. -func (m *IntegrationMutation) ResetWebhooks() { - m.webhooks = nil - m.clearedwebhooks = false - m.removedwebhooks = nil -} - -// Where appends a list predicates to the IntegrationMutation builder. -func (m *IntegrationMutation) Where(ps ...predicate.Integration) { +// Where appends a list predicates to the GroupMembershipMutation builder. +func (m *GroupMembershipMutation) Where(ps ...predicate.GroupMembership) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the IntegrationMutation builder. Using this method, +// WhereP appends storage-level predicates to the GroupMembershipMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *IntegrationMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.Integration, len(ps)) +func (m *GroupMembershipMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.GroupMembership, len(ps)) for i := range ps { p[i] = ps[i] } @@ -46154,60 +49886,54 @@ func (m *IntegrationMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *IntegrationMutation) Op() Op { +func (m *GroupMembershipMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *IntegrationMutation) SetOp(op Op) { +func (m *GroupMembershipMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (Integration). -func (m *IntegrationMutation) Type() string { +// Type returns the node type of this mutation (GroupMembership). +func (m *GroupMembershipMutation) 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 *IntegrationMutation) Fields() []string { - fields := make([]string, 0, 12) +func (m *GroupMembershipMutation) Fields() []string { + fields := make([]string, 0, 10) if m.created_at != nil { - fields = append(fields, integration.FieldCreatedAt) + fields = append(fields, groupmembership.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, integration.FieldUpdatedAt) + fields = append(fields, groupmembership.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, integration.FieldCreatedBy) + fields = append(fields, groupmembership.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, integration.FieldUpdatedBy) + fields = append(fields, groupmembership.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, integration.FieldMappingID) - } - if m.tags != nil { - fields = append(fields, integration.FieldTags) + fields = append(fields, groupmembership.FieldMappingID) } if m.deleted_at != nil { - fields = append(fields, integration.FieldDeletedAt) + fields = append(fields, groupmembership.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, integration.FieldDeletedBy) - } - if m.owner != nil { - fields = append(fields, integration.FieldOwnerID) + fields = append(fields, groupmembership.FieldDeletedBy) } - if m.name != nil { - fields = append(fields, integration.FieldName) + if m.role != nil { + fields = append(fields, groupmembership.FieldRole) } - if m.description != nil { - fields = append(fields, integration.FieldDescription) + if m.group != nil { + fields = append(fields, groupmembership.FieldGroupID) } - if m.kind != nil { - fields = append(fields, integration.FieldKind) + if m.user != nil { + fields = append(fields, groupmembership.FieldUserID) } return fields } @@ -46215,32 +49941,28 @@ func (m *IntegrationMutation) Fields() []string { // 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 *IntegrationMutation) Field(name string) (ent.Value, bool) { +func (m *GroupMembershipMutation) Field(name string) (ent.Value, bool) { switch name { - case integration.FieldCreatedAt: + case groupmembership.FieldCreatedAt: return m.CreatedAt() - case integration.FieldUpdatedAt: + case groupmembership.FieldUpdatedAt: return m.UpdatedAt() - case integration.FieldCreatedBy: + case groupmembership.FieldCreatedBy: return m.CreatedBy() - case integration.FieldUpdatedBy: + case groupmembership.FieldUpdatedBy: return m.UpdatedBy() - case integration.FieldMappingID: + case groupmembership.FieldMappingID: return m.MappingID() - case integration.FieldTags: - return m.Tags() - case integration.FieldDeletedAt: + case groupmembership.FieldDeletedAt: return m.DeletedAt() - case integration.FieldDeletedBy: + case groupmembership.FieldDeletedBy: return m.DeletedBy() - case integration.FieldOwnerID: - return m.OwnerID() - case integration.FieldName: - return m.Name() - case integration.FieldDescription: - return m.Description() - case integration.FieldKind: - return m.Kind() + case groupmembership.FieldRole: + return m.Role() + case groupmembership.FieldGroupID: + return m.GroupID() + case groupmembership.FieldUserID: + return m.UserID() } return nil, false } @@ -46248,459 +49970,351 @@ func (m *IntegrationMutation) Field(name string) (ent.Value, bool) { // 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 *IntegrationMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *GroupMembershipMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case integration.FieldCreatedAt: + case groupmembership.FieldCreatedAt: return m.OldCreatedAt(ctx) - case integration.FieldUpdatedAt: + case groupmembership.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case integration.FieldCreatedBy: + case groupmembership.FieldCreatedBy: return m.OldCreatedBy(ctx) - case integration.FieldUpdatedBy: + case groupmembership.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case integration.FieldMappingID: + case groupmembership.FieldMappingID: return m.OldMappingID(ctx) - case integration.FieldTags: - return m.OldTags(ctx) - case integration.FieldDeletedAt: + case groupmembership.FieldDeletedAt: return m.OldDeletedAt(ctx) - case integration.FieldDeletedBy: + case groupmembership.FieldDeletedBy: return m.OldDeletedBy(ctx) - case integration.FieldOwnerID: - return m.OldOwnerID(ctx) - case integration.FieldName: - return m.OldName(ctx) - case integration.FieldDescription: - return m.OldDescription(ctx) - case integration.FieldKind: - return m.OldKind(ctx) + case groupmembership.FieldRole: + return m.OldRole(ctx) + case groupmembership.FieldGroupID: + return m.OldGroupID(ctx) + case groupmembership.FieldUserID: + return m.OldUserID(ctx) } - return nil, fmt.Errorf("unknown Integration field %s", name) + return nil, fmt.Errorf("unknown GroupMembership 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 *IntegrationMutation) SetField(name string, value ent.Value) error { +func (m *GroupMembershipMutation) SetField(name string, value ent.Value) error { switch name { - case integration.FieldCreatedAt: + case groupmembership.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 integration.FieldUpdatedAt: + case groupmembership.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 integration.FieldCreatedBy: + case groupmembership.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case integration.FieldUpdatedBy: + case groupmembership.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case integration.FieldMappingID: + case groupmembership.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case integration.FieldTags: - v, ok := value.([]string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetTags(v) - return nil - case integration.FieldDeletedAt: + case groupmembership.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 integration.FieldDeletedBy: + case groupmembership.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case integration.FieldOwnerID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetOwnerID(v) - return nil - case integration.FieldName: - v, ok := value.(string) + case groupmembership.FieldRole: + v, ok := value.(enums.Role) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetName(v) + m.SetRole(v) return nil - case integration.FieldDescription: + case groupmembership.FieldGroupID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetGroupID(v) return nil - case integration.FieldKind: + case groupmembership.FieldUserID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetKind(v) + m.SetUserID(v) return nil } - return fmt.Errorf("unknown Integration field %s", name) + return fmt.Errorf("unknown GroupMembership field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *IntegrationMutation) AddedFields() []string { +func (m *GroupMembershipMutation) 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 *IntegrationMutation) AddedField(name string) (ent.Value, bool) { +func (m *GroupMembershipMutation) 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 *IntegrationMutation) AddField(name string, value ent.Value) error { +func (m *GroupMembershipMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown Integration numeric field %s", name) + return fmt.Errorf("unknown GroupMembership numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *IntegrationMutation) ClearedFields() []string { +func (m *GroupMembershipMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(integration.FieldCreatedAt) { - fields = append(fields, integration.FieldCreatedAt) - } - if m.FieldCleared(integration.FieldUpdatedAt) { - fields = append(fields, integration.FieldUpdatedAt) - } - if m.FieldCleared(integration.FieldCreatedBy) { - fields = append(fields, integration.FieldCreatedBy) - } - if m.FieldCleared(integration.FieldUpdatedBy) { - fields = append(fields, integration.FieldUpdatedBy) - } - if m.FieldCleared(integration.FieldTags) { - fields = append(fields, integration.FieldTags) + if m.FieldCleared(groupmembership.FieldCreatedAt) { + fields = append(fields, groupmembership.FieldCreatedAt) } - if m.FieldCleared(integration.FieldDeletedAt) { - fields = append(fields, integration.FieldDeletedAt) + if m.FieldCleared(groupmembership.FieldUpdatedAt) { + fields = append(fields, groupmembership.FieldUpdatedAt) } - if m.FieldCleared(integration.FieldDeletedBy) { - fields = append(fields, integration.FieldDeletedBy) + if m.FieldCleared(groupmembership.FieldCreatedBy) { + fields = append(fields, groupmembership.FieldCreatedBy) } - if m.FieldCleared(integration.FieldOwnerID) { - fields = append(fields, integration.FieldOwnerID) + if m.FieldCleared(groupmembership.FieldUpdatedBy) { + fields = append(fields, groupmembership.FieldUpdatedBy) } - if m.FieldCleared(integration.FieldDescription) { - fields = append(fields, integration.FieldDescription) + if m.FieldCleared(groupmembership.FieldDeletedAt) { + fields = append(fields, groupmembership.FieldDeletedAt) } - if m.FieldCleared(integration.FieldKind) { - fields = append(fields, integration.FieldKind) + if m.FieldCleared(groupmembership.FieldDeletedBy) { + fields = append(fields, groupmembership.FieldDeletedBy) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *IntegrationMutation) FieldCleared(name string) bool { +func (m *GroupMembershipMutation) 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 *IntegrationMutation) ClearField(name string) error { +func (m *GroupMembershipMutation) ClearField(name string) error { switch name { - case integration.FieldCreatedAt: + case groupmembership.FieldCreatedAt: m.ClearCreatedAt() return nil - case integration.FieldUpdatedAt: + case groupmembership.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case integration.FieldCreatedBy: + case groupmembership.FieldCreatedBy: m.ClearCreatedBy() return nil - case integration.FieldUpdatedBy: + case groupmembership.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case integration.FieldTags: - m.ClearTags() - return nil - case integration.FieldDeletedAt: + case groupmembership.FieldDeletedAt: m.ClearDeletedAt() return nil - case integration.FieldDeletedBy: + case groupmembership.FieldDeletedBy: m.ClearDeletedBy() return nil - case integration.FieldOwnerID: - m.ClearOwnerID() - return nil - case integration.FieldDescription: - m.ClearDescription() - return nil - case integration.FieldKind: - m.ClearKind() - return nil } - return fmt.Errorf("unknown Integration nullable field %s", name) + return fmt.Errorf("unknown GroupMembership 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 *IntegrationMutation) ResetField(name string) error { +func (m *GroupMembershipMutation) ResetField(name string) error { switch name { - case integration.FieldCreatedAt: + case groupmembership.FieldCreatedAt: m.ResetCreatedAt() return nil - case integration.FieldUpdatedAt: + case groupmembership.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case integration.FieldCreatedBy: + case groupmembership.FieldCreatedBy: m.ResetCreatedBy() return nil - case integration.FieldUpdatedBy: + case groupmembership.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case integration.FieldMappingID: + case groupmembership.FieldMappingID: m.ResetMappingID() return nil - case integration.FieldTags: - m.ResetTags() - return nil - case integration.FieldDeletedAt: + case groupmembership.FieldDeletedAt: m.ResetDeletedAt() return nil - case integration.FieldDeletedBy: + case groupmembership.FieldDeletedBy: m.ResetDeletedBy() return nil - case integration.FieldOwnerID: - m.ResetOwnerID() - return nil - case integration.FieldName: - m.ResetName() + case groupmembership.FieldRole: + m.ResetRole() return nil - case integration.FieldDescription: - m.ResetDescription() + case groupmembership.FieldGroupID: + m.ResetGroupID() return nil - case integration.FieldKind: - m.ResetKind() + case groupmembership.FieldUserID: + m.ResetUserID() return nil } - return fmt.Errorf("unknown Integration field %s", name) + return fmt.Errorf("unknown GroupMembership field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *IntegrationMutation) AddedEdges() []string { - edges := make([]string, 0, 5) - if m.owner != nil { - edges = append(edges, integration.EdgeOwner) - } - if m.secrets != nil { - edges = append(edges, integration.EdgeSecrets) +func (m *GroupMembershipMutation) AddedEdges() []string { + edges := make([]string, 0, 3) + if m.group != nil { + edges = append(edges, groupmembership.EdgeGroup) } - if m.oauth2tokens != nil { - edges = append(edges, integration.EdgeOauth2tokens) + if m.user != nil { + edges = append(edges, groupmembership.EdgeUser) } if m.events != nil { - edges = append(edges, integration.EdgeEvents) - } - if m.webhooks != nil { - edges = append(edges, integration.EdgeWebhooks) + edges = append(edges, groupmembership.EdgeEvents) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *IntegrationMutation) AddedIDs(name string) []ent.Value { +func (m *GroupMembershipMutation) AddedIDs(name string) []ent.Value { switch name { - case integration.EdgeOwner: - if id := m.owner; id != nil { + case groupmembership.EdgeGroup: + if id := m.group; id != nil { return []ent.Value{*id} } - case integration.EdgeSecrets: - ids := make([]ent.Value, 0, len(m.secrets)) - for id := range m.secrets { - ids = append(ids, id) - } - return ids - case integration.EdgeOauth2tokens: - ids := make([]ent.Value, 0, len(m.oauth2tokens)) - for id := range m.oauth2tokens { - ids = append(ids, id) + case groupmembership.EdgeUser: + if id := m.user; id != nil { + return []ent.Value{*id} } - return ids - case integration.EdgeEvents: + case groupmembership.EdgeEvents: ids := make([]ent.Value, 0, len(m.events)) for id := range m.events { ids = append(ids, id) } return ids - case integration.EdgeWebhooks: - ids := make([]ent.Value, 0, len(m.webhooks)) - for id := range m.webhooks { - ids = append(ids, id) - } - return ids } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *IntegrationMutation) RemovedEdges() []string { - edges := make([]string, 0, 5) - if m.removedsecrets != nil { - edges = append(edges, integration.EdgeSecrets) - } - if m.removedoauth2tokens != nil { - edges = append(edges, integration.EdgeOauth2tokens) - } +func (m *GroupMembershipMutation) RemovedEdges() []string { + edges := make([]string, 0, 3) if m.removedevents != nil { - edges = append(edges, integration.EdgeEvents) - } - if m.removedwebhooks != nil { - edges = append(edges, integration.EdgeWebhooks) + edges = append(edges, groupmembership.EdgeEvents) } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *IntegrationMutation) RemovedIDs(name string) []ent.Value { +func (m *GroupMembershipMutation) RemovedIDs(name string) []ent.Value { switch name { - case integration.EdgeSecrets: - ids := make([]ent.Value, 0, len(m.removedsecrets)) - for id := range m.removedsecrets { - ids = append(ids, id) - } - return ids - case integration.EdgeOauth2tokens: - ids := make([]ent.Value, 0, len(m.removedoauth2tokens)) - for id := range m.removedoauth2tokens { - ids = append(ids, id) - } - return ids - case integration.EdgeEvents: + case groupmembership.EdgeEvents: ids := make([]ent.Value, 0, len(m.removedevents)) for id := range m.removedevents { ids = append(ids, id) } return ids - case integration.EdgeWebhooks: - ids := make([]ent.Value, 0, len(m.removedwebhooks)) - for id := range m.removedwebhooks { - ids = append(ids, id) - } - return ids } return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *IntegrationMutation) ClearedEdges() []string { - edges := make([]string, 0, 5) - if m.clearedowner { - edges = append(edges, integration.EdgeOwner) - } - if m.clearedsecrets { - edges = append(edges, integration.EdgeSecrets) +func (m *GroupMembershipMutation) ClearedEdges() []string { + edges := make([]string, 0, 3) + if m.clearedgroup { + edges = append(edges, groupmembership.EdgeGroup) } - if m.clearedoauth2tokens { - edges = append(edges, integration.EdgeOauth2tokens) + if m.cleareduser { + edges = append(edges, groupmembership.EdgeUser) } if m.clearedevents { - edges = append(edges, integration.EdgeEvents) - } - if m.clearedwebhooks { - edges = append(edges, integration.EdgeWebhooks) + edges = append(edges, groupmembership.EdgeEvents) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *IntegrationMutation) EdgeCleared(name string) bool { +func (m *GroupMembershipMutation) EdgeCleared(name string) bool { switch name { - case integration.EdgeOwner: - return m.clearedowner - case integration.EdgeSecrets: - return m.clearedsecrets - case integration.EdgeOauth2tokens: - return m.clearedoauth2tokens - case integration.EdgeEvents: + case groupmembership.EdgeGroup: + return m.clearedgroup + case groupmembership.EdgeUser: + return m.cleareduser + case groupmembership.EdgeEvents: return m.clearedevents - case integration.EdgeWebhooks: - return m.clearedwebhooks } 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 *IntegrationMutation) ClearEdge(name string) error { +func (m *GroupMembershipMutation) ClearEdge(name string) error { switch name { - case integration.EdgeOwner: - m.ClearOwner() + case groupmembership.EdgeGroup: + m.ClearGroup() + return nil + case groupmembership.EdgeUser: + m.ClearUser() return nil } - return fmt.Errorf("unknown Integration unique edge %s", name) + return fmt.Errorf("unknown GroupMembership 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 *IntegrationMutation) ResetEdge(name string) error { +func (m *GroupMembershipMutation) ResetEdge(name string) error { switch name { - case integration.EdgeOwner: - m.ResetOwner() - return nil - case integration.EdgeSecrets: - m.ResetSecrets() + case groupmembership.EdgeGroup: + m.ResetGroup() return nil - case integration.EdgeOauth2tokens: - m.ResetOauth2tokens() + case groupmembership.EdgeUser: + m.ResetUser() return nil - case integration.EdgeEvents: + case groupmembership.EdgeEvents: m.ResetEvents() return nil - case integration.EdgeWebhooks: - m.ResetWebhooks() - return nil } - return fmt.Errorf("unknown Integration edge %s", name) + return fmt.Errorf("unknown GroupMembership edge %s", name) } -// IntegrationHistoryMutation represents an operation that mutates the IntegrationHistory nodes in the graph. -type IntegrationHistoryMutation struct { +// GroupMembershipHistoryMutation represents an operation that mutates the GroupMembershipHistory nodes in the graph. +type GroupMembershipHistoryMutation struct { config op Op typ string @@ -46713,31 +50327,28 @@ type IntegrationHistoryMutation struct { created_by *string updated_by *string mapping_id *string - tags *[]string - appendtags []string deleted_at *time.Time deleted_by *string - owner_id *string - name *string - description *string - kind *string + role *enums.Role + group_id *string + user_id *string clearedFields map[string]struct{} done bool - oldValue func(context.Context) (*IntegrationHistory, error) - predicates []predicate.IntegrationHistory + oldValue func(context.Context) (*GroupMembershipHistory, error) + predicates []predicate.GroupMembershipHistory } -var _ ent.Mutation = (*IntegrationHistoryMutation)(nil) +var _ ent.Mutation = (*GroupMembershipHistoryMutation)(nil) -// integrationhistoryOption allows management of the mutation configuration using functional options. -type integrationhistoryOption func(*IntegrationHistoryMutation) +// groupmembershiphistoryOption allows management of the mutation configuration using functional options. +type groupmembershiphistoryOption func(*GroupMembershipHistoryMutation) -// newIntegrationHistoryMutation creates new mutation for the IntegrationHistory entity. -func newIntegrationHistoryMutation(c config, op Op, opts ...integrationhistoryOption) *IntegrationHistoryMutation { - m := &IntegrationHistoryMutation{ +// newGroupMembershipHistoryMutation creates new mutation for the GroupMembershipHistory entity. +func newGroupMembershipHistoryMutation(c config, op Op, opts ...groupmembershiphistoryOption) *GroupMembershipHistoryMutation { + m := &GroupMembershipHistoryMutation{ config: c, op: op, - typ: TypeIntegrationHistory, + typ: TypeGroupMembershipHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -46746,20 +50357,20 @@ func newIntegrationHistoryMutation(c config, op Op, opts ...integrationhistoryOp return m } -// withIntegrationHistoryID sets the ID field of the mutation. -func withIntegrationHistoryID(id string) integrationhistoryOption { - return func(m *IntegrationHistoryMutation) { +// withGroupMembershipHistoryID sets the ID field of the mutation. +func withGroupMembershipHistoryID(id string) groupmembershiphistoryOption { + return func(m *GroupMembershipHistoryMutation) { var ( err error once sync.Once - value *IntegrationHistory + value *GroupMembershipHistory ) - m.oldValue = func(ctx context.Context) (*IntegrationHistory, error) { + m.oldValue = func(ctx context.Context) (*GroupMembershipHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().IntegrationHistory.Get(ctx, id) + value, err = m.Client().GroupMembershipHistory.Get(ctx, id) } }) return value, err @@ -46768,10 +50379,10 @@ func withIntegrationHistoryID(id string) integrationhistoryOption { } } -// withIntegrationHistory sets the old IntegrationHistory of the mutation. -func withIntegrationHistory(node *IntegrationHistory) integrationhistoryOption { - return func(m *IntegrationHistoryMutation) { - m.oldValue = func(context.Context) (*IntegrationHistory, error) { +// withGroupMembershipHistory sets the old GroupMembershipHistory of the mutation. +func withGroupMembershipHistory(node *GroupMembershipHistory) groupmembershiphistoryOption { + return func(m *GroupMembershipHistoryMutation) { + m.oldValue = func(context.Context) (*GroupMembershipHistory, error) { return node, nil } m.id = &node.ID @@ -46780,7 +50391,7 @@ func withIntegrationHistory(node *IntegrationHistory) integrationhistoryOption { // 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 IntegrationHistoryMutation) Client() *Client { +func (m GroupMembershipHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -46788,7 +50399,7 @@ func (m IntegrationHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m IntegrationHistoryMutation) Tx() (*Tx, error) { +func (m GroupMembershipHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -46798,14 +50409,14 @@ func (m IntegrationHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of IntegrationHistory entities. -func (m *IntegrationHistoryMutation) SetID(id string) { +// operation is only accepted on creation of GroupMembershipHistory entities. +func (m *GroupMembershipHistoryMutation) 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 *IntegrationHistoryMutation) ID() (id string, exists bool) { +func (m *GroupMembershipHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -46816,7 +50427,7 @@ func (m *IntegrationHistoryMutation) ID() (id string, exists bool) { // 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 *IntegrationHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *GroupMembershipHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -46825,19 +50436,19 @@ func (m *IntegrationHistoryMutation) IDs(ctx context.Context) ([]string, error) } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().IntegrationHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().GroupMembershipHistory.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 *IntegrationHistoryMutation) SetHistoryTime(t time.Time) { +func (m *GroupMembershipHistoryMutation) SetHistoryTime(t time.Time) { m.history_time = &t } // HistoryTime returns the value of the "history_time" field in the mutation. -func (m *IntegrationHistoryMutation) HistoryTime() (r time.Time, exists bool) { +func (m *GroupMembershipHistoryMutation) HistoryTime() (r time.Time, exists bool) { v := m.history_time if v == nil { return @@ -46845,10 +50456,10 @@ func (m *IntegrationHistoryMutation) HistoryTime() (r time.Time, exists bool) { return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *GroupMembershipHistoryMutation) 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") } @@ -46863,17 +50474,17 @@ func (m *IntegrationHistoryMutation) OldHistoryTime(ctx context.Context) (v time } // ResetHistoryTime resets all changes to the "history_time" field. -func (m *IntegrationHistoryMutation) ResetHistoryTime() { +func (m *GroupMembershipHistoryMutation) ResetHistoryTime() { m.history_time = nil } // SetRef sets the "ref" field. -func (m *IntegrationHistoryMutation) SetRef(s string) { +func (m *GroupMembershipHistoryMutation) SetRef(s string) { m.ref = &s } // Ref returns the value of the "ref" field in the mutation. -func (m *IntegrationHistoryMutation) Ref() (r string, exists bool) { +func (m *GroupMembershipHistoryMutation) Ref() (r string, exists bool) { v := m.ref if v == nil { return @@ -46881,10 +50492,10 @@ func (m *IntegrationHistoryMutation) Ref() (r string, exists bool) { return *v, true } -// OldRef returns the old "ref" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *GroupMembershipHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldRef is only allowed on UpdateOne operations") } @@ -46899,30 +50510,30 @@ func (m *IntegrationHistoryMutation) OldRef(ctx context.Context) (v string, err } // ClearRef clears the value of the "ref" field. -func (m *IntegrationHistoryMutation) ClearRef() { +func (m *GroupMembershipHistoryMutation) ClearRef() { m.ref = nil - m.clearedFields[integrationhistory.FieldRef] = struct{}{} + m.clearedFields[groupmembershiphistory.FieldRef] = struct{}{} } // RefCleared returns if the "ref" field was cleared in this mutation. -func (m *IntegrationHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[integrationhistory.FieldRef] +func (m *GroupMembershipHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[groupmembershiphistory.FieldRef] return ok } // ResetRef resets all changes to the "ref" field. -func (m *IntegrationHistoryMutation) ResetRef() { +func (m *GroupMembershipHistoryMutation) ResetRef() { m.ref = nil - delete(m.clearedFields, integrationhistory.FieldRef) + delete(m.clearedFields, groupmembershiphistory.FieldRef) } // SetOperation sets the "operation" field. -func (m *IntegrationHistoryMutation) SetOperation(ht history.OpType) { +func (m *GroupMembershipHistoryMutation) SetOperation(ht history.OpType) { m.operation = &ht } // Operation returns the value of the "operation" field in the mutation. -func (m *IntegrationHistoryMutation) Operation() (r history.OpType, exists bool) { +func (m *GroupMembershipHistoryMutation) Operation() (r history.OpType, exists bool) { v := m.operation if v == nil { return @@ -46930,10 +50541,10 @@ func (m *IntegrationHistoryMutation) Operation() (r history.OpType, exists bool) return *v, true } -// OldOperation returns the old "operation" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *GroupMembershipHistoryMutation) 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") } @@ -46948,17 +50559,17 @@ func (m *IntegrationHistoryMutation) OldOperation(ctx context.Context) (v histor } // ResetOperation resets all changes to the "operation" field. -func (m *IntegrationHistoryMutation) ResetOperation() { +func (m *GroupMembershipHistoryMutation) ResetOperation() { m.operation = nil } // SetCreatedAt sets the "created_at" field. -func (m *IntegrationHistoryMutation) SetCreatedAt(t time.Time) { +func (m *GroupMembershipHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *IntegrationHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *GroupMembershipHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -46966,10 +50577,10 @@ func (m *IntegrationHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupMembershipHistoryMutation) 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") } @@ -46984,30 +50595,30 @@ func (m *IntegrationHistoryMutation) OldCreatedAt(ctx context.Context) (v time.T } // ClearCreatedAt clears the value of the "created_at" field. -func (m *IntegrationHistoryMutation) ClearCreatedAt() { +func (m *GroupMembershipHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[integrationhistory.FieldCreatedAt] = struct{}{} + m.clearedFields[groupmembershiphistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *IntegrationHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[integrationhistory.FieldCreatedAt] +func (m *GroupMembershipHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[groupmembershiphistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *IntegrationHistoryMutation) ResetCreatedAt() { +func (m *GroupMembershipHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, integrationhistory.FieldCreatedAt) + delete(m.clearedFields, groupmembershiphistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *IntegrationHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *GroupMembershipHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *IntegrationHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *GroupMembershipHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -47015,10 +50626,10 @@ func (m *IntegrationHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupMembershipHistoryMutation) 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") } @@ -47033,30 +50644,30 @@ func (m *IntegrationHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.T } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *IntegrationHistoryMutation) ClearUpdatedAt() { +func (m *GroupMembershipHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[integrationhistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[groupmembershiphistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *IntegrationHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[integrationhistory.FieldUpdatedAt] +func (m *GroupMembershipHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[groupmembershiphistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *IntegrationHistoryMutation) ResetUpdatedAt() { +func (m *GroupMembershipHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, integrationhistory.FieldUpdatedAt) + delete(m.clearedFields, groupmembershiphistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *IntegrationHistoryMutation) SetCreatedBy(s string) { +func (m *GroupMembershipHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *IntegrationHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *GroupMembershipHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -47064,10 +50675,10 @@ func (m *IntegrationHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *GroupMembershipHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -47082,30 +50693,30 @@ func (m *IntegrationHistoryMutation) OldCreatedBy(ctx context.Context) (v string } // ClearCreatedBy clears the value of the "created_by" field. -func (m *IntegrationHistoryMutation) ClearCreatedBy() { +func (m *GroupMembershipHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[integrationhistory.FieldCreatedBy] = struct{}{} + m.clearedFields[groupmembershiphistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *IntegrationHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[integrationhistory.FieldCreatedBy] +func (m *GroupMembershipHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[groupmembershiphistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *IntegrationHistoryMutation) ResetCreatedBy() { +func (m *GroupMembershipHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, integrationhistory.FieldCreatedBy) + delete(m.clearedFields, groupmembershiphistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *IntegrationHistoryMutation) SetUpdatedBy(s string) { +func (m *GroupMembershipHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *IntegrationHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *GroupMembershipHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -47113,10 +50724,10 @@ func (m *IntegrationHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *GroupMembershipHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -47131,30 +50742,30 @@ func (m *IntegrationHistoryMutation) OldUpdatedBy(ctx context.Context) (v string } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *IntegrationHistoryMutation) ClearUpdatedBy() { +func (m *GroupMembershipHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[integrationhistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[groupmembershiphistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *IntegrationHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[integrationhistory.FieldUpdatedBy] +func (m *GroupMembershipHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[groupmembershiphistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *IntegrationHistoryMutation) ResetUpdatedBy() { +func (m *GroupMembershipHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, integrationhistory.FieldUpdatedBy) + delete(m.clearedFields, groupmembershiphistory.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *IntegrationHistoryMutation) SetMappingID(s string) { +func (m *GroupMembershipHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *IntegrationHistoryMutation) MappingID() (r string, exists bool) { +func (m *GroupMembershipHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -47162,10 +50773,10 @@ func (m *IntegrationHistoryMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *GroupMembershipHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -47180,82 +50791,17 @@ func (m *IntegrationHistoryMutation) OldMappingID(ctx context.Context) (v string } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *IntegrationHistoryMutation) ResetMappingID() { +func (m *GroupMembershipHistoryMutation) ResetMappingID() { m.mapping_id = nil } -// SetTags sets the "tags" field. -func (m *IntegrationHistoryMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil -} - -// Tags returns the value of the "tags" field in the mutation. -func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. -// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[integrationhistory.FieldTags] = struct{}{} -} - -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *IntegrationHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[integrationhistory.FieldTags] - return ok -} - -// ResetTags resets all changes to the "tags" field. -func (m *IntegrationHistoryMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, integrationhistory.FieldTags) -} - // SetDeletedAt sets the "deleted_at" field. -func (m *IntegrationHistoryMutation) SetDeletedAt(t time.Time) { +func (m *GroupMembershipHistoryMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *IntegrationHistoryMutation) DeletedAt() (r time.Time, exists bool) { +func (m *GroupMembershipHistoryMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -47263,10 +50809,10 @@ func (m *IntegrationHistoryMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupMembershipHistoryMutation) 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") } @@ -47281,30 +50827,30 @@ func (m *IntegrationHistoryMutation) OldDeletedAt(ctx context.Context) (v time.T } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *IntegrationHistoryMutation) ClearDeletedAt() { +func (m *GroupMembershipHistoryMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[integrationhistory.FieldDeletedAt] = struct{}{} + m.clearedFields[groupmembershiphistory.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *IntegrationHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[integrationhistory.FieldDeletedAt] +func (m *GroupMembershipHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[groupmembershiphistory.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *IntegrationHistoryMutation) ResetDeletedAt() { +func (m *GroupMembershipHistoryMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, integrationhistory.FieldDeletedAt) + delete(m.clearedFields, groupmembershiphistory.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *IntegrationHistoryMutation) SetDeletedBy(s string) { +func (m *GroupMembershipHistoryMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *IntegrationHistoryMutation) DeletedBy() (r string, exists bool) { +func (m *GroupMembershipHistoryMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -47312,10 +50858,10 @@ func (m *IntegrationHistoryMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *GroupMembershipHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -47330,215 +50876,140 @@ func (m *IntegrationHistoryMutation) OldDeletedBy(ctx context.Context) (v string } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *IntegrationHistoryMutation) ClearDeletedBy() { +func (m *GroupMembershipHistoryMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[integrationhistory.FieldDeletedBy] = struct{}{} + m.clearedFields[groupmembershiphistory.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *IntegrationHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[integrationhistory.FieldDeletedBy] +func (m *GroupMembershipHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[groupmembershiphistory.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *IntegrationHistoryMutation) ResetDeletedBy() { +func (m *GroupMembershipHistoryMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, integrationhistory.FieldDeletedBy) -} - -// SetOwnerID sets the "owner_id" field. -func (m *IntegrationHistoryMutation) SetOwnerID(s string) { - m.owner_id = &s -} - -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. -// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearOwnerID() { - m.owner_id = nil - m.clearedFields[integrationhistory.FieldOwnerID] = struct{}{} -} - -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *IntegrationHistoryMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[integrationhistory.FieldOwnerID] - return ok -} - -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *IntegrationHistoryMutation) ResetOwnerID() { - m.owner_id = nil - delete(m.clearedFields, integrationhistory.FieldOwnerID) + delete(m.clearedFields, groupmembershiphistory.FieldDeletedBy) } -// SetName sets the "name" field. -func (m *IntegrationHistoryMutation) SetName(s string) { - m.name = &s +// SetRole sets the "role" field. +func (m *GroupMembershipHistoryMutation) SetRole(e enums.Role) { + m.role = &e } -// Name returns the value of the "name" field in the mutation. -func (m *IntegrationHistoryMutation) Name() (r string, exists bool) { - v := m.name +// Role returns the value of the "role" field in the mutation. +func (m *GroupMembershipHistoryMutation) Role() (r enums.Role, exists bool) { + v := m.role if v == nil { return } return *v, true } -// OldName returns the old "name" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRole returns the old "role" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldName(ctx context.Context) (v string, err error) { +func (m *GroupMembershipHistoryMutation) OldRole(ctx context.Context) (v enums.Role, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldName is only allowed on UpdateOne operations") + return v, errors.New("OldRole 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") + return v, errors.New("OldRole 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 v, fmt.Errorf("querying old value for OldRole: %w", err) } - return oldValue.Name, nil + return oldValue.Role, nil } -// ResetName resets all changes to the "name" field. -func (m *IntegrationHistoryMutation) ResetName() { - m.name = nil +// ResetRole resets all changes to the "role" field. +func (m *GroupMembershipHistoryMutation) ResetRole() { + m.role = nil } -// SetDescription sets the "description" field. -func (m *IntegrationHistoryMutation) SetDescription(s string) { - m.description = &s +// SetGroupID sets the "group_id" field. +func (m *GroupMembershipHistoryMutation) SetGroupID(s string) { + m.group_id = &s } -// Description returns the value of the "description" field in the mutation. -func (m *IntegrationHistoryMutation) Description() (r string, exists bool) { - v := m.description +// GroupID returns the value of the "group_id" field in the mutation. +func (m *GroupMembershipHistoryMutation) GroupID() (r string, exists bool) { + v := m.group_id if v == nil { return } return *v, true } -// OldDescription returns the old "description" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldGroupID returns the old "group_id" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { +func (m *GroupMembershipHistoryMutation) OldGroupID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDescription is only allowed on UpdateOne operations") + return v, errors.New("OldGroupID 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") + 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 OldDescription: %w", err) + return v, fmt.Errorf("querying old value for OldGroupID: %w", err) } - return oldValue.Description, nil -} - -// ClearDescription clears the value of the "description" field. -func (m *IntegrationHistoryMutation) ClearDescription() { - m.description = nil - m.clearedFields[integrationhistory.FieldDescription] = struct{}{} -} - -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *IntegrationHistoryMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[integrationhistory.FieldDescription] - return ok + return oldValue.GroupID, nil } -// ResetDescription resets all changes to the "description" field. -func (m *IntegrationHistoryMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, integrationhistory.FieldDescription) +// ResetGroupID resets all changes to the "group_id" field. +func (m *GroupMembershipHistoryMutation) ResetGroupID() { + m.group_id = nil } -// SetKind sets the "kind" field. -func (m *IntegrationHistoryMutation) SetKind(s string) { - m.kind = &s +// SetUserID sets the "user_id" field. +func (m *GroupMembershipHistoryMutation) SetUserID(s string) { + m.user_id = &s } -// Kind returns the value of the "kind" field in the mutation. -func (m *IntegrationHistoryMutation) Kind() (r string, exists bool) { - v := m.kind +// UserID returns the value of the "user_id" field in the mutation. +func (m *GroupMembershipHistoryMutation) UserID() (r string, exists bool) { + v := m.user_id if v == nil { return } return *v, true } -// OldKind returns the old "kind" field's value of the IntegrationHistory entity. -// If the IntegrationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUserID returns the old "user_id" field's value of the GroupMembershipHistory entity. +// If the GroupMembershipHistory 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 *IntegrationHistoryMutation) OldKind(ctx context.Context) (v string, err error) { +func (m *GroupMembershipHistoryMutation) OldUserID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldKind is only allowed on UpdateOne operations") + return v, errors.New("OldUserID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldKind requires an ID field in the mutation") + 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 OldKind: %w", err) + return v, fmt.Errorf("querying old value for OldUserID: %w", err) } - return oldValue.Kind, nil -} - -// ClearKind clears the value of the "kind" field. -func (m *IntegrationHistoryMutation) ClearKind() { - m.kind = nil - m.clearedFields[integrationhistory.FieldKind] = struct{}{} -} - -// KindCleared returns if the "kind" field was cleared in this mutation. -func (m *IntegrationHistoryMutation) KindCleared() bool { - _, ok := m.clearedFields[integrationhistory.FieldKind] - return ok + return oldValue.UserID, nil } -// ResetKind resets all changes to the "kind" field. -func (m *IntegrationHistoryMutation) ResetKind() { - m.kind = nil - delete(m.clearedFields, integrationhistory.FieldKind) +// ResetUserID resets all changes to the "user_id" field. +func (m *GroupMembershipHistoryMutation) ResetUserID() { + m.user_id = nil } -// Where appends a list predicates to the IntegrationHistoryMutation builder. -func (m *IntegrationHistoryMutation) Where(ps ...predicate.IntegrationHistory) { +// Where appends a list predicates to the GroupMembershipHistoryMutation builder. +func (m *GroupMembershipHistoryMutation) Where(ps ...predicate.GroupMembershipHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the IntegrationHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the GroupMembershipHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *IntegrationHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.IntegrationHistory, len(ps)) +func (m *GroupMembershipHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.GroupMembershipHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -47546,69 +51017,63 @@ func (m *IntegrationHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *IntegrationHistoryMutation) Op() Op { +func (m *GroupMembershipHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *IntegrationHistoryMutation) SetOp(op Op) { +func (m *GroupMembershipHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (IntegrationHistory). -func (m *IntegrationHistoryMutation) Type() string { +// Type returns the node type of this mutation (GroupMembershipHistory). +func (m *GroupMembershipHistoryMutation) 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 *IntegrationHistoryMutation) Fields() []string { - fields := make([]string, 0, 15) +func (m *GroupMembershipHistoryMutation) Fields() []string { + fields := make([]string, 0, 13) if m.history_time != nil { - fields = append(fields, integrationhistory.FieldHistoryTime) + fields = append(fields, groupmembershiphistory.FieldHistoryTime) } if m.ref != nil { - fields = append(fields, integrationhistory.FieldRef) + fields = append(fields, groupmembershiphistory.FieldRef) } if m.operation != nil { - fields = append(fields, integrationhistory.FieldOperation) + fields = append(fields, groupmembershiphistory.FieldOperation) } if m.created_at != nil { - fields = append(fields, integrationhistory.FieldCreatedAt) + fields = append(fields, groupmembershiphistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, integrationhistory.FieldUpdatedAt) + fields = append(fields, groupmembershiphistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, integrationhistory.FieldCreatedBy) + fields = append(fields, groupmembershiphistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, integrationhistory.FieldUpdatedBy) + fields = append(fields, groupmembershiphistory.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, integrationhistory.FieldMappingID) - } - if m.tags != nil { - fields = append(fields, integrationhistory.FieldTags) + fields = append(fields, groupmembershiphistory.FieldMappingID) } if m.deleted_at != nil { - fields = append(fields, integrationhistory.FieldDeletedAt) + fields = append(fields, groupmembershiphistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, integrationhistory.FieldDeletedBy) - } - if m.owner_id != nil { - fields = append(fields, integrationhistory.FieldOwnerID) + fields = append(fields, groupmembershiphistory.FieldDeletedBy) } - if m.name != nil { - fields = append(fields, integrationhistory.FieldName) + if m.role != nil { + fields = append(fields, groupmembershiphistory.FieldRole) } - if m.description != nil { - fields = append(fields, integrationhistory.FieldDescription) + if m.group_id != nil { + fields = append(fields, groupmembershiphistory.FieldGroupID) } - if m.kind != nil { - fields = append(fields, integrationhistory.FieldKind) + if m.user_id != nil { + fields = append(fields, groupmembershiphistory.FieldUserID) } return fields } @@ -47616,38 +51081,34 @@ func (m *IntegrationHistoryMutation) Fields() []string { // 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 *IntegrationHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *GroupMembershipHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case integrationhistory.FieldHistoryTime: + case groupmembershiphistory.FieldHistoryTime: return m.HistoryTime() - case integrationhistory.FieldRef: + case groupmembershiphistory.FieldRef: return m.Ref() - case integrationhistory.FieldOperation: + case groupmembershiphistory.FieldOperation: return m.Operation() - case integrationhistory.FieldCreatedAt: + case groupmembershiphistory.FieldCreatedAt: return m.CreatedAt() - case integrationhistory.FieldUpdatedAt: + case groupmembershiphistory.FieldUpdatedAt: return m.UpdatedAt() - case integrationhistory.FieldCreatedBy: + case groupmembershiphistory.FieldCreatedBy: return m.CreatedBy() - case integrationhistory.FieldUpdatedBy: + case groupmembershiphistory.FieldUpdatedBy: return m.UpdatedBy() - case integrationhistory.FieldMappingID: + case groupmembershiphistory.FieldMappingID: return m.MappingID() - case integrationhistory.FieldTags: - return m.Tags() - case integrationhistory.FieldDeletedAt: + case groupmembershiphistory.FieldDeletedAt: return m.DeletedAt() - case integrationhistory.FieldDeletedBy: + case groupmembershiphistory.FieldDeletedBy: return m.DeletedBy() - case integrationhistory.FieldOwnerID: - return m.OwnerID() - case integrationhistory.FieldName: - return m.Name() - case integrationhistory.FieldDescription: - return m.Description() - case integrationhistory.FieldKind: - return m.Kind() + case groupmembershiphistory.FieldRole: + return m.Role() + case groupmembershiphistory.FieldGroupID: + return m.GroupID() + case groupmembershiphistory.FieldUserID: + return m.UserID() } return nil, false } @@ -47655,411 +51116,357 @@ func (m *IntegrationHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *IntegrationHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *GroupMembershipHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case integrationhistory.FieldHistoryTime: + case groupmembershiphistory.FieldHistoryTime: return m.OldHistoryTime(ctx) - case integrationhistory.FieldRef: + case groupmembershiphistory.FieldRef: return m.OldRef(ctx) - case integrationhistory.FieldOperation: + case groupmembershiphistory.FieldOperation: return m.OldOperation(ctx) - case integrationhistory.FieldCreatedAt: + case groupmembershiphistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case integrationhistory.FieldUpdatedAt: + case groupmembershiphistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case integrationhistory.FieldCreatedBy: + case groupmembershiphistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case integrationhistory.FieldUpdatedBy: + case groupmembershiphistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case integrationhistory.FieldMappingID: + case groupmembershiphistory.FieldMappingID: return m.OldMappingID(ctx) - case integrationhistory.FieldTags: - return m.OldTags(ctx) - case integrationhistory.FieldDeletedAt: + case groupmembershiphistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case integrationhistory.FieldDeletedBy: + case groupmembershiphistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case integrationhistory.FieldOwnerID: - return m.OldOwnerID(ctx) - case integrationhistory.FieldName: - return m.OldName(ctx) - case integrationhistory.FieldDescription: - return m.OldDescription(ctx) - case integrationhistory.FieldKind: - return m.OldKind(ctx) + case groupmembershiphistory.FieldRole: + return m.OldRole(ctx) + case groupmembershiphistory.FieldGroupID: + return m.OldGroupID(ctx) + case groupmembershiphistory.FieldUserID: + return m.OldUserID(ctx) } - return nil, fmt.Errorf("unknown IntegrationHistory field %s", name) + return nil, fmt.Errorf("unknown GroupMembershipHistory 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 *IntegrationHistoryMutation) SetField(name string, value ent.Value) error { +func (m *GroupMembershipHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case integrationhistory.FieldHistoryTime: + case groupmembershiphistory.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 integrationhistory.FieldRef: + case groupmembershiphistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetRef(v) return nil - case integrationhistory.FieldOperation: + case groupmembershiphistory.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 integrationhistory.FieldCreatedAt: + case groupmembershiphistory.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 integrationhistory.FieldUpdatedAt: + case groupmembershiphistory.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 integrationhistory.FieldCreatedBy: + case groupmembershiphistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case integrationhistory.FieldUpdatedBy: + case groupmembershiphistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case integrationhistory.FieldMappingID: + case groupmembershiphistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case integrationhistory.FieldTags: - v, ok := value.([]string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetTags(v) - return nil - case integrationhistory.FieldDeletedAt: + case groupmembershiphistory.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 integrationhistory.FieldDeletedBy: + case groupmembershiphistory.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case integrationhistory.FieldOwnerID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetOwnerID(v) - return nil - case integrationhistory.FieldName: - v, ok := value.(string) + case groupmembershiphistory.FieldRole: + v, ok := value.(enums.Role) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetName(v) + m.SetRole(v) return nil - case integrationhistory.FieldDescription: + case groupmembershiphistory.FieldGroupID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetGroupID(v) return nil - case integrationhistory.FieldKind: + case groupmembershiphistory.FieldUserID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetKind(v) + m.SetUserID(v) return nil } - return fmt.Errorf("unknown IntegrationHistory field %s", name) + return fmt.Errorf("unknown GroupMembershipHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *IntegrationHistoryMutation) AddedFields() []string { +func (m *GroupMembershipHistoryMutation) 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 *IntegrationHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *GroupMembershipHistoryMutation) 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 *IntegrationHistoryMutation) AddField(name string, value ent.Value) error { +func (m *GroupMembershipHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown IntegrationHistory numeric field %s", name) + return fmt.Errorf("unknown GroupMembershipHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *IntegrationHistoryMutation) ClearedFields() []string { +func (m *GroupMembershipHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(integrationhistory.FieldRef) { - fields = append(fields, integrationhistory.FieldRef) - } - if m.FieldCleared(integrationhistory.FieldCreatedAt) { - fields = append(fields, integrationhistory.FieldCreatedAt) - } - if m.FieldCleared(integrationhistory.FieldUpdatedAt) { - fields = append(fields, integrationhistory.FieldUpdatedAt) - } - if m.FieldCleared(integrationhistory.FieldCreatedBy) { - fields = append(fields, integrationhistory.FieldCreatedBy) + if m.FieldCleared(groupmembershiphistory.FieldRef) { + fields = append(fields, groupmembershiphistory.FieldRef) } - if m.FieldCleared(integrationhistory.FieldUpdatedBy) { - fields = append(fields, integrationhistory.FieldUpdatedBy) + if m.FieldCleared(groupmembershiphistory.FieldCreatedAt) { + fields = append(fields, groupmembershiphistory.FieldCreatedAt) } - if m.FieldCleared(integrationhistory.FieldTags) { - fields = append(fields, integrationhistory.FieldTags) + if m.FieldCleared(groupmembershiphistory.FieldUpdatedAt) { + fields = append(fields, groupmembershiphistory.FieldUpdatedAt) } - if m.FieldCleared(integrationhistory.FieldDeletedAt) { - fields = append(fields, integrationhistory.FieldDeletedAt) + if m.FieldCleared(groupmembershiphistory.FieldCreatedBy) { + fields = append(fields, groupmembershiphistory.FieldCreatedBy) } - if m.FieldCleared(integrationhistory.FieldDeletedBy) { - fields = append(fields, integrationhistory.FieldDeletedBy) + if m.FieldCleared(groupmembershiphistory.FieldUpdatedBy) { + fields = append(fields, groupmembershiphistory.FieldUpdatedBy) } - if m.FieldCleared(integrationhistory.FieldOwnerID) { - fields = append(fields, integrationhistory.FieldOwnerID) + if m.FieldCleared(groupmembershiphistory.FieldDeletedAt) { + fields = append(fields, groupmembershiphistory.FieldDeletedAt) } - if m.FieldCleared(integrationhistory.FieldDescription) { - fields = append(fields, integrationhistory.FieldDescription) - } - if m.FieldCleared(integrationhistory.FieldKind) { - fields = append(fields, integrationhistory.FieldKind) + if m.FieldCleared(groupmembershiphistory.FieldDeletedBy) { + fields = append(fields, groupmembershiphistory.FieldDeletedBy) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *IntegrationHistoryMutation) FieldCleared(name string) bool { +func (m *GroupMembershipHistoryMutation) 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 *IntegrationHistoryMutation) ClearField(name string) error { +func (m *GroupMembershipHistoryMutation) ClearField(name string) error { switch name { - case integrationhistory.FieldRef: + case groupmembershiphistory.FieldRef: m.ClearRef() return nil - case integrationhistory.FieldCreatedAt: + case groupmembershiphistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case integrationhistory.FieldUpdatedAt: + case groupmembershiphistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case integrationhistory.FieldCreatedBy: + case groupmembershiphistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case integrationhistory.FieldUpdatedBy: + case groupmembershiphistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case integrationhistory.FieldTags: - m.ClearTags() - return nil - case integrationhistory.FieldDeletedAt: + case groupmembershiphistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case integrationhistory.FieldDeletedBy: + case groupmembershiphistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case integrationhistory.FieldOwnerID: - m.ClearOwnerID() - return nil - case integrationhistory.FieldDescription: - m.ClearDescription() - return nil - case integrationhistory.FieldKind: - m.ClearKind() - return nil } - return fmt.Errorf("unknown IntegrationHistory nullable field %s", name) + return fmt.Errorf("unknown GroupMembershipHistory 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 *IntegrationHistoryMutation) ResetField(name string) error { +func (m *GroupMembershipHistoryMutation) ResetField(name string) error { switch name { - case integrationhistory.FieldHistoryTime: + case groupmembershiphistory.FieldHistoryTime: m.ResetHistoryTime() return nil - case integrationhistory.FieldRef: + case groupmembershiphistory.FieldRef: m.ResetRef() return nil - case integrationhistory.FieldOperation: + case groupmembershiphistory.FieldOperation: m.ResetOperation() return nil - case integrationhistory.FieldCreatedAt: + case groupmembershiphistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case integrationhistory.FieldUpdatedAt: + case groupmembershiphistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case integrationhistory.FieldCreatedBy: + case groupmembershiphistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case integrationhistory.FieldUpdatedBy: + case groupmembershiphistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case integrationhistory.FieldMappingID: + case groupmembershiphistory.FieldMappingID: m.ResetMappingID() return nil - case integrationhistory.FieldTags: - m.ResetTags() - return nil - case integrationhistory.FieldDeletedAt: + case groupmembershiphistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case integrationhistory.FieldDeletedBy: + case groupmembershiphistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case integrationhistory.FieldOwnerID: - m.ResetOwnerID() - return nil - case integrationhistory.FieldName: - m.ResetName() + case groupmembershiphistory.FieldRole: + m.ResetRole() return nil - case integrationhistory.FieldDescription: - m.ResetDescription() + case groupmembershiphistory.FieldGroupID: + m.ResetGroupID() return nil - case integrationhistory.FieldKind: - m.ResetKind() + case groupmembershiphistory.FieldUserID: + m.ResetUserID() return nil } - return fmt.Errorf("unknown IntegrationHistory field %s", name) + return fmt.Errorf("unknown GroupMembershipHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *IntegrationHistoryMutation) AddedEdges() []string { +func (m *GroupMembershipHistoryMutation) 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 *IntegrationHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *GroupMembershipHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *IntegrationHistoryMutation) RemovedEdges() []string { +func (m *GroupMembershipHistoryMutation) 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 *IntegrationHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *GroupMembershipHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *IntegrationHistoryMutation) ClearedEdges() []string { +func (m *GroupMembershipHistoryMutation) 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 *IntegrationHistoryMutation) EdgeCleared(name string) bool { +func (m *GroupMembershipHistoryMutation) 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 *IntegrationHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown IntegrationHistory unique edge %s", name) +func (m *GroupMembershipHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown GroupMembershipHistory 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 *IntegrationHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown IntegrationHistory edge %s", name) +func (m *GroupMembershipHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown GroupMembershipHistory edge %s", name) } -// InviteMutation represents an operation that mutates the Invite nodes in the graph. -type InviteMutation struct { +// GroupSettingMutation represents an operation that mutates the GroupSetting nodes in the graph. +type GroupSettingMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - deleted_at *time.Time - deleted_by *string - token *string - expires *time.Time - recipient *string - status *enums.InviteStatus - role *enums.Role - send_attempts *int - addsend_attempts *int - requestor_id *string - secret *[]byte - clearedFields map[string]struct{} - owner *string - clearedowner bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - done bool - oldValue func(context.Context) (*Invite, error) - predicates []predicate.Invite + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + visibility *enums.Visibility + join_policy *enums.JoinPolicy + sync_to_slack *bool + sync_to_github *bool + clearedFields map[string]struct{} + group *string + clearedgroup bool + done bool + oldValue func(context.Context) (*GroupSetting, error) + predicates []predicate.GroupSetting } -var _ ent.Mutation = (*InviteMutation)(nil) +var _ ent.Mutation = (*GroupSettingMutation)(nil) -// inviteOption allows management of the mutation configuration using functional options. -type inviteOption func(*InviteMutation) +// groupsettingOption allows management of the mutation configuration using functional options. +type groupsettingOption func(*GroupSettingMutation) -// newInviteMutation creates new mutation for the Invite entity. -func newInviteMutation(c config, op Op, opts ...inviteOption) *InviteMutation { - m := &InviteMutation{ +// newGroupSettingMutation creates new mutation for the GroupSetting entity. +func newGroupSettingMutation(c config, op Op, opts ...groupsettingOption) *GroupSettingMutation { + m := &GroupSettingMutation{ config: c, op: op, - typ: TypeInvite, + typ: TypeGroupSetting, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -48068,20 +51475,20 @@ func newInviteMutation(c config, op Op, opts ...inviteOption) *InviteMutation { return m } -// withInviteID sets the ID field of the mutation. -func withInviteID(id string) inviteOption { - return func(m *InviteMutation) { +// withGroupSettingID sets the ID field of the mutation. +func withGroupSettingID(id string) groupsettingOption { + return func(m *GroupSettingMutation) { var ( err error once sync.Once - value *Invite + value *GroupSetting ) - m.oldValue = func(ctx context.Context) (*Invite, error) { + m.oldValue = func(ctx context.Context) (*GroupSetting, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().Invite.Get(ctx, id) + value, err = m.Client().GroupSetting.Get(ctx, id) } }) return value, err @@ -48090,10 +51497,10 @@ func withInviteID(id string) inviteOption { } } -// withInvite sets the old Invite of the mutation. -func withInvite(node *Invite) inviteOption { - return func(m *InviteMutation) { - m.oldValue = func(context.Context) (*Invite, error) { +// withGroupSetting sets the old GroupSetting of the mutation. +func withGroupSetting(node *GroupSetting) groupsettingOption { + return func(m *GroupSettingMutation) { + m.oldValue = func(context.Context) (*GroupSetting, error) { return node, nil } m.id = &node.ID @@ -48102,7 +51509,7 @@ func withInvite(node *Invite) inviteOption { // 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 InviteMutation) Client() *Client { +func (m GroupSettingMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -48110,7 +51517,7 @@ func (m InviteMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m InviteMutation) Tx() (*Tx, error) { +func (m GroupSettingMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -48120,14 +51527,14 @@ func (m InviteMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of Invite entities. -func (m *InviteMutation) SetID(id string) { +// operation is only accepted on creation of GroupSetting entities. +func (m *GroupSettingMutation) 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 *InviteMutation) ID() (id string, exists bool) { +func (m *GroupSettingMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -48138,7 +51545,7 @@ func (m *InviteMutation) ID() (id string, exists bool) { // 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 *InviteMutation) IDs(ctx context.Context) ([]string, error) { +func (m *GroupSettingMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -48147,19 +51554,19 @@ func (m *InviteMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().Invite.Query().Where(m.predicates...).IDs(ctx) + return m.Client().GroupSetting.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 *InviteMutation) SetCreatedAt(t time.Time) { +func (m *GroupSettingMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *InviteMutation) CreatedAt() (r time.Time, exists bool) { +func (m *GroupSettingMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -48167,10 +51574,10 @@ func (m *InviteMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the Invite entity. -// If the Invite object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the GroupSetting entity. +// If the GroupSetting 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 *InviteMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupSettingMutation) 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") } @@ -48185,30 +51592,30 @@ func (m *InviteMutation) OldCreatedAt(ctx context.Context) (v time.Time, err err } // ClearCreatedAt clears the value of the "created_at" field. -func (m *InviteMutation) ClearCreatedAt() { +func (m *GroupSettingMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[invite.FieldCreatedAt] = struct{}{} + m.clearedFields[groupsetting.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *InviteMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[invite.FieldCreatedAt] +func (m *GroupSettingMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[groupsetting.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *InviteMutation) ResetCreatedAt() { +func (m *GroupSettingMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, invite.FieldCreatedAt) + delete(m.clearedFields, groupsetting.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *InviteMutation) SetUpdatedAt(t time.Time) { +func (m *GroupSettingMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *InviteMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *GroupSettingMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -48216,10 +51623,10 @@ func (m *InviteMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the Invite entity. -// If the Invite object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the GroupSetting entity. +// If the GroupSetting 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 *InviteMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupSettingMutation) 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") } @@ -48234,30 +51641,30 @@ func (m *InviteMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err err } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *InviteMutation) ClearUpdatedAt() { +func (m *GroupSettingMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[invite.FieldUpdatedAt] = struct{}{} + m.clearedFields[groupsetting.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *InviteMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[invite.FieldUpdatedAt] +func (m *GroupSettingMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[groupsetting.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *InviteMutation) ResetUpdatedAt() { +func (m *GroupSettingMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, invite.FieldUpdatedAt) + delete(m.clearedFields, groupsetting.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *InviteMutation) SetCreatedBy(s string) { +func (m *GroupSettingMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *InviteMutation) CreatedBy() (r string, exists bool) { +func (m *GroupSettingMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -48265,10 +51672,10 @@ func (m *InviteMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the Invite entity. -// If the Invite object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the GroupSetting entity. +// If the GroupSetting 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 *InviteMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *GroupSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -48283,30 +51690,30 @@ func (m *InviteMutation) OldCreatedBy(ctx context.Context) (v string, err error) } // ClearCreatedBy clears the value of the "created_by" field. -func (m *InviteMutation) ClearCreatedBy() { +func (m *GroupSettingMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[invite.FieldCreatedBy] = struct{}{} + m.clearedFields[groupsetting.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *InviteMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[invite.FieldCreatedBy] +func (m *GroupSettingMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[groupsetting.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *InviteMutation) ResetCreatedBy() { +func (m *GroupSettingMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, invite.FieldCreatedBy) + delete(m.clearedFields, groupsetting.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *InviteMutation) SetUpdatedBy(s string) { +func (m *GroupSettingMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *InviteMutation) UpdatedBy() (r string, exists bool) { +func (m *GroupSettingMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -48314,10 +51721,10 @@ func (m *InviteMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the Invite entity. -// If the Invite object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the GroupSetting entity. +// If the GroupSetting 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 *InviteMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *GroupSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -48332,30 +51739,30 @@ func (m *InviteMutation) OldUpdatedBy(ctx context.Context) (v string, err error) } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *InviteMutation) ClearUpdatedBy() { +func (m *GroupSettingMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[invite.FieldUpdatedBy] = struct{}{} + m.clearedFields[groupsetting.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *InviteMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[invite.FieldUpdatedBy] +func (m *GroupSettingMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[groupsetting.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *InviteMutation) ResetUpdatedBy() { +func (m *GroupSettingMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, invite.FieldUpdatedBy) + delete(m.clearedFields, groupsetting.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *InviteMutation) SetMappingID(s string) { +func (m *GroupSettingMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *InviteMutation) MappingID() (r string, exists bool) { +func (m *GroupSettingMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -48363,10 +51770,10 @@ func (m *InviteMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the Invite entity. -// If the Invite object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the GroupSetting entity. +// If the GroupSetting 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 *InviteMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *GroupSettingMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -48381,17 +51788,82 @@ func (m *InviteMutation) OldMappingID(ctx context.Context) (v string, err error) } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *InviteMutation) ResetMappingID() { +func (m *GroupSettingMutation) ResetMappingID() { m.mapping_id = nil } +// SetTags sets the "tags" field. +func (m *GroupSettingMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *GroupSettingMutation) 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 GroupSetting entity. +// If the GroupSetting 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 *GroupSettingMutation) 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 *GroupSettingMutation) 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 *GroupSettingMutation) 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 *GroupSettingMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[groupsetting.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *GroupSettingMutation) TagsCleared() bool { + _, ok := m.clearedFields[groupsetting.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *GroupSettingMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, groupsetting.FieldTags) +} + // SetDeletedAt sets the "deleted_at" field. -func (m *InviteMutation) SetDeletedAt(t time.Time) { +func (m *GroupSettingMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *InviteMutation) DeletedAt() (r time.Time, exists bool) { +func (m *GroupSettingMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -48399,10 +51871,10 @@ func (m *InviteMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the Invite entity. -// If the Invite object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the GroupSetting entity. +// If the GroupSetting 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 *InviteMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupSettingMutation) 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") } @@ -48417,30 +51889,30 @@ func (m *InviteMutation) OldDeletedAt(ctx context.Context) (v time.Time, err err } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *InviteMutation) ClearDeletedAt() { +func (m *GroupSettingMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[invite.FieldDeletedAt] = struct{}{} + m.clearedFields[groupsetting.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *InviteMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[invite.FieldDeletedAt] +func (m *GroupSettingMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[groupsetting.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *InviteMutation) ResetDeletedAt() { +func (m *GroupSettingMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, invite.FieldDeletedAt) + delete(m.clearedFields, groupsetting.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *InviteMutation) SetDeletedBy(s string) { +func (m *GroupSettingMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *InviteMutation) DeletedBy() (r string, exists bool) { +func (m *GroupSettingMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -48448,10 +51920,10 @@ func (m *InviteMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the Invite entity. -// If the Invite object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the GroupSetting entity. +// If the GroupSetting 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 *InviteMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *GroupSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -48466,496 +51938,278 @@ func (m *InviteMutation) OldDeletedBy(ctx context.Context) (v string, err error) } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *InviteMutation) ClearDeletedBy() { +func (m *GroupSettingMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[invite.FieldDeletedBy] = struct{}{} + m.clearedFields[groupsetting.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *InviteMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[invite.FieldDeletedBy] +func (m *GroupSettingMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[groupsetting.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *InviteMutation) ResetDeletedBy() { +func (m *GroupSettingMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, invite.FieldDeletedBy) + delete(m.clearedFields, groupsetting.FieldDeletedBy) } -// SetOwnerID sets the "owner_id" field. -func (m *InviteMutation) SetOwnerID(s string) { - m.owner = &s +// SetVisibility sets the "visibility" field. +func (m *GroupSettingMutation) SetVisibility(e enums.Visibility) { + m.visibility = &e } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *InviteMutation) OwnerID() (r string, exists bool) { - v := m.owner +// Visibility returns the value of the "visibility" field in the mutation. +func (m *GroupSettingMutation) Visibility() (r enums.Visibility, exists bool) { + v := m.visibility if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the Invite entity. -// If the Invite object wasn't provided to the builder, the object is fetched from the database. +// OldVisibility returns the old "visibility" field's value of the GroupSetting entity. +// If the GroupSetting 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 *InviteMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *GroupSettingMutation) OldVisibility(ctx context.Context) (v enums.Visibility, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldVisibility 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") + return v, errors.New("OldVisibility 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 v, fmt.Errorf("querying old value for OldVisibility: %w", err) } - return oldValue.OwnerID, nil -} - -// ClearOwnerID clears the value of the "owner_id" field. -func (m *InviteMutation) ClearOwnerID() { - m.owner = nil - m.clearedFields[invite.FieldOwnerID] = struct{}{} -} - -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *InviteMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[invite.FieldOwnerID] - return ok + return oldValue.Visibility, nil } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *InviteMutation) ResetOwnerID() { - m.owner = nil - delete(m.clearedFields, invite.FieldOwnerID) +// ResetVisibility resets all changes to the "visibility" field. +func (m *GroupSettingMutation) ResetVisibility() { + m.visibility = nil } -// SetToken sets the "token" field. -func (m *InviteMutation) SetToken(s string) { - m.token = &s +// SetJoinPolicy sets the "join_policy" field. +func (m *GroupSettingMutation) SetJoinPolicy(ep enums.JoinPolicy) { + m.join_policy = &ep } -// Token returns the value of the "token" field in the mutation. -func (m *InviteMutation) Token() (r string, exists bool) { - v := m.token +// JoinPolicy returns the value of the "join_policy" field in the mutation. +func (m *GroupSettingMutation) JoinPolicy() (r enums.JoinPolicy, exists bool) { + v := m.join_policy if v == nil { return } return *v, true } -// OldToken returns the old "token" field's value of the Invite entity. -// If the Invite object wasn't provided to the builder, the object is fetched from the database. +// OldJoinPolicy returns the old "join_policy" field's value of the GroupSetting entity. +// If the GroupSetting 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 *InviteMutation) OldToken(ctx context.Context) (v string, err error) { +func (m *GroupSettingMutation) OldJoinPolicy(ctx context.Context) (v enums.JoinPolicy, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldToken is only allowed on UpdateOne operations") + return v, errors.New("OldJoinPolicy is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldToken requires an ID field in the mutation") + return v, errors.New("OldJoinPolicy requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldToken: %w", err) + return v, fmt.Errorf("querying old value for OldJoinPolicy: %w", err) } - return oldValue.Token, nil + return oldValue.JoinPolicy, nil } -// ResetToken resets all changes to the "token" field. -func (m *InviteMutation) ResetToken() { - m.token = nil +// ResetJoinPolicy resets all changes to the "join_policy" field. +func (m *GroupSettingMutation) ResetJoinPolicy() { + m.join_policy = nil } -// SetExpires sets the "expires" field. -func (m *InviteMutation) SetExpires(t time.Time) { - m.expires = &t +// SetSyncToSlack sets the "sync_to_slack" field. +func (m *GroupSettingMutation) SetSyncToSlack(b bool) { + m.sync_to_slack = &b } -// Expires returns the value of the "expires" field in the mutation. -func (m *InviteMutation) Expires() (r time.Time, exists bool) { - v := m.expires +// SyncToSlack returns the value of the "sync_to_slack" field in the mutation. +func (m *GroupSettingMutation) SyncToSlack() (r bool, exists bool) { + v := m.sync_to_slack if v == nil { return } return *v, true } -// OldExpires returns the old "expires" field's value of the Invite entity. -// If the Invite object wasn't provided to the builder, the object is fetched from the database. +// OldSyncToSlack returns the old "sync_to_slack" field's value of the GroupSetting entity. +// If the GroupSetting 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 *InviteMutation) OldExpires(ctx context.Context) (v time.Time, err error) { +func (m *GroupSettingMutation) OldSyncToSlack(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldExpires is only allowed on UpdateOne operations") + return v, errors.New("OldSyncToSlack is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldExpires requires an ID field in the mutation") + return v, errors.New("OldSyncToSlack requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldExpires: %w", err) + return v, fmt.Errorf("querying old value for OldSyncToSlack: %w", err) } - return oldValue.Expires, nil + return oldValue.SyncToSlack, nil } -// ClearExpires clears the value of the "expires" field. -func (m *InviteMutation) ClearExpires() { - m.expires = nil - m.clearedFields[invite.FieldExpires] = struct{}{} +// ClearSyncToSlack clears the value of the "sync_to_slack" field. +func (m *GroupSettingMutation) ClearSyncToSlack() { + m.sync_to_slack = nil + m.clearedFields[groupsetting.FieldSyncToSlack] = struct{}{} } -// ExpiresCleared returns if the "expires" field was cleared in this mutation. -func (m *InviteMutation) ExpiresCleared() bool { - _, ok := m.clearedFields[invite.FieldExpires] +// SyncToSlackCleared returns if the "sync_to_slack" field was cleared in this mutation. +func (m *GroupSettingMutation) SyncToSlackCleared() bool { + _, ok := m.clearedFields[groupsetting.FieldSyncToSlack] return ok } -// ResetExpires resets all changes to the "expires" field. -func (m *InviteMutation) ResetExpires() { - m.expires = nil - delete(m.clearedFields, invite.FieldExpires) -} - -// SetRecipient sets the "recipient" field. -func (m *InviteMutation) SetRecipient(s string) { - m.recipient = &s -} - -// Recipient returns the value of the "recipient" field in the mutation. -func (m *InviteMutation) Recipient() (r string, exists bool) { - v := m.recipient - if v == nil { - return - } - return *v, true -} - -// OldRecipient returns the old "recipient" field's value of the Invite entity. -// If the Invite 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 *InviteMutation) OldRecipient(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldRecipient is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldRecipient requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldRecipient: %w", err) - } - return oldValue.Recipient, nil -} - -// ResetRecipient resets all changes to the "recipient" field. -func (m *InviteMutation) ResetRecipient() { - m.recipient = nil -} - -// SetStatus sets the "status" field. -func (m *InviteMutation) SetStatus(es enums.InviteStatus) { - m.status = &es -} - -// Status returns the value of the "status" field in the mutation. -func (m *InviteMutation) Status() (r enums.InviteStatus, exists bool) { - v := m.status - if v == nil { - return - } - return *v, true -} - -// OldStatus returns the old "status" field's value of the Invite entity. -// If the Invite 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 *InviteMutation) OldStatus(ctx context.Context) (v enums.InviteStatus, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldStatus is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldStatus requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldStatus: %w", err) - } - return oldValue.Status, nil -} - -// ResetStatus resets all changes to the "status" field. -func (m *InviteMutation) ResetStatus() { - m.status = nil -} - -// SetRole sets the "role" field. -func (m *InviteMutation) SetRole(e enums.Role) { - m.role = &e -} - -// Role returns the value of the "role" field in the mutation. -func (m *InviteMutation) Role() (r enums.Role, exists bool) { - v := m.role - if v == nil { - return - } - return *v, true -} - -// OldRole returns the old "role" field's value of the Invite entity. -// If the Invite 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 *InviteMutation) OldRole(ctx context.Context) (v enums.Role, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldRole is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldRole requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldRole: %w", err) - } - return oldValue.Role, nil -} - -// ResetRole resets all changes to the "role" field. -func (m *InviteMutation) ResetRole() { - m.role = nil +// ResetSyncToSlack resets all changes to the "sync_to_slack" field. +func (m *GroupSettingMutation) ResetSyncToSlack() { + m.sync_to_slack = nil + delete(m.clearedFields, groupsetting.FieldSyncToSlack) } -// SetSendAttempts sets the "send_attempts" field. -func (m *InviteMutation) SetSendAttempts(i int) { - m.send_attempts = &i - m.addsend_attempts = nil +// SetSyncToGithub sets the "sync_to_github" field. +func (m *GroupSettingMutation) SetSyncToGithub(b bool) { + m.sync_to_github = &b } -// SendAttempts returns the value of the "send_attempts" field in the mutation. -func (m *InviteMutation) SendAttempts() (r int, exists bool) { - v := m.send_attempts +// SyncToGithub returns the value of the "sync_to_github" field in the mutation. +func (m *GroupSettingMutation) SyncToGithub() (r bool, exists bool) { + v := m.sync_to_github if v == nil { return } return *v, true } -// OldSendAttempts returns the old "send_attempts" field's value of the Invite entity. -// If the Invite object wasn't provided to the builder, the object is fetched from the database. +// OldSyncToGithub returns the old "sync_to_github" field's value of the GroupSetting entity. +// If the GroupSetting 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 *InviteMutation) OldSendAttempts(ctx context.Context) (v int, err error) { +func (m *GroupSettingMutation) OldSyncToGithub(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldSendAttempts is only allowed on UpdateOne operations") + return v, errors.New("OldSyncToGithub is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldSendAttempts requires an ID field in the mutation") + return v, errors.New("OldSyncToGithub requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldSendAttempts: %w", err) + return v, fmt.Errorf("querying old value for OldSyncToGithub: %w", err) } - return oldValue.SendAttempts, nil + return oldValue.SyncToGithub, nil } -// AddSendAttempts adds i to the "send_attempts" field. -func (m *InviteMutation) AddSendAttempts(i int) { - if m.addsend_attempts != nil { - *m.addsend_attempts += i - } else { - m.addsend_attempts = &i - } +// ClearSyncToGithub clears the value of the "sync_to_github" field. +func (m *GroupSettingMutation) ClearSyncToGithub() { + m.sync_to_github = nil + m.clearedFields[groupsetting.FieldSyncToGithub] = struct{}{} } -// AddedSendAttempts returns the value that was added to the "send_attempts" field in this mutation. -func (m *InviteMutation) AddedSendAttempts() (r int, exists bool) { - v := m.addsend_attempts - if v == nil { - return - } - return *v, true +// SyncToGithubCleared returns if the "sync_to_github" field was cleared in this mutation. +func (m *GroupSettingMutation) SyncToGithubCleared() bool { + _, ok := m.clearedFields[groupsetting.FieldSyncToGithub] + return ok } -// ResetSendAttempts resets all changes to the "send_attempts" field. -func (m *InviteMutation) ResetSendAttempts() { - m.send_attempts = nil - m.addsend_attempts = nil +// ResetSyncToGithub resets all changes to the "sync_to_github" field. +func (m *GroupSettingMutation) ResetSyncToGithub() { + m.sync_to_github = nil + delete(m.clearedFields, groupsetting.FieldSyncToGithub) } -// SetRequestorID sets the "requestor_id" field. -func (m *InviteMutation) SetRequestorID(s string) { - m.requestor_id = &s +// SetGroupID sets the "group_id" field. +func (m *GroupSettingMutation) SetGroupID(s string) { + m.group = &s } -// RequestorID returns the value of the "requestor_id" field in the mutation. -func (m *InviteMutation) RequestorID() (r string, exists bool) { - v := m.requestor_id +// GroupID returns the value of the "group_id" field in the mutation. +func (m *GroupSettingMutation) GroupID() (r string, exists bool) { + v := m.group if v == nil { return } return *v, true } -// OldRequestorID returns the old "requestor_id" field's value of the Invite entity. -// If the Invite object wasn't provided to the builder, the object is fetched from the database. +// OldGroupID returns the old "group_id" field's value of the GroupSetting entity. +// If the GroupSetting 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 *InviteMutation) OldRequestorID(ctx context.Context) (v string, err error) { +func (m *GroupSettingMutation) OldGroupID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldRequestorID is only allowed on UpdateOne operations") + return v, errors.New("OldGroupID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldRequestorID requires an ID field in the mutation") + 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 OldRequestorID: %w", err) + return v, fmt.Errorf("querying old value for OldGroupID: %w", err) } - return oldValue.RequestorID, nil + return oldValue.GroupID, nil } -// ClearRequestorID clears the value of the "requestor_id" field. -func (m *InviteMutation) ClearRequestorID() { - m.requestor_id = nil - m.clearedFields[invite.FieldRequestorID] = struct{}{} +// ClearGroupID clears the value of the "group_id" field. +func (m *GroupSettingMutation) ClearGroupID() { + m.group = nil + m.clearedFields[groupsetting.FieldGroupID] = struct{}{} } -// RequestorIDCleared returns if the "requestor_id" field was cleared in this mutation. -func (m *InviteMutation) RequestorIDCleared() bool { - _, ok := m.clearedFields[invite.FieldRequestorID] +// GroupIDCleared returns if the "group_id" field was cleared in this mutation. +func (m *GroupSettingMutation) GroupIDCleared() bool { + _, ok := m.clearedFields[groupsetting.FieldGroupID] return ok } -// ResetRequestorID resets all changes to the "requestor_id" field. -func (m *InviteMutation) ResetRequestorID() { - m.requestor_id = nil - delete(m.clearedFields, invite.FieldRequestorID) -} - -// SetSecret sets the "secret" field. -func (m *InviteMutation) SetSecret(b []byte) { - m.secret = &b -} - -// Secret returns the value of the "secret" field in the mutation. -func (m *InviteMutation) Secret() (r []byte, exists bool) { - v := m.secret - if v == nil { - return - } - return *v, true -} - -// OldSecret returns the old "secret" field's value of the Invite entity. -// If the Invite 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 *InviteMutation) OldSecret(ctx context.Context) (v *[]byte, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldSecret is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldSecret requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldSecret: %w", err) - } - return oldValue.Secret, nil -} - -// ResetSecret resets all changes to the "secret" field. -func (m *InviteMutation) ResetSecret() { - m.secret = nil +// ResetGroupID resets all changes to the "group_id" field. +func (m *GroupSettingMutation) ResetGroupID() { + m.group = nil + delete(m.clearedFields, groupsetting.FieldGroupID) } -// ClearOwner clears the "owner" edge to the Organization entity. -func (m *InviteMutation) ClearOwner() { - m.clearedowner = true - m.clearedFields[invite.FieldOwnerID] = struct{}{} +// ClearGroup clears the "group" edge to the Group entity. +func (m *GroupSettingMutation) ClearGroup() { + m.clearedgroup = true + m.clearedFields[groupsetting.FieldGroupID] = struct{}{} } -// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *InviteMutation) OwnerCleared() bool { - return m.OwnerIDCleared() || m.clearedowner +// GroupCleared reports if the "group" edge to the Group entity was cleared. +func (m *GroupSettingMutation) GroupCleared() bool { + return m.GroupIDCleared() || m.clearedgroup } -// OwnerIDs returns the "owner" edge IDs in the mutation. +// GroupIDs returns the "group" 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 *InviteMutation) OwnerIDs() (ids []string) { - if id := m.owner; id != nil { +// GroupID instead. It exists only for internal usage by the builders. +func (m *GroupSettingMutation) GroupIDs() (ids []string) { + if id := m.group; id != nil { ids = append(ids, *id) } return } -// ResetOwner resets all changes to the "owner" edge. -func (m *InviteMutation) ResetOwner() { - m.owner = nil - m.clearedowner = false -} - -// AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *InviteMutation) AddEventIDs(ids ...string) { - if m.events == nil { - m.events = make(map[string]struct{}) - } - for i := range ids { - m.events[ids[i]] = struct{}{} - } -} - -// ClearEvents clears the "events" edge to the Event entity. -func (m *InviteMutation) ClearEvents() { - m.clearedevents = true -} - -// EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *InviteMutation) EventsCleared() bool { - return m.clearedevents -} - -// RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *InviteMutation) RemoveEventIDs(ids ...string) { - if m.removedevents == nil { - m.removedevents = make(map[string]struct{}) - } - for i := range ids { - delete(m.events, ids[i]) - m.removedevents[ids[i]] = struct{}{} - } -} - -// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *InviteMutation) RemovedEventsIDs() (ids []string) { - for id := range m.removedevents { - ids = append(ids, id) - } - return -} - -// EventsIDs returns the "events" edge IDs in the mutation. -func (m *InviteMutation) EventsIDs() (ids []string) { - for id := range m.events { - ids = append(ids, id) - } - return -} - -// ResetEvents resets all changes to the "events" edge. -func (m *InviteMutation) ResetEvents() { - m.events = nil - m.clearedevents = false - m.removedevents = nil +// ResetGroup resets all changes to the "group" edge. +func (m *GroupSettingMutation) ResetGroup() { + m.group = nil + m.clearedgroup = false } -// Where appends a list predicates to the InviteMutation builder. -func (m *InviteMutation) Where(ps ...predicate.Invite) { +// Where appends a list predicates to the GroupSettingMutation builder. +func (m *GroupSettingMutation) Where(ps ...predicate.GroupSetting) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the InviteMutation builder. Using this method, +// WhereP appends storage-level predicates to the GroupSettingMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *InviteMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.Invite, len(ps)) +func (m *GroupSettingMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.GroupSetting, len(ps)) for i := range ps { p[i] = ps[i] } @@ -48963,72 +52217,63 @@ func (m *InviteMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *InviteMutation) Op() Op { +func (m *GroupSettingMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *InviteMutation) SetOp(op Op) { +func (m *GroupSettingMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (Invite). -func (m *InviteMutation) Type() string { +// Type returns the node type of this mutation (GroupSetting). +func (m *GroupSettingMutation) 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 *InviteMutation) Fields() []string { - fields := make([]string, 0, 16) +func (m *GroupSettingMutation) Fields() []string { + fields := make([]string, 0, 13) if m.created_at != nil { - fields = append(fields, invite.FieldCreatedAt) + fields = append(fields, groupsetting.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, invite.FieldUpdatedAt) + fields = append(fields, groupsetting.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, invite.FieldCreatedBy) + fields = append(fields, groupsetting.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, invite.FieldUpdatedBy) + fields = append(fields, groupsetting.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, invite.FieldMappingID) + fields = append(fields, groupsetting.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, groupsetting.FieldTags) } if m.deleted_at != nil { - fields = append(fields, invite.FieldDeletedAt) + fields = append(fields, groupsetting.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, invite.FieldDeletedBy) - } - if m.owner != nil { - fields = append(fields, invite.FieldOwnerID) - } - if m.token != nil { - fields = append(fields, invite.FieldToken) - } - if m.expires != nil { - fields = append(fields, invite.FieldExpires) - } - if m.recipient != nil { - fields = append(fields, invite.FieldRecipient) + fields = append(fields, groupsetting.FieldDeletedBy) } - if m.status != nil { - fields = append(fields, invite.FieldStatus) + if m.visibility != nil { + fields = append(fields, groupsetting.FieldVisibility) } - if m.role != nil { - fields = append(fields, invite.FieldRole) + if m.join_policy != nil { + fields = append(fields, groupsetting.FieldJoinPolicy) } - if m.send_attempts != nil { - fields = append(fields, invite.FieldSendAttempts) + if m.sync_to_slack != nil { + fields = append(fields, groupsetting.FieldSyncToSlack) } - if m.requestor_id != nil { - fields = append(fields, invite.FieldRequestorID) + if m.sync_to_github != nil { + fields = append(fields, groupsetting.FieldSyncToGithub) } - if m.secret != nil { - fields = append(fields, invite.FieldSecret) + if m.group != nil { + fields = append(fields, groupsetting.FieldGroupID) } return fields } @@ -49036,40 +52281,34 @@ func (m *InviteMutation) Fields() []string { // 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 *InviteMutation) Field(name string) (ent.Value, bool) { +func (m *GroupSettingMutation) Field(name string) (ent.Value, bool) { switch name { - case invite.FieldCreatedAt: + case groupsetting.FieldCreatedAt: return m.CreatedAt() - case invite.FieldUpdatedAt: + case groupsetting.FieldUpdatedAt: return m.UpdatedAt() - case invite.FieldCreatedBy: + case groupsetting.FieldCreatedBy: return m.CreatedBy() - case invite.FieldUpdatedBy: + case groupsetting.FieldUpdatedBy: return m.UpdatedBy() - case invite.FieldMappingID: + case groupsetting.FieldMappingID: return m.MappingID() - case invite.FieldDeletedAt: + case groupsetting.FieldTags: + return m.Tags() + case groupsetting.FieldDeletedAt: return m.DeletedAt() - case invite.FieldDeletedBy: + case groupsetting.FieldDeletedBy: return m.DeletedBy() - case invite.FieldOwnerID: - return m.OwnerID() - case invite.FieldToken: - return m.Token() - case invite.FieldExpires: - return m.Expires() - case invite.FieldRecipient: - return m.Recipient() - case invite.FieldStatus: - return m.Status() - case invite.FieldRole: - return m.Role() - case invite.FieldSendAttempts: - return m.SendAttempts() - case invite.FieldRequestorID: - return m.RequestorID() - case invite.FieldSecret: - return m.Secret() + case groupsetting.FieldVisibility: + return m.Visibility() + case groupsetting.FieldJoinPolicy: + return m.JoinPolicy() + case groupsetting.FieldSyncToSlack: + return m.SyncToSlack() + case groupsetting.FieldSyncToGithub: + return m.SyncToGithub() + case groupsetting.FieldGroupID: + return m.GroupID() } return nil, false } @@ -49077,473 +52316,403 @@ func (m *InviteMutation) Field(name string) (ent.Value, bool) { // 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 *InviteMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *GroupSettingMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case invite.FieldCreatedAt: + case groupsetting.FieldCreatedAt: return m.OldCreatedAt(ctx) - case invite.FieldUpdatedAt: + case groupsetting.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case invite.FieldCreatedBy: + case groupsetting.FieldCreatedBy: return m.OldCreatedBy(ctx) - case invite.FieldUpdatedBy: + case groupsetting.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case invite.FieldMappingID: + case groupsetting.FieldMappingID: return m.OldMappingID(ctx) - case invite.FieldDeletedAt: + case groupsetting.FieldTags: + return m.OldTags(ctx) + case groupsetting.FieldDeletedAt: return m.OldDeletedAt(ctx) - case invite.FieldDeletedBy: + case groupsetting.FieldDeletedBy: return m.OldDeletedBy(ctx) - case invite.FieldOwnerID: - return m.OldOwnerID(ctx) - case invite.FieldToken: - return m.OldToken(ctx) - case invite.FieldExpires: - return m.OldExpires(ctx) - case invite.FieldRecipient: - return m.OldRecipient(ctx) - case invite.FieldStatus: - return m.OldStatus(ctx) - case invite.FieldRole: - return m.OldRole(ctx) - case invite.FieldSendAttempts: - return m.OldSendAttempts(ctx) - case invite.FieldRequestorID: - return m.OldRequestorID(ctx) - case invite.FieldSecret: - return m.OldSecret(ctx) - } - return nil, fmt.Errorf("unknown Invite field %s", name) -} - -// SetField sets the value of a field with the given name. It returns an error if + case groupsetting.FieldVisibility: + return m.OldVisibility(ctx) + case groupsetting.FieldJoinPolicy: + return m.OldJoinPolicy(ctx) + case groupsetting.FieldSyncToSlack: + return m.OldSyncToSlack(ctx) + case groupsetting.FieldSyncToGithub: + return m.OldSyncToGithub(ctx) + case groupsetting.FieldGroupID: + return m.OldGroupID(ctx) + } + return nil, fmt.Errorf("unknown GroupSetting 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 *InviteMutation) SetField(name string, value ent.Value) error { +func (m *GroupSettingMutation) SetField(name string, value ent.Value) error { switch name { - case invite.FieldCreatedAt: + case groupsetting.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 invite.FieldUpdatedAt: + case groupsetting.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 invite.FieldCreatedBy: + case groupsetting.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case invite.FieldUpdatedBy: + case groupsetting.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case invite.FieldMappingID: + case groupsetting.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case invite.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 invite.FieldDeletedBy: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetDeletedBy(v) - return nil - case invite.FieldOwnerID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetOwnerID(v) - return nil - case invite.FieldToken: - v, ok := value.(string) + case groupsetting.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetToken(v) + m.SetTags(v) return nil - case invite.FieldExpires: + case groupsetting.FieldDeletedAt: v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetExpires(v) + m.SetDeletedAt(v) return nil - case invite.FieldRecipient: + case groupsetting.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetRecipient(v) + m.SetDeletedBy(v) return nil - case invite.FieldStatus: - v, ok := value.(enums.InviteStatus) + case groupsetting.FieldVisibility: + v, ok := value.(enums.Visibility) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetStatus(v) + m.SetVisibility(v) return nil - case invite.FieldRole: - v, ok := value.(enums.Role) + case groupsetting.FieldJoinPolicy: + v, ok := value.(enums.JoinPolicy) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetRole(v) + m.SetJoinPolicy(v) return nil - case invite.FieldSendAttempts: - v, ok := value.(int) + case groupsetting.FieldSyncToSlack: + v, ok := value.(bool) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetSendAttempts(v) + m.SetSyncToSlack(v) return nil - case invite.FieldRequestorID: - v, ok := value.(string) + case groupsetting.FieldSyncToGithub: + v, ok := value.(bool) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetRequestorID(v) + m.SetSyncToGithub(v) return nil - case invite.FieldSecret: - v, ok := value.([]byte) + case groupsetting.FieldGroupID: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetSecret(v) + m.SetGroupID(v) return nil } - return fmt.Errorf("unknown Invite field %s", name) + return fmt.Errorf("unknown GroupSetting field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *InviteMutation) AddedFields() []string { - var fields []string - if m.addsend_attempts != nil { - fields = append(fields, invite.FieldSendAttempts) - } - return fields +func (m *GroupSettingMutation) 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 *InviteMutation) AddedField(name string) (ent.Value, bool) { - switch name { - case invite.FieldSendAttempts: - return m.AddedSendAttempts() - } +func (m *GroupSettingMutation) 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 *InviteMutation) AddField(name string, value ent.Value) error { +func (m *GroupSettingMutation) AddField(name string, value ent.Value) error { switch name { - case invite.FieldSendAttempts: - v, ok := value.(int) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.AddSendAttempts(v) - return nil } - return fmt.Errorf("unknown Invite numeric field %s", name) + return fmt.Errorf("unknown GroupSetting numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *InviteMutation) ClearedFields() []string { +func (m *GroupSettingMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(invite.FieldCreatedAt) { - fields = append(fields, invite.FieldCreatedAt) + if m.FieldCleared(groupsetting.FieldCreatedAt) { + fields = append(fields, groupsetting.FieldCreatedAt) } - if m.FieldCleared(invite.FieldUpdatedAt) { - fields = append(fields, invite.FieldUpdatedAt) + if m.FieldCleared(groupsetting.FieldUpdatedAt) { + fields = append(fields, groupsetting.FieldUpdatedAt) } - if m.FieldCleared(invite.FieldCreatedBy) { - fields = append(fields, invite.FieldCreatedBy) + if m.FieldCleared(groupsetting.FieldCreatedBy) { + fields = append(fields, groupsetting.FieldCreatedBy) } - if m.FieldCleared(invite.FieldUpdatedBy) { - fields = append(fields, invite.FieldUpdatedBy) + if m.FieldCleared(groupsetting.FieldUpdatedBy) { + fields = append(fields, groupsetting.FieldUpdatedBy) } - if m.FieldCleared(invite.FieldDeletedAt) { - fields = append(fields, invite.FieldDeletedAt) + if m.FieldCleared(groupsetting.FieldTags) { + fields = append(fields, groupsetting.FieldTags) } - if m.FieldCleared(invite.FieldDeletedBy) { - fields = append(fields, invite.FieldDeletedBy) + if m.FieldCleared(groupsetting.FieldDeletedAt) { + fields = append(fields, groupsetting.FieldDeletedAt) } - if m.FieldCleared(invite.FieldOwnerID) { - fields = append(fields, invite.FieldOwnerID) + if m.FieldCleared(groupsetting.FieldDeletedBy) { + fields = append(fields, groupsetting.FieldDeletedBy) } - if m.FieldCleared(invite.FieldExpires) { - fields = append(fields, invite.FieldExpires) + if m.FieldCleared(groupsetting.FieldSyncToSlack) { + fields = append(fields, groupsetting.FieldSyncToSlack) } - if m.FieldCleared(invite.FieldRequestorID) { - fields = append(fields, invite.FieldRequestorID) + if m.FieldCleared(groupsetting.FieldSyncToGithub) { + fields = append(fields, groupsetting.FieldSyncToGithub) + } + if m.FieldCleared(groupsetting.FieldGroupID) { + fields = append(fields, groupsetting.FieldGroupID) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *InviteMutation) FieldCleared(name string) bool { +func (m *GroupSettingMutation) 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 *InviteMutation) ClearField(name string) error { +func (m *GroupSettingMutation) ClearField(name string) error { switch name { - case invite.FieldCreatedAt: + case groupsetting.FieldCreatedAt: m.ClearCreatedAt() return nil - case invite.FieldUpdatedAt: + case groupsetting.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case invite.FieldCreatedBy: + case groupsetting.FieldCreatedBy: m.ClearCreatedBy() return nil - case invite.FieldUpdatedBy: + case groupsetting.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case invite.FieldDeletedAt: + case groupsetting.FieldTags: + m.ClearTags() + return nil + case groupsetting.FieldDeletedAt: m.ClearDeletedAt() return nil - case invite.FieldDeletedBy: + case groupsetting.FieldDeletedBy: m.ClearDeletedBy() return nil - case invite.FieldOwnerID: - m.ClearOwnerID() + case groupsetting.FieldSyncToSlack: + m.ClearSyncToSlack() return nil - case invite.FieldExpires: - m.ClearExpires() + case groupsetting.FieldSyncToGithub: + m.ClearSyncToGithub() return nil - case invite.FieldRequestorID: - m.ClearRequestorID() + case groupsetting.FieldGroupID: + m.ClearGroupID() return nil } - return fmt.Errorf("unknown Invite nullable field %s", name) + return fmt.Errorf("unknown GroupSetting 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 *InviteMutation) ResetField(name string) error { +func (m *GroupSettingMutation) ResetField(name string) error { switch name { - case invite.FieldCreatedAt: + case groupsetting.FieldCreatedAt: m.ResetCreatedAt() return nil - case invite.FieldUpdatedAt: + case groupsetting.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case invite.FieldCreatedBy: + case groupsetting.FieldCreatedBy: m.ResetCreatedBy() return nil - case invite.FieldUpdatedBy: + case groupsetting.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case invite.FieldMappingID: + case groupsetting.FieldMappingID: m.ResetMappingID() return nil - case invite.FieldDeletedAt: + case groupsetting.FieldTags: + m.ResetTags() + return nil + case groupsetting.FieldDeletedAt: m.ResetDeletedAt() return nil - case invite.FieldDeletedBy: + case groupsetting.FieldDeletedBy: m.ResetDeletedBy() return nil - case invite.FieldOwnerID: - m.ResetOwnerID() - return nil - case invite.FieldToken: - m.ResetToken() - return nil - case invite.FieldExpires: - m.ResetExpires() - return nil - case invite.FieldRecipient: - m.ResetRecipient() - return nil - case invite.FieldStatus: - m.ResetStatus() + case groupsetting.FieldVisibility: + m.ResetVisibility() return nil - case invite.FieldRole: - m.ResetRole() + case groupsetting.FieldJoinPolicy: + m.ResetJoinPolicy() return nil - case invite.FieldSendAttempts: - m.ResetSendAttempts() + case groupsetting.FieldSyncToSlack: + m.ResetSyncToSlack() return nil - case invite.FieldRequestorID: - m.ResetRequestorID() + case groupsetting.FieldSyncToGithub: + m.ResetSyncToGithub() return nil - case invite.FieldSecret: - m.ResetSecret() + case groupsetting.FieldGroupID: + m.ResetGroupID() return nil } - return fmt.Errorf("unknown Invite field %s", name) + return fmt.Errorf("unknown GroupSetting field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *InviteMutation) AddedEdges() []string { - edges := make([]string, 0, 2) - if m.owner != nil { - edges = append(edges, invite.EdgeOwner) - } - if m.events != nil { - edges = append(edges, invite.EdgeEvents) +func (m *GroupSettingMutation) AddedEdges() []string { + edges := make([]string, 0, 1) + if m.group != nil { + edges = append(edges, groupsetting.EdgeGroup) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *InviteMutation) AddedIDs(name string) []ent.Value { +func (m *GroupSettingMutation) AddedIDs(name string) []ent.Value { switch name { - case invite.EdgeOwner: - if id := m.owner; id != nil { + case groupsetting.EdgeGroup: + if id := m.group; id != nil { return []ent.Value{*id} } - case invite.EdgeEvents: - ids := make([]ent.Value, 0, len(m.events)) - for id := range m.events { - ids = append(ids, id) - } - return ids } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *InviteMutation) RemovedEdges() []string { - edges := make([]string, 0, 2) - if m.removedevents != nil { - edges = append(edges, invite.EdgeEvents) - } +func (m *GroupSettingMutation) RemovedEdges() []string { + edges := make([]string, 0, 1) return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *InviteMutation) RemovedIDs(name string) []ent.Value { - switch name { - case invite.EdgeEvents: - ids := make([]ent.Value, 0, len(m.removedevents)) - for id := range m.removedevents { - ids = append(ids, id) - } - return ids - } +func (m *GroupSettingMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *InviteMutation) ClearedEdges() []string { - edges := make([]string, 0, 2) - if m.clearedowner { - edges = append(edges, invite.EdgeOwner) - } - if m.clearedevents { - edges = append(edges, invite.EdgeEvents) +func (m *GroupSettingMutation) ClearedEdges() []string { + edges := make([]string, 0, 1) + if m.clearedgroup { + edges = append(edges, groupsetting.EdgeGroup) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *InviteMutation) EdgeCleared(name string) bool { +func (m *GroupSettingMutation) EdgeCleared(name string) bool { switch name { - case invite.EdgeOwner: - return m.clearedowner - case invite.EdgeEvents: - return m.clearedevents + case groupsetting.EdgeGroup: + return m.clearedgroup } 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 *InviteMutation) ClearEdge(name string) error { +func (m *GroupSettingMutation) ClearEdge(name string) error { switch name { - case invite.EdgeOwner: - m.ClearOwner() + case groupsetting.EdgeGroup: + m.ClearGroup() return nil } - return fmt.Errorf("unknown Invite unique edge %s", name) + return fmt.Errorf("unknown GroupSetting 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 *InviteMutation) ResetEdge(name string) error { +func (m *GroupSettingMutation) ResetEdge(name string) error { switch name { - case invite.EdgeOwner: - m.ResetOwner() - return nil - case invite.EdgeEvents: - m.ResetEvents() + case groupsetting.EdgeGroup: + m.ResetGroup() return nil } - return fmt.Errorf("unknown Invite edge %s", name) + return fmt.Errorf("unknown GroupSetting edge %s", name) } -// NoteMutation represents an operation that mutates the Note nodes in the graph. -type NoteMutation struct { +// GroupSettingHistoryMutation represents an operation that mutates the GroupSettingHistory nodes in the graph. +type GroupSettingHistoryMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - deleted_at *time.Time - deleted_by *string - tags *[]string - appendtags []string - text *string - clearedFields map[string]struct{} - owner *string - clearedowner bool - entity *string - clearedentity bool - done bool - oldValue func(context.Context) (*Note, error) - predicates []predicate.Note + 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 + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + visibility *enums.Visibility + join_policy *enums.JoinPolicy + sync_to_slack *bool + sync_to_github *bool + group_id *string + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*GroupSettingHistory, error) + predicates []predicate.GroupSettingHistory } -var _ ent.Mutation = (*NoteMutation)(nil) +var _ ent.Mutation = (*GroupSettingHistoryMutation)(nil) -// noteOption allows management of the mutation configuration using functional options. -type noteOption func(*NoteMutation) +// groupsettinghistoryOption allows management of the mutation configuration using functional options. +type groupsettinghistoryOption func(*GroupSettingHistoryMutation) -// newNoteMutation creates new mutation for the Note entity. -func newNoteMutation(c config, op Op, opts ...noteOption) *NoteMutation { - m := &NoteMutation{ +// newGroupSettingHistoryMutation creates new mutation for the GroupSettingHistory entity. +func newGroupSettingHistoryMutation(c config, op Op, opts ...groupsettinghistoryOption) *GroupSettingHistoryMutation { + m := &GroupSettingHistoryMutation{ config: c, op: op, - typ: TypeNote, + typ: TypeGroupSettingHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -49552,20 +52721,20 @@ func newNoteMutation(c config, op Op, opts ...noteOption) *NoteMutation { return m } -// withNoteID sets the ID field of the mutation. -func withNoteID(id string) noteOption { - return func(m *NoteMutation) { +// withGroupSettingHistoryID sets the ID field of the mutation. +func withGroupSettingHistoryID(id string) groupsettinghistoryOption { + return func(m *GroupSettingHistoryMutation) { var ( err error once sync.Once - value *Note + value *GroupSettingHistory ) - m.oldValue = func(ctx context.Context) (*Note, error) { + m.oldValue = func(ctx context.Context) (*GroupSettingHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().Note.Get(ctx, id) + value, err = m.Client().GroupSettingHistory.Get(ctx, id) } }) return value, err @@ -49574,10 +52743,10 @@ func withNoteID(id string) noteOption { } } -// withNote sets the old Note of the mutation. -func withNote(node *Note) noteOption { - return func(m *NoteMutation) { - m.oldValue = func(context.Context) (*Note, error) { +// withGroupSettingHistory sets the old GroupSettingHistory of the mutation. +func withGroupSettingHistory(node *GroupSettingHistory) groupsettinghistoryOption { + return func(m *GroupSettingHistoryMutation) { + m.oldValue = func(context.Context) (*GroupSettingHistory, error) { return node, nil } m.id = &node.ID @@ -49586,7 +52755,7 @@ func withNote(node *Note) noteOption { // 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 NoteMutation) Client() *Client { +func (m GroupSettingHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -49594,7 +52763,7 @@ func (m NoteMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m NoteMutation) Tx() (*Tx, error) { +func (m GroupSettingHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -49604,14 +52773,14 @@ func (m NoteMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of Note entities. -func (m *NoteMutation) SetID(id string) { +// operation is only accepted on creation of GroupSettingHistory entities. +func (m *GroupSettingHistoryMutation) 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 *NoteMutation) ID() (id string, exists bool) { +func (m *GroupSettingHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -49622,7 +52791,7 @@ func (m *NoteMutation) ID() (id string, exists bool) { // 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 *NoteMutation) IDs(ctx context.Context) ([]string, error) { +func (m *GroupSettingHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -49631,117 +52800,238 @@ func (m *NoteMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().Note.Query().Where(m.predicates...).IDs(ctx) + return m.Client().GroupSettingHistory.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 *NoteMutation) SetCreatedAt(t time.Time) { - m.created_at = &t +// SetHistoryTime sets the "history_time" field. +func (m *GroupSettingHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t } -// CreatedAt returns the value of the "created_at" field in the mutation. -func (m *NoteMutation) CreatedAt() (r time.Time, exists bool) { - v := m.created_at +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *GroupSettingHistoryMutation) HistoryTime() (r time.Time, exists bool) { + v := m.history_time if v == nil { return } return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the Note entity. -// If the Note object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the GroupSettingHistory entity. +// If the GroupSettingHistory 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 *NoteMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupSettingHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldHistoryTime 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") + 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 OldCreatedAt: %w", err) + return v, fmt.Errorf("querying old value for OldHistoryTime: %w", err) } - return oldValue.CreatedAt, nil -} - -// ClearCreatedAt clears the value of the "created_at" field. -func (m *NoteMutation) ClearCreatedAt() { - m.created_at = nil - m.clearedFields[note.FieldCreatedAt] = struct{}{} -} - -// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *NoteMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[note.FieldCreatedAt] - return ok + return oldValue.HistoryTime, nil } -// ResetCreatedAt resets all changes to the "created_at" field. -func (m *NoteMutation) ResetCreatedAt() { - m.created_at = nil - delete(m.clearedFields, note.FieldCreatedAt) +// ResetHistoryTime resets all changes to the "history_time" field. +func (m *GroupSettingHistoryMutation) ResetHistoryTime() { + m.history_time = nil } -// SetUpdatedAt sets the "updated_at" field. -func (m *NoteMutation) SetUpdatedAt(t time.Time) { - m.updated_at = &t +// SetRef sets the "ref" field. +func (m *GroupSettingHistoryMutation) SetRef(s string) { + m.ref = &s } -// UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *NoteMutation) UpdatedAt() (r time.Time, exists bool) { - v := m.updated_at +// Ref returns the value of the "ref" field in the mutation. +func (m *GroupSettingHistoryMutation) Ref() (r string, exists bool) { + v := m.ref if v == nil { return } return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the Note entity. -// If the Note object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the GroupSettingHistory entity. +// If the GroupSettingHistory 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 *NoteMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupSettingHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldRef 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") + 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 OldUpdatedAt: %w", err) + return v, fmt.Errorf("querying old value for OldRef: %w", err) } - return oldValue.UpdatedAt, nil + return oldValue.Ref, nil } -// ClearUpdatedAt clears the value of the "updated_at" field. -func (m *NoteMutation) ClearUpdatedAt() { - m.updated_at = nil - m.clearedFields[note.FieldUpdatedAt] = struct{}{} +// ClearRef clears the value of the "ref" field. +func (m *GroupSettingHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[groupsettinghistory.FieldRef] = struct{}{} } -// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *NoteMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[note.FieldUpdatedAt] +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *GroupSettingHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[groupsettinghistory.FieldRef] return ok } -// ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *NoteMutation) ResetUpdatedAt() { - m.updated_at = nil - delete(m.clearedFields, note.FieldUpdatedAt) +// ResetRef resets all changes to the "ref" field. +func (m *GroupSettingHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, groupsettinghistory.FieldRef) } -// SetCreatedBy sets the "created_by" field. -func (m *NoteMutation) SetCreatedBy(s string) { +// SetOperation sets the "operation" field. +func (m *GroupSettingHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *GroupSettingHistoryMutation) 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 GroupSettingHistory entity. +// If the GroupSettingHistory 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 *GroupSettingHistoryMutation) 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 *GroupSettingHistoryMutation) ResetOperation() { + m.operation = nil +} + +// SetCreatedAt sets the "created_at" field. +func (m *GroupSettingHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *GroupSettingHistoryMutation) 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 GroupSettingHistory entity. +// If the GroupSettingHistory 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 *GroupSettingHistoryMutation) 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 *GroupSettingHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[groupsettinghistory.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *GroupSettingHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[groupsettinghistory.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *GroupSettingHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, groupsettinghistory.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *GroupSettingHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *GroupSettingHistoryMutation) 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 GroupSettingHistory entity. +// If the GroupSettingHistory 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 *GroupSettingHistoryMutation) 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 *GroupSettingHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[groupsettinghistory.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *GroupSettingHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[groupsettinghistory.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *GroupSettingHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, groupsettinghistory.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *GroupSettingHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *NoteMutation) CreatedBy() (r string, exists bool) { +func (m *GroupSettingHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -49749,10 +53039,10 @@ func (m *NoteMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the Note entity. -// If the Note object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the GroupSettingHistory entity. +// If the GroupSettingHistory 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 *NoteMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *GroupSettingHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -49767,30 +53057,30 @@ func (m *NoteMutation) OldCreatedBy(ctx context.Context) (v string, err error) { } // ClearCreatedBy clears the value of the "created_by" field. -func (m *NoteMutation) ClearCreatedBy() { +func (m *GroupSettingHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[note.FieldCreatedBy] = struct{}{} + m.clearedFields[groupsettinghistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *NoteMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[note.FieldCreatedBy] +func (m *GroupSettingHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[groupsettinghistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *NoteMutation) ResetCreatedBy() { +func (m *GroupSettingHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, note.FieldCreatedBy) + delete(m.clearedFields, groupsettinghistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *NoteMutation) SetUpdatedBy(s string) { +func (m *GroupSettingHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *NoteMutation) UpdatedBy() (r string, exists bool) { +func (m *GroupSettingHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -49798,10 +53088,10 @@ func (m *NoteMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the Note entity. -// If the Note object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the GroupSettingHistory entity. +// If the GroupSettingHistory 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 *NoteMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *GroupSettingHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -49816,30 +53106,30 @@ func (m *NoteMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *NoteMutation) ClearUpdatedBy() { +func (m *GroupSettingHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[note.FieldUpdatedBy] = struct{}{} + m.clearedFields[groupsettinghistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *NoteMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[note.FieldUpdatedBy] +func (m *GroupSettingHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[groupsettinghistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *NoteMutation) ResetUpdatedBy() { +func (m *GroupSettingHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, note.FieldUpdatedBy) + delete(m.clearedFields, groupsettinghistory.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *NoteMutation) SetMappingID(s string) { +func (m *GroupSettingHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *NoteMutation) MappingID() (r string, exists bool) { +func (m *GroupSettingHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -49847,10 +53137,10 @@ func (m *NoteMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the Note entity. -// If the Note object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the GroupSettingHistory entity. +// If the GroupSettingHistory 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 *NoteMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *GroupSettingHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -49865,17 +53155,82 @@ func (m *NoteMutation) OldMappingID(ctx context.Context) (v string, err error) { } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *NoteMutation) ResetMappingID() { +func (m *GroupSettingHistoryMutation) ResetMappingID() { m.mapping_id = nil } +// SetTags sets the "tags" field. +func (m *GroupSettingHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *GroupSettingHistoryMutation) 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 GroupSettingHistory entity. +// If the GroupSettingHistory 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 *GroupSettingHistoryMutation) 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 *GroupSettingHistoryMutation) 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 *GroupSettingHistoryMutation) 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 *GroupSettingHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[groupsettinghistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *GroupSettingHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[groupsettinghistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *GroupSettingHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, groupsettinghistory.FieldTags) +} + // SetDeletedAt sets the "deleted_at" field. -func (m *NoteMutation) SetDeletedAt(t time.Time) { +func (m *GroupSettingHistoryMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *NoteMutation) DeletedAt() (r time.Time, exists bool) { +func (m *GroupSettingHistoryMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -49883,10 +53238,10 @@ func (m *NoteMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the Note entity. -// If the Note object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the GroupSettingHistory entity. +// If the GroupSettingHistory 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 *NoteMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *GroupSettingHistoryMutation) 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") } @@ -49901,30 +53256,30 @@ func (m *NoteMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *NoteMutation) ClearDeletedAt() { +func (m *GroupSettingHistoryMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[note.FieldDeletedAt] = struct{}{} + m.clearedFields[groupsettinghistory.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *NoteMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[note.FieldDeletedAt] +func (m *GroupSettingHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[groupsettinghistory.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *NoteMutation) ResetDeletedAt() { +func (m *GroupSettingHistoryMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, note.FieldDeletedAt) + delete(m.clearedFields, groupsettinghistory.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *NoteMutation) SetDeletedBy(s string) { +func (m *GroupSettingHistoryMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *NoteMutation) DeletedBy() (r string, exists bool) { +func (m *GroupSettingHistoryMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -49932,10 +53287,10 @@ func (m *NoteMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the Note entity. -// If the Note object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the GroupSettingHistory entity. +// If the GroupSettingHistory 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 *NoteMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *GroupSettingHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -49950,248 +53305,251 @@ func (m *NoteMutation) OldDeletedBy(ctx context.Context) (v string, err error) { } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *NoteMutation) ClearDeletedBy() { +func (m *GroupSettingHistoryMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[note.FieldDeletedBy] = struct{}{} + m.clearedFields[groupsettinghistory.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *NoteMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[note.FieldDeletedBy] +func (m *GroupSettingHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[groupsettinghistory.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *NoteMutation) ResetDeletedBy() { +func (m *GroupSettingHistoryMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, note.FieldDeletedBy) + delete(m.clearedFields, groupsettinghistory.FieldDeletedBy) } -// SetTags sets the "tags" field. -func (m *NoteMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil +// SetVisibility sets the "visibility" field. +func (m *GroupSettingHistoryMutation) SetVisibility(e enums.Visibility) { + m.visibility = &e } -// Tags returns the value of the "tags" field in the mutation. -func (m *NoteMutation) Tags() (r []string, exists bool) { - v := m.tags +// Visibility returns the value of the "visibility" field in the mutation. +func (m *GroupSettingHistoryMutation) Visibility() (r enums.Visibility, exists bool) { + v := m.visibility if v == nil { return } return *v, true } -// OldTags returns the old "tags" field's value of the Note entity. -// If the Note object wasn't provided to the builder, the object is fetched from the database. +// OldVisibility returns the old "visibility" field's value of the GroupSettingHistory entity. +// If the GroupSettingHistory 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 *NoteMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *GroupSettingHistoryMutation) OldVisibility(ctx context.Context) (v enums.Visibility, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTags is only allowed on UpdateOne operations") + return v, errors.New("OldVisibility 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") + return v, errors.New("OldVisibility 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 v, fmt.Errorf("querying old value for OldVisibility: %w", err) } - return oldValue.Tags, nil + return oldValue.Visibility, nil } -// AppendTags adds s to the "tags" field. -func (m *NoteMutation) AppendTags(s []string) { - m.appendtags = append(m.appendtags, s...) +// ResetVisibility resets all changes to the "visibility" field. +func (m *GroupSettingHistoryMutation) ResetVisibility() { + m.visibility = nil } -// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. -func (m *NoteMutation) AppendedTags() ([]string, bool) { - if len(m.appendtags) == 0 { - return nil, false - } - return m.appendtags, true +// SetJoinPolicy sets the "join_policy" field. +func (m *GroupSettingHistoryMutation) SetJoinPolicy(ep enums.JoinPolicy) { + m.join_policy = &ep } -// ClearTags clears the value of the "tags" field. -func (m *NoteMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[note.FieldTags] = struct{}{} +// JoinPolicy returns the value of the "join_policy" field in the mutation. +func (m *GroupSettingHistoryMutation) JoinPolicy() (r enums.JoinPolicy, exists bool) { + v := m.join_policy + if v == nil { + return + } + return *v, true } -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *NoteMutation) TagsCleared() bool { - _, ok := m.clearedFields[note.FieldTags] - return ok +// OldJoinPolicy returns the old "join_policy" field's value of the GroupSettingHistory entity. +// If the GroupSettingHistory 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 *GroupSettingHistoryMutation) OldJoinPolicy(ctx context.Context) (v enums.JoinPolicy, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldJoinPolicy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldJoinPolicy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldJoinPolicy: %w", err) + } + return oldValue.JoinPolicy, nil } -// ResetTags resets all changes to the "tags" field. -func (m *NoteMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, note.FieldTags) +// ResetJoinPolicy resets all changes to the "join_policy" field. +func (m *GroupSettingHistoryMutation) ResetJoinPolicy() { + m.join_policy = nil } -// SetOwnerID sets the "owner_id" field. -func (m *NoteMutation) SetOwnerID(s string) { - m.owner = &s +// SetSyncToSlack sets the "sync_to_slack" field. +func (m *GroupSettingHistoryMutation) SetSyncToSlack(b bool) { + m.sync_to_slack = &b } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *NoteMutation) OwnerID() (r string, exists bool) { - v := m.owner +// SyncToSlack returns the value of the "sync_to_slack" field in the mutation. +func (m *GroupSettingHistoryMutation) SyncToSlack() (r bool, exists bool) { + v := m.sync_to_slack if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the Note entity. -// If the Note object wasn't provided to the builder, the object is fetched from the database. +// OldSyncToSlack returns the old "sync_to_slack" field's value of the GroupSettingHistory entity. +// If the GroupSettingHistory 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 *NoteMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *GroupSettingHistoryMutation) OldSyncToSlack(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldSyncToSlack 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") + return v, errors.New("OldSyncToSlack 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 v, fmt.Errorf("querying old value for OldSyncToSlack: %w", err) } - return oldValue.OwnerID, nil + return oldValue.SyncToSlack, nil } -// ClearOwnerID clears the value of the "owner_id" field. -func (m *NoteMutation) ClearOwnerID() { - m.owner = nil - m.clearedFields[note.FieldOwnerID] = struct{}{} +// ClearSyncToSlack clears the value of the "sync_to_slack" field. +func (m *GroupSettingHistoryMutation) ClearSyncToSlack() { + m.sync_to_slack = nil + m.clearedFields[groupsettinghistory.FieldSyncToSlack] = struct{}{} } -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *NoteMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[note.FieldOwnerID] +// SyncToSlackCleared returns if the "sync_to_slack" field was cleared in this mutation. +func (m *GroupSettingHistoryMutation) SyncToSlackCleared() bool { + _, ok := m.clearedFields[groupsettinghistory.FieldSyncToSlack] return ok } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *NoteMutation) ResetOwnerID() { - m.owner = nil - delete(m.clearedFields, note.FieldOwnerID) +// ResetSyncToSlack resets all changes to the "sync_to_slack" field. +func (m *GroupSettingHistoryMutation) ResetSyncToSlack() { + m.sync_to_slack = nil + delete(m.clearedFields, groupsettinghistory.FieldSyncToSlack) } -// SetText sets the "text" field. -func (m *NoteMutation) SetText(s string) { - m.text = &s +// SetSyncToGithub sets the "sync_to_github" field. +func (m *GroupSettingHistoryMutation) SetSyncToGithub(b bool) { + m.sync_to_github = &b } -// Text returns the value of the "text" field in the mutation. -func (m *NoteMutation) Text() (r string, exists bool) { - v := m.text +// SyncToGithub returns the value of the "sync_to_github" field in the mutation. +func (m *GroupSettingHistoryMutation) SyncToGithub() (r bool, exists bool) { + v := m.sync_to_github if v == nil { return } return *v, true } -// OldText returns the old "text" field's value of the Note entity. -// If the Note object wasn't provided to the builder, the object is fetched from the database. +// OldSyncToGithub returns the old "sync_to_github" field's value of the GroupSettingHistory entity. +// If the GroupSettingHistory 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 *NoteMutation) OldText(ctx context.Context) (v string, err error) { +func (m *GroupSettingHistoryMutation) OldSyncToGithub(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldText is only allowed on UpdateOne operations") + return v, errors.New("OldSyncToGithub is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldText requires an ID field in the mutation") + return v, errors.New("OldSyncToGithub requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldText: %w", err) + return v, fmt.Errorf("querying old value for OldSyncToGithub: %w", err) } - return oldValue.Text, nil -} - -// ResetText resets all changes to the "text" field. -func (m *NoteMutation) ResetText() { - m.text = nil -} - -// ClearOwner clears the "owner" edge to the Organization entity. -func (m *NoteMutation) ClearOwner() { - m.clearedowner = true - m.clearedFields[note.FieldOwnerID] = struct{}{} + return oldValue.SyncToGithub, nil } -// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *NoteMutation) OwnerCleared() bool { - return m.OwnerIDCleared() || m.clearedowner +// ClearSyncToGithub clears the value of the "sync_to_github" field. +func (m *GroupSettingHistoryMutation) ClearSyncToGithub() { + m.sync_to_github = nil + m.clearedFields[groupsettinghistory.FieldSyncToGithub] = struct{}{} } -// 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 *NoteMutation) OwnerIDs() (ids []string) { - if id := m.owner; id != nil { - ids = append(ids, *id) - } - return +// SyncToGithubCleared returns if the "sync_to_github" field was cleared in this mutation. +func (m *GroupSettingHistoryMutation) SyncToGithubCleared() bool { + _, ok := m.clearedFields[groupsettinghistory.FieldSyncToGithub] + return ok } -// ResetOwner resets all changes to the "owner" edge. -func (m *NoteMutation) ResetOwner() { - m.owner = nil - m.clearedowner = false +// ResetSyncToGithub resets all changes to the "sync_to_github" field. +func (m *GroupSettingHistoryMutation) ResetSyncToGithub() { + m.sync_to_github = nil + delete(m.clearedFields, groupsettinghistory.FieldSyncToGithub) } -// SetEntityID sets the "entity" edge to the Entity entity by id. -func (m *NoteMutation) SetEntityID(id string) { - m.entity = &id +// SetGroupID sets the "group_id" field. +func (m *GroupSettingHistoryMutation) SetGroupID(s string) { + m.group_id = &s } -// ClearEntity clears the "entity" edge to the Entity entity. -func (m *NoteMutation) ClearEntity() { - m.clearedentity = true +// GroupID returns the value of the "group_id" field in the mutation. +func (m *GroupSettingHistoryMutation) GroupID() (r string, exists bool) { + v := m.group_id + if v == nil { + return + } + return *v, true } -// EntityCleared reports if the "entity" edge to the Entity entity was cleared. -func (m *NoteMutation) EntityCleared() bool { - return m.clearedentity -} - -// EntityID returns the "entity" edge ID in the mutation. -func (m *NoteMutation) EntityID() (id string, exists bool) { - if m.entity != nil { - return *m.entity, true +// OldGroupID returns the old "group_id" field's value of the GroupSettingHistory entity. +// If the GroupSettingHistory 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 *GroupSettingHistoryMutation) OldGroupID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldGroupID is only allowed on UpdateOne operations") } - return + 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 } -// EntityIDs returns the "entity" edge IDs in the mutation. -// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use -// EntityID instead. It exists only for internal usage by the builders. -func (m *NoteMutation) EntityIDs() (ids []string) { - if id := m.entity; id != nil { - ids = append(ids, *id) - } - return +// ClearGroupID clears the value of the "group_id" field. +func (m *GroupSettingHistoryMutation) ClearGroupID() { + m.group_id = nil + m.clearedFields[groupsettinghistory.FieldGroupID] = struct{}{} } -// ResetEntity resets all changes to the "entity" edge. -func (m *NoteMutation) ResetEntity() { - m.entity = nil - m.clearedentity = false +// GroupIDCleared returns if the "group_id" field was cleared in this mutation. +func (m *GroupSettingHistoryMutation) GroupIDCleared() bool { + _, ok := m.clearedFields[groupsettinghistory.FieldGroupID] + return ok } -// Where appends a list predicates to the NoteMutation builder. -func (m *NoteMutation) Where(ps ...predicate.Note) { +// ResetGroupID resets all changes to the "group_id" field. +func (m *GroupSettingHistoryMutation) ResetGroupID() { + m.group_id = nil + delete(m.clearedFields, groupsettinghistory.FieldGroupID) +} + +// Where appends a list predicates to the GroupSettingHistoryMutation builder. +func (m *GroupSettingHistoryMutation) Where(ps ...predicate.GroupSettingHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the NoteMutation builder. Using this method, +// WhereP appends storage-level predicates to the GroupSettingHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *NoteMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.Note, len(ps)) +func (m *GroupSettingHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.GroupSettingHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -50199,54 +53557,72 @@ func (m *NoteMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *NoteMutation) Op() Op { +func (m *GroupSettingHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *NoteMutation) SetOp(op Op) { +func (m *GroupSettingHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (Note). -func (m *NoteMutation) Type() string { +// Type returns the node type of this mutation (GroupSettingHistory). +func (m *GroupSettingHistoryMutation) 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 *NoteMutation) Fields() []string { - fields := make([]string, 0, 10) +func (m *GroupSettingHistoryMutation) Fields() []string { + fields := make([]string, 0, 16) + if m.history_time != nil { + fields = append(fields, groupsettinghistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, groupsettinghistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, groupsettinghistory.FieldOperation) + } if m.created_at != nil { - fields = append(fields, note.FieldCreatedAt) + fields = append(fields, groupsettinghistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, note.FieldUpdatedAt) + fields = append(fields, groupsettinghistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, note.FieldCreatedBy) + fields = append(fields, groupsettinghistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, note.FieldUpdatedBy) + fields = append(fields, groupsettinghistory.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, note.FieldMappingID) + fields = append(fields, groupsettinghistory.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, groupsettinghistory.FieldTags) } if m.deleted_at != nil { - fields = append(fields, note.FieldDeletedAt) + fields = append(fields, groupsettinghistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, note.FieldDeletedBy) + fields = append(fields, groupsettinghistory.FieldDeletedBy) } - if m.tags != nil { - fields = append(fields, note.FieldTags) + if m.visibility != nil { + fields = append(fields, groupsettinghistory.FieldVisibility) } - if m.owner != nil { - fields = append(fields, note.FieldOwnerID) + if m.join_policy != nil { + fields = append(fields, groupsettinghistory.FieldJoinPolicy) } - if m.text != nil { - fields = append(fields, note.FieldText) + if m.sync_to_slack != nil { + fields = append(fields, groupsettinghistory.FieldSyncToSlack) + } + if m.sync_to_github != nil { + fields = append(fields, groupsettinghistory.FieldSyncToGithub) + } + if m.group_id != nil { + fields = append(fields, groupsettinghistory.FieldGroupID) } return fields } @@ -50254,28 +53630,40 @@ func (m *NoteMutation) Fields() []string { // 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 *NoteMutation) Field(name string) (ent.Value, bool) { +func (m *GroupSettingHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case note.FieldCreatedAt: + case groupsettinghistory.FieldHistoryTime: + return m.HistoryTime() + case groupsettinghistory.FieldRef: + return m.Ref() + case groupsettinghistory.FieldOperation: + return m.Operation() + case groupsettinghistory.FieldCreatedAt: return m.CreatedAt() - case note.FieldUpdatedAt: + case groupsettinghistory.FieldUpdatedAt: return m.UpdatedAt() - case note.FieldCreatedBy: + case groupsettinghistory.FieldCreatedBy: return m.CreatedBy() - case note.FieldUpdatedBy: + case groupsettinghistory.FieldUpdatedBy: return m.UpdatedBy() - case note.FieldMappingID: + case groupsettinghistory.FieldMappingID: return m.MappingID() - case note.FieldDeletedAt: + case groupsettinghistory.FieldTags: + return m.Tags() + case groupsettinghistory.FieldDeletedAt: return m.DeletedAt() - case note.FieldDeletedBy: + case groupsettinghistory.FieldDeletedBy: return m.DeletedBy() - case note.FieldTags: - return m.Tags() - case note.FieldOwnerID: - return m.OwnerID() - case note.FieldText: - return m.Text() + case groupsettinghistory.FieldVisibility: + return m.Visibility() + case groupsettinghistory.FieldJoinPolicy: + return m.JoinPolicy() + case groupsettinghistory.FieldSyncToSlack: + return m.SyncToSlack() + case groupsettinghistory.FieldSyncToGithub: + return m.SyncToGithub() + case groupsettinghistory.FieldGroupID: + return m.GroupID() } return nil, false } @@ -50283,370 +53671,26190 @@ func (m *NoteMutation) Field(name string) (ent.Value, bool) { // 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 *NoteMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *GroupSettingHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case note.FieldCreatedAt: + case groupsettinghistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case groupsettinghistory.FieldRef: + return m.OldRef(ctx) + case groupsettinghistory.FieldOperation: + return m.OldOperation(ctx) + case groupsettinghistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case note.FieldUpdatedAt: + case groupsettinghistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case note.FieldCreatedBy: + case groupsettinghistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case note.FieldUpdatedBy: + case groupsettinghistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case note.FieldMappingID: + case groupsettinghistory.FieldMappingID: return m.OldMappingID(ctx) - case note.FieldDeletedAt: + case groupsettinghistory.FieldTags: + return m.OldTags(ctx) + case groupsettinghistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case note.FieldDeletedBy: + case groupsettinghistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case note.FieldTags: - return m.OldTags(ctx) - case note.FieldOwnerID: - return m.OldOwnerID(ctx) - case note.FieldText: - return m.OldText(ctx) + case groupsettinghistory.FieldVisibility: + return m.OldVisibility(ctx) + case groupsettinghistory.FieldJoinPolicy: + return m.OldJoinPolicy(ctx) + case groupsettinghistory.FieldSyncToSlack: + return m.OldSyncToSlack(ctx) + case groupsettinghistory.FieldSyncToGithub: + return m.OldSyncToGithub(ctx) + case groupsettinghistory.FieldGroupID: + return m.OldGroupID(ctx) } - return nil, fmt.Errorf("unknown Note field %s", name) + return nil, fmt.Errorf("unknown GroupSettingHistory 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 *NoteMutation) SetField(name string, value ent.Value) error { +func (m *GroupSettingHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case note.FieldCreatedAt: + case groupsettinghistory.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 groupsettinghistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case groupsettinghistory.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 groupsettinghistory.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 note.FieldUpdatedAt: + case groupsettinghistory.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 note.FieldCreatedBy: + case groupsettinghistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case note.FieldUpdatedBy: + case groupsettinghistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case note.FieldMappingID: + case groupsettinghistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case note.FieldDeletedAt: + case groupsettinghistory.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case groupsettinghistory.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 note.FieldDeletedBy: + case groupsettinghistory.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case note.FieldTags: - v, ok := value.([]string) + case groupsettinghistory.FieldVisibility: + v, ok := value.(enums.Visibility) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTags(v) + m.SetVisibility(v) return nil - case note.FieldOwnerID: - v, ok := value.(string) + case groupsettinghistory.FieldJoinPolicy: + v, ok := value.(enums.JoinPolicy) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetJoinPolicy(v) return nil - case note.FieldText: + case groupsettinghistory.FieldSyncToSlack: + v, ok := value.(bool) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSyncToSlack(v) + return nil + case groupsettinghistory.FieldSyncToGithub: + v, ok := value.(bool) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSyncToGithub(v) + return nil + case groupsettinghistory.FieldGroupID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetText(v) + m.SetGroupID(v) return nil } - return fmt.Errorf("unknown Note field %s", name) + return fmt.Errorf("unknown GroupSettingHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *NoteMutation) AddedFields() []string { +func (m *GroupSettingHistoryMutation) 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 *NoteMutation) AddedField(name string) (ent.Value, bool) { +func (m *GroupSettingHistoryMutation) 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 *NoteMutation) AddField(name string, value ent.Value) error { +func (m *GroupSettingHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown Note numeric field %s", name) + return fmt.Errorf("unknown GroupSettingHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *NoteMutation) ClearedFields() []string { +func (m *GroupSettingHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(note.FieldCreatedAt) { - fields = append(fields, note.FieldCreatedAt) + if m.FieldCleared(groupsettinghistory.FieldRef) { + fields = append(fields, groupsettinghistory.FieldRef) } - if m.FieldCleared(note.FieldUpdatedAt) { - fields = append(fields, note.FieldUpdatedAt) + if m.FieldCleared(groupsettinghistory.FieldCreatedAt) { + fields = append(fields, groupsettinghistory.FieldCreatedAt) } - if m.FieldCleared(note.FieldCreatedBy) { - fields = append(fields, note.FieldCreatedBy) + if m.FieldCleared(groupsettinghistory.FieldUpdatedAt) { + fields = append(fields, groupsettinghistory.FieldUpdatedAt) } - if m.FieldCleared(note.FieldUpdatedBy) { - fields = append(fields, note.FieldUpdatedBy) + if m.FieldCleared(groupsettinghistory.FieldCreatedBy) { + fields = append(fields, groupsettinghistory.FieldCreatedBy) } - if m.FieldCleared(note.FieldDeletedAt) { - fields = append(fields, note.FieldDeletedAt) + if m.FieldCleared(groupsettinghistory.FieldUpdatedBy) { + fields = append(fields, groupsettinghistory.FieldUpdatedBy) } - if m.FieldCleared(note.FieldDeletedBy) { - fields = append(fields, note.FieldDeletedBy) + if m.FieldCleared(groupsettinghistory.FieldTags) { + fields = append(fields, groupsettinghistory.FieldTags) } - if m.FieldCleared(note.FieldTags) { - fields = append(fields, note.FieldTags) + if m.FieldCleared(groupsettinghistory.FieldDeletedAt) { + fields = append(fields, groupsettinghistory.FieldDeletedAt) } - if m.FieldCleared(note.FieldOwnerID) { - fields = append(fields, note.FieldOwnerID) + if m.FieldCleared(groupsettinghistory.FieldDeletedBy) { + fields = append(fields, groupsettinghistory.FieldDeletedBy) + } + if m.FieldCleared(groupsettinghistory.FieldSyncToSlack) { + fields = append(fields, groupsettinghistory.FieldSyncToSlack) + } + if m.FieldCleared(groupsettinghistory.FieldSyncToGithub) { + fields = append(fields, groupsettinghistory.FieldSyncToGithub) + } + if m.FieldCleared(groupsettinghistory.FieldGroupID) { + fields = append(fields, groupsettinghistory.FieldGroupID) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *NoteMutation) FieldCleared(name string) bool { +func (m *GroupSettingHistoryMutation) 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 *NoteMutation) ClearField(name string) error { +func (m *GroupSettingHistoryMutation) ClearField(name string) error { switch name { - case note.FieldCreatedAt: + case groupsettinghistory.FieldRef: + m.ClearRef() + return nil + case groupsettinghistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case note.FieldUpdatedAt: + case groupsettinghistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case note.FieldCreatedBy: + case groupsettinghistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case note.FieldUpdatedBy: + case groupsettinghistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case note.FieldDeletedAt: + case groupsettinghistory.FieldTags: + m.ClearTags() + return nil + case groupsettinghistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case note.FieldDeletedBy: + case groupsettinghistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case note.FieldTags: - m.ClearTags() + case groupsettinghistory.FieldSyncToSlack: + m.ClearSyncToSlack() return nil - case note.FieldOwnerID: - m.ClearOwnerID() + case groupsettinghistory.FieldSyncToGithub: + m.ClearSyncToGithub() + return nil + case groupsettinghistory.FieldGroupID: + m.ClearGroupID() return nil } - return fmt.Errorf("unknown Note nullable field %s", name) + return fmt.Errorf("unknown GroupSettingHistory 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 *NoteMutation) ResetField(name string) error { +func (m *GroupSettingHistoryMutation) ResetField(name string) error { switch name { - case note.FieldCreatedAt: + case groupsettinghistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case groupsettinghistory.FieldRef: + m.ResetRef() + return nil + case groupsettinghistory.FieldOperation: + m.ResetOperation() + return nil + case groupsettinghistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case note.FieldUpdatedAt: + case groupsettinghistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case note.FieldCreatedBy: + case groupsettinghistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case note.FieldUpdatedBy: + case groupsettinghistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case note.FieldMappingID: + case groupsettinghistory.FieldMappingID: m.ResetMappingID() return nil - case note.FieldDeletedAt: + case groupsettinghistory.FieldTags: + m.ResetTags() + return nil + case groupsettinghistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case note.FieldDeletedBy: + case groupsettinghistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case note.FieldTags: - m.ResetTags() + case groupsettinghistory.FieldVisibility: + m.ResetVisibility() return nil - case note.FieldOwnerID: - m.ResetOwnerID() + case groupsettinghistory.FieldJoinPolicy: + m.ResetJoinPolicy() return nil - case note.FieldText: - m.ResetText() + case groupsettinghistory.FieldSyncToSlack: + m.ResetSyncToSlack() + return nil + case groupsettinghistory.FieldSyncToGithub: + m.ResetSyncToGithub() + return nil + case groupsettinghistory.FieldGroupID: + m.ResetGroupID() return nil } - return fmt.Errorf("unknown Note field %s", name) + return fmt.Errorf("unknown GroupSettingHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *NoteMutation) AddedEdges() []string { - edges := make([]string, 0, 2) - if m.owner != nil { - edges = append(edges, note.EdgeOwner) - } - if m.entity != nil { - edges = append(edges, note.EdgeEntity) - } +func (m *GroupSettingHistoryMutation) 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 *NoteMutation) AddedIDs(name string) []ent.Value { - switch name { - case note.EdgeOwner: - if id := m.owner; id != nil { - return []ent.Value{*id} - } - case note.EdgeEntity: - if id := m.entity; id != nil { - return []ent.Value{*id} - } - } +func (m *GroupSettingHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *NoteMutation) RemovedEdges() []string { - edges := make([]string, 0, 2) +func (m *GroupSettingHistoryMutation) 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 *NoteMutation) RemovedIDs(name string) []ent.Value { +func (m *GroupSettingHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *NoteMutation) ClearedEdges() []string { - edges := make([]string, 0, 2) - if m.clearedowner { - edges = append(edges, note.EdgeOwner) - } - if m.clearedentity { - edges = append(edges, note.EdgeEntity) - } +func (m *GroupSettingHistoryMutation) 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 *NoteMutation) EdgeCleared(name string) bool { - switch name { - case note.EdgeOwner: - return m.clearedowner - case note.EdgeEntity: - return m.clearedentity - } +func (m *GroupSettingHistoryMutation) 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 *NoteMutation) ClearEdge(name string) error { - switch name { - case note.EdgeOwner: - m.ClearOwner() +func (m *GroupSettingHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown GroupSettingHistory 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 *GroupSettingHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown GroupSettingHistory edge %s", name) +} + +// HushMutation represents an operation that mutates the Hush nodes in the graph. +type HushMutation struct { + config + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + deleted_at *time.Time + deleted_by *string + name *string + description *string + kind *string + secret_name *string + secret_value *string + clearedFields map[string]struct{} + integrations map[string]struct{} + removedintegrations map[string]struct{} + clearedintegrations bool + organization map[string]struct{} + removedorganization map[string]struct{} + clearedorganization bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + done bool + oldValue func(context.Context) (*Hush, error) + predicates []predicate.Hush +} + +var _ ent.Mutation = (*HushMutation)(nil) + +// hushOption allows management of the mutation configuration using functional options. +type hushOption func(*HushMutation) + +// newHushMutation creates new mutation for the Hush entity. +func newHushMutation(c config, op Op, opts ...hushOption) *HushMutation { + m := &HushMutation{ + config: c, + op: op, + typ: TypeHush, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withHushID sets the ID field of the mutation. +func withHushID(id string) hushOption { + return func(m *HushMutation) { + var ( + err error + once sync.Once + value *Hush + ) + m.oldValue = func(ctx context.Context) (*Hush, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().Hush.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withHush sets the old Hush of the mutation. +func withHush(node *Hush) hushOption { + return func(m *HushMutation) { + m.oldValue = func(context.Context) (*Hush, 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 HushMutation) 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 HushMutation) 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 Hush entities. +func (m *HushMutation) 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 *HushMutation) 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 *HushMutation) 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().Hush.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 *HushMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *HushMutation) 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 Hush entity. +// If the Hush 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 *HushMutation) 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 *HushMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[hush.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *HushMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[hush.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *HushMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, hush.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *HushMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *HushMutation) 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 Hush entity. +// If the Hush 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 *HushMutation) 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 *HushMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[hush.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *HushMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[hush.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *HushMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, hush.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *HushMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *HushMutation) 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 Hush entity. +// If the Hush 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 *HushMutation) 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 *HushMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[hush.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *HushMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[hush.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *HushMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, hush.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *HushMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *HushMutation) 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 Hush entity. +// If the Hush 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 *HushMutation) 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 *HushMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[hush.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *HushMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[hush.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *HushMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, hush.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *HushMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *HushMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the Hush entity. +// If the Hush 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 *HushMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *HushMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *HushMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *HushMutation) 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 Hush entity. +// If the Hush 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 *HushMutation) 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 *HushMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[hush.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *HushMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[hush.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *HushMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, hush.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *HushMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *HushMutation) 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 Hush entity. +// If the Hush 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 *HushMutation) 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 *HushMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[hush.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *HushMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[hush.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *HushMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, hush.FieldDeletedBy) +} + +// SetName sets the "name" field. +func (m *HushMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *HushMutation) 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 Hush entity. +// If the Hush 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 *HushMutation) 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 *HushMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *HushMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *HushMutation) 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 Hush entity. +// If the Hush 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 *HushMutation) 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 *HushMutation) ClearDescription() { + m.description = nil + m.clearedFields[hush.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *HushMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[hush.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *HushMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, hush.FieldDescription) +} + +// SetKind sets the "kind" field. +func (m *HushMutation) SetKind(s string) { + m.kind = &s +} + +// Kind returns the value of the "kind" field in the mutation. +func (m *HushMutation) Kind() (r string, exists bool) { + v := m.kind + if v == nil { + return + } + return *v, true +} + +// OldKind returns the old "kind" field's value of the Hush entity. +// If the Hush 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 *HushMutation) OldKind(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldKind is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldKind requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldKind: %w", err) + } + return oldValue.Kind, nil +} + +// ClearKind clears the value of the "kind" field. +func (m *HushMutation) ClearKind() { + m.kind = nil + m.clearedFields[hush.FieldKind] = struct{}{} +} + +// KindCleared returns if the "kind" field was cleared in this mutation. +func (m *HushMutation) KindCleared() bool { + _, ok := m.clearedFields[hush.FieldKind] + return ok +} + +// ResetKind resets all changes to the "kind" field. +func (m *HushMutation) ResetKind() { + m.kind = nil + delete(m.clearedFields, hush.FieldKind) +} + +// SetSecretName sets the "secret_name" field. +func (m *HushMutation) SetSecretName(s string) { + m.secret_name = &s +} + +// SecretName returns the value of the "secret_name" field in the mutation. +func (m *HushMutation) SecretName() (r string, exists bool) { + v := m.secret_name + if v == nil { + return + } + return *v, true +} + +// OldSecretName returns the old "secret_name" field's value of the Hush entity. +// If the Hush 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 *HushMutation) OldSecretName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSecretName is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSecretName requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSecretName: %w", err) + } + return oldValue.SecretName, nil +} + +// ClearSecretName clears the value of the "secret_name" field. +func (m *HushMutation) ClearSecretName() { + m.secret_name = nil + m.clearedFields[hush.FieldSecretName] = struct{}{} +} + +// SecretNameCleared returns if the "secret_name" field was cleared in this mutation. +func (m *HushMutation) SecretNameCleared() bool { + _, ok := m.clearedFields[hush.FieldSecretName] + return ok +} + +// ResetSecretName resets all changes to the "secret_name" field. +func (m *HushMutation) ResetSecretName() { + m.secret_name = nil + delete(m.clearedFields, hush.FieldSecretName) +} + +// SetSecretValue sets the "secret_value" field. +func (m *HushMutation) SetSecretValue(s string) { + m.secret_value = &s +} + +// SecretValue returns the value of the "secret_value" field in the mutation. +func (m *HushMutation) SecretValue() (r string, exists bool) { + v := m.secret_value + if v == nil { + return + } + return *v, true +} + +// OldSecretValue returns the old "secret_value" field's value of the Hush entity. +// If the Hush 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 *HushMutation) OldSecretValue(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSecretValue is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSecretValue requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSecretValue: %w", err) + } + return oldValue.SecretValue, nil +} + +// ClearSecretValue clears the value of the "secret_value" field. +func (m *HushMutation) ClearSecretValue() { + m.secret_value = nil + m.clearedFields[hush.FieldSecretValue] = struct{}{} +} + +// SecretValueCleared returns if the "secret_value" field was cleared in this mutation. +func (m *HushMutation) SecretValueCleared() bool { + _, ok := m.clearedFields[hush.FieldSecretValue] + return ok +} + +// ResetSecretValue resets all changes to the "secret_value" field. +func (m *HushMutation) ResetSecretValue() { + m.secret_value = nil + delete(m.clearedFields, hush.FieldSecretValue) +} + +// AddIntegrationIDs adds the "integrations" edge to the Integration entity by ids. +func (m *HushMutation) AddIntegrationIDs(ids ...string) { + if m.integrations == nil { + m.integrations = make(map[string]struct{}) + } + for i := range ids { + m.integrations[ids[i]] = struct{}{} + } +} + +// ClearIntegrations clears the "integrations" edge to the Integration entity. +func (m *HushMutation) ClearIntegrations() { + m.clearedintegrations = true +} + +// IntegrationsCleared reports if the "integrations" edge to the Integration entity was cleared. +func (m *HushMutation) IntegrationsCleared() bool { + return m.clearedintegrations +} + +// RemoveIntegrationIDs removes the "integrations" edge to the Integration entity by IDs. +func (m *HushMutation) RemoveIntegrationIDs(ids ...string) { + if m.removedintegrations == nil { + m.removedintegrations = make(map[string]struct{}) + } + for i := range ids { + delete(m.integrations, ids[i]) + m.removedintegrations[ids[i]] = struct{}{} + } +} + +// RemovedIntegrations returns the removed IDs of the "integrations" edge to the Integration entity. +func (m *HushMutation) RemovedIntegrationsIDs() (ids []string) { + for id := range m.removedintegrations { + ids = append(ids, id) + } + return +} + +// IntegrationsIDs returns the "integrations" edge IDs in the mutation. +func (m *HushMutation) IntegrationsIDs() (ids []string) { + for id := range m.integrations { + ids = append(ids, id) + } + return +} + +// ResetIntegrations resets all changes to the "integrations" edge. +func (m *HushMutation) ResetIntegrations() { + m.integrations = nil + m.clearedintegrations = false + m.removedintegrations = nil +} + +// AddOrganizationIDs adds the "organization" edge to the Organization entity by ids. +func (m *HushMutation) AddOrganizationIDs(ids ...string) { + if m.organization == nil { + m.organization = make(map[string]struct{}) + } + for i := range ids { + m.organization[ids[i]] = struct{}{} + } +} + +// ClearOrganization clears the "organization" edge to the Organization entity. +func (m *HushMutation) ClearOrganization() { + m.clearedorganization = true +} + +// OrganizationCleared reports if the "organization" edge to the Organization entity was cleared. +func (m *HushMutation) OrganizationCleared() bool { + return m.clearedorganization +} + +// RemoveOrganizationIDs removes the "organization" edge to the Organization entity by IDs. +func (m *HushMutation) RemoveOrganizationIDs(ids ...string) { + if m.removedorganization == nil { + m.removedorganization = make(map[string]struct{}) + } + for i := range ids { + delete(m.organization, ids[i]) + m.removedorganization[ids[i]] = struct{}{} + } +} + +// RemovedOrganization returns the removed IDs of the "organization" edge to the Organization entity. +func (m *HushMutation) RemovedOrganizationIDs() (ids []string) { + for id := range m.removedorganization { + ids = append(ids, id) + } + return +} + +// OrganizationIDs returns the "organization" edge IDs in the mutation. +func (m *HushMutation) OrganizationIDs() (ids []string) { + for id := range m.organization { + ids = append(ids, id) + } + return +} + +// ResetOrganization resets all changes to the "organization" edge. +func (m *HushMutation) ResetOrganization() { + m.organization = nil + m.clearedorganization = false + m.removedorganization = nil +} + +// AddEventIDs adds the "events" edge to the Event entity by ids. +func (m *HushMutation) AddEventIDs(ids ...string) { + if m.events == nil { + m.events = make(map[string]struct{}) + } + for i := range ids { + m.events[ids[i]] = struct{}{} + } +} + +// ClearEvents clears the "events" edge to the Event entity. +func (m *HushMutation) ClearEvents() { + m.clearedevents = true +} + +// EventsCleared reports if the "events" edge to the Event entity was cleared. +func (m *HushMutation) EventsCleared() bool { + return m.clearedevents +} + +// RemoveEventIDs removes the "events" edge to the Event entity by IDs. +func (m *HushMutation) RemoveEventIDs(ids ...string) { + if m.removedevents == nil { + m.removedevents = make(map[string]struct{}) + } + for i := range ids { + delete(m.events, ids[i]) + m.removedevents[ids[i]] = struct{}{} + } +} + +// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. +func (m *HushMutation) RemovedEventsIDs() (ids []string) { + for id := range m.removedevents { + ids = append(ids, id) + } + return +} + +// EventsIDs returns the "events" edge IDs in the mutation. +func (m *HushMutation) EventsIDs() (ids []string) { + for id := range m.events { + ids = append(ids, id) + } + return +} + +// ResetEvents resets all changes to the "events" edge. +func (m *HushMutation) ResetEvents() { + m.events = nil + m.clearedevents = false + m.removedevents = nil +} + +// Where appends a list predicates to the HushMutation builder. +func (m *HushMutation) Where(ps ...predicate.Hush) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the HushMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *HushMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Hush, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *HushMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *HushMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (Hush). +func (m *HushMutation) 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 *HushMutation) Fields() []string { + fields := make([]string, 0, 12) + if m.created_at != nil { + fields = append(fields, hush.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, hush.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, hush.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, hush.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, hush.FieldMappingID) + } + if m.deleted_at != nil { + fields = append(fields, hush.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, hush.FieldDeletedBy) + } + if m.name != nil { + fields = append(fields, hush.FieldName) + } + if m.description != nil { + fields = append(fields, hush.FieldDescription) + } + if m.kind != nil { + fields = append(fields, hush.FieldKind) + } + if m.secret_name != nil { + fields = append(fields, hush.FieldSecretName) + } + if m.secret_value != nil { + fields = append(fields, hush.FieldSecretValue) + } + 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 *HushMutation) Field(name string) (ent.Value, bool) { + switch name { + case hush.FieldCreatedAt: + return m.CreatedAt() + case hush.FieldUpdatedAt: + return m.UpdatedAt() + case hush.FieldCreatedBy: + return m.CreatedBy() + case hush.FieldUpdatedBy: + return m.UpdatedBy() + case hush.FieldMappingID: + return m.MappingID() + case hush.FieldDeletedAt: + return m.DeletedAt() + case hush.FieldDeletedBy: + return m.DeletedBy() + case hush.FieldName: + return m.Name() + case hush.FieldDescription: + return m.Description() + case hush.FieldKind: + return m.Kind() + case hush.FieldSecretName: + return m.SecretName() + case hush.FieldSecretValue: + return m.SecretValue() + } + 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 *HushMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case hush.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case hush.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case hush.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case hush.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case hush.FieldMappingID: + return m.OldMappingID(ctx) + case hush.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case hush.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case hush.FieldName: + return m.OldName(ctx) + case hush.FieldDescription: + return m.OldDescription(ctx) + case hush.FieldKind: + return m.OldKind(ctx) + case hush.FieldSecretName: + return m.OldSecretName(ctx) + case hush.FieldSecretValue: + return m.OldSecretValue(ctx) + } + return nil, fmt.Errorf("unknown Hush 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 *HushMutation) SetField(name string, value ent.Value) error { + switch name { + case hush.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 hush.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 hush.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case hush.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case hush.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case hush.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 hush.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case hush.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case hush.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case hush.FieldKind: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetKind(v) + return nil + case hush.FieldSecretName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSecretName(v) + return nil + case hush.FieldSecretValue: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSecretValue(v) + return nil + } + return fmt.Errorf("unknown Hush field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *HushMutation) 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 *HushMutation) 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 *HushMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown Hush numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *HushMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(hush.FieldCreatedAt) { + fields = append(fields, hush.FieldCreatedAt) + } + if m.FieldCleared(hush.FieldUpdatedAt) { + fields = append(fields, hush.FieldUpdatedAt) + } + if m.FieldCleared(hush.FieldCreatedBy) { + fields = append(fields, hush.FieldCreatedBy) + } + if m.FieldCleared(hush.FieldUpdatedBy) { + fields = append(fields, hush.FieldUpdatedBy) + } + if m.FieldCleared(hush.FieldDeletedAt) { + fields = append(fields, hush.FieldDeletedAt) + } + if m.FieldCleared(hush.FieldDeletedBy) { + fields = append(fields, hush.FieldDeletedBy) + } + if m.FieldCleared(hush.FieldDescription) { + fields = append(fields, hush.FieldDescription) + } + if m.FieldCleared(hush.FieldKind) { + fields = append(fields, hush.FieldKind) + } + if m.FieldCleared(hush.FieldSecretName) { + fields = append(fields, hush.FieldSecretName) + } + if m.FieldCleared(hush.FieldSecretValue) { + fields = append(fields, hush.FieldSecretValue) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *HushMutation) 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 *HushMutation) ClearField(name string) error { + switch name { + case hush.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case hush.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case hush.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case hush.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case hush.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case hush.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case hush.FieldDescription: + m.ClearDescription() + return nil + case hush.FieldKind: + m.ClearKind() + return nil + case hush.FieldSecretName: + m.ClearSecretName() + return nil + case hush.FieldSecretValue: + m.ClearSecretValue() + return nil + } + return fmt.Errorf("unknown Hush 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 *HushMutation) ResetField(name string) error { + switch name { + case hush.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case hush.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case hush.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case hush.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case hush.FieldMappingID: + m.ResetMappingID() + return nil + case hush.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case hush.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case hush.FieldName: + m.ResetName() + return nil + case hush.FieldDescription: + m.ResetDescription() + return nil + case hush.FieldKind: + m.ResetKind() + return nil + case hush.FieldSecretName: + m.ResetSecretName() + return nil + case hush.FieldSecretValue: + m.ResetSecretValue() + return nil + } + return fmt.Errorf("unknown Hush field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *HushMutation) AddedEdges() []string { + edges := make([]string, 0, 3) + if m.integrations != nil { + edges = append(edges, hush.EdgeIntegrations) + } + if m.organization != nil { + edges = append(edges, hush.EdgeOrganization) + } + if m.events != nil { + edges = append(edges, hush.EdgeEvents) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *HushMutation) AddedIDs(name string) []ent.Value { + switch name { + case hush.EdgeIntegrations: + ids := make([]ent.Value, 0, len(m.integrations)) + for id := range m.integrations { + ids = append(ids, id) + } + return ids + case hush.EdgeOrganization: + ids := make([]ent.Value, 0, len(m.organization)) + for id := range m.organization { + ids = append(ids, id) + } + return ids + case hush.EdgeEvents: + ids := make([]ent.Value, 0, len(m.events)) + for id := range m.events { + ids = append(ids, id) + } + return ids + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *HushMutation) RemovedEdges() []string { + edges := make([]string, 0, 3) + if m.removedintegrations != nil { + edges = append(edges, hush.EdgeIntegrations) + } + if m.removedorganization != nil { + edges = append(edges, hush.EdgeOrganization) + } + if m.removedevents != nil { + edges = append(edges, hush.EdgeEvents) + } + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *HushMutation) RemovedIDs(name string) []ent.Value { + switch name { + case hush.EdgeIntegrations: + ids := make([]ent.Value, 0, len(m.removedintegrations)) + for id := range m.removedintegrations { + ids = append(ids, id) + } + return ids + case hush.EdgeOrganization: + ids := make([]ent.Value, 0, len(m.removedorganization)) + for id := range m.removedorganization { + ids = append(ids, id) + } + return ids + case hush.EdgeEvents: + ids := make([]ent.Value, 0, len(m.removedevents)) + for id := range m.removedevents { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *HushMutation) ClearedEdges() []string { + edges := make([]string, 0, 3) + if m.clearedintegrations { + edges = append(edges, hush.EdgeIntegrations) + } + if m.clearedorganization { + edges = append(edges, hush.EdgeOrganization) + } + if m.clearedevents { + edges = append(edges, hush.EdgeEvents) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *HushMutation) EdgeCleared(name string) bool { + switch name { + case hush.EdgeIntegrations: + return m.clearedintegrations + case hush.EdgeOrganization: + return m.clearedorganization + case hush.EdgeEvents: + return m.clearedevents + } + 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 *HushMutation) ClearEdge(name string) error { + switch name { + } + return fmt.Errorf("unknown Hush 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 *HushMutation) ResetEdge(name string) error { + switch name { + case hush.EdgeIntegrations: + m.ResetIntegrations() + return nil + case hush.EdgeOrganization: + m.ResetOrganization() + return nil + case hush.EdgeEvents: + m.ResetEvents() + return nil + } + return fmt.Errorf("unknown Hush edge %s", name) +} + +// HushHistoryMutation represents an operation that mutates the HushHistory nodes in the graph. +type HushHistoryMutation 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 + mapping_id *string + deleted_at *time.Time + deleted_by *string + name *string + description *string + kind *string + secret_name *string + secret_value *string + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*HushHistory, error) + predicates []predicate.HushHistory +} + +var _ ent.Mutation = (*HushHistoryMutation)(nil) + +// hushhistoryOption allows management of the mutation configuration using functional options. +type hushhistoryOption func(*HushHistoryMutation) + +// newHushHistoryMutation creates new mutation for the HushHistory entity. +func newHushHistoryMutation(c config, op Op, opts ...hushhistoryOption) *HushHistoryMutation { + m := &HushHistoryMutation{ + config: c, + op: op, + typ: TypeHushHistory, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withHushHistoryID sets the ID field of the mutation. +func withHushHistoryID(id string) hushhistoryOption { + return func(m *HushHistoryMutation) { + var ( + err error + once sync.Once + value *HushHistory + ) + m.oldValue = func(ctx context.Context) (*HushHistory, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().HushHistory.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withHushHistory sets the old HushHistory of the mutation. +func withHushHistory(node *HushHistory) hushhistoryOption { + return func(m *HushHistoryMutation) { + m.oldValue = func(context.Context) (*HushHistory, 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 HushHistoryMutation) 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 HushHistoryMutation) 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 HushHistory entities. +func (m *HushHistoryMutation) 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 *HushHistoryMutation) 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 *HushHistoryMutation) 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().HushHistory.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 *HushHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *HushHistoryMutation) 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 HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) 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 *HushHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *HushHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *HushHistoryMutation) 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 HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) 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 *HushHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[hushhistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *HushHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[hushhistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *HushHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, hushhistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *HushHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *HushHistoryMutation) 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 HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) 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 *HushHistoryMutation) ResetOperation() { + m.operation = nil +} + +// SetCreatedAt sets the "created_at" field. +func (m *HushHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *HushHistoryMutation) 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 HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) 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 *HushHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[hushhistory.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *HushHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[hushhistory.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *HushHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, hushhistory.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *HushHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *HushHistoryMutation) 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 HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) 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 *HushHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[hushhistory.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *HushHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[hushhistory.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *HushHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, hushhistory.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *HushHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *HushHistoryMutation) 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 HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) 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 *HushHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[hushhistory.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *HushHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[hushhistory.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *HushHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, hushhistory.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *HushHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *HushHistoryMutation) 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 HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) 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 *HushHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[hushhistory.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *HushHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[hushhistory.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *HushHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, hushhistory.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *HushHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *HushHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *HushHistoryMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *HushHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *HushHistoryMutation) 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 HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) 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 *HushHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[hushhistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *HushHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[hushhistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *HushHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, hushhistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *HushHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *HushHistoryMutation) 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 HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) 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 *HushHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[hushhistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *HushHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[hushhistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *HushHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, hushhistory.FieldDeletedBy) +} + +// SetName sets the "name" field. +func (m *HushHistoryMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *HushHistoryMutation) 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 HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) 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 *HushHistoryMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *HushHistoryMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *HushHistoryMutation) 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 HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) 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 *HushHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[hushhistory.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *HushHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[hushhistory.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *HushHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, hushhistory.FieldDescription) +} + +// SetKind sets the "kind" field. +func (m *HushHistoryMutation) SetKind(s string) { + m.kind = &s +} + +// Kind returns the value of the "kind" field in the mutation. +func (m *HushHistoryMutation) Kind() (r string, exists bool) { + v := m.kind + if v == nil { + return + } + return *v, true +} + +// OldKind returns the old "kind" field's value of the HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) OldKind(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldKind is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldKind requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldKind: %w", err) + } + return oldValue.Kind, nil +} + +// ClearKind clears the value of the "kind" field. +func (m *HushHistoryMutation) ClearKind() { + m.kind = nil + m.clearedFields[hushhistory.FieldKind] = struct{}{} +} + +// KindCleared returns if the "kind" field was cleared in this mutation. +func (m *HushHistoryMutation) KindCleared() bool { + _, ok := m.clearedFields[hushhistory.FieldKind] + return ok +} + +// ResetKind resets all changes to the "kind" field. +func (m *HushHistoryMutation) ResetKind() { + m.kind = nil + delete(m.clearedFields, hushhistory.FieldKind) +} + +// SetSecretName sets the "secret_name" field. +func (m *HushHistoryMutation) SetSecretName(s string) { + m.secret_name = &s +} + +// SecretName returns the value of the "secret_name" field in the mutation. +func (m *HushHistoryMutation) SecretName() (r string, exists bool) { + v := m.secret_name + if v == nil { + return + } + return *v, true +} + +// OldSecretName returns the old "secret_name" field's value of the HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) OldSecretName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSecretName is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSecretName requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSecretName: %w", err) + } + return oldValue.SecretName, nil +} + +// ClearSecretName clears the value of the "secret_name" field. +func (m *HushHistoryMutation) ClearSecretName() { + m.secret_name = nil + m.clearedFields[hushhistory.FieldSecretName] = struct{}{} +} + +// SecretNameCleared returns if the "secret_name" field was cleared in this mutation. +func (m *HushHistoryMutation) SecretNameCleared() bool { + _, ok := m.clearedFields[hushhistory.FieldSecretName] + return ok +} + +// ResetSecretName resets all changes to the "secret_name" field. +func (m *HushHistoryMutation) ResetSecretName() { + m.secret_name = nil + delete(m.clearedFields, hushhistory.FieldSecretName) +} + +// SetSecretValue sets the "secret_value" field. +func (m *HushHistoryMutation) SetSecretValue(s string) { + m.secret_value = &s +} + +// SecretValue returns the value of the "secret_value" field in the mutation. +func (m *HushHistoryMutation) SecretValue() (r string, exists bool) { + v := m.secret_value + if v == nil { + return + } + return *v, true +} + +// OldSecretValue returns the old "secret_value" field's value of the HushHistory entity. +// If the HushHistory 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 *HushHistoryMutation) OldSecretValue(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSecretValue is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSecretValue requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSecretValue: %w", err) + } + return oldValue.SecretValue, nil +} + +// ClearSecretValue clears the value of the "secret_value" field. +func (m *HushHistoryMutation) ClearSecretValue() { + m.secret_value = nil + m.clearedFields[hushhistory.FieldSecretValue] = struct{}{} +} + +// SecretValueCleared returns if the "secret_value" field was cleared in this mutation. +func (m *HushHistoryMutation) SecretValueCleared() bool { + _, ok := m.clearedFields[hushhistory.FieldSecretValue] + return ok +} + +// ResetSecretValue resets all changes to the "secret_value" field. +func (m *HushHistoryMutation) ResetSecretValue() { + m.secret_value = nil + delete(m.clearedFields, hushhistory.FieldSecretValue) +} + +// Where appends a list predicates to the HushHistoryMutation builder. +func (m *HushHistoryMutation) Where(ps ...predicate.HushHistory) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the HushHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *HushHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.HushHistory, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *HushHistoryMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *HushHistoryMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (HushHistory). +func (m *HushHistoryMutation) 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 *HushHistoryMutation) Fields() []string { + fields := make([]string, 0, 15) + if m.history_time != nil { + fields = append(fields, hushhistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, hushhistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, hushhistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, hushhistory.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, hushhistory.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, hushhistory.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, hushhistory.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, hushhistory.FieldMappingID) + } + if m.deleted_at != nil { + fields = append(fields, hushhistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, hushhistory.FieldDeletedBy) + } + if m.name != nil { + fields = append(fields, hushhistory.FieldName) + } + if m.description != nil { + fields = append(fields, hushhistory.FieldDescription) + } + if m.kind != nil { + fields = append(fields, hushhistory.FieldKind) + } + if m.secret_name != nil { + fields = append(fields, hushhistory.FieldSecretName) + } + if m.secret_value != nil { + fields = append(fields, hushhistory.FieldSecretValue) + } + 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 *HushHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case hushhistory.FieldHistoryTime: + return m.HistoryTime() + case hushhistory.FieldRef: + return m.Ref() + case hushhistory.FieldOperation: + return m.Operation() + case hushhistory.FieldCreatedAt: + return m.CreatedAt() + case hushhistory.FieldUpdatedAt: + return m.UpdatedAt() + case hushhistory.FieldCreatedBy: + return m.CreatedBy() + case hushhistory.FieldUpdatedBy: + return m.UpdatedBy() + case hushhistory.FieldMappingID: + return m.MappingID() + case hushhistory.FieldDeletedAt: + return m.DeletedAt() + case hushhistory.FieldDeletedBy: + return m.DeletedBy() + case hushhistory.FieldName: + return m.Name() + case hushhistory.FieldDescription: + return m.Description() + case hushhistory.FieldKind: + return m.Kind() + case hushhistory.FieldSecretName: + return m.SecretName() + case hushhistory.FieldSecretValue: + return m.SecretValue() + } + 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 *HushHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case hushhistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case hushhistory.FieldRef: + return m.OldRef(ctx) + case hushhistory.FieldOperation: + return m.OldOperation(ctx) + case hushhistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case hushhistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case hushhistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case hushhistory.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case hushhistory.FieldMappingID: + return m.OldMappingID(ctx) + case hushhistory.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case hushhistory.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case hushhistory.FieldName: + return m.OldName(ctx) + case hushhistory.FieldDescription: + return m.OldDescription(ctx) + case hushhistory.FieldKind: + return m.OldKind(ctx) + case hushhistory.FieldSecretName: + return m.OldSecretName(ctx) + case hushhistory.FieldSecretValue: + return m.OldSecretValue(ctx) + } + return nil, fmt.Errorf("unknown HushHistory 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 *HushHistoryMutation) SetField(name string, value ent.Value) error { + switch name { + case hushhistory.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 hushhistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case hushhistory.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 hushhistory.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 hushhistory.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 hushhistory.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case hushhistory.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case hushhistory.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case hushhistory.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 hushhistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case hushhistory.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case hushhistory.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case hushhistory.FieldKind: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetKind(v) + return nil + case hushhistory.FieldSecretName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSecretName(v) + return nil + case hushhistory.FieldSecretValue: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSecretValue(v) + return nil + } + return fmt.Errorf("unknown HushHistory field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *HushHistoryMutation) 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 *HushHistoryMutation) 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 *HushHistoryMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown HushHistory numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *HushHistoryMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(hushhistory.FieldRef) { + fields = append(fields, hushhistory.FieldRef) + } + if m.FieldCleared(hushhistory.FieldCreatedAt) { + fields = append(fields, hushhistory.FieldCreatedAt) + } + if m.FieldCleared(hushhistory.FieldUpdatedAt) { + fields = append(fields, hushhistory.FieldUpdatedAt) + } + if m.FieldCleared(hushhistory.FieldCreatedBy) { + fields = append(fields, hushhistory.FieldCreatedBy) + } + if m.FieldCleared(hushhistory.FieldUpdatedBy) { + fields = append(fields, hushhistory.FieldUpdatedBy) + } + if m.FieldCleared(hushhistory.FieldDeletedAt) { + fields = append(fields, hushhistory.FieldDeletedAt) + } + if m.FieldCleared(hushhistory.FieldDeletedBy) { + fields = append(fields, hushhistory.FieldDeletedBy) + } + if m.FieldCleared(hushhistory.FieldDescription) { + fields = append(fields, hushhistory.FieldDescription) + } + if m.FieldCleared(hushhistory.FieldKind) { + fields = append(fields, hushhistory.FieldKind) + } + if m.FieldCleared(hushhistory.FieldSecretName) { + fields = append(fields, hushhistory.FieldSecretName) + } + if m.FieldCleared(hushhistory.FieldSecretValue) { + fields = append(fields, hushhistory.FieldSecretValue) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *HushHistoryMutation) 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 *HushHistoryMutation) ClearField(name string) error { + switch name { + case hushhistory.FieldRef: + m.ClearRef() + return nil + case hushhistory.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case hushhistory.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case hushhistory.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case hushhistory.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case hushhistory.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case hushhistory.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case hushhistory.FieldDescription: + m.ClearDescription() + return nil + case hushhistory.FieldKind: + m.ClearKind() + return nil + case hushhistory.FieldSecretName: + m.ClearSecretName() + return nil + case hushhistory.FieldSecretValue: + m.ClearSecretValue() + return nil + } + return fmt.Errorf("unknown HushHistory 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 *HushHistoryMutation) ResetField(name string) error { + switch name { + case hushhistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case hushhistory.FieldRef: + m.ResetRef() + return nil + case hushhistory.FieldOperation: + m.ResetOperation() + return nil + case hushhistory.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case hushhistory.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case hushhistory.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case hushhistory.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case hushhistory.FieldMappingID: + m.ResetMappingID() + return nil + case hushhistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case hushhistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case hushhistory.FieldName: + m.ResetName() + return nil + case hushhistory.FieldDescription: + m.ResetDescription() + return nil + case hushhistory.FieldKind: + m.ResetKind() + return nil + case hushhistory.FieldSecretName: + m.ResetSecretName() + return nil + case hushhistory.FieldSecretValue: + m.ResetSecretValue() + return nil + } + return fmt.Errorf("unknown HushHistory field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *HushHistoryMutation) 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 *HushHistoryMutation) AddedIDs(name string) []ent.Value { + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *HushHistoryMutation) 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 *HushHistoryMutation) RemovedIDs(name string) []ent.Value { + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *HushHistoryMutation) 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 *HushHistoryMutation) 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 *HushHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown HushHistory 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 *HushHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown HushHistory edge %s", name) +} + +// IntegrationMutation represents an operation that mutates the Integration nodes in the graph. +type IntegrationMutation struct { + config + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + name *string + description *string + kind *string + clearedFields map[string]struct{} + owner *string + clearedowner bool + secrets map[string]struct{} + removedsecrets map[string]struct{} + clearedsecrets bool + oauth2tokens map[string]struct{} + removedoauth2tokens map[string]struct{} + clearedoauth2tokens bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + webhooks map[string]struct{} + removedwebhooks map[string]struct{} + clearedwebhooks bool + done bool + oldValue func(context.Context) (*Integration, error) + predicates []predicate.Integration +} + +var _ ent.Mutation = (*IntegrationMutation)(nil) + +// integrationOption allows management of the mutation configuration using functional options. +type integrationOption func(*IntegrationMutation) + +// newIntegrationMutation creates new mutation for the Integration entity. +func newIntegrationMutation(c config, op Op, opts ...integrationOption) *IntegrationMutation { + m := &IntegrationMutation{ + config: c, + op: op, + typ: TypeIntegration, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withIntegrationID sets the ID field of the mutation. +func withIntegrationID(id string) integrationOption { + return func(m *IntegrationMutation) { + var ( + err error + once sync.Once + value *Integration + ) + m.oldValue = func(ctx context.Context) (*Integration, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().Integration.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withIntegration sets the old Integration of the mutation. +func withIntegration(node *Integration) integrationOption { + return func(m *IntegrationMutation) { + m.oldValue = func(context.Context) (*Integration, 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 IntegrationMutation) 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 IntegrationMutation) 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 Integration entities. +func (m *IntegrationMutation) 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 *IntegrationMutation) 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 *IntegrationMutation) 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().Integration.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 *IntegrationMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *IntegrationMutation) 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 Integration entity. +// If the Integration 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 *IntegrationMutation) 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 *IntegrationMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[integration.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *IntegrationMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[integration.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *IntegrationMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, integration.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *IntegrationMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *IntegrationMutation) 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 Integration entity. +// If the Integration 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 *IntegrationMutation) 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 *IntegrationMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[integration.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *IntegrationMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[integration.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *IntegrationMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, integration.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *IntegrationMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *IntegrationMutation) 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 Integration entity. +// If the Integration 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 *IntegrationMutation) 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 *IntegrationMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[integration.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *IntegrationMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[integration.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *IntegrationMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, integration.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *IntegrationMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *IntegrationMutation) 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 Integration entity. +// If the Integration 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 *IntegrationMutation) 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 *IntegrationMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[integration.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *IntegrationMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[integration.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *IntegrationMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, integration.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *IntegrationMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *IntegrationMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the Integration entity. +// If the Integration 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 *IntegrationMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *IntegrationMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *IntegrationMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *IntegrationMutation) 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 Integration entity. +// If the Integration 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 *IntegrationMutation) 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 *IntegrationMutation) 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 *IntegrationMutation) 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 *IntegrationMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[integration.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *IntegrationMutation) TagsCleared() bool { + _, ok := m.clearedFields[integration.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *IntegrationMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, integration.FieldTags) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *IntegrationMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *IntegrationMutation) 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 Integration entity. +// If the Integration 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 *IntegrationMutation) 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 *IntegrationMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[integration.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *IntegrationMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[integration.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *IntegrationMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, integration.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *IntegrationMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *IntegrationMutation) 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 Integration entity. +// If the Integration 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 *IntegrationMutation) 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 *IntegrationMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[integration.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *IntegrationMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[integration.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *IntegrationMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, integration.FieldDeletedBy) +} + +// SetOwnerID sets the "owner_id" field. +func (m *IntegrationMutation) SetOwnerID(s string) { + m.owner = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *IntegrationMutation) 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 Integration entity. +// If the Integration 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 *IntegrationMutation) 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 *IntegrationMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[integration.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *IntegrationMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[integration.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *IntegrationMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, integration.FieldOwnerID) +} + +// SetName sets the "name" field. +func (m *IntegrationMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *IntegrationMutation) 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 Integration entity. +// If the Integration 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 *IntegrationMutation) 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 *IntegrationMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *IntegrationMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *IntegrationMutation) 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 Integration entity. +// If the Integration 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 *IntegrationMutation) 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 *IntegrationMutation) ClearDescription() { + m.description = nil + m.clearedFields[integration.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *IntegrationMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[integration.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *IntegrationMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, integration.FieldDescription) +} + +// SetKind sets the "kind" field. +func (m *IntegrationMutation) SetKind(s string) { + m.kind = &s +} + +// Kind returns the value of the "kind" field in the mutation. +func (m *IntegrationMutation) Kind() (r string, exists bool) { + v := m.kind + if v == nil { + return + } + return *v, true +} + +// OldKind returns the old "kind" field's value of the Integration entity. +// If the Integration 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 *IntegrationMutation) OldKind(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldKind is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldKind requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldKind: %w", err) + } + return oldValue.Kind, nil +} + +// ClearKind clears the value of the "kind" field. +func (m *IntegrationMutation) ClearKind() { + m.kind = nil + m.clearedFields[integration.FieldKind] = struct{}{} +} + +// KindCleared returns if the "kind" field was cleared in this mutation. +func (m *IntegrationMutation) KindCleared() bool { + _, ok := m.clearedFields[integration.FieldKind] + return ok +} + +// ResetKind resets all changes to the "kind" field. +func (m *IntegrationMutation) ResetKind() { + m.kind = nil + delete(m.clearedFields, integration.FieldKind) +} + +// ClearOwner clears the "owner" edge to the Organization entity. +func (m *IntegrationMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[integration.FieldOwnerID] = struct{}{} +} + +// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. +func (m *IntegrationMutation) 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 *IntegrationMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetOwner resets all changes to the "owner" edge. +func (m *IntegrationMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false +} + +// AddSecretIDs adds the "secrets" edge to the Hush entity by ids. +func (m *IntegrationMutation) AddSecretIDs(ids ...string) { + if m.secrets == nil { + m.secrets = make(map[string]struct{}) + } + for i := range ids { + m.secrets[ids[i]] = struct{}{} + } +} + +// ClearSecrets clears the "secrets" edge to the Hush entity. +func (m *IntegrationMutation) ClearSecrets() { + m.clearedsecrets = true +} + +// SecretsCleared reports if the "secrets" edge to the Hush entity was cleared. +func (m *IntegrationMutation) SecretsCleared() bool { + return m.clearedsecrets +} + +// RemoveSecretIDs removes the "secrets" edge to the Hush entity by IDs. +func (m *IntegrationMutation) RemoveSecretIDs(ids ...string) { + if m.removedsecrets == nil { + m.removedsecrets = make(map[string]struct{}) + } + for i := range ids { + delete(m.secrets, ids[i]) + m.removedsecrets[ids[i]] = struct{}{} + } +} + +// RemovedSecrets returns the removed IDs of the "secrets" edge to the Hush entity. +func (m *IntegrationMutation) RemovedSecretsIDs() (ids []string) { + for id := range m.removedsecrets { + ids = append(ids, id) + } + return +} + +// SecretsIDs returns the "secrets" edge IDs in the mutation. +func (m *IntegrationMutation) SecretsIDs() (ids []string) { + for id := range m.secrets { + ids = append(ids, id) + } + return +} + +// ResetSecrets resets all changes to the "secrets" edge. +func (m *IntegrationMutation) ResetSecrets() { + m.secrets = nil + m.clearedsecrets = false + m.removedsecrets = nil +} + +// AddOauth2tokenIDs adds the "oauth2tokens" edge to the OhAuthTooToken entity by ids. +func (m *IntegrationMutation) AddOauth2tokenIDs(ids ...string) { + if m.oauth2tokens == nil { + m.oauth2tokens = make(map[string]struct{}) + } + for i := range ids { + m.oauth2tokens[ids[i]] = struct{}{} + } +} + +// ClearOauth2tokens clears the "oauth2tokens" edge to the OhAuthTooToken entity. +func (m *IntegrationMutation) ClearOauth2tokens() { + m.clearedoauth2tokens = true +} + +// Oauth2tokensCleared reports if the "oauth2tokens" edge to the OhAuthTooToken entity was cleared. +func (m *IntegrationMutation) Oauth2tokensCleared() bool { + return m.clearedoauth2tokens +} + +// RemoveOauth2tokenIDs removes the "oauth2tokens" edge to the OhAuthTooToken entity by IDs. +func (m *IntegrationMutation) RemoveOauth2tokenIDs(ids ...string) { + if m.removedoauth2tokens == nil { + m.removedoauth2tokens = make(map[string]struct{}) + } + for i := range ids { + delete(m.oauth2tokens, ids[i]) + m.removedoauth2tokens[ids[i]] = struct{}{} + } +} + +// RemovedOauth2tokens returns the removed IDs of the "oauth2tokens" edge to the OhAuthTooToken entity. +func (m *IntegrationMutation) RemovedOauth2tokensIDs() (ids []string) { + for id := range m.removedoauth2tokens { + ids = append(ids, id) + } + return +} + +// Oauth2tokensIDs returns the "oauth2tokens" edge IDs in the mutation. +func (m *IntegrationMutation) Oauth2tokensIDs() (ids []string) { + for id := range m.oauth2tokens { + ids = append(ids, id) + } + return +} + +// ResetOauth2tokens resets all changes to the "oauth2tokens" edge. +func (m *IntegrationMutation) ResetOauth2tokens() { + m.oauth2tokens = nil + m.clearedoauth2tokens = false + m.removedoauth2tokens = nil +} + +// AddEventIDs adds the "events" edge to the Event entity by ids. +func (m *IntegrationMutation) AddEventIDs(ids ...string) { + if m.events == nil { + m.events = make(map[string]struct{}) + } + for i := range ids { + m.events[ids[i]] = struct{}{} + } +} + +// ClearEvents clears the "events" edge to the Event entity. +func (m *IntegrationMutation) ClearEvents() { + m.clearedevents = true +} + +// EventsCleared reports if the "events" edge to the Event entity was cleared. +func (m *IntegrationMutation) EventsCleared() bool { + return m.clearedevents +} + +// RemoveEventIDs removes the "events" edge to the Event entity by IDs. +func (m *IntegrationMutation) RemoveEventIDs(ids ...string) { + if m.removedevents == nil { + m.removedevents = make(map[string]struct{}) + } + for i := range ids { + delete(m.events, ids[i]) + m.removedevents[ids[i]] = struct{}{} + } +} + +// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. +func (m *IntegrationMutation) RemovedEventsIDs() (ids []string) { + for id := range m.removedevents { + ids = append(ids, id) + } + return +} + +// EventsIDs returns the "events" edge IDs in the mutation. +func (m *IntegrationMutation) EventsIDs() (ids []string) { + for id := range m.events { + ids = append(ids, id) + } + return +} + +// ResetEvents resets all changes to the "events" edge. +func (m *IntegrationMutation) ResetEvents() { + m.events = nil + m.clearedevents = false + m.removedevents = nil +} + +// AddWebhookIDs adds the "webhooks" edge to the Webhook entity by ids. +func (m *IntegrationMutation) AddWebhookIDs(ids ...string) { + if m.webhooks == nil { + m.webhooks = make(map[string]struct{}) + } + for i := range ids { + m.webhooks[ids[i]] = struct{}{} + } +} + +// ClearWebhooks clears the "webhooks" edge to the Webhook entity. +func (m *IntegrationMutation) ClearWebhooks() { + m.clearedwebhooks = true +} + +// WebhooksCleared reports if the "webhooks" edge to the Webhook entity was cleared. +func (m *IntegrationMutation) WebhooksCleared() bool { + return m.clearedwebhooks +} + +// RemoveWebhookIDs removes the "webhooks" edge to the Webhook entity by IDs. +func (m *IntegrationMutation) RemoveWebhookIDs(ids ...string) { + if m.removedwebhooks == nil { + m.removedwebhooks = make(map[string]struct{}) + } + for i := range ids { + delete(m.webhooks, ids[i]) + m.removedwebhooks[ids[i]] = struct{}{} + } +} + +// RemovedWebhooks returns the removed IDs of the "webhooks" edge to the Webhook entity. +func (m *IntegrationMutation) RemovedWebhooksIDs() (ids []string) { + for id := range m.removedwebhooks { + ids = append(ids, id) + } + return +} + +// WebhooksIDs returns the "webhooks" edge IDs in the mutation. +func (m *IntegrationMutation) WebhooksIDs() (ids []string) { + for id := range m.webhooks { + ids = append(ids, id) + } + return +} + +// ResetWebhooks resets all changes to the "webhooks" edge. +func (m *IntegrationMutation) ResetWebhooks() { + m.webhooks = nil + m.clearedwebhooks = false + m.removedwebhooks = nil +} + +// Where appends a list predicates to the IntegrationMutation builder. +func (m *IntegrationMutation) Where(ps ...predicate.Integration) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the IntegrationMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *IntegrationMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Integration, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *IntegrationMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *IntegrationMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (Integration). +func (m *IntegrationMutation) 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 *IntegrationMutation) Fields() []string { + fields := make([]string, 0, 12) + if m.created_at != nil { + fields = append(fields, integration.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, integration.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, integration.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, integration.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, integration.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, integration.FieldTags) + } + if m.deleted_at != nil { + fields = append(fields, integration.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, integration.FieldDeletedBy) + } + if m.owner != nil { + fields = append(fields, integration.FieldOwnerID) + } + if m.name != nil { + fields = append(fields, integration.FieldName) + } + if m.description != nil { + fields = append(fields, integration.FieldDescription) + } + if m.kind != nil { + fields = append(fields, integration.FieldKind) + } + 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 *IntegrationMutation) Field(name string) (ent.Value, bool) { + switch name { + case integration.FieldCreatedAt: + return m.CreatedAt() + case integration.FieldUpdatedAt: + return m.UpdatedAt() + case integration.FieldCreatedBy: + return m.CreatedBy() + case integration.FieldUpdatedBy: + return m.UpdatedBy() + case integration.FieldMappingID: + return m.MappingID() + case integration.FieldTags: + return m.Tags() + case integration.FieldDeletedAt: + return m.DeletedAt() + case integration.FieldDeletedBy: + return m.DeletedBy() + case integration.FieldOwnerID: + return m.OwnerID() + case integration.FieldName: + return m.Name() + case integration.FieldDescription: + return m.Description() + case integration.FieldKind: + return m.Kind() + } + 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 *IntegrationMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case integration.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case integration.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case integration.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case integration.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case integration.FieldMappingID: + return m.OldMappingID(ctx) + case integration.FieldTags: + return m.OldTags(ctx) + case integration.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case integration.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case integration.FieldOwnerID: + return m.OldOwnerID(ctx) + case integration.FieldName: + return m.OldName(ctx) + case integration.FieldDescription: + return m.OldDescription(ctx) + case integration.FieldKind: + return m.OldKind(ctx) + } + return nil, fmt.Errorf("unknown Integration 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 *IntegrationMutation) SetField(name string, value ent.Value) error { + switch name { + case integration.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 integration.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 integration.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case integration.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case integration.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case integration.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case integration.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 integration.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case integration.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case integration.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case integration.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case integration.FieldKind: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetKind(v) + return nil + } + return fmt.Errorf("unknown Integration field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *IntegrationMutation) 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 *IntegrationMutation) 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 *IntegrationMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown Integration numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *IntegrationMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(integration.FieldCreatedAt) { + fields = append(fields, integration.FieldCreatedAt) + } + if m.FieldCleared(integration.FieldUpdatedAt) { + fields = append(fields, integration.FieldUpdatedAt) + } + if m.FieldCleared(integration.FieldCreatedBy) { + fields = append(fields, integration.FieldCreatedBy) + } + if m.FieldCleared(integration.FieldUpdatedBy) { + fields = append(fields, integration.FieldUpdatedBy) + } + if m.FieldCleared(integration.FieldTags) { + fields = append(fields, integration.FieldTags) + } + if m.FieldCleared(integration.FieldDeletedAt) { + fields = append(fields, integration.FieldDeletedAt) + } + if m.FieldCleared(integration.FieldDeletedBy) { + fields = append(fields, integration.FieldDeletedBy) + } + if m.FieldCleared(integration.FieldOwnerID) { + fields = append(fields, integration.FieldOwnerID) + } + if m.FieldCleared(integration.FieldDescription) { + fields = append(fields, integration.FieldDescription) + } + if m.FieldCleared(integration.FieldKind) { + fields = append(fields, integration.FieldKind) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *IntegrationMutation) 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 *IntegrationMutation) ClearField(name string) error { + switch name { + case integration.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case integration.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case integration.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case integration.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case integration.FieldTags: + m.ClearTags() + return nil + case integration.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case integration.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case integration.FieldOwnerID: + m.ClearOwnerID() + return nil + case integration.FieldDescription: + m.ClearDescription() + return nil + case integration.FieldKind: + m.ClearKind() + return nil + } + return fmt.Errorf("unknown Integration 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 *IntegrationMutation) ResetField(name string) error { + switch name { + case integration.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case integration.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case integration.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case integration.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case integration.FieldMappingID: + m.ResetMappingID() + return nil + case integration.FieldTags: + m.ResetTags() + return nil + case integration.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case integration.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case integration.FieldOwnerID: + m.ResetOwnerID() + return nil + case integration.FieldName: + m.ResetName() + return nil + case integration.FieldDescription: + m.ResetDescription() + return nil + case integration.FieldKind: + m.ResetKind() + return nil + } + return fmt.Errorf("unknown Integration field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *IntegrationMutation) AddedEdges() []string { + edges := make([]string, 0, 5) + if m.owner != nil { + edges = append(edges, integration.EdgeOwner) + } + if m.secrets != nil { + edges = append(edges, integration.EdgeSecrets) + } + if m.oauth2tokens != nil { + edges = append(edges, integration.EdgeOauth2tokens) + } + if m.events != nil { + edges = append(edges, integration.EdgeEvents) + } + if m.webhooks != nil { + edges = append(edges, integration.EdgeWebhooks) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *IntegrationMutation) AddedIDs(name string) []ent.Value { + switch name { + case integration.EdgeOwner: + if id := m.owner; id != nil { + return []ent.Value{*id} + } + case integration.EdgeSecrets: + ids := make([]ent.Value, 0, len(m.secrets)) + for id := range m.secrets { + ids = append(ids, id) + } + return ids + case integration.EdgeOauth2tokens: + ids := make([]ent.Value, 0, len(m.oauth2tokens)) + for id := range m.oauth2tokens { + ids = append(ids, id) + } + return ids + case integration.EdgeEvents: + ids := make([]ent.Value, 0, len(m.events)) + for id := range m.events { + ids = append(ids, id) + } + return ids + case integration.EdgeWebhooks: + ids := make([]ent.Value, 0, len(m.webhooks)) + for id := range m.webhooks { + ids = append(ids, id) + } + return ids + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *IntegrationMutation) RemovedEdges() []string { + edges := make([]string, 0, 5) + if m.removedsecrets != nil { + edges = append(edges, integration.EdgeSecrets) + } + if m.removedoauth2tokens != nil { + edges = append(edges, integration.EdgeOauth2tokens) + } + if m.removedevents != nil { + edges = append(edges, integration.EdgeEvents) + } + if m.removedwebhooks != nil { + edges = append(edges, integration.EdgeWebhooks) + } + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *IntegrationMutation) RemovedIDs(name string) []ent.Value { + switch name { + case integration.EdgeSecrets: + ids := make([]ent.Value, 0, len(m.removedsecrets)) + for id := range m.removedsecrets { + ids = append(ids, id) + } + return ids + case integration.EdgeOauth2tokens: + ids := make([]ent.Value, 0, len(m.removedoauth2tokens)) + for id := range m.removedoauth2tokens { + ids = append(ids, id) + } + return ids + case integration.EdgeEvents: + ids := make([]ent.Value, 0, len(m.removedevents)) + for id := range m.removedevents { + ids = append(ids, id) + } + return ids + case integration.EdgeWebhooks: + ids := make([]ent.Value, 0, len(m.removedwebhooks)) + for id := range m.removedwebhooks { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *IntegrationMutation) ClearedEdges() []string { + edges := make([]string, 0, 5) + if m.clearedowner { + edges = append(edges, integration.EdgeOwner) + } + if m.clearedsecrets { + edges = append(edges, integration.EdgeSecrets) + } + if m.clearedoauth2tokens { + edges = append(edges, integration.EdgeOauth2tokens) + } + if m.clearedevents { + edges = append(edges, integration.EdgeEvents) + } + if m.clearedwebhooks { + edges = append(edges, integration.EdgeWebhooks) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *IntegrationMutation) EdgeCleared(name string) bool { + switch name { + case integration.EdgeOwner: + return m.clearedowner + case integration.EdgeSecrets: + return m.clearedsecrets + case integration.EdgeOauth2tokens: + return m.clearedoauth2tokens + case integration.EdgeEvents: + return m.clearedevents + case integration.EdgeWebhooks: + return m.clearedwebhooks + } + 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 *IntegrationMutation) ClearEdge(name string) error { + switch name { + case integration.EdgeOwner: + m.ClearOwner() + return nil + } + return fmt.Errorf("unknown Integration 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 *IntegrationMutation) ResetEdge(name string) error { + switch name { + case integration.EdgeOwner: + m.ResetOwner() + return nil + case integration.EdgeSecrets: + m.ResetSecrets() + return nil + case integration.EdgeOauth2tokens: + m.ResetOauth2tokens() + return nil + case integration.EdgeEvents: + m.ResetEvents() + return nil + case integration.EdgeWebhooks: + m.ResetWebhooks() + return nil + } + return fmt.Errorf("unknown Integration edge %s", name) +} + +// IntegrationHistoryMutation represents an operation that mutates the IntegrationHistory nodes in the graph. +type IntegrationHistoryMutation 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 + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + owner_id *string + name *string + description *string + kind *string + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*IntegrationHistory, error) + predicates []predicate.IntegrationHistory +} + +var _ ent.Mutation = (*IntegrationHistoryMutation)(nil) + +// integrationhistoryOption allows management of the mutation configuration using functional options. +type integrationhistoryOption func(*IntegrationHistoryMutation) + +// newIntegrationHistoryMutation creates new mutation for the IntegrationHistory entity. +func newIntegrationHistoryMutation(c config, op Op, opts ...integrationhistoryOption) *IntegrationHistoryMutation { + m := &IntegrationHistoryMutation{ + config: c, + op: op, + typ: TypeIntegrationHistory, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withIntegrationHistoryID sets the ID field of the mutation. +func withIntegrationHistoryID(id string) integrationhistoryOption { + return func(m *IntegrationHistoryMutation) { + var ( + err error + once sync.Once + value *IntegrationHistory + ) + m.oldValue = func(ctx context.Context) (*IntegrationHistory, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().IntegrationHistory.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withIntegrationHistory sets the old IntegrationHistory of the mutation. +func withIntegrationHistory(node *IntegrationHistory) integrationhistoryOption { + return func(m *IntegrationHistoryMutation) { + m.oldValue = func(context.Context) (*IntegrationHistory, 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 IntegrationHistoryMutation) 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 IntegrationHistoryMutation) 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 IntegrationHistory entities. +func (m *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) 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().IntegrationHistory.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 *IntegrationHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *IntegrationHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[integrationhistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *IntegrationHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[integrationhistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *IntegrationHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, integrationhistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *IntegrationHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ResetOperation() { + m.operation = nil +} + +// SetCreatedAt sets the "created_at" field. +func (m *IntegrationHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[integrationhistory.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *IntegrationHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[integrationhistory.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *IntegrationHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, integrationhistory.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *IntegrationHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[integrationhistory.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *IntegrationHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[integrationhistory.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *IntegrationHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, integrationhistory.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *IntegrationHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[integrationhistory.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *IntegrationHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[integrationhistory.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *IntegrationHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, integrationhistory.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *IntegrationHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[integrationhistory.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *IntegrationHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[integrationhistory.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *IntegrationHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, integrationhistory.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *IntegrationHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *IntegrationHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *IntegrationHistoryMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *IntegrationHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[integrationhistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *IntegrationHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[integrationhistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *IntegrationHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, integrationhistory.FieldTags) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *IntegrationHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[integrationhistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *IntegrationHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[integrationhistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *IntegrationHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, integrationhistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *IntegrationHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[integrationhistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *IntegrationHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[integrationhistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *IntegrationHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, integrationhistory.FieldDeletedBy) +} + +// SetOwnerID sets the "owner_id" field. +func (m *IntegrationHistoryMutation) SetOwnerID(s string) { + m.owner_id = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearOwnerID() { + m.owner_id = nil + m.clearedFields[integrationhistory.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *IntegrationHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[integrationhistory.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *IntegrationHistoryMutation) ResetOwnerID() { + m.owner_id = nil + delete(m.clearedFields, integrationhistory.FieldOwnerID) +} + +// SetName sets the "name" field. +func (m *IntegrationHistoryMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *IntegrationHistoryMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *IntegrationHistoryMutation) 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 IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[integrationhistory.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *IntegrationHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[integrationhistory.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *IntegrationHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, integrationhistory.FieldDescription) +} + +// SetKind sets the "kind" field. +func (m *IntegrationHistoryMutation) SetKind(s string) { + m.kind = &s +} + +// Kind returns the value of the "kind" field in the mutation. +func (m *IntegrationHistoryMutation) Kind() (r string, exists bool) { + v := m.kind + if v == nil { + return + } + return *v, true +} + +// OldKind returns the old "kind" field's value of the IntegrationHistory entity. +// If the IntegrationHistory 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 *IntegrationHistoryMutation) OldKind(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldKind is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldKind requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldKind: %w", err) + } + return oldValue.Kind, nil +} + +// ClearKind clears the value of the "kind" field. +func (m *IntegrationHistoryMutation) ClearKind() { + m.kind = nil + m.clearedFields[integrationhistory.FieldKind] = struct{}{} +} + +// KindCleared returns if the "kind" field was cleared in this mutation. +func (m *IntegrationHistoryMutation) KindCleared() bool { + _, ok := m.clearedFields[integrationhistory.FieldKind] + return ok +} + +// ResetKind resets all changes to the "kind" field. +func (m *IntegrationHistoryMutation) ResetKind() { + m.kind = nil + delete(m.clearedFields, integrationhistory.FieldKind) +} + +// Where appends a list predicates to the IntegrationHistoryMutation builder. +func (m *IntegrationHistoryMutation) Where(ps ...predicate.IntegrationHistory) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the IntegrationHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *IntegrationHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.IntegrationHistory, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *IntegrationHistoryMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *IntegrationHistoryMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (IntegrationHistory). +func (m *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) Fields() []string { + fields := make([]string, 0, 15) + if m.history_time != nil { + fields = append(fields, integrationhistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, integrationhistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, integrationhistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, integrationhistory.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, integrationhistory.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, integrationhistory.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, integrationhistory.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, integrationhistory.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, integrationhistory.FieldTags) + } + if m.deleted_at != nil { + fields = append(fields, integrationhistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, integrationhistory.FieldDeletedBy) + } + if m.owner_id != nil { + fields = append(fields, integrationhistory.FieldOwnerID) + } + if m.name != nil { + fields = append(fields, integrationhistory.FieldName) + } + if m.description != nil { + fields = append(fields, integrationhistory.FieldDescription) + } + if m.kind != nil { + fields = append(fields, integrationhistory.FieldKind) + } + 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 *IntegrationHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case integrationhistory.FieldHistoryTime: + return m.HistoryTime() + case integrationhistory.FieldRef: + return m.Ref() + case integrationhistory.FieldOperation: + return m.Operation() + case integrationhistory.FieldCreatedAt: + return m.CreatedAt() + case integrationhistory.FieldUpdatedAt: + return m.UpdatedAt() + case integrationhistory.FieldCreatedBy: + return m.CreatedBy() + case integrationhistory.FieldUpdatedBy: + return m.UpdatedBy() + case integrationhistory.FieldMappingID: + return m.MappingID() + case integrationhistory.FieldTags: + return m.Tags() + case integrationhistory.FieldDeletedAt: + return m.DeletedAt() + case integrationhistory.FieldDeletedBy: + return m.DeletedBy() + case integrationhistory.FieldOwnerID: + return m.OwnerID() + case integrationhistory.FieldName: + return m.Name() + case integrationhistory.FieldDescription: + return m.Description() + case integrationhistory.FieldKind: + return m.Kind() + } + 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 *IntegrationHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case integrationhistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case integrationhistory.FieldRef: + return m.OldRef(ctx) + case integrationhistory.FieldOperation: + return m.OldOperation(ctx) + case integrationhistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case integrationhistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case integrationhistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case integrationhistory.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case integrationhistory.FieldMappingID: + return m.OldMappingID(ctx) + case integrationhistory.FieldTags: + return m.OldTags(ctx) + case integrationhistory.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case integrationhistory.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case integrationhistory.FieldOwnerID: + return m.OldOwnerID(ctx) + case integrationhistory.FieldName: + return m.OldName(ctx) + case integrationhistory.FieldDescription: + return m.OldDescription(ctx) + case integrationhistory.FieldKind: + return m.OldKind(ctx) + } + return nil, fmt.Errorf("unknown IntegrationHistory 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 *IntegrationHistoryMutation) SetField(name string, value ent.Value) error { + switch name { + case integrationhistory.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 integrationhistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case integrationhistory.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 integrationhistory.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 integrationhistory.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 integrationhistory.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case integrationhistory.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case integrationhistory.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case integrationhistory.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case integrationhistory.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 integrationhistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case integrationhistory.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case integrationhistory.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case integrationhistory.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case integrationhistory.FieldKind: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetKind(v) + return nil + } + return fmt.Errorf("unknown IntegrationHistory field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown IntegrationHistory numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *IntegrationHistoryMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(integrationhistory.FieldRef) { + fields = append(fields, integrationhistory.FieldRef) + } + if m.FieldCleared(integrationhistory.FieldCreatedAt) { + fields = append(fields, integrationhistory.FieldCreatedAt) + } + if m.FieldCleared(integrationhistory.FieldUpdatedAt) { + fields = append(fields, integrationhistory.FieldUpdatedAt) + } + if m.FieldCleared(integrationhistory.FieldCreatedBy) { + fields = append(fields, integrationhistory.FieldCreatedBy) + } + if m.FieldCleared(integrationhistory.FieldUpdatedBy) { + fields = append(fields, integrationhistory.FieldUpdatedBy) + } + if m.FieldCleared(integrationhistory.FieldTags) { + fields = append(fields, integrationhistory.FieldTags) + } + if m.FieldCleared(integrationhistory.FieldDeletedAt) { + fields = append(fields, integrationhistory.FieldDeletedAt) + } + if m.FieldCleared(integrationhistory.FieldDeletedBy) { + fields = append(fields, integrationhistory.FieldDeletedBy) + } + if m.FieldCleared(integrationhistory.FieldOwnerID) { + fields = append(fields, integrationhistory.FieldOwnerID) + } + if m.FieldCleared(integrationhistory.FieldDescription) { + fields = append(fields, integrationhistory.FieldDescription) + } + if m.FieldCleared(integrationhistory.FieldKind) { + fields = append(fields, integrationhistory.FieldKind) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearField(name string) error { + switch name { + case integrationhistory.FieldRef: + m.ClearRef() + return nil + case integrationhistory.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case integrationhistory.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case integrationhistory.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case integrationhistory.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case integrationhistory.FieldTags: + m.ClearTags() + return nil + case integrationhistory.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case integrationhistory.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case integrationhistory.FieldOwnerID: + m.ClearOwnerID() + return nil + case integrationhistory.FieldDescription: + m.ClearDescription() + return nil + case integrationhistory.FieldKind: + m.ClearKind() + return nil + } + return fmt.Errorf("unknown IntegrationHistory 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 *IntegrationHistoryMutation) ResetField(name string) error { + switch name { + case integrationhistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case integrationhistory.FieldRef: + m.ResetRef() + return nil + case integrationhistory.FieldOperation: + m.ResetOperation() + return nil + case integrationhistory.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case integrationhistory.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case integrationhistory.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case integrationhistory.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case integrationhistory.FieldMappingID: + m.ResetMappingID() + return nil + case integrationhistory.FieldTags: + m.ResetTags() + return nil + case integrationhistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case integrationhistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case integrationhistory.FieldOwnerID: + m.ResetOwnerID() + return nil + case integrationhistory.FieldName: + m.ResetName() + return nil + case integrationhistory.FieldDescription: + m.ResetDescription() + return nil + case integrationhistory.FieldKind: + m.ResetKind() + return nil + } + return fmt.Errorf("unknown IntegrationHistory field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) AddedIDs(name string) []ent.Value { + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) RemovedIDs(name string) []ent.Value { + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) 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 *IntegrationHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown IntegrationHistory 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 *IntegrationHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown IntegrationHistory edge %s", name) +} + +// InternalPolicyMutation represents an operation that mutates the InternalPolicy nodes in the graph. +type InternalPolicyMutation struct { + config + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + status *string + policy_type *string + version *string + purpose_and_scope *string + background *string + details *map[string]interface{} + clearedFields map[string]struct{} + controlobjectives map[string]struct{} + removedcontrolobjectives map[string]struct{} + clearedcontrolobjectives bool + controls map[string]struct{} + removedcontrols map[string]struct{} + clearedcontrols bool + procedures map[string]struct{} + removedprocedures map[string]struct{} + clearedprocedures bool + narratives map[string]struct{} + removednarratives map[string]struct{} + clearednarratives bool + done bool + oldValue func(context.Context) (*InternalPolicy, error) + predicates []predicate.InternalPolicy +} + +var _ ent.Mutation = (*InternalPolicyMutation)(nil) + +// internalpolicyOption allows management of the mutation configuration using functional options. +type internalpolicyOption func(*InternalPolicyMutation) + +// newInternalPolicyMutation creates new mutation for the InternalPolicy entity. +func newInternalPolicyMutation(c config, op Op, opts ...internalpolicyOption) *InternalPolicyMutation { + m := &InternalPolicyMutation{ + config: c, + op: op, + typ: TypeInternalPolicy, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withInternalPolicyID sets the ID field of the mutation. +func withInternalPolicyID(id string) internalpolicyOption { + return func(m *InternalPolicyMutation) { + var ( + err error + once sync.Once + value *InternalPolicy + ) + m.oldValue = func(ctx context.Context) (*InternalPolicy, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().InternalPolicy.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withInternalPolicy sets the old InternalPolicy of the mutation. +func withInternalPolicy(node *InternalPolicy) internalpolicyOption { + return func(m *InternalPolicyMutation) { + m.oldValue = func(context.Context) (*InternalPolicy, 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 InternalPolicyMutation) 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 InternalPolicyMutation) 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 InternalPolicy entities. +func (m *InternalPolicyMutation) 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 *InternalPolicyMutation) 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 *InternalPolicyMutation) 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().InternalPolicy.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 *InternalPolicyMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *InternalPolicyMutation) 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 InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) 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 *InternalPolicyMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[internalpolicy.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *InternalPolicyMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *InternalPolicyMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, internalpolicy.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *InternalPolicyMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *InternalPolicyMutation) 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 InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) 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 *InternalPolicyMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[internalpolicy.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *InternalPolicyMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *InternalPolicyMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, internalpolicy.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *InternalPolicyMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *InternalPolicyMutation) 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 InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) 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 *InternalPolicyMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[internalpolicy.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *InternalPolicyMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *InternalPolicyMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, internalpolicy.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *InternalPolicyMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *InternalPolicyMutation) 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 InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) 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 *InternalPolicyMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[internalpolicy.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *InternalPolicyMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *InternalPolicyMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, internalpolicy.FieldUpdatedBy) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *InternalPolicyMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *InternalPolicyMutation) 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 InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) 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 *InternalPolicyMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[internalpolicy.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *InternalPolicyMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *InternalPolicyMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, internalpolicy.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *InternalPolicyMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *InternalPolicyMutation) 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 InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) 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 *InternalPolicyMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[internalpolicy.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *InternalPolicyMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *InternalPolicyMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, internalpolicy.FieldDeletedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *InternalPolicyMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *InternalPolicyMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *InternalPolicyMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *InternalPolicyMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *InternalPolicyMutation) 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 InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) 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 *InternalPolicyMutation) 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 *InternalPolicyMutation) 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 *InternalPolicyMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[internalpolicy.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *InternalPolicyMutation) TagsCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *InternalPolicyMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, internalpolicy.FieldTags) +} + +// SetName sets the "name" field. +func (m *InternalPolicyMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *InternalPolicyMutation) 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 InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) 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 *InternalPolicyMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *InternalPolicyMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *InternalPolicyMutation) 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 InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) 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 +} + +// ResetDescription resets all changes to the "description" field. +func (m *InternalPolicyMutation) ResetDescription() { + m.description = nil +} + +// SetStatus sets the "status" field. +func (m *InternalPolicyMutation) SetStatus(s string) { + m.status = &s +} + +// Status returns the value of the "status" field in the mutation. +func (m *InternalPolicyMutation) Status() (r string, exists bool) { + v := m.status + if v == nil { + return + } + return *v, true +} + +// OldStatus returns the old "status" field's value of the InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) OldStatus(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStatus is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStatus requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStatus: %w", err) + } + return oldValue.Status, nil +} + +// ClearStatus clears the value of the "status" field. +func (m *InternalPolicyMutation) ClearStatus() { + m.status = nil + m.clearedFields[internalpolicy.FieldStatus] = struct{}{} +} + +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *InternalPolicyMutation) StatusCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldStatus] + return ok +} + +// ResetStatus resets all changes to the "status" field. +func (m *InternalPolicyMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, internalpolicy.FieldStatus) +} + +// SetPolicyType sets the "policy_type" field. +func (m *InternalPolicyMutation) SetPolicyType(s string) { + m.policy_type = &s +} + +// PolicyType returns the value of the "policy_type" field in the mutation. +func (m *InternalPolicyMutation) PolicyType() (r string, exists bool) { + v := m.policy_type + if v == nil { + return + } + return *v, true +} + +// OldPolicyType returns the old "policy_type" field's value of the InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) OldPolicyType(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldPolicyType is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldPolicyType requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldPolicyType: %w", err) + } + return oldValue.PolicyType, nil +} + +// ClearPolicyType clears the value of the "policy_type" field. +func (m *InternalPolicyMutation) ClearPolicyType() { + m.policy_type = nil + m.clearedFields[internalpolicy.FieldPolicyType] = struct{}{} +} + +// PolicyTypeCleared returns if the "policy_type" field was cleared in this mutation. +func (m *InternalPolicyMutation) PolicyTypeCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldPolicyType] + return ok +} + +// ResetPolicyType resets all changes to the "policy_type" field. +func (m *InternalPolicyMutation) ResetPolicyType() { + m.policy_type = nil + delete(m.clearedFields, internalpolicy.FieldPolicyType) +} + +// SetVersion sets the "version" field. +func (m *InternalPolicyMutation) SetVersion(s string) { + m.version = &s +} + +// Version returns the value of the "version" field in the mutation. +func (m *InternalPolicyMutation) Version() (r string, exists bool) { + v := m.version + if v == nil { + return + } + return *v, true +} + +// OldVersion returns the old "version" field's value of the InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) OldVersion(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldVersion is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldVersion requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldVersion: %w", err) + } + return oldValue.Version, nil +} + +// ClearVersion clears the value of the "version" field. +func (m *InternalPolicyMutation) ClearVersion() { + m.version = nil + m.clearedFields[internalpolicy.FieldVersion] = struct{}{} +} + +// VersionCleared returns if the "version" field was cleared in this mutation. +func (m *InternalPolicyMutation) VersionCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldVersion] + return ok +} + +// ResetVersion resets all changes to the "version" field. +func (m *InternalPolicyMutation) ResetVersion() { + m.version = nil + delete(m.clearedFields, internalpolicy.FieldVersion) +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (m *InternalPolicyMutation) SetPurposeAndScope(s string) { + m.purpose_and_scope = &s +} + +// PurposeAndScope returns the value of the "purpose_and_scope" field in the mutation. +func (m *InternalPolicyMutation) PurposeAndScope() (r string, exists bool) { + v := m.purpose_and_scope + if v == nil { + return + } + return *v, true +} + +// OldPurposeAndScope returns the old "purpose_and_scope" field's value of the InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) OldPurposeAndScope(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldPurposeAndScope is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldPurposeAndScope requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldPurposeAndScope: %w", err) + } + return oldValue.PurposeAndScope, nil +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (m *InternalPolicyMutation) ClearPurposeAndScope() { + m.purpose_and_scope = nil + m.clearedFields[internalpolicy.FieldPurposeAndScope] = struct{}{} +} + +// PurposeAndScopeCleared returns if the "purpose_and_scope" field was cleared in this mutation. +func (m *InternalPolicyMutation) PurposeAndScopeCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldPurposeAndScope] + return ok +} + +// ResetPurposeAndScope resets all changes to the "purpose_and_scope" field. +func (m *InternalPolicyMutation) ResetPurposeAndScope() { + m.purpose_and_scope = nil + delete(m.clearedFields, internalpolicy.FieldPurposeAndScope) +} + +// SetBackground sets the "background" field. +func (m *InternalPolicyMutation) SetBackground(s string) { + m.background = &s +} + +// Background returns the value of the "background" field in the mutation. +func (m *InternalPolicyMutation) Background() (r string, exists bool) { + v := m.background + if v == nil { + return + } + return *v, true +} + +// OldBackground returns the old "background" field's value of the InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) OldBackground(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldBackground is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldBackground requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldBackground: %w", err) + } + return oldValue.Background, nil +} + +// ClearBackground clears the value of the "background" field. +func (m *InternalPolicyMutation) ClearBackground() { + m.background = nil + m.clearedFields[internalpolicy.FieldBackground] = struct{}{} +} + +// BackgroundCleared returns if the "background" field was cleared in this mutation. +func (m *InternalPolicyMutation) BackgroundCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldBackground] + return ok +} + +// ResetBackground resets all changes to the "background" field. +func (m *InternalPolicyMutation) ResetBackground() { + m.background = nil + delete(m.clearedFields, internalpolicy.FieldBackground) +} + +// SetDetails sets the "details" field. +func (m *InternalPolicyMutation) SetDetails(value map[string]interface{}) { + m.details = &value +} + +// Details returns the value of the "details" field in the mutation. +func (m *InternalPolicyMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details + if v == nil { + return + } + return *v, true +} + +// OldDetails returns the old "details" field's value of the InternalPolicy entity. +// If the InternalPolicy 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 *InternalPolicyMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetails is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetails requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetails: %w", err) + } + return oldValue.Details, nil +} + +// ClearDetails clears the value of the "details" field. +func (m *InternalPolicyMutation) ClearDetails() { + m.details = nil + m.clearedFields[internalpolicy.FieldDetails] = struct{}{} +} + +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *InternalPolicyMutation) DetailsCleared() bool { + _, ok := m.clearedFields[internalpolicy.FieldDetails] + return ok +} + +// ResetDetails resets all changes to the "details" field. +func (m *InternalPolicyMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, internalpolicy.FieldDetails) +} + +// AddControlobjectiveIDs adds the "controlobjectives" edge to the ControlObjective entity by ids. +func (m *InternalPolicyMutation) AddControlobjectiveIDs(ids ...string) { + if m.controlobjectives == nil { + m.controlobjectives = make(map[string]struct{}) + } + for i := range ids { + m.controlobjectives[ids[i]] = struct{}{} + } +} + +// ClearControlobjectives clears the "controlobjectives" edge to the ControlObjective entity. +func (m *InternalPolicyMutation) ClearControlobjectives() { + m.clearedcontrolobjectives = true +} + +// ControlobjectivesCleared reports if the "controlobjectives" edge to the ControlObjective entity was cleared. +func (m *InternalPolicyMutation) ControlobjectivesCleared() bool { + return m.clearedcontrolobjectives +} + +// RemoveControlobjectiveIDs removes the "controlobjectives" edge to the ControlObjective entity by IDs. +func (m *InternalPolicyMutation) RemoveControlobjectiveIDs(ids ...string) { + if m.removedcontrolobjectives == nil { + m.removedcontrolobjectives = make(map[string]struct{}) + } + for i := range ids { + delete(m.controlobjectives, ids[i]) + m.removedcontrolobjectives[ids[i]] = struct{}{} + } +} + +// RemovedControlobjectives returns the removed IDs of the "controlobjectives" edge to the ControlObjective entity. +func (m *InternalPolicyMutation) RemovedControlobjectivesIDs() (ids []string) { + for id := range m.removedcontrolobjectives { + ids = append(ids, id) + } + return +} + +// ControlobjectivesIDs returns the "controlobjectives" edge IDs in the mutation. +func (m *InternalPolicyMutation) ControlobjectivesIDs() (ids []string) { + for id := range m.controlobjectives { + ids = append(ids, id) + } + return +} + +// ResetControlobjectives resets all changes to the "controlobjectives" edge. +func (m *InternalPolicyMutation) ResetControlobjectives() { + m.controlobjectives = nil + m.clearedcontrolobjectives = false + m.removedcontrolobjectives = nil +} + +// AddControlIDs adds the "controls" edge to the Control entity by ids. +func (m *InternalPolicyMutation) AddControlIDs(ids ...string) { + if m.controls == nil { + m.controls = make(map[string]struct{}) + } + for i := range ids { + m.controls[ids[i]] = struct{}{} + } +} + +// ClearControls clears the "controls" edge to the Control entity. +func (m *InternalPolicyMutation) ClearControls() { + m.clearedcontrols = true +} + +// ControlsCleared reports if the "controls" edge to the Control entity was cleared. +func (m *InternalPolicyMutation) ControlsCleared() bool { + return m.clearedcontrols +} + +// RemoveControlIDs removes the "controls" edge to the Control entity by IDs. +func (m *InternalPolicyMutation) RemoveControlIDs(ids ...string) { + if m.removedcontrols == nil { + m.removedcontrols = make(map[string]struct{}) + } + for i := range ids { + delete(m.controls, ids[i]) + m.removedcontrols[ids[i]] = struct{}{} + } +} + +// RemovedControls returns the removed IDs of the "controls" edge to the Control entity. +func (m *InternalPolicyMutation) RemovedControlsIDs() (ids []string) { + for id := range m.removedcontrols { + ids = append(ids, id) + } + return +} + +// ControlsIDs returns the "controls" edge IDs in the mutation. +func (m *InternalPolicyMutation) ControlsIDs() (ids []string) { + for id := range m.controls { + ids = append(ids, id) + } + return +} + +// ResetControls resets all changes to the "controls" edge. +func (m *InternalPolicyMutation) ResetControls() { + m.controls = nil + m.clearedcontrols = false + m.removedcontrols = nil +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by ids. +func (m *InternalPolicyMutation) AddProcedureIDs(ids ...string) { + if m.procedures == nil { + m.procedures = make(map[string]struct{}) + } + for i := range ids { + m.procedures[ids[i]] = struct{}{} + } +} + +// ClearProcedures clears the "procedures" edge to the Procedure entity. +func (m *InternalPolicyMutation) ClearProcedures() { + m.clearedprocedures = true +} + +// ProceduresCleared reports if the "procedures" edge to the Procedure entity was cleared. +func (m *InternalPolicyMutation) ProceduresCleared() bool { + return m.clearedprocedures +} + +// RemoveProcedureIDs removes the "procedures" edge to the Procedure entity by IDs. +func (m *InternalPolicyMutation) RemoveProcedureIDs(ids ...string) { + if m.removedprocedures == nil { + m.removedprocedures = make(map[string]struct{}) + } + for i := range ids { + delete(m.procedures, ids[i]) + m.removedprocedures[ids[i]] = struct{}{} + } +} + +// RemovedProcedures returns the removed IDs of the "procedures" edge to the Procedure entity. +func (m *InternalPolicyMutation) RemovedProceduresIDs() (ids []string) { + for id := range m.removedprocedures { + ids = append(ids, id) + } + return +} + +// ProceduresIDs returns the "procedures" edge IDs in the mutation. +func (m *InternalPolicyMutation) ProceduresIDs() (ids []string) { + for id := range m.procedures { + ids = append(ids, id) + } + return +} + +// ResetProcedures resets all changes to the "procedures" edge. +func (m *InternalPolicyMutation) ResetProcedures() { + m.procedures = nil + m.clearedprocedures = false + m.removedprocedures = nil +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by ids. +func (m *InternalPolicyMutation) AddNarrativeIDs(ids ...string) { + if m.narratives == nil { + m.narratives = make(map[string]struct{}) + } + for i := range ids { + m.narratives[ids[i]] = struct{}{} + } +} + +// ClearNarratives clears the "narratives" edge to the Narrative entity. +func (m *InternalPolicyMutation) ClearNarratives() { + m.clearednarratives = true +} + +// NarrativesCleared reports if the "narratives" edge to the Narrative entity was cleared. +func (m *InternalPolicyMutation) NarrativesCleared() bool { + return m.clearednarratives +} + +// RemoveNarrativeIDs removes the "narratives" edge to the Narrative entity by IDs. +func (m *InternalPolicyMutation) RemoveNarrativeIDs(ids ...string) { + if m.removednarratives == nil { + m.removednarratives = make(map[string]struct{}) + } + for i := range ids { + delete(m.narratives, ids[i]) + m.removednarratives[ids[i]] = struct{}{} + } +} + +// RemovedNarratives returns the removed IDs of the "narratives" edge to the Narrative entity. +func (m *InternalPolicyMutation) RemovedNarrativesIDs() (ids []string) { + for id := range m.removednarratives { + ids = append(ids, id) + } + return +} + +// NarrativesIDs returns the "narratives" edge IDs in the mutation. +func (m *InternalPolicyMutation) NarrativesIDs() (ids []string) { + for id := range m.narratives { + ids = append(ids, id) + } + return +} + +// ResetNarratives resets all changes to the "narratives" edge. +func (m *InternalPolicyMutation) ResetNarratives() { + m.narratives = nil + m.clearednarratives = false + m.removednarratives = nil +} + +// Where appends a list predicates to the InternalPolicyMutation builder. +func (m *InternalPolicyMutation) Where(ps ...predicate.InternalPolicy) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the InternalPolicyMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *InternalPolicyMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.InternalPolicy, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *InternalPolicyMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *InternalPolicyMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (InternalPolicy). +func (m *InternalPolicyMutation) 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 *InternalPolicyMutation) Fields() []string { + fields := make([]string, 0, 16) + if m.created_at != nil { + fields = append(fields, internalpolicy.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, internalpolicy.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, internalpolicy.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, internalpolicy.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, internalpolicy.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, internalpolicy.FieldDeletedBy) + } + if m.mapping_id != nil { + fields = append(fields, internalpolicy.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, internalpolicy.FieldTags) + } + if m.name != nil { + fields = append(fields, internalpolicy.FieldName) + } + if m.description != nil { + fields = append(fields, internalpolicy.FieldDescription) + } + if m.status != nil { + fields = append(fields, internalpolicy.FieldStatus) + } + if m.policy_type != nil { + fields = append(fields, internalpolicy.FieldPolicyType) + } + if m.version != nil { + fields = append(fields, internalpolicy.FieldVersion) + } + if m.purpose_and_scope != nil { + fields = append(fields, internalpolicy.FieldPurposeAndScope) + } + if m.background != nil { + fields = append(fields, internalpolicy.FieldBackground) + } + if m.details != nil { + fields = append(fields, internalpolicy.FieldDetails) + } + 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 *InternalPolicyMutation) Field(name string) (ent.Value, bool) { + switch name { + case internalpolicy.FieldCreatedAt: + return m.CreatedAt() + case internalpolicy.FieldUpdatedAt: + return m.UpdatedAt() + case internalpolicy.FieldCreatedBy: + return m.CreatedBy() + case internalpolicy.FieldUpdatedBy: + return m.UpdatedBy() + case internalpolicy.FieldDeletedAt: + return m.DeletedAt() + case internalpolicy.FieldDeletedBy: + return m.DeletedBy() + case internalpolicy.FieldMappingID: + return m.MappingID() + case internalpolicy.FieldTags: + return m.Tags() + case internalpolicy.FieldName: + return m.Name() + case internalpolicy.FieldDescription: + return m.Description() + case internalpolicy.FieldStatus: + return m.Status() + case internalpolicy.FieldPolicyType: + return m.PolicyType() + case internalpolicy.FieldVersion: + return m.Version() + case internalpolicy.FieldPurposeAndScope: + return m.PurposeAndScope() + case internalpolicy.FieldBackground: + return m.Background() + case internalpolicy.FieldDetails: + return m.Details() + } + 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 *InternalPolicyMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case internalpolicy.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case internalpolicy.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case internalpolicy.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case internalpolicy.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case internalpolicy.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case internalpolicy.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case internalpolicy.FieldMappingID: + return m.OldMappingID(ctx) + case internalpolicy.FieldTags: + return m.OldTags(ctx) + case internalpolicy.FieldName: + return m.OldName(ctx) + case internalpolicy.FieldDescription: + return m.OldDescription(ctx) + case internalpolicy.FieldStatus: + return m.OldStatus(ctx) + case internalpolicy.FieldPolicyType: + return m.OldPolicyType(ctx) + case internalpolicy.FieldVersion: + return m.OldVersion(ctx) + case internalpolicy.FieldPurposeAndScope: + return m.OldPurposeAndScope(ctx) + case internalpolicy.FieldBackground: + return m.OldBackground(ctx) + case internalpolicy.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown InternalPolicy 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 *InternalPolicyMutation) SetField(name string, value ent.Value) error { + switch name { + case internalpolicy.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 internalpolicy.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 internalpolicy.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case internalpolicy.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case internalpolicy.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 internalpolicy.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case internalpolicy.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case internalpolicy.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case internalpolicy.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case internalpolicy.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case internalpolicy.FieldStatus: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStatus(v) + return nil + case internalpolicy.FieldPolicyType: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetPolicyType(v) + return nil + case internalpolicy.FieldVersion: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetVersion(v) + return nil + case internalpolicy.FieldPurposeAndScope: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetPurposeAndScope(v) + return nil + case internalpolicy.FieldBackground: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetBackground(v) + return nil + case internalpolicy.FieldDetails: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDetails(v) + return nil + } + return fmt.Errorf("unknown InternalPolicy field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *InternalPolicyMutation) 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 *InternalPolicyMutation) 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 *InternalPolicyMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown InternalPolicy numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *InternalPolicyMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(internalpolicy.FieldCreatedAt) { + fields = append(fields, internalpolicy.FieldCreatedAt) + } + if m.FieldCleared(internalpolicy.FieldUpdatedAt) { + fields = append(fields, internalpolicy.FieldUpdatedAt) + } + if m.FieldCleared(internalpolicy.FieldCreatedBy) { + fields = append(fields, internalpolicy.FieldCreatedBy) + } + if m.FieldCleared(internalpolicy.FieldUpdatedBy) { + fields = append(fields, internalpolicy.FieldUpdatedBy) + } + if m.FieldCleared(internalpolicy.FieldDeletedAt) { + fields = append(fields, internalpolicy.FieldDeletedAt) + } + if m.FieldCleared(internalpolicy.FieldDeletedBy) { + fields = append(fields, internalpolicy.FieldDeletedBy) + } + if m.FieldCleared(internalpolicy.FieldTags) { + fields = append(fields, internalpolicy.FieldTags) + } + if m.FieldCleared(internalpolicy.FieldStatus) { + fields = append(fields, internalpolicy.FieldStatus) + } + if m.FieldCleared(internalpolicy.FieldPolicyType) { + fields = append(fields, internalpolicy.FieldPolicyType) + } + if m.FieldCleared(internalpolicy.FieldVersion) { + fields = append(fields, internalpolicy.FieldVersion) + } + if m.FieldCleared(internalpolicy.FieldPurposeAndScope) { + fields = append(fields, internalpolicy.FieldPurposeAndScope) + } + if m.FieldCleared(internalpolicy.FieldBackground) { + fields = append(fields, internalpolicy.FieldBackground) + } + if m.FieldCleared(internalpolicy.FieldDetails) { + fields = append(fields, internalpolicy.FieldDetails) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *InternalPolicyMutation) 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 *InternalPolicyMutation) ClearField(name string) error { + switch name { + case internalpolicy.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case internalpolicy.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case internalpolicy.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case internalpolicy.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case internalpolicy.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case internalpolicy.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case internalpolicy.FieldTags: + m.ClearTags() + return nil + case internalpolicy.FieldStatus: + m.ClearStatus() + return nil + case internalpolicy.FieldPolicyType: + m.ClearPolicyType() + return nil + case internalpolicy.FieldVersion: + m.ClearVersion() + return nil + case internalpolicy.FieldPurposeAndScope: + m.ClearPurposeAndScope() + return nil + case internalpolicy.FieldBackground: + m.ClearBackground() + return nil + case internalpolicy.FieldDetails: + m.ClearDetails() + return nil + } + return fmt.Errorf("unknown InternalPolicy 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 *InternalPolicyMutation) ResetField(name string) error { + switch name { + case internalpolicy.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case internalpolicy.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case internalpolicy.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case internalpolicy.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case internalpolicy.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case internalpolicy.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case internalpolicy.FieldMappingID: + m.ResetMappingID() + return nil + case internalpolicy.FieldTags: + m.ResetTags() + return nil + case internalpolicy.FieldName: + m.ResetName() + return nil + case internalpolicy.FieldDescription: + m.ResetDescription() + return nil + case internalpolicy.FieldStatus: + m.ResetStatus() + return nil + case internalpolicy.FieldPolicyType: + m.ResetPolicyType() + return nil + case internalpolicy.FieldVersion: + m.ResetVersion() + return nil + case internalpolicy.FieldPurposeAndScope: + m.ResetPurposeAndScope() + return nil + case internalpolicy.FieldBackground: + m.ResetBackground() + return nil + case internalpolicy.FieldDetails: + m.ResetDetails() + return nil + } + return fmt.Errorf("unknown InternalPolicy field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *InternalPolicyMutation) AddedEdges() []string { + edges := make([]string, 0, 4) + if m.controlobjectives != nil { + edges = append(edges, internalpolicy.EdgeControlobjectives) + } + if m.controls != nil { + edges = append(edges, internalpolicy.EdgeControls) + } + if m.procedures != nil { + edges = append(edges, internalpolicy.EdgeProcedures) + } + if m.narratives != nil { + edges = append(edges, internalpolicy.EdgeNarratives) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *InternalPolicyMutation) AddedIDs(name string) []ent.Value { + switch name { + case internalpolicy.EdgeControlobjectives: + ids := make([]ent.Value, 0, len(m.controlobjectives)) + for id := range m.controlobjectives { + ids = append(ids, id) + } + return ids + case internalpolicy.EdgeControls: + ids := make([]ent.Value, 0, len(m.controls)) + for id := range m.controls { + ids = append(ids, id) + } + return ids + case internalpolicy.EdgeProcedures: + ids := make([]ent.Value, 0, len(m.procedures)) + for id := range m.procedures { + ids = append(ids, id) + } + return ids + case internalpolicy.EdgeNarratives: + ids := make([]ent.Value, 0, len(m.narratives)) + for id := range m.narratives { + ids = append(ids, id) + } + return ids + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *InternalPolicyMutation) RemovedEdges() []string { + edges := make([]string, 0, 4) + if m.removedcontrolobjectives != nil { + edges = append(edges, internalpolicy.EdgeControlobjectives) + } + if m.removedcontrols != nil { + edges = append(edges, internalpolicy.EdgeControls) + } + if m.removedprocedures != nil { + edges = append(edges, internalpolicy.EdgeProcedures) + } + if m.removednarratives != nil { + edges = append(edges, internalpolicy.EdgeNarratives) + } + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *InternalPolicyMutation) RemovedIDs(name string) []ent.Value { + switch name { + case internalpolicy.EdgeControlobjectives: + ids := make([]ent.Value, 0, len(m.removedcontrolobjectives)) + for id := range m.removedcontrolobjectives { + ids = append(ids, id) + } + return ids + case internalpolicy.EdgeControls: + ids := make([]ent.Value, 0, len(m.removedcontrols)) + for id := range m.removedcontrols { + ids = append(ids, id) + } + return ids + case internalpolicy.EdgeProcedures: + ids := make([]ent.Value, 0, len(m.removedprocedures)) + for id := range m.removedprocedures { + ids = append(ids, id) + } + return ids + case internalpolicy.EdgeNarratives: + ids := make([]ent.Value, 0, len(m.removednarratives)) + for id := range m.removednarratives { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *InternalPolicyMutation) ClearedEdges() []string { + edges := make([]string, 0, 4) + if m.clearedcontrolobjectives { + edges = append(edges, internalpolicy.EdgeControlobjectives) + } + if m.clearedcontrols { + edges = append(edges, internalpolicy.EdgeControls) + } + if m.clearedprocedures { + edges = append(edges, internalpolicy.EdgeProcedures) + } + if m.clearednarratives { + edges = append(edges, internalpolicy.EdgeNarratives) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *InternalPolicyMutation) EdgeCleared(name string) bool { + switch name { + case internalpolicy.EdgeControlobjectives: + return m.clearedcontrolobjectives + case internalpolicy.EdgeControls: + return m.clearedcontrols + case internalpolicy.EdgeProcedures: + return m.clearedprocedures + case internalpolicy.EdgeNarratives: + return m.clearednarratives + } + 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 *InternalPolicyMutation) ClearEdge(name string) error { + switch name { + } + return fmt.Errorf("unknown InternalPolicy 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 *InternalPolicyMutation) ResetEdge(name string) error { + switch name { + case internalpolicy.EdgeControlobjectives: + m.ResetControlobjectives() + return nil + case internalpolicy.EdgeControls: + m.ResetControls() + return nil + case internalpolicy.EdgeProcedures: + m.ResetProcedures() + return nil + case internalpolicy.EdgeNarratives: + m.ResetNarratives() + return nil + } + return fmt.Errorf("unknown InternalPolicy edge %s", name) +} + +// InternalPolicyHistoryMutation represents an operation that mutates the InternalPolicyHistory nodes in the graph. +type InternalPolicyHistoryMutation 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 + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + status *string + policy_type *string + version *string + purpose_and_scope *string + background *string + details *map[string]interface{} + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*InternalPolicyHistory, error) + predicates []predicate.InternalPolicyHistory +} + +var _ ent.Mutation = (*InternalPolicyHistoryMutation)(nil) + +// internalpolicyhistoryOption allows management of the mutation configuration using functional options. +type internalpolicyhistoryOption func(*InternalPolicyHistoryMutation) + +// newInternalPolicyHistoryMutation creates new mutation for the InternalPolicyHistory entity. +func newInternalPolicyHistoryMutation(c config, op Op, opts ...internalpolicyhistoryOption) *InternalPolicyHistoryMutation { + m := &InternalPolicyHistoryMutation{ + config: c, + op: op, + typ: TypeInternalPolicyHistory, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withInternalPolicyHistoryID sets the ID field of the mutation. +func withInternalPolicyHistoryID(id string) internalpolicyhistoryOption { + return func(m *InternalPolicyHistoryMutation) { + var ( + err error + once sync.Once + value *InternalPolicyHistory + ) + m.oldValue = func(ctx context.Context) (*InternalPolicyHistory, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().InternalPolicyHistory.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withInternalPolicyHistory sets the old InternalPolicyHistory of the mutation. +func withInternalPolicyHistory(node *InternalPolicyHistory) internalpolicyhistoryOption { + return func(m *InternalPolicyHistoryMutation) { + m.oldValue = func(context.Context) (*InternalPolicyHistory, 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 InternalPolicyHistoryMutation) 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 InternalPolicyHistoryMutation) 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 InternalPolicyHistory entities. +func (m *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) 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().InternalPolicyHistory.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 *InternalPolicyHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *InternalPolicyHistoryMutation) 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 InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *InternalPolicyHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *InternalPolicyHistoryMutation) 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 InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[internalpolicyhistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *InternalPolicyHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, internalpolicyhistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *InternalPolicyHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *InternalPolicyHistoryMutation) 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 InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ResetOperation() { + m.operation = nil +} + +// SetCreatedAt sets the "created_at" field. +func (m *InternalPolicyHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *InternalPolicyHistoryMutation) 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 InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[internalpolicyhistory.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *InternalPolicyHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, internalpolicyhistory.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *InternalPolicyHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *InternalPolicyHistoryMutation) 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 InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[internalpolicyhistory.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *InternalPolicyHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, internalpolicyhistory.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *InternalPolicyHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *InternalPolicyHistoryMutation) 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 InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[internalpolicyhistory.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *InternalPolicyHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, internalpolicyhistory.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *InternalPolicyHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *InternalPolicyHistoryMutation) 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 InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[internalpolicyhistory.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *InternalPolicyHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, internalpolicyhistory.FieldUpdatedBy) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *InternalPolicyHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *InternalPolicyHistoryMutation) 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 InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[internalpolicyhistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *InternalPolicyHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, internalpolicyhistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *InternalPolicyHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *InternalPolicyHistoryMutation) 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 InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[internalpolicyhistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *InternalPolicyHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, internalpolicyhistory.FieldDeletedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *InternalPolicyHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *InternalPolicyHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *InternalPolicyHistoryMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *InternalPolicyHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *InternalPolicyHistoryMutation) 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 InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[internalpolicyhistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *InternalPolicyHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, internalpolicyhistory.FieldTags) +} + +// SetName sets the "name" field. +func (m *InternalPolicyHistoryMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *InternalPolicyHistoryMutation) 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 InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *InternalPolicyHistoryMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *InternalPolicyHistoryMutation) 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 InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) 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 +} + +// ResetDescription resets all changes to the "description" field. +func (m *InternalPolicyHistoryMutation) ResetDescription() { + m.description = nil +} + +// SetStatus sets the "status" field. +func (m *InternalPolicyHistoryMutation) SetStatus(s string) { + m.status = &s +} + +// Status returns the value of the "status" field in the mutation. +func (m *InternalPolicyHistoryMutation) Status() (r string, exists bool) { + v := m.status + if v == nil { + return + } + return *v, true +} + +// OldStatus returns the old "status" field's value of the InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) OldStatus(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStatus is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStatus requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStatus: %w", err) + } + return oldValue.Status, nil +} + +// ClearStatus clears the value of the "status" field. +func (m *InternalPolicyHistoryMutation) ClearStatus() { + m.status = nil + m.clearedFields[internalpolicyhistory.FieldStatus] = struct{}{} +} + +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) StatusCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldStatus] + return ok +} + +// ResetStatus resets all changes to the "status" field. +func (m *InternalPolicyHistoryMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, internalpolicyhistory.FieldStatus) +} + +// SetPolicyType sets the "policy_type" field. +func (m *InternalPolicyHistoryMutation) SetPolicyType(s string) { + m.policy_type = &s +} + +// PolicyType returns the value of the "policy_type" field in the mutation. +func (m *InternalPolicyHistoryMutation) PolicyType() (r string, exists bool) { + v := m.policy_type + if v == nil { + return + } + return *v, true +} + +// OldPolicyType returns the old "policy_type" field's value of the InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) OldPolicyType(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldPolicyType is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldPolicyType requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldPolicyType: %w", err) + } + return oldValue.PolicyType, nil +} + +// ClearPolicyType clears the value of the "policy_type" field. +func (m *InternalPolicyHistoryMutation) ClearPolicyType() { + m.policy_type = nil + m.clearedFields[internalpolicyhistory.FieldPolicyType] = struct{}{} +} + +// PolicyTypeCleared returns if the "policy_type" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) PolicyTypeCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldPolicyType] + return ok +} + +// ResetPolicyType resets all changes to the "policy_type" field. +func (m *InternalPolicyHistoryMutation) ResetPolicyType() { + m.policy_type = nil + delete(m.clearedFields, internalpolicyhistory.FieldPolicyType) +} + +// SetVersion sets the "version" field. +func (m *InternalPolicyHistoryMutation) SetVersion(s string) { + m.version = &s +} + +// Version returns the value of the "version" field in the mutation. +func (m *InternalPolicyHistoryMutation) Version() (r string, exists bool) { + v := m.version + if v == nil { + return + } + return *v, true +} + +// OldVersion returns the old "version" field's value of the InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) OldVersion(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldVersion is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldVersion requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldVersion: %w", err) + } + return oldValue.Version, nil +} + +// ClearVersion clears the value of the "version" field. +func (m *InternalPolicyHistoryMutation) ClearVersion() { + m.version = nil + m.clearedFields[internalpolicyhistory.FieldVersion] = struct{}{} +} + +// VersionCleared returns if the "version" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) VersionCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldVersion] + return ok +} + +// ResetVersion resets all changes to the "version" field. +func (m *InternalPolicyHistoryMutation) ResetVersion() { + m.version = nil + delete(m.clearedFields, internalpolicyhistory.FieldVersion) +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (m *InternalPolicyHistoryMutation) SetPurposeAndScope(s string) { + m.purpose_and_scope = &s +} + +// PurposeAndScope returns the value of the "purpose_and_scope" field in the mutation. +func (m *InternalPolicyHistoryMutation) PurposeAndScope() (r string, exists bool) { + v := m.purpose_and_scope + if v == nil { + return + } + return *v, true +} + +// OldPurposeAndScope returns the old "purpose_and_scope" field's value of the InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) OldPurposeAndScope(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldPurposeAndScope is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldPurposeAndScope requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldPurposeAndScope: %w", err) + } + return oldValue.PurposeAndScope, nil +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (m *InternalPolicyHistoryMutation) ClearPurposeAndScope() { + m.purpose_and_scope = nil + m.clearedFields[internalpolicyhistory.FieldPurposeAndScope] = struct{}{} +} + +// PurposeAndScopeCleared returns if the "purpose_and_scope" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) PurposeAndScopeCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldPurposeAndScope] + return ok +} + +// ResetPurposeAndScope resets all changes to the "purpose_and_scope" field. +func (m *InternalPolicyHistoryMutation) ResetPurposeAndScope() { + m.purpose_and_scope = nil + delete(m.clearedFields, internalpolicyhistory.FieldPurposeAndScope) +} + +// SetBackground sets the "background" field. +func (m *InternalPolicyHistoryMutation) SetBackground(s string) { + m.background = &s +} + +// Background returns the value of the "background" field in the mutation. +func (m *InternalPolicyHistoryMutation) Background() (r string, exists bool) { + v := m.background + if v == nil { + return + } + return *v, true +} + +// OldBackground returns the old "background" field's value of the InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) OldBackground(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldBackground is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldBackground requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldBackground: %w", err) + } + return oldValue.Background, nil +} + +// ClearBackground clears the value of the "background" field. +func (m *InternalPolicyHistoryMutation) ClearBackground() { + m.background = nil + m.clearedFields[internalpolicyhistory.FieldBackground] = struct{}{} +} + +// BackgroundCleared returns if the "background" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) BackgroundCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldBackground] + return ok +} + +// ResetBackground resets all changes to the "background" field. +func (m *InternalPolicyHistoryMutation) ResetBackground() { + m.background = nil + delete(m.clearedFields, internalpolicyhistory.FieldBackground) +} + +// SetDetails sets the "details" field. +func (m *InternalPolicyHistoryMutation) SetDetails(value map[string]interface{}) { + m.details = &value +} + +// Details returns the value of the "details" field in the mutation. +func (m *InternalPolicyHistoryMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details + if v == nil { + return + } + return *v, true +} + +// OldDetails returns the old "details" field's value of the InternalPolicyHistory entity. +// If the InternalPolicyHistory 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 *InternalPolicyHistoryMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetails is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetails requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetails: %w", err) + } + return oldValue.Details, nil +} + +// ClearDetails clears the value of the "details" field. +func (m *InternalPolicyHistoryMutation) ClearDetails() { + m.details = nil + m.clearedFields[internalpolicyhistory.FieldDetails] = struct{}{} +} + +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *InternalPolicyHistoryMutation) DetailsCleared() bool { + _, ok := m.clearedFields[internalpolicyhistory.FieldDetails] + return ok +} + +// ResetDetails resets all changes to the "details" field. +func (m *InternalPolicyHistoryMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, internalpolicyhistory.FieldDetails) +} + +// Where appends a list predicates to the InternalPolicyHistoryMutation builder. +func (m *InternalPolicyHistoryMutation) Where(ps ...predicate.InternalPolicyHistory) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the InternalPolicyHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *InternalPolicyHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.InternalPolicyHistory, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *InternalPolicyHistoryMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *InternalPolicyHistoryMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (InternalPolicyHistory). +func (m *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) Fields() []string { + fields := make([]string, 0, 19) + if m.history_time != nil { + fields = append(fields, internalpolicyhistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, internalpolicyhistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, internalpolicyhistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, internalpolicyhistory.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, internalpolicyhistory.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, internalpolicyhistory.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, internalpolicyhistory.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, internalpolicyhistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, internalpolicyhistory.FieldDeletedBy) + } + if m.mapping_id != nil { + fields = append(fields, internalpolicyhistory.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, internalpolicyhistory.FieldTags) + } + if m.name != nil { + fields = append(fields, internalpolicyhistory.FieldName) + } + if m.description != nil { + fields = append(fields, internalpolicyhistory.FieldDescription) + } + if m.status != nil { + fields = append(fields, internalpolicyhistory.FieldStatus) + } + if m.policy_type != nil { + fields = append(fields, internalpolicyhistory.FieldPolicyType) + } + if m.version != nil { + fields = append(fields, internalpolicyhistory.FieldVersion) + } + if m.purpose_and_scope != nil { + fields = append(fields, internalpolicyhistory.FieldPurposeAndScope) + } + if m.background != nil { + fields = append(fields, internalpolicyhistory.FieldBackground) + } + if m.details != nil { + fields = append(fields, internalpolicyhistory.FieldDetails) + } + 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 *InternalPolicyHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case internalpolicyhistory.FieldHistoryTime: + return m.HistoryTime() + case internalpolicyhistory.FieldRef: + return m.Ref() + case internalpolicyhistory.FieldOperation: + return m.Operation() + case internalpolicyhistory.FieldCreatedAt: + return m.CreatedAt() + case internalpolicyhistory.FieldUpdatedAt: + return m.UpdatedAt() + case internalpolicyhistory.FieldCreatedBy: + return m.CreatedBy() + case internalpolicyhistory.FieldUpdatedBy: + return m.UpdatedBy() + case internalpolicyhistory.FieldDeletedAt: + return m.DeletedAt() + case internalpolicyhistory.FieldDeletedBy: + return m.DeletedBy() + case internalpolicyhistory.FieldMappingID: + return m.MappingID() + case internalpolicyhistory.FieldTags: + return m.Tags() + case internalpolicyhistory.FieldName: + return m.Name() + case internalpolicyhistory.FieldDescription: + return m.Description() + case internalpolicyhistory.FieldStatus: + return m.Status() + case internalpolicyhistory.FieldPolicyType: + return m.PolicyType() + case internalpolicyhistory.FieldVersion: + return m.Version() + case internalpolicyhistory.FieldPurposeAndScope: + return m.PurposeAndScope() + case internalpolicyhistory.FieldBackground: + return m.Background() + case internalpolicyhistory.FieldDetails: + return m.Details() + } + 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 *InternalPolicyHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case internalpolicyhistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case internalpolicyhistory.FieldRef: + return m.OldRef(ctx) + case internalpolicyhistory.FieldOperation: + return m.OldOperation(ctx) + case internalpolicyhistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case internalpolicyhistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case internalpolicyhistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case internalpolicyhistory.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case internalpolicyhistory.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case internalpolicyhistory.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case internalpolicyhistory.FieldMappingID: + return m.OldMappingID(ctx) + case internalpolicyhistory.FieldTags: + return m.OldTags(ctx) + case internalpolicyhistory.FieldName: + return m.OldName(ctx) + case internalpolicyhistory.FieldDescription: + return m.OldDescription(ctx) + case internalpolicyhistory.FieldStatus: + return m.OldStatus(ctx) + case internalpolicyhistory.FieldPolicyType: + return m.OldPolicyType(ctx) + case internalpolicyhistory.FieldVersion: + return m.OldVersion(ctx) + case internalpolicyhistory.FieldPurposeAndScope: + return m.OldPurposeAndScope(ctx) + case internalpolicyhistory.FieldBackground: + return m.OldBackground(ctx) + case internalpolicyhistory.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown InternalPolicyHistory 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 *InternalPolicyHistoryMutation) SetField(name string, value ent.Value) error { + switch name { + case internalpolicyhistory.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 internalpolicyhistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case internalpolicyhistory.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 internalpolicyhistory.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 internalpolicyhistory.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 internalpolicyhistory.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case internalpolicyhistory.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case internalpolicyhistory.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 internalpolicyhistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case internalpolicyhistory.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case internalpolicyhistory.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case internalpolicyhistory.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case internalpolicyhistory.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case internalpolicyhistory.FieldStatus: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStatus(v) + return nil + case internalpolicyhistory.FieldPolicyType: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetPolicyType(v) + return nil + case internalpolicyhistory.FieldVersion: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetVersion(v) + return nil + case internalpolicyhistory.FieldPurposeAndScope: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetPurposeAndScope(v) + return nil + case internalpolicyhistory.FieldBackground: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetBackground(v) + return nil + case internalpolicyhistory.FieldDetails: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDetails(v) + return nil + } + return fmt.Errorf("unknown InternalPolicyHistory field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown InternalPolicyHistory numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *InternalPolicyHistoryMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(internalpolicyhistory.FieldRef) { + fields = append(fields, internalpolicyhistory.FieldRef) + } + if m.FieldCleared(internalpolicyhistory.FieldCreatedAt) { + fields = append(fields, internalpolicyhistory.FieldCreatedAt) + } + if m.FieldCleared(internalpolicyhistory.FieldUpdatedAt) { + fields = append(fields, internalpolicyhistory.FieldUpdatedAt) + } + if m.FieldCleared(internalpolicyhistory.FieldCreatedBy) { + fields = append(fields, internalpolicyhistory.FieldCreatedBy) + } + if m.FieldCleared(internalpolicyhistory.FieldUpdatedBy) { + fields = append(fields, internalpolicyhistory.FieldUpdatedBy) + } + if m.FieldCleared(internalpolicyhistory.FieldDeletedAt) { + fields = append(fields, internalpolicyhistory.FieldDeletedAt) + } + if m.FieldCleared(internalpolicyhistory.FieldDeletedBy) { + fields = append(fields, internalpolicyhistory.FieldDeletedBy) + } + if m.FieldCleared(internalpolicyhistory.FieldTags) { + fields = append(fields, internalpolicyhistory.FieldTags) + } + if m.FieldCleared(internalpolicyhistory.FieldStatus) { + fields = append(fields, internalpolicyhistory.FieldStatus) + } + if m.FieldCleared(internalpolicyhistory.FieldPolicyType) { + fields = append(fields, internalpolicyhistory.FieldPolicyType) + } + if m.FieldCleared(internalpolicyhistory.FieldVersion) { + fields = append(fields, internalpolicyhistory.FieldVersion) + } + if m.FieldCleared(internalpolicyhistory.FieldPurposeAndScope) { + fields = append(fields, internalpolicyhistory.FieldPurposeAndScope) + } + if m.FieldCleared(internalpolicyhistory.FieldBackground) { + fields = append(fields, internalpolicyhistory.FieldBackground) + } + if m.FieldCleared(internalpolicyhistory.FieldDetails) { + fields = append(fields, internalpolicyhistory.FieldDetails) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ClearField(name string) error { + switch name { + case internalpolicyhistory.FieldRef: + m.ClearRef() + return nil + case internalpolicyhistory.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case internalpolicyhistory.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case internalpolicyhistory.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case internalpolicyhistory.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case internalpolicyhistory.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case internalpolicyhistory.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case internalpolicyhistory.FieldTags: + m.ClearTags() + return nil + case internalpolicyhistory.FieldStatus: + m.ClearStatus() + return nil + case internalpolicyhistory.FieldPolicyType: + m.ClearPolicyType() + return nil + case internalpolicyhistory.FieldVersion: + m.ClearVersion() + return nil + case internalpolicyhistory.FieldPurposeAndScope: + m.ClearPurposeAndScope() + return nil + case internalpolicyhistory.FieldBackground: + m.ClearBackground() + return nil + case internalpolicyhistory.FieldDetails: + m.ClearDetails() + return nil + } + return fmt.Errorf("unknown InternalPolicyHistory 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 *InternalPolicyHistoryMutation) ResetField(name string) error { + switch name { + case internalpolicyhistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case internalpolicyhistory.FieldRef: + m.ResetRef() + return nil + case internalpolicyhistory.FieldOperation: + m.ResetOperation() + return nil + case internalpolicyhistory.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case internalpolicyhistory.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case internalpolicyhistory.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case internalpolicyhistory.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case internalpolicyhistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case internalpolicyhistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case internalpolicyhistory.FieldMappingID: + m.ResetMappingID() + return nil + case internalpolicyhistory.FieldTags: + m.ResetTags() + return nil + case internalpolicyhistory.FieldName: + m.ResetName() + return nil + case internalpolicyhistory.FieldDescription: + m.ResetDescription() + return nil + case internalpolicyhistory.FieldStatus: + m.ResetStatus() + return nil + case internalpolicyhistory.FieldPolicyType: + m.ResetPolicyType() + return nil + case internalpolicyhistory.FieldVersion: + m.ResetVersion() + return nil + case internalpolicyhistory.FieldPurposeAndScope: + m.ResetPurposeAndScope() + return nil + case internalpolicyhistory.FieldBackground: + m.ResetBackground() + return nil + case internalpolicyhistory.FieldDetails: + m.ResetDetails() + return nil + } + return fmt.Errorf("unknown InternalPolicyHistory field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) AddedIDs(name string) []ent.Value { + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) RemovedIDs(name string) []ent.Value { + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) 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 *InternalPolicyHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown InternalPolicyHistory 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 *InternalPolicyHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown InternalPolicyHistory edge %s", name) +} + +// InviteMutation represents an operation that mutates the Invite nodes in the graph. +type InviteMutation struct { + config + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + deleted_at *time.Time + deleted_by *string + token *string + expires *time.Time + recipient *string + status *enums.InviteStatus + role *enums.Role + send_attempts *int + addsend_attempts *int + requestor_id *string + secret *[]byte + clearedFields map[string]struct{} + owner *string + clearedowner bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + done bool + oldValue func(context.Context) (*Invite, error) + predicates []predicate.Invite +} + +var _ ent.Mutation = (*InviteMutation)(nil) + +// inviteOption allows management of the mutation configuration using functional options. +type inviteOption func(*InviteMutation) + +// newInviteMutation creates new mutation for the Invite entity. +func newInviteMutation(c config, op Op, opts ...inviteOption) *InviteMutation { + m := &InviteMutation{ + config: c, + op: op, + typ: TypeInvite, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withInviteID sets the ID field of the mutation. +func withInviteID(id string) inviteOption { + return func(m *InviteMutation) { + var ( + err error + once sync.Once + value *Invite + ) + m.oldValue = func(ctx context.Context) (*Invite, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().Invite.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withInvite sets the old Invite of the mutation. +func withInvite(node *Invite) inviteOption { + return func(m *InviteMutation) { + m.oldValue = func(context.Context) (*Invite, 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 InviteMutation) 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 InviteMutation) 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 Invite entities. +func (m *InviteMutation) 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 *InviteMutation) 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 *InviteMutation) 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().Invite.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 *InviteMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *InviteMutation) 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 Invite entity. +// If the Invite 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 *InviteMutation) 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 *InviteMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[invite.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *InviteMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[invite.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *InviteMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, invite.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *InviteMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *InviteMutation) 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 Invite entity. +// If the Invite 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 *InviteMutation) 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 *InviteMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[invite.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *InviteMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[invite.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *InviteMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, invite.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *InviteMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *InviteMutation) 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 Invite entity. +// If the Invite 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 *InviteMutation) 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 *InviteMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[invite.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *InviteMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[invite.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *InviteMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, invite.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *InviteMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *InviteMutation) 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 Invite entity. +// If the Invite 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 *InviteMutation) 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 *InviteMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[invite.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *InviteMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[invite.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *InviteMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, invite.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *InviteMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *InviteMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the Invite entity. +// If the Invite 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 *InviteMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *InviteMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *InviteMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *InviteMutation) 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 Invite entity. +// If the Invite 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 *InviteMutation) 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 *InviteMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[invite.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *InviteMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[invite.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *InviteMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, invite.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *InviteMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *InviteMutation) 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 Invite entity. +// If the Invite 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 *InviteMutation) 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 *InviteMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[invite.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *InviteMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[invite.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *InviteMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, invite.FieldDeletedBy) +} + +// SetOwnerID sets the "owner_id" field. +func (m *InviteMutation) SetOwnerID(s string) { + m.owner = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *InviteMutation) 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 Invite entity. +// If the Invite 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 *InviteMutation) 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 *InviteMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[invite.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *InviteMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[invite.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *InviteMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, invite.FieldOwnerID) +} + +// SetToken sets the "token" field. +func (m *InviteMutation) SetToken(s string) { + m.token = &s +} + +// Token returns the value of the "token" field in the mutation. +func (m *InviteMutation) Token() (r string, exists bool) { + v := m.token + if v == nil { + return + } + return *v, true +} + +// OldToken returns the old "token" field's value of the Invite entity. +// If the Invite 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 *InviteMutation) OldToken(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldToken is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldToken requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldToken: %w", err) + } + return oldValue.Token, nil +} + +// ResetToken resets all changes to the "token" field. +func (m *InviteMutation) ResetToken() { + m.token = nil +} + +// SetExpires sets the "expires" field. +func (m *InviteMutation) SetExpires(t time.Time) { + m.expires = &t +} + +// Expires returns the value of the "expires" field in the mutation. +func (m *InviteMutation) Expires() (r time.Time, exists bool) { + v := m.expires + if v == nil { + return + } + return *v, true +} + +// OldExpires returns the old "expires" field's value of the Invite entity. +// If the Invite 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 *InviteMutation) OldExpires(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldExpires is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldExpires requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldExpires: %w", err) + } + return oldValue.Expires, nil +} + +// ClearExpires clears the value of the "expires" field. +func (m *InviteMutation) ClearExpires() { + m.expires = nil + m.clearedFields[invite.FieldExpires] = struct{}{} +} + +// ExpiresCleared returns if the "expires" field was cleared in this mutation. +func (m *InviteMutation) ExpiresCleared() bool { + _, ok := m.clearedFields[invite.FieldExpires] + return ok +} + +// ResetExpires resets all changes to the "expires" field. +func (m *InviteMutation) ResetExpires() { + m.expires = nil + delete(m.clearedFields, invite.FieldExpires) +} + +// SetRecipient sets the "recipient" field. +func (m *InviteMutation) SetRecipient(s string) { + m.recipient = &s +} + +// Recipient returns the value of the "recipient" field in the mutation. +func (m *InviteMutation) Recipient() (r string, exists bool) { + v := m.recipient + if v == nil { + return + } + return *v, true +} + +// OldRecipient returns the old "recipient" field's value of the Invite entity. +// If the Invite 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 *InviteMutation) OldRecipient(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldRecipient is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldRecipient requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldRecipient: %w", err) + } + return oldValue.Recipient, nil +} + +// ResetRecipient resets all changes to the "recipient" field. +func (m *InviteMutation) ResetRecipient() { + m.recipient = nil +} + +// SetStatus sets the "status" field. +func (m *InviteMutation) SetStatus(es enums.InviteStatus) { + m.status = &es +} + +// Status returns the value of the "status" field in the mutation. +func (m *InviteMutation) Status() (r enums.InviteStatus, exists bool) { + v := m.status + if v == nil { + return + } + return *v, true +} + +// OldStatus returns the old "status" field's value of the Invite entity. +// If the Invite 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 *InviteMutation) OldStatus(ctx context.Context) (v enums.InviteStatus, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStatus is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStatus requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStatus: %w", err) + } + return oldValue.Status, nil +} + +// ResetStatus resets all changes to the "status" field. +func (m *InviteMutation) ResetStatus() { + m.status = nil +} + +// SetRole sets the "role" field. +func (m *InviteMutation) SetRole(e enums.Role) { + m.role = &e +} + +// Role returns the value of the "role" field in the mutation. +func (m *InviteMutation) Role() (r enums.Role, exists bool) { + v := m.role + if v == nil { + return + } + return *v, true +} + +// OldRole returns the old "role" field's value of the Invite entity. +// If the Invite 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 *InviteMutation) OldRole(ctx context.Context) (v enums.Role, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldRole is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldRole requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldRole: %w", err) + } + return oldValue.Role, nil +} + +// ResetRole resets all changes to the "role" field. +func (m *InviteMutation) ResetRole() { + m.role = nil +} + +// SetSendAttempts sets the "send_attempts" field. +func (m *InviteMutation) SetSendAttempts(i int) { + m.send_attempts = &i + m.addsend_attempts = nil +} + +// SendAttempts returns the value of the "send_attempts" field in the mutation. +func (m *InviteMutation) SendAttempts() (r int, exists bool) { + v := m.send_attempts + if v == nil { + return + } + return *v, true +} + +// OldSendAttempts returns the old "send_attempts" field's value of the Invite entity. +// If the Invite 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 *InviteMutation) OldSendAttempts(ctx context.Context) (v int, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSendAttempts is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSendAttempts requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSendAttempts: %w", err) + } + return oldValue.SendAttempts, nil +} + +// AddSendAttempts adds i to the "send_attempts" field. +func (m *InviteMutation) AddSendAttempts(i int) { + if m.addsend_attempts != nil { + *m.addsend_attempts += i + } else { + m.addsend_attempts = &i + } +} + +// AddedSendAttempts returns the value that was added to the "send_attempts" field in this mutation. +func (m *InviteMutation) AddedSendAttempts() (r int, exists bool) { + v := m.addsend_attempts + if v == nil { + return + } + return *v, true +} + +// ResetSendAttempts resets all changes to the "send_attempts" field. +func (m *InviteMutation) ResetSendAttempts() { + m.send_attempts = nil + m.addsend_attempts = nil +} + +// SetRequestorID sets the "requestor_id" field. +func (m *InviteMutation) SetRequestorID(s string) { + m.requestor_id = &s +} + +// RequestorID returns the value of the "requestor_id" field in the mutation. +func (m *InviteMutation) RequestorID() (r string, exists bool) { + v := m.requestor_id + if v == nil { + return + } + return *v, true +} + +// OldRequestorID returns the old "requestor_id" field's value of the Invite entity. +// If the Invite 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 *InviteMutation) OldRequestorID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldRequestorID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldRequestorID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldRequestorID: %w", err) + } + return oldValue.RequestorID, nil +} + +// ClearRequestorID clears the value of the "requestor_id" field. +func (m *InviteMutation) ClearRequestorID() { + m.requestor_id = nil + m.clearedFields[invite.FieldRequestorID] = struct{}{} +} + +// RequestorIDCleared returns if the "requestor_id" field was cleared in this mutation. +func (m *InviteMutation) RequestorIDCleared() bool { + _, ok := m.clearedFields[invite.FieldRequestorID] + return ok +} + +// ResetRequestorID resets all changes to the "requestor_id" field. +func (m *InviteMutation) ResetRequestorID() { + m.requestor_id = nil + delete(m.clearedFields, invite.FieldRequestorID) +} + +// SetSecret sets the "secret" field. +func (m *InviteMutation) SetSecret(b []byte) { + m.secret = &b +} + +// Secret returns the value of the "secret" field in the mutation. +func (m *InviteMutation) Secret() (r []byte, exists bool) { + v := m.secret + if v == nil { + return + } + return *v, true +} + +// OldSecret returns the old "secret" field's value of the Invite entity. +// If the Invite 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 *InviteMutation) OldSecret(ctx context.Context) (v *[]byte, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSecret is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSecret requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSecret: %w", err) + } + return oldValue.Secret, nil +} + +// ResetSecret resets all changes to the "secret" field. +func (m *InviteMutation) ResetSecret() { + m.secret = nil +} + +// ClearOwner clears the "owner" edge to the Organization entity. +func (m *InviteMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[invite.FieldOwnerID] = struct{}{} +} + +// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. +func (m *InviteMutation) 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 *InviteMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetOwner resets all changes to the "owner" edge. +func (m *InviteMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false +} + +// AddEventIDs adds the "events" edge to the Event entity by ids. +func (m *InviteMutation) AddEventIDs(ids ...string) { + if m.events == nil { + m.events = make(map[string]struct{}) + } + for i := range ids { + m.events[ids[i]] = struct{}{} + } +} + +// ClearEvents clears the "events" edge to the Event entity. +func (m *InviteMutation) ClearEvents() { + m.clearedevents = true +} + +// EventsCleared reports if the "events" edge to the Event entity was cleared. +func (m *InviteMutation) EventsCleared() bool { + return m.clearedevents +} + +// RemoveEventIDs removes the "events" edge to the Event entity by IDs. +func (m *InviteMutation) RemoveEventIDs(ids ...string) { + if m.removedevents == nil { + m.removedevents = make(map[string]struct{}) + } + for i := range ids { + delete(m.events, ids[i]) + m.removedevents[ids[i]] = struct{}{} + } +} + +// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. +func (m *InviteMutation) RemovedEventsIDs() (ids []string) { + for id := range m.removedevents { + ids = append(ids, id) + } + return +} + +// EventsIDs returns the "events" edge IDs in the mutation. +func (m *InviteMutation) EventsIDs() (ids []string) { + for id := range m.events { + ids = append(ids, id) + } + return +} + +// ResetEvents resets all changes to the "events" edge. +func (m *InviteMutation) ResetEvents() { + m.events = nil + m.clearedevents = false + m.removedevents = nil +} + +// Where appends a list predicates to the InviteMutation builder. +func (m *InviteMutation) Where(ps ...predicate.Invite) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the InviteMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *InviteMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Invite, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *InviteMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *InviteMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (Invite). +func (m *InviteMutation) 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 *InviteMutation) Fields() []string { + fields := make([]string, 0, 16) + if m.created_at != nil { + fields = append(fields, invite.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, invite.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, invite.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, invite.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, invite.FieldMappingID) + } + if m.deleted_at != nil { + fields = append(fields, invite.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, invite.FieldDeletedBy) + } + if m.owner != nil { + fields = append(fields, invite.FieldOwnerID) + } + if m.token != nil { + fields = append(fields, invite.FieldToken) + } + if m.expires != nil { + fields = append(fields, invite.FieldExpires) + } + if m.recipient != nil { + fields = append(fields, invite.FieldRecipient) + } + if m.status != nil { + fields = append(fields, invite.FieldStatus) + } + if m.role != nil { + fields = append(fields, invite.FieldRole) + } + if m.send_attempts != nil { + fields = append(fields, invite.FieldSendAttempts) + } + if m.requestor_id != nil { + fields = append(fields, invite.FieldRequestorID) + } + if m.secret != nil { + fields = append(fields, invite.FieldSecret) + } + 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 *InviteMutation) Field(name string) (ent.Value, bool) { + switch name { + case invite.FieldCreatedAt: + return m.CreatedAt() + case invite.FieldUpdatedAt: + return m.UpdatedAt() + case invite.FieldCreatedBy: + return m.CreatedBy() + case invite.FieldUpdatedBy: + return m.UpdatedBy() + case invite.FieldMappingID: + return m.MappingID() + case invite.FieldDeletedAt: + return m.DeletedAt() + case invite.FieldDeletedBy: + return m.DeletedBy() + case invite.FieldOwnerID: + return m.OwnerID() + case invite.FieldToken: + return m.Token() + case invite.FieldExpires: + return m.Expires() + case invite.FieldRecipient: + return m.Recipient() + case invite.FieldStatus: + return m.Status() + case invite.FieldRole: + return m.Role() + case invite.FieldSendAttempts: + return m.SendAttempts() + case invite.FieldRequestorID: + return m.RequestorID() + case invite.FieldSecret: + return m.Secret() + } + 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 *InviteMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case invite.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case invite.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case invite.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case invite.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case invite.FieldMappingID: + return m.OldMappingID(ctx) + case invite.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case invite.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case invite.FieldOwnerID: + return m.OldOwnerID(ctx) + case invite.FieldToken: + return m.OldToken(ctx) + case invite.FieldExpires: + return m.OldExpires(ctx) + case invite.FieldRecipient: + return m.OldRecipient(ctx) + case invite.FieldStatus: + return m.OldStatus(ctx) + case invite.FieldRole: + return m.OldRole(ctx) + case invite.FieldSendAttempts: + return m.OldSendAttempts(ctx) + case invite.FieldRequestorID: + return m.OldRequestorID(ctx) + case invite.FieldSecret: + return m.OldSecret(ctx) + } + return nil, fmt.Errorf("unknown Invite 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 *InviteMutation) SetField(name string, value ent.Value) error { + switch name { + case invite.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 invite.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 invite.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case invite.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case invite.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case invite.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 invite.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case invite.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case invite.FieldToken: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetToken(v) + return nil + case invite.FieldExpires: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetExpires(v) + return nil + case invite.FieldRecipient: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRecipient(v) + return nil + case invite.FieldStatus: + v, ok := value.(enums.InviteStatus) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStatus(v) + return nil + case invite.FieldRole: + v, ok := value.(enums.Role) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRole(v) + return nil + case invite.FieldSendAttempts: + v, ok := value.(int) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSendAttempts(v) + return nil + case invite.FieldRequestorID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRequestorID(v) + return nil + case invite.FieldSecret: + v, ok := value.([]byte) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSecret(v) + return nil + } + return fmt.Errorf("unknown Invite field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *InviteMutation) AddedFields() []string { + var fields []string + if m.addsend_attempts != nil { + fields = append(fields, invite.FieldSendAttempts) + } + return fields +} + +// 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 *InviteMutation) AddedField(name string) (ent.Value, bool) { + switch name { + case invite.FieldSendAttempts: + return m.AddedSendAttempts() + } + 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 *InviteMutation) AddField(name string, value ent.Value) error { + switch name { + case invite.FieldSendAttempts: + v, ok := value.(int) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.AddSendAttempts(v) + return nil + } + return fmt.Errorf("unknown Invite numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *InviteMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(invite.FieldCreatedAt) { + fields = append(fields, invite.FieldCreatedAt) + } + if m.FieldCleared(invite.FieldUpdatedAt) { + fields = append(fields, invite.FieldUpdatedAt) + } + if m.FieldCleared(invite.FieldCreatedBy) { + fields = append(fields, invite.FieldCreatedBy) + } + if m.FieldCleared(invite.FieldUpdatedBy) { + fields = append(fields, invite.FieldUpdatedBy) + } + if m.FieldCleared(invite.FieldDeletedAt) { + fields = append(fields, invite.FieldDeletedAt) + } + if m.FieldCleared(invite.FieldDeletedBy) { + fields = append(fields, invite.FieldDeletedBy) + } + if m.FieldCleared(invite.FieldOwnerID) { + fields = append(fields, invite.FieldOwnerID) + } + if m.FieldCleared(invite.FieldExpires) { + fields = append(fields, invite.FieldExpires) + } + if m.FieldCleared(invite.FieldRequestorID) { + fields = append(fields, invite.FieldRequestorID) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *InviteMutation) 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 *InviteMutation) ClearField(name string) error { + switch name { + case invite.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case invite.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case invite.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case invite.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case invite.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case invite.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case invite.FieldOwnerID: + m.ClearOwnerID() + return nil + case invite.FieldExpires: + m.ClearExpires() + return nil + case invite.FieldRequestorID: + m.ClearRequestorID() + return nil + } + return fmt.Errorf("unknown Invite 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 *InviteMutation) ResetField(name string) error { + switch name { + case invite.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case invite.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case invite.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case invite.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case invite.FieldMappingID: + m.ResetMappingID() + return nil + case invite.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case invite.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case invite.FieldOwnerID: + m.ResetOwnerID() + return nil + case invite.FieldToken: + m.ResetToken() + return nil + case invite.FieldExpires: + m.ResetExpires() + return nil + case invite.FieldRecipient: + m.ResetRecipient() + return nil + case invite.FieldStatus: + m.ResetStatus() + return nil + case invite.FieldRole: + m.ResetRole() + return nil + case invite.FieldSendAttempts: + m.ResetSendAttempts() + return nil + case invite.FieldRequestorID: + m.ResetRequestorID() + return nil + case invite.FieldSecret: + m.ResetSecret() + return nil + } + return fmt.Errorf("unknown Invite field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *InviteMutation) AddedEdges() []string { + edges := make([]string, 0, 2) + if m.owner != nil { + edges = append(edges, invite.EdgeOwner) + } + if m.events != nil { + edges = append(edges, invite.EdgeEvents) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *InviteMutation) AddedIDs(name string) []ent.Value { + switch name { + case invite.EdgeOwner: + if id := m.owner; id != nil { + return []ent.Value{*id} + } + case invite.EdgeEvents: + ids := make([]ent.Value, 0, len(m.events)) + for id := range m.events { + ids = append(ids, id) + } + return ids + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *InviteMutation) RemovedEdges() []string { + edges := make([]string, 0, 2) + if m.removedevents != nil { + edges = append(edges, invite.EdgeEvents) + } + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *InviteMutation) RemovedIDs(name string) []ent.Value { + switch name { + case invite.EdgeEvents: + ids := make([]ent.Value, 0, len(m.removedevents)) + for id := range m.removedevents { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *InviteMutation) ClearedEdges() []string { + edges := make([]string, 0, 2) + if m.clearedowner { + edges = append(edges, invite.EdgeOwner) + } + if m.clearedevents { + edges = append(edges, invite.EdgeEvents) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *InviteMutation) EdgeCleared(name string) bool { + switch name { + case invite.EdgeOwner: + return m.clearedowner + case invite.EdgeEvents: + return m.clearedevents + } + 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 *InviteMutation) ClearEdge(name string) error { + switch name { + case invite.EdgeOwner: + m.ClearOwner() + return nil + } + return fmt.Errorf("unknown Invite 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 *InviteMutation) ResetEdge(name string) error { + switch name { + case invite.EdgeOwner: + m.ResetOwner() + return nil + case invite.EdgeEvents: + m.ResetEvents() + return nil + } + return fmt.Errorf("unknown Invite edge %s", name) +} + +// NarrativeMutation represents an operation that mutates the Narrative nodes in the graph. +type NarrativeMutation struct { + config + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + satisfies *string + details *map[string]interface{} + clearedFields map[string]struct{} + policy map[string]struct{} + removedpolicy map[string]struct{} + clearedpolicy bool + control map[string]struct{} + removedcontrol map[string]struct{} + clearedcontrol bool + procedure map[string]struct{} + removedprocedure map[string]struct{} + clearedprocedure bool + controlobjective map[string]struct{} + removedcontrolobjective map[string]struct{} + clearedcontrolobjective bool + done bool + oldValue func(context.Context) (*Narrative, error) + predicates []predicate.Narrative +} + +var _ ent.Mutation = (*NarrativeMutation)(nil) + +// narrativeOption allows management of the mutation configuration using functional options. +type narrativeOption func(*NarrativeMutation) + +// newNarrativeMutation creates new mutation for the Narrative entity. +func newNarrativeMutation(c config, op Op, opts ...narrativeOption) *NarrativeMutation { + m := &NarrativeMutation{ + config: c, + op: op, + typ: TypeNarrative, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withNarrativeID sets the ID field of the mutation. +func withNarrativeID(id string) narrativeOption { + return func(m *NarrativeMutation) { + var ( + err error + once sync.Once + value *Narrative + ) + m.oldValue = func(ctx context.Context) (*Narrative, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().Narrative.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withNarrative sets the old Narrative of the mutation. +func withNarrative(node *Narrative) narrativeOption { + return func(m *NarrativeMutation) { + m.oldValue = func(context.Context) (*Narrative, 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 NarrativeMutation) 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 NarrativeMutation) 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 Narrative entities. +func (m *NarrativeMutation) 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 *NarrativeMutation) 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 *NarrativeMutation) 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().Narrative.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 *NarrativeMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *NarrativeMutation) 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 Narrative entity. +// If the Narrative 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 *NarrativeMutation) 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 *NarrativeMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[narrative.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *NarrativeMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[narrative.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *NarrativeMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, narrative.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *NarrativeMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *NarrativeMutation) 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 Narrative entity. +// If the Narrative 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 *NarrativeMutation) 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 *NarrativeMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[narrative.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *NarrativeMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[narrative.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *NarrativeMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, narrative.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *NarrativeMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *NarrativeMutation) 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 Narrative entity. +// If the Narrative 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 *NarrativeMutation) 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 *NarrativeMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[narrative.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *NarrativeMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[narrative.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *NarrativeMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, narrative.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *NarrativeMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *NarrativeMutation) 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 Narrative entity. +// If the Narrative 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 *NarrativeMutation) 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 *NarrativeMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[narrative.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *NarrativeMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[narrative.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *NarrativeMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, narrative.FieldUpdatedBy) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *NarrativeMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *NarrativeMutation) 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 Narrative entity. +// If the Narrative 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 *NarrativeMutation) 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 *NarrativeMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[narrative.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *NarrativeMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[narrative.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *NarrativeMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, narrative.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *NarrativeMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *NarrativeMutation) 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 Narrative entity. +// If the Narrative 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 *NarrativeMutation) 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 *NarrativeMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[narrative.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *NarrativeMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[narrative.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *NarrativeMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, narrative.FieldDeletedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *NarrativeMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *NarrativeMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the Narrative entity. +// If the Narrative 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 *NarrativeMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *NarrativeMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *NarrativeMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *NarrativeMutation) 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 Narrative entity. +// If the Narrative 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 *NarrativeMutation) 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 *NarrativeMutation) 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 *NarrativeMutation) 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 *NarrativeMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[narrative.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *NarrativeMutation) TagsCleared() bool { + _, ok := m.clearedFields[narrative.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *NarrativeMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, narrative.FieldTags) +} + +// SetName sets the "name" field. +func (m *NarrativeMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *NarrativeMutation) 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 Narrative entity. +// If the Narrative 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 *NarrativeMutation) 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 *NarrativeMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *NarrativeMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *NarrativeMutation) 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 Narrative entity. +// If the Narrative 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 *NarrativeMutation) 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 *NarrativeMutation) ClearDescription() { + m.description = nil + m.clearedFields[narrative.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *NarrativeMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[narrative.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *NarrativeMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, narrative.FieldDescription) +} + +// SetSatisfies sets the "satisfies" field. +func (m *NarrativeMutation) SetSatisfies(s string) { + m.satisfies = &s +} + +// Satisfies returns the value of the "satisfies" field in the mutation. +func (m *NarrativeMutation) Satisfies() (r string, exists bool) { + v := m.satisfies + if v == nil { + return + } + return *v, true +} + +// OldSatisfies returns the old "satisfies" field's value of the Narrative entity. +// If the Narrative 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 *NarrativeMutation) OldSatisfies(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSatisfies is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSatisfies requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSatisfies: %w", err) + } + return oldValue.Satisfies, nil +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (m *NarrativeMutation) ClearSatisfies() { + m.satisfies = nil + m.clearedFields[narrative.FieldSatisfies] = struct{}{} +} + +// SatisfiesCleared returns if the "satisfies" field was cleared in this mutation. +func (m *NarrativeMutation) SatisfiesCleared() bool { + _, ok := m.clearedFields[narrative.FieldSatisfies] + return ok +} + +// ResetSatisfies resets all changes to the "satisfies" field. +func (m *NarrativeMutation) ResetSatisfies() { + m.satisfies = nil + delete(m.clearedFields, narrative.FieldSatisfies) +} + +// SetDetails sets the "details" field. +func (m *NarrativeMutation) SetDetails(value map[string]interface{}) { + m.details = &value +} + +// Details returns the value of the "details" field in the mutation. +func (m *NarrativeMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details + if v == nil { + return + } + return *v, true +} + +// OldDetails returns the old "details" field's value of the Narrative entity. +// If the Narrative 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 *NarrativeMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetails is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetails requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetails: %w", err) + } + return oldValue.Details, nil +} + +// ClearDetails clears the value of the "details" field. +func (m *NarrativeMutation) ClearDetails() { + m.details = nil + m.clearedFields[narrative.FieldDetails] = struct{}{} +} + +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *NarrativeMutation) DetailsCleared() bool { + _, ok := m.clearedFields[narrative.FieldDetails] + return ok +} + +// ResetDetails resets all changes to the "details" field. +func (m *NarrativeMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, narrative.FieldDetails) +} + +// AddPolicyIDs adds the "policy" edge to the InternalPolicy entity by ids. +func (m *NarrativeMutation) AddPolicyIDs(ids ...string) { + if m.policy == nil { + m.policy = make(map[string]struct{}) + } + for i := range ids { + m.policy[ids[i]] = struct{}{} + } +} + +// ClearPolicy clears the "policy" edge to the InternalPolicy entity. +func (m *NarrativeMutation) ClearPolicy() { + m.clearedpolicy = true +} + +// PolicyCleared reports if the "policy" edge to the InternalPolicy entity was cleared. +func (m *NarrativeMutation) PolicyCleared() bool { + return m.clearedpolicy +} + +// RemovePolicyIDs removes the "policy" edge to the InternalPolicy entity by IDs. +func (m *NarrativeMutation) RemovePolicyIDs(ids ...string) { + if m.removedpolicy == nil { + m.removedpolicy = make(map[string]struct{}) + } + for i := range ids { + delete(m.policy, ids[i]) + m.removedpolicy[ids[i]] = struct{}{} + } +} + +// RemovedPolicy returns the removed IDs of the "policy" edge to the InternalPolicy entity. +func (m *NarrativeMutation) RemovedPolicyIDs() (ids []string) { + for id := range m.removedpolicy { + ids = append(ids, id) + } + return +} + +// PolicyIDs returns the "policy" edge IDs in the mutation. +func (m *NarrativeMutation) PolicyIDs() (ids []string) { + for id := range m.policy { + ids = append(ids, id) + } + return +} + +// ResetPolicy resets all changes to the "policy" edge. +func (m *NarrativeMutation) ResetPolicy() { + m.policy = nil + m.clearedpolicy = false + m.removedpolicy = nil +} + +// AddControlIDs adds the "control" edge to the Control entity by ids. +func (m *NarrativeMutation) AddControlIDs(ids ...string) { + if m.control == nil { + m.control = make(map[string]struct{}) + } + for i := range ids { + m.control[ids[i]] = struct{}{} + } +} + +// ClearControl clears the "control" edge to the Control entity. +func (m *NarrativeMutation) ClearControl() { + m.clearedcontrol = true +} + +// ControlCleared reports if the "control" edge to the Control entity was cleared. +func (m *NarrativeMutation) ControlCleared() bool { + return m.clearedcontrol +} + +// RemoveControlIDs removes the "control" edge to the Control entity by IDs. +func (m *NarrativeMutation) RemoveControlIDs(ids ...string) { + if m.removedcontrol == nil { + m.removedcontrol = make(map[string]struct{}) + } + for i := range ids { + delete(m.control, ids[i]) + m.removedcontrol[ids[i]] = struct{}{} + } +} + +// RemovedControl returns the removed IDs of the "control" edge to the Control entity. +func (m *NarrativeMutation) RemovedControlIDs() (ids []string) { + for id := range m.removedcontrol { + ids = append(ids, id) + } + return +} + +// ControlIDs returns the "control" edge IDs in the mutation. +func (m *NarrativeMutation) ControlIDs() (ids []string) { + for id := range m.control { + ids = append(ids, id) + } + return +} + +// ResetControl resets all changes to the "control" edge. +func (m *NarrativeMutation) ResetControl() { + m.control = nil + m.clearedcontrol = false + m.removedcontrol = nil +} + +// AddProcedureIDs adds the "procedure" edge to the Procedure entity by ids. +func (m *NarrativeMutation) AddProcedureIDs(ids ...string) { + if m.procedure == nil { + m.procedure = make(map[string]struct{}) + } + for i := range ids { + m.procedure[ids[i]] = struct{}{} + } +} + +// ClearProcedure clears the "procedure" edge to the Procedure entity. +func (m *NarrativeMutation) ClearProcedure() { + m.clearedprocedure = true +} + +// ProcedureCleared reports if the "procedure" edge to the Procedure entity was cleared. +func (m *NarrativeMutation) ProcedureCleared() bool { + return m.clearedprocedure +} + +// RemoveProcedureIDs removes the "procedure" edge to the Procedure entity by IDs. +func (m *NarrativeMutation) RemoveProcedureIDs(ids ...string) { + if m.removedprocedure == nil { + m.removedprocedure = make(map[string]struct{}) + } + for i := range ids { + delete(m.procedure, ids[i]) + m.removedprocedure[ids[i]] = struct{}{} + } +} + +// RemovedProcedure returns the removed IDs of the "procedure" edge to the Procedure entity. +func (m *NarrativeMutation) RemovedProcedureIDs() (ids []string) { + for id := range m.removedprocedure { + ids = append(ids, id) + } + return +} + +// ProcedureIDs returns the "procedure" edge IDs in the mutation. +func (m *NarrativeMutation) ProcedureIDs() (ids []string) { + for id := range m.procedure { + ids = append(ids, id) + } + return +} + +// ResetProcedure resets all changes to the "procedure" edge. +func (m *NarrativeMutation) ResetProcedure() { + m.procedure = nil + m.clearedprocedure = false + m.removedprocedure = nil +} + +// AddControlobjectiveIDs adds the "controlobjective" edge to the ControlObjective entity by ids. +func (m *NarrativeMutation) AddControlobjectiveIDs(ids ...string) { + if m.controlobjective == nil { + m.controlobjective = make(map[string]struct{}) + } + for i := range ids { + m.controlobjective[ids[i]] = struct{}{} + } +} + +// ClearControlobjective clears the "controlobjective" edge to the ControlObjective entity. +func (m *NarrativeMutation) ClearControlobjective() { + m.clearedcontrolobjective = true +} + +// ControlobjectiveCleared reports if the "controlobjective" edge to the ControlObjective entity was cleared. +func (m *NarrativeMutation) ControlobjectiveCleared() bool { + return m.clearedcontrolobjective +} + +// RemoveControlobjectiveIDs removes the "controlobjective" edge to the ControlObjective entity by IDs. +func (m *NarrativeMutation) RemoveControlobjectiveIDs(ids ...string) { + if m.removedcontrolobjective == nil { + m.removedcontrolobjective = make(map[string]struct{}) + } + for i := range ids { + delete(m.controlobjective, ids[i]) + m.removedcontrolobjective[ids[i]] = struct{}{} + } +} + +// RemovedControlobjective returns the removed IDs of the "controlobjective" edge to the ControlObjective entity. +func (m *NarrativeMutation) RemovedControlobjectiveIDs() (ids []string) { + for id := range m.removedcontrolobjective { + ids = append(ids, id) + } + return +} + +// ControlobjectiveIDs returns the "controlobjective" edge IDs in the mutation. +func (m *NarrativeMutation) ControlobjectiveIDs() (ids []string) { + for id := range m.controlobjective { + ids = append(ids, id) + } + return +} + +// ResetControlobjective resets all changes to the "controlobjective" edge. +func (m *NarrativeMutation) ResetControlobjective() { + m.controlobjective = nil + m.clearedcontrolobjective = false + m.removedcontrolobjective = nil +} + +// Where appends a list predicates to the NarrativeMutation builder. +func (m *NarrativeMutation) Where(ps ...predicate.Narrative) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the NarrativeMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *NarrativeMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Narrative, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *NarrativeMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *NarrativeMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (Narrative). +func (m *NarrativeMutation) 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 *NarrativeMutation) Fields() []string { + fields := make([]string, 0, 12) + if m.created_at != nil { + fields = append(fields, narrative.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, narrative.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, narrative.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, narrative.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, narrative.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, narrative.FieldDeletedBy) + } + if m.mapping_id != nil { + fields = append(fields, narrative.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, narrative.FieldTags) + } + if m.name != nil { + fields = append(fields, narrative.FieldName) + } + if m.description != nil { + fields = append(fields, narrative.FieldDescription) + } + if m.satisfies != nil { + fields = append(fields, narrative.FieldSatisfies) + } + if m.details != nil { + fields = append(fields, narrative.FieldDetails) + } + 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 *NarrativeMutation) Field(name string) (ent.Value, bool) { + switch name { + case narrative.FieldCreatedAt: + return m.CreatedAt() + case narrative.FieldUpdatedAt: + return m.UpdatedAt() + case narrative.FieldCreatedBy: + return m.CreatedBy() + case narrative.FieldUpdatedBy: + return m.UpdatedBy() + case narrative.FieldDeletedAt: + return m.DeletedAt() + case narrative.FieldDeletedBy: + return m.DeletedBy() + case narrative.FieldMappingID: + return m.MappingID() + case narrative.FieldTags: + return m.Tags() + case narrative.FieldName: + return m.Name() + case narrative.FieldDescription: + return m.Description() + case narrative.FieldSatisfies: + return m.Satisfies() + case narrative.FieldDetails: + return m.Details() + } + 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 *NarrativeMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case narrative.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case narrative.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case narrative.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case narrative.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case narrative.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case narrative.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case narrative.FieldMappingID: + return m.OldMappingID(ctx) + case narrative.FieldTags: + return m.OldTags(ctx) + case narrative.FieldName: + return m.OldName(ctx) + case narrative.FieldDescription: + return m.OldDescription(ctx) + case narrative.FieldSatisfies: + return m.OldSatisfies(ctx) + case narrative.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown Narrative 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 *NarrativeMutation) SetField(name string, value ent.Value) error { + switch name { + case narrative.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 narrative.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 narrative.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case narrative.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case narrative.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 narrative.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case narrative.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case narrative.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case narrative.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case narrative.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case narrative.FieldSatisfies: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSatisfies(v) + return nil + case narrative.FieldDetails: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDetails(v) + return nil + } + return fmt.Errorf("unknown Narrative field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *NarrativeMutation) 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 *NarrativeMutation) 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 *NarrativeMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown Narrative numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *NarrativeMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(narrative.FieldCreatedAt) { + fields = append(fields, narrative.FieldCreatedAt) + } + if m.FieldCleared(narrative.FieldUpdatedAt) { + fields = append(fields, narrative.FieldUpdatedAt) + } + if m.FieldCleared(narrative.FieldCreatedBy) { + fields = append(fields, narrative.FieldCreatedBy) + } + if m.FieldCleared(narrative.FieldUpdatedBy) { + fields = append(fields, narrative.FieldUpdatedBy) + } + if m.FieldCleared(narrative.FieldDeletedAt) { + fields = append(fields, narrative.FieldDeletedAt) + } + if m.FieldCleared(narrative.FieldDeletedBy) { + fields = append(fields, narrative.FieldDeletedBy) + } + if m.FieldCleared(narrative.FieldTags) { + fields = append(fields, narrative.FieldTags) + } + if m.FieldCleared(narrative.FieldDescription) { + fields = append(fields, narrative.FieldDescription) + } + if m.FieldCleared(narrative.FieldSatisfies) { + fields = append(fields, narrative.FieldSatisfies) + } + if m.FieldCleared(narrative.FieldDetails) { + fields = append(fields, narrative.FieldDetails) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *NarrativeMutation) 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 *NarrativeMutation) ClearField(name string) error { + switch name { + case narrative.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case narrative.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case narrative.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case narrative.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case narrative.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case narrative.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case narrative.FieldTags: + m.ClearTags() + return nil + case narrative.FieldDescription: + m.ClearDescription() + return nil + case narrative.FieldSatisfies: + m.ClearSatisfies() + return nil + case narrative.FieldDetails: + m.ClearDetails() + return nil + } + return fmt.Errorf("unknown Narrative 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 *NarrativeMutation) ResetField(name string) error { + switch name { + case narrative.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case narrative.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case narrative.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case narrative.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case narrative.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case narrative.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case narrative.FieldMappingID: + m.ResetMappingID() + return nil + case narrative.FieldTags: + m.ResetTags() + return nil + case narrative.FieldName: + m.ResetName() + return nil + case narrative.FieldDescription: + m.ResetDescription() + return nil + case narrative.FieldSatisfies: + m.ResetSatisfies() + return nil + case narrative.FieldDetails: + m.ResetDetails() + return nil + } + return fmt.Errorf("unknown Narrative field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *NarrativeMutation) AddedEdges() []string { + edges := make([]string, 0, 4) + if m.policy != nil { + edges = append(edges, narrative.EdgePolicy) + } + if m.control != nil { + edges = append(edges, narrative.EdgeControl) + } + if m.procedure != nil { + edges = append(edges, narrative.EdgeProcedure) + } + if m.controlobjective != nil { + edges = append(edges, narrative.EdgeControlobjective) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *NarrativeMutation) AddedIDs(name string) []ent.Value { + switch name { + case narrative.EdgePolicy: + ids := make([]ent.Value, 0, len(m.policy)) + for id := range m.policy { + ids = append(ids, id) + } + return ids + case narrative.EdgeControl: + ids := make([]ent.Value, 0, len(m.control)) + for id := range m.control { + ids = append(ids, id) + } + return ids + case narrative.EdgeProcedure: + ids := make([]ent.Value, 0, len(m.procedure)) + for id := range m.procedure { + ids = append(ids, id) + } + return ids + case narrative.EdgeControlobjective: + ids := make([]ent.Value, 0, len(m.controlobjective)) + for id := range m.controlobjective { + ids = append(ids, id) + } + return ids + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *NarrativeMutation) RemovedEdges() []string { + edges := make([]string, 0, 4) + if m.removedpolicy != nil { + edges = append(edges, narrative.EdgePolicy) + } + if m.removedcontrol != nil { + edges = append(edges, narrative.EdgeControl) + } + if m.removedprocedure != nil { + edges = append(edges, narrative.EdgeProcedure) + } + if m.removedcontrolobjective != nil { + edges = append(edges, narrative.EdgeControlobjective) + } + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *NarrativeMutation) RemovedIDs(name string) []ent.Value { + switch name { + case narrative.EdgePolicy: + ids := make([]ent.Value, 0, len(m.removedpolicy)) + for id := range m.removedpolicy { + ids = append(ids, id) + } + return ids + case narrative.EdgeControl: + ids := make([]ent.Value, 0, len(m.removedcontrol)) + for id := range m.removedcontrol { + ids = append(ids, id) + } + return ids + case narrative.EdgeProcedure: + ids := make([]ent.Value, 0, len(m.removedprocedure)) + for id := range m.removedprocedure { + ids = append(ids, id) + } + return ids + case narrative.EdgeControlobjective: + ids := make([]ent.Value, 0, len(m.removedcontrolobjective)) + for id := range m.removedcontrolobjective { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *NarrativeMutation) ClearedEdges() []string { + edges := make([]string, 0, 4) + if m.clearedpolicy { + edges = append(edges, narrative.EdgePolicy) + } + if m.clearedcontrol { + edges = append(edges, narrative.EdgeControl) + } + if m.clearedprocedure { + edges = append(edges, narrative.EdgeProcedure) + } + if m.clearedcontrolobjective { + edges = append(edges, narrative.EdgeControlobjective) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *NarrativeMutation) EdgeCleared(name string) bool { + switch name { + case narrative.EdgePolicy: + return m.clearedpolicy + case narrative.EdgeControl: + return m.clearedcontrol + case narrative.EdgeProcedure: + return m.clearedprocedure + case narrative.EdgeControlobjective: + return m.clearedcontrolobjective + } + 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 *NarrativeMutation) ClearEdge(name string) error { + switch name { + } + return fmt.Errorf("unknown Narrative 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 *NarrativeMutation) ResetEdge(name string) error { + switch name { + case narrative.EdgePolicy: + m.ResetPolicy() + return nil + case narrative.EdgeControl: + m.ResetControl() + return nil + case narrative.EdgeProcedure: + m.ResetProcedure() + return nil + case narrative.EdgeControlobjective: + m.ResetControlobjective() + return nil + } + return fmt.Errorf("unknown Narrative edge %s", name) +} + +// NarrativeHistoryMutation represents an operation that mutates the NarrativeHistory nodes in the graph. +type NarrativeHistoryMutation 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 + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + satisfies *string + details *map[string]interface{} + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*NarrativeHistory, error) + predicates []predicate.NarrativeHistory +} + +var _ ent.Mutation = (*NarrativeHistoryMutation)(nil) + +// narrativehistoryOption allows management of the mutation configuration using functional options. +type narrativehistoryOption func(*NarrativeHistoryMutation) + +// newNarrativeHistoryMutation creates new mutation for the NarrativeHistory entity. +func newNarrativeHistoryMutation(c config, op Op, opts ...narrativehistoryOption) *NarrativeHistoryMutation { + m := &NarrativeHistoryMutation{ + config: c, + op: op, + typ: TypeNarrativeHistory, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withNarrativeHistoryID sets the ID field of the mutation. +func withNarrativeHistoryID(id string) narrativehistoryOption { + return func(m *NarrativeHistoryMutation) { + var ( + err error + once sync.Once + value *NarrativeHistory + ) + m.oldValue = func(ctx context.Context) (*NarrativeHistory, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().NarrativeHistory.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withNarrativeHistory sets the old NarrativeHistory of the mutation. +func withNarrativeHistory(node *NarrativeHistory) narrativehistoryOption { + return func(m *NarrativeHistoryMutation) { + m.oldValue = func(context.Context) (*NarrativeHistory, 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 NarrativeHistoryMutation) 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 NarrativeHistoryMutation) 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 NarrativeHistory entities. +func (m *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) 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().NarrativeHistory.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 *NarrativeHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *NarrativeHistoryMutation) 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 NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *NarrativeHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *NarrativeHistoryMutation) 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 NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[narrativehistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *NarrativeHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[narrativehistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *NarrativeHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, narrativehistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *NarrativeHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *NarrativeHistoryMutation) 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 NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ResetOperation() { + m.operation = nil +} + +// SetCreatedAt sets the "created_at" field. +func (m *NarrativeHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *NarrativeHistoryMutation) 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 NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[narrativehistory.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *NarrativeHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[narrativehistory.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *NarrativeHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, narrativehistory.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *NarrativeHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *NarrativeHistoryMutation) 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 NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[narrativehistory.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *NarrativeHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[narrativehistory.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *NarrativeHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, narrativehistory.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *NarrativeHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *NarrativeHistoryMutation) 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 NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[narrativehistory.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *NarrativeHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[narrativehistory.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *NarrativeHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, narrativehistory.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *NarrativeHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *NarrativeHistoryMutation) 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 NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[narrativehistory.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *NarrativeHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[narrativehistory.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *NarrativeHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, narrativehistory.FieldUpdatedBy) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *NarrativeHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *NarrativeHistoryMutation) 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 NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[narrativehistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *NarrativeHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[narrativehistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *NarrativeHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, narrativehistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *NarrativeHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *NarrativeHistoryMutation) 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 NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[narrativehistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *NarrativeHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[narrativehistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *NarrativeHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, narrativehistory.FieldDeletedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *NarrativeHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *NarrativeHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *NarrativeHistoryMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *NarrativeHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *NarrativeHistoryMutation) 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 NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[narrativehistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *NarrativeHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[narrativehistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *NarrativeHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, narrativehistory.FieldTags) +} + +// SetName sets the "name" field. +func (m *NarrativeHistoryMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *NarrativeHistoryMutation) 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 NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *NarrativeHistoryMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *NarrativeHistoryMutation) 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 NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[narrativehistory.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *NarrativeHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[narrativehistory.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *NarrativeHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, narrativehistory.FieldDescription) +} + +// SetSatisfies sets the "satisfies" field. +func (m *NarrativeHistoryMutation) SetSatisfies(s string) { + m.satisfies = &s +} + +// Satisfies returns the value of the "satisfies" field in the mutation. +func (m *NarrativeHistoryMutation) Satisfies() (r string, exists bool) { + v := m.satisfies + if v == nil { + return + } + return *v, true +} + +// OldSatisfies returns the old "satisfies" field's value of the NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) OldSatisfies(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSatisfies is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSatisfies requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSatisfies: %w", err) + } + return oldValue.Satisfies, nil +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (m *NarrativeHistoryMutation) ClearSatisfies() { + m.satisfies = nil + m.clearedFields[narrativehistory.FieldSatisfies] = struct{}{} +} + +// SatisfiesCleared returns if the "satisfies" field was cleared in this mutation. +func (m *NarrativeHistoryMutation) SatisfiesCleared() bool { + _, ok := m.clearedFields[narrativehistory.FieldSatisfies] + return ok +} + +// ResetSatisfies resets all changes to the "satisfies" field. +func (m *NarrativeHistoryMutation) ResetSatisfies() { + m.satisfies = nil + delete(m.clearedFields, narrativehistory.FieldSatisfies) +} + +// SetDetails sets the "details" field. +func (m *NarrativeHistoryMutation) SetDetails(value map[string]interface{}) { + m.details = &value +} + +// Details returns the value of the "details" field in the mutation. +func (m *NarrativeHistoryMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details + if v == nil { + return + } + return *v, true +} + +// OldDetails returns the old "details" field's value of the NarrativeHistory entity. +// If the NarrativeHistory 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 *NarrativeHistoryMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetails is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetails requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetails: %w", err) + } + return oldValue.Details, nil +} + +// ClearDetails clears the value of the "details" field. +func (m *NarrativeHistoryMutation) ClearDetails() { + m.details = nil + m.clearedFields[narrativehistory.FieldDetails] = struct{}{} +} + +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *NarrativeHistoryMutation) DetailsCleared() bool { + _, ok := m.clearedFields[narrativehistory.FieldDetails] + return ok +} + +// ResetDetails resets all changes to the "details" field. +func (m *NarrativeHistoryMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, narrativehistory.FieldDetails) +} + +// Where appends a list predicates to the NarrativeHistoryMutation builder. +func (m *NarrativeHistoryMutation) Where(ps ...predicate.NarrativeHistory) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the NarrativeHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *NarrativeHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.NarrativeHistory, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *NarrativeHistoryMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *NarrativeHistoryMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (NarrativeHistory). +func (m *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) Fields() []string { + fields := make([]string, 0, 15) + if m.history_time != nil { + fields = append(fields, narrativehistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, narrativehistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, narrativehistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, narrativehistory.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, narrativehistory.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, narrativehistory.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, narrativehistory.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, narrativehistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, narrativehistory.FieldDeletedBy) + } + if m.mapping_id != nil { + fields = append(fields, narrativehistory.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, narrativehistory.FieldTags) + } + if m.name != nil { + fields = append(fields, narrativehistory.FieldName) + } + if m.description != nil { + fields = append(fields, narrativehistory.FieldDescription) + } + if m.satisfies != nil { + fields = append(fields, narrativehistory.FieldSatisfies) + } + if m.details != nil { + fields = append(fields, narrativehistory.FieldDetails) + } + 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 *NarrativeHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case narrativehistory.FieldHistoryTime: + return m.HistoryTime() + case narrativehistory.FieldRef: + return m.Ref() + case narrativehistory.FieldOperation: + return m.Operation() + case narrativehistory.FieldCreatedAt: + return m.CreatedAt() + case narrativehistory.FieldUpdatedAt: + return m.UpdatedAt() + case narrativehistory.FieldCreatedBy: + return m.CreatedBy() + case narrativehistory.FieldUpdatedBy: + return m.UpdatedBy() + case narrativehistory.FieldDeletedAt: + return m.DeletedAt() + case narrativehistory.FieldDeletedBy: + return m.DeletedBy() + case narrativehistory.FieldMappingID: + return m.MappingID() + case narrativehistory.FieldTags: + return m.Tags() + case narrativehistory.FieldName: + return m.Name() + case narrativehistory.FieldDescription: + return m.Description() + case narrativehistory.FieldSatisfies: + return m.Satisfies() + case narrativehistory.FieldDetails: + return m.Details() + } + 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 *NarrativeHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case narrativehistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case narrativehistory.FieldRef: + return m.OldRef(ctx) + case narrativehistory.FieldOperation: + return m.OldOperation(ctx) + case narrativehistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case narrativehistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case narrativehistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case narrativehistory.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case narrativehistory.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case narrativehistory.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case narrativehistory.FieldMappingID: + return m.OldMappingID(ctx) + case narrativehistory.FieldTags: + return m.OldTags(ctx) + case narrativehistory.FieldName: + return m.OldName(ctx) + case narrativehistory.FieldDescription: + return m.OldDescription(ctx) + case narrativehistory.FieldSatisfies: + return m.OldSatisfies(ctx) + case narrativehistory.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown NarrativeHistory 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 *NarrativeHistoryMutation) SetField(name string, value ent.Value) error { + switch name { + case narrativehistory.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 narrativehistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case narrativehistory.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 narrativehistory.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 narrativehistory.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 narrativehistory.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case narrativehistory.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case narrativehistory.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 narrativehistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case narrativehistory.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case narrativehistory.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case narrativehistory.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case narrativehistory.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case narrativehistory.FieldSatisfies: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSatisfies(v) + return nil + case narrativehistory.FieldDetails: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDetails(v) + return nil + } + return fmt.Errorf("unknown NarrativeHistory field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown NarrativeHistory numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *NarrativeHistoryMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(narrativehistory.FieldRef) { + fields = append(fields, narrativehistory.FieldRef) + } + if m.FieldCleared(narrativehistory.FieldCreatedAt) { + fields = append(fields, narrativehistory.FieldCreatedAt) + } + if m.FieldCleared(narrativehistory.FieldUpdatedAt) { + fields = append(fields, narrativehistory.FieldUpdatedAt) + } + if m.FieldCleared(narrativehistory.FieldCreatedBy) { + fields = append(fields, narrativehistory.FieldCreatedBy) + } + if m.FieldCleared(narrativehistory.FieldUpdatedBy) { + fields = append(fields, narrativehistory.FieldUpdatedBy) + } + if m.FieldCleared(narrativehistory.FieldDeletedAt) { + fields = append(fields, narrativehistory.FieldDeletedAt) + } + if m.FieldCleared(narrativehistory.FieldDeletedBy) { + fields = append(fields, narrativehistory.FieldDeletedBy) + } + if m.FieldCleared(narrativehistory.FieldTags) { + fields = append(fields, narrativehistory.FieldTags) + } + if m.FieldCleared(narrativehistory.FieldDescription) { + fields = append(fields, narrativehistory.FieldDescription) + } + if m.FieldCleared(narrativehistory.FieldSatisfies) { + fields = append(fields, narrativehistory.FieldSatisfies) + } + if m.FieldCleared(narrativehistory.FieldDetails) { + fields = append(fields, narrativehistory.FieldDetails) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ClearField(name string) error { + switch name { + case narrativehistory.FieldRef: + m.ClearRef() + return nil + case narrativehistory.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case narrativehistory.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case narrativehistory.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case narrativehistory.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case narrativehistory.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case narrativehistory.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case narrativehistory.FieldTags: + m.ClearTags() + return nil + case narrativehistory.FieldDescription: + m.ClearDescription() + return nil + case narrativehistory.FieldSatisfies: + m.ClearSatisfies() + return nil + case narrativehistory.FieldDetails: + m.ClearDetails() + return nil + } + return fmt.Errorf("unknown NarrativeHistory 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 *NarrativeHistoryMutation) ResetField(name string) error { + switch name { + case narrativehistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case narrativehistory.FieldRef: + m.ResetRef() + return nil + case narrativehistory.FieldOperation: + m.ResetOperation() + return nil + case narrativehistory.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case narrativehistory.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case narrativehistory.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case narrativehistory.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case narrativehistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case narrativehistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case narrativehistory.FieldMappingID: + m.ResetMappingID() + return nil + case narrativehistory.FieldTags: + m.ResetTags() + return nil + case narrativehistory.FieldName: + m.ResetName() + return nil + case narrativehistory.FieldDescription: + m.ResetDescription() + return nil + case narrativehistory.FieldSatisfies: + m.ResetSatisfies() + return nil + case narrativehistory.FieldDetails: + m.ResetDetails() + return nil + } + return fmt.Errorf("unknown NarrativeHistory field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) AddedIDs(name string) []ent.Value { + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) RemovedIDs(name string) []ent.Value { + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) 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 *NarrativeHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown NarrativeHistory 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 *NarrativeHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown NarrativeHistory edge %s", name) +} + +// NoteMutation represents an operation that mutates the Note nodes in the graph. +type NoteMutation struct { + config + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + deleted_at *time.Time + deleted_by *string + tags *[]string + appendtags []string + text *string + clearedFields map[string]struct{} + owner *string + clearedowner bool + entity *string + clearedentity bool + subcontrols map[string]struct{} + removedsubcontrols map[string]struct{} + clearedsubcontrols bool + done bool + oldValue func(context.Context) (*Note, error) + predicates []predicate.Note +} + +var _ ent.Mutation = (*NoteMutation)(nil) + +// noteOption allows management of the mutation configuration using functional options. +type noteOption func(*NoteMutation) + +// newNoteMutation creates new mutation for the Note entity. +func newNoteMutation(c config, op Op, opts ...noteOption) *NoteMutation { + m := &NoteMutation{ + config: c, + op: op, + typ: TypeNote, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withNoteID sets the ID field of the mutation. +func withNoteID(id string) noteOption { + return func(m *NoteMutation) { + var ( + err error + once sync.Once + value *Note + ) + m.oldValue = func(ctx context.Context) (*Note, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().Note.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withNote sets the old Note of the mutation. +func withNote(node *Note) noteOption { + return func(m *NoteMutation) { + m.oldValue = func(context.Context) (*Note, 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 NoteMutation) 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 NoteMutation) 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 Note entities. +func (m *NoteMutation) 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 *NoteMutation) 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 *NoteMutation) 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().Note.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 *NoteMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *NoteMutation) 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 Note entity. +// If the Note 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 *NoteMutation) 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 *NoteMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[note.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *NoteMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[note.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *NoteMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, note.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *NoteMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *NoteMutation) 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 Note entity. +// If the Note 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 *NoteMutation) 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 *NoteMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[note.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *NoteMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[note.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *NoteMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, note.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *NoteMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *NoteMutation) 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 Note entity. +// If the Note 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 *NoteMutation) 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 *NoteMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[note.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *NoteMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[note.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *NoteMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, note.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *NoteMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *NoteMutation) 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 Note entity. +// If the Note 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 *NoteMutation) 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 *NoteMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[note.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *NoteMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[note.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *NoteMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, note.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *NoteMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *NoteMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the Note entity. +// If the Note 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 *NoteMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *NoteMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *NoteMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *NoteMutation) 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 Note entity. +// If the Note 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 *NoteMutation) 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 *NoteMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[note.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *NoteMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[note.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *NoteMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, note.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *NoteMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *NoteMutation) 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 Note entity. +// If the Note 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 *NoteMutation) 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 *NoteMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[note.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *NoteMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[note.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *NoteMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, note.FieldDeletedBy) +} + +// SetTags sets the "tags" field. +func (m *NoteMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *NoteMutation) 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 Note entity. +// If the Note 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 *NoteMutation) 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 *NoteMutation) 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 *NoteMutation) 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 *NoteMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[note.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *NoteMutation) TagsCleared() bool { + _, ok := m.clearedFields[note.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *NoteMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, note.FieldTags) +} + +// SetOwnerID sets the "owner_id" field. +func (m *NoteMutation) SetOwnerID(s string) { + m.owner = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *NoteMutation) 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 Note entity. +// If the Note 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 *NoteMutation) 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 *NoteMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[note.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *NoteMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[note.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *NoteMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, note.FieldOwnerID) +} + +// SetText sets the "text" field. +func (m *NoteMutation) SetText(s string) { + m.text = &s +} + +// Text returns the value of the "text" field in the mutation. +func (m *NoteMutation) Text() (r string, exists bool) { + v := m.text + if v == nil { + return + } + return *v, true +} + +// OldText returns the old "text" field's value of the Note entity. +// If the Note 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 *NoteMutation) OldText(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldText is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldText requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldText: %w", err) + } + return oldValue.Text, nil +} + +// ResetText resets all changes to the "text" field. +func (m *NoteMutation) ResetText() { + m.text = nil +} + +// ClearOwner clears the "owner" edge to the Organization entity. +func (m *NoteMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[note.FieldOwnerID] = struct{}{} +} + +// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. +func (m *NoteMutation) 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 *NoteMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetOwner resets all changes to the "owner" edge. +func (m *NoteMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false +} + +// SetEntityID sets the "entity" edge to the Entity entity by id. +func (m *NoteMutation) SetEntityID(id string) { + m.entity = &id +} + +// ClearEntity clears the "entity" edge to the Entity entity. +func (m *NoteMutation) ClearEntity() { + m.clearedentity = true +} + +// EntityCleared reports if the "entity" edge to the Entity entity was cleared. +func (m *NoteMutation) EntityCleared() bool { + return m.clearedentity +} + +// EntityID returns the "entity" edge ID in the mutation. +func (m *NoteMutation) EntityID() (id string, exists bool) { + if m.entity != nil { + return *m.entity, true + } + return +} + +// EntityIDs returns the "entity" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// EntityID instead. It exists only for internal usage by the builders. +func (m *NoteMutation) EntityIDs() (ids []string) { + if id := m.entity; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetEntity resets all changes to the "entity" edge. +func (m *NoteMutation) ResetEntity() { + m.entity = nil + m.clearedentity = false +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by ids. +func (m *NoteMutation) AddSubcontrolIDs(ids ...string) { + if m.subcontrols == nil { + m.subcontrols = make(map[string]struct{}) + } + for i := range ids { + m.subcontrols[ids[i]] = struct{}{} + } +} + +// ClearSubcontrols clears the "subcontrols" edge to the Subcontrol entity. +func (m *NoteMutation) ClearSubcontrols() { + m.clearedsubcontrols = true +} + +// SubcontrolsCleared reports if the "subcontrols" edge to the Subcontrol entity was cleared. +func (m *NoteMutation) SubcontrolsCleared() bool { + return m.clearedsubcontrols +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to the Subcontrol entity by IDs. +func (m *NoteMutation) RemoveSubcontrolIDs(ids ...string) { + if m.removedsubcontrols == nil { + m.removedsubcontrols = make(map[string]struct{}) + } + for i := range ids { + delete(m.subcontrols, ids[i]) + m.removedsubcontrols[ids[i]] = struct{}{} + } +} + +// RemovedSubcontrols returns the removed IDs of the "subcontrols" edge to the Subcontrol entity. +func (m *NoteMutation) RemovedSubcontrolsIDs() (ids []string) { + for id := range m.removedsubcontrols { + ids = append(ids, id) + } + return +} + +// SubcontrolsIDs returns the "subcontrols" edge IDs in the mutation. +func (m *NoteMutation) SubcontrolsIDs() (ids []string) { + for id := range m.subcontrols { + ids = append(ids, id) + } + return +} + +// ResetSubcontrols resets all changes to the "subcontrols" edge. +func (m *NoteMutation) ResetSubcontrols() { + m.subcontrols = nil + m.clearedsubcontrols = false + m.removedsubcontrols = nil +} + +// Where appends a list predicates to the NoteMutation builder. +func (m *NoteMutation) Where(ps ...predicate.Note) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the NoteMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *NoteMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Note, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *NoteMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *NoteMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (Note). +func (m *NoteMutation) 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 *NoteMutation) Fields() []string { + fields := make([]string, 0, 10) + if m.created_at != nil { + fields = append(fields, note.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, note.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, note.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, note.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, note.FieldMappingID) + } + if m.deleted_at != nil { + fields = append(fields, note.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, note.FieldDeletedBy) + } + if m.tags != nil { + fields = append(fields, note.FieldTags) + } + if m.owner != nil { + fields = append(fields, note.FieldOwnerID) + } + if m.text != nil { + fields = append(fields, note.FieldText) + } + 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 *NoteMutation) Field(name string) (ent.Value, bool) { + switch name { + case note.FieldCreatedAt: + return m.CreatedAt() + case note.FieldUpdatedAt: + return m.UpdatedAt() + case note.FieldCreatedBy: + return m.CreatedBy() + case note.FieldUpdatedBy: + return m.UpdatedBy() + case note.FieldMappingID: + return m.MappingID() + case note.FieldDeletedAt: + return m.DeletedAt() + case note.FieldDeletedBy: + return m.DeletedBy() + case note.FieldTags: + return m.Tags() + case note.FieldOwnerID: + return m.OwnerID() + case note.FieldText: + return m.Text() + } + 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 *NoteMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case note.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case note.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case note.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case note.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case note.FieldMappingID: + return m.OldMappingID(ctx) + case note.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case note.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case note.FieldTags: + return m.OldTags(ctx) + case note.FieldOwnerID: + return m.OldOwnerID(ctx) + case note.FieldText: + return m.OldText(ctx) + } + return nil, fmt.Errorf("unknown Note 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 *NoteMutation) SetField(name string, value ent.Value) error { + switch name { + case note.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 note.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 note.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case note.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case note.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case note.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 note.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case note.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case note.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case note.FieldText: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetText(v) + return nil + } + return fmt.Errorf("unknown Note field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *NoteMutation) 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 *NoteMutation) 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 *NoteMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown Note numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *NoteMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(note.FieldCreatedAt) { + fields = append(fields, note.FieldCreatedAt) + } + if m.FieldCleared(note.FieldUpdatedAt) { + fields = append(fields, note.FieldUpdatedAt) + } + if m.FieldCleared(note.FieldCreatedBy) { + fields = append(fields, note.FieldCreatedBy) + } + if m.FieldCleared(note.FieldUpdatedBy) { + fields = append(fields, note.FieldUpdatedBy) + } + if m.FieldCleared(note.FieldDeletedAt) { + fields = append(fields, note.FieldDeletedAt) + } + if m.FieldCleared(note.FieldDeletedBy) { + fields = append(fields, note.FieldDeletedBy) + } + if m.FieldCleared(note.FieldTags) { + fields = append(fields, note.FieldTags) + } + if m.FieldCleared(note.FieldOwnerID) { + fields = append(fields, note.FieldOwnerID) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *NoteMutation) 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 *NoteMutation) ClearField(name string) error { + switch name { + case note.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case note.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case note.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case note.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case note.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case note.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case note.FieldTags: + m.ClearTags() + return nil + case note.FieldOwnerID: + m.ClearOwnerID() + return nil + } + return fmt.Errorf("unknown Note 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 *NoteMutation) ResetField(name string) error { + switch name { + case note.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case note.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case note.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case note.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case note.FieldMappingID: + m.ResetMappingID() + return nil + case note.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case note.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case note.FieldTags: + m.ResetTags() + return nil + case note.FieldOwnerID: + m.ResetOwnerID() + return nil + case note.FieldText: + m.ResetText() + return nil + } + return fmt.Errorf("unknown Note field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *NoteMutation) AddedEdges() []string { + edges := make([]string, 0, 3) + if m.owner != nil { + edges = append(edges, note.EdgeOwner) + } + if m.entity != nil { + edges = append(edges, note.EdgeEntity) + } + if m.subcontrols != nil { + edges = append(edges, note.EdgeSubcontrols) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *NoteMutation) AddedIDs(name string) []ent.Value { + switch name { + case note.EdgeOwner: + if id := m.owner; id != nil { + return []ent.Value{*id} + } + case note.EdgeEntity: + if id := m.entity; id != nil { + return []ent.Value{*id} + } + case note.EdgeSubcontrols: + ids := make([]ent.Value, 0, len(m.subcontrols)) + for id := range m.subcontrols { + ids = append(ids, id) + } + return ids + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *NoteMutation) RemovedEdges() []string { + edges := make([]string, 0, 3) + if m.removedsubcontrols != nil { + edges = append(edges, note.EdgeSubcontrols) + } + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *NoteMutation) RemovedIDs(name string) []ent.Value { + switch name { + case note.EdgeSubcontrols: + ids := make([]ent.Value, 0, len(m.removedsubcontrols)) + for id := range m.removedsubcontrols { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *NoteMutation) ClearedEdges() []string { + edges := make([]string, 0, 3) + if m.clearedowner { + edges = append(edges, note.EdgeOwner) + } + if m.clearedentity { + edges = append(edges, note.EdgeEntity) + } + if m.clearedsubcontrols { + edges = append(edges, note.EdgeSubcontrols) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *NoteMutation) EdgeCleared(name string) bool { + switch name { + case note.EdgeOwner: + return m.clearedowner + case note.EdgeEntity: + return m.clearedentity + case note.EdgeSubcontrols: + return m.clearedsubcontrols + } + 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 *NoteMutation) ClearEdge(name string) error { + switch name { + case note.EdgeOwner: + m.ClearOwner() + return nil + case note.EdgeEntity: + m.ClearEntity() + return nil + } + return fmt.Errorf("unknown Note 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 *NoteMutation) ResetEdge(name string) error { + switch name { + case note.EdgeOwner: + m.ResetOwner() + return nil + case note.EdgeEntity: + m.ResetEntity() + return nil + case note.EdgeSubcontrols: + m.ResetSubcontrols() + return nil + } + return fmt.Errorf("unknown Note edge %s", name) +} + +// NoteHistoryMutation represents an operation that mutates the NoteHistory nodes in the graph. +type NoteHistoryMutation 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 + mapping_id *string + deleted_at *time.Time + deleted_by *string + tags *[]string + appendtags []string + owner_id *string + text *string + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*NoteHistory, error) + predicates []predicate.NoteHistory +} + +var _ ent.Mutation = (*NoteHistoryMutation)(nil) + +// notehistoryOption allows management of the mutation configuration using functional options. +type notehistoryOption func(*NoteHistoryMutation) + +// newNoteHistoryMutation creates new mutation for the NoteHistory entity. +func newNoteHistoryMutation(c config, op Op, opts ...notehistoryOption) *NoteHistoryMutation { + m := &NoteHistoryMutation{ + config: c, + op: op, + typ: TypeNoteHistory, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withNoteHistoryID sets the ID field of the mutation. +func withNoteHistoryID(id string) notehistoryOption { + return func(m *NoteHistoryMutation) { + var ( + err error + once sync.Once + value *NoteHistory + ) + m.oldValue = func(ctx context.Context) (*NoteHistory, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().NoteHistory.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withNoteHistory sets the old NoteHistory of the mutation. +func withNoteHistory(node *NoteHistory) notehistoryOption { + return func(m *NoteHistoryMutation) { + m.oldValue = func(context.Context) (*NoteHistory, 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 NoteHistoryMutation) 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 NoteHistoryMutation) 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 NoteHistory entities. +func (m *NoteHistoryMutation) 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) 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().NoteHistory.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 *NoteHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *NoteHistoryMutation) 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 NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *NoteHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *NoteHistoryMutation) 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 NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[notehistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *NoteHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[notehistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *NoteHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, notehistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *NoteHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *NoteHistoryMutation) 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 NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) ResetOperation() { + m.operation = nil +} + +// SetCreatedAt sets the "created_at" field. +func (m *NoteHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *NoteHistoryMutation) 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 NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[notehistory.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *NoteHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[notehistory.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *NoteHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, notehistory.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *NoteHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *NoteHistoryMutation) 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 NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[notehistory.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *NoteHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[notehistory.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *NoteHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, notehistory.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *NoteHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *NoteHistoryMutation) 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 NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[notehistory.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *NoteHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[notehistory.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *NoteHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, notehistory.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *NoteHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *NoteHistoryMutation) 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 NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[notehistory.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *NoteHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[notehistory.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *NoteHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, notehistory.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *NoteHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *NoteHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *NoteHistoryMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *NoteHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *NoteHistoryMutation) 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 NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[notehistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *NoteHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[notehistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *NoteHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, notehistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *NoteHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *NoteHistoryMutation) 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 NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[notehistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *NoteHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[notehistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *NoteHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, notehistory.FieldDeletedBy) +} + +// SetTags sets the "tags" field. +func (m *NoteHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *NoteHistoryMutation) 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 NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[notehistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *NoteHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[notehistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *NoteHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, notehistory.FieldTags) +} + +// SetOwnerID sets the "owner_id" field. +func (m *NoteHistoryMutation) SetOwnerID(s string) { + m.owner_id = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *NoteHistoryMutation) 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 NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) ClearOwnerID() { + m.owner_id = nil + m.clearedFields[notehistory.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *NoteHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[notehistory.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *NoteHistoryMutation) ResetOwnerID() { + m.owner_id = nil + delete(m.clearedFields, notehistory.FieldOwnerID) +} + +// SetText sets the "text" field. +func (m *NoteHistoryMutation) SetText(s string) { + m.text = &s +} + +// Text returns the value of the "text" field in the mutation. +func (m *NoteHistoryMutation) Text() (r string, exists bool) { + v := m.text + if v == nil { + return + } + return *v, true +} + +// OldText returns the old "text" field's value of the NoteHistory entity. +// If the NoteHistory 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 *NoteHistoryMutation) OldText(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldText is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldText requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldText: %w", err) + } + return oldValue.Text, nil +} + +// ResetText resets all changes to the "text" field. +func (m *NoteHistoryMutation) ResetText() { + m.text = nil +} + +// Where appends a list predicates to the NoteHistoryMutation builder. +func (m *NoteHistoryMutation) Where(ps ...predicate.NoteHistory) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the NoteHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *NoteHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.NoteHistory, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *NoteHistoryMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *NoteHistoryMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (NoteHistory). +func (m *NoteHistoryMutation) 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 *NoteHistoryMutation) Fields() []string { + fields := make([]string, 0, 13) + if m.history_time != nil { + fields = append(fields, notehistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, notehistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, notehistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, notehistory.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, notehistory.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, notehistory.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, notehistory.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, notehistory.FieldMappingID) + } + if m.deleted_at != nil { + fields = append(fields, notehistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, notehistory.FieldDeletedBy) + } + if m.tags != nil { + fields = append(fields, notehistory.FieldTags) + } + if m.owner_id != nil { + fields = append(fields, notehistory.FieldOwnerID) + } + if m.text != nil { + fields = append(fields, notehistory.FieldText) + } + 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 *NoteHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case notehistory.FieldHistoryTime: + return m.HistoryTime() + case notehistory.FieldRef: + return m.Ref() + case notehistory.FieldOperation: + return m.Operation() + case notehistory.FieldCreatedAt: + return m.CreatedAt() + case notehistory.FieldUpdatedAt: + return m.UpdatedAt() + case notehistory.FieldCreatedBy: + return m.CreatedBy() + case notehistory.FieldUpdatedBy: + return m.UpdatedBy() + case notehistory.FieldMappingID: + return m.MappingID() + case notehistory.FieldDeletedAt: + return m.DeletedAt() + case notehistory.FieldDeletedBy: + return m.DeletedBy() + case notehistory.FieldTags: + return m.Tags() + case notehistory.FieldOwnerID: + return m.OwnerID() + case notehistory.FieldText: + return m.Text() + } + 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 *NoteHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case notehistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case notehistory.FieldRef: + return m.OldRef(ctx) + case notehistory.FieldOperation: + return m.OldOperation(ctx) + case notehistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case notehistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case notehistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case notehistory.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case notehistory.FieldMappingID: + return m.OldMappingID(ctx) + case notehistory.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case notehistory.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case notehistory.FieldTags: + return m.OldTags(ctx) + case notehistory.FieldOwnerID: + return m.OldOwnerID(ctx) + case notehistory.FieldText: + return m.OldText(ctx) + } + return nil, fmt.Errorf("unknown NoteHistory 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 *NoteHistoryMutation) SetField(name string, value ent.Value) error { + switch name { + case notehistory.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 notehistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case notehistory.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 notehistory.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 notehistory.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 notehistory.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case notehistory.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case notehistory.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case notehistory.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 notehistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case notehistory.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case notehistory.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case notehistory.FieldText: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetText(v) + return nil + } + return fmt.Errorf("unknown NoteHistory field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *NoteHistoryMutation) 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown NoteHistory numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *NoteHistoryMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(notehistory.FieldRef) { + fields = append(fields, notehistory.FieldRef) + } + if m.FieldCleared(notehistory.FieldCreatedAt) { + fields = append(fields, notehistory.FieldCreatedAt) + } + if m.FieldCleared(notehistory.FieldUpdatedAt) { + fields = append(fields, notehistory.FieldUpdatedAt) + } + if m.FieldCleared(notehistory.FieldCreatedBy) { + fields = append(fields, notehistory.FieldCreatedBy) + } + if m.FieldCleared(notehistory.FieldUpdatedBy) { + fields = append(fields, notehistory.FieldUpdatedBy) + } + if m.FieldCleared(notehistory.FieldDeletedAt) { + fields = append(fields, notehistory.FieldDeletedAt) + } + if m.FieldCleared(notehistory.FieldDeletedBy) { + fields = append(fields, notehistory.FieldDeletedBy) + } + if m.FieldCleared(notehistory.FieldTags) { + fields = append(fields, notehistory.FieldTags) + } + if m.FieldCleared(notehistory.FieldOwnerID) { + fields = append(fields, notehistory.FieldOwnerID) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *NoteHistoryMutation) 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 *NoteHistoryMutation) ClearField(name string) error { + switch name { + case notehistory.FieldRef: + m.ClearRef() + return nil + case notehistory.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case notehistory.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case notehistory.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case notehistory.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case notehistory.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case notehistory.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case notehistory.FieldTags: + m.ClearTags() + return nil + case notehistory.FieldOwnerID: + m.ClearOwnerID() + return nil + } + return fmt.Errorf("unknown NoteHistory 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 *NoteHistoryMutation) ResetField(name string) error { + switch name { + case notehistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case notehistory.FieldRef: + m.ResetRef() + return nil + case notehistory.FieldOperation: + m.ResetOperation() + return nil + case notehistory.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case notehistory.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case notehistory.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case notehistory.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case notehistory.FieldMappingID: + m.ResetMappingID() + return nil + case notehistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case notehistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case notehistory.FieldTags: + m.ResetTags() + return nil + case notehistory.FieldOwnerID: + m.ResetOwnerID() + return nil + case notehistory.FieldText: + m.ResetText() + return nil + } + return fmt.Errorf("unknown NoteHistory field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *NoteHistoryMutation) 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 *NoteHistoryMutation) AddedIDs(name string) []ent.Value { + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *NoteHistoryMutation) 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 *NoteHistoryMutation) RemovedIDs(name string) []ent.Value { + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *NoteHistoryMutation) 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown NoteHistory 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 *NoteHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown NoteHistory edge %s", name) +} + +// OauthProviderMutation represents an operation that mutates the OauthProvider nodes in the graph. +type OauthProviderMutation struct { + config + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + name *string + client_id *string + client_secret *string + redirect_url *string + scopes *string + auth_url *string + token_url *string + auth_style *customtypes.Uint8 + addauth_style *customtypes.Uint8 + info_url *string + clearedFields map[string]struct{} + owner *string + clearedowner bool + done bool + oldValue func(context.Context) (*OauthProvider, error) + predicates []predicate.OauthProvider +} + +var _ ent.Mutation = (*OauthProviderMutation)(nil) + +// oauthproviderOption allows management of the mutation configuration using functional options. +type oauthproviderOption func(*OauthProviderMutation) + +// newOauthProviderMutation creates new mutation for the OauthProvider entity. +func newOauthProviderMutation(c config, op Op, opts ...oauthproviderOption) *OauthProviderMutation { + m := &OauthProviderMutation{ + config: c, + op: op, + typ: TypeOauthProvider, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withOauthProviderID sets the ID field of the mutation. +func withOauthProviderID(id string) oauthproviderOption { + return func(m *OauthProviderMutation) { + var ( + err error + once sync.Once + value *OauthProvider + ) + m.oldValue = func(ctx context.Context) (*OauthProvider, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().OauthProvider.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withOauthProvider sets the old OauthProvider of the mutation. +func withOauthProvider(node *OauthProvider) oauthproviderOption { + return func(m *OauthProviderMutation) { + m.oldValue = func(context.Context) (*OauthProvider, 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 OauthProviderMutation) 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 OauthProviderMutation) 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 OauthProvider entities. +func (m *OauthProviderMutation) 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 *OauthProviderMutation) 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 *OauthProviderMutation) 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().OauthProvider.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 *OauthProviderMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *OauthProviderMutation) 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 OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) 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 *OauthProviderMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[oauthprovider.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *OauthProviderMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[oauthprovider.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *OauthProviderMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, oauthprovider.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *OauthProviderMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *OauthProviderMutation) 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 OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) 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 *OauthProviderMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[oauthprovider.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *OauthProviderMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[oauthprovider.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *OauthProviderMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, oauthprovider.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *OauthProviderMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *OauthProviderMutation) 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 OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) 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 *OauthProviderMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[oauthprovider.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *OauthProviderMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[oauthprovider.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *OauthProviderMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, oauthprovider.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *OauthProviderMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *OauthProviderMutation) 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 OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) 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 *OauthProviderMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[oauthprovider.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *OauthProviderMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[oauthprovider.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *OauthProviderMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, oauthprovider.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *OauthProviderMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *OauthProviderMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *OauthProviderMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *OauthProviderMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *OauthProviderMutation) 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 OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) 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 *OauthProviderMutation) 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 *OauthProviderMutation) 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 *OauthProviderMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[oauthprovider.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *OauthProviderMutation) TagsCleared() bool { + _, ok := m.clearedFields[oauthprovider.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *OauthProviderMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, oauthprovider.FieldTags) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *OauthProviderMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *OauthProviderMutation) 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 OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) 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 *OauthProviderMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[oauthprovider.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *OauthProviderMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[oauthprovider.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *OauthProviderMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, oauthprovider.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *OauthProviderMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *OauthProviderMutation) 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 OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) 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 *OauthProviderMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[oauthprovider.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *OauthProviderMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[oauthprovider.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *OauthProviderMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, oauthprovider.FieldDeletedBy) +} + +// SetOwnerID sets the "owner_id" field. +func (m *OauthProviderMutation) SetOwnerID(s string) { + m.owner = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *OauthProviderMutation) 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 OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) 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 *OauthProviderMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[oauthprovider.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *OauthProviderMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[oauthprovider.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *OauthProviderMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, oauthprovider.FieldOwnerID) +} + +// SetName sets the "name" field. +func (m *OauthProviderMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *OauthProviderMutation) 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 OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) 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 *OauthProviderMutation) ResetName() { + m.name = nil +} + +// SetClientID sets the "client_id" field. +func (m *OauthProviderMutation) SetClientID(s string) { + m.client_id = &s +} + +// ClientID returns the value of the "client_id" field in the mutation. +func (m *OauthProviderMutation) ClientID() (r string, exists bool) { + v := m.client_id + if v == nil { + return + } + return *v, true +} + +// OldClientID returns the old "client_id" field's value of the OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) OldClientID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClientID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClientID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClientID: %w", err) + } + return oldValue.ClientID, nil +} + +// ResetClientID resets all changes to the "client_id" field. +func (m *OauthProviderMutation) ResetClientID() { + m.client_id = nil +} + +// SetClientSecret sets the "client_secret" field. +func (m *OauthProviderMutation) SetClientSecret(s string) { + m.client_secret = &s +} + +// ClientSecret returns the value of the "client_secret" field in the mutation. +func (m *OauthProviderMutation) ClientSecret() (r string, exists bool) { + v := m.client_secret + if v == nil { + return + } + return *v, true +} + +// OldClientSecret returns the old "client_secret" field's value of the OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) OldClientSecret(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClientSecret is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClientSecret requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClientSecret: %w", err) + } + return oldValue.ClientSecret, nil +} + +// ResetClientSecret resets all changes to the "client_secret" field. +func (m *OauthProviderMutation) ResetClientSecret() { + m.client_secret = nil +} + +// SetRedirectURL sets the "redirect_url" field. +func (m *OauthProviderMutation) SetRedirectURL(s string) { + m.redirect_url = &s +} + +// RedirectURL returns the value of the "redirect_url" field in the mutation. +func (m *OauthProviderMutation) RedirectURL() (r string, exists bool) { + v := m.redirect_url + if v == nil { + return + } + return *v, true +} + +// OldRedirectURL returns the old "redirect_url" field's value of the OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) OldRedirectURL(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldRedirectURL is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldRedirectURL requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldRedirectURL: %w", err) + } + return oldValue.RedirectURL, nil +} + +// ResetRedirectURL resets all changes to the "redirect_url" field. +func (m *OauthProviderMutation) ResetRedirectURL() { + m.redirect_url = nil +} + +// SetScopes sets the "scopes" field. +func (m *OauthProviderMutation) SetScopes(s string) { + m.scopes = &s +} + +// Scopes returns the value of the "scopes" field in the mutation. +func (m *OauthProviderMutation) Scopes() (r string, exists bool) { + v := m.scopes + if v == nil { + return + } + return *v, true +} + +// OldScopes returns the old "scopes" field's value of the OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) OldScopes(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldScopes is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldScopes requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldScopes: %w", err) + } + return oldValue.Scopes, nil +} + +// ResetScopes resets all changes to the "scopes" field. +func (m *OauthProviderMutation) ResetScopes() { + m.scopes = nil +} + +// SetAuthURL sets the "auth_url" field. +func (m *OauthProviderMutation) SetAuthURL(s string) { + m.auth_url = &s +} + +// AuthURL returns the value of the "auth_url" field in the mutation. +func (m *OauthProviderMutation) AuthURL() (r string, exists bool) { + v := m.auth_url + if v == nil { + return + } + return *v, true +} + +// OldAuthURL returns the old "auth_url" field's value of the OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) OldAuthURL(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldAuthURL is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldAuthURL requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldAuthURL: %w", err) + } + return oldValue.AuthURL, nil +} + +// ResetAuthURL resets all changes to the "auth_url" field. +func (m *OauthProviderMutation) ResetAuthURL() { + m.auth_url = nil +} + +// SetTokenURL sets the "token_url" field. +func (m *OauthProviderMutation) SetTokenURL(s string) { + m.token_url = &s +} + +// TokenURL returns the value of the "token_url" field in the mutation. +func (m *OauthProviderMutation) TokenURL() (r string, exists bool) { + v := m.token_url + if v == nil { + return + } + return *v, true +} + +// OldTokenURL returns the old "token_url" field's value of the OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) OldTokenURL(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldTokenURL is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldTokenURL requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldTokenURL: %w", err) + } + return oldValue.TokenURL, nil +} + +// ResetTokenURL resets all changes to the "token_url" field. +func (m *OauthProviderMutation) ResetTokenURL() { + m.token_url = nil +} + +// SetAuthStyle sets the "auth_style" field. +func (m *OauthProviderMutation) SetAuthStyle(c customtypes.Uint8) { + m.auth_style = &c + m.addauth_style = nil +} + +// AuthStyle returns the value of the "auth_style" field in the mutation. +func (m *OauthProviderMutation) AuthStyle() (r customtypes.Uint8, exists bool) { + v := m.auth_style + if v == nil { + return + } + return *v, true +} + +// OldAuthStyle returns the old "auth_style" field's value of the OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) OldAuthStyle(ctx context.Context) (v customtypes.Uint8, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldAuthStyle is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldAuthStyle requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldAuthStyle: %w", err) + } + return oldValue.AuthStyle, nil +} + +// AddAuthStyle adds c to the "auth_style" field. +func (m *OauthProviderMutation) AddAuthStyle(c customtypes.Uint8) { + if m.addauth_style != nil { + *m.addauth_style += c + } else { + m.addauth_style = &c + } +} + +// AddedAuthStyle returns the value that was added to the "auth_style" field in this mutation. +func (m *OauthProviderMutation) AddedAuthStyle() (r customtypes.Uint8, exists bool) { + v := m.addauth_style + if v == nil { + return + } + return *v, true +} + +// ResetAuthStyle resets all changes to the "auth_style" field. +func (m *OauthProviderMutation) ResetAuthStyle() { + m.auth_style = nil + m.addauth_style = nil +} + +// SetInfoURL sets the "info_url" field. +func (m *OauthProviderMutation) SetInfoURL(s string) { + m.info_url = &s +} + +// InfoURL returns the value of the "info_url" field in the mutation. +func (m *OauthProviderMutation) InfoURL() (r string, exists bool) { + v := m.info_url + if v == nil { + return + } + return *v, true +} + +// OldInfoURL returns the old "info_url" field's value of the OauthProvider entity. +// If the OauthProvider 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 *OauthProviderMutation) OldInfoURL(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldInfoURL is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldInfoURL requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldInfoURL: %w", err) + } + return oldValue.InfoURL, nil +} + +// ResetInfoURL resets all changes to the "info_url" field. +func (m *OauthProviderMutation) ResetInfoURL() { + m.info_url = nil +} + +// ClearOwner clears the "owner" edge to the Organization entity. +func (m *OauthProviderMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[oauthprovider.FieldOwnerID] = struct{}{} +} + +// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. +func (m *OauthProviderMutation) 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 *OauthProviderMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetOwner resets all changes to the "owner" edge. +func (m *OauthProviderMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false +} + +// Where appends a list predicates to the OauthProviderMutation builder. +func (m *OauthProviderMutation) Where(ps ...predicate.OauthProvider) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the OauthProviderMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *OauthProviderMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.OauthProvider, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *OauthProviderMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *OauthProviderMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (OauthProvider). +func (m *OauthProviderMutation) 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 *OauthProviderMutation) Fields() []string { + fields := make([]string, 0, 18) + if m.created_at != nil { + fields = append(fields, oauthprovider.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, oauthprovider.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, oauthprovider.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, oauthprovider.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, oauthprovider.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, oauthprovider.FieldTags) + } + if m.deleted_at != nil { + fields = append(fields, oauthprovider.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, oauthprovider.FieldDeletedBy) + } + if m.owner != nil { + fields = append(fields, oauthprovider.FieldOwnerID) + } + if m.name != nil { + fields = append(fields, oauthprovider.FieldName) + } + if m.client_id != nil { + fields = append(fields, oauthprovider.FieldClientID) + } + if m.client_secret != nil { + fields = append(fields, oauthprovider.FieldClientSecret) + } + if m.redirect_url != nil { + fields = append(fields, oauthprovider.FieldRedirectURL) + } + if m.scopes != nil { + fields = append(fields, oauthprovider.FieldScopes) + } + if m.auth_url != nil { + fields = append(fields, oauthprovider.FieldAuthURL) + } + if m.token_url != nil { + fields = append(fields, oauthprovider.FieldTokenURL) + } + if m.auth_style != nil { + fields = append(fields, oauthprovider.FieldAuthStyle) + } + if m.info_url != nil { + fields = append(fields, oauthprovider.FieldInfoURL) + } + 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 *OauthProviderMutation) Field(name string) (ent.Value, bool) { + switch name { + case oauthprovider.FieldCreatedAt: + return m.CreatedAt() + case oauthprovider.FieldUpdatedAt: + return m.UpdatedAt() + case oauthprovider.FieldCreatedBy: + return m.CreatedBy() + case oauthprovider.FieldUpdatedBy: + return m.UpdatedBy() + case oauthprovider.FieldMappingID: + return m.MappingID() + case oauthprovider.FieldTags: + return m.Tags() + case oauthprovider.FieldDeletedAt: + return m.DeletedAt() + case oauthprovider.FieldDeletedBy: + return m.DeletedBy() + case oauthprovider.FieldOwnerID: + return m.OwnerID() + case oauthprovider.FieldName: + return m.Name() + case oauthprovider.FieldClientID: + return m.ClientID() + case oauthprovider.FieldClientSecret: + return m.ClientSecret() + case oauthprovider.FieldRedirectURL: + return m.RedirectURL() + case oauthprovider.FieldScopes: + return m.Scopes() + case oauthprovider.FieldAuthURL: + return m.AuthURL() + case oauthprovider.FieldTokenURL: + return m.TokenURL() + case oauthprovider.FieldAuthStyle: + return m.AuthStyle() + case oauthprovider.FieldInfoURL: + return m.InfoURL() + } + 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 *OauthProviderMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case oauthprovider.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case oauthprovider.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case oauthprovider.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case oauthprovider.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case oauthprovider.FieldMappingID: + return m.OldMappingID(ctx) + case oauthprovider.FieldTags: + return m.OldTags(ctx) + case oauthprovider.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case oauthprovider.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case oauthprovider.FieldOwnerID: + return m.OldOwnerID(ctx) + case oauthprovider.FieldName: + return m.OldName(ctx) + case oauthprovider.FieldClientID: + return m.OldClientID(ctx) + case oauthprovider.FieldClientSecret: + return m.OldClientSecret(ctx) + case oauthprovider.FieldRedirectURL: + return m.OldRedirectURL(ctx) + case oauthprovider.FieldScopes: + return m.OldScopes(ctx) + case oauthprovider.FieldAuthURL: + return m.OldAuthURL(ctx) + case oauthprovider.FieldTokenURL: + return m.OldTokenURL(ctx) + case oauthprovider.FieldAuthStyle: + return m.OldAuthStyle(ctx) + case oauthprovider.FieldInfoURL: + return m.OldInfoURL(ctx) + } + return nil, fmt.Errorf("unknown OauthProvider 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 *OauthProviderMutation) SetField(name string, value ent.Value) error { + switch name { + case oauthprovider.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 oauthprovider.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 oauthprovider.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case oauthprovider.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case oauthprovider.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case oauthprovider.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case oauthprovider.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 oauthprovider.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case oauthprovider.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case oauthprovider.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case oauthprovider.FieldClientID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClientID(v) + return nil + case oauthprovider.FieldClientSecret: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClientSecret(v) + return nil + case oauthprovider.FieldRedirectURL: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRedirectURL(v) + return nil + case oauthprovider.FieldScopes: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetScopes(v) + return nil + case oauthprovider.FieldAuthURL: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetAuthURL(v) + return nil + case oauthprovider.FieldTokenURL: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTokenURL(v) + return nil + case oauthprovider.FieldAuthStyle: + v, ok := value.(customtypes.Uint8) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetAuthStyle(v) + return nil + case oauthprovider.FieldInfoURL: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetInfoURL(v) + return nil + } + return fmt.Errorf("unknown OauthProvider field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *OauthProviderMutation) AddedFields() []string { + var fields []string + if m.addauth_style != nil { + fields = append(fields, oauthprovider.FieldAuthStyle) + } + return fields +} + +// 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 *OauthProviderMutation) AddedField(name string) (ent.Value, bool) { + switch name { + case oauthprovider.FieldAuthStyle: + return m.AddedAuthStyle() + } + 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 *OauthProviderMutation) AddField(name string, value ent.Value) error { + switch name { + case oauthprovider.FieldAuthStyle: + v, ok := value.(customtypes.Uint8) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.AddAuthStyle(v) + return nil + } + return fmt.Errorf("unknown OauthProvider numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *OauthProviderMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(oauthprovider.FieldCreatedAt) { + fields = append(fields, oauthprovider.FieldCreatedAt) + } + if m.FieldCleared(oauthprovider.FieldUpdatedAt) { + fields = append(fields, oauthprovider.FieldUpdatedAt) + } + if m.FieldCleared(oauthprovider.FieldCreatedBy) { + fields = append(fields, oauthprovider.FieldCreatedBy) + } + if m.FieldCleared(oauthprovider.FieldUpdatedBy) { + fields = append(fields, oauthprovider.FieldUpdatedBy) + } + if m.FieldCleared(oauthprovider.FieldTags) { + fields = append(fields, oauthprovider.FieldTags) + } + if m.FieldCleared(oauthprovider.FieldDeletedAt) { + fields = append(fields, oauthprovider.FieldDeletedAt) + } + if m.FieldCleared(oauthprovider.FieldDeletedBy) { + fields = append(fields, oauthprovider.FieldDeletedBy) + } + if m.FieldCleared(oauthprovider.FieldOwnerID) { + fields = append(fields, oauthprovider.FieldOwnerID) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *OauthProviderMutation) 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 *OauthProviderMutation) ClearField(name string) error { + switch name { + case oauthprovider.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case oauthprovider.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case oauthprovider.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case oauthprovider.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case oauthprovider.FieldTags: + m.ClearTags() + return nil + case oauthprovider.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case oauthprovider.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case oauthprovider.FieldOwnerID: + m.ClearOwnerID() + return nil + } + return fmt.Errorf("unknown OauthProvider 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 *OauthProviderMutation) ResetField(name string) error { + switch name { + case oauthprovider.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case oauthprovider.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case oauthprovider.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case oauthprovider.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case oauthprovider.FieldMappingID: + m.ResetMappingID() + return nil + case oauthprovider.FieldTags: + m.ResetTags() + return nil + case oauthprovider.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case oauthprovider.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case oauthprovider.FieldOwnerID: + m.ResetOwnerID() + return nil + case oauthprovider.FieldName: + m.ResetName() + return nil + case oauthprovider.FieldClientID: + m.ResetClientID() + return nil + case oauthprovider.FieldClientSecret: + m.ResetClientSecret() + return nil + case oauthprovider.FieldRedirectURL: + m.ResetRedirectURL() + return nil + case oauthprovider.FieldScopes: + m.ResetScopes() + return nil + case oauthprovider.FieldAuthURL: + m.ResetAuthURL() + return nil + case oauthprovider.FieldTokenURL: + m.ResetTokenURL() + return nil + case oauthprovider.FieldAuthStyle: + m.ResetAuthStyle() + return nil + case oauthprovider.FieldInfoURL: + m.ResetInfoURL() + return nil + } + return fmt.Errorf("unknown OauthProvider field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *OauthProviderMutation) AddedEdges() []string { + edges := make([]string, 0, 1) + if m.owner != nil { + edges = append(edges, oauthprovider.EdgeOwner) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *OauthProviderMutation) AddedIDs(name string) []ent.Value { + switch name { + case oauthprovider.EdgeOwner: + if id := m.owner; id != nil { + return []ent.Value{*id} + } + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *OauthProviderMutation) RemovedEdges() []string { + edges := make([]string, 0, 1) + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *OauthProviderMutation) RemovedIDs(name string) []ent.Value { + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *OauthProviderMutation) ClearedEdges() []string { + edges := make([]string, 0, 1) + if m.clearedowner { + edges = append(edges, oauthprovider.EdgeOwner) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *OauthProviderMutation) EdgeCleared(name string) bool { + switch name { + case oauthprovider.EdgeOwner: + return m.clearedowner + } + 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 *OauthProviderMutation) ClearEdge(name string) error { + switch name { + case oauthprovider.EdgeOwner: + m.ClearOwner() + return nil + } + return fmt.Errorf("unknown OauthProvider 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 *OauthProviderMutation) ResetEdge(name string) error { + switch name { + case oauthprovider.EdgeOwner: + m.ResetOwner() + return nil + } + return fmt.Errorf("unknown OauthProvider edge %s", name) +} + +// OauthProviderHistoryMutation represents an operation that mutates the OauthProviderHistory nodes in the graph. +type OauthProviderHistoryMutation 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 + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + owner_id *string + name *string + client_id *string + client_secret *string + redirect_url *string + scopes *string + auth_url *string + token_url *string + auth_style *customtypes.Uint8 + addauth_style *customtypes.Uint8 + info_url *string + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*OauthProviderHistory, error) + predicates []predicate.OauthProviderHistory +} + +var _ ent.Mutation = (*OauthProviderHistoryMutation)(nil) + +// oauthproviderhistoryOption allows management of the mutation configuration using functional options. +type oauthproviderhistoryOption func(*OauthProviderHistoryMutation) + +// newOauthProviderHistoryMutation creates new mutation for the OauthProviderHistory entity. +func newOauthProviderHistoryMutation(c config, op Op, opts ...oauthproviderhistoryOption) *OauthProviderHistoryMutation { + m := &OauthProviderHistoryMutation{ + config: c, + op: op, + typ: TypeOauthProviderHistory, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withOauthProviderHistoryID sets the ID field of the mutation. +func withOauthProviderHistoryID(id string) oauthproviderhistoryOption { + return func(m *OauthProviderHistoryMutation) { + var ( + err error + once sync.Once + value *OauthProviderHistory + ) + m.oldValue = func(ctx context.Context) (*OauthProviderHistory, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().OauthProviderHistory.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withOauthProviderHistory sets the old OauthProviderHistory of the mutation. +func withOauthProviderHistory(node *OauthProviderHistory) oauthproviderhistoryOption { + return func(m *OauthProviderHistoryMutation) { + m.oldValue = func(context.Context) (*OauthProviderHistory, 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 OauthProviderHistoryMutation) 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 OauthProviderHistoryMutation) 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 OauthProviderHistory entities. +func (m *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) 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().OauthProviderHistory.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 *OauthProviderHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *OauthProviderHistoryMutation) 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 OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *OauthProviderHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *OauthProviderHistoryMutation) 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 OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[oauthproviderhistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *OauthProviderHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[oauthproviderhistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *OauthProviderHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, oauthproviderhistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *OauthProviderHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *OauthProviderHistoryMutation) 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 OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ResetOperation() { + m.operation = nil +} + +// SetCreatedAt sets the "created_at" field. +func (m *OauthProviderHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *OauthProviderHistoryMutation) 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 OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[oauthproviderhistory.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *OauthProviderHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[oauthproviderhistory.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *OauthProviderHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, oauthproviderhistory.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *OauthProviderHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *OauthProviderHistoryMutation) 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 OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[oauthproviderhistory.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *OauthProviderHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[oauthproviderhistory.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *OauthProviderHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, oauthproviderhistory.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *OauthProviderHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *OauthProviderHistoryMutation) 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 OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[oauthproviderhistory.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *OauthProviderHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[oauthproviderhistory.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *OauthProviderHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, oauthproviderhistory.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *OauthProviderHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *OauthProviderHistoryMutation) 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 OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[oauthproviderhistory.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *OauthProviderHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[oauthproviderhistory.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *OauthProviderHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, oauthproviderhistory.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *OauthProviderHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *OauthProviderHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *OauthProviderHistoryMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *OauthProviderHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *OauthProviderHistoryMutation) 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 OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[oauthproviderhistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *OauthProviderHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[oauthproviderhistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *OauthProviderHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, oauthproviderhistory.FieldTags) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *OauthProviderHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *OauthProviderHistoryMutation) 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 OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[oauthproviderhistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *OauthProviderHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[oauthproviderhistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *OauthProviderHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, oauthproviderhistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *OauthProviderHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *OauthProviderHistoryMutation) 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 OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[oauthproviderhistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *OauthProviderHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[oauthproviderhistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *OauthProviderHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, oauthproviderhistory.FieldDeletedBy) +} + +// SetOwnerID sets the "owner_id" field. +func (m *OauthProviderHistoryMutation) SetOwnerID(s string) { + m.owner_id = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *OauthProviderHistoryMutation) 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 OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ClearOwnerID() { + m.owner_id = nil + m.clearedFields[oauthproviderhistory.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *OauthProviderHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[oauthproviderhistory.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *OauthProviderHistoryMutation) ResetOwnerID() { + m.owner_id = nil + delete(m.clearedFields, oauthproviderhistory.FieldOwnerID) +} + +// SetName sets the "name" field. +func (m *OauthProviderHistoryMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *OauthProviderHistoryMutation) 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 OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ResetName() { + m.name = nil +} + +// SetClientID sets the "client_id" field. +func (m *OauthProviderHistoryMutation) SetClientID(s string) { + m.client_id = &s +} + +// ClientID returns the value of the "client_id" field in the mutation. +func (m *OauthProviderHistoryMutation) ClientID() (r string, exists bool) { + v := m.client_id + if v == nil { + return + } + return *v, true +} + +// OldClientID returns the old "client_id" field's value of the OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) OldClientID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClientID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClientID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClientID: %w", err) + } + return oldValue.ClientID, nil +} + +// ResetClientID resets all changes to the "client_id" field. +func (m *OauthProviderHistoryMutation) ResetClientID() { + m.client_id = nil +} + +// SetClientSecret sets the "client_secret" field. +func (m *OauthProviderHistoryMutation) SetClientSecret(s string) { + m.client_secret = &s +} + +// ClientSecret returns the value of the "client_secret" field in the mutation. +func (m *OauthProviderHistoryMutation) ClientSecret() (r string, exists bool) { + v := m.client_secret + if v == nil { + return + } + return *v, true +} + +// OldClientSecret returns the old "client_secret" field's value of the OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) OldClientSecret(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClientSecret is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClientSecret requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClientSecret: %w", err) + } + return oldValue.ClientSecret, nil +} + +// ResetClientSecret resets all changes to the "client_secret" field. +func (m *OauthProviderHistoryMutation) ResetClientSecret() { + m.client_secret = nil +} + +// SetRedirectURL sets the "redirect_url" field. +func (m *OauthProviderHistoryMutation) SetRedirectURL(s string) { + m.redirect_url = &s +} + +// RedirectURL returns the value of the "redirect_url" field in the mutation. +func (m *OauthProviderHistoryMutation) RedirectURL() (r string, exists bool) { + v := m.redirect_url + if v == nil { + return + } + return *v, true +} + +// OldRedirectURL returns the old "redirect_url" field's value of the OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) OldRedirectURL(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldRedirectURL is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldRedirectURL requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldRedirectURL: %w", err) + } + return oldValue.RedirectURL, nil +} + +// ResetRedirectURL resets all changes to the "redirect_url" field. +func (m *OauthProviderHistoryMutation) ResetRedirectURL() { + m.redirect_url = nil +} + +// SetScopes sets the "scopes" field. +func (m *OauthProviderHistoryMutation) SetScopes(s string) { + m.scopes = &s +} + +// Scopes returns the value of the "scopes" field in the mutation. +func (m *OauthProviderHistoryMutation) Scopes() (r string, exists bool) { + v := m.scopes + if v == nil { + return + } + return *v, true +} + +// OldScopes returns the old "scopes" field's value of the OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) OldScopes(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldScopes is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldScopes requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldScopes: %w", err) + } + return oldValue.Scopes, nil +} + +// ResetScopes resets all changes to the "scopes" field. +func (m *OauthProviderHistoryMutation) ResetScopes() { + m.scopes = nil +} + +// SetAuthURL sets the "auth_url" field. +func (m *OauthProviderHistoryMutation) SetAuthURL(s string) { + m.auth_url = &s +} + +// AuthURL returns the value of the "auth_url" field in the mutation. +func (m *OauthProviderHistoryMutation) AuthURL() (r string, exists bool) { + v := m.auth_url + if v == nil { + return + } + return *v, true +} + +// OldAuthURL returns the old "auth_url" field's value of the OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) OldAuthURL(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldAuthURL is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldAuthURL requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldAuthURL: %w", err) + } + return oldValue.AuthURL, nil +} + +// ResetAuthURL resets all changes to the "auth_url" field. +func (m *OauthProviderHistoryMutation) ResetAuthURL() { + m.auth_url = nil +} + +// SetTokenURL sets the "token_url" field. +func (m *OauthProviderHistoryMutation) SetTokenURL(s string) { + m.token_url = &s +} + +// TokenURL returns the value of the "token_url" field in the mutation. +func (m *OauthProviderHistoryMutation) TokenURL() (r string, exists bool) { + v := m.token_url + if v == nil { + return + } + return *v, true +} + +// OldTokenURL returns the old "token_url" field's value of the OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) OldTokenURL(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldTokenURL is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldTokenURL requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldTokenURL: %w", err) + } + return oldValue.TokenURL, nil +} + +// ResetTokenURL resets all changes to the "token_url" field. +func (m *OauthProviderHistoryMutation) ResetTokenURL() { + m.token_url = nil +} + +// SetAuthStyle sets the "auth_style" field. +func (m *OauthProviderHistoryMutation) SetAuthStyle(c customtypes.Uint8) { + m.auth_style = &c + m.addauth_style = nil +} + +// AuthStyle returns the value of the "auth_style" field in the mutation. +func (m *OauthProviderHistoryMutation) AuthStyle() (r customtypes.Uint8, exists bool) { + v := m.auth_style + if v == nil { + return + } + return *v, true +} + +// OldAuthStyle returns the old "auth_style" field's value of the OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) OldAuthStyle(ctx context.Context) (v customtypes.Uint8, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldAuthStyle is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldAuthStyle requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldAuthStyle: %w", err) + } + return oldValue.AuthStyle, nil +} + +// AddAuthStyle adds c to the "auth_style" field. +func (m *OauthProviderHistoryMutation) AddAuthStyle(c customtypes.Uint8) { + if m.addauth_style != nil { + *m.addauth_style += c + } else { + m.addauth_style = &c + } +} + +// AddedAuthStyle returns the value that was added to the "auth_style" field in this mutation. +func (m *OauthProviderHistoryMutation) AddedAuthStyle() (r customtypes.Uint8, exists bool) { + v := m.addauth_style + if v == nil { + return + } + return *v, true +} + +// ResetAuthStyle resets all changes to the "auth_style" field. +func (m *OauthProviderHistoryMutation) ResetAuthStyle() { + m.auth_style = nil + m.addauth_style = nil +} + +// SetInfoURL sets the "info_url" field. +func (m *OauthProviderHistoryMutation) SetInfoURL(s string) { + m.info_url = &s +} + +// InfoURL returns the value of the "info_url" field in the mutation. +func (m *OauthProviderHistoryMutation) InfoURL() (r string, exists bool) { + v := m.info_url + if v == nil { + return + } + return *v, true +} + +// OldInfoURL returns the old "info_url" field's value of the OauthProviderHistory entity. +// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) OldInfoURL(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldInfoURL is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldInfoURL requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldInfoURL: %w", err) + } + return oldValue.InfoURL, nil +} + +// ResetInfoURL resets all changes to the "info_url" field. +func (m *OauthProviderHistoryMutation) ResetInfoURL() { + m.info_url = nil +} + +// Where appends a list predicates to the OauthProviderHistoryMutation builder. +func (m *OauthProviderHistoryMutation) Where(ps ...predicate.OauthProviderHistory) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the OauthProviderHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *OauthProviderHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.OauthProviderHistory, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *OauthProviderHistoryMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *OauthProviderHistoryMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (OauthProviderHistory). +func (m *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) Fields() []string { + fields := make([]string, 0, 21) + if m.history_time != nil { + fields = append(fields, oauthproviderhistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, oauthproviderhistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, oauthproviderhistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, oauthproviderhistory.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, oauthproviderhistory.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, oauthproviderhistory.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, oauthproviderhistory.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, oauthproviderhistory.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, oauthproviderhistory.FieldTags) + } + if m.deleted_at != nil { + fields = append(fields, oauthproviderhistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, oauthproviderhistory.FieldDeletedBy) + } + if m.owner_id != nil { + fields = append(fields, oauthproviderhistory.FieldOwnerID) + } + if m.name != nil { + fields = append(fields, oauthproviderhistory.FieldName) + } + if m.client_id != nil { + fields = append(fields, oauthproviderhistory.FieldClientID) + } + if m.client_secret != nil { + fields = append(fields, oauthproviderhistory.FieldClientSecret) + } + if m.redirect_url != nil { + fields = append(fields, oauthproviderhistory.FieldRedirectURL) + } + if m.scopes != nil { + fields = append(fields, oauthproviderhistory.FieldScopes) + } + if m.auth_url != nil { + fields = append(fields, oauthproviderhistory.FieldAuthURL) + } + if m.token_url != nil { + fields = append(fields, oauthproviderhistory.FieldTokenURL) + } + if m.auth_style != nil { + fields = append(fields, oauthproviderhistory.FieldAuthStyle) + } + if m.info_url != nil { + fields = append(fields, oauthproviderhistory.FieldInfoURL) + } + 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 *OauthProviderHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case oauthproviderhistory.FieldHistoryTime: + return m.HistoryTime() + case oauthproviderhistory.FieldRef: + return m.Ref() + case oauthproviderhistory.FieldOperation: + return m.Operation() + case oauthproviderhistory.FieldCreatedAt: + return m.CreatedAt() + case oauthproviderhistory.FieldUpdatedAt: + return m.UpdatedAt() + case oauthproviderhistory.FieldCreatedBy: + return m.CreatedBy() + case oauthproviderhistory.FieldUpdatedBy: + return m.UpdatedBy() + case oauthproviderhistory.FieldMappingID: + return m.MappingID() + case oauthproviderhistory.FieldTags: + return m.Tags() + case oauthproviderhistory.FieldDeletedAt: + return m.DeletedAt() + case oauthproviderhistory.FieldDeletedBy: + return m.DeletedBy() + case oauthproviderhistory.FieldOwnerID: + return m.OwnerID() + case oauthproviderhistory.FieldName: + return m.Name() + case oauthproviderhistory.FieldClientID: + return m.ClientID() + case oauthproviderhistory.FieldClientSecret: + return m.ClientSecret() + case oauthproviderhistory.FieldRedirectURL: + return m.RedirectURL() + case oauthproviderhistory.FieldScopes: + return m.Scopes() + case oauthproviderhistory.FieldAuthURL: + return m.AuthURL() + case oauthproviderhistory.FieldTokenURL: + return m.TokenURL() + case oauthproviderhistory.FieldAuthStyle: + return m.AuthStyle() + case oauthproviderhistory.FieldInfoURL: + return m.InfoURL() + } + 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 *OauthProviderHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case oauthproviderhistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case oauthproviderhistory.FieldRef: + return m.OldRef(ctx) + case oauthproviderhistory.FieldOperation: + return m.OldOperation(ctx) + case oauthproviderhistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case oauthproviderhistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case oauthproviderhistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case oauthproviderhistory.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case oauthproviderhistory.FieldMappingID: + return m.OldMappingID(ctx) + case oauthproviderhistory.FieldTags: + return m.OldTags(ctx) + case oauthproviderhistory.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case oauthproviderhistory.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case oauthproviderhistory.FieldOwnerID: + return m.OldOwnerID(ctx) + case oauthproviderhistory.FieldName: + return m.OldName(ctx) + case oauthproviderhistory.FieldClientID: + return m.OldClientID(ctx) + case oauthproviderhistory.FieldClientSecret: + return m.OldClientSecret(ctx) + case oauthproviderhistory.FieldRedirectURL: + return m.OldRedirectURL(ctx) + case oauthproviderhistory.FieldScopes: + return m.OldScopes(ctx) + case oauthproviderhistory.FieldAuthURL: + return m.OldAuthURL(ctx) + case oauthproviderhistory.FieldTokenURL: + return m.OldTokenURL(ctx) + case oauthproviderhistory.FieldAuthStyle: + return m.OldAuthStyle(ctx) + case oauthproviderhistory.FieldInfoURL: + return m.OldInfoURL(ctx) + } + return nil, fmt.Errorf("unknown OauthProviderHistory 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 *OauthProviderHistoryMutation) SetField(name string, value ent.Value) error { + switch name { + case oauthproviderhistory.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 oauthproviderhistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case oauthproviderhistory.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 oauthproviderhistory.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 oauthproviderhistory.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 oauthproviderhistory.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case oauthproviderhistory.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case oauthproviderhistory.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case oauthproviderhistory.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case oauthproviderhistory.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 oauthproviderhistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case oauthproviderhistory.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case oauthproviderhistory.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case oauthproviderhistory.FieldClientID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClientID(v) + return nil + case oauthproviderhistory.FieldClientSecret: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClientSecret(v) + return nil + case oauthproviderhistory.FieldRedirectURL: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRedirectURL(v) + return nil + case oauthproviderhistory.FieldScopes: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetScopes(v) + return nil + case oauthproviderhistory.FieldAuthURL: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetAuthURL(v) + return nil + case oauthproviderhistory.FieldTokenURL: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTokenURL(v) + return nil + case oauthproviderhistory.FieldAuthStyle: + v, ok := value.(customtypes.Uint8) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetAuthStyle(v) + return nil + case oauthproviderhistory.FieldInfoURL: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetInfoURL(v) + return nil + } + return fmt.Errorf("unknown OauthProviderHistory field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *OauthProviderHistoryMutation) AddedFields() []string { + var fields []string + if m.addauth_style != nil { + fields = append(fields, oauthproviderhistory.FieldAuthStyle) + } + return fields +} + +// 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 *OauthProviderHistoryMutation) AddedField(name string) (ent.Value, bool) { + switch name { + case oauthproviderhistory.FieldAuthStyle: + return m.AddedAuthStyle() + } + 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 *OauthProviderHistoryMutation) AddField(name string, value ent.Value) error { + switch name { + case oauthproviderhistory.FieldAuthStyle: + v, ok := value.(customtypes.Uint8) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.AddAuthStyle(v) + return nil + } + return fmt.Errorf("unknown OauthProviderHistory numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *OauthProviderHistoryMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(oauthproviderhistory.FieldRef) { + fields = append(fields, oauthproviderhistory.FieldRef) + } + if m.FieldCleared(oauthproviderhistory.FieldCreatedAt) { + fields = append(fields, oauthproviderhistory.FieldCreatedAt) + } + if m.FieldCleared(oauthproviderhistory.FieldUpdatedAt) { + fields = append(fields, oauthproviderhistory.FieldUpdatedAt) + } + if m.FieldCleared(oauthproviderhistory.FieldCreatedBy) { + fields = append(fields, oauthproviderhistory.FieldCreatedBy) + } + if m.FieldCleared(oauthproviderhistory.FieldUpdatedBy) { + fields = append(fields, oauthproviderhistory.FieldUpdatedBy) + } + if m.FieldCleared(oauthproviderhistory.FieldTags) { + fields = append(fields, oauthproviderhistory.FieldTags) + } + if m.FieldCleared(oauthproviderhistory.FieldDeletedAt) { + fields = append(fields, oauthproviderhistory.FieldDeletedAt) + } + if m.FieldCleared(oauthproviderhistory.FieldDeletedBy) { + fields = append(fields, oauthproviderhistory.FieldDeletedBy) + } + if m.FieldCleared(oauthproviderhistory.FieldOwnerID) { + fields = append(fields, oauthproviderhistory.FieldOwnerID) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ClearField(name string) error { + switch name { + case oauthproviderhistory.FieldRef: + m.ClearRef() + return nil + case oauthproviderhistory.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case oauthproviderhistory.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case oauthproviderhistory.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case oauthproviderhistory.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case oauthproviderhistory.FieldTags: + m.ClearTags() + return nil + case oauthproviderhistory.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case oauthproviderhistory.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case oauthproviderhistory.FieldOwnerID: + m.ClearOwnerID() + return nil + } + return fmt.Errorf("unknown OauthProviderHistory 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 *OauthProviderHistoryMutation) ResetField(name string) error { + switch name { + case oauthproviderhistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case oauthproviderhistory.FieldRef: + m.ResetRef() + return nil + case oauthproviderhistory.FieldOperation: + m.ResetOperation() + return nil + case oauthproviderhistory.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case oauthproviderhistory.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case oauthproviderhistory.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case oauthproviderhistory.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case oauthproviderhistory.FieldMappingID: + m.ResetMappingID() + return nil + case oauthproviderhistory.FieldTags: + m.ResetTags() + return nil + case oauthproviderhistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case oauthproviderhistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case oauthproviderhistory.FieldOwnerID: + m.ResetOwnerID() + return nil + case oauthproviderhistory.FieldName: + m.ResetName() + return nil + case oauthproviderhistory.FieldClientID: + m.ResetClientID() + return nil + case oauthproviderhistory.FieldClientSecret: + m.ResetClientSecret() + return nil + case oauthproviderhistory.FieldRedirectURL: + m.ResetRedirectURL() + return nil + case oauthproviderhistory.FieldScopes: + m.ResetScopes() + return nil + case oauthproviderhistory.FieldAuthURL: + m.ResetAuthURL() + return nil + case oauthproviderhistory.FieldTokenURL: + m.ResetTokenURL() + return nil + case oauthproviderhistory.FieldAuthStyle: + m.ResetAuthStyle() + return nil + case oauthproviderhistory.FieldInfoURL: + m.ResetInfoURL() + return nil + } + return fmt.Errorf("unknown OauthProviderHistory field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) AddedIDs(name string) []ent.Value { + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) RemovedIDs(name string) []ent.Value { + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) 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 *OauthProviderHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown OauthProviderHistory 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 *OauthProviderHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown OauthProviderHistory edge %s", name) +} + +// OhAuthTooTokenMutation represents an operation that mutates the OhAuthTooToken nodes in the graph. +type OhAuthTooTokenMutation struct { + config + op Op + typ string + id *string + mapping_id *string + tags *[]string + appendtags []string + client_id *string + scopes *[]string + appendscopes []string + nonce *string + claims_user_id *string + claims_username *string + claims_email *string + claims_email_verified *bool + claims_groups *[]string + appendclaims_groups []string + claims_preferred_username *string + connector_id *string + connector_data *[]string + appendconnector_data []string + last_used *time.Time + clearedFields map[string]struct{} + integration map[string]struct{} + removedintegration map[string]struct{} + clearedintegration bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + done bool + oldValue func(context.Context) (*OhAuthTooToken, error) + predicates []predicate.OhAuthTooToken +} + +var _ ent.Mutation = (*OhAuthTooTokenMutation)(nil) + +// ohauthtootokenOption allows management of the mutation configuration using functional options. +type ohauthtootokenOption func(*OhAuthTooTokenMutation) + +// newOhAuthTooTokenMutation creates new mutation for the OhAuthTooToken entity. +func newOhAuthTooTokenMutation(c config, op Op, opts ...ohauthtootokenOption) *OhAuthTooTokenMutation { + m := &OhAuthTooTokenMutation{ + config: c, + op: op, + typ: TypeOhAuthTooToken, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withOhAuthTooTokenID sets the ID field of the mutation. +func withOhAuthTooTokenID(id string) ohauthtootokenOption { + return func(m *OhAuthTooTokenMutation) { + var ( + err error + once sync.Once + value *OhAuthTooToken + ) + m.oldValue = func(ctx context.Context) (*OhAuthTooToken, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().OhAuthTooToken.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withOhAuthTooToken sets the old OhAuthTooToken of the mutation. +func withOhAuthTooToken(node *OhAuthTooToken) ohauthtootokenOption { + return func(m *OhAuthTooTokenMutation) { + m.oldValue = func(context.Context) (*OhAuthTooToken, 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 OhAuthTooTokenMutation) 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 OhAuthTooTokenMutation) 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 OhAuthTooToken entities. +func (m *OhAuthTooTokenMutation) 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 *OhAuthTooTokenMutation) 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 *OhAuthTooTokenMutation) 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().OhAuthTooToken.Query().Where(m.predicates...).IDs(ctx) + default: + return nil, fmt.Errorf("IDs is not allowed on %s operations", m.op) + } +} + +// SetMappingID sets the "mapping_id" field. +func (m *OhAuthTooTokenMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *OhAuthTooTokenMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *OhAuthTooTokenMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *OhAuthTooTokenMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *OhAuthTooTokenMutation) 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 OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) 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 *OhAuthTooTokenMutation) 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 *OhAuthTooTokenMutation) 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 *OhAuthTooTokenMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[ohauthtootoken.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *OhAuthTooTokenMutation) TagsCleared() bool { + _, ok := m.clearedFields[ohauthtootoken.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *OhAuthTooTokenMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, ohauthtootoken.FieldTags) +} + +// SetClientID sets the "client_id" field. +func (m *OhAuthTooTokenMutation) SetClientID(s string) { + m.client_id = &s +} + +// ClientID returns the value of the "client_id" field in the mutation. +func (m *OhAuthTooTokenMutation) ClientID() (r string, exists bool) { + v := m.client_id + if v == nil { + return + } + return *v, true +} + +// OldClientID returns the old "client_id" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldClientID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClientID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClientID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClientID: %w", err) + } + return oldValue.ClientID, nil +} + +// ResetClientID resets all changes to the "client_id" field. +func (m *OhAuthTooTokenMutation) ResetClientID() { + m.client_id = nil +} + +// SetScopes sets the "scopes" field. +func (m *OhAuthTooTokenMutation) SetScopes(s []string) { + m.scopes = &s + m.appendscopes = nil +} + +// Scopes returns the value of the "scopes" field in the mutation. +func (m *OhAuthTooTokenMutation) Scopes() (r []string, exists bool) { + v := m.scopes + if v == nil { + return + } + return *v, true +} + +// OldScopes returns the old "scopes" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldScopes(ctx context.Context) (v []string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldScopes is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldScopes requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldScopes: %w", err) + } + return oldValue.Scopes, nil +} + +// AppendScopes adds s to the "scopes" field. +func (m *OhAuthTooTokenMutation) AppendScopes(s []string) { + m.appendscopes = append(m.appendscopes, s...) +} + +// AppendedScopes returns the list of values that were appended to the "scopes" field in this mutation. +func (m *OhAuthTooTokenMutation) AppendedScopes() ([]string, bool) { + if len(m.appendscopes) == 0 { + return nil, false + } + return m.appendscopes, true +} + +// ClearScopes clears the value of the "scopes" field. +func (m *OhAuthTooTokenMutation) ClearScopes() { + m.scopes = nil + m.appendscopes = nil + m.clearedFields[ohauthtootoken.FieldScopes] = struct{}{} +} + +// ScopesCleared returns if the "scopes" field was cleared in this mutation. +func (m *OhAuthTooTokenMutation) ScopesCleared() bool { + _, ok := m.clearedFields[ohauthtootoken.FieldScopes] + return ok +} + +// ResetScopes resets all changes to the "scopes" field. +func (m *OhAuthTooTokenMutation) ResetScopes() { + m.scopes = nil + m.appendscopes = nil + delete(m.clearedFields, ohauthtootoken.FieldScopes) +} + +// SetNonce sets the "nonce" field. +func (m *OhAuthTooTokenMutation) SetNonce(s string) { + m.nonce = &s +} + +// Nonce returns the value of the "nonce" field in the mutation. +func (m *OhAuthTooTokenMutation) Nonce() (r string, exists bool) { + v := m.nonce + if v == nil { + return + } + return *v, true +} + +// OldNonce returns the old "nonce" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldNonce(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldNonce is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldNonce requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldNonce: %w", err) + } + return oldValue.Nonce, nil +} + +// ResetNonce resets all changes to the "nonce" field. +func (m *OhAuthTooTokenMutation) ResetNonce() { + m.nonce = nil +} + +// SetClaimsUserID sets the "claims_user_id" field. +func (m *OhAuthTooTokenMutation) SetClaimsUserID(s string) { + m.claims_user_id = &s +} + +// ClaimsUserID returns the value of the "claims_user_id" field in the mutation. +func (m *OhAuthTooTokenMutation) ClaimsUserID() (r string, exists bool) { + v := m.claims_user_id + if v == nil { + return + } + return *v, true +} + +// OldClaimsUserID returns the old "claims_user_id" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldClaimsUserID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClaimsUserID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClaimsUserID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClaimsUserID: %w", err) + } + return oldValue.ClaimsUserID, nil +} + +// ResetClaimsUserID resets all changes to the "claims_user_id" field. +func (m *OhAuthTooTokenMutation) ResetClaimsUserID() { + m.claims_user_id = nil +} + +// SetClaimsUsername sets the "claims_username" field. +func (m *OhAuthTooTokenMutation) SetClaimsUsername(s string) { + m.claims_username = &s +} + +// ClaimsUsername returns the value of the "claims_username" field in the mutation. +func (m *OhAuthTooTokenMutation) ClaimsUsername() (r string, exists bool) { + v := m.claims_username + if v == nil { + return + } + return *v, true +} + +// OldClaimsUsername returns the old "claims_username" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldClaimsUsername(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClaimsUsername is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClaimsUsername requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClaimsUsername: %w", err) + } + return oldValue.ClaimsUsername, nil +} + +// ResetClaimsUsername resets all changes to the "claims_username" field. +func (m *OhAuthTooTokenMutation) ResetClaimsUsername() { + m.claims_username = nil +} + +// SetClaimsEmail sets the "claims_email" field. +func (m *OhAuthTooTokenMutation) SetClaimsEmail(s string) { + m.claims_email = &s +} + +// ClaimsEmail returns the value of the "claims_email" field in the mutation. +func (m *OhAuthTooTokenMutation) ClaimsEmail() (r string, exists bool) { + v := m.claims_email + if v == nil { + return + } + return *v, true +} + +// OldClaimsEmail returns the old "claims_email" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldClaimsEmail(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClaimsEmail is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClaimsEmail requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClaimsEmail: %w", err) + } + return oldValue.ClaimsEmail, nil +} + +// ResetClaimsEmail resets all changes to the "claims_email" field. +func (m *OhAuthTooTokenMutation) ResetClaimsEmail() { + m.claims_email = nil +} + +// SetClaimsEmailVerified sets the "claims_email_verified" field. +func (m *OhAuthTooTokenMutation) SetClaimsEmailVerified(b bool) { + m.claims_email_verified = &b +} + +// ClaimsEmailVerified returns the value of the "claims_email_verified" field in the mutation. +func (m *OhAuthTooTokenMutation) ClaimsEmailVerified() (r bool, exists bool) { + v := m.claims_email_verified + if v == nil { + return + } + return *v, true +} + +// OldClaimsEmailVerified returns the old "claims_email_verified" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldClaimsEmailVerified(ctx context.Context) (v bool, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClaimsEmailVerified is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClaimsEmailVerified requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClaimsEmailVerified: %w", err) + } + return oldValue.ClaimsEmailVerified, nil +} + +// ResetClaimsEmailVerified resets all changes to the "claims_email_verified" field. +func (m *OhAuthTooTokenMutation) ResetClaimsEmailVerified() { + m.claims_email_verified = nil +} + +// SetClaimsGroups sets the "claims_groups" field. +func (m *OhAuthTooTokenMutation) SetClaimsGroups(s []string) { + m.claims_groups = &s + m.appendclaims_groups = nil +} + +// ClaimsGroups returns the value of the "claims_groups" field in the mutation. +func (m *OhAuthTooTokenMutation) ClaimsGroups() (r []string, exists bool) { + v := m.claims_groups + if v == nil { + return + } + return *v, true +} + +// OldClaimsGroups returns the old "claims_groups" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldClaimsGroups(ctx context.Context) (v []string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClaimsGroups is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClaimsGroups requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClaimsGroups: %w", err) + } + return oldValue.ClaimsGroups, nil +} + +// AppendClaimsGroups adds s to the "claims_groups" field. +func (m *OhAuthTooTokenMutation) AppendClaimsGroups(s []string) { + m.appendclaims_groups = append(m.appendclaims_groups, s...) +} + +// AppendedClaimsGroups returns the list of values that were appended to the "claims_groups" field in this mutation. +func (m *OhAuthTooTokenMutation) AppendedClaimsGroups() ([]string, bool) { + if len(m.appendclaims_groups) == 0 { + return nil, false + } + return m.appendclaims_groups, true +} + +// ClearClaimsGroups clears the value of the "claims_groups" field. +func (m *OhAuthTooTokenMutation) ClearClaimsGroups() { + m.claims_groups = nil + m.appendclaims_groups = nil + m.clearedFields[ohauthtootoken.FieldClaimsGroups] = struct{}{} +} + +// ClaimsGroupsCleared returns if the "claims_groups" field was cleared in this mutation. +func (m *OhAuthTooTokenMutation) ClaimsGroupsCleared() bool { + _, ok := m.clearedFields[ohauthtootoken.FieldClaimsGroups] + return ok +} + +// ResetClaimsGroups resets all changes to the "claims_groups" field. +func (m *OhAuthTooTokenMutation) ResetClaimsGroups() { + m.claims_groups = nil + m.appendclaims_groups = nil + delete(m.clearedFields, ohauthtootoken.FieldClaimsGroups) +} + +// SetClaimsPreferredUsername sets the "claims_preferred_username" field. +func (m *OhAuthTooTokenMutation) SetClaimsPreferredUsername(s string) { + m.claims_preferred_username = &s +} + +// ClaimsPreferredUsername returns the value of the "claims_preferred_username" field in the mutation. +func (m *OhAuthTooTokenMutation) ClaimsPreferredUsername() (r string, exists bool) { + v := m.claims_preferred_username + if v == nil { + return + } + return *v, true +} + +// OldClaimsPreferredUsername returns the old "claims_preferred_username" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldClaimsPreferredUsername(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldClaimsPreferredUsername is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldClaimsPreferredUsername requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldClaimsPreferredUsername: %w", err) + } + return oldValue.ClaimsPreferredUsername, nil +} + +// ResetClaimsPreferredUsername resets all changes to the "claims_preferred_username" field. +func (m *OhAuthTooTokenMutation) ResetClaimsPreferredUsername() { + m.claims_preferred_username = nil +} + +// SetConnectorID sets the "connector_id" field. +func (m *OhAuthTooTokenMutation) SetConnectorID(s string) { + m.connector_id = &s +} + +// ConnectorID returns the value of the "connector_id" field in the mutation. +func (m *OhAuthTooTokenMutation) ConnectorID() (r string, exists bool) { + v := m.connector_id + if v == nil { + return + } + return *v, true +} + +// OldConnectorID returns the old "connector_id" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldConnectorID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldConnectorID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldConnectorID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldConnectorID: %w", err) + } + return oldValue.ConnectorID, nil +} + +// ResetConnectorID resets all changes to the "connector_id" field. +func (m *OhAuthTooTokenMutation) ResetConnectorID() { + m.connector_id = nil +} + +// SetConnectorData sets the "connector_data" field. +func (m *OhAuthTooTokenMutation) SetConnectorData(s []string) { + m.connector_data = &s + m.appendconnector_data = nil +} + +// ConnectorData returns the value of the "connector_data" field in the mutation. +func (m *OhAuthTooTokenMutation) ConnectorData() (r []string, exists bool) { + v := m.connector_data + if v == nil { + return + } + return *v, true +} + +// OldConnectorData returns the old "connector_data" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldConnectorData(ctx context.Context) (v []string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldConnectorData is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldConnectorData requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldConnectorData: %w", err) + } + return oldValue.ConnectorData, nil +} + +// AppendConnectorData adds s to the "connector_data" field. +func (m *OhAuthTooTokenMutation) AppendConnectorData(s []string) { + m.appendconnector_data = append(m.appendconnector_data, s...) +} + +// AppendedConnectorData returns the list of values that were appended to the "connector_data" field in this mutation. +func (m *OhAuthTooTokenMutation) AppendedConnectorData() ([]string, bool) { + if len(m.appendconnector_data) == 0 { + return nil, false + } + return m.appendconnector_data, true +} + +// ClearConnectorData clears the value of the "connector_data" field. +func (m *OhAuthTooTokenMutation) ClearConnectorData() { + m.connector_data = nil + m.appendconnector_data = nil + m.clearedFields[ohauthtootoken.FieldConnectorData] = struct{}{} +} + +// ConnectorDataCleared returns if the "connector_data" field was cleared in this mutation. +func (m *OhAuthTooTokenMutation) ConnectorDataCleared() bool { + _, ok := m.clearedFields[ohauthtootoken.FieldConnectorData] + return ok +} + +// ResetConnectorData resets all changes to the "connector_data" field. +func (m *OhAuthTooTokenMutation) ResetConnectorData() { + m.connector_data = nil + m.appendconnector_data = nil + delete(m.clearedFields, ohauthtootoken.FieldConnectorData) +} + +// SetLastUsed sets the "last_used" field. +func (m *OhAuthTooTokenMutation) SetLastUsed(t time.Time) { + m.last_used = &t +} + +// LastUsed returns the value of the "last_used" field in the mutation. +func (m *OhAuthTooTokenMutation) LastUsed() (r time.Time, exists bool) { + v := m.last_used + if v == nil { + return + } + return *v, true +} + +// OldLastUsed returns the old "last_used" field's value of the OhAuthTooToken entity. +// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldLastUsed(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldLastUsed is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldLastUsed requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldLastUsed: %w", err) + } + return oldValue.LastUsed, nil +} + +// ResetLastUsed resets all changes to the "last_used" field. +func (m *OhAuthTooTokenMutation) ResetLastUsed() { + m.last_used = nil +} + +// AddIntegrationIDs adds the "integration" edge to the Integration entity by ids. +func (m *OhAuthTooTokenMutation) AddIntegrationIDs(ids ...string) { + if m.integration == nil { + m.integration = make(map[string]struct{}) + } + for i := range ids { + m.integration[ids[i]] = struct{}{} + } +} + +// ClearIntegration clears the "integration" edge to the Integration entity. +func (m *OhAuthTooTokenMutation) ClearIntegration() { + m.clearedintegration = true +} + +// IntegrationCleared reports if the "integration" edge to the Integration entity was cleared. +func (m *OhAuthTooTokenMutation) IntegrationCleared() bool { + return m.clearedintegration +} + +// RemoveIntegrationIDs removes the "integration" edge to the Integration entity by IDs. +func (m *OhAuthTooTokenMutation) RemoveIntegrationIDs(ids ...string) { + if m.removedintegration == nil { + m.removedintegration = make(map[string]struct{}) + } + for i := range ids { + delete(m.integration, ids[i]) + m.removedintegration[ids[i]] = struct{}{} + } +} + +// RemovedIntegration returns the removed IDs of the "integration" edge to the Integration entity. +func (m *OhAuthTooTokenMutation) RemovedIntegrationIDs() (ids []string) { + for id := range m.removedintegration { + ids = append(ids, id) + } + return +} + +// IntegrationIDs returns the "integration" edge IDs in the mutation. +func (m *OhAuthTooTokenMutation) IntegrationIDs() (ids []string) { + for id := range m.integration { + ids = append(ids, id) + } + return +} + +// ResetIntegration resets all changes to the "integration" edge. +func (m *OhAuthTooTokenMutation) ResetIntegration() { + m.integration = nil + m.clearedintegration = false + m.removedintegration = nil +} + +// AddEventIDs adds the "events" edge to the Event entity by ids. +func (m *OhAuthTooTokenMutation) AddEventIDs(ids ...string) { + if m.events == nil { + m.events = make(map[string]struct{}) + } + for i := range ids { + m.events[ids[i]] = struct{}{} + } +} + +// ClearEvents clears the "events" edge to the Event entity. +func (m *OhAuthTooTokenMutation) ClearEvents() { + m.clearedevents = true +} + +// EventsCleared reports if the "events" edge to the Event entity was cleared. +func (m *OhAuthTooTokenMutation) EventsCleared() bool { + return m.clearedevents +} + +// RemoveEventIDs removes the "events" edge to the Event entity by IDs. +func (m *OhAuthTooTokenMutation) RemoveEventIDs(ids ...string) { + if m.removedevents == nil { + m.removedevents = make(map[string]struct{}) + } + for i := range ids { + delete(m.events, ids[i]) + m.removedevents[ids[i]] = struct{}{} + } +} + +// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. +func (m *OhAuthTooTokenMutation) RemovedEventsIDs() (ids []string) { + for id := range m.removedevents { + ids = append(ids, id) + } + return +} + +// EventsIDs returns the "events" edge IDs in the mutation. +func (m *OhAuthTooTokenMutation) EventsIDs() (ids []string) { + for id := range m.events { + ids = append(ids, id) + } + return +} + +// ResetEvents resets all changes to the "events" edge. +func (m *OhAuthTooTokenMutation) ResetEvents() { + m.events = nil + m.clearedevents = false + m.removedevents = nil +} + +// Where appends a list predicates to the OhAuthTooTokenMutation builder. +func (m *OhAuthTooTokenMutation) Where(ps ...predicate.OhAuthTooToken) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the OhAuthTooTokenMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *OhAuthTooTokenMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.OhAuthTooToken, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *OhAuthTooTokenMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *OhAuthTooTokenMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (OhAuthTooToken). +func (m *OhAuthTooTokenMutation) 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 *OhAuthTooTokenMutation) Fields() []string { + fields := make([]string, 0, 14) + if m.mapping_id != nil { + fields = append(fields, ohauthtootoken.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, ohauthtootoken.FieldTags) + } + if m.client_id != nil { + fields = append(fields, ohauthtootoken.FieldClientID) + } + if m.scopes != nil { + fields = append(fields, ohauthtootoken.FieldScopes) + } + if m.nonce != nil { + fields = append(fields, ohauthtootoken.FieldNonce) + } + if m.claims_user_id != nil { + fields = append(fields, ohauthtootoken.FieldClaimsUserID) + } + if m.claims_username != nil { + fields = append(fields, ohauthtootoken.FieldClaimsUsername) + } + if m.claims_email != nil { + fields = append(fields, ohauthtootoken.FieldClaimsEmail) + } + if m.claims_email_verified != nil { + fields = append(fields, ohauthtootoken.FieldClaimsEmailVerified) + } + if m.claims_groups != nil { + fields = append(fields, ohauthtootoken.FieldClaimsGroups) + } + if m.claims_preferred_username != nil { + fields = append(fields, ohauthtootoken.FieldClaimsPreferredUsername) + } + if m.connector_id != nil { + fields = append(fields, ohauthtootoken.FieldConnectorID) + } + if m.connector_data != nil { + fields = append(fields, ohauthtootoken.FieldConnectorData) + } + if m.last_used != nil { + fields = append(fields, ohauthtootoken.FieldLastUsed) + } + 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 *OhAuthTooTokenMutation) Field(name string) (ent.Value, bool) { + switch name { + case ohauthtootoken.FieldMappingID: + return m.MappingID() + case ohauthtootoken.FieldTags: + return m.Tags() + case ohauthtootoken.FieldClientID: + return m.ClientID() + case ohauthtootoken.FieldScopes: + return m.Scopes() + case ohauthtootoken.FieldNonce: + return m.Nonce() + case ohauthtootoken.FieldClaimsUserID: + return m.ClaimsUserID() + case ohauthtootoken.FieldClaimsUsername: + return m.ClaimsUsername() + case ohauthtootoken.FieldClaimsEmail: + return m.ClaimsEmail() + case ohauthtootoken.FieldClaimsEmailVerified: + return m.ClaimsEmailVerified() + case ohauthtootoken.FieldClaimsGroups: + return m.ClaimsGroups() + case ohauthtootoken.FieldClaimsPreferredUsername: + return m.ClaimsPreferredUsername() + case ohauthtootoken.FieldConnectorID: + return m.ConnectorID() + case ohauthtootoken.FieldConnectorData: + return m.ConnectorData() + case ohauthtootoken.FieldLastUsed: + return m.LastUsed() + } + 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 *OhAuthTooTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case ohauthtootoken.FieldMappingID: + return m.OldMappingID(ctx) + case ohauthtootoken.FieldTags: + return m.OldTags(ctx) + case ohauthtootoken.FieldClientID: + return m.OldClientID(ctx) + case ohauthtootoken.FieldScopes: + return m.OldScopes(ctx) + case ohauthtootoken.FieldNonce: + return m.OldNonce(ctx) + case ohauthtootoken.FieldClaimsUserID: + return m.OldClaimsUserID(ctx) + case ohauthtootoken.FieldClaimsUsername: + return m.OldClaimsUsername(ctx) + case ohauthtootoken.FieldClaimsEmail: + return m.OldClaimsEmail(ctx) + case ohauthtootoken.FieldClaimsEmailVerified: + return m.OldClaimsEmailVerified(ctx) + case ohauthtootoken.FieldClaimsGroups: + return m.OldClaimsGroups(ctx) + case ohauthtootoken.FieldClaimsPreferredUsername: + return m.OldClaimsPreferredUsername(ctx) + case ohauthtootoken.FieldConnectorID: + return m.OldConnectorID(ctx) + case ohauthtootoken.FieldConnectorData: + return m.OldConnectorData(ctx) + case ohauthtootoken.FieldLastUsed: + return m.OldLastUsed(ctx) + } + return nil, fmt.Errorf("unknown OhAuthTooToken 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 *OhAuthTooTokenMutation) SetField(name string, value ent.Value) error { + switch name { + case ohauthtootoken.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case ohauthtootoken.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case ohauthtootoken.FieldClientID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClientID(v) + return nil + case ohauthtootoken.FieldScopes: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetScopes(v) + return nil + case ohauthtootoken.FieldNonce: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetNonce(v) + return nil + case ohauthtootoken.FieldClaimsUserID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClaimsUserID(v) + return nil + case ohauthtootoken.FieldClaimsUsername: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClaimsUsername(v) + return nil + case ohauthtootoken.FieldClaimsEmail: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClaimsEmail(v) + return nil + case ohauthtootoken.FieldClaimsEmailVerified: + v, ok := value.(bool) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClaimsEmailVerified(v) + return nil + case ohauthtootoken.FieldClaimsGroups: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClaimsGroups(v) + return nil + case ohauthtootoken.FieldClaimsPreferredUsername: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClaimsPreferredUsername(v) + return nil + case ohauthtootoken.FieldConnectorID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetConnectorID(v) + return nil + case ohauthtootoken.FieldConnectorData: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetConnectorData(v) + return nil + case ohauthtootoken.FieldLastUsed: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetLastUsed(v) + return nil + } + return fmt.Errorf("unknown OhAuthTooToken field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *OhAuthTooTokenMutation) 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 *OhAuthTooTokenMutation) 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 *OhAuthTooTokenMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown OhAuthTooToken numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *OhAuthTooTokenMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(ohauthtootoken.FieldTags) { + fields = append(fields, ohauthtootoken.FieldTags) + } + if m.FieldCleared(ohauthtootoken.FieldScopes) { + fields = append(fields, ohauthtootoken.FieldScopes) + } + if m.FieldCleared(ohauthtootoken.FieldClaimsGroups) { + fields = append(fields, ohauthtootoken.FieldClaimsGroups) + } + if m.FieldCleared(ohauthtootoken.FieldConnectorData) { + fields = append(fields, ohauthtootoken.FieldConnectorData) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *OhAuthTooTokenMutation) 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 *OhAuthTooTokenMutation) ClearField(name string) error { + switch name { + case ohauthtootoken.FieldTags: + m.ClearTags() + return nil + case ohauthtootoken.FieldScopes: + m.ClearScopes() + return nil + case ohauthtootoken.FieldClaimsGroups: + m.ClearClaimsGroups() + return nil + case ohauthtootoken.FieldConnectorData: + m.ClearConnectorData() + return nil + } + return fmt.Errorf("unknown OhAuthTooToken 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 *OhAuthTooTokenMutation) ResetField(name string) error { + switch name { + case ohauthtootoken.FieldMappingID: + m.ResetMappingID() + return nil + case ohauthtootoken.FieldTags: + m.ResetTags() + return nil + case ohauthtootoken.FieldClientID: + m.ResetClientID() + return nil + case ohauthtootoken.FieldScopes: + m.ResetScopes() + return nil + case ohauthtootoken.FieldNonce: + m.ResetNonce() + return nil + case ohauthtootoken.FieldClaimsUserID: + m.ResetClaimsUserID() + return nil + case ohauthtootoken.FieldClaimsUsername: + m.ResetClaimsUsername() + return nil + case ohauthtootoken.FieldClaimsEmail: + m.ResetClaimsEmail() + return nil + case ohauthtootoken.FieldClaimsEmailVerified: + m.ResetClaimsEmailVerified() + return nil + case ohauthtootoken.FieldClaimsGroups: + m.ResetClaimsGroups() + return nil + case ohauthtootoken.FieldClaimsPreferredUsername: + m.ResetClaimsPreferredUsername() + return nil + case ohauthtootoken.FieldConnectorID: + m.ResetConnectorID() + return nil + case ohauthtootoken.FieldConnectorData: + m.ResetConnectorData() + return nil + case ohauthtootoken.FieldLastUsed: + m.ResetLastUsed() + return nil + } + return fmt.Errorf("unknown OhAuthTooToken field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *OhAuthTooTokenMutation) AddedEdges() []string { + edges := make([]string, 0, 2) + if m.integration != nil { + edges = append(edges, ohauthtootoken.EdgeIntegration) + } + if m.events != nil { + edges = append(edges, ohauthtootoken.EdgeEvents) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *OhAuthTooTokenMutation) AddedIDs(name string) []ent.Value { + switch name { + case ohauthtootoken.EdgeIntegration: + ids := make([]ent.Value, 0, len(m.integration)) + for id := range m.integration { + ids = append(ids, id) + } + return ids + case ohauthtootoken.EdgeEvents: + ids := make([]ent.Value, 0, len(m.events)) + for id := range m.events { + ids = append(ids, id) + } + return ids + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *OhAuthTooTokenMutation) RemovedEdges() []string { + edges := make([]string, 0, 2) + if m.removedintegration != nil { + edges = append(edges, ohauthtootoken.EdgeIntegration) + } + if m.removedevents != nil { + edges = append(edges, ohauthtootoken.EdgeEvents) + } + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *OhAuthTooTokenMutation) RemovedIDs(name string) []ent.Value { + switch name { + case ohauthtootoken.EdgeIntegration: + ids := make([]ent.Value, 0, len(m.removedintegration)) + for id := range m.removedintegration { + ids = append(ids, id) + } + return ids + case ohauthtootoken.EdgeEvents: + ids := make([]ent.Value, 0, len(m.removedevents)) + for id := range m.removedevents { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *OhAuthTooTokenMutation) ClearedEdges() []string { + edges := make([]string, 0, 2) + if m.clearedintegration { + edges = append(edges, ohauthtootoken.EdgeIntegration) + } + if m.clearedevents { + edges = append(edges, ohauthtootoken.EdgeEvents) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *OhAuthTooTokenMutation) EdgeCleared(name string) bool { + switch name { + case ohauthtootoken.EdgeIntegration: + return m.clearedintegration + case ohauthtootoken.EdgeEvents: + return m.clearedevents + } + 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 *OhAuthTooTokenMutation) ClearEdge(name string) error { + switch name { + } + return fmt.Errorf("unknown OhAuthTooToken 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 *OhAuthTooTokenMutation) ResetEdge(name string) error { + switch name { + case ohauthtootoken.EdgeIntegration: + m.ResetIntegration() + return nil + case ohauthtootoken.EdgeEvents: + m.ResetEvents() + return nil + } + return fmt.Errorf("unknown OhAuthTooToken edge %s", name) +} + +// OrgMembershipMutation represents an operation that mutates the OrgMembership nodes in the graph. +type OrgMembershipMutation struct { + config + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + deleted_at *time.Time + deleted_by *string + role *enums.Role + clearedFields map[string]struct{} + organization *string + clearedorganization bool + user *string + cleareduser bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + done bool + oldValue func(context.Context) (*OrgMembership, error) + predicates []predicate.OrgMembership +} + +var _ ent.Mutation = (*OrgMembershipMutation)(nil) + +// orgmembershipOption allows management of the mutation configuration using functional options. +type orgmembershipOption func(*OrgMembershipMutation) + +// newOrgMembershipMutation creates new mutation for the OrgMembership entity. +func newOrgMembershipMutation(c config, op Op, opts ...orgmembershipOption) *OrgMembershipMutation { + m := &OrgMembershipMutation{ + config: c, + op: op, + typ: TypeOrgMembership, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withOrgMembershipID sets the ID field of the mutation. +func withOrgMembershipID(id string) orgmembershipOption { + return func(m *OrgMembershipMutation) { + var ( + err error + once sync.Once + value *OrgMembership + ) + m.oldValue = func(ctx context.Context) (*OrgMembership, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().OrgMembership.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withOrgMembership sets the old OrgMembership of the mutation. +func withOrgMembership(node *OrgMembership) orgmembershipOption { + return func(m *OrgMembershipMutation) { + m.oldValue = func(context.Context) (*OrgMembership, 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 OrgMembershipMutation) 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 OrgMembershipMutation) 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 OrgMembership entities. +func (m *OrgMembershipMutation) 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 *OrgMembershipMutation) 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 *OrgMembershipMutation) 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().OrgMembership.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 *OrgMembershipMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *OrgMembershipMutation) 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 OrgMembership entity. +// If the OrgMembership 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 *OrgMembershipMutation) 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 *OrgMembershipMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[orgmembership.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *OrgMembershipMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[orgmembership.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *OrgMembershipMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, orgmembership.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *OrgMembershipMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *OrgMembershipMutation) 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 OrgMembership entity. +// If the OrgMembership 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 *OrgMembershipMutation) 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 *OrgMembershipMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[orgmembership.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *OrgMembershipMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[orgmembership.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *OrgMembershipMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, orgmembership.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *OrgMembershipMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *OrgMembershipMutation) 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 OrgMembership entity. +// If the OrgMembership 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 *OrgMembershipMutation) 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 *OrgMembershipMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[orgmembership.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *OrgMembershipMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[orgmembership.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *OrgMembershipMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, orgmembership.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *OrgMembershipMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *OrgMembershipMutation) 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 OrgMembership entity. +// If the OrgMembership 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 *OrgMembershipMutation) 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 *OrgMembershipMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[orgmembership.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *OrgMembershipMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[orgmembership.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *OrgMembershipMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, orgmembership.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *OrgMembershipMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *OrgMembershipMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the OrgMembership entity. +// If the OrgMembership 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 *OrgMembershipMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *OrgMembershipMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *OrgMembershipMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *OrgMembershipMutation) 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 OrgMembership entity. +// If the OrgMembership 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 *OrgMembershipMutation) 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 *OrgMembershipMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[orgmembership.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *OrgMembershipMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[orgmembership.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *OrgMembershipMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, orgmembership.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *OrgMembershipMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *OrgMembershipMutation) 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 OrgMembership entity. +// If the OrgMembership 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 *OrgMembershipMutation) 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 *OrgMembershipMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[orgmembership.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *OrgMembershipMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[orgmembership.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *OrgMembershipMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, orgmembership.FieldDeletedBy) +} + +// SetRole sets the "role" field. +func (m *OrgMembershipMutation) SetRole(e enums.Role) { + m.role = &e +} + +// Role returns the value of the "role" field in the mutation. +func (m *OrgMembershipMutation) Role() (r enums.Role, exists bool) { + v := m.role + if v == nil { + return + } + return *v, true +} + +// OldRole returns the old "role" field's value of the OrgMembership entity. +// If the OrgMembership 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 *OrgMembershipMutation) OldRole(ctx context.Context) (v enums.Role, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldRole is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldRole requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldRole: %w", err) + } + return oldValue.Role, nil +} + +// ResetRole resets all changes to the "role" field. +func (m *OrgMembershipMutation) ResetRole() { + m.role = nil +} + +// SetOrganizationID sets the "organization_id" field. +func (m *OrgMembershipMutation) SetOrganizationID(s string) { + m.organization = &s +} + +// OrganizationID returns the value of the "organization_id" field in the mutation. +func (m *OrgMembershipMutation) OrganizationID() (r string, exists bool) { + v := m.organization + if v == nil { + return + } + return *v, true +} + +// OldOrganizationID returns the old "organization_id" field's value of the OrgMembership entity. +// If the OrgMembership 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 *OrgMembershipMutation) OldOrganizationID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldOrganizationID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldOrganizationID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldOrganizationID: %w", err) + } + return oldValue.OrganizationID, nil +} + +// ResetOrganizationID resets all changes to the "organization_id" field. +func (m *OrgMembershipMutation) ResetOrganizationID() { + m.organization = nil +} + +// SetUserID sets the "user_id" field. +func (m *OrgMembershipMutation) SetUserID(s string) { + m.user = &s +} + +// UserID returns the value of the "user_id" field in the mutation. +func (m *OrgMembershipMutation) 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 OrgMembership entity. +// If the OrgMembership 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 *OrgMembershipMutation) 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 +} + +// ResetUserID resets all changes to the "user_id" field. +func (m *OrgMembershipMutation) ResetUserID() { + m.user = nil +} + +// ClearOrganization clears the "organization" edge to the Organization entity. +func (m *OrgMembershipMutation) ClearOrganization() { + m.clearedorganization = true + m.clearedFields[orgmembership.FieldOrganizationID] = struct{}{} +} + +// OrganizationCleared reports if the "organization" edge to the Organization entity was cleared. +func (m *OrgMembershipMutation) OrganizationCleared() bool { + return m.clearedorganization +} + +// OrganizationIDs returns the "organization" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// OrganizationID instead. It exists only for internal usage by the builders. +func (m *OrgMembershipMutation) OrganizationIDs() (ids []string) { + if id := m.organization; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetOrganization resets all changes to the "organization" edge. +func (m *OrgMembershipMutation) ResetOrganization() { + m.organization = nil + m.clearedorganization = false +} + +// ClearUser clears the "user" edge to the User entity. +func (m *OrgMembershipMutation) ClearUser() { + m.cleareduser = true + m.clearedFields[orgmembership.FieldUserID] = struct{}{} +} + +// UserCleared reports if the "user" edge to the User entity was cleared. +func (m *OrgMembershipMutation) UserCleared() bool { + return 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 *OrgMembershipMutation) UserIDs() (ids []string) { + if id := m.user; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetUser resets all changes to the "user" edge. +func (m *OrgMembershipMutation) ResetUser() { + m.user = nil + m.cleareduser = false +} + +// AddEventIDs adds the "events" edge to the Event entity by ids. +func (m *OrgMembershipMutation) AddEventIDs(ids ...string) { + if m.events == nil { + m.events = make(map[string]struct{}) + } + for i := range ids { + m.events[ids[i]] = struct{}{} + } +} + +// ClearEvents clears the "events" edge to the Event entity. +func (m *OrgMembershipMutation) ClearEvents() { + m.clearedevents = true +} + +// EventsCleared reports if the "events" edge to the Event entity was cleared. +func (m *OrgMembershipMutation) EventsCleared() bool { + return m.clearedevents +} + +// RemoveEventIDs removes the "events" edge to the Event entity by IDs. +func (m *OrgMembershipMutation) RemoveEventIDs(ids ...string) { + if m.removedevents == nil { + m.removedevents = make(map[string]struct{}) + } + for i := range ids { + delete(m.events, ids[i]) + m.removedevents[ids[i]] = struct{}{} + } +} + +// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. +func (m *OrgMembershipMutation) RemovedEventsIDs() (ids []string) { + for id := range m.removedevents { + ids = append(ids, id) + } + return +} + +// EventsIDs returns the "events" edge IDs in the mutation. +func (m *OrgMembershipMutation) EventsIDs() (ids []string) { + for id := range m.events { + ids = append(ids, id) + } + return +} + +// ResetEvents resets all changes to the "events" edge. +func (m *OrgMembershipMutation) ResetEvents() { + m.events = nil + m.clearedevents = false + m.removedevents = nil +} + +// Where appends a list predicates to the OrgMembershipMutation builder. +func (m *OrgMembershipMutation) Where(ps ...predicate.OrgMembership) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the OrgMembershipMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *OrgMembershipMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.OrgMembership, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *OrgMembershipMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *OrgMembershipMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (OrgMembership). +func (m *OrgMembershipMutation) 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 *OrgMembershipMutation) Fields() []string { + fields := make([]string, 0, 10) + if m.created_at != nil { + fields = append(fields, orgmembership.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, orgmembership.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, orgmembership.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, orgmembership.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, orgmembership.FieldMappingID) + } + if m.deleted_at != nil { + fields = append(fields, orgmembership.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, orgmembership.FieldDeletedBy) + } + if m.role != nil { + fields = append(fields, orgmembership.FieldRole) + } + if m.organization != nil { + fields = append(fields, orgmembership.FieldOrganizationID) + } + if m.user != nil { + fields = append(fields, orgmembership.FieldUserID) + } + 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 *OrgMembershipMutation) Field(name string) (ent.Value, bool) { + switch name { + case orgmembership.FieldCreatedAt: + return m.CreatedAt() + case orgmembership.FieldUpdatedAt: + return m.UpdatedAt() + case orgmembership.FieldCreatedBy: + return m.CreatedBy() + case orgmembership.FieldUpdatedBy: + return m.UpdatedBy() + case orgmembership.FieldMappingID: + return m.MappingID() + case orgmembership.FieldDeletedAt: + return m.DeletedAt() + case orgmembership.FieldDeletedBy: + return m.DeletedBy() + case orgmembership.FieldRole: + return m.Role() + case orgmembership.FieldOrganizationID: + return m.OrganizationID() + case orgmembership.FieldUserID: + return m.UserID() + } + 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 *OrgMembershipMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case orgmembership.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case orgmembership.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case orgmembership.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case orgmembership.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case orgmembership.FieldMappingID: + return m.OldMappingID(ctx) + case orgmembership.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case orgmembership.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case orgmembership.FieldRole: + return m.OldRole(ctx) + case orgmembership.FieldOrganizationID: + return m.OldOrganizationID(ctx) + case orgmembership.FieldUserID: + return m.OldUserID(ctx) + } + return nil, fmt.Errorf("unknown OrgMembership 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 *OrgMembershipMutation) SetField(name string, value ent.Value) error { + switch name { + case orgmembership.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 orgmembership.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 orgmembership.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case orgmembership.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case orgmembership.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case orgmembership.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 orgmembership.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case orgmembership.FieldRole: + v, ok := value.(enums.Role) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRole(v) + return nil + case orgmembership.FieldOrganizationID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOrganizationID(v) + return nil + case orgmembership.FieldUserID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUserID(v) + return nil + } + return fmt.Errorf("unknown OrgMembership field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *OrgMembershipMutation) 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 *OrgMembershipMutation) 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 *OrgMembershipMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown OrgMembership numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *OrgMembershipMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(orgmembership.FieldCreatedAt) { + fields = append(fields, orgmembership.FieldCreatedAt) + } + if m.FieldCleared(orgmembership.FieldUpdatedAt) { + fields = append(fields, orgmembership.FieldUpdatedAt) + } + if m.FieldCleared(orgmembership.FieldCreatedBy) { + fields = append(fields, orgmembership.FieldCreatedBy) + } + if m.FieldCleared(orgmembership.FieldUpdatedBy) { + fields = append(fields, orgmembership.FieldUpdatedBy) + } + if m.FieldCleared(orgmembership.FieldDeletedAt) { + fields = append(fields, orgmembership.FieldDeletedAt) + } + if m.FieldCleared(orgmembership.FieldDeletedBy) { + fields = append(fields, orgmembership.FieldDeletedBy) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *OrgMembershipMutation) 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 *OrgMembershipMutation) ClearField(name string) error { + switch name { + case orgmembership.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case orgmembership.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case orgmembership.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case orgmembership.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case orgmembership.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case orgmembership.FieldDeletedBy: + m.ClearDeletedBy() + return nil + } + return fmt.Errorf("unknown OrgMembership 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 *OrgMembershipMutation) ResetField(name string) error { + switch name { + case orgmembership.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case orgmembership.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case orgmembership.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case orgmembership.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case orgmembership.FieldMappingID: + m.ResetMappingID() + return nil + case orgmembership.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case orgmembership.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case orgmembership.FieldRole: + m.ResetRole() + return nil + case orgmembership.FieldOrganizationID: + m.ResetOrganizationID() + return nil + case orgmembership.FieldUserID: + m.ResetUserID() + return nil + } + return fmt.Errorf("unknown OrgMembership field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *OrgMembershipMutation) AddedEdges() []string { + edges := make([]string, 0, 3) + if m.organization != nil { + edges = append(edges, orgmembership.EdgeOrganization) + } + if m.user != nil { + edges = append(edges, orgmembership.EdgeUser) + } + if m.events != nil { + edges = append(edges, orgmembership.EdgeEvents) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *OrgMembershipMutation) AddedIDs(name string) []ent.Value { + switch name { + case orgmembership.EdgeOrganization: + if id := m.organization; id != nil { + return []ent.Value{*id} + } + case orgmembership.EdgeUser: + if id := m.user; id != nil { + return []ent.Value{*id} + } + case orgmembership.EdgeEvents: + ids := make([]ent.Value, 0, len(m.events)) + for id := range m.events { + ids = append(ids, id) + } + return ids + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *OrgMembershipMutation) RemovedEdges() []string { + edges := make([]string, 0, 3) + if m.removedevents != nil { + edges = append(edges, orgmembership.EdgeEvents) + } + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *OrgMembershipMutation) RemovedIDs(name string) []ent.Value { + switch name { + case orgmembership.EdgeEvents: + ids := make([]ent.Value, 0, len(m.removedevents)) + for id := range m.removedevents { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *OrgMembershipMutation) ClearedEdges() []string { + edges := make([]string, 0, 3) + if m.clearedorganization { + edges = append(edges, orgmembership.EdgeOrganization) + } + if m.cleareduser { + edges = append(edges, orgmembership.EdgeUser) + } + if m.clearedevents { + edges = append(edges, orgmembership.EdgeEvents) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *OrgMembershipMutation) EdgeCleared(name string) bool { + switch name { + case orgmembership.EdgeOrganization: + return m.clearedorganization + case orgmembership.EdgeUser: + return m.cleareduser + case orgmembership.EdgeEvents: + return m.clearedevents + } + 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 *OrgMembershipMutation) ClearEdge(name string) error { + switch name { + case orgmembership.EdgeOrganization: + m.ClearOrganization() + return nil + case orgmembership.EdgeUser: + m.ClearUser() + return nil + } + return fmt.Errorf("unknown OrgMembership 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 *OrgMembershipMutation) ResetEdge(name string) error { + switch name { + case orgmembership.EdgeOrganization: + m.ResetOrganization() + return nil + case orgmembership.EdgeUser: + m.ResetUser() + return nil + case orgmembership.EdgeEvents: + m.ResetEvents() + return nil + } + return fmt.Errorf("unknown OrgMembership edge %s", name) +} + +// OrgMembershipHistoryMutation represents an operation that mutates the OrgMembershipHistory nodes in the graph. +type OrgMembershipHistoryMutation 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 + mapping_id *string + deleted_at *time.Time + deleted_by *string + role *enums.Role + organization_id *string + user_id *string + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*OrgMembershipHistory, error) + predicates []predicate.OrgMembershipHistory +} + +var _ ent.Mutation = (*OrgMembershipHistoryMutation)(nil) + +// orgmembershiphistoryOption allows management of the mutation configuration using functional options. +type orgmembershiphistoryOption func(*OrgMembershipHistoryMutation) + +// newOrgMembershipHistoryMutation creates new mutation for the OrgMembershipHistory entity. +func newOrgMembershipHistoryMutation(c config, op Op, opts ...orgmembershiphistoryOption) *OrgMembershipHistoryMutation { + m := &OrgMembershipHistoryMutation{ + config: c, + op: op, + typ: TypeOrgMembershipHistory, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withOrgMembershipHistoryID sets the ID field of the mutation. +func withOrgMembershipHistoryID(id string) orgmembershiphistoryOption { + return func(m *OrgMembershipHistoryMutation) { + var ( + err error + once sync.Once + value *OrgMembershipHistory + ) + m.oldValue = func(ctx context.Context) (*OrgMembershipHistory, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().OrgMembershipHistory.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withOrgMembershipHistory sets the old OrgMembershipHistory of the mutation. +func withOrgMembershipHistory(node *OrgMembershipHistory) orgmembershiphistoryOption { + return func(m *OrgMembershipHistoryMutation) { + m.oldValue = func(context.Context) (*OrgMembershipHistory, 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 OrgMembershipHistoryMutation) 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 OrgMembershipHistoryMutation) 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 OrgMembershipHistory entities. +func (m *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) 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().OrgMembershipHistory.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 *OrgMembershipHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *OrgMembershipHistoryMutation) 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 OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *OrgMembershipHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *OrgMembershipHistoryMutation) 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 OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[orgmembershiphistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *OrgMembershipHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[orgmembershiphistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *OrgMembershipHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, orgmembershiphistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *OrgMembershipHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *OrgMembershipHistoryMutation) 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 OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) ResetOperation() { + m.operation = nil +} + +// SetCreatedAt sets the "created_at" field. +func (m *OrgMembershipHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *OrgMembershipHistoryMutation) 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 OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[orgmembershiphistory.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *OrgMembershipHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[orgmembershiphistory.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *OrgMembershipHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, orgmembershiphistory.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *OrgMembershipHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *OrgMembershipHistoryMutation) 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 OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[orgmembershiphistory.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *OrgMembershipHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[orgmembershiphistory.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *OrgMembershipHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, orgmembershiphistory.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *OrgMembershipHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *OrgMembershipHistoryMutation) 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 OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[orgmembershiphistory.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *OrgMembershipHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[orgmembershiphistory.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *OrgMembershipHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, orgmembershiphistory.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *OrgMembershipHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *OrgMembershipHistoryMutation) 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 OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[orgmembershiphistory.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *OrgMembershipHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[orgmembershiphistory.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *OrgMembershipHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, orgmembershiphistory.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *OrgMembershipHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *OrgMembershipHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *OrgMembershipHistoryMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *OrgMembershipHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *OrgMembershipHistoryMutation) 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 OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[orgmembershiphistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *OrgMembershipHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[orgmembershiphistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *OrgMembershipHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, orgmembershiphistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *OrgMembershipHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *OrgMembershipHistoryMutation) 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 OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[orgmembershiphistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *OrgMembershipHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[orgmembershiphistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *OrgMembershipHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, orgmembershiphistory.FieldDeletedBy) +} + +// SetRole sets the "role" field. +func (m *OrgMembershipHistoryMutation) SetRole(e enums.Role) { + m.role = &e +} + +// Role returns the value of the "role" field in the mutation. +func (m *OrgMembershipHistoryMutation) Role() (r enums.Role, exists bool) { + v := m.role + if v == nil { + return + } + return *v, true +} + +// OldRole returns the old "role" field's value of the OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) OldRole(ctx context.Context) (v enums.Role, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldRole is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldRole requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldRole: %w", err) + } + return oldValue.Role, nil +} + +// ResetRole resets all changes to the "role" field. +func (m *OrgMembershipHistoryMutation) ResetRole() { + m.role = nil +} + +// SetOrganizationID sets the "organization_id" field. +func (m *OrgMembershipHistoryMutation) SetOrganizationID(s string) { + m.organization_id = &s +} + +// OrganizationID returns the value of the "organization_id" field in the mutation. +func (m *OrgMembershipHistoryMutation) OrganizationID() (r string, exists bool) { + v := m.organization_id + if v == nil { + return + } + return *v, true +} + +// OldOrganizationID returns the old "organization_id" field's value of the OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) OldOrganizationID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldOrganizationID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldOrganizationID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldOrganizationID: %w", err) + } + return oldValue.OrganizationID, nil +} + +// ResetOrganizationID resets all changes to the "organization_id" field. +func (m *OrgMembershipHistoryMutation) ResetOrganizationID() { + m.organization_id = nil +} + +// SetUserID sets the "user_id" field. +func (m *OrgMembershipHistoryMutation) SetUserID(s string) { + m.user_id = &s +} + +// UserID returns the value of the "user_id" field in the mutation. +func (m *OrgMembershipHistoryMutation) 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 OrgMembershipHistory entity. +// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) 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 +} + +// ResetUserID resets all changes to the "user_id" field. +func (m *OrgMembershipHistoryMutation) ResetUserID() { + m.user_id = nil +} + +// Where appends a list predicates to the OrgMembershipHistoryMutation builder. +func (m *OrgMembershipHistoryMutation) Where(ps ...predicate.OrgMembershipHistory) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the OrgMembershipHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *OrgMembershipHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.OrgMembershipHistory, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *OrgMembershipHistoryMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *OrgMembershipHistoryMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (OrgMembershipHistory). +func (m *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) Fields() []string { + fields := make([]string, 0, 13) + if m.history_time != nil { + fields = append(fields, orgmembershiphistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, orgmembershiphistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, orgmembershiphistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, orgmembershiphistory.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, orgmembershiphistory.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, orgmembershiphistory.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, orgmembershiphistory.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, orgmembershiphistory.FieldMappingID) + } + if m.deleted_at != nil { + fields = append(fields, orgmembershiphistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, orgmembershiphistory.FieldDeletedBy) + } + if m.role != nil { + fields = append(fields, orgmembershiphistory.FieldRole) + } + if m.organization_id != nil { + fields = append(fields, orgmembershiphistory.FieldOrganizationID) + } + if m.user_id != nil { + fields = append(fields, orgmembershiphistory.FieldUserID) + } + 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 *OrgMembershipHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case orgmembershiphistory.FieldHistoryTime: + return m.HistoryTime() + case orgmembershiphistory.FieldRef: + return m.Ref() + case orgmembershiphistory.FieldOperation: + return m.Operation() + case orgmembershiphistory.FieldCreatedAt: + return m.CreatedAt() + case orgmembershiphistory.FieldUpdatedAt: + return m.UpdatedAt() + case orgmembershiphistory.FieldCreatedBy: + return m.CreatedBy() + case orgmembershiphistory.FieldUpdatedBy: + return m.UpdatedBy() + case orgmembershiphistory.FieldMappingID: + return m.MappingID() + case orgmembershiphistory.FieldDeletedAt: + return m.DeletedAt() + case orgmembershiphistory.FieldDeletedBy: + return m.DeletedBy() + case orgmembershiphistory.FieldRole: + return m.Role() + case orgmembershiphistory.FieldOrganizationID: + return m.OrganizationID() + case orgmembershiphistory.FieldUserID: + return m.UserID() + } + 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 *OrgMembershipHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case orgmembershiphistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case orgmembershiphistory.FieldRef: + return m.OldRef(ctx) + case orgmembershiphistory.FieldOperation: + return m.OldOperation(ctx) + case orgmembershiphistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case orgmembershiphistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case orgmembershiphistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case orgmembershiphistory.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case orgmembershiphistory.FieldMappingID: + return m.OldMappingID(ctx) + case orgmembershiphistory.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case orgmembershiphistory.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case orgmembershiphistory.FieldRole: + return m.OldRole(ctx) + case orgmembershiphistory.FieldOrganizationID: + return m.OldOrganizationID(ctx) + case orgmembershiphistory.FieldUserID: + return m.OldUserID(ctx) + } + return nil, fmt.Errorf("unknown OrgMembershipHistory 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 *OrgMembershipHistoryMutation) SetField(name string, value ent.Value) error { + switch name { + case orgmembershiphistory.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 orgmembershiphistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case orgmembershiphistory.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 orgmembershiphistory.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 orgmembershiphistory.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 orgmembershiphistory.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case orgmembershiphistory.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case orgmembershiphistory.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case orgmembershiphistory.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 orgmembershiphistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case orgmembershiphistory.FieldRole: + v, ok := value.(enums.Role) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRole(v) + return nil + case orgmembershiphistory.FieldOrganizationID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOrganizationID(v) + return nil + case orgmembershiphistory.FieldUserID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUserID(v) + return nil + } + return fmt.Errorf("unknown OrgMembershipHistory field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown OrgMembershipHistory numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *OrgMembershipHistoryMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(orgmembershiphistory.FieldRef) { + fields = append(fields, orgmembershiphistory.FieldRef) + } + if m.FieldCleared(orgmembershiphistory.FieldCreatedAt) { + fields = append(fields, orgmembershiphistory.FieldCreatedAt) + } + if m.FieldCleared(orgmembershiphistory.FieldUpdatedAt) { + fields = append(fields, orgmembershiphistory.FieldUpdatedAt) + } + if m.FieldCleared(orgmembershiphistory.FieldCreatedBy) { + fields = append(fields, orgmembershiphistory.FieldCreatedBy) + } + if m.FieldCleared(orgmembershiphistory.FieldUpdatedBy) { + fields = append(fields, orgmembershiphistory.FieldUpdatedBy) + } + if m.FieldCleared(orgmembershiphistory.FieldDeletedAt) { + fields = append(fields, orgmembershiphistory.FieldDeletedAt) + } + if m.FieldCleared(orgmembershiphistory.FieldDeletedBy) { + fields = append(fields, orgmembershiphistory.FieldDeletedBy) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) ClearField(name string) error { + switch name { + case orgmembershiphistory.FieldRef: + m.ClearRef() + return nil + case orgmembershiphistory.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case orgmembershiphistory.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case orgmembershiphistory.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case orgmembershiphistory.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case orgmembershiphistory.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case orgmembershiphistory.FieldDeletedBy: + m.ClearDeletedBy() + return nil + } + return fmt.Errorf("unknown OrgMembershipHistory 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 *OrgMembershipHistoryMutation) ResetField(name string) error { + switch name { + case orgmembershiphistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case orgmembershiphistory.FieldRef: + m.ResetRef() + return nil + case orgmembershiphistory.FieldOperation: + m.ResetOperation() + return nil + case orgmembershiphistory.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case orgmembershiphistory.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case orgmembershiphistory.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case orgmembershiphistory.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case orgmembershiphistory.FieldMappingID: + m.ResetMappingID() + return nil + case orgmembershiphistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case orgmembershiphistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case orgmembershiphistory.FieldRole: + m.ResetRole() + return nil + case orgmembershiphistory.FieldOrganizationID: + m.ResetOrganizationID() + return nil + case orgmembershiphistory.FieldUserID: + m.ResetUserID() + return nil + } + return fmt.Errorf("unknown OrgMembershipHistory field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) AddedIDs(name string) []ent.Value { + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) RemovedIDs(name string) []ent.Value { + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown OrgMembershipHistory 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 *OrgMembershipHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown OrgMembershipHistory edge %s", name) +} + +// OrganizationMutation represents an operation that mutates the Organization nodes in the graph. +type OrganizationMutation struct { + config + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + name *string + display_name *string + description *string + personal_org *bool + avatar_remote_url *string + dedicated_db *bool + clearedFields map[string]struct{} + parent *string + clearedparent bool + children map[string]struct{} + removedchildren map[string]struct{} + clearedchildren bool + groups map[string]struct{} + removedgroups map[string]struct{} + clearedgroups bool + templates map[string]struct{} + removedtemplates map[string]struct{} + clearedtemplates bool + integrations map[string]struct{} + removedintegrations map[string]struct{} + clearedintegrations bool + setting *string + clearedsetting bool + documentdata map[string]struct{} + removeddocumentdata map[string]struct{} + cleareddocumentdata bool + entitlements map[string]struct{} + removedentitlements map[string]struct{} + clearedentitlements bool + organization_entitlement map[string]struct{} + removedorganization_entitlement map[string]struct{} + clearedorganization_entitlement bool + personal_access_tokens map[string]struct{} + removedpersonal_access_tokens map[string]struct{} + clearedpersonal_access_tokens bool + api_tokens map[string]struct{} + removedapi_tokens map[string]struct{} + clearedapi_tokens bool + oauthprovider map[string]struct{} + removedoauthprovider map[string]struct{} + clearedoauthprovider bool + users map[string]struct{} + removedusers map[string]struct{} + clearedusers bool + invites map[string]struct{} + removedinvites map[string]struct{} + clearedinvites bool + subscribers map[string]struct{} + removedsubscribers map[string]struct{} + clearedsubscribers bool + webhooks map[string]struct{} + removedwebhooks map[string]struct{} + clearedwebhooks bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + secrets map[string]struct{} + removedsecrets map[string]struct{} + clearedsecrets bool + features map[string]struct{} + removedfeatures map[string]struct{} + clearedfeatures bool + files map[string]struct{} + removedfiles map[string]struct{} + clearedfiles bool + entitlementplans map[string]struct{} + removedentitlementplans map[string]struct{} + clearedentitlementplans bool + entitlementplanfeatures map[string]struct{} + removedentitlementplanfeatures map[string]struct{} + clearedentitlementplanfeatures bool + entities map[string]struct{} + removedentities map[string]struct{} + clearedentities bool + entitytypes map[string]struct{} + removedentitytypes map[string]struct{} + clearedentitytypes bool + contacts map[string]struct{} + removedcontacts map[string]struct{} + clearedcontacts bool + notes map[string]struct{} + removednotes map[string]struct{} + clearednotes bool + members map[string]struct{} + removedmembers map[string]struct{} + clearedmembers bool + done bool + oldValue func(context.Context) (*Organization, error) + predicates []predicate.Organization +} + +var _ ent.Mutation = (*OrganizationMutation)(nil) + +// organizationOption allows management of the mutation configuration using functional options. +type organizationOption func(*OrganizationMutation) + +// newOrganizationMutation creates new mutation for the Organization entity. +func newOrganizationMutation(c config, op Op, opts ...organizationOption) *OrganizationMutation { + m := &OrganizationMutation{ + config: c, + op: op, + typ: TypeOrganization, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withOrganizationID sets the ID field of the mutation. +func withOrganizationID(id string) organizationOption { + return func(m *OrganizationMutation) { + var ( + err error + once sync.Once + value *Organization + ) + m.oldValue = func(ctx context.Context) (*Organization, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().Organization.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withOrganization sets the old Organization of the mutation. +func withOrganization(node *Organization) organizationOption { + return func(m *OrganizationMutation) { + m.oldValue = func(context.Context) (*Organization, 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 OrganizationMutation) 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 OrganizationMutation) 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 Organization entities. +func (m *OrganizationMutation) 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 *OrganizationMutation) 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 *OrganizationMutation) 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().Organization.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 *OrganizationMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *OrganizationMutation) 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 Organization entity. +// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[organization.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *OrganizationMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[organization.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *OrganizationMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, organization.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *OrganizationMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *OrganizationMutation) 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 Organization entity. +// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[organization.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *OrganizationMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[organization.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *OrganizationMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, organization.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *OrganizationMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *OrganizationMutation) 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 Organization entity. +// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[organization.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *OrganizationMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[organization.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *OrganizationMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, organization.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *OrganizationMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *OrganizationMutation) 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 Organization entity. +// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[organization.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *OrganizationMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[organization.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *OrganizationMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, organization.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *OrganizationMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *OrganizationMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the Organization entity. +// If the Organization 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 *OrganizationMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *OrganizationMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *OrganizationMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *OrganizationMutation) 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 Organization entity. +// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) 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 *OrganizationMutation) 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 *OrganizationMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[organization.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *OrganizationMutation) TagsCleared() bool { + _, ok := m.clearedFields[organization.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *OrganizationMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, organization.FieldTags) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *OrganizationMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *OrganizationMutation) 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 Organization entity. +// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[organization.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *OrganizationMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[organization.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *OrganizationMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, organization.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *OrganizationMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *OrganizationMutation) 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 Organization entity. +// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[organization.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *OrganizationMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[organization.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *OrganizationMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, organization.FieldDeletedBy) +} + +// SetName sets the "name" field. +func (m *OrganizationMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *OrganizationMutation) 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 Organization entity. +// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) ResetName() { + m.name = nil +} + +// SetDisplayName sets the "display_name" field. +func (m *OrganizationMutation) SetDisplayName(s string) { + m.display_name = &s +} + +// DisplayName returns the value of the "display_name" field in the mutation. +func (m *OrganizationMutation) DisplayName() (r string, exists bool) { + v := m.display_name + if v == nil { + return + } + return *v, true +} + +// OldDisplayName returns the old "display_name" field's value of the Organization entity. +// If the Organization 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 *OrganizationMutation) OldDisplayName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDisplayName requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) + } + return oldValue.DisplayName, nil +} + +// ResetDisplayName resets all changes to the "display_name" field. +func (m *OrganizationMutation) ResetDisplayName() { + m.display_name = nil +} + +// SetDescription sets the "description" field. +func (m *OrganizationMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *OrganizationMutation) 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 Organization entity. +// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) ClearDescription() { + m.description = nil + m.clearedFields[organization.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *OrganizationMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[organization.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *OrganizationMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, organization.FieldDescription) +} + +// SetParentOrganizationID sets the "parent_organization_id" field. +func (m *OrganizationMutation) SetParentOrganizationID(s string) { + m.parent = &s +} + +// ParentOrganizationID returns the value of the "parent_organization_id" field in the mutation. +func (m *OrganizationMutation) ParentOrganizationID() (r string, exists bool) { + v := m.parent + if v == nil { + return + } + return *v, true +} + +// OldParentOrganizationID returns the old "parent_organization_id" field's value of the Organization entity. +// If the Organization 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 *OrganizationMutation) OldParentOrganizationID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldParentOrganizationID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldParentOrganizationID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldParentOrganizationID: %w", err) + } + return oldValue.ParentOrganizationID, nil +} + +// ClearParentOrganizationID clears the value of the "parent_organization_id" field. +func (m *OrganizationMutation) ClearParentOrganizationID() { + m.parent = nil + m.clearedFields[organization.FieldParentOrganizationID] = struct{}{} +} + +// ParentOrganizationIDCleared returns if the "parent_organization_id" field was cleared in this mutation. +func (m *OrganizationMutation) ParentOrganizationIDCleared() bool { + _, ok := m.clearedFields[organization.FieldParentOrganizationID] + return ok +} + +// ResetParentOrganizationID resets all changes to the "parent_organization_id" field. +func (m *OrganizationMutation) ResetParentOrganizationID() { + m.parent = nil + delete(m.clearedFields, organization.FieldParentOrganizationID) +} + +// SetPersonalOrg sets the "personal_org" field. +func (m *OrganizationMutation) SetPersonalOrg(b bool) { + m.personal_org = &b +} + +// PersonalOrg returns the value of the "personal_org" field in the mutation. +func (m *OrganizationMutation) PersonalOrg() (r bool, exists bool) { + v := m.personal_org + if v == nil { + return + } + return *v, true +} + +// OldPersonalOrg returns the old "personal_org" field's value of the Organization entity. +// If the Organization 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 *OrganizationMutation) OldPersonalOrg(ctx context.Context) (v bool, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldPersonalOrg is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldPersonalOrg requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldPersonalOrg: %w", err) + } + return oldValue.PersonalOrg, nil +} + +// ClearPersonalOrg clears the value of the "personal_org" field. +func (m *OrganizationMutation) ClearPersonalOrg() { + m.personal_org = nil + m.clearedFields[organization.FieldPersonalOrg] = struct{}{} +} + +// PersonalOrgCleared returns if the "personal_org" field was cleared in this mutation. +func (m *OrganizationMutation) PersonalOrgCleared() bool { + _, ok := m.clearedFields[organization.FieldPersonalOrg] + return ok +} + +// ResetPersonalOrg resets all changes to the "personal_org" field. +func (m *OrganizationMutation) ResetPersonalOrg() { + m.personal_org = nil + delete(m.clearedFields, organization.FieldPersonalOrg) +} + +// SetAvatarRemoteURL sets the "avatar_remote_url" field. +func (m *OrganizationMutation) SetAvatarRemoteURL(s string) { + m.avatar_remote_url = &s +} + +// AvatarRemoteURL returns the value of the "avatar_remote_url" field in the mutation. +func (m *OrganizationMutation) AvatarRemoteURL() (r string, exists bool) { + v := m.avatar_remote_url + if v == nil { + return + } + return *v, true +} + +// OldAvatarRemoteURL returns the old "avatar_remote_url" field's value of the Organization entity. +// If the Organization 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 *OrganizationMutation) OldAvatarRemoteURL(ctx context.Context) (v *string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldAvatarRemoteURL is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldAvatarRemoteURL requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldAvatarRemoteURL: %w", err) + } + return oldValue.AvatarRemoteURL, nil +} + +// ClearAvatarRemoteURL clears the value of the "avatar_remote_url" field. +func (m *OrganizationMutation) ClearAvatarRemoteURL() { + m.avatar_remote_url = nil + m.clearedFields[organization.FieldAvatarRemoteURL] = struct{}{} +} + +// AvatarRemoteURLCleared returns if the "avatar_remote_url" field was cleared in this mutation. +func (m *OrganizationMutation) AvatarRemoteURLCleared() bool { + _, ok := m.clearedFields[organization.FieldAvatarRemoteURL] + return ok +} + +// ResetAvatarRemoteURL resets all changes to the "avatar_remote_url" field. +func (m *OrganizationMutation) ResetAvatarRemoteURL() { + m.avatar_remote_url = nil + delete(m.clearedFields, organization.FieldAvatarRemoteURL) +} + +// SetDedicatedDb sets the "dedicated_db" field. +func (m *OrganizationMutation) SetDedicatedDb(b bool) { + m.dedicated_db = &b +} + +// DedicatedDb returns the value of the "dedicated_db" field in the mutation. +func (m *OrganizationMutation) DedicatedDb() (r bool, exists bool) { + v := m.dedicated_db + if v == nil { + return + } + return *v, true +} + +// OldDedicatedDb returns the old "dedicated_db" field's value of the Organization entity. +// If the Organization 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 *OrganizationMutation) OldDedicatedDb(ctx context.Context) (v bool, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDedicatedDb is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDedicatedDb requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDedicatedDb: %w", err) + } + return oldValue.DedicatedDb, nil +} + +// ResetDedicatedDb resets all changes to the "dedicated_db" field. +func (m *OrganizationMutation) ResetDedicatedDb() { + m.dedicated_db = nil +} + +// SetParentID sets the "parent" edge to the Organization entity by id. +func (m *OrganizationMutation) SetParentID(id string) { + m.parent = &id +} + +// ClearParent clears the "parent" edge to the Organization entity. +func (m *OrganizationMutation) ClearParent() { + m.clearedparent = true + m.clearedFields[organization.FieldParentOrganizationID] = struct{}{} +} + +// ParentCleared reports if the "parent" edge to the Organization entity was cleared. +func (m *OrganizationMutation) ParentCleared() bool { + return m.ParentOrganizationIDCleared() || m.clearedparent +} + +// ParentID returns the "parent" edge ID in the mutation. +func (m *OrganizationMutation) ParentID() (id string, exists bool) { + if m.parent != nil { + return *m.parent, true + } + return +} + +// ParentIDs returns the "parent" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// ParentID instead. It exists only for internal usage by the builders. +func (m *OrganizationMutation) ParentIDs() (ids []string) { + if id := m.parent; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetParent resets all changes to the "parent" edge. +func (m *OrganizationMutation) ResetParent() { + m.parent = nil + m.clearedparent = false +} + +// AddChildIDs adds the "children" edge to the Organization entity by ids. +func (m *OrganizationMutation) AddChildIDs(ids ...string) { + if m.children == nil { + m.children = make(map[string]struct{}) + } + for i := range ids { + m.children[ids[i]] = struct{}{} + } +} + +// ClearChildren clears the "children" edge to the Organization entity. +func (m *OrganizationMutation) ClearChildren() { + m.clearedchildren = true +} + +// ChildrenCleared reports if the "children" edge to the Organization entity was cleared. +func (m *OrganizationMutation) ChildrenCleared() bool { + return m.clearedchildren +} + +// RemoveChildIDs removes the "children" edge to the Organization entity by IDs. +func (m *OrganizationMutation) RemoveChildIDs(ids ...string) { + if m.removedchildren == nil { + m.removedchildren = make(map[string]struct{}) + } + for i := range ids { + delete(m.children, ids[i]) + m.removedchildren[ids[i]] = struct{}{} + } +} + +// RemovedChildren returns the removed IDs of the "children" edge to the Organization entity. +func (m *OrganizationMutation) RemovedChildrenIDs() (ids []string) { + for id := range m.removedchildren { + ids = append(ids, id) + } + return +} + +// ChildrenIDs returns the "children" edge IDs in the mutation. +func (m *OrganizationMutation) ChildrenIDs() (ids []string) { + for id := range m.children { + ids = append(ids, id) + } + return +} + +// ResetChildren resets all changes to the "children" edge. +func (m *OrganizationMutation) ResetChildren() { + m.children = nil + m.clearedchildren = false + m.removedchildren = nil +} + +// AddGroupIDs adds the "groups" edge to the Group entity by ids. +func (m *OrganizationMutation) AddGroupIDs(ids ...string) { + if m.groups == nil { + m.groups = make(map[string]struct{}) + } + for i := range ids { + m.groups[ids[i]] = struct{}{} + } +} + +// ClearGroups clears the "groups" edge to the Group entity. +func (m *OrganizationMutation) ClearGroups() { + m.clearedgroups = true +} + +// GroupsCleared reports if the "groups" edge to the Group entity was cleared. +func (m *OrganizationMutation) GroupsCleared() bool { + return m.clearedgroups +} + +// RemoveGroupIDs removes the "groups" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveGroupIDs(ids ...string) { + if m.removedgroups == nil { + m.removedgroups = make(map[string]struct{}) + } + for i := range ids { + delete(m.groups, ids[i]) + m.removedgroups[ids[i]] = struct{}{} + } +} + +// RemovedGroups returns the removed IDs of the "groups" edge to the Group entity. +func (m *OrganizationMutation) RemovedGroupsIDs() (ids []string) { + for id := range m.removedgroups { + ids = append(ids, id) + } + return +} + +// GroupsIDs returns the "groups" edge IDs in the mutation. +func (m *OrganizationMutation) GroupsIDs() (ids []string) { + for id := range m.groups { + ids = append(ids, id) + } + return +} + +// ResetGroups resets all changes to the "groups" edge. +func (m *OrganizationMutation) ResetGroups() { + m.groups = nil + m.clearedgroups = false + m.removedgroups = nil +} + +// AddTemplateIDs adds the "templates" edge to the Template entity by ids. +func (m *OrganizationMutation) AddTemplateIDs(ids ...string) { + if m.templates == nil { + m.templates = make(map[string]struct{}) + } + for i := range ids { + m.templates[ids[i]] = struct{}{} + } +} + +// ClearTemplates clears the "templates" edge to the Template entity. +func (m *OrganizationMutation) ClearTemplates() { + m.clearedtemplates = true +} + +// TemplatesCleared reports if the "templates" edge to the Template entity was cleared. +func (m *OrganizationMutation) TemplatesCleared() bool { + return m.clearedtemplates +} + +// RemoveTemplateIDs removes the "templates" edge to the Template entity by IDs. +func (m *OrganizationMutation) RemoveTemplateIDs(ids ...string) { + if m.removedtemplates == nil { + m.removedtemplates = make(map[string]struct{}) + } + for i := range ids { + delete(m.templates, ids[i]) + m.removedtemplates[ids[i]] = struct{}{} + } +} + +// RemovedTemplates returns the removed IDs of the "templates" edge to the Template entity. +func (m *OrganizationMutation) RemovedTemplatesIDs() (ids []string) { + for id := range m.removedtemplates { + ids = append(ids, id) + } + return +} + +// TemplatesIDs returns the "templates" edge IDs in the mutation. +func (m *OrganizationMutation) TemplatesIDs() (ids []string) { + for id := range m.templates { + ids = append(ids, id) + } + return +} + +// ResetTemplates resets all changes to the "templates" edge. +func (m *OrganizationMutation) ResetTemplates() { + m.templates = nil + m.clearedtemplates = false + m.removedtemplates = nil +} + +// AddIntegrationIDs adds the "integrations" edge to the Integration entity by ids. +func (m *OrganizationMutation) AddIntegrationIDs(ids ...string) { + if m.integrations == nil { + m.integrations = make(map[string]struct{}) + } + for i := range ids { + m.integrations[ids[i]] = struct{}{} + } +} + +// ClearIntegrations clears the "integrations" edge to the Integration entity. +func (m *OrganizationMutation) ClearIntegrations() { + m.clearedintegrations = true +} + +// IntegrationsCleared reports if the "integrations" edge to the Integration entity was cleared. +func (m *OrganizationMutation) IntegrationsCleared() bool { + return m.clearedintegrations +} + +// RemoveIntegrationIDs removes the "integrations" edge to the Integration entity by IDs. +func (m *OrganizationMutation) RemoveIntegrationIDs(ids ...string) { + if m.removedintegrations == nil { + m.removedintegrations = make(map[string]struct{}) + } + for i := range ids { + delete(m.integrations, ids[i]) + m.removedintegrations[ids[i]] = struct{}{} + } +} + +// RemovedIntegrations returns the removed IDs of the "integrations" edge to the Integration entity. +func (m *OrganizationMutation) RemovedIntegrationsIDs() (ids []string) { + for id := range m.removedintegrations { + ids = append(ids, id) + } + return +} + +// IntegrationsIDs returns the "integrations" edge IDs in the mutation. +func (m *OrganizationMutation) IntegrationsIDs() (ids []string) { + for id := range m.integrations { + ids = append(ids, id) + } + return +} + +// ResetIntegrations resets all changes to the "integrations" edge. +func (m *OrganizationMutation) ResetIntegrations() { + m.integrations = nil + m.clearedintegrations = false + m.removedintegrations = nil +} + +// SetSettingID sets the "setting" edge to the OrganizationSetting entity by id. +func (m *OrganizationMutation) SetSettingID(id string) { + m.setting = &id +} + +// ClearSetting clears the "setting" edge to the OrganizationSetting entity. +func (m *OrganizationMutation) ClearSetting() { + m.clearedsetting = true +} + +// SettingCleared reports if the "setting" edge to the OrganizationSetting entity was cleared. +func (m *OrganizationMutation) SettingCleared() bool { + return m.clearedsetting +} + +// SettingID returns the "setting" edge ID in the mutation. +func (m *OrganizationMutation) SettingID() (id string, exists bool) { + if m.setting != nil { + return *m.setting, true + } + return +} + +// SettingIDs returns the "setting" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// SettingID instead. It exists only for internal usage by the builders. +func (m *OrganizationMutation) SettingIDs() (ids []string) { + if id := m.setting; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetSetting resets all changes to the "setting" edge. +func (m *OrganizationMutation) ResetSetting() { + m.setting = nil + m.clearedsetting = false +} + +// AddDocumentdatumIDs adds the "documentdata" edge to the DocumentData entity by ids. +func (m *OrganizationMutation) AddDocumentdatumIDs(ids ...string) { + if m.documentdata == nil { + m.documentdata = make(map[string]struct{}) + } + for i := range ids { + m.documentdata[ids[i]] = struct{}{} + } +} + +// ClearDocumentdata clears the "documentdata" edge to the DocumentData entity. +func (m *OrganizationMutation) ClearDocumentdata() { + m.cleareddocumentdata = true +} + +// DocumentdataCleared reports if the "documentdata" edge to the DocumentData entity was cleared. +func (m *OrganizationMutation) DocumentdataCleared() bool { + return m.cleareddocumentdata +} + +// RemoveDocumentdatumIDs removes the "documentdata" edge to the DocumentData entity by IDs. +func (m *OrganizationMutation) RemoveDocumentdatumIDs(ids ...string) { + if m.removeddocumentdata == nil { + m.removeddocumentdata = make(map[string]struct{}) + } + for i := range ids { + delete(m.documentdata, ids[i]) + m.removeddocumentdata[ids[i]] = struct{}{} + } +} + +// RemovedDocumentdata returns the removed IDs of the "documentdata" edge to the DocumentData entity. +func (m *OrganizationMutation) RemovedDocumentdataIDs() (ids []string) { + for id := range m.removeddocumentdata { + ids = append(ids, id) + } + return +} + +// DocumentdataIDs returns the "documentdata" edge IDs in the mutation. +func (m *OrganizationMutation) DocumentdataIDs() (ids []string) { + for id := range m.documentdata { + ids = append(ids, id) + } + return +} + +// ResetDocumentdata resets all changes to the "documentdata" edge. +func (m *OrganizationMutation) ResetDocumentdata() { + m.documentdata = nil + m.cleareddocumentdata = false + m.removeddocumentdata = nil +} + +// AddEntitlementIDs adds the "entitlements" edge to the Entitlement entity by ids. +func (m *OrganizationMutation) AddEntitlementIDs(ids ...string) { + if m.entitlements == nil { + m.entitlements = make(map[string]struct{}) + } + for i := range ids { + m.entitlements[ids[i]] = struct{}{} + } +} + +// ClearEntitlements clears the "entitlements" edge to the Entitlement entity. +func (m *OrganizationMutation) ClearEntitlements() { + m.clearedentitlements = true +} + +// EntitlementsCleared reports if the "entitlements" edge to the Entitlement entity was cleared. +func (m *OrganizationMutation) EntitlementsCleared() bool { + return m.clearedentitlements +} + +// RemoveEntitlementIDs removes the "entitlements" edge to the Entitlement entity by IDs. +func (m *OrganizationMutation) RemoveEntitlementIDs(ids ...string) { + if m.removedentitlements == nil { + m.removedentitlements = make(map[string]struct{}) + } + for i := range ids { + delete(m.entitlements, ids[i]) + m.removedentitlements[ids[i]] = struct{}{} + } +} + +// RemovedEntitlements returns the removed IDs of the "entitlements" edge to the Entitlement entity. +func (m *OrganizationMutation) RemovedEntitlementsIDs() (ids []string) { + for id := range m.removedentitlements { + ids = append(ids, id) + } + return +} + +// EntitlementsIDs returns the "entitlements" edge IDs in the mutation. +func (m *OrganizationMutation) EntitlementsIDs() (ids []string) { + for id := range m.entitlements { + ids = append(ids, id) + } + return +} + +// ResetEntitlements resets all changes to the "entitlements" edge. +func (m *OrganizationMutation) ResetEntitlements() { + m.entitlements = nil + m.clearedentitlements = false + m.removedentitlements = nil +} + +// AddOrganizationEntitlementIDs adds the "organization_entitlement" edge to the Entitlement entity by ids. +func (m *OrganizationMutation) AddOrganizationEntitlementIDs(ids ...string) { + if m.organization_entitlement == nil { + m.organization_entitlement = make(map[string]struct{}) + } + for i := range ids { + m.organization_entitlement[ids[i]] = struct{}{} + } +} + +// ClearOrganizationEntitlement clears the "organization_entitlement" edge to the Entitlement entity. +func (m *OrganizationMutation) ClearOrganizationEntitlement() { + m.clearedorganization_entitlement = true +} + +// OrganizationEntitlementCleared reports if the "organization_entitlement" edge to the Entitlement entity was cleared. +func (m *OrganizationMutation) OrganizationEntitlementCleared() bool { + return m.clearedorganization_entitlement +} + +// RemoveOrganizationEntitlementIDs removes the "organization_entitlement" edge to the Entitlement entity by IDs. +func (m *OrganizationMutation) RemoveOrganizationEntitlementIDs(ids ...string) { + if m.removedorganization_entitlement == nil { + m.removedorganization_entitlement = make(map[string]struct{}) + } + for i := range ids { + delete(m.organization_entitlement, ids[i]) + m.removedorganization_entitlement[ids[i]] = struct{}{} + } +} + +// RemovedOrganizationEntitlement returns the removed IDs of the "organization_entitlement" edge to the Entitlement entity. +func (m *OrganizationMutation) RemovedOrganizationEntitlementIDs() (ids []string) { + for id := range m.removedorganization_entitlement { + ids = append(ids, id) + } + return +} + +// OrganizationEntitlementIDs returns the "organization_entitlement" edge IDs in the mutation. +func (m *OrganizationMutation) OrganizationEntitlementIDs() (ids []string) { + for id := range m.organization_entitlement { + ids = append(ids, id) + } + return +} + +// ResetOrganizationEntitlement resets all changes to the "organization_entitlement" edge. +func (m *OrganizationMutation) ResetOrganizationEntitlement() { + m.organization_entitlement = nil + m.clearedorganization_entitlement = false + m.removedorganization_entitlement = nil +} + +// AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by ids. +func (m *OrganizationMutation) AddPersonalAccessTokenIDs(ids ...string) { + if m.personal_access_tokens == nil { + m.personal_access_tokens = make(map[string]struct{}) + } + for i := range ids { + m.personal_access_tokens[ids[i]] = struct{}{} + } +} + +// ClearPersonalAccessTokens clears the "personal_access_tokens" edge to the PersonalAccessToken entity. +func (m *OrganizationMutation) ClearPersonalAccessTokens() { + m.clearedpersonal_access_tokens = true +} + +// PersonalAccessTokensCleared reports if the "personal_access_tokens" edge to the PersonalAccessToken entity was cleared. +func (m *OrganizationMutation) PersonalAccessTokensCleared() bool { + return m.clearedpersonal_access_tokens +} + +// RemovePersonalAccessTokenIDs removes the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs. +func (m *OrganizationMutation) RemovePersonalAccessTokenIDs(ids ...string) { + if m.removedpersonal_access_tokens == nil { + m.removedpersonal_access_tokens = make(map[string]struct{}) + } + for i := range ids { + delete(m.personal_access_tokens, ids[i]) + m.removedpersonal_access_tokens[ids[i]] = struct{}{} + } +} + +// RemovedPersonalAccessTokens returns the removed IDs of the "personal_access_tokens" edge to the PersonalAccessToken entity. +func (m *OrganizationMutation) RemovedPersonalAccessTokensIDs() (ids []string) { + for id := range m.removedpersonal_access_tokens { + ids = append(ids, id) + } + return +} + +// PersonalAccessTokensIDs returns the "personal_access_tokens" edge IDs in the mutation. +func (m *OrganizationMutation) PersonalAccessTokensIDs() (ids []string) { + for id := range m.personal_access_tokens { + ids = append(ids, id) + } + return +} + +// ResetPersonalAccessTokens resets all changes to the "personal_access_tokens" edge. +func (m *OrganizationMutation) ResetPersonalAccessTokens() { + m.personal_access_tokens = nil + m.clearedpersonal_access_tokens = false + m.removedpersonal_access_tokens = nil +} + +// AddAPITokenIDs adds the "api_tokens" edge to the APIToken entity by ids. +func (m *OrganizationMutation) AddAPITokenIDs(ids ...string) { + if m.api_tokens == nil { + m.api_tokens = make(map[string]struct{}) + } + for i := range ids { + m.api_tokens[ids[i]] = struct{}{} + } +} + +// ClearAPITokens clears the "api_tokens" edge to the APIToken entity. +func (m *OrganizationMutation) ClearAPITokens() { + m.clearedapi_tokens = true +} + +// APITokensCleared reports if the "api_tokens" edge to the APIToken entity was cleared. +func (m *OrganizationMutation) APITokensCleared() bool { + return m.clearedapi_tokens +} + +// RemoveAPITokenIDs removes the "api_tokens" edge to the APIToken entity by IDs. +func (m *OrganizationMutation) RemoveAPITokenIDs(ids ...string) { + if m.removedapi_tokens == nil { + m.removedapi_tokens = make(map[string]struct{}) + } + for i := range ids { + delete(m.api_tokens, ids[i]) + m.removedapi_tokens[ids[i]] = struct{}{} + } +} + +// RemovedAPITokens returns the removed IDs of the "api_tokens" edge to the APIToken entity. +func (m *OrganizationMutation) RemovedAPITokensIDs() (ids []string) { + for id := range m.removedapi_tokens { + ids = append(ids, id) + } + return +} + +// APITokensIDs returns the "api_tokens" edge IDs in the mutation. +func (m *OrganizationMutation) APITokensIDs() (ids []string) { + for id := range m.api_tokens { + ids = append(ids, id) + } + return +} + +// ResetAPITokens resets all changes to the "api_tokens" edge. +func (m *OrganizationMutation) ResetAPITokens() { + m.api_tokens = nil + m.clearedapi_tokens = false + m.removedapi_tokens = nil +} + +// AddOauthproviderIDs adds the "oauthprovider" edge to the OauthProvider entity by ids. +func (m *OrganizationMutation) AddOauthproviderIDs(ids ...string) { + if m.oauthprovider == nil { + m.oauthprovider = make(map[string]struct{}) + } + for i := range ids { + m.oauthprovider[ids[i]] = struct{}{} + } +} + +// ClearOauthprovider clears the "oauthprovider" edge to the OauthProvider entity. +func (m *OrganizationMutation) ClearOauthprovider() { + m.clearedoauthprovider = true +} + +// OauthproviderCleared reports if the "oauthprovider" edge to the OauthProvider entity was cleared. +func (m *OrganizationMutation) OauthproviderCleared() bool { + return m.clearedoauthprovider +} + +// RemoveOauthproviderIDs removes the "oauthprovider" edge to the OauthProvider entity by IDs. +func (m *OrganizationMutation) RemoveOauthproviderIDs(ids ...string) { + if m.removedoauthprovider == nil { + m.removedoauthprovider = make(map[string]struct{}) + } + for i := range ids { + delete(m.oauthprovider, ids[i]) + m.removedoauthprovider[ids[i]] = struct{}{} + } +} + +// RemovedOauthprovider returns the removed IDs of the "oauthprovider" edge to the OauthProvider entity. +func (m *OrganizationMutation) RemovedOauthproviderIDs() (ids []string) { + for id := range m.removedoauthprovider { + ids = append(ids, id) + } + return +} + +// OauthproviderIDs returns the "oauthprovider" edge IDs in the mutation. +func (m *OrganizationMutation) OauthproviderIDs() (ids []string) { + for id := range m.oauthprovider { + ids = append(ids, id) + } + return +} + +// ResetOauthprovider resets all changes to the "oauthprovider" edge. +func (m *OrganizationMutation) ResetOauthprovider() { + m.oauthprovider = nil + m.clearedoauthprovider = false + m.removedoauthprovider = nil +} + +// AddUserIDs adds the "users" edge to the User entity by ids. +func (m *OrganizationMutation) AddUserIDs(ids ...string) { + if m.users == nil { + m.users = make(map[string]struct{}) + } + for i := range ids { + m.users[ids[i]] = struct{}{} + } +} + +// ClearUsers clears the "users" edge to the User entity. +func (m *OrganizationMutation) ClearUsers() { + m.clearedusers = true +} + +// UsersCleared reports if the "users" edge to the User entity was cleared. +func (m *OrganizationMutation) UsersCleared() bool { + return m.clearedusers +} + +// RemoveUserIDs removes the "users" edge to the User entity by IDs. +func (m *OrganizationMutation) RemoveUserIDs(ids ...string) { + if m.removedusers == nil { + m.removedusers = make(map[string]struct{}) + } + for i := range ids { + delete(m.users, ids[i]) + m.removedusers[ids[i]] = struct{}{} + } +} + +// RemovedUsers returns the removed IDs of the "users" edge to the User entity. +func (m *OrganizationMutation) RemovedUsersIDs() (ids []string) { + for id := range m.removedusers { + ids = append(ids, id) + } + return +} + +// UsersIDs returns the "users" edge IDs in the mutation. +func (m *OrganizationMutation) UsersIDs() (ids []string) { + for id := range m.users { + ids = append(ids, id) + } + return +} + +// ResetUsers resets all changes to the "users" edge. +func (m *OrganizationMutation) ResetUsers() { + m.users = nil + m.clearedusers = false + m.removedusers = nil +} + +// AddInviteIDs adds the "invites" edge to the Invite entity by ids. +func (m *OrganizationMutation) AddInviteIDs(ids ...string) { + if m.invites == nil { + m.invites = make(map[string]struct{}) + } + for i := range ids { + m.invites[ids[i]] = struct{}{} + } +} + +// ClearInvites clears the "invites" edge to the Invite entity. +func (m *OrganizationMutation) ClearInvites() { + m.clearedinvites = true +} + +// InvitesCleared reports if the "invites" edge to the Invite entity was cleared. +func (m *OrganizationMutation) InvitesCleared() bool { + return m.clearedinvites +} + +// RemoveInviteIDs removes the "invites" edge to the Invite entity by IDs. +func (m *OrganizationMutation) RemoveInviteIDs(ids ...string) { + if m.removedinvites == nil { + m.removedinvites = make(map[string]struct{}) + } + for i := range ids { + delete(m.invites, ids[i]) + m.removedinvites[ids[i]] = struct{}{} + } +} + +// RemovedInvites returns the removed IDs of the "invites" edge to the Invite entity. +func (m *OrganizationMutation) RemovedInvitesIDs() (ids []string) { + for id := range m.removedinvites { + ids = append(ids, id) + } + return +} + +// InvitesIDs returns the "invites" edge IDs in the mutation. +func (m *OrganizationMutation) InvitesIDs() (ids []string) { + for id := range m.invites { + ids = append(ids, id) + } + return +} + +// ResetInvites resets all changes to the "invites" edge. +func (m *OrganizationMutation) ResetInvites() { + m.invites = nil + m.clearedinvites = false + m.removedinvites = nil +} + +// AddSubscriberIDs adds the "subscribers" edge to the Subscriber entity by ids. +func (m *OrganizationMutation) AddSubscriberIDs(ids ...string) { + if m.subscribers == nil { + m.subscribers = make(map[string]struct{}) + } + for i := range ids { + m.subscribers[ids[i]] = struct{}{} + } +} + +// ClearSubscribers clears the "subscribers" edge to the Subscriber entity. +func (m *OrganizationMutation) ClearSubscribers() { + m.clearedsubscribers = true +} + +// SubscribersCleared reports if the "subscribers" edge to the Subscriber entity was cleared. +func (m *OrganizationMutation) SubscribersCleared() bool { + return m.clearedsubscribers +} + +// RemoveSubscriberIDs removes the "subscribers" edge to the Subscriber entity by IDs. +func (m *OrganizationMutation) RemoveSubscriberIDs(ids ...string) { + if m.removedsubscribers == nil { + m.removedsubscribers = make(map[string]struct{}) + } + for i := range ids { + delete(m.subscribers, ids[i]) + m.removedsubscribers[ids[i]] = struct{}{} + } +} + +// RemovedSubscribers returns the removed IDs of the "subscribers" edge to the Subscriber entity. +func (m *OrganizationMutation) RemovedSubscribersIDs() (ids []string) { + for id := range m.removedsubscribers { + ids = append(ids, id) + } + return +} + +// SubscribersIDs returns the "subscribers" edge IDs in the mutation. +func (m *OrganizationMutation) SubscribersIDs() (ids []string) { + for id := range m.subscribers { + ids = append(ids, id) + } + return +} + +// ResetSubscribers resets all changes to the "subscribers" edge. +func (m *OrganizationMutation) ResetSubscribers() { + m.subscribers = nil + m.clearedsubscribers = false + m.removedsubscribers = nil +} + +// AddWebhookIDs adds the "webhooks" edge to the Webhook entity by ids. +func (m *OrganizationMutation) AddWebhookIDs(ids ...string) { + if m.webhooks == nil { + m.webhooks = make(map[string]struct{}) + } + for i := range ids { + m.webhooks[ids[i]] = struct{}{} + } +} + +// ClearWebhooks clears the "webhooks" edge to the Webhook entity. +func (m *OrganizationMutation) ClearWebhooks() { + m.clearedwebhooks = true +} + +// WebhooksCleared reports if the "webhooks" edge to the Webhook entity was cleared. +func (m *OrganizationMutation) WebhooksCleared() bool { + return m.clearedwebhooks +} + +// RemoveWebhookIDs removes the "webhooks" edge to the Webhook entity by IDs. +func (m *OrganizationMutation) RemoveWebhookIDs(ids ...string) { + if m.removedwebhooks == nil { + m.removedwebhooks = make(map[string]struct{}) + } + for i := range ids { + delete(m.webhooks, ids[i]) + m.removedwebhooks[ids[i]] = struct{}{} + } +} + +// RemovedWebhooks returns the removed IDs of the "webhooks" edge to the Webhook entity. +func (m *OrganizationMutation) RemovedWebhooksIDs() (ids []string) { + for id := range m.removedwebhooks { + ids = append(ids, id) + } + return +} + +// WebhooksIDs returns the "webhooks" edge IDs in the mutation. +func (m *OrganizationMutation) WebhooksIDs() (ids []string) { + for id := range m.webhooks { + ids = append(ids, id) + } + return +} + +// ResetWebhooks resets all changes to the "webhooks" edge. +func (m *OrganizationMutation) ResetWebhooks() { + m.webhooks = nil + m.clearedwebhooks = false + m.removedwebhooks = nil +} + +// AddEventIDs adds the "events" edge to the Event entity by ids. +func (m *OrganizationMutation) AddEventIDs(ids ...string) { + if m.events == nil { + m.events = make(map[string]struct{}) + } + for i := range ids { + m.events[ids[i]] = struct{}{} + } +} + +// ClearEvents clears the "events" edge to the Event entity. +func (m *OrganizationMutation) ClearEvents() { + m.clearedevents = true +} + +// EventsCleared reports if the "events" edge to the Event entity was cleared. +func (m *OrganizationMutation) EventsCleared() bool { + return m.clearedevents +} + +// RemoveEventIDs removes the "events" edge to the Event entity by IDs. +func (m *OrganizationMutation) RemoveEventIDs(ids ...string) { + if m.removedevents == nil { + m.removedevents = make(map[string]struct{}) + } + for i := range ids { + delete(m.events, ids[i]) + m.removedevents[ids[i]] = struct{}{} + } +} + +// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. +func (m *OrganizationMutation) RemovedEventsIDs() (ids []string) { + for id := range m.removedevents { + ids = append(ids, id) + } + return +} + +// EventsIDs returns the "events" edge IDs in the mutation. +func (m *OrganizationMutation) EventsIDs() (ids []string) { + for id := range m.events { + ids = append(ids, id) + } + return +} + +// ResetEvents resets all changes to the "events" edge. +func (m *OrganizationMutation) ResetEvents() { + m.events = nil + m.clearedevents = false + m.removedevents = nil +} + +// AddSecretIDs adds the "secrets" edge to the Hush entity by ids. +func (m *OrganizationMutation) AddSecretIDs(ids ...string) { + if m.secrets == nil { + m.secrets = make(map[string]struct{}) + } + for i := range ids { + m.secrets[ids[i]] = struct{}{} + } +} + +// ClearSecrets clears the "secrets" edge to the Hush entity. +func (m *OrganizationMutation) ClearSecrets() { + m.clearedsecrets = true +} + +// SecretsCleared reports if the "secrets" edge to the Hush entity was cleared. +func (m *OrganizationMutation) SecretsCleared() bool { + return m.clearedsecrets +} + +// RemoveSecretIDs removes the "secrets" edge to the Hush entity by IDs. +func (m *OrganizationMutation) RemoveSecretIDs(ids ...string) { + if m.removedsecrets == nil { + m.removedsecrets = make(map[string]struct{}) + } + for i := range ids { + delete(m.secrets, ids[i]) + m.removedsecrets[ids[i]] = struct{}{} + } +} + +// RemovedSecrets returns the removed IDs of the "secrets" edge to the Hush entity. +func (m *OrganizationMutation) RemovedSecretsIDs() (ids []string) { + for id := range m.removedsecrets { + ids = append(ids, id) + } + return +} + +// SecretsIDs returns the "secrets" edge IDs in the mutation. +func (m *OrganizationMutation) SecretsIDs() (ids []string) { + for id := range m.secrets { + ids = append(ids, id) + } + return +} + +// ResetSecrets resets all changes to the "secrets" edge. +func (m *OrganizationMutation) ResetSecrets() { + m.secrets = nil + m.clearedsecrets = false + m.removedsecrets = nil +} + +// AddFeatureIDs adds the "features" edge to the Feature entity by ids. +func (m *OrganizationMutation) AddFeatureIDs(ids ...string) { + if m.features == nil { + m.features = make(map[string]struct{}) + } + for i := range ids { + m.features[ids[i]] = struct{}{} + } +} + +// ClearFeatures clears the "features" edge to the Feature entity. +func (m *OrganizationMutation) ClearFeatures() { + m.clearedfeatures = true +} + +// FeaturesCleared reports if the "features" edge to the Feature entity was cleared. +func (m *OrganizationMutation) FeaturesCleared() bool { + return m.clearedfeatures +} + +// RemoveFeatureIDs removes the "features" edge to the Feature entity by IDs. +func (m *OrganizationMutation) RemoveFeatureIDs(ids ...string) { + if m.removedfeatures == nil { + m.removedfeatures = make(map[string]struct{}) + } + for i := range ids { + delete(m.features, ids[i]) + m.removedfeatures[ids[i]] = struct{}{} + } +} + +// RemovedFeatures returns the removed IDs of the "features" edge to the Feature entity. +func (m *OrganizationMutation) RemovedFeaturesIDs() (ids []string) { + for id := range m.removedfeatures { + ids = append(ids, id) + } + return +} + +// FeaturesIDs returns the "features" edge IDs in the mutation. +func (m *OrganizationMutation) FeaturesIDs() (ids []string) { + for id := range m.features { + ids = append(ids, id) + } + return +} + +// ResetFeatures resets all changes to the "features" edge. +func (m *OrganizationMutation) ResetFeatures() { + m.features = nil + m.clearedfeatures = false + m.removedfeatures = nil +} + +// AddFileIDs adds the "files" edge to the File entity by ids. +func (m *OrganizationMutation) AddFileIDs(ids ...string) { + if m.files == nil { + m.files = make(map[string]struct{}) + } + for i := range ids { + m.files[ids[i]] = struct{}{} + } +} + +// ClearFiles clears the "files" edge to the File entity. +func (m *OrganizationMutation) ClearFiles() { + m.clearedfiles = true +} + +// FilesCleared reports if the "files" edge to the File entity was cleared. +func (m *OrganizationMutation) FilesCleared() bool { + return m.clearedfiles +} + +// RemoveFileIDs removes the "files" edge to the File entity by IDs. +func (m *OrganizationMutation) RemoveFileIDs(ids ...string) { + if m.removedfiles == nil { + m.removedfiles = make(map[string]struct{}) + } + for i := range ids { + delete(m.files, ids[i]) + m.removedfiles[ids[i]] = struct{}{} + } +} + +// RemovedFiles returns the removed IDs of the "files" edge to the File entity. +func (m *OrganizationMutation) RemovedFilesIDs() (ids []string) { + for id := range m.removedfiles { + ids = append(ids, id) + } + return +} + +// FilesIDs returns the "files" edge IDs in the mutation. +func (m *OrganizationMutation) FilesIDs() (ids []string) { + for id := range m.files { + ids = append(ids, id) + } + return +} + +// ResetFiles resets all changes to the "files" edge. +func (m *OrganizationMutation) ResetFiles() { + m.files = nil + m.clearedfiles = false + m.removedfiles = nil +} + +// AddEntitlementplanIDs adds the "entitlementplans" edge to the EntitlementPlan entity by ids. +func (m *OrganizationMutation) AddEntitlementplanIDs(ids ...string) { + if m.entitlementplans == nil { + m.entitlementplans = make(map[string]struct{}) + } + for i := range ids { + m.entitlementplans[ids[i]] = struct{}{} + } +} + +// ClearEntitlementplans clears the "entitlementplans" edge to the EntitlementPlan entity. +func (m *OrganizationMutation) ClearEntitlementplans() { + m.clearedentitlementplans = true +} + +// EntitlementplansCleared reports if the "entitlementplans" edge to the EntitlementPlan entity was cleared. +func (m *OrganizationMutation) EntitlementplansCleared() bool { + return m.clearedentitlementplans +} + +// RemoveEntitlementplanIDs removes the "entitlementplans" edge to the EntitlementPlan entity by IDs. +func (m *OrganizationMutation) RemoveEntitlementplanIDs(ids ...string) { + if m.removedentitlementplans == nil { + m.removedentitlementplans = make(map[string]struct{}) + } + for i := range ids { + delete(m.entitlementplans, ids[i]) + m.removedentitlementplans[ids[i]] = struct{}{} + } +} + +// RemovedEntitlementplans returns the removed IDs of the "entitlementplans" edge to the EntitlementPlan entity. +func (m *OrganizationMutation) RemovedEntitlementplansIDs() (ids []string) { + for id := range m.removedentitlementplans { + ids = append(ids, id) + } + return +} + +// EntitlementplansIDs returns the "entitlementplans" edge IDs in the mutation. +func (m *OrganizationMutation) EntitlementplansIDs() (ids []string) { + for id := range m.entitlementplans { + ids = append(ids, id) + } + return +} + +// ResetEntitlementplans resets all changes to the "entitlementplans" edge. +func (m *OrganizationMutation) ResetEntitlementplans() { + m.entitlementplans = nil + m.clearedentitlementplans = false + m.removedentitlementplans = nil +} + +// AddEntitlementplanfeatureIDs adds the "entitlementplanfeatures" edge to the EntitlementPlanFeature entity by ids. +func (m *OrganizationMutation) AddEntitlementplanfeatureIDs(ids ...string) { + if m.entitlementplanfeatures == nil { + m.entitlementplanfeatures = make(map[string]struct{}) + } + for i := range ids { + m.entitlementplanfeatures[ids[i]] = struct{}{} + } +} + +// ClearEntitlementplanfeatures clears the "entitlementplanfeatures" edge to the EntitlementPlanFeature entity. +func (m *OrganizationMutation) ClearEntitlementplanfeatures() { + m.clearedentitlementplanfeatures = true +} + +// EntitlementplanfeaturesCleared reports if the "entitlementplanfeatures" edge to the EntitlementPlanFeature entity was cleared. +func (m *OrganizationMutation) EntitlementplanfeaturesCleared() bool { + return m.clearedentitlementplanfeatures +} + +// RemoveEntitlementplanfeatureIDs removes the "entitlementplanfeatures" edge to the EntitlementPlanFeature entity by IDs. +func (m *OrganizationMutation) RemoveEntitlementplanfeatureIDs(ids ...string) { + if m.removedentitlementplanfeatures == nil { + m.removedentitlementplanfeatures = make(map[string]struct{}) + } + for i := range ids { + delete(m.entitlementplanfeatures, ids[i]) + m.removedentitlementplanfeatures[ids[i]] = struct{}{} + } +} + +// RemovedEntitlementplanfeatures returns the removed IDs of the "entitlementplanfeatures" edge to the EntitlementPlanFeature entity. +func (m *OrganizationMutation) RemovedEntitlementplanfeaturesIDs() (ids []string) { + for id := range m.removedentitlementplanfeatures { + ids = append(ids, id) + } + return +} + +// EntitlementplanfeaturesIDs returns the "entitlementplanfeatures" edge IDs in the mutation. +func (m *OrganizationMutation) EntitlementplanfeaturesIDs() (ids []string) { + for id := range m.entitlementplanfeatures { + ids = append(ids, id) + } + return +} + +// ResetEntitlementplanfeatures resets all changes to the "entitlementplanfeatures" edge. +func (m *OrganizationMutation) ResetEntitlementplanfeatures() { + m.entitlementplanfeatures = nil + m.clearedentitlementplanfeatures = false + m.removedentitlementplanfeatures = nil +} + +// AddEntityIDs adds the "entities" edge to the Entity entity by ids. +func (m *OrganizationMutation) AddEntityIDs(ids ...string) { + if m.entities == nil { + m.entities = make(map[string]struct{}) + } + for i := range ids { + m.entities[ids[i]] = struct{}{} + } +} + +// ClearEntities clears the "entities" edge to the Entity entity. +func (m *OrganizationMutation) ClearEntities() { + m.clearedentities = true +} + +// EntitiesCleared reports if the "entities" edge to the Entity entity was cleared. +func (m *OrganizationMutation) EntitiesCleared() bool { + return m.clearedentities +} + +// RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs. +func (m *OrganizationMutation) RemoveEntityIDs(ids ...string) { + if m.removedentities == nil { + m.removedentities = make(map[string]struct{}) + } + for i := range ids { + delete(m.entities, ids[i]) + m.removedentities[ids[i]] = struct{}{} + } +} + +// RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity. +func (m *OrganizationMutation) RemovedEntitiesIDs() (ids []string) { + for id := range m.removedentities { + ids = append(ids, id) + } + return +} + +// EntitiesIDs returns the "entities" edge IDs in the mutation. +func (m *OrganizationMutation) EntitiesIDs() (ids []string) { + for id := range m.entities { + ids = append(ids, id) + } + return +} + +// ResetEntities resets all changes to the "entities" edge. +func (m *OrganizationMutation) ResetEntities() { + m.entities = nil + m.clearedentities = false + m.removedentities = nil +} + +// AddEntitytypeIDs adds the "entitytypes" edge to the EntityType entity by ids. +func (m *OrganizationMutation) AddEntitytypeIDs(ids ...string) { + if m.entitytypes == nil { + m.entitytypes = make(map[string]struct{}) + } + for i := range ids { + m.entitytypes[ids[i]] = struct{}{} + } +} + +// ClearEntitytypes clears the "entitytypes" edge to the EntityType entity. +func (m *OrganizationMutation) ClearEntitytypes() { + m.clearedentitytypes = true +} + +// EntitytypesCleared reports if the "entitytypes" edge to the EntityType entity was cleared. +func (m *OrganizationMutation) EntitytypesCleared() bool { + return m.clearedentitytypes +} + +// RemoveEntitytypeIDs removes the "entitytypes" edge to the EntityType entity by IDs. +func (m *OrganizationMutation) RemoveEntitytypeIDs(ids ...string) { + if m.removedentitytypes == nil { + m.removedentitytypes = make(map[string]struct{}) + } + for i := range ids { + delete(m.entitytypes, ids[i]) + m.removedentitytypes[ids[i]] = struct{}{} + } +} + +// RemovedEntitytypes returns the removed IDs of the "entitytypes" edge to the EntityType entity. +func (m *OrganizationMutation) RemovedEntitytypesIDs() (ids []string) { + for id := range m.removedentitytypes { + ids = append(ids, id) + } + return +} + +// EntitytypesIDs returns the "entitytypes" edge IDs in the mutation. +func (m *OrganizationMutation) EntitytypesIDs() (ids []string) { + for id := range m.entitytypes { + ids = append(ids, id) + } + return +} + +// ResetEntitytypes resets all changes to the "entitytypes" edge. +func (m *OrganizationMutation) ResetEntitytypes() { + m.entitytypes = nil + m.clearedentitytypes = false + m.removedentitytypes = nil +} + +// AddContactIDs adds the "contacts" edge to the Contact entity by ids. +func (m *OrganizationMutation) AddContactIDs(ids ...string) { + if m.contacts == nil { + m.contacts = make(map[string]struct{}) + } + for i := range ids { + m.contacts[ids[i]] = struct{}{} + } +} + +// ClearContacts clears the "contacts" edge to the Contact entity. +func (m *OrganizationMutation) ClearContacts() { + m.clearedcontacts = true +} + +// ContactsCleared reports if the "contacts" edge to the Contact entity was cleared. +func (m *OrganizationMutation) ContactsCleared() bool { + return m.clearedcontacts +} + +// RemoveContactIDs removes the "contacts" edge to the Contact entity by IDs. +func (m *OrganizationMutation) RemoveContactIDs(ids ...string) { + if m.removedcontacts == nil { + m.removedcontacts = make(map[string]struct{}) + } + for i := range ids { + delete(m.contacts, ids[i]) + m.removedcontacts[ids[i]] = struct{}{} + } +} + +// RemovedContacts returns the removed IDs of the "contacts" edge to the Contact entity. +func (m *OrganizationMutation) RemovedContactsIDs() (ids []string) { + for id := range m.removedcontacts { + ids = append(ids, id) + } + return +} + +// ContactsIDs returns the "contacts" edge IDs in the mutation. +func (m *OrganizationMutation) ContactsIDs() (ids []string) { + for id := range m.contacts { + ids = append(ids, id) + } + return +} + +// ResetContacts resets all changes to the "contacts" edge. +func (m *OrganizationMutation) ResetContacts() { + m.contacts = nil + m.clearedcontacts = false + m.removedcontacts = nil +} + +// AddNoteIDs adds the "notes" edge to the Note entity by ids. +func (m *OrganizationMutation) AddNoteIDs(ids ...string) { + if m.notes == nil { + m.notes = make(map[string]struct{}) + } + for i := range ids { + m.notes[ids[i]] = struct{}{} + } +} + +// ClearNotes clears the "notes" edge to the Note entity. +func (m *OrganizationMutation) ClearNotes() { + m.clearednotes = true +} + +// NotesCleared reports if the "notes" edge to the Note entity was cleared. +func (m *OrganizationMutation) NotesCleared() bool { + return m.clearednotes +} + +// RemoveNoteIDs removes the "notes" edge to the Note entity by IDs. +func (m *OrganizationMutation) RemoveNoteIDs(ids ...string) { + if m.removednotes == nil { + m.removednotes = make(map[string]struct{}) + } + for i := range ids { + delete(m.notes, ids[i]) + m.removednotes[ids[i]] = struct{}{} + } +} + +// RemovedNotes returns the removed IDs of the "notes" edge to the Note entity. +func (m *OrganizationMutation) RemovedNotesIDs() (ids []string) { + for id := range m.removednotes { + ids = append(ids, id) + } + return +} + +// NotesIDs returns the "notes" edge IDs in the mutation. +func (m *OrganizationMutation) NotesIDs() (ids []string) { + for id := range m.notes { + ids = append(ids, id) + } + return +} + +// ResetNotes resets all changes to the "notes" edge. +func (m *OrganizationMutation) ResetNotes() { + m.notes = nil + m.clearednotes = false + m.removednotes = nil +} + +// AddMemberIDs adds the "members" edge to the OrgMembership entity by ids. +func (m *OrganizationMutation) AddMemberIDs(ids ...string) { + if m.members == nil { + m.members = make(map[string]struct{}) + } + for i := range ids { + m.members[ids[i]] = struct{}{} + } +} + +// ClearMembers clears the "members" edge to the OrgMembership entity. +func (m *OrganizationMutation) ClearMembers() { + m.clearedmembers = true +} + +// MembersCleared reports if the "members" edge to the OrgMembership entity was cleared. +func (m *OrganizationMutation) MembersCleared() bool { + return m.clearedmembers +} + +// RemoveMemberIDs removes the "members" edge to the OrgMembership entity by IDs. +func (m *OrganizationMutation) RemoveMemberIDs(ids ...string) { + if m.removedmembers == nil { + m.removedmembers = make(map[string]struct{}) + } + for i := range ids { + delete(m.members, ids[i]) + m.removedmembers[ids[i]] = struct{}{} + } +} + +// RemovedMembers returns the removed IDs of the "members" edge to the OrgMembership entity. +func (m *OrganizationMutation) RemovedMembersIDs() (ids []string) { + for id := range m.removedmembers { + ids = append(ids, id) + } + return +} + +// MembersIDs returns the "members" edge IDs in the mutation. +func (m *OrganizationMutation) MembersIDs() (ids []string) { + for id := range m.members { + ids = append(ids, id) + } + return +} + +// ResetMembers resets all changes to the "members" edge. +func (m *OrganizationMutation) ResetMembers() { + m.members = nil + m.clearedmembers = false + m.removedmembers = nil +} + +// Where appends a list predicates to the OrganizationMutation builder. +func (m *OrganizationMutation) Where(ps ...predicate.Organization) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the OrganizationMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *OrganizationMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Organization, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *OrganizationMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *OrganizationMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (Organization). +func (m *OrganizationMutation) 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 *OrganizationMutation) Fields() []string { + fields := make([]string, 0, 15) + if m.created_at != nil { + fields = append(fields, organization.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, organization.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, organization.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, organization.FieldUpdatedBy) + } + if m.mapping_id != nil { + fields = append(fields, organization.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, organization.FieldTags) + } + if m.deleted_at != nil { + fields = append(fields, organization.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, organization.FieldDeletedBy) + } + if m.name != nil { + fields = append(fields, organization.FieldName) + } + if m.display_name != nil { + fields = append(fields, organization.FieldDisplayName) + } + if m.description != nil { + fields = append(fields, organization.FieldDescription) + } + if m.parent != nil { + fields = append(fields, organization.FieldParentOrganizationID) + } + if m.personal_org != nil { + fields = append(fields, organization.FieldPersonalOrg) + } + if m.avatar_remote_url != nil { + fields = append(fields, organization.FieldAvatarRemoteURL) + } + if m.dedicated_db != nil { + fields = append(fields, organization.FieldDedicatedDb) + } + 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 *OrganizationMutation) Field(name string) (ent.Value, bool) { + switch name { + case organization.FieldCreatedAt: + return m.CreatedAt() + case organization.FieldUpdatedAt: + return m.UpdatedAt() + case organization.FieldCreatedBy: + return m.CreatedBy() + case organization.FieldUpdatedBy: + return m.UpdatedBy() + case organization.FieldMappingID: + return m.MappingID() + case organization.FieldTags: + return m.Tags() + case organization.FieldDeletedAt: + return m.DeletedAt() + case organization.FieldDeletedBy: + return m.DeletedBy() + case organization.FieldName: + return m.Name() + case organization.FieldDisplayName: + return m.DisplayName() + case organization.FieldDescription: + return m.Description() + case organization.FieldParentOrganizationID: + return m.ParentOrganizationID() + case organization.FieldPersonalOrg: + return m.PersonalOrg() + case organization.FieldAvatarRemoteURL: + return m.AvatarRemoteURL() + case organization.FieldDedicatedDb: + return m.DedicatedDb() + } + 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 *OrganizationMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case organization.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case organization.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case organization.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case organization.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case organization.FieldMappingID: + return m.OldMappingID(ctx) + case organization.FieldTags: + return m.OldTags(ctx) + case organization.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case organization.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case organization.FieldName: + return m.OldName(ctx) + case organization.FieldDisplayName: + return m.OldDisplayName(ctx) + case organization.FieldDescription: + return m.OldDescription(ctx) + case organization.FieldParentOrganizationID: + return m.OldParentOrganizationID(ctx) + case organization.FieldPersonalOrg: + return m.OldPersonalOrg(ctx) + case organization.FieldAvatarRemoteURL: + return m.OldAvatarRemoteURL(ctx) + case organization.FieldDedicatedDb: + return m.OldDedicatedDb(ctx) + } + return nil, fmt.Errorf("unknown Organization 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 *OrganizationMutation) SetField(name string, value ent.Value) error { + switch name { + case organization.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 organization.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 organization.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case organization.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case organization.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case organization.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case organization.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 organization.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case organization.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case organization.FieldDisplayName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDisplayName(v) + return nil + case organization.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case organization.FieldParentOrganizationID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetParentOrganizationID(v) + return nil + case organization.FieldPersonalOrg: + v, ok := value.(bool) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetPersonalOrg(v) + return nil + case organization.FieldAvatarRemoteURL: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetAvatarRemoteURL(v) + return nil + case organization.FieldDedicatedDb: + v, ok := value.(bool) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDedicatedDb(v) + return nil + } + return fmt.Errorf("unknown Organization field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *OrganizationMutation) 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 *OrganizationMutation) 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 *OrganizationMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown Organization numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *OrganizationMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(organization.FieldCreatedAt) { + fields = append(fields, organization.FieldCreatedAt) + } + if m.FieldCleared(organization.FieldUpdatedAt) { + fields = append(fields, organization.FieldUpdatedAt) + } + if m.FieldCleared(organization.FieldCreatedBy) { + fields = append(fields, organization.FieldCreatedBy) + } + if m.FieldCleared(organization.FieldUpdatedBy) { + fields = append(fields, organization.FieldUpdatedBy) + } + if m.FieldCleared(organization.FieldTags) { + fields = append(fields, organization.FieldTags) + } + if m.FieldCleared(organization.FieldDeletedAt) { + fields = append(fields, organization.FieldDeletedAt) + } + if m.FieldCleared(organization.FieldDeletedBy) { + fields = append(fields, organization.FieldDeletedBy) + } + if m.FieldCleared(organization.FieldDescription) { + fields = append(fields, organization.FieldDescription) + } + if m.FieldCleared(organization.FieldParentOrganizationID) { + fields = append(fields, organization.FieldParentOrganizationID) + } + if m.FieldCleared(organization.FieldPersonalOrg) { + fields = append(fields, organization.FieldPersonalOrg) + } + if m.FieldCleared(organization.FieldAvatarRemoteURL) { + fields = append(fields, organization.FieldAvatarRemoteURL) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *OrganizationMutation) 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 *OrganizationMutation) ClearField(name string) error { + switch name { + case organization.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case organization.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case organization.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case organization.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case organization.FieldTags: + m.ClearTags() + return nil + case organization.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case organization.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case organization.FieldDescription: + m.ClearDescription() + return nil + case organization.FieldParentOrganizationID: + m.ClearParentOrganizationID() + return nil + case organization.FieldPersonalOrg: + m.ClearPersonalOrg() + return nil + case organization.FieldAvatarRemoteURL: + m.ClearAvatarRemoteURL() + return nil + } + return fmt.Errorf("unknown Organization 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 *OrganizationMutation) ResetField(name string) error { + switch name { + case organization.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case organization.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case organization.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case organization.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case organization.FieldMappingID: + m.ResetMappingID() + return nil + case organization.FieldTags: + m.ResetTags() + return nil + case organization.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case organization.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case organization.FieldName: + m.ResetName() + return nil + case organization.FieldDisplayName: + m.ResetDisplayName() + return nil + case organization.FieldDescription: + m.ResetDescription() + return nil + case organization.FieldParentOrganizationID: + m.ResetParentOrganizationID() + return nil + case organization.FieldPersonalOrg: + m.ResetPersonalOrg() + return nil + case organization.FieldAvatarRemoteURL: + m.ResetAvatarRemoteURL() + return nil + case organization.FieldDedicatedDb: + m.ResetDedicatedDb() + return nil + } + return fmt.Errorf("unknown Organization field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *OrganizationMutation) AddedEdges() []string { + edges := make([]string, 0, 27) + if m.parent != nil { + edges = append(edges, organization.EdgeParent) + } + if m.children != nil { + edges = append(edges, organization.EdgeChildren) + } + if m.groups != nil { + edges = append(edges, organization.EdgeGroups) + } + if m.templates != nil { + edges = append(edges, organization.EdgeTemplates) + } + if m.integrations != nil { + edges = append(edges, organization.EdgeIntegrations) + } + if m.setting != nil { + edges = append(edges, organization.EdgeSetting) + } + if m.documentdata != nil { + edges = append(edges, organization.EdgeDocumentdata) + } + if m.entitlements != nil { + edges = append(edges, organization.EdgeEntitlements) + } + if m.organization_entitlement != nil { + edges = append(edges, organization.EdgeOrganizationEntitlement) + } + if m.personal_access_tokens != nil { + edges = append(edges, organization.EdgePersonalAccessTokens) + } + if m.api_tokens != nil { + edges = append(edges, organization.EdgeAPITokens) + } + if m.oauthprovider != nil { + edges = append(edges, organization.EdgeOauthprovider) + } + if m.users != nil { + edges = append(edges, organization.EdgeUsers) + } + if m.invites != nil { + edges = append(edges, organization.EdgeInvites) + } + if m.subscribers != nil { + edges = append(edges, organization.EdgeSubscribers) + } + if m.webhooks != nil { + edges = append(edges, organization.EdgeWebhooks) + } + if m.events != nil { + edges = append(edges, organization.EdgeEvents) + } + if m.secrets != nil { + edges = append(edges, organization.EdgeSecrets) + } + if m.features != nil { + edges = append(edges, organization.EdgeFeatures) + } + if m.files != nil { + edges = append(edges, organization.EdgeFiles) + } + if m.entitlementplans != nil { + edges = append(edges, organization.EdgeEntitlementplans) + } + if m.entitlementplanfeatures != nil { + edges = append(edges, organization.EdgeEntitlementplanfeatures) + } + if m.entities != nil { + edges = append(edges, organization.EdgeEntities) + } + if m.entitytypes != nil { + edges = append(edges, organization.EdgeEntitytypes) + } + if m.contacts != nil { + edges = append(edges, organization.EdgeContacts) + } + if m.notes != nil { + edges = append(edges, organization.EdgeNotes) + } + if m.members != nil { + edges = append(edges, organization.EdgeMembers) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *OrganizationMutation) AddedIDs(name string) []ent.Value { + switch name { + case organization.EdgeParent: + if id := m.parent; id != nil { + return []ent.Value{*id} + } + case organization.EdgeChildren: + ids := make([]ent.Value, 0, len(m.children)) + for id := range m.children { + ids = append(ids, id) + } + return ids + case organization.EdgeGroups: + ids := make([]ent.Value, 0, len(m.groups)) + for id := range m.groups { + ids = append(ids, id) + } + return ids + case organization.EdgeTemplates: + ids := make([]ent.Value, 0, len(m.templates)) + for id := range m.templates { + ids = append(ids, id) + } + return ids + case organization.EdgeIntegrations: + ids := make([]ent.Value, 0, len(m.integrations)) + for id := range m.integrations { + ids = append(ids, id) + } + return ids + case organization.EdgeSetting: + if id := m.setting; id != nil { + return []ent.Value{*id} + } + case organization.EdgeDocumentdata: + ids := make([]ent.Value, 0, len(m.documentdata)) + for id := range m.documentdata { + ids = append(ids, id) + } + return ids + case organization.EdgeEntitlements: + ids := make([]ent.Value, 0, len(m.entitlements)) + for id := range m.entitlements { + ids = append(ids, id) + } + return ids + case organization.EdgeOrganizationEntitlement: + ids := make([]ent.Value, 0, len(m.organization_entitlement)) + for id := range m.organization_entitlement { + ids = append(ids, id) + } + return ids + case organization.EdgePersonalAccessTokens: + ids := make([]ent.Value, 0, len(m.personal_access_tokens)) + for id := range m.personal_access_tokens { + ids = append(ids, id) + } + return ids + case organization.EdgeAPITokens: + ids := make([]ent.Value, 0, len(m.api_tokens)) + for id := range m.api_tokens { + ids = append(ids, id) + } + return ids + case organization.EdgeOauthprovider: + ids := make([]ent.Value, 0, len(m.oauthprovider)) + for id := range m.oauthprovider { + ids = append(ids, id) + } + return ids + case organization.EdgeUsers: + ids := make([]ent.Value, 0, len(m.users)) + for id := range m.users { + ids = append(ids, id) + } + return ids + case organization.EdgeInvites: + ids := make([]ent.Value, 0, len(m.invites)) + for id := range m.invites { + ids = append(ids, id) + } + return ids + case organization.EdgeSubscribers: + ids := make([]ent.Value, 0, len(m.subscribers)) + for id := range m.subscribers { + ids = append(ids, id) + } + return ids + case organization.EdgeWebhooks: + ids := make([]ent.Value, 0, len(m.webhooks)) + for id := range m.webhooks { + ids = append(ids, id) + } + return ids + case organization.EdgeEvents: + ids := make([]ent.Value, 0, len(m.events)) + for id := range m.events { + ids = append(ids, id) + } + return ids + case organization.EdgeSecrets: + ids := make([]ent.Value, 0, len(m.secrets)) + for id := range m.secrets { + ids = append(ids, id) + } + return ids + case organization.EdgeFeatures: + ids := make([]ent.Value, 0, len(m.features)) + for id := range m.features { + ids = append(ids, id) + } + return ids + case organization.EdgeFiles: + ids := make([]ent.Value, 0, len(m.files)) + for id := range m.files { + ids = append(ids, id) + } + return ids + case organization.EdgeEntitlementplans: + ids := make([]ent.Value, 0, len(m.entitlementplans)) + for id := range m.entitlementplans { + ids = append(ids, id) + } + return ids + case organization.EdgeEntitlementplanfeatures: + ids := make([]ent.Value, 0, len(m.entitlementplanfeatures)) + for id := range m.entitlementplanfeatures { + ids = append(ids, id) + } + return ids + case organization.EdgeEntities: + ids := make([]ent.Value, 0, len(m.entities)) + for id := range m.entities { + ids = append(ids, id) + } + return ids + case organization.EdgeEntitytypes: + ids := make([]ent.Value, 0, len(m.entitytypes)) + for id := range m.entitytypes { + ids = append(ids, id) + } + return ids + case organization.EdgeContacts: + ids := make([]ent.Value, 0, len(m.contacts)) + for id := range m.contacts { + ids = append(ids, id) + } + return ids + case organization.EdgeNotes: + ids := make([]ent.Value, 0, len(m.notes)) + for id := range m.notes { + ids = append(ids, id) + } + return ids + case organization.EdgeMembers: + ids := make([]ent.Value, 0, len(m.members)) + for id := range m.members { + ids = append(ids, id) + } + return ids + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *OrganizationMutation) RemovedEdges() []string { + edges := make([]string, 0, 27) + if m.removedchildren != nil { + edges = append(edges, organization.EdgeChildren) + } + if m.removedgroups != nil { + edges = append(edges, organization.EdgeGroups) + } + if m.removedtemplates != nil { + edges = append(edges, organization.EdgeTemplates) + } + if m.removedintegrations != nil { + edges = append(edges, organization.EdgeIntegrations) + } + if m.removeddocumentdata != nil { + edges = append(edges, organization.EdgeDocumentdata) + } + if m.removedentitlements != nil { + edges = append(edges, organization.EdgeEntitlements) + } + if m.removedorganization_entitlement != nil { + edges = append(edges, organization.EdgeOrganizationEntitlement) + } + if m.removedpersonal_access_tokens != nil { + edges = append(edges, organization.EdgePersonalAccessTokens) + } + if m.removedapi_tokens != nil { + edges = append(edges, organization.EdgeAPITokens) + } + if m.removedoauthprovider != nil { + edges = append(edges, organization.EdgeOauthprovider) + } + if m.removedusers != nil { + edges = append(edges, organization.EdgeUsers) + } + if m.removedinvites != nil { + edges = append(edges, organization.EdgeInvites) + } + if m.removedsubscribers != nil { + edges = append(edges, organization.EdgeSubscribers) + } + if m.removedwebhooks != nil { + edges = append(edges, organization.EdgeWebhooks) + } + if m.removedevents != nil { + edges = append(edges, organization.EdgeEvents) + } + if m.removedsecrets != nil { + edges = append(edges, organization.EdgeSecrets) + } + if m.removedfeatures != nil { + edges = append(edges, organization.EdgeFeatures) + } + if m.removedfiles != nil { + edges = append(edges, organization.EdgeFiles) + } + if m.removedentitlementplans != nil { + edges = append(edges, organization.EdgeEntitlementplans) + } + if m.removedentitlementplanfeatures != nil { + edges = append(edges, organization.EdgeEntitlementplanfeatures) + } + if m.removedentities != nil { + edges = append(edges, organization.EdgeEntities) + } + if m.removedentitytypes != nil { + edges = append(edges, organization.EdgeEntitytypes) + } + if m.removedcontacts != nil { + edges = append(edges, organization.EdgeContacts) + } + if m.removednotes != nil { + edges = append(edges, organization.EdgeNotes) + } + if m.removedmembers != nil { + edges = append(edges, organization.EdgeMembers) + } + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value { + switch name { + case organization.EdgeChildren: + ids := make([]ent.Value, 0, len(m.removedchildren)) + for id := range m.removedchildren { + ids = append(ids, id) + } + return ids + case organization.EdgeGroups: + ids := make([]ent.Value, 0, len(m.removedgroups)) + for id := range m.removedgroups { + ids = append(ids, id) + } + return ids + case organization.EdgeTemplates: + ids := make([]ent.Value, 0, len(m.removedtemplates)) + for id := range m.removedtemplates { + ids = append(ids, id) + } + return ids + case organization.EdgeIntegrations: + ids := make([]ent.Value, 0, len(m.removedintegrations)) + for id := range m.removedintegrations { + ids = append(ids, id) + } + return ids + case organization.EdgeDocumentdata: + ids := make([]ent.Value, 0, len(m.removeddocumentdata)) + for id := range m.removeddocumentdata { + ids = append(ids, id) + } + return ids + case organization.EdgeEntitlements: + ids := make([]ent.Value, 0, len(m.removedentitlements)) + for id := range m.removedentitlements { + ids = append(ids, id) + } + return ids + case organization.EdgeOrganizationEntitlement: + ids := make([]ent.Value, 0, len(m.removedorganization_entitlement)) + for id := range m.removedorganization_entitlement { + ids = append(ids, id) + } + return ids + case organization.EdgePersonalAccessTokens: + ids := make([]ent.Value, 0, len(m.removedpersonal_access_tokens)) + for id := range m.removedpersonal_access_tokens { + ids = append(ids, id) + } + return ids + case organization.EdgeAPITokens: + ids := make([]ent.Value, 0, len(m.removedapi_tokens)) + for id := range m.removedapi_tokens { + ids = append(ids, id) + } + return ids + case organization.EdgeOauthprovider: + ids := make([]ent.Value, 0, len(m.removedoauthprovider)) + for id := range m.removedoauthprovider { + ids = append(ids, id) + } + return ids + case organization.EdgeUsers: + ids := make([]ent.Value, 0, len(m.removedusers)) + for id := range m.removedusers { + ids = append(ids, id) + } + return ids + case organization.EdgeInvites: + ids := make([]ent.Value, 0, len(m.removedinvites)) + for id := range m.removedinvites { + ids = append(ids, id) + } + return ids + case organization.EdgeSubscribers: + ids := make([]ent.Value, 0, len(m.removedsubscribers)) + for id := range m.removedsubscribers { + ids = append(ids, id) + } + return ids + case organization.EdgeWebhooks: + ids := make([]ent.Value, 0, len(m.removedwebhooks)) + for id := range m.removedwebhooks { + ids = append(ids, id) + } + return ids + case organization.EdgeEvents: + ids := make([]ent.Value, 0, len(m.removedevents)) + for id := range m.removedevents { + ids = append(ids, id) + } + return ids + case organization.EdgeSecrets: + ids := make([]ent.Value, 0, len(m.removedsecrets)) + for id := range m.removedsecrets { + ids = append(ids, id) + } + return ids + case organization.EdgeFeatures: + ids := make([]ent.Value, 0, len(m.removedfeatures)) + for id := range m.removedfeatures { + ids = append(ids, id) + } + return ids + case organization.EdgeFiles: + ids := make([]ent.Value, 0, len(m.removedfiles)) + for id := range m.removedfiles { + ids = append(ids, id) + } + return ids + case organization.EdgeEntitlementplans: + ids := make([]ent.Value, 0, len(m.removedentitlementplans)) + for id := range m.removedentitlementplans { + ids = append(ids, id) + } + return ids + case organization.EdgeEntitlementplanfeatures: + ids := make([]ent.Value, 0, len(m.removedentitlementplanfeatures)) + for id := range m.removedentitlementplanfeatures { + ids = append(ids, id) + } + return ids + case organization.EdgeEntities: + ids := make([]ent.Value, 0, len(m.removedentities)) + for id := range m.removedentities { + ids = append(ids, id) + } + return ids + case organization.EdgeEntitytypes: + ids := make([]ent.Value, 0, len(m.removedentitytypes)) + for id := range m.removedentitytypes { + ids = append(ids, id) + } + return ids + case organization.EdgeContacts: + ids := make([]ent.Value, 0, len(m.removedcontacts)) + for id := range m.removedcontacts { + ids = append(ids, id) + } + return ids + case organization.EdgeNotes: + ids := make([]ent.Value, 0, len(m.removednotes)) + for id := range m.removednotes { + ids = append(ids, id) + } + return ids + case organization.EdgeMembers: + ids := make([]ent.Value, 0, len(m.removedmembers)) + for id := range m.removedmembers { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *OrganizationMutation) ClearedEdges() []string { + edges := make([]string, 0, 27) + if m.clearedparent { + edges = append(edges, organization.EdgeParent) + } + if m.clearedchildren { + edges = append(edges, organization.EdgeChildren) + } + if m.clearedgroups { + edges = append(edges, organization.EdgeGroups) + } + if m.clearedtemplates { + edges = append(edges, organization.EdgeTemplates) + } + if m.clearedintegrations { + edges = append(edges, organization.EdgeIntegrations) + } + if m.clearedsetting { + edges = append(edges, organization.EdgeSetting) + } + if m.cleareddocumentdata { + edges = append(edges, organization.EdgeDocumentdata) + } + if m.clearedentitlements { + edges = append(edges, organization.EdgeEntitlements) + } + if m.clearedorganization_entitlement { + edges = append(edges, organization.EdgeOrganizationEntitlement) + } + if m.clearedpersonal_access_tokens { + edges = append(edges, organization.EdgePersonalAccessTokens) + } + if m.clearedapi_tokens { + edges = append(edges, organization.EdgeAPITokens) + } + if m.clearedoauthprovider { + edges = append(edges, organization.EdgeOauthprovider) + } + if m.clearedusers { + edges = append(edges, organization.EdgeUsers) + } + if m.clearedinvites { + edges = append(edges, organization.EdgeInvites) + } + if m.clearedsubscribers { + edges = append(edges, organization.EdgeSubscribers) + } + if m.clearedwebhooks { + edges = append(edges, organization.EdgeWebhooks) + } + if m.clearedevents { + edges = append(edges, organization.EdgeEvents) + } + if m.clearedsecrets { + edges = append(edges, organization.EdgeSecrets) + } + if m.clearedfeatures { + edges = append(edges, organization.EdgeFeatures) + } + if m.clearedfiles { + edges = append(edges, organization.EdgeFiles) + } + if m.clearedentitlementplans { + edges = append(edges, organization.EdgeEntitlementplans) + } + if m.clearedentitlementplanfeatures { + edges = append(edges, organization.EdgeEntitlementplanfeatures) + } + if m.clearedentities { + edges = append(edges, organization.EdgeEntities) + } + if m.clearedentitytypes { + edges = append(edges, organization.EdgeEntitytypes) + } + if m.clearedcontacts { + edges = append(edges, organization.EdgeContacts) + } + if m.clearednotes { + edges = append(edges, organization.EdgeNotes) + } + if m.clearedmembers { + edges = append(edges, organization.EdgeMembers) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *OrganizationMutation) EdgeCleared(name string) bool { + switch name { + case organization.EdgeParent: + return m.clearedparent + case organization.EdgeChildren: + return m.clearedchildren + case organization.EdgeGroups: + return m.clearedgroups + case organization.EdgeTemplates: + return m.clearedtemplates + case organization.EdgeIntegrations: + return m.clearedintegrations + case organization.EdgeSetting: + return m.clearedsetting + case organization.EdgeDocumentdata: + return m.cleareddocumentdata + case organization.EdgeEntitlements: + return m.clearedentitlements + case organization.EdgeOrganizationEntitlement: + return m.clearedorganization_entitlement + case organization.EdgePersonalAccessTokens: + return m.clearedpersonal_access_tokens + case organization.EdgeAPITokens: + return m.clearedapi_tokens + case organization.EdgeOauthprovider: + return m.clearedoauthprovider + case organization.EdgeUsers: + return m.clearedusers + case organization.EdgeInvites: + return m.clearedinvites + case organization.EdgeSubscribers: + return m.clearedsubscribers + case organization.EdgeWebhooks: + return m.clearedwebhooks + case organization.EdgeEvents: + return m.clearedevents + case organization.EdgeSecrets: + return m.clearedsecrets + case organization.EdgeFeatures: + return m.clearedfeatures + case organization.EdgeFiles: + return m.clearedfiles + case organization.EdgeEntitlementplans: + return m.clearedentitlementplans + case organization.EdgeEntitlementplanfeatures: + return m.clearedentitlementplanfeatures + case organization.EdgeEntities: + return m.clearedentities + case organization.EdgeEntitytypes: + return m.clearedentitytypes + case organization.EdgeContacts: + return m.clearedcontacts + case organization.EdgeNotes: + return m.clearednotes + case organization.EdgeMembers: + return m.clearedmembers + } + 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 *OrganizationMutation) ClearEdge(name string) error { + switch name { + case organization.EdgeParent: + m.ClearParent() + return nil + case organization.EdgeSetting: + m.ClearSetting() + return nil + } + return fmt.Errorf("unknown Organization 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 *OrganizationMutation) ResetEdge(name string) error { + switch name { + case organization.EdgeParent: + m.ResetParent() + return nil + case organization.EdgeChildren: + m.ResetChildren() + return nil + case organization.EdgeGroups: + m.ResetGroups() + return nil + case organization.EdgeTemplates: + m.ResetTemplates() + return nil + case organization.EdgeIntegrations: + m.ResetIntegrations() + return nil + case organization.EdgeSetting: + m.ResetSetting() + return nil + case organization.EdgeDocumentdata: + m.ResetDocumentdata() + return nil + case organization.EdgeEntitlements: + m.ResetEntitlements() + return nil + case organization.EdgeOrganizationEntitlement: + m.ResetOrganizationEntitlement() + return nil + case organization.EdgePersonalAccessTokens: + m.ResetPersonalAccessTokens() + return nil + case organization.EdgeAPITokens: + m.ResetAPITokens() + return nil + case organization.EdgeOauthprovider: + m.ResetOauthprovider() + return nil + case organization.EdgeUsers: + m.ResetUsers() + return nil + case organization.EdgeInvites: + m.ResetInvites() + return nil + case organization.EdgeSubscribers: + m.ResetSubscribers() + return nil + case organization.EdgeWebhooks: + m.ResetWebhooks() + return nil + case organization.EdgeEvents: + m.ResetEvents() + return nil + case organization.EdgeSecrets: + m.ResetSecrets() return nil - case note.EdgeEntity: - m.ClearEntity() + case organization.EdgeFeatures: + m.ResetFeatures() return nil - } - return fmt.Errorf("unknown Note 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 *NoteMutation) ResetEdge(name string) error { - switch name { - case note.EdgeOwner: - m.ResetOwner() + case organization.EdgeFiles: + m.ResetFiles() return nil - case note.EdgeEntity: - m.ResetEntity() + case organization.EdgeEntitlementplans: + m.ResetEntitlementplans() + return nil + case organization.EdgeEntitlementplanfeatures: + m.ResetEntitlementplanfeatures() + return nil + case organization.EdgeEntities: + m.ResetEntities() + return nil + case organization.EdgeEntitytypes: + m.ResetEntitytypes() + return nil + case organization.EdgeContacts: + m.ResetContacts() + return nil + case organization.EdgeNotes: + m.ResetNotes() + return nil + case organization.EdgeMembers: + m.ResetMembers() return nil } - return fmt.Errorf("unknown Note edge %s", name) + return fmt.Errorf("unknown Organization edge %s", name) } -// NoteHistoryMutation represents an operation that mutates the NoteHistory nodes in the graph. -type NoteHistoryMutation struct { +// OrganizationHistoryMutation represents an operation that mutates the OrganizationHistory nodes in the graph. +type OrganizationHistoryMutation 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 - mapping_id *string - deleted_at *time.Time - deleted_by *string - tags *[]string - appendtags []string - owner_id *string - text *string - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*NoteHistory, error) - predicates []predicate.NoteHistory + 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 + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + name *string + display_name *string + description *string + parent_organization_id *string + personal_org *bool + avatar_remote_url *string + dedicated_db *bool + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*OrganizationHistory, error) + predicates []predicate.OrganizationHistory } -var _ ent.Mutation = (*NoteHistoryMutation)(nil) +var _ ent.Mutation = (*OrganizationHistoryMutation)(nil) -// notehistoryOption allows management of the mutation configuration using functional options. -type notehistoryOption func(*NoteHistoryMutation) +// organizationhistoryOption allows management of the mutation configuration using functional options. +type organizationhistoryOption func(*OrganizationHistoryMutation) -// newNoteHistoryMutation creates new mutation for the NoteHistory entity. -func newNoteHistoryMutation(c config, op Op, opts ...notehistoryOption) *NoteHistoryMutation { - m := &NoteHistoryMutation{ +// newOrganizationHistoryMutation creates new mutation for the OrganizationHistory entity. +func newOrganizationHistoryMutation(c config, op Op, opts ...organizationhistoryOption) *OrganizationHistoryMutation { + m := &OrganizationHistoryMutation{ config: c, op: op, - typ: TypeNoteHistory, + typ: TypeOrganizationHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -50655,20 +79863,20 @@ func newNoteHistoryMutation(c config, op Op, opts ...notehistoryOption) *NoteHis return m } -// withNoteHistoryID sets the ID field of the mutation. -func withNoteHistoryID(id string) notehistoryOption { - return func(m *NoteHistoryMutation) { +// withOrganizationHistoryID sets the ID field of the mutation. +func withOrganizationHistoryID(id string) organizationhistoryOption { + return func(m *OrganizationHistoryMutation) { var ( err error once sync.Once - value *NoteHistory + value *OrganizationHistory ) - m.oldValue = func(ctx context.Context) (*NoteHistory, error) { + m.oldValue = func(ctx context.Context) (*OrganizationHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().NoteHistory.Get(ctx, id) + value, err = m.Client().OrganizationHistory.Get(ctx, id) } }) return value, err @@ -50677,10 +79885,10 @@ func withNoteHistoryID(id string) notehistoryOption { } } -// withNoteHistory sets the old NoteHistory of the mutation. -func withNoteHistory(node *NoteHistory) notehistoryOption { - return func(m *NoteHistoryMutation) { - m.oldValue = func(context.Context) (*NoteHistory, error) { +// withOrganizationHistory sets the old OrganizationHistory of the mutation. +func withOrganizationHistory(node *OrganizationHistory) organizationhistoryOption { + return func(m *OrganizationHistoryMutation) { + m.oldValue = func(context.Context) (*OrganizationHistory, error) { return node, nil } m.id = &node.ID @@ -50689,7 +79897,7 @@ func withNoteHistory(node *NoteHistory) notehistoryOption { // 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 NoteHistoryMutation) Client() *Client { +func (m OrganizationHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -50697,7 +79905,7 @@ func (m NoteHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m NoteHistoryMutation) Tx() (*Tx, error) { +func (m OrganizationHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -50707,14 +79915,14 @@ func (m NoteHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of NoteHistory entities. -func (m *NoteHistoryMutation) SetID(id string) { +// operation is only accepted on creation of OrganizationHistory entities. +func (m *OrganizationHistoryMutation) 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 *NoteHistoryMutation) ID() (id string, exists bool) { +func (m *OrganizationHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -50725,7 +79933,7 @@ func (m *NoteHistoryMutation) ID() (id string, exists bool) { // 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 *NoteHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *OrganizationHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -50734,19 +79942,19 @@ func (m *NoteHistoryMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().NoteHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().OrganizationHistory.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 *NoteHistoryMutation) SetHistoryTime(t time.Time) { +func (m *OrganizationHistoryMutation) SetHistoryTime(t time.Time) { m.history_time = &t } // HistoryTime returns the value of the "history_time" field in the mutation. -func (m *NoteHistoryMutation) HistoryTime() (r time.Time, exists bool) { +func (m *OrganizationHistoryMutation) HistoryTime() (r time.Time, exists bool) { v := m.history_time if v == nil { return @@ -50754,10 +79962,10 @@ func (m *NoteHistoryMutation) HistoryTime() (r time.Time, exists bool) { return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *OrganizationHistoryMutation) 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") } @@ -50772,17 +79980,17 @@ func (m *NoteHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, } // ResetHistoryTime resets all changes to the "history_time" field. -func (m *NoteHistoryMutation) ResetHistoryTime() { +func (m *OrganizationHistoryMutation) ResetHistoryTime() { m.history_time = nil } // SetRef sets the "ref" field. -func (m *NoteHistoryMutation) SetRef(s string) { +func (m *OrganizationHistoryMutation) SetRef(s string) { m.ref = &s } // Ref returns the value of the "ref" field in the mutation. -func (m *NoteHistoryMutation) Ref() (r string, exists bool) { +func (m *OrganizationHistoryMutation) Ref() (r string, exists bool) { v := m.ref if v == nil { return @@ -50790,10 +79998,10 @@ func (m *NoteHistoryMutation) Ref() (r string, exists bool) { return *v, true } -// OldRef returns the old "ref" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *OrganizationHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldRef is only allowed on UpdateOne operations") } @@ -50808,30 +80016,30 @@ func (m *NoteHistoryMutation) OldRef(ctx context.Context) (v string, err error) } // ClearRef clears the value of the "ref" field. -func (m *NoteHistoryMutation) ClearRef() { +func (m *OrganizationHistoryMutation) ClearRef() { m.ref = nil - m.clearedFields[notehistory.FieldRef] = struct{}{} + m.clearedFields[organizationhistory.FieldRef] = struct{}{} } // RefCleared returns if the "ref" field was cleared in this mutation. -func (m *NoteHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[notehistory.FieldRef] +func (m *OrganizationHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[organizationhistory.FieldRef] return ok } // ResetRef resets all changes to the "ref" field. -func (m *NoteHistoryMutation) ResetRef() { +func (m *OrganizationHistoryMutation) ResetRef() { m.ref = nil - delete(m.clearedFields, notehistory.FieldRef) + delete(m.clearedFields, organizationhistory.FieldRef) } // SetOperation sets the "operation" field. -func (m *NoteHistoryMutation) SetOperation(ht history.OpType) { +func (m *OrganizationHistoryMutation) SetOperation(ht history.OpType) { m.operation = &ht } // Operation returns the value of the "operation" field in the mutation. -func (m *NoteHistoryMutation) Operation() (r history.OpType, exists bool) { +func (m *OrganizationHistoryMutation) Operation() (r history.OpType, exists bool) { v := m.operation if v == nil { return @@ -50839,10 +80047,10 @@ func (m *NoteHistoryMutation) Operation() (r history.OpType, exists bool) { return *v, true } -// OldOperation returns the old "operation" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *OrganizationHistoryMutation) 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") } @@ -50857,17 +80065,17 @@ func (m *NoteHistoryMutation) OldOperation(ctx context.Context) (v history.OpTyp } // ResetOperation resets all changes to the "operation" field. -func (m *NoteHistoryMutation) ResetOperation() { +func (m *OrganizationHistoryMutation) ResetOperation() { m.operation = nil } // SetCreatedAt sets the "created_at" field. -func (m *NoteHistoryMutation) SetCreatedAt(t time.Time) { +func (m *OrganizationHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *NoteHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *OrganizationHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -50875,10 +80083,10 @@ func (m *NoteHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *OrganizationHistoryMutation) 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") } @@ -50893,30 +80101,30 @@ func (m *NoteHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, er } // ClearCreatedAt clears the value of the "created_at" field. -func (m *NoteHistoryMutation) ClearCreatedAt() { +func (m *OrganizationHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[notehistory.FieldCreatedAt] = struct{}{} + m.clearedFields[organizationhistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *NoteHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[notehistory.FieldCreatedAt] +func (m *OrganizationHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[organizationhistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *NoteHistoryMutation) ResetCreatedAt() { +func (m *OrganizationHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, notehistory.FieldCreatedAt) + delete(m.clearedFields, organizationhistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *NoteHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *OrganizationHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *NoteHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *OrganizationHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -50924,10 +80132,10 @@ func (m *NoteHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *OrganizationHistoryMutation) 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") } @@ -50942,30 +80150,30 @@ func (m *NoteHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, er } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *NoteHistoryMutation) ClearUpdatedAt() { +func (m *OrganizationHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[notehistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[organizationhistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *NoteHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[notehistory.FieldUpdatedAt] +func (m *OrganizationHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[organizationhistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *NoteHistoryMutation) ResetUpdatedAt() { +func (m *OrganizationHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, notehistory.FieldUpdatedAt) + delete(m.clearedFields, organizationhistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *NoteHistoryMutation) SetCreatedBy(s string) { +func (m *OrganizationHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *NoteHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *OrganizationHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -50973,10 +80181,10 @@ func (m *NoteHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *OrganizationHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -50991,30 +80199,30 @@ func (m *NoteHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err e } // ClearCreatedBy clears the value of the "created_by" field. -func (m *NoteHistoryMutation) ClearCreatedBy() { +func (m *OrganizationHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[notehistory.FieldCreatedBy] = struct{}{} + m.clearedFields[organizationhistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *NoteHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[notehistory.FieldCreatedBy] +func (m *OrganizationHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[organizationhistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *NoteHistoryMutation) ResetCreatedBy() { +func (m *OrganizationHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, notehistory.FieldCreatedBy) + delete(m.clearedFields, organizationhistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *NoteHistoryMutation) SetUpdatedBy(s string) { +func (m *OrganizationHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *NoteHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *OrganizationHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -51022,10 +80230,10 @@ func (m *NoteHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *OrganizationHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -51040,30 +80248,30 @@ func (m *NoteHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err e } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *NoteHistoryMutation) ClearUpdatedBy() { +func (m *OrganizationHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[notehistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[organizationhistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *NoteHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[notehistory.FieldUpdatedBy] +func (m *OrganizationHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[organizationhistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *NoteHistoryMutation) ResetUpdatedBy() { +func (m *OrganizationHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, notehistory.FieldUpdatedBy) + delete(m.clearedFields, organizationhistory.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *NoteHistoryMutation) SetMappingID(s string) { +func (m *OrganizationHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *NoteHistoryMutation) MappingID() (r string, exists bool) { +func (m *OrganizationHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -51071,285 +80279,504 @@ func (m *NoteHistoryMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *OrganizationHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *OrganizationHistoryMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *OrganizationHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *OrganizationHistoryMutation) 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 OrganizationHistory entity. +// If the OrganizationHistory 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 *OrganizationHistoryMutation) 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 *OrganizationHistoryMutation) 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 *OrganizationHistoryMutation) 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 *OrganizationHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[organizationhistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *OrganizationHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[organizationhistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *OrganizationHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, organizationhistory.FieldTags) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *OrganizationHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *OrganizationHistoryMutation) 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 OrganizationHistory entity. +// If the OrganizationHistory 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 *OrganizationHistoryMutation) 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 *OrganizationHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[organizationhistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *OrganizationHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[organizationhistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *OrganizationHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, organizationhistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *OrganizationHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *OrganizationHistoryMutation) 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 OrganizationHistory entity. +// If the OrganizationHistory 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 *OrganizationHistoryMutation) 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 *OrganizationHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[organizationhistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *OrganizationHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[organizationhistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *OrganizationHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, organizationhistory.FieldDeletedBy) +} + +// SetName sets the "name" field. +func (m *OrganizationHistoryMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *OrganizationHistoryMutation) 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 OrganizationHistory entity. +// If the OrganizationHistory 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 *OrganizationHistoryMutation) 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 *OrganizationHistoryMutation) ResetName() { + m.name = nil +} + +// SetDisplayName sets the "display_name" field. +func (m *OrganizationHistoryMutation) SetDisplayName(s string) { + m.display_name = &s +} + +// DisplayName returns the value of the "display_name" field in the mutation. +func (m *OrganizationHistoryMutation) DisplayName() (r string, exists bool) { + v := m.display_name + if v == nil { + return + } + return *v, true +} + +// OldDisplayName returns the old "display_name" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *OrganizationHistoryMutation) OldDisplayName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") + return v, errors.New("OldDisplayName requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) } - return oldValue.MappingID, nil + return oldValue.DisplayName, nil } -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *NoteHistoryMutation) ResetMappingID() { - m.mapping_id = nil +// ResetDisplayName resets all changes to the "display_name" field. +func (m *OrganizationHistoryMutation) ResetDisplayName() { + m.display_name = nil } -// SetDeletedAt sets the "deleted_at" field. -func (m *NoteHistoryMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetDescription sets the "description" field. +func (m *OrganizationHistoryMutation) SetDescription(s string) { + m.description = &s } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *NoteHistoryMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// Description returns the value of the "description" field in the mutation. +func (m *OrganizationHistoryMutation) Description() (r string, exists bool) { + v := m.description if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *OrganizationHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldDescription 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") + 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 OldDeletedAt: %w", err) + return v, fmt.Errorf("querying old value for OldDescription: %w", err) } - return oldValue.DeletedAt, nil + return oldValue.Description, nil } -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *NoteHistoryMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[notehistory.FieldDeletedAt] = struct{}{} +// ClearDescription clears the value of the "description" field. +func (m *OrganizationHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[organizationhistory.FieldDescription] = struct{}{} } -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *NoteHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[notehistory.FieldDeletedAt] +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *OrganizationHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[organizationhistory.FieldDescription] return ok } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *NoteHistoryMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, notehistory.FieldDeletedAt) +// ResetDescription resets all changes to the "description" field. +func (m *OrganizationHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, organizationhistory.FieldDescription) } -// SetDeletedBy sets the "deleted_by" field. -func (m *NoteHistoryMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetParentOrganizationID sets the "parent_organization_id" field. +func (m *OrganizationHistoryMutation) SetParentOrganizationID(s string) { + m.parent_organization_id = &s } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *NoteHistoryMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// ParentOrganizationID returns the value of the "parent_organization_id" field in the mutation. +func (m *OrganizationHistoryMutation) ParentOrganizationID() (r string, exists bool) { + v := m.parent_organization_id if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldParentOrganizationID returns the old "parent_organization_id" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *OrganizationHistoryMutation) OldParentOrganizationID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldParentOrganizationID 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") + return v, errors.New("OldParentOrganizationID 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 v, fmt.Errorf("querying old value for OldParentOrganizationID: %w", err) } - return oldValue.DeletedBy, nil + return oldValue.ParentOrganizationID, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *NoteHistoryMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[notehistory.FieldDeletedBy] = struct{}{} +// ClearParentOrganizationID clears the value of the "parent_organization_id" field. +func (m *OrganizationHistoryMutation) ClearParentOrganizationID() { + m.parent_organization_id = nil + m.clearedFields[organizationhistory.FieldParentOrganizationID] = struct{}{} } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *NoteHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[notehistory.FieldDeletedBy] +// ParentOrganizationIDCleared returns if the "parent_organization_id" field was cleared in this mutation. +func (m *OrganizationHistoryMutation) ParentOrganizationIDCleared() bool { + _, ok := m.clearedFields[organizationhistory.FieldParentOrganizationID] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *NoteHistoryMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, notehistory.FieldDeletedBy) +// ResetParentOrganizationID resets all changes to the "parent_organization_id" field. +func (m *OrganizationHistoryMutation) ResetParentOrganizationID() { + m.parent_organization_id = nil + delete(m.clearedFields, organizationhistory.FieldParentOrganizationID) } -// SetTags sets the "tags" field. -func (m *NoteHistoryMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil +// SetPersonalOrg sets the "personal_org" field. +func (m *OrganizationHistoryMutation) SetPersonalOrg(b bool) { + m.personal_org = &b } -// Tags returns the value of the "tags" field in the mutation. -func (m *NoteHistoryMutation) Tags() (r []string, exists bool) { - v := m.tags +// PersonalOrg returns the value of the "personal_org" field in the mutation. +func (m *OrganizationHistoryMutation) PersonalOrg() (r bool, exists bool) { + v := m.personal_org if v == nil { return } return *v, true } -// OldTags returns the old "tags" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldPersonalOrg returns the old "personal_org" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *OrganizationHistoryMutation) OldPersonalOrg(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTags is only allowed on UpdateOne operations") + return v, errors.New("OldPersonalOrg 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") + return v, errors.New("OldPersonalOrg 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 *NoteHistoryMutation) 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 *NoteHistoryMutation) AppendedTags() ([]string, bool) { - if len(m.appendtags) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldPersonalOrg: %w", err) } - return m.appendtags, true + return oldValue.PersonalOrg, nil } -// ClearTags clears the value of the "tags" field. -func (m *NoteHistoryMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[notehistory.FieldTags] = struct{}{} +// ClearPersonalOrg clears the value of the "personal_org" field. +func (m *OrganizationHistoryMutation) ClearPersonalOrg() { + m.personal_org = nil + m.clearedFields[organizationhistory.FieldPersonalOrg] = struct{}{} } -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *NoteHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[notehistory.FieldTags] +// PersonalOrgCleared returns if the "personal_org" field was cleared in this mutation. +func (m *OrganizationHistoryMutation) PersonalOrgCleared() bool { + _, ok := m.clearedFields[organizationhistory.FieldPersonalOrg] return ok } -// ResetTags resets all changes to the "tags" field. -func (m *NoteHistoryMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, notehistory.FieldTags) +// ResetPersonalOrg resets all changes to the "personal_org" field. +func (m *OrganizationHistoryMutation) ResetPersonalOrg() { + m.personal_org = nil + delete(m.clearedFields, organizationhistory.FieldPersonalOrg) } -// SetOwnerID sets the "owner_id" field. -func (m *NoteHistoryMutation) SetOwnerID(s string) { - m.owner_id = &s +// SetAvatarRemoteURL sets the "avatar_remote_url" field. +func (m *OrganizationHistoryMutation) SetAvatarRemoteURL(s string) { + m.avatar_remote_url = &s } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *NoteHistoryMutation) OwnerID() (r string, exists bool) { - v := m.owner_id +// AvatarRemoteURL returns the value of the "avatar_remote_url" field in the mutation. +func (m *OrganizationHistoryMutation) AvatarRemoteURL() (r string, exists bool) { + v := m.avatar_remote_url if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldAvatarRemoteURL returns the old "avatar_remote_url" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *OrganizationHistoryMutation) OldAvatarRemoteURL(ctx context.Context) (v *string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldAvatarRemoteURL 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") + return v, errors.New("OldAvatarRemoteURL 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 v, fmt.Errorf("querying old value for OldAvatarRemoteURL: %w", err) } - return oldValue.OwnerID, nil + return oldValue.AvatarRemoteURL, nil } -// ClearOwnerID clears the value of the "owner_id" field. -func (m *NoteHistoryMutation) ClearOwnerID() { - m.owner_id = nil - m.clearedFields[notehistory.FieldOwnerID] = struct{}{} +// ClearAvatarRemoteURL clears the value of the "avatar_remote_url" field. +func (m *OrganizationHistoryMutation) ClearAvatarRemoteURL() { + m.avatar_remote_url = nil + m.clearedFields[organizationhistory.FieldAvatarRemoteURL] = struct{}{} } -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *NoteHistoryMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[notehistory.FieldOwnerID] +// AvatarRemoteURLCleared returns if the "avatar_remote_url" field was cleared in this mutation. +func (m *OrganizationHistoryMutation) AvatarRemoteURLCleared() bool { + _, ok := m.clearedFields[organizationhistory.FieldAvatarRemoteURL] return ok } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *NoteHistoryMutation) ResetOwnerID() { - m.owner_id = nil - delete(m.clearedFields, notehistory.FieldOwnerID) +// ResetAvatarRemoteURL resets all changes to the "avatar_remote_url" field. +func (m *OrganizationHistoryMutation) ResetAvatarRemoteURL() { + m.avatar_remote_url = nil + delete(m.clearedFields, organizationhistory.FieldAvatarRemoteURL) } -// SetText sets the "text" field. -func (m *NoteHistoryMutation) SetText(s string) { - m.text = &s +// SetDedicatedDb sets the "dedicated_db" field. +func (m *OrganizationHistoryMutation) SetDedicatedDb(b bool) { + m.dedicated_db = &b } -// Text returns the value of the "text" field in the mutation. -func (m *NoteHistoryMutation) Text() (r string, exists bool) { - v := m.text +// DedicatedDb returns the value of the "dedicated_db" field in the mutation. +func (m *OrganizationHistoryMutation) DedicatedDb() (r bool, exists bool) { + v := m.dedicated_db if v == nil { return } return *v, true } -// OldText returns the old "text" field's value of the NoteHistory entity. -// If the NoteHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDedicatedDb returns the old "dedicated_db" field's value of the OrganizationHistory entity. +// If the OrganizationHistory 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 *NoteHistoryMutation) OldText(ctx context.Context) (v string, err error) { +func (m *OrganizationHistoryMutation) OldDedicatedDb(ctx context.Context) (v bool, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldText is only allowed on UpdateOne operations") + return v, errors.New("OldDedicatedDb is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldText requires an ID field in the mutation") + return v, errors.New("OldDedicatedDb requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldText: %w", err) + return v, fmt.Errorf("querying old value for OldDedicatedDb: %w", err) } - return oldValue.Text, nil + return oldValue.DedicatedDb, nil } -// ResetText resets all changes to the "text" field. -func (m *NoteHistoryMutation) ResetText() { - m.text = nil +// ResetDedicatedDb resets all changes to the "dedicated_db" field. +func (m *OrganizationHistoryMutation) ResetDedicatedDb() { + m.dedicated_db = nil } -// Where appends a list predicates to the NoteHistoryMutation builder. -func (m *NoteHistoryMutation) Where(ps ...predicate.NoteHistory) { +// Where appends a list predicates to the OrganizationHistoryMutation builder. +func (m *OrganizationHistoryMutation) Where(ps ...predicate.OrganizationHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the NoteHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the OrganizationHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *NoteHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.NoteHistory, len(ps)) +func (m *OrganizationHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.OrganizationHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -51357,63 +80784,78 @@ func (m *NoteHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *NoteHistoryMutation) Op() Op { +func (m *OrganizationHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *NoteHistoryMutation) SetOp(op Op) { +func (m *OrganizationHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (NoteHistory). -func (m *NoteHistoryMutation) Type() string { +// Type returns the node type of this mutation (OrganizationHistory). +func (m *OrganizationHistoryMutation) 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 *NoteHistoryMutation) Fields() []string { - fields := make([]string, 0, 13) +func (m *OrganizationHistoryMutation) Fields() []string { + fields := make([]string, 0, 18) if m.history_time != nil { - fields = append(fields, notehistory.FieldHistoryTime) + fields = append(fields, organizationhistory.FieldHistoryTime) } if m.ref != nil { - fields = append(fields, notehistory.FieldRef) + fields = append(fields, organizationhistory.FieldRef) } if m.operation != nil { - fields = append(fields, notehistory.FieldOperation) + fields = append(fields, organizationhistory.FieldOperation) } if m.created_at != nil { - fields = append(fields, notehistory.FieldCreatedAt) + fields = append(fields, organizationhistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, notehistory.FieldUpdatedAt) + fields = append(fields, organizationhistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, notehistory.FieldCreatedBy) + fields = append(fields, organizationhistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, notehistory.FieldUpdatedBy) + fields = append(fields, organizationhistory.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, notehistory.FieldMappingID) + fields = append(fields, organizationhistory.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, organizationhistory.FieldTags) } if m.deleted_at != nil { - fields = append(fields, notehistory.FieldDeletedAt) + fields = append(fields, organizationhistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, notehistory.FieldDeletedBy) + fields = append(fields, organizationhistory.FieldDeletedBy) } - if m.tags != nil { - fields = append(fields, notehistory.FieldTags) + if m.name != nil { + fields = append(fields, organizationhistory.FieldName) } - if m.owner_id != nil { - fields = append(fields, notehistory.FieldOwnerID) + if m.display_name != nil { + fields = append(fields, organizationhistory.FieldDisplayName) } - if m.text != nil { - fields = append(fields, notehistory.FieldText) + if m.description != nil { + fields = append(fields, organizationhistory.FieldDescription) + } + if m.parent_organization_id != nil { + fields = append(fields, organizationhistory.FieldParentOrganizationID) + } + if m.personal_org != nil { + fields = append(fields, organizationhistory.FieldPersonalOrg) + } + if m.avatar_remote_url != nil { + fields = append(fields, organizationhistory.FieldAvatarRemoteURL) + } + if m.dedicated_db != nil { + fields = append(fields, organizationhistory.FieldDedicatedDb) } return fields } @@ -51421,34 +80863,44 @@ func (m *NoteHistoryMutation) Fields() []string { // 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 *NoteHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *OrganizationHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case notehistory.FieldHistoryTime: + case organizationhistory.FieldHistoryTime: return m.HistoryTime() - case notehistory.FieldRef: + case organizationhistory.FieldRef: return m.Ref() - case notehistory.FieldOperation: + case organizationhistory.FieldOperation: return m.Operation() - case notehistory.FieldCreatedAt: + case organizationhistory.FieldCreatedAt: return m.CreatedAt() - case notehistory.FieldUpdatedAt: + case organizationhistory.FieldUpdatedAt: return m.UpdatedAt() - case notehistory.FieldCreatedBy: + case organizationhistory.FieldCreatedBy: return m.CreatedBy() - case notehistory.FieldUpdatedBy: + case organizationhistory.FieldUpdatedBy: return m.UpdatedBy() - case notehistory.FieldMappingID: + case organizationhistory.FieldMappingID: return m.MappingID() - case notehistory.FieldDeletedAt: + case organizationhistory.FieldTags: + return m.Tags() + case organizationhistory.FieldDeletedAt: return m.DeletedAt() - case notehistory.FieldDeletedBy: + case organizationhistory.FieldDeletedBy: return m.DeletedBy() - case notehistory.FieldTags: - return m.Tags() - case notehistory.FieldOwnerID: - return m.OwnerID() - case notehistory.FieldText: - return m.Text() + case organizationhistory.FieldName: + return m.Name() + case organizationhistory.FieldDisplayName: + return m.DisplayName() + case organizationhistory.FieldDescription: + return m.Description() + case organizationhistory.FieldParentOrganizationID: + return m.ParentOrganizationID() + case organizationhistory.FieldPersonalOrg: + return m.PersonalOrg() + case organizationhistory.FieldAvatarRemoteURL: + return m.AvatarRemoteURL() + case organizationhistory.FieldDedicatedDb: + return m.DedicatedDb() } return nil, false } @@ -51456,375 +80908,454 @@ func (m *NoteHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *NoteHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *OrganizationHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case notehistory.FieldHistoryTime: + case organizationhistory.FieldHistoryTime: return m.OldHistoryTime(ctx) - case notehistory.FieldRef: + case organizationhistory.FieldRef: return m.OldRef(ctx) - case notehistory.FieldOperation: + case organizationhistory.FieldOperation: return m.OldOperation(ctx) - case notehistory.FieldCreatedAt: + case organizationhistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case notehistory.FieldUpdatedAt: + case organizationhistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case notehistory.FieldCreatedBy: + case organizationhistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case notehistory.FieldUpdatedBy: + case organizationhistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case notehistory.FieldMappingID: + case organizationhistory.FieldMappingID: return m.OldMappingID(ctx) - case notehistory.FieldDeletedAt: + case organizationhistory.FieldTags: + return m.OldTags(ctx) + case organizationhistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case notehistory.FieldDeletedBy: + case organizationhistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case notehistory.FieldTags: - return m.OldTags(ctx) - case notehistory.FieldOwnerID: - return m.OldOwnerID(ctx) - case notehistory.FieldText: - return m.OldText(ctx) + case organizationhistory.FieldName: + return m.OldName(ctx) + case organizationhistory.FieldDisplayName: + return m.OldDisplayName(ctx) + case organizationhistory.FieldDescription: + return m.OldDescription(ctx) + case organizationhistory.FieldParentOrganizationID: + return m.OldParentOrganizationID(ctx) + case organizationhistory.FieldPersonalOrg: + return m.OldPersonalOrg(ctx) + case organizationhistory.FieldAvatarRemoteURL: + return m.OldAvatarRemoteURL(ctx) + case organizationhistory.FieldDedicatedDb: + return m.OldDedicatedDb(ctx) } - return nil, fmt.Errorf("unknown NoteHistory field %s", name) + return nil, fmt.Errorf("unknown OrganizationHistory 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 *NoteHistoryMutation) SetField(name string, value ent.Value) error { +func (m *OrganizationHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case notehistory.FieldHistoryTime: + case organizationhistory.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 notehistory.FieldRef: + case organizationhistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetRef(v) return nil - case notehistory.FieldOperation: + case organizationhistory.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 notehistory.FieldCreatedAt: + case organizationhistory.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 notehistory.FieldUpdatedAt: + case organizationhistory.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 notehistory.FieldCreatedBy: + case organizationhistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case notehistory.FieldUpdatedBy: + case organizationhistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case notehistory.FieldMappingID: + case organizationhistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case notehistory.FieldDeletedAt: + case organizationhistory.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case organizationhistory.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 notehistory.FieldDeletedBy: + case organizationhistory.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case notehistory.FieldTags: - v, ok := value.([]string) + case organizationhistory.FieldName: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTags(v) + m.SetName(v) return nil - case notehistory.FieldOwnerID: + case organizationhistory.FieldDisplayName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetDisplayName(v) return nil - case notehistory.FieldText: + case organizationhistory.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetText(v) + m.SetDescription(v) + return nil + case organizationhistory.FieldParentOrganizationID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetParentOrganizationID(v) + return nil + case organizationhistory.FieldPersonalOrg: + v, ok := value.(bool) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetPersonalOrg(v) + return nil + case organizationhistory.FieldAvatarRemoteURL: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetAvatarRemoteURL(v) + return nil + case organizationhistory.FieldDedicatedDb: + v, ok := value.(bool) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDedicatedDb(v) return nil } - return fmt.Errorf("unknown NoteHistory field %s", name) + return fmt.Errorf("unknown OrganizationHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *NoteHistoryMutation) AddedFields() []string { +func (m *OrganizationHistoryMutation) 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 *NoteHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *OrganizationHistoryMutation) 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 *NoteHistoryMutation) AddField(name string, value ent.Value) error { +func (m *OrganizationHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown NoteHistory numeric field %s", name) + return fmt.Errorf("unknown OrganizationHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *NoteHistoryMutation) ClearedFields() []string { +func (m *OrganizationHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(notehistory.FieldRef) { - fields = append(fields, notehistory.FieldRef) + if m.FieldCleared(organizationhistory.FieldRef) { + fields = append(fields, organizationhistory.FieldRef) + } + if m.FieldCleared(organizationhistory.FieldCreatedAt) { + fields = append(fields, organizationhistory.FieldCreatedAt) + } + if m.FieldCleared(organizationhistory.FieldUpdatedAt) { + fields = append(fields, organizationhistory.FieldUpdatedAt) } - if m.FieldCleared(notehistory.FieldCreatedAt) { - fields = append(fields, notehistory.FieldCreatedAt) + if m.FieldCleared(organizationhistory.FieldCreatedBy) { + fields = append(fields, organizationhistory.FieldCreatedBy) } - if m.FieldCleared(notehistory.FieldUpdatedAt) { - fields = append(fields, notehistory.FieldUpdatedAt) + if m.FieldCleared(organizationhistory.FieldUpdatedBy) { + fields = append(fields, organizationhistory.FieldUpdatedBy) } - if m.FieldCleared(notehistory.FieldCreatedBy) { - fields = append(fields, notehistory.FieldCreatedBy) + if m.FieldCleared(organizationhistory.FieldTags) { + fields = append(fields, organizationhistory.FieldTags) } - if m.FieldCleared(notehistory.FieldUpdatedBy) { - fields = append(fields, notehistory.FieldUpdatedBy) + if m.FieldCleared(organizationhistory.FieldDeletedAt) { + fields = append(fields, organizationhistory.FieldDeletedAt) } - if m.FieldCleared(notehistory.FieldDeletedAt) { - fields = append(fields, notehistory.FieldDeletedAt) + if m.FieldCleared(organizationhistory.FieldDeletedBy) { + fields = append(fields, organizationhistory.FieldDeletedBy) } - if m.FieldCleared(notehistory.FieldDeletedBy) { - fields = append(fields, notehistory.FieldDeletedBy) + if m.FieldCleared(organizationhistory.FieldDescription) { + fields = append(fields, organizationhistory.FieldDescription) } - if m.FieldCleared(notehistory.FieldTags) { - fields = append(fields, notehistory.FieldTags) + if m.FieldCleared(organizationhistory.FieldParentOrganizationID) { + fields = append(fields, organizationhistory.FieldParentOrganizationID) } - if m.FieldCleared(notehistory.FieldOwnerID) { - fields = append(fields, notehistory.FieldOwnerID) + if m.FieldCleared(organizationhistory.FieldPersonalOrg) { + fields = append(fields, organizationhistory.FieldPersonalOrg) + } + if m.FieldCleared(organizationhistory.FieldAvatarRemoteURL) { + fields = append(fields, organizationhistory.FieldAvatarRemoteURL) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *NoteHistoryMutation) FieldCleared(name string) bool { +func (m *OrganizationHistoryMutation) 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 *NoteHistoryMutation) ClearField(name string) error { +func (m *OrganizationHistoryMutation) ClearField(name string) error { switch name { - case notehistory.FieldRef: + case organizationhistory.FieldRef: m.ClearRef() return nil - case notehistory.FieldCreatedAt: + case organizationhistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case notehistory.FieldUpdatedAt: + case organizationhistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case notehistory.FieldCreatedBy: + case organizationhistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case notehistory.FieldUpdatedBy: + case organizationhistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case notehistory.FieldDeletedAt: + case organizationhistory.FieldTags: + m.ClearTags() + return nil + case organizationhistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case notehistory.FieldDeletedBy: + case organizationhistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case notehistory.FieldTags: - m.ClearTags() + case organizationhistory.FieldDescription: + m.ClearDescription() return nil - case notehistory.FieldOwnerID: - m.ClearOwnerID() + case organizationhistory.FieldParentOrganizationID: + m.ClearParentOrganizationID() + return nil + case organizationhistory.FieldPersonalOrg: + m.ClearPersonalOrg() + return nil + case organizationhistory.FieldAvatarRemoteURL: + m.ClearAvatarRemoteURL() return nil } - return fmt.Errorf("unknown NoteHistory nullable field %s", name) + return fmt.Errorf("unknown OrganizationHistory 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 *NoteHistoryMutation) ResetField(name string) error { +func (m *OrganizationHistoryMutation) ResetField(name string) error { switch name { - case notehistory.FieldHistoryTime: + case organizationhistory.FieldHistoryTime: m.ResetHistoryTime() return nil - case notehistory.FieldRef: + case organizationhistory.FieldRef: m.ResetRef() return nil - case notehistory.FieldOperation: + case organizationhistory.FieldOperation: m.ResetOperation() return nil - case notehistory.FieldCreatedAt: + case organizationhistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case notehistory.FieldUpdatedAt: + case organizationhistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case notehistory.FieldCreatedBy: + case organizationhistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case notehistory.FieldUpdatedBy: + case organizationhistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case notehistory.FieldMappingID: + case organizationhistory.FieldMappingID: m.ResetMappingID() return nil - case notehistory.FieldDeletedAt: + case organizationhistory.FieldTags: + m.ResetTags() + return nil + case organizationhistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case notehistory.FieldDeletedBy: + case organizationhistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case notehistory.FieldTags: - m.ResetTags() + case organizationhistory.FieldName: + m.ResetName() return nil - case notehistory.FieldOwnerID: - m.ResetOwnerID() + case organizationhistory.FieldDisplayName: + m.ResetDisplayName() return nil - case notehistory.FieldText: - m.ResetText() + case organizationhistory.FieldDescription: + m.ResetDescription() + return nil + case organizationhistory.FieldParentOrganizationID: + m.ResetParentOrganizationID() + return nil + case organizationhistory.FieldPersonalOrg: + m.ResetPersonalOrg() + return nil + case organizationhistory.FieldAvatarRemoteURL: + m.ResetAvatarRemoteURL() + return nil + case organizationhistory.FieldDedicatedDb: + m.ResetDedicatedDb() return nil } - return fmt.Errorf("unknown NoteHistory field %s", name) + return fmt.Errorf("unknown OrganizationHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *NoteHistoryMutation) AddedEdges() []string { +func (m *OrganizationHistoryMutation) 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 *NoteHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *OrganizationHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *NoteHistoryMutation) RemovedEdges() []string { +func (m *OrganizationHistoryMutation) 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 *NoteHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *OrganizationHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *NoteHistoryMutation) ClearedEdges() []string { +func (m *OrganizationHistoryMutation) 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 *NoteHistoryMutation) EdgeCleared(name string) bool { +func (m *OrganizationHistoryMutation) 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 *NoteHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown NoteHistory unique edge %s", name) +func (m *OrganizationHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown OrganizationHistory 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 *NoteHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown NoteHistory edge %s", name) +func (m *OrganizationHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown OrganizationHistory edge %s", name) } -// OauthProviderMutation represents an operation that mutates the OauthProvider nodes in the graph. -type OauthProviderMutation struct { +// OrganizationSettingMutation represents an operation that mutates the OrganizationSetting nodes in the graph. +type OrganizationSettingMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - tags *[]string - appendtags []string - deleted_at *time.Time - deleted_by *string - name *string - client_id *string - client_secret *string - redirect_url *string - scopes *string - auth_url *string - token_url *string - auth_style *customtypes.Uint8 - addauth_style *customtypes.Uint8 - info_url *string - clearedFields map[string]struct{} - owner *string - clearedowner bool - done bool - oldValue func(context.Context) (*OauthProvider, error) - predicates []predicate.OauthProvider + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + domains *[]string + appenddomains []string + billing_contact *string + billing_email *string + billing_phone *string + billing_address *string + tax_identifier *string + geo_location *enums.Region + clearedFields map[string]struct{} + organization *string + clearedorganization bool + files map[string]struct{} + removedfiles map[string]struct{} + clearedfiles bool + done bool + oldValue func(context.Context) (*OrganizationSetting, error) + predicates []predicate.OrganizationSetting } -var _ ent.Mutation = (*OauthProviderMutation)(nil) +var _ ent.Mutation = (*OrganizationSettingMutation)(nil) -// oauthproviderOption allows management of the mutation configuration using functional options. -type oauthproviderOption func(*OauthProviderMutation) +// organizationsettingOption allows management of the mutation configuration using functional options. +type organizationsettingOption func(*OrganizationSettingMutation) -// newOauthProviderMutation creates new mutation for the OauthProvider entity. -func newOauthProviderMutation(c config, op Op, opts ...oauthproviderOption) *OauthProviderMutation { - m := &OauthProviderMutation{ +// newOrganizationSettingMutation creates new mutation for the OrganizationSetting entity. +func newOrganizationSettingMutation(c config, op Op, opts ...organizationsettingOption) *OrganizationSettingMutation { + m := &OrganizationSettingMutation{ config: c, op: op, - typ: TypeOauthProvider, + typ: TypeOrganizationSetting, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -51833,20 +81364,20 @@ func newOauthProviderMutation(c config, op Op, opts ...oauthproviderOption) *Oau return m } -// withOauthProviderID sets the ID field of the mutation. -func withOauthProviderID(id string) oauthproviderOption { - return func(m *OauthProviderMutation) { +// withOrganizationSettingID sets the ID field of the mutation. +func withOrganizationSettingID(id string) organizationsettingOption { + return func(m *OrganizationSettingMutation) { var ( err error once sync.Once - value *OauthProvider + value *OrganizationSetting ) - m.oldValue = func(ctx context.Context) (*OauthProvider, error) { + m.oldValue = func(ctx context.Context) (*OrganizationSetting, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().OauthProvider.Get(ctx, id) + value, err = m.Client().OrganizationSetting.Get(ctx, id) } }) return value, err @@ -51855,10 +81386,10 @@ func withOauthProviderID(id string) oauthproviderOption { } } -// withOauthProvider sets the old OauthProvider of the mutation. -func withOauthProvider(node *OauthProvider) oauthproviderOption { - return func(m *OauthProviderMutation) { - m.oldValue = func(context.Context) (*OauthProvider, error) { +// withOrganizationSetting sets the old OrganizationSetting of the mutation. +func withOrganizationSetting(node *OrganizationSetting) organizationsettingOption { + return func(m *OrganizationSettingMutation) { + m.oldValue = func(context.Context) (*OrganizationSetting, error) { return node, nil } m.id = &node.ID @@ -51867,7 +81398,7 @@ func withOauthProvider(node *OauthProvider) oauthproviderOption { // 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 OauthProviderMutation) Client() *Client { +func (m OrganizationSettingMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -51875,7 +81406,7 @@ func (m OauthProviderMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m OauthProviderMutation) Tx() (*Tx, error) { +func (m OrganizationSettingMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -51885,14 +81416,14 @@ func (m OauthProviderMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of OauthProvider entities. -func (m *OauthProviderMutation) SetID(id string) { +// operation is only accepted on creation of OrganizationSetting entities. +func (m *OrganizationSettingMutation) 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 *OauthProviderMutation) ID() (id string, exists bool) { +func (m *OrganizationSettingMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -51903,7 +81434,7 @@ func (m *OauthProviderMutation) ID() (id string, exists bool) { // 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 *OauthProviderMutation) IDs(ctx context.Context) ([]string, error) { +func (m *OrganizationSettingMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -51912,19 +81443,19 @@ func (m *OauthProviderMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().OauthProvider.Query().Where(m.predicates...).IDs(ctx) + return m.Client().OrganizationSetting.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 *OauthProviderMutation) SetCreatedAt(t time.Time) { +func (m *OrganizationSettingMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *OauthProviderMutation) CreatedAt() (r time.Time, exists bool) { +func (m *OrganizationSettingMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -51932,10 +81463,10 @@ func (m *OauthProviderMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *OrganizationSettingMutation) 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") } @@ -51950,30 +81481,30 @@ func (m *OauthProviderMutation) OldCreatedAt(ctx context.Context) (v time.Time, } // ClearCreatedAt clears the value of the "created_at" field. -func (m *OauthProviderMutation) ClearCreatedAt() { +func (m *OrganizationSettingMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[oauthprovider.FieldCreatedAt] = struct{}{} + m.clearedFields[organizationsetting.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *OauthProviderMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[oauthprovider.FieldCreatedAt] +func (m *OrganizationSettingMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *OauthProviderMutation) ResetCreatedAt() { +func (m *OrganizationSettingMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, oauthprovider.FieldCreatedAt) + delete(m.clearedFields, organizationsetting.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *OauthProviderMutation) SetUpdatedAt(t time.Time) { +func (m *OrganizationSettingMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *OauthProviderMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *OrganizationSettingMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -51981,10 +81512,10 @@ func (m *OauthProviderMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *OrganizationSettingMutation) 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") } @@ -51999,30 +81530,30 @@ func (m *OauthProviderMutation) OldUpdatedAt(ctx context.Context) (v time.Time, } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *OauthProviderMutation) ClearUpdatedAt() { +func (m *OrganizationSettingMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[oauthprovider.FieldUpdatedAt] = struct{}{} + m.clearedFields[organizationsetting.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *OauthProviderMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[oauthprovider.FieldUpdatedAt] +func (m *OrganizationSettingMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *OauthProviderMutation) ResetUpdatedAt() { +func (m *OrganizationSettingMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, oauthprovider.FieldUpdatedAt) + delete(m.clearedFields, organizationsetting.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *OauthProviderMutation) SetCreatedBy(s string) { +func (m *OrganizationSettingMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *OauthProviderMutation) CreatedBy() (r string, exists bool) { +func (m *OrganizationSettingMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -52030,10 +81561,10 @@ func (m *OauthProviderMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -52048,30 +81579,30 @@ func (m *OauthProviderMutation) OldCreatedBy(ctx context.Context) (v string, err } // ClearCreatedBy clears the value of the "created_by" field. -func (m *OauthProviderMutation) ClearCreatedBy() { +func (m *OrganizationSettingMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[oauthprovider.FieldCreatedBy] = struct{}{} + m.clearedFields[organizationsetting.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *OauthProviderMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[oauthprovider.FieldCreatedBy] +func (m *OrganizationSettingMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *OauthProviderMutation) ResetCreatedBy() { +func (m *OrganizationSettingMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, oauthprovider.FieldCreatedBy) + delete(m.clearedFields, organizationsetting.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *OauthProviderMutation) SetUpdatedBy(s string) { +func (m *OrganizationSettingMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *OauthProviderMutation) UpdatedBy() (r string, exists bool) { +func (m *OrganizationSettingMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -52079,10 +81610,10 @@ func (m *OauthProviderMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -52097,30 +81628,30 @@ func (m *OauthProviderMutation) OldUpdatedBy(ctx context.Context) (v string, err } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *OauthProviderMutation) ClearUpdatedBy() { +func (m *OrganizationSettingMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[oauthprovider.FieldUpdatedBy] = struct{}{} + m.clearedFields[organizationsetting.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *OauthProviderMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[oauthprovider.FieldUpdatedBy] +func (m *OrganizationSettingMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *OauthProviderMutation) ResetUpdatedBy() { +func (m *OrganizationSettingMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, oauthprovider.FieldUpdatedBy) + delete(m.clearedFields, organizationsetting.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *OauthProviderMutation) SetMappingID(s string) { +func (m *OrganizationSettingMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *OauthProviderMutation) MappingID() (r string, exists bool) { +func (m *OrganizationSettingMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -52128,10 +81659,10 @@ func (m *OauthProviderMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -52146,18 +81677,18 @@ func (m *OauthProviderMutation) OldMappingID(ctx context.Context) (v string, err } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *OauthProviderMutation) ResetMappingID() { +func (m *OrganizationSettingMutation) ResetMappingID() { m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *OauthProviderMutation) SetTags(s []string) { +func (m *OrganizationSettingMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *OauthProviderMutation) Tags() (r []string, exists bool) { +func (m *OrganizationSettingMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -52165,10 +81696,10 @@ func (m *OauthProviderMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *OrganizationSettingMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -52183,12 +81714,12 @@ func (m *OauthProviderMutation) OldTags(ctx context.Context) (v []string, err er } // AppendTags adds s to the "tags" field. -func (m *OauthProviderMutation) AppendTags(s []string) { +func (m *OrganizationSettingMutation) 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 *OauthProviderMutation) AppendedTags() ([]string, bool) { +func (m *OrganizationSettingMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -52196,32 +81727,32 @@ func (m *OauthProviderMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *OauthProviderMutation) ClearTags() { +func (m *OrganizationSettingMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[oauthprovider.FieldTags] = struct{}{} + m.clearedFields[organizationsetting.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *OauthProviderMutation) TagsCleared() bool { - _, ok := m.clearedFields[oauthprovider.FieldTags] +func (m *OrganizationSettingMutation) TagsCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *OauthProviderMutation) ResetTags() { +func (m *OrganizationSettingMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, oauthprovider.FieldTags) + delete(m.clearedFields, organizationsetting.FieldTags) } // SetDeletedAt sets the "deleted_at" field. -func (m *OauthProviderMutation) SetDeletedAt(t time.Time) { +func (m *OrganizationSettingMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *OauthProviderMutation) DeletedAt() (r time.Time, exists bool) { +func (m *OrganizationSettingMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -52229,10 +81760,10 @@ func (m *OauthProviderMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *OrganizationSettingMutation) 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") } @@ -52247,30 +81778,30 @@ func (m *OauthProviderMutation) OldDeletedAt(ctx context.Context) (v time.Time, } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *OauthProviderMutation) ClearDeletedAt() { +func (m *OrganizationSettingMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[oauthprovider.FieldDeletedAt] = struct{}{} + m.clearedFields[organizationsetting.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *OauthProviderMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[oauthprovider.FieldDeletedAt] +func (m *OrganizationSettingMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *OauthProviderMutation) ResetDeletedAt() { +func (m *OrganizationSettingMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, oauthprovider.FieldDeletedAt) + delete(m.clearedFields, organizationsetting.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *OauthProviderMutation) SetDeletedBy(s string) { +func (m *OrganizationSettingMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *OauthProviderMutation) DeletedBy() (r string, exists bool) { +func (m *OrganizationSettingMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -52278,10 +81809,10 @@ func (m *OauthProviderMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -52296,452 +81827,521 @@ func (m *OauthProviderMutation) OldDeletedBy(ctx context.Context) (v string, err } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *OauthProviderMutation) ClearDeletedBy() { +func (m *OrganizationSettingMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[oauthprovider.FieldDeletedBy] = struct{}{} + m.clearedFields[organizationsetting.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *OauthProviderMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[oauthprovider.FieldDeletedBy] +func (m *OrganizationSettingMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *OauthProviderMutation) ResetDeletedBy() { +func (m *OrganizationSettingMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, oauthprovider.FieldDeletedBy) -} - -// SetOwnerID sets the "owner_id" field. -func (m *OauthProviderMutation) SetOwnerID(s string) { - m.owner = &s -} - -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *OauthProviderMutation) 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 OauthProvider entity. -// If the OauthProvider 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 *OauthProviderMutation) 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 *OauthProviderMutation) ClearOwnerID() { - m.owner = nil - m.clearedFields[oauthprovider.FieldOwnerID] = struct{}{} -} - -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *OauthProviderMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[oauthprovider.FieldOwnerID] - return ok -} - -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *OauthProviderMutation) ResetOwnerID() { - m.owner = nil - delete(m.clearedFields, oauthprovider.FieldOwnerID) -} - -// SetName sets the "name" field. -func (m *OauthProviderMutation) SetName(s string) { - m.name = &s -} - -// Name returns the value of the "name" field in the mutation. -func (m *OauthProviderMutation) 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 OauthProvider entity. -// If the OauthProvider 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 *OauthProviderMutation) 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 *OauthProviderMutation) ResetName() { - m.name = nil + delete(m.clearedFields, organizationsetting.FieldDeletedBy) } -// SetClientID sets the "client_id" field. -func (m *OauthProviderMutation) SetClientID(s string) { - m.client_id = &s +// SetDomains sets the "domains" field. +func (m *OrganizationSettingMutation) SetDomains(s []string) { + m.domains = &s + m.appenddomains = nil } -// ClientID returns the value of the "client_id" field in the mutation. -func (m *OauthProviderMutation) ClientID() (r string, exists bool) { - v := m.client_id +// Domains returns the value of the "domains" field in the mutation. +func (m *OrganizationSettingMutation) Domains() (r []string, exists bool) { + v := m.domains if v == nil { return } return *v, true } -// OldClientID returns the old "client_id" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldDomains returns the old "domains" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldClientID(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingMutation) OldDomains(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldClientID is only allowed on UpdateOne operations") + return v, errors.New("OldDomains is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldClientID requires an ID field in the mutation") + return v, errors.New("OldDomains requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldClientID: %w", err) + return v, fmt.Errorf("querying old value for OldDomains: %w", err) } - return oldValue.ClientID, nil + return oldValue.Domains, nil } -// ResetClientID resets all changes to the "client_id" field. -func (m *OauthProviderMutation) ResetClientID() { - m.client_id = nil +// AppendDomains adds s to the "domains" field. +func (m *OrganizationSettingMutation) AppendDomains(s []string) { + m.appenddomains = append(m.appenddomains, s...) } -// SetClientSecret sets the "client_secret" field. -func (m *OauthProviderMutation) SetClientSecret(s string) { - m.client_secret = &s +// AppendedDomains returns the list of values that were appended to the "domains" field in this mutation. +func (m *OrganizationSettingMutation) AppendedDomains() ([]string, bool) { + if len(m.appenddomains) == 0 { + return nil, false + } + return m.appenddomains, true } -// ClientSecret returns the value of the "client_secret" field in the mutation. -func (m *OauthProviderMutation) ClientSecret() (r string, exists bool) { - v := m.client_secret +// ClearDomains clears the value of the "domains" field. +func (m *OrganizationSettingMutation) ClearDomains() { + m.domains = nil + m.appenddomains = nil + m.clearedFields[organizationsetting.FieldDomains] = struct{}{} +} + +// DomainsCleared returns if the "domains" field was cleared in this mutation. +func (m *OrganizationSettingMutation) DomainsCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldDomains] + return ok +} + +// ResetDomains resets all changes to the "domains" field. +func (m *OrganizationSettingMutation) ResetDomains() { + m.domains = nil + m.appenddomains = nil + delete(m.clearedFields, organizationsetting.FieldDomains) +} + +// SetBillingContact sets the "billing_contact" field. +func (m *OrganizationSettingMutation) SetBillingContact(s string) { + m.billing_contact = &s +} + +// BillingContact returns the value of the "billing_contact" field in the mutation. +func (m *OrganizationSettingMutation) BillingContact() (r string, exists bool) { + v := m.billing_contact if v == nil { return } return *v, true } -// OldClientSecret returns the old "client_secret" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldBillingContact returns the old "billing_contact" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldClientSecret(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingMutation) OldBillingContact(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldClientSecret is only allowed on UpdateOne operations") + return v, errors.New("OldBillingContact is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldClientSecret requires an ID field in the mutation") + return v, errors.New("OldBillingContact requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldClientSecret: %w", err) + return v, fmt.Errorf("querying old value for OldBillingContact: %w", err) } - return oldValue.ClientSecret, nil + return oldValue.BillingContact, nil } -// ResetClientSecret resets all changes to the "client_secret" field. -func (m *OauthProviderMutation) ResetClientSecret() { - m.client_secret = nil +// ClearBillingContact clears the value of the "billing_contact" field. +func (m *OrganizationSettingMutation) ClearBillingContact() { + m.billing_contact = nil + m.clearedFields[organizationsetting.FieldBillingContact] = struct{}{} } -// SetRedirectURL sets the "redirect_url" field. -func (m *OauthProviderMutation) SetRedirectURL(s string) { - m.redirect_url = &s +// BillingContactCleared returns if the "billing_contact" field was cleared in this mutation. +func (m *OrganizationSettingMutation) BillingContactCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldBillingContact] + return ok } -// RedirectURL returns the value of the "redirect_url" field in the mutation. -func (m *OauthProviderMutation) RedirectURL() (r string, exists bool) { - v := m.redirect_url +// ResetBillingContact resets all changes to the "billing_contact" field. +func (m *OrganizationSettingMutation) ResetBillingContact() { + m.billing_contact = nil + delete(m.clearedFields, organizationsetting.FieldBillingContact) +} + +// SetBillingEmail sets the "billing_email" field. +func (m *OrganizationSettingMutation) SetBillingEmail(s string) { + m.billing_email = &s +} + +// BillingEmail returns the value of the "billing_email" field in the mutation. +func (m *OrganizationSettingMutation) BillingEmail() (r string, exists bool) { + v := m.billing_email if v == nil { return } return *v, true } -// OldRedirectURL returns the old "redirect_url" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldBillingEmail returns the old "billing_email" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldRedirectURL(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingMutation) OldBillingEmail(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldRedirectURL is only allowed on UpdateOne operations") + return v, errors.New("OldBillingEmail is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldRedirectURL requires an ID field in the mutation") + return v, errors.New("OldBillingEmail requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldRedirectURL: %w", err) + return v, fmt.Errorf("querying old value for OldBillingEmail: %w", err) } - return oldValue.RedirectURL, nil + return oldValue.BillingEmail, nil } -// ResetRedirectURL resets all changes to the "redirect_url" field. -func (m *OauthProviderMutation) ResetRedirectURL() { - m.redirect_url = nil +// ClearBillingEmail clears the value of the "billing_email" field. +func (m *OrganizationSettingMutation) ClearBillingEmail() { + m.billing_email = nil + m.clearedFields[organizationsetting.FieldBillingEmail] = struct{}{} } -// SetScopes sets the "scopes" field. -func (m *OauthProviderMutation) SetScopes(s string) { - m.scopes = &s +// BillingEmailCleared returns if the "billing_email" field was cleared in this mutation. +func (m *OrganizationSettingMutation) BillingEmailCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldBillingEmail] + return ok } -// Scopes returns the value of the "scopes" field in the mutation. -func (m *OauthProviderMutation) Scopes() (r string, exists bool) { - v := m.scopes +// ResetBillingEmail resets all changes to the "billing_email" field. +func (m *OrganizationSettingMutation) ResetBillingEmail() { + m.billing_email = nil + delete(m.clearedFields, organizationsetting.FieldBillingEmail) +} + +// SetBillingPhone sets the "billing_phone" field. +func (m *OrganizationSettingMutation) SetBillingPhone(s string) { + m.billing_phone = &s +} + +// BillingPhone returns the value of the "billing_phone" field in the mutation. +func (m *OrganizationSettingMutation) BillingPhone() (r string, exists bool) { + v := m.billing_phone if v == nil { return } return *v, true } -// OldScopes returns the old "scopes" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldBillingPhone returns the old "billing_phone" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldScopes(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingMutation) OldBillingPhone(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldScopes is only allowed on UpdateOne operations") + return v, errors.New("OldBillingPhone is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldScopes requires an ID field in the mutation") + return v, errors.New("OldBillingPhone requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldScopes: %w", err) + return v, fmt.Errorf("querying old value for OldBillingPhone: %w", err) } - return oldValue.Scopes, nil + return oldValue.BillingPhone, nil } -// ResetScopes resets all changes to the "scopes" field. -func (m *OauthProviderMutation) ResetScopes() { - m.scopes = nil +// ClearBillingPhone clears the value of the "billing_phone" field. +func (m *OrganizationSettingMutation) ClearBillingPhone() { + m.billing_phone = nil + m.clearedFields[organizationsetting.FieldBillingPhone] = struct{}{} } -// SetAuthURL sets the "auth_url" field. -func (m *OauthProviderMutation) SetAuthURL(s string) { - m.auth_url = &s +// BillingPhoneCleared returns if the "billing_phone" field was cleared in this mutation. +func (m *OrganizationSettingMutation) BillingPhoneCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldBillingPhone] + return ok } -// AuthURL returns the value of the "auth_url" field in the mutation. -func (m *OauthProviderMutation) AuthURL() (r string, exists bool) { - v := m.auth_url +// ResetBillingPhone resets all changes to the "billing_phone" field. +func (m *OrganizationSettingMutation) ResetBillingPhone() { + m.billing_phone = nil + delete(m.clearedFields, organizationsetting.FieldBillingPhone) +} + +// SetBillingAddress sets the "billing_address" field. +func (m *OrganizationSettingMutation) SetBillingAddress(s string) { + m.billing_address = &s +} + +// BillingAddress returns the value of the "billing_address" field in the mutation. +func (m *OrganizationSettingMutation) BillingAddress() (r string, exists bool) { + v := m.billing_address if v == nil { return } return *v, true } -// OldAuthURL returns the old "auth_url" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldBillingAddress returns the old "billing_address" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldAuthURL(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingMutation) OldBillingAddress(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldAuthURL is only allowed on UpdateOne operations") + return v, errors.New("OldBillingAddress is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldAuthURL requires an ID field in the mutation") + return v, errors.New("OldBillingAddress requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldAuthURL: %w", err) + return v, fmt.Errorf("querying old value for OldBillingAddress: %w", err) } - return oldValue.AuthURL, nil + return oldValue.BillingAddress, nil } -// ResetAuthURL resets all changes to the "auth_url" field. -func (m *OauthProviderMutation) ResetAuthURL() { - m.auth_url = nil +// ClearBillingAddress clears the value of the "billing_address" field. +func (m *OrganizationSettingMutation) ClearBillingAddress() { + m.billing_address = nil + m.clearedFields[organizationsetting.FieldBillingAddress] = struct{}{} } -// SetTokenURL sets the "token_url" field. -func (m *OauthProviderMutation) SetTokenURL(s string) { - m.token_url = &s +// BillingAddressCleared returns if the "billing_address" field was cleared in this mutation. +func (m *OrganizationSettingMutation) BillingAddressCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldBillingAddress] + return ok } -// TokenURL returns the value of the "token_url" field in the mutation. -func (m *OauthProviderMutation) TokenURL() (r string, exists bool) { - v := m.token_url +// ResetBillingAddress resets all changes to the "billing_address" field. +func (m *OrganizationSettingMutation) ResetBillingAddress() { + m.billing_address = nil + delete(m.clearedFields, organizationsetting.FieldBillingAddress) +} + +// SetTaxIdentifier sets the "tax_identifier" field. +func (m *OrganizationSettingMutation) SetTaxIdentifier(s string) { + m.tax_identifier = &s +} + +// TaxIdentifier returns the value of the "tax_identifier" field in the mutation. +func (m *OrganizationSettingMutation) TaxIdentifier() (r string, exists bool) { + v := m.tax_identifier if v == nil { return } return *v, true } -// OldTokenURL returns the old "token_url" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldTaxIdentifier returns the old "tax_identifier" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldTokenURL(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingMutation) OldTaxIdentifier(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTokenURL is only allowed on UpdateOne operations") + return v, errors.New("OldTaxIdentifier is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldTokenURL requires an ID field in the mutation") + return v, errors.New("OldTaxIdentifier requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldTokenURL: %w", err) + return v, fmt.Errorf("querying old value for OldTaxIdentifier: %w", err) } - return oldValue.TokenURL, nil + return oldValue.TaxIdentifier, nil } -// ResetTokenURL resets all changes to the "token_url" field. -func (m *OauthProviderMutation) ResetTokenURL() { - m.token_url = nil +// ClearTaxIdentifier clears the value of the "tax_identifier" field. +func (m *OrganizationSettingMutation) ClearTaxIdentifier() { + m.tax_identifier = nil + m.clearedFields[organizationsetting.FieldTaxIdentifier] = struct{}{} } -// SetAuthStyle sets the "auth_style" field. -func (m *OauthProviderMutation) SetAuthStyle(c customtypes.Uint8) { - m.auth_style = &c - m.addauth_style = nil +// TaxIdentifierCleared returns if the "tax_identifier" field was cleared in this mutation. +func (m *OrganizationSettingMutation) TaxIdentifierCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldTaxIdentifier] + return ok } -// AuthStyle returns the value of the "auth_style" field in the mutation. -func (m *OauthProviderMutation) AuthStyle() (r customtypes.Uint8, exists bool) { - v := m.auth_style +// ResetTaxIdentifier resets all changes to the "tax_identifier" field. +func (m *OrganizationSettingMutation) ResetTaxIdentifier() { + m.tax_identifier = nil + delete(m.clearedFields, organizationsetting.FieldTaxIdentifier) +} + +// SetGeoLocation sets the "geo_location" field. +func (m *OrganizationSettingMutation) SetGeoLocation(e enums.Region) { + m.geo_location = &e +} + +// GeoLocation returns the value of the "geo_location" field in the mutation. +func (m *OrganizationSettingMutation) GeoLocation() (r enums.Region, exists bool) { + v := m.geo_location if v == nil { return } return *v, true } -// OldAuthStyle returns the old "auth_style" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldGeoLocation returns the old "geo_location" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldAuthStyle(ctx context.Context) (v customtypes.Uint8, err error) { +func (m *OrganizationSettingMutation) OldGeoLocation(ctx context.Context) (v enums.Region, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldAuthStyle is only allowed on UpdateOne operations") + return v, errors.New("OldGeoLocation is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldAuthStyle requires an ID field in the mutation") + return v, errors.New("OldGeoLocation requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldAuthStyle: %w", err) + return v, fmt.Errorf("querying old value for OldGeoLocation: %w", err) } - return oldValue.AuthStyle, nil + return oldValue.GeoLocation, nil } -// AddAuthStyle adds c to the "auth_style" field. -func (m *OauthProviderMutation) AddAuthStyle(c customtypes.Uint8) { - if m.addauth_style != nil { - *m.addauth_style += c - } else { - m.addauth_style = &c - } +// ClearGeoLocation clears the value of the "geo_location" field. +func (m *OrganizationSettingMutation) ClearGeoLocation() { + m.geo_location = nil + m.clearedFields[organizationsetting.FieldGeoLocation] = struct{}{} } -// AddedAuthStyle returns the value that was added to the "auth_style" field in this mutation. -func (m *OauthProviderMutation) AddedAuthStyle() (r customtypes.Uint8, exists bool) { - v := m.addauth_style - if v == nil { - return - } - return *v, true +// GeoLocationCleared returns if the "geo_location" field was cleared in this mutation. +func (m *OrganizationSettingMutation) GeoLocationCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldGeoLocation] + return ok } -// ResetAuthStyle resets all changes to the "auth_style" field. -func (m *OauthProviderMutation) ResetAuthStyle() { - m.auth_style = nil - m.addauth_style = nil +// ResetGeoLocation resets all changes to the "geo_location" field. +func (m *OrganizationSettingMutation) ResetGeoLocation() { + m.geo_location = nil + delete(m.clearedFields, organizationsetting.FieldGeoLocation) } -// SetInfoURL sets the "info_url" field. -func (m *OauthProviderMutation) SetInfoURL(s string) { - m.info_url = &s +// SetOrganizationID sets the "organization_id" field. +func (m *OrganizationSettingMutation) SetOrganizationID(s string) { + m.organization = &s } -// InfoURL returns the value of the "info_url" field in the mutation. -func (m *OauthProviderMutation) InfoURL() (r string, exists bool) { - v := m.info_url +// OrganizationID returns the value of the "organization_id" field in the mutation. +func (m *OrganizationSettingMutation) OrganizationID() (r string, exists bool) { + v := m.organization if v == nil { return } return *v, true } -// OldInfoURL returns the old "info_url" field's value of the OauthProvider entity. -// If the OauthProvider object wasn't provided to the builder, the object is fetched from the database. +// OldOrganizationID returns the old "organization_id" field's value of the OrganizationSetting entity. +// If the OrganizationSetting 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 *OauthProviderMutation) OldInfoURL(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingMutation) OldOrganizationID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldInfoURL is only allowed on UpdateOne operations") + return v, errors.New("OldOrganizationID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldInfoURL requires an ID field in the mutation") + return v, errors.New("OldOrganizationID requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldInfoURL: %w", err) + return v, fmt.Errorf("querying old value for OldOrganizationID: %w", err) } - return oldValue.InfoURL, nil + return oldValue.OrganizationID, nil } -// ResetInfoURL resets all changes to the "info_url" field. -func (m *OauthProviderMutation) ResetInfoURL() { - m.info_url = nil +// ClearOrganizationID clears the value of the "organization_id" field. +func (m *OrganizationSettingMutation) ClearOrganizationID() { + m.organization = nil + m.clearedFields[organizationsetting.FieldOrganizationID] = struct{}{} } -// ClearOwner clears the "owner" edge to the Organization entity. -func (m *OauthProviderMutation) ClearOwner() { - m.clearedowner = true - m.clearedFields[oauthprovider.FieldOwnerID] = struct{}{} +// OrganizationIDCleared returns if the "organization_id" field was cleared in this mutation. +func (m *OrganizationSettingMutation) OrganizationIDCleared() bool { + _, ok := m.clearedFields[organizationsetting.FieldOrganizationID] + return ok } -// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. -func (m *OauthProviderMutation) OwnerCleared() bool { - return m.OwnerIDCleared() || m.clearedowner +// ResetOrganizationID resets all changes to the "organization_id" field. +func (m *OrganizationSettingMutation) ResetOrganizationID() { + m.organization = nil + delete(m.clearedFields, organizationsetting.FieldOrganizationID) } -// OwnerIDs returns the "owner" edge IDs in the mutation. +// ClearOrganization clears the "organization" edge to the Organization entity. +func (m *OrganizationSettingMutation) ClearOrganization() { + m.clearedorganization = true + m.clearedFields[organizationsetting.FieldOrganizationID] = struct{}{} +} + +// OrganizationCleared reports if the "organization" edge to the Organization entity was cleared. +func (m *OrganizationSettingMutation) OrganizationCleared() bool { + return m.OrganizationIDCleared() || m.clearedorganization +} + +// OrganizationIDs returns the "organization" 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 *OauthProviderMutation) OwnerIDs() (ids []string) { - if id := m.owner; id != nil { +// OrganizationID instead. It exists only for internal usage by the builders. +func (m *OrganizationSettingMutation) OrganizationIDs() (ids []string) { + if id := m.organization; id != nil { ids = append(ids, *id) } return } -// ResetOwner resets all changes to the "owner" edge. -func (m *OauthProviderMutation) ResetOwner() { - m.owner = nil - m.clearedowner = false +// ResetOrganization resets all changes to the "organization" edge. +func (m *OrganizationSettingMutation) ResetOrganization() { + m.organization = nil + m.clearedorganization = false } -// Where appends a list predicates to the OauthProviderMutation builder. -func (m *OauthProviderMutation) Where(ps ...predicate.OauthProvider) { +// AddFileIDs adds the "files" edge to the File entity by ids. +func (m *OrganizationSettingMutation) AddFileIDs(ids ...string) { + if m.files == nil { + m.files = make(map[string]struct{}) + } + for i := range ids { + m.files[ids[i]] = struct{}{} + } +} + +// ClearFiles clears the "files" edge to the File entity. +func (m *OrganizationSettingMutation) ClearFiles() { + m.clearedfiles = true +} + +// FilesCleared reports if the "files" edge to the File entity was cleared. +func (m *OrganizationSettingMutation) FilesCleared() bool { + return m.clearedfiles +} + +// RemoveFileIDs removes the "files" edge to the File entity by IDs. +func (m *OrganizationSettingMutation) RemoveFileIDs(ids ...string) { + if m.removedfiles == nil { + m.removedfiles = make(map[string]struct{}) + } + for i := range ids { + delete(m.files, ids[i]) + m.removedfiles[ids[i]] = struct{}{} + } +} + +// RemovedFiles returns the removed IDs of the "files" edge to the File entity. +func (m *OrganizationSettingMutation) RemovedFilesIDs() (ids []string) { + for id := range m.removedfiles { + ids = append(ids, id) + } + return +} + +// FilesIDs returns the "files" edge IDs in the mutation. +func (m *OrganizationSettingMutation) FilesIDs() (ids []string) { + for id := range m.files { + ids = append(ids, id) + } + return +} + +// ResetFiles resets all changes to the "files" edge. +func (m *OrganizationSettingMutation) ResetFiles() { + m.files = nil + m.clearedfiles = false + m.removedfiles = nil +} + +// Where appends a list predicates to the OrganizationSettingMutation builder. +func (m *OrganizationSettingMutation) Where(ps ...predicate.OrganizationSetting) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the OauthProviderMutation builder. Using this method, +// WhereP appends storage-level predicates to the OrganizationSettingMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *OauthProviderMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.OauthProvider, len(ps)) +func (m *OrganizationSettingMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.OrganizationSetting, len(ps)) for i := range ps { p[i] = ps[i] } @@ -52749,78 +82349,72 @@ func (m *OauthProviderMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *OauthProviderMutation) Op() Op { +func (m *OrganizationSettingMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *OauthProviderMutation) SetOp(op Op) { +func (m *OrganizationSettingMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (OauthProvider). -func (m *OauthProviderMutation) Type() string { +// Type returns the node type of this mutation (OrganizationSetting). +func (m *OrganizationSettingMutation) 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 *OauthProviderMutation) Fields() []string { - fields := make([]string, 0, 18) +func (m *OrganizationSettingMutation) Fields() []string { + fields := make([]string, 0, 16) if m.created_at != nil { - fields = append(fields, oauthprovider.FieldCreatedAt) + fields = append(fields, organizationsetting.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, oauthprovider.FieldUpdatedAt) + fields = append(fields, organizationsetting.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, oauthprovider.FieldCreatedBy) + fields = append(fields, organizationsetting.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, oauthprovider.FieldUpdatedBy) + fields = append(fields, organizationsetting.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, oauthprovider.FieldMappingID) + fields = append(fields, organizationsetting.FieldMappingID) } if m.tags != nil { - fields = append(fields, oauthprovider.FieldTags) - } - if m.deleted_at != nil { - fields = append(fields, oauthprovider.FieldDeletedAt) - } - if m.deleted_by != nil { - fields = append(fields, oauthprovider.FieldDeletedBy) - } - if m.owner != nil { - fields = append(fields, oauthprovider.FieldOwnerID) + fields = append(fields, organizationsetting.FieldTags) } - if m.name != nil { - fields = append(fields, oauthprovider.FieldName) + if m.deleted_at != nil { + fields = append(fields, organizationsetting.FieldDeletedAt) } - if m.client_id != nil { - fields = append(fields, oauthprovider.FieldClientID) + if m.deleted_by != nil { + fields = append(fields, organizationsetting.FieldDeletedBy) } - if m.client_secret != nil { - fields = append(fields, oauthprovider.FieldClientSecret) + if m.domains != nil { + fields = append(fields, organizationsetting.FieldDomains) } - if m.redirect_url != nil { - fields = append(fields, oauthprovider.FieldRedirectURL) + if m.billing_contact != nil { + fields = append(fields, organizationsetting.FieldBillingContact) } - if m.scopes != nil { - fields = append(fields, oauthprovider.FieldScopes) + if m.billing_email != nil { + fields = append(fields, organizationsetting.FieldBillingEmail) } - if m.auth_url != nil { - fields = append(fields, oauthprovider.FieldAuthURL) + if m.billing_phone != nil { + fields = append(fields, organizationsetting.FieldBillingPhone) } - if m.token_url != nil { - fields = append(fields, oauthprovider.FieldTokenURL) + if m.billing_address != nil { + fields = append(fields, organizationsetting.FieldBillingAddress) } - if m.auth_style != nil { - fields = append(fields, oauthprovider.FieldAuthStyle) + if m.tax_identifier != nil { + fields = append(fields, organizationsetting.FieldTaxIdentifier) } - if m.info_url != nil { - fields = append(fields, oauthprovider.FieldInfoURL) + if m.geo_location != nil { + fields = append(fields, organizationsetting.FieldGeoLocation) + } + if m.organization != nil { + fields = append(fields, organizationsetting.FieldOrganizationID) } return fields } @@ -52828,44 +82422,40 @@ func (m *OauthProviderMutation) Fields() []string { // 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 *OauthProviderMutation) Field(name string) (ent.Value, bool) { +func (m *OrganizationSettingMutation) Field(name string) (ent.Value, bool) { switch name { - case oauthprovider.FieldCreatedAt: + case organizationsetting.FieldCreatedAt: return m.CreatedAt() - case oauthprovider.FieldUpdatedAt: + case organizationsetting.FieldUpdatedAt: return m.UpdatedAt() - case oauthprovider.FieldCreatedBy: + case organizationsetting.FieldCreatedBy: return m.CreatedBy() - case oauthprovider.FieldUpdatedBy: + case organizationsetting.FieldUpdatedBy: return m.UpdatedBy() - case oauthprovider.FieldMappingID: + case organizationsetting.FieldMappingID: return m.MappingID() - case oauthprovider.FieldTags: + case organizationsetting.FieldTags: return m.Tags() - case oauthprovider.FieldDeletedAt: + case organizationsetting.FieldDeletedAt: return m.DeletedAt() - case oauthprovider.FieldDeletedBy: + case organizationsetting.FieldDeletedBy: return m.DeletedBy() - case oauthprovider.FieldOwnerID: - return m.OwnerID() - case oauthprovider.FieldName: - return m.Name() - case oauthprovider.FieldClientID: - return m.ClientID() - case oauthprovider.FieldClientSecret: - return m.ClientSecret() - case oauthprovider.FieldRedirectURL: - return m.RedirectURL() - case oauthprovider.FieldScopes: - return m.Scopes() - case oauthprovider.FieldAuthURL: - return m.AuthURL() - case oauthprovider.FieldTokenURL: - return m.TokenURL() - case oauthprovider.FieldAuthStyle: - return m.AuthStyle() - case oauthprovider.FieldInfoURL: - return m.InfoURL() + case organizationsetting.FieldDomains: + return m.Domains() + case organizationsetting.FieldBillingContact: + return m.BillingContact() + case organizationsetting.FieldBillingEmail: + return m.BillingEmail() + case organizationsetting.FieldBillingPhone: + return m.BillingPhone() + case organizationsetting.FieldBillingAddress: + return m.BillingAddress() + case organizationsetting.FieldTaxIdentifier: + return m.TaxIdentifier() + case organizationsetting.FieldGeoLocation: + return m.GeoLocation() + case organizationsetting.FieldOrganizationID: + return m.OrganizationID() } return nil, false } @@ -52873,472 +82463,501 @@ func (m *OauthProviderMutation) Field(name string) (ent.Value, bool) { // 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 *OauthProviderMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *OrganizationSettingMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case oauthprovider.FieldCreatedAt: + case organizationsetting.FieldCreatedAt: return m.OldCreatedAt(ctx) - case oauthprovider.FieldUpdatedAt: + case organizationsetting.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case oauthprovider.FieldCreatedBy: + case organizationsetting.FieldCreatedBy: return m.OldCreatedBy(ctx) - case oauthprovider.FieldUpdatedBy: + case organizationsetting.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case oauthprovider.FieldMappingID: + case organizationsetting.FieldMappingID: return m.OldMappingID(ctx) - case oauthprovider.FieldTags: + case organizationsetting.FieldTags: return m.OldTags(ctx) - case oauthprovider.FieldDeletedAt: + case organizationsetting.FieldDeletedAt: return m.OldDeletedAt(ctx) - case oauthprovider.FieldDeletedBy: + case organizationsetting.FieldDeletedBy: return m.OldDeletedBy(ctx) - case oauthprovider.FieldOwnerID: - return m.OldOwnerID(ctx) - case oauthprovider.FieldName: - return m.OldName(ctx) - case oauthprovider.FieldClientID: - return m.OldClientID(ctx) - case oauthprovider.FieldClientSecret: - return m.OldClientSecret(ctx) - case oauthprovider.FieldRedirectURL: - return m.OldRedirectURL(ctx) - case oauthprovider.FieldScopes: - return m.OldScopes(ctx) - case oauthprovider.FieldAuthURL: - return m.OldAuthURL(ctx) - case oauthprovider.FieldTokenURL: - return m.OldTokenURL(ctx) - case oauthprovider.FieldAuthStyle: - return m.OldAuthStyle(ctx) - case oauthprovider.FieldInfoURL: - return m.OldInfoURL(ctx) + case organizationsetting.FieldDomains: + return m.OldDomains(ctx) + case organizationsetting.FieldBillingContact: + return m.OldBillingContact(ctx) + case organizationsetting.FieldBillingEmail: + return m.OldBillingEmail(ctx) + case organizationsetting.FieldBillingPhone: + return m.OldBillingPhone(ctx) + case organizationsetting.FieldBillingAddress: + return m.OldBillingAddress(ctx) + case organizationsetting.FieldTaxIdentifier: + return m.OldTaxIdentifier(ctx) + case organizationsetting.FieldGeoLocation: + return m.OldGeoLocation(ctx) + case organizationsetting.FieldOrganizationID: + return m.OldOrganizationID(ctx) } - return nil, fmt.Errorf("unknown OauthProvider field %s", name) + return nil, fmt.Errorf("unknown OrganizationSetting 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 *OauthProviderMutation) SetField(name string, value ent.Value) error { +func (m *OrganizationSettingMutation) SetField(name string, value ent.Value) error { switch name { - case oauthprovider.FieldCreatedAt: + case organizationsetting.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 oauthprovider.FieldUpdatedAt: + case organizationsetting.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 oauthprovider.FieldCreatedBy: + case organizationsetting.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case oauthprovider.FieldUpdatedBy: + case organizationsetting.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case oauthprovider.FieldMappingID: + case organizationsetting.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case oauthprovider.FieldTags: + case organizationsetting.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case oauthprovider.FieldDeletedAt: + case organizationsetting.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 oauthprovider.FieldDeletedBy: + case organizationsetting.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case oauthprovider.FieldOwnerID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetOwnerID(v) - return nil - case oauthprovider.FieldName: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetName(v) - return nil - case oauthprovider.FieldClientID: - v, ok := value.(string) + case organizationsetting.FieldDomains: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetClientID(v) + m.SetDomains(v) return nil - case oauthprovider.FieldClientSecret: + case organizationsetting.FieldBillingContact: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetClientSecret(v) + m.SetBillingContact(v) return nil - case oauthprovider.FieldRedirectURL: + case organizationsetting.FieldBillingEmail: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetRedirectURL(v) + m.SetBillingEmail(v) return nil - case oauthprovider.FieldScopes: + case organizationsetting.FieldBillingPhone: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetScopes(v) + m.SetBillingPhone(v) return nil - case oauthprovider.FieldAuthURL: + case organizationsetting.FieldBillingAddress: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetAuthURL(v) + m.SetBillingAddress(v) return nil - case oauthprovider.FieldTokenURL: + case organizationsetting.FieldTaxIdentifier: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTokenURL(v) + m.SetTaxIdentifier(v) return nil - case oauthprovider.FieldAuthStyle: - v, ok := value.(customtypes.Uint8) + case organizationsetting.FieldGeoLocation: + v, ok := value.(enums.Region) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetAuthStyle(v) + m.SetGeoLocation(v) return nil - case oauthprovider.FieldInfoURL: + case organizationsetting.FieldOrganizationID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetInfoURL(v) + m.SetOrganizationID(v) return nil } - return fmt.Errorf("unknown OauthProvider field %s", name) + return fmt.Errorf("unknown OrganizationSetting field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *OauthProviderMutation) AddedFields() []string { - var fields []string - if m.addauth_style != nil { - fields = append(fields, oauthprovider.FieldAuthStyle) - } - return fields +func (m *OrganizationSettingMutation) 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 *OauthProviderMutation) AddedField(name string) (ent.Value, bool) { - switch name { - case oauthprovider.FieldAuthStyle: - return m.AddedAuthStyle() - } +func (m *OrganizationSettingMutation) 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 *OauthProviderMutation) AddField(name string, value ent.Value) error { +func (m *OrganizationSettingMutation) AddField(name string, value ent.Value) error { switch name { - case oauthprovider.FieldAuthStyle: - v, ok := value.(customtypes.Uint8) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.AddAuthStyle(v) - return nil } - return fmt.Errorf("unknown OauthProvider numeric field %s", name) + return fmt.Errorf("unknown OrganizationSetting numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *OauthProviderMutation) ClearedFields() []string { +func (m *OrganizationSettingMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(oauthprovider.FieldCreatedAt) { - fields = append(fields, oauthprovider.FieldCreatedAt) + if m.FieldCleared(organizationsetting.FieldCreatedAt) { + fields = append(fields, organizationsetting.FieldCreatedAt) } - if m.FieldCleared(oauthprovider.FieldUpdatedAt) { - fields = append(fields, oauthprovider.FieldUpdatedAt) + if m.FieldCleared(organizationsetting.FieldUpdatedAt) { + fields = append(fields, organizationsetting.FieldUpdatedAt) } - if m.FieldCleared(oauthprovider.FieldCreatedBy) { - fields = append(fields, oauthprovider.FieldCreatedBy) + if m.FieldCleared(organizationsetting.FieldCreatedBy) { + fields = append(fields, organizationsetting.FieldCreatedBy) } - if m.FieldCleared(oauthprovider.FieldUpdatedBy) { - fields = append(fields, oauthprovider.FieldUpdatedBy) + if m.FieldCleared(organizationsetting.FieldUpdatedBy) { + fields = append(fields, organizationsetting.FieldUpdatedBy) } - if m.FieldCleared(oauthprovider.FieldTags) { - fields = append(fields, oauthprovider.FieldTags) + if m.FieldCleared(organizationsetting.FieldTags) { + fields = append(fields, organizationsetting.FieldTags) } - if m.FieldCleared(oauthprovider.FieldDeletedAt) { - fields = append(fields, oauthprovider.FieldDeletedAt) + if m.FieldCleared(organizationsetting.FieldDeletedAt) { + fields = append(fields, organizationsetting.FieldDeletedAt) } - if m.FieldCleared(oauthprovider.FieldDeletedBy) { - fields = append(fields, oauthprovider.FieldDeletedBy) + if m.FieldCleared(organizationsetting.FieldDeletedBy) { + fields = append(fields, organizationsetting.FieldDeletedBy) } - if m.FieldCleared(oauthprovider.FieldOwnerID) { - fields = append(fields, oauthprovider.FieldOwnerID) + if m.FieldCleared(organizationsetting.FieldDomains) { + fields = append(fields, organizationsetting.FieldDomains) + } + if m.FieldCleared(organizationsetting.FieldBillingContact) { + fields = append(fields, organizationsetting.FieldBillingContact) + } + if m.FieldCleared(organizationsetting.FieldBillingEmail) { + fields = append(fields, organizationsetting.FieldBillingEmail) + } + if m.FieldCleared(organizationsetting.FieldBillingPhone) { + fields = append(fields, organizationsetting.FieldBillingPhone) + } + if m.FieldCleared(organizationsetting.FieldBillingAddress) { + fields = append(fields, organizationsetting.FieldBillingAddress) + } + if m.FieldCleared(organizationsetting.FieldTaxIdentifier) { + fields = append(fields, organizationsetting.FieldTaxIdentifier) + } + if m.FieldCleared(organizationsetting.FieldGeoLocation) { + fields = append(fields, organizationsetting.FieldGeoLocation) + } + if m.FieldCleared(organizationsetting.FieldOrganizationID) { + fields = append(fields, organizationsetting.FieldOrganizationID) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *OauthProviderMutation) FieldCleared(name string) bool { +func (m *OrganizationSettingMutation) 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 *OauthProviderMutation) ClearField(name string) error { +func (m *OrganizationSettingMutation) ClearField(name string) error { switch name { - case oauthprovider.FieldCreatedAt: + case organizationsetting.FieldCreatedAt: m.ClearCreatedAt() return nil - case oauthprovider.FieldUpdatedAt: + case organizationsetting.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case oauthprovider.FieldCreatedBy: + case organizationsetting.FieldCreatedBy: m.ClearCreatedBy() return nil - case oauthprovider.FieldUpdatedBy: + case organizationsetting.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case oauthprovider.FieldTags: + case organizationsetting.FieldTags: m.ClearTags() return nil - case oauthprovider.FieldDeletedAt: + case organizationsetting.FieldDeletedAt: m.ClearDeletedAt() return nil - case oauthprovider.FieldDeletedBy: + case organizationsetting.FieldDeletedBy: m.ClearDeletedBy() return nil - case oauthprovider.FieldOwnerID: - m.ClearOwnerID() + case organizationsetting.FieldDomains: + m.ClearDomains() + return nil + case organizationsetting.FieldBillingContact: + m.ClearBillingContact() + return nil + case organizationsetting.FieldBillingEmail: + m.ClearBillingEmail() + return nil + case organizationsetting.FieldBillingPhone: + m.ClearBillingPhone() + return nil + case organizationsetting.FieldBillingAddress: + m.ClearBillingAddress() + return nil + case organizationsetting.FieldTaxIdentifier: + m.ClearTaxIdentifier() + return nil + case organizationsetting.FieldGeoLocation: + m.ClearGeoLocation() + return nil + case organizationsetting.FieldOrganizationID: + m.ClearOrganizationID() return nil } - return fmt.Errorf("unknown OauthProvider nullable field %s", name) + return fmt.Errorf("unknown OrganizationSetting 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 *OauthProviderMutation) ResetField(name string) error { +func (m *OrganizationSettingMutation) ResetField(name string) error { switch name { - case oauthprovider.FieldCreatedAt: + case organizationsetting.FieldCreatedAt: m.ResetCreatedAt() return nil - case oauthprovider.FieldUpdatedAt: + case organizationsetting.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case oauthprovider.FieldCreatedBy: + case organizationsetting.FieldCreatedBy: m.ResetCreatedBy() return nil - case oauthprovider.FieldUpdatedBy: + case organizationsetting.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case oauthprovider.FieldMappingID: + case organizationsetting.FieldMappingID: m.ResetMappingID() return nil - case oauthprovider.FieldTags: + case organizationsetting.FieldTags: m.ResetTags() return nil - case oauthprovider.FieldDeletedAt: + case organizationsetting.FieldDeletedAt: m.ResetDeletedAt() return nil - case oauthprovider.FieldDeletedBy: + case organizationsetting.FieldDeletedBy: m.ResetDeletedBy() return nil - case oauthprovider.FieldOwnerID: - m.ResetOwnerID() - return nil - case oauthprovider.FieldName: - m.ResetName() - return nil - case oauthprovider.FieldClientID: - m.ResetClientID() + case organizationsetting.FieldDomains: + m.ResetDomains() return nil - case oauthprovider.FieldClientSecret: - m.ResetClientSecret() + case organizationsetting.FieldBillingContact: + m.ResetBillingContact() return nil - case oauthprovider.FieldRedirectURL: - m.ResetRedirectURL() + case organizationsetting.FieldBillingEmail: + m.ResetBillingEmail() return nil - case oauthprovider.FieldScopes: - m.ResetScopes() + case organizationsetting.FieldBillingPhone: + m.ResetBillingPhone() return nil - case oauthprovider.FieldAuthURL: - m.ResetAuthURL() + case organizationsetting.FieldBillingAddress: + m.ResetBillingAddress() return nil - case oauthprovider.FieldTokenURL: - m.ResetTokenURL() + case organizationsetting.FieldTaxIdentifier: + m.ResetTaxIdentifier() return nil - case oauthprovider.FieldAuthStyle: - m.ResetAuthStyle() + case organizationsetting.FieldGeoLocation: + m.ResetGeoLocation() return nil - case oauthprovider.FieldInfoURL: - m.ResetInfoURL() + case organizationsetting.FieldOrganizationID: + m.ResetOrganizationID() return nil } - return fmt.Errorf("unknown OauthProvider field %s", name) + return fmt.Errorf("unknown OrganizationSetting field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *OauthProviderMutation) AddedEdges() []string { - edges := make([]string, 0, 1) - if m.owner != nil { - edges = append(edges, oauthprovider.EdgeOwner) +func (m *OrganizationSettingMutation) AddedEdges() []string { + edges := make([]string, 0, 2) + if m.organization != nil { + edges = append(edges, organizationsetting.EdgeOrganization) + } + if m.files != nil { + edges = append(edges, organizationsetting.EdgeFiles) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *OauthProviderMutation) AddedIDs(name string) []ent.Value { +func (m *OrganizationSettingMutation) AddedIDs(name string) []ent.Value { switch name { - case oauthprovider.EdgeOwner: - if id := m.owner; id != nil { + case organizationsetting.EdgeOrganization: + if id := m.organization; id != nil { return []ent.Value{*id} } + case organizationsetting.EdgeFiles: + ids := make([]ent.Value, 0, len(m.files)) + for id := range m.files { + ids = append(ids, id) + } + return ids } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *OauthProviderMutation) RemovedEdges() []string { - edges := make([]string, 0, 1) +func (m *OrganizationSettingMutation) RemovedEdges() []string { + edges := make([]string, 0, 2) + if m.removedfiles != nil { + edges = append(edges, organizationsetting.EdgeFiles) + } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *OauthProviderMutation) RemovedIDs(name string) []ent.Value { +func (m *OrganizationSettingMutation) RemovedIDs(name string) []ent.Value { + switch name { + case organizationsetting.EdgeFiles: + ids := make([]ent.Value, 0, len(m.removedfiles)) + for id := range m.removedfiles { + ids = append(ids, id) + } + return ids + } return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *OauthProviderMutation) ClearedEdges() []string { - edges := make([]string, 0, 1) - if m.clearedowner { - edges = append(edges, oauthprovider.EdgeOwner) +func (m *OrganizationSettingMutation) ClearedEdges() []string { + edges := make([]string, 0, 2) + if m.clearedorganization { + edges = append(edges, organizationsetting.EdgeOrganization) + } + if m.clearedfiles { + edges = append(edges, organizationsetting.EdgeFiles) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *OauthProviderMutation) EdgeCleared(name string) bool { +func (m *OrganizationSettingMutation) EdgeCleared(name string) bool { switch name { - case oauthprovider.EdgeOwner: - return m.clearedowner + case organizationsetting.EdgeOrganization: + return m.clearedorganization + case organizationsetting.EdgeFiles: + return m.clearedfiles } 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 *OauthProviderMutation) ClearEdge(name string) error { +func (m *OrganizationSettingMutation) ClearEdge(name string) error { switch name { - case oauthprovider.EdgeOwner: - m.ClearOwner() + case organizationsetting.EdgeOrganization: + m.ClearOrganization() return nil } - return fmt.Errorf("unknown OauthProvider unique edge %s", name) + return fmt.Errorf("unknown OrganizationSetting 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 *OauthProviderMutation) ResetEdge(name string) error { +func (m *OrganizationSettingMutation) ResetEdge(name string) error { switch name { - case oauthprovider.EdgeOwner: - m.ResetOwner() + case organizationsetting.EdgeOrganization: + m.ResetOrganization() return nil - } - return fmt.Errorf("unknown OauthProvider edge %s", name) -} - -// OauthProviderHistoryMutation represents an operation that mutates the OauthProviderHistory nodes in the graph. -type OauthProviderHistoryMutation 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 - mapping_id *string - tags *[]string - appendtags []string - deleted_at *time.Time - deleted_by *string - owner_id *string - name *string - client_id *string - client_secret *string - redirect_url *string - scopes *string - auth_url *string - token_url *string - auth_style *customtypes.Uint8 - addauth_style *customtypes.Uint8 - info_url *string - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*OauthProviderHistory, error) - predicates []predicate.OauthProviderHistory + case organizationsetting.EdgeFiles: + m.ResetFiles() + return nil + } + return fmt.Errorf("unknown OrganizationSetting edge %s", name) } -var _ ent.Mutation = (*OauthProviderHistoryMutation)(nil) +// OrganizationSettingHistoryMutation represents an operation that mutates the OrganizationSettingHistory nodes in the graph. +type OrganizationSettingHistoryMutation 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 + mapping_id *string + tags *[]string + appendtags []string + deleted_at *time.Time + deleted_by *string + domains *[]string + appenddomains []string + billing_contact *string + billing_email *string + billing_phone *string + billing_address *string + tax_identifier *string + geo_location *enums.Region + organization_id *string + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*OrganizationSettingHistory, error) + predicates []predicate.OrganizationSettingHistory +} -// oauthproviderhistoryOption allows management of the mutation configuration using functional options. -type oauthproviderhistoryOption func(*OauthProviderHistoryMutation) +var _ ent.Mutation = (*OrganizationSettingHistoryMutation)(nil) -// newOauthProviderHistoryMutation creates new mutation for the OauthProviderHistory entity. -func newOauthProviderHistoryMutation(c config, op Op, opts ...oauthproviderhistoryOption) *OauthProviderHistoryMutation { - m := &OauthProviderHistoryMutation{ +// organizationsettinghistoryOption allows management of the mutation configuration using functional options. +type organizationsettinghistoryOption func(*OrganizationSettingHistoryMutation) + +// newOrganizationSettingHistoryMutation creates new mutation for the OrganizationSettingHistory entity. +func newOrganizationSettingHistoryMutation(c config, op Op, opts ...organizationsettinghistoryOption) *OrganizationSettingHistoryMutation { + m := &OrganizationSettingHistoryMutation{ config: c, op: op, - typ: TypeOauthProviderHistory, + typ: TypeOrganizationSettingHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -53347,20 +82966,20 @@ func newOauthProviderHistoryMutation(c config, op Op, opts ...oauthproviderhisto return m } -// withOauthProviderHistoryID sets the ID field of the mutation. -func withOauthProviderHistoryID(id string) oauthproviderhistoryOption { - return func(m *OauthProviderHistoryMutation) { +// withOrganizationSettingHistoryID sets the ID field of the mutation. +func withOrganizationSettingHistoryID(id string) organizationsettinghistoryOption { + return func(m *OrganizationSettingHistoryMutation) { var ( err error once sync.Once - value *OauthProviderHistory + value *OrganizationSettingHistory ) - m.oldValue = func(ctx context.Context) (*OauthProviderHistory, error) { + m.oldValue = func(ctx context.Context) (*OrganizationSettingHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().OauthProviderHistory.Get(ctx, id) + value, err = m.Client().OrganizationSettingHistory.Get(ctx, id) } }) return value, err @@ -53369,10 +82988,10 @@ func withOauthProviderHistoryID(id string) oauthproviderhistoryOption { } } -// withOauthProviderHistory sets the old OauthProviderHistory of the mutation. -func withOauthProviderHistory(node *OauthProviderHistory) oauthproviderhistoryOption { - return func(m *OauthProviderHistoryMutation) { - m.oldValue = func(context.Context) (*OauthProviderHistory, error) { +// withOrganizationSettingHistory sets the old OrganizationSettingHistory of the mutation. +func withOrganizationSettingHistory(node *OrganizationSettingHistory) organizationsettinghistoryOption { + return func(m *OrganizationSettingHistoryMutation) { + m.oldValue = func(context.Context) (*OrganizationSettingHistory, error) { return node, nil } m.id = &node.ID @@ -53381,7 +83000,7 @@ func withOauthProviderHistory(node *OauthProviderHistory) oauthproviderhistoryOp // 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 OauthProviderHistoryMutation) Client() *Client { +func (m OrganizationSettingHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -53389,7 +83008,7 @@ func (m OauthProviderHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m OauthProviderHistoryMutation) Tx() (*Tx, error) { +func (m OrganizationSettingHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -53399,14 +83018,14 @@ func (m OauthProviderHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of OauthProviderHistory entities. -func (m *OauthProviderHistoryMutation) SetID(id string) { +// operation is only accepted on creation of OrganizationSettingHistory entities. +func (m *OrganizationSettingHistoryMutation) 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 *OauthProviderHistoryMutation) ID() (id string, exists bool) { +func (m *OrganizationSettingHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -53417,7 +83036,7 @@ func (m *OauthProviderHistoryMutation) ID() (id string, exists bool) { // 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 *OauthProviderHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *OrganizationSettingHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -53426,19 +83045,19 @@ func (m *OauthProviderHistoryMutation) IDs(ctx context.Context) ([]string, error } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().OauthProviderHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().OrganizationSettingHistory.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 *OauthProviderHistoryMutation) SetHistoryTime(t time.Time) { +func (m *OrganizationSettingHistoryMutation) SetHistoryTime(t time.Time) { m.history_time = &t } // HistoryTime returns the value of the "history_time" field in the mutation. -func (m *OauthProviderHistoryMutation) HistoryTime() (r time.Time, exists bool) { +func (m *OrganizationSettingHistoryMutation) HistoryTime() (r time.Time, exists bool) { v := m.history_time if v == nil { return @@ -53446,10 +83065,10 @@ func (m *OauthProviderHistoryMutation) HistoryTime() (r time.Time, exists bool) return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *OrganizationSettingHistoryMutation) 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") } @@ -53464,17 +83083,17 @@ func (m *OauthProviderHistoryMutation) OldHistoryTime(ctx context.Context) (v ti } // ResetHistoryTime resets all changes to the "history_time" field. -func (m *OauthProviderHistoryMutation) ResetHistoryTime() { +func (m *OrganizationSettingHistoryMutation) ResetHistoryTime() { m.history_time = nil } // SetRef sets the "ref" field. -func (m *OauthProviderHistoryMutation) SetRef(s string) { +func (m *OrganizationSettingHistoryMutation) SetRef(s string) { m.ref = &s } // Ref returns the value of the "ref" field in the mutation. -func (m *OauthProviderHistoryMutation) Ref() (r string, exists bool) { +func (m *OrganizationSettingHistoryMutation) Ref() (r string, exists bool) { v := m.ref if v == nil { return @@ -53482,10 +83101,10 @@ func (m *OauthProviderHistoryMutation) Ref() (r string, exists bool) { return *v, true } -// OldRef returns the old "ref" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldRef is only allowed on UpdateOne operations") } @@ -53500,30 +83119,30 @@ func (m *OauthProviderHistoryMutation) OldRef(ctx context.Context) (v string, er } // ClearRef clears the value of the "ref" field. -func (m *OauthProviderHistoryMutation) ClearRef() { +func (m *OrganizationSettingHistoryMutation) ClearRef() { m.ref = nil - m.clearedFields[oauthproviderhistory.FieldRef] = struct{}{} + m.clearedFields[organizationsettinghistory.FieldRef] = struct{}{} } // RefCleared returns if the "ref" field was cleared in this mutation. -func (m *OauthProviderHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[oauthproviderhistory.FieldRef] +func (m *OrganizationSettingHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldRef] return ok } // ResetRef resets all changes to the "ref" field. -func (m *OauthProviderHistoryMutation) ResetRef() { +func (m *OrganizationSettingHistoryMutation) ResetRef() { m.ref = nil - delete(m.clearedFields, oauthproviderhistory.FieldRef) + delete(m.clearedFields, organizationsettinghistory.FieldRef) } // SetOperation sets the "operation" field. -func (m *OauthProviderHistoryMutation) SetOperation(ht history.OpType) { +func (m *OrganizationSettingHistoryMutation) SetOperation(ht history.OpType) { m.operation = &ht } // Operation returns the value of the "operation" field in the mutation. -func (m *OauthProviderHistoryMutation) Operation() (r history.OpType, exists bool) { +func (m *OrganizationSettingHistoryMutation) Operation() (r history.OpType, exists bool) { v := m.operation if v == nil { return @@ -53531,10 +83150,10 @@ func (m *OauthProviderHistoryMutation) Operation() (r history.OpType, exists boo return *v, true } -// OldOperation returns the old "operation" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *OrganizationSettingHistoryMutation) 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") } @@ -53549,17 +83168,17 @@ func (m *OauthProviderHistoryMutation) OldOperation(ctx context.Context) (v hist } // ResetOperation resets all changes to the "operation" field. -func (m *OauthProviderHistoryMutation) ResetOperation() { +func (m *OrganizationSettingHistoryMutation) ResetOperation() { m.operation = nil } // SetCreatedAt sets the "created_at" field. -func (m *OauthProviderHistoryMutation) SetCreatedAt(t time.Time) { +func (m *OrganizationSettingHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *OauthProviderHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *OrganizationSettingHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -53567,10 +83186,10 @@ func (m *OauthProviderHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *OrganizationSettingHistoryMutation) 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") } @@ -53585,30 +83204,30 @@ func (m *OauthProviderHistoryMutation) OldCreatedAt(ctx context.Context) (v time } // ClearCreatedAt clears the value of the "created_at" field. -func (m *OauthProviderHistoryMutation) ClearCreatedAt() { +func (m *OrganizationSettingHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[oauthproviderhistory.FieldCreatedAt] = struct{}{} + m.clearedFields[organizationsettinghistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *OauthProviderHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[oauthproviderhistory.FieldCreatedAt] +func (m *OrganizationSettingHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *OauthProviderHistoryMutation) ResetCreatedAt() { +func (m *OrganizationSettingHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, oauthproviderhistory.FieldCreatedAt) + delete(m.clearedFields, organizationsettinghistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *OauthProviderHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *OrganizationSettingHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *OauthProviderHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *OrganizationSettingHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -53616,10 +83235,10 @@ func (m *OauthProviderHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *OrganizationSettingHistoryMutation) 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") } @@ -53634,30 +83253,30 @@ func (m *OauthProviderHistoryMutation) OldUpdatedAt(ctx context.Context) (v time } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *OauthProviderHistoryMutation) ClearUpdatedAt() { +func (m *OrganizationSettingHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[oauthproviderhistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[organizationsettinghistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *OauthProviderHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[oauthproviderhistory.FieldUpdatedAt] +func (m *OrganizationSettingHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *OauthProviderHistoryMutation) ResetUpdatedAt() { +func (m *OrganizationSettingHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, oauthproviderhistory.FieldUpdatedAt) + delete(m.clearedFields, organizationsettinghistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *OauthProviderHistoryMutation) SetCreatedBy(s string) { +func (m *OrganizationSettingHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *OauthProviderHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *OrganizationSettingHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -53665,10 +83284,10 @@ func (m *OauthProviderHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -53683,30 +83302,30 @@ func (m *OauthProviderHistoryMutation) OldCreatedBy(ctx context.Context) (v stri } // ClearCreatedBy clears the value of the "created_by" field. -func (m *OauthProviderHistoryMutation) ClearCreatedBy() { +func (m *OrganizationSettingHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[oauthproviderhistory.FieldCreatedBy] = struct{}{} + m.clearedFields[organizationsettinghistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *OauthProviderHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[oauthproviderhistory.FieldCreatedBy] +func (m *OrganizationSettingHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *OauthProviderHistoryMutation) ResetCreatedBy() { +func (m *OrganizationSettingHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, oauthproviderhistory.FieldCreatedBy) + delete(m.clearedFields, organizationsettinghistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *OauthProviderHistoryMutation) SetUpdatedBy(s string) { +func (m *OrganizationSettingHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *OauthProviderHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *OrganizationSettingHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -53714,10 +83333,10 @@ func (m *OauthProviderHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -53732,30 +83351,30 @@ func (m *OauthProviderHistoryMutation) OldUpdatedBy(ctx context.Context) (v stri } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *OauthProviderHistoryMutation) ClearUpdatedBy() { +func (m *OrganizationSettingHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[oauthproviderhistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[organizationsettinghistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *OauthProviderHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[oauthproviderhistory.FieldUpdatedBy] +func (m *OrganizationSettingHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *OauthProviderHistoryMutation) ResetUpdatedBy() { +func (m *OrganizationSettingHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, oauthproviderhistory.FieldUpdatedBy) + delete(m.clearedFields, organizationsettinghistory.FieldUpdatedBy) } // SetMappingID sets the "mapping_id" field. -func (m *OauthProviderHistoryMutation) SetMappingID(s string) { +func (m *OrganizationSettingHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *OauthProviderHistoryMutation) MappingID() (r string, exists bool) { +func (m *OrganizationSettingHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -53763,10 +83382,10 @@ func (m *OauthProviderHistoryMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -53781,18 +83400,18 @@ func (m *OauthProviderHistoryMutation) OldMappingID(ctx context.Context) (v stri } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *OauthProviderHistoryMutation) ResetMappingID() { +func (m *OrganizationSettingHistoryMutation) ResetMappingID() { m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *OauthProviderHistoryMutation) SetTags(s []string) { +func (m *OrganizationSettingHistoryMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *OauthProviderHistoryMutation) Tags() (r []string, exists bool) { +func (m *OrganizationSettingHistoryMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -53800,10 +83419,10 @@ func (m *OauthProviderHistoryMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *OrganizationSettingHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -53818,12 +83437,12 @@ func (m *OauthProviderHistoryMutation) OldTags(ctx context.Context) (v []string, } // AppendTags adds s to the "tags" field. -func (m *OauthProviderHistoryMutation) AppendTags(s []string) { +func (m *OrganizationSettingHistoryMutation) 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 *OauthProviderHistoryMutation) AppendedTags() ([]string, bool) { +func (m *OrganizationSettingHistoryMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -53831,32 +83450,32 @@ func (m *OauthProviderHistoryMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *OauthProviderHistoryMutation) ClearTags() { +func (m *OrganizationSettingHistoryMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[oauthproviderhistory.FieldTags] = struct{}{} + m.clearedFields[organizationsettinghistory.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *OauthProviderHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[oauthproviderhistory.FieldTags] +func (m *OrganizationSettingHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *OauthProviderHistoryMutation) ResetTags() { +func (m *OrganizationSettingHistoryMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, oauthproviderhistory.FieldTags) + delete(m.clearedFields, organizationsettinghistory.FieldTags) } // SetDeletedAt sets the "deleted_at" field. -func (m *OauthProviderHistoryMutation) SetDeletedAt(t time.Time) { +func (m *OrganizationSettingHistoryMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *OauthProviderHistoryMutation) DeletedAt() (r time.Time, exists bool) { +func (m *OrganizationSettingHistoryMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -53864,10 +83483,10 @@ func (m *OauthProviderHistoryMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *OrganizationSettingHistoryMutation) 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") } @@ -53882,30 +83501,30 @@ func (m *OauthProviderHistoryMutation) OldDeletedAt(ctx context.Context) (v time } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *OauthProviderHistoryMutation) ClearDeletedAt() { +func (m *OrganizationSettingHistoryMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[oauthproviderhistory.FieldDeletedAt] = struct{}{} + m.clearedFields[organizationsettinghistory.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *OauthProviderHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[oauthproviderhistory.FieldDeletedAt] +func (m *OrganizationSettingHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *OauthProviderHistoryMutation) ResetDeletedAt() { +func (m *OrganizationSettingHistoryMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, oauthproviderhistory.FieldDeletedAt) + delete(m.clearedFields, organizationsettinghistory.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *OauthProviderHistoryMutation) SetDeletedBy(s string) { +func (m *OrganizationSettingHistoryMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *OauthProviderHistoryMutation) DeletedBy() (r string, exists bool) { +func (m *OrganizationSettingHistoryMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -53913,10 +83532,10 @@ func (m *OauthProviderHistoryMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -53931,425 +83550,440 @@ func (m *OauthProviderHistoryMutation) OldDeletedBy(ctx context.Context) (v stri } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *OauthProviderHistoryMutation) ClearDeletedBy() { +func (m *OrganizationSettingHistoryMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[oauthproviderhistory.FieldDeletedBy] = struct{}{} + m.clearedFields[organizationsettinghistory.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *OauthProviderHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[oauthproviderhistory.FieldDeletedBy] +func (m *OrganizationSettingHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *OauthProviderHistoryMutation) ResetDeletedBy() { +func (m *OrganizationSettingHistoryMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, oauthproviderhistory.FieldDeletedBy) + delete(m.clearedFields, organizationsettinghistory.FieldDeletedBy) } -// SetOwnerID sets the "owner_id" field. -func (m *OauthProviderHistoryMutation) SetOwnerID(s string) { - m.owner_id = &s +// SetDomains sets the "domains" field. +func (m *OrganizationSettingHistoryMutation) SetDomains(s []string) { + m.domains = &s + m.appenddomains = nil } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *OauthProviderHistoryMutation) OwnerID() (r string, exists bool) { - v := m.owner_id +// Domains returns the value of the "domains" field in the mutation. +func (m *OrganizationSettingHistoryMutation) Domains() (r []string, exists bool) { + v := m.domains if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDomains returns the old "domains" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingHistoryMutation) OldDomains(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldDomains 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") + return v, errors.New("OldDomains 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 v, fmt.Errorf("querying old value for OldDomains: %w", err) } - return oldValue.OwnerID, nil + return oldValue.Domains, nil } -// ClearOwnerID clears the value of the "owner_id" field. -func (m *OauthProviderHistoryMutation) ClearOwnerID() { - m.owner_id = nil - m.clearedFields[oauthproviderhistory.FieldOwnerID] = struct{}{} +// AppendDomains adds s to the "domains" field. +func (m *OrganizationSettingHistoryMutation) AppendDomains(s []string) { + m.appenddomains = append(m.appenddomains, s...) } -// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. -func (m *OauthProviderHistoryMutation) OwnerIDCleared() bool { - _, ok := m.clearedFields[oauthproviderhistory.FieldOwnerID] +// AppendedDomains returns the list of values that were appended to the "domains" field in this mutation. +func (m *OrganizationSettingHistoryMutation) AppendedDomains() ([]string, bool) { + if len(m.appenddomains) == 0 { + return nil, false + } + return m.appenddomains, true +} + +// ClearDomains clears the value of the "domains" field. +func (m *OrganizationSettingHistoryMutation) ClearDomains() { + m.domains = nil + m.appenddomains = nil + m.clearedFields[organizationsettinghistory.FieldDomains] = struct{}{} +} + +// DomainsCleared returns if the "domains" field was cleared in this mutation. +func (m *OrganizationSettingHistoryMutation) DomainsCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldDomains] return ok } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *OauthProviderHistoryMutation) ResetOwnerID() { - m.owner_id = nil - delete(m.clearedFields, oauthproviderhistory.FieldOwnerID) +// ResetDomains resets all changes to the "domains" field. +func (m *OrganizationSettingHistoryMutation) ResetDomains() { + m.domains = nil + m.appenddomains = nil + delete(m.clearedFields, organizationsettinghistory.FieldDomains) } -// SetName sets the "name" field. -func (m *OauthProviderHistoryMutation) SetName(s string) { - m.name = &s +// SetBillingContact sets the "billing_contact" field. +func (m *OrganizationSettingHistoryMutation) SetBillingContact(s string) { + m.billing_contact = &s } -// Name returns the value of the "name" field in the mutation. -func (m *OauthProviderHistoryMutation) Name() (r string, exists bool) { - v := m.name +// BillingContact returns the value of the "billing_contact" field in the mutation. +func (m *OrganizationSettingHistoryMutation) BillingContact() (r string, exists bool) { + v := m.billing_contact if v == nil { return } return *v, true } -// OldName returns the old "name" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldBillingContact returns the old "billing_contact" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldName(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingHistoryMutation) OldBillingContact(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldName is only allowed on UpdateOne operations") + return v, errors.New("OldBillingContact 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") + return v, errors.New("OldBillingContact 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 v, fmt.Errorf("querying old value for OldBillingContact: %w", err) } - return oldValue.Name, nil -} - -// ResetName resets all changes to the "name" field. -func (m *OauthProviderHistoryMutation) ResetName() { - m.name = nil -} - -// SetClientID sets the "client_id" field. -func (m *OauthProviderHistoryMutation) SetClientID(s string) { - m.client_id = &s + return oldValue.BillingContact, nil } -// ClientID returns the value of the "client_id" field in the mutation. -func (m *OauthProviderHistoryMutation) ClientID() (r string, exists bool) { - v := m.client_id - if v == nil { - return - } - return *v, true +// ClearBillingContact clears the value of the "billing_contact" field. +func (m *OrganizationSettingHistoryMutation) ClearBillingContact() { + m.billing_contact = nil + m.clearedFields[organizationsettinghistory.FieldBillingContact] = struct{}{} } -// OldClientID returns the old "client_id" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) OldClientID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldClientID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldClientID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldClientID: %w", err) - } - return oldValue.ClientID, nil +// BillingContactCleared returns if the "billing_contact" field was cleared in this mutation. +func (m *OrganizationSettingHistoryMutation) BillingContactCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldBillingContact] + return ok } -// ResetClientID resets all changes to the "client_id" field. -func (m *OauthProviderHistoryMutation) ResetClientID() { - m.client_id = nil +// ResetBillingContact resets all changes to the "billing_contact" field. +func (m *OrganizationSettingHistoryMutation) ResetBillingContact() { + m.billing_contact = nil + delete(m.clearedFields, organizationsettinghistory.FieldBillingContact) } -// SetClientSecret sets the "client_secret" field. -func (m *OauthProviderHistoryMutation) SetClientSecret(s string) { - m.client_secret = &s +// SetBillingEmail sets the "billing_email" field. +func (m *OrganizationSettingHistoryMutation) SetBillingEmail(s string) { + m.billing_email = &s } -// ClientSecret returns the value of the "client_secret" field in the mutation. -func (m *OauthProviderHistoryMutation) ClientSecret() (r string, exists bool) { - v := m.client_secret +// BillingEmail returns the value of the "billing_email" field in the mutation. +func (m *OrganizationSettingHistoryMutation) BillingEmail() (r string, exists bool) { + v := m.billing_email if v == nil { return } return *v, true } -// OldClientSecret returns the old "client_secret" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldBillingEmail returns the old "billing_email" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldClientSecret(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingHistoryMutation) OldBillingEmail(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldClientSecret is only allowed on UpdateOne operations") + return v, errors.New("OldBillingEmail is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldClientSecret requires an ID field in the mutation") + return v, errors.New("OldBillingEmail requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldClientSecret: %w", err) + return v, fmt.Errorf("querying old value for OldBillingEmail: %w", err) } - return oldValue.ClientSecret, nil -} - -// ResetClientSecret resets all changes to the "client_secret" field. -func (m *OauthProviderHistoryMutation) ResetClientSecret() { - m.client_secret = nil -} - -// SetRedirectURL sets the "redirect_url" field. -func (m *OauthProviderHistoryMutation) SetRedirectURL(s string) { - m.redirect_url = &s + return oldValue.BillingEmail, nil } -// RedirectURL returns the value of the "redirect_url" field in the mutation. -func (m *OauthProviderHistoryMutation) RedirectURL() (r string, exists bool) { - v := m.redirect_url - if v == nil { - return - } - return *v, true +// ClearBillingEmail clears the value of the "billing_email" field. +func (m *OrganizationSettingHistoryMutation) ClearBillingEmail() { + m.billing_email = nil + m.clearedFields[organizationsettinghistory.FieldBillingEmail] = struct{}{} } -// OldRedirectURL returns the old "redirect_url" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory 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 *OauthProviderHistoryMutation) OldRedirectURL(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldRedirectURL is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldRedirectURL requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldRedirectURL: %w", err) - } - return oldValue.RedirectURL, nil +// BillingEmailCleared returns if the "billing_email" field was cleared in this mutation. +func (m *OrganizationSettingHistoryMutation) BillingEmailCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldBillingEmail] + return ok } -// ResetRedirectURL resets all changes to the "redirect_url" field. -func (m *OauthProviderHistoryMutation) ResetRedirectURL() { - m.redirect_url = nil +// ResetBillingEmail resets all changes to the "billing_email" field. +func (m *OrganizationSettingHistoryMutation) ResetBillingEmail() { + m.billing_email = nil + delete(m.clearedFields, organizationsettinghistory.FieldBillingEmail) } -// SetScopes sets the "scopes" field. -func (m *OauthProviderHistoryMutation) SetScopes(s string) { - m.scopes = &s +// SetBillingPhone sets the "billing_phone" field. +func (m *OrganizationSettingHistoryMutation) SetBillingPhone(s string) { + m.billing_phone = &s } -// Scopes returns the value of the "scopes" field in the mutation. -func (m *OauthProviderHistoryMutation) Scopes() (r string, exists bool) { - v := m.scopes +// BillingPhone returns the value of the "billing_phone" field in the mutation. +func (m *OrganizationSettingHistoryMutation) BillingPhone() (r string, exists bool) { + v := m.billing_phone if v == nil { return } return *v, true } -// OldScopes returns the old "scopes" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldBillingPhone returns the old "billing_phone" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldScopes(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingHistoryMutation) OldBillingPhone(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldScopes is only allowed on UpdateOne operations") + return v, errors.New("OldBillingPhone is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldScopes requires an ID field in the mutation") + return v, errors.New("OldBillingPhone requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldScopes: %w", err) + return v, fmt.Errorf("querying old value for OldBillingPhone: %w", err) } - return oldValue.Scopes, nil + return oldValue.BillingPhone, nil } -// ResetScopes resets all changes to the "scopes" field. -func (m *OauthProviderHistoryMutation) ResetScopes() { - m.scopes = nil +// ClearBillingPhone clears the value of the "billing_phone" field. +func (m *OrganizationSettingHistoryMutation) ClearBillingPhone() { + m.billing_phone = nil + m.clearedFields[organizationsettinghistory.FieldBillingPhone] = struct{}{} } -// SetAuthURL sets the "auth_url" field. -func (m *OauthProviderHistoryMutation) SetAuthURL(s string) { - m.auth_url = &s +// BillingPhoneCleared returns if the "billing_phone" field was cleared in this mutation. +func (m *OrganizationSettingHistoryMutation) BillingPhoneCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldBillingPhone] + return ok } -// AuthURL returns the value of the "auth_url" field in the mutation. -func (m *OauthProviderHistoryMutation) AuthURL() (r string, exists bool) { - v := m.auth_url +// ResetBillingPhone resets all changes to the "billing_phone" field. +func (m *OrganizationSettingHistoryMutation) ResetBillingPhone() { + m.billing_phone = nil + delete(m.clearedFields, organizationsettinghistory.FieldBillingPhone) +} + +// SetBillingAddress sets the "billing_address" field. +func (m *OrganizationSettingHistoryMutation) SetBillingAddress(s string) { + m.billing_address = &s +} + +// BillingAddress returns the value of the "billing_address" field in the mutation. +func (m *OrganizationSettingHistoryMutation) BillingAddress() (r string, exists bool) { + v := m.billing_address if v == nil { return } return *v, true } -// OldAuthURL returns the old "auth_url" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldBillingAddress returns the old "billing_address" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldAuthURL(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingHistoryMutation) OldBillingAddress(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldAuthURL is only allowed on UpdateOne operations") + return v, errors.New("OldBillingAddress is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldAuthURL requires an ID field in the mutation") + return v, errors.New("OldBillingAddress requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldAuthURL: %w", err) + return v, fmt.Errorf("querying old value for OldBillingAddress: %w", err) } - return oldValue.AuthURL, nil + return oldValue.BillingAddress, nil } -// ResetAuthURL resets all changes to the "auth_url" field. -func (m *OauthProviderHistoryMutation) ResetAuthURL() { - m.auth_url = nil +// ClearBillingAddress clears the value of the "billing_address" field. +func (m *OrganizationSettingHistoryMutation) ClearBillingAddress() { + m.billing_address = nil + m.clearedFields[organizationsettinghistory.FieldBillingAddress] = struct{}{} } -// SetTokenURL sets the "token_url" field. -func (m *OauthProviderHistoryMutation) SetTokenURL(s string) { - m.token_url = &s +// BillingAddressCleared returns if the "billing_address" field was cleared in this mutation. +func (m *OrganizationSettingHistoryMutation) BillingAddressCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldBillingAddress] + return ok } -// TokenURL returns the value of the "token_url" field in the mutation. -func (m *OauthProviderHistoryMutation) TokenURL() (r string, exists bool) { - v := m.token_url +// ResetBillingAddress resets all changes to the "billing_address" field. +func (m *OrganizationSettingHistoryMutation) ResetBillingAddress() { + m.billing_address = nil + delete(m.clearedFields, organizationsettinghistory.FieldBillingAddress) +} + +// SetTaxIdentifier sets the "tax_identifier" field. +func (m *OrganizationSettingHistoryMutation) SetTaxIdentifier(s string) { + m.tax_identifier = &s +} + +// TaxIdentifier returns the value of the "tax_identifier" field in the mutation. +func (m *OrganizationSettingHistoryMutation) TaxIdentifier() (r string, exists bool) { + v := m.tax_identifier if v == nil { return } return *v, true } -// OldTokenURL returns the old "token_url" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTaxIdentifier returns the old "tax_identifier" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldTokenURL(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingHistoryMutation) OldTaxIdentifier(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTokenURL is only allowed on UpdateOne operations") + return v, errors.New("OldTaxIdentifier is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldTokenURL requires an ID field in the mutation") + return v, errors.New("OldTaxIdentifier requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldTokenURL: %w", err) + return v, fmt.Errorf("querying old value for OldTaxIdentifier: %w", err) } - return oldValue.TokenURL, nil + return oldValue.TaxIdentifier, nil } -// ResetTokenURL resets all changes to the "token_url" field. -func (m *OauthProviderHistoryMutation) ResetTokenURL() { - m.token_url = nil +// ClearTaxIdentifier clears the value of the "tax_identifier" field. +func (m *OrganizationSettingHistoryMutation) ClearTaxIdentifier() { + m.tax_identifier = nil + m.clearedFields[organizationsettinghistory.FieldTaxIdentifier] = struct{}{} } -// SetAuthStyle sets the "auth_style" field. -func (m *OauthProviderHistoryMutation) SetAuthStyle(c customtypes.Uint8) { - m.auth_style = &c - m.addauth_style = nil +// TaxIdentifierCleared returns if the "tax_identifier" field was cleared in this mutation. +func (m *OrganizationSettingHistoryMutation) TaxIdentifierCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldTaxIdentifier] + return ok } -// AuthStyle returns the value of the "auth_style" field in the mutation. -func (m *OauthProviderHistoryMutation) AuthStyle() (r customtypes.Uint8, exists bool) { - v := m.auth_style +// ResetTaxIdentifier resets all changes to the "tax_identifier" field. +func (m *OrganizationSettingHistoryMutation) ResetTaxIdentifier() { + m.tax_identifier = nil + delete(m.clearedFields, organizationsettinghistory.FieldTaxIdentifier) +} + +// SetGeoLocation sets the "geo_location" field. +func (m *OrganizationSettingHistoryMutation) SetGeoLocation(e enums.Region) { + m.geo_location = &e +} + +// GeoLocation returns the value of the "geo_location" field in the mutation. +func (m *OrganizationSettingHistoryMutation) GeoLocation() (r enums.Region, exists bool) { + v := m.geo_location if v == nil { return } return *v, true } -// OldAuthStyle returns the old "auth_style" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldGeoLocation returns the old "geo_location" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldAuthStyle(ctx context.Context) (v customtypes.Uint8, err error) { +func (m *OrganizationSettingHistoryMutation) OldGeoLocation(ctx context.Context) (v enums.Region, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldAuthStyle is only allowed on UpdateOne operations") + return v, errors.New("OldGeoLocation is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldAuthStyle requires an ID field in the mutation") + return v, errors.New("OldGeoLocation requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldAuthStyle: %w", err) + return v, fmt.Errorf("querying old value for OldGeoLocation: %w", err) } - return oldValue.AuthStyle, nil + return oldValue.GeoLocation, nil } -// AddAuthStyle adds c to the "auth_style" field. -func (m *OauthProviderHistoryMutation) AddAuthStyle(c customtypes.Uint8) { - if m.addauth_style != nil { - *m.addauth_style += c - } else { - m.addauth_style = &c - } +// ClearGeoLocation clears the value of the "geo_location" field. +func (m *OrganizationSettingHistoryMutation) ClearGeoLocation() { + m.geo_location = nil + m.clearedFields[organizationsettinghistory.FieldGeoLocation] = struct{}{} } -// AddedAuthStyle returns the value that was added to the "auth_style" field in this mutation. -func (m *OauthProviderHistoryMutation) AddedAuthStyle() (r customtypes.Uint8, exists bool) { - v := m.addauth_style - if v == nil { - return - } - return *v, true +// GeoLocationCleared returns if the "geo_location" field was cleared in this mutation. +func (m *OrganizationSettingHistoryMutation) GeoLocationCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldGeoLocation] + return ok } -// ResetAuthStyle resets all changes to the "auth_style" field. -func (m *OauthProviderHistoryMutation) ResetAuthStyle() { - m.auth_style = nil - m.addauth_style = nil +// ResetGeoLocation resets all changes to the "geo_location" field. +func (m *OrganizationSettingHistoryMutation) ResetGeoLocation() { + m.geo_location = nil + delete(m.clearedFields, organizationsettinghistory.FieldGeoLocation) } -// SetInfoURL sets the "info_url" field. -func (m *OauthProviderHistoryMutation) SetInfoURL(s string) { - m.info_url = &s +// SetOrganizationID sets the "organization_id" field. +func (m *OrganizationSettingHistoryMutation) SetOrganizationID(s string) { + m.organization_id = &s } -// InfoURL returns the value of the "info_url" field in the mutation. -func (m *OauthProviderHistoryMutation) InfoURL() (r string, exists bool) { - v := m.info_url +// OrganizationID returns the value of the "organization_id" field in the mutation. +func (m *OrganizationSettingHistoryMutation) OrganizationID() (r string, exists bool) { + v := m.organization_id if v == nil { return } return *v, true } -// OldInfoURL returns the old "info_url" field's value of the OauthProviderHistory entity. -// If the OauthProviderHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOrganizationID returns the old "organization_id" field's value of the OrganizationSettingHistory entity. +// If the OrganizationSettingHistory 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 *OauthProviderHistoryMutation) OldInfoURL(ctx context.Context) (v string, err error) { +func (m *OrganizationSettingHistoryMutation) OldOrganizationID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldInfoURL is only allowed on UpdateOne operations") + return v, errors.New("OldOrganizationID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldInfoURL requires an ID field in the mutation") + return v, errors.New("OldOrganizationID requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldInfoURL: %w", err) + return v, fmt.Errorf("querying old value for OldOrganizationID: %w", err) } - return oldValue.InfoURL, nil + return oldValue.OrganizationID, nil } -// ResetInfoURL resets all changes to the "info_url" field. -func (m *OauthProviderHistoryMutation) ResetInfoURL() { - m.info_url = nil +// ClearOrganizationID clears the value of the "organization_id" field. +func (m *OrganizationSettingHistoryMutation) ClearOrganizationID() { + m.organization_id = nil + m.clearedFields[organizationsettinghistory.FieldOrganizationID] = struct{}{} } -// Where appends a list predicates to the OauthProviderHistoryMutation builder. -func (m *OauthProviderHistoryMutation) Where(ps ...predicate.OauthProviderHistory) { +// OrganizationIDCleared returns if the "organization_id" field was cleared in this mutation. +func (m *OrganizationSettingHistoryMutation) OrganizationIDCleared() bool { + _, ok := m.clearedFields[organizationsettinghistory.FieldOrganizationID] + return ok +} + +// ResetOrganizationID resets all changes to the "organization_id" field. +func (m *OrganizationSettingHistoryMutation) ResetOrganizationID() { + m.organization_id = nil + delete(m.clearedFields, organizationsettinghistory.FieldOrganizationID) +} + +// Where appends a list predicates to the OrganizationSettingHistoryMutation builder. +func (m *OrganizationSettingHistoryMutation) Where(ps ...predicate.OrganizationSettingHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the OauthProviderHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the OrganizationSettingHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *OauthProviderHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.OauthProviderHistory, len(ps)) +func (m *OrganizationSettingHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.OrganizationSettingHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -54357,87 +83991,81 @@ func (m *OauthProviderHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *OauthProviderHistoryMutation) Op() Op { +func (m *OrganizationSettingHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *OauthProviderHistoryMutation) SetOp(op Op) { +func (m *OrganizationSettingHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (OauthProviderHistory). -func (m *OauthProviderHistoryMutation) Type() string { +// Type returns the node type of this mutation (OrganizationSettingHistory). +func (m *OrganizationSettingHistoryMutation) 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 *OauthProviderHistoryMutation) Fields() []string { - fields := make([]string, 0, 21) +func (m *OrganizationSettingHistoryMutation) Fields() []string { + fields := make([]string, 0, 19) if m.history_time != nil { - fields = append(fields, oauthproviderhistory.FieldHistoryTime) + fields = append(fields, organizationsettinghistory.FieldHistoryTime) } if m.ref != nil { - fields = append(fields, oauthproviderhistory.FieldRef) + fields = append(fields, organizationsettinghistory.FieldRef) } if m.operation != nil { - fields = append(fields, oauthproviderhistory.FieldOperation) + fields = append(fields, organizationsettinghistory.FieldOperation) } if m.created_at != nil { - fields = append(fields, oauthproviderhistory.FieldCreatedAt) + fields = append(fields, organizationsettinghistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, oauthproviderhistory.FieldUpdatedAt) + fields = append(fields, organizationsettinghistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, oauthproviderhistory.FieldCreatedBy) + fields = append(fields, organizationsettinghistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, oauthproviderhistory.FieldUpdatedBy) + fields = append(fields, organizationsettinghistory.FieldUpdatedBy) } if m.mapping_id != nil { - fields = append(fields, oauthproviderhistory.FieldMappingID) + fields = append(fields, organizationsettinghistory.FieldMappingID) } if m.tags != nil { - fields = append(fields, oauthproviderhistory.FieldTags) + fields = append(fields, organizationsettinghistory.FieldTags) } if m.deleted_at != nil { - fields = append(fields, oauthproviderhistory.FieldDeletedAt) + fields = append(fields, organizationsettinghistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, oauthproviderhistory.FieldDeletedBy) - } - if m.owner_id != nil { - fields = append(fields, oauthproviderhistory.FieldOwnerID) - } - if m.name != nil { - fields = append(fields, oauthproviderhistory.FieldName) + fields = append(fields, organizationsettinghistory.FieldDeletedBy) } - if m.client_id != nil { - fields = append(fields, oauthproviderhistory.FieldClientID) + if m.domains != nil { + fields = append(fields, organizationsettinghistory.FieldDomains) } - if m.client_secret != nil { - fields = append(fields, oauthproviderhistory.FieldClientSecret) + if m.billing_contact != nil { + fields = append(fields, organizationsettinghistory.FieldBillingContact) } - if m.redirect_url != nil { - fields = append(fields, oauthproviderhistory.FieldRedirectURL) + if m.billing_email != nil { + fields = append(fields, organizationsettinghistory.FieldBillingEmail) } - if m.scopes != nil { - fields = append(fields, oauthproviderhistory.FieldScopes) + if m.billing_phone != nil { + fields = append(fields, organizationsettinghistory.FieldBillingPhone) } - if m.auth_url != nil { - fields = append(fields, oauthproviderhistory.FieldAuthURL) + if m.billing_address != nil { + fields = append(fields, organizationsettinghistory.FieldBillingAddress) } - if m.token_url != nil { - fields = append(fields, oauthproviderhistory.FieldTokenURL) + if m.tax_identifier != nil { + fields = append(fields, organizationsettinghistory.FieldTaxIdentifier) } - if m.auth_style != nil { - fields = append(fields, oauthproviderhistory.FieldAuthStyle) + if m.geo_location != nil { + fields = append(fields, organizationsettinghistory.FieldGeoLocation) } - if m.info_url != nil { - fields = append(fields, oauthproviderhistory.FieldInfoURL) + if m.organization_id != nil { + fields = append(fields, organizationsettinghistory.FieldOrganizationID) } return fields } @@ -54445,50 +84073,46 @@ func (m *OauthProviderHistoryMutation) Fields() []string { // 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 *OauthProviderHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *OrganizationSettingHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case oauthproviderhistory.FieldHistoryTime: + case organizationsettinghistory.FieldHistoryTime: return m.HistoryTime() - case oauthproviderhistory.FieldRef: + case organizationsettinghistory.FieldRef: return m.Ref() - case oauthproviderhistory.FieldOperation: + case organizationsettinghistory.FieldOperation: return m.Operation() - case oauthproviderhistory.FieldCreatedAt: + case organizationsettinghistory.FieldCreatedAt: return m.CreatedAt() - case oauthproviderhistory.FieldUpdatedAt: + case organizationsettinghistory.FieldUpdatedAt: return m.UpdatedAt() - case oauthproviderhistory.FieldCreatedBy: + case organizationsettinghistory.FieldCreatedBy: return m.CreatedBy() - case oauthproviderhistory.FieldUpdatedBy: + case organizationsettinghistory.FieldUpdatedBy: return m.UpdatedBy() - case oauthproviderhistory.FieldMappingID: + case organizationsettinghistory.FieldMappingID: return m.MappingID() - case oauthproviderhistory.FieldTags: + case organizationsettinghistory.FieldTags: return m.Tags() - case oauthproviderhistory.FieldDeletedAt: + case organizationsettinghistory.FieldDeletedAt: return m.DeletedAt() - case oauthproviderhistory.FieldDeletedBy: + case organizationsettinghistory.FieldDeletedBy: return m.DeletedBy() - case oauthproviderhistory.FieldOwnerID: - return m.OwnerID() - case oauthproviderhistory.FieldName: - return m.Name() - case oauthproviderhistory.FieldClientID: - return m.ClientID() - case oauthproviderhistory.FieldClientSecret: - return m.ClientSecret() - case oauthproviderhistory.FieldRedirectURL: - return m.RedirectURL() - case oauthproviderhistory.FieldScopes: - return m.Scopes() - case oauthproviderhistory.FieldAuthURL: - return m.AuthURL() - case oauthproviderhistory.FieldTokenURL: - return m.TokenURL() - case oauthproviderhistory.FieldAuthStyle: - return m.AuthStyle() - case oauthproviderhistory.FieldInfoURL: - return m.InfoURL() + case organizationsettinghistory.FieldDomains: + return m.Domains() + case organizationsettinghistory.FieldBillingContact: + return m.BillingContact() + case organizationsettinghistory.FieldBillingEmail: + return m.BillingEmail() + case organizationsettinghistory.FieldBillingPhone: + return m.BillingPhone() + case organizationsettinghistory.FieldBillingAddress: + return m.BillingAddress() + case organizationsettinghistory.FieldTaxIdentifier: + return m.TaxIdentifier() + case organizationsettinghistory.FieldGeoLocation: + return m.GeoLocation() + case organizationsettinghistory.FieldOrganizationID: + return m.OrganizationID() } return nil, false } @@ -54496,489 +84120,481 @@ func (m *OauthProviderHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *OauthProviderHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *OrganizationSettingHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case oauthproviderhistory.FieldHistoryTime: + case organizationsettinghistory.FieldHistoryTime: return m.OldHistoryTime(ctx) - case oauthproviderhistory.FieldRef: + case organizationsettinghistory.FieldRef: return m.OldRef(ctx) - case oauthproviderhistory.FieldOperation: + case organizationsettinghistory.FieldOperation: return m.OldOperation(ctx) - case oauthproviderhistory.FieldCreatedAt: + case organizationsettinghistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case oauthproviderhistory.FieldUpdatedAt: + case organizationsettinghistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case oauthproviderhistory.FieldCreatedBy: + case organizationsettinghistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case oauthproviderhistory.FieldUpdatedBy: + case organizationsettinghistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case oauthproviderhistory.FieldMappingID: + case organizationsettinghistory.FieldMappingID: return m.OldMappingID(ctx) - case oauthproviderhistory.FieldTags: + case organizationsettinghistory.FieldTags: return m.OldTags(ctx) - case oauthproviderhistory.FieldDeletedAt: + case organizationsettinghistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case oauthproviderhistory.FieldDeletedBy: + case organizationsettinghistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case oauthproviderhistory.FieldOwnerID: - return m.OldOwnerID(ctx) - case oauthproviderhistory.FieldName: - return m.OldName(ctx) - case oauthproviderhistory.FieldClientID: - return m.OldClientID(ctx) - case oauthproviderhistory.FieldClientSecret: - return m.OldClientSecret(ctx) - case oauthproviderhistory.FieldRedirectURL: - return m.OldRedirectURL(ctx) - case oauthproviderhistory.FieldScopes: - return m.OldScopes(ctx) - case oauthproviderhistory.FieldAuthURL: - return m.OldAuthURL(ctx) - case oauthproviderhistory.FieldTokenURL: - return m.OldTokenURL(ctx) - case oauthproviderhistory.FieldAuthStyle: - return m.OldAuthStyle(ctx) - case oauthproviderhistory.FieldInfoURL: - return m.OldInfoURL(ctx) + case organizationsettinghistory.FieldDomains: + return m.OldDomains(ctx) + case organizationsettinghistory.FieldBillingContact: + return m.OldBillingContact(ctx) + case organizationsettinghistory.FieldBillingEmail: + return m.OldBillingEmail(ctx) + case organizationsettinghistory.FieldBillingPhone: + return m.OldBillingPhone(ctx) + case organizationsettinghistory.FieldBillingAddress: + return m.OldBillingAddress(ctx) + case organizationsettinghistory.FieldTaxIdentifier: + return m.OldTaxIdentifier(ctx) + case organizationsettinghistory.FieldGeoLocation: + return m.OldGeoLocation(ctx) + case organizationsettinghistory.FieldOrganizationID: + return m.OldOrganizationID(ctx) } - return nil, fmt.Errorf("unknown OauthProviderHistory field %s", name) + return nil, fmt.Errorf("unknown OrganizationSettingHistory 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 *OauthProviderHistoryMutation) SetField(name string, value ent.Value) error { +func (m *OrganizationSettingHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case oauthproviderhistory.FieldHistoryTime: + case organizationsettinghistory.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 oauthproviderhistory.FieldRef: + case organizationsettinghistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetRef(v) return nil - case oauthproviderhistory.FieldOperation: + case organizationsettinghistory.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 oauthproviderhistory.FieldCreatedAt: + case organizationsettinghistory.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 oauthproviderhistory.FieldUpdatedAt: + case organizationsettinghistory.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 oauthproviderhistory.FieldCreatedBy: + case organizationsettinghistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case oauthproviderhistory.FieldUpdatedBy: + case organizationsettinghistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case oauthproviderhistory.FieldMappingID: + case organizationsettinghistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case oauthproviderhistory.FieldTags: + case organizationsettinghistory.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case oauthproviderhistory.FieldDeletedAt: + case organizationsettinghistory.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 oauthproviderhistory.FieldDeletedBy: + case organizationsettinghistory.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case oauthproviderhistory.FieldOwnerID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetOwnerID(v) - return nil - case oauthproviderhistory.FieldName: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetName(v) - return nil - case oauthproviderhistory.FieldClientID: - v, ok := value.(string) + case organizationsettinghistory.FieldDomains: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetClientID(v) + m.SetDomains(v) return nil - case oauthproviderhistory.FieldClientSecret: + case organizationsettinghistory.FieldBillingContact: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetClientSecret(v) + m.SetBillingContact(v) return nil - case oauthproviderhistory.FieldRedirectURL: + case organizationsettinghistory.FieldBillingEmail: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetRedirectURL(v) + m.SetBillingEmail(v) return nil - case oauthproviderhistory.FieldScopes: + case organizationsettinghistory.FieldBillingPhone: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetScopes(v) + m.SetBillingPhone(v) return nil - case oauthproviderhistory.FieldAuthURL: + case organizationsettinghistory.FieldBillingAddress: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetAuthURL(v) + m.SetBillingAddress(v) return nil - case oauthproviderhistory.FieldTokenURL: + case organizationsettinghistory.FieldTaxIdentifier: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTokenURL(v) + m.SetTaxIdentifier(v) return nil - case oauthproviderhistory.FieldAuthStyle: - v, ok := value.(customtypes.Uint8) + case organizationsettinghistory.FieldGeoLocation: + v, ok := value.(enums.Region) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetAuthStyle(v) + m.SetGeoLocation(v) return nil - case oauthproviderhistory.FieldInfoURL: + case organizationsettinghistory.FieldOrganizationID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetInfoURL(v) + m.SetOrganizationID(v) return nil } - return fmt.Errorf("unknown OauthProviderHistory field %s", name) + return fmt.Errorf("unknown OrganizationSettingHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *OauthProviderHistoryMutation) AddedFields() []string { - var fields []string - if m.addauth_style != nil { - fields = append(fields, oauthproviderhistory.FieldAuthStyle) - } - return fields +func (m *OrganizationSettingHistoryMutation) 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 *OauthProviderHistoryMutation) AddedField(name string) (ent.Value, bool) { - switch name { - case oauthproviderhistory.FieldAuthStyle: - return m.AddedAuthStyle() - } +func (m *OrganizationSettingHistoryMutation) 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 *OauthProviderHistoryMutation) AddField(name string, value ent.Value) error { +func (m *OrganizationSettingHistoryMutation) AddField(name string, value ent.Value) error { switch name { - case oauthproviderhistory.FieldAuthStyle: - v, ok := value.(customtypes.Uint8) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.AddAuthStyle(v) - return nil } - return fmt.Errorf("unknown OauthProviderHistory numeric field %s", name) + return fmt.Errorf("unknown OrganizationSettingHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *OauthProviderHistoryMutation) ClearedFields() []string { +func (m *OrganizationSettingHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(oauthproviderhistory.FieldRef) { - fields = append(fields, oauthproviderhistory.FieldRef) + if m.FieldCleared(organizationsettinghistory.FieldRef) { + fields = append(fields, organizationsettinghistory.FieldRef) } - if m.FieldCleared(oauthproviderhistory.FieldCreatedAt) { - fields = append(fields, oauthproviderhistory.FieldCreatedAt) + if m.FieldCleared(organizationsettinghistory.FieldCreatedAt) { + fields = append(fields, organizationsettinghistory.FieldCreatedAt) } - if m.FieldCleared(oauthproviderhistory.FieldUpdatedAt) { - fields = append(fields, oauthproviderhistory.FieldUpdatedAt) + if m.FieldCleared(organizationsettinghistory.FieldUpdatedAt) { + fields = append(fields, organizationsettinghistory.FieldUpdatedAt) } - if m.FieldCleared(oauthproviderhistory.FieldCreatedBy) { - fields = append(fields, oauthproviderhistory.FieldCreatedBy) + if m.FieldCleared(organizationsettinghistory.FieldCreatedBy) { + fields = append(fields, organizationsettinghistory.FieldCreatedBy) } - if m.FieldCleared(oauthproviderhistory.FieldUpdatedBy) { - fields = append(fields, oauthproviderhistory.FieldUpdatedBy) + if m.FieldCleared(organizationsettinghistory.FieldUpdatedBy) { + fields = append(fields, organizationsettinghistory.FieldUpdatedBy) } - if m.FieldCleared(oauthproviderhistory.FieldTags) { - fields = append(fields, oauthproviderhistory.FieldTags) + if m.FieldCleared(organizationsettinghistory.FieldTags) { + fields = append(fields, organizationsettinghistory.FieldTags) } - if m.FieldCleared(oauthproviderhistory.FieldDeletedAt) { - fields = append(fields, oauthproviderhistory.FieldDeletedAt) + if m.FieldCleared(organizationsettinghistory.FieldDeletedAt) { + fields = append(fields, organizationsettinghistory.FieldDeletedAt) } - if m.FieldCleared(oauthproviderhistory.FieldDeletedBy) { - fields = append(fields, oauthproviderhistory.FieldDeletedBy) + if m.FieldCleared(organizationsettinghistory.FieldDeletedBy) { + fields = append(fields, organizationsettinghistory.FieldDeletedBy) } - if m.FieldCleared(oauthproviderhistory.FieldOwnerID) { - fields = append(fields, oauthproviderhistory.FieldOwnerID) + if m.FieldCleared(organizationsettinghistory.FieldDomains) { + fields = append(fields, organizationsettinghistory.FieldDomains) + } + if m.FieldCleared(organizationsettinghistory.FieldBillingContact) { + fields = append(fields, organizationsettinghistory.FieldBillingContact) + } + if m.FieldCleared(organizationsettinghistory.FieldBillingEmail) { + fields = append(fields, organizationsettinghistory.FieldBillingEmail) + } + if m.FieldCleared(organizationsettinghistory.FieldBillingPhone) { + fields = append(fields, organizationsettinghistory.FieldBillingPhone) + } + if m.FieldCleared(organizationsettinghistory.FieldBillingAddress) { + fields = append(fields, organizationsettinghistory.FieldBillingAddress) + } + if m.FieldCleared(organizationsettinghistory.FieldTaxIdentifier) { + fields = append(fields, organizationsettinghistory.FieldTaxIdentifier) + } + if m.FieldCleared(organizationsettinghistory.FieldGeoLocation) { + fields = append(fields, organizationsettinghistory.FieldGeoLocation) + } + if m.FieldCleared(organizationsettinghistory.FieldOrganizationID) { + fields = append(fields, organizationsettinghistory.FieldOrganizationID) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *OauthProviderHistoryMutation) FieldCleared(name string) bool { +func (m *OrganizationSettingHistoryMutation) 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 *OauthProviderHistoryMutation) ClearField(name string) error { +func (m *OrganizationSettingHistoryMutation) ClearField(name string) error { switch name { - case oauthproviderhistory.FieldRef: + case organizationsettinghistory.FieldRef: m.ClearRef() return nil - case oauthproviderhistory.FieldCreatedAt: + case organizationsettinghistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case oauthproviderhistory.FieldUpdatedAt: + case organizationsettinghistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case oauthproviderhistory.FieldCreatedBy: + case organizationsettinghistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case oauthproviderhistory.FieldUpdatedBy: + case organizationsettinghistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case oauthproviderhistory.FieldTags: + case organizationsettinghistory.FieldTags: m.ClearTags() return nil - case oauthproviderhistory.FieldDeletedAt: + case organizationsettinghistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case oauthproviderhistory.FieldDeletedBy: + case organizationsettinghistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case oauthproviderhistory.FieldOwnerID: - m.ClearOwnerID() + case organizationsettinghistory.FieldDomains: + m.ClearDomains() + return nil + case organizationsettinghistory.FieldBillingContact: + m.ClearBillingContact() + return nil + case organizationsettinghistory.FieldBillingEmail: + m.ClearBillingEmail() + return nil + case organizationsettinghistory.FieldBillingPhone: + m.ClearBillingPhone() + return nil + case organizationsettinghistory.FieldBillingAddress: + m.ClearBillingAddress() + return nil + case organizationsettinghistory.FieldTaxIdentifier: + m.ClearTaxIdentifier() + return nil + case organizationsettinghistory.FieldGeoLocation: + m.ClearGeoLocation() + return nil + case organizationsettinghistory.FieldOrganizationID: + m.ClearOrganizationID() return nil } - return fmt.Errorf("unknown OauthProviderHistory nullable field %s", name) + return fmt.Errorf("unknown OrganizationSettingHistory 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 *OauthProviderHistoryMutation) ResetField(name string) error { +func (m *OrganizationSettingHistoryMutation) ResetField(name string) error { switch name { - case oauthproviderhistory.FieldHistoryTime: + case organizationsettinghistory.FieldHistoryTime: m.ResetHistoryTime() return nil - case oauthproviderhistory.FieldRef: + case organizationsettinghistory.FieldRef: m.ResetRef() return nil - case oauthproviderhistory.FieldOperation: + case organizationsettinghistory.FieldOperation: m.ResetOperation() return nil - case oauthproviderhistory.FieldCreatedAt: + case organizationsettinghistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case oauthproviderhistory.FieldUpdatedAt: + case organizationsettinghistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case oauthproviderhistory.FieldCreatedBy: + case organizationsettinghistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case oauthproviderhistory.FieldUpdatedBy: + case organizationsettinghistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case oauthproviderhistory.FieldMappingID: + case organizationsettinghistory.FieldMappingID: m.ResetMappingID() return nil - case oauthproviderhistory.FieldTags: + case organizationsettinghistory.FieldTags: m.ResetTags() return nil - case oauthproviderhistory.FieldDeletedAt: + case organizationsettinghistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case oauthproviderhistory.FieldDeletedBy: + case organizationsettinghistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case oauthproviderhistory.FieldOwnerID: - m.ResetOwnerID() - return nil - case oauthproviderhistory.FieldName: - m.ResetName() - return nil - case oauthproviderhistory.FieldClientID: - m.ResetClientID() + case organizationsettinghistory.FieldDomains: + m.ResetDomains() return nil - case oauthproviderhistory.FieldClientSecret: - m.ResetClientSecret() + case organizationsettinghistory.FieldBillingContact: + m.ResetBillingContact() return nil - case oauthproviderhistory.FieldRedirectURL: - m.ResetRedirectURL() + case organizationsettinghistory.FieldBillingEmail: + m.ResetBillingEmail() return nil - case oauthproviderhistory.FieldScopes: - m.ResetScopes() + case organizationsettinghistory.FieldBillingPhone: + m.ResetBillingPhone() return nil - case oauthproviderhistory.FieldAuthURL: - m.ResetAuthURL() + case organizationsettinghistory.FieldBillingAddress: + m.ResetBillingAddress() return nil - case oauthproviderhistory.FieldTokenURL: - m.ResetTokenURL() + case organizationsettinghistory.FieldTaxIdentifier: + m.ResetTaxIdentifier() return nil - case oauthproviderhistory.FieldAuthStyle: - m.ResetAuthStyle() + case organizationsettinghistory.FieldGeoLocation: + m.ResetGeoLocation() return nil - case oauthproviderhistory.FieldInfoURL: - m.ResetInfoURL() + case organizationsettinghistory.FieldOrganizationID: + m.ResetOrganizationID() return nil } - return fmt.Errorf("unknown OauthProviderHistory field %s", name) + return fmt.Errorf("unknown OrganizationSettingHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *OauthProviderHistoryMutation) AddedEdges() []string { +func (m *OrganizationSettingHistoryMutation) 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 *OauthProviderHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *OrganizationSettingHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *OauthProviderHistoryMutation) RemovedEdges() []string { +func (m *OrganizationSettingHistoryMutation) 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 *OauthProviderHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *OrganizationSettingHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *OauthProviderHistoryMutation) ClearedEdges() []string { +func (m *OrganizationSettingHistoryMutation) 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 *OauthProviderHistoryMutation) EdgeCleared(name string) bool { +func (m *OrganizationSettingHistoryMutation) 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 *OauthProviderHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown OauthProviderHistory unique edge %s", name) +func (m *OrganizationSettingHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown OrganizationSettingHistory 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 *OauthProviderHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown OauthProviderHistory edge %s", name) +func (m *OrganizationSettingHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown OrganizationSettingHistory edge %s", name) } -// OhAuthTooTokenMutation represents an operation that mutates the OhAuthTooToken nodes in the graph. -type OhAuthTooTokenMutation struct { +// PasswordResetTokenMutation represents an operation that mutates the PasswordResetToken nodes in the graph. +type PasswordResetTokenMutation struct { config - op Op - typ string - id *string - mapping_id *string - tags *[]string - appendtags []string - client_id *string - scopes *[]string - appendscopes []string - nonce *string - claims_user_id *string - claims_username *string - claims_email *string - claims_email_verified *bool - claims_groups *[]string - appendclaims_groups []string - claims_preferred_username *string - connector_id *string - connector_data *[]string - appendconnector_data []string - last_used *time.Time - clearedFields map[string]struct{} - integration map[string]struct{} - removedintegration map[string]struct{} - clearedintegration bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - done bool - oldValue func(context.Context) (*OhAuthTooToken, error) - predicates []predicate.OhAuthTooToken + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + mapping_id *string + deleted_at *time.Time + deleted_by *string + token *string + ttl *time.Time + email *string + secret *[]byte + clearedFields map[string]struct{} + owner *string + clearedowner bool + done bool + oldValue func(context.Context) (*PasswordResetToken, error) + predicates []predicate.PasswordResetToken } -var _ ent.Mutation = (*OhAuthTooTokenMutation)(nil) +var _ ent.Mutation = (*PasswordResetTokenMutation)(nil) -// ohauthtootokenOption allows management of the mutation configuration using functional options. -type ohauthtootokenOption func(*OhAuthTooTokenMutation) +// passwordresettokenOption allows management of the mutation configuration using functional options. +type passwordresettokenOption func(*PasswordResetTokenMutation) -// newOhAuthTooTokenMutation creates new mutation for the OhAuthTooToken entity. -func newOhAuthTooTokenMutation(c config, op Op, opts ...ohauthtootokenOption) *OhAuthTooTokenMutation { - m := &OhAuthTooTokenMutation{ +// newPasswordResetTokenMutation creates new mutation for the PasswordResetToken entity. +func newPasswordResetTokenMutation(c config, op Op, opts ...passwordresettokenOption) *PasswordResetTokenMutation { + m := &PasswordResetTokenMutation{ config: c, op: op, - typ: TypeOhAuthTooToken, + typ: TypePasswordResetToken, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -54987,20 +84603,20 @@ func newOhAuthTooTokenMutation(c config, op Op, opts ...ohauthtootokenOption) *O return m } -// withOhAuthTooTokenID sets the ID field of the mutation. -func withOhAuthTooTokenID(id string) ohauthtootokenOption { - return func(m *OhAuthTooTokenMutation) { +// withPasswordResetTokenID sets the ID field of the mutation. +func withPasswordResetTokenID(id string) passwordresettokenOption { + return func(m *PasswordResetTokenMutation) { var ( err error once sync.Once - value *OhAuthTooToken + value *PasswordResetToken ) - m.oldValue = func(ctx context.Context) (*OhAuthTooToken, error) { + m.oldValue = func(ctx context.Context) (*PasswordResetToken, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().OhAuthTooToken.Get(ctx, id) + value, err = m.Client().PasswordResetToken.Get(ctx, id) } }) return value, err @@ -55009,10 +84625,10 @@ func withOhAuthTooTokenID(id string) ohauthtootokenOption { } } -// withOhAuthTooToken sets the old OhAuthTooToken of the mutation. -func withOhAuthTooToken(node *OhAuthTooToken) ohauthtootokenOption { - return func(m *OhAuthTooTokenMutation) { - m.oldValue = func(context.Context) (*OhAuthTooToken, error) { +// withPasswordResetToken sets the old PasswordResetToken of the mutation. +func withPasswordResetToken(node *PasswordResetToken) passwordresettokenOption { + return func(m *PasswordResetTokenMutation) { + m.oldValue = func(context.Context) (*PasswordResetToken, error) { return node, nil } m.id = &node.ID @@ -55021,7 +84637,7 @@ func withOhAuthTooToken(node *OhAuthTooToken) ohauthtootokenOption { // 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 OhAuthTooTokenMutation) Client() *Client { +func (m PasswordResetTokenMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -55029,7 +84645,7 @@ func (m OhAuthTooTokenMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m OhAuthTooTokenMutation) Tx() (*Tx, error) { +func (m PasswordResetTokenMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -55039,14 +84655,14 @@ func (m OhAuthTooTokenMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of OhAuthTooToken entities. -func (m *OhAuthTooTokenMutation) SetID(id string) { +// operation is only accepted on creation of PasswordResetToken entities. +func (m *PasswordResetTokenMutation) 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 *OhAuthTooTokenMutation) ID() (id string, exists bool) { +func (m *PasswordResetTokenMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -55057,7 +84673,7 @@ func (m *OhAuthTooTokenMutation) ID() (id string, exists bool) { // 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 *OhAuthTooTokenMutation) IDs(ctx context.Context) ([]string, error) { +func (m *PasswordResetTokenMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -55066,749 +84682,558 @@ func (m *OhAuthTooTokenMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().OhAuthTooToken.Query().Where(m.predicates...).IDs(ctx) + return m.Client().PasswordResetToken.Query().Where(m.predicates...).IDs(ctx) default: return nil, fmt.Errorf("IDs is not allowed on %s operations", m.op) } } -// SetMappingID sets the "mapping_id" field. -func (m *OhAuthTooTokenMutation) SetMappingID(s string) { - m.mapping_id = &s -} - -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *OhAuthTooTokenMutation) MappingID() (r string, exists bool) { - v := m.mapping_id - if v == nil { - return - } - return *v, true -} - -// OldMappingID returns the old "mapping_id" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldMappingID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) - } - return oldValue.MappingID, nil -} - -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *OhAuthTooTokenMutation) ResetMappingID() { - m.mapping_id = nil -} - -// SetTags sets the "tags" field. -func (m *OhAuthTooTokenMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil -} - -// Tags returns the value of the "tags" field in the mutation. -func (m *OhAuthTooTokenMutation) 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 OhAuthTooToken entity. -// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) 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 *OhAuthTooTokenMutation) 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 *OhAuthTooTokenMutation) 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 *OhAuthTooTokenMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[ohauthtootoken.FieldTags] = struct{}{} -} - -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *OhAuthTooTokenMutation) TagsCleared() bool { - _, ok := m.clearedFields[ohauthtootoken.FieldTags] - return ok -} - -// ResetTags resets all changes to the "tags" field. -func (m *OhAuthTooTokenMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, ohauthtootoken.FieldTags) -} - -// SetClientID sets the "client_id" field. -func (m *OhAuthTooTokenMutation) SetClientID(s string) { - m.client_id = &s -} - -// ClientID returns the value of the "client_id" field in the mutation. -func (m *OhAuthTooTokenMutation) ClientID() (r string, exists bool) { - v := m.client_id - if v == nil { - return - } - return *v, true -} - -// OldClientID returns the old "client_id" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken 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 *OhAuthTooTokenMutation) OldClientID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldClientID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldClientID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldClientID: %w", err) - } - return oldValue.ClientID, nil -} - -// ResetClientID resets all changes to the "client_id" field. -func (m *OhAuthTooTokenMutation) ResetClientID() { - m.client_id = nil -} - -// SetScopes sets the "scopes" field. -func (m *OhAuthTooTokenMutation) SetScopes(s []string) { - m.scopes = &s - m.appendscopes = nil +// SetCreatedAt sets the "created_at" field. +func (m *PasswordResetTokenMutation) SetCreatedAt(t time.Time) { + m.created_at = &t } -// Scopes returns the value of the "scopes" field in the mutation. -func (m *OhAuthTooTokenMutation) Scopes() (r []string, exists bool) { - v := m.scopes +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *PasswordResetTokenMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at if v == nil { return } return *v, true } -// OldScopes returns the old "scopes" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the PasswordResetToken entity. +// If the PasswordResetToken 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 *OhAuthTooTokenMutation) OldScopes(ctx context.Context) (v []string, err error) { +func (m *PasswordResetTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldScopes is only allowed on UpdateOne operations") + return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldScopes requires an ID field in the mutation") + 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 OldScopes: %w", err) - } - return oldValue.Scopes, nil -} - -// AppendScopes adds s to the "scopes" field. -func (m *OhAuthTooTokenMutation) AppendScopes(s []string) { - m.appendscopes = append(m.appendscopes, s...) -} - -// AppendedScopes returns the list of values that were appended to the "scopes" field in this mutation. -func (m *OhAuthTooTokenMutation) AppendedScopes() ([]string, bool) { - if len(m.appendscopes) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldCreatedAt: %w", err) } - return m.appendscopes, true + return oldValue.CreatedAt, nil } -// ClearScopes clears the value of the "scopes" field. -func (m *OhAuthTooTokenMutation) ClearScopes() { - m.scopes = nil - m.appendscopes = nil - m.clearedFields[ohauthtootoken.FieldScopes] = struct{}{} +// ClearCreatedAt clears the value of the "created_at" field. +func (m *PasswordResetTokenMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[passwordresettoken.FieldCreatedAt] = struct{}{} } -// ScopesCleared returns if the "scopes" field was cleared in this mutation. -func (m *OhAuthTooTokenMutation) ScopesCleared() bool { - _, ok := m.clearedFields[ohauthtootoken.FieldScopes] +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *PasswordResetTokenMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[passwordresettoken.FieldCreatedAt] return ok } -// ResetScopes resets all changes to the "scopes" field. -func (m *OhAuthTooTokenMutation) ResetScopes() { - m.scopes = nil - m.appendscopes = nil - delete(m.clearedFields, ohauthtootoken.FieldScopes) +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *PasswordResetTokenMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, passwordresettoken.FieldCreatedAt) } -// SetNonce sets the "nonce" field. -func (m *OhAuthTooTokenMutation) SetNonce(s string) { - m.nonce = &s +// SetUpdatedAt sets the "updated_at" field. +func (m *PasswordResetTokenMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t } -// Nonce returns the value of the "nonce" field in the mutation. -func (m *OhAuthTooTokenMutation) Nonce() (r string, exists bool) { - v := m.nonce +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *PasswordResetTokenMutation) UpdatedAt() (r time.Time, exists bool) { + v := m.updated_at if v == nil { return } return *v, true } -// OldNonce returns the old "nonce" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the PasswordResetToken entity. +// If the PasswordResetToken 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 *OhAuthTooTokenMutation) OldNonce(ctx context.Context) (v string, err error) { +func (m *PasswordResetTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldNonce is only allowed on UpdateOne operations") + return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldNonce requires an ID field in the mutation") + 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 OldNonce: %w", err) + return v, fmt.Errorf("querying old value for OldUpdatedAt: %w", err) } - return oldValue.Nonce, nil + return oldValue.UpdatedAt, nil } -// ResetNonce resets all changes to the "nonce" field. -func (m *OhAuthTooTokenMutation) ResetNonce() { - m.nonce = nil +// ClearUpdatedAt clears the value of the "updated_at" field. +func (m *PasswordResetTokenMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[passwordresettoken.FieldUpdatedAt] = struct{}{} } -// SetClaimsUserID sets the "claims_user_id" field. -func (m *OhAuthTooTokenMutation) SetClaimsUserID(s string) { - m.claims_user_id = &s +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *PasswordResetTokenMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[passwordresettoken.FieldUpdatedAt] + return ok } -// ClaimsUserID returns the value of the "claims_user_id" field in the mutation. -func (m *OhAuthTooTokenMutation) ClaimsUserID() (r string, exists bool) { - v := m.claims_user_id +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *PasswordResetTokenMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, passwordresettoken.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *PasswordResetTokenMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *PasswordResetTokenMutation) CreatedBy() (r string, exists bool) { + v := m.created_by if v == nil { return } return *v, true } -// OldClaimsUserID returns the old "claims_user_id" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the PasswordResetToken entity. +// If the PasswordResetToken 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 *OhAuthTooTokenMutation) OldClaimsUserID(ctx context.Context) (v string, err error) { +func (m *PasswordResetTokenMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldClaimsUserID is only allowed on UpdateOne operations") + return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldClaimsUserID requires an ID field in the mutation") + 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 OldClaimsUserID: %w", err) + return v, fmt.Errorf("querying old value for OldCreatedBy: %w", err) } - return oldValue.ClaimsUserID, nil + return oldValue.CreatedBy, nil } -// ResetClaimsUserID resets all changes to the "claims_user_id" field. -func (m *OhAuthTooTokenMutation) ResetClaimsUserID() { - m.claims_user_id = nil +// ClearCreatedBy clears the value of the "created_by" field. +func (m *PasswordResetTokenMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[passwordresettoken.FieldCreatedBy] = struct{}{} } -// SetClaimsUsername sets the "claims_username" field. -func (m *OhAuthTooTokenMutation) SetClaimsUsername(s string) { - m.claims_username = &s +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *PasswordResetTokenMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[passwordresettoken.FieldCreatedBy] + return ok } -// ClaimsUsername returns the value of the "claims_username" field in the mutation. -func (m *OhAuthTooTokenMutation) ClaimsUsername() (r string, exists bool) { - v := m.claims_username +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *PasswordResetTokenMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, passwordresettoken.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *PasswordResetTokenMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *PasswordResetTokenMutation) UpdatedBy() (r string, exists bool) { + v := m.updated_by if v == nil { return } return *v, true } -// OldClaimsUsername returns the old "claims_username" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the PasswordResetToken entity. +// If the PasswordResetToken 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 *OhAuthTooTokenMutation) OldClaimsUsername(ctx context.Context) (v string, err error) { +func (m *PasswordResetTokenMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldClaimsUsername is only allowed on UpdateOne operations") + return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldClaimsUsername requires an ID field in the mutation") + 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 OldClaimsUsername: %w", err) + return v, fmt.Errorf("querying old value for OldUpdatedBy: %w", err) } - return oldValue.ClaimsUsername, nil + return oldValue.UpdatedBy, nil } -// ResetClaimsUsername resets all changes to the "claims_username" field. -func (m *OhAuthTooTokenMutation) ResetClaimsUsername() { - m.claims_username = nil +// ClearUpdatedBy clears the value of the "updated_by" field. +func (m *PasswordResetTokenMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[passwordresettoken.FieldUpdatedBy] = struct{}{} } -// SetClaimsEmail sets the "claims_email" field. -func (m *OhAuthTooTokenMutation) SetClaimsEmail(s string) { - m.claims_email = &s +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *PasswordResetTokenMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[passwordresettoken.FieldUpdatedBy] + return ok } -// ClaimsEmail returns the value of the "claims_email" field in the mutation. -func (m *OhAuthTooTokenMutation) ClaimsEmail() (r string, exists bool) { - v := m.claims_email +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *PasswordResetTokenMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, passwordresettoken.FieldUpdatedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *PasswordResetTokenMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *PasswordResetTokenMutation) MappingID() (r string, exists bool) { + v := m.mapping_id if v == nil { return } return *v, true } -// OldClaimsEmail returns the old "claims_email" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the PasswordResetToken entity. +// If the PasswordResetToken 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 *OhAuthTooTokenMutation) OldClaimsEmail(ctx context.Context) (v string, err error) { +func (m *PasswordResetTokenMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldClaimsEmail is only allowed on UpdateOne operations") + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldClaimsEmail requires an ID field in the mutation") + return v, errors.New("OldMappingID requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldClaimsEmail: %w", err) + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) } - return oldValue.ClaimsEmail, nil + return oldValue.MappingID, nil } -// ResetClaimsEmail resets all changes to the "claims_email" field. -func (m *OhAuthTooTokenMutation) ResetClaimsEmail() { - m.claims_email = nil +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *PasswordResetTokenMutation) ResetMappingID() { + m.mapping_id = nil } -// SetClaimsEmailVerified sets the "claims_email_verified" field. -func (m *OhAuthTooTokenMutation) SetClaimsEmailVerified(b bool) { - m.claims_email_verified = &b +// SetDeletedAt sets the "deleted_at" field. +func (m *PasswordResetTokenMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t } -// ClaimsEmailVerified returns the value of the "claims_email_verified" field in the mutation. -func (m *OhAuthTooTokenMutation) ClaimsEmailVerified() (r bool, exists bool) { - v := m.claims_email_verified +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *PasswordResetTokenMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at if v == nil { return } return *v, true } -// OldClaimsEmailVerified returns the old "claims_email_verified" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the PasswordResetToken entity. +// If the PasswordResetToken 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 *OhAuthTooTokenMutation) OldClaimsEmailVerified(ctx context.Context) (v bool, err error) { +func (m *PasswordResetTokenMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldClaimsEmailVerified is only allowed on UpdateOne operations") + return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldClaimsEmailVerified requires an ID field in the mutation") + 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 OldClaimsEmailVerified: %w", err) + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) } - return oldValue.ClaimsEmailVerified, nil + return oldValue.DeletedAt, nil } -// ResetClaimsEmailVerified resets all changes to the "claims_email_verified" field. -func (m *OhAuthTooTokenMutation) ResetClaimsEmailVerified() { - m.claims_email_verified = nil +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *PasswordResetTokenMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[passwordresettoken.FieldDeletedAt] = struct{}{} } -// SetClaimsGroups sets the "claims_groups" field. -func (m *OhAuthTooTokenMutation) SetClaimsGroups(s []string) { - m.claims_groups = &s - m.appendclaims_groups = nil +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *PasswordResetTokenMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[passwordresettoken.FieldDeletedAt] + return ok } -// ClaimsGroups returns the value of the "claims_groups" field in the mutation. -func (m *OhAuthTooTokenMutation) ClaimsGroups() (r []string, exists bool) { - v := m.claims_groups +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *PasswordResetTokenMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, passwordresettoken.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *PasswordResetTokenMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *PasswordResetTokenMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by if v == nil { return } return *v, true } -// OldClaimsGroups returns the old "claims_groups" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the PasswordResetToken entity. +// If the PasswordResetToken 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 *OhAuthTooTokenMutation) OldClaimsGroups(ctx context.Context) (v []string, err error) { +func (m *PasswordResetTokenMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldClaimsGroups is only allowed on UpdateOne operations") + return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldClaimsGroups requires an ID field in the mutation") + 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 OldClaimsGroups: %w", err) - } - return oldValue.ClaimsGroups, nil -} - -// AppendClaimsGroups adds s to the "claims_groups" field. -func (m *OhAuthTooTokenMutation) AppendClaimsGroups(s []string) { - m.appendclaims_groups = append(m.appendclaims_groups, s...) -} - -// AppendedClaimsGroups returns the list of values that were appended to the "claims_groups" field in this mutation. -func (m *OhAuthTooTokenMutation) AppendedClaimsGroups() ([]string, bool) { - if len(m.appendclaims_groups) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldDeletedBy: %w", err) } - return m.appendclaims_groups, true + return oldValue.DeletedBy, nil } -// ClearClaimsGroups clears the value of the "claims_groups" field. -func (m *OhAuthTooTokenMutation) ClearClaimsGroups() { - m.claims_groups = nil - m.appendclaims_groups = nil - m.clearedFields[ohauthtootoken.FieldClaimsGroups] = struct{}{} +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *PasswordResetTokenMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[passwordresettoken.FieldDeletedBy] = struct{}{} } -// ClaimsGroupsCleared returns if the "claims_groups" field was cleared in this mutation. -func (m *OhAuthTooTokenMutation) ClaimsGroupsCleared() bool { - _, ok := m.clearedFields[ohauthtootoken.FieldClaimsGroups] +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *PasswordResetTokenMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[passwordresettoken.FieldDeletedBy] return ok } -// ResetClaimsGroups resets all changes to the "claims_groups" field. -func (m *OhAuthTooTokenMutation) ResetClaimsGroups() { - m.claims_groups = nil - m.appendclaims_groups = nil - delete(m.clearedFields, ohauthtootoken.FieldClaimsGroups) +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *PasswordResetTokenMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, passwordresettoken.FieldDeletedBy) } -// SetClaimsPreferredUsername sets the "claims_preferred_username" field. -func (m *OhAuthTooTokenMutation) SetClaimsPreferredUsername(s string) { - m.claims_preferred_username = &s +// SetOwnerID sets the "owner_id" field. +func (m *PasswordResetTokenMutation) SetOwnerID(s string) { + m.owner = &s } -// ClaimsPreferredUsername returns the value of the "claims_preferred_username" field in the mutation. -func (m *OhAuthTooTokenMutation) ClaimsPreferredUsername() (r string, exists bool) { - v := m.claims_preferred_username +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *PasswordResetTokenMutation) OwnerID() (r string, exists bool) { + v := m.owner if v == nil { return } return *v, true } -// OldClaimsPreferredUsername returns the old "claims_preferred_username" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. +// OldOwnerID returns the old "owner_id" field's value of the PasswordResetToken entity. +// If the PasswordResetToken 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 *OhAuthTooTokenMutation) OldClaimsPreferredUsername(ctx context.Context) (v string, err error) { +func (m *PasswordResetTokenMutation) OldOwnerID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldClaimsPreferredUsername is only allowed on UpdateOne operations") + return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldClaimsPreferredUsername requires an ID field in the mutation") + 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 OldClaimsPreferredUsername: %w", err) + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) } - return oldValue.ClaimsPreferredUsername, nil + return oldValue.OwnerID, nil } -// ResetClaimsPreferredUsername resets all changes to the "claims_preferred_username" field. -func (m *OhAuthTooTokenMutation) ResetClaimsPreferredUsername() { - m.claims_preferred_username = nil +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *PasswordResetTokenMutation) ResetOwnerID() { + m.owner = nil } -// SetConnectorID sets the "connector_id" field. -func (m *OhAuthTooTokenMutation) SetConnectorID(s string) { - m.connector_id = &s +// SetToken sets the "token" field. +func (m *PasswordResetTokenMutation) SetToken(s string) { + m.token = &s } -// ConnectorID returns the value of the "connector_id" field in the mutation. -func (m *OhAuthTooTokenMutation) ConnectorID() (r string, exists bool) { - v := m.connector_id +// Token returns the value of the "token" field in the mutation. +func (m *PasswordResetTokenMutation) Token() (r string, exists bool) { + v := m.token if v == nil { return } return *v, true } -// OldConnectorID returns the old "connector_id" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. +// OldToken returns the old "token" field's value of the PasswordResetToken entity. +// If the PasswordResetToken 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 *OhAuthTooTokenMutation) OldConnectorID(ctx context.Context) (v string, err error) { +func (m *PasswordResetTokenMutation) OldToken(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldConnectorID is only allowed on UpdateOne operations") + return v, errors.New("OldToken is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldConnectorID requires an ID field in the mutation") + return v, errors.New("OldToken requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldConnectorID: %w", err) + return v, fmt.Errorf("querying old value for OldToken: %w", err) } - return oldValue.ConnectorID, nil + return oldValue.Token, nil } -// ResetConnectorID resets all changes to the "connector_id" field. -func (m *OhAuthTooTokenMutation) ResetConnectorID() { - m.connector_id = nil +// ResetToken resets all changes to the "token" field. +func (m *PasswordResetTokenMutation) ResetToken() { + m.token = nil } -// SetConnectorData sets the "connector_data" field. -func (m *OhAuthTooTokenMutation) SetConnectorData(s []string) { - m.connector_data = &s - m.appendconnector_data = nil +// SetTTL sets the "ttl" field. +func (m *PasswordResetTokenMutation) SetTTL(t time.Time) { + m.ttl = &t } -// ConnectorData returns the value of the "connector_data" field in the mutation. -func (m *OhAuthTooTokenMutation) ConnectorData() (r []string, exists bool) { - v := m.connector_data +// TTL returns the value of the "ttl" field in the mutation. +func (m *PasswordResetTokenMutation) TTL() (r time.Time, exists bool) { + v := m.ttl if v == nil { return } return *v, true } -// OldConnectorData returns the old "connector_data" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. +// OldTTL returns the old "ttl" field's value of the PasswordResetToken entity. +// If the PasswordResetToken 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 *OhAuthTooTokenMutation) OldConnectorData(ctx context.Context) (v []string, err error) { +func (m *PasswordResetTokenMutation) OldTTL(ctx context.Context) (v *time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldConnectorData is only allowed on UpdateOne operations") + return v, errors.New("OldTTL is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldConnectorData requires an ID field in the mutation") + return v, errors.New("OldTTL requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldConnectorData: %w", err) - } - return oldValue.ConnectorData, nil -} - -// AppendConnectorData adds s to the "connector_data" field. -func (m *OhAuthTooTokenMutation) AppendConnectorData(s []string) { - m.appendconnector_data = append(m.appendconnector_data, s...) -} - -// AppendedConnectorData returns the list of values that were appended to the "connector_data" field in this mutation. -func (m *OhAuthTooTokenMutation) AppendedConnectorData() ([]string, bool) { - if len(m.appendconnector_data) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldTTL: %w", err) } - return m.appendconnector_data, true -} - -// ClearConnectorData clears the value of the "connector_data" field. -func (m *OhAuthTooTokenMutation) ClearConnectorData() { - m.connector_data = nil - m.appendconnector_data = nil - m.clearedFields[ohauthtootoken.FieldConnectorData] = struct{}{} -} - -// ConnectorDataCleared returns if the "connector_data" field was cleared in this mutation. -func (m *OhAuthTooTokenMutation) ConnectorDataCleared() bool { - _, ok := m.clearedFields[ohauthtootoken.FieldConnectorData] - return ok + return oldValue.TTL, nil } -// ResetConnectorData resets all changes to the "connector_data" field. -func (m *OhAuthTooTokenMutation) ResetConnectorData() { - m.connector_data = nil - m.appendconnector_data = nil - delete(m.clearedFields, ohauthtootoken.FieldConnectorData) +// ResetTTL resets all changes to the "ttl" field. +func (m *PasswordResetTokenMutation) ResetTTL() { + m.ttl = nil } -// SetLastUsed sets the "last_used" field. -func (m *OhAuthTooTokenMutation) SetLastUsed(t time.Time) { - m.last_used = &t +// SetEmail sets the "email" field. +func (m *PasswordResetTokenMutation) SetEmail(s string) { + m.email = &s } -// LastUsed returns the value of the "last_used" field in the mutation. -func (m *OhAuthTooTokenMutation) LastUsed() (r time.Time, exists bool) { - v := m.last_used +// Email returns the value of the "email" field in the mutation. +func (m *PasswordResetTokenMutation) Email() (r string, exists bool) { + v := m.email if v == nil { return } return *v, true } -// OldLastUsed returns the old "last_used" field's value of the OhAuthTooToken entity. -// If the OhAuthTooToken object wasn't provided to the builder, the object is fetched from the database. +// OldEmail returns the old "email" field's value of the PasswordResetToken entity. +// If the PasswordResetToken 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 *OhAuthTooTokenMutation) OldLastUsed(ctx context.Context) (v time.Time, err error) { +func (m *PasswordResetTokenMutation) OldEmail(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldLastUsed is only allowed on UpdateOne operations") + return v, errors.New("OldEmail is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldLastUsed requires an ID field in the mutation") + 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 OldLastUsed: %w", err) - } - return oldValue.LastUsed, nil -} - -// ResetLastUsed resets all changes to the "last_used" field. -func (m *OhAuthTooTokenMutation) ResetLastUsed() { - m.last_used = nil -} - -// AddIntegrationIDs adds the "integration" edge to the Integration entity by ids. -func (m *OhAuthTooTokenMutation) AddIntegrationIDs(ids ...string) { - if m.integration == nil { - m.integration = make(map[string]struct{}) - } - for i := range ids { - m.integration[ids[i]] = struct{}{} + return v, fmt.Errorf("querying old value for OldEmail: %w", err) } + return oldValue.Email, nil } -// ClearIntegration clears the "integration" edge to the Integration entity. -func (m *OhAuthTooTokenMutation) ClearIntegration() { - m.clearedintegration = true -} - -// IntegrationCleared reports if the "integration" edge to the Integration entity was cleared. -func (m *OhAuthTooTokenMutation) IntegrationCleared() bool { - return m.clearedintegration -} - -// RemoveIntegrationIDs removes the "integration" edge to the Integration entity by IDs. -func (m *OhAuthTooTokenMutation) RemoveIntegrationIDs(ids ...string) { - if m.removedintegration == nil { - m.removedintegration = make(map[string]struct{}) - } - for i := range ids { - delete(m.integration, ids[i]) - m.removedintegration[ids[i]] = struct{}{} - } +// ResetEmail resets all changes to the "email" field. +func (m *PasswordResetTokenMutation) ResetEmail() { + m.email = nil } -// RemovedIntegration returns the removed IDs of the "integration" edge to the Integration entity. -func (m *OhAuthTooTokenMutation) RemovedIntegrationIDs() (ids []string) { - for id := range m.removedintegration { - ids = append(ids, id) - } - return +// SetSecret sets the "secret" field. +func (m *PasswordResetTokenMutation) SetSecret(b []byte) { + m.secret = &b } -// IntegrationIDs returns the "integration" edge IDs in the mutation. -func (m *OhAuthTooTokenMutation) IntegrationIDs() (ids []string) { - for id := range m.integration { - ids = append(ids, id) +// Secret returns the value of the "secret" field in the mutation. +func (m *PasswordResetTokenMutation) Secret() (r []byte, exists bool) { + v := m.secret + if v == nil { + return } - return -} - -// ResetIntegration resets all changes to the "integration" edge. -func (m *OhAuthTooTokenMutation) ResetIntegration() { - m.integration = nil - m.clearedintegration = false - m.removedintegration = nil + return *v, true } -// AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *OhAuthTooTokenMutation) AddEventIDs(ids ...string) { - if m.events == nil { - m.events = make(map[string]struct{}) +// OldSecret returns the old "secret" field's value of the PasswordResetToken entity. +// If the PasswordResetToken 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 *PasswordResetTokenMutation) OldSecret(ctx context.Context) (v *[]byte, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSecret is only allowed on UpdateOne operations") } - for i := range ids { - m.events[ids[i]] = struct{}{} + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSecret requires an ID field in the mutation") } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSecret: %w", err) + } + return oldValue.Secret, nil } -// ClearEvents clears the "events" edge to the Event entity. -func (m *OhAuthTooTokenMutation) ClearEvents() { - m.clearedevents = true -} - -// EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *OhAuthTooTokenMutation) EventsCleared() bool { - return m.clearedevents +// ResetSecret resets all changes to the "secret" field. +func (m *PasswordResetTokenMutation) ResetSecret() { + m.secret = nil } -// RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *OhAuthTooTokenMutation) RemoveEventIDs(ids ...string) { - if m.removedevents == nil { - m.removedevents = make(map[string]struct{}) - } - for i := range ids { - delete(m.events, ids[i]) - m.removedevents[ids[i]] = struct{}{} - } +// ClearOwner clears the "owner" edge to the User entity. +func (m *PasswordResetTokenMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[passwordresettoken.FieldOwnerID] = struct{}{} } -// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *OhAuthTooTokenMutation) RemovedEventsIDs() (ids []string) { - for id := range m.removedevents { - ids = append(ids, id) - } - return +// OwnerCleared reports if the "owner" edge to the User entity was cleared. +func (m *PasswordResetTokenMutation) OwnerCleared() bool { + return m.clearedowner } -// EventsIDs returns the "events" edge IDs in the mutation. -func (m *OhAuthTooTokenMutation) EventsIDs() (ids []string) { - for id := range m.events { - ids = append(ids, id) +// 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 *PasswordResetTokenMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) } return } -// ResetEvents resets all changes to the "events" edge. -func (m *OhAuthTooTokenMutation) ResetEvents() { - m.events = nil - m.clearedevents = false - m.removedevents = nil +// ResetOwner resets all changes to the "owner" edge. +func (m *PasswordResetTokenMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false } -// Where appends a list predicates to the OhAuthTooTokenMutation builder. -func (m *OhAuthTooTokenMutation) Where(ps ...predicate.OhAuthTooToken) { +// Where appends a list predicates to the PasswordResetTokenMutation builder. +func (m *PasswordResetTokenMutation) Where(ps ...predicate.PasswordResetToken) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the OhAuthTooTokenMutation builder. Using this method, +// WhereP appends storage-level predicates to the PasswordResetTokenMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *OhAuthTooTokenMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.OhAuthTooToken, len(ps)) +func (m *PasswordResetTokenMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.PasswordResetToken, len(ps)) for i := range ps { p[i] = ps[i] } @@ -55816,66 +85241,60 @@ func (m *OhAuthTooTokenMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *OhAuthTooTokenMutation) Op() Op { +func (m *PasswordResetTokenMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *OhAuthTooTokenMutation) SetOp(op Op) { +func (m *PasswordResetTokenMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (OhAuthTooToken). -func (m *OhAuthTooTokenMutation) Type() string { +// Type returns the node type of this mutation (PasswordResetToken). +func (m *PasswordResetTokenMutation) 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 *OhAuthTooTokenMutation) Fields() []string { - fields := make([]string, 0, 14) - if m.mapping_id != nil { - fields = append(fields, ohauthtootoken.FieldMappingID) - } - if m.tags != nil { - fields = append(fields, ohauthtootoken.FieldTags) - } - if m.client_id != nil { - fields = append(fields, ohauthtootoken.FieldClientID) +func (m *PasswordResetTokenMutation) Fields() []string { + fields := make([]string, 0, 12) + if m.created_at != nil { + fields = append(fields, passwordresettoken.FieldCreatedAt) } - if m.scopes != nil { - fields = append(fields, ohauthtootoken.FieldScopes) + if m.updated_at != nil { + fields = append(fields, passwordresettoken.FieldUpdatedAt) } - if m.nonce != nil { - fields = append(fields, ohauthtootoken.FieldNonce) + if m.created_by != nil { + fields = append(fields, passwordresettoken.FieldCreatedBy) } - if m.claims_user_id != nil { - fields = append(fields, ohauthtootoken.FieldClaimsUserID) + if m.updated_by != nil { + fields = append(fields, passwordresettoken.FieldUpdatedBy) } - if m.claims_username != nil { - fields = append(fields, ohauthtootoken.FieldClaimsUsername) + if m.mapping_id != nil { + fields = append(fields, passwordresettoken.FieldMappingID) } - if m.claims_email != nil { - fields = append(fields, ohauthtootoken.FieldClaimsEmail) + if m.deleted_at != nil { + fields = append(fields, passwordresettoken.FieldDeletedAt) } - if m.claims_email_verified != nil { - fields = append(fields, ohauthtootoken.FieldClaimsEmailVerified) + if m.deleted_by != nil { + fields = append(fields, passwordresettoken.FieldDeletedBy) } - if m.claims_groups != nil { - fields = append(fields, ohauthtootoken.FieldClaimsGroups) + if m.owner != nil { + fields = append(fields, passwordresettoken.FieldOwnerID) } - if m.claims_preferred_username != nil { - fields = append(fields, ohauthtootoken.FieldClaimsPreferredUsername) + if m.token != nil { + fields = append(fields, passwordresettoken.FieldToken) } - if m.connector_id != nil { - fields = append(fields, ohauthtootoken.FieldConnectorID) + if m.ttl != nil { + fields = append(fields, passwordresettoken.FieldTTL) } - if m.connector_data != nil { - fields = append(fields, ohauthtootoken.FieldConnectorData) + if m.email != nil { + fields = append(fields, passwordresettoken.FieldEmail) } - if m.last_used != nil { - fields = append(fields, ohauthtootoken.FieldLastUsed) + if m.secret != nil { + fields = append(fields, passwordresettoken.FieldSecret) } return fields } @@ -55883,36 +85302,32 @@ func (m *OhAuthTooTokenMutation) Fields() []string { // 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 *OhAuthTooTokenMutation) Field(name string) (ent.Value, bool) { +func (m *PasswordResetTokenMutation) Field(name string) (ent.Value, bool) { switch name { - case ohauthtootoken.FieldMappingID: + case passwordresettoken.FieldCreatedAt: + return m.CreatedAt() + case passwordresettoken.FieldUpdatedAt: + return m.UpdatedAt() + case passwordresettoken.FieldCreatedBy: + return m.CreatedBy() + case passwordresettoken.FieldUpdatedBy: + return m.UpdatedBy() + case passwordresettoken.FieldMappingID: return m.MappingID() - case ohauthtootoken.FieldTags: - return m.Tags() - case ohauthtootoken.FieldClientID: - return m.ClientID() - case ohauthtootoken.FieldScopes: - return m.Scopes() - case ohauthtootoken.FieldNonce: - return m.Nonce() - case ohauthtootoken.FieldClaimsUserID: - return m.ClaimsUserID() - case ohauthtootoken.FieldClaimsUsername: - return m.ClaimsUsername() - case ohauthtootoken.FieldClaimsEmail: - return m.ClaimsEmail() - case ohauthtootoken.FieldClaimsEmailVerified: - return m.ClaimsEmailVerified() - case ohauthtootoken.FieldClaimsGroups: - return m.ClaimsGroups() - case ohauthtootoken.FieldClaimsPreferredUsername: - return m.ClaimsPreferredUsername() - case ohauthtootoken.FieldConnectorID: - return m.ConnectorID() - case ohauthtootoken.FieldConnectorData: - return m.ConnectorData() - case ohauthtootoken.FieldLastUsed: - return m.LastUsed() + case passwordresettoken.FieldDeletedAt: + return m.DeletedAt() + case passwordresettoken.FieldDeletedBy: + return m.DeletedBy() + case passwordresettoken.FieldOwnerID: + return m.OwnerID() + case passwordresettoken.FieldToken: + return m.Token() + case passwordresettoken.FieldTTL: + return m.TTL() + case passwordresettoken.FieldEmail: + return m.Email() + case passwordresettoken.FieldSecret: + return m.Secret() } return nil, false } @@ -55920,413 +85335,374 @@ func (m *OhAuthTooTokenMutation) Field(name string) (ent.Value, bool) { // 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 *OhAuthTooTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *PasswordResetTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case ohauthtootoken.FieldMappingID: + case passwordresettoken.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case passwordresettoken.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case passwordresettoken.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case passwordresettoken.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case passwordresettoken.FieldMappingID: return m.OldMappingID(ctx) - case ohauthtootoken.FieldTags: - return m.OldTags(ctx) - case ohauthtootoken.FieldClientID: - return m.OldClientID(ctx) - case ohauthtootoken.FieldScopes: - return m.OldScopes(ctx) - case ohauthtootoken.FieldNonce: - return m.OldNonce(ctx) - case ohauthtootoken.FieldClaimsUserID: - return m.OldClaimsUserID(ctx) - case ohauthtootoken.FieldClaimsUsername: - return m.OldClaimsUsername(ctx) - case ohauthtootoken.FieldClaimsEmail: - return m.OldClaimsEmail(ctx) - case ohauthtootoken.FieldClaimsEmailVerified: - return m.OldClaimsEmailVerified(ctx) - case ohauthtootoken.FieldClaimsGroups: - return m.OldClaimsGroups(ctx) - case ohauthtootoken.FieldClaimsPreferredUsername: - return m.OldClaimsPreferredUsername(ctx) - case ohauthtootoken.FieldConnectorID: - return m.OldConnectorID(ctx) - case ohauthtootoken.FieldConnectorData: - return m.OldConnectorData(ctx) - case ohauthtootoken.FieldLastUsed: - return m.OldLastUsed(ctx) + case passwordresettoken.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case passwordresettoken.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case passwordresettoken.FieldOwnerID: + return m.OldOwnerID(ctx) + case passwordresettoken.FieldToken: + return m.OldToken(ctx) + case passwordresettoken.FieldTTL: + return m.OldTTL(ctx) + case passwordresettoken.FieldEmail: + return m.OldEmail(ctx) + case passwordresettoken.FieldSecret: + return m.OldSecret(ctx) } - return nil, fmt.Errorf("unknown OhAuthTooToken field %s", name) + return nil, fmt.Errorf("unknown PasswordResetToken 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 *OhAuthTooTokenMutation) SetField(name string, value ent.Value) error { +func (m *PasswordResetTokenMutation) SetField(name string, value ent.Value) error { switch name { - case ohauthtootoken.FieldMappingID: - v, ok := value.(string) + case passwordresettoken.FieldCreatedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMappingID(v) + m.SetCreatedAt(v) return nil - case ohauthtootoken.FieldTags: - v, ok := value.([]string) + case passwordresettoken.FieldUpdatedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTags(v) + m.SetUpdatedAt(v) return nil - case ohauthtootoken.FieldClientID: + case passwordresettoken.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetClientID(v) - return nil - case ohauthtootoken.FieldScopes: - v, ok := value.([]string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetScopes(v) + m.SetCreatedBy(v) return nil - case ohauthtootoken.FieldNonce: + case passwordresettoken.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetNonce(v) + m.SetUpdatedBy(v) return nil - case ohauthtootoken.FieldClaimsUserID: + case passwordresettoken.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetClaimsUserID(v) + m.SetMappingID(v) return nil - case ohauthtootoken.FieldClaimsUsername: - v, ok := value.(string) + case passwordresettoken.FieldDeletedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetClaimsUsername(v) + m.SetDeletedAt(v) return nil - case ohauthtootoken.FieldClaimsEmail: + case passwordresettoken.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetClaimsEmail(v) - return nil - case ohauthtootoken.FieldClaimsEmailVerified: - v, ok := value.(bool) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetClaimsEmailVerified(v) + m.SetDeletedBy(v) return nil - case ohauthtootoken.FieldClaimsGroups: - v, ok := value.([]string) + case passwordresettoken.FieldOwnerID: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetClaimsGroups(v) + m.SetOwnerID(v) return nil - case ohauthtootoken.FieldClaimsPreferredUsername: + case passwordresettoken.FieldToken: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetClaimsPreferredUsername(v) + m.SetToken(v) return nil - case ohauthtootoken.FieldConnectorID: - v, ok := value.(string) + case passwordresettoken.FieldTTL: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetConnectorID(v) + m.SetTTL(v) return nil - case ohauthtootoken.FieldConnectorData: - v, ok := value.([]string) + case passwordresettoken.FieldEmail: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetConnectorData(v) + m.SetEmail(v) return nil - case ohauthtootoken.FieldLastUsed: - v, ok := value.(time.Time) + case passwordresettoken.FieldSecret: + v, ok := value.([]byte) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetLastUsed(v) + m.SetSecret(v) return nil } - return fmt.Errorf("unknown OhAuthTooToken field %s", name) + return fmt.Errorf("unknown PasswordResetToken field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *OhAuthTooTokenMutation) AddedFields() []string { +func (m *PasswordResetTokenMutation) 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 *OhAuthTooTokenMutation) AddedField(name string) (ent.Value, bool) { +func (m *PasswordResetTokenMutation) 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 *OhAuthTooTokenMutation) AddField(name string, value ent.Value) error { +func (m *PasswordResetTokenMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown OhAuthTooToken numeric field %s", name) + return fmt.Errorf("unknown PasswordResetToken numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *OhAuthTooTokenMutation) ClearedFields() []string { +func (m *PasswordResetTokenMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(ohauthtootoken.FieldTags) { - fields = append(fields, ohauthtootoken.FieldTags) + if m.FieldCleared(passwordresettoken.FieldCreatedAt) { + fields = append(fields, passwordresettoken.FieldCreatedAt) } - if m.FieldCleared(ohauthtootoken.FieldScopes) { - fields = append(fields, ohauthtootoken.FieldScopes) + if m.FieldCleared(passwordresettoken.FieldUpdatedAt) { + fields = append(fields, passwordresettoken.FieldUpdatedAt) } - if m.FieldCleared(ohauthtootoken.FieldClaimsGroups) { - fields = append(fields, ohauthtootoken.FieldClaimsGroups) + if m.FieldCleared(passwordresettoken.FieldCreatedBy) { + fields = append(fields, passwordresettoken.FieldCreatedBy) } - if m.FieldCleared(ohauthtootoken.FieldConnectorData) { - fields = append(fields, ohauthtootoken.FieldConnectorData) + if m.FieldCleared(passwordresettoken.FieldUpdatedBy) { + fields = append(fields, passwordresettoken.FieldUpdatedBy) + } + if m.FieldCleared(passwordresettoken.FieldDeletedAt) { + fields = append(fields, passwordresettoken.FieldDeletedAt) + } + if m.FieldCleared(passwordresettoken.FieldDeletedBy) { + fields = append(fields, passwordresettoken.FieldDeletedBy) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *OhAuthTooTokenMutation) FieldCleared(name string) bool { +func (m *PasswordResetTokenMutation) 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 *OhAuthTooTokenMutation) ClearField(name string) error { +func (m *PasswordResetTokenMutation) ClearField(name string) error { switch name { - case ohauthtootoken.FieldTags: - m.ClearTags() + case passwordresettoken.FieldCreatedAt: + m.ClearCreatedAt() return nil - case ohauthtootoken.FieldScopes: - m.ClearScopes() + case passwordresettoken.FieldUpdatedAt: + m.ClearUpdatedAt() return nil - case ohauthtootoken.FieldClaimsGroups: - m.ClearClaimsGroups() + case passwordresettoken.FieldCreatedBy: + m.ClearCreatedBy() return nil - case ohauthtootoken.FieldConnectorData: - m.ClearConnectorData() + case passwordresettoken.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case passwordresettoken.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case passwordresettoken.FieldDeletedBy: + m.ClearDeletedBy() return nil } - return fmt.Errorf("unknown OhAuthTooToken nullable field %s", name) + return fmt.Errorf("unknown PasswordResetToken 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 *OhAuthTooTokenMutation) ResetField(name string) error { +func (m *PasswordResetTokenMutation) ResetField(name string) error { switch name { - case ohauthtootoken.FieldMappingID: - m.ResetMappingID() - return nil - case ohauthtootoken.FieldTags: - m.ResetTags() - return nil - case ohauthtootoken.FieldClientID: - m.ResetClientID() + case passwordresettoken.FieldCreatedAt: + m.ResetCreatedAt() return nil - case ohauthtootoken.FieldScopes: - m.ResetScopes() + case passwordresettoken.FieldUpdatedAt: + m.ResetUpdatedAt() return nil - case ohauthtootoken.FieldNonce: - m.ResetNonce() + case passwordresettoken.FieldCreatedBy: + m.ResetCreatedBy() return nil - case ohauthtootoken.FieldClaimsUserID: - m.ResetClaimsUserID() + case passwordresettoken.FieldUpdatedBy: + m.ResetUpdatedBy() return nil - case ohauthtootoken.FieldClaimsUsername: - m.ResetClaimsUsername() + case passwordresettoken.FieldMappingID: + m.ResetMappingID() return nil - case ohauthtootoken.FieldClaimsEmail: - m.ResetClaimsEmail() + case passwordresettoken.FieldDeletedAt: + m.ResetDeletedAt() return nil - case ohauthtootoken.FieldClaimsEmailVerified: - m.ResetClaimsEmailVerified() + case passwordresettoken.FieldDeletedBy: + m.ResetDeletedBy() return nil - case ohauthtootoken.FieldClaimsGroups: - m.ResetClaimsGroups() + case passwordresettoken.FieldOwnerID: + m.ResetOwnerID() return nil - case ohauthtootoken.FieldClaimsPreferredUsername: - m.ResetClaimsPreferredUsername() + case passwordresettoken.FieldToken: + m.ResetToken() return nil - case ohauthtootoken.FieldConnectorID: - m.ResetConnectorID() + case passwordresettoken.FieldTTL: + m.ResetTTL() return nil - case ohauthtootoken.FieldConnectorData: - m.ResetConnectorData() + case passwordresettoken.FieldEmail: + m.ResetEmail() return nil - case ohauthtootoken.FieldLastUsed: - m.ResetLastUsed() + case passwordresettoken.FieldSecret: + m.ResetSecret() return nil } - return fmt.Errorf("unknown OhAuthTooToken field %s", name) + return fmt.Errorf("unknown PasswordResetToken field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *OhAuthTooTokenMutation) AddedEdges() []string { - edges := make([]string, 0, 2) - if m.integration != nil { - edges = append(edges, ohauthtootoken.EdgeIntegration) - } - if m.events != nil { - edges = append(edges, ohauthtootoken.EdgeEvents) +func (m *PasswordResetTokenMutation) AddedEdges() []string { + edges := make([]string, 0, 1) + if m.owner != nil { + edges = append(edges, passwordresettoken.EdgeOwner) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *OhAuthTooTokenMutation) AddedIDs(name string) []ent.Value { +func (m *PasswordResetTokenMutation) AddedIDs(name string) []ent.Value { switch name { - case ohauthtootoken.EdgeIntegration: - ids := make([]ent.Value, 0, len(m.integration)) - for id := range m.integration { - ids = append(ids, id) - } - return ids - case ohauthtootoken.EdgeEvents: - ids := make([]ent.Value, 0, len(m.events)) - for id := range m.events { - ids = append(ids, id) + case passwordresettoken.EdgeOwner: + if id := m.owner; id != nil { + return []ent.Value{*id} } - return ids } return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *OhAuthTooTokenMutation) RemovedEdges() []string { - edges := make([]string, 0, 2) - if m.removedintegration != nil { - edges = append(edges, ohauthtootoken.EdgeIntegration) - } - if m.removedevents != nil { - edges = append(edges, ohauthtootoken.EdgeEvents) - } +func (m *PasswordResetTokenMutation) RemovedEdges() []string { + edges := make([]string, 0, 1) return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *OhAuthTooTokenMutation) RemovedIDs(name string) []ent.Value { - switch name { - case ohauthtootoken.EdgeIntegration: - ids := make([]ent.Value, 0, len(m.removedintegration)) - for id := range m.removedintegration { - ids = append(ids, id) - } - return ids - case ohauthtootoken.EdgeEvents: - ids := make([]ent.Value, 0, len(m.removedevents)) - for id := range m.removedevents { - ids = append(ids, id) - } - return ids - } +func (m *PasswordResetTokenMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *OhAuthTooTokenMutation) ClearedEdges() []string { - edges := make([]string, 0, 2) - if m.clearedintegration { - edges = append(edges, ohauthtootoken.EdgeIntegration) - } - if m.clearedevents { - edges = append(edges, ohauthtootoken.EdgeEvents) +func (m *PasswordResetTokenMutation) ClearedEdges() []string { + edges := make([]string, 0, 1) + if m.clearedowner { + edges = append(edges, passwordresettoken.EdgeOwner) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *OhAuthTooTokenMutation) EdgeCleared(name string) bool { - switch name { - case ohauthtootoken.EdgeIntegration: - return m.clearedintegration - case ohauthtootoken.EdgeEvents: - return m.clearedevents +func (m *PasswordResetTokenMutation) EdgeCleared(name string) bool { + switch name { + case passwordresettoken.EdgeOwner: + return m.clearedowner } 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 *OhAuthTooTokenMutation) ClearEdge(name string) error { +func (m *PasswordResetTokenMutation) ClearEdge(name string) error { switch name { + case passwordresettoken.EdgeOwner: + m.ClearOwner() + return nil } - return fmt.Errorf("unknown OhAuthTooToken unique edge %s", name) + return fmt.Errorf("unknown PasswordResetToken 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 *OhAuthTooTokenMutation) ResetEdge(name string) error { +func (m *PasswordResetTokenMutation) ResetEdge(name string) error { switch name { - case ohauthtootoken.EdgeIntegration: - m.ResetIntegration() - return nil - case ohauthtootoken.EdgeEvents: - m.ResetEvents() + case passwordresettoken.EdgeOwner: + m.ResetOwner() return nil } - return fmt.Errorf("unknown OhAuthTooToken edge %s", name) + return fmt.Errorf("unknown PasswordResetToken edge %s", name) } -// OrgMembershipMutation represents an operation that mutates the OrgMembership nodes in the graph. -type OrgMembershipMutation struct { +// PersonalAccessTokenMutation represents an operation that mutates the PersonalAccessToken nodes in the graph. +type PersonalAccessTokenMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - deleted_at *time.Time - deleted_by *string - role *enums.Role - clearedFields map[string]struct{} - organization *string - clearedorganization bool - user *string - cleareduser bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - done bool - oldValue func(context.Context) (*OrgMembership, error) - predicates []predicate.OrgMembership + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + token *string + expires_at *time.Time + description *string + scopes *[]string + appendscopes []string + last_used_at *time.Time + clearedFields map[string]struct{} + owner *string + clearedowner bool + organizations map[string]struct{} + removedorganizations map[string]struct{} + clearedorganizations bool + events map[string]struct{} + removedevents map[string]struct{} + clearedevents bool + done bool + oldValue func(context.Context) (*PersonalAccessToken, error) + predicates []predicate.PersonalAccessToken } -var _ ent.Mutation = (*OrgMembershipMutation)(nil) +var _ ent.Mutation = (*PersonalAccessTokenMutation)(nil) -// orgmembershipOption allows management of the mutation configuration using functional options. -type orgmembershipOption func(*OrgMembershipMutation) +// personalaccesstokenOption allows management of the mutation configuration using functional options. +type personalaccesstokenOption func(*PersonalAccessTokenMutation) -// newOrgMembershipMutation creates new mutation for the OrgMembership entity. -func newOrgMembershipMutation(c config, op Op, opts ...orgmembershipOption) *OrgMembershipMutation { - m := &OrgMembershipMutation{ +// newPersonalAccessTokenMutation creates new mutation for the PersonalAccessToken entity. +func newPersonalAccessTokenMutation(c config, op Op, opts ...personalaccesstokenOption) *PersonalAccessTokenMutation { + m := &PersonalAccessTokenMutation{ config: c, op: op, - typ: TypeOrgMembership, + typ: TypePersonalAccessToken, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -56335,20 +85711,20 @@ func newOrgMembershipMutation(c config, op Op, opts ...orgmembershipOption) *Org return m } -// withOrgMembershipID sets the ID field of the mutation. -func withOrgMembershipID(id string) orgmembershipOption { - return func(m *OrgMembershipMutation) { +// withPersonalAccessTokenID sets the ID field of the mutation. +func withPersonalAccessTokenID(id string) personalaccesstokenOption { + return func(m *PersonalAccessTokenMutation) { var ( err error once sync.Once - value *OrgMembership + value *PersonalAccessToken ) - m.oldValue = func(ctx context.Context) (*OrgMembership, error) { + m.oldValue = func(ctx context.Context) (*PersonalAccessToken, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().OrgMembership.Get(ctx, id) + value, err = m.Client().PersonalAccessToken.Get(ctx, id) } }) return value, err @@ -56357,10 +85733,10 @@ func withOrgMembershipID(id string) orgmembershipOption { } } -// withOrgMembership sets the old OrgMembership of the mutation. -func withOrgMembership(node *OrgMembership) orgmembershipOption { - return func(m *OrgMembershipMutation) { - m.oldValue = func(context.Context) (*OrgMembership, error) { +// withPersonalAccessToken sets the old PersonalAccessToken of the mutation. +func withPersonalAccessToken(node *PersonalAccessToken) personalaccesstokenOption { + return func(m *PersonalAccessTokenMutation) { + m.oldValue = func(context.Context) (*PersonalAccessToken, error) { return node, nil } m.id = &node.ID @@ -56369,7 +85745,7 @@ func withOrgMembership(node *OrgMembership) orgmembershipOption { // 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 OrgMembershipMutation) Client() *Client { +func (m PersonalAccessTokenMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -56377,7 +85753,7 @@ func (m OrgMembershipMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m OrgMembershipMutation) Tx() (*Tx, error) { +func (m PersonalAccessTokenMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -56387,14 +85763,14 @@ func (m OrgMembershipMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of OrgMembership entities. -func (m *OrgMembershipMutation) SetID(id string) { +// operation is only accepted on creation of PersonalAccessToken entities. +func (m *PersonalAccessTokenMutation) 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 *OrgMembershipMutation) ID() (id string, exists bool) { +func (m *PersonalAccessTokenMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -56405,7 +85781,7 @@ func (m *OrgMembershipMutation) ID() (id string, exists bool) { // 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 *OrgMembershipMutation) IDs(ctx context.Context) ([]string, error) { +func (m *PersonalAccessTokenMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -56414,19 +85790,19 @@ func (m *OrgMembershipMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().OrgMembership.Query().Where(m.predicates...).IDs(ctx) + return m.Client().PersonalAccessToken.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 *OrgMembershipMutation) SetCreatedAt(t time.Time) { +func (m *PersonalAccessTokenMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *OrgMembershipMutation) CreatedAt() (r time.Time, exists bool) { +func (m *PersonalAccessTokenMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -56434,10 +85810,10 @@ func (m *OrgMembershipMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the OrgMembership entity. -// If the OrgMembership object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the PersonalAccessToken entity. +// If the PersonalAccessToken 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 *OrgMembershipMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *PersonalAccessTokenMutation) 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") } @@ -56452,30 +85828,30 @@ func (m *OrgMembershipMutation) OldCreatedAt(ctx context.Context) (v time.Time, } // ClearCreatedAt clears the value of the "created_at" field. -func (m *OrgMembershipMutation) ClearCreatedAt() { +func (m *PersonalAccessTokenMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[orgmembership.FieldCreatedAt] = struct{}{} + m.clearedFields[personalaccesstoken.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *OrgMembershipMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[orgmembership.FieldCreatedAt] +func (m *PersonalAccessTokenMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[personalaccesstoken.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *OrgMembershipMutation) ResetCreatedAt() { +func (m *PersonalAccessTokenMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, orgmembership.FieldCreatedAt) + delete(m.clearedFields, personalaccesstoken.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *OrgMembershipMutation) SetUpdatedAt(t time.Time) { +func (m *PersonalAccessTokenMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *OrgMembershipMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *PersonalAccessTokenMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -56483,10 +85859,10 @@ func (m *OrgMembershipMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the OrgMembership entity. -// If the OrgMembership object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the PersonalAccessToken entity. +// If the PersonalAccessToken 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 *OrgMembershipMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *PersonalAccessTokenMutation) 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") } @@ -56501,30 +85877,30 @@ func (m *OrgMembershipMutation) OldUpdatedAt(ctx context.Context) (v time.Time, } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *OrgMembershipMutation) ClearUpdatedAt() { +func (m *PersonalAccessTokenMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[orgmembership.FieldUpdatedAt] = struct{}{} + m.clearedFields[personalaccesstoken.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *OrgMembershipMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[orgmembership.FieldUpdatedAt] +func (m *PersonalAccessTokenMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[personalaccesstoken.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *OrgMembershipMutation) ResetUpdatedAt() { +func (m *PersonalAccessTokenMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, orgmembership.FieldUpdatedAt) + delete(m.clearedFields, personalaccesstoken.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *OrgMembershipMutation) SetCreatedBy(s string) { +func (m *PersonalAccessTokenMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *OrgMembershipMutation) CreatedBy() (r string, exists bool) { +func (m *PersonalAccessTokenMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -56532,10 +85908,10 @@ func (m *OrgMembershipMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the OrgMembership entity. -// If the OrgMembership object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the PersonalAccessToken entity. +// If the PersonalAccessToken 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 *OrgMembershipMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *PersonalAccessTokenMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -56550,30 +85926,30 @@ func (m *OrgMembershipMutation) OldCreatedBy(ctx context.Context) (v string, err } // ClearCreatedBy clears the value of the "created_by" field. -func (m *OrgMembershipMutation) ClearCreatedBy() { +func (m *PersonalAccessTokenMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[orgmembership.FieldCreatedBy] = struct{}{} + m.clearedFields[personalaccesstoken.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *OrgMembershipMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[orgmembership.FieldCreatedBy] +func (m *PersonalAccessTokenMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[personalaccesstoken.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *OrgMembershipMutation) ResetCreatedBy() { +func (m *PersonalAccessTokenMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, orgmembership.FieldCreatedBy) + delete(m.clearedFields, personalaccesstoken.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *OrgMembershipMutation) SetUpdatedBy(s string) { +func (m *PersonalAccessTokenMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *OrgMembershipMutation) UpdatedBy() (r string, exists bool) { +func (m *PersonalAccessTokenMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -56581,10 +85957,10 @@ func (m *OrgMembershipMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the OrgMembership entity. -// If the OrgMembership object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the PersonalAccessToken entity. +// If the PersonalAccessToken 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 *OrgMembershipMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *PersonalAccessTokenMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -56599,30 +85975,128 @@ func (m *OrgMembershipMutation) OldUpdatedBy(ctx context.Context) (v string, err } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *OrgMembershipMutation) ClearUpdatedBy() { +func (m *PersonalAccessTokenMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[orgmembership.FieldUpdatedBy] = struct{}{} + m.clearedFields[personalaccesstoken.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *OrgMembershipMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[orgmembership.FieldUpdatedBy] +func (m *PersonalAccessTokenMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[personalaccesstoken.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *OrgMembershipMutation) ResetUpdatedBy() { +func (m *PersonalAccessTokenMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, orgmembership.FieldUpdatedBy) + delete(m.clearedFields, personalaccesstoken.FieldUpdatedBy) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *PersonalAccessTokenMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *PersonalAccessTokenMutation) 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 PersonalAccessToken entity. +// If the PersonalAccessToken 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 *PersonalAccessTokenMutation) 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 *PersonalAccessTokenMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[personalaccesstoken.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *PersonalAccessTokenMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[personalaccesstoken.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *PersonalAccessTokenMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, personalaccesstoken.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *PersonalAccessTokenMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *PersonalAccessTokenMutation) 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 PersonalAccessToken entity. +// If the PersonalAccessToken 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 *PersonalAccessTokenMutation) 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 *PersonalAccessTokenMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[personalaccesstoken.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *PersonalAccessTokenMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[personalaccesstoken.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *PersonalAccessTokenMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, personalaccesstoken.FieldDeletedBy) } // SetMappingID sets the "mapping_id" field. -func (m *OrgMembershipMutation) SetMappingID(s string) { +func (m *PersonalAccessTokenMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *OrgMembershipMutation) MappingID() (r string, exists bool) { +func (m *PersonalAccessTokenMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -56630,10 +86104,10 @@ func (m *OrgMembershipMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the OrgMembership entity. -// If the OrgMembership object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the PersonalAccessToken entity. +// If the PersonalAccessToken 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 *OrgMembershipMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *PersonalAccessTokenMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -56648,272 +86122,478 @@ func (m *OrgMembershipMutation) OldMappingID(ctx context.Context) (v string, err } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *OrgMembershipMutation) ResetMappingID() { +func (m *PersonalAccessTokenMutation) ResetMappingID() { m.mapping_id = nil } -// SetDeletedAt sets the "deleted_at" field. -func (m *OrgMembershipMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetTags sets the "tags" field. +func (m *PersonalAccessTokenMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *OrgMembershipMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// Tags returns the value of the "tags" field in the mutation. +func (m *PersonalAccessTokenMutation) Tags() (r []string, exists bool) { + v := m.tags if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the OrgMembership entity. -// If the OrgMembership object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the PersonalAccessToken entity. +// If the PersonalAccessToken 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 *PersonalAccessTokenMutation) 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 *PersonalAccessTokenMutation) 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 *PersonalAccessTokenMutation) 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 *PersonalAccessTokenMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[personalaccesstoken.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *PersonalAccessTokenMutation) TagsCleared() bool { + _, ok := m.clearedFields[personalaccesstoken.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *PersonalAccessTokenMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, personalaccesstoken.FieldTags) +} + +// SetOwnerID sets the "owner_id" field. +func (m *PersonalAccessTokenMutation) SetOwnerID(s string) { + m.owner = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *PersonalAccessTokenMutation) 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 PersonalAccessToken entity. +// If the PersonalAccessToken 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 *PersonalAccessTokenMutation) 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 +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *PersonalAccessTokenMutation) ResetOwnerID() { + m.owner = nil +} + +// SetName sets the "name" field. +func (m *PersonalAccessTokenMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *PersonalAccessTokenMutation) 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 PersonalAccessToken entity. +// If the PersonalAccessToken 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 *PersonalAccessTokenMutation) 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 *PersonalAccessTokenMutation) ResetName() { + m.name = nil +} + +// SetToken sets the "token" field. +func (m *PersonalAccessTokenMutation) SetToken(s string) { + m.token = &s +} + +// Token returns the value of the "token" field in the mutation. +func (m *PersonalAccessTokenMutation) Token() (r string, exists bool) { + v := m.token + if v == nil { + return + } + return *v, true +} + +// OldToken returns the old "token" field's value of the PersonalAccessToken entity. +// If the PersonalAccessToken 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 *PersonalAccessTokenMutation) OldToken(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldToken is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldToken requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldToken: %w", err) + } + return oldValue.Token, nil +} + +// ResetToken resets all changes to the "token" field. +func (m *PersonalAccessTokenMutation) ResetToken() { + m.token = nil +} + +// SetExpiresAt sets the "expires_at" field. +func (m *PersonalAccessTokenMutation) SetExpiresAt(t time.Time) { + m.expires_at = &t +} + +// ExpiresAt returns the value of the "expires_at" field in the mutation. +func (m *PersonalAccessTokenMutation) ExpiresAt() (r time.Time, exists bool) { + v := m.expires_at + if v == nil { + return + } + return *v, true +} + +// OldExpiresAt returns the old "expires_at" field's value of the PersonalAccessToken entity. +// If the PersonalAccessToken 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 *OrgMembershipMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *PersonalAccessTokenMutation) OldExpiresAt(ctx context.Context) (v *time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldExpiresAt 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") + return v, errors.New("OldExpiresAt 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 v, fmt.Errorf("querying old value for OldExpiresAt: %w", err) } - return oldValue.DeletedAt, nil + return oldValue.ExpiresAt, nil } -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *OrgMembershipMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[orgmembership.FieldDeletedAt] = struct{}{} +// ClearExpiresAt clears the value of the "expires_at" field. +func (m *PersonalAccessTokenMutation) ClearExpiresAt() { + m.expires_at = nil + m.clearedFields[personalaccesstoken.FieldExpiresAt] = struct{}{} } -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *OrgMembershipMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[orgmembership.FieldDeletedAt] +// ExpiresAtCleared returns if the "expires_at" field was cleared in this mutation. +func (m *PersonalAccessTokenMutation) ExpiresAtCleared() bool { + _, ok := m.clearedFields[personalaccesstoken.FieldExpiresAt] return ok } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *OrgMembershipMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, orgmembership.FieldDeletedAt) +// ResetExpiresAt resets all changes to the "expires_at" field. +func (m *PersonalAccessTokenMutation) ResetExpiresAt() { + m.expires_at = nil + delete(m.clearedFields, personalaccesstoken.FieldExpiresAt) } -// SetDeletedBy sets the "deleted_by" field. -func (m *OrgMembershipMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetDescription sets the "description" field. +func (m *PersonalAccessTokenMutation) SetDescription(s string) { + m.description = &s } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *OrgMembershipMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// Description returns the value of the "description" field in the mutation. +func (m *PersonalAccessTokenMutation) Description() (r string, exists bool) { + v := m.description if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the OrgMembership entity. -// If the OrgMembership object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the PersonalAccessToken entity. +// If the PersonalAccessToken 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 *OrgMembershipMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *PersonalAccessTokenMutation) OldDescription(ctx context.Context) (v *string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldDescription 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") + 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 OldDeletedBy: %w", err) + return v, fmt.Errorf("querying old value for OldDescription: %w", err) } - return oldValue.DeletedBy, nil + return oldValue.Description, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *OrgMembershipMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[orgmembership.FieldDeletedBy] = struct{}{} +// ClearDescription clears the value of the "description" field. +func (m *PersonalAccessTokenMutation) ClearDescription() { + m.description = nil + m.clearedFields[personalaccesstoken.FieldDescription] = struct{}{} } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *OrgMembershipMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[orgmembership.FieldDeletedBy] +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *PersonalAccessTokenMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[personalaccesstoken.FieldDescription] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *OrgMembershipMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, orgmembership.FieldDeletedBy) +// ResetDescription resets all changes to the "description" field. +func (m *PersonalAccessTokenMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, personalaccesstoken.FieldDescription) } -// SetRole sets the "role" field. -func (m *OrgMembershipMutation) SetRole(e enums.Role) { - m.role = &e +// SetScopes sets the "scopes" field. +func (m *PersonalAccessTokenMutation) SetScopes(s []string) { + m.scopes = &s + m.appendscopes = nil } -// Role returns the value of the "role" field in the mutation. -func (m *OrgMembershipMutation) Role() (r enums.Role, exists bool) { - v := m.role +// Scopes returns the value of the "scopes" field in the mutation. +func (m *PersonalAccessTokenMutation) Scopes() (r []string, exists bool) { + v := m.scopes if v == nil { return } return *v, true } -// OldRole returns the old "role" field's value of the OrgMembership entity. -// If the OrgMembership object wasn't provided to the builder, the object is fetched from the database. +// OldScopes returns the old "scopes" field's value of the PersonalAccessToken entity. +// If the PersonalAccessToken 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 *OrgMembershipMutation) OldRole(ctx context.Context) (v enums.Role, err error) { +func (m *PersonalAccessTokenMutation) OldScopes(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldRole is only allowed on UpdateOne operations") + return v, errors.New("OldScopes is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldRole requires an ID field in the mutation") + return v, errors.New("OldScopes requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldRole: %w", err) + return v, fmt.Errorf("querying old value for OldScopes: %w", err) } - return oldValue.Role, nil + return oldValue.Scopes, nil } -// ResetRole resets all changes to the "role" field. -func (m *OrgMembershipMutation) ResetRole() { - m.role = nil +// AppendScopes adds s to the "scopes" field. +func (m *PersonalAccessTokenMutation) AppendScopes(s []string) { + m.appendscopes = append(m.appendscopes, s...) } -// SetOrganizationID sets the "organization_id" field. -func (m *OrgMembershipMutation) SetOrganizationID(s string) { - m.organization = &s +// AppendedScopes returns the list of values that were appended to the "scopes" field in this mutation. +func (m *PersonalAccessTokenMutation) AppendedScopes() ([]string, bool) { + if len(m.appendscopes) == 0 { + return nil, false + } + return m.appendscopes, true } -// OrganizationID returns the value of the "organization_id" field in the mutation. -func (m *OrgMembershipMutation) OrganizationID() (r string, exists bool) { - v := m.organization - if v == nil { - return - } - return *v, true +// ClearScopes clears the value of the "scopes" field. +func (m *PersonalAccessTokenMutation) ClearScopes() { + m.scopes = nil + m.appendscopes = nil + m.clearedFields[personalaccesstoken.FieldScopes] = struct{}{} } -// OldOrganizationID returns the old "organization_id" field's value of the OrgMembership entity. -// If the OrgMembership 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 *OrgMembershipMutation) OldOrganizationID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOrganizationID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldOrganizationID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldOrganizationID: %w", err) - } - return oldValue.OrganizationID, nil +// ScopesCleared returns if the "scopes" field was cleared in this mutation. +func (m *PersonalAccessTokenMutation) ScopesCleared() bool { + _, ok := m.clearedFields[personalaccesstoken.FieldScopes] + return ok } -// ResetOrganizationID resets all changes to the "organization_id" field. -func (m *OrgMembershipMutation) ResetOrganizationID() { - m.organization = nil +// ResetScopes resets all changes to the "scopes" field. +func (m *PersonalAccessTokenMutation) ResetScopes() { + m.scopes = nil + m.appendscopes = nil + delete(m.clearedFields, personalaccesstoken.FieldScopes) } -// SetUserID sets the "user_id" field. -func (m *OrgMembershipMutation) SetUserID(s string) { - m.user = &s +// SetLastUsedAt sets the "last_used_at" field. +func (m *PersonalAccessTokenMutation) SetLastUsedAt(t time.Time) { + m.last_used_at = &t } -// UserID returns the value of the "user_id" field in the mutation. -func (m *OrgMembershipMutation) UserID() (r string, exists bool) { - v := m.user +// LastUsedAt returns the value of the "last_used_at" field in the mutation. +func (m *PersonalAccessTokenMutation) LastUsedAt() (r time.Time, exists bool) { + v := m.last_used_at if v == nil { return } return *v, true } -// OldUserID returns the old "user_id" field's value of the OrgMembership entity. -// If the OrgMembership object wasn't provided to the builder, the object is fetched from the database. +// OldLastUsedAt returns the old "last_used_at" field's value of the PersonalAccessToken entity. +// If the PersonalAccessToken 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 *OrgMembershipMutation) OldUserID(ctx context.Context) (v string, err error) { +func (m *PersonalAccessTokenMutation) OldLastUsedAt(ctx context.Context) (v *time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUserID is only allowed on UpdateOne operations") + return v, errors.New("OldLastUsedAt 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") + return v, errors.New("OldLastUsedAt 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 v, fmt.Errorf("querying old value for OldLastUsedAt: %w", err) } - return oldValue.UserID, nil + return oldValue.LastUsedAt, nil } -// ResetUserID resets all changes to the "user_id" field. -func (m *OrgMembershipMutation) ResetUserID() { - m.user = nil +// ClearLastUsedAt clears the value of the "last_used_at" field. +func (m *PersonalAccessTokenMutation) ClearLastUsedAt() { + m.last_used_at = nil + m.clearedFields[personalaccesstoken.FieldLastUsedAt] = struct{}{} } -// ClearOrganization clears the "organization" edge to the Organization entity. -func (m *OrgMembershipMutation) ClearOrganization() { - m.clearedorganization = true - m.clearedFields[orgmembership.FieldOrganizationID] = struct{}{} +// LastUsedAtCleared returns if the "last_used_at" field was cleared in this mutation. +func (m *PersonalAccessTokenMutation) LastUsedAtCleared() bool { + _, ok := m.clearedFields[personalaccesstoken.FieldLastUsedAt] + return ok } -// OrganizationCleared reports if the "organization" edge to the Organization entity was cleared. -func (m *OrgMembershipMutation) OrganizationCleared() bool { - return m.clearedorganization +// ResetLastUsedAt resets all changes to the "last_used_at" field. +func (m *PersonalAccessTokenMutation) ResetLastUsedAt() { + m.last_used_at = nil + delete(m.clearedFields, personalaccesstoken.FieldLastUsedAt) } -// OrganizationIDs returns the "organization" edge IDs in the mutation. +// ClearOwner clears the "owner" edge to the User entity. +func (m *PersonalAccessTokenMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[personalaccesstoken.FieldOwnerID] = struct{}{} +} + +// OwnerCleared reports if the "owner" edge to the User entity was cleared. +func (m *PersonalAccessTokenMutation) OwnerCleared() bool { + return 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 -// OrganizationID instead. It exists only for internal usage by the builders. -func (m *OrgMembershipMutation) OrganizationIDs() (ids []string) { - if id := m.organization; id != nil { +// OwnerID instead. It exists only for internal usage by the builders. +func (m *PersonalAccessTokenMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { ids = append(ids, *id) } return } -// ResetOrganization resets all changes to the "organization" edge. -func (m *OrgMembershipMutation) ResetOrganization() { - m.organization = nil - m.clearedorganization = false +// ResetOwner resets all changes to the "owner" edge. +func (m *PersonalAccessTokenMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false } -// ClearUser clears the "user" edge to the User entity. -func (m *OrgMembershipMutation) ClearUser() { - m.cleareduser = true - m.clearedFields[orgmembership.FieldUserID] = struct{}{} +// AddOrganizationIDs adds the "organizations" edge to the Organization entity by ids. +func (m *PersonalAccessTokenMutation) AddOrganizationIDs(ids ...string) { + if m.organizations == nil { + m.organizations = make(map[string]struct{}) + } + for i := range ids { + m.organizations[ids[i]] = struct{}{} + } } -// UserCleared reports if the "user" edge to the User entity was cleared. -func (m *OrgMembershipMutation) UserCleared() bool { - return m.cleareduser +// ClearOrganizations clears the "organizations" edge to the Organization entity. +func (m *PersonalAccessTokenMutation) ClearOrganizations() { + m.clearedorganizations = true } -// 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 *OrgMembershipMutation) UserIDs() (ids []string) { - if id := m.user; id != nil { - ids = append(ids, *id) +// OrganizationsCleared reports if the "organizations" edge to the Organization entity was cleared. +func (m *PersonalAccessTokenMutation) OrganizationsCleared() bool { + return m.clearedorganizations +} + +// RemoveOrganizationIDs removes the "organizations" edge to the Organization entity by IDs. +func (m *PersonalAccessTokenMutation) RemoveOrganizationIDs(ids ...string) { + if m.removedorganizations == nil { + m.removedorganizations = make(map[string]struct{}) + } + for i := range ids { + delete(m.organizations, ids[i]) + m.removedorganizations[ids[i]] = struct{}{} + } +} + +// RemovedOrganizations returns the removed IDs of the "organizations" edge to the Organization entity. +func (m *PersonalAccessTokenMutation) RemovedOrganizationsIDs() (ids []string) { + for id := range m.removedorganizations { + ids = append(ids, id) } return } -// ResetUser resets all changes to the "user" edge. -func (m *OrgMembershipMutation) ResetUser() { - m.user = nil - m.cleareduser = false +// OrganizationsIDs returns the "organizations" edge IDs in the mutation. +func (m *PersonalAccessTokenMutation) OrganizationsIDs() (ids []string) { + for id := range m.organizations { + ids = append(ids, id) + } + return +} + +// ResetOrganizations resets all changes to the "organizations" edge. +func (m *PersonalAccessTokenMutation) ResetOrganizations() { + m.organizations = nil + m.clearedorganizations = false + m.removedorganizations = nil } // AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *OrgMembershipMutation) AddEventIDs(ids ...string) { +func (m *PersonalAccessTokenMutation) AddEventIDs(ids ...string) { if m.events == nil { m.events = make(map[string]struct{}) } @@ -56923,17 +86603,17 @@ func (m *OrgMembershipMutation) AddEventIDs(ids ...string) { } // ClearEvents clears the "events" edge to the Event entity. -func (m *OrgMembershipMutation) ClearEvents() { +func (m *PersonalAccessTokenMutation) ClearEvents() { m.clearedevents = true } // EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *OrgMembershipMutation) EventsCleared() bool { +func (m *PersonalAccessTokenMutation) EventsCleared() bool { return m.clearedevents } // RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *OrgMembershipMutation) RemoveEventIDs(ids ...string) { +func (m *PersonalAccessTokenMutation) RemoveEventIDs(ids ...string) { if m.removedevents == nil { m.removedevents = make(map[string]struct{}) } @@ -56944,7 +86624,7 @@ func (m *OrgMembershipMutation) RemoveEventIDs(ids ...string) { } // RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *OrgMembershipMutation) RemovedEventsIDs() (ids []string) { +func (m *PersonalAccessTokenMutation) RemovedEventsIDs() (ids []string) { for id := range m.removedevents { ids = append(ids, id) } @@ -56952,7 +86632,7 @@ func (m *OrgMembershipMutation) RemovedEventsIDs() (ids []string) { } // EventsIDs returns the "events" edge IDs in the mutation. -func (m *OrgMembershipMutation) EventsIDs() (ids []string) { +func (m *PersonalAccessTokenMutation) EventsIDs() (ids []string) { for id := range m.events { ids = append(ids, id) } @@ -56960,21 +86640,21 @@ func (m *OrgMembershipMutation) EventsIDs() (ids []string) { } // ResetEvents resets all changes to the "events" edge. -func (m *OrgMembershipMutation) ResetEvents() { +func (m *PersonalAccessTokenMutation) ResetEvents() { m.events = nil m.clearedevents = false m.removedevents = nil } -// Where appends a list predicates to the OrgMembershipMutation builder. -func (m *OrgMembershipMutation) Where(ps ...predicate.OrgMembership) { +// Where appends a list predicates to the PersonalAccessTokenMutation builder. +func (m *PersonalAccessTokenMutation) Where(ps ...predicate.PersonalAccessToken) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the OrgMembershipMutation builder. Using this method, +// WhereP appends storage-level predicates to the PersonalAccessTokenMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *OrgMembershipMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.OrgMembership, len(ps)) +func (m *PersonalAccessTokenMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.PersonalAccessToken, len(ps)) for i := range ps { p[i] = ps[i] } @@ -56982,54 +86662,69 @@ func (m *OrgMembershipMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *OrgMembershipMutation) Op() Op { +func (m *PersonalAccessTokenMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *OrgMembershipMutation) SetOp(op Op) { +func (m *PersonalAccessTokenMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (OrgMembership). -func (m *OrgMembershipMutation) Type() string { +// Type returns the node type of this mutation (PersonalAccessToken). +func (m *PersonalAccessTokenMutation) 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 *OrgMembershipMutation) Fields() []string { - fields := make([]string, 0, 10) +func (m *PersonalAccessTokenMutation) Fields() []string { + fields := make([]string, 0, 15) if m.created_at != nil { - fields = append(fields, orgmembership.FieldCreatedAt) + fields = append(fields, personalaccesstoken.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, orgmembership.FieldUpdatedAt) + fields = append(fields, personalaccesstoken.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, orgmembership.FieldCreatedBy) + fields = append(fields, personalaccesstoken.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, orgmembership.FieldUpdatedBy) - } - if m.mapping_id != nil { - fields = append(fields, orgmembership.FieldMappingID) + fields = append(fields, personalaccesstoken.FieldUpdatedBy) } if m.deleted_at != nil { - fields = append(fields, orgmembership.FieldDeletedAt) + fields = append(fields, personalaccesstoken.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, orgmembership.FieldDeletedBy) + fields = append(fields, personalaccesstoken.FieldDeletedBy) } - if m.role != nil { - fields = append(fields, orgmembership.FieldRole) + if m.mapping_id != nil { + fields = append(fields, personalaccesstoken.FieldMappingID) } - if m.organization != nil { - fields = append(fields, orgmembership.FieldOrganizationID) + if m.tags != nil { + fields = append(fields, personalaccesstoken.FieldTags) } - if m.user != nil { - fields = append(fields, orgmembership.FieldUserID) + if m.owner != nil { + fields = append(fields, personalaccesstoken.FieldOwnerID) + } + if m.name != nil { + fields = append(fields, personalaccesstoken.FieldName) + } + if m.token != nil { + fields = append(fields, personalaccesstoken.FieldToken) + } + if m.expires_at != nil { + fields = append(fields, personalaccesstoken.FieldExpiresAt) + } + if m.description != nil { + fields = append(fields, personalaccesstoken.FieldDescription) + } + if m.scopes != nil { + fields = append(fields, personalaccesstoken.FieldScopes) + } + if m.last_used_at != nil { + fields = append(fields, personalaccesstoken.FieldLastUsedAt) } return fields } @@ -57037,28 +86732,38 @@ func (m *OrgMembershipMutation) Fields() []string { // 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 *OrgMembershipMutation) Field(name string) (ent.Value, bool) { +func (m *PersonalAccessTokenMutation) Field(name string) (ent.Value, bool) { switch name { - case orgmembership.FieldCreatedAt: + case personalaccesstoken.FieldCreatedAt: return m.CreatedAt() - case orgmembership.FieldUpdatedAt: + case personalaccesstoken.FieldUpdatedAt: return m.UpdatedAt() - case orgmembership.FieldCreatedBy: + case personalaccesstoken.FieldCreatedBy: return m.CreatedBy() - case orgmembership.FieldUpdatedBy: + case personalaccesstoken.FieldUpdatedBy: return m.UpdatedBy() - case orgmembership.FieldMappingID: - return m.MappingID() - case orgmembership.FieldDeletedAt: + case personalaccesstoken.FieldDeletedAt: return m.DeletedAt() - case orgmembership.FieldDeletedBy: + case personalaccesstoken.FieldDeletedBy: return m.DeletedBy() - case orgmembership.FieldRole: - return m.Role() - case orgmembership.FieldOrganizationID: - return m.OrganizationID() - case orgmembership.FieldUserID: - return m.UserID() + case personalaccesstoken.FieldMappingID: + return m.MappingID() + case personalaccesstoken.FieldTags: + return m.Tags() + case personalaccesstoken.FieldOwnerID: + return m.OwnerID() + case personalaccesstoken.FieldName: + return m.Name() + case personalaccesstoken.FieldToken: + return m.Token() + case personalaccesstoken.FieldExpiresAt: + return m.ExpiresAt() + case personalaccesstoken.FieldDescription: + return m.Description() + case personalaccesstoken.FieldScopes: + return m.Scopes() + case personalaccesstoken.FieldLastUsedAt: + return m.LastUsedAt() } return nil, false } @@ -57066,257 +86771,349 @@ func (m *OrgMembershipMutation) Field(name string) (ent.Value, bool) { // 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 *OrgMembershipMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *PersonalAccessTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case orgmembership.FieldCreatedAt: + case personalaccesstoken.FieldCreatedAt: return m.OldCreatedAt(ctx) - case orgmembership.FieldUpdatedAt: + case personalaccesstoken.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case orgmembership.FieldCreatedBy: + case personalaccesstoken.FieldCreatedBy: return m.OldCreatedBy(ctx) - case orgmembership.FieldUpdatedBy: + case personalaccesstoken.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case orgmembership.FieldMappingID: - return m.OldMappingID(ctx) - case orgmembership.FieldDeletedAt: + case personalaccesstoken.FieldDeletedAt: return m.OldDeletedAt(ctx) - case orgmembership.FieldDeletedBy: + case personalaccesstoken.FieldDeletedBy: return m.OldDeletedBy(ctx) - case orgmembership.FieldRole: - return m.OldRole(ctx) - case orgmembership.FieldOrganizationID: - return m.OldOrganizationID(ctx) - case orgmembership.FieldUserID: - return m.OldUserID(ctx) + case personalaccesstoken.FieldMappingID: + return m.OldMappingID(ctx) + case personalaccesstoken.FieldTags: + return m.OldTags(ctx) + case personalaccesstoken.FieldOwnerID: + return m.OldOwnerID(ctx) + case personalaccesstoken.FieldName: + return m.OldName(ctx) + case personalaccesstoken.FieldToken: + return m.OldToken(ctx) + case personalaccesstoken.FieldExpiresAt: + return m.OldExpiresAt(ctx) + case personalaccesstoken.FieldDescription: + return m.OldDescription(ctx) + case personalaccesstoken.FieldScopes: + return m.OldScopes(ctx) + case personalaccesstoken.FieldLastUsedAt: + return m.OldLastUsedAt(ctx) } - return nil, fmt.Errorf("unknown OrgMembership field %s", name) + return nil, fmt.Errorf("unknown PersonalAccessToken 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 *OrgMembershipMutation) SetField(name string, value ent.Value) error { +func (m *PersonalAccessTokenMutation) SetField(name string, value ent.Value) error { switch name { - case orgmembership.FieldCreatedAt: + case personalaccesstoken.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 orgmembership.FieldUpdatedAt: + case personalaccesstoken.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 orgmembership.FieldCreatedBy: + case personalaccesstoken.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case orgmembership.FieldUpdatedBy: + case personalaccesstoken.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case personalaccesstoken.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 personalaccesstoken.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case personalaccesstoken.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case personalaccesstoken.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case personalaccesstoken.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case personalaccesstoken.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetUpdatedBy(v) + m.SetName(v) return nil - case orgmembership.FieldMappingID: + case personalaccesstoken.FieldToken: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMappingID(v) + m.SetToken(v) return nil - case orgmembership.FieldDeletedAt: + case personalaccesstoken.FieldExpiresAt: v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetExpiresAt(v) return nil - case orgmembership.FieldDeletedBy: + case personalaccesstoken.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) - return nil - case orgmembership.FieldRole: - v, ok := value.(enums.Role) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetRole(v) + m.SetDescription(v) return nil - case orgmembership.FieldOrganizationID: - v, ok := value.(string) + case personalaccesstoken.FieldScopes: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOrganizationID(v) + m.SetScopes(v) return nil - case orgmembership.FieldUserID: - v, ok := value.(string) + case personalaccesstoken.FieldLastUsedAt: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetUserID(v) + m.SetLastUsedAt(v) return nil } - return fmt.Errorf("unknown OrgMembership field %s", name) + return fmt.Errorf("unknown PersonalAccessToken field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *OrgMembershipMutation) AddedFields() []string { +func (m *PersonalAccessTokenMutation) 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 *OrgMembershipMutation) AddedField(name string) (ent.Value, bool) { +func (m *PersonalAccessTokenMutation) 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 *OrgMembershipMutation) AddField(name string, value ent.Value) error { +func (m *PersonalAccessTokenMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown OrgMembership numeric field %s", name) + return fmt.Errorf("unknown PersonalAccessToken numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *OrgMembershipMutation) ClearedFields() []string { +func (m *PersonalAccessTokenMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(orgmembership.FieldCreatedAt) { - fields = append(fields, orgmembership.FieldCreatedAt) + if m.FieldCleared(personalaccesstoken.FieldCreatedAt) { + fields = append(fields, personalaccesstoken.FieldCreatedAt) } - if m.FieldCleared(orgmembership.FieldUpdatedAt) { - fields = append(fields, orgmembership.FieldUpdatedAt) + if m.FieldCleared(personalaccesstoken.FieldUpdatedAt) { + fields = append(fields, personalaccesstoken.FieldUpdatedAt) } - if m.FieldCleared(orgmembership.FieldCreatedBy) { - fields = append(fields, orgmembership.FieldCreatedBy) + if m.FieldCleared(personalaccesstoken.FieldCreatedBy) { + fields = append(fields, personalaccesstoken.FieldCreatedBy) } - if m.FieldCleared(orgmembership.FieldUpdatedBy) { - fields = append(fields, orgmembership.FieldUpdatedBy) + if m.FieldCleared(personalaccesstoken.FieldUpdatedBy) { + fields = append(fields, personalaccesstoken.FieldUpdatedBy) } - if m.FieldCleared(orgmembership.FieldDeletedAt) { - fields = append(fields, orgmembership.FieldDeletedAt) + if m.FieldCleared(personalaccesstoken.FieldDeletedAt) { + fields = append(fields, personalaccesstoken.FieldDeletedAt) } - if m.FieldCleared(orgmembership.FieldDeletedBy) { - fields = append(fields, orgmembership.FieldDeletedBy) + if m.FieldCleared(personalaccesstoken.FieldDeletedBy) { + fields = append(fields, personalaccesstoken.FieldDeletedBy) + } + if m.FieldCleared(personalaccesstoken.FieldTags) { + fields = append(fields, personalaccesstoken.FieldTags) + } + if m.FieldCleared(personalaccesstoken.FieldExpiresAt) { + fields = append(fields, personalaccesstoken.FieldExpiresAt) + } + if m.FieldCleared(personalaccesstoken.FieldDescription) { + fields = append(fields, personalaccesstoken.FieldDescription) + } + if m.FieldCleared(personalaccesstoken.FieldScopes) { + fields = append(fields, personalaccesstoken.FieldScopes) + } + if m.FieldCleared(personalaccesstoken.FieldLastUsedAt) { + fields = append(fields, personalaccesstoken.FieldLastUsedAt) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *OrgMembershipMutation) FieldCleared(name string) bool { +func (m *PersonalAccessTokenMutation) 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 *OrgMembershipMutation) ClearField(name string) error { +func (m *PersonalAccessTokenMutation) ClearField(name string) error { switch name { - case orgmembership.FieldCreatedAt: + case personalaccesstoken.FieldCreatedAt: m.ClearCreatedAt() return nil - case orgmembership.FieldUpdatedAt: + case personalaccesstoken.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case orgmembership.FieldCreatedBy: + case personalaccesstoken.FieldCreatedBy: m.ClearCreatedBy() return nil - case orgmembership.FieldUpdatedBy: + case personalaccesstoken.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case orgmembership.FieldDeletedAt: + case personalaccesstoken.FieldDeletedAt: m.ClearDeletedAt() return nil - case orgmembership.FieldDeletedBy: + case personalaccesstoken.FieldDeletedBy: m.ClearDeletedBy() return nil + case personalaccesstoken.FieldTags: + m.ClearTags() + return nil + case personalaccesstoken.FieldExpiresAt: + m.ClearExpiresAt() + return nil + case personalaccesstoken.FieldDescription: + m.ClearDescription() + return nil + case personalaccesstoken.FieldScopes: + m.ClearScopes() + return nil + case personalaccesstoken.FieldLastUsedAt: + m.ClearLastUsedAt() + return nil } - return fmt.Errorf("unknown OrgMembership nullable field %s", name) + return fmt.Errorf("unknown PersonalAccessToken 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 *OrgMembershipMutation) ResetField(name string) error { +func (m *PersonalAccessTokenMutation) ResetField(name string) error { switch name { - case orgmembership.FieldCreatedAt: + case personalaccesstoken.FieldCreatedAt: m.ResetCreatedAt() return nil - case orgmembership.FieldUpdatedAt: + case personalaccesstoken.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case orgmembership.FieldCreatedBy: + case personalaccesstoken.FieldCreatedBy: m.ResetCreatedBy() return nil - case orgmembership.FieldUpdatedBy: + case personalaccesstoken.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case orgmembership.FieldMappingID: - m.ResetMappingID() - return nil - case orgmembership.FieldDeletedAt: + case personalaccesstoken.FieldDeletedAt: m.ResetDeletedAt() return nil - case orgmembership.FieldDeletedBy: + case personalaccesstoken.FieldDeletedBy: m.ResetDeletedBy() return nil - case orgmembership.FieldRole: - m.ResetRole() + case personalaccesstoken.FieldMappingID: + m.ResetMappingID() return nil - case orgmembership.FieldOrganizationID: - m.ResetOrganizationID() + case personalaccesstoken.FieldTags: + m.ResetTags() return nil - case orgmembership.FieldUserID: - m.ResetUserID() + case personalaccesstoken.FieldOwnerID: + m.ResetOwnerID() + return nil + case personalaccesstoken.FieldName: + m.ResetName() + return nil + case personalaccesstoken.FieldToken: + m.ResetToken() + return nil + case personalaccesstoken.FieldExpiresAt: + m.ResetExpiresAt() + return nil + case personalaccesstoken.FieldDescription: + m.ResetDescription() + return nil + case personalaccesstoken.FieldScopes: + m.ResetScopes() + return nil + case personalaccesstoken.FieldLastUsedAt: + m.ResetLastUsedAt() return nil } - return fmt.Errorf("unknown OrgMembership field %s", name) + return fmt.Errorf("unknown PersonalAccessToken field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *OrgMembershipMutation) AddedEdges() []string { +func (m *PersonalAccessTokenMutation) AddedEdges() []string { edges := make([]string, 0, 3) - if m.organization != nil { - edges = append(edges, orgmembership.EdgeOrganization) + if m.owner != nil { + edges = append(edges, personalaccesstoken.EdgeOwner) } - if m.user != nil { - edges = append(edges, orgmembership.EdgeUser) + if m.organizations != nil { + edges = append(edges, personalaccesstoken.EdgeOrganizations) } if m.events != nil { - edges = append(edges, orgmembership.EdgeEvents) + edges = append(edges, personalaccesstoken.EdgeEvents) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *OrgMembershipMutation) AddedIDs(name string) []ent.Value { +func (m *PersonalAccessTokenMutation) AddedIDs(name string) []ent.Value { switch name { - case orgmembership.EdgeOrganization: - if id := m.organization; id != nil { + case personalaccesstoken.EdgeOwner: + if id := m.owner; id != nil { return []ent.Value{*id} } - case orgmembership.EdgeUser: - if id := m.user; id != nil { - return []ent.Value{*id} + case personalaccesstoken.EdgeOrganizations: + ids := make([]ent.Value, 0, len(m.organizations)) + for id := range m.organizations { + ids = append(ids, id) } - case orgmembership.EdgeEvents: + return ids + case personalaccesstoken.EdgeEvents: ids := make([]ent.Value, 0, len(m.events)) for id := range m.events { ids = append(ids, id) @@ -57327,19 +87124,28 @@ func (m *OrgMembershipMutation) AddedIDs(name string) []ent.Value { } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *OrgMembershipMutation) RemovedEdges() []string { +func (m *PersonalAccessTokenMutation) RemovedEdges() []string { edges := make([]string, 0, 3) + if m.removedorganizations != nil { + edges = append(edges, personalaccesstoken.EdgeOrganizations) + } if m.removedevents != nil { - edges = append(edges, orgmembership.EdgeEvents) + edges = append(edges, personalaccesstoken.EdgeEvents) } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *OrgMembershipMutation) RemovedIDs(name string) []ent.Value { +func (m *PersonalAccessTokenMutation) RemovedIDs(name string) []ent.Value { switch name { - case orgmembership.EdgeEvents: + case personalaccesstoken.EdgeOrganizations: + ids := make([]ent.Value, 0, len(m.removedorganizations)) + for id := range m.removedorganizations { + ids = append(ids, id) + } + return ids + case personalaccesstoken.EdgeEvents: ids := make([]ent.Value, 0, len(m.removedevents)) for id := range m.removedevents { ids = append(ids, id) @@ -57350,29 +87156,29 @@ func (m *OrgMembershipMutation) RemovedIDs(name string) []ent.Value { } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *OrgMembershipMutation) ClearedEdges() []string { +func (m *PersonalAccessTokenMutation) ClearedEdges() []string { edges := make([]string, 0, 3) - if m.clearedorganization { - edges = append(edges, orgmembership.EdgeOrganization) + if m.clearedowner { + edges = append(edges, personalaccesstoken.EdgeOwner) } - if m.cleareduser { - edges = append(edges, orgmembership.EdgeUser) + if m.clearedorganizations { + edges = append(edges, personalaccesstoken.EdgeOrganizations) } if m.clearedevents { - edges = append(edges, orgmembership.EdgeEvents) + edges = append(edges, personalaccesstoken.EdgeEvents) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *OrgMembershipMutation) EdgeCleared(name string) bool { +func (m *PersonalAccessTokenMutation) EdgeCleared(name string) bool { switch name { - case orgmembership.EdgeOrganization: - return m.clearedorganization - case orgmembership.EdgeUser: - return m.cleareduser - case orgmembership.EdgeEvents: + case personalaccesstoken.EdgeOwner: + return m.clearedowner + case personalaccesstoken.EdgeOrganizations: + return m.clearedorganizations + case personalaccesstoken.EdgeEvents: return m.clearedevents } return false @@ -57380,71 +87186,85 @@ func (m *OrgMembershipMutation) EdgeCleared(name string) bool { // 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 *OrgMembershipMutation) ClearEdge(name string) error { +func (m *PersonalAccessTokenMutation) ClearEdge(name string) error { switch name { - case orgmembership.EdgeOrganization: - m.ClearOrganization() - return nil - case orgmembership.EdgeUser: - m.ClearUser() + case personalaccesstoken.EdgeOwner: + m.ClearOwner() return nil } - return fmt.Errorf("unknown OrgMembership unique edge %s", name) + return fmt.Errorf("unknown PersonalAccessToken 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 *OrgMembershipMutation) ResetEdge(name string) error { +func (m *PersonalAccessTokenMutation) ResetEdge(name string) error { switch name { - case orgmembership.EdgeOrganization: - m.ResetOrganization() + case personalaccesstoken.EdgeOwner: + m.ResetOwner() return nil - case orgmembership.EdgeUser: - m.ResetUser() + case personalaccesstoken.EdgeOrganizations: + m.ResetOrganizations() return nil - case orgmembership.EdgeEvents: + case personalaccesstoken.EdgeEvents: m.ResetEvents() return nil } - return fmt.Errorf("unknown OrgMembership edge %s", name) + return fmt.Errorf("unknown PersonalAccessToken edge %s", name) } -// OrgMembershipHistoryMutation represents an operation that mutates the OrgMembershipHistory nodes in the graph. -type OrgMembershipHistoryMutation struct { +// ProcedureMutation represents an operation that mutates the Procedure nodes in the graph. +type ProcedureMutation 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 - mapping_id *string - deleted_at *time.Time - deleted_by *string - role *enums.Role - organization_id *string - user_id *string - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*OrgMembershipHistory, error) - predicates []predicate.OrgMembershipHistory -} - -var _ ent.Mutation = (*OrgMembershipHistoryMutation)(nil) - -// orgmembershiphistoryOption allows management of the mutation configuration using functional options. -type orgmembershiphistoryOption func(*OrgMembershipHistoryMutation) - -// newOrgMembershipHistoryMutation creates new mutation for the OrgMembershipHistory entity. -func newOrgMembershipHistoryMutation(c config, op Op, opts ...orgmembershiphistoryOption) *OrgMembershipHistoryMutation { - m := &OrgMembershipHistoryMutation{ + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + status *string + procedure_type *string + version *string + purpose_and_scope *string + background *string + satisfies *string + details *map[string]interface{} + clearedFields map[string]struct{} + control map[string]struct{} + removedcontrol map[string]struct{} + clearedcontrol bool + internalpolicy map[string]struct{} + removedinternalpolicy map[string]struct{} + clearedinternalpolicy bool + narratives map[string]struct{} + removednarratives map[string]struct{} + clearednarratives bool + risks map[string]struct{} + removedrisks map[string]struct{} + clearedrisks bool + done bool + oldValue func(context.Context) (*Procedure, error) + predicates []predicate.Procedure +} + +var _ ent.Mutation = (*ProcedureMutation)(nil) + +// procedureOption allows management of the mutation configuration using functional options. +type procedureOption func(*ProcedureMutation) + +// newProcedureMutation creates new mutation for the Procedure entity. +func newProcedureMutation(c config, op Op, opts ...procedureOption) *ProcedureMutation { + m := &ProcedureMutation{ config: c, op: op, - typ: TypeOrgMembershipHistory, + typ: TypeProcedure, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -57453,659 +87273,1139 @@ func newOrgMembershipHistoryMutation(c config, op Op, opts ...orgmembershiphisto return m } -// withOrgMembershipHistoryID sets the ID field of the mutation. -func withOrgMembershipHistoryID(id string) orgmembershiphistoryOption { - return func(m *OrgMembershipHistoryMutation) { - var ( - err error - once sync.Once - value *OrgMembershipHistory - ) - m.oldValue = func(ctx context.Context) (*OrgMembershipHistory, error) { - once.Do(func() { - if m.done { - err = errors.New("querying old values post mutation is not allowed") - } else { - value, err = m.Client().OrgMembershipHistory.Get(ctx, id) - } - }) - return value, err - } - m.id = &id +// withProcedureID sets the ID field of the mutation. +func withProcedureID(id string) procedureOption { + return func(m *ProcedureMutation) { + var ( + err error + once sync.Once + value *Procedure + ) + m.oldValue = func(ctx context.Context) (*Procedure, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().Procedure.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withProcedure sets the old Procedure of the mutation. +func withProcedure(node *Procedure) procedureOption { + return func(m *ProcedureMutation) { + m.oldValue = func(context.Context) (*Procedure, 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 ProcedureMutation) 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 ProcedureMutation) 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 Procedure entities. +func (m *ProcedureMutation) 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 *ProcedureMutation) 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 *ProcedureMutation) 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().Procedure.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 *ProcedureMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *ProcedureMutation) 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 Procedure entity. +// If the Procedure 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 *ProcedureMutation) 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 *ProcedureMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[procedure.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *ProcedureMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[procedure.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *ProcedureMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, procedure.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *ProcedureMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *ProcedureMutation) 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 Procedure entity. +// If the Procedure 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 *ProcedureMutation) 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 *ProcedureMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[procedure.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *ProcedureMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[procedure.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *ProcedureMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, procedure.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *ProcedureMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *ProcedureMutation) 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 Procedure entity. +// If the Procedure 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 *ProcedureMutation) 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 *ProcedureMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[procedure.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *ProcedureMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[procedure.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *ProcedureMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, procedure.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *ProcedureMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *ProcedureMutation) 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 Procedure entity. +// If the Procedure 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 *ProcedureMutation) 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 *ProcedureMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[procedure.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *ProcedureMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[procedure.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *ProcedureMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, procedure.FieldUpdatedBy) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *ProcedureMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *ProcedureMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at + if v == nil { + return } + return *v, true } -// withOrgMembershipHistory sets the old OrgMembershipHistory of the mutation. -func withOrgMembershipHistory(node *OrgMembershipHistory) orgmembershiphistoryOption { - return func(m *OrgMembershipHistoryMutation) { - m.oldValue = func(context.Context) (*OrgMembershipHistory, error) { - return node, nil - } - m.id = &node.ID +// OldDeletedAt returns the old "deleted_at" field's value of the Procedure entity. +// If the Procedure 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 *ProcedureMutation) 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 } -// 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 OrgMembershipHistoryMutation) Client() *Client { - client := &Client{config: m.config} - client.init() - return client +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *ProcedureMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[procedure.FieldDeletedAt] = struct{}{} } -// Tx returns an `ent.Tx` for mutations that were executed in transactions; -// it returns an error otherwise. -func (m OrgMembershipHistoryMutation) 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 +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *ProcedureMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[procedure.FieldDeletedAt] + return ok } -// SetID sets the value of the id field. Note that this -// operation is only accepted on creation of OrgMembershipHistory entities. -func (m *OrgMembershipHistoryMutation) SetID(id string) { - m.id = &id +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *ProcedureMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, procedure.FieldDeletedAt) } -// 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 *OrgMembershipHistoryMutation) ID() (id string, exists bool) { - if m.id == nil { +// SetDeletedBy sets the "deleted_by" field. +func (m *ProcedureMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *ProcedureMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by + if v == nil { return } - return *m.id, true + return *v, 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 *OrgMembershipHistoryMutation) 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().OrgMembershipHistory.Query().Where(m.predicates...).IDs(ctx) - default: - return nil, fmt.Errorf("IDs is not allowed on %s operations", m.op) +// OldDeletedBy returns the old "deleted_by" field's value of the Procedure entity. +// If the Procedure 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 *ProcedureMutation) 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 } -// SetHistoryTime sets the "history_time" field. -func (m *OrgMembershipHistoryMutation) SetHistoryTime(t time.Time) { - m.history_time = &t +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *ProcedureMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[procedure.FieldDeletedBy] = struct{}{} } -// HistoryTime returns the value of the "history_time" field in the mutation. -func (m *OrgMembershipHistoryMutation) HistoryTime() (r time.Time, exists bool) { - v := m.history_time +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *ProcedureMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[procedure.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *ProcedureMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, procedure.FieldDeletedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *ProcedureMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *ProcedureMutation) MappingID() (r string, exists bool) { + v := m.mapping_id if v == nil { return } return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the Procedure entity. +// If the Procedure 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 *OrgMembershipHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *ProcedureMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldHistoryTime is only allowed on UpdateOne operations") + return v, errors.New("OldMappingID 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") + return v, errors.New("OldMappingID 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 v, fmt.Errorf("querying old value for OldMappingID: %w", err) } - return oldValue.HistoryTime, nil + return oldValue.MappingID, nil } -// ResetHistoryTime resets all changes to the "history_time" field. -func (m *OrgMembershipHistoryMutation) ResetHistoryTime() { - m.history_time = nil +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *ProcedureMutation) ResetMappingID() { + m.mapping_id = nil } -// SetRef sets the "ref" field. -func (m *OrgMembershipHistoryMutation) SetRef(s string) { - m.ref = &s +// SetTags sets the "tags" field. +func (m *ProcedureMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// Ref returns the value of the "ref" field in the mutation. -func (m *OrgMembershipHistoryMutation) Ref() (r string, exists bool) { - v := m.ref +// Tags returns the value of the "tags" field in the mutation. +func (m *ProcedureMutation) Tags() (r []string, exists bool) { + v := m.tags if v == nil { return } return *v, true } -// OldRef returns the old "ref" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the Procedure entity. +// If the Procedure 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 *OrgMembershipHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *ProcedureMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldRef is only allowed on UpdateOne operations") + return v, errors.New("OldTags 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") + 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 OldRef: %w", err) + return v, fmt.Errorf("querying old value for OldTags: %w", err) } - return oldValue.Ref, nil + return oldValue.Tags, nil } -// ClearRef clears the value of the "ref" field. -func (m *OrgMembershipHistoryMutation) ClearRef() { - m.ref = nil - m.clearedFields[orgmembershiphistory.FieldRef] = struct{}{} +// AppendTags adds s to the "tags" field. +func (m *ProcedureMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) } -// RefCleared returns if the "ref" field was cleared in this mutation. -func (m *OrgMembershipHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[orgmembershiphistory.FieldRef] +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *ProcedureMutation) 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 *ProcedureMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[procedure.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *ProcedureMutation) TagsCleared() bool { + _, ok := m.clearedFields[procedure.FieldTags] return ok } -// ResetRef resets all changes to the "ref" field. -func (m *OrgMembershipHistoryMutation) ResetRef() { - m.ref = nil - delete(m.clearedFields, orgmembershiphistory.FieldRef) +// ResetTags resets all changes to the "tags" field. +func (m *ProcedureMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, procedure.FieldTags) } -// SetOperation sets the "operation" field. -func (m *OrgMembershipHistoryMutation) SetOperation(ht history.OpType) { - m.operation = &ht +// SetName sets the "name" field. +func (m *ProcedureMutation) SetName(s string) { + m.name = &s } -// Operation returns the value of the "operation" field in the mutation. -func (m *OrgMembershipHistoryMutation) Operation() (r history.OpType, exists bool) { - v := m.operation +// Name returns the value of the "name" field in the mutation. +func (m *ProcedureMutation) Name() (r string, exists bool) { + v := m.name if v == nil { return } return *v, true } -// OldOperation returns the old "operation" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the Procedure entity. +// If the Procedure 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 *OrgMembershipHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *ProcedureMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOperation is only allowed on UpdateOne operations") + return v, errors.New("OldName 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") + 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 OldOperation: %w", err) + return v, fmt.Errorf("querying old value for OldName: %w", err) } - return oldValue.Operation, nil + return oldValue.Name, nil } -// ResetOperation resets all changes to the "operation" field. -func (m *OrgMembershipHistoryMutation) ResetOperation() { - m.operation = nil +// ResetName resets all changes to the "name" field. +func (m *ProcedureMutation) ResetName() { + m.name = nil } -// SetCreatedAt sets the "created_at" field. -func (m *OrgMembershipHistoryMutation) SetCreatedAt(t time.Time) { - m.created_at = &t +// SetDescription sets the "description" field. +func (m *ProcedureMutation) SetDescription(s string) { + m.description = &s } -// CreatedAt returns the value of the "created_at" field in the mutation. -func (m *OrgMembershipHistoryMutation) CreatedAt() (r time.Time, exists bool) { - v := m.created_at +// Description returns the value of the "description" field in the mutation. +func (m *ProcedureMutation) Description() (r string, exists bool) { + v := m.description if v == nil { return } return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the Procedure entity. +// If the Procedure 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 *OrgMembershipHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ProcedureMutation) OldDescription(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldDescription 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") + 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 OldCreatedAt: %w", err) + return v, fmt.Errorf("querying old value for OldDescription: %w", err) } - return oldValue.CreatedAt, nil + return oldValue.Description, nil } -// ClearCreatedAt clears the value of the "created_at" field. -func (m *OrgMembershipHistoryMutation) ClearCreatedAt() { - m.created_at = nil - m.clearedFields[orgmembershiphistory.FieldCreatedAt] = struct{}{} +// ClearDescription clears the value of the "description" field. +func (m *ProcedureMutation) ClearDescription() { + m.description = nil + m.clearedFields[procedure.FieldDescription] = struct{}{} } -// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *OrgMembershipHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[orgmembershiphistory.FieldCreatedAt] +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *ProcedureMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[procedure.FieldDescription] return ok } -// ResetCreatedAt resets all changes to the "created_at" field. -func (m *OrgMembershipHistoryMutation) ResetCreatedAt() { - m.created_at = nil - delete(m.clearedFields, orgmembershiphistory.FieldCreatedAt) +// ResetDescription resets all changes to the "description" field. +func (m *ProcedureMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, procedure.FieldDescription) } -// SetUpdatedAt sets the "updated_at" field. -func (m *OrgMembershipHistoryMutation) SetUpdatedAt(t time.Time) { - m.updated_at = &t +// SetStatus sets the "status" field. +func (m *ProcedureMutation) SetStatus(s string) { + m.status = &s } -// UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *OrgMembershipHistoryMutation) UpdatedAt() (r time.Time, exists bool) { - v := m.updated_at +// Status returns the value of the "status" field in the mutation. +func (m *ProcedureMutation) Status() (r string, exists bool) { + v := m.status if v == nil { return } return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldStatus returns the old "status" field's value of the Procedure entity. +// If the Procedure 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 *OrgMembershipHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *ProcedureMutation) OldStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldStatus 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") + return v, errors.New("OldStatus 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 v, fmt.Errorf("querying old value for OldStatus: %w", err) } - return oldValue.UpdatedAt, nil + return oldValue.Status, nil } -// ClearUpdatedAt clears the value of the "updated_at" field. -func (m *OrgMembershipHistoryMutation) ClearUpdatedAt() { - m.updated_at = nil - m.clearedFields[orgmembershiphistory.FieldUpdatedAt] = struct{}{} +// ClearStatus clears the value of the "status" field. +func (m *ProcedureMutation) ClearStatus() { + m.status = nil + m.clearedFields[procedure.FieldStatus] = struct{}{} } -// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *OrgMembershipHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[orgmembershiphistory.FieldUpdatedAt] +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *ProcedureMutation) StatusCleared() bool { + _, ok := m.clearedFields[procedure.FieldStatus] return ok } -// ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *OrgMembershipHistoryMutation) ResetUpdatedAt() { - m.updated_at = nil - delete(m.clearedFields, orgmembershiphistory.FieldUpdatedAt) +// ResetStatus resets all changes to the "status" field. +func (m *ProcedureMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, procedure.FieldStatus) } -// SetCreatedBy sets the "created_by" field. -func (m *OrgMembershipHistoryMutation) SetCreatedBy(s string) { - m.created_by = &s +// SetProcedureType sets the "procedure_type" field. +func (m *ProcedureMutation) SetProcedureType(s string) { + m.procedure_type = &s } -// CreatedBy returns the value of the "created_by" field in the mutation. -func (m *OrgMembershipHistoryMutation) CreatedBy() (r string, exists bool) { - v := m.created_by +// ProcedureType returns the value of the "procedure_type" field in the mutation. +func (m *ProcedureMutation) ProcedureType() (r string, exists bool) { + v := m.procedure_type if v == nil { return } return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldProcedureType returns the old "procedure_type" field's value of the Procedure entity. +// If the Procedure 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 *OrgMembershipHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *ProcedureMutation) OldProcedureType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") + return v, errors.New("OldProcedureType 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") + return v, errors.New("OldProcedureType 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 v, fmt.Errorf("querying old value for OldProcedureType: %w", err) } - return oldValue.CreatedBy, nil + return oldValue.ProcedureType, nil } -// ClearCreatedBy clears the value of the "created_by" field. -func (m *OrgMembershipHistoryMutation) ClearCreatedBy() { - m.created_by = nil - m.clearedFields[orgmembershiphistory.FieldCreatedBy] = struct{}{} +// ClearProcedureType clears the value of the "procedure_type" field. +func (m *ProcedureMutation) ClearProcedureType() { + m.procedure_type = nil + m.clearedFields[procedure.FieldProcedureType] = struct{}{} } -// CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *OrgMembershipHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[orgmembershiphistory.FieldCreatedBy] +// ProcedureTypeCleared returns if the "procedure_type" field was cleared in this mutation. +func (m *ProcedureMutation) ProcedureTypeCleared() bool { + _, ok := m.clearedFields[procedure.FieldProcedureType] return ok } -// ResetCreatedBy resets all changes to the "created_by" field. -func (m *OrgMembershipHistoryMutation) ResetCreatedBy() { - m.created_by = nil - delete(m.clearedFields, orgmembershiphistory.FieldCreatedBy) +// ResetProcedureType resets all changes to the "procedure_type" field. +func (m *ProcedureMutation) ResetProcedureType() { + m.procedure_type = nil + delete(m.clearedFields, procedure.FieldProcedureType) } -// SetUpdatedBy sets the "updated_by" field. -func (m *OrgMembershipHistoryMutation) SetUpdatedBy(s string) { - m.updated_by = &s +// SetVersion sets the "version" field. +func (m *ProcedureMutation) SetVersion(s string) { + m.version = &s } -// UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *OrgMembershipHistoryMutation) UpdatedBy() (r string, exists bool) { - v := m.updated_by +// Version returns the value of the "version" field in the mutation. +func (m *ProcedureMutation) Version() (r string, exists bool) { + v := m.version if v == nil { return } return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldVersion returns the old "version" field's value of the Procedure entity. +// If the Procedure 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 *OrgMembershipHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *ProcedureMutation) OldVersion(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") + return v, errors.New("OldVersion 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") + return v, errors.New("OldVersion 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 v, fmt.Errorf("querying old value for OldVersion: %w", err) } - return oldValue.UpdatedBy, nil + return oldValue.Version, nil } -// ClearUpdatedBy clears the value of the "updated_by" field. -func (m *OrgMembershipHistoryMutation) ClearUpdatedBy() { - m.updated_by = nil - m.clearedFields[orgmembershiphistory.FieldUpdatedBy] = struct{}{} +// ClearVersion clears the value of the "version" field. +func (m *ProcedureMutation) ClearVersion() { + m.version = nil + m.clearedFields[procedure.FieldVersion] = struct{}{} } -// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *OrgMembershipHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[orgmembershiphistory.FieldUpdatedBy] +// VersionCleared returns if the "version" field was cleared in this mutation. +func (m *ProcedureMutation) VersionCleared() bool { + _, ok := m.clearedFields[procedure.FieldVersion] return ok } -// ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *OrgMembershipHistoryMutation) ResetUpdatedBy() { - m.updated_by = nil - delete(m.clearedFields, orgmembershiphistory.FieldUpdatedBy) +// ResetVersion resets all changes to the "version" field. +func (m *ProcedureMutation) ResetVersion() { + m.version = nil + delete(m.clearedFields, procedure.FieldVersion) } -// SetMappingID sets the "mapping_id" field. -func (m *OrgMembershipHistoryMutation) SetMappingID(s string) { - m.mapping_id = &s +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (m *ProcedureMutation) SetPurposeAndScope(s string) { + m.purpose_and_scope = &s } -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *OrgMembershipHistoryMutation) MappingID() (r string, exists bool) { - v := m.mapping_id +// PurposeAndScope returns the value of the "purpose_and_scope" field in the mutation. +func (m *ProcedureMutation) PurposeAndScope() (r string, exists bool) { + v := m.purpose_and_scope if v == nil { return } return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldPurposeAndScope returns the old "purpose_and_scope" field's value of the Procedure entity. +// If the Procedure 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 *OrgMembershipHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *ProcedureMutation) OldPurposeAndScope(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + return v, errors.New("OldPurposeAndScope is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") + return v, errors.New("OldPurposeAndScope requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + return v, fmt.Errorf("querying old value for OldPurposeAndScope: %w", err) } - return oldValue.MappingID, nil + return oldValue.PurposeAndScope, nil } -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *OrgMembershipHistoryMutation) ResetMappingID() { - m.mapping_id = nil +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (m *ProcedureMutation) ClearPurposeAndScope() { + m.purpose_and_scope = nil + m.clearedFields[procedure.FieldPurposeAndScope] = struct{}{} } -// SetDeletedAt sets the "deleted_at" field. -func (m *OrgMembershipHistoryMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// PurposeAndScopeCleared returns if the "purpose_and_scope" field was cleared in this mutation. +func (m *ProcedureMutation) PurposeAndScopeCleared() bool { + _, ok := m.clearedFields[procedure.FieldPurposeAndScope] + return ok } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *OrgMembershipHistoryMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// ResetPurposeAndScope resets all changes to the "purpose_and_scope" field. +func (m *ProcedureMutation) ResetPurposeAndScope() { + m.purpose_and_scope = nil + delete(m.clearedFields, procedure.FieldPurposeAndScope) +} + +// SetBackground sets the "background" field. +func (m *ProcedureMutation) SetBackground(s string) { + m.background = &s +} + +// Background returns the value of the "background" field in the mutation. +func (m *ProcedureMutation) Background() (r string, exists bool) { + v := m.background if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldBackground returns the old "background" field's value of the Procedure entity. +// If the Procedure 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 *OrgMembershipHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *ProcedureMutation) OldBackground(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldBackground 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") + return v, errors.New("OldBackground 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 v, fmt.Errorf("querying old value for OldBackground: %w", err) } - return oldValue.DeletedAt, nil + return oldValue.Background, nil } -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *OrgMembershipHistoryMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[orgmembershiphistory.FieldDeletedAt] = struct{}{} +// ClearBackground clears the value of the "background" field. +func (m *ProcedureMutation) ClearBackground() { + m.background = nil + m.clearedFields[procedure.FieldBackground] = struct{}{} } -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *OrgMembershipHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[orgmembershiphistory.FieldDeletedAt] +// BackgroundCleared returns if the "background" field was cleared in this mutation. +func (m *ProcedureMutation) BackgroundCleared() bool { + _, ok := m.clearedFields[procedure.FieldBackground] return ok } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *OrgMembershipHistoryMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, orgmembershiphistory.FieldDeletedAt) +// ResetBackground resets all changes to the "background" field. +func (m *ProcedureMutation) ResetBackground() { + m.background = nil + delete(m.clearedFields, procedure.FieldBackground) } -// SetDeletedBy sets the "deleted_by" field. -func (m *OrgMembershipHistoryMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetSatisfies sets the "satisfies" field. +func (m *ProcedureMutation) SetSatisfies(s string) { + m.satisfies = &s } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *OrgMembershipHistoryMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// Satisfies returns the value of the "satisfies" field in the mutation. +func (m *ProcedureMutation) Satisfies() (r string, exists bool) { + v := m.satisfies if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory object wasn't provided to the builder, the object is fetched from the database. +// OldSatisfies returns the old "satisfies" field's value of the Procedure entity. +// If the Procedure 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 *OrgMembershipHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *ProcedureMutation) OldSatisfies(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldSatisfies 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") + return v, errors.New("OldSatisfies 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 v, fmt.Errorf("querying old value for OldSatisfies: %w", err) } - return oldValue.DeletedBy, nil + return oldValue.Satisfies, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *OrgMembershipHistoryMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[orgmembershiphistory.FieldDeletedBy] = struct{}{} +// ClearSatisfies clears the value of the "satisfies" field. +func (m *ProcedureMutation) ClearSatisfies() { + m.satisfies = nil + m.clearedFields[procedure.FieldSatisfies] = struct{}{} } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *OrgMembershipHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[orgmembershiphistory.FieldDeletedBy] +// SatisfiesCleared returns if the "satisfies" field was cleared in this mutation. +func (m *ProcedureMutation) SatisfiesCleared() bool { + _, ok := m.clearedFields[procedure.FieldSatisfies] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *OrgMembershipHistoryMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, orgmembershiphistory.FieldDeletedBy) +// ResetSatisfies resets all changes to the "satisfies" field. +func (m *ProcedureMutation) ResetSatisfies() { + m.satisfies = nil + delete(m.clearedFields, procedure.FieldSatisfies) +} + +// SetDetails sets the "details" field. +func (m *ProcedureMutation) SetDetails(value map[string]interface{}) { + m.details = &value +} + +// Details returns the value of the "details" field in the mutation. +func (m *ProcedureMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details + if v == nil { + return + } + return *v, true +} + +// OldDetails returns the old "details" field's value of the Procedure entity. +// If the Procedure 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 *ProcedureMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetails is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetails requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetails: %w", err) + } + return oldValue.Details, nil +} + +// ClearDetails clears the value of the "details" field. +func (m *ProcedureMutation) ClearDetails() { + m.details = nil + m.clearedFields[procedure.FieldDetails] = struct{}{} +} + +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *ProcedureMutation) DetailsCleared() bool { + _, ok := m.clearedFields[procedure.FieldDetails] + return ok +} + +// ResetDetails resets all changes to the "details" field. +func (m *ProcedureMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, procedure.FieldDetails) +} + +// AddControlIDs adds the "control" edge to the Control entity by ids. +func (m *ProcedureMutation) AddControlIDs(ids ...string) { + if m.control == nil { + m.control = make(map[string]struct{}) + } + for i := range ids { + m.control[ids[i]] = struct{}{} + } +} + +// ClearControl clears the "control" edge to the Control entity. +func (m *ProcedureMutation) ClearControl() { + m.clearedcontrol = true +} + +// ControlCleared reports if the "control" edge to the Control entity was cleared. +func (m *ProcedureMutation) ControlCleared() bool { + return m.clearedcontrol +} + +// RemoveControlIDs removes the "control" edge to the Control entity by IDs. +func (m *ProcedureMutation) RemoveControlIDs(ids ...string) { + if m.removedcontrol == nil { + m.removedcontrol = make(map[string]struct{}) + } + for i := range ids { + delete(m.control, ids[i]) + m.removedcontrol[ids[i]] = struct{}{} + } +} + +// RemovedControl returns the removed IDs of the "control" edge to the Control entity. +func (m *ProcedureMutation) RemovedControlIDs() (ids []string) { + for id := range m.removedcontrol { + ids = append(ids, id) + } + return +} + +// ControlIDs returns the "control" edge IDs in the mutation. +func (m *ProcedureMutation) ControlIDs() (ids []string) { + for id := range m.control { + ids = append(ids, id) + } + return +} + +// ResetControl resets all changes to the "control" edge. +func (m *ProcedureMutation) ResetControl() { + m.control = nil + m.clearedcontrol = false + m.removedcontrol = nil +} + +// AddInternalpolicyIDs adds the "internalpolicy" edge to the InternalPolicy entity by ids. +func (m *ProcedureMutation) AddInternalpolicyIDs(ids ...string) { + if m.internalpolicy == nil { + m.internalpolicy = make(map[string]struct{}) + } + for i := range ids { + m.internalpolicy[ids[i]] = struct{}{} + } +} + +// ClearInternalpolicy clears the "internalpolicy" edge to the InternalPolicy entity. +func (m *ProcedureMutation) ClearInternalpolicy() { + m.clearedinternalpolicy = true +} + +// InternalpolicyCleared reports if the "internalpolicy" edge to the InternalPolicy entity was cleared. +func (m *ProcedureMutation) InternalpolicyCleared() bool { + return m.clearedinternalpolicy +} + +// RemoveInternalpolicyIDs removes the "internalpolicy" edge to the InternalPolicy entity by IDs. +func (m *ProcedureMutation) RemoveInternalpolicyIDs(ids ...string) { + if m.removedinternalpolicy == nil { + m.removedinternalpolicy = make(map[string]struct{}) + } + for i := range ids { + delete(m.internalpolicy, ids[i]) + m.removedinternalpolicy[ids[i]] = struct{}{} + } +} + +// RemovedInternalpolicy returns the removed IDs of the "internalpolicy" edge to the InternalPolicy entity. +func (m *ProcedureMutation) RemovedInternalpolicyIDs() (ids []string) { + for id := range m.removedinternalpolicy { + ids = append(ids, id) + } + return +} + +// InternalpolicyIDs returns the "internalpolicy" edge IDs in the mutation. +func (m *ProcedureMutation) InternalpolicyIDs() (ids []string) { + for id := range m.internalpolicy { + ids = append(ids, id) + } + return +} + +// ResetInternalpolicy resets all changes to the "internalpolicy" edge. +func (m *ProcedureMutation) ResetInternalpolicy() { + m.internalpolicy = nil + m.clearedinternalpolicy = false + m.removedinternalpolicy = nil +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by ids. +func (m *ProcedureMutation) AddNarrativeIDs(ids ...string) { + if m.narratives == nil { + m.narratives = make(map[string]struct{}) + } + for i := range ids { + m.narratives[ids[i]] = struct{}{} + } } -// SetRole sets the "role" field. -func (m *OrgMembershipHistoryMutation) SetRole(e enums.Role) { - m.role = &e +// ClearNarratives clears the "narratives" edge to the Narrative entity. +func (m *ProcedureMutation) ClearNarratives() { + m.clearednarratives = true } -// Role returns the value of the "role" field in the mutation. -func (m *OrgMembershipHistoryMutation) Role() (r enums.Role, exists bool) { - v := m.role - if v == nil { - return - } - return *v, true +// NarrativesCleared reports if the "narratives" edge to the Narrative entity was cleared. +func (m *ProcedureMutation) NarrativesCleared() bool { + return m.clearednarratives } -// OldRole returns the old "role" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) OldRole(ctx context.Context) (v enums.Role, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldRole is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldRole requires an ID field in the mutation") +// RemoveNarrativeIDs removes the "narratives" edge to the Narrative entity by IDs. +func (m *ProcedureMutation) RemoveNarrativeIDs(ids ...string) { + if m.removednarratives == nil { + m.removednarratives = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldRole: %w", err) + for i := range ids { + delete(m.narratives, ids[i]) + m.removednarratives[ids[i]] = struct{}{} } - return oldValue.Role, nil } -// ResetRole resets all changes to the "role" field. -func (m *OrgMembershipHistoryMutation) ResetRole() { - m.role = nil +// RemovedNarratives returns the removed IDs of the "narratives" edge to the Narrative entity. +func (m *ProcedureMutation) RemovedNarrativesIDs() (ids []string) { + for id := range m.removednarratives { + ids = append(ids, id) + } + return } -// SetOrganizationID sets the "organization_id" field. -func (m *OrgMembershipHistoryMutation) SetOrganizationID(s string) { - m.organization_id = &s +// NarrativesIDs returns the "narratives" edge IDs in the mutation. +func (m *ProcedureMutation) NarrativesIDs() (ids []string) { + for id := range m.narratives { + ids = append(ids, id) + } + return } -// OrganizationID returns the value of the "organization_id" field in the mutation. -func (m *OrgMembershipHistoryMutation) OrganizationID() (r string, exists bool) { - v := m.organization_id - if v == nil { - return - } - return *v, true +// ResetNarratives resets all changes to the "narratives" edge. +func (m *ProcedureMutation) ResetNarratives() { + m.narratives = nil + m.clearednarratives = false + m.removednarratives = nil } -// OldOrganizationID returns the old "organization_id" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) OldOrganizationID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOrganizationID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldOrganizationID requires an ID field in the mutation") +// AddRiskIDs adds the "risks" edge to the Risk entity by ids. +func (m *ProcedureMutation) AddRiskIDs(ids ...string) { + if m.risks == nil { + m.risks = make(map[string]struct{}) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldOrganizationID: %w", err) + for i := range ids { + m.risks[ids[i]] = struct{}{} } - return oldValue.OrganizationID, nil } -// ResetOrganizationID resets all changes to the "organization_id" field. -func (m *OrgMembershipHistoryMutation) ResetOrganizationID() { - m.organization_id = nil +// ClearRisks clears the "risks" edge to the Risk entity. +func (m *ProcedureMutation) ClearRisks() { + m.clearedrisks = true } -// SetUserID sets the "user_id" field. -func (m *OrgMembershipHistoryMutation) SetUserID(s string) { - m.user_id = &s +// RisksCleared reports if the "risks" edge to the Risk entity was cleared. +func (m *ProcedureMutation) RisksCleared() bool { + return m.clearedrisks } -// UserID returns the value of the "user_id" field in the mutation. -func (m *OrgMembershipHistoryMutation) UserID() (r string, exists bool) { - v := m.user_id - if v == nil { - return +// RemoveRiskIDs removes the "risks" edge to the Risk entity by IDs. +func (m *ProcedureMutation) RemoveRiskIDs(ids ...string) { + if m.removedrisks == nil { + m.removedrisks = make(map[string]struct{}) + } + for i := range ids { + delete(m.risks, ids[i]) + m.removedrisks[ids[i]] = struct{}{} } - return *v, true } -// OldUserID returns the old "user_id" field's value of the OrgMembershipHistory entity. -// If the OrgMembershipHistory 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 *OrgMembershipHistoryMutation) 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") +// RemovedRisks returns the removed IDs of the "risks" edge to the Risk entity. +func (m *ProcedureMutation) RemovedRisksIDs() (ids []string) { + for id := range m.removedrisks { + ids = append(ids, id) } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldUserID: %w", err) + return +} + +// RisksIDs returns the "risks" edge IDs in the mutation. +func (m *ProcedureMutation) RisksIDs() (ids []string) { + for id := range m.risks { + ids = append(ids, id) } - return oldValue.UserID, nil + return } -// ResetUserID resets all changes to the "user_id" field. -func (m *OrgMembershipHistoryMutation) ResetUserID() { - m.user_id = nil +// ResetRisks resets all changes to the "risks" edge. +func (m *ProcedureMutation) ResetRisks() { + m.risks = nil + m.clearedrisks = false + m.removedrisks = nil } -// Where appends a list predicates to the OrgMembershipHistoryMutation builder. -func (m *OrgMembershipHistoryMutation) Where(ps ...predicate.OrgMembershipHistory) { +// Where appends a list predicates to the ProcedureMutation builder. +func (m *ProcedureMutation) Where(ps ...predicate.Procedure) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the OrgMembershipHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the ProcedureMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *OrgMembershipHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.OrgMembershipHistory, len(ps)) +func (m *ProcedureMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Procedure, len(ps)) for i := range ps { p[i] = ps[i] } @@ -58113,63 +88413,75 @@ func (m *OrgMembershipHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *OrgMembershipHistoryMutation) Op() Op { +func (m *ProcedureMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *OrgMembershipHistoryMutation) SetOp(op Op) { +func (m *ProcedureMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (OrgMembershipHistory). -func (m *OrgMembershipHistoryMutation) Type() string { +// Type returns the node type of this mutation (Procedure). +func (m *ProcedureMutation) 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 *OrgMembershipHistoryMutation) Fields() []string { - fields := make([]string, 0, 13) - if m.history_time != nil { - fields = append(fields, orgmembershiphistory.FieldHistoryTime) - } - if m.ref != nil { - fields = append(fields, orgmembershiphistory.FieldRef) - } - if m.operation != nil { - fields = append(fields, orgmembershiphistory.FieldOperation) - } +func (m *ProcedureMutation) Fields() []string { + fields := make([]string, 0, 17) if m.created_at != nil { - fields = append(fields, orgmembershiphistory.FieldCreatedAt) + fields = append(fields, procedure.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, orgmembershiphistory.FieldUpdatedAt) + fields = append(fields, procedure.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, orgmembershiphistory.FieldCreatedBy) + fields = append(fields, procedure.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, orgmembershiphistory.FieldUpdatedBy) - } - if m.mapping_id != nil { - fields = append(fields, orgmembershiphistory.FieldMappingID) + fields = append(fields, procedure.FieldUpdatedBy) } if m.deleted_at != nil { - fields = append(fields, orgmembershiphistory.FieldDeletedAt) + fields = append(fields, procedure.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, orgmembershiphistory.FieldDeletedBy) + fields = append(fields, procedure.FieldDeletedBy) } - if m.role != nil { - fields = append(fields, orgmembershiphistory.FieldRole) + if m.mapping_id != nil { + fields = append(fields, procedure.FieldMappingID) } - if m.organization_id != nil { - fields = append(fields, orgmembershiphistory.FieldOrganizationID) + if m.tags != nil { + fields = append(fields, procedure.FieldTags) } - if m.user_id != nil { - fields = append(fields, orgmembershiphistory.FieldUserID) + if m.name != nil { + fields = append(fields, procedure.FieldName) + } + if m.description != nil { + fields = append(fields, procedure.FieldDescription) + } + if m.status != nil { + fields = append(fields, procedure.FieldStatus) + } + if m.procedure_type != nil { + fields = append(fields, procedure.FieldProcedureType) + } + if m.version != nil { + fields = append(fields, procedure.FieldVersion) + } + if m.purpose_and_scope != nil { + fields = append(fields, procedure.FieldPurposeAndScope) + } + if m.background != nil { + fields = append(fields, procedure.FieldBackground) + } + if m.satisfies != nil { + fields = append(fields, procedure.FieldSatisfies) + } + if m.details != nil { + fields = append(fields, procedure.FieldDetails) } return fields } @@ -58177,34 +88489,42 @@ func (m *OrgMembershipHistoryMutation) Fields() []string { // 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 *OrgMembershipHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *ProcedureMutation) Field(name string) (ent.Value, bool) { switch name { - case orgmembershiphistory.FieldHistoryTime: - return m.HistoryTime() - case orgmembershiphistory.FieldRef: - return m.Ref() - case orgmembershiphistory.FieldOperation: - return m.Operation() - case orgmembershiphistory.FieldCreatedAt: + case procedure.FieldCreatedAt: return m.CreatedAt() - case orgmembershiphistory.FieldUpdatedAt: + case procedure.FieldUpdatedAt: return m.UpdatedAt() - case orgmembershiphistory.FieldCreatedBy: + case procedure.FieldCreatedBy: return m.CreatedBy() - case orgmembershiphistory.FieldUpdatedBy: + case procedure.FieldUpdatedBy: return m.UpdatedBy() - case orgmembershiphistory.FieldMappingID: - return m.MappingID() - case orgmembershiphistory.FieldDeletedAt: + case procedure.FieldDeletedAt: return m.DeletedAt() - case orgmembershiphistory.FieldDeletedBy: + case procedure.FieldDeletedBy: return m.DeletedBy() - case orgmembershiphistory.FieldRole: - return m.Role() - case orgmembershiphistory.FieldOrganizationID: - return m.OrganizationID() - case orgmembershiphistory.FieldUserID: - return m.UserID() + case procedure.FieldMappingID: + return m.MappingID() + case procedure.FieldTags: + return m.Tags() + case procedure.FieldName: + return m.Name() + case procedure.FieldDescription: + return m.Description() + case procedure.FieldStatus: + return m.Status() + case procedure.FieldProcedureType: + return m.ProcedureType() + case procedure.FieldVersion: + return m.Version() + case procedure.FieldPurposeAndScope: + return m.PurposeAndScope() + case procedure.FieldBackground: + return m.Background() + case procedure.FieldSatisfies: + return m.Satisfies() + case procedure.FieldDetails: + return m.Details() } return nil, false } @@ -58212,436 +88532,573 @@ func (m *OrgMembershipHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *OrgMembershipHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *ProcedureMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case orgmembershiphistory.FieldHistoryTime: - return m.OldHistoryTime(ctx) - case orgmembershiphistory.FieldRef: - return m.OldRef(ctx) - case orgmembershiphistory.FieldOperation: - return m.OldOperation(ctx) - case orgmembershiphistory.FieldCreatedAt: + case procedure.FieldCreatedAt: return m.OldCreatedAt(ctx) - case orgmembershiphistory.FieldUpdatedAt: + case procedure.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case orgmembershiphistory.FieldCreatedBy: + case procedure.FieldCreatedBy: return m.OldCreatedBy(ctx) - case orgmembershiphistory.FieldUpdatedBy: + case procedure.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case orgmembershiphistory.FieldMappingID: - return m.OldMappingID(ctx) - case orgmembershiphistory.FieldDeletedAt: + case procedure.FieldDeletedAt: return m.OldDeletedAt(ctx) - case orgmembershiphistory.FieldDeletedBy: + case procedure.FieldDeletedBy: return m.OldDeletedBy(ctx) - case orgmembershiphistory.FieldRole: - return m.OldRole(ctx) - case orgmembershiphistory.FieldOrganizationID: - return m.OldOrganizationID(ctx) - case orgmembershiphistory.FieldUserID: - return m.OldUserID(ctx) + case procedure.FieldMappingID: + return m.OldMappingID(ctx) + case procedure.FieldTags: + return m.OldTags(ctx) + case procedure.FieldName: + return m.OldName(ctx) + case procedure.FieldDescription: + return m.OldDescription(ctx) + case procedure.FieldStatus: + return m.OldStatus(ctx) + case procedure.FieldProcedureType: + return m.OldProcedureType(ctx) + case procedure.FieldVersion: + return m.OldVersion(ctx) + case procedure.FieldPurposeAndScope: + return m.OldPurposeAndScope(ctx) + case procedure.FieldBackground: + return m.OldBackground(ctx) + case procedure.FieldSatisfies: + return m.OldSatisfies(ctx) + case procedure.FieldDetails: + return m.OldDetails(ctx) } - return nil, fmt.Errorf("unknown OrgMembershipHistory field %s", name) + return nil, fmt.Errorf("unknown Procedure 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 *OrgMembershipHistoryMutation) SetField(name string, value ent.Value) error { +func (m *ProcedureMutation) SetField(name string, value ent.Value) error { switch name { - case orgmembershiphistory.FieldHistoryTime: + case procedure.FieldCreatedAt: v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetHistoryTime(v) + m.SetCreatedAt(v) return nil - case orgmembershiphistory.FieldRef: + case procedure.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 procedure.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetRef(v) + m.SetCreatedBy(v) return nil - case orgmembershiphistory.FieldOperation: - v, ok := value.(history.OpType) + case procedure.FieldUpdatedBy: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOperation(v) + m.SetUpdatedBy(v) return nil - case orgmembershiphistory.FieldCreatedAt: + case procedure.FieldDeletedAt: v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCreatedAt(v) + m.SetDeletedAt(v) return nil - case orgmembershiphistory.FieldUpdatedAt: - v, ok := value.(time.Time) + case procedure.FieldDeletedBy: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetUpdatedAt(v) + m.SetDeletedBy(v) return nil - case orgmembershiphistory.FieldCreatedBy: + case procedure.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetCreatedBy(v) + m.SetMappingID(v) return nil - case orgmembershiphistory.FieldUpdatedBy: + case procedure.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case procedure.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetUpdatedBy(v) + m.SetName(v) return nil - case orgmembershiphistory.FieldMappingID: + case procedure.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetMappingID(v) + m.SetDescription(v) return nil - case orgmembershiphistory.FieldDeletedAt: - v, ok := value.(time.Time) + case procedure.FieldStatus: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetStatus(v) return nil - case orgmembershiphistory.FieldDeletedBy: + case procedure.FieldProcedureType: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetProcedureType(v) return nil - case orgmembershiphistory.FieldRole: - v, ok := value.(enums.Role) + case procedure.FieldVersion: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetRole(v) + m.SetVersion(v) return nil - case orgmembershiphistory.FieldOrganizationID: + case procedure.FieldPurposeAndScope: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOrganizationID(v) + m.SetPurposeAndScope(v) return nil - case orgmembershiphistory.FieldUserID: + case procedure.FieldBackground: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetUserID(v) + m.SetBackground(v) + return nil + case procedure.FieldSatisfies: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSatisfies(v) + return nil + case procedure.FieldDetails: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDetails(v) return nil } - return fmt.Errorf("unknown OrgMembershipHistory field %s", name) + return fmt.Errorf("unknown Procedure field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *OrgMembershipHistoryMutation) AddedFields() []string { +func (m *ProcedureMutation) 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 *OrgMembershipHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *ProcedureMutation) 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 *OrgMembershipHistoryMutation) AddField(name string, value ent.Value) error { +func (m *ProcedureMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown OrgMembershipHistory numeric field %s", name) + return fmt.Errorf("unknown Procedure numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *OrgMembershipHistoryMutation) ClearedFields() []string { +func (m *ProcedureMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(orgmembershiphistory.FieldRef) { - fields = append(fields, orgmembershiphistory.FieldRef) + if m.FieldCleared(procedure.FieldCreatedAt) { + fields = append(fields, procedure.FieldCreatedAt) } - if m.FieldCleared(orgmembershiphistory.FieldCreatedAt) { - fields = append(fields, orgmembershiphistory.FieldCreatedAt) + if m.FieldCleared(procedure.FieldUpdatedAt) { + fields = append(fields, procedure.FieldUpdatedAt) } - if m.FieldCleared(orgmembershiphistory.FieldUpdatedAt) { - fields = append(fields, orgmembershiphistory.FieldUpdatedAt) + if m.FieldCleared(procedure.FieldCreatedBy) { + fields = append(fields, procedure.FieldCreatedBy) } - if m.FieldCleared(orgmembershiphistory.FieldCreatedBy) { - fields = append(fields, orgmembershiphistory.FieldCreatedBy) + if m.FieldCleared(procedure.FieldUpdatedBy) { + fields = append(fields, procedure.FieldUpdatedBy) } - if m.FieldCleared(orgmembershiphistory.FieldUpdatedBy) { - fields = append(fields, orgmembershiphistory.FieldUpdatedBy) + if m.FieldCleared(procedure.FieldDeletedAt) { + fields = append(fields, procedure.FieldDeletedAt) } - if m.FieldCleared(orgmembershiphistory.FieldDeletedAt) { - fields = append(fields, orgmembershiphistory.FieldDeletedAt) + if m.FieldCleared(procedure.FieldDeletedBy) { + fields = append(fields, procedure.FieldDeletedBy) } - if m.FieldCleared(orgmembershiphistory.FieldDeletedBy) { - fields = append(fields, orgmembershiphistory.FieldDeletedBy) + if m.FieldCleared(procedure.FieldTags) { + fields = append(fields, procedure.FieldTags) + } + if m.FieldCleared(procedure.FieldDescription) { + fields = append(fields, procedure.FieldDescription) + } + if m.FieldCleared(procedure.FieldStatus) { + fields = append(fields, procedure.FieldStatus) + } + if m.FieldCleared(procedure.FieldProcedureType) { + fields = append(fields, procedure.FieldProcedureType) + } + if m.FieldCleared(procedure.FieldVersion) { + fields = append(fields, procedure.FieldVersion) + } + if m.FieldCleared(procedure.FieldPurposeAndScope) { + fields = append(fields, procedure.FieldPurposeAndScope) + } + if m.FieldCleared(procedure.FieldBackground) { + fields = append(fields, procedure.FieldBackground) + } + if m.FieldCleared(procedure.FieldSatisfies) { + fields = append(fields, procedure.FieldSatisfies) + } + if m.FieldCleared(procedure.FieldDetails) { + fields = append(fields, procedure.FieldDetails) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *OrgMembershipHistoryMutation) FieldCleared(name string) bool { +func (m *ProcedureMutation) 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 *OrgMembershipHistoryMutation) ClearField(name string) error { +func (m *ProcedureMutation) ClearField(name string) error { switch name { - case orgmembershiphistory.FieldRef: - m.ClearRef() - return nil - case orgmembershiphistory.FieldCreatedAt: + case procedure.FieldCreatedAt: m.ClearCreatedAt() return nil - case orgmembershiphistory.FieldUpdatedAt: + case procedure.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case orgmembershiphistory.FieldCreatedBy: + case procedure.FieldCreatedBy: m.ClearCreatedBy() return nil - case orgmembershiphistory.FieldUpdatedBy: + case procedure.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case orgmembershiphistory.FieldDeletedAt: + case procedure.FieldDeletedAt: m.ClearDeletedAt() return nil - case orgmembershiphistory.FieldDeletedBy: + case procedure.FieldDeletedBy: m.ClearDeletedBy() return nil + case procedure.FieldTags: + m.ClearTags() + return nil + case procedure.FieldDescription: + m.ClearDescription() + return nil + case procedure.FieldStatus: + m.ClearStatus() + return nil + case procedure.FieldProcedureType: + m.ClearProcedureType() + return nil + case procedure.FieldVersion: + m.ClearVersion() + return nil + case procedure.FieldPurposeAndScope: + m.ClearPurposeAndScope() + return nil + case procedure.FieldBackground: + m.ClearBackground() + return nil + case procedure.FieldSatisfies: + m.ClearSatisfies() + return nil + case procedure.FieldDetails: + m.ClearDetails() + return nil } - return fmt.Errorf("unknown OrgMembershipHistory nullable field %s", name) + return fmt.Errorf("unknown Procedure 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 *OrgMembershipHistoryMutation) ResetField(name string) error { +func (m *ProcedureMutation) ResetField(name string) error { switch name { - case orgmembershiphistory.FieldHistoryTime: - m.ResetHistoryTime() - return nil - case orgmembershiphistory.FieldRef: - m.ResetRef() - return nil - case orgmembershiphistory.FieldOperation: - m.ResetOperation() - return nil - case orgmembershiphistory.FieldCreatedAt: + case procedure.FieldCreatedAt: m.ResetCreatedAt() return nil - case orgmembershiphistory.FieldUpdatedAt: + case procedure.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case orgmembershiphistory.FieldCreatedBy: + case procedure.FieldCreatedBy: m.ResetCreatedBy() return nil - case orgmembershiphistory.FieldUpdatedBy: + case procedure.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case orgmembershiphistory.FieldMappingID: - m.ResetMappingID() - return nil - case orgmembershiphistory.FieldDeletedAt: + case procedure.FieldDeletedAt: m.ResetDeletedAt() return nil - case orgmembershiphistory.FieldDeletedBy: + case procedure.FieldDeletedBy: m.ResetDeletedBy() return nil - case orgmembershiphistory.FieldRole: - m.ResetRole() + case procedure.FieldMappingID: + m.ResetMappingID() return nil - case orgmembershiphistory.FieldOrganizationID: - m.ResetOrganizationID() + case procedure.FieldTags: + m.ResetTags() return nil - case orgmembershiphistory.FieldUserID: - m.ResetUserID() + case procedure.FieldName: + m.ResetName() return nil - } - return fmt.Errorf("unknown OrgMembershipHistory field %s", name) -} - -// AddedEdges returns all edge names that were set/added in this mutation. -func (m *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) AddedIDs(name string) []ent.Value { - return nil -} - -// RemovedEdges returns all edge names that were removed in this mutation. -func (m *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) RemovedIDs(name string) []ent.Value { - return nil -} - -// ClearedEdges returns all edge names that were cleared in this mutation. -func (m *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) 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 *OrgMembershipHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown OrgMembershipHistory 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 *OrgMembershipHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown OrgMembershipHistory edge %s", name) -} - -// OrganizationMutation represents an operation that mutates the Organization nodes in the graph. -type OrganizationMutation struct { - config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - tags *[]string - appendtags []string - deleted_at *time.Time - deleted_by *string - name *string - display_name *string - description *string - personal_org *bool - avatar_remote_url *string - dedicated_db *bool - clearedFields map[string]struct{} - parent *string - clearedparent bool - children map[string]struct{} - removedchildren map[string]struct{} - clearedchildren bool - groups map[string]struct{} - removedgroups map[string]struct{} - clearedgroups bool - templates map[string]struct{} - removedtemplates map[string]struct{} - clearedtemplates bool - integrations map[string]struct{} - removedintegrations map[string]struct{} - clearedintegrations bool - setting *string - clearedsetting bool - documentdata map[string]struct{} - removeddocumentdata map[string]struct{} - cleareddocumentdata bool - entitlements map[string]struct{} - removedentitlements map[string]struct{} - clearedentitlements bool - organization_entitlement map[string]struct{} - removedorganization_entitlement map[string]struct{} - clearedorganization_entitlement bool - personal_access_tokens map[string]struct{} - removedpersonal_access_tokens map[string]struct{} - clearedpersonal_access_tokens bool - api_tokens map[string]struct{} - removedapi_tokens map[string]struct{} - clearedapi_tokens bool - oauthprovider map[string]struct{} - removedoauthprovider map[string]struct{} - clearedoauthprovider bool - users map[string]struct{} - removedusers map[string]struct{} - clearedusers bool - invites map[string]struct{} - removedinvites map[string]struct{} - clearedinvites bool - subscribers map[string]struct{} - removedsubscribers map[string]struct{} - clearedsubscribers bool - webhooks map[string]struct{} - removedwebhooks map[string]struct{} - clearedwebhooks bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - secrets map[string]struct{} - removedsecrets map[string]struct{} - clearedsecrets bool - features map[string]struct{} - removedfeatures map[string]struct{} - clearedfeatures bool - files map[string]struct{} - removedfiles map[string]struct{} - clearedfiles bool - entitlementplans map[string]struct{} - removedentitlementplans map[string]struct{} - clearedentitlementplans bool - entitlementplanfeatures map[string]struct{} - removedentitlementplanfeatures map[string]struct{} - clearedentitlementplanfeatures bool - entities map[string]struct{} - removedentities map[string]struct{} - clearedentities bool - entitytypes map[string]struct{} - removedentitytypes map[string]struct{} - clearedentitytypes bool - contacts map[string]struct{} - removedcontacts map[string]struct{} - clearedcontacts bool - notes map[string]struct{} - removednotes map[string]struct{} - clearednotes bool - members map[string]struct{} - removedmembers map[string]struct{} - clearedmembers bool - done bool - oldValue func(context.Context) (*Organization, error) - predicates []predicate.Organization + case procedure.FieldDescription: + m.ResetDescription() + return nil + case procedure.FieldStatus: + m.ResetStatus() + return nil + case procedure.FieldProcedureType: + m.ResetProcedureType() + return nil + case procedure.FieldVersion: + m.ResetVersion() + return nil + case procedure.FieldPurposeAndScope: + m.ResetPurposeAndScope() + return nil + case procedure.FieldBackground: + m.ResetBackground() + return nil + case procedure.FieldSatisfies: + m.ResetSatisfies() + return nil + case procedure.FieldDetails: + m.ResetDetails() + return nil + } + return fmt.Errorf("unknown Procedure field %s", name) } -var _ ent.Mutation = (*OrganizationMutation)(nil) +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *ProcedureMutation) AddedEdges() []string { + edges := make([]string, 0, 4) + if m.control != nil { + edges = append(edges, procedure.EdgeControl) + } + if m.internalpolicy != nil { + edges = append(edges, procedure.EdgeInternalpolicy) + } + if m.narratives != nil { + edges = append(edges, procedure.EdgeNarratives) + } + if m.risks != nil { + edges = append(edges, procedure.EdgeRisks) + } + return edges +} -// organizationOption allows management of the mutation configuration using functional options. -type organizationOption func(*OrganizationMutation) +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *ProcedureMutation) AddedIDs(name string) []ent.Value { + switch name { + case procedure.EdgeControl: + ids := make([]ent.Value, 0, len(m.control)) + for id := range m.control { + ids = append(ids, id) + } + return ids + case procedure.EdgeInternalpolicy: + ids := make([]ent.Value, 0, len(m.internalpolicy)) + for id := range m.internalpolicy { + ids = append(ids, id) + } + return ids + case procedure.EdgeNarratives: + ids := make([]ent.Value, 0, len(m.narratives)) + for id := range m.narratives { + ids = append(ids, id) + } + return ids + case procedure.EdgeRisks: + ids := make([]ent.Value, 0, len(m.risks)) + for id := range m.risks { + ids = append(ids, id) + } + return ids + } + return nil +} -// newOrganizationMutation creates new mutation for the Organization entity. -func newOrganizationMutation(c config, op Op, opts ...organizationOption) *OrganizationMutation { - m := &OrganizationMutation{ +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *ProcedureMutation) RemovedEdges() []string { + edges := make([]string, 0, 4) + if m.removedcontrol != nil { + edges = append(edges, procedure.EdgeControl) + } + if m.removedinternalpolicy != nil { + edges = append(edges, procedure.EdgeInternalpolicy) + } + if m.removednarratives != nil { + edges = append(edges, procedure.EdgeNarratives) + } + if m.removedrisks != nil { + edges = append(edges, procedure.EdgeRisks) + } + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *ProcedureMutation) RemovedIDs(name string) []ent.Value { + switch name { + case procedure.EdgeControl: + ids := make([]ent.Value, 0, len(m.removedcontrol)) + for id := range m.removedcontrol { + ids = append(ids, id) + } + return ids + case procedure.EdgeInternalpolicy: + ids := make([]ent.Value, 0, len(m.removedinternalpolicy)) + for id := range m.removedinternalpolicy { + ids = append(ids, id) + } + return ids + case procedure.EdgeNarratives: + ids := make([]ent.Value, 0, len(m.removednarratives)) + for id := range m.removednarratives { + ids = append(ids, id) + } + return ids + case procedure.EdgeRisks: + ids := make([]ent.Value, 0, len(m.removedrisks)) + for id := range m.removedrisks { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *ProcedureMutation) ClearedEdges() []string { + edges := make([]string, 0, 4) + if m.clearedcontrol { + edges = append(edges, procedure.EdgeControl) + } + if m.clearedinternalpolicy { + edges = append(edges, procedure.EdgeInternalpolicy) + } + if m.clearednarratives { + edges = append(edges, procedure.EdgeNarratives) + } + if m.clearedrisks { + edges = append(edges, procedure.EdgeRisks) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *ProcedureMutation) EdgeCleared(name string) bool { + switch name { + case procedure.EdgeControl: + return m.clearedcontrol + case procedure.EdgeInternalpolicy: + return m.clearedinternalpolicy + case procedure.EdgeNarratives: + return m.clearednarratives + case procedure.EdgeRisks: + return m.clearedrisks + } + 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 *ProcedureMutation) ClearEdge(name string) error { + switch name { + } + return fmt.Errorf("unknown Procedure 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 *ProcedureMutation) ResetEdge(name string) error { + switch name { + case procedure.EdgeControl: + m.ResetControl() + return nil + case procedure.EdgeInternalpolicy: + m.ResetInternalpolicy() + return nil + case procedure.EdgeNarratives: + m.ResetNarratives() + return nil + case procedure.EdgeRisks: + m.ResetRisks() + return nil + } + return fmt.Errorf("unknown Procedure edge %s", name) +} + +// ProcedureHistoryMutation represents an operation that mutates the ProcedureHistory nodes in the graph. +type ProcedureHistoryMutation 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 + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + status *string + procedure_type *string + version *string + purpose_and_scope *string + background *string + satisfies *string + details *map[string]interface{} + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*ProcedureHistory, error) + predicates []predicate.ProcedureHistory +} + +var _ ent.Mutation = (*ProcedureHistoryMutation)(nil) + +// procedurehistoryOption allows management of the mutation configuration using functional options. +type procedurehistoryOption func(*ProcedureHistoryMutation) + +// newProcedureHistoryMutation creates new mutation for the ProcedureHistory entity. +func newProcedureHistoryMutation(c config, op Op, opts ...procedurehistoryOption) *ProcedureHistoryMutation { + m := &ProcedureHistoryMutation{ config: c, op: op, - typ: TypeOrganization, + typ: TypeProcedureHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -58650,20 +89107,20 @@ func newOrganizationMutation(c config, op Op, opts ...organizationOption) *Organ return m } -// withOrganizationID sets the ID field of the mutation. -func withOrganizationID(id string) organizationOption { - return func(m *OrganizationMutation) { +// withProcedureHistoryID sets the ID field of the mutation. +func withProcedureHistoryID(id string) procedurehistoryOption { + return func(m *ProcedureHistoryMutation) { var ( err error once sync.Once - value *Organization + value *ProcedureHistory ) - m.oldValue = func(ctx context.Context) (*Organization, error) { + m.oldValue = func(ctx context.Context) (*ProcedureHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().Organization.Get(ctx, id) + value, err = m.Client().ProcedureHistory.Get(ctx, id) } }) return value, err @@ -58672,10 +89129,10 @@ func withOrganizationID(id string) organizationOption { } } -// withOrganization sets the old Organization of the mutation. -func withOrganization(node *Organization) organizationOption { - return func(m *OrganizationMutation) { - m.oldValue = func(context.Context) (*Organization, error) { +// withProcedureHistory sets the old ProcedureHistory of the mutation. +func withProcedureHistory(node *ProcedureHistory) procedurehistoryOption { + return func(m *ProcedureHistoryMutation) { + m.oldValue = func(context.Context) (*ProcedureHistory, error) { return node, nil } m.id = &node.ID @@ -58684,7 +89141,7 @@ func withOrganization(node *Organization) organizationOption { // 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 OrganizationMutation) Client() *Client { +func (m ProcedureHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -58692,7 +89149,7 @@ func (m OrganizationMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m OrganizationMutation) Tx() (*Tx, error) { +func (m ProcedureHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -58702,14 +89159,14 @@ func (m OrganizationMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of Organization entities. -func (m *OrganizationMutation) SetID(id string) { +// operation is only accepted on creation of ProcedureHistory entities. +func (m *ProcedureHistoryMutation) 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 *OrganizationMutation) ID() (id string, exists bool) { +func (m *ProcedureHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -58720,7 +89177,7 @@ func (m *OrganizationMutation) ID() (id string, exists bool) { // 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 *OrganizationMutation) IDs(ctx context.Context) ([]string, error) { +func (m *ProcedureHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -58729,3364 +89186,3435 @@ func (m *OrganizationMutation) IDs(ctx context.Context) ([]string, error) { } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().Organization.Query().Where(m.predicates...).IDs(ctx) + return m.Client().ProcedureHistory.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 *OrganizationMutation) SetCreatedAt(t time.Time) { - m.created_at = &t -} - -// CreatedAt returns the value of the "created_at" field in the mutation. -func (m *OrganizationMutation) 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 Organization entity. -// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) ClearCreatedAt() { - m.created_at = nil - m.clearedFields[organization.FieldCreatedAt] = struct{}{} -} - -// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *OrganizationMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[organization.FieldCreatedAt] - return ok -} - -// ResetCreatedAt resets all changes to the "created_at" field. -func (m *OrganizationMutation) ResetCreatedAt() { - m.created_at = nil - delete(m.clearedFields, organization.FieldCreatedAt) -} - -// SetUpdatedAt sets the "updated_at" field. -func (m *OrganizationMutation) SetUpdatedAt(t time.Time) { - m.updated_at = &t -} - -// UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *OrganizationMutation) 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 Organization entity. -// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) ClearUpdatedAt() { - m.updated_at = nil - m.clearedFields[organization.FieldUpdatedAt] = struct{}{} -} - -// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *OrganizationMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[organization.FieldUpdatedAt] - return ok -} - -// ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *OrganizationMutation) ResetUpdatedAt() { - m.updated_at = nil - delete(m.clearedFields, organization.FieldUpdatedAt) -} - -// SetCreatedBy sets the "created_by" field. -func (m *OrganizationMutation) SetCreatedBy(s string) { - m.created_by = &s -} - -// CreatedBy returns the value of the "created_by" field in the mutation. -func (m *OrganizationMutation) 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 Organization entity. -// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) ClearCreatedBy() { - m.created_by = nil - m.clearedFields[organization.FieldCreatedBy] = struct{}{} -} - -// CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *OrganizationMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[organization.FieldCreatedBy] - return ok -} - -// ResetCreatedBy resets all changes to the "created_by" field. -func (m *OrganizationMutation) ResetCreatedBy() { - m.created_by = nil - delete(m.clearedFields, organization.FieldCreatedBy) -} - -// SetUpdatedBy sets the "updated_by" field. -func (m *OrganizationMutation) SetUpdatedBy(s string) { - m.updated_by = &s -} - -// UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *OrganizationMutation) 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 Organization entity. -// If the Organization 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 *OrganizationMutation) 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 *OrganizationMutation) ClearUpdatedBy() { - m.updated_by = nil - m.clearedFields[organization.FieldUpdatedBy] = struct{}{} -} - -// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *OrganizationMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[organization.FieldUpdatedBy] - return ok -} - -// ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *OrganizationMutation) ResetUpdatedBy() { - m.updated_by = nil - delete(m.clearedFields, organization.FieldUpdatedBy) -} - -// SetMappingID sets the "mapping_id" field. -func (m *OrganizationMutation) SetMappingID(s string) { - m.mapping_id = &s -} - -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *OrganizationMutation) MappingID() (r string, exists bool) { - v := m.mapping_id - if v == nil { - return - } - return *v, true -} - -// OldMappingID returns the old "mapping_id" field's value of the Organization entity. -// If the Organization 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 *OrganizationMutation) OldMappingID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") - } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") - } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) - } - return oldValue.MappingID, nil -} - -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *OrganizationMutation) ResetMappingID() { - m.mapping_id = nil -} - -// SetTags sets the "tags" field. -func (m *OrganizationMutation) SetTags(s []string) { - m.tags = &s - m.appendtags = nil +// SetHistoryTime sets the "history_time" field. +func (m *ProcedureHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t } -// Tags returns the value of the "tags" field in the mutation. -func (m *OrganizationMutation) Tags() (r []string, exists bool) { - v := m.tags +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *ProcedureHistoryMutation) HistoryTime() (r time.Time, exists bool) { + v := m.history_time if v == nil { return } return *v, true } -// OldTags returns the old "tags" field's value of the Organization entity. -// If the Organization object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *OrganizationMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *ProcedureHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTags is only allowed on UpdateOne operations") + return v, errors.New("OldHistoryTime 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") + 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 OldTags: %w", err) - } - return oldValue.Tags, nil -} - -// AppendTags adds s to the "tags" field. -func (m *OrganizationMutation) 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 *OrganizationMutation) AppendedTags() ([]string, bool) { - if len(m.appendtags) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldHistoryTime: %w", err) } - return m.appendtags, true -} - -// ClearTags clears the value of the "tags" field. -func (m *OrganizationMutation) ClearTags() { - m.tags = nil - m.appendtags = nil - m.clearedFields[organization.FieldTags] = struct{}{} -} - -// TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *OrganizationMutation) TagsCleared() bool { - _, ok := m.clearedFields[organization.FieldTags] - return ok + return oldValue.HistoryTime, nil } -// ResetTags resets all changes to the "tags" field. -func (m *OrganizationMutation) ResetTags() { - m.tags = nil - m.appendtags = nil - delete(m.clearedFields, organization.FieldTags) +// ResetHistoryTime resets all changes to the "history_time" field. +func (m *ProcedureHistoryMutation) ResetHistoryTime() { + m.history_time = nil } -// SetDeletedAt sets the "deleted_at" field. -func (m *OrganizationMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetRef sets the "ref" field. +func (m *ProcedureHistoryMutation) SetRef(s string) { + m.ref = &s } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *OrganizationMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// Ref returns the value of the "ref" field in the mutation. +func (m *ProcedureHistoryMutation) Ref() (r string, exists bool) { + v := m.ref if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the Organization entity. -// If the Organization object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *OrganizationMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *ProcedureHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldRef 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") + 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 OldDeletedAt: %w", err) + return v, fmt.Errorf("querying old value for OldRef: %w", err) } - return oldValue.DeletedAt, nil + return oldValue.Ref, nil } -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *OrganizationMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[organization.FieldDeletedAt] = struct{}{} +// ClearRef clears the value of the "ref" field. +func (m *ProcedureHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[procedurehistory.FieldRef] = struct{}{} } -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *OrganizationMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[organization.FieldDeletedAt] +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldRef] return ok } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *OrganizationMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, organization.FieldDeletedAt) +// ResetRef resets all changes to the "ref" field. +func (m *ProcedureHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, procedurehistory.FieldRef) } -// SetDeletedBy sets the "deleted_by" field. -func (m *OrganizationMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetOperation sets the "operation" field. +func (m *ProcedureHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *OrganizationMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// Operation returns the value of the "operation" field in the mutation. +func (m *ProcedureHistoryMutation) Operation() (r history.OpType, exists bool) { + v := m.operation if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the Organization entity. -// If the Organization object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *OrganizationMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *ProcedureHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldOperation 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") + 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 OldDeletedBy: %w", err) + return v, fmt.Errorf("querying old value for OldOperation: %w", err) } - return oldValue.DeletedBy, nil -} - -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *OrganizationMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[organization.FieldDeletedBy] = struct{}{} -} - -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *OrganizationMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[organization.FieldDeletedBy] - return ok + return oldValue.Operation, nil } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *OrganizationMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, organization.FieldDeletedBy) +// ResetOperation resets all changes to the "operation" field. +func (m *ProcedureHistoryMutation) ResetOperation() { + m.operation = nil } -// SetName sets the "name" field. -func (m *OrganizationMutation) SetName(s string) { - m.name = &s +// SetCreatedAt sets the "created_at" field. +func (m *ProcedureHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t } -// Name returns the value of the "name" field in the mutation. -func (m *OrganizationMutation) Name() (r string, exists bool) { - v := m.name +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *ProcedureHistoryMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at if v == nil { return } return *v, true } -// OldName returns the old "name" field's value of the Organization entity. -// If the Organization object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *OrganizationMutation) OldName(ctx context.Context) (v string, err error) { +func (m *ProcedureHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldName is only allowed on UpdateOne operations") + return v, errors.New("OldCreatedAt 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") + 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 OldName: %w", err) + return v, fmt.Errorf("querying old value for OldCreatedAt: %w", err) } - return oldValue.Name, nil + return oldValue.CreatedAt, nil } -// ResetName resets all changes to the "name" field. -func (m *OrganizationMutation) ResetName() { - m.name = nil +// ClearCreatedAt clears the value of the "created_at" field. +func (m *ProcedureHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[procedurehistory.FieldCreatedAt] = struct{}{} } -// SetDisplayName sets the "display_name" field. -func (m *OrganizationMutation) SetDisplayName(s string) { - m.display_name = &s +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldCreatedAt] + return ok } -// DisplayName returns the value of the "display_name" field in the mutation. -func (m *OrganizationMutation) DisplayName() (r string, exists bool) { - v := m.display_name +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *ProcedureHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, procedurehistory.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *ProcedureHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *ProcedureHistoryMutation) UpdatedAt() (r time.Time, exists bool) { + v := m.updated_at if v == nil { return } return *v, true } -// OldDisplayName returns the old "display_name" field's value of the Organization entity. -// If the Organization object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *OrganizationMutation) OldDisplayName(ctx context.Context) (v string, err error) { +func (m *ProcedureHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") + return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDisplayName requires an ID field in the mutation") + 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 OldDisplayName: %w", err) + return v, fmt.Errorf("querying old value for OldUpdatedAt: %w", err) } - return oldValue.DisplayName, nil + return oldValue.UpdatedAt, nil } -// ResetDisplayName resets all changes to the "display_name" field. -func (m *OrganizationMutation) ResetDisplayName() { - m.display_name = nil +// ClearUpdatedAt clears the value of the "updated_at" field. +func (m *ProcedureHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[procedurehistory.FieldUpdatedAt] = struct{}{} } -// SetDescription sets the "description" field. -func (m *OrganizationMutation) SetDescription(s string) { - m.description = &s +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldUpdatedAt] + return ok } -// Description returns the value of the "description" field in the mutation. -func (m *OrganizationMutation) Description() (r string, exists bool) { - v := m.description +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *ProcedureHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, procedurehistory.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *ProcedureHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *ProcedureHistoryMutation) CreatedBy() (r string, exists bool) { + v := m.created_by if v == nil { return } return *v, true } -// OldDescription returns the old "description" field's value of the Organization entity. -// If the Organization object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *OrganizationMutation) OldDescription(ctx context.Context) (v string, err error) { +func (m *ProcedureHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDescription is only allowed on UpdateOne operations") + return v, errors.New("OldCreatedBy 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") + 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 OldDescription: %w", err) + return v, fmt.Errorf("querying old value for OldCreatedBy: %w", err) } - return oldValue.Description, nil + return oldValue.CreatedBy, nil } -// ClearDescription clears the value of the "description" field. -func (m *OrganizationMutation) ClearDescription() { - m.description = nil - m.clearedFields[organization.FieldDescription] = struct{}{} +// ClearCreatedBy clears the value of the "created_by" field. +func (m *ProcedureHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[procedurehistory.FieldCreatedBy] = struct{}{} } -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *OrganizationMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[organization.FieldDescription] +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldCreatedBy] return ok } -// ResetDescription resets all changes to the "description" field. -func (m *OrganizationMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, organization.FieldDescription) +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *ProcedureHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, procedurehistory.FieldCreatedBy) } -// SetParentOrganizationID sets the "parent_organization_id" field. -func (m *OrganizationMutation) SetParentOrganizationID(s string) { - m.parent = &s +// SetUpdatedBy sets the "updated_by" field. +func (m *ProcedureHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s } -// ParentOrganizationID returns the value of the "parent_organization_id" field in the mutation. -func (m *OrganizationMutation) ParentOrganizationID() (r string, exists bool) { - v := m.parent +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *ProcedureHistoryMutation) UpdatedBy() (r string, exists bool) { + v := m.updated_by if v == nil { return } return *v, true } -// OldParentOrganizationID returns the old "parent_organization_id" field's value of the Organization entity. -// If the Organization object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *OrganizationMutation) OldParentOrganizationID(ctx context.Context) (v string, err error) { +func (m *ProcedureHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldParentOrganizationID is only allowed on UpdateOne operations") + return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldParentOrganizationID requires an ID field in the mutation") + 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 OldParentOrganizationID: %w", err) + return v, fmt.Errorf("querying old value for OldUpdatedBy: %w", err) } - return oldValue.ParentOrganizationID, nil + return oldValue.UpdatedBy, nil } -// ClearParentOrganizationID clears the value of the "parent_organization_id" field. -func (m *OrganizationMutation) ClearParentOrganizationID() { - m.parent = nil - m.clearedFields[organization.FieldParentOrganizationID] = struct{}{} +// ClearUpdatedBy clears the value of the "updated_by" field. +func (m *ProcedureHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[procedurehistory.FieldUpdatedBy] = struct{}{} } -// ParentOrganizationIDCleared returns if the "parent_organization_id" field was cleared in this mutation. -func (m *OrganizationMutation) ParentOrganizationIDCleared() bool { - _, ok := m.clearedFields[organization.FieldParentOrganizationID] +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldUpdatedBy] return ok } -// ResetParentOrganizationID resets all changes to the "parent_organization_id" field. -func (m *OrganizationMutation) ResetParentOrganizationID() { - m.parent = nil - delete(m.clearedFields, organization.FieldParentOrganizationID) +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *ProcedureHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, procedurehistory.FieldUpdatedBy) } -// SetPersonalOrg sets the "personal_org" field. -func (m *OrganizationMutation) SetPersonalOrg(b bool) { - m.personal_org = &b +// SetDeletedAt sets the "deleted_at" field. +func (m *ProcedureHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t } -// PersonalOrg returns the value of the "personal_org" field in the mutation. -func (m *OrganizationMutation) PersonalOrg() (r bool, exists bool) { - v := m.personal_org +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *ProcedureHistoryMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at if v == nil { return } return *v, true } -// OldPersonalOrg returns the old "personal_org" field's value of the Organization entity. -// If the Organization object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *OrganizationMutation) OldPersonalOrg(ctx context.Context) (v bool, err error) { +func (m *ProcedureHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldPersonalOrg is only allowed on UpdateOne operations") + return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldPersonalOrg requires an ID field in the mutation") + 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 OldPersonalOrg: %w", err) + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) } - return oldValue.PersonalOrg, nil + return oldValue.DeletedAt, nil } -// ClearPersonalOrg clears the value of the "personal_org" field. -func (m *OrganizationMutation) ClearPersonalOrg() { - m.personal_org = nil - m.clearedFields[organization.FieldPersonalOrg] = struct{}{} +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *ProcedureHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[procedurehistory.FieldDeletedAt] = struct{}{} } -// PersonalOrgCleared returns if the "personal_org" field was cleared in this mutation. -func (m *OrganizationMutation) PersonalOrgCleared() bool { - _, ok := m.clearedFields[organization.FieldPersonalOrg] +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldDeletedAt] return ok } -// ResetPersonalOrg resets all changes to the "personal_org" field. -func (m *OrganizationMutation) ResetPersonalOrg() { - m.personal_org = nil - delete(m.clearedFields, organization.FieldPersonalOrg) +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *ProcedureHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, procedurehistory.FieldDeletedAt) } -// SetAvatarRemoteURL sets the "avatar_remote_url" field. -func (m *OrganizationMutation) SetAvatarRemoteURL(s string) { - m.avatar_remote_url = &s +// SetDeletedBy sets the "deleted_by" field. +func (m *ProcedureHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s } -// AvatarRemoteURL returns the value of the "avatar_remote_url" field in the mutation. -func (m *OrganizationMutation) AvatarRemoteURL() (r string, exists bool) { - v := m.avatar_remote_url +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *ProcedureHistoryMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by if v == nil { return } return *v, true } -// OldAvatarRemoteURL returns the old "avatar_remote_url" field's value of the Organization entity. -// If the Organization object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *OrganizationMutation) OldAvatarRemoteURL(ctx context.Context) (v *string, err error) { +func (m *ProcedureHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldAvatarRemoteURL is only allowed on UpdateOne operations") + return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldAvatarRemoteURL requires an ID field in the mutation") + 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 OldAvatarRemoteURL: %w", err) + return v, fmt.Errorf("querying old value for OldDeletedBy: %w", err) } - return oldValue.AvatarRemoteURL, nil + return oldValue.DeletedBy, nil } -// ClearAvatarRemoteURL clears the value of the "avatar_remote_url" field. -func (m *OrganizationMutation) ClearAvatarRemoteURL() { - m.avatar_remote_url = nil - m.clearedFields[organization.FieldAvatarRemoteURL] = struct{}{} +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *ProcedureHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[procedurehistory.FieldDeletedBy] = struct{}{} } -// AvatarRemoteURLCleared returns if the "avatar_remote_url" field was cleared in this mutation. -func (m *OrganizationMutation) AvatarRemoteURLCleared() bool { - _, ok := m.clearedFields[organization.FieldAvatarRemoteURL] +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldDeletedBy] return ok } -// ResetAvatarRemoteURL resets all changes to the "avatar_remote_url" field. -func (m *OrganizationMutation) ResetAvatarRemoteURL() { - m.avatar_remote_url = nil - delete(m.clearedFields, organization.FieldAvatarRemoteURL) +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *ProcedureHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, procedurehistory.FieldDeletedBy) } -// SetDedicatedDb sets the "dedicated_db" field. -func (m *OrganizationMutation) SetDedicatedDb(b bool) { - m.dedicated_db = &b +// SetMappingID sets the "mapping_id" field. +func (m *ProcedureHistoryMutation) SetMappingID(s string) { + m.mapping_id = &s } -// DedicatedDb returns the value of the "dedicated_db" field in the mutation. -func (m *OrganizationMutation) DedicatedDb() (r bool, exists bool) { - v := m.dedicated_db +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *ProcedureHistoryMutation) MappingID() (r string, exists bool) { + v := m.mapping_id if v == nil { return } return *v, true } -// OldDedicatedDb returns the old "dedicated_db" field's value of the Organization entity. -// If the Organization object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *OrganizationMutation) OldDedicatedDb(ctx context.Context) (v bool, err error) { +func (m *ProcedureHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDedicatedDb is only allowed on UpdateOne operations") + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDedicatedDb requires an ID field in the mutation") + return v, errors.New("OldMappingID requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldDedicatedDb: %w", err) + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) } - return oldValue.DedicatedDb, nil -} - -// ResetDedicatedDb resets all changes to the "dedicated_db" field. -func (m *OrganizationMutation) ResetDedicatedDb() { - m.dedicated_db = nil -} - -// SetParentID sets the "parent" edge to the Organization entity by id. -func (m *OrganizationMutation) SetParentID(id string) { - m.parent = &id + return oldValue.MappingID, nil } -// ClearParent clears the "parent" edge to the Organization entity. -func (m *OrganizationMutation) ClearParent() { - m.clearedparent = true - m.clearedFields[organization.FieldParentOrganizationID] = struct{}{} +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *ProcedureHistoryMutation) ResetMappingID() { + m.mapping_id = nil } -// ParentCleared reports if the "parent" edge to the Organization entity was cleared. -func (m *OrganizationMutation) ParentCleared() bool { - return m.ParentOrganizationIDCleared() || m.clearedparent +// SetTags sets the "tags" field. +func (m *ProcedureHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// ParentID returns the "parent" edge ID in the mutation. -func (m *OrganizationMutation) ParentID() (id string, exists bool) { - if m.parent != nil { - return *m.parent, true +// Tags returns the value of the "tags" field in the mutation. +func (m *ProcedureHistoryMutation) Tags() (r []string, exists bool) { + v := m.tags + if v == nil { + return } - return + return *v, true } -// ParentIDs returns the "parent" edge IDs in the mutation. -// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use -// ParentID instead. It exists only for internal usage by the builders. -func (m *OrganizationMutation) ParentIDs() (ids []string) { - if id := m.parent; id != nil { - ids = append(ids, *id) +// OldTags returns the old "tags" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *ProcedureHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldTags is only allowed on UpdateOne operations") } - return + 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 } -// ResetParent resets all changes to the "parent" edge. -func (m *OrganizationMutation) ResetParent() { - m.parent = nil - m.clearedparent = false +// AppendTags adds s to the "tags" field. +func (m *ProcedureHistoryMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) } -// AddChildIDs adds the "children" edge to the Organization entity by ids. -func (m *OrganizationMutation) AddChildIDs(ids ...string) { - if m.children == nil { - m.children = make(map[string]struct{}) - } - for i := range ids { - m.children[ids[i]] = struct{}{} +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *ProcedureHistoryMutation) AppendedTags() ([]string, bool) { + if len(m.appendtags) == 0 { + return nil, false } + return m.appendtags, true } -// ClearChildren clears the "children" edge to the Organization entity. -func (m *OrganizationMutation) ClearChildren() { - m.clearedchildren = true +// ClearTags clears the value of the "tags" field. +func (m *ProcedureHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[procedurehistory.FieldTags] = struct{}{} } -// ChildrenCleared reports if the "children" edge to the Organization entity was cleared. -func (m *OrganizationMutation) ChildrenCleared() bool { - return m.clearedchildren +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldTags] + return ok } -// RemoveChildIDs removes the "children" edge to the Organization entity by IDs. -func (m *OrganizationMutation) RemoveChildIDs(ids ...string) { - if m.removedchildren == nil { - m.removedchildren = make(map[string]struct{}) - } - for i := range ids { - delete(m.children, ids[i]) - m.removedchildren[ids[i]] = struct{}{} - } +// ResetTags resets all changes to the "tags" field. +func (m *ProcedureHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, procedurehistory.FieldTags) } -// RemovedChildren returns the removed IDs of the "children" edge to the Organization entity. -func (m *OrganizationMutation) RemovedChildrenIDs() (ids []string) { - for id := range m.removedchildren { - ids = append(ids, id) - } - return +// SetName sets the "name" field. +func (m *ProcedureHistoryMutation) SetName(s string) { + m.name = &s } -// ChildrenIDs returns the "children" edge IDs in the mutation. -func (m *OrganizationMutation) ChildrenIDs() (ids []string) { - for id := range m.children { - ids = append(ids, id) +// Name returns the value of the "name" field in the mutation. +func (m *ProcedureHistoryMutation) Name() (r string, exists bool) { + v := m.name + if v == nil { + return } - return -} - -// ResetChildren resets all changes to the "children" edge. -func (m *OrganizationMutation) ResetChildren() { - m.children = nil - m.clearedchildren = false - m.removedchildren = nil + return *v, true } -// AddGroupIDs adds the "groups" edge to the Group entity by ids. -func (m *OrganizationMutation) AddGroupIDs(ids ...string) { - if m.groups == nil { - m.groups = make(map[string]struct{}) +// OldName returns the old "name" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *ProcedureHistoryMutation) OldName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldName is only allowed on UpdateOne operations") } - for i := range ids { - m.groups[ids[i]] = struct{}{} + 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 } -// ClearGroups clears the "groups" edge to the Group entity. -func (m *OrganizationMutation) ClearGroups() { - m.clearedgroups = true +// ResetName resets all changes to the "name" field. +func (m *ProcedureHistoryMutation) ResetName() { + m.name = nil } -// GroupsCleared reports if the "groups" edge to the Group entity was cleared. -func (m *OrganizationMutation) GroupsCleared() bool { - return m.clearedgroups +// SetDescription sets the "description" field. +func (m *ProcedureHistoryMutation) SetDescription(s string) { + m.description = &s } -// RemoveGroupIDs removes the "groups" edge to the Group entity by IDs. -func (m *OrganizationMutation) RemoveGroupIDs(ids ...string) { - if m.removedgroups == nil { - m.removedgroups = make(map[string]struct{}) - } - for i := range ids { - delete(m.groups, ids[i]) - m.removedgroups[ids[i]] = struct{}{} +// Description returns the value of the "description" field in the mutation. +func (m *ProcedureHistoryMutation) Description() (r string, exists bool) { + v := m.description + if v == nil { + return } + return *v, true } -// RemovedGroups returns the removed IDs of the "groups" edge to the Group entity. -func (m *OrganizationMutation) RemovedGroupsIDs() (ids []string) { - for id := range m.removedgroups { - ids = append(ids, id) +// OldDescription returns the old "description" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *ProcedureHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDescription is only allowed on UpdateOne operations") } - return -} - -// GroupsIDs returns the "groups" edge IDs in the mutation. -func (m *OrganizationMutation) GroupsIDs() (ids []string) { - for id := range m.groups { - ids = append(ids, id) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDescription requires an ID field in the mutation") } - return + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDescription: %w", err) + } + return oldValue.Description, nil } -// ResetGroups resets all changes to the "groups" edge. -func (m *OrganizationMutation) ResetGroups() { - m.groups = nil - m.clearedgroups = false - m.removedgroups = nil +// ClearDescription clears the value of the "description" field. +func (m *ProcedureHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[procedurehistory.FieldDescription] = struct{}{} } -// AddTemplateIDs adds the "templates" edge to the Template entity by ids. -func (m *OrganizationMutation) AddTemplateIDs(ids ...string) { - if m.templates == nil { - m.templates = make(map[string]struct{}) - } - for i := range ids { - m.templates[ids[i]] = struct{}{} - } +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldDescription] + return ok } -// ClearTemplates clears the "templates" edge to the Template entity. -func (m *OrganizationMutation) ClearTemplates() { - m.clearedtemplates = true +// ResetDescription resets all changes to the "description" field. +func (m *ProcedureHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, procedurehistory.FieldDescription) } -// TemplatesCleared reports if the "templates" edge to the Template entity was cleared. -func (m *OrganizationMutation) TemplatesCleared() bool { - return m.clearedtemplates +// SetStatus sets the "status" field. +func (m *ProcedureHistoryMutation) SetStatus(s string) { + m.status = &s } -// RemoveTemplateIDs removes the "templates" edge to the Template entity by IDs. -func (m *OrganizationMutation) RemoveTemplateIDs(ids ...string) { - if m.removedtemplates == nil { - m.removedtemplates = make(map[string]struct{}) - } - for i := range ids { - delete(m.templates, ids[i]) - m.removedtemplates[ids[i]] = struct{}{} +// Status returns the value of the "status" field in the mutation. +func (m *ProcedureHistoryMutation) Status() (r string, exists bool) { + v := m.status + if v == nil { + return } + return *v, true } -// RemovedTemplates returns the removed IDs of the "templates" edge to the Template entity. -func (m *OrganizationMutation) RemovedTemplatesIDs() (ids []string) { - for id := range m.removedtemplates { - ids = append(ids, id) +// OldStatus returns the old "status" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *ProcedureHistoryMutation) OldStatus(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStatus is only allowed on UpdateOne operations") } - return -} - -// TemplatesIDs returns the "templates" edge IDs in the mutation. -func (m *OrganizationMutation) TemplatesIDs() (ids []string) { - for id := range m.templates { - ids = append(ids, id) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStatus requires an ID field in the mutation") } - return -} - -// ResetTemplates resets all changes to the "templates" edge. -func (m *OrganizationMutation) ResetTemplates() { - m.templates = nil - m.clearedtemplates = false - m.removedtemplates = nil + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStatus: %w", err) + } + return oldValue.Status, nil } -// AddIntegrationIDs adds the "integrations" edge to the Integration entity by ids. -func (m *OrganizationMutation) AddIntegrationIDs(ids ...string) { - if m.integrations == nil { - m.integrations = make(map[string]struct{}) - } - for i := range ids { - m.integrations[ids[i]] = struct{}{} - } +// ClearStatus clears the value of the "status" field. +func (m *ProcedureHistoryMutation) ClearStatus() { + m.status = nil + m.clearedFields[procedurehistory.FieldStatus] = struct{}{} } -// ClearIntegrations clears the "integrations" edge to the Integration entity. -func (m *OrganizationMutation) ClearIntegrations() { - m.clearedintegrations = true +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) StatusCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldStatus] + return ok } -// IntegrationsCleared reports if the "integrations" edge to the Integration entity was cleared. -func (m *OrganizationMutation) IntegrationsCleared() bool { - return m.clearedintegrations +// ResetStatus resets all changes to the "status" field. +func (m *ProcedureHistoryMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, procedurehistory.FieldStatus) } -// RemoveIntegrationIDs removes the "integrations" edge to the Integration entity by IDs. -func (m *OrganizationMutation) RemoveIntegrationIDs(ids ...string) { - if m.removedintegrations == nil { - m.removedintegrations = make(map[string]struct{}) - } - for i := range ids { - delete(m.integrations, ids[i]) - m.removedintegrations[ids[i]] = struct{}{} - } +// SetProcedureType sets the "procedure_type" field. +func (m *ProcedureHistoryMutation) SetProcedureType(s string) { + m.procedure_type = &s } -// RemovedIntegrations returns the removed IDs of the "integrations" edge to the Integration entity. -func (m *OrganizationMutation) RemovedIntegrationsIDs() (ids []string) { - for id := range m.removedintegrations { - ids = append(ids, id) +// ProcedureType returns the value of the "procedure_type" field in the mutation. +func (m *ProcedureHistoryMutation) ProcedureType() (r string, exists bool) { + v := m.procedure_type + if v == nil { + return } - return + return *v, true } -// IntegrationsIDs returns the "integrations" edge IDs in the mutation. -func (m *OrganizationMutation) IntegrationsIDs() (ids []string) { - for id := range m.integrations { - ids = append(ids, id) +// OldProcedureType returns the old "procedure_type" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *ProcedureHistoryMutation) OldProcedureType(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldProcedureType is only allowed on UpdateOne operations") } - return + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldProcedureType requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldProcedureType: %w", err) + } + return oldValue.ProcedureType, nil } -// ResetIntegrations resets all changes to the "integrations" edge. -func (m *OrganizationMutation) ResetIntegrations() { - m.integrations = nil - m.clearedintegrations = false - m.removedintegrations = nil +// ClearProcedureType clears the value of the "procedure_type" field. +func (m *ProcedureHistoryMutation) ClearProcedureType() { + m.procedure_type = nil + m.clearedFields[procedurehistory.FieldProcedureType] = struct{}{} } -// SetSettingID sets the "setting" edge to the OrganizationSetting entity by id. -func (m *OrganizationMutation) SetSettingID(id string) { - m.setting = &id +// ProcedureTypeCleared returns if the "procedure_type" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) ProcedureTypeCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldProcedureType] + return ok } -// ClearSetting clears the "setting" edge to the OrganizationSetting entity. -func (m *OrganizationMutation) ClearSetting() { - m.clearedsetting = true +// ResetProcedureType resets all changes to the "procedure_type" field. +func (m *ProcedureHistoryMutation) ResetProcedureType() { + m.procedure_type = nil + delete(m.clearedFields, procedurehistory.FieldProcedureType) } -// SettingCleared reports if the "setting" edge to the OrganizationSetting entity was cleared. -func (m *OrganizationMutation) SettingCleared() bool { - return m.clearedsetting +// SetVersion sets the "version" field. +func (m *ProcedureHistoryMutation) SetVersion(s string) { + m.version = &s } -// SettingID returns the "setting" edge ID in the mutation. -func (m *OrganizationMutation) SettingID() (id string, exists bool) { - if m.setting != nil { - return *m.setting, true +// Version returns the value of the "version" field in the mutation. +func (m *ProcedureHistoryMutation) Version() (r string, exists bool) { + v := m.version + if v == nil { + return } - return + return *v, true } -// SettingIDs returns the "setting" edge IDs in the mutation. -// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use -// SettingID instead. It exists only for internal usage by the builders. -func (m *OrganizationMutation) SettingIDs() (ids []string) { - if id := m.setting; id != nil { - ids = append(ids, *id) +// OldVersion returns the old "version" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *ProcedureHistoryMutation) OldVersion(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldVersion is only allowed on UpdateOne operations") } - return + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldVersion requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldVersion: %w", err) + } + return oldValue.Version, nil } -// ResetSetting resets all changes to the "setting" edge. -func (m *OrganizationMutation) ResetSetting() { - m.setting = nil - m.clearedsetting = false +// ClearVersion clears the value of the "version" field. +func (m *ProcedureHistoryMutation) ClearVersion() { + m.version = nil + m.clearedFields[procedurehistory.FieldVersion] = struct{}{} } -// AddDocumentdatumIDs adds the "documentdata" edge to the DocumentData entity by ids. -func (m *OrganizationMutation) AddDocumentdatumIDs(ids ...string) { - if m.documentdata == nil { - m.documentdata = make(map[string]struct{}) - } - for i := range ids { - m.documentdata[ids[i]] = struct{}{} - } +// VersionCleared returns if the "version" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) VersionCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldVersion] + return ok } -// ClearDocumentdata clears the "documentdata" edge to the DocumentData entity. -func (m *OrganizationMutation) ClearDocumentdata() { - m.cleareddocumentdata = true +// ResetVersion resets all changes to the "version" field. +func (m *ProcedureHistoryMutation) ResetVersion() { + m.version = nil + delete(m.clearedFields, procedurehistory.FieldVersion) } -// DocumentdataCleared reports if the "documentdata" edge to the DocumentData entity was cleared. -func (m *OrganizationMutation) DocumentdataCleared() bool { - return m.cleareddocumentdata +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (m *ProcedureHistoryMutation) SetPurposeAndScope(s string) { + m.purpose_and_scope = &s } -// RemoveDocumentdatumIDs removes the "documentdata" edge to the DocumentData entity by IDs. -func (m *OrganizationMutation) RemoveDocumentdatumIDs(ids ...string) { - if m.removeddocumentdata == nil { - m.removeddocumentdata = make(map[string]struct{}) - } - for i := range ids { - delete(m.documentdata, ids[i]) - m.removeddocumentdata[ids[i]] = struct{}{} +// PurposeAndScope returns the value of the "purpose_and_scope" field in the mutation. +func (m *ProcedureHistoryMutation) PurposeAndScope() (r string, exists bool) { + v := m.purpose_and_scope + if v == nil { + return } + return *v, true } -// RemovedDocumentdata returns the removed IDs of the "documentdata" edge to the DocumentData entity. -func (m *OrganizationMutation) RemovedDocumentdataIDs() (ids []string) { - for id := range m.removeddocumentdata { - ids = append(ids, id) +// OldPurposeAndScope returns the old "purpose_and_scope" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *ProcedureHistoryMutation) OldPurposeAndScope(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldPurposeAndScope is only allowed on UpdateOne operations") } - return -} - -// DocumentdataIDs returns the "documentdata" edge IDs in the mutation. -func (m *OrganizationMutation) DocumentdataIDs() (ids []string) { - for id := range m.documentdata { - ids = append(ids, id) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldPurposeAndScope requires an ID field in the mutation") } - return + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldPurposeAndScope: %w", err) + } + return oldValue.PurposeAndScope, nil } -// ResetDocumentdata resets all changes to the "documentdata" edge. -func (m *OrganizationMutation) ResetDocumentdata() { - m.documentdata = nil - m.cleareddocumentdata = false - m.removeddocumentdata = nil +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (m *ProcedureHistoryMutation) ClearPurposeAndScope() { + m.purpose_and_scope = nil + m.clearedFields[procedurehistory.FieldPurposeAndScope] = struct{}{} } -// AddEntitlementIDs adds the "entitlements" edge to the Entitlement entity by ids. -func (m *OrganizationMutation) AddEntitlementIDs(ids ...string) { - if m.entitlements == nil { - m.entitlements = make(map[string]struct{}) - } - for i := range ids { - m.entitlements[ids[i]] = struct{}{} - } +// PurposeAndScopeCleared returns if the "purpose_and_scope" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) PurposeAndScopeCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldPurposeAndScope] + return ok } -// ClearEntitlements clears the "entitlements" edge to the Entitlement entity. -func (m *OrganizationMutation) ClearEntitlements() { - m.clearedentitlements = true +// ResetPurposeAndScope resets all changes to the "purpose_and_scope" field. +func (m *ProcedureHistoryMutation) ResetPurposeAndScope() { + m.purpose_and_scope = nil + delete(m.clearedFields, procedurehistory.FieldPurposeAndScope) } -// EntitlementsCleared reports if the "entitlements" edge to the Entitlement entity was cleared. -func (m *OrganizationMutation) EntitlementsCleared() bool { - return m.clearedentitlements +// SetBackground sets the "background" field. +func (m *ProcedureHistoryMutation) SetBackground(s string) { + m.background = &s } -// RemoveEntitlementIDs removes the "entitlements" edge to the Entitlement entity by IDs. -func (m *OrganizationMutation) RemoveEntitlementIDs(ids ...string) { - if m.removedentitlements == nil { - m.removedentitlements = make(map[string]struct{}) - } - for i := range ids { - delete(m.entitlements, ids[i]) - m.removedentitlements[ids[i]] = struct{}{} +// Background returns the value of the "background" field in the mutation. +func (m *ProcedureHistoryMutation) Background() (r string, exists bool) { + v := m.background + if v == nil { + return } + return *v, true } -// RemovedEntitlements returns the removed IDs of the "entitlements" edge to the Entitlement entity. -func (m *OrganizationMutation) RemovedEntitlementsIDs() (ids []string) { - for id := range m.removedentitlements { - ids = append(ids, id) +// OldBackground returns the old "background" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *ProcedureHistoryMutation) OldBackground(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldBackground is only allowed on UpdateOne operations") } - return -} - -// EntitlementsIDs returns the "entitlements" edge IDs in the mutation. -func (m *OrganizationMutation) EntitlementsIDs() (ids []string) { - for id := range m.entitlements { - ids = append(ids, id) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldBackground requires an ID field in the mutation") } - return + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldBackground: %w", err) + } + return oldValue.Background, nil } -// ResetEntitlements resets all changes to the "entitlements" edge. -func (m *OrganizationMutation) ResetEntitlements() { - m.entitlements = nil - m.clearedentitlements = false - m.removedentitlements = nil +// ClearBackground clears the value of the "background" field. +func (m *ProcedureHistoryMutation) ClearBackground() { + m.background = nil + m.clearedFields[procedurehistory.FieldBackground] = struct{}{} } -// AddOrganizationEntitlementIDs adds the "organization_entitlement" edge to the Entitlement entity by ids. -func (m *OrganizationMutation) AddOrganizationEntitlementIDs(ids ...string) { - if m.organization_entitlement == nil { - m.organization_entitlement = make(map[string]struct{}) - } - for i := range ids { - m.organization_entitlement[ids[i]] = struct{}{} - } +// BackgroundCleared returns if the "background" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) BackgroundCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldBackground] + return ok } -// ClearOrganizationEntitlement clears the "organization_entitlement" edge to the Entitlement entity. -func (m *OrganizationMutation) ClearOrganizationEntitlement() { - m.clearedorganization_entitlement = true +// ResetBackground resets all changes to the "background" field. +func (m *ProcedureHistoryMutation) ResetBackground() { + m.background = nil + delete(m.clearedFields, procedurehistory.FieldBackground) } -// OrganizationEntitlementCleared reports if the "organization_entitlement" edge to the Entitlement entity was cleared. -func (m *OrganizationMutation) OrganizationEntitlementCleared() bool { - return m.clearedorganization_entitlement +// SetSatisfies sets the "satisfies" field. +func (m *ProcedureHistoryMutation) SetSatisfies(s string) { + m.satisfies = &s } -// RemoveOrganizationEntitlementIDs removes the "organization_entitlement" edge to the Entitlement entity by IDs. -func (m *OrganizationMutation) RemoveOrganizationEntitlementIDs(ids ...string) { - if m.removedorganization_entitlement == nil { - m.removedorganization_entitlement = make(map[string]struct{}) - } - for i := range ids { - delete(m.organization_entitlement, ids[i]) - m.removedorganization_entitlement[ids[i]] = struct{}{} +// Satisfies returns the value of the "satisfies" field in the mutation. +func (m *ProcedureHistoryMutation) Satisfies() (r string, exists bool) { + v := m.satisfies + if v == nil { + return } + return *v, true } -// RemovedOrganizationEntitlement returns the removed IDs of the "organization_entitlement" edge to the Entitlement entity. -func (m *OrganizationMutation) RemovedOrganizationEntitlementIDs() (ids []string) { - for id := range m.removedorganization_entitlement { - ids = append(ids, id) +// OldSatisfies returns the old "satisfies" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *ProcedureHistoryMutation) OldSatisfies(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSatisfies is only allowed on UpdateOne operations") } - return -} - -// OrganizationEntitlementIDs returns the "organization_entitlement" edge IDs in the mutation. -func (m *OrganizationMutation) OrganizationEntitlementIDs() (ids []string) { - for id := range m.organization_entitlement { - ids = append(ids, id) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSatisfies requires an ID field in the mutation") } - return + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSatisfies: %w", err) + } + return oldValue.Satisfies, nil } -// ResetOrganizationEntitlement resets all changes to the "organization_entitlement" edge. -func (m *OrganizationMutation) ResetOrganizationEntitlement() { - m.organization_entitlement = nil - m.clearedorganization_entitlement = false - m.removedorganization_entitlement = nil +// ClearSatisfies clears the value of the "satisfies" field. +func (m *ProcedureHistoryMutation) ClearSatisfies() { + m.satisfies = nil + m.clearedFields[procedurehistory.FieldSatisfies] = struct{}{} } -// AddPersonalAccessTokenIDs adds the "personal_access_tokens" edge to the PersonalAccessToken entity by ids. -func (m *OrganizationMutation) AddPersonalAccessTokenIDs(ids ...string) { - if m.personal_access_tokens == nil { - m.personal_access_tokens = make(map[string]struct{}) - } - for i := range ids { - m.personal_access_tokens[ids[i]] = struct{}{} - } +// SatisfiesCleared returns if the "satisfies" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) SatisfiesCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldSatisfies] + return ok } -// ClearPersonalAccessTokens clears the "personal_access_tokens" edge to the PersonalAccessToken entity. -func (m *OrganizationMutation) ClearPersonalAccessTokens() { - m.clearedpersonal_access_tokens = true +// ResetSatisfies resets all changes to the "satisfies" field. +func (m *ProcedureHistoryMutation) ResetSatisfies() { + m.satisfies = nil + delete(m.clearedFields, procedurehistory.FieldSatisfies) } -// PersonalAccessTokensCleared reports if the "personal_access_tokens" edge to the PersonalAccessToken entity was cleared. -func (m *OrganizationMutation) PersonalAccessTokensCleared() bool { - return m.clearedpersonal_access_tokens +// SetDetails sets the "details" field. +func (m *ProcedureHistoryMutation) SetDetails(value map[string]interface{}) { + m.details = &value } -// RemovePersonalAccessTokenIDs removes the "personal_access_tokens" edge to the PersonalAccessToken entity by IDs. -func (m *OrganizationMutation) RemovePersonalAccessTokenIDs(ids ...string) { - if m.removedpersonal_access_tokens == nil { - m.removedpersonal_access_tokens = make(map[string]struct{}) - } - for i := range ids { - delete(m.personal_access_tokens, ids[i]) - m.removedpersonal_access_tokens[ids[i]] = struct{}{} +// Details returns the value of the "details" field in the mutation. +func (m *ProcedureHistoryMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details + if v == nil { + return } + return *v, true } -// RemovedPersonalAccessTokens returns the removed IDs of the "personal_access_tokens" edge to the PersonalAccessToken entity. -func (m *OrganizationMutation) RemovedPersonalAccessTokensIDs() (ids []string) { - for id := range m.removedpersonal_access_tokens { - ids = append(ids, id) +// OldDetails returns the old "details" field's value of the ProcedureHistory entity. +// If the ProcedureHistory 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 *ProcedureHistoryMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetails is only allowed on UpdateOne operations") } - return -} - -// PersonalAccessTokensIDs returns the "personal_access_tokens" edge IDs in the mutation. -func (m *OrganizationMutation) PersonalAccessTokensIDs() (ids []string) { - for id := range m.personal_access_tokens { - ids = append(ids, id) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetails requires an ID field in the mutation") } - return + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetails: %w", err) + } + return oldValue.Details, nil } -// ResetPersonalAccessTokens resets all changes to the "personal_access_tokens" edge. -func (m *OrganizationMutation) ResetPersonalAccessTokens() { - m.personal_access_tokens = nil - m.clearedpersonal_access_tokens = false - m.removedpersonal_access_tokens = nil +// ClearDetails clears the value of the "details" field. +func (m *ProcedureHistoryMutation) ClearDetails() { + m.details = nil + m.clearedFields[procedurehistory.FieldDetails] = struct{}{} } -// AddAPITokenIDs adds the "api_tokens" edge to the APIToken entity by ids. -func (m *OrganizationMutation) AddAPITokenIDs(ids ...string) { - if m.api_tokens == nil { - m.api_tokens = make(map[string]struct{}) - } - for i := range ids { - m.api_tokens[ids[i]] = struct{}{} - } +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *ProcedureHistoryMutation) DetailsCleared() bool { + _, ok := m.clearedFields[procedurehistory.FieldDetails] + return ok } -// ClearAPITokens clears the "api_tokens" edge to the APIToken entity. -func (m *OrganizationMutation) ClearAPITokens() { - m.clearedapi_tokens = true +// ResetDetails resets all changes to the "details" field. +func (m *ProcedureHistoryMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, procedurehistory.FieldDetails) } -// APITokensCleared reports if the "api_tokens" edge to the APIToken entity was cleared. -func (m *OrganizationMutation) APITokensCleared() bool { - return m.clearedapi_tokens +// Where appends a list predicates to the ProcedureHistoryMutation builder. +func (m *ProcedureHistoryMutation) Where(ps ...predicate.ProcedureHistory) { + m.predicates = append(m.predicates, ps...) } -// RemoveAPITokenIDs removes the "api_tokens" edge to the APIToken entity by IDs. -func (m *OrganizationMutation) RemoveAPITokenIDs(ids ...string) { - if m.removedapi_tokens == nil { - m.removedapi_tokens = make(map[string]struct{}) - } - for i := range ids { - delete(m.api_tokens, ids[i]) - m.removedapi_tokens[ids[i]] = struct{}{} +// WhereP appends storage-level predicates to the ProcedureHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *ProcedureHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.ProcedureHistory, len(ps)) + for i := range ps { + p[i] = ps[i] } + m.Where(p...) } -// RemovedAPITokens returns the removed IDs of the "api_tokens" edge to the APIToken entity. -func (m *OrganizationMutation) RemovedAPITokensIDs() (ids []string) { - for id := range m.removedapi_tokens { - ids = append(ids, id) - } - return +// Op returns the operation name. +func (m *ProcedureHistoryMutation) Op() Op { + return m.op } -// APITokensIDs returns the "api_tokens" edge IDs in the mutation. -func (m *OrganizationMutation) APITokensIDs() (ids []string) { - for id := range m.api_tokens { - ids = append(ids, id) - } - return +// SetOp allows setting the mutation operation. +func (m *ProcedureHistoryMutation) SetOp(op Op) { + m.op = op } -// ResetAPITokens resets all changes to the "api_tokens" edge. -func (m *OrganizationMutation) ResetAPITokens() { - m.api_tokens = nil - m.clearedapi_tokens = false - m.removedapi_tokens = nil +// Type returns the node type of this mutation (ProcedureHistory). +func (m *ProcedureHistoryMutation) Type() string { + return m.typ } -// AddOauthproviderIDs adds the "oauthprovider" edge to the OauthProvider entity by ids. -func (m *OrganizationMutation) AddOauthproviderIDs(ids ...string) { - if m.oauthprovider == nil { - m.oauthprovider = make(map[string]struct{}) +// 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 *ProcedureHistoryMutation) Fields() []string { + fields := make([]string, 0, 20) + if m.history_time != nil { + fields = append(fields, procedurehistory.FieldHistoryTime) } - for i := range ids { - m.oauthprovider[ids[i]] = struct{}{} + if m.ref != nil { + fields = append(fields, procedurehistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, procedurehistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, procedurehistory.FieldCreatedAt) } + if m.updated_at != nil { + fields = append(fields, procedurehistory.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, procedurehistory.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, procedurehistory.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, procedurehistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, procedurehistory.FieldDeletedBy) + } + if m.mapping_id != nil { + fields = append(fields, procedurehistory.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, procedurehistory.FieldTags) + } + if m.name != nil { + fields = append(fields, procedurehistory.FieldName) + } + if m.description != nil { + fields = append(fields, procedurehistory.FieldDescription) + } + if m.status != nil { + fields = append(fields, procedurehistory.FieldStatus) + } + if m.procedure_type != nil { + fields = append(fields, procedurehistory.FieldProcedureType) + } + if m.version != nil { + fields = append(fields, procedurehistory.FieldVersion) + } + if m.purpose_and_scope != nil { + fields = append(fields, procedurehistory.FieldPurposeAndScope) + } + if m.background != nil { + fields = append(fields, procedurehistory.FieldBackground) + } + if m.satisfies != nil { + fields = append(fields, procedurehistory.FieldSatisfies) + } + if m.details != nil { + fields = append(fields, procedurehistory.FieldDetails) + } + return fields } -// ClearOauthprovider clears the "oauthprovider" edge to the OauthProvider entity. -func (m *OrganizationMutation) ClearOauthprovider() { - m.clearedoauthprovider = true +// 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 *ProcedureHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case procedurehistory.FieldHistoryTime: + return m.HistoryTime() + case procedurehistory.FieldRef: + return m.Ref() + case procedurehistory.FieldOperation: + return m.Operation() + case procedurehistory.FieldCreatedAt: + return m.CreatedAt() + case procedurehistory.FieldUpdatedAt: + return m.UpdatedAt() + case procedurehistory.FieldCreatedBy: + return m.CreatedBy() + case procedurehistory.FieldUpdatedBy: + return m.UpdatedBy() + case procedurehistory.FieldDeletedAt: + return m.DeletedAt() + case procedurehistory.FieldDeletedBy: + return m.DeletedBy() + case procedurehistory.FieldMappingID: + return m.MappingID() + case procedurehistory.FieldTags: + return m.Tags() + case procedurehistory.FieldName: + return m.Name() + case procedurehistory.FieldDescription: + return m.Description() + case procedurehistory.FieldStatus: + return m.Status() + case procedurehistory.FieldProcedureType: + return m.ProcedureType() + case procedurehistory.FieldVersion: + return m.Version() + case procedurehistory.FieldPurposeAndScope: + return m.PurposeAndScope() + case procedurehistory.FieldBackground: + return m.Background() + case procedurehistory.FieldSatisfies: + return m.Satisfies() + case procedurehistory.FieldDetails: + return m.Details() + } + return nil, false } -// OauthproviderCleared reports if the "oauthprovider" edge to the OauthProvider entity was cleared. -func (m *OrganizationMutation) OauthproviderCleared() bool { - return m.clearedoauthprovider +// 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 *ProcedureHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case procedurehistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case procedurehistory.FieldRef: + return m.OldRef(ctx) + case procedurehistory.FieldOperation: + return m.OldOperation(ctx) + case procedurehistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case procedurehistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case procedurehistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case procedurehistory.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case procedurehistory.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case procedurehistory.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case procedurehistory.FieldMappingID: + return m.OldMappingID(ctx) + case procedurehistory.FieldTags: + return m.OldTags(ctx) + case procedurehistory.FieldName: + return m.OldName(ctx) + case procedurehistory.FieldDescription: + return m.OldDescription(ctx) + case procedurehistory.FieldStatus: + return m.OldStatus(ctx) + case procedurehistory.FieldProcedureType: + return m.OldProcedureType(ctx) + case procedurehistory.FieldVersion: + return m.OldVersion(ctx) + case procedurehistory.FieldPurposeAndScope: + return m.OldPurposeAndScope(ctx) + case procedurehistory.FieldBackground: + return m.OldBackground(ctx) + case procedurehistory.FieldSatisfies: + return m.OldSatisfies(ctx) + case procedurehistory.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown ProcedureHistory field %s", name) } -// RemoveOauthproviderIDs removes the "oauthprovider" edge to the OauthProvider entity by IDs. -func (m *OrganizationMutation) RemoveOauthproviderIDs(ids ...string) { - if m.removedoauthprovider == nil { - m.removedoauthprovider = make(map[string]struct{}) - } - for i := range ids { - delete(m.oauthprovider, ids[i]) - m.removedoauthprovider[ids[i]] = struct{}{} +// 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 *ProcedureHistoryMutation) SetField(name string, value ent.Value) error { + switch name { + case procedurehistory.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 procedurehistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case procedurehistory.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 procedurehistory.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 procedurehistory.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 procedurehistory.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case procedurehistory.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case procedurehistory.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 procedurehistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case procedurehistory.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappingID(v) + return nil + case procedurehistory.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case procedurehistory.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case procedurehistory.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case procedurehistory.FieldStatus: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetStatus(v) + return nil + case procedurehistory.FieldProcedureType: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetProcedureType(v) + return nil + case procedurehistory.FieldVersion: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetVersion(v) + return nil + case procedurehistory.FieldPurposeAndScope: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetPurposeAndScope(v) + return nil + case procedurehistory.FieldBackground: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetBackground(v) + return nil + case procedurehistory.FieldSatisfies: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSatisfies(v) + return nil + case procedurehistory.FieldDetails: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDetails(v) + return nil } + return fmt.Errorf("unknown ProcedureHistory field %s", name) } -// RemovedOauthprovider returns the removed IDs of the "oauthprovider" edge to the OauthProvider entity. -func (m *OrganizationMutation) RemovedOauthproviderIDs() (ids []string) { - for id := range m.removedoauthprovider { - ids = append(ids, id) - } - return +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *ProcedureHistoryMutation) AddedFields() []string { + return nil } -// OauthproviderIDs returns the "oauthprovider" edge IDs in the mutation. -func (m *OrganizationMutation) OauthproviderIDs() (ids []string) { - for id := range m.oauthprovider { - ids = append(ids, id) - } - return +// 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 *ProcedureHistoryMutation) AddedField(name string) (ent.Value, bool) { + return nil, false } -// ResetOauthprovider resets all changes to the "oauthprovider" edge. -func (m *OrganizationMutation) ResetOauthprovider() { - m.oauthprovider = nil - m.clearedoauthprovider = false - m.removedoauthprovider = nil +// 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 *ProcedureHistoryMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown ProcedureHistory numeric field %s", name) } -// AddUserIDs adds the "users" edge to the User entity by ids. -func (m *OrganizationMutation) AddUserIDs(ids ...string) { - if m.users == nil { - m.users = make(map[string]struct{}) +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *ProcedureHistoryMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(procedurehistory.FieldRef) { + fields = append(fields, procedurehistory.FieldRef) } - for i := range ids { - m.users[ids[i]] = struct{}{} + if m.FieldCleared(procedurehistory.FieldCreatedAt) { + fields = append(fields, procedurehistory.FieldCreatedAt) } -} - -// ClearUsers clears the "users" edge to the User entity. -func (m *OrganizationMutation) ClearUsers() { - m.clearedusers = true -} - -// UsersCleared reports if the "users" edge to the User entity was cleared. -func (m *OrganizationMutation) UsersCleared() bool { - return m.clearedusers -} - -// RemoveUserIDs removes the "users" edge to the User entity by IDs. -func (m *OrganizationMutation) RemoveUserIDs(ids ...string) { - if m.removedusers == nil { - m.removedusers = make(map[string]struct{}) + if m.FieldCleared(procedurehistory.FieldUpdatedAt) { + fields = append(fields, procedurehistory.FieldUpdatedAt) } - for i := range ids { - delete(m.users, ids[i]) - m.removedusers[ids[i]] = struct{}{} + if m.FieldCleared(procedurehistory.FieldCreatedBy) { + fields = append(fields, procedurehistory.FieldCreatedBy) } -} - -// RemovedUsers returns the removed IDs of the "users" edge to the User entity. -func (m *OrganizationMutation) RemovedUsersIDs() (ids []string) { - for id := range m.removedusers { - ids = append(ids, id) + if m.FieldCleared(procedurehistory.FieldUpdatedBy) { + fields = append(fields, procedurehistory.FieldUpdatedBy) } - return -} - -// UsersIDs returns the "users" edge IDs in the mutation. -func (m *OrganizationMutation) UsersIDs() (ids []string) { - for id := range m.users { - ids = append(ids, id) + if m.FieldCleared(procedurehistory.FieldDeletedAt) { + fields = append(fields, procedurehistory.FieldDeletedAt) } - return -} - -// ResetUsers resets all changes to the "users" edge. -func (m *OrganizationMutation) ResetUsers() { - m.users = nil - m.clearedusers = false - m.removedusers = nil -} - -// AddInviteIDs adds the "invites" edge to the Invite entity by ids. -func (m *OrganizationMutation) AddInviteIDs(ids ...string) { - if m.invites == nil { - m.invites = make(map[string]struct{}) + if m.FieldCleared(procedurehistory.FieldDeletedBy) { + fields = append(fields, procedurehistory.FieldDeletedBy) } - for i := range ids { - m.invites[ids[i]] = struct{}{} + if m.FieldCleared(procedurehistory.FieldTags) { + fields = append(fields, procedurehistory.FieldTags) } -} - -// ClearInvites clears the "invites" edge to the Invite entity. -func (m *OrganizationMutation) ClearInvites() { - m.clearedinvites = true -} - -// InvitesCleared reports if the "invites" edge to the Invite entity was cleared. -func (m *OrganizationMutation) InvitesCleared() bool { - return m.clearedinvites -} - -// RemoveInviteIDs removes the "invites" edge to the Invite entity by IDs. -func (m *OrganizationMutation) RemoveInviteIDs(ids ...string) { - if m.removedinvites == nil { - m.removedinvites = make(map[string]struct{}) + if m.FieldCleared(procedurehistory.FieldDescription) { + fields = append(fields, procedurehistory.FieldDescription) } - for i := range ids { - delete(m.invites, ids[i]) - m.removedinvites[ids[i]] = struct{}{} + if m.FieldCleared(procedurehistory.FieldStatus) { + fields = append(fields, procedurehistory.FieldStatus) } -} - -// RemovedInvites returns the removed IDs of the "invites" edge to the Invite entity. -func (m *OrganizationMutation) RemovedInvitesIDs() (ids []string) { - for id := range m.removedinvites { - ids = append(ids, id) + if m.FieldCleared(procedurehistory.FieldProcedureType) { + fields = append(fields, procedurehistory.FieldProcedureType) } - return -} - -// InvitesIDs returns the "invites" edge IDs in the mutation. -func (m *OrganizationMutation) InvitesIDs() (ids []string) { - for id := range m.invites { - ids = append(ids, id) + if m.FieldCleared(procedurehistory.FieldVersion) { + fields = append(fields, procedurehistory.FieldVersion) } - return + if m.FieldCleared(procedurehistory.FieldPurposeAndScope) { + fields = append(fields, procedurehistory.FieldPurposeAndScope) + } + if m.FieldCleared(procedurehistory.FieldBackground) { + fields = append(fields, procedurehistory.FieldBackground) + } + if m.FieldCleared(procedurehistory.FieldSatisfies) { + fields = append(fields, procedurehistory.FieldSatisfies) + } + if m.FieldCleared(procedurehistory.FieldDetails) { + fields = append(fields, procedurehistory.FieldDetails) + } + return fields } -// ResetInvites resets all changes to the "invites" edge. -func (m *OrganizationMutation) ResetInvites() { - m.invites = nil - m.clearedinvites = false - m.removedinvites = nil +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *ProcedureHistoryMutation) FieldCleared(name string) bool { + _, ok := m.clearedFields[name] + return ok } -// AddSubscriberIDs adds the "subscribers" edge to the Subscriber entity by ids. -func (m *OrganizationMutation) AddSubscriberIDs(ids ...string) { - if m.subscribers == nil { - m.subscribers = make(map[string]struct{}) +// 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 *ProcedureHistoryMutation) ClearField(name string) error { + switch name { + case procedurehistory.FieldRef: + m.ClearRef() + return nil + case procedurehistory.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case procedurehistory.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case procedurehistory.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case procedurehistory.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case procedurehistory.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case procedurehistory.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case procedurehistory.FieldTags: + m.ClearTags() + return nil + case procedurehistory.FieldDescription: + m.ClearDescription() + return nil + case procedurehistory.FieldStatus: + m.ClearStatus() + return nil + case procedurehistory.FieldProcedureType: + m.ClearProcedureType() + return nil + case procedurehistory.FieldVersion: + m.ClearVersion() + return nil + case procedurehistory.FieldPurposeAndScope: + m.ClearPurposeAndScope() + return nil + case procedurehistory.FieldBackground: + m.ClearBackground() + return nil + case procedurehistory.FieldSatisfies: + m.ClearSatisfies() + return nil + case procedurehistory.FieldDetails: + m.ClearDetails() + return nil } - for i := range ids { - m.subscribers[ids[i]] = struct{}{} + return fmt.Errorf("unknown ProcedureHistory 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 *ProcedureHistoryMutation) ResetField(name string) error { + switch name { + case procedurehistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case procedurehistory.FieldRef: + m.ResetRef() + return nil + case procedurehistory.FieldOperation: + m.ResetOperation() + return nil + case procedurehistory.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case procedurehistory.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case procedurehistory.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case procedurehistory.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case procedurehistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case procedurehistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case procedurehistory.FieldMappingID: + m.ResetMappingID() + return nil + case procedurehistory.FieldTags: + m.ResetTags() + return nil + case procedurehistory.FieldName: + m.ResetName() + return nil + case procedurehistory.FieldDescription: + m.ResetDescription() + return nil + case procedurehistory.FieldStatus: + m.ResetStatus() + return nil + case procedurehistory.FieldProcedureType: + m.ResetProcedureType() + return nil + case procedurehistory.FieldVersion: + m.ResetVersion() + return nil + case procedurehistory.FieldPurposeAndScope: + m.ResetPurposeAndScope() + return nil + case procedurehistory.FieldBackground: + m.ResetBackground() + return nil + case procedurehistory.FieldSatisfies: + m.ResetSatisfies() + return nil + case procedurehistory.FieldDetails: + m.ResetDetails() + return nil } + return fmt.Errorf("unknown ProcedureHistory field %s", name) } -// ClearSubscribers clears the "subscribers" edge to the Subscriber entity. -func (m *OrganizationMutation) ClearSubscribers() { - m.clearedsubscribers = true +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *ProcedureHistoryMutation) AddedEdges() []string { + edges := make([]string, 0, 0) + return edges } -// SubscribersCleared reports if the "subscribers" edge to the Subscriber entity was cleared. -func (m *OrganizationMutation) SubscribersCleared() bool { - return m.clearedsubscribers +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *ProcedureHistoryMutation) AddedIDs(name string) []ent.Value { + return nil } -// RemoveSubscriberIDs removes the "subscribers" edge to the Subscriber entity by IDs. -func (m *OrganizationMutation) RemoveSubscriberIDs(ids ...string) { - if m.removedsubscribers == nil { - m.removedsubscribers = make(map[string]struct{}) - } - for i := range ids { - delete(m.subscribers, ids[i]) - m.removedsubscribers[ids[i]] = struct{}{} - } +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *ProcedureHistoryMutation) RemovedEdges() []string { + edges := make([]string, 0, 0) + return edges } -// RemovedSubscribers returns the removed IDs of the "subscribers" edge to the Subscriber entity. -func (m *OrganizationMutation) RemovedSubscribersIDs() (ids []string) { - for id := range m.removedsubscribers { - ids = append(ids, id) - } - return +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *ProcedureHistoryMutation) RemovedIDs(name string) []ent.Value { + return nil } -// SubscribersIDs returns the "subscribers" edge IDs in the mutation. -func (m *OrganizationMutation) SubscribersIDs() (ids []string) { - for id := range m.subscribers { - ids = append(ids, id) - } - return +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *ProcedureHistoryMutation) ClearedEdges() []string { + edges := make([]string, 0, 0) + return edges } -// ResetSubscribers resets all changes to the "subscribers" edge. -func (m *OrganizationMutation) ResetSubscribers() { - m.subscribers = nil - m.clearedsubscribers = false - m.removedsubscribers = nil +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *ProcedureHistoryMutation) EdgeCleared(name string) bool { + return false } -// AddWebhookIDs adds the "webhooks" edge to the Webhook entity by ids. -func (m *OrganizationMutation) AddWebhookIDs(ids ...string) { - if m.webhooks == nil { - m.webhooks = make(map[string]struct{}) - } - for i := range ids { - m.webhooks[ids[i]] = struct{}{} - } +// 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 *ProcedureHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown ProcedureHistory unique edge %s", name) } -// ClearWebhooks clears the "webhooks" edge to the Webhook entity. -func (m *OrganizationMutation) ClearWebhooks() { - m.clearedwebhooks = true +// 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 *ProcedureHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown ProcedureHistory edge %s", name) } -// WebhooksCleared reports if the "webhooks" edge to the Webhook entity was cleared. -func (m *OrganizationMutation) WebhooksCleared() bool { - return m.clearedwebhooks +// RiskMutation represents an operation that mutates the Risk nodes in the graph. +type RiskMutation struct { + config + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + status *string + risk_type *string + business_costs *string + impact *enums.RiskImpact + likelihood *enums.RiskLikelihood + mitigation *string + satisfies *string + details *map[string]interface{} + clearedFields map[string]struct{} + control map[string]struct{} + removedcontrol map[string]struct{} + clearedcontrol bool + procedure map[string]struct{} + removedprocedure map[string]struct{} + clearedprocedure bool + actionplans map[string]struct{} + removedactionplans map[string]struct{} + clearedactionplans bool + done bool + oldValue func(context.Context) (*Risk, error) + predicates []predicate.Risk } -// RemoveWebhookIDs removes the "webhooks" edge to the Webhook entity by IDs. -func (m *OrganizationMutation) RemoveWebhookIDs(ids ...string) { - if m.removedwebhooks == nil { - m.removedwebhooks = make(map[string]struct{}) +var _ ent.Mutation = (*RiskMutation)(nil) + +// riskOption allows management of the mutation configuration using functional options. +type riskOption func(*RiskMutation) + +// newRiskMutation creates new mutation for the Risk entity. +func newRiskMutation(c config, op Op, opts ...riskOption) *RiskMutation { + m := &RiskMutation{ + config: c, + op: op, + typ: TypeRisk, + clearedFields: make(map[string]struct{}), } - for i := range ids { - delete(m.webhooks, ids[i]) - m.removedwebhooks[ids[i]] = struct{}{} + for _, opt := range opts { + opt(m) } + return m } -// RemovedWebhooks returns the removed IDs of the "webhooks" edge to the Webhook entity. -func (m *OrganizationMutation) RemovedWebhooksIDs() (ids []string) { - for id := range m.removedwebhooks { - ids = append(ids, id) +// withRiskID sets the ID field of the mutation. +func withRiskID(id string) riskOption { + return func(m *RiskMutation) { + var ( + err error + once sync.Once + value *Risk + ) + m.oldValue = func(ctx context.Context) (*Risk, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().Risk.Get(ctx, id) + } + }) + return value, err + } + m.id = &id } - return } -// WebhooksIDs returns the "webhooks" edge IDs in the mutation. -func (m *OrganizationMutation) WebhooksIDs() (ids []string) { - for id := range m.webhooks { - ids = append(ids, id) +// withRisk sets the old Risk of the mutation. +func withRisk(node *Risk) riskOption { + return func(m *RiskMutation) { + m.oldValue = func(context.Context) (*Risk, error) { + return node, nil + } + m.id = &node.ID } - return } -// ResetWebhooks resets all changes to the "webhooks" edge. -func (m *OrganizationMutation) ResetWebhooks() { - m.webhooks = nil - m.clearedwebhooks = false - m.removedwebhooks = nil +// 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 RiskMutation) Client() *Client { + client := &Client{config: m.config} + client.init() + return client } -// AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *OrganizationMutation) AddEventIDs(ids ...string) { - if m.events == nil { - m.events = make(map[string]struct{}) - } - for i := range ids { - m.events[ids[i]] = struct{}{} +// Tx returns an `ent.Tx` for mutations that were executed in transactions; +// it returns an error otherwise. +func (m RiskMutation) 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 } -// ClearEvents clears the "events" edge to the Event entity. -func (m *OrganizationMutation) ClearEvents() { - m.clearedevents = true -} - -// EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *OrganizationMutation) EventsCleared() bool { - return m.clearedevents +// SetID sets the value of the id field. Note that this +// operation is only accepted on creation of Risk entities. +func (m *RiskMutation) SetID(id string) { + m.id = &id } -// RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *OrganizationMutation) RemoveEventIDs(ids ...string) { - if m.removedevents == nil { - m.removedevents = make(map[string]struct{}) - } - for i := range ids { - delete(m.events, ids[i]) - m.removedevents[ids[i]] = struct{}{} +// 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 *RiskMutation) ID() (id string, exists bool) { + if m.id == nil { + return } + return *m.id, true } -// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *OrganizationMutation) RemovedEventsIDs() (ids []string) { - for id := range m.removedevents { - ids = append(ids, id) +// 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 *RiskMutation) 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().Risk.Query().Where(m.predicates...).IDs(ctx) + default: + return nil, fmt.Errorf("IDs is not allowed on %s operations", m.op) } - return } -// EventsIDs returns the "events" edge IDs in the mutation. -func (m *OrganizationMutation) EventsIDs() (ids []string) { - for id := range m.events { - ids = append(ids, id) - } - return +// SetCreatedAt sets the "created_at" field. +func (m *RiskMutation) SetCreatedAt(t time.Time) { + m.created_at = &t } -// ResetEvents resets all changes to the "events" edge. -func (m *OrganizationMutation) ResetEvents() { - m.events = nil - m.clearedevents = false - m.removedevents = nil +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *RiskMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at + if v == nil { + return + } + return *v, true } -// AddSecretIDs adds the "secrets" edge to the Hush entity by ids. -func (m *OrganizationMutation) AddSecretIDs(ids ...string) { - if m.secrets == nil { - m.secrets = make(map[string]struct{}) +// OldCreatedAt returns the old "created_at" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) 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") } - for i := range ids { - m.secrets[ids[i]] = struct{}{} + 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 } -// ClearSecrets clears the "secrets" edge to the Hush entity. -func (m *OrganizationMutation) ClearSecrets() { - m.clearedsecrets = true +// ClearCreatedAt clears the value of the "created_at" field. +func (m *RiskMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[risk.FieldCreatedAt] = struct{}{} } -// SecretsCleared reports if the "secrets" edge to the Hush entity was cleared. -func (m *OrganizationMutation) SecretsCleared() bool { - return m.clearedsecrets +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *RiskMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[risk.FieldCreatedAt] + return ok } -// RemoveSecretIDs removes the "secrets" edge to the Hush entity by IDs. -func (m *OrganizationMutation) RemoveSecretIDs(ids ...string) { - if m.removedsecrets == nil { - m.removedsecrets = make(map[string]struct{}) - } - for i := range ids { - delete(m.secrets, ids[i]) - m.removedsecrets[ids[i]] = struct{}{} - } +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *RiskMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, risk.FieldCreatedAt) } -// RemovedSecrets returns the removed IDs of the "secrets" edge to the Hush entity. -func (m *OrganizationMutation) RemovedSecretsIDs() (ids []string) { - for id := range m.removedsecrets { - ids = append(ids, id) - } - return +// SetUpdatedAt sets the "updated_at" field. +func (m *RiskMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t } -// SecretsIDs returns the "secrets" edge IDs in the mutation. -func (m *OrganizationMutation) SecretsIDs() (ids []string) { - for id := range m.secrets { - ids = append(ids, id) +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *RiskMutation) UpdatedAt() (r time.Time, exists bool) { + v := m.updated_at + if v == nil { + return } - return -} - -// ResetSecrets resets all changes to the "secrets" edge. -func (m *OrganizationMutation) ResetSecrets() { - m.secrets = nil - m.clearedsecrets = false - m.removedsecrets = nil + return *v, true } -// AddFeatureIDs adds the "features" edge to the Feature entity by ids. -func (m *OrganizationMutation) AddFeatureIDs(ids ...string) { - if m.features == nil { - m.features = make(map[string]struct{}) +// OldUpdatedAt returns the old "updated_at" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) 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") } - for i := range ids { - m.features[ids[i]] = struct{}{} + 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 *RiskMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[risk.FieldUpdatedAt] = struct{}{} } -// ClearFeatures clears the "features" edge to the Feature entity. -func (m *OrganizationMutation) ClearFeatures() { - m.clearedfeatures = true +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *RiskMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[risk.FieldUpdatedAt] + return ok } -// FeaturesCleared reports if the "features" edge to the Feature entity was cleared. -func (m *OrganizationMutation) FeaturesCleared() bool { - return m.clearedfeatures +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *RiskMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, risk.FieldUpdatedAt) } -// RemoveFeatureIDs removes the "features" edge to the Feature entity by IDs. -func (m *OrganizationMutation) RemoveFeatureIDs(ids ...string) { - if m.removedfeatures == nil { - m.removedfeatures = make(map[string]struct{}) - } - for i := range ids { - delete(m.features, ids[i]) - m.removedfeatures[ids[i]] = struct{}{} - } +// SetCreatedBy sets the "created_by" field. +func (m *RiskMutation) SetCreatedBy(s string) { + m.created_by = &s } -// RemovedFeatures returns the removed IDs of the "features" edge to the Feature entity. -func (m *OrganizationMutation) RemovedFeaturesIDs() (ids []string) { - for id := range m.removedfeatures { - ids = append(ids, id) +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *RiskMutation) CreatedBy() (r string, exists bool) { + v := m.created_by + if v == nil { + return } - return + return *v, true } -// FeaturesIDs returns the "features" edge IDs in the mutation. -func (m *OrganizationMutation) FeaturesIDs() (ids []string) { - for id := range m.features { - ids = append(ids, id) +// OldCreatedBy returns the old "created_by" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldCreatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } - return + 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 } -// ResetFeatures resets all changes to the "features" edge. -func (m *OrganizationMutation) ResetFeatures() { - m.features = nil - m.clearedfeatures = false - m.removedfeatures = nil +// ClearCreatedBy clears the value of the "created_by" field. +func (m *RiskMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[risk.FieldCreatedBy] = struct{}{} } -// AddFileIDs adds the "files" edge to the File entity by ids. -func (m *OrganizationMutation) AddFileIDs(ids ...string) { - if m.files == nil { - m.files = make(map[string]struct{}) - } - for i := range ids { - m.files[ids[i]] = struct{}{} - } +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *RiskMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[risk.FieldCreatedBy] + return ok } -// ClearFiles clears the "files" edge to the File entity. -func (m *OrganizationMutation) ClearFiles() { - m.clearedfiles = true +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *RiskMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, risk.FieldCreatedBy) } -// FilesCleared reports if the "files" edge to the File entity was cleared. -func (m *OrganizationMutation) FilesCleared() bool { - return m.clearedfiles +// SetUpdatedBy sets the "updated_by" field. +func (m *RiskMutation) SetUpdatedBy(s string) { + m.updated_by = &s } -// RemoveFileIDs removes the "files" edge to the File entity by IDs. -func (m *OrganizationMutation) RemoveFileIDs(ids ...string) { - if m.removedfiles == nil { - m.removedfiles = make(map[string]struct{}) - } - for i := range ids { - delete(m.files, ids[i]) - m.removedfiles[ids[i]] = struct{}{} +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *RiskMutation) UpdatedBy() (r string, exists bool) { + v := m.updated_by + if v == nil { + return } + return *v, true } -// RemovedFiles returns the removed IDs of the "files" edge to the File entity. -func (m *OrganizationMutation) RemovedFilesIDs() (ids []string) { - for id := range m.removedfiles { - ids = append(ids, id) +// OldUpdatedBy returns the old "updated_by" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } - return -} - -// FilesIDs returns the "files" edge IDs in the mutation. -func (m *OrganizationMutation) FilesIDs() (ids []string) { - for id := range m.files { - ids = append(ids, id) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedBy requires an ID field in the mutation") } - return + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedBy: %w", err) + } + return oldValue.UpdatedBy, nil } -// ResetFiles resets all changes to the "files" edge. -func (m *OrganizationMutation) ResetFiles() { - m.files = nil - m.clearedfiles = false - m.removedfiles = nil +// ClearUpdatedBy clears the value of the "updated_by" field. +func (m *RiskMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[risk.FieldUpdatedBy] = struct{}{} } -// AddEntitlementplanIDs adds the "entitlementplans" edge to the EntitlementPlan entity by ids. -func (m *OrganizationMutation) AddEntitlementplanIDs(ids ...string) { - if m.entitlementplans == nil { - m.entitlementplans = make(map[string]struct{}) - } - for i := range ids { - m.entitlementplans[ids[i]] = struct{}{} - } +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *RiskMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[risk.FieldUpdatedBy] + return ok } -// ClearEntitlementplans clears the "entitlementplans" edge to the EntitlementPlan entity. -func (m *OrganizationMutation) ClearEntitlementplans() { - m.clearedentitlementplans = true +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *RiskMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, risk.FieldUpdatedBy) } -// EntitlementplansCleared reports if the "entitlementplans" edge to the EntitlementPlan entity was cleared. -func (m *OrganizationMutation) EntitlementplansCleared() bool { - return m.clearedentitlementplans +// SetDeletedAt sets the "deleted_at" field. +func (m *RiskMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t } -// RemoveEntitlementplanIDs removes the "entitlementplans" edge to the EntitlementPlan entity by IDs. -func (m *OrganizationMutation) RemoveEntitlementplanIDs(ids ...string) { - if m.removedentitlementplans == nil { - m.removedentitlementplans = make(map[string]struct{}) - } - for i := range ids { - delete(m.entitlementplans, ids[i]) - m.removedentitlementplans[ids[i]] = struct{}{} +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *RiskMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at + if v == nil { + return } + return *v, true } -// RemovedEntitlementplans returns the removed IDs of the "entitlementplans" edge to the EntitlementPlan entity. -func (m *OrganizationMutation) RemovedEntitlementplansIDs() (ids []string) { - for id := range m.removedentitlementplans { - ids = append(ids, id) +// OldDeletedAt returns the old "deleted_at" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) 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") } - return -} - -// EntitlementplansIDs returns the "entitlementplans" edge IDs in the mutation. -func (m *OrganizationMutation) EntitlementplansIDs() (ids []string) { - for id := range m.entitlementplans { - ids = append(ids, id) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDeletedAt requires an ID field in the mutation") } - return + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) + } + return oldValue.DeletedAt, nil } -// ResetEntitlementplans resets all changes to the "entitlementplans" edge. -func (m *OrganizationMutation) ResetEntitlementplans() { - m.entitlementplans = nil - m.clearedentitlementplans = false - m.removedentitlementplans = nil +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *RiskMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[risk.FieldDeletedAt] = struct{}{} } -// AddEntitlementplanfeatureIDs adds the "entitlementplanfeatures" edge to the EntitlementPlanFeature entity by ids. -func (m *OrganizationMutation) AddEntitlementplanfeatureIDs(ids ...string) { - if m.entitlementplanfeatures == nil { - m.entitlementplanfeatures = make(map[string]struct{}) - } - for i := range ids { - m.entitlementplanfeatures[ids[i]] = struct{}{} - } +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *RiskMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[risk.FieldDeletedAt] + return ok } -// ClearEntitlementplanfeatures clears the "entitlementplanfeatures" edge to the EntitlementPlanFeature entity. -func (m *OrganizationMutation) ClearEntitlementplanfeatures() { - m.clearedentitlementplanfeatures = true +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *RiskMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, risk.FieldDeletedAt) } -// EntitlementplanfeaturesCleared reports if the "entitlementplanfeatures" edge to the EntitlementPlanFeature entity was cleared. -func (m *OrganizationMutation) EntitlementplanfeaturesCleared() bool { - return m.clearedentitlementplanfeatures +// SetDeletedBy sets the "deleted_by" field. +func (m *RiskMutation) SetDeletedBy(s string) { + m.deleted_by = &s } -// RemoveEntitlementplanfeatureIDs removes the "entitlementplanfeatures" edge to the EntitlementPlanFeature entity by IDs. -func (m *OrganizationMutation) RemoveEntitlementplanfeatureIDs(ids ...string) { - if m.removedentitlementplanfeatures == nil { - m.removedentitlementplanfeatures = make(map[string]struct{}) - } - for i := range ids { - delete(m.entitlementplanfeatures, ids[i]) - m.removedentitlementplanfeatures[ids[i]] = struct{}{} +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *RiskMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by + if v == nil { + return } + return *v, true } -// RemovedEntitlementplanfeatures returns the removed IDs of the "entitlementplanfeatures" edge to the EntitlementPlanFeature entity. -func (m *OrganizationMutation) RemovedEntitlementplanfeaturesIDs() (ids []string) { - for id := range m.removedentitlementplanfeatures { - ids = append(ids, id) +// OldDeletedBy returns the old "deleted_by" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldDeletedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } - return + 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 } -// EntitlementplanfeaturesIDs returns the "entitlementplanfeatures" edge IDs in the mutation. -func (m *OrganizationMutation) EntitlementplanfeaturesIDs() (ids []string) { - for id := range m.entitlementplanfeatures { - ids = append(ids, id) - } - return +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *RiskMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[risk.FieldDeletedBy] = struct{}{} } -// ResetEntitlementplanfeatures resets all changes to the "entitlementplanfeatures" edge. -func (m *OrganizationMutation) ResetEntitlementplanfeatures() { - m.entitlementplanfeatures = nil - m.clearedentitlementplanfeatures = false - m.removedentitlementplanfeatures = nil +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *RiskMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[risk.FieldDeletedBy] + return ok } -// AddEntityIDs adds the "entities" edge to the Entity entity by ids. -func (m *OrganizationMutation) AddEntityIDs(ids ...string) { - if m.entities == nil { - m.entities = make(map[string]struct{}) - } - for i := range ids { - m.entities[ids[i]] = struct{}{} - } +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *RiskMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, risk.FieldDeletedBy) } -// ClearEntities clears the "entities" edge to the Entity entity. -func (m *OrganizationMutation) ClearEntities() { - m.clearedentities = true +// SetMappingID sets the "mapping_id" field. +func (m *RiskMutation) SetMappingID(s string) { + m.mapping_id = &s } -// EntitiesCleared reports if the "entities" edge to the Entity entity was cleared. -func (m *OrganizationMutation) EntitiesCleared() bool { - return m.clearedentities +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *RiskMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true } -// RemoveEntityIDs removes the "entities" edge to the Entity entity by IDs. -func (m *OrganizationMutation) RemoveEntityIDs(ids ...string) { - if m.removedentities == nil { - m.removedentities = make(map[string]struct{}) +// OldMappingID returns the old "mapping_id" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } - for i := range ids { - delete(m.entities, ids[i]) - m.removedentities[ids[i]] = struct{}{} + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) } + return oldValue.MappingID, nil } -// RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity. -func (m *OrganizationMutation) RemovedEntitiesIDs() (ids []string) { - for id := range m.removedentities { - ids = append(ids, id) - } - return +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *RiskMutation) ResetMappingID() { + m.mapping_id = nil } -// EntitiesIDs returns the "entities" edge IDs in the mutation. -func (m *OrganizationMutation) EntitiesIDs() (ids []string) { - for id := range m.entities { - ids = append(ids, id) - } - return +// SetTags sets the "tags" field. +func (m *RiskMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil } -// ResetEntities resets all changes to the "entities" edge. -func (m *OrganizationMutation) ResetEntities() { - m.entities = nil - m.clearedentities = false - m.removedentities = nil +// Tags returns the value of the "tags" field in the mutation. +func (m *RiskMutation) Tags() (r []string, exists bool) { + v := m.tags + if v == nil { + return + } + return *v, true } -// AddEntitytypeIDs adds the "entitytypes" edge to the EntityType entity by ids. -func (m *OrganizationMutation) AddEntitytypeIDs(ids ...string) { - if m.entitytypes == nil { - m.entitytypes = make(map[string]struct{}) +// OldTags returns the old "tags" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldTags(ctx context.Context) (v []string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldTags is only allowed on UpdateOne operations") } - for i := range ids { - m.entitytypes[ids[i]] = struct{}{} + 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 } -// ClearEntitytypes clears the "entitytypes" edge to the EntityType entity. -func (m *OrganizationMutation) ClearEntitytypes() { - m.clearedentitytypes = true +// AppendTags adds s to the "tags" field. +func (m *RiskMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) } -// EntitytypesCleared reports if the "entitytypes" edge to the EntityType entity was cleared. -func (m *OrganizationMutation) EntitytypesCleared() bool { - return m.clearedentitytypes +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *RiskMutation) AppendedTags() ([]string, bool) { + if len(m.appendtags) == 0 { + return nil, false + } + return m.appendtags, true } -// RemoveEntitytypeIDs removes the "entitytypes" edge to the EntityType entity by IDs. -func (m *OrganizationMutation) RemoveEntitytypeIDs(ids ...string) { - if m.removedentitytypes == nil { - m.removedentitytypes = make(map[string]struct{}) - } - for i := range ids { - delete(m.entitytypes, ids[i]) - m.removedentitytypes[ids[i]] = struct{}{} - } +// ClearTags clears the value of the "tags" field. +func (m *RiskMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[risk.FieldTags] = struct{}{} } -// RemovedEntitytypes returns the removed IDs of the "entitytypes" edge to the EntityType entity. -func (m *OrganizationMutation) RemovedEntitytypesIDs() (ids []string) { - for id := range m.removedentitytypes { - ids = append(ids, id) - } - return +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *RiskMutation) TagsCleared() bool { + _, ok := m.clearedFields[risk.FieldTags] + return ok } -// EntitytypesIDs returns the "entitytypes" edge IDs in the mutation. -func (m *OrganizationMutation) EntitytypesIDs() (ids []string) { - for id := range m.entitytypes { - ids = append(ids, id) - } - return +// ResetTags resets all changes to the "tags" field. +func (m *RiskMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, risk.FieldTags) } -// ResetEntitytypes resets all changes to the "entitytypes" edge. -func (m *OrganizationMutation) ResetEntitytypes() { - m.entitytypes = nil - m.clearedentitytypes = false - m.removedentitytypes = nil +// SetName sets the "name" field. +func (m *RiskMutation) SetName(s string) { + m.name = &s } -// AddContactIDs adds the "contacts" edge to the Contact entity by ids. -func (m *OrganizationMutation) AddContactIDs(ids ...string) { - if m.contacts == nil { - m.contacts = make(map[string]struct{}) +// Name returns the value of the "name" field in the mutation. +func (m *RiskMutation) Name() (r string, exists bool) { + v := m.name + if v == nil { + return } - for i := range ids { - m.contacts[ids[i]] = struct{}{} + return *v, true +} + +// OldName returns the old "name" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) 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 } -// ClearContacts clears the "contacts" edge to the Contact entity. -func (m *OrganizationMutation) ClearContacts() { - m.clearedcontacts = true +// ResetName resets all changes to the "name" field. +func (m *RiskMutation) ResetName() { + m.name = nil } -// ContactsCleared reports if the "contacts" edge to the Contact entity was cleared. -func (m *OrganizationMutation) ContactsCleared() bool { - return m.clearedcontacts +// SetDescription sets the "description" field. +func (m *RiskMutation) SetDescription(s string) { + m.description = &s } -// RemoveContactIDs removes the "contacts" edge to the Contact entity by IDs. -func (m *OrganizationMutation) RemoveContactIDs(ids ...string) { - if m.removedcontacts == nil { - m.removedcontacts = make(map[string]struct{}) - } - for i := range ids { - delete(m.contacts, ids[i]) - m.removedcontacts[ids[i]] = struct{}{} +// Description returns the value of the "description" field in the mutation. +func (m *RiskMutation) Description() (r string, exists bool) { + v := m.description + if v == nil { + return } + return *v, true } -// RemovedContacts returns the removed IDs of the "contacts" edge to the Contact entity. -func (m *OrganizationMutation) RemovedContactsIDs() (ids []string) { - for id := range m.removedcontacts { - ids = append(ids, id) +// OldDescription returns the old "description" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldDescription(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDescription is only allowed on UpdateOne operations") } - return + 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 } -// ContactsIDs returns the "contacts" edge IDs in the mutation. -func (m *OrganizationMutation) ContactsIDs() (ids []string) { - for id := range m.contacts { - ids = append(ids, id) - } - return +// ClearDescription clears the value of the "description" field. +func (m *RiskMutation) ClearDescription() { + m.description = nil + m.clearedFields[risk.FieldDescription] = struct{}{} } -// ResetContacts resets all changes to the "contacts" edge. -func (m *OrganizationMutation) ResetContacts() { - m.contacts = nil - m.clearedcontacts = false - m.removedcontacts = nil +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *RiskMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[risk.FieldDescription] + return ok } -// AddNoteIDs adds the "notes" edge to the Note entity by ids. -func (m *OrganizationMutation) AddNoteIDs(ids ...string) { - if m.notes == nil { - m.notes = make(map[string]struct{}) - } - for i := range ids { - m.notes[ids[i]] = struct{}{} - } +// ResetDescription resets all changes to the "description" field. +func (m *RiskMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, risk.FieldDescription) } -// ClearNotes clears the "notes" edge to the Note entity. -func (m *OrganizationMutation) ClearNotes() { - m.clearednotes = true +// SetStatus sets the "status" field. +func (m *RiskMutation) SetStatus(s string) { + m.status = &s } -// NotesCleared reports if the "notes" edge to the Note entity was cleared. -func (m *OrganizationMutation) NotesCleared() bool { - return m.clearednotes +// Status returns the value of the "status" field in the mutation. +func (m *RiskMutation) Status() (r string, exists bool) { + v := m.status + if v == nil { + return + } + return *v, true } -// RemoveNoteIDs removes the "notes" edge to the Note entity by IDs. -func (m *OrganizationMutation) RemoveNoteIDs(ids ...string) { - if m.removednotes == nil { - m.removednotes = make(map[string]struct{}) +// OldStatus returns the old "status" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldStatus(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStatus is only allowed on UpdateOne operations") } - for i := range ids { - delete(m.notes, ids[i]) - m.removednotes[ids[i]] = struct{}{} + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStatus requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStatus: %w", err) } + return oldValue.Status, nil } -// RemovedNotes returns the removed IDs of the "notes" edge to the Note entity. -func (m *OrganizationMutation) RemovedNotesIDs() (ids []string) { - for id := range m.removednotes { - ids = append(ids, id) - } - return +// ClearStatus clears the value of the "status" field. +func (m *RiskMutation) ClearStatus() { + m.status = nil + m.clearedFields[risk.FieldStatus] = struct{}{} } -// NotesIDs returns the "notes" edge IDs in the mutation. -func (m *OrganizationMutation) NotesIDs() (ids []string) { - for id := range m.notes { - ids = append(ids, id) - } - return +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *RiskMutation) StatusCleared() bool { + _, ok := m.clearedFields[risk.FieldStatus] + return ok +} + +// ResetStatus resets all changes to the "status" field. +func (m *RiskMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, risk.FieldStatus) } -// ResetNotes resets all changes to the "notes" edge. -func (m *OrganizationMutation) ResetNotes() { - m.notes = nil - m.clearednotes = false - m.removednotes = nil +// SetRiskType sets the "risk_type" field. +func (m *RiskMutation) SetRiskType(s string) { + m.risk_type = &s } -// AddMemberIDs adds the "members" edge to the OrgMembership entity by ids. -func (m *OrganizationMutation) AddMemberIDs(ids ...string) { - if m.members == nil { - m.members = make(map[string]struct{}) +// RiskType returns the value of the "risk_type" field in the mutation. +func (m *RiskMutation) RiskType() (r string, exists bool) { + v := m.risk_type + if v == nil { + return } - for i := range ids { - m.members[ids[i]] = struct{}{} + return *v, true +} + +// OldRiskType returns the old "risk_type" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldRiskType(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldRiskType is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldRiskType requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldRiskType: %w", err) } + return oldValue.RiskType, nil } -// ClearMembers clears the "members" edge to the OrgMembership entity. -func (m *OrganizationMutation) ClearMembers() { - m.clearedmembers = true +// ClearRiskType clears the value of the "risk_type" field. +func (m *RiskMutation) ClearRiskType() { + m.risk_type = nil + m.clearedFields[risk.FieldRiskType] = struct{}{} } -// MembersCleared reports if the "members" edge to the OrgMembership entity was cleared. -func (m *OrganizationMutation) MembersCleared() bool { - return m.clearedmembers +// RiskTypeCleared returns if the "risk_type" field was cleared in this mutation. +func (m *RiskMutation) RiskTypeCleared() bool { + _, ok := m.clearedFields[risk.FieldRiskType] + return ok } -// RemoveMemberIDs removes the "members" edge to the OrgMembership entity by IDs. -func (m *OrganizationMutation) RemoveMemberIDs(ids ...string) { - if m.removedmembers == nil { - m.removedmembers = make(map[string]struct{}) - } - for i := range ids { - delete(m.members, ids[i]) - m.removedmembers[ids[i]] = struct{}{} - } +// ResetRiskType resets all changes to the "risk_type" field. +func (m *RiskMutation) ResetRiskType() { + m.risk_type = nil + delete(m.clearedFields, risk.FieldRiskType) } -// RemovedMembers returns the removed IDs of the "members" edge to the OrgMembership entity. -func (m *OrganizationMutation) RemovedMembersIDs() (ids []string) { - for id := range m.removedmembers { - ids = append(ids, id) - } - return +// SetBusinessCosts sets the "business_costs" field. +func (m *RiskMutation) SetBusinessCosts(s string) { + m.business_costs = &s } -// MembersIDs returns the "members" edge IDs in the mutation. -func (m *OrganizationMutation) MembersIDs() (ids []string) { - for id := range m.members { - ids = append(ids, id) +// BusinessCosts returns the value of the "business_costs" field in the mutation. +func (m *RiskMutation) BusinessCosts() (r string, exists bool) { + v := m.business_costs + if v == nil { + return } - return + return *v, true } -// ResetMembers resets all changes to the "members" edge. -func (m *OrganizationMutation) ResetMembers() { - m.members = nil - m.clearedmembers = false - m.removedmembers = nil +// OldBusinessCosts returns the old "business_costs" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldBusinessCosts(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldBusinessCosts is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldBusinessCosts requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldBusinessCosts: %w", err) + } + return oldValue.BusinessCosts, nil } -// Where appends a list predicates to the OrganizationMutation builder. -func (m *OrganizationMutation) Where(ps ...predicate.Organization) { - m.predicates = append(m.predicates, ps...) +// ClearBusinessCosts clears the value of the "business_costs" field. +func (m *RiskMutation) ClearBusinessCosts() { + m.business_costs = nil + m.clearedFields[risk.FieldBusinessCosts] = struct{}{} } -// WhereP appends storage-level predicates to the OrganizationMutation builder. Using this method, -// users can use type-assertion to append predicates that do not depend on any generated package. -func (m *OrganizationMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.Organization, len(ps)) - for i := range ps { - p[i] = ps[i] - } - m.Where(p...) +// BusinessCostsCleared returns if the "business_costs" field was cleared in this mutation. +func (m *RiskMutation) BusinessCostsCleared() bool { + _, ok := m.clearedFields[risk.FieldBusinessCosts] + return ok } -// Op returns the operation name. -func (m *OrganizationMutation) Op() Op { - return m.op +// ResetBusinessCosts resets all changes to the "business_costs" field. +func (m *RiskMutation) ResetBusinessCosts() { + m.business_costs = nil + delete(m.clearedFields, risk.FieldBusinessCosts) } -// SetOp allows setting the mutation operation. -func (m *OrganizationMutation) SetOp(op Op) { - m.op = op +// SetImpact sets the "impact" field. +func (m *RiskMutation) SetImpact(ei enums.RiskImpact) { + m.impact = &ei } -// Type returns the node type of this mutation (Organization). -func (m *OrganizationMutation) Type() string { - return m.typ +// Impact returns the value of the "impact" field in the mutation. +func (m *RiskMutation) Impact() (r enums.RiskImpact, exists bool) { + v := m.impact + if v == nil { + return + } + return *v, true } -// 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 *OrganizationMutation) Fields() []string { - fields := make([]string, 0, 15) - if m.created_at != nil { - fields = append(fields, organization.FieldCreatedAt) - } - if m.updated_at != nil { - fields = append(fields, organization.FieldUpdatedAt) - } - if m.created_by != nil { - fields = append(fields, organization.FieldCreatedBy) - } - if m.updated_by != nil { - fields = append(fields, organization.FieldUpdatedBy) - } - if m.mapping_id != nil { - fields = append(fields, organization.FieldMappingID) - } - if m.tags != nil { - fields = append(fields, organization.FieldTags) - } - if m.deleted_at != nil { - fields = append(fields, organization.FieldDeletedAt) - } - if m.deleted_by != nil { - fields = append(fields, organization.FieldDeletedBy) - } - if m.name != nil { - fields = append(fields, organization.FieldName) - } - if m.display_name != nil { - fields = append(fields, organization.FieldDisplayName) - } - if m.description != nil { - fields = append(fields, organization.FieldDescription) - } - if m.parent != nil { - fields = append(fields, organization.FieldParentOrganizationID) - } - if m.personal_org != nil { - fields = append(fields, organization.FieldPersonalOrg) - } - if m.avatar_remote_url != nil { - fields = append(fields, organization.FieldAvatarRemoteURL) +// OldImpact returns the old "impact" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldImpact(ctx context.Context) (v enums.RiskImpact, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldImpact is only allowed on UpdateOne operations") } - if m.dedicated_db != nil { - fields = append(fields, organization.FieldDedicatedDb) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldImpact requires an ID field in the mutation") } - 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 *OrganizationMutation) Field(name string) (ent.Value, bool) { - switch name { - case organization.FieldCreatedAt: - return m.CreatedAt() - case organization.FieldUpdatedAt: - return m.UpdatedAt() - case organization.FieldCreatedBy: - return m.CreatedBy() - case organization.FieldUpdatedBy: - return m.UpdatedBy() - case organization.FieldMappingID: - return m.MappingID() - case organization.FieldTags: - return m.Tags() - case organization.FieldDeletedAt: - return m.DeletedAt() - case organization.FieldDeletedBy: - return m.DeletedBy() - case organization.FieldName: - return m.Name() - case organization.FieldDisplayName: - return m.DisplayName() - case organization.FieldDescription: - return m.Description() - case organization.FieldParentOrganizationID: - return m.ParentOrganizationID() - case organization.FieldPersonalOrg: - return m.PersonalOrg() - case organization.FieldAvatarRemoteURL: - return m.AvatarRemoteURL() - case organization.FieldDedicatedDb: - return m.DedicatedDb() + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldImpact: %w", err) } - return nil, false + return oldValue.Impact, nil } -// 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 *OrganizationMutation) OldField(ctx context.Context, name string) (ent.Value, error) { - switch name { - case organization.FieldCreatedAt: - return m.OldCreatedAt(ctx) - case organization.FieldUpdatedAt: - return m.OldUpdatedAt(ctx) - case organization.FieldCreatedBy: - return m.OldCreatedBy(ctx) - case organization.FieldUpdatedBy: - return m.OldUpdatedBy(ctx) - case organization.FieldMappingID: - return m.OldMappingID(ctx) - case organization.FieldTags: - return m.OldTags(ctx) - case organization.FieldDeletedAt: - return m.OldDeletedAt(ctx) - case organization.FieldDeletedBy: - return m.OldDeletedBy(ctx) - case organization.FieldName: - return m.OldName(ctx) - case organization.FieldDisplayName: - return m.OldDisplayName(ctx) - case organization.FieldDescription: - return m.OldDescription(ctx) - case organization.FieldParentOrganizationID: - return m.OldParentOrganizationID(ctx) - case organization.FieldPersonalOrg: - return m.OldPersonalOrg(ctx) - case organization.FieldAvatarRemoteURL: - return m.OldAvatarRemoteURL(ctx) - case organization.FieldDedicatedDb: - return m.OldDedicatedDb(ctx) - } - return nil, fmt.Errorf("unknown Organization field %s", name) +// ClearImpact clears the value of the "impact" field. +func (m *RiskMutation) ClearImpact() { + m.impact = nil + m.clearedFields[risk.FieldImpact] = struct{}{} } -// 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 *OrganizationMutation) SetField(name string, value ent.Value) error { - switch name { - case organization.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 organization.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 organization.FieldCreatedBy: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetCreatedBy(v) - return nil - case organization.FieldUpdatedBy: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetUpdatedBy(v) - return nil - case organization.FieldMappingID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetMappingID(v) - return nil - case organization.FieldTags: - v, ok := value.([]string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetTags(v) - return nil - case organization.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 organization.FieldDeletedBy: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetDeletedBy(v) - return nil - case organization.FieldName: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetName(v) - return nil - case organization.FieldDisplayName: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetDisplayName(v) - return nil - case organization.FieldDescription: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetDescription(v) - return nil - case organization.FieldParentOrganizationID: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetParentOrganizationID(v) - return nil - case organization.FieldPersonalOrg: - v, ok := value.(bool) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetPersonalOrg(v) - return nil - case organization.FieldAvatarRemoteURL: - v, ok := value.(string) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetAvatarRemoteURL(v) - return nil - case organization.FieldDedicatedDb: - v, ok := value.(bool) - if !ok { - return fmt.Errorf("unexpected type %T for field %s", value, name) - } - m.SetDedicatedDb(v) - return nil - } - return fmt.Errorf("unknown Organization field %s", name) +// ImpactCleared returns if the "impact" field was cleared in this mutation. +func (m *RiskMutation) ImpactCleared() bool { + _, ok := m.clearedFields[risk.FieldImpact] + return ok } -// AddedFields returns all numeric fields that were incremented/decremented during -// this mutation. -func (m *OrganizationMutation) AddedFields() []string { - return nil +// ResetImpact resets all changes to the "impact" field. +func (m *RiskMutation) ResetImpact() { + m.impact = nil + delete(m.clearedFields, risk.FieldImpact) } -// 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 *OrganizationMutation) AddedField(name string) (ent.Value, bool) { - return nil, false +// SetLikelihood sets the "likelihood" field. +func (m *RiskMutation) SetLikelihood(el enums.RiskLikelihood) { + m.likelihood = &el } -// 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 *OrganizationMutation) AddField(name string, value ent.Value) error { - switch name { +// Likelihood returns the value of the "likelihood" field in the mutation. +func (m *RiskMutation) Likelihood() (r enums.RiskLikelihood, exists bool) { + v := m.likelihood + if v == nil { + return } - return fmt.Errorf("unknown Organization numeric field %s", name) + return *v, true } -// ClearedFields returns all nullable fields that were cleared during this -// mutation. -func (m *OrganizationMutation) ClearedFields() []string { - var fields []string - if m.FieldCleared(organization.FieldCreatedAt) { - fields = append(fields, organization.FieldCreatedAt) - } - if m.FieldCleared(organization.FieldUpdatedAt) { - fields = append(fields, organization.FieldUpdatedAt) - } - if m.FieldCleared(organization.FieldCreatedBy) { - fields = append(fields, organization.FieldCreatedBy) - } - if m.FieldCleared(organization.FieldUpdatedBy) { - fields = append(fields, organization.FieldUpdatedBy) - } - if m.FieldCleared(organization.FieldTags) { - fields = append(fields, organization.FieldTags) - } - if m.FieldCleared(organization.FieldDeletedAt) { - fields = append(fields, organization.FieldDeletedAt) - } - if m.FieldCleared(organization.FieldDeletedBy) { - fields = append(fields, organization.FieldDeletedBy) - } - if m.FieldCleared(organization.FieldDescription) { - fields = append(fields, organization.FieldDescription) - } - if m.FieldCleared(organization.FieldParentOrganizationID) { - fields = append(fields, organization.FieldParentOrganizationID) +// OldLikelihood returns the old "likelihood" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldLikelihood(ctx context.Context) (v enums.RiskLikelihood, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldLikelihood is only allowed on UpdateOne operations") } - if m.FieldCleared(organization.FieldPersonalOrg) { - fields = append(fields, organization.FieldPersonalOrg) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldLikelihood requires an ID field in the mutation") } - if m.FieldCleared(organization.FieldAvatarRemoteURL) { - fields = append(fields, organization.FieldAvatarRemoteURL) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldLikelihood: %w", err) } - return fields + return oldValue.Likelihood, nil } -// FieldCleared returns a boolean indicating if a field with the given name was -// cleared in this mutation. -func (m *OrganizationMutation) FieldCleared(name string) bool { - _, ok := m.clearedFields[name] +// ClearLikelihood clears the value of the "likelihood" field. +func (m *RiskMutation) ClearLikelihood() { + m.likelihood = nil + m.clearedFields[risk.FieldLikelihood] = struct{}{} +} + +// LikelihoodCleared returns if the "likelihood" field was cleared in this mutation. +func (m *RiskMutation) LikelihoodCleared() bool { + _, ok := m.clearedFields[risk.FieldLikelihood] 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 *OrganizationMutation) ClearField(name string) error { - switch name { - case organization.FieldCreatedAt: - m.ClearCreatedAt() - return nil - case organization.FieldUpdatedAt: - m.ClearUpdatedAt() - return nil - case organization.FieldCreatedBy: - m.ClearCreatedBy() - return nil - case organization.FieldUpdatedBy: - m.ClearUpdatedBy() - return nil - case organization.FieldTags: - m.ClearTags() - return nil - case organization.FieldDeletedAt: - m.ClearDeletedAt() - return nil - case organization.FieldDeletedBy: - m.ClearDeletedBy() - return nil - case organization.FieldDescription: - m.ClearDescription() - return nil - case organization.FieldParentOrganizationID: - m.ClearParentOrganizationID() - return nil - case organization.FieldPersonalOrg: - m.ClearPersonalOrg() - return nil - case organization.FieldAvatarRemoteURL: - m.ClearAvatarRemoteURL() - return nil - } - return fmt.Errorf("unknown Organization nullable field %s", name) +// ResetLikelihood resets all changes to the "likelihood" field. +func (m *RiskMutation) ResetLikelihood() { + m.likelihood = nil + delete(m.clearedFields, risk.FieldLikelihood) } -// 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 *OrganizationMutation) ResetField(name string) error { - switch name { - case organization.FieldCreatedAt: - m.ResetCreatedAt() - return nil - case organization.FieldUpdatedAt: - m.ResetUpdatedAt() - return nil - case organization.FieldCreatedBy: - m.ResetCreatedBy() - return nil - case organization.FieldUpdatedBy: - m.ResetUpdatedBy() - return nil - case organization.FieldMappingID: - m.ResetMappingID() - return nil - case organization.FieldTags: - m.ResetTags() - return nil - case organization.FieldDeletedAt: - m.ResetDeletedAt() - return nil - case organization.FieldDeletedBy: - m.ResetDeletedBy() - return nil - case organization.FieldName: - m.ResetName() - return nil - case organization.FieldDisplayName: - m.ResetDisplayName() - return nil - case organization.FieldDescription: - m.ResetDescription() - return nil - case organization.FieldParentOrganizationID: - m.ResetParentOrganizationID() - return nil - case organization.FieldPersonalOrg: - m.ResetPersonalOrg() - return nil - case organization.FieldAvatarRemoteURL: - m.ResetAvatarRemoteURL() - return nil - case organization.FieldDedicatedDb: - m.ResetDedicatedDb() - return nil - } - return fmt.Errorf("unknown Organization field %s", name) +// SetMitigation sets the "mitigation" field. +func (m *RiskMutation) SetMitigation(s string) { + m.mitigation = &s } -// AddedEdges returns all edge names that were set/added in this mutation. -func (m *OrganizationMutation) AddedEdges() []string { - edges := make([]string, 0, 27) - if m.parent != nil { - edges = append(edges, organization.EdgeParent) - } - if m.children != nil { - edges = append(edges, organization.EdgeChildren) - } - if m.groups != nil { - edges = append(edges, organization.EdgeGroups) - } - if m.templates != nil { - edges = append(edges, organization.EdgeTemplates) - } - if m.integrations != nil { - edges = append(edges, organization.EdgeIntegrations) - } - if m.setting != nil { - edges = append(edges, organization.EdgeSetting) +// Mitigation returns the value of the "mitigation" field in the mutation. +func (m *RiskMutation) Mitigation() (r string, exists bool) { + v := m.mitigation + if v == nil { + return } - if m.documentdata != nil { - edges = append(edges, organization.EdgeDocumentdata) + return *v, true +} + +// OldMitigation returns the old "mitigation" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldMitigation(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMitigation is only allowed on UpdateOne operations") } - if m.entitlements != nil { - edges = append(edges, organization.EdgeEntitlements) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMitigation requires an ID field in the mutation") } - if m.organization_entitlement != nil { - edges = append(edges, organization.EdgeOrganizationEntitlement) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMitigation: %w", err) } - if m.personal_access_tokens != nil { - edges = append(edges, organization.EdgePersonalAccessTokens) + return oldValue.Mitigation, nil +} + +// ClearMitigation clears the value of the "mitigation" field. +func (m *RiskMutation) ClearMitigation() { + m.mitigation = nil + m.clearedFields[risk.FieldMitigation] = struct{}{} +} + +// MitigationCleared returns if the "mitigation" field was cleared in this mutation. +func (m *RiskMutation) MitigationCleared() bool { + _, ok := m.clearedFields[risk.FieldMitigation] + return ok +} + +// ResetMitigation resets all changes to the "mitigation" field. +func (m *RiskMutation) ResetMitigation() { + m.mitigation = nil + delete(m.clearedFields, risk.FieldMitigation) +} + +// SetSatisfies sets the "satisfies" field. +func (m *RiskMutation) SetSatisfies(s string) { + m.satisfies = &s +} + +// Satisfies returns the value of the "satisfies" field in the mutation. +func (m *RiskMutation) Satisfies() (r string, exists bool) { + v := m.satisfies + if v == nil { + return } - if m.api_tokens != nil { - edges = append(edges, organization.EdgeAPITokens) + return *v, true +} + +// OldSatisfies returns the old "satisfies" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldSatisfies(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSatisfies is only allowed on UpdateOne operations") } - if m.oauthprovider != nil { - edges = append(edges, organization.EdgeOauthprovider) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSatisfies requires an ID field in the mutation") } - if m.users != nil { - edges = append(edges, organization.EdgeUsers) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSatisfies: %w", err) } - if m.invites != nil { - edges = append(edges, organization.EdgeInvites) + return oldValue.Satisfies, nil +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (m *RiskMutation) ClearSatisfies() { + m.satisfies = nil + m.clearedFields[risk.FieldSatisfies] = struct{}{} +} + +// SatisfiesCleared returns if the "satisfies" field was cleared in this mutation. +func (m *RiskMutation) SatisfiesCleared() bool { + _, ok := m.clearedFields[risk.FieldSatisfies] + return ok +} + +// ResetSatisfies resets all changes to the "satisfies" field. +func (m *RiskMutation) ResetSatisfies() { + m.satisfies = nil + delete(m.clearedFields, risk.FieldSatisfies) +} + +// SetDetails sets the "details" field. +func (m *RiskMutation) SetDetails(value map[string]interface{}) { + m.details = &value +} + +// Details returns the value of the "details" field in the mutation. +func (m *RiskMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details + if v == nil { + return } - if m.subscribers != nil { - edges = append(edges, organization.EdgeSubscribers) + return *v, true +} + +// OldDetails returns the old "details" field's value of the Risk entity. +// If the Risk 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 *RiskMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetails is only allowed on UpdateOne operations") } - if m.webhooks != nil { - edges = append(edges, organization.EdgeWebhooks) + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetails requires an ID field in the mutation") } - if m.events != nil { - edges = append(edges, organization.EdgeEvents) + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetails: %w", err) } - if m.secrets != nil { - edges = append(edges, organization.EdgeSecrets) + return oldValue.Details, nil +} + +// ClearDetails clears the value of the "details" field. +func (m *RiskMutation) ClearDetails() { + m.details = nil + m.clearedFields[risk.FieldDetails] = struct{}{} +} + +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *RiskMutation) DetailsCleared() bool { + _, ok := m.clearedFields[risk.FieldDetails] + return ok +} + +// ResetDetails resets all changes to the "details" field. +func (m *RiskMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, risk.FieldDetails) +} + +// AddControlIDs adds the "control" edge to the Control entity by ids. +func (m *RiskMutation) AddControlIDs(ids ...string) { + if m.control == nil { + m.control = make(map[string]struct{}) } - if m.features != nil { - edges = append(edges, organization.EdgeFeatures) + for i := range ids { + m.control[ids[i]] = struct{}{} } - if m.files != nil { - edges = append(edges, organization.EdgeFiles) +} + +// ClearControl clears the "control" edge to the Control entity. +func (m *RiskMutation) ClearControl() { + m.clearedcontrol = true +} + +// ControlCleared reports if the "control" edge to the Control entity was cleared. +func (m *RiskMutation) ControlCleared() bool { + return m.clearedcontrol +} + +// RemoveControlIDs removes the "control" edge to the Control entity by IDs. +func (m *RiskMutation) RemoveControlIDs(ids ...string) { + if m.removedcontrol == nil { + m.removedcontrol = make(map[string]struct{}) } - if m.entitlementplans != nil { - edges = append(edges, organization.EdgeEntitlementplans) + for i := range ids { + delete(m.control, ids[i]) + m.removedcontrol[ids[i]] = struct{}{} } - if m.entitlementplanfeatures != nil { - edges = append(edges, organization.EdgeEntitlementplanfeatures) +} + +// RemovedControl returns the removed IDs of the "control" edge to the Control entity. +func (m *RiskMutation) RemovedControlIDs() (ids []string) { + for id := range m.removedcontrol { + ids = append(ids, id) } - if m.entities != nil { - edges = append(edges, organization.EdgeEntities) + return +} + +// ControlIDs returns the "control" edge IDs in the mutation. +func (m *RiskMutation) ControlIDs() (ids []string) { + for id := range m.control { + ids = append(ids, id) } - if m.entitytypes != nil { - edges = append(edges, organization.EdgeEntitytypes) + return +} + +// ResetControl resets all changes to the "control" edge. +func (m *RiskMutation) ResetControl() { + m.control = nil + m.clearedcontrol = false + m.removedcontrol = nil +} + +// AddProcedureIDs adds the "procedure" edge to the Procedure entity by ids. +func (m *RiskMutation) AddProcedureIDs(ids ...string) { + if m.procedure == nil { + m.procedure = make(map[string]struct{}) } - if m.contacts != nil { - edges = append(edges, organization.EdgeContacts) + for i := range ids { + m.procedure[ids[i]] = struct{}{} } - if m.notes != nil { - edges = append(edges, organization.EdgeNotes) +} + +// ClearProcedure clears the "procedure" edge to the Procedure entity. +func (m *RiskMutation) ClearProcedure() { + m.clearedprocedure = true +} + +// ProcedureCleared reports if the "procedure" edge to the Procedure entity was cleared. +func (m *RiskMutation) ProcedureCleared() bool { + return m.clearedprocedure +} + +// RemoveProcedureIDs removes the "procedure" edge to the Procedure entity by IDs. +func (m *RiskMutation) RemoveProcedureIDs(ids ...string) { + if m.removedprocedure == nil { + m.removedprocedure = make(map[string]struct{}) } - if m.members != nil { - edges = append(edges, organization.EdgeMembers) + for i := range ids { + delete(m.procedure, ids[i]) + m.removedprocedure[ids[i]] = struct{}{} } - return edges } -// AddedIDs returns all IDs (to other nodes) that were added for the given edge -// name in this mutation. -func (m *OrganizationMutation) AddedIDs(name string) []ent.Value { - switch name { - case organization.EdgeParent: - if id := m.parent; id != nil { - return []ent.Value{*id} - } - case organization.EdgeChildren: - ids := make([]ent.Value, 0, len(m.children)) - for id := range m.children { - ids = append(ids, id) - } - return ids - case organization.EdgeGroups: - ids := make([]ent.Value, 0, len(m.groups)) - for id := range m.groups { - ids = append(ids, id) - } - return ids - case organization.EdgeTemplates: - ids := make([]ent.Value, 0, len(m.templates)) - for id := range m.templates { - ids = append(ids, id) - } - return ids - case organization.EdgeIntegrations: - ids := make([]ent.Value, 0, len(m.integrations)) - for id := range m.integrations { - ids = append(ids, id) - } - return ids - case organization.EdgeSetting: - if id := m.setting; id != nil { - return []ent.Value{*id} - } - case organization.EdgeDocumentdata: - ids := make([]ent.Value, 0, len(m.documentdata)) - for id := range m.documentdata { - ids = append(ids, id) - } - return ids - case organization.EdgeEntitlements: - ids := make([]ent.Value, 0, len(m.entitlements)) - for id := range m.entitlements { - ids = append(ids, id) - } - return ids - case organization.EdgeOrganizationEntitlement: - ids := make([]ent.Value, 0, len(m.organization_entitlement)) - for id := range m.organization_entitlement { - ids = append(ids, id) - } - return ids - case organization.EdgePersonalAccessTokens: - ids := make([]ent.Value, 0, len(m.personal_access_tokens)) - for id := range m.personal_access_tokens { - ids = append(ids, id) - } - return ids - case organization.EdgeAPITokens: - ids := make([]ent.Value, 0, len(m.api_tokens)) - for id := range m.api_tokens { - ids = append(ids, id) - } - return ids - case organization.EdgeOauthprovider: - ids := make([]ent.Value, 0, len(m.oauthprovider)) - for id := range m.oauthprovider { - ids = append(ids, id) - } - return ids - case organization.EdgeUsers: - ids := make([]ent.Value, 0, len(m.users)) - for id := range m.users { - ids = append(ids, id) - } - return ids - case organization.EdgeInvites: - ids := make([]ent.Value, 0, len(m.invites)) - for id := range m.invites { - ids = append(ids, id) - } - return ids - case organization.EdgeSubscribers: - ids := make([]ent.Value, 0, len(m.subscribers)) - for id := range m.subscribers { - ids = append(ids, id) - } - return ids - case organization.EdgeWebhooks: - ids := make([]ent.Value, 0, len(m.webhooks)) - for id := range m.webhooks { - ids = append(ids, id) - } - return ids - case organization.EdgeEvents: - ids := make([]ent.Value, 0, len(m.events)) - for id := range m.events { - ids = append(ids, id) - } - return ids - case organization.EdgeSecrets: - ids := make([]ent.Value, 0, len(m.secrets)) - for id := range m.secrets { - ids = append(ids, id) - } - return ids - case organization.EdgeFeatures: - ids := make([]ent.Value, 0, len(m.features)) - for id := range m.features { - ids = append(ids, id) - } - return ids - case organization.EdgeFiles: - ids := make([]ent.Value, 0, len(m.files)) - for id := range m.files { - ids = append(ids, id) - } - return ids - case organization.EdgeEntitlementplans: - ids := make([]ent.Value, 0, len(m.entitlementplans)) - for id := range m.entitlementplans { - ids = append(ids, id) - } - return ids - case organization.EdgeEntitlementplanfeatures: - ids := make([]ent.Value, 0, len(m.entitlementplanfeatures)) - for id := range m.entitlementplanfeatures { - ids = append(ids, id) - } - return ids - case organization.EdgeEntities: - ids := make([]ent.Value, 0, len(m.entities)) - for id := range m.entities { - ids = append(ids, id) - } - return ids - case organization.EdgeEntitytypes: - ids := make([]ent.Value, 0, len(m.entitytypes)) - for id := range m.entitytypes { - ids = append(ids, id) - } - return ids - case organization.EdgeContacts: - ids := make([]ent.Value, 0, len(m.contacts)) - for id := range m.contacts { - ids = append(ids, id) - } - return ids - case organization.EdgeNotes: - ids := make([]ent.Value, 0, len(m.notes)) - for id := range m.notes { - ids = append(ids, id) - } - return ids - case organization.EdgeMembers: - ids := make([]ent.Value, 0, len(m.members)) - for id := range m.members { - ids = append(ids, id) - } - return ids +// RemovedProcedure returns the removed IDs of the "procedure" edge to the Procedure entity. +func (m *RiskMutation) RemovedProcedureIDs() (ids []string) { + for id := range m.removedprocedure { + ids = append(ids, id) } - return nil + return } -// RemovedEdges returns all edge names that were removed in this mutation. -func (m *OrganizationMutation) RemovedEdges() []string { - edges := make([]string, 0, 27) - if m.removedchildren != nil { - edges = append(edges, organization.EdgeChildren) +// ProcedureIDs returns the "procedure" edge IDs in the mutation. +func (m *RiskMutation) ProcedureIDs() (ids []string) { + for id := range m.procedure { + ids = append(ids, id) } - if m.removedgroups != nil { - edges = append(edges, organization.EdgeGroups) + return +} + +// ResetProcedure resets all changes to the "procedure" edge. +func (m *RiskMutation) ResetProcedure() { + m.procedure = nil + m.clearedprocedure = false + m.removedprocedure = nil +} + +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by ids. +func (m *RiskMutation) AddActionplanIDs(ids ...string) { + if m.actionplans == nil { + m.actionplans = make(map[string]struct{}) } - if m.removedtemplates != nil { - edges = append(edges, organization.EdgeTemplates) + for i := range ids { + m.actionplans[ids[i]] = struct{}{} } - if m.removedintegrations != nil { - edges = append(edges, organization.EdgeIntegrations) +} + +// ClearActionplans clears the "actionplans" edge to the ActionPlan entity. +func (m *RiskMutation) ClearActionplans() { + m.clearedactionplans = true +} + +// ActionplansCleared reports if the "actionplans" edge to the ActionPlan entity was cleared. +func (m *RiskMutation) ActionplansCleared() bool { + return m.clearedactionplans +} + +// RemoveActionplanIDs removes the "actionplans" edge to the ActionPlan entity by IDs. +func (m *RiskMutation) RemoveActionplanIDs(ids ...string) { + if m.removedactionplans == nil { + m.removedactionplans = make(map[string]struct{}) } - if m.removeddocumentdata != nil { - edges = append(edges, organization.EdgeDocumentdata) + for i := range ids { + delete(m.actionplans, ids[i]) + m.removedactionplans[ids[i]] = struct{}{} } - if m.removedentitlements != nil { - edges = append(edges, organization.EdgeEntitlements) +} + +// RemovedActionplans returns the removed IDs of the "actionplans" edge to the ActionPlan entity. +func (m *RiskMutation) RemovedActionplansIDs() (ids []string) { + for id := range m.removedactionplans { + ids = append(ids, id) } - if m.removedorganization_entitlement != nil { - edges = append(edges, organization.EdgeOrganizationEntitlement) + return +} + +// ActionplansIDs returns the "actionplans" edge IDs in the mutation. +func (m *RiskMutation) ActionplansIDs() (ids []string) { + for id := range m.actionplans { + ids = append(ids, id) } - if m.removedpersonal_access_tokens != nil { - edges = append(edges, organization.EdgePersonalAccessTokens) + return +} + +// ResetActionplans resets all changes to the "actionplans" edge. +func (m *RiskMutation) ResetActionplans() { + m.actionplans = nil + m.clearedactionplans = false + m.removedactionplans = nil +} + +// Where appends a list predicates to the RiskMutation builder. +func (m *RiskMutation) Where(ps ...predicate.Risk) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the RiskMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *RiskMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Risk, len(ps)) + for i := range ps { + p[i] = ps[i] } - if m.removedapi_tokens != nil { - edges = append(edges, organization.EdgeAPITokens) + m.Where(p...) +} + +// Op returns the operation name. +func (m *RiskMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *RiskMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (Risk). +func (m *RiskMutation) 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 *RiskMutation) Fields() []string { + fields := make([]string, 0, 18) + if m.created_at != nil { + fields = append(fields, risk.FieldCreatedAt) } - if m.removedoauthprovider != nil { - edges = append(edges, organization.EdgeOauthprovider) + if m.updated_at != nil { + fields = append(fields, risk.FieldUpdatedAt) } - if m.removedusers != nil { - edges = append(edges, organization.EdgeUsers) + if m.created_by != nil { + fields = append(fields, risk.FieldCreatedBy) } - if m.removedinvites != nil { - edges = append(edges, organization.EdgeInvites) + if m.updated_by != nil { + fields = append(fields, risk.FieldUpdatedBy) } - if m.removedsubscribers != nil { - edges = append(edges, organization.EdgeSubscribers) + if m.deleted_at != nil { + fields = append(fields, risk.FieldDeletedAt) } - if m.removedwebhooks != nil { - edges = append(edges, organization.EdgeWebhooks) + if m.deleted_by != nil { + fields = append(fields, risk.FieldDeletedBy) } - if m.removedevents != nil { - edges = append(edges, organization.EdgeEvents) + if m.mapping_id != nil { + fields = append(fields, risk.FieldMappingID) } - if m.removedsecrets != nil { - edges = append(edges, organization.EdgeSecrets) + if m.tags != nil { + fields = append(fields, risk.FieldTags) } - if m.removedfeatures != nil { - edges = append(edges, organization.EdgeFeatures) + if m.name != nil { + fields = append(fields, risk.FieldName) } - if m.removedfiles != nil { - edges = append(edges, organization.EdgeFiles) + if m.description != nil { + fields = append(fields, risk.FieldDescription) } - if m.removedentitlementplans != nil { - edges = append(edges, organization.EdgeEntitlementplans) + if m.status != nil { + fields = append(fields, risk.FieldStatus) } - if m.removedentitlementplanfeatures != nil { - edges = append(edges, organization.EdgeEntitlementplanfeatures) + if m.risk_type != nil { + fields = append(fields, risk.FieldRiskType) } - if m.removedentities != nil { - edges = append(edges, organization.EdgeEntities) + if m.business_costs != nil { + fields = append(fields, risk.FieldBusinessCosts) } - if m.removedentitytypes != nil { - edges = append(edges, organization.EdgeEntitytypes) + if m.impact != nil { + fields = append(fields, risk.FieldImpact) } - if m.removedcontacts != nil { - edges = append(edges, organization.EdgeContacts) + if m.likelihood != nil { + fields = append(fields, risk.FieldLikelihood) } - if m.removednotes != nil { - edges = append(edges, organization.EdgeNotes) + if m.mitigation != nil { + fields = append(fields, risk.FieldMitigation) } - if m.removedmembers != nil { - edges = append(edges, organization.EdgeMembers) + if m.satisfies != nil { + fields = append(fields, risk.FieldSatisfies) } - return edges + if m.details != nil { + fields = append(fields, risk.FieldDetails) + } + return fields } -// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with -// the given name in this mutation. -func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value { +// 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 *RiskMutation) Field(name string) (ent.Value, bool) { switch name { - case organization.EdgeChildren: - ids := make([]ent.Value, 0, len(m.removedchildren)) - for id := range m.removedchildren { - ids = append(ids, id) - } - return ids - case organization.EdgeGroups: - ids := make([]ent.Value, 0, len(m.removedgroups)) - for id := range m.removedgroups { - ids = append(ids, id) - } - return ids - case organization.EdgeTemplates: - ids := make([]ent.Value, 0, len(m.removedtemplates)) - for id := range m.removedtemplates { - ids = append(ids, id) - } - return ids - case organization.EdgeIntegrations: - ids := make([]ent.Value, 0, len(m.removedintegrations)) - for id := range m.removedintegrations { - ids = append(ids, id) - } - return ids - case organization.EdgeDocumentdata: - ids := make([]ent.Value, 0, len(m.removeddocumentdata)) - for id := range m.removeddocumentdata { - ids = append(ids, id) - } - return ids - case organization.EdgeEntitlements: - ids := make([]ent.Value, 0, len(m.removedentitlements)) - for id := range m.removedentitlements { - ids = append(ids, id) - } - return ids - case organization.EdgeOrganizationEntitlement: - ids := make([]ent.Value, 0, len(m.removedorganization_entitlement)) - for id := range m.removedorganization_entitlement { - ids = append(ids, id) - } - return ids - case organization.EdgePersonalAccessTokens: - ids := make([]ent.Value, 0, len(m.removedpersonal_access_tokens)) - for id := range m.removedpersonal_access_tokens { - ids = append(ids, id) + case risk.FieldCreatedAt: + return m.CreatedAt() + case risk.FieldUpdatedAt: + return m.UpdatedAt() + case risk.FieldCreatedBy: + return m.CreatedBy() + case risk.FieldUpdatedBy: + return m.UpdatedBy() + case risk.FieldDeletedAt: + return m.DeletedAt() + case risk.FieldDeletedBy: + return m.DeletedBy() + case risk.FieldMappingID: + return m.MappingID() + case risk.FieldTags: + return m.Tags() + case risk.FieldName: + return m.Name() + case risk.FieldDescription: + return m.Description() + case risk.FieldStatus: + return m.Status() + case risk.FieldRiskType: + return m.RiskType() + case risk.FieldBusinessCosts: + return m.BusinessCosts() + case risk.FieldImpact: + return m.Impact() + case risk.FieldLikelihood: + return m.Likelihood() + case risk.FieldMitigation: + return m.Mitigation() + case risk.FieldSatisfies: + return m.Satisfies() + case risk.FieldDetails: + return m.Details() + } + 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 *RiskMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case risk.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case risk.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case risk.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case risk.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case risk.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case risk.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case risk.FieldMappingID: + return m.OldMappingID(ctx) + case risk.FieldTags: + return m.OldTags(ctx) + case risk.FieldName: + return m.OldName(ctx) + case risk.FieldDescription: + return m.OldDescription(ctx) + case risk.FieldStatus: + return m.OldStatus(ctx) + case risk.FieldRiskType: + return m.OldRiskType(ctx) + case risk.FieldBusinessCosts: + return m.OldBusinessCosts(ctx) + case risk.FieldImpact: + return m.OldImpact(ctx) + case risk.FieldLikelihood: + return m.OldLikelihood(ctx) + case risk.FieldMitigation: + return m.OldMitigation(ctx) + case risk.FieldSatisfies: + return m.OldSatisfies(ctx) + case risk.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown Risk 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 *RiskMutation) SetField(name string, value ent.Value) error { + switch name { + case risk.FieldCreatedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeAPITokens: - ids := make([]ent.Value, 0, len(m.removedapi_tokens)) - for id := range m.removedapi_tokens { - ids = append(ids, id) + m.SetCreatedAt(v) + return nil + case risk.FieldUpdatedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeOauthprovider: - ids := make([]ent.Value, 0, len(m.removedoauthprovider)) - for id := range m.removedoauthprovider { - ids = append(ids, id) + m.SetUpdatedAt(v) + return nil + case risk.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeUsers: - ids := make([]ent.Value, 0, len(m.removedusers)) - for id := range m.removedusers { - ids = append(ids, id) + m.SetCreatedBy(v) + return nil + case risk.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeInvites: - ids := make([]ent.Value, 0, len(m.removedinvites)) - for id := range m.removedinvites { - ids = append(ids, id) + m.SetUpdatedBy(v) + return nil + case risk.FieldDeletedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeSubscribers: - ids := make([]ent.Value, 0, len(m.removedsubscribers)) - for id := range m.removedsubscribers { - ids = append(ids, id) + m.SetDeletedAt(v) + return nil + case risk.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeWebhooks: - ids := make([]ent.Value, 0, len(m.removedwebhooks)) - for id := range m.removedwebhooks { - ids = append(ids, id) + m.SetDeletedBy(v) + return nil + case risk.FieldMappingID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeEvents: - ids := make([]ent.Value, 0, len(m.removedevents)) - for id := range m.removedevents { - ids = append(ids, id) + m.SetMappingID(v) + return nil + case risk.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeSecrets: - ids := make([]ent.Value, 0, len(m.removedsecrets)) - for id := range m.removedsecrets { - ids = append(ids, id) + m.SetTags(v) + return nil + case risk.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeFeatures: - ids := make([]ent.Value, 0, len(m.removedfeatures)) - for id := range m.removedfeatures { - ids = append(ids, id) + m.SetName(v) + return nil + case risk.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeFiles: - ids := make([]ent.Value, 0, len(m.removedfiles)) - for id := range m.removedfiles { - ids = append(ids, id) + m.SetDescription(v) + return nil + case risk.FieldStatus: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeEntitlementplans: - ids := make([]ent.Value, 0, len(m.removedentitlementplans)) - for id := range m.removedentitlementplans { - ids = append(ids, id) + m.SetStatus(v) + return nil + case risk.FieldRiskType: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeEntitlementplanfeatures: - ids := make([]ent.Value, 0, len(m.removedentitlementplanfeatures)) - for id := range m.removedentitlementplanfeatures { - ids = append(ids, id) + m.SetRiskType(v) + return nil + case risk.FieldBusinessCosts: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeEntities: - ids := make([]ent.Value, 0, len(m.removedentities)) - for id := range m.removedentities { - ids = append(ids, id) + m.SetBusinessCosts(v) + return nil + case risk.FieldImpact: + v, ok := value.(enums.RiskImpact) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeEntitytypes: - ids := make([]ent.Value, 0, len(m.removedentitytypes)) - for id := range m.removedentitytypes { - ids = append(ids, id) + m.SetImpact(v) + return nil + case risk.FieldLikelihood: + v, ok := value.(enums.RiskLikelihood) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeContacts: - ids := make([]ent.Value, 0, len(m.removedcontacts)) - for id := range m.removedcontacts { - ids = append(ids, id) + m.SetLikelihood(v) + return nil + case risk.FieldMitigation: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeNotes: - ids := make([]ent.Value, 0, len(m.removednotes)) - for id := range m.removednotes { - ids = append(ids, id) + m.SetMitigation(v) + return nil + case risk.FieldSatisfies: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids - case organization.EdgeMembers: - ids := make([]ent.Value, 0, len(m.removedmembers)) - for id := range m.removedmembers { - ids = append(ids, id) + m.SetSatisfies(v) + return nil + case risk.FieldDetails: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) } - return ids + m.SetDetails(v) + return nil } + return fmt.Errorf("unknown Risk field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *RiskMutation) AddedFields() []string { return nil } -// ClearedEdges returns all edge names that were cleared in this mutation. -func (m *OrganizationMutation) ClearedEdges() []string { - edges := make([]string, 0, 27) - if m.clearedparent { - edges = append(edges, organization.EdgeParent) - } - if m.clearedchildren { - edges = append(edges, organization.EdgeChildren) - } - if m.clearedgroups { - edges = append(edges, organization.EdgeGroups) - } - if m.clearedtemplates { - edges = append(edges, organization.EdgeTemplates) - } - if m.clearedintegrations { - edges = append(edges, organization.EdgeIntegrations) - } - if m.clearedsetting { - edges = append(edges, organization.EdgeSetting) - } - if m.cleareddocumentdata { - edges = append(edges, organization.EdgeDocumentdata) - } - if m.clearedentitlements { - edges = append(edges, organization.EdgeEntitlements) - } - if m.clearedorganization_entitlement { - edges = append(edges, organization.EdgeOrganizationEntitlement) - } - if m.clearedpersonal_access_tokens { - edges = append(edges, organization.EdgePersonalAccessTokens) - } - if m.clearedapi_tokens { - edges = append(edges, organization.EdgeAPITokens) +// 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 *RiskMutation) 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 *RiskMutation) AddField(name string, value ent.Value) error { + switch name { } - if m.clearedoauthprovider { - edges = append(edges, organization.EdgeOauthprovider) + return fmt.Errorf("unknown Risk numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *RiskMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(risk.FieldCreatedAt) { + fields = append(fields, risk.FieldCreatedAt) } - if m.clearedusers { - edges = append(edges, organization.EdgeUsers) + if m.FieldCleared(risk.FieldUpdatedAt) { + fields = append(fields, risk.FieldUpdatedAt) } - if m.clearedinvites { - edges = append(edges, organization.EdgeInvites) + if m.FieldCleared(risk.FieldCreatedBy) { + fields = append(fields, risk.FieldCreatedBy) } - if m.clearedsubscribers { - edges = append(edges, organization.EdgeSubscribers) + if m.FieldCleared(risk.FieldUpdatedBy) { + fields = append(fields, risk.FieldUpdatedBy) } - if m.clearedwebhooks { - edges = append(edges, organization.EdgeWebhooks) + if m.FieldCleared(risk.FieldDeletedAt) { + fields = append(fields, risk.FieldDeletedAt) } - if m.clearedevents { - edges = append(edges, organization.EdgeEvents) + if m.FieldCleared(risk.FieldDeletedBy) { + fields = append(fields, risk.FieldDeletedBy) } - if m.clearedsecrets { - edges = append(edges, organization.EdgeSecrets) + if m.FieldCleared(risk.FieldTags) { + fields = append(fields, risk.FieldTags) } - if m.clearedfeatures { - edges = append(edges, organization.EdgeFeatures) + if m.FieldCleared(risk.FieldDescription) { + fields = append(fields, risk.FieldDescription) } - if m.clearedfiles { - edges = append(edges, organization.EdgeFiles) + if m.FieldCleared(risk.FieldStatus) { + fields = append(fields, risk.FieldStatus) } - if m.clearedentitlementplans { - edges = append(edges, organization.EdgeEntitlementplans) + if m.FieldCleared(risk.FieldRiskType) { + fields = append(fields, risk.FieldRiskType) } - if m.clearedentitlementplanfeatures { - edges = append(edges, organization.EdgeEntitlementplanfeatures) + if m.FieldCleared(risk.FieldBusinessCosts) { + fields = append(fields, risk.FieldBusinessCosts) } - if m.clearedentities { - edges = append(edges, organization.EdgeEntities) + if m.FieldCleared(risk.FieldImpact) { + fields = append(fields, risk.FieldImpact) } - if m.clearedentitytypes { - edges = append(edges, organization.EdgeEntitytypes) + if m.FieldCleared(risk.FieldLikelihood) { + fields = append(fields, risk.FieldLikelihood) } - if m.clearedcontacts { - edges = append(edges, organization.EdgeContacts) + if m.FieldCleared(risk.FieldMitigation) { + fields = append(fields, risk.FieldMitigation) } - if m.clearednotes { - edges = append(edges, organization.EdgeNotes) + if m.FieldCleared(risk.FieldSatisfies) { + fields = append(fields, risk.FieldSatisfies) } - if m.clearedmembers { - edges = append(edges, organization.EdgeMembers) + if m.FieldCleared(risk.FieldDetails) { + fields = append(fields, risk.FieldDetails) } - return edges + return fields } -// EdgeCleared returns a boolean which indicates if the edge with the given name -// was cleared in this mutation. -func (m *OrganizationMutation) EdgeCleared(name string) bool { - switch name { - case organization.EdgeParent: - return m.clearedparent - case organization.EdgeChildren: - return m.clearedchildren - case organization.EdgeGroups: - return m.clearedgroups - case organization.EdgeTemplates: - return m.clearedtemplates - case organization.EdgeIntegrations: - return m.clearedintegrations - case organization.EdgeSetting: - return m.clearedsetting - case organization.EdgeDocumentdata: - return m.cleareddocumentdata - case organization.EdgeEntitlements: - return m.clearedentitlements - case organization.EdgeOrganizationEntitlement: - return m.clearedorganization_entitlement - case organization.EdgePersonalAccessTokens: - return m.clearedpersonal_access_tokens - case organization.EdgeAPITokens: - return m.clearedapi_tokens - case organization.EdgeOauthprovider: - return m.clearedoauthprovider - case organization.EdgeUsers: - return m.clearedusers - case organization.EdgeInvites: - return m.clearedinvites - case organization.EdgeSubscribers: - return m.clearedsubscribers - case organization.EdgeWebhooks: - return m.clearedwebhooks - case organization.EdgeEvents: - return m.clearedevents - case organization.EdgeSecrets: - return m.clearedsecrets - case organization.EdgeFeatures: - return m.clearedfeatures - case organization.EdgeFiles: - return m.clearedfiles - case organization.EdgeEntitlementplans: - return m.clearedentitlementplans - case organization.EdgeEntitlementplanfeatures: - return m.clearedentitlementplanfeatures - case organization.EdgeEntities: - return m.clearedentities - case organization.EdgeEntitytypes: - return m.clearedentitytypes - case organization.EdgeContacts: - return m.clearedcontacts - case organization.EdgeNotes: - return m.clearednotes - case organization.EdgeMembers: - return m.clearedmembers - } - return false +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *RiskMutation) FieldCleared(name string) bool { + _, ok := m.clearedFields[name] + return ok } -// 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 *OrganizationMutation) ClearEdge(name string) error { +// 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 *RiskMutation) ClearField(name string) error { switch name { - case organization.EdgeParent: - m.ClearParent() + case risk.FieldCreatedAt: + m.ClearCreatedAt() return nil - case organization.EdgeSetting: - m.ClearSetting() + case risk.FieldUpdatedAt: + m.ClearUpdatedAt() return nil - } - return fmt.Errorf("unknown Organization 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 *OrganizationMutation) ResetEdge(name string) error { - switch name { - case organization.EdgeParent: - m.ResetParent() + case risk.FieldCreatedBy: + m.ClearCreatedBy() return nil - case organization.EdgeChildren: - m.ResetChildren() + case risk.FieldUpdatedBy: + m.ClearUpdatedBy() return nil - case organization.EdgeGroups: - m.ResetGroups() + case risk.FieldDeletedAt: + m.ClearDeletedAt() return nil - case organization.EdgeTemplates: - m.ResetTemplates() + case risk.FieldDeletedBy: + m.ClearDeletedBy() return nil - case organization.EdgeIntegrations: - m.ResetIntegrations() + case risk.FieldTags: + m.ClearTags() return nil - case organization.EdgeSetting: - m.ResetSetting() + case risk.FieldDescription: + m.ClearDescription() return nil - case organization.EdgeDocumentdata: - m.ResetDocumentdata() + case risk.FieldStatus: + m.ClearStatus() return nil - case organization.EdgeEntitlements: - m.ResetEntitlements() + case risk.FieldRiskType: + m.ClearRiskType() return nil - case organization.EdgeOrganizationEntitlement: - m.ResetOrganizationEntitlement() + case risk.FieldBusinessCosts: + m.ClearBusinessCosts() return nil - case organization.EdgePersonalAccessTokens: - m.ResetPersonalAccessTokens() + case risk.FieldImpact: + m.ClearImpact() return nil - case organization.EdgeAPITokens: - m.ResetAPITokens() + case risk.FieldLikelihood: + m.ClearLikelihood() return nil - case organization.EdgeOauthprovider: - m.ResetOauthprovider() + case risk.FieldMitigation: + m.ClearMitigation() return nil - case organization.EdgeUsers: - m.ResetUsers() + case risk.FieldSatisfies: + m.ClearSatisfies() return nil - case organization.EdgeInvites: - m.ResetInvites() + case risk.FieldDetails: + m.ClearDetails() return nil - case organization.EdgeSubscribers: - m.ResetSubscribers() + } + return fmt.Errorf("unknown Risk 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 *RiskMutation) ResetField(name string) error { + switch name { + case risk.FieldCreatedAt: + m.ResetCreatedAt() return nil - case organization.EdgeWebhooks: - m.ResetWebhooks() + case risk.FieldUpdatedAt: + m.ResetUpdatedAt() return nil - case organization.EdgeEvents: - m.ResetEvents() + case risk.FieldCreatedBy: + m.ResetCreatedBy() return nil - case organization.EdgeSecrets: - m.ResetSecrets() + case risk.FieldUpdatedBy: + m.ResetUpdatedBy() return nil - case organization.EdgeFeatures: - m.ResetFeatures() + case risk.FieldDeletedAt: + m.ResetDeletedAt() return nil - case organization.EdgeFiles: - m.ResetFiles() + case risk.FieldDeletedBy: + m.ResetDeletedBy() return nil - case organization.EdgeEntitlementplans: - m.ResetEntitlementplans() + case risk.FieldMappingID: + m.ResetMappingID() return nil - case organization.EdgeEntitlementplanfeatures: - m.ResetEntitlementplanfeatures() + case risk.FieldTags: + m.ResetTags() return nil - case organization.EdgeEntities: - m.ResetEntities() + case risk.FieldName: + m.ResetName() return nil - case organization.EdgeEntitytypes: - m.ResetEntitytypes() + case risk.FieldDescription: + m.ResetDescription() return nil - case organization.EdgeContacts: - m.ResetContacts() + case risk.FieldStatus: + m.ResetStatus() return nil - case organization.EdgeNotes: - m.ResetNotes() + case risk.FieldRiskType: + m.ResetRiskType() return nil - case organization.EdgeMembers: - m.ResetMembers() + case risk.FieldBusinessCosts: + m.ResetBusinessCosts() + return nil + case risk.FieldImpact: + m.ResetImpact() + return nil + case risk.FieldLikelihood: + m.ResetLikelihood() + return nil + case risk.FieldMitigation: + m.ResetMitigation() + return nil + case risk.FieldSatisfies: + m.ResetSatisfies() + return nil + case risk.FieldDetails: + m.ResetDetails() return nil } - return fmt.Errorf("unknown Organization edge %s", name) + return fmt.Errorf("unknown Risk field %s", name) } -// OrganizationHistoryMutation represents an operation that mutates the OrganizationHistory nodes in the graph. -type OrganizationHistoryMutation 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 - mapping_id *string - tags *[]string - appendtags []string - deleted_at *time.Time - deleted_by *string - name *string - display_name *string - description *string - parent_organization_id *string - personal_org *bool - avatar_remote_url *string - dedicated_db *bool - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*OrganizationHistory, error) - predicates []predicate.OrganizationHistory +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *RiskMutation) AddedEdges() []string { + edges := make([]string, 0, 3) + if m.control != nil { + edges = append(edges, risk.EdgeControl) + } + if m.procedure != nil { + edges = append(edges, risk.EdgeProcedure) + } + if m.actionplans != nil { + edges = append(edges, risk.EdgeActionplans) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *RiskMutation) AddedIDs(name string) []ent.Value { + switch name { + case risk.EdgeControl: + ids := make([]ent.Value, 0, len(m.control)) + for id := range m.control { + ids = append(ids, id) + } + return ids + case risk.EdgeProcedure: + ids := make([]ent.Value, 0, len(m.procedure)) + for id := range m.procedure { + ids = append(ids, id) + } + return ids + case risk.EdgeActionplans: + ids := make([]ent.Value, 0, len(m.actionplans)) + for id := range m.actionplans { + ids = append(ids, id) + } + return ids + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *RiskMutation) RemovedEdges() []string { + edges := make([]string, 0, 3) + if m.removedcontrol != nil { + edges = append(edges, risk.EdgeControl) + } + if m.removedprocedure != nil { + edges = append(edges, risk.EdgeProcedure) + } + if m.removedactionplans != nil { + edges = append(edges, risk.EdgeActionplans) + } + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *RiskMutation) RemovedIDs(name string) []ent.Value { + switch name { + case risk.EdgeControl: + ids := make([]ent.Value, 0, len(m.removedcontrol)) + for id := range m.removedcontrol { + ids = append(ids, id) + } + return ids + case risk.EdgeProcedure: + ids := make([]ent.Value, 0, len(m.removedprocedure)) + for id := range m.removedprocedure { + ids = append(ids, id) + } + return ids + case risk.EdgeActionplans: + ids := make([]ent.Value, 0, len(m.removedactionplans)) + for id := range m.removedactionplans { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *RiskMutation) ClearedEdges() []string { + edges := make([]string, 0, 3) + if m.clearedcontrol { + edges = append(edges, risk.EdgeControl) + } + if m.clearedprocedure { + edges = append(edges, risk.EdgeProcedure) + } + if m.clearedactionplans { + edges = append(edges, risk.EdgeActionplans) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *RiskMutation) EdgeCleared(name string) bool { + switch name { + case risk.EdgeControl: + return m.clearedcontrol + case risk.EdgeProcedure: + return m.clearedprocedure + case risk.EdgeActionplans: + return m.clearedactionplans + } + 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 *RiskMutation) ClearEdge(name string) error { + switch name { + } + return fmt.Errorf("unknown Risk 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 *RiskMutation) ResetEdge(name string) error { + switch name { + case risk.EdgeControl: + m.ResetControl() + return nil + case risk.EdgeProcedure: + m.ResetProcedure() + return nil + case risk.EdgeActionplans: + m.ResetActionplans() + return nil + } + return fmt.Errorf("unknown Risk edge %s", name) } -var _ ent.Mutation = (*OrganizationHistoryMutation)(nil) +// RiskHistoryMutation represents an operation that mutates the RiskHistory nodes in the graph. +type RiskHistoryMutation 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 + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + status *string + risk_type *string + business_costs *string + impact *enums.RiskImpact + likelihood *enums.RiskLikelihood + mitigation *string + satisfies *string + details *map[string]interface{} + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*RiskHistory, error) + predicates []predicate.RiskHistory +} -// organizationhistoryOption allows management of the mutation configuration using functional options. -type organizationhistoryOption func(*OrganizationHistoryMutation) +var _ ent.Mutation = (*RiskHistoryMutation)(nil) -// newOrganizationHistoryMutation creates new mutation for the OrganizationHistory entity. -func newOrganizationHistoryMutation(c config, op Op, opts ...organizationhistoryOption) *OrganizationHistoryMutation { - m := &OrganizationHistoryMutation{ +// riskhistoryOption allows management of the mutation configuration using functional options. +type riskhistoryOption func(*RiskHistoryMutation) + +// newRiskHistoryMutation creates new mutation for the RiskHistory entity. +func newRiskHistoryMutation(c config, op Op, opts ...riskhistoryOption) *RiskHistoryMutation { + m := &RiskHistoryMutation{ config: c, op: op, - typ: TypeOrganizationHistory, + typ: TypeRiskHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -62095,20 +92623,20 @@ func newOrganizationHistoryMutation(c config, op Op, opts ...organizationhistory return m } -// withOrganizationHistoryID sets the ID field of the mutation. -func withOrganizationHistoryID(id string) organizationhistoryOption { - return func(m *OrganizationHistoryMutation) { +// withRiskHistoryID sets the ID field of the mutation. +func withRiskHistoryID(id string) riskhistoryOption { + return func(m *RiskHistoryMutation) { var ( err error once sync.Once - value *OrganizationHistory + value *RiskHistory ) - m.oldValue = func(ctx context.Context) (*OrganizationHistory, error) { + m.oldValue = func(ctx context.Context) (*RiskHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().OrganizationHistory.Get(ctx, id) + value, err = m.Client().RiskHistory.Get(ctx, id) } }) return value, err @@ -62117,10 +92645,10 @@ func withOrganizationHistoryID(id string) organizationhistoryOption { } } -// withOrganizationHistory sets the old OrganizationHistory of the mutation. -func withOrganizationHistory(node *OrganizationHistory) organizationhistoryOption { - return func(m *OrganizationHistoryMutation) { - m.oldValue = func(context.Context) (*OrganizationHistory, error) { +// withRiskHistory sets the old RiskHistory of the mutation. +func withRiskHistory(node *RiskHistory) riskhistoryOption { + return func(m *RiskHistoryMutation) { + m.oldValue = func(context.Context) (*RiskHistory, error) { return node, nil } m.id = &node.ID @@ -62129,7 +92657,7 @@ func withOrganizationHistory(node *OrganizationHistory) organizationhistoryOptio // 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 OrganizationHistoryMutation) Client() *Client { +func (m RiskHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -62137,7 +92665,7 @@ func (m OrganizationHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m OrganizationHistoryMutation) Tx() (*Tx, error) { +func (m RiskHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -62147,14 +92675,14 @@ func (m OrganizationHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of OrganizationHistory entities. -func (m *OrganizationHistoryMutation) SetID(id string) { +// operation is only accepted on creation of RiskHistory entities. +func (m *RiskHistoryMutation) 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 *OrganizationHistoryMutation) ID() (id string, exists bool) { +func (m *RiskHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -62165,7 +92693,7 @@ func (m *OrganizationHistoryMutation) ID() (id string, exists bool) { // 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 *OrganizationHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *RiskHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -62174,19 +92702,19 @@ func (m *OrganizationHistoryMutation) IDs(ctx context.Context) ([]string, error) } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().OrganizationHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().RiskHistory.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 *OrganizationHistoryMutation) SetHistoryTime(t time.Time) { +func (m *RiskHistoryMutation) SetHistoryTime(t time.Time) { m.history_time = &t } // HistoryTime returns the value of the "history_time" field in the mutation. -func (m *OrganizationHistoryMutation) HistoryTime() (r time.Time, exists bool) { +func (m *RiskHistoryMutation) HistoryTime() (r time.Time, exists bool) { v := m.history_time if v == nil { return @@ -62194,10 +92722,10 @@ func (m *OrganizationHistoryMutation) HistoryTime() (r time.Time, exists bool) { return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *RiskHistoryMutation) 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") } @@ -62212,17 +92740,17 @@ func (m *OrganizationHistoryMutation) OldHistoryTime(ctx context.Context) (v tim } // ResetHistoryTime resets all changes to the "history_time" field. -func (m *OrganizationHistoryMutation) ResetHistoryTime() { +func (m *RiskHistoryMutation) ResetHistoryTime() { m.history_time = nil } // SetRef sets the "ref" field. -func (m *OrganizationHistoryMutation) SetRef(s string) { +func (m *RiskHistoryMutation) SetRef(s string) { m.ref = &s } // Ref returns the value of the "ref" field in the mutation. -func (m *OrganizationHistoryMutation) Ref() (r string, exists bool) { +func (m *RiskHistoryMutation) Ref() (r string, exists bool) { v := m.ref if v == nil { return @@ -62230,10 +92758,10 @@ func (m *OrganizationHistoryMutation) Ref() (r string, exists bool) { return *v, true } -// OldRef returns the old "ref" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *RiskHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldRef is only allowed on UpdateOne operations") } @@ -62248,30 +92776,30 @@ func (m *OrganizationHistoryMutation) OldRef(ctx context.Context) (v string, err } // ClearRef clears the value of the "ref" field. -func (m *OrganizationHistoryMutation) ClearRef() { +func (m *RiskHistoryMutation) ClearRef() { m.ref = nil - m.clearedFields[organizationhistory.FieldRef] = struct{}{} + m.clearedFields[riskhistory.FieldRef] = struct{}{} } // RefCleared returns if the "ref" field was cleared in this mutation. -func (m *OrganizationHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[organizationhistory.FieldRef] +func (m *RiskHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldRef] return ok } // ResetRef resets all changes to the "ref" field. -func (m *OrganizationHistoryMutation) ResetRef() { +func (m *RiskHistoryMutation) ResetRef() { m.ref = nil - delete(m.clearedFields, organizationhistory.FieldRef) + delete(m.clearedFields, riskhistory.FieldRef) } // SetOperation sets the "operation" field. -func (m *OrganizationHistoryMutation) SetOperation(ht history.OpType) { +func (m *RiskHistoryMutation) SetOperation(ht history.OpType) { m.operation = &ht } // Operation returns the value of the "operation" field in the mutation. -func (m *OrganizationHistoryMutation) Operation() (r history.OpType, exists bool) { +func (m *RiskHistoryMutation) Operation() (r history.OpType, exists bool) { v := m.operation if v == nil { return @@ -62279,10 +92807,10 @@ func (m *OrganizationHistoryMutation) Operation() (r history.OpType, exists bool return *v, true } -// OldOperation returns the old "operation" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *RiskHistoryMutation) 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") } @@ -62297,17 +92825,17 @@ func (m *OrganizationHistoryMutation) OldOperation(ctx context.Context) (v histo } // ResetOperation resets all changes to the "operation" field. -func (m *OrganizationHistoryMutation) ResetOperation() { +func (m *RiskHistoryMutation) ResetOperation() { m.operation = nil } // SetCreatedAt sets the "created_at" field. -func (m *OrganizationHistoryMutation) SetCreatedAt(t time.Time) { +func (m *RiskHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *OrganizationHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *RiskHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -62315,10 +92843,10 @@ func (m *OrganizationHistoryMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *RiskHistoryMutation) 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") } @@ -62333,30 +92861,30 @@ func (m *OrganizationHistoryMutation) OldCreatedAt(ctx context.Context) (v time. } // ClearCreatedAt clears the value of the "created_at" field. -func (m *OrganizationHistoryMutation) ClearCreatedAt() { +func (m *RiskHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[organizationhistory.FieldCreatedAt] = struct{}{} + m.clearedFields[riskhistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *OrganizationHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[organizationhistory.FieldCreatedAt] +func (m *RiskHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *OrganizationHistoryMutation) ResetCreatedAt() { +func (m *RiskHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, organizationhistory.FieldCreatedAt) + delete(m.clearedFields, riskhistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *OrganizationHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *RiskHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *OrganizationHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *RiskHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -62364,10 +92892,10 @@ func (m *OrganizationHistoryMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *RiskHistoryMutation) 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") } @@ -62382,30 +92910,30 @@ func (m *OrganizationHistoryMutation) OldUpdatedAt(ctx context.Context) (v time. } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *OrganizationHistoryMutation) ClearUpdatedAt() { +func (m *RiskHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[organizationhistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[riskhistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *OrganizationHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[organizationhistory.FieldUpdatedAt] +func (m *RiskHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *OrganizationHistoryMutation) ResetUpdatedAt() { +func (m *RiskHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, organizationhistory.FieldUpdatedAt) + delete(m.clearedFields, riskhistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *OrganizationHistoryMutation) SetCreatedBy(s string) { +func (m *RiskHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *OrganizationHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *RiskHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -62413,10 +92941,10 @@ func (m *OrganizationHistoryMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *RiskHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -62431,30 +92959,30 @@ func (m *OrganizationHistoryMutation) OldCreatedBy(ctx context.Context) (v strin } // ClearCreatedBy clears the value of the "created_by" field. -func (m *OrganizationHistoryMutation) ClearCreatedBy() { +func (m *RiskHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[organizationhistory.FieldCreatedBy] = struct{}{} + m.clearedFields[riskhistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *OrganizationHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[organizationhistory.FieldCreatedBy] +func (m *RiskHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *OrganizationHistoryMutation) ResetCreatedBy() { +func (m *RiskHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, organizationhistory.FieldCreatedBy) + delete(m.clearedFields, riskhistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *OrganizationHistoryMutation) SetUpdatedBy(s string) { +func (m *RiskHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *OrganizationHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *RiskHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -62462,10 +92990,10 @@ func (m *OrganizationHistoryMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *RiskHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -62480,30 +93008,128 @@ func (m *OrganizationHistoryMutation) OldUpdatedBy(ctx context.Context) (v strin } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *OrganizationHistoryMutation) ClearUpdatedBy() { +func (m *RiskHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[organizationhistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[riskhistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *OrganizationHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[organizationhistory.FieldUpdatedBy] +func (m *RiskHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *OrganizationHistoryMutation) ResetUpdatedBy() { +func (m *RiskHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, organizationhistory.FieldUpdatedBy) + delete(m.clearedFields, riskhistory.FieldUpdatedBy) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *RiskHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *RiskHistoryMutation) 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 RiskHistory entity. +// If the RiskHistory 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 *RiskHistoryMutation) 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 *RiskHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[riskhistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *RiskHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *RiskHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, riskhistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *RiskHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *RiskHistoryMutation) 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 RiskHistory entity. +// If the RiskHistory 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 *RiskHistoryMutation) 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 *RiskHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[riskhistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *RiskHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *RiskHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, riskhistory.FieldDeletedBy) } // SetMappingID sets the "mapping_id" field. -func (m *OrganizationHistoryMutation) SetMappingID(s string) { +func (m *RiskHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *OrganizationHistoryMutation) MappingID() (r string, exists bool) { +func (m *RiskHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -62511,10 +93137,10 @@ func (m *OrganizationHistoryMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *RiskHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -62529,18 +93155,18 @@ func (m *OrganizationHistoryMutation) OldMappingID(ctx context.Context) (v strin } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *OrganizationHistoryMutation) ResetMappingID() { +func (m *RiskHistoryMutation) ResetMappingID() { m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *OrganizationHistoryMutation) SetTags(s []string) { +func (m *RiskHistoryMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *OrganizationHistoryMutation) Tags() (r []string, exists bool) { +func (m *RiskHistoryMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -62548,10 +93174,10 @@ func (m *OrganizationHistoryMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *RiskHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -62566,12 +93192,12 @@ func (m *OrganizationHistoryMutation) OldTags(ctx context.Context) (v []string, } // AppendTags adds s to the "tags" field. -func (m *OrganizationHistoryMutation) AppendTags(s []string) { +func (m *RiskHistoryMutation) 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 *OrganizationHistoryMutation) AppendedTags() ([]string, bool) { +func (m *RiskHistoryMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -62579,436 +93205,511 @@ func (m *OrganizationHistoryMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *OrganizationHistoryMutation) ClearTags() { +func (m *RiskHistoryMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[organizationhistory.FieldTags] = struct{}{} + m.clearedFields[riskhistory.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *OrganizationHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[organizationhistory.FieldTags] +func (m *RiskHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *OrganizationHistoryMutation) ResetTags() { +func (m *RiskHistoryMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, organizationhistory.FieldTags) + delete(m.clearedFields, riskhistory.FieldTags) } -// SetDeletedAt sets the "deleted_at" field. -func (m *OrganizationHistoryMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetName sets the "name" field. +func (m *RiskHistoryMutation) SetName(s string) { + m.name = &s } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *OrganizationHistoryMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// Name returns the value of the "name" field in the mutation. +func (m *RiskHistoryMutation) Name() (r string, exists bool) { + v := m.name if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *RiskHistoryMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldName 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") + 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 OldDeletedAt: %w", err) + return v, fmt.Errorf("querying old value for OldName: %w", err) } - return oldValue.DeletedAt, nil + return oldValue.Name, nil } -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *OrganizationHistoryMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[organizationhistory.FieldDeletedAt] = struct{}{} +// ResetName resets all changes to the "name" field. +func (m *RiskHistoryMutation) ResetName() { + m.name = nil } -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *OrganizationHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[organizationhistory.FieldDeletedAt] +// SetDescription sets the "description" field. +func (m *RiskHistoryMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *RiskHistoryMutation) 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 RiskHistory entity. +// If the RiskHistory 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 *RiskHistoryMutation) 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 *RiskHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[riskhistory.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *RiskHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldDescription] return ok } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *OrganizationHistoryMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, organizationhistory.FieldDeletedAt) +// ResetDescription resets all changes to the "description" field. +func (m *RiskHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, riskhistory.FieldDescription) } -// SetDeletedBy sets the "deleted_by" field. -func (m *OrganizationHistoryMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetStatus sets the "status" field. +func (m *RiskHistoryMutation) SetStatus(s string) { + m.status = &s } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *OrganizationHistoryMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// Status returns the value of the "status" field in the mutation. +func (m *RiskHistoryMutation) Status() (r string, exists bool) { + v := m.status if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldStatus returns the old "status" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *RiskHistoryMutation) OldStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldStatus 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") + return v, errors.New("OldStatus 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 v, fmt.Errorf("querying old value for OldStatus: %w", err) } - return oldValue.DeletedBy, nil + return oldValue.Status, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *OrganizationHistoryMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[organizationhistory.FieldDeletedBy] = struct{}{} +// ClearStatus clears the value of the "status" field. +func (m *RiskHistoryMutation) ClearStatus() { + m.status = nil + m.clearedFields[riskhistory.FieldStatus] = struct{}{} } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *OrganizationHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[organizationhistory.FieldDeletedBy] +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *RiskHistoryMutation) StatusCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldStatus] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *OrganizationHistoryMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, organizationhistory.FieldDeletedBy) +// ResetStatus resets all changes to the "status" field. +func (m *RiskHistoryMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, riskhistory.FieldStatus) } -// SetName sets the "name" field. -func (m *OrganizationHistoryMutation) SetName(s string) { - m.name = &s +// SetRiskType sets the "risk_type" field. +func (m *RiskHistoryMutation) SetRiskType(s string) { + m.risk_type = &s } -// Name returns the value of the "name" field in the mutation. -func (m *OrganizationHistoryMutation) Name() (r string, exists bool) { - v := m.name +// RiskType returns the value of the "risk_type" field in the mutation. +func (m *RiskHistoryMutation) RiskType() (r string, exists bool) { + v := m.risk_type if v == nil { return } return *v, true } -// OldName returns the old "name" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRiskType returns the old "risk_type" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldName(ctx context.Context) (v string, err error) { +func (m *RiskHistoryMutation) OldRiskType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldName is only allowed on UpdateOne operations") + return v, errors.New("OldRiskType 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") + return v, errors.New("OldRiskType 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 v, fmt.Errorf("querying old value for OldRiskType: %w", err) } - return oldValue.Name, nil + return oldValue.RiskType, nil } -// ResetName resets all changes to the "name" field. -func (m *OrganizationHistoryMutation) ResetName() { - m.name = nil +// ClearRiskType clears the value of the "risk_type" field. +func (m *RiskHistoryMutation) ClearRiskType() { + m.risk_type = nil + m.clearedFields[riskhistory.FieldRiskType] = struct{}{} } -// SetDisplayName sets the "display_name" field. -func (m *OrganizationHistoryMutation) SetDisplayName(s string) { - m.display_name = &s +// RiskTypeCleared returns if the "risk_type" field was cleared in this mutation. +func (m *RiskHistoryMutation) RiskTypeCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldRiskType] + return ok } -// DisplayName returns the value of the "display_name" field in the mutation. -func (m *OrganizationHistoryMutation) DisplayName() (r string, exists bool) { - v := m.display_name +// ResetRiskType resets all changes to the "risk_type" field. +func (m *RiskHistoryMutation) ResetRiskType() { + m.risk_type = nil + delete(m.clearedFields, riskhistory.FieldRiskType) +} + +// SetBusinessCosts sets the "business_costs" field. +func (m *RiskHistoryMutation) SetBusinessCosts(s string) { + m.business_costs = &s +} + +// BusinessCosts returns the value of the "business_costs" field in the mutation. +func (m *RiskHistoryMutation) BusinessCosts() (r string, exists bool) { + v := m.business_costs if v == nil { return } return *v, true } -// OldDisplayName returns the old "display_name" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldBusinessCosts returns the old "business_costs" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldDisplayName(ctx context.Context) (v string, err error) { +func (m *RiskHistoryMutation) OldBusinessCosts(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDisplayName is only allowed on UpdateOne operations") + return v, errors.New("OldBusinessCosts is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDisplayName requires an ID field in the mutation") + return v, errors.New("OldBusinessCosts requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldDisplayName: %w", err) + return v, fmt.Errorf("querying old value for OldBusinessCosts: %w", err) } - return oldValue.DisplayName, nil + return oldValue.BusinessCosts, nil } -// ResetDisplayName resets all changes to the "display_name" field. -func (m *OrganizationHistoryMutation) ResetDisplayName() { - m.display_name = nil +// ClearBusinessCosts clears the value of the "business_costs" field. +func (m *RiskHistoryMutation) ClearBusinessCosts() { + m.business_costs = nil + m.clearedFields[riskhistory.FieldBusinessCosts] = struct{}{} } -// SetDescription sets the "description" field. -func (m *OrganizationHistoryMutation) SetDescription(s string) { - m.description = &s +// BusinessCostsCleared returns if the "business_costs" field was cleared in this mutation. +func (m *RiskHistoryMutation) BusinessCostsCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldBusinessCosts] + return ok } -// Description returns the value of the "description" field in the mutation. -func (m *OrganizationHistoryMutation) Description() (r string, exists bool) { - v := m.description +// ResetBusinessCosts resets all changes to the "business_costs" field. +func (m *RiskHistoryMutation) ResetBusinessCosts() { + m.business_costs = nil + delete(m.clearedFields, riskhistory.FieldBusinessCosts) +} + +// SetImpact sets the "impact" field. +func (m *RiskHistoryMutation) SetImpact(ei enums.RiskImpact) { + m.impact = &ei +} + +// Impact returns the value of the "impact" field in the mutation. +func (m *RiskHistoryMutation) Impact() (r enums.RiskImpact, exists bool) { + v := m.impact if v == nil { return } return *v, true } -// OldDescription returns the old "description" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldImpact returns the old "impact" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { +func (m *RiskHistoryMutation) OldImpact(ctx context.Context) (v enums.RiskImpact, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDescription is only allowed on UpdateOne operations") + return v, errors.New("OldImpact 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") + return v, errors.New("OldImpact 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 v, fmt.Errorf("querying old value for OldImpact: %w", err) } - return oldValue.Description, nil + return oldValue.Impact, nil } -// ClearDescription clears the value of the "description" field. -func (m *OrganizationHistoryMutation) ClearDescription() { - m.description = nil - m.clearedFields[organizationhistory.FieldDescription] = struct{}{} +// ClearImpact clears the value of the "impact" field. +func (m *RiskHistoryMutation) ClearImpact() { + m.impact = nil + m.clearedFields[riskhistory.FieldImpact] = struct{}{} } -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *OrganizationHistoryMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[organizationhistory.FieldDescription] +// ImpactCleared returns if the "impact" field was cleared in this mutation. +func (m *RiskHistoryMutation) ImpactCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldImpact] return ok } -// ResetDescription resets all changes to the "description" field. -func (m *OrganizationHistoryMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, organizationhistory.FieldDescription) +// ResetImpact resets all changes to the "impact" field. +func (m *RiskHistoryMutation) ResetImpact() { + m.impact = nil + delete(m.clearedFields, riskhistory.FieldImpact) } -// SetParentOrganizationID sets the "parent_organization_id" field. -func (m *OrganizationHistoryMutation) SetParentOrganizationID(s string) { - m.parent_organization_id = &s +// SetLikelihood sets the "likelihood" field. +func (m *RiskHistoryMutation) SetLikelihood(el enums.RiskLikelihood) { + m.likelihood = &el } -// ParentOrganizationID returns the value of the "parent_organization_id" field in the mutation. -func (m *OrganizationHistoryMutation) ParentOrganizationID() (r string, exists bool) { - v := m.parent_organization_id +// Likelihood returns the value of the "likelihood" field in the mutation. +func (m *RiskHistoryMutation) Likelihood() (r enums.RiskLikelihood, exists bool) { + v := m.likelihood if v == nil { return } return *v, true } -// OldParentOrganizationID returns the old "parent_organization_id" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldLikelihood returns the old "likelihood" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldParentOrganizationID(ctx context.Context) (v string, err error) { +func (m *RiskHistoryMutation) OldLikelihood(ctx context.Context) (v enums.RiskLikelihood, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldParentOrganizationID is only allowed on UpdateOne operations") + return v, errors.New("OldLikelihood is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldParentOrganizationID requires an ID field in the mutation") + return v, errors.New("OldLikelihood requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldParentOrganizationID: %w", err) + return v, fmt.Errorf("querying old value for OldLikelihood: %w", err) } - return oldValue.ParentOrganizationID, nil + return oldValue.Likelihood, nil } -// ClearParentOrganizationID clears the value of the "parent_organization_id" field. -func (m *OrganizationHistoryMutation) ClearParentOrganizationID() { - m.parent_organization_id = nil - m.clearedFields[organizationhistory.FieldParentOrganizationID] = struct{}{} +// ClearLikelihood clears the value of the "likelihood" field. +func (m *RiskHistoryMutation) ClearLikelihood() { + m.likelihood = nil + m.clearedFields[riskhistory.FieldLikelihood] = struct{}{} } -// ParentOrganizationIDCleared returns if the "parent_organization_id" field was cleared in this mutation. -func (m *OrganizationHistoryMutation) ParentOrganizationIDCleared() bool { - _, ok := m.clearedFields[organizationhistory.FieldParentOrganizationID] +// LikelihoodCleared returns if the "likelihood" field was cleared in this mutation. +func (m *RiskHistoryMutation) LikelihoodCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldLikelihood] return ok } -// ResetParentOrganizationID resets all changes to the "parent_organization_id" field. -func (m *OrganizationHistoryMutation) ResetParentOrganizationID() { - m.parent_organization_id = nil - delete(m.clearedFields, organizationhistory.FieldParentOrganizationID) +// ResetLikelihood resets all changes to the "likelihood" field. +func (m *RiskHistoryMutation) ResetLikelihood() { + m.likelihood = nil + delete(m.clearedFields, riskhistory.FieldLikelihood) } -// SetPersonalOrg sets the "personal_org" field. -func (m *OrganizationHistoryMutation) SetPersonalOrg(b bool) { - m.personal_org = &b +// SetMitigation sets the "mitigation" field. +func (m *RiskHistoryMutation) SetMitigation(s string) { + m.mitigation = &s } -// PersonalOrg returns the value of the "personal_org" field in the mutation. -func (m *OrganizationHistoryMutation) PersonalOrg() (r bool, exists bool) { - v := m.personal_org +// Mitigation returns the value of the "mitigation" field in the mutation. +func (m *RiskHistoryMutation) Mitigation() (r string, exists bool) { + v := m.mitigation if v == nil { return } return *v, true } -// OldPersonalOrg returns the old "personal_org" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMitigation returns the old "mitigation" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldPersonalOrg(ctx context.Context) (v bool, err error) { +func (m *RiskHistoryMutation) OldMitigation(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldPersonalOrg is only allowed on UpdateOne operations") + return v, errors.New("OldMitigation is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldPersonalOrg requires an ID field in the mutation") + return v, errors.New("OldMitigation requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldPersonalOrg: %w", err) + return v, fmt.Errorf("querying old value for OldMitigation: %w", err) } - return oldValue.PersonalOrg, nil + return oldValue.Mitigation, nil } -// ClearPersonalOrg clears the value of the "personal_org" field. -func (m *OrganizationHistoryMutation) ClearPersonalOrg() { - m.personal_org = nil - m.clearedFields[organizationhistory.FieldPersonalOrg] = struct{}{} +// ClearMitigation clears the value of the "mitigation" field. +func (m *RiskHistoryMutation) ClearMitigation() { + m.mitigation = nil + m.clearedFields[riskhistory.FieldMitigation] = struct{}{} } -// PersonalOrgCleared returns if the "personal_org" field was cleared in this mutation. -func (m *OrganizationHistoryMutation) PersonalOrgCleared() bool { - _, ok := m.clearedFields[organizationhistory.FieldPersonalOrg] +// MitigationCleared returns if the "mitigation" field was cleared in this mutation. +func (m *RiskHistoryMutation) MitigationCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldMitigation] return ok } -// ResetPersonalOrg resets all changes to the "personal_org" field. -func (m *OrganizationHistoryMutation) ResetPersonalOrg() { - m.personal_org = nil - delete(m.clearedFields, organizationhistory.FieldPersonalOrg) +// ResetMitigation resets all changes to the "mitigation" field. +func (m *RiskHistoryMutation) ResetMitigation() { + m.mitigation = nil + delete(m.clearedFields, riskhistory.FieldMitigation) } -// SetAvatarRemoteURL sets the "avatar_remote_url" field. -func (m *OrganizationHistoryMutation) SetAvatarRemoteURL(s string) { - m.avatar_remote_url = &s +// SetSatisfies sets the "satisfies" field. +func (m *RiskHistoryMutation) SetSatisfies(s string) { + m.satisfies = &s } -// AvatarRemoteURL returns the value of the "avatar_remote_url" field in the mutation. -func (m *OrganizationHistoryMutation) AvatarRemoteURL() (r string, exists bool) { - v := m.avatar_remote_url +// Satisfies returns the value of the "satisfies" field in the mutation. +func (m *RiskHistoryMutation) Satisfies() (r string, exists bool) { + v := m.satisfies if v == nil { return } return *v, true } -// OldAvatarRemoteURL returns the old "avatar_remote_url" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldSatisfies returns the old "satisfies" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldAvatarRemoteURL(ctx context.Context) (v *string, err error) { +func (m *RiskHistoryMutation) OldSatisfies(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldAvatarRemoteURL is only allowed on UpdateOne operations") + return v, errors.New("OldSatisfies is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldAvatarRemoteURL requires an ID field in the mutation") + return v, errors.New("OldSatisfies requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldAvatarRemoteURL: %w", err) + return v, fmt.Errorf("querying old value for OldSatisfies: %w", err) } - return oldValue.AvatarRemoteURL, nil + return oldValue.Satisfies, nil } -// ClearAvatarRemoteURL clears the value of the "avatar_remote_url" field. -func (m *OrganizationHistoryMutation) ClearAvatarRemoteURL() { - m.avatar_remote_url = nil - m.clearedFields[organizationhistory.FieldAvatarRemoteURL] = struct{}{} +// ClearSatisfies clears the value of the "satisfies" field. +func (m *RiskHistoryMutation) ClearSatisfies() { + m.satisfies = nil + m.clearedFields[riskhistory.FieldSatisfies] = struct{}{} } -// AvatarRemoteURLCleared returns if the "avatar_remote_url" field was cleared in this mutation. -func (m *OrganizationHistoryMutation) AvatarRemoteURLCleared() bool { - _, ok := m.clearedFields[organizationhistory.FieldAvatarRemoteURL] +// SatisfiesCleared returns if the "satisfies" field was cleared in this mutation. +func (m *RiskHistoryMutation) SatisfiesCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldSatisfies] return ok } -// ResetAvatarRemoteURL resets all changes to the "avatar_remote_url" field. -func (m *OrganizationHistoryMutation) ResetAvatarRemoteURL() { - m.avatar_remote_url = nil - delete(m.clearedFields, organizationhistory.FieldAvatarRemoteURL) +// ResetSatisfies resets all changes to the "satisfies" field. +func (m *RiskHistoryMutation) ResetSatisfies() { + m.satisfies = nil + delete(m.clearedFields, riskhistory.FieldSatisfies) } -// SetDedicatedDb sets the "dedicated_db" field. -func (m *OrganizationHistoryMutation) SetDedicatedDb(b bool) { - m.dedicated_db = &b +// SetDetails sets the "details" field. +func (m *RiskHistoryMutation) SetDetails(value map[string]interface{}) { + m.details = &value } -// DedicatedDb returns the value of the "dedicated_db" field in the mutation. -func (m *OrganizationHistoryMutation) DedicatedDb() (r bool, exists bool) { - v := m.dedicated_db +// Details returns the value of the "details" field in the mutation. +func (m *RiskHistoryMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details if v == nil { return } return *v, true } -// OldDedicatedDb returns the old "dedicated_db" field's value of the OrganizationHistory entity. -// If the OrganizationHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDetails returns the old "details" field's value of the RiskHistory entity. +// If the RiskHistory 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 *OrganizationHistoryMutation) OldDedicatedDb(ctx context.Context) (v bool, err error) { +func (m *RiskHistoryMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDedicatedDb is only allowed on UpdateOne operations") + return v, errors.New("OldDetails is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDedicatedDb requires an ID field in the mutation") + return v, errors.New("OldDetails requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldDedicatedDb: %w", err) + return v, fmt.Errorf("querying old value for OldDetails: %w", err) } - return oldValue.DedicatedDb, nil + return oldValue.Details, nil } -// ResetDedicatedDb resets all changes to the "dedicated_db" field. -func (m *OrganizationHistoryMutation) ResetDedicatedDb() { - m.dedicated_db = nil +// ClearDetails clears the value of the "details" field. +func (m *RiskHistoryMutation) ClearDetails() { + m.details = nil + m.clearedFields[riskhistory.FieldDetails] = struct{}{} } -// Where appends a list predicates to the OrganizationHistoryMutation builder. -func (m *OrganizationHistoryMutation) Where(ps ...predicate.OrganizationHistory) { +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *RiskHistoryMutation) DetailsCleared() bool { + _, ok := m.clearedFields[riskhistory.FieldDetails] + return ok +} + +// ResetDetails resets all changes to the "details" field. +func (m *RiskHistoryMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, riskhistory.FieldDetails) +} + +// Where appends a list predicates to the RiskHistoryMutation builder. +func (m *RiskHistoryMutation) Where(ps ...predicate.RiskHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the OrganizationHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the RiskHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *OrganizationHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.OrganizationHistory, len(ps)) +func (m *RiskHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.RiskHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -63016,78 +93717,87 @@ func (m *OrganizationHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *OrganizationHistoryMutation) Op() Op { +func (m *RiskHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *OrganizationHistoryMutation) SetOp(op Op) { +func (m *RiskHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (OrganizationHistory). -func (m *OrganizationHistoryMutation) Type() string { +// Type returns the node type of this mutation (RiskHistory). +func (m *RiskHistoryMutation) 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 *OrganizationHistoryMutation) Fields() []string { - fields := make([]string, 0, 18) +func (m *RiskHistoryMutation) Fields() []string { + fields := make([]string, 0, 21) if m.history_time != nil { - fields = append(fields, organizationhistory.FieldHistoryTime) + fields = append(fields, riskhistory.FieldHistoryTime) } if m.ref != nil { - fields = append(fields, organizationhistory.FieldRef) + fields = append(fields, riskhistory.FieldRef) } if m.operation != nil { - fields = append(fields, organizationhistory.FieldOperation) + fields = append(fields, riskhistory.FieldOperation) } if m.created_at != nil { - fields = append(fields, organizationhistory.FieldCreatedAt) + fields = append(fields, riskhistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, organizationhistory.FieldUpdatedAt) + fields = append(fields, riskhistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, organizationhistory.FieldCreatedBy) + fields = append(fields, riskhistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, organizationhistory.FieldUpdatedBy) + fields = append(fields, riskhistory.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, riskhistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, riskhistory.FieldDeletedBy) } if m.mapping_id != nil { - fields = append(fields, organizationhistory.FieldMappingID) + fields = append(fields, riskhistory.FieldMappingID) } if m.tags != nil { - fields = append(fields, organizationhistory.FieldTags) + fields = append(fields, riskhistory.FieldTags) } - if m.deleted_at != nil { - fields = append(fields, organizationhistory.FieldDeletedAt) + if m.name != nil { + fields = append(fields, riskhistory.FieldName) } - if m.deleted_by != nil { - fields = append(fields, organizationhistory.FieldDeletedBy) + if m.description != nil { + fields = append(fields, riskhistory.FieldDescription) } - if m.name != nil { - fields = append(fields, organizationhistory.FieldName) + if m.status != nil { + fields = append(fields, riskhistory.FieldStatus) } - if m.display_name != nil { - fields = append(fields, organizationhistory.FieldDisplayName) + if m.risk_type != nil { + fields = append(fields, riskhistory.FieldRiskType) + } + if m.business_costs != nil { + fields = append(fields, riskhistory.FieldBusinessCosts) } - if m.description != nil { - fields = append(fields, organizationhistory.FieldDescription) + if m.impact != nil { + fields = append(fields, riskhistory.FieldImpact) } - if m.parent_organization_id != nil { - fields = append(fields, organizationhistory.FieldParentOrganizationID) + if m.likelihood != nil { + fields = append(fields, riskhistory.FieldLikelihood) } - if m.personal_org != nil { - fields = append(fields, organizationhistory.FieldPersonalOrg) + if m.mitigation != nil { + fields = append(fields, riskhistory.FieldMitigation) } - if m.avatar_remote_url != nil { - fields = append(fields, organizationhistory.FieldAvatarRemoteURL) + if m.satisfies != nil { + fields = append(fields, riskhistory.FieldSatisfies) } - if m.dedicated_db != nil { - fields = append(fields, organizationhistory.FieldDedicatedDb) + if m.details != nil { + fields = append(fields, riskhistory.FieldDetails) } return fields } @@ -63095,44 +93805,50 @@ func (m *OrganizationHistoryMutation) Fields() []string { // 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 *OrganizationHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *RiskHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case organizationhistory.FieldHistoryTime: + case riskhistory.FieldHistoryTime: return m.HistoryTime() - case organizationhistory.FieldRef: + case riskhistory.FieldRef: return m.Ref() - case organizationhistory.FieldOperation: + case riskhistory.FieldOperation: return m.Operation() - case organizationhistory.FieldCreatedAt: + case riskhistory.FieldCreatedAt: return m.CreatedAt() - case organizationhistory.FieldUpdatedAt: + case riskhistory.FieldUpdatedAt: return m.UpdatedAt() - case organizationhistory.FieldCreatedBy: + case riskhistory.FieldCreatedBy: return m.CreatedBy() - case organizationhistory.FieldUpdatedBy: + case riskhistory.FieldUpdatedBy: return m.UpdatedBy() - case organizationhistory.FieldMappingID: - return m.MappingID() - case organizationhistory.FieldTags: - return m.Tags() - case organizationhistory.FieldDeletedAt: + case riskhistory.FieldDeletedAt: return m.DeletedAt() - case organizationhistory.FieldDeletedBy: + case riskhistory.FieldDeletedBy: return m.DeletedBy() - case organizationhistory.FieldName: + case riskhistory.FieldMappingID: + return m.MappingID() + case riskhistory.FieldTags: + return m.Tags() + case riskhistory.FieldName: return m.Name() - case organizationhistory.FieldDisplayName: - return m.DisplayName() - case organizationhistory.FieldDescription: + case riskhistory.FieldDescription: return m.Description() - case organizationhistory.FieldParentOrganizationID: - return m.ParentOrganizationID() - case organizationhistory.FieldPersonalOrg: - return m.PersonalOrg() - case organizationhistory.FieldAvatarRemoteURL: - return m.AvatarRemoteURL() - case organizationhistory.FieldDedicatedDb: - return m.DedicatedDb() + case riskhistory.FieldStatus: + return m.Status() + case riskhistory.FieldRiskType: + return m.RiskType() + case riskhistory.FieldBusinessCosts: + return m.BusinessCosts() + case riskhistory.FieldImpact: + return m.Impact() + case riskhistory.FieldLikelihood: + return m.Likelihood() + case riskhistory.FieldMitigation: + return m.Mitigation() + case riskhistory.FieldSatisfies: + return m.Satisfies() + case riskhistory.FieldDetails: + return m.Details() } return nil, false } @@ -63140,454 +93856,529 @@ func (m *OrganizationHistoryMutation) Field(name string) (ent.Value, bool) { // 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 *OrganizationHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *RiskHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case organizationhistory.FieldHistoryTime: + case riskhistory.FieldHistoryTime: return m.OldHistoryTime(ctx) - case organizationhistory.FieldRef: + case riskhistory.FieldRef: return m.OldRef(ctx) - case organizationhistory.FieldOperation: + case riskhistory.FieldOperation: return m.OldOperation(ctx) - case organizationhistory.FieldCreatedAt: + case riskhistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case organizationhistory.FieldUpdatedAt: + case riskhistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case organizationhistory.FieldCreatedBy: + case riskhistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case organizationhistory.FieldUpdatedBy: + case riskhistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case organizationhistory.FieldMappingID: - return m.OldMappingID(ctx) - case organizationhistory.FieldTags: - return m.OldTags(ctx) - case organizationhistory.FieldDeletedAt: + case riskhistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case organizationhistory.FieldDeletedBy: + case riskhistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case organizationhistory.FieldName: + case riskhistory.FieldMappingID: + return m.OldMappingID(ctx) + case riskhistory.FieldTags: + return m.OldTags(ctx) + case riskhistory.FieldName: return m.OldName(ctx) - case organizationhistory.FieldDisplayName: - return m.OldDisplayName(ctx) - case organizationhistory.FieldDescription: + case riskhistory.FieldDescription: return m.OldDescription(ctx) - case organizationhistory.FieldParentOrganizationID: - return m.OldParentOrganizationID(ctx) - case organizationhistory.FieldPersonalOrg: - return m.OldPersonalOrg(ctx) - case organizationhistory.FieldAvatarRemoteURL: - return m.OldAvatarRemoteURL(ctx) - case organizationhistory.FieldDedicatedDb: - return m.OldDedicatedDb(ctx) - } - return nil, fmt.Errorf("unknown OrganizationHistory field %s", name) + case riskhistory.FieldStatus: + return m.OldStatus(ctx) + case riskhistory.FieldRiskType: + return m.OldRiskType(ctx) + case riskhistory.FieldBusinessCosts: + return m.OldBusinessCosts(ctx) + case riskhistory.FieldImpact: + return m.OldImpact(ctx) + case riskhistory.FieldLikelihood: + return m.OldLikelihood(ctx) + case riskhistory.FieldMitigation: + return m.OldMitigation(ctx) + case riskhistory.FieldSatisfies: + return m.OldSatisfies(ctx) + case riskhistory.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown RiskHistory 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 *OrganizationHistoryMutation) SetField(name string, value ent.Value) error { +func (m *RiskHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case organizationhistory.FieldHistoryTime: + case riskhistory.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 organizationhistory.FieldRef: + case riskhistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetRef(v) return nil - case organizationhistory.FieldOperation: + case riskhistory.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 organizationhistory.FieldCreatedAt: + case riskhistory.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 organizationhistory.FieldUpdatedAt: + case riskhistory.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 organizationhistory.FieldCreatedBy: + case riskhistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case organizationhistory.FieldUpdatedBy: + case riskhistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case organizationhistory.FieldMappingID: + case riskhistory.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 riskhistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case riskhistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case organizationhistory.FieldTags: + case riskhistory.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case organizationhistory.FieldDeletedAt: - v, ok := value.(time.Time) + case riskhistory.FieldName: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetName(v) return nil - case organizationhistory.FieldDeletedBy: + case riskhistory.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetDescription(v) return nil - case organizationhistory.FieldName: + case riskhistory.FieldStatus: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetName(v) + m.SetStatus(v) return nil - case organizationhistory.FieldDisplayName: + case riskhistory.FieldRiskType: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDisplayName(v) + m.SetRiskType(v) return nil - case organizationhistory.FieldDescription: + case riskhistory.FieldBusinessCosts: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetBusinessCosts(v) return nil - case organizationhistory.FieldParentOrganizationID: - v, ok := value.(string) + case riskhistory.FieldImpact: + v, ok := value.(enums.RiskImpact) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetParentOrganizationID(v) + m.SetImpact(v) return nil - case organizationhistory.FieldPersonalOrg: - v, ok := value.(bool) + case riskhistory.FieldLikelihood: + v, ok := value.(enums.RiskLikelihood) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetPersonalOrg(v) + m.SetLikelihood(v) return nil - case organizationhistory.FieldAvatarRemoteURL: + case riskhistory.FieldMitigation: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetAvatarRemoteURL(v) + m.SetMitigation(v) return nil - case organizationhistory.FieldDedicatedDb: - v, ok := value.(bool) + case riskhistory.FieldSatisfies: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDedicatedDb(v) + m.SetSatisfies(v) + return nil + case riskhistory.FieldDetails: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDetails(v) return nil } - return fmt.Errorf("unknown OrganizationHistory field %s", name) + return fmt.Errorf("unknown RiskHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *OrganizationHistoryMutation) AddedFields() []string { +func (m *RiskHistoryMutation) 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 *OrganizationHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *RiskHistoryMutation) 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 *OrganizationHistoryMutation) AddField(name string, value ent.Value) error { +func (m *RiskHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown OrganizationHistory numeric field %s", name) + return fmt.Errorf("unknown RiskHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *OrganizationHistoryMutation) ClearedFields() []string { +func (m *RiskHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(organizationhistory.FieldRef) { - fields = append(fields, organizationhistory.FieldRef) + if m.FieldCleared(riskhistory.FieldRef) { + fields = append(fields, riskhistory.FieldRef) } - if m.FieldCleared(organizationhistory.FieldCreatedAt) { - fields = append(fields, organizationhistory.FieldCreatedAt) + if m.FieldCleared(riskhistory.FieldCreatedAt) { + fields = append(fields, riskhistory.FieldCreatedAt) } - if m.FieldCleared(organizationhistory.FieldUpdatedAt) { - fields = append(fields, organizationhistory.FieldUpdatedAt) + if m.FieldCleared(riskhistory.FieldUpdatedAt) { + fields = append(fields, riskhistory.FieldUpdatedAt) } - if m.FieldCleared(organizationhistory.FieldCreatedBy) { - fields = append(fields, organizationhistory.FieldCreatedBy) + if m.FieldCleared(riskhistory.FieldCreatedBy) { + fields = append(fields, riskhistory.FieldCreatedBy) } - if m.FieldCleared(organizationhistory.FieldUpdatedBy) { - fields = append(fields, organizationhistory.FieldUpdatedBy) + if m.FieldCleared(riskhistory.FieldUpdatedBy) { + fields = append(fields, riskhistory.FieldUpdatedBy) } - if m.FieldCleared(organizationhistory.FieldTags) { - fields = append(fields, organizationhistory.FieldTags) + if m.FieldCleared(riskhistory.FieldDeletedAt) { + fields = append(fields, riskhistory.FieldDeletedAt) } - if m.FieldCleared(organizationhistory.FieldDeletedAt) { - fields = append(fields, organizationhistory.FieldDeletedAt) + if m.FieldCleared(riskhistory.FieldDeletedBy) { + fields = append(fields, riskhistory.FieldDeletedBy) } - if m.FieldCleared(organizationhistory.FieldDeletedBy) { - fields = append(fields, organizationhistory.FieldDeletedBy) + if m.FieldCleared(riskhistory.FieldTags) { + fields = append(fields, riskhistory.FieldTags) } - if m.FieldCleared(organizationhistory.FieldDescription) { - fields = append(fields, organizationhistory.FieldDescription) + if m.FieldCleared(riskhistory.FieldDescription) { + fields = append(fields, riskhistory.FieldDescription) } - if m.FieldCleared(organizationhistory.FieldParentOrganizationID) { - fields = append(fields, organizationhistory.FieldParentOrganizationID) + if m.FieldCleared(riskhistory.FieldStatus) { + fields = append(fields, riskhistory.FieldStatus) } - if m.FieldCleared(organizationhistory.FieldPersonalOrg) { - fields = append(fields, organizationhistory.FieldPersonalOrg) + if m.FieldCleared(riskhistory.FieldRiskType) { + fields = append(fields, riskhistory.FieldRiskType) } - if m.FieldCleared(organizationhistory.FieldAvatarRemoteURL) { - fields = append(fields, organizationhistory.FieldAvatarRemoteURL) + if m.FieldCleared(riskhistory.FieldBusinessCosts) { + fields = append(fields, riskhistory.FieldBusinessCosts) + } + if m.FieldCleared(riskhistory.FieldImpact) { + fields = append(fields, riskhistory.FieldImpact) + } + if m.FieldCleared(riskhistory.FieldLikelihood) { + fields = append(fields, riskhistory.FieldLikelihood) + } + if m.FieldCleared(riskhistory.FieldMitigation) { + fields = append(fields, riskhistory.FieldMitigation) + } + if m.FieldCleared(riskhistory.FieldSatisfies) { + fields = append(fields, riskhistory.FieldSatisfies) + } + if m.FieldCleared(riskhistory.FieldDetails) { + fields = append(fields, riskhistory.FieldDetails) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *OrganizationHistoryMutation) FieldCleared(name string) bool { +func (m *RiskHistoryMutation) 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 *OrganizationHistoryMutation) ClearField(name string) error { +func (m *RiskHistoryMutation) ClearField(name string) error { switch name { - case organizationhistory.FieldRef: + case riskhistory.FieldRef: m.ClearRef() return nil - case organizationhistory.FieldCreatedAt: + case riskhistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case organizationhistory.FieldUpdatedAt: + case riskhistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case organizationhistory.FieldCreatedBy: + case riskhistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case organizationhistory.FieldUpdatedBy: + case riskhistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case organizationhistory.FieldTags: - m.ClearTags() - return nil - case organizationhistory.FieldDeletedAt: + case riskhistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case organizationhistory.FieldDeletedBy: + case riskhistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case organizationhistory.FieldDescription: + case riskhistory.FieldTags: + m.ClearTags() + return nil + case riskhistory.FieldDescription: m.ClearDescription() return nil - case organizationhistory.FieldParentOrganizationID: - m.ClearParentOrganizationID() + case riskhistory.FieldStatus: + m.ClearStatus() return nil - case organizationhistory.FieldPersonalOrg: - m.ClearPersonalOrg() + case riskhistory.FieldRiskType: + m.ClearRiskType() return nil - case organizationhistory.FieldAvatarRemoteURL: - m.ClearAvatarRemoteURL() + case riskhistory.FieldBusinessCosts: + m.ClearBusinessCosts() + return nil + case riskhistory.FieldImpact: + m.ClearImpact() + return nil + case riskhistory.FieldLikelihood: + m.ClearLikelihood() + return nil + case riskhistory.FieldMitigation: + m.ClearMitigation() + return nil + case riskhistory.FieldSatisfies: + m.ClearSatisfies() + return nil + case riskhistory.FieldDetails: + m.ClearDetails() return nil } - return fmt.Errorf("unknown OrganizationHistory nullable field %s", name) + return fmt.Errorf("unknown RiskHistory 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 *OrganizationHistoryMutation) ResetField(name string) error { +func (m *RiskHistoryMutation) ResetField(name string) error { switch name { - case organizationhistory.FieldHistoryTime: + case riskhistory.FieldHistoryTime: m.ResetHistoryTime() return nil - case organizationhistory.FieldRef: + case riskhistory.FieldRef: m.ResetRef() return nil - case organizationhistory.FieldOperation: + case riskhistory.FieldOperation: m.ResetOperation() return nil - case organizationhistory.FieldCreatedAt: + case riskhistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case organizationhistory.FieldUpdatedAt: + case riskhistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case organizationhistory.FieldCreatedBy: + case riskhistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case organizationhistory.FieldUpdatedBy: + case riskhistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case organizationhistory.FieldMappingID: + case riskhistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case riskhistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case riskhistory.FieldMappingID: m.ResetMappingID() return nil - case organizationhistory.FieldTags: + case riskhistory.FieldTags: m.ResetTags() return nil - case organizationhistory.FieldDeletedAt: - m.ResetDeletedAt() + case riskhistory.FieldName: + m.ResetName() return nil - case organizationhistory.FieldDeletedBy: - m.ResetDeletedBy() + case riskhistory.FieldDescription: + m.ResetDescription() return nil - case organizationhistory.FieldName: - m.ResetName() + case riskhistory.FieldStatus: + m.ResetStatus() return nil - case organizationhistory.FieldDisplayName: - m.ResetDisplayName() + case riskhistory.FieldRiskType: + m.ResetRiskType() return nil - case organizationhistory.FieldDescription: - m.ResetDescription() + case riskhistory.FieldBusinessCosts: + m.ResetBusinessCosts() return nil - case organizationhistory.FieldParentOrganizationID: - m.ResetParentOrganizationID() + case riskhistory.FieldImpact: + m.ResetImpact() return nil - case organizationhistory.FieldPersonalOrg: - m.ResetPersonalOrg() + case riskhistory.FieldLikelihood: + m.ResetLikelihood() return nil - case organizationhistory.FieldAvatarRemoteURL: - m.ResetAvatarRemoteURL() + case riskhistory.FieldMitigation: + m.ResetMitigation() return nil - case organizationhistory.FieldDedicatedDb: - m.ResetDedicatedDb() + case riskhistory.FieldSatisfies: + m.ResetSatisfies() + return nil + case riskhistory.FieldDetails: + m.ResetDetails() return nil } - return fmt.Errorf("unknown OrganizationHistory field %s", name) + return fmt.Errorf("unknown RiskHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *OrganizationHistoryMutation) AddedEdges() []string { +func (m *RiskHistoryMutation) 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 *OrganizationHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *RiskHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *OrganizationHistoryMutation) RemovedEdges() []string { +func (m *RiskHistoryMutation) 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 *OrganizationHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *RiskHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *OrganizationHistoryMutation) ClearedEdges() []string { +func (m *RiskHistoryMutation) 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 *OrganizationHistoryMutation) EdgeCleared(name string) bool { +func (m *RiskHistoryMutation) 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 *OrganizationHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown OrganizationHistory unique edge %s", name) +func (m *RiskHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown RiskHistory 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 *OrganizationHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown OrganizationHistory edge %s", name) +func (m *RiskHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown RiskHistory edge %s", name) } -// OrganizationSettingMutation represents an operation that mutates the OrganizationSetting nodes in the graph. -type OrganizationSettingMutation struct { +// StandardMutation represents an operation that mutates the Standard nodes in the graph. +type StandardMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - tags *[]string - appendtags []string - deleted_at *time.Time - deleted_by *string - domains *[]string - appenddomains []string - billing_contact *string - billing_email *string - billing_phone *string - billing_address *string - tax_identifier *string - geo_location *enums.Region - clearedFields map[string]struct{} - organization *string - clearedorganization bool - files map[string]struct{} - removedfiles map[string]struct{} - clearedfiles bool - done bool - oldValue func(context.Context) (*OrganizationSetting, error) - predicates []predicate.OrganizationSetting + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + family *string + status *string + standard_type *string + version *string + purpose_and_scope *string + background *string + satisfies *string + details *map[string]interface{} + clearedFields map[string]struct{} + controlobjectives map[string]struct{} + removedcontrolobjectives map[string]struct{} + clearedcontrolobjectives bool + controls map[string]struct{} + removedcontrols map[string]struct{} + clearedcontrols bool + procedures map[string]struct{} + removedprocedures map[string]struct{} + clearedprocedures bool + actionplans map[string]struct{} + removedactionplans map[string]struct{} + clearedactionplans bool + done bool + oldValue func(context.Context) (*Standard, error) + predicates []predicate.Standard } -var _ ent.Mutation = (*OrganizationSettingMutation)(nil) +var _ ent.Mutation = (*StandardMutation)(nil) -// organizationsettingOption allows management of the mutation configuration using functional options. -type organizationsettingOption func(*OrganizationSettingMutation) +// standardOption allows management of the mutation configuration using functional options. +type standardOption func(*StandardMutation) -// newOrganizationSettingMutation creates new mutation for the OrganizationSetting entity. -func newOrganizationSettingMutation(c config, op Op, opts ...organizationsettingOption) *OrganizationSettingMutation { - m := &OrganizationSettingMutation{ +// newStandardMutation creates new mutation for the Standard entity. +func newStandardMutation(c config, op Op, opts ...standardOption) *StandardMutation { + m := &StandardMutation{ config: c, op: op, - typ: TypeOrganizationSetting, + typ: TypeStandard, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -63596,20 +94387,20 @@ func newOrganizationSettingMutation(c config, op Op, opts ...organizationsetting return m } -// withOrganizationSettingID sets the ID field of the mutation. -func withOrganizationSettingID(id string) organizationsettingOption { - return func(m *OrganizationSettingMutation) { +// withStandardID sets the ID field of the mutation. +func withStandardID(id string) standardOption { + return func(m *StandardMutation) { var ( err error once sync.Once - value *OrganizationSetting + value *Standard ) - m.oldValue = func(ctx context.Context) (*OrganizationSetting, error) { + m.oldValue = func(ctx context.Context) (*Standard, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().OrganizationSetting.Get(ctx, id) + value, err = m.Client().Standard.Get(ctx, id) } }) return value, err @@ -63618,10 +94409,10 @@ func withOrganizationSettingID(id string) organizationsettingOption { } } -// withOrganizationSetting sets the old OrganizationSetting of the mutation. -func withOrganizationSetting(node *OrganizationSetting) organizationsettingOption { - return func(m *OrganizationSettingMutation) { - m.oldValue = func(context.Context) (*OrganizationSetting, error) { +// withStandard sets the old Standard of the mutation. +func withStandard(node *Standard) standardOption { + return func(m *StandardMutation) { + m.oldValue = func(context.Context) (*Standard, error) { return node, nil } m.id = &node.ID @@ -63630,7 +94421,7 @@ func withOrganizationSetting(node *OrganizationSetting) organizationsettingOptio // 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 OrganizationSettingMutation) Client() *Client { +func (m StandardMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -63638,7 +94429,7 @@ func (m OrganizationSettingMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m OrganizationSettingMutation) Tx() (*Tx, error) { +func (m StandardMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -63648,14 +94439,14 @@ func (m OrganizationSettingMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of OrganizationSetting entities. -func (m *OrganizationSettingMutation) SetID(id string) { +// operation is only accepted on creation of Standard entities. +func (m *StandardMutation) 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 *OrganizationSettingMutation) ID() (id string, exists bool) { +func (m *StandardMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -63666,7 +94457,7 @@ func (m *OrganizationSettingMutation) ID() (id string, exists bool) { // 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 *OrganizationSettingMutation) IDs(ctx context.Context) ([]string, error) { +func (m *StandardMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -63675,19 +94466,19 @@ func (m *OrganizationSettingMutation) IDs(ctx context.Context) ([]string, error) } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().OrganizationSetting.Query().Where(m.predicates...).IDs(ctx) + return m.Client().Standard.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 *OrganizationSettingMutation) SetCreatedAt(t time.Time) { +func (m *StandardMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *OrganizationSettingMutation) CreatedAt() (r time.Time, exists bool) { +func (m *StandardMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -63695,10 +94486,10 @@ func (m *OrganizationSettingMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *StandardMutation) 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") } @@ -63713,30 +94504,30 @@ func (m *OrganizationSettingMutation) OldCreatedAt(ctx context.Context) (v time. } // ClearCreatedAt clears the value of the "created_at" field. -func (m *OrganizationSettingMutation) ClearCreatedAt() { +func (m *StandardMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[organizationsetting.FieldCreatedAt] = struct{}{} + m.clearedFields[standard.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *OrganizationSettingMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldCreatedAt] +func (m *StandardMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[standard.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *OrganizationSettingMutation) ResetCreatedAt() { +func (m *StandardMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, organizationsetting.FieldCreatedAt) + delete(m.clearedFields, standard.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *OrganizationSettingMutation) SetUpdatedAt(t time.Time) { +func (m *StandardMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *OrganizationSettingMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *StandardMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -63744,10 +94535,10 @@ func (m *OrganizationSettingMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *StandardMutation) 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") } @@ -63762,30 +94553,30 @@ func (m *OrganizationSettingMutation) OldUpdatedAt(ctx context.Context) (v time. } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *OrganizationSettingMutation) ClearUpdatedAt() { +func (m *StandardMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[organizationsetting.FieldUpdatedAt] = struct{}{} + m.clearedFields[standard.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *OrganizationSettingMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldUpdatedAt] +func (m *StandardMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[standard.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *OrganizationSettingMutation) ResetUpdatedAt() { +func (m *StandardMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, organizationsetting.FieldUpdatedAt) + delete(m.clearedFields, standard.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *OrganizationSettingMutation) SetCreatedBy(s string) { +func (m *StandardMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *OrganizationSettingMutation) CreatedBy() (r string, exists bool) { +func (m *StandardMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -63793,10 +94584,10 @@ func (m *OrganizationSettingMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *StandardMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -63811,30 +94602,30 @@ func (m *OrganizationSettingMutation) OldCreatedBy(ctx context.Context) (v strin } // ClearCreatedBy clears the value of the "created_by" field. -func (m *OrganizationSettingMutation) ClearCreatedBy() { +func (m *StandardMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[organizationsetting.FieldCreatedBy] = struct{}{} + m.clearedFields[standard.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *OrganizationSettingMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldCreatedBy] +func (m *StandardMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[standard.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *OrganizationSettingMutation) ResetCreatedBy() { +func (m *StandardMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, organizationsetting.FieldCreatedBy) + delete(m.clearedFields, standard.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *OrganizationSettingMutation) SetUpdatedBy(s string) { +func (m *StandardMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *OrganizationSettingMutation) UpdatedBy() (r string, exists bool) { +func (m *StandardMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -63842,10 +94633,10 @@ func (m *OrganizationSettingMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *StandardMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -63860,30 +94651,128 @@ func (m *OrganizationSettingMutation) OldUpdatedBy(ctx context.Context) (v strin } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *OrganizationSettingMutation) ClearUpdatedBy() { +func (m *StandardMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[organizationsetting.FieldUpdatedBy] = struct{}{} + m.clearedFields[standard.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *OrganizationSettingMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldUpdatedBy] +func (m *StandardMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[standard.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *OrganizationSettingMutation) ResetUpdatedBy() { +func (m *StandardMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, organizationsetting.FieldUpdatedBy) + delete(m.clearedFields, standard.FieldUpdatedBy) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *StandardMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *StandardMutation) 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 Standard entity. +// If the Standard 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 *StandardMutation) 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 *StandardMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[standard.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *StandardMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[standard.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *StandardMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, standard.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *StandardMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *StandardMutation) 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 Standard entity. +// If the Standard 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 *StandardMutation) 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 *StandardMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[standard.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *StandardMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[standard.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *StandardMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, standard.FieldDeletedBy) } // SetMappingID sets the "mapping_id" field. -func (m *OrganizationSettingMutation) SetMappingID(s string) { +func (m *StandardMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *OrganizationSettingMutation) MappingID() (r string, exists bool) { +func (m *StandardMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -63891,10 +94780,10 @@ func (m *OrganizationSettingMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *StandardMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -63909,18 +94798,18 @@ func (m *OrganizationSettingMutation) OldMappingID(ctx context.Context) (v strin } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *OrganizationSettingMutation) ResetMappingID() { +func (m *StandardMutation) ResetMappingID() { m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *OrganizationSettingMutation) SetTags(s []string) { +func (m *StandardMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *OrganizationSettingMutation) Tags() (r []string, exists bool) { +func (m *StandardMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -63928,10 +94817,10 @@ func (m *OrganizationSettingMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *StandardMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -63946,12 +94835,12 @@ func (m *OrganizationSettingMutation) OldTags(ctx context.Context) (v []string, } // AppendTags adds s to the "tags" field. -func (m *OrganizationSettingMutation) AppendTags(s []string) { +func (m *StandardMutation) 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 *OrganizationSettingMutation) AppendedTags() ([]string, bool) { +func (m *StandardMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -63959,621 +94848,727 @@ func (m *OrganizationSettingMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *OrganizationSettingMutation) ClearTags() { +func (m *StandardMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[organizationsetting.FieldTags] = struct{}{} + m.clearedFields[standard.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *OrganizationSettingMutation) TagsCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldTags] +func (m *StandardMutation) TagsCleared() bool { + _, ok := m.clearedFields[standard.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *OrganizationSettingMutation) ResetTags() { +func (m *StandardMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, organizationsetting.FieldTags) + delete(m.clearedFields, standard.FieldTags) } -// SetDeletedAt sets the "deleted_at" field. -func (m *OrganizationSettingMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetName sets the "name" field. +func (m *StandardMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *StandardMutation) 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 Standard entity. +// If the Standard 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 *StandardMutation) 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 *StandardMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *StandardMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *StandardMutation) 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 Standard entity. +// If the Standard 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 *StandardMutation) 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 *StandardMutation) ClearDescription() { + m.description = nil + m.clearedFields[standard.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *StandardMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[standard.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *StandardMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, standard.FieldDescription) +} + +// SetFamily sets the "family" field. +func (m *StandardMutation) SetFamily(s string) { + m.family = &s } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *OrganizationSettingMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// Family returns the value of the "family" field in the mutation. +func (m *StandardMutation) Family() (r string, exists bool) { + v := m.family if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldFamily returns the old "family" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *StandardMutation) OldFamily(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldFamily 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") + return v, errors.New("OldFamily 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 v, fmt.Errorf("querying old value for OldFamily: %w", err) } - return oldValue.DeletedAt, nil + return oldValue.Family, nil } -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *OrganizationSettingMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[organizationsetting.FieldDeletedAt] = struct{}{} +// ClearFamily clears the value of the "family" field. +func (m *StandardMutation) ClearFamily() { + m.family = nil + m.clearedFields[standard.FieldFamily] = struct{}{} } -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *OrganizationSettingMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldDeletedAt] +// FamilyCleared returns if the "family" field was cleared in this mutation. +func (m *StandardMutation) FamilyCleared() bool { + _, ok := m.clearedFields[standard.FieldFamily] return ok } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *OrganizationSettingMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, organizationsetting.FieldDeletedAt) +// ResetFamily resets all changes to the "family" field. +func (m *StandardMutation) ResetFamily() { + m.family = nil + delete(m.clearedFields, standard.FieldFamily) } -// SetDeletedBy sets the "deleted_by" field. -func (m *OrganizationSettingMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetStatus sets the "status" field. +func (m *StandardMutation) SetStatus(s string) { + m.status = &s } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *OrganizationSettingMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// Status returns the value of the "status" field in the mutation. +func (m *StandardMutation) Status() (r string, exists bool) { + v := m.status if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldStatus returns the old "status" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *StandardMutation) OldStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldStatus 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") + return v, errors.New("OldStatus 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 v, fmt.Errorf("querying old value for OldStatus: %w", err) } - return oldValue.DeletedBy, nil + return oldValue.Status, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *OrganizationSettingMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[organizationsetting.FieldDeletedBy] = struct{}{} +// ClearStatus clears the value of the "status" field. +func (m *StandardMutation) ClearStatus() { + m.status = nil + m.clearedFields[standard.FieldStatus] = struct{}{} } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *OrganizationSettingMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldDeletedBy] +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *StandardMutation) StatusCleared() bool { + _, ok := m.clearedFields[standard.FieldStatus] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *OrganizationSettingMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, organizationsetting.FieldDeletedBy) +// ResetStatus resets all changes to the "status" field. +func (m *StandardMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, standard.FieldStatus) } -// SetDomains sets the "domains" field. -func (m *OrganizationSettingMutation) SetDomains(s []string) { - m.domains = &s - m.appenddomains = nil +// SetStandardType sets the "standard_type" field. +func (m *StandardMutation) SetStandardType(s string) { + m.standard_type = &s } -// Domains returns the value of the "domains" field in the mutation. -func (m *OrganizationSettingMutation) Domains() (r []string, exists bool) { - v := m.domains +// StandardType returns the value of the "standard_type" field in the mutation. +func (m *StandardMutation) StandardType() (r string, exists bool) { + v := m.standard_type if v == nil { return } return *v, true } -// OldDomains returns the old "domains" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldStandardType returns the old "standard_type" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldDomains(ctx context.Context) (v []string, err error) { +func (m *StandardMutation) OldStandardType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDomains is only allowed on UpdateOne operations") + return v, errors.New("OldStandardType is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDomains requires an ID field in the mutation") + return v, errors.New("OldStandardType requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldDomains: %w", err) - } - return oldValue.Domains, nil -} - -// AppendDomains adds s to the "domains" field. -func (m *OrganizationSettingMutation) AppendDomains(s []string) { - m.appenddomains = append(m.appenddomains, s...) -} - -// AppendedDomains returns the list of values that were appended to the "domains" field in this mutation. -func (m *OrganizationSettingMutation) AppendedDomains() ([]string, bool) { - if len(m.appenddomains) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldStandardType: %w", err) } - return m.appenddomains, true + return oldValue.StandardType, nil } -// ClearDomains clears the value of the "domains" field. -func (m *OrganizationSettingMutation) ClearDomains() { - m.domains = nil - m.appenddomains = nil - m.clearedFields[organizationsetting.FieldDomains] = struct{}{} +// ClearStandardType clears the value of the "standard_type" field. +func (m *StandardMutation) ClearStandardType() { + m.standard_type = nil + m.clearedFields[standard.FieldStandardType] = struct{}{} } -// DomainsCleared returns if the "domains" field was cleared in this mutation. -func (m *OrganizationSettingMutation) DomainsCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldDomains] +// StandardTypeCleared returns if the "standard_type" field was cleared in this mutation. +func (m *StandardMutation) StandardTypeCleared() bool { + _, ok := m.clearedFields[standard.FieldStandardType] return ok } -// ResetDomains resets all changes to the "domains" field. -func (m *OrganizationSettingMutation) ResetDomains() { - m.domains = nil - m.appenddomains = nil - delete(m.clearedFields, organizationsetting.FieldDomains) +// ResetStandardType resets all changes to the "standard_type" field. +func (m *StandardMutation) ResetStandardType() { + m.standard_type = nil + delete(m.clearedFields, standard.FieldStandardType) } -// SetBillingContact sets the "billing_contact" field. -func (m *OrganizationSettingMutation) SetBillingContact(s string) { - m.billing_contact = &s +// SetVersion sets the "version" field. +func (m *StandardMutation) SetVersion(s string) { + m.version = &s } -// BillingContact returns the value of the "billing_contact" field in the mutation. -func (m *OrganizationSettingMutation) BillingContact() (r string, exists bool) { - v := m.billing_contact +// Version returns the value of the "version" field in the mutation. +func (m *StandardMutation) Version() (r string, exists bool) { + v := m.version if v == nil { return } return *v, true } -// OldBillingContact returns the old "billing_contact" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldVersion returns the old "version" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldBillingContact(ctx context.Context) (v string, err error) { +func (m *StandardMutation) OldVersion(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldBillingContact is only allowed on UpdateOne operations") + return v, errors.New("OldVersion is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldBillingContact requires an ID field in the mutation") + return v, errors.New("OldVersion requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldBillingContact: %w", err) + return v, fmt.Errorf("querying old value for OldVersion: %w", err) } - return oldValue.BillingContact, nil + return oldValue.Version, nil } -// ClearBillingContact clears the value of the "billing_contact" field. -func (m *OrganizationSettingMutation) ClearBillingContact() { - m.billing_contact = nil - m.clearedFields[organizationsetting.FieldBillingContact] = struct{}{} +// ClearVersion clears the value of the "version" field. +func (m *StandardMutation) ClearVersion() { + m.version = nil + m.clearedFields[standard.FieldVersion] = struct{}{} } -// BillingContactCleared returns if the "billing_contact" field was cleared in this mutation. -func (m *OrganizationSettingMutation) BillingContactCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldBillingContact] +// VersionCleared returns if the "version" field was cleared in this mutation. +func (m *StandardMutation) VersionCleared() bool { + _, ok := m.clearedFields[standard.FieldVersion] return ok } -// ResetBillingContact resets all changes to the "billing_contact" field. -func (m *OrganizationSettingMutation) ResetBillingContact() { - m.billing_contact = nil - delete(m.clearedFields, organizationsetting.FieldBillingContact) +// ResetVersion resets all changes to the "version" field. +func (m *StandardMutation) ResetVersion() { + m.version = nil + delete(m.clearedFields, standard.FieldVersion) } -// SetBillingEmail sets the "billing_email" field. -func (m *OrganizationSettingMutation) SetBillingEmail(s string) { - m.billing_email = &s +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (m *StandardMutation) SetPurposeAndScope(s string) { + m.purpose_and_scope = &s } -// BillingEmail returns the value of the "billing_email" field in the mutation. -func (m *OrganizationSettingMutation) BillingEmail() (r string, exists bool) { - v := m.billing_email +// PurposeAndScope returns the value of the "purpose_and_scope" field in the mutation. +func (m *StandardMutation) PurposeAndScope() (r string, exists bool) { + v := m.purpose_and_scope if v == nil { return } return *v, true } -// OldBillingEmail returns the old "billing_email" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldPurposeAndScope returns the old "purpose_and_scope" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldBillingEmail(ctx context.Context) (v string, err error) { +func (m *StandardMutation) OldPurposeAndScope(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldBillingEmail is only allowed on UpdateOne operations") + return v, errors.New("OldPurposeAndScope is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldBillingEmail requires an ID field in the mutation") + return v, errors.New("OldPurposeAndScope requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldBillingEmail: %w", err) + return v, fmt.Errorf("querying old value for OldPurposeAndScope: %w", err) } - return oldValue.BillingEmail, nil + return oldValue.PurposeAndScope, nil } -// ClearBillingEmail clears the value of the "billing_email" field. -func (m *OrganizationSettingMutation) ClearBillingEmail() { - m.billing_email = nil - m.clearedFields[organizationsetting.FieldBillingEmail] = struct{}{} +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (m *StandardMutation) ClearPurposeAndScope() { + m.purpose_and_scope = nil + m.clearedFields[standard.FieldPurposeAndScope] = struct{}{} } -// BillingEmailCleared returns if the "billing_email" field was cleared in this mutation. -func (m *OrganizationSettingMutation) BillingEmailCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldBillingEmail] +// PurposeAndScopeCleared returns if the "purpose_and_scope" field was cleared in this mutation. +func (m *StandardMutation) PurposeAndScopeCleared() bool { + _, ok := m.clearedFields[standard.FieldPurposeAndScope] return ok } -// ResetBillingEmail resets all changes to the "billing_email" field. -func (m *OrganizationSettingMutation) ResetBillingEmail() { - m.billing_email = nil - delete(m.clearedFields, organizationsetting.FieldBillingEmail) +// ResetPurposeAndScope resets all changes to the "purpose_and_scope" field. +func (m *StandardMutation) ResetPurposeAndScope() { + m.purpose_and_scope = nil + delete(m.clearedFields, standard.FieldPurposeAndScope) } -// SetBillingPhone sets the "billing_phone" field. -func (m *OrganizationSettingMutation) SetBillingPhone(s string) { - m.billing_phone = &s +// SetBackground sets the "background" field. +func (m *StandardMutation) SetBackground(s string) { + m.background = &s } -// BillingPhone returns the value of the "billing_phone" field in the mutation. -func (m *OrganizationSettingMutation) BillingPhone() (r string, exists bool) { - v := m.billing_phone +// Background returns the value of the "background" field in the mutation. +func (m *StandardMutation) Background() (r string, exists bool) { + v := m.background if v == nil { return } return *v, true } -// OldBillingPhone returns the old "billing_phone" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldBackground returns the old "background" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldBillingPhone(ctx context.Context) (v string, err error) { +func (m *StandardMutation) OldBackground(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldBillingPhone is only allowed on UpdateOne operations") + return v, errors.New("OldBackground is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldBillingPhone requires an ID field in the mutation") + return v, errors.New("OldBackground requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldBillingPhone: %w", err) + return v, fmt.Errorf("querying old value for OldBackground: %w", err) } - return oldValue.BillingPhone, nil + return oldValue.Background, nil } -// ClearBillingPhone clears the value of the "billing_phone" field. -func (m *OrganizationSettingMutation) ClearBillingPhone() { - m.billing_phone = nil - m.clearedFields[organizationsetting.FieldBillingPhone] = struct{}{} +// ClearBackground clears the value of the "background" field. +func (m *StandardMutation) ClearBackground() { + m.background = nil + m.clearedFields[standard.FieldBackground] = struct{}{} } -// BillingPhoneCleared returns if the "billing_phone" field was cleared in this mutation. -func (m *OrganizationSettingMutation) BillingPhoneCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldBillingPhone] +// BackgroundCleared returns if the "background" field was cleared in this mutation. +func (m *StandardMutation) BackgroundCleared() bool { + _, ok := m.clearedFields[standard.FieldBackground] return ok } -// ResetBillingPhone resets all changes to the "billing_phone" field. -func (m *OrganizationSettingMutation) ResetBillingPhone() { - m.billing_phone = nil - delete(m.clearedFields, organizationsetting.FieldBillingPhone) +// ResetBackground resets all changes to the "background" field. +func (m *StandardMutation) ResetBackground() { + m.background = nil + delete(m.clearedFields, standard.FieldBackground) } -// SetBillingAddress sets the "billing_address" field. -func (m *OrganizationSettingMutation) SetBillingAddress(s string) { - m.billing_address = &s +// SetSatisfies sets the "satisfies" field. +func (m *StandardMutation) SetSatisfies(s string) { + m.satisfies = &s } -// BillingAddress returns the value of the "billing_address" field in the mutation. -func (m *OrganizationSettingMutation) BillingAddress() (r string, exists bool) { - v := m.billing_address +// Satisfies returns the value of the "satisfies" field in the mutation. +func (m *StandardMutation) Satisfies() (r string, exists bool) { + v := m.satisfies if v == nil { return } return *v, true } -// OldBillingAddress returns the old "billing_address" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldSatisfies returns the old "satisfies" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldBillingAddress(ctx context.Context) (v string, err error) { +func (m *StandardMutation) OldSatisfies(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldBillingAddress is only allowed on UpdateOne operations") + return v, errors.New("OldSatisfies is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldBillingAddress requires an ID field in the mutation") + return v, errors.New("OldSatisfies requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldBillingAddress: %w", err) + return v, fmt.Errorf("querying old value for OldSatisfies: %w", err) } - return oldValue.BillingAddress, nil + return oldValue.Satisfies, nil } -// ClearBillingAddress clears the value of the "billing_address" field. -func (m *OrganizationSettingMutation) ClearBillingAddress() { - m.billing_address = nil - m.clearedFields[organizationsetting.FieldBillingAddress] = struct{}{} +// ClearSatisfies clears the value of the "satisfies" field. +func (m *StandardMutation) ClearSatisfies() { + m.satisfies = nil + m.clearedFields[standard.FieldSatisfies] = struct{}{} } -// BillingAddressCleared returns if the "billing_address" field was cleared in this mutation. -func (m *OrganizationSettingMutation) BillingAddressCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldBillingAddress] +// SatisfiesCleared returns if the "satisfies" field was cleared in this mutation. +func (m *StandardMutation) SatisfiesCleared() bool { + _, ok := m.clearedFields[standard.FieldSatisfies] return ok } -// ResetBillingAddress resets all changes to the "billing_address" field. -func (m *OrganizationSettingMutation) ResetBillingAddress() { - m.billing_address = nil - delete(m.clearedFields, organizationsetting.FieldBillingAddress) +// ResetSatisfies resets all changes to the "satisfies" field. +func (m *StandardMutation) ResetSatisfies() { + m.satisfies = nil + delete(m.clearedFields, standard.FieldSatisfies) } -// SetTaxIdentifier sets the "tax_identifier" field. -func (m *OrganizationSettingMutation) SetTaxIdentifier(s string) { - m.tax_identifier = &s +// SetDetails sets the "details" field. +func (m *StandardMutation) SetDetails(value map[string]interface{}) { + m.details = &value } -// TaxIdentifier returns the value of the "tax_identifier" field in the mutation. -func (m *OrganizationSettingMutation) TaxIdentifier() (r string, exists bool) { - v := m.tax_identifier +// Details returns the value of the "details" field in the mutation. +func (m *StandardMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details if v == nil { return } return *v, true } -// OldTaxIdentifier returns the old "tax_identifier" field's value of the OrganizationSetting entity. -// If the OrganizationSetting object wasn't provided to the builder, the object is fetched from the database. +// OldDetails returns the old "details" field's value of the Standard entity. +// If the Standard 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 *OrganizationSettingMutation) OldTaxIdentifier(ctx context.Context) (v string, err error) { +func (m *StandardMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTaxIdentifier is only allowed on UpdateOne operations") + return v, errors.New("OldDetails is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldTaxIdentifier requires an ID field in the mutation") + return v, errors.New("OldDetails requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldTaxIdentifier: %w", err) + return v, fmt.Errorf("querying old value for OldDetails: %w", err) } - return oldValue.TaxIdentifier, nil + return oldValue.Details, nil } -// ClearTaxIdentifier clears the value of the "tax_identifier" field. -func (m *OrganizationSettingMutation) ClearTaxIdentifier() { - m.tax_identifier = nil - m.clearedFields[organizationsetting.FieldTaxIdentifier] = struct{}{} +// ClearDetails clears the value of the "details" field. +func (m *StandardMutation) ClearDetails() { + m.details = nil + m.clearedFields[standard.FieldDetails] = struct{}{} } -// TaxIdentifierCleared returns if the "tax_identifier" field was cleared in this mutation. -func (m *OrganizationSettingMutation) TaxIdentifierCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldTaxIdentifier] +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *StandardMutation) DetailsCleared() bool { + _, ok := m.clearedFields[standard.FieldDetails] return ok } -// ResetTaxIdentifier resets all changes to the "tax_identifier" field. -func (m *OrganizationSettingMutation) ResetTaxIdentifier() { - m.tax_identifier = nil - delete(m.clearedFields, organizationsetting.FieldTaxIdentifier) +// ResetDetails resets all changes to the "details" field. +func (m *StandardMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, standard.FieldDetails) } -// SetGeoLocation sets the "geo_location" field. -func (m *OrganizationSettingMutation) SetGeoLocation(e enums.Region) { - m.geo_location = &e +// AddControlobjectiveIDs adds the "controlobjectives" edge to the ControlObjective entity by ids. +func (m *StandardMutation) AddControlobjectiveIDs(ids ...string) { + if m.controlobjectives == nil { + m.controlobjectives = make(map[string]struct{}) + } + for i := range ids { + m.controlobjectives[ids[i]] = struct{}{} + } } -// GeoLocation returns the value of the "geo_location" field in the mutation. -func (m *OrganizationSettingMutation) GeoLocation() (r enums.Region, exists bool) { - v := m.geo_location - if v == nil { - return - } - return *v, true +// ClearControlobjectives clears the "controlobjectives" edge to the ControlObjective entity. +func (m *StandardMutation) ClearControlobjectives() { + m.clearedcontrolobjectives = true } -// OldGeoLocation returns the old "geo_location" field's value of the OrganizationSetting entity. -// If the OrganizationSetting 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 *OrganizationSettingMutation) OldGeoLocation(ctx context.Context) (v enums.Region, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldGeoLocation is only allowed on UpdateOne operations") +// ControlobjectivesCleared reports if the "controlobjectives" edge to the ControlObjective entity was cleared. +func (m *StandardMutation) ControlobjectivesCleared() bool { + return m.clearedcontrolobjectives +} + +// RemoveControlobjectiveIDs removes the "controlobjectives" edge to the ControlObjective entity by IDs. +func (m *StandardMutation) RemoveControlobjectiveIDs(ids ...string) { + if m.removedcontrolobjectives == nil { + m.removedcontrolobjectives = make(map[string]struct{}) } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldGeoLocation requires an ID field in the mutation") + for i := range ids { + delete(m.controlobjectives, ids[i]) + m.removedcontrolobjectives[ids[i]] = struct{}{} } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldGeoLocation: %w", err) +} + +// RemovedControlobjectives returns the removed IDs of the "controlobjectives" edge to the ControlObjective entity. +func (m *StandardMutation) RemovedControlobjectivesIDs() (ids []string) { + for id := range m.removedcontrolobjectives { + ids = append(ids, id) } - return oldValue.GeoLocation, nil + return } -// ClearGeoLocation clears the value of the "geo_location" field. -func (m *OrganizationSettingMutation) ClearGeoLocation() { - m.geo_location = nil - m.clearedFields[organizationsetting.FieldGeoLocation] = struct{}{} +// ControlobjectivesIDs returns the "controlobjectives" edge IDs in the mutation. +func (m *StandardMutation) ControlobjectivesIDs() (ids []string) { + for id := range m.controlobjectives { + ids = append(ids, id) + } + return } -// GeoLocationCleared returns if the "geo_location" field was cleared in this mutation. -func (m *OrganizationSettingMutation) GeoLocationCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldGeoLocation] - return ok +// ResetControlobjectives resets all changes to the "controlobjectives" edge. +func (m *StandardMutation) ResetControlobjectives() { + m.controlobjectives = nil + m.clearedcontrolobjectives = false + m.removedcontrolobjectives = nil } -// ResetGeoLocation resets all changes to the "geo_location" field. -func (m *OrganizationSettingMutation) ResetGeoLocation() { - m.geo_location = nil - delete(m.clearedFields, organizationsetting.FieldGeoLocation) +// AddControlIDs adds the "controls" edge to the Control entity by ids. +func (m *StandardMutation) AddControlIDs(ids ...string) { + if m.controls == nil { + m.controls = make(map[string]struct{}) + } + for i := range ids { + m.controls[ids[i]] = struct{}{} + } } -// SetOrganizationID sets the "organization_id" field. -func (m *OrganizationSettingMutation) SetOrganizationID(s string) { - m.organization = &s +// ClearControls clears the "controls" edge to the Control entity. +func (m *StandardMutation) ClearControls() { + m.clearedcontrols = true } -// OrganizationID returns the value of the "organization_id" field in the mutation. -func (m *OrganizationSettingMutation) OrganizationID() (r string, exists bool) { - v := m.organization - if v == nil { - return - } - return *v, true +// ControlsCleared reports if the "controls" edge to the Control entity was cleared. +func (m *StandardMutation) ControlsCleared() bool { + return m.clearedcontrols } -// OldOrganizationID returns the old "organization_id" field's value of the OrganizationSetting entity. -// If the OrganizationSetting 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 *OrganizationSettingMutation) OldOrganizationID(ctx context.Context) (v string, err error) { - if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOrganizationID is only allowed on UpdateOne operations") +// RemoveControlIDs removes the "controls" edge to the Control entity by IDs. +func (m *StandardMutation) RemoveControlIDs(ids ...string) { + if m.removedcontrols == nil { + m.removedcontrols = make(map[string]struct{}) } - if m.id == nil || m.oldValue == nil { - return v, errors.New("OldOrganizationID requires an ID field in the mutation") + for i := range ids { + delete(m.controls, ids[i]) + m.removedcontrols[ids[i]] = struct{}{} } - oldValue, err := m.oldValue(ctx) - if err != nil { - return v, fmt.Errorf("querying old value for OldOrganizationID: %w", err) +} + +// RemovedControls returns the removed IDs of the "controls" edge to the Control entity. +func (m *StandardMutation) RemovedControlsIDs() (ids []string) { + for id := range m.removedcontrols { + ids = append(ids, id) } - return oldValue.OrganizationID, nil + return } -// ClearOrganizationID clears the value of the "organization_id" field. -func (m *OrganizationSettingMutation) ClearOrganizationID() { - m.organization = nil - m.clearedFields[organizationsetting.FieldOrganizationID] = struct{}{} +// ControlsIDs returns the "controls" edge IDs in the mutation. +func (m *StandardMutation) ControlsIDs() (ids []string) { + for id := range m.controls { + ids = append(ids, id) + } + return } -// OrganizationIDCleared returns if the "organization_id" field was cleared in this mutation. -func (m *OrganizationSettingMutation) OrganizationIDCleared() bool { - _, ok := m.clearedFields[organizationsetting.FieldOrganizationID] - return ok +// ResetControls resets all changes to the "controls" edge. +func (m *StandardMutation) ResetControls() { + m.controls = nil + m.clearedcontrols = false + m.removedcontrols = nil } -// ResetOrganizationID resets all changes to the "organization_id" field. -func (m *OrganizationSettingMutation) ResetOrganizationID() { - m.organization = nil - delete(m.clearedFields, organizationsetting.FieldOrganizationID) +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by ids. +func (m *StandardMutation) AddProcedureIDs(ids ...string) { + if m.procedures == nil { + m.procedures = make(map[string]struct{}) + } + for i := range ids { + m.procedures[ids[i]] = struct{}{} + } } -// ClearOrganization clears the "organization" edge to the Organization entity. -func (m *OrganizationSettingMutation) ClearOrganization() { - m.clearedorganization = true - m.clearedFields[organizationsetting.FieldOrganizationID] = struct{}{} +// ClearProcedures clears the "procedures" edge to the Procedure entity. +func (m *StandardMutation) ClearProcedures() { + m.clearedprocedures = true } -// OrganizationCleared reports if the "organization" edge to the Organization entity was cleared. -func (m *OrganizationSettingMutation) OrganizationCleared() bool { - return m.OrganizationIDCleared() || m.clearedorganization +// ProceduresCleared reports if the "procedures" edge to the Procedure entity was cleared. +func (m *StandardMutation) ProceduresCleared() bool { + return m.clearedprocedures } -// OrganizationIDs returns the "organization" edge IDs in the mutation. -// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use -// OrganizationID instead. It exists only for internal usage by the builders. -func (m *OrganizationSettingMutation) OrganizationIDs() (ids []string) { - if id := m.organization; id != nil { - ids = append(ids, *id) +// RemoveProcedureIDs removes the "procedures" edge to the Procedure entity by IDs. +func (m *StandardMutation) RemoveProcedureIDs(ids ...string) { + if m.removedprocedures == nil { + m.removedprocedures = make(map[string]struct{}) + } + for i := range ids { + delete(m.procedures, ids[i]) + m.removedprocedures[ids[i]] = struct{}{} + } +} + +// RemovedProcedures returns the removed IDs of the "procedures" edge to the Procedure entity. +func (m *StandardMutation) RemovedProceduresIDs() (ids []string) { + for id := range m.removedprocedures { + ids = append(ids, id) } return } -// ResetOrganization resets all changes to the "organization" edge. -func (m *OrganizationSettingMutation) ResetOrganization() { - m.organization = nil - m.clearedorganization = false +// ProceduresIDs returns the "procedures" edge IDs in the mutation. +func (m *StandardMutation) ProceduresIDs() (ids []string) { + for id := range m.procedures { + ids = append(ids, id) + } + return } -// AddFileIDs adds the "files" edge to the File entity by ids. -func (m *OrganizationSettingMutation) AddFileIDs(ids ...string) { - if m.files == nil { - m.files = make(map[string]struct{}) +// ResetProcedures resets all changes to the "procedures" edge. +func (m *StandardMutation) ResetProcedures() { + m.procedures = nil + m.clearedprocedures = false + m.removedprocedures = nil +} + +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by ids. +func (m *StandardMutation) AddActionplanIDs(ids ...string) { + if m.actionplans == nil { + m.actionplans = make(map[string]struct{}) } for i := range ids { - m.files[ids[i]] = struct{}{} + m.actionplans[ids[i]] = struct{}{} } } -// ClearFiles clears the "files" edge to the File entity. -func (m *OrganizationSettingMutation) ClearFiles() { - m.clearedfiles = true +// ClearActionplans clears the "actionplans" edge to the ActionPlan entity. +func (m *StandardMutation) ClearActionplans() { + m.clearedactionplans = true } -// FilesCleared reports if the "files" edge to the File entity was cleared. -func (m *OrganizationSettingMutation) FilesCleared() bool { - return m.clearedfiles +// ActionplansCleared reports if the "actionplans" edge to the ActionPlan entity was cleared. +func (m *StandardMutation) ActionplansCleared() bool { + return m.clearedactionplans } -// RemoveFileIDs removes the "files" edge to the File entity by IDs. -func (m *OrganizationSettingMutation) RemoveFileIDs(ids ...string) { - if m.removedfiles == nil { - m.removedfiles = make(map[string]struct{}) +// RemoveActionplanIDs removes the "actionplans" edge to the ActionPlan entity by IDs. +func (m *StandardMutation) RemoveActionplanIDs(ids ...string) { + if m.removedactionplans == nil { + m.removedactionplans = make(map[string]struct{}) } for i := range ids { - delete(m.files, ids[i]) - m.removedfiles[ids[i]] = struct{}{} + delete(m.actionplans, ids[i]) + m.removedactionplans[ids[i]] = struct{}{} } } -// RemovedFiles returns the removed IDs of the "files" edge to the File entity. -func (m *OrganizationSettingMutation) RemovedFilesIDs() (ids []string) { - for id := range m.removedfiles { +// RemovedActionplans returns the removed IDs of the "actionplans" edge to the ActionPlan entity. +func (m *StandardMutation) RemovedActionplansIDs() (ids []string) { + for id := range m.removedactionplans { ids = append(ids, id) } return } -// FilesIDs returns the "files" edge IDs in the mutation. -func (m *OrganizationSettingMutation) FilesIDs() (ids []string) { - for id := range m.files { +// ActionplansIDs returns the "actionplans" edge IDs in the mutation. +func (m *StandardMutation) ActionplansIDs() (ids []string) { + for id := range m.actionplans { ids = append(ids, id) } return } -// ResetFiles resets all changes to the "files" edge. -func (m *OrganizationSettingMutation) ResetFiles() { - m.files = nil - m.clearedfiles = false - m.removedfiles = nil +// ResetActionplans resets all changes to the "actionplans" edge. +func (m *StandardMutation) ResetActionplans() { + m.actionplans = nil + m.clearedactionplans = false + m.removedactionplans = nil } -// Where appends a list predicates to the OrganizationSettingMutation builder. -func (m *OrganizationSettingMutation) Where(ps ...predicate.OrganizationSetting) { +// Where appends a list predicates to the StandardMutation builder. +func (m *StandardMutation) Where(ps ...predicate.Standard) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the OrganizationSettingMutation builder. Using this method, +// WhereP appends storage-level predicates to the StandardMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *OrganizationSettingMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.OrganizationSetting, len(ps)) +func (m *StandardMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Standard, len(ps)) for i := range ps { p[i] = ps[i] } @@ -64581,72 +95576,78 @@ func (m *OrganizationSettingMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *OrganizationSettingMutation) Op() Op { +func (m *StandardMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *OrganizationSettingMutation) SetOp(op Op) { +func (m *StandardMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (OrganizationSetting). -func (m *OrganizationSettingMutation) Type() string { +// Type returns the node type of this mutation (Standard). +func (m *StandardMutation) 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 *OrganizationSettingMutation) Fields() []string { - fields := make([]string, 0, 16) +func (m *StandardMutation) Fields() []string { + fields := make([]string, 0, 18) if m.created_at != nil { - fields = append(fields, organizationsetting.FieldCreatedAt) + fields = append(fields, standard.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, organizationsetting.FieldUpdatedAt) + fields = append(fields, standard.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, organizationsetting.FieldCreatedBy) + fields = append(fields, standard.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, organizationsetting.FieldUpdatedBy) + fields = append(fields, standard.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, standard.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, standard.FieldDeletedBy) } if m.mapping_id != nil { - fields = append(fields, organizationsetting.FieldMappingID) + fields = append(fields, standard.FieldMappingID) } if m.tags != nil { - fields = append(fields, organizationsetting.FieldTags) + fields = append(fields, standard.FieldTags) } - if m.deleted_at != nil { - fields = append(fields, organizationsetting.FieldDeletedAt) + if m.name != nil { + fields = append(fields, standard.FieldName) } - if m.deleted_by != nil { - fields = append(fields, organizationsetting.FieldDeletedBy) + if m.description != nil { + fields = append(fields, standard.FieldDescription) } - if m.domains != nil { - fields = append(fields, organizationsetting.FieldDomains) + if m.family != nil { + fields = append(fields, standard.FieldFamily) } - if m.billing_contact != nil { - fields = append(fields, organizationsetting.FieldBillingContact) + if m.status != nil { + fields = append(fields, standard.FieldStatus) } - if m.billing_email != nil { - fields = append(fields, organizationsetting.FieldBillingEmail) + if m.standard_type != nil { + fields = append(fields, standard.FieldStandardType) } - if m.billing_phone != nil { - fields = append(fields, organizationsetting.FieldBillingPhone) + if m.version != nil { + fields = append(fields, standard.FieldVersion) } - if m.billing_address != nil { - fields = append(fields, organizationsetting.FieldBillingAddress) + if m.purpose_and_scope != nil { + fields = append(fields, standard.FieldPurposeAndScope) } - if m.tax_identifier != nil { - fields = append(fields, organizationsetting.FieldTaxIdentifier) + if m.background != nil { + fields = append(fields, standard.FieldBackground) } - if m.geo_location != nil { - fields = append(fields, organizationsetting.FieldGeoLocation) + if m.satisfies != nil { + fields = append(fields, standard.FieldSatisfies) } - if m.organization != nil { - fields = append(fields, organizationsetting.FieldOrganizationID) + if m.details != nil { + fields = append(fields, standard.FieldDetails) } return fields } @@ -64654,40 +95655,44 @@ func (m *OrganizationSettingMutation) Fields() []string { // 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 *OrganizationSettingMutation) Field(name string) (ent.Value, bool) { +func (m *StandardMutation) Field(name string) (ent.Value, bool) { switch name { - case organizationsetting.FieldCreatedAt: + case standard.FieldCreatedAt: return m.CreatedAt() - case organizationsetting.FieldUpdatedAt: + case standard.FieldUpdatedAt: return m.UpdatedAt() - case organizationsetting.FieldCreatedBy: + case standard.FieldCreatedBy: return m.CreatedBy() - case organizationsetting.FieldUpdatedBy: + case standard.FieldUpdatedBy: return m.UpdatedBy() - case organizationsetting.FieldMappingID: - return m.MappingID() - case organizationsetting.FieldTags: - return m.Tags() - case organizationsetting.FieldDeletedAt: + case standard.FieldDeletedAt: return m.DeletedAt() - case organizationsetting.FieldDeletedBy: + case standard.FieldDeletedBy: return m.DeletedBy() - case organizationsetting.FieldDomains: - return m.Domains() - case organizationsetting.FieldBillingContact: - return m.BillingContact() - case organizationsetting.FieldBillingEmail: - return m.BillingEmail() - case organizationsetting.FieldBillingPhone: - return m.BillingPhone() - case organizationsetting.FieldBillingAddress: - return m.BillingAddress() - case organizationsetting.FieldTaxIdentifier: - return m.TaxIdentifier() - case organizationsetting.FieldGeoLocation: - return m.GeoLocation() - case organizationsetting.FieldOrganizationID: - return m.OrganizationID() + case standard.FieldMappingID: + return m.MappingID() + case standard.FieldTags: + return m.Tags() + case standard.FieldName: + return m.Name() + case standard.FieldDescription: + return m.Description() + case standard.FieldFamily: + return m.Family() + case standard.FieldStatus: + return m.Status() + case standard.FieldStandardType: + return m.StandardType() + case standard.FieldVersion: + return m.Version() + case standard.FieldPurposeAndScope: + return m.PurposeAndScope() + case standard.FieldBackground: + return m.Background() + case standard.FieldSatisfies: + return m.Satisfies() + case standard.FieldDetails: + return m.Details() } return nil, false } @@ -64695,378 +95700,428 @@ func (m *OrganizationSettingMutation) Field(name string) (ent.Value, bool) { // 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 *OrganizationSettingMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *StandardMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case organizationsetting.FieldCreatedAt: + case standard.FieldCreatedAt: return m.OldCreatedAt(ctx) - case organizationsetting.FieldUpdatedAt: + case standard.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case organizationsetting.FieldCreatedBy: + case standard.FieldCreatedBy: return m.OldCreatedBy(ctx) - case organizationsetting.FieldUpdatedBy: + case standard.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case organizationsetting.FieldMappingID: - return m.OldMappingID(ctx) - case organizationsetting.FieldTags: - return m.OldTags(ctx) - case organizationsetting.FieldDeletedAt: + case standard.FieldDeletedAt: return m.OldDeletedAt(ctx) - case organizationsetting.FieldDeletedBy: + case standard.FieldDeletedBy: return m.OldDeletedBy(ctx) - case organizationsetting.FieldDomains: - return m.OldDomains(ctx) - case organizationsetting.FieldBillingContact: - return m.OldBillingContact(ctx) - case organizationsetting.FieldBillingEmail: - return m.OldBillingEmail(ctx) - case organizationsetting.FieldBillingPhone: - return m.OldBillingPhone(ctx) - case organizationsetting.FieldBillingAddress: - return m.OldBillingAddress(ctx) - case organizationsetting.FieldTaxIdentifier: - return m.OldTaxIdentifier(ctx) - case organizationsetting.FieldGeoLocation: - return m.OldGeoLocation(ctx) - case organizationsetting.FieldOrganizationID: - return m.OldOrganizationID(ctx) + case standard.FieldMappingID: + return m.OldMappingID(ctx) + case standard.FieldTags: + return m.OldTags(ctx) + case standard.FieldName: + return m.OldName(ctx) + case standard.FieldDescription: + return m.OldDescription(ctx) + case standard.FieldFamily: + return m.OldFamily(ctx) + case standard.FieldStatus: + return m.OldStatus(ctx) + case standard.FieldStandardType: + return m.OldStandardType(ctx) + case standard.FieldVersion: + return m.OldVersion(ctx) + case standard.FieldPurposeAndScope: + return m.OldPurposeAndScope(ctx) + case standard.FieldBackground: + return m.OldBackground(ctx) + case standard.FieldSatisfies: + return m.OldSatisfies(ctx) + case standard.FieldDetails: + return m.OldDetails(ctx) } - return nil, fmt.Errorf("unknown OrganizationSetting field %s", name) + return nil, fmt.Errorf("unknown Standard 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 *OrganizationSettingMutation) SetField(name string, value ent.Value) error { +func (m *StandardMutation) SetField(name string, value ent.Value) error { switch name { - case organizationsetting.FieldCreatedAt: + case standard.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 organizationsetting.FieldUpdatedAt: + case standard.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 organizationsetting.FieldCreatedBy: + case standard.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case organizationsetting.FieldUpdatedBy: + case standard.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case organizationsetting.FieldMappingID: + case standard.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 standard.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case standard.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case organizationsetting.FieldTags: + case standard.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case organizationsetting.FieldDeletedAt: - v, ok := value.(time.Time) + case standard.FieldName: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetName(v) return nil - case organizationsetting.FieldDeletedBy: + case standard.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetDescription(v) return nil - case organizationsetting.FieldDomains: - v, ok := value.([]string) + case standard.FieldFamily: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDomains(v) + m.SetFamily(v) return nil - case organizationsetting.FieldBillingContact: + case standard.FieldStatus: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetBillingContact(v) + m.SetStatus(v) return nil - case organizationsetting.FieldBillingEmail: + case standard.FieldStandardType: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetBillingEmail(v) + m.SetStandardType(v) return nil - case organizationsetting.FieldBillingPhone: + case standard.FieldVersion: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetBillingPhone(v) + m.SetVersion(v) return nil - case organizationsetting.FieldBillingAddress: + case standard.FieldPurposeAndScope: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetBillingAddress(v) + m.SetPurposeAndScope(v) return nil - case organizationsetting.FieldTaxIdentifier: + case standard.FieldBackground: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTaxIdentifier(v) + m.SetBackground(v) return nil - case organizationsetting.FieldGeoLocation: - v, ok := value.(enums.Region) + case standard.FieldSatisfies: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetGeoLocation(v) + m.SetSatisfies(v) return nil - case organizationsetting.FieldOrganizationID: - v, ok := value.(string) + case standard.FieldDetails: + v, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOrganizationID(v) + m.SetDetails(v) return nil } - return fmt.Errorf("unknown OrganizationSetting field %s", name) + return fmt.Errorf("unknown Standard field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *OrganizationSettingMutation) AddedFields() []string { +func (m *StandardMutation) 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 *OrganizationSettingMutation) AddedField(name string) (ent.Value, bool) { +func (m *StandardMutation) 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 *OrganizationSettingMutation) AddField(name string, value ent.Value) error { +func (m *StandardMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown OrganizationSetting numeric field %s", name) + return fmt.Errorf("unknown Standard numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *OrganizationSettingMutation) ClearedFields() []string { +func (m *StandardMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(organizationsetting.FieldCreatedAt) { - fields = append(fields, organizationsetting.FieldCreatedAt) + if m.FieldCleared(standard.FieldCreatedAt) { + fields = append(fields, standard.FieldCreatedAt) } - if m.FieldCleared(organizationsetting.FieldUpdatedAt) { - fields = append(fields, organizationsetting.FieldUpdatedAt) + if m.FieldCleared(standard.FieldUpdatedAt) { + fields = append(fields, standard.FieldUpdatedAt) } - if m.FieldCleared(organizationsetting.FieldCreatedBy) { - fields = append(fields, organizationsetting.FieldCreatedBy) + if m.FieldCleared(standard.FieldCreatedBy) { + fields = append(fields, standard.FieldCreatedBy) } - if m.FieldCleared(organizationsetting.FieldUpdatedBy) { - fields = append(fields, organizationsetting.FieldUpdatedBy) + if m.FieldCleared(standard.FieldUpdatedBy) { + fields = append(fields, standard.FieldUpdatedBy) } - if m.FieldCleared(organizationsetting.FieldTags) { - fields = append(fields, organizationsetting.FieldTags) + if m.FieldCleared(standard.FieldDeletedAt) { + fields = append(fields, standard.FieldDeletedAt) } - if m.FieldCleared(organizationsetting.FieldDeletedAt) { - fields = append(fields, organizationsetting.FieldDeletedAt) + if m.FieldCleared(standard.FieldDeletedBy) { + fields = append(fields, standard.FieldDeletedBy) } - if m.FieldCleared(organizationsetting.FieldDeletedBy) { - fields = append(fields, organizationsetting.FieldDeletedBy) + if m.FieldCleared(standard.FieldTags) { + fields = append(fields, standard.FieldTags) } - if m.FieldCleared(organizationsetting.FieldDomains) { - fields = append(fields, organizationsetting.FieldDomains) + if m.FieldCleared(standard.FieldDescription) { + fields = append(fields, standard.FieldDescription) } - if m.FieldCleared(organizationsetting.FieldBillingContact) { - fields = append(fields, organizationsetting.FieldBillingContact) + if m.FieldCleared(standard.FieldFamily) { + fields = append(fields, standard.FieldFamily) } - if m.FieldCleared(organizationsetting.FieldBillingEmail) { - fields = append(fields, organizationsetting.FieldBillingEmail) + if m.FieldCleared(standard.FieldStatus) { + fields = append(fields, standard.FieldStatus) } - if m.FieldCleared(organizationsetting.FieldBillingPhone) { - fields = append(fields, organizationsetting.FieldBillingPhone) + if m.FieldCleared(standard.FieldStandardType) { + fields = append(fields, standard.FieldStandardType) } - if m.FieldCleared(organizationsetting.FieldBillingAddress) { - fields = append(fields, organizationsetting.FieldBillingAddress) + if m.FieldCleared(standard.FieldVersion) { + fields = append(fields, standard.FieldVersion) } - if m.FieldCleared(organizationsetting.FieldTaxIdentifier) { - fields = append(fields, organizationsetting.FieldTaxIdentifier) + if m.FieldCleared(standard.FieldPurposeAndScope) { + fields = append(fields, standard.FieldPurposeAndScope) } - if m.FieldCleared(organizationsetting.FieldGeoLocation) { - fields = append(fields, organizationsetting.FieldGeoLocation) + if m.FieldCleared(standard.FieldBackground) { + fields = append(fields, standard.FieldBackground) } - if m.FieldCleared(organizationsetting.FieldOrganizationID) { - fields = append(fields, organizationsetting.FieldOrganizationID) + if m.FieldCleared(standard.FieldSatisfies) { + fields = append(fields, standard.FieldSatisfies) + } + if m.FieldCleared(standard.FieldDetails) { + fields = append(fields, standard.FieldDetails) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *OrganizationSettingMutation) FieldCleared(name string) bool { +func (m *StandardMutation) 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 *OrganizationSettingMutation) ClearField(name string) error { +func (m *StandardMutation) ClearField(name string) error { switch name { - case organizationsetting.FieldCreatedAt: + case standard.FieldCreatedAt: m.ClearCreatedAt() return nil - case organizationsetting.FieldUpdatedAt: + case standard.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case organizationsetting.FieldCreatedBy: + case standard.FieldCreatedBy: m.ClearCreatedBy() return nil - case organizationsetting.FieldUpdatedBy: + case standard.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case organizationsetting.FieldTags: - m.ClearTags() - return nil - case organizationsetting.FieldDeletedAt: + case standard.FieldDeletedAt: m.ClearDeletedAt() return nil - case organizationsetting.FieldDeletedBy: + case standard.FieldDeletedBy: m.ClearDeletedBy() return nil - case organizationsetting.FieldDomains: - m.ClearDomains() + case standard.FieldTags: + m.ClearTags() return nil - case organizationsetting.FieldBillingContact: - m.ClearBillingContact() + case standard.FieldDescription: + m.ClearDescription() return nil - case organizationsetting.FieldBillingEmail: - m.ClearBillingEmail() + case standard.FieldFamily: + m.ClearFamily() return nil - case organizationsetting.FieldBillingPhone: - m.ClearBillingPhone() + case standard.FieldStatus: + m.ClearStatus() return nil - case organizationsetting.FieldBillingAddress: - m.ClearBillingAddress() + case standard.FieldStandardType: + m.ClearStandardType() return nil - case organizationsetting.FieldTaxIdentifier: - m.ClearTaxIdentifier() + case standard.FieldVersion: + m.ClearVersion() return nil - case organizationsetting.FieldGeoLocation: - m.ClearGeoLocation() + case standard.FieldPurposeAndScope: + m.ClearPurposeAndScope() return nil - case organizationsetting.FieldOrganizationID: - m.ClearOrganizationID() + case standard.FieldBackground: + m.ClearBackground() + return nil + case standard.FieldSatisfies: + m.ClearSatisfies() + return nil + case standard.FieldDetails: + m.ClearDetails() return nil } - return fmt.Errorf("unknown OrganizationSetting nullable field %s", name) + return fmt.Errorf("unknown Standard 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 *OrganizationSettingMutation) ResetField(name string) error { +func (m *StandardMutation) ResetField(name string) error { switch name { - case organizationsetting.FieldCreatedAt: + case standard.FieldCreatedAt: m.ResetCreatedAt() return nil - case organizationsetting.FieldUpdatedAt: + case standard.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case organizationsetting.FieldCreatedBy: + case standard.FieldCreatedBy: m.ResetCreatedBy() return nil - case organizationsetting.FieldUpdatedBy: + case standard.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case organizationsetting.FieldMappingID: + case standard.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case standard.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case standard.FieldMappingID: m.ResetMappingID() return nil - case organizationsetting.FieldTags: + case standard.FieldTags: m.ResetTags() return nil - case organizationsetting.FieldDeletedAt: - m.ResetDeletedAt() + case standard.FieldName: + m.ResetName() return nil - case organizationsetting.FieldDeletedBy: - m.ResetDeletedBy() + case standard.FieldDescription: + m.ResetDescription() return nil - case organizationsetting.FieldDomains: - m.ResetDomains() + case standard.FieldFamily: + m.ResetFamily() return nil - case organizationsetting.FieldBillingContact: - m.ResetBillingContact() + case standard.FieldStatus: + m.ResetStatus() return nil - case organizationsetting.FieldBillingEmail: - m.ResetBillingEmail() + case standard.FieldStandardType: + m.ResetStandardType() return nil - case organizationsetting.FieldBillingPhone: - m.ResetBillingPhone() + case standard.FieldVersion: + m.ResetVersion() return nil - case organizationsetting.FieldBillingAddress: - m.ResetBillingAddress() + case standard.FieldPurposeAndScope: + m.ResetPurposeAndScope() return nil - case organizationsetting.FieldTaxIdentifier: - m.ResetTaxIdentifier() + case standard.FieldBackground: + m.ResetBackground() return nil - case organizationsetting.FieldGeoLocation: - m.ResetGeoLocation() + case standard.FieldSatisfies: + m.ResetSatisfies() return nil - case organizationsetting.FieldOrganizationID: - m.ResetOrganizationID() + case standard.FieldDetails: + m.ResetDetails() return nil } - return fmt.Errorf("unknown OrganizationSetting field %s", name) + return fmt.Errorf("unknown Standard field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *OrganizationSettingMutation) AddedEdges() []string { - edges := make([]string, 0, 2) - if m.organization != nil { - edges = append(edges, organizationsetting.EdgeOrganization) +func (m *StandardMutation) AddedEdges() []string { + edges := make([]string, 0, 4) + if m.controlobjectives != nil { + edges = append(edges, standard.EdgeControlobjectives) } - if m.files != nil { - edges = append(edges, organizationsetting.EdgeFiles) + if m.controls != nil { + edges = append(edges, standard.EdgeControls) + } + if m.procedures != nil { + edges = append(edges, standard.EdgeProcedures) + } + if m.actionplans != nil { + edges = append(edges, standard.EdgeActionplans) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *OrganizationSettingMutation) AddedIDs(name string) []ent.Value { +func (m *StandardMutation) AddedIDs(name string) []ent.Value { switch name { - case organizationsetting.EdgeOrganization: - if id := m.organization; id != nil { - return []ent.Value{*id} + case standard.EdgeControlobjectives: + ids := make([]ent.Value, 0, len(m.controlobjectives)) + for id := range m.controlobjectives { + ids = append(ids, id) } - case organizationsetting.EdgeFiles: - ids := make([]ent.Value, 0, len(m.files)) - for id := range m.files { + return ids + case standard.EdgeControls: + ids := make([]ent.Value, 0, len(m.controls)) + for id := range m.controls { + ids = append(ids, id) + } + return ids + case standard.EdgeProcedures: + ids := make([]ent.Value, 0, len(m.procedures)) + for id := range m.procedures { + ids = append(ids, id) + } + return ids + case standard.EdgeActionplans: + ids := make([]ent.Value, 0, len(m.actionplans)) + for id := range m.actionplans { ids = append(ids, id) } return ids @@ -65075,21 +96130,48 @@ func (m *OrganizationSettingMutation) AddedIDs(name string) []ent.Value { } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *OrganizationSettingMutation) RemovedEdges() []string { - edges := make([]string, 0, 2) - if m.removedfiles != nil { - edges = append(edges, organizationsetting.EdgeFiles) +func (m *StandardMutation) RemovedEdges() []string { + edges := make([]string, 0, 4) + if m.removedcontrolobjectives != nil { + edges = append(edges, standard.EdgeControlobjectives) + } + if m.removedcontrols != nil { + edges = append(edges, standard.EdgeControls) + } + if m.removedprocedures != nil { + edges = append(edges, standard.EdgeProcedures) + } + if m.removedactionplans != nil { + edges = append(edges, standard.EdgeActionplans) } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *OrganizationSettingMutation) RemovedIDs(name string) []ent.Value { +func (m *StandardMutation) RemovedIDs(name string) []ent.Value { switch name { - case organizationsetting.EdgeFiles: - ids := make([]ent.Value, 0, len(m.removedfiles)) - for id := range m.removedfiles { + case standard.EdgeControlobjectives: + ids := make([]ent.Value, 0, len(m.removedcontrolobjectives)) + for id := range m.removedcontrolobjectives { + ids = append(ids, id) + } + return ids + case standard.EdgeControls: + ids := make([]ent.Value, 0, len(m.removedcontrols)) + for id := range m.removedcontrols { + ids = append(ids, id) + } + return ids + case standard.EdgeProcedures: + ids := make([]ent.Value, 0, len(m.removedprocedures)) + for id := range m.removedprocedures { + ids = append(ids, id) + } + return ids + case standard.EdgeActionplans: + ids := make([]ent.Value, 0, len(m.removedactionplans)) + for id := range m.removedactionplans { ids = append(ids, id) } return ids @@ -65098,98 +96180,112 @@ func (m *OrganizationSettingMutation) RemovedIDs(name string) []ent.Value { } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *OrganizationSettingMutation) ClearedEdges() []string { - edges := make([]string, 0, 2) - if m.clearedorganization { - edges = append(edges, organizationsetting.EdgeOrganization) +func (m *StandardMutation) ClearedEdges() []string { + edges := make([]string, 0, 4) + if m.clearedcontrolobjectives { + edges = append(edges, standard.EdgeControlobjectives) } - if m.clearedfiles { - edges = append(edges, organizationsetting.EdgeFiles) + if m.clearedcontrols { + edges = append(edges, standard.EdgeControls) + } + if m.clearedprocedures { + edges = append(edges, standard.EdgeProcedures) + } + if m.clearedactionplans { + edges = append(edges, standard.EdgeActionplans) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *OrganizationSettingMutation) EdgeCleared(name string) bool { +func (m *StandardMutation) EdgeCleared(name string) bool { switch name { - case organizationsetting.EdgeOrganization: - return m.clearedorganization - case organizationsetting.EdgeFiles: - return m.clearedfiles + case standard.EdgeControlobjectives: + return m.clearedcontrolobjectives + case standard.EdgeControls: + return m.clearedcontrols + case standard.EdgeProcedures: + return m.clearedprocedures + case standard.EdgeActionplans: + return m.clearedactionplans } 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 *OrganizationSettingMutation) ClearEdge(name string) error { +func (m *StandardMutation) ClearEdge(name string) error { switch name { - case organizationsetting.EdgeOrganization: - m.ClearOrganization() - return nil } - return fmt.Errorf("unknown OrganizationSetting unique edge %s", name) + return fmt.Errorf("unknown Standard 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 *OrganizationSettingMutation) ResetEdge(name string) error { +func (m *StandardMutation) ResetEdge(name string) error { switch name { - case organizationsetting.EdgeOrganization: - m.ResetOrganization() + case standard.EdgeControlobjectives: + m.ResetControlobjectives() return nil - case organizationsetting.EdgeFiles: - m.ResetFiles() + case standard.EdgeControls: + m.ResetControls() + return nil + case standard.EdgeProcedures: + m.ResetProcedures() + return nil + case standard.EdgeActionplans: + m.ResetActionplans() return nil } - return fmt.Errorf("unknown OrganizationSetting edge %s", name) + return fmt.Errorf("unknown Standard edge %s", name) } -// OrganizationSettingHistoryMutation represents an operation that mutates the OrganizationSettingHistory nodes in the graph. -type OrganizationSettingHistoryMutation struct { +// StandardHistoryMutation represents an operation that mutates the StandardHistory nodes in the graph. +type StandardHistoryMutation 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 - mapping_id *string - tags *[]string - appendtags []string - deleted_at *time.Time - deleted_by *string - domains *[]string - appenddomains []string - billing_contact *string - billing_email *string - billing_phone *string - billing_address *string - tax_identifier *string - geo_location *enums.Region - organization_id *string - clearedFields map[string]struct{} - done bool - oldValue func(context.Context) (*OrganizationSettingHistory, error) - predicates []predicate.OrganizationSettingHistory + 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 + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + family *string + status *string + standard_type *string + version *string + purpose_and_scope *string + background *string + satisfies *string + details *map[string]interface{} + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*StandardHistory, error) + predicates []predicate.StandardHistory } -var _ ent.Mutation = (*OrganizationSettingHistoryMutation)(nil) +var _ ent.Mutation = (*StandardHistoryMutation)(nil) -// organizationsettinghistoryOption allows management of the mutation configuration using functional options. -type organizationsettinghistoryOption func(*OrganizationSettingHistoryMutation) +// standardhistoryOption allows management of the mutation configuration using functional options. +type standardhistoryOption func(*StandardHistoryMutation) -// newOrganizationSettingHistoryMutation creates new mutation for the OrganizationSettingHistory entity. -func newOrganizationSettingHistoryMutation(c config, op Op, opts ...organizationsettinghistoryOption) *OrganizationSettingHistoryMutation { - m := &OrganizationSettingHistoryMutation{ +// newStandardHistoryMutation creates new mutation for the StandardHistory entity. +func newStandardHistoryMutation(c config, op Op, opts ...standardhistoryOption) *StandardHistoryMutation { + m := &StandardHistoryMutation{ config: c, op: op, - typ: TypeOrganizationSettingHistory, + typ: TypeStandardHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -65198,20 +96294,20 @@ func newOrganizationSettingHistoryMutation(c config, op Op, opts ...organization return m } -// withOrganizationSettingHistoryID sets the ID field of the mutation. -func withOrganizationSettingHistoryID(id string) organizationsettinghistoryOption { - return func(m *OrganizationSettingHistoryMutation) { +// withStandardHistoryID sets the ID field of the mutation. +func withStandardHistoryID(id string) standardhistoryOption { + return func(m *StandardHistoryMutation) { var ( err error once sync.Once - value *OrganizationSettingHistory + value *StandardHistory ) - m.oldValue = func(ctx context.Context) (*OrganizationSettingHistory, error) { + m.oldValue = func(ctx context.Context) (*StandardHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().OrganizationSettingHistory.Get(ctx, id) + value, err = m.Client().StandardHistory.Get(ctx, id) } }) return value, err @@ -65220,10 +96316,10 @@ func withOrganizationSettingHistoryID(id string) organizationsettinghistoryOptio } } -// withOrganizationSettingHistory sets the old OrganizationSettingHistory of the mutation. -func withOrganizationSettingHistory(node *OrganizationSettingHistory) organizationsettinghistoryOption { - return func(m *OrganizationSettingHistoryMutation) { - m.oldValue = func(context.Context) (*OrganizationSettingHistory, error) { +// withStandardHistory sets the old StandardHistory of the mutation. +func withStandardHistory(node *StandardHistory) standardhistoryOption { + return func(m *StandardHistoryMutation) { + m.oldValue = func(context.Context) (*StandardHistory, error) { return node, nil } m.id = &node.ID @@ -65232,7 +96328,7 @@ func withOrganizationSettingHistory(node *OrganizationSettingHistory) organizati // 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 OrganizationSettingHistoryMutation) Client() *Client { +func (m StandardHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -65240,7 +96336,7 @@ func (m OrganizationSettingHistoryMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m OrganizationSettingHistoryMutation) Tx() (*Tx, error) { +func (m StandardHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -65250,14 +96346,14 @@ func (m OrganizationSettingHistoryMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of OrganizationSettingHistory entities. -func (m *OrganizationSettingHistoryMutation) SetID(id string) { +// operation is only accepted on creation of StandardHistory entities. +func (m *StandardHistoryMutation) 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 *OrganizationSettingHistoryMutation) ID() (id string, exists bool) { +func (m *StandardHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -65268,7 +96364,7 @@ func (m *OrganizationSettingHistoryMutation) ID() (id string, exists bool) { // 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 *OrganizationSettingHistoryMutation) IDs(ctx context.Context) ([]string, error) { +func (m *StandardHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -65277,19 +96373,19 @@ func (m *OrganizationSettingHistoryMutation) IDs(ctx context.Context) ([]string, } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().OrganizationSettingHistory.Query().Where(m.predicates...).IDs(ctx) + return m.Client().StandardHistory.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 *OrganizationSettingHistoryMutation) SetHistoryTime(t time.Time) { +func (m *StandardHistoryMutation) SetHistoryTime(t time.Time) { m.history_time = &t } // HistoryTime returns the value of the "history_time" field in the mutation. -func (m *OrganizationSettingHistoryMutation) HistoryTime() (r time.Time, exists bool) { +func (m *StandardHistoryMutation) HistoryTime() (r time.Time, exists bool) { v := m.history_time if v == nil { return @@ -65297,10 +96393,10 @@ func (m *OrganizationSettingHistoryMutation) HistoryTime() (r time.Time, exists return *v, true } -// OldHistoryTime returns the old "history_time" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldHistoryTime returns the old "history_time" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { +func (m *StandardHistoryMutation) 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") } @@ -65315,17 +96411,17 @@ func (m *OrganizationSettingHistoryMutation) OldHistoryTime(ctx context.Context) } // ResetHistoryTime resets all changes to the "history_time" field. -func (m *OrganizationSettingHistoryMutation) ResetHistoryTime() { +func (m *StandardHistoryMutation) ResetHistoryTime() { m.history_time = nil } // SetRef sets the "ref" field. -func (m *OrganizationSettingHistoryMutation) SetRef(s string) { +func (m *StandardHistoryMutation) SetRef(s string) { m.ref = &s } // Ref returns the value of the "ref" field in the mutation. -func (m *OrganizationSettingHistoryMutation) Ref() (r string, exists bool) { +func (m *StandardHistoryMutation) Ref() (r string, exists bool) { v := m.ref if v == nil { return @@ -65333,10 +96429,10 @@ func (m *OrganizationSettingHistoryMutation) Ref() (r string, exists bool) { return *v, true } -// OldRef returns the old "ref" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldRef returns the old "ref" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldRef(ctx context.Context) (v string, err error) { +func (m *StandardHistoryMutation) OldRef(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldRef is only allowed on UpdateOne operations") } @@ -65351,30 +96447,30 @@ func (m *OrganizationSettingHistoryMutation) OldRef(ctx context.Context) (v stri } // ClearRef clears the value of the "ref" field. -func (m *OrganizationSettingHistoryMutation) ClearRef() { +func (m *StandardHistoryMutation) ClearRef() { m.ref = nil - m.clearedFields[organizationsettinghistory.FieldRef] = struct{}{} + m.clearedFields[standardhistory.FieldRef] = struct{}{} } // RefCleared returns if the "ref" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) RefCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldRef] +func (m *StandardHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldRef] return ok } // ResetRef resets all changes to the "ref" field. -func (m *OrganizationSettingHistoryMutation) ResetRef() { +func (m *StandardHistoryMutation) ResetRef() { m.ref = nil - delete(m.clearedFields, organizationsettinghistory.FieldRef) + delete(m.clearedFields, standardhistory.FieldRef) } // SetOperation sets the "operation" field. -func (m *OrganizationSettingHistoryMutation) SetOperation(ht history.OpType) { +func (m *StandardHistoryMutation) SetOperation(ht history.OpType) { m.operation = &ht } // Operation returns the value of the "operation" field in the mutation. -func (m *OrganizationSettingHistoryMutation) Operation() (r history.OpType, exists bool) { +func (m *StandardHistoryMutation) Operation() (r history.OpType, exists bool) { v := m.operation if v == nil { return @@ -65382,10 +96478,10 @@ func (m *OrganizationSettingHistoryMutation) Operation() (r history.OpType, exis return *v, true } -// OldOperation returns the old "operation" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldOperation returns the old "operation" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { +func (m *StandardHistoryMutation) 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") } @@ -65400,17 +96496,17 @@ func (m *OrganizationSettingHistoryMutation) OldOperation(ctx context.Context) ( } // ResetOperation resets all changes to the "operation" field. -func (m *OrganizationSettingHistoryMutation) ResetOperation() { +func (m *StandardHistoryMutation) ResetOperation() { m.operation = nil } // SetCreatedAt sets the "created_at" field. -func (m *OrganizationSettingHistoryMutation) SetCreatedAt(t time.Time) { +func (m *StandardHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *OrganizationSettingHistoryMutation) CreatedAt() (r time.Time, exists bool) { +func (m *StandardHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -65418,10 +96514,10 @@ func (m *OrganizationSettingHistoryMutation) CreatedAt() (r time.Time, exists bo return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *StandardHistoryMutation) 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") } @@ -65436,30 +96532,30 @@ func (m *OrganizationSettingHistoryMutation) OldCreatedAt(ctx context.Context) ( } // ClearCreatedAt clears the value of the "created_at" field. -func (m *OrganizationSettingHistoryMutation) ClearCreatedAt() { +func (m *StandardHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[organizationsettinghistory.FieldCreatedAt] = struct{}{} + m.clearedFields[standardhistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldCreatedAt] +func (m *StandardHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *OrganizationSettingHistoryMutation) ResetCreatedAt() { +func (m *StandardHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, organizationsettinghistory.FieldCreatedAt) + delete(m.clearedFields, standardhistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *OrganizationSettingHistoryMutation) SetUpdatedAt(t time.Time) { +func (m *StandardHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *OrganizationSettingHistoryMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *StandardHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -65467,10 +96563,10 @@ func (m *OrganizationSettingHistoryMutation) UpdatedAt() (r time.Time, exists bo return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *StandardHistoryMutation) 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") } @@ -65485,30 +96581,30 @@ func (m *OrganizationSettingHistoryMutation) OldUpdatedAt(ctx context.Context) ( } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *OrganizationSettingHistoryMutation) ClearUpdatedAt() { +func (m *StandardHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[organizationsettinghistory.FieldUpdatedAt] = struct{}{} + m.clearedFields[standardhistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldUpdatedAt] +func (m *StandardHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *OrganizationSettingHistoryMutation) ResetUpdatedAt() { +func (m *StandardHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, organizationsettinghistory.FieldUpdatedAt) + delete(m.clearedFields, standardhistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *OrganizationSettingHistoryMutation) SetCreatedBy(s string) { +func (m *StandardHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *OrganizationSettingHistoryMutation) CreatedBy() (r string, exists bool) { +func (m *StandardHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -65516,10 +96612,10 @@ func (m *OrganizationSettingHistoryMutation) CreatedBy() (r string, exists bool) return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *StandardHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -65534,30 +96630,30 @@ func (m *OrganizationSettingHistoryMutation) OldCreatedBy(ctx context.Context) ( } // ClearCreatedBy clears the value of the "created_by" field. -func (m *OrganizationSettingHistoryMutation) ClearCreatedBy() { +func (m *StandardHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[organizationsettinghistory.FieldCreatedBy] = struct{}{} + m.clearedFields[standardhistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldCreatedBy] +func (m *StandardHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *OrganizationSettingHistoryMutation) ResetCreatedBy() { +func (m *StandardHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, organizationsettinghistory.FieldCreatedBy) + delete(m.clearedFields, standardhistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *OrganizationSettingHistoryMutation) SetUpdatedBy(s string) { +func (m *StandardHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *OrganizationSettingHistoryMutation) UpdatedBy() (r string, exists bool) { +func (m *StandardHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -65565,10 +96661,10 @@ func (m *OrganizationSettingHistoryMutation) UpdatedBy() (r string, exists bool) return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *StandardHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -65583,30 +96679,128 @@ func (m *OrganizationSettingHistoryMutation) OldUpdatedBy(ctx context.Context) ( } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *OrganizationSettingHistoryMutation) ClearUpdatedBy() { +func (m *StandardHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[organizationsettinghistory.FieldUpdatedBy] = struct{}{} + m.clearedFields[standardhistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldUpdatedBy] +func (m *StandardHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *OrganizationSettingHistoryMutation) ResetUpdatedBy() { +func (m *StandardHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, organizationsettinghistory.FieldUpdatedBy) + delete(m.clearedFields, standardhistory.FieldUpdatedBy) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *StandardHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *StandardHistoryMutation) 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 StandardHistory entity. +// If the StandardHistory 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 *StandardHistoryMutation) 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 *StandardHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[standardhistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *StandardHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *StandardHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, standardhistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *StandardHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *StandardHistoryMutation) 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 StandardHistory entity. +// If the StandardHistory 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 *StandardHistoryMutation) 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 *StandardHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[standardhistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *StandardHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *StandardHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, standardhistory.FieldDeletedBy) } // SetMappingID sets the "mapping_id" field. -func (m *OrganizationSettingHistoryMutation) SetMappingID(s string) { +func (m *StandardHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *OrganizationSettingHistoryMutation) MappingID() (r string, exists bool) { +func (m *StandardHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -65614,10 +96808,10 @@ func (m *OrganizationSettingHistoryMutation) MappingID() (r string, exists bool) return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *StandardHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -65632,18 +96826,18 @@ func (m *OrganizationSettingHistoryMutation) OldMappingID(ctx context.Context) ( } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *OrganizationSettingHistoryMutation) ResetMappingID() { +func (m *StandardHistoryMutation) ResetMappingID() { m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *OrganizationSettingHistoryMutation) SetTags(s []string) { +func (m *StandardHistoryMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *OrganizationSettingHistoryMutation) Tags() (r []string, exists bool) { +func (m *StandardHistoryMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -65651,10 +96845,10 @@ func (m *OrganizationSettingHistoryMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *StandardHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -65669,12 +96863,12 @@ func (m *OrganizationSettingHistoryMutation) OldTags(ctx context.Context) (v []s } // AppendTags adds s to the "tags" field. -func (m *OrganizationSettingHistoryMutation) AppendTags(s []string) { +func (m *StandardHistoryMutation) 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 *OrganizationSettingHistoryMutation) AppendedTags() ([]string, bool) { +func (m *StandardHistoryMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -65682,540 +96876,511 @@ func (m *OrganizationSettingHistoryMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *OrganizationSettingHistoryMutation) ClearTags() { +func (m *StandardHistoryMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[organizationsettinghistory.FieldTags] = struct{}{} + m.clearedFields[standardhistory.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) TagsCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldTags] +func (m *StandardHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *OrganizationSettingHistoryMutation) ResetTags() { +func (m *StandardHistoryMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, organizationsettinghistory.FieldTags) + delete(m.clearedFields, standardhistory.FieldTags) } -// SetDeletedAt sets the "deleted_at" field. -func (m *OrganizationSettingHistoryMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SetName sets the "name" field. +func (m *StandardHistoryMutation) SetName(s string) { + m.name = &s } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *OrganizationSettingHistoryMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// Name returns the value of the "name" field in the mutation. +func (m *StandardHistoryMutation) Name() (r string, exists bool) { + v := m.name if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *StandardHistoryMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldName 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") + 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 OldDeletedAt: %w", err) + return v, fmt.Errorf("querying old value for OldName: %w", err) } - return oldValue.DeletedAt, nil -} - -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *OrganizationSettingHistoryMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[organizationsettinghistory.FieldDeletedAt] = struct{}{} -} - -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldDeletedAt] - return ok + return oldValue.Name, nil } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *OrganizationSettingHistoryMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, organizationsettinghistory.FieldDeletedAt) +// ResetName resets all changes to the "name" field. +func (m *StandardHistoryMutation) ResetName() { + m.name = nil } -// SetDeletedBy sets the "deleted_by" field. -func (m *OrganizationSettingHistoryMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetDescription sets the "description" field. +func (m *StandardHistoryMutation) SetDescription(s string) { + m.description = &s } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *OrganizationSettingHistoryMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// Description returns the value of the "description" field in the mutation. +func (m *StandardHistoryMutation) Description() (r string, exists bool) { + v := m.description if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *StandardHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldDescription 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") + 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 OldDeletedBy: %w", err) + return v, fmt.Errorf("querying old value for OldDescription: %w", err) } - return oldValue.DeletedBy, nil -} - -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *OrganizationSettingHistoryMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[organizationsettinghistory.FieldDeletedBy] = struct{}{} + return oldValue.Description, nil } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldDeletedBy] +// ClearDescription clears the value of the "description" field. +func (m *StandardHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[standardhistory.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *StandardHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldDescription] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *OrganizationSettingHistoryMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, organizationsettinghistory.FieldDeletedBy) +// ResetDescription resets all changes to the "description" field. +func (m *StandardHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, standardhistory.FieldDescription) } -// SetDomains sets the "domains" field. -func (m *OrganizationSettingHistoryMutation) SetDomains(s []string) { - m.domains = &s - m.appenddomains = nil +// SetFamily sets the "family" field. +func (m *StandardHistoryMutation) SetFamily(s string) { + m.family = &s } -// Domains returns the value of the "domains" field in the mutation. -func (m *OrganizationSettingHistoryMutation) Domains() (r []string, exists bool) { - v := m.domains +// Family returns the value of the "family" field in the mutation. +func (m *StandardHistoryMutation) Family() (r string, exists bool) { + v := m.family if v == nil { return } return *v, true } -// OldDomains returns the old "domains" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldFamily returns the old "family" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldDomains(ctx context.Context) (v []string, err error) { +func (m *StandardHistoryMutation) OldFamily(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDomains is only allowed on UpdateOne operations") + return v, errors.New("OldFamily is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldDomains requires an ID field in the mutation") + return v, errors.New("OldFamily requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldDomains: %w", err) - } - return oldValue.Domains, nil -} - -// AppendDomains adds s to the "domains" field. -func (m *OrganizationSettingHistoryMutation) AppendDomains(s []string) { - m.appenddomains = append(m.appenddomains, s...) -} - -// AppendedDomains returns the list of values that were appended to the "domains" field in this mutation. -func (m *OrganizationSettingHistoryMutation) AppendedDomains() ([]string, bool) { - if len(m.appenddomains) == 0 { - return nil, false + return v, fmt.Errorf("querying old value for OldFamily: %w", err) } - return m.appenddomains, true + return oldValue.Family, nil } -// ClearDomains clears the value of the "domains" field. -func (m *OrganizationSettingHistoryMutation) ClearDomains() { - m.domains = nil - m.appenddomains = nil - m.clearedFields[organizationsettinghistory.FieldDomains] = struct{}{} +// ClearFamily clears the value of the "family" field. +func (m *StandardHistoryMutation) ClearFamily() { + m.family = nil + m.clearedFields[standardhistory.FieldFamily] = struct{}{} } -// DomainsCleared returns if the "domains" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) DomainsCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldDomains] +// FamilyCleared returns if the "family" field was cleared in this mutation. +func (m *StandardHistoryMutation) FamilyCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldFamily] return ok } -// ResetDomains resets all changes to the "domains" field. -func (m *OrganizationSettingHistoryMutation) ResetDomains() { - m.domains = nil - m.appenddomains = nil - delete(m.clearedFields, organizationsettinghistory.FieldDomains) +// ResetFamily resets all changes to the "family" field. +func (m *StandardHistoryMutation) ResetFamily() { + m.family = nil + delete(m.clearedFields, standardhistory.FieldFamily) } -// SetBillingContact sets the "billing_contact" field. -func (m *OrganizationSettingHistoryMutation) SetBillingContact(s string) { - m.billing_contact = &s +// SetStatus sets the "status" field. +func (m *StandardHistoryMutation) SetStatus(s string) { + m.status = &s } -// BillingContact returns the value of the "billing_contact" field in the mutation. -func (m *OrganizationSettingHistoryMutation) BillingContact() (r string, exists bool) { - v := m.billing_contact +// Status returns the value of the "status" field in the mutation. +func (m *StandardHistoryMutation) Status() (r string, exists bool) { + v := m.status if v == nil { return } return *v, true } -// OldBillingContact returns the old "billing_contact" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldStatus returns the old "status" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldBillingContact(ctx context.Context) (v string, err error) { +func (m *StandardHistoryMutation) OldStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldBillingContact is only allowed on UpdateOne operations") + return v, errors.New("OldStatus is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldBillingContact requires an ID field in the mutation") + return v, errors.New("OldStatus requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldBillingContact: %w", err) + return v, fmt.Errorf("querying old value for OldStatus: %w", err) } - return oldValue.BillingContact, nil + return oldValue.Status, nil } -// ClearBillingContact clears the value of the "billing_contact" field. -func (m *OrganizationSettingHistoryMutation) ClearBillingContact() { - m.billing_contact = nil - m.clearedFields[organizationsettinghistory.FieldBillingContact] = struct{}{} +// ClearStatus clears the value of the "status" field. +func (m *StandardHistoryMutation) ClearStatus() { + m.status = nil + m.clearedFields[standardhistory.FieldStatus] = struct{}{} } -// BillingContactCleared returns if the "billing_contact" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) BillingContactCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldBillingContact] +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *StandardHistoryMutation) StatusCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldStatus] return ok } -// ResetBillingContact resets all changes to the "billing_contact" field. -func (m *OrganizationSettingHistoryMutation) ResetBillingContact() { - m.billing_contact = nil - delete(m.clearedFields, organizationsettinghistory.FieldBillingContact) +// ResetStatus resets all changes to the "status" field. +func (m *StandardHistoryMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, standardhistory.FieldStatus) } -// SetBillingEmail sets the "billing_email" field. -func (m *OrganizationSettingHistoryMutation) SetBillingEmail(s string) { - m.billing_email = &s +// SetStandardType sets the "standard_type" field. +func (m *StandardHistoryMutation) SetStandardType(s string) { + m.standard_type = &s } -// BillingEmail returns the value of the "billing_email" field in the mutation. -func (m *OrganizationSettingHistoryMutation) BillingEmail() (r string, exists bool) { - v := m.billing_email +// StandardType returns the value of the "standard_type" field in the mutation. +func (m *StandardHistoryMutation) StandardType() (r string, exists bool) { + v := m.standard_type if v == nil { return } return *v, true } -// OldBillingEmail returns the old "billing_email" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldStandardType returns the old "standard_type" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldBillingEmail(ctx context.Context) (v string, err error) { +func (m *StandardHistoryMutation) OldStandardType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldBillingEmail is only allowed on UpdateOne operations") + return v, errors.New("OldStandardType is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldBillingEmail requires an ID field in the mutation") + return v, errors.New("OldStandardType requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldBillingEmail: %w", err) + return v, fmt.Errorf("querying old value for OldStandardType: %w", err) } - return oldValue.BillingEmail, nil + return oldValue.StandardType, nil } -// ClearBillingEmail clears the value of the "billing_email" field. -func (m *OrganizationSettingHistoryMutation) ClearBillingEmail() { - m.billing_email = nil - m.clearedFields[organizationsettinghistory.FieldBillingEmail] = struct{}{} +// ClearStandardType clears the value of the "standard_type" field. +func (m *StandardHistoryMutation) ClearStandardType() { + m.standard_type = nil + m.clearedFields[standardhistory.FieldStandardType] = struct{}{} } -// BillingEmailCleared returns if the "billing_email" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) BillingEmailCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldBillingEmail] +// StandardTypeCleared returns if the "standard_type" field was cleared in this mutation. +func (m *StandardHistoryMutation) StandardTypeCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldStandardType] return ok } -// ResetBillingEmail resets all changes to the "billing_email" field. -func (m *OrganizationSettingHistoryMutation) ResetBillingEmail() { - m.billing_email = nil - delete(m.clearedFields, organizationsettinghistory.FieldBillingEmail) +// ResetStandardType resets all changes to the "standard_type" field. +func (m *StandardHistoryMutation) ResetStandardType() { + m.standard_type = nil + delete(m.clearedFields, standardhistory.FieldStandardType) } -// SetBillingPhone sets the "billing_phone" field. -func (m *OrganizationSettingHistoryMutation) SetBillingPhone(s string) { - m.billing_phone = &s +// SetVersion sets the "version" field. +func (m *StandardHistoryMutation) SetVersion(s string) { + m.version = &s } -// BillingPhone returns the value of the "billing_phone" field in the mutation. -func (m *OrganizationSettingHistoryMutation) BillingPhone() (r string, exists bool) { - v := m.billing_phone +// Version returns the value of the "version" field in the mutation. +func (m *StandardHistoryMutation) Version() (r string, exists bool) { + v := m.version if v == nil { return } return *v, true } -// OldBillingPhone returns the old "billing_phone" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldVersion returns the old "version" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldBillingPhone(ctx context.Context) (v string, err error) { +func (m *StandardHistoryMutation) OldVersion(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldBillingPhone is only allowed on UpdateOne operations") + return v, errors.New("OldVersion is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldBillingPhone requires an ID field in the mutation") + return v, errors.New("OldVersion requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldBillingPhone: %w", err) + return v, fmt.Errorf("querying old value for OldVersion: %w", err) } - return oldValue.BillingPhone, nil + return oldValue.Version, nil } -// ClearBillingPhone clears the value of the "billing_phone" field. -func (m *OrganizationSettingHistoryMutation) ClearBillingPhone() { - m.billing_phone = nil - m.clearedFields[organizationsettinghistory.FieldBillingPhone] = struct{}{} +// ClearVersion clears the value of the "version" field. +func (m *StandardHistoryMutation) ClearVersion() { + m.version = nil + m.clearedFields[standardhistory.FieldVersion] = struct{}{} } -// BillingPhoneCleared returns if the "billing_phone" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) BillingPhoneCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldBillingPhone] +// VersionCleared returns if the "version" field was cleared in this mutation. +func (m *StandardHistoryMutation) VersionCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldVersion] return ok } -// ResetBillingPhone resets all changes to the "billing_phone" field. -func (m *OrganizationSettingHistoryMutation) ResetBillingPhone() { - m.billing_phone = nil - delete(m.clearedFields, organizationsettinghistory.FieldBillingPhone) +// ResetVersion resets all changes to the "version" field. +func (m *StandardHistoryMutation) ResetVersion() { + m.version = nil + delete(m.clearedFields, standardhistory.FieldVersion) } -// SetBillingAddress sets the "billing_address" field. -func (m *OrganizationSettingHistoryMutation) SetBillingAddress(s string) { - m.billing_address = &s +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (m *StandardHistoryMutation) SetPurposeAndScope(s string) { + m.purpose_and_scope = &s } -// BillingAddress returns the value of the "billing_address" field in the mutation. -func (m *OrganizationSettingHistoryMutation) BillingAddress() (r string, exists bool) { - v := m.billing_address +// PurposeAndScope returns the value of the "purpose_and_scope" field in the mutation. +func (m *StandardHistoryMutation) PurposeAndScope() (r string, exists bool) { + v := m.purpose_and_scope if v == nil { return } return *v, true } -// OldBillingAddress returns the old "billing_address" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldPurposeAndScope returns the old "purpose_and_scope" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldBillingAddress(ctx context.Context) (v string, err error) { +func (m *StandardHistoryMutation) OldPurposeAndScope(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldBillingAddress is only allowed on UpdateOne operations") + return v, errors.New("OldPurposeAndScope is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldBillingAddress requires an ID field in the mutation") + return v, errors.New("OldPurposeAndScope requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldBillingAddress: %w", err) + return v, fmt.Errorf("querying old value for OldPurposeAndScope: %w", err) } - return oldValue.BillingAddress, nil + return oldValue.PurposeAndScope, nil } -// ClearBillingAddress clears the value of the "billing_address" field. -func (m *OrganizationSettingHistoryMutation) ClearBillingAddress() { - m.billing_address = nil - m.clearedFields[organizationsettinghistory.FieldBillingAddress] = struct{}{} +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (m *StandardHistoryMutation) ClearPurposeAndScope() { + m.purpose_and_scope = nil + m.clearedFields[standardhistory.FieldPurposeAndScope] = struct{}{} } -// BillingAddressCleared returns if the "billing_address" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) BillingAddressCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldBillingAddress] +// PurposeAndScopeCleared returns if the "purpose_and_scope" field was cleared in this mutation. +func (m *StandardHistoryMutation) PurposeAndScopeCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldPurposeAndScope] return ok } -// ResetBillingAddress resets all changes to the "billing_address" field. -func (m *OrganizationSettingHistoryMutation) ResetBillingAddress() { - m.billing_address = nil - delete(m.clearedFields, organizationsettinghistory.FieldBillingAddress) +// ResetPurposeAndScope resets all changes to the "purpose_and_scope" field. +func (m *StandardHistoryMutation) ResetPurposeAndScope() { + m.purpose_and_scope = nil + delete(m.clearedFields, standardhistory.FieldPurposeAndScope) } -// SetTaxIdentifier sets the "tax_identifier" field. -func (m *OrganizationSettingHistoryMutation) SetTaxIdentifier(s string) { - m.tax_identifier = &s +// SetBackground sets the "background" field. +func (m *StandardHistoryMutation) SetBackground(s string) { + m.background = &s } -// TaxIdentifier returns the value of the "tax_identifier" field in the mutation. -func (m *OrganizationSettingHistoryMutation) TaxIdentifier() (r string, exists bool) { - v := m.tax_identifier +// Background returns the value of the "background" field in the mutation. +func (m *StandardHistoryMutation) Background() (r string, exists bool) { + v := m.background if v == nil { return } return *v, true } -// OldTaxIdentifier returns the old "tax_identifier" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldBackground returns the old "background" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldTaxIdentifier(ctx context.Context) (v string, err error) { +func (m *StandardHistoryMutation) OldBackground(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTaxIdentifier is only allowed on UpdateOne operations") + return v, errors.New("OldBackground is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldTaxIdentifier requires an ID field in the mutation") + return v, errors.New("OldBackground requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldTaxIdentifier: %w", err) + return v, fmt.Errorf("querying old value for OldBackground: %w", err) } - return oldValue.TaxIdentifier, nil + return oldValue.Background, nil } -// ClearTaxIdentifier clears the value of the "tax_identifier" field. -func (m *OrganizationSettingHistoryMutation) ClearTaxIdentifier() { - m.tax_identifier = nil - m.clearedFields[organizationsettinghistory.FieldTaxIdentifier] = struct{}{} +// ClearBackground clears the value of the "background" field. +func (m *StandardHistoryMutation) ClearBackground() { + m.background = nil + m.clearedFields[standardhistory.FieldBackground] = struct{}{} } -// TaxIdentifierCleared returns if the "tax_identifier" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) TaxIdentifierCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldTaxIdentifier] +// BackgroundCleared returns if the "background" field was cleared in this mutation. +func (m *StandardHistoryMutation) BackgroundCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldBackground] return ok } -// ResetTaxIdentifier resets all changes to the "tax_identifier" field. -func (m *OrganizationSettingHistoryMutation) ResetTaxIdentifier() { - m.tax_identifier = nil - delete(m.clearedFields, organizationsettinghistory.FieldTaxIdentifier) +// ResetBackground resets all changes to the "background" field. +func (m *StandardHistoryMutation) ResetBackground() { + m.background = nil + delete(m.clearedFields, standardhistory.FieldBackground) } -// SetGeoLocation sets the "geo_location" field. -func (m *OrganizationSettingHistoryMutation) SetGeoLocation(e enums.Region) { - m.geo_location = &e +// SetSatisfies sets the "satisfies" field. +func (m *StandardHistoryMutation) SetSatisfies(s string) { + m.satisfies = &s } -// GeoLocation returns the value of the "geo_location" field in the mutation. -func (m *OrganizationSettingHistoryMutation) GeoLocation() (r enums.Region, exists bool) { - v := m.geo_location +// Satisfies returns the value of the "satisfies" field in the mutation. +func (m *StandardHistoryMutation) Satisfies() (r string, exists bool) { + v := m.satisfies if v == nil { return } return *v, true } -// OldGeoLocation returns the old "geo_location" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldSatisfies returns the old "satisfies" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldGeoLocation(ctx context.Context) (v enums.Region, err error) { +func (m *StandardHistoryMutation) OldSatisfies(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldGeoLocation is only allowed on UpdateOne operations") + return v, errors.New("OldSatisfies is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldGeoLocation requires an ID field in the mutation") + return v, errors.New("OldSatisfies requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldGeoLocation: %w", err) + return v, fmt.Errorf("querying old value for OldSatisfies: %w", err) } - return oldValue.GeoLocation, nil + return oldValue.Satisfies, nil } -// ClearGeoLocation clears the value of the "geo_location" field. -func (m *OrganizationSettingHistoryMutation) ClearGeoLocation() { - m.geo_location = nil - m.clearedFields[organizationsettinghistory.FieldGeoLocation] = struct{}{} +// ClearSatisfies clears the value of the "satisfies" field. +func (m *StandardHistoryMutation) ClearSatisfies() { + m.satisfies = nil + m.clearedFields[standardhistory.FieldSatisfies] = struct{}{} } -// GeoLocationCleared returns if the "geo_location" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) GeoLocationCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldGeoLocation] +// SatisfiesCleared returns if the "satisfies" field was cleared in this mutation. +func (m *StandardHistoryMutation) SatisfiesCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldSatisfies] return ok } -// ResetGeoLocation resets all changes to the "geo_location" field. -func (m *OrganizationSettingHistoryMutation) ResetGeoLocation() { - m.geo_location = nil - delete(m.clearedFields, organizationsettinghistory.FieldGeoLocation) +// ResetSatisfies resets all changes to the "satisfies" field. +func (m *StandardHistoryMutation) ResetSatisfies() { + m.satisfies = nil + delete(m.clearedFields, standardhistory.FieldSatisfies) } -// SetOrganizationID sets the "organization_id" field. -func (m *OrganizationSettingHistoryMutation) SetOrganizationID(s string) { - m.organization_id = &s +// SetDetails sets the "details" field. +func (m *StandardHistoryMutation) SetDetails(value map[string]interface{}) { + m.details = &value } -// OrganizationID returns the value of the "organization_id" field in the mutation. -func (m *OrganizationSettingHistoryMutation) OrganizationID() (r string, exists bool) { - v := m.organization_id +// Details returns the value of the "details" field in the mutation. +func (m *StandardHistoryMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details if v == nil { return } return *v, true } -// OldOrganizationID returns the old "organization_id" field's value of the OrganizationSettingHistory entity. -// If the OrganizationSettingHistory object wasn't provided to the builder, the object is fetched from the database. +// OldDetails returns the old "details" field's value of the StandardHistory entity. +// If the StandardHistory 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 *OrganizationSettingHistoryMutation) OldOrganizationID(ctx context.Context) (v string, err error) { +func (m *StandardHistoryMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOrganizationID is only allowed on UpdateOne operations") + return v, errors.New("OldDetails is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldOrganizationID requires an ID field in the mutation") + return v, errors.New("OldDetails requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldOrganizationID: %w", err) + return v, fmt.Errorf("querying old value for OldDetails: %w", err) } - return oldValue.OrganizationID, nil + return oldValue.Details, nil } -// ClearOrganizationID clears the value of the "organization_id" field. -func (m *OrganizationSettingHistoryMutation) ClearOrganizationID() { - m.organization_id = nil - m.clearedFields[organizationsettinghistory.FieldOrganizationID] = struct{}{} +// ClearDetails clears the value of the "details" field. +func (m *StandardHistoryMutation) ClearDetails() { + m.details = nil + m.clearedFields[standardhistory.FieldDetails] = struct{}{} } -// OrganizationIDCleared returns if the "organization_id" field was cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) OrganizationIDCleared() bool { - _, ok := m.clearedFields[organizationsettinghistory.FieldOrganizationID] +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *StandardHistoryMutation) DetailsCleared() bool { + _, ok := m.clearedFields[standardhistory.FieldDetails] return ok } -// ResetOrganizationID resets all changes to the "organization_id" field. -func (m *OrganizationSettingHistoryMutation) ResetOrganizationID() { - m.organization_id = nil - delete(m.clearedFields, organizationsettinghistory.FieldOrganizationID) +// ResetDetails resets all changes to the "details" field. +func (m *StandardHistoryMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, standardhistory.FieldDetails) } -// Where appends a list predicates to the OrganizationSettingHistoryMutation builder. -func (m *OrganizationSettingHistoryMutation) Where(ps ...predicate.OrganizationSettingHistory) { +// Where appends a list predicates to the StandardHistoryMutation builder. +func (m *StandardHistoryMutation) Where(ps ...predicate.StandardHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the OrganizationSettingHistoryMutation builder. Using this method, +// WhereP appends storage-level predicates to the StandardHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *OrganizationSettingHistoryMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.OrganizationSettingHistory, len(ps)) +func (m *StandardHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.StandardHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -66223,81 +97388,87 @@ func (m *OrganizationSettingHistoryMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *OrganizationSettingHistoryMutation) Op() Op { +func (m *StandardHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *OrganizationSettingHistoryMutation) SetOp(op Op) { +func (m *StandardHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (OrganizationSettingHistory). -func (m *OrganizationSettingHistoryMutation) Type() string { +// Type returns the node type of this mutation (StandardHistory). +func (m *StandardHistoryMutation) 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 *OrganizationSettingHistoryMutation) Fields() []string { - fields := make([]string, 0, 19) +func (m *StandardHistoryMutation) Fields() []string { + fields := make([]string, 0, 21) if m.history_time != nil { - fields = append(fields, organizationsettinghistory.FieldHistoryTime) + fields = append(fields, standardhistory.FieldHistoryTime) } if m.ref != nil { - fields = append(fields, organizationsettinghistory.FieldRef) + fields = append(fields, standardhistory.FieldRef) } if m.operation != nil { - fields = append(fields, organizationsettinghistory.FieldOperation) + fields = append(fields, standardhistory.FieldOperation) } if m.created_at != nil { - fields = append(fields, organizationsettinghistory.FieldCreatedAt) + fields = append(fields, standardhistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, organizationsettinghistory.FieldUpdatedAt) + fields = append(fields, standardhistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, organizationsettinghistory.FieldCreatedBy) + fields = append(fields, standardhistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, organizationsettinghistory.FieldUpdatedBy) + fields = append(fields, standardhistory.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, standardhistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, standardhistory.FieldDeletedBy) } if m.mapping_id != nil { - fields = append(fields, organizationsettinghistory.FieldMappingID) + fields = append(fields, standardhistory.FieldMappingID) } if m.tags != nil { - fields = append(fields, organizationsettinghistory.FieldTags) + fields = append(fields, standardhistory.FieldTags) } - if m.deleted_at != nil { - fields = append(fields, organizationsettinghistory.FieldDeletedAt) + if m.name != nil { + fields = append(fields, standardhistory.FieldName) } - if m.deleted_by != nil { - fields = append(fields, organizationsettinghistory.FieldDeletedBy) + if m.description != nil { + fields = append(fields, standardhistory.FieldDescription) } - if m.domains != nil { - fields = append(fields, organizationsettinghistory.FieldDomains) + if m.family != nil { + fields = append(fields, standardhistory.FieldFamily) } - if m.billing_contact != nil { - fields = append(fields, organizationsettinghistory.FieldBillingContact) + if m.status != nil { + fields = append(fields, standardhistory.FieldStatus) } - if m.billing_email != nil { - fields = append(fields, organizationsettinghistory.FieldBillingEmail) + if m.standard_type != nil { + fields = append(fields, standardhistory.FieldStandardType) } - if m.billing_phone != nil { - fields = append(fields, organizationsettinghistory.FieldBillingPhone) + if m.version != nil { + fields = append(fields, standardhistory.FieldVersion) } - if m.billing_address != nil { - fields = append(fields, organizationsettinghistory.FieldBillingAddress) + if m.purpose_and_scope != nil { + fields = append(fields, standardhistory.FieldPurposeAndScope) } - if m.tax_identifier != nil { - fields = append(fields, organizationsettinghistory.FieldTaxIdentifier) + if m.background != nil { + fields = append(fields, standardhistory.FieldBackground) } - if m.geo_location != nil { - fields = append(fields, organizationsettinghistory.FieldGeoLocation) + if m.satisfies != nil { + fields = append(fields, standardhistory.FieldSatisfies) } - if m.organization_id != nil { - fields = append(fields, organizationsettinghistory.FieldOrganizationID) + if m.details != nil { + fields = append(fields, standardhistory.FieldDetails) } return fields } @@ -66305,46 +97476,50 @@ func (m *OrganizationSettingHistoryMutation) Fields() []string { // 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 *OrganizationSettingHistoryMutation) Field(name string) (ent.Value, bool) { +func (m *StandardHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case organizationsettinghistory.FieldHistoryTime: + case standardhistory.FieldHistoryTime: return m.HistoryTime() - case organizationsettinghistory.FieldRef: + case standardhistory.FieldRef: return m.Ref() - case organizationsettinghistory.FieldOperation: + case standardhistory.FieldOperation: return m.Operation() - case organizationsettinghistory.FieldCreatedAt: + case standardhistory.FieldCreatedAt: return m.CreatedAt() - case organizationsettinghistory.FieldUpdatedAt: + case standardhistory.FieldUpdatedAt: return m.UpdatedAt() - case organizationsettinghistory.FieldCreatedBy: + case standardhistory.FieldCreatedBy: return m.CreatedBy() - case organizationsettinghistory.FieldUpdatedBy: + case standardhistory.FieldUpdatedBy: return m.UpdatedBy() - case organizationsettinghistory.FieldMappingID: - return m.MappingID() - case organizationsettinghistory.FieldTags: - return m.Tags() - case organizationsettinghistory.FieldDeletedAt: + case standardhistory.FieldDeletedAt: return m.DeletedAt() - case organizationsettinghistory.FieldDeletedBy: + case standardhistory.FieldDeletedBy: return m.DeletedBy() - case organizationsettinghistory.FieldDomains: - return m.Domains() - case organizationsettinghistory.FieldBillingContact: - return m.BillingContact() - case organizationsettinghistory.FieldBillingEmail: - return m.BillingEmail() - case organizationsettinghistory.FieldBillingPhone: - return m.BillingPhone() - case organizationsettinghistory.FieldBillingAddress: - return m.BillingAddress() - case organizationsettinghistory.FieldTaxIdentifier: - return m.TaxIdentifier() - case organizationsettinghistory.FieldGeoLocation: - return m.GeoLocation() - case organizationsettinghistory.FieldOrganizationID: - return m.OrganizationID() + case standardhistory.FieldMappingID: + return m.MappingID() + case standardhistory.FieldTags: + return m.Tags() + case standardhistory.FieldName: + return m.Name() + case standardhistory.FieldDescription: + return m.Description() + case standardhistory.FieldFamily: + return m.Family() + case standardhistory.FieldStatus: + return m.Status() + case standardhistory.FieldStandardType: + return m.StandardType() + case standardhistory.FieldVersion: + return m.Version() + case standardhistory.FieldPurposeAndScope: + return m.PurposeAndScope() + case standardhistory.FieldBackground: + return m.Background() + case standardhistory.FieldSatisfies: + return m.Satisfies() + case standardhistory.FieldDetails: + return m.Details() } return nil, false } @@ -66352,481 +97527,531 @@ func (m *OrganizationSettingHistoryMutation) Field(name string) (ent.Value, bool // 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 *OrganizationSettingHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *StandardHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case organizationsettinghistory.FieldHistoryTime: + case standardhistory.FieldHistoryTime: return m.OldHistoryTime(ctx) - case organizationsettinghistory.FieldRef: + case standardhistory.FieldRef: return m.OldRef(ctx) - case organizationsettinghistory.FieldOperation: + case standardhistory.FieldOperation: return m.OldOperation(ctx) - case organizationsettinghistory.FieldCreatedAt: + case standardhistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case organizationsettinghistory.FieldUpdatedAt: + case standardhistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case organizationsettinghistory.FieldCreatedBy: + case standardhistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case organizationsettinghistory.FieldUpdatedBy: + case standardhistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case organizationsettinghistory.FieldMappingID: - return m.OldMappingID(ctx) - case organizationsettinghistory.FieldTags: - return m.OldTags(ctx) - case organizationsettinghistory.FieldDeletedAt: + case standardhistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case organizationsettinghistory.FieldDeletedBy: + case standardhistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case organizationsettinghistory.FieldDomains: - return m.OldDomains(ctx) - case organizationsettinghistory.FieldBillingContact: - return m.OldBillingContact(ctx) - case organizationsettinghistory.FieldBillingEmail: - return m.OldBillingEmail(ctx) - case organizationsettinghistory.FieldBillingPhone: - return m.OldBillingPhone(ctx) - case organizationsettinghistory.FieldBillingAddress: - return m.OldBillingAddress(ctx) - case organizationsettinghistory.FieldTaxIdentifier: - return m.OldTaxIdentifier(ctx) - case organizationsettinghistory.FieldGeoLocation: - return m.OldGeoLocation(ctx) - case organizationsettinghistory.FieldOrganizationID: - return m.OldOrganizationID(ctx) + case standardhistory.FieldMappingID: + return m.OldMappingID(ctx) + case standardhistory.FieldTags: + return m.OldTags(ctx) + case standardhistory.FieldName: + return m.OldName(ctx) + case standardhistory.FieldDescription: + return m.OldDescription(ctx) + case standardhistory.FieldFamily: + return m.OldFamily(ctx) + case standardhistory.FieldStatus: + return m.OldStatus(ctx) + case standardhistory.FieldStandardType: + return m.OldStandardType(ctx) + case standardhistory.FieldVersion: + return m.OldVersion(ctx) + case standardhistory.FieldPurposeAndScope: + return m.OldPurposeAndScope(ctx) + case standardhistory.FieldBackground: + return m.OldBackground(ctx) + case standardhistory.FieldSatisfies: + return m.OldSatisfies(ctx) + case standardhistory.FieldDetails: + return m.OldDetails(ctx) } - return nil, fmt.Errorf("unknown OrganizationSettingHistory field %s", name) + return nil, fmt.Errorf("unknown StandardHistory 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 *OrganizationSettingHistoryMutation) SetField(name string, value ent.Value) error { +func (m *StandardHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case organizationsettinghistory.FieldHistoryTime: + case standardhistory.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 organizationsettinghistory.FieldRef: + case standardhistory.FieldRef: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetRef(v) return nil - case organizationsettinghistory.FieldOperation: + case standardhistory.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 organizationsettinghistory.FieldCreatedAt: + case standardhistory.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 organizationsettinghistory.FieldUpdatedAt: + case standardhistory.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 organizationsettinghistory.FieldCreatedBy: + case standardhistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case organizationsettinghistory.FieldUpdatedBy: + case standardhistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case organizationsettinghistory.FieldMappingID: + case standardhistory.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 standardhistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case standardhistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case organizationsettinghistory.FieldTags: + case standardhistory.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case organizationsettinghistory.FieldDeletedAt: - v, ok := value.(time.Time) + case standardhistory.FieldName: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetName(v) return nil - case organizationsettinghistory.FieldDeletedBy: + case standardhistory.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetDescription(v) return nil - case organizationsettinghistory.FieldDomains: - v, ok := value.([]string) + case standardhistory.FieldFamily: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDomains(v) + m.SetFamily(v) return nil - case organizationsettinghistory.FieldBillingContact: + case standardhistory.FieldStatus: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetBillingContact(v) + m.SetStatus(v) return nil - case organizationsettinghistory.FieldBillingEmail: + case standardhistory.FieldStandardType: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetBillingEmail(v) + m.SetStandardType(v) return nil - case organizationsettinghistory.FieldBillingPhone: + case standardhistory.FieldVersion: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetBillingPhone(v) + m.SetVersion(v) return nil - case organizationsettinghistory.FieldBillingAddress: + case standardhistory.FieldPurposeAndScope: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetBillingAddress(v) + m.SetPurposeAndScope(v) return nil - case organizationsettinghistory.FieldTaxIdentifier: + case standardhistory.FieldBackground: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTaxIdentifier(v) + m.SetBackground(v) return nil - case organizationsettinghistory.FieldGeoLocation: - v, ok := value.(enums.Region) + case standardhistory.FieldSatisfies: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetGeoLocation(v) + m.SetSatisfies(v) return nil - case organizationsettinghistory.FieldOrganizationID: - v, ok := value.(string) + case standardhistory.FieldDetails: + v, ok := value.(map[string]interface{}) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOrganizationID(v) + m.SetDetails(v) return nil } - return fmt.Errorf("unknown OrganizationSettingHistory field %s", name) + return fmt.Errorf("unknown StandardHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *OrganizationSettingHistoryMutation) AddedFields() []string { +func (m *StandardHistoryMutation) 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 *OrganizationSettingHistoryMutation) AddedField(name string) (ent.Value, bool) { +func (m *StandardHistoryMutation) 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 *OrganizationSettingHistoryMutation) AddField(name string, value ent.Value) error { +func (m *StandardHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown OrganizationSettingHistory numeric field %s", name) + return fmt.Errorf("unknown StandardHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *OrganizationSettingHistoryMutation) ClearedFields() []string { +func (m *StandardHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(organizationsettinghistory.FieldRef) { - fields = append(fields, organizationsettinghistory.FieldRef) + if m.FieldCleared(standardhistory.FieldRef) { + fields = append(fields, standardhistory.FieldRef) } - if m.FieldCleared(organizationsettinghistory.FieldCreatedAt) { - fields = append(fields, organizationsettinghistory.FieldCreatedAt) + if m.FieldCleared(standardhistory.FieldCreatedAt) { + fields = append(fields, standardhistory.FieldCreatedAt) } - if m.FieldCleared(organizationsettinghistory.FieldUpdatedAt) { - fields = append(fields, organizationsettinghistory.FieldUpdatedAt) + if m.FieldCleared(standardhistory.FieldUpdatedAt) { + fields = append(fields, standardhistory.FieldUpdatedAt) } - if m.FieldCleared(organizationsettinghistory.FieldCreatedBy) { - fields = append(fields, organizationsettinghistory.FieldCreatedBy) + if m.FieldCleared(standardhistory.FieldCreatedBy) { + fields = append(fields, standardhistory.FieldCreatedBy) } - if m.FieldCleared(organizationsettinghistory.FieldUpdatedBy) { - fields = append(fields, organizationsettinghistory.FieldUpdatedBy) + if m.FieldCleared(standardhistory.FieldUpdatedBy) { + fields = append(fields, standardhistory.FieldUpdatedBy) } - if m.FieldCleared(organizationsettinghistory.FieldTags) { - fields = append(fields, organizationsettinghistory.FieldTags) + if m.FieldCleared(standardhistory.FieldDeletedAt) { + fields = append(fields, standardhistory.FieldDeletedAt) } - if m.FieldCleared(organizationsettinghistory.FieldDeletedAt) { - fields = append(fields, organizationsettinghistory.FieldDeletedAt) + if m.FieldCleared(standardhistory.FieldDeletedBy) { + fields = append(fields, standardhistory.FieldDeletedBy) } - if m.FieldCleared(organizationsettinghistory.FieldDeletedBy) { - fields = append(fields, organizationsettinghistory.FieldDeletedBy) + if m.FieldCleared(standardhistory.FieldTags) { + fields = append(fields, standardhistory.FieldTags) } - if m.FieldCleared(organizationsettinghistory.FieldDomains) { - fields = append(fields, organizationsettinghistory.FieldDomains) + if m.FieldCleared(standardhistory.FieldDescription) { + fields = append(fields, standardhistory.FieldDescription) } - if m.FieldCleared(organizationsettinghistory.FieldBillingContact) { - fields = append(fields, organizationsettinghistory.FieldBillingContact) + if m.FieldCleared(standardhistory.FieldFamily) { + fields = append(fields, standardhistory.FieldFamily) } - if m.FieldCleared(organizationsettinghistory.FieldBillingEmail) { - fields = append(fields, organizationsettinghistory.FieldBillingEmail) + if m.FieldCleared(standardhistory.FieldStatus) { + fields = append(fields, standardhistory.FieldStatus) } - if m.FieldCleared(organizationsettinghistory.FieldBillingPhone) { - fields = append(fields, organizationsettinghistory.FieldBillingPhone) + if m.FieldCleared(standardhistory.FieldStandardType) { + fields = append(fields, standardhistory.FieldStandardType) } - if m.FieldCleared(organizationsettinghistory.FieldBillingAddress) { - fields = append(fields, organizationsettinghistory.FieldBillingAddress) + if m.FieldCleared(standardhistory.FieldVersion) { + fields = append(fields, standardhistory.FieldVersion) } - if m.FieldCleared(organizationsettinghistory.FieldTaxIdentifier) { - fields = append(fields, organizationsettinghistory.FieldTaxIdentifier) + if m.FieldCleared(standardhistory.FieldPurposeAndScope) { + fields = append(fields, standardhistory.FieldPurposeAndScope) } - if m.FieldCleared(organizationsettinghistory.FieldGeoLocation) { - fields = append(fields, organizationsettinghistory.FieldGeoLocation) + if m.FieldCleared(standardhistory.FieldBackground) { + fields = append(fields, standardhistory.FieldBackground) } - if m.FieldCleared(organizationsettinghistory.FieldOrganizationID) { - fields = append(fields, organizationsettinghistory.FieldOrganizationID) + if m.FieldCleared(standardhistory.FieldSatisfies) { + fields = append(fields, standardhistory.FieldSatisfies) + } + if m.FieldCleared(standardhistory.FieldDetails) { + fields = append(fields, standardhistory.FieldDetails) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) FieldCleared(name string) bool { +func (m *StandardHistoryMutation) 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 *OrganizationSettingHistoryMutation) ClearField(name string) error { +func (m *StandardHistoryMutation) ClearField(name string) error { switch name { - case organizationsettinghistory.FieldRef: + case standardhistory.FieldRef: m.ClearRef() return nil - case organizationsettinghistory.FieldCreatedAt: + case standardhistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case organizationsettinghistory.FieldUpdatedAt: + case standardhistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case organizationsettinghistory.FieldCreatedBy: + case standardhistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case organizationsettinghistory.FieldUpdatedBy: + case standardhistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case organizationsettinghistory.FieldTags: - m.ClearTags() - return nil - case organizationsettinghistory.FieldDeletedAt: + case standardhistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case organizationsettinghistory.FieldDeletedBy: + case standardhistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case organizationsettinghistory.FieldDomains: - m.ClearDomains() + case standardhistory.FieldTags: + m.ClearTags() return nil - case organizationsettinghistory.FieldBillingContact: - m.ClearBillingContact() + case standardhistory.FieldDescription: + m.ClearDescription() return nil - case organizationsettinghistory.FieldBillingEmail: - m.ClearBillingEmail() + case standardhistory.FieldFamily: + m.ClearFamily() return nil - case organizationsettinghistory.FieldBillingPhone: - m.ClearBillingPhone() + case standardhistory.FieldStatus: + m.ClearStatus() return nil - case organizationsettinghistory.FieldBillingAddress: - m.ClearBillingAddress() + case standardhistory.FieldStandardType: + m.ClearStandardType() return nil - case organizationsettinghistory.FieldTaxIdentifier: - m.ClearTaxIdentifier() + case standardhistory.FieldVersion: + m.ClearVersion() return nil - case organizationsettinghistory.FieldGeoLocation: - m.ClearGeoLocation() + case standardhistory.FieldPurposeAndScope: + m.ClearPurposeAndScope() return nil - case organizationsettinghistory.FieldOrganizationID: - m.ClearOrganizationID() + case standardhistory.FieldBackground: + m.ClearBackground() + return nil + case standardhistory.FieldSatisfies: + m.ClearSatisfies() + return nil + case standardhistory.FieldDetails: + m.ClearDetails() return nil } - return fmt.Errorf("unknown OrganizationSettingHistory nullable field %s", name) + return fmt.Errorf("unknown StandardHistory 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 *OrganizationSettingHistoryMutation) ResetField(name string) error { +func (m *StandardHistoryMutation) ResetField(name string) error { switch name { - case organizationsettinghistory.FieldHistoryTime: + case standardhistory.FieldHistoryTime: m.ResetHistoryTime() return nil - case organizationsettinghistory.FieldRef: + case standardhistory.FieldRef: m.ResetRef() return nil - case organizationsettinghistory.FieldOperation: + case standardhistory.FieldOperation: m.ResetOperation() return nil - case organizationsettinghistory.FieldCreatedAt: + case standardhistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case organizationsettinghistory.FieldUpdatedAt: + case standardhistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case organizationsettinghistory.FieldCreatedBy: + case standardhistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case organizationsettinghistory.FieldUpdatedBy: + case standardhistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case organizationsettinghistory.FieldMappingID: + case standardhistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case standardhistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case standardhistory.FieldMappingID: m.ResetMappingID() return nil - case organizationsettinghistory.FieldTags: + case standardhistory.FieldTags: m.ResetTags() return nil - case organizationsettinghistory.FieldDeletedAt: - m.ResetDeletedAt() + case standardhistory.FieldName: + m.ResetName() return nil - case organizationsettinghistory.FieldDeletedBy: - m.ResetDeletedBy() + case standardhistory.FieldDescription: + m.ResetDescription() return nil - case organizationsettinghistory.FieldDomains: - m.ResetDomains() + case standardhistory.FieldFamily: + m.ResetFamily() return nil - case organizationsettinghistory.FieldBillingContact: - m.ResetBillingContact() + case standardhistory.FieldStatus: + m.ResetStatus() return nil - case organizationsettinghistory.FieldBillingEmail: - m.ResetBillingEmail() + case standardhistory.FieldStandardType: + m.ResetStandardType() return nil - case organizationsettinghistory.FieldBillingPhone: - m.ResetBillingPhone() + case standardhistory.FieldVersion: + m.ResetVersion() return nil - case organizationsettinghistory.FieldBillingAddress: - m.ResetBillingAddress() + case standardhistory.FieldPurposeAndScope: + m.ResetPurposeAndScope() return nil - case organizationsettinghistory.FieldTaxIdentifier: - m.ResetTaxIdentifier() + case standardhistory.FieldBackground: + m.ResetBackground() return nil - case organizationsettinghistory.FieldGeoLocation: - m.ResetGeoLocation() + case standardhistory.FieldSatisfies: + m.ResetSatisfies() return nil - case organizationsettinghistory.FieldOrganizationID: - m.ResetOrganizationID() + case standardhistory.FieldDetails: + m.ResetDetails() return nil } - return fmt.Errorf("unknown OrganizationSettingHistory field %s", name) + return fmt.Errorf("unknown StandardHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *OrganizationSettingHistoryMutation) AddedEdges() []string { +func (m *StandardHistoryMutation) 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 *OrganizationSettingHistoryMutation) AddedIDs(name string) []ent.Value { +func (m *StandardHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *OrganizationSettingHistoryMutation) RemovedEdges() []string { +func (m *StandardHistoryMutation) 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 *OrganizationSettingHistoryMutation) RemovedIDs(name string) []ent.Value { +func (m *StandardHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *OrganizationSettingHistoryMutation) ClearedEdges() []string { +func (m *StandardHistoryMutation) 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 *OrganizationSettingHistoryMutation) EdgeCleared(name string) bool { +func (m *StandardHistoryMutation) 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 *OrganizationSettingHistoryMutation) ClearEdge(name string) error { - return fmt.Errorf("unknown OrganizationSettingHistory unique edge %s", name) +func (m *StandardHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown StandardHistory 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 *OrganizationSettingHistoryMutation) ResetEdge(name string) error { - return fmt.Errorf("unknown OrganizationSettingHistory edge %s", name) +func (m *StandardHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown StandardHistory edge %s", name) } -// PasswordResetTokenMutation represents an operation that mutates the PasswordResetToken nodes in the graph. -type PasswordResetTokenMutation struct { +// SubcontrolMutation represents an operation that mutates the Subcontrol nodes in the graph. +type SubcontrolMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - mapping_id *string - deleted_at *time.Time - deleted_by *string - token *string - ttl *time.Time - email *string - secret *[]byte - clearedFields map[string]struct{} - owner *string - clearedowner bool - done bool - oldValue func(context.Context) (*PasswordResetToken, error) - predicates []predicate.PasswordResetToken + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + status *string + subcontrol_type *string + version *string + subcontrol_number *string + family *string + class *string + source *string + mapped_frameworks *string + implementation_evidence *string + implementation_status *string + implementation_date *time.Time + implementation_verification *string + implementation_verification_date *time.Time + details *map[string]interface{} + clearedFields map[string]struct{} + control map[string]struct{} + removedcontrol map[string]struct{} + clearedcontrol bool + user map[string]struct{} + removeduser map[string]struct{} + cleareduser bool + notes *string + clearednotes bool + done bool + oldValue func(context.Context) (*Subcontrol, error) + predicates []predicate.Subcontrol } -var _ ent.Mutation = (*PasswordResetTokenMutation)(nil) +var _ ent.Mutation = (*SubcontrolMutation)(nil) -// passwordresettokenOption allows management of the mutation configuration using functional options. -type passwordresettokenOption func(*PasswordResetTokenMutation) +// subcontrolOption allows management of the mutation configuration using functional options. +type subcontrolOption func(*SubcontrolMutation) -// newPasswordResetTokenMutation creates new mutation for the PasswordResetToken entity. -func newPasswordResetTokenMutation(c config, op Op, opts ...passwordresettokenOption) *PasswordResetTokenMutation { - m := &PasswordResetTokenMutation{ +// newSubcontrolMutation creates new mutation for the Subcontrol entity. +func newSubcontrolMutation(c config, op Op, opts ...subcontrolOption) *SubcontrolMutation { + m := &SubcontrolMutation{ config: c, op: op, - typ: TypePasswordResetToken, + typ: TypeSubcontrol, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -66835,20 +98060,20 @@ func newPasswordResetTokenMutation(c config, op Op, opts ...passwordresettokenOp return m } -// withPasswordResetTokenID sets the ID field of the mutation. -func withPasswordResetTokenID(id string) passwordresettokenOption { - return func(m *PasswordResetTokenMutation) { +// withSubcontrolID sets the ID field of the mutation. +func withSubcontrolID(id string) subcontrolOption { + return func(m *SubcontrolMutation) { var ( err error once sync.Once - value *PasswordResetToken + value *Subcontrol ) - m.oldValue = func(ctx context.Context) (*PasswordResetToken, error) { + m.oldValue = func(ctx context.Context) (*Subcontrol, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().PasswordResetToken.Get(ctx, id) + value, err = m.Client().Subcontrol.Get(ctx, id) } }) return value, err @@ -66857,615 +98082,1391 @@ func withPasswordResetTokenID(id string) passwordresettokenOption { } } -// withPasswordResetToken sets the old PasswordResetToken of the mutation. -func withPasswordResetToken(node *PasswordResetToken) passwordresettokenOption { - return func(m *PasswordResetTokenMutation) { - m.oldValue = func(context.Context) (*PasswordResetToken, error) { - return node, nil - } - m.id = &node.ID +// withSubcontrol sets the old Subcontrol of the mutation. +func withSubcontrol(node *Subcontrol) subcontrolOption { + return func(m *SubcontrolMutation) { + m.oldValue = func(context.Context) (*Subcontrol, 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 SubcontrolMutation) 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 SubcontrolMutation) 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 Subcontrol entities. +func (m *SubcontrolMutation) 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 *SubcontrolMutation) 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 *SubcontrolMutation) 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().Subcontrol.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 *SubcontrolMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *SubcontrolMutation) 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 Subcontrol entity. +// If the Subcontrol 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 *SubcontrolMutation) 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 *SubcontrolMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[subcontrol.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *SubcontrolMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *SubcontrolMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, subcontrol.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *SubcontrolMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *SubcontrolMutation) 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 Subcontrol entity. +// If the Subcontrol 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 *SubcontrolMutation) 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 *SubcontrolMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[subcontrol.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *SubcontrolMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *SubcontrolMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, subcontrol.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *SubcontrolMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *SubcontrolMutation) 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 Subcontrol entity. +// If the Subcontrol 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 *SubcontrolMutation) 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 *SubcontrolMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[subcontrol.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *SubcontrolMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *SubcontrolMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, subcontrol.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *SubcontrolMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *SubcontrolMutation) 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 Subcontrol entity. +// If the Subcontrol 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 *SubcontrolMutation) 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 *SubcontrolMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[subcontrol.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *SubcontrolMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *SubcontrolMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, subcontrol.FieldUpdatedBy) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *SubcontrolMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *SubcontrolMutation) 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 Subcontrol entity. +// If the Subcontrol 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 *SubcontrolMutation) 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 *SubcontrolMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[subcontrol.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *SubcontrolMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *SubcontrolMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, subcontrol.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *SubcontrolMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *SubcontrolMutation) 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 Subcontrol entity. +// If the Subcontrol 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 *SubcontrolMutation) 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 *SubcontrolMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[subcontrol.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *SubcontrolMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *SubcontrolMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, subcontrol.FieldDeletedBy) +} + +// SetMappingID sets the "mapping_id" field. +func (m *SubcontrolMutation) SetMappingID(s string) { + m.mapping_id = &s +} + +// MappingID returns the value of the "mapping_id" field in the mutation. +func (m *SubcontrolMutation) MappingID() (r string, exists bool) { + v := m.mapping_id + if v == nil { + return + } + return *v, true +} + +// OldMappingID returns the old "mapping_id" field's value of the Subcontrol entity. +// If the Subcontrol 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 *SubcontrolMutation) OldMappingID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappingID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + } + return oldValue.MappingID, nil +} + +// ResetMappingID resets all changes to the "mapping_id" field. +func (m *SubcontrolMutation) ResetMappingID() { + m.mapping_id = nil +} + +// SetTags sets the "tags" field. +func (m *SubcontrolMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *SubcontrolMutation) 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 Subcontrol entity. +// If the Subcontrol 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 *SubcontrolMutation) 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 *SubcontrolMutation) 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 *SubcontrolMutation) 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 *SubcontrolMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[subcontrol.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *SubcontrolMutation) TagsCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *SubcontrolMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, subcontrol.FieldTags) +} + +// SetName sets the "name" field. +func (m *SubcontrolMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *SubcontrolMutation) 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 Subcontrol entity. +// If the Subcontrol 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 *SubcontrolMutation) 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 *SubcontrolMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *SubcontrolMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *SubcontrolMutation) 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 Subcontrol entity. +// If the Subcontrol 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 *SubcontrolMutation) 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 *SubcontrolMutation) ClearDescription() { + m.description = nil + m.clearedFields[subcontrol.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *SubcontrolMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *SubcontrolMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, subcontrol.FieldDescription) +} + +// SetStatus sets the "status" field. +func (m *SubcontrolMutation) SetStatus(s string) { + m.status = &s +} + +// Status returns the value of the "status" field in the mutation. +func (m *SubcontrolMutation) Status() (r string, exists bool) { + v := m.status + if v == nil { + return + } + return *v, true +} + +// OldStatus returns the old "status" field's value of the Subcontrol entity. +// If the Subcontrol 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 *SubcontrolMutation) OldStatus(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldStatus is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldStatus requires an ID field in the mutation") } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldStatus: %w", err) + } + return oldValue.Status, nil } -// 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 PasswordResetTokenMutation) Client() *Client { - client := &Client{config: m.config} - client.init() - return client +// ClearStatus clears the value of the "status" field. +func (m *SubcontrolMutation) ClearStatus() { + m.status = nil + m.clearedFields[subcontrol.FieldStatus] = struct{}{} } -// Tx returns an `ent.Tx` for mutations that were executed in transactions; -// it returns an error otherwise. -func (m PasswordResetTokenMutation) 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 +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *SubcontrolMutation) StatusCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldStatus] + return ok } -// SetID sets the value of the id field. Note that this -// operation is only accepted on creation of PasswordResetToken entities. -func (m *PasswordResetTokenMutation) SetID(id string) { - m.id = &id +// ResetStatus resets all changes to the "status" field. +func (m *SubcontrolMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, subcontrol.FieldStatus) } -// 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 *PasswordResetTokenMutation) ID() (id string, exists bool) { - if m.id == nil { +// SetSubcontrolType sets the "subcontrol_type" field. +func (m *SubcontrolMutation) SetSubcontrolType(s string) { + m.subcontrol_type = &s +} + +// SubcontrolType returns the value of the "subcontrol_type" field in the mutation. +func (m *SubcontrolMutation) SubcontrolType() (r string, exists bool) { + v := m.subcontrol_type + if v == nil { return } - return *m.id, true + return *v, 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 *PasswordResetTokenMutation) 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().PasswordResetToken.Query().Where(m.predicates...).IDs(ctx) - default: - return nil, fmt.Errorf("IDs is not allowed on %s operations", m.op) +// OldSubcontrolType returns the old "subcontrol_type" field's value of the Subcontrol entity. +// If the Subcontrol 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 *SubcontrolMutation) OldSubcontrolType(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSubcontrolType is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSubcontrolType requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSubcontrolType: %w", err) } + return oldValue.SubcontrolType, nil } -// SetCreatedAt sets the "created_at" field. -func (m *PasswordResetTokenMutation) SetCreatedAt(t time.Time) { - m.created_at = &t +// ClearSubcontrolType clears the value of the "subcontrol_type" field. +func (m *SubcontrolMutation) ClearSubcontrolType() { + m.subcontrol_type = nil + m.clearedFields[subcontrol.FieldSubcontrolType] = struct{}{} } -// CreatedAt returns the value of the "created_at" field in the mutation. -func (m *PasswordResetTokenMutation) CreatedAt() (r time.Time, exists bool) { - v := m.created_at +// SubcontrolTypeCleared returns if the "subcontrol_type" field was cleared in this mutation. +func (m *SubcontrolMutation) SubcontrolTypeCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldSubcontrolType] + return ok +} + +// ResetSubcontrolType resets all changes to the "subcontrol_type" field. +func (m *SubcontrolMutation) ResetSubcontrolType() { + m.subcontrol_type = nil + delete(m.clearedFields, subcontrol.FieldSubcontrolType) +} + +// SetVersion sets the "version" field. +func (m *SubcontrolMutation) SetVersion(s string) { + m.version = &s +} + +// Version returns the value of the "version" field in the mutation. +func (m *SubcontrolMutation) Version() (r string, exists bool) { + v := m.version if v == nil { return } return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the PasswordResetToken entity. -// If the PasswordResetToken object wasn't provided to the builder, the object is fetched from the database. +// OldVersion returns the old "version" field's value of the Subcontrol entity. +// If the Subcontrol 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 *PasswordResetTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *SubcontrolMutation) OldVersion(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldVersion 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") + return v, errors.New("OldVersion 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 v, fmt.Errorf("querying old value for OldVersion: %w", err) } - return oldValue.CreatedAt, nil + return oldValue.Version, nil } -// ClearCreatedAt clears the value of the "created_at" field. -func (m *PasswordResetTokenMutation) ClearCreatedAt() { - m.created_at = nil - m.clearedFields[passwordresettoken.FieldCreatedAt] = struct{}{} +// ClearVersion clears the value of the "version" field. +func (m *SubcontrolMutation) ClearVersion() { + m.version = nil + m.clearedFields[subcontrol.FieldVersion] = struct{}{} } -// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *PasswordResetTokenMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[passwordresettoken.FieldCreatedAt] +// VersionCleared returns if the "version" field was cleared in this mutation. +func (m *SubcontrolMutation) VersionCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldVersion] return ok } -// ResetCreatedAt resets all changes to the "created_at" field. -func (m *PasswordResetTokenMutation) ResetCreatedAt() { - m.created_at = nil - delete(m.clearedFields, passwordresettoken.FieldCreatedAt) +// ResetVersion resets all changes to the "version" field. +func (m *SubcontrolMutation) ResetVersion() { + m.version = nil + delete(m.clearedFields, subcontrol.FieldVersion) } -// SetUpdatedAt sets the "updated_at" field. -func (m *PasswordResetTokenMutation) SetUpdatedAt(t time.Time) { - m.updated_at = &t +// SetSubcontrolNumber sets the "subcontrol_number" field. +func (m *SubcontrolMutation) SetSubcontrolNumber(s string) { + m.subcontrol_number = &s } -// UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *PasswordResetTokenMutation) UpdatedAt() (r time.Time, exists bool) { - v := m.updated_at +// SubcontrolNumber returns the value of the "subcontrol_number" field in the mutation. +func (m *SubcontrolMutation) SubcontrolNumber() (r string, exists bool) { + v := m.subcontrol_number if v == nil { return } return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the PasswordResetToken entity. -// If the PasswordResetToken object wasn't provided to the builder, the object is fetched from the database. +// OldSubcontrolNumber returns the old "subcontrol_number" field's value of the Subcontrol entity. +// If the Subcontrol 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 *PasswordResetTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *SubcontrolMutation) OldSubcontrolNumber(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldSubcontrolNumber 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") + return v, errors.New("OldSubcontrolNumber 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 v, fmt.Errorf("querying old value for OldSubcontrolNumber: %w", err) } - return oldValue.UpdatedAt, nil + return oldValue.SubcontrolNumber, nil } -// ClearUpdatedAt clears the value of the "updated_at" field. -func (m *PasswordResetTokenMutation) ClearUpdatedAt() { - m.updated_at = nil - m.clearedFields[passwordresettoken.FieldUpdatedAt] = struct{}{} +// ClearSubcontrolNumber clears the value of the "subcontrol_number" field. +func (m *SubcontrolMutation) ClearSubcontrolNumber() { + m.subcontrol_number = nil + m.clearedFields[subcontrol.FieldSubcontrolNumber] = struct{}{} } -// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *PasswordResetTokenMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[passwordresettoken.FieldUpdatedAt] +// SubcontrolNumberCleared returns if the "subcontrol_number" field was cleared in this mutation. +func (m *SubcontrolMutation) SubcontrolNumberCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldSubcontrolNumber] return ok } -// ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *PasswordResetTokenMutation) ResetUpdatedAt() { - m.updated_at = nil - delete(m.clearedFields, passwordresettoken.FieldUpdatedAt) +// ResetSubcontrolNumber resets all changes to the "subcontrol_number" field. +func (m *SubcontrolMutation) ResetSubcontrolNumber() { + m.subcontrol_number = nil + delete(m.clearedFields, subcontrol.FieldSubcontrolNumber) } -// SetCreatedBy sets the "created_by" field. -func (m *PasswordResetTokenMutation) SetCreatedBy(s string) { - m.created_by = &s +// SetFamily sets the "family" field. +func (m *SubcontrolMutation) SetFamily(s string) { + m.family = &s } -// CreatedBy returns the value of the "created_by" field in the mutation. -func (m *PasswordResetTokenMutation) CreatedBy() (r string, exists bool) { - v := m.created_by +// Family returns the value of the "family" field in the mutation. +func (m *SubcontrolMutation) Family() (r string, exists bool) { + v := m.family if v == nil { return } return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the PasswordResetToken entity. -// If the PasswordResetToken object wasn't provided to the builder, the object is fetched from the database. +// OldFamily returns the old "family" field's value of the Subcontrol entity. +// If the Subcontrol 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 *PasswordResetTokenMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *SubcontrolMutation) OldFamily(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") + return v, errors.New("OldFamily 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") + return v, errors.New("OldFamily 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 v, fmt.Errorf("querying old value for OldFamily: %w", err) } - return oldValue.CreatedBy, nil + return oldValue.Family, nil } -// ClearCreatedBy clears the value of the "created_by" field. -func (m *PasswordResetTokenMutation) ClearCreatedBy() { - m.created_by = nil - m.clearedFields[passwordresettoken.FieldCreatedBy] = struct{}{} +// ClearFamily clears the value of the "family" field. +func (m *SubcontrolMutation) ClearFamily() { + m.family = nil + m.clearedFields[subcontrol.FieldFamily] = struct{}{} } -// CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *PasswordResetTokenMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[passwordresettoken.FieldCreatedBy] +// FamilyCleared returns if the "family" field was cleared in this mutation. +func (m *SubcontrolMutation) FamilyCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldFamily] return ok } -// ResetCreatedBy resets all changes to the "created_by" field. -func (m *PasswordResetTokenMutation) ResetCreatedBy() { - m.created_by = nil - delete(m.clearedFields, passwordresettoken.FieldCreatedBy) +// ResetFamily resets all changes to the "family" field. +func (m *SubcontrolMutation) ResetFamily() { + m.family = nil + delete(m.clearedFields, subcontrol.FieldFamily) } -// SetUpdatedBy sets the "updated_by" field. -func (m *PasswordResetTokenMutation) SetUpdatedBy(s string) { - m.updated_by = &s +// SetClass sets the "class" field. +func (m *SubcontrolMutation) SetClass(s string) { + m.class = &s } -// UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *PasswordResetTokenMutation) UpdatedBy() (r string, exists bool) { - v := m.updated_by +// Class returns the value of the "class" field in the mutation. +func (m *SubcontrolMutation) Class() (r string, exists bool) { + v := m.class if v == nil { return } return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the PasswordResetToken entity. -// If the PasswordResetToken object wasn't provided to the builder, the object is fetched from the database. +// OldClass returns the old "class" field's value of the Subcontrol entity. +// If the Subcontrol 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 *PasswordResetTokenMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *SubcontrolMutation) OldClass(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") + return v, errors.New("OldClass 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") + return v, errors.New("OldClass 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 v, fmt.Errorf("querying old value for OldClass: %w", err) } - return oldValue.UpdatedBy, nil + return oldValue.Class, nil } -// ClearUpdatedBy clears the value of the "updated_by" field. -func (m *PasswordResetTokenMutation) ClearUpdatedBy() { - m.updated_by = nil - m.clearedFields[passwordresettoken.FieldUpdatedBy] = struct{}{} +// ClearClass clears the value of the "class" field. +func (m *SubcontrolMutation) ClearClass() { + m.class = nil + m.clearedFields[subcontrol.FieldClass] = struct{}{} } -// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *PasswordResetTokenMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[passwordresettoken.FieldUpdatedBy] +// ClassCleared returns if the "class" field was cleared in this mutation. +func (m *SubcontrolMutation) ClassCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldClass] return ok } -// ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *PasswordResetTokenMutation) ResetUpdatedBy() { - m.updated_by = nil - delete(m.clearedFields, passwordresettoken.FieldUpdatedBy) +// ResetClass resets all changes to the "class" field. +func (m *SubcontrolMutation) ResetClass() { + m.class = nil + delete(m.clearedFields, subcontrol.FieldClass) } -// SetMappingID sets the "mapping_id" field. -func (m *PasswordResetTokenMutation) SetMappingID(s string) { - m.mapping_id = &s +// SetSource sets the "source" field. +func (m *SubcontrolMutation) SetSource(s string) { + m.source = &s } -// MappingID returns the value of the "mapping_id" field in the mutation. -func (m *PasswordResetTokenMutation) MappingID() (r string, exists bool) { - v := m.mapping_id +// Source returns the value of the "source" field in the mutation. +func (m *SubcontrolMutation) Source() (r string, exists bool) { + v := m.source if v == nil { return } return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the PasswordResetToken entity. -// If the PasswordResetToken object wasn't provided to the builder, the object is fetched from the database. +// OldSource returns the old "source" field's value of the Subcontrol entity. +// If the Subcontrol 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 *PasswordResetTokenMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *SubcontrolMutation) OldSource(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldMappingID is only allowed on UpdateOne operations") + return v, errors.New("OldSource is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldMappingID requires an ID field in the mutation") + return v, errors.New("OldSource requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldMappingID: %w", err) + return v, fmt.Errorf("querying old value for OldSource: %w", err) } - return oldValue.MappingID, nil + return oldValue.Source, nil } -// ResetMappingID resets all changes to the "mapping_id" field. -func (m *PasswordResetTokenMutation) ResetMappingID() { - m.mapping_id = nil +// ClearSource clears the value of the "source" field. +func (m *SubcontrolMutation) ClearSource() { + m.source = nil + m.clearedFields[subcontrol.FieldSource] = struct{}{} } -// SetDeletedAt sets the "deleted_at" field. -func (m *PasswordResetTokenMutation) SetDeletedAt(t time.Time) { - m.deleted_at = &t +// SourceCleared returns if the "source" field was cleared in this mutation. +func (m *SubcontrolMutation) SourceCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldSource] + return ok } -// DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *PasswordResetTokenMutation) DeletedAt() (r time.Time, exists bool) { - v := m.deleted_at +// ResetSource resets all changes to the "source" field. +func (m *SubcontrolMutation) ResetSource() { + m.source = nil + delete(m.clearedFields, subcontrol.FieldSource) +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (m *SubcontrolMutation) SetMappedFrameworks(s string) { + m.mapped_frameworks = &s +} + +// MappedFrameworks returns the value of the "mapped_frameworks" field in the mutation. +func (m *SubcontrolMutation) MappedFrameworks() (r string, exists bool) { + v := m.mapped_frameworks if v == nil { return } return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the PasswordResetToken entity. -// If the PasswordResetToken object wasn't provided to the builder, the object is fetched from the database. +// OldMappedFrameworks returns the old "mapped_frameworks" field's value of the Subcontrol entity. +// If the Subcontrol 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 *PasswordResetTokenMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *SubcontrolMutation) OldMappedFrameworks(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + return v, errors.New("OldMappedFrameworks 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") + return v, errors.New("OldMappedFrameworks 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 v, fmt.Errorf("querying old value for OldMappedFrameworks: %w", err) } - return oldValue.DeletedAt, nil + return oldValue.MappedFrameworks, nil } -// ClearDeletedAt clears the value of the "deleted_at" field. -func (m *PasswordResetTokenMutation) ClearDeletedAt() { - m.deleted_at = nil - m.clearedFields[passwordresettoken.FieldDeletedAt] = struct{}{} +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (m *SubcontrolMutation) ClearMappedFrameworks() { + m.mapped_frameworks = nil + m.clearedFields[subcontrol.FieldMappedFrameworks] = struct{}{} } -// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *PasswordResetTokenMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[passwordresettoken.FieldDeletedAt] +// MappedFrameworksCleared returns if the "mapped_frameworks" field was cleared in this mutation. +func (m *SubcontrolMutation) MappedFrameworksCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldMappedFrameworks] return ok } -// ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *PasswordResetTokenMutation) ResetDeletedAt() { - m.deleted_at = nil - delete(m.clearedFields, passwordresettoken.FieldDeletedAt) +// ResetMappedFrameworks resets all changes to the "mapped_frameworks" field. +func (m *SubcontrolMutation) ResetMappedFrameworks() { + m.mapped_frameworks = nil + delete(m.clearedFields, subcontrol.FieldMappedFrameworks) } -// SetDeletedBy sets the "deleted_by" field. -func (m *PasswordResetTokenMutation) SetDeletedBy(s string) { - m.deleted_by = &s +// SetImplementationEvidence sets the "implementation_evidence" field. +func (m *SubcontrolMutation) SetImplementationEvidence(s string) { + m.implementation_evidence = &s } -// DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *PasswordResetTokenMutation) DeletedBy() (r string, exists bool) { - v := m.deleted_by +// ImplementationEvidence returns the value of the "implementation_evidence" field in the mutation. +func (m *SubcontrolMutation) ImplementationEvidence() (r string, exists bool) { + v := m.implementation_evidence if v == nil { return } return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the PasswordResetToken entity. -// If the PasswordResetToken object wasn't provided to the builder, the object is fetched from the database. +// OldImplementationEvidence returns the old "implementation_evidence" field's value of the Subcontrol entity. +// If the Subcontrol 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 *PasswordResetTokenMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *SubcontrolMutation) OldImplementationEvidence(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + return v, errors.New("OldImplementationEvidence 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") + return v, errors.New("OldImplementationEvidence 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 v, fmt.Errorf("querying old value for OldImplementationEvidence: %w", err) } - return oldValue.DeletedBy, nil + return oldValue.ImplementationEvidence, nil } -// ClearDeletedBy clears the value of the "deleted_by" field. -func (m *PasswordResetTokenMutation) ClearDeletedBy() { - m.deleted_by = nil - m.clearedFields[passwordresettoken.FieldDeletedBy] = struct{}{} +// ClearImplementationEvidence clears the value of the "implementation_evidence" field. +func (m *SubcontrolMutation) ClearImplementationEvidence() { + m.implementation_evidence = nil + m.clearedFields[subcontrol.FieldImplementationEvidence] = struct{}{} } -// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *PasswordResetTokenMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[passwordresettoken.FieldDeletedBy] +// ImplementationEvidenceCleared returns if the "implementation_evidence" field was cleared in this mutation. +func (m *SubcontrolMutation) ImplementationEvidenceCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldImplementationEvidence] return ok } -// ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *PasswordResetTokenMutation) ResetDeletedBy() { - m.deleted_by = nil - delete(m.clearedFields, passwordresettoken.FieldDeletedBy) +// ResetImplementationEvidence resets all changes to the "implementation_evidence" field. +func (m *SubcontrolMutation) ResetImplementationEvidence() { + m.implementation_evidence = nil + delete(m.clearedFields, subcontrol.FieldImplementationEvidence) } -// SetOwnerID sets the "owner_id" field. -func (m *PasswordResetTokenMutation) SetOwnerID(s string) { - m.owner = &s +// SetImplementationStatus sets the "implementation_status" field. +func (m *SubcontrolMutation) SetImplementationStatus(s string) { + m.implementation_status = &s } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *PasswordResetTokenMutation) OwnerID() (r string, exists bool) { - v := m.owner +// ImplementationStatus returns the value of the "implementation_status" field in the mutation. +func (m *SubcontrolMutation) ImplementationStatus() (r string, exists bool) { + v := m.implementation_status if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the PasswordResetToken entity. -// If the PasswordResetToken object wasn't provided to the builder, the object is fetched from the database. +// OldImplementationStatus returns the old "implementation_status" field's value of the Subcontrol entity. +// If the Subcontrol 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 *PasswordResetTokenMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *SubcontrolMutation) OldImplementationStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldImplementationStatus 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") + return v, errors.New("OldImplementationStatus 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 v, fmt.Errorf("querying old value for OldImplementationStatus: %w", err) } - return oldValue.OwnerID, nil + return oldValue.ImplementationStatus, nil } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *PasswordResetTokenMutation) ResetOwnerID() { - m.owner = nil +// ClearImplementationStatus clears the value of the "implementation_status" field. +func (m *SubcontrolMutation) ClearImplementationStatus() { + m.implementation_status = nil + m.clearedFields[subcontrol.FieldImplementationStatus] = struct{}{} } -// SetToken sets the "token" field. -func (m *PasswordResetTokenMutation) SetToken(s string) { - m.token = &s +// ImplementationStatusCleared returns if the "implementation_status" field was cleared in this mutation. +func (m *SubcontrolMutation) ImplementationStatusCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldImplementationStatus] + return ok } -// Token returns the value of the "token" field in the mutation. -func (m *PasswordResetTokenMutation) Token() (r string, exists bool) { - v := m.token +// ResetImplementationStatus resets all changes to the "implementation_status" field. +func (m *SubcontrolMutation) ResetImplementationStatus() { + m.implementation_status = nil + delete(m.clearedFields, subcontrol.FieldImplementationStatus) +} + +// SetImplementationDate sets the "implementation_date" field. +func (m *SubcontrolMutation) SetImplementationDate(t time.Time) { + m.implementation_date = &t +} + +// ImplementationDate returns the value of the "implementation_date" field in the mutation. +func (m *SubcontrolMutation) ImplementationDate() (r time.Time, exists bool) { + v := m.implementation_date if v == nil { return } return *v, true } -// OldToken returns the old "token" field's value of the PasswordResetToken entity. -// If the PasswordResetToken object wasn't provided to the builder, the object is fetched from the database. +// OldImplementationDate returns the old "implementation_date" field's value of the Subcontrol entity. +// If the Subcontrol 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 *PasswordResetTokenMutation) OldToken(ctx context.Context) (v string, err error) { +func (m *SubcontrolMutation) OldImplementationDate(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldToken is only allowed on UpdateOne operations") + return v, errors.New("OldImplementationDate is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldToken requires an ID field in the mutation") + return v, errors.New("OldImplementationDate requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldToken: %w", err) + return v, fmt.Errorf("querying old value for OldImplementationDate: %w", err) } - return oldValue.Token, nil + return oldValue.ImplementationDate, nil } -// ResetToken resets all changes to the "token" field. -func (m *PasswordResetTokenMutation) ResetToken() { - m.token = nil +// ClearImplementationDate clears the value of the "implementation_date" field. +func (m *SubcontrolMutation) ClearImplementationDate() { + m.implementation_date = nil + m.clearedFields[subcontrol.FieldImplementationDate] = struct{}{} } -// SetTTL sets the "ttl" field. -func (m *PasswordResetTokenMutation) SetTTL(t time.Time) { - m.ttl = &t +// ImplementationDateCleared returns if the "implementation_date" field was cleared in this mutation. +func (m *SubcontrolMutation) ImplementationDateCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldImplementationDate] + return ok } -// TTL returns the value of the "ttl" field in the mutation. -func (m *PasswordResetTokenMutation) TTL() (r time.Time, exists bool) { - v := m.ttl +// ResetImplementationDate resets all changes to the "implementation_date" field. +func (m *SubcontrolMutation) ResetImplementationDate() { + m.implementation_date = nil + delete(m.clearedFields, subcontrol.FieldImplementationDate) +} + +// SetImplementationVerification sets the "implementation_verification" field. +func (m *SubcontrolMutation) SetImplementationVerification(s string) { + m.implementation_verification = &s +} + +// ImplementationVerification returns the value of the "implementation_verification" field in the mutation. +func (m *SubcontrolMutation) ImplementationVerification() (r string, exists bool) { + v := m.implementation_verification if v == nil { return } return *v, true } -// OldTTL returns the old "ttl" field's value of the PasswordResetToken entity. -// If the PasswordResetToken object wasn't provided to the builder, the object is fetched from the database. +// OldImplementationVerification returns the old "implementation_verification" field's value of the Subcontrol entity. +// If the Subcontrol 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 *PasswordResetTokenMutation) OldTTL(ctx context.Context) (v *time.Time, err error) { +func (m *SubcontrolMutation) OldImplementationVerification(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldTTL is only allowed on UpdateOne operations") + return v, errors.New("OldImplementationVerification is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldTTL requires an ID field in the mutation") + return v, errors.New("OldImplementationVerification requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldTTL: %w", err) + return v, fmt.Errorf("querying old value for OldImplementationVerification: %w", err) } - return oldValue.TTL, nil + return oldValue.ImplementationVerification, nil } -// ResetTTL resets all changes to the "ttl" field. -func (m *PasswordResetTokenMutation) ResetTTL() { - m.ttl = nil +// ClearImplementationVerification clears the value of the "implementation_verification" field. +func (m *SubcontrolMutation) ClearImplementationVerification() { + m.implementation_verification = nil + m.clearedFields[subcontrol.FieldImplementationVerification] = struct{}{} } -// SetEmail sets the "email" field. -func (m *PasswordResetTokenMutation) SetEmail(s string) { - m.email = &s +// ImplementationVerificationCleared returns if the "implementation_verification" field was cleared in this mutation. +func (m *SubcontrolMutation) ImplementationVerificationCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldImplementationVerification] + return ok } -// Email returns the value of the "email" field in the mutation. -func (m *PasswordResetTokenMutation) Email() (r string, exists bool) { - v := m.email +// ResetImplementationVerification resets all changes to the "implementation_verification" field. +func (m *SubcontrolMutation) ResetImplementationVerification() { + m.implementation_verification = nil + delete(m.clearedFields, subcontrol.FieldImplementationVerification) +} + +// SetImplementationVerificationDate sets the "implementation_verification_date" field. +func (m *SubcontrolMutation) SetImplementationVerificationDate(t time.Time) { + m.implementation_verification_date = &t +} + +// ImplementationVerificationDate returns the value of the "implementation_verification_date" field in the mutation. +func (m *SubcontrolMutation) ImplementationVerificationDate() (r time.Time, exists bool) { + v := m.implementation_verification_date if v == nil { return } return *v, true } -// OldEmail returns the old "email" field's value of the PasswordResetToken entity. -// If the PasswordResetToken object wasn't provided to the builder, the object is fetched from the database. +// OldImplementationVerificationDate returns the old "implementation_verification_date" field's value of the Subcontrol entity. +// If the Subcontrol 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 *PasswordResetTokenMutation) OldEmail(ctx context.Context) (v string, err error) { +func (m *SubcontrolMutation) OldImplementationVerificationDate(ctx context.Context) (v time.Time, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldEmail is only allowed on UpdateOne operations") + return v, errors.New("OldImplementationVerificationDate 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") + return v, errors.New("OldImplementationVerificationDate 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 v, fmt.Errorf("querying old value for OldImplementationVerificationDate: %w", err) } - return oldValue.Email, nil + return oldValue.ImplementationVerificationDate, nil } -// ResetEmail resets all changes to the "email" field. -func (m *PasswordResetTokenMutation) ResetEmail() { - m.email = nil +// ClearImplementationVerificationDate clears the value of the "implementation_verification_date" field. +func (m *SubcontrolMutation) ClearImplementationVerificationDate() { + m.implementation_verification_date = nil + m.clearedFields[subcontrol.FieldImplementationVerificationDate] = struct{}{} } -// SetSecret sets the "secret" field. -func (m *PasswordResetTokenMutation) SetSecret(b []byte) { - m.secret = &b +// ImplementationVerificationDateCleared returns if the "implementation_verification_date" field was cleared in this mutation. +func (m *SubcontrolMutation) ImplementationVerificationDateCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldImplementationVerificationDate] + return ok } -// Secret returns the value of the "secret" field in the mutation. -func (m *PasswordResetTokenMutation) Secret() (r []byte, exists bool) { - v := m.secret +// ResetImplementationVerificationDate resets all changes to the "implementation_verification_date" field. +func (m *SubcontrolMutation) ResetImplementationVerificationDate() { + m.implementation_verification_date = nil + delete(m.clearedFields, subcontrol.FieldImplementationVerificationDate) +} + +// SetDetails sets the "details" field. +func (m *SubcontrolMutation) SetDetails(value map[string]interface{}) { + m.details = &value +} + +// Details returns the value of the "details" field in the mutation. +func (m *SubcontrolMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details if v == nil { return } return *v, true } -// OldSecret returns the old "secret" field's value of the PasswordResetToken entity. -// If the PasswordResetToken object wasn't provided to the builder, the object is fetched from the database. +// OldDetails returns the old "details" field's value of the Subcontrol entity. +// If the Subcontrol 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 *PasswordResetTokenMutation) OldSecret(ctx context.Context) (v *[]byte, err error) { +func (m *SubcontrolMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldSecret is only allowed on UpdateOne operations") + return v, errors.New("OldDetails is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldSecret requires an ID field in the mutation") + return v, errors.New("OldDetails requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldSecret: %w", err) + return v, fmt.Errorf("querying old value for OldDetails: %w", err) } - return oldValue.Secret, nil + return oldValue.Details, nil } -// ResetSecret resets all changes to the "secret" field. -func (m *PasswordResetTokenMutation) ResetSecret() { - m.secret = nil +// ClearDetails clears the value of the "details" field. +func (m *SubcontrolMutation) ClearDetails() { + m.details = nil + m.clearedFields[subcontrol.FieldDetails] = struct{}{} } -// ClearOwner clears the "owner" edge to the User entity. -func (m *PasswordResetTokenMutation) ClearOwner() { - m.clearedowner = true - m.clearedFields[passwordresettoken.FieldOwnerID] = struct{}{} +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *SubcontrolMutation) DetailsCleared() bool { + _, ok := m.clearedFields[subcontrol.FieldDetails] + return ok } -// OwnerCleared reports if the "owner" edge to the User entity was cleared. -func (m *PasswordResetTokenMutation) OwnerCleared() bool { - return m.clearedowner +// ResetDetails resets all changes to the "details" field. +func (m *SubcontrolMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, subcontrol.FieldDetails) } -// OwnerIDs returns the "owner" edge IDs in the mutation. +// AddControlIDs adds the "control" edge to the Control entity by ids. +func (m *SubcontrolMutation) AddControlIDs(ids ...string) { + if m.control == nil { + m.control = make(map[string]struct{}) + } + for i := range ids { + m.control[ids[i]] = struct{}{} + } +} + +// ClearControl clears the "control" edge to the Control entity. +func (m *SubcontrolMutation) ClearControl() { + m.clearedcontrol = true +} + +// ControlCleared reports if the "control" edge to the Control entity was cleared. +func (m *SubcontrolMutation) ControlCleared() bool { + return m.clearedcontrol +} + +// RemoveControlIDs removes the "control" edge to the Control entity by IDs. +func (m *SubcontrolMutation) RemoveControlIDs(ids ...string) { + if m.removedcontrol == nil { + m.removedcontrol = make(map[string]struct{}) + } + for i := range ids { + delete(m.control, ids[i]) + m.removedcontrol[ids[i]] = struct{}{} + } +} + +// RemovedControl returns the removed IDs of the "control" edge to the Control entity. +func (m *SubcontrolMutation) RemovedControlIDs() (ids []string) { + for id := range m.removedcontrol { + ids = append(ids, id) + } + return +} + +// ControlIDs returns the "control" edge IDs in the mutation. +func (m *SubcontrolMutation) ControlIDs() (ids []string) { + for id := range m.control { + ids = append(ids, id) + } + return +} + +// ResetControl resets all changes to the "control" edge. +func (m *SubcontrolMutation) ResetControl() { + m.control = nil + m.clearedcontrol = false + m.removedcontrol = nil +} + +// AddUserIDs adds the "user" edge to the User entity by ids. +func (m *SubcontrolMutation) AddUserIDs(ids ...string) { + if m.user == nil { + m.user = make(map[string]struct{}) + } + for i := range ids { + m.user[ids[i]] = struct{}{} + } +} + +// ClearUser clears the "user" edge to the User entity. +func (m *SubcontrolMutation) ClearUser() { + m.cleareduser = true +} + +// UserCleared reports if the "user" edge to the User entity was cleared. +func (m *SubcontrolMutation) UserCleared() bool { + return m.cleareduser +} + +// RemoveUserIDs removes the "user" edge to the User entity by IDs. +func (m *SubcontrolMutation) RemoveUserIDs(ids ...string) { + if m.removeduser == nil { + m.removeduser = make(map[string]struct{}) + } + for i := range ids { + delete(m.user, ids[i]) + m.removeduser[ids[i]] = struct{}{} + } +} + +// RemovedUser returns the removed IDs of the "user" edge to the User entity. +func (m *SubcontrolMutation) RemovedUserIDs() (ids []string) { + for id := range m.removeduser { + ids = append(ids, id) + } + return +} + +// UserIDs returns the "user" edge IDs in the mutation. +func (m *SubcontrolMutation) UserIDs() (ids []string) { + for id := range m.user { + ids = append(ids, id) + } + return +} + +// ResetUser resets all changes to the "user" edge. +func (m *SubcontrolMutation) ResetUser() { + m.user = nil + m.cleareduser = false + m.removeduser = nil +} + +// SetNotesID sets the "notes" edge to the Note entity by id. +func (m *SubcontrolMutation) SetNotesID(id string) { + m.notes = &id +} + +// ClearNotes clears the "notes" edge to the Note entity. +func (m *SubcontrolMutation) ClearNotes() { + m.clearednotes = true +} + +// NotesCleared reports if the "notes" edge to the Note entity was cleared. +func (m *SubcontrolMutation) NotesCleared() bool { + return m.clearednotes +} + +// NotesID returns the "notes" edge ID in the mutation. +func (m *SubcontrolMutation) NotesID() (id string, exists bool) { + if m.notes != nil { + return *m.notes, true + } + return +} + +// NotesIDs returns the "notes" 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 *PasswordResetTokenMutation) OwnerIDs() (ids []string) { - if id := m.owner; id != nil { +// NotesID instead. It exists only for internal usage by the builders. +func (m *SubcontrolMutation) NotesIDs() (ids []string) { + if id := m.notes; id != nil { ids = append(ids, *id) } return } -// ResetOwner resets all changes to the "owner" edge. -func (m *PasswordResetTokenMutation) ResetOwner() { - m.owner = nil - m.clearedowner = false +// ResetNotes resets all changes to the "notes" edge. +func (m *SubcontrolMutation) ResetNotes() { + m.notes = nil + m.clearednotes = false } -// Where appends a list predicates to the PasswordResetTokenMutation builder. -func (m *PasswordResetTokenMutation) Where(ps ...predicate.PasswordResetToken) { +// Where appends a list predicates to the SubcontrolMutation builder. +func (m *SubcontrolMutation) Where(ps ...predicate.Subcontrol) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the PasswordResetTokenMutation builder. Using this method, +// WhereP appends storage-level predicates to the SubcontrolMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *PasswordResetTokenMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.PasswordResetToken, len(ps)) +func (m *SubcontrolMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Subcontrol, len(ps)) for i := range ps { p[i] = ps[i] } @@ -67473,60 +99474,96 @@ func (m *PasswordResetTokenMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *PasswordResetTokenMutation) Op() Op { +func (m *SubcontrolMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *PasswordResetTokenMutation) SetOp(op Op) { +func (m *SubcontrolMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (PasswordResetToken). -func (m *PasswordResetTokenMutation) Type() string { +// Type returns the node type of this mutation (Subcontrol). +func (m *SubcontrolMutation) 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 *PasswordResetTokenMutation) Fields() []string { - fields := make([]string, 0, 12) +func (m *SubcontrolMutation) Fields() []string { + fields := make([]string, 0, 24) if m.created_at != nil { - fields = append(fields, passwordresettoken.FieldCreatedAt) + fields = append(fields, subcontrol.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, passwordresettoken.FieldUpdatedAt) + fields = append(fields, subcontrol.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, passwordresettoken.FieldCreatedBy) + fields = append(fields, subcontrol.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, subcontrol.FieldUpdatedBy) + } + if m.deleted_at != nil { + fields = append(fields, subcontrol.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, subcontrol.FieldDeletedBy) + } + if m.mapping_id != nil { + fields = append(fields, subcontrol.FieldMappingID) + } + if m.tags != nil { + fields = append(fields, subcontrol.FieldTags) + } + if m.name != nil { + fields = append(fields, subcontrol.FieldName) + } + if m.description != nil { + fields = append(fields, subcontrol.FieldDescription) + } + if m.status != nil { + fields = append(fields, subcontrol.FieldStatus) + } + if m.subcontrol_type != nil { + fields = append(fields, subcontrol.FieldSubcontrolType) + } + if m.version != nil { + fields = append(fields, subcontrol.FieldVersion) + } + if m.subcontrol_number != nil { + fields = append(fields, subcontrol.FieldSubcontrolNumber) } - if m.updated_by != nil { - fields = append(fields, passwordresettoken.FieldUpdatedBy) + if m.family != nil { + fields = append(fields, subcontrol.FieldFamily) } - if m.mapping_id != nil { - fields = append(fields, passwordresettoken.FieldMappingID) + if m.class != nil { + fields = append(fields, subcontrol.FieldClass) } - if m.deleted_at != nil { - fields = append(fields, passwordresettoken.FieldDeletedAt) + if m.source != nil { + fields = append(fields, subcontrol.FieldSource) } - if m.deleted_by != nil { - fields = append(fields, passwordresettoken.FieldDeletedBy) + if m.mapped_frameworks != nil { + fields = append(fields, subcontrol.FieldMappedFrameworks) } - if m.owner != nil { - fields = append(fields, passwordresettoken.FieldOwnerID) + if m.implementation_evidence != nil { + fields = append(fields, subcontrol.FieldImplementationEvidence) } - if m.token != nil { - fields = append(fields, passwordresettoken.FieldToken) + if m.implementation_status != nil { + fields = append(fields, subcontrol.FieldImplementationStatus) } - if m.ttl != nil { - fields = append(fields, passwordresettoken.FieldTTL) + if m.implementation_date != nil { + fields = append(fields, subcontrol.FieldImplementationDate) } - if m.email != nil { - fields = append(fields, passwordresettoken.FieldEmail) + if m.implementation_verification != nil { + fields = append(fields, subcontrol.FieldImplementationVerification) } - if m.secret != nil { - fields = append(fields, passwordresettoken.FieldSecret) + if m.implementation_verification_date != nil { + fields = append(fields, subcontrol.FieldImplementationVerificationDate) + } + if m.details != nil { + fields = append(fields, subcontrol.FieldDetails) } return fields } @@ -67534,32 +99571,56 @@ func (m *PasswordResetTokenMutation) Fields() []string { // 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 *PasswordResetTokenMutation) Field(name string) (ent.Value, bool) { +func (m *SubcontrolMutation) Field(name string) (ent.Value, bool) { switch name { - case passwordresettoken.FieldCreatedAt: + case subcontrol.FieldCreatedAt: return m.CreatedAt() - case passwordresettoken.FieldUpdatedAt: + case subcontrol.FieldUpdatedAt: return m.UpdatedAt() - case passwordresettoken.FieldCreatedBy: + case subcontrol.FieldCreatedBy: return m.CreatedBy() - case passwordresettoken.FieldUpdatedBy: + case subcontrol.FieldUpdatedBy: return m.UpdatedBy() - case passwordresettoken.FieldMappingID: - return m.MappingID() - case passwordresettoken.FieldDeletedAt: + case subcontrol.FieldDeletedAt: return m.DeletedAt() - case passwordresettoken.FieldDeletedBy: + case subcontrol.FieldDeletedBy: return m.DeletedBy() - case passwordresettoken.FieldOwnerID: - return m.OwnerID() - case passwordresettoken.FieldToken: - return m.Token() - case passwordresettoken.FieldTTL: - return m.TTL() - case passwordresettoken.FieldEmail: - return m.Email() - case passwordresettoken.FieldSecret: - return m.Secret() + case subcontrol.FieldMappingID: + return m.MappingID() + case subcontrol.FieldTags: + return m.Tags() + case subcontrol.FieldName: + return m.Name() + case subcontrol.FieldDescription: + return m.Description() + case subcontrol.FieldStatus: + return m.Status() + case subcontrol.FieldSubcontrolType: + return m.SubcontrolType() + case subcontrol.FieldVersion: + return m.Version() + case subcontrol.FieldSubcontrolNumber: + return m.SubcontrolNumber() + case subcontrol.FieldFamily: + return m.Family() + case subcontrol.FieldClass: + return m.Class() + case subcontrol.FieldSource: + return m.Source() + case subcontrol.FieldMappedFrameworks: + return m.MappedFrameworks() + case subcontrol.FieldImplementationEvidence: + return m.ImplementationEvidence() + case subcontrol.FieldImplementationStatus: + return m.ImplementationStatus() + case subcontrol.FieldImplementationDate: + return m.ImplementationDate() + case subcontrol.FieldImplementationVerification: + return m.ImplementationVerification() + case subcontrol.FieldImplementationVerificationDate: + return m.ImplementationVerificationDate() + case subcontrol.FieldDetails: + return m.Details() } return nil, false } @@ -67567,268 +99628,526 @@ func (m *PasswordResetTokenMutation) Field(name string) (ent.Value, bool) { // 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 *PasswordResetTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *SubcontrolMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case passwordresettoken.FieldCreatedAt: + case subcontrol.FieldCreatedAt: return m.OldCreatedAt(ctx) - case passwordresettoken.FieldUpdatedAt: + case subcontrol.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case passwordresettoken.FieldCreatedBy: + case subcontrol.FieldCreatedBy: return m.OldCreatedBy(ctx) - case passwordresettoken.FieldUpdatedBy: + case subcontrol.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case passwordresettoken.FieldMappingID: - return m.OldMappingID(ctx) - case passwordresettoken.FieldDeletedAt: + case subcontrol.FieldDeletedAt: return m.OldDeletedAt(ctx) - case passwordresettoken.FieldDeletedBy: + case subcontrol.FieldDeletedBy: return m.OldDeletedBy(ctx) - case passwordresettoken.FieldOwnerID: - return m.OldOwnerID(ctx) - case passwordresettoken.FieldToken: - return m.OldToken(ctx) - case passwordresettoken.FieldTTL: - return m.OldTTL(ctx) - case passwordresettoken.FieldEmail: - return m.OldEmail(ctx) - case passwordresettoken.FieldSecret: - return m.OldSecret(ctx) - } - return nil, fmt.Errorf("unknown PasswordResetToken field %s", name) + case subcontrol.FieldMappingID: + return m.OldMappingID(ctx) + case subcontrol.FieldTags: + return m.OldTags(ctx) + case subcontrol.FieldName: + return m.OldName(ctx) + case subcontrol.FieldDescription: + return m.OldDescription(ctx) + case subcontrol.FieldStatus: + return m.OldStatus(ctx) + case subcontrol.FieldSubcontrolType: + return m.OldSubcontrolType(ctx) + case subcontrol.FieldVersion: + return m.OldVersion(ctx) + case subcontrol.FieldSubcontrolNumber: + return m.OldSubcontrolNumber(ctx) + case subcontrol.FieldFamily: + return m.OldFamily(ctx) + case subcontrol.FieldClass: + return m.OldClass(ctx) + case subcontrol.FieldSource: + return m.OldSource(ctx) + case subcontrol.FieldMappedFrameworks: + return m.OldMappedFrameworks(ctx) + case subcontrol.FieldImplementationEvidence: + return m.OldImplementationEvidence(ctx) + case subcontrol.FieldImplementationStatus: + return m.OldImplementationStatus(ctx) + case subcontrol.FieldImplementationDate: + return m.OldImplementationDate(ctx) + case subcontrol.FieldImplementationVerification: + return m.OldImplementationVerification(ctx) + case subcontrol.FieldImplementationVerificationDate: + return m.OldImplementationVerificationDate(ctx) + case subcontrol.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown Subcontrol 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 *PasswordResetTokenMutation) SetField(name string, value ent.Value) error { +func (m *SubcontrolMutation) SetField(name string, value ent.Value) error { switch name { - case passwordresettoken.FieldCreatedAt: + case subcontrol.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 passwordresettoken.FieldUpdatedAt: + case subcontrol.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 passwordresettoken.FieldCreatedBy: + case subcontrol.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case passwordresettoken.FieldUpdatedBy: + case subcontrol.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case passwordresettoken.FieldMappingID: + case subcontrol.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 subcontrol.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case subcontrol.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case passwordresettoken.FieldDeletedAt: - v, ok := value.(time.Time) + case subcontrol.FieldTags: + v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedAt(v) + m.SetTags(v) return nil - case passwordresettoken.FieldDeletedBy: + case subcontrol.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDeletedBy(v) + m.SetName(v) return nil - case passwordresettoken.FieldOwnerID: + case subcontrol.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetDescription(v) return nil - case passwordresettoken.FieldToken: + case subcontrol.FieldStatus: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetToken(v) + m.SetStatus(v) return nil - case passwordresettoken.FieldTTL: + case subcontrol.FieldSubcontrolType: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSubcontrolType(v) + return nil + case subcontrol.FieldVersion: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetVersion(v) + return nil + case subcontrol.FieldSubcontrolNumber: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSubcontrolNumber(v) + return nil + case subcontrol.FieldFamily: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetFamily(v) + return nil + case subcontrol.FieldClass: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClass(v) + return nil + case subcontrol.FieldSource: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSource(v) + return nil + case subcontrol.FieldMappedFrameworks: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappedFrameworks(v) + return nil + case subcontrol.FieldImplementationEvidence: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetImplementationEvidence(v) + return nil + case subcontrol.FieldImplementationStatus: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetImplementationStatus(v) + return nil + case subcontrol.FieldImplementationDate: v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetTTL(v) + m.SetImplementationDate(v) return nil - case passwordresettoken.FieldEmail: + case subcontrol.FieldImplementationVerification: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetEmail(v) + m.SetImplementationVerification(v) return nil - case passwordresettoken.FieldSecret: - v, ok := value.([]byte) + case subcontrol.FieldImplementationVerificationDate: + v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetSecret(v) + m.SetImplementationVerificationDate(v) + return nil + case subcontrol.FieldDetails: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDetails(v) return nil } - return fmt.Errorf("unknown PasswordResetToken field %s", name) + return fmt.Errorf("unknown Subcontrol field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *PasswordResetTokenMutation) AddedFields() []string { +func (m *SubcontrolMutation) 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 *PasswordResetTokenMutation) AddedField(name string) (ent.Value, bool) { +func (m *SubcontrolMutation) 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 *PasswordResetTokenMutation) AddField(name string, value ent.Value) error { +func (m *SubcontrolMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown PasswordResetToken numeric field %s", name) + return fmt.Errorf("unknown Subcontrol numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *PasswordResetTokenMutation) ClearedFields() []string { +func (m *SubcontrolMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(passwordresettoken.FieldCreatedAt) { - fields = append(fields, passwordresettoken.FieldCreatedAt) + if m.FieldCleared(subcontrol.FieldCreatedAt) { + fields = append(fields, subcontrol.FieldCreatedAt) } - if m.FieldCleared(passwordresettoken.FieldUpdatedAt) { - fields = append(fields, passwordresettoken.FieldUpdatedAt) + if m.FieldCleared(subcontrol.FieldUpdatedAt) { + fields = append(fields, subcontrol.FieldUpdatedAt) } - if m.FieldCleared(passwordresettoken.FieldCreatedBy) { - fields = append(fields, passwordresettoken.FieldCreatedBy) + if m.FieldCleared(subcontrol.FieldCreatedBy) { + fields = append(fields, subcontrol.FieldCreatedBy) } - if m.FieldCleared(passwordresettoken.FieldUpdatedBy) { - fields = append(fields, passwordresettoken.FieldUpdatedBy) + if m.FieldCleared(subcontrol.FieldUpdatedBy) { + fields = append(fields, subcontrol.FieldUpdatedBy) } - if m.FieldCleared(passwordresettoken.FieldDeletedAt) { - fields = append(fields, passwordresettoken.FieldDeletedAt) + if m.FieldCleared(subcontrol.FieldDeletedAt) { + fields = append(fields, subcontrol.FieldDeletedAt) } - if m.FieldCleared(passwordresettoken.FieldDeletedBy) { - fields = append(fields, passwordresettoken.FieldDeletedBy) + if m.FieldCleared(subcontrol.FieldDeletedBy) { + fields = append(fields, subcontrol.FieldDeletedBy) + } + if m.FieldCleared(subcontrol.FieldTags) { + fields = append(fields, subcontrol.FieldTags) + } + if m.FieldCleared(subcontrol.FieldDescription) { + fields = append(fields, subcontrol.FieldDescription) + } + if m.FieldCleared(subcontrol.FieldStatus) { + fields = append(fields, subcontrol.FieldStatus) + } + if m.FieldCleared(subcontrol.FieldSubcontrolType) { + fields = append(fields, subcontrol.FieldSubcontrolType) + } + if m.FieldCleared(subcontrol.FieldVersion) { + fields = append(fields, subcontrol.FieldVersion) + } + if m.FieldCleared(subcontrol.FieldSubcontrolNumber) { + fields = append(fields, subcontrol.FieldSubcontrolNumber) + } + if m.FieldCleared(subcontrol.FieldFamily) { + fields = append(fields, subcontrol.FieldFamily) + } + if m.FieldCleared(subcontrol.FieldClass) { + fields = append(fields, subcontrol.FieldClass) + } + if m.FieldCleared(subcontrol.FieldSource) { + fields = append(fields, subcontrol.FieldSource) + } + if m.FieldCleared(subcontrol.FieldMappedFrameworks) { + fields = append(fields, subcontrol.FieldMappedFrameworks) + } + if m.FieldCleared(subcontrol.FieldImplementationEvidence) { + fields = append(fields, subcontrol.FieldImplementationEvidence) + } + if m.FieldCleared(subcontrol.FieldImplementationStatus) { + fields = append(fields, subcontrol.FieldImplementationStatus) + } + if m.FieldCleared(subcontrol.FieldImplementationDate) { + fields = append(fields, subcontrol.FieldImplementationDate) + } + if m.FieldCleared(subcontrol.FieldImplementationVerification) { + fields = append(fields, subcontrol.FieldImplementationVerification) + } + if m.FieldCleared(subcontrol.FieldImplementationVerificationDate) { + fields = append(fields, subcontrol.FieldImplementationVerificationDate) + } + if m.FieldCleared(subcontrol.FieldDetails) { + fields = append(fields, subcontrol.FieldDetails) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *PasswordResetTokenMutation) FieldCleared(name string) bool { +func (m *SubcontrolMutation) 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 *PasswordResetTokenMutation) ClearField(name string) error { +func (m *SubcontrolMutation) ClearField(name string) error { switch name { - case passwordresettoken.FieldCreatedAt: + case subcontrol.FieldCreatedAt: m.ClearCreatedAt() return nil - case passwordresettoken.FieldUpdatedAt: + case subcontrol.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case passwordresettoken.FieldCreatedBy: + case subcontrol.FieldCreatedBy: m.ClearCreatedBy() return nil - case passwordresettoken.FieldUpdatedBy: + case subcontrol.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case passwordresettoken.FieldDeletedAt: + case subcontrol.FieldDeletedAt: m.ClearDeletedAt() return nil - case passwordresettoken.FieldDeletedBy: + case subcontrol.FieldDeletedBy: m.ClearDeletedBy() return nil + case subcontrol.FieldTags: + m.ClearTags() + return nil + case subcontrol.FieldDescription: + m.ClearDescription() + return nil + case subcontrol.FieldStatus: + m.ClearStatus() + return nil + case subcontrol.FieldSubcontrolType: + m.ClearSubcontrolType() + return nil + case subcontrol.FieldVersion: + m.ClearVersion() + return nil + case subcontrol.FieldSubcontrolNumber: + m.ClearSubcontrolNumber() + return nil + case subcontrol.FieldFamily: + m.ClearFamily() + return nil + case subcontrol.FieldClass: + m.ClearClass() + return nil + case subcontrol.FieldSource: + m.ClearSource() + return nil + case subcontrol.FieldMappedFrameworks: + m.ClearMappedFrameworks() + return nil + case subcontrol.FieldImplementationEvidence: + m.ClearImplementationEvidence() + return nil + case subcontrol.FieldImplementationStatus: + m.ClearImplementationStatus() + return nil + case subcontrol.FieldImplementationDate: + m.ClearImplementationDate() + return nil + case subcontrol.FieldImplementationVerification: + m.ClearImplementationVerification() + return nil + case subcontrol.FieldImplementationVerificationDate: + m.ClearImplementationVerificationDate() + return nil + case subcontrol.FieldDetails: + m.ClearDetails() + return nil } - return fmt.Errorf("unknown PasswordResetToken nullable field %s", name) + return fmt.Errorf("unknown Subcontrol 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 *PasswordResetTokenMutation) ResetField(name string) error { +func (m *SubcontrolMutation) ResetField(name string) error { switch name { - case passwordresettoken.FieldCreatedAt: + case subcontrol.FieldCreatedAt: m.ResetCreatedAt() return nil - case passwordresettoken.FieldUpdatedAt: + case subcontrol.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case passwordresettoken.FieldCreatedBy: + case subcontrol.FieldCreatedBy: m.ResetCreatedBy() return nil - case passwordresettoken.FieldUpdatedBy: + case subcontrol.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case passwordresettoken.FieldMappingID: - m.ResetMappingID() - return nil - case passwordresettoken.FieldDeletedAt: + case subcontrol.FieldDeletedAt: m.ResetDeletedAt() return nil - case passwordresettoken.FieldDeletedBy: + case subcontrol.FieldDeletedBy: m.ResetDeletedBy() return nil - case passwordresettoken.FieldOwnerID: - m.ResetOwnerID() + case subcontrol.FieldMappingID: + m.ResetMappingID() return nil - case passwordresettoken.FieldToken: - m.ResetToken() + case subcontrol.FieldTags: + m.ResetTags() return nil - case passwordresettoken.FieldTTL: - m.ResetTTL() + case subcontrol.FieldName: + m.ResetName() return nil - case passwordresettoken.FieldEmail: - m.ResetEmail() + case subcontrol.FieldDescription: + m.ResetDescription() return nil - case passwordresettoken.FieldSecret: - m.ResetSecret() + case subcontrol.FieldStatus: + m.ResetStatus() + return nil + case subcontrol.FieldSubcontrolType: + m.ResetSubcontrolType() + return nil + case subcontrol.FieldVersion: + m.ResetVersion() + return nil + case subcontrol.FieldSubcontrolNumber: + m.ResetSubcontrolNumber() + return nil + case subcontrol.FieldFamily: + m.ResetFamily() + return nil + case subcontrol.FieldClass: + m.ResetClass() + return nil + case subcontrol.FieldSource: + m.ResetSource() + return nil + case subcontrol.FieldMappedFrameworks: + m.ResetMappedFrameworks() + return nil + case subcontrol.FieldImplementationEvidence: + m.ResetImplementationEvidence() + return nil + case subcontrol.FieldImplementationStatus: + m.ResetImplementationStatus() + return nil + case subcontrol.FieldImplementationDate: + m.ResetImplementationDate() + return nil + case subcontrol.FieldImplementationVerification: + m.ResetImplementationVerification() + return nil + case subcontrol.FieldImplementationVerificationDate: + m.ResetImplementationVerificationDate() + return nil + case subcontrol.FieldDetails: + m.ResetDetails() return nil } - return fmt.Errorf("unknown PasswordResetToken field %s", name) + return fmt.Errorf("unknown Subcontrol field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *PasswordResetTokenMutation) AddedEdges() []string { - edges := make([]string, 0, 1) - if m.owner != nil { - edges = append(edges, passwordresettoken.EdgeOwner) +func (m *SubcontrolMutation) AddedEdges() []string { + edges := make([]string, 0, 3) + if m.control != nil { + edges = append(edges, subcontrol.EdgeControl) + } + if m.user != nil { + edges = append(edges, subcontrol.EdgeUser) + } + if m.notes != nil { + edges = append(edges, subcontrol.EdgeNotes) } return edges } // AddedIDs returns all IDs (to other nodes) that were added for the given edge // name in this mutation. -func (m *PasswordResetTokenMutation) AddedIDs(name string) []ent.Value { +func (m *SubcontrolMutation) AddedIDs(name string) []ent.Value { switch name { - case passwordresettoken.EdgeOwner: - if id := m.owner; id != nil { + case subcontrol.EdgeControl: + ids := make([]ent.Value, 0, len(m.control)) + for id := range m.control { + ids = append(ids, id) + } + return ids + case subcontrol.EdgeUser: + ids := make([]ent.Value, 0, len(m.user)) + for id := range m.user { + ids = append(ids, id) + } + return ids + case subcontrol.EdgeNotes: + if id := m.notes; id != nil { return []ent.Value{*id} } } @@ -67836,105 +100155,145 @@ func (m *PasswordResetTokenMutation) AddedIDs(name string) []ent.Value { } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *PasswordResetTokenMutation) RemovedEdges() []string { - edges := make([]string, 0, 1) +func (m *SubcontrolMutation) RemovedEdges() []string { + edges := make([]string, 0, 3) + if m.removedcontrol != nil { + edges = append(edges, subcontrol.EdgeControl) + } + if m.removeduser != nil { + edges = append(edges, subcontrol.EdgeUser) + } return edges } // RemovedIDs returns all IDs (to other nodes) that were removed for the edge with // the given name in this mutation. -func (m *PasswordResetTokenMutation) RemovedIDs(name string) []ent.Value { +func (m *SubcontrolMutation) RemovedIDs(name string) []ent.Value { + switch name { + case subcontrol.EdgeControl: + ids := make([]ent.Value, 0, len(m.removedcontrol)) + for id := range m.removedcontrol { + ids = append(ids, id) + } + return ids + case subcontrol.EdgeUser: + ids := make([]ent.Value, 0, len(m.removeduser)) + for id := range m.removeduser { + ids = append(ids, id) + } + return ids + } return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *PasswordResetTokenMutation) ClearedEdges() []string { - edges := make([]string, 0, 1) - if m.clearedowner { - edges = append(edges, passwordresettoken.EdgeOwner) +func (m *SubcontrolMutation) ClearedEdges() []string { + edges := make([]string, 0, 3) + if m.clearedcontrol { + edges = append(edges, subcontrol.EdgeControl) + } + if m.cleareduser { + edges = append(edges, subcontrol.EdgeUser) + } + if m.clearednotes { + edges = append(edges, subcontrol.EdgeNotes) } return edges } // EdgeCleared returns a boolean which indicates if the edge with the given name // was cleared in this mutation. -func (m *PasswordResetTokenMutation) EdgeCleared(name string) bool { +func (m *SubcontrolMutation) EdgeCleared(name string) bool { switch name { - case passwordresettoken.EdgeOwner: - return m.clearedowner + case subcontrol.EdgeControl: + return m.clearedcontrol + case subcontrol.EdgeUser: + return m.cleareduser + case subcontrol.EdgeNotes: + return m.clearednotes } 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 *PasswordResetTokenMutation) ClearEdge(name string) error { +func (m *SubcontrolMutation) ClearEdge(name string) error { switch name { - case passwordresettoken.EdgeOwner: - m.ClearOwner() + case subcontrol.EdgeNotes: + m.ClearNotes() return nil } - return fmt.Errorf("unknown PasswordResetToken unique edge %s", name) + return fmt.Errorf("unknown Subcontrol 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 *PasswordResetTokenMutation) ResetEdge(name string) error { +func (m *SubcontrolMutation) ResetEdge(name string) error { switch name { - case passwordresettoken.EdgeOwner: - m.ResetOwner() + case subcontrol.EdgeControl: + m.ResetControl() + return nil + case subcontrol.EdgeUser: + m.ResetUser() + return nil + case subcontrol.EdgeNotes: + m.ResetNotes() return nil } - return fmt.Errorf("unknown PasswordResetToken edge %s", name) + return fmt.Errorf("unknown Subcontrol edge %s", name) } -// PersonalAccessTokenMutation represents an operation that mutates the PersonalAccessToken nodes in the graph. -type PersonalAccessTokenMutation struct { +// SubcontrolHistoryMutation represents an operation that mutates the SubcontrolHistory nodes in the graph. +type SubcontrolHistoryMutation struct { config - op Op - typ string - id *string - created_at *time.Time - updated_at *time.Time - created_by *string - updated_by *string - deleted_at *time.Time - deleted_by *string - mapping_id *string - tags *[]string - appendtags []string - name *string - token *string - expires_at *time.Time - description *string - scopes *[]string - appendscopes []string - last_used_at *time.Time - clearedFields map[string]struct{} - owner *string - clearedowner bool - organizations map[string]struct{} - removedorganizations map[string]struct{} - clearedorganizations bool - events map[string]struct{} - removedevents map[string]struct{} - clearedevents bool - done bool - oldValue func(context.Context) (*PersonalAccessToken, error) - predicates []predicate.PersonalAccessToken + 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 + deleted_at *time.Time + deleted_by *string + mapping_id *string + tags *[]string + appendtags []string + name *string + description *string + status *string + subcontrol_type *string + version *string + subcontrol_number *string + family *string + class *string + source *string + mapped_frameworks *string + implementation_evidence *string + implementation_status *string + implementation_date *time.Time + implementation_verification *string + implementation_verification_date *time.Time + details *map[string]interface{} + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*SubcontrolHistory, error) + predicates []predicate.SubcontrolHistory } -var _ ent.Mutation = (*PersonalAccessTokenMutation)(nil) +var _ ent.Mutation = (*SubcontrolHistoryMutation)(nil) -// personalaccesstokenOption allows management of the mutation configuration using functional options. -type personalaccesstokenOption func(*PersonalAccessTokenMutation) +// subcontrolhistoryOption allows management of the mutation configuration using functional options. +type subcontrolhistoryOption func(*SubcontrolHistoryMutation) -// newPersonalAccessTokenMutation creates new mutation for the PersonalAccessToken entity. -func newPersonalAccessTokenMutation(c config, op Op, opts ...personalaccesstokenOption) *PersonalAccessTokenMutation { - m := &PersonalAccessTokenMutation{ +// newSubcontrolHistoryMutation creates new mutation for the SubcontrolHistory entity. +func newSubcontrolHistoryMutation(c config, op Op, opts ...subcontrolhistoryOption) *SubcontrolHistoryMutation { + m := &SubcontrolHistoryMutation{ config: c, op: op, - typ: TypePersonalAccessToken, + typ: TypeSubcontrolHistory, clearedFields: make(map[string]struct{}), } for _, opt := range opts { @@ -67943,20 +100302,20 @@ func newPersonalAccessTokenMutation(c config, op Op, opts ...personalaccesstoken return m } -// withPersonalAccessTokenID sets the ID field of the mutation. -func withPersonalAccessTokenID(id string) personalaccesstokenOption { - return func(m *PersonalAccessTokenMutation) { +// withSubcontrolHistoryID sets the ID field of the mutation. +func withSubcontrolHistoryID(id string) subcontrolhistoryOption { + return func(m *SubcontrolHistoryMutation) { var ( err error once sync.Once - value *PersonalAccessToken + value *SubcontrolHistory ) - m.oldValue = func(ctx context.Context) (*PersonalAccessToken, error) { + m.oldValue = func(ctx context.Context) (*SubcontrolHistory, error) { once.Do(func() { if m.done { err = errors.New("querying old values post mutation is not allowed") } else { - value, err = m.Client().PersonalAccessToken.Get(ctx, id) + value, err = m.Client().SubcontrolHistory.Get(ctx, id) } }) return value, err @@ -67965,10 +100324,10 @@ func withPersonalAccessTokenID(id string) personalaccesstokenOption { } } -// withPersonalAccessToken sets the old PersonalAccessToken of the mutation. -func withPersonalAccessToken(node *PersonalAccessToken) personalaccesstokenOption { - return func(m *PersonalAccessTokenMutation) { - m.oldValue = func(context.Context) (*PersonalAccessToken, error) { +// withSubcontrolHistory sets the old SubcontrolHistory of the mutation. +func withSubcontrolHistory(node *SubcontrolHistory) subcontrolhistoryOption { + return func(m *SubcontrolHistoryMutation) { + m.oldValue = func(context.Context) (*SubcontrolHistory, error) { return node, nil } m.id = &node.ID @@ -67977,7 +100336,7 @@ func withPersonalAccessToken(node *PersonalAccessToken) personalaccesstokenOptio // 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 PersonalAccessTokenMutation) Client() *Client { +func (m SubcontrolHistoryMutation) Client() *Client { client := &Client{config: m.config} client.init() return client @@ -67985,7 +100344,7 @@ func (m PersonalAccessTokenMutation) Client() *Client { // Tx returns an `ent.Tx` for mutations that were executed in transactions; // it returns an error otherwise. -func (m PersonalAccessTokenMutation) Tx() (*Tx, error) { +func (m SubcontrolHistoryMutation) Tx() (*Tx, error) { if _, ok := m.driver.(*txDriver); !ok { return nil, errors.New("generated: mutation is not running in a transaction") } @@ -67995,14 +100354,14 @@ func (m PersonalAccessTokenMutation) Tx() (*Tx, error) { } // SetID sets the value of the id field. Note that this -// operation is only accepted on creation of PersonalAccessToken entities. -func (m *PersonalAccessTokenMutation) SetID(id string) { +// operation is only accepted on creation of SubcontrolHistory entities. +func (m *SubcontrolHistoryMutation) 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 *PersonalAccessTokenMutation) ID() (id string, exists bool) { +func (m *SubcontrolHistoryMutation) ID() (id string, exists bool) { if m.id == nil { return } @@ -68013,7 +100372,7 @@ func (m *PersonalAccessTokenMutation) ID() (id string, exists bool) { // 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 *PersonalAccessTokenMutation) IDs(ctx context.Context) ([]string, error) { +func (m *SubcontrolHistoryMutation) IDs(ctx context.Context) ([]string, error) { switch { case m.op.Is(OpUpdateOne | OpDeleteOne): id, exists := m.ID() @@ -68022,19 +100381,140 @@ func (m *PersonalAccessTokenMutation) IDs(ctx context.Context) ([]string, error) } fallthrough case m.op.Is(OpUpdate | OpDelete): - return m.Client().PersonalAccessToken.Query().Where(m.predicates...).IDs(ctx) + return m.Client().SubcontrolHistory.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 *SubcontrolHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *SubcontrolHistoryMutation) 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 SubcontrolHistory entity. +// If the SubcontrolHistory 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 *SubcontrolHistoryMutation) 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 *SubcontrolHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *SubcontrolHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *SubcontrolHistoryMutation) 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 SubcontrolHistory entity. +// If the SubcontrolHistory 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 *SubcontrolHistoryMutation) 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 *SubcontrolHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[subcontrolhistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *SubcontrolHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, subcontrolhistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *SubcontrolHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *SubcontrolHistoryMutation) 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 SubcontrolHistory entity. +// If the SubcontrolHistory 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 *SubcontrolHistoryMutation) 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 *SubcontrolHistoryMutation) ResetOperation() { + m.operation = nil +} + // SetCreatedAt sets the "created_at" field. -func (m *PersonalAccessTokenMutation) SetCreatedAt(t time.Time) { +func (m *SubcontrolHistoryMutation) SetCreatedAt(t time.Time) { m.created_at = &t } // CreatedAt returns the value of the "created_at" field in the mutation. -func (m *PersonalAccessTokenMutation) CreatedAt() (r time.Time, exists bool) { +func (m *SubcontrolHistoryMutation) CreatedAt() (r time.Time, exists bool) { v := m.created_at if v == nil { return @@ -68042,10 +100522,10 @@ func (m *PersonalAccessTokenMutation) CreatedAt() (r time.Time, exists bool) { return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedAt returns the old "created_at" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *SubcontrolHistoryMutation) 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") } @@ -68060,30 +100540,30 @@ func (m *PersonalAccessTokenMutation) OldCreatedAt(ctx context.Context) (v time. } // ClearCreatedAt clears the value of the "created_at" field. -func (m *PersonalAccessTokenMutation) ClearCreatedAt() { +func (m *SubcontrolHistoryMutation) ClearCreatedAt() { m.created_at = nil - m.clearedFields[personalaccesstoken.FieldCreatedAt] = struct{}{} + m.clearedFields[subcontrolhistory.FieldCreatedAt] = struct{}{} } // CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *PersonalAccessTokenMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[personalaccesstoken.FieldCreatedAt] +func (m *SubcontrolHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldCreatedAt] return ok } // ResetCreatedAt resets all changes to the "created_at" field. -func (m *PersonalAccessTokenMutation) ResetCreatedAt() { +func (m *SubcontrolHistoryMutation) ResetCreatedAt() { m.created_at = nil - delete(m.clearedFields, personalaccesstoken.FieldCreatedAt) + delete(m.clearedFields, subcontrolhistory.FieldCreatedAt) } // SetUpdatedAt sets the "updated_at" field. -func (m *PersonalAccessTokenMutation) SetUpdatedAt(t time.Time) { +func (m *SubcontrolHistoryMutation) SetUpdatedAt(t time.Time) { m.updated_at = &t } // UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *PersonalAccessTokenMutation) UpdatedAt() (r time.Time, exists bool) { +func (m *SubcontrolHistoryMutation) UpdatedAt() (r time.Time, exists bool) { v := m.updated_at if v == nil { return @@ -68091,10 +100571,10 @@ func (m *PersonalAccessTokenMutation) UpdatedAt() (r time.Time, exists bool) { return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedAt returns the old "updated_at" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *SubcontrolHistoryMutation) 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") } @@ -68109,30 +100589,30 @@ func (m *PersonalAccessTokenMutation) OldUpdatedAt(ctx context.Context) (v time. } // ClearUpdatedAt clears the value of the "updated_at" field. -func (m *PersonalAccessTokenMutation) ClearUpdatedAt() { +func (m *SubcontrolHistoryMutation) ClearUpdatedAt() { m.updated_at = nil - m.clearedFields[personalaccesstoken.FieldUpdatedAt] = struct{}{} + m.clearedFields[subcontrolhistory.FieldUpdatedAt] = struct{}{} } // UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *PersonalAccessTokenMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[personalaccesstoken.FieldUpdatedAt] +func (m *SubcontrolHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldUpdatedAt] return ok } // ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *PersonalAccessTokenMutation) ResetUpdatedAt() { +func (m *SubcontrolHistoryMutation) ResetUpdatedAt() { m.updated_at = nil - delete(m.clearedFields, personalaccesstoken.FieldUpdatedAt) + delete(m.clearedFields, subcontrolhistory.FieldUpdatedAt) } // SetCreatedBy sets the "created_by" field. -func (m *PersonalAccessTokenMutation) SetCreatedBy(s string) { +func (m *SubcontrolHistoryMutation) SetCreatedBy(s string) { m.created_by = &s } // CreatedBy returns the value of the "created_by" field in the mutation. -func (m *PersonalAccessTokenMutation) CreatedBy() (r string, exists bool) { +func (m *SubcontrolHistoryMutation) CreatedBy() (r string, exists bool) { v := m.created_by if v == nil { return @@ -68140,10 +100620,10 @@ func (m *PersonalAccessTokenMutation) CreatedBy() (r string, exists bool) { return *v, true } -// OldCreatedBy returns the old "created_by" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldCreatedBy returns the old "created_by" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldCreatedBy(ctx context.Context) (v string, err error) { +func (m *SubcontrolHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") } @@ -68158,30 +100638,30 @@ func (m *PersonalAccessTokenMutation) OldCreatedBy(ctx context.Context) (v strin } // ClearCreatedBy clears the value of the "created_by" field. -func (m *PersonalAccessTokenMutation) ClearCreatedBy() { +func (m *SubcontrolHistoryMutation) ClearCreatedBy() { m.created_by = nil - m.clearedFields[personalaccesstoken.FieldCreatedBy] = struct{}{} + m.clearedFields[subcontrolhistory.FieldCreatedBy] = struct{}{} } // CreatedByCleared returns if the "created_by" field was cleared in this mutation. -func (m *PersonalAccessTokenMutation) CreatedByCleared() bool { - _, ok := m.clearedFields[personalaccesstoken.FieldCreatedBy] +func (m *SubcontrolHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldCreatedBy] return ok } // ResetCreatedBy resets all changes to the "created_by" field. -func (m *PersonalAccessTokenMutation) ResetCreatedBy() { +func (m *SubcontrolHistoryMutation) ResetCreatedBy() { m.created_by = nil - delete(m.clearedFields, personalaccesstoken.FieldCreatedBy) + delete(m.clearedFields, subcontrolhistory.FieldCreatedBy) } // SetUpdatedBy sets the "updated_by" field. -func (m *PersonalAccessTokenMutation) SetUpdatedBy(s string) { +func (m *SubcontrolHistoryMutation) SetUpdatedBy(s string) { m.updated_by = &s } // UpdatedBy returns the value of the "updated_by" field in the mutation. -func (m *PersonalAccessTokenMutation) UpdatedBy() (r string, exists bool) { +func (m *SubcontrolHistoryMutation) UpdatedBy() (r string, exists bool) { v := m.updated_by if v == nil { return @@ -68189,10 +100669,10 @@ func (m *PersonalAccessTokenMutation) UpdatedBy() (r string, exists bool) { return *v, true } -// OldUpdatedBy returns the old "updated_by" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldUpdatedBy returns the old "updated_by" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { +func (m *SubcontrolHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") } @@ -68207,30 +100687,30 @@ func (m *PersonalAccessTokenMutation) OldUpdatedBy(ctx context.Context) (v strin } // ClearUpdatedBy clears the value of the "updated_by" field. -func (m *PersonalAccessTokenMutation) ClearUpdatedBy() { +func (m *SubcontrolHistoryMutation) ClearUpdatedBy() { m.updated_by = nil - m.clearedFields[personalaccesstoken.FieldUpdatedBy] = struct{}{} + m.clearedFields[subcontrolhistory.FieldUpdatedBy] = struct{}{} } // UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. -func (m *PersonalAccessTokenMutation) UpdatedByCleared() bool { - _, ok := m.clearedFields[personalaccesstoken.FieldUpdatedBy] +func (m *SubcontrolHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldUpdatedBy] return ok } // ResetUpdatedBy resets all changes to the "updated_by" field. -func (m *PersonalAccessTokenMutation) ResetUpdatedBy() { +func (m *SubcontrolHistoryMutation) ResetUpdatedBy() { m.updated_by = nil - delete(m.clearedFields, personalaccesstoken.FieldUpdatedBy) + delete(m.clearedFields, subcontrolhistory.FieldUpdatedBy) } // SetDeletedAt sets the "deleted_at" field. -func (m *PersonalAccessTokenMutation) SetDeletedAt(t time.Time) { +func (m *SubcontrolHistoryMutation) SetDeletedAt(t time.Time) { m.deleted_at = &t } // DeletedAt returns the value of the "deleted_at" field in the mutation. -func (m *PersonalAccessTokenMutation) DeletedAt() (r time.Time, exists bool) { +func (m *SubcontrolHistoryMutation) DeletedAt() (r time.Time, exists bool) { v := m.deleted_at if v == nil { return @@ -68238,10 +100718,10 @@ func (m *PersonalAccessTokenMutation) DeletedAt() (r time.Time, exists bool) { return *v, true } -// OldDeletedAt returns the old "deleted_at" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedAt returns the old "deleted_at" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { +func (m *SubcontrolHistoryMutation) 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") } @@ -68256,30 +100736,30 @@ func (m *PersonalAccessTokenMutation) OldDeletedAt(ctx context.Context) (v time. } // ClearDeletedAt clears the value of the "deleted_at" field. -func (m *PersonalAccessTokenMutation) ClearDeletedAt() { +func (m *SubcontrolHistoryMutation) ClearDeletedAt() { m.deleted_at = nil - m.clearedFields[personalaccesstoken.FieldDeletedAt] = struct{}{} + m.clearedFields[subcontrolhistory.FieldDeletedAt] = struct{}{} } // DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. -func (m *PersonalAccessTokenMutation) DeletedAtCleared() bool { - _, ok := m.clearedFields[personalaccesstoken.FieldDeletedAt] +func (m *SubcontrolHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldDeletedAt] return ok } // ResetDeletedAt resets all changes to the "deleted_at" field. -func (m *PersonalAccessTokenMutation) ResetDeletedAt() { +func (m *SubcontrolHistoryMutation) ResetDeletedAt() { m.deleted_at = nil - delete(m.clearedFields, personalaccesstoken.FieldDeletedAt) + delete(m.clearedFields, subcontrolhistory.FieldDeletedAt) } // SetDeletedBy sets the "deleted_by" field. -func (m *PersonalAccessTokenMutation) SetDeletedBy(s string) { +func (m *SubcontrolHistoryMutation) SetDeletedBy(s string) { m.deleted_by = &s } // DeletedBy returns the value of the "deleted_by" field in the mutation. -func (m *PersonalAccessTokenMutation) DeletedBy() (r string, exists bool) { +func (m *SubcontrolHistoryMutation) DeletedBy() (r string, exists bool) { v := m.deleted_by if v == nil { return @@ -68287,10 +100767,10 @@ func (m *PersonalAccessTokenMutation) DeletedBy() (r string, exists bool) { return *v, true } -// OldDeletedBy returns the old "deleted_by" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldDeletedBy returns the old "deleted_by" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldDeletedBy(ctx context.Context) (v string, err error) { +func (m *SubcontrolHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") } @@ -68305,30 +100785,30 @@ func (m *PersonalAccessTokenMutation) OldDeletedBy(ctx context.Context) (v strin } // ClearDeletedBy clears the value of the "deleted_by" field. -func (m *PersonalAccessTokenMutation) ClearDeletedBy() { +func (m *SubcontrolHistoryMutation) ClearDeletedBy() { m.deleted_by = nil - m.clearedFields[personalaccesstoken.FieldDeletedBy] = struct{}{} + m.clearedFields[subcontrolhistory.FieldDeletedBy] = struct{}{} } // DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. -func (m *PersonalAccessTokenMutation) DeletedByCleared() bool { - _, ok := m.clearedFields[personalaccesstoken.FieldDeletedBy] +func (m *SubcontrolHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldDeletedBy] return ok } // ResetDeletedBy resets all changes to the "deleted_by" field. -func (m *PersonalAccessTokenMutation) ResetDeletedBy() { +func (m *SubcontrolHistoryMutation) ResetDeletedBy() { m.deleted_by = nil - delete(m.clearedFields, personalaccesstoken.FieldDeletedBy) + delete(m.clearedFields, subcontrolhistory.FieldDeletedBy) } // SetMappingID sets the "mapping_id" field. -func (m *PersonalAccessTokenMutation) SetMappingID(s string) { +func (m *SubcontrolHistoryMutation) SetMappingID(s string) { m.mapping_id = &s } // MappingID returns the value of the "mapping_id" field in the mutation. -func (m *PersonalAccessTokenMutation) MappingID() (r string, exists bool) { +func (m *SubcontrolHistoryMutation) MappingID() (r string, exists bool) { v := m.mapping_id if v == nil { return @@ -68336,10 +100816,10 @@ func (m *PersonalAccessTokenMutation) MappingID() (r string, exists bool) { return *v, true } -// OldMappingID returns the old "mapping_id" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldMappingID returns the old "mapping_id" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldMappingID(ctx context.Context) (v string, err error) { +func (m *SubcontrolHistoryMutation) OldMappingID(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldMappingID is only allowed on UpdateOne operations") } @@ -68354,18 +100834,18 @@ func (m *PersonalAccessTokenMutation) OldMappingID(ctx context.Context) (v strin } // ResetMappingID resets all changes to the "mapping_id" field. -func (m *PersonalAccessTokenMutation) ResetMappingID() { +func (m *SubcontrolHistoryMutation) ResetMappingID() { m.mapping_id = nil } // SetTags sets the "tags" field. -func (m *PersonalAccessTokenMutation) SetTags(s []string) { +func (m *SubcontrolHistoryMutation) SetTags(s []string) { m.tags = &s m.appendtags = nil } // Tags returns the value of the "tags" field in the mutation. -func (m *PersonalAccessTokenMutation) Tags() (r []string, exists bool) { +func (m *SubcontrolHistoryMutation) Tags() (r []string, exists bool) { v := m.tags if v == nil { return @@ -68373,10 +100853,10 @@ func (m *PersonalAccessTokenMutation) Tags() (r []string, exists bool) { return *v, true } -// OldTags returns the old "tags" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldTags returns the old "tags" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldTags(ctx context.Context) (v []string, err error) { +func (m *SubcontrolHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { if !m.op.Is(OpUpdateOne) { return v, errors.New("OldTags is only allowed on UpdateOne operations") } @@ -68391,12 +100871,12 @@ func (m *PersonalAccessTokenMutation) OldTags(ctx context.Context) (v []string, } // AppendTags adds s to the "tags" field. -func (m *PersonalAccessTokenMutation) AppendTags(s []string) { +func (m *SubcontrolHistoryMutation) 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 *PersonalAccessTokenMutation) AppendedTags() ([]string, bool) { +func (m *SubcontrolHistoryMutation) AppendedTags() ([]string, bool) { if len(m.appendtags) == 0 { return nil, false } @@ -68404,489 +100884,805 @@ func (m *PersonalAccessTokenMutation) AppendedTags() ([]string, bool) { } // ClearTags clears the value of the "tags" field. -func (m *PersonalAccessTokenMutation) ClearTags() { +func (m *SubcontrolHistoryMutation) ClearTags() { m.tags = nil m.appendtags = nil - m.clearedFields[personalaccesstoken.FieldTags] = struct{}{} + m.clearedFields[subcontrolhistory.FieldTags] = struct{}{} } // TagsCleared returns if the "tags" field was cleared in this mutation. -func (m *PersonalAccessTokenMutation) TagsCleared() bool { - _, ok := m.clearedFields[personalaccesstoken.FieldTags] +func (m *SubcontrolHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldTags] return ok } // ResetTags resets all changes to the "tags" field. -func (m *PersonalAccessTokenMutation) ResetTags() { +func (m *SubcontrolHistoryMutation) ResetTags() { m.tags = nil m.appendtags = nil - delete(m.clearedFields, personalaccesstoken.FieldTags) + delete(m.clearedFields, subcontrolhistory.FieldTags) } -// SetOwnerID sets the "owner_id" field. -func (m *PersonalAccessTokenMutation) SetOwnerID(s string) { - m.owner = &s +// SetName sets the "name" field. +func (m *SubcontrolHistoryMutation) SetName(s string) { + m.name = &s } -// OwnerID returns the value of the "owner_id" field in the mutation. -func (m *PersonalAccessTokenMutation) OwnerID() (r string, exists bool) { - v := m.owner +// Name returns the value of the "name" field in the mutation. +func (m *SubcontrolHistoryMutation) Name() (r string, exists bool) { + v := m.name if v == nil { return } return *v, true } -// OldOwnerID returns the old "owner_id" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldName returns the old "name" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldOwnerID(ctx context.Context) (v string, err error) { +func (m *SubcontrolHistoryMutation) OldName(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + return v, errors.New("OldName 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") + 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 OldOwnerID: %w", err) + return v, fmt.Errorf("querying old value for OldName: %w", err) } - return oldValue.OwnerID, nil + return oldValue.Name, nil } -// ResetOwnerID resets all changes to the "owner_id" field. -func (m *PersonalAccessTokenMutation) ResetOwnerID() { - m.owner = nil +// ResetName resets all changes to the "name" field. +func (m *SubcontrolHistoryMutation) ResetName() { + m.name = nil } -// SetName sets the "name" field. -func (m *PersonalAccessTokenMutation) SetName(s string) { - m.name = &s +// SetDescription sets the "description" field. +func (m *SubcontrolHistoryMutation) SetDescription(s string) { + m.description = &s } -// Name returns the value of the "name" field in the mutation. -func (m *PersonalAccessTokenMutation) Name() (r string, exists bool) { - v := m.name +// Description returns the value of the "description" field in the mutation. +func (m *SubcontrolHistoryMutation) Description() (r string, exists bool) { + v := m.description if v == nil { return } return *v, true } -// OldName returns the old "name" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldDescription returns the old "description" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldName(ctx context.Context) (v string, err error) { +func (m *SubcontrolHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldName is only allowed on UpdateOne operations") + return v, errors.New("OldDescription 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") + 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 OldName: %w", err) + return v, fmt.Errorf("querying old value for OldDescription: %w", err) } - return oldValue.Name, nil + return oldValue.Description, nil } -// ResetName resets all changes to the "name" field. -func (m *PersonalAccessTokenMutation) ResetName() { - m.name = nil +// ClearDescription clears the value of the "description" field. +func (m *SubcontrolHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[subcontrolhistory.FieldDescription] = struct{}{} } -// SetToken sets the "token" field. -func (m *PersonalAccessTokenMutation) SetToken(s string) { - m.token = &s +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldDescription] + return ok } -// Token returns the value of the "token" field in the mutation. -func (m *PersonalAccessTokenMutation) Token() (r string, exists bool) { - v := m.token +// ResetDescription resets all changes to the "description" field. +func (m *SubcontrolHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, subcontrolhistory.FieldDescription) +} + +// SetStatus sets the "status" field. +func (m *SubcontrolHistoryMutation) SetStatus(s string) { + m.status = &s +} + +// Status returns the value of the "status" field in the mutation. +func (m *SubcontrolHistoryMutation) Status() (r string, exists bool) { + v := m.status if v == nil { return } return *v, true } -// OldToken returns the old "token" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldStatus returns the old "status" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldToken(ctx context.Context) (v string, err error) { +func (m *SubcontrolHistoryMutation) OldStatus(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldToken is only allowed on UpdateOne operations") + return v, errors.New("OldStatus is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldToken requires an ID field in the mutation") + return v, errors.New("OldStatus requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldToken: %w", err) + return v, fmt.Errorf("querying old value for OldStatus: %w", err) } - return oldValue.Token, nil + return oldValue.Status, nil } -// ResetToken resets all changes to the "token" field. -func (m *PersonalAccessTokenMutation) ResetToken() { - m.token = nil +// ClearStatus clears the value of the "status" field. +func (m *SubcontrolHistoryMutation) ClearStatus() { + m.status = nil + m.clearedFields[subcontrolhistory.FieldStatus] = struct{}{} } -// SetExpiresAt sets the "expires_at" field. -func (m *PersonalAccessTokenMutation) SetExpiresAt(t time.Time) { - m.expires_at = &t +// StatusCleared returns if the "status" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) StatusCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldStatus] + return ok } -// ExpiresAt returns the value of the "expires_at" field in the mutation. -func (m *PersonalAccessTokenMutation) ExpiresAt() (r time.Time, exists bool) { - v := m.expires_at +// ResetStatus resets all changes to the "status" field. +func (m *SubcontrolHistoryMutation) ResetStatus() { + m.status = nil + delete(m.clearedFields, subcontrolhistory.FieldStatus) +} + +// SetSubcontrolType sets the "subcontrol_type" field. +func (m *SubcontrolHistoryMutation) SetSubcontrolType(s string) { + m.subcontrol_type = &s +} + +// SubcontrolType returns the value of the "subcontrol_type" field in the mutation. +func (m *SubcontrolHistoryMutation) SubcontrolType() (r string, exists bool) { + v := m.subcontrol_type if v == nil { return } return *v, true } -// OldExpiresAt returns the old "expires_at" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldSubcontrolType returns the old "subcontrol_type" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldExpiresAt(ctx context.Context) (v *time.Time, err error) { +func (m *SubcontrolHistoryMutation) OldSubcontrolType(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldExpiresAt is only allowed on UpdateOne operations") + return v, errors.New("OldSubcontrolType is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldExpiresAt requires an ID field in the mutation") + return v, errors.New("OldSubcontrolType requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldExpiresAt: %w", err) + return v, fmt.Errorf("querying old value for OldSubcontrolType: %w", err) } - return oldValue.ExpiresAt, nil + return oldValue.SubcontrolType, nil } -// ClearExpiresAt clears the value of the "expires_at" field. -func (m *PersonalAccessTokenMutation) ClearExpiresAt() { - m.expires_at = nil - m.clearedFields[personalaccesstoken.FieldExpiresAt] = struct{}{} +// ClearSubcontrolType clears the value of the "subcontrol_type" field. +func (m *SubcontrolHistoryMutation) ClearSubcontrolType() { + m.subcontrol_type = nil + m.clearedFields[subcontrolhistory.FieldSubcontrolType] = struct{}{} } -// ExpiresAtCleared returns if the "expires_at" field was cleared in this mutation. -func (m *PersonalAccessTokenMutation) ExpiresAtCleared() bool { - _, ok := m.clearedFields[personalaccesstoken.FieldExpiresAt] +// SubcontrolTypeCleared returns if the "subcontrol_type" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) SubcontrolTypeCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldSubcontrolType] return ok } -// ResetExpiresAt resets all changes to the "expires_at" field. -func (m *PersonalAccessTokenMutation) ResetExpiresAt() { - m.expires_at = nil - delete(m.clearedFields, personalaccesstoken.FieldExpiresAt) +// ResetSubcontrolType resets all changes to the "subcontrol_type" field. +func (m *SubcontrolHistoryMutation) ResetSubcontrolType() { + m.subcontrol_type = nil + delete(m.clearedFields, subcontrolhistory.FieldSubcontrolType) } -// SetDescription sets the "description" field. -func (m *PersonalAccessTokenMutation) SetDescription(s string) { - m.description = &s +// SetVersion sets the "version" field. +func (m *SubcontrolHistoryMutation) SetVersion(s string) { + m.version = &s } -// Description returns the value of the "description" field in the mutation. -func (m *PersonalAccessTokenMutation) Description() (r string, exists bool) { - v := m.description +// Version returns the value of the "version" field in the mutation. +func (m *SubcontrolHistoryMutation) Version() (r string, exists bool) { + v := m.version if v == nil { return } return *v, true } -// OldDescription returns the old "description" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldVersion returns the old "version" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldDescription(ctx context.Context) (v *string, err error) { +func (m *SubcontrolHistoryMutation) OldVersion(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldDescription is only allowed on UpdateOne operations") + return v, errors.New("OldVersion 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") + return v, errors.New("OldVersion 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 v, fmt.Errorf("querying old value for OldVersion: %w", err) } - return oldValue.Description, nil + return oldValue.Version, nil } -// ClearDescription clears the value of the "description" field. -func (m *PersonalAccessTokenMutation) ClearDescription() { - m.description = nil - m.clearedFields[personalaccesstoken.FieldDescription] = struct{}{} +// ClearVersion clears the value of the "version" field. +func (m *SubcontrolHistoryMutation) ClearVersion() { + m.version = nil + m.clearedFields[subcontrolhistory.FieldVersion] = struct{}{} } -// DescriptionCleared returns if the "description" field was cleared in this mutation. -func (m *PersonalAccessTokenMutation) DescriptionCleared() bool { - _, ok := m.clearedFields[personalaccesstoken.FieldDescription] +// VersionCleared returns if the "version" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) VersionCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldVersion] return ok } -// ResetDescription resets all changes to the "description" field. -func (m *PersonalAccessTokenMutation) ResetDescription() { - m.description = nil - delete(m.clearedFields, personalaccesstoken.FieldDescription) +// ResetVersion resets all changes to the "version" field. +func (m *SubcontrolHistoryMutation) ResetVersion() { + m.version = nil + delete(m.clearedFields, subcontrolhistory.FieldVersion) } -// SetScopes sets the "scopes" field. -func (m *PersonalAccessTokenMutation) SetScopes(s []string) { - m.scopes = &s - m.appendscopes = nil +// SetSubcontrolNumber sets the "subcontrol_number" field. +func (m *SubcontrolHistoryMutation) SetSubcontrolNumber(s string) { + m.subcontrol_number = &s } -// Scopes returns the value of the "scopes" field in the mutation. -func (m *PersonalAccessTokenMutation) Scopes() (r []string, exists bool) { - v := m.scopes +// SubcontrolNumber returns the value of the "subcontrol_number" field in the mutation. +func (m *SubcontrolHistoryMutation) SubcontrolNumber() (r string, exists bool) { + v := m.subcontrol_number if v == nil { return } return *v, true } -// OldScopes returns the old "scopes" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldSubcontrolNumber returns the old "subcontrol_number" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldScopes(ctx context.Context) (v []string, err error) { +func (m *SubcontrolHistoryMutation) OldSubcontrolNumber(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldScopes is only allowed on UpdateOne operations") + return v, errors.New("OldSubcontrolNumber is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldScopes requires an ID field in the mutation") + return v, errors.New("OldSubcontrolNumber requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldScopes: %w", err) + return v, fmt.Errorf("querying old value for OldSubcontrolNumber: %w", err) } - return oldValue.Scopes, nil + return oldValue.SubcontrolNumber, nil } -// AppendScopes adds s to the "scopes" field. -func (m *PersonalAccessTokenMutation) AppendScopes(s []string) { - m.appendscopes = append(m.appendscopes, s...) +// ClearSubcontrolNumber clears the value of the "subcontrol_number" field. +func (m *SubcontrolHistoryMutation) ClearSubcontrolNumber() { + m.subcontrol_number = nil + m.clearedFields[subcontrolhistory.FieldSubcontrolNumber] = struct{}{} } -// AppendedScopes returns the list of values that were appended to the "scopes" field in this mutation. -func (m *PersonalAccessTokenMutation) AppendedScopes() ([]string, bool) { - if len(m.appendscopes) == 0 { - return nil, false +// SubcontrolNumberCleared returns if the "subcontrol_number" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) SubcontrolNumberCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldSubcontrolNumber] + return ok +} + +// ResetSubcontrolNumber resets all changes to the "subcontrol_number" field. +func (m *SubcontrolHistoryMutation) ResetSubcontrolNumber() { + m.subcontrol_number = nil + delete(m.clearedFields, subcontrolhistory.FieldSubcontrolNumber) +} + +// SetFamily sets the "family" field. +func (m *SubcontrolHistoryMutation) SetFamily(s string) { + m.family = &s +} + +// Family returns the value of the "family" field in the mutation. +func (m *SubcontrolHistoryMutation) Family() (r string, exists bool) { + v := m.family + if v == nil { + return } - return m.appendscopes, true + return *v, true } -// ClearScopes clears the value of the "scopes" field. -func (m *PersonalAccessTokenMutation) ClearScopes() { - m.scopes = nil - m.appendscopes = nil - m.clearedFields[personalaccesstoken.FieldScopes] = struct{}{} +// OldFamily returns the old "family" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *SubcontrolHistoryMutation) OldFamily(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldFamily is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldFamily requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldFamily: %w", err) + } + return oldValue.Family, nil } -// ScopesCleared returns if the "scopes" field was cleared in this mutation. -func (m *PersonalAccessTokenMutation) ScopesCleared() bool { - _, ok := m.clearedFields[personalaccesstoken.FieldScopes] +// ClearFamily clears the value of the "family" field. +func (m *SubcontrolHistoryMutation) ClearFamily() { + m.family = nil + m.clearedFields[subcontrolhistory.FieldFamily] = struct{}{} +} + +// FamilyCleared returns if the "family" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) FamilyCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldFamily] return ok } -// ResetScopes resets all changes to the "scopes" field. -func (m *PersonalAccessTokenMutation) ResetScopes() { - m.scopes = nil - m.appendscopes = nil - delete(m.clearedFields, personalaccesstoken.FieldScopes) +// ResetFamily resets all changes to the "family" field. +func (m *SubcontrolHistoryMutation) ResetFamily() { + m.family = nil + delete(m.clearedFields, subcontrolhistory.FieldFamily) } -// SetLastUsedAt sets the "last_used_at" field. -func (m *PersonalAccessTokenMutation) SetLastUsedAt(t time.Time) { - m.last_used_at = &t +// SetClass sets the "class" field. +func (m *SubcontrolHistoryMutation) SetClass(s string) { + m.class = &s } -// LastUsedAt returns the value of the "last_used_at" field in the mutation. -func (m *PersonalAccessTokenMutation) LastUsedAt() (r time.Time, exists bool) { - v := m.last_used_at +// Class returns the value of the "class" field in the mutation. +func (m *SubcontrolHistoryMutation) Class() (r string, exists bool) { + v := m.class if v == nil { return } return *v, true } -// OldLastUsedAt returns the old "last_used_at" field's value of the PersonalAccessToken entity. -// If the PersonalAccessToken object wasn't provided to the builder, the object is fetched from the database. +// OldClass returns the old "class" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *PersonalAccessTokenMutation) OldLastUsedAt(ctx context.Context) (v *time.Time, err error) { +func (m *SubcontrolHistoryMutation) OldClass(ctx context.Context) (v string, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldLastUsedAt is only allowed on UpdateOne operations") + return v, errors.New("OldClass is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldLastUsedAt requires an ID field in the mutation") + return v, errors.New("OldClass requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldLastUsedAt: %w", err) + return v, fmt.Errorf("querying old value for OldClass: %w", err) } - return oldValue.LastUsedAt, nil + return oldValue.Class, nil } -// ClearLastUsedAt clears the value of the "last_used_at" field. -func (m *PersonalAccessTokenMutation) ClearLastUsedAt() { - m.last_used_at = nil - m.clearedFields[personalaccesstoken.FieldLastUsedAt] = struct{}{} +// ClearClass clears the value of the "class" field. +func (m *SubcontrolHistoryMutation) ClearClass() { + m.class = nil + m.clearedFields[subcontrolhistory.FieldClass] = struct{}{} } -// LastUsedAtCleared returns if the "last_used_at" field was cleared in this mutation. -func (m *PersonalAccessTokenMutation) LastUsedAtCleared() bool { - _, ok := m.clearedFields[personalaccesstoken.FieldLastUsedAt] +// ClassCleared returns if the "class" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) ClassCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldClass] return ok } -// ResetLastUsedAt resets all changes to the "last_used_at" field. -func (m *PersonalAccessTokenMutation) ResetLastUsedAt() { - m.last_used_at = nil - delete(m.clearedFields, personalaccesstoken.FieldLastUsedAt) +// ResetClass resets all changes to the "class" field. +func (m *SubcontrolHistoryMutation) ResetClass() { + m.class = nil + delete(m.clearedFields, subcontrolhistory.FieldClass) } -// ClearOwner clears the "owner" edge to the User entity. -func (m *PersonalAccessTokenMutation) ClearOwner() { - m.clearedowner = true - m.clearedFields[personalaccesstoken.FieldOwnerID] = struct{}{} +// SetSource sets the "source" field. +func (m *SubcontrolHistoryMutation) SetSource(s string) { + m.source = &s } -// OwnerCleared reports if the "owner" edge to the User entity was cleared. -func (m *PersonalAccessTokenMutation) OwnerCleared() bool { - return m.clearedowner +// Source returns the value of the "source" field in the mutation. +func (m *SubcontrolHistoryMutation) Source() (r string, exists bool) { + v := m.source + if v == nil { + return + } + return *v, true } -// 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 *PersonalAccessTokenMutation) OwnerIDs() (ids []string) { - if id := m.owner; id != nil { - ids = append(ids, *id) +// OldSource returns the old "source" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *SubcontrolHistoryMutation) OldSource(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSource is only allowed on UpdateOne operations") } - return + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSource requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSource: %w", err) + } + return oldValue.Source, nil } -// ResetOwner resets all changes to the "owner" edge. -func (m *PersonalAccessTokenMutation) ResetOwner() { - m.owner = nil - m.clearedowner = false +// ClearSource clears the value of the "source" field. +func (m *SubcontrolHistoryMutation) ClearSource() { + m.source = nil + m.clearedFields[subcontrolhistory.FieldSource] = struct{}{} } -// AddOrganizationIDs adds the "organizations" edge to the Organization entity by ids. -func (m *PersonalAccessTokenMutation) AddOrganizationIDs(ids ...string) { - if m.organizations == nil { - m.organizations = make(map[string]struct{}) +// SourceCleared returns if the "source" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) SourceCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldSource] + return ok +} + +// ResetSource resets all changes to the "source" field. +func (m *SubcontrolHistoryMutation) ResetSource() { + m.source = nil + delete(m.clearedFields, subcontrolhistory.FieldSource) +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (m *SubcontrolHistoryMutation) SetMappedFrameworks(s string) { + m.mapped_frameworks = &s +} + +// MappedFrameworks returns the value of the "mapped_frameworks" field in the mutation. +func (m *SubcontrolHistoryMutation) MappedFrameworks() (r string, exists bool) { + v := m.mapped_frameworks + if v == nil { + return } - for i := range ids { - m.organizations[ids[i]] = struct{}{} + return *v, true +} + +// OldMappedFrameworks returns the old "mapped_frameworks" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *SubcontrolHistoryMutation) OldMappedFrameworks(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMappedFrameworks is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMappedFrameworks requires an ID field in the mutation") } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMappedFrameworks: %w", err) + } + return oldValue.MappedFrameworks, nil } -// ClearOrganizations clears the "organizations" edge to the Organization entity. -func (m *PersonalAccessTokenMutation) ClearOrganizations() { - m.clearedorganizations = true +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (m *SubcontrolHistoryMutation) ClearMappedFrameworks() { + m.mapped_frameworks = nil + m.clearedFields[subcontrolhistory.FieldMappedFrameworks] = struct{}{} } -// OrganizationsCleared reports if the "organizations" edge to the Organization entity was cleared. -func (m *PersonalAccessTokenMutation) OrganizationsCleared() bool { - return m.clearedorganizations +// MappedFrameworksCleared returns if the "mapped_frameworks" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) MappedFrameworksCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldMappedFrameworks] + return ok } -// RemoveOrganizationIDs removes the "organizations" edge to the Organization entity by IDs. -func (m *PersonalAccessTokenMutation) RemoveOrganizationIDs(ids ...string) { - if m.removedorganizations == nil { - m.removedorganizations = make(map[string]struct{}) +// ResetMappedFrameworks resets all changes to the "mapped_frameworks" field. +func (m *SubcontrolHistoryMutation) ResetMappedFrameworks() { + m.mapped_frameworks = nil + delete(m.clearedFields, subcontrolhistory.FieldMappedFrameworks) +} + +// SetImplementationEvidence sets the "implementation_evidence" field. +func (m *SubcontrolHistoryMutation) SetImplementationEvidence(s string) { + m.implementation_evidence = &s +} + +// ImplementationEvidence returns the value of the "implementation_evidence" field in the mutation. +func (m *SubcontrolHistoryMutation) ImplementationEvidence() (r string, exists bool) { + v := m.implementation_evidence + if v == nil { + return } - for i := range ids { - delete(m.organizations, ids[i]) - m.removedorganizations[ids[i]] = struct{}{} + return *v, true +} + +// OldImplementationEvidence returns the old "implementation_evidence" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *SubcontrolHistoryMutation) OldImplementationEvidence(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldImplementationEvidence is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldImplementationEvidence requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldImplementationEvidence: %w", err) } + return oldValue.ImplementationEvidence, nil } -// RemovedOrganizations returns the removed IDs of the "organizations" edge to the Organization entity. -func (m *PersonalAccessTokenMutation) RemovedOrganizationsIDs() (ids []string) { - for id := range m.removedorganizations { - ids = append(ids, id) +// ClearImplementationEvidence clears the value of the "implementation_evidence" field. +func (m *SubcontrolHistoryMutation) ClearImplementationEvidence() { + m.implementation_evidence = nil + m.clearedFields[subcontrolhistory.FieldImplementationEvidence] = struct{}{} +} + +// ImplementationEvidenceCleared returns if the "implementation_evidence" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) ImplementationEvidenceCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldImplementationEvidence] + return ok +} + +// ResetImplementationEvidence resets all changes to the "implementation_evidence" field. +func (m *SubcontrolHistoryMutation) ResetImplementationEvidence() { + m.implementation_evidence = nil + delete(m.clearedFields, subcontrolhistory.FieldImplementationEvidence) +} + +// SetImplementationStatus sets the "implementation_status" field. +func (m *SubcontrolHistoryMutation) SetImplementationStatus(s string) { + m.implementation_status = &s +} + +// ImplementationStatus returns the value of the "implementation_status" field in the mutation. +func (m *SubcontrolHistoryMutation) ImplementationStatus() (r string, exists bool) { + v := m.implementation_status + if v == nil { + return } - return + return *v, true } -// OrganizationsIDs returns the "organizations" edge IDs in the mutation. -func (m *PersonalAccessTokenMutation) OrganizationsIDs() (ids []string) { - for id := range m.organizations { - ids = append(ids, id) +// OldImplementationStatus returns the old "implementation_status" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *SubcontrolHistoryMutation) OldImplementationStatus(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldImplementationStatus is only allowed on UpdateOne operations") } - return + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldImplementationStatus requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldImplementationStatus: %w", err) + } + return oldValue.ImplementationStatus, nil } -// ResetOrganizations resets all changes to the "organizations" edge. -func (m *PersonalAccessTokenMutation) ResetOrganizations() { - m.organizations = nil - m.clearedorganizations = false - m.removedorganizations = nil +// ClearImplementationStatus clears the value of the "implementation_status" field. +func (m *SubcontrolHistoryMutation) ClearImplementationStatus() { + m.implementation_status = nil + m.clearedFields[subcontrolhistory.FieldImplementationStatus] = struct{}{} } -// AddEventIDs adds the "events" edge to the Event entity by ids. -func (m *PersonalAccessTokenMutation) AddEventIDs(ids ...string) { - if m.events == nil { - m.events = make(map[string]struct{}) +// ImplementationStatusCleared returns if the "implementation_status" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) ImplementationStatusCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldImplementationStatus] + return ok +} + +// ResetImplementationStatus resets all changes to the "implementation_status" field. +func (m *SubcontrolHistoryMutation) ResetImplementationStatus() { + m.implementation_status = nil + delete(m.clearedFields, subcontrolhistory.FieldImplementationStatus) +} + +// SetImplementationDate sets the "implementation_date" field. +func (m *SubcontrolHistoryMutation) SetImplementationDate(t time.Time) { + m.implementation_date = &t +} + +// ImplementationDate returns the value of the "implementation_date" field in the mutation. +func (m *SubcontrolHistoryMutation) ImplementationDate() (r time.Time, exists bool) { + v := m.implementation_date + if v == nil { + return } - for i := range ids { - m.events[ids[i]] = struct{}{} + return *v, true +} + +// OldImplementationDate returns the old "implementation_date" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *SubcontrolHistoryMutation) OldImplementationDate(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldImplementationDate is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldImplementationDate requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldImplementationDate: %w", err) } + return oldValue.ImplementationDate, nil } -// ClearEvents clears the "events" edge to the Event entity. -func (m *PersonalAccessTokenMutation) ClearEvents() { - m.clearedevents = true +// ClearImplementationDate clears the value of the "implementation_date" field. +func (m *SubcontrolHistoryMutation) ClearImplementationDate() { + m.implementation_date = nil + m.clearedFields[subcontrolhistory.FieldImplementationDate] = struct{}{} } -// EventsCleared reports if the "events" edge to the Event entity was cleared. -func (m *PersonalAccessTokenMutation) EventsCleared() bool { - return m.clearedevents +// ImplementationDateCleared returns if the "implementation_date" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) ImplementationDateCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldImplementationDate] + return ok } -// RemoveEventIDs removes the "events" edge to the Event entity by IDs. -func (m *PersonalAccessTokenMutation) RemoveEventIDs(ids ...string) { - if m.removedevents == nil { - m.removedevents = make(map[string]struct{}) +// ResetImplementationDate resets all changes to the "implementation_date" field. +func (m *SubcontrolHistoryMutation) ResetImplementationDate() { + m.implementation_date = nil + delete(m.clearedFields, subcontrolhistory.FieldImplementationDate) +} + +// SetImplementationVerification sets the "implementation_verification" field. +func (m *SubcontrolHistoryMutation) SetImplementationVerification(s string) { + m.implementation_verification = &s +} + +// ImplementationVerification returns the value of the "implementation_verification" field in the mutation. +func (m *SubcontrolHistoryMutation) ImplementationVerification() (r string, exists bool) { + v := m.implementation_verification + if v == nil { + return } - for i := range ids { - delete(m.events, ids[i]) - m.removedevents[ids[i]] = struct{}{} + return *v, true +} + +// OldImplementationVerification returns the old "implementation_verification" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *SubcontrolHistoryMutation) OldImplementationVerification(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldImplementationVerification is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldImplementationVerification requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldImplementationVerification: %w", err) + } + return oldValue.ImplementationVerification, nil +} + +// ClearImplementationVerification clears the value of the "implementation_verification" field. +func (m *SubcontrolHistoryMutation) ClearImplementationVerification() { + m.implementation_verification = nil + m.clearedFields[subcontrolhistory.FieldImplementationVerification] = struct{}{} +} + +// ImplementationVerificationCleared returns if the "implementation_verification" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) ImplementationVerificationCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldImplementationVerification] + return ok +} + +// ResetImplementationVerification resets all changes to the "implementation_verification" field. +func (m *SubcontrolHistoryMutation) ResetImplementationVerification() { + m.implementation_verification = nil + delete(m.clearedFields, subcontrolhistory.FieldImplementationVerification) +} + +// SetImplementationVerificationDate sets the "implementation_verification_date" field. +func (m *SubcontrolHistoryMutation) SetImplementationVerificationDate(t time.Time) { + m.implementation_verification_date = &t +} + +// ImplementationVerificationDate returns the value of the "implementation_verification_date" field in the mutation. +func (m *SubcontrolHistoryMutation) ImplementationVerificationDate() (r time.Time, exists bool) { + v := m.implementation_verification_date + if v == nil { + return + } + return *v, true +} + +// OldImplementationVerificationDate returns the old "implementation_verification_date" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *SubcontrolHistoryMutation) OldImplementationVerificationDate(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldImplementationVerificationDate is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldImplementationVerificationDate requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldImplementationVerificationDate: %w", err) + } + return oldValue.ImplementationVerificationDate, nil +} + +// ClearImplementationVerificationDate clears the value of the "implementation_verification_date" field. +func (m *SubcontrolHistoryMutation) ClearImplementationVerificationDate() { + m.implementation_verification_date = nil + m.clearedFields[subcontrolhistory.FieldImplementationVerificationDate] = struct{}{} +} + +// ImplementationVerificationDateCleared returns if the "implementation_verification_date" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) ImplementationVerificationDateCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldImplementationVerificationDate] + return ok +} + +// ResetImplementationVerificationDate resets all changes to the "implementation_verification_date" field. +func (m *SubcontrolHistoryMutation) ResetImplementationVerificationDate() { + m.implementation_verification_date = nil + delete(m.clearedFields, subcontrolhistory.FieldImplementationVerificationDate) +} + +// SetDetails sets the "details" field. +func (m *SubcontrolHistoryMutation) SetDetails(value map[string]interface{}) { + m.details = &value +} + +// Details returns the value of the "details" field in the mutation. +func (m *SubcontrolHistoryMutation) Details() (r map[string]interface{}, exists bool) { + v := m.details + if v == nil { + return } + return *v, true } -// RemovedEvents returns the removed IDs of the "events" edge to the Event entity. -func (m *PersonalAccessTokenMutation) RemovedEventsIDs() (ids []string) { - for id := range m.removedevents { - ids = append(ids, id) +// OldDetails returns the old "details" field's value of the SubcontrolHistory entity. +// If the SubcontrolHistory 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 *SubcontrolHistoryMutation) OldDetails(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDetails is only allowed on UpdateOne operations") } - return + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDetails requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDetails: %w", err) + } + return oldValue.Details, nil } -// EventsIDs returns the "events" edge IDs in the mutation. -func (m *PersonalAccessTokenMutation) EventsIDs() (ids []string) { - for id := range m.events { - ids = append(ids, id) - } - return +// ClearDetails clears the value of the "details" field. +func (m *SubcontrolHistoryMutation) ClearDetails() { + m.details = nil + m.clearedFields[subcontrolhistory.FieldDetails] = struct{}{} } -// ResetEvents resets all changes to the "events" edge. -func (m *PersonalAccessTokenMutation) ResetEvents() { - m.events = nil - m.clearedevents = false - m.removedevents = nil +// DetailsCleared returns if the "details" field was cleared in this mutation. +func (m *SubcontrolHistoryMutation) DetailsCleared() bool { + _, ok := m.clearedFields[subcontrolhistory.FieldDetails] + return ok } -// Where appends a list predicates to the PersonalAccessTokenMutation builder. -func (m *PersonalAccessTokenMutation) Where(ps ...predicate.PersonalAccessToken) { +// ResetDetails resets all changes to the "details" field. +func (m *SubcontrolHistoryMutation) ResetDetails() { + m.details = nil + delete(m.clearedFields, subcontrolhistory.FieldDetails) +} + +// Where appends a list predicates to the SubcontrolHistoryMutation builder. +func (m *SubcontrolHistoryMutation) Where(ps ...predicate.SubcontrolHistory) { m.predicates = append(m.predicates, ps...) } -// WhereP appends storage-level predicates to the PersonalAccessTokenMutation builder. Using this method, +// WhereP appends storage-level predicates to the SubcontrolHistoryMutation builder. Using this method, // users can use type-assertion to append predicates that do not depend on any generated package. -func (m *PersonalAccessTokenMutation) WhereP(ps ...func(*sql.Selector)) { - p := make([]predicate.PersonalAccessToken, len(ps)) +func (m *SubcontrolHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.SubcontrolHistory, len(ps)) for i := range ps { p[i] = ps[i] } @@ -68894,69 +101690,105 @@ func (m *PersonalAccessTokenMutation) WhereP(ps ...func(*sql.Selector)) { } // Op returns the operation name. -func (m *PersonalAccessTokenMutation) Op() Op { +func (m *SubcontrolHistoryMutation) Op() Op { return m.op } // SetOp allows setting the mutation operation. -func (m *PersonalAccessTokenMutation) SetOp(op Op) { +func (m *SubcontrolHistoryMutation) SetOp(op Op) { m.op = op } -// Type returns the node type of this mutation (PersonalAccessToken). -func (m *PersonalAccessTokenMutation) Type() string { +// Type returns the node type of this mutation (SubcontrolHistory). +func (m *SubcontrolHistoryMutation) 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 *PersonalAccessTokenMutation) Fields() []string { - fields := make([]string, 0, 15) +func (m *SubcontrolHistoryMutation) Fields() []string { + fields := make([]string, 0, 27) + if m.history_time != nil { + fields = append(fields, subcontrolhistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, subcontrolhistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, subcontrolhistory.FieldOperation) + } if m.created_at != nil { - fields = append(fields, personalaccesstoken.FieldCreatedAt) + fields = append(fields, subcontrolhistory.FieldCreatedAt) } if m.updated_at != nil { - fields = append(fields, personalaccesstoken.FieldUpdatedAt) + fields = append(fields, subcontrolhistory.FieldUpdatedAt) } if m.created_by != nil { - fields = append(fields, personalaccesstoken.FieldCreatedBy) + fields = append(fields, subcontrolhistory.FieldCreatedBy) } if m.updated_by != nil { - fields = append(fields, personalaccesstoken.FieldUpdatedBy) + fields = append(fields, subcontrolhistory.FieldUpdatedBy) } if m.deleted_at != nil { - fields = append(fields, personalaccesstoken.FieldDeletedAt) + fields = append(fields, subcontrolhistory.FieldDeletedAt) } if m.deleted_by != nil { - fields = append(fields, personalaccesstoken.FieldDeletedBy) + fields = append(fields, subcontrolhistory.FieldDeletedBy) } if m.mapping_id != nil { - fields = append(fields, personalaccesstoken.FieldMappingID) + fields = append(fields, subcontrolhistory.FieldMappingID) } if m.tags != nil { - fields = append(fields, personalaccesstoken.FieldTags) - } - if m.owner != nil { - fields = append(fields, personalaccesstoken.FieldOwnerID) + fields = append(fields, subcontrolhistory.FieldTags) } if m.name != nil { - fields = append(fields, personalaccesstoken.FieldName) + fields = append(fields, subcontrolhistory.FieldName) } - if m.token != nil { - fields = append(fields, personalaccesstoken.FieldToken) + if m.description != nil { + fields = append(fields, subcontrolhistory.FieldDescription) } - if m.expires_at != nil { - fields = append(fields, personalaccesstoken.FieldExpiresAt) + if m.status != nil { + fields = append(fields, subcontrolhistory.FieldStatus) } - if m.description != nil { - fields = append(fields, personalaccesstoken.FieldDescription) + if m.subcontrol_type != nil { + fields = append(fields, subcontrolhistory.FieldSubcontrolType) } - if m.scopes != nil { - fields = append(fields, personalaccesstoken.FieldScopes) + if m.version != nil { + fields = append(fields, subcontrolhistory.FieldVersion) } - if m.last_used_at != nil { - fields = append(fields, personalaccesstoken.FieldLastUsedAt) + if m.subcontrol_number != nil { + fields = append(fields, subcontrolhistory.FieldSubcontrolNumber) + } + if m.family != nil { + fields = append(fields, subcontrolhistory.FieldFamily) + } + if m.class != nil { + fields = append(fields, subcontrolhistory.FieldClass) + } + if m.source != nil { + fields = append(fields, subcontrolhistory.FieldSource) + } + if m.mapped_frameworks != nil { + fields = append(fields, subcontrolhistory.FieldMappedFrameworks) + } + if m.implementation_evidence != nil { + fields = append(fields, subcontrolhistory.FieldImplementationEvidence) + } + if m.implementation_status != nil { + fields = append(fields, subcontrolhistory.FieldImplementationStatus) + } + if m.implementation_date != nil { + fields = append(fields, subcontrolhistory.FieldImplementationDate) + } + if m.implementation_verification != nil { + fields = append(fields, subcontrolhistory.FieldImplementationVerification) + } + if m.implementation_verification_date != nil { + fields = append(fields, subcontrolhistory.FieldImplementationVerificationDate) + } + if m.details != nil { + fields = append(fields, subcontrolhistory.FieldDetails) } return fields } @@ -68964,38 +101796,62 @@ func (m *PersonalAccessTokenMutation) Fields() []string { // 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 *PersonalAccessTokenMutation) Field(name string) (ent.Value, bool) { +func (m *SubcontrolHistoryMutation) Field(name string) (ent.Value, bool) { switch name { - case personalaccesstoken.FieldCreatedAt: + case subcontrolhistory.FieldHistoryTime: + return m.HistoryTime() + case subcontrolhistory.FieldRef: + return m.Ref() + case subcontrolhistory.FieldOperation: + return m.Operation() + case subcontrolhistory.FieldCreatedAt: return m.CreatedAt() - case personalaccesstoken.FieldUpdatedAt: + case subcontrolhistory.FieldUpdatedAt: return m.UpdatedAt() - case personalaccesstoken.FieldCreatedBy: + case subcontrolhistory.FieldCreatedBy: return m.CreatedBy() - case personalaccesstoken.FieldUpdatedBy: + case subcontrolhistory.FieldUpdatedBy: return m.UpdatedBy() - case personalaccesstoken.FieldDeletedAt: + case subcontrolhistory.FieldDeletedAt: return m.DeletedAt() - case personalaccesstoken.FieldDeletedBy: + case subcontrolhistory.FieldDeletedBy: return m.DeletedBy() - case personalaccesstoken.FieldMappingID: + case subcontrolhistory.FieldMappingID: return m.MappingID() - case personalaccesstoken.FieldTags: + case subcontrolhistory.FieldTags: return m.Tags() - case personalaccesstoken.FieldOwnerID: - return m.OwnerID() - case personalaccesstoken.FieldName: + case subcontrolhistory.FieldName: return m.Name() - case personalaccesstoken.FieldToken: - return m.Token() - case personalaccesstoken.FieldExpiresAt: - return m.ExpiresAt() - case personalaccesstoken.FieldDescription: + case subcontrolhistory.FieldDescription: return m.Description() - case personalaccesstoken.FieldScopes: - return m.Scopes() - case personalaccesstoken.FieldLastUsedAt: - return m.LastUsedAt() + case subcontrolhistory.FieldStatus: + return m.Status() + case subcontrolhistory.FieldSubcontrolType: + return m.SubcontrolType() + case subcontrolhistory.FieldVersion: + return m.Version() + case subcontrolhistory.FieldSubcontrolNumber: + return m.SubcontrolNumber() + case subcontrolhistory.FieldFamily: + return m.Family() + case subcontrolhistory.FieldClass: + return m.Class() + case subcontrolhistory.FieldSource: + return m.Source() + case subcontrolhistory.FieldMappedFrameworks: + return m.MappedFrameworks() + case subcontrolhistory.FieldImplementationEvidence: + return m.ImplementationEvidence() + case subcontrolhistory.FieldImplementationStatus: + return m.ImplementationStatus() + case subcontrolhistory.FieldImplementationDate: + return m.ImplementationDate() + case subcontrolhistory.FieldImplementationVerification: + return m.ImplementationVerification() + case subcontrolhistory.FieldImplementationVerificationDate: + return m.ImplementationVerificationDate() + case subcontrolhistory.FieldDetails: + return m.Details() } return nil, false } @@ -69003,445 +101859,581 @@ func (m *PersonalAccessTokenMutation) Field(name string) (ent.Value, bool) { // 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 *PersonalAccessTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error) { +func (m *SubcontrolHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { switch name { - case personalaccesstoken.FieldCreatedAt: + case subcontrolhistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case subcontrolhistory.FieldRef: + return m.OldRef(ctx) + case subcontrolhistory.FieldOperation: + return m.OldOperation(ctx) + case subcontrolhistory.FieldCreatedAt: return m.OldCreatedAt(ctx) - case personalaccesstoken.FieldUpdatedAt: + case subcontrolhistory.FieldUpdatedAt: return m.OldUpdatedAt(ctx) - case personalaccesstoken.FieldCreatedBy: + case subcontrolhistory.FieldCreatedBy: return m.OldCreatedBy(ctx) - case personalaccesstoken.FieldUpdatedBy: + case subcontrolhistory.FieldUpdatedBy: return m.OldUpdatedBy(ctx) - case personalaccesstoken.FieldDeletedAt: + case subcontrolhistory.FieldDeletedAt: return m.OldDeletedAt(ctx) - case personalaccesstoken.FieldDeletedBy: + case subcontrolhistory.FieldDeletedBy: return m.OldDeletedBy(ctx) - case personalaccesstoken.FieldMappingID: + case subcontrolhistory.FieldMappingID: return m.OldMappingID(ctx) - case personalaccesstoken.FieldTags: + case subcontrolhistory.FieldTags: return m.OldTags(ctx) - case personalaccesstoken.FieldOwnerID: - return m.OldOwnerID(ctx) - case personalaccesstoken.FieldName: + case subcontrolhistory.FieldName: return m.OldName(ctx) - case personalaccesstoken.FieldToken: - return m.OldToken(ctx) - case personalaccesstoken.FieldExpiresAt: - return m.OldExpiresAt(ctx) - case personalaccesstoken.FieldDescription: + case subcontrolhistory.FieldDescription: return m.OldDescription(ctx) - case personalaccesstoken.FieldScopes: - return m.OldScopes(ctx) - case personalaccesstoken.FieldLastUsedAt: - return m.OldLastUsedAt(ctx) - } - return nil, fmt.Errorf("unknown PersonalAccessToken field %s", name) + case subcontrolhistory.FieldStatus: + return m.OldStatus(ctx) + case subcontrolhistory.FieldSubcontrolType: + return m.OldSubcontrolType(ctx) + case subcontrolhistory.FieldVersion: + return m.OldVersion(ctx) + case subcontrolhistory.FieldSubcontrolNumber: + return m.OldSubcontrolNumber(ctx) + case subcontrolhistory.FieldFamily: + return m.OldFamily(ctx) + case subcontrolhistory.FieldClass: + return m.OldClass(ctx) + case subcontrolhistory.FieldSource: + return m.OldSource(ctx) + case subcontrolhistory.FieldMappedFrameworks: + return m.OldMappedFrameworks(ctx) + case subcontrolhistory.FieldImplementationEvidence: + return m.OldImplementationEvidence(ctx) + case subcontrolhistory.FieldImplementationStatus: + return m.OldImplementationStatus(ctx) + case subcontrolhistory.FieldImplementationDate: + return m.OldImplementationDate(ctx) + case subcontrolhistory.FieldImplementationVerification: + return m.OldImplementationVerification(ctx) + case subcontrolhistory.FieldImplementationVerificationDate: + return m.OldImplementationVerificationDate(ctx) + case subcontrolhistory.FieldDetails: + return m.OldDetails(ctx) + } + return nil, fmt.Errorf("unknown SubcontrolHistory 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 *PersonalAccessTokenMutation) SetField(name string, value ent.Value) error { +func (m *SubcontrolHistoryMutation) SetField(name string, value ent.Value) error { switch name { - case personalaccesstoken.FieldCreatedAt: + case subcontrolhistory.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 subcontrolhistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case subcontrolhistory.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 subcontrolhistory.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 personalaccesstoken.FieldUpdatedAt: + case subcontrolhistory.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 personalaccesstoken.FieldCreatedBy: + case subcontrolhistory.FieldCreatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetCreatedBy(v) return nil - case personalaccesstoken.FieldUpdatedBy: + case subcontrolhistory.FieldUpdatedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetUpdatedBy(v) return nil - case personalaccesstoken.FieldDeletedAt: + case subcontrolhistory.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 personalaccesstoken.FieldDeletedBy: + case subcontrolhistory.FieldDeletedBy: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetDeletedBy(v) return nil - case personalaccesstoken.FieldMappingID: + case subcontrolhistory.FieldMappingID: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetMappingID(v) return nil - case personalaccesstoken.FieldTags: + case subcontrolhistory.FieldTags: v, ok := value.([]string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } m.SetTags(v) return nil - case personalaccesstoken.FieldOwnerID: + case subcontrolhistory.FieldName: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetOwnerID(v) + m.SetName(v) return nil - case personalaccesstoken.FieldName: + case subcontrolhistory.FieldDescription: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetName(v) + m.SetDescription(v) return nil - case personalaccesstoken.FieldToken: + case subcontrolhistory.FieldStatus: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetToken(v) + m.SetStatus(v) return nil - case personalaccesstoken.FieldExpiresAt: - v, ok := value.(time.Time) + case subcontrolhistory.FieldSubcontrolType: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetExpiresAt(v) + m.SetSubcontrolType(v) return nil - case personalaccesstoken.FieldDescription: + case subcontrolhistory.FieldVersion: v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetDescription(v) + m.SetVersion(v) return nil - case personalaccesstoken.FieldScopes: - v, ok := value.([]string) + case subcontrolhistory.FieldSubcontrolNumber: + v, ok := value.(string) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetScopes(v) + m.SetSubcontrolNumber(v) return nil - case personalaccesstoken.FieldLastUsedAt: + case subcontrolhistory.FieldFamily: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetFamily(v) + return nil + case subcontrolhistory.FieldClass: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetClass(v) + return nil + case subcontrolhistory.FieldSource: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSource(v) + return nil + case subcontrolhistory.FieldMappedFrameworks: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMappedFrameworks(v) + return nil + case subcontrolhistory.FieldImplementationEvidence: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetImplementationEvidence(v) + return nil + case subcontrolhistory.FieldImplementationStatus: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetImplementationStatus(v) + return nil + case subcontrolhistory.FieldImplementationDate: v, ok := value.(time.Time) if !ok { return fmt.Errorf("unexpected type %T for field %s", value, name) } - m.SetLastUsedAt(v) + m.SetImplementationDate(v) + return nil + case subcontrolhistory.FieldImplementationVerification: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetImplementationVerification(v) + return nil + case subcontrolhistory.FieldImplementationVerificationDate: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetImplementationVerificationDate(v) + return nil + case subcontrolhistory.FieldDetails: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDetails(v) return nil } - return fmt.Errorf("unknown PersonalAccessToken field %s", name) + return fmt.Errorf("unknown SubcontrolHistory field %s", name) } // AddedFields returns all numeric fields that were incremented/decremented during // this mutation. -func (m *PersonalAccessTokenMutation) AddedFields() []string { +func (m *SubcontrolHistoryMutation) 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 *PersonalAccessTokenMutation) AddedField(name string) (ent.Value, bool) { +func (m *SubcontrolHistoryMutation) 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 *PersonalAccessTokenMutation) AddField(name string, value ent.Value) error { +func (m *SubcontrolHistoryMutation) AddField(name string, value ent.Value) error { switch name { } - return fmt.Errorf("unknown PersonalAccessToken numeric field %s", name) + return fmt.Errorf("unknown SubcontrolHistory numeric field %s", name) } // ClearedFields returns all nullable fields that were cleared during this // mutation. -func (m *PersonalAccessTokenMutation) ClearedFields() []string { +func (m *SubcontrolHistoryMutation) ClearedFields() []string { var fields []string - if m.FieldCleared(personalaccesstoken.FieldCreatedAt) { - fields = append(fields, personalaccesstoken.FieldCreatedAt) + if m.FieldCleared(subcontrolhistory.FieldRef) { + fields = append(fields, subcontrolhistory.FieldRef) } - if m.FieldCleared(personalaccesstoken.FieldUpdatedAt) { - fields = append(fields, personalaccesstoken.FieldUpdatedAt) + if m.FieldCleared(subcontrolhistory.FieldCreatedAt) { + fields = append(fields, subcontrolhistory.FieldCreatedAt) } - if m.FieldCleared(personalaccesstoken.FieldCreatedBy) { - fields = append(fields, personalaccesstoken.FieldCreatedBy) + if m.FieldCleared(subcontrolhistory.FieldUpdatedAt) { + fields = append(fields, subcontrolhistory.FieldUpdatedAt) } - if m.FieldCleared(personalaccesstoken.FieldUpdatedBy) { - fields = append(fields, personalaccesstoken.FieldUpdatedBy) + if m.FieldCleared(subcontrolhistory.FieldCreatedBy) { + fields = append(fields, subcontrolhistory.FieldCreatedBy) } - if m.FieldCleared(personalaccesstoken.FieldDeletedAt) { - fields = append(fields, personalaccesstoken.FieldDeletedAt) + if m.FieldCleared(subcontrolhistory.FieldUpdatedBy) { + fields = append(fields, subcontrolhistory.FieldUpdatedBy) } - if m.FieldCleared(personalaccesstoken.FieldDeletedBy) { - fields = append(fields, personalaccesstoken.FieldDeletedBy) + if m.FieldCleared(subcontrolhistory.FieldDeletedAt) { + fields = append(fields, subcontrolhistory.FieldDeletedAt) } - if m.FieldCleared(personalaccesstoken.FieldTags) { - fields = append(fields, personalaccesstoken.FieldTags) + if m.FieldCleared(subcontrolhistory.FieldDeletedBy) { + fields = append(fields, subcontrolhistory.FieldDeletedBy) } - if m.FieldCleared(personalaccesstoken.FieldExpiresAt) { - fields = append(fields, personalaccesstoken.FieldExpiresAt) + if m.FieldCleared(subcontrolhistory.FieldTags) { + fields = append(fields, subcontrolhistory.FieldTags) } - if m.FieldCleared(personalaccesstoken.FieldDescription) { - fields = append(fields, personalaccesstoken.FieldDescription) + if m.FieldCleared(subcontrolhistory.FieldDescription) { + fields = append(fields, subcontrolhistory.FieldDescription) } - if m.FieldCleared(personalaccesstoken.FieldScopes) { - fields = append(fields, personalaccesstoken.FieldScopes) + if m.FieldCleared(subcontrolhistory.FieldStatus) { + fields = append(fields, subcontrolhistory.FieldStatus) } - if m.FieldCleared(personalaccesstoken.FieldLastUsedAt) { - fields = append(fields, personalaccesstoken.FieldLastUsedAt) + if m.FieldCleared(subcontrolhistory.FieldSubcontrolType) { + fields = append(fields, subcontrolhistory.FieldSubcontrolType) + } + if m.FieldCleared(subcontrolhistory.FieldVersion) { + fields = append(fields, subcontrolhistory.FieldVersion) + } + if m.FieldCleared(subcontrolhistory.FieldSubcontrolNumber) { + fields = append(fields, subcontrolhistory.FieldSubcontrolNumber) + } + if m.FieldCleared(subcontrolhistory.FieldFamily) { + fields = append(fields, subcontrolhistory.FieldFamily) + } + if m.FieldCleared(subcontrolhistory.FieldClass) { + fields = append(fields, subcontrolhistory.FieldClass) + } + if m.FieldCleared(subcontrolhistory.FieldSource) { + fields = append(fields, subcontrolhistory.FieldSource) + } + if m.FieldCleared(subcontrolhistory.FieldMappedFrameworks) { + fields = append(fields, subcontrolhistory.FieldMappedFrameworks) + } + if m.FieldCleared(subcontrolhistory.FieldImplementationEvidence) { + fields = append(fields, subcontrolhistory.FieldImplementationEvidence) + } + if m.FieldCleared(subcontrolhistory.FieldImplementationStatus) { + fields = append(fields, subcontrolhistory.FieldImplementationStatus) + } + if m.FieldCleared(subcontrolhistory.FieldImplementationDate) { + fields = append(fields, subcontrolhistory.FieldImplementationDate) + } + if m.FieldCleared(subcontrolhistory.FieldImplementationVerification) { + fields = append(fields, subcontrolhistory.FieldImplementationVerification) + } + if m.FieldCleared(subcontrolhistory.FieldImplementationVerificationDate) { + fields = append(fields, subcontrolhistory.FieldImplementationVerificationDate) + } + if m.FieldCleared(subcontrolhistory.FieldDetails) { + fields = append(fields, subcontrolhistory.FieldDetails) } return fields } // FieldCleared returns a boolean indicating if a field with the given name was // cleared in this mutation. -func (m *PersonalAccessTokenMutation) FieldCleared(name string) bool { +func (m *SubcontrolHistoryMutation) 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 *PersonalAccessTokenMutation) ClearField(name string) error { +func (m *SubcontrolHistoryMutation) ClearField(name string) error { switch name { - case personalaccesstoken.FieldCreatedAt: + case subcontrolhistory.FieldRef: + m.ClearRef() + return nil + case subcontrolhistory.FieldCreatedAt: m.ClearCreatedAt() return nil - case personalaccesstoken.FieldUpdatedAt: + case subcontrolhistory.FieldUpdatedAt: m.ClearUpdatedAt() return nil - case personalaccesstoken.FieldCreatedBy: + case subcontrolhistory.FieldCreatedBy: m.ClearCreatedBy() return nil - case personalaccesstoken.FieldUpdatedBy: + case subcontrolhistory.FieldUpdatedBy: m.ClearUpdatedBy() return nil - case personalaccesstoken.FieldDeletedAt: + case subcontrolhistory.FieldDeletedAt: m.ClearDeletedAt() return nil - case personalaccesstoken.FieldDeletedBy: + case subcontrolhistory.FieldDeletedBy: m.ClearDeletedBy() return nil - case personalaccesstoken.FieldTags: + case subcontrolhistory.FieldTags: m.ClearTags() return nil - case personalaccesstoken.FieldExpiresAt: - m.ClearExpiresAt() - return nil - case personalaccesstoken.FieldDescription: + case subcontrolhistory.FieldDescription: m.ClearDescription() return nil - case personalaccesstoken.FieldScopes: - m.ClearScopes() + case subcontrolhistory.FieldStatus: + m.ClearStatus() return nil - case personalaccesstoken.FieldLastUsedAt: - m.ClearLastUsedAt() + case subcontrolhistory.FieldSubcontrolType: + m.ClearSubcontrolType() + return nil + case subcontrolhistory.FieldVersion: + m.ClearVersion() + return nil + case subcontrolhistory.FieldSubcontrolNumber: + m.ClearSubcontrolNumber() + return nil + case subcontrolhistory.FieldFamily: + m.ClearFamily() + return nil + case subcontrolhistory.FieldClass: + m.ClearClass() + return nil + case subcontrolhistory.FieldSource: + m.ClearSource() + return nil + case subcontrolhistory.FieldMappedFrameworks: + m.ClearMappedFrameworks() + return nil + case subcontrolhistory.FieldImplementationEvidence: + m.ClearImplementationEvidence() + return nil + case subcontrolhistory.FieldImplementationStatus: + m.ClearImplementationStatus() + return nil + case subcontrolhistory.FieldImplementationDate: + m.ClearImplementationDate() + return nil + case subcontrolhistory.FieldImplementationVerification: + m.ClearImplementationVerification() + return nil + case subcontrolhistory.FieldImplementationVerificationDate: + m.ClearImplementationVerificationDate() + return nil + case subcontrolhistory.FieldDetails: + m.ClearDetails() return nil } - return fmt.Errorf("unknown PersonalAccessToken nullable field %s", name) + return fmt.Errorf("unknown SubcontrolHistory 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 *PersonalAccessTokenMutation) ResetField(name string) error { +func (m *SubcontrolHistoryMutation) ResetField(name string) error { switch name { - case personalaccesstoken.FieldCreatedAt: + case subcontrolhistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case subcontrolhistory.FieldRef: + m.ResetRef() + return nil + case subcontrolhistory.FieldOperation: + m.ResetOperation() + return nil + case subcontrolhistory.FieldCreatedAt: m.ResetCreatedAt() return nil - case personalaccesstoken.FieldUpdatedAt: + case subcontrolhistory.FieldUpdatedAt: m.ResetUpdatedAt() return nil - case personalaccesstoken.FieldCreatedBy: + case subcontrolhistory.FieldCreatedBy: m.ResetCreatedBy() return nil - case personalaccesstoken.FieldUpdatedBy: + case subcontrolhistory.FieldUpdatedBy: m.ResetUpdatedBy() return nil - case personalaccesstoken.FieldDeletedAt: + case subcontrolhistory.FieldDeletedAt: m.ResetDeletedAt() return nil - case personalaccesstoken.FieldDeletedBy: + case subcontrolhistory.FieldDeletedBy: m.ResetDeletedBy() return nil - case personalaccesstoken.FieldMappingID: + case subcontrolhistory.FieldMappingID: m.ResetMappingID() return nil - case personalaccesstoken.FieldTags: + case subcontrolhistory.FieldTags: m.ResetTags() return nil - case personalaccesstoken.FieldOwnerID: - m.ResetOwnerID() - return nil - case personalaccesstoken.FieldName: + case subcontrolhistory.FieldName: m.ResetName() return nil - case personalaccesstoken.FieldToken: - m.ResetToken() + case subcontrolhistory.FieldDescription: + m.ResetDescription() return nil - case personalaccesstoken.FieldExpiresAt: - m.ResetExpiresAt() + case subcontrolhistory.FieldStatus: + m.ResetStatus() return nil - case personalaccesstoken.FieldDescription: - m.ResetDescription() + case subcontrolhistory.FieldSubcontrolType: + m.ResetSubcontrolType() return nil - case personalaccesstoken.FieldScopes: - m.ResetScopes() + case subcontrolhistory.FieldVersion: + m.ResetVersion() return nil - case personalaccesstoken.FieldLastUsedAt: - m.ResetLastUsedAt() + case subcontrolhistory.FieldSubcontrolNumber: + m.ResetSubcontrolNumber() + return nil + case subcontrolhistory.FieldFamily: + m.ResetFamily() + return nil + case subcontrolhistory.FieldClass: + m.ResetClass() + return nil + case subcontrolhistory.FieldSource: + m.ResetSource() + return nil + case subcontrolhistory.FieldMappedFrameworks: + m.ResetMappedFrameworks() + return nil + case subcontrolhistory.FieldImplementationEvidence: + m.ResetImplementationEvidence() + return nil + case subcontrolhistory.FieldImplementationStatus: + m.ResetImplementationStatus() + return nil + case subcontrolhistory.FieldImplementationDate: + m.ResetImplementationDate() + return nil + case subcontrolhistory.FieldImplementationVerification: + m.ResetImplementationVerification() + return nil + case subcontrolhistory.FieldImplementationVerificationDate: + m.ResetImplementationVerificationDate() + return nil + case subcontrolhistory.FieldDetails: + m.ResetDetails() return nil } - return fmt.Errorf("unknown PersonalAccessToken field %s", name) + return fmt.Errorf("unknown SubcontrolHistory field %s", name) } // AddedEdges returns all edge names that were set/added in this mutation. -func (m *PersonalAccessTokenMutation) AddedEdges() []string { - edges := make([]string, 0, 3) - if m.owner != nil { - edges = append(edges, personalaccesstoken.EdgeOwner) - } - if m.organizations != nil { - edges = append(edges, personalaccesstoken.EdgeOrganizations) - } - if m.events != nil { - edges = append(edges, personalaccesstoken.EdgeEvents) - } +func (m *SubcontrolHistoryMutation) 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 *PersonalAccessTokenMutation) AddedIDs(name string) []ent.Value { - switch name { - case personalaccesstoken.EdgeOwner: - if id := m.owner; id != nil { - return []ent.Value{*id} - } - case personalaccesstoken.EdgeOrganizations: - ids := make([]ent.Value, 0, len(m.organizations)) - for id := range m.organizations { - ids = append(ids, id) - } - return ids - case personalaccesstoken.EdgeEvents: - ids := make([]ent.Value, 0, len(m.events)) - for id := range m.events { - ids = append(ids, id) - } - return ids - } +func (m *SubcontrolHistoryMutation) AddedIDs(name string) []ent.Value { return nil } // RemovedEdges returns all edge names that were removed in this mutation. -func (m *PersonalAccessTokenMutation) RemovedEdges() []string { - edges := make([]string, 0, 3) - if m.removedorganizations != nil { - edges = append(edges, personalaccesstoken.EdgeOrganizations) - } - if m.removedevents != nil { - edges = append(edges, personalaccesstoken.EdgeEvents) - } +func (m *SubcontrolHistoryMutation) 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 *PersonalAccessTokenMutation) RemovedIDs(name string) []ent.Value { - switch name { - case personalaccesstoken.EdgeOrganizations: - ids := make([]ent.Value, 0, len(m.removedorganizations)) - for id := range m.removedorganizations { - ids = append(ids, id) - } - return ids - case personalaccesstoken.EdgeEvents: - ids := make([]ent.Value, 0, len(m.removedevents)) - for id := range m.removedevents { - ids = append(ids, id) - } - return ids - } +func (m *SubcontrolHistoryMutation) RemovedIDs(name string) []ent.Value { return nil } // ClearedEdges returns all edge names that were cleared in this mutation. -func (m *PersonalAccessTokenMutation) ClearedEdges() []string { - edges := make([]string, 0, 3) - if m.clearedowner { - edges = append(edges, personalaccesstoken.EdgeOwner) - } - if m.clearedorganizations { - edges = append(edges, personalaccesstoken.EdgeOrganizations) - } - if m.clearedevents { - edges = append(edges, personalaccesstoken.EdgeEvents) - } +func (m *SubcontrolHistoryMutation) 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 *PersonalAccessTokenMutation) EdgeCleared(name string) bool { - switch name { - case personalaccesstoken.EdgeOwner: - return m.clearedowner - case personalaccesstoken.EdgeOrganizations: - return m.clearedorganizations - case personalaccesstoken.EdgeEvents: - return m.clearedevents - } +func (m *SubcontrolHistoryMutation) 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 *PersonalAccessTokenMutation) ClearEdge(name string) error { - switch name { - case personalaccesstoken.EdgeOwner: - m.ClearOwner() - return nil - } - return fmt.Errorf("unknown PersonalAccessToken unique edge %s", name) +func (m *SubcontrolHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown SubcontrolHistory 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 *PersonalAccessTokenMutation) ResetEdge(name string) error { - switch name { - case personalaccesstoken.EdgeOwner: - m.ResetOwner() - return nil - case personalaccesstoken.EdgeOrganizations: - m.ResetOrganizations() - return nil - case personalaccesstoken.EdgeEvents: - m.ResetEvents() - return nil - } - return fmt.Errorf("unknown PersonalAccessToken edge %s", name) +func (m *SubcontrolHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown SubcontrolHistory edge %s", name) } // SubscriberMutation represents an operation that mutates the Subscriber nodes in the graph. @@ -75346,6 +108338,12 @@ type UserMutation struct { events map[string]struct{} removedevents map[string]struct{} clearedevents bool + actionplans map[string]struct{} + removedactionplans map[string]struct{} + clearedactionplans bool + subcontrols map[string]struct{} + removedsubcontrols map[string]struct{} + clearedsubcontrols bool group_memberships map[string]struct{} removedgroup_memberships map[string]struct{} clearedgroup_memberships bool @@ -77019,6 +110017,114 @@ func (m *UserMutation) ResetEvents() { m.removedevents = nil } +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by ids. +func (m *UserMutation) AddActionplanIDs(ids ...string) { + if m.actionplans == nil { + m.actionplans = make(map[string]struct{}) + } + for i := range ids { + m.actionplans[ids[i]] = struct{}{} + } +} + +// ClearActionplans clears the "actionplans" edge to the ActionPlan entity. +func (m *UserMutation) ClearActionplans() { + m.clearedactionplans = true +} + +// ActionplansCleared reports if the "actionplans" edge to the ActionPlan entity was cleared. +func (m *UserMutation) ActionplansCleared() bool { + return m.clearedactionplans +} + +// RemoveActionplanIDs removes the "actionplans" edge to the ActionPlan entity by IDs. +func (m *UserMutation) RemoveActionplanIDs(ids ...string) { + if m.removedactionplans == nil { + m.removedactionplans = make(map[string]struct{}) + } + for i := range ids { + delete(m.actionplans, ids[i]) + m.removedactionplans[ids[i]] = struct{}{} + } +} + +// RemovedActionplans returns the removed IDs of the "actionplans" edge to the ActionPlan entity. +func (m *UserMutation) RemovedActionplansIDs() (ids []string) { + for id := range m.removedactionplans { + ids = append(ids, id) + } + return +} + +// ActionplansIDs returns the "actionplans" edge IDs in the mutation. +func (m *UserMutation) ActionplansIDs() (ids []string) { + for id := range m.actionplans { + ids = append(ids, id) + } + return +} + +// ResetActionplans resets all changes to the "actionplans" edge. +func (m *UserMutation) ResetActionplans() { + m.actionplans = nil + m.clearedactionplans = false + m.removedactionplans = nil +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by ids. +func (m *UserMutation) AddSubcontrolIDs(ids ...string) { + if m.subcontrols == nil { + m.subcontrols = make(map[string]struct{}) + } + for i := range ids { + m.subcontrols[ids[i]] = struct{}{} + } +} + +// ClearSubcontrols clears the "subcontrols" edge to the Subcontrol entity. +func (m *UserMutation) ClearSubcontrols() { + m.clearedsubcontrols = true +} + +// SubcontrolsCleared reports if the "subcontrols" edge to the Subcontrol entity was cleared. +func (m *UserMutation) SubcontrolsCleared() bool { + return m.clearedsubcontrols +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to the Subcontrol entity by IDs. +func (m *UserMutation) RemoveSubcontrolIDs(ids ...string) { + if m.removedsubcontrols == nil { + m.removedsubcontrols = make(map[string]struct{}) + } + for i := range ids { + delete(m.subcontrols, ids[i]) + m.removedsubcontrols[ids[i]] = struct{}{} + } +} + +// RemovedSubcontrols returns the removed IDs of the "subcontrols" edge to the Subcontrol entity. +func (m *UserMutation) RemovedSubcontrolsIDs() (ids []string) { + for id := range m.removedsubcontrols { + ids = append(ids, id) + } + return +} + +// SubcontrolsIDs returns the "subcontrols" edge IDs in the mutation. +func (m *UserMutation) SubcontrolsIDs() (ids []string) { + for id := range m.subcontrols { + ids = append(ids, id) + } + return +} + +// ResetSubcontrols resets all changes to the "subcontrols" edge. +func (m *UserMutation) ResetSubcontrols() { + m.subcontrols = nil + m.clearedsubcontrols = false + m.removedsubcontrols = nil +} + // AddGroupMembershipIDs adds the "group_memberships" edge to the GroupMembership entity by ids. func (m *UserMutation) AddGroupMembershipIDs(ids ...string) { if m.group_memberships == nil { @@ -77705,7 +110811,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, 13) + edges := make([]string, 0, 15) if m.personal_access_tokens != nil { edges = append(edges, user.EdgePersonalAccessTokens) } @@ -77739,6 +110845,12 @@ func (m *UserMutation) AddedEdges() []string { if m.events != nil { edges = append(edges, user.EdgeEvents) } + if m.actionplans != nil { + edges = append(edges, user.EdgeActionplans) + } + if m.subcontrols != nil { + edges = append(edges, user.EdgeSubcontrols) + } if m.group_memberships != nil { edges = append(edges, user.EdgeGroupMemberships) } @@ -77814,6 +110926,18 @@ func (m *UserMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case user.EdgeActionplans: + ids := make([]ent.Value, 0, len(m.actionplans)) + for id := range m.actionplans { + ids = append(ids, id) + } + return ids + case user.EdgeSubcontrols: + ids := make([]ent.Value, 0, len(m.subcontrols)) + for id := range m.subcontrols { + ids = append(ids, id) + } + return ids case user.EdgeGroupMemberships: ids := make([]ent.Value, 0, len(m.group_memberships)) for id := range m.group_memberships { @@ -77832,7 +110956,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, 13) + edges := make([]string, 0, 15) if m.removedpersonal_access_tokens != nil { edges = append(edges, user.EdgePersonalAccessTokens) } @@ -77860,6 +110984,12 @@ func (m *UserMutation) RemovedEdges() []string { if m.removedevents != nil { edges = append(edges, user.EdgeEvents) } + if m.removedactionplans != nil { + edges = append(edges, user.EdgeActionplans) + } + if m.removedsubcontrols != nil { + edges = append(edges, user.EdgeSubcontrols) + } if m.removedgroup_memberships != nil { edges = append(edges, user.EdgeGroupMemberships) } @@ -77927,6 +111057,18 @@ func (m *UserMutation) RemovedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case user.EdgeActionplans: + ids := make([]ent.Value, 0, len(m.removedactionplans)) + for id := range m.removedactionplans { + ids = append(ids, id) + } + return ids + case user.EdgeSubcontrols: + ids := make([]ent.Value, 0, len(m.removedsubcontrols)) + for id := range m.removedsubcontrols { + ids = append(ids, id) + } + return ids case user.EdgeGroupMemberships: ids := make([]ent.Value, 0, len(m.removedgroup_memberships)) for id := range m.removedgroup_memberships { @@ -77945,7 +111087,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, 13) + edges := make([]string, 0, 15) if m.clearedpersonal_access_tokens { edges = append(edges, user.EdgePersonalAccessTokens) } @@ -77979,6 +111121,12 @@ func (m *UserMutation) ClearedEdges() []string { if m.clearedevents { edges = append(edges, user.EdgeEvents) } + if m.clearedactionplans { + edges = append(edges, user.EdgeActionplans) + } + if m.clearedsubcontrols { + edges = append(edges, user.EdgeSubcontrols) + } if m.clearedgroup_memberships { edges = append(edges, user.EdgeGroupMemberships) } @@ -78014,6 +111162,10 @@ func (m *UserMutation) EdgeCleared(name string) bool { return m.clearedfile case user.EdgeEvents: return m.clearedevents + case user.EdgeActionplans: + return m.clearedactionplans + case user.EdgeSubcontrols: + return m.clearedsubcontrols case user.EdgeGroupMemberships: return m.clearedgroup_memberships case user.EdgeOrgMemberships: @@ -78073,6 +111225,12 @@ func (m *UserMutation) ResetEdge(name string) error { case user.EdgeEvents: m.ResetEvents() return nil + case user.EdgeActionplans: + m.ResetActionplans() + return nil + case user.EdgeSubcontrols: + m.ResetSubcontrols() + return nil case user.EdgeGroupMemberships: m.ResetGroupMemberships() return nil diff --git a/internal/ent/generated/narrative.go b/internal/ent/generated/narrative.go new file mode 100644 index 00000000..33741fb4 --- /dev/null +++ b/internal/ent/generated/narrative.go @@ -0,0 +1,409 @@ +// 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/internal/ent/generated/narrative" +) + +// Narrative is the model entity for the Narrative schema. +type Narrative 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the narrative + Name string `json:"name,omitempty"` + // the description of the narrative + Description string `json:"description,omitempty"` + // which controls are satisfied by the narrative + Satisfies string `json:"satisfies,omitempty"` + // json data for the narrative document + Details map[string]interface{} `json:"details,omitempty"` + // Edges holds the relations/edges for other nodes in the graph. + // The values are being populated by the NarrativeQuery when eager-loading is set. + Edges NarrativeEdges `json:"edges"` + selectValues sql.SelectValues +} + +// NarrativeEdges holds the relations/edges for other nodes in the graph. +type NarrativeEdges struct { + // Policy holds the value of the policy edge. + Policy []*InternalPolicy `json:"policy,omitempty"` + // Control holds the value of the control edge. + Control []*Control `json:"control,omitempty"` + // Procedure holds the value of the procedure edge. + Procedure []*Procedure `json:"procedure,omitempty"` + // Controlobjective holds the value of the controlobjective edge. + Controlobjective []*ControlObjective `json:"controlobjective,omitempty"` + // loadedTypes holds the information for reporting if a + // type was loaded (or requested) in eager-loading or not. + loadedTypes [4]bool + // totalCount holds the count of the edges above. + totalCount [4]map[string]int + + namedPolicy map[string][]*InternalPolicy + namedControl map[string][]*Control + namedProcedure map[string][]*Procedure + namedControlobjective map[string][]*ControlObjective +} + +// PolicyOrErr returns the Policy value or an error if the edge +// was not loaded in eager-loading. +func (e NarrativeEdges) PolicyOrErr() ([]*InternalPolicy, error) { + if e.loadedTypes[0] { + return e.Policy, nil + } + return nil, &NotLoadedError{edge: "policy"} +} + +// ControlOrErr returns the Control value or an error if the edge +// was not loaded in eager-loading. +func (e NarrativeEdges) ControlOrErr() ([]*Control, error) { + if e.loadedTypes[1] { + return e.Control, nil + } + return nil, &NotLoadedError{edge: "control"} +} + +// ProcedureOrErr returns the Procedure value or an error if the edge +// was not loaded in eager-loading. +func (e NarrativeEdges) ProcedureOrErr() ([]*Procedure, error) { + if e.loadedTypes[2] { + return e.Procedure, nil + } + return nil, &NotLoadedError{edge: "procedure"} +} + +// ControlobjectiveOrErr returns the Controlobjective value or an error if the edge +// was not loaded in eager-loading. +func (e NarrativeEdges) ControlobjectiveOrErr() ([]*ControlObjective, error) { + if e.loadedTypes[3] { + return e.Controlobjective, nil + } + return nil, &NotLoadedError{edge: "controlobjective"} +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*Narrative) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case narrative.FieldTags, narrative.FieldDetails: + values[i] = new([]byte) + case narrative.FieldID, narrative.FieldCreatedBy, narrative.FieldUpdatedBy, narrative.FieldDeletedBy, narrative.FieldMappingID, narrative.FieldName, narrative.FieldDescription, narrative.FieldSatisfies: + values[i] = new(sql.NullString) + case narrative.FieldCreatedAt, narrative.FieldUpdatedAt, narrative.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 Narrative fields. +func (n *Narrative) 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 narrative.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + n.ID = value.String + } + case narrative.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 { + n.CreatedAt = value.Time + } + case narrative.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 { + n.UpdatedAt = value.Time + } + case narrative.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 { + n.CreatedBy = value.String + } + case narrative.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 { + n.UpdatedBy = value.String + } + case narrative.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 { + n.DeletedAt = value.Time + } + case narrative.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 { + n.DeletedBy = value.String + } + case narrative.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + n.MappingID = value.String + } + case narrative.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, &n.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case narrative.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + n.Name = value.String + } + case narrative.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + n.Description = value.String + } + case narrative.FieldSatisfies: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field satisfies", values[i]) + } else if value.Valid { + n.Satisfies = value.String + } + case narrative.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &n.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + n.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the Narrative. +// This includes values selected through modifiers, order, etc. +func (n *Narrative) Value(name string) (ent.Value, error) { + return n.selectValues.Get(name) +} + +// QueryPolicy queries the "policy" edge of the Narrative entity. +func (n *Narrative) QueryPolicy() *InternalPolicyQuery { + return NewNarrativeClient(n.config).QueryPolicy(n) +} + +// QueryControl queries the "control" edge of the Narrative entity. +func (n *Narrative) QueryControl() *ControlQuery { + return NewNarrativeClient(n.config).QueryControl(n) +} + +// QueryProcedure queries the "procedure" edge of the Narrative entity. +func (n *Narrative) QueryProcedure() *ProcedureQuery { + return NewNarrativeClient(n.config).QueryProcedure(n) +} + +// QueryControlobjective queries the "controlobjective" edge of the Narrative entity. +func (n *Narrative) QueryControlobjective() *ControlObjectiveQuery { + return NewNarrativeClient(n.config).QueryControlobjective(n) +} + +// Update returns a builder for updating this Narrative. +// Note that you need to call Narrative.Unwrap() before calling this method if this Narrative +// was returned from a transaction, and the transaction was committed or rolled back. +func (n *Narrative) Update() *NarrativeUpdateOne { + return NewNarrativeClient(n.config).UpdateOne(n) +} + +// Unwrap unwraps the Narrative 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 (n *Narrative) Unwrap() *Narrative { + _tx, ok := n.config.driver.(*txDriver) + if !ok { + panic("generated: Narrative is not a transactional entity") + } + n.config.driver = _tx.drv + return n +} + +// String implements the fmt.Stringer. +func (n *Narrative) String() string { + var builder strings.Builder + builder.WriteString("Narrative(") + builder.WriteString(fmt.Sprintf("id=%v, ", n.ID)) + builder.WriteString("created_at=") + builder.WriteString(n.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(n.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(n.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(n.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(n.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(n.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(n.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", n.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(n.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(n.Description) + builder.WriteString(", ") + builder.WriteString("satisfies=") + builder.WriteString(n.Satisfies) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", n.Details)) + builder.WriteByte(')') + return builder.String() +} + +// NamedPolicy returns the Policy named value or an error if the edge was not +// loaded in eager-loading with this name. +func (n *Narrative) NamedPolicy(name string) ([]*InternalPolicy, error) { + if n.Edges.namedPolicy == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := n.Edges.namedPolicy[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (n *Narrative) appendNamedPolicy(name string, edges ...*InternalPolicy) { + if n.Edges.namedPolicy == nil { + n.Edges.namedPolicy = make(map[string][]*InternalPolicy) + } + if len(edges) == 0 { + n.Edges.namedPolicy[name] = []*InternalPolicy{} + } else { + n.Edges.namedPolicy[name] = append(n.Edges.namedPolicy[name], edges...) + } +} + +// NamedControl returns the Control named value or an error if the edge was not +// loaded in eager-loading with this name. +func (n *Narrative) NamedControl(name string) ([]*Control, error) { + if n.Edges.namedControl == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := n.Edges.namedControl[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (n *Narrative) appendNamedControl(name string, edges ...*Control) { + if n.Edges.namedControl == nil { + n.Edges.namedControl = make(map[string][]*Control) + } + if len(edges) == 0 { + n.Edges.namedControl[name] = []*Control{} + } else { + n.Edges.namedControl[name] = append(n.Edges.namedControl[name], edges...) + } +} + +// NamedProcedure returns the Procedure named value or an error if the edge was not +// loaded in eager-loading with this name. +func (n *Narrative) NamedProcedure(name string) ([]*Procedure, error) { + if n.Edges.namedProcedure == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := n.Edges.namedProcedure[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (n *Narrative) appendNamedProcedure(name string, edges ...*Procedure) { + if n.Edges.namedProcedure == nil { + n.Edges.namedProcedure = make(map[string][]*Procedure) + } + if len(edges) == 0 { + n.Edges.namedProcedure[name] = []*Procedure{} + } else { + n.Edges.namedProcedure[name] = append(n.Edges.namedProcedure[name], edges...) + } +} + +// NamedControlobjective returns the Controlobjective named value or an error if the edge was not +// loaded in eager-loading with this name. +func (n *Narrative) NamedControlobjective(name string) ([]*ControlObjective, error) { + if n.Edges.namedControlobjective == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := n.Edges.namedControlobjective[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (n *Narrative) appendNamedControlobjective(name string, edges ...*ControlObjective) { + if n.Edges.namedControlobjective == nil { + n.Edges.namedControlobjective = make(map[string][]*ControlObjective) + } + if len(edges) == 0 { + n.Edges.namedControlobjective[name] = []*ControlObjective{} + } else { + n.Edges.namedControlobjective[name] = append(n.Edges.namedControlobjective[name], edges...) + } +} + +// Narratives is a parsable slice of Narrative. +type Narratives []*Narrative diff --git a/internal/ent/generated/narrative/narrative.go b/internal/ent/generated/narrative/narrative.go new file mode 100644 index 00000000..fffcdeb7 --- /dev/null +++ b/internal/ent/generated/narrative/narrative.go @@ -0,0 +1,278 @@ +// Code generated by ent, DO NOT EDIT. + +package narrative + +import ( + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" +) + +const ( + // Label holds the string label denoting the narrative type in the database. + Label = "narrative" + // 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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldSatisfies holds the string denoting the satisfies field in the database. + FieldSatisfies = "satisfies" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // EdgePolicy holds the string denoting the policy edge name in mutations. + EdgePolicy = "policy" + // EdgeControl holds the string denoting the control edge name in mutations. + EdgeControl = "control" + // EdgeProcedure holds the string denoting the procedure edge name in mutations. + EdgeProcedure = "procedure" + // EdgeControlobjective holds the string denoting the controlobjective edge name in mutations. + EdgeControlobjective = "controlobjective" + // Table holds the table name of the narrative in the database. + Table = "narratives" + // PolicyTable is the table that holds the policy relation/edge. The primary key declared below. + PolicyTable = "internal_policy_narratives" + // PolicyInverseTable is the table name for the InternalPolicy entity. + // It exists in this package in order to avoid circular dependency with the "internalpolicy" package. + PolicyInverseTable = "internal_policies" + // ControlTable is the table that holds the control relation/edge. The primary key declared below. + ControlTable = "control_narratives" + // ControlInverseTable is the table name for the Control entity. + // It exists in this package in order to avoid circular dependency with the "control" package. + ControlInverseTable = "controls" + // ProcedureTable is the table that holds the procedure relation/edge. The primary key declared below. + ProcedureTable = "procedure_narratives" + // ProcedureInverseTable is the table name for the Procedure entity. + // It exists in this package in order to avoid circular dependency with the "procedure" package. + ProcedureInverseTable = "procedures" + // ControlobjectiveTable is the table that holds the controlobjective relation/edge. The primary key declared below. + ControlobjectiveTable = "control_objective_narratives" + // ControlobjectiveInverseTable is the table name for the ControlObjective entity. + // It exists in this package in order to avoid circular dependency with the "controlobjective" package. + ControlobjectiveInverseTable = "control_objectives" +) + +// Columns holds all SQL columns for narrative fields. +var Columns = []string{ + FieldID, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldSatisfies, + FieldDetails, +} + +var ( + // PolicyPrimaryKey and PolicyColumn2 are the table columns denoting the + // primary key for the policy relation (M2M). + PolicyPrimaryKey = []string{"internal_policy_id", "narrative_id"} + // ControlPrimaryKey and ControlColumn2 are the table columns denoting the + // primary key for the control relation (M2M). + ControlPrimaryKey = []string{"control_id", "narrative_id"} + // ProcedurePrimaryKey and ProcedureColumn2 are the table columns denoting the + // primary key for the procedure relation (M2M). + ProcedurePrimaryKey = []string{"procedure_id", "narrative_id"} + // ControlobjectivePrimaryKey and ControlobjectiveColumn2 are the table columns denoting the + // primary key for the controlobjective relation (M2M). + ControlobjectivePrimaryKey = []string{"control_objective_id", "narrative_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/internal/ent/generated/runtime" +var ( + Hooks [2]ent.Hook + Interceptors [1]ent.Interceptor + // 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 + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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 +) + +// OrderOption defines the ordering options for the Narrative 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// BySatisfies orders the results by the satisfies field. +func BySatisfies(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSatisfies, opts...).ToFunc() +} + +// ByPolicyCount orders the results by policy count. +func ByPolicyCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newPolicyStep(), opts...) + } +} + +// ByPolicy orders the results by policy terms. +func ByPolicy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newPolicyStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByControlCount orders the results by control count. +func ByControlCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlStep(), opts...) + } +} + +// ByControl orders the results by control terms. +func ByControl(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByProcedureCount orders the results by procedure count. +func ByProcedureCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newProcedureStep(), opts...) + } +} + +// ByProcedure orders the results by procedure terms. +func ByProcedure(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newProcedureStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByControlobjectiveCount orders the results by controlobjective count. +func ByControlobjectiveCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlobjectiveStep(), opts...) + } +} + +// ByControlobjective orders the results by controlobjective terms. +func ByControlobjective(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlobjectiveStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} +func newPolicyStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(PolicyInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, PolicyTable, PolicyPrimaryKey...), + ) +} +func newControlStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ControlInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ControlTable, ControlPrimaryKey...), + ) +} +func newProcedureStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ProcedureInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ProcedureTable, ProcedurePrimaryKey...), + ) +} +func newControlobjectiveStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ControlobjectiveInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ControlobjectiveTable, ControlobjectivePrimaryKey...), + ) +} diff --git a/internal/ent/generated/narrative/where.go b/internal/ent/generated/narrative/where.go new file mode 100644 index 00000000..f128d856 --- /dev/null +++ b/internal/ent/generated/narrative/where.go @@ -0,0 +1,924 @@ +// Code generated by ent, DO NOT EDIT. + +package narrative + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.Narrative { + return predicate.Narrative(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.Narrative { + return predicate.Narrative(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.Narrative { + return predicate.Narrative(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.Narrative { + return predicate.Narrative(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.Narrative { + return predicate.Narrative(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.Narrative { + return predicate.Narrative(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.Narrative { + return predicate.Narrative(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.Narrative { + return predicate.Narrative(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.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldDescription, v)) +} + +// Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ. +func Satisfies(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldSatisfies, v)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.Narrative { + return predicate.Narrative(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.Narrative { + return predicate.Narrative(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.Narrative { + return predicate.Narrative(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.Narrative { + return predicate.Narrative(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.Narrative { + return predicate.Narrative(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.Narrative { + return predicate.Narrative(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.Narrative { + return predicate.Narrative(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.Narrative { + return predicate.Narrative(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.Narrative { + return predicate.Narrative(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.Narrative { + return predicate.Narrative(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.Narrative { + return predicate.Narrative(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.Narrative { + return predicate.Narrative(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.Narrative { + return predicate.Narrative(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.Narrative { + return predicate.Narrative(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.Narrative { + return predicate.Narrative(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.Narrative { + return predicate.Narrative(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.Narrative { + return predicate.Narrative(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContainsFold(FieldDescription, v)) +} + +// SatisfiesEQ applies the EQ predicate on the "satisfies" field. +func SatisfiesEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEQ(FieldSatisfies, v)) +} + +// SatisfiesNEQ applies the NEQ predicate on the "satisfies" field. +func SatisfiesNEQ(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldNEQ(FieldSatisfies, v)) +} + +// SatisfiesIn applies the In predicate on the "satisfies" field. +func SatisfiesIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldIn(FieldSatisfies, vs...)) +} + +// SatisfiesNotIn applies the NotIn predicate on the "satisfies" field. +func SatisfiesNotIn(vs ...string) predicate.Narrative { + return predicate.Narrative(sql.FieldNotIn(FieldSatisfies, vs...)) +} + +// SatisfiesGT applies the GT predicate on the "satisfies" field. +func SatisfiesGT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGT(FieldSatisfies, v)) +} + +// SatisfiesGTE applies the GTE predicate on the "satisfies" field. +func SatisfiesGTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldGTE(FieldSatisfies, v)) +} + +// SatisfiesLT applies the LT predicate on the "satisfies" field. +func SatisfiesLT(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLT(FieldSatisfies, v)) +} + +// SatisfiesLTE applies the LTE predicate on the "satisfies" field. +func SatisfiesLTE(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldLTE(FieldSatisfies, v)) +} + +// SatisfiesContains applies the Contains predicate on the "satisfies" field. +func SatisfiesContains(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContains(FieldSatisfies, v)) +} + +// SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field. +func SatisfiesHasPrefix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasPrefix(FieldSatisfies, v)) +} + +// SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field. +func SatisfiesHasSuffix(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldHasSuffix(FieldSatisfies, v)) +} + +// SatisfiesIsNil applies the IsNil predicate on the "satisfies" field. +func SatisfiesIsNil() predicate.Narrative { + return predicate.Narrative(sql.FieldIsNull(FieldSatisfies)) +} + +// SatisfiesNotNil applies the NotNil predicate on the "satisfies" field. +func SatisfiesNotNil() predicate.Narrative { + return predicate.Narrative(sql.FieldNotNull(FieldSatisfies)) +} + +// SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field. +func SatisfiesEqualFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldEqualFold(FieldSatisfies, v)) +} + +// SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field. +func SatisfiesContainsFold(v string) predicate.Narrative { + return predicate.Narrative(sql.FieldContainsFold(FieldSatisfies, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.Narrative { + return predicate.Narrative(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.Narrative { + return predicate.Narrative(sql.FieldNotNull(FieldDetails)) +} + +// HasPolicy applies the HasEdge predicate on the "policy" edge. +func HasPolicy() predicate.Narrative { + return predicate.Narrative(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, PolicyTable, PolicyPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicyNarratives + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasPolicyWith applies the HasEdge predicate on the "policy" edge with a given conditions (other predicates). +func HasPolicyWith(preds ...predicate.InternalPolicy) predicate.Narrative { + return predicate.Narrative(func(s *sql.Selector) { + step := newPolicyStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicyNarratives + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasControl applies the HasEdge predicate on the "control" edge. +func HasControl() predicate.Narrative { + return predicate.Narrative(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ControlTable, ControlPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlNarratives + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlWith applies the HasEdge predicate on the "control" edge with a given conditions (other predicates). +func HasControlWith(preds ...predicate.Control) predicate.Narrative { + return predicate.Narrative(func(s *sql.Selector) { + step := newControlStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlNarratives + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasProcedure applies the HasEdge predicate on the "procedure" edge. +func HasProcedure() predicate.Narrative { + return predicate.Narrative(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ProcedureTable, ProcedurePrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.ProcedureNarratives + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasProcedureWith applies the HasEdge predicate on the "procedure" edge with a given conditions (other predicates). +func HasProcedureWith(preds ...predicate.Procedure) predicate.Narrative { + return predicate.Narrative(func(s *sql.Selector) { + step := newProcedureStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.ProcedureNarratives + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasControlobjective applies the HasEdge predicate on the "controlobjective" edge. +func HasControlobjective() predicate.Narrative { + return predicate.Narrative(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ControlobjectiveTable, ControlobjectivePrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.ControlObjectiveNarratives + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlobjectiveWith applies the HasEdge predicate on the "controlobjective" edge with a given conditions (other predicates). +func HasControlobjectiveWith(preds ...predicate.ControlObjective) predicate.Narrative { + return predicate.Narrative(func(s *sql.Selector) { + step := newControlobjectiveStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.ControlObjectiveNarratives + 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.Narrative) predicate.Narrative { + return predicate.Narrative(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.Narrative) predicate.Narrative { + return predicate.Narrative(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.Narrative) predicate.Narrative { + return predicate.Narrative(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/narrative_create.go b/internal/ent/generated/narrative_create.go new file mode 100644 index 00000000..d395c0b1 --- /dev/null +++ b/internal/ent/generated/narrative_create.go @@ -0,0 +1,562 @@ +// 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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/procedure" +) + +// NarrativeCreate is the builder for creating a Narrative entity. +type NarrativeCreate struct { + config + mutation *NarrativeMutation + hooks []Hook +} + +// SetCreatedAt sets the "created_at" field. +func (nc *NarrativeCreate) SetCreatedAt(t time.Time) *NarrativeCreate { + nc.mutation.SetCreatedAt(t) + return nc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (nc *NarrativeCreate) SetNillableCreatedAt(t *time.Time) *NarrativeCreate { + if t != nil { + nc.SetCreatedAt(*t) + } + return nc +} + +// SetUpdatedAt sets the "updated_at" field. +func (nc *NarrativeCreate) SetUpdatedAt(t time.Time) *NarrativeCreate { + nc.mutation.SetUpdatedAt(t) + return nc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (nc *NarrativeCreate) SetNillableUpdatedAt(t *time.Time) *NarrativeCreate { + if t != nil { + nc.SetUpdatedAt(*t) + } + return nc +} + +// SetCreatedBy sets the "created_by" field. +func (nc *NarrativeCreate) SetCreatedBy(s string) *NarrativeCreate { + nc.mutation.SetCreatedBy(s) + return nc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (nc *NarrativeCreate) SetNillableCreatedBy(s *string) *NarrativeCreate { + if s != nil { + nc.SetCreatedBy(*s) + } + return nc +} + +// SetUpdatedBy sets the "updated_by" field. +func (nc *NarrativeCreate) SetUpdatedBy(s string) *NarrativeCreate { + nc.mutation.SetUpdatedBy(s) + return nc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (nc *NarrativeCreate) SetNillableUpdatedBy(s *string) *NarrativeCreate { + if s != nil { + nc.SetUpdatedBy(*s) + } + return nc +} + +// SetDeletedAt sets the "deleted_at" field. +func (nc *NarrativeCreate) SetDeletedAt(t time.Time) *NarrativeCreate { + nc.mutation.SetDeletedAt(t) + return nc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (nc *NarrativeCreate) SetNillableDeletedAt(t *time.Time) *NarrativeCreate { + if t != nil { + nc.SetDeletedAt(*t) + } + return nc +} + +// SetDeletedBy sets the "deleted_by" field. +func (nc *NarrativeCreate) SetDeletedBy(s string) *NarrativeCreate { + nc.mutation.SetDeletedBy(s) + return nc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (nc *NarrativeCreate) SetNillableDeletedBy(s *string) *NarrativeCreate { + if s != nil { + nc.SetDeletedBy(*s) + } + return nc +} + +// SetMappingID sets the "mapping_id" field. +func (nc *NarrativeCreate) SetMappingID(s string) *NarrativeCreate { + nc.mutation.SetMappingID(s) + return nc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (nc *NarrativeCreate) SetNillableMappingID(s *string) *NarrativeCreate { + if s != nil { + nc.SetMappingID(*s) + } + return nc +} + +// SetTags sets the "tags" field. +func (nc *NarrativeCreate) SetTags(s []string) *NarrativeCreate { + nc.mutation.SetTags(s) + return nc +} + +// SetName sets the "name" field. +func (nc *NarrativeCreate) SetName(s string) *NarrativeCreate { + nc.mutation.SetName(s) + return nc +} + +// SetDescription sets the "description" field. +func (nc *NarrativeCreate) SetDescription(s string) *NarrativeCreate { + nc.mutation.SetDescription(s) + return nc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (nc *NarrativeCreate) SetNillableDescription(s *string) *NarrativeCreate { + if s != nil { + nc.SetDescription(*s) + } + return nc +} + +// SetSatisfies sets the "satisfies" field. +func (nc *NarrativeCreate) SetSatisfies(s string) *NarrativeCreate { + nc.mutation.SetSatisfies(s) + return nc +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (nc *NarrativeCreate) SetNillableSatisfies(s *string) *NarrativeCreate { + if s != nil { + nc.SetSatisfies(*s) + } + return nc +} + +// SetDetails sets the "details" field. +func (nc *NarrativeCreate) SetDetails(m map[string]interface{}) *NarrativeCreate { + nc.mutation.SetDetails(m) + return nc +} + +// SetID sets the "id" field. +func (nc *NarrativeCreate) SetID(s string) *NarrativeCreate { + nc.mutation.SetID(s) + return nc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (nc *NarrativeCreate) SetNillableID(s *string) *NarrativeCreate { + if s != nil { + nc.SetID(*s) + } + return nc +} + +// AddPolicyIDs adds the "policy" edge to the InternalPolicy entity by IDs. +func (nc *NarrativeCreate) AddPolicyIDs(ids ...string) *NarrativeCreate { + nc.mutation.AddPolicyIDs(ids...) + return nc +} + +// AddPolicy adds the "policy" edges to the InternalPolicy entity. +func (nc *NarrativeCreate) AddPolicy(i ...*InternalPolicy) *NarrativeCreate { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return nc.AddPolicyIDs(ids...) +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (nc *NarrativeCreate) AddControlIDs(ids ...string) *NarrativeCreate { + nc.mutation.AddControlIDs(ids...) + return nc +} + +// AddControl adds the "control" edges to the Control entity. +func (nc *NarrativeCreate) AddControl(c ...*Control) *NarrativeCreate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return nc.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedure" edge to the Procedure entity by IDs. +func (nc *NarrativeCreate) AddProcedureIDs(ids ...string) *NarrativeCreate { + nc.mutation.AddProcedureIDs(ids...) + return nc +} + +// AddProcedure adds the "procedure" edges to the Procedure entity. +func (nc *NarrativeCreate) AddProcedure(p ...*Procedure) *NarrativeCreate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return nc.AddProcedureIDs(ids...) +} + +// AddControlobjectiveIDs adds the "controlobjective" edge to the ControlObjective entity by IDs. +func (nc *NarrativeCreate) AddControlobjectiveIDs(ids ...string) *NarrativeCreate { + nc.mutation.AddControlobjectiveIDs(ids...) + return nc +} + +// AddControlobjective adds the "controlobjective" edges to the ControlObjective entity. +func (nc *NarrativeCreate) AddControlobjective(c ...*ControlObjective) *NarrativeCreate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return nc.AddControlobjectiveIDs(ids...) +} + +// Mutation returns the NarrativeMutation object of the builder. +func (nc *NarrativeCreate) Mutation() *NarrativeMutation { + return nc.mutation +} + +// Save creates the Narrative in the database. +func (nc *NarrativeCreate) Save(ctx context.Context) (*Narrative, error) { + if err := nc.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, nc.sqlSave, nc.mutation, nc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (nc *NarrativeCreate) SaveX(ctx context.Context) *Narrative { + v, err := nc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (nc *NarrativeCreate) Exec(ctx context.Context) error { + _, err := nc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (nc *NarrativeCreate) ExecX(ctx context.Context) { + if err := nc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (nc *NarrativeCreate) defaults() error { + if _, ok := nc.mutation.CreatedAt(); !ok { + if narrative.DefaultCreatedAt == nil { + return fmt.Errorf("generated: uninitialized narrative.DefaultCreatedAt (forgotten import generated/runtime?)") + } + v := narrative.DefaultCreatedAt() + nc.mutation.SetCreatedAt(v) + } + if _, ok := nc.mutation.UpdatedAt(); !ok { + if narrative.DefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized narrative.DefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := narrative.DefaultUpdatedAt() + nc.mutation.SetUpdatedAt(v) + } + if _, ok := nc.mutation.MappingID(); !ok { + if narrative.DefaultMappingID == nil { + return fmt.Errorf("generated: uninitialized narrative.DefaultMappingID (forgotten import generated/runtime?)") + } + v := narrative.DefaultMappingID() + nc.mutation.SetMappingID(v) + } + if _, ok := nc.mutation.Tags(); !ok { + v := narrative.DefaultTags + nc.mutation.SetTags(v) + } + if _, ok := nc.mutation.ID(); !ok { + if narrative.DefaultID == nil { + return fmt.Errorf("generated: uninitialized narrative.DefaultID (forgotten import generated/runtime?)") + } + v := narrative.DefaultID() + nc.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (nc *NarrativeCreate) check() error { + if _, ok := nc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "Narrative.mapping_id"`)} + } + if _, ok := nc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "Narrative.name"`)} + } + return nil +} + +func (nc *NarrativeCreate) sqlSave(ctx context.Context) (*Narrative, error) { + if err := nc.check(); err != nil { + return nil, err + } + _node, _spec := nc.createSpec() + if err := sqlgraph.CreateNode(ctx, nc.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 Narrative.ID type: %T", _spec.ID.Value) + } + } + nc.mutation.id = &_node.ID + nc.mutation.done = true + return _node, nil +} + +func (nc *NarrativeCreate) createSpec() (*Narrative, *sqlgraph.CreateSpec) { + var ( + _node = &Narrative{config: nc.config} + _spec = sqlgraph.NewCreateSpec(narrative.Table, sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString)) + ) + _spec.Schema = nc.schemaConfig.Narrative + if id, ok := nc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := nc.mutation.CreatedAt(); ok { + _spec.SetField(narrative.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := nc.mutation.UpdatedAt(); ok { + _spec.SetField(narrative.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := nc.mutation.CreatedBy(); ok { + _spec.SetField(narrative.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := nc.mutation.UpdatedBy(); ok { + _spec.SetField(narrative.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := nc.mutation.DeletedAt(); ok { + _spec.SetField(narrative.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := nc.mutation.DeletedBy(); ok { + _spec.SetField(narrative.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := nc.mutation.MappingID(); ok { + _spec.SetField(narrative.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := nc.mutation.Tags(); ok { + _spec.SetField(narrative.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := nc.mutation.Name(); ok { + _spec.SetField(narrative.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := nc.mutation.Description(); ok { + _spec.SetField(narrative.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := nc.mutation.Satisfies(); ok { + _spec.SetField(narrative.FieldSatisfies, field.TypeString, value) + _node.Satisfies = value + } + if value, ok := nc.mutation.Details(); ok { + _spec.SetField(narrative.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + if nodes := nc.mutation.PolicyIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.PolicyTable, + Columns: narrative.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = nc.schemaConfig.InternalPolicyNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := nc.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlTable, + Columns: narrative.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = nc.schemaConfig.ControlNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := nc.mutation.ProcedureIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ProcedureTable, + Columns: narrative.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = nc.schemaConfig.ProcedureNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := nc.mutation.ControlobjectiveIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlobjectiveTable, + Columns: narrative.ControlobjectivePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = nc.schemaConfig.ControlObjectiveNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + return _node, _spec +} + +// NarrativeCreateBulk is the builder for creating many Narrative entities in bulk. +type NarrativeCreateBulk struct { + config + err error + builders []*NarrativeCreate +} + +// Save creates the Narrative entities in the database. +func (ncb *NarrativeCreateBulk) Save(ctx context.Context) ([]*Narrative, error) { + if ncb.err != nil { + return nil, ncb.err + } + specs := make([]*sqlgraph.CreateSpec, len(ncb.builders)) + nodes := make([]*Narrative, len(ncb.builders)) + mutators := make([]Mutator, len(ncb.builders)) + for i := range ncb.builders { + func(i int, root context.Context) { + builder := ncb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*NarrativeMutation) + 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, ncb.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, ncb.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, ncb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (ncb *NarrativeCreateBulk) SaveX(ctx context.Context) []*Narrative { + v, err := ncb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (ncb *NarrativeCreateBulk) Exec(ctx context.Context) error { + _, err := ncb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (ncb *NarrativeCreateBulk) ExecX(ctx context.Context) { + if err := ncb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/narrative_delete.go b/internal/ent/generated/narrative_delete.go new file mode 100644 index 00000000..07372819 --- /dev/null +++ b/internal/ent/generated/narrative_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" + "github.com/theopenlane/core/internal/ent/generated/narrative" +) + +// NarrativeDelete is the builder for deleting a Narrative entity. +type NarrativeDelete struct { + config + hooks []Hook + mutation *NarrativeMutation +} + +// Where appends a list predicates to the NarrativeDelete builder. +func (nd *NarrativeDelete) Where(ps ...predicate.Narrative) *NarrativeDelete { + nd.mutation.Where(ps...) + return nd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (nd *NarrativeDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, nd.sqlExec, nd.mutation, nd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (nd *NarrativeDelete) ExecX(ctx context.Context) int { + n, err := nd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (nd *NarrativeDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(narrative.Table, sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString)) + _spec.Node.Schema = nd.schemaConfig.Narrative + ctx = internal.NewSchemaConfigContext(ctx, nd.schemaConfig) + if ps := nd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, nd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + nd.mutation.done = true + return affected, err +} + +// NarrativeDeleteOne is the builder for deleting a single Narrative entity. +type NarrativeDeleteOne struct { + nd *NarrativeDelete +} + +// Where appends a list predicates to the NarrativeDelete builder. +func (ndo *NarrativeDeleteOne) Where(ps ...predicate.Narrative) *NarrativeDeleteOne { + ndo.nd.mutation.Where(ps...) + return ndo +} + +// Exec executes the deletion query. +func (ndo *NarrativeDeleteOne) Exec(ctx context.Context) error { + n, err := ndo.nd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{narrative.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (ndo *NarrativeDeleteOne) ExecX(ctx context.Context) { + if err := ndo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/narrative_query.go b/internal/ent/generated/narrative_query.go new file mode 100644 index 00000000..a534d59a --- /dev/null +++ b/internal/ent/generated/narrative_query.go @@ -0,0 +1,1096 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "database/sql/driver" + "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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// NarrativeQuery is the builder for querying Narrative entities. +type NarrativeQuery struct { + config + ctx *QueryContext + order []narrative.OrderOption + inters []Interceptor + predicates []predicate.Narrative + withPolicy *InternalPolicyQuery + withControl *ControlQuery + withProcedure *ProcedureQuery + withControlobjective *ControlObjectiveQuery + loadTotal []func(context.Context, []*Narrative) error + modifiers []func(*sql.Selector) + withNamedPolicy map[string]*InternalPolicyQuery + withNamedControl map[string]*ControlQuery + withNamedProcedure map[string]*ProcedureQuery + withNamedControlobjective map[string]*ControlObjectiveQuery + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the NarrativeQuery builder. +func (nq *NarrativeQuery) Where(ps ...predicate.Narrative) *NarrativeQuery { + nq.predicates = append(nq.predicates, ps...) + return nq +} + +// Limit the number of records to be returned by this query. +func (nq *NarrativeQuery) Limit(limit int) *NarrativeQuery { + nq.ctx.Limit = &limit + return nq +} + +// Offset to start from. +func (nq *NarrativeQuery) Offset(offset int) *NarrativeQuery { + nq.ctx.Offset = &offset + return nq +} + +// 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 (nq *NarrativeQuery) Unique(unique bool) *NarrativeQuery { + nq.ctx.Unique = &unique + return nq +} + +// Order specifies how the records should be ordered. +func (nq *NarrativeQuery) Order(o ...narrative.OrderOption) *NarrativeQuery { + nq.order = append(nq.order, o...) + return nq +} + +// QueryPolicy chains the current query on the "policy" edge. +func (nq *NarrativeQuery) QueryPolicy() *InternalPolicyQuery { + query := (&InternalPolicyClient{config: nq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := nq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := nq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(narrative.Table, narrative.FieldID, selector), + sqlgraph.To(internalpolicy.Table, internalpolicy.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, narrative.PolicyTable, narrative.PolicyPrimaryKey...), + ) + schemaConfig := nq.schemaConfig + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicyNarratives + fromU = sqlgraph.SetNeighbors(nq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryControl chains the current query on the "control" edge. +func (nq *NarrativeQuery) QueryControl() *ControlQuery { + query := (&ControlClient{config: nq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := nq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := nq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(narrative.Table, narrative.FieldID, selector), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, narrative.ControlTable, narrative.ControlPrimaryKey...), + ) + schemaConfig := nq.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlNarratives + fromU = sqlgraph.SetNeighbors(nq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryProcedure chains the current query on the "procedure" edge. +func (nq *NarrativeQuery) QueryProcedure() *ProcedureQuery { + query := (&ProcedureClient{config: nq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := nq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := nq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(narrative.Table, narrative.FieldID, selector), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, narrative.ProcedureTable, narrative.ProcedurePrimaryKey...), + ) + schemaConfig := nq.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.ProcedureNarratives + fromU = sqlgraph.SetNeighbors(nq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryControlobjective chains the current query on the "controlobjective" edge. +func (nq *NarrativeQuery) QueryControlobjective() *ControlObjectiveQuery { + query := (&ControlObjectiveClient{config: nq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := nq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := nq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(narrative.Table, narrative.FieldID, selector), + sqlgraph.To(controlobjective.Table, controlobjective.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, narrative.ControlobjectiveTable, narrative.ControlobjectivePrimaryKey...), + ) + schemaConfig := nq.schemaConfig + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.ControlObjectiveNarratives + fromU = sqlgraph.SetNeighbors(nq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// First returns the first Narrative entity from the query. +// Returns a *NotFoundError when no Narrative was found. +func (nq *NarrativeQuery) First(ctx context.Context) (*Narrative, error) { + nodes, err := nq.Limit(1).All(setContextOp(ctx, nq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{narrative.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (nq *NarrativeQuery) FirstX(ctx context.Context) *Narrative { + node, err := nq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first Narrative ID from the query. +// Returns a *NotFoundError when no Narrative ID was found. +func (nq *NarrativeQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = nq.Limit(1).IDs(setContextOp(ctx, nq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{narrative.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (nq *NarrativeQuery) FirstIDX(ctx context.Context) string { + id, err := nq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single Narrative entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one Narrative entity is found. +// Returns a *NotFoundError when no Narrative entities are found. +func (nq *NarrativeQuery) Only(ctx context.Context) (*Narrative, error) { + nodes, err := nq.Limit(2).All(setContextOp(ctx, nq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{narrative.Label} + default: + return nil, &NotSingularError{narrative.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (nq *NarrativeQuery) OnlyX(ctx context.Context) *Narrative { + node, err := nq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only Narrative ID in the query. +// Returns a *NotSingularError when more than one Narrative ID is found. +// Returns a *NotFoundError when no entities are found. +func (nq *NarrativeQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = nq.Limit(2).IDs(setContextOp(ctx, nq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{narrative.Label} + default: + err = &NotSingularError{narrative.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (nq *NarrativeQuery) OnlyIDX(ctx context.Context) string { + id, err := nq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of Narratives. +func (nq *NarrativeQuery) All(ctx context.Context) ([]*Narrative, error) { + ctx = setContextOp(ctx, nq.ctx, ent.OpQueryAll) + if err := nq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*Narrative, *NarrativeQuery]() + return withInterceptors[[]*Narrative](ctx, nq, qr, nq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (nq *NarrativeQuery) AllX(ctx context.Context) []*Narrative { + nodes, err := nq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of Narrative IDs. +func (nq *NarrativeQuery) IDs(ctx context.Context) (ids []string, err error) { + if nq.ctx.Unique == nil && nq.path != nil { + nq.Unique(true) + } + ctx = setContextOp(ctx, nq.ctx, ent.OpQueryIDs) + if err = nq.Select(narrative.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (nq *NarrativeQuery) IDsX(ctx context.Context) []string { + ids, err := nq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (nq *NarrativeQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, nq.ctx, ent.OpQueryCount) + if err := nq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, nq, querierCount[*NarrativeQuery](), nq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (nq *NarrativeQuery) CountX(ctx context.Context) int { + count, err := nq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (nq *NarrativeQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, nq.ctx, ent.OpQueryExist) + switch _, err := nq.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 (nq *NarrativeQuery) ExistX(ctx context.Context) bool { + exist, err := nq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the NarrativeQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (nq *NarrativeQuery) Clone() *NarrativeQuery { + if nq == nil { + return nil + } + return &NarrativeQuery{ + config: nq.config, + ctx: nq.ctx.Clone(), + order: append([]narrative.OrderOption{}, nq.order...), + inters: append([]Interceptor{}, nq.inters...), + predicates: append([]predicate.Narrative{}, nq.predicates...), + withPolicy: nq.withPolicy.Clone(), + withControl: nq.withControl.Clone(), + withProcedure: nq.withProcedure.Clone(), + withControlobjective: nq.withControlobjective.Clone(), + // clone intermediate query. + sql: nq.sql.Clone(), + path: nq.path, + modifiers: append([]func(*sql.Selector){}, nq.modifiers...), + } +} + +// WithPolicy tells the query-builder to eager-load the nodes that are connected to +// the "policy" edge. The optional arguments are used to configure the query builder of the edge. +func (nq *NarrativeQuery) WithPolicy(opts ...func(*InternalPolicyQuery)) *NarrativeQuery { + query := (&InternalPolicyClient{config: nq.config}).Query() + for _, opt := range opts { + opt(query) + } + nq.withPolicy = query + return nq +} + +// WithControl tells the query-builder to eager-load the nodes that are connected to +// the "control" edge. The optional arguments are used to configure the query builder of the edge. +func (nq *NarrativeQuery) WithControl(opts ...func(*ControlQuery)) *NarrativeQuery { + query := (&ControlClient{config: nq.config}).Query() + for _, opt := range opts { + opt(query) + } + nq.withControl = query + return nq +} + +// WithProcedure tells the query-builder to eager-load the nodes that are connected to +// the "procedure" edge. The optional arguments are used to configure the query builder of the edge. +func (nq *NarrativeQuery) WithProcedure(opts ...func(*ProcedureQuery)) *NarrativeQuery { + query := (&ProcedureClient{config: nq.config}).Query() + for _, opt := range opts { + opt(query) + } + nq.withProcedure = query + return nq +} + +// WithControlobjective tells the query-builder to eager-load the nodes that are connected to +// the "controlobjective" edge. The optional arguments are used to configure the query builder of the edge. +func (nq *NarrativeQuery) WithControlobjective(opts ...func(*ControlObjectiveQuery)) *NarrativeQuery { + query := (&ControlObjectiveClient{config: nq.config}).Query() + for _, opt := range opts { + opt(query) + } + nq.withControlobjective = query + return nq +} + +// 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.Narrative.Query(). +// GroupBy(narrative.FieldCreatedAt). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (nq *NarrativeQuery) GroupBy(field string, fields ...string) *NarrativeGroupBy { + nq.ctx.Fields = append([]string{field}, fields...) + grbuild := &NarrativeGroupBy{build: nq} + grbuild.flds = &nq.ctx.Fields + grbuild.label = narrative.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.Narrative.Query(). +// Select(narrative.FieldCreatedAt). +// Scan(ctx, &v) +func (nq *NarrativeQuery) Select(fields ...string) *NarrativeSelect { + nq.ctx.Fields = append(nq.ctx.Fields, fields...) + sbuild := &NarrativeSelect{NarrativeQuery: nq} + sbuild.label = narrative.Label + sbuild.flds, sbuild.scan = &nq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a NarrativeSelect configured with the given aggregations. +func (nq *NarrativeQuery) Aggregate(fns ...AggregateFunc) *NarrativeSelect { + return nq.Select().Aggregate(fns...) +} + +func (nq *NarrativeQuery) prepareQuery(ctx context.Context) error { + for _, inter := range nq.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, nq); err != nil { + return err + } + } + } + for _, f := range nq.ctx.Fields { + if !narrative.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if nq.path != nil { + prev, err := nq.path(ctx) + if err != nil { + return err + } + nq.sql = prev + } + return nil +} + +func (nq *NarrativeQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Narrative, error) { + var ( + nodes = []*Narrative{} + _spec = nq.querySpec() + loadedTypes = [4]bool{ + nq.withPolicy != nil, + nq.withControl != nil, + nq.withProcedure != nil, + nq.withControlobjective != nil, + } + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*Narrative).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &Narrative{config: nq.config} + nodes = append(nodes, node) + node.Edges.loadedTypes = loadedTypes + return node.assignValues(columns, values) + } + _spec.Node.Schema = nq.schemaConfig.Narrative + ctx = internal.NewSchemaConfigContext(ctx, nq.schemaConfig) + if len(nq.modifiers) > 0 { + _spec.Modifiers = nq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, nq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + if query := nq.withPolicy; query != nil { + if err := nq.loadPolicy(ctx, query, nodes, + func(n *Narrative) { n.Edges.Policy = []*InternalPolicy{} }, + func(n *Narrative, e *InternalPolicy) { n.Edges.Policy = append(n.Edges.Policy, e) }); err != nil { + return nil, err + } + } + if query := nq.withControl; query != nil { + if err := nq.loadControl(ctx, query, nodes, + func(n *Narrative) { n.Edges.Control = []*Control{} }, + func(n *Narrative, e *Control) { n.Edges.Control = append(n.Edges.Control, e) }); err != nil { + return nil, err + } + } + if query := nq.withProcedure; query != nil { + if err := nq.loadProcedure(ctx, query, nodes, + func(n *Narrative) { n.Edges.Procedure = []*Procedure{} }, + func(n *Narrative, e *Procedure) { n.Edges.Procedure = append(n.Edges.Procedure, e) }); err != nil { + return nil, err + } + } + if query := nq.withControlobjective; query != nil { + if err := nq.loadControlobjective(ctx, query, nodes, + func(n *Narrative) { n.Edges.Controlobjective = []*ControlObjective{} }, + func(n *Narrative, e *ControlObjective) { + n.Edges.Controlobjective = append(n.Edges.Controlobjective, e) + }); err != nil { + return nil, err + } + } + for name, query := range nq.withNamedPolicy { + if err := nq.loadPolicy(ctx, query, nodes, + func(n *Narrative) { n.appendNamedPolicy(name) }, + func(n *Narrative, e *InternalPolicy) { n.appendNamedPolicy(name, e) }); err != nil { + return nil, err + } + } + for name, query := range nq.withNamedControl { + if err := nq.loadControl(ctx, query, nodes, + func(n *Narrative) { n.appendNamedControl(name) }, + func(n *Narrative, e *Control) { n.appendNamedControl(name, e) }); err != nil { + return nil, err + } + } + for name, query := range nq.withNamedProcedure { + if err := nq.loadProcedure(ctx, query, nodes, + func(n *Narrative) { n.appendNamedProcedure(name) }, + func(n *Narrative, e *Procedure) { n.appendNamedProcedure(name, e) }); err != nil { + return nil, err + } + } + for name, query := range nq.withNamedControlobjective { + if err := nq.loadControlobjective(ctx, query, nodes, + func(n *Narrative) { n.appendNamedControlobjective(name) }, + func(n *Narrative, e *ControlObjective) { n.appendNamedControlobjective(name, e) }); err != nil { + return nil, err + } + } + for i := range nq.loadTotal { + if err := nq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (nq *NarrativeQuery) loadPolicy(ctx context.Context, query *InternalPolicyQuery, nodes []*Narrative, init func(*Narrative), assign func(*Narrative, *InternalPolicy)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Narrative) + nids := make(map[string]map[*Narrative]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(narrative.PolicyTable) + joinT.Schema(nq.schemaConfig.InternalPolicyNarratives) + s.Join(joinT).On(s.C(internalpolicy.FieldID), joinT.C(narrative.PolicyPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(narrative.PolicyPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(narrative.PolicyPrimaryKey[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[*Narrative]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*InternalPolicy](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 "policy" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (nq *NarrativeQuery) loadControl(ctx context.Context, query *ControlQuery, nodes []*Narrative, init func(*Narrative), assign func(*Narrative, *Control)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Narrative) + nids := make(map[string]map[*Narrative]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(narrative.ControlTable) + joinT.Schema(nq.schemaConfig.ControlNarratives) + s.Join(joinT).On(s.C(control.FieldID), joinT.C(narrative.ControlPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(narrative.ControlPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(narrative.ControlPrimaryKey[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[*Narrative]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Control](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 "control" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (nq *NarrativeQuery) loadProcedure(ctx context.Context, query *ProcedureQuery, nodes []*Narrative, init func(*Narrative), assign func(*Narrative, *Procedure)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Narrative) + nids := make(map[string]map[*Narrative]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(narrative.ProcedureTable) + joinT.Schema(nq.schemaConfig.ProcedureNarratives) + s.Join(joinT).On(s.C(procedure.FieldID), joinT.C(narrative.ProcedurePrimaryKey[0])) + s.Where(sql.InValues(joinT.C(narrative.ProcedurePrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(narrative.ProcedurePrimaryKey[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[*Narrative]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Procedure](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 "procedure" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (nq *NarrativeQuery) loadControlobjective(ctx context.Context, query *ControlObjectiveQuery, nodes []*Narrative, init func(*Narrative), assign func(*Narrative, *ControlObjective)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Narrative) + nids := make(map[string]map[*Narrative]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(narrative.ControlobjectiveTable) + joinT.Schema(nq.schemaConfig.ControlObjectiveNarratives) + s.Join(joinT).On(s.C(controlobjective.FieldID), joinT.C(narrative.ControlobjectivePrimaryKey[0])) + s.Where(sql.InValues(joinT.C(narrative.ControlobjectivePrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(narrative.ControlobjectivePrimaryKey[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[*Narrative]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*ControlObjective](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 "controlobjective" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} + +func (nq *NarrativeQuery) sqlCount(ctx context.Context) (int, error) { + _spec := nq.querySpec() + _spec.Node.Schema = nq.schemaConfig.Narrative + ctx = internal.NewSchemaConfigContext(ctx, nq.schemaConfig) + if len(nq.modifiers) > 0 { + _spec.Modifiers = nq.modifiers + } + _spec.Node.Columns = nq.ctx.Fields + if len(nq.ctx.Fields) > 0 { + _spec.Unique = nq.ctx.Unique != nil && *nq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, nq.driver, _spec) +} + +func (nq *NarrativeQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(narrative.Table, narrative.Columns, sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString)) + _spec.From = nq.sql + if unique := nq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if nq.path != nil { + _spec.Unique = true + } + if fields := nq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, narrative.FieldID) + for i := range fields { + if fields[i] != narrative.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := nq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := nq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := nq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := nq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (nq *NarrativeQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(nq.driver.Dialect()) + t1 := builder.Table(narrative.Table) + columns := nq.ctx.Fields + if len(columns) == 0 { + columns = narrative.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if nq.sql != nil { + selector = nq.sql + selector.Select(selector.Columns(columns...)...) + } + if nq.ctx.Unique != nil && *nq.ctx.Unique { + selector.Distinct() + } + t1.Schema(nq.schemaConfig.Narrative) + ctx = internal.NewSchemaConfigContext(ctx, nq.schemaConfig) + selector.WithContext(ctx) + for _, m := range nq.modifiers { + m(selector) + } + for _, p := range nq.predicates { + p(selector) + } + for _, p := range nq.order { + p(selector) + } + if offset := nq.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 := nq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (nq *NarrativeQuery) Modify(modifiers ...func(s *sql.Selector)) *NarrativeSelect { + nq.modifiers = append(nq.modifiers, modifiers...) + return nq.Select() +} + +// WithNamedPolicy tells the query-builder to eager-load the nodes that are connected to the "policy" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (nq *NarrativeQuery) WithNamedPolicy(name string, opts ...func(*InternalPolicyQuery)) *NarrativeQuery { + query := (&InternalPolicyClient{config: nq.config}).Query() + for _, opt := range opts { + opt(query) + } + if nq.withNamedPolicy == nil { + nq.withNamedPolicy = make(map[string]*InternalPolicyQuery) + } + nq.withNamedPolicy[name] = query + return nq +} + +// WithNamedControl tells the query-builder to eager-load the nodes that are connected to the "control" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (nq *NarrativeQuery) WithNamedControl(name string, opts ...func(*ControlQuery)) *NarrativeQuery { + query := (&ControlClient{config: nq.config}).Query() + for _, opt := range opts { + opt(query) + } + if nq.withNamedControl == nil { + nq.withNamedControl = make(map[string]*ControlQuery) + } + nq.withNamedControl[name] = query + return nq +} + +// WithNamedProcedure tells the query-builder to eager-load the nodes that are connected to the "procedure" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (nq *NarrativeQuery) WithNamedProcedure(name string, opts ...func(*ProcedureQuery)) *NarrativeQuery { + query := (&ProcedureClient{config: nq.config}).Query() + for _, opt := range opts { + opt(query) + } + if nq.withNamedProcedure == nil { + nq.withNamedProcedure = make(map[string]*ProcedureQuery) + } + nq.withNamedProcedure[name] = query + return nq +} + +// WithNamedControlobjective tells the query-builder to eager-load the nodes that are connected to the "controlobjective" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (nq *NarrativeQuery) WithNamedControlobjective(name string, opts ...func(*ControlObjectiveQuery)) *NarrativeQuery { + query := (&ControlObjectiveClient{config: nq.config}).Query() + for _, opt := range opts { + opt(query) + } + if nq.withNamedControlobjective == nil { + nq.withNamedControlobjective = make(map[string]*ControlObjectiveQuery) + } + nq.withNamedControlobjective[name] = query + return nq +} + +// NarrativeGroupBy is the group-by builder for Narrative entities. +type NarrativeGroupBy struct { + selector + build *NarrativeQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (ngb *NarrativeGroupBy) Aggregate(fns ...AggregateFunc) *NarrativeGroupBy { + ngb.fns = append(ngb.fns, fns...) + return ngb +} + +// Scan applies the selector query and scans the result into the given value. +func (ngb *NarrativeGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, ngb.build.ctx, ent.OpQueryGroupBy) + if err := ngb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*NarrativeQuery, *NarrativeGroupBy](ctx, ngb.build, ngb, ngb.build.inters, v) +} + +func (ngb *NarrativeGroupBy) sqlScan(ctx context.Context, root *NarrativeQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(ngb.fns)) + for _, fn := range ngb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*ngb.flds)+len(ngb.fns)) + for _, f := range *ngb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*ngb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := ngb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// NarrativeSelect is the builder for selecting fields of Narrative entities. +type NarrativeSelect struct { + *NarrativeQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (ns *NarrativeSelect) Aggregate(fns ...AggregateFunc) *NarrativeSelect { + ns.fns = append(ns.fns, fns...) + return ns +} + +// Scan applies the selector query and scans the result into the given value. +func (ns *NarrativeSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, ns.ctx, ent.OpQuerySelect) + if err := ns.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*NarrativeQuery, *NarrativeSelect](ctx, ns.NarrativeQuery, ns, ns.inters, v) +} + +func (ns *NarrativeSelect) sqlScan(ctx context.Context, root *NarrativeQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(ns.fns)) + for _, fn := range ns.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*ns.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 := ns.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 (ns *NarrativeSelect) Modify(modifiers ...func(s *sql.Selector)) *NarrativeSelect { + ns.modifiers = append(ns.modifiers, modifiers...) + return ns +} diff --git a/internal/ent/generated/narrative_update.go b/internal/ent/generated/narrative_update.go new file mode 100644 index 00000000..984893ed --- /dev/null +++ b/internal/ent/generated/narrative_update.go @@ -0,0 +1,1341 @@ +// 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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// NarrativeUpdate is the builder for updating Narrative entities. +type NarrativeUpdate struct { + config + hooks []Hook + mutation *NarrativeMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the NarrativeUpdate builder. +func (nu *NarrativeUpdate) Where(ps ...predicate.Narrative) *NarrativeUpdate { + nu.mutation.Where(ps...) + return nu +} + +// SetUpdatedAt sets the "updated_at" field. +func (nu *NarrativeUpdate) SetUpdatedAt(t time.Time) *NarrativeUpdate { + nu.mutation.SetUpdatedAt(t) + return nu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (nu *NarrativeUpdate) ClearUpdatedAt() *NarrativeUpdate { + nu.mutation.ClearUpdatedAt() + return nu +} + +// SetUpdatedBy sets the "updated_by" field. +func (nu *NarrativeUpdate) SetUpdatedBy(s string) *NarrativeUpdate { + nu.mutation.SetUpdatedBy(s) + return nu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (nu *NarrativeUpdate) SetNillableUpdatedBy(s *string) *NarrativeUpdate { + if s != nil { + nu.SetUpdatedBy(*s) + } + return nu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (nu *NarrativeUpdate) ClearUpdatedBy() *NarrativeUpdate { + nu.mutation.ClearUpdatedBy() + return nu +} + +// SetDeletedAt sets the "deleted_at" field. +func (nu *NarrativeUpdate) SetDeletedAt(t time.Time) *NarrativeUpdate { + nu.mutation.SetDeletedAt(t) + return nu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (nu *NarrativeUpdate) SetNillableDeletedAt(t *time.Time) *NarrativeUpdate { + if t != nil { + nu.SetDeletedAt(*t) + } + return nu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (nu *NarrativeUpdate) ClearDeletedAt() *NarrativeUpdate { + nu.mutation.ClearDeletedAt() + return nu +} + +// SetDeletedBy sets the "deleted_by" field. +func (nu *NarrativeUpdate) SetDeletedBy(s string) *NarrativeUpdate { + nu.mutation.SetDeletedBy(s) + return nu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (nu *NarrativeUpdate) SetNillableDeletedBy(s *string) *NarrativeUpdate { + if s != nil { + nu.SetDeletedBy(*s) + } + return nu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (nu *NarrativeUpdate) ClearDeletedBy() *NarrativeUpdate { + nu.mutation.ClearDeletedBy() + return nu +} + +// SetTags sets the "tags" field. +func (nu *NarrativeUpdate) SetTags(s []string) *NarrativeUpdate { + nu.mutation.SetTags(s) + return nu +} + +// AppendTags appends s to the "tags" field. +func (nu *NarrativeUpdate) AppendTags(s []string) *NarrativeUpdate { + nu.mutation.AppendTags(s) + return nu +} + +// ClearTags clears the value of the "tags" field. +func (nu *NarrativeUpdate) ClearTags() *NarrativeUpdate { + nu.mutation.ClearTags() + return nu +} + +// SetName sets the "name" field. +func (nu *NarrativeUpdate) SetName(s string) *NarrativeUpdate { + nu.mutation.SetName(s) + return nu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (nu *NarrativeUpdate) SetNillableName(s *string) *NarrativeUpdate { + if s != nil { + nu.SetName(*s) + } + return nu +} + +// SetDescription sets the "description" field. +func (nu *NarrativeUpdate) SetDescription(s string) *NarrativeUpdate { + nu.mutation.SetDescription(s) + return nu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (nu *NarrativeUpdate) SetNillableDescription(s *string) *NarrativeUpdate { + if s != nil { + nu.SetDescription(*s) + } + return nu +} + +// ClearDescription clears the value of the "description" field. +func (nu *NarrativeUpdate) ClearDescription() *NarrativeUpdate { + nu.mutation.ClearDescription() + return nu +} + +// SetSatisfies sets the "satisfies" field. +func (nu *NarrativeUpdate) SetSatisfies(s string) *NarrativeUpdate { + nu.mutation.SetSatisfies(s) + return nu +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (nu *NarrativeUpdate) SetNillableSatisfies(s *string) *NarrativeUpdate { + if s != nil { + nu.SetSatisfies(*s) + } + return nu +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (nu *NarrativeUpdate) ClearSatisfies() *NarrativeUpdate { + nu.mutation.ClearSatisfies() + return nu +} + +// SetDetails sets the "details" field. +func (nu *NarrativeUpdate) SetDetails(m map[string]interface{}) *NarrativeUpdate { + nu.mutation.SetDetails(m) + return nu +} + +// ClearDetails clears the value of the "details" field. +func (nu *NarrativeUpdate) ClearDetails() *NarrativeUpdate { + nu.mutation.ClearDetails() + return nu +} + +// AddPolicyIDs adds the "policy" edge to the InternalPolicy entity by IDs. +func (nu *NarrativeUpdate) AddPolicyIDs(ids ...string) *NarrativeUpdate { + nu.mutation.AddPolicyIDs(ids...) + return nu +} + +// AddPolicy adds the "policy" edges to the InternalPolicy entity. +func (nu *NarrativeUpdate) AddPolicy(i ...*InternalPolicy) *NarrativeUpdate { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return nu.AddPolicyIDs(ids...) +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (nu *NarrativeUpdate) AddControlIDs(ids ...string) *NarrativeUpdate { + nu.mutation.AddControlIDs(ids...) + return nu +} + +// AddControl adds the "control" edges to the Control entity. +func (nu *NarrativeUpdate) AddControl(c ...*Control) *NarrativeUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return nu.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedure" edge to the Procedure entity by IDs. +func (nu *NarrativeUpdate) AddProcedureIDs(ids ...string) *NarrativeUpdate { + nu.mutation.AddProcedureIDs(ids...) + return nu +} + +// AddProcedure adds the "procedure" edges to the Procedure entity. +func (nu *NarrativeUpdate) AddProcedure(p ...*Procedure) *NarrativeUpdate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return nu.AddProcedureIDs(ids...) +} + +// AddControlobjectiveIDs adds the "controlobjective" edge to the ControlObjective entity by IDs. +func (nu *NarrativeUpdate) AddControlobjectiveIDs(ids ...string) *NarrativeUpdate { + nu.mutation.AddControlobjectiveIDs(ids...) + return nu +} + +// AddControlobjective adds the "controlobjective" edges to the ControlObjective entity. +func (nu *NarrativeUpdate) AddControlobjective(c ...*ControlObjective) *NarrativeUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return nu.AddControlobjectiveIDs(ids...) +} + +// Mutation returns the NarrativeMutation object of the builder. +func (nu *NarrativeUpdate) Mutation() *NarrativeMutation { + return nu.mutation +} + +// ClearPolicy clears all "policy" edges to the InternalPolicy entity. +func (nu *NarrativeUpdate) ClearPolicy() *NarrativeUpdate { + nu.mutation.ClearPolicy() + return nu +} + +// RemovePolicyIDs removes the "policy" edge to InternalPolicy entities by IDs. +func (nu *NarrativeUpdate) RemovePolicyIDs(ids ...string) *NarrativeUpdate { + nu.mutation.RemovePolicyIDs(ids...) + return nu +} + +// RemovePolicy removes "policy" edges to InternalPolicy entities. +func (nu *NarrativeUpdate) RemovePolicy(i ...*InternalPolicy) *NarrativeUpdate { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return nu.RemovePolicyIDs(ids...) +} + +// ClearControl clears all "control" edges to the Control entity. +func (nu *NarrativeUpdate) ClearControl() *NarrativeUpdate { + nu.mutation.ClearControl() + return nu +} + +// RemoveControlIDs removes the "control" edge to Control entities by IDs. +func (nu *NarrativeUpdate) RemoveControlIDs(ids ...string) *NarrativeUpdate { + nu.mutation.RemoveControlIDs(ids...) + return nu +} + +// RemoveControl removes "control" edges to Control entities. +func (nu *NarrativeUpdate) RemoveControl(c ...*Control) *NarrativeUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return nu.RemoveControlIDs(ids...) +} + +// ClearProcedure clears all "procedure" edges to the Procedure entity. +func (nu *NarrativeUpdate) ClearProcedure() *NarrativeUpdate { + nu.mutation.ClearProcedure() + return nu +} + +// RemoveProcedureIDs removes the "procedure" edge to Procedure entities by IDs. +func (nu *NarrativeUpdate) RemoveProcedureIDs(ids ...string) *NarrativeUpdate { + nu.mutation.RemoveProcedureIDs(ids...) + return nu +} + +// RemoveProcedure removes "procedure" edges to Procedure entities. +func (nu *NarrativeUpdate) RemoveProcedure(p ...*Procedure) *NarrativeUpdate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return nu.RemoveProcedureIDs(ids...) +} + +// ClearControlobjective clears all "controlobjective" edges to the ControlObjective entity. +func (nu *NarrativeUpdate) ClearControlobjective() *NarrativeUpdate { + nu.mutation.ClearControlobjective() + return nu +} + +// RemoveControlobjectiveIDs removes the "controlobjective" edge to ControlObjective entities by IDs. +func (nu *NarrativeUpdate) RemoveControlobjectiveIDs(ids ...string) *NarrativeUpdate { + nu.mutation.RemoveControlobjectiveIDs(ids...) + return nu +} + +// RemoveControlobjective removes "controlobjective" edges to ControlObjective entities. +func (nu *NarrativeUpdate) RemoveControlobjective(c ...*ControlObjective) *NarrativeUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return nu.RemoveControlobjectiveIDs(ids...) +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (nu *NarrativeUpdate) Save(ctx context.Context) (int, error) { + if err := nu.defaults(); err != nil { + return 0, err + } + return withHooks(ctx, nu.sqlSave, nu.mutation, nu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (nu *NarrativeUpdate) SaveX(ctx context.Context) int { + affected, err := nu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (nu *NarrativeUpdate) Exec(ctx context.Context) error { + _, err := nu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (nu *NarrativeUpdate) ExecX(ctx context.Context) { + if err := nu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (nu *NarrativeUpdate) defaults() error { + if _, ok := nu.mutation.UpdatedAt(); !ok && !nu.mutation.UpdatedAtCleared() { + if narrative.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized narrative.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := narrative.UpdateDefaultUpdatedAt() + nu.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (nu *NarrativeUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *NarrativeUpdate { + nu.modifiers = append(nu.modifiers, modifiers...) + return nu +} + +func (nu *NarrativeUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(narrative.Table, narrative.Columns, sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString)) + if ps := nu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if nu.mutation.CreatedAtCleared() { + _spec.ClearField(narrative.FieldCreatedAt, field.TypeTime) + } + if value, ok := nu.mutation.UpdatedAt(); ok { + _spec.SetField(narrative.FieldUpdatedAt, field.TypeTime, value) + } + if nu.mutation.UpdatedAtCleared() { + _spec.ClearField(narrative.FieldUpdatedAt, field.TypeTime) + } + if nu.mutation.CreatedByCleared() { + _spec.ClearField(narrative.FieldCreatedBy, field.TypeString) + } + if value, ok := nu.mutation.UpdatedBy(); ok { + _spec.SetField(narrative.FieldUpdatedBy, field.TypeString, value) + } + if nu.mutation.UpdatedByCleared() { + _spec.ClearField(narrative.FieldUpdatedBy, field.TypeString) + } + if value, ok := nu.mutation.DeletedAt(); ok { + _spec.SetField(narrative.FieldDeletedAt, field.TypeTime, value) + } + if nu.mutation.DeletedAtCleared() { + _spec.ClearField(narrative.FieldDeletedAt, field.TypeTime) + } + if value, ok := nu.mutation.DeletedBy(); ok { + _spec.SetField(narrative.FieldDeletedBy, field.TypeString, value) + } + if nu.mutation.DeletedByCleared() { + _spec.ClearField(narrative.FieldDeletedBy, field.TypeString) + } + if value, ok := nu.mutation.Tags(); ok { + _spec.SetField(narrative.FieldTags, field.TypeJSON, value) + } + if value, ok := nu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, narrative.FieldTags, value) + }) + } + if nu.mutation.TagsCleared() { + _spec.ClearField(narrative.FieldTags, field.TypeJSON) + } + if value, ok := nu.mutation.Name(); ok { + _spec.SetField(narrative.FieldName, field.TypeString, value) + } + if value, ok := nu.mutation.Description(); ok { + _spec.SetField(narrative.FieldDescription, field.TypeString, value) + } + if nu.mutation.DescriptionCleared() { + _spec.ClearField(narrative.FieldDescription, field.TypeString) + } + if value, ok := nu.mutation.Satisfies(); ok { + _spec.SetField(narrative.FieldSatisfies, field.TypeString, value) + } + if nu.mutation.SatisfiesCleared() { + _spec.ClearField(narrative.FieldSatisfies, field.TypeString) + } + if value, ok := nu.mutation.Details(); ok { + _spec.SetField(narrative.FieldDetails, field.TypeJSON, value) + } + if nu.mutation.DetailsCleared() { + _spec.ClearField(narrative.FieldDetails, field.TypeJSON) + } + if nu.mutation.PolicyCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.PolicyTable, + Columns: narrative.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.InternalPolicyNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nu.mutation.RemovedPolicyIDs(); len(nodes) > 0 && !nu.mutation.PolicyCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.PolicyTable, + Columns: narrative.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.InternalPolicyNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nu.mutation.PolicyIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.PolicyTable, + Columns: narrative.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.InternalPolicyNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if nu.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlTable, + Columns: narrative.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.ControlNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nu.mutation.RemovedControlIDs(); len(nodes) > 0 && !nu.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlTable, + Columns: narrative.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.ControlNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nu.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlTable, + Columns: narrative.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.ControlNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if nu.mutation.ProcedureCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ProcedureTable, + Columns: narrative.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.ProcedureNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nu.mutation.RemovedProcedureIDs(); len(nodes) > 0 && !nu.mutation.ProcedureCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ProcedureTable, + Columns: narrative.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.ProcedureNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nu.mutation.ProcedureIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ProcedureTable, + Columns: narrative.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.ProcedureNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if nu.mutation.ControlobjectiveCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlobjectiveTable, + Columns: narrative.ControlobjectivePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.ControlObjectiveNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nu.mutation.RemovedControlobjectiveIDs(); len(nodes) > 0 && !nu.mutation.ControlobjectiveCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlobjectiveTable, + Columns: narrative.ControlobjectivePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.ControlObjectiveNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nu.mutation.ControlobjectiveIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlobjectiveTable, + Columns: narrative.ControlobjectivePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.ControlObjectiveNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = nu.schemaConfig.Narrative + ctx = internal.NewSchemaConfigContext(ctx, nu.schemaConfig) + _spec.AddModifiers(nu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, nu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{narrative.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + nu.mutation.done = true + return n, nil +} + +// NarrativeUpdateOne is the builder for updating a single Narrative entity. +type NarrativeUpdateOne struct { + config + fields []string + hooks []Hook + mutation *NarrativeMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (nuo *NarrativeUpdateOne) SetUpdatedAt(t time.Time) *NarrativeUpdateOne { + nuo.mutation.SetUpdatedAt(t) + return nuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (nuo *NarrativeUpdateOne) ClearUpdatedAt() *NarrativeUpdateOne { + nuo.mutation.ClearUpdatedAt() + return nuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (nuo *NarrativeUpdateOne) SetUpdatedBy(s string) *NarrativeUpdateOne { + nuo.mutation.SetUpdatedBy(s) + return nuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (nuo *NarrativeUpdateOne) SetNillableUpdatedBy(s *string) *NarrativeUpdateOne { + if s != nil { + nuo.SetUpdatedBy(*s) + } + return nuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (nuo *NarrativeUpdateOne) ClearUpdatedBy() *NarrativeUpdateOne { + nuo.mutation.ClearUpdatedBy() + return nuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (nuo *NarrativeUpdateOne) SetDeletedAt(t time.Time) *NarrativeUpdateOne { + nuo.mutation.SetDeletedAt(t) + return nuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (nuo *NarrativeUpdateOne) SetNillableDeletedAt(t *time.Time) *NarrativeUpdateOne { + if t != nil { + nuo.SetDeletedAt(*t) + } + return nuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (nuo *NarrativeUpdateOne) ClearDeletedAt() *NarrativeUpdateOne { + nuo.mutation.ClearDeletedAt() + return nuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (nuo *NarrativeUpdateOne) SetDeletedBy(s string) *NarrativeUpdateOne { + nuo.mutation.SetDeletedBy(s) + return nuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (nuo *NarrativeUpdateOne) SetNillableDeletedBy(s *string) *NarrativeUpdateOne { + if s != nil { + nuo.SetDeletedBy(*s) + } + return nuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (nuo *NarrativeUpdateOne) ClearDeletedBy() *NarrativeUpdateOne { + nuo.mutation.ClearDeletedBy() + return nuo +} + +// SetTags sets the "tags" field. +func (nuo *NarrativeUpdateOne) SetTags(s []string) *NarrativeUpdateOne { + nuo.mutation.SetTags(s) + return nuo +} + +// AppendTags appends s to the "tags" field. +func (nuo *NarrativeUpdateOne) AppendTags(s []string) *NarrativeUpdateOne { + nuo.mutation.AppendTags(s) + return nuo +} + +// ClearTags clears the value of the "tags" field. +func (nuo *NarrativeUpdateOne) ClearTags() *NarrativeUpdateOne { + nuo.mutation.ClearTags() + return nuo +} + +// SetName sets the "name" field. +func (nuo *NarrativeUpdateOne) SetName(s string) *NarrativeUpdateOne { + nuo.mutation.SetName(s) + return nuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (nuo *NarrativeUpdateOne) SetNillableName(s *string) *NarrativeUpdateOne { + if s != nil { + nuo.SetName(*s) + } + return nuo +} + +// SetDescription sets the "description" field. +func (nuo *NarrativeUpdateOne) SetDescription(s string) *NarrativeUpdateOne { + nuo.mutation.SetDescription(s) + return nuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (nuo *NarrativeUpdateOne) SetNillableDescription(s *string) *NarrativeUpdateOne { + if s != nil { + nuo.SetDescription(*s) + } + return nuo +} + +// ClearDescription clears the value of the "description" field. +func (nuo *NarrativeUpdateOne) ClearDescription() *NarrativeUpdateOne { + nuo.mutation.ClearDescription() + return nuo +} + +// SetSatisfies sets the "satisfies" field. +func (nuo *NarrativeUpdateOne) SetSatisfies(s string) *NarrativeUpdateOne { + nuo.mutation.SetSatisfies(s) + return nuo +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (nuo *NarrativeUpdateOne) SetNillableSatisfies(s *string) *NarrativeUpdateOne { + if s != nil { + nuo.SetSatisfies(*s) + } + return nuo +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (nuo *NarrativeUpdateOne) ClearSatisfies() *NarrativeUpdateOne { + nuo.mutation.ClearSatisfies() + return nuo +} + +// SetDetails sets the "details" field. +func (nuo *NarrativeUpdateOne) SetDetails(m map[string]interface{}) *NarrativeUpdateOne { + nuo.mutation.SetDetails(m) + return nuo +} + +// ClearDetails clears the value of the "details" field. +func (nuo *NarrativeUpdateOne) ClearDetails() *NarrativeUpdateOne { + nuo.mutation.ClearDetails() + return nuo +} + +// AddPolicyIDs adds the "policy" edge to the InternalPolicy entity by IDs. +func (nuo *NarrativeUpdateOne) AddPolicyIDs(ids ...string) *NarrativeUpdateOne { + nuo.mutation.AddPolicyIDs(ids...) + return nuo +} + +// AddPolicy adds the "policy" edges to the InternalPolicy entity. +func (nuo *NarrativeUpdateOne) AddPolicy(i ...*InternalPolicy) *NarrativeUpdateOne { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return nuo.AddPolicyIDs(ids...) +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (nuo *NarrativeUpdateOne) AddControlIDs(ids ...string) *NarrativeUpdateOne { + nuo.mutation.AddControlIDs(ids...) + return nuo +} + +// AddControl adds the "control" edges to the Control entity. +func (nuo *NarrativeUpdateOne) AddControl(c ...*Control) *NarrativeUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return nuo.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedure" edge to the Procedure entity by IDs. +func (nuo *NarrativeUpdateOne) AddProcedureIDs(ids ...string) *NarrativeUpdateOne { + nuo.mutation.AddProcedureIDs(ids...) + return nuo +} + +// AddProcedure adds the "procedure" edges to the Procedure entity. +func (nuo *NarrativeUpdateOne) AddProcedure(p ...*Procedure) *NarrativeUpdateOne { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return nuo.AddProcedureIDs(ids...) +} + +// AddControlobjectiveIDs adds the "controlobjective" edge to the ControlObjective entity by IDs. +func (nuo *NarrativeUpdateOne) AddControlobjectiveIDs(ids ...string) *NarrativeUpdateOne { + nuo.mutation.AddControlobjectiveIDs(ids...) + return nuo +} + +// AddControlobjective adds the "controlobjective" edges to the ControlObjective entity. +func (nuo *NarrativeUpdateOne) AddControlobjective(c ...*ControlObjective) *NarrativeUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return nuo.AddControlobjectiveIDs(ids...) +} + +// Mutation returns the NarrativeMutation object of the builder. +func (nuo *NarrativeUpdateOne) Mutation() *NarrativeMutation { + return nuo.mutation +} + +// ClearPolicy clears all "policy" edges to the InternalPolicy entity. +func (nuo *NarrativeUpdateOne) ClearPolicy() *NarrativeUpdateOne { + nuo.mutation.ClearPolicy() + return nuo +} + +// RemovePolicyIDs removes the "policy" edge to InternalPolicy entities by IDs. +func (nuo *NarrativeUpdateOne) RemovePolicyIDs(ids ...string) *NarrativeUpdateOne { + nuo.mutation.RemovePolicyIDs(ids...) + return nuo +} + +// RemovePolicy removes "policy" edges to InternalPolicy entities. +func (nuo *NarrativeUpdateOne) RemovePolicy(i ...*InternalPolicy) *NarrativeUpdateOne { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return nuo.RemovePolicyIDs(ids...) +} + +// ClearControl clears all "control" edges to the Control entity. +func (nuo *NarrativeUpdateOne) ClearControl() *NarrativeUpdateOne { + nuo.mutation.ClearControl() + return nuo +} + +// RemoveControlIDs removes the "control" edge to Control entities by IDs. +func (nuo *NarrativeUpdateOne) RemoveControlIDs(ids ...string) *NarrativeUpdateOne { + nuo.mutation.RemoveControlIDs(ids...) + return nuo +} + +// RemoveControl removes "control" edges to Control entities. +func (nuo *NarrativeUpdateOne) RemoveControl(c ...*Control) *NarrativeUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return nuo.RemoveControlIDs(ids...) +} + +// ClearProcedure clears all "procedure" edges to the Procedure entity. +func (nuo *NarrativeUpdateOne) ClearProcedure() *NarrativeUpdateOne { + nuo.mutation.ClearProcedure() + return nuo +} + +// RemoveProcedureIDs removes the "procedure" edge to Procedure entities by IDs. +func (nuo *NarrativeUpdateOne) RemoveProcedureIDs(ids ...string) *NarrativeUpdateOne { + nuo.mutation.RemoveProcedureIDs(ids...) + return nuo +} + +// RemoveProcedure removes "procedure" edges to Procedure entities. +func (nuo *NarrativeUpdateOne) RemoveProcedure(p ...*Procedure) *NarrativeUpdateOne { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return nuo.RemoveProcedureIDs(ids...) +} + +// ClearControlobjective clears all "controlobjective" edges to the ControlObjective entity. +func (nuo *NarrativeUpdateOne) ClearControlobjective() *NarrativeUpdateOne { + nuo.mutation.ClearControlobjective() + return nuo +} + +// RemoveControlobjectiveIDs removes the "controlobjective" edge to ControlObjective entities by IDs. +func (nuo *NarrativeUpdateOne) RemoveControlobjectiveIDs(ids ...string) *NarrativeUpdateOne { + nuo.mutation.RemoveControlobjectiveIDs(ids...) + return nuo +} + +// RemoveControlobjective removes "controlobjective" edges to ControlObjective entities. +func (nuo *NarrativeUpdateOne) RemoveControlobjective(c ...*ControlObjective) *NarrativeUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return nuo.RemoveControlobjectiveIDs(ids...) +} + +// Where appends a list predicates to the NarrativeUpdate builder. +func (nuo *NarrativeUpdateOne) Where(ps ...predicate.Narrative) *NarrativeUpdateOne { + nuo.mutation.Where(ps...) + return nuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (nuo *NarrativeUpdateOne) Select(field string, fields ...string) *NarrativeUpdateOne { + nuo.fields = append([]string{field}, fields...) + return nuo +} + +// Save executes the query and returns the updated Narrative entity. +func (nuo *NarrativeUpdateOne) Save(ctx context.Context) (*Narrative, error) { + if err := nuo.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, nuo.sqlSave, nuo.mutation, nuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (nuo *NarrativeUpdateOne) SaveX(ctx context.Context) *Narrative { + node, err := nuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (nuo *NarrativeUpdateOne) Exec(ctx context.Context) error { + _, err := nuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (nuo *NarrativeUpdateOne) ExecX(ctx context.Context) { + if err := nuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (nuo *NarrativeUpdateOne) defaults() error { + if _, ok := nuo.mutation.UpdatedAt(); !ok && !nuo.mutation.UpdatedAtCleared() { + if narrative.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized narrative.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := narrative.UpdateDefaultUpdatedAt() + nuo.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (nuo *NarrativeUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *NarrativeUpdateOne { + nuo.modifiers = append(nuo.modifiers, modifiers...) + return nuo +} + +func (nuo *NarrativeUpdateOne) sqlSave(ctx context.Context) (_node *Narrative, err error) { + _spec := sqlgraph.NewUpdateSpec(narrative.Table, narrative.Columns, sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString)) + id, ok := nuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "Narrative.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := nuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, narrative.FieldID) + for _, f := range fields { + if !narrative.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != narrative.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := nuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if nuo.mutation.CreatedAtCleared() { + _spec.ClearField(narrative.FieldCreatedAt, field.TypeTime) + } + if value, ok := nuo.mutation.UpdatedAt(); ok { + _spec.SetField(narrative.FieldUpdatedAt, field.TypeTime, value) + } + if nuo.mutation.UpdatedAtCleared() { + _spec.ClearField(narrative.FieldUpdatedAt, field.TypeTime) + } + if nuo.mutation.CreatedByCleared() { + _spec.ClearField(narrative.FieldCreatedBy, field.TypeString) + } + if value, ok := nuo.mutation.UpdatedBy(); ok { + _spec.SetField(narrative.FieldUpdatedBy, field.TypeString, value) + } + if nuo.mutation.UpdatedByCleared() { + _spec.ClearField(narrative.FieldUpdatedBy, field.TypeString) + } + if value, ok := nuo.mutation.DeletedAt(); ok { + _spec.SetField(narrative.FieldDeletedAt, field.TypeTime, value) + } + if nuo.mutation.DeletedAtCleared() { + _spec.ClearField(narrative.FieldDeletedAt, field.TypeTime) + } + if value, ok := nuo.mutation.DeletedBy(); ok { + _spec.SetField(narrative.FieldDeletedBy, field.TypeString, value) + } + if nuo.mutation.DeletedByCleared() { + _spec.ClearField(narrative.FieldDeletedBy, field.TypeString) + } + if value, ok := nuo.mutation.Tags(); ok { + _spec.SetField(narrative.FieldTags, field.TypeJSON, value) + } + if value, ok := nuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, narrative.FieldTags, value) + }) + } + if nuo.mutation.TagsCleared() { + _spec.ClearField(narrative.FieldTags, field.TypeJSON) + } + if value, ok := nuo.mutation.Name(); ok { + _spec.SetField(narrative.FieldName, field.TypeString, value) + } + if value, ok := nuo.mutation.Description(); ok { + _spec.SetField(narrative.FieldDescription, field.TypeString, value) + } + if nuo.mutation.DescriptionCleared() { + _spec.ClearField(narrative.FieldDescription, field.TypeString) + } + if value, ok := nuo.mutation.Satisfies(); ok { + _spec.SetField(narrative.FieldSatisfies, field.TypeString, value) + } + if nuo.mutation.SatisfiesCleared() { + _spec.ClearField(narrative.FieldSatisfies, field.TypeString) + } + if value, ok := nuo.mutation.Details(); ok { + _spec.SetField(narrative.FieldDetails, field.TypeJSON, value) + } + if nuo.mutation.DetailsCleared() { + _spec.ClearField(narrative.FieldDetails, field.TypeJSON) + } + if nuo.mutation.PolicyCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.PolicyTable, + Columns: narrative.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.InternalPolicyNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nuo.mutation.RemovedPolicyIDs(); len(nodes) > 0 && !nuo.mutation.PolicyCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.PolicyTable, + Columns: narrative.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.InternalPolicyNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nuo.mutation.PolicyIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.PolicyTable, + Columns: narrative.PolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.InternalPolicyNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if nuo.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlTable, + Columns: narrative.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.ControlNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nuo.mutation.RemovedControlIDs(); len(nodes) > 0 && !nuo.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlTable, + Columns: narrative.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.ControlNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nuo.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlTable, + Columns: narrative.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.ControlNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if nuo.mutation.ProcedureCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ProcedureTable, + Columns: narrative.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.ProcedureNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nuo.mutation.RemovedProcedureIDs(); len(nodes) > 0 && !nuo.mutation.ProcedureCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ProcedureTable, + Columns: narrative.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.ProcedureNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nuo.mutation.ProcedureIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ProcedureTable, + Columns: narrative.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.ProcedureNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if nuo.mutation.ControlobjectiveCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlobjectiveTable, + Columns: narrative.ControlobjectivePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.ControlObjectiveNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nuo.mutation.RemovedControlobjectiveIDs(); len(nodes) > 0 && !nuo.mutation.ControlobjectiveCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlobjectiveTable, + Columns: narrative.ControlobjectivePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.ControlObjectiveNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nuo.mutation.ControlobjectiveIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: narrative.ControlobjectiveTable, + Columns: narrative.ControlobjectivePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.ControlObjectiveNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = nuo.schemaConfig.Narrative + ctx = internal.NewSchemaConfigContext(ctx, nuo.schemaConfig) + _spec.AddModifiers(nuo.modifiers...) + _node = &Narrative{config: nuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, nuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{narrative.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + nuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/narrativehistory.go b/internal/ent/generated/narrativehistory.go new file mode 100644 index 00000000..adf3365e --- /dev/null +++ b/internal/ent/generated/narrativehistory.go @@ -0,0 +1,268 @@ +// 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/internal/ent/generated/narrativehistory" + "github.com/theopenlane/entx/history" +) + +// NarrativeHistory is the model entity for the NarrativeHistory schema. +type NarrativeHistory 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the narrative + Name string `json:"name,omitempty"` + // the description of the narrative + Description string `json:"description,omitempty"` + // which controls are satisfied by the narrative + Satisfies string `json:"satisfies,omitempty"` + // json data for the narrative document + Details map[string]interface{} `json:"details,omitempty"` + selectValues sql.SelectValues +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*NarrativeHistory) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case narrativehistory.FieldTags, narrativehistory.FieldDetails: + values[i] = new([]byte) + case narrativehistory.FieldOperation: + values[i] = new(history.OpType) + case narrativehistory.FieldID, narrativehistory.FieldRef, narrativehistory.FieldCreatedBy, narrativehistory.FieldUpdatedBy, narrativehistory.FieldDeletedBy, narrativehistory.FieldMappingID, narrativehistory.FieldName, narrativehistory.FieldDescription, narrativehistory.FieldSatisfies: + values[i] = new(sql.NullString) + case narrativehistory.FieldHistoryTime, narrativehistory.FieldCreatedAt, narrativehistory.FieldUpdatedAt, narrativehistory.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 NarrativeHistory fields. +func (nh *NarrativeHistory) 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 narrativehistory.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + nh.ID = value.String + } + case narrativehistory.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 { + nh.HistoryTime = value.Time + } + case narrativehistory.FieldRef: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field ref", values[i]) + } else if value.Valid { + nh.Ref = value.String + } + case narrativehistory.FieldOperation: + if value, ok := values[i].(*history.OpType); !ok { + return fmt.Errorf("unexpected type %T for field operation", values[i]) + } else if value != nil { + nh.Operation = *value + } + case narrativehistory.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 { + nh.CreatedAt = value.Time + } + case narrativehistory.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 { + nh.UpdatedAt = value.Time + } + case narrativehistory.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 { + nh.CreatedBy = value.String + } + case narrativehistory.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 { + nh.UpdatedBy = value.String + } + case narrativehistory.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 { + nh.DeletedAt = value.Time + } + case narrativehistory.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 { + nh.DeletedBy = value.String + } + case narrativehistory.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + nh.MappingID = value.String + } + case narrativehistory.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, &nh.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case narrativehistory.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + nh.Name = value.String + } + case narrativehistory.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + nh.Description = value.String + } + case narrativehistory.FieldSatisfies: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field satisfies", values[i]) + } else if value.Valid { + nh.Satisfies = value.String + } + case narrativehistory.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &nh.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + nh.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the NarrativeHistory. +// This includes values selected through modifiers, order, etc. +func (nh *NarrativeHistory) Value(name string) (ent.Value, error) { + return nh.selectValues.Get(name) +} + +// Update returns a builder for updating this NarrativeHistory. +// Note that you need to call NarrativeHistory.Unwrap() before calling this method if this NarrativeHistory +// was returned from a transaction, and the transaction was committed or rolled back. +func (nh *NarrativeHistory) Update() *NarrativeHistoryUpdateOne { + return NewNarrativeHistoryClient(nh.config).UpdateOne(nh) +} + +// Unwrap unwraps the NarrativeHistory 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 (nh *NarrativeHistory) Unwrap() *NarrativeHistory { + _tx, ok := nh.config.driver.(*txDriver) + if !ok { + panic("generated: NarrativeHistory is not a transactional entity") + } + nh.config.driver = _tx.drv + return nh +} + +// String implements the fmt.Stringer. +func (nh *NarrativeHistory) String() string { + var builder strings.Builder + builder.WriteString("NarrativeHistory(") + builder.WriteString(fmt.Sprintf("id=%v, ", nh.ID)) + builder.WriteString("history_time=") + builder.WriteString(nh.HistoryTime.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("ref=") + builder.WriteString(nh.Ref) + builder.WriteString(", ") + builder.WriteString("operation=") + builder.WriteString(fmt.Sprintf("%v", nh.Operation)) + builder.WriteString(", ") + builder.WriteString("created_at=") + builder.WriteString(nh.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(nh.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(nh.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(nh.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(nh.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(nh.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(nh.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", nh.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(nh.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(nh.Description) + builder.WriteString(", ") + builder.WriteString("satisfies=") + builder.WriteString(nh.Satisfies) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", nh.Details)) + builder.WriteByte(')') + return builder.String() +} + +// NarrativeHistories is a parsable slice of NarrativeHistory. +type NarrativeHistories []*NarrativeHistory diff --git a/internal/ent/generated/narrativehistory/narrativehistory.go b/internal/ent/generated/narrativehistory/narrativehistory.go new file mode 100644 index 00000000..d7ac9c33 --- /dev/null +++ b/internal/ent/generated/narrativehistory/narrativehistory.go @@ -0,0 +1,188 @@ +// Code generated by ent, DO NOT EDIT. + +package narrativehistory + +import ( + "fmt" + "time" + + "entgo.io/ent/dialect/sql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/entx/history" +) + +const ( + // Label holds the string label denoting the narrativehistory type in the database. + Label = "narrative_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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldSatisfies holds the string denoting the satisfies field in the database. + FieldSatisfies = "satisfies" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // Table holds the table name of the narrativehistory in the database. + Table = "narrative_history" +) + +// Columns holds all SQL columns for narrativehistory fields. +var Columns = []string{ + FieldID, + FieldHistoryTime, + FieldRef, + FieldOperation, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldSatisfies, + FieldDetails, +} + +// 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 +} + +var ( + // 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 + // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. + UpdateDefaultUpdatedAt func() time.Time + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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("narrativehistory: invalid enum value for operation field: %q", o) + } +} + +// OrderOption defines the ordering options for the NarrativeHistory 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// BySatisfies orders the results by the satisfies field. +func BySatisfies(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSatisfies, 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/generated/narrativehistory/where.go b/internal/ent/generated/narrativehistory/where.go new file mode 100644 index 00000000..2327fd3d --- /dev/null +++ b/internal/ent/generated/narrativehistory/where.go @@ -0,0 +1,951 @@ +// Code generated by ent, DO NOT EDIT. + +package narrativehistory + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/entx/history" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(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.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// Ref applies equality check predicate on the "ref" field. It's identical to RefEQ. +func Ref(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(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.NarrativeHistory { + return predicate.NarrativeHistory(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.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldDescription, v)) +} + +// Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ. +func Satisfies(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldSatisfies, v)) +} + +// HistoryTimeEQ applies the EQ predicate on the "history_time" field. +func HistoryTimeEQ(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// HistoryTimeNEQ applies the NEQ predicate on the "history_time" field. +func HistoryTimeNEQ(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldHistoryTime, v)) +} + +// HistoryTimeIn applies the In predicate on the "history_time" field. +func HistoryTimeIn(vs ...time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeNotIn applies the NotIn predicate on the "history_time" field. +func HistoryTimeNotIn(vs ...time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeGT applies the GT predicate on the "history_time" field. +func HistoryTimeGT(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldHistoryTime, v)) +} + +// HistoryTimeGTE applies the GTE predicate on the "history_time" field. +func HistoryTimeGTE(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldHistoryTime, v)) +} + +// HistoryTimeLT applies the LT predicate on the "history_time" field. +func HistoryTimeLT(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldHistoryTime, v)) +} + +// HistoryTimeLTE applies the LTE predicate on the "history_time" field. +func HistoryTimeLTE(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldHistoryTime, v)) +} + +// RefEQ applies the EQ predicate on the "ref" field. +func RefEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldRef, v)) +} + +// RefNEQ applies the NEQ predicate on the "ref" field. +func RefNEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldRef, v)) +} + +// RefIn applies the In predicate on the "ref" field. +func RefIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldRef, vs...)) +} + +// RefNotIn applies the NotIn predicate on the "ref" field. +func RefNotIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldRef, vs...)) +} + +// RefGT applies the GT predicate on the "ref" field. +func RefGT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldRef, v)) +} + +// RefGTE applies the GTE predicate on the "ref" field. +func RefGTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldRef, v)) +} + +// RefLT applies the LT predicate on the "ref" field. +func RefLT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldRef, v)) +} + +// RefLTE applies the LTE predicate on the "ref" field. +func RefLTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldRef, v)) +} + +// RefContains applies the Contains predicate on the "ref" field. +func RefContains(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContains(FieldRef, v)) +} + +// RefHasPrefix applies the HasPrefix predicate on the "ref" field. +func RefHasPrefix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasPrefix(FieldRef, v)) +} + +// RefHasSuffix applies the HasSuffix predicate on the "ref" field. +func RefHasSuffix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasSuffix(FieldRef, v)) +} + +// RefIsNil applies the IsNil predicate on the "ref" field. +func RefIsNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIsNull(FieldRef)) +} + +// RefNotNil applies the NotNil predicate on the "ref" field. +func RefNotNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotNull(FieldRef)) +} + +// RefEqualFold applies the EqualFold predicate on the "ref" field. +func RefEqualFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEqualFold(FieldRef, v)) +} + +// RefContainsFold applies the ContainsFold predicate on the "ref" field. +func RefContainsFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContainsFold(FieldRef, v)) +} + +// OperationEQ applies the EQ predicate on the "operation" field. +func OperationEQ(v history.OpType) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldOperation, v)) +} + +// OperationNEQ applies the NEQ predicate on the "operation" field. +func OperationNEQ(v history.OpType) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldOperation, v)) +} + +// OperationIn applies the In predicate on the "operation" field. +func OperationIn(vs ...history.OpType) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldOperation, vs...)) +} + +// OperationNotIn applies the NotIn predicate on the "operation" field. +func OperationNotIn(vs ...history.OpType) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldOperation, vs...)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContainsFold(FieldDescription, v)) +} + +// SatisfiesEQ applies the EQ predicate on the "satisfies" field. +func SatisfiesEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEQ(FieldSatisfies, v)) +} + +// SatisfiesNEQ applies the NEQ predicate on the "satisfies" field. +func SatisfiesNEQ(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNEQ(FieldSatisfies, v)) +} + +// SatisfiesIn applies the In predicate on the "satisfies" field. +func SatisfiesIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIn(FieldSatisfies, vs...)) +} + +// SatisfiesNotIn applies the NotIn predicate on the "satisfies" field. +func SatisfiesNotIn(vs ...string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotIn(FieldSatisfies, vs...)) +} + +// SatisfiesGT applies the GT predicate on the "satisfies" field. +func SatisfiesGT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGT(FieldSatisfies, v)) +} + +// SatisfiesGTE applies the GTE predicate on the "satisfies" field. +func SatisfiesGTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldGTE(FieldSatisfies, v)) +} + +// SatisfiesLT applies the LT predicate on the "satisfies" field. +func SatisfiesLT(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLT(FieldSatisfies, v)) +} + +// SatisfiesLTE applies the LTE predicate on the "satisfies" field. +func SatisfiesLTE(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldLTE(FieldSatisfies, v)) +} + +// SatisfiesContains applies the Contains predicate on the "satisfies" field. +func SatisfiesContains(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContains(FieldSatisfies, v)) +} + +// SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field. +func SatisfiesHasPrefix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasPrefix(FieldSatisfies, v)) +} + +// SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field. +func SatisfiesHasSuffix(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldHasSuffix(FieldSatisfies, v)) +} + +// SatisfiesIsNil applies the IsNil predicate on the "satisfies" field. +func SatisfiesIsNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIsNull(FieldSatisfies)) +} + +// SatisfiesNotNil applies the NotNil predicate on the "satisfies" field. +func SatisfiesNotNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotNull(FieldSatisfies)) +} + +// SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field. +func SatisfiesEqualFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldEqualFold(FieldSatisfies, v)) +} + +// SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field. +func SatisfiesContainsFold(v string) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldContainsFold(FieldSatisfies, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.FieldNotNull(FieldDetails)) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.NarrativeHistory) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.NarrativeHistory) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.NarrativeHistory) predicate.NarrativeHistory { + return predicate.NarrativeHistory(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/narrativehistory_create.go b/internal/ent/generated/narrativehistory_create.go new file mode 100644 index 00000000..082154d8 --- /dev/null +++ b/internal/ent/generated/narrativehistory_create.go @@ -0,0 +1,477 @@ +// 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/internal/ent/generated/narrativehistory" + "github.com/theopenlane/entx/history" +) + +// NarrativeHistoryCreate is the builder for creating a NarrativeHistory entity. +type NarrativeHistoryCreate struct { + config + mutation *NarrativeHistoryMutation + hooks []Hook +} + +// SetHistoryTime sets the "history_time" field. +func (nhc *NarrativeHistoryCreate) SetHistoryTime(t time.Time) *NarrativeHistoryCreate { + nhc.mutation.SetHistoryTime(t) + return nhc +} + +// SetNillableHistoryTime sets the "history_time" field if the given value is not nil. +func (nhc *NarrativeHistoryCreate) SetNillableHistoryTime(t *time.Time) *NarrativeHistoryCreate { + if t != nil { + nhc.SetHistoryTime(*t) + } + return nhc +} + +// SetRef sets the "ref" field. +func (nhc *NarrativeHistoryCreate) SetRef(s string) *NarrativeHistoryCreate { + nhc.mutation.SetRef(s) + return nhc +} + +// SetNillableRef sets the "ref" field if the given value is not nil. +func (nhc *NarrativeHistoryCreate) SetNillableRef(s *string) *NarrativeHistoryCreate { + if s != nil { + nhc.SetRef(*s) + } + return nhc +} + +// SetOperation sets the "operation" field. +func (nhc *NarrativeHistoryCreate) SetOperation(ht history.OpType) *NarrativeHistoryCreate { + nhc.mutation.SetOperation(ht) + return nhc +} + +// SetCreatedAt sets the "created_at" field. +func (nhc *NarrativeHistoryCreate) SetCreatedAt(t time.Time) *NarrativeHistoryCreate { + nhc.mutation.SetCreatedAt(t) + return nhc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (nhc *NarrativeHistoryCreate) SetNillableCreatedAt(t *time.Time) *NarrativeHistoryCreate { + if t != nil { + nhc.SetCreatedAt(*t) + } + return nhc +} + +// SetUpdatedAt sets the "updated_at" field. +func (nhc *NarrativeHistoryCreate) SetUpdatedAt(t time.Time) *NarrativeHistoryCreate { + nhc.mutation.SetUpdatedAt(t) + return nhc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (nhc *NarrativeHistoryCreate) SetNillableUpdatedAt(t *time.Time) *NarrativeHistoryCreate { + if t != nil { + nhc.SetUpdatedAt(*t) + } + return nhc +} + +// SetCreatedBy sets the "created_by" field. +func (nhc *NarrativeHistoryCreate) SetCreatedBy(s string) *NarrativeHistoryCreate { + nhc.mutation.SetCreatedBy(s) + return nhc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (nhc *NarrativeHistoryCreate) SetNillableCreatedBy(s *string) *NarrativeHistoryCreate { + if s != nil { + nhc.SetCreatedBy(*s) + } + return nhc +} + +// SetUpdatedBy sets the "updated_by" field. +func (nhc *NarrativeHistoryCreate) SetUpdatedBy(s string) *NarrativeHistoryCreate { + nhc.mutation.SetUpdatedBy(s) + return nhc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (nhc *NarrativeHistoryCreate) SetNillableUpdatedBy(s *string) *NarrativeHistoryCreate { + if s != nil { + nhc.SetUpdatedBy(*s) + } + return nhc +} + +// SetDeletedAt sets the "deleted_at" field. +func (nhc *NarrativeHistoryCreate) SetDeletedAt(t time.Time) *NarrativeHistoryCreate { + nhc.mutation.SetDeletedAt(t) + return nhc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (nhc *NarrativeHistoryCreate) SetNillableDeletedAt(t *time.Time) *NarrativeHistoryCreate { + if t != nil { + nhc.SetDeletedAt(*t) + } + return nhc +} + +// SetDeletedBy sets the "deleted_by" field. +func (nhc *NarrativeHistoryCreate) SetDeletedBy(s string) *NarrativeHistoryCreate { + nhc.mutation.SetDeletedBy(s) + return nhc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (nhc *NarrativeHistoryCreate) SetNillableDeletedBy(s *string) *NarrativeHistoryCreate { + if s != nil { + nhc.SetDeletedBy(*s) + } + return nhc +} + +// SetMappingID sets the "mapping_id" field. +func (nhc *NarrativeHistoryCreate) SetMappingID(s string) *NarrativeHistoryCreate { + nhc.mutation.SetMappingID(s) + return nhc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (nhc *NarrativeHistoryCreate) SetNillableMappingID(s *string) *NarrativeHistoryCreate { + if s != nil { + nhc.SetMappingID(*s) + } + return nhc +} + +// SetTags sets the "tags" field. +func (nhc *NarrativeHistoryCreate) SetTags(s []string) *NarrativeHistoryCreate { + nhc.mutation.SetTags(s) + return nhc +} + +// SetName sets the "name" field. +func (nhc *NarrativeHistoryCreate) SetName(s string) *NarrativeHistoryCreate { + nhc.mutation.SetName(s) + return nhc +} + +// SetDescription sets the "description" field. +func (nhc *NarrativeHistoryCreate) SetDescription(s string) *NarrativeHistoryCreate { + nhc.mutation.SetDescription(s) + return nhc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (nhc *NarrativeHistoryCreate) SetNillableDescription(s *string) *NarrativeHistoryCreate { + if s != nil { + nhc.SetDescription(*s) + } + return nhc +} + +// SetSatisfies sets the "satisfies" field. +func (nhc *NarrativeHistoryCreate) SetSatisfies(s string) *NarrativeHistoryCreate { + nhc.mutation.SetSatisfies(s) + return nhc +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (nhc *NarrativeHistoryCreate) SetNillableSatisfies(s *string) *NarrativeHistoryCreate { + if s != nil { + nhc.SetSatisfies(*s) + } + return nhc +} + +// SetDetails sets the "details" field. +func (nhc *NarrativeHistoryCreate) SetDetails(m map[string]interface{}) *NarrativeHistoryCreate { + nhc.mutation.SetDetails(m) + return nhc +} + +// SetID sets the "id" field. +func (nhc *NarrativeHistoryCreate) SetID(s string) *NarrativeHistoryCreate { + nhc.mutation.SetID(s) + return nhc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (nhc *NarrativeHistoryCreate) SetNillableID(s *string) *NarrativeHistoryCreate { + if s != nil { + nhc.SetID(*s) + } + return nhc +} + +// Mutation returns the NarrativeHistoryMutation object of the builder. +func (nhc *NarrativeHistoryCreate) Mutation() *NarrativeHistoryMutation { + return nhc.mutation +} + +// Save creates the NarrativeHistory in the database. +func (nhc *NarrativeHistoryCreate) Save(ctx context.Context) (*NarrativeHistory, error) { + nhc.defaults() + return withHooks(ctx, nhc.sqlSave, nhc.mutation, nhc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (nhc *NarrativeHistoryCreate) SaveX(ctx context.Context) *NarrativeHistory { + v, err := nhc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (nhc *NarrativeHistoryCreate) Exec(ctx context.Context) error { + _, err := nhc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (nhc *NarrativeHistoryCreate) ExecX(ctx context.Context) { + if err := nhc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (nhc *NarrativeHistoryCreate) defaults() { + if _, ok := nhc.mutation.HistoryTime(); !ok { + v := narrativehistory.DefaultHistoryTime() + nhc.mutation.SetHistoryTime(v) + } + if _, ok := nhc.mutation.CreatedAt(); !ok { + v := narrativehistory.DefaultCreatedAt() + nhc.mutation.SetCreatedAt(v) + } + if _, ok := nhc.mutation.UpdatedAt(); !ok { + v := narrativehistory.DefaultUpdatedAt() + nhc.mutation.SetUpdatedAt(v) + } + if _, ok := nhc.mutation.MappingID(); !ok { + v := narrativehistory.DefaultMappingID() + nhc.mutation.SetMappingID(v) + } + if _, ok := nhc.mutation.Tags(); !ok { + v := narrativehistory.DefaultTags + nhc.mutation.SetTags(v) + } + if _, ok := nhc.mutation.ID(); !ok { + v := narrativehistory.DefaultID() + nhc.mutation.SetID(v) + } +} + +// check runs all checks and user-defined validators on the builder. +func (nhc *NarrativeHistoryCreate) check() error { + if _, ok := nhc.mutation.HistoryTime(); !ok { + return &ValidationError{Name: "history_time", err: errors.New(`generated: missing required field "NarrativeHistory.history_time"`)} + } + if _, ok := nhc.mutation.Operation(); !ok { + return &ValidationError{Name: "operation", err: errors.New(`generated: missing required field "NarrativeHistory.operation"`)} + } + if v, ok := nhc.mutation.Operation(); ok { + if err := narrativehistory.OperationValidator(v); err != nil { + return &ValidationError{Name: "operation", err: fmt.Errorf(`generated: validator failed for field "NarrativeHistory.operation": %w`, err)} + } + } + if _, ok := nhc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "NarrativeHistory.mapping_id"`)} + } + if _, ok := nhc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "NarrativeHistory.name"`)} + } + return nil +} + +func (nhc *NarrativeHistoryCreate) sqlSave(ctx context.Context) (*NarrativeHistory, error) { + if err := nhc.check(); err != nil { + return nil, err + } + _node, _spec := nhc.createSpec() + if err := sqlgraph.CreateNode(ctx, nhc.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 NarrativeHistory.ID type: %T", _spec.ID.Value) + } + } + nhc.mutation.id = &_node.ID + nhc.mutation.done = true + return _node, nil +} + +func (nhc *NarrativeHistoryCreate) createSpec() (*NarrativeHistory, *sqlgraph.CreateSpec) { + var ( + _node = &NarrativeHistory{config: nhc.config} + _spec = sqlgraph.NewCreateSpec(narrativehistory.Table, sqlgraph.NewFieldSpec(narrativehistory.FieldID, field.TypeString)) + ) + _spec.Schema = nhc.schemaConfig.NarrativeHistory + if id, ok := nhc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := nhc.mutation.HistoryTime(); ok { + _spec.SetField(narrativehistory.FieldHistoryTime, field.TypeTime, value) + _node.HistoryTime = value + } + if value, ok := nhc.mutation.Ref(); ok { + _spec.SetField(narrativehistory.FieldRef, field.TypeString, value) + _node.Ref = value + } + if value, ok := nhc.mutation.Operation(); ok { + _spec.SetField(narrativehistory.FieldOperation, field.TypeEnum, value) + _node.Operation = value + } + if value, ok := nhc.mutation.CreatedAt(); ok { + _spec.SetField(narrativehistory.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := nhc.mutation.UpdatedAt(); ok { + _spec.SetField(narrativehistory.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := nhc.mutation.CreatedBy(); ok { + _spec.SetField(narrativehistory.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := nhc.mutation.UpdatedBy(); ok { + _spec.SetField(narrativehistory.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := nhc.mutation.DeletedAt(); ok { + _spec.SetField(narrativehistory.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := nhc.mutation.DeletedBy(); ok { + _spec.SetField(narrativehistory.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := nhc.mutation.MappingID(); ok { + _spec.SetField(narrativehistory.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := nhc.mutation.Tags(); ok { + _spec.SetField(narrativehistory.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := nhc.mutation.Name(); ok { + _spec.SetField(narrativehistory.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := nhc.mutation.Description(); ok { + _spec.SetField(narrativehistory.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := nhc.mutation.Satisfies(); ok { + _spec.SetField(narrativehistory.FieldSatisfies, field.TypeString, value) + _node.Satisfies = value + } + if value, ok := nhc.mutation.Details(); ok { + _spec.SetField(narrativehistory.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + return _node, _spec +} + +// NarrativeHistoryCreateBulk is the builder for creating many NarrativeHistory entities in bulk. +type NarrativeHistoryCreateBulk struct { + config + err error + builders []*NarrativeHistoryCreate +} + +// Save creates the NarrativeHistory entities in the database. +func (nhcb *NarrativeHistoryCreateBulk) Save(ctx context.Context) ([]*NarrativeHistory, error) { + if nhcb.err != nil { + return nil, nhcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(nhcb.builders)) + nodes := make([]*NarrativeHistory, len(nhcb.builders)) + mutators := make([]Mutator, len(nhcb.builders)) + for i := range nhcb.builders { + func(i int, root context.Context) { + builder := nhcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*NarrativeHistoryMutation) + 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, nhcb.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, nhcb.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, nhcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (nhcb *NarrativeHistoryCreateBulk) SaveX(ctx context.Context) []*NarrativeHistory { + v, err := nhcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (nhcb *NarrativeHistoryCreateBulk) Exec(ctx context.Context) error { + _, err := nhcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (nhcb *NarrativeHistoryCreateBulk) ExecX(ctx context.Context) { + if err := nhcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/narrativehistory_delete.go b/internal/ent/generated/narrativehistory_delete.go new file mode 100644 index 00000000..33828562 --- /dev/null +++ b/internal/ent/generated/narrativehistory_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" +) + +// NarrativeHistoryDelete is the builder for deleting a NarrativeHistory entity. +type NarrativeHistoryDelete struct { + config + hooks []Hook + mutation *NarrativeHistoryMutation +} + +// Where appends a list predicates to the NarrativeHistoryDelete builder. +func (nhd *NarrativeHistoryDelete) Where(ps ...predicate.NarrativeHistory) *NarrativeHistoryDelete { + nhd.mutation.Where(ps...) + return nhd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (nhd *NarrativeHistoryDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, nhd.sqlExec, nhd.mutation, nhd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (nhd *NarrativeHistoryDelete) ExecX(ctx context.Context) int { + n, err := nhd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (nhd *NarrativeHistoryDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(narrativehistory.Table, sqlgraph.NewFieldSpec(narrativehistory.FieldID, field.TypeString)) + _spec.Node.Schema = nhd.schemaConfig.NarrativeHistory + ctx = internal.NewSchemaConfigContext(ctx, nhd.schemaConfig) + if ps := nhd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, nhd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + nhd.mutation.done = true + return affected, err +} + +// NarrativeHistoryDeleteOne is the builder for deleting a single NarrativeHistory entity. +type NarrativeHistoryDeleteOne struct { + nhd *NarrativeHistoryDelete +} + +// Where appends a list predicates to the NarrativeHistoryDelete builder. +func (nhdo *NarrativeHistoryDeleteOne) Where(ps ...predicate.NarrativeHistory) *NarrativeHistoryDeleteOne { + nhdo.nhd.mutation.Where(ps...) + return nhdo +} + +// Exec executes the deletion query. +func (nhdo *NarrativeHistoryDeleteOne) Exec(ctx context.Context) error { + n, err := nhdo.nhd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{narrativehistory.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (nhdo *NarrativeHistoryDeleteOne) ExecX(ctx context.Context) { + if err := nhdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/narrativehistory_query.go b/internal/ent/generated/narrativehistory_query.go new file mode 100644 index 00000000..1d89e103 --- /dev/null +++ b/internal/ent/generated/narrativehistory_query.go @@ -0,0 +1,565 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "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/internal/ent/generated/narrativehistory" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// NarrativeHistoryQuery is the builder for querying NarrativeHistory entities. +type NarrativeHistoryQuery struct { + config + ctx *QueryContext + order []narrativehistory.OrderOption + inters []Interceptor + predicates []predicate.NarrativeHistory + loadTotal []func(context.Context, []*NarrativeHistory) 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 NarrativeHistoryQuery builder. +func (nhq *NarrativeHistoryQuery) Where(ps ...predicate.NarrativeHistory) *NarrativeHistoryQuery { + nhq.predicates = append(nhq.predicates, ps...) + return nhq +} + +// Limit the number of records to be returned by this query. +func (nhq *NarrativeHistoryQuery) Limit(limit int) *NarrativeHistoryQuery { + nhq.ctx.Limit = &limit + return nhq +} + +// Offset to start from. +func (nhq *NarrativeHistoryQuery) Offset(offset int) *NarrativeHistoryQuery { + nhq.ctx.Offset = &offset + return nhq +} + +// 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 (nhq *NarrativeHistoryQuery) Unique(unique bool) *NarrativeHistoryQuery { + nhq.ctx.Unique = &unique + return nhq +} + +// Order specifies how the records should be ordered. +func (nhq *NarrativeHistoryQuery) Order(o ...narrativehistory.OrderOption) *NarrativeHistoryQuery { + nhq.order = append(nhq.order, o...) + return nhq +} + +// First returns the first NarrativeHistory entity from the query. +// Returns a *NotFoundError when no NarrativeHistory was found. +func (nhq *NarrativeHistoryQuery) First(ctx context.Context) (*NarrativeHistory, error) { + nodes, err := nhq.Limit(1).All(setContextOp(ctx, nhq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{narrativehistory.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (nhq *NarrativeHistoryQuery) FirstX(ctx context.Context) *NarrativeHistory { + node, err := nhq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first NarrativeHistory ID from the query. +// Returns a *NotFoundError when no NarrativeHistory ID was found. +func (nhq *NarrativeHistoryQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = nhq.Limit(1).IDs(setContextOp(ctx, nhq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{narrativehistory.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (nhq *NarrativeHistoryQuery) FirstIDX(ctx context.Context) string { + id, err := nhq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single NarrativeHistory entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one NarrativeHistory entity is found. +// Returns a *NotFoundError when no NarrativeHistory entities are found. +func (nhq *NarrativeHistoryQuery) Only(ctx context.Context) (*NarrativeHistory, error) { + nodes, err := nhq.Limit(2).All(setContextOp(ctx, nhq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{narrativehistory.Label} + default: + return nil, &NotSingularError{narrativehistory.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (nhq *NarrativeHistoryQuery) OnlyX(ctx context.Context) *NarrativeHistory { + node, err := nhq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only NarrativeHistory ID in the query. +// Returns a *NotSingularError when more than one NarrativeHistory ID is found. +// Returns a *NotFoundError when no entities are found. +func (nhq *NarrativeHistoryQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = nhq.Limit(2).IDs(setContextOp(ctx, nhq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{narrativehistory.Label} + default: + err = &NotSingularError{narrativehistory.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (nhq *NarrativeHistoryQuery) OnlyIDX(ctx context.Context) string { + id, err := nhq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of NarrativeHistories. +func (nhq *NarrativeHistoryQuery) All(ctx context.Context) ([]*NarrativeHistory, error) { + ctx = setContextOp(ctx, nhq.ctx, ent.OpQueryAll) + if err := nhq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*NarrativeHistory, *NarrativeHistoryQuery]() + return withInterceptors[[]*NarrativeHistory](ctx, nhq, qr, nhq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (nhq *NarrativeHistoryQuery) AllX(ctx context.Context) []*NarrativeHistory { + nodes, err := nhq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of NarrativeHistory IDs. +func (nhq *NarrativeHistoryQuery) IDs(ctx context.Context) (ids []string, err error) { + if nhq.ctx.Unique == nil && nhq.path != nil { + nhq.Unique(true) + } + ctx = setContextOp(ctx, nhq.ctx, ent.OpQueryIDs) + if err = nhq.Select(narrativehistory.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (nhq *NarrativeHistoryQuery) IDsX(ctx context.Context) []string { + ids, err := nhq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (nhq *NarrativeHistoryQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, nhq.ctx, ent.OpQueryCount) + if err := nhq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, nhq, querierCount[*NarrativeHistoryQuery](), nhq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (nhq *NarrativeHistoryQuery) CountX(ctx context.Context) int { + count, err := nhq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (nhq *NarrativeHistoryQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, nhq.ctx, ent.OpQueryExist) + switch _, err := nhq.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 (nhq *NarrativeHistoryQuery) ExistX(ctx context.Context) bool { + exist, err := nhq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the NarrativeHistoryQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (nhq *NarrativeHistoryQuery) Clone() *NarrativeHistoryQuery { + if nhq == nil { + return nil + } + return &NarrativeHistoryQuery{ + config: nhq.config, + ctx: nhq.ctx.Clone(), + order: append([]narrativehistory.OrderOption{}, nhq.order...), + inters: append([]Interceptor{}, nhq.inters...), + predicates: append([]predicate.NarrativeHistory{}, nhq.predicates...), + // clone intermediate query. + sql: nhq.sql.Clone(), + path: nhq.path, + modifiers: append([]func(*sql.Selector){}, nhq.modifiers...), + } +} + +// 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.NarrativeHistory.Query(). +// GroupBy(narrativehistory.FieldHistoryTime). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (nhq *NarrativeHistoryQuery) GroupBy(field string, fields ...string) *NarrativeHistoryGroupBy { + nhq.ctx.Fields = append([]string{field}, fields...) + grbuild := &NarrativeHistoryGroupBy{build: nhq} + grbuild.flds = &nhq.ctx.Fields + grbuild.label = narrativehistory.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.NarrativeHistory.Query(). +// Select(narrativehistory.FieldHistoryTime). +// Scan(ctx, &v) +func (nhq *NarrativeHistoryQuery) Select(fields ...string) *NarrativeHistorySelect { + nhq.ctx.Fields = append(nhq.ctx.Fields, fields...) + sbuild := &NarrativeHistorySelect{NarrativeHistoryQuery: nhq} + sbuild.label = narrativehistory.Label + sbuild.flds, sbuild.scan = &nhq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a NarrativeHistorySelect configured with the given aggregations. +func (nhq *NarrativeHistoryQuery) Aggregate(fns ...AggregateFunc) *NarrativeHistorySelect { + return nhq.Select().Aggregate(fns...) +} + +func (nhq *NarrativeHistoryQuery) prepareQuery(ctx context.Context) error { + for _, inter := range nhq.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, nhq); err != nil { + return err + } + } + } + for _, f := range nhq.ctx.Fields { + if !narrativehistory.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if nhq.path != nil { + prev, err := nhq.path(ctx) + if err != nil { + return err + } + nhq.sql = prev + } + return nil +} + +func (nhq *NarrativeHistoryQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*NarrativeHistory, error) { + var ( + nodes = []*NarrativeHistory{} + _spec = nhq.querySpec() + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*NarrativeHistory).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &NarrativeHistory{config: nhq.config} + nodes = append(nodes, node) + return node.assignValues(columns, values) + } + _spec.Node.Schema = nhq.schemaConfig.NarrativeHistory + ctx = internal.NewSchemaConfigContext(ctx, nhq.schemaConfig) + if len(nhq.modifiers) > 0 { + _spec.Modifiers = nhq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, nhq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + for i := range nhq.loadTotal { + if err := nhq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (nhq *NarrativeHistoryQuery) sqlCount(ctx context.Context) (int, error) { + _spec := nhq.querySpec() + _spec.Node.Schema = nhq.schemaConfig.NarrativeHistory + ctx = internal.NewSchemaConfigContext(ctx, nhq.schemaConfig) + if len(nhq.modifiers) > 0 { + _spec.Modifiers = nhq.modifiers + } + _spec.Node.Columns = nhq.ctx.Fields + if len(nhq.ctx.Fields) > 0 { + _spec.Unique = nhq.ctx.Unique != nil && *nhq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, nhq.driver, _spec) +} + +func (nhq *NarrativeHistoryQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(narrativehistory.Table, narrativehistory.Columns, sqlgraph.NewFieldSpec(narrativehistory.FieldID, field.TypeString)) + _spec.From = nhq.sql + if unique := nhq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if nhq.path != nil { + _spec.Unique = true + } + if fields := nhq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, narrativehistory.FieldID) + for i := range fields { + if fields[i] != narrativehistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := nhq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := nhq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := nhq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := nhq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (nhq *NarrativeHistoryQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(nhq.driver.Dialect()) + t1 := builder.Table(narrativehistory.Table) + columns := nhq.ctx.Fields + if len(columns) == 0 { + columns = narrativehistory.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if nhq.sql != nil { + selector = nhq.sql + selector.Select(selector.Columns(columns...)...) + } + if nhq.ctx.Unique != nil && *nhq.ctx.Unique { + selector.Distinct() + } + t1.Schema(nhq.schemaConfig.NarrativeHistory) + ctx = internal.NewSchemaConfigContext(ctx, nhq.schemaConfig) + selector.WithContext(ctx) + for _, m := range nhq.modifiers { + m(selector) + } + for _, p := range nhq.predicates { + p(selector) + } + for _, p := range nhq.order { + p(selector) + } + if offset := nhq.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 := nhq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (nhq *NarrativeHistoryQuery) Modify(modifiers ...func(s *sql.Selector)) *NarrativeHistorySelect { + nhq.modifiers = append(nhq.modifiers, modifiers...) + return nhq.Select() +} + +// NarrativeHistoryGroupBy is the group-by builder for NarrativeHistory entities. +type NarrativeHistoryGroupBy struct { + selector + build *NarrativeHistoryQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (nhgb *NarrativeHistoryGroupBy) Aggregate(fns ...AggregateFunc) *NarrativeHistoryGroupBy { + nhgb.fns = append(nhgb.fns, fns...) + return nhgb +} + +// Scan applies the selector query and scans the result into the given value. +func (nhgb *NarrativeHistoryGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, nhgb.build.ctx, ent.OpQueryGroupBy) + if err := nhgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*NarrativeHistoryQuery, *NarrativeHistoryGroupBy](ctx, nhgb.build, nhgb, nhgb.build.inters, v) +} + +func (nhgb *NarrativeHistoryGroupBy) sqlScan(ctx context.Context, root *NarrativeHistoryQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(nhgb.fns)) + for _, fn := range nhgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*nhgb.flds)+len(nhgb.fns)) + for _, f := range *nhgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*nhgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := nhgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// NarrativeHistorySelect is the builder for selecting fields of NarrativeHistory entities. +type NarrativeHistorySelect struct { + *NarrativeHistoryQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (nhs *NarrativeHistorySelect) Aggregate(fns ...AggregateFunc) *NarrativeHistorySelect { + nhs.fns = append(nhs.fns, fns...) + return nhs +} + +// Scan applies the selector query and scans the result into the given value. +func (nhs *NarrativeHistorySelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, nhs.ctx, ent.OpQuerySelect) + if err := nhs.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*NarrativeHistoryQuery, *NarrativeHistorySelect](ctx, nhs.NarrativeHistoryQuery, nhs, nhs.inters, v) +} + +func (nhs *NarrativeHistorySelect) sqlScan(ctx context.Context, root *NarrativeHistoryQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(nhs.fns)) + for _, fn := range nhs.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*nhs.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 := nhs.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 (nhs *NarrativeHistorySelect) Modify(modifiers ...func(s *sql.Selector)) *NarrativeHistorySelect { + nhs.modifiers = append(nhs.modifiers, modifiers...) + return nhs +} diff --git a/internal/ent/generated/narrativehistory_update.go b/internal/ent/generated/narrativehistory_update.go new file mode 100644 index 00000000..5bd24004 --- /dev/null +++ b/internal/ent/generated/narrativehistory_update.go @@ -0,0 +1,659 @@ +// 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/internal/ent/generated/narrativehistory" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// NarrativeHistoryUpdate is the builder for updating NarrativeHistory entities. +type NarrativeHistoryUpdate struct { + config + hooks []Hook + mutation *NarrativeHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the NarrativeHistoryUpdate builder. +func (nhu *NarrativeHistoryUpdate) Where(ps ...predicate.NarrativeHistory) *NarrativeHistoryUpdate { + nhu.mutation.Where(ps...) + return nhu +} + +// SetUpdatedAt sets the "updated_at" field. +func (nhu *NarrativeHistoryUpdate) SetUpdatedAt(t time.Time) *NarrativeHistoryUpdate { + nhu.mutation.SetUpdatedAt(t) + return nhu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (nhu *NarrativeHistoryUpdate) ClearUpdatedAt() *NarrativeHistoryUpdate { + nhu.mutation.ClearUpdatedAt() + return nhu +} + +// SetUpdatedBy sets the "updated_by" field. +func (nhu *NarrativeHistoryUpdate) SetUpdatedBy(s string) *NarrativeHistoryUpdate { + nhu.mutation.SetUpdatedBy(s) + return nhu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (nhu *NarrativeHistoryUpdate) SetNillableUpdatedBy(s *string) *NarrativeHistoryUpdate { + if s != nil { + nhu.SetUpdatedBy(*s) + } + return nhu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (nhu *NarrativeHistoryUpdate) ClearUpdatedBy() *NarrativeHistoryUpdate { + nhu.mutation.ClearUpdatedBy() + return nhu +} + +// SetDeletedAt sets the "deleted_at" field. +func (nhu *NarrativeHistoryUpdate) SetDeletedAt(t time.Time) *NarrativeHistoryUpdate { + nhu.mutation.SetDeletedAt(t) + return nhu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (nhu *NarrativeHistoryUpdate) SetNillableDeletedAt(t *time.Time) *NarrativeHistoryUpdate { + if t != nil { + nhu.SetDeletedAt(*t) + } + return nhu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (nhu *NarrativeHistoryUpdate) ClearDeletedAt() *NarrativeHistoryUpdate { + nhu.mutation.ClearDeletedAt() + return nhu +} + +// SetDeletedBy sets the "deleted_by" field. +func (nhu *NarrativeHistoryUpdate) SetDeletedBy(s string) *NarrativeHistoryUpdate { + nhu.mutation.SetDeletedBy(s) + return nhu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (nhu *NarrativeHistoryUpdate) SetNillableDeletedBy(s *string) *NarrativeHistoryUpdate { + if s != nil { + nhu.SetDeletedBy(*s) + } + return nhu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (nhu *NarrativeHistoryUpdate) ClearDeletedBy() *NarrativeHistoryUpdate { + nhu.mutation.ClearDeletedBy() + return nhu +} + +// SetTags sets the "tags" field. +func (nhu *NarrativeHistoryUpdate) SetTags(s []string) *NarrativeHistoryUpdate { + nhu.mutation.SetTags(s) + return nhu +} + +// AppendTags appends s to the "tags" field. +func (nhu *NarrativeHistoryUpdate) AppendTags(s []string) *NarrativeHistoryUpdate { + nhu.mutation.AppendTags(s) + return nhu +} + +// ClearTags clears the value of the "tags" field. +func (nhu *NarrativeHistoryUpdate) ClearTags() *NarrativeHistoryUpdate { + nhu.mutation.ClearTags() + return nhu +} + +// SetName sets the "name" field. +func (nhu *NarrativeHistoryUpdate) SetName(s string) *NarrativeHistoryUpdate { + nhu.mutation.SetName(s) + return nhu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (nhu *NarrativeHistoryUpdate) SetNillableName(s *string) *NarrativeHistoryUpdate { + if s != nil { + nhu.SetName(*s) + } + return nhu +} + +// SetDescription sets the "description" field. +func (nhu *NarrativeHistoryUpdate) SetDescription(s string) *NarrativeHistoryUpdate { + nhu.mutation.SetDescription(s) + return nhu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (nhu *NarrativeHistoryUpdate) SetNillableDescription(s *string) *NarrativeHistoryUpdate { + if s != nil { + nhu.SetDescription(*s) + } + return nhu +} + +// ClearDescription clears the value of the "description" field. +func (nhu *NarrativeHistoryUpdate) ClearDescription() *NarrativeHistoryUpdate { + nhu.mutation.ClearDescription() + return nhu +} + +// SetSatisfies sets the "satisfies" field. +func (nhu *NarrativeHistoryUpdate) SetSatisfies(s string) *NarrativeHistoryUpdate { + nhu.mutation.SetSatisfies(s) + return nhu +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (nhu *NarrativeHistoryUpdate) SetNillableSatisfies(s *string) *NarrativeHistoryUpdate { + if s != nil { + nhu.SetSatisfies(*s) + } + return nhu +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (nhu *NarrativeHistoryUpdate) ClearSatisfies() *NarrativeHistoryUpdate { + nhu.mutation.ClearSatisfies() + return nhu +} + +// SetDetails sets the "details" field. +func (nhu *NarrativeHistoryUpdate) SetDetails(m map[string]interface{}) *NarrativeHistoryUpdate { + nhu.mutation.SetDetails(m) + return nhu +} + +// ClearDetails clears the value of the "details" field. +func (nhu *NarrativeHistoryUpdate) ClearDetails() *NarrativeHistoryUpdate { + nhu.mutation.ClearDetails() + return nhu +} + +// Mutation returns the NarrativeHistoryMutation object of the builder. +func (nhu *NarrativeHistoryUpdate) Mutation() *NarrativeHistoryMutation { + return nhu.mutation +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (nhu *NarrativeHistoryUpdate) Save(ctx context.Context) (int, error) { + nhu.defaults() + return withHooks(ctx, nhu.sqlSave, nhu.mutation, nhu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (nhu *NarrativeHistoryUpdate) SaveX(ctx context.Context) int { + affected, err := nhu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (nhu *NarrativeHistoryUpdate) Exec(ctx context.Context) error { + _, err := nhu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (nhu *NarrativeHistoryUpdate) ExecX(ctx context.Context) { + if err := nhu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (nhu *NarrativeHistoryUpdate) defaults() { + if _, ok := nhu.mutation.UpdatedAt(); !ok && !nhu.mutation.UpdatedAtCleared() { + v := narrativehistory.UpdateDefaultUpdatedAt() + nhu.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (nhu *NarrativeHistoryUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *NarrativeHistoryUpdate { + nhu.modifiers = append(nhu.modifiers, modifiers...) + return nhu +} + +func (nhu *NarrativeHistoryUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(narrativehistory.Table, narrativehistory.Columns, sqlgraph.NewFieldSpec(narrativehistory.FieldID, field.TypeString)) + if ps := nhu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if nhu.mutation.RefCleared() { + _spec.ClearField(narrativehistory.FieldRef, field.TypeString) + } + if nhu.mutation.CreatedAtCleared() { + _spec.ClearField(narrativehistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := nhu.mutation.UpdatedAt(); ok { + _spec.SetField(narrativehistory.FieldUpdatedAt, field.TypeTime, value) + } + if nhu.mutation.UpdatedAtCleared() { + _spec.ClearField(narrativehistory.FieldUpdatedAt, field.TypeTime) + } + if nhu.mutation.CreatedByCleared() { + _spec.ClearField(narrativehistory.FieldCreatedBy, field.TypeString) + } + if value, ok := nhu.mutation.UpdatedBy(); ok { + _spec.SetField(narrativehistory.FieldUpdatedBy, field.TypeString, value) + } + if nhu.mutation.UpdatedByCleared() { + _spec.ClearField(narrativehistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := nhu.mutation.DeletedAt(); ok { + _spec.SetField(narrativehistory.FieldDeletedAt, field.TypeTime, value) + } + if nhu.mutation.DeletedAtCleared() { + _spec.ClearField(narrativehistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := nhu.mutation.DeletedBy(); ok { + _spec.SetField(narrativehistory.FieldDeletedBy, field.TypeString, value) + } + if nhu.mutation.DeletedByCleared() { + _spec.ClearField(narrativehistory.FieldDeletedBy, field.TypeString) + } + if value, ok := nhu.mutation.Tags(); ok { + _spec.SetField(narrativehistory.FieldTags, field.TypeJSON, value) + } + if value, ok := nhu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, narrativehistory.FieldTags, value) + }) + } + if nhu.mutation.TagsCleared() { + _spec.ClearField(narrativehistory.FieldTags, field.TypeJSON) + } + if value, ok := nhu.mutation.Name(); ok { + _spec.SetField(narrativehistory.FieldName, field.TypeString, value) + } + if value, ok := nhu.mutation.Description(); ok { + _spec.SetField(narrativehistory.FieldDescription, field.TypeString, value) + } + if nhu.mutation.DescriptionCleared() { + _spec.ClearField(narrativehistory.FieldDescription, field.TypeString) + } + if value, ok := nhu.mutation.Satisfies(); ok { + _spec.SetField(narrativehistory.FieldSatisfies, field.TypeString, value) + } + if nhu.mutation.SatisfiesCleared() { + _spec.ClearField(narrativehistory.FieldSatisfies, field.TypeString) + } + if value, ok := nhu.mutation.Details(); ok { + _spec.SetField(narrativehistory.FieldDetails, field.TypeJSON, value) + } + if nhu.mutation.DetailsCleared() { + _spec.ClearField(narrativehistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = nhu.schemaConfig.NarrativeHistory + ctx = internal.NewSchemaConfigContext(ctx, nhu.schemaConfig) + _spec.AddModifiers(nhu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, nhu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{narrativehistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + nhu.mutation.done = true + return n, nil +} + +// NarrativeHistoryUpdateOne is the builder for updating a single NarrativeHistory entity. +type NarrativeHistoryUpdateOne struct { + config + fields []string + hooks []Hook + mutation *NarrativeHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (nhuo *NarrativeHistoryUpdateOne) SetUpdatedAt(t time.Time) *NarrativeHistoryUpdateOne { + nhuo.mutation.SetUpdatedAt(t) + return nhuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (nhuo *NarrativeHistoryUpdateOne) ClearUpdatedAt() *NarrativeHistoryUpdateOne { + nhuo.mutation.ClearUpdatedAt() + return nhuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (nhuo *NarrativeHistoryUpdateOne) SetUpdatedBy(s string) *NarrativeHistoryUpdateOne { + nhuo.mutation.SetUpdatedBy(s) + return nhuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (nhuo *NarrativeHistoryUpdateOne) SetNillableUpdatedBy(s *string) *NarrativeHistoryUpdateOne { + if s != nil { + nhuo.SetUpdatedBy(*s) + } + return nhuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (nhuo *NarrativeHistoryUpdateOne) ClearUpdatedBy() *NarrativeHistoryUpdateOne { + nhuo.mutation.ClearUpdatedBy() + return nhuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (nhuo *NarrativeHistoryUpdateOne) SetDeletedAt(t time.Time) *NarrativeHistoryUpdateOne { + nhuo.mutation.SetDeletedAt(t) + return nhuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (nhuo *NarrativeHistoryUpdateOne) SetNillableDeletedAt(t *time.Time) *NarrativeHistoryUpdateOne { + if t != nil { + nhuo.SetDeletedAt(*t) + } + return nhuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (nhuo *NarrativeHistoryUpdateOne) ClearDeletedAt() *NarrativeHistoryUpdateOne { + nhuo.mutation.ClearDeletedAt() + return nhuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (nhuo *NarrativeHistoryUpdateOne) SetDeletedBy(s string) *NarrativeHistoryUpdateOne { + nhuo.mutation.SetDeletedBy(s) + return nhuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (nhuo *NarrativeHistoryUpdateOne) SetNillableDeletedBy(s *string) *NarrativeHistoryUpdateOne { + if s != nil { + nhuo.SetDeletedBy(*s) + } + return nhuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (nhuo *NarrativeHistoryUpdateOne) ClearDeletedBy() *NarrativeHistoryUpdateOne { + nhuo.mutation.ClearDeletedBy() + return nhuo +} + +// SetTags sets the "tags" field. +func (nhuo *NarrativeHistoryUpdateOne) SetTags(s []string) *NarrativeHistoryUpdateOne { + nhuo.mutation.SetTags(s) + return nhuo +} + +// AppendTags appends s to the "tags" field. +func (nhuo *NarrativeHistoryUpdateOne) AppendTags(s []string) *NarrativeHistoryUpdateOne { + nhuo.mutation.AppendTags(s) + return nhuo +} + +// ClearTags clears the value of the "tags" field. +func (nhuo *NarrativeHistoryUpdateOne) ClearTags() *NarrativeHistoryUpdateOne { + nhuo.mutation.ClearTags() + return nhuo +} + +// SetName sets the "name" field. +func (nhuo *NarrativeHistoryUpdateOne) SetName(s string) *NarrativeHistoryUpdateOne { + nhuo.mutation.SetName(s) + return nhuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (nhuo *NarrativeHistoryUpdateOne) SetNillableName(s *string) *NarrativeHistoryUpdateOne { + if s != nil { + nhuo.SetName(*s) + } + return nhuo +} + +// SetDescription sets the "description" field. +func (nhuo *NarrativeHistoryUpdateOne) SetDescription(s string) *NarrativeHistoryUpdateOne { + nhuo.mutation.SetDescription(s) + return nhuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (nhuo *NarrativeHistoryUpdateOne) SetNillableDescription(s *string) *NarrativeHistoryUpdateOne { + if s != nil { + nhuo.SetDescription(*s) + } + return nhuo +} + +// ClearDescription clears the value of the "description" field. +func (nhuo *NarrativeHistoryUpdateOne) ClearDescription() *NarrativeHistoryUpdateOne { + nhuo.mutation.ClearDescription() + return nhuo +} + +// SetSatisfies sets the "satisfies" field. +func (nhuo *NarrativeHistoryUpdateOne) SetSatisfies(s string) *NarrativeHistoryUpdateOne { + nhuo.mutation.SetSatisfies(s) + return nhuo +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (nhuo *NarrativeHistoryUpdateOne) SetNillableSatisfies(s *string) *NarrativeHistoryUpdateOne { + if s != nil { + nhuo.SetSatisfies(*s) + } + return nhuo +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (nhuo *NarrativeHistoryUpdateOne) ClearSatisfies() *NarrativeHistoryUpdateOne { + nhuo.mutation.ClearSatisfies() + return nhuo +} + +// SetDetails sets the "details" field. +func (nhuo *NarrativeHistoryUpdateOne) SetDetails(m map[string]interface{}) *NarrativeHistoryUpdateOne { + nhuo.mutation.SetDetails(m) + return nhuo +} + +// ClearDetails clears the value of the "details" field. +func (nhuo *NarrativeHistoryUpdateOne) ClearDetails() *NarrativeHistoryUpdateOne { + nhuo.mutation.ClearDetails() + return nhuo +} + +// Mutation returns the NarrativeHistoryMutation object of the builder. +func (nhuo *NarrativeHistoryUpdateOne) Mutation() *NarrativeHistoryMutation { + return nhuo.mutation +} + +// Where appends a list predicates to the NarrativeHistoryUpdate builder. +func (nhuo *NarrativeHistoryUpdateOne) Where(ps ...predicate.NarrativeHistory) *NarrativeHistoryUpdateOne { + nhuo.mutation.Where(ps...) + return nhuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (nhuo *NarrativeHistoryUpdateOne) Select(field string, fields ...string) *NarrativeHistoryUpdateOne { + nhuo.fields = append([]string{field}, fields...) + return nhuo +} + +// Save executes the query and returns the updated NarrativeHistory entity. +func (nhuo *NarrativeHistoryUpdateOne) Save(ctx context.Context) (*NarrativeHistory, error) { + nhuo.defaults() + return withHooks(ctx, nhuo.sqlSave, nhuo.mutation, nhuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (nhuo *NarrativeHistoryUpdateOne) SaveX(ctx context.Context) *NarrativeHistory { + node, err := nhuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (nhuo *NarrativeHistoryUpdateOne) Exec(ctx context.Context) error { + _, err := nhuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (nhuo *NarrativeHistoryUpdateOne) ExecX(ctx context.Context) { + if err := nhuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (nhuo *NarrativeHistoryUpdateOne) defaults() { + if _, ok := nhuo.mutation.UpdatedAt(); !ok && !nhuo.mutation.UpdatedAtCleared() { + v := narrativehistory.UpdateDefaultUpdatedAt() + nhuo.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (nhuo *NarrativeHistoryUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *NarrativeHistoryUpdateOne { + nhuo.modifiers = append(nhuo.modifiers, modifiers...) + return nhuo +} + +func (nhuo *NarrativeHistoryUpdateOne) sqlSave(ctx context.Context) (_node *NarrativeHistory, err error) { + _spec := sqlgraph.NewUpdateSpec(narrativehistory.Table, narrativehistory.Columns, sqlgraph.NewFieldSpec(narrativehistory.FieldID, field.TypeString)) + id, ok := nhuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "NarrativeHistory.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := nhuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, narrativehistory.FieldID) + for _, f := range fields { + if !narrativehistory.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != narrativehistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := nhuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if nhuo.mutation.RefCleared() { + _spec.ClearField(narrativehistory.FieldRef, field.TypeString) + } + if nhuo.mutation.CreatedAtCleared() { + _spec.ClearField(narrativehistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := nhuo.mutation.UpdatedAt(); ok { + _spec.SetField(narrativehistory.FieldUpdatedAt, field.TypeTime, value) + } + if nhuo.mutation.UpdatedAtCleared() { + _spec.ClearField(narrativehistory.FieldUpdatedAt, field.TypeTime) + } + if nhuo.mutation.CreatedByCleared() { + _spec.ClearField(narrativehistory.FieldCreatedBy, field.TypeString) + } + if value, ok := nhuo.mutation.UpdatedBy(); ok { + _spec.SetField(narrativehistory.FieldUpdatedBy, field.TypeString, value) + } + if nhuo.mutation.UpdatedByCleared() { + _spec.ClearField(narrativehistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := nhuo.mutation.DeletedAt(); ok { + _spec.SetField(narrativehistory.FieldDeletedAt, field.TypeTime, value) + } + if nhuo.mutation.DeletedAtCleared() { + _spec.ClearField(narrativehistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := nhuo.mutation.DeletedBy(); ok { + _spec.SetField(narrativehistory.FieldDeletedBy, field.TypeString, value) + } + if nhuo.mutation.DeletedByCleared() { + _spec.ClearField(narrativehistory.FieldDeletedBy, field.TypeString) + } + if value, ok := nhuo.mutation.Tags(); ok { + _spec.SetField(narrativehistory.FieldTags, field.TypeJSON, value) + } + if value, ok := nhuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, narrativehistory.FieldTags, value) + }) + } + if nhuo.mutation.TagsCleared() { + _spec.ClearField(narrativehistory.FieldTags, field.TypeJSON) + } + if value, ok := nhuo.mutation.Name(); ok { + _spec.SetField(narrativehistory.FieldName, field.TypeString, value) + } + if value, ok := nhuo.mutation.Description(); ok { + _spec.SetField(narrativehistory.FieldDescription, field.TypeString, value) + } + if nhuo.mutation.DescriptionCleared() { + _spec.ClearField(narrativehistory.FieldDescription, field.TypeString) + } + if value, ok := nhuo.mutation.Satisfies(); ok { + _spec.SetField(narrativehistory.FieldSatisfies, field.TypeString, value) + } + if nhuo.mutation.SatisfiesCleared() { + _spec.ClearField(narrativehistory.FieldSatisfies, field.TypeString) + } + if value, ok := nhuo.mutation.Details(); ok { + _spec.SetField(narrativehistory.FieldDetails, field.TypeJSON, value) + } + if nhuo.mutation.DetailsCleared() { + _spec.ClearField(narrativehistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = nhuo.schemaConfig.NarrativeHistory + ctx = internal.NewSchemaConfigContext(ctx, nhuo.schemaConfig) + _spec.AddModifiers(nhuo.modifiers...) + _node = &NarrativeHistory{config: nhuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, nhuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{narrativehistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + nhuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/note.go b/internal/ent/generated/note.go index 1905e53b..d4bc9cbd 100644 --- a/internal/ent/generated/note.go +++ b/internal/ent/generated/note.go @@ -53,11 +53,15 @@ type NoteEdges struct { Owner *Organization `json:"owner,omitempty"` // Entity holds the value of the entity edge. Entity *Entity `json:"entity,omitempty"` + // Subcontrols holds the value of the subcontrols edge. + Subcontrols []*Subcontrol `json:"subcontrols,omitempty"` // loadedTypes holds the information for reporting if a // type was loaded (or requested) in eager-loading or not. - loadedTypes [2]bool + loadedTypes [3]bool // totalCount holds the count of the edges above. - totalCount [2]map[string]int + totalCount [3]map[string]int + + namedSubcontrols map[string][]*Subcontrol } // OwnerOrErr returns the Owner value or an error if the edge @@ -82,6 +86,15 @@ func (e NoteEdges) EntityOrErr() (*Entity, error) { return nil, &NotLoadedError{edge: "entity"} } +// SubcontrolsOrErr returns the Subcontrols value or an error if the edge +// was not loaded in eager-loading. +func (e NoteEdges) SubcontrolsOrErr() ([]*Subcontrol, error) { + if e.loadedTypes[2] { + return e.Subcontrols, nil + } + return nil, &NotLoadedError{edge: "subcontrols"} +} + // scanValues returns the types for scanning values from sql.Rows. func (*Note) scanValues(columns []string) ([]any, error) { values := make([]any, len(columns)) @@ -208,6 +221,11 @@ func (n *Note) QueryEntity() *EntityQuery { return NewNoteClient(n.config).QueryEntity(n) } +// QuerySubcontrols queries the "subcontrols" edge of the Note entity. +func (n *Note) QuerySubcontrols() *SubcontrolQuery { + return NewNoteClient(n.config).QuerySubcontrols(n) +} + // Update returns a builder for updating this Note. // Note that you need to call Note.Unwrap() before calling this method if this Note // was returned from a transaction, and the transaction was committed or rolled back. @@ -264,5 +282,29 @@ func (n *Note) String() string { return builder.String() } +// NamedSubcontrols returns the Subcontrols named value or an error if the edge was not +// loaded in eager-loading with this name. +func (n *Note) NamedSubcontrols(name string) ([]*Subcontrol, error) { + if n.Edges.namedSubcontrols == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := n.Edges.namedSubcontrols[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (n *Note) appendNamedSubcontrols(name string, edges ...*Subcontrol) { + if n.Edges.namedSubcontrols == nil { + n.Edges.namedSubcontrols = make(map[string][]*Subcontrol) + } + if len(edges) == 0 { + n.Edges.namedSubcontrols[name] = []*Subcontrol{} + } else { + n.Edges.namedSubcontrols[name] = append(n.Edges.namedSubcontrols[name], edges...) + } +} + // Notes is a parsable slice of Note. type Notes []*Note diff --git a/internal/ent/generated/note/note.go b/internal/ent/generated/note/note.go index 65043e45..b3d5691c 100644 --- a/internal/ent/generated/note/note.go +++ b/internal/ent/generated/note/note.go @@ -39,6 +39,8 @@ const ( EdgeOwner = "owner" // EdgeEntity holds the string denoting the entity edge name in mutations. EdgeEntity = "entity" + // EdgeSubcontrols holds the string denoting the subcontrols edge name in mutations. + EdgeSubcontrols = "subcontrols" // Table holds the table name of the note in the database. Table = "notes" // OwnerTable is the table that holds the owner relation/edge. @@ -55,6 +57,13 @@ const ( EntityInverseTable = "entities" // EntityColumn is the table column denoting the entity relation/edge. EntityColumn = "entity_notes" + // SubcontrolsTable is the table that holds the subcontrols relation/edge. + SubcontrolsTable = "subcontrols" + // SubcontrolsInverseTable is the table name for the Subcontrol entity. + // It exists in this package in order to avoid circular dependency with the "subcontrol" package. + SubcontrolsInverseTable = "subcontrols" + // SubcontrolsColumn is the table column denoting the subcontrols relation/edge. + SubcontrolsColumn = "note_subcontrols" ) // Columns holds all SQL columns for note fields. @@ -186,6 +195,20 @@ func ByEntityField(field string, opts ...sql.OrderTermOption) OrderOption { sqlgraph.OrderByNeighborTerms(s, newEntityStep(), sql.OrderByField(field, opts...)) } } + +// BySubcontrolsCount orders the results by subcontrols count. +func BySubcontrolsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newSubcontrolsStep(), opts...) + } +} + +// BySubcontrols orders the results by subcontrols terms. +func BySubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newSubcontrolsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} func newOwnerStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), @@ -200,3 +223,10 @@ func newEntityStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.M2O, true, EntityTable, EntityColumn), ) } +func newSubcontrolsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(SubcontrolsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, SubcontrolsTable, SubcontrolsColumn), + ) +} diff --git a/internal/ent/generated/note/where.go b/internal/ent/generated/note/where.go index 99a04e3a..af4f828a 100644 --- a/internal/ent/generated/note/where.go +++ b/internal/ent/generated/note/where.go @@ -760,6 +760,35 @@ func HasEntityWith(preds ...predicate.Entity) predicate.Note { }) } +// HasSubcontrols applies the HasEdge predicate on the "subcontrols" edge. +func HasSubcontrols() predicate.Note { + return predicate.Note(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, SubcontrolsTable, SubcontrolsColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.Subcontrol + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasSubcontrolsWith applies the HasEdge predicate on the "subcontrols" edge with a given conditions (other predicates). +func HasSubcontrolsWith(preds ...predicate.Subcontrol) predicate.Note { + return predicate.Note(func(s *sql.Selector) { + step := newSubcontrolsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.Subcontrol + 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.Note) predicate.Note { return predicate.Note(sql.AndPredicates(predicates...)) diff --git a/internal/ent/generated/note_create.go b/internal/ent/generated/note_create.go index 78632ccb..3f580368 100644 --- a/internal/ent/generated/note_create.go +++ b/internal/ent/generated/note_create.go @@ -13,6 +13,7 @@ import ( "github.com/theopenlane/core/internal/ent/generated/entity" "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/organization" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" ) // NoteCreate is the builder for creating a Note entity. @@ -184,6 +185,21 @@ func (nc *NoteCreate) SetEntity(e *Entity) *NoteCreate { return nc.SetEntityID(e.ID) } +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (nc *NoteCreate) AddSubcontrolIDs(ids ...string) *NoteCreate { + nc.mutation.AddSubcontrolIDs(ids...) + return nc +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (nc *NoteCreate) AddSubcontrols(s ...*Subcontrol) *NoteCreate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return nc.AddSubcontrolIDs(ids...) +} + // Mutation returns the NoteMutation object of the builder. func (nc *NoteCreate) Mutation() *NoteMutation { return nc.mutation @@ -382,6 +398,23 @@ func (nc *NoteCreate) createSpec() (*Note, *sqlgraph.CreateSpec) { _node.entity_notes = &nodes[0] _spec.Edges = append(_spec.Edges, edge) } + if nodes := nc.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: note.SubcontrolsTable, + Columns: []string{note.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = nc.schemaConfig.Subcontrol + 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/note_query.go b/internal/ent/generated/note_query.go index 3a9de959..69cd17d0 100644 --- a/internal/ent/generated/note_query.go +++ b/internal/ent/generated/note_query.go @@ -4,6 +4,7 @@ package generated import ( "context" + "database/sql/driver" "errors" "fmt" "math" @@ -16,6 +17,7 @@ import ( "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/organization" "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" "github.com/theopenlane/core/internal/ent/generated/internal" ) @@ -23,15 +25,17 @@ import ( // NoteQuery is the builder for querying Note entities. type NoteQuery struct { config - ctx *QueryContext - order []note.OrderOption - inters []Interceptor - predicates []predicate.Note - withOwner *OrganizationQuery - withEntity *EntityQuery - withFKs bool - loadTotal []func(context.Context, []*Note) error - modifiers []func(*sql.Selector) + ctx *QueryContext + order []note.OrderOption + inters []Interceptor + predicates []predicate.Note + withOwner *OrganizationQuery + withEntity *EntityQuery + withSubcontrols *SubcontrolQuery + withFKs bool + loadTotal []func(context.Context, []*Note) error + modifiers []func(*sql.Selector) + withNamedSubcontrols map[string]*SubcontrolQuery // intermediate query (i.e. traversal path). sql *sql.Selector path func(context.Context) (*sql.Selector, error) @@ -118,6 +122,31 @@ func (nq *NoteQuery) QueryEntity() *EntityQuery { return query } +// QuerySubcontrols chains the current query on the "subcontrols" edge. +func (nq *NoteQuery) QuerySubcontrols() *SubcontrolQuery { + query := (&SubcontrolClient{config: nq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := nq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := nq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(note.Table, note.FieldID, selector), + sqlgraph.To(subcontrol.Table, subcontrol.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, note.SubcontrolsTable, note.SubcontrolsColumn), + ) + schemaConfig := nq.schemaConfig + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.Subcontrol + fromU = sqlgraph.SetNeighbors(nq.driver.Dialect(), step) + return fromU, nil + } + return query +} + // First returns the first Note entity from the query. // Returns a *NotFoundError when no Note was found. func (nq *NoteQuery) First(ctx context.Context) (*Note, error) { @@ -305,13 +334,14 @@ func (nq *NoteQuery) Clone() *NoteQuery { return nil } return &NoteQuery{ - config: nq.config, - ctx: nq.ctx.Clone(), - order: append([]note.OrderOption{}, nq.order...), - inters: append([]Interceptor{}, nq.inters...), - predicates: append([]predicate.Note{}, nq.predicates...), - withOwner: nq.withOwner.Clone(), - withEntity: nq.withEntity.Clone(), + config: nq.config, + ctx: nq.ctx.Clone(), + order: append([]note.OrderOption{}, nq.order...), + inters: append([]Interceptor{}, nq.inters...), + predicates: append([]predicate.Note{}, nq.predicates...), + withOwner: nq.withOwner.Clone(), + withEntity: nq.withEntity.Clone(), + withSubcontrols: nq.withSubcontrols.Clone(), // clone intermediate query. sql: nq.sql.Clone(), path: nq.path, @@ -341,6 +371,17 @@ func (nq *NoteQuery) WithEntity(opts ...func(*EntityQuery)) *NoteQuery { return nq } +// 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 (nq *NoteQuery) WithSubcontrols(opts ...func(*SubcontrolQuery)) *NoteQuery { + query := (&SubcontrolClient{config: nq.config}).Query() + for _, opt := range opts { + opt(query) + } + nq.withSubcontrols = query + return nq +} + // 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. // @@ -426,9 +467,10 @@ func (nq *NoteQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Note, e nodes = []*Note{} withFKs = nq.withFKs _spec = nq.querySpec() - loadedTypes = [2]bool{ + loadedTypes = [3]bool{ nq.withOwner != nil, nq.withEntity != nil, + nq.withSubcontrols != nil, } ) if nq.withEntity != nil { @@ -472,6 +514,20 @@ func (nq *NoteQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Note, e return nil, err } } + if query := nq.withSubcontrols; query != nil { + if err := nq.loadSubcontrols(ctx, query, nodes, + func(n *Note) { n.Edges.Subcontrols = []*Subcontrol{} }, + func(n *Note, e *Subcontrol) { n.Edges.Subcontrols = append(n.Edges.Subcontrols, e) }); err != nil { + return nil, err + } + } + for name, query := range nq.withNamedSubcontrols { + if err := nq.loadSubcontrols(ctx, query, nodes, + func(n *Note) { n.appendNamedSubcontrols(name) }, + func(n *Note, e *Subcontrol) { n.appendNamedSubcontrols(name, e) }); err != nil { + return nil, err + } + } for i := range nq.loadTotal { if err := nq.loadTotal[i](ctx, nodes); err != nil { return nil, err @@ -541,6 +597,37 @@ func (nq *NoteQuery) loadEntity(ctx context.Context, query *EntityQuery, nodes [ } return nil } +func (nq *NoteQuery) loadSubcontrols(ctx context.Context, query *SubcontrolQuery, nodes []*Note, init func(*Note), assign func(*Note, *Subcontrol)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Note) + 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.Subcontrol(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(note.SubcontrolsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.note_subcontrols + if fk == nil { + return fmt.Errorf(`foreign-key "note_subcontrols" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "note_subcontrols" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} func (nq *NoteQuery) sqlCount(ctx context.Context) (int, error) { _spec := nq.querySpec() @@ -643,6 +730,20 @@ func (nq *NoteQuery) Modify(modifiers ...func(s *sql.Selector)) *NoteSelect { return nq.Select() } +// 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 (nq *NoteQuery) WithNamedSubcontrols(name string, opts ...func(*SubcontrolQuery)) *NoteQuery { + query := (&SubcontrolClient{config: nq.config}).Query() + for _, opt := range opts { + opt(query) + } + if nq.withNamedSubcontrols == nil { + nq.withNamedSubcontrols = make(map[string]*SubcontrolQuery) + } + nq.withNamedSubcontrols[name] = query + return nq +} + // NoteGroupBy is the group-by builder for Note entities. type NoteGroupBy struct { selector diff --git a/internal/ent/generated/note_update.go b/internal/ent/generated/note_update.go index d8cd771d..cb5cdd36 100644 --- a/internal/ent/generated/note_update.go +++ b/internal/ent/generated/note_update.go @@ -16,6 +16,7 @@ import ( "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/organization" "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" "github.com/theopenlane/core/internal/ent/generated/internal" ) @@ -182,6 +183,21 @@ func (nu *NoteUpdate) SetEntity(e *Entity) *NoteUpdate { return nu.SetEntityID(e.ID) } +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (nu *NoteUpdate) AddSubcontrolIDs(ids ...string) *NoteUpdate { + nu.mutation.AddSubcontrolIDs(ids...) + return nu +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (nu *NoteUpdate) AddSubcontrols(s ...*Subcontrol) *NoteUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return nu.AddSubcontrolIDs(ids...) +} + // Mutation returns the NoteMutation object of the builder. func (nu *NoteUpdate) Mutation() *NoteMutation { return nu.mutation @@ -199,6 +215,27 @@ func (nu *NoteUpdate) ClearEntity() *NoteUpdate { return nu } +// ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. +func (nu *NoteUpdate) ClearSubcontrols() *NoteUpdate { + nu.mutation.ClearSubcontrols() + return nu +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to Subcontrol entities by IDs. +func (nu *NoteUpdate) RemoveSubcontrolIDs(ids ...string) *NoteUpdate { + nu.mutation.RemoveSubcontrolIDs(ids...) + return nu +} + +// RemoveSubcontrols removes "subcontrols" edges to Subcontrol entities. +func (nu *NoteUpdate) RemoveSubcontrols(s ...*Subcontrol) *NoteUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return nu.RemoveSubcontrolIDs(ids...) +} + // Save executes the query and returns the number of nodes affected by the update operation. func (nu *NoteUpdate) Save(ctx context.Context) (int, error) { if err := nu.defaults(); err != nil { @@ -380,6 +417,54 @@ func (nu *NoteUpdate) sqlSave(ctx context.Context) (n int, err error) { } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if nu.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: note.SubcontrolsTable, + Columns: []string{note.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.Subcontrol + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nu.mutation.RemovedSubcontrolsIDs(); len(nodes) > 0 && !nu.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: note.SubcontrolsTable, + Columns: []string{note.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nu.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: note.SubcontrolsTable, + Columns: []string{note.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = nu.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } _spec.Node.Schema = nu.schemaConfig.Note ctx = internal.NewSchemaConfigContext(ctx, nu.schemaConfig) _spec.AddModifiers(nu.modifiers...) @@ -552,6 +637,21 @@ func (nuo *NoteUpdateOne) SetEntity(e *Entity) *NoteUpdateOne { return nuo.SetEntityID(e.ID) } +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (nuo *NoteUpdateOne) AddSubcontrolIDs(ids ...string) *NoteUpdateOne { + nuo.mutation.AddSubcontrolIDs(ids...) + return nuo +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (nuo *NoteUpdateOne) AddSubcontrols(s ...*Subcontrol) *NoteUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return nuo.AddSubcontrolIDs(ids...) +} + // Mutation returns the NoteMutation object of the builder. func (nuo *NoteUpdateOne) Mutation() *NoteMutation { return nuo.mutation @@ -569,6 +669,27 @@ func (nuo *NoteUpdateOne) ClearEntity() *NoteUpdateOne { return nuo } +// ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. +func (nuo *NoteUpdateOne) ClearSubcontrols() *NoteUpdateOne { + nuo.mutation.ClearSubcontrols() + return nuo +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to Subcontrol entities by IDs. +func (nuo *NoteUpdateOne) RemoveSubcontrolIDs(ids ...string) *NoteUpdateOne { + nuo.mutation.RemoveSubcontrolIDs(ids...) + return nuo +} + +// RemoveSubcontrols removes "subcontrols" edges to Subcontrol entities. +func (nuo *NoteUpdateOne) RemoveSubcontrols(s ...*Subcontrol) *NoteUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return nuo.RemoveSubcontrolIDs(ids...) +} + // Where appends a list predicates to the NoteUpdate builder. func (nuo *NoteUpdateOne) Where(ps ...predicate.Note) *NoteUpdateOne { nuo.mutation.Where(ps...) @@ -780,6 +901,54 @@ func (nuo *NoteUpdateOne) sqlSave(ctx context.Context) (_node *Note, err error) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if nuo.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: note.SubcontrolsTable, + Columns: []string{note.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.Subcontrol + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nuo.mutation.RemovedSubcontrolsIDs(); len(nodes) > 0 && !nuo.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: note.SubcontrolsTable, + Columns: []string{note.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := nuo.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: note.SubcontrolsTable, + Columns: []string{note.SubcontrolsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = nuo.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } _spec.Node.Schema = nuo.schemaConfig.Note ctx = internal.NewSchemaConfigContext(ctx, nuo.schemaConfig) _spec.AddModifiers(nuo.modifiers...) diff --git a/internal/ent/generated/predicate/predicate.go b/internal/ent/generated/predicate/predicate.go index 40cc4ea5..202233d7 100644 --- a/internal/ent/generated/predicate/predicate.go +++ b/internal/ent/generated/predicate/predicate.go @@ -9,12 +9,30 @@ import ( // APIToken is the predicate function for apitoken builders. type APIToken func(*sql.Selector) +// ActionPlan is the predicate function for actionplan builders. +type ActionPlan func(*sql.Selector) + +// ActionPlanHistory is the predicate function for actionplanhistory builders. +type ActionPlanHistory func(*sql.Selector) + // Contact is the predicate function for contact builders. type Contact func(*sql.Selector) // ContactHistory is the predicate function for contacthistory builders. type ContactHistory func(*sql.Selector) +// Control is the predicate function for control builders. +type Control func(*sql.Selector) + +// ControlHistory is the predicate function for controlhistory builders. +type ControlHistory func(*sql.Selector) + +// ControlObjective is the predicate function for controlobjective builders. +type ControlObjective func(*sql.Selector) + +// ControlObjectiveHistory is the predicate function for controlobjectivehistory builders. +type ControlObjectiveHistory func(*sql.Selector) + // DocumentData is the predicate function for documentdata builders. type DocumentData func(*sql.Selector) @@ -102,9 +120,21 @@ type Integration func(*sql.Selector) // IntegrationHistory is the predicate function for integrationhistory builders. type IntegrationHistory func(*sql.Selector) +// InternalPolicy is the predicate function for internalpolicy builders. +type InternalPolicy func(*sql.Selector) + +// InternalPolicyHistory is the predicate function for internalpolicyhistory builders. +type InternalPolicyHistory func(*sql.Selector) + // Invite is the predicate function for invite builders. type Invite func(*sql.Selector) +// Narrative is the predicate function for narrative builders. +type Narrative func(*sql.Selector) + +// NarrativeHistory is the predicate function for narrativehistory builders. +type NarrativeHistory func(*sql.Selector) + // Note is the predicate function for note builders. type Note func(*sql.Selector) @@ -144,6 +174,30 @@ type PasswordResetToken func(*sql.Selector) // PersonalAccessToken is the predicate function for personalaccesstoken builders. type PersonalAccessToken func(*sql.Selector) +// Procedure is the predicate function for procedure builders. +type Procedure func(*sql.Selector) + +// ProcedureHistory is the predicate function for procedurehistory builders. +type ProcedureHistory func(*sql.Selector) + +// Risk is the predicate function for risk builders. +type Risk func(*sql.Selector) + +// RiskHistory is the predicate function for riskhistory builders. +type RiskHistory func(*sql.Selector) + +// Standard is the predicate function for standard builders. +type Standard func(*sql.Selector) + +// StandardHistory is the predicate function for standardhistory builders. +type StandardHistory func(*sql.Selector) + +// Subcontrol is the predicate function for subcontrol builders. +type Subcontrol func(*sql.Selector) + +// SubcontrolHistory is the predicate function for subcontrolhistory builders. +type SubcontrolHistory func(*sql.Selector) + // Subscriber is the predicate function for subscriber builders. type Subscriber func(*sql.Selector) diff --git a/internal/ent/generated/privacy/privacy.go b/internal/ent/generated/privacy/privacy.go index 3aa4daea..25a80605 100644 --- a/internal/ent/generated/privacy/privacy.go +++ b/internal/ent/generated/privacy/privacy.go @@ -135,6 +135,54 @@ func (f APITokenMutationRuleFunc) EvalMutation(ctx context.Context, m generated. return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.APITokenMutation", m) } +// The ActionPlanQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type ActionPlanQueryRuleFunc func(context.Context, *generated.ActionPlanQuery) error + +// EvalQuery return f(ctx, q). +func (f ActionPlanQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ActionPlanQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.ActionPlanQuery", q) +} + +// The ActionPlanMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type ActionPlanMutationRuleFunc func(context.Context, *generated.ActionPlanMutation) error + +// EvalMutation calls f(ctx, m). +func (f ActionPlanMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.ActionPlanMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.ActionPlanMutation", m) +} + +// The ActionPlanHistoryQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type ActionPlanHistoryQueryRuleFunc func(context.Context, *generated.ActionPlanHistoryQuery) error + +// EvalQuery return f(ctx, q). +func (f ActionPlanHistoryQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ActionPlanHistoryQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.ActionPlanHistoryQuery", q) +} + +// The ActionPlanHistoryMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type ActionPlanHistoryMutationRuleFunc func(context.Context, *generated.ActionPlanHistoryMutation) error + +// EvalMutation calls f(ctx, m). +func (f ActionPlanHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.ActionPlanHistoryMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.ActionPlanHistoryMutation", m) +} + // The ContactQueryRuleFunc type is an adapter to allow the use of ordinary // functions as a query rule. type ContactQueryRuleFunc func(context.Context, *generated.ContactQuery) error @@ -183,6 +231,102 @@ func (f ContactHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m gene return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.ContactHistoryMutation", m) } +// The ControlQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type ControlQueryRuleFunc func(context.Context, *generated.ControlQuery) error + +// EvalQuery return f(ctx, q). +func (f ControlQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ControlQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.ControlQuery", q) +} + +// The ControlMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type ControlMutationRuleFunc func(context.Context, *generated.ControlMutation) error + +// EvalMutation calls f(ctx, m). +func (f ControlMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.ControlMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.ControlMutation", m) +} + +// The ControlHistoryQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type ControlHistoryQueryRuleFunc func(context.Context, *generated.ControlHistoryQuery) error + +// EvalQuery return f(ctx, q). +func (f ControlHistoryQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ControlHistoryQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.ControlHistoryQuery", q) +} + +// The ControlHistoryMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type ControlHistoryMutationRuleFunc func(context.Context, *generated.ControlHistoryMutation) error + +// EvalMutation calls f(ctx, m). +func (f ControlHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.ControlHistoryMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.ControlHistoryMutation", m) +} + +// The ControlObjectiveQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type ControlObjectiveQueryRuleFunc func(context.Context, *generated.ControlObjectiveQuery) error + +// EvalQuery return f(ctx, q). +func (f ControlObjectiveQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ControlObjectiveQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.ControlObjectiveQuery", q) +} + +// The ControlObjectiveMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type ControlObjectiveMutationRuleFunc func(context.Context, *generated.ControlObjectiveMutation) error + +// EvalMutation calls f(ctx, m). +func (f ControlObjectiveMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.ControlObjectiveMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.ControlObjectiveMutation", m) +} + +// The ControlObjectiveHistoryQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type ControlObjectiveHistoryQueryRuleFunc func(context.Context, *generated.ControlObjectiveHistoryQuery) error + +// EvalQuery return f(ctx, q). +func (f ControlObjectiveHistoryQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ControlObjectiveHistoryQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.ControlObjectiveHistoryQuery", q) +} + +// The ControlObjectiveHistoryMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type ControlObjectiveHistoryMutationRuleFunc func(context.Context, *generated.ControlObjectiveHistoryMutation) error + +// EvalMutation calls f(ctx, m). +func (f ControlObjectiveHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.ControlObjectiveHistoryMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.ControlObjectiveHistoryMutation", m) +} + // The DocumentDataQueryRuleFunc type is an adapter to allow the use of ordinary // functions as a query rule. type DocumentDataQueryRuleFunc func(context.Context, *generated.DocumentDataQuery) error @@ -879,6 +1023,54 @@ func (f IntegrationHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.IntegrationHistoryMutation", m) } +// The InternalPolicyQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type InternalPolicyQueryRuleFunc func(context.Context, *generated.InternalPolicyQuery) error + +// EvalQuery return f(ctx, q). +func (f InternalPolicyQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.InternalPolicyQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.InternalPolicyQuery", q) +} + +// The InternalPolicyMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type InternalPolicyMutationRuleFunc func(context.Context, *generated.InternalPolicyMutation) error + +// EvalMutation calls f(ctx, m). +func (f InternalPolicyMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.InternalPolicyMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.InternalPolicyMutation", m) +} + +// The InternalPolicyHistoryQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type InternalPolicyHistoryQueryRuleFunc func(context.Context, *generated.InternalPolicyHistoryQuery) error + +// EvalQuery return f(ctx, q). +func (f InternalPolicyHistoryQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.InternalPolicyHistoryQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.InternalPolicyHistoryQuery", q) +} + +// The InternalPolicyHistoryMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type InternalPolicyHistoryMutationRuleFunc func(context.Context, *generated.InternalPolicyHistoryMutation) error + +// EvalMutation calls f(ctx, m). +func (f InternalPolicyHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.InternalPolicyHistoryMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.InternalPolicyHistoryMutation", m) +} + // The InviteQueryRuleFunc type is an adapter to allow the use of ordinary // functions as a query rule. type InviteQueryRuleFunc func(context.Context, *generated.InviteQuery) error @@ -903,6 +1095,54 @@ func (f InviteMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mu return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.InviteMutation", m) } +// The NarrativeQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type NarrativeQueryRuleFunc func(context.Context, *generated.NarrativeQuery) error + +// EvalQuery return f(ctx, q). +func (f NarrativeQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.NarrativeQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.NarrativeQuery", q) +} + +// The NarrativeMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type NarrativeMutationRuleFunc func(context.Context, *generated.NarrativeMutation) error + +// EvalMutation calls f(ctx, m). +func (f NarrativeMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.NarrativeMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.NarrativeMutation", m) +} + +// The NarrativeHistoryQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type NarrativeHistoryQueryRuleFunc func(context.Context, *generated.NarrativeHistoryQuery) error + +// EvalQuery return f(ctx, q). +func (f NarrativeHistoryQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.NarrativeHistoryQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.NarrativeHistoryQuery", q) +} + +// The NarrativeHistoryMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type NarrativeHistoryMutationRuleFunc func(context.Context, *generated.NarrativeHistoryMutation) error + +// EvalMutation calls f(ctx, m). +func (f NarrativeHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.NarrativeHistoryMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.NarrativeHistoryMutation", m) +} + // The NoteQueryRuleFunc type is an adapter to allow the use of ordinary // functions as a query rule. type NoteQueryRuleFunc func(context.Context, *generated.NoteQuery) error @@ -1215,6 +1455,198 @@ func (f PersonalAccessTokenMutationRuleFunc) EvalMutation(ctx context.Context, m return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.PersonalAccessTokenMutation", m) } +// The ProcedureQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type ProcedureQueryRuleFunc func(context.Context, *generated.ProcedureQuery) error + +// EvalQuery return f(ctx, q). +func (f ProcedureQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ProcedureQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.ProcedureQuery", q) +} + +// The ProcedureMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type ProcedureMutationRuleFunc func(context.Context, *generated.ProcedureMutation) error + +// EvalMutation calls f(ctx, m). +func (f ProcedureMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.ProcedureMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.ProcedureMutation", m) +} + +// The ProcedureHistoryQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type ProcedureHistoryQueryRuleFunc func(context.Context, *generated.ProcedureHistoryQuery) error + +// EvalQuery return f(ctx, q). +func (f ProcedureHistoryQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.ProcedureHistoryQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.ProcedureHistoryQuery", q) +} + +// The ProcedureHistoryMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type ProcedureHistoryMutationRuleFunc func(context.Context, *generated.ProcedureHistoryMutation) error + +// EvalMutation calls f(ctx, m). +func (f ProcedureHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.ProcedureHistoryMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.ProcedureHistoryMutation", m) +} + +// The RiskQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type RiskQueryRuleFunc func(context.Context, *generated.RiskQuery) error + +// EvalQuery return f(ctx, q). +func (f RiskQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.RiskQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.RiskQuery", q) +} + +// The RiskMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type RiskMutationRuleFunc func(context.Context, *generated.RiskMutation) error + +// EvalMutation calls f(ctx, m). +func (f RiskMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.RiskMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.RiskMutation", m) +} + +// The RiskHistoryQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type RiskHistoryQueryRuleFunc func(context.Context, *generated.RiskHistoryQuery) error + +// EvalQuery return f(ctx, q). +func (f RiskHistoryQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.RiskHistoryQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.RiskHistoryQuery", q) +} + +// The RiskHistoryMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type RiskHistoryMutationRuleFunc func(context.Context, *generated.RiskHistoryMutation) error + +// EvalMutation calls f(ctx, m). +func (f RiskHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.RiskHistoryMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.RiskHistoryMutation", m) +} + +// The StandardQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type StandardQueryRuleFunc func(context.Context, *generated.StandardQuery) error + +// EvalQuery return f(ctx, q). +func (f StandardQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.StandardQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.StandardQuery", q) +} + +// The StandardMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type StandardMutationRuleFunc func(context.Context, *generated.StandardMutation) error + +// EvalMutation calls f(ctx, m). +func (f StandardMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.StandardMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.StandardMutation", m) +} + +// The StandardHistoryQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type StandardHistoryQueryRuleFunc func(context.Context, *generated.StandardHistoryQuery) error + +// EvalQuery return f(ctx, q). +func (f StandardHistoryQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.StandardHistoryQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.StandardHistoryQuery", q) +} + +// The StandardHistoryMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type StandardHistoryMutationRuleFunc func(context.Context, *generated.StandardHistoryMutation) error + +// EvalMutation calls f(ctx, m). +func (f StandardHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.StandardHistoryMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.StandardHistoryMutation", m) +} + +// The SubcontrolQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type SubcontrolQueryRuleFunc func(context.Context, *generated.SubcontrolQuery) error + +// EvalQuery return f(ctx, q). +func (f SubcontrolQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.SubcontrolQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.SubcontrolQuery", q) +} + +// The SubcontrolMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type SubcontrolMutationRuleFunc func(context.Context, *generated.SubcontrolMutation) error + +// EvalMutation calls f(ctx, m). +func (f SubcontrolMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.SubcontrolMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.SubcontrolMutation", m) +} + +// The SubcontrolHistoryQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type SubcontrolHistoryQueryRuleFunc func(context.Context, *generated.SubcontrolHistoryQuery) error + +// EvalQuery return f(ctx, q). +func (f SubcontrolHistoryQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.SubcontrolHistoryQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.SubcontrolHistoryQuery", q) +} + +// The SubcontrolHistoryMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type SubcontrolHistoryMutationRuleFunc func(context.Context, *generated.SubcontrolHistoryMutation) error + +// EvalMutation calls f(ctx, m). +func (f SubcontrolHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.SubcontrolHistoryMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.SubcontrolHistoryMutation", m) +} + // The SubscriberQueryRuleFunc type is an adapter to allow the use of ordinary // functions as a query rule. type SubscriberQueryRuleFunc func(context.Context, *generated.SubscriberQuery) error @@ -1516,10 +1948,22 @@ func queryFilter(q generated.Query) (Filter, error) { switch q := q.(type) { case *generated.APITokenQuery: return q.Filter(), nil + case *generated.ActionPlanQuery: + return q.Filter(), nil + case *generated.ActionPlanHistoryQuery: + return q.Filter(), nil case *generated.ContactQuery: return q.Filter(), nil case *generated.ContactHistoryQuery: return q.Filter(), nil + case *generated.ControlQuery: + return q.Filter(), nil + case *generated.ControlHistoryQuery: + return q.Filter(), nil + case *generated.ControlObjectiveQuery: + return q.Filter(), nil + case *generated.ControlObjectiveHistoryQuery: + return q.Filter(), nil case *generated.DocumentDataQuery: return q.Filter(), nil case *generated.DocumentDataHistoryQuery: @@ -1578,8 +2022,16 @@ func queryFilter(q generated.Query) (Filter, error) { return q.Filter(), nil case *generated.IntegrationHistoryQuery: return q.Filter(), nil + case *generated.InternalPolicyQuery: + return q.Filter(), nil + case *generated.InternalPolicyHistoryQuery: + return q.Filter(), nil case *generated.InviteQuery: return q.Filter(), nil + case *generated.NarrativeQuery: + return q.Filter(), nil + case *generated.NarrativeHistoryQuery: + return q.Filter(), nil case *generated.NoteQuery: return q.Filter(), nil case *generated.NoteHistoryQuery: @@ -1606,6 +2058,22 @@ func queryFilter(q generated.Query) (Filter, error) { return q.Filter(), nil case *generated.PersonalAccessTokenQuery: return q.Filter(), nil + case *generated.ProcedureQuery: + return q.Filter(), nil + case *generated.ProcedureHistoryQuery: + return q.Filter(), nil + case *generated.RiskQuery: + return q.Filter(), nil + case *generated.RiskHistoryQuery: + return q.Filter(), nil + case *generated.StandardQuery: + return q.Filter(), nil + case *generated.StandardHistoryQuery: + return q.Filter(), nil + case *generated.SubcontrolQuery: + return q.Filter(), nil + case *generated.SubcontrolHistoryQuery: + return q.Filter(), nil case *generated.SubscriberQuery: return q.Filter(), nil case *generated.TFASettingQuery: @@ -1637,10 +2105,22 @@ func mutationFilter(m generated.Mutation) (Filter, error) { switch m := m.(type) { case *generated.APITokenMutation: return m.Filter(), nil + case *generated.ActionPlanMutation: + return m.Filter(), nil + case *generated.ActionPlanHistoryMutation: + return m.Filter(), nil case *generated.ContactMutation: return m.Filter(), nil case *generated.ContactHistoryMutation: return m.Filter(), nil + case *generated.ControlMutation: + return m.Filter(), nil + case *generated.ControlHistoryMutation: + return m.Filter(), nil + case *generated.ControlObjectiveMutation: + return m.Filter(), nil + case *generated.ControlObjectiveHistoryMutation: + return m.Filter(), nil case *generated.DocumentDataMutation: return m.Filter(), nil case *generated.DocumentDataHistoryMutation: @@ -1699,8 +2179,16 @@ func mutationFilter(m generated.Mutation) (Filter, error) { return m.Filter(), nil case *generated.IntegrationHistoryMutation: return m.Filter(), nil + case *generated.InternalPolicyMutation: + return m.Filter(), nil + case *generated.InternalPolicyHistoryMutation: + return m.Filter(), nil case *generated.InviteMutation: return m.Filter(), nil + case *generated.NarrativeMutation: + return m.Filter(), nil + case *generated.NarrativeHistoryMutation: + return m.Filter(), nil case *generated.NoteMutation: return m.Filter(), nil case *generated.NoteHistoryMutation: @@ -1727,6 +2215,22 @@ func mutationFilter(m generated.Mutation) (Filter, error) { return m.Filter(), nil case *generated.PersonalAccessTokenMutation: return m.Filter(), nil + case *generated.ProcedureMutation: + return m.Filter(), nil + case *generated.ProcedureHistoryMutation: + return m.Filter(), nil + case *generated.RiskMutation: + return m.Filter(), nil + case *generated.RiskHistoryMutation: + return m.Filter(), nil + case *generated.StandardMutation: + return m.Filter(), nil + case *generated.StandardHistoryMutation: + return m.Filter(), nil + case *generated.SubcontrolMutation: + return m.Filter(), nil + case *generated.SubcontrolHistoryMutation: + return m.Filter(), nil case *generated.SubscriberMutation: return m.Filter(), nil case *generated.TFASettingMutation: diff --git a/internal/ent/generated/procedure.go b/internal/ent/generated/procedure.go new file mode 100644 index 00000000..020cba75 --- /dev/null +++ b/internal/ent/generated/procedure.go @@ -0,0 +1,484 @@ +// 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/internal/ent/generated/procedure" +) + +// Procedure is the model entity for the Procedure schema. +type Procedure 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the procedure + Name string `json:"name,omitempty"` + // description of the procedure + Description string `json:"description,omitempty"` + // status of the procedure + Status string `json:"status,omitempty"` + // type of the procedure + ProcedureType string `json:"procedure_type,omitempty"` + // version of the procedure + Version string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope string `json:"purpose_and_scope,omitempty"` + // background of the procedure + Background string `json:"background,omitempty"` + // which controls are satisfied by the procedure + Satisfies string `json:"satisfies,omitempty"` + // json data for the procedure document + Details map[string]interface{} `json:"details,omitempty"` + // Edges holds the relations/edges for other nodes in the graph. + // The values are being populated by the ProcedureQuery when eager-loading is set. + Edges ProcedureEdges `json:"edges"` + control_objective_procedures *string + standard_procedures *string + selectValues sql.SelectValues +} + +// ProcedureEdges holds the relations/edges for other nodes in the graph. +type ProcedureEdges struct { + // Control holds the value of the control edge. + Control []*Control `json:"control,omitempty"` + // Internalpolicy holds the value of the internalpolicy edge. + Internalpolicy []*InternalPolicy `json:"internalpolicy,omitempty"` + // Narratives holds the value of the narratives edge. + Narratives []*Narrative `json:"narratives,omitempty"` + // Risks holds the value of the risks edge. + Risks []*Risk `json:"risks,omitempty"` + // loadedTypes holds the information for reporting if a + // type was loaded (or requested) in eager-loading or not. + loadedTypes [4]bool + // totalCount holds the count of the edges above. + totalCount [4]map[string]int + + namedControl map[string][]*Control + namedInternalpolicy map[string][]*InternalPolicy + namedNarratives map[string][]*Narrative + namedRisks map[string][]*Risk +} + +// ControlOrErr returns the Control value or an error if the edge +// was not loaded in eager-loading. +func (e ProcedureEdges) ControlOrErr() ([]*Control, error) { + if e.loadedTypes[0] { + return e.Control, nil + } + return nil, &NotLoadedError{edge: "control"} +} + +// InternalpolicyOrErr returns the Internalpolicy value or an error if the edge +// was not loaded in eager-loading. +func (e ProcedureEdges) InternalpolicyOrErr() ([]*InternalPolicy, error) { + if e.loadedTypes[1] { + return e.Internalpolicy, nil + } + return nil, &NotLoadedError{edge: "internalpolicy"} +} + +// NarrativesOrErr returns the Narratives value or an error if the edge +// was not loaded in eager-loading. +func (e ProcedureEdges) NarrativesOrErr() ([]*Narrative, error) { + if e.loadedTypes[2] { + return e.Narratives, nil + } + return nil, &NotLoadedError{edge: "narratives"} +} + +// RisksOrErr returns the Risks value or an error if the edge +// was not loaded in eager-loading. +func (e ProcedureEdges) RisksOrErr() ([]*Risk, error) { + if e.loadedTypes[3] { + return e.Risks, nil + } + return nil, &NotLoadedError{edge: "risks"} +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*Procedure) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case procedure.FieldTags, procedure.FieldDetails: + values[i] = new([]byte) + case procedure.FieldID, procedure.FieldCreatedBy, procedure.FieldUpdatedBy, procedure.FieldDeletedBy, procedure.FieldMappingID, procedure.FieldName, procedure.FieldDescription, procedure.FieldStatus, procedure.FieldProcedureType, procedure.FieldVersion, procedure.FieldPurposeAndScope, procedure.FieldBackground, procedure.FieldSatisfies: + values[i] = new(sql.NullString) + case procedure.FieldCreatedAt, procedure.FieldUpdatedAt, procedure.FieldDeletedAt: + values[i] = new(sql.NullTime) + case procedure.ForeignKeys[0]: // control_objective_procedures + values[i] = new(sql.NullString) + case procedure.ForeignKeys[1]: // standard_procedures + values[i] = new(sql.NullString) + default: + values[i] = new(sql.UnknownType) + } + } + return values, nil +} + +// assignValues assigns the values that were returned from sql.Rows (after scanning) +// to the Procedure fields. +func (pr *Procedure) 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 procedure.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + pr.ID = value.String + } + case procedure.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 { + pr.CreatedAt = value.Time + } + case procedure.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 { + pr.UpdatedAt = value.Time + } + case procedure.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 { + pr.CreatedBy = value.String + } + case procedure.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 { + pr.UpdatedBy = value.String + } + case procedure.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 { + pr.DeletedAt = value.Time + } + case procedure.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 { + pr.DeletedBy = value.String + } + case procedure.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + pr.MappingID = value.String + } + case procedure.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, &pr.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case procedure.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + pr.Name = value.String + } + case procedure.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + pr.Description = value.String + } + case procedure.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + pr.Status = value.String + } + case procedure.FieldProcedureType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field procedure_type", values[i]) + } else if value.Valid { + pr.ProcedureType = value.String + } + case procedure.FieldVersion: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field version", values[i]) + } else if value.Valid { + pr.Version = value.String + } + case procedure.FieldPurposeAndScope: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field purpose_and_scope", values[i]) + } else if value.Valid { + pr.PurposeAndScope = value.String + } + case procedure.FieldBackground: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field background", values[i]) + } else if value.Valid { + pr.Background = value.String + } + case procedure.FieldSatisfies: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field satisfies", values[i]) + } else if value.Valid { + pr.Satisfies = value.String + } + case procedure.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &pr.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + case procedure.ForeignKeys[0]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_objective_procedures", values[i]) + } else if value.Valid { + pr.control_objective_procedures = new(string) + *pr.control_objective_procedures = value.String + } + case procedure.ForeignKeys[1]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field standard_procedures", values[i]) + } else if value.Valid { + pr.standard_procedures = new(string) + *pr.standard_procedures = value.String + } + default: + pr.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the Procedure. +// This includes values selected through modifiers, order, etc. +func (pr *Procedure) Value(name string) (ent.Value, error) { + return pr.selectValues.Get(name) +} + +// QueryControl queries the "control" edge of the Procedure entity. +func (pr *Procedure) QueryControl() *ControlQuery { + return NewProcedureClient(pr.config).QueryControl(pr) +} + +// QueryInternalpolicy queries the "internalpolicy" edge of the Procedure entity. +func (pr *Procedure) QueryInternalpolicy() *InternalPolicyQuery { + return NewProcedureClient(pr.config).QueryInternalpolicy(pr) +} + +// QueryNarratives queries the "narratives" edge of the Procedure entity. +func (pr *Procedure) QueryNarratives() *NarrativeQuery { + return NewProcedureClient(pr.config).QueryNarratives(pr) +} + +// QueryRisks queries the "risks" edge of the Procedure entity. +func (pr *Procedure) QueryRisks() *RiskQuery { + return NewProcedureClient(pr.config).QueryRisks(pr) +} + +// Update returns a builder for updating this Procedure. +// Note that you need to call Procedure.Unwrap() before calling this method if this Procedure +// was returned from a transaction, and the transaction was committed or rolled back. +func (pr *Procedure) Update() *ProcedureUpdateOne { + return NewProcedureClient(pr.config).UpdateOne(pr) +} + +// Unwrap unwraps the Procedure 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 (pr *Procedure) Unwrap() *Procedure { + _tx, ok := pr.config.driver.(*txDriver) + if !ok { + panic("generated: Procedure is not a transactional entity") + } + pr.config.driver = _tx.drv + return pr +} + +// String implements the fmt.Stringer. +func (pr *Procedure) String() string { + var builder strings.Builder + builder.WriteString("Procedure(") + builder.WriteString(fmt.Sprintf("id=%v, ", pr.ID)) + builder.WriteString("created_at=") + builder.WriteString(pr.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(pr.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(pr.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(pr.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(pr.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(pr.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(pr.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", pr.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(pr.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(pr.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(pr.Status) + builder.WriteString(", ") + builder.WriteString("procedure_type=") + builder.WriteString(pr.ProcedureType) + builder.WriteString(", ") + builder.WriteString("version=") + builder.WriteString(pr.Version) + builder.WriteString(", ") + builder.WriteString("purpose_and_scope=") + builder.WriteString(pr.PurposeAndScope) + builder.WriteString(", ") + builder.WriteString("background=") + builder.WriteString(pr.Background) + builder.WriteString(", ") + builder.WriteString("satisfies=") + builder.WriteString(pr.Satisfies) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", pr.Details)) + builder.WriteByte(')') + return builder.String() +} + +// NamedControl returns the Control named value or an error if the edge was not +// loaded in eager-loading with this name. +func (pr *Procedure) NamedControl(name string) ([]*Control, error) { + if pr.Edges.namedControl == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := pr.Edges.namedControl[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (pr *Procedure) appendNamedControl(name string, edges ...*Control) { + if pr.Edges.namedControl == nil { + pr.Edges.namedControl = make(map[string][]*Control) + } + if len(edges) == 0 { + pr.Edges.namedControl[name] = []*Control{} + } else { + pr.Edges.namedControl[name] = append(pr.Edges.namedControl[name], edges...) + } +} + +// NamedInternalpolicy returns the Internalpolicy named value or an error if the edge was not +// loaded in eager-loading with this name. +func (pr *Procedure) NamedInternalpolicy(name string) ([]*InternalPolicy, error) { + if pr.Edges.namedInternalpolicy == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := pr.Edges.namedInternalpolicy[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (pr *Procedure) appendNamedInternalpolicy(name string, edges ...*InternalPolicy) { + if pr.Edges.namedInternalpolicy == nil { + pr.Edges.namedInternalpolicy = make(map[string][]*InternalPolicy) + } + if len(edges) == 0 { + pr.Edges.namedInternalpolicy[name] = []*InternalPolicy{} + } else { + pr.Edges.namedInternalpolicy[name] = append(pr.Edges.namedInternalpolicy[name], edges...) + } +} + +// NamedNarratives returns the Narratives named value or an error if the edge was not +// loaded in eager-loading with this name. +func (pr *Procedure) NamedNarratives(name string) ([]*Narrative, error) { + if pr.Edges.namedNarratives == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := pr.Edges.namedNarratives[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (pr *Procedure) appendNamedNarratives(name string, edges ...*Narrative) { + if pr.Edges.namedNarratives == nil { + pr.Edges.namedNarratives = make(map[string][]*Narrative) + } + if len(edges) == 0 { + pr.Edges.namedNarratives[name] = []*Narrative{} + } else { + pr.Edges.namedNarratives[name] = append(pr.Edges.namedNarratives[name], edges...) + } +} + +// NamedRisks returns the Risks named value or an error if the edge was not +// loaded in eager-loading with this name. +func (pr *Procedure) NamedRisks(name string) ([]*Risk, error) { + if pr.Edges.namedRisks == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := pr.Edges.namedRisks[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (pr *Procedure) appendNamedRisks(name string, edges ...*Risk) { + if pr.Edges.namedRisks == nil { + pr.Edges.namedRisks = make(map[string][]*Risk) + } + if len(edges) == 0 { + pr.Edges.namedRisks[name] = []*Risk{} + } else { + pr.Edges.namedRisks[name] = append(pr.Edges.namedRisks[name], edges...) + } +} + +// Procedures is a parsable slice of Procedure. +type Procedures []*Procedure diff --git a/internal/ent/generated/procedure/procedure.go b/internal/ent/generated/procedure/procedure.go new file mode 100644 index 00000000..e02a9e9b --- /dev/null +++ b/internal/ent/generated/procedure/procedure.go @@ -0,0 +1,330 @@ +// Code generated by ent, DO NOT EDIT. + +package procedure + +import ( + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" +) + +const ( + // Label holds the string label denoting the procedure type in the database. + Label = "procedure" + // 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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldProcedureType holds the string denoting the procedure_type field in the database. + FieldProcedureType = "procedure_type" + // FieldVersion holds the string denoting the version field in the database. + FieldVersion = "version" + // FieldPurposeAndScope holds the string denoting the purpose_and_scope field in the database. + FieldPurposeAndScope = "purpose_and_scope" + // FieldBackground holds the string denoting the background field in the database. + FieldBackground = "background" + // FieldSatisfies holds the string denoting the satisfies field in the database. + FieldSatisfies = "satisfies" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // EdgeControl holds the string denoting the control edge name in mutations. + EdgeControl = "control" + // EdgeInternalpolicy holds the string denoting the internalpolicy edge name in mutations. + EdgeInternalpolicy = "internalpolicy" + // EdgeNarratives holds the string denoting the narratives edge name in mutations. + EdgeNarratives = "narratives" + // EdgeRisks holds the string denoting the risks edge name in mutations. + EdgeRisks = "risks" + // Table holds the table name of the procedure in the database. + Table = "procedures" + // ControlTable is the table that holds the control relation/edge. The primary key declared below. + ControlTable = "control_procedures" + // ControlInverseTable is the table name for the Control entity. + // It exists in this package in order to avoid circular dependency with the "control" package. + ControlInverseTable = "controls" + // InternalpolicyTable is the table that holds the internalpolicy relation/edge. The primary key declared below. + InternalpolicyTable = "internal_policy_procedures" + // InternalpolicyInverseTable is the table name for the InternalPolicy entity. + // It exists in this package in order to avoid circular dependency with the "internalpolicy" package. + InternalpolicyInverseTable = "internal_policies" + // NarrativesTable is the table that holds the narratives relation/edge. The primary key declared below. + NarrativesTable = "procedure_narratives" + // NarrativesInverseTable is the table name for the Narrative entity. + // It exists in this package in order to avoid circular dependency with the "narrative" package. + NarrativesInverseTable = "narratives" + // RisksTable is the table that holds the risks relation/edge. The primary key declared below. + RisksTable = "procedure_risks" + // RisksInverseTable is the table name for the Risk entity. + // It exists in this package in order to avoid circular dependency with the "risk" package. + RisksInverseTable = "risks" +) + +// Columns holds all SQL columns for procedure fields. +var Columns = []string{ + FieldID, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldProcedureType, + FieldVersion, + FieldPurposeAndScope, + FieldBackground, + FieldSatisfies, + FieldDetails, +} + +// ForeignKeys holds the SQL foreign-keys that are owned by the "procedures" +// table and are not defined as standalone fields in the schema. +var ForeignKeys = []string{ + "control_objective_procedures", + "standard_procedures", +} + +var ( + // ControlPrimaryKey and ControlColumn2 are the table columns denoting the + // primary key for the control relation (M2M). + ControlPrimaryKey = []string{"control_id", "procedure_id"} + // InternalpolicyPrimaryKey and InternalpolicyColumn2 are the table columns denoting the + // primary key for the internalpolicy relation (M2M). + InternalpolicyPrimaryKey = []string{"internal_policy_id", "procedure_id"} + // NarrativesPrimaryKey and NarrativesColumn2 are the table columns denoting the + // primary key for the narratives relation (M2M). + NarrativesPrimaryKey = []string{"procedure_id", "narrative_id"} + // RisksPrimaryKey and RisksColumn2 are the table columns denoting the + // primary key for the risks relation (M2M). + RisksPrimaryKey = []string{"procedure_id", "risk_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 + } + } + for i := range ForeignKeys { + if column == ForeignKeys[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/internal/ent/generated/runtime" +var ( + Hooks [2]ent.Hook + Interceptors [1]ent.Interceptor + // 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 + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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 +) + +// OrderOption defines the ordering options for the Procedure 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByProcedureType orders the results by the procedure_type field. +func ByProcedureType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldProcedureType, opts...).ToFunc() +} + +// ByVersion orders the results by the version field. +func ByVersion(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldVersion, opts...).ToFunc() +} + +// ByPurposeAndScope orders the results by the purpose_and_scope field. +func ByPurposeAndScope(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldPurposeAndScope, opts...).ToFunc() +} + +// ByBackground orders the results by the background field. +func ByBackground(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldBackground, opts...).ToFunc() +} + +// BySatisfies orders the results by the satisfies field. +func BySatisfies(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSatisfies, opts...).ToFunc() +} + +// ByControlCount orders the results by control count. +func ByControlCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlStep(), opts...) + } +} + +// ByControl orders the results by control terms. +func ByControl(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByInternalpolicyCount orders the results by internalpolicy count. +func ByInternalpolicyCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newInternalpolicyStep(), opts...) + } +} + +// ByInternalpolicy orders the results by internalpolicy terms. +func ByInternalpolicy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newInternalpolicyStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByNarrativesCount orders the results by narratives count. +func ByNarrativesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newNarrativesStep(), opts...) + } +} + +// ByNarratives orders the results by narratives terms. +func ByNarratives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newNarrativesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByRisksCount orders the results by risks count. +func ByRisksCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newRisksStep(), opts...) + } +} + +// ByRisks orders the results by risks terms. +func ByRisks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newRisksStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} +func newControlStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ControlInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ControlTable, ControlPrimaryKey...), + ) +} +func newInternalpolicyStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(InternalpolicyInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, InternalpolicyTable, InternalpolicyPrimaryKey...), + ) +} +func newNarrativesStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(NarrativesInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, NarrativesTable, NarrativesPrimaryKey...), + ) +} +func newRisksStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(RisksInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, RisksTable, RisksPrimaryKey...), + ) +} diff --git a/internal/ent/generated/procedure/where.go b/internal/ent/generated/procedure/where.go new file mode 100644 index 00000000..ef9ecad7 --- /dev/null +++ b/internal/ent/generated/procedure/where.go @@ -0,0 +1,1324 @@ +// Code generated by ent, DO NOT EDIT. + +package procedure + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.Procedure { + return predicate.Procedure(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.Procedure { + return predicate.Procedure(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.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldStatus, v)) +} + +// ProcedureType applies equality check predicate on the "procedure_type" field. It's identical to ProcedureTypeEQ. +func ProcedureType(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldProcedureType, v)) +} + +// Version applies equality check predicate on the "version" field. It's identical to VersionEQ. +func Version(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldVersion, v)) +} + +// PurposeAndScope applies equality check predicate on the "purpose_and_scope" field. It's identical to PurposeAndScopeEQ. +func PurposeAndScope(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldPurposeAndScope, v)) +} + +// Background applies equality check predicate on the "background" field. It's identical to BackgroundEQ. +func Background(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldBackground, v)) +} + +// Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ. +func Satisfies(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldSatisfies, v)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContainsFold(FieldStatus, v)) +} + +// ProcedureTypeEQ applies the EQ predicate on the "procedure_type" field. +func ProcedureTypeEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldProcedureType, v)) +} + +// ProcedureTypeNEQ applies the NEQ predicate on the "procedure_type" field. +func ProcedureTypeNEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldProcedureType, v)) +} + +// ProcedureTypeIn applies the In predicate on the "procedure_type" field. +func ProcedureTypeIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldProcedureType, vs...)) +} + +// ProcedureTypeNotIn applies the NotIn predicate on the "procedure_type" field. +func ProcedureTypeNotIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldProcedureType, vs...)) +} + +// ProcedureTypeGT applies the GT predicate on the "procedure_type" field. +func ProcedureTypeGT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldProcedureType, v)) +} + +// ProcedureTypeGTE applies the GTE predicate on the "procedure_type" field. +func ProcedureTypeGTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldProcedureType, v)) +} + +// ProcedureTypeLT applies the LT predicate on the "procedure_type" field. +func ProcedureTypeLT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldProcedureType, v)) +} + +// ProcedureTypeLTE applies the LTE predicate on the "procedure_type" field. +func ProcedureTypeLTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldProcedureType, v)) +} + +// ProcedureTypeContains applies the Contains predicate on the "procedure_type" field. +func ProcedureTypeContains(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContains(FieldProcedureType, v)) +} + +// ProcedureTypeHasPrefix applies the HasPrefix predicate on the "procedure_type" field. +func ProcedureTypeHasPrefix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasPrefix(FieldProcedureType, v)) +} + +// ProcedureTypeHasSuffix applies the HasSuffix predicate on the "procedure_type" field. +func ProcedureTypeHasSuffix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasSuffix(FieldProcedureType, v)) +} + +// ProcedureTypeIsNil applies the IsNil predicate on the "procedure_type" field. +func ProcedureTypeIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldProcedureType)) +} + +// ProcedureTypeNotNil applies the NotNil predicate on the "procedure_type" field. +func ProcedureTypeNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldProcedureType)) +} + +// ProcedureTypeEqualFold applies the EqualFold predicate on the "procedure_type" field. +func ProcedureTypeEqualFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldProcedureType, v)) +} + +// ProcedureTypeContainsFold applies the ContainsFold predicate on the "procedure_type" field. +func ProcedureTypeContainsFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContainsFold(FieldProcedureType, v)) +} + +// VersionEQ applies the EQ predicate on the "version" field. +func VersionEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldVersion, v)) +} + +// VersionNEQ applies the NEQ predicate on the "version" field. +func VersionNEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldVersion, v)) +} + +// VersionIn applies the In predicate on the "version" field. +func VersionIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldVersion, vs...)) +} + +// VersionNotIn applies the NotIn predicate on the "version" field. +func VersionNotIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldVersion, vs...)) +} + +// VersionGT applies the GT predicate on the "version" field. +func VersionGT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldVersion, v)) +} + +// VersionGTE applies the GTE predicate on the "version" field. +func VersionGTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldVersion, v)) +} + +// VersionLT applies the LT predicate on the "version" field. +func VersionLT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldVersion, v)) +} + +// VersionLTE applies the LTE predicate on the "version" field. +func VersionLTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldVersion, v)) +} + +// VersionContains applies the Contains predicate on the "version" field. +func VersionContains(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContains(FieldVersion, v)) +} + +// VersionHasPrefix applies the HasPrefix predicate on the "version" field. +func VersionHasPrefix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasPrefix(FieldVersion, v)) +} + +// VersionHasSuffix applies the HasSuffix predicate on the "version" field. +func VersionHasSuffix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasSuffix(FieldVersion, v)) +} + +// VersionIsNil applies the IsNil predicate on the "version" field. +func VersionIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldVersion)) +} + +// VersionNotNil applies the NotNil predicate on the "version" field. +func VersionNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldVersion)) +} + +// VersionEqualFold applies the EqualFold predicate on the "version" field. +func VersionEqualFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldVersion, v)) +} + +// VersionContainsFold applies the ContainsFold predicate on the "version" field. +func VersionContainsFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContainsFold(FieldVersion, v)) +} + +// PurposeAndScopeEQ applies the EQ predicate on the "purpose_and_scope" field. +func PurposeAndScopeEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeNEQ applies the NEQ predicate on the "purpose_and_scope" field. +func PurposeAndScopeNEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeIn applies the In predicate on the "purpose_and_scope" field. +func PurposeAndScopeIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldPurposeAndScope, vs...)) +} + +// PurposeAndScopeNotIn applies the NotIn predicate on the "purpose_and_scope" field. +func PurposeAndScopeNotIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldPurposeAndScope, vs...)) +} + +// PurposeAndScopeGT applies the GT predicate on the "purpose_and_scope" field. +func PurposeAndScopeGT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeGTE applies the GTE predicate on the "purpose_and_scope" field. +func PurposeAndScopeGTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeLT applies the LT predicate on the "purpose_and_scope" field. +func PurposeAndScopeLT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeLTE applies the LTE predicate on the "purpose_and_scope" field. +func PurposeAndScopeLTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeContains applies the Contains predicate on the "purpose_and_scope" field. +func PurposeAndScopeContains(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContains(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeHasPrefix applies the HasPrefix predicate on the "purpose_and_scope" field. +func PurposeAndScopeHasPrefix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasPrefix(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeHasSuffix applies the HasSuffix predicate on the "purpose_and_scope" field. +func PurposeAndScopeHasSuffix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasSuffix(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeIsNil applies the IsNil predicate on the "purpose_and_scope" field. +func PurposeAndScopeIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldPurposeAndScope)) +} + +// PurposeAndScopeNotNil applies the NotNil predicate on the "purpose_and_scope" field. +func PurposeAndScopeNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldPurposeAndScope)) +} + +// PurposeAndScopeEqualFold applies the EqualFold predicate on the "purpose_and_scope" field. +func PurposeAndScopeEqualFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeContainsFold applies the ContainsFold predicate on the "purpose_and_scope" field. +func PurposeAndScopeContainsFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContainsFold(FieldPurposeAndScope, v)) +} + +// BackgroundEQ applies the EQ predicate on the "background" field. +func BackgroundEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldBackground, v)) +} + +// BackgroundNEQ applies the NEQ predicate on the "background" field. +func BackgroundNEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldBackground, v)) +} + +// BackgroundIn applies the In predicate on the "background" field. +func BackgroundIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldBackground, vs...)) +} + +// BackgroundNotIn applies the NotIn predicate on the "background" field. +func BackgroundNotIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldBackground, vs...)) +} + +// BackgroundGT applies the GT predicate on the "background" field. +func BackgroundGT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldBackground, v)) +} + +// BackgroundGTE applies the GTE predicate on the "background" field. +func BackgroundGTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldBackground, v)) +} + +// BackgroundLT applies the LT predicate on the "background" field. +func BackgroundLT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldBackground, v)) +} + +// BackgroundLTE applies the LTE predicate on the "background" field. +func BackgroundLTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldBackground, v)) +} + +// BackgroundContains applies the Contains predicate on the "background" field. +func BackgroundContains(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContains(FieldBackground, v)) +} + +// BackgroundHasPrefix applies the HasPrefix predicate on the "background" field. +func BackgroundHasPrefix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasPrefix(FieldBackground, v)) +} + +// BackgroundHasSuffix applies the HasSuffix predicate on the "background" field. +func BackgroundHasSuffix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasSuffix(FieldBackground, v)) +} + +// BackgroundIsNil applies the IsNil predicate on the "background" field. +func BackgroundIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldBackground)) +} + +// BackgroundNotNil applies the NotNil predicate on the "background" field. +func BackgroundNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldBackground)) +} + +// BackgroundEqualFold applies the EqualFold predicate on the "background" field. +func BackgroundEqualFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldBackground, v)) +} + +// BackgroundContainsFold applies the ContainsFold predicate on the "background" field. +func BackgroundContainsFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContainsFold(FieldBackground, v)) +} + +// SatisfiesEQ applies the EQ predicate on the "satisfies" field. +func SatisfiesEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEQ(FieldSatisfies, v)) +} + +// SatisfiesNEQ applies the NEQ predicate on the "satisfies" field. +func SatisfiesNEQ(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldNEQ(FieldSatisfies, v)) +} + +// SatisfiesIn applies the In predicate on the "satisfies" field. +func SatisfiesIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldIn(FieldSatisfies, vs...)) +} + +// SatisfiesNotIn applies the NotIn predicate on the "satisfies" field. +func SatisfiesNotIn(vs ...string) predicate.Procedure { + return predicate.Procedure(sql.FieldNotIn(FieldSatisfies, vs...)) +} + +// SatisfiesGT applies the GT predicate on the "satisfies" field. +func SatisfiesGT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGT(FieldSatisfies, v)) +} + +// SatisfiesGTE applies the GTE predicate on the "satisfies" field. +func SatisfiesGTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldGTE(FieldSatisfies, v)) +} + +// SatisfiesLT applies the LT predicate on the "satisfies" field. +func SatisfiesLT(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLT(FieldSatisfies, v)) +} + +// SatisfiesLTE applies the LTE predicate on the "satisfies" field. +func SatisfiesLTE(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldLTE(FieldSatisfies, v)) +} + +// SatisfiesContains applies the Contains predicate on the "satisfies" field. +func SatisfiesContains(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContains(FieldSatisfies, v)) +} + +// SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field. +func SatisfiesHasPrefix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasPrefix(FieldSatisfies, v)) +} + +// SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field. +func SatisfiesHasSuffix(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldHasSuffix(FieldSatisfies, v)) +} + +// SatisfiesIsNil applies the IsNil predicate on the "satisfies" field. +func SatisfiesIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldSatisfies)) +} + +// SatisfiesNotNil applies the NotNil predicate on the "satisfies" field. +func SatisfiesNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldSatisfies)) +} + +// SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field. +func SatisfiesEqualFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldEqualFold(FieldSatisfies, v)) +} + +// SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field. +func SatisfiesContainsFold(v string) predicate.Procedure { + return predicate.Procedure(sql.FieldContainsFold(FieldSatisfies, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.Procedure { + return predicate.Procedure(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.Procedure { + return predicate.Procedure(sql.FieldNotNull(FieldDetails)) +} + +// HasControl applies the HasEdge predicate on the "control" edge. +func HasControl() predicate.Procedure { + return predicate.Procedure(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ControlTable, ControlPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlProcedures + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlWith applies the HasEdge predicate on the "control" edge with a given conditions (other predicates). +func HasControlWith(preds ...predicate.Control) predicate.Procedure { + return predicate.Procedure(func(s *sql.Selector) { + step := newControlStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlProcedures + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasInternalpolicy applies the HasEdge predicate on the "internalpolicy" edge. +func HasInternalpolicy() predicate.Procedure { + return predicate.Procedure(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, InternalpolicyTable, InternalpolicyPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicyProcedures + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasInternalpolicyWith applies the HasEdge predicate on the "internalpolicy" edge with a given conditions (other predicates). +func HasInternalpolicyWith(preds ...predicate.InternalPolicy) predicate.Procedure { + return predicate.Procedure(func(s *sql.Selector) { + step := newInternalpolicyStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicyProcedures + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasNarratives applies the HasEdge predicate on the "narratives" edge. +func HasNarratives() predicate.Procedure { + return predicate.Procedure(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, NarrativesTable, NarrativesPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.ProcedureNarratives + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasNarrativesWith applies the HasEdge predicate on the "narratives" edge with a given conditions (other predicates). +func HasNarrativesWith(preds ...predicate.Narrative) predicate.Procedure { + return predicate.Procedure(func(s *sql.Selector) { + step := newNarrativesStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.ProcedureNarratives + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasRisks applies the HasEdge predicate on the "risks" edge. +func HasRisks() predicate.Procedure { + return predicate.Procedure(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, RisksTable, RisksPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.ProcedureRisks + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasRisksWith applies the HasEdge predicate on the "risks" edge with a given conditions (other predicates). +func HasRisksWith(preds ...predicate.Risk) predicate.Procedure { + return predicate.Procedure(func(s *sql.Selector) { + step := newRisksStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.ProcedureRisks + 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.Procedure) predicate.Procedure { + return predicate.Procedure(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.Procedure) predicate.Procedure { + return predicate.Procedure(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.Procedure) predicate.Procedure { + return predicate.Procedure(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/procedure_create.go b/internal/ent/generated/procedure_create.go new file mode 100644 index 00000000..927c19ed --- /dev/null +++ b/internal/ent/generated/procedure_create.go @@ -0,0 +1,652 @@ +// 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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" +) + +// ProcedureCreate is the builder for creating a Procedure entity. +type ProcedureCreate struct { + config + mutation *ProcedureMutation + hooks []Hook +} + +// SetCreatedAt sets the "created_at" field. +func (pc *ProcedureCreate) SetCreatedAt(t time.Time) *ProcedureCreate { + pc.mutation.SetCreatedAt(t) + return pc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableCreatedAt(t *time.Time) *ProcedureCreate { + if t != nil { + pc.SetCreatedAt(*t) + } + return pc +} + +// SetUpdatedAt sets the "updated_at" field. +func (pc *ProcedureCreate) SetUpdatedAt(t time.Time) *ProcedureCreate { + pc.mutation.SetUpdatedAt(t) + return pc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableUpdatedAt(t *time.Time) *ProcedureCreate { + if t != nil { + pc.SetUpdatedAt(*t) + } + return pc +} + +// SetCreatedBy sets the "created_by" field. +func (pc *ProcedureCreate) SetCreatedBy(s string) *ProcedureCreate { + pc.mutation.SetCreatedBy(s) + return pc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableCreatedBy(s *string) *ProcedureCreate { + if s != nil { + pc.SetCreatedBy(*s) + } + return pc +} + +// SetUpdatedBy sets the "updated_by" field. +func (pc *ProcedureCreate) SetUpdatedBy(s string) *ProcedureCreate { + pc.mutation.SetUpdatedBy(s) + return pc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableUpdatedBy(s *string) *ProcedureCreate { + if s != nil { + pc.SetUpdatedBy(*s) + } + return pc +} + +// SetDeletedAt sets the "deleted_at" field. +func (pc *ProcedureCreate) SetDeletedAt(t time.Time) *ProcedureCreate { + pc.mutation.SetDeletedAt(t) + return pc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableDeletedAt(t *time.Time) *ProcedureCreate { + if t != nil { + pc.SetDeletedAt(*t) + } + return pc +} + +// SetDeletedBy sets the "deleted_by" field. +func (pc *ProcedureCreate) SetDeletedBy(s string) *ProcedureCreate { + pc.mutation.SetDeletedBy(s) + return pc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableDeletedBy(s *string) *ProcedureCreate { + if s != nil { + pc.SetDeletedBy(*s) + } + return pc +} + +// SetMappingID sets the "mapping_id" field. +func (pc *ProcedureCreate) SetMappingID(s string) *ProcedureCreate { + pc.mutation.SetMappingID(s) + return pc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableMappingID(s *string) *ProcedureCreate { + if s != nil { + pc.SetMappingID(*s) + } + return pc +} + +// SetTags sets the "tags" field. +func (pc *ProcedureCreate) SetTags(s []string) *ProcedureCreate { + pc.mutation.SetTags(s) + return pc +} + +// SetName sets the "name" field. +func (pc *ProcedureCreate) SetName(s string) *ProcedureCreate { + pc.mutation.SetName(s) + return pc +} + +// SetDescription sets the "description" field. +func (pc *ProcedureCreate) SetDescription(s string) *ProcedureCreate { + pc.mutation.SetDescription(s) + return pc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableDescription(s *string) *ProcedureCreate { + if s != nil { + pc.SetDescription(*s) + } + return pc +} + +// SetStatus sets the "status" field. +func (pc *ProcedureCreate) SetStatus(s string) *ProcedureCreate { + pc.mutation.SetStatus(s) + return pc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableStatus(s *string) *ProcedureCreate { + if s != nil { + pc.SetStatus(*s) + } + return pc +} + +// SetProcedureType sets the "procedure_type" field. +func (pc *ProcedureCreate) SetProcedureType(s string) *ProcedureCreate { + pc.mutation.SetProcedureType(s) + return pc +} + +// SetNillableProcedureType sets the "procedure_type" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableProcedureType(s *string) *ProcedureCreate { + if s != nil { + pc.SetProcedureType(*s) + } + return pc +} + +// SetVersion sets the "version" field. +func (pc *ProcedureCreate) SetVersion(s string) *ProcedureCreate { + pc.mutation.SetVersion(s) + return pc +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableVersion(s *string) *ProcedureCreate { + if s != nil { + pc.SetVersion(*s) + } + return pc +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (pc *ProcedureCreate) SetPurposeAndScope(s string) *ProcedureCreate { + pc.mutation.SetPurposeAndScope(s) + return pc +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillablePurposeAndScope(s *string) *ProcedureCreate { + if s != nil { + pc.SetPurposeAndScope(*s) + } + return pc +} + +// SetBackground sets the "background" field. +func (pc *ProcedureCreate) SetBackground(s string) *ProcedureCreate { + pc.mutation.SetBackground(s) + return pc +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableBackground(s *string) *ProcedureCreate { + if s != nil { + pc.SetBackground(*s) + } + return pc +} + +// SetSatisfies sets the "satisfies" field. +func (pc *ProcedureCreate) SetSatisfies(s string) *ProcedureCreate { + pc.mutation.SetSatisfies(s) + return pc +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableSatisfies(s *string) *ProcedureCreate { + if s != nil { + pc.SetSatisfies(*s) + } + return pc +} + +// SetDetails sets the "details" field. +func (pc *ProcedureCreate) SetDetails(m map[string]interface{}) *ProcedureCreate { + pc.mutation.SetDetails(m) + return pc +} + +// SetID sets the "id" field. +func (pc *ProcedureCreate) SetID(s string) *ProcedureCreate { + pc.mutation.SetID(s) + return pc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (pc *ProcedureCreate) SetNillableID(s *string) *ProcedureCreate { + if s != nil { + pc.SetID(*s) + } + return pc +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (pc *ProcedureCreate) AddControlIDs(ids ...string) *ProcedureCreate { + pc.mutation.AddControlIDs(ids...) + return pc +} + +// AddControl adds the "control" edges to the Control entity. +func (pc *ProcedureCreate) AddControl(c ...*Control) *ProcedureCreate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return pc.AddControlIDs(ids...) +} + +// AddInternalpolicyIDs adds the "internalpolicy" edge to the InternalPolicy entity by IDs. +func (pc *ProcedureCreate) AddInternalpolicyIDs(ids ...string) *ProcedureCreate { + pc.mutation.AddInternalpolicyIDs(ids...) + return pc +} + +// AddInternalpolicy adds the "internalpolicy" edges to the InternalPolicy entity. +func (pc *ProcedureCreate) AddInternalpolicy(i ...*InternalPolicy) *ProcedureCreate { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return pc.AddInternalpolicyIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (pc *ProcedureCreate) AddNarrativeIDs(ids ...string) *ProcedureCreate { + pc.mutation.AddNarrativeIDs(ids...) + return pc +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (pc *ProcedureCreate) AddNarratives(n ...*Narrative) *ProcedureCreate { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return pc.AddNarrativeIDs(ids...) +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. +func (pc *ProcedureCreate) AddRiskIDs(ids ...string) *ProcedureCreate { + pc.mutation.AddRiskIDs(ids...) + return pc +} + +// AddRisks adds the "risks" edges to the Risk entity. +func (pc *ProcedureCreate) AddRisks(r ...*Risk) *ProcedureCreate { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return pc.AddRiskIDs(ids...) +} + +// Mutation returns the ProcedureMutation object of the builder. +func (pc *ProcedureCreate) Mutation() *ProcedureMutation { + return pc.mutation +} + +// Save creates the Procedure in the database. +func (pc *ProcedureCreate) Save(ctx context.Context) (*Procedure, error) { + if err := pc.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, pc.sqlSave, pc.mutation, pc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (pc *ProcedureCreate) SaveX(ctx context.Context) *Procedure { + v, err := pc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (pc *ProcedureCreate) Exec(ctx context.Context) error { + _, err := pc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (pc *ProcedureCreate) ExecX(ctx context.Context) { + if err := pc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (pc *ProcedureCreate) defaults() error { + if _, ok := pc.mutation.CreatedAt(); !ok { + if procedure.DefaultCreatedAt == nil { + return fmt.Errorf("generated: uninitialized procedure.DefaultCreatedAt (forgotten import generated/runtime?)") + } + v := procedure.DefaultCreatedAt() + pc.mutation.SetCreatedAt(v) + } + if _, ok := pc.mutation.UpdatedAt(); !ok { + if procedure.DefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized procedure.DefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := procedure.DefaultUpdatedAt() + pc.mutation.SetUpdatedAt(v) + } + if _, ok := pc.mutation.MappingID(); !ok { + if procedure.DefaultMappingID == nil { + return fmt.Errorf("generated: uninitialized procedure.DefaultMappingID (forgotten import generated/runtime?)") + } + v := procedure.DefaultMappingID() + pc.mutation.SetMappingID(v) + } + if _, ok := pc.mutation.Tags(); !ok { + v := procedure.DefaultTags + pc.mutation.SetTags(v) + } + if _, ok := pc.mutation.ID(); !ok { + if procedure.DefaultID == nil { + return fmt.Errorf("generated: uninitialized procedure.DefaultID (forgotten import generated/runtime?)") + } + v := procedure.DefaultID() + pc.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (pc *ProcedureCreate) check() error { + if _, ok := pc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "Procedure.mapping_id"`)} + } + if _, ok := pc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "Procedure.name"`)} + } + return nil +} + +func (pc *ProcedureCreate) sqlSave(ctx context.Context) (*Procedure, error) { + if err := pc.check(); err != nil { + return nil, err + } + _node, _spec := pc.createSpec() + if err := sqlgraph.CreateNode(ctx, pc.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 Procedure.ID type: %T", _spec.ID.Value) + } + } + pc.mutation.id = &_node.ID + pc.mutation.done = true + return _node, nil +} + +func (pc *ProcedureCreate) createSpec() (*Procedure, *sqlgraph.CreateSpec) { + var ( + _node = &Procedure{config: pc.config} + _spec = sqlgraph.NewCreateSpec(procedure.Table, sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString)) + ) + _spec.Schema = pc.schemaConfig.Procedure + if id, ok := pc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := pc.mutation.CreatedAt(); ok { + _spec.SetField(procedure.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := pc.mutation.UpdatedAt(); ok { + _spec.SetField(procedure.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := pc.mutation.CreatedBy(); ok { + _spec.SetField(procedure.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := pc.mutation.UpdatedBy(); ok { + _spec.SetField(procedure.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := pc.mutation.DeletedAt(); ok { + _spec.SetField(procedure.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := pc.mutation.DeletedBy(); ok { + _spec.SetField(procedure.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := pc.mutation.MappingID(); ok { + _spec.SetField(procedure.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := pc.mutation.Tags(); ok { + _spec.SetField(procedure.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := pc.mutation.Name(); ok { + _spec.SetField(procedure.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := pc.mutation.Description(); ok { + _spec.SetField(procedure.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := pc.mutation.Status(); ok { + _spec.SetField(procedure.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := pc.mutation.ProcedureType(); ok { + _spec.SetField(procedure.FieldProcedureType, field.TypeString, value) + _node.ProcedureType = value + } + if value, ok := pc.mutation.Version(); ok { + _spec.SetField(procedure.FieldVersion, field.TypeString, value) + _node.Version = value + } + if value, ok := pc.mutation.PurposeAndScope(); ok { + _spec.SetField(procedure.FieldPurposeAndScope, field.TypeString, value) + _node.PurposeAndScope = value + } + if value, ok := pc.mutation.Background(); ok { + _spec.SetField(procedure.FieldBackground, field.TypeString, value) + _node.Background = value + } + if value, ok := pc.mutation.Satisfies(); ok { + _spec.SetField(procedure.FieldSatisfies, field.TypeString, value) + _node.Satisfies = value + } + if value, ok := pc.mutation.Details(); ok { + _spec.SetField(procedure.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + if nodes := pc.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.ControlTable, + Columns: procedure.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = pc.schemaConfig.ControlProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := pc.mutation.InternalpolicyIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.InternalpolicyTable, + Columns: procedure.InternalpolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = pc.schemaConfig.InternalPolicyProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := pc.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.NarrativesTable, + Columns: procedure.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = pc.schemaConfig.ProcedureNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := pc.mutation.RisksIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.RisksTable, + Columns: procedure.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = pc.schemaConfig.ProcedureRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + return _node, _spec +} + +// ProcedureCreateBulk is the builder for creating many Procedure entities in bulk. +type ProcedureCreateBulk struct { + config + err error + builders []*ProcedureCreate +} + +// Save creates the Procedure entities in the database. +func (pcb *ProcedureCreateBulk) Save(ctx context.Context) ([]*Procedure, error) { + if pcb.err != nil { + return nil, pcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(pcb.builders)) + nodes := make([]*Procedure, len(pcb.builders)) + mutators := make([]Mutator, len(pcb.builders)) + for i := range pcb.builders { + func(i int, root context.Context) { + builder := pcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*ProcedureMutation) + 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, pcb.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, pcb.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, pcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (pcb *ProcedureCreateBulk) SaveX(ctx context.Context) []*Procedure { + v, err := pcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (pcb *ProcedureCreateBulk) Exec(ctx context.Context) error { + _, err := pcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (pcb *ProcedureCreateBulk) ExecX(ctx context.Context) { + if err := pcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/procedure_delete.go b/internal/ent/generated/procedure_delete.go new file mode 100644 index 00000000..20cac5ac --- /dev/null +++ b/internal/ent/generated/procedure_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" + "github.com/theopenlane/core/internal/ent/generated/procedure" +) + +// ProcedureDelete is the builder for deleting a Procedure entity. +type ProcedureDelete struct { + config + hooks []Hook + mutation *ProcedureMutation +} + +// Where appends a list predicates to the ProcedureDelete builder. +func (pd *ProcedureDelete) Where(ps ...predicate.Procedure) *ProcedureDelete { + pd.mutation.Where(ps...) + return pd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (pd *ProcedureDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, pd.sqlExec, pd.mutation, pd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (pd *ProcedureDelete) ExecX(ctx context.Context) int { + n, err := pd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (pd *ProcedureDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(procedure.Table, sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString)) + _spec.Node.Schema = pd.schemaConfig.Procedure + ctx = internal.NewSchemaConfigContext(ctx, pd.schemaConfig) + if ps := pd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, pd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + pd.mutation.done = true + return affected, err +} + +// ProcedureDeleteOne is the builder for deleting a single Procedure entity. +type ProcedureDeleteOne struct { + pd *ProcedureDelete +} + +// Where appends a list predicates to the ProcedureDelete builder. +func (pdo *ProcedureDeleteOne) Where(ps ...predicate.Procedure) *ProcedureDeleteOne { + pdo.pd.mutation.Where(ps...) + return pdo +} + +// Exec executes the deletion query. +func (pdo *ProcedureDeleteOne) Exec(ctx context.Context) error { + n, err := pdo.pd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{procedure.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (pdo *ProcedureDeleteOne) ExecX(ctx context.Context) { + if err := pdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/procedure_query.go b/internal/ent/generated/procedure_query.go new file mode 100644 index 00000000..68e02049 --- /dev/null +++ b/internal/ent/generated/procedure_query.go @@ -0,0 +1,1099 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "database/sql/driver" + "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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ProcedureQuery is the builder for querying Procedure entities. +type ProcedureQuery struct { + config + ctx *QueryContext + order []procedure.OrderOption + inters []Interceptor + predicates []predicate.Procedure + withControl *ControlQuery + withInternalpolicy *InternalPolicyQuery + withNarratives *NarrativeQuery + withRisks *RiskQuery + withFKs bool + loadTotal []func(context.Context, []*Procedure) error + modifiers []func(*sql.Selector) + withNamedControl map[string]*ControlQuery + withNamedInternalpolicy map[string]*InternalPolicyQuery + withNamedNarratives map[string]*NarrativeQuery + withNamedRisks map[string]*RiskQuery + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the ProcedureQuery builder. +func (pq *ProcedureQuery) Where(ps ...predicate.Procedure) *ProcedureQuery { + pq.predicates = append(pq.predicates, ps...) + return pq +} + +// Limit the number of records to be returned by this query. +func (pq *ProcedureQuery) Limit(limit int) *ProcedureQuery { + pq.ctx.Limit = &limit + return pq +} + +// Offset to start from. +func (pq *ProcedureQuery) Offset(offset int) *ProcedureQuery { + pq.ctx.Offset = &offset + return pq +} + +// 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 (pq *ProcedureQuery) Unique(unique bool) *ProcedureQuery { + pq.ctx.Unique = &unique + return pq +} + +// Order specifies how the records should be ordered. +func (pq *ProcedureQuery) Order(o ...procedure.OrderOption) *ProcedureQuery { + pq.order = append(pq.order, o...) + return pq +} + +// QueryControl chains the current query on the "control" edge. +func (pq *ProcedureQuery) QueryControl() *ControlQuery { + query := (&ControlClient{config: pq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := pq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := pq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(procedure.Table, procedure.FieldID, selector), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, procedure.ControlTable, procedure.ControlPrimaryKey...), + ) + schemaConfig := pq.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlProcedures + fromU = sqlgraph.SetNeighbors(pq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryInternalpolicy chains the current query on the "internalpolicy" edge. +func (pq *ProcedureQuery) QueryInternalpolicy() *InternalPolicyQuery { + query := (&InternalPolicyClient{config: pq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := pq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := pq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(procedure.Table, procedure.FieldID, selector), + sqlgraph.To(internalpolicy.Table, internalpolicy.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, procedure.InternalpolicyTable, procedure.InternalpolicyPrimaryKey...), + ) + schemaConfig := pq.schemaConfig + step.To.Schema = schemaConfig.InternalPolicy + step.Edge.Schema = schemaConfig.InternalPolicyProcedures + fromU = sqlgraph.SetNeighbors(pq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryNarratives chains the current query on the "narratives" edge. +func (pq *ProcedureQuery) QueryNarratives() *NarrativeQuery { + query := (&NarrativeClient{config: pq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := pq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := pq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(procedure.Table, procedure.FieldID, selector), + sqlgraph.To(narrative.Table, narrative.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, procedure.NarrativesTable, procedure.NarrativesPrimaryKey...), + ) + schemaConfig := pq.schemaConfig + step.To.Schema = schemaConfig.Narrative + step.Edge.Schema = schemaConfig.ProcedureNarratives + fromU = sqlgraph.SetNeighbors(pq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryRisks chains the current query on the "risks" edge. +func (pq *ProcedureQuery) QueryRisks() *RiskQuery { + query := (&RiskClient{config: pq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := pq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := pq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(procedure.Table, procedure.FieldID, selector), + sqlgraph.To(risk.Table, risk.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, procedure.RisksTable, procedure.RisksPrimaryKey...), + ) + schemaConfig := pq.schemaConfig + step.To.Schema = schemaConfig.Risk + step.Edge.Schema = schemaConfig.ProcedureRisks + fromU = sqlgraph.SetNeighbors(pq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// First returns the first Procedure entity from the query. +// Returns a *NotFoundError when no Procedure was found. +func (pq *ProcedureQuery) First(ctx context.Context) (*Procedure, error) { + nodes, err := pq.Limit(1).All(setContextOp(ctx, pq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{procedure.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (pq *ProcedureQuery) FirstX(ctx context.Context) *Procedure { + node, err := pq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first Procedure ID from the query. +// Returns a *NotFoundError when no Procedure ID was found. +func (pq *ProcedureQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = pq.Limit(1).IDs(setContextOp(ctx, pq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{procedure.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (pq *ProcedureQuery) FirstIDX(ctx context.Context) string { + id, err := pq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single Procedure entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one Procedure entity is found. +// Returns a *NotFoundError when no Procedure entities are found. +func (pq *ProcedureQuery) Only(ctx context.Context) (*Procedure, error) { + nodes, err := pq.Limit(2).All(setContextOp(ctx, pq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{procedure.Label} + default: + return nil, &NotSingularError{procedure.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (pq *ProcedureQuery) OnlyX(ctx context.Context) *Procedure { + node, err := pq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only Procedure ID in the query. +// Returns a *NotSingularError when more than one Procedure ID is found. +// Returns a *NotFoundError when no entities are found. +func (pq *ProcedureQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = pq.Limit(2).IDs(setContextOp(ctx, pq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{procedure.Label} + default: + err = &NotSingularError{procedure.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (pq *ProcedureQuery) OnlyIDX(ctx context.Context) string { + id, err := pq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of Procedures. +func (pq *ProcedureQuery) All(ctx context.Context) ([]*Procedure, error) { + ctx = setContextOp(ctx, pq.ctx, ent.OpQueryAll) + if err := pq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*Procedure, *ProcedureQuery]() + return withInterceptors[[]*Procedure](ctx, pq, qr, pq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (pq *ProcedureQuery) AllX(ctx context.Context) []*Procedure { + nodes, err := pq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of Procedure IDs. +func (pq *ProcedureQuery) IDs(ctx context.Context) (ids []string, err error) { + if pq.ctx.Unique == nil && pq.path != nil { + pq.Unique(true) + } + ctx = setContextOp(ctx, pq.ctx, ent.OpQueryIDs) + if err = pq.Select(procedure.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (pq *ProcedureQuery) IDsX(ctx context.Context) []string { + ids, err := pq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (pq *ProcedureQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, pq.ctx, ent.OpQueryCount) + if err := pq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, pq, querierCount[*ProcedureQuery](), pq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (pq *ProcedureQuery) CountX(ctx context.Context) int { + count, err := pq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (pq *ProcedureQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, pq.ctx, ent.OpQueryExist) + switch _, err := pq.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 (pq *ProcedureQuery) ExistX(ctx context.Context) bool { + exist, err := pq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the ProcedureQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (pq *ProcedureQuery) Clone() *ProcedureQuery { + if pq == nil { + return nil + } + return &ProcedureQuery{ + config: pq.config, + ctx: pq.ctx.Clone(), + order: append([]procedure.OrderOption{}, pq.order...), + inters: append([]Interceptor{}, pq.inters...), + predicates: append([]predicate.Procedure{}, pq.predicates...), + withControl: pq.withControl.Clone(), + withInternalpolicy: pq.withInternalpolicy.Clone(), + withNarratives: pq.withNarratives.Clone(), + withRisks: pq.withRisks.Clone(), + // clone intermediate query. + sql: pq.sql.Clone(), + path: pq.path, + modifiers: append([]func(*sql.Selector){}, pq.modifiers...), + } +} + +// WithControl tells the query-builder to eager-load the nodes that are connected to +// the "control" edge. The optional arguments are used to configure the query builder of the edge. +func (pq *ProcedureQuery) WithControl(opts ...func(*ControlQuery)) *ProcedureQuery { + query := (&ControlClient{config: pq.config}).Query() + for _, opt := range opts { + opt(query) + } + pq.withControl = query + return pq +} + +// WithInternalpolicy tells the query-builder to eager-load the nodes that are connected to +// the "internalpolicy" edge. The optional arguments are used to configure the query builder of the edge. +func (pq *ProcedureQuery) WithInternalpolicy(opts ...func(*InternalPolicyQuery)) *ProcedureQuery { + query := (&InternalPolicyClient{config: pq.config}).Query() + for _, opt := range opts { + opt(query) + } + pq.withInternalpolicy = query + return pq +} + +// WithNarratives tells the query-builder to eager-load the nodes that are connected to +// the "narratives" edge. The optional arguments are used to configure the query builder of the edge. +func (pq *ProcedureQuery) WithNarratives(opts ...func(*NarrativeQuery)) *ProcedureQuery { + query := (&NarrativeClient{config: pq.config}).Query() + for _, opt := range opts { + opt(query) + } + pq.withNarratives = query + return pq +} + +// WithRisks tells the query-builder to eager-load the nodes that are connected to +// the "risks" edge. The optional arguments are used to configure the query builder of the edge. +func (pq *ProcedureQuery) WithRisks(opts ...func(*RiskQuery)) *ProcedureQuery { + query := (&RiskClient{config: pq.config}).Query() + for _, opt := range opts { + opt(query) + } + pq.withRisks = query + return pq +} + +// 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.Procedure.Query(). +// GroupBy(procedure.FieldCreatedAt). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (pq *ProcedureQuery) GroupBy(field string, fields ...string) *ProcedureGroupBy { + pq.ctx.Fields = append([]string{field}, fields...) + grbuild := &ProcedureGroupBy{build: pq} + grbuild.flds = &pq.ctx.Fields + grbuild.label = procedure.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.Procedure.Query(). +// Select(procedure.FieldCreatedAt). +// Scan(ctx, &v) +func (pq *ProcedureQuery) Select(fields ...string) *ProcedureSelect { + pq.ctx.Fields = append(pq.ctx.Fields, fields...) + sbuild := &ProcedureSelect{ProcedureQuery: pq} + sbuild.label = procedure.Label + sbuild.flds, sbuild.scan = &pq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a ProcedureSelect configured with the given aggregations. +func (pq *ProcedureQuery) Aggregate(fns ...AggregateFunc) *ProcedureSelect { + return pq.Select().Aggregate(fns...) +} + +func (pq *ProcedureQuery) prepareQuery(ctx context.Context) error { + for _, inter := range pq.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, pq); err != nil { + return err + } + } + } + for _, f := range pq.ctx.Fields { + if !procedure.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if pq.path != nil { + prev, err := pq.path(ctx) + if err != nil { + return err + } + pq.sql = prev + } + return nil +} + +func (pq *ProcedureQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Procedure, error) { + var ( + nodes = []*Procedure{} + withFKs = pq.withFKs + _spec = pq.querySpec() + loadedTypes = [4]bool{ + pq.withControl != nil, + pq.withInternalpolicy != nil, + pq.withNarratives != nil, + pq.withRisks != nil, + } + ) + if withFKs { + _spec.Node.Columns = append(_spec.Node.Columns, procedure.ForeignKeys...) + } + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*Procedure).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &Procedure{config: pq.config} + nodes = append(nodes, node) + node.Edges.loadedTypes = loadedTypes + return node.assignValues(columns, values) + } + _spec.Node.Schema = pq.schemaConfig.Procedure + ctx = internal.NewSchemaConfigContext(ctx, pq.schemaConfig) + if len(pq.modifiers) > 0 { + _spec.Modifiers = pq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, pq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + if query := pq.withControl; query != nil { + if err := pq.loadControl(ctx, query, nodes, + func(n *Procedure) { n.Edges.Control = []*Control{} }, + func(n *Procedure, e *Control) { n.Edges.Control = append(n.Edges.Control, e) }); err != nil { + return nil, err + } + } + if query := pq.withInternalpolicy; query != nil { + if err := pq.loadInternalpolicy(ctx, query, nodes, + func(n *Procedure) { n.Edges.Internalpolicy = []*InternalPolicy{} }, + func(n *Procedure, e *InternalPolicy) { n.Edges.Internalpolicy = append(n.Edges.Internalpolicy, e) }); err != nil { + return nil, err + } + } + if query := pq.withNarratives; query != nil { + if err := pq.loadNarratives(ctx, query, nodes, + func(n *Procedure) { n.Edges.Narratives = []*Narrative{} }, + func(n *Procedure, e *Narrative) { n.Edges.Narratives = append(n.Edges.Narratives, e) }); err != nil { + return nil, err + } + } + if query := pq.withRisks; query != nil { + if err := pq.loadRisks(ctx, query, nodes, + func(n *Procedure) { n.Edges.Risks = []*Risk{} }, + func(n *Procedure, e *Risk) { n.Edges.Risks = append(n.Edges.Risks, e) }); err != nil { + return nil, err + } + } + for name, query := range pq.withNamedControl { + if err := pq.loadControl(ctx, query, nodes, + func(n *Procedure) { n.appendNamedControl(name) }, + func(n *Procedure, e *Control) { n.appendNamedControl(name, e) }); err != nil { + return nil, err + } + } + for name, query := range pq.withNamedInternalpolicy { + if err := pq.loadInternalpolicy(ctx, query, nodes, + func(n *Procedure) { n.appendNamedInternalpolicy(name) }, + func(n *Procedure, e *InternalPolicy) { n.appendNamedInternalpolicy(name, e) }); err != nil { + return nil, err + } + } + for name, query := range pq.withNamedNarratives { + if err := pq.loadNarratives(ctx, query, nodes, + func(n *Procedure) { n.appendNamedNarratives(name) }, + func(n *Procedure, e *Narrative) { n.appendNamedNarratives(name, e) }); err != nil { + return nil, err + } + } + for name, query := range pq.withNamedRisks { + if err := pq.loadRisks(ctx, query, nodes, + func(n *Procedure) { n.appendNamedRisks(name) }, + func(n *Procedure, e *Risk) { n.appendNamedRisks(name, e) }); err != nil { + return nil, err + } + } + for i := range pq.loadTotal { + if err := pq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (pq *ProcedureQuery) loadControl(ctx context.Context, query *ControlQuery, nodes []*Procedure, init func(*Procedure), assign func(*Procedure, *Control)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Procedure) + nids := make(map[string]map[*Procedure]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(procedure.ControlTable) + joinT.Schema(pq.schemaConfig.ControlProcedures) + s.Join(joinT).On(s.C(control.FieldID), joinT.C(procedure.ControlPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(procedure.ControlPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(procedure.ControlPrimaryKey[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[*Procedure]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Control](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 "control" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (pq *ProcedureQuery) loadInternalpolicy(ctx context.Context, query *InternalPolicyQuery, nodes []*Procedure, init func(*Procedure), assign func(*Procedure, *InternalPolicy)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Procedure) + nids := make(map[string]map[*Procedure]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(procedure.InternalpolicyTable) + joinT.Schema(pq.schemaConfig.InternalPolicyProcedures) + s.Join(joinT).On(s.C(internalpolicy.FieldID), joinT.C(procedure.InternalpolicyPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(procedure.InternalpolicyPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(procedure.InternalpolicyPrimaryKey[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[*Procedure]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*InternalPolicy](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 "internalpolicy" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (pq *ProcedureQuery) loadNarratives(ctx context.Context, query *NarrativeQuery, nodes []*Procedure, init func(*Procedure), assign func(*Procedure, *Narrative)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Procedure) + nids := make(map[string]map[*Procedure]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(procedure.NarrativesTable) + joinT.Schema(pq.schemaConfig.ProcedureNarratives) + s.Join(joinT).On(s.C(narrative.FieldID), joinT.C(procedure.NarrativesPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(procedure.NarrativesPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(procedure.NarrativesPrimaryKey[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[*Procedure]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Narrative](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 "narratives" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (pq *ProcedureQuery) loadRisks(ctx context.Context, query *RiskQuery, nodes []*Procedure, init func(*Procedure), assign func(*Procedure, *Risk)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Procedure) + nids := make(map[string]map[*Procedure]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(procedure.RisksTable) + joinT.Schema(pq.schemaConfig.ProcedureRisks) + s.Join(joinT).On(s.C(risk.FieldID), joinT.C(procedure.RisksPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(procedure.RisksPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(procedure.RisksPrimaryKey[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[*Procedure]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Risk](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 "risks" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} + +func (pq *ProcedureQuery) sqlCount(ctx context.Context) (int, error) { + _spec := pq.querySpec() + _spec.Node.Schema = pq.schemaConfig.Procedure + ctx = internal.NewSchemaConfigContext(ctx, pq.schemaConfig) + if len(pq.modifiers) > 0 { + _spec.Modifiers = pq.modifiers + } + _spec.Node.Columns = pq.ctx.Fields + if len(pq.ctx.Fields) > 0 { + _spec.Unique = pq.ctx.Unique != nil && *pq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, pq.driver, _spec) +} + +func (pq *ProcedureQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(procedure.Table, procedure.Columns, sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString)) + _spec.From = pq.sql + if unique := pq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if pq.path != nil { + _spec.Unique = true + } + if fields := pq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, procedure.FieldID) + for i := range fields { + if fields[i] != procedure.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := pq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := pq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := pq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := pq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (pq *ProcedureQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(pq.driver.Dialect()) + t1 := builder.Table(procedure.Table) + columns := pq.ctx.Fields + if len(columns) == 0 { + columns = procedure.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if pq.sql != nil { + selector = pq.sql + selector.Select(selector.Columns(columns...)...) + } + if pq.ctx.Unique != nil && *pq.ctx.Unique { + selector.Distinct() + } + t1.Schema(pq.schemaConfig.Procedure) + ctx = internal.NewSchemaConfigContext(ctx, pq.schemaConfig) + selector.WithContext(ctx) + for _, m := range pq.modifiers { + m(selector) + } + for _, p := range pq.predicates { + p(selector) + } + for _, p := range pq.order { + p(selector) + } + if offset := pq.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 := pq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (pq *ProcedureQuery) Modify(modifiers ...func(s *sql.Selector)) *ProcedureSelect { + pq.modifiers = append(pq.modifiers, modifiers...) + return pq.Select() +} + +// WithNamedControl tells the query-builder to eager-load the nodes that are connected to the "control" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (pq *ProcedureQuery) WithNamedControl(name string, opts ...func(*ControlQuery)) *ProcedureQuery { + query := (&ControlClient{config: pq.config}).Query() + for _, opt := range opts { + opt(query) + } + if pq.withNamedControl == nil { + pq.withNamedControl = make(map[string]*ControlQuery) + } + pq.withNamedControl[name] = query + return pq +} + +// WithNamedInternalpolicy tells the query-builder to eager-load the nodes that are connected to the "internalpolicy" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (pq *ProcedureQuery) WithNamedInternalpolicy(name string, opts ...func(*InternalPolicyQuery)) *ProcedureQuery { + query := (&InternalPolicyClient{config: pq.config}).Query() + for _, opt := range opts { + opt(query) + } + if pq.withNamedInternalpolicy == nil { + pq.withNamedInternalpolicy = make(map[string]*InternalPolicyQuery) + } + pq.withNamedInternalpolicy[name] = query + return pq +} + +// WithNamedNarratives tells the query-builder to eager-load the nodes that are connected to the "narratives" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (pq *ProcedureQuery) WithNamedNarratives(name string, opts ...func(*NarrativeQuery)) *ProcedureQuery { + query := (&NarrativeClient{config: pq.config}).Query() + for _, opt := range opts { + opt(query) + } + if pq.withNamedNarratives == nil { + pq.withNamedNarratives = make(map[string]*NarrativeQuery) + } + pq.withNamedNarratives[name] = query + return pq +} + +// WithNamedRisks tells the query-builder to eager-load the nodes that are connected to the "risks" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (pq *ProcedureQuery) WithNamedRisks(name string, opts ...func(*RiskQuery)) *ProcedureQuery { + query := (&RiskClient{config: pq.config}).Query() + for _, opt := range opts { + opt(query) + } + if pq.withNamedRisks == nil { + pq.withNamedRisks = make(map[string]*RiskQuery) + } + pq.withNamedRisks[name] = query + return pq +} + +// ProcedureGroupBy is the group-by builder for Procedure entities. +type ProcedureGroupBy struct { + selector + build *ProcedureQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (pgb *ProcedureGroupBy) Aggregate(fns ...AggregateFunc) *ProcedureGroupBy { + pgb.fns = append(pgb.fns, fns...) + return pgb +} + +// Scan applies the selector query and scans the result into the given value. +func (pgb *ProcedureGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, pgb.build.ctx, ent.OpQueryGroupBy) + if err := pgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ProcedureQuery, *ProcedureGroupBy](ctx, pgb.build, pgb, pgb.build.inters, v) +} + +func (pgb *ProcedureGroupBy) sqlScan(ctx context.Context, root *ProcedureQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(pgb.fns)) + for _, fn := range pgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*pgb.flds)+len(pgb.fns)) + for _, f := range *pgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*pgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := pgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// ProcedureSelect is the builder for selecting fields of Procedure entities. +type ProcedureSelect struct { + *ProcedureQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (ps *ProcedureSelect) Aggregate(fns ...AggregateFunc) *ProcedureSelect { + ps.fns = append(ps.fns, fns...) + return ps +} + +// Scan applies the selector query and scans the result into the given value. +func (ps *ProcedureSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, ps.ctx, ent.OpQuerySelect) + if err := ps.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ProcedureQuery, *ProcedureSelect](ctx, ps.ProcedureQuery, ps, ps.inters, v) +} + +func (ps *ProcedureSelect) sqlScan(ctx context.Context, root *ProcedureQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(ps.fns)) + for _, fn := range ps.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*ps.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 := ps.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 (ps *ProcedureSelect) Modify(modifiers ...func(s *sql.Selector)) *ProcedureSelect { + ps.modifiers = append(ps.modifiers, modifiers...) + return ps +} diff --git a/internal/ent/generated/procedure_update.go b/internal/ent/generated/procedure_update.go new file mode 100644 index 00000000..d7b8c9f3 --- /dev/null +++ b/internal/ent/generated/procedure_update.go @@ -0,0 +1,1601 @@ +// 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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ProcedureUpdate is the builder for updating Procedure entities. +type ProcedureUpdate struct { + config + hooks []Hook + mutation *ProcedureMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the ProcedureUpdate builder. +func (pu *ProcedureUpdate) Where(ps ...predicate.Procedure) *ProcedureUpdate { + pu.mutation.Where(ps...) + return pu +} + +// SetUpdatedAt sets the "updated_at" field. +func (pu *ProcedureUpdate) SetUpdatedAt(t time.Time) *ProcedureUpdate { + pu.mutation.SetUpdatedAt(t) + return pu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (pu *ProcedureUpdate) ClearUpdatedAt() *ProcedureUpdate { + pu.mutation.ClearUpdatedAt() + return pu +} + +// SetUpdatedBy sets the "updated_by" field. +func (pu *ProcedureUpdate) SetUpdatedBy(s string) *ProcedureUpdate { + pu.mutation.SetUpdatedBy(s) + return pu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (pu *ProcedureUpdate) SetNillableUpdatedBy(s *string) *ProcedureUpdate { + if s != nil { + pu.SetUpdatedBy(*s) + } + return pu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (pu *ProcedureUpdate) ClearUpdatedBy() *ProcedureUpdate { + pu.mutation.ClearUpdatedBy() + return pu +} + +// SetDeletedAt sets the "deleted_at" field. +func (pu *ProcedureUpdate) SetDeletedAt(t time.Time) *ProcedureUpdate { + pu.mutation.SetDeletedAt(t) + return pu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (pu *ProcedureUpdate) SetNillableDeletedAt(t *time.Time) *ProcedureUpdate { + if t != nil { + pu.SetDeletedAt(*t) + } + return pu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (pu *ProcedureUpdate) ClearDeletedAt() *ProcedureUpdate { + pu.mutation.ClearDeletedAt() + return pu +} + +// SetDeletedBy sets the "deleted_by" field. +func (pu *ProcedureUpdate) SetDeletedBy(s string) *ProcedureUpdate { + pu.mutation.SetDeletedBy(s) + return pu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (pu *ProcedureUpdate) SetNillableDeletedBy(s *string) *ProcedureUpdate { + if s != nil { + pu.SetDeletedBy(*s) + } + return pu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (pu *ProcedureUpdate) ClearDeletedBy() *ProcedureUpdate { + pu.mutation.ClearDeletedBy() + return pu +} + +// SetTags sets the "tags" field. +func (pu *ProcedureUpdate) SetTags(s []string) *ProcedureUpdate { + pu.mutation.SetTags(s) + return pu +} + +// AppendTags appends s to the "tags" field. +func (pu *ProcedureUpdate) AppendTags(s []string) *ProcedureUpdate { + pu.mutation.AppendTags(s) + return pu +} + +// ClearTags clears the value of the "tags" field. +func (pu *ProcedureUpdate) ClearTags() *ProcedureUpdate { + pu.mutation.ClearTags() + return pu +} + +// SetName sets the "name" field. +func (pu *ProcedureUpdate) SetName(s string) *ProcedureUpdate { + pu.mutation.SetName(s) + return pu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (pu *ProcedureUpdate) SetNillableName(s *string) *ProcedureUpdate { + if s != nil { + pu.SetName(*s) + } + return pu +} + +// SetDescription sets the "description" field. +func (pu *ProcedureUpdate) SetDescription(s string) *ProcedureUpdate { + pu.mutation.SetDescription(s) + return pu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (pu *ProcedureUpdate) SetNillableDescription(s *string) *ProcedureUpdate { + if s != nil { + pu.SetDescription(*s) + } + return pu +} + +// ClearDescription clears the value of the "description" field. +func (pu *ProcedureUpdate) ClearDescription() *ProcedureUpdate { + pu.mutation.ClearDescription() + return pu +} + +// SetStatus sets the "status" field. +func (pu *ProcedureUpdate) SetStatus(s string) *ProcedureUpdate { + pu.mutation.SetStatus(s) + return pu +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (pu *ProcedureUpdate) SetNillableStatus(s *string) *ProcedureUpdate { + if s != nil { + pu.SetStatus(*s) + } + return pu +} + +// ClearStatus clears the value of the "status" field. +func (pu *ProcedureUpdate) ClearStatus() *ProcedureUpdate { + pu.mutation.ClearStatus() + return pu +} + +// SetProcedureType sets the "procedure_type" field. +func (pu *ProcedureUpdate) SetProcedureType(s string) *ProcedureUpdate { + pu.mutation.SetProcedureType(s) + return pu +} + +// SetNillableProcedureType sets the "procedure_type" field if the given value is not nil. +func (pu *ProcedureUpdate) SetNillableProcedureType(s *string) *ProcedureUpdate { + if s != nil { + pu.SetProcedureType(*s) + } + return pu +} + +// ClearProcedureType clears the value of the "procedure_type" field. +func (pu *ProcedureUpdate) ClearProcedureType() *ProcedureUpdate { + pu.mutation.ClearProcedureType() + return pu +} + +// SetVersion sets the "version" field. +func (pu *ProcedureUpdate) SetVersion(s string) *ProcedureUpdate { + pu.mutation.SetVersion(s) + return pu +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (pu *ProcedureUpdate) SetNillableVersion(s *string) *ProcedureUpdate { + if s != nil { + pu.SetVersion(*s) + } + return pu +} + +// ClearVersion clears the value of the "version" field. +func (pu *ProcedureUpdate) ClearVersion() *ProcedureUpdate { + pu.mutation.ClearVersion() + return pu +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (pu *ProcedureUpdate) SetPurposeAndScope(s string) *ProcedureUpdate { + pu.mutation.SetPurposeAndScope(s) + return pu +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (pu *ProcedureUpdate) SetNillablePurposeAndScope(s *string) *ProcedureUpdate { + if s != nil { + pu.SetPurposeAndScope(*s) + } + return pu +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (pu *ProcedureUpdate) ClearPurposeAndScope() *ProcedureUpdate { + pu.mutation.ClearPurposeAndScope() + return pu +} + +// SetBackground sets the "background" field. +func (pu *ProcedureUpdate) SetBackground(s string) *ProcedureUpdate { + pu.mutation.SetBackground(s) + return pu +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (pu *ProcedureUpdate) SetNillableBackground(s *string) *ProcedureUpdate { + if s != nil { + pu.SetBackground(*s) + } + return pu +} + +// ClearBackground clears the value of the "background" field. +func (pu *ProcedureUpdate) ClearBackground() *ProcedureUpdate { + pu.mutation.ClearBackground() + return pu +} + +// SetSatisfies sets the "satisfies" field. +func (pu *ProcedureUpdate) SetSatisfies(s string) *ProcedureUpdate { + pu.mutation.SetSatisfies(s) + return pu +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (pu *ProcedureUpdate) SetNillableSatisfies(s *string) *ProcedureUpdate { + if s != nil { + pu.SetSatisfies(*s) + } + return pu +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (pu *ProcedureUpdate) ClearSatisfies() *ProcedureUpdate { + pu.mutation.ClearSatisfies() + return pu +} + +// SetDetails sets the "details" field. +func (pu *ProcedureUpdate) SetDetails(m map[string]interface{}) *ProcedureUpdate { + pu.mutation.SetDetails(m) + return pu +} + +// ClearDetails clears the value of the "details" field. +func (pu *ProcedureUpdate) ClearDetails() *ProcedureUpdate { + pu.mutation.ClearDetails() + return pu +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (pu *ProcedureUpdate) AddControlIDs(ids ...string) *ProcedureUpdate { + pu.mutation.AddControlIDs(ids...) + return pu +} + +// AddControl adds the "control" edges to the Control entity. +func (pu *ProcedureUpdate) AddControl(c ...*Control) *ProcedureUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return pu.AddControlIDs(ids...) +} + +// AddInternalpolicyIDs adds the "internalpolicy" edge to the InternalPolicy entity by IDs. +func (pu *ProcedureUpdate) AddInternalpolicyIDs(ids ...string) *ProcedureUpdate { + pu.mutation.AddInternalpolicyIDs(ids...) + return pu +} + +// AddInternalpolicy adds the "internalpolicy" edges to the InternalPolicy entity. +func (pu *ProcedureUpdate) AddInternalpolicy(i ...*InternalPolicy) *ProcedureUpdate { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return pu.AddInternalpolicyIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (pu *ProcedureUpdate) AddNarrativeIDs(ids ...string) *ProcedureUpdate { + pu.mutation.AddNarrativeIDs(ids...) + return pu +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (pu *ProcedureUpdate) AddNarratives(n ...*Narrative) *ProcedureUpdate { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return pu.AddNarrativeIDs(ids...) +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. +func (pu *ProcedureUpdate) AddRiskIDs(ids ...string) *ProcedureUpdate { + pu.mutation.AddRiskIDs(ids...) + return pu +} + +// AddRisks adds the "risks" edges to the Risk entity. +func (pu *ProcedureUpdate) AddRisks(r ...*Risk) *ProcedureUpdate { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return pu.AddRiskIDs(ids...) +} + +// Mutation returns the ProcedureMutation object of the builder. +func (pu *ProcedureUpdate) Mutation() *ProcedureMutation { + return pu.mutation +} + +// ClearControl clears all "control" edges to the Control entity. +func (pu *ProcedureUpdate) ClearControl() *ProcedureUpdate { + pu.mutation.ClearControl() + return pu +} + +// RemoveControlIDs removes the "control" edge to Control entities by IDs. +func (pu *ProcedureUpdate) RemoveControlIDs(ids ...string) *ProcedureUpdate { + pu.mutation.RemoveControlIDs(ids...) + return pu +} + +// RemoveControl removes "control" edges to Control entities. +func (pu *ProcedureUpdate) RemoveControl(c ...*Control) *ProcedureUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return pu.RemoveControlIDs(ids...) +} + +// ClearInternalpolicy clears all "internalpolicy" edges to the InternalPolicy entity. +func (pu *ProcedureUpdate) ClearInternalpolicy() *ProcedureUpdate { + pu.mutation.ClearInternalpolicy() + return pu +} + +// RemoveInternalpolicyIDs removes the "internalpolicy" edge to InternalPolicy entities by IDs. +func (pu *ProcedureUpdate) RemoveInternalpolicyIDs(ids ...string) *ProcedureUpdate { + pu.mutation.RemoveInternalpolicyIDs(ids...) + return pu +} + +// RemoveInternalpolicy removes "internalpolicy" edges to InternalPolicy entities. +func (pu *ProcedureUpdate) RemoveInternalpolicy(i ...*InternalPolicy) *ProcedureUpdate { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return pu.RemoveInternalpolicyIDs(ids...) +} + +// ClearNarratives clears all "narratives" edges to the Narrative entity. +func (pu *ProcedureUpdate) ClearNarratives() *ProcedureUpdate { + pu.mutation.ClearNarratives() + return pu +} + +// RemoveNarrativeIDs removes the "narratives" edge to Narrative entities by IDs. +func (pu *ProcedureUpdate) RemoveNarrativeIDs(ids ...string) *ProcedureUpdate { + pu.mutation.RemoveNarrativeIDs(ids...) + return pu +} + +// RemoveNarratives removes "narratives" edges to Narrative entities. +func (pu *ProcedureUpdate) RemoveNarratives(n ...*Narrative) *ProcedureUpdate { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return pu.RemoveNarrativeIDs(ids...) +} + +// ClearRisks clears all "risks" edges to the Risk entity. +func (pu *ProcedureUpdate) ClearRisks() *ProcedureUpdate { + pu.mutation.ClearRisks() + return pu +} + +// RemoveRiskIDs removes the "risks" edge to Risk entities by IDs. +func (pu *ProcedureUpdate) RemoveRiskIDs(ids ...string) *ProcedureUpdate { + pu.mutation.RemoveRiskIDs(ids...) + return pu +} + +// RemoveRisks removes "risks" edges to Risk entities. +func (pu *ProcedureUpdate) RemoveRisks(r ...*Risk) *ProcedureUpdate { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return pu.RemoveRiskIDs(ids...) +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (pu *ProcedureUpdate) Save(ctx context.Context) (int, error) { + if err := pu.defaults(); err != nil { + return 0, err + } + return withHooks(ctx, pu.sqlSave, pu.mutation, pu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (pu *ProcedureUpdate) SaveX(ctx context.Context) int { + affected, err := pu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (pu *ProcedureUpdate) Exec(ctx context.Context) error { + _, err := pu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (pu *ProcedureUpdate) ExecX(ctx context.Context) { + if err := pu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (pu *ProcedureUpdate) defaults() error { + if _, ok := pu.mutation.UpdatedAt(); !ok && !pu.mutation.UpdatedAtCleared() { + if procedure.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized procedure.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := procedure.UpdateDefaultUpdatedAt() + pu.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (pu *ProcedureUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProcedureUpdate { + pu.modifiers = append(pu.modifiers, modifiers...) + return pu +} + +func (pu *ProcedureUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(procedure.Table, procedure.Columns, sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString)) + if ps := pu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if pu.mutation.CreatedAtCleared() { + _spec.ClearField(procedure.FieldCreatedAt, field.TypeTime) + } + if value, ok := pu.mutation.UpdatedAt(); ok { + _spec.SetField(procedure.FieldUpdatedAt, field.TypeTime, value) + } + if pu.mutation.UpdatedAtCleared() { + _spec.ClearField(procedure.FieldUpdatedAt, field.TypeTime) + } + if pu.mutation.CreatedByCleared() { + _spec.ClearField(procedure.FieldCreatedBy, field.TypeString) + } + if value, ok := pu.mutation.UpdatedBy(); ok { + _spec.SetField(procedure.FieldUpdatedBy, field.TypeString, value) + } + if pu.mutation.UpdatedByCleared() { + _spec.ClearField(procedure.FieldUpdatedBy, field.TypeString) + } + if value, ok := pu.mutation.DeletedAt(); ok { + _spec.SetField(procedure.FieldDeletedAt, field.TypeTime, value) + } + if pu.mutation.DeletedAtCleared() { + _spec.ClearField(procedure.FieldDeletedAt, field.TypeTime) + } + if value, ok := pu.mutation.DeletedBy(); ok { + _spec.SetField(procedure.FieldDeletedBy, field.TypeString, value) + } + if pu.mutation.DeletedByCleared() { + _spec.ClearField(procedure.FieldDeletedBy, field.TypeString) + } + if value, ok := pu.mutation.Tags(); ok { + _spec.SetField(procedure.FieldTags, field.TypeJSON, value) + } + if value, ok := pu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, procedure.FieldTags, value) + }) + } + if pu.mutation.TagsCleared() { + _spec.ClearField(procedure.FieldTags, field.TypeJSON) + } + if value, ok := pu.mutation.Name(); ok { + _spec.SetField(procedure.FieldName, field.TypeString, value) + } + if value, ok := pu.mutation.Description(); ok { + _spec.SetField(procedure.FieldDescription, field.TypeString, value) + } + if pu.mutation.DescriptionCleared() { + _spec.ClearField(procedure.FieldDescription, field.TypeString) + } + if value, ok := pu.mutation.Status(); ok { + _spec.SetField(procedure.FieldStatus, field.TypeString, value) + } + if pu.mutation.StatusCleared() { + _spec.ClearField(procedure.FieldStatus, field.TypeString) + } + if value, ok := pu.mutation.ProcedureType(); ok { + _spec.SetField(procedure.FieldProcedureType, field.TypeString, value) + } + if pu.mutation.ProcedureTypeCleared() { + _spec.ClearField(procedure.FieldProcedureType, field.TypeString) + } + if value, ok := pu.mutation.Version(); ok { + _spec.SetField(procedure.FieldVersion, field.TypeString, value) + } + if pu.mutation.VersionCleared() { + _spec.ClearField(procedure.FieldVersion, field.TypeString) + } + if value, ok := pu.mutation.PurposeAndScope(); ok { + _spec.SetField(procedure.FieldPurposeAndScope, field.TypeString, value) + } + if pu.mutation.PurposeAndScopeCleared() { + _spec.ClearField(procedure.FieldPurposeAndScope, field.TypeString) + } + if value, ok := pu.mutation.Background(); ok { + _spec.SetField(procedure.FieldBackground, field.TypeString, value) + } + if pu.mutation.BackgroundCleared() { + _spec.ClearField(procedure.FieldBackground, field.TypeString) + } + if value, ok := pu.mutation.Satisfies(); ok { + _spec.SetField(procedure.FieldSatisfies, field.TypeString, value) + } + if pu.mutation.SatisfiesCleared() { + _spec.ClearField(procedure.FieldSatisfies, field.TypeString) + } + if value, ok := pu.mutation.Details(); ok { + _spec.SetField(procedure.FieldDetails, field.TypeJSON, value) + } + if pu.mutation.DetailsCleared() { + _spec.ClearField(procedure.FieldDetails, field.TypeJSON) + } + if pu.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.ControlTable, + Columns: procedure.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = pu.schemaConfig.ControlProcedures + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := pu.mutation.RemovedControlIDs(); len(nodes) > 0 && !pu.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.ControlTable, + Columns: procedure.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = pu.schemaConfig.ControlProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := pu.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.ControlTable, + Columns: procedure.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = pu.schemaConfig.ControlProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if pu.mutation.InternalpolicyCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.InternalpolicyTable, + Columns: procedure.InternalpolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = pu.schemaConfig.InternalPolicyProcedures + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := pu.mutation.RemovedInternalpolicyIDs(); len(nodes) > 0 && !pu.mutation.InternalpolicyCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.InternalpolicyTable, + Columns: procedure.InternalpolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = pu.schemaConfig.InternalPolicyProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := pu.mutation.InternalpolicyIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.InternalpolicyTable, + Columns: procedure.InternalpolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = pu.schemaConfig.InternalPolicyProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if pu.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.NarrativesTable, + Columns: procedure.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = pu.schemaConfig.ProcedureNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := pu.mutation.RemovedNarrativesIDs(); len(nodes) > 0 && !pu.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.NarrativesTable, + Columns: procedure.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = pu.schemaConfig.ProcedureNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := pu.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.NarrativesTable, + Columns: procedure.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = pu.schemaConfig.ProcedureNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if pu.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.RisksTable, + Columns: procedure.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = pu.schemaConfig.ProcedureRisks + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := pu.mutation.RemovedRisksIDs(); len(nodes) > 0 && !pu.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.RisksTable, + Columns: procedure.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = pu.schemaConfig.ProcedureRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := pu.mutation.RisksIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.RisksTable, + Columns: procedure.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = pu.schemaConfig.ProcedureRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = pu.schemaConfig.Procedure + ctx = internal.NewSchemaConfigContext(ctx, pu.schemaConfig) + _spec.AddModifiers(pu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, pu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{procedure.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + pu.mutation.done = true + return n, nil +} + +// ProcedureUpdateOne is the builder for updating a single Procedure entity. +type ProcedureUpdateOne struct { + config + fields []string + hooks []Hook + mutation *ProcedureMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (puo *ProcedureUpdateOne) SetUpdatedAt(t time.Time) *ProcedureUpdateOne { + puo.mutation.SetUpdatedAt(t) + return puo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (puo *ProcedureUpdateOne) ClearUpdatedAt() *ProcedureUpdateOne { + puo.mutation.ClearUpdatedAt() + return puo +} + +// SetUpdatedBy sets the "updated_by" field. +func (puo *ProcedureUpdateOne) SetUpdatedBy(s string) *ProcedureUpdateOne { + puo.mutation.SetUpdatedBy(s) + return puo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (puo *ProcedureUpdateOne) SetNillableUpdatedBy(s *string) *ProcedureUpdateOne { + if s != nil { + puo.SetUpdatedBy(*s) + } + return puo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (puo *ProcedureUpdateOne) ClearUpdatedBy() *ProcedureUpdateOne { + puo.mutation.ClearUpdatedBy() + return puo +} + +// SetDeletedAt sets the "deleted_at" field. +func (puo *ProcedureUpdateOne) SetDeletedAt(t time.Time) *ProcedureUpdateOne { + puo.mutation.SetDeletedAt(t) + return puo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (puo *ProcedureUpdateOne) SetNillableDeletedAt(t *time.Time) *ProcedureUpdateOne { + if t != nil { + puo.SetDeletedAt(*t) + } + return puo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (puo *ProcedureUpdateOne) ClearDeletedAt() *ProcedureUpdateOne { + puo.mutation.ClearDeletedAt() + return puo +} + +// SetDeletedBy sets the "deleted_by" field. +func (puo *ProcedureUpdateOne) SetDeletedBy(s string) *ProcedureUpdateOne { + puo.mutation.SetDeletedBy(s) + return puo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (puo *ProcedureUpdateOne) SetNillableDeletedBy(s *string) *ProcedureUpdateOne { + if s != nil { + puo.SetDeletedBy(*s) + } + return puo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (puo *ProcedureUpdateOne) ClearDeletedBy() *ProcedureUpdateOne { + puo.mutation.ClearDeletedBy() + return puo +} + +// SetTags sets the "tags" field. +func (puo *ProcedureUpdateOne) SetTags(s []string) *ProcedureUpdateOne { + puo.mutation.SetTags(s) + return puo +} + +// AppendTags appends s to the "tags" field. +func (puo *ProcedureUpdateOne) AppendTags(s []string) *ProcedureUpdateOne { + puo.mutation.AppendTags(s) + return puo +} + +// ClearTags clears the value of the "tags" field. +func (puo *ProcedureUpdateOne) ClearTags() *ProcedureUpdateOne { + puo.mutation.ClearTags() + return puo +} + +// SetName sets the "name" field. +func (puo *ProcedureUpdateOne) SetName(s string) *ProcedureUpdateOne { + puo.mutation.SetName(s) + return puo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (puo *ProcedureUpdateOne) SetNillableName(s *string) *ProcedureUpdateOne { + if s != nil { + puo.SetName(*s) + } + return puo +} + +// SetDescription sets the "description" field. +func (puo *ProcedureUpdateOne) SetDescription(s string) *ProcedureUpdateOne { + puo.mutation.SetDescription(s) + return puo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (puo *ProcedureUpdateOne) SetNillableDescription(s *string) *ProcedureUpdateOne { + if s != nil { + puo.SetDescription(*s) + } + return puo +} + +// ClearDescription clears the value of the "description" field. +func (puo *ProcedureUpdateOne) ClearDescription() *ProcedureUpdateOne { + puo.mutation.ClearDescription() + return puo +} + +// SetStatus sets the "status" field. +func (puo *ProcedureUpdateOne) SetStatus(s string) *ProcedureUpdateOne { + puo.mutation.SetStatus(s) + return puo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (puo *ProcedureUpdateOne) SetNillableStatus(s *string) *ProcedureUpdateOne { + if s != nil { + puo.SetStatus(*s) + } + return puo +} + +// ClearStatus clears the value of the "status" field. +func (puo *ProcedureUpdateOne) ClearStatus() *ProcedureUpdateOne { + puo.mutation.ClearStatus() + return puo +} + +// SetProcedureType sets the "procedure_type" field. +func (puo *ProcedureUpdateOne) SetProcedureType(s string) *ProcedureUpdateOne { + puo.mutation.SetProcedureType(s) + return puo +} + +// SetNillableProcedureType sets the "procedure_type" field if the given value is not nil. +func (puo *ProcedureUpdateOne) SetNillableProcedureType(s *string) *ProcedureUpdateOne { + if s != nil { + puo.SetProcedureType(*s) + } + return puo +} + +// ClearProcedureType clears the value of the "procedure_type" field. +func (puo *ProcedureUpdateOne) ClearProcedureType() *ProcedureUpdateOne { + puo.mutation.ClearProcedureType() + return puo +} + +// SetVersion sets the "version" field. +func (puo *ProcedureUpdateOne) SetVersion(s string) *ProcedureUpdateOne { + puo.mutation.SetVersion(s) + return puo +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (puo *ProcedureUpdateOne) SetNillableVersion(s *string) *ProcedureUpdateOne { + if s != nil { + puo.SetVersion(*s) + } + return puo +} + +// ClearVersion clears the value of the "version" field. +func (puo *ProcedureUpdateOne) ClearVersion() *ProcedureUpdateOne { + puo.mutation.ClearVersion() + return puo +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (puo *ProcedureUpdateOne) SetPurposeAndScope(s string) *ProcedureUpdateOne { + puo.mutation.SetPurposeAndScope(s) + return puo +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (puo *ProcedureUpdateOne) SetNillablePurposeAndScope(s *string) *ProcedureUpdateOne { + if s != nil { + puo.SetPurposeAndScope(*s) + } + return puo +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (puo *ProcedureUpdateOne) ClearPurposeAndScope() *ProcedureUpdateOne { + puo.mutation.ClearPurposeAndScope() + return puo +} + +// SetBackground sets the "background" field. +func (puo *ProcedureUpdateOne) SetBackground(s string) *ProcedureUpdateOne { + puo.mutation.SetBackground(s) + return puo +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (puo *ProcedureUpdateOne) SetNillableBackground(s *string) *ProcedureUpdateOne { + if s != nil { + puo.SetBackground(*s) + } + return puo +} + +// ClearBackground clears the value of the "background" field. +func (puo *ProcedureUpdateOne) ClearBackground() *ProcedureUpdateOne { + puo.mutation.ClearBackground() + return puo +} + +// SetSatisfies sets the "satisfies" field. +func (puo *ProcedureUpdateOne) SetSatisfies(s string) *ProcedureUpdateOne { + puo.mutation.SetSatisfies(s) + return puo +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (puo *ProcedureUpdateOne) SetNillableSatisfies(s *string) *ProcedureUpdateOne { + if s != nil { + puo.SetSatisfies(*s) + } + return puo +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (puo *ProcedureUpdateOne) ClearSatisfies() *ProcedureUpdateOne { + puo.mutation.ClearSatisfies() + return puo +} + +// SetDetails sets the "details" field. +func (puo *ProcedureUpdateOne) SetDetails(m map[string]interface{}) *ProcedureUpdateOne { + puo.mutation.SetDetails(m) + return puo +} + +// ClearDetails clears the value of the "details" field. +func (puo *ProcedureUpdateOne) ClearDetails() *ProcedureUpdateOne { + puo.mutation.ClearDetails() + return puo +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (puo *ProcedureUpdateOne) AddControlIDs(ids ...string) *ProcedureUpdateOne { + puo.mutation.AddControlIDs(ids...) + return puo +} + +// AddControl adds the "control" edges to the Control entity. +func (puo *ProcedureUpdateOne) AddControl(c ...*Control) *ProcedureUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return puo.AddControlIDs(ids...) +} + +// AddInternalpolicyIDs adds the "internalpolicy" edge to the InternalPolicy entity by IDs. +func (puo *ProcedureUpdateOne) AddInternalpolicyIDs(ids ...string) *ProcedureUpdateOne { + puo.mutation.AddInternalpolicyIDs(ids...) + return puo +} + +// AddInternalpolicy adds the "internalpolicy" edges to the InternalPolicy entity. +func (puo *ProcedureUpdateOne) AddInternalpolicy(i ...*InternalPolicy) *ProcedureUpdateOne { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return puo.AddInternalpolicyIDs(ids...) +} + +// AddNarrativeIDs adds the "narratives" edge to the Narrative entity by IDs. +func (puo *ProcedureUpdateOne) AddNarrativeIDs(ids ...string) *ProcedureUpdateOne { + puo.mutation.AddNarrativeIDs(ids...) + return puo +} + +// AddNarratives adds the "narratives" edges to the Narrative entity. +func (puo *ProcedureUpdateOne) AddNarratives(n ...*Narrative) *ProcedureUpdateOne { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return puo.AddNarrativeIDs(ids...) +} + +// AddRiskIDs adds the "risks" edge to the Risk entity by IDs. +func (puo *ProcedureUpdateOne) AddRiskIDs(ids ...string) *ProcedureUpdateOne { + puo.mutation.AddRiskIDs(ids...) + return puo +} + +// AddRisks adds the "risks" edges to the Risk entity. +func (puo *ProcedureUpdateOne) AddRisks(r ...*Risk) *ProcedureUpdateOne { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return puo.AddRiskIDs(ids...) +} + +// Mutation returns the ProcedureMutation object of the builder. +func (puo *ProcedureUpdateOne) Mutation() *ProcedureMutation { + return puo.mutation +} + +// ClearControl clears all "control" edges to the Control entity. +func (puo *ProcedureUpdateOne) ClearControl() *ProcedureUpdateOne { + puo.mutation.ClearControl() + return puo +} + +// RemoveControlIDs removes the "control" edge to Control entities by IDs. +func (puo *ProcedureUpdateOne) RemoveControlIDs(ids ...string) *ProcedureUpdateOne { + puo.mutation.RemoveControlIDs(ids...) + return puo +} + +// RemoveControl removes "control" edges to Control entities. +func (puo *ProcedureUpdateOne) RemoveControl(c ...*Control) *ProcedureUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return puo.RemoveControlIDs(ids...) +} + +// ClearInternalpolicy clears all "internalpolicy" edges to the InternalPolicy entity. +func (puo *ProcedureUpdateOne) ClearInternalpolicy() *ProcedureUpdateOne { + puo.mutation.ClearInternalpolicy() + return puo +} + +// RemoveInternalpolicyIDs removes the "internalpolicy" edge to InternalPolicy entities by IDs. +func (puo *ProcedureUpdateOne) RemoveInternalpolicyIDs(ids ...string) *ProcedureUpdateOne { + puo.mutation.RemoveInternalpolicyIDs(ids...) + return puo +} + +// RemoveInternalpolicy removes "internalpolicy" edges to InternalPolicy entities. +func (puo *ProcedureUpdateOne) RemoveInternalpolicy(i ...*InternalPolicy) *ProcedureUpdateOne { + ids := make([]string, len(i)) + for j := range i { + ids[j] = i[j].ID + } + return puo.RemoveInternalpolicyIDs(ids...) +} + +// ClearNarratives clears all "narratives" edges to the Narrative entity. +func (puo *ProcedureUpdateOne) ClearNarratives() *ProcedureUpdateOne { + puo.mutation.ClearNarratives() + return puo +} + +// RemoveNarrativeIDs removes the "narratives" edge to Narrative entities by IDs. +func (puo *ProcedureUpdateOne) RemoveNarrativeIDs(ids ...string) *ProcedureUpdateOne { + puo.mutation.RemoveNarrativeIDs(ids...) + return puo +} + +// RemoveNarratives removes "narratives" edges to Narrative entities. +func (puo *ProcedureUpdateOne) RemoveNarratives(n ...*Narrative) *ProcedureUpdateOne { + ids := make([]string, len(n)) + for i := range n { + ids[i] = n[i].ID + } + return puo.RemoveNarrativeIDs(ids...) +} + +// ClearRisks clears all "risks" edges to the Risk entity. +func (puo *ProcedureUpdateOne) ClearRisks() *ProcedureUpdateOne { + puo.mutation.ClearRisks() + return puo +} + +// RemoveRiskIDs removes the "risks" edge to Risk entities by IDs. +func (puo *ProcedureUpdateOne) RemoveRiskIDs(ids ...string) *ProcedureUpdateOne { + puo.mutation.RemoveRiskIDs(ids...) + return puo +} + +// RemoveRisks removes "risks" edges to Risk entities. +func (puo *ProcedureUpdateOne) RemoveRisks(r ...*Risk) *ProcedureUpdateOne { + ids := make([]string, len(r)) + for i := range r { + ids[i] = r[i].ID + } + return puo.RemoveRiskIDs(ids...) +} + +// Where appends a list predicates to the ProcedureUpdate builder. +func (puo *ProcedureUpdateOne) Where(ps ...predicate.Procedure) *ProcedureUpdateOne { + puo.mutation.Where(ps...) + return puo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (puo *ProcedureUpdateOne) Select(field string, fields ...string) *ProcedureUpdateOne { + puo.fields = append([]string{field}, fields...) + return puo +} + +// Save executes the query and returns the updated Procedure entity. +func (puo *ProcedureUpdateOne) Save(ctx context.Context) (*Procedure, error) { + if err := puo.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, puo.sqlSave, puo.mutation, puo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (puo *ProcedureUpdateOne) SaveX(ctx context.Context) *Procedure { + node, err := puo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (puo *ProcedureUpdateOne) Exec(ctx context.Context) error { + _, err := puo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (puo *ProcedureUpdateOne) ExecX(ctx context.Context) { + if err := puo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (puo *ProcedureUpdateOne) defaults() error { + if _, ok := puo.mutation.UpdatedAt(); !ok && !puo.mutation.UpdatedAtCleared() { + if procedure.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized procedure.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := procedure.UpdateDefaultUpdatedAt() + puo.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (puo *ProcedureUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProcedureUpdateOne { + puo.modifiers = append(puo.modifiers, modifiers...) + return puo +} + +func (puo *ProcedureUpdateOne) sqlSave(ctx context.Context) (_node *Procedure, err error) { + _spec := sqlgraph.NewUpdateSpec(procedure.Table, procedure.Columns, sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString)) + id, ok := puo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "Procedure.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := puo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, procedure.FieldID) + for _, f := range fields { + if !procedure.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != procedure.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := puo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if puo.mutation.CreatedAtCleared() { + _spec.ClearField(procedure.FieldCreatedAt, field.TypeTime) + } + if value, ok := puo.mutation.UpdatedAt(); ok { + _spec.SetField(procedure.FieldUpdatedAt, field.TypeTime, value) + } + if puo.mutation.UpdatedAtCleared() { + _spec.ClearField(procedure.FieldUpdatedAt, field.TypeTime) + } + if puo.mutation.CreatedByCleared() { + _spec.ClearField(procedure.FieldCreatedBy, field.TypeString) + } + if value, ok := puo.mutation.UpdatedBy(); ok { + _spec.SetField(procedure.FieldUpdatedBy, field.TypeString, value) + } + if puo.mutation.UpdatedByCleared() { + _spec.ClearField(procedure.FieldUpdatedBy, field.TypeString) + } + if value, ok := puo.mutation.DeletedAt(); ok { + _spec.SetField(procedure.FieldDeletedAt, field.TypeTime, value) + } + if puo.mutation.DeletedAtCleared() { + _spec.ClearField(procedure.FieldDeletedAt, field.TypeTime) + } + if value, ok := puo.mutation.DeletedBy(); ok { + _spec.SetField(procedure.FieldDeletedBy, field.TypeString, value) + } + if puo.mutation.DeletedByCleared() { + _spec.ClearField(procedure.FieldDeletedBy, field.TypeString) + } + if value, ok := puo.mutation.Tags(); ok { + _spec.SetField(procedure.FieldTags, field.TypeJSON, value) + } + if value, ok := puo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, procedure.FieldTags, value) + }) + } + if puo.mutation.TagsCleared() { + _spec.ClearField(procedure.FieldTags, field.TypeJSON) + } + if value, ok := puo.mutation.Name(); ok { + _spec.SetField(procedure.FieldName, field.TypeString, value) + } + if value, ok := puo.mutation.Description(); ok { + _spec.SetField(procedure.FieldDescription, field.TypeString, value) + } + if puo.mutation.DescriptionCleared() { + _spec.ClearField(procedure.FieldDescription, field.TypeString) + } + if value, ok := puo.mutation.Status(); ok { + _spec.SetField(procedure.FieldStatus, field.TypeString, value) + } + if puo.mutation.StatusCleared() { + _spec.ClearField(procedure.FieldStatus, field.TypeString) + } + if value, ok := puo.mutation.ProcedureType(); ok { + _spec.SetField(procedure.FieldProcedureType, field.TypeString, value) + } + if puo.mutation.ProcedureTypeCleared() { + _spec.ClearField(procedure.FieldProcedureType, field.TypeString) + } + if value, ok := puo.mutation.Version(); ok { + _spec.SetField(procedure.FieldVersion, field.TypeString, value) + } + if puo.mutation.VersionCleared() { + _spec.ClearField(procedure.FieldVersion, field.TypeString) + } + if value, ok := puo.mutation.PurposeAndScope(); ok { + _spec.SetField(procedure.FieldPurposeAndScope, field.TypeString, value) + } + if puo.mutation.PurposeAndScopeCleared() { + _spec.ClearField(procedure.FieldPurposeAndScope, field.TypeString) + } + if value, ok := puo.mutation.Background(); ok { + _spec.SetField(procedure.FieldBackground, field.TypeString, value) + } + if puo.mutation.BackgroundCleared() { + _spec.ClearField(procedure.FieldBackground, field.TypeString) + } + if value, ok := puo.mutation.Satisfies(); ok { + _spec.SetField(procedure.FieldSatisfies, field.TypeString, value) + } + if puo.mutation.SatisfiesCleared() { + _spec.ClearField(procedure.FieldSatisfies, field.TypeString) + } + if value, ok := puo.mutation.Details(); ok { + _spec.SetField(procedure.FieldDetails, field.TypeJSON, value) + } + if puo.mutation.DetailsCleared() { + _spec.ClearField(procedure.FieldDetails, field.TypeJSON) + } + if puo.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.ControlTable, + Columns: procedure.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = puo.schemaConfig.ControlProcedures + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := puo.mutation.RemovedControlIDs(); len(nodes) > 0 && !puo.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.ControlTable, + Columns: procedure.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = puo.schemaConfig.ControlProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := puo.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.ControlTable, + Columns: procedure.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = puo.schemaConfig.ControlProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if puo.mutation.InternalpolicyCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.InternalpolicyTable, + Columns: procedure.InternalpolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = puo.schemaConfig.InternalPolicyProcedures + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := puo.mutation.RemovedInternalpolicyIDs(); len(nodes) > 0 && !puo.mutation.InternalpolicyCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.InternalpolicyTable, + Columns: procedure.InternalpolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = puo.schemaConfig.InternalPolicyProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := puo.mutation.InternalpolicyIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: procedure.InternalpolicyTable, + Columns: procedure.InternalpolicyPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(internalpolicy.FieldID, field.TypeString), + }, + } + edge.Schema = puo.schemaConfig.InternalPolicyProcedures + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if puo.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.NarrativesTable, + Columns: procedure.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = puo.schemaConfig.ProcedureNarratives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := puo.mutation.RemovedNarrativesIDs(); len(nodes) > 0 && !puo.mutation.NarrativesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.NarrativesTable, + Columns: procedure.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = puo.schemaConfig.ProcedureNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := puo.mutation.NarrativesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.NarrativesTable, + Columns: procedure.NarrativesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(narrative.FieldID, field.TypeString), + }, + } + edge.Schema = puo.schemaConfig.ProcedureNarratives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if puo.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.RisksTable, + Columns: procedure.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = puo.schemaConfig.ProcedureRisks + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := puo.mutation.RemovedRisksIDs(); len(nodes) > 0 && !puo.mutation.RisksCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.RisksTable, + Columns: procedure.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = puo.schemaConfig.ProcedureRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := puo.mutation.RisksIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: procedure.RisksTable, + Columns: procedure.RisksPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString), + }, + } + edge.Schema = puo.schemaConfig.ProcedureRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = puo.schemaConfig.Procedure + ctx = internal.NewSchemaConfigContext(ctx, puo.schemaConfig) + _spec.AddModifiers(puo.modifiers...) + _node = &Procedure{config: puo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, puo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{procedure.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + puo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/procedurehistory.go b/internal/ent/generated/procedurehistory.go new file mode 100644 index 00000000..4b484dbb --- /dev/null +++ b/internal/ent/generated/procedurehistory.go @@ -0,0 +1,323 @@ +// 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/internal/ent/generated/procedurehistory" + "github.com/theopenlane/entx/history" +) + +// ProcedureHistory is the model entity for the ProcedureHistory schema. +type ProcedureHistory 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the procedure + Name string `json:"name,omitempty"` + // description of the procedure + Description string `json:"description,omitempty"` + // status of the procedure + Status string `json:"status,omitempty"` + // type of the procedure + ProcedureType string `json:"procedure_type,omitempty"` + // version of the procedure + Version string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope string `json:"purpose_and_scope,omitempty"` + // background of the procedure + Background string `json:"background,omitempty"` + // which controls are satisfied by the procedure + Satisfies string `json:"satisfies,omitempty"` + // json data for the procedure document + Details map[string]interface{} `json:"details,omitempty"` + selectValues sql.SelectValues +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*ProcedureHistory) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case procedurehistory.FieldTags, procedurehistory.FieldDetails: + values[i] = new([]byte) + case procedurehistory.FieldOperation: + values[i] = new(history.OpType) + case procedurehistory.FieldID, procedurehistory.FieldRef, procedurehistory.FieldCreatedBy, procedurehistory.FieldUpdatedBy, procedurehistory.FieldDeletedBy, procedurehistory.FieldMappingID, procedurehistory.FieldName, procedurehistory.FieldDescription, procedurehistory.FieldStatus, procedurehistory.FieldProcedureType, procedurehistory.FieldVersion, procedurehistory.FieldPurposeAndScope, procedurehistory.FieldBackground, procedurehistory.FieldSatisfies: + values[i] = new(sql.NullString) + case procedurehistory.FieldHistoryTime, procedurehistory.FieldCreatedAt, procedurehistory.FieldUpdatedAt, procedurehistory.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 ProcedureHistory fields. +func (ph *ProcedureHistory) 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 procedurehistory.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + ph.ID = value.String + } + case procedurehistory.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 { + ph.HistoryTime = value.Time + } + case procedurehistory.FieldRef: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field ref", values[i]) + } else if value.Valid { + ph.Ref = value.String + } + case procedurehistory.FieldOperation: + if value, ok := values[i].(*history.OpType); !ok { + return fmt.Errorf("unexpected type %T for field operation", values[i]) + } else if value != nil { + ph.Operation = *value + } + case procedurehistory.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 { + ph.CreatedAt = value.Time + } + case procedurehistory.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 { + ph.UpdatedAt = value.Time + } + case procedurehistory.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 { + ph.CreatedBy = value.String + } + case procedurehistory.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 { + ph.UpdatedBy = value.String + } + case procedurehistory.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 { + ph.DeletedAt = value.Time + } + case procedurehistory.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 { + ph.DeletedBy = value.String + } + case procedurehistory.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + ph.MappingID = value.String + } + case procedurehistory.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, &ph.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case procedurehistory.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + ph.Name = value.String + } + case procedurehistory.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + ph.Description = value.String + } + case procedurehistory.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + ph.Status = value.String + } + case procedurehistory.FieldProcedureType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field procedure_type", values[i]) + } else if value.Valid { + ph.ProcedureType = value.String + } + case procedurehistory.FieldVersion: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field version", values[i]) + } else if value.Valid { + ph.Version = value.String + } + case procedurehistory.FieldPurposeAndScope: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field purpose_and_scope", values[i]) + } else if value.Valid { + ph.PurposeAndScope = value.String + } + case procedurehistory.FieldBackground: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field background", values[i]) + } else if value.Valid { + ph.Background = value.String + } + case procedurehistory.FieldSatisfies: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field satisfies", values[i]) + } else if value.Valid { + ph.Satisfies = value.String + } + case procedurehistory.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &ph.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + ph.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the ProcedureHistory. +// This includes values selected through modifiers, order, etc. +func (ph *ProcedureHistory) Value(name string) (ent.Value, error) { + return ph.selectValues.Get(name) +} + +// Update returns a builder for updating this ProcedureHistory. +// Note that you need to call ProcedureHistory.Unwrap() before calling this method if this ProcedureHistory +// was returned from a transaction, and the transaction was committed or rolled back. +func (ph *ProcedureHistory) Update() *ProcedureHistoryUpdateOne { + return NewProcedureHistoryClient(ph.config).UpdateOne(ph) +} + +// Unwrap unwraps the ProcedureHistory 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 (ph *ProcedureHistory) Unwrap() *ProcedureHistory { + _tx, ok := ph.config.driver.(*txDriver) + if !ok { + panic("generated: ProcedureHistory is not a transactional entity") + } + ph.config.driver = _tx.drv + return ph +} + +// String implements the fmt.Stringer. +func (ph *ProcedureHistory) String() string { + var builder strings.Builder + builder.WriteString("ProcedureHistory(") + builder.WriteString(fmt.Sprintf("id=%v, ", ph.ID)) + builder.WriteString("history_time=") + builder.WriteString(ph.HistoryTime.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("ref=") + builder.WriteString(ph.Ref) + builder.WriteString(", ") + builder.WriteString("operation=") + builder.WriteString(fmt.Sprintf("%v", ph.Operation)) + builder.WriteString(", ") + builder.WriteString("created_at=") + builder.WriteString(ph.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(ph.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(ph.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(ph.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(ph.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(ph.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(ph.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", ph.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(ph.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(ph.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(ph.Status) + builder.WriteString(", ") + builder.WriteString("procedure_type=") + builder.WriteString(ph.ProcedureType) + builder.WriteString(", ") + builder.WriteString("version=") + builder.WriteString(ph.Version) + builder.WriteString(", ") + builder.WriteString("purpose_and_scope=") + builder.WriteString(ph.PurposeAndScope) + builder.WriteString(", ") + builder.WriteString("background=") + builder.WriteString(ph.Background) + builder.WriteString(", ") + builder.WriteString("satisfies=") + builder.WriteString(ph.Satisfies) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", ph.Details)) + builder.WriteByte(')') + return builder.String() +} + +// ProcedureHistories is a parsable slice of ProcedureHistory. +type ProcedureHistories []*ProcedureHistory diff --git a/internal/ent/generated/procedurehistory/procedurehistory.go b/internal/ent/generated/procedurehistory/procedurehistory.go new file mode 100644 index 00000000..14fe21e1 --- /dev/null +++ b/internal/ent/generated/procedurehistory/procedurehistory.go @@ -0,0 +1,228 @@ +// Code generated by ent, DO NOT EDIT. + +package procedurehistory + +import ( + "fmt" + "time" + + "entgo.io/ent/dialect/sql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/entx/history" +) + +const ( + // Label holds the string label denoting the procedurehistory type in the database. + Label = "procedure_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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldProcedureType holds the string denoting the procedure_type field in the database. + FieldProcedureType = "procedure_type" + // FieldVersion holds the string denoting the version field in the database. + FieldVersion = "version" + // FieldPurposeAndScope holds the string denoting the purpose_and_scope field in the database. + FieldPurposeAndScope = "purpose_and_scope" + // FieldBackground holds the string denoting the background field in the database. + FieldBackground = "background" + // FieldSatisfies holds the string denoting the satisfies field in the database. + FieldSatisfies = "satisfies" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // Table holds the table name of the procedurehistory in the database. + Table = "procedure_history" +) + +// Columns holds all SQL columns for procedurehistory fields. +var Columns = []string{ + FieldID, + FieldHistoryTime, + FieldRef, + FieldOperation, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldProcedureType, + FieldVersion, + FieldPurposeAndScope, + FieldBackground, + FieldSatisfies, + FieldDetails, +} + +// 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 +} + +var ( + // 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 + // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. + UpdateDefaultUpdatedAt func() time.Time + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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("procedurehistory: invalid enum value for operation field: %q", o) + } +} + +// OrderOption defines the ordering options for the ProcedureHistory 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByProcedureType orders the results by the procedure_type field. +func ByProcedureType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldProcedureType, opts...).ToFunc() +} + +// ByVersion orders the results by the version field. +func ByVersion(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldVersion, opts...).ToFunc() +} + +// ByPurposeAndScope orders the results by the purpose_and_scope field. +func ByPurposeAndScope(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldPurposeAndScope, opts...).ToFunc() +} + +// ByBackground orders the results by the background field. +func ByBackground(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldBackground, opts...).ToFunc() +} + +// BySatisfies orders the results by the satisfies field. +func BySatisfies(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSatisfies, 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/generated/procedurehistory/where.go b/internal/ent/generated/procedurehistory/where.go new file mode 100644 index 00000000..149de8d3 --- /dev/null +++ b/internal/ent/generated/procedurehistory/where.go @@ -0,0 +1,1351 @@ +// Code generated by ent, DO NOT EDIT. + +package procedurehistory + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/entx/history" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(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.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// Ref applies equality check predicate on the "ref" field. It's identical to RefEQ. +func Ref(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(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.ProcedureHistory { + return predicate.ProcedureHistory(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.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldStatus, v)) +} + +// ProcedureType applies equality check predicate on the "procedure_type" field. It's identical to ProcedureTypeEQ. +func ProcedureType(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldProcedureType, v)) +} + +// Version applies equality check predicate on the "version" field. It's identical to VersionEQ. +func Version(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldVersion, v)) +} + +// PurposeAndScope applies equality check predicate on the "purpose_and_scope" field. It's identical to PurposeAndScopeEQ. +func PurposeAndScope(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldPurposeAndScope, v)) +} + +// Background applies equality check predicate on the "background" field. It's identical to BackgroundEQ. +func Background(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldBackground, v)) +} + +// Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ. +func Satisfies(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldSatisfies, v)) +} + +// HistoryTimeEQ applies the EQ predicate on the "history_time" field. +func HistoryTimeEQ(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// HistoryTimeNEQ applies the NEQ predicate on the "history_time" field. +func HistoryTimeNEQ(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldHistoryTime, v)) +} + +// HistoryTimeIn applies the In predicate on the "history_time" field. +func HistoryTimeIn(vs ...time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeNotIn applies the NotIn predicate on the "history_time" field. +func HistoryTimeNotIn(vs ...time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeGT applies the GT predicate on the "history_time" field. +func HistoryTimeGT(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldHistoryTime, v)) +} + +// HistoryTimeGTE applies the GTE predicate on the "history_time" field. +func HistoryTimeGTE(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldHistoryTime, v)) +} + +// HistoryTimeLT applies the LT predicate on the "history_time" field. +func HistoryTimeLT(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldHistoryTime, v)) +} + +// HistoryTimeLTE applies the LTE predicate on the "history_time" field. +func HistoryTimeLTE(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldHistoryTime, v)) +} + +// RefEQ applies the EQ predicate on the "ref" field. +func RefEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldRef, v)) +} + +// RefNEQ applies the NEQ predicate on the "ref" field. +func RefNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldRef, v)) +} + +// RefIn applies the In predicate on the "ref" field. +func RefIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldRef, vs...)) +} + +// RefNotIn applies the NotIn predicate on the "ref" field. +func RefNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldRef, vs...)) +} + +// RefGT applies the GT predicate on the "ref" field. +func RefGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldRef, v)) +} + +// RefGTE applies the GTE predicate on the "ref" field. +func RefGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldRef, v)) +} + +// RefLT applies the LT predicate on the "ref" field. +func RefLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldRef, v)) +} + +// RefLTE applies the LTE predicate on the "ref" field. +func RefLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldRef, v)) +} + +// RefContains applies the Contains predicate on the "ref" field. +func RefContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldRef, v)) +} + +// RefHasPrefix applies the HasPrefix predicate on the "ref" field. +func RefHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldRef, v)) +} + +// RefHasSuffix applies the HasSuffix predicate on the "ref" field. +func RefHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldRef, v)) +} + +// RefIsNil applies the IsNil predicate on the "ref" field. +func RefIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldRef)) +} + +// RefNotNil applies the NotNil predicate on the "ref" field. +func RefNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldRef)) +} + +// RefEqualFold applies the EqualFold predicate on the "ref" field. +func RefEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldRef, v)) +} + +// RefContainsFold applies the ContainsFold predicate on the "ref" field. +func RefContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldRef, v)) +} + +// OperationEQ applies the EQ predicate on the "operation" field. +func OperationEQ(v history.OpType) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldOperation, v)) +} + +// OperationNEQ applies the NEQ predicate on the "operation" field. +func OperationNEQ(v history.OpType) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldOperation, v)) +} + +// OperationIn applies the In predicate on the "operation" field. +func OperationIn(vs ...history.OpType) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldOperation, vs...)) +} + +// OperationNotIn applies the NotIn predicate on the "operation" field. +func OperationNotIn(vs ...history.OpType) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldOperation, vs...)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldStatus, v)) +} + +// ProcedureTypeEQ applies the EQ predicate on the "procedure_type" field. +func ProcedureTypeEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldProcedureType, v)) +} + +// ProcedureTypeNEQ applies the NEQ predicate on the "procedure_type" field. +func ProcedureTypeNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldProcedureType, v)) +} + +// ProcedureTypeIn applies the In predicate on the "procedure_type" field. +func ProcedureTypeIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldProcedureType, vs...)) +} + +// ProcedureTypeNotIn applies the NotIn predicate on the "procedure_type" field. +func ProcedureTypeNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldProcedureType, vs...)) +} + +// ProcedureTypeGT applies the GT predicate on the "procedure_type" field. +func ProcedureTypeGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldProcedureType, v)) +} + +// ProcedureTypeGTE applies the GTE predicate on the "procedure_type" field. +func ProcedureTypeGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldProcedureType, v)) +} + +// ProcedureTypeLT applies the LT predicate on the "procedure_type" field. +func ProcedureTypeLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldProcedureType, v)) +} + +// ProcedureTypeLTE applies the LTE predicate on the "procedure_type" field. +func ProcedureTypeLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldProcedureType, v)) +} + +// ProcedureTypeContains applies the Contains predicate on the "procedure_type" field. +func ProcedureTypeContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldProcedureType, v)) +} + +// ProcedureTypeHasPrefix applies the HasPrefix predicate on the "procedure_type" field. +func ProcedureTypeHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldProcedureType, v)) +} + +// ProcedureTypeHasSuffix applies the HasSuffix predicate on the "procedure_type" field. +func ProcedureTypeHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldProcedureType, v)) +} + +// ProcedureTypeIsNil applies the IsNil predicate on the "procedure_type" field. +func ProcedureTypeIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldProcedureType)) +} + +// ProcedureTypeNotNil applies the NotNil predicate on the "procedure_type" field. +func ProcedureTypeNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldProcedureType)) +} + +// ProcedureTypeEqualFold applies the EqualFold predicate on the "procedure_type" field. +func ProcedureTypeEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldProcedureType, v)) +} + +// ProcedureTypeContainsFold applies the ContainsFold predicate on the "procedure_type" field. +func ProcedureTypeContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldProcedureType, v)) +} + +// VersionEQ applies the EQ predicate on the "version" field. +func VersionEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldVersion, v)) +} + +// VersionNEQ applies the NEQ predicate on the "version" field. +func VersionNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldVersion, v)) +} + +// VersionIn applies the In predicate on the "version" field. +func VersionIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldVersion, vs...)) +} + +// VersionNotIn applies the NotIn predicate on the "version" field. +func VersionNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldVersion, vs...)) +} + +// VersionGT applies the GT predicate on the "version" field. +func VersionGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldVersion, v)) +} + +// VersionGTE applies the GTE predicate on the "version" field. +func VersionGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldVersion, v)) +} + +// VersionLT applies the LT predicate on the "version" field. +func VersionLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldVersion, v)) +} + +// VersionLTE applies the LTE predicate on the "version" field. +func VersionLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldVersion, v)) +} + +// VersionContains applies the Contains predicate on the "version" field. +func VersionContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldVersion, v)) +} + +// VersionHasPrefix applies the HasPrefix predicate on the "version" field. +func VersionHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldVersion, v)) +} + +// VersionHasSuffix applies the HasSuffix predicate on the "version" field. +func VersionHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldVersion, v)) +} + +// VersionIsNil applies the IsNil predicate on the "version" field. +func VersionIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldVersion)) +} + +// VersionNotNil applies the NotNil predicate on the "version" field. +func VersionNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldVersion)) +} + +// VersionEqualFold applies the EqualFold predicate on the "version" field. +func VersionEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldVersion, v)) +} + +// VersionContainsFold applies the ContainsFold predicate on the "version" field. +func VersionContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldVersion, v)) +} + +// PurposeAndScopeEQ applies the EQ predicate on the "purpose_and_scope" field. +func PurposeAndScopeEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeNEQ applies the NEQ predicate on the "purpose_and_scope" field. +func PurposeAndScopeNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeIn applies the In predicate on the "purpose_and_scope" field. +func PurposeAndScopeIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldPurposeAndScope, vs...)) +} + +// PurposeAndScopeNotIn applies the NotIn predicate on the "purpose_and_scope" field. +func PurposeAndScopeNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldPurposeAndScope, vs...)) +} + +// PurposeAndScopeGT applies the GT predicate on the "purpose_and_scope" field. +func PurposeAndScopeGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeGTE applies the GTE predicate on the "purpose_and_scope" field. +func PurposeAndScopeGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeLT applies the LT predicate on the "purpose_and_scope" field. +func PurposeAndScopeLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeLTE applies the LTE predicate on the "purpose_and_scope" field. +func PurposeAndScopeLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeContains applies the Contains predicate on the "purpose_and_scope" field. +func PurposeAndScopeContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeHasPrefix applies the HasPrefix predicate on the "purpose_and_scope" field. +func PurposeAndScopeHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeHasSuffix applies the HasSuffix predicate on the "purpose_and_scope" field. +func PurposeAndScopeHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeIsNil applies the IsNil predicate on the "purpose_and_scope" field. +func PurposeAndScopeIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldPurposeAndScope)) +} + +// PurposeAndScopeNotNil applies the NotNil predicate on the "purpose_and_scope" field. +func PurposeAndScopeNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldPurposeAndScope)) +} + +// PurposeAndScopeEqualFold applies the EqualFold predicate on the "purpose_and_scope" field. +func PurposeAndScopeEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeContainsFold applies the ContainsFold predicate on the "purpose_and_scope" field. +func PurposeAndScopeContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldPurposeAndScope, v)) +} + +// BackgroundEQ applies the EQ predicate on the "background" field. +func BackgroundEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldBackground, v)) +} + +// BackgroundNEQ applies the NEQ predicate on the "background" field. +func BackgroundNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldBackground, v)) +} + +// BackgroundIn applies the In predicate on the "background" field. +func BackgroundIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldBackground, vs...)) +} + +// BackgroundNotIn applies the NotIn predicate on the "background" field. +func BackgroundNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldBackground, vs...)) +} + +// BackgroundGT applies the GT predicate on the "background" field. +func BackgroundGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldBackground, v)) +} + +// BackgroundGTE applies the GTE predicate on the "background" field. +func BackgroundGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldBackground, v)) +} + +// BackgroundLT applies the LT predicate on the "background" field. +func BackgroundLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldBackground, v)) +} + +// BackgroundLTE applies the LTE predicate on the "background" field. +func BackgroundLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldBackground, v)) +} + +// BackgroundContains applies the Contains predicate on the "background" field. +func BackgroundContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldBackground, v)) +} + +// BackgroundHasPrefix applies the HasPrefix predicate on the "background" field. +func BackgroundHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldBackground, v)) +} + +// BackgroundHasSuffix applies the HasSuffix predicate on the "background" field. +func BackgroundHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldBackground, v)) +} + +// BackgroundIsNil applies the IsNil predicate on the "background" field. +func BackgroundIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldBackground)) +} + +// BackgroundNotNil applies the NotNil predicate on the "background" field. +func BackgroundNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldBackground)) +} + +// BackgroundEqualFold applies the EqualFold predicate on the "background" field. +func BackgroundEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldBackground, v)) +} + +// BackgroundContainsFold applies the ContainsFold predicate on the "background" field. +func BackgroundContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldBackground, v)) +} + +// SatisfiesEQ applies the EQ predicate on the "satisfies" field. +func SatisfiesEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEQ(FieldSatisfies, v)) +} + +// SatisfiesNEQ applies the NEQ predicate on the "satisfies" field. +func SatisfiesNEQ(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNEQ(FieldSatisfies, v)) +} + +// SatisfiesIn applies the In predicate on the "satisfies" field. +func SatisfiesIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIn(FieldSatisfies, vs...)) +} + +// SatisfiesNotIn applies the NotIn predicate on the "satisfies" field. +func SatisfiesNotIn(vs ...string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotIn(FieldSatisfies, vs...)) +} + +// SatisfiesGT applies the GT predicate on the "satisfies" field. +func SatisfiesGT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGT(FieldSatisfies, v)) +} + +// SatisfiesGTE applies the GTE predicate on the "satisfies" field. +func SatisfiesGTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldGTE(FieldSatisfies, v)) +} + +// SatisfiesLT applies the LT predicate on the "satisfies" field. +func SatisfiesLT(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLT(FieldSatisfies, v)) +} + +// SatisfiesLTE applies the LTE predicate on the "satisfies" field. +func SatisfiesLTE(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldLTE(FieldSatisfies, v)) +} + +// SatisfiesContains applies the Contains predicate on the "satisfies" field. +func SatisfiesContains(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContains(FieldSatisfies, v)) +} + +// SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field. +func SatisfiesHasPrefix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasPrefix(FieldSatisfies, v)) +} + +// SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field. +func SatisfiesHasSuffix(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldHasSuffix(FieldSatisfies, v)) +} + +// SatisfiesIsNil applies the IsNil predicate on the "satisfies" field. +func SatisfiesIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldSatisfies)) +} + +// SatisfiesNotNil applies the NotNil predicate on the "satisfies" field. +func SatisfiesNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldSatisfies)) +} + +// SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field. +func SatisfiesEqualFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldEqualFold(FieldSatisfies, v)) +} + +// SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field. +func SatisfiesContainsFold(v string) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldContainsFold(FieldSatisfies, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.FieldNotNull(FieldDetails)) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.ProcedureHistory) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.ProcedureHistory) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.ProcedureHistory) predicate.ProcedureHistory { + return predicate.ProcedureHistory(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/procedurehistory_create.go b/internal/ent/generated/procedurehistory_create.go new file mode 100644 index 00000000..61039c06 --- /dev/null +++ b/internal/ent/generated/procedurehistory_create.go @@ -0,0 +1,567 @@ +// 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/internal/ent/generated/procedurehistory" + "github.com/theopenlane/entx/history" +) + +// ProcedureHistoryCreate is the builder for creating a ProcedureHistory entity. +type ProcedureHistoryCreate struct { + config + mutation *ProcedureHistoryMutation + hooks []Hook +} + +// SetHistoryTime sets the "history_time" field. +func (phc *ProcedureHistoryCreate) SetHistoryTime(t time.Time) *ProcedureHistoryCreate { + phc.mutation.SetHistoryTime(t) + return phc +} + +// SetNillableHistoryTime sets the "history_time" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableHistoryTime(t *time.Time) *ProcedureHistoryCreate { + if t != nil { + phc.SetHistoryTime(*t) + } + return phc +} + +// SetRef sets the "ref" field. +func (phc *ProcedureHistoryCreate) SetRef(s string) *ProcedureHistoryCreate { + phc.mutation.SetRef(s) + return phc +} + +// SetNillableRef sets the "ref" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableRef(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetRef(*s) + } + return phc +} + +// SetOperation sets the "operation" field. +func (phc *ProcedureHistoryCreate) SetOperation(ht history.OpType) *ProcedureHistoryCreate { + phc.mutation.SetOperation(ht) + return phc +} + +// SetCreatedAt sets the "created_at" field. +func (phc *ProcedureHistoryCreate) SetCreatedAt(t time.Time) *ProcedureHistoryCreate { + phc.mutation.SetCreatedAt(t) + return phc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableCreatedAt(t *time.Time) *ProcedureHistoryCreate { + if t != nil { + phc.SetCreatedAt(*t) + } + return phc +} + +// SetUpdatedAt sets the "updated_at" field. +func (phc *ProcedureHistoryCreate) SetUpdatedAt(t time.Time) *ProcedureHistoryCreate { + phc.mutation.SetUpdatedAt(t) + return phc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableUpdatedAt(t *time.Time) *ProcedureHistoryCreate { + if t != nil { + phc.SetUpdatedAt(*t) + } + return phc +} + +// SetCreatedBy sets the "created_by" field. +func (phc *ProcedureHistoryCreate) SetCreatedBy(s string) *ProcedureHistoryCreate { + phc.mutation.SetCreatedBy(s) + return phc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableCreatedBy(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetCreatedBy(*s) + } + return phc +} + +// SetUpdatedBy sets the "updated_by" field. +func (phc *ProcedureHistoryCreate) SetUpdatedBy(s string) *ProcedureHistoryCreate { + phc.mutation.SetUpdatedBy(s) + return phc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableUpdatedBy(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetUpdatedBy(*s) + } + return phc +} + +// SetDeletedAt sets the "deleted_at" field. +func (phc *ProcedureHistoryCreate) SetDeletedAt(t time.Time) *ProcedureHistoryCreate { + phc.mutation.SetDeletedAt(t) + return phc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableDeletedAt(t *time.Time) *ProcedureHistoryCreate { + if t != nil { + phc.SetDeletedAt(*t) + } + return phc +} + +// SetDeletedBy sets the "deleted_by" field. +func (phc *ProcedureHistoryCreate) SetDeletedBy(s string) *ProcedureHistoryCreate { + phc.mutation.SetDeletedBy(s) + return phc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableDeletedBy(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetDeletedBy(*s) + } + return phc +} + +// SetMappingID sets the "mapping_id" field. +func (phc *ProcedureHistoryCreate) SetMappingID(s string) *ProcedureHistoryCreate { + phc.mutation.SetMappingID(s) + return phc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableMappingID(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetMappingID(*s) + } + return phc +} + +// SetTags sets the "tags" field. +func (phc *ProcedureHistoryCreate) SetTags(s []string) *ProcedureHistoryCreate { + phc.mutation.SetTags(s) + return phc +} + +// SetName sets the "name" field. +func (phc *ProcedureHistoryCreate) SetName(s string) *ProcedureHistoryCreate { + phc.mutation.SetName(s) + return phc +} + +// SetDescription sets the "description" field. +func (phc *ProcedureHistoryCreate) SetDescription(s string) *ProcedureHistoryCreate { + phc.mutation.SetDescription(s) + return phc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableDescription(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetDescription(*s) + } + return phc +} + +// SetStatus sets the "status" field. +func (phc *ProcedureHistoryCreate) SetStatus(s string) *ProcedureHistoryCreate { + phc.mutation.SetStatus(s) + return phc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableStatus(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetStatus(*s) + } + return phc +} + +// SetProcedureType sets the "procedure_type" field. +func (phc *ProcedureHistoryCreate) SetProcedureType(s string) *ProcedureHistoryCreate { + phc.mutation.SetProcedureType(s) + return phc +} + +// SetNillableProcedureType sets the "procedure_type" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableProcedureType(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetProcedureType(*s) + } + return phc +} + +// SetVersion sets the "version" field. +func (phc *ProcedureHistoryCreate) SetVersion(s string) *ProcedureHistoryCreate { + phc.mutation.SetVersion(s) + return phc +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableVersion(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetVersion(*s) + } + return phc +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (phc *ProcedureHistoryCreate) SetPurposeAndScope(s string) *ProcedureHistoryCreate { + phc.mutation.SetPurposeAndScope(s) + return phc +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillablePurposeAndScope(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetPurposeAndScope(*s) + } + return phc +} + +// SetBackground sets the "background" field. +func (phc *ProcedureHistoryCreate) SetBackground(s string) *ProcedureHistoryCreate { + phc.mutation.SetBackground(s) + return phc +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableBackground(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetBackground(*s) + } + return phc +} + +// SetSatisfies sets the "satisfies" field. +func (phc *ProcedureHistoryCreate) SetSatisfies(s string) *ProcedureHistoryCreate { + phc.mutation.SetSatisfies(s) + return phc +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableSatisfies(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetSatisfies(*s) + } + return phc +} + +// SetDetails sets the "details" field. +func (phc *ProcedureHistoryCreate) SetDetails(m map[string]interface{}) *ProcedureHistoryCreate { + phc.mutation.SetDetails(m) + return phc +} + +// SetID sets the "id" field. +func (phc *ProcedureHistoryCreate) SetID(s string) *ProcedureHistoryCreate { + phc.mutation.SetID(s) + return phc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (phc *ProcedureHistoryCreate) SetNillableID(s *string) *ProcedureHistoryCreate { + if s != nil { + phc.SetID(*s) + } + return phc +} + +// Mutation returns the ProcedureHistoryMutation object of the builder. +func (phc *ProcedureHistoryCreate) Mutation() *ProcedureHistoryMutation { + return phc.mutation +} + +// Save creates the ProcedureHistory in the database. +func (phc *ProcedureHistoryCreate) Save(ctx context.Context) (*ProcedureHistory, error) { + phc.defaults() + return withHooks(ctx, phc.sqlSave, phc.mutation, phc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (phc *ProcedureHistoryCreate) SaveX(ctx context.Context) *ProcedureHistory { + v, err := phc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (phc *ProcedureHistoryCreate) Exec(ctx context.Context) error { + _, err := phc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (phc *ProcedureHistoryCreate) ExecX(ctx context.Context) { + if err := phc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (phc *ProcedureHistoryCreate) defaults() { + if _, ok := phc.mutation.HistoryTime(); !ok { + v := procedurehistory.DefaultHistoryTime() + phc.mutation.SetHistoryTime(v) + } + if _, ok := phc.mutation.CreatedAt(); !ok { + v := procedurehistory.DefaultCreatedAt() + phc.mutation.SetCreatedAt(v) + } + if _, ok := phc.mutation.UpdatedAt(); !ok { + v := procedurehistory.DefaultUpdatedAt() + phc.mutation.SetUpdatedAt(v) + } + if _, ok := phc.mutation.MappingID(); !ok { + v := procedurehistory.DefaultMappingID() + phc.mutation.SetMappingID(v) + } + if _, ok := phc.mutation.Tags(); !ok { + v := procedurehistory.DefaultTags + phc.mutation.SetTags(v) + } + if _, ok := phc.mutation.ID(); !ok { + v := procedurehistory.DefaultID() + phc.mutation.SetID(v) + } +} + +// check runs all checks and user-defined validators on the builder. +func (phc *ProcedureHistoryCreate) check() error { + if _, ok := phc.mutation.HistoryTime(); !ok { + return &ValidationError{Name: "history_time", err: errors.New(`generated: missing required field "ProcedureHistory.history_time"`)} + } + if _, ok := phc.mutation.Operation(); !ok { + return &ValidationError{Name: "operation", err: errors.New(`generated: missing required field "ProcedureHistory.operation"`)} + } + if v, ok := phc.mutation.Operation(); ok { + if err := procedurehistory.OperationValidator(v); err != nil { + return &ValidationError{Name: "operation", err: fmt.Errorf(`generated: validator failed for field "ProcedureHistory.operation": %w`, err)} + } + } + if _, ok := phc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "ProcedureHistory.mapping_id"`)} + } + if _, ok := phc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "ProcedureHistory.name"`)} + } + return nil +} + +func (phc *ProcedureHistoryCreate) sqlSave(ctx context.Context) (*ProcedureHistory, error) { + if err := phc.check(); err != nil { + return nil, err + } + _node, _spec := phc.createSpec() + if err := sqlgraph.CreateNode(ctx, phc.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 ProcedureHistory.ID type: %T", _spec.ID.Value) + } + } + phc.mutation.id = &_node.ID + phc.mutation.done = true + return _node, nil +} + +func (phc *ProcedureHistoryCreate) createSpec() (*ProcedureHistory, *sqlgraph.CreateSpec) { + var ( + _node = &ProcedureHistory{config: phc.config} + _spec = sqlgraph.NewCreateSpec(procedurehistory.Table, sqlgraph.NewFieldSpec(procedurehistory.FieldID, field.TypeString)) + ) + _spec.Schema = phc.schemaConfig.ProcedureHistory + if id, ok := phc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := phc.mutation.HistoryTime(); ok { + _spec.SetField(procedurehistory.FieldHistoryTime, field.TypeTime, value) + _node.HistoryTime = value + } + if value, ok := phc.mutation.Ref(); ok { + _spec.SetField(procedurehistory.FieldRef, field.TypeString, value) + _node.Ref = value + } + if value, ok := phc.mutation.Operation(); ok { + _spec.SetField(procedurehistory.FieldOperation, field.TypeEnum, value) + _node.Operation = value + } + if value, ok := phc.mutation.CreatedAt(); ok { + _spec.SetField(procedurehistory.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := phc.mutation.UpdatedAt(); ok { + _spec.SetField(procedurehistory.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := phc.mutation.CreatedBy(); ok { + _spec.SetField(procedurehistory.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := phc.mutation.UpdatedBy(); ok { + _spec.SetField(procedurehistory.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := phc.mutation.DeletedAt(); ok { + _spec.SetField(procedurehistory.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := phc.mutation.DeletedBy(); ok { + _spec.SetField(procedurehistory.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := phc.mutation.MappingID(); ok { + _spec.SetField(procedurehistory.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := phc.mutation.Tags(); ok { + _spec.SetField(procedurehistory.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := phc.mutation.Name(); ok { + _spec.SetField(procedurehistory.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := phc.mutation.Description(); ok { + _spec.SetField(procedurehistory.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := phc.mutation.Status(); ok { + _spec.SetField(procedurehistory.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := phc.mutation.ProcedureType(); ok { + _spec.SetField(procedurehistory.FieldProcedureType, field.TypeString, value) + _node.ProcedureType = value + } + if value, ok := phc.mutation.Version(); ok { + _spec.SetField(procedurehistory.FieldVersion, field.TypeString, value) + _node.Version = value + } + if value, ok := phc.mutation.PurposeAndScope(); ok { + _spec.SetField(procedurehistory.FieldPurposeAndScope, field.TypeString, value) + _node.PurposeAndScope = value + } + if value, ok := phc.mutation.Background(); ok { + _spec.SetField(procedurehistory.FieldBackground, field.TypeString, value) + _node.Background = value + } + if value, ok := phc.mutation.Satisfies(); ok { + _spec.SetField(procedurehistory.FieldSatisfies, field.TypeString, value) + _node.Satisfies = value + } + if value, ok := phc.mutation.Details(); ok { + _spec.SetField(procedurehistory.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + return _node, _spec +} + +// ProcedureHistoryCreateBulk is the builder for creating many ProcedureHistory entities in bulk. +type ProcedureHistoryCreateBulk struct { + config + err error + builders []*ProcedureHistoryCreate +} + +// Save creates the ProcedureHistory entities in the database. +func (phcb *ProcedureHistoryCreateBulk) Save(ctx context.Context) ([]*ProcedureHistory, error) { + if phcb.err != nil { + return nil, phcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(phcb.builders)) + nodes := make([]*ProcedureHistory, len(phcb.builders)) + mutators := make([]Mutator, len(phcb.builders)) + for i := range phcb.builders { + func(i int, root context.Context) { + builder := phcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*ProcedureHistoryMutation) + 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, phcb.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, phcb.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, phcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (phcb *ProcedureHistoryCreateBulk) SaveX(ctx context.Context) []*ProcedureHistory { + v, err := phcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (phcb *ProcedureHistoryCreateBulk) Exec(ctx context.Context) error { + _, err := phcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (phcb *ProcedureHistoryCreateBulk) ExecX(ctx context.Context) { + if err := phcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/procedurehistory_delete.go b/internal/ent/generated/procedurehistory_delete.go new file mode 100644 index 00000000..61199a73 --- /dev/null +++ b/internal/ent/generated/procedurehistory_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" +) + +// ProcedureHistoryDelete is the builder for deleting a ProcedureHistory entity. +type ProcedureHistoryDelete struct { + config + hooks []Hook + mutation *ProcedureHistoryMutation +} + +// Where appends a list predicates to the ProcedureHistoryDelete builder. +func (phd *ProcedureHistoryDelete) Where(ps ...predicate.ProcedureHistory) *ProcedureHistoryDelete { + phd.mutation.Where(ps...) + return phd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (phd *ProcedureHistoryDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, phd.sqlExec, phd.mutation, phd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (phd *ProcedureHistoryDelete) ExecX(ctx context.Context) int { + n, err := phd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (phd *ProcedureHistoryDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(procedurehistory.Table, sqlgraph.NewFieldSpec(procedurehistory.FieldID, field.TypeString)) + _spec.Node.Schema = phd.schemaConfig.ProcedureHistory + ctx = internal.NewSchemaConfigContext(ctx, phd.schemaConfig) + if ps := phd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, phd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + phd.mutation.done = true + return affected, err +} + +// ProcedureHistoryDeleteOne is the builder for deleting a single ProcedureHistory entity. +type ProcedureHistoryDeleteOne struct { + phd *ProcedureHistoryDelete +} + +// Where appends a list predicates to the ProcedureHistoryDelete builder. +func (phdo *ProcedureHistoryDeleteOne) Where(ps ...predicate.ProcedureHistory) *ProcedureHistoryDeleteOne { + phdo.phd.mutation.Where(ps...) + return phdo +} + +// Exec executes the deletion query. +func (phdo *ProcedureHistoryDeleteOne) Exec(ctx context.Context) error { + n, err := phdo.phd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{procedurehistory.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (phdo *ProcedureHistoryDeleteOne) ExecX(ctx context.Context) { + if err := phdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/procedurehistory_query.go b/internal/ent/generated/procedurehistory_query.go new file mode 100644 index 00000000..d21ec7a7 --- /dev/null +++ b/internal/ent/generated/procedurehistory_query.go @@ -0,0 +1,565 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "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/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ProcedureHistoryQuery is the builder for querying ProcedureHistory entities. +type ProcedureHistoryQuery struct { + config + ctx *QueryContext + order []procedurehistory.OrderOption + inters []Interceptor + predicates []predicate.ProcedureHistory + loadTotal []func(context.Context, []*ProcedureHistory) 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 ProcedureHistoryQuery builder. +func (phq *ProcedureHistoryQuery) Where(ps ...predicate.ProcedureHistory) *ProcedureHistoryQuery { + phq.predicates = append(phq.predicates, ps...) + return phq +} + +// Limit the number of records to be returned by this query. +func (phq *ProcedureHistoryQuery) Limit(limit int) *ProcedureHistoryQuery { + phq.ctx.Limit = &limit + return phq +} + +// Offset to start from. +func (phq *ProcedureHistoryQuery) Offset(offset int) *ProcedureHistoryQuery { + phq.ctx.Offset = &offset + return phq +} + +// 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 (phq *ProcedureHistoryQuery) Unique(unique bool) *ProcedureHistoryQuery { + phq.ctx.Unique = &unique + return phq +} + +// Order specifies how the records should be ordered. +func (phq *ProcedureHistoryQuery) Order(o ...procedurehistory.OrderOption) *ProcedureHistoryQuery { + phq.order = append(phq.order, o...) + return phq +} + +// First returns the first ProcedureHistory entity from the query. +// Returns a *NotFoundError when no ProcedureHistory was found. +func (phq *ProcedureHistoryQuery) First(ctx context.Context) (*ProcedureHistory, error) { + nodes, err := phq.Limit(1).All(setContextOp(ctx, phq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{procedurehistory.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (phq *ProcedureHistoryQuery) FirstX(ctx context.Context) *ProcedureHistory { + node, err := phq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first ProcedureHistory ID from the query. +// Returns a *NotFoundError when no ProcedureHistory ID was found. +func (phq *ProcedureHistoryQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = phq.Limit(1).IDs(setContextOp(ctx, phq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{procedurehistory.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (phq *ProcedureHistoryQuery) FirstIDX(ctx context.Context) string { + id, err := phq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single ProcedureHistory entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one ProcedureHistory entity is found. +// Returns a *NotFoundError when no ProcedureHistory entities are found. +func (phq *ProcedureHistoryQuery) Only(ctx context.Context) (*ProcedureHistory, error) { + nodes, err := phq.Limit(2).All(setContextOp(ctx, phq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{procedurehistory.Label} + default: + return nil, &NotSingularError{procedurehistory.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (phq *ProcedureHistoryQuery) OnlyX(ctx context.Context) *ProcedureHistory { + node, err := phq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only ProcedureHistory ID in the query. +// Returns a *NotSingularError when more than one ProcedureHistory ID is found. +// Returns a *NotFoundError when no entities are found. +func (phq *ProcedureHistoryQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = phq.Limit(2).IDs(setContextOp(ctx, phq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{procedurehistory.Label} + default: + err = &NotSingularError{procedurehistory.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (phq *ProcedureHistoryQuery) OnlyIDX(ctx context.Context) string { + id, err := phq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of ProcedureHistories. +func (phq *ProcedureHistoryQuery) All(ctx context.Context) ([]*ProcedureHistory, error) { + ctx = setContextOp(ctx, phq.ctx, ent.OpQueryAll) + if err := phq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*ProcedureHistory, *ProcedureHistoryQuery]() + return withInterceptors[[]*ProcedureHistory](ctx, phq, qr, phq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (phq *ProcedureHistoryQuery) AllX(ctx context.Context) []*ProcedureHistory { + nodes, err := phq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of ProcedureHistory IDs. +func (phq *ProcedureHistoryQuery) IDs(ctx context.Context) (ids []string, err error) { + if phq.ctx.Unique == nil && phq.path != nil { + phq.Unique(true) + } + ctx = setContextOp(ctx, phq.ctx, ent.OpQueryIDs) + if err = phq.Select(procedurehistory.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (phq *ProcedureHistoryQuery) IDsX(ctx context.Context) []string { + ids, err := phq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (phq *ProcedureHistoryQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, phq.ctx, ent.OpQueryCount) + if err := phq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, phq, querierCount[*ProcedureHistoryQuery](), phq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (phq *ProcedureHistoryQuery) CountX(ctx context.Context) int { + count, err := phq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (phq *ProcedureHistoryQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, phq.ctx, ent.OpQueryExist) + switch _, err := phq.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 (phq *ProcedureHistoryQuery) ExistX(ctx context.Context) bool { + exist, err := phq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the ProcedureHistoryQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (phq *ProcedureHistoryQuery) Clone() *ProcedureHistoryQuery { + if phq == nil { + return nil + } + return &ProcedureHistoryQuery{ + config: phq.config, + ctx: phq.ctx.Clone(), + order: append([]procedurehistory.OrderOption{}, phq.order...), + inters: append([]Interceptor{}, phq.inters...), + predicates: append([]predicate.ProcedureHistory{}, phq.predicates...), + // clone intermediate query. + sql: phq.sql.Clone(), + path: phq.path, + modifiers: append([]func(*sql.Selector){}, phq.modifiers...), + } +} + +// 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.ProcedureHistory.Query(). +// GroupBy(procedurehistory.FieldHistoryTime). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (phq *ProcedureHistoryQuery) GroupBy(field string, fields ...string) *ProcedureHistoryGroupBy { + phq.ctx.Fields = append([]string{field}, fields...) + grbuild := &ProcedureHistoryGroupBy{build: phq} + grbuild.flds = &phq.ctx.Fields + grbuild.label = procedurehistory.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.ProcedureHistory.Query(). +// Select(procedurehistory.FieldHistoryTime). +// Scan(ctx, &v) +func (phq *ProcedureHistoryQuery) Select(fields ...string) *ProcedureHistorySelect { + phq.ctx.Fields = append(phq.ctx.Fields, fields...) + sbuild := &ProcedureHistorySelect{ProcedureHistoryQuery: phq} + sbuild.label = procedurehistory.Label + sbuild.flds, sbuild.scan = &phq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a ProcedureHistorySelect configured with the given aggregations. +func (phq *ProcedureHistoryQuery) Aggregate(fns ...AggregateFunc) *ProcedureHistorySelect { + return phq.Select().Aggregate(fns...) +} + +func (phq *ProcedureHistoryQuery) prepareQuery(ctx context.Context) error { + for _, inter := range phq.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, phq); err != nil { + return err + } + } + } + for _, f := range phq.ctx.Fields { + if !procedurehistory.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if phq.path != nil { + prev, err := phq.path(ctx) + if err != nil { + return err + } + phq.sql = prev + } + return nil +} + +func (phq *ProcedureHistoryQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*ProcedureHistory, error) { + var ( + nodes = []*ProcedureHistory{} + _spec = phq.querySpec() + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*ProcedureHistory).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &ProcedureHistory{config: phq.config} + nodes = append(nodes, node) + return node.assignValues(columns, values) + } + _spec.Node.Schema = phq.schemaConfig.ProcedureHistory + ctx = internal.NewSchemaConfigContext(ctx, phq.schemaConfig) + if len(phq.modifiers) > 0 { + _spec.Modifiers = phq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, phq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + for i := range phq.loadTotal { + if err := phq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (phq *ProcedureHistoryQuery) sqlCount(ctx context.Context) (int, error) { + _spec := phq.querySpec() + _spec.Node.Schema = phq.schemaConfig.ProcedureHistory + ctx = internal.NewSchemaConfigContext(ctx, phq.schemaConfig) + if len(phq.modifiers) > 0 { + _spec.Modifiers = phq.modifiers + } + _spec.Node.Columns = phq.ctx.Fields + if len(phq.ctx.Fields) > 0 { + _spec.Unique = phq.ctx.Unique != nil && *phq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, phq.driver, _spec) +} + +func (phq *ProcedureHistoryQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(procedurehistory.Table, procedurehistory.Columns, sqlgraph.NewFieldSpec(procedurehistory.FieldID, field.TypeString)) + _spec.From = phq.sql + if unique := phq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if phq.path != nil { + _spec.Unique = true + } + if fields := phq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, procedurehistory.FieldID) + for i := range fields { + if fields[i] != procedurehistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := phq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := phq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := phq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := phq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (phq *ProcedureHistoryQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(phq.driver.Dialect()) + t1 := builder.Table(procedurehistory.Table) + columns := phq.ctx.Fields + if len(columns) == 0 { + columns = procedurehistory.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if phq.sql != nil { + selector = phq.sql + selector.Select(selector.Columns(columns...)...) + } + if phq.ctx.Unique != nil && *phq.ctx.Unique { + selector.Distinct() + } + t1.Schema(phq.schemaConfig.ProcedureHistory) + ctx = internal.NewSchemaConfigContext(ctx, phq.schemaConfig) + selector.WithContext(ctx) + for _, m := range phq.modifiers { + m(selector) + } + for _, p := range phq.predicates { + p(selector) + } + for _, p := range phq.order { + p(selector) + } + if offset := phq.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 := phq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (phq *ProcedureHistoryQuery) Modify(modifiers ...func(s *sql.Selector)) *ProcedureHistorySelect { + phq.modifiers = append(phq.modifiers, modifiers...) + return phq.Select() +} + +// ProcedureHistoryGroupBy is the group-by builder for ProcedureHistory entities. +type ProcedureHistoryGroupBy struct { + selector + build *ProcedureHistoryQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (phgb *ProcedureHistoryGroupBy) Aggregate(fns ...AggregateFunc) *ProcedureHistoryGroupBy { + phgb.fns = append(phgb.fns, fns...) + return phgb +} + +// Scan applies the selector query and scans the result into the given value. +func (phgb *ProcedureHistoryGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, phgb.build.ctx, ent.OpQueryGroupBy) + if err := phgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ProcedureHistoryQuery, *ProcedureHistoryGroupBy](ctx, phgb.build, phgb, phgb.build.inters, v) +} + +func (phgb *ProcedureHistoryGroupBy) sqlScan(ctx context.Context, root *ProcedureHistoryQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(phgb.fns)) + for _, fn := range phgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*phgb.flds)+len(phgb.fns)) + for _, f := range *phgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*phgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := phgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// ProcedureHistorySelect is the builder for selecting fields of ProcedureHistory entities. +type ProcedureHistorySelect struct { + *ProcedureHistoryQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (phs *ProcedureHistorySelect) Aggregate(fns ...AggregateFunc) *ProcedureHistorySelect { + phs.fns = append(phs.fns, fns...) + return phs +} + +// Scan applies the selector query and scans the result into the given value. +func (phs *ProcedureHistorySelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, phs.ctx, ent.OpQuerySelect) + if err := phs.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*ProcedureHistoryQuery, *ProcedureHistorySelect](ctx, phs.ProcedureHistoryQuery, phs, phs.inters, v) +} + +func (phs *ProcedureHistorySelect) sqlScan(ctx context.Context, root *ProcedureHistoryQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(phs.fns)) + for _, fn := range phs.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*phs.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 := phs.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 (phs *ProcedureHistorySelect) Modify(modifiers ...func(s *sql.Selector)) *ProcedureHistorySelect { + phs.modifiers = append(phs.modifiers, modifiers...) + return phs +} diff --git a/internal/ent/generated/procedurehistory_update.go b/internal/ent/generated/procedurehistory_update.go new file mode 100644 index 00000000..08bb1747 --- /dev/null +++ b/internal/ent/generated/procedurehistory_update.go @@ -0,0 +1,919 @@ +// 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/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ProcedureHistoryUpdate is the builder for updating ProcedureHistory entities. +type ProcedureHistoryUpdate struct { + config + hooks []Hook + mutation *ProcedureHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the ProcedureHistoryUpdate builder. +func (phu *ProcedureHistoryUpdate) Where(ps ...predicate.ProcedureHistory) *ProcedureHistoryUpdate { + phu.mutation.Where(ps...) + return phu +} + +// SetUpdatedAt sets the "updated_at" field. +func (phu *ProcedureHistoryUpdate) SetUpdatedAt(t time.Time) *ProcedureHistoryUpdate { + phu.mutation.SetUpdatedAt(t) + return phu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (phu *ProcedureHistoryUpdate) ClearUpdatedAt() *ProcedureHistoryUpdate { + phu.mutation.ClearUpdatedAt() + return phu +} + +// SetUpdatedBy sets the "updated_by" field. +func (phu *ProcedureHistoryUpdate) SetUpdatedBy(s string) *ProcedureHistoryUpdate { + phu.mutation.SetUpdatedBy(s) + return phu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (phu *ProcedureHistoryUpdate) SetNillableUpdatedBy(s *string) *ProcedureHistoryUpdate { + if s != nil { + phu.SetUpdatedBy(*s) + } + return phu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (phu *ProcedureHistoryUpdate) ClearUpdatedBy() *ProcedureHistoryUpdate { + phu.mutation.ClearUpdatedBy() + return phu +} + +// SetDeletedAt sets the "deleted_at" field. +func (phu *ProcedureHistoryUpdate) SetDeletedAt(t time.Time) *ProcedureHistoryUpdate { + phu.mutation.SetDeletedAt(t) + return phu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (phu *ProcedureHistoryUpdate) SetNillableDeletedAt(t *time.Time) *ProcedureHistoryUpdate { + if t != nil { + phu.SetDeletedAt(*t) + } + return phu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (phu *ProcedureHistoryUpdate) ClearDeletedAt() *ProcedureHistoryUpdate { + phu.mutation.ClearDeletedAt() + return phu +} + +// SetDeletedBy sets the "deleted_by" field. +func (phu *ProcedureHistoryUpdate) SetDeletedBy(s string) *ProcedureHistoryUpdate { + phu.mutation.SetDeletedBy(s) + return phu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (phu *ProcedureHistoryUpdate) SetNillableDeletedBy(s *string) *ProcedureHistoryUpdate { + if s != nil { + phu.SetDeletedBy(*s) + } + return phu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (phu *ProcedureHistoryUpdate) ClearDeletedBy() *ProcedureHistoryUpdate { + phu.mutation.ClearDeletedBy() + return phu +} + +// SetTags sets the "tags" field. +func (phu *ProcedureHistoryUpdate) SetTags(s []string) *ProcedureHistoryUpdate { + phu.mutation.SetTags(s) + return phu +} + +// AppendTags appends s to the "tags" field. +func (phu *ProcedureHistoryUpdate) AppendTags(s []string) *ProcedureHistoryUpdate { + phu.mutation.AppendTags(s) + return phu +} + +// ClearTags clears the value of the "tags" field. +func (phu *ProcedureHistoryUpdate) ClearTags() *ProcedureHistoryUpdate { + phu.mutation.ClearTags() + return phu +} + +// SetName sets the "name" field. +func (phu *ProcedureHistoryUpdate) SetName(s string) *ProcedureHistoryUpdate { + phu.mutation.SetName(s) + return phu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (phu *ProcedureHistoryUpdate) SetNillableName(s *string) *ProcedureHistoryUpdate { + if s != nil { + phu.SetName(*s) + } + return phu +} + +// SetDescription sets the "description" field. +func (phu *ProcedureHistoryUpdate) SetDescription(s string) *ProcedureHistoryUpdate { + phu.mutation.SetDescription(s) + return phu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (phu *ProcedureHistoryUpdate) SetNillableDescription(s *string) *ProcedureHistoryUpdate { + if s != nil { + phu.SetDescription(*s) + } + return phu +} + +// ClearDescription clears the value of the "description" field. +func (phu *ProcedureHistoryUpdate) ClearDescription() *ProcedureHistoryUpdate { + phu.mutation.ClearDescription() + return phu +} + +// SetStatus sets the "status" field. +func (phu *ProcedureHistoryUpdate) SetStatus(s string) *ProcedureHistoryUpdate { + phu.mutation.SetStatus(s) + return phu +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (phu *ProcedureHistoryUpdate) SetNillableStatus(s *string) *ProcedureHistoryUpdate { + if s != nil { + phu.SetStatus(*s) + } + return phu +} + +// ClearStatus clears the value of the "status" field. +func (phu *ProcedureHistoryUpdate) ClearStatus() *ProcedureHistoryUpdate { + phu.mutation.ClearStatus() + return phu +} + +// SetProcedureType sets the "procedure_type" field. +func (phu *ProcedureHistoryUpdate) SetProcedureType(s string) *ProcedureHistoryUpdate { + phu.mutation.SetProcedureType(s) + return phu +} + +// SetNillableProcedureType sets the "procedure_type" field if the given value is not nil. +func (phu *ProcedureHistoryUpdate) SetNillableProcedureType(s *string) *ProcedureHistoryUpdate { + if s != nil { + phu.SetProcedureType(*s) + } + return phu +} + +// ClearProcedureType clears the value of the "procedure_type" field. +func (phu *ProcedureHistoryUpdate) ClearProcedureType() *ProcedureHistoryUpdate { + phu.mutation.ClearProcedureType() + return phu +} + +// SetVersion sets the "version" field. +func (phu *ProcedureHistoryUpdate) SetVersion(s string) *ProcedureHistoryUpdate { + phu.mutation.SetVersion(s) + return phu +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (phu *ProcedureHistoryUpdate) SetNillableVersion(s *string) *ProcedureHistoryUpdate { + if s != nil { + phu.SetVersion(*s) + } + return phu +} + +// ClearVersion clears the value of the "version" field. +func (phu *ProcedureHistoryUpdate) ClearVersion() *ProcedureHistoryUpdate { + phu.mutation.ClearVersion() + return phu +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (phu *ProcedureHistoryUpdate) SetPurposeAndScope(s string) *ProcedureHistoryUpdate { + phu.mutation.SetPurposeAndScope(s) + return phu +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (phu *ProcedureHistoryUpdate) SetNillablePurposeAndScope(s *string) *ProcedureHistoryUpdate { + if s != nil { + phu.SetPurposeAndScope(*s) + } + return phu +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (phu *ProcedureHistoryUpdate) ClearPurposeAndScope() *ProcedureHistoryUpdate { + phu.mutation.ClearPurposeAndScope() + return phu +} + +// SetBackground sets the "background" field. +func (phu *ProcedureHistoryUpdate) SetBackground(s string) *ProcedureHistoryUpdate { + phu.mutation.SetBackground(s) + return phu +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (phu *ProcedureHistoryUpdate) SetNillableBackground(s *string) *ProcedureHistoryUpdate { + if s != nil { + phu.SetBackground(*s) + } + return phu +} + +// ClearBackground clears the value of the "background" field. +func (phu *ProcedureHistoryUpdate) ClearBackground() *ProcedureHistoryUpdate { + phu.mutation.ClearBackground() + return phu +} + +// SetSatisfies sets the "satisfies" field. +func (phu *ProcedureHistoryUpdate) SetSatisfies(s string) *ProcedureHistoryUpdate { + phu.mutation.SetSatisfies(s) + return phu +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (phu *ProcedureHistoryUpdate) SetNillableSatisfies(s *string) *ProcedureHistoryUpdate { + if s != nil { + phu.SetSatisfies(*s) + } + return phu +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (phu *ProcedureHistoryUpdate) ClearSatisfies() *ProcedureHistoryUpdate { + phu.mutation.ClearSatisfies() + return phu +} + +// SetDetails sets the "details" field. +func (phu *ProcedureHistoryUpdate) SetDetails(m map[string]interface{}) *ProcedureHistoryUpdate { + phu.mutation.SetDetails(m) + return phu +} + +// ClearDetails clears the value of the "details" field. +func (phu *ProcedureHistoryUpdate) ClearDetails() *ProcedureHistoryUpdate { + phu.mutation.ClearDetails() + return phu +} + +// Mutation returns the ProcedureHistoryMutation object of the builder. +func (phu *ProcedureHistoryUpdate) Mutation() *ProcedureHistoryMutation { + return phu.mutation +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (phu *ProcedureHistoryUpdate) Save(ctx context.Context) (int, error) { + phu.defaults() + return withHooks(ctx, phu.sqlSave, phu.mutation, phu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (phu *ProcedureHistoryUpdate) SaveX(ctx context.Context) int { + affected, err := phu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (phu *ProcedureHistoryUpdate) Exec(ctx context.Context) error { + _, err := phu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (phu *ProcedureHistoryUpdate) ExecX(ctx context.Context) { + if err := phu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (phu *ProcedureHistoryUpdate) defaults() { + if _, ok := phu.mutation.UpdatedAt(); !ok && !phu.mutation.UpdatedAtCleared() { + v := procedurehistory.UpdateDefaultUpdatedAt() + phu.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (phu *ProcedureHistoryUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProcedureHistoryUpdate { + phu.modifiers = append(phu.modifiers, modifiers...) + return phu +} + +func (phu *ProcedureHistoryUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(procedurehistory.Table, procedurehistory.Columns, sqlgraph.NewFieldSpec(procedurehistory.FieldID, field.TypeString)) + if ps := phu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if phu.mutation.RefCleared() { + _spec.ClearField(procedurehistory.FieldRef, field.TypeString) + } + if phu.mutation.CreatedAtCleared() { + _spec.ClearField(procedurehistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := phu.mutation.UpdatedAt(); ok { + _spec.SetField(procedurehistory.FieldUpdatedAt, field.TypeTime, value) + } + if phu.mutation.UpdatedAtCleared() { + _spec.ClearField(procedurehistory.FieldUpdatedAt, field.TypeTime) + } + if phu.mutation.CreatedByCleared() { + _spec.ClearField(procedurehistory.FieldCreatedBy, field.TypeString) + } + if value, ok := phu.mutation.UpdatedBy(); ok { + _spec.SetField(procedurehistory.FieldUpdatedBy, field.TypeString, value) + } + if phu.mutation.UpdatedByCleared() { + _spec.ClearField(procedurehistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := phu.mutation.DeletedAt(); ok { + _spec.SetField(procedurehistory.FieldDeletedAt, field.TypeTime, value) + } + if phu.mutation.DeletedAtCleared() { + _spec.ClearField(procedurehistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := phu.mutation.DeletedBy(); ok { + _spec.SetField(procedurehistory.FieldDeletedBy, field.TypeString, value) + } + if phu.mutation.DeletedByCleared() { + _spec.ClearField(procedurehistory.FieldDeletedBy, field.TypeString) + } + if value, ok := phu.mutation.Tags(); ok { + _spec.SetField(procedurehistory.FieldTags, field.TypeJSON, value) + } + if value, ok := phu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, procedurehistory.FieldTags, value) + }) + } + if phu.mutation.TagsCleared() { + _spec.ClearField(procedurehistory.FieldTags, field.TypeJSON) + } + if value, ok := phu.mutation.Name(); ok { + _spec.SetField(procedurehistory.FieldName, field.TypeString, value) + } + if value, ok := phu.mutation.Description(); ok { + _spec.SetField(procedurehistory.FieldDescription, field.TypeString, value) + } + if phu.mutation.DescriptionCleared() { + _spec.ClearField(procedurehistory.FieldDescription, field.TypeString) + } + if value, ok := phu.mutation.Status(); ok { + _spec.SetField(procedurehistory.FieldStatus, field.TypeString, value) + } + if phu.mutation.StatusCleared() { + _spec.ClearField(procedurehistory.FieldStatus, field.TypeString) + } + if value, ok := phu.mutation.ProcedureType(); ok { + _spec.SetField(procedurehistory.FieldProcedureType, field.TypeString, value) + } + if phu.mutation.ProcedureTypeCleared() { + _spec.ClearField(procedurehistory.FieldProcedureType, field.TypeString) + } + if value, ok := phu.mutation.Version(); ok { + _spec.SetField(procedurehistory.FieldVersion, field.TypeString, value) + } + if phu.mutation.VersionCleared() { + _spec.ClearField(procedurehistory.FieldVersion, field.TypeString) + } + if value, ok := phu.mutation.PurposeAndScope(); ok { + _spec.SetField(procedurehistory.FieldPurposeAndScope, field.TypeString, value) + } + if phu.mutation.PurposeAndScopeCleared() { + _spec.ClearField(procedurehistory.FieldPurposeAndScope, field.TypeString) + } + if value, ok := phu.mutation.Background(); ok { + _spec.SetField(procedurehistory.FieldBackground, field.TypeString, value) + } + if phu.mutation.BackgroundCleared() { + _spec.ClearField(procedurehistory.FieldBackground, field.TypeString) + } + if value, ok := phu.mutation.Satisfies(); ok { + _spec.SetField(procedurehistory.FieldSatisfies, field.TypeString, value) + } + if phu.mutation.SatisfiesCleared() { + _spec.ClearField(procedurehistory.FieldSatisfies, field.TypeString) + } + if value, ok := phu.mutation.Details(); ok { + _spec.SetField(procedurehistory.FieldDetails, field.TypeJSON, value) + } + if phu.mutation.DetailsCleared() { + _spec.ClearField(procedurehistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = phu.schemaConfig.ProcedureHistory + ctx = internal.NewSchemaConfigContext(ctx, phu.schemaConfig) + _spec.AddModifiers(phu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, phu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{procedurehistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + phu.mutation.done = true + return n, nil +} + +// ProcedureHistoryUpdateOne is the builder for updating a single ProcedureHistory entity. +type ProcedureHistoryUpdateOne struct { + config + fields []string + hooks []Hook + mutation *ProcedureHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (phuo *ProcedureHistoryUpdateOne) SetUpdatedAt(t time.Time) *ProcedureHistoryUpdateOne { + phuo.mutation.SetUpdatedAt(t) + return phuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (phuo *ProcedureHistoryUpdateOne) ClearUpdatedAt() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearUpdatedAt() + return phuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (phuo *ProcedureHistoryUpdateOne) SetUpdatedBy(s string) *ProcedureHistoryUpdateOne { + phuo.mutation.SetUpdatedBy(s) + return phuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (phuo *ProcedureHistoryUpdateOne) SetNillableUpdatedBy(s *string) *ProcedureHistoryUpdateOne { + if s != nil { + phuo.SetUpdatedBy(*s) + } + return phuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (phuo *ProcedureHistoryUpdateOne) ClearUpdatedBy() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearUpdatedBy() + return phuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (phuo *ProcedureHistoryUpdateOne) SetDeletedAt(t time.Time) *ProcedureHistoryUpdateOne { + phuo.mutation.SetDeletedAt(t) + return phuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (phuo *ProcedureHistoryUpdateOne) SetNillableDeletedAt(t *time.Time) *ProcedureHistoryUpdateOne { + if t != nil { + phuo.SetDeletedAt(*t) + } + return phuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (phuo *ProcedureHistoryUpdateOne) ClearDeletedAt() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearDeletedAt() + return phuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (phuo *ProcedureHistoryUpdateOne) SetDeletedBy(s string) *ProcedureHistoryUpdateOne { + phuo.mutation.SetDeletedBy(s) + return phuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (phuo *ProcedureHistoryUpdateOne) SetNillableDeletedBy(s *string) *ProcedureHistoryUpdateOne { + if s != nil { + phuo.SetDeletedBy(*s) + } + return phuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (phuo *ProcedureHistoryUpdateOne) ClearDeletedBy() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearDeletedBy() + return phuo +} + +// SetTags sets the "tags" field. +func (phuo *ProcedureHistoryUpdateOne) SetTags(s []string) *ProcedureHistoryUpdateOne { + phuo.mutation.SetTags(s) + return phuo +} + +// AppendTags appends s to the "tags" field. +func (phuo *ProcedureHistoryUpdateOne) AppendTags(s []string) *ProcedureHistoryUpdateOne { + phuo.mutation.AppendTags(s) + return phuo +} + +// ClearTags clears the value of the "tags" field. +func (phuo *ProcedureHistoryUpdateOne) ClearTags() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearTags() + return phuo +} + +// SetName sets the "name" field. +func (phuo *ProcedureHistoryUpdateOne) SetName(s string) *ProcedureHistoryUpdateOne { + phuo.mutation.SetName(s) + return phuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (phuo *ProcedureHistoryUpdateOne) SetNillableName(s *string) *ProcedureHistoryUpdateOne { + if s != nil { + phuo.SetName(*s) + } + return phuo +} + +// SetDescription sets the "description" field. +func (phuo *ProcedureHistoryUpdateOne) SetDescription(s string) *ProcedureHistoryUpdateOne { + phuo.mutation.SetDescription(s) + return phuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (phuo *ProcedureHistoryUpdateOne) SetNillableDescription(s *string) *ProcedureHistoryUpdateOne { + if s != nil { + phuo.SetDescription(*s) + } + return phuo +} + +// ClearDescription clears the value of the "description" field. +func (phuo *ProcedureHistoryUpdateOne) ClearDescription() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearDescription() + return phuo +} + +// SetStatus sets the "status" field. +func (phuo *ProcedureHistoryUpdateOne) SetStatus(s string) *ProcedureHistoryUpdateOne { + phuo.mutation.SetStatus(s) + return phuo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (phuo *ProcedureHistoryUpdateOne) SetNillableStatus(s *string) *ProcedureHistoryUpdateOne { + if s != nil { + phuo.SetStatus(*s) + } + return phuo +} + +// ClearStatus clears the value of the "status" field. +func (phuo *ProcedureHistoryUpdateOne) ClearStatus() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearStatus() + return phuo +} + +// SetProcedureType sets the "procedure_type" field. +func (phuo *ProcedureHistoryUpdateOne) SetProcedureType(s string) *ProcedureHistoryUpdateOne { + phuo.mutation.SetProcedureType(s) + return phuo +} + +// SetNillableProcedureType sets the "procedure_type" field if the given value is not nil. +func (phuo *ProcedureHistoryUpdateOne) SetNillableProcedureType(s *string) *ProcedureHistoryUpdateOne { + if s != nil { + phuo.SetProcedureType(*s) + } + return phuo +} + +// ClearProcedureType clears the value of the "procedure_type" field. +func (phuo *ProcedureHistoryUpdateOne) ClearProcedureType() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearProcedureType() + return phuo +} + +// SetVersion sets the "version" field. +func (phuo *ProcedureHistoryUpdateOne) SetVersion(s string) *ProcedureHistoryUpdateOne { + phuo.mutation.SetVersion(s) + return phuo +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (phuo *ProcedureHistoryUpdateOne) SetNillableVersion(s *string) *ProcedureHistoryUpdateOne { + if s != nil { + phuo.SetVersion(*s) + } + return phuo +} + +// ClearVersion clears the value of the "version" field. +func (phuo *ProcedureHistoryUpdateOne) ClearVersion() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearVersion() + return phuo +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (phuo *ProcedureHistoryUpdateOne) SetPurposeAndScope(s string) *ProcedureHistoryUpdateOne { + phuo.mutation.SetPurposeAndScope(s) + return phuo +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (phuo *ProcedureHistoryUpdateOne) SetNillablePurposeAndScope(s *string) *ProcedureHistoryUpdateOne { + if s != nil { + phuo.SetPurposeAndScope(*s) + } + return phuo +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (phuo *ProcedureHistoryUpdateOne) ClearPurposeAndScope() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearPurposeAndScope() + return phuo +} + +// SetBackground sets the "background" field. +func (phuo *ProcedureHistoryUpdateOne) SetBackground(s string) *ProcedureHistoryUpdateOne { + phuo.mutation.SetBackground(s) + return phuo +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (phuo *ProcedureHistoryUpdateOne) SetNillableBackground(s *string) *ProcedureHistoryUpdateOne { + if s != nil { + phuo.SetBackground(*s) + } + return phuo +} + +// ClearBackground clears the value of the "background" field. +func (phuo *ProcedureHistoryUpdateOne) ClearBackground() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearBackground() + return phuo +} + +// SetSatisfies sets the "satisfies" field. +func (phuo *ProcedureHistoryUpdateOne) SetSatisfies(s string) *ProcedureHistoryUpdateOne { + phuo.mutation.SetSatisfies(s) + return phuo +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (phuo *ProcedureHistoryUpdateOne) SetNillableSatisfies(s *string) *ProcedureHistoryUpdateOne { + if s != nil { + phuo.SetSatisfies(*s) + } + return phuo +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (phuo *ProcedureHistoryUpdateOne) ClearSatisfies() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearSatisfies() + return phuo +} + +// SetDetails sets the "details" field. +func (phuo *ProcedureHistoryUpdateOne) SetDetails(m map[string]interface{}) *ProcedureHistoryUpdateOne { + phuo.mutation.SetDetails(m) + return phuo +} + +// ClearDetails clears the value of the "details" field. +func (phuo *ProcedureHistoryUpdateOne) ClearDetails() *ProcedureHistoryUpdateOne { + phuo.mutation.ClearDetails() + return phuo +} + +// Mutation returns the ProcedureHistoryMutation object of the builder. +func (phuo *ProcedureHistoryUpdateOne) Mutation() *ProcedureHistoryMutation { + return phuo.mutation +} + +// Where appends a list predicates to the ProcedureHistoryUpdate builder. +func (phuo *ProcedureHistoryUpdateOne) Where(ps ...predicate.ProcedureHistory) *ProcedureHistoryUpdateOne { + phuo.mutation.Where(ps...) + return phuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (phuo *ProcedureHistoryUpdateOne) Select(field string, fields ...string) *ProcedureHistoryUpdateOne { + phuo.fields = append([]string{field}, fields...) + return phuo +} + +// Save executes the query and returns the updated ProcedureHistory entity. +func (phuo *ProcedureHistoryUpdateOne) Save(ctx context.Context) (*ProcedureHistory, error) { + phuo.defaults() + return withHooks(ctx, phuo.sqlSave, phuo.mutation, phuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (phuo *ProcedureHistoryUpdateOne) SaveX(ctx context.Context) *ProcedureHistory { + node, err := phuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (phuo *ProcedureHistoryUpdateOne) Exec(ctx context.Context) error { + _, err := phuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (phuo *ProcedureHistoryUpdateOne) ExecX(ctx context.Context) { + if err := phuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (phuo *ProcedureHistoryUpdateOne) defaults() { + if _, ok := phuo.mutation.UpdatedAt(); !ok && !phuo.mutation.UpdatedAtCleared() { + v := procedurehistory.UpdateDefaultUpdatedAt() + phuo.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (phuo *ProcedureHistoryUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *ProcedureHistoryUpdateOne { + phuo.modifiers = append(phuo.modifiers, modifiers...) + return phuo +} + +func (phuo *ProcedureHistoryUpdateOne) sqlSave(ctx context.Context) (_node *ProcedureHistory, err error) { + _spec := sqlgraph.NewUpdateSpec(procedurehistory.Table, procedurehistory.Columns, sqlgraph.NewFieldSpec(procedurehistory.FieldID, field.TypeString)) + id, ok := phuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "ProcedureHistory.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := phuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, procedurehistory.FieldID) + for _, f := range fields { + if !procedurehistory.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != procedurehistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := phuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if phuo.mutation.RefCleared() { + _spec.ClearField(procedurehistory.FieldRef, field.TypeString) + } + if phuo.mutation.CreatedAtCleared() { + _spec.ClearField(procedurehistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := phuo.mutation.UpdatedAt(); ok { + _spec.SetField(procedurehistory.FieldUpdatedAt, field.TypeTime, value) + } + if phuo.mutation.UpdatedAtCleared() { + _spec.ClearField(procedurehistory.FieldUpdatedAt, field.TypeTime) + } + if phuo.mutation.CreatedByCleared() { + _spec.ClearField(procedurehistory.FieldCreatedBy, field.TypeString) + } + if value, ok := phuo.mutation.UpdatedBy(); ok { + _spec.SetField(procedurehistory.FieldUpdatedBy, field.TypeString, value) + } + if phuo.mutation.UpdatedByCleared() { + _spec.ClearField(procedurehistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := phuo.mutation.DeletedAt(); ok { + _spec.SetField(procedurehistory.FieldDeletedAt, field.TypeTime, value) + } + if phuo.mutation.DeletedAtCleared() { + _spec.ClearField(procedurehistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := phuo.mutation.DeletedBy(); ok { + _spec.SetField(procedurehistory.FieldDeletedBy, field.TypeString, value) + } + if phuo.mutation.DeletedByCleared() { + _spec.ClearField(procedurehistory.FieldDeletedBy, field.TypeString) + } + if value, ok := phuo.mutation.Tags(); ok { + _spec.SetField(procedurehistory.FieldTags, field.TypeJSON, value) + } + if value, ok := phuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, procedurehistory.FieldTags, value) + }) + } + if phuo.mutation.TagsCleared() { + _spec.ClearField(procedurehistory.FieldTags, field.TypeJSON) + } + if value, ok := phuo.mutation.Name(); ok { + _spec.SetField(procedurehistory.FieldName, field.TypeString, value) + } + if value, ok := phuo.mutation.Description(); ok { + _spec.SetField(procedurehistory.FieldDescription, field.TypeString, value) + } + if phuo.mutation.DescriptionCleared() { + _spec.ClearField(procedurehistory.FieldDescription, field.TypeString) + } + if value, ok := phuo.mutation.Status(); ok { + _spec.SetField(procedurehistory.FieldStatus, field.TypeString, value) + } + if phuo.mutation.StatusCleared() { + _spec.ClearField(procedurehistory.FieldStatus, field.TypeString) + } + if value, ok := phuo.mutation.ProcedureType(); ok { + _spec.SetField(procedurehistory.FieldProcedureType, field.TypeString, value) + } + if phuo.mutation.ProcedureTypeCleared() { + _spec.ClearField(procedurehistory.FieldProcedureType, field.TypeString) + } + if value, ok := phuo.mutation.Version(); ok { + _spec.SetField(procedurehistory.FieldVersion, field.TypeString, value) + } + if phuo.mutation.VersionCleared() { + _spec.ClearField(procedurehistory.FieldVersion, field.TypeString) + } + if value, ok := phuo.mutation.PurposeAndScope(); ok { + _spec.SetField(procedurehistory.FieldPurposeAndScope, field.TypeString, value) + } + if phuo.mutation.PurposeAndScopeCleared() { + _spec.ClearField(procedurehistory.FieldPurposeAndScope, field.TypeString) + } + if value, ok := phuo.mutation.Background(); ok { + _spec.SetField(procedurehistory.FieldBackground, field.TypeString, value) + } + if phuo.mutation.BackgroundCleared() { + _spec.ClearField(procedurehistory.FieldBackground, field.TypeString) + } + if value, ok := phuo.mutation.Satisfies(); ok { + _spec.SetField(procedurehistory.FieldSatisfies, field.TypeString, value) + } + if phuo.mutation.SatisfiesCleared() { + _spec.ClearField(procedurehistory.FieldSatisfies, field.TypeString) + } + if value, ok := phuo.mutation.Details(); ok { + _spec.SetField(procedurehistory.FieldDetails, field.TypeJSON, value) + } + if phuo.mutation.DetailsCleared() { + _spec.ClearField(procedurehistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = phuo.schemaConfig.ProcedureHistory + ctx = internal.NewSchemaConfigContext(ctx, phuo.schemaConfig) + _spec.AddModifiers(phuo.modifiers...) + _node = &ProcedureHistory{config: phuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, phuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{procedurehistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + phuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/risk.go b/internal/ent/generated/risk.go new file mode 100644 index 00000000..479d8405 --- /dev/null +++ b/internal/ent/generated/risk.go @@ -0,0 +1,445 @@ +// 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/internal/ent/generated/risk" + "github.com/theopenlane/core/pkg/enums" +) + +// Risk is the model entity for the Risk schema. +type Risk 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the risk + Name string `json:"name,omitempty"` + // description of the risk + Description string `json:"description,omitempty"` + // status of the risk - mitigated or not, inflight, etc. + Status string `json:"status,omitempty"` + // type of the risk, e.g. strategic, operational, financial, external, etc. + RiskType string `json:"risk_type,omitempty"` + // business costs associated with the risk + BusinessCosts string `json:"business_costs,omitempty"` + // impact of the risk - high, medium, low + Impact enums.RiskImpact `json:"impact,omitempty"` + // likelihood of the risk occurring; unlikely, likely, highly likely + Likelihood enums.RiskLikelihood `json:"likelihood,omitempty"` + // mitigation for the risk + Mitigation string `json:"mitigation,omitempty"` + // which controls are satisfied by the risk + Satisfies string `json:"satisfies,omitempty"` + // json data for the risk document + Details map[string]interface{} `json:"details,omitempty"` + // Edges holds the relations/edges for other nodes in the graph. + // The values are being populated by the RiskQuery when eager-loading is set. + Edges RiskEdges `json:"edges"` + control_objective_risks *string + selectValues sql.SelectValues +} + +// RiskEdges holds the relations/edges for other nodes in the graph. +type RiskEdges struct { + // Control holds the value of the control edge. + Control []*Control `json:"control,omitempty"` + // Procedure holds the value of the procedure edge. + Procedure []*Procedure `json:"procedure,omitempty"` + // Actionplans holds the value of the actionplans edge. + Actionplans []*ActionPlan `json:"actionplans,omitempty"` + // loadedTypes holds the information for reporting if a + // type was loaded (or requested) in eager-loading or not. + loadedTypes [3]bool + // totalCount holds the count of the edges above. + totalCount [3]map[string]int + + namedControl map[string][]*Control + namedProcedure map[string][]*Procedure + namedActionplans map[string][]*ActionPlan +} + +// ControlOrErr returns the Control value or an error if the edge +// was not loaded in eager-loading. +func (e RiskEdges) ControlOrErr() ([]*Control, error) { + if e.loadedTypes[0] { + return e.Control, nil + } + return nil, &NotLoadedError{edge: "control"} +} + +// ProcedureOrErr returns the Procedure value or an error if the edge +// was not loaded in eager-loading. +func (e RiskEdges) ProcedureOrErr() ([]*Procedure, error) { + if e.loadedTypes[1] { + return e.Procedure, nil + } + return nil, &NotLoadedError{edge: "procedure"} +} + +// ActionplansOrErr returns the Actionplans value or an error if the edge +// was not loaded in eager-loading. +func (e RiskEdges) ActionplansOrErr() ([]*ActionPlan, error) { + if e.loadedTypes[2] { + return e.Actionplans, nil + } + return nil, &NotLoadedError{edge: "actionplans"} +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*Risk) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case risk.FieldTags, risk.FieldDetails: + values[i] = new([]byte) + case risk.FieldID, risk.FieldCreatedBy, risk.FieldUpdatedBy, risk.FieldDeletedBy, risk.FieldMappingID, risk.FieldName, risk.FieldDescription, risk.FieldStatus, risk.FieldRiskType, risk.FieldBusinessCosts, risk.FieldImpact, risk.FieldLikelihood, risk.FieldMitigation, risk.FieldSatisfies: + values[i] = new(sql.NullString) + case risk.FieldCreatedAt, risk.FieldUpdatedAt, risk.FieldDeletedAt: + values[i] = new(sql.NullTime) + case risk.ForeignKeys[0]: // control_objective_risks + values[i] = new(sql.NullString) + default: + values[i] = new(sql.UnknownType) + } + } + return values, nil +} + +// assignValues assigns the values that were returned from sql.Rows (after scanning) +// to the Risk fields. +func (r *Risk) 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 risk.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + r.ID = value.String + } + case risk.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 { + r.CreatedAt = value.Time + } + case risk.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 { + r.UpdatedAt = value.Time + } + case risk.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 { + r.CreatedBy = value.String + } + case risk.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 { + r.UpdatedBy = value.String + } + case risk.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 { + r.DeletedAt = value.Time + } + case risk.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 { + r.DeletedBy = value.String + } + case risk.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + r.MappingID = value.String + } + case risk.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, &r.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case risk.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + r.Name = value.String + } + case risk.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + r.Description = value.String + } + case risk.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + r.Status = value.String + } + case risk.FieldRiskType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field risk_type", values[i]) + } else if value.Valid { + r.RiskType = value.String + } + case risk.FieldBusinessCosts: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field business_costs", values[i]) + } else if value.Valid { + r.BusinessCosts = value.String + } + case risk.FieldImpact: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field impact", values[i]) + } else if value.Valid { + r.Impact = enums.RiskImpact(value.String) + } + case risk.FieldLikelihood: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field likelihood", values[i]) + } else if value.Valid { + r.Likelihood = enums.RiskLikelihood(value.String) + } + case risk.FieldMitigation: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mitigation", values[i]) + } else if value.Valid { + r.Mitigation = value.String + } + case risk.FieldSatisfies: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field satisfies", values[i]) + } else if value.Valid { + r.Satisfies = value.String + } + case risk.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &r.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + case risk.ForeignKeys[0]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_objective_risks", values[i]) + } else if value.Valid { + r.control_objective_risks = new(string) + *r.control_objective_risks = value.String + } + default: + r.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the Risk. +// This includes values selected through modifiers, order, etc. +func (r *Risk) Value(name string) (ent.Value, error) { + return r.selectValues.Get(name) +} + +// QueryControl queries the "control" edge of the Risk entity. +func (r *Risk) QueryControl() *ControlQuery { + return NewRiskClient(r.config).QueryControl(r) +} + +// QueryProcedure queries the "procedure" edge of the Risk entity. +func (r *Risk) QueryProcedure() *ProcedureQuery { + return NewRiskClient(r.config).QueryProcedure(r) +} + +// QueryActionplans queries the "actionplans" edge of the Risk entity. +func (r *Risk) QueryActionplans() *ActionPlanQuery { + return NewRiskClient(r.config).QueryActionplans(r) +} + +// Update returns a builder for updating this Risk. +// Note that you need to call Risk.Unwrap() before calling this method if this Risk +// was returned from a transaction, and the transaction was committed or rolled back. +func (r *Risk) Update() *RiskUpdateOne { + return NewRiskClient(r.config).UpdateOne(r) +} + +// Unwrap unwraps the Risk 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 (r *Risk) Unwrap() *Risk { + _tx, ok := r.config.driver.(*txDriver) + if !ok { + panic("generated: Risk is not a transactional entity") + } + r.config.driver = _tx.drv + return r +} + +// String implements the fmt.Stringer. +func (r *Risk) String() string { + var builder strings.Builder + builder.WriteString("Risk(") + builder.WriteString(fmt.Sprintf("id=%v, ", r.ID)) + builder.WriteString("created_at=") + builder.WriteString(r.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(r.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(r.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(r.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(r.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(r.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(r.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", r.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(r.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(r.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(r.Status) + builder.WriteString(", ") + builder.WriteString("risk_type=") + builder.WriteString(r.RiskType) + builder.WriteString(", ") + builder.WriteString("business_costs=") + builder.WriteString(r.BusinessCosts) + builder.WriteString(", ") + builder.WriteString("impact=") + builder.WriteString(fmt.Sprintf("%v", r.Impact)) + builder.WriteString(", ") + builder.WriteString("likelihood=") + builder.WriteString(fmt.Sprintf("%v", r.Likelihood)) + builder.WriteString(", ") + builder.WriteString("mitigation=") + builder.WriteString(r.Mitigation) + builder.WriteString(", ") + builder.WriteString("satisfies=") + builder.WriteString(r.Satisfies) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", r.Details)) + builder.WriteByte(')') + return builder.String() +} + +// NamedControl returns the Control named value or an error if the edge was not +// loaded in eager-loading with this name. +func (r *Risk) NamedControl(name string) ([]*Control, error) { + if r.Edges.namedControl == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := r.Edges.namedControl[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (r *Risk) appendNamedControl(name string, edges ...*Control) { + if r.Edges.namedControl == nil { + r.Edges.namedControl = make(map[string][]*Control) + } + if len(edges) == 0 { + r.Edges.namedControl[name] = []*Control{} + } else { + r.Edges.namedControl[name] = append(r.Edges.namedControl[name], edges...) + } +} + +// NamedProcedure returns the Procedure named value or an error if the edge was not +// loaded in eager-loading with this name. +func (r *Risk) NamedProcedure(name string) ([]*Procedure, error) { + if r.Edges.namedProcedure == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := r.Edges.namedProcedure[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (r *Risk) appendNamedProcedure(name string, edges ...*Procedure) { + if r.Edges.namedProcedure == nil { + r.Edges.namedProcedure = make(map[string][]*Procedure) + } + if len(edges) == 0 { + r.Edges.namedProcedure[name] = []*Procedure{} + } else { + r.Edges.namedProcedure[name] = append(r.Edges.namedProcedure[name], edges...) + } +} + +// NamedActionplans returns the Actionplans named value or an error if the edge was not +// loaded in eager-loading with this name. +func (r *Risk) NamedActionplans(name string) ([]*ActionPlan, error) { + if r.Edges.namedActionplans == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := r.Edges.namedActionplans[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (r *Risk) appendNamedActionplans(name string, edges ...*ActionPlan) { + if r.Edges.namedActionplans == nil { + r.Edges.namedActionplans = make(map[string][]*ActionPlan) + } + if len(edges) == 0 { + r.Edges.namedActionplans[name] = []*ActionPlan{} + } else { + r.Edges.namedActionplans[name] = append(r.Edges.namedActionplans[name], edges...) + } +} + +// Risks is a parsable slice of Risk. +type Risks []*Risk diff --git a/internal/ent/generated/risk/risk.go b/internal/ent/generated/risk/risk.go new file mode 100644 index 00000000..1ac663e2 --- /dev/null +++ b/internal/ent/generated/risk/risk.go @@ -0,0 +1,343 @@ +// Code generated by ent, DO NOT EDIT. + +package risk + +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/pkg/enums" +) + +const ( + // Label holds the string label denoting the risk type in the database. + Label = "risk" + // 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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldRiskType holds the string denoting the risk_type field in the database. + FieldRiskType = "risk_type" + // FieldBusinessCosts holds the string denoting the business_costs field in the database. + FieldBusinessCosts = "business_costs" + // FieldImpact holds the string denoting the impact field in the database. + FieldImpact = "impact" + // FieldLikelihood holds the string denoting the likelihood field in the database. + FieldLikelihood = "likelihood" + // FieldMitigation holds the string denoting the mitigation field in the database. + FieldMitigation = "mitigation" + // FieldSatisfies holds the string denoting the satisfies field in the database. + FieldSatisfies = "satisfies" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // EdgeControl holds the string denoting the control edge name in mutations. + EdgeControl = "control" + // EdgeProcedure holds the string denoting the procedure edge name in mutations. + EdgeProcedure = "procedure" + // EdgeActionplans holds the string denoting the actionplans edge name in mutations. + EdgeActionplans = "actionplans" + // Table holds the table name of the risk in the database. + Table = "risks" + // ControlTable is the table that holds the control relation/edge. The primary key declared below. + ControlTable = "control_risks" + // ControlInverseTable is the table name for the Control entity. + // It exists in this package in order to avoid circular dependency with the "control" package. + ControlInverseTable = "controls" + // ProcedureTable is the table that holds the procedure relation/edge. The primary key declared below. + ProcedureTable = "procedure_risks" + // ProcedureInverseTable is the table name for the Procedure entity. + // It exists in this package in order to avoid circular dependency with the "procedure" package. + ProcedureInverseTable = "procedures" + // ActionplansTable is the table that holds the actionplans relation/edge. The primary key declared below. + ActionplansTable = "risk_actionplans" + // ActionplansInverseTable is the table name for the ActionPlan entity. + // It exists in this package in order to avoid circular dependency with the "actionplan" package. + ActionplansInverseTable = "action_plans" +) + +// Columns holds all SQL columns for risk fields. +var Columns = []string{ + FieldID, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldRiskType, + FieldBusinessCosts, + FieldImpact, + FieldLikelihood, + FieldMitigation, + FieldSatisfies, + FieldDetails, +} + +// ForeignKeys holds the SQL foreign-keys that are owned by the "risks" +// table and are not defined as standalone fields in the schema. +var ForeignKeys = []string{ + "control_objective_risks", +} + +var ( + // ControlPrimaryKey and ControlColumn2 are the table columns denoting the + // primary key for the control relation (M2M). + ControlPrimaryKey = []string{"control_id", "risk_id"} + // ProcedurePrimaryKey and ProcedureColumn2 are the table columns denoting the + // primary key for the procedure relation (M2M). + ProcedurePrimaryKey = []string{"procedure_id", "risk_id"} + // ActionplansPrimaryKey and ActionplansColumn2 are the table columns denoting the + // primary key for the actionplans relation (M2M). + ActionplansPrimaryKey = []string{"risk_id", "action_plan_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 + } + } + for i := range ForeignKeys { + if column == ForeignKeys[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/internal/ent/generated/runtime" +var ( + Hooks [2]ent.Hook + Interceptors [1]ent.Interceptor + // 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 + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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 +) + +// ImpactValidator is a validator for the "impact" field enum values. It is called by the builders before save. +func ImpactValidator(i enums.RiskImpact) error { + switch i.String() { + case "LOW", "MODERATE", "HIGH": + return nil + default: + return fmt.Errorf("risk: invalid enum value for impact field: %q", i) + } +} + +// LikelihoodValidator is a validator for the "likelihood" field enum values. It is called by the builders before save. +func LikelihoodValidator(l enums.RiskLikelihood) error { + switch l.String() { + case "UNLIKELY", "LIKELY", "HIGHLY_LIKELY": + return nil + default: + return fmt.Errorf("risk: invalid enum value for likelihood field: %q", l) + } +} + +// OrderOption defines the ordering options for the Risk 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByRiskType orders the results by the risk_type field. +func ByRiskType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldRiskType, opts...).ToFunc() +} + +// ByBusinessCosts orders the results by the business_costs field. +func ByBusinessCosts(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldBusinessCosts, opts...).ToFunc() +} + +// ByImpact orders the results by the impact field. +func ByImpact(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldImpact, opts...).ToFunc() +} + +// ByLikelihood orders the results by the likelihood field. +func ByLikelihood(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldLikelihood, opts...).ToFunc() +} + +// ByMitigation orders the results by the mitigation field. +func ByMitigation(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMitigation, opts...).ToFunc() +} + +// BySatisfies orders the results by the satisfies field. +func BySatisfies(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSatisfies, opts...).ToFunc() +} + +// ByControlCount orders the results by control count. +func ByControlCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlStep(), opts...) + } +} + +// ByControl orders the results by control terms. +func ByControl(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByProcedureCount orders the results by procedure count. +func ByProcedureCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newProcedureStep(), opts...) + } +} + +// ByProcedure orders the results by procedure terms. +func ByProcedure(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newProcedureStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByActionplansCount orders the results by actionplans count. +func ByActionplansCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newActionplansStep(), opts...) + } +} + +// ByActionplans orders the results by actionplans terms. +func ByActionplans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newActionplansStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} +func newControlStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ControlInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ControlTable, ControlPrimaryKey...), + ) +} +func newProcedureStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ProcedureInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ProcedureTable, ProcedurePrimaryKey...), + ) +} +func newActionplansStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ActionplansInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ActionplansTable, ActionplansPrimaryKey...), + ) +} + +var ( + // enums.RiskImpact must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.RiskImpact)(nil) + // enums.RiskImpact must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.RiskImpact)(nil) +) + +var ( + // enums.RiskLikelihood must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.RiskLikelihood)(nil) + // enums.RiskLikelihood must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.RiskLikelihood)(nil) +) diff --git a/internal/ent/generated/risk/where.go b/internal/ent/generated/risk/where.go new file mode 100644 index 00000000..9a850fa7 --- /dev/null +++ b/internal/ent/generated/risk/where.go @@ -0,0 +1,1296 @@ +// Code generated by ent, DO NOT EDIT. + +package risk + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/pkg/enums" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.Risk { + return predicate.Risk(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.Risk { + return predicate.Risk(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.Risk { + return predicate.Risk(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.Risk { + return predicate.Risk(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldStatus, v)) +} + +// RiskType applies equality check predicate on the "risk_type" field. It's identical to RiskTypeEQ. +func RiskType(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldRiskType, v)) +} + +// BusinessCosts applies equality check predicate on the "business_costs" field. It's identical to BusinessCostsEQ. +func BusinessCosts(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldBusinessCosts, v)) +} + +// Mitigation applies equality check predicate on the "mitigation" field. It's identical to MitigationEQ. +func Mitigation(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldMitigation, v)) +} + +// Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ. +func Satisfies(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldSatisfies, v)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.Risk { + return predicate.Risk(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.Risk { + return predicate.Risk(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.Risk { + return predicate.Risk(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.Risk { + return predicate.Risk(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.Risk { + return predicate.Risk(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.Risk { + return predicate.Risk(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.Risk { + return predicate.Risk(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldContainsFold(FieldStatus, v)) +} + +// RiskTypeEQ applies the EQ predicate on the "risk_type" field. +func RiskTypeEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldRiskType, v)) +} + +// RiskTypeNEQ applies the NEQ predicate on the "risk_type" field. +func RiskTypeNEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldRiskType, v)) +} + +// RiskTypeIn applies the In predicate on the "risk_type" field. +func RiskTypeIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldRiskType, vs...)) +} + +// RiskTypeNotIn applies the NotIn predicate on the "risk_type" field. +func RiskTypeNotIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldRiskType, vs...)) +} + +// RiskTypeGT applies the GT predicate on the "risk_type" field. +func RiskTypeGT(v string) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldRiskType, v)) +} + +// RiskTypeGTE applies the GTE predicate on the "risk_type" field. +func RiskTypeGTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldRiskType, v)) +} + +// RiskTypeLT applies the LT predicate on the "risk_type" field. +func RiskTypeLT(v string) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldRiskType, v)) +} + +// RiskTypeLTE applies the LTE predicate on the "risk_type" field. +func RiskTypeLTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldRiskType, v)) +} + +// RiskTypeContains applies the Contains predicate on the "risk_type" field. +func RiskTypeContains(v string) predicate.Risk { + return predicate.Risk(sql.FieldContains(FieldRiskType, v)) +} + +// RiskTypeHasPrefix applies the HasPrefix predicate on the "risk_type" field. +func RiskTypeHasPrefix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasPrefix(FieldRiskType, v)) +} + +// RiskTypeHasSuffix applies the HasSuffix predicate on the "risk_type" field. +func RiskTypeHasSuffix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasSuffix(FieldRiskType, v)) +} + +// RiskTypeIsNil applies the IsNil predicate on the "risk_type" field. +func RiskTypeIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldRiskType)) +} + +// RiskTypeNotNil applies the NotNil predicate on the "risk_type" field. +func RiskTypeNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldRiskType)) +} + +// RiskTypeEqualFold applies the EqualFold predicate on the "risk_type" field. +func RiskTypeEqualFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldEqualFold(FieldRiskType, v)) +} + +// RiskTypeContainsFold applies the ContainsFold predicate on the "risk_type" field. +func RiskTypeContainsFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldContainsFold(FieldRiskType, v)) +} + +// BusinessCostsEQ applies the EQ predicate on the "business_costs" field. +func BusinessCostsEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldBusinessCosts, v)) +} + +// BusinessCostsNEQ applies the NEQ predicate on the "business_costs" field. +func BusinessCostsNEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldBusinessCosts, v)) +} + +// BusinessCostsIn applies the In predicate on the "business_costs" field. +func BusinessCostsIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldBusinessCosts, vs...)) +} + +// BusinessCostsNotIn applies the NotIn predicate on the "business_costs" field. +func BusinessCostsNotIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldBusinessCosts, vs...)) +} + +// BusinessCostsGT applies the GT predicate on the "business_costs" field. +func BusinessCostsGT(v string) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldBusinessCosts, v)) +} + +// BusinessCostsGTE applies the GTE predicate on the "business_costs" field. +func BusinessCostsGTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldBusinessCosts, v)) +} + +// BusinessCostsLT applies the LT predicate on the "business_costs" field. +func BusinessCostsLT(v string) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldBusinessCosts, v)) +} + +// BusinessCostsLTE applies the LTE predicate on the "business_costs" field. +func BusinessCostsLTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldBusinessCosts, v)) +} + +// BusinessCostsContains applies the Contains predicate on the "business_costs" field. +func BusinessCostsContains(v string) predicate.Risk { + return predicate.Risk(sql.FieldContains(FieldBusinessCosts, v)) +} + +// BusinessCostsHasPrefix applies the HasPrefix predicate on the "business_costs" field. +func BusinessCostsHasPrefix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasPrefix(FieldBusinessCosts, v)) +} + +// BusinessCostsHasSuffix applies the HasSuffix predicate on the "business_costs" field. +func BusinessCostsHasSuffix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasSuffix(FieldBusinessCosts, v)) +} + +// BusinessCostsIsNil applies the IsNil predicate on the "business_costs" field. +func BusinessCostsIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldBusinessCosts)) +} + +// BusinessCostsNotNil applies the NotNil predicate on the "business_costs" field. +func BusinessCostsNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldBusinessCosts)) +} + +// BusinessCostsEqualFold applies the EqualFold predicate on the "business_costs" field. +func BusinessCostsEqualFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldEqualFold(FieldBusinessCosts, v)) +} + +// BusinessCostsContainsFold applies the ContainsFold predicate on the "business_costs" field. +func BusinessCostsContainsFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldContainsFold(FieldBusinessCosts, v)) +} + +// ImpactEQ applies the EQ predicate on the "impact" field. +func ImpactEQ(v enums.RiskImpact) predicate.Risk { + vc := v + return predicate.Risk(sql.FieldEQ(FieldImpact, vc)) +} + +// ImpactNEQ applies the NEQ predicate on the "impact" field. +func ImpactNEQ(v enums.RiskImpact) predicate.Risk { + vc := v + return predicate.Risk(sql.FieldNEQ(FieldImpact, vc)) +} + +// ImpactIn applies the In predicate on the "impact" field. +func ImpactIn(vs ...enums.RiskImpact) predicate.Risk { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.Risk(sql.FieldIn(FieldImpact, v...)) +} + +// ImpactNotIn applies the NotIn predicate on the "impact" field. +func ImpactNotIn(vs ...enums.RiskImpact) predicate.Risk { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.Risk(sql.FieldNotIn(FieldImpact, v...)) +} + +// ImpactIsNil applies the IsNil predicate on the "impact" field. +func ImpactIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldImpact)) +} + +// ImpactNotNil applies the NotNil predicate on the "impact" field. +func ImpactNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldImpact)) +} + +// LikelihoodEQ applies the EQ predicate on the "likelihood" field. +func LikelihoodEQ(v enums.RiskLikelihood) predicate.Risk { + vc := v + return predicate.Risk(sql.FieldEQ(FieldLikelihood, vc)) +} + +// LikelihoodNEQ applies the NEQ predicate on the "likelihood" field. +func LikelihoodNEQ(v enums.RiskLikelihood) predicate.Risk { + vc := v + return predicate.Risk(sql.FieldNEQ(FieldLikelihood, vc)) +} + +// LikelihoodIn applies the In predicate on the "likelihood" field. +func LikelihoodIn(vs ...enums.RiskLikelihood) predicate.Risk { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.Risk(sql.FieldIn(FieldLikelihood, v...)) +} + +// LikelihoodNotIn applies the NotIn predicate on the "likelihood" field. +func LikelihoodNotIn(vs ...enums.RiskLikelihood) predicate.Risk { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.Risk(sql.FieldNotIn(FieldLikelihood, v...)) +} + +// LikelihoodIsNil applies the IsNil predicate on the "likelihood" field. +func LikelihoodIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldLikelihood)) +} + +// LikelihoodNotNil applies the NotNil predicate on the "likelihood" field. +func LikelihoodNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldLikelihood)) +} + +// MitigationEQ applies the EQ predicate on the "mitigation" field. +func MitigationEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldMitigation, v)) +} + +// MitigationNEQ applies the NEQ predicate on the "mitigation" field. +func MitigationNEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldMitigation, v)) +} + +// MitigationIn applies the In predicate on the "mitigation" field. +func MitigationIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldMitigation, vs...)) +} + +// MitigationNotIn applies the NotIn predicate on the "mitigation" field. +func MitigationNotIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldMitigation, vs...)) +} + +// MitigationGT applies the GT predicate on the "mitigation" field. +func MitigationGT(v string) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldMitigation, v)) +} + +// MitigationGTE applies the GTE predicate on the "mitigation" field. +func MitigationGTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldMitigation, v)) +} + +// MitigationLT applies the LT predicate on the "mitigation" field. +func MitigationLT(v string) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldMitigation, v)) +} + +// MitigationLTE applies the LTE predicate on the "mitigation" field. +func MitigationLTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldMitigation, v)) +} + +// MitigationContains applies the Contains predicate on the "mitigation" field. +func MitigationContains(v string) predicate.Risk { + return predicate.Risk(sql.FieldContains(FieldMitigation, v)) +} + +// MitigationHasPrefix applies the HasPrefix predicate on the "mitigation" field. +func MitigationHasPrefix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasPrefix(FieldMitigation, v)) +} + +// MitigationHasSuffix applies the HasSuffix predicate on the "mitigation" field. +func MitigationHasSuffix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasSuffix(FieldMitigation, v)) +} + +// MitigationIsNil applies the IsNil predicate on the "mitigation" field. +func MitigationIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldMitigation)) +} + +// MitigationNotNil applies the NotNil predicate on the "mitigation" field. +func MitigationNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldMitigation)) +} + +// MitigationEqualFold applies the EqualFold predicate on the "mitigation" field. +func MitigationEqualFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldEqualFold(FieldMitigation, v)) +} + +// MitigationContainsFold applies the ContainsFold predicate on the "mitigation" field. +func MitigationContainsFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldContainsFold(FieldMitigation, v)) +} + +// SatisfiesEQ applies the EQ predicate on the "satisfies" field. +func SatisfiesEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldEQ(FieldSatisfies, v)) +} + +// SatisfiesNEQ applies the NEQ predicate on the "satisfies" field. +func SatisfiesNEQ(v string) predicate.Risk { + return predicate.Risk(sql.FieldNEQ(FieldSatisfies, v)) +} + +// SatisfiesIn applies the In predicate on the "satisfies" field. +func SatisfiesIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldIn(FieldSatisfies, vs...)) +} + +// SatisfiesNotIn applies the NotIn predicate on the "satisfies" field. +func SatisfiesNotIn(vs ...string) predicate.Risk { + return predicate.Risk(sql.FieldNotIn(FieldSatisfies, vs...)) +} + +// SatisfiesGT applies the GT predicate on the "satisfies" field. +func SatisfiesGT(v string) predicate.Risk { + return predicate.Risk(sql.FieldGT(FieldSatisfies, v)) +} + +// SatisfiesGTE applies the GTE predicate on the "satisfies" field. +func SatisfiesGTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldGTE(FieldSatisfies, v)) +} + +// SatisfiesLT applies the LT predicate on the "satisfies" field. +func SatisfiesLT(v string) predicate.Risk { + return predicate.Risk(sql.FieldLT(FieldSatisfies, v)) +} + +// SatisfiesLTE applies the LTE predicate on the "satisfies" field. +func SatisfiesLTE(v string) predicate.Risk { + return predicate.Risk(sql.FieldLTE(FieldSatisfies, v)) +} + +// SatisfiesContains applies the Contains predicate on the "satisfies" field. +func SatisfiesContains(v string) predicate.Risk { + return predicate.Risk(sql.FieldContains(FieldSatisfies, v)) +} + +// SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field. +func SatisfiesHasPrefix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasPrefix(FieldSatisfies, v)) +} + +// SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field. +func SatisfiesHasSuffix(v string) predicate.Risk { + return predicate.Risk(sql.FieldHasSuffix(FieldSatisfies, v)) +} + +// SatisfiesIsNil applies the IsNil predicate on the "satisfies" field. +func SatisfiesIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldSatisfies)) +} + +// SatisfiesNotNil applies the NotNil predicate on the "satisfies" field. +func SatisfiesNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldSatisfies)) +} + +// SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field. +func SatisfiesEqualFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldEqualFold(FieldSatisfies, v)) +} + +// SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field. +func SatisfiesContainsFold(v string) predicate.Risk { + return predicate.Risk(sql.FieldContainsFold(FieldSatisfies, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.Risk { + return predicate.Risk(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.Risk { + return predicate.Risk(sql.FieldNotNull(FieldDetails)) +} + +// HasControl applies the HasEdge predicate on the "control" edge. +func HasControl() predicate.Risk { + return predicate.Risk(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ControlTable, ControlPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlRisks + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlWith applies the HasEdge predicate on the "control" edge with a given conditions (other predicates). +func HasControlWith(preds ...predicate.Control) predicate.Risk { + return predicate.Risk(func(s *sql.Selector) { + step := newControlStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlRisks + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasProcedure applies the HasEdge predicate on the "procedure" edge. +func HasProcedure() predicate.Risk { + return predicate.Risk(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ProcedureTable, ProcedurePrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.ProcedureRisks + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasProcedureWith applies the HasEdge predicate on the "procedure" edge with a given conditions (other predicates). +func HasProcedureWith(preds ...predicate.Procedure) predicate.Risk { + return predicate.Risk(func(s *sql.Selector) { + step := newProcedureStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.ProcedureRisks + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasActionplans applies the HasEdge predicate on the "actionplans" edge. +func HasActionplans() predicate.Risk { + return predicate.Risk(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ActionplansTable, ActionplansPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.RiskActionplans + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasActionplansWith applies the HasEdge predicate on the "actionplans" edge with a given conditions (other predicates). +func HasActionplansWith(preds ...predicate.ActionPlan) predicate.Risk { + return predicate.Risk(func(s *sql.Selector) { + step := newActionplansStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.RiskActionplans + 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.Risk) predicate.Risk { + return predicate.Risk(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.Risk) predicate.Risk { + return predicate.Risk(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.Risk) predicate.Risk { + return predicate.Risk(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/risk_create.go b/internal/ent/generated/risk_create.go new file mode 100644 index 00000000..8f905323 --- /dev/null +++ b/internal/ent/generated/risk_create.go @@ -0,0 +1,648 @@ +// 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/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/pkg/enums" +) + +// RiskCreate is the builder for creating a Risk entity. +type RiskCreate struct { + config + mutation *RiskMutation + hooks []Hook +} + +// SetCreatedAt sets the "created_at" field. +func (rc *RiskCreate) SetCreatedAt(t time.Time) *RiskCreate { + rc.mutation.SetCreatedAt(t) + return rc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (rc *RiskCreate) SetNillableCreatedAt(t *time.Time) *RiskCreate { + if t != nil { + rc.SetCreatedAt(*t) + } + return rc +} + +// SetUpdatedAt sets the "updated_at" field. +func (rc *RiskCreate) SetUpdatedAt(t time.Time) *RiskCreate { + rc.mutation.SetUpdatedAt(t) + return rc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (rc *RiskCreate) SetNillableUpdatedAt(t *time.Time) *RiskCreate { + if t != nil { + rc.SetUpdatedAt(*t) + } + return rc +} + +// SetCreatedBy sets the "created_by" field. +func (rc *RiskCreate) SetCreatedBy(s string) *RiskCreate { + rc.mutation.SetCreatedBy(s) + return rc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (rc *RiskCreate) SetNillableCreatedBy(s *string) *RiskCreate { + if s != nil { + rc.SetCreatedBy(*s) + } + return rc +} + +// SetUpdatedBy sets the "updated_by" field. +func (rc *RiskCreate) SetUpdatedBy(s string) *RiskCreate { + rc.mutation.SetUpdatedBy(s) + return rc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (rc *RiskCreate) SetNillableUpdatedBy(s *string) *RiskCreate { + if s != nil { + rc.SetUpdatedBy(*s) + } + return rc +} + +// SetDeletedAt sets the "deleted_at" field. +func (rc *RiskCreate) SetDeletedAt(t time.Time) *RiskCreate { + rc.mutation.SetDeletedAt(t) + return rc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (rc *RiskCreate) SetNillableDeletedAt(t *time.Time) *RiskCreate { + if t != nil { + rc.SetDeletedAt(*t) + } + return rc +} + +// SetDeletedBy sets the "deleted_by" field. +func (rc *RiskCreate) SetDeletedBy(s string) *RiskCreate { + rc.mutation.SetDeletedBy(s) + return rc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (rc *RiskCreate) SetNillableDeletedBy(s *string) *RiskCreate { + if s != nil { + rc.SetDeletedBy(*s) + } + return rc +} + +// SetMappingID sets the "mapping_id" field. +func (rc *RiskCreate) SetMappingID(s string) *RiskCreate { + rc.mutation.SetMappingID(s) + return rc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (rc *RiskCreate) SetNillableMappingID(s *string) *RiskCreate { + if s != nil { + rc.SetMappingID(*s) + } + return rc +} + +// SetTags sets the "tags" field. +func (rc *RiskCreate) SetTags(s []string) *RiskCreate { + rc.mutation.SetTags(s) + return rc +} + +// SetName sets the "name" field. +func (rc *RiskCreate) SetName(s string) *RiskCreate { + rc.mutation.SetName(s) + return rc +} + +// SetDescription sets the "description" field. +func (rc *RiskCreate) SetDescription(s string) *RiskCreate { + rc.mutation.SetDescription(s) + return rc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (rc *RiskCreate) SetNillableDescription(s *string) *RiskCreate { + if s != nil { + rc.SetDescription(*s) + } + return rc +} + +// SetStatus sets the "status" field. +func (rc *RiskCreate) SetStatus(s string) *RiskCreate { + rc.mutation.SetStatus(s) + return rc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (rc *RiskCreate) SetNillableStatus(s *string) *RiskCreate { + if s != nil { + rc.SetStatus(*s) + } + return rc +} + +// SetRiskType sets the "risk_type" field. +func (rc *RiskCreate) SetRiskType(s string) *RiskCreate { + rc.mutation.SetRiskType(s) + return rc +} + +// SetNillableRiskType sets the "risk_type" field if the given value is not nil. +func (rc *RiskCreate) SetNillableRiskType(s *string) *RiskCreate { + if s != nil { + rc.SetRiskType(*s) + } + return rc +} + +// SetBusinessCosts sets the "business_costs" field. +func (rc *RiskCreate) SetBusinessCosts(s string) *RiskCreate { + rc.mutation.SetBusinessCosts(s) + return rc +} + +// SetNillableBusinessCosts sets the "business_costs" field if the given value is not nil. +func (rc *RiskCreate) SetNillableBusinessCosts(s *string) *RiskCreate { + if s != nil { + rc.SetBusinessCosts(*s) + } + return rc +} + +// SetImpact sets the "impact" field. +func (rc *RiskCreate) SetImpact(ei enums.RiskImpact) *RiskCreate { + rc.mutation.SetImpact(ei) + return rc +} + +// SetNillableImpact sets the "impact" field if the given value is not nil. +func (rc *RiskCreate) SetNillableImpact(ei *enums.RiskImpact) *RiskCreate { + if ei != nil { + rc.SetImpact(*ei) + } + return rc +} + +// SetLikelihood sets the "likelihood" field. +func (rc *RiskCreate) SetLikelihood(el enums.RiskLikelihood) *RiskCreate { + rc.mutation.SetLikelihood(el) + return rc +} + +// SetNillableLikelihood sets the "likelihood" field if the given value is not nil. +func (rc *RiskCreate) SetNillableLikelihood(el *enums.RiskLikelihood) *RiskCreate { + if el != nil { + rc.SetLikelihood(*el) + } + return rc +} + +// SetMitigation sets the "mitigation" field. +func (rc *RiskCreate) SetMitigation(s string) *RiskCreate { + rc.mutation.SetMitigation(s) + return rc +} + +// SetNillableMitigation sets the "mitigation" field if the given value is not nil. +func (rc *RiskCreate) SetNillableMitigation(s *string) *RiskCreate { + if s != nil { + rc.SetMitigation(*s) + } + return rc +} + +// SetSatisfies sets the "satisfies" field. +func (rc *RiskCreate) SetSatisfies(s string) *RiskCreate { + rc.mutation.SetSatisfies(s) + return rc +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (rc *RiskCreate) SetNillableSatisfies(s *string) *RiskCreate { + if s != nil { + rc.SetSatisfies(*s) + } + return rc +} + +// SetDetails sets the "details" field. +func (rc *RiskCreate) SetDetails(m map[string]interface{}) *RiskCreate { + rc.mutation.SetDetails(m) + return rc +} + +// SetID sets the "id" field. +func (rc *RiskCreate) SetID(s string) *RiskCreate { + rc.mutation.SetID(s) + return rc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (rc *RiskCreate) SetNillableID(s *string) *RiskCreate { + if s != nil { + rc.SetID(*s) + } + return rc +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (rc *RiskCreate) AddControlIDs(ids ...string) *RiskCreate { + rc.mutation.AddControlIDs(ids...) + return rc +} + +// AddControl adds the "control" edges to the Control entity. +func (rc *RiskCreate) AddControl(c ...*Control) *RiskCreate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return rc.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedure" edge to the Procedure entity by IDs. +func (rc *RiskCreate) AddProcedureIDs(ids ...string) *RiskCreate { + rc.mutation.AddProcedureIDs(ids...) + return rc +} + +// AddProcedure adds the "procedure" edges to the Procedure entity. +func (rc *RiskCreate) AddProcedure(p ...*Procedure) *RiskCreate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return rc.AddProcedureIDs(ids...) +} + +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by IDs. +func (rc *RiskCreate) AddActionplanIDs(ids ...string) *RiskCreate { + rc.mutation.AddActionplanIDs(ids...) + return rc +} + +// AddActionplans adds the "actionplans" edges to the ActionPlan entity. +func (rc *RiskCreate) AddActionplans(a ...*ActionPlan) *RiskCreate { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return rc.AddActionplanIDs(ids...) +} + +// Mutation returns the RiskMutation object of the builder. +func (rc *RiskCreate) Mutation() *RiskMutation { + return rc.mutation +} + +// Save creates the Risk in the database. +func (rc *RiskCreate) Save(ctx context.Context) (*Risk, error) { + if err := rc.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, rc.sqlSave, rc.mutation, rc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (rc *RiskCreate) SaveX(ctx context.Context) *Risk { + v, err := rc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (rc *RiskCreate) Exec(ctx context.Context) error { + _, err := rc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (rc *RiskCreate) ExecX(ctx context.Context) { + if err := rc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (rc *RiskCreate) defaults() error { + if _, ok := rc.mutation.CreatedAt(); !ok { + if risk.DefaultCreatedAt == nil { + return fmt.Errorf("generated: uninitialized risk.DefaultCreatedAt (forgotten import generated/runtime?)") + } + v := risk.DefaultCreatedAt() + rc.mutation.SetCreatedAt(v) + } + if _, ok := rc.mutation.UpdatedAt(); !ok { + if risk.DefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized risk.DefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := risk.DefaultUpdatedAt() + rc.mutation.SetUpdatedAt(v) + } + if _, ok := rc.mutation.MappingID(); !ok { + if risk.DefaultMappingID == nil { + return fmt.Errorf("generated: uninitialized risk.DefaultMappingID (forgotten import generated/runtime?)") + } + v := risk.DefaultMappingID() + rc.mutation.SetMappingID(v) + } + if _, ok := rc.mutation.Tags(); !ok { + v := risk.DefaultTags + rc.mutation.SetTags(v) + } + if _, ok := rc.mutation.ID(); !ok { + if risk.DefaultID == nil { + return fmt.Errorf("generated: uninitialized risk.DefaultID (forgotten import generated/runtime?)") + } + v := risk.DefaultID() + rc.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (rc *RiskCreate) check() error { + if _, ok := rc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "Risk.mapping_id"`)} + } + if _, ok := rc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "Risk.name"`)} + } + if v, ok := rc.mutation.Impact(); ok { + if err := risk.ImpactValidator(v); err != nil { + return &ValidationError{Name: "impact", err: fmt.Errorf(`generated: validator failed for field "Risk.impact": %w`, err)} + } + } + if v, ok := rc.mutation.Likelihood(); ok { + if err := risk.LikelihoodValidator(v); err != nil { + return &ValidationError{Name: "likelihood", err: fmt.Errorf(`generated: validator failed for field "Risk.likelihood": %w`, err)} + } + } + return nil +} + +func (rc *RiskCreate) sqlSave(ctx context.Context) (*Risk, error) { + if err := rc.check(); err != nil { + return nil, err + } + _node, _spec := rc.createSpec() + if err := sqlgraph.CreateNode(ctx, rc.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 Risk.ID type: %T", _spec.ID.Value) + } + } + rc.mutation.id = &_node.ID + rc.mutation.done = true + return _node, nil +} + +func (rc *RiskCreate) createSpec() (*Risk, *sqlgraph.CreateSpec) { + var ( + _node = &Risk{config: rc.config} + _spec = sqlgraph.NewCreateSpec(risk.Table, sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString)) + ) + _spec.Schema = rc.schemaConfig.Risk + if id, ok := rc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := rc.mutation.CreatedAt(); ok { + _spec.SetField(risk.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := rc.mutation.UpdatedAt(); ok { + _spec.SetField(risk.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := rc.mutation.CreatedBy(); ok { + _spec.SetField(risk.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := rc.mutation.UpdatedBy(); ok { + _spec.SetField(risk.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := rc.mutation.DeletedAt(); ok { + _spec.SetField(risk.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := rc.mutation.DeletedBy(); ok { + _spec.SetField(risk.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := rc.mutation.MappingID(); ok { + _spec.SetField(risk.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := rc.mutation.Tags(); ok { + _spec.SetField(risk.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := rc.mutation.Name(); ok { + _spec.SetField(risk.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := rc.mutation.Description(); ok { + _spec.SetField(risk.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := rc.mutation.Status(); ok { + _spec.SetField(risk.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := rc.mutation.RiskType(); ok { + _spec.SetField(risk.FieldRiskType, field.TypeString, value) + _node.RiskType = value + } + if value, ok := rc.mutation.BusinessCosts(); ok { + _spec.SetField(risk.FieldBusinessCosts, field.TypeString, value) + _node.BusinessCosts = value + } + if value, ok := rc.mutation.Impact(); ok { + _spec.SetField(risk.FieldImpact, field.TypeEnum, value) + _node.Impact = value + } + if value, ok := rc.mutation.Likelihood(); ok { + _spec.SetField(risk.FieldLikelihood, field.TypeEnum, value) + _node.Likelihood = value + } + if value, ok := rc.mutation.Mitigation(); ok { + _spec.SetField(risk.FieldMitigation, field.TypeString, value) + _node.Mitigation = value + } + if value, ok := rc.mutation.Satisfies(); ok { + _spec.SetField(risk.FieldSatisfies, field.TypeString, value) + _node.Satisfies = value + } + if value, ok := rc.mutation.Details(); ok { + _spec.SetField(risk.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + if nodes := rc.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ControlTable, + Columns: risk.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = rc.schemaConfig.ControlRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := rc.mutation.ProcedureIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ProcedureTable, + Columns: risk.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = rc.schemaConfig.ProcedureRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := rc.mutation.ActionplansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: risk.ActionplansTable, + Columns: risk.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = rc.schemaConfig.RiskActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + return _node, _spec +} + +// RiskCreateBulk is the builder for creating many Risk entities in bulk. +type RiskCreateBulk struct { + config + err error + builders []*RiskCreate +} + +// Save creates the Risk entities in the database. +func (rcb *RiskCreateBulk) Save(ctx context.Context) ([]*Risk, error) { + if rcb.err != nil { + return nil, rcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(rcb.builders)) + nodes := make([]*Risk, len(rcb.builders)) + mutators := make([]Mutator, len(rcb.builders)) + for i := range rcb.builders { + func(i int, root context.Context) { + builder := rcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*RiskMutation) + 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, rcb.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, rcb.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, rcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (rcb *RiskCreateBulk) SaveX(ctx context.Context) []*Risk { + v, err := rcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (rcb *RiskCreateBulk) Exec(ctx context.Context) error { + _, err := rcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (rcb *RiskCreateBulk) ExecX(ctx context.Context) { + if err := rcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/risk_delete.go b/internal/ent/generated/risk_delete.go new file mode 100644 index 00000000..ef0b81b7 --- /dev/null +++ b/internal/ent/generated/risk_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" + "github.com/theopenlane/core/internal/ent/generated/risk" +) + +// RiskDelete is the builder for deleting a Risk entity. +type RiskDelete struct { + config + hooks []Hook + mutation *RiskMutation +} + +// Where appends a list predicates to the RiskDelete builder. +func (rd *RiskDelete) Where(ps ...predicate.Risk) *RiskDelete { + rd.mutation.Where(ps...) + return rd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (rd *RiskDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, rd.sqlExec, rd.mutation, rd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (rd *RiskDelete) ExecX(ctx context.Context) int { + n, err := rd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (rd *RiskDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(risk.Table, sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString)) + _spec.Node.Schema = rd.schemaConfig.Risk + ctx = internal.NewSchemaConfigContext(ctx, rd.schemaConfig) + if ps := rd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, rd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + rd.mutation.done = true + return affected, err +} + +// RiskDeleteOne is the builder for deleting a single Risk entity. +type RiskDeleteOne struct { + rd *RiskDelete +} + +// Where appends a list predicates to the RiskDelete builder. +func (rdo *RiskDeleteOne) Where(ps ...predicate.Risk) *RiskDeleteOne { + rdo.rd.mutation.Where(ps...) + return rdo +} + +// Exec executes the deletion query. +func (rdo *RiskDeleteOne) Exec(ctx context.Context) error { + n, err := rdo.rd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{risk.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (rdo *RiskDeleteOne) ExecX(ctx context.Context) { + if err := rdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/risk_query.go b/internal/ent/generated/risk_query.go new file mode 100644 index 00000000..d0f47498 --- /dev/null +++ b/internal/ent/generated/risk_query.go @@ -0,0 +1,968 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "database/sql/driver" + "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/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// RiskQuery is the builder for querying Risk entities. +type RiskQuery struct { + config + ctx *QueryContext + order []risk.OrderOption + inters []Interceptor + predicates []predicate.Risk + withControl *ControlQuery + withProcedure *ProcedureQuery + withActionplans *ActionPlanQuery + withFKs bool + loadTotal []func(context.Context, []*Risk) error + modifiers []func(*sql.Selector) + withNamedControl map[string]*ControlQuery + withNamedProcedure map[string]*ProcedureQuery + withNamedActionplans map[string]*ActionPlanQuery + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the RiskQuery builder. +func (rq *RiskQuery) Where(ps ...predicate.Risk) *RiskQuery { + rq.predicates = append(rq.predicates, ps...) + return rq +} + +// Limit the number of records to be returned by this query. +func (rq *RiskQuery) Limit(limit int) *RiskQuery { + rq.ctx.Limit = &limit + return rq +} + +// Offset to start from. +func (rq *RiskQuery) Offset(offset int) *RiskQuery { + rq.ctx.Offset = &offset + return rq +} + +// 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 (rq *RiskQuery) Unique(unique bool) *RiskQuery { + rq.ctx.Unique = &unique + return rq +} + +// Order specifies how the records should be ordered. +func (rq *RiskQuery) Order(o ...risk.OrderOption) *RiskQuery { + rq.order = append(rq.order, o...) + return rq +} + +// QueryControl chains the current query on the "control" edge. +func (rq *RiskQuery) QueryControl() *ControlQuery { + query := (&ControlClient{config: rq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := rq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := rq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(risk.Table, risk.FieldID, selector), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, risk.ControlTable, risk.ControlPrimaryKey...), + ) + schemaConfig := rq.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlRisks + fromU = sqlgraph.SetNeighbors(rq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryProcedure chains the current query on the "procedure" edge. +func (rq *RiskQuery) QueryProcedure() *ProcedureQuery { + query := (&ProcedureClient{config: rq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := rq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := rq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(risk.Table, risk.FieldID, selector), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, risk.ProcedureTable, risk.ProcedurePrimaryKey...), + ) + schemaConfig := rq.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.ProcedureRisks + fromU = sqlgraph.SetNeighbors(rq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryActionplans chains the current query on the "actionplans" edge. +func (rq *RiskQuery) QueryActionplans() *ActionPlanQuery { + query := (&ActionPlanClient{config: rq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := rq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := rq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(risk.Table, risk.FieldID, selector), + sqlgraph.To(actionplan.Table, actionplan.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, risk.ActionplansTable, risk.ActionplansPrimaryKey...), + ) + schemaConfig := rq.schemaConfig + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.RiskActionplans + fromU = sqlgraph.SetNeighbors(rq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// First returns the first Risk entity from the query. +// Returns a *NotFoundError when no Risk was found. +func (rq *RiskQuery) First(ctx context.Context) (*Risk, error) { + nodes, err := rq.Limit(1).All(setContextOp(ctx, rq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{risk.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (rq *RiskQuery) FirstX(ctx context.Context) *Risk { + node, err := rq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first Risk ID from the query. +// Returns a *NotFoundError when no Risk ID was found. +func (rq *RiskQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = rq.Limit(1).IDs(setContextOp(ctx, rq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{risk.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (rq *RiskQuery) FirstIDX(ctx context.Context) string { + id, err := rq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single Risk entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one Risk entity is found. +// Returns a *NotFoundError when no Risk entities are found. +func (rq *RiskQuery) Only(ctx context.Context) (*Risk, error) { + nodes, err := rq.Limit(2).All(setContextOp(ctx, rq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{risk.Label} + default: + return nil, &NotSingularError{risk.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (rq *RiskQuery) OnlyX(ctx context.Context) *Risk { + node, err := rq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only Risk ID in the query. +// Returns a *NotSingularError when more than one Risk ID is found. +// Returns a *NotFoundError when no entities are found. +func (rq *RiskQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = rq.Limit(2).IDs(setContextOp(ctx, rq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{risk.Label} + default: + err = &NotSingularError{risk.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (rq *RiskQuery) OnlyIDX(ctx context.Context) string { + id, err := rq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of Risks. +func (rq *RiskQuery) All(ctx context.Context) ([]*Risk, error) { + ctx = setContextOp(ctx, rq.ctx, ent.OpQueryAll) + if err := rq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*Risk, *RiskQuery]() + return withInterceptors[[]*Risk](ctx, rq, qr, rq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (rq *RiskQuery) AllX(ctx context.Context) []*Risk { + nodes, err := rq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of Risk IDs. +func (rq *RiskQuery) IDs(ctx context.Context) (ids []string, err error) { + if rq.ctx.Unique == nil && rq.path != nil { + rq.Unique(true) + } + ctx = setContextOp(ctx, rq.ctx, ent.OpQueryIDs) + if err = rq.Select(risk.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (rq *RiskQuery) IDsX(ctx context.Context) []string { + ids, err := rq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (rq *RiskQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, rq.ctx, ent.OpQueryCount) + if err := rq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, rq, querierCount[*RiskQuery](), rq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (rq *RiskQuery) CountX(ctx context.Context) int { + count, err := rq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (rq *RiskQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, rq.ctx, ent.OpQueryExist) + switch _, err := rq.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 (rq *RiskQuery) ExistX(ctx context.Context) bool { + exist, err := rq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the RiskQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (rq *RiskQuery) Clone() *RiskQuery { + if rq == nil { + return nil + } + return &RiskQuery{ + config: rq.config, + ctx: rq.ctx.Clone(), + order: append([]risk.OrderOption{}, rq.order...), + inters: append([]Interceptor{}, rq.inters...), + predicates: append([]predicate.Risk{}, rq.predicates...), + withControl: rq.withControl.Clone(), + withProcedure: rq.withProcedure.Clone(), + withActionplans: rq.withActionplans.Clone(), + // clone intermediate query. + sql: rq.sql.Clone(), + path: rq.path, + modifiers: append([]func(*sql.Selector){}, rq.modifiers...), + } +} + +// WithControl tells the query-builder to eager-load the nodes that are connected to +// the "control" edge. The optional arguments are used to configure the query builder of the edge. +func (rq *RiskQuery) WithControl(opts ...func(*ControlQuery)) *RiskQuery { + query := (&ControlClient{config: rq.config}).Query() + for _, opt := range opts { + opt(query) + } + rq.withControl = query + return rq +} + +// WithProcedure tells the query-builder to eager-load the nodes that are connected to +// the "procedure" edge. The optional arguments are used to configure the query builder of the edge. +func (rq *RiskQuery) WithProcedure(opts ...func(*ProcedureQuery)) *RiskQuery { + query := (&ProcedureClient{config: rq.config}).Query() + for _, opt := range opts { + opt(query) + } + rq.withProcedure = query + return rq +} + +// WithActionplans tells the query-builder to eager-load the nodes that are connected to +// the "actionplans" edge. The optional arguments are used to configure the query builder of the edge. +func (rq *RiskQuery) WithActionplans(opts ...func(*ActionPlanQuery)) *RiskQuery { + query := (&ActionPlanClient{config: rq.config}).Query() + for _, opt := range opts { + opt(query) + } + rq.withActionplans = query + return rq +} + +// 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.Risk.Query(). +// GroupBy(risk.FieldCreatedAt). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (rq *RiskQuery) GroupBy(field string, fields ...string) *RiskGroupBy { + rq.ctx.Fields = append([]string{field}, fields...) + grbuild := &RiskGroupBy{build: rq} + grbuild.flds = &rq.ctx.Fields + grbuild.label = risk.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.Risk.Query(). +// Select(risk.FieldCreatedAt). +// Scan(ctx, &v) +func (rq *RiskQuery) Select(fields ...string) *RiskSelect { + rq.ctx.Fields = append(rq.ctx.Fields, fields...) + sbuild := &RiskSelect{RiskQuery: rq} + sbuild.label = risk.Label + sbuild.flds, sbuild.scan = &rq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a RiskSelect configured with the given aggregations. +func (rq *RiskQuery) Aggregate(fns ...AggregateFunc) *RiskSelect { + return rq.Select().Aggregate(fns...) +} + +func (rq *RiskQuery) prepareQuery(ctx context.Context) error { + for _, inter := range rq.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, rq); err != nil { + return err + } + } + } + for _, f := range rq.ctx.Fields { + if !risk.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if rq.path != nil { + prev, err := rq.path(ctx) + if err != nil { + return err + } + rq.sql = prev + } + return nil +} + +func (rq *RiskQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Risk, error) { + var ( + nodes = []*Risk{} + withFKs = rq.withFKs + _spec = rq.querySpec() + loadedTypes = [3]bool{ + rq.withControl != nil, + rq.withProcedure != nil, + rq.withActionplans != nil, + } + ) + if withFKs { + _spec.Node.Columns = append(_spec.Node.Columns, risk.ForeignKeys...) + } + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*Risk).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &Risk{config: rq.config} + nodes = append(nodes, node) + node.Edges.loadedTypes = loadedTypes + return node.assignValues(columns, values) + } + _spec.Node.Schema = rq.schemaConfig.Risk + ctx = internal.NewSchemaConfigContext(ctx, rq.schemaConfig) + if len(rq.modifiers) > 0 { + _spec.Modifiers = rq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, rq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + if query := rq.withControl; query != nil { + if err := rq.loadControl(ctx, query, nodes, + func(n *Risk) { n.Edges.Control = []*Control{} }, + func(n *Risk, e *Control) { n.Edges.Control = append(n.Edges.Control, e) }); err != nil { + return nil, err + } + } + if query := rq.withProcedure; query != nil { + if err := rq.loadProcedure(ctx, query, nodes, + func(n *Risk) { n.Edges.Procedure = []*Procedure{} }, + func(n *Risk, e *Procedure) { n.Edges.Procedure = append(n.Edges.Procedure, e) }); err != nil { + return nil, err + } + } + if query := rq.withActionplans; query != nil { + if err := rq.loadActionplans(ctx, query, nodes, + func(n *Risk) { n.Edges.Actionplans = []*ActionPlan{} }, + func(n *Risk, e *ActionPlan) { n.Edges.Actionplans = append(n.Edges.Actionplans, e) }); err != nil { + return nil, err + } + } + for name, query := range rq.withNamedControl { + if err := rq.loadControl(ctx, query, nodes, + func(n *Risk) { n.appendNamedControl(name) }, + func(n *Risk, e *Control) { n.appendNamedControl(name, e) }); err != nil { + return nil, err + } + } + for name, query := range rq.withNamedProcedure { + if err := rq.loadProcedure(ctx, query, nodes, + func(n *Risk) { n.appendNamedProcedure(name) }, + func(n *Risk, e *Procedure) { n.appendNamedProcedure(name, e) }); err != nil { + return nil, err + } + } + for name, query := range rq.withNamedActionplans { + if err := rq.loadActionplans(ctx, query, nodes, + func(n *Risk) { n.appendNamedActionplans(name) }, + func(n *Risk, e *ActionPlan) { n.appendNamedActionplans(name, e) }); err != nil { + return nil, err + } + } + for i := range rq.loadTotal { + if err := rq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (rq *RiskQuery) loadControl(ctx context.Context, query *ControlQuery, nodes []*Risk, init func(*Risk), assign func(*Risk, *Control)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Risk) + nids := make(map[string]map[*Risk]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(risk.ControlTable) + joinT.Schema(rq.schemaConfig.ControlRisks) + s.Join(joinT).On(s.C(control.FieldID), joinT.C(risk.ControlPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(risk.ControlPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(risk.ControlPrimaryKey[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[*Risk]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Control](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 "control" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (rq *RiskQuery) loadProcedure(ctx context.Context, query *ProcedureQuery, nodes []*Risk, init func(*Risk), assign func(*Risk, *Procedure)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Risk) + nids := make(map[string]map[*Risk]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(risk.ProcedureTable) + joinT.Schema(rq.schemaConfig.ProcedureRisks) + s.Join(joinT).On(s.C(procedure.FieldID), joinT.C(risk.ProcedurePrimaryKey[0])) + s.Where(sql.InValues(joinT.C(risk.ProcedurePrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(risk.ProcedurePrimaryKey[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[*Risk]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Procedure](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 "procedure" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (rq *RiskQuery) loadActionplans(ctx context.Context, query *ActionPlanQuery, nodes []*Risk, init func(*Risk), assign func(*Risk, *ActionPlan)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Risk) + nids := make(map[string]map[*Risk]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(risk.ActionplansTable) + joinT.Schema(rq.schemaConfig.RiskActionplans) + s.Join(joinT).On(s.C(actionplan.FieldID), joinT.C(risk.ActionplansPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(risk.ActionplansPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(risk.ActionplansPrimaryKey[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[*Risk]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*ActionPlan](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 "actionplans" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} + +func (rq *RiskQuery) sqlCount(ctx context.Context) (int, error) { + _spec := rq.querySpec() + _spec.Node.Schema = rq.schemaConfig.Risk + ctx = internal.NewSchemaConfigContext(ctx, rq.schemaConfig) + if len(rq.modifiers) > 0 { + _spec.Modifiers = rq.modifiers + } + _spec.Node.Columns = rq.ctx.Fields + if len(rq.ctx.Fields) > 0 { + _spec.Unique = rq.ctx.Unique != nil && *rq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, rq.driver, _spec) +} + +func (rq *RiskQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(risk.Table, risk.Columns, sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString)) + _spec.From = rq.sql + if unique := rq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if rq.path != nil { + _spec.Unique = true + } + if fields := rq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, risk.FieldID) + for i := range fields { + if fields[i] != risk.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := rq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := rq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := rq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := rq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (rq *RiskQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(rq.driver.Dialect()) + t1 := builder.Table(risk.Table) + columns := rq.ctx.Fields + if len(columns) == 0 { + columns = risk.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if rq.sql != nil { + selector = rq.sql + selector.Select(selector.Columns(columns...)...) + } + if rq.ctx.Unique != nil && *rq.ctx.Unique { + selector.Distinct() + } + t1.Schema(rq.schemaConfig.Risk) + ctx = internal.NewSchemaConfigContext(ctx, rq.schemaConfig) + selector.WithContext(ctx) + for _, m := range rq.modifiers { + m(selector) + } + for _, p := range rq.predicates { + p(selector) + } + for _, p := range rq.order { + p(selector) + } + if offset := rq.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 := rq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (rq *RiskQuery) Modify(modifiers ...func(s *sql.Selector)) *RiskSelect { + rq.modifiers = append(rq.modifiers, modifiers...) + return rq.Select() +} + +// WithNamedControl tells the query-builder to eager-load the nodes that are connected to the "control" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (rq *RiskQuery) WithNamedControl(name string, opts ...func(*ControlQuery)) *RiskQuery { + query := (&ControlClient{config: rq.config}).Query() + for _, opt := range opts { + opt(query) + } + if rq.withNamedControl == nil { + rq.withNamedControl = make(map[string]*ControlQuery) + } + rq.withNamedControl[name] = query + return rq +} + +// WithNamedProcedure tells the query-builder to eager-load the nodes that are connected to the "procedure" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (rq *RiskQuery) WithNamedProcedure(name string, opts ...func(*ProcedureQuery)) *RiskQuery { + query := (&ProcedureClient{config: rq.config}).Query() + for _, opt := range opts { + opt(query) + } + if rq.withNamedProcedure == nil { + rq.withNamedProcedure = make(map[string]*ProcedureQuery) + } + rq.withNamedProcedure[name] = query + return rq +} + +// WithNamedActionplans tells the query-builder to eager-load the nodes that are connected to the "actionplans" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (rq *RiskQuery) WithNamedActionplans(name string, opts ...func(*ActionPlanQuery)) *RiskQuery { + query := (&ActionPlanClient{config: rq.config}).Query() + for _, opt := range opts { + opt(query) + } + if rq.withNamedActionplans == nil { + rq.withNamedActionplans = make(map[string]*ActionPlanQuery) + } + rq.withNamedActionplans[name] = query + return rq +} + +// RiskGroupBy is the group-by builder for Risk entities. +type RiskGroupBy struct { + selector + build *RiskQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (rgb *RiskGroupBy) Aggregate(fns ...AggregateFunc) *RiskGroupBy { + rgb.fns = append(rgb.fns, fns...) + return rgb +} + +// Scan applies the selector query and scans the result into the given value. +func (rgb *RiskGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, rgb.build.ctx, ent.OpQueryGroupBy) + if err := rgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*RiskQuery, *RiskGroupBy](ctx, rgb.build, rgb, rgb.build.inters, v) +} + +func (rgb *RiskGroupBy) sqlScan(ctx context.Context, root *RiskQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(rgb.fns)) + for _, fn := range rgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*rgb.flds)+len(rgb.fns)) + for _, f := range *rgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*rgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := rgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// RiskSelect is the builder for selecting fields of Risk entities. +type RiskSelect struct { + *RiskQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (rs *RiskSelect) Aggregate(fns ...AggregateFunc) *RiskSelect { + rs.fns = append(rs.fns, fns...) + return rs +} + +// Scan applies the selector query and scans the result into the given value. +func (rs *RiskSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, rs.ctx, ent.OpQuerySelect) + if err := rs.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*RiskQuery, *RiskSelect](ctx, rs.RiskQuery, rs, rs.inters, v) +} + +func (rs *RiskSelect) sqlScan(ctx context.Context, root *RiskQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(rs.fns)) + for _, fn := range rs.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*rs.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 := rs.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 (rs *RiskSelect) Modify(modifiers ...func(s *sql.Selector)) *RiskSelect { + rs.modifiers = append(rs.modifiers, modifiers...) + return rs +} diff --git a/internal/ent/generated/risk_update.go b/internal/ent/generated/risk_update.go new file mode 100644 index 00000000..d2dafbf6 --- /dev/null +++ b/internal/ent/generated/risk_update.go @@ -0,0 +1,1521 @@ +// 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/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/pkg/enums" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// RiskUpdate is the builder for updating Risk entities. +type RiskUpdate struct { + config + hooks []Hook + mutation *RiskMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the RiskUpdate builder. +func (ru *RiskUpdate) Where(ps ...predicate.Risk) *RiskUpdate { + ru.mutation.Where(ps...) + return ru +} + +// SetUpdatedAt sets the "updated_at" field. +func (ru *RiskUpdate) SetUpdatedAt(t time.Time) *RiskUpdate { + ru.mutation.SetUpdatedAt(t) + return ru +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (ru *RiskUpdate) ClearUpdatedAt() *RiskUpdate { + ru.mutation.ClearUpdatedAt() + return ru +} + +// SetUpdatedBy sets the "updated_by" field. +func (ru *RiskUpdate) SetUpdatedBy(s string) *RiskUpdate { + ru.mutation.SetUpdatedBy(s) + return ru +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (ru *RiskUpdate) SetNillableUpdatedBy(s *string) *RiskUpdate { + if s != nil { + ru.SetUpdatedBy(*s) + } + return ru +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (ru *RiskUpdate) ClearUpdatedBy() *RiskUpdate { + ru.mutation.ClearUpdatedBy() + return ru +} + +// SetDeletedAt sets the "deleted_at" field. +func (ru *RiskUpdate) SetDeletedAt(t time.Time) *RiskUpdate { + ru.mutation.SetDeletedAt(t) + return ru +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (ru *RiskUpdate) SetNillableDeletedAt(t *time.Time) *RiskUpdate { + if t != nil { + ru.SetDeletedAt(*t) + } + return ru +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (ru *RiskUpdate) ClearDeletedAt() *RiskUpdate { + ru.mutation.ClearDeletedAt() + return ru +} + +// SetDeletedBy sets the "deleted_by" field. +func (ru *RiskUpdate) SetDeletedBy(s string) *RiskUpdate { + ru.mutation.SetDeletedBy(s) + return ru +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (ru *RiskUpdate) SetNillableDeletedBy(s *string) *RiskUpdate { + if s != nil { + ru.SetDeletedBy(*s) + } + return ru +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (ru *RiskUpdate) ClearDeletedBy() *RiskUpdate { + ru.mutation.ClearDeletedBy() + return ru +} + +// SetTags sets the "tags" field. +func (ru *RiskUpdate) SetTags(s []string) *RiskUpdate { + ru.mutation.SetTags(s) + return ru +} + +// AppendTags appends s to the "tags" field. +func (ru *RiskUpdate) AppendTags(s []string) *RiskUpdate { + ru.mutation.AppendTags(s) + return ru +} + +// ClearTags clears the value of the "tags" field. +func (ru *RiskUpdate) ClearTags() *RiskUpdate { + ru.mutation.ClearTags() + return ru +} + +// SetName sets the "name" field. +func (ru *RiskUpdate) SetName(s string) *RiskUpdate { + ru.mutation.SetName(s) + return ru +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (ru *RiskUpdate) SetNillableName(s *string) *RiskUpdate { + if s != nil { + ru.SetName(*s) + } + return ru +} + +// SetDescription sets the "description" field. +func (ru *RiskUpdate) SetDescription(s string) *RiskUpdate { + ru.mutation.SetDescription(s) + return ru +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (ru *RiskUpdate) SetNillableDescription(s *string) *RiskUpdate { + if s != nil { + ru.SetDescription(*s) + } + return ru +} + +// ClearDescription clears the value of the "description" field. +func (ru *RiskUpdate) ClearDescription() *RiskUpdate { + ru.mutation.ClearDescription() + return ru +} + +// SetStatus sets the "status" field. +func (ru *RiskUpdate) SetStatus(s string) *RiskUpdate { + ru.mutation.SetStatus(s) + return ru +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (ru *RiskUpdate) SetNillableStatus(s *string) *RiskUpdate { + if s != nil { + ru.SetStatus(*s) + } + return ru +} + +// ClearStatus clears the value of the "status" field. +func (ru *RiskUpdate) ClearStatus() *RiskUpdate { + ru.mutation.ClearStatus() + return ru +} + +// SetRiskType sets the "risk_type" field. +func (ru *RiskUpdate) SetRiskType(s string) *RiskUpdate { + ru.mutation.SetRiskType(s) + return ru +} + +// SetNillableRiskType sets the "risk_type" field if the given value is not nil. +func (ru *RiskUpdate) SetNillableRiskType(s *string) *RiskUpdate { + if s != nil { + ru.SetRiskType(*s) + } + return ru +} + +// ClearRiskType clears the value of the "risk_type" field. +func (ru *RiskUpdate) ClearRiskType() *RiskUpdate { + ru.mutation.ClearRiskType() + return ru +} + +// SetBusinessCosts sets the "business_costs" field. +func (ru *RiskUpdate) SetBusinessCosts(s string) *RiskUpdate { + ru.mutation.SetBusinessCosts(s) + return ru +} + +// SetNillableBusinessCosts sets the "business_costs" field if the given value is not nil. +func (ru *RiskUpdate) SetNillableBusinessCosts(s *string) *RiskUpdate { + if s != nil { + ru.SetBusinessCosts(*s) + } + return ru +} + +// ClearBusinessCosts clears the value of the "business_costs" field. +func (ru *RiskUpdate) ClearBusinessCosts() *RiskUpdate { + ru.mutation.ClearBusinessCosts() + return ru +} + +// SetImpact sets the "impact" field. +func (ru *RiskUpdate) SetImpact(ei enums.RiskImpact) *RiskUpdate { + ru.mutation.SetImpact(ei) + return ru +} + +// SetNillableImpact sets the "impact" field if the given value is not nil. +func (ru *RiskUpdate) SetNillableImpact(ei *enums.RiskImpact) *RiskUpdate { + if ei != nil { + ru.SetImpact(*ei) + } + return ru +} + +// ClearImpact clears the value of the "impact" field. +func (ru *RiskUpdate) ClearImpact() *RiskUpdate { + ru.mutation.ClearImpact() + return ru +} + +// SetLikelihood sets the "likelihood" field. +func (ru *RiskUpdate) SetLikelihood(el enums.RiskLikelihood) *RiskUpdate { + ru.mutation.SetLikelihood(el) + return ru +} + +// SetNillableLikelihood sets the "likelihood" field if the given value is not nil. +func (ru *RiskUpdate) SetNillableLikelihood(el *enums.RiskLikelihood) *RiskUpdate { + if el != nil { + ru.SetLikelihood(*el) + } + return ru +} + +// ClearLikelihood clears the value of the "likelihood" field. +func (ru *RiskUpdate) ClearLikelihood() *RiskUpdate { + ru.mutation.ClearLikelihood() + return ru +} + +// SetMitigation sets the "mitigation" field. +func (ru *RiskUpdate) SetMitigation(s string) *RiskUpdate { + ru.mutation.SetMitigation(s) + return ru +} + +// SetNillableMitigation sets the "mitigation" field if the given value is not nil. +func (ru *RiskUpdate) SetNillableMitigation(s *string) *RiskUpdate { + if s != nil { + ru.SetMitigation(*s) + } + return ru +} + +// ClearMitigation clears the value of the "mitigation" field. +func (ru *RiskUpdate) ClearMitigation() *RiskUpdate { + ru.mutation.ClearMitigation() + return ru +} + +// SetSatisfies sets the "satisfies" field. +func (ru *RiskUpdate) SetSatisfies(s string) *RiskUpdate { + ru.mutation.SetSatisfies(s) + return ru +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (ru *RiskUpdate) SetNillableSatisfies(s *string) *RiskUpdate { + if s != nil { + ru.SetSatisfies(*s) + } + return ru +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (ru *RiskUpdate) ClearSatisfies() *RiskUpdate { + ru.mutation.ClearSatisfies() + return ru +} + +// SetDetails sets the "details" field. +func (ru *RiskUpdate) SetDetails(m map[string]interface{}) *RiskUpdate { + ru.mutation.SetDetails(m) + return ru +} + +// ClearDetails clears the value of the "details" field. +func (ru *RiskUpdate) ClearDetails() *RiskUpdate { + ru.mutation.ClearDetails() + return ru +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (ru *RiskUpdate) AddControlIDs(ids ...string) *RiskUpdate { + ru.mutation.AddControlIDs(ids...) + return ru +} + +// AddControl adds the "control" edges to the Control entity. +func (ru *RiskUpdate) AddControl(c ...*Control) *RiskUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ru.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedure" edge to the Procedure entity by IDs. +func (ru *RiskUpdate) AddProcedureIDs(ids ...string) *RiskUpdate { + ru.mutation.AddProcedureIDs(ids...) + return ru +} + +// AddProcedure adds the "procedure" edges to the Procedure entity. +func (ru *RiskUpdate) AddProcedure(p ...*Procedure) *RiskUpdate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return ru.AddProcedureIDs(ids...) +} + +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by IDs. +func (ru *RiskUpdate) AddActionplanIDs(ids ...string) *RiskUpdate { + ru.mutation.AddActionplanIDs(ids...) + return ru +} + +// AddActionplans adds the "actionplans" edges to the ActionPlan entity. +func (ru *RiskUpdate) AddActionplans(a ...*ActionPlan) *RiskUpdate { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return ru.AddActionplanIDs(ids...) +} + +// Mutation returns the RiskMutation object of the builder. +func (ru *RiskUpdate) Mutation() *RiskMutation { + return ru.mutation +} + +// ClearControl clears all "control" edges to the Control entity. +func (ru *RiskUpdate) ClearControl() *RiskUpdate { + ru.mutation.ClearControl() + return ru +} + +// RemoveControlIDs removes the "control" edge to Control entities by IDs. +func (ru *RiskUpdate) RemoveControlIDs(ids ...string) *RiskUpdate { + ru.mutation.RemoveControlIDs(ids...) + return ru +} + +// RemoveControl removes "control" edges to Control entities. +func (ru *RiskUpdate) RemoveControl(c ...*Control) *RiskUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ru.RemoveControlIDs(ids...) +} + +// ClearProcedure clears all "procedure" edges to the Procedure entity. +func (ru *RiskUpdate) ClearProcedure() *RiskUpdate { + ru.mutation.ClearProcedure() + return ru +} + +// RemoveProcedureIDs removes the "procedure" edge to Procedure entities by IDs. +func (ru *RiskUpdate) RemoveProcedureIDs(ids ...string) *RiskUpdate { + ru.mutation.RemoveProcedureIDs(ids...) + return ru +} + +// RemoveProcedure removes "procedure" edges to Procedure entities. +func (ru *RiskUpdate) RemoveProcedure(p ...*Procedure) *RiskUpdate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return ru.RemoveProcedureIDs(ids...) +} + +// ClearActionplans clears all "actionplans" edges to the ActionPlan entity. +func (ru *RiskUpdate) ClearActionplans() *RiskUpdate { + ru.mutation.ClearActionplans() + return ru +} + +// RemoveActionplanIDs removes the "actionplans" edge to ActionPlan entities by IDs. +func (ru *RiskUpdate) RemoveActionplanIDs(ids ...string) *RiskUpdate { + ru.mutation.RemoveActionplanIDs(ids...) + return ru +} + +// RemoveActionplans removes "actionplans" edges to ActionPlan entities. +func (ru *RiskUpdate) RemoveActionplans(a ...*ActionPlan) *RiskUpdate { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return ru.RemoveActionplanIDs(ids...) +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (ru *RiskUpdate) Save(ctx context.Context) (int, error) { + if err := ru.defaults(); err != nil { + return 0, err + } + return withHooks(ctx, ru.sqlSave, ru.mutation, ru.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (ru *RiskUpdate) SaveX(ctx context.Context) int { + affected, err := ru.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (ru *RiskUpdate) Exec(ctx context.Context) error { + _, err := ru.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (ru *RiskUpdate) ExecX(ctx context.Context) { + if err := ru.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (ru *RiskUpdate) defaults() error { + if _, ok := ru.mutation.UpdatedAt(); !ok && !ru.mutation.UpdatedAtCleared() { + if risk.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized risk.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := risk.UpdateDefaultUpdatedAt() + ru.mutation.SetUpdatedAt(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (ru *RiskUpdate) check() error { + if v, ok := ru.mutation.Impact(); ok { + if err := risk.ImpactValidator(v); err != nil { + return &ValidationError{Name: "impact", err: fmt.Errorf(`generated: validator failed for field "Risk.impact": %w`, err)} + } + } + if v, ok := ru.mutation.Likelihood(); ok { + if err := risk.LikelihoodValidator(v); err != nil { + return &ValidationError{Name: "likelihood", err: fmt.Errorf(`generated: validator failed for field "Risk.likelihood": %w`, err)} + } + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (ru *RiskUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *RiskUpdate { + ru.modifiers = append(ru.modifiers, modifiers...) + return ru +} + +func (ru *RiskUpdate) sqlSave(ctx context.Context) (n int, err error) { + if err := ru.check(); err != nil { + return n, err + } + _spec := sqlgraph.NewUpdateSpec(risk.Table, risk.Columns, sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString)) + if ps := ru.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if ru.mutation.CreatedAtCleared() { + _spec.ClearField(risk.FieldCreatedAt, field.TypeTime) + } + if value, ok := ru.mutation.UpdatedAt(); ok { + _spec.SetField(risk.FieldUpdatedAt, field.TypeTime, value) + } + if ru.mutation.UpdatedAtCleared() { + _spec.ClearField(risk.FieldUpdatedAt, field.TypeTime) + } + if ru.mutation.CreatedByCleared() { + _spec.ClearField(risk.FieldCreatedBy, field.TypeString) + } + if value, ok := ru.mutation.UpdatedBy(); ok { + _spec.SetField(risk.FieldUpdatedBy, field.TypeString, value) + } + if ru.mutation.UpdatedByCleared() { + _spec.ClearField(risk.FieldUpdatedBy, field.TypeString) + } + if value, ok := ru.mutation.DeletedAt(); ok { + _spec.SetField(risk.FieldDeletedAt, field.TypeTime, value) + } + if ru.mutation.DeletedAtCleared() { + _spec.ClearField(risk.FieldDeletedAt, field.TypeTime) + } + if value, ok := ru.mutation.DeletedBy(); ok { + _spec.SetField(risk.FieldDeletedBy, field.TypeString, value) + } + if ru.mutation.DeletedByCleared() { + _spec.ClearField(risk.FieldDeletedBy, field.TypeString) + } + if value, ok := ru.mutation.Tags(); ok { + _spec.SetField(risk.FieldTags, field.TypeJSON, value) + } + if value, ok := ru.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, risk.FieldTags, value) + }) + } + if ru.mutation.TagsCleared() { + _spec.ClearField(risk.FieldTags, field.TypeJSON) + } + if value, ok := ru.mutation.Name(); ok { + _spec.SetField(risk.FieldName, field.TypeString, value) + } + if value, ok := ru.mutation.Description(); ok { + _spec.SetField(risk.FieldDescription, field.TypeString, value) + } + if ru.mutation.DescriptionCleared() { + _spec.ClearField(risk.FieldDescription, field.TypeString) + } + if value, ok := ru.mutation.Status(); ok { + _spec.SetField(risk.FieldStatus, field.TypeString, value) + } + if ru.mutation.StatusCleared() { + _spec.ClearField(risk.FieldStatus, field.TypeString) + } + if value, ok := ru.mutation.RiskType(); ok { + _spec.SetField(risk.FieldRiskType, field.TypeString, value) + } + if ru.mutation.RiskTypeCleared() { + _spec.ClearField(risk.FieldRiskType, field.TypeString) + } + if value, ok := ru.mutation.BusinessCosts(); ok { + _spec.SetField(risk.FieldBusinessCosts, field.TypeString, value) + } + if ru.mutation.BusinessCostsCleared() { + _spec.ClearField(risk.FieldBusinessCosts, field.TypeString) + } + if value, ok := ru.mutation.Impact(); ok { + _spec.SetField(risk.FieldImpact, field.TypeEnum, value) + } + if ru.mutation.ImpactCleared() { + _spec.ClearField(risk.FieldImpact, field.TypeEnum) + } + if value, ok := ru.mutation.Likelihood(); ok { + _spec.SetField(risk.FieldLikelihood, field.TypeEnum, value) + } + if ru.mutation.LikelihoodCleared() { + _spec.ClearField(risk.FieldLikelihood, field.TypeEnum) + } + if value, ok := ru.mutation.Mitigation(); ok { + _spec.SetField(risk.FieldMitigation, field.TypeString, value) + } + if ru.mutation.MitigationCleared() { + _spec.ClearField(risk.FieldMitigation, field.TypeString) + } + if value, ok := ru.mutation.Satisfies(); ok { + _spec.SetField(risk.FieldSatisfies, field.TypeString, value) + } + if ru.mutation.SatisfiesCleared() { + _spec.ClearField(risk.FieldSatisfies, field.TypeString) + } + if value, ok := ru.mutation.Details(); ok { + _spec.SetField(risk.FieldDetails, field.TypeJSON, value) + } + if ru.mutation.DetailsCleared() { + _spec.ClearField(risk.FieldDetails, field.TypeJSON) + } + if ru.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ControlTable, + Columns: risk.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ru.schemaConfig.ControlRisks + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ru.mutation.RemovedControlIDs(); len(nodes) > 0 && !ru.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ControlTable, + Columns: risk.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ru.schemaConfig.ControlRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ru.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ControlTable, + Columns: risk.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ru.schemaConfig.ControlRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if ru.mutation.ProcedureCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ProcedureTable, + Columns: risk.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ru.schemaConfig.ProcedureRisks + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ru.mutation.RemovedProcedureIDs(); len(nodes) > 0 && !ru.mutation.ProcedureCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ProcedureTable, + Columns: risk.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ru.schemaConfig.ProcedureRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ru.mutation.ProcedureIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ProcedureTable, + Columns: risk.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ru.schemaConfig.ProcedureRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if ru.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: risk.ActionplansTable, + Columns: risk.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = ru.schemaConfig.RiskActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ru.mutation.RemovedActionplansIDs(); len(nodes) > 0 && !ru.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: risk.ActionplansTable, + Columns: risk.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = ru.schemaConfig.RiskActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ru.mutation.ActionplansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: risk.ActionplansTable, + Columns: risk.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = ru.schemaConfig.RiskActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = ru.schemaConfig.Risk + ctx = internal.NewSchemaConfigContext(ctx, ru.schemaConfig) + _spec.AddModifiers(ru.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, ru.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{risk.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + ru.mutation.done = true + return n, nil +} + +// RiskUpdateOne is the builder for updating a single Risk entity. +type RiskUpdateOne struct { + config + fields []string + hooks []Hook + mutation *RiskMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (ruo *RiskUpdateOne) SetUpdatedAt(t time.Time) *RiskUpdateOne { + ruo.mutation.SetUpdatedAt(t) + return ruo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (ruo *RiskUpdateOne) ClearUpdatedAt() *RiskUpdateOne { + ruo.mutation.ClearUpdatedAt() + return ruo +} + +// SetUpdatedBy sets the "updated_by" field. +func (ruo *RiskUpdateOne) SetUpdatedBy(s string) *RiskUpdateOne { + ruo.mutation.SetUpdatedBy(s) + return ruo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (ruo *RiskUpdateOne) SetNillableUpdatedBy(s *string) *RiskUpdateOne { + if s != nil { + ruo.SetUpdatedBy(*s) + } + return ruo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (ruo *RiskUpdateOne) ClearUpdatedBy() *RiskUpdateOne { + ruo.mutation.ClearUpdatedBy() + return ruo +} + +// SetDeletedAt sets the "deleted_at" field. +func (ruo *RiskUpdateOne) SetDeletedAt(t time.Time) *RiskUpdateOne { + ruo.mutation.SetDeletedAt(t) + return ruo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (ruo *RiskUpdateOne) SetNillableDeletedAt(t *time.Time) *RiskUpdateOne { + if t != nil { + ruo.SetDeletedAt(*t) + } + return ruo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (ruo *RiskUpdateOne) ClearDeletedAt() *RiskUpdateOne { + ruo.mutation.ClearDeletedAt() + return ruo +} + +// SetDeletedBy sets the "deleted_by" field. +func (ruo *RiskUpdateOne) SetDeletedBy(s string) *RiskUpdateOne { + ruo.mutation.SetDeletedBy(s) + return ruo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (ruo *RiskUpdateOne) SetNillableDeletedBy(s *string) *RiskUpdateOne { + if s != nil { + ruo.SetDeletedBy(*s) + } + return ruo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (ruo *RiskUpdateOne) ClearDeletedBy() *RiskUpdateOne { + ruo.mutation.ClearDeletedBy() + return ruo +} + +// SetTags sets the "tags" field. +func (ruo *RiskUpdateOne) SetTags(s []string) *RiskUpdateOne { + ruo.mutation.SetTags(s) + return ruo +} + +// AppendTags appends s to the "tags" field. +func (ruo *RiskUpdateOne) AppendTags(s []string) *RiskUpdateOne { + ruo.mutation.AppendTags(s) + return ruo +} + +// ClearTags clears the value of the "tags" field. +func (ruo *RiskUpdateOne) ClearTags() *RiskUpdateOne { + ruo.mutation.ClearTags() + return ruo +} + +// SetName sets the "name" field. +func (ruo *RiskUpdateOne) SetName(s string) *RiskUpdateOne { + ruo.mutation.SetName(s) + return ruo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (ruo *RiskUpdateOne) SetNillableName(s *string) *RiskUpdateOne { + if s != nil { + ruo.SetName(*s) + } + return ruo +} + +// SetDescription sets the "description" field. +func (ruo *RiskUpdateOne) SetDescription(s string) *RiskUpdateOne { + ruo.mutation.SetDescription(s) + return ruo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (ruo *RiskUpdateOne) SetNillableDescription(s *string) *RiskUpdateOne { + if s != nil { + ruo.SetDescription(*s) + } + return ruo +} + +// ClearDescription clears the value of the "description" field. +func (ruo *RiskUpdateOne) ClearDescription() *RiskUpdateOne { + ruo.mutation.ClearDescription() + return ruo +} + +// SetStatus sets the "status" field. +func (ruo *RiskUpdateOne) SetStatus(s string) *RiskUpdateOne { + ruo.mutation.SetStatus(s) + return ruo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (ruo *RiskUpdateOne) SetNillableStatus(s *string) *RiskUpdateOne { + if s != nil { + ruo.SetStatus(*s) + } + return ruo +} + +// ClearStatus clears the value of the "status" field. +func (ruo *RiskUpdateOne) ClearStatus() *RiskUpdateOne { + ruo.mutation.ClearStatus() + return ruo +} + +// SetRiskType sets the "risk_type" field. +func (ruo *RiskUpdateOne) SetRiskType(s string) *RiskUpdateOne { + ruo.mutation.SetRiskType(s) + return ruo +} + +// SetNillableRiskType sets the "risk_type" field if the given value is not nil. +func (ruo *RiskUpdateOne) SetNillableRiskType(s *string) *RiskUpdateOne { + if s != nil { + ruo.SetRiskType(*s) + } + return ruo +} + +// ClearRiskType clears the value of the "risk_type" field. +func (ruo *RiskUpdateOne) ClearRiskType() *RiskUpdateOne { + ruo.mutation.ClearRiskType() + return ruo +} + +// SetBusinessCosts sets the "business_costs" field. +func (ruo *RiskUpdateOne) SetBusinessCosts(s string) *RiskUpdateOne { + ruo.mutation.SetBusinessCosts(s) + return ruo +} + +// SetNillableBusinessCosts sets the "business_costs" field if the given value is not nil. +func (ruo *RiskUpdateOne) SetNillableBusinessCosts(s *string) *RiskUpdateOne { + if s != nil { + ruo.SetBusinessCosts(*s) + } + return ruo +} + +// ClearBusinessCosts clears the value of the "business_costs" field. +func (ruo *RiskUpdateOne) ClearBusinessCosts() *RiskUpdateOne { + ruo.mutation.ClearBusinessCosts() + return ruo +} + +// SetImpact sets the "impact" field. +func (ruo *RiskUpdateOne) SetImpact(ei enums.RiskImpact) *RiskUpdateOne { + ruo.mutation.SetImpact(ei) + return ruo +} + +// SetNillableImpact sets the "impact" field if the given value is not nil. +func (ruo *RiskUpdateOne) SetNillableImpact(ei *enums.RiskImpact) *RiskUpdateOne { + if ei != nil { + ruo.SetImpact(*ei) + } + return ruo +} + +// ClearImpact clears the value of the "impact" field. +func (ruo *RiskUpdateOne) ClearImpact() *RiskUpdateOne { + ruo.mutation.ClearImpact() + return ruo +} + +// SetLikelihood sets the "likelihood" field. +func (ruo *RiskUpdateOne) SetLikelihood(el enums.RiskLikelihood) *RiskUpdateOne { + ruo.mutation.SetLikelihood(el) + return ruo +} + +// SetNillableLikelihood sets the "likelihood" field if the given value is not nil. +func (ruo *RiskUpdateOne) SetNillableLikelihood(el *enums.RiskLikelihood) *RiskUpdateOne { + if el != nil { + ruo.SetLikelihood(*el) + } + return ruo +} + +// ClearLikelihood clears the value of the "likelihood" field. +func (ruo *RiskUpdateOne) ClearLikelihood() *RiskUpdateOne { + ruo.mutation.ClearLikelihood() + return ruo +} + +// SetMitigation sets the "mitigation" field. +func (ruo *RiskUpdateOne) SetMitigation(s string) *RiskUpdateOne { + ruo.mutation.SetMitigation(s) + return ruo +} + +// SetNillableMitigation sets the "mitigation" field if the given value is not nil. +func (ruo *RiskUpdateOne) SetNillableMitigation(s *string) *RiskUpdateOne { + if s != nil { + ruo.SetMitigation(*s) + } + return ruo +} + +// ClearMitigation clears the value of the "mitigation" field. +func (ruo *RiskUpdateOne) ClearMitigation() *RiskUpdateOne { + ruo.mutation.ClearMitigation() + return ruo +} + +// SetSatisfies sets the "satisfies" field. +func (ruo *RiskUpdateOne) SetSatisfies(s string) *RiskUpdateOne { + ruo.mutation.SetSatisfies(s) + return ruo +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (ruo *RiskUpdateOne) SetNillableSatisfies(s *string) *RiskUpdateOne { + if s != nil { + ruo.SetSatisfies(*s) + } + return ruo +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (ruo *RiskUpdateOne) ClearSatisfies() *RiskUpdateOne { + ruo.mutation.ClearSatisfies() + return ruo +} + +// SetDetails sets the "details" field. +func (ruo *RiskUpdateOne) SetDetails(m map[string]interface{}) *RiskUpdateOne { + ruo.mutation.SetDetails(m) + return ruo +} + +// ClearDetails clears the value of the "details" field. +func (ruo *RiskUpdateOne) ClearDetails() *RiskUpdateOne { + ruo.mutation.ClearDetails() + return ruo +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (ruo *RiskUpdateOne) AddControlIDs(ids ...string) *RiskUpdateOne { + ruo.mutation.AddControlIDs(ids...) + return ruo +} + +// AddControl adds the "control" edges to the Control entity. +func (ruo *RiskUpdateOne) AddControl(c ...*Control) *RiskUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ruo.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedure" edge to the Procedure entity by IDs. +func (ruo *RiskUpdateOne) AddProcedureIDs(ids ...string) *RiskUpdateOne { + ruo.mutation.AddProcedureIDs(ids...) + return ruo +} + +// AddProcedure adds the "procedure" edges to the Procedure entity. +func (ruo *RiskUpdateOne) AddProcedure(p ...*Procedure) *RiskUpdateOne { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return ruo.AddProcedureIDs(ids...) +} + +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by IDs. +func (ruo *RiskUpdateOne) AddActionplanIDs(ids ...string) *RiskUpdateOne { + ruo.mutation.AddActionplanIDs(ids...) + return ruo +} + +// AddActionplans adds the "actionplans" edges to the ActionPlan entity. +func (ruo *RiskUpdateOne) AddActionplans(a ...*ActionPlan) *RiskUpdateOne { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return ruo.AddActionplanIDs(ids...) +} + +// Mutation returns the RiskMutation object of the builder. +func (ruo *RiskUpdateOne) Mutation() *RiskMutation { + return ruo.mutation +} + +// ClearControl clears all "control" edges to the Control entity. +func (ruo *RiskUpdateOne) ClearControl() *RiskUpdateOne { + ruo.mutation.ClearControl() + return ruo +} + +// RemoveControlIDs removes the "control" edge to Control entities by IDs. +func (ruo *RiskUpdateOne) RemoveControlIDs(ids ...string) *RiskUpdateOne { + ruo.mutation.RemoveControlIDs(ids...) + return ruo +} + +// RemoveControl removes "control" edges to Control entities. +func (ruo *RiskUpdateOne) RemoveControl(c ...*Control) *RiskUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return ruo.RemoveControlIDs(ids...) +} + +// ClearProcedure clears all "procedure" edges to the Procedure entity. +func (ruo *RiskUpdateOne) ClearProcedure() *RiskUpdateOne { + ruo.mutation.ClearProcedure() + return ruo +} + +// RemoveProcedureIDs removes the "procedure" edge to Procedure entities by IDs. +func (ruo *RiskUpdateOne) RemoveProcedureIDs(ids ...string) *RiskUpdateOne { + ruo.mutation.RemoveProcedureIDs(ids...) + return ruo +} + +// RemoveProcedure removes "procedure" edges to Procedure entities. +func (ruo *RiskUpdateOne) RemoveProcedure(p ...*Procedure) *RiskUpdateOne { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return ruo.RemoveProcedureIDs(ids...) +} + +// ClearActionplans clears all "actionplans" edges to the ActionPlan entity. +func (ruo *RiskUpdateOne) ClearActionplans() *RiskUpdateOne { + ruo.mutation.ClearActionplans() + return ruo +} + +// RemoveActionplanIDs removes the "actionplans" edge to ActionPlan entities by IDs. +func (ruo *RiskUpdateOne) RemoveActionplanIDs(ids ...string) *RiskUpdateOne { + ruo.mutation.RemoveActionplanIDs(ids...) + return ruo +} + +// RemoveActionplans removes "actionplans" edges to ActionPlan entities. +func (ruo *RiskUpdateOne) RemoveActionplans(a ...*ActionPlan) *RiskUpdateOne { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return ruo.RemoveActionplanIDs(ids...) +} + +// Where appends a list predicates to the RiskUpdate builder. +func (ruo *RiskUpdateOne) Where(ps ...predicate.Risk) *RiskUpdateOne { + ruo.mutation.Where(ps...) + return ruo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (ruo *RiskUpdateOne) Select(field string, fields ...string) *RiskUpdateOne { + ruo.fields = append([]string{field}, fields...) + return ruo +} + +// Save executes the query and returns the updated Risk entity. +func (ruo *RiskUpdateOne) Save(ctx context.Context) (*Risk, error) { + if err := ruo.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, ruo.sqlSave, ruo.mutation, ruo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (ruo *RiskUpdateOne) SaveX(ctx context.Context) *Risk { + node, err := ruo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (ruo *RiskUpdateOne) Exec(ctx context.Context) error { + _, err := ruo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (ruo *RiskUpdateOne) ExecX(ctx context.Context) { + if err := ruo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (ruo *RiskUpdateOne) defaults() error { + if _, ok := ruo.mutation.UpdatedAt(); !ok && !ruo.mutation.UpdatedAtCleared() { + if risk.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized risk.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := risk.UpdateDefaultUpdatedAt() + ruo.mutation.SetUpdatedAt(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (ruo *RiskUpdateOne) check() error { + if v, ok := ruo.mutation.Impact(); ok { + if err := risk.ImpactValidator(v); err != nil { + return &ValidationError{Name: "impact", err: fmt.Errorf(`generated: validator failed for field "Risk.impact": %w`, err)} + } + } + if v, ok := ruo.mutation.Likelihood(); ok { + if err := risk.LikelihoodValidator(v); err != nil { + return &ValidationError{Name: "likelihood", err: fmt.Errorf(`generated: validator failed for field "Risk.likelihood": %w`, err)} + } + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (ruo *RiskUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *RiskUpdateOne { + ruo.modifiers = append(ruo.modifiers, modifiers...) + return ruo +} + +func (ruo *RiskUpdateOne) sqlSave(ctx context.Context) (_node *Risk, err error) { + if err := ruo.check(); err != nil { + return _node, err + } + _spec := sqlgraph.NewUpdateSpec(risk.Table, risk.Columns, sqlgraph.NewFieldSpec(risk.FieldID, field.TypeString)) + id, ok := ruo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "Risk.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := ruo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, risk.FieldID) + for _, f := range fields { + if !risk.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != risk.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := ruo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if ruo.mutation.CreatedAtCleared() { + _spec.ClearField(risk.FieldCreatedAt, field.TypeTime) + } + if value, ok := ruo.mutation.UpdatedAt(); ok { + _spec.SetField(risk.FieldUpdatedAt, field.TypeTime, value) + } + if ruo.mutation.UpdatedAtCleared() { + _spec.ClearField(risk.FieldUpdatedAt, field.TypeTime) + } + if ruo.mutation.CreatedByCleared() { + _spec.ClearField(risk.FieldCreatedBy, field.TypeString) + } + if value, ok := ruo.mutation.UpdatedBy(); ok { + _spec.SetField(risk.FieldUpdatedBy, field.TypeString, value) + } + if ruo.mutation.UpdatedByCleared() { + _spec.ClearField(risk.FieldUpdatedBy, field.TypeString) + } + if value, ok := ruo.mutation.DeletedAt(); ok { + _spec.SetField(risk.FieldDeletedAt, field.TypeTime, value) + } + if ruo.mutation.DeletedAtCleared() { + _spec.ClearField(risk.FieldDeletedAt, field.TypeTime) + } + if value, ok := ruo.mutation.DeletedBy(); ok { + _spec.SetField(risk.FieldDeletedBy, field.TypeString, value) + } + if ruo.mutation.DeletedByCleared() { + _spec.ClearField(risk.FieldDeletedBy, field.TypeString) + } + if value, ok := ruo.mutation.Tags(); ok { + _spec.SetField(risk.FieldTags, field.TypeJSON, value) + } + if value, ok := ruo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, risk.FieldTags, value) + }) + } + if ruo.mutation.TagsCleared() { + _spec.ClearField(risk.FieldTags, field.TypeJSON) + } + if value, ok := ruo.mutation.Name(); ok { + _spec.SetField(risk.FieldName, field.TypeString, value) + } + if value, ok := ruo.mutation.Description(); ok { + _spec.SetField(risk.FieldDescription, field.TypeString, value) + } + if ruo.mutation.DescriptionCleared() { + _spec.ClearField(risk.FieldDescription, field.TypeString) + } + if value, ok := ruo.mutation.Status(); ok { + _spec.SetField(risk.FieldStatus, field.TypeString, value) + } + if ruo.mutation.StatusCleared() { + _spec.ClearField(risk.FieldStatus, field.TypeString) + } + if value, ok := ruo.mutation.RiskType(); ok { + _spec.SetField(risk.FieldRiskType, field.TypeString, value) + } + if ruo.mutation.RiskTypeCleared() { + _spec.ClearField(risk.FieldRiskType, field.TypeString) + } + if value, ok := ruo.mutation.BusinessCosts(); ok { + _spec.SetField(risk.FieldBusinessCosts, field.TypeString, value) + } + if ruo.mutation.BusinessCostsCleared() { + _spec.ClearField(risk.FieldBusinessCosts, field.TypeString) + } + if value, ok := ruo.mutation.Impact(); ok { + _spec.SetField(risk.FieldImpact, field.TypeEnum, value) + } + if ruo.mutation.ImpactCleared() { + _spec.ClearField(risk.FieldImpact, field.TypeEnum) + } + if value, ok := ruo.mutation.Likelihood(); ok { + _spec.SetField(risk.FieldLikelihood, field.TypeEnum, value) + } + if ruo.mutation.LikelihoodCleared() { + _spec.ClearField(risk.FieldLikelihood, field.TypeEnum) + } + if value, ok := ruo.mutation.Mitigation(); ok { + _spec.SetField(risk.FieldMitigation, field.TypeString, value) + } + if ruo.mutation.MitigationCleared() { + _spec.ClearField(risk.FieldMitigation, field.TypeString) + } + if value, ok := ruo.mutation.Satisfies(); ok { + _spec.SetField(risk.FieldSatisfies, field.TypeString, value) + } + if ruo.mutation.SatisfiesCleared() { + _spec.ClearField(risk.FieldSatisfies, field.TypeString) + } + if value, ok := ruo.mutation.Details(); ok { + _spec.SetField(risk.FieldDetails, field.TypeJSON, value) + } + if ruo.mutation.DetailsCleared() { + _spec.ClearField(risk.FieldDetails, field.TypeJSON) + } + if ruo.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ControlTable, + Columns: risk.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ruo.schemaConfig.ControlRisks + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ruo.mutation.RemovedControlIDs(); len(nodes) > 0 && !ruo.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ControlTable, + Columns: risk.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ruo.schemaConfig.ControlRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ruo.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ControlTable, + Columns: risk.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = ruo.schemaConfig.ControlRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if ruo.mutation.ProcedureCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ProcedureTable, + Columns: risk.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ruo.schemaConfig.ProcedureRisks + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ruo.mutation.RemovedProcedureIDs(); len(nodes) > 0 && !ruo.mutation.ProcedureCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ProcedureTable, + Columns: risk.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ruo.schemaConfig.ProcedureRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ruo.mutation.ProcedureIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: risk.ProcedureTable, + Columns: risk.ProcedurePrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = ruo.schemaConfig.ProcedureRisks + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if ruo.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: risk.ActionplansTable, + Columns: risk.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = ruo.schemaConfig.RiskActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ruo.mutation.RemovedActionplansIDs(); len(nodes) > 0 && !ruo.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: risk.ActionplansTable, + Columns: risk.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = ruo.schemaConfig.RiskActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := ruo.mutation.ActionplansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: risk.ActionplansTable, + Columns: risk.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = ruo.schemaConfig.RiskActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = ruo.schemaConfig.Risk + ctx = internal.NewSchemaConfigContext(ctx, ruo.schemaConfig) + _spec.AddModifiers(ruo.modifiers...) + _node = &Risk{config: ruo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, ruo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{risk.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + ruo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/riskhistory.go b/internal/ent/generated/riskhistory.go new file mode 100644 index 00000000..8f2ffee2 --- /dev/null +++ b/internal/ent/generated/riskhistory.go @@ -0,0 +1,335 @@ +// 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/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/pkg/enums" + "github.com/theopenlane/entx/history" +) + +// RiskHistory is the model entity for the RiskHistory schema. +type RiskHistory 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the risk + Name string `json:"name,omitempty"` + // description of the risk + Description string `json:"description,omitempty"` + // status of the risk - mitigated or not, inflight, etc. + Status string `json:"status,omitempty"` + // type of the risk, e.g. strategic, operational, financial, external, etc. + RiskType string `json:"risk_type,omitempty"` + // business costs associated with the risk + BusinessCosts string `json:"business_costs,omitempty"` + // impact of the risk - high, medium, low + Impact enums.RiskImpact `json:"impact,omitempty"` + // likelihood of the risk occurring; unlikely, likely, highly likely + Likelihood enums.RiskLikelihood `json:"likelihood,omitempty"` + // mitigation for the risk + Mitigation string `json:"mitigation,omitempty"` + // which controls are satisfied by the risk + Satisfies string `json:"satisfies,omitempty"` + // json data for the risk document + Details map[string]interface{} `json:"details,omitempty"` + selectValues sql.SelectValues +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*RiskHistory) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case riskhistory.FieldTags, riskhistory.FieldDetails: + values[i] = new([]byte) + case riskhistory.FieldOperation: + values[i] = new(history.OpType) + case riskhistory.FieldID, riskhistory.FieldRef, riskhistory.FieldCreatedBy, riskhistory.FieldUpdatedBy, riskhistory.FieldDeletedBy, riskhistory.FieldMappingID, riskhistory.FieldName, riskhistory.FieldDescription, riskhistory.FieldStatus, riskhistory.FieldRiskType, riskhistory.FieldBusinessCosts, riskhistory.FieldImpact, riskhistory.FieldLikelihood, riskhistory.FieldMitigation, riskhistory.FieldSatisfies: + values[i] = new(sql.NullString) + case riskhistory.FieldHistoryTime, riskhistory.FieldCreatedAt, riskhistory.FieldUpdatedAt, riskhistory.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 RiskHistory fields. +func (rh *RiskHistory) 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 riskhistory.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + rh.ID = value.String + } + case riskhistory.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 { + rh.HistoryTime = value.Time + } + case riskhistory.FieldRef: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field ref", values[i]) + } else if value.Valid { + rh.Ref = value.String + } + case riskhistory.FieldOperation: + if value, ok := values[i].(*history.OpType); !ok { + return fmt.Errorf("unexpected type %T for field operation", values[i]) + } else if value != nil { + rh.Operation = *value + } + case riskhistory.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 { + rh.CreatedAt = value.Time + } + case riskhistory.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 { + rh.UpdatedAt = value.Time + } + case riskhistory.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 { + rh.CreatedBy = value.String + } + case riskhistory.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 { + rh.UpdatedBy = value.String + } + case riskhistory.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 { + rh.DeletedAt = value.Time + } + case riskhistory.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 { + rh.DeletedBy = value.String + } + case riskhistory.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + rh.MappingID = value.String + } + case riskhistory.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, &rh.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case riskhistory.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + rh.Name = value.String + } + case riskhistory.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + rh.Description = value.String + } + case riskhistory.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + rh.Status = value.String + } + case riskhistory.FieldRiskType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field risk_type", values[i]) + } else if value.Valid { + rh.RiskType = value.String + } + case riskhistory.FieldBusinessCosts: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field business_costs", values[i]) + } else if value.Valid { + rh.BusinessCosts = value.String + } + case riskhistory.FieldImpact: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field impact", values[i]) + } else if value.Valid { + rh.Impact = enums.RiskImpact(value.String) + } + case riskhistory.FieldLikelihood: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field likelihood", values[i]) + } else if value.Valid { + rh.Likelihood = enums.RiskLikelihood(value.String) + } + case riskhistory.FieldMitigation: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mitigation", values[i]) + } else if value.Valid { + rh.Mitigation = value.String + } + case riskhistory.FieldSatisfies: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field satisfies", values[i]) + } else if value.Valid { + rh.Satisfies = value.String + } + case riskhistory.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &rh.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + rh.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the RiskHistory. +// This includes values selected through modifiers, order, etc. +func (rh *RiskHistory) Value(name string) (ent.Value, error) { + return rh.selectValues.Get(name) +} + +// Update returns a builder for updating this RiskHistory. +// Note that you need to call RiskHistory.Unwrap() before calling this method if this RiskHistory +// was returned from a transaction, and the transaction was committed or rolled back. +func (rh *RiskHistory) Update() *RiskHistoryUpdateOne { + return NewRiskHistoryClient(rh.config).UpdateOne(rh) +} + +// Unwrap unwraps the RiskHistory 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 (rh *RiskHistory) Unwrap() *RiskHistory { + _tx, ok := rh.config.driver.(*txDriver) + if !ok { + panic("generated: RiskHistory is not a transactional entity") + } + rh.config.driver = _tx.drv + return rh +} + +// String implements the fmt.Stringer. +func (rh *RiskHistory) String() string { + var builder strings.Builder + builder.WriteString("RiskHistory(") + builder.WriteString(fmt.Sprintf("id=%v, ", rh.ID)) + builder.WriteString("history_time=") + builder.WriteString(rh.HistoryTime.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("ref=") + builder.WriteString(rh.Ref) + builder.WriteString(", ") + builder.WriteString("operation=") + builder.WriteString(fmt.Sprintf("%v", rh.Operation)) + builder.WriteString(", ") + builder.WriteString("created_at=") + builder.WriteString(rh.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(rh.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(rh.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(rh.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(rh.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(rh.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(rh.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", rh.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(rh.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(rh.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(rh.Status) + builder.WriteString(", ") + builder.WriteString("risk_type=") + builder.WriteString(rh.RiskType) + builder.WriteString(", ") + builder.WriteString("business_costs=") + builder.WriteString(rh.BusinessCosts) + builder.WriteString(", ") + builder.WriteString("impact=") + builder.WriteString(fmt.Sprintf("%v", rh.Impact)) + builder.WriteString(", ") + builder.WriteString("likelihood=") + builder.WriteString(fmt.Sprintf("%v", rh.Likelihood)) + builder.WriteString(", ") + builder.WriteString("mitigation=") + builder.WriteString(rh.Mitigation) + builder.WriteString(", ") + builder.WriteString("satisfies=") + builder.WriteString(rh.Satisfies) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", rh.Details)) + builder.WriteByte(')') + return builder.String() +} + +// RiskHistories is a parsable slice of RiskHistory. +type RiskHistories []*RiskHistory diff --git a/internal/ent/generated/riskhistory/riskhistory.go b/internal/ent/generated/riskhistory/riskhistory.go new file mode 100644 index 00000000..76a5ab44 --- /dev/null +++ b/internal/ent/generated/riskhistory/riskhistory.go @@ -0,0 +1,271 @@ +// Code generated by ent, DO NOT EDIT. + +package riskhistory + +import ( + "fmt" + "time" + + "entgo.io/ent/dialect/sql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/pkg/enums" + "github.com/theopenlane/entx/history" +) + +const ( + // Label holds the string label denoting the riskhistory type in the database. + Label = "risk_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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldRiskType holds the string denoting the risk_type field in the database. + FieldRiskType = "risk_type" + // FieldBusinessCosts holds the string denoting the business_costs field in the database. + FieldBusinessCosts = "business_costs" + // FieldImpact holds the string denoting the impact field in the database. + FieldImpact = "impact" + // FieldLikelihood holds the string denoting the likelihood field in the database. + FieldLikelihood = "likelihood" + // FieldMitigation holds the string denoting the mitigation field in the database. + FieldMitigation = "mitigation" + // FieldSatisfies holds the string denoting the satisfies field in the database. + FieldSatisfies = "satisfies" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // Table holds the table name of the riskhistory in the database. + Table = "risk_history" +) + +// Columns holds all SQL columns for riskhistory fields. +var Columns = []string{ + FieldID, + FieldHistoryTime, + FieldRef, + FieldOperation, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldRiskType, + FieldBusinessCosts, + FieldImpact, + FieldLikelihood, + FieldMitigation, + FieldSatisfies, + FieldDetails, +} + +// 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 +} + +var ( + // 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 + // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. + UpdateDefaultUpdatedAt func() time.Time + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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("riskhistory: invalid enum value for operation field: %q", o) + } +} + +// ImpactValidator is a validator for the "impact" field enum values. It is called by the builders before save. +func ImpactValidator(i enums.RiskImpact) error { + switch i.String() { + case "LOW", "MODERATE", "HIGH": + return nil + default: + return fmt.Errorf("riskhistory: invalid enum value for impact field: %q", i) + } +} + +// LikelihoodValidator is a validator for the "likelihood" field enum values. It is called by the builders before save. +func LikelihoodValidator(l enums.RiskLikelihood) error { + switch l.String() { + case "UNLIKELY", "LIKELY", "HIGHLY_LIKELY": + return nil + default: + return fmt.Errorf("riskhistory: invalid enum value for likelihood field: %q", l) + } +} + +// OrderOption defines the ordering options for the RiskHistory 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByRiskType orders the results by the risk_type field. +func ByRiskType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldRiskType, opts...).ToFunc() +} + +// ByBusinessCosts orders the results by the business_costs field. +func ByBusinessCosts(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldBusinessCosts, opts...).ToFunc() +} + +// ByImpact orders the results by the impact field. +func ByImpact(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldImpact, opts...).ToFunc() +} + +// ByLikelihood orders the results by the likelihood field. +func ByLikelihood(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldLikelihood, opts...).ToFunc() +} + +// ByMitigation orders the results by the mitigation field. +func ByMitigation(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMitigation, opts...).ToFunc() +} + +// BySatisfies orders the results by the satisfies field. +func BySatisfies(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSatisfies, 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.RiskImpact must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.RiskImpact)(nil) + // enums.RiskImpact must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.RiskImpact)(nil) +) + +var ( + // enums.RiskLikelihood must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.RiskLikelihood)(nil) + // enums.RiskLikelihood must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.RiskLikelihood)(nil) +) diff --git a/internal/ent/generated/riskhistory/where.go b/internal/ent/generated/riskhistory/where.go new file mode 100644 index 00000000..d00468d7 --- /dev/null +++ b/internal/ent/generated/riskhistory/where.go @@ -0,0 +1,1352 @@ +// Code generated by ent, DO NOT EDIT. + +package riskhistory + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/pkg/enums" + "github.com/theopenlane/entx/history" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.RiskHistory { + return predicate.RiskHistory(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.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// Ref applies equality check predicate on the "ref" field. It's identical to RefEQ. +func Ref(v string) predicate.RiskHistory { + return predicate.RiskHistory(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.RiskHistory { + return predicate.RiskHistory(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.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldStatus, v)) +} + +// RiskType applies equality check predicate on the "risk_type" field. It's identical to RiskTypeEQ. +func RiskType(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldRiskType, v)) +} + +// BusinessCosts applies equality check predicate on the "business_costs" field. It's identical to BusinessCostsEQ. +func BusinessCosts(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldBusinessCosts, v)) +} + +// Mitigation applies equality check predicate on the "mitigation" field. It's identical to MitigationEQ. +func Mitigation(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldMitigation, v)) +} + +// Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ. +func Satisfies(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldSatisfies, v)) +} + +// HistoryTimeEQ applies the EQ predicate on the "history_time" field. +func HistoryTimeEQ(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// HistoryTimeNEQ applies the NEQ predicate on the "history_time" field. +func HistoryTimeNEQ(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldHistoryTime, v)) +} + +// HistoryTimeIn applies the In predicate on the "history_time" field. +func HistoryTimeIn(vs ...time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeNotIn applies the NotIn predicate on the "history_time" field. +func HistoryTimeNotIn(vs ...time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeGT applies the GT predicate on the "history_time" field. +func HistoryTimeGT(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldHistoryTime, v)) +} + +// HistoryTimeGTE applies the GTE predicate on the "history_time" field. +func HistoryTimeGTE(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldHistoryTime, v)) +} + +// HistoryTimeLT applies the LT predicate on the "history_time" field. +func HistoryTimeLT(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldHistoryTime, v)) +} + +// HistoryTimeLTE applies the LTE predicate on the "history_time" field. +func HistoryTimeLTE(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldHistoryTime, v)) +} + +// RefEQ applies the EQ predicate on the "ref" field. +func RefEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldRef, v)) +} + +// RefNEQ applies the NEQ predicate on the "ref" field. +func RefNEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldRef, v)) +} + +// RefIn applies the In predicate on the "ref" field. +func RefIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldRef, vs...)) +} + +// RefNotIn applies the NotIn predicate on the "ref" field. +func RefNotIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldRef, vs...)) +} + +// RefGT applies the GT predicate on the "ref" field. +func RefGT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldRef, v)) +} + +// RefGTE applies the GTE predicate on the "ref" field. +func RefGTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldRef, v)) +} + +// RefLT applies the LT predicate on the "ref" field. +func RefLT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldRef, v)) +} + +// RefLTE applies the LTE predicate on the "ref" field. +func RefLTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldRef, v)) +} + +// RefContains applies the Contains predicate on the "ref" field. +func RefContains(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContains(FieldRef, v)) +} + +// RefHasPrefix applies the HasPrefix predicate on the "ref" field. +func RefHasPrefix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasPrefix(FieldRef, v)) +} + +// RefHasSuffix applies the HasSuffix predicate on the "ref" field. +func RefHasSuffix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasSuffix(FieldRef, v)) +} + +// RefIsNil applies the IsNil predicate on the "ref" field. +func RefIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldRef)) +} + +// RefNotNil applies the NotNil predicate on the "ref" field. +func RefNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldRef)) +} + +// RefEqualFold applies the EqualFold predicate on the "ref" field. +func RefEqualFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldRef, v)) +} + +// RefContainsFold applies the ContainsFold predicate on the "ref" field. +func RefContainsFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContainsFold(FieldRef, v)) +} + +// OperationEQ applies the EQ predicate on the "operation" field. +func OperationEQ(v history.OpType) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldOperation, v)) +} + +// OperationNEQ applies the NEQ predicate on the "operation" field. +func OperationNEQ(v history.OpType) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldOperation, v)) +} + +// OperationIn applies the In predicate on the "operation" field. +func OperationIn(vs ...history.OpType) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldOperation, vs...)) +} + +// OperationNotIn applies the NotIn predicate on the "operation" field. +func OperationNotIn(vs ...history.OpType) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldOperation, vs...)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContainsFold(FieldStatus, v)) +} + +// RiskTypeEQ applies the EQ predicate on the "risk_type" field. +func RiskTypeEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldRiskType, v)) +} + +// RiskTypeNEQ applies the NEQ predicate on the "risk_type" field. +func RiskTypeNEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldRiskType, v)) +} + +// RiskTypeIn applies the In predicate on the "risk_type" field. +func RiskTypeIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldRiskType, vs...)) +} + +// RiskTypeNotIn applies the NotIn predicate on the "risk_type" field. +func RiskTypeNotIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldRiskType, vs...)) +} + +// RiskTypeGT applies the GT predicate on the "risk_type" field. +func RiskTypeGT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldRiskType, v)) +} + +// RiskTypeGTE applies the GTE predicate on the "risk_type" field. +func RiskTypeGTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldRiskType, v)) +} + +// RiskTypeLT applies the LT predicate on the "risk_type" field. +func RiskTypeLT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldRiskType, v)) +} + +// RiskTypeLTE applies the LTE predicate on the "risk_type" field. +func RiskTypeLTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldRiskType, v)) +} + +// RiskTypeContains applies the Contains predicate on the "risk_type" field. +func RiskTypeContains(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContains(FieldRiskType, v)) +} + +// RiskTypeHasPrefix applies the HasPrefix predicate on the "risk_type" field. +func RiskTypeHasPrefix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasPrefix(FieldRiskType, v)) +} + +// RiskTypeHasSuffix applies the HasSuffix predicate on the "risk_type" field. +func RiskTypeHasSuffix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasSuffix(FieldRiskType, v)) +} + +// RiskTypeIsNil applies the IsNil predicate on the "risk_type" field. +func RiskTypeIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldRiskType)) +} + +// RiskTypeNotNil applies the NotNil predicate on the "risk_type" field. +func RiskTypeNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldRiskType)) +} + +// RiskTypeEqualFold applies the EqualFold predicate on the "risk_type" field. +func RiskTypeEqualFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldRiskType, v)) +} + +// RiskTypeContainsFold applies the ContainsFold predicate on the "risk_type" field. +func RiskTypeContainsFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContainsFold(FieldRiskType, v)) +} + +// BusinessCostsEQ applies the EQ predicate on the "business_costs" field. +func BusinessCostsEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldBusinessCosts, v)) +} + +// BusinessCostsNEQ applies the NEQ predicate on the "business_costs" field. +func BusinessCostsNEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldBusinessCosts, v)) +} + +// BusinessCostsIn applies the In predicate on the "business_costs" field. +func BusinessCostsIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldBusinessCosts, vs...)) +} + +// BusinessCostsNotIn applies the NotIn predicate on the "business_costs" field. +func BusinessCostsNotIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldBusinessCosts, vs...)) +} + +// BusinessCostsGT applies the GT predicate on the "business_costs" field. +func BusinessCostsGT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldBusinessCosts, v)) +} + +// BusinessCostsGTE applies the GTE predicate on the "business_costs" field. +func BusinessCostsGTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldBusinessCosts, v)) +} + +// BusinessCostsLT applies the LT predicate on the "business_costs" field. +func BusinessCostsLT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldBusinessCosts, v)) +} + +// BusinessCostsLTE applies the LTE predicate on the "business_costs" field. +func BusinessCostsLTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldBusinessCosts, v)) +} + +// BusinessCostsContains applies the Contains predicate on the "business_costs" field. +func BusinessCostsContains(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContains(FieldBusinessCosts, v)) +} + +// BusinessCostsHasPrefix applies the HasPrefix predicate on the "business_costs" field. +func BusinessCostsHasPrefix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasPrefix(FieldBusinessCosts, v)) +} + +// BusinessCostsHasSuffix applies the HasSuffix predicate on the "business_costs" field. +func BusinessCostsHasSuffix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasSuffix(FieldBusinessCosts, v)) +} + +// BusinessCostsIsNil applies the IsNil predicate on the "business_costs" field. +func BusinessCostsIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldBusinessCosts)) +} + +// BusinessCostsNotNil applies the NotNil predicate on the "business_costs" field. +func BusinessCostsNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldBusinessCosts)) +} + +// BusinessCostsEqualFold applies the EqualFold predicate on the "business_costs" field. +func BusinessCostsEqualFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldBusinessCosts, v)) +} + +// BusinessCostsContainsFold applies the ContainsFold predicate on the "business_costs" field. +func BusinessCostsContainsFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContainsFold(FieldBusinessCosts, v)) +} + +// ImpactEQ applies the EQ predicate on the "impact" field. +func ImpactEQ(v enums.RiskImpact) predicate.RiskHistory { + vc := v + return predicate.RiskHistory(sql.FieldEQ(FieldImpact, vc)) +} + +// ImpactNEQ applies the NEQ predicate on the "impact" field. +func ImpactNEQ(v enums.RiskImpact) predicate.RiskHistory { + vc := v + return predicate.RiskHistory(sql.FieldNEQ(FieldImpact, vc)) +} + +// ImpactIn applies the In predicate on the "impact" field. +func ImpactIn(vs ...enums.RiskImpact) predicate.RiskHistory { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.RiskHistory(sql.FieldIn(FieldImpact, v...)) +} + +// ImpactNotIn applies the NotIn predicate on the "impact" field. +func ImpactNotIn(vs ...enums.RiskImpact) predicate.RiskHistory { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.RiskHistory(sql.FieldNotIn(FieldImpact, v...)) +} + +// ImpactIsNil applies the IsNil predicate on the "impact" field. +func ImpactIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldImpact)) +} + +// ImpactNotNil applies the NotNil predicate on the "impact" field. +func ImpactNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldImpact)) +} + +// LikelihoodEQ applies the EQ predicate on the "likelihood" field. +func LikelihoodEQ(v enums.RiskLikelihood) predicate.RiskHistory { + vc := v + return predicate.RiskHistory(sql.FieldEQ(FieldLikelihood, vc)) +} + +// LikelihoodNEQ applies the NEQ predicate on the "likelihood" field. +func LikelihoodNEQ(v enums.RiskLikelihood) predicate.RiskHistory { + vc := v + return predicate.RiskHistory(sql.FieldNEQ(FieldLikelihood, vc)) +} + +// LikelihoodIn applies the In predicate on the "likelihood" field. +func LikelihoodIn(vs ...enums.RiskLikelihood) predicate.RiskHistory { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.RiskHistory(sql.FieldIn(FieldLikelihood, v...)) +} + +// LikelihoodNotIn applies the NotIn predicate on the "likelihood" field. +func LikelihoodNotIn(vs ...enums.RiskLikelihood) predicate.RiskHistory { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.RiskHistory(sql.FieldNotIn(FieldLikelihood, v...)) +} + +// LikelihoodIsNil applies the IsNil predicate on the "likelihood" field. +func LikelihoodIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldLikelihood)) +} + +// LikelihoodNotNil applies the NotNil predicate on the "likelihood" field. +func LikelihoodNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldLikelihood)) +} + +// MitigationEQ applies the EQ predicate on the "mitigation" field. +func MitigationEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldMitigation, v)) +} + +// MitigationNEQ applies the NEQ predicate on the "mitigation" field. +func MitigationNEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldMitigation, v)) +} + +// MitigationIn applies the In predicate on the "mitigation" field. +func MitigationIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldMitigation, vs...)) +} + +// MitigationNotIn applies the NotIn predicate on the "mitigation" field. +func MitigationNotIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldMitigation, vs...)) +} + +// MitigationGT applies the GT predicate on the "mitigation" field. +func MitigationGT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldMitigation, v)) +} + +// MitigationGTE applies the GTE predicate on the "mitigation" field. +func MitigationGTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldMitigation, v)) +} + +// MitigationLT applies the LT predicate on the "mitigation" field. +func MitigationLT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldMitigation, v)) +} + +// MitigationLTE applies the LTE predicate on the "mitigation" field. +func MitigationLTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldMitigation, v)) +} + +// MitigationContains applies the Contains predicate on the "mitigation" field. +func MitigationContains(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContains(FieldMitigation, v)) +} + +// MitigationHasPrefix applies the HasPrefix predicate on the "mitigation" field. +func MitigationHasPrefix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasPrefix(FieldMitigation, v)) +} + +// MitigationHasSuffix applies the HasSuffix predicate on the "mitigation" field. +func MitigationHasSuffix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasSuffix(FieldMitigation, v)) +} + +// MitigationIsNil applies the IsNil predicate on the "mitigation" field. +func MitigationIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldMitigation)) +} + +// MitigationNotNil applies the NotNil predicate on the "mitigation" field. +func MitigationNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldMitigation)) +} + +// MitigationEqualFold applies the EqualFold predicate on the "mitigation" field. +func MitigationEqualFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldMitigation, v)) +} + +// MitigationContainsFold applies the ContainsFold predicate on the "mitigation" field. +func MitigationContainsFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContainsFold(FieldMitigation, v)) +} + +// SatisfiesEQ applies the EQ predicate on the "satisfies" field. +func SatisfiesEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEQ(FieldSatisfies, v)) +} + +// SatisfiesNEQ applies the NEQ predicate on the "satisfies" field. +func SatisfiesNEQ(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNEQ(FieldSatisfies, v)) +} + +// SatisfiesIn applies the In predicate on the "satisfies" field. +func SatisfiesIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIn(FieldSatisfies, vs...)) +} + +// SatisfiesNotIn applies the NotIn predicate on the "satisfies" field. +func SatisfiesNotIn(vs ...string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotIn(FieldSatisfies, vs...)) +} + +// SatisfiesGT applies the GT predicate on the "satisfies" field. +func SatisfiesGT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGT(FieldSatisfies, v)) +} + +// SatisfiesGTE applies the GTE predicate on the "satisfies" field. +func SatisfiesGTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldGTE(FieldSatisfies, v)) +} + +// SatisfiesLT applies the LT predicate on the "satisfies" field. +func SatisfiesLT(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLT(FieldSatisfies, v)) +} + +// SatisfiesLTE applies the LTE predicate on the "satisfies" field. +func SatisfiesLTE(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldLTE(FieldSatisfies, v)) +} + +// SatisfiesContains applies the Contains predicate on the "satisfies" field. +func SatisfiesContains(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContains(FieldSatisfies, v)) +} + +// SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field. +func SatisfiesHasPrefix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasPrefix(FieldSatisfies, v)) +} + +// SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field. +func SatisfiesHasSuffix(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldHasSuffix(FieldSatisfies, v)) +} + +// SatisfiesIsNil applies the IsNil predicate on the "satisfies" field. +func SatisfiesIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldSatisfies)) +} + +// SatisfiesNotNil applies the NotNil predicate on the "satisfies" field. +func SatisfiesNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldSatisfies)) +} + +// SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field. +func SatisfiesEqualFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldEqualFold(FieldSatisfies, v)) +} + +// SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field. +func SatisfiesContainsFold(v string) predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldContainsFold(FieldSatisfies, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.RiskHistory { + return predicate.RiskHistory(sql.FieldNotNull(FieldDetails)) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.RiskHistory) predicate.RiskHistory { + return predicate.RiskHistory(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.RiskHistory) predicate.RiskHistory { + return predicate.RiskHistory(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.RiskHistory) predicate.RiskHistory { + return predicate.RiskHistory(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/riskhistory_create.go b/internal/ent/generated/riskhistory_create.go new file mode 100644 index 00000000..75f4ae81 --- /dev/null +++ b/internal/ent/generated/riskhistory_create.go @@ -0,0 +1,596 @@ +// 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/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/pkg/enums" + "github.com/theopenlane/entx/history" +) + +// RiskHistoryCreate is the builder for creating a RiskHistory entity. +type RiskHistoryCreate struct { + config + mutation *RiskHistoryMutation + hooks []Hook +} + +// SetHistoryTime sets the "history_time" field. +func (rhc *RiskHistoryCreate) SetHistoryTime(t time.Time) *RiskHistoryCreate { + rhc.mutation.SetHistoryTime(t) + return rhc +} + +// SetNillableHistoryTime sets the "history_time" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableHistoryTime(t *time.Time) *RiskHistoryCreate { + if t != nil { + rhc.SetHistoryTime(*t) + } + return rhc +} + +// SetRef sets the "ref" field. +func (rhc *RiskHistoryCreate) SetRef(s string) *RiskHistoryCreate { + rhc.mutation.SetRef(s) + return rhc +} + +// SetNillableRef sets the "ref" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableRef(s *string) *RiskHistoryCreate { + if s != nil { + rhc.SetRef(*s) + } + return rhc +} + +// SetOperation sets the "operation" field. +func (rhc *RiskHistoryCreate) SetOperation(ht history.OpType) *RiskHistoryCreate { + rhc.mutation.SetOperation(ht) + return rhc +} + +// SetCreatedAt sets the "created_at" field. +func (rhc *RiskHistoryCreate) SetCreatedAt(t time.Time) *RiskHistoryCreate { + rhc.mutation.SetCreatedAt(t) + return rhc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableCreatedAt(t *time.Time) *RiskHistoryCreate { + if t != nil { + rhc.SetCreatedAt(*t) + } + return rhc +} + +// SetUpdatedAt sets the "updated_at" field. +func (rhc *RiskHistoryCreate) SetUpdatedAt(t time.Time) *RiskHistoryCreate { + rhc.mutation.SetUpdatedAt(t) + return rhc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableUpdatedAt(t *time.Time) *RiskHistoryCreate { + if t != nil { + rhc.SetUpdatedAt(*t) + } + return rhc +} + +// SetCreatedBy sets the "created_by" field. +func (rhc *RiskHistoryCreate) SetCreatedBy(s string) *RiskHistoryCreate { + rhc.mutation.SetCreatedBy(s) + return rhc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableCreatedBy(s *string) *RiskHistoryCreate { + if s != nil { + rhc.SetCreatedBy(*s) + } + return rhc +} + +// SetUpdatedBy sets the "updated_by" field. +func (rhc *RiskHistoryCreate) SetUpdatedBy(s string) *RiskHistoryCreate { + rhc.mutation.SetUpdatedBy(s) + return rhc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableUpdatedBy(s *string) *RiskHistoryCreate { + if s != nil { + rhc.SetUpdatedBy(*s) + } + return rhc +} + +// SetDeletedAt sets the "deleted_at" field. +func (rhc *RiskHistoryCreate) SetDeletedAt(t time.Time) *RiskHistoryCreate { + rhc.mutation.SetDeletedAt(t) + return rhc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableDeletedAt(t *time.Time) *RiskHistoryCreate { + if t != nil { + rhc.SetDeletedAt(*t) + } + return rhc +} + +// SetDeletedBy sets the "deleted_by" field. +func (rhc *RiskHistoryCreate) SetDeletedBy(s string) *RiskHistoryCreate { + rhc.mutation.SetDeletedBy(s) + return rhc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableDeletedBy(s *string) *RiskHistoryCreate { + if s != nil { + rhc.SetDeletedBy(*s) + } + return rhc +} + +// SetMappingID sets the "mapping_id" field. +func (rhc *RiskHistoryCreate) SetMappingID(s string) *RiskHistoryCreate { + rhc.mutation.SetMappingID(s) + return rhc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableMappingID(s *string) *RiskHistoryCreate { + if s != nil { + rhc.SetMappingID(*s) + } + return rhc +} + +// SetTags sets the "tags" field. +func (rhc *RiskHistoryCreate) SetTags(s []string) *RiskHistoryCreate { + rhc.mutation.SetTags(s) + return rhc +} + +// SetName sets the "name" field. +func (rhc *RiskHistoryCreate) SetName(s string) *RiskHistoryCreate { + rhc.mutation.SetName(s) + return rhc +} + +// SetDescription sets the "description" field. +func (rhc *RiskHistoryCreate) SetDescription(s string) *RiskHistoryCreate { + rhc.mutation.SetDescription(s) + return rhc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableDescription(s *string) *RiskHistoryCreate { + if s != nil { + rhc.SetDescription(*s) + } + return rhc +} + +// SetStatus sets the "status" field. +func (rhc *RiskHistoryCreate) SetStatus(s string) *RiskHistoryCreate { + rhc.mutation.SetStatus(s) + return rhc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableStatus(s *string) *RiskHistoryCreate { + if s != nil { + rhc.SetStatus(*s) + } + return rhc +} + +// SetRiskType sets the "risk_type" field. +func (rhc *RiskHistoryCreate) SetRiskType(s string) *RiskHistoryCreate { + rhc.mutation.SetRiskType(s) + return rhc +} + +// SetNillableRiskType sets the "risk_type" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableRiskType(s *string) *RiskHistoryCreate { + if s != nil { + rhc.SetRiskType(*s) + } + return rhc +} + +// SetBusinessCosts sets the "business_costs" field. +func (rhc *RiskHistoryCreate) SetBusinessCosts(s string) *RiskHistoryCreate { + rhc.mutation.SetBusinessCosts(s) + return rhc +} + +// SetNillableBusinessCosts sets the "business_costs" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableBusinessCosts(s *string) *RiskHistoryCreate { + if s != nil { + rhc.SetBusinessCosts(*s) + } + return rhc +} + +// SetImpact sets the "impact" field. +func (rhc *RiskHistoryCreate) SetImpact(ei enums.RiskImpact) *RiskHistoryCreate { + rhc.mutation.SetImpact(ei) + return rhc +} + +// SetNillableImpact sets the "impact" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableImpact(ei *enums.RiskImpact) *RiskHistoryCreate { + if ei != nil { + rhc.SetImpact(*ei) + } + return rhc +} + +// SetLikelihood sets the "likelihood" field. +func (rhc *RiskHistoryCreate) SetLikelihood(el enums.RiskLikelihood) *RiskHistoryCreate { + rhc.mutation.SetLikelihood(el) + return rhc +} + +// SetNillableLikelihood sets the "likelihood" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableLikelihood(el *enums.RiskLikelihood) *RiskHistoryCreate { + if el != nil { + rhc.SetLikelihood(*el) + } + return rhc +} + +// SetMitigation sets the "mitigation" field. +func (rhc *RiskHistoryCreate) SetMitigation(s string) *RiskHistoryCreate { + rhc.mutation.SetMitigation(s) + return rhc +} + +// SetNillableMitigation sets the "mitigation" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableMitigation(s *string) *RiskHistoryCreate { + if s != nil { + rhc.SetMitigation(*s) + } + return rhc +} + +// SetSatisfies sets the "satisfies" field. +func (rhc *RiskHistoryCreate) SetSatisfies(s string) *RiskHistoryCreate { + rhc.mutation.SetSatisfies(s) + return rhc +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableSatisfies(s *string) *RiskHistoryCreate { + if s != nil { + rhc.SetSatisfies(*s) + } + return rhc +} + +// SetDetails sets the "details" field. +func (rhc *RiskHistoryCreate) SetDetails(m map[string]interface{}) *RiskHistoryCreate { + rhc.mutation.SetDetails(m) + return rhc +} + +// SetID sets the "id" field. +func (rhc *RiskHistoryCreate) SetID(s string) *RiskHistoryCreate { + rhc.mutation.SetID(s) + return rhc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (rhc *RiskHistoryCreate) SetNillableID(s *string) *RiskHistoryCreate { + if s != nil { + rhc.SetID(*s) + } + return rhc +} + +// Mutation returns the RiskHistoryMutation object of the builder. +func (rhc *RiskHistoryCreate) Mutation() *RiskHistoryMutation { + return rhc.mutation +} + +// Save creates the RiskHistory in the database. +func (rhc *RiskHistoryCreate) Save(ctx context.Context) (*RiskHistory, error) { + rhc.defaults() + return withHooks(ctx, rhc.sqlSave, rhc.mutation, rhc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (rhc *RiskHistoryCreate) SaveX(ctx context.Context) *RiskHistory { + v, err := rhc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (rhc *RiskHistoryCreate) Exec(ctx context.Context) error { + _, err := rhc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (rhc *RiskHistoryCreate) ExecX(ctx context.Context) { + if err := rhc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (rhc *RiskHistoryCreate) defaults() { + if _, ok := rhc.mutation.HistoryTime(); !ok { + v := riskhistory.DefaultHistoryTime() + rhc.mutation.SetHistoryTime(v) + } + if _, ok := rhc.mutation.CreatedAt(); !ok { + v := riskhistory.DefaultCreatedAt() + rhc.mutation.SetCreatedAt(v) + } + if _, ok := rhc.mutation.UpdatedAt(); !ok { + v := riskhistory.DefaultUpdatedAt() + rhc.mutation.SetUpdatedAt(v) + } + if _, ok := rhc.mutation.MappingID(); !ok { + v := riskhistory.DefaultMappingID() + rhc.mutation.SetMappingID(v) + } + if _, ok := rhc.mutation.Tags(); !ok { + v := riskhistory.DefaultTags + rhc.mutation.SetTags(v) + } + if _, ok := rhc.mutation.ID(); !ok { + v := riskhistory.DefaultID() + rhc.mutation.SetID(v) + } +} + +// check runs all checks and user-defined validators on the builder. +func (rhc *RiskHistoryCreate) check() error { + if _, ok := rhc.mutation.HistoryTime(); !ok { + return &ValidationError{Name: "history_time", err: errors.New(`generated: missing required field "RiskHistory.history_time"`)} + } + if _, ok := rhc.mutation.Operation(); !ok { + return &ValidationError{Name: "operation", err: errors.New(`generated: missing required field "RiskHistory.operation"`)} + } + if v, ok := rhc.mutation.Operation(); ok { + if err := riskhistory.OperationValidator(v); err != nil { + return &ValidationError{Name: "operation", err: fmt.Errorf(`generated: validator failed for field "RiskHistory.operation": %w`, err)} + } + } + if _, ok := rhc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "RiskHistory.mapping_id"`)} + } + if _, ok := rhc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "RiskHistory.name"`)} + } + if v, ok := rhc.mutation.Impact(); ok { + if err := riskhistory.ImpactValidator(v); err != nil { + return &ValidationError{Name: "impact", err: fmt.Errorf(`generated: validator failed for field "RiskHistory.impact": %w`, err)} + } + } + if v, ok := rhc.mutation.Likelihood(); ok { + if err := riskhistory.LikelihoodValidator(v); err != nil { + return &ValidationError{Name: "likelihood", err: fmt.Errorf(`generated: validator failed for field "RiskHistory.likelihood": %w`, err)} + } + } + return nil +} + +func (rhc *RiskHistoryCreate) sqlSave(ctx context.Context) (*RiskHistory, error) { + if err := rhc.check(); err != nil { + return nil, err + } + _node, _spec := rhc.createSpec() + if err := sqlgraph.CreateNode(ctx, rhc.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 RiskHistory.ID type: %T", _spec.ID.Value) + } + } + rhc.mutation.id = &_node.ID + rhc.mutation.done = true + return _node, nil +} + +func (rhc *RiskHistoryCreate) createSpec() (*RiskHistory, *sqlgraph.CreateSpec) { + var ( + _node = &RiskHistory{config: rhc.config} + _spec = sqlgraph.NewCreateSpec(riskhistory.Table, sqlgraph.NewFieldSpec(riskhistory.FieldID, field.TypeString)) + ) + _spec.Schema = rhc.schemaConfig.RiskHistory + if id, ok := rhc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := rhc.mutation.HistoryTime(); ok { + _spec.SetField(riskhistory.FieldHistoryTime, field.TypeTime, value) + _node.HistoryTime = value + } + if value, ok := rhc.mutation.Ref(); ok { + _spec.SetField(riskhistory.FieldRef, field.TypeString, value) + _node.Ref = value + } + if value, ok := rhc.mutation.Operation(); ok { + _spec.SetField(riskhistory.FieldOperation, field.TypeEnum, value) + _node.Operation = value + } + if value, ok := rhc.mutation.CreatedAt(); ok { + _spec.SetField(riskhistory.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := rhc.mutation.UpdatedAt(); ok { + _spec.SetField(riskhistory.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := rhc.mutation.CreatedBy(); ok { + _spec.SetField(riskhistory.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := rhc.mutation.UpdatedBy(); ok { + _spec.SetField(riskhistory.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := rhc.mutation.DeletedAt(); ok { + _spec.SetField(riskhistory.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := rhc.mutation.DeletedBy(); ok { + _spec.SetField(riskhistory.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := rhc.mutation.MappingID(); ok { + _spec.SetField(riskhistory.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := rhc.mutation.Tags(); ok { + _spec.SetField(riskhistory.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := rhc.mutation.Name(); ok { + _spec.SetField(riskhistory.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := rhc.mutation.Description(); ok { + _spec.SetField(riskhistory.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := rhc.mutation.Status(); ok { + _spec.SetField(riskhistory.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := rhc.mutation.RiskType(); ok { + _spec.SetField(riskhistory.FieldRiskType, field.TypeString, value) + _node.RiskType = value + } + if value, ok := rhc.mutation.BusinessCosts(); ok { + _spec.SetField(riskhistory.FieldBusinessCosts, field.TypeString, value) + _node.BusinessCosts = value + } + if value, ok := rhc.mutation.Impact(); ok { + _spec.SetField(riskhistory.FieldImpact, field.TypeEnum, value) + _node.Impact = value + } + if value, ok := rhc.mutation.Likelihood(); ok { + _spec.SetField(riskhistory.FieldLikelihood, field.TypeEnum, value) + _node.Likelihood = value + } + if value, ok := rhc.mutation.Mitigation(); ok { + _spec.SetField(riskhistory.FieldMitigation, field.TypeString, value) + _node.Mitigation = value + } + if value, ok := rhc.mutation.Satisfies(); ok { + _spec.SetField(riskhistory.FieldSatisfies, field.TypeString, value) + _node.Satisfies = value + } + if value, ok := rhc.mutation.Details(); ok { + _spec.SetField(riskhistory.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + return _node, _spec +} + +// RiskHistoryCreateBulk is the builder for creating many RiskHistory entities in bulk. +type RiskHistoryCreateBulk struct { + config + err error + builders []*RiskHistoryCreate +} + +// Save creates the RiskHistory entities in the database. +func (rhcb *RiskHistoryCreateBulk) Save(ctx context.Context) ([]*RiskHistory, error) { + if rhcb.err != nil { + return nil, rhcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(rhcb.builders)) + nodes := make([]*RiskHistory, len(rhcb.builders)) + mutators := make([]Mutator, len(rhcb.builders)) + for i := range rhcb.builders { + func(i int, root context.Context) { + builder := rhcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*RiskHistoryMutation) + 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, rhcb.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, rhcb.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, rhcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (rhcb *RiskHistoryCreateBulk) SaveX(ctx context.Context) []*RiskHistory { + v, err := rhcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (rhcb *RiskHistoryCreateBulk) Exec(ctx context.Context) error { + _, err := rhcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (rhcb *RiskHistoryCreateBulk) ExecX(ctx context.Context) { + if err := rhcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/riskhistory_delete.go b/internal/ent/generated/riskhistory_delete.go new file mode 100644 index 00000000..10e6c3d8 --- /dev/null +++ b/internal/ent/generated/riskhistory_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" +) + +// RiskHistoryDelete is the builder for deleting a RiskHistory entity. +type RiskHistoryDelete struct { + config + hooks []Hook + mutation *RiskHistoryMutation +} + +// Where appends a list predicates to the RiskHistoryDelete builder. +func (rhd *RiskHistoryDelete) Where(ps ...predicate.RiskHistory) *RiskHistoryDelete { + rhd.mutation.Where(ps...) + return rhd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (rhd *RiskHistoryDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, rhd.sqlExec, rhd.mutation, rhd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (rhd *RiskHistoryDelete) ExecX(ctx context.Context) int { + n, err := rhd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (rhd *RiskHistoryDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(riskhistory.Table, sqlgraph.NewFieldSpec(riskhistory.FieldID, field.TypeString)) + _spec.Node.Schema = rhd.schemaConfig.RiskHistory + ctx = internal.NewSchemaConfigContext(ctx, rhd.schemaConfig) + if ps := rhd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, rhd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + rhd.mutation.done = true + return affected, err +} + +// RiskHistoryDeleteOne is the builder for deleting a single RiskHistory entity. +type RiskHistoryDeleteOne struct { + rhd *RiskHistoryDelete +} + +// Where appends a list predicates to the RiskHistoryDelete builder. +func (rhdo *RiskHistoryDeleteOne) Where(ps ...predicate.RiskHistory) *RiskHistoryDeleteOne { + rhdo.rhd.mutation.Where(ps...) + return rhdo +} + +// Exec executes the deletion query. +func (rhdo *RiskHistoryDeleteOne) Exec(ctx context.Context) error { + n, err := rhdo.rhd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{riskhistory.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (rhdo *RiskHistoryDeleteOne) ExecX(ctx context.Context) { + if err := rhdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/riskhistory_query.go b/internal/ent/generated/riskhistory_query.go new file mode 100644 index 00000000..c531019e --- /dev/null +++ b/internal/ent/generated/riskhistory_query.go @@ -0,0 +1,565 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "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/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// RiskHistoryQuery is the builder for querying RiskHistory entities. +type RiskHistoryQuery struct { + config + ctx *QueryContext + order []riskhistory.OrderOption + inters []Interceptor + predicates []predicate.RiskHistory + loadTotal []func(context.Context, []*RiskHistory) 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 RiskHistoryQuery builder. +func (rhq *RiskHistoryQuery) Where(ps ...predicate.RiskHistory) *RiskHistoryQuery { + rhq.predicates = append(rhq.predicates, ps...) + return rhq +} + +// Limit the number of records to be returned by this query. +func (rhq *RiskHistoryQuery) Limit(limit int) *RiskHistoryQuery { + rhq.ctx.Limit = &limit + return rhq +} + +// Offset to start from. +func (rhq *RiskHistoryQuery) Offset(offset int) *RiskHistoryQuery { + rhq.ctx.Offset = &offset + return rhq +} + +// 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 (rhq *RiskHistoryQuery) Unique(unique bool) *RiskHistoryQuery { + rhq.ctx.Unique = &unique + return rhq +} + +// Order specifies how the records should be ordered. +func (rhq *RiskHistoryQuery) Order(o ...riskhistory.OrderOption) *RiskHistoryQuery { + rhq.order = append(rhq.order, o...) + return rhq +} + +// First returns the first RiskHistory entity from the query. +// Returns a *NotFoundError when no RiskHistory was found. +func (rhq *RiskHistoryQuery) First(ctx context.Context) (*RiskHistory, error) { + nodes, err := rhq.Limit(1).All(setContextOp(ctx, rhq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{riskhistory.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (rhq *RiskHistoryQuery) FirstX(ctx context.Context) *RiskHistory { + node, err := rhq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first RiskHistory ID from the query. +// Returns a *NotFoundError when no RiskHistory ID was found. +func (rhq *RiskHistoryQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = rhq.Limit(1).IDs(setContextOp(ctx, rhq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{riskhistory.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (rhq *RiskHistoryQuery) FirstIDX(ctx context.Context) string { + id, err := rhq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single RiskHistory entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one RiskHistory entity is found. +// Returns a *NotFoundError when no RiskHistory entities are found. +func (rhq *RiskHistoryQuery) Only(ctx context.Context) (*RiskHistory, error) { + nodes, err := rhq.Limit(2).All(setContextOp(ctx, rhq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{riskhistory.Label} + default: + return nil, &NotSingularError{riskhistory.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (rhq *RiskHistoryQuery) OnlyX(ctx context.Context) *RiskHistory { + node, err := rhq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only RiskHistory ID in the query. +// Returns a *NotSingularError when more than one RiskHistory ID is found. +// Returns a *NotFoundError when no entities are found. +func (rhq *RiskHistoryQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = rhq.Limit(2).IDs(setContextOp(ctx, rhq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{riskhistory.Label} + default: + err = &NotSingularError{riskhistory.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (rhq *RiskHistoryQuery) OnlyIDX(ctx context.Context) string { + id, err := rhq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of RiskHistories. +func (rhq *RiskHistoryQuery) All(ctx context.Context) ([]*RiskHistory, error) { + ctx = setContextOp(ctx, rhq.ctx, ent.OpQueryAll) + if err := rhq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*RiskHistory, *RiskHistoryQuery]() + return withInterceptors[[]*RiskHistory](ctx, rhq, qr, rhq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (rhq *RiskHistoryQuery) AllX(ctx context.Context) []*RiskHistory { + nodes, err := rhq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of RiskHistory IDs. +func (rhq *RiskHistoryQuery) IDs(ctx context.Context) (ids []string, err error) { + if rhq.ctx.Unique == nil && rhq.path != nil { + rhq.Unique(true) + } + ctx = setContextOp(ctx, rhq.ctx, ent.OpQueryIDs) + if err = rhq.Select(riskhistory.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (rhq *RiskHistoryQuery) IDsX(ctx context.Context) []string { + ids, err := rhq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (rhq *RiskHistoryQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, rhq.ctx, ent.OpQueryCount) + if err := rhq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, rhq, querierCount[*RiskHistoryQuery](), rhq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (rhq *RiskHistoryQuery) CountX(ctx context.Context) int { + count, err := rhq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (rhq *RiskHistoryQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, rhq.ctx, ent.OpQueryExist) + switch _, err := rhq.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 (rhq *RiskHistoryQuery) ExistX(ctx context.Context) bool { + exist, err := rhq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the RiskHistoryQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (rhq *RiskHistoryQuery) Clone() *RiskHistoryQuery { + if rhq == nil { + return nil + } + return &RiskHistoryQuery{ + config: rhq.config, + ctx: rhq.ctx.Clone(), + order: append([]riskhistory.OrderOption{}, rhq.order...), + inters: append([]Interceptor{}, rhq.inters...), + predicates: append([]predicate.RiskHistory{}, rhq.predicates...), + // clone intermediate query. + sql: rhq.sql.Clone(), + path: rhq.path, + modifiers: append([]func(*sql.Selector){}, rhq.modifiers...), + } +} + +// 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.RiskHistory.Query(). +// GroupBy(riskhistory.FieldHistoryTime). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (rhq *RiskHistoryQuery) GroupBy(field string, fields ...string) *RiskHistoryGroupBy { + rhq.ctx.Fields = append([]string{field}, fields...) + grbuild := &RiskHistoryGroupBy{build: rhq} + grbuild.flds = &rhq.ctx.Fields + grbuild.label = riskhistory.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.RiskHistory.Query(). +// Select(riskhistory.FieldHistoryTime). +// Scan(ctx, &v) +func (rhq *RiskHistoryQuery) Select(fields ...string) *RiskHistorySelect { + rhq.ctx.Fields = append(rhq.ctx.Fields, fields...) + sbuild := &RiskHistorySelect{RiskHistoryQuery: rhq} + sbuild.label = riskhistory.Label + sbuild.flds, sbuild.scan = &rhq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a RiskHistorySelect configured with the given aggregations. +func (rhq *RiskHistoryQuery) Aggregate(fns ...AggregateFunc) *RiskHistorySelect { + return rhq.Select().Aggregate(fns...) +} + +func (rhq *RiskHistoryQuery) prepareQuery(ctx context.Context) error { + for _, inter := range rhq.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, rhq); err != nil { + return err + } + } + } + for _, f := range rhq.ctx.Fields { + if !riskhistory.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if rhq.path != nil { + prev, err := rhq.path(ctx) + if err != nil { + return err + } + rhq.sql = prev + } + return nil +} + +func (rhq *RiskHistoryQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*RiskHistory, error) { + var ( + nodes = []*RiskHistory{} + _spec = rhq.querySpec() + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*RiskHistory).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &RiskHistory{config: rhq.config} + nodes = append(nodes, node) + return node.assignValues(columns, values) + } + _spec.Node.Schema = rhq.schemaConfig.RiskHistory + ctx = internal.NewSchemaConfigContext(ctx, rhq.schemaConfig) + if len(rhq.modifiers) > 0 { + _spec.Modifiers = rhq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, rhq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + for i := range rhq.loadTotal { + if err := rhq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (rhq *RiskHistoryQuery) sqlCount(ctx context.Context) (int, error) { + _spec := rhq.querySpec() + _spec.Node.Schema = rhq.schemaConfig.RiskHistory + ctx = internal.NewSchemaConfigContext(ctx, rhq.schemaConfig) + if len(rhq.modifiers) > 0 { + _spec.Modifiers = rhq.modifiers + } + _spec.Node.Columns = rhq.ctx.Fields + if len(rhq.ctx.Fields) > 0 { + _spec.Unique = rhq.ctx.Unique != nil && *rhq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, rhq.driver, _spec) +} + +func (rhq *RiskHistoryQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(riskhistory.Table, riskhistory.Columns, sqlgraph.NewFieldSpec(riskhistory.FieldID, field.TypeString)) + _spec.From = rhq.sql + if unique := rhq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if rhq.path != nil { + _spec.Unique = true + } + if fields := rhq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, riskhistory.FieldID) + for i := range fields { + if fields[i] != riskhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := rhq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := rhq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := rhq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := rhq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (rhq *RiskHistoryQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(rhq.driver.Dialect()) + t1 := builder.Table(riskhistory.Table) + columns := rhq.ctx.Fields + if len(columns) == 0 { + columns = riskhistory.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if rhq.sql != nil { + selector = rhq.sql + selector.Select(selector.Columns(columns...)...) + } + if rhq.ctx.Unique != nil && *rhq.ctx.Unique { + selector.Distinct() + } + t1.Schema(rhq.schemaConfig.RiskHistory) + ctx = internal.NewSchemaConfigContext(ctx, rhq.schemaConfig) + selector.WithContext(ctx) + for _, m := range rhq.modifiers { + m(selector) + } + for _, p := range rhq.predicates { + p(selector) + } + for _, p := range rhq.order { + p(selector) + } + if offset := rhq.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 := rhq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (rhq *RiskHistoryQuery) Modify(modifiers ...func(s *sql.Selector)) *RiskHistorySelect { + rhq.modifiers = append(rhq.modifiers, modifiers...) + return rhq.Select() +} + +// RiskHistoryGroupBy is the group-by builder for RiskHistory entities. +type RiskHistoryGroupBy struct { + selector + build *RiskHistoryQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (rhgb *RiskHistoryGroupBy) Aggregate(fns ...AggregateFunc) *RiskHistoryGroupBy { + rhgb.fns = append(rhgb.fns, fns...) + return rhgb +} + +// Scan applies the selector query and scans the result into the given value. +func (rhgb *RiskHistoryGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, rhgb.build.ctx, ent.OpQueryGroupBy) + if err := rhgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*RiskHistoryQuery, *RiskHistoryGroupBy](ctx, rhgb.build, rhgb, rhgb.build.inters, v) +} + +func (rhgb *RiskHistoryGroupBy) sqlScan(ctx context.Context, root *RiskHistoryQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(rhgb.fns)) + for _, fn := range rhgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*rhgb.flds)+len(rhgb.fns)) + for _, f := range *rhgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*rhgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := rhgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// RiskHistorySelect is the builder for selecting fields of RiskHistory entities. +type RiskHistorySelect struct { + *RiskHistoryQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (rhs *RiskHistorySelect) Aggregate(fns ...AggregateFunc) *RiskHistorySelect { + rhs.fns = append(rhs.fns, fns...) + return rhs +} + +// Scan applies the selector query and scans the result into the given value. +func (rhs *RiskHistorySelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, rhs.ctx, ent.OpQuerySelect) + if err := rhs.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*RiskHistoryQuery, *RiskHistorySelect](ctx, rhs.RiskHistoryQuery, rhs, rhs.inters, v) +} + +func (rhs *RiskHistorySelect) sqlScan(ctx context.Context, root *RiskHistoryQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(rhs.fns)) + for _, fn := range rhs.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*rhs.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 := rhs.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 (rhs *RiskHistorySelect) Modify(modifiers ...func(s *sql.Selector)) *RiskHistorySelect { + rhs.modifiers = append(rhs.modifiers, modifiers...) + return rhs +} diff --git a/internal/ent/generated/riskhistory_update.go b/internal/ent/generated/riskhistory_update.go new file mode 100644 index 00000000..18d523ee --- /dev/null +++ b/internal/ent/generated/riskhistory_update.go @@ -0,0 +1,1008 @@ +// 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/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/pkg/enums" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// RiskHistoryUpdate is the builder for updating RiskHistory entities. +type RiskHistoryUpdate struct { + config + hooks []Hook + mutation *RiskHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the RiskHistoryUpdate builder. +func (rhu *RiskHistoryUpdate) Where(ps ...predicate.RiskHistory) *RiskHistoryUpdate { + rhu.mutation.Where(ps...) + return rhu +} + +// SetUpdatedAt sets the "updated_at" field. +func (rhu *RiskHistoryUpdate) SetUpdatedAt(t time.Time) *RiskHistoryUpdate { + rhu.mutation.SetUpdatedAt(t) + return rhu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (rhu *RiskHistoryUpdate) ClearUpdatedAt() *RiskHistoryUpdate { + rhu.mutation.ClearUpdatedAt() + return rhu +} + +// SetUpdatedBy sets the "updated_by" field. +func (rhu *RiskHistoryUpdate) SetUpdatedBy(s string) *RiskHistoryUpdate { + rhu.mutation.SetUpdatedBy(s) + return rhu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (rhu *RiskHistoryUpdate) SetNillableUpdatedBy(s *string) *RiskHistoryUpdate { + if s != nil { + rhu.SetUpdatedBy(*s) + } + return rhu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (rhu *RiskHistoryUpdate) ClearUpdatedBy() *RiskHistoryUpdate { + rhu.mutation.ClearUpdatedBy() + return rhu +} + +// SetDeletedAt sets the "deleted_at" field. +func (rhu *RiskHistoryUpdate) SetDeletedAt(t time.Time) *RiskHistoryUpdate { + rhu.mutation.SetDeletedAt(t) + return rhu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (rhu *RiskHistoryUpdate) SetNillableDeletedAt(t *time.Time) *RiskHistoryUpdate { + if t != nil { + rhu.SetDeletedAt(*t) + } + return rhu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (rhu *RiskHistoryUpdate) ClearDeletedAt() *RiskHistoryUpdate { + rhu.mutation.ClearDeletedAt() + return rhu +} + +// SetDeletedBy sets the "deleted_by" field. +func (rhu *RiskHistoryUpdate) SetDeletedBy(s string) *RiskHistoryUpdate { + rhu.mutation.SetDeletedBy(s) + return rhu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (rhu *RiskHistoryUpdate) SetNillableDeletedBy(s *string) *RiskHistoryUpdate { + if s != nil { + rhu.SetDeletedBy(*s) + } + return rhu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (rhu *RiskHistoryUpdate) ClearDeletedBy() *RiskHistoryUpdate { + rhu.mutation.ClearDeletedBy() + return rhu +} + +// SetTags sets the "tags" field. +func (rhu *RiskHistoryUpdate) SetTags(s []string) *RiskHistoryUpdate { + rhu.mutation.SetTags(s) + return rhu +} + +// AppendTags appends s to the "tags" field. +func (rhu *RiskHistoryUpdate) AppendTags(s []string) *RiskHistoryUpdate { + rhu.mutation.AppendTags(s) + return rhu +} + +// ClearTags clears the value of the "tags" field. +func (rhu *RiskHistoryUpdate) ClearTags() *RiskHistoryUpdate { + rhu.mutation.ClearTags() + return rhu +} + +// SetName sets the "name" field. +func (rhu *RiskHistoryUpdate) SetName(s string) *RiskHistoryUpdate { + rhu.mutation.SetName(s) + return rhu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (rhu *RiskHistoryUpdate) SetNillableName(s *string) *RiskHistoryUpdate { + if s != nil { + rhu.SetName(*s) + } + return rhu +} + +// SetDescription sets the "description" field. +func (rhu *RiskHistoryUpdate) SetDescription(s string) *RiskHistoryUpdate { + rhu.mutation.SetDescription(s) + return rhu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (rhu *RiskHistoryUpdate) SetNillableDescription(s *string) *RiskHistoryUpdate { + if s != nil { + rhu.SetDescription(*s) + } + return rhu +} + +// ClearDescription clears the value of the "description" field. +func (rhu *RiskHistoryUpdate) ClearDescription() *RiskHistoryUpdate { + rhu.mutation.ClearDescription() + return rhu +} + +// SetStatus sets the "status" field. +func (rhu *RiskHistoryUpdate) SetStatus(s string) *RiskHistoryUpdate { + rhu.mutation.SetStatus(s) + return rhu +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (rhu *RiskHistoryUpdate) SetNillableStatus(s *string) *RiskHistoryUpdate { + if s != nil { + rhu.SetStatus(*s) + } + return rhu +} + +// ClearStatus clears the value of the "status" field. +func (rhu *RiskHistoryUpdate) ClearStatus() *RiskHistoryUpdate { + rhu.mutation.ClearStatus() + return rhu +} + +// SetRiskType sets the "risk_type" field. +func (rhu *RiskHistoryUpdate) SetRiskType(s string) *RiskHistoryUpdate { + rhu.mutation.SetRiskType(s) + return rhu +} + +// SetNillableRiskType sets the "risk_type" field if the given value is not nil. +func (rhu *RiskHistoryUpdate) SetNillableRiskType(s *string) *RiskHistoryUpdate { + if s != nil { + rhu.SetRiskType(*s) + } + return rhu +} + +// ClearRiskType clears the value of the "risk_type" field. +func (rhu *RiskHistoryUpdate) ClearRiskType() *RiskHistoryUpdate { + rhu.mutation.ClearRiskType() + return rhu +} + +// SetBusinessCosts sets the "business_costs" field. +func (rhu *RiskHistoryUpdate) SetBusinessCosts(s string) *RiskHistoryUpdate { + rhu.mutation.SetBusinessCosts(s) + return rhu +} + +// SetNillableBusinessCosts sets the "business_costs" field if the given value is not nil. +func (rhu *RiskHistoryUpdate) SetNillableBusinessCosts(s *string) *RiskHistoryUpdate { + if s != nil { + rhu.SetBusinessCosts(*s) + } + return rhu +} + +// ClearBusinessCosts clears the value of the "business_costs" field. +func (rhu *RiskHistoryUpdate) ClearBusinessCosts() *RiskHistoryUpdate { + rhu.mutation.ClearBusinessCosts() + return rhu +} + +// SetImpact sets the "impact" field. +func (rhu *RiskHistoryUpdate) SetImpact(ei enums.RiskImpact) *RiskHistoryUpdate { + rhu.mutation.SetImpact(ei) + return rhu +} + +// SetNillableImpact sets the "impact" field if the given value is not nil. +func (rhu *RiskHistoryUpdate) SetNillableImpact(ei *enums.RiskImpact) *RiskHistoryUpdate { + if ei != nil { + rhu.SetImpact(*ei) + } + return rhu +} + +// ClearImpact clears the value of the "impact" field. +func (rhu *RiskHistoryUpdate) ClearImpact() *RiskHistoryUpdate { + rhu.mutation.ClearImpact() + return rhu +} + +// SetLikelihood sets the "likelihood" field. +func (rhu *RiskHistoryUpdate) SetLikelihood(el enums.RiskLikelihood) *RiskHistoryUpdate { + rhu.mutation.SetLikelihood(el) + return rhu +} + +// SetNillableLikelihood sets the "likelihood" field if the given value is not nil. +func (rhu *RiskHistoryUpdate) SetNillableLikelihood(el *enums.RiskLikelihood) *RiskHistoryUpdate { + if el != nil { + rhu.SetLikelihood(*el) + } + return rhu +} + +// ClearLikelihood clears the value of the "likelihood" field. +func (rhu *RiskHistoryUpdate) ClearLikelihood() *RiskHistoryUpdate { + rhu.mutation.ClearLikelihood() + return rhu +} + +// SetMitigation sets the "mitigation" field. +func (rhu *RiskHistoryUpdate) SetMitigation(s string) *RiskHistoryUpdate { + rhu.mutation.SetMitigation(s) + return rhu +} + +// SetNillableMitigation sets the "mitigation" field if the given value is not nil. +func (rhu *RiskHistoryUpdate) SetNillableMitigation(s *string) *RiskHistoryUpdate { + if s != nil { + rhu.SetMitigation(*s) + } + return rhu +} + +// ClearMitigation clears the value of the "mitigation" field. +func (rhu *RiskHistoryUpdate) ClearMitigation() *RiskHistoryUpdate { + rhu.mutation.ClearMitigation() + return rhu +} + +// SetSatisfies sets the "satisfies" field. +func (rhu *RiskHistoryUpdate) SetSatisfies(s string) *RiskHistoryUpdate { + rhu.mutation.SetSatisfies(s) + return rhu +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (rhu *RiskHistoryUpdate) SetNillableSatisfies(s *string) *RiskHistoryUpdate { + if s != nil { + rhu.SetSatisfies(*s) + } + return rhu +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (rhu *RiskHistoryUpdate) ClearSatisfies() *RiskHistoryUpdate { + rhu.mutation.ClearSatisfies() + return rhu +} + +// SetDetails sets the "details" field. +func (rhu *RiskHistoryUpdate) SetDetails(m map[string]interface{}) *RiskHistoryUpdate { + rhu.mutation.SetDetails(m) + return rhu +} + +// ClearDetails clears the value of the "details" field. +func (rhu *RiskHistoryUpdate) ClearDetails() *RiskHistoryUpdate { + rhu.mutation.ClearDetails() + return rhu +} + +// Mutation returns the RiskHistoryMutation object of the builder. +func (rhu *RiskHistoryUpdate) Mutation() *RiskHistoryMutation { + return rhu.mutation +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (rhu *RiskHistoryUpdate) Save(ctx context.Context) (int, error) { + rhu.defaults() + return withHooks(ctx, rhu.sqlSave, rhu.mutation, rhu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (rhu *RiskHistoryUpdate) SaveX(ctx context.Context) int { + affected, err := rhu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (rhu *RiskHistoryUpdate) Exec(ctx context.Context) error { + _, err := rhu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (rhu *RiskHistoryUpdate) ExecX(ctx context.Context) { + if err := rhu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (rhu *RiskHistoryUpdate) defaults() { + if _, ok := rhu.mutation.UpdatedAt(); !ok && !rhu.mutation.UpdatedAtCleared() { + v := riskhistory.UpdateDefaultUpdatedAt() + rhu.mutation.SetUpdatedAt(v) + } +} + +// check runs all checks and user-defined validators on the builder. +func (rhu *RiskHistoryUpdate) check() error { + if v, ok := rhu.mutation.Impact(); ok { + if err := riskhistory.ImpactValidator(v); err != nil { + return &ValidationError{Name: "impact", err: fmt.Errorf(`generated: validator failed for field "RiskHistory.impact": %w`, err)} + } + } + if v, ok := rhu.mutation.Likelihood(); ok { + if err := riskhistory.LikelihoodValidator(v); err != nil { + return &ValidationError{Name: "likelihood", err: fmt.Errorf(`generated: validator failed for field "RiskHistory.likelihood": %w`, err)} + } + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (rhu *RiskHistoryUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *RiskHistoryUpdate { + rhu.modifiers = append(rhu.modifiers, modifiers...) + return rhu +} + +func (rhu *RiskHistoryUpdate) sqlSave(ctx context.Context) (n int, err error) { + if err := rhu.check(); err != nil { + return n, err + } + _spec := sqlgraph.NewUpdateSpec(riskhistory.Table, riskhistory.Columns, sqlgraph.NewFieldSpec(riskhistory.FieldID, field.TypeString)) + if ps := rhu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if rhu.mutation.RefCleared() { + _spec.ClearField(riskhistory.FieldRef, field.TypeString) + } + if rhu.mutation.CreatedAtCleared() { + _spec.ClearField(riskhistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := rhu.mutation.UpdatedAt(); ok { + _spec.SetField(riskhistory.FieldUpdatedAt, field.TypeTime, value) + } + if rhu.mutation.UpdatedAtCleared() { + _spec.ClearField(riskhistory.FieldUpdatedAt, field.TypeTime) + } + if rhu.mutation.CreatedByCleared() { + _spec.ClearField(riskhistory.FieldCreatedBy, field.TypeString) + } + if value, ok := rhu.mutation.UpdatedBy(); ok { + _spec.SetField(riskhistory.FieldUpdatedBy, field.TypeString, value) + } + if rhu.mutation.UpdatedByCleared() { + _spec.ClearField(riskhistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := rhu.mutation.DeletedAt(); ok { + _spec.SetField(riskhistory.FieldDeletedAt, field.TypeTime, value) + } + if rhu.mutation.DeletedAtCleared() { + _spec.ClearField(riskhistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := rhu.mutation.DeletedBy(); ok { + _spec.SetField(riskhistory.FieldDeletedBy, field.TypeString, value) + } + if rhu.mutation.DeletedByCleared() { + _spec.ClearField(riskhistory.FieldDeletedBy, field.TypeString) + } + if value, ok := rhu.mutation.Tags(); ok { + _spec.SetField(riskhistory.FieldTags, field.TypeJSON, value) + } + if value, ok := rhu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, riskhistory.FieldTags, value) + }) + } + if rhu.mutation.TagsCleared() { + _spec.ClearField(riskhistory.FieldTags, field.TypeJSON) + } + if value, ok := rhu.mutation.Name(); ok { + _spec.SetField(riskhistory.FieldName, field.TypeString, value) + } + if value, ok := rhu.mutation.Description(); ok { + _spec.SetField(riskhistory.FieldDescription, field.TypeString, value) + } + if rhu.mutation.DescriptionCleared() { + _spec.ClearField(riskhistory.FieldDescription, field.TypeString) + } + if value, ok := rhu.mutation.Status(); ok { + _spec.SetField(riskhistory.FieldStatus, field.TypeString, value) + } + if rhu.mutation.StatusCleared() { + _spec.ClearField(riskhistory.FieldStatus, field.TypeString) + } + if value, ok := rhu.mutation.RiskType(); ok { + _spec.SetField(riskhistory.FieldRiskType, field.TypeString, value) + } + if rhu.mutation.RiskTypeCleared() { + _spec.ClearField(riskhistory.FieldRiskType, field.TypeString) + } + if value, ok := rhu.mutation.BusinessCosts(); ok { + _spec.SetField(riskhistory.FieldBusinessCosts, field.TypeString, value) + } + if rhu.mutation.BusinessCostsCleared() { + _spec.ClearField(riskhistory.FieldBusinessCosts, field.TypeString) + } + if value, ok := rhu.mutation.Impact(); ok { + _spec.SetField(riskhistory.FieldImpact, field.TypeEnum, value) + } + if rhu.mutation.ImpactCleared() { + _spec.ClearField(riskhistory.FieldImpact, field.TypeEnum) + } + if value, ok := rhu.mutation.Likelihood(); ok { + _spec.SetField(riskhistory.FieldLikelihood, field.TypeEnum, value) + } + if rhu.mutation.LikelihoodCleared() { + _spec.ClearField(riskhistory.FieldLikelihood, field.TypeEnum) + } + if value, ok := rhu.mutation.Mitigation(); ok { + _spec.SetField(riskhistory.FieldMitigation, field.TypeString, value) + } + if rhu.mutation.MitigationCleared() { + _spec.ClearField(riskhistory.FieldMitigation, field.TypeString) + } + if value, ok := rhu.mutation.Satisfies(); ok { + _spec.SetField(riskhistory.FieldSatisfies, field.TypeString, value) + } + if rhu.mutation.SatisfiesCleared() { + _spec.ClearField(riskhistory.FieldSatisfies, field.TypeString) + } + if value, ok := rhu.mutation.Details(); ok { + _spec.SetField(riskhistory.FieldDetails, field.TypeJSON, value) + } + if rhu.mutation.DetailsCleared() { + _spec.ClearField(riskhistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = rhu.schemaConfig.RiskHistory + ctx = internal.NewSchemaConfigContext(ctx, rhu.schemaConfig) + _spec.AddModifiers(rhu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, rhu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{riskhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + rhu.mutation.done = true + return n, nil +} + +// RiskHistoryUpdateOne is the builder for updating a single RiskHistory entity. +type RiskHistoryUpdateOne struct { + config + fields []string + hooks []Hook + mutation *RiskHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (rhuo *RiskHistoryUpdateOne) SetUpdatedAt(t time.Time) *RiskHistoryUpdateOne { + rhuo.mutation.SetUpdatedAt(t) + return rhuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (rhuo *RiskHistoryUpdateOne) ClearUpdatedAt() *RiskHistoryUpdateOne { + rhuo.mutation.ClearUpdatedAt() + return rhuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (rhuo *RiskHistoryUpdateOne) SetUpdatedBy(s string) *RiskHistoryUpdateOne { + rhuo.mutation.SetUpdatedBy(s) + return rhuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (rhuo *RiskHistoryUpdateOne) SetNillableUpdatedBy(s *string) *RiskHistoryUpdateOne { + if s != nil { + rhuo.SetUpdatedBy(*s) + } + return rhuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (rhuo *RiskHistoryUpdateOne) ClearUpdatedBy() *RiskHistoryUpdateOne { + rhuo.mutation.ClearUpdatedBy() + return rhuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (rhuo *RiskHistoryUpdateOne) SetDeletedAt(t time.Time) *RiskHistoryUpdateOne { + rhuo.mutation.SetDeletedAt(t) + return rhuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (rhuo *RiskHistoryUpdateOne) SetNillableDeletedAt(t *time.Time) *RiskHistoryUpdateOne { + if t != nil { + rhuo.SetDeletedAt(*t) + } + return rhuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (rhuo *RiskHistoryUpdateOne) ClearDeletedAt() *RiskHistoryUpdateOne { + rhuo.mutation.ClearDeletedAt() + return rhuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (rhuo *RiskHistoryUpdateOne) SetDeletedBy(s string) *RiskHistoryUpdateOne { + rhuo.mutation.SetDeletedBy(s) + return rhuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (rhuo *RiskHistoryUpdateOne) SetNillableDeletedBy(s *string) *RiskHistoryUpdateOne { + if s != nil { + rhuo.SetDeletedBy(*s) + } + return rhuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (rhuo *RiskHistoryUpdateOne) ClearDeletedBy() *RiskHistoryUpdateOne { + rhuo.mutation.ClearDeletedBy() + return rhuo +} + +// SetTags sets the "tags" field. +func (rhuo *RiskHistoryUpdateOne) SetTags(s []string) *RiskHistoryUpdateOne { + rhuo.mutation.SetTags(s) + return rhuo +} + +// AppendTags appends s to the "tags" field. +func (rhuo *RiskHistoryUpdateOne) AppendTags(s []string) *RiskHistoryUpdateOne { + rhuo.mutation.AppendTags(s) + return rhuo +} + +// ClearTags clears the value of the "tags" field. +func (rhuo *RiskHistoryUpdateOne) ClearTags() *RiskHistoryUpdateOne { + rhuo.mutation.ClearTags() + return rhuo +} + +// SetName sets the "name" field. +func (rhuo *RiskHistoryUpdateOne) SetName(s string) *RiskHistoryUpdateOne { + rhuo.mutation.SetName(s) + return rhuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (rhuo *RiskHistoryUpdateOne) SetNillableName(s *string) *RiskHistoryUpdateOne { + if s != nil { + rhuo.SetName(*s) + } + return rhuo +} + +// SetDescription sets the "description" field. +func (rhuo *RiskHistoryUpdateOne) SetDescription(s string) *RiskHistoryUpdateOne { + rhuo.mutation.SetDescription(s) + return rhuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (rhuo *RiskHistoryUpdateOne) SetNillableDescription(s *string) *RiskHistoryUpdateOne { + if s != nil { + rhuo.SetDescription(*s) + } + return rhuo +} + +// ClearDescription clears the value of the "description" field. +func (rhuo *RiskHistoryUpdateOne) ClearDescription() *RiskHistoryUpdateOne { + rhuo.mutation.ClearDescription() + return rhuo +} + +// SetStatus sets the "status" field. +func (rhuo *RiskHistoryUpdateOne) SetStatus(s string) *RiskHistoryUpdateOne { + rhuo.mutation.SetStatus(s) + return rhuo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (rhuo *RiskHistoryUpdateOne) SetNillableStatus(s *string) *RiskHistoryUpdateOne { + if s != nil { + rhuo.SetStatus(*s) + } + return rhuo +} + +// ClearStatus clears the value of the "status" field. +func (rhuo *RiskHistoryUpdateOne) ClearStatus() *RiskHistoryUpdateOne { + rhuo.mutation.ClearStatus() + return rhuo +} + +// SetRiskType sets the "risk_type" field. +func (rhuo *RiskHistoryUpdateOne) SetRiskType(s string) *RiskHistoryUpdateOne { + rhuo.mutation.SetRiskType(s) + return rhuo +} + +// SetNillableRiskType sets the "risk_type" field if the given value is not nil. +func (rhuo *RiskHistoryUpdateOne) SetNillableRiskType(s *string) *RiskHistoryUpdateOne { + if s != nil { + rhuo.SetRiskType(*s) + } + return rhuo +} + +// ClearRiskType clears the value of the "risk_type" field. +func (rhuo *RiskHistoryUpdateOne) ClearRiskType() *RiskHistoryUpdateOne { + rhuo.mutation.ClearRiskType() + return rhuo +} + +// SetBusinessCosts sets the "business_costs" field. +func (rhuo *RiskHistoryUpdateOne) SetBusinessCosts(s string) *RiskHistoryUpdateOne { + rhuo.mutation.SetBusinessCosts(s) + return rhuo +} + +// SetNillableBusinessCosts sets the "business_costs" field if the given value is not nil. +func (rhuo *RiskHistoryUpdateOne) SetNillableBusinessCosts(s *string) *RiskHistoryUpdateOne { + if s != nil { + rhuo.SetBusinessCosts(*s) + } + return rhuo +} + +// ClearBusinessCosts clears the value of the "business_costs" field. +func (rhuo *RiskHistoryUpdateOne) ClearBusinessCosts() *RiskHistoryUpdateOne { + rhuo.mutation.ClearBusinessCosts() + return rhuo +} + +// SetImpact sets the "impact" field. +func (rhuo *RiskHistoryUpdateOne) SetImpact(ei enums.RiskImpact) *RiskHistoryUpdateOne { + rhuo.mutation.SetImpact(ei) + return rhuo +} + +// SetNillableImpact sets the "impact" field if the given value is not nil. +func (rhuo *RiskHistoryUpdateOne) SetNillableImpact(ei *enums.RiskImpact) *RiskHistoryUpdateOne { + if ei != nil { + rhuo.SetImpact(*ei) + } + return rhuo +} + +// ClearImpact clears the value of the "impact" field. +func (rhuo *RiskHistoryUpdateOne) ClearImpact() *RiskHistoryUpdateOne { + rhuo.mutation.ClearImpact() + return rhuo +} + +// SetLikelihood sets the "likelihood" field. +func (rhuo *RiskHistoryUpdateOne) SetLikelihood(el enums.RiskLikelihood) *RiskHistoryUpdateOne { + rhuo.mutation.SetLikelihood(el) + return rhuo +} + +// SetNillableLikelihood sets the "likelihood" field if the given value is not nil. +func (rhuo *RiskHistoryUpdateOne) SetNillableLikelihood(el *enums.RiskLikelihood) *RiskHistoryUpdateOne { + if el != nil { + rhuo.SetLikelihood(*el) + } + return rhuo +} + +// ClearLikelihood clears the value of the "likelihood" field. +func (rhuo *RiskHistoryUpdateOne) ClearLikelihood() *RiskHistoryUpdateOne { + rhuo.mutation.ClearLikelihood() + return rhuo +} + +// SetMitigation sets the "mitigation" field. +func (rhuo *RiskHistoryUpdateOne) SetMitigation(s string) *RiskHistoryUpdateOne { + rhuo.mutation.SetMitigation(s) + return rhuo +} + +// SetNillableMitigation sets the "mitigation" field if the given value is not nil. +func (rhuo *RiskHistoryUpdateOne) SetNillableMitigation(s *string) *RiskHistoryUpdateOne { + if s != nil { + rhuo.SetMitigation(*s) + } + return rhuo +} + +// ClearMitigation clears the value of the "mitigation" field. +func (rhuo *RiskHistoryUpdateOne) ClearMitigation() *RiskHistoryUpdateOne { + rhuo.mutation.ClearMitigation() + return rhuo +} + +// SetSatisfies sets the "satisfies" field. +func (rhuo *RiskHistoryUpdateOne) SetSatisfies(s string) *RiskHistoryUpdateOne { + rhuo.mutation.SetSatisfies(s) + return rhuo +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (rhuo *RiskHistoryUpdateOne) SetNillableSatisfies(s *string) *RiskHistoryUpdateOne { + if s != nil { + rhuo.SetSatisfies(*s) + } + return rhuo +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (rhuo *RiskHistoryUpdateOne) ClearSatisfies() *RiskHistoryUpdateOne { + rhuo.mutation.ClearSatisfies() + return rhuo +} + +// SetDetails sets the "details" field. +func (rhuo *RiskHistoryUpdateOne) SetDetails(m map[string]interface{}) *RiskHistoryUpdateOne { + rhuo.mutation.SetDetails(m) + return rhuo +} + +// ClearDetails clears the value of the "details" field. +func (rhuo *RiskHistoryUpdateOne) ClearDetails() *RiskHistoryUpdateOne { + rhuo.mutation.ClearDetails() + return rhuo +} + +// Mutation returns the RiskHistoryMutation object of the builder. +func (rhuo *RiskHistoryUpdateOne) Mutation() *RiskHistoryMutation { + return rhuo.mutation +} + +// Where appends a list predicates to the RiskHistoryUpdate builder. +func (rhuo *RiskHistoryUpdateOne) Where(ps ...predicate.RiskHistory) *RiskHistoryUpdateOne { + rhuo.mutation.Where(ps...) + return rhuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (rhuo *RiskHistoryUpdateOne) Select(field string, fields ...string) *RiskHistoryUpdateOne { + rhuo.fields = append([]string{field}, fields...) + return rhuo +} + +// Save executes the query and returns the updated RiskHistory entity. +func (rhuo *RiskHistoryUpdateOne) Save(ctx context.Context) (*RiskHistory, error) { + rhuo.defaults() + return withHooks(ctx, rhuo.sqlSave, rhuo.mutation, rhuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (rhuo *RiskHistoryUpdateOne) SaveX(ctx context.Context) *RiskHistory { + node, err := rhuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (rhuo *RiskHistoryUpdateOne) Exec(ctx context.Context) error { + _, err := rhuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (rhuo *RiskHistoryUpdateOne) ExecX(ctx context.Context) { + if err := rhuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (rhuo *RiskHistoryUpdateOne) defaults() { + if _, ok := rhuo.mutation.UpdatedAt(); !ok && !rhuo.mutation.UpdatedAtCleared() { + v := riskhistory.UpdateDefaultUpdatedAt() + rhuo.mutation.SetUpdatedAt(v) + } +} + +// check runs all checks and user-defined validators on the builder. +func (rhuo *RiskHistoryUpdateOne) check() error { + if v, ok := rhuo.mutation.Impact(); ok { + if err := riskhistory.ImpactValidator(v); err != nil { + return &ValidationError{Name: "impact", err: fmt.Errorf(`generated: validator failed for field "RiskHistory.impact": %w`, err)} + } + } + if v, ok := rhuo.mutation.Likelihood(); ok { + if err := riskhistory.LikelihoodValidator(v); err != nil { + return &ValidationError{Name: "likelihood", err: fmt.Errorf(`generated: validator failed for field "RiskHistory.likelihood": %w`, err)} + } + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (rhuo *RiskHistoryUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *RiskHistoryUpdateOne { + rhuo.modifiers = append(rhuo.modifiers, modifiers...) + return rhuo +} + +func (rhuo *RiskHistoryUpdateOne) sqlSave(ctx context.Context) (_node *RiskHistory, err error) { + if err := rhuo.check(); err != nil { + return _node, err + } + _spec := sqlgraph.NewUpdateSpec(riskhistory.Table, riskhistory.Columns, sqlgraph.NewFieldSpec(riskhistory.FieldID, field.TypeString)) + id, ok := rhuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "RiskHistory.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := rhuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, riskhistory.FieldID) + for _, f := range fields { + if !riskhistory.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != riskhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := rhuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if rhuo.mutation.RefCleared() { + _spec.ClearField(riskhistory.FieldRef, field.TypeString) + } + if rhuo.mutation.CreatedAtCleared() { + _spec.ClearField(riskhistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := rhuo.mutation.UpdatedAt(); ok { + _spec.SetField(riskhistory.FieldUpdatedAt, field.TypeTime, value) + } + if rhuo.mutation.UpdatedAtCleared() { + _spec.ClearField(riskhistory.FieldUpdatedAt, field.TypeTime) + } + if rhuo.mutation.CreatedByCleared() { + _spec.ClearField(riskhistory.FieldCreatedBy, field.TypeString) + } + if value, ok := rhuo.mutation.UpdatedBy(); ok { + _spec.SetField(riskhistory.FieldUpdatedBy, field.TypeString, value) + } + if rhuo.mutation.UpdatedByCleared() { + _spec.ClearField(riskhistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := rhuo.mutation.DeletedAt(); ok { + _spec.SetField(riskhistory.FieldDeletedAt, field.TypeTime, value) + } + if rhuo.mutation.DeletedAtCleared() { + _spec.ClearField(riskhistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := rhuo.mutation.DeletedBy(); ok { + _spec.SetField(riskhistory.FieldDeletedBy, field.TypeString, value) + } + if rhuo.mutation.DeletedByCleared() { + _spec.ClearField(riskhistory.FieldDeletedBy, field.TypeString) + } + if value, ok := rhuo.mutation.Tags(); ok { + _spec.SetField(riskhistory.FieldTags, field.TypeJSON, value) + } + if value, ok := rhuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, riskhistory.FieldTags, value) + }) + } + if rhuo.mutation.TagsCleared() { + _spec.ClearField(riskhistory.FieldTags, field.TypeJSON) + } + if value, ok := rhuo.mutation.Name(); ok { + _spec.SetField(riskhistory.FieldName, field.TypeString, value) + } + if value, ok := rhuo.mutation.Description(); ok { + _spec.SetField(riskhistory.FieldDescription, field.TypeString, value) + } + if rhuo.mutation.DescriptionCleared() { + _spec.ClearField(riskhistory.FieldDescription, field.TypeString) + } + if value, ok := rhuo.mutation.Status(); ok { + _spec.SetField(riskhistory.FieldStatus, field.TypeString, value) + } + if rhuo.mutation.StatusCleared() { + _spec.ClearField(riskhistory.FieldStatus, field.TypeString) + } + if value, ok := rhuo.mutation.RiskType(); ok { + _spec.SetField(riskhistory.FieldRiskType, field.TypeString, value) + } + if rhuo.mutation.RiskTypeCleared() { + _spec.ClearField(riskhistory.FieldRiskType, field.TypeString) + } + if value, ok := rhuo.mutation.BusinessCosts(); ok { + _spec.SetField(riskhistory.FieldBusinessCosts, field.TypeString, value) + } + if rhuo.mutation.BusinessCostsCleared() { + _spec.ClearField(riskhistory.FieldBusinessCosts, field.TypeString) + } + if value, ok := rhuo.mutation.Impact(); ok { + _spec.SetField(riskhistory.FieldImpact, field.TypeEnum, value) + } + if rhuo.mutation.ImpactCleared() { + _spec.ClearField(riskhistory.FieldImpact, field.TypeEnum) + } + if value, ok := rhuo.mutation.Likelihood(); ok { + _spec.SetField(riskhistory.FieldLikelihood, field.TypeEnum, value) + } + if rhuo.mutation.LikelihoodCleared() { + _spec.ClearField(riskhistory.FieldLikelihood, field.TypeEnum) + } + if value, ok := rhuo.mutation.Mitigation(); ok { + _spec.SetField(riskhistory.FieldMitigation, field.TypeString, value) + } + if rhuo.mutation.MitigationCleared() { + _spec.ClearField(riskhistory.FieldMitigation, field.TypeString) + } + if value, ok := rhuo.mutation.Satisfies(); ok { + _spec.SetField(riskhistory.FieldSatisfies, field.TypeString, value) + } + if rhuo.mutation.SatisfiesCleared() { + _spec.ClearField(riskhistory.FieldSatisfies, field.TypeString) + } + if value, ok := rhuo.mutation.Details(); ok { + _spec.SetField(riskhistory.FieldDetails, field.TypeJSON, value) + } + if rhuo.mutation.DetailsCleared() { + _spec.ClearField(riskhistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = rhuo.schemaConfig.RiskHistory + ctx = internal.NewSchemaConfigContext(ctx, rhuo.schemaConfig) + _spec.AddModifiers(rhuo.modifiers...) + _node = &RiskHistory{config: rhuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, rhuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{riskhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + rhuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/runtime/runtime.go b/internal/ent/generated/runtime/runtime.go index 4d9b6892..8b6ba613 100644 --- a/internal/ent/generated/runtime/runtime.go +++ b/internal/ent/generated/runtime/runtime.go @@ -6,9 +6,15 @@ import ( "context" "time" + "github.com/theopenlane/core/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/actionplanhistory" "github.com/theopenlane/core/internal/ent/generated/apitoken" "github.com/theopenlane/core/internal/ent/generated/contact" "github.com/theopenlane/core/internal/ent/generated/contacthistory" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlhistory" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/controlobjectivehistory" "github.com/theopenlane/core/internal/ent/generated/documentdata" "github.com/theopenlane/core/internal/ent/generated/documentdatahistory" "github.com/theopenlane/core/internal/ent/generated/emailverificationtoken" @@ -38,7 +44,11 @@ import ( "github.com/theopenlane/core/internal/ent/generated/hushhistory" "github.com/theopenlane/core/internal/ent/generated/integration" "github.com/theopenlane/core/internal/ent/generated/integrationhistory" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/internalpolicyhistory" "github.com/theopenlane/core/internal/ent/generated/invite" + "github.com/theopenlane/core/internal/ent/generated/narrative" + "github.com/theopenlane/core/internal/ent/generated/narrativehistory" "github.com/theopenlane/core/internal/ent/generated/note" "github.com/theopenlane/core/internal/ent/generated/notehistory" "github.com/theopenlane/core/internal/ent/generated/oauthprovider" @@ -52,6 +62,14 @@ import ( "github.com/theopenlane/core/internal/ent/generated/orgmembershiphistory" "github.com/theopenlane/core/internal/ent/generated/passwordresettoken" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/procedurehistory" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/riskhistory" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" "github.com/theopenlane/core/internal/ent/generated/subscriber" "github.com/theopenlane/core/internal/ent/generated/template" "github.com/theopenlane/core/internal/ent/generated/templatehistory" @@ -147,6 +165,71 @@ func init() { apitokenDescID := apitokenMixinFields2[0].Descriptor() // apitoken.DefaultID holds the default value on creation for the id field. apitoken.DefaultID = apitokenDescID.Default.(func() string) + actionplanMixin := schema.ActionPlan{}.Mixin() + actionplanMixinHooks0 := actionplanMixin[0].Hooks() + actionplanMixinHooks1 := actionplanMixin[1].Hooks() + actionplan.Hooks[0] = actionplanMixinHooks0[0] + actionplan.Hooks[1] = actionplanMixinHooks1[0] + actionplanMixinInters1 := actionplanMixin[1].Interceptors() + actionplan.Interceptors[0] = actionplanMixinInters1[0] + actionplanMixinFields0 := actionplanMixin[0].Fields() + _ = actionplanMixinFields0 + actionplanMixinFields2 := actionplanMixin[2].Fields() + _ = actionplanMixinFields2 + actionplanMixinFields3 := actionplanMixin[3].Fields() + _ = actionplanMixinFields3 + actionplanFields := schema.ActionPlan{}.Fields() + _ = actionplanFields + // actionplanDescCreatedAt is the schema descriptor for created_at field. + actionplanDescCreatedAt := actionplanMixinFields0[0].Descriptor() + // actionplan.DefaultCreatedAt holds the default value on creation for the created_at field. + actionplan.DefaultCreatedAt = actionplanDescCreatedAt.Default.(func() time.Time) + // actionplanDescUpdatedAt is the schema descriptor for updated_at field. + actionplanDescUpdatedAt := actionplanMixinFields0[1].Descriptor() + // actionplan.DefaultUpdatedAt holds the default value on creation for the updated_at field. + actionplan.DefaultUpdatedAt = actionplanDescUpdatedAt.Default.(func() time.Time) + // actionplan.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + actionplan.UpdateDefaultUpdatedAt = actionplanDescUpdatedAt.UpdateDefault.(func() time.Time) + // actionplanDescMappingID is the schema descriptor for mapping_id field. + actionplanDescMappingID := actionplanMixinFields2[1].Descriptor() + // actionplan.DefaultMappingID holds the default value on creation for the mapping_id field. + actionplan.DefaultMappingID = actionplanDescMappingID.Default.(func() string) + // actionplanDescTags is the schema descriptor for tags field. + actionplanDescTags := actionplanMixinFields3[0].Descriptor() + // actionplan.DefaultTags holds the default value on creation for the tags field. + actionplan.DefaultTags = actionplanDescTags.Default.([]string) + // actionplanDescID is the schema descriptor for id field. + actionplanDescID := actionplanMixinFields2[0].Descriptor() + // actionplan.DefaultID holds the default value on creation for the id field. + actionplan.DefaultID = actionplanDescID.Default.(func() string) + actionplanhistoryFields := schema.ActionPlanHistory{}.Fields() + _ = actionplanhistoryFields + // actionplanhistoryDescHistoryTime is the schema descriptor for history_time field. + actionplanhistoryDescHistoryTime := actionplanhistoryFields[0].Descriptor() + // actionplanhistory.DefaultHistoryTime holds the default value on creation for the history_time field. + actionplanhistory.DefaultHistoryTime = actionplanhistoryDescHistoryTime.Default.(func() time.Time) + // actionplanhistoryDescCreatedAt is the schema descriptor for created_at field. + actionplanhistoryDescCreatedAt := actionplanhistoryFields[3].Descriptor() + // actionplanhistory.DefaultCreatedAt holds the default value on creation for the created_at field. + actionplanhistory.DefaultCreatedAt = actionplanhistoryDescCreatedAt.Default.(func() time.Time) + // actionplanhistoryDescUpdatedAt is the schema descriptor for updated_at field. + actionplanhistoryDescUpdatedAt := actionplanhistoryFields[4].Descriptor() + // actionplanhistory.DefaultUpdatedAt holds the default value on creation for the updated_at field. + actionplanhistory.DefaultUpdatedAt = actionplanhistoryDescUpdatedAt.Default.(func() time.Time) + // actionplanhistory.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + actionplanhistory.UpdateDefaultUpdatedAt = actionplanhistoryDescUpdatedAt.UpdateDefault.(func() time.Time) + // actionplanhistoryDescMappingID is the schema descriptor for mapping_id field. + actionplanhistoryDescMappingID := actionplanhistoryFields[10].Descriptor() + // actionplanhistory.DefaultMappingID holds the default value on creation for the mapping_id field. + actionplanhistory.DefaultMappingID = actionplanhistoryDescMappingID.Default.(func() string) + // actionplanhistoryDescTags is the schema descriptor for tags field. + actionplanhistoryDescTags := actionplanhistoryFields[11].Descriptor() + // actionplanhistory.DefaultTags holds the default value on creation for the tags field. + actionplanhistory.DefaultTags = actionplanhistoryDescTags.Default.([]string) + // actionplanhistoryDescID is the schema descriptor for id field. + actionplanhistoryDescID := actionplanhistoryFields[9].Descriptor() + // actionplanhistory.DefaultID holds the default value on creation for the id field. + actionplanhistory.DefaultID = actionplanhistoryDescID.Default.(func() string) contactMixin := schema.Contact{}.Mixin() contact.Policy = privacy.NewPolicies(schema.Contact{}) contact.Hooks[0] = func(next ent.Mutator) ent.Mutator { @@ -271,6 +354,136 @@ func init() { contacthistoryDescID := contacthistoryFields[7].Descriptor() // contacthistory.DefaultID holds the default value on creation for the id field. contacthistory.DefaultID = contacthistoryDescID.Default.(func() string) + controlMixin := schema.Control{}.Mixin() + controlMixinHooks0 := controlMixin[0].Hooks() + controlMixinHooks1 := controlMixin[1].Hooks() + control.Hooks[0] = controlMixinHooks0[0] + control.Hooks[1] = controlMixinHooks1[0] + controlMixinInters1 := controlMixin[1].Interceptors() + control.Interceptors[0] = controlMixinInters1[0] + controlMixinFields0 := controlMixin[0].Fields() + _ = controlMixinFields0 + controlMixinFields2 := controlMixin[2].Fields() + _ = controlMixinFields2 + controlMixinFields3 := controlMixin[3].Fields() + _ = controlMixinFields3 + controlFields := schema.Control{}.Fields() + _ = controlFields + // controlDescCreatedAt is the schema descriptor for created_at field. + controlDescCreatedAt := controlMixinFields0[0].Descriptor() + // control.DefaultCreatedAt holds the default value on creation for the created_at field. + control.DefaultCreatedAt = controlDescCreatedAt.Default.(func() time.Time) + // controlDescUpdatedAt is the schema descriptor for updated_at field. + controlDescUpdatedAt := controlMixinFields0[1].Descriptor() + // control.DefaultUpdatedAt holds the default value on creation for the updated_at field. + control.DefaultUpdatedAt = controlDescUpdatedAt.Default.(func() time.Time) + // control.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + control.UpdateDefaultUpdatedAt = controlDescUpdatedAt.UpdateDefault.(func() time.Time) + // controlDescMappingID is the schema descriptor for mapping_id field. + controlDescMappingID := controlMixinFields2[1].Descriptor() + // control.DefaultMappingID holds the default value on creation for the mapping_id field. + control.DefaultMappingID = controlDescMappingID.Default.(func() string) + // controlDescTags is the schema descriptor for tags field. + controlDescTags := controlMixinFields3[0].Descriptor() + // control.DefaultTags holds the default value on creation for the tags field. + control.DefaultTags = controlDescTags.Default.([]string) + // controlDescID is the schema descriptor for id field. + controlDescID := controlMixinFields2[0].Descriptor() + // control.DefaultID holds the default value on creation for the id field. + control.DefaultID = controlDescID.Default.(func() string) + controlhistoryFields := schema.ControlHistory{}.Fields() + _ = controlhistoryFields + // controlhistoryDescHistoryTime is the schema descriptor for history_time field. + controlhistoryDescHistoryTime := controlhistoryFields[0].Descriptor() + // controlhistory.DefaultHistoryTime holds the default value on creation for the history_time field. + controlhistory.DefaultHistoryTime = controlhistoryDescHistoryTime.Default.(func() time.Time) + // controlhistoryDescCreatedAt is the schema descriptor for created_at field. + controlhistoryDescCreatedAt := controlhistoryFields[3].Descriptor() + // controlhistory.DefaultCreatedAt holds the default value on creation for the created_at field. + controlhistory.DefaultCreatedAt = controlhistoryDescCreatedAt.Default.(func() time.Time) + // controlhistoryDescUpdatedAt is the schema descriptor for updated_at field. + controlhistoryDescUpdatedAt := controlhistoryFields[4].Descriptor() + // controlhistory.DefaultUpdatedAt holds the default value on creation for the updated_at field. + controlhistory.DefaultUpdatedAt = controlhistoryDescUpdatedAt.Default.(func() time.Time) + // controlhistory.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + controlhistory.UpdateDefaultUpdatedAt = controlhistoryDescUpdatedAt.UpdateDefault.(func() time.Time) + // controlhistoryDescMappingID is the schema descriptor for mapping_id field. + controlhistoryDescMappingID := controlhistoryFields[10].Descriptor() + // controlhistory.DefaultMappingID holds the default value on creation for the mapping_id field. + controlhistory.DefaultMappingID = controlhistoryDescMappingID.Default.(func() string) + // controlhistoryDescTags is the schema descriptor for tags field. + controlhistoryDescTags := controlhistoryFields[11].Descriptor() + // controlhistory.DefaultTags holds the default value on creation for the tags field. + controlhistory.DefaultTags = controlhistoryDescTags.Default.([]string) + // controlhistoryDescID is the schema descriptor for id field. + controlhistoryDescID := controlhistoryFields[9].Descriptor() + // controlhistory.DefaultID holds the default value on creation for the id field. + controlhistory.DefaultID = controlhistoryDescID.Default.(func() string) + controlobjectiveMixin := schema.ControlObjective{}.Mixin() + controlobjectiveMixinHooks0 := controlobjectiveMixin[0].Hooks() + controlobjectiveMixinHooks1 := controlobjectiveMixin[1].Hooks() + controlobjective.Hooks[0] = controlobjectiveMixinHooks0[0] + controlobjective.Hooks[1] = controlobjectiveMixinHooks1[0] + controlobjectiveMixinInters1 := controlobjectiveMixin[1].Interceptors() + controlobjective.Interceptors[0] = controlobjectiveMixinInters1[0] + controlobjectiveMixinFields0 := controlobjectiveMixin[0].Fields() + _ = controlobjectiveMixinFields0 + controlobjectiveMixinFields2 := controlobjectiveMixin[2].Fields() + _ = controlobjectiveMixinFields2 + controlobjectiveMixinFields3 := controlobjectiveMixin[3].Fields() + _ = controlobjectiveMixinFields3 + controlobjectiveFields := schema.ControlObjective{}.Fields() + _ = controlobjectiveFields + // controlobjectiveDescCreatedAt is the schema descriptor for created_at field. + controlobjectiveDescCreatedAt := controlobjectiveMixinFields0[0].Descriptor() + // controlobjective.DefaultCreatedAt holds the default value on creation for the created_at field. + controlobjective.DefaultCreatedAt = controlobjectiveDescCreatedAt.Default.(func() time.Time) + // controlobjectiveDescUpdatedAt is the schema descriptor for updated_at field. + controlobjectiveDescUpdatedAt := controlobjectiveMixinFields0[1].Descriptor() + // controlobjective.DefaultUpdatedAt holds the default value on creation for the updated_at field. + controlobjective.DefaultUpdatedAt = controlobjectiveDescUpdatedAt.Default.(func() time.Time) + // controlobjective.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + controlobjective.UpdateDefaultUpdatedAt = controlobjectiveDescUpdatedAt.UpdateDefault.(func() time.Time) + // controlobjectiveDescMappingID is the schema descriptor for mapping_id field. + controlobjectiveDescMappingID := controlobjectiveMixinFields2[1].Descriptor() + // controlobjective.DefaultMappingID holds the default value on creation for the mapping_id field. + controlobjective.DefaultMappingID = controlobjectiveDescMappingID.Default.(func() string) + // controlobjectiveDescTags is the schema descriptor for tags field. + controlobjectiveDescTags := controlobjectiveMixinFields3[0].Descriptor() + // controlobjective.DefaultTags holds the default value on creation for the tags field. + controlobjective.DefaultTags = controlobjectiveDescTags.Default.([]string) + // controlobjectiveDescID is the schema descriptor for id field. + controlobjectiveDescID := controlobjectiveMixinFields2[0].Descriptor() + // controlobjective.DefaultID holds the default value on creation for the id field. + controlobjective.DefaultID = controlobjectiveDescID.Default.(func() string) + controlobjectivehistoryFields := schema.ControlObjectiveHistory{}.Fields() + _ = controlobjectivehistoryFields + // controlobjectivehistoryDescHistoryTime is the schema descriptor for history_time field. + controlobjectivehistoryDescHistoryTime := controlobjectivehistoryFields[0].Descriptor() + // controlobjectivehistory.DefaultHistoryTime holds the default value on creation for the history_time field. + controlobjectivehistory.DefaultHistoryTime = controlobjectivehistoryDescHistoryTime.Default.(func() time.Time) + // controlobjectivehistoryDescCreatedAt is the schema descriptor for created_at field. + controlobjectivehistoryDescCreatedAt := controlobjectivehistoryFields[3].Descriptor() + // controlobjectivehistory.DefaultCreatedAt holds the default value on creation for the created_at field. + controlobjectivehistory.DefaultCreatedAt = controlobjectivehistoryDescCreatedAt.Default.(func() time.Time) + // controlobjectivehistoryDescUpdatedAt is the schema descriptor for updated_at field. + controlobjectivehistoryDescUpdatedAt := controlobjectivehistoryFields[4].Descriptor() + // controlobjectivehistory.DefaultUpdatedAt holds the default value on creation for the updated_at field. + controlobjectivehistory.DefaultUpdatedAt = controlobjectivehistoryDescUpdatedAt.Default.(func() time.Time) + // controlobjectivehistory.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + controlobjectivehistory.UpdateDefaultUpdatedAt = controlobjectivehistoryDescUpdatedAt.UpdateDefault.(func() time.Time) + // controlobjectivehistoryDescMappingID is the schema descriptor for mapping_id field. + controlobjectivehistoryDescMappingID := controlobjectivehistoryFields[10].Descriptor() + // controlobjectivehistory.DefaultMappingID holds the default value on creation for the mapping_id field. + controlobjectivehistory.DefaultMappingID = controlobjectivehistoryDescMappingID.Default.(func() string) + // controlobjectivehistoryDescTags is the schema descriptor for tags field. + controlobjectivehistoryDescTags := controlobjectivehistoryFields[11].Descriptor() + // controlobjectivehistory.DefaultTags holds the default value on creation for the tags field. + controlobjectivehistory.DefaultTags = controlobjectivehistoryDescTags.Default.([]string) + // controlobjectivehistoryDescID is the schema descriptor for id field. + controlobjectivehistoryDescID := controlobjectivehistoryFields[9].Descriptor() + // controlobjectivehistory.DefaultID holds the default value on creation for the id field. + controlobjectivehistory.DefaultID = controlobjectivehistoryDescID.Default.(func() string) documentdataMixin := schema.DocumentData{}.Mixin() documentdata.Policy = privacy.NewPolicies(schema.DocumentData{}) documentdata.Hooks[0] = func(next ent.Mutator) ent.Mutator { @@ -1791,6 +2004,71 @@ func init() { integrationhistoryDescID := integrationhistoryFields[7].Descriptor() // integrationhistory.DefaultID holds the default value on creation for the id field. integrationhistory.DefaultID = integrationhistoryDescID.Default.(func() string) + internalpolicyMixin := schema.InternalPolicy{}.Mixin() + internalpolicyMixinHooks0 := internalpolicyMixin[0].Hooks() + internalpolicyMixinHooks1 := internalpolicyMixin[1].Hooks() + internalpolicy.Hooks[0] = internalpolicyMixinHooks0[0] + internalpolicy.Hooks[1] = internalpolicyMixinHooks1[0] + internalpolicyMixinInters1 := internalpolicyMixin[1].Interceptors() + internalpolicy.Interceptors[0] = internalpolicyMixinInters1[0] + internalpolicyMixinFields0 := internalpolicyMixin[0].Fields() + _ = internalpolicyMixinFields0 + internalpolicyMixinFields2 := internalpolicyMixin[2].Fields() + _ = internalpolicyMixinFields2 + internalpolicyMixinFields3 := internalpolicyMixin[3].Fields() + _ = internalpolicyMixinFields3 + internalpolicyFields := schema.InternalPolicy{}.Fields() + _ = internalpolicyFields + // internalpolicyDescCreatedAt is the schema descriptor for created_at field. + internalpolicyDescCreatedAt := internalpolicyMixinFields0[0].Descriptor() + // internalpolicy.DefaultCreatedAt holds the default value on creation for the created_at field. + internalpolicy.DefaultCreatedAt = internalpolicyDescCreatedAt.Default.(func() time.Time) + // internalpolicyDescUpdatedAt is the schema descriptor for updated_at field. + internalpolicyDescUpdatedAt := internalpolicyMixinFields0[1].Descriptor() + // internalpolicy.DefaultUpdatedAt holds the default value on creation for the updated_at field. + internalpolicy.DefaultUpdatedAt = internalpolicyDescUpdatedAt.Default.(func() time.Time) + // internalpolicy.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + internalpolicy.UpdateDefaultUpdatedAt = internalpolicyDescUpdatedAt.UpdateDefault.(func() time.Time) + // internalpolicyDescMappingID is the schema descriptor for mapping_id field. + internalpolicyDescMappingID := internalpolicyMixinFields2[1].Descriptor() + // internalpolicy.DefaultMappingID holds the default value on creation for the mapping_id field. + internalpolicy.DefaultMappingID = internalpolicyDescMappingID.Default.(func() string) + // internalpolicyDescTags is the schema descriptor for tags field. + internalpolicyDescTags := internalpolicyMixinFields3[0].Descriptor() + // internalpolicy.DefaultTags holds the default value on creation for the tags field. + internalpolicy.DefaultTags = internalpolicyDescTags.Default.([]string) + // internalpolicyDescID is the schema descriptor for id field. + internalpolicyDescID := internalpolicyMixinFields2[0].Descriptor() + // internalpolicy.DefaultID holds the default value on creation for the id field. + internalpolicy.DefaultID = internalpolicyDescID.Default.(func() string) + internalpolicyhistoryFields := schema.InternalPolicyHistory{}.Fields() + _ = internalpolicyhistoryFields + // internalpolicyhistoryDescHistoryTime is the schema descriptor for history_time field. + internalpolicyhistoryDescHistoryTime := internalpolicyhistoryFields[0].Descriptor() + // internalpolicyhistory.DefaultHistoryTime holds the default value on creation for the history_time field. + internalpolicyhistory.DefaultHistoryTime = internalpolicyhistoryDescHistoryTime.Default.(func() time.Time) + // internalpolicyhistoryDescCreatedAt is the schema descriptor for created_at field. + internalpolicyhistoryDescCreatedAt := internalpolicyhistoryFields[3].Descriptor() + // internalpolicyhistory.DefaultCreatedAt holds the default value on creation for the created_at field. + internalpolicyhistory.DefaultCreatedAt = internalpolicyhistoryDescCreatedAt.Default.(func() time.Time) + // internalpolicyhistoryDescUpdatedAt is the schema descriptor for updated_at field. + internalpolicyhistoryDescUpdatedAt := internalpolicyhistoryFields[4].Descriptor() + // internalpolicyhistory.DefaultUpdatedAt holds the default value on creation for the updated_at field. + internalpolicyhistory.DefaultUpdatedAt = internalpolicyhistoryDescUpdatedAt.Default.(func() time.Time) + // internalpolicyhistory.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + internalpolicyhistory.UpdateDefaultUpdatedAt = internalpolicyhistoryDescUpdatedAt.UpdateDefault.(func() time.Time) + // internalpolicyhistoryDescMappingID is the schema descriptor for mapping_id field. + internalpolicyhistoryDescMappingID := internalpolicyhistoryFields[10].Descriptor() + // internalpolicyhistory.DefaultMappingID holds the default value on creation for the mapping_id field. + internalpolicyhistory.DefaultMappingID = internalpolicyhistoryDescMappingID.Default.(func() string) + // internalpolicyhistoryDescTags is the schema descriptor for tags field. + internalpolicyhistoryDescTags := internalpolicyhistoryFields[11].Descriptor() + // internalpolicyhistory.DefaultTags holds the default value on creation for the tags field. + internalpolicyhistory.DefaultTags = internalpolicyhistoryDescTags.Default.([]string) + // internalpolicyhistoryDescID is the schema descriptor for id field. + internalpolicyhistoryDescID := internalpolicyhistoryFields[9].Descriptor() + // internalpolicyhistory.DefaultID holds the default value on creation for the id field. + internalpolicyhistory.DefaultID = internalpolicyhistoryDescID.Default.(func() string) inviteMixin := schema.Invite{}.Mixin() invite.Policy = privacy.NewPolicies(schema.Invite{}) invite.Hooks[0] = func(next ent.Mutator) ent.Mutator { @@ -1887,6 +2165,71 @@ func init() { inviteDescID := inviteMixinFields1[0].Descriptor() // invite.DefaultID holds the default value on creation for the id field. invite.DefaultID = inviteDescID.Default.(func() string) + narrativeMixin := schema.Narrative{}.Mixin() + narrativeMixinHooks0 := narrativeMixin[0].Hooks() + narrativeMixinHooks1 := narrativeMixin[1].Hooks() + narrative.Hooks[0] = narrativeMixinHooks0[0] + narrative.Hooks[1] = narrativeMixinHooks1[0] + narrativeMixinInters1 := narrativeMixin[1].Interceptors() + narrative.Interceptors[0] = narrativeMixinInters1[0] + narrativeMixinFields0 := narrativeMixin[0].Fields() + _ = narrativeMixinFields0 + narrativeMixinFields2 := narrativeMixin[2].Fields() + _ = narrativeMixinFields2 + narrativeMixinFields3 := narrativeMixin[3].Fields() + _ = narrativeMixinFields3 + narrativeFields := schema.Narrative{}.Fields() + _ = narrativeFields + // narrativeDescCreatedAt is the schema descriptor for created_at field. + narrativeDescCreatedAt := narrativeMixinFields0[0].Descriptor() + // narrative.DefaultCreatedAt holds the default value on creation for the created_at field. + narrative.DefaultCreatedAt = narrativeDescCreatedAt.Default.(func() time.Time) + // narrativeDescUpdatedAt is the schema descriptor for updated_at field. + narrativeDescUpdatedAt := narrativeMixinFields0[1].Descriptor() + // narrative.DefaultUpdatedAt holds the default value on creation for the updated_at field. + narrative.DefaultUpdatedAt = narrativeDescUpdatedAt.Default.(func() time.Time) + // narrative.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + narrative.UpdateDefaultUpdatedAt = narrativeDescUpdatedAt.UpdateDefault.(func() time.Time) + // narrativeDescMappingID is the schema descriptor for mapping_id field. + narrativeDescMappingID := narrativeMixinFields2[1].Descriptor() + // narrative.DefaultMappingID holds the default value on creation for the mapping_id field. + narrative.DefaultMappingID = narrativeDescMappingID.Default.(func() string) + // narrativeDescTags is the schema descriptor for tags field. + narrativeDescTags := narrativeMixinFields3[0].Descriptor() + // narrative.DefaultTags holds the default value on creation for the tags field. + narrative.DefaultTags = narrativeDescTags.Default.([]string) + // narrativeDescID is the schema descriptor for id field. + narrativeDescID := narrativeMixinFields2[0].Descriptor() + // narrative.DefaultID holds the default value on creation for the id field. + narrative.DefaultID = narrativeDescID.Default.(func() string) + narrativehistoryFields := schema.NarrativeHistory{}.Fields() + _ = narrativehistoryFields + // narrativehistoryDescHistoryTime is the schema descriptor for history_time field. + narrativehistoryDescHistoryTime := narrativehistoryFields[0].Descriptor() + // narrativehistory.DefaultHistoryTime holds the default value on creation for the history_time field. + narrativehistory.DefaultHistoryTime = narrativehistoryDescHistoryTime.Default.(func() time.Time) + // narrativehistoryDescCreatedAt is the schema descriptor for created_at field. + narrativehistoryDescCreatedAt := narrativehistoryFields[3].Descriptor() + // narrativehistory.DefaultCreatedAt holds the default value on creation for the created_at field. + narrativehistory.DefaultCreatedAt = narrativehistoryDescCreatedAt.Default.(func() time.Time) + // narrativehistoryDescUpdatedAt is the schema descriptor for updated_at field. + narrativehistoryDescUpdatedAt := narrativehistoryFields[4].Descriptor() + // narrativehistory.DefaultUpdatedAt holds the default value on creation for the updated_at field. + narrativehistory.DefaultUpdatedAt = narrativehistoryDescUpdatedAt.Default.(func() time.Time) + // narrativehistory.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + narrativehistory.UpdateDefaultUpdatedAt = narrativehistoryDescUpdatedAt.UpdateDefault.(func() time.Time) + // narrativehistoryDescMappingID is the schema descriptor for mapping_id field. + narrativehistoryDescMappingID := narrativehistoryFields[10].Descriptor() + // narrativehistory.DefaultMappingID holds the default value on creation for the mapping_id field. + narrativehistory.DefaultMappingID = narrativehistoryDescMappingID.Default.(func() string) + // narrativehistoryDescTags is the schema descriptor for tags field. + narrativehistoryDescTags := narrativehistoryFields[11].Descriptor() + // narrativehistory.DefaultTags holds the default value on creation for the tags field. + narrativehistory.DefaultTags = narrativehistoryDescTags.Default.([]string) + // narrativehistoryDescID is the schema descriptor for id field. + narrativehistoryDescID := narrativehistoryFields[9].Descriptor() + // narrativehistory.DefaultID holds the default value on creation for the id field. + narrativehistory.DefaultID = narrativehistoryDescID.Default.(func() string) noteMixin := schema.Note{}.Mixin() note.Policy = privacy.NewPolicies(schema.Note{}) note.Hooks[0] = func(next ent.Mutator) ent.Mutator { @@ -2620,6 +2963,266 @@ func init() { personalaccesstokenDescID := personalaccesstokenMixinFields2[0].Descriptor() // personalaccesstoken.DefaultID holds the default value on creation for the id field. personalaccesstoken.DefaultID = personalaccesstokenDescID.Default.(func() string) + procedureMixin := schema.Procedure{}.Mixin() + procedureMixinHooks0 := procedureMixin[0].Hooks() + procedureMixinHooks1 := procedureMixin[1].Hooks() + procedure.Hooks[0] = procedureMixinHooks0[0] + procedure.Hooks[1] = procedureMixinHooks1[0] + procedureMixinInters1 := procedureMixin[1].Interceptors() + procedure.Interceptors[0] = procedureMixinInters1[0] + procedureMixinFields0 := procedureMixin[0].Fields() + _ = procedureMixinFields0 + procedureMixinFields2 := procedureMixin[2].Fields() + _ = procedureMixinFields2 + procedureMixinFields3 := procedureMixin[3].Fields() + _ = procedureMixinFields3 + procedureFields := schema.Procedure{}.Fields() + _ = procedureFields + // procedureDescCreatedAt is the schema descriptor for created_at field. + procedureDescCreatedAt := procedureMixinFields0[0].Descriptor() + // procedure.DefaultCreatedAt holds the default value on creation for the created_at field. + procedure.DefaultCreatedAt = procedureDescCreatedAt.Default.(func() time.Time) + // procedureDescUpdatedAt is the schema descriptor for updated_at field. + procedureDescUpdatedAt := procedureMixinFields0[1].Descriptor() + // procedure.DefaultUpdatedAt holds the default value on creation for the updated_at field. + procedure.DefaultUpdatedAt = procedureDescUpdatedAt.Default.(func() time.Time) + // procedure.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + procedure.UpdateDefaultUpdatedAt = procedureDescUpdatedAt.UpdateDefault.(func() time.Time) + // procedureDescMappingID is the schema descriptor for mapping_id field. + procedureDescMappingID := procedureMixinFields2[1].Descriptor() + // procedure.DefaultMappingID holds the default value on creation for the mapping_id field. + procedure.DefaultMappingID = procedureDescMappingID.Default.(func() string) + // procedureDescTags is the schema descriptor for tags field. + procedureDescTags := procedureMixinFields3[0].Descriptor() + // procedure.DefaultTags holds the default value on creation for the tags field. + procedure.DefaultTags = procedureDescTags.Default.([]string) + // procedureDescID is the schema descriptor for id field. + procedureDescID := procedureMixinFields2[0].Descriptor() + // procedure.DefaultID holds the default value on creation for the id field. + procedure.DefaultID = procedureDescID.Default.(func() string) + procedurehistoryFields := schema.ProcedureHistory{}.Fields() + _ = procedurehistoryFields + // procedurehistoryDescHistoryTime is the schema descriptor for history_time field. + procedurehistoryDescHistoryTime := procedurehistoryFields[0].Descriptor() + // procedurehistory.DefaultHistoryTime holds the default value on creation for the history_time field. + procedurehistory.DefaultHistoryTime = procedurehistoryDescHistoryTime.Default.(func() time.Time) + // procedurehistoryDescCreatedAt is the schema descriptor for created_at field. + procedurehistoryDescCreatedAt := procedurehistoryFields[3].Descriptor() + // procedurehistory.DefaultCreatedAt holds the default value on creation for the created_at field. + procedurehistory.DefaultCreatedAt = procedurehistoryDescCreatedAt.Default.(func() time.Time) + // procedurehistoryDescUpdatedAt is the schema descriptor for updated_at field. + procedurehistoryDescUpdatedAt := procedurehistoryFields[4].Descriptor() + // procedurehistory.DefaultUpdatedAt holds the default value on creation for the updated_at field. + procedurehistory.DefaultUpdatedAt = procedurehistoryDescUpdatedAt.Default.(func() time.Time) + // procedurehistory.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + procedurehistory.UpdateDefaultUpdatedAt = procedurehistoryDescUpdatedAt.UpdateDefault.(func() time.Time) + // procedurehistoryDescMappingID is the schema descriptor for mapping_id field. + procedurehistoryDescMappingID := procedurehistoryFields[10].Descriptor() + // procedurehistory.DefaultMappingID holds the default value on creation for the mapping_id field. + procedurehistory.DefaultMappingID = procedurehistoryDescMappingID.Default.(func() string) + // procedurehistoryDescTags is the schema descriptor for tags field. + procedurehistoryDescTags := procedurehistoryFields[11].Descriptor() + // procedurehistory.DefaultTags holds the default value on creation for the tags field. + procedurehistory.DefaultTags = procedurehistoryDescTags.Default.([]string) + // procedurehistoryDescID is the schema descriptor for id field. + procedurehistoryDescID := procedurehistoryFields[9].Descriptor() + // procedurehistory.DefaultID holds the default value on creation for the id field. + procedurehistory.DefaultID = procedurehistoryDescID.Default.(func() string) + riskMixin := schema.Risk{}.Mixin() + riskMixinHooks0 := riskMixin[0].Hooks() + riskMixinHooks1 := riskMixin[1].Hooks() + risk.Hooks[0] = riskMixinHooks0[0] + risk.Hooks[1] = riskMixinHooks1[0] + riskMixinInters1 := riskMixin[1].Interceptors() + risk.Interceptors[0] = riskMixinInters1[0] + riskMixinFields0 := riskMixin[0].Fields() + _ = riskMixinFields0 + riskMixinFields2 := riskMixin[2].Fields() + _ = riskMixinFields2 + riskMixinFields3 := riskMixin[3].Fields() + _ = riskMixinFields3 + riskFields := schema.Risk{}.Fields() + _ = riskFields + // riskDescCreatedAt is the schema descriptor for created_at field. + riskDescCreatedAt := riskMixinFields0[0].Descriptor() + // risk.DefaultCreatedAt holds the default value on creation for the created_at field. + risk.DefaultCreatedAt = riskDescCreatedAt.Default.(func() time.Time) + // riskDescUpdatedAt is the schema descriptor for updated_at field. + riskDescUpdatedAt := riskMixinFields0[1].Descriptor() + // risk.DefaultUpdatedAt holds the default value on creation for the updated_at field. + risk.DefaultUpdatedAt = riskDescUpdatedAt.Default.(func() time.Time) + // risk.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + risk.UpdateDefaultUpdatedAt = riskDescUpdatedAt.UpdateDefault.(func() time.Time) + // riskDescMappingID is the schema descriptor for mapping_id field. + riskDescMappingID := riskMixinFields2[1].Descriptor() + // risk.DefaultMappingID holds the default value on creation for the mapping_id field. + risk.DefaultMappingID = riskDescMappingID.Default.(func() string) + // riskDescTags is the schema descriptor for tags field. + riskDescTags := riskMixinFields3[0].Descriptor() + // risk.DefaultTags holds the default value on creation for the tags field. + risk.DefaultTags = riskDescTags.Default.([]string) + // riskDescID is the schema descriptor for id field. + riskDescID := riskMixinFields2[0].Descriptor() + // risk.DefaultID holds the default value on creation for the id field. + risk.DefaultID = riskDescID.Default.(func() string) + riskhistoryFields := schema.RiskHistory{}.Fields() + _ = riskhistoryFields + // riskhistoryDescHistoryTime is the schema descriptor for history_time field. + riskhistoryDescHistoryTime := riskhistoryFields[0].Descriptor() + // riskhistory.DefaultHistoryTime holds the default value on creation for the history_time field. + riskhistory.DefaultHistoryTime = riskhistoryDescHistoryTime.Default.(func() time.Time) + // riskhistoryDescCreatedAt is the schema descriptor for created_at field. + riskhistoryDescCreatedAt := riskhistoryFields[3].Descriptor() + // riskhistory.DefaultCreatedAt holds the default value on creation for the created_at field. + riskhistory.DefaultCreatedAt = riskhistoryDescCreatedAt.Default.(func() time.Time) + // riskhistoryDescUpdatedAt is the schema descriptor for updated_at field. + riskhistoryDescUpdatedAt := riskhistoryFields[4].Descriptor() + // riskhistory.DefaultUpdatedAt holds the default value on creation for the updated_at field. + riskhistory.DefaultUpdatedAt = riskhistoryDescUpdatedAt.Default.(func() time.Time) + // riskhistory.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + riskhistory.UpdateDefaultUpdatedAt = riskhistoryDescUpdatedAt.UpdateDefault.(func() time.Time) + // riskhistoryDescMappingID is the schema descriptor for mapping_id field. + riskhistoryDescMappingID := riskhistoryFields[10].Descriptor() + // riskhistory.DefaultMappingID holds the default value on creation for the mapping_id field. + riskhistory.DefaultMappingID = riskhistoryDescMappingID.Default.(func() string) + // riskhistoryDescTags is the schema descriptor for tags field. + riskhistoryDescTags := riskhistoryFields[11].Descriptor() + // riskhistory.DefaultTags holds the default value on creation for the tags field. + riskhistory.DefaultTags = riskhistoryDescTags.Default.([]string) + // riskhistoryDescID is the schema descriptor for id field. + riskhistoryDescID := riskhistoryFields[9].Descriptor() + // riskhistory.DefaultID holds the default value on creation for the id field. + riskhistory.DefaultID = riskhistoryDescID.Default.(func() string) + standardMixin := schema.Standard{}.Mixin() + standardMixinHooks0 := standardMixin[0].Hooks() + standardMixinHooks1 := standardMixin[1].Hooks() + standard.Hooks[0] = standardMixinHooks0[0] + standard.Hooks[1] = standardMixinHooks1[0] + standardMixinInters1 := standardMixin[1].Interceptors() + standard.Interceptors[0] = standardMixinInters1[0] + standardMixinFields0 := standardMixin[0].Fields() + _ = standardMixinFields0 + standardMixinFields2 := standardMixin[2].Fields() + _ = standardMixinFields2 + standardMixinFields3 := standardMixin[3].Fields() + _ = standardMixinFields3 + standardFields := schema.Standard{}.Fields() + _ = standardFields + // standardDescCreatedAt is the schema descriptor for created_at field. + standardDescCreatedAt := standardMixinFields0[0].Descriptor() + // standard.DefaultCreatedAt holds the default value on creation for the created_at field. + standard.DefaultCreatedAt = standardDescCreatedAt.Default.(func() time.Time) + // standardDescUpdatedAt is the schema descriptor for updated_at field. + standardDescUpdatedAt := standardMixinFields0[1].Descriptor() + // standard.DefaultUpdatedAt holds the default value on creation for the updated_at field. + standard.DefaultUpdatedAt = standardDescUpdatedAt.Default.(func() time.Time) + // standard.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + standard.UpdateDefaultUpdatedAt = standardDescUpdatedAt.UpdateDefault.(func() time.Time) + // standardDescMappingID is the schema descriptor for mapping_id field. + standardDescMappingID := standardMixinFields2[1].Descriptor() + // standard.DefaultMappingID holds the default value on creation for the mapping_id field. + standard.DefaultMappingID = standardDescMappingID.Default.(func() string) + // standardDescTags is the schema descriptor for tags field. + standardDescTags := standardMixinFields3[0].Descriptor() + // standard.DefaultTags holds the default value on creation for the tags field. + standard.DefaultTags = standardDescTags.Default.([]string) + // standardDescID is the schema descriptor for id field. + standardDescID := standardMixinFields2[0].Descriptor() + // standard.DefaultID holds the default value on creation for the id field. + standard.DefaultID = standardDescID.Default.(func() string) + standardhistoryFields := schema.StandardHistory{}.Fields() + _ = standardhistoryFields + // standardhistoryDescHistoryTime is the schema descriptor for history_time field. + standardhistoryDescHistoryTime := standardhistoryFields[0].Descriptor() + // standardhistory.DefaultHistoryTime holds the default value on creation for the history_time field. + standardhistory.DefaultHistoryTime = standardhistoryDescHistoryTime.Default.(func() time.Time) + // standardhistoryDescCreatedAt is the schema descriptor for created_at field. + standardhistoryDescCreatedAt := standardhistoryFields[3].Descriptor() + // standardhistory.DefaultCreatedAt holds the default value on creation for the created_at field. + standardhistory.DefaultCreatedAt = standardhistoryDescCreatedAt.Default.(func() time.Time) + // standardhistoryDescUpdatedAt is the schema descriptor for updated_at field. + standardhistoryDescUpdatedAt := standardhistoryFields[4].Descriptor() + // standardhistory.DefaultUpdatedAt holds the default value on creation for the updated_at field. + standardhistory.DefaultUpdatedAt = standardhistoryDescUpdatedAt.Default.(func() time.Time) + // standardhistory.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + standardhistory.UpdateDefaultUpdatedAt = standardhistoryDescUpdatedAt.UpdateDefault.(func() time.Time) + // standardhistoryDescMappingID is the schema descriptor for mapping_id field. + standardhistoryDescMappingID := standardhistoryFields[10].Descriptor() + // standardhistory.DefaultMappingID holds the default value on creation for the mapping_id field. + standardhistory.DefaultMappingID = standardhistoryDescMappingID.Default.(func() string) + // standardhistoryDescTags is the schema descriptor for tags field. + standardhistoryDescTags := standardhistoryFields[11].Descriptor() + // standardhistory.DefaultTags holds the default value on creation for the tags field. + standardhistory.DefaultTags = standardhistoryDescTags.Default.([]string) + // standardhistoryDescID is the schema descriptor for id field. + standardhistoryDescID := standardhistoryFields[9].Descriptor() + // standardhistory.DefaultID holds the default value on creation for the id field. + standardhistory.DefaultID = standardhistoryDescID.Default.(func() string) + subcontrolMixin := schema.Subcontrol{}.Mixin() + subcontrolMixinHooks0 := subcontrolMixin[0].Hooks() + subcontrolMixinHooks1 := subcontrolMixin[1].Hooks() + subcontrol.Hooks[0] = subcontrolMixinHooks0[0] + subcontrol.Hooks[1] = subcontrolMixinHooks1[0] + subcontrolMixinInters1 := subcontrolMixin[1].Interceptors() + subcontrol.Interceptors[0] = subcontrolMixinInters1[0] + subcontrolMixinFields0 := subcontrolMixin[0].Fields() + _ = subcontrolMixinFields0 + subcontrolMixinFields2 := subcontrolMixin[2].Fields() + _ = subcontrolMixinFields2 + subcontrolMixinFields3 := subcontrolMixin[3].Fields() + _ = subcontrolMixinFields3 + subcontrolFields := schema.Subcontrol{}.Fields() + _ = subcontrolFields + // subcontrolDescCreatedAt is the schema descriptor for created_at field. + subcontrolDescCreatedAt := subcontrolMixinFields0[0].Descriptor() + // subcontrol.DefaultCreatedAt holds the default value on creation for the created_at field. + subcontrol.DefaultCreatedAt = subcontrolDescCreatedAt.Default.(func() time.Time) + // subcontrolDescUpdatedAt is the schema descriptor for updated_at field. + subcontrolDescUpdatedAt := subcontrolMixinFields0[1].Descriptor() + // subcontrol.DefaultUpdatedAt holds the default value on creation for the updated_at field. + subcontrol.DefaultUpdatedAt = subcontrolDescUpdatedAt.Default.(func() time.Time) + // subcontrol.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + subcontrol.UpdateDefaultUpdatedAt = subcontrolDescUpdatedAt.UpdateDefault.(func() time.Time) + // subcontrolDescMappingID is the schema descriptor for mapping_id field. + subcontrolDescMappingID := subcontrolMixinFields2[1].Descriptor() + // subcontrol.DefaultMappingID holds the default value on creation for the mapping_id field. + subcontrol.DefaultMappingID = subcontrolDescMappingID.Default.(func() string) + // subcontrolDescTags is the schema descriptor for tags field. + subcontrolDescTags := subcontrolMixinFields3[0].Descriptor() + // subcontrol.DefaultTags holds the default value on creation for the tags field. + subcontrol.DefaultTags = subcontrolDescTags.Default.([]string) + // subcontrolDescID is the schema descriptor for id field. + subcontrolDescID := subcontrolMixinFields2[0].Descriptor() + // subcontrol.DefaultID holds the default value on creation for the id field. + subcontrol.DefaultID = subcontrolDescID.Default.(func() string) + subcontrolhistoryFields := schema.SubcontrolHistory{}.Fields() + _ = subcontrolhistoryFields + // subcontrolhistoryDescHistoryTime is the schema descriptor for history_time field. + subcontrolhistoryDescHistoryTime := subcontrolhistoryFields[0].Descriptor() + // subcontrolhistory.DefaultHistoryTime holds the default value on creation for the history_time field. + subcontrolhistory.DefaultHistoryTime = subcontrolhistoryDescHistoryTime.Default.(func() time.Time) + // subcontrolhistoryDescCreatedAt is the schema descriptor for created_at field. + subcontrolhistoryDescCreatedAt := subcontrolhistoryFields[3].Descriptor() + // subcontrolhistory.DefaultCreatedAt holds the default value on creation for the created_at field. + subcontrolhistory.DefaultCreatedAt = subcontrolhistoryDescCreatedAt.Default.(func() time.Time) + // subcontrolhistoryDescUpdatedAt is the schema descriptor for updated_at field. + subcontrolhistoryDescUpdatedAt := subcontrolhistoryFields[4].Descriptor() + // subcontrolhistory.DefaultUpdatedAt holds the default value on creation for the updated_at field. + subcontrolhistory.DefaultUpdatedAt = subcontrolhistoryDescUpdatedAt.Default.(func() time.Time) + // subcontrolhistory.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + subcontrolhistory.UpdateDefaultUpdatedAt = subcontrolhistoryDescUpdatedAt.UpdateDefault.(func() time.Time) + // subcontrolhistoryDescMappingID is the schema descriptor for mapping_id field. + subcontrolhistoryDescMappingID := subcontrolhistoryFields[10].Descriptor() + // subcontrolhistory.DefaultMappingID holds the default value on creation for the mapping_id field. + subcontrolhistory.DefaultMappingID = subcontrolhistoryDescMappingID.Default.(func() string) + // subcontrolhistoryDescTags is the schema descriptor for tags field. + subcontrolhistoryDescTags := subcontrolhistoryFields[11].Descriptor() + // subcontrolhistory.DefaultTags holds the default value on creation for the tags field. + subcontrolhistory.DefaultTags = subcontrolhistoryDescTags.Default.([]string) + // subcontrolhistoryDescID is the schema descriptor for id field. + subcontrolhistoryDescID := subcontrolhistoryFields[9].Descriptor() + // subcontrolhistory.DefaultID holds the default value on creation for the id field. + subcontrolhistory.DefaultID = subcontrolhistoryDescID.Default.(func() string) subscriberMixin := schema.Subscriber{}.Mixin() subscriber.Policy = privacy.NewPolicies(schema.Subscriber{}) subscriber.Hooks[0] = func(next ent.Mutator) ent.Mutator { diff --git a/internal/ent/generated/standard.go b/internal/ent/generated/standard.go new file mode 100644 index 00000000..4ca45b86 --- /dev/null +++ b/internal/ent/generated/standard.go @@ -0,0 +1,475 @@ +// 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/internal/ent/generated/standard" +) + +// Standard is the model entity for the Standard schema. +type Standard 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + Name string `json:"name,omitempty"` + // description of the standard + Description string `json:"description,omitempty"` + // family of the standard, e.g. 800-53, 800-171, 27001, etc. + Family string `json:"family,omitempty"` + // status of the standard - active, deprecated, etc. + Status string `json:"status,omitempty"` + // type of the standard - security, privacy, etc. + StandardType string `json:"standard_type,omitempty"` + // version of the standard + Version string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope string `json:"purpose_and_scope,omitempty"` + // background of the standard + Background string `json:"background,omitempty"` + // which controls are satisfied by the standard + Satisfies string `json:"satisfies,omitempty"` + // json data with details of the standard + Details map[string]interface{} `json:"details,omitempty"` + // Edges holds the relations/edges for other nodes in the graph. + // The values are being populated by the StandardQuery when eager-loading is set. + Edges StandardEdges `json:"edges"` + selectValues sql.SelectValues +} + +// StandardEdges holds the relations/edges for other nodes in the graph. +type StandardEdges struct { + // Controlobjectives holds the value of the controlobjectives edge. + Controlobjectives []*ControlObjective `json:"controlobjectives,omitempty"` + // Controls holds the value of the controls edge. + Controls []*Control `json:"controls,omitempty"` + // Procedures holds the value of the procedures edge. + Procedures []*Procedure `json:"procedures,omitempty"` + // Actionplans holds the value of the actionplans edge. + Actionplans []*ActionPlan `json:"actionplans,omitempty"` + // loadedTypes holds the information for reporting if a + // type was loaded (or requested) in eager-loading or not. + loadedTypes [4]bool + // totalCount holds the count of the edges above. + totalCount [4]map[string]int + + namedControlobjectives map[string][]*ControlObjective + namedControls map[string][]*Control + namedProcedures map[string][]*Procedure + namedActionplans map[string][]*ActionPlan +} + +// ControlobjectivesOrErr returns the Controlobjectives value or an error if the edge +// was not loaded in eager-loading. +func (e StandardEdges) ControlobjectivesOrErr() ([]*ControlObjective, error) { + if e.loadedTypes[0] { + return e.Controlobjectives, nil + } + return nil, &NotLoadedError{edge: "controlobjectives"} +} + +// ControlsOrErr returns the Controls value or an error if the edge +// was not loaded in eager-loading. +func (e StandardEdges) ControlsOrErr() ([]*Control, error) { + if e.loadedTypes[1] { + return e.Controls, nil + } + return nil, &NotLoadedError{edge: "controls"} +} + +// ProceduresOrErr returns the Procedures value or an error if the edge +// was not loaded in eager-loading. +func (e StandardEdges) ProceduresOrErr() ([]*Procedure, error) { + if e.loadedTypes[2] { + return e.Procedures, nil + } + return nil, &NotLoadedError{edge: "procedures"} +} + +// ActionplansOrErr returns the Actionplans value or an error if the edge +// was not loaded in eager-loading. +func (e StandardEdges) ActionplansOrErr() ([]*ActionPlan, error) { + if e.loadedTypes[3] { + return e.Actionplans, nil + } + return nil, &NotLoadedError{edge: "actionplans"} +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*Standard) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case standard.FieldTags, standard.FieldDetails: + values[i] = new([]byte) + case standard.FieldID, standard.FieldCreatedBy, standard.FieldUpdatedBy, standard.FieldDeletedBy, standard.FieldMappingID, standard.FieldName, standard.FieldDescription, standard.FieldFamily, standard.FieldStatus, standard.FieldStandardType, standard.FieldVersion, standard.FieldPurposeAndScope, standard.FieldBackground, standard.FieldSatisfies: + values[i] = new(sql.NullString) + case standard.FieldCreatedAt, standard.FieldUpdatedAt, standard.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 Standard fields. +func (s *Standard) 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 standard.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + s.ID = value.String + } + case standard.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 { + s.CreatedAt = value.Time + } + case standard.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 { + s.UpdatedAt = value.Time + } + case standard.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 { + s.CreatedBy = value.String + } + case standard.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 { + s.UpdatedBy = value.String + } + case standard.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 { + s.DeletedAt = value.Time + } + case standard.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 { + s.DeletedBy = value.String + } + case standard.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + s.MappingID = value.String + } + case standard.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, &s.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case standard.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + s.Name = value.String + } + case standard.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + s.Description = value.String + } + case standard.FieldFamily: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field family", values[i]) + } else if value.Valid { + s.Family = value.String + } + case standard.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + s.Status = value.String + } + case standard.FieldStandardType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field standard_type", values[i]) + } else if value.Valid { + s.StandardType = value.String + } + case standard.FieldVersion: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field version", values[i]) + } else if value.Valid { + s.Version = value.String + } + case standard.FieldPurposeAndScope: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field purpose_and_scope", values[i]) + } else if value.Valid { + s.PurposeAndScope = value.String + } + case standard.FieldBackground: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field background", values[i]) + } else if value.Valid { + s.Background = value.String + } + case standard.FieldSatisfies: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field satisfies", values[i]) + } else if value.Valid { + s.Satisfies = value.String + } + case standard.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &s.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + s.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the Standard. +// This includes values selected through modifiers, order, etc. +func (s *Standard) Value(name string) (ent.Value, error) { + return s.selectValues.Get(name) +} + +// QueryControlobjectives queries the "controlobjectives" edge of the Standard entity. +func (s *Standard) QueryControlobjectives() *ControlObjectiveQuery { + return NewStandardClient(s.config).QueryControlobjectives(s) +} + +// QueryControls queries the "controls" edge of the Standard entity. +func (s *Standard) QueryControls() *ControlQuery { + return NewStandardClient(s.config).QueryControls(s) +} + +// QueryProcedures queries the "procedures" edge of the Standard entity. +func (s *Standard) QueryProcedures() *ProcedureQuery { + return NewStandardClient(s.config).QueryProcedures(s) +} + +// QueryActionplans queries the "actionplans" edge of the Standard entity. +func (s *Standard) QueryActionplans() *ActionPlanQuery { + return NewStandardClient(s.config).QueryActionplans(s) +} + +// Update returns a builder for updating this Standard. +// Note that you need to call Standard.Unwrap() before calling this method if this Standard +// was returned from a transaction, and the transaction was committed or rolled back. +func (s *Standard) Update() *StandardUpdateOne { + return NewStandardClient(s.config).UpdateOne(s) +} + +// Unwrap unwraps the Standard 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 (s *Standard) Unwrap() *Standard { + _tx, ok := s.config.driver.(*txDriver) + if !ok { + panic("generated: Standard is not a transactional entity") + } + s.config.driver = _tx.drv + return s +} + +// String implements the fmt.Stringer. +func (s *Standard) String() string { + var builder strings.Builder + builder.WriteString("Standard(") + builder.WriteString(fmt.Sprintf("id=%v, ", s.ID)) + builder.WriteString("created_at=") + builder.WriteString(s.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(s.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(s.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(s.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(s.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(s.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(s.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", s.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(s.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(s.Description) + builder.WriteString(", ") + builder.WriteString("family=") + builder.WriteString(s.Family) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(s.Status) + builder.WriteString(", ") + builder.WriteString("standard_type=") + builder.WriteString(s.StandardType) + builder.WriteString(", ") + builder.WriteString("version=") + builder.WriteString(s.Version) + builder.WriteString(", ") + builder.WriteString("purpose_and_scope=") + builder.WriteString(s.PurposeAndScope) + builder.WriteString(", ") + builder.WriteString("background=") + builder.WriteString(s.Background) + builder.WriteString(", ") + builder.WriteString("satisfies=") + builder.WriteString(s.Satisfies) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", s.Details)) + builder.WriteByte(')') + return builder.String() +} + +// NamedControlobjectives returns the Controlobjectives named value or an error if the edge was not +// loaded in eager-loading with this name. +func (s *Standard) NamedControlobjectives(name string) ([]*ControlObjective, error) { + if s.Edges.namedControlobjectives == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := s.Edges.namedControlobjectives[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (s *Standard) appendNamedControlobjectives(name string, edges ...*ControlObjective) { + if s.Edges.namedControlobjectives == nil { + s.Edges.namedControlobjectives = make(map[string][]*ControlObjective) + } + if len(edges) == 0 { + s.Edges.namedControlobjectives[name] = []*ControlObjective{} + } else { + s.Edges.namedControlobjectives[name] = append(s.Edges.namedControlobjectives[name], edges...) + } +} + +// NamedControls returns the Controls named value or an error if the edge was not +// loaded in eager-loading with this name. +func (s *Standard) NamedControls(name string) ([]*Control, error) { + if s.Edges.namedControls == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := s.Edges.namedControls[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (s *Standard) appendNamedControls(name string, edges ...*Control) { + if s.Edges.namedControls == nil { + s.Edges.namedControls = make(map[string][]*Control) + } + if len(edges) == 0 { + s.Edges.namedControls[name] = []*Control{} + } else { + s.Edges.namedControls[name] = append(s.Edges.namedControls[name], edges...) + } +} + +// NamedProcedures returns the Procedures named value or an error if the edge was not +// loaded in eager-loading with this name. +func (s *Standard) NamedProcedures(name string) ([]*Procedure, error) { + if s.Edges.namedProcedures == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := s.Edges.namedProcedures[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (s *Standard) appendNamedProcedures(name string, edges ...*Procedure) { + if s.Edges.namedProcedures == nil { + s.Edges.namedProcedures = make(map[string][]*Procedure) + } + if len(edges) == 0 { + s.Edges.namedProcedures[name] = []*Procedure{} + } else { + s.Edges.namedProcedures[name] = append(s.Edges.namedProcedures[name], edges...) + } +} + +// NamedActionplans returns the Actionplans named value or an error if the edge was not +// loaded in eager-loading with this name. +func (s *Standard) NamedActionplans(name string) ([]*ActionPlan, error) { + if s.Edges.namedActionplans == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := s.Edges.namedActionplans[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (s *Standard) appendNamedActionplans(name string, edges ...*ActionPlan) { + if s.Edges.namedActionplans == nil { + s.Edges.namedActionplans = make(map[string][]*ActionPlan) + } + if len(edges) == 0 { + s.Edges.namedActionplans[name] = []*ActionPlan{} + } else { + s.Edges.namedActionplans[name] = append(s.Edges.namedActionplans[name], edges...) + } +} + +// Standards is a parsable slice of Standard. +type Standards []*Standard diff --git a/internal/ent/generated/standard/standard.go b/internal/ent/generated/standard/standard.go new file mode 100644 index 00000000..e777313b --- /dev/null +++ b/internal/ent/generated/standard/standard.go @@ -0,0 +1,325 @@ +// Code generated by ent, DO NOT EDIT. + +package standard + +import ( + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" +) + +const ( + // Label holds the string label denoting the standard type in the database. + Label = "standard" + // 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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldFamily holds the string denoting the family field in the database. + FieldFamily = "family" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldStandardType holds the string denoting the standard_type field in the database. + FieldStandardType = "standard_type" + // FieldVersion holds the string denoting the version field in the database. + FieldVersion = "version" + // FieldPurposeAndScope holds the string denoting the purpose_and_scope field in the database. + FieldPurposeAndScope = "purpose_and_scope" + // FieldBackground holds the string denoting the background field in the database. + FieldBackground = "background" + // FieldSatisfies holds the string denoting the satisfies field in the database. + FieldSatisfies = "satisfies" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // EdgeControlobjectives holds the string denoting the controlobjectives edge name in mutations. + EdgeControlobjectives = "controlobjectives" + // EdgeControls holds the string denoting the controls edge name in mutations. + EdgeControls = "controls" + // EdgeProcedures holds the string denoting the procedures edge name in mutations. + EdgeProcedures = "procedures" + // EdgeActionplans holds the string denoting the actionplans edge name in mutations. + EdgeActionplans = "actionplans" + // Table holds the table name of the standard in the database. + Table = "standards" + // ControlobjectivesTable is the table that holds the controlobjectives relation/edge. The primary key declared below. + ControlobjectivesTable = "standard_controlobjectives" + // ControlobjectivesInverseTable is the table name for the ControlObjective entity. + // It exists in this package in order to avoid circular dependency with the "controlobjective" package. + ControlobjectivesInverseTable = "control_objectives" + // ControlsTable is the table that holds the controls relation/edge. The primary key declared below. + ControlsTable = "standard_controls" + // ControlsInverseTable is the table name for the Control entity. + // It exists in this package in order to avoid circular dependency with the "control" package. + ControlsInverseTable = "controls" + // ProceduresTable is the table that holds the procedures relation/edge. + ProceduresTable = "procedures" + // ProceduresInverseTable is the table name for the Procedure entity. + // It exists in this package in order to avoid circular dependency with the "procedure" package. + ProceduresInverseTable = "procedures" + // ProceduresColumn is the table column denoting the procedures relation/edge. + ProceduresColumn = "standard_procedures" + // ActionplansTable is the table that holds the actionplans relation/edge. The primary key declared below. + ActionplansTable = "standard_actionplans" + // ActionplansInverseTable is the table name for the ActionPlan entity. + // It exists in this package in order to avoid circular dependency with the "actionplan" package. + ActionplansInverseTable = "action_plans" +) + +// Columns holds all SQL columns for standard fields. +var Columns = []string{ + FieldID, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldFamily, + FieldStatus, + FieldStandardType, + FieldVersion, + FieldPurposeAndScope, + FieldBackground, + FieldSatisfies, + FieldDetails, +} + +var ( + // ControlobjectivesPrimaryKey and ControlobjectivesColumn2 are the table columns denoting the + // primary key for the controlobjectives relation (M2M). + ControlobjectivesPrimaryKey = []string{"standard_id", "control_objective_id"} + // ControlsPrimaryKey and ControlsColumn2 are the table columns denoting the + // primary key for the controls relation (M2M). + ControlsPrimaryKey = []string{"standard_id", "control_id"} + // ActionplansPrimaryKey and ActionplansColumn2 are the table columns denoting the + // primary key for the actionplans relation (M2M). + ActionplansPrimaryKey = []string{"standard_id", "action_plan_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/internal/ent/generated/runtime" +var ( + Hooks [2]ent.Hook + Interceptors [1]ent.Interceptor + // 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 + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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 +) + +// OrderOption defines the ordering options for the Standard 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByFamily orders the results by the family field. +func ByFamily(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldFamily, opts...).ToFunc() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByStandardType orders the results by the standard_type field. +func ByStandardType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStandardType, opts...).ToFunc() +} + +// ByVersion orders the results by the version field. +func ByVersion(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldVersion, opts...).ToFunc() +} + +// ByPurposeAndScope orders the results by the purpose_and_scope field. +func ByPurposeAndScope(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldPurposeAndScope, opts...).ToFunc() +} + +// ByBackground orders the results by the background field. +func ByBackground(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldBackground, opts...).ToFunc() +} + +// BySatisfies orders the results by the satisfies field. +func BySatisfies(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSatisfies, opts...).ToFunc() +} + +// ByControlobjectivesCount orders the results by controlobjectives count. +func ByControlobjectivesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlobjectivesStep(), opts...) + } +} + +// ByControlobjectives orders the results by controlobjectives terms. +func ByControlobjectives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlobjectivesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByControlsCount orders the results by controls count. +func ByControlsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlsStep(), opts...) + } +} + +// ByControls orders the results by controls terms. +func ByControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByProceduresCount orders the results by procedures count. +func ByProceduresCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newProceduresStep(), opts...) + } +} + +// ByProcedures orders the results by procedures terms. +func ByProcedures(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newProceduresStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByActionplansCount orders the results by actionplans count. +func ByActionplansCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newActionplansStep(), opts...) + } +} + +// ByActionplans orders the results by actionplans terms. +func ByActionplans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newActionplansStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} +func newControlobjectivesStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ControlobjectivesInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ControlobjectivesTable, ControlobjectivesPrimaryKey...), + ) +} +func newControlsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ControlsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ControlsTable, ControlsPrimaryKey...), + ) +} +func newProceduresStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ProceduresInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ProceduresTable, ProceduresColumn), + ) +} +func newActionplansStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ActionplansInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ActionplansTable, ActionplansPrimaryKey...), + ) +} diff --git a/internal/ent/generated/standard/where.go b/internal/ent/generated/standard/where.go new file mode 100644 index 00000000..2b7a7c77 --- /dev/null +++ b/internal/ent/generated/standard/where.go @@ -0,0 +1,1404 @@ +// Code generated by ent, DO NOT EDIT. + +package standard + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.Standard { + return predicate.Standard(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.Standard { + return predicate.Standard(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.Standard { + return predicate.Standard(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldDescription, v)) +} + +// Family applies equality check predicate on the "family" field. It's identical to FamilyEQ. +func Family(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldFamily, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldStatus, v)) +} + +// StandardType applies equality check predicate on the "standard_type" field. It's identical to StandardTypeEQ. +func StandardType(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldStandardType, v)) +} + +// Version applies equality check predicate on the "version" field. It's identical to VersionEQ. +func Version(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldVersion, v)) +} + +// PurposeAndScope applies equality check predicate on the "purpose_and_scope" field. It's identical to PurposeAndScopeEQ. +func PurposeAndScope(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldPurposeAndScope, v)) +} + +// Background applies equality check predicate on the "background" field. It's identical to BackgroundEQ. +func Background(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldBackground, v)) +} + +// Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ. +func Satisfies(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldSatisfies, v)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldDescription, v)) +} + +// FamilyEQ applies the EQ predicate on the "family" field. +func FamilyEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldFamily, v)) +} + +// FamilyNEQ applies the NEQ predicate on the "family" field. +func FamilyNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldFamily, v)) +} + +// FamilyIn applies the In predicate on the "family" field. +func FamilyIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldFamily, vs...)) +} + +// FamilyNotIn applies the NotIn predicate on the "family" field. +func FamilyNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldFamily, vs...)) +} + +// FamilyGT applies the GT predicate on the "family" field. +func FamilyGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldFamily, v)) +} + +// FamilyGTE applies the GTE predicate on the "family" field. +func FamilyGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldFamily, v)) +} + +// FamilyLT applies the LT predicate on the "family" field. +func FamilyLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldFamily, v)) +} + +// FamilyLTE applies the LTE predicate on the "family" field. +func FamilyLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldFamily, v)) +} + +// FamilyContains applies the Contains predicate on the "family" field. +func FamilyContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldFamily, v)) +} + +// FamilyHasPrefix applies the HasPrefix predicate on the "family" field. +func FamilyHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldFamily, v)) +} + +// FamilyHasSuffix applies the HasSuffix predicate on the "family" field. +func FamilyHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldFamily, v)) +} + +// FamilyIsNil applies the IsNil predicate on the "family" field. +func FamilyIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldFamily)) +} + +// FamilyNotNil applies the NotNil predicate on the "family" field. +func FamilyNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldFamily)) +} + +// FamilyEqualFold applies the EqualFold predicate on the "family" field. +func FamilyEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldFamily, v)) +} + +// FamilyContainsFold applies the ContainsFold predicate on the "family" field. +func FamilyContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldFamily, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldStatus, v)) +} + +// StandardTypeEQ applies the EQ predicate on the "standard_type" field. +func StandardTypeEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldStandardType, v)) +} + +// StandardTypeNEQ applies the NEQ predicate on the "standard_type" field. +func StandardTypeNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldStandardType, v)) +} + +// StandardTypeIn applies the In predicate on the "standard_type" field. +func StandardTypeIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldStandardType, vs...)) +} + +// StandardTypeNotIn applies the NotIn predicate on the "standard_type" field. +func StandardTypeNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldStandardType, vs...)) +} + +// StandardTypeGT applies the GT predicate on the "standard_type" field. +func StandardTypeGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldStandardType, v)) +} + +// StandardTypeGTE applies the GTE predicate on the "standard_type" field. +func StandardTypeGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldStandardType, v)) +} + +// StandardTypeLT applies the LT predicate on the "standard_type" field. +func StandardTypeLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldStandardType, v)) +} + +// StandardTypeLTE applies the LTE predicate on the "standard_type" field. +func StandardTypeLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldStandardType, v)) +} + +// StandardTypeContains applies the Contains predicate on the "standard_type" field. +func StandardTypeContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldStandardType, v)) +} + +// StandardTypeHasPrefix applies the HasPrefix predicate on the "standard_type" field. +func StandardTypeHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldStandardType, v)) +} + +// StandardTypeHasSuffix applies the HasSuffix predicate on the "standard_type" field. +func StandardTypeHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldStandardType, v)) +} + +// StandardTypeIsNil applies the IsNil predicate on the "standard_type" field. +func StandardTypeIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldStandardType)) +} + +// StandardTypeNotNil applies the NotNil predicate on the "standard_type" field. +func StandardTypeNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldStandardType)) +} + +// StandardTypeEqualFold applies the EqualFold predicate on the "standard_type" field. +func StandardTypeEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldStandardType, v)) +} + +// StandardTypeContainsFold applies the ContainsFold predicate on the "standard_type" field. +func StandardTypeContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldStandardType, v)) +} + +// VersionEQ applies the EQ predicate on the "version" field. +func VersionEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldVersion, v)) +} + +// VersionNEQ applies the NEQ predicate on the "version" field. +func VersionNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldVersion, v)) +} + +// VersionIn applies the In predicate on the "version" field. +func VersionIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldVersion, vs...)) +} + +// VersionNotIn applies the NotIn predicate on the "version" field. +func VersionNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldVersion, vs...)) +} + +// VersionGT applies the GT predicate on the "version" field. +func VersionGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldVersion, v)) +} + +// VersionGTE applies the GTE predicate on the "version" field. +func VersionGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldVersion, v)) +} + +// VersionLT applies the LT predicate on the "version" field. +func VersionLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldVersion, v)) +} + +// VersionLTE applies the LTE predicate on the "version" field. +func VersionLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldVersion, v)) +} + +// VersionContains applies the Contains predicate on the "version" field. +func VersionContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldVersion, v)) +} + +// VersionHasPrefix applies the HasPrefix predicate on the "version" field. +func VersionHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldVersion, v)) +} + +// VersionHasSuffix applies the HasSuffix predicate on the "version" field. +func VersionHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldVersion, v)) +} + +// VersionIsNil applies the IsNil predicate on the "version" field. +func VersionIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldVersion)) +} + +// VersionNotNil applies the NotNil predicate on the "version" field. +func VersionNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldVersion)) +} + +// VersionEqualFold applies the EqualFold predicate on the "version" field. +func VersionEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldVersion, v)) +} + +// VersionContainsFold applies the ContainsFold predicate on the "version" field. +func VersionContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldVersion, v)) +} + +// PurposeAndScopeEQ applies the EQ predicate on the "purpose_and_scope" field. +func PurposeAndScopeEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeNEQ applies the NEQ predicate on the "purpose_and_scope" field. +func PurposeAndScopeNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeIn applies the In predicate on the "purpose_and_scope" field. +func PurposeAndScopeIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldPurposeAndScope, vs...)) +} + +// PurposeAndScopeNotIn applies the NotIn predicate on the "purpose_and_scope" field. +func PurposeAndScopeNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldPurposeAndScope, vs...)) +} + +// PurposeAndScopeGT applies the GT predicate on the "purpose_and_scope" field. +func PurposeAndScopeGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeGTE applies the GTE predicate on the "purpose_and_scope" field. +func PurposeAndScopeGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeLT applies the LT predicate on the "purpose_and_scope" field. +func PurposeAndScopeLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeLTE applies the LTE predicate on the "purpose_and_scope" field. +func PurposeAndScopeLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeContains applies the Contains predicate on the "purpose_and_scope" field. +func PurposeAndScopeContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeHasPrefix applies the HasPrefix predicate on the "purpose_and_scope" field. +func PurposeAndScopeHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeHasSuffix applies the HasSuffix predicate on the "purpose_and_scope" field. +func PurposeAndScopeHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeIsNil applies the IsNil predicate on the "purpose_and_scope" field. +func PurposeAndScopeIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldPurposeAndScope)) +} + +// PurposeAndScopeNotNil applies the NotNil predicate on the "purpose_and_scope" field. +func PurposeAndScopeNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldPurposeAndScope)) +} + +// PurposeAndScopeEqualFold applies the EqualFold predicate on the "purpose_and_scope" field. +func PurposeAndScopeEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeContainsFold applies the ContainsFold predicate on the "purpose_and_scope" field. +func PurposeAndScopeContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldPurposeAndScope, v)) +} + +// BackgroundEQ applies the EQ predicate on the "background" field. +func BackgroundEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldBackground, v)) +} + +// BackgroundNEQ applies the NEQ predicate on the "background" field. +func BackgroundNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldBackground, v)) +} + +// BackgroundIn applies the In predicate on the "background" field. +func BackgroundIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldBackground, vs...)) +} + +// BackgroundNotIn applies the NotIn predicate on the "background" field. +func BackgroundNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldBackground, vs...)) +} + +// BackgroundGT applies the GT predicate on the "background" field. +func BackgroundGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldBackground, v)) +} + +// BackgroundGTE applies the GTE predicate on the "background" field. +func BackgroundGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldBackground, v)) +} + +// BackgroundLT applies the LT predicate on the "background" field. +func BackgroundLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldBackground, v)) +} + +// BackgroundLTE applies the LTE predicate on the "background" field. +func BackgroundLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldBackground, v)) +} + +// BackgroundContains applies the Contains predicate on the "background" field. +func BackgroundContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldBackground, v)) +} + +// BackgroundHasPrefix applies the HasPrefix predicate on the "background" field. +func BackgroundHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldBackground, v)) +} + +// BackgroundHasSuffix applies the HasSuffix predicate on the "background" field. +func BackgroundHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldBackground, v)) +} + +// BackgroundIsNil applies the IsNil predicate on the "background" field. +func BackgroundIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldBackground)) +} + +// BackgroundNotNil applies the NotNil predicate on the "background" field. +func BackgroundNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldBackground)) +} + +// BackgroundEqualFold applies the EqualFold predicate on the "background" field. +func BackgroundEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldBackground, v)) +} + +// BackgroundContainsFold applies the ContainsFold predicate on the "background" field. +func BackgroundContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldBackground, v)) +} + +// SatisfiesEQ applies the EQ predicate on the "satisfies" field. +func SatisfiesEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldEQ(FieldSatisfies, v)) +} + +// SatisfiesNEQ applies the NEQ predicate on the "satisfies" field. +func SatisfiesNEQ(v string) predicate.Standard { + return predicate.Standard(sql.FieldNEQ(FieldSatisfies, v)) +} + +// SatisfiesIn applies the In predicate on the "satisfies" field. +func SatisfiesIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldIn(FieldSatisfies, vs...)) +} + +// SatisfiesNotIn applies the NotIn predicate on the "satisfies" field. +func SatisfiesNotIn(vs ...string) predicate.Standard { + return predicate.Standard(sql.FieldNotIn(FieldSatisfies, vs...)) +} + +// SatisfiesGT applies the GT predicate on the "satisfies" field. +func SatisfiesGT(v string) predicate.Standard { + return predicate.Standard(sql.FieldGT(FieldSatisfies, v)) +} + +// SatisfiesGTE applies the GTE predicate on the "satisfies" field. +func SatisfiesGTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldGTE(FieldSatisfies, v)) +} + +// SatisfiesLT applies the LT predicate on the "satisfies" field. +func SatisfiesLT(v string) predicate.Standard { + return predicate.Standard(sql.FieldLT(FieldSatisfies, v)) +} + +// SatisfiesLTE applies the LTE predicate on the "satisfies" field. +func SatisfiesLTE(v string) predicate.Standard { + return predicate.Standard(sql.FieldLTE(FieldSatisfies, v)) +} + +// SatisfiesContains applies the Contains predicate on the "satisfies" field. +func SatisfiesContains(v string) predicate.Standard { + return predicate.Standard(sql.FieldContains(FieldSatisfies, v)) +} + +// SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field. +func SatisfiesHasPrefix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasPrefix(FieldSatisfies, v)) +} + +// SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field. +func SatisfiesHasSuffix(v string) predicate.Standard { + return predicate.Standard(sql.FieldHasSuffix(FieldSatisfies, v)) +} + +// SatisfiesIsNil applies the IsNil predicate on the "satisfies" field. +func SatisfiesIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldSatisfies)) +} + +// SatisfiesNotNil applies the NotNil predicate on the "satisfies" field. +func SatisfiesNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldSatisfies)) +} + +// SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field. +func SatisfiesEqualFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldEqualFold(FieldSatisfies, v)) +} + +// SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field. +func SatisfiesContainsFold(v string) predicate.Standard { + return predicate.Standard(sql.FieldContainsFold(FieldSatisfies, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.Standard { + return predicate.Standard(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.Standard { + return predicate.Standard(sql.FieldNotNull(FieldDetails)) +} + +// HasControlobjectives applies the HasEdge predicate on the "controlobjectives" edge. +func HasControlobjectives() predicate.Standard { + return predicate.Standard(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ControlobjectivesTable, ControlobjectivesPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.StandardControlobjectives + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlobjectivesWith applies the HasEdge predicate on the "controlobjectives" edge with a given conditions (other predicates). +func HasControlobjectivesWith(preds ...predicate.ControlObjective) predicate.Standard { + return predicate.Standard(func(s *sql.Selector) { + step := newControlobjectivesStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.StandardControlobjectives + 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.Standard { + return predicate.Standard(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ControlsTable, ControlsPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.StandardControls + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlsWith applies the HasEdge predicate on the "controls" edge with a given conditions (other predicates). +func HasControlsWith(preds ...predicate.Control) predicate.Standard { + return predicate.Standard(func(s *sql.Selector) { + step := newControlsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.StandardControls + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasProcedures applies the HasEdge predicate on the "procedures" edge. +func HasProcedures() predicate.Standard { + return predicate.Standard(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, ProceduresTable, ProceduresColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.Procedure + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasProceduresWith applies the HasEdge predicate on the "procedures" edge with a given conditions (other predicates). +func HasProceduresWith(preds ...predicate.Procedure) predicate.Standard { + return predicate.Standard(func(s *sql.Selector) { + step := newProceduresStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.Procedure + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasActionplans applies the HasEdge predicate on the "actionplans" edge. +func HasActionplans() predicate.Standard { + return predicate.Standard(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ActionplansTable, ActionplansPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.StandardActionplans + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasActionplansWith applies the HasEdge predicate on the "actionplans" edge with a given conditions (other predicates). +func HasActionplansWith(preds ...predicate.ActionPlan) predicate.Standard { + return predicate.Standard(func(s *sql.Selector) { + step := newActionplansStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.StandardActionplans + 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.Standard) predicate.Standard { + return predicate.Standard(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.Standard) predicate.Standard { + return predicate.Standard(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.Standard) predicate.Standard { + return predicate.Standard(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/standard_create.go b/internal/ent/generated/standard_create.go new file mode 100644 index 00000000..e0c2460b --- /dev/null +++ b/internal/ent/generated/standard_create.go @@ -0,0 +1,670 @@ +// 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/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/standard" +) + +// StandardCreate is the builder for creating a Standard entity. +type StandardCreate struct { + config + mutation *StandardMutation + hooks []Hook +} + +// SetCreatedAt sets the "created_at" field. +func (sc *StandardCreate) SetCreatedAt(t time.Time) *StandardCreate { + sc.mutation.SetCreatedAt(t) + return sc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (sc *StandardCreate) SetNillableCreatedAt(t *time.Time) *StandardCreate { + if t != nil { + sc.SetCreatedAt(*t) + } + return sc +} + +// SetUpdatedAt sets the "updated_at" field. +func (sc *StandardCreate) SetUpdatedAt(t time.Time) *StandardCreate { + sc.mutation.SetUpdatedAt(t) + return sc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (sc *StandardCreate) SetNillableUpdatedAt(t *time.Time) *StandardCreate { + if t != nil { + sc.SetUpdatedAt(*t) + } + return sc +} + +// SetCreatedBy sets the "created_by" field. +func (sc *StandardCreate) SetCreatedBy(s string) *StandardCreate { + sc.mutation.SetCreatedBy(s) + return sc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (sc *StandardCreate) SetNillableCreatedBy(s *string) *StandardCreate { + if s != nil { + sc.SetCreatedBy(*s) + } + return sc +} + +// SetUpdatedBy sets the "updated_by" field. +func (sc *StandardCreate) SetUpdatedBy(s string) *StandardCreate { + sc.mutation.SetUpdatedBy(s) + return sc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (sc *StandardCreate) SetNillableUpdatedBy(s *string) *StandardCreate { + if s != nil { + sc.SetUpdatedBy(*s) + } + return sc +} + +// SetDeletedAt sets the "deleted_at" field. +func (sc *StandardCreate) SetDeletedAt(t time.Time) *StandardCreate { + sc.mutation.SetDeletedAt(t) + return sc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (sc *StandardCreate) SetNillableDeletedAt(t *time.Time) *StandardCreate { + if t != nil { + sc.SetDeletedAt(*t) + } + return sc +} + +// SetDeletedBy sets the "deleted_by" field. +func (sc *StandardCreate) SetDeletedBy(s string) *StandardCreate { + sc.mutation.SetDeletedBy(s) + return sc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (sc *StandardCreate) SetNillableDeletedBy(s *string) *StandardCreate { + if s != nil { + sc.SetDeletedBy(*s) + } + return sc +} + +// SetMappingID sets the "mapping_id" field. +func (sc *StandardCreate) SetMappingID(s string) *StandardCreate { + sc.mutation.SetMappingID(s) + return sc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (sc *StandardCreate) SetNillableMappingID(s *string) *StandardCreate { + if s != nil { + sc.SetMappingID(*s) + } + return sc +} + +// SetTags sets the "tags" field. +func (sc *StandardCreate) SetTags(s []string) *StandardCreate { + sc.mutation.SetTags(s) + return sc +} + +// SetName sets the "name" field. +func (sc *StandardCreate) SetName(s string) *StandardCreate { + sc.mutation.SetName(s) + return sc +} + +// SetDescription sets the "description" field. +func (sc *StandardCreate) SetDescription(s string) *StandardCreate { + sc.mutation.SetDescription(s) + return sc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (sc *StandardCreate) SetNillableDescription(s *string) *StandardCreate { + if s != nil { + sc.SetDescription(*s) + } + return sc +} + +// SetFamily sets the "family" field. +func (sc *StandardCreate) SetFamily(s string) *StandardCreate { + sc.mutation.SetFamily(s) + return sc +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (sc *StandardCreate) SetNillableFamily(s *string) *StandardCreate { + if s != nil { + sc.SetFamily(*s) + } + return sc +} + +// SetStatus sets the "status" field. +func (sc *StandardCreate) SetStatus(s string) *StandardCreate { + sc.mutation.SetStatus(s) + return sc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (sc *StandardCreate) SetNillableStatus(s *string) *StandardCreate { + if s != nil { + sc.SetStatus(*s) + } + return sc +} + +// SetStandardType sets the "standard_type" field. +func (sc *StandardCreate) SetStandardType(s string) *StandardCreate { + sc.mutation.SetStandardType(s) + return sc +} + +// SetNillableStandardType sets the "standard_type" field if the given value is not nil. +func (sc *StandardCreate) SetNillableStandardType(s *string) *StandardCreate { + if s != nil { + sc.SetStandardType(*s) + } + return sc +} + +// SetVersion sets the "version" field. +func (sc *StandardCreate) SetVersion(s string) *StandardCreate { + sc.mutation.SetVersion(s) + return sc +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (sc *StandardCreate) SetNillableVersion(s *string) *StandardCreate { + if s != nil { + sc.SetVersion(*s) + } + return sc +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (sc *StandardCreate) SetPurposeAndScope(s string) *StandardCreate { + sc.mutation.SetPurposeAndScope(s) + return sc +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (sc *StandardCreate) SetNillablePurposeAndScope(s *string) *StandardCreate { + if s != nil { + sc.SetPurposeAndScope(*s) + } + return sc +} + +// SetBackground sets the "background" field. +func (sc *StandardCreate) SetBackground(s string) *StandardCreate { + sc.mutation.SetBackground(s) + return sc +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (sc *StandardCreate) SetNillableBackground(s *string) *StandardCreate { + if s != nil { + sc.SetBackground(*s) + } + return sc +} + +// SetSatisfies sets the "satisfies" field. +func (sc *StandardCreate) SetSatisfies(s string) *StandardCreate { + sc.mutation.SetSatisfies(s) + return sc +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (sc *StandardCreate) SetNillableSatisfies(s *string) *StandardCreate { + if s != nil { + sc.SetSatisfies(*s) + } + return sc +} + +// SetDetails sets the "details" field. +func (sc *StandardCreate) SetDetails(m map[string]interface{}) *StandardCreate { + sc.mutation.SetDetails(m) + return sc +} + +// SetID sets the "id" field. +func (sc *StandardCreate) SetID(s string) *StandardCreate { + sc.mutation.SetID(s) + return sc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (sc *StandardCreate) SetNillableID(s *string) *StandardCreate { + if s != nil { + sc.SetID(*s) + } + return sc +} + +// AddControlobjectiveIDs adds the "controlobjectives" edge to the ControlObjective entity by IDs. +func (sc *StandardCreate) AddControlobjectiveIDs(ids ...string) *StandardCreate { + sc.mutation.AddControlobjectiveIDs(ids...) + return sc +} + +// AddControlobjectives adds the "controlobjectives" edges to the ControlObjective entity. +func (sc *StandardCreate) AddControlobjectives(c ...*ControlObjective) *StandardCreate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return sc.AddControlobjectiveIDs(ids...) +} + +// AddControlIDs adds the "controls" edge to the Control entity by IDs. +func (sc *StandardCreate) AddControlIDs(ids ...string) *StandardCreate { + sc.mutation.AddControlIDs(ids...) + return sc +} + +// AddControls adds the "controls" edges to the Control entity. +func (sc *StandardCreate) AddControls(c ...*Control) *StandardCreate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return sc.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (sc *StandardCreate) AddProcedureIDs(ids ...string) *StandardCreate { + sc.mutation.AddProcedureIDs(ids...) + return sc +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (sc *StandardCreate) AddProcedures(p ...*Procedure) *StandardCreate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return sc.AddProcedureIDs(ids...) +} + +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by IDs. +func (sc *StandardCreate) AddActionplanIDs(ids ...string) *StandardCreate { + sc.mutation.AddActionplanIDs(ids...) + return sc +} + +// AddActionplans adds the "actionplans" edges to the ActionPlan entity. +func (sc *StandardCreate) AddActionplans(a ...*ActionPlan) *StandardCreate { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return sc.AddActionplanIDs(ids...) +} + +// Mutation returns the StandardMutation object of the builder. +func (sc *StandardCreate) Mutation() *StandardMutation { + return sc.mutation +} + +// Save creates the Standard in the database. +func (sc *StandardCreate) Save(ctx context.Context) (*Standard, error) { + if err := sc.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, sc.sqlSave, sc.mutation, sc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (sc *StandardCreate) SaveX(ctx context.Context) *Standard { + v, err := sc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (sc *StandardCreate) Exec(ctx context.Context) error { + _, err := sc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (sc *StandardCreate) ExecX(ctx context.Context) { + if err := sc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (sc *StandardCreate) defaults() error { + if _, ok := sc.mutation.CreatedAt(); !ok { + if standard.DefaultCreatedAt == nil { + return fmt.Errorf("generated: uninitialized standard.DefaultCreatedAt (forgotten import generated/runtime?)") + } + v := standard.DefaultCreatedAt() + sc.mutation.SetCreatedAt(v) + } + if _, ok := sc.mutation.UpdatedAt(); !ok { + if standard.DefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized standard.DefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := standard.DefaultUpdatedAt() + sc.mutation.SetUpdatedAt(v) + } + if _, ok := sc.mutation.MappingID(); !ok { + if standard.DefaultMappingID == nil { + return fmt.Errorf("generated: uninitialized standard.DefaultMappingID (forgotten import generated/runtime?)") + } + v := standard.DefaultMappingID() + sc.mutation.SetMappingID(v) + } + if _, ok := sc.mutation.Tags(); !ok { + v := standard.DefaultTags + sc.mutation.SetTags(v) + } + if _, ok := sc.mutation.ID(); !ok { + if standard.DefaultID == nil { + return fmt.Errorf("generated: uninitialized standard.DefaultID (forgotten import generated/runtime?)") + } + v := standard.DefaultID() + sc.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (sc *StandardCreate) check() error { + if _, ok := sc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "Standard.mapping_id"`)} + } + if _, ok := sc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "Standard.name"`)} + } + return nil +} + +func (sc *StandardCreate) sqlSave(ctx context.Context) (*Standard, error) { + if err := sc.check(); err != nil { + return nil, err + } + _node, _spec := sc.createSpec() + if err := sqlgraph.CreateNode(ctx, sc.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 Standard.ID type: %T", _spec.ID.Value) + } + } + sc.mutation.id = &_node.ID + sc.mutation.done = true + return _node, nil +} + +func (sc *StandardCreate) createSpec() (*Standard, *sqlgraph.CreateSpec) { + var ( + _node = &Standard{config: sc.config} + _spec = sqlgraph.NewCreateSpec(standard.Table, sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString)) + ) + _spec.Schema = sc.schemaConfig.Standard + if id, ok := sc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := sc.mutation.CreatedAt(); ok { + _spec.SetField(standard.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := sc.mutation.UpdatedAt(); ok { + _spec.SetField(standard.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := sc.mutation.CreatedBy(); ok { + _spec.SetField(standard.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := sc.mutation.UpdatedBy(); ok { + _spec.SetField(standard.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := sc.mutation.DeletedAt(); ok { + _spec.SetField(standard.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := sc.mutation.DeletedBy(); ok { + _spec.SetField(standard.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := sc.mutation.MappingID(); ok { + _spec.SetField(standard.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := sc.mutation.Tags(); ok { + _spec.SetField(standard.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := sc.mutation.Name(); ok { + _spec.SetField(standard.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := sc.mutation.Description(); ok { + _spec.SetField(standard.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := sc.mutation.Family(); ok { + _spec.SetField(standard.FieldFamily, field.TypeString, value) + _node.Family = value + } + if value, ok := sc.mutation.Status(); ok { + _spec.SetField(standard.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := sc.mutation.StandardType(); ok { + _spec.SetField(standard.FieldStandardType, field.TypeString, value) + _node.StandardType = value + } + if value, ok := sc.mutation.Version(); ok { + _spec.SetField(standard.FieldVersion, field.TypeString, value) + _node.Version = value + } + if value, ok := sc.mutation.PurposeAndScope(); ok { + _spec.SetField(standard.FieldPurposeAndScope, field.TypeString, value) + _node.PurposeAndScope = value + } + if value, ok := sc.mutation.Background(); ok { + _spec.SetField(standard.FieldBackground, field.TypeString, value) + _node.Background = value + } + if value, ok := sc.mutation.Satisfies(); ok { + _spec.SetField(standard.FieldSatisfies, field.TypeString, value) + _node.Satisfies = value + } + if value, ok := sc.mutation.Details(); ok { + _spec.SetField(standard.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + if nodes := sc.mutation.ControlobjectivesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlobjectivesTable, + Columns: standard.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = sc.schemaConfig.StandardControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := sc.mutation.ControlsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlsTable, + Columns: standard.ControlsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = sc.schemaConfig.StandardControls + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := sc.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: standard.ProceduresTable, + Columns: []string{standard.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = sc.schemaConfig.Procedure + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := sc.mutation.ActionplansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ActionplansTable, + Columns: standard.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = sc.schemaConfig.StandardActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + return _node, _spec +} + +// StandardCreateBulk is the builder for creating many Standard entities in bulk. +type StandardCreateBulk struct { + config + err error + builders []*StandardCreate +} + +// Save creates the Standard entities in the database. +func (scb *StandardCreateBulk) Save(ctx context.Context) ([]*Standard, error) { + if scb.err != nil { + return nil, scb.err + } + specs := make([]*sqlgraph.CreateSpec, len(scb.builders)) + nodes := make([]*Standard, len(scb.builders)) + mutators := make([]Mutator, len(scb.builders)) + for i := range scb.builders { + func(i int, root context.Context) { + builder := scb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*StandardMutation) + 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, scb.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, scb.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, scb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (scb *StandardCreateBulk) SaveX(ctx context.Context) []*Standard { + v, err := scb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (scb *StandardCreateBulk) Exec(ctx context.Context) error { + _, err := scb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (scb *StandardCreateBulk) ExecX(ctx context.Context) { + if err := scb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/standard_delete.go b/internal/ent/generated/standard_delete.go new file mode 100644 index 00000000..3a7f0fc4 --- /dev/null +++ b/internal/ent/generated/standard_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" + "github.com/theopenlane/core/internal/ent/generated/standard" +) + +// StandardDelete is the builder for deleting a Standard entity. +type StandardDelete struct { + config + hooks []Hook + mutation *StandardMutation +} + +// Where appends a list predicates to the StandardDelete builder. +func (sd *StandardDelete) Where(ps ...predicate.Standard) *StandardDelete { + sd.mutation.Where(ps...) + return sd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (sd *StandardDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, sd.sqlExec, sd.mutation, sd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (sd *StandardDelete) ExecX(ctx context.Context) int { + n, err := sd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (sd *StandardDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(standard.Table, sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString)) + _spec.Node.Schema = sd.schemaConfig.Standard + ctx = internal.NewSchemaConfigContext(ctx, sd.schemaConfig) + if ps := sd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, sd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + sd.mutation.done = true + return affected, err +} + +// StandardDeleteOne is the builder for deleting a single Standard entity. +type StandardDeleteOne struct { + sd *StandardDelete +} + +// Where appends a list predicates to the StandardDelete builder. +func (sdo *StandardDeleteOne) Where(ps ...predicate.Standard) *StandardDeleteOne { + sdo.sd.mutation.Where(ps...) + return sdo +} + +// Exec executes the deletion query. +func (sdo *StandardDeleteOne) Exec(ctx context.Context) error { + n, err := sdo.sd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{standard.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (sdo *StandardDeleteOne) ExecX(ctx context.Context) { + if err := sdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/standard_query.go b/internal/ent/generated/standard_query.go new file mode 100644 index 00000000..7316e5a3 --- /dev/null +++ b/internal/ent/generated/standard_query.go @@ -0,0 +1,1065 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "database/sql/driver" + "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/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/standard" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// StandardQuery is the builder for querying Standard entities. +type StandardQuery struct { + config + ctx *QueryContext + order []standard.OrderOption + inters []Interceptor + predicates []predicate.Standard + withControlobjectives *ControlObjectiveQuery + withControls *ControlQuery + withProcedures *ProcedureQuery + withActionplans *ActionPlanQuery + loadTotal []func(context.Context, []*Standard) error + modifiers []func(*sql.Selector) + withNamedControlobjectives map[string]*ControlObjectiveQuery + withNamedControls map[string]*ControlQuery + withNamedProcedures map[string]*ProcedureQuery + withNamedActionplans map[string]*ActionPlanQuery + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the StandardQuery builder. +func (sq *StandardQuery) Where(ps ...predicate.Standard) *StandardQuery { + sq.predicates = append(sq.predicates, ps...) + return sq +} + +// Limit the number of records to be returned by this query. +func (sq *StandardQuery) Limit(limit int) *StandardQuery { + sq.ctx.Limit = &limit + return sq +} + +// Offset to start from. +func (sq *StandardQuery) Offset(offset int) *StandardQuery { + sq.ctx.Offset = &offset + return sq +} + +// 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 (sq *StandardQuery) Unique(unique bool) *StandardQuery { + sq.ctx.Unique = &unique + return sq +} + +// Order specifies how the records should be ordered. +func (sq *StandardQuery) Order(o ...standard.OrderOption) *StandardQuery { + sq.order = append(sq.order, o...) + return sq +} + +// QueryControlobjectives chains the current query on the "controlobjectives" edge. +func (sq *StandardQuery) QueryControlobjectives() *ControlObjectiveQuery { + query := (&ControlObjectiveClient{config: sq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := sq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := sq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(standard.Table, standard.FieldID, selector), + sqlgraph.To(controlobjective.Table, controlobjective.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, standard.ControlobjectivesTable, standard.ControlobjectivesPrimaryKey...), + ) + schemaConfig := sq.schemaConfig + step.To.Schema = schemaConfig.ControlObjective + step.Edge.Schema = schemaConfig.StandardControlobjectives + fromU = sqlgraph.SetNeighbors(sq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryControls chains the current query on the "controls" edge. +func (sq *StandardQuery) QueryControls() *ControlQuery { + query := (&ControlClient{config: sq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := sq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := sq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(standard.Table, standard.FieldID, selector), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, standard.ControlsTable, standard.ControlsPrimaryKey...), + ) + schemaConfig := sq.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.StandardControls + fromU = sqlgraph.SetNeighbors(sq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryProcedures chains the current query on the "procedures" edge. +func (sq *StandardQuery) QueryProcedures() *ProcedureQuery { + query := (&ProcedureClient{config: sq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := sq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := sq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(standard.Table, standard.FieldID, selector), + sqlgraph.To(procedure.Table, procedure.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, standard.ProceduresTable, standard.ProceduresColumn), + ) + schemaConfig := sq.schemaConfig + step.To.Schema = schemaConfig.Procedure + step.Edge.Schema = schemaConfig.Procedure + fromU = sqlgraph.SetNeighbors(sq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryActionplans chains the current query on the "actionplans" edge. +func (sq *StandardQuery) QueryActionplans() *ActionPlanQuery { + query := (&ActionPlanClient{config: sq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := sq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := sq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(standard.Table, standard.FieldID, selector), + sqlgraph.To(actionplan.Table, actionplan.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, standard.ActionplansTable, standard.ActionplansPrimaryKey...), + ) + schemaConfig := sq.schemaConfig + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.StandardActionplans + fromU = sqlgraph.SetNeighbors(sq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// First returns the first Standard entity from the query. +// Returns a *NotFoundError when no Standard was found. +func (sq *StandardQuery) First(ctx context.Context) (*Standard, error) { + nodes, err := sq.Limit(1).All(setContextOp(ctx, sq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{standard.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (sq *StandardQuery) FirstX(ctx context.Context) *Standard { + node, err := sq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first Standard ID from the query. +// Returns a *NotFoundError when no Standard ID was found. +func (sq *StandardQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = sq.Limit(1).IDs(setContextOp(ctx, sq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{standard.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (sq *StandardQuery) FirstIDX(ctx context.Context) string { + id, err := sq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single Standard entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one Standard entity is found. +// Returns a *NotFoundError when no Standard entities are found. +func (sq *StandardQuery) Only(ctx context.Context) (*Standard, error) { + nodes, err := sq.Limit(2).All(setContextOp(ctx, sq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{standard.Label} + default: + return nil, &NotSingularError{standard.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (sq *StandardQuery) OnlyX(ctx context.Context) *Standard { + node, err := sq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only Standard ID in the query. +// Returns a *NotSingularError when more than one Standard ID is found. +// Returns a *NotFoundError when no entities are found. +func (sq *StandardQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = sq.Limit(2).IDs(setContextOp(ctx, sq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{standard.Label} + default: + err = &NotSingularError{standard.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (sq *StandardQuery) OnlyIDX(ctx context.Context) string { + id, err := sq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of Standards. +func (sq *StandardQuery) All(ctx context.Context) ([]*Standard, error) { + ctx = setContextOp(ctx, sq.ctx, ent.OpQueryAll) + if err := sq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*Standard, *StandardQuery]() + return withInterceptors[[]*Standard](ctx, sq, qr, sq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (sq *StandardQuery) AllX(ctx context.Context) []*Standard { + nodes, err := sq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of Standard IDs. +func (sq *StandardQuery) IDs(ctx context.Context) (ids []string, err error) { + if sq.ctx.Unique == nil && sq.path != nil { + sq.Unique(true) + } + ctx = setContextOp(ctx, sq.ctx, ent.OpQueryIDs) + if err = sq.Select(standard.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (sq *StandardQuery) IDsX(ctx context.Context) []string { + ids, err := sq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (sq *StandardQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, sq.ctx, ent.OpQueryCount) + if err := sq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, sq, querierCount[*StandardQuery](), sq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (sq *StandardQuery) CountX(ctx context.Context) int { + count, err := sq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (sq *StandardQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, sq.ctx, ent.OpQueryExist) + switch _, err := sq.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 (sq *StandardQuery) ExistX(ctx context.Context) bool { + exist, err := sq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the StandardQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (sq *StandardQuery) Clone() *StandardQuery { + if sq == nil { + return nil + } + return &StandardQuery{ + config: sq.config, + ctx: sq.ctx.Clone(), + order: append([]standard.OrderOption{}, sq.order...), + inters: append([]Interceptor{}, sq.inters...), + predicates: append([]predicate.Standard{}, sq.predicates...), + withControlobjectives: sq.withControlobjectives.Clone(), + withControls: sq.withControls.Clone(), + withProcedures: sq.withProcedures.Clone(), + withActionplans: sq.withActionplans.Clone(), + // clone intermediate query. + sql: sq.sql.Clone(), + path: sq.path, + modifiers: append([]func(*sql.Selector){}, sq.modifiers...), + } +} + +// WithControlobjectives tells the query-builder to eager-load the nodes that are connected to +// the "controlobjectives" edge. The optional arguments are used to configure the query builder of the edge. +func (sq *StandardQuery) WithControlobjectives(opts ...func(*ControlObjectiveQuery)) *StandardQuery { + query := (&ControlObjectiveClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + sq.withControlobjectives = query + return sq +} + +// 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 (sq *StandardQuery) WithControls(opts ...func(*ControlQuery)) *StandardQuery { + query := (&ControlClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + sq.withControls = query + return sq +} + +// WithProcedures tells the query-builder to eager-load the nodes that are connected to +// the "procedures" edge. The optional arguments are used to configure the query builder of the edge. +func (sq *StandardQuery) WithProcedures(opts ...func(*ProcedureQuery)) *StandardQuery { + query := (&ProcedureClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + sq.withProcedures = query + return sq +} + +// WithActionplans tells the query-builder to eager-load the nodes that are connected to +// the "actionplans" edge. The optional arguments are used to configure the query builder of the edge. +func (sq *StandardQuery) WithActionplans(opts ...func(*ActionPlanQuery)) *StandardQuery { + query := (&ActionPlanClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + sq.withActionplans = query + return sq +} + +// 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.Standard.Query(). +// GroupBy(standard.FieldCreatedAt). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (sq *StandardQuery) GroupBy(field string, fields ...string) *StandardGroupBy { + sq.ctx.Fields = append([]string{field}, fields...) + grbuild := &StandardGroupBy{build: sq} + grbuild.flds = &sq.ctx.Fields + grbuild.label = standard.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.Standard.Query(). +// Select(standard.FieldCreatedAt). +// Scan(ctx, &v) +func (sq *StandardQuery) Select(fields ...string) *StandardSelect { + sq.ctx.Fields = append(sq.ctx.Fields, fields...) + sbuild := &StandardSelect{StandardQuery: sq} + sbuild.label = standard.Label + sbuild.flds, sbuild.scan = &sq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a StandardSelect configured with the given aggregations. +func (sq *StandardQuery) Aggregate(fns ...AggregateFunc) *StandardSelect { + return sq.Select().Aggregate(fns...) +} + +func (sq *StandardQuery) prepareQuery(ctx context.Context) error { + for _, inter := range sq.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, sq); err != nil { + return err + } + } + } + for _, f := range sq.ctx.Fields { + if !standard.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if sq.path != nil { + prev, err := sq.path(ctx) + if err != nil { + return err + } + sq.sql = prev + } + return nil +} + +func (sq *StandardQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Standard, error) { + var ( + nodes = []*Standard{} + _spec = sq.querySpec() + loadedTypes = [4]bool{ + sq.withControlobjectives != nil, + sq.withControls != nil, + sq.withProcedures != nil, + sq.withActionplans != nil, + } + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*Standard).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &Standard{config: sq.config} + nodes = append(nodes, node) + node.Edges.loadedTypes = loadedTypes + return node.assignValues(columns, values) + } + _spec.Node.Schema = sq.schemaConfig.Standard + ctx = internal.NewSchemaConfigContext(ctx, sq.schemaConfig) + if len(sq.modifiers) > 0 { + _spec.Modifiers = sq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, sq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + if query := sq.withControlobjectives; query != nil { + if err := sq.loadControlobjectives(ctx, query, nodes, + func(n *Standard) { n.Edges.Controlobjectives = []*ControlObjective{} }, + func(n *Standard, e *ControlObjective) { + n.Edges.Controlobjectives = append(n.Edges.Controlobjectives, e) + }); err != nil { + return nil, err + } + } + if query := sq.withControls; query != nil { + if err := sq.loadControls(ctx, query, nodes, + func(n *Standard) { n.Edges.Controls = []*Control{} }, + func(n *Standard, e *Control) { n.Edges.Controls = append(n.Edges.Controls, e) }); err != nil { + return nil, err + } + } + if query := sq.withProcedures; query != nil { + if err := sq.loadProcedures(ctx, query, nodes, + func(n *Standard) { n.Edges.Procedures = []*Procedure{} }, + func(n *Standard, e *Procedure) { n.Edges.Procedures = append(n.Edges.Procedures, e) }); err != nil { + return nil, err + } + } + if query := sq.withActionplans; query != nil { + if err := sq.loadActionplans(ctx, query, nodes, + func(n *Standard) { n.Edges.Actionplans = []*ActionPlan{} }, + func(n *Standard, e *ActionPlan) { n.Edges.Actionplans = append(n.Edges.Actionplans, e) }); err != nil { + return nil, err + } + } + for name, query := range sq.withNamedControlobjectives { + if err := sq.loadControlobjectives(ctx, query, nodes, + func(n *Standard) { n.appendNamedControlobjectives(name) }, + func(n *Standard, e *ControlObjective) { n.appendNamedControlobjectives(name, e) }); err != nil { + return nil, err + } + } + for name, query := range sq.withNamedControls { + if err := sq.loadControls(ctx, query, nodes, + func(n *Standard) { n.appendNamedControls(name) }, + func(n *Standard, e *Control) { n.appendNamedControls(name, e) }); err != nil { + return nil, err + } + } + for name, query := range sq.withNamedProcedures { + if err := sq.loadProcedures(ctx, query, nodes, + func(n *Standard) { n.appendNamedProcedures(name) }, + func(n *Standard, e *Procedure) { n.appendNamedProcedures(name, e) }); err != nil { + return nil, err + } + } + for name, query := range sq.withNamedActionplans { + if err := sq.loadActionplans(ctx, query, nodes, + func(n *Standard) { n.appendNamedActionplans(name) }, + func(n *Standard, e *ActionPlan) { n.appendNamedActionplans(name, e) }); err != nil { + return nil, err + } + } + for i := range sq.loadTotal { + if err := sq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (sq *StandardQuery) loadControlobjectives(ctx context.Context, query *ControlObjectiveQuery, nodes []*Standard, init func(*Standard), assign func(*Standard, *ControlObjective)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Standard) + nids := make(map[string]map[*Standard]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(standard.ControlobjectivesTable) + joinT.Schema(sq.schemaConfig.StandardControlobjectives) + s.Join(joinT).On(s.C(controlobjective.FieldID), joinT.C(standard.ControlobjectivesPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(standard.ControlobjectivesPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(standard.ControlobjectivesPrimaryKey[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[*Standard]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*ControlObjective](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 "controlobjectives" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (sq *StandardQuery) loadControls(ctx context.Context, query *ControlQuery, nodes []*Standard, init func(*Standard), assign func(*Standard, *Control)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Standard) + nids := make(map[string]map[*Standard]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(standard.ControlsTable) + joinT.Schema(sq.schemaConfig.StandardControls) + s.Join(joinT).On(s.C(control.FieldID), joinT.C(standard.ControlsPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(standard.ControlsPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(standard.ControlsPrimaryKey[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[*Standard]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Control](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 "controls" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (sq *StandardQuery) loadProcedures(ctx context.Context, query *ProcedureQuery, nodes []*Standard, init func(*Standard), assign func(*Standard, *Procedure)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Standard) + 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.Procedure(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(standard.ProceduresColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.standard_procedures + if fk == nil { + return fmt.Errorf(`foreign-key "standard_procedures" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "standard_procedures" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (sq *StandardQuery) loadActionplans(ctx context.Context, query *ActionPlanQuery, nodes []*Standard, init func(*Standard), assign func(*Standard, *ActionPlan)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Standard) + nids := make(map[string]map[*Standard]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(standard.ActionplansTable) + joinT.Schema(sq.schemaConfig.StandardActionplans) + s.Join(joinT).On(s.C(actionplan.FieldID), joinT.C(standard.ActionplansPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(standard.ActionplansPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(standard.ActionplansPrimaryKey[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[*Standard]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*ActionPlan](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 "actionplans" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} + +func (sq *StandardQuery) sqlCount(ctx context.Context) (int, error) { + _spec := sq.querySpec() + _spec.Node.Schema = sq.schemaConfig.Standard + ctx = internal.NewSchemaConfigContext(ctx, sq.schemaConfig) + if len(sq.modifiers) > 0 { + _spec.Modifiers = sq.modifiers + } + _spec.Node.Columns = sq.ctx.Fields + if len(sq.ctx.Fields) > 0 { + _spec.Unique = sq.ctx.Unique != nil && *sq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, sq.driver, _spec) +} + +func (sq *StandardQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(standard.Table, standard.Columns, sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString)) + _spec.From = sq.sql + if unique := sq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if sq.path != nil { + _spec.Unique = true + } + if fields := sq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, standard.FieldID) + for i := range fields { + if fields[i] != standard.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := sq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := sq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := sq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := sq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (sq *StandardQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(sq.driver.Dialect()) + t1 := builder.Table(standard.Table) + columns := sq.ctx.Fields + if len(columns) == 0 { + columns = standard.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if sq.sql != nil { + selector = sq.sql + selector.Select(selector.Columns(columns...)...) + } + if sq.ctx.Unique != nil && *sq.ctx.Unique { + selector.Distinct() + } + t1.Schema(sq.schemaConfig.Standard) + ctx = internal.NewSchemaConfigContext(ctx, sq.schemaConfig) + selector.WithContext(ctx) + for _, m := range sq.modifiers { + m(selector) + } + for _, p := range sq.predicates { + p(selector) + } + for _, p := range sq.order { + p(selector) + } + if offset := sq.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 := sq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (sq *StandardQuery) Modify(modifiers ...func(s *sql.Selector)) *StandardSelect { + sq.modifiers = append(sq.modifiers, modifiers...) + return sq.Select() +} + +// WithNamedControlobjectives tells the query-builder to eager-load the nodes that are connected to the "controlobjectives" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (sq *StandardQuery) WithNamedControlobjectives(name string, opts ...func(*ControlObjectiveQuery)) *StandardQuery { + query := (&ControlObjectiveClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + if sq.withNamedControlobjectives == nil { + sq.withNamedControlobjectives = make(map[string]*ControlObjectiveQuery) + } + sq.withNamedControlobjectives[name] = query + return sq +} + +// 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 (sq *StandardQuery) WithNamedControls(name string, opts ...func(*ControlQuery)) *StandardQuery { + query := (&ControlClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + if sq.withNamedControls == nil { + sq.withNamedControls = make(map[string]*ControlQuery) + } + sq.withNamedControls[name] = query + return sq +} + +// WithNamedProcedures tells the query-builder to eager-load the nodes that are connected to the "procedures" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (sq *StandardQuery) WithNamedProcedures(name string, opts ...func(*ProcedureQuery)) *StandardQuery { + query := (&ProcedureClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + if sq.withNamedProcedures == nil { + sq.withNamedProcedures = make(map[string]*ProcedureQuery) + } + sq.withNamedProcedures[name] = query + return sq +} + +// WithNamedActionplans tells the query-builder to eager-load the nodes that are connected to the "actionplans" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (sq *StandardQuery) WithNamedActionplans(name string, opts ...func(*ActionPlanQuery)) *StandardQuery { + query := (&ActionPlanClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + if sq.withNamedActionplans == nil { + sq.withNamedActionplans = make(map[string]*ActionPlanQuery) + } + sq.withNamedActionplans[name] = query + return sq +} + +// StandardGroupBy is the group-by builder for Standard entities. +type StandardGroupBy struct { + selector + build *StandardQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (sgb *StandardGroupBy) Aggregate(fns ...AggregateFunc) *StandardGroupBy { + sgb.fns = append(sgb.fns, fns...) + return sgb +} + +// Scan applies the selector query and scans the result into the given value. +func (sgb *StandardGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, sgb.build.ctx, ent.OpQueryGroupBy) + if err := sgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*StandardQuery, *StandardGroupBy](ctx, sgb.build, sgb, sgb.build.inters, v) +} + +func (sgb *StandardGroupBy) sqlScan(ctx context.Context, root *StandardQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(sgb.fns)) + for _, fn := range sgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*sgb.flds)+len(sgb.fns)) + for _, f := range *sgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*sgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := sgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// StandardSelect is the builder for selecting fields of Standard entities. +type StandardSelect struct { + *StandardQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (ss *StandardSelect) Aggregate(fns ...AggregateFunc) *StandardSelect { + ss.fns = append(ss.fns, fns...) + return ss +} + +// Scan applies the selector query and scans the result into the given value. +func (ss *StandardSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, ss.ctx, ent.OpQuerySelect) + if err := ss.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*StandardQuery, *StandardSelect](ctx, ss.StandardQuery, ss, ss.inters, v) +} + +func (ss *StandardSelect) sqlScan(ctx context.Context, root *StandardQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(ss.fns)) + for _, fn := range ss.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*ss.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 := ss.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 (ss *StandardSelect) Modify(modifiers ...func(s *sql.Selector)) *StandardSelect { + ss.modifiers = append(ss.modifiers, modifiers...) + return ss +} diff --git a/internal/ent/generated/standard_update.go b/internal/ent/generated/standard_update.go new file mode 100644 index 00000000..699ce722 --- /dev/null +++ b/internal/ent/generated/standard_update.go @@ -0,0 +1,1653 @@ +// 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/internal/ent/generated/actionplan" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/standard" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// StandardUpdate is the builder for updating Standard entities. +type StandardUpdate struct { + config + hooks []Hook + mutation *StandardMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the StandardUpdate builder. +func (su *StandardUpdate) Where(ps ...predicate.Standard) *StandardUpdate { + su.mutation.Where(ps...) + return su +} + +// SetUpdatedAt sets the "updated_at" field. +func (su *StandardUpdate) SetUpdatedAt(t time.Time) *StandardUpdate { + su.mutation.SetUpdatedAt(t) + return su +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (su *StandardUpdate) ClearUpdatedAt() *StandardUpdate { + su.mutation.ClearUpdatedAt() + return su +} + +// SetUpdatedBy sets the "updated_by" field. +func (su *StandardUpdate) SetUpdatedBy(s string) *StandardUpdate { + su.mutation.SetUpdatedBy(s) + return su +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (su *StandardUpdate) SetNillableUpdatedBy(s *string) *StandardUpdate { + if s != nil { + su.SetUpdatedBy(*s) + } + return su +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (su *StandardUpdate) ClearUpdatedBy() *StandardUpdate { + su.mutation.ClearUpdatedBy() + return su +} + +// SetDeletedAt sets the "deleted_at" field. +func (su *StandardUpdate) SetDeletedAt(t time.Time) *StandardUpdate { + su.mutation.SetDeletedAt(t) + return su +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (su *StandardUpdate) SetNillableDeletedAt(t *time.Time) *StandardUpdate { + if t != nil { + su.SetDeletedAt(*t) + } + return su +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (su *StandardUpdate) ClearDeletedAt() *StandardUpdate { + su.mutation.ClearDeletedAt() + return su +} + +// SetDeletedBy sets the "deleted_by" field. +func (su *StandardUpdate) SetDeletedBy(s string) *StandardUpdate { + su.mutation.SetDeletedBy(s) + return su +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (su *StandardUpdate) SetNillableDeletedBy(s *string) *StandardUpdate { + if s != nil { + su.SetDeletedBy(*s) + } + return su +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (su *StandardUpdate) ClearDeletedBy() *StandardUpdate { + su.mutation.ClearDeletedBy() + return su +} + +// SetTags sets the "tags" field. +func (su *StandardUpdate) SetTags(s []string) *StandardUpdate { + su.mutation.SetTags(s) + return su +} + +// AppendTags appends s to the "tags" field. +func (su *StandardUpdate) AppendTags(s []string) *StandardUpdate { + su.mutation.AppendTags(s) + return su +} + +// ClearTags clears the value of the "tags" field. +func (su *StandardUpdate) ClearTags() *StandardUpdate { + su.mutation.ClearTags() + return su +} + +// SetName sets the "name" field. +func (su *StandardUpdate) SetName(s string) *StandardUpdate { + su.mutation.SetName(s) + return su +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (su *StandardUpdate) SetNillableName(s *string) *StandardUpdate { + if s != nil { + su.SetName(*s) + } + return su +} + +// SetDescription sets the "description" field. +func (su *StandardUpdate) SetDescription(s string) *StandardUpdate { + su.mutation.SetDescription(s) + return su +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (su *StandardUpdate) SetNillableDescription(s *string) *StandardUpdate { + if s != nil { + su.SetDescription(*s) + } + return su +} + +// ClearDescription clears the value of the "description" field. +func (su *StandardUpdate) ClearDescription() *StandardUpdate { + su.mutation.ClearDescription() + return su +} + +// SetFamily sets the "family" field. +func (su *StandardUpdate) SetFamily(s string) *StandardUpdate { + su.mutation.SetFamily(s) + return su +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (su *StandardUpdate) SetNillableFamily(s *string) *StandardUpdate { + if s != nil { + su.SetFamily(*s) + } + return su +} + +// ClearFamily clears the value of the "family" field. +func (su *StandardUpdate) ClearFamily() *StandardUpdate { + su.mutation.ClearFamily() + return su +} + +// SetStatus sets the "status" field. +func (su *StandardUpdate) SetStatus(s string) *StandardUpdate { + su.mutation.SetStatus(s) + return su +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (su *StandardUpdate) SetNillableStatus(s *string) *StandardUpdate { + if s != nil { + su.SetStatus(*s) + } + return su +} + +// ClearStatus clears the value of the "status" field. +func (su *StandardUpdate) ClearStatus() *StandardUpdate { + su.mutation.ClearStatus() + return su +} + +// SetStandardType sets the "standard_type" field. +func (su *StandardUpdate) SetStandardType(s string) *StandardUpdate { + su.mutation.SetStandardType(s) + return su +} + +// SetNillableStandardType sets the "standard_type" field if the given value is not nil. +func (su *StandardUpdate) SetNillableStandardType(s *string) *StandardUpdate { + if s != nil { + su.SetStandardType(*s) + } + return su +} + +// ClearStandardType clears the value of the "standard_type" field. +func (su *StandardUpdate) ClearStandardType() *StandardUpdate { + su.mutation.ClearStandardType() + return su +} + +// SetVersion sets the "version" field. +func (su *StandardUpdate) SetVersion(s string) *StandardUpdate { + su.mutation.SetVersion(s) + return su +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (su *StandardUpdate) SetNillableVersion(s *string) *StandardUpdate { + if s != nil { + su.SetVersion(*s) + } + return su +} + +// ClearVersion clears the value of the "version" field. +func (su *StandardUpdate) ClearVersion() *StandardUpdate { + su.mutation.ClearVersion() + return su +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (su *StandardUpdate) SetPurposeAndScope(s string) *StandardUpdate { + su.mutation.SetPurposeAndScope(s) + return su +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (su *StandardUpdate) SetNillablePurposeAndScope(s *string) *StandardUpdate { + if s != nil { + su.SetPurposeAndScope(*s) + } + return su +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (su *StandardUpdate) ClearPurposeAndScope() *StandardUpdate { + su.mutation.ClearPurposeAndScope() + return su +} + +// SetBackground sets the "background" field. +func (su *StandardUpdate) SetBackground(s string) *StandardUpdate { + su.mutation.SetBackground(s) + return su +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (su *StandardUpdate) SetNillableBackground(s *string) *StandardUpdate { + if s != nil { + su.SetBackground(*s) + } + return su +} + +// ClearBackground clears the value of the "background" field. +func (su *StandardUpdate) ClearBackground() *StandardUpdate { + su.mutation.ClearBackground() + return su +} + +// SetSatisfies sets the "satisfies" field. +func (su *StandardUpdate) SetSatisfies(s string) *StandardUpdate { + su.mutation.SetSatisfies(s) + return su +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (su *StandardUpdate) SetNillableSatisfies(s *string) *StandardUpdate { + if s != nil { + su.SetSatisfies(*s) + } + return su +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (su *StandardUpdate) ClearSatisfies() *StandardUpdate { + su.mutation.ClearSatisfies() + return su +} + +// SetDetails sets the "details" field. +func (su *StandardUpdate) SetDetails(m map[string]interface{}) *StandardUpdate { + su.mutation.SetDetails(m) + return su +} + +// ClearDetails clears the value of the "details" field. +func (su *StandardUpdate) ClearDetails() *StandardUpdate { + su.mutation.ClearDetails() + return su +} + +// AddControlobjectiveIDs adds the "controlobjectives" edge to the ControlObjective entity by IDs. +func (su *StandardUpdate) AddControlobjectiveIDs(ids ...string) *StandardUpdate { + su.mutation.AddControlobjectiveIDs(ids...) + return su +} + +// AddControlobjectives adds the "controlobjectives" edges to the ControlObjective entity. +func (su *StandardUpdate) AddControlobjectives(c ...*ControlObjective) *StandardUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return su.AddControlobjectiveIDs(ids...) +} + +// AddControlIDs adds the "controls" edge to the Control entity by IDs. +func (su *StandardUpdate) AddControlIDs(ids ...string) *StandardUpdate { + su.mutation.AddControlIDs(ids...) + return su +} + +// AddControls adds the "controls" edges to the Control entity. +func (su *StandardUpdate) AddControls(c ...*Control) *StandardUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return su.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (su *StandardUpdate) AddProcedureIDs(ids ...string) *StandardUpdate { + su.mutation.AddProcedureIDs(ids...) + return su +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (su *StandardUpdate) AddProcedures(p ...*Procedure) *StandardUpdate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return su.AddProcedureIDs(ids...) +} + +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by IDs. +func (su *StandardUpdate) AddActionplanIDs(ids ...string) *StandardUpdate { + su.mutation.AddActionplanIDs(ids...) + return su +} + +// AddActionplans adds the "actionplans" edges to the ActionPlan entity. +func (su *StandardUpdate) AddActionplans(a ...*ActionPlan) *StandardUpdate { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return su.AddActionplanIDs(ids...) +} + +// Mutation returns the StandardMutation object of the builder. +func (su *StandardUpdate) Mutation() *StandardMutation { + return su.mutation +} + +// ClearControlobjectives clears all "controlobjectives" edges to the ControlObjective entity. +func (su *StandardUpdate) ClearControlobjectives() *StandardUpdate { + su.mutation.ClearControlobjectives() + return su +} + +// RemoveControlobjectiveIDs removes the "controlobjectives" edge to ControlObjective entities by IDs. +func (su *StandardUpdate) RemoveControlobjectiveIDs(ids ...string) *StandardUpdate { + su.mutation.RemoveControlobjectiveIDs(ids...) + return su +} + +// RemoveControlobjectives removes "controlobjectives" edges to ControlObjective entities. +func (su *StandardUpdate) RemoveControlobjectives(c ...*ControlObjective) *StandardUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return su.RemoveControlobjectiveIDs(ids...) +} + +// ClearControls clears all "controls" edges to the Control entity. +func (su *StandardUpdate) ClearControls() *StandardUpdate { + su.mutation.ClearControls() + return su +} + +// RemoveControlIDs removes the "controls" edge to Control entities by IDs. +func (su *StandardUpdate) RemoveControlIDs(ids ...string) *StandardUpdate { + su.mutation.RemoveControlIDs(ids...) + return su +} + +// RemoveControls removes "controls" edges to Control entities. +func (su *StandardUpdate) RemoveControls(c ...*Control) *StandardUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return su.RemoveControlIDs(ids...) +} + +// ClearProcedures clears all "procedures" edges to the Procedure entity. +func (su *StandardUpdate) ClearProcedures() *StandardUpdate { + su.mutation.ClearProcedures() + return su +} + +// RemoveProcedureIDs removes the "procedures" edge to Procedure entities by IDs. +func (su *StandardUpdate) RemoveProcedureIDs(ids ...string) *StandardUpdate { + su.mutation.RemoveProcedureIDs(ids...) + return su +} + +// RemoveProcedures removes "procedures" edges to Procedure entities. +func (su *StandardUpdate) RemoveProcedures(p ...*Procedure) *StandardUpdate { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return su.RemoveProcedureIDs(ids...) +} + +// ClearActionplans clears all "actionplans" edges to the ActionPlan entity. +func (su *StandardUpdate) ClearActionplans() *StandardUpdate { + su.mutation.ClearActionplans() + return su +} + +// RemoveActionplanIDs removes the "actionplans" edge to ActionPlan entities by IDs. +func (su *StandardUpdate) RemoveActionplanIDs(ids ...string) *StandardUpdate { + su.mutation.RemoveActionplanIDs(ids...) + return su +} + +// RemoveActionplans removes "actionplans" edges to ActionPlan entities. +func (su *StandardUpdate) RemoveActionplans(a ...*ActionPlan) *StandardUpdate { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return su.RemoveActionplanIDs(ids...) +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (su *StandardUpdate) Save(ctx context.Context) (int, error) { + if err := su.defaults(); err != nil { + return 0, err + } + return withHooks(ctx, su.sqlSave, su.mutation, su.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (su *StandardUpdate) SaveX(ctx context.Context) int { + affected, err := su.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (su *StandardUpdate) Exec(ctx context.Context) error { + _, err := su.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (su *StandardUpdate) ExecX(ctx context.Context) { + if err := su.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (su *StandardUpdate) defaults() error { + if _, ok := su.mutation.UpdatedAt(); !ok && !su.mutation.UpdatedAtCleared() { + if standard.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized standard.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := standard.UpdateDefaultUpdatedAt() + su.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (su *StandardUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *StandardUpdate { + su.modifiers = append(su.modifiers, modifiers...) + return su +} + +func (su *StandardUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(standard.Table, standard.Columns, sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString)) + if ps := su.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if su.mutation.CreatedAtCleared() { + _spec.ClearField(standard.FieldCreatedAt, field.TypeTime) + } + if value, ok := su.mutation.UpdatedAt(); ok { + _spec.SetField(standard.FieldUpdatedAt, field.TypeTime, value) + } + if su.mutation.UpdatedAtCleared() { + _spec.ClearField(standard.FieldUpdatedAt, field.TypeTime) + } + if su.mutation.CreatedByCleared() { + _spec.ClearField(standard.FieldCreatedBy, field.TypeString) + } + if value, ok := su.mutation.UpdatedBy(); ok { + _spec.SetField(standard.FieldUpdatedBy, field.TypeString, value) + } + if su.mutation.UpdatedByCleared() { + _spec.ClearField(standard.FieldUpdatedBy, field.TypeString) + } + if value, ok := su.mutation.DeletedAt(); ok { + _spec.SetField(standard.FieldDeletedAt, field.TypeTime, value) + } + if su.mutation.DeletedAtCleared() { + _spec.ClearField(standard.FieldDeletedAt, field.TypeTime) + } + if value, ok := su.mutation.DeletedBy(); ok { + _spec.SetField(standard.FieldDeletedBy, field.TypeString, value) + } + if su.mutation.DeletedByCleared() { + _spec.ClearField(standard.FieldDeletedBy, field.TypeString) + } + if value, ok := su.mutation.Tags(); ok { + _spec.SetField(standard.FieldTags, field.TypeJSON, value) + } + if value, ok := su.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, standard.FieldTags, value) + }) + } + if su.mutation.TagsCleared() { + _spec.ClearField(standard.FieldTags, field.TypeJSON) + } + if value, ok := su.mutation.Name(); ok { + _spec.SetField(standard.FieldName, field.TypeString, value) + } + if value, ok := su.mutation.Description(); ok { + _spec.SetField(standard.FieldDescription, field.TypeString, value) + } + if su.mutation.DescriptionCleared() { + _spec.ClearField(standard.FieldDescription, field.TypeString) + } + if value, ok := su.mutation.Family(); ok { + _spec.SetField(standard.FieldFamily, field.TypeString, value) + } + if su.mutation.FamilyCleared() { + _spec.ClearField(standard.FieldFamily, field.TypeString) + } + if value, ok := su.mutation.Status(); ok { + _spec.SetField(standard.FieldStatus, field.TypeString, value) + } + if su.mutation.StatusCleared() { + _spec.ClearField(standard.FieldStatus, field.TypeString) + } + if value, ok := su.mutation.StandardType(); ok { + _spec.SetField(standard.FieldStandardType, field.TypeString, value) + } + if su.mutation.StandardTypeCleared() { + _spec.ClearField(standard.FieldStandardType, field.TypeString) + } + if value, ok := su.mutation.Version(); ok { + _spec.SetField(standard.FieldVersion, field.TypeString, value) + } + if su.mutation.VersionCleared() { + _spec.ClearField(standard.FieldVersion, field.TypeString) + } + if value, ok := su.mutation.PurposeAndScope(); ok { + _spec.SetField(standard.FieldPurposeAndScope, field.TypeString, value) + } + if su.mutation.PurposeAndScopeCleared() { + _spec.ClearField(standard.FieldPurposeAndScope, field.TypeString) + } + if value, ok := su.mutation.Background(); ok { + _spec.SetField(standard.FieldBackground, field.TypeString, value) + } + if su.mutation.BackgroundCleared() { + _spec.ClearField(standard.FieldBackground, field.TypeString) + } + if value, ok := su.mutation.Satisfies(); ok { + _spec.SetField(standard.FieldSatisfies, field.TypeString, value) + } + if su.mutation.SatisfiesCleared() { + _spec.ClearField(standard.FieldSatisfies, field.TypeString) + } + if value, ok := su.mutation.Details(); ok { + _spec.SetField(standard.FieldDetails, field.TypeJSON, value) + } + if su.mutation.DetailsCleared() { + _spec.ClearField(standard.FieldDetails, field.TypeJSON) + } + if su.mutation.ControlobjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlobjectivesTable, + Columns: standard.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.StandardControlobjectives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.RemovedControlobjectivesIDs(); len(nodes) > 0 && !su.mutation.ControlobjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlobjectivesTable, + Columns: standard.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.StandardControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.ControlobjectivesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlobjectivesTable, + Columns: standard.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.StandardControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if su.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlsTable, + Columns: standard.ControlsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.StandardControls + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.RemovedControlsIDs(); len(nodes) > 0 && !su.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlsTable, + Columns: standard.ControlsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.StandardControls + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.ControlsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlsTable, + Columns: standard.ControlsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.StandardControls + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if su.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: standard.ProceduresTable, + Columns: []string{standard.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.Procedure + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.RemovedProceduresIDs(); len(nodes) > 0 && !su.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: standard.ProceduresTable, + Columns: []string{standard.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.Procedure + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: standard.ProceduresTable, + Columns: []string{standard.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.Procedure + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if su.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ActionplansTable, + Columns: standard.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.StandardActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.RemovedActionplansIDs(); len(nodes) > 0 && !su.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ActionplansTable, + Columns: standard.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.StandardActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.ActionplansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ActionplansTable, + Columns: standard.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.StandardActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = su.schemaConfig.Standard + ctx = internal.NewSchemaConfigContext(ctx, su.schemaConfig) + _spec.AddModifiers(su.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, su.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{standard.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + su.mutation.done = true + return n, nil +} + +// StandardUpdateOne is the builder for updating a single Standard entity. +type StandardUpdateOne struct { + config + fields []string + hooks []Hook + mutation *StandardMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (suo *StandardUpdateOne) SetUpdatedAt(t time.Time) *StandardUpdateOne { + suo.mutation.SetUpdatedAt(t) + return suo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (suo *StandardUpdateOne) ClearUpdatedAt() *StandardUpdateOne { + suo.mutation.ClearUpdatedAt() + return suo +} + +// SetUpdatedBy sets the "updated_by" field. +func (suo *StandardUpdateOne) SetUpdatedBy(s string) *StandardUpdateOne { + suo.mutation.SetUpdatedBy(s) + return suo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (suo *StandardUpdateOne) SetNillableUpdatedBy(s *string) *StandardUpdateOne { + if s != nil { + suo.SetUpdatedBy(*s) + } + return suo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (suo *StandardUpdateOne) ClearUpdatedBy() *StandardUpdateOne { + suo.mutation.ClearUpdatedBy() + return suo +} + +// SetDeletedAt sets the "deleted_at" field. +func (suo *StandardUpdateOne) SetDeletedAt(t time.Time) *StandardUpdateOne { + suo.mutation.SetDeletedAt(t) + return suo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (suo *StandardUpdateOne) SetNillableDeletedAt(t *time.Time) *StandardUpdateOne { + if t != nil { + suo.SetDeletedAt(*t) + } + return suo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (suo *StandardUpdateOne) ClearDeletedAt() *StandardUpdateOne { + suo.mutation.ClearDeletedAt() + return suo +} + +// SetDeletedBy sets the "deleted_by" field. +func (suo *StandardUpdateOne) SetDeletedBy(s string) *StandardUpdateOne { + suo.mutation.SetDeletedBy(s) + return suo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (suo *StandardUpdateOne) SetNillableDeletedBy(s *string) *StandardUpdateOne { + if s != nil { + suo.SetDeletedBy(*s) + } + return suo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (suo *StandardUpdateOne) ClearDeletedBy() *StandardUpdateOne { + suo.mutation.ClearDeletedBy() + return suo +} + +// SetTags sets the "tags" field. +func (suo *StandardUpdateOne) SetTags(s []string) *StandardUpdateOne { + suo.mutation.SetTags(s) + return suo +} + +// AppendTags appends s to the "tags" field. +func (suo *StandardUpdateOne) AppendTags(s []string) *StandardUpdateOne { + suo.mutation.AppendTags(s) + return suo +} + +// ClearTags clears the value of the "tags" field. +func (suo *StandardUpdateOne) ClearTags() *StandardUpdateOne { + suo.mutation.ClearTags() + return suo +} + +// SetName sets the "name" field. +func (suo *StandardUpdateOne) SetName(s string) *StandardUpdateOne { + suo.mutation.SetName(s) + return suo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (suo *StandardUpdateOne) SetNillableName(s *string) *StandardUpdateOne { + if s != nil { + suo.SetName(*s) + } + return suo +} + +// SetDescription sets the "description" field. +func (suo *StandardUpdateOne) SetDescription(s string) *StandardUpdateOne { + suo.mutation.SetDescription(s) + return suo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (suo *StandardUpdateOne) SetNillableDescription(s *string) *StandardUpdateOne { + if s != nil { + suo.SetDescription(*s) + } + return suo +} + +// ClearDescription clears the value of the "description" field. +func (suo *StandardUpdateOne) ClearDescription() *StandardUpdateOne { + suo.mutation.ClearDescription() + return suo +} + +// SetFamily sets the "family" field. +func (suo *StandardUpdateOne) SetFamily(s string) *StandardUpdateOne { + suo.mutation.SetFamily(s) + return suo +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (suo *StandardUpdateOne) SetNillableFamily(s *string) *StandardUpdateOne { + if s != nil { + suo.SetFamily(*s) + } + return suo +} + +// ClearFamily clears the value of the "family" field. +func (suo *StandardUpdateOne) ClearFamily() *StandardUpdateOne { + suo.mutation.ClearFamily() + return suo +} + +// SetStatus sets the "status" field. +func (suo *StandardUpdateOne) SetStatus(s string) *StandardUpdateOne { + suo.mutation.SetStatus(s) + return suo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (suo *StandardUpdateOne) SetNillableStatus(s *string) *StandardUpdateOne { + if s != nil { + suo.SetStatus(*s) + } + return suo +} + +// ClearStatus clears the value of the "status" field. +func (suo *StandardUpdateOne) ClearStatus() *StandardUpdateOne { + suo.mutation.ClearStatus() + return suo +} + +// SetStandardType sets the "standard_type" field. +func (suo *StandardUpdateOne) SetStandardType(s string) *StandardUpdateOne { + suo.mutation.SetStandardType(s) + return suo +} + +// SetNillableStandardType sets the "standard_type" field if the given value is not nil. +func (suo *StandardUpdateOne) SetNillableStandardType(s *string) *StandardUpdateOne { + if s != nil { + suo.SetStandardType(*s) + } + return suo +} + +// ClearStandardType clears the value of the "standard_type" field. +func (suo *StandardUpdateOne) ClearStandardType() *StandardUpdateOne { + suo.mutation.ClearStandardType() + return suo +} + +// SetVersion sets the "version" field. +func (suo *StandardUpdateOne) SetVersion(s string) *StandardUpdateOne { + suo.mutation.SetVersion(s) + return suo +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (suo *StandardUpdateOne) SetNillableVersion(s *string) *StandardUpdateOne { + if s != nil { + suo.SetVersion(*s) + } + return suo +} + +// ClearVersion clears the value of the "version" field. +func (suo *StandardUpdateOne) ClearVersion() *StandardUpdateOne { + suo.mutation.ClearVersion() + return suo +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (suo *StandardUpdateOne) SetPurposeAndScope(s string) *StandardUpdateOne { + suo.mutation.SetPurposeAndScope(s) + return suo +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (suo *StandardUpdateOne) SetNillablePurposeAndScope(s *string) *StandardUpdateOne { + if s != nil { + suo.SetPurposeAndScope(*s) + } + return suo +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (suo *StandardUpdateOne) ClearPurposeAndScope() *StandardUpdateOne { + suo.mutation.ClearPurposeAndScope() + return suo +} + +// SetBackground sets the "background" field. +func (suo *StandardUpdateOne) SetBackground(s string) *StandardUpdateOne { + suo.mutation.SetBackground(s) + return suo +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (suo *StandardUpdateOne) SetNillableBackground(s *string) *StandardUpdateOne { + if s != nil { + suo.SetBackground(*s) + } + return suo +} + +// ClearBackground clears the value of the "background" field. +func (suo *StandardUpdateOne) ClearBackground() *StandardUpdateOne { + suo.mutation.ClearBackground() + return suo +} + +// SetSatisfies sets the "satisfies" field. +func (suo *StandardUpdateOne) SetSatisfies(s string) *StandardUpdateOne { + suo.mutation.SetSatisfies(s) + return suo +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (suo *StandardUpdateOne) SetNillableSatisfies(s *string) *StandardUpdateOne { + if s != nil { + suo.SetSatisfies(*s) + } + return suo +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (suo *StandardUpdateOne) ClearSatisfies() *StandardUpdateOne { + suo.mutation.ClearSatisfies() + return suo +} + +// SetDetails sets the "details" field. +func (suo *StandardUpdateOne) SetDetails(m map[string]interface{}) *StandardUpdateOne { + suo.mutation.SetDetails(m) + return suo +} + +// ClearDetails clears the value of the "details" field. +func (suo *StandardUpdateOne) ClearDetails() *StandardUpdateOne { + suo.mutation.ClearDetails() + return suo +} + +// AddControlobjectiveIDs adds the "controlobjectives" edge to the ControlObjective entity by IDs. +func (suo *StandardUpdateOne) AddControlobjectiveIDs(ids ...string) *StandardUpdateOne { + suo.mutation.AddControlobjectiveIDs(ids...) + return suo +} + +// AddControlobjectives adds the "controlobjectives" edges to the ControlObjective entity. +func (suo *StandardUpdateOne) AddControlobjectives(c ...*ControlObjective) *StandardUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return suo.AddControlobjectiveIDs(ids...) +} + +// AddControlIDs adds the "controls" edge to the Control entity by IDs. +func (suo *StandardUpdateOne) AddControlIDs(ids ...string) *StandardUpdateOne { + suo.mutation.AddControlIDs(ids...) + return suo +} + +// AddControls adds the "controls" edges to the Control entity. +func (suo *StandardUpdateOne) AddControls(c ...*Control) *StandardUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return suo.AddControlIDs(ids...) +} + +// AddProcedureIDs adds the "procedures" edge to the Procedure entity by IDs. +func (suo *StandardUpdateOne) AddProcedureIDs(ids ...string) *StandardUpdateOne { + suo.mutation.AddProcedureIDs(ids...) + return suo +} + +// AddProcedures adds the "procedures" edges to the Procedure entity. +func (suo *StandardUpdateOne) AddProcedures(p ...*Procedure) *StandardUpdateOne { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return suo.AddProcedureIDs(ids...) +} + +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by IDs. +func (suo *StandardUpdateOne) AddActionplanIDs(ids ...string) *StandardUpdateOne { + suo.mutation.AddActionplanIDs(ids...) + return suo +} + +// AddActionplans adds the "actionplans" edges to the ActionPlan entity. +func (suo *StandardUpdateOne) AddActionplans(a ...*ActionPlan) *StandardUpdateOne { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return suo.AddActionplanIDs(ids...) +} + +// Mutation returns the StandardMutation object of the builder. +func (suo *StandardUpdateOne) Mutation() *StandardMutation { + return suo.mutation +} + +// ClearControlobjectives clears all "controlobjectives" edges to the ControlObjective entity. +func (suo *StandardUpdateOne) ClearControlobjectives() *StandardUpdateOne { + suo.mutation.ClearControlobjectives() + return suo +} + +// RemoveControlobjectiveIDs removes the "controlobjectives" edge to ControlObjective entities by IDs. +func (suo *StandardUpdateOne) RemoveControlobjectiveIDs(ids ...string) *StandardUpdateOne { + suo.mutation.RemoveControlobjectiveIDs(ids...) + return suo +} + +// RemoveControlobjectives removes "controlobjectives" edges to ControlObjective entities. +func (suo *StandardUpdateOne) RemoveControlobjectives(c ...*ControlObjective) *StandardUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return suo.RemoveControlobjectiveIDs(ids...) +} + +// ClearControls clears all "controls" edges to the Control entity. +func (suo *StandardUpdateOne) ClearControls() *StandardUpdateOne { + suo.mutation.ClearControls() + return suo +} + +// RemoveControlIDs removes the "controls" edge to Control entities by IDs. +func (suo *StandardUpdateOne) RemoveControlIDs(ids ...string) *StandardUpdateOne { + suo.mutation.RemoveControlIDs(ids...) + return suo +} + +// RemoveControls removes "controls" edges to Control entities. +func (suo *StandardUpdateOne) RemoveControls(c ...*Control) *StandardUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return suo.RemoveControlIDs(ids...) +} + +// ClearProcedures clears all "procedures" edges to the Procedure entity. +func (suo *StandardUpdateOne) ClearProcedures() *StandardUpdateOne { + suo.mutation.ClearProcedures() + return suo +} + +// RemoveProcedureIDs removes the "procedures" edge to Procedure entities by IDs. +func (suo *StandardUpdateOne) RemoveProcedureIDs(ids ...string) *StandardUpdateOne { + suo.mutation.RemoveProcedureIDs(ids...) + return suo +} + +// RemoveProcedures removes "procedures" edges to Procedure entities. +func (suo *StandardUpdateOne) RemoveProcedures(p ...*Procedure) *StandardUpdateOne { + ids := make([]string, len(p)) + for i := range p { + ids[i] = p[i].ID + } + return suo.RemoveProcedureIDs(ids...) +} + +// ClearActionplans clears all "actionplans" edges to the ActionPlan entity. +func (suo *StandardUpdateOne) ClearActionplans() *StandardUpdateOne { + suo.mutation.ClearActionplans() + return suo +} + +// RemoveActionplanIDs removes the "actionplans" edge to ActionPlan entities by IDs. +func (suo *StandardUpdateOne) RemoveActionplanIDs(ids ...string) *StandardUpdateOne { + suo.mutation.RemoveActionplanIDs(ids...) + return suo +} + +// RemoveActionplans removes "actionplans" edges to ActionPlan entities. +func (suo *StandardUpdateOne) RemoveActionplans(a ...*ActionPlan) *StandardUpdateOne { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return suo.RemoveActionplanIDs(ids...) +} + +// Where appends a list predicates to the StandardUpdate builder. +func (suo *StandardUpdateOne) Where(ps ...predicate.Standard) *StandardUpdateOne { + suo.mutation.Where(ps...) + return suo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (suo *StandardUpdateOne) Select(field string, fields ...string) *StandardUpdateOne { + suo.fields = append([]string{field}, fields...) + return suo +} + +// Save executes the query and returns the updated Standard entity. +func (suo *StandardUpdateOne) Save(ctx context.Context) (*Standard, error) { + if err := suo.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, suo.sqlSave, suo.mutation, suo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (suo *StandardUpdateOne) SaveX(ctx context.Context) *Standard { + node, err := suo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (suo *StandardUpdateOne) Exec(ctx context.Context) error { + _, err := suo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (suo *StandardUpdateOne) ExecX(ctx context.Context) { + if err := suo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (suo *StandardUpdateOne) defaults() error { + if _, ok := suo.mutation.UpdatedAt(); !ok && !suo.mutation.UpdatedAtCleared() { + if standard.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized standard.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := standard.UpdateDefaultUpdatedAt() + suo.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (suo *StandardUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *StandardUpdateOne { + suo.modifiers = append(suo.modifiers, modifiers...) + return suo +} + +func (suo *StandardUpdateOne) sqlSave(ctx context.Context) (_node *Standard, err error) { + _spec := sqlgraph.NewUpdateSpec(standard.Table, standard.Columns, sqlgraph.NewFieldSpec(standard.FieldID, field.TypeString)) + id, ok := suo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "Standard.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := suo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, standard.FieldID) + for _, f := range fields { + if !standard.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != standard.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := suo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if suo.mutation.CreatedAtCleared() { + _spec.ClearField(standard.FieldCreatedAt, field.TypeTime) + } + if value, ok := suo.mutation.UpdatedAt(); ok { + _spec.SetField(standard.FieldUpdatedAt, field.TypeTime, value) + } + if suo.mutation.UpdatedAtCleared() { + _spec.ClearField(standard.FieldUpdatedAt, field.TypeTime) + } + if suo.mutation.CreatedByCleared() { + _spec.ClearField(standard.FieldCreatedBy, field.TypeString) + } + if value, ok := suo.mutation.UpdatedBy(); ok { + _spec.SetField(standard.FieldUpdatedBy, field.TypeString, value) + } + if suo.mutation.UpdatedByCleared() { + _spec.ClearField(standard.FieldUpdatedBy, field.TypeString) + } + if value, ok := suo.mutation.DeletedAt(); ok { + _spec.SetField(standard.FieldDeletedAt, field.TypeTime, value) + } + if suo.mutation.DeletedAtCleared() { + _spec.ClearField(standard.FieldDeletedAt, field.TypeTime) + } + if value, ok := suo.mutation.DeletedBy(); ok { + _spec.SetField(standard.FieldDeletedBy, field.TypeString, value) + } + if suo.mutation.DeletedByCleared() { + _spec.ClearField(standard.FieldDeletedBy, field.TypeString) + } + if value, ok := suo.mutation.Tags(); ok { + _spec.SetField(standard.FieldTags, field.TypeJSON, value) + } + if value, ok := suo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, standard.FieldTags, value) + }) + } + if suo.mutation.TagsCleared() { + _spec.ClearField(standard.FieldTags, field.TypeJSON) + } + if value, ok := suo.mutation.Name(); ok { + _spec.SetField(standard.FieldName, field.TypeString, value) + } + if value, ok := suo.mutation.Description(); ok { + _spec.SetField(standard.FieldDescription, field.TypeString, value) + } + if suo.mutation.DescriptionCleared() { + _spec.ClearField(standard.FieldDescription, field.TypeString) + } + if value, ok := suo.mutation.Family(); ok { + _spec.SetField(standard.FieldFamily, field.TypeString, value) + } + if suo.mutation.FamilyCleared() { + _spec.ClearField(standard.FieldFamily, field.TypeString) + } + if value, ok := suo.mutation.Status(); ok { + _spec.SetField(standard.FieldStatus, field.TypeString, value) + } + if suo.mutation.StatusCleared() { + _spec.ClearField(standard.FieldStatus, field.TypeString) + } + if value, ok := suo.mutation.StandardType(); ok { + _spec.SetField(standard.FieldStandardType, field.TypeString, value) + } + if suo.mutation.StandardTypeCleared() { + _spec.ClearField(standard.FieldStandardType, field.TypeString) + } + if value, ok := suo.mutation.Version(); ok { + _spec.SetField(standard.FieldVersion, field.TypeString, value) + } + if suo.mutation.VersionCleared() { + _spec.ClearField(standard.FieldVersion, field.TypeString) + } + if value, ok := suo.mutation.PurposeAndScope(); ok { + _spec.SetField(standard.FieldPurposeAndScope, field.TypeString, value) + } + if suo.mutation.PurposeAndScopeCleared() { + _spec.ClearField(standard.FieldPurposeAndScope, field.TypeString) + } + if value, ok := suo.mutation.Background(); ok { + _spec.SetField(standard.FieldBackground, field.TypeString, value) + } + if suo.mutation.BackgroundCleared() { + _spec.ClearField(standard.FieldBackground, field.TypeString) + } + if value, ok := suo.mutation.Satisfies(); ok { + _spec.SetField(standard.FieldSatisfies, field.TypeString, value) + } + if suo.mutation.SatisfiesCleared() { + _spec.ClearField(standard.FieldSatisfies, field.TypeString) + } + if value, ok := suo.mutation.Details(); ok { + _spec.SetField(standard.FieldDetails, field.TypeJSON, value) + } + if suo.mutation.DetailsCleared() { + _spec.ClearField(standard.FieldDetails, field.TypeJSON) + } + if suo.mutation.ControlobjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlobjectivesTable, + Columns: standard.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.StandardControlobjectives + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.RemovedControlobjectivesIDs(); len(nodes) > 0 && !suo.mutation.ControlobjectivesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlobjectivesTable, + Columns: standard.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.StandardControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.ControlobjectivesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlobjectivesTable, + Columns: standard.ControlobjectivesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(controlobjective.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.StandardControlobjectives + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if suo.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlsTable, + Columns: standard.ControlsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.StandardControls + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.RemovedControlsIDs(); len(nodes) > 0 && !suo.mutation.ControlsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlsTable, + Columns: standard.ControlsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.StandardControls + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.ControlsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ControlsTable, + Columns: standard.ControlsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.StandardControls + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if suo.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: standard.ProceduresTable, + Columns: []string{standard.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.Procedure + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.RemovedProceduresIDs(); len(nodes) > 0 && !suo.mutation.ProceduresCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: standard.ProceduresTable, + Columns: []string{standard.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.Procedure + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.ProceduresIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: standard.ProceduresTable, + Columns: []string{standard.ProceduresColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(procedure.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.Procedure + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if suo.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ActionplansTable, + Columns: standard.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.StandardActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.RemovedActionplansIDs(); len(nodes) > 0 && !suo.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ActionplansTable, + Columns: standard.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.StandardActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.ActionplansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: standard.ActionplansTable, + Columns: standard.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.StandardActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = suo.schemaConfig.Standard + ctx = internal.NewSchemaConfigContext(ctx, suo.schemaConfig) + _spec.AddModifiers(suo.modifiers...) + _node = &Standard{config: suo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, suo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{standard.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + suo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/standardhistory.go b/internal/ent/generated/standardhistory.go new file mode 100644 index 00000000..c19cd2c3 --- /dev/null +++ b/internal/ent/generated/standardhistory.go @@ -0,0 +1,334 @@ +// 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/internal/ent/generated/standardhistory" + "github.com/theopenlane/entx/history" +) + +// StandardHistory is the model entity for the StandardHistory schema. +type StandardHistory 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + Name string `json:"name,omitempty"` + // description of the standard + Description string `json:"description,omitempty"` + // family of the standard, e.g. 800-53, 800-171, 27001, etc. + Family string `json:"family,omitempty"` + // status of the standard - active, deprecated, etc. + Status string `json:"status,omitempty"` + // type of the standard - security, privacy, etc. + StandardType string `json:"standard_type,omitempty"` + // version of the standard + Version string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope string `json:"purpose_and_scope,omitempty"` + // background of the standard + Background string `json:"background,omitempty"` + // which controls are satisfied by the standard + Satisfies string `json:"satisfies,omitempty"` + // json data with details of the standard + Details map[string]interface{} `json:"details,omitempty"` + selectValues sql.SelectValues +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*StandardHistory) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case standardhistory.FieldTags, standardhistory.FieldDetails: + values[i] = new([]byte) + case standardhistory.FieldOperation: + values[i] = new(history.OpType) + case standardhistory.FieldID, standardhistory.FieldRef, standardhistory.FieldCreatedBy, standardhistory.FieldUpdatedBy, standardhistory.FieldDeletedBy, standardhistory.FieldMappingID, standardhistory.FieldName, standardhistory.FieldDescription, standardhistory.FieldFamily, standardhistory.FieldStatus, standardhistory.FieldStandardType, standardhistory.FieldVersion, standardhistory.FieldPurposeAndScope, standardhistory.FieldBackground, standardhistory.FieldSatisfies: + values[i] = new(sql.NullString) + case standardhistory.FieldHistoryTime, standardhistory.FieldCreatedAt, standardhistory.FieldUpdatedAt, standardhistory.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 StandardHistory fields. +func (sh *StandardHistory) 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 standardhistory.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + sh.ID = value.String + } + case standardhistory.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 { + sh.HistoryTime = value.Time + } + case standardhistory.FieldRef: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field ref", values[i]) + } else if value.Valid { + sh.Ref = value.String + } + case standardhistory.FieldOperation: + if value, ok := values[i].(*history.OpType); !ok { + return fmt.Errorf("unexpected type %T for field operation", values[i]) + } else if value != nil { + sh.Operation = *value + } + case standardhistory.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 { + sh.CreatedAt = value.Time + } + case standardhistory.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 { + sh.UpdatedAt = value.Time + } + case standardhistory.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 { + sh.CreatedBy = value.String + } + case standardhistory.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 { + sh.UpdatedBy = value.String + } + case standardhistory.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 { + sh.DeletedAt = value.Time + } + case standardhistory.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 { + sh.DeletedBy = value.String + } + case standardhistory.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + sh.MappingID = value.String + } + case standardhistory.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, &sh.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case standardhistory.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + sh.Name = value.String + } + case standardhistory.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + sh.Description = value.String + } + case standardhistory.FieldFamily: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field family", values[i]) + } else if value.Valid { + sh.Family = value.String + } + case standardhistory.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + sh.Status = value.String + } + case standardhistory.FieldStandardType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field standard_type", values[i]) + } else if value.Valid { + sh.StandardType = value.String + } + case standardhistory.FieldVersion: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field version", values[i]) + } else if value.Valid { + sh.Version = value.String + } + case standardhistory.FieldPurposeAndScope: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field purpose_and_scope", values[i]) + } else if value.Valid { + sh.PurposeAndScope = value.String + } + case standardhistory.FieldBackground: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field background", values[i]) + } else if value.Valid { + sh.Background = value.String + } + case standardhistory.FieldSatisfies: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field satisfies", values[i]) + } else if value.Valid { + sh.Satisfies = value.String + } + case standardhistory.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &sh.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + sh.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the StandardHistory. +// This includes values selected through modifiers, order, etc. +func (sh *StandardHistory) Value(name string) (ent.Value, error) { + return sh.selectValues.Get(name) +} + +// Update returns a builder for updating this StandardHistory. +// Note that you need to call StandardHistory.Unwrap() before calling this method if this StandardHistory +// was returned from a transaction, and the transaction was committed or rolled back. +func (sh *StandardHistory) Update() *StandardHistoryUpdateOne { + return NewStandardHistoryClient(sh.config).UpdateOne(sh) +} + +// Unwrap unwraps the StandardHistory 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 (sh *StandardHistory) Unwrap() *StandardHistory { + _tx, ok := sh.config.driver.(*txDriver) + if !ok { + panic("generated: StandardHistory is not a transactional entity") + } + sh.config.driver = _tx.drv + return sh +} + +// String implements the fmt.Stringer. +func (sh *StandardHistory) String() string { + var builder strings.Builder + builder.WriteString("StandardHistory(") + builder.WriteString(fmt.Sprintf("id=%v, ", sh.ID)) + builder.WriteString("history_time=") + builder.WriteString(sh.HistoryTime.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("ref=") + builder.WriteString(sh.Ref) + builder.WriteString(", ") + builder.WriteString("operation=") + builder.WriteString(fmt.Sprintf("%v", sh.Operation)) + builder.WriteString(", ") + builder.WriteString("created_at=") + builder.WriteString(sh.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(sh.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(sh.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(sh.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(sh.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(sh.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(sh.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", sh.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(sh.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(sh.Description) + builder.WriteString(", ") + builder.WriteString("family=") + builder.WriteString(sh.Family) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(sh.Status) + builder.WriteString(", ") + builder.WriteString("standard_type=") + builder.WriteString(sh.StandardType) + builder.WriteString(", ") + builder.WriteString("version=") + builder.WriteString(sh.Version) + builder.WriteString(", ") + builder.WriteString("purpose_and_scope=") + builder.WriteString(sh.PurposeAndScope) + builder.WriteString(", ") + builder.WriteString("background=") + builder.WriteString(sh.Background) + builder.WriteString(", ") + builder.WriteString("satisfies=") + builder.WriteString(sh.Satisfies) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", sh.Details)) + builder.WriteByte(')') + return builder.String() +} + +// StandardHistories is a parsable slice of StandardHistory. +type StandardHistories []*StandardHistory diff --git a/internal/ent/generated/standardhistory/standardhistory.go b/internal/ent/generated/standardhistory/standardhistory.go new file mode 100644 index 00000000..d8672e96 --- /dev/null +++ b/internal/ent/generated/standardhistory/standardhistory.go @@ -0,0 +1,236 @@ +// Code generated by ent, DO NOT EDIT. + +package standardhistory + +import ( + "fmt" + "time" + + "entgo.io/ent/dialect/sql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/entx/history" +) + +const ( + // Label holds the string label denoting the standardhistory type in the database. + Label = "standard_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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldFamily holds the string denoting the family field in the database. + FieldFamily = "family" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldStandardType holds the string denoting the standard_type field in the database. + FieldStandardType = "standard_type" + // FieldVersion holds the string denoting the version field in the database. + FieldVersion = "version" + // FieldPurposeAndScope holds the string denoting the purpose_and_scope field in the database. + FieldPurposeAndScope = "purpose_and_scope" + // FieldBackground holds the string denoting the background field in the database. + FieldBackground = "background" + // FieldSatisfies holds the string denoting the satisfies field in the database. + FieldSatisfies = "satisfies" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // Table holds the table name of the standardhistory in the database. + Table = "standard_history" +) + +// Columns holds all SQL columns for standardhistory fields. +var Columns = []string{ + FieldID, + FieldHistoryTime, + FieldRef, + FieldOperation, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldFamily, + FieldStatus, + FieldStandardType, + FieldVersion, + FieldPurposeAndScope, + FieldBackground, + FieldSatisfies, + FieldDetails, +} + +// 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 +} + +var ( + // 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 + // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. + UpdateDefaultUpdatedAt func() time.Time + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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("standardhistory: invalid enum value for operation field: %q", o) + } +} + +// OrderOption defines the ordering options for the StandardHistory 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByFamily orders the results by the family field. +func ByFamily(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldFamily, opts...).ToFunc() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// ByStandardType orders the results by the standard_type field. +func ByStandardType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStandardType, opts...).ToFunc() +} + +// ByVersion orders the results by the version field. +func ByVersion(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldVersion, opts...).ToFunc() +} + +// ByPurposeAndScope orders the results by the purpose_and_scope field. +func ByPurposeAndScope(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldPurposeAndScope, opts...).ToFunc() +} + +// ByBackground orders the results by the background field. +func ByBackground(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldBackground, opts...).ToFunc() +} + +// BySatisfies orders the results by the satisfies field. +func BySatisfies(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSatisfies, 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/generated/standardhistory/where.go b/internal/ent/generated/standardhistory/where.go new file mode 100644 index 00000000..41afa798 --- /dev/null +++ b/internal/ent/generated/standardhistory/where.go @@ -0,0 +1,1431 @@ +// Code generated by ent, DO NOT EDIT. + +package standardhistory + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/entx/history" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.StandardHistory { + return predicate.StandardHistory(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.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// Ref applies equality check predicate on the "ref" field. It's identical to RefEQ. +func Ref(v string) predicate.StandardHistory { + return predicate.StandardHistory(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.StandardHistory { + return predicate.StandardHistory(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.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldDescription, v)) +} + +// Family applies equality check predicate on the "family" field. It's identical to FamilyEQ. +func Family(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldFamily, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldStatus, v)) +} + +// StandardType applies equality check predicate on the "standard_type" field. It's identical to StandardTypeEQ. +func StandardType(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldStandardType, v)) +} + +// Version applies equality check predicate on the "version" field. It's identical to VersionEQ. +func Version(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldVersion, v)) +} + +// PurposeAndScope applies equality check predicate on the "purpose_and_scope" field. It's identical to PurposeAndScopeEQ. +func PurposeAndScope(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldPurposeAndScope, v)) +} + +// Background applies equality check predicate on the "background" field. It's identical to BackgroundEQ. +func Background(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldBackground, v)) +} + +// Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ. +func Satisfies(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldSatisfies, v)) +} + +// HistoryTimeEQ applies the EQ predicate on the "history_time" field. +func HistoryTimeEQ(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// HistoryTimeNEQ applies the NEQ predicate on the "history_time" field. +func HistoryTimeNEQ(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldHistoryTime, v)) +} + +// HistoryTimeIn applies the In predicate on the "history_time" field. +func HistoryTimeIn(vs ...time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeNotIn applies the NotIn predicate on the "history_time" field. +func HistoryTimeNotIn(vs ...time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeGT applies the GT predicate on the "history_time" field. +func HistoryTimeGT(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldHistoryTime, v)) +} + +// HistoryTimeGTE applies the GTE predicate on the "history_time" field. +func HistoryTimeGTE(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldHistoryTime, v)) +} + +// HistoryTimeLT applies the LT predicate on the "history_time" field. +func HistoryTimeLT(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldHistoryTime, v)) +} + +// HistoryTimeLTE applies the LTE predicate on the "history_time" field. +func HistoryTimeLTE(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldHistoryTime, v)) +} + +// RefEQ applies the EQ predicate on the "ref" field. +func RefEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldRef, v)) +} + +// RefNEQ applies the NEQ predicate on the "ref" field. +func RefNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldRef, v)) +} + +// RefIn applies the In predicate on the "ref" field. +func RefIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldRef, vs...)) +} + +// RefNotIn applies the NotIn predicate on the "ref" field. +func RefNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldRef, vs...)) +} + +// RefGT applies the GT predicate on the "ref" field. +func RefGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldRef, v)) +} + +// RefGTE applies the GTE predicate on the "ref" field. +func RefGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldRef, v)) +} + +// RefLT applies the LT predicate on the "ref" field. +func RefLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldRef, v)) +} + +// RefLTE applies the LTE predicate on the "ref" field. +func RefLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldRef, v)) +} + +// RefContains applies the Contains predicate on the "ref" field. +func RefContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldRef, v)) +} + +// RefHasPrefix applies the HasPrefix predicate on the "ref" field. +func RefHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldRef, v)) +} + +// RefHasSuffix applies the HasSuffix predicate on the "ref" field. +func RefHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldRef, v)) +} + +// RefIsNil applies the IsNil predicate on the "ref" field. +func RefIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldRef)) +} + +// RefNotNil applies the NotNil predicate on the "ref" field. +func RefNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldRef)) +} + +// RefEqualFold applies the EqualFold predicate on the "ref" field. +func RefEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldRef, v)) +} + +// RefContainsFold applies the ContainsFold predicate on the "ref" field. +func RefContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldRef, v)) +} + +// OperationEQ applies the EQ predicate on the "operation" field. +func OperationEQ(v history.OpType) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldOperation, v)) +} + +// OperationNEQ applies the NEQ predicate on the "operation" field. +func OperationNEQ(v history.OpType) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldOperation, v)) +} + +// OperationIn applies the In predicate on the "operation" field. +func OperationIn(vs ...history.OpType) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldOperation, vs...)) +} + +// OperationNotIn applies the NotIn predicate on the "operation" field. +func OperationNotIn(vs ...history.OpType) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldOperation, vs...)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldDescription, v)) +} + +// FamilyEQ applies the EQ predicate on the "family" field. +func FamilyEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldFamily, v)) +} + +// FamilyNEQ applies the NEQ predicate on the "family" field. +func FamilyNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldFamily, v)) +} + +// FamilyIn applies the In predicate on the "family" field. +func FamilyIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldFamily, vs...)) +} + +// FamilyNotIn applies the NotIn predicate on the "family" field. +func FamilyNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldFamily, vs...)) +} + +// FamilyGT applies the GT predicate on the "family" field. +func FamilyGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldFamily, v)) +} + +// FamilyGTE applies the GTE predicate on the "family" field. +func FamilyGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldFamily, v)) +} + +// FamilyLT applies the LT predicate on the "family" field. +func FamilyLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldFamily, v)) +} + +// FamilyLTE applies the LTE predicate on the "family" field. +func FamilyLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldFamily, v)) +} + +// FamilyContains applies the Contains predicate on the "family" field. +func FamilyContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldFamily, v)) +} + +// FamilyHasPrefix applies the HasPrefix predicate on the "family" field. +func FamilyHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldFamily, v)) +} + +// FamilyHasSuffix applies the HasSuffix predicate on the "family" field. +func FamilyHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldFamily, v)) +} + +// FamilyIsNil applies the IsNil predicate on the "family" field. +func FamilyIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldFamily)) +} + +// FamilyNotNil applies the NotNil predicate on the "family" field. +func FamilyNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldFamily)) +} + +// FamilyEqualFold applies the EqualFold predicate on the "family" field. +func FamilyEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldFamily, v)) +} + +// FamilyContainsFold applies the ContainsFold predicate on the "family" field. +func FamilyContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldFamily, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldStatus, v)) +} + +// StandardTypeEQ applies the EQ predicate on the "standard_type" field. +func StandardTypeEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldStandardType, v)) +} + +// StandardTypeNEQ applies the NEQ predicate on the "standard_type" field. +func StandardTypeNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldStandardType, v)) +} + +// StandardTypeIn applies the In predicate on the "standard_type" field. +func StandardTypeIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldStandardType, vs...)) +} + +// StandardTypeNotIn applies the NotIn predicate on the "standard_type" field. +func StandardTypeNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldStandardType, vs...)) +} + +// StandardTypeGT applies the GT predicate on the "standard_type" field. +func StandardTypeGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldStandardType, v)) +} + +// StandardTypeGTE applies the GTE predicate on the "standard_type" field. +func StandardTypeGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldStandardType, v)) +} + +// StandardTypeLT applies the LT predicate on the "standard_type" field. +func StandardTypeLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldStandardType, v)) +} + +// StandardTypeLTE applies the LTE predicate on the "standard_type" field. +func StandardTypeLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldStandardType, v)) +} + +// StandardTypeContains applies the Contains predicate on the "standard_type" field. +func StandardTypeContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldStandardType, v)) +} + +// StandardTypeHasPrefix applies the HasPrefix predicate on the "standard_type" field. +func StandardTypeHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldStandardType, v)) +} + +// StandardTypeHasSuffix applies the HasSuffix predicate on the "standard_type" field. +func StandardTypeHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldStandardType, v)) +} + +// StandardTypeIsNil applies the IsNil predicate on the "standard_type" field. +func StandardTypeIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldStandardType)) +} + +// StandardTypeNotNil applies the NotNil predicate on the "standard_type" field. +func StandardTypeNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldStandardType)) +} + +// StandardTypeEqualFold applies the EqualFold predicate on the "standard_type" field. +func StandardTypeEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldStandardType, v)) +} + +// StandardTypeContainsFold applies the ContainsFold predicate on the "standard_type" field. +func StandardTypeContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldStandardType, v)) +} + +// VersionEQ applies the EQ predicate on the "version" field. +func VersionEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldVersion, v)) +} + +// VersionNEQ applies the NEQ predicate on the "version" field. +func VersionNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldVersion, v)) +} + +// VersionIn applies the In predicate on the "version" field. +func VersionIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldVersion, vs...)) +} + +// VersionNotIn applies the NotIn predicate on the "version" field. +func VersionNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldVersion, vs...)) +} + +// VersionGT applies the GT predicate on the "version" field. +func VersionGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldVersion, v)) +} + +// VersionGTE applies the GTE predicate on the "version" field. +func VersionGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldVersion, v)) +} + +// VersionLT applies the LT predicate on the "version" field. +func VersionLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldVersion, v)) +} + +// VersionLTE applies the LTE predicate on the "version" field. +func VersionLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldVersion, v)) +} + +// VersionContains applies the Contains predicate on the "version" field. +func VersionContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldVersion, v)) +} + +// VersionHasPrefix applies the HasPrefix predicate on the "version" field. +func VersionHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldVersion, v)) +} + +// VersionHasSuffix applies the HasSuffix predicate on the "version" field. +func VersionHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldVersion, v)) +} + +// VersionIsNil applies the IsNil predicate on the "version" field. +func VersionIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldVersion)) +} + +// VersionNotNil applies the NotNil predicate on the "version" field. +func VersionNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldVersion)) +} + +// VersionEqualFold applies the EqualFold predicate on the "version" field. +func VersionEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldVersion, v)) +} + +// VersionContainsFold applies the ContainsFold predicate on the "version" field. +func VersionContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldVersion, v)) +} + +// PurposeAndScopeEQ applies the EQ predicate on the "purpose_and_scope" field. +func PurposeAndScopeEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeNEQ applies the NEQ predicate on the "purpose_and_scope" field. +func PurposeAndScopeNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeIn applies the In predicate on the "purpose_and_scope" field. +func PurposeAndScopeIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldPurposeAndScope, vs...)) +} + +// PurposeAndScopeNotIn applies the NotIn predicate on the "purpose_and_scope" field. +func PurposeAndScopeNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldPurposeAndScope, vs...)) +} + +// PurposeAndScopeGT applies the GT predicate on the "purpose_and_scope" field. +func PurposeAndScopeGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeGTE applies the GTE predicate on the "purpose_and_scope" field. +func PurposeAndScopeGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeLT applies the LT predicate on the "purpose_and_scope" field. +func PurposeAndScopeLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeLTE applies the LTE predicate on the "purpose_and_scope" field. +func PurposeAndScopeLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeContains applies the Contains predicate on the "purpose_and_scope" field. +func PurposeAndScopeContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeHasPrefix applies the HasPrefix predicate on the "purpose_and_scope" field. +func PurposeAndScopeHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeHasSuffix applies the HasSuffix predicate on the "purpose_and_scope" field. +func PurposeAndScopeHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeIsNil applies the IsNil predicate on the "purpose_and_scope" field. +func PurposeAndScopeIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldPurposeAndScope)) +} + +// PurposeAndScopeNotNil applies the NotNil predicate on the "purpose_and_scope" field. +func PurposeAndScopeNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldPurposeAndScope)) +} + +// PurposeAndScopeEqualFold applies the EqualFold predicate on the "purpose_and_scope" field. +func PurposeAndScopeEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldPurposeAndScope, v)) +} + +// PurposeAndScopeContainsFold applies the ContainsFold predicate on the "purpose_and_scope" field. +func PurposeAndScopeContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldPurposeAndScope, v)) +} + +// BackgroundEQ applies the EQ predicate on the "background" field. +func BackgroundEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldBackground, v)) +} + +// BackgroundNEQ applies the NEQ predicate on the "background" field. +func BackgroundNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldBackground, v)) +} + +// BackgroundIn applies the In predicate on the "background" field. +func BackgroundIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldBackground, vs...)) +} + +// BackgroundNotIn applies the NotIn predicate on the "background" field. +func BackgroundNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldBackground, vs...)) +} + +// BackgroundGT applies the GT predicate on the "background" field. +func BackgroundGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldBackground, v)) +} + +// BackgroundGTE applies the GTE predicate on the "background" field. +func BackgroundGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldBackground, v)) +} + +// BackgroundLT applies the LT predicate on the "background" field. +func BackgroundLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldBackground, v)) +} + +// BackgroundLTE applies the LTE predicate on the "background" field. +func BackgroundLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldBackground, v)) +} + +// BackgroundContains applies the Contains predicate on the "background" field. +func BackgroundContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldBackground, v)) +} + +// BackgroundHasPrefix applies the HasPrefix predicate on the "background" field. +func BackgroundHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldBackground, v)) +} + +// BackgroundHasSuffix applies the HasSuffix predicate on the "background" field. +func BackgroundHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldBackground, v)) +} + +// BackgroundIsNil applies the IsNil predicate on the "background" field. +func BackgroundIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldBackground)) +} + +// BackgroundNotNil applies the NotNil predicate on the "background" field. +func BackgroundNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldBackground)) +} + +// BackgroundEqualFold applies the EqualFold predicate on the "background" field. +func BackgroundEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldBackground, v)) +} + +// BackgroundContainsFold applies the ContainsFold predicate on the "background" field. +func BackgroundContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldBackground, v)) +} + +// SatisfiesEQ applies the EQ predicate on the "satisfies" field. +func SatisfiesEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEQ(FieldSatisfies, v)) +} + +// SatisfiesNEQ applies the NEQ predicate on the "satisfies" field. +func SatisfiesNEQ(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNEQ(FieldSatisfies, v)) +} + +// SatisfiesIn applies the In predicate on the "satisfies" field. +func SatisfiesIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIn(FieldSatisfies, vs...)) +} + +// SatisfiesNotIn applies the NotIn predicate on the "satisfies" field. +func SatisfiesNotIn(vs ...string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotIn(FieldSatisfies, vs...)) +} + +// SatisfiesGT applies the GT predicate on the "satisfies" field. +func SatisfiesGT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGT(FieldSatisfies, v)) +} + +// SatisfiesGTE applies the GTE predicate on the "satisfies" field. +func SatisfiesGTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldGTE(FieldSatisfies, v)) +} + +// SatisfiesLT applies the LT predicate on the "satisfies" field. +func SatisfiesLT(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLT(FieldSatisfies, v)) +} + +// SatisfiesLTE applies the LTE predicate on the "satisfies" field. +func SatisfiesLTE(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldLTE(FieldSatisfies, v)) +} + +// SatisfiesContains applies the Contains predicate on the "satisfies" field. +func SatisfiesContains(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContains(FieldSatisfies, v)) +} + +// SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field. +func SatisfiesHasPrefix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasPrefix(FieldSatisfies, v)) +} + +// SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field. +func SatisfiesHasSuffix(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldHasSuffix(FieldSatisfies, v)) +} + +// SatisfiesIsNil applies the IsNil predicate on the "satisfies" field. +func SatisfiesIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldSatisfies)) +} + +// SatisfiesNotNil applies the NotNil predicate on the "satisfies" field. +func SatisfiesNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldSatisfies)) +} + +// SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field. +func SatisfiesEqualFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldEqualFold(FieldSatisfies, v)) +} + +// SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field. +func SatisfiesContainsFold(v string) predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldContainsFold(FieldSatisfies, v)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.StandardHistory { + return predicate.StandardHistory(sql.FieldNotNull(FieldDetails)) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.StandardHistory) predicate.StandardHistory { + return predicate.StandardHistory(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.StandardHistory) predicate.StandardHistory { + return predicate.StandardHistory(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.StandardHistory) predicate.StandardHistory { + return predicate.StandardHistory(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/standardhistory_create.go b/internal/ent/generated/standardhistory_create.go new file mode 100644 index 00000000..dd200408 --- /dev/null +++ b/internal/ent/generated/standardhistory_create.go @@ -0,0 +1,585 @@ +// 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/internal/ent/generated/standardhistory" + "github.com/theopenlane/entx/history" +) + +// StandardHistoryCreate is the builder for creating a StandardHistory entity. +type StandardHistoryCreate struct { + config + mutation *StandardHistoryMutation + hooks []Hook +} + +// SetHistoryTime sets the "history_time" field. +func (shc *StandardHistoryCreate) SetHistoryTime(t time.Time) *StandardHistoryCreate { + shc.mutation.SetHistoryTime(t) + return shc +} + +// SetNillableHistoryTime sets the "history_time" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableHistoryTime(t *time.Time) *StandardHistoryCreate { + if t != nil { + shc.SetHistoryTime(*t) + } + return shc +} + +// SetRef sets the "ref" field. +func (shc *StandardHistoryCreate) SetRef(s string) *StandardHistoryCreate { + shc.mutation.SetRef(s) + return shc +} + +// SetNillableRef sets the "ref" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableRef(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetRef(*s) + } + return shc +} + +// SetOperation sets the "operation" field. +func (shc *StandardHistoryCreate) SetOperation(ht history.OpType) *StandardHistoryCreate { + shc.mutation.SetOperation(ht) + return shc +} + +// SetCreatedAt sets the "created_at" field. +func (shc *StandardHistoryCreate) SetCreatedAt(t time.Time) *StandardHistoryCreate { + shc.mutation.SetCreatedAt(t) + return shc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableCreatedAt(t *time.Time) *StandardHistoryCreate { + if t != nil { + shc.SetCreatedAt(*t) + } + return shc +} + +// SetUpdatedAt sets the "updated_at" field. +func (shc *StandardHistoryCreate) SetUpdatedAt(t time.Time) *StandardHistoryCreate { + shc.mutation.SetUpdatedAt(t) + return shc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableUpdatedAt(t *time.Time) *StandardHistoryCreate { + if t != nil { + shc.SetUpdatedAt(*t) + } + return shc +} + +// SetCreatedBy sets the "created_by" field. +func (shc *StandardHistoryCreate) SetCreatedBy(s string) *StandardHistoryCreate { + shc.mutation.SetCreatedBy(s) + return shc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableCreatedBy(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetCreatedBy(*s) + } + return shc +} + +// SetUpdatedBy sets the "updated_by" field. +func (shc *StandardHistoryCreate) SetUpdatedBy(s string) *StandardHistoryCreate { + shc.mutation.SetUpdatedBy(s) + return shc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableUpdatedBy(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetUpdatedBy(*s) + } + return shc +} + +// SetDeletedAt sets the "deleted_at" field. +func (shc *StandardHistoryCreate) SetDeletedAt(t time.Time) *StandardHistoryCreate { + shc.mutation.SetDeletedAt(t) + return shc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableDeletedAt(t *time.Time) *StandardHistoryCreate { + if t != nil { + shc.SetDeletedAt(*t) + } + return shc +} + +// SetDeletedBy sets the "deleted_by" field. +func (shc *StandardHistoryCreate) SetDeletedBy(s string) *StandardHistoryCreate { + shc.mutation.SetDeletedBy(s) + return shc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableDeletedBy(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetDeletedBy(*s) + } + return shc +} + +// SetMappingID sets the "mapping_id" field. +func (shc *StandardHistoryCreate) SetMappingID(s string) *StandardHistoryCreate { + shc.mutation.SetMappingID(s) + return shc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableMappingID(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetMappingID(*s) + } + return shc +} + +// SetTags sets the "tags" field. +func (shc *StandardHistoryCreate) SetTags(s []string) *StandardHistoryCreate { + shc.mutation.SetTags(s) + return shc +} + +// SetName sets the "name" field. +func (shc *StandardHistoryCreate) SetName(s string) *StandardHistoryCreate { + shc.mutation.SetName(s) + return shc +} + +// SetDescription sets the "description" field. +func (shc *StandardHistoryCreate) SetDescription(s string) *StandardHistoryCreate { + shc.mutation.SetDescription(s) + return shc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableDescription(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetDescription(*s) + } + return shc +} + +// SetFamily sets the "family" field. +func (shc *StandardHistoryCreate) SetFamily(s string) *StandardHistoryCreate { + shc.mutation.SetFamily(s) + return shc +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableFamily(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetFamily(*s) + } + return shc +} + +// SetStatus sets the "status" field. +func (shc *StandardHistoryCreate) SetStatus(s string) *StandardHistoryCreate { + shc.mutation.SetStatus(s) + return shc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableStatus(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetStatus(*s) + } + return shc +} + +// SetStandardType sets the "standard_type" field. +func (shc *StandardHistoryCreate) SetStandardType(s string) *StandardHistoryCreate { + shc.mutation.SetStandardType(s) + return shc +} + +// SetNillableStandardType sets the "standard_type" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableStandardType(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetStandardType(*s) + } + return shc +} + +// SetVersion sets the "version" field. +func (shc *StandardHistoryCreate) SetVersion(s string) *StandardHistoryCreate { + shc.mutation.SetVersion(s) + return shc +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableVersion(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetVersion(*s) + } + return shc +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (shc *StandardHistoryCreate) SetPurposeAndScope(s string) *StandardHistoryCreate { + shc.mutation.SetPurposeAndScope(s) + return shc +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillablePurposeAndScope(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetPurposeAndScope(*s) + } + return shc +} + +// SetBackground sets the "background" field. +func (shc *StandardHistoryCreate) SetBackground(s string) *StandardHistoryCreate { + shc.mutation.SetBackground(s) + return shc +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableBackground(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetBackground(*s) + } + return shc +} + +// SetSatisfies sets the "satisfies" field. +func (shc *StandardHistoryCreate) SetSatisfies(s string) *StandardHistoryCreate { + shc.mutation.SetSatisfies(s) + return shc +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableSatisfies(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetSatisfies(*s) + } + return shc +} + +// SetDetails sets the "details" field. +func (shc *StandardHistoryCreate) SetDetails(m map[string]interface{}) *StandardHistoryCreate { + shc.mutation.SetDetails(m) + return shc +} + +// SetID sets the "id" field. +func (shc *StandardHistoryCreate) SetID(s string) *StandardHistoryCreate { + shc.mutation.SetID(s) + return shc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (shc *StandardHistoryCreate) SetNillableID(s *string) *StandardHistoryCreate { + if s != nil { + shc.SetID(*s) + } + return shc +} + +// Mutation returns the StandardHistoryMutation object of the builder. +func (shc *StandardHistoryCreate) Mutation() *StandardHistoryMutation { + return shc.mutation +} + +// Save creates the StandardHistory in the database. +func (shc *StandardHistoryCreate) Save(ctx context.Context) (*StandardHistory, error) { + shc.defaults() + return withHooks(ctx, shc.sqlSave, shc.mutation, shc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (shc *StandardHistoryCreate) SaveX(ctx context.Context) *StandardHistory { + v, err := shc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (shc *StandardHistoryCreate) Exec(ctx context.Context) error { + _, err := shc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (shc *StandardHistoryCreate) ExecX(ctx context.Context) { + if err := shc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (shc *StandardHistoryCreate) defaults() { + if _, ok := shc.mutation.HistoryTime(); !ok { + v := standardhistory.DefaultHistoryTime() + shc.mutation.SetHistoryTime(v) + } + if _, ok := shc.mutation.CreatedAt(); !ok { + v := standardhistory.DefaultCreatedAt() + shc.mutation.SetCreatedAt(v) + } + if _, ok := shc.mutation.UpdatedAt(); !ok { + v := standardhistory.DefaultUpdatedAt() + shc.mutation.SetUpdatedAt(v) + } + if _, ok := shc.mutation.MappingID(); !ok { + v := standardhistory.DefaultMappingID() + shc.mutation.SetMappingID(v) + } + if _, ok := shc.mutation.Tags(); !ok { + v := standardhistory.DefaultTags + shc.mutation.SetTags(v) + } + if _, ok := shc.mutation.ID(); !ok { + v := standardhistory.DefaultID() + shc.mutation.SetID(v) + } +} + +// check runs all checks and user-defined validators on the builder. +func (shc *StandardHistoryCreate) check() error { + if _, ok := shc.mutation.HistoryTime(); !ok { + return &ValidationError{Name: "history_time", err: errors.New(`generated: missing required field "StandardHistory.history_time"`)} + } + if _, ok := shc.mutation.Operation(); !ok { + return &ValidationError{Name: "operation", err: errors.New(`generated: missing required field "StandardHistory.operation"`)} + } + if v, ok := shc.mutation.Operation(); ok { + if err := standardhistory.OperationValidator(v); err != nil { + return &ValidationError{Name: "operation", err: fmt.Errorf(`generated: validator failed for field "StandardHistory.operation": %w`, err)} + } + } + if _, ok := shc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "StandardHistory.mapping_id"`)} + } + if _, ok := shc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "StandardHistory.name"`)} + } + return nil +} + +func (shc *StandardHistoryCreate) sqlSave(ctx context.Context) (*StandardHistory, error) { + if err := shc.check(); err != nil { + return nil, err + } + _node, _spec := shc.createSpec() + if err := sqlgraph.CreateNode(ctx, shc.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 StandardHistory.ID type: %T", _spec.ID.Value) + } + } + shc.mutation.id = &_node.ID + shc.mutation.done = true + return _node, nil +} + +func (shc *StandardHistoryCreate) createSpec() (*StandardHistory, *sqlgraph.CreateSpec) { + var ( + _node = &StandardHistory{config: shc.config} + _spec = sqlgraph.NewCreateSpec(standardhistory.Table, sqlgraph.NewFieldSpec(standardhistory.FieldID, field.TypeString)) + ) + _spec.Schema = shc.schemaConfig.StandardHistory + if id, ok := shc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := shc.mutation.HistoryTime(); ok { + _spec.SetField(standardhistory.FieldHistoryTime, field.TypeTime, value) + _node.HistoryTime = value + } + if value, ok := shc.mutation.Ref(); ok { + _spec.SetField(standardhistory.FieldRef, field.TypeString, value) + _node.Ref = value + } + if value, ok := shc.mutation.Operation(); ok { + _spec.SetField(standardhistory.FieldOperation, field.TypeEnum, value) + _node.Operation = value + } + if value, ok := shc.mutation.CreatedAt(); ok { + _spec.SetField(standardhistory.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := shc.mutation.UpdatedAt(); ok { + _spec.SetField(standardhistory.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := shc.mutation.CreatedBy(); ok { + _spec.SetField(standardhistory.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := shc.mutation.UpdatedBy(); ok { + _spec.SetField(standardhistory.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := shc.mutation.DeletedAt(); ok { + _spec.SetField(standardhistory.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := shc.mutation.DeletedBy(); ok { + _spec.SetField(standardhistory.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := shc.mutation.MappingID(); ok { + _spec.SetField(standardhistory.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := shc.mutation.Tags(); ok { + _spec.SetField(standardhistory.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := shc.mutation.Name(); ok { + _spec.SetField(standardhistory.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := shc.mutation.Description(); ok { + _spec.SetField(standardhistory.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := shc.mutation.Family(); ok { + _spec.SetField(standardhistory.FieldFamily, field.TypeString, value) + _node.Family = value + } + if value, ok := shc.mutation.Status(); ok { + _spec.SetField(standardhistory.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := shc.mutation.StandardType(); ok { + _spec.SetField(standardhistory.FieldStandardType, field.TypeString, value) + _node.StandardType = value + } + if value, ok := shc.mutation.Version(); ok { + _spec.SetField(standardhistory.FieldVersion, field.TypeString, value) + _node.Version = value + } + if value, ok := shc.mutation.PurposeAndScope(); ok { + _spec.SetField(standardhistory.FieldPurposeAndScope, field.TypeString, value) + _node.PurposeAndScope = value + } + if value, ok := shc.mutation.Background(); ok { + _spec.SetField(standardhistory.FieldBackground, field.TypeString, value) + _node.Background = value + } + if value, ok := shc.mutation.Satisfies(); ok { + _spec.SetField(standardhistory.FieldSatisfies, field.TypeString, value) + _node.Satisfies = value + } + if value, ok := shc.mutation.Details(); ok { + _spec.SetField(standardhistory.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + return _node, _spec +} + +// StandardHistoryCreateBulk is the builder for creating many StandardHistory entities in bulk. +type StandardHistoryCreateBulk struct { + config + err error + builders []*StandardHistoryCreate +} + +// Save creates the StandardHistory entities in the database. +func (shcb *StandardHistoryCreateBulk) Save(ctx context.Context) ([]*StandardHistory, error) { + if shcb.err != nil { + return nil, shcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(shcb.builders)) + nodes := make([]*StandardHistory, len(shcb.builders)) + mutators := make([]Mutator, len(shcb.builders)) + for i := range shcb.builders { + func(i int, root context.Context) { + builder := shcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*StandardHistoryMutation) + 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, shcb.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, shcb.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, shcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (shcb *StandardHistoryCreateBulk) SaveX(ctx context.Context) []*StandardHistory { + v, err := shcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (shcb *StandardHistoryCreateBulk) Exec(ctx context.Context) error { + _, err := shcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (shcb *StandardHistoryCreateBulk) ExecX(ctx context.Context) { + if err := shcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/standardhistory_delete.go b/internal/ent/generated/standardhistory_delete.go new file mode 100644 index 00000000..a2c09198 --- /dev/null +++ b/internal/ent/generated/standardhistory_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" +) + +// StandardHistoryDelete is the builder for deleting a StandardHistory entity. +type StandardHistoryDelete struct { + config + hooks []Hook + mutation *StandardHistoryMutation +} + +// Where appends a list predicates to the StandardHistoryDelete builder. +func (shd *StandardHistoryDelete) Where(ps ...predicate.StandardHistory) *StandardHistoryDelete { + shd.mutation.Where(ps...) + return shd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (shd *StandardHistoryDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, shd.sqlExec, shd.mutation, shd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (shd *StandardHistoryDelete) ExecX(ctx context.Context) int { + n, err := shd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (shd *StandardHistoryDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(standardhistory.Table, sqlgraph.NewFieldSpec(standardhistory.FieldID, field.TypeString)) + _spec.Node.Schema = shd.schemaConfig.StandardHistory + ctx = internal.NewSchemaConfigContext(ctx, shd.schemaConfig) + if ps := shd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, shd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + shd.mutation.done = true + return affected, err +} + +// StandardHistoryDeleteOne is the builder for deleting a single StandardHistory entity. +type StandardHistoryDeleteOne struct { + shd *StandardHistoryDelete +} + +// Where appends a list predicates to the StandardHistoryDelete builder. +func (shdo *StandardHistoryDeleteOne) Where(ps ...predicate.StandardHistory) *StandardHistoryDeleteOne { + shdo.shd.mutation.Where(ps...) + return shdo +} + +// Exec executes the deletion query. +func (shdo *StandardHistoryDeleteOne) Exec(ctx context.Context) error { + n, err := shdo.shd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{standardhistory.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (shdo *StandardHistoryDeleteOne) ExecX(ctx context.Context) { + if err := shdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/standardhistory_query.go b/internal/ent/generated/standardhistory_query.go new file mode 100644 index 00000000..5df208bd --- /dev/null +++ b/internal/ent/generated/standardhistory_query.go @@ -0,0 +1,565 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "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/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// StandardHistoryQuery is the builder for querying StandardHistory entities. +type StandardHistoryQuery struct { + config + ctx *QueryContext + order []standardhistory.OrderOption + inters []Interceptor + predicates []predicate.StandardHistory + loadTotal []func(context.Context, []*StandardHistory) 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 StandardHistoryQuery builder. +func (shq *StandardHistoryQuery) Where(ps ...predicate.StandardHistory) *StandardHistoryQuery { + shq.predicates = append(shq.predicates, ps...) + return shq +} + +// Limit the number of records to be returned by this query. +func (shq *StandardHistoryQuery) Limit(limit int) *StandardHistoryQuery { + shq.ctx.Limit = &limit + return shq +} + +// Offset to start from. +func (shq *StandardHistoryQuery) Offset(offset int) *StandardHistoryQuery { + shq.ctx.Offset = &offset + return shq +} + +// 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 (shq *StandardHistoryQuery) Unique(unique bool) *StandardHistoryQuery { + shq.ctx.Unique = &unique + return shq +} + +// Order specifies how the records should be ordered. +func (shq *StandardHistoryQuery) Order(o ...standardhistory.OrderOption) *StandardHistoryQuery { + shq.order = append(shq.order, o...) + return shq +} + +// First returns the first StandardHistory entity from the query. +// Returns a *NotFoundError when no StandardHistory was found. +func (shq *StandardHistoryQuery) First(ctx context.Context) (*StandardHistory, error) { + nodes, err := shq.Limit(1).All(setContextOp(ctx, shq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{standardhistory.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (shq *StandardHistoryQuery) FirstX(ctx context.Context) *StandardHistory { + node, err := shq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first StandardHistory ID from the query. +// Returns a *NotFoundError when no StandardHistory ID was found. +func (shq *StandardHistoryQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = shq.Limit(1).IDs(setContextOp(ctx, shq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{standardhistory.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (shq *StandardHistoryQuery) FirstIDX(ctx context.Context) string { + id, err := shq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single StandardHistory entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one StandardHistory entity is found. +// Returns a *NotFoundError when no StandardHistory entities are found. +func (shq *StandardHistoryQuery) Only(ctx context.Context) (*StandardHistory, error) { + nodes, err := shq.Limit(2).All(setContextOp(ctx, shq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{standardhistory.Label} + default: + return nil, &NotSingularError{standardhistory.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (shq *StandardHistoryQuery) OnlyX(ctx context.Context) *StandardHistory { + node, err := shq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only StandardHistory ID in the query. +// Returns a *NotSingularError when more than one StandardHistory ID is found. +// Returns a *NotFoundError when no entities are found. +func (shq *StandardHistoryQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = shq.Limit(2).IDs(setContextOp(ctx, shq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{standardhistory.Label} + default: + err = &NotSingularError{standardhistory.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (shq *StandardHistoryQuery) OnlyIDX(ctx context.Context) string { + id, err := shq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of StandardHistories. +func (shq *StandardHistoryQuery) All(ctx context.Context) ([]*StandardHistory, error) { + ctx = setContextOp(ctx, shq.ctx, ent.OpQueryAll) + if err := shq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*StandardHistory, *StandardHistoryQuery]() + return withInterceptors[[]*StandardHistory](ctx, shq, qr, shq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (shq *StandardHistoryQuery) AllX(ctx context.Context) []*StandardHistory { + nodes, err := shq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of StandardHistory IDs. +func (shq *StandardHistoryQuery) IDs(ctx context.Context) (ids []string, err error) { + if shq.ctx.Unique == nil && shq.path != nil { + shq.Unique(true) + } + ctx = setContextOp(ctx, shq.ctx, ent.OpQueryIDs) + if err = shq.Select(standardhistory.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (shq *StandardHistoryQuery) IDsX(ctx context.Context) []string { + ids, err := shq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (shq *StandardHistoryQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, shq.ctx, ent.OpQueryCount) + if err := shq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, shq, querierCount[*StandardHistoryQuery](), shq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (shq *StandardHistoryQuery) CountX(ctx context.Context) int { + count, err := shq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (shq *StandardHistoryQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, shq.ctx, ent.OpQueryExist) + switch _, err := shq.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 (shq *StandardHistoryQuery) ExistX(ctx context.Context) bool { + exist, err := shq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the StandardHistoryQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (shq *StandardHistoryQuery) Clone() *StandardHistoryQuery { + if shq == nil { + return nil + } + return &StandardHistoryQuery{ + config: shq.config, + ctx: shq.ctx.Clone(), + order: append([]standardhistory.OrderOption{}, shq.order...), + inters: append([]Interceptor{}, shq.inters...), + predicates: append([]predicate.StandardHistory{}, shq.predicates...), + // clone intermediate query. + sql: shq.sql.Clone(), + path: shq.path, + modifiers: append([]func(*sql.Selector){}, shq.modifiers...), + } +} + +// 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.StandardHistory.Query(). +// GroupBy(standardhistory.FieldHistoryTime). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (shq *StandardHistoryQuery) GroupBy(field string, fields ...string) *StandardHistoryGroupBy { + shq.ctx.Fields = append([]string{field}, fields...) + grbuild := &StandardHistoryGroupBy{build: shq} + grbuild.flds = &shq.ctx.Fields + grbuild.label = standardhistory.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.StandardHistory.Query(). +// Select(standardhistory.FieldHistoryTime). +// Scan(ctx, &v) +func (shq *StandardHistoryQuery) Select(fields ...string) *StandardHistorySelect { + shq.ctx.Fields = append(shq.ctx.Fields, fields...) + sbuild := &StandardHistorySelect{StandardHistoryQuery: shq} + sbuild.label = standardhistory.Label + sbuild.flds, sbuild.scan = &shq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a StandardHistorySelect configured with the given aggregations. +func (shq *StandardHistoryQuery) Aggregate(fns ...AggregateFunc) *StandardHistorySelect { + return shq.Select().Aggregate(fns...) +} + +func (shq *StandardHistoryQuery) prepareQuery(ctx context.Context) error { + for _, inter := range shq.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, shq); err != nil { + return err + } + } + } + for _, f := range shq.ctx.Fields { + if !standardhistory.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if shq.path != nil { + prev, err := shq.path(ctx) + if err != nil { + return err + } + shq.sql = prev + } + return nil +} + +func (shq *StandardHistoryQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*StandardHistory, error) { + var ( + nodes = []*StandardHistory{} + _spec = shq.querySpec() + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*StandardHistory).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &StandardHistory{config: shq.config} + nodes = append(nodes, node) + return node.assignValues(columns, values) + } + _spec.Node.Schema = shq.schemaConfig.StandardHistory + ctx = internal.NewSchemaConfigContext(ctx, shq.schemaConfig) + if len(shq.modifiers) > 0 { + _spec.Modifiers = shq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, shq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + for i := range shq.loadTotal { + if err := shq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (shq *StandardHistoryQuery) sqlCount(ctx context.Context) (int, error) { + _spec := shq.querySpec() + _spec.Node.Schema = shq.schemaConfig.StandardHistory + ctx = internal.NewSchemaConfigContext(ctx, shq.schemaConfig) + if len(shq.modifiers) > 0 { + _spec.Modifiers = shq.modifiers + } + _spec.Node.Columns = shq.ctx.Fields + if len(shq.ctx.Fields) > 0 { + _spec.Unique = shq.ctx.Unique != nil && *shq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, shq.driver, _spec) +} + +func (shq *StandardHistoryQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(standardhistory.Table, standardhistory.Columns, sqlgraph.NewFieldSpec(standardhistory.FieldID, field.TypeString)) + _spec.From = shq.sql + if unique := shq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if shq.path != nil { + _spec.Unique = true + } + if fields := shq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, standardhistory.FieldID) + for i := range fields { + if fields[i] != standardhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := shq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := shq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := shq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := shq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (shq *StandardHistoryQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(shq.driver.Dialect()) + t1 := builder.Table(standardhistory.Table) + columns := shq.ctx.Fields + if len(columns) == 0 { + columns = standardhistory.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if shq.sql != nil { + selector = shq.sql + selector.Select(selector.Columns(columns...)...) + } + if shq.ctx.Unique != nil && *shq.ctx.Unique { + selector.Distinct() + } + t1.Schema(shq.schemaConfig.StandardHistory) + ctx = internal.NewSchemaConfigContext(ctx, shq.schemaConfig) + selector.WithContext(ctx) + for _, m := range shq.modifiers { + m(selector) + } + for _, p := range shq.predicates { + p(selector) + } + for _, p := range shq.order { + p(selector) + } + if offset := shq.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 := shq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (shq *StandardHistoryQuery) Modify(modifiers ...func(s *sql.Selector)) *StandardHistorySelect { + shq.modifiers = append(shq.modifiers, modifiers...) + return shq.Select() +} + +// StandardHistoryGroupBy is the group-by builder for StandardHistory entities. +type StandardHistoryGroupBy struct { + selector + build *StandardHistoryQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (shgb *StandardHistoryGroupBy) Aggregate(fns ...AggregateFunc) *StandardHistoryGroupBy { + shgb.fns = append(shgb.fns, fns...) + return shgb +} + +// Scan applies the selector query and scans the result into the given value. +func (shgb *StandardHistoryGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, shgb.build.ctx, ent.OpQueryGroupBy) + if err := shgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*StandardHistoryQuery, *StandardHistoryGroupBy](ctx, shgb.build, shgb, shgb.build.inters, v) +} + +func (shgb *StandardHistoryGroupBy) sqlScan(ctx context.Context, root *StandardHistoryQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(shgb.fns)) + for _, fn := range shgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*shgb.flds)+len(shgb.fns)) + for _, f := range *shgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*shgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := shgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// StandardHistorySelect is the builder for selecting fields of StandardHistory entities. +type StandardHistorySelect struct { + *StandardHistoryQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (shs *StandardHistorySelect) Aggregate(fns ...AggregateFunc) *StandardHistorySelect { + shs.fns = append(shs.fns, fns...) + return shs +} + +// Scan applies the selector query and scans the result into the given value. +func (shs *StandardHistorySelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, shs.ctx, ent.OpQuerySelect) + if err := shs.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*StandardHistoryQuery, *StandardHistorySelect](ctx, shs.StandardHistoryQuery, shs, shs.inters, v) +} + +func (shs *StandardHistorySelect) sqlScan(ctx context.Context, root *StandardHistoryQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(shs.fns)) + for _, fn := range shs.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*shs.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 := shs.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 (shs *StandardHistorySelect) Modify(modifiers ...func(s *sql.Selector)) *StandardHistorySelect { + shs.modifiers = append(shs.modifiers, modifiers...) + return shs +} diff --git a/internal/ent/generated/standardhistory_update.go b/internal/ent/generated/standardhistory_update.go new file mode 100644 index 00000000..d5a22d41 --- /dev/null +++ b/internal/ent/generated/standardhistory_update.go @@ -0,0 +1,971 @@ +// 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/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/standardhistory" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// StandardHistoryUpdate is the builder for updating StandardHistory entities. +type StandardHistoryUpdate struct { + config + hooks []Hook + mutation *StandardHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the StandardHistoryUpdate builder. +func (shu *StandardHistoryUpdate) Where(ps ...predicate.StandardHistory) *StandardHistoryUpdate { + shu.mutation.Where(ps...) + return shu +} + +// SetUpdatedAt sets the "updated_at" field. +func (shu *StandardHistoryUpdate) SetUpdatedAt(t time.Time) *StandardHistoryUpdate { + shu.mutation.SetUpdatedAt(t) + return shu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (shu *StandardHistoryUpdate) ClearUpdatedAt() *StandardHistoryUpdate { + shu.mutation.ClearUpdatedAt() + return shu +} + +// SetUpdatedBy sets the "updated_by" field. +func (shu *StandardHistoryUpdate) SetUpdatedBy(s string) *StandardHistoryUpdate { + shu.mutation.SetUpdatedBy(s) + return shu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (shu *StandardHistoryUpdate) SetNillableUpdatedBy(s *string) *StandardHistoryUpdate { + if s != nil { + shu.SetUpdatedBy(*s) + } + return shu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (shu *StandardHistoryUpdate) ClearUpdatedBy() *StandardHistoryUpdate { + shu.mutation.ClearUpdatedBy() + return shu +} + +// SetDeletedAt sets the "deleted_at" field. +func (shu *StandardHistoryUpdate) SetDeletedAt(t time.Time) *StandardHistoryUpdate { + shu.mutation.SetDeletedAt(t) + return shu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (shu *StandardHistoryUpdate) SetNillableDeletedAt(t *time.Time) *StandardHistoryUpdate { + if t != nil { + shu.SetDeletedAt(*t) + } + return shu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (shu *StandardHistoryUpdate) ClearDeletedAt() *StandardHistoryUpdate { + shu.mutation.ClearDeletedAt() + return shu +} + +// SetDeletedBy sets the "deleted_by" field. +func (shu *StandardHistoryUpdate) SetDeletedBy(s string) *StandardHistoryUpdate { + shu.mutation.SetDeletedBy(s) + return shu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (shu *StandardHistoryUpdate) SetNillableDeletedBy(s *string) *StandardHistoryUpdate { + if s != nil { + shu.SetDeletedBy(*s) + } + return shu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (shu *StandardHistoryUpdate) ClearDeletedBy() *StandardHistoryUpdate { + shu.mutation.ClearDeletedBy() + return shu +} + +// SetTags sets the "tags" field. +func (shu *StandardHistoryUpdate) SetTags(s []string) *StandardHistoryUpdate { + shu.mutation.SetTags(s) + return shu +} + +// AppendTags appends s to the "tags" field. +func (shu *StandardHistoryUpdate) AppendTags(s []string) *StandardHistoryUpdate { + shu.mutation.AppendTags(s) + return shu +} + +// ClearTags clears the value of the "tags" field. +func (shu *StandardHistoryUpdate) ClearTags() *StandardHistoryUpdate { + shu.mutation.ClearTags() + return shu +} + +// SetName sets the "name" field. +func (shu *StandardHistoryUpdate) SetName(s string) *StandardHistoryUpdate { + shu.mutation.SetName(s) + return shu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (shu *StandardHistoryUpdate) SetNillableName(s *string) *StandardHistoryUpdate { + if s != nil { + shu.SetName(*s) + } + return shu +} + +// SetDescription sets the "description" field. +func (shu *StandardHistoryUpdate) SetDescription(s string) *StandardHistoryUpdate { + shu.mutation.SetDescription(s) + return shu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (shu *StandardHistoryUpdate) SetNillableDescription(s *string) *StandardHistoryUpdate { + if s != nil { + shu.SetDescription(*s) + } + return shu +} + +// ClearDescription clears the value of the "description" field. +func (shu *StandardHistoryUpdate) ClearDescription() *StandardHistoryUpdate { + shu.mutation.ClearDescription() + return shu +} + +// SetFamily sets the "family" field. +func (shu *StandardHistoryUpdate) SetFamily(s string) *StandardHistoryUpdate { + shu.mutation.SetFamily(s) + return shu +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (shu *StandardHistoryUpdate) SetNillableFamily(s *string) *StandardHistoryUpdate { + if s != nil { + shu.SetFamily(*s) + } + return shu +} + +// ClearFamily clears the value of the "family" field. +func (shu *StandardHistoryUpdate) ClearFamily() *StandardHistoryUpdate { + shu.mutation.ClearFamily() + return shu +} + +// SetStatus sets the "status" field. +func (shu *StandardHistoryUpdate) SetStatus(s string) *StandardHistoryUpdate { + shu.mutation.SetStatus(s) + return shu +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (shu *StandardHistoryUpdate) SetNillableStatus(s *string) *StandardHistoryUpdate { + if s != nil { + shu.SetStatus(*s) + } + return shu +} + +// ClearStatus clears the value of the "status" field. +func (shu *StandardHistoryUpdate) ClearStatus() *StandardHistoryUpdate { + shu.mutation.ClearStatus() + return shu +} + +// SetStandardType sets the "standard_type" field. +func (shu *StandardHistoryUpdate) SetStandardType(s string) *StandardHistoryUpdate { + shu.mutation.SetStandardType(s) + return shu +} + +// SetNillableStandardType sets the "standard_type" field if the given value is not nil. +func (shu *StandardHistoryUpdate) SetNillableStandardType(s *string) *StandardHistoryUpdate { + if s != nil { + shu.SetStandardType(*s) + } + return shu +} + +// ClearStandardType clears the value of the "standard_type" field. +func (shu *StandardHistoryUpdate) ClearStandardType() *StandardHistoryUpdate { + shu.mutation.ClearStandardType() + return shu +} + +// SetVersion sets the "version" field. +func (shu *StandardHistoryUpdate) SetVersion(s string) *StandardHistoryUpdate { + shu.mutation.SetVersion(s) + return shu +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (shu *StandardHistoryUpdate) SetNillableVersion(s *string) *StandardHistoryUpdate { + if s != nil { + shu.SetVersion(*s) + } + return shu +} + +// ClearVersion clears the value of the "version" field. +func (shu *StandardHistoryUpdate) ClearVersion() *StandardHistoryUpdate { + shu.mutation.ClearVersion() + return shu +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (shu *StandardHistoryUpdate) SetPurposeAndScope(s string) *StandardHistoryUpdate { + shu.mutation.SetPurposeAndScope(s) + return shu +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (shu *StandardHistoryUpdate) SetNillablePurposeAndScope(s *string) *StandardHistoryUpdate { + if s != nil { + shu.SetPurposeAndScope(*s) + } + return shu +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (shu *StandardHistoryUpdate) ClearPurposeAndScope() *StandardHistoryUpdate { + shu.mutation.ClearPurposeAndScope() + return shu +} + +// SetBackground sets the "background" field. +func (shu *StandardHistoryUpdate) SetBackground(s string) *StandardHistoryUpdate { + shu.mutation.SetBackground(s) + return shu +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (shu *StandardHistoryUpdate) SetNillableBackground(s *string) *StandardHistoryUpdate { + if s != nil { + shu.SetBackground(*s) + } + return shu +} + +// ClearBackground clears the value of the "background" field. +func (shu *StandardHistoryUpdate) ClearBackground() *StandardHistoryUpdate { + shu.mutation.ClearBackground() + return shu +} + +// SetSatisfies sets the "satisfies" field. +func (shu *StandardHistoryUpdate) SetSatisfies(s string) *StandardHistoryUpdate { + shu.mutation.SetSatisfies(s) + return shu +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (shu *StandardHistoryUpdate) SetNillableSatisfies(s *string) *StandardHistoryUpdate { + if s != nil { + shu.SetSatisfies(*s) + } + return shu +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (shu *StandardHistoryUpdate) ClearSatisfies() *StandardHistoryUpdate { + shu.mutation.ClearSatisfies() + return shu +} + +// SetDetails sets the "details" field. +func (shu *StandardHistoryUpdate) SetDetails(m map[string]interface{}) *StandardHistoryUpdate { + shu.mutation.SetDetails(m) + return shu +} + +// ClearDetails clears the value of the "details" field. +func (shu *StandardHistoryUpdate) ClearDetails() *StandardHistoryUpdate { + shu.mutation.ClearDetails() + return shu +} + +// Mutation returns the StandardHistoryMutation object of the builder. +func (shu *StandardHistoryUpdate) Mutation() *StandardHistoryMutation { + return shu.mutation +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (shu *StandardHistoryUpdate) Save(ctx context.Context) (int, error) { + shu.defaults() + return withHooks(ctx, shu.sqlSave, shu.mutation, shu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (shu *StandardHistoryUpdate) SaveX(ctx context.Context) int { + affected, err := shu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (shu *StandardHistoryUpdate) Exec(ctx context.Context) error { + _, err := shu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (shu *StandardHistoryUpdate) ExecX(ctx context.Context) { + if err := shu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (shu *StandardHistoryUpdate) defaults() { + if _, ok := shu.mutation.UpdatedAt(); !ok && !shu.mutation.UpdatedAtCleared() { + v := standardhistory.UpdateDefaultUpdatedAt() + shu.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (shu *StandardHistoryUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *StandardHistoryUpdate { + shu.modifiers = append(shu.modifiers, modifiers...) + return shu +} + +func (shu *StandardHistoryUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(standardhistory.Table, standardhistory.Columns, sqlgraph.NewFieldSpec(standardhistory.FieldID, field.TypeString)) + if ps := shu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if shu.mutation.RefCleared() { + _spec.ClearField(standardhistory.FieldRef, field.TypeString) + } + if shu.mutation.CreatedAtCleared() { + _spec.ClearField(standardhistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := shu.mutation.UpdatedAt(); ok { + _spec.SetField(standardhistory.FieldUpdatedAt, field.TypeTime, value) + } + if shu.mutation.UpdatedAtCleared() { + _spec.ClearField(standardhistory.FieldUpdatedAt, field.TypeTime) + } + if shu.mutation.CreatedByCleared() { + _spec.ClearField(standardhistory.FieldCreatedBy, field.TypeString) + } + if value, ok := shu.mutation.UpdatedBy(); ok { + _spec.SetField(standardhistory.FieldUpdatedBy, field.TypeString, value) + } + if shu.mutation.UpdatedByCleared() { + _spec.ClearField(standardhistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := shu.mutation.DeletedAt(); ok { + _spec.SetField(standardhistory.FieldDeletedAt, field.TypeTime, value) + } + if shu.mutation.DeletedAtCleared() { + _spec.ClearField(standardhistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := shu.mutation.DeletedBy(); ok { + _spec.SetField(standardhistory.FieldDeletedBy, field.TypeString, value) + } + if shu.mutation.DeletedByCleared() { + _spec.ClearField(standardhistory.FieldDeletedBy, field.TypeString) + } + if value, ok := shu.mutation.Tags(); ok { + _spec.SetField(standardhistory.FieldTags, field.TypeJSON, value) + } + if value, ok := shu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, standardhistory.FieldTags, value) + }) + } + if shu.mutation.TagsCleared() { + _spec.ClearField(standardhistory.FieldTags, field.TypeJSON) + } + if value, ok := shu.mutation.Name(); ok { + _spec.SetField(standardhistory.FieldName, field.TypeString, value) + } + if value, ok := shu.mutation.Description(); ok { + _spec.SetField(standardhistory.FieldDescription, field.TypeString, value) + } + if shu.mutation.DescriptionCleared() { + _spec.ClearField(standardhistory.FieldDescription, field.TypeString) + } + if value, ok := shu.mutation.Family(); ok { + _spec.SetField(standardhistory.FieldFamily, field.TypeString, value) + } + if shu.mutation.FamilyCleared() { + _spec.ClearField(standardhistory.FieldFamily, field.TypeString) + } + if value, ok := shu.mutation.Status(); ok { + _spec.SetField(standardhistory.FieldStatus, field.TypeString, value) + } + if shu.mutation.StatusCleared() { + _spec.ClearField(standardhistory.FieldStatus, field.TypeString) + } + if value, ok := shu.mutation.StandardType(); ok { + _spec.SetField(standardhistory.FieldStandardType, field.TypeString, value) + } + if shu.mutation.StandardTypeCleared() { + _spec.ClearField(standardhistory.FieldStandardType, field.TypeString) + } + if value, ok := shu.mutation.Version(); ok { + _spec.SetField(standardhistory.FieldVersion, field.TypeString, value) + } + if shu.mutation.VersionCleared() { + _spec.ClearField(standardhistory.FieldVersion, field.TypeString) + } + if value, ok := shu.mutation.PurposeAndScope(); ok { + _spec.SetField(standardhistory.FieldPurposeAndScope, field.TypeString, value) + } + if shu.mutation.PurposeAndScopeCleared() { + _spec.ClearField(standardhistory.FieldPurposeAndScope, field.TypeString) + } + if value, ok := shu.mutation.Background(); ok { + _spec.SetField(standardhistory.FieldBackground, field.TypeString, value) + } + if shu.mutation.BackgroundCleared() { + _spec.ClearField(standardhistory.FieldBackground, field.TypeString) + } + if value, ok := shu.mutation.Satisfies(); ok { + _spec.SetField(standardhistory.FieldSatisfies, field.TypeString, value) + } + if shu.mutation.SatisfiesCleared() { + _spec.ClearField(standardhistory.FieldSatisfies, field.TypeString) + } + if value, ok := shu.mutation.Details(); ok { + _spec.SetField(standardhistory.FieldDetails, field.TypeJSON, value) + } + if shu.mutation.DetailsCleared() { + _spec.ClearField(standardhistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = shu.schemaConfig.StandardHistory + ctx = internal.NewSchemaConfigContext(ctx, shu.schemaConfig) + _spec.AddModifiers(shu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, shu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{standardhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + shu.mutation.done = true + return n, nil +} + +// StandardHistoryUpdateOne is the builder for updating a single StandardHistory entity. +type StandardHistoryUpdateOne struct { + config + fields []string + hooks []Hook + mutation *StandardHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (shuo *StandardHistoryUpdateOne) SetUpdatedAt(t time.Time) *StandardHistoryUpdateOne { + shuo.mutation.SetUpdatedAt(t) + return shuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (shuo *StandardHistoryUpdateOne) ClearUpdatedAt() *StandardHistoryUpdateOne { + shuo.mutation.ClearUpdatedAt() + return shuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (shuo *StandardHistoryUpdateOne) SetUpdatedBy(s string) *StandardHistoryUpdateOne { + shuo.mutation.SetUpdatedBy(s) + return shuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (shuo *StandardHistoryUpdateOne) SetNillableUpdatedBy(s *string) *StandardHistoryUpdateOne { + if s != nil { + shuo.SetUpdatedBy(*s) + } + return shuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (shuo *StandardHistoryUpdateOne) ClearUpdatedBy() *StandardHistoryUpdateOne { + shuo.mutation.ClearUpdatedBy() + return shuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (shuo *StandardHistoryUpdateOne) SetDeletedAt(t time.Time) *StandardHistoryUpdateOne { + shuo.mutation.SetDeletedAt(t) + return shuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (shuo *StandardHistoryUpdateOne) SetNillableDeletedAt(t *time.Time) *StandardHistoryUpdateOne { + if t != nil { + shuo.SetDeletedAt(*t) + } + return shuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (shuo *StandardHistoryUpdateOne) ClearDeletedAt() *StandardHistoryUpdateOne { + shuo.mutation.ClearDeletedAt() + return shuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (shuo *StandardHistoryUpdateOne) SetDeletedBy(s string) *StandardHistoryUpdateOne { + shuo.mutation.SetDeletedBy(s) + return shuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (shuo *StandardHistoryUpdateOne) SetNillableDeletedBy(s *string) *StandardHistoryUpdateOne { + if s != nil { + shuo.SetDeletedBy(*s) + } + return shuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (shuo *StandardHistoryUpdateOne) ClearDeletedBy() *StandardHistoryUpdateOne { + shuo.mutation.ClearDeletedBy() + return shuo +} + +// SetTags sets the "tags" field. +func (shuo *StandardHistoryUpdateOne) SetTags(s []string) *StandardHistoryUpdateOne { + shuo.mutation.SetTags(s) + return shuo +} + +// AppendTags appends s to the "tags" field. +func (shuo *StandardHistoryUpdateOne) AppendTags(s []string) *StandardHistoryUpdateOne { + shuo.mutation.AppendTags(s) + return shuo +} + +// ClearTags clears the value of the "tags" field. +func (shuo *StandardHistoryUpdateOne) ClearTags() *StandardHistoryUpdateOne { + shuo.mutation.ClearTags() + return shuo +} + +// SetName sets the "name" field. +func (shuo *StandardHistoryUpdateOne) SetName(s string) *StandardHistoryUpdateOne { + shuo.mutation.SetName(s) + return shuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (shuo *StandardHistoryUpdateOne) SetNillableName(s *string) *StandardHistoryUpdateOne { + if s != nil { + shuo.SetName(*s) + } + return shuo +} + +// SetDescription sets the "description" field. +func (shuo *StandardHistoryUpdateOne) SetDescription(s string) *StandardHistoryUpdateOne { + shuo.mutation.SetDescription(s) + return shuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (shuo *StandardHistoryUpdateOne) SetNillableDescription(s *string) *StandardHistoryUpdateOne { + if s != nil { + shuo.SetDescription(*s) + } + return shuo +} + +// ClearDescription clears the value of the "description" field. +func (shuo *StandardHistoryUpdateOne) ClearDescription() *StandardHistoryUpdateOne { + shuo.mutation.ClearDescription() + return shuo +} + +// SetFamily sets the "family" field. +func (shuo *StandardHistoryUpdateOne) SetFamily(s string) *StandardHistoryUpdateOne { + shuo.mutation.SetFamily(s) + return shuo +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (shuo *StandardHistoryUpdateOne) SetNillableFamily(s *string) *StandardHistoryUpdateOne { + if s != nil { + shuo.SetFamily(*s) + } + return shuo +} + +// ClearFamily clears the value of the "family" field. +func (shuo *StandardHistoryUpdateOne) ClearFamily() *StandardHistoryUpdateOne { + shuo.mutation.ClearFamily() + return shuo +} + +// SetStatus sets the "status" field. +func (shuo *StandardHistoryUpdateOne) SetStatus(s string) *StandardHistoryUpdateOne { + shuo.mutation.SetStatus(s) + return shuo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (shuo *StandardHistoryUpdateOne) SetNillableStatus(s *string) *StandardHistoryUpdateOne { + if s != nil { + shuo.SetStatus(*s) + } + return shuo +} + +// ClearStatus clears the value of the "status" field. +func (shuo *StandardHistoryUpdateOne) ClearStatus() *StandardHistoryUpdateOne { + shuo.mutation.ClearStatus() + return shuo +} + +// SetStandardType sets the "standard_type" field. +func (shuo *StandardHistoryUpdateOne) SetStandardType(s string) *StandardHistoryUpdateOne { + shuo.mutation.SetStandardType(s) + return shuo +} + +// SetNillableStandardType sets the "standard_type" field if the given value is not nil. +func (shuo *StandardHistoryUpdateOne) SetNillableStandardType(s *string) *StandardHistoryUpdateOne { + if s != nil { + shuo.SetStandardType(*s) + } + return shuo +} + +// ClearStandardType clears the value of the "standard_type" field. +func (shuo *StandardHistoryUpdateOne) ClearStandardType() *StandardHistoryUpdateOne { + shuo.mutation.ClearStandardType() + return shuo +} + +// SetVersion sets the "version" field. +func (shuo *StandardHistoryUpdateOne) SetVersion(s string) *StandardHistoryUpdateOne { + shuo.mutation.SetVersion(s) + return shuo +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (shuo *StandardHistoryUpdateOne) SetNillableVersion(s *string) *StandardHistoryUpdateOne { + if s != nil { + shuo.SetVersion(*s) + } + return shuo +} + +// ClearVersion clears the value of the "version" field. +func (shuo *StandardHistoryUpdateOne) ClearVersion() *StandardHistoryUpdateOne { + shuo.mutation.ClearVersion() + return shuo +} + +// SetPurposeAndScope sets the "purpose_and_scope" field. +func (shuo *StandardHistoryUpdateOne) SetPurposeAndScope(s string) *StandardHistoryUpdateOne { + shuo.mutation.SetPurposeAndScope(s) + return shuo +} + +// SetNillablePurposeAndScope sets the "purpose_and_scope" field if the given value is not nil. +func (shuo *StandardHistoryUpdateOne) SetNillablePurposeAndScope(s *string) *StandardHistoryUpdateOne { + if s != nil { + shuo.SetPurposeAndScope(*s) + } + return shuo +} + +// ClearPurposeAndScope clears the value of the "purpose_and_scope" field. +func (shuo *StandardHistoryUpdateOne) ClearPurposeAndScope() *StandardHistoryUpdateOne { + shuo.mutation.ClearPurposeAndScope() + return shuo +} + +// SetBackground sets the "background" field. +func (shuo *StandardHistoryUpdateOne) SetBackground(s string) *StandardHistoryUpdateOne { + shuo.mutation.SetBackground(s) + return shuo +} + +// SetNillableBackground sets the "background" field if the given value is not nil. +func (shuo *StandardHistoryUpdateOne) SetNillableBackground(s *string) *StandardHistoryUpdateOne { + if s != nil { + shuo.SetBackground(*s) + } + return shuo +} + +// ClearBackground clears the value of the "background" field. +func (shuo *StandardHistoryUpdateOne) ClearBackground() *StandardHistoryUpdateOne { + shuo.mutation.ClearBackground() + return shuo +} + +// SetSatisfies sets the "satisfies" field. +func (shuo *StandardHistoryUpdateOne) SetSatisfies(s string) *StandardHistoryUpdateOne { + shuo.mutation.SetSatisfies(s) + return shuo +} + +// SetNillableSatisfies sets the "satisfies" field if the given value is not nil. +func (shuo *StandardHistoryUpdateOne) SetNillableSatisfies(s *string) *StandardHistoryUpdateOne { + if s != nil { + shuo.SetSatisfies(*s) + } + return shuo +} + +// ClearSatisfies clears the value of the "satisfies" field. +func (shuo *StandardHistoryUpdateOne) ClearSatisfies() *StandardHistoryUpdateOne { + shuo.mutation.ClearSatisfies() + return shuo +} + +// SetDetails sets the "details" field. +func (shuo *StandardHistoryUpdateOne) SetDetails(m map[string]interface{}) *StandardHistoryUpdateOne { + shuo.mutation.SetDetails(m) + return shuo +} + +// ClearDetails clears the value of the "details" field. +func (shuo *StandardHistoryUpdateOne) ClearDetails() *StandardHistoryUpdateOne { + shuo.mutation.ClearDetails() + return shuo +} + +// Mutation returns the StandardHistoryMutation object of the builder. +func (shuo *StandardHistoryUpdateOne) Mutation() *StandardHistoryMutation { + return shuo.mutation +} + +// Where appends a list predicates to the StandardHistoryUpdate builder. +func (shuo *StandardHistoryUpdateOne) Where(ps ...predicate.StandardHistory) *StandardHistoryUpdateOne { + shuo.mutation.Where(ps...) + return shuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (shuo *StandardHistoryUpdateOne) Select(field string, fields ...string) *StandardHistoryUpdateOne { + shuo.fields = append([]string{field}, fields...) + return shuo +} + +// Save executes the query and returns the updated StandardHistory entity. +func (shuo *StandardHistoryUpdateOne) Save(ctx context.Context) (*StandardHistory, error) { + shuo.defaults() + return withHooks(ctx, shuo.sqlSave, shuo.mutation, shuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (shuo *StandardHistoryUpdateOne) SaveX(ctx context.Context) *StandardHistory { + node, err := shuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (shuo *StandardHistoryUpdateOne) Exec(ctx context.Context) error { + _, err := shuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (shuo *StandardHistoryUpdateOne) ExecX(ctx context.Context) { + if err := shuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (shuo *StandardHistoryUpdateOne) defaults() { + if _, ok := shuo.mutation.UpdatedAt(); !ok && !shuo.mutation.UpdatedAtCleared() { + v := standardhistory.UpdateDefaultUpdatedAt() + shuo.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (shuo *StandardHistoryUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *StandardHistoryUpdateOne { + shuo.modifiers = append(shuo.modifiers, modifiers...) + return shuo +} + +func (shuo *StandardHistoryUpdateOne) sqlSave(ctx context.Context) (_node *StandardHistory, err error) { + _spec := sqlgraph.NewUpdateSpec(standardhistory.Table, standardhistory.Columns, sqlgraph.NewFieldSpec(standardhistory.FieldID, field.TypeString)) + id, ok := shuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "StandardHistory.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := shuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, standardhistory.FieldID) + for _, f := range fields { + if !standardhistory.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != standardhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := shuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if shuo.mutation.RefCleared() { + _spec.ClearField(standardhistory.FieldRef, field.TypeString) + } + if shuo.mutation.CreatedAtCleared() { + _spec.ClearField(standardhistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := shuo.mutation.UpdatedAt(); ok { + _spec.SetField(standardhistory.FieldUpdatedAt, field.TypeTime, value) + } + if shuo.mutation.UpdatedAtCleared() { + _spec.ClearField(standardhistory.FieldUpdatedAt, field.TypeTime) + } + if shuo.mutation.CreatedByCleared() { + _spec.ClearField(standardhistory.FieldCreatedBy, field.TypeString) + } + if value, ok := shuo.mutation.UpdatedBy(); ok { + _spec.SetField(standardhistory.FieldUpdatedBy, field.TypeString, value) + } + if shuo.mutation.UpdatedByCleared() { + _spec.ClearField(standardhistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := shuo.mutation.DeletedAt(); ok { + _spec.SetField(standardhistory.FieldDeletedAt, field.TypeTime, value) + } + if shuo.mutation.DeletedAtCleared() { + _spec.ClearField(standardhistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := shuo.mutation.DeletedBy(); ok { + _spec.SetField(standardhistory.FieldDeletedBy, field.TypeString, value) + } + if shuo.mutation.DeletedByCleared() { + _spec.ClearField(standardhistory.FieldDeletedBy, field.TypeString) + } + if value, ok := shuo.mutation.Tags(); ok { + _spec.SetField(standardhistory.FieldTags, field.TypeJSON, value) + } + if value, ok := shuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, standardhistory.FieldTags, value) + }) + } + if shuo.mutation.TagsCleared() { + _spec.ClearField(standardhistory.FieldTags, field.TypeJSON) + } + if value, ok := shuo.mutation.Name(); ok { + _spec.SetField(standardhistory.FieldName, field.TypeString, value) + } + if value, ok := shuo.mutation.Description(); ok { + _spec.SetField(standardhistory.FieldDescription, field.TypeString, value) + } + if shuo.mutation.DescriptionCleared() { + _spec.ClearField(standardhistory.FieldDescription, field.TypeString) + } + if value, ok := shuo.mutation.Family(); ok { + _spec.SetField(standardhistory.FieldFamily, field.TypeString, value) + } + if shuo.mutation.FamilyCleared() { + _spec.ClearField(standardhistory.FieldFamily, field.TypeString) + } + if value, ok := shuo.mutation.Status(); ok { + _spec.SetField(standardhistory.FieldStatus, field.TypeString, value) + } + if shuo.mutation.StatusCleared() { + _spec.ClearField(standardhistory.FieldStatus, field.TypeString) + } + if value, ok := shuo.mutation.StandardType(); ok { + _spec.SetField(standardhistory.FieldStandardType, field.TypeString, value) + } + if shuo.mutation.StandardTypeCleared() { + _spec.ClearField(standardhistory.FieldStandardType, field.TypeString) + } + if value, ok := shuo.mutation.Version(); ok { + _spec.SetField(standardhistory.FieldVersion, field.TypeString, value) + } + if shuo.mutation.VersionCleared() { + _spec.ClearField(standardhistory.FieldVersion, field.TypeString) + } + if value, ok := shuo.mutation.PurposeAndScope(); ok { + _spec.SetField(standardhistory.FieldPurposeAndScope, field.TypeString, value) + } + if shuo.mutation.PurposeAndScopeCleared() { + _spec.ClearField(standardhistory.FieldPurposeAndScope, field.TypeString) + } + if value, ok := shuo.mutation.Background(); ok { + _spec.SetField(standardhistory.FieldBackground, field.TypeString, value) + } + if shuo.mutation.BackgroundCleared() { + _spec.ClearField(standardhistory.FieldBackground, field.TypeString) + } + if value, ok := shuo.mutation.Satisfies(); ok { + _spec.SetField(standardhistory.FieldSatisfies, field.TypeString, value) + } + if shuo.mutation.SatisfiesCleared() { + _spec.ClearField(standardhistory.FieldSatisfies, field.TypeString) + } + if value, ok := shuo.mutation.Details(); ok { + _spec.SetField(standardhistory.FieldDetails, field.TypeJSON, value) + } + if shuo.mutation.DetailsCleared() { + _spec.ClearField(standardhistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = shuo.schemaConfig.StandardHistory + ctx = internal.NewSchemaConfigContext(ctx, shuo.schemaConfig) + _spec.AddModifiers(shuo.modifiers...) + _node = &StandardHistory{config: shuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, shuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{standardhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + shuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/subcontrol.go b/internal/ent/generated/subcontrol.go new file mode 100644 index 00000000..2532e5b6 --- /dev/null +++ b/internal/ent/generated/subcontrol.go @@ -0,0 +1,498 @@ +// 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/internal/ent/generated/note" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" +) + +// Subcontrol is the model entity for the Subcontrol schema. +type Subcontrol 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the subcontrol + Name string `json:"name,omitempty"` + // description of the subcontrol + Description string `json:"description,omitempty"` + // status of the subcontrol + Status string `json:"status,omitempty"` + // type of the subcontrol + SubcontrolType string `json:"subcontrol_type,omitempty"` + // version of the control + Version string `json:"version,omitempty"` + // number of the subcontrol + SubcontrolNumber string `json:"subcontrol_number,omitempty"` + // subcontrol family + Family string `json:"family,omitempty"` + // subcontrol class + Class string `json:"class,omitempty"` + // source of the control, e.g. framework, template, user-defined, etc. + Source string `json:"source,omitempty"` + // mapped frameworks that the subcontrol is part of + MappedFrameworks string `json:"mapped_frameworks,omitempty"` + // implementation evidence of the subcontrol + ImplementationEvidence string `json:"implementation_evidence,omitempty"` + // implementation status + ImplementationStatus string `json:"implementation_status,omitempty"` + // date the subcontrol was implemented + ImplementationDate time.Time `json:"implementation_date,omitempty"` + // implementation verification + ImplementationVerification string `json:"implementation_verification,omitempty"` + // date the subcontrol implementation was verified + ImplementationVerificationDate time.Time `json:"implementation_verification_date,omitempty"` + // json data details of the subcontrol + Details map[string]interface{} `json:"details,omitempty"` + // Edges holds the relations/edges for other nodes in the graph. + // The values are being populated by the SubcontrolQuery when eager-loading is set. + Edges SubcontrolEdges `json:"edges"` + control_objective_subcontrols *string + note_subcontrols *string + selectValues sql.SelectValues +} + +// SubcontrolEdges holds the relations/edges for other nodes in the graph. +type SubcontrolEdges struct { + // Control holds the value of the control edge. + Control []*Control `json:"control,omitempty"` + // User holds the value of the user edge. + User []*User `json:"user,omitempty"` + // Notes holds the value of the notes edge. + Notes *Note `json:"notes,omitempty"` + // loadedTypes holds the information for reporting if a + // type was loaded (or requested) in eager-loading or not. + loadedTypes [3]bool + // totalCount holds the count of the edges above. + totalCount [3]map[string]int + + namedControl map[string][]*Control + namedUser map[string][]*User +} + +// ControlOrErr returns the Control value or an error if the edge +// was not loaded in eager-loading. +func (e SubcontrolEdges) ControlOrErr() ([]*Control, error) { + if e.loadedTypes[0] { + return e.Control, nil + } + return nil, &NotLoadedError{edge: "control"} +} + +// UserOrErr returns the User value or an error if the edge +// was not loaded in eager-loading. +func (e SubcontrolEdges) UserOrErr() ([]*User, error) { + if e.loadedTypes[1] { + return e.User, nil + } + return nil, &NotLoadedError{edge: "user"} +} + +// NotesOrErr returns the Notes value or an error if the edge +// was not loaded in eager-loading, or loaded but was not found. +func (e SubcontrolEdges) NotesOrErr() (*Note, error) { + if e.Notes != nil { + return e.Notes, nil + } else if e.loadedTypes[2] { + return nil, &NotFoundError{label: note.Label} + } + return nil, &NotLoadedError{edge: "notes"} +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*Subcontrol) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case subcontrol.FieldTags, subcontrol.FieldDetails: + values[i] = new([]byte) + case subcontrol.FieldID, subcontrol.FieldCreatedBy, subcontrol.FieldUpdatedBy, subcontrol.FieldDeletedBy, subcontrol.FieldMappingID, subcontrol.FieldName, subcontrol.FieldDescription, subcontrol.FieldStatus, subcontrol.FieldSubcontrolType, subcontrol.FieldVersion, subcontrol.FieldSubcontrolNumber, subcontrol.FieldFamily, subcontrol.FieldClass, subcontrol.FieldSource, subcontrol.FieldMappedFrameworks, subcontrol.FieldImplementationEvidence, subcontrol.FieldImplementationStatus, subcontrol.FieldImplementationVerification: + values[i] = new(sql.NullString) + case subcontrol.FieldCreatedAt, subcontrol.FieldUpdatedAt, subcontrol.FieldDeletedAt, subcontrol.FieldImplementationDate, subcontrol.FieldImplementationVerificationDate: + values[i] = new(sql.NullTime) + case subcontrol.ForeignKeys[0]: // control_objective_subcontrols + values[i] = new(sql.NullString) + case subcontrol.ForeignKeys[1]: // note_subcontrols + values[i] = new(sql.NullString) + default: + values[i] = new(sql.UnknownType) + } + } + return values, nil +} + +// assignValues assigns the values that were returned from sql.Rows (after scanning) +// to the Subcontrol fields. +func (s *Subcontrol) 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 subcontrol.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + s.ID = value.String + } + case subcontrol.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 { + s.CreatedAt = value.Time + } + case subcontrol.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 { + s.UpdatedAt = value.Time + } + case subcontrol.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 { + s.CreatedBy = value.String + } + case subcontrol.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 { + s.UpdatedBy = value.String + } + case subcontrol.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 { + s.DeletedAt = value.Time + } + case subcontrol.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 { + s.DeletedBy = value.String + } + case subcontrol.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + s.MappingID = value.String + } + case subcontrol.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, &s.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case subcontrol.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + s.Name = value.String + } + case subcontrol.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + s.Description = value.String + } + case subcontrol.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + s.Status = value.String + } + case subcontrol.FieldSubcontrolType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field subcontrol_type", values[i]) + } else if value.Valid { + s.SubcontrolType = value.String + } + case subcontrol.FieldVersion: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field version", values[i]) + } else if value.Valid { + s.Version = value.String + } + case subcontrol.FieldSubcontrolNumber: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field subcontrol_number", values[i]) + } else if value.Valid { + s.SubcontrolNumber = value.String + } + case subcontrol.FieldFamily: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field family", values[i]) + } else if value.Valid { + s.Family = value.String + } + case subcontrol.FieldClass: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field class", values[i]) + } else if value.Valid { + s.Class = value.String + } + case subcontrol.FieldSource: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field source", values[i]) + } else if value.Valid { + s.Source = value.String + } + case subcontrol.FieldMappedFrameworks: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapped_frameworks", values[i]) + } else if value.Valid { + s.MappedFrameworks = value.String + } + case subcontrol.FieldImplementationEvidence: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field implementation_evidence", values[i]) + } else if value.Valid { + s.ImplementationEvidence = value.String + } + case subcontrol.FieldImplementationStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field implementation_status", values[i]) + } else if value.Valid { + s.ImplementationStatus = value.String + } + case subcontrol.FieldImplementationDate: + if value, ok := values[i].(*sql.NullTime); !ok { + return fmt.Errorf("unexpected type %T for field implementation_date", values[i]) + } else if value.Valid { + s.ImplementationDate = value.Time + } + case subcontrol.FieldImplementationVerification: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field implementation_verification", values[i]) + } else if value.Valid { + s.ImplementationVerification = value.String + } + case subcontrol.FieldImplementationVerificationDate: + if value, ok := values[i].(*sql.NullTime); !ok { + return fmt.Errorf("unexpected type %T for field implementation_verification_date", values[i]) + } else if value.Valid { + s.ImplementationVerificationDate = value.Time + } + case subcontrol.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &s.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + case subcontrol.ForeignKeys[0]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field control_objective_subcontrols", values[i]) + } else if value.Valid { + s.control_objective_subcontrols = new(string) + *s.control_objective_subcontrols = value.String + } + case subcontrol.ForeignKeys[1]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field note_subcontrols", values[i]) + } else if value.Valid { + s.note_subcontrols = new(string) + *s.note_subcontrols = value.String + } + default: + s.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the Subcontrol. +// This includes values selected through modifiers, order, etc. +func (s *Subcontrol) Value(name string) (ent.Value, error) { + return s.selectValues.Get(name) +} + +// QueryControl queries the "control" edge of the Subcontrol entity. +func (s *Subcontrol) QueryControl() *ControlQuery { + return NewSubcontrolClient(s.config).QueryControl(s) +} + +// QueryUser queries the "user" edge of the Subcontrol entity. +func (s *Subcontrol) QueryUser() *UserQuery { + return NewSubcontrolClient(s.config).QueryUser(s) +} + +// QueryNotes queries the "notes" edge of the Subcontrol entity. +func (s *Subcontrol) QueryNotes() *NoteQuery { + return NewSubcontrolClient(s.config).QueryNotes(s) +} + +// Update returns a builder for updating this Subcontrol. +// Note that you need to call Subcontrol.Unwrap() before calling this method if this Subcontrol +// was returned from a transaction, and the transaction was committed or rolled back. +func (s *Subcontrol) Update() *SubcontrolUpdateOne { + return NewSubcontrolClient(s.config).UpdateOne(s) +} + +// Unwrap unwraps the Subcontrol 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 (s *Subcontrol) Unwrap() *Subcontrol { + _tx, ok := s.config.driver.(*txDriver) + if !ok { + panic("generated: Subcontrol is not a transactional entity") + } + s.config.driver = _tx.drv + return s +} + +// String implements the fmt.Stringer. +func (s *Subcontrol) String() string { + var builder strings.Builder + builder.WriteString("Subcontrol(") + builder.WriteString(fmt.Sprintf("id=%v, ", s.ID)) + builder.WriteString("created_at=") + builder.WriteString(s.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(s.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(s.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(s.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(s.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(s.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(s.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", s.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(s.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(s.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(s.Status) + builder.WriteString(", ") + builder.WriteString("subcontrol_type=") + builder.WriteString(s.SubcontrolType) + builder.WriteString(", ") + builder.WriteString("version=") + builder.WriteString(s.Version) + builder.WriteString(", ") + builder.WriteString("subcontrol_number=") + builder.WriteString(s.SubcontrolNumber) + builder.WriteString(", ") + builder.WriteString("family=") + builder.WriteString(s.Family) + builder.WriteString(", ") + builder.WriteString("class=") + builder.WriteString(s.Class) + builder.WriteString(", ") + builder.WriteString("source=") + builder.WriteString(s.Source) + builder.WriteString(", ") + builder.WriteString("mapped_frameworks=") + builder.WriteString(s.MappedFrameworks) + builder.WriteString(", ") + builder.WriteString("implementation_evidence=") + builder.WriteString(s.ImplementationEvidence) + builder.WriteString(", ") + builder.WriteString("implementation_status=") + builder.WriteString(s.ImplementationStatus) + builder.WriteString(", ") + builder.WriteString("implementation_date=") + builder.WriteString(s.ImplementationDate.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("implementation_verification=") + builder.WriteString(s.ImplementationVerification) + builder.WriteString(", ") + builder.WriteString("implementation_verification_date=") + builder.WriteString(s.ImplementationVerificationDate.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", s.Details)) + builder.WriteByte(')') + return builder.String() +} + +// NamedControl returns the Control named value or an error if the edge was not +// loaded in eager-loading with this name. +func (s *Subcontrol) NamedControl(name string) ([]*Control, error) { + if s.Edges.namedControl == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := s.Edges.namedControl[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (s *Subcontrol) appendNamedControl(name string, edges ...*Control) { + if s.Edges.namedControl == nil { + s.Edges.namedControl = make(map[string][]*Control) + } + if len(edges) == 0 { + s.Edges.namedControl[name] = []*Control{} + } else { + s.Edges.namedControl[name] = append(s.Edges.namedControl[name], edges...) + } +} + +// NamedUser returns the User named value or an error if the edge was not +// loaded in eager-loading with this name. +func (s *Subcontrol) NamedUser(name string) ([]*User, error) { + if s.Edges.namedUser == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := s.Edges.namedUser[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (s *Subcontrol) appendNamedUser(name string, edges ...*User) { + if s.Edges.namedUser == nil { + s.Edges.namedUser = make(map[string][]*User) + } + if len(edges) == 0 { + s.Edges.namedUser[name] = []*User{} + } else { + s.Edges.namedUser[name] = append(s.Edges.namedUser[name], edges...) + } +} + +// Subcontrols is a parsable slice of Subcontrol. +type Subcontrols []*Subcontrol diff --git a/internal/ent/generated/subcontrol/subcontrol.go b/internal/ent/generated/subcontrol/subcontrol.go new file mode 100644 index 00000000..014f5cba --- /dev/null +++ b/internal/ent/generated/subcontrol/subcontrol.go @@ -0,0 +1,347 @@ +// Code generated by ent, DO NOT EDIT. + +package subcontrol + +import ( + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" +) + +const ( + // Label holds the string label denoting the subcontrol type in the database. + Label = "subcontrol" + // 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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldSubcontrolType holds the string denoting the subcontrol_type field in the database. + FieldSubcontrolType = "subcontrol_type" + // FieldVersion holds the string denoting the version field in the database. + FieldVersion = "version" + // FieldSubcontrolNumber holds the string denoting the subcontrol_number field in the database. + FieldSubcontrolNumber = "subcontrol_number" + // FieldFamily holds the string denoting the family field in the database. + FieldFamily = "family" + // FieldClass holds the string denoting the class field in the database. + FieldClass = "class" + // FieldSource holds the string denoting the source field in the database. + FieldSource = "source" + // FieldMappedFrameworks holds the string denoting the mapped_frameworks field in the database. + FieldMappedFrameworks = "mapped_frameworks" + // FieldImplementationEvidence holds the string denoting the implementation_evidence field in the database. + FieldImplementationEvidence = "implementation_evidence" + // FieldImplementationStatus holds the string denoting the implementation_status field in the database. + FieldImplementationStatus = "implementation_status" + // FieldImplementationDate holds the string denoting the implementation_date field in the database. + FieldImplementationDate = "implementation_date" + // FieldImplementationVerification holds the string denoting the implementation_verification field in the database. + FieldImplementationVerification = "implementation_verification" + // FieldImplementationVerificationDate holds the string denoting the implementation_verification_date field in the database. + FieldImplementationVerificationDate = "implementation_verification_date" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // EdgeControl holds the string denoting the control edge name in mutations. + EdgeControl = "control" + // EdgeUser holds the string denoting the user edge name in mutations. + EdgeUser = "user" + // EdgeNotes holds the string denoting the notes edge name in mutations. + EdgeNotes = "notes" + // Table holds the table name of the subcontrol in the database. + Table = "subcontrols" + // ControlTable is the table that holds the control relation/edge. The primary key declared below. + ControlTable = "control_subcontrols" + // ControlInverseTable is the table name for the Control entity. + // It exists in this package in order to avoid circular dependency with the "control" package. + ControlInverseTable = "controls" + // UserTable is the table that holds the user relation/edge. The primary key declared below. + UserTable = "user_subcontrols" + // 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" + // NotesTable is the table that holds the notes relation/edge. + NotesTable = "subcontrols" + // NotesInverseTable is the table name for the Note entity. + // It exists in this package in order to avoid circular dependency with the "note" package. + NotesInverseTable = "notes" + // NotesColumn is the table column denoting the notes relation/edge. + NotesColumn = "note_subcontrols" +) + +// Columns holds all SQL columns for subcontrol fields. +var Columns = []string{ + FieldID, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldSubcontrolType, + FieldVersion, + FieldSubcontrolNumber, + FieldFamily, + FieldClass, + FieldSource, + FieldMappedFrameworks, + FieldImplementationEvidence, + FieldImplementationStatus, + FieldImplementationDate, + FieldImplementationVerification, + FieldImplementationVerificationDate, + FieldDetails, +} + +// ForeignKeys holds the SQL foreign-keys that are owned by the "subcontrols" +// table and are not defined as standalone fields in the schema. +var ForeignKeys = []string{ + "control_objective_subcontrols", + "note_subcontrols", +} + +var ( + // ControlPrimaryKey and ControlColumn2 are the table columns denoting the + // primary key for the control relation (M2M). + ControlPrimaryKey = []string{"control_id", "subcontrol_id"} + // UserPrimaryKey and UserColumn2 are the table columns denoting the + // primary key for the user relation (M2M). + UserPrimaryKey = []string{"user_id", "subcontrol_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 + } + } + for i := range ForeignKeys { + if column == ForeignKeys[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/internal/ent/generated/runtime" +var ( + Hooks [2]ent.Hook + Interceptors [1]ent.Interceptor + // 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 + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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 +) + +// OrderOption defines the ordering options for the Subcontrol 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// BySubcontrolType orders the results by the subcontrol_type field. +func BySubcontrolType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSubcontrolType, opts...).ToFunc() +} + +// ByVersion orders the results by the version field. +func ByVersion(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldVersion, opts...).ToFunc() +} + +// BySubcontrolNumber orders the results by the subcontrol_number field. +func BySubcontrolNumber(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSubcontrolNumber, opts...).ToFunc() +} + +// ByFamily orders the results by the family field. +func ByFamily(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldFamily, opts...).ToFunc() +} + +// ByClass orders the results by the class field. +func ByClass(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldClass, opts...).ToFunc() +} + +// BySource orders the results by the source field. +func BySource(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSource, opts...).ToFunc() +} + +// ByMappedFrameworks orders the results by the mapped_frameworks field. +func ByMappedFrameworks(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappedFrameworks, opts...).ToFunc() +} + +// ByImplementationEvidence orders the results by the implementation_evidence field. +func ByImplementationEvidence(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldImplementationEvidence, opts...).ToFunc() +} + +// ByImplementationStatus orders the results by the implementation_status field. +func ByImplementationStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldImplementationStatus, opts...).ToFunc() +} + +// ByImplementationDate orders the results by the implementation_date field. +func ByImplementationDate(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldImplementationDate, opts...).ToFunc() +} + +// ByImplementationVerification orders the results by the implementation_verification field. +func ByImplementationVerification(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldImplementationVerification, opts...).ToFunc() +} + +// ByImplementationVerificationDate orders the results by the implementation_verification_date field. +func ByImplementationVerificationDate(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldImplementationVerificationDate, opts...).ToFunc() +} + +// ByControlCount orders the results by control count. +func ByControlCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newControlStep(), opts...) + } +} + +// ByControl orders the results by control terms. +func ByControl(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newControlStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByUserCount orders the results by user count. +func ByUserCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newUserStep(), opts...) + } +} + +// ByUser orders the results by user terms. +func ByUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newUserStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByNotesField orders the results by notes field. +func ByNotesField(field string, opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newNotesStep(), sql.OrderByField(field, opts...)) + } +} +func newControlStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ControlInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ControlTable, ControlPrimaryKey...), + ) +} +func newUserStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(UserInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, UserTable, UserPrimaryKey...), + ) +} +func newNotesStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(NotesInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, NotesTable, NotesColumn), + ) +} diff --git a/internal/ent/generated/subcontrol/where.go b/internal/ent/generated/subcontrol/where.go new file mode 100644 index 00000000..45140bcd --- /dev/null +++ b/internal/ent/generated/subcontrol/where.go @@ -0,0 +1,1805 @@ +// Code generated by ent, DO NOT EDIT. + +package subcontrol + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/theopenlane/core/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.Subcontrol { + return predicate.Subcontrol(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.Subcontrol { + return predicate.Subcontrol(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.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldStatus, v)) +} + +// SubcontrolType applies equality check predicate on the "subcontrol_type" field. It's identical to SubcontrolTypeEQ. +func SubcontrolType(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldSubcontrolType, v)) +} + +// Version applies equality check predicate on the "version" field. It's identical to VersionEQ. +func Version(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldVersion, v)) +} + +// SubcontrolNumber applies equality check predicate on the "subcontrol_number" field. It's identical to SubcontrolNumberEQ. +func SubcontrolNumber(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldSubcontrolNumber, v)) +} + +// Family applies equality check predicate on the "family" field. It's identical to FamilyEQ. +func Family(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldFamily, v)) +} + +// Class applies equality check predicate on the "class" field. It's identical to ClassEQ. +func Class(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldClass, v)) +} + +// Source applies equality check predicate on the "source" field. It's identical to SourceEQ. +func Source(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldSource, v)) +} + +// MappedFrameworks applies equality check predicate on the "mapped_frameworks" field. It's identical to MappedFrameworksEQ. +func MappedFrameworks(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldMappedFrameworks, v)) +} + +// ImplementationEvidence applies equality check predicate on the "implementation_evidence" field. It's identical to ImplementationEvidenceEQ. +func ImplementationEvidence(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldImplementationEvidence, v)) +} + +// ImplementationStatus applies equality check predicate on the "implementation_status" field. It's identical to ImplementationStatusEQ. +func ImplementationStatus(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldImplementationStatus, v)) +} + +// ImplementationDate applies equality check predicate on the "implementation_date" field. It's identical to ImplementationDateEQ. +func ImplementationDate(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldImplementationDate, v)) +} + +// ImplementationVerification applies equality check predicate on the "implementation_verification" field. It's identical to ImplementationVerificationEQ. +func ImplementationVerification(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldImplementationVerification, v)) +} + +// ImplementationVerificationDate applies equality check predicate on the "implementation_verification_date" field. It's identical to ImplementationVerificationDateEQ. +func ImplementationVerificationDate(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldImplementationVerificationDate, v)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldStatus, v)) +} + +// SubcontrolTypeEQ applies the EQ predicate on the "subcontrol_type" field. +func SubcontrolTypeEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldSubcontrolType, v)) +} + +// SubcontrolTypeNEQ applies the NEQ predicate on the "subcontrol_type" field. +func SubcontrolTypeNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldSubcontrolType, v)) +} + +// SubcontrolTypeIn applies the In predicate on the "subcontrol_type" field. +func SubcontrolTypeIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldSubcontrolType, vs...)) +} + +// SubcontrolTypeNotIn applies the NotIn predicate on the "subcontrol_type" field. +func SubcontrolTypeNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldSubcontrolType, vs...)) +} + +// SubcontrolTypeGT applies the GT predicate on the "subcontrol_type" field. +func SubcontrolTypeGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldSubcontrolType, v)) +} + +// SubcontrolTypeGTE applies the GTE predicate on the "subcontrol_type" field. +func SubcontrolTypeGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldSubcontrolType, v)) +} + +// SubcontrolTypeLT applies the LT predicate on the "subcontrol_type" field. +func SubcontrolTypeLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldSubcontrolType, v)) +} + +// SubcontrolTypeLTE applies the LTE predicate on the "subcontrol_type" field. +func SubcontrolTypeLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldSubcontrolType, v)) +} + +// SubcontrolTypeContains applies the Contains predicate on the "subcontrol_type" field. +func SubcontrolTypeContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldSubcontrolType, v)) +} + +// SubcontrolTypeHasPrefix applies the HasPrefix predicate on the "subcontrol_type" field. +func SubcontrolTypeHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldSubcontrolType, v)) +} + +// SubcontrolTypeHasSuffix applies the HasSuffix predicate on the "subcontrol_type" field. +func SubcontrolTypeHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldSubcontrolType, v)) +} + +// SubcontrolTypeIsNil applies the IsNil predicate on the "subcontrol_type" field. +func SubcontrolTypeIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldSubcontrolType)) +} + +// SubcontrolTypeNotNil applies the NotNil predicate on the "subcontrol_type" field. +func SubcontrolTypeNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldSubcontrolType)) +} + +// SubcontrolTypeEqualFold applies the EqualFold predicate on the "subcontrol_type" field. +func SubcontrolTypeEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldSubcontrolType, v)) +} + +// SubcontrolTypeContainsFold applies the ContainsFold predicate on the "subcontrol_type" field. +func SubcontrolTypeContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldSubcontrolType, v)) +} + +// VersionEQ applies the EQ predicate on the "version" field. +func VersionEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldVersion, v)) +} + +// VersionNEQ applies the NEQ predicate on the "version" field. +func VersionNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldVersion, v)) +} + +// VersionIn applies the In predicate on the "version" field. +func VersionIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldVersion, vs...)) +} + +// VersionNotIn applies the NotIn predicate on the "version" field. +func VersionNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldVersion, vs...)) +} + +// VersionGT applies the GT predicate on the "version" field. +func VersionGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldVersion, v)) +} + +// VersionGTE applies the GTE predicate on the "version" field. +func VersionGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldVersion, v)) +} + +// VersionLT applies the LT predicate on the "version" field. +func VersionLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldVersion, v)) +} + +// VersionLTE applies the LTE predicate on the "version" field. +func VersionLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldVersion, v)) +} + +// VersionContains applies the Contains predicate on the "version" field. +func VersionContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldVersion, v)) +} + +// VersionHasPrefix applies the HasPrefix predicate on the "version" field. +func VersionHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldVersion, v)) +} + +// VersionHasSuffix applies the HasSuffix predicate on the "version" field. +func VersionHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldVersion, v)) +} + +// VersionIsNil applies the IsNil predicate on the "version" field. +func VersionIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldVersion)) +} + +// VersionNotNil applies the NotNil predicate on the "version" field. +func VersionNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldVersion)) +} + +// VersionEqualFold applies the EqualFold predicate on the "version" field. +func VersionEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldVersion, v)) +} + +// VersionContainsFold applies the ContainsFold predicate on the "version" field. +func VersionContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldVersion, v)) +} + +// SubcontrolNumberEQ applies the EQ predicate on the "subcontrol_number" field. +func SubcontrolNumberEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberNEQ applies the NEQ predicate on the "subcontrol_number" field. +func SubcontrolNumberNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberIn applies the In predicate on the "subcontrol_number" field. +func SubcontrolNumberIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldSubcontrolNumber, vs...)) +} + +// SubcontrolNumberNotIn applies the NotIn predicate on the "subcontrol_number" field. +func SubcontrolNumberNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldSubcontrolNumber, vs...)) +} + +// SubcontrolNumberGT applies the GT predicate on the "subcontrol_number" field. +func SubcontrolNumberGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberGTE applies the GTE predicate on the "subcontrol_number" field. +func SubcontrolNumberGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberLT applies the LT predicate on the "subcontrol_number" field. +func SubcontrolNumberLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberLTE applies the LTE predicate on the "subcontrol_number" field. +func SubcontrolNumberLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberContains applies the Contains predicate on the "subcontrol_number" field. +func SubcontrolNumberContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberHasPrefix applies the HasPrefix predicate on the "subcontrol_number" field. +func SubcontrolNumberHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberHasSuffix applies the HasSuffix predicate on the "subcontrol_number" field. +func SubcontrolNumberHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberIsNil applies the IsNil predicate on the "subcontrol_number" field. +func SubcontrolNumberIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldSubcontrolNumber)) +} + +// SubcontrolNumberNotNil applies the NotNil predicate on the "subcontrol_number" field. +func SubcontrolNumberNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldSubcontrolNumber)) +} + +// SubcontrolNumberEqualFold applies the EqualFold predicate on the "subcontrol_number" field. +func SubcontrolNumberEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberContainsFold applies the ContainsFold predicate on the "subcontrol_number" field. +func SubcontrolNumberContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldSubcontrolNumber, v)) +} + +// FamilyEQ applies the EQ predicate on the "family" field. +func FamilyEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldFamily, v)) +} + +// FamilyNEQ applies the NEQ predicate on the "family" field. +func FamilyNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldFamily, v)) +} + +// FamilyIn applies the In predicate on the "family" field. +func FamilyIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldFamily, vs...)) +} + +// FamilyNotIn applies the NotIn predicate on the "family" field. +func FamilyNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldFamily, vs...)) +} + +// FamilyGT applies the GT predicate on the "family" field. +func FamilyGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldFamily, v)) +} + +// FamilyGTE applies the GTE predicate on the "family" field. +func FamilyGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldFamily, v)) +} + +// FamilyLT applies the LT predicate on the "family" field. +func FamilyLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldFamily, v)) +} + +// FamilyLTE applies the LTE predicate on the "family" field. +func FamilyLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldFamily, v)) +} + +// FamilyContains applies the Contains predicate on the "family" field. +func FamilyContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldFamily, v)) +} + +// FamilyHasPrefix applies the HasPrefix predicate on the "family" field. +func FamilyHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldFamily, v)) +} + +// FamilyHasSuffix applies the HasSuffix predicate on the "family" field. +func FamilyHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldFamily, v)) +} + +// FamilyIsNil applies the IsNil predicate on the "family" field. +func FamilyIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldFamily)) +} + +// FamilyNotNil applies the NotNil predicate on the "family" field. +func FamilyNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldFamily)) +} + +// FamilyEqualFold applies the EqualFold predicate on the "family" field. +func FamilyEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldFamily, v)) +} + +// FamilyContainsFold applies the ContainsFold predicate on the "family" field. +func FamilyContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldFamily, v)) +} + +// ClassEQ applies the EQ predicate on the "class" field. +func ClassEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldClass, v)) +} + +// ClassNEQ applies the NEQ predicate on the "class" field. +func ClassNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldClass, v)) +} + +// ClassIn applies the In predicate on the "class" field. +func ClassIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldClass, vs...)) +} + +// ClassNotIn applies the NotIn predicate on the "class" field. +func ClassNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldClass, vs...)) +} + +// ClassGT applies the GT predicate on the "class" field. +func ClassGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldClass, v)) +} + +// ClassGTE applies the GTE predicate on the "class" field. +func ClassGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldClass, v)) +} + +// ClassLT applies the LT predicate on the "class" field. +func ClassLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldClass, v)) +} + +// ClassLTE applies the LTE predicate on the "class" field. +func ClassLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldClass, v)) +} + +// ClassContains applies the Contains predicate on the "class" field. +func ClassContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldClass, v)) +} + +// ClassHasPrefix applies the HasPrefix predicate on the "class" field. +func ClassHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldClass, v)) +} + +// ClassHasSuffix applies the HasSuffix predicate on the "class" field. +func ClassHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldClass, v)) +} + +// ClassIsNil applies the IsNil predicate on the "class" field. +func ClassIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldClass)) +} + +// ClassNotNil applies the NotNil predicate on the "class" field. +func ClassNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldClass)) +} + +// ClassEqualFold applies the EqualFold predicate on the "class" field. +func ClassEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldClass, v)) +} + +// ClassContainsFold applies the ContainsFold predicate on the "class" field. +func ClassContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldClass, v)) +} + +// SourceEQ applies the EQ predicate on the "source" field. +func SourceEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldSource, v)) +} + +// SourceNEQ applies the NEQ predicate on the "source" field. +func SourceNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldSource, v)) +} + +// SourceIn applies the In predicate on the "source" field. +func SourceIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldSource, vs...)) +} + +// SourceNotIn applies the NotIn predicate on the "source" field. +func SourceNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldSource, vs...)) +} + +// SourceGT applies the GT predicate on the "source" field. +func SourceGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldSource, v)) +} + +// SourceGTE applies the GTE predicate on the "source" field. +func SourceGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldSource, v)) +} + +// SourceLT applies the LT predicate on the "source" field. +func SourceLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldSource, v)) +} + +// SourceLTE applies the LTE predicate on the "source" field. +func SourceLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldSource, v)) +} + +// SourceContains applies the Contains predicate on the "source" field. +func SourceContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldSource, v)) +} + +// SourceHasPrefix applies the HasPrefix predicate on the "source" field. +func SourceHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldSource, v)) +} + +// SourceHasSuffix applies the HasSuffix predicate on the "source" field. +func SourceHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldSource, v)) +} + +// SourceIsNil applies the IsNil predicate on the "source" field. +func SourceIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldSource)) +} + +// SourceNotNil applies the NotNil predicate on the "source" field. +func SourceNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldSource)) +} + +// SourceEqualFold applies the EqualFold predicate on the "source" field. +func SourceEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldSource, v)) +} + +// SourceContainsFold applies the ContainsFold predicate on the "source" field. +func SourceContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldSource, v)) +} + +// MappedFrameworksEQ applies the EQ predicate on the "mapped_frameworks" field. +func MappedFrameworksEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldMappedFrameworks, v)) +} + +// MappedFrameworksNEQ applies the NEQ predicate on the "mapped_frameworks" field. +func MappedFrameworksNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldMappedFrameworks, v)) +} + +// MappedFrameworksIn applies the In predicate on the "mapped_frameworks" field. +func MappedFrameworksIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldMappedFrameworks, vs...)) +} + +// MappedFrameworksNotIn applies the NotIn predicate on the "mapped_frameworks" field. +func MappedFrameworksNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldMappedFrameworks, vs...)) +} + +// MappedFrameworksGT applies the GT predicate on the "mapped_frameworks" field. +func MappedFrameworksGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldMappedFrameworks, v)) +} + +// MappedFrameworksGTE applies the GTE predicate on the "mapped_frameworks" field. +func MappedFrameworksGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldMappedFrameworks, v)) +} + +// MappedFrameworksLT applies the LT predicate on the "mapped_frameworks" field. +func MappedFrameworksLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldMappedFrameworks, v)) +} + +// MappedFrameworksLTE applies the LTE predicate on the "mapped_frameworks" field. +func MappedFrameworksLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldMappedFrameworks, v)) +} + +// MappedFrameworksContains applies the Contains predicate on the "mapped_frameworks" field. +func MappedFrameworksContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldMappedFrameworks, v)) +} + +// MappedFrameworksHasPrefix applies the HasPrefix predicate on the "mapped_frameworks" field. +func MappedFrameworksHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldMappedFrameworks, v)) +} + +// MappedFrameworksHasSuffix applies the HasSuffix predicate on the "mapped_frameworks" field. +func MappedFrameworksHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldMappedFrameworks, v)) +} + +// MappedFrameworksIsNil applies the IsNil predicate on the "mapped_frameworks" field. +func MappedFrameworksIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldMappedFrameworks)) +} + +// MappedFrameworksNotNil applies the NotNil predicate on the "mapped_frameworks" field. +func MappedFrameworksNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldMappedFrameworks)) +} + +// MappedFrameworksEqualFold applies the EqualFold predicate on the "mapped_frameworks" field. +func MappedFrameworksEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldMappedFrameworks, v)) +} + +// MappedFrameworksContainsFold applies the ContainsFold predicate on the "mapped_frameworks" field. +func MappedFrameworksContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldMappedFrameworks, v)) +} + +// ImplementationEvidenceEQ applies the EQ predicate on the "implementation_evidence" field. +func ImplementationEvidenceEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceNEQ applies the NEQ predicate on the "implementation_evidence" field. +func ImplementationEvidenceNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceIn applies the In predicate on the "implementation_evidence" field. +func ImplementationEvidenceIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldImplementationEvidence, vs...)) +} + +// ImplementationEvidenceNotIn applies the NotIn predicate on the "implementation_evidence" field. +func ImplementationEvidenceNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldImplementationEvidence, vs...)) +} + +// ImplementationEvidenceGT applies the GT predicate on the "implementation_evidence" field. +func ImplementationEvidenceGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceGTE applies the GTE predicate on the "implementation_evidence" field. +func ImplementationEvidenceGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceLT applies the LT predicate on the "implementation_evidence" field. +func ImplementationEvidenceLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceLTE applies the LTE predicate on the "implementation_evidence" field. +func ImplementationEvidenceLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceContains applies the Contains predicate on the "implementation_evidence" field. +func ImplementationEvidenceContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceHasPrefix applies the HasPrefix predicate on the "implementation_evidence" field. +func ImplementationEvidenceHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceHasSuffix applies the HasSuffix predicate on the "implementation_evidence" field. +func ImplementationEvidenceHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceIsNil applies the IsNil predicate on the "implementation_evidence" field. +func ImplementationEvidenceIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldImplementationEvidence)) +} + +// ImplementationEvidenceNotNil applies the NotNil predicate on the "implementation_evidence" field. +func ImplementationEvidenceNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldImplementationEvidence)) +} + +// ImplementationEvidenceEqualFold applies the EqualFold predicate on the "implementation_evidence" field. +func ImplementationEvidenceEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceContainsFold applies the ContainsFold predicate on the "implementation_evidence" field. +func ImplementationEvidenceContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldImplementationEvidence, v)) +} + +// ImplementationStatusEQ applies the EQ predicate on the "implementation_status" field. +func ImplementationStatusEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldImplementationStatus, v)) +} + +// ImplementationStatusNEQ applies the NEQ predicate on the "implementation_status" field. +func ImplementationStatusNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldImplementationStatus, v)) +} + +// ImplementationStatusIn applies the In predicate on the "implementation_status" field. +func ImplementationStatusIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldImplementationStatus, vs...)) +} + +// ImplementationStatusNotIn applies the NotIn predicate on the "implementation_status" field. +func ImplementationStatusNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldImplementationStatus, vs...)) +} + +// ImplementationStatusGT applies the GT predicate on the "implementation_status" field. +func ImplementationStatusGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldImplementationStatus, v)) +} + +// ImplementationStatusGTE applies the GTE predicate on the "implementation_status" field. +func ImplementationStatusGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldImplementationStatus, v)) +} + +// ImplementationStatusLT applies the LT predicate on the "implementation_status" field. +func ImplementationStatusLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldImplementationStatus, v)) +} + +// ImplementationStatusLTE applies the LTE predicate on the "implementation_status" field. +func ImplementationStatusLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldImplementationStatus, v)) +} + +// ImplementationStatusContains applies the Contains predicate on the "implementation_status" field. +func ImplementationStatusContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldImplementationStatus, v)) +} + +// ImplementationStatusHasPrefix applies the HasPrefix predicate on the "implementation_status" field. +func ImplementationStatusHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldImplementationStatus, v)) +} + +// ImplementationStatusHasSuffix applies the HasSuffix predicate on the "implementation_status" field. +func ImplementationStatusHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldImplementationStatus, v)) +} + +// ImplementationStatusIsNil applies the IsNil predicate on the "implementation_status" field. +func ImplementationStatusIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldImplementationStatus)) +} + +// ImplementationStatusNotNil applies the NotNil predicate on the "implementation_status" field. +func ImplementationStatusNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldImplementationStatus)) +} + +// ImplementationStatusEqualFold applies the EqualFold predicate on the "implementation_status" field. +func ImplementationStatusEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldImplementationStatus, v)) +} + +// ImplementationStatusContainsFold applies the ContainsFold predicate on the "implementation_status" field. +func ImplementationStatusContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldImplementationStatus, v)) +} + +// ImplementationDateEQ applies the EQ predicate on the "implementation_date" field. +func ImplementationDateEQ(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldImplementationDate, v)) +} + +// ImplementationDateNEQ applies the NEQ predicate on the "implementation_date" field. +func ImplementationDateNEQ(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldImplementationDate, v)) +} + +// ImplementationDateIn applies the In predicate on the "implementation_date" field. +func ImplementationDateIn(vs ...time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldImplementationDate, vs...)) +} + +// ImplementationDateNotIn applies the NotIn predicate on the "implementation_date" field. +func ImplementationDateNotIn(vs ...time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldImplementationDate, vs...)) +} + +// ImplementationDateGT applies the GT predicate on the "implementation_date" field. +func ImplementationDateGT(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldImplementationDate, v)) +} + +// ImplementationDateGTE applies the GTE predicate on the "implementation_date" field. +func ImplementationDateGTE(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldImplementationDate, v)) +} + +// ImplementationDateLT applies the LT predicate on the "implementation_date" field. +func ImplementationDateLT(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldImplementationDate, v)) +} + +// ImplementationDateLTE applies the LTE predicate on the "implementation_date" field. +func ImplementationDateLTE(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldImplementationDate, v)) +} + +// ImplementationDateIsNil applies the IsNil predicate on the "implementation_date" field. +func ImplementationDateIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldImplementationDate)) +} + +// ImplementationDateNotNil applies the NotNil predicate on the "implementation_date" field. +func ImplementationDateNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldImplementationDate)) +} + +// ImplementationVerificationEQ applies the EQ predicate on the "implementation_verification" field. +func ImplementationVerificationEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldImplementationVerification, v)) +} + +// ImplementationVerificationNEQ applies the NEQ predicate on the "implementation_verification" field. +func ImplementationVerificationNEQ(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldImplementationVerification, v)) +} + +// ImplementationVerificationIn applies the In predicate on the "implementation_verification" field. +func ImplementationVerificationIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldImplementationVerification, vs...)) +} + +// ImplementationVerificationNotIn applies the NotIn predicate on the "implementation_verification" field. +func ImplementationVerificationNotIn(vs ...string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldImplementationVerification, vs...)) +} + +// ImplementationVerificationGT applies the GT predicate on the "implementation_verification" field. +func ImplementationVerificationGT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldImplementationVerification, v)) +} + +// ImplementationVerificationGTE applies the GTE predicate on the "implementation_verification" field. +func ImplementationVerificationGTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldImplementationVerification, v)) +} + +// ImplementationVerificationLT applies the LT predicate on the "implementation_verification" field. +func ImplementationVerificationLT(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldImplementationVerification, v)) +} + +// ImplementationVerificationLTE applies the LTE predicate on the "implementation_verification" field. +func ImplementationVerificationLTE(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldImplementationVerification, v)) +} + +// ImplementationVerificationContains applies the Contains predicate on the "implementation_verification" field. +func ImplementationVerificationContains(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContains(FieldImplementationVerification, v)) +} + +// ImplementationVerificationHasPrefix applies the HasPrefix predicate on the "implementation_verification" field. +func ImplementationVerificationHasPrefix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasPrefix(FieldImplementationVerification, v)) +} + +// ImplementationVerificationHasSuffix applies the HasSuffix predicate on the "implementation_verification" field. +func ImplementationVerificationHasSuffix(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldHasSuffix(FieldImplementationVerification, v)) +} + +// ImplementationVerificationIsNil applies the IsNil predicate on the "implementation_verification" field. +func ImplementationVerificationIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldImplementationVerification)) +} + +// ImplementationVerificationNotNil applies the NotNil predicate on the "implementation_verification" field. +func ImplementationVerificationNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldImplementationVerification)) +} + +// ImplementationVerificationEqualFold applies the EqualFold predicate on the "implementation_verification" field. +func ImplementationVerificationEqualFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEqualFold(FieldImplementationVerification, v)) +} + +// ImplementationVerificationContainsFold applies the ContainsFold predicate on the "implementation_verification" field. +func ImplementationVerificationContainsFold(v string) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldContainsFold(FieldImplementationVerification, v)) +} + +// ImplementationVerificationDateEQ applies the EQ predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateEQ(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldEQ(FieldImplementationVerificationDate, v)) +} + +// ImplementationVerificationDateNEQ applies the NEQ predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateNEQ(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNEQ(FieldImplementationVerificationDate, v)) +} + +// ImplementationVerificationDateIn applies the In predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateIn(vs ...time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIn(FieldImplementationVerificationDate, vs...)) +} + +// ImplementationVerificationDateNotIn applies the NotIn predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateNotIn(vs ...time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotIn(FieldImplementationVerificationDate, vs...)) +} + +// ImplementationVerificationDateGT applies the GT predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateGT(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGT(FieldImplementationVerificationDate, v)) +} + +// ImplementationVerificationDateGTE applies the GTE predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateGTE(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldGTE(FieldImplementationVerificationDate, v)) +} + +// ImplementationVerificationDateLT applies the LT predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateLT(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLT(FieldImplementationVerificationDate, v)) +} + +// ImplementationVerificationDateLTE applies the LTE predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateLTE(v time.Time) predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldLTE(FieldImplementationVerificationDate, v)) +} + +// ImplementationVerificationDateIsNil applies the IsNil predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldImplementationVerificationDate)) +} + +// ImplementationVerificationDateNotNil applies the NotNil predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldImplementationVerificationDate)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.Subcontrol { + return predicate.Subcontrol(sql.FieldNotNull(FieldDetails)) +} + +// HasControl applies the HasEdge predicate on the "control" edge. +func HasControl() predicate.Subcontrol { + return predicate.Subcontrol(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, ControlTable, ControlPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlSubcontrols + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasControlWith applies the HasEdge predicate on the "control" edge with a given conditions (other predicates). +func HasControlWith(preds ...predicate.Control) predicate.Subcontrol { + return predicate.Subcontrol(func(s *sql.Selector) { + step := newControlStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlSubcontrols + 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.Subcontrol { + return predicate.Subcontrol(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, UserTable, UserPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.UserSubcontrols + 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.Subcontrol { + return predicate.Subcontrol(func(s *sql.Selector) { + step := newUserStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.UserSubcontrols + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasNotes applies the HasEdge predicate on the "notes" edge. +func HasNotes() predicate.Subcontrol { + return predicate.Subcontrol(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, NotesTable, NotesColumn), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Note + step.Edge.Schema = schemaConfig.Subcontrol + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasNotesWith applies the HasEdge predicate on the "notes" edge with a given conditions (other predicates). +func HasNotesWith(preds ...predicate.Note) predicate.Subcontrol { + return predicate.Subcontrol(func(s *sql.Selector) { + step := newNotesStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Note + step.Edge.Schema = schemaConfig.Subcontrol + 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.Subcontrol) predicate.Subcontrol { + return predicate.Subcontrol(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.Subcontrol) predicate.Subcontrol { + return predicate.Subcontrol(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.Subcontrol) predicate.Subcontrol { + return predicate.Subcontrol(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/subcontrol_create.go b/internal/ent/generated/subcontrol_create.go new file mode 100644 index 00000000..4ff47c8a --- /dev/null +++ b/internal/ent/generated/subcontrol_create.go @@ -0,0 +1,750 @@ +// 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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/note" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/user" +) + +// SubcontrolCreate is the builder for creating a Subcontrol entity. +type SubcontrolCreate struct { + config + mutation *SubcontrolMutation + hooks []Hook +} + +// SetCreatedAt sets the "created_at" field. +func (sc *SubcontrolCreate) SetCreatedAt(t time.Time) *SubcontrolCreate { + sc.mutation.SetCreatedAt(t) + return sc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableCreatedAt(t *time.Time) *SubcontrolCreate { + if t != nil { + sc.SetCreatedAt(*t) + } + return sc +} + +// SetUpdatedAt sets the "updated_at" field. +func (sc *SubcontrolCreate) SetUpdatedAt(t time.Time) *SubcontrolCreate { + sc.mutation.SetUpdatedAt(t) + return sc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableUpdatedAt(t *time.Time) *SubcontrolCreate { + if t != nil { + sc.SetUpdatedAt(*t) + } + return sc +} + +// SetCreatedBy sets the "created_by" field. +func (sc *SubcontrolCreate) SetCreatedBy(s string) *SubcontrolCreate { + sc.mutation.SetCreatedBy(s) + return sc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableCreatedBy(s *string) *SubcontrolCreate { + if s != nil { + sc.SetCreatedBy(*s) + } + return sc +} + +// SetUpdatedBy sets the "updated_by" field. +func (sc *SubcontrolCreate) SetUpdatedBy(s string) *SubcontrolCreate { + sc.mutation.SetUpdatedBy(s) + return sc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableUpdatedBy(s *string) *SubcontrolCreate { + if s != nil { + sc.SetUpdatedBy(*s) + } + return sc +} + +// SetDeletedAt sets the "deleted_at" field. +func (sc *SubcontrolCreate) SetDeletedAt(t time.Time) *SubcontrolCreate { + sc.mutation.SetDeletedAt(t) + return sc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableDeletedAt(t *time.Time) *SubcontrolCreate { + if t != nil { + sc.SetDeletedAt(*t) + } + return sc +} + +// SetDeletedBy sets the "deleted_by" field. +func (sc *SubcontrolCreate) SetDeletedBy(s string) *SubcontrolCreate { + sc.mutation.SetDeletedBy(s) + return sc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableDeletedBy(s *string) *SubcontrolCreate { + if s != nil { + sc.SetDeletedBy(*s) + } + return sc +} + +// SetMappingID sets the "mapping_id" field. +func (sc *SubcontrolCreate) SetMappingID(s string) *SubcontrolCreate { + sc.mutation.SetMappingID(s) + return sc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableMappingID(s *string) *SubcontrolCreate { + if s != nil { + sc.SetMappingID(*s) + } + return sc +} + +// SetTags sets the "tags" field. +func (sc *SubcontrolCreate) SetTags(s []string) *SubcontrolCreate { + sc.mutation.SetTags(s) + return sc +} + +// SetName sets the "name" field. +func (sc *SubcontrolCreate) SetName(s string) *SubcontrolCreate { + sc.mutation.SetName(s) + return sc +} + +// SetDescription sets the "description" field. +func (sc *SubcontrolCreate) SetDescription(s string) *SubcontrolCreate { + sc.mutation.SetDescription(s) + return sc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableDescription(s *string) *SubcontrolCreate { + if s != nil { + sc.SetDescription(*s) + } + return sc +} + +// SetStatus sets the "status" field. +func (sc *SubcontrolCreate) SetStatus(s string) *SubcontrolCreate { + sc.mutation.SetStatus(s) + return sc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableStatus(s *string) *SubcontrolCreate { + if s != nil { + sc.SetStatus(*s) + } + return sc +} + +// SetSubcontrolType sets the "subcontrol_type" field. +func (sc *SubcontrolCreate) SetSubcontrolType(s string) *SubcontrolCreate { + sc.mutation.SetSubcontrolType(s) + return sc +} + +// SetNillableSubcontrolType sets the "subcontrol_type" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableSubcontrolType(s *string) *SubcontrolCreate { + if s != nil { + sc.SetSubcontrolType(*s) + } + return sc +} + +// SetVersion sets the "version" field. +func (sc *SubcontrolCreate) SetVersion(s string) *SubcontrolCreate { + sc.mutation.SetVersion(s) + return sc +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableVersion(s *string) *SubcontrolCreate { + if s != nil { + sc.SetVersion(*s) + } + return sc +} + +// SetSubcontrolNumber sets the "subcontrol_number" field. +func (sc *SubcontrolCreate) SetSubcontrolNumber(s string) *SubcontrolCreate { + sc.mutation.SetSubcontrolNumber(s) + return sc +} + +// SetNillableSubcontrolNumber sets the "subcontrol_number" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableSubcontrolNumber(s *string) *SubcontrolCreate { + if s != nil { + sc.SetSubcontrolNumber(*s) + } + return sc +} + +// SetFamily sets the "family" field. +func (sc *SubcontrolCreate) SetFamily(s string) *SubcontrolCreate { + sc.mutation.SetFamily(s) + return sc +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableFamily(s *string) *SubcontrolCreate { + if s != nil { + sc.SetFamily(*s) + } + return sc +} + +// SetClass sets the "class" field. +func (sc *SubcontrolCreate) SetClass(s string) *SubcontrolCreate { + sc.mutation.SetClass(s) + return sc +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableClass(s *string) *SubcontrolCreate { + if s != nil { + sc.SetClass(*s) + } + return sc +} + +// SetSource sets the "source" field. +func (sc *SubcontrolCreate) SetSource(s string) *SubcontrolCreate { + sc.mutation.SetSource(s) + return sc +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableSource(s *string) *SubcontrolCreate { + if s != nil { + sc.SetSource(*s) + } + return sc +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (sc *SubcontrolCreate) SetMappedFrameworks(s string) *SubcontrolCreate { + sc.mutation.SetMappedFrameworks(s) + return sc +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableMappedFrameworks(s *string) *SubcontrolCreate { + if s != nil { + sc.SetMappedFrameworks(*s) + } + return sc +} + +// SetImplementationEvidence sets the "implementation_evidence" field. +func (sc *SubcontrolCreate) SetImplementationEvidence(s string) *SubcontrolCreate { + sc.mutation.SetImplementationEvidence(s) + return sc +} + +// SetNillableImplementationEvidence sets the "implementation_evidence" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableImplementationEvidence(s *string) *SubcontrolCreate { + if s != nil { + sc.SetImplementationEvidence(*s) + } + return sc +} + +// SetImplementationStatus sets the "implementation_status" field. +func (sc *SubcontrolCreate) SetImplementationStatus(s string) *SubcontrolCreate { + sc.mutation.SetImplementationStatus(s) + return sc +} + +// SetNillableImplementationStatus sets the "implementation_status" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableImplementationStatus(s *string) *SubcontrolCreate { + if s != nil { + sc.SetImplementationStatus(*s) + } + return sc +} + +// SetImplementationDate sets the "implementation_date" field. +func (sc *SubcontrolCreate) SetImplementationDate(t time.Time) *SubcontrolCreate { + sc.mutation.SetImplementationDate(t) + return sc +} + +// SetNillableImplementationDate sets the "implementation_date" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableImplementationDate(t *time.Time) *SubcontrolCreate { + if t != nil { + sc.SetImplementationDate(*t) + } + return sc +} + +// SetImplementationVerification sets the "implementation_verification" field. +func (sc *SubcontrolCreate) SetImplementationVerification(s string) *SubcontrolCreate { + sc.mutation.SetImplementationVerification(s) + return sc +} + +// SetNillableImplementationVerification sets the "implementation_verification" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableImplementationVerification(s *string) *SubcontrolCreate { + if s != nil { + sc.SetImplementationVerification(*s) + } + return sc +} + +// SetImplementationVerificationDate sets the "implementation_verification_date" field. +func (sc *SubcontrolCreate) SetImplementationVerificationDate(t time.Time) *SubcontrolCreate { + sc.mutation.SetImplementationVerificationDate(t) + return sc +} + +// SetNillableImplementationVerificationDate sets the "implementation_verification_date" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableImplementationVerificationDate(t *time.Time) *SubcontrolCreate { + if t != nil { + sc.SetImplementationVerificationDate(*t) + } + return sc +} + +// SetDetails sets the "details" field. +func (sc *SubcontrolCreate) SetDetails(m map[string]interface{}) *SubcontrolCreate { + sc.mutation.SetDetails(m) + return sc +} + +// SetID sets the "id" field. +func (sc *SubcontrolCreate) SetID(s string) *SubcontrolCreate { + sc.mutation.SetID(s) + return sc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableID(s *string) *SubcontrolCreate { + if s != nil { + sc.SetID(*s) + } + return sc +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (sc *SubcontrolCreate) AddControlIDs(ids ...string) *SubcontrolCreate { + sc.mutation.AddControlIDs(ids...) + return sc +} + +// AddControl adds the "control" edges to the Control entity. +func (sc *SubcontrolCreate) AddControl(c ...*Control) *SubcontrolCreate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return sc.AddControlIDs(ids...) +} + +// AddUserIDs adds the "user" edge to the User entity by IDs. +func (sc *SubcontrolCreate) AddUserIDs(ids ...string) *SubcontrolCreate { + sc.mutation.AddUserIDs(ids...) + return sc +} + +// AddUser adds the "user" edges to the User entity. +func (sc *SubcontrolCreate) AddUser(u ...*User) *SubcontrolCreate { + ids := make([]string, len(u)) + for i := range u { + ids[i] = u[i].ID + } + return sc.AddUserIDs(ids...) +} + +// SetNotesID sets the "notes" edge to the Note entity by ID. +func (sc *SubcontrolCreate) SetNotesID(id string) *SubcontrolCreate { + sc.mutation.SetNotesID(id) + return sc +} + +// SetNillableNotesID sets the "notes" edge to the Note entity by ID if the given value is not nil. +func (sc *SubcontrolCreate) SetNillableNotesID(id *string) *SubcontrolCreate { + if id != nil { + sc = sc.SetNotesID(*id) + } + return sc +} + +// SetNotes sets the "notes" edge to the Note entity. +func (sc *SubcontrolCreate) SetNotes(n *Note) *SubcontrolCreate { + return sc.SetNotesID(n.ID) +} + +// Mutation returns the SubcontrolMutation object of the builder. +func (sc *SubcontrolCreate) Mutation() *SubcontrolMutation { + return sc.mutation +} + +// Save creates the Subcontrol in the database. +func (sc *SubcontrolCreate) Save(ctx context.Context) (*Subcontrol, error) { + if err := sc.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, sc.sqlSave, sc.mutation, sc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (sc *SubcontrolCreate) SaveX(ctx context.Context) *Subcontrol { + v, err := sc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (sc *SubcontrolCreate) Exec(ctx context.Context) error { + _, err := sc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (sc *SubcontrolCreate) ExecX(ctx context.Context) { + if err := sc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (sc *SubcontrolCreate) defaults() error { + if _, ok := sc.mutation.CreatedAt(); !ok { + if subcontrol.DefaultCreatedAt == nil { + return fmt.Errorf("generated: uninitialized subcontrol.DefaultCreatedAt (forgotten import generated/runtime?)") + } + v := subcontrol.DefaultCreatedAt() + sc.mutation.SetCreatedAt(v) + } + if _, ok := sc.mutation.UpdatedAt(); !ok { + if subcontrol.DefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized subcontrol.DefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := subcontrol.DefaultUpdatedAt() + sc.mutation.SetUpdatedAt(v) + } + if _, ok := sc.mutation.MappingID(); !ok { + if subcontrol.DefaultMappingID == nil { + return fmt.Errorf("generated: uninitialized subcontrol.DefaultMappingID (forgotten import generated/runtime?)") + } + v := subcontrol.DefaultMappingID() + sc.mutation.SetMappingID(v) + } + if _, ok := sc.mutation.Tags(); !ok { + v := subcontrol.DefaultTags + sc.mutation.SetTags(v) + } + if _, ok := sc.mutation.ID(); !ok { + if subcontrol.DefaultID == nil { + return fmt.Errorf("generated: uninitialized subcontrol.DefaultID (forgotten import generated/runtime?)") + } + v := subcontrol.DefaultID() + sc.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (sc *SubcontrolCreate) check() error { + if _, ok := sc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "Subcontrol.mapping_id"`)} + } + if _, ok := sc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "Subcontrol.name"`)} + } + return nil +} + +func (sc *SubcontrolCreate) sqlSave(ctx context.Context) (*Subcontrol, error) { + if err := sc.check(); err != nil { + return nil, err + } + _node, _spec := sc.createSpec() + if err := sqlgraph.CreateNode(ctx, sc.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 Subcontrol.ID type: %T", _spec.ID.Value) + } + } + sc.mutation.id = &_node.ID + sc.mutation.done = true + return _node, nil +} + +func (sc *SubcontrolCreate) createSpec() (*Subcontrol, *sqlgraph.CreateSpec) { + var ( + _node = &Subcontrol{config: sc.config} + _spec = sqlgraph.NewCreateSpec(subcontrol.Table, sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString)) + ) + _spec.Schema = sc.schemaConfig.Subcontrol + if id, ok := sc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := sc.mutation.CreatedAt(); ok { + _spec.SetField(subcontrol.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := sc.mutation.UpdatedAt(); ok { + _spec.SetField(subcontrol.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := sc.mutation.CreatedBy(); ok { + _spec.SetField(subcontrol.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := sc.mutation.UpdatedBy(); ok { + _spec.SetField(subcontrol.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := sc.mutation.DeletedAt(); ok { + _spec.SetField(subcontrol.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := sc.mutation.DeletedBy(); ok { + _spec.SetField(subcontrol.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := sc.mutation.MappingID(); ok { + _spec.SetField(subcontrol.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := sc.mutation.Tags(); ok { + _spec.SetField(subcontrol.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := sc.mutation.Name(); ok { + _spec.SetField(subcontrol.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := sc.mutation.Description(); ok { + _spec.SetField(subcontrol.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := sc.mutation.Status(); ok { + _spec.SetField(subcontrol.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := sc.mutation.SubcontrolType(); ok { + _spec.SetField(subcontrol.FieldSubcontrolType, field.TypeString, value) + _node.SubcontrolType = value + } + if value, ok := sc.mutation.Version(); ok { + _spec.SetField(subcontrol.FieldVersion, field.TypeString, value) + _node.Version = value + } + if value, ok := sc.mutation.SubcontrolNumber(); ok { + _spec.SetField(subcontrol.FieldSubcontrolNumber, field.TypeString, value) + _node.SubcontrolNumber = value + } + if value, ok := sc.mutation.Family(); ok { + _spec.SetField(subcontrol.FieldFamily, field.TypeString, value) + _node.Family = value + } + if value, ok := sc.mutation.Class(); ok { + _spec.SetField(subcontrol.FieldClass, field.TypeString, value) + _node.Class = value + } + if value, ok := sc.mutation.Source(); ok { + _spec.SetField(subcontrol.FieldSource, field.TypeString, value) + _node.Source = value + } + if value, ok := sc.mutation.MappedFrameworks(); ok { + _spec.SetField(subcontrol.FieldMappedFrameworks, field.TypeString, value) + _node.MappedFrameworks = value + } + if value, ok := sc.mutation.ImplementationEvidence(); ok { + _spec.SetField(subcontrol.FieldImplementationEvidence, field.TypeString, value) + _node.ImplementationEvidence = value + } + if value, ok := sc.mutation.ImplementationStatus(); ok { + _spec.SetField(subcontrol.FieldImplementationStatus, field.TypeString, value) + _node.ImplementationStatus = value + } + if value, ok := sc.mutation.ImplementationDate(); ok { + _spec.SetField(subcontrol.FieldImplementationDate, field.TypeTime, value) + _node.ImplementationDate = value + } + if value, ok := sc.mutation.ImplementationVerification(); ok { + _spec.SetField(subcontrol.FieldImplementationVerification, field.TypeString, value) + _node.ImplementationVerification = value + } + if value, ok := sc.mutation.ImplementationVerificationDate(); ok { + _spec.SetField(subcontrol.FieldImplementationVerificationDate, field.TypeTime, value) + _node.ImplementationVerificationDate = value + } + if value, ok := sc.mutation.Details(); ok { + _spec.SetField(subcontrol.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + if nodes := sc.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.ControlTable, + Columns: subcontrol.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = sc.schemaConfig.ControlSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := sc.mutation.UserIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.UserTable, + Columns: subcontrol.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = sc.schemaConfig.UserSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := sc.mutation.NotesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: subcontrol.NotesTable, + Columns: []string{subcontrol.NotesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(note.FieldID, field.TypeString), + }, + } + edge.Schema = sc.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _node.note_subcontrols = &nodes[0] + _spec.Edges = append(_spec.Edges, edge) + } + return _node, _spec +} + +// SubcontrolCreateBulk is the builder for creating many Subcontrol entities in bulk. +type SubcontrolCreateBulk struct { + config + err error + builders []*SubcontrolCreate +} + +// Save creates the Subcontrol entities in the database. +func (scb *SubcontrolCreateBulk) Save(ctx context.Context) ([]*Subcontrol, error) { + if scb.err != nil { + return nil, scb.err + } + specs := make([]*sqlgraph.CreateSpec, len(scb.builders)) + nodes := make([]*Subcontrol, len(scb.builders)) + mutators := make([]Mutator, len(scb.builders)) + for i := range scb.builders { + func(i int, root context.Context) { + builder := scb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*SubcontrolMutation) + 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, scb.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, scb.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, scb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (scb *SubcontrolCreateBulk) SaveX(ctx context.Context) []*Subcontrol { + v, err := scb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (scb *SubcontrolCreateBulk) Exec(ctx context.Context) error { + _, err := scb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (scb *SubcontrolCreateBulk) ExecX(ctx context.Context) { + if err := scb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/subcontrol_delete.go b/internal/ent/generated/subcontrol_delete.go new file mode 100644 index 00000000..3425019d --- /dev/null +++ b/internal/ent/generated/subcontrol_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" +) + +// SubcontrolDelete is the builder for deleting a Subcontrol entity. +type SubcontrolDelete struct { + config + hooks []Hook + mutation *SubcontrolMutation +} + +// Where appends a list predicates to the SubcontrolDelete builder. +func (sd *SubcontrolDelete) Where(ps ...predicate.Subcontrol) *SubcontrolDelete { + sd.mutation.Where(ps...) + return sd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (sd *SubcontrolDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, sd.sqlExec, sd.mutation, sd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (sd *SubcontrolDelete) ExecX(ctx context.Context) int { + n, err := sd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (sd *SubcontrolDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(subcontrol.Table, sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString)) + _spec.Node.Schema = sd.schemaConfig.Subcontrol + ctx = internal.NewSchemaConfigContext(ctx, sd.schemaConfig) + if ps := sd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, sd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + sd.mutation.done = true + return affected, err +} + +// SubcontrolDeleteOne is the builder for deleting a single Subcontrol entity. +type SubcontrolDeleteOne struct { + sd *SubcontrolDelete +} + +// Where appends a list predicates to the SubcontrolDelete builder. +func (sdo *SubcontrolDeleteOne) Where(ps ...predicate.Subcontrol) *SubcontrolDeleteOne { + sdo.sd.mutation.Where(ps...) + return sdo +} + +// Exec executes the deletion query. +func (sdo *SubcontrolDeleteOne) Exec(ctx context.Context) error { + n, err := sdo.sd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{subcontrol.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (sdo *SubcontrolDeleteOne) ExecX(ctx context.Context) { + if err := sdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/subcontrol_query.go b/internal/ent/generated/subcontrol_query.go new file mode 100644 index 00000000..7e1cac1e --- /dev/null +++ b/internal/ent/generated/subcontrol_query.go @@ -0,0 +1,918 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "database/sql/driver" + "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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/note" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/user" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// SubcontrolQuery is the builder for querying Subcontrol entities. +type SubcontrolQuery struct { + config + ctx *QueryContext + order []subcontrol.OrderOption + inters []Interceptor + predicates []predicate.Subcontrol + withControl *ControlQuery + withUser *UserQuery + withNotes *NoteQuery + withFKs bool + loadTotal []func(context.Context, []*Subcontrol) error + modifiers []func(*sql.Selector) + withNamedControl map[string]*ControlQuery + withNamedUser map[string]*UserQuery + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the SubcontrolQuery builder. +func (sq *SubcontrolQuery) Where(ps ...predicate.Subcontrol) *SubcontrolQuery { + sq.predicates = append(sq.predicates, ps...) + return sq +} + +// Limit the number of records to be returned by this query. +func (sq *SubcontrolQuery) Limit(limit int) *SubcontrolQuery { + sq.ctx.Limit = &limit + return sq +} + +// Offset to start from. +func (sq *SubcontrolQuery) Offset(offset int) *SubcontrolQuery { + sq.ctx.Offset = &offset + return sq +} + +// 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 (sq *SubcontrolQuery) Unique(unique bool) *SubcontrolQuery { + sq.ctx.Unique = &unique + return sq +} + +// Order specifies how the records should be ordered. +func (sq *SubcontrolQuery) Order(o ...subcontrol.OrderOption) *SubcontrolQuery { + sq.order = append(sq.order, o...) + return sq +} + +// QueryControl chains the current query on the "control" edge. +func (sq *SubcontrolQuery) QueryControl() *ControlQuery { + query := (&ControlClient{config: sq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := sq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := sq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(subcontrol.Table, subcontrol.FieldID, selector), + sqlgraph.To(control.Table, control.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, subcontrol.ControlTable, subcontrol.ControlPrimaryKey...), + ) + schemaConfig := sq.schemaConfig + step.To.Schema = schemaConfig.Control + step.Edge.Schema = schemaConfig.ControlSubcontrols + fromU = sqlgraph.SetNeighbors(sq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryUser chains the current query on the "user" edge. +func (sq *SubcontrolQuery) QueryUser() *UserQuery { + query := (&UserClient{config: sq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := sq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := sq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(subcontrol.Table, subcontrol.FieldID, selector), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, subcontrol.UserTable, subcontrol.UserPrimaryKey...), + ) + schemaConfig := sq.schemaConfig + step.To.Schema = schemaConfig.User + step.Edge.Schema = schemaConfig.UserSubcontrols + fromU = sqlgraph.SetNeighbors(sq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryNotes chains the current query on the "notes" edge. +func (sq *SubcontrolQuery) QueryNotes() *NoteQuery { + query := (&NoteClient{config: sq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := sq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := sq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(subcontrol.Table, subcontrol.FieldID, selector), + sqlgraph.To(note.Table, note.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, subcontrol.NotesTable, subcontrol.NotesColumn), + ) + schemaConfig := sq.schemaConfig + step.To.Schema = schemaConfig.Note + step.Edge.Schema = schemaConfig.Subcontrol + fromU = sqlgraph.SetNeighbors(sq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// First returns the first Subcontrol entity from the query. +// Returns a *NotFoundError when no Subcontrol was found. +func (sq *SubcontrolQuery) First(ctx context.Context) (*Subcontrol, error) { + nodes, err := sq.Limit(1).All(setContextOp(ctx, sq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{subcontrol.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (sq *SubcontrolQuery) FirstX(ctx context.Context) *Subcontrol { + node, err := sq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first Subcontrol ID from the query. +// Returns a *NotFoundError when no Subcontrol ID was found. +func (sq *SubcontrolQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = sq.Limit(1).IDs(setContextOp(ctx, sq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{subcontrol.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (sq *SubcontrolQuery) FirstIDX(ctx context.Context) string { + id, err := sq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single Subcontrol entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one Subcontrol entity is found. +// Returns a *NotFoundError when no Subcontrol entities are found. +func (sq *SubcontrolQuery) Only(ctx context.Context) (*Subcontrol, error) { + nodes, err := sq.Limit(2).All(setContextOp(ctx, sq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{subcontrol.Label} + default: + return nil, &NotSingularError{subcontrol.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (sq *SubcontrolQuery) OnlyX(ctx context.Context) *Subcontrol { + node, err := sq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only Subcontrol ID in the query. +// Returns a *NotSingularError when more than one Subcontrol ID is found. +// Returns a *NotFoundError when no entities are found. +func (sq *SubcontrolQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = sq.Limit(2).IDs(setContextOp(ctx, sq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{subcontrol.Label} + default: + err = &NotSingularError{subcontrol.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (sq *SubcontrolQuery) OnlyIDX(ctx context.Context) string { + id, err := sq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of Subcontrols. +func (sq *SubcontrolQuery) All(ctx context.Context) ([]*Subcontrol, error) { + ctx = setContextOp(ctx, sq.ctx, ent.OpQueryAll) + if err := sq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*Subcontrol, *SubcontrolQuery]() + return withInterceptors[[]*Subcontrol](ctx, sq, qr, sq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (sq *SubcontrolQuery) AllX(ctx context.Context) []*Subcontrol { + nodes, err := sq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of Subcontrol IDs. +func (sq *SubcontrolQuery) IDs(ctx context.Context) (ids []string, err error) { + if sq.ctx.Unique == nil && sq.path != nil { + sq.Unique(true) + } + ctx = setContextOp(ctx, sq.ctx, ent.OpQueryIDs) + if err = sq.Select(subcontrol.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (sq *SubcontrolQuery) IDsX(ctx context.Context) []string { + ids, err := sq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (sq *SubcontrolQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, sq.ctx, ent.OpQueryCount) + if err := sq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, sq, querierCount[*SubcontrolQuery](), sq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (sq *SubcontrolQuery) CountX(ctx context.Context) int { + count, err := sq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (sq *SubcontrolQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, sq.ctx, ent.OpQueryExist) + switch _, err := sq.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 (sq *SubcontrolQuery) ExistX(ctx context.Context) bool { + exist, err := sq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the SubcontrolQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (sq *SubcontrolQuery) Clone() *SubcontrolQuery { + if sq == nil { + return nil + } + return &SubcontrolQuery{ + config: sq.config, + ctx: sq.ctx.Clone(), + order: append([]subcontrol.OrderOption{}, sq.order...), + inters: append([]Interceptor{}, sq.inters...), + predicates: append([]predicate.Subcontrol{}, sq.predicates...), + withControl: sq.withControl.Clone(), + withUser: sq.withUser.Clone(), + withNotes: sq.withNotes.Clone(), + // clone intermediate query. + sql: sq.sql.Clone(), + path: sq.path, + modifiers: append([]func(*sql.Selector){}, sq.modifiers...), + } +} + +// WithControl tells the query-builder to eager-load the nodes that are connected to +// the "control" edge. The optional arguments are used to configure the query builder of the edge. +func (sq *SubcontrolQuery) WithControl(opts ...func(*ControlQuery)) *SubcontrolQuery { + query := (&ControlClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + sq.withControl = query + return sq +} + +// 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 (sq *SubcontrolQuery) WithUser(opts ...func(*UserQuery)) *SubcontrolQuery { + query := (&UserClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + sq.withUser = query + return sq +} + +// WithNotes tells the query-builder to eager-load the nodes that are connected to +// the "notes" edge. The optional arguments are used to configure the query builder of the edge. +func (sq *SubcontrolQuery) WithNotes(opts ...func(*NoteQuery)) *SubcontrolQuery { + query := (&NoteClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + sq.withNotes = query + return sq +} + +// 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.Subcontrol.Query(). +// GroupBy(subcontrol.FieldCreatedAt). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (sq *SubcontrolQuery) GroupBy(field string, fields ...string) *SubcontrolGroupBy { + sq.ctx.Fields = append([]string{field}, fields...) + grbuild := &SubcontrolGroupBy{build: sq} + grbuild.flds = &sq.ctx.Fields + grbuild.label = subcontrol.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.Subcontrol.Query(). +// Select(subcontrol.FieldCreatedAt). +// Scan(ctx, &v) +func (sq *SubcontrolQuery) Select(fields ...string) *SubcontrolSelect { + sq.ctx.Fields = append(sq.ctx.Fields, fields...) + sbuild := &SubcontrolSelect{SubcontrolQuery: sq} + sbuild.label = subcontrol.Label + sbuild.flds, sbuild.scan = &sq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a SubcontrolSelect configured with the given aggregations. +func (sq *SubcontrolQuery) Aggregate(fns ...AggregateFunc) *SubcontrolSelect { + return sq.Select().Aggregate(fns...) +} + +func (sq *SubcontrolQuery) prepareQuery(ctx context.Context) error { + for _, inter := range sq.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, sq); err != nil { + return err + } + } + } + for _, f := range sq.ctx.Fields { + if !subcontrol.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if sq.path != nil { + prev, err := sq.path(ctx) + if err != nil { + return err + } + sq.sql = prev + } + return nil +} + +func (sq *SubcontrolQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Subcontrol, error) { + var ( + nodes = []*Subcontrol{} + withFKs = sq.withFKs + _spec = sq.querySpec() + loadedTypes = [3]bool{ + sq.withControl != nil, + sq.withUser != nil, + sq.withNotes != nil, + } + ) + if sq.withNotes != nil { + withFKs = true + } + if withFKs { + _spec.Node.Columns = append(_spec.Node.Columns, subcontrol.ForeignKeys...) + } + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*Subcontrol).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &Subcontrol{config: sq.config} + nodes = append(nodes, node) + node.Edges.loadedTypes = loadedTypes + return node.assignValues(columns, values) + } + _spec.Node.Schema = sq.schemaConfig.Subcontrol + ctx = internal.NewSchemaConfigContext(ctx, sq.schemaConfig) + if len(sq.modifiers) > 0 { + _spec.Modifiers = sq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, sq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + if query := sq.withControl; query != nil { + if err := sq.loadControl(ctx, query, nodes, + func(n *Subcontrol) { n.Edges.Control = []*Control{} }, + func(n *Subcontrol, e *Control) { n.Edges.Control = append(n.Edges.Control, e) }); err != nil { + return nil, err + } + } + if query := sq.withUser; query != nil { + if err := sq.loadUser(ctx, query, nodes, + func(n *Subcontrol) { n.Edges.User = []*User{} }, + func(n *Subcontrol, e *User) { n.Edges.User = append(n.Edges.User, e) }); err != nil { + return nil, err + } + } + if query := sq.withNotes; query != nil { + if err := sq.loadNotes(ctx, query, nodes, nil, + func(n *Subcontrol, e *Note) { n.Edges.Notes = e }); err != nil { + return nil, err + } + } + for name, query := range sq.withNamedControl { + if err := sq.loadControl(ctx, query, nodes, + func(n *Subcontrol) { n.appendNamedControl(name) }, + func(n *Subcontrol, e *Control) { n.appendNamedControl(name, e) }); err != nil { + return nil, err + } + } + for name, query := range sq.withNamedUser { + if err := sq.loadUser(ctx, query, nodes, + func(n *Subcontrol) { n.appendNamedUser(name) }, + func(n *Subcontrol, e *User) { n.appendNamedUser(name, e) }); err != nil { + return nil, err + } + } + for i := range sq.loadTotal { + if err := sq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (sq *SubcontrolQuery) loadControl(ctx context.Context, query *ControlQuery, nodes []*Subcontrol, init func(*Subcontrol), assign func(*Subcontrol, *Control)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Subcontrol) + nids := make(map[string]map[*Subcontrol]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(subcontrol.ControlTable) + joinT.Schema(sq.schemaConfig.ControlSubcontrols) + s.Join(joinT).On(s.C(control.FieldID), joinT.C(subcontrol.ControlPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(subcontrol.ControlPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(subcontrol.ControlPrimaryKey[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[*Subcontrol]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Control](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 "control" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (sq *SubcontrolQuery) loadUser(ctx context.Context, query *UserQuery, nodes []*Subcontrol, init func(*Subcontrol), assign func(*Subcontrol, *User)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Subcontrol) + nids := make(map[string]map[*Subcontrol]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(subcontrol.UserTable) + joinT.Schema(sq.schemaConfig.UserSubcontrols) + s.Join(joinT).On(s.C(user.FieldID), joinT.C(subcontrol.UserPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(subcontrol.UserPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(subcontrol.UserPrimaryKey[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[*Subcontrol]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*User](ctx, query, qr, query.inters) + if err != nil { + return err + } + for _, n := range neighbors { + nodes, ok := nids[n.ID] + if !ok { + return fmt.Errorf(`unexpected "user" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (sq *SubcontrolQuery) loadNotes(ctx context.Context, query *NoteQuery, nodes []*Subcontrol, init func(*Subcontrol), assign func(*Subcontrol, *Note)) error { + ids := make([]string, 0, len(nodes)) + nodeids := make(map[string][]*Subcontrol) + for i := range nodes { + if nodes[i].note_subcontrols == nil { + continue + } + fk := *nodes[i].note_subcontrols + if _, ok := nodeids[fk]; !ok { + ids = append(ids, fk) + } + nodeids[fk] = append(nodeids[fk], nodes[i]) + } + if len(ids) == 0 { + return nil + } + query.Where(note.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 "note_subcontrols" returned %v`, n.ID) + } + for i := range nodes { + assign(nodes[i], n) + } + } + return nil +} + +func (sq *SubcontrolQuery) sqlCount(ctx context.Context) (int, error) { + _spec := sq.querySpec() + _spec.Node.Schema = sq.schemaConfig.Subcontrol + ctx = internal.NewSchemaConfigContext(ctx, sq.schemaConfig) + if len(sq.modifiers) > 0 { + _spec.Modifiers = sq.modifiers + } + _spec.Node.Columns = sq.ctx.Fields + if len(sq.ctx.Fields) > 0 { + _spec.Unique = sq.ctx.Unique != nil && *sq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, sq.driver, _spec) +} + +func (sq *SubcontrolQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(subcontrol.Table, subcontrol.Columns, sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString)) + _spec.From = sq.sql + if unique := sq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if sq.path != nil { + _spec.Unique = true + } + if fields := sq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, subcontrol.FieldID) + for i := range fields { + if fields[i] != subcontrol.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := sq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := sq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := sq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := sq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (sq *SubcontrolQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(sq.driver.Dialect()) + t1 := builder.Table(subcontrol.Table) + columns := sq.ctx.Fields + if len(columns) == 0 { + columns = subcontrol.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if sq.sql != nil { + selector = sq.sql + selector.Select(selector.Columns(columns...)...) + } + if sq.ctx.Unique != nil && *sq.ctx.Unique { + selector.Distinct() + } + t1.Schema(sq.schemaConfig.Subcontrol) + ctx = internal.NewSchemaConfigContext(ctx, sq.schemaConfig) + selector.WithContext(ctx) + for _, m := range sq.modifiers { + m(selector) + } + for _, p := range sq.predicates { + p(selector) + } + for _, p := range sq.order { + p(selector) + } + if offset := sq.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 := sq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (sq *SubcontrolQuery) Modify(modifiers ...func(s *sql.Selector)) *SubcontrolSelect { + sq.modifiers = append(sq.modifiers, modifiers...) + return sq.Select() +} + +// WithNamedControl tells the query-builder to eager-load the nodes that are connected to the "control" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (sq *SubcontrolQuery) WithNamedControl(name string, opts ...func(*ControlQuery)) *SubcontrolQuery { + query := (&ControlClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + if sq.withNamedControl == nil { + sq.withNamedControl = make(map[string]*ControlQuery) + } + sq.withNamedControl[name] = query + return sq +} + +// WithNamedUser tells the query-builder to eager-load the nodes that are connected to the "user" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (sq *SubcontrolQuery) WithNamedUser(name string, opts ...func(*UserQuery)) *SubcontrolQuery { + query := (&UserClient{config: sq.config}).Query() + for _, opt := range opts { + opt(query) + } + if sq.withNamedUser == nil { + sq.withNamedUser = make(map[string]*UserQuery) + } + sq.withNamedUser[name] = query + return sq +} + +// SubcontrolGroupBy is the group-by builder for Subcontrol entities. +type SubcontrolGroupBy struct { + selector + build *SubcontrolQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (sgb *SubcontrolGroupBy) Aggregate(fns ...AggregateFunc) *SubcontrolGroupBy { + sgb.fns = append(sgb.fns, fns...) + return sgb +} + +// Scan applies the selector query and scans the result into the given value. +func (sgb *SubcontrolGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, sgb.build.ctx, ent.OpQueryGroupBy) + if err := sgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*SubcontrolQuery, *SubcontrolGroupBy](ctx, sgb.build, sgb, sgb.build.inters, v) +} + +func (sgb *SubcontrolGroupBy) sqlScan(ctx context.Context, root *SubcontrolQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(sgb.fns)) + for _, fn := range sgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*sgb.flds)+len(sgb.fns)) + for _, f := range *sgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*sgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := sgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// SubcontrolSelect is the builder for selecting fields of Subcontrol entities. +type SubcontrolSelect struct { + *SubcontrolQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (ss *SubcontrolSelect) Aggregate(fns ...AggregateFunc) *SubcontrolSelect { + ss.fns = append(ss.fns, fns...) + return ss +} + +// Scan applies the selector query and scans the result into the given value. +func (ss *SubcontrolSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, ss.ctx, ent.OpQuerySelect) + if err := ss.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*SubcontrolQuery, *SubcontrolSelect](ctx, ss.SubcontrolQuery, ss, ss.inters, v) +} + +func (ss *SubcontrolSelect) sqlScan(ctx context.Context, root *SubcontrolQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(ss.fns)) + for _, fn := range ss.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*ss.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 := ss.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 (ss *SubcontrolSelect) Modify(modifiers ...func(s *sql.Selector)) *SubcontrolSelect { + ss.modifiers = append(ss.modifiers, modifiers...) + return ss +} diff --git a/internal/ent/generated/subcontrol_update.go b/internal/ent/generated/subcontrol_update.go new file mode 100644 index 00000000..fd528f11 --- /dev/null +++ b/internal/ent/generated/subcontrol_update.go @@ -0,0 +1,1740 @@ +// 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/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/note" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" + "github.com/theopenlane/core/internal/ent/generated/user" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// SubcontrolUpdate is the builder for updating Subcontrol entities. +type SubcontrolUpdate struct { + config + hooks []Hook + mutation *SubcontrolMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the SubcontrolUpdate builder. +func (su *SubcontrolUpdate) Where(ps ...predicate.Subcontrol) *SubcontrolUpdate { + su.mutation.Where(ps...) + return su +} + +// SetUpdatedAt sets the "updated_at" field. +func (su *SubcontrolUpdate) SetUpdatedAt(t time.Time) *SubcontrolUpdate { + su.mutation.SetUpdatedAt(t) + return su +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (su *SubcontrolUpdate) ClearUpdatedAt() *SubcontrolUpdate { + su.mutation.ClearUpdatedAt() + return su +} + +// SetUpdatedBy sets the "updated_by" field. +func (su *SubcontrolUpdate) SetUpdatedBy(s string) *SubcontrolUpdate { + su.mutation.SetUpdatedBy(s) + return su +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableUpdatedBy(s *string) *SubcontrolUpdate { + if s != nil { + su.SetUpdatedBy(*s) + } + return su +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (su *SubcontrolUpdate) ClearUpdatedBy() *SubcontrolUpdate { + su.mutation.ClearUpdatedBy() + return su +} + +// SetDeletedAt sets the "deleted_at" field. +func (su *SubcontrolUpdate) SetDeletedAt(t time.Time) *SubcontrolUpdate { + su.mutation.SetDeletedAt(t) + return su +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableDeletedAt(t *time.Time) *SubcontrolUpdate { + if t != nil { + su.SetDeletedAt(*t) + } + return su +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (su *SubcontrolUpdate) ClearDeletedAt() *SubcontrolUpdate { + su.mutation.ClearDeletedAt() + return su +} + +// SetDeletedBy sets the "deleted_by" field. +func (su *SubcontrolUpdate) SetDeletedBy(s string) *SubcontrolUpdate { + su.mutation.SetDeletedBy(s) + return su +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableDeletedBy(s *string) *SubcontrolUpdate { + if s != nil { + su.SetDeletedBy(*s) + } + return su +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (su *SubcontrolUpdate) ClearDeletedBy() *SubcontrolUpdate { + su.mutation.ClearDeletedBy() + return su +} + +// SetTags sets the "tags" field. +func (su *SubcontrolUpdate) SetTags(s []string) *SubcontrolUpdate { + su.mutation.SetTags(s) + return su +} + +// AppendTags appends s to the "tags" field. +func (su *SubcontrolUpdate) AppendTags(s []string) *SubcontrolUpdate { + su.mutation.AppendTags(s) + return su +} + +// ClearTags clears the value of the "tags" field. +func (su *SubcontrolUpdate) ClearTags() *SubcontrolUpdate { + su.mutation.ClearTags() + return su +} + +// SetName sets the "name" field. +func (su *SubcontrolUpdate) SetName(s string) *SubcontrolUpdate { + su.mutation.SetName(s) + return su +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableName(s *string) *SubcontrolUpdate { + if s != nil { + su.SetName(*s) + } + return su +} + +// SetDescription sets the "description" field. +func (su *SubcontrolUpdate) SetDescription(s string) *SubcontrolUpdate { + su.mutation.SetDescription(s) + return su +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableDescription(s *string) *SubcontrolUpdate { + if s != nil { + su.SetDescription(*s) + } + return su +} + +// ClearDescription clears the value of the "description" field. +func (su *SubcontrolUpdate) ClearDescription() *SubcontrolUpdate { + su.mutation.ClearDescription() + return su +} + +// SetStatus sets the "status" field. +func (su *SubcontrolUpdate) SetStatus(s string) *SubcontrolUpdate { + su.mutation.SetStatus(s) + return su +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableStatus(s *string) *SubcontrolUpdate { + if s != nil { + su.SetStatus(*s) + } + return su +} + +// ClearStatus clears the value of the "status" field. +func (su *SubcontrolUpdate) ClearStatus() *SubcontrolUpdate { + su.mutation.ClearStatus() + return su +} + +// SetSubcontrolType sets the "subcontrol_type" field. +func (su *SubcontrolUpdate) SetSubcontrolType(s string) *SubcontrolUpdate { + su.mutation.SetSubcontrolType(s) + return su +} + +// SetNillableSubcontrolType sets the "subcontrol_type" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableSubcontrolType(s *string) *SubcontrolUpdate { + if s != nil { + su.SetSubcontrolType(*s) + } + return su +} + +// ClearSubcontrolType clears the value of the "subcontrol_type" field. +func (su *SubcontrolUpdate) ClearSubcontrolType() *SubcontrolUpdate { + su.mutation.ClearSubcontrolType() + return su +} + +// SetVersion sets the "version" field. +func (su *SubcontrolUpdate) SetVersion(s string) *SubcontrolUpdate { + su.mutation.SetVersion(s) + return su +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableVersion(s *string) *SubcontrolUpdate { + if s != nil { + su.SetVersion(*s) + } + return su +} + +// ClearVersion clears the value of the "version" field. +func (su *SubcontrolUpdate) ClearVersion() *SubcontrolUpdate { + su.mutation.ClearVersion() + return su +} + +// SetSubcontrolNumber sets the "subcontrol_number" field. +func (su *SubcontrolUpdate) SetSubcontrolNumber(s string) *SubcontrolUpdate { + su.mutation.SetSubcontrolNumber(s) + return su +} + +// SetNillableSubcontrolNumber sets the "subcontrol_number" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableSubcontrolNumber(s *string) *SubcontrolUpdate { + if s != nil { + su.SetSubcontrolNumber(*s) + } + return su +} + +// ClearSubcontrolNumber clears the value of the "subcontrol_number" field. +func (su *SubcontrolUpdate) ClearSubcontrolNumber() *SubcontrolUpdate { + su.mutation.ClearSubcontrolNumber() + return su +} + +// SetFamily sets the "family" field. +func (su *SubcontrolUpdate) SetFamily(s string) *SubcontrolUpdate { + su.mutation.SetFamily(s) + return su +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableFamily(s *string) *SubcontrolUpdate { + if s != nil { + su.SetFamily(*s) + } + return su +} + +// ClearFamily clears the value of the "family" field. +func (su *SubcontrolUpdate) ClearFamily() *SubcontrolUpdate { + su.mutation.ClearFamily() + return su +} + +// SetClass sets the "class" field. +func (su *SubcontrolUpdate) SetClass(s string) *SubcontrolUpdate { + su.mutation.SetClass(s) + return su +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableClass(s *string) *SubcontrolUpdate { + if s != nil { + su.SetClass(*s) + } + return su +} + +// ClearClass clears the value of the "class" field. +func (su *SubcontrolUpdate) ClearClass() *SubcontrolUpdate { + su.mutation.ClearClass() + return su +} + +// SetSource sets the "source" field. +func (su *SubcontrolUpdate) SetSource(s string) *SubcontrolUpdate { + su.mutation.SetSource(s) + return su +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableSource(s *string) *SubcontrolUpdate { + if s != nil { + su.SetSource(*s) + } + return su +} + +// ClearSource clears the value of the "source" field. +func (su *SubcontrolUpdate) ClearSource() *SubcontrolUpdate { + su.mutation.ClearSource() + return su +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (su *SubcontrolUpdate) SetMappedFrameworks(s string) *SubcontrolUpdate { + su.mutation.SetMappedFrameworks(s) + return su +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableMappedFrameworks(s *string) *SubcontrolUpdate { + if s != nil { + su.SetMappedFrameworks(*s) + } + return su +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (su *SubcontrolUpdate) ClearMappedFrameworks() *SubcontrolUpdate { + su.mutation.ClearMappedFrameworks() + return su +} + +// SetImplementationEvidence sets the "implementation_evidence" field. +func (su *SubcontrolUpdate) SetImplementationEvidence(s string) *SubcontrolUpdate { + su.mutation.SetImplementationEvidence(s) + return su +} + +// SetNillableImplementationEvidence sets the "implementation_evidence" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableImplementationEvidence(s *string) *SubcontrolUpdate { + if s != nil { + su.SetImplementationEvidence(*s) + } + return su +} + +// ClearImplementationEvidence clears the value of the "implementation_evidence" field. +func (su *SubcontrolUpdate) ClearImplementationEvidence() *SubcontrolUpdate { + su.mutation.ClearImplementationEvidence() + return su +} + +// SetImplementationStatus sets the "implementation_status" field. +func (su *SubcontrolUpdate) SetImplementationStatus(s string) *SubcontrolUpdate { + su.mutation.SetImplementationStatus(s) + return su +} + +// SetNillableImplementationStatus sets the "implementation_status" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableImplementationStatus(s *string) *SubcontrolUpdate { + if s != nil { + su.SetImplementationStatus(*s) + } + return su +} + +// ClearImplementationStatus clears the value of the "implementation_status" field. +func (su *SubcontrolUpdate) ClearImplementationStatus() *SubcontrolUpdate { + su.mutation.ClearImplementationStatus() + return su +} + +// SetImplementationDate sets the "implementation_date" field. +func (su *SubcontrolUpdate) SetImplementationDate(t time.Time) *SubcontrolUpdate { + su.mutation.SetImplementationDate(t) + return su +} + +// SetNillableImplementationDate sets the "implementation_date" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableImplementationDate(t *time.Time) *SubcontrolUpdate { + if t != nil { + su.SetImplementationDate(*t) + } + return su +} + +// ClearImplementationDate clears the value of the "implementation_date" field. +func (su *SubcontrolUpdate) ClearImplementationDate() *SubcontrolUpdate { + su.mutation.ClearImplementationDate() + return su +} + +// SetImplementationVerification sets the "implementation_verification" field. +func (su *SubcontrolUpdate) SetImplementationVerification(s string) *SubcontrolUpdate { + su.mutation.SetImplementationVerification(s) + return su +} + +// SetNillableImplementationVerification sets the "implementation_verification" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableImplementationVerification(s *string) *SubcontrolUpdate { + if s != nil { + su.SetImplementationVerification(*s) + } + return su +} + +// ClearImplementationVerification clears the value of the "implementation_verification" field. +func (su *SubcontrolUpdate) ClearImplementationVerification() *SubcontrolUpdate { + su.mutation.ClearImplementationVerification() + return su +} + +// SetImplementationVerificationDate sets the "implementation_verification_date" field. +func (su *SubcontrolUpdate) SetImplementationVerificationDate(t time.Time) *SubcontrolUpdate { + su.mutation.SetImplementationVerificationDate(t) + return su +} + +// SetNillableImplementationVerificationDate sets the "implementation_verification_date" field if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableImplementationVerificationDate(t *time.Time) *SubcontrolUpdate { + if t != nil { + su.SetImplementationVerificationDate(*t) + } + return su +} + +// ClearImplementationVerificationDate clears the value of the "implementation_verification_date" field. +func (su *SubcontrolUpdate) ClearImplementationVerificationDate() *SubcontrolUpdate { + su.mutation.ClearImplementationVerificationDate() + return su +} + +// SetDetails sets the "details" field. +func (su *SubcontrolUpdate) SetDetails(m map[string]interface{}) *SubcontrolUpdate { + su.mutation.SetDetails(m) + return su +} + +// ClearDetails clears the value of the "details" field. +func (su *SubcontrolUpdate) ClearDetails() *SubcontrolUpdate { + su.mutation.ClearDetails() + return su +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (su *SubcontrolUpdate) AddControlIDs(ids ...string) *SubcontrolUpdate { + su.mutation.AddControlIDs(ids...) + return su +} + +// AddControl adds the "control" edges to the Control entity. +func (su *SubcontrolUpdate) AddControl(c ...*Control) *SubcontrolUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return su.AddControlIDs(ids...) +} + +// AddUserIDs adds the "user" edge to the User entity by IDs. +func (su *SubcontrolUpdate) AddUserIDs(ids ...string) *SubcontrolUpdate { + su.mutation.AddUserIDs(ids...) + return su +} + +// AddUser adds the "user" edges to the User entity. +func (su *SubcontrolUpdate) AddUser(u ...*User) *SubcontrolUpdate { + ids := make([]string, len(u)) + for i := range u { + ids[i] = u[i].ID + } + return su.AddUserIDs(ids...) +} + +// SetNotesID sets the "notes" edge to the Note entity by ID. +func (su *SubcontrolUpdate) SetNotesID(id string) *SubcontrolUpdate { + su.mutation.SetNotesID(id) + return su +} + +// SetNillableNotesID sets the "notes" edge to the Note entity by ID if the given value is not nil. +func (su *SubcontrolUpdate) SetNillableNotesID(id *string) *SubcontrolUpdate { + if id != nil { + su = su.SetNotesID(*id) + } + return su +} + +// SetNotes sets the "notes" edge to the Note entity. +func (su *SubcontrolUpdate) SetNotes(n *Note) *SubcontrolUpdate { + return su.SetNotesID(n.ID) +} + +// Mutation returns the SubcontrolMutation object of the builder. +func (su *SubcontrolUpdate) Mutation() *SubcontrolMutation { + return su.mutation +} + +// ClearControl clears all "control" edges to the Control entity. +func (su *SubcontrolUpdate) ClearControl() *SubcontrolUpdate { + su.mutation.ClearControl() + return su +} + +// RemoveControlIDs removes the "control" edge to Control entities by IDs. +func (su *SubcontrolUpdate) RemoveControlIDs(ids ...string) *SubcontrolUpdate { + su.mutation.RemoveControlIDs(ids...) + return su +} + +// RemoveControl removes "control" edges to Control entities. +func (su *SubcontrolUpdate) RemoveControl(c ...*Control) *SubcontrolUpdate { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return su.RemoveControlIDs(ids...) +} + +// ClearUser clears all "user" edges to the User entity. +func (su *SubcontrolUpdate) ClearUser() *SubcontrolUpdate { + su.mutation.ClearUser() + return su +} + +// RemoveUserIDs removes the "user" edge to User entities by IDs. +func (su *SubcontrolUpdate) RemoveUserIDs(ids ...string) *SubcontrolUpdate { + su.mutation.RemoveUserIDs(ids...) + return su +} + +// RemoveUser removes "user" edges to User entities. +func (su *SubcontrolUpdate) RemoveUser(u ...*User) *SubcontrolUpdate { + ids := make([]string, len(u)) + for i := range u { + ids[i] = u[i].ID + } + return su.RemoveUserIDs(ids...) +} + +// ClearNotes clears the "notes" edge to the Note entity. +func (su *SubcontrolUpdate) ClearNotes() *SubcontrolUpdate { + su.mutation.ClearNotes() + return su +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (su *SubcontrolUpdate) Save(ctx context.Context) (int, error) { + if err := su.defaults(); err != nil { + return 0, err + } + return withHooks(ctx, su.sqlSave, su.mutation, su.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (su *SubcontrolUpdate) SaveX(ctx context.Context) int { + affected, err := su.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (su *SubcontrolUpdate) Exec(ctx context.Context) error { + _, err := su.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (su *SubcontrolUpdate) ExecX(ctx context.Context) { + if err := su.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (su *SubcontrolUpdate) defaults() error { + if _, ok := su.mutation.UpdatedAt(); !ok && !su.mutation.UpdatedAtCleared() { + if subcontrol.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized subcontrol.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := subcontrol.UpdateDefaultUpdatedAt() + su.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (su *SubcontrolUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *SubcontrolUpdate { + su.modifiers = append(su.modifiers, modifiers...) + return su +} + +func (su *SubcontrolUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(subcontrol.Table, subcontrol.Columns, sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString)) + if ps := su.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if su.mutation.CreatedAtCleared() { + _spec.ClearField(subcontrol.FieldCreatedAt, field.TypeTime) + } + if value, ok := su.mutation.UpdatedAt(); ok { + _spec.SetField(subcontrol.FieldUpdatedAt, field.TypeTime, value) + } + if su.mutation.UpdatedAtCleared() { + _spec.ClearField(subcontrol.FieldUpdatedAt, field.TypeTime) + } + if su.mutation.CreatedByCleared() { + _spec.ClearField(subcontrol.FieldCreatedBy, field.TypeString) + } + if value, ok := su.mutation.UpdatedBy(); ok { + _spec.SetField(subcontrol.FieldUpdatedBy, field.TypeString, value) + } + if su.mutation.UpdatedByCleared() { + _spec.ClearField(subcontrol.FieldUpdatedBy, field.TypeString) + } + if value, ok := su.mutation.DeletedAt(); ok { + _spec.SetField(subcontrol.FieldDeletedAt, field.TypeTime, value) + } + if su.mutation.DeletedAtCleared() { + _spec.ClearField(subcontrol.FieldDeletedAt, field.TypeTime) + } + if value, ok := su.mutation.DeletedBy(); ok { + _spec.SetField(subcontrol.FieldDeletedBy, field.TypeString, value) + } + if su.mutation.DeletedByCleared() { + _spec.ClearField(subcontrol.FieldDeletedBy, field.TypeString) + } + if value, ok := su.mutation.Tags(); ok { + _spec.SetField(subcontrol.FieldTags, field.TypeJSON, value) + } + if value, ok := su.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, subcontrol.FieldTags, value) + }) + } + if su.mutation.TagsCleared() { + _spec.ClearField(subcontrol.FieldTags, field.TypeJSON) + } + if value, ok := su.mutation.Name(); ok { + _spec.SetField(subcontrol.FieldName, field.TypeString, value) + } + if value, ok := su.mutation.Description(); ok { + _spec.SetField(subcontrol.FieldDescription, field.TypeString, value) + } + if su.mutation.DescriptionCleared() { + _spec.ClearField(subcontrol.FieldDescription, field.TypeString) + } + if value, ok := su.mutation.Status(); ok { + _spec.SetField(subcontrol.FieldStatus, field.TypeString, value) + } + if su.mutation.StatusCleared() { + _spec.ClearField(subcontrol.FieldStatus, field.TypeString) + } + if value, ok := su.mutation.SubcontrolType(); ok { + _spec.SetField(subcontrol.FieldSubcontrolType, field.TypeString, value) + } + if su.mutation.SubcontrolTypeCleared() { + _spec.ClearField(subcontrol.FieldSubcontrolType, field.TypeString) + } + if value, ok := su.mutation.Version(); ok { + _spec.SetField(subcontrol.FieldVersion, field.TypeString, value) + } + if su.mutation.VersionCleared() { + _spec.ClearField(subcontrol.FieldVersion, field.TypeString) + } + if value, ok := su.mutation.SubcontrolNumber(); ok { + _spec.SetField(subcontrol.FieldSubcontrolNumber, field.TypeString, value) + } + if su.mutation.SubcontrolNumberCleared() { + _spec.ClearField(subcontrol.FieldSubcontrolNumber, field.TypeString) + } + if value, ok := su.mutation.Family(); ok { + _spec.SetField(subcontrol.FieldFamily, field.TypeString, value) + } + if su.mutation.FamilyCleared() { + _spec.ClearField(subcontrol.FieldFamily, field.TypeString) + } + if value, ok := su.mutation.Class(); ok { + _spec.SetField(subcontrol.FieldClass, field.TypeString, value) + } + if su.mutation.ClassCleared() { + _spec.ClearField(subcontrol.FieldClass, field.TypeString) + } + if value, ok := su.mutation.Source(); ok { + _spec.SetField(subcontrol.FieldSource, field.TypeString, value) + } + if su.mutation.SourceCleared() { + _spec.ClearField(subcontrol.FieldSource, field.TypeString) + } + if value, ok := su.mutation.MappedFrameworks(); ok { + _spec.SetField(subcontrol.FieldMappedFrameworks, field.TypeString, value) + } + if su.mutation.MappedFrameworksCleared() { + _spec.ClearField(subcontrol.FieldMappedFrameworks, field.TypeString) + } + if value, ok := su.mutation.ImplementationEvidence(); ok { + _spec.SetField(subcontrol.FieldImplementationEvidence, field.TypeString, value) + } + if su.mutation.ImplementationEvidenceCleared() { + _spec.ClearField(subcontrol.FieldImplementationEvidence, field.TypeString) + } + if value, ok := su.mutation.ImplementationStatus(); ok { + _spec.SetField(subcontrol.FieldImplementationStatus, field.TypeString, value) + } + if su.mutation.ImplementationStatusCleared() { + _spec.ClearField(subcontrol.FieldImplementationStatus, field.TypeString) + } + if value, ok := su.mutation.ImplementationDate(); ok { + _spec.SetField(subcontrol.FieldImplementationDate, field.TypeTime, value) + } + if su.mutation.ImplementationDateCleared() { + _spec.ClearField(subcontrol.FieldImplementationDate, field.TypeTime) + } + if value, ok := su.mutation.ImplementationVerification(); ok { + _spec.SetField(subcontrol.FieldImplementationVerification, field.TypeString, value) + } + if su.mutation.ImplementationVerificationCleared() { + _spec.ClearField(subcontrol.FieldImplementationVerification, field.TypeString) + } + if value, ok := su.mutation.ImplementationVerificationDate(); ok { + _spec.SetField(subcontrol.FieldImplementationVerificationDate, field.TypeTime, value) + } + if su.mutation.ImplementationVerificationDateCleared() { + _spec.ClearField(subcontrol.FieldImplementationVerificationDate, field.TypeTime) + } + if value, ok := su.mutation.Details(); ok { + _spec.SetField(subcontrol.FieldDetails, field.TypeJSON, value) + } + if su.mutation.DetailsCleared() { + _spec.ClearField(subcontrol.FieldDetails, field.TypeJSON) + } + if su.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.ControlTable, + Columns: subcontrol.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.ControlSubcontrols + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.RemovedControlIDs(); len(nodes) > 0 && !su.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.ControlTable, + Columns: subcontrol.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.ControlSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.ControlTable, + Columns: subcontrol.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.ControlSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if su.mutation.UserCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.UserTable, + Columns: subcontrol.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.UserSubcontrols + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.RemovedUserIDs(); len(nodes) > 0 && !su.mutation.UserCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.UserTable, + Columns: subcontrol.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.UserSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.UserIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.UserTable, + Columns: subcontrol.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.UserSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if su.mutation.NotesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: subcontrol.NotesTable, + Columns: []string{subcontrol.NotesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(note.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.Subcontrol + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := su.mutation.NotesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: subcontrol.NotesTable, + Columns: []string{subcontrol.NotesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(note.FieldID, field.TypeString), + }, + } + edge.Schema = su.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = su.schemaConfig.Subcontrol + ctx = internal.NewSchemaConfigContext(ctx, su.schemaConfig) + _spec.AddModifiers(su.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, su.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{subcontrol.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + su.mutation.done = true + return n, nil +} + +// SubcontrolUpdateOne is the builder for updating a single Subcontrol entity. +type SubcontrolUpdateOne struct { + config + fields []string + hooks []Hook + mutation *SubcontrolMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (suo *SubcontrolUpdateOne) SetUpdatedAt(t time.Time) *SubcontrolUpdateOne { + suo.mutation.SetUpdatedAt(t) + return suo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (suo *SubcontrolUpdateOne) ClearUpdatedAt() *SubcontrolUpdateOne { + suo.mutation.ClearUpdatedAt() + return suo +} + +// SetUpdatedBy sets the "updated_by" field. +func (suo *SubcontrolUpdateOne) SetUpdatedBy(s string) *SubcontrolUpdateOne { + suo.mutation.SetUpdatedBy(s) + return suo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableUpdatedBy(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetUpdatedBy(*s) + } + return suo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (suo *SubcontrolUpdateOne) ClearUpdatedBy() *SubcontrolUpdateOne { + suo.mutation.ClearUpdatedBy() + return suo +} + +// SetDeletedAt sets the "deleted_at" field. +func (suo *SubcontrolUpdateOne) SetDeletedAt(t time.Time) *SubcontrolUpdateOne { + suo.mutation.SetDeletedAt(t) + return suo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableDeletedAt(t *time.Time) *SubcontrolUpdateOne { + if t != nil { + suo.SetDeletedAt(*t) + } + return suo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (suo *SubcontrolUpdateOne) ClearDeletedAt() *SubcontrolUpdateOne { + suo.mutation.ClearDeletedAt() + return suo +} + +// SetDeletedBy sets the "deleted_by" field. +func (suo *SubcontrolUpdateOne) SetDeletedBy(s string) *SubcontrolUpdateOne { + suo.mutation.SetDeletedBy(s) + return suo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableDeletedBy(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetDeletedBy(*s) + } + return suo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (suo *SubcontrolUpdateOne) ClearDeletedBy() *SubcontrolUpdateOne { + suo.mutation.ClearDeletedBy() + return suo +} + +// SetTags sets the "tags" field. +func (suo *SubcontrolUpdateOne) SetTags(s []string) *SubcontrolUpdateOne { + suo.mutation.SetTags(s) + return suo +} + +// AppendTags appends s to the "tags" field. +func (suo *SubcontrolUpdateOne) AppendTags(s []string) *SubcontrolUpdateOne { + suo.mutation.AppendTags(s) + return suo +} + +// ClearTags clears the value of the "tags" field. +func (suo *SubcontrolUpdateOne) ClearTags() *SubcontrolUpdateOne { + suo.mutation.ClearTags() + return suo +} + +// SetName sets the "name" field. +func (suo *SubcontrolUpdateOne) SetName(s string) *SubcontrolUpdateOne { + suo.mutation.SetName(s) + return suo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableName(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetName(*s) + } + return suo +} + +// SetDescription sets the "description" field. +func (suo *SubcontrolUpdateOne) SetDescription(s string) *SubcontrolUpdateOne { + suo.mutation.SetDescription(s) + return suo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableDescription(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetDescription(*s) + } + return suo +} + +// ClearDescription clears the value of the "description" field. +func (suo *SubcontrolUpdateOne) ClearDescription() *SubcontrolUpdateOne { + suo.mutation.ClearDescription() + return suo +} + +// SetStatus sets the "status" field. +func (suo *SubcontrolUpdateOne) SetStatus(s string) *SubcontrolUpdateOne { + suo.mutation.SetStatus(s) + return suo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableStatus(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetStatus(*s) + } + return suo +} + +// ClearStatus clears the value of the "status" field. +func (suo *SubcontrolUpdateOne) ClearStatus() *SubcontrolUpdateOne { + suo.mutation.ClearStatus() + return suo +} + +// SetSubcontrolType sets the "subcontrol_type" field. +func (suo *SubcontrolUpdateOne) SetSubcontrolType(s string) *SubcontrolUpdateOne { + suo.mutation.SetSubcontrolType(s) + return suo +} + +// SetNillableSubcontrolType sets the "subcontrol_type" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableSubcontrolType(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetSubcontrolType(*s) + } + return suo +} + +// ClearSubcontrolType clears the value of the "subcontrol_type" field. +func (suo *SubcontrolUpdateOne) ClearSubcontrolType() *SubcontrolUpdateOne { + suo.mutation.ClearSubcontrolType() + return suo +} + +// SetVersion sets the "version" field. +func (suo *SubcontrolUpdateOne) SetVersion(s string) *SubcontrolUpdateOne { + suo.mutation.SetVersion(s) + return suo +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableVersion(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetVersion(*s) + } + return suo +} + +// ClearVersion clears the value of the "version" field. +func (suo *SubcontrolUpdateOne) ClearVersion() *SubcontrolUpdateOne { + suo.mutation.ClearVersion() + return suo +} + +// SetSubcontrolNumber sets the "subcontrol_number" field. +func (suo *SubcontrolUpdateOne) SetSubcontrolNumber(s string) *SubcontrolUpdateOne { + suo.mutation.SetSubcontrolNumber(s) + return suo +} + +// SetNillableSubcontrolNumber sets the "subcontrol_number" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableSubcontrolNumber(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetSubcontrolNumber(*s) + } + return suo +} + +// ClearSubcontrolNumber clears the value of the "subcontrol_number" field. +func (suo *SubcontrolUpdateOne) ClearSubcontrolNumber() *SubcontrolUpdateOne { + suo.mutation.ClearSubcontrolNumber() + return suo +} + +// SetFamily sets the "family" field. +func (suo *SubcontrolUpdateOne) SetFamily(s string) *SubcontrolUpdateOne { + suo.mutation.SetFamily(s) + return suo +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableFamily(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetFamily(*s) + } + return suo +} + +// ClearFamily clears the value of the "family" field. +func (suo *SubcontrolUpdateOne) ClearFamily() *SubcontrolUpdateOne { + suo.mutation.ClearFamily() + return suo +} + +// SetClass sets the "class" field. +func (suo *SubcontrolUpdateOne) SetClass(s string) *SubcontrolUpdateOne { + suo.mutation.SetClass(s) + return suo +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableClass(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetClass(*s) + } + return suo +} + +// ClearClass clears the value of the "class" field. +func (suo *SubcontrolUpdateOne) ClearClass() *SubcontrolUpdateOne { + suo.mutation.ClearClass() + return suo +} + +// SetSource sets the "source" field. +func (suo *SubcontrolUpdateOne) SetSource(s string) *SubcontrolUpdateOne { + suo.mutation.SetSource(s) + return suo +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableSource(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetSource(*s) + } + return suo +} + +// ClearSource clears the value of the "source" field. +func (suo *SubcontrolUpdateOne) ClearSource() *SubcontrolUpdateOne { + suo.mutation.ClearSource() + return suo +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (suo *SubcontrolUpdateOne) SetMappedFrameworks(s string) *SubcontrolUpdateOne { + suo.mutation.SetMappedFrameworks(s) + return suo +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableMappedFrameworks(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetMappedFrameworks(*s) + } + return suo +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (suo *SubcontrolUpdateOne) ClearMappedFrameworks() *SubcontrolUpdateOne { + suo.mutation.ClearMappedFrameworks() + return suo +} + +// SetImplementationEvidence sets the "implementation_evidence" field. +func (suo *SubcontrolUpdateOne) SetImplementationEvidence(s string) *SubcontrolUpdateOne { + suo.mutation.SetImplementationEvidence(s) + return suo +} + +// SetNillableImplementationEvidence sets the "implementation_evidence" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableImplementationEvidence(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetImplementationEvidence(*s) + } + return suo +} + +// ClearImplementationEvidence clears the value of the "implementation_evidence" field. +func (suo *SubcontrolUpdateOne) ClearImplementationEvidence() *SubcontrolUpdateOne { + suo.mutation.ClearImplementationEvidence() + return suo +} + +// SetImplementationStatus sets the "implementation_status" field. +func (suo *SubcontrolUpdateOne) SetImplementationStatus(s string) *SubcontrolUpdateOne { + suo.mutation.SetImplementationStatus(s) + return suo +} + +// SetNillableImplementationStatus sets the "implementation_status" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableImplementationStatus(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetImplementationStatus(*s) + } + return suo +} + +// ClearImplementationStatus clears the value of the "implementation_status" field. +func (suo *SubcontrolUpdateOne) ClearImplementationStatus() *SubcontrolUpdateOne { + suo.mutation.ClearImplementationStatus() + return suo +} + +// SetImplementationDate sets the "implementation_date" field. +func (suo *SubcontrolUpdateOne) SetImplementationDate(t time.Time) *SubcontrolUpdateOne { + suo.mutation.SetImplementationDate(t) + return suo +} + +// SetNillableImplementationDate sets the "implementation_date" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableImplementationDate(t *time.Time) *SubcontrolUpdateOne { + if t != nil { + suo.SetImplementationDate(*t) + } + return suo +} + +// ClearImplementationDate clears the value of the "implementation_date" field. +func (suo *SubcontrolUpdateOne) ClearImplementationDate() *SubcontrolUpdateOne { + suo.mutation.ClearImplementationDate() + return suo +} + +// SetImplementationVerification sets the "implementation_verification" field. +func (suo *SubcontrolUpdateOne) SetImplementationVerification(s string) *SubcontrolUpdateOne { + suo.mutation.SetImplementationVerification(s) + return suo +} + +// SetNillableImplementationVerification sets the "implementation_verification" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableImplementationVerification(s *string) *SubcontrolUpdateOne { + if s != nil { + suo.SetImplementationVerification(*s) + } + return suo +} + +// ClearImplementationVerification clears the value of the "implementation_verification" field. +func (suo *SubcontrolUpdateOne) ClearImplementationVerification() *SubcontrolUpdateOne { + suo.mutation.ClearImplementationVerification() + return suo +} + +// SetImplementationVerificationDate sets the "implementation_verification_date" field. +func (suo *SubcontrolUpdateOne) SetImplementationVerificationDate(t time.Time) *SubcontrolUpdateOne { + suo.mutation.SetImplementationVerificationDate(t) + return suo +} + +// SetNillableImplementationVerificationDate sets the "implementation_verification_date" field if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableImplementationVerificationDate(t *time.Time) *SubcontrolUpdateOne { + if t != nil { + suo.SetImplementationVerificationDate(*t) + } + return suo +} + +// ClearImplementationVerificationDate clears the value of the "implementation_verification_date" field. +func (suo *SubcontrolUpdateOne) ClearImplementationVerificationDate() *SubcontrolUpdateOne { + suo.mutation.ClearImplementationVerificationDate() + return suo +} + +// SetDetails sets the "details" field. +func (suo *SubcontrolUpdateOne) SetDetails(m map[string]interface{}) *SubcontrolUpdateOne { + suo.mutation.SetDetails(m) + return suo +} + +// ClearDetails clears the value of the "details" field. +func (suo *SubcontrolUpdateOne) ClearDetails() *SubcontrolUpdateOne { + suo.mutation.ClearDetails() + return suo +} + +// AddControlIDs adds the "control" edge to the Control entity by IDs. +func (suo *SubcontrolUpdateOne) AddControlIDs(ids ...string) *SubcontrolUpdateOne { + suo.mutation.AddControlIDs(ids...) + return suo +} + +// AddControl adds the "control" edges to the Control entity. +func (suo *SubcontrolUpdateOne) AddControl(c ...*Control) *SubcontrolUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return suo.AddControlIDs(ids...) +} + +// AddUserIDs adds the "user" edge to the User entity by IDs. +func (suo *SubcontrolUpdateOne) AddUserIDs(ids ...string) *SubcontrolUpdateOne { + suo.mutation.AddUserIDs(ids...) + return suo +} + +// AddUser adds the "user" edges to the User entity. +func (suo *SubcontrolUpdateOne) AddUser(u ...*User) *SubcontrolUpdateOne { + ids := make([]string, len(u)) + for i := range u { + ids[i] = u[i].ID + } + return suo.AddUserIDs(ids...) +} + +// SetNotesID sets the "notes" edge to the Note entity by ID. +func (suo *SubcontrolUpdateOne) SetNotesID(id string) *SubcontrolUpdateOne { + suo.mutation.SetNotesID(id) + return suo +} + +// SetNillableNotesID sets the "notes" edge to the Note entity by ID if the given value is not nil. +func (suo *SubcontrolUpdateOne) SetNillableNotesID(id *string) *SubcontrolUpdateOne { + if id != nil { + suo = suo.SetNotesID(*id) + } + return suo +} + +// SetNotes sets the "notes" edge to the Note entity. +func (suo *SubcontrolUpdateOne) SetNotes(n *Note) *SubcontrolUpdateOne { + return suo.SetNotesID(n.ID) +} + +// Mutation returns the SubcontrolMutation object of the builder. +func (suo *SubcontrolUpdateOne) Mutation() *SubcontrolMutation { + return suo.mutation +} + +// ClearControl clears all "control" edges to the Control entity. +func (suo *SubcontrolUpdateOne) ClearControl() *SubcontrolUpdateOne { + suo.mutation.ClearControl() + return suo +} + +// RemoveControlIDs removes the "control" edge to Control entities by IDs. +func (suo *SubcontrolUpdateOne) RemoveControlIDs(ids ...string) *SubcontrolUpdateOne { + suo.mutation.RemoveControlIDs(ids...) + return suo +} + +// RemoveControl removes "control" edges to Control entities. +func (suo *SubcontrolUpdateOne) RemoveControl(c ...*Control) *SubcontrolUpdateOne { + ids := make([]string, len(c)) + for i := range c { + ids[i] = c[i].ID + } + return suo.RemoveControlIDs(ids...) +} + +// ClearUser clears all "user" edges to the User entity. +func (suo *SubcontrolUpdateOne) ClearUser() *SubcontrolUpdateOne { + suo.mutation.ClearUser() + return suo +} + +// RemoveUserIDs removes the "user" edge to User entities by IDs. +func (suo *SubcontrolUpdateOne) RemoveUserIDs(ids ...string) *SubcontrolUpdateOne { + suo.mutation.RemoveUserIDs(ids...) + return suo +} + +// RemoveUser removes "user" edges to User entities. +func (suo *SubcontrolUpdateOne) RemoveUser(u ...*User) *SubcontrolUpdateOne { + ids := make([]string, len(u)) + for i := range u { + ids[i] = u[i].ID + } + return suo.RemoveUserIDs(ids...) +} + +// ClearNotes clears the "notes" edge to the Note entity. +func (suo *SubcontrolUpdateOne) ClearNotes() *SubcontrolUpdateOne { + suo.mutation.ClearNotes() + return suo +} + +// Where appends a list predicates to the SubcontrolUpdate builder. +func (suo *SubcontrolUpdateOne) Where(ps ...predicate.Subcontrol) *SubcontrolUpdateOne { + suo.mutation.Where(ps...) + return suo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (suo *SubcontrolUpdateOne) Select(field string, fields ...string) *SubcontrolUpdateOne { + suo.fields = append([]string{field}, fields...) + return suo +} + +// Save executes the query and returns the updated Subcontrol entity. +func (suo *SubcontrolUpdateOne) Save(ctx context.Context) (*Subcontrol, error) { + if err := suo.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, suo.sqlSave, suo.mutation, suo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (suo *SubcontrolUpdateOne) SaveX(ctx context.Context) *Subcontrol { + node, err := suo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (suo *SubcontrolUpdateOne) Exec(ctx context.Context) error { + _, err := suo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (suo *SubcontrolUpdateOne) ExecX(ctx context.Context) { + if err := suo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (suo *SubcontrolUpdateOne) defaults() error { + if _, ok := suo.mutation.UpdatedAt(); !ok && !suo.mutation.UpdatedAtCleared() { + if subcontrol.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized subcontrol.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := subcontrol.UpdateDefaultUpdatedAt() + suo.mutation.SetUpdatedAt(v) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (suo *SubcontrolUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *SubcontrolUpdateOne { + suo.modifiers = append(suo.modifiers, modifiers...) + return suo +} + +func (suo *SubcontrolUpdateOne) sqlSave(ctx context.Context) (_node *Subcontrol, err error) { + _spec := sqlgraph.NewUpdateSpec(subcontrol.Table, subcontrol.Columns, sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString)) + id, ok := suo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "Subcontrol.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := suo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, subcontrol.FieldID) + for _, f := range fields { + if !subcontrol.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != subcontrol.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := suo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if suo.mutation.CreatedAtCleared() { + _spec.ClearField(subcontrol.FieldCreatedAt, field.TypeTime) + } + if value, ok := suo.mutation.UpdatedAt(); ok { + _spec.SetField(subcontrol.FieldUpdatedAt, field.TypeTime, value) + } + if suo.mutation.UpdatedAtCleared() { + _spec.ClearField(subcontrol.FieldUpdatedAt, field.TypeTime) + } + if suo.mutation.CreatedByCleared() { + _spec.ClearField(subcontrol.FieldCreatedBy, field.TypeString) + } + if value, ok := suo.mutation.UpdatedBy(); ok { + _spec.SetField(subcontrol.FieldUpdatedBy, field.TypeString, value) + } + if suo.mutation.UpdatedByCleared() { + _spec.ClearField(subcontrol.FieldUpdatedBy, field.TypeString) + } + if value, ok := suo.mutation.DeletedAt(); ok { + _spec.SetField(subcontrol.FieldDeletedAt, field.TypeTime, value) + } + if suo.mutation.DeletedAtCleared() { + _spec.ClearField(subcontrol.FieldDeletedAt, field.TypeTime) + } + if value, ok := suo.mutation.DeletedBy(); ok { + _spec.SetField(subcontrol.FieldDeletedBy, field.TypeString, value) + } + if suo.mutation.DeletedByCleared() { + _spec.ClearField(subcontrol.FieldDeletedBy, field.TypeString) + } + if value, ok := suo.mutation.Tags(); ok { + _spec.SetField(subcontrol.FieldTags, field.TypeJSON, value) + } + if value, ok := suo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, subcontrol.FieldTags, value) + }) + } + if suo.mutation.TagsCleared() { + _spec.ClearField(subcontrol.FieldTags, field.TypeJSON) + } + if value, ok := suo.mutation.Name(); ok { + _spec.SetField(subcontrol.FieldName, field.TypeString, value) + } + if value, ok := suo.mutation.Description(); ok { + _spec.SetField(subcontrol.FieldDescription, field.TypeString, value) + } + if suo.mutation.DescriptionCleared() { + _spec.ClearField(subcontrol.FieldDescription, field.TypeString) + } + if value, ok := suo.mutation.Status(); ok { + _spec.SetField(subcontrol.FieldStatus, field.TypeString, value) + } + if suo.mutation.StatusCleared() { + _spec.ClearField(subcontrol.FieldStatus, field.TypeString) + } + if value, ok := suo.mutation.SubcontrolType(); ok { + _spec.SetField(subcontrol.FieldSubcontrolType, field.TypeString, value) + } + if suo.mutation.SubcontrolTypeCleared() { + _spec.ClearField(subcontrol.FieldSubcontrolType, field.TypeString) + } + if value, ok := suo.mutation.Version(); ok { + _spec.SetField(subcontrol.FieldVersion, field.TypeString, value) + } + if suo.mutation.VersionCleared() { + _spec.ClearField(subcontrol.FieldVersion, field.TypeString) + } + if value, ok := suo.mutation.SubcontrolNumber(); ok { + _spec.SetField(subcontrol.FieldSubcontrolNumber, field.TypeString, value) + } + if suo.mutation.SubcontrolNumberCleared() { + _spec.ClearField(subcontrol.FieldSubcontrolNumber, field.TypeString) + } + if value, ok := suo.mutation.Family(); ok { + _spec.SetField(subcontrol.FieldFamily, field.TypeString, value) + } + if suo.mutation.FamilyCleared() { + _spec.ClearField(subcontrol.FieldFamily, field.TypeString) + } + if value, ok := suo.mutation.Class(); ok { + _spec.SetField(subcontrol.FieldClass, field.TypeString, value) + } + if suo.mutation.ClassCleared() { + _spec.ClearField(subcontrol.FieldClass, field.TypeString) + } + if value, ok := suo.mutation.Source(); ok { + _spec.SetField(subcontrol.FieldSource, field.TypeString, value) + } + if suo.mutation.SourceCleared() { + _spec.ClearField(subcontrol.FieldSource, field.TypeString) + } + if value, ok := suo.mutation.MappedFrameworks(); ok { + _spec.SetField(subcontrol.FieldMappedFrameworks, field.TypeString, value) + } + if suo.mutation.MappedFrameworksCleared() { + _spec.ClearField(subcontrol.FieldMappedFrameworks, field.TypeString) + } + if value, ok := suo.mutation.ImplementationEvidence(); ok { + _spec.SetField(subcontrol.FieldImplementationEvidence, field.TypeString, value) + } + if suo.mutation.ImplementationEvidenceCleared() { + _spec.ClearField(subcontrol.FieldImplementationEvidence, field.TypeString) + } + if value, ok := suo.mutation.ImplementationStatus(); ok { + _spec.SetField(subcontrol.FieldImplementationStatus, field.TypeString, value) + } + if suo.mutation.ImplementationStatusCleared() { + _spec.ClearField(subcontrol.FieldImplementationStatus, field.TypeString) + } + if value, ok := suo.mutation.ImplementationDate(); ok { + _spec.SetField(subcontrol.FieldImplementationDate, field.TypeTime, value) + } + if suo.mutation.ImplementationDateCleared() { + _spec.ClearField(subcontrol.FieldImplementationDate, field.TypeTime) + } + if value, ok := suo.mutation.ImplementationVerification(); ok { + _spec.SetField(subcontrol.FieldImplementationVerification, field.TypeString, value) + } + if suo.mutation.ImplementationVerificationCleared() { + _spec.ClearField(subcontrol.FieldImplementationVerification, field.TypeString) + } + if value, ok := suo.mutation.ImplementationVerificationDate(); ok { + _spec.SetField(subcontrol.FieldImplementationVerificationDate, field.TypeTime, value) + } + if suo.mutation.ImplementationVerificationDateCleared() { + _spec.ClearField(subcontrol.FieldImplementationVerificationDate, field.TypeTime) + } + if value, ok := suo.mutation.Details(); ok { + _spec.SetField(subcontrol.FieldDetails, field.TypeJSON, value) + } + if suo.mutation.DetailsCleared() { + _spec.ClearField(subcontrol.FieldDetails, field.TypeJSON) + } + if suo.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.ControlTable, + Columns: subcontrol.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.ControlSubcontrols + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.RemovedControlIDs(); len(nodes) > 0 && !suo.mutation.ControlCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.ControlTable, + Columns: subcontrol.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.ControlSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.ControlIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.ControlTable, + Columns: subcontrol.ControlPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(control.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.ControlSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if suo.mutation.UserCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.UserTable, + Columns: subcontrol.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.UserSubcontrols + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.RemovedUserIDs(); len(nodes) > 0 && !suo.mutation.UserCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.UserTable, + Columns: subcontrol.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.UserSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.UserIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: subcontrol.UserTable, + Columns: subcontrol.UserPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.UserSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if suo.mutation.NotesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: subcontrol.NotesTable, + Columns: []string{subcontrol.NotesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(note.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.Subcontrol + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := suo.mutation.NotesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: subcontrol.NotesTable, + Columns: []string{subcontrol.NotesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(note.FieldID, field.TypeString), + }, + } + edge.Schema = suo.schemaConfig.Subcontrol + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.Node.Schema = suo.schemaConfig.Subcontrol + ctx = internal.NewSchemaConfigContext(ctx, suo.schemaConfig) + _spec.AddModifiers(suo.modifiers...) + _node = &Subcontrol{config: suo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, suo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{subcontrol.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + suo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/subcontrolhistory.go b/internal/ent/generated/subcontrolhistory.go new file mode 100644 index 00000000..96b0fe4a --- /dev/null +++ b/internal/ent/generated/subcontrolhistory.go @@ -0,0 +1,400 @@ +// 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/internal/ent/generated/subcontrolhistory" + "github.com/theopenlane/entx/history" +) + +// SubcontrolHistory is the model entity for the SubcontrolHistory schema. +type SubcontrolHistory 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"` + // 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"` + // MappingID holds the value of the "mapping_id" field. + MappingID string `json:"mapping_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the subcontrol + Name string `json:"name,omitempty"` + // description of the subcontrol + Description string `json:"description,omitempty"` + // status of the subcontrol + Status string `json:"status,omitempty"` + // type of the subcontrol + SubcontrolType string `json:"subcontrol_type,omitempty"` + // version of the control + Version string `json:"version,omitempty"` + // number of the subcontrol + SubcontrolNumber string `json:"subcontrol_number,omitempty"` + // subcontrol family + Family string `json:"family,omitempty"` + // subcontrol class + Class string `json:"class,omitempty"` + // source of the control, e.g. framework, template, user-defined, etc. + Source string `json:"source,omitempty"` + // mapped frameworks that the subcontrol is part of + MappedFrameworks string `json:"mapped_frameworks,omitempty"` + // implementation evidence of the subcontrol + ImplementationEvidence string `json:"implementation_evidence,omitempty"` + // implementation status + ImplementationStatus string `json:"implementation_status,omitempty"` + // date the subcontrol was implemented + ImplementationDate time.Time `json:"implementation_date,omitempty"` + // implementation verification + ImplementationVerification string `json:"implementation_verification,omitempty"` + // date the subcontrol implementation was verified + ImplementationVerificationDate time.Time `json:"implementation_verification_date,omitempty"` + // json data details of the subcontrol + Details map[string]interface{} `json:"details,omitempty"` + selectValues sql.SelectValues +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*SubcontrolHistory) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case subcontrolhistory.FieldTags, subcontrolhistory.FieldDetails: + values[i] = new([]byte) + case subcontrolhistory.FieldOperation: + values[i] = new(history.OpType) + case subcontrolhistory.FieldID, subcontrolhistory.FieldRef, subcontrolhistory.FieldCreatedBy, subcontrolhistory.FieldUpdatedBy, subcontrolhistory.FieldDeletedBy, subcontrolhistory.FieldMappingID, subcontrolhistory.FieldName, subcontrolhistory.FieldDescription, subcontrolhistory.FieldStatus, subcontrolhistory.FieldSubcontrolType, subcontrolhistory.FieldVersion, subcontrolhistory.FieldSubcontrolNumber, subcontrolhistory.FieldFamily, subcontrolhistory.FieldClass, subcontrolhistory.FieldSource, subcontrolhistory.FieldMappedFrameworks, subcontrolhistory.FieldImplementationEvidence, subcontrolhistory.FieldImplementationStatus, subcontrolhistory.FieldImplementationVerification: + values[i] = new(sql.NullString) + case subcontrolhistory.FieldHistoryTime, subcontrolhistory.FieldCreatedAt, subcontrolhistory.FieldUpdatedAt, subcontrolhistory.FieldDeletedAt, subcontrolhistory.FieldImplementationDate, subcontrolhistory.FieldImplementationVerificationDate: + 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 SubcontrolHistory fields. +func (sh *SubcontrolHistory) 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 subcontrolhistory.FieldID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field id", values[i]) + } else if value.Valid { + sh.ID = value.String + } + case subcontrolhistory.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 { + sh.HistoryTime = value.Time + } + case subcontrolhistory.FieldRef: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field ref", values[i]) + } else if value.Valid { + sh.Ref = value.String + } + case subcontrolhistory.FieldOperation: + if value, ok := values[i].(*history.OpType); !ok { + return fmt.Errorf("unexpected type %T for field operation", values[i]) + } else if value != nil { + sh.Operation = *value + } + case subcontrolhistory.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 { + sh.CreatedAt = value.Time + } + case subcontrolhistory.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 { + sh.UpdatedAt = value.Time + } + case subcontrolhistory.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 { + sh.CreatedBy = value.String + } + case subcontrolhistory.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 { + sh.UpdatedBy = value.String + } + case subcontrolhistory.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 { + sh.DeletedAt = value.Time + } + case subcontrolhistory.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 { + sh.DeletedBy = value.String + } + case subcontrolhistory.FieldMappingID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapping_id", values[i]) + } else if value.Valid { + sh.MappingID = value.String + } + case subcontrolhistory.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, &sh.Tags); err != nil { + return fmt.Errorf("unmarshal field tags: %w", err) + } + } + case subcontrolhistory.FieldName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field name", values[i]) + } else if value.Valid { + sh.Name = value.String + } + case subcontrolhistory.FieldDescription: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field description", values[i]) + } else if value.Valid { + sh.Description = value.String + } + case subcontrolhistory.FieldStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field status", values[i]) + } else if value.Valid { + sh.Status = value.String + } + case subcontrolhistory.FieldSubcontrolType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field subcontrol_type", values[i]) + } else if value.Valid { + sh.SubcontrolType = value.String + } + case subcontrolhistory.FieldVersion: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field version", values[i]) + } else if value.Valid { + sh.Version = value.String + } + case subcontrolhistory.FieldSubcontrolNumber: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field subcontrol_number", values[i]) + } else if value.Valid { + sh.SubcontrolNumber = value.String + } + case subcontrolhistory.FieldFamily: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field family", values[i]) + } else if value.Valid { + sh.Family = value.String + } + case subcontrolhistory.FieldClass: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field class", values[i]) + } else if value.Valid { + sh.Class = value.String + } + case subcontrolhistory.FieldSource: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field source", values[i]) + } else if value.Valid { + sh.Source = value.String + } + case subcontrolhistory.FieldMappedFrameworks: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field mapped_frameworks", values[i]) + } else if value.Valid { + sh.MappedFrameworks = value.String + } + case subcontrolhistory.FieldImplementationEvidence: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field implementation_evidence", values[i]) + } else if value.Valid { + sh.ImplementationEvidence = value.String + } + case subcontrolhistory.FieldImplementationStatus: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field implementation_status", values[i]) + } else if value.Valid { + sh.ImplementationStatus = value.String + } + case subcontrolhistory.FieldImplementationDate: + if value, ok := values[i].(*sql.NullTime); !ok { + return fmt.Errorf("unexpected type %T for field implementation_date", values[i]) + } else if value.Valid { + sh.ImplementationDate = value.Time + } + case subcontrolhistory.FieldImplementationVerification: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field implementation_verification", values[i]) + } else if value.Valid { + sh.ImplementationVerification = value.String + } + case subcontrolhistory.FieldImplementationVerificationDate: + if value, ok := values[i].(*sql.NullTime); !ok { + return fmt.Errorf("unexpected type %T for field implementation_verification_date", values[i]) + } else if value.Valid { + sh.ImplementationVerificationDate = value.Time + } + case subcontrolhistory.FieldDetails: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field details", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &sh.Details); err != nil { + return fmt.Errorf("unmarshal field details: %w", err) + } + } + default: + sh.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the SubcontrolHistory. +// This includes values selected through modifiers, order, etc. +func (sh *SubcontrolHistory) Value(name string) (ent.Value, error) { + return sh.selectValues.Get(name) +} + +// Update returns a builder for updating this SubcontrolHistory. +// Note that you need to call SubcontrolHistory.Unwrap() before calling this method if this SubcontrolHistory +// was returned from a transaction, and the transaction was committed or rolled back. +func (sh *SubcontrolHistory) Update() *SubcontrolHistoryUpdateOne { + return NewSubcontrolHistoryClient(sh.config).UpdateOne(sh) +} + +// Unwrap unwraps the SubcontrolHistory 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 (sh *SubcontrolHistory) Unwrap() *SubcontrolHistory { + _tx, ok := sh.config.driver.(*txDriver) + if !ok { + panic("generated: SubcontrolHistory is not a transactional entity") + } + sh.config.driver = _tx.drv + return sh +} + +// String implements the fmt.Stringer. +func (sh *SubcontrolHistory) String() string { + var builder strings.Builder + builder.WriteString("SubcontrolHistory(") + builder.WriteString(fmt.Sprintf("id=%v, ", sh.ID)) + builder.WriteString("history_time=") + builder.WriteString(sh.HistoryTime.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("ref=") + builder.WriteString(sh.Ref) + builder.WriteString(", ") + builder.WriteString("operation=") + builder.WriteString(fmt.Sprintf("%v", sh.Operation)) + builder.WriteString(", ") + builder.WriteString("created_at=") + builder.WriteString(sh.CreatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("updated_at=") + builder.WriteString(sh.UpdatedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("created_by=") + builder.WriteString(sh.CreatedBy) + builder.WriteString(", ") + builder.WriteString("updated_by=") + builder.WriteString(sh.UpdatedBy) + builder.WriteString(", ") + builder.WriteString("deleted_at=") + builder.WriteString(sh.DeletedAt.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("deleted_by=") + builder.WriteString(sh.DeletedBy) + builder.WriteString(", ") + builder.WriteString("mapping_id=") + builder.WriteString(sh.MappingID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", sh.Tags)) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(sh.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(sh.Description) + builder.WriteString(", ") + builder.WriteString("status=") + builder.WriteString(sh.Status) + builder.WriteString(", ") + builder.WriteString("subcontrol_type=") + builder.WriteString(sh.SubcontrolType) + builder.WriteString(", ") + builder.WriteString("version=") + builder.WriteString(sh.Version) + builder.WriteString(", ") + builder.WriteString("subcontrol_number=") + builder.WriteString(sh.SubcontrolNumber) + builder.WriteString(", ") + builder.WriteString("family=") + builder.WriteString(sh.Family) + builder.WriteString(", ") + builder.WriteString("class=") + builder.WriteString(sh.Class) + builder.WriteString(", ") + builder.WriteString("source=") + builder.WriteString(sh.Source) + builder.WriteString(", ") + builder.WriteString("mapped_frameworks=") + builder.WriteString(sh.MappedFrameworks) + builder.WriteString(", ") + builder.WriteString("implementation_evidence=") + builder.WriteString(sh.ImplementationEvidence) + builder.WriteString(", ") + builder.WriteString("implementation_status=") + builder.WriteString(sh.ImplementationStatus) + builder.WriteString(", ") + builder.WriteString("implementation_date=") + builder.WriteString(sh.ImplementationDate.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("implementation_verification=") + builder.WriteString(sh.ImplementationVerification) + builder.WriteString(", ") + builder.WriteString("implementation_verification_date=") + builder.WriteString(sh.ImplementationVerificationDate.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("details=") + builder.WriteString(fmt.Sprintf("%v", sh.Details)) + builder.WriteByte(')') + return builder.String() +} + +// SubcontrolHistories is a parsable slice of SubcontrolHistory. +type SubcontrolHistories []*SubcontrolHistory diff --git a/internal/ent/generated/subcontrolhistory/subcontrolhistory.go b/internal/ent/generated/subcontrolhistory/subcontrolhistory.go new file mode 100644 index 00000000..e3091850 --- /dev/null +++ b/internal/ent/generated/subcontrolhistory/subcontrolhistory.go @@ -0,0 +1,284 @@ +// Code generated by ent, DO NOT EDIT. + +package subcontrolhistory + +import ( + "fmt" + "time" + + "entgo.io/ent/dialect/sql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/entx/history" +) + +const ( + // Label holds the string label denoting the subcontrolhistory type in the database. + Label = "subcontrol_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" + // 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" + // FieldMappingID holds the string denoting the mapping_id field in the database. + FieldMappingID = "mapping_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // 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" + // FieldStatus holds the string denoting the status field in the database. + FieldStatus = "status" + // FieldSubcontrolType holds the string denoting the subcontrol_type field in the database. + FieldSubcontrolType = "subcontrol_type" + // FieldVersion holds the string denoting the version field in the database. + FieldVersion = "version" + // FieldSubcontrolNumber holds the string denoting the subcontrol_number field in the database. + FieldSubcontrolNumber = "subcontrol_number" + // FieldFamily holds the string denoting the family field in the database. + FieldFamily = "family" + // FieldClass holds the string denoting the class field in the database. + FieldClass = "class" + // FieldSource holds the string denoting the source field in the database. + FieldSource = "source" + // FieldMappedFrameworks holds the string denoting the mapped_frameworks field in the database. + FieldMappedFrameworks = "mapped_frameworks" + // FieldImplementationEvidence holds the string denoting the implementation_evidence field in the database. + FieldImplementationEvidence = "implementation_evidence" + // FieldImplementationStatus holds the string denoting the implementation_status field in the database. + FieldImplementationStatus = "implementation_status" + // FieldImplementationDate holds the string denoting the implementation_date field in the database. + FieldImplementationDate = "implementation_date" + // FieldImplementationVerification holds the string denoting the implementation_verification field in the database. + FieldImplementationVerification = "implementation_verification" + // FieldImplementationVerificationDate holds the string denoting the implementation_verification_date field in the database. + FieldImplementationVerificationDate = "implementation_verification_date" + // FieldDetails holds the string denoting the details field in the database. + FieldDetails = "details" + // Table holds the table name of the subcontrolhistory in the database. + Table = "subcontrol_history" +) + +// Columns holds all SQL columns for subcontrolhistory fields. +var Columns = []string{ + FieldID, + FieldHistoryTime, + FieldRef, + FieldOperation, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldDeletedAt, + FieldDeletedBy, + FieldMappingID, + FieldTags, + FieldName, + FieldDescription, + FieldStatus, + FieldSubcontrolType, + FieldVersion, + FieldSubcontrolNumber, + FieldFamily, + FieldClass, + FieldSource, + FieldMappedFrameworks, + FieldImplementationEvidence, + FieldImplementationStatus, + FieldImplementationDate, + FieldImplementationVerification, + FieldImplementationVerificationDate, + FieldDetails, +} + +// 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 +} + +var ( + // 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 + // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. + UpdateDefaultUpdatedAt func() time.Time + // DefaultMappingID holds the default value on creation for the "mapping_id" field. + DefaultMappingID func() string + // 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("subcontrolhistory: invalid enum value for operation field: %q", o) + } +} + +// OrderOption defines the ordering options for the SubcontrolHistory 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() +} + +// 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() +} + +// ByMappingID orders the results by the mapping_id field. +func ByMappingID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappingID, 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() +} + +// ByStatus orders the results by the status field. +func ByStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldStatus, opts...).ToFunc() +} + +// BySubcontrolType orders the results by the subcontrol_type field. +func BySubcontrolType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSubcontrolType, opts...).ToFunc() +} + +// ByVersion orders the results by the version field. +func ByVersion(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldVersion, opts...).ToFunc() +} + +// BySubcontrolNumber orders the results by the subcontrol_number field. +func BySubcontrolNumber(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSubcontrolNumber, opts...).ToFunc() +} + +// ByFamily orders the results by the family field. +func ByFamily(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldFamily, opts...).ToFunc() +} + +// ByClass orders the results by the class field. +func ByClass(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldClass, opts...).ToFunc() +} + +// BySource orders the results by the source field. +func BySource(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSource, opts...).ToFunc() +} + +// ByMappedFrameworks orders the results by the mapped_frameworks field. +func ByMappedFrameworks(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldMappedFrameworks, opts...).ToFunc() +} + +// ByImplementationEvidence orders the results by the implementation_evidence field. +func ByImplementationEvidence(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldImplementationEvidence, opts...).ToFunc() +} + +// ByImplementationStatus orders the results by the implementation_status field. +func ByImplementationStatus(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldImplementationStatus, opts...).ToFunc() +} + +// ByImplementationDate orders the results by the implementation_date field. +func ByImplementationDate(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldImplementationDate, opts...).ToFunc() +} + +// ByImplementationVerification orders the results by the implementation_verification field. +func ByImplementationVerification(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldImplementationVerification, opts...).ToFunc() +} + +// ByImplementationVerificationDate orders the results by the implementation_verification_date field. +func ByImplementationVerificationDate(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldImplementationVerificationDate, 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/generated/subcontrolhistory/where.go b/internal/ent/generated/subcontrolhistory/where.go new file mode 100644 index 00000000..497aaa6c --- /dev/null +++ b/internal/ent/generated/subcontrolhistory/where.go @@ -0,0 +1,1861 @@ +// Code generated by ent, DO NOT EDIT. + +package subcontrolhistory + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/entx/history" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(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.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// Ref applies equality check predicate on the "ref" field. It's identical to RefEQ. +func Ref(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(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.SubcontrolHistory { + return predicate.SubcontrolHistory(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.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ. +func MappingID(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldDescription, v)) +} + +// Status applies equality check predicate on the "status" field. It's identical to StatusEQ. +func Status(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldStatus, v)) +} + +// SubcontrolType applies equality check predicate on the "subcontrol_type" field. It's identical to SubcontrolTypeEQ. +func SubcontrolType(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldSubcontrolType, v)) +} + +// Version applies equality check predicate on the "version" field. It's identical to VersionEQ. +func Version(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldVersion, v)) +} + +// SubcontrolNumber applies equality check predicate on the "subcontrol_number" field. It's identical to SubcontrolNumberEQ. +func SubcontrolNumber(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldSubcontrolNumber, v)) +} + +// Family applies equality check predicate on the "family" field. It's identical to FamilyEQ. +func Family(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldFamily, v)) +} + +// Class applies equality check predicate on the "class" field. It's identical to ClassEQ. +func Class(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldClass, v)) +} + +// Source applies equality check predicate on the "source" field. It's identical to SourceEQ. +func Source(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldSource, v)) +} + +// MappedFrameworks applies equality check predicate on the "mapped_frameworks" field. It's identical to MappedFrameworksEQ. +func MappedFrameworks(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldMappedFrameworks, v)) +} + +// ImplementationEvidence applies equality check predicate on the "implementation_evidence" field. It's identical to ImplementationEvidenceEQ. +func ImplementationEvidence(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldImplementationEvidence, v)) +} + +// ImplementationStatus applies equality check predicate on the "implementation_status" field. It's identical to ImplementationStatusEQ. +func ImplementationStatus(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldImplementationStatus, v)) +} + +// ImplementationDate applies equality check predicate on the "implementation_date" field. It's identical to ImplementationDateEQ. +func ImplementationDate(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldImplementationDate, v)) +} + +// ImplementationVerification applies equality check predicate on the "implementation_verification" field. It's identical to ImplementationVerificationEQ. +func ImplementationVerification(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldImplementationVerification, v)) +} + +// ImplementationVerificationDate applies equality check predicate on the "implementation_verification_date" field. It's identical to ImplementationVerificationDateEQ. +func ImplementationVerificationDate(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldImplementationVerificationDate, v)) +} + +// HistoryTimeEQ applies the EQ predicate on the "history_time" field. +func HistoryTimeEQ(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// HistoryTimeNEQ applies the NEQ predicate on the "history_time" field. +func HistoryTimeNEQ(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldHistoryTime, v)) +} + +// HistoryTimeIn applies the In predicate on the "history_time" field. +func HistoryTimeIn(vs ...time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeNotIn applies the NotIn predicate on the "history_time" field. +func HistoryTimeNotIn(vs ...time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeGT applies the GT predicate on the "history_time" field. +func HistoryTimeGT(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldHistoryTime, v)) +} + +// HistoryTimeGTE applies the GTE predicate on the "history_time" field. +func HistoryTimeGTE(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldHistoryTime, v)) +} + +// HistoryTimeLT applies the LT predicate on the "history_time" field. +func HistoryTimeLT(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldHistoryTime, v)) +} + +// HistoryTimeLTE applies the LTE predicate on the "history_time" field. +func HistoryTimeLTE(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldHistoryTime, v)) +} + +// RefEQ applies the EQ predicate on the "ref" field. +func RefEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldRef, v)) +} + +// RefNEQ applies the NEQ predicate on the "ref" field. +func RefNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldRef, v)) +} + +// RefIn applies the In predicate on the "ref" field. +func RefIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldRef, vs...)) +} + +// RefNotIn applies the NotIn predicate on the "ref" field. +func RefNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldRef, vs...)) +} + +// RefGT applies the GT predicate on the "ref" field. +func RefGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldRef, v)) +} + +// RefGTE applies the GTE predicate on the "ref" field. +func RefGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldRef, v)) +} + +// RefLT applies the LT predicate on the "ref" field. +func RefLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldRef, v)) +} + +// RefLTE applies the LTE predicate on the "ref" field. +func RefLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldRef, v)) +} + +// RefContains applies the Contains predicate on the "ref" field. +func RefContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldRef, v)) +} + +// RefHasPrefix applies the HasPrefix predicate on the "ref" field. +func RefHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldRef, v)) +} + +// RefHasSuffix applies the HasSuffix predicate on the "ref" field. +func RefHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldRef, v)) +} + +// RefIsNil applies the IsNil predicate on the "ref" field. +func RefIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldRef)) +} + +// RefNotNil applies the NotNil predicate on the "ref" field. +func RefNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldRef)) +} + +// RefEqualFold applies the EqualFold predicate on the "ref" field. +func RefEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldRef, v)) +} + +// RefContainsFold applies the ContainsFold predicate on the "ref" field. +func RefContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldRef, v)) +} + +// OperationEQ applies the EQ predicate on the "operation" field. +func OperationEQ(v history.OpType) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldOperation, v)) +} + +// OperationNEQ applies the NEQ predicate on the "operation" field. +func OperationNEQ(v history.OpType) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldOperation, v)) +} + +// OperationIn applies the In predicate on the "operation" field. +func OperationIn(vs ...history.OpType) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldOperation, vs...)) +} + +// OperationNotIn applies the NotIn predicate on the "operation" field. +func OperationNotIn(vs ...history.OpType) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldOperation, vs...)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// MappingIDEQ applies the EQ predicate on the "mapping_id" field. +func MappingIDEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldMappingID, v)) +} + +// MappingIDNEQ applies the NEQ predicate on the "mapping_id" field. +func MappingIDNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldMappingID, v)) +} + +// MappingIDIn applies the In predicate on the "mapping_id" field. +func MappingIDIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldMappingID, vs...)) +} + +// MappingIDNotIn applies the NotIn predicate on the "mapping_id" field. +func MappingIDNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldMappingID, vs...)) +} + +// MappingIDGT applies the GT predicate on the "mapping_id" field. +func MappingIDGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldMappingID, v)) +} + +// MappingIDGTE applies the GTE predicate on the "mapping_id" field. +func MappingIDGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldMappingID, v)) +} + +// MappingIDLT applies the LT predicate on the "mapping_id" field. +func MappingIDLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldMappingID, v)) +} + +// MappingIDLTE applies the LTE predicate on the "mapping_id" field. +func MappingIDLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldMappingID, v)) +} + +// MappingIDContains applies the Contains predicate on the "mapping_id" field. +func MappingIDContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldMappingID, v)) +} + +// MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field. +func MappingIDHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldMappingID, v)) +} + +// MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field. +func MappingIDHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldMappingID, v)) +} + +// MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field. +func MappingIDEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldMappingID, v)) +} + +// MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field. +func MappingIDContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldMappingID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldTags)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldDescription, v)) +} + +// StatusEQ applies the EQ predicate on the "status" field. +func StatusEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldStatus, v)) +} + +// StatusNEQ applies the NEQ predicate on the "status" field. +func StatusNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldStatus, v)) +} + +// StatusIn applies the In predicate on the "status" field. +func StatusIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldStatus, vs...)) +} + +// StatusNotIn applies the NotIn predicate on the "status" field. +func StatusNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldStatus, vs...)) +} + +// StatusGT applies the GT predicate on the "status" field. +func StatusGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldStatus, v)) +} + +// StatusGTE applies the GTE predicate on the "status" field. +func StatusGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldStatus, v)) +} + +// StatusLT applies the LT predicate on the "status" field. +func StatusLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldStatus, v)) +} + +// StatusLTE applies the LTE predicate on the "status" field. +func StatusLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldStatus, v)) +} + +// StatusContains applies the Contains predicate on the "status" field. +func StatusContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldStatus, v)) +} + +// StatusHasPrefix applies the HasPrefix predicate on the "status" field. +func StatusHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldStatus, v)) +} + +// StatusHasSuffix applies the HasSuffix predicate on the "status" field. +func StatusHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldStatus, v)) +} + +// StatusIsNil applies the IsNil predicate on the "status" field. +func StatusIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldStatus)) +} + +// StatusNotNil applies the NotNil predicate on the "status" field. +func StatusNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldStatus)) +} + +// StatusEqualFold applies the EqualFold predicate on the "status" field. +func StatusEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldStatus, v)) +} + +// StatusContainsFold applies the ContainsFold predicate on the "status" field. +func StatusContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldStatus, v)) +} + +// SubcontrolTypeEQ applies the EQ predicate on the "subcontrol_type" field. +func SubcontrolTypeEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldSubcontrolType, v)) +} + +// SubcontrolTypeNEQ applies the NEQ predicate on the "subcontrol_type" field. +func SubcontrolTypeNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldSubcontrolType, v)) +} + +// SubcontrolTypeIn applies the In predicate on the "subcontrol_type" field. +func SubcontrolTypeIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldSubcontrolType, vs...)) +} + +// SubcontrolTypeNotIn applies the NotIn predicate on the "subcontrol_type" field. +func SubcontrolTypeNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldSubcontrolType, vs...)) +} + +// SubcontrolTypeGT applies the GT predicate on the "subcontrol_type" field. +func SubcontrolTypeGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldSubcontrolType, v)) +} + +// SubcontrolTypeGTE applies the GTE predicate on the "subcontrol_type" field. +func SubcontrolTypeGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldSubcontrolType, v)) +} + +// SubcontrolTypeLT applies the LT predicate on the "subcontrol_type" field. +func SubcontrolTypeLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldSubcontrolType, v)) +} + +// SubcontrolTypeLTE applies the LTE predicate on the "subcontrol_type" field. +func SubcontrolTypeLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldSubcontrolType, v)) +} + +// SubcontrolTypeContains applies the Contains predicate on the "subcontrol_type" field. +func SubcontrolTypeContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldSubcontrolType, v)) +} + +// SubcontrolTypeHasPrefix applies the HasPrefix predicate on the "subcontrol_type" field. +func SubcontrolTypeHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldSubcontrolType, v)) +} + +// SubcontrolTypeHasSuffix applies the HasSuffix predicate on the "subcontrol_type" field. +func SubcontrolTypeHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldSubcontrolType, v)) +} + +// SubcontrolTypeIsNil applies the IsNil predicate on the "subcontrol_type" field. +func SubcontrolTypeIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldSubcontrolType)) +} + +// SubcontrolTypeNotNil applies the NotNil predicate on the "subcontrol_type" field. +func SubcontrolTypeNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldSubcontrolType)) +} + +// SubcontrolTypeEqualFold applies the EqualFold predicate on the "subcontrol_type" field. +func SubcontrolTypeEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldSubcontrolType, v)) +} + +// SubcontrolTypeContainsFold applies the ContainsFold predicate on the "subcontrol_type" field. +func SubcontrolTypeContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldSubcontrolType, v)) +} + +// VersionEQ applies the EQ predicate on the "version" field. +func VersionEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldVersion, v)) +} + +// VersionNEQ applies the NEQ predicate on the "version" field. +func VersionNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldVersion, v)) +} + +// VersionIn applies the In predicate on the "version" field. +func VersionIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldVersion, vs...)) +} + +// VersionNotIn applies the NotIn predicate on the "version" field. +func VersionNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldVersion, vs...)) +} + +// VersionGT applies the GT predicate on the "version" field. +func VersionGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldVersion, v)) +} + +// VersionGTE applies the GTE predicate on the "version" field. +func VersionGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldVersion, v)) +} + +// VersionLT applies the LT predicate on the "version" field. +func VersionLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldVersion, v)) +} + +// VersionLTE applies the LTE predicate on the "version" field. +func VersionLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldVersion, v)) +} + +// VersionContains applies the Contains predicate on the "version" field. +func VersionContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldVersion, v)) +} + +// VersionHasPrefix applies the HasPrefix predicate on the "version" field. +func VersionHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldVersion, v)) +} + +// VersionHasSuffix applies the HasSuffix predicate on the "version" field. +func VersionHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldVersion, v)) +} + +// VersionIsNil applies the IsNil predicate on the "version" field. +func VersionIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldVersion)) +} + +// VersionNotNil applies the NotNil predicate on the "version" field. +func VersionNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldVersion)) +} + +// VersionEqualFold applies the EqualFold predicate on the "version" field. +func VersionEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldVersion, v)) +} + +// VersionContainsFold applies the ContainsFold predicate on the "version" field. +func VersionContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldVersion, v)) +} + +// SubcontrolNumberEQ applies the EQ predicate on the "subcontrol_number" field. +func SubcontrolNumberEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberNEQ applies the NEQ predicate on the "subcontrol_number" field. +func SubcontrolNumberNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberIn applies the In predicate on the "subcontrol_number" field. +func SubcontrolNumberIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldSubcontrolNumber, vs...)) +} + +// SubcontrolNumberNotIn applies the NotIn predicate on the "subcontrol_number" field. +func SubcontrolNumberNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldSubcontrolNumber, vs...)) +} + +// SubcontrolNumberGT applies the GT predicate on the "subcontrol_number" field. +func SubcontrolNumberGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberGTE applies the GTE predicate on the "subcontrol_number" field. +func SubcontrolNumberGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberLT applies the LT predicate on the "subcontrol_number" field. +func SubcontrolNumberLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberLTE applies the LTE predicate on the "subcontrol_number" field. +func SubcontrolNumberLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberContains applies the Contains predicate on the "subcontrol_number" field. +func SubcontrolNumberContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberHasPrefix applies the HasPrefix predicate on the "subcontrol_number" field. +func SubcontrolNumberHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberHasSuffix applies the HasSuffix predicate on the "subcontrol_number" field. +func SubcontrolNumberHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberIsNil applies the IsNil predicate on the "subcontrol_number" field. +func SubcontrolNumberIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldSubcontrolNumber)) +} + +// SubcontrolNumberNotNil applies the NotNil predicate on the "subcontrol_number" field. +func SubcontrolNumberNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldSubcontrolNumber)) +} + +// SubcontrolNumberEqualFold applies the EqualFold predicate on the "subcontrol_number" field. +func SubcontrolNumberEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldSubcontrolNumber, v)) +} + +// SubcontrolNumberContainsFold applies the ContainsFold predicate on the "subcontrol_number" field. +func SubcontrolNumberContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldSubcontrolNumber, v)) +} + +// FamilyEQ applies the EQ predicate on the "family" field. +func FamilyEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldFamily, v)) +} + +// FamilyNEQ applies the NEQ predicate on the "family" field. +func FamilyNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldFamily, v)) +} + +// FamilyIn applies the In predicate on the "family" field. +func FamilyIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldFamily, vs...)) +} + +// FamilyNotIn applies the NotIn predicate on the "family" field. +func FamilyNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldFamily, vs...)) +} + +// FamilyGT applies the GT predicate on the "family" field. +func FamilyGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldFamily, v)) +} + +// FamilyGTE applies the GTE predicate on the "family" field. +func FamilyGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldFamily, v)) +} + +// FamilyLT applies the LT predicate on the "family" field. +func FamilyLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldFamily, v)) +} + +// FamilyLTE applies the LTE predicate on the "family" field. +func FamilyLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldFamily, v)) +} + +// FamilyContains applies the Contains predicate on the "family" field. +func FamilyContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldFamily, v)) +} + +// FamilyHasPrefix applies the HasPrefix predicate on the "family" field. +func FamilyHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldFamily, v)) +} + +// FamilyHasSuffix applies the HasSuffix predicate on the "family" field. +func FamilyHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldFamily, v)) +} + +// FamilyIsNil applies the IsNil predicate on the "family" field. +func FamilyIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldFamily)) +} + +// FamilyNotNil applies the NotNil predicate on the "family" field. +func FamilyNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldFamily)) +} + +// FamilyEqualFold applies the EqualFold predicate on the "family" field. +func FamilyEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldFamily, v)) +} + +// FamilyContainsFold applies the ContainsFold predicate on the "family" field. +func FamilyContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldFamily, v)) +} + +// ClassEQ applies the EQ predicate on the "class" field. +func ClassEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldClass, v)) +} + +// ClassNEQ applies the NEQ predicate on the "class" field. +func ClassNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldClass, v)) +} + +// ClassIn applies the In predicate on the "class" field. +func ClassIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldClass, vs...)) +} + +// ClassNotIn applies the NotIn predicate on the "class" field. +func ClassNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldClass, vs...)) +} + +// ClassGT applies the GT predicate on the "class" field. +func ClassGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldClass, v)) +} + +// ClassGTE applies the GTE predicate on the "class" field. +func ClassGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldClass, v)) +} + +// ClassLT applies the LT predicate on the "class" field. +func ClassLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldClass, v)) +} + +// ClassLTE applies the LTE predicate on the "class" field. +func ClassLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldClass, v)) +} + +// ClassContains applies the Contains predicate on the "class" field. +func ClassContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldClass, v)) +} + +// ClassHasPrefix applies the HasPrefix predicate on the "class" field. +func ClassHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldClass, v)) +} + +// ClassHasSuffix applies the HasSuffix predicate on the "class" field. +func ClassHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldClass, v)) +} + +// ClassIsNil applies the IsNil predicate on the "class" field. +func ClassIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldClass)) +} + +// ClassNotNil applies the NotNil predicate on the "class" field. +func ClassNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldClass)) +} + +// ClassEqualFold applies the EqualFold predicate on the "class" field. +func ClassEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldClass, v)) +} + +// ClassContainsFold applies the ContainsFold predicate on the "class" field. +func ClassContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldClass, v)) +} + +// SourceEQ applies the EQ predicate on the "source" field. +func SourceEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldSource, v)) +} + +// SourceNEQ applies the NEQ predicate on the "source" field. +func SourceNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldSource, v)) +} + +// SourceIn applies the In predicate on the "source" field. +func SourceIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldSource, vs...)) +} + +// SourceNotIn applies the NotIn predicate on the "source" field. +func SourceNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldSource, vs...)) +} + +// SourceGT applies the GT predicate on the "source" field. +func SourceGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldSource, v)) +} + +// SourceGTE applies the GTE predicate on the "source" field. +func SourceGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldSource, v)) +} + +// SourceLT applies the LT predicate on the "source" field. +func SourceLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldSource, v)) +} + +// SourceLTE applies the LTE predicate on the "source" field. +func SourceLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldSource, v)) +} + +// SourceContains applies the Contains predicate on the "source" field. +func SourceContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldSource, v)) +} + +// SourceHasPrefix applies the HasPrefix predicate on the "source" field. +func SourceHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldSource, v)) +} + +// SourceHasSuffix applies the HasSuffix predicate on the "source" field. +func SourceHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldSource, v)) +} + +// SourceIsNil applies the IsNil predicate on the "source" field. +func SourceIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldSource)) +} + +// SourceNotNil applies the NotNil predicate on the "source" field. +func SourceNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldSource)) +} + +// SourceEqualFold applies the EqualFold predicate on the "source" field. +func SourceEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldSource, v)) +} + +// SourceContainsFold applies the ContainsFold predicate on the "source" field. +func SourceContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldSource, v)) +} + +// MappedFrameworksEQ applies the EQ predicate on the "mapped_frameworks" field. +func MappedFrameworksEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldMappedFrameworks, v)) +} + +// MappedFrameworksNEQ applies the NEQ predicate on the "mapped_frameworks" field. +func MappedFrameworksNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldMappedFrameworks, v)) +} + +// MappedFrameworksIn applies the In predicate on the "mapped_frameworks" field. +func MappedFrameworksIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldMappedFrameworks, vs...)) +} + +// MappedFrameworksNotIn applies the NotIn predicate on the "mapped_frameworks" field. +func MappedFrameworksNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldMappedFrameworks, vs...)) +} + +// MappedFrameworksGT applies the GT predicate on the "mapped_frameworks" field. +func MappedFrameworksGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldMappedFrameworks, v)) +} + +// MappedFrameworksGTE applies the GTE predicate on the "mapped_frameworks" field. +func MappedFrameworksGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldMappedFrameworks, v)) +} + +// MappedFrameworksLT applies the LT predicate on the "mapped_frameworks" field. +func MappedFrameworksLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldMappedFrameworks, v)) +} + +// MappedFrameworksLTE applies the LTE predicate on the "mapped_frameworks" field. +func MappedFrameworksLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldMappedFrameworks, v)) +} + +// MappedFrameworksContains applies the Contains predicate on the "mapped_frameworks" field. +func MappedFrameworksContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldMappedFrameworks, v)) +} + +// MappedFrameworksHasPrefix applies the HasPrefix predicate on the "mapped_frameworks" field. +func MappedFrameworksHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldMappedFrameworks, v)) +} + +// MappedFrameworksHasSuffix applies the HasSuffix predicate on the "mapped_frameworks" field. +func MappedFrameworksHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldMappedFrameworks, v)) +} + +// MappedFrameworksIsNil applies the IsNil predicate on the "mapped_frameworks" field. +func MappedFrameworksIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldMappedFrameworks)) +} + +// MappedFrameworksNotNil applies the NotNil predicate on the "mapped_frameworks" field. +func MappedFrameworksNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldMappedFrameworks)) +} + +// MappedFrameworksEqualFold applies the EqualFold predicate on the "mapped_frameworks" field. +func MappedFrameworksEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldMappedFrameworks, v)) +} + +// MappedFrameworksContainsFold applies the ContainsFold predicate on the "mapped_frameworks" field. +func MappedFrameworksContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldMappedFrameworks, v)) +} + +// ImplementationEvidenceEQ applies the EQ predicate on the "implementation_evidence" field. +func ImplementationEvidenceEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceNEQ applies the NEQ predicate on the "implementation_evidence" field. +func ImplementationEvidenceNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceIn applies the In predicate on the "implementation_evidence" field. +func ImplementationEvidenceIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldImplementationEvidence, vs...)) +} + +// ImplementationEvidenceNotIn applies the NotIn predicate on the "implementation_evidence" field. +func ImplementationEvidenceNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldImplementationEvidence, vs...)) +} + +// ImplementationEvidenceGT applies the GT predicate on the "implementation_evidence" field. +func ImplementationEvidenceGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceGTE applies the GTE predicate on the "implementation_evidence" field. +func ImplementationEvidenceGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceLT applies the LT predicate on the "implementation_evidence" field. +func ImplementationEvidenceLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceLTE applies the LTE predicate on the "implementation_evidence" field. +func ImplementationEvidenceLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceContains applies the Contains predicate on the "implementation_evidence" field. +func ImplementationEvidenceContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceHasPrefix applies the HasPrefix predicate on the "implementation_evidence" field. +func ImplementationEvidenceHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceHasSuffix applies the HasSuffix predicate on the "implementation_evidence" field. +func ImplementationEvidenceHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceIsNil applies the IsNil predicate on the "implementation_evidence" field. +func ImplementationEvidenceIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldImplementationEvidence)) +} + +// ImplementationEvidenceNotNil applies the NotNil predicate on the "implementation_evidence" field. +func ImplementationEvidenceNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldImplementationEvidence)) +} + +// ImplementationEvidenceEqualFold applies the EqualFold predicate on the "implementation_evidence" field. +func ImplementationEvidenceEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldImplementationEvidence, v)) +} + +// ImplementationEvidenceContainsFold applies the ContainsFold predicate on the "implementation_evidence" field. +func ImplementationEvidenceContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldImplementationEvidence, v)) +} + +// ImplementationStatusEQ applies the EQ predicate on the "implementation_status" field. +func ImplementationStatusEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldImplementationStatus, v)) +} + +// ImplementationStatusNEQ applies the NEQ predicate on the "implementation_status" field. +func ImplementationStatusNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldImplementationStatus, v)) +} + +// ImplementationStatusIn applies the In predicate on the "implementation_status" field. +func ImplementationStatusIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldImplementationStatus, vs...)) +} + +// ImplementationStatusNotIn applies the NotIn predicate on the "implementation_status" field. +func ImplementationStatusNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldImplementationStatus, vs...)) +} + +// ImplementationStatusGT applies the GT predicate on the "implementation_status" field. +func ImplementationStatusGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldImplementationStatus, v)) +} + +// ImplementationStatusGTE applies the GTE predicate on the "implementation_status" field. +func ImplementationStatusGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldImplementationStatus, v)) +} + +// ImplementationStatusLT applies the LT predicate on the "implementation_status" field. +func ImplementationStatusLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldImplementationStatus, v)) +} + +// ImplementationStatusLTE applies the LTE predicate on the "implementation_status" field. +func ImplementationStatusLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldImplementationStatus, v)) +} + +// ImplementationStatusContains applies the Contains predicate on the "implementation_status" field. +func ImplementationStatusContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldImplementationStatus, v)) +} + +// ImplementationStatusHasPrefix applies the HasPrefix predicate on the "implementation_status" field. +func ImplementationStatusHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldImplementationStatus, v)) +} + +// ImplementationStatusHasSuffix applies the HasSuffix predicate on the "implementation_status" field. +func ImplementationStatusHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldImplementationStatus, v)) +} + +// ImplementationStatusIsNil applies the IsNil predicate on the "implementation_status" field. +func ImplementationStatusIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldImplementationStatus)) +} + +// ImplementationStatusNotNil applies the NotNil predicate on the "implementation_status" field. +func ImplementationStatusNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldImplementationStatus)) +} + +// ImplementationStatusEqualFold applies the EqualFold predicate on the "implementation_status" field. +func ImplementationStatusEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldImplementationStatus, v)) +} + +// ImplementationStatusContainsFold applies the ContainsFold predicate on the "implementation_status" field. +func ImplementationStatusContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldImplementationStatus, v)) +} + +// ImplementationDateEQ applies the EQ predicate on the "implementation_date" field. +func ImplementationDateEQ(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldImplementationDate, v)) +} + +// ImplementationDateNEQ applies the NEQ predicate on the "implementation_date" field. +func ImplementationDateNEQ(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldImplementationDate, v)) +} + +// ImplementationDateIn applies the In predicate on the "implementation_date" field. +func ImplementationDateIn(vs ...time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldImplementationDate, vs...)) +} + +// ImplementationDateNotIn applies the NotIn predicate on the "implementation_date" field. +func ImplementationDateNotIn(vs ...time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldImplementationDate, vs...)) +} + +// ImplementationDateGT applies the GT predicate on the "implementation_date" field. +func ImplementationDateGT(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldImplementationDate, v)) +} + +// ImplementationDateGTE applies the GTE predicate on the "implementation_date" field. +func ImplementationDateGTE(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldImplementationDate, v)) +} + +// ImplementationDateLT applies the LT predicate on the "implementation_date" field. +func ImplementationDateLT(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldImplementationDate, v)) +} + +// ImplementationDateLTE applies the LTE predicate on the "implementation_date" field. +func ImplementationDateLTE(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldImplementationDate, v)) +} + +// ImplementationDateIsNil applies the IsNil predicate on the "implementation_date" field. +func ImplementationDateIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldImplementationDate)) +} + +// ImplementationDateNotNil applies the NotNil predicate on the "implementation_date" field. +func ImplementationDateNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldImplementationDate)) +} + +// ImplementationVerificationEQ applies the EQ predicate on the "implementation_verification" field. +func ImplementationVerificationEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldImplementationVerification, v)) +} + +// ImplementationVerificationNEQ applies the NEQ predicate on the "implementation_verification" field. +func ImplementationVerificationNEQ(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldImplementationVerification, v)) +} + +// ImplementationVerificationIn applies the In predicate on the "implementation_verification" field. +func ImplementationVerificationIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldImplementationVerification, vs...)) +} + +// ImplementationVerificationNotIn applies the NotIn predicate on the "implementation_verification" field. +func ImplementationVerificationNotIn(vs ...string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldImplementationVerification, vs...)) +} + +// ImplementationVerificationGT applies the GT predicate on the "implementation_verification" field. +func ImplementationVerificationGT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldImplementationVerification, v)) +} + +// ImplementationVerificationGTE applies the GTE predicate on the "implementation_verification" field. +func ImplementationVerificationGTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldImplementationVerification, v)) +} + +// ImplementationVerificationLT applies the LT predicate on the "implementation_verification" field. +func ImplementationVerificationLT(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldImplementationVerification, v)) +} + +// ImplementationVerificationLTE applies the LTE predicate on the "implementation_verification" field. +func ImplementationVerificationLTE(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldImplementationVerification, v)) +} + +// ImplementationVerificationContains applies the Contains predicate on the "implementation_verification" field. +func ImplementationVerificationContains(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContains(FieldImplementationVerification, v)) +} + +// ImplementationVerificationHasPrefix applies the HasPrefix predicate on the "implementation_verification" field. +func ImplementationVerificationHasPrefix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasPrefix(FieldImplementationVerification, v)) +} + +// ImplementationVerificationHasSuffix applies the HasSuffix predicate on the "implementation_verification" field. +func ImplementationVerificationHasSuffix(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldHasSuffix(FieldImplementationVerification, v)) +} + +// ImplementationVerificationIsNil applies the IsNil predicate on the "implementation_verification" field. +func ImplementationVerificationIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldImplementationVerification)) +} + +// ImplementationVerificationNotNil applies the NotNil predicate on the "implementation_verification" field. +func ImplementationVerificationNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldImplementationVerification)) +} + +// ImplementationVerificationEqualFold applies the EqualFold predicate on the "implementation_verification" field. +func ImplementationVerificationEqualFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEqualFold(FieldImplementationVerification, v)) +} + +// ImplementationVerificationContainsFold applies the ContainsFold predicate on the "implementation_verification" field. +func ImplementationVerificationContainsFold(v string) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldContainsFold(FieldImplementationVerification, v)) +} + +// ImplementationVerificationDateEQ applies the EQ predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateEQ(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldEQ(FieldImplementationVerificationDate, v)) +} + +// ImplementationVerificationDateNEQ applies the NEQ predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateNEQ(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNEQ(FieldImplementationVerificationDate, v)) +} + +// ImplementationVerificationDateIn applies the In predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateIn(vs ...time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIn(FieldImplementationVerificationDate, vs...)) +} + +// ImplementationVerificationDateNotIn applies the NotIn predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateNotIn(vs ...time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotIn(FieldImplementationVerificationDate, vs...)) +} + +// ImplementationVerificationDateGT applies the GT predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateGT(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGT(FieldImplementationVerificationDate, v)) +} + +// ImplementationVerificationDateGTE applies the GTE predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateGTE(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldGTE(FieldImplementationVerificationDate, v)) +} + +// ImplementationVerificationDateLT applies the LT predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateLT(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLT(FieldImplementationVerificationDate, v)) +} + +// ImplementationVerificationDateLTE applies the LTE predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateLTE(v time.Time) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldLTE(FieldImplementationVerificationDate, v)) +} + +// ImplementationVerificationDateIsNil applies the IsNil predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldImplementationVerificationDate)) +} + +// ImplementationVerificationDateNotNil applies the NotNil predicate on the "implementation_verification_date" field. +func ImplementationVerificationDateNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldImplementationVerificationDate)) +} + +// DetailsIsNil applies the IsNil predicate on the "details" field. +func DetailsIsNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldIsNull(FieldDetails)) +} + +// DetailsNotNil applies the NotNil predicate on the "details" field. +func DetailsNotNil() predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.FieldNotNull(FieldDetails)) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.SubcontrolHistory) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.SubcontrolHistory) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.SubcontrolHistory) predicate.SubcontrolHistory { + return predicate.SubcontrolHistory(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/subcontrolhistory_create.go b/internal/ent/generated/subcontrolhistory_create.go new file mode 100644 index 00000000..e666dc2a --- /dev/null +++ b/internal/ent/generated/subcontrolhistory_create.go @@ -0,0 +1,693 @@ +// 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/internal/ent/generated/subcontrolhistory" + "github.com/theopenlane/entx/history" +) + +// SubcontrolHistoryCreate is the builder for creating a SubcontrolHistory entity. +type SubcontrolHistoryCreate struct { + config + mutation *SubcontrolHistoryMutation + hooks []Hook +} + +// SetHistoryTime sets the "history_time" field. +func (shc *SubcontrolHistoryCreate) SetHistoryTime(t time.Time) *SubcontrolHistoryCreate { + shc.mutation.SetHistoryTime(t) + return shc +} + +// SetNillableHistoryTime sets the "history_time" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableHistoryTime(t *time.Time) *SubcontrolHistoryCreate { + if t != nil { + shc.SetHistoryTime(*t) + } + return shc +} + +// SetRef sets the "ref" field. +func (shc *SubcontrolHistoryCreate) SetRef(s string) *SubcontrolHistoryCreate { + shc.mutation.SetRef(s) + return shc +} + +// SetNillableRef sets the "ref" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableRef(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetRef(*s) + } + return shc +} + +// SetOperation sets the "operation" field. +func (shc *SubcontrolHistoryCreate) SetOperation(ht history.OpType) *SubcontrolHistoryCreate { + shc.mutation.SetOperation(ht) + return shc +} + +// SetCreatedAt sets the "created_at" field. +func (shc *SubcontrolHistoryCreate) SetCreatedAt(t time.Time) *SubcontrolHistoryCreate { + shc.mutation.SetCreatedAt(t) + return shc +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableCreatedAt(t *time.Time) *SubcontrolHistoryCreate { + if t != nil { + shc.SetCreatedAt(*t) + } + return shc +} + +// SetUpdatedAt sets the "updated_at" field. +func (shc *SubcontrolHistoryCreate) SetUpdatedAt(t time.Time) *SubcontrolHistoryCreate { + shc.mutation.SetUpdatedAt(t) + return shc +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableUpdatedAt(t *time.Time) *SubcontrolHistoryCreate { + if t != nil { + shc.SetUpdatedAt(*t) + } + return shc +} + +// SetCreatedBy sets the "created_by" field. +func (shc *SubcontrolHistoryCreate) SetCreatedBy(s string) *SubcontrolHistoryCreate { + shc.mutation.SetCreatedBy(s) + return shc +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableCreatedBy(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetCreatedBy(*s) + } + return shc +} + +// SetUpdatedBy sets the "updated_by" field. +func (shc *SubcontrolHistoryCreate) SetUpdatedBy(s string) *SubcontrolHistoryCreate { + shc.mutation.SetUpdatedBy(s) + return shc +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableUpdatedBy(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetUpdatedBy(*s) + } + return shc +} + +// SetDeletedAt sets the "deleted_at" field. +func (shc *SubcontrolHistoryCreate) SetDeletedAt(t time.Time) *SubcontrolHistoryCreate { + shc.mutation.SetDeletedAt(t) + return shc +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableDeletedAt(t *time.Time) *SubcontrolHistoryCreate { + if t != nil { + shc.SetDeletedAt(*t) + } + return shc +} + +// SetDeletedBy sets the "deleted_by" field. +func (shc *SubcontrolHistoryCreate) SetDeletedBy(s string) *SubcontrolHistoryCreate { + shc.mutation.SetDeletedBy(s) + return shc +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableDeletedBy(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetDeletedBy(*s) + } + return shc +} + +// SetMappingID sets the "mapping_id" field. +func (shc *SubcontrolHistoryCreate) SetMappingID(s string) *SubcontrolHistoryCreate { + shc.mutation.SetMappingID(s) + return shc +} + +// SetNillableMappingID sets the "mapping_id" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableMappingID(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetMappingID(*s) + } + return shc +} + +// SetTags sets the "tags" field. +func (shc *SubcontrolHistoryCreate) SetTags(s []string) *SubcontrolHistoryCreate { + shc.mutation.SetTags(s) + return shc +} + +// SetName sets the "name" field. +func (shc *SubcontrolHistoryCreate) SetName(s string) *SubcontrolHistoryCreate { + shc.mutation.SetName(s) + return shc +} + +// SetDescription sets the "description" field. +func (shc *SubcontrolHistoryCreate) SetDescription(s string) *SubcontrolHistoryCreate { + shc.mutation.SetDescription(s) + return shc +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableDescription(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetDescription(*s) + } + return shc +} + +// SetStatus sets the "status" field. +func (shc *SubcontrolHistoryCreate) SetStatus(s string) *SubcontrolHistoryCreate { + shc.mutation.SetStatus(s) + return shc +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableStatus(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetStatus(*s) + } + return shc +} + +// SetSubcontrolType sets the "subcontrol_type" field. +func (shc *SubcontrolHistoryCreate) SetSubcontrolType(s string) *SubcontrolHistoryCreate { + shc.mutation.SetSubcontrolType(s) + return shc +} + +// SetNillableSubcontrolType sets the "subcontrol_type" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableSubcontrolType(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetSubcontrolType(*s) + } + return shc +} + +// SetVersion sets the "version" field. +func (shc *SubcontrolHistoryCreate) SetVersion(s string) *SubcontrolHistoryCreate { + shc.mutation.SetVersion(s) + return shc +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableVersion(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetVersion(*s) + } + return shc +} + +// SetSubcontrolNumber sets the "subcontrol_number" field. +func (shc *SubcontrolHistoryCreate) SetSubcontrolNumber(s string) *SubcontrolHistoryCreate { + shc.mutation.SetSubcontrolNumber(s) + return shc +} + +// SetNillableSubcontrolNumber sets the "subcontrol_number" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableSubcontrolNumber(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetSubcontrolNumber(*s) + } + return shc +} + +// SetFamily sets the "family" field. +func (shc *SubcontrolHistoryCreate) SetFamily(s string) *SubcontrolHistoryCreate { + shc.mutation.SetFamily(s) + return shc +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableFamily(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetFamily(*s) + } + return shc +} + +// SetClass sets the "class" field. +func (shc *SubcontrolHistoryCreate) SetClass(s string) *SubcontrolHistoryCreate { + shc.mutation.SetClass(s) + return shc +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableClass(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetClass(*s) + } + return shc +} + +// SetSource sets the "source" field. +func (shc *SubcontrolHistoryCreate) SetSource(s string) *SubcontrolHistoryCreate { + shc.mutation.SetSource(s) + return shc +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableSource(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetSource(*s) + } + return shc +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (shc *SubcontrolHistoryCreate) SetMappedFrameworks(s string) *SubcontrolHistoryCreate { + shc.mutation.SetMappedFrameworks(s) + return shc +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableMappedFrameworks(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetMappedFrameworks(*s) + } + return shc +} + +// SetImplementationEvidence sets the "implementation_evidence" field. +func (shc *SubcontrolHistoryCreate) SetImplementationEvidence(s string) *SubcontrolHistoryCreate { + shc.mutation.SetImplementationEvidence(s) + return shc +} + +// SetNillableImplementationEvidence sets the "implementation_evidence" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableImplementationEvidence(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetImplementationEvidence(*s) + } + return shc +} + +// SetImplementationStatus sets the "implementation_status" field. +func (shc *SubcontrolHistoryCreate) SetImplementationStatus(s string) *SubcontrolHistoryCreate { + shc.mutation.SetImplementationStatus(s) + return shc +} + +// SetNillableImplementationStatus sets the "implementation_status" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableImplementationStatus(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetImplementationStatus(*s) + } + return shc +} + +// SetImplementationDate sets the "implementation_date" field. +func (shc *SubcontrolHistoryCreate) SetImplementationDate(t time.Time) *SubcontrolHistoryCreate { + shc.mutation.SetImplementationDate(t) + return shc +} + +// SetNillableImplementationDate sets the "implementation_date" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableImplementationDate(t *time.Time) *SubcontrolHistoryCreate { + if t != nil { + shc.SetImplementationDate(*t) + } + return shc +} + +// SetImplementationVerification sets the "implementation_verification" field. +func (shc *SubcontrolHistoryCreate) SetImplementationVerification(s string) *SubcontrolHistoryCreate { + shc.mutation.SetImplementationVerification(s) + return shc +} + +// SetNillableImplementationVerification sets the "implementation_verification" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableImplementationVerification(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetImplementationVerification(*s) + } + return shc +} + +// SetImplementationVerificationDate sets the "implementation_verification_date" field. +func (shc *SubcontrolHistoryCreate) SetImplementationVerificationDate(t time.Time) *SubcontrolHistoryCreate { + shc.mutation.SetImplementationVerificationDate(t) + return shc +} + +// SetNillableImplementationVerificationDate sets the "implementation_verification_date" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableImplementationVerificationDate(t *time.Time) *SubcontrolHistoryCreate { + if t != nil { + shc.SetImplementationVerificationDate(*t) + } + return shc +} + +// SetDetails sets the "details" field. +func (shc *SubcontrolHistoryCreate) SetDetails(m map[string]interface{}) *SubcontrolHistoryCreate { + shc.mutation.SetDetails(m) + return shc +} + +// SetID sets the "id" field. +func (shc *SubcontrolHistoryCreate) SetID(s string) *SubcontrolHistoryCreate { + shc.mutation.SetID(s) + return shc +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (shc *SubcontrolHistoryCreate) SetNillableID(s *string) *SubcontrolHistoryCreate { + if s != nil { + shc.SetID(*s) + } + return shc +} + +// Mutation returns the SubcontrolHistoryMutation object of the builder. +func (shc *SubcontrolHistoryCreate) Mutation() *SubcontrolHistoryMutation { + return shc.mutation +} + +// Save creates the SubcontrolHistory in the database. +func (shc *SubcontrolHistoryCreate) Save(ctx context.Context) (*SubcontrolHistory, error) { + shc.defaults() + return withHooks(ctx, shc.sqlSave, shc.mutation, shc.hooks) +} + +// SaveX calls Save and panics if Save returns an error. +func (shc *SubcontrolHistoryCreate) SaveX(ctx context.Context) *SubcontrolHistory { + v, err := shc.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (shc *SubcontrolHistoryCreate) Exec(ctx context.Context) error { + _, err := shc.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (shc *SubcontrolHistoryCreate) ExecX(ctx context.Context) { + if err := shc.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (shc *SubcontrolHistoryCreate) defaults() { + if _, ok := shc.mutation.HistoryTime(); !ok { + v := subcontrolhistory.DefaultHistoryTime() + shc.mutation.SetHistoryTime(v) + } + if _, ok := shc.mutation.CreatedAt(); !ok { + v := subcontrolhistory.DefaultCreatedAt() + shc.mutation.SetCreatedAt(v) + } + if _, ok := shc.mutation.UpdatedAt(); !ok { + v := subcontrolhistory.DefaultUpdatedAt() + shc.mutation.SetUpdatedAt(v) + } + if _, ok := shc.mutation.MappingID(); !ok { + v := subcontrolhistory.DefaultMappingID() + shc.mutation.SetMappingID(v) + } + if _, ok := shc.mutation.Tags(); !ok { + v := subcontrolhistory.DefaultTags + shc.mutation.SetTags(v) + } + if _, ok := shc.mutation.ID(); !ok { + v := subcontrolhistory.DefaultID() + shc.mutation.SetID(v) + } +} + +// check runs all checks and user-defined validators on the builder. +func (shc *SubcontrolHistoryCreate) check() error { + if _, ok := shc.mutation.HistoryTime(); !ok { + return &ValidationError{Name: "history_time", err: errors.New(`generated: missing required field "SubcontrolHistory.history_time"`)} + } + if _, ok := shc.mutation.Operation(); !ok { + return &ValidationError{Name: "operation", err: errors.New(`generated: missing required field "SubcontrolHistory.operation"`)} + } + if v, ok := shc.mutation.Operation(); ok { + if err := subcontrolhistory.OperationValidator(v); err != nil { + return &ValidationError{Name: "operation", err: fmt.Errorf(`generated: validator failed for field "SubcontrolHistory.operation": %w`, err)} + } + } + if _, ok := shc.mutation.MappingID(); !ok { + return &ValidationError{Name: "mapping_id", err: errors.New(`generated: missing required field "SubcontrolHistory.mapping_id"`)} + } + if _, ok := shc.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "SubcontrolHistory.name"`)} + } + return nil +} + +func (shc *SubcontrolHistoryCreate) sqlSave(ctx context.Context) (*SubcontrolHistory, error) { + if err := shc.check(); err != nil { + return nil, err + } + _node, _spec := shc.createSpec() + if err := sqlgraph.CreateNode(ctx, shc.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 SubcontrolHistory.ID type: %T", _spec.ID.Value) + } + } + shc.mutation.id = &_node.ID + shc.mutation.done = true + return _node, nil +} + +func (shc *SubcontrolHistoryCreate) createSpec() (*SubcontrolHistory, *sqlgraph.CreateSpec) { + var ( + _node = &SubcontrolHistory{config: shc.config} + _spec = sqlgraph.NewCreateSpec(subcontrolhistory.Table, sqlgraph.NewFieldSpec(subcontrolhistory.FieldID, field.TypeString)) + ) + _spec.Schema = shc.schemaConfig.SubcontrolHistory + if id, ok := shc.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := shc.mutation.HistoryTime(); ok { + _spec.SetField(subcontrolhistory.FieldHistoryTime, field.TypeTime, value) + _node.HistoryTime = value + } + if value, ok := shc.mutation.Ref(); ok { + _spec.SetField(subcontrolhistory.FieldRef, field.TypeString, value) + _node.Ref = value + } + if value, ok := shc.mutation.Operation(); ok { + _spec.SetField(subcontrolhistory.FieldOperation, field.TypeEnum, value) + _node.Operation = value + } + if value, ok := shc.mutation.CreatedAt(); ok { + _spec.SetField(subcontrolhistory.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := shc.mutation.UpdatedAt(); ok { + _spec.SetField(subcontrolhistory.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := shc.mutation.CreatedBy(); ok { + _spec.SetField(subcontrolhistory.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := shc.mutation.UpdatedBy(); ok { + _spec.SetField(subcontrolhistory.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := shc.mutation.DeletedAt(); ok { + _spec.SetField(subcontrolhistory.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := shc.mutation.DeletedBy(); ok { + _spec.SetField(subcontrolhistory.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := shc.mutation.MappingID(); ok { + _spec.SetField(subcontrolhistory.FieldMappingID, field.TypeString, value) + _node.MappingID = value + } + if value, ok := shc.mutation.Tags(); ok { + _spec.SetField(subcontrolhistory.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := shc.mutation.Name(); ok { + _spec.SetField(subcontrolhistory.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := shc.mutation.Description(); ok { + _spec.SetField(subcontrolhistory.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := shc.mutation.Status(); ok { + _spec.SetField(subcontrolhistory.FieldStatus, field.TypeString, value) + _node.Status = value + } + if value, ok := shc.mutation.SubcontrolType(); ok { + _spec.SetField(subcontrolhistory.FieldSubcontrolType, field.TypeString, value) + _node.SubcontrolType = value + } + if value, ok := shc.mutation.Version(); ok { + _spec.SetField(subcontrolhistory.FieldVersion, field.TypeString, value) + _node.Version = value + } + if value, ok := shc.mutation.SubcontrolNumber(); ok { + _spec.SetField(subcontrolhistory.FieldSubcontrolNumber, field.TypeString, value) + _node.SubcontrolNumber = value + } + if value, ok := shc.mutation.Family(); ok { + _spec.SetField(subcontrolhistory.FieldFamily, field.TypeString, value) + _node.Family = value + } + if value, ok := shc.mutation.Class(); ok { + _spec.SetField(subcontrolhistory.FieldClass, field.TypeString, value) + _node.Class = value + } + if value, ok := shc.mutation.Source(); ok { + _spec.SetField(subcontrolhistory.FieldSource, field.TypeString, value) + _node.Source = value + } + if value, ok := shc.mutation.MappedFrameworks(); ok { + _spec.SetField(subcontrolhistory.FieldMappedFrameworks, field.TypeString, value) + _node.MappedFrameworks = value + } + if value, ok := shc.mutation.ImplementationEvidence(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationEvidence, field.TypeString, value) + _node.ImplementationEvidence = value + } + if value, ok := shc.mutation.ImplementationStatus(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationStatus, field.TypeString, value) + _node.ImplementationStatus = value + } + if value, ok := shc.mutation.ImplementationDate(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationDate, field.TypeTime, value) + _node.ImplementationDate = value + } + if value, ok := shc.mutation.ImplementationVerification(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationVerification, field.TypeString, value) + _node.ImplementationVerification = value + } + if value, ok := shc.mutation.ImplementationVerificationDate(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationVerificationDate, field.TypeTime, value) + _node.ImplementationVerificationDate = value + } + if value, ok := shc.mutation.Details(); ok { + _spec.SetField(subcontrolhistory.FieldDetails, field.TypeJSON, value) + _node.Details = value + } + return _node, _spec +} + +// SubcontrolHistoryCreateBulk is the builder for creating many SubcontrolHistory entities in bulk. +type SubcontrolHistoryCreateBulk struct { + config + err error + builders []*SubcontrolHistoryCreate +} + +// Save creates the SubcontrolHistory entities in the database. +func (shcb *SubcontrolHistoryCreateBulk) Save(ctx context.Context) ([]*SubcontrolHistory, error) { + if shcb.err != nil { + return nil, shcb.err + } + specs := make([]*sqlgraph.CreateSpec, len(shcb.builders)) + nodes := make([]*SubcontrolHistory, len(shcb.builders)) + mutators := make([]Mutator, len(shcb.builders)) + for i := range shcb.builders { + func(i int, root context.Context) { + builder := shcb.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*SubcontrolHistoryMutation) + 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, shcb.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, shcb.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, shcb.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (shcb *SubcontrolHistoryCreateBulk) SaveX(ctx context.Context) []*SubcontrolHistory { + v, err := shcb.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (shcb *SubcontrolHistoryCreateBulk) Exec(ctx context.Context) error { + _, err := shcb.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (shcb *SubcontrolHistoryCreateBulk) ExecX(ctx context.Context) { + if err := shcb.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/subcontrolhistory_delete.go b/internal/ent/generated/subcontrolhistory_delete.go new file mode 100644 index 00000000..ff6b5d6c --- /dev/null +++ b/internal/ent/generated/subcontrolhistory_delete.go @@ -0,0 +1,92 @@ +// 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/internal/ent/generated/predicate" + + "github.com/theopenlane/core/internal/ent/generated/internal" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" +) + +// SubcontrolHistoryDelete is the builder for deleting a SubcontrolHistory entity. +type SubcontrolHistoryDelete struct { + config + hooks []Hook + mutation *SubcontrolHistoryMutation +} + +// Where appends a list predicates to the SubcontrolHistoryDelete builder. +func (shd *SubcontrolHistoryDelete) Where(ps ...predicate.SubcontrolHistory) *SubcontrolHistoryDelete { + shd.mutation.Where(ps...) + return shd +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (shd *SubcontrolHistoryDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, shd.sqlExec, shd.mutation, shd.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (shd *SubcontrolHistoryDelete) ExecX(ctx context.Context) int { + n, err := shd.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (shd *SubcontrolHistoryDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(subcontrolhistory.Table, sqlgraph.NewFieldSpec(subcontrolhistory.FieldID, field.TypeString)) + _spec.Node.Schema = shd.schemaConfig.SubcontrolHistory + ctx = internal.NewSchemaConfigContext(ctx, shd.schemaConfig) + if ps := shd.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, shd.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + shd.mutation.done = true + return affected, err +} + +// SubcontrolHistoryDeleteOne is the builder for deleting a single SubcontrolHistory entity. +type SubcontrolHistoryDeleteOne struct { + shd *SubcontrolHistoryDelete +} + +// Where appends a list predicates to the SubcontrolHistoryDelete builder. +func (shdo *SubcontrolHistoryDeleteOne) Where(ps ...predicate.SubcontrolHistory) *SubcontrolHistoryDeleteOne { + shdo.shd.mutation.Where(ps...) + return shdo +} + +// Exec executes the deletion query. +func (shdo *SubcontrolHistoryDeleteOne) Exec(ctx context.Context) error { + n, err := shdo.shd.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{subcontrolhistory.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (shdo *SubcontrolHistoryDeleteOne) ExecX(ctx context.Context) { + if err := shdo.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/subcontrolhistory_query.go b/internal/ent/generated/subcontrolhistory_query.go new file mode 100644 index 00000000..9404c3e8 --- /dev/null +++ b/internal/ent/generated/subcontrolhistory_query.go @@ -0,0 +1,565 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "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/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// SubcontrolHistoryQuery is the builder for querying SubcontrolHistory entities. +type SubcontrolHistoryQuery struct { + config + ctx *QueryContext + order []subcontrolhistory.OrderOption + inters []Interceptor + predicates []predicate.SubcontrolHistory + loadTotal []func(context.Context, []*SubcontrolHistory) 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 SubcontrolHistoryQuery builder. +func (shq *SubcontrolHistoryQuery) Where(ps ...predicate.SubcontrolHistory) *SubcontrolHistoryQuery { + shq.predicates = append(shq.predicates, ps...) + return shq +} + +// Limit the number of records to be returned by this query. +func (shq *SubcontrolHistoryQuery) Limit(limit int) *SubcontrolHistoryQuery { + shq.ctx.Limit = &limit + return shq +} + +// Offset to start from. +func (shq *SubcontrolHistoryQuery) Offset(offset int) *SubcontrolHistoryQuery { + shq.ctx.Offset = &offset + return shq +} + +// 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 (shq *SubcontrolHistoryQuery) Unique(unique bool) *SubcontrolHistoryQuery { + shq.ctx.Unique = &unique + return shq +} + +// Order specifies how the records should be ordered. +func (shq *SubcontrolHistoryQuery) Order(o ...subcontrolhistory.OrderOption) *SubcontrolHistoryQuery { + shq.order = append(shq.order, o...) + return shq +} + +// First returns the first SubcontrolHistory entity from the query. +// Returns a *NotFoundError when no SubcontrolHistory was found. +func (shq *SubcontrolHistoryQuery) First(ctx context.Context) (*SubcontrolHistory, error) { + nodes, err := shq.Limit(1).All(setContextOp(ctx, shq.ctx, ent.OpQueryFirst)) + if err != nil { + return nil, err + } + if len(nodes) == 0 { + return nil, &NotFoundError{subcontrolhistory.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (shq *SubcontrolHistoryQuery) FirstX(ctx context.Context) *SubcontrolHistory { + node, err := shq.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first SubcontrolHistory ID from the query. +// Returns a *NotFoundError when no SubcontrolHistory ID was found. +func (shq *SubcontrolHistoryQuery) FirstID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = shq.Limit(1).IDs(setContextOp(ctx, shq.ctx, ent.OpQueryFirstID)); err != nil { + return + } + if len(ids) == 0 { + err = &NotFoundError{subcontrolhistory.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (shq *SubcontrolHistoryQuery) FirstIDX(ctx context.Context) string { + id, err := shq.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single SubcontrolHistory entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one SubcontrolHistory entity is found. +// Returns a *NotFoundError when no SubcontrolHistory entities are found. +func (shq *SubcontrolHistoryQuery) Only(ctx context.Context) (*SubcontrolHistory, error) { + nodes, err := shq.Limit(2).All(setContextOp(ctx, shq.ctx, ent.OpQueryOnly)) + if err != nil { + return nil, err + } + switch len(nodes) { + case 1: + return nodes[0], nil + case 0: + return nil, &NotFoundError{subcontrolhistory.Label} + default: + return nil, &NotSingularError{subcontrolhistory.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (shq *SubcontrolHistoryQuery) OnlyX(ctx context.Context) *SubcontrolHistory { + node, err := shq.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only SubcontrolHistory ID in the query. +// Returns a *NotSingularError when more than one SubcontrolHistory ID is found. +// Returns a *NotFoundError when no entities are found. +func (shq *SubcontrolHistoryQuery) OnlyID(ctx context.Context) (id string, err error) { + var ids []string + if ids, err = shq.Limit(2).IDs(setContextOp(ctx, shq.ctx, ent.OpQueryOnlyID)); err != nil { + return + } + switch len(ids) { + case 1: + id = ids[0] + case 0: + err = &NotFoundError{subcontrolhistory.Label} + default: + err = &NotSingularError{subcontrolhistory.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (shq *SubcontrolHistoryQuery) OnlyIDX(ctx context.Context) string { + id, err := shq.OnlyID(ctx) + if err != nil { + panic(err) + } + return id +} + +// All executes the query and returns a list of SubcontrolHistories. +func (shq *SubcontrolHistoryQuery) All(ctx context.Context) ([]*SubcontrolHistory, error) { + ctx = setContextOp(ctx, shq.ctx, ent.OpQueryAll) + if err := shq.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*SubcontrolHistory, *SubcontrolHistoryQuery]() + return withInterceptors[[]*SubcontrolHistory](ctx, shq, qr, shq.inters) +} + +// AllX is like All, but panics if an error occurs. +func (shq *SubcontrolHistoryQuery) AllX(ctx context.Context) []*SubcontrolHistory { + nodes, err := shq.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of SubcontrolHistory IDs. +func (shq *SubcontrolHistoryQuery) IDs(ctx context.Context) (ids []string, err error) { + if shq.ctx.Unique == nil && shq.path != nil { + shq.Unique(true) + } + ctx = setContextOp(ctx, shq.ctx, ent.OpQueryIDs) + if err = shq.Select(subcontrolhistory.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (shq *SubcontrolHistoryQuery) IDsX(ctx context.Context) []string { + ids, err := shq.IDs(ctx) + if err != nil { + panic(err) + } + return ids +} + +// Count returns the count of the given query. +func (shq *SubcontrolHistoryQuery) Count(ctx context.Context) (int, error) { + ctx = setContextOp(ctx, shq.ctx, ent.OpQueryCount) + if err := shq.prepareQuery(ctx); err != nil { + return 0, err + } + return withInterceptors[int](ctx, shq, querierCount[*SubcontrolHistoryQuery](), shq.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (shq *SubcontrolHistoryQuery) CountX(ctx context.Context) int { + count, err := shq.Count(ctx) + if err != nil { + panic(err) + } + return count +} + +// Exist returns true if the query has elements in the graph. +func (shq *SubcontrolHistoryQuery) Exist(ctx context.Context) (bool, error) { + ctx = setContextOp(ctx, shq.ctx, ent.OpQueryExist) + switch _, err := shq.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 (shq *SubcontrolHistoryQuery) ExistX(ctx context.Context) bool { + exist, err := shq.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the SubcontrolHistoryQuery builder, including all associated steps. It can be +// used to prepare common query builders and use them differently after the clone is made. +func (shq *SubcontrolHistoryQuery) Clone() *SubcontrolHistoryQuery { + if shq == nil { + return nil + } + return &SubcontrolHistoryQuery{ + config: shq.config, + ctx: shq.ctx.Clone(), + order: append([]subcontrolhistory.OrderOption{}, shq.order...), + inters: append([]Interceptor{}, shq.inters...), + predicates: append([]predicate.SubcontrolHistory{}, shq.predicates...), + // clone intermediate query. + sql: shq.sql.Clone(), + path: shq.path, + modifiers: append([]func(*sql.Selector){}, shq.modifiers...), + } +} + +// 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.SubcontrolHistory.Query(). +// GroupBy(subcontrolhistory.FieldHistoryTime). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (shq *SubcontrolHistoryQuery) GroupBy(field string, fields ...string) *SubcontrolHistoryGroupBy { + shq.ctx.Fields = append([]string{field}, fields...) + grbuild := &SubcontrolHistoryGroupBy{build: shq} + grbuild.flds = &shq.ctx.Fields + grbuild.label = subcontrolhistory.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.SubcontrolHistory.Query(). +// Select(subcontrolhistory.FieldHistoryTime). +// Scan(ctx, &v) +func (shq *SubcontrolHistoryQuery) Select(fields ...string) *SubcontrolHistorySelect { + shq.ctx.Fields = append(shq.ctx.Fields, fields...) + sbuild := &SubcontrolHistorySelect{SubcontrolHistoryQuery: shq} + sbuild.label = subcontrolhistory.Label + sbuild.flds, sbuild.scan = &shq.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a SubcontrolHistorySelect configured with the given aggregations. +func (shq *SubcontrolHistoryQuery) Aggregate(fns ...AggregateFunc) *SubcontrolHistorySelect { + return shq.Select().Aggregate(fns...) +} + +func (shq *SubcontrolHistoryQuery) prepareQuery(ctx context.Context) error { + for _, inter := range shq.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, shq); err != nil { + return err + } + } + } + for _, f := range shq.ctx.Fields { + if !subcontrolhistory.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + } + if shq.path != nil { + prev, err := shq.path(ctx) + if err != nil { + return err + } + shq.sql = prev + } + return nil +} + +func (shq *SubcontrolHistoryQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*SubcontrolHistory, error) { + var ( + nodes = []*SubcontrolHistory{} + _spec = shq.querySpec() + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*SubcontrolHistory).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &SubcontrolHistory{config: shq.config} + nodes = append(nodes, node) + return node.assignValues(columns, values) + } + _spec.Node.Schema = shq.schemaConfig.SubcontrolHistory + ctx = internal.NewSchemaConfigContext(ctx, shq.schemaConfig) + if len(shq.modifiers) > 0 { + _spec.Modifiers = shq.modifiers + } + for i := range hooks { + hooks[i](ctx, _spec) + } + if err := sqlgraph.QueryNodes(ctx, shq.driver, _spec); err != nil { + return nil, err + } + if len(nodes) == 0 { + return nodes, nil + } + for i := range shq.loadTotal { + if err := shq.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (shq *SubcontrolHistoryQuery) sqlCount(ctx context.Context) (int, error) { + _spec := shq.querySpec() + _spec.Node.Schema = shq.schemaConfig.SubcontrolHistory + ctx = internal.NewSchemaConfigContext(ctx, shq.schemaConfig) + if len(shq.modifiers) > 0 { + _spec.Modifiers = shq.modifiers + } + _spec.Node.Columns = shq.ctx.Fields + if len(shq.ctx.Fields) > 0 { + _spec.Unique = shq.ctx.Unique != nil && *shq.ctx.Unique + } + return sqlgraph.CountNodes(ctx, shq.driver, _spec) +} + +func (shq *SubcontrolHistoryQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(subcontrolhistory.Table, subcontrolhistory.Columns, sqlgraph.NewFieldSpec(subcontrolhistory.FieldID, field.TypeString)) + _spec.From = shq.sql + if unique := shq.ctx.Unique; unique != nil { + _spec.Unique = *unique + } else if shq.path != nil { + _spec.Unique = true + } + if fields := shq.ctx.Fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, subcontrolhistory.FieldID) + for i := range fields { + if fields[i] != subcontrolhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + if ps := shq.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if limit := shq.ctx.Limit; limit != nil { + _spec.Limit = *limit + } + if offset := shq.ctx.Offset; offset != nil { + _spec.Offset = *offset + } + if ps := shq.order; len(ps) > 0 { + _spec.Order = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + return _spec +} + +func (shq *SubcontrolHistoryQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(shq.driver.Dialect()) + t1 := builder.Table(subcontrolhistory.Table) + columns := shq.ctx.Fields + if len(columns) == 0 { + columns = subcontrolhistory.Columns + } + selector := builder.Select(t1.Columns(columns...)...).From(t1) + if shq.sql != nil { + selector = shq.sql + selector.Select(selector.Columns(columns...)...) + } + if shq.ctx.Unique != nil && *shq.ctx.Unique { + selector.Distinct() + } + t1.Schema(shq.schemaConfig.SubcontrolHistory) + ctx = internal.NewSchemaConfigContext(ctx, shq.schemaConfig) + selector.WithContext(ctx) + for _, m := range shq.modifiers { + m(selector) + } + for _, p := range shq.predicates { + p(selector) + } + for _, p := range shq.order { + p(selector) + } + if offset := shq.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 := shq.ctx.Limit; limit != nil { + selector.Limit(*limit) + } + return selector +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (shq *SubcontrolHistoryQuery) Modify(modifiers ...func(s *sql.Selector)) *SubcontrolHistorySelect { + shq.modifiers = append(shq.modifiers, modifiers...) + return shq.Select() +} + +// SubcontrolHistoryGroupBy is the group-by builder for SubcontrolHistory entities. +type SubcontrolHistoryGroupBy struct { + selector + build *SubcontrolHistoryQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (shgb *SubcontrolHistoryGroupBy) Aggregate(fns ...AggregateFunc) *SubcontrolHistoryGroupBy { + shgb.fns = append(shgb.fns, fns...) + return shgb +} + +// Scan applies the selector query and scans the result into the given value. +func (shgb *SubcontrolHistoryGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, shgb.build.ctx, ent.OpQueryGroupBy) + if err := shgb.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*SubcontrolHistoryQuery, *SubcontrolHistoryGroupBy](ctx, shgb.build, shgb, shgb.build.inters, v) +} + +func (shgb *SubcontrolHistoryGroupBy) sqlScan(ctx context.Context, root *SubcontrolHistoryQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(shgb.fns)) + for _, fn := range shgb.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*shgb.flds)+len(shgb.fns)) + for _, f := range *shgb.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*shgb.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := shgb.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// SubcontrolHistorySelect is the builder for selecting fields of SubcontrolHistory entities. +type SubcontrolHistorySelect struct { + *SubcontrolHistoryQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (shs *SubcontrolHistorySelect) Aggregate(fns ...AggregateFunc) *SubcontrolHistorySelect { + shs.fns = append(shs.fns, fns...) + return shs +} + +// Scan applies the selector query and scans the result into the given value. +func (shs *SubcontrolHistorySelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, shs.ctx, ent.OpQuerySelect) + if err := shs.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*SubcontrolHistoryQuery, *SubcontrolHistorySelect](ctx, shs.SubcontrolHistoryQuery, shs, shs.inters, v) +} + +func (shs *SubcontrolHistorySelect) sqlScan(ctx context.Context, root *SubcontrolHistoryQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(shs.fns)) + for _, fn := range shs.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*shs.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 := shs.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 (shs *SubcontrolHistorySelect) Modify(modifiers ...func(s *sql.Selector)) *SubcontrolHistorySelect { + shs.modifiers = append(shs.modifiers, modifiers...) + return shs +} diff --git a/internal/ent/generated/subcontrolhistory_update.go b/internal/ent/generated/subcontrolhistory_update.go new file mode 100644 index 00000000..15473195 --- /dev/null +++ b/internal/ent/generated/subcontrolhistory_update.go @@ -0,0 +1,1283 @@ +// 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/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/subcontrolhistory" + + "github.com/theopenlane/core/internal/ent/generated/internal" +) + +// SubcontrolHistoryUpdate is the builder for updating SubcontrolHistory entities. +type SubcontrolHistoryUpdate struct { + config + hooks []Hook + mutation *SubcontrolHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the SubcontrolHistoryUpdate builder. +func (shu *SubcontrolHistoryUpdate) Where(ps ...predicate.SubcontrolHistory) *SubcontrolHistoryUpdate { + shu.mutation.Where(ps...) + return shu +} + +// SetUpdatedAt sets the "updated_at" field. +func (shu *SubcontrolHistoryUpdate) SetUpdatedAt(t time.Time) *SubcontrolHistoryUpdate { + shu.mutation.SetUpdatedAt(t) + return shu +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (shu *SubcontrolHistoryUpdate) ClearUpdatedAt() *SubcontrolHistoryUpdate { + shu.mutation.ClearUpdatedAt() + return shu +} + +// SetUpdatedBy sets the "updated_by" field. +func (shu *SubcontrolHistoryUpdate) SetUpdatedBy(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetUpdatedBy(s) + return shu +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableUpdatedBy(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetUpdatedBy(*s) + } + return shu +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (shu *SubcontrolHistoryUpdate) ClearUpdatedBy() *SubcontrolHistoryUpdate { + shu.mutation.ClearUpdatedBy() + return shu +} + +// SetDeletedAt sets the "deleted_at" field. +func (shu *SubcontrolHistoryUpdate) SetDeletedAt(t time.Time) *SubcontrolHistoryUpdate { + shu.mutation.SetDeletedAt(t) + return shu +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableDeletedAt(t *time.Time) *SubcontrolHistoryUpdate { + if t != nil { + shu.SetDeletedAt(*t) + } + return shu +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (shu *SubcontrolHistoryUpdate) ClearDeletedAt() *SubcontrolHistoryUpdate { + shu.mutation.ClearDeletedAt() + return shu +} + +// SetDeletedBy sets the "deleted_by" field. +func (shu *SubcontrolHistoryUpdate) SetDeletedBy(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetDeletedBy(s) + return shu +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableDeletedBy(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetDeletedBy(*s) + } + return shu +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (shu *SubcontrolHistoryUpdate) ClearDeletedBy() *SubcontrolHistoryUpdate { + shu.mutation.ClearDeletedBy() + return shu +} + +// SetTags sets the "tags" field. +func (shu *SubcontrolHistoryUpdate) SetTags(s []string) *SubcontrolHistoryUpdate { + shu.mutation.SetTags(s) + return shu +} + +// AppendTags appends s to the "tags" field. +func (shu *SubcontrolHistoryUpdate) AppendTags(s []string) *SubcontrolHistoryUpdate { + shu.mutation.AppendTags(s) + return shu +} + +// ClearTags clears the value of the "tags" field. +func (shu *SubcontrolHistoryUpdate) ClearTags() *SubcontrolHistoryUpdate { + shu.mutation.ClearTags() + return shu +} + +// SetName sets the "name" field. +func (shu *SubcontrolHistoryUpdate) SetName(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetName(s) + return shu +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableName(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetName(*s) + } + return shu +} + +// SetDescription sets the "description" field. +func (shu *SubcontrolHistoryUpdate) SetDescription(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetDescription(s) + return shu +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableDescription(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetDescription(*s) + } + return shu +} + +// ClearDescription clears the value of the "description" field. +func (shu *SubcontrolHistoryUpdate) ClearDescription() *SubcontrolHistoryUpdate { + shu.mutation.ClearDescription() + return shu +} + +// SetStatus sets the "status" field. +func (shu *SubcontrolHistoryUpdate) SetStatus(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetStatus(s) + return shu +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableStatus(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetStatus(*s) + } + return shu +} + +// ClearStatus clears the value of the "status" field. +func (shu *SubcontrolHistoryUpdate) ClearStatus() *SubcontrolHistoryUpdate { + shu.mutation.ClearStatus() + return shu +} + +// SetSubcontrolType sets the "subcontrol_type" field. +func (shu *SubcontrolHistoryUpdate) SetSubcontrolType(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetSubcontrolType(s) + return shu +} + +// SetNillableSubcontrolType sets the "subcontrol_type" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableSubcontrolType(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetSubcontrolType(*s) + } + return shu +} + +// ClearSubcontrolType clears the value of the "subcontrol_type" field. +func (shu *SubcontrolHistoryUpdate) ClearSubcontrolType() *SubcontrolHistoryUpdate { + shu.mutation.ClearSubcontrolType() + return shu +} + +// SetVersion sets the "version" field. +func (shu *SubcontrolHistoryUpdate) SetVersion(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetVersion(s) + return shu +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableVersion(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetVersion(*s) + } + return shu +} + +// ClearVersion clears the value of the "version" field. +func (shu *SubcontrolHistoryUpdate) ClearVersion() *SubcontrolHistoryUpdate { + shu.mutation.ClearVersion() + return shu +} + +// SetSubcontrolNumber sets the "subcontrol_number" field. +func (shu *SubcontrolHistoryUpdate) SetSubcontrolNumber(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetSubcontrolNumber(s) + return shu +} + +// SetNillableSubcontrolNumber sets the "subcontrol_number" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableSubcontrolNumber(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetSubcontrolNumber(*s) + } + return shu +} + +// ClearSubcontrolNumber clears the value of the "subcontrol_number" field. +func (shu *SubcontrolHistoryUpdate) ClearSubcontrolNumber() *SubcontrolHistoryUpdate { + shu.mutation.ClearSubcontrolNumber() + return shu +} + +// SetFamily sets the "family" field. +func (shu *SubcontrolHistoryUpdate) SetFamily(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetFamily(s) + return shu +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableFamily(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetFamily(*s) + } + return shu +} + +// ClearFamily clears the value of the "family" field. +func (shu *SubcontrolHistoryUpdate) ClearFamily() *SubcontrolHistoryUpdate { + shu.mutation.ClearFamily() + return shu +} + +// SetClass sets the "class" field. +func (shu *SubcontrolHistoryUpdate) SetClass(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetClass(s) + return shu +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableClass(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetClass(*s) + } + return shu +} + +// ClearClass clears the value of the "class" field. +func (shu *SubcontrolHistoryUpdate) ClearClass() *SubcontrolHistoryUpdate { + shu.mutation.ClearClass() + return shu +} + +// SetSource sets the "source" field. +func (shu *SubcontrolHistoryUpdate) SetSource(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetSource(s) + return shu +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableSource(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetSource(*s) + } + return shu +} + +// ClearSource clears the value of the "source" field. +func (shu *SubcontrolHistoryUpdate) ClearSource() *SubcontrolHistoryUpdate { + shu.mutation.ClearSource() + return shu +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (shu *SubcontrolHistoryUpdate) SetMappedFrameworks(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetMappedFrameworks(s) + return shu +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableMappedFrameworks(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetMappedFrameworks(*s) + } + return shu +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (shu *SubcontrolHistoryUpdate) ClearMappedFrameworks() *SubcontrolHistoryUpdate { + shu.mutation.ClearMappedFrameworks() + return shu +} + +// SetImplementationEvidence sets the "implementation_evidence" field. +func (shu *SubcontrolHistoryUpdate) SetImplementationEvidence(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetImplementationEvidence(s) + return shu +} + +// SetNillableImplementationEvidence sets the "implementation_evidence" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableImplementationEvidence(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetImplementationEvidence(*s) + } + return shu +} + +// ClearImplementationEvidence clears the value of the "implementation_evidence" field. +func (shu *SubcontrolHistoryUpdate) ClearImplementationEvidence() *SubcontrolHistoryUpdate { + shu.mutation.ClearImplementationEvidence() + return shu +} + +// SetImplementationStatus sets the "implementation_status" field. +func (shu *SubcontrolHistoryUpdate) SetImplementationStatus(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetImplementationStatus(s) + return shu +} + +// SetNillableImplementationStatus sets the "implementation_status" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableImplementationStatus(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetImplementationStatus(*s) + } + return shu +} + +// ClearImplementationStatus clears the value of the "implementation_status" field. +func (shu *SubcontrolHistoryUpdate) ClearImplementationStatus() *SubcontrolHistoryUpdate { + shu.mutation.ClearImplementationStatus() + return shu +} + +// SetImplementationDate sets the "implementation_date" field. +func (shu *SubcontrolHistoryUpdate) SetImplementationDate(t time.Time) *SubcontrolHistoryUpdate { + shu.mutation.SetImplementationDate(t) + return shu +} + +// SetNillableImplementationDate sets the "implementation_date" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableImplementationDate(t *time.Time) *SubcontrolHistoryUpdate { + if t != nil { + shu.SetImplementationDate(*t) + } + return shu +} + +// ClearImplementationDate clears the value of the "implementation_date" field. +func (shu *SubcontrolHistoryUpdate) ClearImplementationDate() *SubcontrolHistoryUpdate { + shu.mutation.ClearImplementationDate() + return shu +} + +// SetImplementationVerification sets the "implementation_verification" field. +func (shu *SubcontrolHistoryUpdate) SetImplementationVerification(s string) *SubcontrolHistoryUpdate { + shu.mutation.SetImplementationVerification(s) + return shu +} + +// SetNillableImplementationVerification sets the "implementation_verification" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableImplementationVerification(s *string) *SubcontrolHistoryUpdate { + if s != nil { + shu.SetImplementationVerification(*s) + } + return shu +} + +// ClearImplementationVerification clears the value of the "implementation_verification" field. +func (shu *SubcontrolHistoryUpdate) ClearImplementationVerification() *SubcontrolHistoryUpdate { + shu.mutation.ClearImplementationVerification() + return shu +} + +// SetImplementationVerificationDate sets the "implementation_verification_date" field. +func (shu *SubcontrolHistoryUpdate) SetImplementationVerificationDate(t time.Time) *SubcontrolHistoryUpdate { + shu.mutation.SetImplementationVerificationDate(t) + return shu +} + +// SetNillableImplementationVerificationDate sets the "implementation_verification_date" field if the given value is not nil. +func (shu *SubcontrolHistoryUpdate) SetNillableImplementationVerificationDate(t *time.Time) *SubcontrolHistoryUpdate { + if t != nil { + shu.SetImplementationVerificationDate(*t) + } + return shu +} + +// ClearImplementationVerificationDate clears the value of the "implementation_verification_date" field. +func (shu *SubcontrolHistoryUpdate) ClearImplementationVerificationDate() *SubcontrolHistoryUpdate { + shu.mutation.ClearImplementationVerificationDate() + return shu +} + +// SetDetails sets the "details" field. +func (shu *SubcontrolHistoryUpdate) SetDetails(m map[string]interface{}) *SubcontrolHistoryUpdate { + shu.mutation.SetDetails(m) + return shu +} + +// ClearDetails clears the value of the "details" field. +func (shu *SubcontrolHistoryUpdate) ClearDetails() *SubcontrolHistoryUpdate { + shu.mutation.ClearDetails() + return shu +} + +// Mutation returns the SubcontrolHistoryMutation object of the builder. +func (shu *SubcontrolHistoryUpdate) Mutation() *SubcontrolHistoryMutation { + return shu.mutation +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (shu *SubcontrolHistoryUpdate) Save(ctx context.Context) (int, error) { + shu.defaults() + return withHooks(ctx, shu.sqlSave, shu.mutation, shu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (shu *SubcontrolHistoryUpdate) SaveX(ctx context.Context) int { + affected, err := shu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (shu *SubcontrolHistoryUpdate) Exec(ctx context.Context) error { + _, err := shu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (shu *SubcontrolHistoryUpdate) ExecX(ctx context.Context) { + if err := shu.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (shu *SubcontrolHistoryUpdate) defaults() { + if _, ok := shu.mutation.UpdatedAt(); !ok && !shu.mutation.UpdatedAtCleared() { + v := subcontrolhistory.UpdateDefaultUpdatedAt() + shu.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (shu *SubcontrolHistoryUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *SubcontrolHistoryUpdate { + shu.modifiers = append(shu.modifiers, modifiers...) + return shu +} + +func (shu *SubcontrolHistoryUpdate) sqlSave(ctx context.Context) (n int, err error) { + _spec := sqlgraph.NewUpdateSpec(subcontrolhistory.Table, subcontrolhistory.Columns, sqlgraph.NewFieldSpec(subcontrolhistory.FieldID, field.TypeString)) + if ps := shu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if shu.mutation.RefCleared() { + _spec.ClearField(subcontrolhistory.FieldRef, field.TypeString) + } + if shu.mutation.CreatedAtCleared() { + _spec.ClearField(subcontrolhistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := shu.mutation.UpdatedAt(); ok { + _spec.SetField(subcontrolhistory.FieldUpdatedAt, field.TypeTime, value) + } + if shu.mutation.UpdatedAtCleared() { + _spec.ClearField(subcontrolhistory.FieldUpdatedAt, field.TypeTime) + } + if shu.mutation.CreatedByCleared() { + _spec.ClearField(subcontrolhistory.FieldCreatedBy, field.TypeString) + } + if value, ok := shu.mutation.UpdatedBy(); ok { + _spec.SetField(subcontrolhistory.FieldUpdatedBy, field.TypeString, value) + } + if shu.mutation.UpdatedByCleared() { + _spec.ClearField(subcontrolhistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := shu.mutation.DeletedAt(); ok { + _spec.SetField(subcontrolhistory.FieldDeletedAt, field.TypeTime, value) + } + if shu.mutation.DeletedAtCleared() { + _spec.ClearField(subcontrolhistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := shu.mutation.DeletedBy(); ok { + _spec.SetField(subcontrolhistory.FieldDeletedBy, field.TypeString, value) + } + if shu.mutation.DeletedByCleared() { + _spec.ClearField(subcontrolhistory.FieldDeletedBy, field.TypeString) + } + if value, ok := shu.mutation.Tags(); ok { + _spec.SetField(subcontrolhistory.FieldTags, field.TypeJSON, value) + } + if value, ok := shu.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, subcontrolhistory.FieldTags, value) + }) + } + if shu.mutation.TagsCleared() { + _spec.ClearField(subcontrolhistory.FieldTags, field.TypeJSON) + } + if value, ok := shu.mutation.Name(); ok { + _spec.SetField(subcontrolhistory.FieldName, field.TypeString, value) + } + if value, ok := shu.mutation.Description(); ok { + _spec.SetField(subcontrolhistory.FieldDescription, field.TypeString, value) + } + if shu.mutation.DescriptionCleared() { + _spec.ClearField(subcontrolhistory.FieldDescription, field.TypeString) + } + if value, ok := shu.mutation.Status(); ok { + _spec.SetField(subcontrolhistory.FieldStatus, field.TypeString, value) + } + if shu.mutation.StatusCleared() { + _spec.ClearField(subcontrolhistory.FieldStatus, field.TypeString) + } + if value, ok := shu.mutation.SubcontrolType(); ok { + _spec.SetField(subcontrolhistory.FieldSubcontrolType, field.TypeString, value) + } + if shu.mutation.SubcontrolTypeCleared() { + _spec.ClearField(subcontrolhistory.FieldSubcontrolType, field.TypeString) + } + if value, ok := shu.mutation.Version(); ok { + _spec.SetField(subcontrolhistory.FieldVersion, field.TypeString, value) + } + if shu.mutation.VersionCleared() { + _spec.ClearField(subcontrolhistory.FieldVersion, field.TypeString) + } + if value, ok := shu.mutation.SubcontrolNumber(); ok { + _spec.SetField(subcontrolhistory.FieldSubcontrolNumber, field.TypeString, value) + } + if shu.mutation.SubcontrolNumberCleared() { + _spec.ClearField(subcontrolhistory.FieldSubcontrolNumber, field.TypeString) + } + if value, ok := shu.mutation.Family(); ok { + _spec.SetField(subcontrolhistory.FieldFamily, field.TypeString, value) + } + if shu.mutation.FamilyCleared() { + _spec.ClearField(subcontrolhistory.FieldFamily, field.TypeString) + } + if value, ok := shu.mutation.Class(); ok { + _spec.SetField(subcontrolhistory.FieldClass, field.TypeString, value) + } + if shu.mutation.ClassCleared() { + _spec.ClearField(subcontrolhistory.FieldClass, field.TypeString) + } + if value, ok := shu.mutation.Source(); ok { + _spec.SetField(subcontrolhistory.FieldSource, field.TypeString, value) + } + if shu.mutation.SourceCleared() { + _spec.ClearField(subcontrolhistory.FieldSource, field.TypeString) + } + if value, ok := shu.mutation.MappedFrameworks(); ok { + _spec.SetField(subcontrolhistory.FieldMappedFrameworks, field.TypeString, value) + } + if shu.mutation.MappedFrameworksCleared() { + _spec.ClearField(subcontrolhistory.FieldMappedFrameworks, field.TypeString) + } + if value, ok := shu.mutation.ImplementationEvidence(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationEvidence, field.TypeString, value) + } + if shu.mutation.ImplementationEvidenceCleared() { + _spec.ClearField(subcontrolhistory.FieldImplementationEvidence, field.TypeString) + } + if value, ok := shu.mutation.ImplementationStatus(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationStatus, field.TypeString, value) + } + if shu.mutation.ImplementationStatusCleared() { + _spec.ClearField(subcontrolhistory.FieldImplementationStatus, field.TypeString) + } + if value, ok := shu.mutation.ImplementationDate(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationDate, field.TypeTime, value) + } + if shu.mutation.ImplementationDateCleared() { + _spec.ClearField(subcontrolhistory.FieldImplementationDate, field.TypeTime) + } + if value, ok := shu.mutation.ImplementationVerification(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationVerification, field.TypeString, value) + } + if shu.mutation.ImplementationVerificationCleared() { + _spec.ClearField(subcontrolhistory.FieldImplementationVerification, field.TypeString) + } + if value, ok := shu.mutation.ImplementationVerificationDate(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationVerificationDate, field.TypeTime, value) + } + if shu.mutation.ImplementationVerificationDateCleared() { + _spec.ClearField(subcontrolhistory.FieldImplementationVerificationDate, field.TypeTime) + } + if value, ok := shu.mutation.Details(); ok { + _spec.SetField(subcontrolhistory.FieldDetails, field.TypeJSON, value) + } + if shu.mutation.DetailsCleared() { + _spec.ClearField(subcontrolhistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = shu.schemaConfig.SubcontrolHistory + ctx = internal.NewSchemaConfigContext(ctx, shu.schemaConfig) + _spec.AddModifiers(shu.modifiers...) + if n, err = sqlgraph.UpdateNodes(ctx, shu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{subcontrolhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + shu.mutation.done = true + return n, nil +} + +// SubcontrolHistoryUpdateOne is the builder for updating a single SubcontrolHistory entity. +type SubcontrolHistoryUpdateOne struct { + config + fields []string + hooks []Hook + mutation *SubcontrolHistoryMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (shuo *SubcontrolHistoryUpdateOne) SetUpdatedAt(t time.Time) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetUpdatedAt(t) + return shuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearUpdatedAt() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearUpdatedAt() + return shuo +} + +// SetUpdatedBy sets the "updated_by" field. +func (shuo *SubcontrolHistoryUpdateOne) SetUpdatedBy(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetUpdatedBy(s) + return shuo +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableUpdatedBy(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetUpdatedBy(*s) + } + return shuo +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearUpdatedBy() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearUpdatedBy() + return shuo +} + +// SetDeletedAt sets the "deleted_at" field. +func (shuo *SubcontrolHistoryUpdateOne) SetDeletedAt(t time.Time) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetDeletedAt(t) + return shuo +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableDeletedAt(t *time.Time) *SubcontrolHistoryUpdateOne { + if t != nil { + shuo.SetDeletedAt(*t) + } + return shuo +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearDeletedAt() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearDeletedAt() + return shuo +} + +// SetDeletedBy sets the "deleted_by" field. +func (shuo *SubcontrolHistoryUpdateOne) SetDeletedBy(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetDeletedBy(s) + return shuo +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableDeletedBy(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetDeletedBy(*s) + } + return shuo +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearDeletedBy() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearDeletedBy() + return shuo +} + +// SetTags sets the "tags" field. +func (shuo *SubcontrolHistoryUpdateOne) SetTags(s []string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetTags(s) + return shuo +} + +// AppendTags appends s to the "tags" field. +func (shuo *SubcontrolHistoryUpdateOne) AppendTags(s []string) *SubcontrolHistoryUpdateOne { + shuo.mutation.AppendTags(s) + return shuo +} + +// ClearTags clears the value of the "tags" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearTags() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearTags() + return shuo +} + +// SetName sets the "name" field. +func (shuo *SubcontrolHistoryUpdateOne) SetName(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetName(s) + return shuo +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableName(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetName(*s) + } + return shuo +} + +// SetDescription sets the "description" field. +func (shuo *SubcontrolHistoryUpdateOne) SetDescription(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetDescription(s) + return shuo +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableDescription(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetDescription(*s) + } + return shuo +} + +// ClearDescription clears the value of the "description" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearDescription() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearDescription() + return shuo +} + +// SetStatus sets the "status" field. +func (shuo *SubcontrolHistoryUpdateOne) SetStatus(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetStatus(s) + return shuo +} + +// SetNillableStatus sets the "status" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableStatus(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetStatus(*s) + } + return shuo +} + +// ClearStatus clears the value of the "status" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearStatus() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearStatus() + return shuo +} + +// SetSubcontrolType sets the "subcontrol_type" field. +func (shuo *SubcontrolHistoryUpdateOne) SetSubcontrolType(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetSubcontrolType(s) + return shuo +} + +// SetNillableSubcontrolType sets the "subcontrol_type" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableSubcontrolType(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetSubcontrolType(*s) + } + return shuo +} + +// ClearSubcontrolType clears the value of the "subcontrol_type" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearSubcontrolType() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearSubcontrolType() + return shuo +} + +// SetVersion sets the "version" field. +func (shuo *SubcontrolHistoryUpdateOne) SetVersion(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetVersion(s) + return shuo +} + +// SetNillableVersion sets the "version" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableVersion(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetVersion(*s) + } + return shuo +} + +// ClearVersion clears the value of the "version" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearVersion() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearVersion() + return shuo +} + +// SetSubcontrolNumber sets the "subcontrol_number" field. +func (shuo *SubcontrolHistoryUpdateOne) SetSubcontrolNumber(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetSubcontrolNumber(s) + return shuo +} + +// SetNillableSubcontrolNumber sets the "subcontrol_number" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableSubcontrolNumber(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetSubcontrolNumber(*s) + } + return shuo +} + +// ClearSubcontrolNumber clears the value of the "subcontrol_number" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearSubcontrolNumber() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearSubcontrolNumber() + return shuo +} + +// SetFamily sets the "family" field. +func (shuo *SubcontrolHistoryUpdateOne) SetFamily(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetFamily(s) + return shuo +} + +// SetNillableFamily sets the "family" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableFamily(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetFamily(*s) + } + return shuo +} + +// ClearFamily clears the value of the "family" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearFamily() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearFamily() + return shuo +} + +// SetClass sets the "class" field. +func (shuo *SubcontrolHistoryUpdateOne) SetClass(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetClass(s) + return shuo +} + +// SetNillableClass sets the "class" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableClass(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetClass(*s) + } + return shuo +} + +// ClearClass clears the value of the "class" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearClass() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearClass() + return shuo +} + +// SetSource sets the "source" field. +func (shuo *SubcontrolHistoryUpdateOne) SetSource(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetSource(s) + return shuo +} + +// SetNillableSource sets the "source" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableSource(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetSource(*s) + } + return shuo +} + +// ClearSource clears the value of the "source" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearSource() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearSource() + return shuo +} + +// SetMappedFrameworks sets the "mapped_frameworks" field. +func (shuo *SubcontrolHistoryUpdateOne) SetMappedFrameworks(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetMappedFrameworks(s) + return shuo +} + +// SetNillableMappedFrameworks sets the "mapped_frameworks" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableMappedFrameworks(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetMappedFrameworks(*s) + } + return shuo +} + +// ClearMappedFrameworks clears the value of the "mapped_frameworks" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearMappedFrameworks() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearMappedFrameworks() + return shuo +} + +// SetImplementationEvidence sets the "implementation_evidence" field. +func (shuo *SubcontrolHistoryUpdateOne) SetImplementationEvidence(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetImplementationEvidence(s) + return shuo +} + +// SetNillableImplementationEvidence sets the "implementation_evidence" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableImplementationEvidence(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetImplementationEvidence(*s) + } + return shuo +} + +// ClearImplementationEvidence clears the value of the "implementation_evidence" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearImplementationEvidence() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearImplementationEvidence() + return shuo +} + +// SetImplementationStatus sets the "implementation_status" field. +func (shuo *SubcontrolHistoryUpdateOne) SetImplementationStatus(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetImplementationStatus(s) + return shuo +} + +// SetNillableImplementationStatus sets the "implementation_status" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableImplementationStatus(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetImplementationStatus(*s) + } + return shuo +} + +// ClearImplementationStatus clears the value of the "implementation_status" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearImplementationStatus() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearImplementationStatus() + return shuo +} + +// SetImplementationDate sets the "implementation_date" field. +func (shuo *SubcontrolHistoryUpdateOne) SetImplementationDate(t time.Time) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetImplementationDate(t) + return shuo +} + +// SetNillableImplementationDate sets the "implementation_date" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableImplementationDate(t *time.Time) *SubcontrolHistoryUpdateOne { + if t != nil { + shuo.SetImplementationDate(*t) + } + return shuo +} + +// ClearImplementationDate clears the value of the "implementation_date" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearImplementationDate() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearImplementationDate() + return shuo +} + +// SetImplementationVerification sets the "implementation_verification" field. +func (shuo *SubcontrolHistoryUpdateOne) SetImplementationVerification(s string) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetImplementationVerification(s) + return shuo +} + +// SetNillableImplementationVerification sets the "implementation_verification" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableImplementationVerification(s *string) *SubcontrolHistoryUpdateOne { + if s != nil { + shuo.SetImplementationVerification(*s) + } + return shuo +} + +// ClearImplementationVerification clears the value of the "implementation_verification" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearImplementationVerification() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearImplementationVerification() + return shuo +} + +// SetImplementationVerificationDate sets the "implementation_verification_date" field. +func (shuo *SubcontrolHistoryUpdateOne) SetImplementationVerificationDate(t time.Time) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetImplementationVerificationDate(t) + return shuo +} + +// SetNillableImplementationVerificationDate sets the "implementation_verification_date" field if the given value is not nil. +func (shuo *SubcontrolHistoryUpdateOne) SetNillableImplementationVerificationDate(t *time.Time) *SubcontrolHistoryUpdateOne { + if t != nil { + shuo.SetImplementationVerificationDate(*t) + } + return shuo +} + +// ClearImplementationVerificationDate clears the value of the "implementation_verification_date" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearImplementationVerificationDate() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearImplementationVerificationDate() + return shuo +} + +// SetDetails sets the "details" field. +func (shuo *SubcontrolHistoryUpdateOne) SetDetails(m map[string]interface{}) *SubcontrolHistoryUpdateOne { + shuo.mutation.SetDetails(m) + return shuo +} + +// ClearDetails clears the value of the "details" field. +func (shuo *SubcontrolHistoryUpdateOne) ClearDetails() *SubcontrolHistoryUpdateOne { + shuo.mutation.ClearDetails() + return shuo +} + +// Mutation returns the SubcontrolHistoryMutation object of the builder. +func (shuo *SubcontrolHistoryUpdateOne) Mutation() *SubcontrolHistoryMutation { + return shuo.mutation +} + +// Where appends a list predicates to the SubcontrolHistoryUpdate builder. +func (shuo *SubcontrolHistoryUpdateOne) Where(ps ...predicate.SubcontrolHistory) *SubcontrolHistoryUpdateOne { + shuo.mutation.Where(ps...) + return shuo +} + +// Select allows selecting one or more fields (columns) of the returned entity. +// The default is selecting all fields defined in the entity schema. +func (shuo *SubcontrolHistoryUpdateOne) Select(field string, fields ...string) *SubcontrolHistoryUpdateOne { + shuo.fields = append([]string{field}, fields...) + return shuo +} + +// Save executes the query and returns the updated SubcontrolHistory entity. +func (shuo *SubcontrolHistoryUpdateOne) Save(ctx context.Context) (*SubcontrolHistory, error) { + shuo.defaults() + return withHooks(ctx, shuo.sqlSave, shuo.mutation, shuo.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (shuo *SubcontrolHistoryUpdateOne) SaveX(ctx context.Context) *SubcontrolHistory { + node, err := shuo.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (shuo *SubcontrolHistoryUpdateOne) Exec(ctx context.Context) error { + _, err := shuo.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (shuo *SubcontrolHistoryUpdateOne) ExecX(ctx context.Context) { + if err := shuo.Exec(ctx); err != nil { + panic(err) + } +} + +// defaults sets the default values of the builder before save. +func (shuo *SubcontrolHistoryUpdateOne) defaults() { + if _, ok := shuo.mutation.UpdatedAt(); !ok && !shuo.mutation.UpdatedAtCleared() { + v := subcontrolhistory.UpdateDefaultUpdatedAt() + shuo.mutation.SetUpdatedAt(v) + } +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (shuo *SubcontrolHistoryUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *SubcontrolHistoryUpdateOne { + shuo.modifiers = append(shuo.modifiers, modifiers...) + return shuo +} + +func (shuo *SubcontrolHistoryUpdateOne) sqlSave(ctx context.Context) (_node *SubcontrolHistory, err error) { + _spec := sqlgraph.NewUpdateSpec(subcontrolhistory.Table, subcontrolhistory.Columns, sqlgraph.NewFieldSpec(subcontrolhistory.FieldID, field.TypeString)) + id, ok := shuo.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "SubcontrolHistory.id" for update`)} + } + _spec.Node.ID.Value = id + if fields := shuo.fields; len(fields) > 0 { + _spec.Node.Columns = make([]string, 0, len(fields)) + _spec.Node.Columns = append(_spec.Node.Columns, subcontrolhistory.FieldID) + for _, f := range fields { + if !subcontrolhistory.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != subcontrolhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, f) + } + } + } + if ps := shuo.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if shuo.mutation.RefCleared() { + _spec.ClearField(subcontrolhistory.FieldRef, field.TypeString) + } + if shuo.mutation.CreatedAtCleared() { + _spec.ClearField(subcontrolhistory.FieldCreatedAt, field.TypeTime) + } + if value, ok := shuo.mutation.UpdatedAt(); ok { + _spec.SetField(subcontrolhistory.FieldUpdatedAt, field.TypeTime, value) + } + if shuo.mutation.UpdatedAtCleared() { + _spec.ClearField(subcontrolhistory.FieldUpdatedAt, field.TypeTime) + } + if shuo.mutation.CreatedByCleared() { + _spec.ClearField(subcontrolhistory.FieldCreatedBy, field.TypeString) + } + if value, ok := shuo.mutation.UpdatedBy(); ok { + _spec.SetField(subcontrolhistory.FieldUpdatedBy, field.TypeString, value) + } + if shuo.mutation.UpdatedByCleared() { + _spec.ClearField(subcontrolhistory.FieldUpdatedBy, field.TypeString) + } + if value, ok := shuo.mutation.DeletedAt(); ok { + _spec.SetField(subcontrolhistory.FieldDeletedAt, field.TypeTime, value) + } + if shuo.mutation.DeletedAtCleared() { + _spec.ClearField(subcontrolhistory.FieldDeletedAt, field.TypeTime) + } + if value, ok := shuo.mutation.DeletedBy(); ok { + _spec.SetField(subcontrolhistory.FieldDeletedBy, field.TypeString, value) + } + if shuo.mutation.DeletedByCleared() { + _spec.ClearField(subcontrolhistory.FieldDeletedBy, field.TypeString) + } + if value, ok := shuo.mutation.Tags(); ok { + _spec.SetField(subcontrolhistory.FieldTags, field.TypeJSON, value) + } + if value, ok := shuo.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, subcontrolhistory.FieldTags, value) + }) + } + if shuo.mutation.TagsCleared() { + _spec.ClearField(subcontrolhistory.FieldTags, field.TypeJSON) + } + if value, ok := shuo.mutation.Name(); ok { + _spec.SetField(subcontrolhistory.FieldName, field.TypeString, value) + } + if value, ok := shuo.mutation.Description(); ok { + _spec.SetField(subcontrolhistory.FieldDescription, field.TypeString, value) + } + if shuo.mutation.DescriptionCleared() { + _spec.ClearField(subcontrolhistory.FieldDescription, field.TypeString) + } + if value, ok := shuo.mutation.Status(); ok { + _spec.SetField(subcontrolhistory.FieldStatus, field.TypeString, value) + } + if shuo.mutation.StatusCleared() { + _spec.ClearField(subcontrolhistory.FieldStatus, field.TypeString) + } + if value, ok := shuo.mutation.SubcontrolType(); ok { + _spec.SetField(subcontrolhistory.FieldSubcontrolType, field.TypeString, value) + } + if shuo.mutation.SubcontrolTypeCleared() { + _spec.ClearField(subcontrolhistory.FieldSubcontrolType, field.TypeString) + } + if value, ok := shuo.mutation.Version(); ok { + _spec.SetField(subcontrolhistory.FieldVersion, field.TypeString, value) + } + if shuo.mutation.VersionCleared() { + _spec.ClearField(subcontrolhistory.FieldVersion, field.TypeString) + } + if value, ok := shuo.mutation.SubcontrolNumber(); ok { + _spec.SetField(subcontrolhistory.FieldSubcontrolNumber, field.TypeString, value) + } + if shuo.mutation.SubcontrolNumberCleared() { + _spec.ClearField(subcontrolhistory.FieldSubcontrolNumber, field.TypeString) + } + if value, ok := shuo.mutation.Family(); ok { + _spec.SetField(subcontrolhistory.FieldFamily, field.TypeString, value) + } + if shuo.mutation.FamilyCleared() { + _spec.ClearField(subcontrolhistory.FieldFamily, field.TypeString) + } + if value, ok := shuo.mutation.Class(); ok { + _spec.SetField(subcontrolhistory.FieldClass, field.TypeString, value) + } + if shuo.mutation.ClassCleared() { + _spec.ClearField(subcontrolhistory.FieldClass, field.TypeString) + } + if value, ok := shuo.mutation.Source(); ok { + _spec.SetField(subcontrolhistory.FieldSource, field.TypeString, value) + } + if shuo.mutation.SourceCleared() { + _spec.ClearField(subcontrolhistory.FieldSource, field.TypeString) + } + if value, ok := shuo.mutation.MappedFrameworks(); ok { + _spec.SetField(subcontrolhistory.FieldMappedFrameworks, field.TypeString, value) + } + if shuo.mutation.MappedFrameworksCleared() { + _spec.ClearField(subcontrolhistory.FieldMappedFrameworks, field.TypeString) + } + if value, ok := shuo.mutation.ImplementationEvidence(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationEvidence, field.TypeString, value) + } + if shuo.mutation.ImplementationEvidenceCleared() { + _spec.ClearField(subcontrolhistory.FieldImplementationEvidence, field.TypeString) + } + if value, ok := shuo.mutation.ImplementationStatus(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationStatus, field.TypeString, value) + } + if shuo.mutation.ImplementationStatusCleared() { + _spec.ClearField(subcontrolhistory.FieldImplementationStatus, field.TypeString) + } + if value, ok := shuo.mutation.ImplementationDate(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationDate, field.TypeTime, value) + } + if shuo.mutation.ImplementationDateCleared() { + _spec.ClearField(subcontrolhistory.FieldImplementationDate, field.TypeTime) + } + if value, ok := shuo.mutation.ImplementationVerification(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationVerification, field.TypeString, value) + } + if shuo.mutation.ImplementationVerificationCleared() { + _spec.ClearField(subcontrolhistory.FieldImplementationVerification, field.TypeString) + } + if value, ok := shuo.mutation.ImplementationVerificationDate(); ok { + _spec.SetField(subcontrolhistory.FieldImplementationVerificationDate, field.TypeTime, value) + } + if shuo.mutation.ImplementationVerificationDateCleared() { + _spec.ClearField(subcontrolhistory.FieldImplementationVerificationDate, field.TypeTime) + } + if value, ok := shuo.mutation.Details(); ok { + _spec.SetField(subcontrolhistory.FieldDetails, field.TypeJSON, value) + } + if shuo.mutation.DetailsCleared() { + _spec.ClearField(subcontrolhistory.FieldDetails, field.TypeJSON) + } + _spec.Node.Schema = shuo.schemaConfig.SubcontrolHistory + ctx = internal.NewSchemaConfigContext(ctx, shuo.schemaConfig) + _spec.AddModifiers(shuo.modifiers...) + _node = &SubcontrolHistory{config: shuo.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, shuo.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{subcontrolhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + shuo.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/tx.go b/internal/ent/generated/tx.go index e228e70f..b459ad81 100644 --- a/internal/ent/generated/tx.go +++ b/internal/ent/generated/tx.go @@ -14,10 +14,22 @@ type Tx struct { config // APIToken is the client for interacting with the APIToken builders. APIToken *APITokenClient + // ActionPlan is the client for interacting with the ActionPlan builders. + ActionPlan *ActionPlanClient + // ActionPlanHistory is the client for interacting with the ActionPlanHistory builders. + ActionPlanHistory *ActionPlanHistoryClient // Contact is the client for interacting with the Contact builders. Contact *ContactClient // ContactHistory is the client for interacting with the ContactHistory builders. ContactHistory *ContactHistoryClient + // Control is the client for interacting with the Control builders. + Control *ControlClient + // ControlHistory is the client for interacting with the ControlHistory builders. + ControlHistory *ControlHistoryClient + // ControlObjective is the client for interacting with the ControlObjective builders. + ControlObjective *ControlObjectiveClient + // ControlObjectiveHistory is the client for interacting with the ControlObjectiveHistory builders. + ControlObjectiveHistory *ControlObjectiveHistoryClient // DocumentData is the client for interacting with the DocumentData builders. DocumentData *DocumentDataClient // DocumentDataHistory is the client for interacting with the DocumentDataHistory builders. @@ -76,8 +88,16 @@ type Tx struct { Integration *IntegrationClient // IntegrationHistory is the client for interacting with the IntegrationHistory builders. IntegrationHistory *IntegrationHistoryClient + // InternalPolicy is the client for interacting with the InternalPolicy builders. + InternalPolicy *InternalPolicyClient + // InternalPolicyHistory is the client for interacting with the InternalPolicyHistory builders. + InternalPolicyHistory *InternalPolicyHistoryClient // Invite is the client for interacting with the Invite builders. Invite *InviteClient + // Narrative is the client for interacting with the Narrative builders. + Narrative *NarrativeClient + // NarrativeHistory is the client for interacting with the NarrativeHistory builders. + NarrativeHistory *NarrativeHistoryClient // Note is the client for interacting with the Note builders. Note *NoteClient // NoteHistory is the client for interacting with the NoteHistory builders. @@ -104,6 +124,22 @@ type Tx struct { PasswordResetToken *PasswordResetTokenClient // PersonalAccessToken is the client for interacting with the PersonalAccessToken builders. PersonalAccessToken *PersonalAccessTokenClient + // Procedure is the client for interacting with the Procedure builders. + Procedure *ProcedureClient + // ProcedureHistory is the client for interacting with the ProcedureHistory builders. + ProcedureHistory *ProcedureHistoryClient + // Risk is the client for interacting with the Risk builders. + Risk *RiskClient + // RiskHistory is the client for interacting with the RiskHistory builders. + RiskHistory *RiskHistoryClient + // Standard is the client for interacting with the Standard builders. + Standard *StandardClient + // StandardHistory is the client for interacting with the StandardHistory builders. + StandardHistory *StandardHistoryClient + // Subcontrol is the client for interacting with the Subcontrol builders. + Subcontrol *SubcontrolClient + // SubcontrolHistory is the client for interacting with the SubcontrolHistory builders. + SubcontrolHistory *SubcontrolHistoryClient // Subscriber is the client for interacting with the Subscriber builders. Subscriber *SubscriberClient // TFASetting is the client for interacting with the TFASetting builders. @@ -258,8 +294,14 @@ func (tx *Tx) Client() *Client { func (tx *Tx) init() { tx.APIToken = NewAPITokenClient(tx.config) + tx.ActionPlan = NewActionPlanClient(tx.config) + tx.ActionPlanHistory = NewActionPlanHistoryClient(tx.config) tx.Contact = NewContactClient(tx.config) tx.ContactHistory = NewContactHistoryClient(tx.config) + tx.Control = NewControlClient(tx.config) + tx.ControlHistory = NewControlHistoryClient(tx.config) + tx.ControlObjective = NewControlObjectiveClient(tx.config) + tx.ControlObjectiveHistory = NewControlObjectiveHistoryClient(tx.config) tx.DocumentData = NewDocumentDataClient(tx.config) tx.DocumentDataHistory = NewDocumentDataHistoryClient(tx.config) tx.EmailVerificationToken = NewEmailVerificationTokenClient(tx.config) @@ -289,7 +331,11 @@ func (tx *Tx) init() { tx.HushHistory = NewHushHistoryClient(tx.config) tx.Integration = NewIntegrationClient(tx.config) tx.IntegrationHistory = NewIntegrationHistoryClient(tx.config) + tx.InternalPolicy = NewInternalPolicyClient(tx.config) + tx.InternalPolicyHistory = NewInternalPolicyHistoryClient(tx.config) tx.Invite = NewInviteClient(tx.config) + tx.Narrative = NewNarrativeClient(tx.config) + tx.NarrativeHistory = NewNarrativeHistoryClient(tx.config) tx.Note = NewNoteClient(tx.config) tx.NoteHistory = NewNoteHistoryClient(tx.config) tx.OauthProvider = NewOauthProviderClient(tx.config) @@ -303,6 +349,14 @@ func (tx *Tx) init() { tx.OrganizationSettingHistory = NewOrganizationSettingHistoryClient(tx.config) tx.PasswordResetToken = NewPasswordResetTokenClient(tx.config) tx.PersonalAccessToken = NewPersonalAccessTokenClient(tx.config) + tx.Procedure = NewProcedureClient(tx.config) + tx.ProcedureHistory = NewProcedureHistoryClient(tx.config) + tx.Risk = NewRiskClient(tx.config) + tx.RiskHistory = NewRiskHistoryClient(tx.config) + tx.Standard = NewStandardClient(tx.config) + tx.StandardHistory = NewStandardHistoryClient(tx.config) + tx.Subcontrol = NewSubcontrolClient(tx.config) + tx.SubcontrolHistory = NewSubcontrolHistoryClient(tx.config) tx.Subscriber = NewSubscriberClient(tx.config) tx.TFASetting = NewTFASettingClient(tx.config) tx.Template = NewTemplateClient(tx.config) diff --git a/internal/ent/generated/user.go b/internal/ent/generated/user.go index a5620a9c..51d03012 100644 --- a/internal/ent/generated/user.go +++ b/internal/ent/generated/user.go @@ -93,15 +93,19 @@ type UserEdges struct { File *File `json:"file,omitempty"` // Events holds the value of the events edge. Events []*Event `json:"events,omitempty"` + // Actionplans holds the value of the actionplans edge. + Actionplans []*ActionPlan `json:"actionplans,omitempty"` + // Subcontrols holds the value of the subcontrols edge. + Subcontrols []*Subcontrol `json:"subcontrols,omitempty"` // GroupMemberships holds the value of the group_memberships edge. GroupMemberships []*GroupMembership `json:"group_memberships,omitempty"` // OrgMemberships holds the value of the org_memberships edge. OrgMemberships []*OrgMembership `json:"org_memberships,omitempty"` // loadedTypes holds the information for reporting if a // type was loaded (or requested) in eager-loading or not. - loadedTypes [13]bool + loadedTypes [15]bool // totalCount holds the count of the edges above. - totalCount [10]map[string]int + totalCount [12]map[string]int namedPersonalAccessTokens map[string][]*PersonalAccessToken namedTfaSettings map[string][]*TFASetting @@ -112,6 +116,8 @@ type UserEdges struct { namedWebauthn map[string][]*Webauthn namedFiles map[string][]*File namedEvents map[string][]*Event + namedActionplans map[string][]*ActionPlan + namedSubcontrols map[string][]*Subcontrol namedGroupMemberships map[string][]*GroupMembership namedOrgMemberships map[string][]*OrgMembership } @@ -219,10 +225,28 @@ func (e UserEdges) EventsOrErr() ([]*Event, error) { return nil, &NotLoadedError{edge: "events"} } +// ActionplansOrErr returns the Actionplans value or an error if the edge +// was not loaded in eager-loading. +func (e UserEdges) ActionplansOrErr() ([]*ActionPlan, error) { + if e.loadedTypes[11] { + return e.Actionplans, nil + } + return nil, &NotLoadedError{edge: "actionplans"} +} + +// 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[12] { + return e.Subcontrols, nil + } + return nil, &NotLoadedError{edge: "subcontrols"} +} + // 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[11] { + if e.loadedTypes[13] { return e.GroupMemberships, nil } return nil, &NotLoadedError{edge: "group_memberships"} @@ -231,7 +255,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[12] { + if e.loadedTypes[14] { return e.OrgMemberships, nil } return nil, &NotLoadedError{edge: "org_memberships"} @@ -471,6 +495,16 @@ func (u *User) QueryEvents() *EventQuery { return NewUserClient(u.config).QueryEvents(u) } +// QueryActionplans queries the "actionplans" edge of the User entity. +func (u *User) QueryActionplans() *ActionPlanQuery { + return NewUserClient(u.config).QueryActionplans(u) +} + +// QuerySubcontrols queries the "subcontrols" edge of the User entity. +func (u *User) QuerySubcontrols() *SubcontrolQuery { + return NewUserClient(u.config).QuerySubcontrols(u) +} + // QueryGroupMemberships queries the "group_memberships" edge of the User entity. func (u *User) QueryGroupMemberships() *GroupMembershipQuery { return NewUserClient(u.config).QueryGroupMemberships(u) @@ -795,6 +829,54 @@ func (u *User) appendNamedEvents(name string, edges ...*Event) { } } +// NamedActionplans returns the Actionplans named value or an error if the edge was not +// loaded in eager-loading with this name. +func (u *User) NamedActionplans(name string) ([]*ActionPlan, error) { + if u.Edges.namedActionplans == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := u.Edges.namedActionplans[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (u *User) appendNamedActionplans(name string, edges ...*ActionPlan) { + if u.Edges.namedActionplans == nil { + u.Edges.namedActionplans = make(map[string][]*ActionPlan) + } + if len(edges) == 0 { + u.Edges.namedActionplans[name] = []*ActionPlan{} + } else { + u.Edges.namedActionplans[name] = append(u.Edges.namedActionplans[name], edges...) + } +} + +// NamedSubcontrols returns the Subcontrols named value or an error if the edge was not +// loaded in eager-loading with this name. +func (u *User) NamedSubcontrols(name string) ([]*Subcontrol, error) { + if u.Edges.namedSubcontrols == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := u.Edges.namedSubcontrols[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (u *User) appendNamedSubcontrols(name string, edges ...*Subcontrol) { + if u.Edges.namedSubcontrols == nil { + u.Edges.namedSubcontrols = make(map[string][]*Subcontrol) + } + if len(edges) == 0 { + u.Edges.namedSubcontrols[name] = []*Subcontrol{} + } else { + u.Edges.namedSubcontrols[name] = append(u.Edges.namedSubcontrols[name], edges...) + } +} + // NamedGroupMemberships returns the GroupMemberships named value or an error if the edge was not // loaded in eager-loading with this name. func (u *User) NamedGroupMemberships(name string) ([]*GroupMembership, error) { diff --git a/internal/ent/generated/user/user.go b/internal/ent/generated/user/user.go index dfe9281c..4e637b5c 100644 --- a/internal/ent/generated/user/user.go +++ b/internal/ent/generated/user/user.go @@ -82,6 +82,10 @@ const ( EdgeFile = "file" // EdgeEvents holds the string denoting the events edge name in mutations. EdgeEvents = "events" + // EdgeActionplans holds the string denoting the actionplans edge name in mutations. + EdgeActionplans = "actionplans" + // EdgeSubcontrols holds the string denoting the subcontrols edge name in mutations. + EdgeSubcontrols = "subcontrols" // EdgeGroupMemberships holds the string denoting the group_memberships edge name in mutations. EdgeGroupMemberships = "group_memberships" // EdgeOrgMemberships holds the string denoting the org_memberships edge name in mutations. @@ -157,6 +161,16 @@ const ( // EventsInverseTable is the table name for the Event entity. // It exists in this package in order to avoid circular dependency with the "event" package. EventsInverseTable = "events" + // ActionplansTable is the table that holds the actionplans relation/edge. The primary key declared below. + ActionplansTable = "user_actionplans" + // ActionplansInverseTable is the table name for the ActionPlan entity. + // It exists in this package in order to avoid circular dependency with the "actionplan" package. + ActionplansInverseTable = "action_plans" + // SubcontrolsTable is the table that holds the subcontrols relation/edge. The primary key declared below. + SubcontrolsTable = "user_subcontrols" + // SubcontrolsInverseTable is the table name for the Subcontrol entity. + // It exists in this package in order to avoid circular dependency with the "subcontrol" package. + SubcontrolsInverseTable = "subcontrols" // GroupMembershipsTable is the table that holds the group_memberships relation/edge. GroupMembershipsTable = "group_memberships" // GroupMembershipsInverseTable is the table name for the GroupMembership entity. @@ -212,6 +226,12 @@ var ( // EventsPrimaryKey and EventsColumn2 are the table columns denoting the // primary key for the events relation (M2M). EventsPrimaryKey = []string{"user_id", "event_id"} + // ActionplansPrimaryKey and ActionplansColumn2 are the table columns denoting the + // primary key for the actionplans relation (M2M). + ActionplansPrimaryKey = []string{"user_id", "action_plan_id"} + // SubcontrolsPrimaryKey and SubcontrolsColumn2 are the table columns denoting the + // primary key for the subcontrols relation (M2M). + SubcontrolsPrimaryKey = []string{"user_id", "subcontrol_id"} ) // ValidColumn reports if the column name is valid (part of the table columns). @@ -535,6 +555,34 @@ func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { } } +// ByActionplansCount orders the results by actionplans count. +func ByActionplansCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newActionplansStep(), opts...) + } +} + +// ByActionplans orders the results by actionplans terms. +func ByActionplans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newActionplansStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// BySubcontrolsCount orders the results by subcontrols count. +func BySubcontrolsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newSubcontrolsStep(), opts...) + } +} + +// BySubcontrols orders the results by subcontrols terms. +func BySubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newSubcontrolsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + // ByGroupMembershipsCount orders the results by group_memberships count. func ByGroupMembershipsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { @@ -639,6 +687,20 @@ func newEventsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.M2M, false, EventsTable, EventsPrimaryKey...), ) } +func newActionplansStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ActionplansInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ActionplansTable, ActionplansPrimaryKey...), + ) +} +func newSubcontrolsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(SubcontrolsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, SubcontrolsTable, SubcontrolsPrimaryKey...), + ) +} func newGroupMembershipsStep() *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 e759216a..e7045065 100644 --- a/internal/ent/generated/user/where.go +++ b/internal/ent/generated/user/where.go @@ -1752,6 +1752,64 @@ func HasEventsWith(preds ...predicate.Event) predicate.User { }) } +// HasActionplans applies the HasEdge predicate on the "actionplans" edge. +func HasActionplans() predicate.User { + return predicate.User(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ActionplansTable, ActionplansPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.UserActionplans + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasActionplansWith applies the HasEdge predicate on the "actionplans" edge with a given conditions (other predicates). +func HasActionplansWith(preds ...predicate.ActionPlan) predicate.User { + return predicate.User(func(s *sql.Selector) { + step := newActionplansStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.UserActionplans + 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) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, SubcontrolsTable, SubcontrolsPrimaryKey...), + ) + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.UserSubcontrols + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasSubcontrolsWith applies the HasEdge predicate on the "subcontrols" edge with a given conditions (other predicates). +func HasSubcontrolsWith(preds ...predicate.Subcontrol) predicate.User { + return predicate.User(func(s *sql.Selector) { + step := newSubcontrolsStep() + schemaConfig := internal.SchemaConfigFromContext(s.Context()) + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.UserSubcontrols + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + // HasGroupMemberships applies the HasEdge predicate on the "group_memberships" edge. func HasGroupMemberships() 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 3ed9e092..79a4b1f0 100644 --- a/internal/ent/generated/user_create.go +++ b/internal/ent/generated/user_create.go @@ -10,6 +10,7 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" + "github.com/theopenlane/core/internal/ent/generated/actionplan" "github.com/theopenlane/core/internal/ent/generated/emailverificationtoken" "github.com/theopenlane/core/internal/ent/generated/event" "github.com/theopenlane/core/internal/ent/generated/file" @@ -19,6 +20,7 @@ import ( "github.com/theopenlane/core/internal/ent/generated/orgmembership" "github.com/theopenlane/core/internal/ent/generated/passwordresettoken" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" "github.com/theopenlane/core/internal/ent/generated/tfasetting" "github.com/theopenlane/core/internal/ent/generated/user" "github.com/theopenlane/core/internal/ent/generated/usersetting" @@ -482,6 +484,36 @@ func (uc *UserCreate) AddEvents(e ...*Event) *UserCreate { return uc.AddEventIDs(ids...) } +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by IDs. +func (uc *UserCreate) AddActionplanIDs(ids ...string) *UserCreate { + uc.mutation.AddActionplanIDs(ids...) + return uc +} + +// AddActionplans adds the "actionplans" edges to the ActionPlan entity. +func (uc *UserCreate) AddActionplans(a ...*ActionPlan) *UserCreate { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return uc.AddActionplanIDs(ids...) +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (uc *UserCreate) AddSubcontrolIDs(ids ...string) *UserCreate { + uc.mutation.AddSubcontrolIDs(ids...) + return uc +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (uc *UserCreate) AddSubcontrols(s ...*Subcontrol) *UserCreate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return uc.AddSubcontrolIDs(ids...) +} + // AddGroupMembershipIDs adds the "group_memberships" edge to the GroupMembership entity by IDs. func (uc *UserCreate) AddGroupMembershipIDs(ids ...string) *UserCreate { uc.mutation.AddGroupMembershipIDs(ids...) @@ -967,6 +999,40 @@ func (uc *UserCreate) createSpec() (*User, *sqlgraph.CreateSpec) { } _spec.Edges = append(_spec.Edges, edge) } + if nodes := uc.mutation.ActionplansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.ActionplansTable, + Columns: user.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = uc.schemaConfig.UserActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := uc.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.SubcontrolsTable, + Columns: user.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = uc.schemaConfig.UserSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } if nodes := uc.mutation.GroupMembershipsIDs(); 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 6940b99a..85782ba0 100644 --- a/internal/ent/generated/user_query.go +++ b/internal/ent/generated/user_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/internal/ent/generated/actionplan" "github.com/theopenlane/core/internal/ent/generated/emailverificationtoken" "github.com/theopenlane/core/internal/ent/generated/event" "github.com/theopenlane/core/internal/ent/generated/file" @@ -23,6 +24,7 @@ import ( "github.com/theopenlane/core/internal/ent/generated/passwordresettoken" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" "github.com/theopenlane/core/internal/ent/generated/tfasetting" "github.com/theopenlane/core/internal/ent/generated/user" "github.com/theopenlane/core/internal/ent/generated/usersetting" @@ -49,6 +51,8 @@ type UserQuery struct { withFiles *FileQuery withFile *FileQuery withEvents *EventQuery + withActionplans *ActionPlanQuery + withSubcontrols *SubcontrolQuery withGroupMemberships *GroupMembershipQuery withOrgMemberships *OrgMembershipQuery loadTotal []func(context.Context, []*User) error @@ -62,6 +66,8 @@ type UserQuery struct { withNamedWebauthn map[string]*WebauthnQuery withNamedFiles map[string]*FileQuery withNamedEvents map[string]*EventQuery + withNamedActionplans map[string]*ActionPlanQuery + withNamedSubcontrols map[string]*SubcontrolQuery withNamedGroupMemberships map[string]*GroupMembershipQuery withNamedOrgMemberships map[string]*OrgMembershipQuery // intermediate query (i.e. traversal path). @@ -375,6 +381,56 @@ func (uq *UserQuery) QueryEvents() *EventQuery { return query } +// QueryActionplans chains the current query on the "actionplans" edge. +func (uq *UserQuery) QueryActionplans() *ActionPlanQuery { + query := (&ActionPlanClient{config: uq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := uq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := uq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(user.Table, user.FieldID, selector), + sqlgraph.To(actionplan.Table, actionplan.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, user.ActionplansTable, user.ActionplansPrimaryKey...), + ) + schemaConfig := uq.schemaConfig + step.To.Schema = schemaConfig.ActionPlan + step.Edge.Schema = schemaConfig.UserActionplans + fromU = sqlgraph.SetNeighbors(uq.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QuerySubcontrols chains the current query on the "subcontrols" edge. +func (uq *UserQuery) QuerySubcontrols() *SubcontrolQuery { + query := (&SubcontrolClient{config: uq.config}).Query() + query.path = func(ctx context.Context) (fromU *sql.Selector, err error) { + if err := uq.prepareQuery(ctx); err != nil { + return nil, err + } + selector := uq.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(user.Table, user.FieldID, selector), + sqlgraph.To(subcontrol.Table, subcontrol.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, user.SubcontrolsTable, user.SubcontrolsPrimaryKey...), + ) + schemaConfig := uq.schemaConfig + step.To.Schema = schemaConfig.Subcontrol + step.Edge.Schema = schemaConfig.UserSubcontrols + fromU = sqlgraph.SetNeighbors(uq.driver.Dialect(), step) + return fromU, nil + } + return query +} + // QueryGroupMemberships chains the current query on the "group_memberships" edge. func (uq *UserQuery) QueryGroupMemberships() *GroupMembershipQuery { query := (&GroupMembershipClient{config: uq.config}).Query() @@ -628,6 +684,8 @@ func (uq *UserQuery) Clone() *UserQuery { withFiles: uq.withFiles.Clone(), withFile: uq.withFile.Clone(), withEvents: uq.withEvents.Clone(), + withActionplans: uq.withActionplans.Clone(), + withSubcontrols: uq.withSubcontrols.Clone(), withGroupMemberships: uq.withGroupMemberships.Clone(), withOrgMemberships: uq.withOrgMemberships.Clone(), // clone intermediate query. @@ -758,6 +816,28 @@ func (uq *UserQuery) WithEvents(opts ...func(*EventQuery)) *UserQuery { return uq } +// WithActionplans tells the query-builder to eager-load the nodes that are connected to +// the "actionplans" edge. The optional arguments are used to configure the query builder of the edge. +func (uq *UserQuery) WithActionplans(opts ...func(*ActionPlanQuery)) *UserQuery { + query := (&ActionPlanClient{config: uq.config}).Query() + for _, opt := range opts { + opt(query) + } + uq.withActionplans = query + return uq +} + +// 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 (uq *UserQuery) WithSubcontrols(opts ...func(*SubcontrolQuery)) *UserQuery { + query := (&SubcontrolClient{config: uq.config}).Query() + for _, opt := range opts { + opt(query) + } + uq.withSubcontrols = query + return uq +} + // WithGroupMemberships tells the query-builder to eager-load the nodes that are connected to // the "group_memberships" edge. The optional arguments are used to configure the query builder of the edge. func (uq *UserQuery) WithGroupMemberships(opts ...func(*GroupMembershipQuery)) *UserQuery { @@ -864,7 +944,7 @@ func (uq *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, e var ( nodes = []*User{} _spec = uq.querySpec() - loadedTypes = [13]bool{ + loadedTypes = [15]bool{ uq.withPersonalAccessTokens != nil, uq.withTfaSettings != nil, uq.withSetting != nil, @@ -876,6 +956,8 @@ func (uq *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, e uq.withFiles != nil, uq.withFile != nil, uq.withEvents != nil, + uq.withActionplans != nil, + uq.withSubcontrols != nil, uq.withGroupMemberships != nil, uq.withOrgMemberships != nil, } @@ -984,6 +1066,20 @@ func (uq *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, e return nil, err } } + if query := uq.withActionplans; query != nil { + if err := uq.loadActionplans(ctx, query, nodes, + func(n *User) { n.Edges.Actionplans = []*ActionPlan{} }, + func(n *User, e *ActionPlan) { n.Edges.Actionplans = append(n.Edges.Actionplans, e) }); err != nil { + return nil, err + } + } + if query := uq.withSubcontrols; query != nil { + if err := uq.loadSubcontrols(ctx, query, nodes, + func(n *User) { n.Edges.Subcontrols = []*Subcontrol{} }, + func(n *User, e *Subcontrol) { n.Edges.Subcontrols = append(n.Edges.Subcontrols, e) }); err != nil { + return nil, err + } + } if query := uq.withGroupMemberships; query != nil { if err := uq.loadGroupMemberships(ctx, query, nodes, func(n *User) { n.Edges.GroupMemberships = []*GroupMembership{} }, @@ -1061,6 +1157,20 @@ func (uq *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, e return nil, err } } + for name, query := range uq.withNamedActionplans { + if err := uq.loadActionplans(ctx, query, nodes, + func(n *User) { n.appendNamedActionplans(name) }, + func(n *User, e *ActionPlan) { n.appendNamedActionplans(name, e) }); err != nil { + return nil, err + } + } + for name, query := range uq.withNamedSubcontrols { + if err := uq.loadSubcontrols(ctx, query, nodes, + func(n *User) { n.appendNamedSubcontrols(name) }, + func(n *User, e *Subcontrol) { n.appendNamedSubcontrols(name, e) }); err != nil { + return nil, err + } + } for name, query := range uq.withNamedGroupMemberships { if err := uq.loadGroupMemberships(ctx, query, nodes, func(n *User) { n.appendNamedGroupMemberships(name) }, @@ -1541,6 +1651,130 @@ func (uq *UserQuery) loadEvents(ctx context.Context, query *EventQuery, nodes [] } return nil } +func (uq *UserQuery) loadActionplans(ctx context.Context, query *ActionPlanQuery, nodes []*User, init func(*User), assign func(*User, *ActionPlan)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*User) + nids := make(map[string]map[*User]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(user.ActionplansTable) + joinT.Schema(uq.schemaConfig.UserActionplans) + s.Join(joinT).On(s.C(actionplan.FieldID), joinT.C(user.ActionplansPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(user.ActionplansPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(user.ActionplansPrimaryKey[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[*User]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*ActionPlan](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 "actionplans" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (uq *UserQuery) loadSubcontrols(ctx context.Context, query *SubcontrolQuery, nodes []*User, init func(*User), assign func(*User, *Subcontrol)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*User) + nids := make(map[string]map[*User]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(user.SubcontrolsTable) + joinT.Schema(uq.schemaConfig.UserSubcontrols) + s.Join(joinT).On(s.C(subcontrol.FieldID), joinT.C(user.SubcontrolsPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(user.SubcontrolsPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(user.SubcontrolsPrimaryKey[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[*User]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Subcontrol](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 "subcontrols" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} func (uq *UserQuery) loadGroupMemberships(ctx context.Context, query *GroupMembershipQuery, nodes []*User, init func(*User), assign func(*User, *GroupMembership)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*User) @@ -1829,6 +2063,34 @@ func (uq *UserQuery) WithNamedEvents(name string, opts ...func(*EventQuery)) *Us return uq } +// WithNamedActionplans tells the query-builder to eager-load the nodes that are connected to the "actionplans" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (uq *UserQuery) WithNamedActionplans(name string, opts ...func(*ActionPlanQuery)) *UserQuery { + query := (&ActionPlanClient{config: uq.config}).Query() + for _, opt := range opts { + opt(query) + } + if uq.withNamedActionplans == nil { + uq.withNamedActionplans = make(map[string]*ActionPlanQuery) + } + uq.withNamedActionplans[name] = query + return uq +} + +// 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 (uq *UserQuery) WithNamedSubcontrols(name string, opts ...func(*SubcontrolQuery)) *UserQuery { + query := (&SubcontrolClient{config: uq.config}).Query() + for _, opt := range opts { + opt(query) + } + if uq.withNamedSubcontrols == nil { + uq.withNamedSubcontrols = make(map[string]*SubcontrolQuery) + } + uq.withNamedSubcontrols[name] = query + return uq +} + // WithNamedGroupMemberships tells the query-builder to eager-load the nodes that are connected to the "group_memberships" // edge with the given name. The optional arguments are used to configure the query builder of the edge. func (uq *UserQuery) WithNamedGroupMemberships(name string, opts ...func(*GroupMembershipQuery)) *UserQuery { diff --git a/internal/ent/generated/user_update.go b/internal/ent/generated/user_update.go index 0d44e43f..b4cd7eed 100644 --- a/internal/ent/generated/user_update.go +++ b/internal/ent/generated/user_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/internal/ent/generated/actionplan" "github.com/theopenlane/core/internal/ent/generated/emailverificationtoken" "github.com/theopenlane/core/internal/ent/generated/event" "github.com/theopenlane/core/internal/ent/generated/file" @@ -22,6 +23,7 @@ import ( "github.com/theopenlane/core/internal/ent/generated/passwordresettoken" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" "github.com/theopenlane/core/internal/ent/generated/predicate" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" "github.com/theopenlane/core/internal/ent/generated/tfasetting" "github.com/theopenlane/core/internal/ent/generated/user" "github.com/theopenlane/core/internal/ent/generated/usersetting" @@ -526,6 +528,36 @@ func (uu *UserUpdate) AddEvents(e ...*Event) *UserUpdate { return uu.AddEventIDs(ids...) } +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by IDs. +func (uu *UserUpdate) AddActionplanIDs(ids ...string) *UserUpdate { + uu.mutation.AddActionplanIDs(ids...) + return uu +} + +// AddActionplans adds the "actionplans" edges to the ActionPlan entity. +func (uu *UserUpdate) AddActionplans(a ...*ActionPlan) *UserUpdate { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return uu.AddActionplanIDs(ids...) +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (uu *UserUpdate) AddSubcontrolIDs(ids ...string) *UserUpdate { + uu.mutation.AddSubcontrolIDs(ids...) + return uu +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (uu *UserUpdate) AddSubcontrols(s ...*Subcontrol) *UserUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return uu.AddSubcontrolIDs(ids...) +} + // AddGroupMembershipIDs adds the "group_memberships" edge to the GroupMembership entity by IDs. func (uu *UserUpdate) AddGroupMembershipIDs(ids ...string) *UserUpdate { uu.mutation.AddGroupMembershipIDs(ids...) @@ -762,6 +794,48 @@ func (uu *UserUpdate) RemoveEvents(e ...*Event) *UserUpdate { return uu.RemoveEventIDs(ids...) } +// ClearActionplans clears all "actionplans" edges to the ActionPlan entity. +func (uu *UserUpdate) ClearActionplans() *UserUpdate { + uu.mutation.ClearActionplans() + return uu +} + +// RemoveActionplanIDs removes the "actionplans" edge to ActionPlan entities by IDs. +func (uu *UserUpdate) RemoveActionplanIDs(ids ...string) *UserUpdate { + uu.mutation.RemoveActionplanIDs(ids...) + return uu +} + +// RemoveActionplans removes "actionplans" edges to ActionPlan entities. +func (uu *UserUpdate) RemoveActionplans(a ...*ActionPlan) *UserUpdate { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return uu.RemoveActionplanIDs(ids...) +} + +// ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. +func (uu *UserUpdate) ClearSubcontrols() *UserUpdate { + uu.mutation.ClearSubcontrols() + return uu +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to Subcontrol entities by IDs. +func (uu *UserUpdate) RemoveSubcontrolIDs(ids ...string) *UserUpdate { + uu.mutation.RemoveSubcontrolIDs(ids...) + return uu +} + +// RemoveSubcontrols removes "subcontrols" edges to Subcontrol entities. +func (uu *UserUpdate) RemoveSubcontrols(s ...*Subcontrol) *UserUpdate { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return uu.RemoveSubcontrolIDs(ids...) +} + // ClearGroupMemberships clears all "group_memberships" edges to the GroupMembership entity. func (uu *UserUpdate) ClearGroupMemberships() *UserUpdate { uu.mutation.ClearGroupMemberships() @@ -1566,6 +1640,102 @@ func (uu *UserUpdate) sqlSave(ctx context.Context) (n int, err error) { } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if uu.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.ActionplansTable, + Columns: user.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = uu.schemaConfig.UserActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := uu.mutation.RemovedActionplansIDs(); len(nodes) > 0 && !uu.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.ActionplansTable, + Columns: user.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = uu.schemaConfig.UserActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := uu.mutation.ActionplansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.ActionplansTable, + Columns: user.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = uu.schemaConfig.UserActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if uu.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.SubcontrolsTable, + Columns: user.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = uu.schemaConfig.UserSubcontrols + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := uu.mutation.RemovedSubcontrolsIDs(); len(nodes) > 0 && !uu.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.SubcontrolsTable, + Columns: user.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = uu.schemaConfig.UserSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := uu.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.SubcontrolsTable, + Columns: user.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = uu.schemaConfig.UserSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } if uu.mutation.GroupMembershipsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, @@ -2167,6 +2337,36 @@ func (uuo *UserUpdateOne) AddEvents(e ...*Event) *UserUpdateOne { return uuo.AddEventIDs(ids...) } +// AddActionplanIDs adds the "actionplans" edge to the ActionPlan entity by IDs. +func (uuo *UserUpdateOne) AddActionplanIDs(ids ...string) *UserUpdateOne { + uuo.mutation.AddActionplanIDs(ids...) + return uuo +} + +// AddActionplans adds the "actionplans" edges to the ActionPlan entity. +func (uuo *UserUpdateOne) AddActionplans(a ...*ActionPlan) *UserUpdateOne { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return uuo.AddActionplanIDs(ids...) +} + +// AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. +func (uuo *UserUpdateOne) AddSubcontrolIDs(ids ...string) *UserUpdateOne { + uuo.mutation.AddSubcontrolIDs(ids...) + return uuo +} + +// AddSubcontrols adds the "subcontrols" edges to the Subcontrol entity. +func (uuo *UserUpdateOne) AddSubcontrols(s ...*Subcontrol) *UserUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return uuo.AddSubcontrolIDs(ids...) +} + // AddGroupMembershipIDs adds the "group_memberships" edge to the GroupMembership entity by IDs. func (uuo *UserUpdateOne) AddGroupMembershipIDs(ids ...string) *UserUpdateOne { uuo.mutation.AddGroupMembershipIDs(ids...) @@ -2403,6 +2603,48 @@ func (uuo *UserUpdateOne) RemoveEvents(e ...*Event) *UserUpdateOne { return uuo.RemoveEventIDs(ids...) } +// ClearActionplans clears all "actionplans" edges to the ActionPlan entity. +func (uuo *UserUpdateOne) ClearActionplans() *UserUpdateOne { + uuo.mutation.ClearActionplans() + return uuo +} + +// RemoveActionplanIDs removes the "actionplans" edge to ActionPlan entities by IDs. +func (uuo *UserUpdateOne) RemoveActionplanIDs(ids ...string) *UserUpdateOne { + uuo.mutation.RemoveActionplanIDs(ids...) + return uuo +} + +// RemoveActionplans removes "actionplans" edges to ActionPlan entities. +func (uuo *UserUpdateOne) RemoveActionplans(a ...*ActionPlan) *UserUpdateOne { + ids := make([]string, len(a)) + for i := range a { + ids[i] = a[i].ID + } + return uuo.RemoveActionplanIDs(ids...) +} + +// ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. +func (uuo *UserUpdateOne) ClearSubcontrols() *UserUpdateOne { + uuo.mutation.ClearSubcontrols() + return uuo +} + +// RemoveSubcontrolIDs removes the "subcontrols" edge to Subcontrol entities by IDs. +func (uuo *UserUpdateOne) RemoveSubcontrolIDs(ids ...string) *UserUpdateOne { + uuo.mutation.RemoveSubcontrolIDs(ids...) + return uuo +} + +// RemoveSubcontrols removes "subcontrols" edges to Subcontrol entities. +func (uuo *UserUpdateOne) RemoveSubcontrols(s ...*Subcontrol) *UserUpdateOne { + ids := make([]string, len(s)) + for i := range s { + ids[i] = s[i].ID + } + return uuo.RemoveSubcontrolIDs(ids...) +} + // ClearGroupMemberships clears all "group_memberships" edges to the GroupMembership entity. func (uuo *UserUpdateOne) ClearGroupMemberships() *UserUpdateOne { uuo.mutation.ClearGroupMemberships() @@ -3237,6 +3479,102 @@ func (uuo *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if uuo.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.ActionplansTable, + Columns: user.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = uuo.schemaConfig.UserActionplans + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := uuo.mutation.RemovedActionplansIDs(); len(nodes) > 0 && !uuo.mutation.ActionplansCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.ActionplansTable, + Columns: user.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = uuo.schemaConfig.UserActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := uuo.mutation.ActionplansIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.ActionplansTable, + Columns: user.ActionplansPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(actionplan.FieldID, field.TypeString), + }, + } + edge.Schema = uuo.schemaConfig.UserActionplans + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if uuo.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.SubcontrolsTable, + Columns: user.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = uuo.schemaConfig.UserSubcontrols + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := uuo.mutation.RemovedSubcontrolsIDs(); len(nodes) > 0 && !uuo.mutation.SubcontrolsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.SubcontrolsTable, + Columns: user.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = uuo.schemaConfig.UserSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := uuo.mutation.SubcontrolsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: user.SubcontrolsTable, + Columns: user.SubcontrolsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subcontrol.FieldID, field.TypeString), + }, + } + edge.Schema = uuo.schemaConfig.UserSubcontrols + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } if uuo.mutation.GroupMembershipsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, diff --git a/internal/ent/schema/actionplan.go b/internal/ent/schema/actionplan.go new file mode 100644 index 00000000..a5d82b4f --- /dev/null +++ b/internal/ent/schema/actionplan.go @@ -0,0 +1,76 @@ +package schema + +import ( + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/schema" + "entgo.io/ent/schema/edge" + "entgo.io/ent/schema/field" + emixin "github.com/theopenlane/entx/mixin" + + "github.com/theopenlane/core/internal/ent/mixin" +) + +// ActionPlan defines the actionplan schema. +type ActionPlan struct { + ent.Schema +} + +// Fields returns actionplan fields. +func (ActionPlan) Fields() []ent.Field { + return []ent.Field{ + field.String("name"). + Comment("the name of the action plan"), + field.Text("description"). + Optional(). + Comment("description of the action plan"), + field.String("status"). + Optional(). + Comment("status of the action plan"), + field.Time("due_date"). + Optional(). + Comment("due date of the action plan"), + field.String("priority"). + Optional(). + Comment("priority of the action plan"), + field.String("source"). + Optional(). + Comment("source of the action plan"), + field.JSON("details", map[string]interface{}{}). + Optional(). + Comment("json data including details of the action plan"), + } +} + +// Edges of the ActionPlan +func (ActionPlan) Edges() []ent.Edge { + return []ent.Edge{ + edge.From("standard", Standard.Type). + Ref("actionplans"), + edge.From("risk", Risk.Type). + Ref("actionplans"), + edge.From("control", Control.Type). + Ref("actionplans"), + edge.From("user", User.Type). + Ref("actionplans"), + } +} + +// Mixin of the ActionPlan +func (ActionPlan) Mixin() []ent.Mixin { + return []ent.Mixin{ + emixin.AuditMixin{}, + mixin.SoftDeleteMixin{}, + emixin.IDMixin{}, + emixin.TagMixin{}, + } +} + +// Annotations of the ActionPlan +func (ActionPlan) Annotations() []schema.Annotation { + return []schema.Annotation{ + entgql.RelayConnection(), + entgql.QueryField(), + entgql.Mutations(entgql.MutationCreate(), (entgql.MutationUpdate())), + } +} diff --git a/internal/ent/schema/actionplan_history.go b/internal/ent/schema/actionplan_history.go new file mode 100644 index 00000000..11af4cf5 --- /dev/null +++ b/internal/ent/schema/actionplan_history.go @@ -0,0 +1,90 @@ +// Code generated by entx.history, DO NOT EDIT. +package schema + +import ( + "time" + + "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/theopenlane/entx" + "github.com/theopenlane/entx/history" +) + +// ActionPlanHistory holds the schema definition for the ActionPlanHistory entity. +type ActionPlanHistory struct { + ent.Schema +} + +// Annotations of the ActionPlanHistory. +func (ActionPlanHistory) Annotations() []schema.Annotation { + return []schema.Annotation{ + entx.SchemaGenSkip(true), + entsql.Annotation{ + Table: "action_plan_history", + }, + history.Annotations{ + IsHistory: true, + Exclude: true, + }, + entgql.QueryField(), + entgql.RelayConnection(), + } +} + +// Fields of the ActionPlanHistory. +func (ActionPlanHistory) Fields() []ent.Field { + historyFields := []ent.Field{ + field.Time("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 := ActionPlan{}.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 + + // append the mixed in field to the history fields + historyFields = append(historyFields, field) + } + } + + original := ActionPlan{} + 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 + + // append the field to the history fields + historyFields = append(historyFields, field) + } + + return historyFields +} + +// Indexes of the ActionPlanHistory +func (ActionPlanHistory) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("history_time"), + } +} diff --git a/internal/ent/schema/control.go b/internal/ent/schema/control.go new file mode 100644 index 00000000..4d7ea10c --- /dev/null +++ b/internal/ent/schema/control.go @@ -0,0 +1,91 @@ +package schema + +import ( + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/schema" + "entgo.io/ent/schema/edge" + "entgo.io/ent/schema/field" + emixin "github.com/theopenlane/entx/mixin" + + "github.com/theopenlane/core/internal/ent/mixin" +) + +// Control defines the control schema. +type Control struct { + ent.Schema +} + +// Fields returns control fields. +func (Control) Fields() []ent.Field { + return []ent.Field{ + field.String("name"). + Comment("the name of the control"), + field.Text("description"). + Optional(). + Comment("description of the control"), + field.String("status"). + Optional(). + Comment("status of the control"), + field.String("control_type"). + Optional(). + Comment("type of the control"), + field.String("version"). + Optional(). + Comment("version of the control"), + field.String("control_number"). + Optional(). + Comment("control number or identifier"), + field.Text("family"). + Optional(). + Comment("family associated with the control"), + field.String("class"). + Optional(). + Comment("class associated with the control"), + field.String("source"). + Optional(). + Comment("source of the control, e.g. framework, template, custom, etc."), + field.Text("satisfies"). + Optional(). + Comment("which control objectives are satisfied by the control"), + field.Text("mapped_frameworks"). + Optional(). + Comment("mapped frameworks"), + field.JSON("details", map[string]interface{}{}). + Optional(). + Comment("json data including details of the control"), + } +} + +// Edges of the Control +func (Control) Edges() []ent.Edge { + return []ent.Edge{ + edge.To("procedures", Procedure.Type), + edge.To("subcontrols", Subcontrol.Type), + edge.To("controlobjectives", ControlObjective.Type), + edge.From("standard", Standard.Type). + Ref("controls"), + edge.To("narratives", Narrative.Type), + edge.To("risks", Risk.Type), + edge.To("actionplans", ActionPlan.Type), + } +} + +// Mixin of the Control +func (Control) Mixin() []ent.Mixin { + return []ent.Mixin{ + emixin.AuditMixin{}, + mixin.SoftDeleteMixin{}, + emixin.IDMixin{}, + emixin.TagMixin{}, + } +} + +// Annotations of the Control +func (Control) Annotations() []schema.Annotation { + return []schema.Annotation{ + entgql.RelayConnection(), + entgql.QueryField(), + entgql.Mutations(entgql.MutationCreate(), (entgql.MutationUpdate())), + } +} diff --git a/internal/ent/schema/control_history.go b/internal/ent/schema/control_history.go new file mode 100644 index 00000000..f2f983cc --- /dev/null +++ b/internal/ent/schema/control_history.go @@ -0,0 +1,90 @@ +// Code generated by entx.history, DO NOT EDIT. +package schema + +import ( + "time" + + "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/theopenlane/entx" + "github.com/theopenlane/entx/history" +) + +// ControlHistory holds the schema definition for the ControlHistory entity. +type ControlHistory struct { + ent.Schema +} + +// Annotations of the ControlHistory. +func (ControlHistory) Annotations() []schema.Annotation { + return []schema.Annotation{ + entx.SchemaGenSkip(true), + entsql.Annotation{ + Table: "control_history", + }, + history.Annotations{ + IsHistory: true, + Exclude: true, + }, + entgql.QueryField(), + entgql.RelayConnection(), + } +} + +// Fields of the ControlHistory. +func (ControlHistory) Fields() []ent.Field { + historyFields := []ent.Field{ + field.Time("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 := Control{}.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 + + // append the mixed in field to the history fields + historyFields = append(historyFields, field) + } + } + + original := Control{} + 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 + + // append the field to the history fields + historyFields = append(historyFields, field) + } + + return historyFields +} + +// Indexes of the ControlHistory +func (ControlHistory) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("history_time"), + } +} diff --git a/internal/ent/schema/controlobjective.go b/internal/ent/schema/controlobjective.go new file mode 100644 index 00000000..9086b853 --- /dev/null +++ b/internal/ent/schema/controlobjective.go @@ -0,0 +1,89 @@ +package schema + +import ( + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/schema" + "entgo.io/ent/schema/edge" + "entgo.io/ent/schema/field" + emixin "github.com/theopenlane/entx/mixin" + + "github.com/theopenlane/core/internal/ent/mixin" +) + +// ControlObjective defines the controlobjective schema. +type ControlObjective struct { + ent.Schema +} + +// Fields returns controlobjective fields. +func (ControlObjective) Fields() []ent.Field { + return []ent.Field{ + field.String("name"). + Comment("the name of the control objective"), + field.Text("description"). + Optional(). + Comment("description of the control objective"), + field.String("status"). + Optional(). + Comment("status of the control objective"), + field.String("control_objective_type"). + Optional(). + Comment("type of the control objective"), + field.String("version"). + Optional(). + Comment("version of the control objective"), + field.String("control_number"). + Optional(). + Comment("number of the control objective"), + field.Text("family"). + Optional(). + Comment("family of the control objective"), + field.String("class"). + Optional(). + Comment("class associated with the control objective"), + field.String("source"). + Optional(). + Comment("source of the control objective, e.g. framework, template, user-defined, etc."), + field.Text("mapped_frameworks"). + Optional(). + Comment("mapped frameworks"), + field.JSON("details", map[string]interface{}{}). + Optional(). + Comment("json data including details of the control objective"), + } +} + +// Edges of the ControlObjective +func (ControlObjective) Edges() []ent.Edge { + return []ent.Edge{ + edge.From("policy", InternalPolicy.Type). + Ref("controlobjectives"), + edge.To("controls", Control.Type), + edge.To("procedures", Procedure.Type), + edge.To("risks", Risk.Type), + edge.To("subcontrols", Subcontrol.Type), + edge.From("standard", Standard.Type). + Ref("controlobjectives"), + edge.To("narratives", Narrative.Type), + } +} + +// Mixin of the ControlObjective +func (ControlObjective) Mixin() []ent.Mixin { + return []ent.Mixin{ + emixin.AuditMixin{}, + mixin.SoftDeleteMixin{}, + emixin.IDMixin{}, + emixin.TagMixin{}, + } +} + +// Annotations of the ControlObjective +func (ControlObjective) Annotations() []schema.Annotation { + return []schema.Annotation{ + entgql.RelayConnection(), + entgql.QueryField(), + entgql.Mutations(entgql.MutationCreate(), (entgql.MutationUpdate())), + } +} diff --git a/internal/ent/schema/controlobjective_history.go b/internal/ent/schema/controlobjective_history.go new file mode 100644 index 00000000..87e25a8f --- /dev/null +++ b/internal/ent/schema/controlobjective_history.go @@ -0,0 +1,90 @@ +// Code generated by entx.history, DO NOT EDIT. +package schema + +import ( + "time" + + "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/theopenlane/entx" + "github.com/theopenlane/entx/history" +) + +// ControlObjectiveHistory holds the schema definition for the ControlObjectiveHistory entity. +type ControlObjectiveHistory struct { + ent.Schema +} + +// Annotations of the ControlObjectiveHistory. +func (ControlObjectiveHistory) Annotations() []schema.Annotation { + return []schema.Annotation{ + entx.SchemaGenSkip(true), + entsql.Annotation{ + Table: "control_objective_history", + }, + history.Annotations{ + IsHistory: true, + Exclude: true, + }, + entgql.QueryField(), + entgql.RelayConnection(), + } +} + +// Fields of the ControlObjectiveHistory. +func (ControlObjectiveHistory) Fields() []ent.Field { + historyFields := []ent.Field{ + field.Time("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 := ControlObjective{}.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 + + // append the mixed in field to the history fields + historyFields = append(historyFields, field) + } + } + + original := ControlObjective{} + 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 + + // append the field to the history fields + historyFields = append(historyFields, field) + } + + return historyFields +} + +// Indexes of the ControlObjectiveHistory +func (ControlObjectiveHistory) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("history_time"), + } +} diff --git a/internal/ent/schema/internalpolicy_history.go b/internal/ent/schema/internalpolicy_history.go new file mode 100644 index 00000000..80dae97d --- /dev/null +++ b/internal/ent/schema/internalpolicy_history.go @@ -0,0 +1,90 @@ +// Code generated by entx.history, DO NOT EDIT. +package schema + +import ( + "time" + + "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/theopenlane/entx" + "github.com/theopenlane/entx/history" +) + +// InternalPolicyHistory holds the schema definition for the InternalPolicyHistory entity. +type InternalPolicyHistory struct { + ent.Schema +} + +// Annotations of the InternalPolicyHistory. +func (InternalPolicyHistory) Annotations() []schema.Annotation { + return []schema.Annotation{ + entx.SchemaGenSkip(true), + entsql.Annotation{ + Table: "internal_policy_history", + }, + history.Annotations{ + IsHistory: true, + Exclude: true, + }, + entgql.QueryField(), + entgql.RelayConnection(), + } +} + +// Fields of the InternalPolicyHistory. +func (InternalPolicyHistory) Fields() []ent.Field { + historyFields := []ent.Field{ + field.Time("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 := InternalPolicy{}.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 + + // append the mixed in field to the history fields + historyFields = append(historyFields, field) + } + } + + original := InternalPolicy{} + 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 + + // append the field to the history fields + historyFields = append(historyFields, field) + } + + return historyFields +} + +// Indexes of the InternalPolicyHistory +func (InternalPolicyHistory) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("history_time"), + } +} diff --git a/internal/ent/schema/narrative.go b/internal/ent/schema/narrative.go new file mode 100644 index 00000000..46d2bfb6 --- /dev/null +++ b/internal/ent/schema/narrative.go @@ -0,0 +1,67 @@ +package schema + +import ( + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/schema" + "entgo.io/ent/schema/edge" + "entgo.io/ent/schema/field" + emixin "github.com/theopenlane/entx/mixin" + + "github.com/theopenlane/core/internal/ent/mixin" +) + +// Narrative defines the narrative schema +type Narrative struct { + ent.Schema +} + +// Fields returns narrative fields +func (Narrative) Fields() []ent.Field { + return []ent.Field{ + field.String("name"). + Comment("the name of the narrative"), + field.Text("description"). + Optional(). + Comment("the description of the narrative"), + field.Text("satisfies"). + Optional(). + Comment("which controls are satisfied by the narrative"), + field.JSON("details", map[string]interface{}{}). + Optional(). + Comment("json data for the narrative document"), + } +} + +// Edges of the Narrative +func (Narrative) Edges() []ent.Edge { + return []ent.Edge{ + edge.From("policy", InternalPolicy.Type). + Ref("narratives"), + edge.From("control", Control.Type). + Ref("narratives"), + edge.From("procedure", Procedure.Type). + Ref("narratives"), + edge.From("controlobjective", ControlObjective.Type). + Ref("narratives"), + } +} + +// Mixin of the Narrative +func (Narrative) Mixin() []ent.Mixin { + return []ent.Mixin{ + emixin.AuditMixin{}, + mixin.SoftDeleteMixin{}, + emixin.IDMixin{}, + emixin.TagMixin{}, + } +} + +// Annotations of the Narrative +func (Narrative) Annotations() []schema.Annotation { + return []schema.Annotation{ + entgql.RelayConnection(), + entgql.QueryField(), + entgql.Mutations(entgql.MutationCreate(), (entgql.MutationUpdate())), + } +} diff --git a/internal/ent/schema/narrative_history.go b/internal/ent/schema/narrative_history.go new file mode 100644 index 00000000..93950f8e --- /dev/null +++ b/internal/ent/schema/narrative_history.go @@ -0,0 +1,90 @@ +// Code generated by entx.history, DO NOT EDIT. +package schema + +import ( + "time" + + "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/theopenlane/entx" + "github.com/theopenlane/entx/history" +) + +// NarrativeHistory holds the schema definition for the NarrativeHistory entity. +type NarrativeHistory struct { + ent.Schema +} + +// Annotations of the NarrativeHistory. +func (NarrativeHistory) Annotations() []schema.Annotation { + return []schema.Annotation{ + entx.SchemaGenSkip(true), + entsql.Annotation{ + Table: "narrative_history", + }, + history.Annotations{ + IsHistory: true, + Exclude: true, + }, + entgql.QueryField(), + entgql.RelayConnection(), + } +} + +// Fields of the NarrativeHistory. +func (NarrativeHistory) Fields() []ent.Field { + historyFields := []ent.Field{ + field.Time("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 := Narrative{}.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 + + // append the mixed in field to the history fields + historyFields = append(historyFields, field) + } + } + + original := Narrative{} + 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 + + // append the field to the history fields + historyFields = append(historyFields, field) + } + + return historyFields +} + +// Indexes of the NarrativeHistory +func (NarrativeHistory) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("history_time"), + } +} diff --git a/internal/ent/schema/note.go b/internal/ent/schema/note.go index ae0638c2..a7f97d70 100644 --- a/internal/ent/schema/note.go +++ b/internal/ent/schema/note.go @@ -39,7 +39,7 @@ func (Note) Mixin() []ent.Mixin { emixin.IDMixin{}, mixin.SoftDeleteMixin{}, emixin.TagMixin{}, - NewOrgOwnMixinWithRef("notes"), + NewOrgOwnMixinWithRef("notes"), // TODO: update to object owned mixin instead of org owned } } @@ -49,6 +49,7 @@ func (Note) Edges() []ent.Edge { edge.From("entity", Entity.Type). Unique(). Ref("notes"), + edge.To("subcontrols", Subcontrol.Type), } } diff --git a/internal/ent/schema/policy.go b/internal/ent/schema/policy.go new file mode 100644 index 00000000..c02d3f79 --- /dev/null +++ b/internal/ent/schema/policy.go @@ -0,0 +1,74 @@ +package schema + +import ( + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/schema" + "entgo.io/ent/schema/edge" + "entgo.io/ent/schema/field" + emixin "github.com/theopenlane/entx/mixin" + + "github.com/theopenlane/core/internal/ent/mixin" +) + +// InternalPolicy defines the policy schema. +type InternalPolicy struct { + ent.Schema +} + +// Fields returns policy fields. +func (InternalPolicy) Fields() []ent.Field { + return []ent.Field{ + field.String("name"). + Comment("the name of the policy"), + field.Text("description"). + Comment("description of the policy"), + field.String("status"). + Optional(). + Comment("status of the policy"), + field.String("policy_type"). + Optional(). + Comment("type of the policy"), + field.String("version"). + Optional(). + Comment("version of the policy"), + field.Text("purpose_and_scope"). + Optional(). + Comment("purpose and scope"), + field.Text("background"). + Optional(). + Comment("background of the policy"), + field.JSON("details", map[string]interface{}{}). + Optional(). + Comment("json data for the policy document"), + } +} + +// Edges of the InternalPolicy +func (InternalPolicy) Edges() []ent.Edge { + return []ent.Edge{ + edge.To("controlobjectives", ControlObjective.Type), + edge.To("controls", Control.Type), + edge.To("procedures", Procedure.Type), + edge.To("narratives", Narrative.Type), + } +} + +// Mixin of the InternalPolicy +func (InternalPolicy) Mixin() []ent.Mixin { + return []ent.Mixin{ + emixin.AuditMixin{}, + mixin.SoftDeleteMixin{}, + emixin.IDMixin{}, + emixin.TagMixin{}, + } +} + +// Annotations of the InternalPolicy +func (InternalPolicy) Annotations() []schema.Annotation { + return []schema.Annotation{ + entgql.RelayConnection(), + entgql.QueryField(), + entgql.Mutations(entgql.MutationCreate(), (entgql.MutationUpdate())), + } +} diff --git a/internal/ent/schema/procedure.go b/internal/ent/schema/procedure.go new file mode 100644 index 00000000..d7329468 --- /dev/null +++ b/internal/ent/schema/procedure.go @@ -0,0 +1,80 @@ +package schema + +import ( + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/schema" + "entgo.io/ent/schema/edge" + "entgo.io/ent/schema/field" + emixin "github.com/theopenlane/entx/mixin" + + "github.com/theopenlane/core/internal/ent/mixin" +) + +// Procedure defines the procedure schema. +type Procedure struct { + ent.Schema +} + +// Fields returns procedure fields. +func (Procedure) Fields() []ent.Field { + return []ent.Field{ + field.String("name"). + Comment("the name of the procedure"), + field.Text("description"). + Optional(). + Comment("description of the procedure"), + field.String("status"). + Optional(). + Comment("status of the procedure"), + field.String("procedure_type"). + Optional(). + Comment("type of the procedure"), + field.String("version"). + Optional(). + Comment("version of the procedure"), + field.Text("purpose_and_scope"). + Optional(). + Comment("purpose and scope"), + field.Text("background"). + Optional(). + Comment("background of the procedure"), + field.Text("satisfies"). + Optional(). + Comment("which controls are satisfied by the procedure"), + field.JSON("details", map[string]interface{}{}). + Optional(). + Comment("json data for the procedure document"), + } +} + +// Edges of the Procedure +func (Procedure) Edges() []ent.Edge { + return []ent.Edge{ + edge.From("control", Control.Type). + Ref("procedures"), + edge.From("internalpolicy", InternalPolicy.Type). + Ref("procedures"), + edge.To("narratives", Narrative.Type), + edge.To("risks", Risk.Type), + } +} + +// Mixin of the Procedure +func (Procedure) Mixin() []ent.Mixin { + return []ent.Mixin{ + emixin.AuditMixin{}, + mixin.SoftDeleteMixin{}, + emixin.IDMixin{}, + emixin.TagMixin{}, + } +} + +// Annotations of the Procedure +func (Procedure) Annotations() []schema.Annotation { + return []schema.Annotation{ + entgql.RelayConnection(), + entgql.QueryField(), + entgql.Mutations(entgql.MutationCreate(), (entgql.MutationUpdate())), + } +} diff --git a/internal/ent/schema/procedure_history.go b/internal/ent/schema/procedure_history.go new file mode 100644 index 00000000..39d11ffd --- /dev/null +++ b/internal/ent/schema/procedure_history.go @@ -0,0 +1,90 @@ +// Code generated by entx.history, DO NOT EDIT. +package schema + +import ( + "time" + + "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/theopenlane/entx" + "github.com/theopenlane/entx/history" +) + +// ProcedureHistory holds the schema definition for the ProcedureHistory entity. +type ProcedureHistory struct { + ent.Schema +} + +// Annotations of the ProcedureHistory. +func (ProcedureHistory) Annotations() []schema.Annotation { + return []schema.Annotation{ + entx.SchemaGenSkip(true), + entsql.Annotation{ + Table: "procedure_history", + }, + history.Annotations{ + IsHistory: true, + Exclude: true, + }, + entgql.QueryField(), + entgql.RelayConnection(), + } +} + +// Fields of the ProcedureHistory. +func (ProcedureHistory) Fields() []ent.Field { + historyFields := []ent.Field{ + field.Time("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 := Procedure{}.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 + + // append the mixed in field to the history fields + historyFields = append(historyFields, field) + } + } + + original := Procedure{} + 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 + + // append the field to the history fields + historyFields = append(historyFields, field) + } + + return historyFields +} + +// Indexes of the ProcedureHistory +func (ProcedureHistory) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("history_time"), + } +} diff --git a/internal/ent/schema/risk.go b/internal/ent/schema/risk.go new file mode 100644 index 00000000..d779bf16 --- /dev/null +++ b/internal/ent/schema/risk.go @@ -0,0 +1,85 @@ +package schema + +import ( + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/schema" + "entgo.io/ent/schema/edge" + "entgo.io/ent/schema/field" + emixin "github.com/theopenlane/entx/mixin" + + "github.com/theopenlane/core/internal/ent/mixin" + "github.com/theopenlane/core/pkg/enums" +) + +// Risk defines the risk schema. +type Risk struct { + ent.Schema +} + +// Fields returns risk fields. +func (Risk) Fields() []ent.Field { + return []ent.Field{ + field.String("name"). + Comment("the name of the risk"), + field.Text("description"). + Optional(). + Comment("description of the risk"), + field.String("status"). + Optional(). + Comment("status of the risk - mitigated or not, inflight, etc."), + field.String("risk_type"). + Optional(). + Comment("type of the risk, e.g. strategic, operational, financial, external, etc."), + field.Text("business_costs"). + Optional(). + Comment("business costs associated with the risk"), + field.Enum("impact"). + GoType(enums.RiskImpact("")). + Optional(). + Comment("impact of the risk - high, medium, low"), + field.Enum("likelihood"). + GoType(enums.RiskLikelihood("")). + Optional(). + Comment("likelihood of the risk occurring; unlikely, likely, highly likely"), + field.Text("mitigation"). + Optional(). + Comment("mitigation for the risk"), + field.Text("satisfies"). + Optional(). + Comment("which controls are satisfied by the risk"), + field.JSON("details", map[string]interface{}{}). + Optional(). + Comment("json data for the risk document"), + } +} + +// Edges of the Risk +func (Risk) Edges() []ent.Edge { + return []ent.Edge{ + edge.From("control", Control.Type). + Ref("risks"), + edge.From("procedure", Procedure.Type). + Ref("risks"), + edge.To("actionplans", ActionPlan.Type), + } +} + +// Mixin of the Risk +func (Risk) Mixin() []ent.Mixin { + return []ent.Mixin{ + emixin.AuditMixin{}, + mixin.SoftDeleteMixin{}, + emixin.IDMixin{}, + emixin.TagMixin{}, + } +} + +// Annotations of the Risk +func (Risk) Annotations() []schema.Annotation { + return []schema.Annotation{ + entgql.RelayConnection(), + entgql.QueryField(), + entgql.Mutations(entgql.MutationCreate(), (entgql.MutationUpdate())), + } +} diff --git a/internal/ent/schema/risk_history.go b/internal/ent/schema/risk_history.go new file mode 100644 index 00000000..8cbccfa7 --- /dev/null +++ b/internal/ent/schema/risk_history.go @@ -0,0 +1,90 @@ +// Code generated by entx.history, DO NOT EDIT. +package schema + +import ( + "time" + + "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/theopenlane/entx" + "github.com/theopenlane/entx/history" +) + +// RiskHistory holds the schema definition for the RiskHistory entity. +type RiskHistory struct { + ent.Schema +} + +// Annotations of the RiskHistory. +func (RiskHistory) Annotations() []schema.Annotation { + return []schema.Annotation{ + entx.SchemaGenSkip(true), + entsql.Annotation{ + Table: "risk_history", + }, + history.Annotations{ + IsHistory: true, + Exclude: true, + }, + entgql.QueryField(), + entgql.RelayConnection(), + } +} + +// Fields of the RiskHistory. +func (RiskHistory) Fields() []ent.Field { + historyFields := []ent.Field{ + field.Time("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 := Risk{}.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 + + // append the mixed in field to the history fields + historyFields = append(historyFields, field) + } + } + + original := Risk{} + 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 + + // append the field to the history fields + historyFields = append(historyFields, field) + } + + return historyFields +} + +// Indexes of the RiskHistory +func (RiskHistory) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("history_time"), + } +} diff --git a/internal/ent/schema/standard.go b/internal/ent/schema/standard.go new file mode 100644 index 00000000..a0a3820e --- /dev/null +++ b/internal/ent/schema/standard.go @@ -0,0 +1,81 @@ +package schema + +import ( + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/schema" + "entgo.io/ent/schema/edge" + "entgo.io/ent/schema/field" + emixin "github.com/theopenlane/entx/mixin" + + "github.com/theopenlane/core/internal/ent/mixin" +) + +// Standard defines the standard schema. +type Standard struct { + ent.Schema +} + +// Fields returns standard fields. +func (Standard) Fields() []ent.Field { + return []ent.Field{ + field.String("name"). + Comment("the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc."), + field.Text("description"). + Optional(). + Comment("description of the standard"), + field.String("family"). + Optional(). + Comment("family of the standard, e.g. 800-53, 800-171, 27001, etc."), + field.String("status"). + Optional(). + Comment("status of the standard - active, deprecated, etc."), + field.String("standard_type"). + Optional(). + Comment("type of the standard - security, privacy, etc."), + field.String("version"). + Optional(). + Comment("version of the standard"), + field.Text("purpose_and_scope"). + Optional(). + Comment("purpose and scope"), + field.Text("background"). + Optional(). + Comment("background of the standard"), + field.Text("satisfies"). + Optional(). + Comment("which controls are satisfied by the standard"), + field.JSON("details", map[string]interface{}{}). + Optional(). + Comment("json data with details of the standard"), + } +} + +// Edges of the Standard +func (Standard) Edges() []ent.Edge { + return []ent.Edge{ + edge.To("controlobjectives", ControlObjective.Type), + edge.To("controls", Control.Type), + edge.To("procedures", Procedure.Type), + edge.To("actionplans", ActionPlan.Type), + } +} + +// Mixin of the Standard +func (Standard) Mixin() []ent.Mixin { + return []ent.Mixin{ + emixin.AuditMixin{}, + mixin.SoftDeleteMixin{}, + emixin.IDMixin{}, + emixin.TagMixin{}, + } +} + +// Annotations of the Standard +func (Standard) Annotations() []schema.Annotation { + return []schema.Annotation{ + entgql.RelayConnection(), + entgql.QueryField(), + entgql.Mutations(entgql.MutationCreate(), (entgql.MutationUpdate())), + } +} diff --git a/internal/ent/schema/standard_history.go b/internal/ent/schema/standard_history.go new file mode 100644 index 00000000..5b727bc9 --- /dev/null +++ b/internal/ent/schema/standard_history.go @@ -0,0 +1,90 @@ +// Code generated by entx.history, DO NOT EDIT. +package schema + +import ( + "time" + + "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/theopenlane/entx" + "github.com/theopenlane/entx/history" +) + +// StandardHistory holds the schema definition for the StandardHistory entity. +type StandardHistory struct { + ent.Schema +} + +// Annotations of the StandardHistory. +func (StandardHistory) Annotations() []schema.Annotation { + return []schema.Annotation{ + entx.SchemaGenSkip(true), + entsql.Annotation{ + Table: "standard_history", + }, + history.Annotations{ + IsHistory: true, + Exclude: true, + }, + entgql.QueryField(), + entgql.RelayConnection(), + } +} + +// Fields of the StandardHistory. +func (StandardHistory) Fields() []ent.Field { + historyFields := []ent.Field{ + field.Time("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 := Standard{}.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 + + // append the mixed in field to the history fields + historyFields = append(historyFields, field) + } + } + + original := Standard{} + 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 + + // append the field to the history fields + historyFields = append(historyFields, field) + } + + return historyFields +} + +// Indexes of the StandardHistory +func (StandardHistory) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("history_time"), + } +} diff --git a/internal/ent/schema/subcontrol.go b/internal/ent/schema/subcontrol.go new file mode 100644 index 00000000..24ca7299 --- /dev/null +++ b/internal/ent/schema/subcontrol.go @@ -0,0 +1,102 @@ +package schema + +import ( + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/schema" + "entgo.io/ent/schema/edge" + "entgo.io/ent/schema/field" + emixin "github.com/theopenlane/entx/mixin" + + "github.com/theopenlane/core/internal/ent/mixin" +) + +// Subcontrol defines the file schema. +type Subcontrol struct { + ent.Schema +} + +// Fields returns file fields. +func (Subcontrol) Fields() []ent.Field { + return []ent.Field{ + field.String("name"). + Comment("the name of the subcontrol"), + field.Text("description"). + Optional(). + Comment("description of the subcontrol"), + field.String("status"). + Optional(). + Comment("status of the subcontrol"), + field.String("subcontrol_type"). + Optional(). + Comment("type of the subcontrol"), + field.String("version"). + Optional(). + Comment("version of the control"), + field.String("subcontrol_number"). + Optional(). + Comment("number of the subcontrol"), + field.Text("family"). + Optional(). + Comment("subcontrol family "), + field.String("class"). + Optional(). + Comment("subcontrol class"), + field.String("source"). + Optional(). + Comment("source of the control, e.g. framework, template, user-defined, etc."), + field.Text("mapped_frameworks"). + Optional(). + Comment("mapped frameworks that the subcontrol is part of"), + field.String("implementation_evidence"). + Optional(). + Comment("implementation evidence of the subcontrol"), + field.String("implementation_status"). + Optional(). + Comment("implementation status"), + field.Time("implementation_date"). + Optional(). + Comment("date the subcontrol was implemented"), + field.String("implementation_verification"). + Optional(). + Comment("implementation verification"), + field.Time("implementation_verification_date"). + Optional(). + Comment("date the subcontrol implementation was verified"), + field.JSON("details", map[string]interface{}{}). + Optional(). + Comment("json data details of the subcontrol"), + } +} + +// Edges of the Subcontrol +func (Subcontrol) Edges() []ent.Edge { + return []ent.Edge{ + edge.From("control", Control.Type). + Ref("subcontrols"), + edge.From("user", User.Type). + Ref("subcontrols"), + edge.From("notes", Note.Type). + Unique(). + Ref("subcontrols"), + } +} + +// Mixin of the Subcontrol +func (Subcontrol) Mixin() []ent.Mixin { + return []ent.Mixin{ + emixin.AuditMixin{}, + mixin.SoftDeleteMixin{}, + emixin.IDMixin{}, + emixin.TagMixin{}, + } +} + +// Annotations of the Subcontrol +func (Subcontrol) Annotations() []schema.Annotation { + return []schema.Annotation{ + entgql.RelayConnection(), + entgql.QueryField(), + entgql.Mutations(entgql.MutationCreate(), (entgql.MutationUpdate())), + } +} diff --git a/internal/ent/schema/subcontrol_history.go b/internal/ent/schema/subcontrol_history.go new file mode 100644 index 00000000..bc1d66cf --- /dev/null +++ b/internal/ent/schema/subcontrol_history.go @@ -0,0 +1,90 @@ +// Code generated by entx.history, DO NOT EDIT. +package schema + +import ( + "time" + + "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/theopenlane/entx" + "github.com/theopenlane/entx/history" +) + +// SubcontrolHistory holds the schema definition for the SubcontrolHistory entity. +type SubcontrolHistory struct { + ent.Schema +} + +// Annotations of the SubcontrolHistory. +func (SubcontrolHistory) Annotations() []schema.Annotation { + return []schema.Annotation{ + entx.SchemaGenSkip(true), + entsql.Annotation{ + Table: "subcontrol_history", + }, + history.Annotations{ + IsHistory: true, + Exclude: true, + }, + entgql.QueryField(), + entgql.RelayConnection(), + } +} + +// Fields of the SubcontrolHistory. +func (SubcontrolHistory) Fields() []ent.Field { + historyFields := []ent.Field{ + field.Time("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 := Subcontrol{}.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 + + // append the mixed in field to the history fields + historyFields = append(historyFields, field) + } + } + + original := Subcontrol{} + 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 + + // append the field to the history fields + historyFields = append(historyFields, field) + } + + return historyFields +} + +// Indexes of the SubcontrolHistory +func (SubcontrolHistory) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("history_time"), + } +} diff --git a/internal/ent/schema/user.go b/internal/ent/schema/user.go index 18e8f86e..2a153ae8 100644 --- a/internal/ent/schema/user.go +++ b/internal/ent/schema/user.go @@ -176,6 +176,8 @@ func (User) Edges() []ent.Edge { edge.To("file", File.Type). Field("avatar_local_file_id").Unique(), edge.To("events", Event.Type), + edge.To("actionplans", ActionPlan.Type), + edge.To("subcontrols", Subcontrol.Type), } } diff --git a/internal/graphapi/actionplan.resolvers.go b/internal/graphapi/actionplan.resolvers.go new file mode 100644 index 00000000..f99c35ca --- /dev/null +++ b/internal/graphapi/actionplan.resolvers.go @@ -0,0 +1,92 @@ +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/rs/zerolog/log" + "github.com/theopenlane/core/internal/ent/generated" +) + +// CreateActionPlan is the resolver for the createActionPlan field. +func (r *mutationResolver) CreateActionPlan(ctx context.Context, input generated.CreateActionPlanInput) (*ActionPlanCreatePayload, error) { + res, err := withTransactionalMutation(ctx).ActionPlan.Create().SetInput(input).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "actionplan"}) + } + + return &ActionPlanCreatePayload{ + ActionPlan: res, + }, nil +} + +// CreateBulkActionPlan is the resolver for the createBulkActionPlan field. +func (r *mutationResolver) CreateBulkActionPlan(ctx context.Context, input []*generated.CreateActionPlanInput) (*ActionPlanBulkCreatePayload, error) { + return r.bulkCreateActionPlan(ctx, input) +} + +// CreateBulkCSVActionPlan is the resolver for the createBulkCSVActionPlan field. +func (r *mutationResolver) CreateBulkCSVActionPlan(ctx context.Context, input graphql.Upload) (*ActionPlanBulkCreatePayload, error) { + data, err := unmarshalBulkData[generated.CreateActionPlanInput](input) + if err != nil { + log.Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, err + } + + return r.bulkCreateActionPlan(ctx, data) +} + +// UpdateActionPlan is the resolver for the updateActionPlan field. +func (r *mutationResolver) UpdateActionPlan(ctx context.Context, id string, input generated.UpdateActionPlanInput) (*ActionPlanUpdatePayload, error) { + res, err := withTransactionalMutation(ctx).ActionPlan.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "actionplan"}) + } + + // setup update request + req := res.Update().SetInput(input).AppendTags(input.AppendTags) + + res, err = req.Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "actionplan"}) + } + + return &ActionPlanUpdatePayload{ + ActionPlan: res, + }, nil +} + +// DeleteActionPlan is the resolver for the deleteActionPlan field. +func (r *mutationResolver) DeleteActionPlan(ctx context.Context, id string) (*ActionPlanDeletePayload, error) { + if err := withTransactionalMutation(ctx).ActionPlan.DeleteOneID(id).Exec(ctx); err != nil { + return nil, parseRequestError(err, action{action: ActionDelete, object: "actionplan"}) + } + + if err := generated.ActionPlanEdgeCleanup(ctx, id); err != nil { + return nil, newCascadeDeleteError(err) + } + + return &ActionPlanDeletePayload{ + DeletedID: id, + }, nil +} + +// ActionPlan is the resolver for the actionPlan field. +func (r *queryResolver) ActionPlan(ctx context.Context, id string) (*generated.ActionPlan, error) { + res, err := withTransactionalMutation(ctx).ActionPlan.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionGet, object: "actionplan"}) + } + + return res, nil +} + +// Mutation returns MutationResolver implementation. +func (r *Resolver) Mutation() MutationResolver { return &mutationResolver{r} } + +type mutationResolver struct{ *Resolver } diff --git a/internal/graphapi/adminsearch.resolvers.go b/internal/graphapi/adminsearch.resolvers.go index 9dea6b55..1299adff 100644 --- a/internal/graphapi/adminsearch.resolvers.go +++ b/internal/graphapi/adminsearch.resolvers.go @@ -18,7 +18,10 @@ func (r *queryResolver) AdminSearch(ctx context.Context, query string) (*SearchR var ( errors []error apitokenResults []*generated.APIToken + actionplanResults []*generated.ActionPlan contactResults []*generated.Contact + controlResults []*generated.Control + controlobjectiveResults []*generated.ControlObjective documentdataResults []*generated.DocumentData entitlementResults []*generated.Entitlement entitlementplanResults []*generated.EntitlementPlan @@ -31,11 +34,17 @@ func (r *queryResolver) AdminSearch(ctx context.Context, query string) (*SearchR groupResults []*generated.Group groupsettingResults []*generated.GroupSetting integrationResults []*generated.Integration + internalpolicyResults []*generated.InternalPolicy + narrativeResults []*generated.Narrative oauthproviderResults []*generated.OauthProvider ohauthtootokenResults []*generated.OhAuthTooToken organizationResults []*generated.Organization organizationsettingResults []*generated.OrganizationSetting personalaccesstokenResults []*generated.PersonalAccessToken + procedureResults []*generated.Procedure + riskResults []*generated.Risk + standardResults []*generated.Standard + subcontrolResults []*generated.Subcontrol subscriberResults []*generated.Subscriber tfasettingResults []*generated.TFASetting templateResults []*generated.Template @@ -52,6 +61,13 @@ func (r *queryResolver) AdminSearch(ctx context.Context, query string) (*SearchR errors = append(errors, err) } }, + func() { + var err error + actionplanResults, err = searchActionPlans(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, func() { var err error contactResults, err = searchContacts(ctx, query) @@ -59,6 +75,20 @@ func (r *queryResolver) AdminSearch(ctx context.Context, query string) (*SearchR errors = append(errors, err) } }, + func() { + var err error + controlResults, err = searchControls(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, + func() { + var err error + controlobjectiveResults, err = searchControlObjectives(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, func() { var err error documentdataResults, err = searchDocumentData(ctx, query) @@ -143,6 +173,20 @@ func (r *queryResolver) AdminSearch(ctx context.Context, query string) (*SearchR errors = append(errors, err) } }, + func() { + var err error + internalpolicyResults, err = searchInternalPolicies(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, + func() { + var err error + narrativeResults, err = searchNarratives(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, func() { var err error oauthproviderResults, err = searchOauthProviders(ctx, query) @@ -178,6 +222,34 @@ func (r *queryResolver) AdminSearch(ctx context.Context, query string) (*SearchR errors = append(errors, err) } }, + func() { + var err error + procedureResults, err = searchProcedures(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, + func() { + var err error + riskResults, err = searchRisks(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, + func() { + var err error + standardResults, err = searchStandards(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, + func() { + var err error + subcontrolResults, err = searchSubcontrols(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, func() { var err error subscriberResults, err = searchSubscribers(ctx, query) @@ -235,9 +307,18 @@ func (r *queryResolver) AdminSearch(ctx context.Context, query string) (*SearchR APITokenSearchResult{ APITokens: apitokenResults, }, + ActionPlanSearchResult{ + ActionPlans: actionplanResults, + }, ContactSearchResult{ Contacts: contactResults, }, + ControlSearchResult{ + Controls: controlResults, + }, + ControlObjectiveSearchResult{ + ControlObjectives: controlobjectiveResults, + }, DocumentDataSearchResult{ DocumentData: documentdataResults, }, @@ -274,6 +355,12 @@ func (r *queryResolver) AdminSearch(ctx context.Context, query string) (*SearchR IntegrationSearchResult{ Integrations: integrationResults, }, + InternalPolicySearchResult{ + InternalPolicies: internalpolicyResults, + }, + NarrativeSearchResult{ + Narratives: narrativeResults, + }, OauthProviderSearchResult{ OauthProviders: oauthproviderResults, }, @@ -289,6 +376,18 @@ func (r *queryResolver) AdminSearch(ctx context.Context, query string) (*SearchR PersonalAccessTokenSearchResult{ PersonalAccessTokens: personalaccesstokenResults, }, + ProcedureSearchResult{ + Procedures: procedureResults, + }, + RiskSearchResult{ + Risks: riskResults, + }, + StandardSearchResult{ + Standards: standardResults, + }, + SubcontrolSearchResult{ + Subcontrols: subcontrolResults, + }, SubscriberSearchResult{ Subscribers: subscriberResults, }, @@ -322,6 +421,18 @@ func (r *queryResolver) AdminAPITokenSearch(ctx context.Context, query string) ( APITokens: apitokenResults, }, nil } +func (r *queryResolver) AdminActionPlanSearch(ctx context.Context, query string) (*ActionPlanSearchResult, error) { + actionplanResults, err := adminSearchActionPlans(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &ActionPlanSearchResult{ + ActionPlans: actionplanResults, + }, nil +} func (r *queryResolver) AdminContactSearch(ctx context.Context, query string) (*ContactSearchResult, error) { contactResults, err := adminSearchContacts(ctx, query) @@ -334,6 +445,30 @@ func (r *queryResolver) AdminContactSearch(ctx context.Context, query string) (* Contacts: contactResults, }, nil } +func (r *queryResolver) AdminControlSearch(ctx context.Context, query string) (*ControlSearchResult, error) { + controlResults, err := adminSearchControls(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &ControlSearchResult{ + Controls: controlResults, + }, nil +} +func (r *queryResolver) AdminControlObjectiveSearch(ctx context.Context, query string) (*ControlObjectiveSearchResult, error) { + controlobjectiveResults, err := adminSearchControlObjectives(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &ControlObjectiveSearchResult{ + ControlObjectives: controlobjectiveResults, + }, nil +} func (r *queryResolver) AdminDocumentDataSearch(ctx context.Context, query string) (*DocumentDataSearchResult, error) { documentdataResults, err := adminSearchDocumentData(ctx, query) @@ -478,6 +613,30 @@ func (r *queryResolver) AdminIntegrationSearch(ctx context.Context, query string Integrations: integrationResults, }, nil } +func (r *queryResolver) AdminInternalPolicySearch(ctx context.Context, query string) (*InternalPolicySearchResult, error) { + internalpolicyResults, err := adminSearchInternalPolicies(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &InternalPolicySearchResult{ + InternalPolicies: internalpolicyResults, + }, nil +} +func (r *queryResolver) AdminNarrativeSearch(ctx context.Context, query string) (*NarrativeSearchResult, error) { + narrativeResults, err := adminSearchNarratives(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &NarrativeSearchResult{ + Narratives: narrativeResults, + }, nil +} func (r *queryResolver) AdminOauthProviderSearch(ctx context.Context, query string) (*OauthProviderSearchResult, error) { oauthproviderResults, err := adminSearchOauthProviders(ctx, query) @@ -538,6 +697,54 @@ func (r *queryResolver) AdminPersonalAccessTokenSearch(ctx context.Context, quer PersonalAccessTokens: personalaccesstokenResults, }, nil } +func (r *queryResolver) AdminProcedureSearch(ctx context.Context, query string) (*ProcedureSearchResult, error) { + procedureResults, err := adminSearchProcedures(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &ProcedureSearchResult{ + Procedures: procedureResults, + }, nil +} +func (r *queryResolver) AdminRiskSearch(ctx context.Context, query string) (*RiskSearchResult, error) { + riskResults, err := adminSearchRisks(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &RiskSearchResult{ + Risks: riskResults, + }, nil +} +func (r *queryResolver) AdminStandardSearch(ctx context.Context, query string) (*StandardSearchResult, error) { + standardResults, err := adminSearchStandards(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &StandardSearchResult{ + Standards: standardResults, + }, nil +} +func (r *queryResolver) AdminSubcontrolSearch(ctx context.Context, query string) (*SubcontrolSearchResult, error) { + subcontrolResults, err := adminSearchSubcontrols(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &SubcontrolSearchResult{ + Subcontrols: subcontrolResults, + }, nil +} func (r *queryResolver) AdminSubscriberSearch(ctx context.Context, query string) (*SubscriberSearchResult, error) { subscriberResults, err := adminSearchSubscribers(ctx, query) diff --git a/internal/graphapi/apitoken.resolvers.go b/internal/graphapi/apitoken.resolvers.go index 92d38e1a..95d74656 100644 --- a/internal/graphapi/apitoken.resolvers.go +++ b/internal/graphapi/apitoken.resolvers.go @@ -128,8 +128,3 @@ func (r *queryResolver) APIToken(ctx context.Context, id string) (*generated.API return apiToken, nil } - -// Mutation returns MutationResolver implementation. -func (r *Resolver) Mutation() MutationResolver { return &mutationResolver{r} } - -type mutationResolver struct{ *Resolver } diff --git a/internal/graphapi/bulk.go b/internal/graphapi/bulk.go index 3d8b72b2..bc8c5f5f 100644 --- a/internal/graphapi/bulk.go +++ b/internal/graphapi/bulk.go @@ -8,6 +8,25 @@ import ( "github.com/theopenlane/core/internal/ent/generated" ) +// bulkCreateActionPlan uses the CreateBulk function to create multiple ActionPlan entities +func (r *mutationResolver) bulkCreateActionPlan(ctx context.Context, input []*generated.CreateActionPlanInput) (*ActionPlanBulkCreatePayload, error) { + c := withTransactionalMutation(ctx) + builders := make([]*generated.ActionPlanCreate, len(input)) + for i, data := range input { + builders[i] = c.ActionPlan.Create().SetInput(*data) + } + + res, err := c.ActionPlan.CreateBulk(builders...).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "actionplan"}) + } + + // return response + return &ActionPlanBulkCreatePayload{ + ActionPlans: res, + }, nil +} + // bulkCreateAPIToken uses the CreateBulk function to create multiple APIToken entities func (r *mutationResolver) bulkCreateAPIToken(ctx context.Context, input []*generated.CreateAPITokenInput) (*APITokenBulkCreatePayload, error) { c := withTransactionalMutation(ctx) @@ -46,6 +65,44 @@ func (r *mutationResolver) bulkCreateContact(ctx context.Context, input []*gener }, nil } +// bulkCreateControl uses the CreateBulk function to create multiple Control entities +func (r *mutationResolver) bulkCreateControl(ctx context.Context, input []*generated.CreateControlInput) (*ControlBulkCreatePayload, error) { + c := withTransactionalMutation(ctx) + builders := make([]*generated.ControlCreate, len(input)) + for i, data := range input { + builders[i] = c.Control.Create().SetInput(*data) + } + + res, err := c.Control.CreateBulk(builders...).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "control"}) + } + + // return response + return &ControlBulkCreatePayload{ + Controls: res, + }, nil +} + +// bulkCreateControlObjective uses the CreateBulk function to create multiple ControlObjective entities +func (r *mutationResolver) bulkCreateControlObjective(ctx context.Context, input []*generated.CreateControlObjectiveInput) (*ControlObjectiveBulkCreatePayload, error) { + c := withTransactionalMutation(ctx) + builders := make([]*generated.ControlObjectiveCreate, len(input)) + for i, data := range input { + builders[i] = c.ControlObjective.Create().SetInput(*data) + } + + res, err := c.ControlObjective.CreateBulk(builders...).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "controlobjective"}) + } + + // return response + return &ControlObjectiveBulkCreatePayload{ + ControlObjectives: res, + }, nil +} + // bulkCreateDocumentData uses the CreateBulk function to create multiple DocumentData entities func (r *mutationResolver) bulkCreateDocumentData(ctx context.Context, input []*generated.CreateDocumentDataInput) (*DocumentDataBulkCreatePayload, error) { c := withTransactionalMutation(ctx) @@ -293,6 +350,25 @@ func (r *mutationResolver) bulkCreateIntegration(ctx context.Context, input []*g }, nil } +// bulkCreateInternalPolicy uses the CreateBulk function to create multiple InternalPolicy entities +func (r *mutationResolver) bulkCreateInternalPolicy(ctx context.Context, input []*generated.CreateInternalPolicyInput) (*InternalPolicyBulkCreatePayload, error) { + c := withTransactionalMutation(ctx) + builders := make([]*generated.InternalPolicyCreate, len(input)) + for i, data := range input { + builders[i] = c.InternalPolicy.Create().SetInput(*data) + } + + res, err := c.InternalPolicy.CreateBulk(builders...).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "internalpolicy"}) + } + + // return response + return &InternalPolicyBulkCreatePayload{ + InternalPolicies: res, + }, nil +} + // bulkCreateInvite uses the CreateBulk function to create multiple Invite entities func (r *mutationResolver) bulkCreateInvite(ctx context.Context, input []*generated.CreateInviteInput) (*InviteBulkCreatePayload, error) { c := withTransactionalMutation(ctx) @@ -312,6 +388,25 @@ func (r *mutationResolver) bulkCreateInvite(ctx context.Context, input []*genera }, nil } +// bulkCreateNarrative uses the CreateBulk function to create multiple Narrative entities +func (r *mutationResolver) bulkCreateNarrative(ctx context.Context, input []*generated.CreateNarrativeInput) (*NarrativeBulkCreatePayload, error) { + c := withTransactionalMutation(ctx) + builders := make([]*generated.NarrativeCreate, len(input)) + for i, data := range input { + builders[i] = c.Narrative.Create().SetInput(*data) + } + + res, err := c.Narrative.CreateBulk(builders...).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "narrative"}) + } + + // return response + return &NarrativeBulkCreatePayload{ + Narratives: res, + }, nil +} + // bulkCreateOauthProvider uses the CreateBulk function to create multiple OauthProvider entities func (r *mutationResolver) bulkCreateOauthProvider(ctx context.Context, input []*generated.CreateOauthProviderInput) (*OauthProviderBulkCreatePayload, error) { c := withTransactionalMutation(ctx) @@ -426,6 +521,82 @@ func (r *mutationResolver) bulkCreatePersonalAccessToken(ctx context.Context, in }, nil } +// bulkCreateProcedure uses the CreateBulk function to create multiple Procedure entities +func (r *mutationResolver) bulkCreateProcedure(ctx context.Context, input []*generated.CreateProcedureInput) (*ProcedureBulkCreatePayload, error) { + c := withTransactionalMutation(ctx) + builders := make([]*generated.ProcedureCreate, len(input)) + for i, data := range input { + builders[i] = c.Procedure.Create().SetInput(*data) + } + + res, err := c.Procedure.CreateBulk(builders...).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "procedure"}) + } + + // return response + return &ProcedureBulkCreatePayload{ + Procedures: res, + }, nil +} + +// bulkCreateRisk uses the CreateBulk function to create multiple Risk entities +func (r *mutationResolver) bulkCreateRisk(ctx context.Context, input []*generated.CreateRiskInput) (*RiskBulkCreatePayload, error) { + c := withTransactionalMutation(ctx) + builders := make([]*generated.RiskCreate, len(input)) + for i, data := range input { + builders[i] = c.Risk.Create().SetInput(*data) + } + + res, err := c.Risk.CreateBulk(builders...).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "risk"}) + } + + // return response + return &RiskBulkCreatePayload{ + Risks: res, + }, nil +} + +// bulkCreateStandard uses the CreateBulk function to create multiple Standard entities +func (r *mutationResolver) bulkCreateStandard(ctx context.Context, input []*generated.CreateStandardInput) (*StandardBulkCreatePayload, error) { + c := withTransactionalMutation(ctx) + builders := make([]*generated.StandardCreate, len(input)) + for i, data := range input { + builders[i] = c.Standard.Create().SetInput(*data) + } + + res, err := c.Standard.CreateBulk(builders...).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "standard"}) + } + + // return response + return &StandardBulkCreatePayload{ + Standards: res, + }, nil +} + +// bulkCreateSubcontrol uses the CreateBulk function to create multiple Subcontrol entities +func (r *mutationResolver) bulkCreateSubcontrol(ctx context.Context, input []*generated.CreateSubcontrolInput) (*SubcontrolBulkCreatePayload, error) { + c := withTransactionalMutation(ctx) + builders := make([]*generated.SubcontrolCreate, len(input)) + for i, data := range input { + builders[i] = c.Subcontrol.Create().SetInput(*data) + } + + res, err := c.Subcontrol.CreateBulk(builders...).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "subcontrol"}) + } + + // return response + return &SubcontrolBulkCreatePayload{ + Subcontrols: res, + }, nil +} + // bulkCreateSubscriber uses the CreateBulk function to create multiple Subscriber entities func (r *mutationResolver) bulkCreateSubscriber(ctx context.Context, input []*generated.CreateSubscriberInput) (*SubscriberBulkCreatePayload, error) { c := withTransactionalMutation(ctx) diff --git a/internal/graphapi/control.resolvers.go b/internal/graphapi/control.resolvers.go new file mode 100644 index 00000000..66d5cd77 --- /dev/null +++ b/internal/graphapi/control.resolvers.go @@ -0,0 +1,87 @@ +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/rs/zerolog/log" + "github.com/theopenlane/core/internal/ent/generated" +) + +// CreateControl is the resolver for the createControl field. +func (r *mutationResolver) CreateControl(ctx context.Context, input generated.CreateControlInput) (*ControlCreatePayload, error) { + res, err := withTransactionalMutation(ctx).Control.Create().SetInput(input).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "control"}) + } + + return &ControlCreatePayload{ + Control: res, + }, nil +} + +// CreateBulkControl is the resolver for the createBulkControl field. +func (r *mutationResolver) CreateBulkControl(ctx context.Context, input []*generated.CreateControlInput) (*ControlBulkCreatePayload, error) { + return r.bulkCreateControl(ctx, input) +} + +// CreateBulkCSVControl is the resolver for the createBulkCSVControl field. +func (r *mutationResolver) CreateBulkCSVControl(ctx context.Context, input graphql.Upload) (*ControlBulkCreatePayload, error) { + data, err := unmarshalBulkData[generated.CreateControlInput](input) + if err != nil { + log.Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, err + } + + return r.bulkCreateControl(ctx, data) +} + +// UpdateControl is the resolver for the updateControl field. +func (r *mutationResolver) UpdateControl(ctx context.Context, id string, input generated.UpdateControlInput) (*ControlUpdatePayload, error) { + res, err := withTransactionalMutation(ctx).Control.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "control"}) + } + + // setup update request + req := res.Update().SetInput(input).AppendTags(input.AppendTags) + + res, err = req.Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "control"}) + } + + return &ControlUpdatePayload{ + Control: res, + }, nil +} + +// DeleteControl is the resolver for the deleteControl field. +func (r *mutationResolver) DeleteControl(ctx context.Context, id string) (*ControlDeletePayload, error) { + if err := withTransactionalMutation(ctx).Control.DeleteOneID(id).Exec(ctx); err != nil { + return nil, parseRequestError(err, action{action: ActionDelete, object: "control"}) + } + + if err := generated.ControlEdgeCleanup(ctx, id); err != nil { + return nil, newCascadeDeleteError(err) + } + + return &ControlDeletePayload{ + DeletedID: id, + }, nil +} + +// Control is the resolver for the control field. +func (r *queryResolver) Control(ctx context.Context, id string) (*generated.Control, error) { + res, err := withTransactionalMutation(ctx).Control.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionGet, object: "control"}) + } + + return res, nil +} diff --git a/internal/graphapi/controlobjective.resolvers.go b/internal/graphapi/controlobjective.resolvers.go new file mode 100644 index 00000000..e4d24cc9 --- /dev/null +++ b/internal/graphapi/controlobjective.resolvers.go @@ -0,0 +1,87 @@ +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/rs/zerolog/log" + "github.com/theopenlane/core/internal/ent/generated" +) + +// CreateControlObjective is the resolver for the createControlObjective field. +func (r *mutationResolver) CreateControlObjective(ctx context.Context, input generated.CreateControlObjectiveInput) (*ControlObjectiveCreatePayload, error) { + res, err := withTransactionalMutation(ctx).ControlObjective.Create().SetInput(input).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "controlobjective"}) + } + + return &ControlObjectiveCreatePayload{ + ControlObjective: res, + }, nil +} + +// CreateBulkControlObjective is the resolver for the createBulkControlObjective field. +func (r *mutationResolver) CreateBulkControlObjective(ctx context.Context, input []*generated.CreateControlObjectiveInput) (*ControlObjectiveBulkCreatePayload, error) { + return r.bulkCreateControlObjective(ctx, input) +} + +// CreateBulkCSVControlObjective is the resolver for the createBulkCSVControlObjective field. +func (r *mutationResolver) CreateBulkCSVControlObjective(ctx context.Context, input graphql.Upload) (*ControlObjectiveBulkCreatePayload, error) { + data, err := unmarshalBulkData[generated.CreateControlObjectiveInput](input) + if err != nil { + log.Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, err + } + + return r.bulkCreateControlObjective(ctx, data) +} + +// UpdateControlObjective is the resolver for the updateControlObjective field. +func (r *mutationResolver) UpdateControlObjective(ctx context.Context, id string, input generated.UpdateControlObjectiveInput) (*ControlObjectiveUpdatePayload, error) { + res, err := withTransactionalMutation(ctx).ControlObjective.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "controlobjective"}) + } + + // setup update request + req := res.Update().SetInput(input).AppendTags(input.AppendTags) + + res, err = req.Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "controlobjective"}) + } + + return &ControlObjectiveUpdatePayload{ + ControlObjective: res, + }, nil +} + +// DeleteControlObjective is the resolver for the deleteControlObjective field. +func (r *mutationResolver) DeleteControlObjective(ctx context.Context, id string) (*ControlObjectiveDeletePayload, error) { + if err := withTransactionalMutation(ctx).ControlObjective.DeleteOneID(id).Exec(ctx); err != nil { + return nil, parseRequestError(err, action{action: ActionDelete, object: "controlobjective"}) + } + + if err := generated.ControlObjectiveEdgeCleanup(ctx, id); err != nil { + return nil, newCascadeDeleteError(err) + } + + return &ControlObjectiveDeletePayload{ + DeletedID: id, + }, nil +} + +// ControlObjective is the resolver for the controlObjective field. +func (r *queryResolver) ControlObjective(ctx context.Context, id string) (*generated.ControlObjective, error) { + res, err := withTransactionalMutation(ctx).ControlObjective.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionGet, object: "controlobjective"}) + } + + return res, nil +} diff --git a/internal/graphapi/ent.resolvers.go b/internal/graphapi/ent.resolvers.go index 12191c3a..84e7af79 100644 --- a/internal/graphapi/ent.resolvers.go +++ b/internal/graphapi/ent.resolvers.go @@ -26,6 +26,28 @@ func (r *queryResolver) APITokens(ctx context.Context, after *entgql.Cursor[stri return withTransactionalMutation(ctx).APIToken.Query().Paginate(ctx, after, first, before, last, generated.WithAPITokenFilter(where.Filter)) } +// ActionPlans is the resolver for the actionPlans field. +func (r *queryResolver) ActionPlans(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanWhereInput) (*generated.ActionPlanConnection, error) { + return withTransactionalMutation(ctx).ActionPlan.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithActionPlanFilter(where.Filter)) +} + +// ActionPlanHistories is the resolver for the actionPlanHistories field. +func (r *queryResolver) ActionPlanHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanHistoryWhereInput) (*generated.ActionPlanHistoryConnection, error) { + return withTransactionalMutation(ctx).ActionPlanHistory.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithActionPlanHistoryFilter(where.Filter)) +} + // Contacts is the resolver for the contacts field. func (r *queryResolver) Contacts(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactWhereInput) (*generated.ContactConnection, error) { return withTransactionalMutation(ctx).Contact.Query().Paginate( @@ -48,6 +70,50 @@ func (r *queryResolver) ContactHistories(ctx context.Context, after *entgql.Curs generated.WithContactHistoryFilter(where.Filter)) } +// Controls is the resolver for the controls field. +func (r *queryResolver) Controls(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlWhereInput) (*generated.ControlConnection, error) { + return withTransactionalMutation(ctx).Control.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithControlFilter(where.Filter)) +} + +// ControlHistories is the resolver for the controlHistories field. +func (r *queryResolver) ControlHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlHistoryWhereInput) (*generated.ControlHistoryConnection, error) { + return withTransactionalMutation(ctx).ControlHistory.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithControlHistoryFilter(where.Filter)) +} + +// ControlObjectives is the resolver for the controlObjectives field. +func (r *queryResolver) ControlObjectives(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveWhereInput) (*generated.ControlObjectiveConnection, error) { + return withTransactionalMutation(ctx).ControlObjective.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithControlObjectiveFilter(where.Filter)) +} + +// ControlObjectiveHistories is the resolver for the controlObjectiveHistories field. +func (r *queryResolver) ControlObjectiveHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveHistoryWhereInput) (*generated.ControlObjectiveHistoryConnection, error) { + return withTransactionalMutation(ctx).ControlObjectiveHistory.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithControlObjectiveHistoryFilter(where.Filter)) +} + // DocumentDataSlice is the resolver for the documentDataSlice field. func (r *queryResolver) DocumentDataSlice(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.DocumentDataWhereInput) (*generated.DocumentDataConnection, error) { return withTransactionalMutation(ctx).DocumentData.Query().Paginate(ctx, after, first, before, last, generated.WithDocumentDataFilter(where.Filter)) @@ -240,11 +306,55 @@ func (r *queryResolver) IntegrationHistories(ctx context.Context, after *entgql. return withTransactionalMutation(ctx).IntegrationHistory.Query().Paginate(ctx, after, first, before, last, generated.WithIntegrationHistoryOrder(orderBy), generated.WithIntegrationHistoryFilter(where.Filter)) } +// InternalPolicies is the resolver for the internalPolicies field. +func (r *queryResolver) InternalPolicies(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyWhereInput) (*generated.InternalPolicyConnection, error) { + return withTransactionalMutation(ctx).InternalPolicy.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithInternalPolicyFilter(where.Filter)) +} + +// InternalPolicyHistories is the resolver for the internalPolicyHistories field. +func (r *queryResolver) InternalPolicyHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyHistoryWhereInput) (*generated.InternalPolicyHistoryConnection, error) { + return withTransactionalMutation(ctx).InternalPolicyHistory.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithInternalPolicyHistoryFilter(where.Filter)) +} + // Invites is the resolver for the invites field. func (r *queryResolver) Invites(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InviteWhereInput) (*generated.InviteConnection, error) { return r.db.Invite.Query().Paginate(ctx, after, first, before, last, generated.WithInviteFilter(where.Filter)) } +// Narratives is the resolver for the narratives field. +func (r *queryResolver) Narratives(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeWhereInput) (*generated.NarrativeConnection, error) { + return withTransactionalMutation(ctx).Narrative.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithNarrativeFilter(where.Filter)) +} + +// NarrativeHistories is the resolver for the narrativeHistories field. +func (r *queryResolver) NarrativeHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeHistoryWhereInput) (*generated.NarrativeHistoryConnection, error) { + return withTransactionalMutation(ctx).NarrativeHistory.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithNarrativeHistoryFilter(where.Filter)) +} + // Notes is the resolver for the notes field. func (r *queryResolver) Notes(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NoteWhereInput) (*generated.NoteConnection, error) { return withTransactionalMutation(ctx).Note.Query().Paginate( @@ -329,6 +439,94 @@ func (r *queryResolver) PersonalAccessTokens(ctx context.Context, after *entgql. return withTransactionalMutation(ctx).PersonalAccessToken.Query().Paginate(ctx, after, first, before, last, generated.WithPersonalAccessTokenFilter(where.Filter)) } +// Procedures is the resolver for the procedures field. +func (r *queryResolver) Procedures(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureWhereInput) (*generated.ProcedureConnection, error) { + return withTransactionalMutation(ctx).Procedure.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithProcedureFilter(where.Filter)) +} + +// ProcedureHistories is the resolver for the procedureHistories field. +func (r *queryResolver) ProcedureHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureHistoryWhereInput) (*generated.ProcedureHistoryConnection, error) { + return withTransactionalMutation(ctx).ProcedureHistory.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithProcedureHistoryFilter(where.Filter)) +} + +// Risks is the resolver for the risks field. +func (r *queryResolver) Risks(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskWhereInput) (*generated.RiskConnection, error) { + return withTransactionalMutation(ctx).Risk.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithRiskFilter(where.Filter)) +} + +// RiskHistories is the resolver for the riskHistories field. +func (r *queryResolver) RiskHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskHistoryWhereInput) (*generated.RiskHistoryConnection, error) { + return withTransactionalMutation(ctx).RiskHistory.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithRiskHistoryFilter(where.Filter)) +} + +// Standards is the resolver for the standards field. +func (r *queryResolver) Standards(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardWhereInput) (*generated.StandardConnection, error) { + return withTransactionalMutation(ctx).Standard.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithStandardFilter(where.Filter)) +} + +// StandardHistories is the resolver for the standardHistories field. +func (r *queryResolver) StandardHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardHistoryWhereInput) (*generated.StandardHistoryConnection, error) { + return withTransactionalMutation(ctx).StandardHistory.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithStandardHistoryFilter(where.Filter)) +} + +// Subcontrols is the resolver for the subcontrols field. +func (r *queryResolver) Subcontrols(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolWhereInput) (*generated.SubcontrolConnection, error) { + return withTransactionalMutation(ctx).Subcontrol.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithSubcontrolFilter(where.Filter)) +} + +// SubcontrolHistories is the resolver for the subcontrolHistories field. +func (r *queryResolver) SubcontrolHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolHistoryWhereInput) (*generated.SubcontrolHistoryConnection, error) { + return withTransactionalMutation(ctx).SubcontrolHistory.Query().Paginate( + ctx, + after, + first, + before, + last, + generated.WithSubcontrolHistoryFilter(where.Filter)) +} + // Subscribers is the resolver for the subscribers field. func (r *queryResolver) Subscribers(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubscriberWhereInput) (*generated.SubscriberConnection, error) { return withTransactionalMutation(ctx).Subscriber.Query().Paginate(ctx, after, first, before, last, generated.WithSubscriberFilter(where.Filter)) diff --git a/internal/graphapi/gen_models.go b/internal/graphapi/gen_models.go index ad90b1be..2a77326a 100644 --- a/internal/graphapi/gen_models.go +++ b/internal/graphapi/gen_models.go @@ -43,6 +43,36 @@ type APITokenUpdatePayload struct { APIToken *generated.APIToken `json:"apiToken"` } +// Return response for createBulkActionPlan mutation +type ActionPlanBulkCreatePayload struct { + // Created actionPlans + ActionPlans []*generated.ActionPlan `json:"actionPlans,omitempty"` +} + +// Return response for createActionPlan mutation +type ActionPlanCreatePayload struct { + // Created actionPlan + ActionPlan *generated.ActionPlan `json:"actionPlan"` +} + +// Return response for deleteActionPlan mutation +type ActionPlanDeletePayload struct { + // Deleted actionPlan ID + DeletedID string `json:"deletedID"` +} + +type ActionPlanSearchResult struct { + ActionPlans []*generated.ActionPlan `json:"actionPlans,omitempty"` +} + +func (ActionPlanSearchResult) IsSearchResult() {} + +// Return response for updateActionPlan mutation +type ActionPlanUpdatePayload struct { + // Updated actionPlan + ActionPlan *generated.ActionPlan `json:"actionPlan"` +} + type AuditLog struct { Table *string `json:"table,omitempty"` Time *time.Time `json:"time,omitempty"` @@ -111,6 +141,66 @@ type ContactUpdatePayload struct { Contact *generated.Contact `json:"contact"` } +// Return response for createBulkControl mutation +type ControlBulkCreatePayload struct { + // Created controls + Controls []*generated.Control `json:"controls,omitempty"` +} + +// Return response for createControl mutation +type ControlCreatePayload struct { + // Created control + Control *generated.Control `json:"control"` +} + +// Return response for deleteControl mutation +type ControlDeletePayload struct { + // Deleted control ID + DeletedID string `json:"deletedID"` +} + +// Return response for createBulkControlObjective mutation +type ControlObjectiveBulkCreatePayload struct { + // Created controlObjectives + ControlObjectives []*generated.ControlObjective `json:"controlObjectives,omitempty"` +} + +// Return response for createControlObjective mutation +type ControlObjectiveCreatePayload struct { + // Created controlObjective + ControlObjective *generated.ControlObjective `json:"controlObjective"` +} + +// Return response for deleteControlObjective mutation +type ControlObjectiveDeletePayload struct { + // Deleted controlObjective ID + DeletedID string `json:"deletedID"` +} + +type ControlObjectiveSearchResult struct { + ControlObjectives []*generated.ControlObjective `json:"controlObjectives,omitempty"` +} + +func (ControlObjectiveSearchResult) IsSearchResult() {} + +// Return response for updateControlObjective mutation +type ControlObjectiveUpdatePayload struct { + // Updated controlObjective + ControlObjective *generated.ControlObjective `json:"controlObjective"` +} + +type ControlSearchResult struct { + Controls []*generated.Control `json:"controls,omitempty"` +} + +func (ControlSearchResult) IsSearchResult() {} + +// Return response for updateControl mutation +type ControlUpdatePayload struct { + // Updated control + Control *generated.Control `json:"control"` +} + // Return response for createBulkDocumentData mutation type DocumentDataBulkCreatePayload struct { // Created documentData @@ -501,6 +591,36 @@ type IntegrationUpdatePayload struct { Integration *generated.Integration `json:"integration"` } +// Return response for createBulkInternalPolicy mutation +type InternalPolicyBulkCreatePayload struct { + // Created internalPolicys + InternalPolicies []*generated.InternalPolicy `json:"internalPolicies,omitempty"` +} + +// Return response for createInternalPolicy mutation +type InternalPolicyCreatePayload struct { + // Created internalPolicy + InternalPolicy *generated.InternalPolicy `json:"internalPolicy"` +} + +// Return response for deleteInternalPolicy mutation +type InternalPolicyDeletePayload struct { + // Deleted internalPolicy ID + DeletedID string `json:"deletedID"` +} + +type InternalPolicySearchResult struct { + InternalPolicies []*generated.InternalPolicy `json:"internalPolicies,omitempty"` +} + +func (InternalPolicySearchResult) IsSearchResult() {} + +// Return response for updateInternalPolicy mutation +type InternalPolicyUpdatePayload struct { + // Updated internalPolicy + InternalPolicy *generated.InternalPolicy `json:"internalPolicy"` +} + // Return response for createBulkInvite mutation type InviteBulkCreatePayload struct { // Created invites @@ -525,6 +645,36 @@ type InviteUpdatePayload struct { Invite *generated.Invite `json:"invite"` } +// Return response for createBulkNarrative mutation +type NarrativeBulkCreatePayload struct { + // Created narratives + Narratives []*generated.Narrative `json:"narratives,omitempty"` +} + +// Return response for createNarrative mutation +type NarrativeCreatePayload struct { + // Created narrative + Narrative *generated.Narrative `json:"narrative"` +} + +// Return response for deleteNarrative mutation +type NarrativeDeletePayload struct { + // Deleted narrative ID + DeletedID string `json:"deletedID"` +} + +type NarrativeSearchResult struct { + Narratives []*generated.Narrative `json:"narratives,omitempty"` +} + +func (NarrativeSearchResult) IsSearchResult() {} + +// Return response for updateNarrative mutation +type NarrativeUpdatePayload struct { + // Updated narrative + Narrative *generated.Narrative `json:"narrative"` +} + // Return response for createBulkOauthProvider mutation type OauthProviderBulkCreatePayload struct { // Created oauthProviders @@ -699,11 +849,131 @@ type PersonalAccessTokenUpdatePayload struct { PersonalAccessToken *generated.PersonalAccessToken `json:"personalAccessToken"` } +// Return response for createBulkProcedure mutation +type ProcedureBulkCreatePayload struct { + // Created procedures + Procedures []*generated.Procedure `json:"procedures,omitempty"` +} + +// Return response for createProcedure mutation +type ProcedureCreatePayload struct { + // Created procedure + Procedure *generated.Procedure `json:"procedure"` +} + +// Return response for deleteProcedure mutation +type ProcedureDeletePayload struct { + // Deleted procedure ID + DeletedID string `json:"deletedID"` +} + +type ProcedureSearchResult struct { + Procedures []*generated.Procedure `json:"procedures,omitempty"` +} + +func (ProcedureSearchResult) IsSearchResult() {} + +// Return response for updateProcedure mutation +type ProcedureUpdatePayload struct { + // Updated procedure + Procedure *generated.Procedure `json:"procedure"` +} + +// Return response for createBulkRisk mutation +type RiskBulkCreatePayload struct { + // Created risks + Risks []*generated.Risk `json:"risks,omitempty"` +} + +// Return response for createRisk mutation +type RiskCreatePayload struct { + // Created risk + Risk *generated.Risk `json:"risk"` +} + +// Return response for deleteRisk mutation +type RiskDeletePayload struct { + // Deleted risk ID + DeletedID string `json:"deletedID"` +} + +type RiskSearchResult struct { + Risks []*generated.Risk `json:"risks,omitempty"` +} + +func (RiskSearchResult) IsSearchResult() {} + +// Return response for updateRisk mutation +type RiskUpdatePayload struct { + // Updated risk + Risk *generated.Risk `json:"risk"` +} + type SearchResultConnection struct { Page *entgql.PageInfo[string] `json:"page"` Nodes []SearchResult `json:"nodes"` } +// Return response for createBulkStandard mutation +type StandardBulkCreatePayload struct { + // Created standards + Standards []*generated.Standard `json:"standards,omitempty"` +} + +// Return response for createStandard mutation +type StandardCreatePayload struct { + // Created standard + Standard *generated.Standard `json:"standard"` +} + +// Return response for deleteStandard mutation +type StandardDeletePayload struct { + // Deleted standard ID + DeletedID string `json:"deletedID"` +} + +type StandardSearchResult struct { + Standards []*generated.Standard `json:"standards,omitempty"` +} + +func (StandardSearchResult) IsSearchResult() {} + +// Return response for updateStandard mutation +type StandardUpdatePayload struct { + // Updated standard + Standard *generated.Standard `json:"standard"` +} + +// Return response for createBulkSubcontrol mutation +type SubcontrolBulkCreatePayload struct { + // Created subcontrols + Subcontrols []*generated.Subcontrol `json:"subcontrols,omitempty"` +} + +// Return response for createSubcontrol mutation +type SubcontrolCreatePayload struct { + // Created subcontrol + Subcontrol *generated.Subcontrol `json:"subcontrol"` +} + +// Return response for deleteSubcontrol mutation +type SubcontrolDeletePayload struct { + // Deleted subcontrol ID + DeletedID string `json:"deletedID"` +} + +type SubcontrolSearchResult struct { + Subcontrols []*generated.Subcontrol `json:"subcontrols,omitempty"` +} + +func (SubcontrolSearchResult) IsSearchResult() {} + +// Return response for updateSubcontrol mutation +type SubcontrolUpdatePayload struct { + // Updated subcontrol + Subcontrol *generated.Subcontrol `json:"subcontrol"` +} + // Return response for createBulkSubscriber mutation type SubscriberBulkCreatePayload struct { // Created subscribers diff --git a/internal/graphapi/gen_server.go b/internal/graphapi/gen_server.go index 499e4716..1f7bb36e 100644 --- a/internal/graphapi/gen_server.go +++ b/internal/graphapi/gen_server.go @@ -108,6 +108,91 @@ type ComplexityRoot struct { APIToken func(childComplexity int) int } + ActionPlan struct { + Control func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + DueDate func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Priority func(childComplexity int) int + Risk func(childComplexity int) int + Source func(childComplexity int) int + Standard func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + User func(childComplexity int) int + } + + ActionPlanBulkCreatePayload struct { + ActionPlans func(childComplexity int) int + } + + ActionPlanConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ActionPlanCreatePayload struct { + ActionPlan func(childComplexity int) int + } + + ActionPlanDeletePayload struct { + DeletedID func(childComplexity int) int + } + + ActionPlanEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ActionPlanHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + DueDate func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + Priority func(childComplexity int) int + Ref func(childComplexity int) int + Source func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + ActionPlanHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ActionPlanHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ActionPlanSearchResult struct { + ActionPlans func(childComplexity int) int + } + + ActionPlanUpdatePayload struct { + ActionPlan func(childComplexity int) int + } + AuditLog struct { Changes func(childComplexity int) int ID func(childComplexity int) int @@ -214,6 +299,200 @@ type ComplexityRoot struct { Contact func(childComplexity int) int } + Control struct { + Actionplans func(childComplexity int) int + Class func(childComplexity int) int + ControlNumber func(childComplexity int) int + ControlType func(childComplexity int) int + Controlobjectives func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + ID func(childComplexity int) int + MappedFrameworks func(childComplexity int) int + Name func(childComplexity int) int + Narratives func(childComplexity int) int + Procedures func(childComplexity int) int + Risks func(childComplexity int) int + Satisfies func(childComplexity int) int + Source func(childComplexity int) int + Standard func(childComplexity int) int + Status func(childComplexity int) int + Subcontrols func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + ControlBulkCreatePayload struct { + Controls func(childComplexity int) int + } + + ControlConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ControlCreatePayload struct { + Control func(childComplexity int) int + } + + ControlDeletePayload struct { + DeletedID func(childComplexity int) int + } + + ControlEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ControlHistory struct { + Class func(childComplexity int) int + ControlNumber func(childComplexity int) int + ControlType func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + MappedFrameworks func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + Ref func(childComplexity int) int + Satisfies func(childComplexity int) int + Source func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + ControlHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ControlHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ControlObjective struct { + Class func(childComplexity int) int + ControlNumber func(childComplexity int) int + ControlObjectiveType func(childComplexity int) int + Controls func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + ID func(childComplexity int) int + MappedFrameworks func(childComplexity int) int + Name func(childComplexity int) int + Narratives func(childComplexity int) int + Policy func(childComplexity int) int + Procedures func(childComplexity int) int + Risks func(childComplexity int) int + Source func(childComplexity int) int + Standard func(childComplexity int) int + Status func(childComplexity int) int + Subcontrols func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + ControlObjectiveBulkCreatePayload struct { + ControlObjectives func(childComplexity int) int + } + + ControlObjectiveConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ControlObjectiveCreatePayload struct { + ControlObjective func(childComplexity int) int + } + + ControlObjectiveDeletePayload struct { + DeletedID func(childComplexity int) int + } + + ControlObjectiveEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ControlObjectiveHistory struct { + Class func(childComplexity int) int + ControlNumber func(childComplexity int) int + ControlObjectiveType func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + MappedFrameworks func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + Ref func(childComplexity int) int + Source func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + ControlObjectiveHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ControlObjectiveHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ControlObjectiveSearchResult struct { + ControlObjectives func(childComplexity int) int + } + + ControlObjectiveUpdatePayload struct { + ControlObjective func(childComplexity int) int + } + + ControlSearchResult struct { + Controls func(childComplexity int) int + } + + ControlUpdatePayload struct { + Control func(childComplexity int) int + } + DocumentData struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int @@ -1349,6 +1628,93 @@ type ComplexityRoot struct { Integration func(childComplexity int) int } + InternalPolicy struct { + Background func(childComplexity int) int + Controlobjectives func(childComplexity int) int + Controls func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Narratives func(childComplexity int) int + PolicyType func(childComplexity int) int + Procedures func(childComplexity int) int + PurposeAndScope func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + InternalPolicyBulkCreatePayload struct { + InternalPolicies func(childComplexity int) int + } + + InternalPolicyConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + InternalPolicyCreatePayload struct { + InternalPolicy func(childComplexity int) int + } + + InternalPolicyDeletePayload struct { + DeletedID func(childComplexity int) int + } + + InternalPolicyEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + InternalPolicyHistory struct { + Background func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + PolicyType func(childComplexity int) int + PurposeAndScope func(childComplexity int) int + Ref func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + InternalPolicyHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + InternalPolicyHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + InternalPolicySearchResult struct { + InternalPolicies func(childComplexity int) int + } + + InternalPolicyUpdatePayload struct { + InternalPolicy func(childComplexity int) int + } + Invite struct { CreatedAt func(childComplexity int) int CreatedBy func(childComplexity int) int @@ -1397,9 +1763,14 @@ type ComplexityRoot struct { Mutation struct { CreateAPIToken func(childComplexity int, input generated.CreateAPITokenInput) int + CreateActionPlan func(childComplexity int, input generated.CreateActionPlanInput) int CreateBulkAPIToken func(childComplexity int, input []*generated.CreateAPITokenInput) int + CreateBulkActionPlan func(childComplexity int, input []*generated.CreateActionPlanInput) int CreateBulkCSVAPIToken func(childComplexity int, input graphql.Upload) int + CreateBulkCSVActionPlan func(childComplexity int, input graphql.Upload) int CreateBulkCSVContact func(childComplexity int, input graphql.Upload) int + CreateBulkCSVControl func(childComplexity int, input graphql.Upload) int + CreateBulkCSVControlObjective func(childComplexity int, input graphql.Upload) int CreateBulkCSVDocumentData func(childComplexity int, input graphql.Upload) int CreateBulkCSVEntitlement func(childComplexity int, input graphql.Upload) int CreateBulkCSVEntitlementPlan func(childComplexity int, input graphql.Upload) int @@ -1413,18 +1784,26 @@ type ComplexityRoot struct { CreateBulkCSVGroupSetting func(childComplexity int, input graphql.Upload) int CreateBulkCSVHush func(childComplexity int, input graphql.Upload) int CreateBulkCSVIntegration func(childComplexity int, input graphql.Upload) int + CreateBulkCSVInternalPolicy func(childComplexity int, input graphql.Upload) int CreateBulkCSVInvite func(childComplexity int, input graphql.Upload) int + CreateBulkCSVNarrative func(childComplexity int, input graphql.Upload) int CreateBulkCSVOauthProvider func(childComplexity int, input graphql.Upload) int CreateBulkCSVOhAuthTooToken func(childComplexity int, input graphql.Upload) int CreateBulkCSVOrgMembership func(childComplexity int, input graphql.Upload) int CreateBulkCSVOrganization func(childComplexity int, input graphql.Upload) int CreateBulkCSVOrganizationSetting func(childComplexity int, input graphql.Upload) int CreateBulkCSVPersonalAccessToken func(childComplexity int, input graphql.Upload) int + CreateBulkCSVProcedure func(childComplexity int, input graphql.Upload) int + CreateBulkCSVRisk func(childComplexity int, input graphql.Upload) int + CreateBulkCSVStandard func(childComplexity int, input graphql.Upload) int + CreateBulkCSVSubcontrol func(childComplexity int, input graphql.Upload) int CreateBulkCSVSubscriber func(childComplexity int, input graphql.Upload) int CreateBulkCSVTemplate func(childComplexity int, input graphql.Upload) int CreateBulkCSVUserSetting func(childComplexity int, input graphql.Upload) int CreateBulkCSVWebhook func(childComplexity int, input graphql.Upload) int CreateBulkContact func(childComplexity int, input []*generated.CreateContactInput) int + CreateBulkControl func(childComplexity int, input []*generated.CreateControlInput) int + CreateBulkControlObjective func(childComplexity int, input []*generated.CreateControlObjectiveInput) int CreateBulkDocumentData func(childComplexity int, input []*generated.CreateDocumentDataInput) int CreateBulkEntitlement func(childComplexity int, input []*generated.CreateEntitlementInput) int CreateBulkEntitlementPlan func(childComplexity int, input []*generated.CreateEntitlementPlanInput) int @@ -1438,18 +1817,26 @@ type ComplexityRoot struct { CreateBulkGroupSetting func(childComplexity int, input []*generated.CreateGroupSettingInput) int CreateBulkHush func(childComplexity int, input []*generated.CreateHushInput) int CreateBulkIntegration func(childComplexity int, input []*generated.CreateIntegrationInput) int + CreateBulkInternalPolicy func(childComplexity int, input []*generated.CreateInternalPolicyInput) int CreateBulkInvite func(childComplexity int, input []*generated.CreateInviteInput) int + CreateBulkNarrative func(childComplexity int, input []*generated.CreateNarrativeInput) int CreateBulkOauthProvider func(childComplexity int, input []*generated.CreateOauthProviderInput) int CreateBulkOhAuthTooToken func(childComplexity int, input []*generated.CreateOhAuthTooTokenInput) int CreateBulkOrgMembership func(childComplexity int, input []*generated.CreateOrgMembershipInput) int CreateBulkOrganization func(childComplexity int, input []*generated.CreateOrganizationInput) int CreateBulkOrganizationSetting func(childComplexity int, input []*generated.CreateOrganizationSettingInput) int CreateBulkPersonalAccessToken func(childComplexity int, input []*generated.CreatePersonalAccessTokenInput) int + CreateBulkProcedure func(childComplexity int, input []*generated.CreateProcedureInput) int + CreateBulkRisk func(childComplexity int, input []*generated.CreateRiskInput) int + CreateBulkStandard func(childComplexity int, input []*generated.CreateStandardInput) int + CreateBulkSubcontrol func(childComplexity int, input []*generated.CreateSubcontrolInput) int CreateBulkSubscriber func(childComplexity int, input []*generated.CreateSubscriberInput) int CreateBulkTemplate func(childComplexity int, input []*generated.CreateTemplateInput) int CreateBulkUserSetting func(childComplexity int, input []*generated.CreateUserSettingInput) int CreateBulkWebhook func(childComplexity int, input []*generated.CreateWebhookInput) int CreateContact func(childComplexity int, input generated.CreateContactInput) int + CreateControl func(childComplexity int, input generated.CreateControlInput) int + CreateControlObjective func(childComplexity int, input generated.CreateControlObjectiveInput) int CreateDocumentData func(childComplexity int, input generated.CreateDocumentDataInput) int CreateEntitlement func(childComplexity int, input generated.CreateEntitlementInput) int CreateEntitlementPlan func(childComplexity int, input generated.CreateEntitlementPlanInput) int @@ -1463,13 +1850,19 @@ type ComplexityRoot struct { CreateGroupSetting func(childComplexity int, input generated.CreateGroupSettingInput) int CreateHush func(childComplexity int, input generated.CreateHushInput) int CreateIntegration func(childComplexity int, input generated.CreateIntegrationInput) int + CreateInternalPolicy func(childComplexity int, input generated.CreateInternalPolicyInput) int CreateInvite func(childComplexity int, input generated.CreateInviteInput) int + CreateNarrative func(childComplexity int, input generated.CreateNarrativeInput) int CreateOauthProvider func(childComplexity int, input generated.CreateOauthProviderInput) int CreateOhAuthTooToken func(childComplexity int, input generated.CreateOhAuthTooTokenInput) int CreateOrgMembership func(childComplexity int, input generated.CreateOrgMembershipInput) int CreateOrganization func(childComplexity int, input generated.CreateOrganizationInput) int CreateOrganizationSetting func(childComplexity int, input generated.CreateOrganizationSettingInput) int CreatePersonalAccessToken func(childComplexity int, input generated.CreatePersonalAccessTokenInput) int + CreateProcedure func(childComplexity int, input generated.CreateProcedureInput) int + CreateRisk func(childComplexity int, input generated.CreateRiskInput) int + CreateStandard func(childComplexity int, input generated.CreateStandardInput) int + CreateSubcontrol func(childComplexity int, input generated.CreateSubcontrolInput) int CreateSubscriber func(childComplexity int, input generated.CreateSubscriberInput) int CreateTFASetting func(childComplexity int, input generated.CreateTFASettingInput) int CreateTemplate func(childComplexity int, input generated.CreateTemplateInput) int @@ -1477,7 +1870,10 @@ type ComplexityRoot struct { CreateUserSetting func(childComplexity int, input generated.CreateUserSettingInput) int CreateWebhook func(childComplexity int, input generated.CreateWebhookInput) int DeleteAPIToken func(childComplexity int, id string) int + DeleteActionPlan func(childComplexity int, id string) int DeleteContact func(childComplexity int, id string) int + DeleteControl func(childComplexity int, id string) int + DeleteControlObjective func(childComplexity int, id string) int DeleteDocumentData func(childComplexity int, id string) int DeleteEntitlement func(childComplexity int, id string) int DeleteEntitlementPlan func(childComplexity int, id string) int @@ -1492,19 +1888,28 @@ type ComplexityRoot struct { DeleteGroupSetting func(childComplexity int, id string) int DeleteHush func(childComplexity int, id string) int DeleteIntegration func(childComplexity int, id string) int + DeleteInternalPolicy func(childComplexity int, id string) int DeleteInvite func(childComplexity int, id string) int + DeleteNarrative func(childComplexity int, id string) int DeleteOauthProvider func(childComplexity int, id string) int DeleteOhAuthTooToken func(childComplexity int, id string) int DeleteOrgMembership func(childComplexity int, id string) int DeleteOrganization func(childComplexity int, id string) int DeleteOrganizationSetting func(childComplexity int, id string) int DeletePersonalAccessToken func(childComplexity int, id string) int + DeleteProcedure func(childComplexity int, id string) int + DeleteRisk func(childComplexity int, id string) int + DeleteStandard func(childComplexity int, id string) int + DeleteSubcontrol func(childComplexity int, id string) int DeleteSubscriber func(childComplexity int, email string, ownerID *string) int DeleteTemplate func(childComplexity int, id string) int DeleteUser func(childComplexity int, id string) int DeleteWebhook func(childComplexity int, id string) int UpdateAPIToken func(childComplexity int, id string, input generated.UpdateAPITokenInput) int + UpdateActionPlan func(childComplexity int, id string, input generated.UpdateActionPlanInput) int UpdateContact func(childComplexity int, id string, input generated.UpdateContactInput) int + UpdateControl func(childComplexity int, id string, input generated.UpdateControlInput) int + UpdateControlObjective func(childComplexity int, id string, input generated.UpdateControlObjectiveInput) int UpdateDocumentData func(childComplexity int, id string, input generated.UpdateDocumentDataInput) int UpdateEntitlement func(childComplexity int, id string, input generated.UpdateEntitlementInput) int UpdateEntitlementPlan func(childComplexity int, id string, input generated.UpdateEntitlementPlanInput) int @@ -1518,13 +1923,19 @@ type ComplexityRoot struct { UpdateGroupSetting func(childComplexity int, id string, input generated.UpdateGroupSettingInput) int UpdateHush func(childComplexity int, id string, input generated.UpdateHushInput) int UpdateIntegration func(childComplexity int, id string, input generated.UpdateIntegrationInput) int + UpdateInternalPolicy func(childComplexity int, id string, input generated.UpdateInternalPolicyInput) int UpdateInvite func(childComplexity int, id string, input generated.UpdateInviteInput) int + UpdateNarrative func(childComplexity int, id string, input generated.UpdateNarrativeInput) int UpdateOauthProvider func(childComplexity int, id string, input generated.UpdateOauthProviderInput) int UpdateOhAuthTooToken func(childComplexity int, id string, input generated.UpdateOhAuthTooTokenInput) int UpdateOrgMembership func(childComplexity int, id string, input generated.UpdateOrgMembershipInput) int UpdateOrganization func(childComplexity int, id string, input generated.UpdateOrganizationInput) int UpdateOrganizationSetting func(childComplexity int, id string, input generated.UpdateOrganizationSettingInput) int UpdatePersonalAccessToken func(childComplexity int, id string, input generated.UpdatePersonalAccessTokenInput) int + UpdateProcedure func(childComplexity int, id string, input generated.UpdateProcedureInput) int + UpdateRisk func(childComplexity int, id string, input generated.UpdateRiskInput) int + UpdateStandard func(childComplexity int, id string, input generated.UpdateStandardInput) int + UpdateSubcontrol func(childComplexity int, id string, input generated.UpdateSubcontrolInput) int UpdateSubscriber func(childComplexity int, email string, input generated.UpdateSubscriberInput) int UpdateTFASetting func(childComplexity int, input generated.UpdateTFASettingInput) int UpdateTemplate func(childComplexity int, id string, input generated.UpdateTemplateInput) int @@ -1533,19 +1944,99 @@ type ComplexityRoot struct { UpdateWebhook func(childComplexity int, id string, input generated.UpdateWebhookInput) int } + Narrative struct { + Control func(childComplexity int) int + Controlobjective func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Policy func(childComplexity int) int + Procedure func(childComplexity int) int + Satisfies func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + NarrativeBulkCreatePayload struct { + Narratives func(childComplexity int) int + } + + NarrativeConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + NarrativeCreatePayload struct { + Narrative func(childComplexity int) int + } + + NarrativeDeletePayload struct { + DeletedID func(childComplexity int) int + } + + NarrativeEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + NarrativeHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + Ref func(childComplexity int) int + Satisfies func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + NarrativeHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + NarrativeHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + NarrativeSearchResult struct { + Narratives func(childComplexity int) int + } + + NarrativeUpdatePayload struct { + Narrative func(childComplexity int) int + } + Note struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Entity func(childComplexity int) int - ID func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Tags func(childComplexity int) int - Text func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Entity func(childComplexity int) int + ID func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Subcontrols func(childComplexity int) int + Tags func(childComplexity int) int + Text func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int } NoteConnection struct { @@ -2043,12 +2534,108 @@ type ComplexityRoot struct { PersonalAccessToken func(childComplexity int) int } + Procedure struct { + Background func(childComplexity int) int + Control func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + ID func(childComplexity int) int + Internalpolicy func(childComplexity int) int + Name func(childComplexity int) int + Narratives func(childComplexity int) int + ProcedureType func(childComplexity int) int + PurposeAndScope func(childComplexity int) int + Risks func(childComplexity int) int + Satisfies func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + ProcedureBulkCreatePayload struct { + Procedures func(childComplexity int) int + } + + ProcedureConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ProcedureCreatePayload struct { + Procedure func(childComplexity int) int + } + + ProcedureDeletePayload struct { + DeletedID func(childComplexity int) int + } + + ProcedureEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ProcedureHistory struct { + Background func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + ProcedureType func(childComplexity int) int + PurposeAndScope func(childComplexity int) int + Ref func(childComplexity int) int + Satisfies func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + ProcedureHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ProcedureHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ProcedureSearchResult struct { + Procedures func(childComplexity int) int + } + + ProcedureUpdatePayload struct { + Procedure func(childComplexity int) int + } + Query struct { APIToken func(childComplexity int, id string) int APITokenSearch func(childComplexity int, query string) int APITokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.APITokenWhereInput) int + ActionPlan func(childComplexity int, id string) int + ActionPlanHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanHistoryWhereInput) int + ActionPlanSearch func(childComplexity int, query string) int + ActionPlans func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanWhereInput) int AdminAPITokenSearch func(childComplexity int, query string) int + AdminActionPlanSearch func(childComplexity int, query string) int AdminContactSearch func(childComplexity int, query string) int + AdminControlObjectiveSearch func(childComplexity int, query string) int + AdminControlSearch func(childComplexity int, query string) int AdminDocumentDataSearch func(childComplexity int, query string) int AdminEntitlementPlanFeatureSearch func(childComplexity int, query string) int AdminEntitlementPlanSearch func(childComplexity int, query string) int @@ -2061,12 +2648,18 @@ type ComplexityRoot struct { AdminGroupSearch func(childComplexity int, query string) int AdminGroupSettingSearch func(childComplexity int, query string) int AdminIntegrationSearch func(childComplexity int, query string) int + AdminInternalPolicySearch func(childComplexity int, query string) int + AdminNarrativeSearch func(childComplexity int, query string) int AdminOauthProviderSearch func(childComplexity int, query string) int AdminOhAuthTooTokenSearch func(childComplexity int, query string) int AdminOrganizationSearch func(childComplexity int, query string) int AdminOrganizationSettingSearch func(childComplexity int, query string) int AdminPersonalAccessTokenSearch func(childComplexity int, query string) int + AdminProcedureSearch func(childComplexity int, query string) int + AdminRiskSearch func(childComplexity int, query string) int AdminSearch func(childComplexity int, query string) int + AdminStandardSearch func(childComplexity int, query string) int + AdminSubcontrolSearch func(childComplexity int, query string) int AdminSubscriberSearch func(childComplexity int, query string) int AdminTFASettingSearch func(childComplexity int, query string) int AdminTemplateSearch func(childComplexity int, query string) int @@ -2078,6 +2671,14 @@ type ComplexityRoot struct { ContactHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactHistoryWhereInput) int ContactSearch func(childComplexity int, query string) int Contacts func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactWhereInput) int + Control func(childComplexity int, id string) int + ControlHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlHistoryWhereInput) int + ControlObjective func(childComplexity int, id string) int + ControlObjectiveHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveHistoryWhereInput) int + ControlObjectiveSearch func(childComplexity int, query string) int + ControlObjectives func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveWhereInput) int + ControlSearch func(childComplexity int, query string) int + Controls func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlWhereInput) int DocumentData func(childComplexity int, id string) int DocumentDataHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.DocumentDataHistoryWhereInput) int DocumentDataSearch func(childComplexity int, query string) int @@ -2132,8 +2733,16 @@ type ComplexityRoot struct { IntegrationHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationHistoryOrder, where *generated.IntegrationHistoryWhereInput) int IntegrationSearch func(childComplexity int, query string) int Integrations func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationOrder, where *generated.IntegrationWhereInput) int + InternalPolicies func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyWhereInput) int + InternalPolicy func(childComplexity int, id string) int + InternalPolicyHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyHistoryWhereInput) int + InternalPolicySearch func(childComplexity int, query string) int Invite func(childComplexity int, id string) int Invites func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InviteWhereInput) int + Narrative func(childComplexity int, id string) int + NarrativeHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeHistoryWhereInput) int + NarrativeSearch func(childComplexity int, query string) int + Narratives func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeWhereInput) int Node func(childComplexity int, id string) int Nodes func(childComplexity int, ids []string) int NoteHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NoteHistoryWhereInput) int @@ -2159,7 +2768,23 @@ type ComplexityRoot struct { PersonalAccessToken func(childComplexity int, id string) int PersonalAccessTokenSearch func(childComplexity int, query string) int PersonalAccessTokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.PersonalAccessTokenWhereInput) int + Procedure func(childComplexity int, id string) int + ProcedureHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureHistoryWhereInput) int + ProcedureSearch func(childComplexity int, query string) int + Procedures func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureWhereInput) int + Risk func(childComplexity int, id string) int + RiskHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskHistoryWhereInput) int + RiskSearch func(childComplexity int, query string) int + Risks func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskWhereInput) int Search func(childComplexity int, query string) int + Standard func(childComplexity int, id string) int + StandardHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardHistoryWhereInput) int + StandardSearch func(childComplexity int, query string) int + Standards func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardWhereInput) int + Subcontrol func(childComplexity int, id string) int + SubcontrolHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolHistoryWhereInput) int + SubcontrolSearch func(childComplexity int, query string) int + Subcontrols func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolWhereInput) int Subscriber func(childComplexity int, email string) int SubscriberSearch func(childComplexity int, query string) int Subscribers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubscriberWhereInput) int @@ -2184,11 +2809,294 @@ type ComplexityRoot struct { Webhooks func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.WebhookOrder, where *generated.WebhookWhereInput) int } + Risk struct { + Actionplans func(childComplexity int) int + BusinessCosts func(childComplexity int) int + Control func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + ID func(childComplexity int) int + Impact func(childComplexity int) int + Likelihood func(childComplexity int) int + Mitigation func(childComplexity int) int + Name func(childComplexity int) int + Procedure func(childComplexity int) int + RiskType func(childComplexity int) int + Satisfies func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + RiskBulkCreatePayload struct { + Risks func(childComplexity int) int + } + + RiskConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + RiskCreatePayload struct { + Risk func(childComplexity int) int + } + + RiskDeletePayload struct { + DeletedID func(childComplexity int) int + } + + RiskEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + RiskHistory struct { + BusinessCosts func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Impact func(childComplexity int) int + Likelihood func(childComplexity int) int + Mitigation func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + Ref func(childComplexity int) int + RiskType func(childComplexity int) int + Satisfies func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + RiskHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + RiskHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + RiskSearchResult struct { + Risks func(childComplexity int) int + } + + RiskUpdatePayload struct { + Risk func(childComplexity int) int + } + SearchResultConnection struct { Nodes func(childComplexity int) int Page func(childComplexity int) int } + Standard struct { + Actionplans func(childComplexity int) int + Background func(childComplexity int) int + Controlobjectives func(childComplexity int) int + Controls func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Procedures func(childComplexity int) int + PurposeAndScope func(childComplexity int) int + Satisfies func(childComplexity int) int + StandardType func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + StandardBulkCreatePayload struct { + Standards func(childComplexity int) int + } + + StandardConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + StandardCreatePayload struct { + Standard func(childComplexity int) int + } + + StandardDeletePayload struct { + DeletedID func(childComplexity int) int + } + + StandardEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + StandardHistory struct { + Background func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + PurposeAndScope func(childComplexity int) int + Ref func(childComplexity int) int + Satisfies func(childComplexity int) int + StandardType func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + StandardHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + StandardHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + StandardSearchResult struct { + Standards func(childComplexity int) int + } + + StandardUpdatePayload struct { + Standard func(childComplexity int) int + } + + Subcontrol struct { + Class func(childComplexity int) int + Control func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + ID func(childComplexity int) int + ImplementationDate func(childComplexity int) int + ImplementationEvidence func(childComplexity int) int + ImplementationStatus func(childComplexity int) int + ImplementationVerification func(childComplexity int) int + ImplementationVerificationDate func(childComplexity int) int + MappedFrameworks func(childComplexity int) int + Name func(childComplexity int) int + Notes func(childComplexity int) int + Source func(childComplexity int) int + Status func(childComplexity int) int + SubcontrolNumber func(childComplexity int) int + SubcontrolType func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + User func(childComplexity int) int + Version func(childComplexity int) int + } + + SubcontrolBulkCreatePayload struct { + Subcontrols func(childComplexity int) int + } + + SubcontrolConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + SubcontrolCreatePayload struct { + Subcontrol func(childComplexity int) int + } + + SubcontrolDeletePayload struct { + DeletedID func(childComplexity int) int + } + + SubcontrolEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + SubcontrolHistory struct { + Class func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + ImplementationDate func(childComplexity int) int + ImplementationEvidence func(childComplexity int) int + ImplementationStatus func(childComplexity int) int + ImplementationVerification func(childComplexity int) int + ImplementationVerificationDate func(childComplexity int) int + MappedFrameworks func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + Ref func(childComplexity int) int + Source func(childComplexity int) int + Status func(childComplexity int) int + SubcontrolNumber func(childComplexity int) int + SubcontrolType func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + SubcontrolHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + SubcontrolHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + SubcontrolSearchResult struct { + Subcontrols func(childComplexity int) int + } + + SubcontrolUpdatePayload struct { + Subcontrol func(childComplexity int) int + } + Subscriber struct { Active func(childComplexity int) int CreatedAt func(childComplexity int) int @@ -2361,6 +3269,7 @@ type ComplexityRoot struct { } User struct { + Actionplans func(childComplexity int) int AuthProvider func(childComplexity int) int AvatarLocalFile func(childComplexity int) int AvatarLocalFileID func(childComplexity int) int @@ -2387,6 +3296,7 @@ type ComplexityRoot struct { Role func(childComplexity int) int Setting func(childComplexity int) int Sub func(childComplexity int) int + Subcontrols func(childComplexity int) int Tags func(childComplexity int) int TfaSettings func(childComplexity int) int UpdatedAt func(childComplexity int) int @@ -2631,6 +3541,11 @@ type ComplexityRoot struct { } type MutationResolver interface { + CreateActionPlan(ctx context.Context, input generated.CreateActionPlanInput) (*ActionPlanCreatePayload, error) + CreateBulkActionPlan(ctx context.Context, input []*generated.CreateActionPlanInput) (*ActionPlanBulkCreatePayload, error) + CreateBulkCSVActionPlan(ctx context.Context, input graphql.Upload) (*ActionPlanBulkCreatePayload, error) + UpdateActionPlan(ctx context.Context, id string, input generated.UpdateActionPlanInput) (*ActionPlanUpdatePayload, error) + DeleteActionPlan(ctx context.Context, id string) (*ActionPlanDeletePayload, error) CreateAPIToken(ctx context.Context, input generated.CreateAPITokenInput) (*APITokenCreatePayload, error) CreateBulkAPIToken(ctx context.Context, input []*generated.CreateAPITokenInput) (*APITokenBulkCreatePayload, error) CreateBulkCSVAPIToken(ctx context.Context, input graphql.Upload) (*APITokenBulkCreatePayload, error) @@ -2641,6 +3556,16 @@ type MutationResolver interface { CreateBulkCSVContact(ctx context.Context, input graphql.Upload) (*ContactBulkCreatePayload, error) UpdateContact(ctx context.Context, id string, input generated.UpdateContactInput) (*ContactUpdatePayload, error) DeleteContact(ctx context.Context, id string) (*ContactDeletePayload, error) + CreateControl(ctx context.Context, input generated.CreateControlInput) (*ControlCreatePayload, error) + CreateBulkControl(ctx context.Context, input []*generated.CreateControlInput) (*ControlBulkCreatePayload, error) + CreateBulkCSVControl(ctx context.Context, input graphql.Upload) (*ControlBulkCreatePayload, error) + UpdateControl(ctx context.Context, id string, input generated.UpdateControlInput) (*ControlUpdatePayload, error) + DeleteControl(ctx context.Context, id string) (*ControlDeletePayload, error) + CreateControlObjective(ctx context.Context, input generated.CreateControlObjectiveInput) (*ControlObjectiveCreatePayload, error) + CreateBulkControlObjective(ctx context.Context, input []*generated.CreateControlObjectiveInput) (*ControlObjectiveBulkCreatePayload, error) + CreateBulkCSVControlObjective(ctx context.Context, input graphql.Upload) (*ControlObjectiveBulkCreatePayload, error) + UpdateControlObjective(ctx context.Context, id string, input generated.UpdateControlObjectiveInput) (*ControlObjectiveUpdatePayload, error) + DeleteControlObjective(ctx context.Context, id string) (*ControlObjectiveDeletePayload, error) CreateDocumentData(ctx context.Context, input generated.CreateDocumentDataInput) (*DocumentDataCreatePayload, error) CreateBulkDocumentData(ctx context.Context, input []*generated.CreateDocumentDataInput) (*DocumentDataBulkCreatePayload, error) CreateBulkCSVDocumentData(ctx context.Context, input graphql.Upload) (*DocumentDataBulkCreatePayload, error) @@ -2707,11 +3632,21 @@ type MutationResolver interface { CreateBulkCSVIntegration(ctx context.Context, input graphql.Upload) (*IntegrationBulkCreatePayload, error) UpdateIntegration(ctx context.Context, id string, input generated.UpdateIntegrationInput) (*IntegrationUpdatePayload, error) DeleteIntegration(ctx context.Context, id string) (*IntegrationDeletePayload, error) + CreateInternalPolicy(ctx context.Context, input generated.CreateInternalPolicyInput) (*InternalPolicyCreatePayload, error) + CreateBulkInternalPolicy(ctx context.Context, input []*generated.CreateInternalPolicyInput) (*InternalPolicyBulkCreatePayload, error) + CreateBulkCSVInternalPolicy(ctx context.Context, input graphql.Upload) (*InternalPolicyBulkCreatePayload, error) + UpdateInternalPolicy(ctx context.Context, id string, input generated.UpdateInternalPolicyInput) (*InternalPolicyUpdatePayload, error) + DeleteInternalPolicy(ctx context.Context, id string) (*InternalPolicyDeletePayload, error) CreateInvite(ctx context.Context, input generated.CreateInviteInput) (*InviteCreatePayload, error) CreateBulkInvite(ctx context.Context, input []*generated.CreateInviteInput) (*InviteBulkCreatePayload, error) CreateBulkCSVInvite(ctx context.Context, input graphql.Upload) (*InviteBulkCreatePayload, error) UpdateInvite(ctx context.Context, id string, input generated.UpdateInviteInput) (*InviteUpdatePayload, error) DeleteInvite(ctx context.Context, id string) (*InviteDeletePayload, error) + CreateNarrative(ctx context.Context, input generated.CreateNarrativeInput) (*NarrativeCreatePayload, error) + CreateBulkNarrative(ctx context.Context, input []*generated.CreateNarrativeInput) (*NarrativeBulkCreatePayload, error) + CreateBulkCSVNarrative(ctx context.Context, input graphql.Upload) (*NarrativeBulkCreatePayload, error) + UpdateNarrative(ctx context.Context, id string, input generated.UpdateNarrativeInput) (*NarrativeUpdatePayload, error) + DeleteNarrative(ctx context.Context, id string) (*NarrativeDeletePayload, error) CreateOauthProvider(ctx context.Context, input generated.CreateOauthProviderInput) (*OauthProviderCreatePayload, error) CreateBulkOauthProvider(ctx context.Context, input []*generated.CreateOauthProviderInput) (*OauthProviderBulkCreatePayload, error) CreateBulkCSVOauthProvider(ctx context.Context, input graphql.Upload) (*OauthProviderBulkCreatePayload, error) @@ -2742,6 +3677,26 @@ type MutationResolver interface { CreateBulkCSVPersonalAccessToken(ctx context.Context, input graphql.Upload) (*PersonalAccessTokenBulkCreatePayload, error) UpdatePersonalAccessToken(ctx context.Context, id string, input generated.UpdatePersonalAccessTokenInput) (*PersonalAccessTokenUpdatePayload, error) DeletePersonalAccessToken(ctx context.Context, id string) (*PersonalAccessTokenDeletePayload, error) + CreateProcedure(ctx context.Context, input generated.CreateProcedureInput) (*ProcedureCreatePayload, error) + CreateBulkProcedure(ctx context.Context, input []*generated.CreateProcedureInput) (*ProcedureBulkCreatePayload, error) + CreateBulkCSVProcedure(ctx context.Context, input graphql.Upload) (*ProcedureBulkCreatePayload, error) + UpdateProcedure(ctx context.Context, id string, input generated.UpdateProcedureInput) (*ProcedureUpdatePayload, error) + DeleteProcedure(ctx context.Context, id string) (*ProcedureDeletePayload, error) + CreateRisk(ctx context.Context, input generated.CreateRiskInput) (*RiskCreatePayload, error) + CreateBulkRisk(ctx context.Context, input []*generated.CreateRiskInput) (*RiskBulkCreatePayload, error) + CreateBulkCSVRisk(ctx context.Context, input graphql.Upload) (*RiskBulkCreatePayload, error) + UpdateRisk(ctx context.Context, id string, input generated.UpdateRiskInput) (*RiskUpdatePayload, error) + DeleteRisk(ctx context.Context, id string) (*RiskDeletePayload, error) + CreateStandard(ctx context.Context, input generated.CreateStandardInput) (*StandardCreatePayload, error) + CreateBulkStandard(ctx context.Context, input []*generated.CreateStandardInput) (*StandardBulkCreatePayload, error) + CreateBulkCSVStandard(ctx context.Context, input graphql.Upload) (*StandardBulkCreatePayload, error) + UpdateStandard(ctx context.Context, id string, input generated.UpdateStandardInput) (*StandardUpdatePayload, error) + DeleteStandard(ctx context.Context, id string) (*StandardDeletePayload, error) + CreateSubcontrol(ctx context.Context, input generated.CreateSubcontrolInput) (*SubcontrolCreatePayload, error) + CreateBulkSubcontrol(ctx context.Context, input []*generated.CreateSubcontrolInput) (*SubcontrolBulkCreatePayload, error) + CreateBulkCSVSubcontrol(ctx context.Context, input graphql.Upload) (*SubcontrolBulkCreatePayload, error) + UpdateSubcontrol(ctx context.Context, id string, input generated.UpdateSubcontrolInput) (*SubcontrolUpdatePayload, error) + DeleteSubcontrol(ctx context.Context, id string) (*SubcontrolDeletePayload, error) CreateSubscriber(ctx context.Context, input generated.CreateSubscriberInput) (*SubscriberCreatePayload, error) CreateBulkSubscriber(ctx context.Context, input []*generated.CreateSubscriberInput) (*SubscriberBulkCreatePayload, error) CreateBulkCSVSubscriber(ctx context.Context, input graphql.Upload) (*SubscriberBulkCreatePayload, error) @@ -2771,8 +3726,14 @@ type QueryResolver interface { Node(ctx context.Context, id string) (generated.Noder, error) Nodes(ctx context.Context, ids []string) ([]generated.Noder, error) APITokens(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.APITokenWhereInput) (*generated.APITokenConnection, error) + ActionPlans(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanWhereInput) (*generated.ActionPlanConnection, error) + ActionPlanHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanHistoryWhereInput) (*generated.ActionPlanHistoryConnection, error) Contacts(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactWhereInput) (*generated.ContactConnection, error) ContactHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactHistoryWhereInput) (*generated.ContactHistoryConnection, error) + Controls(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlWhereInput) (*generated.ControlConnection, error) + ControlHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlHistoryWhereInput) (*generated.ControlHistoryConnection, error) + ControlObjectives(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveWhereInput) (*generated.ControlObjectiveConnection, error) + ControlObjectiveHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveHistoryWhereInput) (*generated.ControlObjectiveHistoryConnection, error) DocumentDataSlice(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.DocumentDataWhereInput) (*generated.DocumentDataConnection, error) DocumentDataHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.DocumentDataHistoryWhereInput) (*generated.DocumentDataHistoryConnection, error) Entitlements(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.EntitlementWhereInput) (*generated.EntitlementConnection, error) @@ -2801,7 +3762,11 @@ type QueryResolver interface { HushHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.HushHistoryOrder, where *generated.HushHistoryWhereInput) (*generated.HushHistoryConnection, error) Integrations(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationOrder, where *generated.IntegrationWhereInput) (*generated.IntegrationConnection, error) IntegrationHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationHistoryOrder, where *generated.IntegrationHistoryWhereInput) (*generated.IntegrationHistoryConnection, error) + InternalPolicies(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyWhereInput) (*generated.InternalPolicyConnection, error) + InternalPolicyHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyHistoryWhereInput) (*generated.InternalPolicyHistoryConnection, error) Invites(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InviteWhereInput) (*generated.InviteConnection, error) + Narratives(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeWhereInput) (*generated.NarrativeConnection, error) + NarrativeHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeHistoryWhereInput) (*generated.NarrativeHistoryConnection, error) Notes(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NoteWhereInput) (*generated.NoteConnection, error) NoteHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NoteHistoryWhereInput) (*generated.NoteHistoryConnection, error) OauthProviders(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OauthProviderWhereInput) (*generated.OauthProviderConnection, error) @@ -2814,6 +3779,14 @@ type QueryResolver interface { OrganizationSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrganizationSettingWhereInput) (*generated.OrganizationSettingConnection, error) OrganizationSettingHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrganizationSettingHistoryWhereInput) (*generated.OrganizationSettingHistoryConnection, error) PersonalAccessTokens(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.PersonalAccessTokenWhereInput) (*generated.PersonalAccessTokenConnection, error) + Procedures(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureWhereInput) (*generated.ProcedureConnection, error) + ProcedureHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureHistoryWhereInput) (*generated.ProcedureHistoryConnection, error) + Risks(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskWhereInput) (*generated.RiskConnection, error) + RiskHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskHistoryWhereInput) (*generated.RiskHistoryConnection, error) + Standards(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardWhereInput) (*generated.StandardConnection, error) + StandardHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardHistoryWhereInput) (*generated.StandardHistoryConnection, error) + Subcontrols(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolWhereInput) (*generated.SubcontrolConnection, error) + SubcontrolHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolHistoryWhereInput) (*generated.SubcontrolHistoryConnection, error) Subscribers(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubscriberWhereInput) (*generated.SubscriberConnection, error) TfaSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TFASettingWhereInput) (*generated.TFASettingConnection, error) Templates(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.TemplateOrder, where *generated.TemplateWhereInput) (*generated.TemplateConnection, error) @@ -2824,8 +3797,12 @@ type QueryResolver interface { UserSettingHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.UserSettingHistoryWhereInput) (*generated.UserSettingHistoryConnection, error) Webhooks(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.WebhookOrder, where *generated.WebhookWhereInput) (*generated.WebhookConnection, error) WebhookHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.WebhookHistoryOrder, where *generated.WebhookHistoryWhereInput) (*generated.WebhookHistoryConnection, error) + ActionPlan(ctx context.Context, id string) (*generated.ActionPlan, error) AdminAPITokenSearch(ctx context.Context, query string) (*APITokenSearchResult, error) + AdminActionPlanSearch(ctx context.Context, query string) (*ActionPlanSearchResult, error) AdminContactSearch(ctx context.Context, query string) (*ContactSearchResult, error) + AdminControlSearch(ctx context.Context, query string) (*ControlSearchResult, error) + AdminControlObjectiveSearch(ctx context.Context, query string) (*ControlObjectiveSearchResult, error) AdminDocumentDataSearch(ctx context.Context, query string) (*DocumentDataSearchResult, error) AdminEntitlementSearch(ctx context.Context, query string) (*EntitlementSearchResult, error) AdminEntitlementPlanSearch(ctx context.Context, query string) (*EntitlementPlanSearchResult, error) @@ -2838,11 +3815,17 @@ type QueryResolver interface { AdminGroupSearch(ctx context.Context, query string) (*GroupSearchResult, error) AdminGroupSettingSearch(ctx context.Context, query string) (*GroupSettingSearchResult, error) AdminIntegrationSearch(ctx context.Context, query string) (*IntegrationSearchResult, error) + AdminInternalPolicySearch(ctx context.Context, query string) (*InternalPolicySearchResult, error) + AdminNarrativeSearch(ctx context.Context, query string) (*NarrativeSearchResult, error) AdminOauthProviderSearch(ctx context.Context, query string) (*OauthProviderSearchResult, error) AdminOhAuthTooTokenSearch(ctx context.Context, query string) (*OhAuthTooTokenSearchResult, error) AdminOrganizationSearch(ctx context.Context, query string) (*OrganizationSearchResult, error) AdminOrganizationSettingSearch(ctx context.Context, query string) (*OrganizationSettingSearchResult, error) AdminPersonalAccessTokenSearch(ctx context.Context, query string) (*PersonalAccessTokenSearchResult, error) + AdminProcedureSearch(ctx context.Context, query string) (*ProcedureSearchResult, error) + AdminRiskSearch(ctx context.Context, query string) (*RiskSearchResult, error) + AdminStandardSearch(ctx context.Context, query string) (*StandardSearchResult, error) + AdminSubcontrolSearch(ctx context.Context, query string) (*SubcontrolSearchResult, error) AdminSubscriberSearch(ctx context.Context, query string) (*SubscriberSearchResult, error) AdminTFASettingSearch(ctx context.Context, query string) (*TFASettingSearchResult, error) AdminTemplateSearch(ctx context.Context, query string) (*TemplateSearchResult, error) @@ -2852,6 +3835,8 @@ type QueryResolver interface { APIToken(ctx context.Context, id string) (*generated.APIToken, error) AuditLogs(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *AuditLogWhereInput) (*AuditLogConnection, error) Contact(ctx context.Context, id string) (*generated.Contact, error) + Control(ctx context.Context, id string) (*generated.Control, error) + ControlObjective(ctx context.Context, id string) (*generated.ControlObjective, error) DocumentData(ctx context.Context, id string) (*generated.DocumentData, error) Entitlement(ctx context.Context, id string) (*generated.Entitlement, error) EntitlementPlan(ctx context.Context, id string) (*generated.EntitlementPlan, error) @@ -2866,15 +3851,22 @@ type QueryResolver interface { GroupSetting(ctx context.Context, id string) (*generated.GroupSetting, error) Hush(ctx context.Context, id string) (*generated.Hush, error) Integration(ctx context.Context, id string) (*generated.Integration, error) + InternalPolicy(ctx context.Context, id string) (*generated.InternalPolicy, error) Invite(ctx context.Context, id string) (*generated.Invite, error) + Narrative(ctx context.Context, id string) (*generated.Narrative, error) OauthProvider(ctx context.Context, id string) (*generated.OauthProvider, error) OhAuthTooToken(ctx context.Context, id string) (*generated.OhAuthTooToken, error) Organization(ctx context.Context, id string) (*generated.Organization, error) OrganizationSetting(ctx context.Context, id string) (*generated.OrganizationSetting, error) OrgMembership(ctx context.Context, id string) (*generated.OrgMembership, error) PersonalAccessToken(ctx context.Context, id string) (*generated.PersonalAccessToken, error) + Procedure(ctx context.Context, id string) (*generated.Procedure, error) + Risk(ctx context.Context, id string) (*generated.Risk, error) APITokenSearch(ctx context.Context, query string) (*APITokenSearchResult, error) + ActionPlanSearch(ctx context.Context, query string) (*ActionPlanSearchResult, error) ContactSearch(ctx context.Context, query string) (*ContactSearchResult, error) + ControlSearch(ctx context.Context, query string) (*ControlSearchResult, error) + ControlObjectiveSearch(ctx context.Context, query string) (*ControlObjectiveSearchResult, error) DocumentDataSearch(ctx context.Context, query string) (*DocumentDataSearchResult, error) EntitlementSearch(ctx context.Context, query string) (*EntitlementSearchResult, error) EntitlementPlanSearch(ctx context.Context, query string) (*EntitlementPlanSearchResult, error) @@ -2887,11 +3879,17 @@ type QueryResolver interface { GroupSearch(ctx context.Context, query string) (*GroupSearchResult, error) GroupSettingSearch(ctx context.Context, query string) (*GroupSettingSearchResult, error) IntegrationSearch(ctx context.Context, query string) (*IntegrationSearchResult, error) + InternalPolicySearch(ctx context.Context, query string) (*InternalPolicySearchResult, error) + NarrativeSearch(ctx context.Context, query string) (*NarrativeSearchResult, error) OauthProviderSearch(ctx context.Context, query string) (*OauthProviderSearchResult, error) OhAuthTooTokenSearch(ctx context.Context, query string) (*OhAuthTooTokenSearchResult, error) OrganizationSearch(ctx context.Context, query string) (*OrganizationSearchResult, error) OrganizationSettingSearch(ctx context.Context, query string) (*OrganizationSettingSearchResult, error) PersonalAccessTokenSearch(ctx context.Context, query string) (*PersonalAccessTokenSearchResult, error) + ProcedureSearch(ctx context.Context, query string) (*ProcedureSearchResult, error) + RiskSearch(ctx context.Context, query string) (*RiskSearchResult, error) + StandardSearch(ctx context.Context, query string) (*StandardSearchResult, error) + SubcontrolSearch(ctx context.Context, query string) (*SubcontrolSearchResult, error) SubscriberSearch(ctx context.Context, query string) (*SubscriberSearchResult, error) TFASettingSearch(ctx context.Context, query string) (*TFASettingSearchResult, error) TemplateSearch(ctx context.Context, query string) (*TemplateSearchResult, error) @@ -2900,6 +3898,8 @@ type QueryResolver interface { WebhookSearch(ctx context.Context, query string) (*WebhookSearchResult, error) Search(ctx context.Context, query string) (*SearchResultConnection, error) AdminSearch(ctx context.Context, query string) (*SearchResultConnection, error) + Standard(ctx context.Context, id string) (*generated.Standard, error) + Subcontrol(ctx context.Context, id string) (*generated.Subcontrol, error) Subscriber(ctx context.Context, email string) (*generated.Subscriber, error) Template(ctx context.Context, id string) (*generated.Template, error) TfaSetting(ctx context.Context, id *string) (*generated.TFASetting, error) @@ -3133,6 +4133,370 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.APITokenUpdatePayload.APIToken(childComplexity), true + case "ActionPlan.control": + if e.complexity.ActionPlan.Control == nil { + break + } + + return e.complexity.ActionPlan.Control(childComplexity), true + + case "ActionPlan.createdAt": + if e.complexity.ActionPlan.CreatedAt == nil { + break + } + + return e.complexity.ActionPlan.CreatedAt(childComplexity), true + + case "ActionPlan.createdBy": + if e.complexity.ActionPlan.CreatedBy == nil { + break + } + + return e.complexity.ActionPlan.CreatedBy(childComplexity), true + + case "ActionPlan.deletedAt": + if e.complexity.ActionPlan.DeletedAt == nil { + break + } + + return e.complexity.ActionPlan.DeletedAt(childComplexity), true + + case "ActionPlan.deletedBy": + if e.complexity.ActionPlan.DeletedBy == nil { + break + } + + return e.complexity.ActionPlan.DeletedBy(childComplexity), true + + case "ActionPlan.description": + if e.complexity.ActionPlan.Description == nil { + break + } + + return e.complexity.ActionPlan.Description(childComplexity), true + + case "ActionPlan.details": + if e.complexity.ActionPlan.Details == nil { + break + } + + return e.complexity.ActionPlan.Details(childComplexity), true + + case "ActionPlan.dueDate": + if e.complexity.ActionPlan.DueDate == nil { + break + } + + return e.complexity.ActionPlan.DueDate(childComplexity), true + + case "ActionPlan.id": + if e.complexity.ActionPlan.ID == nil { + break + } + + return e.complexity.ActionPlan.ID(childComplexity), true + + case "ActionPlan.name": + if e.complexity.ActionPlan.Name == nil { + break + } + + return e.complexity.ActionPlan.Name(childComplexity), true + + case "ActionPlan.priority": + if e.complexity.ActionPlan.Priority == nil { + break + } + + return e.complexity.ActionPlan.Priority(childComplexity), true + + case "ActionPlan.risk": + if e.complexity.ActionPlan.Risk == nil { + break + } + + return e.complexity.ActionPlan.Risk(childComplexity), true + + case "ActionPlan.source": + if e.complexity.ActionPlan.Source == nil { + break + } + + return e.complexity.ActionPlan.Source(childComplexity), true + + case "ActionPlan.standard": + if e.complexity.ActionPlan.Standard == nil { + break + } + + return e.complexity.ActionPlan.Standard(childComplexity), true + + case "ActionPlan.status": + if e.complexity.ActionPlan.Status == nil { + break + } + + return e.complexity.ActionPlan.Status(childComplexity), true + + case "ActionPlan.tags": + if e.complexity.ActionPlan.Tags == nil { + break + } + + return e.complexity.ActionPlan.Tags(childComplexity), true + + case "ActionPlan.updatedAt": + if e.complexity.ActionPlan.UpdatedAt == nil { + break + } + + return e.complexity.ActionPlan.UpdatedAt(childComplexity), true + + case "ActionPlan.updatedBy": + if e.complexity.ActionPlan.UpdatedBy == nil { + break + } + + return e.complexity.ActionPlan.UpdatedBy(childComplexity), true + + case "ActionPlan.user": + if e.complexity.ActionPlan.User == nil { + break + } + + return e.complexity.ActionPlan.User(childComplexity), true + + case "ActionPlanBulkCreatePayload.actionPlans": + if e.complexity.ActionPlanBulkCreatePayload.ActionPlans == nil { + break + } + + return e.complexity.ActionPlanBulkCreatePayload.ActionPlans(childComplexity), true + + case "ActionPlanConnection.edges": + if e.complexity.ActionPlanConnection.Edges == nil { + break + } + + return e.complexity.ActionPlanConnection.Edges(childComplexity), true + + case "ActionPlanConnection.pageInfo": + if e.complexity.ActionPlanConnection.PageInfo == nil { + break + } + + return e.complexity.ActionPlanConnection.PageInfo(childComplexity), true + + case "ActionPlanConnection.totalCount": + if e.complexity.ActionPlanConnection.TotalCount == nil { + break + } + + return e.complexity.ActionPlanConnection.TotalCount(childComplexity), true + + case "ActionPlanCreatePayload.actionPlan": + if e.complexity.ActionPlanCreatePayload.ActionPlan == nil { + break + } + + return e.complexity.ActionPlanCreatePayload.ActionPlan(childComplexity), true + + case "ActionPlanDeletePayload.deletedID": + if e.complexity.ActionPlanDeletePayload.DeletedID == nil { + break + } + + return e.complexity.ActionPlanDeletePayload.DeletedID(childComplexity), true + + case "ActionPlanEdge.cursor": + if e.complexity.ActionPlanEdge.Cursor == nil { + break + } + + return e.complexity.ActionPlanEdge.Cursor(childComplexity), true + + case "ActionPlanEdge.node": + if e.complexity.ActionPlanEdge.Node == nil { + break + } + + return e.complexity.ActionPlanEdge.Node(childComplexity), true + + case "ActionPlanHistory.createdAt": + if e.complexity.ActionPlanHistory.CreatedAt == nil { + break + } + + return e.complexity.ActionPlanHistory.CreatedAt(childComplexity), true + + case "ActionPlanHistory.createdBy": + if e.complexity.ActionPlanHistory.CreatedBy == nil { + break + } + + return e.complexity.ActionPlanHistory.CreatedBy(childComplexity), true + + case "ActionPlanHistory.deletedAt": + if e.complexity.ActionPlanHistory.DeletedAt == nil { + break + } + + return e.complexity.ActionPlanHistory.DeletedAt(childComplexity), true + + case "ActionPlanHistory.deletedBy": + if e.complexity.ActionPlanHistory.DeletedBy == nil { + break + } + + return e.complexity.ActionPlanHistory.DeletedBy(childComplexity), true + + case "ActionPlanHistory.description": + if e.complexity.ActionPlanHistory.Description == nil { + break + } + + return e.complexity.ActionPlanHistory.Description(childComplexity), true + + case "ActionPlanHistory.details": + if e.complexity.ActionPlanHistory.Details == nil { + break + } + + return e.complexity.ActionPlanHistory.Details(childComplexity), true + + case "ActionPlanHistory.dueDate": + if e.complexity.ActionPlanHistory.DueDate == nil { + break + } + + return e.complexity.ActionPlanHistory.DueDate(childComplexity), true + + case "ActionPlanHistory.historyTime": + if e.complexity.ActionPlanHistory.HistoryTime == nil { + break + } + + return e.complexity.ActionPlanHistory.HistoryTime(childComplexity), true + + case "ActionPlanHistory.id": + if e.complexity.ActionPlanHistory.ID == nil { + break + } + + return e.complexity.ActionPlanHistory.ID(childComplexity), true + + case "ActionPlanHistory.name": + if e.complexity.ActionPlanHistory.Name == nil { + break + } + + return e.complexity.ActionPlanHistory.Name(childComplexity), true + + case "ActionPlanHistory.operation": + if e.complexity.ActionPlanHistory.Operation == nil { + break + } + + return e.complexity.ActionPlanHistory.Operation(childComplexity), true + + case "ActionPlanHistory.priority": + if e.complexity.ActionPlanHistory.Priority == nil { + break + } + + return e.complexity.ActionPlanHistory.Priority(childComplexity), true + + case "ActionPlanHistory.ref": + if e.complexity.ActionPlanHistory.Ref == nil { + break + } + + return e.complexity.ActionPlanHistory.Ref(childComplexity), true + + case "ActionPlanHistory.source": + if e.complexity.ActionPlanHistory.Source == nil { + break + } + + return e.complexity.ActionPlanHistory.Source(childComplexity), true + + case "ActionPlanHistory.status": + if e.complexity.ActionPlanHistory.Status == nil { + break + } + + return e.complexity.ActionPlanHistory.Status(childComplexity), true + + case "ActionPlanHistory.tags": + if e.complexity.ActionPlanHistory.Tags == nil { + break + } + + return e.complexity.ActionPlanHistory.Tags(childComplexity), true + + case "ActionPlanHistory.updatedAt": + if e.complexity.ActionPlanHistory.UpdatedAt == nil { + break + } + + return e.complexity.ActionPlanHistory.UpdatedAt(childComplexity), true + + case "ActionPlanHistory.updatedBy": + if e.complexity.ActionPlanHistory.UpdatedBy == nil { + break + } + + return e.complexity.ActionPlanHistory.UpdatedBy(childComplexity), true + + case "ActionPlanHistoryConnection.edges": + if e.complexity.ActionPlanHistoryConnection.Edges == nil { + break + } + + return e.complexity.ActionPlanHistoryConnection.Edges(childComplexity), true + + case "ActionPlanHistoryConnection.pageInfo": + if e.complexity.ActionPlanHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.ActionPlanHistoryConnection.PageInfo(childComplexity), true + + case "ActionPlanHistoryConnection.totalCount": + if e.complexity.ActionPlanHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.ActionPlanHistoryConnection.TotalCount(childComplexity), true + + case "ActionPlanHistoryEdge.cursor": + if e.complexity.ActionPlanHistoryEdge.Cursor == nil { + break + } + + return e.complexity.ActionPlanHistoryEdge.Cursor(childComplexity), true + + case "ActionPlanHistoryEdge.node": + if e.complexity.ActionPlanHistoryEdge.Node == nil { + break + } + + return e.complexity.ActionPlanHistoryEdge.Node(childComplexity), true + + case "ActionPlanSearchResult.actionPlans": + if e.complexity.ActionPlanSearchResult.ActionPlans == nil { + break + } + + return e.complexity.ActionPlanSearchResult.ActionPlans(childComplexity), true + + case "ActionPlanUpdatePayload.actionPlan": + if e.complexity.ActionPlanUpdatePayload.ActionPlan == nil { + break + } + + return e.complexity.ActionPlanUpdatePayload.ActionPlan(childComplexity), true + case "AuditLog.changes": if e.complexity.AuditLog.Changes == nil { break @@ -3581,6 +4945,902 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.ContactUpdatePayload.Contact(childComplexity), true + case "Control.actionplans": + if e.complexity.Control.Actionplans == nil { + break + } + + return e.complexity.Control.Actionplans(childComplexity), true + + case "Control.class": + if e.complexity.Control.Class == nil { + break + } + + return e.complexity.Control.Class(childComplexity), true + + case "Control.controlNumber": + if e.complexity.Control.ControlNumber == nil { + break + } + + return e.complexity.Control.ControlNumber(childComplexity), true + + case "Control.controlType": + if e.complexity.Control.ControlType == nil { + break + } + + return e.complexity.Control.ControlType(childComplexity), true + + case "Control.controlobjectives": + if e.complexity.Control.Controlobjectives == nil { + break + } + + return e.complexity.Control.Controlobjectives(childComplexity), true + + case "Control.createdAt": + if e.complexity.Control.CreatedAt == nil { + break + } + + return e.complexity.Control.CreatedAt(childComplexity), true + + case "Control.createdBy": + if e.complexity.Control.CreatedBy == nil { + break + } + + return e.complexity.Control.CreatedBy(childComplexity), true + + case "Control.deletedAt": + if e.complexity.Control.DeletedAt == nil { + break + } + + return e.complexity.Control.DeletedAt(childComplexity), true + + case "Control.deletedBy": + if e.complexity.Control.DeletedBy == nil { + break + } + + return e.complexity.Control.DeletedBy(childComplexity), true + + case "Control.description": + if e.complexity.Control.Description == nil { + break + } + + return e.complexity.Control.Description(childComplexity), true + + case "Control.details": + if e.complexity.Control.Details == nil { + break + } + + return e.complexity.Control.Details(childComplexity), true + + case "Control.family": + if e.complexity.Control.Family == nil { + break + } + + return e.complexity.Control.Family(childComplexity), true + + case "Control.id": + if e.complexity.Control.ID == nil { + break + } + + return e.complexity.Control.ID(childComplexity), true + + case "Control.mappedFrameworks": + if e.complexity.Control.MappedFrameworks == nil { + break + } + + return e.complexity.Control.MappedFrameworks(childComplexity), true + + case "Control.name": + if e.complexity.Control.Name == nil { + break + } + + return e.complexity.Control.Name(childComplexity), true + + case "Control.narratives": + if e.complexity.Control.Narratives == nil { + break + } + + return e.complexity.Control.Narratives(childComplexity), true + + case "Control.procedures": + if e.complexity.Control.Procedures == nil { + break + } + + return e.complexity.Control.Procedures(childComplexity), true + + case "Control.risks": + if e.complexity.Control.Risks == nil { + break + } + + return e.complexity.Control.Risks(childComplexity), true + + case "Control.satisfies": + if e.complexity.Control.Satisfies == nil { + break + } + + return e.complexity.Control.Satisfies(childComplexity), true + + case "Control.source": + if e.complexity.Control.Source == nil { + break + } + + return e.complexity.Control.Source(childComplexity), true + + case "Control.standard": + if e.complexity.Control.Standard == nil { + break + } + + return e.complexity.Control.Standard(childComplexity), true + + case "Control.status": + if e.complexity.Control.Status == nil { + break + } + + return e.complexity.Control.Status(childComplexity), true + + case "Control.subcontrols": + if e.complexity.Control.Subcontrols == nil { + break + } + + return e.complexity.Control.Subcontrols(childComplexity), true + + case "Control.tags": + if e.complexity.Control.Tags == nil { + break + } + + return e.complexity.Control.Tags(childComplexity), true + + case "Control.updatedAt": + if e.complexity.Control.UpdatedAt == nil { + break + } + + return e.complexity.Control.UpdatedAt(childComplexity), true + + case "Control.updatedBy": + if e.complexity.Control.UpdatedBy == nil { + break + } + + return e.complexity.Control.UpdatedBy(childComplexity), true + + case "Control.version": + if e.complexity.Control.Version == nil { + break + } + + return e.complexity.Control.Version(childComplexity), true + + case "ControlBulkCreatePayload.controls": + if e.complexity.ControlBulkCreatePayload.Controls == nil { + break + } + + return e.complexity.ControlBulkCreatePayload.Controls(childComplexity), true + + case "ControlConnection.edges": + if e.complexity.ControlConnection.Edges == nil { + break + } + + return e.complexity.ControlConnection.Edges(childComplexity), true + + case "ControlConnection.pageInfo": + if e.complexity.ControlConnection.PageInfo == nil { + break + } + + return e.complexity.ControlConnection.PageInfo(childComplexity), true + + case "ControlConnection.totalCount": + if e.complexity.ControlConnection.TotalCount == nil { + break + } + + return e.complexity.ControlConnection.TotalCount(childComplexity), true + + case "ControlCreatePayload.control": + if e.complexity.ControlCreatePayload.Control == nil { + break + } + + return e.complexity.ControlCreatePayload.Control(childComplexity), true + + case "ControlDeletePayload.deletedID": + if e.complexity.ControlDeletePayload.DeletedID == nil { + break + } + + return e.complexity.ControlDeletePayload.DeletedID(childComplexity), true + + case "ControlEdge.cursor": + if e.complexity.ControlEdge.Cursor == nil { + break + } + + return e.complexity.ControlEdge.Cursor(childComplexity), true + + case "ControlEdge.node": + if e.complexity.ControlEdge.Node == nil { + break + } + + return e.complexity.ControlEdge.Node(childComplexity), true + + case "ControlHistory.class": + if e.complexity.ControlHistory.Class == nil { + break + } + + return e.complexity.ControlHistory.Class(childComplexity), true + + case "ControlHistory.controlNumber": + if e.complexity.ControlHistory.ControlNumber == nil { + break + } + + return e.complexity.ControlHistory.ControlNumber(childComplexity), true + + case "ControlHistory.controlType": + if e.complexity.ControlHistory.ControlType == nil { + break + } + + return e.complexity.ControlHistory.ControlType(childComplexity), true + + case "ControlHistory.createdAt": + if e.complexity.ControlHistory.CreatedAt == nil { + break + } + + return e.complexity.ControlHistory.CreatedAt(childComplexity), true + + case "ControlHistory.createdBy": + if e.complexity.ControlHistory.CreatedBy == nil { + break + } + + return e.complexity.ControlHistory.CreatedBy(childComplexity), true + + case "ControlHistory.deletedAt": + if e.complexity.ControlHistory.DeletedAt == nil { + break + } + + return e.complexity.ControlHistory.DeletedAt(childComplexity), true + + case "ControlHistory.deletedBy": + if e.complexity.ControlHistory.DeletedBy == nil { + break + } + + return e.complexity.ControlHistory.DeletedBy(childComplexity), true + + case "ControlHistory.description": + if e.complexity.ControlHistory.Description == nil { + break + } + + return e.complexity.ControlHistory.Description(childComplexity), true + + case "ControlHistory.details": + if e.complexity.ControlHistory.Details == nil { + break + } + + return e.complexity.ControlHistory.Details(childComplexity), true + + case "ControlHistory.family": + if e.complexity.ControlHistory.Family == nil { + break + } + + return e.complexity.ControlHistory.Family(childComplexity), true + + case "ControlHistory.historyTime": + if e.complexity.ControlHistory.HistoryTime == nil { + break + } + + return e.complexity.ControlHistory.HistoryTime(childComplexity), true + + case "ControlHistory.id": + if e.complexity.ControlHistory.ID == nil { + break + } + + return e.complexity.ControlHistory.ID(childComplexity), true + + case "ControlHistory.mappedFrameworks": + if e.complexity.ControlHistory.MappedFrameworks == nil { + break + } + + return e.complexity.ControlHistory.MappedFrameworks(childComplexity), true + + case "ControlHistory.name": + if e.complexity.ControlHistory.Name == nil { + break + } + + return e.complexity.ControlHistory.Name(childComplexity), true + + case "ControlHistory.operation": + if e.complexity.ControlHistory.Operation == nil { + break + } + + return e.complexity.ControlHistory.Operation(childComplexity), true + + case "ControlHistory.ref": + if e.complexity.ControlHistory.Ref == nil { + break + } + + return e.complexity.ControlHistory.Ref(childComplexity), true + + case "ControlHistory.satisfies": + if e.complexity.ControlHistory.Satisfies == nil { + break + } + + return e.complexity.ControlHistory.Satisfies(childComplexity), true + + case "ControlHistory.source": + if e.complexity.ControlHistory.Source == nil { + break + } + + return e.complexity.ControlHistory.Source(childComplexity), true + + case "ControlHistory.status": + if e.complexity.ControlHistory.Status == nil { + break + } + + return e.complexity.ControlHistory.Status(childComplexity), true + + case "ControlHistory.tags": + if e.complexity.ControlHistory.Tags == nil { + break + } + + return e.complexity.ControlHistory.Tags(childComplexity), true + + case "ControlHistory.updatedAt": + if e.complexity.ControlHistory.UpdatedAt == nil { + break + } + + return e.complexity.ControlHistory.UpdatedAt(childComplexity), true + + case "ControlHistory.updatedBy": + if e.complexity.ControlHistory.UpdatedBy == nil { + break + } + + return e.complexity.ControlHistory.UpdatedBy(childComplexity), true + + case "ControlHistory.version": + if e.complexity.ControlHistory.Version == nil { + break + } + + return e.complexity.ControlHistory.Version(childComplexity), true + + case "ControlHistoryConnection.edges": + if e.complexity.ControlHistoryConnection.Edges == nil { + break + } + + return e.complexity.ControlHistoryConnection.Edges(childComplexity), true + + case "ControlHistoryConnection.pageInfo": + if e.complexity.ControlHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.ControlHistoryConnection.PageInfo(childComplexity), true + + case "ControlHistoryConnection.totalCount": + if e.complexity.ControlHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.ControlHistoryConnection.TotalCount(childComplexity), true + + case "ControlHistoryEdge.cursor": + if e.complexity.ControlHistoryEdge.Cursor == nil { + break + } + + return e.complexity.ControlHistoryEdge.Cursor(childComplexity), true + + case "ControlHistoryEdge.node": + if e.complexity.ControlHistoryEdge.Node == nil { + break + } + + return e.complexity.ControlHistoryEdge.Node(childComplexity), true + + case "ControlObjective.class": + if e.complexity.ControlObjective.Class == nil { + break + } + + return e.complexity.ControlObjective.Class(childComplexity), true + + case "ControlObjective.controlNumber": + if e.complexity.ControlObjective.ControlNumber == nil { + break + } + + return e.complexity.ControlObjective.ControlNumber(childComplexity), true + + case "ControlObjective.controlObjectiveType": + if e.complexity.ControlObjective.ControlObjectiveType == nil { + break + } + + return e.complexity.ControlObjective.ControlObjectiveType(childComplexity), true + + case "ControlObjective.controls": + if e.complexity.ControlObjective.Controls == nil { + break + } + + return e.complexity.ControlObjective.Controls(childComplexity), true + + case "ControlObjective.createdAt": + if e.complexity.ControlObjective.CreatedAt == nil { + break + } + + return e.complexity.ControlObjective.CreatedAt(childComplexity), true + + case "ControlObjective.createdBy": + if e.complexity.ControlObjective.CreatedBy == nil { + break + } + + return e.complexity.ControlObjective.CreatedBy(childComplexity), true + + case "ControlObjective.deletedAt": + if e.complexity.ControlObjective.DeletedAt == nil { + break + } + + return e.complexity.ControlObjective.DeletedAt(childComplexity), true + + case "ControlObjective.deletedBy": + if e.complexity.ControlObjective.DeletedBy == nil { + break + } + + return e.complexity.ControlObjective.DeletedBy(childComplexity), true + + case "ControlObjective.description": + if e.complexity.ControlObjective.Description == nil { + break + } + + return e.complexity.ControlObjective.Description(childComplexity), true + + case "ControlObjective.details": + if e.complexity.ControlObjective.Details == nil { + break + } + + return e.complexity.ControlObjective.Details(childComplexity), true + + case "ControlObjective.family": + if e.complexity.ControlObjective.Family == nil { + break + } + + return e.complexity.ControlObjective.Family(childComplexity), true + + case "ControlObjective.id": + if e.complexity.ControlObjective.ID == nil { + break + } + + return e.complexity.ControlObjective.ID(childComplexity), true + + case "ControlObjective.mappedFrameworks": + if e.complexity.ControlObjective.MappedFrameworks == nil { + break + } + + return e.complexity.ControlObjective.MappedFrameworks(childComplexity), true + + case "ControlObjective.name": + if e.complexity.ControlObjective.Name == nil { + break + } + + return e.complexity.ControlObjective.Name(childComplexity), true + + case "ControlObjective.narratives": + if e.complexity.ControlObjective.Narratives == nil { + break + } + + return e.complexity.ControlObjective.Narratives(childComplexity), true + + case "ControlObjective.policy": + if e.complexity.ControlObjective.Policy == nil { + break + } + + return e.complexity.ControlObjective.Policy(childComplexity), true + + case "ControlObjective.procedures": + if e.complexity.ControlObjective.Procedures == nil { + break + } + + return e.complexity.ControlObjective.Procedures(childComplexity), true + + case "ControlObjective.risks": + if e.complexity.ControlObjective.Risks == nil { + break + } + + return e.complexity.ControlObjective.Risks(childComplexity), true + + case "ControlObjective.source": + if e.complexity.ControlObjective.Source == nil { + break + } + + return e.complexity.ControlObjective.Source(childComplexity), true + + case "ControlObjective.standard": + if e.complexity.ControlObjective.Standard == nil { + break + } + + return e.complexity.ControlObjective.Standard(childComplexity), true + + case "ControlObjective.status": + if e.complexity.ControlObjective.Status == nil { + break + } + + return e.complexity.ControlObjective.Status(childComplexity), true + + case "ControlObjective.subcontrols": + if e.complexity.ControlObjective.Subcontrols == nil { + break + } + + return e.complexity.ControlObjective.Subcontrols(childComplexity), true + + case "ControlObjective.tags": + if e.complexity.ControlObjective.Tags == nil { + break + } + + return e.complexity.ControlObjective.Tags(childComplexity), true + + case "ControlObjective.updatedAt": + if e.complexity.ControlObjective.UpdatedAt == nil { + break + } + + return e.complexity.ControlObjective.UpdatedAt(childComplexity), true + + case "ControlObjective.updatedBy": + if e.complexity.ControlObjective.UpdatedBy == nil { + break + } + + return e.complexity.ControlObjective.UpdatedBy(childComplexity), true + + case "ControlObjective.version": + if e.complexity.ControlObjective.Version == nil { + break + } + + return e.complexity.ControlObjective.Version(childComplexity), true + + case "ControlObjectiveBulkCreatePayload.controlObjectives": + if e.complexity.ControlObjectiveBulkCreatePayload.ControlObjectives == nil { + break + } + + return e.complexity.ControlObjectiveBulkCreatePayload.ControlObjectives(childComplexity), true + + case "ControlObjectiveConnection.edges": + if e.complexity.ControlObjectiveConnection.Edges == nil { + break + } + + return e.complexity.ControlObjectiveConnection.Edges(childComplexity), true + + case "ControlObjectiveConnection.pageInfo": + if e.complexity.ControlObjectiveConnection.PageInfo == nil { + break + } + + return e.complexity.ControlObjectiveConnection.PageInfo(childComplexity), true + + case "ControlObjectiveConnection.totalCount": + if e.complexity.ControlObjectiveConnection.TotalCount == nil { + break + } + + return e.complexity.ControlObjectiveConnection.TotalCount(childComplexity), true + + case "ControlObjectiveCreatePayload.controlObjective": + if e.complexity.ControlObjectiveCreatePayload.ControlObjective == nil { + break + } + + return e.complexity.ControlObjectiveCreatePayload.ControlObjective(childComplexity), true + + case "ControlObjectiveDeletePayload.deletedID": + if e.complexity.ControlObjectiveDeletePayload.DeletedID == nil { + break + } + + return e.complexity.ControlObjectiveDeletePayload.DeletedID(childComplexity), true + + case "ControlObjectiveEdge.cursor": + if e.complexity.ControlObjectiveEdge.Cursor == nil { + break + } + + return e.complexity.ControlObjectiveEdge.Cursor(childComplexity), true + + case "ControlObjectiveEdge.node": + if e.complexity.ControlObjectiveEdge.Node == nil { + break + } + + return e.complexity.ControlObjectiveEdge.Node(childComplexity), true + + case "ControlObjectiveHistory.class": + if e.complexity.ControlObjectiveHistory.Class == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Class(childComplexity), true + + case "ControlObjectiveHistory.controlNumber": + if e.complexity.ControlObjectiveHistory.ControlNumber == nil { + break + } + + return e.complexity.ControlObjectiveHistory.ControlNumber(childComplexity), true + + case "ControlObjectiveHistory.controlObjectiveType": + if e.complexity.ControlObjectiveHistory.ControlObjectiveType == nil { + break + } + + return e.complexity.ControlObjectiveHistory.ControlObjectiveType(childComplexity), true + + case "ControlObjectiveHistory.createdAt": + if e.complexity.ControlObjectiveHistory.CreatedAt == nil { + break + } + + return e.complexity.ControlObjectiveHistory.CreatedAt(childComplexity), true + + case "ControlObjectiveHistory.createdBy": + if e.complexity.ControlObjectiveHistory.CreatedBy == nil { + break + } + + return e.complexity.ControlObjectiveHistory.CreatedBy(childComplexity), true + + case "ControlObjectiveHistory.deletedAt": + if e.complexity.ControlObjectiveHistory.DeletedAt == nil { + break + } + + return e.complexity.ControlObjectiveHistory.DeletedAt(childComplexity), true + + case "ControlObjectiveHistory.deletedBy": + if e.complexity.ControlObjectiveHistory.DeletedBy == nil { + break + } + + return e.complexity.ControlObjectiveHistory.DeletedBy(childComplexity), true + + case "ControlObjectiveHistory.description": + if e.complexity.ControlObjectiveHistory.Description == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Description(childComplexity), true + + case "ControlObjectiveHistory.details": + if e.complexity.ControlObjectiveHistory.Details == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Details(childComplexity), true + + case "ControlObjectiveHistory.family": + if e.complexity.ControlObjectiveHistory.Family == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Family(childComplexity), true + + case "ControlObjectiveHistory.historyTime": + if e.complexity.ControlObjectiveHistory.HistoryTime == nil { + break + } + + return e.complexity.ControlObjectiveHistory.HistoryTime(childComplexity), true + + case "ControlObjectiveHistory.id": + if e.complexity.ControlObjectiveHistory.ID == nil { + break + } + + return e.complexity.ControlObjectiveHistory.ID(childComplexity), true + + case "ControlObjectiveHistory.mappedFrameworks": + if e.complexity.ControlObjectiveHistory.MappedFrameworks == nil { + break + } + + return e.complexity.ControlObjectiveHistory.MappedFrameworks(childComplexity), true + + case "ControlObjectiveHistory.name": + if e.complexity.ControlObjectiveHistory.Name == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Name(childComplexity), true + + case "ControlObjectiveHistory.operation": + if e.complexity.ControlObjectiveHistory.Operation == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Operation(childComplexity), true + + case "ControlObjectiveHistory.ref": + if e.complexity.ControlObjectiveHistory.Ref == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Ref(childComplexity), true + + case "ControlObjectiveHistory.source": + if e.complexity.ControlObjectiveHistory.Source == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Source(childComplexity), true + + case "ControlObjectiveHistory.status": + if e.complexity.ControlObjectiveHistory.Status == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Status(childComplexity), true + + case "ControlObjectiveHistory.tags": + if e.complexity.ControlObjectiveHistory.Tags == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Tags(childComplexity), true + + case "ControlObjectiveHistory.updatedAt": + if e.complexity.ControlObjectiveHistory.UpdatedAt == nil { + break + } + + return e.complexity.ControlObjectiveHistory.UpdatedAt(childComplexity), true + + case "ControlObjectiveHistory.updatedBy": + if e.complexity.ControlObjectiveHistory.UpdatedBy == nil { + break + } + + return e.complexity.ControlObjectiveHistory.UpdatedBy(childComplexity), true + + case "ControlObjectiveHistory.version": + if e.complexity.ControlObjectiveHistory.Version == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Version(childComplexity), true + + case "ControlObjectiveHistoryConnection.edges": + if e.complexity.ControlObjectiveHistoryConnection.Edges == nil { + break + } + + return e.complexity.ControlObjectiveHistoryConnection.Edges(childComplexity), true + + case "ControlObjectiveHistoryConnection.pageInfo": + if e.complexity.ControlObjectiveHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.ControlObjectiveHistoryConnection.PageInfo(childComplexity), true + + case "ControlObjectiveHistoryConnection.totalCount": + if e.complexity.ControlObjectiveHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.ControlObjectiveHistoryConnection.TotalCount(childComplexity), true + + case "ControlObjectiveHistoryEdge.cursor": + if e.complexity.ControlObjectiveHistoryEdge.Cursor == nil { + break + } + + return e.complexity.ControlObjectiveHistoryEdge.Cursor(childComplexity), true + + case "ControlObjectiveHistoryEdge.node": + if e.complexity.ControlObjectiveHistoryEdge.Node == nil { + break + } + + return e.complexity.ControlObjectiveHistoryEdge.Node(childComplexity), true + + case "ControlObjectiveSearchResult.controlObjectives": + if e.complexity.ControlObjectiveSearchResult.ControlObjectives == nil { + break + } + + return e.complexity.ControlObjectiveSearchResult.ControlObjectives(childComplexity), true + + case "ControlObjectiveUpdatePayload.controlObjective": + if e.complexity.ControlObjectiveUpdatePayload.ControlObjective == nil { + break + } + + return e.complexity.ControlObjectiveUpdatePayload.ControlObjective(childComplexity), true + + case "ControlSearchResult.controls": + if e.complexity.ControlSearchResult.Controls == nil { + break + } + + return e.complexity.ControlSearchResult.Controls(childComplexity), true + + case "ControlUpdatePayload.control": + if e.complexity.ControlUpdatePayload.Control == nil { + break + } + + return e.complexity.ControlUpdatePayload.Control(childComplexity), true + case "DocumentData.createdAt": if e.complexity.DocumentData.CreatedAt == nil { break @@ -8397,6 +10657,384 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.IntegrationUpdatePayload.Integration(childComplexity), true + case "InternalPolicy.background": + if e.complexity.InternalPolicy.Background == nil { + break + } + + return e.complexity.InternalPolicy.Background(childComplexity), true + + case "InternalPolicy.controlobjectives": + if e.complexity.InternalPolicy.Controlobjectives == nil { + break + } + + return e.complexity.InternalPolicy.Controlobjectives(childComplexity), true + + case "InternalPolicy.controls": + if e.complexity.InternalPolicy.Controls == nil { + break + } + + return e.complexity.InternalPolicy.Controls(childComplexity), true + + case "InternalPolicy.createdAt": + if e.complexity.InternalPolicy.CreatedAt == nil { + break + } + + return e.complexity.InternalPolicy.CreatedAt(childComplexity), true + + case "InternalPolicy.createdBy": + if e.complexity.InternalPolicy.CreatedBy == nil { + break + } + + return e.complexity.InternalPolicy.CreatedBy(childComplexity), true + + case "InternalPolicy.deletedAt": + if e.complexity.InternalPolicy.DeletedAt == nil { + break + } + + return e.complexity.InternalPolicy.DeletedAt(childComplexity), true + + case "InternalPolicy.deletedBy": + if e.complexity.InternalPolicy.DeletedBy == nil { + break + } + + return e.complexity.InternalPolicy.DeletedBy(childComplexity), true + + case "InternalPolicy.description": + if e.complexity.InternalPolicy.Description == nil { + break + } + + return e.complexity.InternalPolicy.Description(childComplexity), true + + case "InternalPolicy.details": + if e.complexity.InternalPolicy.Details == nil { + break + } + + return e.complexity.InternalPolicy.Details(childComplexity), true + + case "InternalPolicy.id": + if e.complexity.InternalPolicy.ID == nil { + break + } + + return e.complexity.InternalPolicy.ID(childComplexity), true + + case "InternalPolicy.name": + if e.complexity.InternalPolicy.Name == nil { + break + } + + return e.complexity.InternalPolicy.Name(childComplexity), true + + case "InternalPolicy.narratives": + if e.complexity.InternalPolicy.Narratives == nil { + break + } + + return e.complexity.InternalPolicy.Narratives(childComplexity), true + + case "InternalPolicy.policyType": + if e.complexity.InternalPolicy.PolicyType == nil { + break + } + + return e.complexity.InternalPolicy.PolicyType(childComplexity), true + + case "InternalPolicy.procedures": + if e.complexity.InternalPolicy.Procedures == nil { + break + } + + return e.complexity.InternalPolicy.Procedures(childComplexity), true + + case "InternalPolicy.purposeAndScope": + if e.complexity.InternalPolicy.PurposeAndScope == nil { + break + } + + return e.complexity.InternalPolicy.PurposeAndScope(childComplexity), true + + case "InternalPolicy.status": + if e.complexity.InternalPolicy.Status == nil { + break + } + + return e.complexity.InternalPolicy.Status(childComplexity), true + + case "InternalPolicy.tags": + if e.complexity.InternalPolicy.Tags == nil { + break + } + + return e.complexity.InternalPolicy.Tags(childComplexity), true + + case "InternalPolicy.updatedAt": + if e.complexity.InternalPolicy.UpdatedAt == nil { + break + } + + return e.complexity.InternalPolicy.UpdatedAt(childComplexity), true + + case "InternalPolicy.updatedBy": + if e.complexity.InternalPolicy.UpdatedBy == nil { + break + } + + return e.complexity.InternalPolicy.UpdatedBy(childComplexity), true + + case "InternalPolicy.version": + if e.complexity.InternalPolicy.Version == nil { + break + } + + return e.complexity.InternalPolicy.Version(childComplexity), true + + case "InternalPolicyBulkCreatePayload.internalPolicies": + if e.complexity.InternalPolicyBulkCreatePayload.InternalPolicies == nil { + break + } + + return e.complexity.InternalPolicyBulkCreatePayload.InternalPolicies(childComplexity), true + + case "InternalPolicyConnection.edges": + if e.complexity.InternalPolicyConnection.Edges == nil { + break + } + + return e.complexity.InternalPolicyConnection.Edges(childComplexity), true + + case "InternalPolicyConnection.pageInfo": + if e.complexity.InternalPolicyConnection.PageInfo == nil { + break + } + + return e.complexity.InternalPolicyConnection.PageInfo(childComplexity), true + + case "InternalPolicyConnection.totalCount": + if e.complexity.InternalPolicyConnection.TotalCount == nil { + break + } + + return e.complexity.InternalPolicyConnection.TotalCount(childComplexity), true + + case "InternalPolicyCreatePayload.internalPolicy": + if e.complexity.InternalPolicyCreatePayload.InternalPolicy == nil { + break + } + + return e.complexity.InternalPolicyCreatePayload.InternalPolicy(childComplexity), true + + case "InternalPolicyDeletePayload.deletedID": + if e.complexity.InternalPolicyDeletePayload.DeletedID == nil { + break + } + + return e.complexity.InternalPolicyDeletePayload.DeletedID(childComplexity), true + + case "InternalPolicyEdge.cursor": + if e.complexity.InternalPolicyEdge.Cursor == nil { + break + } + + return e.complexity.InternalPolicyEdge.Cursor(childComplexity), true + + case "InternalPolicyEdge.node": + if e.complexity.InternalPolicyEdge.Node == nil { + break + } + + return e.complexity.InternalPolicyEdge.Node(childComplexity), true + + case "InternalPolicyHistory.background": + if e.complexity.InternalPolicyHistory.Background == nil { + break + } + + return e.complexity.InternalPolicyHistory.Background(childComplexity), true + + case "InternalPolicyHistory.createdAt": + if e.complexity.InternalPolicyHistory.CreatedAt == nil { + break + } + + return e.complexity.InternalPolicyHistory.CreatedAt(childComplexity), true + + case "InternalPolicyHistory.createdBy": + if e.complexity.InternalPolicyHistory.CreatedBy == nil { + break + } + + return e.complexity.InternalPolicyHistory.CreatedBy(childComplexity), true + + case "InternalPolicyHistory.deletedAt": + if e.complexity.InternalPolicyHistory.DeletedAt == nil { + break + } + + return e.complexity.InternalPolicyHistory.DeletedAt(childComplexity), true + + case "InternalPolicyHistory.deletedBy": + if e.complexity.InternalPolicyHistory.DeletedBy == nil { + break + } + + return e.complexity.InternalPolicyHistory.DeletedBy(childComplexity), true + + case "InternalPolicyHistory.description": + if e.complexity.InternalPolicyHistory.Description == nil { + break + } + + return e.complexity.InternalPolicyHistory.Description(childComplexity), true + + case "InternalPolicyHistory.details": + if e.complexity.InternalPolicyHistory.Details == nil { + break + } + + return e.complexity.InternalPolicyHistory.Details(childComplexity), true + + case "InternalPolicyHistory.historyTime": + if e.complexity.InternalPolicyHistory.HistoryTime == nil { + break + } + + return e.complexity.InternalPolicyHistory.HistoryTime(childComplexity), true + + case "InternalPolicyHistory.id": + if e.complexity.InternalPolicyHistory.ID == nil { + break + } + + return e.complexity.InternalPolicyHistory.ID(childComplexity), true + + case "InternalPolicyHistory.name": + if e.complexity.InternalPolicyHistory.Name == nil { + break + } + + return e.complexity.InternalPolicyHistory.Name(childComplexity), true + + case "InternalPolicyHistory.operation": + if e.complexity.InternalPolicyHistory.Operation == nil { + break + } + + return e.complexity.InternalPolicyHistory.Operation(childComplexity), true + + case "InternalPolicyHistory.policyType": + if e.complexity.InternalPolicyHistory.PolicyType == nil { + break + } + + return e.complexity.InternalPolicyHistory.PolicyType(childComplexity), true + + case "InternalPolicyHistory.purposeAndScope": + if e.complexity.InternalPolicyHistory.PurposeAndScope == nil { + break + } + + return e.complexity.InternalPolicyHistory.PurposeAndScope(childComplexity), true + + case "InternalPolicyHistory.ref": + if e.complexity.InternalPolicyHistory.Ref == nil { + break + } + + return e.complexity.InternalPolicyHistory.Ref(childComplexity), true + + case "InternalPolicyHistory.status": + if e.complexity.InternalPolicyHistory.Status == nil { + break + } + + return e.complexity.InternalPolicyHistory.Status(childComplexity), true + + case "InternalPolicyHistory.tags": + if e.complexity.InternalPolicyHistory.Tags == nil { + break + } + + return e.complexity.InternalPolicyHistory.Tags(childComplexity), true + + case "InternalPolicyHistory.updatedAt": + if e.complexity.InternalPolicyHistory.UpdatedAt == nil { + break + } + + return e.complexity.InternalPolicyHistory.UpdatedAt(childComplexity), true + + case "InternalPolicyHistory.updatedBy": + if e.complexity.InternalPolicyHistory.UpdatedBy == nil { + break + } + + return e.complexity.InternalPolicyHistory.UpdatedBy(childComplexity), true + + case "InternalPolicyHistory.version": + if e.complexity.InternalPolicyHistory.Version == nil { + break + } + + return e.complexity.InternalPolicyHistory.Version(childComplexity), true + + case "InternalPolicyHistoryConnection.edges": + if e.complexity.InternalPolicyHistoryConnection.Edges == nil { + break + } + + return e.complexity.InternalPolicyHistoryConnection.Edges(childComplexity), true + + case "InternalPolicyHistoryConnection.pageInfo": + if e.complexity.InternalPolicyHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.InternalPolicyHistoryConnection.PageInfo(childComplexity), true + + case "InternalPolicyHistoryConnection.totalCount": + if e.complexity.InternalPolicyHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.InternalPolicyHistoryConnection.TotalCount(childComplexity), true + + case "InternalPolicyHistoryEdge.cursor": + if e.complexity.InternalPolicyHistoryEdge.Cursor == nil { + break + } + + return e.complexity.InternalPolicyHistoryEdge.Cursor(childComplexity), true + + case "InternalPolicyHistoryEdge.node": + if e.complexity.InternalPolicyHistoryEdge.Node == nil { + break + } + + return e.complexity.InternalPolicyHistoryEdge.Node(childComplexity), true + + case "InternalPolicySearchResult.internalPolicies": + if e.complexity.InternalPolicySearchResult.InternalPolicies == nil { + break + } + + return e.complexity.InternalPolicySearchResult.InternalPolicies(childComplexity), true + + case "InternalPolicyUpdatePayload.internalPolicy": + if e.complexity.InternalPolicyUpdatePayload.InternalPolicy == nil { + break + } + + return e.complexity.InternalPolicyUpdatePayload.InternalPolicy(childComplexity), true + case "Invite.createdAt": if e.complexity.Invite.CreatedAt == nil { break @@ -8584,6 +11222,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateAPIToken(childComplexity, args["input"].(generated.CreateAPITokenInput)), true + case "Mutation.createActionPlan": + if e.complexity.Mutation.CreateActionPlan == nil { + break + } + + args, err := ec.field_Mutation_createActionPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateActionPlan(childComplexity, args["input"].(generated.CreateActionPlanInput)), true + case "Mutation.createBulkAPIToken": if e.complexity.Mutation.CreateBulkAPIToken == nil { break @@ -8596,6 +11246,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateBulkAPIToken(childComplexity, args["input"].([]*generated.CreateAPITokenInput)), true + case "Mutation.createBulkActionPlan": + if e.complexity.Mutation.CreateBulkActionPlan == nil { + break + } + + args, err := ec.field_Mutation_createBulkActionPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkActionPlan(childComplexity, args["input"].([]*generated.CreateActionPlanInput)), true + case "Mutation.createBulkCSVAPIToken": if e.complexity.Mutation.CreateBulkCSVAPIToken == nil { break @@ -8608,6 +11270,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateBulkCSVAPIToken(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.createBulkCSVActionPlan": + if e.complexity.Mutation.CreateBulkCSVActionPlan == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVActionPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVActionPlan(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.createBulkCSVContact": if e.complexity.Mutation.CreateBulkCSVContact == nil { break @@ -8620,6 +11294,30 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateBulkCSVContact(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.createBulkCSVControl": + if e.complexity.Mutation.CreateBulkCSVControl == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVControl_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVControl(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVControlObjective": + if e.complexity.Mutation.CreateBulkCSVControlObjective == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVControlObjective_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVControlObjective(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.createBulkCSVDocumentData": if e.complexity.Mutation.CreateBulkCSVDocumentData == nil { break @@ -8776,6 +11474,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateBulkCSVIntegration(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.createBulkCSVInternalPolicy": + if e.complexity.Mutation.CreateBulkCSVInternalPolicy == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVInternalPolicy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVInternalPolicy(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.createBulkCSVInvite": if e.complexity.Mutation.CreateBulkCSVInvite == nil { break @@ -8788,6 +11498,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateBulkCSVInvite(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.createBulkCSVNarrative": + if e.complexity.Mutation.CreateBulkCSVNarrative == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVNarrative_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVNarrative(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.createBulkCSVOauthProvider": if e.complexity.Mutation.CreateBulkCSVOauthProvider == nil { break @@ -8860,6 +11582,54 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateBulkCSVPersonalAccessToken(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.createBulkCSVProcedure": + if e.complexity.Mutation.CreateBulkCSVProcedure == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVProcedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVProcedure(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVRisk": + if e.complexity.Mutation.CreateBulkCSVRisk == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVRisk_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVRisk(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVStandard": + if e.complexity.Mutation.CreateBulkCSVStandard == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVStandard_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVStandard(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVSubcontrol": + if e.complexity.Mutation.CreateBulkCSVSubcontrol == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVSubcontrol_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVSubcontrol(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.createBulkCSVSubscriber": if e.complexity.Mutation.CreateBulkCSVSubscriber == nil { break @@ -8920,6 +11690,30 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateBulkContact(childComplexity, args["input"].([]*generated.CreateContactInput)), true + case "Mutation.createBulkControl": + if e.complexity.Mutation.CreateBulkControl == nil { + break + } + + args, err := ec.field_Mutation_createBulkControl_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkControl(childComplexity, args["input"].([]*generated.CreateControlInput)), true + + case "Mutation.createBulkControlObjective": + if e.complexity.Mutation.CreateBulkControlObjective == nil { + break + } + + args, err := ec.field_Mutation_createBulkControlObjective_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkControlObjective(childComplexity, args["input"].([]*generated.CreateControlObjectiveInput)), true + case "Mutation.createBulkDocumentData": if e.complexity.Mutation.CreateBulkDocumentData == nil { break @@ -9076,6 +11870,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateBulkIntegration(childComplexity, args["input"].([]*generated.CreateIntegrationInput)), true + case "Mutation.createBulkInternalPolicy": + if e.complexity.Mutation.CreateBulkInternalPolicy == nil { + break + } + + args, err := ec.field_Mutation_createBulkInternalPolicy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkInternalPolicy(childComplexity, args["input"].([]*generated.CreateInternalPolicyInput)), true + case "Mutation.createBulkInvite": if e.complexity.Mutation.CreateBulkInvite == nil { break @@ -9088,6 +11894,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateBulkInvite(childComplexity, args["input"].([]*generated.CreateInviteInput)), true + case "Mutation.createBulkNarrative": + if e.complexity.Mutation.CreateBulkNarrative == nil { + break + } + + args, err := ec.field_Mutation_createBulkNarrative_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkNarrative(childComplexity, args["input"].([]*generated.CreateNarrativeInput)), true + case "Mutation.createBulkOauthProvider": if e.complexity.Mutation.CreateBulkOauthProvider == nil { break @@ -9160,6 +11978,54 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateBulkPersonalAccessToken(childComplexity, args["input"].([]*generated.CreatePersonalAccessTokenInput)), true + case "Mutation.createBulkProcedure": + if e.complexity.Mutation.CreateBulkProcedure == nil { + break + } + + args, err := ec.field_Mutation_createBulkProcedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkProcedure(childComplexity, args["input"].([]*generated.CreateProcedureInput)), true + + case "Mutation.createBulkRisk": + if e.complexity.Mutation.CreateBulkRisk == nil { + break + } + + args, err := ec.field_Mutation_createBulkRisk_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkRisk(childComplexity, args["input"].([]*generated.CreateRiskInput)), true + + case "Mutation.createBulkStandard": + if e.complexity.Mutation.CreateBulkStandard == nil { + break + } + + args, err := ec.field_Mutation_createBulkStandard_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkStandard(childComplexity, args["input"].([]*generated.CreateStandardInput)), true + + case "Mutation.createBulkSubcontrol": + if e.complexity.Mutation.CreateBulkSubcontrol == nil { + break + } + + args, err := ec.field_Mutation_createBulkSubcontrol_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkSubcontrol(childComplexity, args["input"].([]*generated.CreateSubcontrolInput)), true + case "Mutation.createBulkSubscriber": if e.complexity.Mutation.CreateBulkSubscriber == nil { break @@ -9220,6 +12086,30 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateContact(childComplexity, args["input"].(generated.CreateContactInput)), true + case "Mutation.createControl": + if e.complexity.Mutation.CreateControl == nil { + break + } + + args, err := ec.field_Mutation_createControl_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateControl(childComplexity, args["input"].(generated.CreateControlInput)), true + + case "Mutation.createControlObjective": + if e.complexity.Mutation.CreateControlObjective == nil { + break + } + + args, err := ec.field_Mutation_createControlObjective_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateControlObjective(childComplexity, args["input"].(generated.CreateControlObjectiveInput)), true + case "Mutation.createDocumentData": if e.complexity.Mutation.CreateDocumentData == nil { break @@ -9376,6 +12266,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateIntegration(childComplexity, args["input"].(generated.CreateIntegrationInput)), true + case "Mutation.createInternalPolicy": + if e.complexity.Mutation.CreateInternalPolicy == nil { + break + } + + args, err := ec.field_Mutation_createInternalPolicy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateInternalPolicy(childComplexity, args["input"].(generated.CreateInternalPolicyInput)), true + case "Mutation.createInvite": if e.complexity.Mutation.CreateInvite == nil { break @@ -9388,6 +12290,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreateInvite(childComplexity, args["input"].(generated.CreateInviteInput)), true + case "Mutation.createNarrative": + if e.complexity.Mutation.CreateNarrative == nil { + break + } + + args, err := ec.field_Mutation_createNarrative_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateNarrative(childComplexity, args["input"].(generated.CreateNarrativeInput)), true + case "Mutation.createOauthProvider": if e.complexity.Mutation.CreateOauthProvider == nil { break @@ -9460,6 +12374,54 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.CreatePersonalAccessToken(childComplexity, args["input"].(generated.CreatePersonalAccessTokenInput)), true + case "Mutation.createProcedure": + if e.complexity.Mutation.CreateProcedure == nil { + break + } + + args, err := ec.field_Mutation_createProcedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateProcedure(childComplexity, args["input"].(generated.CreateProcedureInput)), true + + case "Mutation.createRisk": + if e.complexity.Mutation.CreateRisk == nil { + break + } + + args, err := ec.field_Mutation_createRisk_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateRisk(childComplexity, args["input"].(generated.CreateRiskInput)), true + + case "Mutation.createStandard": + if e.complexity.Mutation.CreateStandard == nil { + break + } + + args, err := ec.field_Mutation_createStandard_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateStandard(childComplexity, args["input"].(generated.CreateStandardInput)), true + + case "Mutation.createSubcontrol": + if e.complexity.Mutation.CreateSubcontrol == nil { + break + } + + args, err := ec.field_Mutation_createSubcontrol_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateSubcontrol(childComplexity, args["input"].(generated.CreateSubcontrolInput)), true + case "Mutation.createSubscriber": if e.complexity.Mutation.CreateSubscriber == nil { break @@ -9544,6 +12506,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.DeleteAPIToken(childComplexity, args["id"].(string)), true + case "Mutation.deleteActionPlan": + if e.complexity.Mutation.DeleteActionPlan == nil { + break + } + + args, err := ec.field_Mutation_deleteActionPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteActionPlan(childComplexity, args["id"].(string)), true + case "Mutation.deleteContact": if e.complexity.Mutation.DeleteContact == nil { break @@ -9556,6 +12530,30 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.DeleteContact(childComplexity, args["id"].(string)), true + case "Mutation.deleteControl": + if e.complexity.Mutation.DeleteControl == nil { + break + } + + args, err := ec.field_Mutation_deleteControl_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteControl(childComplexity, args["id"].(string)), true + + case "Mutation.deleteControlObjective": + if e.complexity.Mutation.DeleteControlObjective == nil { + break + } + + args, err := ec.field_Mutation_deleteControlObjective_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteControlObjective(childComplexity, args["id"].(string)), true + case "Mutation.deleteDocumentData": if e.complexity.Mutation.DeleteDocumentData == nil { break @@ -9724,6 +12722,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.DeleteIntegration(childComplexity, args["id"].(string)), true + case "Mutation.deleteInternalPolicy": + if e.complexity.Mutation.DeleteInternalPolicy == nil { + break + } + + args, err := ec.field_Mutation_deleteInternalPolicy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteInternalPolicy(childComplexity, args["id"].(string)), true + case "Mutation.deleteInvite": if e.complexity.Mutation.DeleteInvite == nil { break @@ -9736,6 +12746,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.DeleteInvite(childComplexity, args["id"].(string)), true + case "Mutation.deleteNarrative": + if e.complexity.Mutation.DeleteNarrative == nil { + break + } + + args, err := ec.field_Mutation_deleteNarrative_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteNarrative(childComplexity, args["id"].(string)), true + case "Mutation.deleteOauthProvider": if e.complexity.Mutation.DeleteOauthProvider == nil { break @@ -9808,6 +12830,54 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.DeletePersonalAccessToken(childComplexity, args["id"].(string)), true + case "Mutation.deleteProcedure": + if e.complexity.Mutation.DeleteProcedure == nil { + break + } + + args, err := ec.field_Mutation_deleteProcedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteProcedure(childComplexity, args["id"].(string)), true + + case "Mutation.deleteRisk": + if e.complexity.Mutation.DeleteRisk == nil { + break + } + + args, err := ec.field_Mutation_deleteRisk_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteRisk(childComplexity, args["id"].(string)), true + + case "Mutation.deleteStandard": + if e.complexity.Mutation.DeleteStandard == nil { + break + } + + args, err := ec.field_Mutation_deleteStandard_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteStandard(childComplexity, args["id"].(string)), true + + case "Mutation.deleteSubcontrol": + if e.complexity.Mutation.DeleteSubcontrol == nil { + break + } + + args, err := ec.field_Mutation_deleteSubcontrol_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteSubcontrol(childComplexity, args["id"].(string)), true + case "Mutation.deleteSubscriber": if e.complexity.Mutation.DeleteSubscriber == nil { break @@ -9868,6 +12938,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.UpdateAPIToken(childComplexity, args["id"].(string), args["input"].(generated.UpdateAPITokenInput)), true + case "Mutation.updateActionPlan": + if e.complexity.Mutation.UpdateActionPlan == nil { + break + } + + args, err := ec.field_Mutation_updateActionPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateActionPlan(childComplexity, args["id"].(string), args["input"].(generated.UpdateActionPlanInput)), true + case "Mutation.updateContact": if e.complexity.Mutation.UpdateContact == nil { break @@ -9880,6 +12962,30 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.UpdateContact(childComplexity, args["id"].(string), args["input"].(generated.UpdateContactInput)), true + case "Mutation.updateControl": + if e.complexity.Mutation.UpdateControl == nil { + break + } + + args, err := ec.field_Mutation_updateControl_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateControl(childComplexity, args["id"].(string), args["input"].(generated.UpdateControlInput)), true + + case "Mutation.updateControlObjective": + if e.complexity.Mutation.UpdateControlObjective == nil { + break + } + + args, err := ec.field_Mutation_updateControlObjective_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateControlObjective(childComplexity, args["id"].(string), args["input"].(generated.UpdateControlObjectiveInput)), true + case "Mutation.updateDocumentData": if e.complexity.Mutation.UpdateDocumentData == nil { break @@ -10036,6 +13142,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.UpdateIntegration(childComplexity, args["id"].(string), args["input"].(generated.UpdateIntegrationInput)), true + case "Mutation.updateInternalPolicy": + if e.complexity.Mutation.UpdateInternalPolicy == nil { + break + } + + args, err := ec.field_Mutation_updateInternalPolicy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateInternalPolicy(childComplexity, args["id"].(string), args["input"].(generated.UpdateInternalPolicyInput)), true + case "Mutation.updateInvite": if e.complexity.Mutation.UpdateInvite == nil { break @@ -10048,6 +13166,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.UpdateInvite(childComplexity, args["id"].(string), args["input"].(generated.UpdateInviteInput)), true + case "Mutation.updateNarrative": + if e.complexity.Mutation.UpdateNarrative == nil { + break + } + + args, err := ec.field_Mutation_updateNarrative_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateNarrative(childComplexity, args["id"].(string), args["input"].(generated.UpdateNarrativeInput)), true + case "Mutation.updateOauthProvider": if e.complexity.Mutation.UpdateOauthProvider == nil { break @@ -10120,6 +13250,54 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.UpdatePersonalAccessToken(childComplexity, args["id"].(string), args["input"].(generated.UpdatePersonalAccessTokenInput)), true + case "Mutation.updateProcedure": + if e.complexity.Mutation.UpdateProcedure == nil { + break + } + + args, err := ec.field_Mutation_updateProcedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateProcedure(childComplexity, args["id"].(string), args["input"].(generated.UpdateProcedureInput)), true + + case "Mutation.updateRisk": + if e.complexity.Mutation.UpdateRisk == nil { + break + } + + args, err := ec.field_Mutation_updateRisk_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateRisk(childComplexity, args["id"].(string), args["input"].(generated.UpdateRiskInput)), true + + case "Mutation.updateStandard": + if e.complexity.Mutation.UpdateStandard == nil { + break + } + + args, err := ec.field_Mutation_updateStandard_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateStandard(childComplexity, args["id"].(string), args["input"].(generated.UpdateStandardInput)), true + + case "Mutation.updateSubcontrol": + if e.complexity.Mutation.UpdateSubcontrol == nil { + break + } + + args, err := ec.field_Mutation_updateSubcontrol_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateSubcontrol(childComplexity, args["id"].(string), args["input"].(generated.UpdateSubcontrolInput)), true + case "Mutation.updateSubscriber": if e.complexity.Mutation.UpdateSubscriber == nil { break @@ -10192,6 +13370,328 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Mutation.UpdateWebhook(childComplexity, args["id"].(string), args["input"].(generated.UpdateWebhookInput)), true + case "Narrative.control": + if e.complexity.Narrative.Control == nil { + break + } + + return e.complexity.Narrative.Control(childComplexity), true + + case "Narrative.controlobjective": + if e.complexity.Narrative.Controlobjective == nil { + break + } + + return e.complexity.Narrative.Controlobjective(childComplexity), true + + case "Narrative.createdAt": + if e.complexity.Narrative.CreatedAt == nil { + break + } + + return e.complexity.Narrative.CreatedAt(childComplexity), true + + case "Narrative.createdBy": + if e.complexity.Narrative.CreatedBy == nil { + break + } + + return e.complexity.Narrative.CreatedBy(childComplexity), true + + case "Narrative.deletedAt": + if e.complexity.Narrative.DeletedAt == nil { + break + } + + return e.complexity.Narrative.DeletedAt(childComplexity), true + + case "Narrative.deletedBy": + if e.complexity.Narrative.DeletedBy == nil { + break + } + + return e.complexity.Narrative.DeletedBy(childComplexity), true + + case "Narrative.description": + if e.complexity.Narrative.Description == nil { + break + } + + return e.complexity.Narrative.Description(childComplexity), true + + case "Narrative.details": + if e.complexity.Narrative.Details == nil { + break + } + + return e.complexity.Narrative.Details(childComplexity), true + + case "Narrative.id": + if e.complexity.Narrative.ID == nil { + break + } + + return e.complexity.Narrative.ID(childComplexity), true + + case "Narrative.name": + if e.complexity.Narrative.Name == nil { + break + } + + return e.complexity.Narrative.Name(childComplexity), true + + case "Narrative.policy": + if e.complexity.Narrative.Policy == nil { + break + } + + return e.complexity.Narrative.Policy(childComplexity), true + + case "Narrative.procedure": + if e.complexity.Narrative.Procedure == nil { + break + } + + return e.complexity.Narrative.Procedure(childComplexity), true + + case "Narrative.satisfies": + if e.complexity.Narrative.Satisfies == nil { + break + } + + return e.complexity.Narrative.Satisfies(childComplexity), true + + case "Narrative.tags": + if e.complexity.Narrative.Tags == nil { + break + } + + return e.complexity.Narrative.Tags(childComplexity), true + + case "Narrative.updatedAt": + if e.complexity.Narrative.UpdatedAt == nil { + break + } + + return e.complexity.Narrative.UpdatedAt(childComplexity), true + + case "Narrative.updatedBy": + if e.complexity.Narrative.UpdatedBy == nil { + break + } + + return e.complexity.Narrative.UpdatedBy(childComplexity), true + + case "NarrativeBulkCreatePayload.narratives": + if e.complexity.NarrativeBulkCreatePayload.Narratives == nil { + break + } + + return e.complexity.NarrativeBulkCreatePayload.Narratives(childComplexity), true + + case "NarrativeConnection.edges": + if e.complexity.NarrativeConnection.Edges == nil { + break + } + + return e.complexity.NarrativeConnection.Edges(childComplexity), true + + case "NarrativeConnection.pageInfo": + if e.complexity.NarrativeConnection.PageInfo == nil { + break + } + + return e.complexity.NarrativeConnection.PageInfo(childComplexity), true + + case "NarrativeConnection.totalCount": + if e.complexity.NarrativeConnection.TotalCount == nil { + break + } + + return e.complexity.NarrativeConnection.TotalCount(childComplexity), true + + case "NarrativeCreatePayload.narrative": + if e.complexity.NarrativeCreatePayload.Narrative == nil { + break + } + + return e.complexity.NarrativeCreatePayload.Narrative(childComplexity), true + + case "NarrativeDeletePayload.deletedID": + if e.complexity.NarrativeDeletePayload.DeletedID == nil { + break + } + + return e.complexity.NarrativeDeletePayload.DeletedID(childComplexity), true + + case "NarrativeEdge.cursor": + if e.complexity.NarrativeEdge.Cursor == nil { + break + } + + return e.complexity.NarrativeEdge.Cursor(childComplexity), true + + case "NarrativeEdge.node": + if e.complexity.NarrativeEdge.Node == nil { + break + } + + return e.complexity.NarrativeEdge.Node(childComplexity), true + + case "NarrativeHistory.createdAt": + if e.complexity.NarrativeHistory.CreatedAt == nil { + break + } + + return e.complexity.NarrativeHistory.CreatedAt(childComplexity), true + + case "NarrativeHistory.createdBy": + if e.complexity.NarrativeHistory.CreatedBy == nil { + break + } + + return e.complexity.NarrativeHistory.CreatedBy(childComplexity), true + + case "NarrativeHistory.deletedAt": + if e.complexity.NarrativeHistory.DeletedAt == nil { + break + } + + return e.complexity.NarrativeHistory.DeletedAt(childComplexity), true + + case "NarrativeHistory.deletedBy": + if e.complexity.NarrativeHistory.DeletedBy == nil { + break + } + + return e.complexity.NarrativeHistory.DeletedBy(childComplexity), true + + case "NarrativeHistory.description": + if e.complexity.NarrativeHistory.Description == nil { + break + } + + return e.complexity.NarrativeHistory.Description(childComplexity), true + + case "NarrativeHistory.details": + if e.complexity.NarrativeHistory.Details == nil { + break + } + + return e.complexity.NarrativeHistory.Details(childComplexity), true + + case "NarrativeHistory.historyTime": + if e.complexity.NarrativeHistory.HistoryTime == nil { + break + } + + return e.complexity.NarrativeHistory.HistoryTime(childComplexity), true + + case "NarrativeHistory.id": + if e.complexity.NarrativeHistory.ID == nil { + break + } + + return e.complexity.NarrativeHistory.ID(childComplexity), true + + case "NarrativeHistory.name": + if e.complexity.NarrativeHistory.Name == nil { + break + } + + return e.complexity.NarrativeHistory.Name(childComplexity), true + + case "NarrativeHistory.operation": + if e.complexity.NarrativeHistory.Operation == nil { + break + } + + return e.complexity.NarrativeHistory.Operation(childComplexity), true + + case "NarrativeHistory.ref": + if e.complexity.NarrativeHistory.Ref == nil { + break + } + + return e.complexity.NarrativeHistory.Ref(childComplexity), true + + case "NarrativeHistory.satisfies": + if e.complexity.NarrativeHistory.Satisfies == nil { + break + } + + return e.complexity.NarrativeHistory.Satisfies(childComplexity), true + + case "NarrativeHistory.tags": + if e.complexity.NarrativeHistory.Tags == nil { + break + } + + return e.complexity.NarrativeHistory.Tags(childComplexity), true + + case "NarrativeHistory.updatedAt": + if e.complexity.NarrativeHistory.UpdatedAt == nil { + break + } + + return e.complexity.NarrativeHistory.UpdatedAt(childComplexity), true + + case "NarrativeHistory.updatedBy": + if e.complexity.NarrativeHistory.UpdatedBy == nil { + break + } + + return e.complexity.NarrativeHistory.UpdatedBy(childComplexity), true + + case "NarrativeHistoryConnection.edges": + if e.complexity.NarrativeHistoryConnection.Edges == nil { + break + } + + return e.complexity.NarrativeHistoryConnection.Edges(childComplexity), true + + case "NarrativeHistoryConnection.pageInfo": + if e.complexity.NarrativeHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.NarrativeHistoryConnection.PageInfo(childComplexity), true + + case "NarrativeHistoryConnection.totalCount": + if e.complexity.NarrativeHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.NarrativeHistoryConnection.TotalCount(childComplexity), true + + case "NarrativeHistoryEdge.cursor": + if e.complexity.NarrativeHistoryEdge.Cursor == nil { + break + } + + return e.complexity.NarrativeHistoryEdge.Cursor(childComplexity), true + + case "NarrativeHistoryEdge.node": + if e.complexity.NarrativeHistoryEdge.Node == nil { + break + } + + return e.complexity.NarrativeHistoryEdge.Node(childComplexity), true + + case "NarrativeSearchResult.narratives": + if e.complexity.NarrativeSearchResult.Narratives == nil { + break + } + + return e.complexity.NarrativeSearchResult.Narratives(childComplexity), true + + case "NarrativeUpdatePayload.narrative": + if e.complexity.NarrativeUpdatePayload.Narrative == nil { + break + } + + return e.complexity.NarrativeUpdatePayload.Narrative(childComplexity), true + case "Note.createdAt": if e.complexity.Note.CreatedAt == nil { break @@ -10248,6 +13748,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Note.OwnerID(childComplexity), true + case "Note.subcontrols": + if e.complexity.Note.Subcontrols == nil { + break + } + + return e.complexity.Note.Subcontrols(childComplexity), true + case "Note.tags": if e.complexity.Note.Tags == nil { break @@ -12381,6 +15888,398 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.PersonalAccessTokenUpdatePayload.PersonalAccessToken(childComplexity), true + case "Procedure.background": + if e.complexity.Procedure.Background == nil { + break + } + + return e.complexity.Procedure.Background(childComplexity), true + + case "Procedure.control": + if e.complexity.Procedure.Control == nil { + break + } + + return e.complexity.Procedure.Control(childComplexity), true + + case "Procedure.createdAt": + if e.complexity.Procedure.CreatedAt == nil { + break + } + + return e.complexity.Procedure.CreatedAt(childComplexity), true + + case "Procedure.createdBy": + if e.complexity.Procedure.CreatedBy == nil { + break + } + + return e.complexity.Procedure.CreatedBy(childComplexity), true + + case "Procedure.deletedAt": + if e.complexity.Procedure.DeletedAt == nil { + break + } + + return e.complexity.Procedure.DeletedAt(childComplexity), true + + case "Procedure.deletedBy": + if e.complexity.Procedure.DeletedBy == nil { + break + } + + return e.complexity.Procedure.DeletedBy(childComplexity), true + + case "Procedure.description": + if e.complexity.Procedure.Description == nil { + break + } + + return e.complexity.Procedure.Description(childComplexity), true + + case "Procedure.details": + if e.complexity.Procedure.Details == nil { + break + } + + return e.complexity.Procedure.Details(childComplexity), true + + case "Procedure.id": + if e.complexity.Procedure.ID == nil { + break + } + + return e.complexity.Procedure.ID(childComplexity), true + + case "Procedure.internalpolicy": + if e.complexity.Procedure.Internalpolicy == nil { + break + } + + return e.complexity.Procedure.Internalpolicy(childComplexity), true + + case "Procedure.name": + if e.complexity.Procedure.Name == nil { + break + } + + return e.complexity.Procedure.Name(childComplexity), true + + case "Procedure.narratives": + if e.complexity.Procedure.Narratives == nil { + break + } + + return e.complexity.Procedure.Narratives(childComplexity), true + + case "Procedure.procedureType": + if e.complexity.Procedure.ProcedureType == nil { + break + } + + return e.complexity.Procedure.ProcedureType(childComplexity), true + + case "Procedure.purposeAndScope": + if e.complexity.Procedure.PurposeAndScope == nil { + break + } + + return e.complexity.Procedure.PurposeAndScope(childComplexity), true + + case "Procedure.risks": + if e.complexity.Procedure.Risks == nil { + break + } + + return e.complexity.Procedure.Risks(childComplexity), true + + case "Procedure.satisfies": + if e.complexity.Procedure.Satisfies == nil { + break + } + + return e.complexity.Procedure.Satisfies(childComplexity), true + + case "Procedure.status": + if e.complexity.Procedure.Status == nil { + break + } + + return e.complexity.Procedure.Status(childComplexity), true + + case "Procedure.tags": + if e.complexity.Procedure.Tags == nil { + break + } + + return e.complexity.Procedure.Tags(childComplexity), true + + case "Procedure.updatedAt": + if e.complexity.Procedure.UpdatedAt == nil { + break + } + + return e.complexity.Procedure.UpdatedAt(childComplexity), true + + case "Procedure.updatedBy": + if e.complexity.Procedure.UpdatedBy == nil { + break + } + + return e.complexity.Procedure.UpdatedBy(childComplexity), true + + case "Procedure.version": + if e.complexity.Procedure.Version == nil { + break + } + + return e.complexity.Procedure.Version(childComplexity), true + + case "ProcedureBulkCreatePayload.procedures": + if e.complexity.ProcedureBulkCreatePayload.Procedures == nil { + break + } + + return e.complexity.ProcedureBulkCreatePayload.Procedures(childComplexity), true + + case "ProcedureConnection.edges": + if e.complexity.ProcedureConnection.Edges == nil { + break + } + + return e.complexity.ProcedureConnection.Edges(childComplexity), true + + case "ProcedureConnection.pageInfo": + if e.complexity.ProcedureConnection.PageInfo == nil { + break + } + + return e.complexity.ProcedureConnection.PageInfo(childComplexity), true + + case "ProcedureConnection.totalCount": + if e.complexity.ProcedureConnection.TotalCount == nil { + break + } + + return e.complexity.ProcedureConnection.TotalCount(childComplexity), true + + case "ProcedureCreatePayload.procedure": + if e.complexity.ProcedureCreatePayload.Procedure == nil { + break + } + + return e.complexity.ProcedureCreatePayload.Procedure(childComplexity), true + + case "ProcedureDeletePayload.deletedID": + if e.complexity.ProcedureDeletePayload.DeletedID == nil { + break + } + + return e.complexity.ProcedureDeletePayload.DeletedID(childComplexity), true + + case "ProcedureEdge.cursor": + if e.complexity.ProcedureEdge.Cursor == nil { + break + } + + return e.complexity.ProcedureEdge.Cursor(childComplexity), true + + case "ProcedureEdge.node": + if e.complexity.ProcedureEdge.Node == nil { + break + } + + return e.complexity.ProcedureEdge.Node(childComplexity), true + + case "ProcedureHistory.background": + if e.complexity.ProcedureHistory.Background == nil { + break + } + + return e.complexity.ProcedureHistory.Background(childComplexity), true + + case "ProcedureHistory.createdAt": + if e.complexity.ProcedureHistory.CreatedAt == nil { + break + } + + return e.complexity.ProcedureHistory.CreatedAt(childComplexity), true + + case "ProcedureHistory.createdBy": + if e.complexity.ProcedureHistory.CreatedBy == nil { + break + } + + return e.complexity.ProcedureHistory.CreatedBy(childComplexity), true + + case "ProcedureHistory.deletedAt": + if e.complexity.ProcedureHistory.DeletedAt == nil { + break + } + + return e.complexity.ProcedureHistory.DeletedAt(childComplexity), true + + case "ProcedureHistory.deletedBy": + if e.complexity.ProcedureHistory.DeletedBy == nil { + break + } + + return e.complexity.ProcedureHistory.DeletedBy(childComplexity), true + + case "ProcedureHistory.description": + if e.complexity.ProcedureHistory.Description == nil { + break + } + + return e.complexity.ProcedureHistory.Description(childComplexity), true + + case "ProcedureHistory.details": + if e.complexity.ProcedureHistory.Details == nil { + break + } + + return e.complexity.ProcedureHistory.Details(childComplexity), true + + case "ProcedureHistory.historyTime": + if e.complexity.ProcedureHistory.HistoryTime == nil { + break + } + + return e.complexity.ProcedureHistory.HistoryTime(childComplexity), true + + case "ProcedureHistory.id": + if e.complexity.ProcedureHistory.ID == nil { + break + } + + return e.complexity.ProcedureHistory.ID(childComplexity), true + + case "ProcedureHistory.name": + if e.complexity.ProcedureHistory.Name == nil { + break + } + + return e.complexity.ProcedureHistory.Name(childComplexity), true + + case "ProcedureHistory.operation": + if e.complexity.ProcedureHistory.Operation == nil { + break + } + + return e.complexity.ProcedureHistory.Operation(childComplexity), true + + case "ProcedureHistory.procedureType": + if e.complexity.ProcedureHistory.ProcedureType == nil { + break + } + + return e.complexity.ProcedureHistory.ProcedureType(childComplexity), true + + case "ProcedureHistory.purposeAndScope": + if e.complexity.ProcedureHistory.PurposeAndScope == nil { + break + } + + return e.complexity.ProcedureHistory.PurposeAndScope(childComplexity), true + + case "ProcedureHistory.ref": + if e.complexity.ProcedureHistory.Ref == nil { + break + } + + return e.complexity.ProcedureHistory.Ref(childComplexity), true + + case "ProcedureHistory.satisfies": + if e.complexity.ProcedureHistory.Satisfies == nil { + break + } + + return e.complexity.ProcedureHistory.Satisfies(childComplexity), true + + case "ProcedureHistory.status": + if e.complexity.ProcedureHistory.Status == nil { + break + } + + return e.complexity.ProcedureHistory.Status(childComplexity), true + + case "ProcedureHistory.tags": + if e.complexity.ProcedureHistory.Tags == nil { + break + } + + return e.complexity.ProcedureHistory.Tags(childComplexity), true + + case "ProcedureHistory.updatedAt": + if e.complexity.ProcedureHistory.UpdatedAt == nil { + break + } + + return e.complexity.ProcedureHistory.UpdatedAt(childComplexity), true + + case "ProcedureHistory.updatedBy": + if e.complexity.ProcedureHistory.UpdatedBy == nil { + break + } + + return e.complexity.ProcedureHistory.UpdatedBy(childComplexity), true + + case "ProcedureHistory.version": + if e.complexity.ProcedureHistory.Version == nil { + break + } + + return e.complexity.ProcedureHistory.Version(childComplexity), true + + case "ProcedureHistoryConnection.edges": + if e.complexity.ProcedureHistoryConnection.Edges == nil { + break + } + + return e.complexity.ProcedureHistoryConnection.Edges(childComplexity), true + + case "ProcedureHistoryConnection.pageInfo": + if e.complexity.ProcedureHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.ProcedureHistoryConnection.PageInfo(childComplexity), true + + case "ProcedureHistoryConnection.totalCount": + if e.complexity.ProcedureHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.ProcedureHistoryConnection.TotalCount(childComplexity), true + + case "ProcedureHistoryEdge.cursor": + if e.complexity.ProcedureHistoryEdge.Cursor == nil { + break + } + + return e.complexity.ProcedureHistoryEdge.Cursor(childComplexity), true + + case "ProcedureHistoryEdge.node": + if e.complexity.ProcedureHistoryEdge.Node == nil { + break + } + + return e.complexity.ProcedureHistoryEdge.Node(childComplexity), true + + case "ProcedureSearchResult.procedures": + if e.complexity.ProcedureSearchResult.Procedures == nil { + break + } + + return e.complexity.ProcedureSearchResult.Procedures(childComplexity), true + + case "ProcedureUpdatePayload.procedure": + if e.complexity.ProcedureUpdatePayload.Procedure == nil { + break + } + + return e.complexity.ProcedureUpdatePayload.Procedure(childComplexity), true + case "Query.apiToken": if e.complexity.Query.APIToken == nil { break @@ -12417,6 +16316,54 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.APITokens(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.APITokenWhereInput)), true + case "Query.actionPlan": + if e.complexity.Query.ActionPlan == nil { + break + } + + args, err := ec.field_Query_actionPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ActionPlan(childComplexity, args["id"].(string)), true + + case "Query.actionPlanHistories": + if e.complexity.Query.ActionPlanHistories == nil { + break + } + + args, err := ec.field_Query_actionPlanHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ActionPlanHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ActionPlanHistoryWhereInput)), true + + case "Query.actionPlanSearch": + if e.complexity.Query.ActionPlanSearch == nil { + break + } + + args, err := ec.field_Query_actionPlanSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ActionPlanSearch(childComplexity, args["query"].(string)), true + + case "Query.actionPlans": + if e.complexity.Query.ActionPlans == nil { + break + } + + args, err := ec.field_Query_actionPlans_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ActionPlans(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ActionPlanWhereInput)), true + case "Query.adminAPITokenSearch": if e.complexity.Query.AdminAPITokenSearch == nil { break @@ -12429,6 +16376,18 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.AdminAPITokenSearch(childComplexity, args["query"].(string)), true + case "Query.adminActionPlanSearch": + if e.complexity.Query.AdminActionPlanSearch == nil { + break + } + + args, err := ec.field_Query_adminActionPlanSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminActionPlanSearch(childComplexity, args["query"].(string)), true + case "Query.adminContactSearch": if e.complexity.Query.AdminContactSearch == nil { break @@ -12441,6 +16400,30 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.AdminContactSearch(childComplexity, args["query"].(string)), true + case "Query.adminControlObjectiveSearch": + if e.complexity.Query.AdminControlObjectiveSearch == nil { + break + } + + args, err := ec.field_Query_adminControlObjectiveSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminControlObjectiveSearch(childComplexity, args["query"].(string)), true + + case "Query.adminControlSearch": + if e.complexity.Query.AdminControlSearch == nil { + break + } + + args, err := ec.field_Query_adminControlSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminControlSearch(childComplexity, args["query"].(string)), true + case "Query.adminDocumentDataSearch": if e.complexity.Query.AdminDocumentDataSearch == nil { break @@ -12585,6 +16568,30 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.AdminIntegrationSearch(childComplexity, args["query"].(string)), true + case "Query.adminInternalPolicySearch": + if e.complexity.Query.AdminInternalPolicySearch == nil { + break + } + + args, err := ec.field_Query_adminInternalPolicySearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminInternalPolicySearch(childComplexity, args["query"].(string)), true + + case "Query.adminNarrativeSearch": + if e.complexity.Query.AdminNarrativeSearch == nil { + break + } + + args, err := ec.field_Query_adminNarrativeSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminNarrativeSearch(childComplexity, args["query"].(string)), true + case "Query.adminOauthProviderSearch": if e.complexity.Query.AdminOauthProviderSearch == nil { break @@ -12645,6 +16652,30 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.AdminPersonalAccessTokenSearch(childComplexity, args["query"].(string)), true + case "Query.adminProcedureSearch": + if e.complexity.Query.AdminProcedureSearch == nil { + break + } + + args, err := ec.field_Query_adminProcedureSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminProcedureSearch(childComplexity, args["query"].(string)), true + + case "Query.adminRiskSearch": + if e.complexity.Query.AdminRiskSearch == nil { + break + } + + args, err := ec.field_Query_adminRiskSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminRiskSearch(childComplexity, args["query"].(string)), true + case "Query.adminSearch": if e.complexity.Query.AdminSearch == nil { break @@ -12657,6 +16688,30 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.AdminSearch(childComplexity, args["query"].(string)), true + case "Query.adminStandardSearch": + if e.complexity.Query.AdminStandardSearch == nil { + break + } + + args, err := ec.field_Query_adminStandardSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminStandardSearch(childComplexity, args["query"].(string)), true + + case "Query.adminSubcontrolSearch": + if e.complexity.Query.AdminSubcontrolSearch == nil { + break + } + + args, err := ec.field_Query_adminSubcontrolSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminSubcontrolSearch(childComplexity, args["query"].(string)), true + case "Query.adminSubscriberSearch": if e.complexity.Query.AdminSubscriberSearch == nil { break @@ -12789,6 +16844,102 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.Contacts(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ContactWhereInput)), true + case "Query.control": + if e.complexity.Query.Control == nil { + break + } + + args, err := ec.field_Query_control_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Control(childComplexity, args["id"].(string)), true + + case "Query.controlHistories": + if e.complexity.Query.ControlHistories == nil { + break + } + + args, err := ec.field_Query_controlHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ControlHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ControlHistoryWhereInput)), true + + case "Query.controlObjective": + if e.complexity.Query.ControlObjective == nil { + break + } + + args, err := ec.field_Query_controlObjective_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ControlObjective(childComplexity, args["id"].(string)), true + + case "Query.controlObjectiveHistories": + if e.complexity.Query.ControlObjectiveHistories == nil { + break + } + + args, err := ec.field_Query_controlObjectiveHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ControlObjectiveHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ControlObjectiveHistoryWhereInput)), true + + case "Query.controlObjectiveSearch": + if e.complexity.Query.ControlObjectiveSearch == nil { + break + } + + args, err := ec.field_Query_controlObjectiveSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ControlObjectiveSearch(childComplexity, args["query"].(string)), true + + case "Query.controlObjectives": + if e.complexity.Query.ControlObjectives == nil { + break + } + + args, err := ec.field_Query_controlObjectives_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ControlObjectives(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ControlObjectiveWhereInput)), true + + case "Query.controlSearch": + if e.complexity.Query.ControlSearch == nil { + break + } + + args, err := ec.field_Query_controlSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ControlSearch(childComplexity, args["query"].(string)), true + + case "Query.controls": + if e.complexity.Query.Controls == nil { + break + } + + args, err := ec.field_Query_controls_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Controls(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ControlWhereInput)), true + case "Query.documentData": if e.complexity.Query.DocumentData == nil { break @@ -13437,6 +17588,54 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.Integrations(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.IntegrationOrder), args["where"].(*generated.IntegrationWhereInput)), true + case "Query.internalPolicies": + if e.complexity.Query.InternalPolicies == nil { + break + } + + args, err := ec.field_Query_internalPolicies_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.InternalPolicies(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.InternalPolicyWhereInput)), true + + case "Query.internalPolicy": + if e.complexity.Query.InternalPolicy == nil { + break + } + + args, err := ec.field_Query_internalPolicy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.InternalPolicy(childComplexity, args["id"].(string)), true + + case "Query.internalPolicyHistories": + if e.complexity.Query.InternalPolicyHistories == nil { + break + } + + args, err := ec.field_Query_internalPolicyHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.InternalPolicyHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.InternalPolicyHistoryWhereInput)), true + + case "Query.internalPolicySearch": + if e.complexity.Query.InternalPolicySearch == nil { + break + } + + args, err := ec.field_Query_internalPolicySearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.InternalPolicySearch(childComplexity, args["query"].(string)), true + case "Query.invite": if e.complexity.Query.Invite == nil { break @@ -13461,6 +17660,54 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.Invites(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.InviteWhereInput)), true + case "Query.narrative": + if e.complexity.Query.Narrative == nil { + break + } + + args, err := ec.field_Query_narrative_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Narrative(childComplexity, args["id"].(string)), true + + case "Query.narrativeHistories": + if e.complexity.Query.NarrativeHistories == nil { + break + } + + args, err := ec.field_Query_narrativeHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.NarrativeHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.NarrativeHistoryWhereInput)), true + + case "Query.narrativeSearch": + if e.complexity.Query.NarrativeSearch == nil { + break + } + + args, err := ec.field_Query_narrativeSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.NarrativeSearch(childComplexity, args["query"].(string)), true + + case "Query.narratives": + if e.complexity.Query.Narratives == nil { + break + } + + args, err := ec.field_Query_narratives_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Narratives(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.NarrativeWhereInput)), true + case "Query.node": if e.complexity.Query.Node == nil { break @@ -13761,6 +18008,102 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.PersonalAccessTokens(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.PersonalAccessTokenWhereInput)), true + case "Query.procedure": + if e.complexity.Query.Procedure == nil { + break + } + + args, err := ec.field_Query_procedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Procedure(childComplexity, args["id"].(string)), true + + case "Query.procedureHistories": + if e.complexity.Query.ProcedureHistories == nil { + break + } + + args, err := ec.field_Query_procedureHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ProcedureHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProcedureHistoryWhereInput)), true + + case "Query.procedureSearch": + if e.complexity.Query.ProcedureSearch == nil { + break + } + + args, err := ec.field_Query_procedureSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ProcedureSearch(childComplexity, args["query"].(string)), true + + case "Query.procedures": + if e.complexity.Query.Procedures == nil { + break + } + + args, err := ec.field_Query_procedures_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Procedures(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProcedureWhereInput)), true + + case "Query.risk": + if e.complexity.Query.Risk == nil { + break + } + + args, err := ec.field_Query_risk_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Risk(childComplexity, args["id"].(string)), true + + case "Query.riskHistories": + if e.complexity.Query.RiskHistories == nil { + break + } + + args, err := ec.field_Query_riskHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.RiskHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.RiskHistoryWhereInput)), true + + case "Query.riskSearch": + if e.complexity.Query.RiskSearch == nil { + break + } + + args, err := ec.field_Query_riskSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.RiskSearch(childComplexity, args["query"].(string)), true + + case "Query.risks": + if e.complexity.Query.Risks == nil { + break + } + + args, err := ec.field_Query_risks_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Risks(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.RiskWhereInput)), true + case "Query.search": if e.complexity.Query.Search == nil { break @@ -13773,6 +18116,102 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.Search(childComplexity, args["query"].(string)), true + case "Query.standard": + if e.complexity.Query.Standard == nil { + break + } + + args, err := ec.field_Query_standard_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Standard(childComplexity, args["id"].(string)), true + + case "Query.standardHistories": + if e.complexity.Query.StandardHistories == nil { + break + } + + args, err := ec.field_Query_standardHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.StandardHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.StandardHistoryWhereInput)), true + + case "Query.standardSearch": + if e.complexity.Query.StandardSearch == nil { + break + } + + args, err := ec.field_Query_standardSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.StandardSearch(childComplexity, args["query"].(string)), true + + case "Query.standards": + if e.complexity.Query.Standards == nil { + break + } + + args, err := ec.field_Query_standards_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Standards(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.StandardWhereInput)), true + + case "Query.subcontrol": + if e.complexity.Query.Subcontrol == nil { + break + } + + args, err := ec.field_Query_subcontrol_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Subcontrol(childComplexity, args["id"].(string)), true + + case "Query.subcontrolHistories": + if e.complexity.Query.SubcontrolHistories == nil { + break + } + + args, err := ec.field_Query_subcontrolHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.SubcontrolHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.SubcontrolHistoryWhereInput)), true + + case "Query.subcontrolSearch": + if e.complexity.Query.SubcontrolSearch == nil { + break + } + + args, err := ec.field_Query_subcontrolSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.SubcontrolSearch(childComplexity, args["query"].(string)), true + + case "Query.subcontrols": + if e.complexity.Query.Subcontrols == nil { + break + } + + args, err := ec.field_Query_subcontrols_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Subcontrols(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.SubcontrolWhereInput)), true + case "Query.subscriber": if e.complexity.Query.Subscriber == nil { break @@ -14037,6 +18476,405 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.Query.Webhooks(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.WebhookOrder), args["where"].(*generated.WebhookWhereInput)), true + case "Risk.actionplans": + if e.complexity.Risk.Actionplans == nil { + break + } + + return e.complexity.Risk.Actionplans(childComplexity), true + + case "Risk.businessCosts": + if e.complexity.Risk.BusinessCosts == nil { + break + } + + return e.complexity.Risk.BusinessCosts(childComplexity), true + + case "Risk.control": + if e.complexity.Risk.Control == nil { + break + } + + return e.complexity.Risk.Control(childComplexity), true + + case "Risk.createdAt": + if e.complexity.Risk.CreatedAt == nil { + break + } + + return e.complexity.Risk.CreatedAt(childComplexity), true + + case "Risk.createdBy": + if e.complexity.Risk.CreatedBy == nil { + break + } + + return e.complexity.Risk.CreatedBy(childComplexity), true + + case "Risk.deletedAt": + if e.complexity.Risk.DeletedAt == nil { + break + } + + return e.complexity.Risk.DeletedAt(childComplexity), true + + case "Risk.deletedBy": + if e.complexity.Risk.DeletedBy == nil { + break + } + + return e.complexity.Risk.DeletedBy(childComplexity), true + + case "Risk.description": + if e.complexity.Risk.Description == nil { + break + } + + return e.complexity.Risk.Description(childComplexity), true + + case "Risk.details": + if e.complexity.Risk.Details == nil { + break + } + + return e.complexity.Risk.Details(childComplexity), true + + case "Risk.id": + if e.complexity.Risk.ID == nil { + break + } + + return e.complexity.Risk.ID(childComplexity), true + + case "Risk.impact": + if e.complexity.Risk.Impact == nil { + break + } + + return e.complexity.Risk.Impact(childComplexity), true + + case "Risk.likelihood": + if e.complexity.Risk.Likelihood == nil { + break + } + + return e.complexity.Risk.Likelihood(childComplexity), true + + case "Risk.mitigation": + if e.complexity.Risk.Mitigation == nil { + break + } + + return e.complexity.Risk.Mitigation(childComplexity), true + + case "Risk.name": + if e.complexity.Risk.Name == nil { + break + } + + return e.complexity.Risk.Name(childComplexity), true + + case "Risk.procedure": + if e.complexity.Risk.Procedure == nil { + break + } + + return e.complexity.Risk.Procedure(childComplexity), true + + case "Risk.riskType": + if e.complexity.Risk.RiskType == nil { + break + } + + return e.complexity.Risk.RiskType(childComplexity), true + + case "Risk.satisfies": + if e.complexity.Risk.Satisfies == nil { + break + } + + return e.complexity.Risk.Satisfies(childComplexity), true + + case "Risk.status": + if e.complexity.Risk.Status == nil { + break + } + + return e.complexity.Risk.Status(childComplexity), true + + case "Risk.tags": + if e.complexity.Risk.Tags == nil { + break + } + + return e.complexity.Risk.Tags(childComplexity), true + + case "Risk.updatedAt": + if e.complexity.Risk.UpdatedAt == nil { + break + } + + return e.complexity.Risk.UpdatedAt(childComplexity), true + + case "Risk.updatedBy": + if e.complexity.Risk.UpdatedBy == nil { + break + } + + return e.complexity.Risk.UpdatedBy(childComplexity), true + + case "RiskBulkCreatePayload.risks": + if e.complexity.RiskBulkCreatePayload.Risks == nil { + break + } + + return e.complexity.RiskBulkCreatePayload.Risks(childComplexity), true + + case "RiskConnection.edges": + if e.complexity.RiskConnection.Edges == nil { + break + } + + return e.complexity.RiskConnection.Edges(childComplexity), true + + case "RiskConnection.pageInfo": + if e.complexity.RiskConnection.PageInfo == nil { + break + } + + return e.complexity.RiskConnection.PageInfo(childComplexity), true + + case "RiskConnection.totalCount": + if e.complexity.RiskConnection.TotalCount == nil { + break + } + + return e.complexity.RiskConnection.TotalCount(childComplexity), true + + case "RiskCreatePayload.risk": + if e.complexity.RiskCreatePayload.Risk == nil { + break + } + + return e.complexity.RiskCreatePayload.Risk(childComplexity), true + + case "RiskDeletePayload.deletedID": + if e.complexity.RiskDeletePayload.DeletedID == nil { + break + } + + return e.complexity.RiskDeletePayload.DeletedID(childComplexity), true + + case "RiskEdge.cursor": + if e.complexity.RiskEdge.Cursor == nil { + break + } + + return e.complexity.RiskEdge.Cursor(childComplexity), true + + case "RiskEdge.node": + if e.complexity.RiskEdge.Node == nil { + break + } + + return e.complexity.RiskEdge.Node(childComplexity), true + + case "RiskHistory.businessCosts": + if e.complexity.RiskHistory.BusinessCosts == nil { + break + } + + return e.complexity.RiskHistory.BusinessCosts(childComplexity), true + + case "RiskHistory.createdAt": + if e.complexity.RiskHistory.CreatedAt == nil { + break + } + + return e.complexity.RiskHistory.CreatedAt(childComplexity), true + + case "RiskHistory.createdBy": + if e.complexity.RiskHistory.CreatedBy == nil { + break + } + + return e.complexity.RiskHistory.CreatedBy(childComplexity), true + + case "RiskHistory.deletedAt": + if e.complexity.RiskHistory.DeletedAt == nil { + break + } + + return e.complexity.RiskHistory.DeletedAt(childComplexity), true + + case "RiskHistory.deletedBy": + if e.complexity.RiskHistory.DeletedBy == nil { + break + } + + return e.complexity.RiskHistory.DeletedBy(childComplexity), true + + case "RiskHistory.description": + if e.complexity.RiskHistory.Description == nil { + break + } + + return e.complexity.RiskHistory.Description(childComplexity), true + + case "RiskHistory.details": + if e.complexity.RiskHistory.Details == nil { + break + } + + return e.complexity.RiskHistory.Details(childComplexity), true + + case "RiskHistory.historyTime": + if e.complexity.RiskHistory.HistoryTime == nil { + break + } + + return e.complexity.RiskHistory.HistoryTime(childComplexity), true + + case "RiskHistory.id": + if e.complexity.RiskHistory.ID == nil { + break + } + + return e.complexity.RiskHistory.ID(childComplexity), true + + case "RiskHistory.impact": + if e.complexity.RiskHistory.Impact == nil { + break + } + + return e.complexity.RiskHistory.Impact(childComplexity), true + + case "RiskHistory.likelihood": + if e.complexity.RiskHistory.Likelihood == nil { + break + } + + return e.complexity.RiskHistory.Likelihood(childComplexity), true + + case "RiskHistory.mitigation": + if e.complexity.RiskHistory.Mitigation == nil { + break + } + + return e.complexity.RiskHistory.Mitigation(childComplexity), true + + case "RiskHistory.name": + if e.complexity.RiskHistory.Name == nil { + break + } + + return e.complexity.RiskHistory.Name(childComplexity), true + + case "RiskHistory.operation": + if e.complexity.RiskHistory.Operation == nil { + break + } + + return e.complexity.RiskHistory.Operation(childComplexity), true + + case "RiskHistory.ref": + if e.complexity.RiskHistory.Ref == nil { + break + } + + return e.complexity.RiskHistory.Ref(childComplexity), true + + case "RiskHistory.riskType": + if e.complexity.RiskHistory.RiskType == nil { + break + } + + return e.complexity.RiskHistory.RiskType(childComplexity), true + + case "RiskHistory.satisfies": + if e.complexity.RiskHistory.Satisfies == nil { + break + } + + return e.complexity.RiskHistory.Satisfies(childComplexity), true + + case "RiskHistory.status": + if e.complexity.RiskHistory.Status == nil { + break + } + + return e.complexity.RiskHistory.Status(childComplexity), true + + case "RiskHistory.tags": + if e.complexity.RiskHistory.Tags == nil { + break + } + + return e.complexity.RiskHistory.Tags(childComplexity), true + + case "RiskHistory.updatedAt": + if e.complexity.RiskHistory.UpdatedAt == nil { + break + } + + return e.complexity.RiskHistory.UpdatedAt(childComplexity), true + + case "RiskHistory.updatedBy": + if e.complexity.RiskHistory.UpdatedBy == nil { + break + } + + return e.complexity.RiskHistory.UpdatedBy(childComplexity), true + + case "RiskHistoryConnection.edges": + if e.complexity.RiskHistoryConnection.Edges == nil { + break + } + + return e.complexity.RiskHistoryConnection.Edges(childComplexity), true + + case "RiskHistoryConnection.pageInfo": + if e.complexity.RiskHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.RiskHistoryConnection.PageInfo(childComplexity), true + + case "RiskHistoryConnection.totalCount": + if e.complexity.RiskHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.RiskHistoryConnection.TotalCount(childComplexity), true + + case "RiskHistoryEdge.cursor": + if e.complexity.RiskHistoryEdge.Cursor == nil { + break + } + + return e.complexity.RiskHistoryEdge.Cursor(childComplexity), true + + case "RiskHistoryEdge.node": + if e.complexity.RiskHistoryEdge.Node == nil { + break + } + + return e.complexity.RiskHistoryEdge.Node(childComplexity), true + + case "RiskSearchResult.risks": + if e.complexity.RiskSearchResult.Risks == nil { + break + } + + return e.complexity.RiskSearchResult.Risks(childComplexity), true + + case "RiskUpdatePayload.risk": + if e.complexity.RiskUpdatePayload.Risk == nil { + break + } + + return e.complexity.RiskUpdatePayload.Risk(childComplexity), true + case "SearchResultConnection.nodes": if e.complexity.SearchResultConnection.Nodes == nil { break @@ -14051,6 +18889,895 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.SearchResultConnection.Page(childComplexity), true + case "Standard.actionplans": + if e.complexity.Standard.Actionplans == nil { + break + } + + return e.complexity.Standard.Actionplans(childComplexity), true + + case "Standard.background": + if e.complexity.Standard.Background == nil { + break + } + + return e.complexity.Standard.Background(childComplexity), true + + case "Standard.controlobjectives": + if e.complexity.Standard.Controlobjectives == nil { + break + } + + return e.complexity.Standard.Controlobjectives(childComplexity), true + + case "Standard.controls": + if e.complexity.Standard.Controls == nil { + break + } + + return e.complexity.Standard.Controls(childComplexity), true + + case "Standard.createdAt": + if e.complexity.Standard.CreatedAt == nil { + break + } + + return e.complexity.Standard.CreatedAt(childComplexity), true + + case "Standard.createdBy": + if e.complexity.Standard.CreatedBy == nil { + break + } + + return e.complexity.Standard.CreatedBy(childComplexity), true + + case "Standard.deletedAt": + if e.complexity.Standard.DeletedAt == nil { + break + } + + return e.complexity.Standard.DeletedAt(childComplexity), true + + case "Standard.deletedBy": + if e.complexity.Standard.DeletedBy == nil { + break + } + + return e.complexity.Standard.DeletedBy(childComplexity), true + + case "Standard.description": + if e.complexity.Standard.Description == nil { + break + } + + return e.complexity.Standard.Description(childComplexity), true + + case "Standard.details": + if e.complexity.Standard.Details == nil { + break + } + + return e.complexity.Standard.Details(childComplexity), true + + case "Standard.family": + if e.complexity.Standard.Family == nil { + break + } + + return e.complexity.Standard.Family(childComplexity), true + + case "Standard.id": + if e.complexity.Standard.ID == nil { + break + } + + return e.complexity.Standard.ID(childComplexity), true + + case "Standard.name": + if e.complexity.Standard.Name == nil { + break + } + + return e.complexity.Standard.Name(childComplexity), true + + case "Standard.procedures": + if e.complexity.Standard.Procedures == nil { + break + } + + return e.complexity.Standard.Procedures(childComplexity), true + + case "Standard.purposeAndScope": + if e.complexity.Standard.PurposeAndScope == nil { + break + } + + return e.complexity.Standard.PurposeAndScope(childComplexity), true + + case "Standard.satisfies": + if e.complexity.Standard.Satisfies == nil { + break + } + + return e.complexity.Standard.Satisfies(childComplexity), true + + case "Standard.standardType": + if e.complexity.Standard.StandardType == nil { + break + } + + return e.complexity.Standard.StandardType(childComplexity), true + + case "Standard.status": + if e.complexity.Standard.Status == nil { + break + } + + return e.complexity.Standard.Status(childComplexity), true + + case "Standard.tags": + if e.complexity.Standard.Tags == nil { + break + } + + return e.complexity.Standard.Tags(childComplexity), true + + case "Standard.updatedAt": + if e.complexity.Standard.UpdatedAt == nil { + break + } + + return e.complexity.Standard.UpdatedAt(childComplexity), true + + case "Standard.updatedBy": + if e.complexity.Standard.UpdatedBy == nil { + break + } + + return e.complexity.Standard.UpdatedBy(childComplexity), true + + case "Standard.version": + if e.complexity.Standard.Version == nil { + break + } + + return e.complexity.Standard.Version(childComplexity), true + + case "StandardBulkCreatePayload.standards": + if e.complexity.StandardBulkCreatePayload.Standards == nil { + break + } + + return e.complexity.StandardBulkCreatePayload.Standards(childComplexity), true + + case "StandardConnection.edges": + if e.complexity.StandardConnection.Edges == nil { + break + } + + return e.complexity.StandardConnection.Edges(childComplexity), true + + case "StandardConnection.pageInfo": + if e.complexity.StandardConnection.PageInfo == nil { + break + } + + return e.complexity.StandardConnection.PageInfo(childComplexity), true + + case "StandardConnection.totalCount": + if e.complexity.StandardConnection.TotalCount == nil { + break + } + + return e.complexity.StandardConnection.TotalCount(childComplexity), true + + case "StandardCreatePayload.standard": + if e.complexity.StandardCreatePayload.Standard == nil { + break + } + + return e.complexity.StandardCreatePayload.Standard(childComplexity), true + + case "StandardDeletePayload.deletedID": + if e.complexity.StandardDeletePayload.DeletedID == nil { + break + } + + return e.complexity.StandardDeletePayload.DeletedID(childComplexity), true + + case "StandardEdge.cursor": + if e.complexity.StandardEdge.Cursor == nil { + break + } + + return e.complexity.StandardEdge.Cursor(childComplexity), true + + case "StandardEdge.node": + if e.complexity.StandardEdge.Node == nil { + break + } + + return e.complexity.StandardEdge.Node(childComplexity), true + + case "StandardHistory.background": + if e.complexity.StandardHistory.Background == nil { + break + } + + return e.complexity.StandardHistory.Background(childComplexity), true + + case "StandardHistory.createdAt": + if e.complexity.StandardHistory.CreatedAt == nil { + break + } + + return e.complexity.StandardHistory.CreatedAt(childComplexity), true + + case "StandardHistory.createdBy": + if e.complexity.StandardHistory.CreatedBy == nil { + break + } + + return e.complexity.StandardHistory.CreatedBy(childComplexity), true + + case "StandardHistory.deletedAt": + if e.complexity.StandardHistory.DeletedAt == nil { + break + } + + return e.complexity.StandardHistory.DeletedAt(childComplexity), true + + case "StandardHistory.deletedBy": + if e.complexity.StandardHistory.DeletedBy == nil { + break + } + + return e.complexity.StandardHistory.DeletedBy(childComplexity), true + + case "StandardHistory.description": + if e.complexity.StandardHistory.Description == nil { + break + } + + return e.complexity.StandardHistory.Description(childComplexity), true + + case "StandardHistory.details": + if e.complexity.StandardHistory.Details == nil { + break + } + + return e.complexity.StandardHistory.Details(childComplexity), true + + case "StandardHistory.family": + if e.complexity.StandardHistory.Family == nil { + break + } + + return e.complexity.StandardHistory.Family(childComplexity), true + + case "StandardHistory.historyTime": + if e.complexity.StandardHistory.HistoryTime == nil { + break + } + + return e.complexity.StandardHistory.HistoryTime(childComplexity), true + + case "StandardHistory.id": + if e.complexity.StandardHistory.ID == nil { + break + } + + return e.complexity.StandardHistory.ID(childComplexity), true + + case "StandardHistory.name": + if e.complexity.StandardHistory.Name == nil { + break + } + + return e.complexity.StandardHistory.Name(childComplexity), true + + case "StandardHistory.operation": + if e.complexity.StandardHistory.Operation == nil { + break + } + + return e.complexity.StandardHistory.Operation(childComplexity), true + + case "StandardHistory.purposeAndScope": + if e.complexity.StandardHistory.PurposeAndScope == nil { + break + } + + return e.complexity.StandardHistory.PurposeAndScope(childComplexity), true + + case "StandardHistory.ref": + if e.complexity.StandardHistory.Ref == nil { + break + } + + return e.complexity.StandardHistory.Ref(childComplexity), true + + case "StandardHistory.satisfies": + if e.complexity.StandardHistory.Satisfies == nil { + break + } + + return e.complexity.StandardHistory.Satisfies(childComplexity), true + + case "StandardHistory.standardType": + if e.complexity.StandardHistory.StandardType == nil { + break + } + + return e.complexity.StandardHistory.StandardType(childComplexity), true + + case "StandardHistory.status": + if e.complexity.StandardHistory.Status == nil { + break + } + + return e.complexity.StandardHistory.Status(childComplexity), true + + case "StandardHistory.tags": + if e.complexity.StandardHistory.Tags == nil { + break + } + + return e.complexity.StandardHistory.Tags(childComplexity), true + + case "StandardHistory.updatedAt": + if e.complexity.StandardHistory.UpdatedAt == nil { + break + } + + return e.complexity.StandardHistory.UpdatedAt(childComplexity), true + + case "StandardHistory.updatedBy": + if e.complexity.StandardHistory.UpdatedBy == nil { + break + } + + return e.complexity.StandardHistory.UpdatedBy(childComplexity), true + + case "StandardHistory.version": + if e.complexity.StandardHistory.Version == nil { + break + } + + return e.complexity.StandardHistory.Version(childComplexity), true + + case "StandardHistoryConnection.edges": + if e.complexity.StandardHistoryConnection.Edges == nil { + break + } + + return e.complexity.StandardHistoryConnection.Edges(childComplexity), true + + case "StandardHistoryConnection.pageInfo": + if e.complexity.StandardHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.StandardHistoryConnection.PageInfo(childComplexity), true + + case "StandardHistoryConnection.totalCount": + if e.complexity.StandardHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.StandardHistoryConnection.TotalCount(childComplexity), true + + case "StandardHistoryEdge.cursor": + if e.complexity.StandardHistoryEdge.Cursor == nil { + break + } + + return e.complexity.StandardHistoryEdge.Cursor(childComplexity), true + + case "StandardHistoryEdge.node": + if e.complexity.StandardHistoryEdge.Node == nil { + break + } + + return e.complexity.StandardHistoryEdge.Node(childComplexity), true + + case "StandardSearchResult.standards": + if e.complexity.StandardSearchResult.Standards == nil { + break + } + + return e.complexity.StandardSearchResult.Standards(childComplexity), true + + case "StandardUpdatePayload.standard": + if e.complexity.StandardUpdatePayload.Standard == nil { + break + } + + return e.complexity.StandardUpdatePayload.Standard(childComplexity), true + + case "Subcontrol.class": + if e.complexity.Subcontrol.Class == nil { + break + } + + return e.complexity.Subcontrol.Class(childComplexity), true + + case "Subcontrol.control": + if e.complexity.Subcontrol.Control == nil { + break + } + + return e.complexity.Subcontrol.Control(childComplexity), true + + case "Subcontrol.createdAt": + if e.complexity.Subcontrol.CreatedAt == nil { + break + } + + return e.complexity.Subcontrol.CreatedAt(childComplexity), true + + case "Subcontrol.createdBy": + if e.complexity.Subcontrol.CreatedBy == nil { + break + } + + return e.complexity.Subcontrol.CreatedBy(childComplexity), true + + case "Subcontrol.deletedAt": + if e.complexity.Subcontrol.DeletedAt == nil { + break + } + + return e.complexity.Subcontrol.DeletedAt(childComplexity), true + + case "Subcontrol.deletedBy": + if e.complexity.Subcontrol.DeletedBy == nil { + break + } + + return e.complexity.Subcontrol.DeletedBy(childComplexity), true + + case "Subcontrol.description": + if e.complexity.Subcontrol.Description == nil { + break + } + + return e.complexity.Subcontrol.Description(childComplexity), true + + case "Subcontrol.details": + if e.complexity.Subcontrol.Details == nil { + break + } + + return e.complexity.Subcontrol.Details(childComplexity), true + + case "Subcontrol.family": + if e.complexity.Subcontrol.Family == nil { + break + } + + return e.complexity.Subcontrol.Family(childComplexity), true + + case "Subcontrol.id": + if e.complexity.Subcontrol.ID == nil { + break + } + + return e.complexity.Subcontrol.ID(childComplexity), true + + case "Subcontrol.implementationDate": + if e.complexity.Subcontrol.ImplementationDate == nil { + break + } + + return e.complexity.Subcontrol.ImplementationDate(childComplexity), true + + case "Subcontrol.implementationEvidence": + if e.complexity.Subcontrol.ImplementationEvidence == nil { + break + } + + return e.complexity.Subcontrol.ImplementationEvidence(childComplexity), true + + case "Subcontrol.implementationStatus": + if e.complexity.Subcontrol.ImplementationStatus == nil { + break + } + + return e.complexity.Subcontrol.ImplementationStatus(childComplexity), true + + case "Subcontrol.implementationVerification": + if e.complexity.Subcontrol.ImplementationVerification == nil { + break + } + + return e.complexity.Subcontrol.ImplementationVerification(childComplexity), true + + case "Subcontrol.implementationVerificationDate": + if e.complexity.Subcontrol.ImplementationVerificationDate == nil { + break + } + + return e.complexity.Subcontrol.ImplementationVerificationDate(childComplexity), true + + case "Subcontrol.mappedFrameworks": + if e.complexity.Subcontrol.MappedFrameworks == nil { + break + } + + return e.complexity.Subcontrol.MappedFrameworks(childComplexity), true + + case "Subcontrol.name": + if e.complexity.Subcontrol.Name == nil { + break + } + + return e.complexity.Subcontrol.Name(childComplexity), true + + case "Subcontrol.notes": + if e.complexity.Subcontrol.Notes == nil { + break + } + + return e.complexity.Subcontrol.Notes(childComplexity), true + + case "Subcontrol.source": + if e.complexity.Subcontrol.Source == nil { + break + } + + return e.complexity.Subcontrol.Source(childComplexity), true + + case "Subcontrol.status": + if e.complexity.Subcontrol.Status == nil { + break + } + + return e.complexity.Subcontrol.Status(childComplexity), true + + case "Subcontrol.subcontrolNumber": + if e.complexity.Subcontrol.SubcontrolNumber == nil { + break + } + + return e.complexity.Subcontrol.SubcontrolNumber(childComplexity), true + + case "Subcontrol.subcontrolType": + if e.complexity.Subcontrol.SubcontrolType == nil { + break + } + + return e.complexity.Subcontrol.SubcontrolType(childComplexity), true + + case "Subcontrol.tags": + if e.complexity.Subcontrol.Tags == nil { + break + } + + return e.complexity.Subcontrol.Tags(childComplexity), true + + case "Subcontrol.updatedAt": + if e.complexity.Subcontrol.UpdatedAt == nil { + break + } + + return e.complexity.Subcontrol.UpdatedAt(childComplexity), true + + case "Subcontrol.updatedBy": + if e.complexity.Subcontrol.UpdatedBy == nil { + break + } + + return e.complexity.Subcontrol.UpdatedBy(childComplexity), true + + case "Subcontrol.user": + if e.complexity.Subcontrol.User == nil { + break + } + + return e.complexity.Subcontrol.User(childComplexity), true + + case "Subcontrol.version": + if e.complexity.Subcontrol.Version == nil { + break + } + + return e.complexity.Subcontrol.Version(childComplexity), true + + case "SubcontrolBulkCreatePayload.subcontrols": + if e.complexity.SubcontrolBulkCreatePayload.Subcontrols == nil { + break + } + + return e.complexity.SubcontrolBulkCreatePayload.Subcontrols(childComplexity), true + + case "SubcontrolConnection.edges": + if e.complexity.SubcontrolConnection.Edges == nil { + break + } + + return e.complexity.SubcontrolConnection.Edges(childComplexity), true + + case "SubcontrolConnection.pageInfo": + if e.complexity.SubcontrolConnection.PageInfo == nil { + break + } + + return e.complexity.SubcontrolConnection.PageInfo(childComplexity), true + + case "SubcontrolConnection.totalCount": + if e.complexity.SubcontrolConnection.TotalCount == nil { + break + } + + return e.complexity.SubcontrolConnection.TotalCount(childComplexity), true + + case "SubcontrolCreatePayload.subcontrol": + if e.complexity.SubcontrolCreatePayload.Subcontrol == nil { + break + } + + return e.complexity.SubcontrolCreatePayload.Subcontrol(childComplexity), true + + case "SubcontrolDeletePayload.deletedID": + if e.complexity.SubcontrolDeletePayload.DeletedID == nil { + break + } + + return e.complexity.SubcontrolDeletePayload.DeletedID(childComplexity), true + + case "SubcontrolEdge.cursor": + if e.complexity.SubcontrolEdge.Cursor == nil { + break + } + + return e.complexity.SubcontrolEdge.Cursor(childComplexity), true + + case "SubcontrolEdge.node": + if e.complexity.SubcontrolEdge.Node == nil { + break + } + + return e.complexity.SubcontrolEdge.Node(childComplexity), true + + case "SubcontrolHistory.class": + if e.complexity.SubcontrolHistory.Class == nil { + break + } + + return e.complexity.SubcontrolHistory.Class(childComplexity), true + + case "SubcontrolHistory.createdAt": + if e.complexity.SubcontrolHistory.CreatedAt == nil { + break + } + + return e.complexity.SubcontrolHistory.CreatedAt(childComplexity), true + + case "SubcontrolHistory.createdBy": + if e.complexity.SubcontrolHistory.CreatedBy == nil { + break + } + + return e.complexity.SubcontrolHistory.CreatedBy(childComplexity), true + + case "SubcontrolHistory.deletedAt": + if e.complexity.SubcontrolHistory.DeletedAt == nil { + break + } + + return e.complexity.SubcontrolHistory.DeletedAt(childComplexity), true + + case "SubcontrolHistory.deletedBy": + if e.complexity.SubcontrolHistory.DeletedBy == nil { + break + } + + return e.complexity.SubcontrolHistory.DeletedBy(childComplexity), true + + case "SubcontrolHistory.description": + if e.complexity.SubcontrolHistory.Description == nil { + break + } + + return e.complexity.SubcontrolHistory.Description(childComplexity), true + + case "SubcontrolHistory.details": + if e.complexity.SubcontrolHistory.Details == nil { + break + } + + return e.complexity.SubcontrolHistory.Details(childComplexity), true + + case "SubcontrolHistory.family": + if e.complexity.SubcontrolHistory.Family == nil { + break + } + + return e.complexity.SubcontrolHistory.Family(childComplexity), true + + case "SubcontrolHistory.historyTime": + if e.complexity.SubcontrolHistory.HistoryTime == nil { + break + } + + return e.complexity.SubcontrolHistory.HistoryTime(childComplexity), true + + case "SubcontrolHistory.id": + if e.complexity.SubcontrolHistory.ID == nil { + break + } + + return e.complexity.SubcontrolHistory.ID(childComplexity), true + + case "SubcontrolHistory.implementationDate": + if e.complexity.SubcontrolHistory.ImplementationDate == nil { + break + } + + return e.complexity.SubcontrolHistory.ImplementationDate(childComplexity), true + + case "SubcontrolHistory.implementationEvidence": + if e.complexity.SubcontrolHistory.ImplementationEvidence == nil { + break + } + + return e.complexity.SubcontrolHistory.ImplementationEvidence(childComplexity), true + + case "SubcontrolHistory.implementationStatus": + if e.complexity.SubcontrolHistory.ImplementationStatus == nil { + break + } + + return e.complexity.SubcontrolHistory.ImplementationStatus(childComplexity), true + + case "SubcontrolHistory.implementationVerification": + if e.complexity.SubcontrolHistory.ImplementationVerification == nil { + break + } + + return e.complexity.SubcontrolHistory.ImplementationVerification(childComplexity), true + + case "SubcontrolHistory.implementationVerificationDate": + if e.complexity.SubcontrolHistory.ImplementationVerificationDate == nil { + break + } + + return e.complexity.SubcontrolHistory.ImplementationVerificationDate(childComplexity), true + + case "SubcontrolHistory.mappedFrameworks": + if e.complexity.SubcontrolHistory.MappedFrameworks == nil { + break + } + + return e.complexity.SubcontrolHistory.MappedFrameworks(childComplexity), true + + case "SubcontrolHistory.name": + if e.complexity.SubcontrolHistory.Name == nil { + break + } + + return e.complexity.SubcontrolHistory.Name(childComplexity), true + + case "SubcontrolHistory.operation": + if e.complexity.SubcontrolHistory.Operation == nil { + break + } + + return e.complexity.SubcontrolHistory.Operation(childComplexity), true + + case "SubcontrolHistory.ref": + if e.complexity.SubcontrolHistory.Ref == nil { + break + } + + return e.complexity.SubcontrolHistory.Ref(childComplexity), true + + case "SubcontrolHistory.source": + if e.complexity.SubcontrolHistory.Source == nil { + break + } + + return e.complexity.SubcontrolHistory.Source(childComplexity), true + + case "SubcontrolHistory.status": + if e.complexity.SubcontrolHistory.Status == nil { + break + } + + return e.complexity.SubcontrolHistory.Status(childComplexity), true + + case "SubcontrolHistory.subcontrolNumber": + if e.complexity.SubcontrolHistory.SubcontrolNumber == nil { + break + } + + return e.complexity.SubcontrolHistory.SubcontrolNumber(childComplexity), true + + case "SubcontrolHistory.subcontrolType": + if e.complexity.SubcontrolHistory.SubcontrolType == nil { + break + } + + return e.complexity.SubcontrolHistory.SubcontrolType(childComplexity), true + + case "SubcontrolHistory.tags": + if e.complexity.SubcontrolHistory.Tags == nil { + break + } + + return e.complexity.SubcontrolHistory.Tags(childComplexity), true + + case "SubcontrolHistory.updatedAt": + if e.complexity.SubcontrolHistory.UpdatedAt == nil { + break + } + + return e.complexity.SubcontrolHistory.UpdatedAt(childComplexity), true + + case "SubcontrolHistory.updatedBy": + if e.complexity.SubcontrolHistory.UpdatedBy == nil { + break + } + + return e.complexity.SubcontrolHistory.UpdatedBy(childComplexity), true + + case "SubcontrolHistory.version": + if e.complexity.SubcontrolHistory.Version == nil { + break + } + + return e.complexity.SubcontrolHistory.Version(childComplexity), true + + case "SubcontrolHistoryConnection.edges": + if e.complexity.SubcontrolHistoryConnection.Edges == nil { + break + } + + return e.complexity.SubcontrolHistoryConnection.Edges(childComplexity), true + + case "SubcontrolHistoryConnection.pageInfo": + if e.complexity.SubcontrolHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.SubcontrolHistoryConnection.PageInfo(childComplexity), true + + case "SubcontrolHistoryConnection.totalCount": + if e.complexity.SubcontrolHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.SubcontrolHistoryConnection.TotalCount(childComplexity), true + + case "SubcontrolHistoryEdge.cursor": + if e.complexity.SubcontrolHistoryEdge.Cursor == nil { + break + } + + return e.complexity.SubcontrolHistoryEdge.Cursor(childComplexity), true + + case "SubcontrolHistoryEdge.node": + if e.complexity.SubcontrolHistoryEdge.Node == nil { + break + } + + return e.complexity.SubcontrolHistoryEdge.Node(childComplexity), true + + case "SubcontrolSearchResult.subcontrols": + if e.complexity.SubcontrolSearchResult.Subcontrols == nil { + break + } + + return e.complexity.SubcontrolSearchResult.Subcontrols(childComplexity), true + + case "SubcontrolUpdatePayload.subcontrol": + if e.complexity.SubcontrolUpdatePayload.Subcontrol == nil { + break + } + + return e.complexity.SubcontrolUpdatePayload.Subcontrol(childComplexity), true + case "Subscriber.active": if e.complexity.Subscriber.Active == nil { break @@ -14723,6 +20450,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.TemplateUpdatePayload.Template(childComplexity), true + case "User.actionplans": + if e.complexity.User.Actionplans == nil { + break + } + + return e.complexity.User.Actionplans(childComplexity), true + case "User.authProvider": if e.complexity.User.AuthProvider == nil { break @@ -14905,6 +20639,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.User.Sub(childComplexity), true + case "User.subcontrols": + if e.complexity.User.Subcontrols == nil { + break + } + + return e.complexity.User.Subcontrols(childComplexity), true + case "User.tags": if e.complexity.User.Tags == nil { break @@ -15943,11 +21684,20 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)} inputUnmarshalMap := graphql.BuildUnmarshalerMap( ec.unmarshalInputAPITokenWhereInput, + ec.unmarshalInputActionPlanHistoryWhereInput, + ec.unmarshalInputActionPlanWhereInput, ec.unmarshalInputAuditLogWhereInput, ec.unmarshalInputContactHistoryWhereInput, ec.unmarshalInputContactWhereInput, + ec.unmarshalInputControlHistoryWhereInput, + ec.unmarshalInputControlObjectiveHistoryWhereInput, + ec.unmarshalInputControlObjectiveWhereInput, + ec.unmarshalInputControlWhereInput, ec.unmarshalInputCreateAPITokenInput, + ec.unmarshalInputCreateActionPlanInput, ec.unmarshalInputCreateContactInput, + ec.unmarshalInputCreateControlInput, + ec.unmarshalInputCreateControlObjectiveInput, ec.unmarshalInputCreateDocumentDataInput, ec.unmarshalInputCreateEntitlementInput, ec.unmarshalInputCreateEntitlementPlanFeatureInput, @@ -15962,7 +21712,9 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputCreateGroupSettingInput, ec.unmarshalInputCreateHushInput, ec.unmarshalInputCreateIntegrationInput, + ec.unmarshalInputCreateInternalPolicyInput, ec.unmarshalInputCreateInviteInput, + ec.unmarshalInputCreateNarrativeInput, ec.unmarshalInputCreateNoteInput, ec.unmarshalInputCreateOauthProviderInput, ec.unmarshalInputCreateOhAuthTooTokenInput, @@ -15970,6 +21722,10 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputCreateOrganizationInput, ec.unmarshalInputCreateOrganizationSettingInput, ec.unmarshalInputCreatePersonalAccessTokenInput, + ec.unmarshalInputCreateProcedureInput, + ec.unmarshalInputCreateRiskInput, + ec.unmarshalInputCreateStandardInput, + ec.unmarshalInputCreateSubcontrolInput, ec.unmarshalInputCreateSubscriberInput, ec.unmarshalInputCreateTFASettingInput, ec.unmarshalInputCreateTemplateInput, @@ -16014,7 +21770,11 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputIntegrationHistoryWhereInput, ec.unmarshalInputIntegrationOrder, ec.unmarshalInputIntegrationWhereInput, + ec.unmarshalInputInternalPolicyHistoryWhereInput, + ec.unmarshalInputInternalPolicyWhereInput, ec.unmarshalInputInviteWhereInput, + ec.unmarshalInputNarrativeHistoryWhereInput, + ec.unmarshalInputNarrativeWhereInput, ec.unmarshalInputNoteHistoryWhereInput, ec.unmarshalInputNoteWhereInput, ec.unmarshalInputOauthProviderHistoryWhereInput, @@ -16029,6 +21789,14 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputOrganizationSettingWhereInput, ec.unmarshalInputOrganizationWhereInput, ec.unmarshalInputPersonalAccessTokenWhereInput, + ec.unmarshalInputProcedureHistoryWhereInput, + ec.unmarshalInputProcedureWhereInput, + ec.unmarshalInputRiskHistoryWhereInput, + ec.unmarshalInputRiskWhereInput, + ec.unmarshalInputStandardHistoryWhereInput, + ec.unmarshalInputStandardWhereInput, + ec.unmarshalInputSubcontrolHistoryWhereInput, + ec.unmarshalInputSubcontrolWhereInput, ec.unmarshalInputSubscriberWhereInput, ec.unmarshalInputTFASettingWhereInput, ec.unmarshalInputTemplateHistoryOrder, @@ -16036,7 +21804,10 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputTemplateOrder, ec.unmarshalInputTemplateWhereInput, ec.unmarshalInputUpdateAPITokenInput, + ec.unmarshalInputUpdateActionPlanInput, ec.unmarshalInputUpdateContactInput, + ec.unmarshalInputUpdateControlInput, + ec.unmarshalInputUpdateControlObjectiveInput, ec.unmarshalInputUpdateDocumentDataInput, ec.unmarshalInputUpdateEntitlementInput, ec.unmarshalInputUpdateEntitlementPlanFeatureInput, @@ -16051,7 +21822,9 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputUpdateGroupSettingInput, ec.unmarshalInputUpdateHushInput, ec.unmarshalInputUpdateIntegrationInput, + ec.unmarshalInputUpdateInternalPolicyInput, ec.unmarshalInputUpdateInviteInput, + ec.unmarshalInputUpdateNarrativeInput, ec.unmarshalInputUpdateNoteInput, ec.unmarshalInputUpdateOauthProviderInput, ec.unmarshalInputUpdateOhAuthTooTokenInput, @@ -16059,6 +21832,10 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputUpdateOrganizationInput, ec.unmarshalInputUpdateOrganizationSettingInput, ec.unmarshalInputUpdatePersonalAccessTokenInput, + ec.unmarshalInputUpdateProcedureInput, + ec.unmarshalInputUpdateRiskInput, + ec.unmarshalInputUpdateStandardInput, + ec.unmarshalInputUpdateSubcontrolInput, ec.unmarshalInputUpdateSubscriberInput, ec.unmarshalInputUpdateTFASettingInput, ec.unmarshalInputUpdateTemplateInput, @@ -16172,6 +21949,109 @@ func (ec *executionContext) introspectType(name string) (*introspection.Type, er } var sources = []*ast.Source{ + {Name: "../../schema/actionplan.graphql", Input: `extend type Query { + """ + Look up actionPlan by ID + """ + actionPlan( + """ + ID of the actionPlan + """ + id: ID! + ): ActionPlan! +} + +extend type Mutation{ + """ + Create a new actionPlan + """ + createActionPlan( + """ + values of the actionPlan + """ + input: CreateActionPlanInput! + ): ActionPlanCreatePayload! + """ + Create multiple new actionPlans + """ + createBulkActionPlan( + """ + values of the actionPlan + """ + input: [CreateActionPlanInput!] + ): ActionPlanBulkCreatePayload! + """ + Create multiple new actionPlans via file upload + """ + createBulkCSVActionPlan( + """ + csv file containing values of the actionPlan + """ + input: Upload! + ): ActionPlanBulkCreatePayload! + """ + Update an existing actionPlan + """ + updateActionPlan( + """ + ID of the actionPlan + """ + id: ID! + """ + New values for the actionPlan + """ + input: UpdateActionPlanInput! + ): ActionPlanUpdatePayload! + """ + Delete an existing actionPlan + """ + deleteActionPlan( + """ + ID of the actionPlan + """ + id: ID! + ): ActionPlanDeletePayload! +} + +""" +Return response for createActionPlan mutation +""" +type ActionPlanCreatePayload { + """ + Created actionPlan + """ + actionPlan: ActionPlan! +} + +""" +Return response for updateActionPlan mutation +""" +type ActionPlanUpdatePayload { + """ + Updated actionPlan + """ + actionPlan: ActionPlan! +} + +""" +Return response for deleteActionPlan mutation +""" +type ActionPlanDeletePayload { + """ + Deleted actionPlan ID + """ + deletedID: ID! +} + +""" +Return response for createBulkActionPlan mutation +""" +type ActionPlanBulkCreatePayload { + """ + Created actionPlans + """ + actionPlans: [ActionPlan!] +}`, BuiltIn: false}, {Name: "../../schema/adminsearch.graphql", Input: `extend type Query{ """ Search across APIToken objects @@ -16183,6 +22063,15 @@ var sources = []*ast.Source{ query: String! ): APITokenSearchResult """ + Search across ActionPlan objects + """ + adminActionPlanSearch( + """ + Search query + """ + query: String! + ): ActionPlanSearchResult + """ Search across Contact objects """ adminContactSearch( @@ -16192,6 +22081,24 @@ var sources = []*ast.Source{ query: String! ): ContactSearchResult """ + Search across Control objects + """ + adminControlSearch( + """ + Search query + """ + query: String! + ): ControlSearchResult + """ + Search across ControlObjective objects + """ + adminControlObjectiveSearch( + """ + Search query + """ + query: String! + ): ControlObjectiveSearchResult + """ Search across DocumentData objects """ adminDocumentDataSearch( @@ -16300,6 +22207,24 @@ var sources = []*ast.Source{ query: String! ): IntegrationSearchResult """ + Search across InternalPolicy objects + """ + adminInternalPolicySearch( + """ + Search query + """ + query: String! + ): InternalPolicySearchResult + """ + Search across Narrative objects + """ + adminNarrativeSearch( + """ + Search query + """ + query: String! + ): NarrativeSearchResult + """ Search across OauthProvider objects """ adminOauthProviderSearch( @@ -16345,6 +22270,42 @@ var sources = []*ast.Source{ query: String! ): PersonalAccessTokenSearchResult """ + Search across Procedure objects + """ + adminProcedureSearch( + """ + Search query + """ + query: String! + ): ProcedureSearchResult + """ + Search across Risk objects + """ + adminRiskSearch( + """ + Search query + """ + query: String! + ): RiskSearchResult + """ + Search across Standard objects + """ + adminStandardSearch( + """ + Search query + """ + query: String! + ): StandardSearchResult + """ + Search across Subcontrol objects + """ + adminSubcontrolSearch( + """ + Search query + """ + query: String! + ): SubcontrolSearchResult + """ Search across Subscriber objects """ adminSubscriberSearch( @@ -16682,6 +22643,212 @@ type ContactBulkCreatePayload { Created contacts """ contacts: [Contact!] +}`, BuiltIn: false}, + {Name: "../../schema/control.graphql", Input: `extend type Query { + """ + Look up control by ID + """ + control( + """ + ID of the control + """ + id: ID! + ): Control! +} + +extend type Mutation{ + """ + Create a new control + """ + createControl( + """ + values of the control + """ + input: CreateControlInput! + ): ControlCreatePayload! + """ + Create multiple new controls + """ + createBulkControl( + """ + values of the control + """ + input: [CreateControlInput!] + ): ControlBulkCreatePayload! + """ + Create multiple new controls via file upload + """ + createBulkCSVControl( + """ + csv file containing values of the control + """ + input: Upload! + ): ControlBulkCreatePayload! + """ + Update an existing control + """ + updateControl( + """ + ID of the control + """ + id: ID! + """ + New values for the control + """ + input: UpdateControlInput! + ): ControlUpdatePayload! + """ + Delete an existing control + """ + deleteControl( + """ + ID of the control + """ + id: ID! + ): ControlDeletePayload! +} + +""" +Return response for createControl mutation +""" +type ControlCreatePayload { + """ + Created control + """ + control: Control! +} + +""" +Return response for updateControl mutation +""" +type ControlUpdatePayload { + """ + Updated control + """ + control: Control! +} + +""" +Return response for deleteControl mutation +""" +type ControlDeletePayload { + """ + Deleted control ID + """ + deletedID: ID! +} + +""" +Return response for createBulkControl mutation +""" +type ControlBulkCreatePayload { + """ + Created controls + """ + controls: [Control!] +}`, BuiltIn: false}, + {Name: "../../schema/controlobjective.graphql", Input: `extend type Query { + """ + Look up controlObjective by ID + """ + controlObjective( + """ + ID of the controlObjective + """ + id: ID! + ): ControlObjective! +} + +extend type Mutation{ + """ + Create a new controlObjective + """ + createControlObjective( + """ + values of the controlObjective + """ + input: CreateControlObjectiveInput! + ): ControlObjectiveCreatePayload! + """ + Create multiple new controlObjectives + """ + createBulkControlObjective( + """ + values of the controlObjective + """ + input: [CreateControlObjectiveInput!] + ): ControlObjectiveBulkCreatePayload! + """ + Create multiple new controlObjectives via file upload + """ + createBulkCSVControlObjective( + """ + csv file containing values of the controlObjective + """ + input: Upload! + ): ControlObjectiveBulkCreatePayload! + """ + Update an existing controlObjective + """ + updateControlObjective( + """ + ID of the controlObjective + """ + id: ID! + """ + New values for the controlObjective + """ + input: UpdateControlObjectiveInput! + ): ControlObjectiveUpdatePayload! + """ + Delete an existing controlObjective + """ + deleteControlObjective( + """ + ID of the controlObjective + """ + id: ID! + ): ControlObjectiveDeletePayload! +} + +""" +Return response for createControlObjective mutation +""" +type ControlObjectiveCreatePayload { + """ + Created controlObjective + """ + controlObjective: ControlObjective! +} + +""" +Return response for updateControlObjective mutation +""" +type ControlObjectiveUpdatePayload { + """ + Updated controlObjective + """ + controlObjective: ControlObjective! +} + +""" +Return response for deleteControlObjective mutation +""" +type ControlObjectiveDeletePayload { + """ + Deleted controlObjective ID + """ + deletedID: ID! +} + +""" +Return response for createBulkControlObjective mutation +""" +type ControlObjectiveBulkCreatePayload { + """ + Created controlObjectives + """ + controlObjectives: [ControlObjective!] }`, BuiltIn: false}, {Name: "../../schema/documentdata.graphql", Input: `extend type Query { """ @@ -17031,7 +23198,7 @@ input APITokenWhereInput { hasOwner: Boolean hasOwnerWith: [OrganizationWhereInput!] } -type Contact implements Node { +type ActionPlan implements Node { id: ID! createdAt: Time updatedAt: Time @@ -17044,49 +23211,46 @@ type Contact implements Node { """ tags: [String!] """ - the organization id that owns the object - """ - ownerID: ID + the name of the action plan """ - the full name of the contact + name: String! """ - fullName: String! + description of the action plan """ - the title of the contact + description: String """ - title: String + status of the action plan """ - the company of the contact - """ - company: String + status: String """ - the email of the contact + due date of the action plan """ - email: String + dueDate: Time """ - the phone number of the contact + priority of the action plan """ - phoneNumber: String + priority: String """ - the address of the contact + source of the action plan """ - address: String + source: String """ - status of the contact + json data including details of the action plan """ - status: ContactUserStatus! - owner: Organization - entities: [Entity!] - files: [File!] + details: Map + standard: [Standard!] + risk: [Risk!] + control: [Control!] + user: [User!] } """ A connection to a list of items. """ -type ContactConnection { +type ActionPlanConnection { """ A list of edges. """ - edges: [ContactEdge] + edges: [ActionPlanEdge] """ Information to aid in pagination. """ @@ -17099,21 +23263,21 @@ type ContactConnection { """ An edge in a connection. """ -type ContactEdge { +type ActionPlanEdge { """ The item at the end of the edge. """ - node: Contact + node: ActionPlan """ A cursor for use in pagination. """ cursor: Cursor! } -type ContactHistory implements Node { +type ActionPlanHistory implements Node { id: ID! historyTime: Time! ref: String - operation: ContactHistoryOpType! + operation: ActionPlanHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -17125,46 +23289,42 @@ type ContactHistory implements Node { """ tags: [String!] """ - the organization id that owns the object - """ - ownerID: String - """ - the full name of the contact + the name of the action plan """ - fullName: String! + name: String! """ - the title of the contact + description of the action plan """ - title: String + description: String """ - the company of the contact + status of the action plan """ - company: String + status: String """ - the email of the contact + due date of the action plan """ - email: String + dueDate: Time """ - the phone number of the contact + priority of the action plan """ - phoneNumber: String + priority: String """ - the address of the contact + source of the action plan """ - address: String + source: String """ - status of the contact + json data including details of the action plan """ - status: ContactHistoryUserStatus! + details: Map } """ A connection to a list of items. """ -type ContactHistoryConnection { +type ActionPlanHistoryConnection { """ A list of edges. """ - edges: [ContactHistoryEdge] + edges: [ActionPlanHistoryEdge] """ Information to aid in pagination. """ @@ -17177,42 +23337,694 @@ type ContactHistoryConnection { """ An edge in a connection. """ -type ContactHistoryEdge { +type ActionPlanHistoryEdge { """ The item at the end of the edge. """ - node: ContactHistory + node: ActionPlanHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -ContactHistoryOpType is enum for the field operation +ActionPlanHistoryOpType is enum for the field operation """ -enum ContactHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum ActionPlanHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -ContactHistoryUserStatus is enum for the field status -""" -enum ContactHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { - ACTIVE - INACTIVE - DEACTIVATED - SUSPENDED - ONBOARDING -} -""" -ContactHistoryWhereInput is used for filtering ContactHistory objects. +ActionPlanHistoryWhereInput is used for filtering ActionPlanHistory objects. Input was generated by ent. """ -input ContactHistoryWhereInput { - not: ContactHistoryWhereInput - and: [ContactHistoryWhereInput!] - or: [ContactHistoryWhereInput!] +input ActionPlanHistoryWhereInput { + not: ActionPlanHistoryWhereInput + and: [ActionPlanHistoryWhereInput!] + or: [ActionPlanHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ActionPlanHistoryOpType + operationNEQ: ActionPlanHistoryOpType + operationIn: [ActionPlanHistoryOpType!] + operationNotIn: [ActionPlanHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + due_date field predicates + """ + dueDate: Time + dueDateNEQ: Time + dueDateIn: [Time!] + dueDateNotIn: [Time!] + dueDateGT: Time + dueDateGTE: Time + dueDateLT: Time + dueDateLTE: Time + dueDateIsNil: Boolean + dueDateNotNil: Boolean + """ + priority field predicates + """ + priority: String + priorityNEQ: String + priorityIn: [String!] + priorityNotIn: [String!] + priorityGT: String + priorityGTE: String + priorityLT: String + priorityLTE: String + priorityContains: String + priorityHasPrefix: String + priorityHasSuffix: String + priorityIsNil: Boolean + priorityNotNil: Boolean + priorityEqualFold: String + priorityContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String +} +""" +ActionPlanWhereInput is used for filtering ActionPlan objects. +Input was generated by ent. +""" +input ActionPlanWhereInput { + not: ActionPlanWhereInput + and: [ActionPlanWhereInput!] + or: [ActionPlanWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + due_date field predicates + """ + dueDate: Time + dueDateNEQ: Time + dueDateIn: [Time!] + dueDateNotIn: [Time!] + dueDateGT: Time + dueDateGTE: Time + dueDateLT: Time + dueDateLTE: Time + dueDateIsNil: Boolean + dueDateNotNil: Boolean + """ + priority field predicates + """ + priority: String + priorityNEQ: String + priorityIn: [String!] + priorityNotIn: [String!] + priorityGT: String + priorityGTE: String + priorityLT: String + priorityLTE: String + priorityContains: String + priorityHasPrefix: String + priorityHasSuffix: String + priorityIsNil: Boolean + priorityNotNil: Boolean + priorityEqualFold: String + priorityContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + risk edge predicates + """ + hasRisk: Boolean + hasRiskWith: [RiskWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] +} +type Contact implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the full name of the contact + """ + fullName: String! + """ + the title of the contact + """ + title: String + """ + the company of the contact + """ + company: String + """ + the email of the contact + """ + email: String + """ + the phone number of the contact + """ + phoneNumber: String + """ + the address of the contact + """ + address: String + """ + status of the contact + """ + status: ContactUserStatus! + owner: Organization + entities: [Entity!] + files: [File!] +} +""" +A connection to a list of items. +""" +type ContactConnection { + """ + A list of edges. + """ + edges: [ContactEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ContactEdge { + """ + The item at the end of the edge. + """ + node: Contact + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ContactHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ContactHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the full name of the contact + """ + fullName: String! + """ + the title of the contact + """ + title: String + """ + the company of the contact + """ + company: String + """ + the email of the contact + """ + email: String + """ + the phone number of the contact + """ + phoneNumber: String + """ + the address of the contact + """ + address: String + """ + status of the contact + """ + status: ContactHistoryUserStatus! +} +""" +A connection to a list of items. +""" +type ContactHistoryConnection { + """ + A list of edges. + """ + edges: [ContactHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ContactHistoryEdge { + """ + The item at the end of the edge. + """ + node: ContactHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ContactHistoryOpType is enum for the field operation +""" +enum ContactHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ContactHistoryUserStatus is enum for the field status +""" +enum ContactHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING +} +""" +ContactHistoryWhereInput is used for filtering ContactHistory objects. +Input was generated by ent. +""" +input ContactHistoryWhereInput { + not: ContactHistoryWhereInput + and: [ContactHistoryWhereInput!] + or: [ContactHistoryWhereInput!] """ id field predicates """ @@ -17758,1041 +24570,715 @@ input ContactWhereInput { hasFiles: Boolean hasFilesWith: [FileWhereInput!] } -""" -CreateAPITokenInput is used for create APIToken object. -Input was generated by ent. -""" -input CreateAPITokenInput { +type Control implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] """ - the name associated with the token + the name of the control """ name: String! """ - when the token expires - """ - expiresAt: Time - """ - a description of the token's purpose + description of the control """ description: String - scopes: [String!] - lastUsedAt: Time - ownerID: ID -} -""" -CreateContactInput is used for create Contact object. -Input was generated by ent. -""" -input CreateContactInput { """ - tags associated with the object + status of the control """ - tags: [String!] + status: String """ - the full name of the contact + type of the control """ - fullName: String! + controlType: String """ - the title of the contact + version of the control """ - title: String + version: String """ - the company of the contact + control number or identifier """ - company: String + controlNumber: String """ - the email of the contact + family associated with the control """ - email: String + family: String """ - the phone number of the contact + class associated with the control """ - phoneNumber: String + class: String """ - the address of the contact + source of the control, e.g. framework, template, custom, etc. """ - address: String + source: String """ - status of the contact + which control objectives are satisfied by the control """ - status: ContactUserStatus - ownerID: ID - entityIDs: [ID!] - fileIDs: [ID!] -} -""" -CreateDocumentDataInput is used for create DocumentData object. -Input was generated by ent. -""" -input CreateDocumentDataInput { + satisfies: String """ - tags associated with the object + mapped frameworks """ - tags: [String!] + mappedFrameworks: String """ - the json data of the document + json data including details of the control """ - data: JSON! - ownerID: ID - templateID: ID! - entityIDs: [ID!] - fileIDs: [ID!] + details: Map + procedures: [Procedure!] + subcontrols: [Subcontrol!] + controlobjectives: [ControlObjective!] + standard: [Standard!] + narratives: [Narrative!] + risks: [Risk!] + actionplans: [ActionPlan!] } """ -CreateEntitlementInput is used for create Entitlement object. -Input was generated by ent. +A connection to a list of items. """ -input CreateEntitlementInput { +type ControlConnection { """ - tags associated with the object - """ - tags: [String!] - """ - used to store references to external systems, e.g. Stripe - """ - externalCustomerID: String - """ - used to store references to external systems, e.g. Stripe + A list of edges. """ - externalSubscriptionID: String + edges: [ControlEdge] """ - the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + Information to aid in pagination. """ - expiresAt: Time + pageInfo: PageInfo! """ - whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + Identifies the total count of items in the connection. """ - cancelled: Boolean - ownerID: ID - planID: ID! - organizationID: ID! - eventIDs: [ID!] + totalCount: Int! } """ -CreateEntitlementPlanFeatureInput is used for create EntitlementPlanFeature object. -Input was generated by ent. +An edge in a connection. """ -input CreateEntitlementPlanFeatureInput { +type ControlEdge { """ - tags associated with the object + The item at the end of the edge. """ - tags: [String!] + node: Control """ - metadata for the entitlement plan feature such as usage limits + A cursor for use in pagination. """ - metadata: Map - ownerID: ID - planID: ID! - featureID: ID! - eventIDs: [ID!] + cursor: Cursor! } -""" -CreateEntitlementPlanInput is used for create EntitlementPlan object. -Input was generated by ent. -""" -input CreateEntitlementPlanInput { +type ControlHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ControlHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] """ - the displayed 'friendly' name of the plan - """ - displayName: String - """ - the unique name of the plan + the name of the control """ name: String! """ - a description of the plan + description of the control """ description: String """ - the version of the plan + status of the control """ - version: String! + status: String """ - metadata for the plan + type of the control """ - metadata: Map - ownerID: ID - entitlementIDs: [ID!] - baseFeatureIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateEntityInput is used for create Entity object. -Input was generated by ent. -""" -input CreateEntityInput { + controlType: String """ - tags associated with the object + version of the control """ - tags: [String!] + version: String """ - the name of the entity + control number or identifier """ - name: String + controlNumber: String """ - The entity's displayed 'friendly' name + family associated with the control """ - displayName: String + family: String """ - An optional description of the entity + class associated with the control """ - description: String + class: String """ - domains associated with the entity + source of the control, e.g. framework, template, custom, etc. """ - domains: [String!] + source: String """ - status of the entity + which control objectives are satisfied by the control """ - status: String - ownerID: ID - contactIDs: [ID!] - documentIDs: [ID!] - noteIDs: [ID!] - fileIDs: [ID!] - entityTypeID: ID + satisfies: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control + """ + details: Map } """ -CreateEntityTypeInput is used for create EntityType object. -Input was generated by ent. +A connection to a list of items. """ -input CreateEntityTypeInput { +type ControlHistoryConnection { """ - tags associated with the object + A list of edges. """ - tags: [String!] + edges: [ControlHistoryEdge] """ - the name of the entity + Information to aid in pagination. """ - name: String! - ownerID: ID - entityIDs: [ID!] + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! } """ -CreateEventInput is used for create Event object. -Input was generated by ent. +An edge in a connection. """ -input CreateEventInput { +type ControlHistoryEdge { """ - tags associated with the object + The item at the end of the edge. """ - tags: [String!] - eventID: String - correlationID: String - eventType: String! - metadata: Map - userIDs: [ID!] - groupIDs: [ID!] - integrationIDs: [ID!] - organizationIDs: [ID!] - inviteIDs: [ID!] - featureIDs: [ID!] - entitlementplanIDs: [ID!] - personalAccessTokenIDs: [ID!] - oauth2tokenIDs: [ID!] - hushIDs: [ID!] - entitlementIDs: [ID!] - webhookIDs: [ID!] - subscriberIDs: [ID!] - fileIDs: [ID!] + node: ControlHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! } """ -CreateFeatureInput is used for create Feature object. +ControlHistoryOpType is enum for the field operation +""" +enum ControlHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ControlHistoryWhereInput is used for filtering ControlHistory objects. Input was generated by ent. """ -input CreateFeatureInput { +input ControlHistoryWhereInput { + not: ControlHistoryWhereInput + and: [ControlHistoryWhereInput!] + or: [ControlHistoryWhereInput!] """ - tags associated with the object + id field predicates """ - tags: [String!] + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - the unique name of the feature + history_time field predicates """ - name: String! + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time """ - the displayed 'friendly' name of the feature + ref field predicates """ - displayName: String + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String """ - enabled features are available for use + operation field predicates """ - enabled: Boolean + operation: ControlHistoryOpType + operationNEQ: ControlHistoryOpType + operationIn: [ControlHistoryOpType!] + operationNotIn: [ControlHistoryOpType!] """ - a description of the feature + created_at field predicates """ - description: String + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - metadata for the feature + updated_at field predicates """ - metadata: Map - ownerID: ID - planIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateFileInput is used for create File object. -Input was generated by ent. -""" -input CreateFileInput { + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - tags associated with the object + created_by field predicates """ - tags: [String!] + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - the name of the file provided in the payload key without the extension + updated_by field predicates """ - providedFileName: String! + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - the extension of the file provided + deleted_at field predicates """ - providedFileExtension: String! + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - the computed size of the file in the original http request + deleted_by field predicates """ - providedFileSize: Int - persistedFileSize: Int + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - the mime type detected by the system + name field predicates """ - detectedMimeType: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + description field predicates """ - md5Hash: String + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + status field predicates """ - detectedContentType: String! + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + control_type field predicates + """ + controlType: String + controlTypeNEQ: String + controlTypeIn: [String!] + controlTypeNotIn: [String!] + controlTypeGT: String + controlTypeGTE: String + controlTypeLT: String + controlTypeLTE: String + controlTypeContains: String + controlTypeHasPrefix: String + controlTypeHasSuffix: String + controlTypeIsNil: Boolean + controlTypeNotNil: Boolean + controlTypeEqualFold: String + controlTypeContainsFold: String """ - storeKey: String + version field predicates """ - the category type of the file, if any (e.g. evidence, invoice, etc.) + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - categoryType: String + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String +} +type ControlObjective implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - the full URI of the file + tags associated with the object """ - uri: String + tags: [String!] """ - the storage scheme of the file, e.g. file://, s3://, etc. + the name of the control objective """ - storageScheme: String + name: String! """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + description of the control objective """ - storageVolume: String + description: String """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + status of the control objective """ - storagePath: String - userIDs: [ID!] - organizationIDs: [ID!] - groupIDs: [ID!] - contactIDs: [ID!] - entityIDs: [ID!] - usersettingIDs: [ID!] - organizationsettingIDs: [ID!] - templateIDs: [ID!] - documentdatumIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateGroupInput is used for create Group object. -Input was generated by ent. -""" -input CreateGroupInput { + status: String """ - tags associated with the object + type of the control objective """ - tags: [String!] + controlObjectiveType: String """ - the name of the group - must be unique within the organization + version of the control objective """ - name: String! + version: String """ - the groups description + number of the control objective """ - description: String + controlNumber: String """ - the URL to an auto generated gravatar image for the group + family of the control objective """ - gravatarLogoURL: String + family: String """ - the URL to an image uploaded by the customer for the groups avatar image + class associated with the control objective """ - logoURL: String + class: String """ - The group's displayed 'friendly' name + source of the control objective, e.g. framework, template, user-defined, etc. """ - displayName: String - ownerID: ID - settingID: ID! - userIDs: [ID!] - eventIDs: [ID!] - integrationIDs: [ID!] - fileIDs: [ID!] -} -""" -CreateGroupMembershipInput is used for create GroupMembership object. -Input was generated by ent. -""" -input CreateGroupMembershipInput { - role: GroupMembershipRole - groupID: ID! - userID: ID! - eventIDs: [ID!] -} -""" -CreateGroupSettingInput is used for create GroupSetting object. -Input was generated by ent. -""" -input CreateGroupSettingInput { - """ - tags associated with the object - """ - tags: [String!] - """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization - """ - visibility: GroupSettingVisibility - """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either - """ - joinPolicy: GroupSettingJoinPolicy - """ - whether to sync group members to slack groups - """ - syncToSlack: Boolean - """ - whether to sync group members to github groups - """ - syncToGithub: Boolean - groupID: ID -} -""" -CreateHushInput is used for create Hush object. -Input was generated by ent. -""" -input CreateHushInput { - """ - the logical name of the corresponding hush secret or it's general grouping - """ - name: String! - """ - a description of the hush value or purpose, such as github PAT - """ - description: String - """ - the kind of secret, such as sshkey, certificate, api token, etc. - """ - kind: String - """ - the generic name of a secret associated with the organization - """ - secretName: String - """ - the secret value - """ - secretValue: String - integrationIDs: [ID!] - organizationIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateIntegrationInput is used for create Integration object. -Input was generated by ent. -""" -input CreateIntegrationInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the integration - must be unique within the organization - """ - name: String! - """ - a description of the integration - """ - description: String - kind: String - ownerID: ID - secretIDs: [ID!] - oauth2tokenIDs: [ID!] - eventIDs: [ID!] - webhookIDs: [ID!] -} -""" -CreateInviteInput is used for create Invite object. -Input was generated by ent. -""" -input CreateInviteInput { - """ - the expiration date of the invitation token which defaults to 14 days in the future from creation - """ - expires: Time - """ - the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization - """ - recipient: String! - """ - the status of the invitation - """ - status: InviteInviteStatus - role: InviteRole - """ - the number of attempts made to perform email send of the invitation, maximum of 5 - """ - sendAttempts: Int - """ - the user who initiated the invitation - """ - requestorID: String - ownerID: ID - eventIDs: [ID!] -} -""" -CreateNoteInput is used for create Note object. -Input was generated by ent. -""" -input CreateNoteInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the text of the note - """ - text: String! - ownerID: ID - entityID: ID -} -""" -CreateOauthProviderInput is used for create OauthProvider object. -Input was generated by ent. -""" -input CreateOauthProviderInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the oauth provider's name - """ - name: String! - """ - the client id for the oauth provider - """ - clientID: String! - """ - the client secret - """ - clientSecret: String! - """ - the redirect url - """ - redirectURL: String! - """ - the scopes - """ - scopes: String! - """ - the auth url of the provider - """ - authURL: String! - """ - the token url of the provider - """ - tokenURL: String! - """ - the auth style, 0: auto detect 1: third party log in 2: log in with username and password - """ - authStyle: Uint! - """ - the URL to request user information by token - """ - infoURL: String! - ownerID: ID -} -""" -CreateOhAuthTooTokenInput is used for create OhAuthTooToken object. -Input was generated by ent. -""" -input CreateOhAuthTooTokenInput { - """ - tags associated with the object - """ - tags: [String!] - clientID: String! - scopes: [String!] - nonce: String! - claimsUserID: String! - claimsUsername: String! - claimsEmail: String! - claimsEmailVerified: Boolean! - claimsGroups: [String!] - claimsPreferredUsername: String! - connectorID: String! - connectorData: [String!] - lastUsed: Time - integrationIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateOrgMembershipInput is used for create OrgMembership object. -Input was generated by ent. -""" -input CreateOrgMembershipInput { - role: OrgMembershipRole - organizationID: ID! - userID: ID! - eventIDs: [ID!] -} -""" -CreateOrganizationInput is used for create Organization object. -Input was generated by ent. -""" -input CreateOrganizationInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the organization - """ - name: String! - """ - The organization's displayed 'friendly' name - """ - displayName: String - """ - An optional description of the organization - """ - description: String - """ - orgs directly associated with a user - """ - personalOrg: Boolean - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - Whether the organization has a dedicated database - """ - dedicatedDb: Boolean - parentID: ID - groupIDs: [ID!] - templateIDs: [ID!] - integrationIDs: [ID!] - settingID: ID - documentdatumIDs: [ID!] - entitlementIDs: [ID!] - organizationEntitlementIDs: [ID!] - personalAccessTokenIDs: [ID!] - apiTokenIDs: [ID!] - oauthproviderIDs: [ID!] - userIDs: [ID!] - inviteIDs: [ID!] - subscriberIDs: [ID!] - webhookIDs: [ID!] - eventIDs: [ID!] - secretIDs: [ID!] - featureIDs: [ID!] - fileIDs: [ID!] - entitlementplanIDs: [ID!] - entityIDs: [ID!] - entitytypeIDs: [ID!] - contactIDs: [ID!] - noteIDs: [ID!] -} -""" -CreateOrganizationSettingInput is used for create OrganizationSetting object. -Input was generated by ent. -""" -input CreateOrganizationSettingInput { - """ - tags associated with the object - """ - tags: [String!] - """ - domains associated with the organization - """ - domains: [String!] - """ - Name of the person to contact for billing - """ - billingContact: String - """ - Email address of the person to contact for billing - """ - billingEmail: String - """ - Phone number to contact for billing - """ - billingPhone: String - """ - Address to send billing information to - """ - billingAddress: String - """ - Usually government-issued tax ID or business ID such as ABN in Australia - """ - taxIdentifier: String - """ - geographical location of the organization - """ - geoLocation: OrganizationSettingRegion - organizationID: ID - fileIDs: [ID!] -} -""" -CreatePersonalAccessTokenInput is used for create PersonalAccessToken object. -Input was generated by ent. -""" -input CreatePersonalAccessTokenInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name associated with the token - """ - name: String! - """ - when the token expires - """ - expiresAt: Time - """ - a description of the token's purpose - """ - description: String - scopes: [String!] - lastUsedAt: Time - ownerID: ID! - organizationIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateSubscriberInput is used for create Subscriber object. -Input was generated by ent. -""" -input CreateSubscriberInput { - """ - tags associated with the object - """ - tags: [String!] - """ - email address of the subscriber - """ - email: String! - """ - phone number of the subscriber - """ - phoneNumber: String - ownerID: ID - eventIDs: [ID!] -} -""" -CreateTFASettingInput is used for create TFASetting object. -Input was generated by ent. -""" -input CreateTFASettingInput { - """ - tags associated with the object - """ - tags: [String!] - """ - specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app - """ - totpAllowed: Boolean - ownerID: ID -} -""" -CreateTemplateInput is used for create Template object. -Input was generated by ent. -""" -input CreateTemplateInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the template - """ - name: String! - """ - the type of the template, either a provided template or an implementation (document) - """ - templateType: TemplateDocumentType - """ - the description of the template - """ - description: String - """ - the jsonschema object of the template - """ - jsonconfig: JSON! - """ - the uischema for the template to render in the UI - """ - uischema: JSON - ownerID: ID - documentIDs: [ID!] - fileIDs: [ID!] -} -""" -CreateUserInput is used for create User object. -Input was generated by ent. -""" -input CreateUserInput { - """ - tags associated with the object - """ - tags: [String!] - email: String! - firstName: String - lastName: String - """ - The user's displayed 'friendly' name - """ - displayName: String! - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - The user's local avatar file - """ - avatarLocalFile: String - """ - The time the user's (local) avatar was last updated - """ - avatarUpdatedAt: Time - """ - the time the user was last seen - """ - lastSeen: Time - """ - user password hash - """ - password: String - """ - the Subject of the user JWT - """ - sub: String + source: String """ - auth provider used to register the account + mapped frameworks """ - authProvider: UserAuthProvider + mappedFrameworks: String """ - the user's role + json data including details of the control objective """ - role: UserRole - personalAccessTokenIDs: [ID!] - tfaSettingIDs: [ID!] - settingID: ID! - emailVerificationTokenIDs: [ID!] - passwordResetTokenIDs: [ID!] - groupIDs: [ID!] - organizationIDs: [ID!] - webauthnIDs: [ID!] - fileIDs: [ID!] - fileID: ID - eventIDs: [ID!] + details: Map + policy: [InternalPolicy!] + controls: [Control!] + procedures: [Procedure!] + risks: [Risk!] + subcontrols: [Subcontrol!] + standard: [Standard!] + narratives: [Narrative!] } """ -CreateUserSettingInput is used for create UserSetting object. -Input was generated by ent. +A connection to a list of items. """ -input CreateUserSettingInput { - """ - tags associated with the object - """ - tags: [String!] +type ControlObjectiveConnection { """ - user account is locked if unconfirmed or explicitly locked - """ - locked: Boolean - """ - The time notifications regarding the user were silenced - """ - silencedAt: Time - """ - The time the user was suspended - """ - suspendedAt: Time - """ - status of the user account - """ - status: UserSettingUserStatus - """ - whether the user has confirmed their email address + A list of edges. """ - emailConfirmed: Boolean + edges: [ControlObjectiveEdge] """ - specifies a user may complete authentication by verifying a WebAuthn capable device + Information to aid in pagination. """ - isWebauthnAllowed: Boolean + pageInfo: PageInfo! """ - whether the user has two factor authentication enabled + Identifies the total count of items in the connection. """ - isTfaEnabled: Boolean - userID: ID - defaultOrgID: ID - fileIDs: [ID!] + totalCount: Int! } """ -CreateWebhookInput is used for create Webhook object. -Input was generated by ent. +An edge in a connection. """ -input CreateWebhookInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the webhook - """ - name: String! - """ - a description of the webhook - """ - description: String - """ - the url to send the webhook to +type ControlObjectiveEdge { """ - destinationURL: String! - """ - indicates if the webhook is active and enabled - """ - enabled: Boolean - """ - the number of failures - """ - failures: Int - """ - the last error message + The item at the end of the edge. """ - lastError: String + node: ControlObjective """ - the last response + A cursor for use in pagination. """ - lastResponse: String - ownerID: ID - eventIDs: [ID!] - integrationIDs: [ID!] + cursor: Cursor! } -""" -Define a Relay Cursor type: -https://relay.dev/graphql/connections.htm#sec-Cursor -""" -scalar Cursor -type DocumentData implements Node { +type ControlObjectiveHistory implements Node { id: ID! + historyTime: Time! + ref: String + operation: ControlObjectiveHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - """ - tags associated with the object - """ - tags: [String!] deletedAt: Time deletedBy: String """ - the organization id that owns the object + tags associated with the object """ - ownerID: ID + tags: [String!] """ - the template id of the document + the name of the control objective """ - templateID: ID! + name: String! """ - the json data of the document + description of the control objective """ - data: JSON! - owner: Organization - template: Template! - entity: [Entity!] - files: [File!] -} -""" -A connection to a list of items. -""" -type DocumentDataConnection { + description: String """ - A list of edges. + status of the control objective """ - edges: [DocumentDataEdge] + status: String """ - Information to aid in pagination. + type of the control objective """ - pageInfo: PageInfo! + controlObjectiveType: String """ - Identifies the total count of items in the connection. + version of the control objective """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type DocumentDataEdge { + version: String """ - The item at the end of the edge. + number of the control objective """ - node: DocumentData + controlNumber: String """ - A cursor for use in pagination. + family of the control objective """ - cursor: Cursor! -} -type DocumentDataHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: DocumentDataHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String + family: String """ - tags associated with the object + class associated with the control objective """ - tags: [String!] - deletedAt: Time - deletedBy: String + class: String """ - the organization id that owns the object + source of the control objective, e.g. framework, template, user-defined, etc. """ - ownerID: String + source: String """ - the template id of the document + mapped frameworks """ - templateID: String! + mappedFrameworks: String """ - the json data of the document + json data including details of the control objective """ - data: JSON! + details: Map } """ A connection to a list of items. """ -type DocumentDataHistoryConnection { +type ControlObjectiveHistoryConnection { """ A list of edges. """ - edges: [DocumentDataHistoryEdge] + edges: [ControlObjectiveHistoryEdge] """ Information to aid in pagination. """ @@ -18805,32 +25291,32 @@ type DocumentDataHistoryConnection { """ An edge in a connection. """ -type DocumentDataHistoryEdge { +type ControlObjectiveHistoryEdge { """ The item at the end of the edge. """ - node: DocumentDataHistory + node: ControlObjectiveHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -DocumentDataHistoryOpType is enum for the field operation +ControlObjectiveHistoryOpType is enum for the field operation """ -enum DocumentDataHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum ControlObjectiveHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -DocumentDataHistoryWhereInput is used for filtering DocumentDataHistory objects. +ControlObjectiveHistoryWhereInput is used for filtering ControlObjectiveHistory objects. Input was generated by ent. """ -input DocumentDataHistoryWhereInput { - not: DocumentDataHistoryWhereInput - and: [DocumentDataHistoryWhereInput!] - or: [DocumentDataHistoryWhereInput!] +input ControlObjectiveHistoryWhereInput { + not: ControlObjectiveHistoryWhereInput + and: [ControlObjectiveHistoryWhereInput!] + or: [ControlObjectiveHistoryWhereInput!] """ id field predicates """ @@ -18876,10 +25362,10 @@ input DocumentDataHistoryWhereInput { """ operation field predicates """ - operation: DocumentDataHistoryOpType - operationNEQ: DocumentDataHistoryOpType - operationIn: [DocumentDataHistoryOpType!] - operationNotIn: [DocumentDataHistoryOpType!] + operation: ControlObjectiveHistoryOpType + operationNEQ: ControlObjectiveHistoryOpType + operationIn: [ControlObjectiveHistoryOpType!] + operationNotIn: [ControlObjectiveHistoryOpType!] """ created_at field predicates """ @@ -18974,48 +25460,192 @@ input DocumentDataHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + name field predicates """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - template_id field predicates + description field predicates """ - templateID: String - templateIDNEQ: String - templateIDIn: [String!] - templateIDNotIn: [String!] - templateIDGT: String - templateIDGTE: String - templateIDLT: String - templateIDLTE: String - templateIDContains: String - templateIDHasPrefix: String - templateIDHasSuffix: String - templateIDEqualFold: String - templateIDContainsFold: String + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + control_objective_type field predicates + """ + controlObjectiveType: String + controlObjectiveTypeNEQ: String + controlObjectiveTypeIn: [String!] + controlObjectiveTypeNotIn: [String!] + controlObjectiveTypeGT: String + controlObjectiveTypeGTE: String + controlObjectiveTypeLT: String + controlObjectiveTypeLTE: String + controlObjectiveTypeContains: String + controlObjectiveTypeHasPrefix: String + controlObjectiveTypeHasSuffix: String + controlObjectiveTypeIsNil: Boolean + controlObjectiveTypeNotNil: Boolean + controlObjectiveTypeEqualFold: String + controlObjectiveTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String } """ -DocumentDataWhereInput is used for filtering DocumentData objects. +ControlObjectiveWhereInput is used for filtering ControlObjective objects. Input was generated by ent. """ -input DocumentDataWhereInput { - not: DocumentDataWhereInput - and: [DocumentDataWhereInput!] - or: [DocumentDataWhereInput!] +input ControlObjectiveWhereInput { + not: ControlObjectiveWhereInput + and: [ControlObjectiveWhereInput!] + or: [ControlObjectiveWhereInput!] """ id field predicates """ @@ -19123,1082 +25753,2121 @@ input DocumentDataWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + name field predicates """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - template_id field predicates + description field predicates """ - templateID: ID - templateIDNEQ: ID - templateIDIn: [ID!] - templateIDNotIn: [ID!] - templateIDGT: ID - templateIDGTE: ID - templateIDLT: ID - templateIDLTE: ID - templateIDContains: ID - templateIDHasPrefix: ID - templateIDHasSuffix: ID - templateIDEqualFold: ID - templateIDContainsFold: ID + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - owner edge predicates + status field predicates """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - template edge predicates + control_objective_type field predicates + """ + controlObjectiveType: String + controlObjectiveTypeNEQ: String + controlObjectiveTypeIn: [String!] + controlObjectiveTypeNotIn: [String!] + controlObjectiveTypeGT: String + controlObjectiveTypeGTE: String + controlObjectiveTypeLT: String + controlObjectiveTypeLTE: String + controlObjectiveTypeContains: String + controlObjectiveTypeHasPrefix: String + controlObjectiveTypeHasSuffix: String + controlObjectiveTypeIsNil: Boolean + controlObjectiveTypeNotNil: Boolean + controlObjectiveTypeEqualFold: String + controlObjectiveTypeContainsFold: String """ - hasTemplate: Boolean - hasTemplateWith: [TemplateWhereInput!] + version field predicates """ - entity edge predicates + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - hasEntity: Boolean - hasEntityWith: [EntityWhereInput!] + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + policy edge predicates + """ + hasPolicy: Boolean + hasPolicyWith: [InternalPolicyWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] +} +""" +ControlWhereInput is used for filtering Control objects. +Input was generated by ent. +""" +input ControlWhereInput { + not: ControlWhereInput + and: [ControlWhereInput!] + or: [ControlWhereInput!] """ - files edge predicates + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] -} -type Entitlement implements Node { - id: ID! createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ updatedAt: Time - createdBy: String - updatedBy: String + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - tags associated with the object + created_by field predicates """ - tags: [String!] - deletedAt: Time - deletedBy: String + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - the organization id that owns the object + updated_by field predicates """ - ownerID: ID + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - the plan to which the entitlement belongs + deleted_at field predicates """ - planID: ID! + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - the organization to which the entitlement belongs + deleted_by field predicates """ - organizationID: ID! + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - used to store references to external systems, e.g. Stripe + name field predicates """ - externalCustomerID: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - used to store references to external systems, e.g. Stripe + description field predicates """ - externalSubscriptionID: String + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - whether or not the customers entitlement expires - expires_at will show the time + status field predicates """ - expires: Boolean! + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + control_type field predicates + """ + controlType: String + controlTypeNEQ: String + controlTypeIn: [String!] + controlTypeNotIn: [String!] + controlTypeGT: String + controlTypeGTE: String + controlTypeLT: String + controlTypeLTE: String + controlTypeContains: String + controlTypeHasPrefix: String + controlTypeHasSuffix: String + controlTypeIsNil: Boolean + controlTypeNotNil: Boolean + controlTypeEqualFold: String + controlTypeContainsFold: String """ - expiresAt: Time + version field predicates """ - whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - cancelled: Boolean! - owner: Organization - plan: EntitlementPlan! - organization: Organization! - events: [Event!] + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + controlobjectives edge predicates + """ + hasControlobjectives: Boolean + hasControlobjectivesWith: [ControlObjectiveWhereInput!] + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + actionplans edge predicates + """ + hasActionplans: Boolean + hasActionplansWith: [ActionPlanWhereInput!] } """ -A connection to a list of items. +CreateAPITokenInput is used for create APIToken object. +Input was generated by ent. """ -type EntitlementConnection { +input CreateAPITokenInput { """ - A list of edges. + tags associated with the object """ - edges: [EntitlementEdge] + tags: [String!] """ - Information to aid in pagination. + the name associated with the token """ - pageInfo: PageInfo! + name: String! """ - Identifies the total count of items in the connection. + when the token expires """ - totalCount: Int! + expiresAt: Time + """ + a description of the token's purpose + """ + description: String + scopes: [String!] + lastUsedAt: Time + ownerID: ID } """ -An edge in a connection. +CreateActionPlanInput is used for create ActionPlan object. +Input was generated by ent. """ -type EntitlementEdge { +input CreateActionPlanInput { """ - The item at the end of the edge. + tags associated with the object """ - node: Entitlement + tags: [String!] """ - A cursor for use in pagination. + the name of the action plan """ - cursor: Cursor! -} -type EntitlementHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntitlementHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String + name: String! """ - tags associated with the object + description of the action plan """ - tags: [String!] - deletedAt: Time - deletedBy: String + description: String """ - the organization id that owns the object + status of the action plan """ - ownerID: String + status: String """ - the plan to which the entitlement belongs + due date of the action plan """ - planID: String! + dueDate: Time """ - the organization to which the entitlement belongs + priority of the action plan """ - organizationID: String! + priority: String """ - used to store references to external systems, e.g. Stripe + source of the action plan """ - externalCustomerID: String + source: String """ - used to store references to external systems, e.g. Stripe + json data including details of the action plan """ - externalSubscriptionID: String + details: Map + standardIDs: [ID!] + riskIDs: [ID!] + controlIDs: [ID!] + userIDs: [ID!] +} +""" +CreateContactInput is used for create Contact object. +Input was generated by ent. +""" +input CreateContactInput { """ - whether or not the customers entitlement expires - expires_at will show the time + tags associated with the object """ - expires: Boolean! + tags: [String!] """ - the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + the full name of the contact """ - expiresAt: Time + fullName: String! """ - whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + the title of the contact """ - cancelled: Boolean! -} -""" -A connection to a list of items. -""" -type EntitlementHistoryConnection { + title: String """ - A list of edges. + the company of the contact """ - edges: [EntitlementHistoryEdge] + company: String """ - Information to aid in pagination. + the email of the contact """ - pageInfo: PageInfo! + email: String """ - Identifies the total count of items in the connection. + the phone number of the contact """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntitlementHistoryEdge { + phoneNumber: String """ - The item at the end of the edge. + the address of the contact """ - node: EntitlementHistory + address: String """ - A cursor for use in pagination. + status of the contact """ - cursor: Cursor! -} -""" -EntitlementHistoryOpType is enum for the field operation -""" -enum EntitlementHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE + status: ContactUserStatus + ownerID: ID + entityIDs: [ID!] + fileIDs: [ID!] } """ -EntitlementHistoryWhereInput is used for filtering EntitlementHistory objects. +CreateControlInput is used for create Control object. Input was generated by ent. """ -input EntitlementHistoryWhereInput { - not: EntitlementHistoryWhereInput - and: [EntitlementHistoryWhereInput!] - or: [EntitlementHistoryWhereInput!] +input CreateControlInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - history_time field predicates + the name of the control """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time + name: String! """ - ref field predicates + description of the control """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String + description: String """ - operation field predicates + status of the control """ - operation: EntitlementHistoryOpType - operationNEQ: EntitlementHistoryOpType - operationIn: [EntitlementHistoryOpType!] - operationNotIn: [EntitlementHistoryOpType!] + status: String """ - created_at field predicates + type of the control """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + controlType: String """ - updated_at field predicates + version of the control """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + version: String """ - created_by field predicates + control number or identifier """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + controlNumber: String """ - updated_by field predicates + family associated with the control """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + family: String """ - deleted_at field predicates + class associated with the control """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + class: String """ - deleted_by field predicates + source of the control, e.g. framework, template, custom, etc. """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + source: String """ - owner_id field predicates + which control objectives are satisfied by the control """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + satisfies: String """ - plan_id field predicates + mapped frameworks """ - planID: String - planIDNEQ: String - planIDIn: [String!] - planIDNotIn: [String!] - planIDGT: String - planIDGTE: String - planIDLT: String - planIDLTE: String - planIDContains: String - planIDHasPrefix: String - planIDHasSuffix: String - planIDEqualFold: String - planIDContainsFold: String + mappedFrameworks: String """ - organization_id field predicates + json data including details of the control """ - organizationID: String - organizationIDNEQ: String - organizationIDIn: [String!] - organizationIDNotIn: [String!] - organizationIDGT: String - organizationIDGTE: String - organizationIDLT: String - organizationIDLTE: String - organizationIDContains: String - organizationIDHasPrefix: String - organizationIDHasSuffix: String - organizationIDEqualFold: String - organizationIDContainsFold: String + details: Map + procedureIDs: [ID!] + subcontrolIDs: [ID!] + controlobjectiveIDs: [ID!] + standardIDs: [ID!] + narrativeIDs: [ID!] + riskIDs: [ID!] + actionplanIDs: [ID!] +} +""" +CreateControlObjectiveInput is used for create ControlObjective object. +Input was generated by ent. +""" +input CreateControlObjectiveInput { """ - external_customer_id field predicates + tags associated with the object """ - externalCustomerID: String - externalCustomerIDNEQ: String - externalCustomerIDIn: [String!] - externalCustomerIDNotIn: [String!] - externalCustomerIDGT: String - externalCustomerIDGTE: String - externalCustomerIDLT: String - externalCustomerIDLTE: String - externalCustomerIDContains: String - externalCustomerIDHasPrefix: String - externalCustomerIDHasSuffix: String - externalCustomerIDIsNil: Boolean - externalCustomerIDNotNil: Boolean - externalCustomerIDEqualFold: String - externalCustomerIDContainsFold: String + tags: [String!] """ - external_subscription_id field predicates + the name of the control objective """ - externalSubscriptionID: String - externalSubscriptionIDNEQ: String - externalSubscriptionIDIn: [String!] - externalSubscriptionIDNotIn: [String!] - externalSubscriptionIDGT: String - externalSubscriptionIDGTE: String - externalSubscriptionIDLT: String - externalSubscriptionIDLTE: String - externalSubscriptionIDContains: String - externalSubscriptionIDHasPrefix: String - externalSubscriptionIDHasSuffix: String - externalSubscriptionIDIsNil: Boolean - externalSubscriptionIDNotNil: Boolean - externalSubscriptionIDEqualFold: String - externalSubscriptionIDContainsFold: String + name: String! """ - expires field predicates + description of the control objective """ - expires: Boolean - expiresNEQ: Boolean + description: String """ - expires_at field predicates + status of the control objective """ - expiresAt: Time - expiresAtNEQ: Time - expiresAtIn: [Time!] - expiresAtNotIn: [Time!] - expiresAtGT: Time - expiresAtGTE: Time - expiresAtLT: Time - expiresAtLTE: Time - expiresAtIsNil: Boolean - expiresAtNotNil: Boolean + status: String """ - cancelled field predicates + type of the control objective """ - cancelled: Boolean - cancelledNEQ: Boolean -} -type EntitlementPlan implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String + controlObjectiveType: String """ - tags associated with the object + version of the control objective """ - tags: [String!] + version: String """ - the organization id that owns the object + number of the control objective """ - ownerID: ID + controlNumber: String """ - the displayed 'friendly' name of the plan + family of the control objective """ - displayName: String + family: String """ - the unique name of the plan + class associated with the control objective """ - name: String! + class: String """ - a description of the plan + source of the control objective, e.g. framework, template, user-defined, etc. """ - description: String + source: String """ - the version of the plan + mapped frameworks """ - version: String! + mappedFrameworks: String """ - metadata for the plan + json data including details of the control objective """ - metadata: Map - owner: Organization - entitlements: [Entitlement!] - baseFeatures: [Feature!] - events: [Event!] - features: [EntitlementPlanFeature!] + details: Map + policyIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + riskIDs: [ID!] + subcontrolIDs: [ID!] + standardIDs: [ID!] + narrativeIDs: [ID!] } """ -A connection to a list of items. +CreateDocumentDataInput is used for create DocumentData object. +Input was generated by ent. """ -type EntitlementPlanConnection { - """ - A list of edges. - """ - edges: [EntitlementPlanEdge] +input CreateDocumentDataInput { """ - Information to aid in pagination. + tags associated with the object """ - pageInfo: PageInfo! + tags: [String!] """ - Identifies the total count of items in the connection. + the json data of the document """ - totalCount: Int! + data: JSON! + ownerID: ID + templateID: ID! + entityIDs: [ID!] + fileIDs: [ID!] } """ -An edge in a connection. +CreateEntitlementInput is used for create Entitlement object. +Input was generated by ent. """ -type EntitlementPlanEdge { +input CreateEntitlementInput { """ - The item at the end of the edge. + tags associated with the object """ - node: EntitlementPlan + tags: [String!] """ - A cursor for use in pagination. + used to store references to external systems, e.g. Stripe """ - cursor: Cursor! -} -type EntitlementPlanFeature implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String + externalCustomerID: String """ - tags associated with the object + used to store references to external systems, e.g. Stripe """ - tags: [String!] + externalSubscriptionID: String """ - the organization id that owns the object + the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + """ + expiresAt: Time """ + whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + """ + cancelled: Boolean ownerID: ID + planID: ID! + organizationID: ID! + eventIDs: [ID!] +} +""" +CreateEntitlementPlanFeatureInput is used for create EntitlementPlanFeature object. +Input was generated by ent. +""" +input CreateEntitlementPlanFeatureInput { + """ + tags associated with the object + """ + tags: [String!] """ metadata for the entitlement plan feature such as usage limits """ metadata: Map + ownerID: ID planID: ID! featureID: ID! - owner: Organization - plan: EntitlementPlan! - feature: Feature! - events: [Event!] + eventIDs: [ID!] } """ -A connection to a list of items. +CreateEntitlementPlanInput is used for create EntitlementPlan object. +Input was generated by ent. """ -type EntitlementPlanFeatureConnection { +input CreateEntitlementPlanInput { """ - A list of edges. + tags associated with the object """ - edges: [EntitlementPlanFeatureEdge] + tags: [String!] """ - Information to aid in pagination. + the displayed 'friendly' name of the plan """ - pageInfo: PageInfo! + displayName: String """ - Identifies the total count of items in the connection. + the unique name of the plan """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntitlementPlanFeatureEdge { + name: String! """ - The item at the end of the edge. + a description of the plan """ - node: EntitlementPlanFeature + description: String """ - A cursor for use in pagination. + the version of the plan """ - cursor: Cursor! + version: String! + """ + metadata for the plan + """ + metadata: Map + ownerID: ID + entitlementIDs: [ID!] + baseFeatureIDs: [ID!] + eventIDs: [ID!] } -type EntitlementPlanFeatureHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntitlementPlanFeatureHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String +""" +CreateEntityInput is used for create Entity object. +Input was generated by ent. +""" +input CreateEntityInput { """ tags associated with the object """ tags: [String!] """ - the organization id that owns the object + the name of the entity """ - ownerID: String + name: String """ - metadata for the entitlement plan feature such as usage limits + The entity's displayed 'friendly' name """ - metadata: Map - planID: String! - featureID: String! -} -""" -A connection to a list of items. -""" -type EntitlementPlanFeatureHistoryConnection { + displayName: String """ - A list of edges. + An optional description of the entity """ - edges: [EntitlementPlanFeatureHistoryEdge] + description: String """ - Information to aid in pagination. + domains associated with the entity """ - pageInfo: PageInfo! + domains: [String!] """ - Identifies the total count of items in the connection. + status of the entity """ - totalCount: Int! + status: String + ownerID: ID + contactIDs: [ID!] + documentIDs: [ID!] + noteIDs: [ID!] + fileIDs: [ID!] + entityTypeID: ID } """ -An edge in a connection. +CreateEntityTypeInput is used for create EntityType object. +Input was generated by ent. """ -type EntitlementPlanFeatureHistoryEdge { +input CreateEntityTypeInput { """ - The item at the end of the edge. + tags associated with the object """ - node: EntitlementPlanFeatureHistory + tags: [String!] """ - A cursor for use in pagination. + the name of the entity """ - cursor: Cursor! + name: String! + ownerID: ID + entityIDs: [ID!] } """ -EntitlementPlanFeatureHistoryOpType is enum for the field operation +CreateEventInput is used for create Event object. +Input was generated by ent. """ -enum EntitlementPlanFeatureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE +input CreateEventInput { + """ + tags associated with the object + """ + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map + userIDs: [ID!] + groupIDs: [ID!] + integrationIDs: [ID!] + organizationIDs: [ID!] + inviteIDs: [ID!] + featureIDs: [ID!] + entitlementplanIDs: [ID!] + personalAccessTokenIDs: [ID!] + oauth2tokenIDs: [ID!] + hushIDs: [ID!] + entitlementIDs: [ID!] + webhookIDs: [ID!] + subscriberIDs: [ID!] + fileIDs: [ID!] } """ -EntitlementPlanFeatureHistoryWhereInput is used for filtering EntitlementPlanFeatureHistory objects. +CreateFeatureInput is used for create Feature object. Input was generated by ent. """ -input EntitlementPlanFeatureHistoryWhereInput { - not: EntitlementPlanFeatureHistoryWhereInput - and: [EntitlementPlanFeatureHistoryWhereInput!] - or: [EntitlementPlanFeatureHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID +input CreateFeatureInput { """ - history_time field predicates + tags associated with the object """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time + tags: [String!] """ - ref field predicates + the unique name of the feature """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String + name: String! """ - operation field predicates + the displayed 'friendly' name of the feature """ - operation: EntitlementPlanFeatureHistoryOpType - operationNEQ: EntitlementPlanFeatureHistoryOpType - operationIn: [EntitlementPlanFeatureHistoryOpType!] - operationNotIn: [EntitlementPlanFeatureHistoryOpType!] + displayName: String """ - created_at field predicates + enabled features are available for use """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + enabled: Boolean """ - updated_at field predicates + a description of the feature """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + description: String """ - created_by field predicates + metadata for the feature """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + metadata: Map + ownerID: ID + planIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateFileInput is used for create File object. +Input was generated by ent. +""" +input CreateFileInput { """ - updated_by field predicates + tags associated with the object """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + tags: [String!] """ - deleted_at field predicates + the name of the file provided in the payload key without the extension """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + providedFileName: String! """ - deleted_by field predicates + the extension of the file provided """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + providedFileExtension: String! """ - owner_id field predicates + the computed size of the file in the original http request """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + providedFileSize: Int + persistedFileSize: Int """ - plan_id field predicates + the mime type detected by the system """ - planID: String - planIDNEQ: String - planIDIn: [String!] - planIDNotIn: [String!] - planIDGT: String - planIDGTE: String - planIDLT: String - planIDLTE: String - planIDContains: String - planIDHasPrefix: String - planIDHasSuffix: String - planIDEqualFold: String - planIDContainsFold: String + detectedMimeType: String """ - feature_id field predicates + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage """ - featureID: String - featureIDNEQ: String - featureIDIn: [String!] - featureIDNotIn: [String!] - featureIDGT: String - featureIDGTE: String - featureIDLT: String - featureIDLTE: String - featureIDContains: String - featureIDHasPrefix: String - featureIDHasSuffix: String - featureIDEqualFold: String - featureIDContainsFold: String -} -""" -EntitlementPlanFeatureWhereInput is used for filtering EntitlementPlanFeature objects. -Input was generated by ent. -""" -input EntitlementPlanFeatureWhereInput { - not: EntitlementPlanFeatureWhereInput - and: [EntitlementPlanFeatureWhereInput!] - or: [EntitlementPlanFeatureWhereInput!] + md5Hash: String """ - id field predicates + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + detectedContentType: String! """ - created_at field predicates + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + storeKey: String """ - updated_at field predicates + the category type of the file, if any (e.g. evidence, invoice, etc.) """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + categoryType: String """ - created_by field predicates + the full URI of the file """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + uri: String """ - updated_by field predicates + the storage scheme of the file, e.g. file://, s3://, etc. """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + storageScheme: String """ - deleted_at field predicates + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + storageVolume: String """ - deleted_by field predicates + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + storagePath: String + userIDs: [ID!] + organizationIDs: [ID!] + groupIDs: [ID!] + contactIDs: [ID!] + entityIDs: [ID!] + usersettingIDs: [ID!] + organizationsettingIDs: [ID!] + templateIDs: [ID!] + documentdatumIDs: [ID!] + eventIDs: [ID!] } -type EntitlementPlanHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntitlementPlanHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String +""" +CreateGroupInput is used for create Group object. +Input was generated by ent. +""" +input CreateGroupInput { """ tags associated with the object """ tags: [String!] """ - the organization id that owns the object - """ - ownerID: String - """ - the displayed 'friendly' name of the plan - """ - displayName: String - """ - the unique name of the plan + the name of the group - must be unique within the organization """ name: String! """ - a description of the plan + the groups description """ description: String """ - the version of the plan + the URL to an auto generated gravatar image for the group """ - version: String! + gravatarLogoURL: String """ - metadata for the plan + the URL to an image uploaded by the customer for the groups avatar image """ - metadata: Map + logoURL: String + """ + The group's displayed 'friendly' name + """ + displayName: String + ownerID: ID + settingID: ID! + userIDs: [ID!] + eventIDs: [ID!] + integrationIDs: [ID!] + fileIDs: [ID!] } """ -A connection to a list of items. +CreateGroupMembershipInput is used for create GroupMembership object. +Input was generated by ent. """ -type EntitlementPlanHistoryConnection { +input CreateGroupMembershipInput { + role: GroupMembershipRole + groupID: ID! + userID: ID! + eventIDs: [ID!] +} +""" +CreateGroupSettingInput is used for create GroupSetting object. +Input was generated by ent. +""" +input CreateGroupSettingInput { """ - A list of edges. + tags associated with the object """ - edges: [EntitlementPlanHistoryEdge] + tags: [String!] """ - Information to aid in pagination. + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization """ - pageInfo: PageInfo! + visibility: GroupSettingVisibility """ - Identifies the total count of items in the connection. + the policy governing ability to freely join a group, whether it requires an invitation, application, or either """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntitlementPlanHistoryEdge { + joinPolicy: GroupSettingJoinPolicy """ - The item at the end of the edge. + whether to sync group members to slack groups """ - node: EntitlementPlanHistory + syncToSlack: Boolean """ - A cursor for use in pagination. + whether to sync group members to github groups """ - cursor: Cursor! -} -""" -EntitlementPlanHistoryOpType is enum for the field operation -""" -enum EntitlementPlanHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE + syncToGithub: Boolean + groupID: ID } """ -EntitlementPlanHistoryWhereInput is used for filtering EntitlementPlanHistory objects. +CreateHushInput is used for create Hush object. Input was generated by ent. """ -input EntitlementPlanHistoryWhereInput { - not: EntitlementPlanHistoryWhereInput - and: [EntitlementPlanHistoryWhereInput!] - or: [EntitlementPlanHistoryWhereInput!] +input CreateHushInput { """ - id field predicates + the logical name of the corresponding hush secret or it's general grouping + """ + name: String! + """ + a description of the hush value or purpose, such as github PAT + """ + description: String + """ + the kind of secret, such as sshkey, certificate, api token, etc. + """ + kind: String + """ + the generic name of a secret associated with the organization + """ + secretName: String + """ + the secret value + """ + secretValue: String + integrationIDs: [ID!] + organizationIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateIntegrationInput is used for create Integration object. +Input was generated by ent. +""" +input CreateIntegrationInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the integration - must be unique within the organization + """ + name: String! + """ + a description of the integration + """ + description: String + kind: String + ownerID: ID + secretIDs: [ID!] + oauth2tokenIDs: [ID!] + eventIDs: [ID!] + webhookIDs: [ID!] +} +""" +CreateInternalPolicyInput is used for create InternalPolicy object. +Input was generated by ent. +""" +input CreateInternalPolicyInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the policy + """ + name: String! + """ + description of the policy + """ + description: String! + """ + status of the policy + """ + status: String + """ + type of the policy + """ + policyType: String + """ + version of the policy + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the policy + """ + background: String + """ + json data for the policy document + """ + details: Map + controlobjectiveIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + narrativeIDs: [ID!] +} +""" +CreateInviteInput is used for create Invite object. +Input was generated by ent. +""" +input CreateInviteInput { + """ + the expiration date of the invitation token which defaults to 14 days in the future from creation + """ + expires: Time + """ + the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + """ + recipient: String! + """ + the status of the invitation + """ + status: InviteInviteStatus + role: InviteRole + """ + the number of attempts made to perform email send of the invitation, maximum of 5 + """ + sendAttempts: Int + """ + the user who initiated the invitation + """ + requestorID: String + ownerID: ID + eventIDs: [ID!] +} +""" +CreateNarrativeInput is used for create Narrative object. +Input was generated by ent. +""" +input CreateNarrativeInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the narrative + """ + name: String! + """ + the description of the narrative + """ + description: String + """ + which controls are satisfied by the narrative + """ + satisfies: String + """ + json data for the narrative document + """ + details: Map + policyIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + controlobjectiveIDs: [ID!] +} +""" +CreateNoteInput is used for create Note object. +Input was generated by ent. +""" +input CreateNoteInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the text of the note + """ + text: String! + ownerID: ID + entityID: ID + subcontrolIDs: [ID!] +} +""" +CreateOauthProviderInput is used for create OauthProvider object. +Input was generated by ent. +""" +input CreateOauthProviderInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the oauth provider's name + """ + name: String! + """ + the client id for the oauth provider + """ + clientID: String! + """ + the client secret + """ + clientSecret: String! + """ + the redirect url + """ + redirectURL: String! + """ + the scopes + """ + scopes: String! + """ + the auth url of the provider + """ + authURL: String! + """ + the token url of the provider + """ + tokenURL: String! + """ + the auth style, 0: auto detect 1: third party log in 2: log in with username and password + """ + authStyle: Uint! + """ + the URL to request user information by token + """ + infoURL: String! + ownerID: ID +} +""" +CreateOhAuthTooTokenInput is used for create OhAuthTooToken object. +Input was generated by ent. +""" +input CreateOhAuthTooTokenInput { + """ + tags associated with the object + """ + tags: [String!] + clientID: String! + scopes: [String!] + nonce: String! + claimsUserID: String! + claimsUsername: String! + claimsEmail: String! + claimsEmailVerified: Boolean! + claimsGroups: [String!] + claimsPreferredUsername: String! + connectorID: String! + connectorData: [String!] + lastUsed: Time + integrationIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateOrgMembershipInput is used for create OrgMembership object. +Input was generated by ent. +""" +input CreateOrgMembershipInput { + role: OrgMembershipRole + organizationID: ID! + userID: ID! + eventIDs: [ID!] +} +""" +CreateOrganizationInput is used for create Organization object. +Input was generated by ent. +""" +input CreateOrganizationInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the organization + """ + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean + parentID: ID + groupIDs: [ID!] + templateIDs: [ID!] + integrationIDs: [ID!] + settingID: ID + documentdatumIDs: [ID!] + entitlementIDs: [ID!] + organizationEntitlementIDs: [ID!] + personalAccessTokenIDs: [ID!] + apiTokenIDs: [ID!] + oauthproviderIDs: [ID!] + userIDs: [ID!] + inviteIDs: [ID!] + subscriberIDs: [ID!] + webhookIDs: [ID!] + eventIDs: [ID!] + secretIDs: [ID!] + featureIDs: [ID!] + fileIDs: [ID!] + entitlementplanIDs: [ID!] + entityIDs: [ID!] + entitytypeIDs: [ID!] + contactIDs: [ID!] + noteIDs: [ID!] +} +""" +CreateOrganizationSettingInput is used for create OrganizationSetting object. +Input was generated by ent. +""" +input CreateOrganizationSettingInput { + """ + tags associated with the object + """ + tags: [String!] + """ + domains associated with the organization + """ + domains: [String!] + """ + Name of the person to contact for billing + """ + billingContact: String + """ + Email address of the person to contact for billing + """ + billingEmail: String + """ + Phone number to contact for billing + """ + billingPhone: String + """ + Address to send billing information to + """ + billingAddress: String + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingRegion + organizationID: ID + fileIDs: [ID!] +} +""" +CreatePersonalAccessTokenInput is used for create PersonalAccessToken object. +Input was generated by ent. +""" +input CreatePersonalAccessTokenInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name associated with the token + """ + name: String! + """ + when the token expires + """ + expiresAt: Time + """ + a description of the token's purpose + """ + description: String + scopes: [String!] + lastUsedAt: Time + ownerID: ID! + organizationIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateProcedureInput is used for create Procedure object. +Input was generated by ent. +""" +input CreateProcedureInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the procedure + """ + name: String! + """ + description of the procedure + """ + description: String + """ + status of the procedure + """ + status: String + """ + type of the procedure + """ + procedureType: String + """ + version of the procedure + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map + controlIDs: [ID!] + internalpolicyIDs: [ID!] + narrativeIDs: [ID!] + riskIDs: [ID!] +} +""" +CreateRiskInput is used for create Risk object. +Input was generated by ent. +""" +input CreateRiskInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map + controlIDs: [ID!] + procedureIDs: [ID!] + actionplanIDs: [ID!] +} +""" +CreateStandardInput is used for create Standard object. +Input was generated by ent. +""" +input CreateStandardInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map + controlobjectiveIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + actionplanIDs: [ID!] +} +""" +CreateSubcontrolInput is used for create Subcontrol object. +Input was generated by ent. +""" +input CreateSubcontrolInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the subcontrol + """ + name: String! + """ + description of the subcontrol + """ + description: String + """ + status of the subcontrol + """ + status: String + """ + type of the subcontrol + """ + subcontrolType: String + """ + version of the control + """ + version: String + """ + number of the subcontrol + """ + subcontrolNumber: String + """ + subcontrol family + """ + family: String + """ + subcontrol class + """ + class: String + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + """ + implementation status + """ + implementationStatus: String + """ + date the subcontrol was implemented + """ + implementationDate: Time + """ + implementation verification + """ + implementationVerification: String + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + """ + json data details of the subcontrol + """ + details: Map + controlIDs: [ID!] + userIDs: [ID!] + notesID: ID +} +""" +CreateSubscriberInput is used for create Subscriber object. +Input was generated by ent. +""" +input CreateSubscriberInput { + """ + tags associated with the object + """ + tags: [String!] + """ + email address of the subscriber + """ + email: String! + """ + phone number of the subscriber + """ + phoneNumber: String + ownerID: ID + eventIDs: [ID!] +} +""" +CreateTFASettingInput is used for create TFASetting object. +Input was generated by ent. +""" +input CreateTFASettingInput { + """ + tags associated with the object + """ + tags: [String!] + """ + specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + """ + totpAllowed: Boolean + ownerID: ID +} +""" +CreateTemplateInput is used for create Template object. +Input was generated by ent. +""" +input CreateTemplateInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the template + """ + name: String! + """ + the type of the template, either a provided template or an implementation (document) + """ + templateType: TemplateDocumentType + """ + the description of the template + """ + description: String + """ + the jsonschema object of the template + """ + jsonconfig: JSON! + """ + the uischema for the template to render in the UI + """ + uischema: JSON + ownerID: ID + documentIDs: [ID!] + fileIDs: [ID!] +} +""" +CreateUserInput is used for create User object. +Input was generated by ent. +""" +input CreateUserInput { + """ + tags associated with the object + """ + tags: [String!] + email: String! + firstName: String + lastName: String + """ + The user's displayed 'friendly' name + """ + displayName: String! + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + The user's local avatar file + """ + avatarLocalFile: String + """ + The time the user's (local) avatar was last updated + """ + avatarUpdatedAt: Time + """ + the time the user was last seen + """ + lastSeen: Time + """ + user password hash + """ + password: String + """ + the Subject of the user JWT + """ + sub: String + """ + auth provider used to register the account + """ + authProvider: UserAuthProvider + """ + the user's role + """ + role: UserRole + personalAccessTokenIDs: [ID!] + tfaSettingIDs: [ID!] + settingID: ID! + emailVerificationTokenIDs: [ID!] + passwordResetTokenIDs: [ID!] + groupIDs: [ID!] + organizationIDs: [ID!] + webauthnIDs: [ID!] + fileIDs: [ID!] + fileID: ID + eventIDs: [ID!] + actionplanIDs: [ID!] + subcontrolIDs: [ID!] +} +""" +CreateUserSettingInput is used for create UserSetting object. +Input was generated by ent. +""" +input CreateUserSettingInput { + """ + tags associated with the object + """ + tags: [String!] + """ + user account is locked if unconfirmed or explicitly locked + """ + locked: Boolean + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + """ + The time the user was suspended + """ + suspendedAt: Time + """ + status of the user account + """ + status: UserSettingUserStatus + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean + userID: ID + defaultOrgID: ID + fileIDs: [ID!] +} +""" +CreateWebhookInput is used for create Webhook object. +Input was generated by ent. +""" +input CreateWebhookInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the webhook + """ + name: String! + """ + a description of the webhook + """ + description: String + """ + the url to send the webhook to + """ + destinationURL: String! + """ + indicates if the webhook is active and enabled + """ + enabled: Boolean + """ + the number of failures + """ + failures: Int + """ + the last error message + """ + lastError: String + """ + the last response + """ + lastResponse: String + ownerID: ID + eventIDs: [ID!] + integrationIDs: [ID!] +} +""" +Define a Relay Cursor type: +https://relay.dev/graphql/connections.htm#sec-Cursor +""" +scalar Cursor +type DocumentData implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the template id of the document + """ + templateID: ID! + """ + the json data of the document + """ + data: JSON! + owner: Organization + template: Template! + entity: [Entity!] + files: [File!] +} +""" +A connection to a list of items. +""" +type DocumentDataConnection { + """ + A list of edges. + """ + edges: [DocumentDataEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type DocumentDataEdge { + """ + The item at the end of the edge. + """ + node: DocumentData + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type DocumentDataHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: DocumentDataHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the template id of the document + """ + templateID: String! + """ + the json data of the document + """ + data: JSON! +} +""" +A connection to a list of items. +""" +type DocumentDataHistoryConnection { + """ + A list of edges. + """ + edges: [DocumentDataHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type DocumentDataHistoryEdge { + """ + The item at the end of the edge. + """ + node: DocumentDataHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +DocumentDataHistoryOpType is enum for the field operation +""" +enum DocumentDataHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +DocumentDataHistoryWhereInput is used for filtering DocumentDataHistory objects. +Input was generated by ent. +""" +input DocumentDataHistoryWhereInput { + not: DocumentDataHistoryWhereInput + and: [DocumentDataHistoryWhereInput!] + or: [DocumentDataHistoryWhereInput!] + """ + id field predicates """ id: ID idNEQ: ID @@ -20242,10 +27911,10 @@ input EntitlementPlanHistoryWhereInput { """ operation field predicates """ - operation: EntitlementPlanHistoryOpType - operationNEQ: EntitlementPlanHistoryOpType - operationIn: [EntitlementPlanHistoryOpType!] - operationNotIn: [EntitlementPlanHistoryOpType!] + operation: DocumentDataHistoryOpType + operationNEQ: DocumentDataHistoryOpType + operationIn: [DocumentDataHistoryOpType!] + operationNotIn: [DocumentDataHistoryOpType!] """ created_at field predicates """ @@ -20358,82 +28027,30 @@ input EntitlementPlanHistoryWhereInput { ownerIDEqualFold: String ownerIDContainsFold: String """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - version field predicates + template_id field predicates """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionEqualFold: String - versionContainsFold: String + templateID: String + templateIDNEQ: String + templateIDIn: [String!] + templateIDNotIn: [String!] + templateIDGT: String + templateIDGTE: String + templateIDLT: String + templateIDLTE: String + templateIDContains: String + templateIDHasPrefix: String + templateIDHasSuffix: String + templateIDEqualFold: String + templateIDContainsFold: String } """ -EntitlementPlanWhereInput is used for filtering EntitlementPlan objects. +DocumentDataWhereInput is used for filtering DocumentData objects. Input was generated by ent. """ -input EntitlementPlanWhereInput { - not: EntitlementPlanWhereInput - and: [EntitlementPlanWhereInput!] - or: [EntitlementPlanWhereInput!] +input DocumentDataWhereInput { + not: DocumentDataWhereInput + and: [DocumentDataWhereInput!] + or: [DocumentDataWhereInput!] """ id field predicates """ @@ -20559,107 +28176,215 @@ input EntitlementPlanWhereInput { ownerIDEqualFold: ID ownerIDContainsFold: ID """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - version field predicates + template_id field predicates """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionEqualFold: String - versionContainsFold: String + templateID: ID + templateIDNEQ: ID + templateIDIn: [ID!] + templateIDNotIn: [ID!] + templateIDGT: ID + templateIDGTE: ID + templateIDLT: ID + templateIDLTE: ID + templateIDContains: ID + templateIDHasPrefix: ID + templateIDHasSuffix: ID + templateIDEqualFold: ID + templateIDContainsFold: ID """ owner edge predicates """ hasOwner: Boolean hasOwnerWith: [OrganizationWhereInput!] """ - entitlements edge predicates + template edge predicates """ - hasEntitlements: Boolean - hasEntitlementsWith: [EntitlementWhereInput!] + hasTemplate: Boolean + hasTemplateWith: [TemplateWhereInput!] """ - base_features edge predicates + entity edge predicates """ - hasBaseFeatures: Boolean - hasBaseFeaturesWith: [FeatureWhereInput!] + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] """ - events edge predicates + files edge predicates """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +type Entitlement implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String """ - features edge predicates + tags associated with the object """ - hasFeatures: Boolean - hasFeaturesWith: [EntitlementPlanFeatureWhereInput!] + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the plan to which the entitlement belongs + """ + planID: ID! + """ + the organization to which the entitlement belongs + """ + organizationID: ID! + """ + used to store references to external systems, e.g. Stripe + """ + externalCustomerID: String + """ + used to store references to external systems, e.g. Stripe + """ + externalSubscriptionID: String + """ + whether or not the customers entitlement expires - expires_at will show the time + """ + expires: Boolean! + """ + the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + """ + expiresAt: Time + """ + whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + """ + cancelled: Boolean! + owner: Organization + plan: EntitlementPlan! + organization: Organization! + events: [Event!] } """ -EntitlementWhereInput is used for filtering Entitlement objects. +A connection to a list of items. +""" +type EntitlementConnection { + """ + A list of edges. + """ + edges: [EntitlementEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type EntitlementEdge { + """ + The item at the end of the edge. + """ + node: Entitlement + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type EntitlementHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: EntitlementHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the plan to which the entitlement belongs + """ + planID: String! + """ + the organization to which the entitlement belongs + """ + organizationID: String! + """ + used to store references to external systems, e.g. Stripe + """ + externalCustomerID: String + """ + used to store references to external systems, e.g. Stripe + """ + externalSubscriptionID: String + """ + whether or not the customers entitlement expires - expires_at will show the time + """ + expires: Boolean! + """ + the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + """ + expiresAt: Time + """ + whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + """ + cancelled: Boolean! +} +""" +A connection to a list of items. +""" +type EntitlementHistoryConnection { + """ + A list of edges. + """ + edges: [EntitlementHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type EntitlementHistoryEdge { + """ + The item at the end of the edge. + """ + node: EntitlementHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +EntitlementHistoryOpType is enum for the field operation +""" +enum EntitlementHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +EntitlementHistoryWhereInput is used for filtering EntitlementHistory objects. Input was generated by ent. """ -input EntitlementWhereInput { - not: EntitlementWhereInput - and: [EntitlementWhereInput!] - or: [EntitlementWhereInput!] +input EntitlementHistoryWhereInput { + not: EntitlementHistoryWhereInput + and: [EntitlementHistoryWhereInput!] + or: [EntitlementHistoryWhereInput!] """ id field predicates """ @@ -20674,6 +28399,42 @@ input EntitlementWhereInput { idEqualFold: ID idContainsFold: ID """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: EntitlementHistoryOpType + operationNEQ: EntitlementHistoryOpType + operationIn: [EntitlementHistoryOpType!] + operationNotIn: [EntitlementHistoryOpType!] + """ created_at field predicates """ createdAt: Time @@ -20769,53 +28530,53 @@ input EntitlementWhereInput { """ owner_id field predicates """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String ownerIDIsNil: Boolean ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + ownerIDEqualFold: String + ownerIDContainsFold: String """ plan_id field predicates """ - planID: ID - planIDNEQ: ID - planIDIn: [ID!] - planIDNotIn: [ID!] - planIDGT: ID - planIDGTE: ID - planIDLT: ID - planIDLTE: ID - planIDContains: ID - planIDHasPrefix: ID - planIDHasSuffix: ID - planIDEqualFold: ID - planIDContainsFold: ID + planID: String + planIDNEQ: String + planIDIn: [String!] + planIDNotIn: [String!] + planIDGT: String + planIDGTE: String + planIDLT: String + planIDLTE: String + planIDContains: String + planIDHasPrefix: String + planIDHasSuffix: String + planIDEqualFold: String + planIDContainsFold: String """ organization_id field predicates """ - organizationID: ID - organizationIDNEQ: ID - organizationIDIn: [ID!] - organizationIDNotIn: [ID!] - organizationIDGT: ID - organizationIDGTE: ID - organizationIDLT: ID - organizationIDLTE: ID - organizationIDContains: ID - organizationIDHasPrefix: ID - organizationIDHasSuffix: ID - organizationIDEqualFold: ID - organizationIDContainsFold: ID + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDEqualFold: String + organizationIDContainsFold: String """ external_customer_id field predicates """ @@ -20875,28 +28636,8 @@ input EntitlementWhereInput { """ cancelled: Boolean cancelledNEQ: Boolean - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - plan edge predicates - """ - hasPlan: Boolean - hasPlanWith: [EntitlementPlanWhereInput!] - """ - organization edge predicates - """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] } -type Entity implements Node { +type EntitlementPlan implements Node { id: ID! createdAt: Time updatedAt: Time @@ -20913,44 +28654,39 @@ type Entity implements Node { """ ownerID: ID """ - the name of the entity - """ - name: String - """ - The entity's displayed 'friendly' name + the displayed 'friendly' name of the plan """ displayName: String """ - An optional description of the entity + the unique name of the plan """ - description: String + name: String! """ - domains associated with the entity + a description of the plan """ - domains: [String!] + description: String """ - The type of the entity + the version of the plan """ - entityTypeID: ID + version: String! """ - status of the entity + metadata for the plan """ - status: String + metadata: Map owner: Organization - contacts: [Contact!] - documents: [DocumentData!] - notes: [Note!] - files: [File!] - entityType: EntityType + entitlements: [Entitlement!] + baseFeatures: [Feature!] + events: [Event!] + features: [EntitlementPlanFeature!] } """ A connection to a list of items. """ -type EntityConnection { +type EntitlementPlanConnection { """ A list of edges. """ - edges: [EntityEdge] + edges: [EntitlementPlanEdge] """ Information to aid in pagination. """ @@ -20963,21 +28699,18 @@ type EntityConnection { """ An edge in a connection. """ -type EntityEdge { +type EntitlementPlanEdge { """ The item at the end of the edge. """ - node: Entity + node: EntitlementPlan """ A cursor for use in pagination. """ cursor: Cursor! } -type EntityHistory implements Node { +type EntitlementPlanFeature implements Node { id: ID! - historyTime: Time! - ref: String - operation: EntityHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -20991,40 +28724,82 @@ type EntityHistory implements Node { """ the organization id that owns the object """ - ownerID: String + ownerID: ID """ - the name of the entity + metadata for the entitlement plan feature such as usage limits """ - name: String + metadata: Map + planID: ID! + featureID: ID! + owner: Organization + plan: EntitlementPlan! + feature: Feature! + events: [Event!] +} +""" +A connection to a list of items. +""" +type EntitlementPlanFeatureConnection { """ - The entity's displayed 'friendly' name + A list of edges. """ - displayName: String + edges: [EntitlementPlanFeatureEdge] """ - An optional description of the entity + Information to aid in pagination. """ - description: String + pageInfo: PageInfo! """ - domains associated with the entity + Identifies the total count of items in the connection. """ - domains: [String!] + totalCount: Int! +} +""" +An edge in a connection. +""" +type EntitlementPlanFeatureEdge { """ - The type of the entity + The item at the end of the edge. """ - entityTypeID: String + node: EntitlementPlanFeature """ - status of the entity + A cursor for use in pagination. """ - status: String + cursor: Cursor! +} +type EntitlementPlanFeatureHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: EntitlementPlanFeatureHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + metadata for the entitlement plan feature such as usage limits + """ + metadata: Map + planID: String! + featureID: String! } """ A connection to a list of items. """ -type EntityHistoryConnection { +type EntitlementPlanFeatureHistoryConnection { """ A list of edges. """ - edges: [EntityHistoryEdge] + edges: [EntitlementPlanFeatureHistoryEdge] """ Information to aid in pagination. """ @@ -21037,52 +28812,32 @@ type EntityHistoryConnection { """ An edge in a connection. """ -type EntityHistoryEdge { +type EntitlementPlanFeatureHistoryEdge { """ The item at the end of the edge. """ - node: EntityHistory + node: EntitlementPlanFeatureHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -EntityHistoryOpType is enum for the field operation +EntitlementPlanFeatureHistoryOpType is enum for the field operation """ -enum EntityHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EntitlementPlanFeatureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -Ordering options for EntityHistory connections -""" -input EntityHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order EntityHistories. - """ - field: EntityHistoryOrderField! -} -""" -Properties by which EntityHistory connections can be ordered. -""" -enum EntityHistoryOrderField { - name - display_name -} -""" -EntityHistoryWhereInput is used for filtering EntityHistory objects. +EntitlementPlanFeatureHistoryWhereInput is used for filtering EntitlementPlanFeatureHistory objects. Input was generated by ent. """ -input EntityHistoryWhereInput { - not: EntityHistoryWhereInput - and: [EntityHistoryWhereInput!] - or: [EntityHistoryWhereInput!] +input EntitlementPlanFeatureHistoryWhereInput { + not: EntitlementPlanFeatureHistoryWhereInput + and: [EntitlementPlanFeatureHistoryWhereInput!] + or: [EntitlementPlanFeatureHistoryWhereInput!] """ id field predicates """ @@ -21128,10 +28883,10 @@ input EntityHistoryWhereInput { """ operation field predicates """ - operation: EntityHistoryOpType - operationNEQ: EntityHistoryOpType - operationIn: [EntityHistoryOpType!] - operationNotIn: [EntityHistoryOpType!] + operation: EntitlementPlanFeatureHistoryOpType + operationNEQ: EntitlementPlanFeatureHistoryOpType + operationIn: [EntitlementPlanFeatureHistoryOpType!] + operationNotIn: [EntitlementPlanFeatureHistoryOpType!] """ created_at field predicates """ @@ -21244,156 +28999,158 @@ input EntityHistoryWhereInput { ownerIDEqualFold: String ownerIDContainsFold: String """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameIsNil: Boolean - nameNotNil: Boolean - nameEqualFold: String - nameContainsFold: String - """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String - """ - entity_type_id field predicates + plan_id field predicates """ - entityTypeID: String - entityTypeIDNEQ: String - entityTypeIDIn: [String!] - entityTypeIDNotIn: [String!] - entityTypeIDGT: String - entityTypeIDGTE: String - entityTypeIDLT: String - entityTypeIDLTE: String - entityTypeIDContains: String - entityTypeIDHasPrefix: String - entityTypeIDHasSuffix: String - entityTypeIDIsNil: Boolean - entityTypeIDNotNil: Boolean - entityTypeIDEqualFold: String - entityTypeIDContainsFold: String + planID: String + planIDNEQ: String + planIDIn: [String!] + planIDNotIn: [String!] + planIDGT: String + planIDGTE: String + planIDLT: String + planIDLTE: String + planIDContains: String + planIDHasPrefix: String + planIDHasSuffix: String + planIDEqualFold: String + planIDContainsFold: String """ - status field predicates + feature_id field predicates """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String + featureID: String + featureIDNEQ: String + featureIDIn: [String!] + featureIDNotIn: [String!] + featureIDGT: String + featureIDGTE: String + featureIDLT: String + featureIDLTE: String + featureIDContains: String + featureIDHasPrefix: String + featureIDHasSuffix: String + featureIDEqualFold: String + featureIDContainsFold: String } """ -Ordering options for Entity connections +EntitlementPlanFeatureWhereInput is used for filtering EntitlementPlanFeature objects. +Input was generated by ent. """ -input EntityOrder { +input EntitlementPlanFeatureWhereInput { + not: EntitlementPlanFeatureWhereInput + and: [EntitlementPlanFeatureWhereInput!] + or: [EntitlementPlanFeatureWhereInput!] """ - The ordering direction. + id field predicates """ - direction: OrderDirection! = ASC + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - The field by which to order Entities. + created_at field predicates """ - field: EntityOrderField! -} -""" -Properties by which Entity connections can be ordered. -""" -enum EntityOrderField { - name - display_name -} -type EntityType implements Node { - id: ID! createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: ID - """ - the name of the entity - """ - name: String! - owner: Organization - entities: [Entity!] -} -""" -A connection to a list of items. -""" -type EntityTypeConnection { + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - A list of edges. + updated_at field predicates """ - edges: [EntityTypeEdge] + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - Information to aid in pagination. + created_by field predicates """ - pageInfo: PageInfo! + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - Identifies the total count of items in the connection. + updated_by field predicates """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntityTypeEdge { + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - The item at the end of the edge. + deleted_at field predicates """ - node: EntityType + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - A cursor for use in pagination. + deleted_by field predicates """ - cursor: Cursor! + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String } -type EntityTypeHistory implements Node { +type EntitlementPlanHistory implements Node { id: ID! historyTime: Time! ref: String - operation: EntityTypeHistoryOpType! + operation: EntitlementPlanHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -21409,18 +29166,34 @@ type EntityTypeHistory implements Node { """ ownerID: String """ - the name of the entity + the displayed 'friendly' name of the plan + """ + displayName: String + """ + the unique name of the plan """ name: String! + """ + a description of the plan + """ + description: String + """ + the version of the plan + """ + version: String! + """ + metadata for the plan + """ + metadata: Map } """ A connection to a list of items. """ -type EntityTypeHistoryConnection { +type EntitlementPlanHistoryConnection { """ A list of edges. """ - edges: [EntityTypeHistoryEdge] + edges: [EntitlementPlanHistoryEdge] """ Information to aid in pagination. """ @@ -21433,51 +29206,32 @@ type EntityTypeHistoryConnection { """ An edge in a connection. """ -type EntityTypeHistoryEdge { +type EntitlementPlanHistoryEdge { """ The item at the end of the edge. """ - node: EntityTypeHistory + node: EntitlementPlanHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -EntityTypeHistoryOpType is enum for the field operation +EntitlementPlanHistoryOpType is enum for the field operation """ -enum EntityTypeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EntitlementPlanHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -Ordering options for EntityTypeHistory connections -""" -input EntityTypeHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order EntityTypeHistories. - """ - field: EntityTypeHistoryOrderField! -} -""" -Properties by which EntityTypeHistory connections can be ordered. -""" -enum EntityTypeHistoryOrderField { - name -} -""" -EntityTypeHistoryWhereInput is used for filtering EntityTypeHistory objects. +EntitlementPlanHistoryWhereInput is used for filtering EntitlementPlanHistory objects. Input was generated by ent. """ -input EntityTypeHistoryWhereInput { - not: EntityTypeHistoryWhereInput - and: [EntityTypeHistoryWhereInput!] - or: [EntityTypeHistoryWhereInput!] +input EntitlementPlanHistoryWhereInput { + not: EntitlementPlanHistoryWhereInput + and: [EntitlementPlanHistoryWhereInput!] + or: [EntitlementPlanHistoryWhereInput!] """ id field predicates """ @@ -21523,10 +29277,10 @@ input EntityTypeHistoryWhereInput { """ operation field predicates """ - operation: EntityTypeHistoryOpType - operationNEQ: EntityTypeHistoryOpType - operationIn: [EntityTypeHistoryOpType!] - operationNotIn: [EntityTypeHistoryOpType!] + operation: EntitlementPlanHistoryOpType + operationNEQ: EntitlementPlanHistoryOpType + operationIn: [EntitlementPlanHistoryOpType!] + operationNotIn: [EntitlementPlanHistoryOpType!] """ created_at field predicates """ @@ -21639,6 +29393,24 @@ input EntityTypeHistoryWhereInput { ownerIDEqualFold: String ownerIDContainsFold: String """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String + """ name field predicates """ name: String @@ -21654,34 +29426,49 @@ input EntityTypeHistoryWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String -} -""" -Ordering options for EntityType connections -""" -input EntityTypeOrder { """ - The ordering direction. + description field predicates """ - direction: OrderDirection! = ASC + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - The field by which to order EntityTypes. + version field predicates """ - field: EntityTypeOrderField! -} -""" -Properties by which EntityType connections can be ordered. -""" -enum EntityTypeOrderField { - name + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionEqualFold: String + versionContainsFold: String } """ -EntityTypeWhereInput is used for filtering EntityType objects. +EntitlementPlanWhereInput is used for filtering EntitlementPlan objects. Input was generated by ent. """ -input EntityTypeWhereInput { - not: EntityTypeWhereInput - and: [EntityTypeWhereInput!] - or: [EntityTypeWhereInput!] +input EntitlementPlanWhereInput { + not: EntitlementPlanWhereInput + and: [EntitlementPlanWhereInput!] + or: [EntitlementPlanWhereInput!] """ id field predicates """ @@ -21807,6 +29594,24 @@ input EntityTypeWhereInput { ownerIDEqualFold: ID ownerIDContainsFold: ID """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String + """ name field predicates """ name: String @@ -21823,24 +29628,73 @@ input EntityTypeWhereInput { nameEqualFold: String nameContainsFold: String """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionEqualFold: String + versionContainsFold: String + """ owner edge predicates """ hasOwner: Boolean hasOwnerWith: [OrganizationWhereInput!] """ - entities edge predicates + entitlements edge predicates """ - hasEntities: Boolean - hasEntitiesWith: [EntityWhereInput!] + hasEntitlements: Boolean + hasEntitlementsWith: [EntitlementWhereInput!] + """ + base_features edge predicates + """ + hasBaseFeatures: Boolean + hasBaseFeaturesWith: [FeatureWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + features edge predicates + """ + hasFeatures: Boolean + hasFeaturesWith: [EntitlementPlanFeatureWhereInput!] } """ -EntityWhereInput is used for filtering Entity objects. +EntitlementWhereInput is used for filtering Entitlement objects. Input was generated by ent. """ -input EntityWhereInput { - not: EntityWhereInput - and: [EntityWhereInput!] - or: [EntityWhereInput!] +input EntitlementWhereInput { + not: EntitlementWhereInput + and: [EntitlementWhereInput!] + or: [EntitlementWhereInput!] """ id field predicates """ @@ -21966,148 +29820,172 @@ input EntityWhereInput { ownerIDEqualFold: ID ownerIDContainsFold: ID """ - name field predicates + plan_id field predicates """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameIsNil: Boolean - nameNotNil: Boolean - nameEqualFold: String - nameContainsFold: String + planID: ID + planIDNEQ: ID + planIDIn: [ID!] + planIDNotIn: [ID!] + planIDGT: ID + planIDGTE: ID + planIDLT: ID + planIDLTE: ID + planIDContains: ID + planIDHasPrefix: ID + planIDHasSuffix: ID + planIDEqualFold: ID + planIDContainsFold: ID """ - display_name field predicates + organization_id field predicates """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String + organizationID: ID + organizationIDNEQ: ID + organizationIDIn: [ID!] + organizationIDNotIn: [ID!] + organizationIDGT: ID + organizationIDGTE: ID + organizationIDLT: ID + organizationIDLTE: ID + organizationIDContains: ID + organizationIDHasPrefix: ID + organizationIDHasSuffix: ID + organizationIDEqualFold: ID + organizationIDContainsFold: ID """ - entity_type_id field predicates + external_customer_id field predicates """ - entityTypeID: ID - entityTypeIDNEQ: ID - entityTypeIDIn: [ID!] - entityTypeIDNotIn: [ID!] - entityTypeIDGT: ID - entityTypeIDGTE: ID - entityTypeIDLT: ID - entityTypeIDLTE: ID - entityTypeIDContains: ID - entityTypeIDHasPrefix: ID - entityTypeIDHasSuffix: ID - entityTypeIDIsNil: Boolean - entityTypeIDNotNil: Boolean - entityTypeIDEqualFold: ID - entityTypeIDContainsFold: ID + externalCustomerID: String + externalCustomerIDNEQ: String + externalCustomerIDIn: [String!] + externalCustomerIDNotIn: [String!] + externalCustomerIDGT: String + externalCustomerIDGTE: String + externalCustomerIDLT: String + externalCustomerIDLTE: String + externalCustomerIDContains: String + externalCustomerIDHasPrefix: String + externalCustomerIDHasSuffix: String + externalCustomerIDIsNil: Boolean + externalCustomerIDNotNil: Boolean + externalCustomerIDEqualFold: String + externalCustomerIDContainsFold: String """ - status field predicates + external_subscription_id field predicates """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String + externalSubscriptionID: String + externalSubscriptionIDNEQ: String + externalSubscriptionIDIn: [String!] + externalSubscriptionIDNotIn: [String!] + externalSubscriptionIDGT: String + externalSubscriptionIDGTE: String + externalSubscriptionIDLT: String + externalSubscriptionIDLTE: String + externalSubscriptionIDContains: String + externalSubscriptionIDHasPrefix: String + externalSubscriptionIDHasSuffix: String + externalSubscriptionIDIsNil: Boolean + externalSubscriptionIDNotNil: Boolean + externalSubscriptionIDEqualFold: String + externalSubscriptionIDContainsFold: String """ - owner edge predicates + expires field predicates """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + expires: Boolean + expiresNEQ: Boolean """ - contacts edge predicates + expires_at field predicates """ - hasContacts: Boolean - hasContactsWith: [ContactWhereInput!] + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean """ - documents edge predicates + cancelled field predicates """ - hasDocuments: Boolean - hasDocumentsWith: [DocumentDataWhereInput!] + cancelled: Boolean + cancelledNEQ: Boolean """ - notes edge predicates + owner edge predicates """ - hasNotes: Boolean - hasNotesWith: [NoteWhereInput!] + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - files edge predicates + plan edge predicates """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] + hasPlan: Boolean + hasPlanWith: [EntitlementPlanWhereInput!] """ - entity_type edge predicates + organization edge predicates """ - hasEntityType: Boolean - hasEntityTypeWith: [EntityTypeWhereInput!] + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] } -type Event implements Node { +type Entity implements Node { id: ID! createdAt: Time updatedAt: Time createdBy: String updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] - eventID: String - correlationID: String - eventType: String! - metadata: Map - user: [User!] - group: [Group!] - integration: [Integration!] - organization: [Organization!] - invite: [Invite!] - feature: [Feature!] - entitlementplan: [EntitlementPlan!] - entitlementplanfeature: [EntitlementPlanFeature!] - personalAccessToken: [PersonalAccessToken!] - oauth2token: [OhAuthTooToken!] - hush: [Hush!] - orgmembership: [OrgMembership!] - groupmembership: [GroupMembership!] - entitlement: [Entitlement!] - webhook: [Webhook!] - subscriber: [Subscriber!] - file: [File!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the entity + """ + name: String + """ + The entity's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the entity + """ + description: String + """ + domains associated with the entity + """ + domains: [String!] + """ + The type of the entity + """ + entityTypeID: ID + """ + status of the entity + """ + status: String + owner: Organization + contacts: [Contact!] + documents: [DocumentData!] + notes: [Note!] + files: [File!] + entityType: EntityType } """ A connection to a list of items. """ -type EventConnection { +type EntityConnection { """ A list of edges. """ - edges: [EventEdge] + edges: [EntityEdge] """ Information to aid in pagination. """ @@ -22120,42 +29998,68 @@ type EventConnection { """ An edge in a connection. """ -type EventEdge { +type EntityEdge { """ The item at the end of the edge. """ - node: Event + node: Entity """ A cursor for use in pagination. """ cursor: Cursor! } -type EventHistory implements Node { +type EntityHistory implements Node { id: ID! historyTime: Time! ref: String - operation: EventHistoryOpType! + operation: EntityHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] - eventID: String - correlationID: String - eventType: String! - metadata: Map + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the entity + """ + name: String + """ + The entity's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the entity + """ + description: String + """ + domains associated with the entity + """ + domains: [String!] + """ + The type of the entity + """ + entityTypeID: String + """ + status of the entity + """ + status: String } """ A connection to a list of items. """ -type EventHistoryConnection { +type EntityHistoryConnection { """ A list of edges. """ - edges: [EventHistoryEdge] + edges: [EntityHistoryEdge] """ Information to aid in pagination. """ @@ -22168,32 +30072,52 @@ type EventHistoryConnection { """ An edge in a connection. """ -type EventHistoryEdge { +type EntityHistoryEdge { """ The item at the end of the edge. """ - node: EventHistory + node: EntityHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -EventHistoryOpType is enum for the field operation +EntityHistoryOpType is enum for the field operation """ -enum EventHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EntityHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -EventHistoryWhereInput is used for filtering EventHistory objects. +Ordering options for EntityHistory connections +""" +input EntityHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order EntityHistories. + """ + field: EntityHistoryOrderField! +} +""" +Properties by which EntityHistory connections can be ordered. +""" +enum EntityHistoryOrderField { + name + display_name +} +""" +EntityHistoryWhereInput is used for filtering EntityHistory objects. Input was generated by ent. """ -input EventHistoryWhereInput { - not: EventHistoryWhereInput - and: [EventHistoryWhereInput!] - or: [EventHistoryWhereInput!] +input EntityHistoryWhereInput { + not: EntityHistoryWhereInput + and: [EntityHistoryWhereInput!] + or: [EntityHistoryWhereInput!] """ id field predicates """ @@ -22239,146 +30163,10 @@ input EventHistoryWhereInput { """ operation field predicates """ - operation: EventHistoryOpType - operationNEQ: EventHistoryOpType - operationIn: [EventHistoryOpType!] - operationNotIn: [EventHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - event_id field predicates - """ - eventID: String - eventIDNEQ: String - eventIDIn: [String!] - eventIDNotIn: [String!] - eventIDGT: String - eventIDGTE: String - eventIDLT: String - eventIDLTE: String - eventIDContains: String - eventIDHasPrefix: String - eventIDHasSuffix: String - eventIDIsNil: Boolean - eventIDNotNil: Boolean - eventIDEqualFold: String - eventIDContainsFold: String - """ - correlation_id field predicates - """ - correlationID: String - correlationIDNEQ: String - correlationIDIn: [String!] - correlationIDNotIn: [String!] - correlationIDGT: String - correlationIDGTE: String - correlationIDLT: String - correlationIDLTE: String - correlationIDContains: String - correlationIDHasPrefix: String - correlationIDHasSuffix: String - correlationIDIsNil: Boolean - correlationIDNotNil: Boolean - correlationIDEqualFold: String - correlationIDContainsFold: String - """ - event_type field predicates - """ - eventType: String - eventTypeNEQ: String - eventTypeIn: [String!] - eventTypeNotIn: [String!] - eventTypeGT: String - eventTypeGTE: String - eventTypeLT: String - eventTypeLTE: String - eventTypeContains: String - eventTypeHasPrefix: String - eventTypeHasSuffix: String - eventTypeEqualFold: String - eventTypeContainsFold: String -} -""" -EventWhereInput is used for filtering Event objects. -Input was generated by ent. -""" -input EventWhereInput { - not: EventWhereInput - and: [EventWhereInput!] - or: [EventWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + operation: EntityHistoryOpType + operationNEQ: EntityHistoryOpType + operationIn: [EntityHistoryOpType!] + operationNotIn: [EntityHistoryOpType!] """ created_at field predicates """ @@ -22442,144 +30230,148 @@ input EventWhereInput { updatedByEqualFold: String updatedByContainsFold: String """ - event_id field predicates - """ - eventID: String - eventIDNEQ: String - eventIDIn: [String!] - eventIDNotIn: [String!] - eventIDGT: String - eventIDGTE: String - eventIDLT: String - eventIDLTE: String - eventIDContains: String - eventIDHasPrefix: String - eventIDHasSuffix: String - eventIDIsNil: Boolean - eventIDNotNil: Boolean - eventIDEqualFold: String - eventIDContainsFold: String - """ - correlation_id field predicates - """ - correlationID: String - correlationIDNEQ: String - correlationIDIn: [String!] - correlationIDNotIn: [String!] - correlationIDGT: String - correlationIDGTE: String - correlationIDLT: String - correlationIDLTE: String - correlationIDContains: String - correlationIDHasPrefix: String - correlationIDHasSuffix: String - correlationIDIsNil: Boolean - correlationIDNotNil: Boolean - correlationIDEqualFold: String - correlationIDContainsFold: String - """ - event_type field predicates - """ - eventType: String - eventTypeNEQ: String - eventTypeIn: [String!] - eventTypeNotIn: [String!] - eventTypeGT: String - eventTypeGTE: String - eventTypeLT: String - eventTypeLTE: String - eventTypeContains: String - eventTypeHasPrefix: String - eventTypeHasSuffix: String - eventTypeEqualFold: String - eventTypeContainsFold: String - """ - user edge predicates - """ - hasUser: Boolean - hasUserWith: [UserWhereInput!] - """ - group edge predicates - """ - hasGroup: Boolean - hasGroupWith: [GroupWhereInput!] - """ - integration edge predicates - """ - hasIntegration: Boolean - hasIntegrationWith: [IntegrationWhereInput!] - """ - organization edge predicates - """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] - """ - invite edge predicates - """ - hasInvite: Boolean - hasInviteWith: [InviteWhereInput!] - """ - feature edge predicates - """ - hasFeature: Boolean - hasFeatureWith: [FeatureWhereInput!] - """ - entitlementplan edge predicates - """ - hasEntitlementplan: Boolean - hasEntitlementplanWith: [EntitlementPlanWhereInput!] - """ - entitlementplanfeature edge predicates - """ - hasEntitlementplanfeature: Boolean - hasEntitlementplanfeatureWith: [EntitlementPlanFeatureWhereInput!] - """ - personal_access_token edge predicates + deleted_at field predicates """ - hasPersonalAccessToken: Boolean - hasPersonalAccessTokenWith: [PersonalAccessTokenWhereInput!] + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - oauth2token edge predicates + deleted_by field predicates """ - hasOauth2token: Boolean - hasOauth2tokenWith: [OhAuthTooTokenWhereInput!] + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - hush edge predicates + owner_id field predicates """ - hasHush: Boolean - hasHushWith: [HushWhereInput!] + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ - orgmembership edge predicates + name field predicates """ - hasOrgmembership: Boolean - hasOrgmembershipWith: [OrgMembershipWhereInput!] + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameIsNil: Boolean + nameNotNil: Boolean + nameEqualFold: String + nameContainsFold: String """ - groupmembership edge predicates + display_name field predicates """ - hasGroupmembership: Boolean - hasGroupmembershipWith: [GroupMembershipWhereInput!] + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String """ - entitlement edge predicates + entity_type_id field predicates """ - hasEntitlement: Boolean - hasEntitlementWith: [EntitlementWhereInput!] + entityTypeID: String + entityTypeIDNEQ: String + entityTypeIDIn: [String!] + entityTypeIDNotIn: [String!] + entityTypeIDGT: String + entityTypeIDGTE: String + entityTypeIDLT: String + entityTypeIDLTE: String + entityTypeIDContains: String + entityTypeIDHasPrefix: String + entityTypeIDHasSuffix: String + entityTypeIDIsNil: Boolean + entityTypeIDNotNil: Boolean + entityTypeIDEqualFold: String + entityTypeIDContainsFold: String """ - webhook edge predicates + status field predicates """ - hasWebhook: Boolean - hasWebhookWith: [WebhookWhereInput!] + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String +} +""" +Ordering options for Entity connections +""" +input EntityOrder { """ - subscriber edge predicates + The ordering direction. """ - hasSubscriber: Boolean - hasSubscriberWith: [SubscriberWhereInput!] + direction: OrderDirection! = ASC """ - file edge predicates + The field by which to order Entities. """ - hasFile: Boolean - hasFileWith: [FileWhereInput!] + field: EntityOrderField! } -type Feature implements Node { +""" +Properties by which Entity connections can be ordered. +""" +enum EntityOrderField { + name + display_name +} +type EntityType implements Node { id: ID! createdAt: Time updatedAt: Time @@ -22596,38 +30388,20 @@ type Feature implements Node { """ ownerID: ID """ - the unique name of the feature + the name of the entity """ name: String! - """ - the displayed 'friendly' name of the feature - """ - displayName: String - """ - enabled features are available for use - """ - enabled: Boolean! - """ - a description of the feature - """ - description: String - """ - metadata for the feature - """ - metadata: Map owner: Organization - plans: [EntitlementPlan!] - events: [Event!] - features: [EntitlementPlanFeature!] + entities: [Entity!] } """ A connection to a list of items. """ -type FeatureConnection { +type EntityTypeConnection { """ A list of edges. """ - edges: [FeatureEdge] + edges: [EntityTypeEdge] """ Information to aid in pagination. """ @@ -22640,21 +30414,21 @@ type FeatureConnection { """ An edge in a connection. """ -type FeatureEdge { +type EntityTypeEdge { """ The item at the end of the edge. """ - node: Feature + node: EntityType """ A cursor for use in pagination. """ cursor: Cursor! } -type FeatureHistory implements Node { +type EntityTypeHistory implements Node { id: ID! historyTime: Time! ref: String - operation: FeatureHistoryOpType! + operation: EntityTypeHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -22670,34 +30444,18 @@ type FeatureHistory implements Node { """ ownerID: String """ - the unique name of the feature + the name of the entity """ name: String! - """ - the displayed 'friendly' name of the feature - """ - displayName: String - """ - enabled features are available for use - """ - enabled: Boolean! - """ - a description of the feature - """ - description: String - """ - metadata for the feature - """ - metadata: Map } """ A connection to a list of items. """ -type FeatureHistoryConnection { +type EntityTypeHistoryConnection { """ A list of edges. """ - edges: [FeatureHistoryEdge] + edges: [EntityTypeHistoryEdge] """ Information to aid in pagination. """ @@ -22710,32 +30468,51 @@ type FeatureHistoryConnection { """ An edge in a connection. """ -type FeatureHistoryEdge { +type EntityTypeHistoryEdge { """ The item at the end of the edge. """ - node: FeatureHistory + node: EntityTypeHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -FeatureHistoryOpType is enum for the field operation +EntityTypeHistoryOpType is enum for the field operation """ -enum FeatureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EntityTypeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -FeatureHistoryWhereInput is used for filtering FeatureHistory objects. +Ordering options for EntityTypeHistory connections +""" +input EntityTypeHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order EntityTypeHistories. + """ + field: EntityTypeHistoryOrderField! +} +""" +Properties by which EntityTypeHistory connections can be ordered. +""" +enum EntityTypeHistoryOrderField { + name +} +""" +EntityTypeHistoryWhereInput is used for filtering EntityTypeHistory objects. Input was generated by ent. """ -input FeatureHistoryWhereInput { - not: FeatureHistoryWhereInput - and: [FeatureHistoryWhereInput!] - or: [FeatureHistoryWhereInput!] +input EntityTypeHistoryWhereInput { + not: EntityTypeHistoryWhereInput + and: [EntityTypeHistoryWhereInput!] + or: [EntityTypeHistoryWhereInput!] """ id field predicates """ @@ -22781,10 +30558,10 @@ input FeatureHistoryWhereInput { """ operation field predicates """ - operation: FeatureHistoryOpType - operationNEQ: FeatureHistoryOpType - operationIn: [FeatureHistoryOpType!] - operationNotIn: [FeatureHistoryOpType!] + operation: EntityTypeHistoryOpType + operationNEQ: EntityTypeHistoryOpType + operationIn: [EntityTypeHistoryOpType!] + operationNotIn: [EntityTypeHistoryOpType!] """ created_at field predicates """ @@ -22912,56 +30689,193 @@ input FeatureHistoryWhereInput { nameHasSuffix: String nameEqualFold: String nameContainsFold: String +} +""" +Ordering options for EntityType connections +""" +input EntityTypeOrder { """ - display_name field predicates + The ordering direction. """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String + direction: OrderDirection! = ASC """ - enabled field predicates + The field by which to order EntityTypes. """ - enabled: Boolean - enabledNEQ: Boolean + field: EntityTypeOrderField! +} +""" +Properties by which EntityType connections can be ordered. +""" +enum EntityTypeOrderField { + name +} +""" +EntityTypeWhereInput is used for filtering EntityType objects. +Input was generated by ent. +""" +input EntityTypeWhereInput { + not: EntityTypeWhereInput + and: [EntityTypeWhereInput!] + or: [EntityTypeWhereInput!] """ - description field predicates + id field predicates """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + entities edge predicates + """ + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] } """ -FeatureWhereInput is used for filtering Feature objects. +EntityWhereInput is used for filtering Entity objects. Input was generated by ent. """ -input FeatureWhereInput { - not: FeatureWhereInput - and: [FeatureWhereInput!] - or: [FeatureWhereInput!] +input EntityWhereInput { + not: EntityWhereInput + and: [EntityWhereInput!] + or: [EntityWhereInput!] """ id field predicates """ @@ -23100,6 +31014,8 @@ input FeatureWhereInput { nameContains: String nameHasPrefix: String nameHasSuffix: String + nameIsNil: Boolean + nameNotNil: Boolean nameEqualFold: String nameContainsFold: String """ @@ -23121,129 +31037,112 @@ input FeatureWhereInput { displayNameEqualFold: String displayNameContainsFold: String """ - enabled field predicates + entity_type_id field predicates """ - enabled: Boolean - enabledNEQ: Boolean + entityTypeID: ID + entityTypeIDNEQ: ID + entityTypeIDIn: [ID!] + entityTypeIDNotIn: [ID!] + entityTypeIDGT: ID + entityTypeIDGTE: ID + entityTypeIDLT: ID + entityTypeIDLTE: ID + entityTypeIDContains: ID + entityTypeIDHasPrefix: ID + entityTypeIDHasSuffix: ID + entityTypeIDIsNil: Boolean + entityTypeIDNotNil: Boolean + entityTypeIDEqualFold: ID + entityTypeIDContainsFold: ID """ - description field predicates + status field predicates """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ owner edge predicates """ hasOwner: Boolean hasOwnerWith: [OrganizationWhereInput!] """ - plans edge predicates + contacts edge predicates """ - hasPlans: Boolean - hasPlansWith: [EntitlementPlanWhereInput!] + hasContacts: Boolean + hasContactsWith: [ContactWhereInput!] """ - events edge predicates + documents edge predicates """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + hasDocuments: Boolean + hasDocumentsWith: [DocumentDataWhereInput!] """ - features edge predicates + notes edge predicates """ - hasFeatures: Boolean - hasFeaturesWith: [EntitlementPlanFeatureWhereInput!] -} -type File implements Node { + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + entity_type edge predicates + """ + hasEntityType: Boolean + hasEntityTypeWith: [EntityTypeWhereInput!] +} +type Event implements Node { id: ID! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - deletedAt: Time - deletedBy: String """ tags associated with the object """ tags: [String!] - """ - the name of the file provided in the payload key without the extension - """ - providedFileName: String! - """ - the extension of the file provided - """ - providedFileExtension: String! - """ - the computed size of the file in the original http request - """ - providedFileSize: Int - persistedFileSize: Int - """ - the mime type detected by the system - """ - detectedMimeType: String - """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage - """ - md5Hash: String - """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types - """ - detectedContentType: String! - """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key - """ - storeKey: String - """ - the category type of the file, if any (e.g. evidence, invoice, etc.) - """ - categoryType: String - """ - the full URI of the file - """ - uri: String - """ - the storage scheme of the file, e.g. file://, s3://, etc. - """ - storageScheme: String - """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping - """ - storageVolume: String - """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty - """ - storagePath: String + eventID: String + correlationID: String + eventType: String! + metadata: Map user: [User!] - organization: [Organization!] group: [Group!] - contact: [Contact!] - entity: [Entity!] - usersetting: [UserSetting!] - organizationsetting: [OrganizationSetting!] - template: [Template!] - documentdata: [DocumentData!] - events: [Event!] + integration: [Integration!] + organization: [Organization!] + invite: [Invite!] + feature: [Feature!] + entitlementplan: [EntitlementPlan!] + entitlementplanfeature: [EntitlementPlanFeature!] + personalAccessToken: [PersonalAccessToken!] + oauth2token: [OhAuthTooToken!] + hush: [Hush!] + orgmembership: [OrgMembership!] + groupmembership: [GroupMembership!] + entitlement: [Entitlement!] + webhook: [Webhook!] + subscriber: [Subscriber!] + file: [File!] } """ A connection to a list of items. """ -type FileConnection { +type EventConnection { """ A list of edges. """ - edges: [FileEdge] + edges: [EventEdge] """ Information to aid in pagination. """ @@ -23256,89 +31155,42 @@ type FileConnection { """ An edge in a connection. """ -type FileEdge { +type EventEdge { """ The item at the end of the edge. """ - node: File + node: Event """ A cursor for use in pagination. """ cursor: Cursor! } -type FileHistory implements Node { +type EventHistory implements Node { id: ID! historyTime: Time! ref: String - operation: FileHistoryOpType! + operation: EventHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - deletedAt: Time - deletedBy: String """ tags associated with the object """ tags: [String!] - """ - the name of the file provided in the payload key without the extension - """ - providedFileName: String! - """ - the extension of the file provided - """ - providedFileExtension: String! - """ - the computed size of the file in the original http request - """ - providedFileSize: Int - persistedFileSize: Int - """ - the mime type detected by the system - """ - detectedMimeType: String - """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage - """ - md5Hash: String - """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types - """ - detectedContentType: String! - """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key - """ - storeKey: String - """ - the category type of the file, if any (e.g. evidence, invoice, etc.) - """ - categoryType: String - """ - the full URI of the file - """ - uri: String - """ - the storage scheme of the file, e.g. file://, s3://, etc. - """ - storageScheme: String - """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping - """ - storageVolume: String - """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty - """ - storagePath: String + eventID: String + correlationID: String + eventType: String! + metadata: Map } """ A connection to a list of items. """ -type FileHistoryConnection { +type EventHistoryConnection { """ A list of edges. """ - edges: [FileHistoryEdge] + edges: [EventHistoryEdge] """ Information to aid in pagination. """ @@ -23351,32 +31203,32 @@ type FileHistoryConnection { """ An edge in a connection. """ -type FileHistoryEdge { +type EventHistoryEdge { """ The item at the end of the edge. """ - node: FileHistory + node: EventHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -FileHistoryOpType is enum for the field operation +EventHistoryOpType is enum for the field operation """ -enum FileHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EventHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -FileHistoryWhereInput is used for filtering FileHistory objects. +EventHistoryWhereInput is used for filtering EventHistory objects. Input was generated by ent. """ -input FileHistoryWhereInput { - not: FileHistoryWhereInput - and: [FileHistoryWhereInput!] - or: [FileHistoryWhereInput!] +input EventHistoryWhereInput { + not: EventHistoryWhereInput + and: [EventHistoryWhereInput!] + or: [EventHistoryWhereInput!] """ id field predicates """ @@ -23422,10 +31274,10 @@ input FileHistoryWhereInput { """ operation field predicates """ - operation: FileHistoryOpType - operationNEQ: FileHistoryOpType - operationIn: [FileHistoryOpType!] - operationNotIn: [FileHistoryOpType!] + operation: EventHistoryOpType + operationNEQ: EventHistoryOpType + operationIn: [EventHistoryOpType!] + operationNotIn: [EventHistoryOpType!] """ created_at field predicates """ @@ -23489,263 +31341,66 @@ input FileHistoryWhereInput { updatedByEqualFold: String updatedByContainsFold: String """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - provided_file_name field predicates - """ - providedFileName: String - providedFileNameNEQ: String - providedFileNameIn: [String!] - providedFileNameNotIn: [String!] - providedFileNameGT: String - providedFileNameGTE: String - providedFileNameLT: String - providedFileNameLTE: String - providedFileNameContains: String - providedFileNameHasPrefix: String - providedFileNameHasSuffix: String - providedFileNameEqualFold: String - providedFileNameContainsFold: String - """ - provided_file_extension field predicates - """ - providedFileExtension: String - providedFileExtensionNEQ: String - providedFileExtensionIn: [String!] - providedFileExtensionNotIn: [String!] - providedFileExtensionGT: String - providedFileExtensionGTE: String - providedFileExtensionLT: String - providedFileExtensionLTE: String - providedFileExtensionContains: String - providedFileExtensionHasPrefix: String - providedFileExtensionHasSuffix: String - providedFileExtensionEqualFold: String - providedFileExtensionContainsFold: String - """ - provided_file_size field predicates - """ - providedFileSize: Int - providedFileSizeNEQ: Int - providedFileSizeIn: [Int!] - providedFileSizeNotIn: [Int!] - providedFileSizeGT: Int - providedFileSizeGTE: Int - providedFileSizeLT: Int - providedFileSizeLTE: Int - providedFileSizeIsNil: Boolean - providedFileSizeNotNil: Boolean - """ - persisted_file_size field predicates - """ - persistedFileSize: Int - persistedFileSizeNEQ: Int - persistedFileSizeIn: [Int!] - persistedFileSizeNotIn: [Int!] - persistedFileSizeGT: Int - persistedFileSizeGTE: Int - persistedFileSizeLT: Int - persistedFileSizeLTE: Int - persistedFileSizeIsNil: Boolean - persistedFileSizeNotNil: Boolean - """ - detected_mime_type field predicates - """ - detectedMimeType: String - detectedMimeTypeNEQ: String - detectedMimeTypeIn: [String!] - detectedMimeTypeNotIn: [String!] - detectedMimeTypeGT: String - detectedMimeTypeGTE: String - detectedMimeTypeLT: String - detectedMimeTypeLTE: String - detectedMimeTypeContains: String - detectedMimeTypeHasPrefix: String - detectedMimeTypeHasSuffix: String - detectedMimeTypeIsNil: Boolean - detectedMimeTypeNotNil: Boolean - detectedMimeTypeEqualFold: String - detectedMimeTypeContainsFold: String - """ - md5_hash field predicates - """ - md5Hash: String - md5HashNEQ: String - md5HashIn: [String!] - md5HashNotIn: [String!] - md5HashGT: String - md5HashGTE: String - md5HashLT: String - md5HashLTE: String - md5HashContains: String - md5HashHasPrefix: String - md5HashHasSuffix: String - md5HashIsNil: Boolean - md5HashNotNil: Boolean - md5HashEqualFold: String - md5HashContainsFold: String - """ - detected_content_type field predicates - """ - detectedContentType: String - detectedContentTypeNEQ: String - detectedContentTypeIn: [String!] - detectedContentTypeNotIn: [String!] - detectedContentTypeGT: String - detectedContentTypeGTE: String - detectedContentTypeLT: String - detectedContentTypeLTE: String - detectedContentTypeContains: String - detectedContentTypeHasPrefix: String - detectedContentTypeHasSuffix: String - detectedContentTypeEqualFold: String - detectedContentTypeContainsFold: String - """ - store_key field predicates - """ - storeKey: String - storeKeyNEQ: String - storeKeyIn: [String!] - storeKeyNotIn: [String!] - storeKeyGT: String - storeKeyGTE: String - storeKeyLT: String - storeKeyLTE: String - storeKeyContains: String - storeKeyHasPrefix: String - storeKeyHasSuffix: String - storeKeyIsNil: Boolean - storeKeyNotNil: Boolean - storeKeyEqualFold: String - storeKeyContainsFold: String - """ - category_type field predicates - """ - categoryType: String - categoryTypeNEQ: String - categoryTypeIn: [String!] - categoryTypeNotIn: [String!] - categoryTypeGT: String - categoryTypeGTE: String - categoryTypeLT: String - categoryTypeLTE: String - categoryTypeContains: String - categoryTypeHasPrefix: String - categoryTypeHasSuffix: String - categoryTypeIsNil: Boolean - categoryTypeNotNil: Boolean - categoryTypeEqualFold: String - categoryTypeContainsFold: String - """ - uri field predicates - """ - uri: String - uriNEQ: String - uriIn: [String!] - uriNotIn: [String!] - uriGT: String - uriGTE: String - uriLT: String - uriLTE: String - uriContains: String - uriHasPrefix: String - uriHasSuffix: String - uriIsNil: Boolean - uriNotNil: Boolean - uriEqualFold: String - uriContainsFold: String - """ - storage_scheme field predicates + event_id field predicates """ - storageScheme: String - storageSchemeNEQ: String - storageSchemeIn: [String!] - storageSchemeNotIn: [String!] - storageSchemeGT: String - storageSchemeGTE: String - storageSchemeLT: String - storageSchemeLTE: String - storageSchemeContains: String - storageSchemeHasPrefix: String - storageSchemeHasSuffix: String - storageSchemeIsNil: Boolean - storageSchemeNotNil: Boolean - storageSchemeEqualFold: String - storageSchemeContainsFold: String + eventID: String + eventIDNEQ: String + eventIDIn: [String!] + eventIDNotIn: [String!] + eventIDGT: String + eventIDGTE: String + eventIDLT: String + eventIDLTE: String + eventIDContains: String + eventIDHasPrefix: String + eventIDHasSuffix: String + eventIDIsNil: Boolean + eventIDNotNil: Boolean + eventIDEqualFold: String + eventIDContainsFold: String """ - storage_volume field predicates + correlation_id field predicates """ - storageVolume: String - storageVolumeNEQ: String - storageVolumeIn: [String!] - storageVolumeNotIn: [String!] - storageVolumeGT: String - storageVolumeGTE: String - storageVolumeLT: String - storageVolumeLTE: String - storageVolumeContains: String - storageVolumeHasPrefix: String - storageVolumeHasSuffix: String - storageVolumeIsNil: Boolean - storageVolumeNotNil: Boolean - storageVolumeEqualFold: String - storageVolumeContainsFold: String + correlationID: String + correlationIDNEQ: String + correlationIDIn: [String!] + correlationIDNotIn: [String!] + correlationIDGT: String + correlationIDGTE: String + correlationIDLT: String + correlationIDLTE: String + correlationIDContains: String + correlationIDHasPrefix: String + correlationIDHasSuffix: String + correlationIDIsNil: Boolean + correlationIDNotNil: Boolean + correlationIDEqualFold: String + correlationIDContainsFold: String """ - storage_path field predicates + event_type field predicates """ - storagePath: String - storagePathNEQ: String - storagePathIn: [String!] - storagePathNotIn: [String!] - storagePathGT: String - storagePathGTE: String - storagePathLT: String - storagePathLTE: String - storagePathContains: String - storagePathHasPrefix: String - storagePathHasSuffix: String - storagePathIsNil: Boolean - storagePathNotNil: Boolean - storagePathEqualFold: String - storagePathContainsFold: String + eventType: String + eventTypeNEQ: String + eventTypeIn: [String!] + eventTypeNotIn: [String!] + eventTypeGT: String + eventTypeGTE: String + eventTypeLT: String + eventTypeLTE: String + eventTypeContains: String + eventTypeHasPrefix: String + eventTypeHasSuffix: String + eventTypeEqualFold: String + eventTypeContainsFold: String } """ -FileWhereInput is used for filtering File objects. +EventWhereInput is used for filtering Event objects. Input was generated by ent. """ -input FileWhereInput { - not: FileWhereInput - and: [FileWhereInput!] - or: [FileWhereInput!] +input EventWhereInput { + not: EventWhereInput + and: [EventWhereInput!] + or: [EventWhereInput!] """ id field predicates """ @@ -23822,306 +31477,144 @@ input FileWhereInput { updatedByEqualFold: String updatedByContainsFold: String """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - provided_file_name field predicates - """ - providedFileName: String - providedFileNameNEQ: String - providedFileNameIn: [String!] - providedFileNameNotIn: [String!] - providedFileNameGT: String - providedFileNameGTE: String - providedFileNameLT: String - providedFileNameLTE: String - providedFileNameContains: String - providedFileNameHasPrefix: String - providedFileNameHasSuffix: String - providedFileNameEqualFold: String - providedFileNameContainsFold: String - """ - provided_file_extension field predicates - """ - providedFileExtension: String - providedFileExtensionNEQ: String - providedFileExtensionIn: [String!] - providedFileExtensionNotIn: [String!] - providedFileExtensionGT: String - providedFileExtensionGTE: String - providedFileExtensionLT: String - providedFileExtensionLTE: String - providedFileExtensionContains: String - providedFileExtensionHasPrefix: String - providedFileExtensionHasSuffix: String - providedFileExtensionEqualFold: String - providedFileExtensionContainsFold: String - """ - provided_file_size field predicates - """ - providedFileSize: Int - providedFileSizeNEQ: Int - providedFileSizeIn: [Int!] - providedFileSizeNotIn: [Int!] - providedFileSizeGT: Int - providedFileSizeGTE: Int - providedFileSizeLT: Int - providedFileSizeLTE: Int - providedFileSizeIsNil: Boolean - providedFileSizeNotNil: Boolean - """ - persisted_file_size field predicates + event_id field predicates """ - persistedFileSize: Int - persistedFileSizeNEQ: Int - persistedFileSizeIn: [Int!] - persistedFileSizeNotIn: [Int!] - persistedFileSizeGT: Int - persistedFileSizeGTE: Int - persistedFileSizeLT: Int - persistedFileSizeLTE: Int - persistedFileSizeIsNil: Boolean - persistedFileSizeNotNil: Boolean + eventID: String + eventIDNEQ: String + eventIDIn: [String!] + eventIDNotIn: [String!] + eventIDGT: String + eventIDGTE: String + eventIDLT: String + eventIDLTE: String + eventIDContains: String + eventIDHasPrefix: String + eventIDHasSuffix: String + eventIDIsNil: Boolean + eventIDNotNil: Boolean + eventIDEqualFold: String + eventIDContainsFold: String """ - detected_mime_type field predicates + correlation_id field predicates """ - detectedMimeType: String - detectedMimeTypeNEQ: String - detectedMimeTypeIn: [String!] - detectedMimeTypeNotIn: [String!] - detectedMimeTypeGT: String - detectedMimeTypeGTE: String - detectedMimeTypeLT: String - detectedMimeTypeLTE: String - detectedMimeTypeContains: String - detectedMimeTypeHasPrefix: String - detectedMimeTypeHasSuffix: String - detectedMimeTypeIsNil: Boolean - detectedMimeTypeNotNil: Boolean - detectedMimeTypeEqualFold: String - detectedMimeTypeContainsFold: String + correlationID: String + correlationIDNEQ: String + correlationIDIn: [String!] + correlationIDNotIn: [String!] + correlationIDGT: String + correlationIDGTE: String + correlationIDLT: String + correlationIDLTE: String + correlationIDContains: String + correlationIDHasPrefix: String + correlationIDHasSuffix: String + correlationIDIsNil: Boolean + correlationIDNotNil: Boolean + correlationIDEqualFold: String + correlationIDContainsFold: String """ - md5_hash field predicates + event_type field predicates """ - md5Hash: String - md5HashNEQ: String - md5HashIn: [String!] - md5HashNotIn: [String!] - md5HashGT: String - md5HashGTE: String - md5HashLT: String - md5HashLTE: String - md5HashContains: String - md5HashHasPrefix: String - md5HashHasSuffix: String - md5HashIsNil: Boolean - md5HashNotNil: Boolean - md5HashEqualFold: String - md5HashContainsFold: String + eventType: String + eventTypeNEQ: String + eventTypeIn: [String!] + eventTypeNotIn: [String!] + eventTypeGT: String + eventTypeGTE: String + eventTypeLT: String + eventTypeLTE: String + eventTypeContains: String + eventTypeHasPrefix: String + eventTypeHasSuffix: String + eventTypeEqualFold: String + eventTypeContainsFold: String """ - detected_content_type field predicates + user edge predicates """ - detectedContentType: String - detectedContentTypeNEQ: String - detectedContentTypeIn: [String!] - detectedContentTypeNotIn: [String!] - detectedContentTypeGT: String - detectedContentTypeGTE: String - detectedContentTypeLT: String - detectedContentTypeLTE: String - detectedContentTypeContains: String - detectedContentTypeHasPrefix: String - detectedContentTypeHasSuffix: String - detectedContentTypeEqualFold: String - detectedContentTypeContainsFold: String + hasUser: Boolean + hasUserWith: [UserWhereInput!] """ - store_key field predicates + group edge predicates """ - storeKey: String - storeKeyNEQ: String - storeKeyIn: [String!] - storeKeyNotIn: [String!] - storeKeyGT: String - storeKeyGTE: String - storeKeyLT: String - storeKeyLTE: String - storeKeyContains: String - storeKeyHasPrefix: String - storeKeyHasSuffix: String - storeKeyIsNil: Boolean - storeKeyNotNil: Boolean - storeKeyEqualFold: String - storeKeyContainsFold: String + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] """ - category_type field predicates + integration edge predicates """ - categoryType: String - categoryTypeNEQ: String - categoryTypeIn: [String!] - categoryTypeNotIn: [String!] - categoryTypeGT: String - categoryTypeGTE: String - categoryTypeLT: String - categoryTypeLTE: String - categoryTypeContains: String - categoryTypeHasPrefix: String - categoryTypeHasSuffix: String - categoryTypeIsNil: Boolean - categoryTypeNotNil: Boolean - categoryTypeEqualFold: String - categoryTypeContainsFold: String + hasIntegration: Boolean + hasIntegrationWith: [IntegrationWhereInput!] """ - uri field predicates + organization edge predicates """ - uri: String - uriNEQ: String - uriIn: [String!] - uriNotIn: [String!] - uriGT: String - uriGTE: String - uriLT: String - uriLTE: String - uriContains: String - uriHasPrefix: String - uriHasSuffix: String - uriIsNil: Boolean - uriNotNil: Boolean - uriEqualFold: String - uriContainsFold: String + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] """ - storage_scheme field predicates + invite edge predicates """ - storageScheme: String - storageSchemeNEQ: String - storageSchemeIn: [String!] - storageSchemeNotIn: [String!] - storageSchemeGT: String - storageSchemeGTE: String - storageSchemeLT: String - storageSchemeLTE: String - storageSchemeContains: String - storageSchemeHasPrefix: String - storageSchemeHasSuffix: String - storageSchemeIsNil: Boolean - storageSchemeNotNil: Boolean - storageSchemeEqualFold: String - storageSchemeContainsFold: String + hasInvite: Boolean + hasInviteWith: [InviteWhereInput!] """ - storage_volume field predicates + feature edge predicates """ - storageVolume: String - storageVolumeNEQ: String - storageVolumeIn: [String!] - storageVolumeNotIn: [String!] - storageVolumeGT: String - storageVolumeGTE: String - storageVolumeLT: String - storageVolumeLTE: String - storageVolumeContains: String - storageVolumeHasPrefix: String - storageVolumeHasSuffix: String - storageVolumeIsNil: Boolean - storageVolumeNotNil: Boolean - storageVolumeEqualFold: String - storageVolumeContainsFold: String + hasFeature: Boolean + hasFeatureWith: [FeatureWhereInput!] """ - storage_path field predicates + entitlementplan edge predicates """ - storagePath: String - storagePathNEQ: String - storagePathIn: [String!] - storagePathNotIn: [String!] - storagePathGT: String - storagePathGTE: String - storagePathLT: String - storagePathLTE: String - storagePathContains: String - storagePathHasPrefix: String - storagePathHasSuffix: String - storagePathIsNil: Boolean - storagePathNotNil: Boolean - storagePathEqualFold: String - storagePathContainsFold: String + hasEntitlementplan: Boolean + hasEntitlementplanWith: [EntitlementPlanWhereInput!] """ - user edge predicates + entitlementplanfeature edge predicates """ - hasUser: Boolean - hasUserWith: [UserWhereInput!] + hasEntitlementplanfeature: Boolean + hasEntitlementplanfeatureWith: [EntitlementPlanFeatureWhereInput!] """ - organization edge predicates + personal_access_token edge predicates """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] + hasPersonalAccessToken: Boolean + hasPersonalAccessTokenWith: [PersonalAccessTokenWhereInput!] """ - group edge predicates + oauth2token edge predicates """ - hasGroup: Boolean - hasGroupWith: [GroupWhereInput!] + hasOauth2token: Boolean + hasOauth2tokenWith: [OhAuthTooTokenWhereInput!] """ - contact edge predicates + hush edge predicates """ - hasContact: Boolean - hasContactWith: [ContactWhereInput!] + hasHush: Boolean + hasHushWith: [HushWhereInput!] """ - entity edge predicates + orgmembership edge predicates """ - hasEntity: Boolean - hasEntityWith: [EntityWhereInput!] + hasOrgmembership: Boolean + hasOrgmembershipWith: [OrgMembershipWhereInput!] """ - usersetting edge predicates + groupmembership edge predicates """ - hasUsersetting: Boolean - hasUsersettingWith: [UserSettingWhereInput!] + hasGroupmembership: Boolean + hasGroupmembershipWith: [GroupMembershipWhereInput!] """ - organizationsetting edge predicates + entitlement edge predicates """ - hasOrganizationsetting: Boolean - hasOrganizationsettingWith: [OrganizationSettingWhereInput!] + hasEntitlement: Boolean + hasEntitlementWith: [EntitlementWhereInput!] """ - template edge predicates + webhook edge predicates """ - hasTemplate: Boolean - hasTemplateWith: [TemplateWhereInput!] + hasWebhook: Boolean + hasWebhookWith: [WebhookWhereInput!] """ - documentdata edge predicates + subscriber edge predicates """ - hasDocumentdata: Boolean - hasDocumentdataWith: [DocumentDataWhereInput!] + hasSubscriber: Boolean + hasSubscriberWith: [SubscriberWhereInput!] """ - events edge predicates + file edge predicates """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + hasFile: Boolean + hasFileWith: [FileWhereInput!] } -type Group implements Node { +type Feature implements Node { id: ID! createdAt: Time updatedAt: Time @@ -24138,41 +31631,38 @@ type Group implements Node { """ ownerID: ID """ - the name of the group - must be unique within the organization + the unique name of the feature """ name: String! """ - the groups description + the displayed 'friendly' name of the feature """ - description: String + displayName: String """ - the URL to an auto generated gravatar image for the group + enabled features are available for use """ - gravatarLogoURL: String + enabled: Boolean! """ - the URL to an image uploaded by the customer for the groups avatar image + a description of the feature """ - logoURL: String + description: String """ - The group's displayed 'friendly' name + metadata for the feature """ - displayName: String! + metadata: Map owner: Organization - setting: GroupSetting! - users: [User!] + plans: [EntitlementPlan!] events: [Event!] - integrations: [Integration!] - files: [File!] - members: [GroupMembership!] + features: [EntitlementPlanFeature!] } """ A connection to a list of items. """ -type GroupConnection { +type FeatureConnection { """ A list of edges. """ - edges: [GroupEdge] + edges: [FeatureEdge] """ Information to aid in pagination. """ @@ -24185,21 +31675,21 @@ type GroupConnection { """ An edge in a connection. """ -type GroupEdge { +type FeatureEdge { """ The item at the end of the edge. """ - node: Group + node: Feature """ A cursor for use in pagination. """ cursor: Cursor! } -type GroupHistory implements Node { +type FeatureHistory implements Node { id: ID! historyTime: Time! ref: String - operation: GroupHistoryOpType! + operation: FeatureHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -24215,34 +31705,34 @@ type GroupHistory implements Node { """ ownerID: String """ - the name of the group - must be unique within the organization + the unique name of the feature """ name: String! """ - the groups description + the displayed 'friendly' name of the feature """ - description: String + displayName: String """ - the URL to an auto generated gravatar image for the group + enabled features are available for use """ - gravatarLogoURL: String + enabled: Boolean! """ - the URL to an image uploaded by the customer for the groups avatar image + a description of the feature """ - logoURL: String + description: String """ - The group's displayed 'friendly' name + metadata for the feature """ - displayName: String! + metadata: Map } """ A connection to a list of items. """ -type GroupHistoryConnection { +type FeatureHistoryConnection { """ A list of edges. """ - edges: [GroupHistoryEdge] + edges: [FeatureHistoryEdge] """ Information to aid in pagination. """ @@ -24255,52 +31745,32 @@ type GroupHistoryConnection { """ An edge in a connection. """ -type GroupHistoryEdge { +type FeatureHistoryEdge { """ The item at the end of the edge. """ - node: GroupHistory + node: FeatureHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -GroupHistoryOpType is enum for the field operation +FeatureHistoryOpType is enum for the field operation """ -enum GroupHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum FeatureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -Ordering options for GroupHistory connections -""" -input GroupHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order GroupHistories. - """ - field: GroupHistoryOrderField! -} -""" -Properties by which GroupHistory connections can be ordered. -""" -enum GroupHistoryOrderField { - name - display_name -} -""" -GroupHistoryWhereInput is used for filtering GroupHistory objects. +FeatureHistoryWhereInput is used for filtering FeatureHistory objects. Input was generated by ent. """ -input GroupHistoryWhereInput { - not: GroupHistoryWhereInput - and: [GroupHistoryWhereInput!] - or: [GroupHistoryWhereInput!] +input FeatureHistoryWhereInput { + not: FeatureHistoryWhereInput + and: [FeatureHistoryWhereInput!] + or: [FeatureHistoryWhereInput!] """ id field predicates """ @@ -24346,10 +31816,10 @@ input GroupHistoryWhereInput { """ operation field predicates """ - operation: GroupHistoryOpType - operationNEQ: GroupHistoryOpType - operationIn: [GroupHistoryOpType!] - operationNotIn: [GroupHistoryOpType!] + operation: FeatureHistoryOpType + operationNEQ: FeatureHistoryOpType + operationIn: [FeatureHistoryOpType!] + operationNotIn: [FeatureHistoryOpType!] """ created_at field predicates """ @@ -24491,174 +31961,57 @@ input GroupHistoryWhereInput { displayNameContains: String displayNameHasPrefix: String displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean displayNameEqualFold: String displayNameContainsFold: String -} -type GroupMembership implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - role: GroupMembershipRole! - groupID: ID! - userID: ID! - group: Group! - user: User! - events: [Event!] -} -""" -A connection to a list of items. -""" -type GroupMembershipConnection { - """ - A list of edges. - """ - edges: [GroupMembershipEdge] """ - Information to aid in pagination. + enabled field predicates """ - pageInfo: PageInfo! + enabled: Boolean + enabledNEQ: Boolean """ - Identifies the total count of items in the connection. + description field predicates """ - totalCount: Int! + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String } """ -An edge in a connection. +FeatureWhereInput is used for filtering Feature objects. +Input was generated by ent. """ -type GroupMembershipEdge { +input FeatureWhereInput { + not: FeatureWhereInput + and: [FeatureWhereInput!] + or: [FeatureWhereInput!] """ - The item at the end of the edge. + id field predicates """ - node: GroupMembership + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type GroupMembershipHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: GroupMembershipHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - role: GroupMembershipHistoryRole! - groupID: String! - userID: String! -} -""" -A connection to a list of items. -""" -type GroupMembershipHistoryConnection { - """ - A list of edges. - """ - edges: [GroupMembershipHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type GroupMembershipHistoryEdge { - """ - The item at the end of the edge. - """ - node: GroupMembershipHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -GroupMembershipHistoryOpType is enum for the field operation -""" -enum GroupMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -GroupMembershipHistoryRole is enum for the field role -""" -enum GroupMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER -} -""" -GroupMembershipHistoryWhereInput is used for filtering GroupMembershipHistory objects. -Input was generated by ent. -""" -input GroupMembershipHistoryWhereInput { - not: GroupMembershipHistoryWhereInput - and: [GroupMembershipHistoryWhereInput!] - or: [GroupMembershipHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: GroupMembershipHistoryOpType - operationNEQ: GroupMembershipHistoryOpType - operationIn: [GroupMembershipHistoryOpType!] - operationNotIn: [GroupMembershipHistoryOpType!] - """ - created_at field predicates + created_at field predicates """ createdAt: Time createdAtNEQ: Time @@ -24751,237 +32104,181 @@ input GroupMembershipHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - role field predicates + owner_id field predicates """ - role: GroupMembershipHistoryRole - roleNEQ: GroupMembershipHistoryRole - roleIn: [GroupMembershipHistoryRole!] - roleNotIn: [GroupMembershipHistoryRole!] + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - group_id field predicates + name field predicates """ - groupID: String - groupIDNEQ: String - groupIDIn: [String!] - groupIDNotIn: [String!] - groupIDGT: String - groupIDGTE: String - groupIDLT: String - groupIDLTE: String - groupIDContains: String - groupIDHasPrefix: String - groupIDHasSuffix: String - groupIDEqualFold: String - groupIDContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - user_id field predicates + display_name field predicates """ - userID: String - userIDNEQ: String - userIDIn: [String!] - userIDNotIn: [String!] - userIDGT: String - userIDGTE: String - userIDLT: String - userIDLTE: String - userIDContains: String - userIDHasPrefix: String - userIDHasSuffix: String - userIDEqualFold: String - userIDContainsFold: String -} -""" -GroupMembershipRole is enum for the field role -""" -enum GroupMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER -} -""" -GroupMembershipWhereInput is used for filtering GroupMembership objects. -Input was generated by ent. -""" -input GroupMembershipWhereInput { - not: GroupMembershipWhereInput - and: [GroupMembershipWhereInput!] - or: [GroupMembershipWhereInput!] + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String """ - id field predicates + enabled field predicates """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + enabled: Boolean + enabledNEQ: Boolean """ - created_at field predicates + description field predicates """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - updated_at field predicates + owner edge predicates """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - created_by field predicates + plans edge predicates """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + hasPlans: Boolean + hasPlansWith: [EntitlementPlanWhereInput!] """ - updated_by field predicates + events edge predicates """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] """ - deleted_at field predicates + features edge predicates """ + hasFeatures: Boolean + hasFeaturesWith: [EntitlementPlanFeatureWhereInput!] +} +type File implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + deletedBy: String """ - deleted_by field predicates + tags associated with the object """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + tags: [String!] """ - role field predicates + the name of the file provided in the payload key without the extension """ - role: GroupMembershipRole - roleNEQ: GroupMembershipRole - roleIn: [GroupMembershipRole!] - roleNotIn: [GroupMembershipRole!] -} -""" -Ordering options for Group connections -""" -input GroupOrder { + providedFileName: String! """ - The ordering direction. + the extension of the file provided """ - direction: OrderDirection! = ASC + providedFileExtension: String! """ - The field by which to order Groups. + the computed size of the file in the original http request """ - field: GroupOrderField! -} -""" -Properties by which Group connections can be ordered. -""" -enum GroupOrderField { - name - display_name -} -type GroupSetting implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String + providedFileSize: Int + persistedFileSize: Int """ - tags associated with the object + the mime type detected by the system """ - tags: [String!] - deletedAt: Time - deletedBy: String + detectedMimeType: String """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage """ - visibility: GroupSettingVisibility! + md5Hash: String """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types """ - joinPolicy: GroupSettingJoinPolicy! + detectedContentType: String! """ - whether to sync group members to slack groups + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key """ - syncToSlack: Boolean + storeKey: String """ - whether to sync group members to github groups + the category type of the file, if any (e.g. evidence, invoice, etc.) """ - syncToGithub: Boolean + categoryType: String """ - the group id associated with the settings + the full URI of the file """ - groupID: ID - group: Group + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String + user: [User!] + organization: [Organization!] + group: [Group!] + contact: [Contact!] + entity: [Entity!] + usersetting: [UserSetting!] + organizationsetting: [OrganizationSetting!] + template: [Template!] + documentdata: [DocumentData!] + events: [Event!] } """ A connection to a list of items. """ -type GroupSettingConnection { +type FileConnection { """ A list of edges. """ - edges: [GroupSettingEdge] + edges: [FileEdge] """ Information to aid in pagination. """ @@ -24994,60 +32291,89 @@ type GroupSettingConnection { """ An edge in a connection. """ -type GroupSettingEdge { +type FileEdge { """ The item at the end of the edge. """ - node: GroupSetting + node: File """ A cursor for use in pagination. """ cursor: Cursor! } -type GroupSettingHistory implements Node { +type FileHistory implements Node { id: ID! historyTime: Time! ref: String - operation: GroupSettingHistoryOpType! + operation: FileHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] - deletedAt: Time - deletedBy: String """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + the name of the file provided in the payload key without the extension """ - visibility: GroupSettingHistoryVisibility! + providedFileName: String! """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either + the extension of the file provided """ - joinPolicy: GroupSettingHistoryJoinPolicy! + providedFileExtension: String! """ - whether to sync group members to slack groups + the computed size of the file in the original http request """ - syncToSlack: Boolean + providedFileSize: Int + persistedFileSize: Int """ - whether to sync group members to github groups + the mime type detected by the system """ - syncToGithub: Boolean + detectedMimeType: String """ - the group id associated with the settings + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage """ - groupID: String + md5Hash: String + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String! + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + """ + the full URI of the file + """ + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String } """ A connection to a list of items. """ -type GroupSettingHistoryConnection { +type FileHistoryConnection { """ A list of edges. """ - edges: [GroupSettingHistoryEdge] + edges: [FileHistoryEdge] """ Information to aid in pagination. """ @@ -25060,48 +32386,32 @@ type GroupSettingHistoryConnection { """ An edge in a connection. """ -type GroupSettingHistoryEdge { +type FileHistoryEdge { """ The item at the end of the edge. """ - node: GroupSettingHistory + node: FileHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -GroupSettingHistoryJoinPolicy is enum for the field join_policy -""" -enum GroupSettingHistoryJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { - OPEN - INVITE_ONLY - APPLICATION_ONLY - INVITE_OR_APPLICATION -} -""" -GroupSettingHistoryOpType is enum for the field operation +FileHistoryOpType is enum for the field operation """ -enum GroupSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum FileHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -GroupSettingHistoryVisibility is enum for the field visibility -""" -enum GroupSettingHistoryVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { - PUBLIC - PRIVATE -} -""" -GroupSettingHistoryWhereInput is used for filtering GroupSettingHistory objects. +FileHistoryWhereInput is used for filtering FileHistory objects. Input was generated by ent. """ -input GroupSettingHistoryWhereInput { - not: GroupSettingHistoryWhereInput - and: [GroupSettingHistoryWhereInput!] - or: [GroupSettingHistoryWhereInput!] +input FileHistoryWhereInput { + not: FileHistoryWhereInput + and: [FileHistoryWhereInput!] + or: [FileHistoryWhereInput!] """ id field predicates """ @@ -25147,10 +32457,10 @@ input GroupSettingHistoryWhereInput { """ operation field predicates """ - operation: GroupSettingHistoryOpType - operationNEQ: GroupSettingHistoryOpType - operationIn: [GroupSettingHistoryOpType!] - operationNotIn: [GroupSettingHistoryOpType!] + operation: FileHistoryOpType + operationNEQ: FileHistoryOpType + operationIn: [FileHistoryOpType!] + operationNotIn: [FileHistoryOpType!] """ created_at field predicates """ @@ -25245,242 +32555,232 @@ input GroupSettingHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - visibility field predicates - """ - visibility: GroupSettingHistoryVisibility - visibilityNEQ: GroupSettingHistoryVisibility - visibilityIn: [GroupSettingHistoryVisibility!] - visibilityNotIn: [GroupSettingHistoryVisibility!] - """ - join_policy field predicates - """ - joinPolicy: GroupSettingHistoryJoinPolicy - joinPolicyNEQ: GroupSettingHistoryJoinPolicy - joinPolicyIn: [GroupSettingHistoryJoinPolicy!] - joinPolicyNotIn: [GroupSettingHistoryJoinPolicy!] - """ - sync_to_slack field predicates - """ - syncToSlack: Boolean - syncToSlackNEQ: Boolean - syncToSlackIsNil: Boolean - syncToSlackNotNil: Boolean - """ - sync_to_github field predicates - """ - syncToGithub: Boolean - syncToGithubNEQ: Boolean - syncToGithubIsNil: Boolean - syncToGithubNotNil: Boolean - """ - group_id field predicates - """ - groupID: String - groupIDNEQ: String - groupIDIn: [String!] - groupIDNotIn: [String!] - groupIDGT: String - groupIDGTE: String - groupIDLT: String - groupIDLTE: String - groupIDContains: String - groupIDHasPrefix: String - groupIDHasSuffix: String - groupIDIsNil: Boolean - groupIDNotNil: Boolean - groupIDEqualFold: String - groupIDContainsFold: String -} -""" -GroupSettingJoinPolicy is enum for the field join_policy -""" -enum GroupSettingJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { - OPEN - INVITE_ONLY - APPLICATION_ONLY - INVITE_OR_APPLICATION -} -""" -GroupSettingVisibility is enum for the field visibility -""" -enum GroupSettingVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { - PUBLIC - PRIVATE -} -""" -GroupSettingWhereInput is used for filtering GroupSetting objects. -Input was generated by ent. -""" -input GroupSettingWhereInput { - not: GroupSettingWhereInput - and: [GroupSettingWhereInput!] - or: [GroupSettingWhereInput!] - """ - id field predicates + provided_file_name field predicates """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + providedFileName: String + providedFileNameNEQ: String + providedFileNameIn: [String!] + providedFileNameNotIn: [String!] + providedFileNameGT: String + providedFileNameGTE: String + providedFileNameLT: String + providedFileNameLTE: String + providedFileNameContains: String + providedFileNameHasPrefix: String + providedFileNameHasSuffix: String + providedFileNameEqualFold: String + providedFileNameContainsFold: String """ - created_at field predicates + provided_file_extension field predicates """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + providedFileExtension: String + providedFileExtensionNEQ: String + providedFileExtensionIn: [String!] + providedFileExtensionNotIn: [String!] + providedFileExtensionGT: String + providedFileExtensionGTE: String + providedFileExtensionLT: String + providedFileExtensionLTE: String + providedFileExtensionContains: String + providedFileExtensionHasPrefix: String + providedFileExtensionHasSuffix: String + providedFileExtensionEqualFold: String + providedFileExtensionContainsFold: String """ - updated_at field predicates + provided_file_size field predicates """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + providedFileSize: Int + providedFileSizeNEQ: Int + providedFileSizeIn: [Int!] + providedFileSizeNotIn: [Int!] + providedFileSizeGT: Int + providedFileSizeGTE: Int + providedFileSizeLT: Int + providedFileSizeLTE: Int + providedFileSizeIsNil: Boolean + providedFileSizeNotNil: Boolean """ - created_by field predicates + persisted_file_size field predicates """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + persistedFileSize: Int + persistedFileSizeNEQ: Int + persistedFileSizeIn: [Int!] + persistedFileSizeNotIn: [Int!] + persistedFileSizeGT: Int + persistedFileSizeGTE: Int + persistedFileSizeLT: Int + persistedFileSizeLTE: Int + persistedFileSizeIsNil: Boolean + persistedFileSizeNotNil: Boolean """ - updated_by field predicates + detected_mime_type field predicates """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + detectedMimeType: String + detectedMimeTypeNEQ: String + detectedMimeTypeIn: [String!] + detectedMimeTypeNotIn: [String!] + detectedMimeTypeGT: String + detectedMimeTypeGTE: String + detectedMimeTypeLT: String + detectedMimeTypeLTE: String + detectedMimeTypeContains: String + detectedMimeTypeHasPrefix: String + detectedMimeTypeHasSuffix: String + detectedMimeTypeIsNil: Boolean + detectedMimeTypeNotNil: Boolean + detectedMimeTypeEqualFold: String + detectedMimeTypeContainsFold: String """ - deleted_at field predicates + md5_hash field predicates """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + md5Hash: String + md5HashNEQ: String + md5HashIn: [String!] + md5HashNotIn: [String!] + md5HashGT: String + md5HashGTE: String + md5HashLT: String + md5HashLTE: String + md5HashContains: String + md5HashHasPrefix: String + md5HashHasSuffix: String + md5HashIsNil: Boolean + md5HashNotNil: Boolean + md5HashEqualFold: String + md5HashContainsFold: String """ - deleted_by field predicates + detected_content_type field predicates """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + detectedContentType: String + detectedContentTypeNEQ: String + detectedContentTypeIn: [String!] + detectedContentTypeNotIn: [String!] + detectedContentTypeGT: String + detectedContentTypeGTE: String + detectedContentTypeLT: String + detectedContentTypeLTE: String + detectedContentTypeContains: String + detectedContentTypeHasPrefix: String + detectedContentTypeHasSuffix: String + detectedContentTypeEqualFold: String + detectedContentTypeContainsFold: String """ - visibility field predicates + store_key field predicates """ - visibility: GroupSettingVisibility - visibilityNEQ: GroupSettingVisibility - visibilityIn: [GroupSettingVisibility!] - visibilityNotIn: [GroupSettingVisibility!] + storeKey: String + storeKeyNEQ: String + storeKeyIn: [String!] + storeKeyNotIn: [String!] + storeKeyGT: String + storeKeyGTE: String + storeKeyLT: String + storeKeyLTE: String + storeKeyContains: String + storeKeyHasPrefix: String + storeKeyHasSuffix: String + storeKeyIsNil: Boolean + storeKeyNotNil: Boolean + storeKeyEqualFold: String + storeKeyContainsFold: String """ - join_policy field predicates + category_type field predicates """ - joinPolicy: GroupSettingJoinPolicy - joinPolicyNEQ: GroupSettingJoinPolicy - joinPolicyIn: [GroupSettingJoinPolicy!] - joinPolicyNotIn: [GroupSettingJoinPolicy!] + categoryType: String + categoryTypeNEQ: String + categoryTypeIn: [String!] + categoryTypeNotIn: [String!] + categoryTypeGT: String + categoryTypeGTE: String + categoryTypeLT: String + categoryTypeLTE: String + categoryTypeContains: String + categoryTypeHasPrefix: String + categoryTypeHasSuffix: String + categoryTypeIsNil: Boolean + categoryTypeNotNil: Boolean + categoryTypeEqualFold: String + categoryTypeContainsFold: String """ - sync_to_slack field predicates + uri field predicates """ - syncToSlack: Boolean - syncToSlackNEQ: Boolean - syncToSlackIsNil: Boolean - syncToSlackNotNil: Boolean + uri: String + uriNEQ: String + uriIn: [String!] + uriNotIn: [String!] + uriGT: String + uriGTE: String + uriLT: String + uriLTE: String + uriContains: String + uriHasPrefix: String + uriHasSuffix: String + uriIsNil: Boolean + uriNotNil: Boolean + uriEqualFold: String + uriContainsFold: String """ - sync_to_github field predicates + storage_scheme field predicates """ - syncToGithub: Boolean - syncToGithubNEQ: Boolean - syncToGithubIsNil: Boolean - syncToGithubNotNil: Boolean + storageScheme: String + storageSchemeNEQ: String + storageSchemeIn: [String!] + storageSchemeNotIn: [String!] + storageSchemeGT: String + storageSchemeGTE: String + storageSchemeLT: String + storageSchemeLTE: String + storageSchemeContains: String + storageSchemeHasPrefix: String + storageSchemeHasSuffix: String + storageSchemeIsNil: Boolean + storageSchemeNotNil: Boolean + storageSchemeEqualFold: String + storageSchemeContainsFold: String """ - group_id field predicates + storage_volume field predicates """ - groupID: ID - groupIDNEQ: ID - groupIDIn: [ID!] - groupIDNotIn: [ID!] - groupIDGT: ID - groupIDGTE: ID - groupIDLT: ID - groupIDLTE: ID - groupIDContains: ID - groupIDHasPrefix: ID - groupIDHasSuffix: ID - groupIDIsNil: Boolean - groupIDNotNil: Boolean - groupIDEqualFold: ID - groupIDContainsFold: ID + storageVolume: String + storageVolumeNEQ: String + storageVolumeIn: [String!] + storageVolumeNotIn: [String!] + storageVolumeGT: String + storageVolumeGTE: String + storageVolumeLT: String + storageVolumeLTE: String + storageVolumeContains: String + storageVolumeHasPrefix: String + storageVolumeHasSuffix: String + storageVolumeIsNil: Boolean + storageVolumeNotNil: Boolean + storageVolumeEqualFold: String + storageVolumeContainsFold: String """ - group edge predicates + storage_path field predicates """ - hasGroup: Boolean - hasGroupWith: [GroupWhereInput!] + storagePath: String + storagePathNEQ: String + storagePathIn: [String!] + storagePathNotIn: [String!] + storagePathGT: String + storagePathGTE: String + storagePathLT: String + storagePathLTE: String + storagePathContains: String + storagePathHasPrefix: String + storagePathHasSuffix: String + storagePathIsNil: Boolean + storagePathNotNil: Boolean + storagePathEqualFold: String + storagePathContainsFold: String } """ -GroupWhereInput is used for filtering Group objects. +FileWhereInput is used for filtering File objects. Input was generated by ent. """ -input GroupWhereInput { - not: GroupWhereInput - and: [GroupWhereInput!] - or: [GroupWhereInput!] +input FileWhereInput { + not: FileWhereInput + and: [FileWhereInput!] + or: [FileWhereInput!] """ id field predicates """ @@ -25588,92 +32888,275 @@ input GroupWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + provided_file_name field predicates """ - name field predicates + providedFileName: String + providedFileNameNEQ: String + providedFileNameIn: [String!] + providedFileNameNotIn: [String!] + providedFileNameGT: String + providedFileNameGTE: String + providedFileNameLT: String + providedFileNameLTE: String + providedFileNameContains: String + providedFileNameHasPrefix: String + providedFileNameHasSuffix: String + providedFileNameEqualFold: String + providedFileNameContainsFold: String """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + provided_file_extension field predicates """ - display_name field predicates + providedFileExtension: String + providedFileExtensionNEQ: String + providedFileExtensionIn: [String!] + providedFileExtensionNotIn: [String!] + providedFileExtensionGT: String + providedFileExtensionGTE: String + providedFileExtensionLT: String + providedFileExtensionLTE: String + providedFileExtensionContains: String + providedFileExtensionHasPrefix: String + providedFileExtensionHasSuffix: String + providedFileExtensionEqualFold: String + providedFileExtensionContainsFold: String """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String + provided_file_size field predicates """ - owner edge predicates + providedFileSize: Int + providedFileSizeNEQ: Int + providedFileSizeIn: [Int!] + providedFileSizeNotIn: [Int!] + providedFileSizeGT: Int + providedFileSizeGTE: Int + providedFileSizeLT: Int + providedFileSizeLTE: Int + providedFileSizeIsNil: Boolean + providedFileSizeNotNil: Boolean """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + persisted_file_size field predicates """ - setting edge predicates + persistedFileSize: Int + persistedFileSizeNEQ: Int + persistedFileSizeIn: [Int!] + persistedFileSizeNotIn: [Int!] + persistedFileSizeGT: Int + persistedFileSizeGTE: Int + persistedFileSizeLT: Int + persistedFileSizeLTE: Int + persistedFileSizeIsNil: Boolean + persistedFileSizeNotNil: Boolean """ - hasSetting: Boolean - hasSettingWith: [GroupSettingWhereInput!] + detected_mime_type field predicates """ - users edge predicates + detectedMimeType: String + detectedMimeTypeNEQ: String + detectedMimeTypeIn: [String!] + detectedMimeTypeNotIn: [String!] + detectedMimeTypeGT: String + detectedMimeTypeGTE: String + detectedMimeTypeLT: String + detectedMimeTypeLTE: String + detectedMimeTypeContains: String + detectedMimeTypeHasPrefix: String + detectedMimeTypeHasSuffix: String + detectedMimeTypeIsNil: Boolean + detectedMimeTypeNotNil: Boolean + detectedMimeTypeEqualFold: String + detectedMimeTypeContainsFold: String """ - hasUsers: Boolean - hasUsersWith: [UserWhereInput!] + md5_hash field predicates """ - events edge predicates + md5Hash: String + md5HashNEQ: String + md5HashIn: [String!] + md5HashNotIn: [String!] + md5HashGT: String + md5HashGTE: String + md5HashLT: String + md5HashLTE: String + md5HashContains: String + md5HashHasPrefix: String + md5HashHasSuffix: String + md5HashIsNil: Boolean + md5HashNotNil: Boolean + md5HashEqualFold: String + md5HashContainsFold: String """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + detected_content_type field predicates """ - integrations edge predicates + detectedContentType: String + detectedContentTypeNEQ: String + detectedContentTypeIn: [String!] + detectedContentTypeNotIn: [String!] + detectedContentTypeGT: String + detectedContentTypeGTE: String + detectedContentTypeLT: String + detectedContentTypeLTE: String + detectedContentTypeContains: String + detectedContentTypeHasPrefix: String + detectedContentTypeHasSuffix: String + detectedContentTypeEqualFold: String + detectedContentTypeContainsFold: String """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] + store_key field predicates """ - files edge predicates + storeKey: String + storeKeyNEQ: String + storeKeyIn: [String!] + storeKeyNotIn: [String!] + storeKeyGT: String + storeKeyGTE: String + storeKeyLT: String + storeKeyLTE: String + storeKeyContains: String + storeKeyHasPrefix: String + storeKeyHasSuffix: String + storeKeyIsNil: Boolean + storeKeyNotNil: Boolean + storeKeyEqualFold: String + storeKeyContainsFold: String """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] + category_type field predicates """ - members edge predicates + categoryType: String + categoryTypeNEQ: String + categoryTypeIn: [String!] + categoryTypeNotIn: [String!] + categoryTypeGT: String + categoryTypeGTE: String + categoryTypeLT: String + categoryTypeLTE: String + categoryTypeContains: String + categoryTypeHasPrefix: String + categoryTypeHasSuffix: String + categoryTypeIsNil: Boolean + categoryTypeNotNil: Boolean + categoryTypeEqualFold: String + categoryTypeContainsFold: String """ - hasMembers: Boolean - hasMembersWith: [GroupMembershipWhereInput!] + uri field predicates + """ + uri: String + uriNEQ: String + uriIn: [String!] + uriNotIn: [String!] + uriGT: String + uriGTE: String + uriLT: String + uriLTE: String + uriContains: String + uriHasPrefix: String + uriHasSuffix: String + uriIsNil: Boolean + uriNotNil: Boolean + uriEqualFold: String + uriContainsFold: String + """ + storage_scheme field predicates + """ + storageScheme: String + storageSchemeNEQ: String + storageSchemeIn: [String!] + storageSchemeNotIn: [String!] + storageSchemeGT: String + storageSchemeGTE: String + storageSchemeLT: String + storageSchemeLTE: String + storageSchemeContains: String + storageSchemeHasPrefix: String + storageSchemeHasSuffix: String + storageSchemeIsNil: Boolean + storageSchemeNotNil: Boolean + storageSchemeEqualFold: String + storageSchemeContainsFold: String + """ + storage_volume field predicates + """ + storageVolume: String + storageVolumeNEQ: String + storageVolumeIn: [String!] + storageVolumeNotIn: [String!] + storageVolumeGT: String + storageVolumeGTE: String + storageVolumeLT: String + storageVolumeLTE: String + storageVolumeContains: String + storageVolumeHasPrefix: String + storageVolumeHasSuffix: String + storageVolumeIsNil: Boolean + storageVolumeNotNil: Boolean + storageVolumeEqualFold: String + storageVolumeContainsFold: String + """ + storage_path field predicates + """ + storagePath: String + storagePathNEQ: String + storagePathIn: [String!] + storagePathNotIn: [String!] + storagePathGT: String + storagePathGTE: String + storagePathLT: String + storagePathLTE: String + storagePathContains: String + storagePathHasPrefix: String + storagePathHasSuffix: String + storagePathIsNil: Boolean + storagePathNotNil: Boolean + storagePathEqualFold: String + storagePathContainsFold: String + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] + """ + contact edge predicates + """ + hasContact: Boolean + hasContactWith: [ContactWhereInput!] + """ + entity edge predicates + """ + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] + """ + usersetting edge predicates + """ + hasUsersetting: Boolean + hasUsersettingWith: [UserSettingWhereInput!] + """ + organizationsetting edge predicates + """ + hasOrganizationsetting: Boolean + hasOrganizationsettingWith: [OrganizationSettingWhereInput!] + """ + template edge predicates + """ + hasTemplate: Boolean + hasTemplateWith: [TemplateWhereInput!] + """ + documentdata edge predicates + """ + hasDocumentdata: Boolean + hasDocumentdataWith: [DocumentDataWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] } -type Hush implements Node { +type Group implements Node { id: ID! createdAt: Time updatedAt: Time @@ -25682,36 +33165,49 @@ type Hush implements Node { deletedAt: Time deletedBy: String """ - the logical name of the corresponding hush secret or it's general grouping + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the group - must be unique within the organization """ name: String! """ - a description of the hush value or purpose, such as github PAT + the groups description """ description: String """ - the kind of secret, such as sshkey, certificate, api token, etc. + the URL to an auto generated gravatar image for the group """ - kind: String + gravatarLogoURL: String """ - the generic name of a secret associated with the organization + the URL to an image uploaded by the customer for the groups avatar image """ - secretName: String + logoURL: String """ - the integration associated with the secret + The group's displayed 'friendly' name """ - integrations: [Integration!] - organization: [Organization!] + displayName: String! + owner: Organization + setting: GroupSetting! + users: [User!] events: [Event!] + integrations: [Integration!] + files: [File!] + members: [GroupMembership!] } """ A connection to a list of items. """ -type HushConnection { +type GroupConnection { """ A list of edges. """ - edges: [HushEdge] + edges: [GroupEdge] """ Information to aid in pagination. """ @@ -25724,21 +33220,21 @@ type HushConnection { """ An edge in a connection. """ -type HushEdge { +type GroupEdge { """ The item at the end of the edge. """ - node: Hush + node: Group """ A cursor for use in pagination. """ cursor: Cursor! } -type HushHistory implements Node { +type GroupHistory implements Node { id: ID! historyTime: Time! ref: String - operation: HushHistoryOpType! + operation: GroupHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -25746,30 +33242,42 @@ type HushHistory implements Node { deletedAt: Time deletedBy: String """ - the logical name of the corresponding hush secret or it's general grouping + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the group - must be unique within the organization """ name: String! """ - a description of the hush value or purpose, such as github PAT + the groups description """ description: String """ - the kind of secret, such as sshkey, certificate, api token, etc. + the URL to an auto generated gravatar image for the group """ - kind: String + gravatarLogoURL: String """ - the generic name of a secret associated with the organization + the URL to an image uploaded by the customer for the groups avatar image """ - secretName: String + logoURL: String + """ + The group's displayed 'friendly' name + """ + displayName: String! } """ A connection to a list of items. """ -type HushHistoryConnection { +type GroupHistoryConnection { """ A list of edges. """ - edges: [HushHistoryEdge] + edges: [GroupHistoryEdge] """ Information to aid in pagination. """ @@ -25782,52 +33290,52 @@ type HushHistoryConnection { """ An edge in a connection. """ -type HushHistoryEdge { +type GroupHistoryEdge { """ The item at the end of the edge. """ - node: HushHistory + node: GroupHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -HushHistoryOpType is enum for the field operation +GroupHistoryOpType is enum for the field operation """ -enum HushHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum GroupHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -Ordering options for HushHistory connections +Ordering options for GroupHistory connections """ -input HushHistoryOrder { +input GroupHistoryOrder { """ The ordering direction. """ direction: OrderDirection! = ASC """ - The field by which to order HushHistories. + The field by which to order GroupHistories. """ - field: HushHistoryOrderField! + field: GroupHistoryOrderField! } """ -Properties by which HushHistory connections can be ordered. +Properties by which GroupHistory connections can be ordered. """ -enum HushHistoryOrderField { +enum GroupHistoryOrderField { name - kind + display_name } """ -HushHistoryWhereInput is used for filtering HushHistory objects. +GroupHistoryWhereInput is used for filtering GroupHistory objects. Input was generated by ent. """ -input HushHistoryWhereInput { - not: HushHistoryWhereInput - and: [HushHistoryWhereInput!] - or: [HushHistoryWhereInput!] +input GroupHistoryWhereInput { + not: GroupHistoryWhereInput + and: [GroupHistoryWhereInput!] + or: [GroupHistoryWhereInput!] """ id field predicates """ @@ -25873,10 +33381,10 @@ input HushHistoryWhereInput { """ operation field predicates """ - operation: HushHistoryOpType - operationNEQ: HushHistoryOpType - operationIn: [HushHistoryOpType!] - operationNotIn: [HushHistoryOpType!] + operation: GroupHistoryOpType + operationNEQ: GroupHistoryOpType + operationIn: [GroupHistoryOpType!] + operationNotIn: [GroupHistoryOpType!] """ created_at field predicates """ @@ -25971,192 +33479,23 @@ input HushHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - kind field predicates - """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String - """ - secret_name field predicates - """ - secretName: String - secretNameNEQ: String - secretNameIn: [String!] - secretNameNotIn: [String!] - secretNameGT: String - secretNameGTE: String - secretNameLT: String - secretNameLTE: String - secretNameContains: String - secretNameHasPrefix: String - secretNameHasSuffix: String - secretNameIsNil: Boolean - secretNameNotNil: Boolean - secretNameEqualFold: String - secretNameContainsFold: String -} -""" -Ordering options for Hush connections -""" -input HushOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Hushes. - """ - field: HushOrderField! -} -""" -Properties by which Hush connections can be ordered. -""" -enum HushOrderField { - name - kind -} -""" -HushWhereInput is used for filtering Hush objects. -Input was generated by ent. -""" -input HushWhereInput { - not: HushWhereInput - and: [HushWhereInput!] - or: [HushWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates + owner_id field predicates """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ name field predicates """ @@ -26174,102 +33513,45 @@ input HushWhereInput { nameEqualFold: String nameContainsFold: String """ - kind field predicates - """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String - """ - secret_name field predicates - """ - secretName: String - secretNameNEQ: String - secretNameIn: [String!] - secretNameNotIn: [String!] - secretNameGT: String - secretNameGTE: String - secretNameLT: String - secretNameLTE: String - secretNameContains: String - secretNameHasPrefix: String - secretNameHasSuffix: String - secretNameIsNil: Boolean - secretNameNotNil: Boolean - secretNameEqualFold: String - secretNameContainsFold: String - """ - integrations edge predicates - """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] - """ - organization edge predicates - """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] - """ - events edge predicates + display_name field predicates """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String } -type Integration implements Node { +type GroupMembership implements Node { id: ID! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - """ - tags associated with the object - """ - tags: [String!] deletedAt: Time deletedBy: String - """ - the organization id that owns the object - """ - ownerID: ID - """ - the name of the integration - must be unique within the organization - """ - name: String! - """ - a description of the integration - """ - description: String - kind: String - owner: Organization - """ - the secrets associated with the integration - """ - secrets: [Hush!] - """ - the oauth2 tokens associated with the integration - """ - oauth2tokens: [OhAuthTooToken!] + role: GroupMembershipRole! + groupID: ID! + userID: ID! + group: Group! + user: User! events: [Event!] - webhooks: [Webhook!] } """ A connection to a list of items. """ -type IntegrationConnection { +type GroupMembershipConnection { """ A list of edges. """ - edges: [IntegrationEdge] + edges: [GroupMembershipEdge] """ Information to aid in pagination. """ @@ -26282,53 +33564,39 @@ type IntegrationConnection { """ An edge in a connection. """ -type IntegrationEdge { +type GroupMembershipEdge { """ The item at the end of the edge. """ - node: Integration + node: GroupMembership """ A cursor for use in pagination. """ cursor: Cursor! } -type IntegrationHistory implements Node { +type GroupMembershipHistory implements Node { id: ID! historyTime: Time! ref: String - operation: IntegrationHistoryOpType! + operation: GroupMembershipHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - """ - tags associated with the object - """ - tags: [String!] deletedAt: Time deletedBy: String - """ - the organization id that owns the object - """ - ownerID: String - """ - the name of the integration - must be unique within the organization - """ - name: String! - """ - a description of the integration - """ - description: String - kind: String + role: GroupMembershipHistoryRole! + groupID: String! + userID: String! } """ A connection to a list of items. """ -type IntegrationHistoryConnection { +type GroupMembershipHistoryConnection { """ A list of edges. """ - edges: [IntegrationHistoryEdge] + edges: [GroupMembershipHistoryEdge] """ Information to aid in pagination. """ @@ -26341,52 +33609,40 @@ type IntegrationHistoryConnection { """ An edge in a connection. """ -type IntegrationHistoryEdge { +type GroupMembershipHistoryEdge { """ The item at the end of the edge. """ - node: IntegrationHistory + node: GroupMembershipHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -IntegrationHistoryOpType is enum for the field operation +GroupMembershipHistoryOpType is enum for the field operation """ -enum IntegrationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum GroupMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -Ordering options for IntegrationHistory connections -""" -input IntegrationHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order IntegrationHistories. - """ - field: IntegrationHistoryOrderField! -} -""" -Properties by which IntegrationHistory connections can be ordered. +GroupMembershipHistoryRole is enum for the field role """ -enum IntegrationHistoryOrderField { - name - kind +enum GroupMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER } """ -IntegrationHistoryWhereInput is used for filtering IntegrationHistory objects. +GroupMembershipHistoryWhereInput is used for filtering GroupMembershipHistory objects. Input was generated by ent. """ -input IntegrationHistoryWhereInput { - not: IntegrationHistoryWhereInput - and: [IntegrationHistoryWhereInput!] - or: [IntegrationHistoryWhereInput!] +input GroupMembershipHistoryWhereInput { + not: GroupMembershipHistoryWhereInput + and: [GroupMembershipHistoryWhereInput!] + or: [GroupMembershipHistoryWhereInput!] """ id field predicates """ @@ -26432,10 +33688,10 @@ input IntegrationHistoryWhereInput { """ operation field predicates """ - operation: IntegrationHistoryOpType - operationNEQ: IntegrationHistoryOpType - operationIn: [IntegrationHistoryOpType!] - operationNotIn: [IntegrationHistoryOpType!] + operation: GroupMembershipHistoryOpType + operationNEQ: GroupMembershipHistoryOpType + operationIn: [GroupMembershipHistoryOpType!] + operationNotIn: [GroupMembershipHistoryOpType!] """ created_at field predicates """ @@ -26530,86 +33786,61 @@ input IntegrationHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - kind field predicates + role field predicates """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String -} -""" -Ordering options for Integration connections -""" -input IntegrationOrder { + role: GroupMembershipHistoryRole + roleNEQ: GroupMembershipHistoryRole + roleIn: [GroupMembershipHistoryRole!] + roleNotIn: [GroupMembershipHistoryRole!] """ - The ordering direction. + group_id field predicates """ - direction: OrderDirection! = ASC + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDGT: String + groupIDGTE: String + groupIDLT: String + groupIDLTE: String + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDEqualFold: String + groupIDContainsFold: String """ - The field by which to order Integrations. + user_id field predicates """ - field: IntegrationOrderField! + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDEqualFold: String + userIDContainsFold: String } """ -Properties by which Integration connections can be ordered. +GroupMembershipRole is enum for the field role """ -enum IntegrationOrderField { - name - kind +enum GroupMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER } """ -IntegrationWhereInput is used for filtering Integration objects. +GroupMembershipWhereInput is used for filtering GroupMembership objects. Input was generated by ent. """ -input IntegrationWhereInput { - not: IntegrationWhereInput - and: [IntegrationWhereInput!] - or: [IntegrationWhereInput!] +input GroupMembershipWhereInput { + not: GroupMembershipWhereInput + and: [GroupMembershipWhereInput!] + or: [GroupMembershipWhereInput!] """ id field predicates """ @@ -26717,127 +33948,141 @@ input IntegrationWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + role field predicates """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + role: GroupMembershipRole + roleNEQ: GroupMembershipRole + roleIn: [GroupMembershipRole!] + roleNotIn: [GroupMembershipRole!] +} +""" +Ordering options for Group connections +""" +input GroupOrder { """ - name field predicates + The ordering direction. """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + direction: OrderDirection! = ASC """ - kind field predicates + The field by which to order Groups. """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String + field: GroupOrderField! +} +""" +Properties by which Group connections can be ordered. +""" +enum GroupOrderField { + name + display_name +} +type GroupSetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String """ - owner edge predicates + tags associated with the object """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + tags: [String!] + deletedAt: Time + deletedBy: String """ - secrets edge predicates + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization """ - hasSecrets: Boolean - hasSecretsWith: [HushWhereInput!] + visibility: GroupSettingVisibility! """ - oauth2tokens edge predicates + the policy governing ability to freely join a group, whether it requires an invitation, application, or either """ - hasOauth2tokens: Boolean - hasOauth2tokensWith: [OhAuthTooTokenWhereInput!] + joinPolicy: GroupSettingJoinPolicy! """ - events edge predicates + whether to sync group members to slack groups """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + syncToSlack: Boolean """ - webhooks edge predicates + whether to sync group members to github groups """ - hasWebhooks: Boolean - hasWebhooksWith: [WebhookWhereInput!] + syncToGithub: Boolean + """ + the group id associated with the settings + """ + groupID: ID + group: Group } -type Invite implements Node { +""" +A connection to a list of items. +""" +type GroupSettingConnection { + """ + A list of edges. + """ + edges: [GroupSettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupSettingEdge { + """ + The item at the end of the edge. + """ + node: GroupSetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type GroupSettingHistory implements Node { id: ID! + historyTime: Time! + ref: String + operation: GroupSettingHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - deletedAt: Time - deletedBy: String """ - the organization id that owns the object + tags associated with the object """ - ownerID: ID + tags: [String!] + deletedAt: Time + deletedBy: String """ - the expiration date of the invitation token which defaults to 14 days in the future from creation + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization """ - expires: Time + visibility: GroupSettingHistoryVisibility! """ - the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + the policy governing ability to freely join a group, whether it requires an invitation, application, or either """ - recipient: String! + joinPolicy: GroupSettingHistoryJoinPolicy! """ - the status of the invitation + whether to sync group members to slack groups """ - status: InviteInviteStatus! - role: InviteRole! + syncToSlack: Boolean """ - the number of attempts made to perform email send of the invitation, maximum of 5 + whether to sync group members to github groups """ - sendAttempts: Int! + syncToGithub: Boolean """ - the user who initiated the invitation + the group id associated with the settings """ - requestorID: String - owner: Organization - events: [Event!] + groupID: String } """ A connection to a list of items. """ -type InviteConnection { +type GroupSettingHistoryConnection { """ A list of edges. """ - edges: [InviteEdge] + edges: [GroupSettingHistoryEdge] """ Information to aid in pagination. """ @@ -26850,41 +34095,427 @@ type InviteConnection { """ An edge in a connection. """ -type InviteEdge { +type GroupSettingHistoryEdge { """ The item at the end of the edge. """ - node: Invite + node: GroupSettingHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -InviteInviteStatus is enum for the field status +GroupSettingHistoryJoinPolicy is enum for the field join_policy """ -enum InviteInviteStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.InviteStatus") { - INVITATION_SENT - APPROVAL_REQUIRED - INVITATION_ACCEPTED - INVITATION_EXPIRED +enum GroupSettingHistoryJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { + OPEN + INVITE_ONLY + APPLICATION_ONLY + INVITE_OR_APPLICATION } """ -InviteRole is enum for the field role +GroupSettingHistoryOpType is enum for the field operation """ -enum InviteRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER +enum GroupSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE } """ -InviteWhereInput is used for filtering Invite objects. +GroupSettingHistoryVisibility is enum for the field visibility +""" +enum GroupSettingHistoryVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { + PUBLIC + PRIVATE +} +""" +GroupSettingHistoryWhereInput is used for filtering GroupSettingHistory objects. Input was generated by ent. """ -input InviteWhereInput { - not: InviteWhereInput - and: [InviteWhereInput!] - or: [InviteWhereInput!] +input GroupSettingHistoryWhereInput { + not: GroupSettingHistoryWhereInput + and: [GroupSettingHistoryWhereInput!] + or: [GroupSettingHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: GroupSettingHistoryOpType + operationNEQ: GroupSettingHistoryOpType + operationIn: [GroupSettingHistoryOpType!] + operationNotIn: [GroupSettingHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + visibility field predicates + """ + visibility: GroupSettingHistoryVisibility + visibilityNEQ: GroupSettingHistoryVisibility + visibilityIn: [GroupSettingHistoryVisibility!] + visibilityNotIn: [GroupSettingHistoryVisibility!] + """ + join_policy field predicates + """ + joinPolicy: GroupSettingHistoryJoinPolicy + joinPolicyNEQ: GroupSettingHistoryJoinPolicy + joinPolicyIn: [GroupSettingHistoryJoinPolicy!] + joinPolicyNotIn: [GroupSettingHistoryJoinPolicy!] + """ + sync_to_slack field predicates + """ + syncToSlack: Boolean + syncToSlackNEQ: Boolean + syncToSlackIsNil: Boolean + syncToSlackNotNil: Boolean + """ + sync_to_github field predicates + """ + syncToGithub: Boolean + syncToGithubNEQ: Boolean + syncToGithubIsNil: Boolean + syncToGithubNotNil: Boolean + """ + group_id field predicates + """ + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDGT: String + groupIDGTE: String + groupIDLT: String + groupIDLTE: String + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: String + groupIDContainsFold: String +} +""" +GroupSettingJoinPolicy is enum for the field join_policy +""" +enum GroupSettingJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { + OPEN + INVITE_ONLY + APPLICATION_ONLY + INVITE_OR_APPLICATION +} +""" +GroupSettingVisibility is enum for the field visibility +""" +enum GroupSettingVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { + PUBLIC + PRIVATE +} +""" +GroupSettingWhereInput is used for filtering GroupSetting objects. +Input was generated by ent. +""" +input GroupSettingWhereInput { + not: GroupSettingWhereInput + and: [GroupSettingWhereInput!] + or: [GroupSettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + visibility field predicates + """ + visibility: GroupSettingVisibility + visibilityNEQ: GroupSettingVisibility + visibilityIn: [GroupSettingVisibility!] + visibilityNotIn: [GroupSettingVisibility!] + """ + join_policy field predicates + """ + joinPolicy: GroupSettingJoinPolicy + joinPolicyNEQ: GroupSettingJoinPolicy + joinPolicyIn: [GroupSettingJoinPolicy!] + joinPolicyNotIn: [GroupSettingJoinPolicy!] + """ + sync_to_slack field predicates + """ + syncToSlack: Boolean + syncToSlackNEQ: Boolean + syncToSlackIsNil: Boolean + syncToSlackNotNil: Boolean + """ + sync_to_github field predicates + """ + syncToGithub: Boolean + syncToGithubNEQ: Boolean + syncToGithubIsNil: Boolean + syncToGithubNotNil: Boolean + """ + group_id field predicates + """ + groupID: ID + groupIDNEQ: ID + groupIDIn: [ID!] + groupIDNotIn: [ID!] + groupIDGT: ID + groupIDGTE: ID + groupIDLT: ID + groupIDLTE: ID + groupIDContains: ID + groupIDHasPrefix: ID + groupIDHasSuffix: ID + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: ID + groupIDContainsFold: ID + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] +} +""" +GroupWhereInput is used for filtering Group objects. +Input was generated by ent. +""" +input GroupWhereInput { + not: GroupWhereInput + and: [GroupWhereInput!] + or: [GroupWhereInput!] """ id field predicates """ @@ -27010,107 +34641,74 @@ input InviteWhereInput { ownerIDEqualFold: ID ownerIDContainsFold: ID """ - expires field predicates + name field predicates """ - expires: Time - expiresNEQ: Time - expiresIn: [Time!] - expiresNotIn: [Time!] - expiresGT: Time - expiresGTE: Time - expiresLT: Time - expiresLTE: Time - expiresIsNil: Boolean - expiresNotNil: Boolean + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - recipient field predicates + display_name field predicates """ - recipient: String - recipientNEQ: String - recipientIn: [String!] - recipientNotIn: [String!] - recipientGT: String - recipientGTE: String - recipientLT: String - recipientLTE: String - recipientContains: String - recipientHasPrefix: String - recipientHasSuffix: String - recipientEqualFold: String - recipientContainsFold: String + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String """ - status field predicates + owner edge predicates """ - status: InviteInviteStatus - statusNEQ: InviteInviteStatus - statusIn: [InviteInviteStatus!] - statusNotIn: [InviteInviteStatus!] + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - role field predicates + setting edge predicates """ - role: InviteRole - roleNEQ: InviteRole - roleIn: [InviteRole!] - roleNotIn: [InviteRole!] + hasSetting: Boolean + hasSettingWith: [GroupSettingWhereInput!] """ - send_attempts field predicates + users edge predicates """ - sendAttempts: Int - sendAttemptsNEQ: Int - sendAttemptsIn: [Int!] - sendAttemptsNotIn: [Int!] - sendAttemptsGT: Int - sendAttemptsGTE: Int - sendAttemptsLT: Int - sendAttemptsLTE: Int + hasUsers: Boolean + hasUsersWith: [UserWhereInput!] """ - requestor_id field predicates + events edge predicates """ - requestorID: String - requestorIDNEQ: String - requestorIDIn: [String!] - requestorIDNotIn: [String!] - requestorIDGT: String - requestorIDGTE: String - requestorIDLT: String - requestorIDLTE: String - requestorIDContains: String - requestorIDHasPrefix: String - requestorIDHasSuffix: String - requestorIDIsNil: Boolean - requestorIDNotNil: Boolean - requestorIDEqualFold: String - requestorIDContainsFold: String + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] """ - owner edge predicates + integrations edge predicates """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] """ - events edge predicates + files edge predicates """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] -} -""" -A valid JSON string. -""" -scalar JSON -""" -The builtin Map type -""" -scalar Map -""" -An object with an ID. -Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) -""" -interface Node @goModel(model: "github.com/theopenlane/core/internal/ent/generated.Noder") { + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] """ - The id of the object. + members edge predicates """ - id: ID! + hasMembers: Boolean + hasMembersWith: [GroupMembershipWhereInput!] } -type Note implements Node { +type Hush implements Node { id: ID! createdAt: Time updatedAt: Time @@ -27119,28 +34717,36 @@ type Note implements Node { deletedAt: Time deletedBy: String """ - tags associated with the object + the logical name of the corresponding hush secret or it's general grouping """ - tags: [String!] + name: String! """ - the organization id that owns the object + a description of the hush value or purpose, such as github PAT """ - ownerID: ID + description: String """ - the text of the note + the kind of secret, such as sshkey, certificate, api token, etc. """ - text: String! - owner: Organization - entity: Entity + kind: String + """ + the generic name of a secret associated with the organization + """ + secretName: String + """ + the integration associated with the secret + """ + integrations: [Integration!] + organization: [Organization!] + events: [Event!] } """ A connection to a list of items. """ -type NoteConnection { +type HushConnection { """ A list of edges. """ - edges: [NoteEdge] + edges: [HushEdge] """ Information to aid in pagination. """ @@ -27153,21 +34759,21 @@ type NoteConnection { """ An edge in a connection. """ -type NoteEdge { +type HushEdge { """ The item at the end of the edge. """ - node: Note + node: Hush """ A cursor for use in pagination. """ cursor: Cursor! } -type NoteHistory implements Node { +type HushHistory implements Node { id: ID! historyTime: Time! ref: String - operation: NoteHistoryOpType! + operation: HushHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -27175,26 +34781,30 @@ type NoteHistory implements Node { deletedAt: Time deletedBy: String """ - tags associated with the object + the logical name of the corresponding hush secret or it's general grouping """ - tags: [String!] + name: String! """ - the organization id that owns the object + a description of the hush value or purpose, such as github PAT """ - ownerID: String + description: String """ - the text of the note + the kind of secret, such as sshkey, certificate, api token, etc. """ - text: String! + kind: String + """ + the generic name of a secret associated with the organization + """ + secretName: String } """ A connection to a list of items. """ -type NoteHistoryConnection { +type HushHistoryConnection { """ A list of edges. """ - edges: [NoteHistoryEdge] + edges: [HushHistoryEdge] """ Information to aid in pagination. """ @@ -27207,32 +34817,52 @@ type NoteHistoryConnection { """ An edge in a connection. """ -type NoteHistoryEdge { +type HushHistoryEdge { """ The item at the end of the edge. """ - node: NoteHistory + node: HushHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -NoteHistoryOpType is enum for the field operation +HushHistoryOpType is enum for the field operation """ -enum NoteHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum HushHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -NoteHistoryWhereInput is used for filtering NoteHistory objects. +Ordering options for HushHistory connections +""" +input HushHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order HushHistories. + """ + field: HushHistoryOrderField! +} +""" +Properties by which HushHistory connections can be ordered. +""" +enum HushHistoryOrderField { + name + kind +} +""" +HushHistoryWhereInput is used for filtering HushHistory objects. Input was generated by ent. """ -input NoteHistoryWhereInput { - not: NoteHistoryWhereInput - and: [NoteHistoryWhereInput!] - or: [NoteHistoryWhereInput!] +input HushHistoryWhereInput { + not: HushHistoryWhereInput + and: [HushHistoryWhereInput!] + or: [HushHistoryWhereInput!] """ id field predicates """ @@ -27278,10 +34908,10 @@ input NoteHistoryWhereInput { """ operation field predicates """ - operation: NoteHistoryOpType - operationNEQ: NoteHistoryOpType - operationIn: [NoteHistoryOpType!] - operationNotIn: [NoteHistoryOpType!] + operation: HushHistoryOpType + operationNEQ: HushHistoryOpType + operationIn: [HushHistoryOpType!] + operationNotIn: [HushHistoryOpType!] """ created_at field predicates """ @@ -27376,48 +35006,86 @@ input NoteHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + name field predicates """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - text field predicates + kind field predicates """ - text: String - textNEQ: String - textIn: [String!] - textNotIn: [String!] - textGT: String - textGTE: String - textLT: String - textLTE: String - textContains: String - textHasPrefix: String - textHasSuffix: String - textEqualFold: String - textContainsFold: String + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String + """ + secret_name field predicates + """ + secretName: String + secretNameNEQ: String + secretNameIn: [String!] + secretNameNotIn: [String!] + secretNameGT: String + secretNameGTE: String + secretNameLT: String + secretNameLTE: String + secretNameContains: String + secretNameHasPrefix: String + secretNameHasSuffix: String + secretNameIsNil: Boolean + secretNameNotNil: Boolean + secretNameEqualFold: String + secretNameContainsFold: String } """ -NoteWhereInput is used for filtering Note objects. +Ordering options for Hush connections +""" +input HushOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Hushes. + """ + field: HushOrderField! +} +""" +Properties by which Hush connections can be ordered. +""" +enum HushOrderField { + name + kind +} +""" +HushWhereInput is used for filtering Hush objects. Input was generated by ent. """ -input NoteWhereInput { - not: NoteWhereInput - and: [NoteWhereInput!] - or: [NoteWhereInput!] +input HushWhereInput { + not: HushWhereInput + and: [HushWhereInput!] + or: [HushWhereInput!] """ id field predicates """ @@ -27525,51 +35193,74 @@ input NoteWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + name field predicates """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - text field predicates + kind field predicates """ - text: String - textNEQ: String - textIn: [String!] - textNotIn: [String!] - textGT: String - textGTE: String - textLT: String - textLTE: String - textContains: String - textHasPrefix: String - textHasSuffix: String - textEqualFold: String - textContainsFold: String + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String """ - owner edge predicates + secret_name field predicates """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + secretName: String + secretNameNEQ: String + secretNameIn: [String!] + secretNameNotIn: [String!] + secretNameGT: String + secretNameGTE: String + secretNameLT: String + secretNameLTE: String + secretNameContains: String + secretNameHasPrefix: String + secretNameHasSuffix: String + secretNameIsNil: Boolean + secretNameNotNil: Boolean + secretNameEqualFold: String + secretNameContainsFold: String """ - entity edge predicates + integrations edge predicates """ - hasEntity: Boolean - hasEntityWith: [EntityWhereInput!] + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] } -type OauthProvider implements Node { +type Integration implements Node { id: ID! createdAt: Time updatedAt: Time @@ -27586,51 +35277,34 @@ type OauthProvider implements Node { """ ownerID: ID """ - the oauth provider's name + the name of the integration - must be unique within the organization """ name: String! """ - the client id for the oauth provider - """ - clientID: String! - """ - the client secret - """ - clientSecret: String! - """ - the redirect url - """ - redirectURL: String! - """ - the scopes - """ - scopes: String! - """ - the auth url of the provider - """ - authURL: String! - """ - the token url of the provider + a description of the integration """ - tokenURL: String! + description: String + kind: String + owner: Organization """ - the auth style, 0: auto detect 1: third party log in 2: log in with username and password + the secrets associated with the integration """ - authStyle: Uint! + secrets: [Hush!] """ - the URL to request user information by token + the oauth2 tokens associated with the integration """ - infoURL: String! - owner: Organization + oauth2tokens: [OhAuthTooToken!] + events: [Event!] + webhooks: [Webhook!] } """ A connection to a list of items. """ -type OauthProviderConnection { +type IntegrationConnection { """ A list of edges. """ - edges: [OauthProviderEdge] + edges: [IntegrationEdge] """ Information to aid in pagination. """ @@ -27643,21 +35317,21 @@ type OauthProviderConnection { """ An edge in a connection. """ -type OauthProviderEdge { +type IntegrationEdge { """ The item at the end of the edge. """ - node: OauthProvider + node: Integration """ A cursor for use in pagination. """ cursor: Cursor! } -type OauthProviderHistory implements Node { +type IntegrationHistory implements Node { id: ID! historyTime: Time! ref: String - operation: OauthProviderHistoryOpType! + operation: IntegrationHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -27673,50 +35347,23 @@ type OauthProviderHistory implements Node { """ ownerID: String """ - the oauth provider's name + the name of the integration - must be unique within the organization """ name: String! """ - the client id for the oauth provider - """ - clientID: String! - """ - the client secret - """ - clientSecret: String! - """ - the redirect url - """ - redirectURL: String! - """ - the scopes - """ - scopes: String! - """ - the auth url of the provider - """ - authURL: String! - """ - the token url of the provider - """ - tokenURL: String! - """ - the auth style, 0: auto detect 1: third party log in 2: log in with username and password - """ - authStyle: Uint! - """ - the URL to request user information by token + a description of the integration """ - infoURL: String! + description: String + kind: String } """ A connection to a list of items. """ -type OauthProviderHistoryConnection { +type IntegrationHistoryConnection { """ A list of edges. """ - edges: [OauthProviderHistoryEdge] + edges: [IntegrationHistoryEdge] """ Information to aid in pagination. """ @@ -27729,32 +35376,52 @@ type OauthProviderHistoryConnection { """ An edge in a connection. """ -type OauthProviderHistoryEdge { +type IntegrationHistoryEdge { """ The item at the end of the edge. """ - node: OauthProviderHistory + node: IntegrationHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -OauthProviderHistoryOpType is enum for the field operation +IntegrationHistoryOpType is enum for the field operation """ -enum OauthProviderHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum IntegrationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -OauthProviderHistoryWhereInput is used for filtering OauthProviderHistory objects. +Ordering options for IntegrationHistory connections +""" +input IntegrationHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order IntegrationHistories. + """ + field: IntegrationHistoryOrderField! +} +""" +Properties by which IntegrationHistory connections can be ordered. +""" +enum IntegrationHistoryOrderField { + name + kind +} +""" +IntegrationHistoryWhereInput is used for filtering IntegrationHistory objects. Input was generated by ent. """ -input OauthProviderHistoryWhereInput { - not: OauthProviderHistoryWhereInput - and: [OauthProviderHistoryWhereInput!] - or: [OauthProviderHistoryWhereInput!] +input IntegrationHistoryWhereInput { + not: IntegrationHistoryWhereInput + and: [IntegrationHistoryWhereInput!] + or: [IntegrationHistoryWhereInput!] """ id field predicates """ @@ -27800,10 +35467,10 @@ input OauthProviderHistoryWhereInput { """ operation field predicates """ - operation: OauthProviderHistoryOpType - operationNEQ: OauthProviderHistoryOpType - operationIn: [OauthProviderHistoryOpType!] - operationNotIn: [OauthProviderHistoryOpType!] + operation: IntegrationHistoryOpType + operationNEQ: IntegrationHistoryOpType + operationIn: [IntegrationHistoryOpType!] + operationNotIn: [IntegrationHistoryOpType!] """ created_at field predicates """ @@ -27932,137 +35599,52 @@ input OauthProviderHistoryWhereInput { nameEqualFold: String nameContainsFold: String """ - client_id field predicates - """ - clientID: String - clientIDNEQ: String - clientIDIn: [String!] - clientIDNotIn: [String!] - clientIDGT: String - clientIDGTE: String - clientIDLT: String - clientIDLTE: String - clientIDContains: String - clientIDHasPrefix: String - clientIDHasSuffix: String - clientIDEqualFold: String - clientIDContainsFold: String - """ - client_secret field predicates + kind field predicates """ - clientSecret: String - clientSecretNEQ: String - clientSecretIn: [String!] - clientSecretNotIn: [String!] - clientSecretGT: String - clientSecretGTE: String - clientSecretLT: String - clientSecretLTE: String - clientSecretContains: String - clientSecretHasPrefix: String - clientSecretHasSuffix: String - clientSecretEqualFold: String - clientSecretContainsFold: String - """ - redirect_url field predicates - """ - redirectURL: String - redirectURLNEQ: String - redirectURLIn: [String!] - redirectURLNotIn: [String!] - redirectURLGT: String - redirectURLGTE: String - redirectURLLT: String - redirectURLLTE: String - redirectURLContains: String - redirectURLHasPrefix: String - redirectURLHasSuffix: String - redirectURLEqualFold: String - redirectURLContainsFold: String - """ - scopes field predicates - """ - scopes: String - scopesNEQ: String - scopesIn: [String!] - scopesNotIn: [String!] - scopesGT: String - scopesGTE: String - scopesLT: String - scopesLTE: String - scopesContains: String - scopesHasPrefix: String - scopesHasSuffix: String - scopesEqualFold: String - scopesContainsFold: String - """ - auth_url field predicates - """ - authURL: String - authURLNEQ: String - authURLIn: [String!] - authURLNotIn: [String!] - authURLGT: String - authURLGTE: String - authURLLT: String - authURLLTE: String - authURLContains: String - authURLHasPrefix: String - authURLHasSuffix: String - authURLEqualFold: String - authURLContainsFold: String - """ - token_url field predicates - """ - tokenURL: String - tokenURLNEQ: String - tokenURLIn: [String!] - tokenURLNotIn: [String!] - tokenURLGT: String - tokenURLGTE: String - tokenURLLT: String - tokenURLLTE: String - tokenURLContains: String - tokenURLHasPrefix: String - tokenURLHasSuffix: String - tokenURLEqualFold: String - tokenURLContainsFold: String + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String +} +""" +Ordering options for Integration connections +""" +input IntegrationOrder { """ - auth_style field predicates + The ordering direction. """ - authStyle: Uint - authStyleNEQ: Uint - authStyleIn: [Uint!] - authStyleNotIn: [Uint!] - authStyleGT: Uint - authStyleGTE: Uint - authStyleLT: Uint - authStyleLTE: Uint + direction: OrderDirection! = ASC """ - info_url field predicates + The field by which to order Integrations. """ - infoURL: String - infoURLNEQ: String - infoURLIn: [String!] - infoURLNotIn: [String!] - infoURLGT: String - infoURLGTE: String - infoURLLT: String - infoURLLTE: String - infoURLContains: String - infoURLHasPrefix: String - infoURLHasSuffix: String - infoURLEqualFold: String - infoURLContainsFold: String + field: IntegrationOrderField! } """ -OauthProviderWhereInput is used for filtering OauthProvider objects. +Properties by which Integration connections can be ordered. +""" +enum IntegrationOrderField { + name + kind +} +""" +IntegrationWhereInput is used for filtering Integration objects. Input was generated by ent. """ -input OauthProviderWhereInput { - not: OauthProviderWhereInput - and: [OauthProviderWhereInput!] - or: [OauthProviderWhereInput!] +input IntegrationWhereInput { + not: IntegrationWhereInput + and: [IntegrationWhereInput!] + or: [IntegrationWhereInput!] """ id field predicates """ @@ -28204,381 +35786,106 @@ input OauthProviderWhereInput { nameEqualFold: String nameContainsFold: String """ - client_id field predicates - """ - clientID: String - clientIDNEQ: String - clientIDIn: [String!] - clientIDNotIn: [String!] - clientIDGT: String - clientIDGTE: String - clientIDLT: String - clientIDLTE: String - clientIDContains: String - clientIDHasPrefix: String - clientIDHasSuffix: String - clientIDEqualFold: String - clientIDContainsFold: String - """ - client_secret field predicates - """ - clientSecret: String - clientSecretNEQ: String - clientSecretIn: [String!] - clientSecretNotIn: [String!] - clientSecretGT: String - clientSecretGTE: String - clientSecretLT: String - clientSecretLTE: String - clientSecretContains: String - clientSecretHasPrefix: String - clientSecretHasSuffix: String - clientSecretEqualFold: String - clientSecretContainsFold: String - """ - redirect_url field predicates - """ - redirectURL: String - redirectURLNEQ: String - redirectURLIn: [String!] - redirectURLNotIn: [String!] - redirectURLGT: String - redirectURLGTE: String - redirectURLLT: String - redirectURLLTE: String - redirectURLContains: String - redirectURLHasPrefix: String - redirectURLHasSuffix: String - redirectURLEqualFold: String - redirectURLContainsFold: String - """ - scopes field predicates - """ - scopes: String - scopesNEQ: String - scopesIn: [String!] - scopesNotIn: [String!] - scopesGT: String - scopesGTE: String - scopesLT: String - scopesLTE: String - scopesContains: String - scopesHasPrefix: String - scopesHasSuffix: String - scopesEqualFold: String - scopesContainsFold: String - """ - auth_url field predicates - """ - authURL: String - authURLNEQ: String - authURLIn: [String!] - authURLNotIn: [String!] - authURLGT: String - authURLGTE: String - authURLLT: String - authURLLTE: String - authURLContains: String - authURLHasPrefix: String - authURLHasSuffix: String - authURLEqualFold: String - authURLContainsFold: String - """ - token_url field predicates - """ - tokenURL: String - tokenURLNEQ: String - tokenURLIn: [String!] - tokenURLNotIn: [String!] - tokenURLGT: String - tokenURLGTE: String - tokenURLLT: String - tokenURLLTE: String - tokenURLContains: String - tokenURLHasPrefix: String - tokenURLHasSuffix: String - tokenURLEqualFold: String - tokenURLContainsFold: String - """ - auth_style field predicates - """ - authStyle: Uint - authStyleNEQ: Uint - authStyleIn: [Uint!] - authStyleNotIn: [Uint!] - authStyleGT: Uint - authStyleGTE: Uint - authStyleLT: Uint - authStyleLTE: Uint - """ - info_url field predicates + kind field predicates """ - infoURL: String - infoURLNEQ: String - infoURLIn: [String!] - infoURLNotIn: [String!] - infoURLGT: String - infoURLGTE: String - infoURLLT: String - infoURLLTE: String - infoURLContains: String - infoURLHasPrefix: String - infoURLHasSuffix: String - infoURLEqualFold: String - infoURLContainsFold: String + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String """ owner edge predicates """ hasOwner: Boolean hasOwnerWith: [OrganizationWhereInput!] -} -type OhAuthTooToken implements Node { - id: ID! - """ - tags associated with the object - """ - tags: [String!] - clientID: String! - scopes: [String!] - nonce: String! - claimsUserID: String! - claimsUsername: String! - claimsEmail: String! - claimsEmailVerified: Boolean! - claimsGroups: [String!] - claimsPreferredUsername: String! - connectorID: String! - connectorData: [String!] - lastUsed: Time! - integration: [Integration!] - events: [Event!] -} -""" -A connection to a list of items. -""" -type OhAuthTooTokenConnection { - """ - A list of edges. """ - edges: [OhAuthTooTokenEdge] - """ - Information to aid in pagination. + secrets edge predicates """ - pageInfo: PageInfo! + hasSecrets: Boolean + hasSecretsWith: [HushWhereInput!] """ - Identifies the total count of items in the connection. + oauth2tokens edge predicates """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OhAuthTooTokenEdge { + hasOauth2tokens: Boolean + hasOauth2tokensWith: [OhAuthTooTokenWhereInput!] """ - The item at the end of the edge. + events edge predicates """ - node: OhAuthTooToken + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] """ - A cursor for use in pagination. + webhooks edge predicates """ - cursor: Cursor! + hasWebhooks: Boolean + hasWebhooksWith: [WebhookWhereInput!] } -""" -OhAuthTooTokenWhereInput is used for filtering OhAuthTooToken objects. -Input was generated by ent. -""" -input OhAuthTooTokenWhereInput { - not: OhAuthTooTokenWhereInput - and: [OhAuthTooTokenWhereInput!] - or: [OhAuthTooTokenWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - client_id field predicates - """ - clientID: String - clientIDNEQ: String - clientIDIn: [String!] - clientIDNotIn: [String!] - clientIDGT: String - clientIDGTE: String - clientIDLT: String - clientIDLTE: String - clientIDContains: String - clientIDHasPrefix: String - clientIDHasSuffix: String - clientIDEqualFold: String - clientIDContainsFold: String - """ - nonce field predicates - """ - nonce: String - nonceNEQ: String - nonceIn: [String!] - nonceNotIn: [String!] - nonceGT: String - nonceGTE: String - nonceLT: String - nonceLTE: String - nonceContains: String - nonceHasPrefix: String - nonceHasSuffix: String - nonceEqualFold: String - nonceContainsFold: String - """ - claims_user_id field predicates - """ - claimsUserID: String - claimsUserIDNEQ: String - claimsUserIDIn: [String!] - claimsUserIDNotIn: [String!] - claimsUserIDGT: String - claimsUserIDGTE: String - claimsUserIDLT: String - claimsUserIDLTE: String - claimsUserIDContains: String - claimsUserIDHasPrefix: String - claimsUserIDHasSuffix: String - claimsUserIDEqualFold: String - claimsUserIDContainsFold: String - """ - claims_username field predicates - """ - claimsUsername: String - claimsUsernameNEQ: String - claimsUsernameIn: [String!] - claimsUsernameNotIn: [String!] - claimsUsernameGT: String - claimsUsernameGTE: String - claimsUsernameLT: String - claimsUsernameLTE: String - claimsUsernameContains: String - claimsUsernameHasPrefix: String - claimsUsernameHasSuffix: String - claimsUsernameEqualFold: String - claimsUsernameContainsFold: String +type InternalPolicy implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - claims_email field predicates + tags associated with the object """ - claimsEmail: String - claimsEmailNEQ: String - claimsEmailIn: [String!] - claimsEmailNotIn: [String!] - claimsEmailGT: String - claimsEmailGTE: String - claimsEmailLT: String - claimsEmailLTE: String - claimsEmailContains: String - claimsEmailHasPrefix: String - claimsEmailHasSuffix: String - claimsEmailEqualFold: String - claimsEmailContainsFold: String + tags: [String!] """ - claims_email_verified field predicates + the name of the policy """ - claimsEmailVerified: Boolean - claimsEmailVerifiedNEQ: Boolean + name: String! """ - claims_preferred_username field predicates + description of the policy """ - claimsPreferredUsername: String - claimsPreferredUsernameNEQ: String - claimsPreferredUsernameIn: [String!] - claimsPreferredUsernameNotIn: [String!] - claimsPreferredUsernameGT: String - claimsPreferredUsernameGTE: String - claimsPreferredUsernameLT: String - claimsPreferredUsernameLTE: String - claimsPreferredUsernameContains: String - claimsPreferredUsernameHasPrefix: String - claimsPreferredUsernameHasSuffix: String - claimsPreferredUsernameEqualFold: String - claimsPreferredUsernameContainsFold: String + description: String! """ - connector_id field predicates + status of the policy """ - connectorID: String - connectorIDNEQ: String - connectorIDIn: [String!] - connectorIDNotIn: [String!] - connectorIDGT: String - connectorIDGTE: String - connectorIDLT: String - connectorIDLTE: String - connectorIDContains: String - connectorIDHasPrefix: String - connectorIDHasSuffix: String - connectorIDEqualFold: String - connectorIDContainsFold: String + status: String """ - last_used field predicates + type of the policy """ - lastUsed: Time - lastUsedNEQ: Time - lastUsedIn: [Time!] - lastUsedNotIn: [Time!] - lastUsedGT: Time - lastUsedGTE: Time - lastUsedLT: Time - lastUsedLTE: Time + policyType: String """ - integration edge predicates + version of the policy """ - hasIntegration: Boolean - hasIntegrationWith: [IntegrationWhereInput!] + version: String """ - events edge predicates + purpose and scope """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] -} -""" -Possible directions in which to order a list of items when provided an ` + "`" + `orderBy` + "`" + ` argument. -""" -enum OrderDirection { + purposeAndScope: String """ - Specifies an ascending order for a given ` + "`" + `orderBy` + "`" + ` argument. + background of the policy """ - ASC + background: String """ - Specifies a descending order for a given ` + "`" + `orderBy` + "`" + ` argument. + json data for the policy document """ - DESC -} -type OrgMembership implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - role: OrgMembershipRole! - organizationID: ID! - userID: ID! - organization: Organization! - user: User! - events: [Event!] + details: Map + controlobjectives: [ControlObjective!] + controls: [Control!] + procedures: [Procedure!] + narratives: [Narrative!] } """ A connection to a list of items. """ -type OrgMembershipConnection { +type InternalPolicyConnection { """ A list of edges. """ - edges: [OrgMembershipEdge] + edges: [InternalPolicyEdge] """ Information to aid in pagination. """ @@ -28591,39 +35898,72 @@ type OrgMembershipConnection { """ An edge in a connection. """ -type OrgMembershipEdge { +type InternalPolicyEdge { """ The item at the end of the edge. """ - node: OrgMembership + node: InternalPolicy """ A cursor for use in pagination. """ cursor: Cursor! } -type OrgMembershipHistory implements Node { +type InternalPolicyHistory implements Node { id: ID! historyTime: Time! ref: String - operation: OrgMembershipHistoryOpType! + operation: InternalPolicyHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String deletedAt: Time deletedBy: String - role: OrgMembershipHistoryRole! - organizationID: String! - userID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the policy + """ + name: String! + """ + description of the policy + """ + description: String! + """ + status of the policy + """ + status: String + """ + type of the policy + """ + policyType: String + """ + version of the policy + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the policy + """ + background: String + """ + json data for the policy document + """ + details: Map } """ A connection to a list of items. """ -type OrgMembershipHistoryConnection { +type InternalPolicyHistoryConnection { """ A list of edges. """ - edges: [OrgMembershipHistoryEdge] + edges: [InternalPolicyHistoryEdge] """ Information to aid in pagination. """ @@ -28636,41 +35976,32 @@ type OrgMembershipHistoryConnection { """ An edge in a connection. """ -type OrgMembershipHistoryEdge { +type InternalPolicyHistoryEdge { """ The item at the end of the edge. """ - node: OrgMembershipHistory + node: InternalPolicyHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -OrgMembershipHistoryOpType is enum for the field operation +InternalPolicyHistoryOpType is enum for the field operation """ -enum OrgMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum InternalPolicyHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -OrgMembershipHistoryRole is enum for the field role -""" -enum OrgMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER - OWNER -} -""" -OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. +InternalPolicyHistoryWhereInput is used for filtering InternalPolicyHistory objects. Input was generated by ent. """ -input OrgMembershipHistoryWhereInput { - not: OrgMembershipHistoryWhereInput - and: [OrgMembershipHistoryWhereInput!] - or: [OrgMembershipHistoryWhereInput!] +input InternalPolicyHistoryWhereInput { + not: InternalPolicyHistoryWhereInput + and: [InternalPolicyHistoryWhereInput!] + or: [InternalPolicyHistoryWhereInput!] """ id field predicates """ @@ -28716,10 +36047,10 @@ input OrgMembershipHistoryWhereInput { """ operation field predicates """ - operation: OrgMembershipHistoryOpType - operationNEQ: OrgMembershipHistoryOpType - operationIn: [OrgMembershipHistoryOpType!] - operationNotIn: [OrgMembershipHistoryOpType!] + operation: InternalPolicyHistoryOpType + operationNEQ: InternalPolicyHistoryOpType + operationIn: [InternalPolicyHistoryOpType!] + operationNotIn: [InternalPolicyHistoryOpType!] """ created_at field predicates """ @@ -28814,62 +36145,136 @@ input OrgMembershipHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - role field predicates + name field predicates """ - role: OrgMembershipHistoryRole - roleNEQ: OrgMembershipHistoryRole - roleIn: [OrgMembershipHistoryRole!] - roleNotIn: [OrgMembershipHistoryRole!] + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - organization_id field predicates + description field predicates """ - organizationID: String - organizationIDNEQ: String - organizationIDIn: [String!] - organizationIDNotIn: [String!] - organizationIDGT: String - organizationIDGTE: String - organizationIDLT: String - organizationIDLTE: String - organizationIDContains: String - organizationIDHasPrefix: String - organizationIDHasSuffix: String - organizationIDEqualFold: String - organizationIDContainsFold: String + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionEqualFold: String + descriptionContainsFold: String """ - user_id field predicates + status field predicates """ - userID: String - userIDNEQ: String - userIDIn: [String!] - userIDNotIn: [String!] - userIDGT: String - userIDGTE: String - userIDLT: String - userIDLTE: String - userIDContains: String - userIDHasPrefix: String - userIDHasSuffix: String - userIDEqualFold: String - userIDContainsFold: String -} -""" -OrgMembershipRole is enum for the field role -""" -enum OrgMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER - OWNER + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + policy_type field predicates + """ + policyType: String + policyTypeNEQ: String + policyTypeIn: [String!] + policyTypeNotIn: [String!] + policyTypeGT: String + policyTypeGTE: String + policyTypeLT: String + policyTypeLTE: String + policyTypeContains: String + policyTypeHasPrefix: String + policyTypeHasSuffix: String + policyTypeIsNil: Boolean + policyTypeNotNil: Boolean + policyTypeEqualFold: String + policyTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String } """ -OrgMembershipWhereInput is used for filtering OrgMembership objects. +InternalPolicyWhereInput is used for filtering InternalPolicy objects. Input was generated by ent. """ -input OrgMembershipWhereInput { - not: OrgMembershipWhereInput - and: [OrgMembershipWhereInput!] - or: [OrgMembershipWhereInput!] +input InternalPolicyWhereInput { + not: InternalPolicyWhereInput + and: [InternalPolicyWhereInput!] + or: [InternalPolicyWhereInput!] """ id field predicates """ @@ -28977,185 +36382,192 @@ input OrgMembershipWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - role field predicates - """ - role: OrgMembershipRole - roleNEQ: OrgMembershipRole - roleIn: [OrgMembershipRole!] - roleNotIn: [OrgMembershipRole!] -} -type Organization implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the name of the organization - """ - name: String! - """ - The organization's displayed 'friendly' name + name field predicates """ - displayName: String! + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - An optional description of the organization + description field predicates """ description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionEqualFold: String + descriptionContainsFold: String """ - orgs directly associated with a user - """ - personalOrg: Boolean - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - Whether the organization has a dedicated database - """ - dedicatedDb: Boolean! - parent: Organization - children( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Organizations returned from the connection. - """ - orderBy: OrganizationOrder - - """ - Filtering options for Organizations returned from the connection. - """ - where: OrganizationWhereInput - ): OrganizationConnection! - groups: [Group!] - templates: [Template!] - integrations: [Integration!] - setting: OrganizationSetting - documentdata: [DocumentData!] - entitlements: [Entitlement!] - organizationEntitlement: [Entitlement!] - personalAccessTokens: [PersonalAccessToken!] - apiTokens: [APIToken!] - oauthprovider: [OauthProvider!] - users: [User!] - invites: [Invite!] - subscribers: [Subscriber!] - webhooks: [Webhook!] - events: [Event!] - secrets: [Hush!] - features: [Feature!] - files: [File!] - entitlementplans: [EntitlementPlan!] - entitlementplanfeatures: [EntitlementPlanFeature!] - entities: [Entity!] - entitytypes: [EntityType!] - contacts: [Contact!] - notes: [Note!] - members: [OrgMembership!] -} -""" -A connection to a list of items. -""" -type OrganizationConnection { - """ - A list of edges. - """ - edges: [OrganizationEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. + status field predicates """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrganizationEdge { + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - The item at the end of the edge. + policy_type field predicates + """ + policyType: String + policyTypeNEQ: String + policyTypeIn: [String!] + policyTypeNotIn: [String!] + policyTypeGT: String + policyTypeGTE: String + policyTypeLT: String + policyTypeLTE: String + policyTypeContains: String + policyTypeHasPrefix: String + policyTypeHasSuffix: String + policyTypeIsNil: Boolean + policyTypeNotNil: Boolean + policyTypeEqualFold: String + policyTypeContainsFold: String """ - node: Organization + version field predicates """ - A cursor for use in pagination. + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - cursor: Cursor! + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + controlobjectives edge predicates + """ + hasControlobjectives: Boolean + hasControlobjectivesWith: [ControlObjectiveWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] } -type OrganizationHistory implements Node { +type Invite implements Node { id: ID! - historyTime: Time! - ref: String - operation: OrganizationHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - """ - tags associated with the object - """ - tags: [String!] deletedAt: Time deletedBy: String """ - the name of the organization + the organization id that owns the object """ - name: String! + ownerID: ID """ - The organization's displayed 'friendly' name + the expiration date of the invitation token which defaults to 14 days in the future from creation """ - displayName: String! + expires: Time """ - An optional description of the organization + the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization """ - description: String + recipient: String! """ - orgs directly associated with a user + the status of the invitation """ - personalOrg: Boolean + status: InviteInviteStatus! + role: InviteRole! """ - URL of the user's remote avatar + the number of attempts made to perform email send of the invitation, maximum of 5 """ - avatarRemoteURL: String + sendAttempts: Int! """ - Whether the organization has a dedicated database + the user who initiated the invitation """ - dedicatedDb: Boolean! + requestorID: String + owner: Organization + events: [Event!] } """ A connection to a list of items. """ -type OrganizationHistoryConnection { +type InviteConnection { """ A list of edges. """ - edges: [OrganizationHistoryEdge] + edges: [InviteEdge] """ Information to aid in pagination. """ @@ -29168,52 +36580,41 @@ type OrganizationHistoryConnection { """ An edge in a connection. """ -type OrganizationHistoryEdge { +type InviteEdge { """ The item at the end of the edge. """ - node: OrganizationHistory + node: Invite """ A cursor for use in pagination. """ cursor: Cursor! } """ -OrganizationHistoryOpType is enum for the field operation -""" -enum OrganizationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for OrganizationHistory connections +InviteInviteStatus is enum for the field status """ -input OrganizationHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order OrganizationHistories. - """ - field: OrganizationHistoryOrderField! +enum InviteInviteStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.InviteStatus") { + INVITATION_SENT + APPROVAL_REQUIRED + INVITATION_ACCEPTED + INVITATION_EXPIRED } """ -Properties by which OrganizationHistory connections can be ordered. +InviteRole is enum for the field role """ -enum OrganizationHistoryOrderField { - name - display_name +enum InviteRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER } """ -OrganizationHistoryWhereInput is used for filtering OrganizationHistory objects. +InviteWhereInput is used for filtering Invite objects. Input was generated by ent. """ -input OrganizationHistoryWhereInput { - not: OrganizationHistoryWhereInput - and: [OrganizationHistoryWhereInput!] - or: [OrganizationHistoryWhereInput!] +input InviteWhereInput { + not: InviteWhereInput + and: [InviteWhereInput!] + or: [InviteWhereInput!] """ id field predicates """ @@ -29228,42 +36629,6 @@ input OrganizationHistoryWhereInput { idEqualFold: ID idContainsFold: ID """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: OrganizationHistoryOpType - operationNEQ: OrganizationHistoryOpType - operationIn: [OrganizationHistoryOpType!] - operationNotIn: [OrganizationHistoryOpType!] - """ created_at field predicates """ createdAt: Time @@ -29357,140 +36722,155 @@ input OrganizationHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String - """ - parent_organization_id field predicates - """ - parentOrganizationID: ID - parentOrganizationIDNEQ: ID - parentOrganizationIDIn: [ID!] - parentOrganizationIDNotIn: [ID!] - parentOrganizationIDGT: ID - parentOrganizationIDGTE: ID - parentOrganizationIDLT: ID - parentOrganizationIDLTE: ID - parentOrganizationIDContains: ID - parentOrganizationIDHasPrefix: ID - parentOrganizationIDHasSuffix: ID - parentOrganizationIDIsNil: Boolean - parentOrganizationIDNotNil: Boolean - parentOrganizationIDEqualFold: ID - parentOrganizationIDContainsFold: ID + owner_id field predicates """ - personal_org field predicates + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - personalOrg: Boolean - personalOrgNEQ: Boolean - personalOrgIsNil: Boolean - personalOrgNotNil: Boolean + expires field predicates """ - avatar_remote_url field predicates + expires: Time + expiresNEQ: Time + expiresIn: [Time!] + expiresNotIn: [Time!] + expiresGT: Time + expiresGTE: Time + expiresLT: Time + expiresLTE: Time + expiresIsNil: Boolean + expiresNotNil: Boolean """ - avatarRemoteURL: String - avatarRemoteURLNEQ: String - avatarRemoteURLIn: [String!] - avatarRemoteURLNotIn: [String!] - avatarRemoteURLGT: String - avatarRemoteURLGTE: String - avatarRemoteURLLT: String - avatarRemoteURLLTE: String - avatarRemoteURLContains: String - avatarRemoteURLHasPrefix: String - avatarRemoteURLHasSuffix: String - avatarRemoteURLIsNil: Boolean - avatarRemoteURLNotNil: Boolean - avatarRemoteURLEqualFold: String - avatarRemoteURLContainsFold: String -} -""" -Ordering options for Organization connections -""" -input OrganizationOrder { + recipient field predicates """ - The ordering direction. + recipient: String + recipientNEQ: String + recipientIn: [String!] + recipientNotIn: [String!] + recipientGT: String + recipientGTE: String + recipientLT: String + recipientLTE: String + recipientContains: String + recipientHasPrefix: String + recipientHasSuffix: String + recipientEqualFold: String + recipientContainsFold: String """ - direction: OrderDirection! = ASC + status field predicates """ - The field by which to order Organizations. + status: InviteInviteStatus + statusNEQ: InviteInviteStatus + statusIn: [InviteInviteStatus!] + statusNotIn: [InviteInviteStatus!] """ - field: OrganizationOrderField! + role field predicates + """ + role: InviteRole + roleNEQ: InviteRole + roleIn: [InviteRole!] + roleNotIn: [InviteRole!] + """ + send_attempts field predicates + """ + sendAttempts: Int + sendAttemptsNEQ: Int + sendAttemptsIn: [Int!] + sendAttemptsNotIn: [Int!] + sendAttemptsGT: Int + sendAttemptsGTE: Int + sendAttemptsLT: Int + sendAttemptsLTE: Int + """ + requestor_id field predicates + """ + requestorID: String + requestorIDNEQ: String + requestorIDIn: [String!] + requestorIDNotIn: [String!] + requestorIDGT: String + requestorIDGTE: String + requestorIDLT: String + requestorIDLTE: String + requestorIDContains: String + requestorIDHasPrefix: String + requestorIDHasSuffix: String + requestorIDIsNil: Boolean + requestorIDNotNil: Boolean + requestorIDEqualFold: String + requestorIDContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] } """ -Properties by which Organization connections can be ordered. +A valid JSON string. """ -enum OrganizationOrderField { - name - display_name -} -type OrganizationSetting implements Node { +scalar JSON +""" +The builtin Map type +""" +scalar Map +type Narrative implements Node { id: ID! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - """ - tags associated with the object - """ - tags: [String!] deletedAt: Time deletedBy: String """ - domains associated with the organization - """ - domains: [String!] - """ - Name of the person to contact for billing - """ - billingContact: String - """ - Email address of the person to contact for billing - """ - billingEmail: String - """ - Phone number to contact for billing + tags associated with the object """ - billingPhone: String + tags: [String!] """ - Address to send billing information to + the name of the narrative """ - billingAddress: String + name: String! """ - Usually government-issued tax ID or business ID such as ABN in Australia + the description of the narrative """ - taxIdentifier: String + description: String """ - geographical location of the organization + which controls are satisfied by the narrative """ - geoLocation: OrganizationSettingRegion + satisfies: String """ - the ID of the organization the settings belong to + json data for the narrative document """ - organizationID: ID - organization: Organization - files: [File!] + details: Map + policy: [InternalPolicy!] + control: [Control!] + procedure: [Procedure!] + controlobjective: [ControlObjective!] } """ A connection to a list of items. """ -type OrganizationSettingConnection { +type NarrativeConnection { """ A list of edges. """ - edges: [OrganizationSettingEdge] + edges: [NarrativeEdge] """ Information to aid in pagination. """ @@ -29503,72 +36883,56 @@ type OrganizationSettingConnection { """ An edge in a connection. """ -type OrganizationSettingEdge { +type NarrativeEdge { """ The item at the end of the edge. """ - node: OrganizationSetting + node: Narrative """ A cursor for use in pagination. """ cursor: Cursor! } -type OrganizationSettingHistory implements Node { +type NarrativeHistory implements Node { id: ID! historyTime: Time! ref: String - operation: OrganizationSettingHistoryOpType! + operation: NarrativeHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - """ - tags associated with the object - """ - tags: [String!] deletedAt: Time deletedBy: String """ - domains associated with the organization - """ - domains: [String!] - """ - Name of the person to contact for billing - """ - billingContact: String - """ - Email address of the person to contact for billing - """ - billingEmail: String - """ - Phone number to contact for billing + tags associated with the object """ - billingPhone: String + tags: [String!] """ - Address to send billing information to + the name of the narrative """ - billingAddress: String + name: String! """ - Usually government-issued tax ID or business ID such as ABN in Australia + the description of the narrative """ - taxIdentifier: String + description: String """ - geographical location of the organization + which controls are satisfied by the narrative """ - geoLocation: OrganizationSettingHistoryRegion + satisfies: String """ - the ID of the organization the settings belong to + json data for the narrative document """ - organizationID: String + details: Map } """ A connection to a list of items. """ -type OrganizationSettingHistoryConnection { +type NarrativeHistoryConnection { """ A list of edges. """ - edges: [OrganizationSettingHistoryEdge] + edges: [NarrativeHistoryEdge] """ Information to aid in pagination. """ @@ -29581,40 +36945,32 @@ type OrganizationSettingHistoryConnection { """ An edge in a connection. """ -type OrganizationSettingHistoryEdge { +type NarrativeHistoryEdge { """ The item at the end of the edge. """ - node: OrganizationSettingHistory + node: NarrativeHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -OrganizationSettingHistoryOpType is enum for the field operation +NarrativeHistoryOpType is enum for the field operation """ -enum OrganizationSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum NarrativeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -OrganizationSettingHistoryRegion is enum for the field geo_location -""" -enum OrganizationSettingHistoryRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { - AMER - EMEA - APAC -} -""" -OrganizationSettingHistoryWhereInput is used for filtering OrganizationSettingHistory objects. +NarrativeHistoryWhereInput is used for filtering NarrativeHistory objects. Input was generated by ent. """ -input OrganizationSettingHistoryWhereInput { - not: OrganizationSettingHistoryWhereInput - and: [OrganizationSettingHistoryWhereInput!] - or: [OrganizationSettingHistoryWhereInput!] +input NarrativeHistoryWhereInput { + not: NarrativeHistoryWhereInput + and: [NarrativeHistoryWhereInput!] + or: [NarrativeHistoryWhereInput!] """ id field predicates """ @@ -29660,10 +37016,10 @@ input OrganizationSettingHistoryWhereInput { """ operation field predicates """ - operation: OrganizationSettingHistoryOpType - operationNEQ: OrganizationSettingHistoryOpType - operationIn: [OrganizationSettingHistoryOpType!] - operationNotIn: [OrganizationSettingHistoryOpType!] + operation: NarrativeHistoryOpType + operationNEQ: NarrativeHistoryOpType + operationIn: [NarrativeHistoryOpType!] + operationNotIn: [NarrativeHistoryOpType!] """ created_at field predicates """ @@ -29758,139 +37114,66 @@ input OrganizationSettingHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - billing_contact field predicates - """ - billingContact: String - billingContactNEQ: String - billingContactIn: [String!] - billingContactNotIn: [String!] - billingContactGT: String - billingContactGTE: String - billingContactLT: String - billingContactLTE: String - billingContactContains: String - billingContactHasPrefix: String - billingContactHasSuffix: String - billingContactIsNil: Boolean - billingContactNotNil: Boolean - billingContactEqualFold: String - billingContactContainsFold: String - """ - billing_email field predicates - """ - billingEmail: String - billingEmailNEQ: String - billingEmailIn: [String!] - billingEmailNotIn: [String!] - billingEmailGT: String - billingEmailGTE: String - billingEmailLT: String - billingEmailLTE: String - billingEmailContains: String - billingEmailHasPrefix: String - billingEmailHasSuffix: String - billingEmailIsNil: Boolean - billingEmailNotNil: Boolean - billingEmailEqualFold: String - billingEmailContainsFold: String - """ - billing_phone field predicates - """ - billingPhone: String - billingPhoneNEQ: String - billingPhoneIn: [String!] - billingPhoneNotIn: [String!] - billingPhoneGT: String - billingPhoneGTE: String - billingPhoneLT: String - billingPhoneLTE: String - billingPhoneContains: String - billingPhoneHasPrefix: String - billingPhoneHasSuffix: String - billingPhoneIsNil: Boolean - billingPhoneNotNil: Boolean - billingPhoneEqualFold: String - billingPhoneContainsFold: String - """ - billing_address field predicates - """ - billingAddress: String - billingAddressNEQ: String - billingAddressIn: [String!] - billingAddressNotIn: [String!] - billingAddressGT: String - billingAddressGTE: String - billingAddressLT: String - billingAddressLTE: String - billingAddressContains: String - billingAddressHasPrefix: String - billingAddressHasSuffix: String - billingAddressIsNil: Boolean - billingAddressNotNil: Boolean - billingAddressEqualFold: String - billingAddressContainsFold: String - """ - tax_identifier field predicates - """ - taxIdentifier: String - taxIdentifierNEQ: String - taxIdentifierIn: [String!] - taxIdentifierNotIn: [String!] - taxIdentifierGT: String - taxIdentifierGTE: String - taxIdentifierLT: String - taxIdentifierLTE: String - taxIdentifierContains: String - taxIdentifierHasPrefix: String - taxIdentifierHasSuffix: String - taxIdentifierIsNil: Boolean - taxIdentifierNotNil: Boolean - taxIdentifierEqualFold: String - taxIdentifierContainsFold: String + name field predicates """ - geo_location field predicates + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - geoLocation: OrganizationSettingHistoryRegion - geoLocationNEQ: OrganizationSettingHistoryRegion - geoLocationIn: [OrganizationSettingHistoryRegion!] - geoLocationNotIn: [OrganizationSettingHistoryRegion!] - geoLocationIsNil: Boolean - geoLocationNotNil: Boolean + description field predicates """ - organization_id field predicates + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - organizationID: String - organizationIDNEQ: String - organizationIDIn: [String!] - organizationIDNotIn: [String!] - organizationIDGT: String - organizationIDGTE: String - organizationIDLT: String - organizationIDLTE: String - organizationIDContains: String - organizationIDHasPrefix: String - organizationIDHasSuffix: String - organizationIDIsNil: Boolean - organizationIDNotNil: Boolean - organizationIDEqualFold: String - organizationIDContainsFold: String -} -""" -OrganizationSettingRegion is enum for the field geo_location -""" -enum OrganizationSettingRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { - AMER - EMEA - APAC + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String } """ -OrganizationSettingWhereInput is used for filtering OrganizationSetting objects. +NarrativeWhereInput is used for filtering Narrative objects. Input was generated by ent. """ -input OrganizationSettingWhereInput { - not: OrganizationSettingWhereInput - and: [OrganizationSettingWhereInput!] - or: [OrganizationSettingWhereInput!] +input NarrativeWhereInput { + not: NarrativeWhereInput + and: [NarrativeWhereInput!] + or: [NarrativeWhereInput!] """ id field predicates """ @@ -29998,141 +37281,212 @@ input OrganizationSettingWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - billing_contact field predicates + name field predicates """ - billingContact: String - billingContactNEQ: String - billingContactIn: [String!] - billingContactNotIn: [String!] - billingContactGT: String - billingContactGTE: String - billingContactLT: String - billingContactLTE: String - billingContactContains: String - billingContactHasPrefix: String - billingContactHasSuffix: String - billingContactIsNil: Boolean - billingContactNotNil: Boolean - billingContactEqualFold: String - billingContactContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - billing_email field predicates + description field predicates """ - billingEmail: String - billingEmailNEQ: String - billingEmailIn: [String!] - billingEmailNotIn: [String!] - billingEmailGT: String - billingEmailGTE: String - billingEmailLT: String - billingEmailLTE: String - billingEmailContains: String - billingEmailHasPrefix: String - billingEmailHasSuffix: String - billingEmailIsNil: Boolean - billingEmailNotNil: Boolean - billingEmailEqualFold: String - billingEmailContainsFold: String + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - billing_phone field predicates + satisfies field predicates """ - billingPhone: String - billingPhoneNEQ: String - billingPhoneIn: [String!] - billingPhoneNotIn: [String!] - billingPhoneGT: String - billingPhoneGTE: String - billingPhoneLT: String - billingPhoneLTE: String - billingPhoneContains: String - billingPhoneHasPrefix: String - billingPhoneHasSuffix: String - billingPhoneIsNil: Boolean - billingPhoneNotNil: Boolean - billingPhoneEqualFold: String - billingPhoneContainsFold: String + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String """ - billing_address field predicates + policy edge predicates """ - billingAddress: String - billingAddressNEQ: String - billingAddressIn: [String!] - billingAddressNotIn: [String!] - billingAddressGT: String - billingAddressGTE: String - billingAddressLT: String - billingAddressLTE: String - billingAddressContains: String - billingAddressHasPrefix: String - billingAddressHasSuffix: String - billingAddressIsNil: Boolean - billingAddressNotNil: Boolean - billingAddressEqualFold: String - billingAddressContainsFold: String + hasPolicy: Boolean + hasPolicyWith: [InternalPolicyWhereInput!] """ - tax_identifier field predicates + control edge predicates """ - taxIdentifier: String - taxIdentifierNEQ: String - taxIdentifierIn: [String!] - taxIdentifierNotIn: [String!] - taxIdentifierGT: String - taxIdentifierGTE: String - taxIdentifierLT: String - taxIdentifierLTE: String - taxIdentifierContains: String - taxIdentifierHasPrefix: String - taxIdentifierHasSuffix: String - taxIdentifierIsNil: Boolean - taxIdentifierNotNil: Boolean - taxIdentifierEqualFold: String - taxIdentifierContainsFold: String + hasControl: Boolean + hasControlWith: [ControlWhereInput!] """ - geo_location field predicates + procedure edge predicates """ - geoLocation: OrganizationSettingRegion - geoLocationNEQ: OrganizationSettingRegion - geoLocationIn: [OrganizationSettingRegion!] - geoLocationNotIn: [OrganizationSettingRegion!] - geoLocationIsNil: Boolean - geoLocationNotNil: Boolean + hasProcedure: Boolean + hasProcedureWith: [ProcedureWhereInput!] """ - organization_id field predicates + controlobjective edge predicates """ - organizationID: ID - organizationIDNEQ: ID - organizationIDIn: [ID!] - organizationIDNotIn: [ID!] - organizationIDGT: ID - organizationIDGTE: ID - organizationIDLT: ID - organizationIDLTE: ID - organizationIDContains: ID - organizationIDHasPrefix: ID - organizationIDHasSuffix: ID - organizationIDIsNil: Boolean - organizationIDNotNil: Boolean - organizationIDEqualFold: ID - organizationIDContainsFold: ID + hasControlobjective: Boolean + hasControlobjectiveWith: [ControlObjectiveWhereInput!] +} +""" +An object with an ID. +Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) +""" +interface Node @goModel(model: "github.com/theopenlane/core/internal/ent/generated.Noder") { """ - organization edge predicates + The id of the object. """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] + id: ID! +} +type Note implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - files edge predicates + tags associated with the object """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the text of the note + """ + text: String! + owner: Organization + entity: Entity + subcontrols: [Subcontrol!] } """ -OrganizationWhereInput is used for filtering Organization objects. +A connection to a list of items. +""" +type NoteConnection { + """ + A list of edges. + """ + edges: [NoteEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NoteEdge { + """ + The item at the end of the edge. + """ + node: Note + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type NoteHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: NoteHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the text of the note + """ + text: String! +} +""" +A connection to a list of items. +""" +type NoteHistoryConnection { + """ + A list of edges. + """ + edges: [NoteHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NoteHistoryEdge { + """ + The item at the end of the edge. + """ + node: NoteHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +NoteHistoryOpType is enum for the field operation +""" +enum NoteHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +NoteHistoryWhereInput is used for filtering NoteHistory objects. Input was generated by ent. """ -input OrganizationWhereInput { - not: OrganizationWhereInput - and: [OrganizationWhereInput!] - or: [OrganizationWhereInput!] +input NoteHistoryWhereInput { + not: NoteHistoryWhereInput + and: [NoteHistoryWhereInput!] + or: [NoteHistoryWhereInput!] """ id field predicates """ @@ -30147,6 +37501,42 @@ input OrganizationWhereInput { idEqualFold: ID idContainsFold: ID """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: NoteHistoryOpType + operationNEQ: NoteHistoryOpType + operationIn: [NoteHistoryOpType!] + operationNotIn: [NoteHistoryOpType!] + """ created_at field predicates """ createdAt: Time @@ -30240,294 +37630,48 @@ input OrganizationWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String - """ - parent_organization_id field predicates - """ - parentOrganizationID: ID - parentOrganizationIDNEQ: ID - parentOrganizationIDIn: [ID!] - parentOrganizationIDNotIn: [ID!] - parentOrganizationIDGT: ID - parentOrganizationIDGTE: ID - parentOrganizationIDLT: ID - parentOrganizationIDLTE: ID - parentOrganizationIDContains: ID - parentOrganizationIDHasPrefix: ID - parentOrganizationIDHasSuffix: ID - parentOrganizationIDIsNil: Boolean - parentOrganizationIDNotNil: Boolean - parentOrganizationIDEqualFold: ID - parentOrganizationIDContainsFold: ID - """ - personal_org field predicates - """ - personalOrg: Boolean - personalOrgNEQ: Boolean - personalOrgIsNil: Boolean - personalOrgNotNil: Boolean - """ - avatar_remote_url field predicates - """ - avatarRemoteURL: String - avatarRemoteURLNEQ: String - avatarRemoteURLIn: [String!] - avatarRemoteURLNotIn: [String!] - avatarRemoteURLGT: String - avatarRemoteURLGTE: String - avatarRemoteURLLT: String - avatarRemoteURLLTE: String - avatarRemoteURLContains: String - avatarRemoteURLHasPrefix: String - avatarRemoteURLHasSuffix: String - avatarRemoteURLIsNil: Boolean - avatarRemoteURLNotNil: Boolean - avatarRemoteURLEqualFold: String - avatarRemoteURLContainsFold: String - """ - parent edge predicates - """ - hasParent: Boolean - hasParentWith: [OrganizationWhereInput!] - """ - children edge predicates - """ - hasChildren: Boolean - hasChildrenWith: [OrganizationWhereInput!] - """ - groups edge predicates - """ - hasGroups: Boolean - hasGroupsWith: [GroupWhereInput!] - """ - templates edge predicates - """ - hasTemplates: Boolean - hasTemplatesWith: [TemplateWhereInput!] - """ - integrations edge predicates - """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] - """ - setting edge predicates - """ - hasSetting: Boolean - hasSettingWith: [OrganizationSettingWhereInput!] - """ - documentdata edge predicates - """ - hasDocumentdata: Boolean - hasDocumentdataWith: [DocumentDataWhereInput!] - """ - entitlements edge predicates - """ - hasEntitlements: Boolean - hasEntitlementsWith: [EntitlementWhereInput!] - """ - organization_entitlement edge predicates - """ - hasOrganizationEntitlement: Boolean - hasOrganizationEntitlementWith: [EntitlementWhereInput!] - """ - personal_access_tokens edge predicates - """ - hasPersonalAccessTokens: Boolean - hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] - """ - api_tokens edge predicates - """ - hasAPITokens: Boolean - hasAPITokensWith: [APITokenWhereInput!] - """ - oauthprovider edge predicates - """ - hasOauthprovider: Boolean - hasOauthproviderWith: [OauthProviderWhereInput!] - """ - users edge predicates - """ - hasUsers: Boolean - hasUsersWith: [UserWhereInput!] - """ - invites edge predicates - """ - hasInvites: Boolean - hasInvitesWith: [InviteWhereInput!] - """ - subscribers edge predicates - """ - hasSubscribers: Boolean - hasSubscribersWith: [SubscriberWhereInput!] - """ - webhooks edge predicates - """ - hasWebhooks: Boolean - hasWebhooksWith: [WebhookWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] - """ - secrets edge predicates - """ - hasSecrets: Boolean - hasSecretsWith: [HushWhereInput!] - """ - features edge predicates - """ - hasFeatures: Boolean - hasFeaturesWith: [FeatureWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] - """ - entitlementplans edge predicates - """ - hasEntitlementplans: Boolean - hasEntitlementplansWith: [EntitlementPlanWhereInput!] - """ - entitlementplanfeatures edge predicates - """ - hasEntitlementplanfeatures: Boolean - hasEntitlementplanfeaturesWith: [EntitlementPlanFeatureWhereInput!] - """ - entities edge predicates - """ - hasEntities: Boolean - hasEntitiesWith: [EntityWhereInput!] - """ - entitytypes edge predicates - """ - hasEntitytypes: Boolean - hasEntitytypesWith: [EntityTypeWhereInput!] - """ - contacts edge predicates - """ - hasContacts: Boolean - hasContactsWith: [ContactWhereInput!] - """ - notes edge predicates - """ - hasNotes: Boolean - hasNotesWith: [NoteWhereInput!] - """ - members edge predicates - """ - hasMembers: Boolean - hasMembersWith: [OrgMembershipWhereInput!] -} -""" -Information about pagination in a connection. -https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo -""" -type PageInfo { - """ - When paginating forwards, are there more items? - """ - hasNextPage: Boolean! - """ - When paginating backwards, are there more items? - """ - hasPreviousPage: Boolean! - """ - When paginating backwards, the cursor to continue. - """ - startCursor: Cursor - """ - When paginating forwards, the cursor to continue. - """ - endCursor: Cursor -} -type PersonalAccessToken implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the name associated with the token - """ - name: String! - token: String! - """ - when the token expires - """ - expiresAt: Time - """ - a description of the token's purpose - """ - description: String - scopes: [String!] - lastUsedAt: Time - owner: User! - """ - the organization(s) the token is associated with - """ - organizations: [Organization!] - events: [Event!] -} -""" -A connection to a list of items. -""" -type PersonalAccessTokenConnection { - """ - A list of edges. - """ - edges: [PersonalAccessTokenEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type PersonalAccessTokenEdge { - """ - The item at the end of the edge. + owner_id field predicates """ - node: PersonalAccessToken + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ - A cursor for use in pagination. + text field predicates """ - cursor: Cursor! + text: String + textNEQ: String + textIn: [String!] + textNotIn: [String!] + textGT: String + textGTE: String + textLT: String + textLTE: String + textContains: String + textHasPrefix: String + textHasSuffix: String + textEqualFold: String + textContainsFold: String } """ -PersonalAccessTokenWhereInput is used for filtering PersonalAccessToken objects. +NoteWhereInput is used for filtering Note objects. Input was generated by ent. """ -input PersonalAccessTokenWhereInput { - not: PersonalAccessTokenWhereInput - and: [PersonalAccessTokenWhereInput!] - or: [PersonalAccessTokenWhereInput!] +input NoteWhereInput { + not: NoteWhereInput + and: [NoteWhereInput!] + or: [NoteWhereInput!] """ id field predicates """ @@ -30635,623 +37779,1508 @@ input PersonalAccessTokenWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - expires_at field predicates + owner_id field predicates """ - expiresAt: Time - expiresAtNEQ: Time - expiresAtIn: [Time!] - expiresAtNotIn: [Time!] - expiresAtGT: Time - expiresAtGTE: Time - expiresAtLT: Time - expiresAtLTE: Time - expiresAtIsNil: Boolean - expiresAtNotNil: Boolean + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - last_used_at field predicates + text field predicates """ - lastUsedAt: Time - lastUsedAtNEQ: Time - lastUsedAtIn: [Time!] - lastUsedAtNotIn: [Time!] - lastUsedAtGT: Time - lastUsedAtGTE: Time - lastUsedAtLT: Time - lastUsedAtLTE: Time - lastUsedAtIsNil: Boolean - lastUsedAtNotNil: Boolean + text: String + textNEQ: String + textIn: [String!] + textNotIn: [String!] + textGT: String + textGTE: String + textLT: String + textLTE: String + textContains: String + textHasPrefix: String + textHasSuffix: String + textEqualFold: String + textContainsFold: String """ owner edge predicates """ hasOwner: Boolean - hasOwnerWith: [UserWhereInput!] + hasOwnerWith: [OrganizationWhereInput!] """ - organizations edge predicates + entity edge predicates """ - hasOrganizations: Boolean - hasOrganizationsWith: [OrganizationWhereInput!] + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] +} +type OauthProvider implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the oauth provider's name + """ + name: String! + """ + the client id for the oauth provider + """ + clientID: String! + """ + the client secret + """ + clientSecret: String! + """ + the redirect url + """ + redirectURL: String! + """ + the scopes + """ + scopes: String! + """ + the auth url of the provider + """ + authURL: String! + """ + the token url of the provider + """ + tokenURL: String! + """ + the auth style, 0: auto detect 1: third party log in 2: log in with username and password + """ + authStyle: Uint! + """ + the URL to request user information by token + """ + infoURL: String! + owner: Organization +} +""" +A connection to a list of items. +""" +type OauthProviderConnection { + """ + A list of edges. + """ + edges: [OauthProviderEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OauthProviderEdge { + """ + The item at the end of the edge. + """ + node: OauthProvider + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OauthProviderHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OauthProviderHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the oauth provider's name + """ + name: String! + """ + the client id for the oauth provider + """ + clientID: String! + """ + the client secret + """ + clientSecret: String! + """ + the redirect url + """ + redirectURL: String! + """ + the scopes + """ + scopes: String! + """ + the auth url of the provider + """ + authURL: String! + """ + the token url of the provider + """ + tokenURL: String! + """ + the auth style, 0: auto detect 1: third party log in 2: log in with username and password + """ + authStyle: Uint! + """ + the URL to request user information by token + """ + infoURL: String! +} +""" +A connection to a list of items. +""" +type OauthProviderHistoryConnection { + """ + A list of edges. + """ + edges: [OauthProviderHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OauthProviderHistoryEdge { + """ + The item at the end of the edge. + """ + node: OauthProviderHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OauthProviderHistoryOpType is enum for the field operation +""" +enum OauthProviderHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OauthProviderHistoryWhereInput is used for filtering OauthProviderHistory objects. +Input was generated by ent. +""" +input OauthProviderHistoryWhereInput { + not: OauthProviderHistoryWhereInput + and: [OauthProviderHistoryWhereInput!] + or: [OauthProviderHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OauthProviderHistoryOpType + operationNEQ: OauthProviderHistoryOpType + operationIn: [OauthProviderHistoryOpType!] + operationNotIn: [OauthProviderHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + client_id field predicates + """ + clientID: String + clientIDNEQ: String + clientIDIn: [String!] + clientIDNotIn: [String!] + clientIDGT: String + clientIDGTE: String + clientIDLT: String + clientIDLTE: String + clientIDContains: String + clientIDHasPrefix: String + clientIDHasSuffix: String + clientIDEqualFold: String + clientIDContainsFold: String + """ + client_secret field predicates + """ + clientSecret: String + clientSecretNEQ: String + clientSecretIn: [String!] + clientSecretNotIn: [String!] + clientSecretGT: String + clientSecretGTE: String + clientSecretLT: String + clientSecretLTE: String + clientSecretContains: String + clientSecretHasPrefix: String + clientSecretHasSuffix: String + clientSecretEqualFold: String + clientSecretContainsFold: String + """ + redirect_url field predicates + """ + redirectURL: String + redirectURLNEQ: String + redirectURLIn: [String!] + redirectURLNotIn: [String!] + redirectURLGT: String + redirectURLGTE: String + redirectURLLT: String + redirectURLLTE: String + redirectURLContains: String + redirectURLHasPrefix: String + redirectURLHasSuffix: String + redirectURLEqualFold: String + redirectURLContainsFold: String + """ + scopes field predicates + """ + scopes: String + scopesNEQ: String + scopesIn: [String!] + scopesNotIn: [String!] + scopesGT: String + scopesGTE: String + scopesLT: String + scopesLTE: String + scopesContains: String + scopesHasPrefix: String + scopesHasSuffix: String + scopesEqualFold: String + scopesContainsFold: String + """ + auth_url field predicates + """ + authURL: String + authURLNEQ: String + authURLIn: [String!] + authURLNotIn: [String!] + authURLGT: String + authURLGTE: String + authURLLT: String + authURLLTE: String + authURLContains: String + authURLHasPrefix: String + authURLHasSuffix: String + authURLEqualFold: String + authURLContainsFold: String + """ + token_url field predicates + """ + tokenURL: String + tokenURLNEQ: String + tokenURLIn: [String!] + tokenURLNotIn: [String!] + tokenURLGT: String + tokenURLGTE: String + tokenURLLT: String + tokenURLLTE: String + tokenURLContains: String + tokenURLHasPrefix: String + tokenURLHasSuffix: String + tokenURLEqualFold: String + tokenURLContainsFold: String + """ + auth_style field predicates + """ + authStyle: Uint + authStyleNEQ: Uint + authStyleIn: [Uint!] + authStyleNotIn: [Uint!] + authStyleGT: Uint + authStyleGTE: Uint + authStyleLT: Uint + authStyleLTE: Uint + """ + info_url field predicates + """ + infoURL: String + infoURLNEQ: String + infoURLIn: [String!] + infoURLNotIn: [String!] + infoURLGT: String + infoURLGTE: String + infoURLLT: String + infoURLLTE: String + infoURLContains: String + infoURLHasPrefix: String + infoURLHasSuffix: String + infoURLEqualFold: String + infoURLContainsFold: String +} +""" +OauthProviderWhereInput is used for filtering OauthProvider objects. +Input was generated by ent. +""" +input OauthProviderWhereInput { + not: OauthProviderWhereInput + and: [OauthProviderWhereInput!] + or: [OauthProviderWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + client_id field predicates + """ + clientID: String + clientIDNEQ: String + clientIDIn: [String!] + clientIDNotIn: [String!] + clientIDGT: String + clientIDGTE: String + clientIDLT: String + clientIDLTE: String + clientIDContains: String + clientIDHasPrefix: String + clientIDHasSuffix: String + clientIDEqualFold: String + clientIDContainsFold: String + """ + client_secret field predicates + """ + clientSecret: String + clientSecretNEQ: String + clientSecretIn: [String!] + clientSecretNotIn: [String!] + clientSecretGT: String + clientSecretGTE: String + clientSecretLT: String + clientSecretLTE: String + clientSecretContains: String + clientSecretHasPrefix: String + clientSecretHasSuffix: String + clientSecretEqualFold: String + clientSecretContainsFold: String + """ + redirect_url field predicates + """ + redirectURL: String + redirectURLNEQ: String + redirectURLIn: [String!] + redirectURLNotIn: [String!] + redirectURLGT: String + redirectURLGTE: String + redirectURLLT: String + redirectURLLTE: String + redirectURLContains: String + redirectURLHasPrefix: String + redirectURLHasSuffix: String + redirectURLEqualFold: String + redirectURLContainsFold: String + """ + scopes field predicates + """ + scopes: String + scopesNEQ: String + scopesIn: [String!] + scopesNotIn: [String!] + scopesGT: String + scopesGTE: String + scopesLT: String + scopesLTE: String + scopesContains: String + scopesHasPrefix: String + scopesHasSuffix: String + scopesEqualFold: String + scopesContainsFold: String + """ + auth_url field predicates + """ + authURL: String + authURLNEQ: String + authURLIn: [String!] + authURLNotIn: [String!] + authURLGT: String + authURLGTE: String + authURLLT: String + authURLLTE: String + authURLContains: String + authURLHasPrefix: String + authURLHasSuffix: String + authURLEqualFold: String + authURLContainsFold: String + """ + token_url field predicates + """ + tokenURL: String + tokenURLNEQ: String + tokenURLIn: [String!] + tokenURLNotIn: [String!] + tokenURLGT: String + tokenURLGTE: String + tokenURLLT: String + tokenURLLTE: String + tokenURLContains: String + tokenURLHasPrefix: String + tokenURLHasSuffix: String + tokenURLEqualFold: String + tokenURLContainsFold: String + """ + auth_style field predicates + """ + authStyle: Uint + authStyleNEQ: Uint + authStyleIn: [Uint!] + authStyleNotIn: [Uint!] + authStyleGT: Uint + authStyleGTE: Uint + authStyleLT: Uint + authStyleLTE: Uint + """ + info_url field predicates + """ + infoURL: String + infoURLNEQ: String + infoURLIn: [String!] + infoURLNotIn: [String!] + infoURLGT: String + infoURLGTE: String + infoURLLT: String + infoURLLTE: String + infoURLContains: String + infoURLHasPrefix: String + infoURLHasSuffix: String + infoURLEqualFold: String + infoURLContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] +} +type OhAuthTooToken implements Node { + id: ID! + """ + tags associated with the object + """ + tags: [String!] + clientID: String! + scopes: [String!] + nonce: String! + claimsUserID: String! + claimsUsername: String! + claimsEmail: String! + claimsEmailVerified: Boolean! + claimsGroups: [String!] + claimsPreferredUsername: String! + connectorID: String! + connectorData: [String!] + lastUsed: Time! + integration: [Integration!] + events: [Event!] +} +""" +A connection to a list of items. +""" +type OhAuthTooTokenConnection { + """ + A list of edges. + """ + edges: [OhAuthTooTokenEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OhAuthTooTokenEdge { + """ + The item at the end of the edge. + """ + node: OhAuthTooToken + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OhAuthTooTokenWhereInput is used for filtering OhAuthTooToken objects. +Input was generated by ent. +""" +input OhAuthTooTokenWhereInput { + not: OhAuthTooTokenWhereInput + and: [OhAuthTooTokenWhereInput!] + or: [OhAuthTooTokenWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + client_id field predicates + """ + clientID: String + clientIDNEQ: String + clientIDIn: [String!] + clientIDNotIn: [String!] + clientIDGT: String + clientIDGTE: String + clientIDLT: String + clientIDLTE: String + clientIDContains: String + clientIDHasPrefix: String + clientIDHasSuffix: String + clientIDEqualFold: String + clientIDContainsFold: String + """ + nonce field predicates + """ + nonce: String + nonceNEQ: String + nonceIn: [String!] + nonceNotIn: [String!] + nonceGT: String + nonceGTE: String + nonceLT: String + nonceLTE: String + nonceContains: String + nonceHasPrefix: String + nonceHasSuffix: String + nonceEqualFold: String + nonceContainsFold: String + """ + claims_user_id field predicates + """ + claimsUserID: String + claimsUserIDNEQ: String + claimsUserIDIn: [String!] + claimsUserIDNotIn: [String!] + claimsUserIDGT: String + claimsUserIDGTE: String + claimsUserIDLT: String + claimsUserIDLTE: String + claimsUserIDContains: String + claimsUserIDHasPrefix: String + claimsUserIDHasSuffix: String + claimsUserIDEqualFold: String + claimsUserIDContainsFold: String + """ + claims_username field predicates + """ + claimsUsername: String + claimsUsernameNEQ: String + claimsUsernameIn: [String!] + claimsUsernameNotIn: [String!] + claimsUsernameGT: String + claimsUsernameGTE: String + claimsUsernameLT: String + claimsUsernameLTE: String + claimsUsernameContains: String + claimsUsernameHasPrefix: String + claimsUsernameHasSuffix: String + claimsUsernameEqualFold: String + claimsUsernameContainsFold: String + """ + claims_email field predicates + """ + claimsEmail: String + claimsEmailNEQ: String + claimsEmailIn: [String!] + claimsEmailNotIn: [String!] + claimsEmailGT: String + claimsEmailGTE: String + claimsEmailLT: String + claimsEmailLTE: String + claimsEmailContains: String + claimsEmailHasPrefix: String + claimsEmailHasSuffix: String + claimsEmailEqualFold: String + claimsEmailContainsFold: String + """ + claims_email_verified field predicates + """ + claimsEmailVerified: Boolean + claimsEmailVerifiedNEQ: Boolean + """ + claims_preferred_username field predicates + """ + claimsPreferredUsername: String + claimsPreferredUsernameNEQ: String + claimsPreferredUsernameIn: [String!] + claimsPreferredUsernameNotIn: [String!] + claimsPreferredUsernameGT: String + claimsPreferredUsernameGTE: String + claimsPreferredUsernameLT: String + claimsPreferredUsernameLTE: String + claimsPreferredUsernameContains: String + claimsPreferredUsernameHasPrefix: String + claimsPreferredUsernameHasSuffix: String + claimsPreferredUsernameEqualFold: String + claimsPreferredUsernameContainsFold: String + """ + connector_id field predicates + """ + connectorID: String + connectorIDNEQ: String + connectorIDIn: [String!] + connectorIDNotIn: [String!] + connectorIDGT: String + connectorIDGTE: String + connectorIDLT: String + connectorIDLTE: String + connectorIDContains: String + connectorIDHasPrefix: String + connectorIDHasSuffix: String + connectorIDEqualFold: String + connectorIDContainsFold: String + """ + last_used field predicates + """ + lastUsed: Time + lastUsedNEQ: Time + lastUsedIn: [Time!] + lastUsedNotIn: [Time!] + lastUsedGT: Time + lastUsedGTE: Time + lastUsedLT: Time + lastUsedLTE: Time + """ + integration edge predicates + """ + hasIntegration: Boolean + hasIntegrationWith: [IntegrationWhereInput!] """ events edge predicates """ hasEvents: Boolean hasEventsWith: [EventWhereInput!] } -type Query { +""" +Possible directions in which to order a list of items when provided an ` + "`" + `orderBy` + "`" + ` argument. +""" +enum OrderDirection { """ - Fetches an object given its ID. + Specifies an ascending order for a given ` + "`" + `orderBy` + "`" + ` argument. """ - node( - """ - ID of the object. - """ - id: ID! - ): Node + ASC """ - Lookup nodes by a list of IDs. + Specifies a descending order for a given ` + "`" + `orderBy` + "`" + ` argument. """ - nodes( - """ - The list of node IDs. - """ - ids: [ID!]! - ): [Node]! - apiTokens( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for APITokens returned from the connection. - """ - where: APITokenWhereInput - ): APITokenConnection! - contacts( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Contacts returned from the connection. - """ - where: ContactWhereInput - ): ContactConnection! - contactHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for ContactHistories returned from the connection. - """ - where: ContactHistoryWhereInput - ): ContactHistoryConnection! - documentDataSlice( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for DocumentDataSlice returned from the connection. - """ - where: DocumentDataWhereInput - ): DocumentDataConnection! - documentDataHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for DocumentDataHistories returned from the connection. - """ - where: DocumentDataHistoryWhereInput - ): DocumentDataHistoryConnection! - entitlements( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Entitlements returned from the connection. - """ - where: EntitlementWhereInput - ): EntitlementConnection! - entitlementHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for EntitlementHistories returned from the connection. - """ - where: EntitlementHistoryWhereInput - ): EntitlementHistoryConnection! - entitlementPlans( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for EntitlementPlans returned from the connection. - """ - where: EntitlementPlanWhereInput - ): EntitlementPlanConnection! - entitlementPlanFeatures( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for EntitlementPlanFeatures returned from the connection. - """ - where: EntitlementPlanFeatureWhereInput - ): EntitlementPlanFeatureConnection! - entitlementPlanFeatureHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for EntitlementPlanFeatureHistories returned from the connection. - """ - where: EntitlementPlanFeatureHistoryWhereInput - ): EntitlementPlanFeatureHistoryConnection! - entitlementPlanHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for EntitlementPlanHistories returned from the connection. - """ - where: EntitlementPlanHistoryWhereInput - ): EntitlementPlanHistoryConnection! - entities( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Entities returned from the connection. - """ - orderBy: EntityOrder - - """ - Filtering options for Entities returned from the connection. - """ - where: EntityWhereInput - ): EntityConnection! - entityHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for EntityHistories returned from the connection. - """ - orderBy: EntityHistoryOrder - - """ - Filtering options for EntityHistories returned from the connection. - """ - where: EntityHistoryWhereInput - ): EntityHistoryConnection! - entityTypes( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for EntityTypes returned from the connection. - """ - orderBy: EntityTypeOrder - - """ - Filtering options for EntityTypes returned from the connection. - """ - where: EntityTypeWhereInput - ): EntityTypeConnection! - entityTypeHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for EntityTypeHistories returned from the connection. - """ - orderBy: EntityTypeHistoryOrder - - """ - Filtering options for EntityTypeHistories returned from the connection. - """ - where: EntityTypeHistoryWhereInput - ): EntityTypeHistoryConnection! - events( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Events returned from the connection. - """ - where: EventWhereInput - ): EventConnection! - eventHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for EventHistories returned from the connection. - """ - where: EventHistoryWhereInput - ): EventHistoryConnection! - features( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Features returned from the connection. - """ - where: FeatureWhereInput - ): FeatureConnection! - featureHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for FeatureHistories returned from the connection. - """ - where: FeatureHistoryWhereInput - ): FeatureHistoryConnection! - files( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Files returned from the connection. - """ - where: FileWhereInput - ): FileConnection! - fileHistories( + DESC +} +type OrgMembership implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: OrgMembershipRole! + organizationID: ID! + userID: ID! + organization: Organization! + user: User! + events: [Event!] +} +""" +A connection to a list of items. +""" +type OrgMembershipConnection { + """ + A list of edges. + """ + edges: [OrgMembershipEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrgMembershipEdge { + """ + The item at the end of the edge. + """ + node: OrgMembership + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrgMembershipHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrgMembershipHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: OrgMembershipHistoryRole! + organizationID: String! + userID: String! +} +""" +A connection to a list of items. +""" +type OrgMembershipHistoryConnection { + """ + A list of edges. + """ + edges: [OrgMembershipHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrgMembershipHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrgMembershipHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrgMembershipHistoryOpType is enum for the field operation +""" +enum OrgMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OrgMembershipHistoryRole is enum for the field role +""" +enum OrgMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER + OWNER +} +""" +OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. +Input was generated by ent. +""" +input OrgMembershipHistoryWhereInput { + not: OrgMembershipHistoryWhereInput + and: [OrgMembershipHistoryWhereInput!] + or: [OrgMembershipHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrgMembershipHistoryOpType + operationNEQ: OrgMembershipHistoryOpType + operationIn: [OrgMembershipHistoryOpType!] + operationNotIn: [OrgMembershipHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: OrgMembershipHistoryRole + roleNEQ: OrgMembershipHistoryRole + roleIn: [OrgMembershipHistoryRole!] + roleNotIn: [OrgMembershipHistoryRole!] + """ + organization_id field predicates + """ + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDEqualFold: String + organizationIDContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDEqualFold: String + userIDContainsFold: String +} +""" +OrgMembershipRole is enum for the field role +""" +enum OrgMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER + OWNER +} +""" +OrgMembershipWhereInput is used for filtering OrgMembership objects. +Input was generated by ent. +""" +input OrgMembershipWhereInput { + not: OrgMembershipWhereInput + and: [OrgMembershipWhereInput!] + or: [OrgMembershipWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: OrgMembershipRole + roleNEQ: OrgMembershipRole + roleIn: [OrgMembershipRole!] + roleNotIn: [OrgMembershipRole!] +} +type Organization implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the name of the organization + """ + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String! + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean! + parent: Organization + children( """ Returns the elements in the list that come after the specified cursor. """ @@ -31273,941 +39302,76 @@ type Query { last: Int """ - Filtering options for FileHistories returned from the connection. - """ - where: FileHistoryWhereInput - ): FileHistoryConnection! - groups( - """ - Returns the elements in the list that come after the specified cursor. + Ordering options for Organizations returned from the connection. """ - after: Cursor + orderBy: OrganizationOrder """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Groups returned from the connection. - """ - orderBy: GroupOrder - - """ - Filtering options for Groups returned from the connection. - """ - where: GroupWhereInput - ): GroupConnection! - groupHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for GroupHistories returned from the connection. - """ - orderBy: GroupHistoryOrder - - """ - Filtering options for GroupHistories returned from the connection. - """ - where: GroupHistoryWhereInput - ): GroupHistoryConnection! - groupMemberships( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for GroupMemberships returned from the connection. - """ - where: GroupMembershipWhereInput - ): GroupMembershipConnection! - groupMembershipHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for GroupMembershipHistories returned from the connection. - """ - where: GroupMembershipHistoryWhereInput - ): GroupMembershipHistoryConnection! - groupSettings( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for GroupSettings returned from the connection. - """ - where: GroupSettingWhereInput - ): GroupSettingConnection! - groupSettingHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for GroupSettingHistories returned from the connection. - """ - where: GroupSettingHistoryWhereInput - ): GroupSettingHistoryConnection! - hushes( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Hushes returned from the connection. - """ - orderBy: HushOrder - - """ - Filtering options for Hushes returned from the connection. - """ - where: HushWhereInput - ): HushConnection! - hushHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for HushHistories returned from the connection. - """ - orderBy: HushHistoryOrder - - """ - Filtering options for HushHistories returned from the connection. - """ - where: HushHistoryWhereInput - ): HushHistoryConnection! - integrations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Integrations returned from the connection. - """ - orderBy: IntegrationOrder - - """ - Filtering options for Integrations returned from the connection. - """ - where: IntegrationWhereInput - ): IntegrationConnection! - integrationHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for IntegrationHistories returned from the connection. - """ - orderBy: IntegrationHistoryOrder - - """ - Filtering options for IntegrationHistories returned from the connection. - """ - where: IntegrationHistoryWhereInput - ): IntegrationHistoryConnection! - invites( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Invites returned from the connection. - """ - where: InviteWhereInput - ): InviteConnection! - notes( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Notes returned from the connection. - """ - where: NoteWhereInput - ): NoteConnection! - noteHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for NoteHistories returned from the connection. - """ - where: NoteHistoryWhereInput - ): NoteHistoryConnection! - oauthProviders( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OauthProviders returned from the connection. - """ - where: OauthProviderWhereInput - ): OauthProviderConnection! - oauthProviderHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OauthProviderHistories returned from the connection. - """ - where: OauthProviderHistoryWhereInput - ): OauthProviderHistoryConnection! - ohAuthTooTokens( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OhAuthTooTokens returned from the connection. - """ - where: OhAuthTooTokenWhereInput - ): OhAuthTooTokenConnection! - orgMemberships( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OrgMemberships returned from the connection. - """ - where: OrgMembershipWhereInput - ): OrgMembershipConnection! - orgMembershipHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OrgMembershipHistories returned from the connection. - """ - where: OrgMembershipHistoryWhereInput - ): OrgMembershipHistoryConnection! - organizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Organizations returned from the connection. - """ - orderBy: OrganizationOrder - - """ - Filtering options for Organizations returned from the connection. + Filtering options for Organizations returned from the connection. """ where: OrganizationWhereInput ): OrganizationConnection! - organizationHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for OrganizationHistories returned from the connection. - """ - orderBy: OrganizationHistoryOrder - - """ - Filtering options for OrganizationHistories returned from the connection. - """ - where: OrganizationHistoryWhereInput - ): OrganizationHistoryConnection! - organizationSettings( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OrganizationSettings returned from the connection. - """ - where: OrganizationSettingWhereInput - ): OrganizationSettingConnection! - organizationSettingHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OrganizationSettingHistories returned from the connection. - """ - where: OrganizationSettingHistoryWhereInput - ): OrganizationSettingHistoryConnection! - personalAccessTokens( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for PersonalAccessTokens returned from the connection. - """ - where: PersonalAccessTokenWhereInput - ): PersonalAccessTokenConnection! - subscribers( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Subscribers returned from the connection. - """ - where: SubscriberWhereInput - ): SubscriberConnection! - tfaSettings( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for TFASettings returned from the connection. - """ - where: TFASettingWhereInput - ): TFASettingConnection! - templates( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Templates returned from the connection. - """ - orderBy: TemplateOrder - - """ - Filtering options for Templates returned from the connection. - """ - where: TemplateWhereInput - ): TemplateConnection! - templateHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for TemplateHistories returned from the connection. - """ - orderBy: TemplateHistoryOrder - - """ - Filtering options for TemplateHistories returned from the connection. - """ - where: TemplateHistoryWhereInput - ): TemplateHistoryConnection! - users( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Users returned from the connection. - """ - orderBy: UserOrder - - """ - Filtering options for Users returned from the connection. - """ - where: UserWhereInput - ): UserConnection! - userHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for UserHistories returned from the connection. - """ - orderBy: UserHistoryOrder - - """ - Filtering options for UserHistories returned from the connection. - """ - where: UserHistoryWhereInput - ): UserHistoryConnection! - userSettings( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for UserSettings returned from the connection. - """ - where: UserSettingWhereInput - ): UserSettingConnection! - userSettingHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for UserSettingHistories returned from the connection. - """ - where: UserSettingHistoryWhereInput - ): UserSettingHistoryConnection! - webhooks( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Webhooks returned from the connection. - """ - orderBy: WebhookOrder - - """ - Filtering options for Webhooks returned from the connection. - """ - where: WebhookWhereInput - ): WebhookConnection! - webhookHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for WebhookHistories returned from the connection. - """ - orderBy: WebhookHistoryOrder - - """ - Filtering options for WebhookHistories returned from the connection. - """ - where: WebhookHistoryWhereInput - ): WebhookHistoryConnection! + groups: [Group!] + templates: [Template!] + integrations: [Integration!] + setting: OrganizationSetting + documentdata: [DocumentData!] + entitlements: [Entitlement!] + organizationEntitlement: [Entitlement!] + personalAccessTokens: [PersonalAccessToken!] + apiTokens: [APIToken!] + oauthprovider: [OauthProvider!] + users: [User!] + invites: [Invite!] + subscribers: [Subscriber!] + webhooks: [Webhook!] + events: [Event!] + secrets: [Hush!] + features: [Feature!] + files: [File!] + entitlementplans: [EntitlementPlan!] + entitlementplanfeatures: [EntitlementPlanFeature!] + entities: [Entity!] + entitytypes: [EntityType!] + contacts: [Contact!] + notes: [Note!] + members: [OrgMembership!] } -type Subscriber implements Node { +""" +A connection to a list of items. +""" +type OrganizationConnection { + """ + A list of edges. + """ + edges: [OrganizationEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationEdge { + """ + The item at the end of the edge. + """ + node: Organization + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrganizationHistory implements Node { id: ID! + historyTime: Time! + ref: String + operation: OrganizationHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -32219,40 +39383,38 @@ type Subscriber implements Node { deletedAt: Time deletedBy: String """ - the organization id that owns the object + the name of the organization """ - ownerID: ID + name: String! """ - email address of the subscriber + The organization's displayed 'friendly' name """ - email: String! + displayName: String! """ - phone number of the subscriber + An optional description of the organization """ - phoneNumber: String + description: String """ - indicates if the email address has been verified + orgs directly associated with a user """ - verifiedEmail: Boolean! + personalOrg: Boolean """ - indicates if the phone number has been verified + URL of the user's remote avatar """ - verifiedPhone: Boolean! + avatarRemoteURL: String """ - indicates if the subscriber is active or not, active users will have at least one verified contact method + Whether the organization has a dedicated database """ - active: Boolean! - owner: Organization - events: [Event!] + dedicatedDb: Boolean! } """ A connection to a list of items. """ -type SubscriberConnection { +type OrganizationHistoryConnection { """ A list of edges. """ - edges: [SubscriberEdge] + edges: [OrganizationHistoryEdge] """ Information to aid in pagination. """ @@ -32265,24 +39427,52 @@ type SubscriberConnection { """ An edge in a connection. """ -type SubscriberEdge { +type OrganizationHistoryEdge { """ The item at the end of the edge. """ - node: Subscriber + node: OrganizationHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -SubscriberWhereInput is used for filtering Subscriber objects. -Input was generated by ent. +OrganizationHistoryOpType is enum for the field operation """ -input SubscriberWhereInput { - not: SubscriberWhereInput - and: [SubscriberWhereInput!] - or: [SubscriberWhereInput!] +enum OrganizationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for OrganizationHistory connections +""" +input OrganizationHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order OrganizationHistories. + """ + field: OrganizationHistoryOrderField! +} +""" +Properties by which OrganizationHistory connections can be ordered. +""" +enum OrganizationHistoryOrderField { + name + display_name +} +""" +OrganizationHistoryWhereInput is used for filtering OrganizationHistory objects. +Input was generated by ent. +""" +input OrganizationHistoryWhereInput { + not: OrganizationHistoryWhereInput + and: [OrganizationHistoryWhereInput!] + or: [OrganizationHistoryWhereInput!] """ id field predicates """ @@ -32297,6 +39487,42 @@ input SubscriberWhereInput { idEqualFold: ID idContainsFold: ID """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrganizationHistoryOpType + operationNEQ: OrganizationHistoryOpType + operationIn: [OrganizationHistoryOpType!] + operationNotIn: [OrganizationHistoryOpType!] + """ created_at field predicates """ createdAt: Time @@ -32390,341 +39616,140 @@ input SubscriberWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - email field predicates - """ - email: String - emailNEQ: String - emailIn: [String!] - emailNotIn: [String!] - emailGT: String - emailGTE: String - emailLT: String - emailLTE: String - emailContains: String - emailHasPrefix: String - emailHasSuffix: String - emailEqualFold: String - emailContainsFold: String - """ - phone_number field predicates - """ - phoneNumber: String - phoneNumberNEQ: String - phoneNumberIn: [String!] - phoneNumberNotIn: [String!] - phoneNumberGT: String - phoneNumberGTE: String - phoneNumberLT: String - phoneNumberLTE: String - phoneNumberContains: String - phoneNumberHasPrefix: String - phoneNumberHasSuffix: String - phoneNumberIsNil: Boolean - phoneNumberNotNil: Boolean - phoneNumberEqualFold: String - phoneNumberContainsFold: String - """ - verified_email field predicates - """ - verifiedEmail: Boolean - verifiedEmailNEQ: Boolean - """ - verified_phone field predicates - """ - verifiedPhone: Boolean - verifiedPhoneNEQ: Boolean - """ - active field predicates - """ - active: Boolean - activeNEQ: Boolean - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] -} -type TFASetting implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - TFA secret for the user + display_name field predicates """ - tfaSecret: String + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String """ - specifies if the TFA device has been verified + parent_organization_id field predicates """ - verified: Boolean! + parentOrganizationID: ID + parentOrganizationIDNEQ: ID + parentOrganizationIDIn: [ID!] + parentOrganizationIDNotIn: [ID!] + parentOrganizationIDGT: ID + parentOrganizationIDGTE: ID + parentOrganizationIDLT: ID + parentOrganizationIDLTE: ID + parentOrganizationIDContains: ID + parentOrganizationIDHasPrefix: ID + parentOrganizationIDHasSuffix: ID + parentOrganizationIDIsNil: Boolean + parentOrganizationIDNotNil: Boolean + parentOrganizationIDEqualFold: ID + parentOrganizationIDContainsFold: ID """ - recovery codes for 2fa + personal_org field predicates """ - recoveryCodes: [String!] + personalOrg: Boolean + personalOrgNEQ: Boolean + personalOrgIsNil: Boolean + personalOrgNotNil: Boolean """ - specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + avatar_remote_url field predicates """ - totpAllowed: Boolean - owner: User + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String } """ -A connection to a list of items. +Ordering options for Organization connections """ -type TFASettingConnection { - """ - A list of edges. - """ - edges: [TFASettingEdge] +input OrganizationOrder { """ - Information to aid in pagination. + The ordering direction. """ - pageInfo: PageInfo! + direction: OrderDirection! = ASC """ - Identifies the total count of items in the connection. + The field by which to order Organizations. """ - totalCount: Int! + field: OrganizationOrderField! } """ -An edge in a connection. +Properties by which Organization connections can be ordered. """ -type TFASettingEdge { - """ - The item at the end of the edge. - """ - node: TFASetting - """ - A cursor for use in pagination. - """ - cursor: Cursor! +enum OrganizationOrderField { + name + display_name } -""" -TFASettingWhereInput is used for filtering TFASetting objects. -Input was generated by ent. -""" -input TFASettingWhereInput { - not: TFASettingWhereInput - and: [TFASettingWhereInput!] - or: [TFASettingWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ +type OrganizationSetting implements Node { + id: ID! createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String """ - deleted_at field predicates + tags associated with the object """ + tags: [String!] deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - tfa_secret field predicates """ - tfaSecret: String - tfaSecretNEQ: String - tfaSecretIn: [String!] - tfaSecretNotIn: [String!] - tfaSecretGT: String - tfaSecretGTE: String - tfaSecretLT: String - tfaSecretLTE: String - tfaSecretContains: String - tfaSecretHasPrefix: String - tfaSecretHasSuffix: String - tfaSecretIsNil: Boolean - tfaSecretNotNil: Boolean - tfaSecretEqualFold: String - tfaSecretContainsFold: String - """ - verified field predicates - """ - verified: Boolean - verifiedNEQ: Boolean - """ - totp_allowed field predicates - """ - totpAllowed: Boolean - totpAllowedNEQ: Boolean - totpAllowedIsNil: Boolean - totpAllowedNotNil: Boolean - """ - owner edge predicates + domains associated with the organization """ - hasOwner: Boolean - hasOwnerWith: [UserWhereInput!] -} -type Template implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String + domains: [String!] """ - tags associated with the object + Name of the person to contact for billing """ - tags: [String!] + billingContact: String """ - the organization id that owns the object + Email address of the person to contact for billing """ - ownerID: ID + billingEmail: String """ - the name of the template + Phone number to contact for billing """ - name: String! + billingPhone: String """ - the type of the template, either a provided template or an implementation (document) + Address to send billing information to """ - templateType: TemplateDocumentType! + billingAddress: String """ - the description of the template + Usually government-issued tax ID or business ID such as ABN in Australia """ - description: String + taxIdentifier: String """ - the jsonschema object of the template + geographical location of the organization """ - jsonconfig: JSON! + geoLocation: OrganizationSettingRegion """ - the uischema for the template to render in the UI + the ID of the organization the settings belong to """ - uischema: JSON - owner: Organization - documents: [DocumentData!] + organizationID: ID + organization: Organization files: [File!] } """ A connection to a list of items. """ -type TemplateConnection { +type OrganizationSettingConnection { """ A list of edges. """ - edges: [TemplateEdge] + edges: [OrganizationSettingEdge] """ Information to aid in pagination. """ @@ -32735,73 +39760,74 @@ type TemplateConnection { totalCount: Int! } """ -TemplateDocumentType is enum for the field template_type -""" -enum TemplateDocumentType @goModel(model: "github.com/theopenlane/core/pkg/enums.DocumentType") { - ROOTTEMPLATE - DOCUMENT -} -""" An edge in a connection. """ -type TemplateEdge { +type OrganizationSettingEdge { """ The item at the end of the edge. """ - node: Template + node: OrganizationSetting """ A cursor for use in pagination. """ cursor: Cursor! } -type TemplateHistory implements Node { +type OrganizationSettingHistory implements Node { id: ID! historyTime: Time! ref: String - operation: TemplateHistoryOpType! + operation: OrganizationSettingHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - deletedAt: Time - deletedBy: String """ tags associated with the object """ tags: [String!] + deletedAt: Time + deletedBy: String """ - the organization id that owns the object + domains associated with the organization """ - ownerID: String + domains: [String!] """ - the name of the template + Name of the person to contact for billing """ - name: String! + billingContact: String """ - the type of the template, either a provided template or an implementation (document) + Email address of the person to contact for billing """ - templateType: TemplateHistoryDocumentType! + billingEmail: String """ - the description of the template + Phone number to contact for billing """ - description: String + billingPhone: String """ - the jsonschema object of the template + Address to send billing information to """ - jsonconfig: JSON! + billingAddress: String """ - the uischema for the template to render in the UI + Usually government-issued tax ID or business ID such as ABN in Australia """ - uischema: JSON + taxIdentifier: String + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingHistoryRegion + """ + the ID of the organization the settings belong to + """ + organizationID: String } """ A connection to a list of items. """ -type TemplateHistoryConnection { +type OrganizationSettingHistoryConnection { """ A list of edges. """ - edges: [TemplateHistoryEdge] + edges: [OrganizationSettingHistoryEdge] """ Information to aid in pagination. """ @@ -32812,60 +39838,42 @@ type TemplateHistoryConnection { totalCount: Int! } """ -TemplateHistoryDocumentType is enum for the field template_type -""" -enum TemplateHistoryDocumentType @goModel(model: "github.com/theopenlane/core/pkg/enums.DocumentType") { - ROOTTEMPLATE - DOCUMENT -} -""" An edge in a connection. """ -type TemplateHistoryEdge { +type OrganizationSettingHistoryEdge { """ The item at the end of the edge. """ - node: TemplateHistory + node: OrganizationSettingHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -TemplateHistoryOpType is enum for the field operation +OrganizationSettingHistoryOpType is enum for the field operation """ -enum TemplateHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum OrganizationSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -Ordering options for TemplateHistory connections -""" -input TemplateHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order TemplateHistories. - """ - field: TemplateHistoryOrderField! -} -""" -Properties by which TemplateHistory connections can be ordered. +OrganizationSettingHistoryRegion is enum for the field geo_location """ -enum TemplateHistoryOrderField { - name +enum OrganizationSettingHistoryRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { + AMER + EMEA + APAC } """ -TemplateHistoryWhereInput is used for filtering TemplateHistory objects. +OrganizationSettingHistoryWhereInput is used for filtering OrganizationSettingHistory objects. Input was generated by ent. """ -input TemplateHistoryWhereInput { - not: TemplateHistoryWhereInput - and: [TemplateHistoryWhereInput!] - or: [TemplateHistoryWhereInput!] +input OrganizationSettingHistoryWhereInput { + not: OrganizationSettingHistoryWhereInput + and: [OrganizationSettingHistoryWhereInput!] + or: [OrganizationSettingHistoryWhereInput!] """ id field predicates """ @@ -32911,10 +39919,10 @@ input TemplateHistoryWhereInput { """ operation field predicates """ - operation: TemplateHistoryOpType - operationNEQ: TemplateHistoryOpType - operationIn: [TemplateHistoryOpType!] - operationNotIn: [TemplateHistoryOpType!] + operation: OrganizationSettingHistoryOpType + operationNEQ: OrganizationSettingHistoryOpType + operationIn: [OrganizationSettingHistoryOpType!] + operationNotIn: [OrganizationSettingHistoryOpType!] """ created_at field predicates """ @@ -33009,92 +40017,139 @@ input TemplateHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + billing_contact field predicates """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + billingContact: String + billingContactNEQ: String + billingContactIn: [String!] + billingContactNotIn: [String!] + billingContactGT: String + billingContactGTE: String + billingContactLT: String + billingContactLTE: String + billingContactContains: String + billingContactHasPrefix: String + billingContactHasSuffix: String + billingContactIsNil: Boolean + billingContactNotNil: Boolean + billingContactEqualFold: String + billingContactContainsFold: String """ - name field predicates + billing_email field predicates """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + billingEmail: String + billingEmailNEQ: String + billingEmailIn: [String!] + billingEmailNotIn: [String!] + billingEmailGT: String + billingEmailGTE: String + billingEmailLT: String + billingEmailLTE: String + billingEmailContains: String + billingEmailHasPrefix: String + billingEmailHasSuffix: String + billingEmailIsNil: Boolean + billingEmailNotNil: Boolean + billingEmailEqualFold: String + billingEmailContainsFold: String """ - template_type field predicates + billing_phone field predicates """ - templateType: TemplateHistoryDocumentType - templateTypeNEQ: TemplateHistoryDocumentType - templateTypeIn: [TemplateHistoryDocumentType!] - templateTypeNotIn: [TemplateHistoryDocumentType!] + billingPhone: String + billingPhoneNEQ: String + billingPhoneIn: [String!] + billingPhoneNotIn: [String!] + billingPhoneGT: String + billingPhoneGTE: String + billingPhoneLT: String + billingPhoneLTE: String + billingPhoneContains: String + billingPhoneHasPrefix: String + billingPhoneHasSuffix: String + billingPhoneIsNil: Boolean + billingPhoneNotNil: Boolean + billingPhoneEqualFold: String + billingPhoneContainsFold: String """ - description field predicates + billing_address field predicates """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String -} -""" -Ordering options for Template connections -""" -input TemplateOrder { + billingAddress: String + billingAddressNEQ: String + billingAddressIn: [String!] + billingAddressNotIn: [String!] + billingAddressGT: String + billingAddressGTE: String + billingAddressLT: String + billingAddressLTE: String + billingAddressContains: String + billingAddressHasPrefix: String + billingAddressHasSuffix: String + billingAddressIsNil: Boolean + billingAddressNotNil: Boolean + billingAddressEqualFold: String + billingAddressContainsFold: String """ - The ordering direction. + tax_identifier field predicates """ - direction: OrderDirection! = ASC + taxIdentifier: String + taxIdentifierNEQ: String + taxIdentifierIn: [String!] + taxIdentifierNotIn: [String!] + taxIdentifierGT: String + taxIdentifierGTE: String + taxIdentifierLT: String + taxIdentifierLTE: String + taxIdentifierContains: String + taxIdentifierHasPrefix: String + taxIdentifierHasSuffix: String + taxIdentifierIsNil: Boolean + taxIdentifierNotNil: Boolean + taxIdentifierEqualFold: String + taxIdentifierContainsFold: String """ - The field by which to order Templates. + geo_location field predicates """ - field: TemplateOrderField! + geoLocation: OrganizationSettingHistoryRegion + geoLocationNEQ: OrganizationSettingHistoryRegion + geoLocationIn: [OrganizationSettingHistoryRegion!] + geoLocationNotIn: [OrganizationSettingHistoryRegion!] + geoLocationIsNil: Boolean + geoLocationNotNil: Boolean + """ + organization_id field predicates + """ + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDIsNil: Boolean + organizationIDNotNil: Boolean + organizationIDEqualFold: String + organizationIDContainsFold: String } """ -Properties by which Template connections can be ordered. +OrganizationSettingRegion is enum for the field geo_location """ -enum TemplateOrderField { - name +enum OrganizationSettingRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { + AMER + EMEA + APAC } """ -TemplateWhereInput is used for filtering Template objects. +OrganizationSettingWhereInput is used for filtering OrganizationSetting objects. Input was generated by ent. """ -input TemplateWhereInput { - not: TemplateWhereInput - and: [TemplateWhereInput!] - or: [TemplateWhereInput!] +input OrganizationSettingWhereInput { + not: OrganizationSettingWhereInput + and: [OrganizationSettingWhereInput!] + or: [OrganizationSettingWhereInput!] """ id field predicates """ @@ -33202,1570 +40257,1174 @@ input TemplateWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates + billing_contact field predicates """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + billingContact: String + billingContactNEQ: String + billingContactIn: [String!] + billingContactNotIn: [String!] + billingContactGT: String + billingContactGTE: String + billingContactLT: String + billingContactLTE: String + billingContactContains: String + billingContactHasPrefix: String + billingContactHasSuffix: String + billingContactIsNil: Boolean + billingContactNotNil: Boolean + billingContactEqualFold: String + billingContactContainsFold: String """ - template_type field predicates + billing_email field predicates """ - templateType: TemplateDocumentType - templateTypeNEQ: TemplateDocumentType - templateTypeIn: [TemplateDocumentType!] - templateTypeNotIn: [TemplateDocumentType!] + billingEmail: String + billingEmailNEQ: String + billingEmailIn: [String!] + billingEmailNotIn: [String!] + billingEmailGT: String + billingEmailGTE: String + billingEmailLT: String + billingEmailLTE: String + billingEmailContains: String + billingEmailHasPrefix: String + billingEmailHasSuffix: String + billingEmailIsNil: Boolean + billingEmailNotNil: Boolean + billingEmailEqualFold: String + billingEmailContainsFold: String """ - description field predicates + billing_phone field predicates """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String + billingPhone: String + billingPhoneNEQ: String + billingPhoneIn: [String!] + billingPhoneNotIn: [String!] + billingPhoneGT: String + billingPhoneGTE: String + billingPhoneLT: String + billingPhoneLTE: String + billingPhoneContains: String + billingPhoneHasPrefix: String + billingPhoneHasSuffix: String + billingPhoneIsNil: Boolean + billingPhoneNotNil: Boolean + billingPhoneEqualFold: String + billingPhoneContainsFold: String """ - owner edge predicates + billing_address field predicates """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + billingAddress: String + billingAddressNEQ: String + billingAddressIn: [String!] + billingAddressNotIn: [String!] + billingAddressGT: String + billingAddressGTE: String + billingAddressLT: String + billingAddressLTE: String + billingAddressContains: String + billingAddressHasPrefix: String + billingAddressHasSuffix: String + billingAddressIsNil: Boolean + billingAddressNotNil: Boolean + billingAddressEqualFold: String + billingAddressContainsFold: String """ - documents edge predicates + tax_identifier field predicates """ - hasDocuments: Boolean - hasDocumentsWith: [DocumentDataWhereInput!] + taxIdentifier: String + taxIdentifierNEQ: String + taxIdentifierIn: [String!] + taxIdentifierNotIn: [String!] + taxIdentifierGT: String + taxIdentifierGTE: String + taxIdentifierLT: String + taxIdentifierLTE: String + taxIdentifierContains: String + taxIdentifierHasPrefix: String + taxIdentifierHasSuffix: String + taxIdentifierIsNil: Boolean + taxIdentifierNotNil: Boolean + taxIdentifierEqualFold: String + taxIdentifierContainsFold: String """ - files edge predicates + geo_location field predicates """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] -} -""" -The builtin Time type -""" -scalar Time -""" -The builtin Uint type -""" -scalar Uint -""" -UpdateAPITokenInput is used for update APIToken object. -Input was generated by ent. -""" -input UpdateAPITokenInput { + geoLocation: OrganizationSettingRegion + geoLocationNEQ: OrganizationSettingRegion + geoLocationIn: [OrganizationSettingRegion!] + geoLocationNotIn: [OrganizationSettingRegion!] + geoLocationIsNil: Boolean + geoLocationNotNil: Boolean """ - tags associated with the object + organization_id field predicates """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + organizationID: ID + organizationIDNEQ: ID + organizationIDIn: [ID!] + organizationIDNotIn: [ID!] + organizationIDGT: ID + organizationIDGTE: ID + organizationIDLT: ID + organizationIDLTE: ID + organizationIDContains: ID + organizationIDHasPrefix: ID + organizationIDHasSuffix: ID + organizationIDIsNil: Boolean + organizationIDNotNil: Boolean + organizationIDEqualFold: ID + organizationIDContainsFold: ID """ - the name associated with the token + organization edge predicates """ - name: String + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] """ - a description of the token's purpose + files edge predicates """ - description: String - clearDescription: Boolean - scopes: [String!] - appendScopes: [String!] - clearScopes: Boolean - lastUsedAt: Time - clearLastUsedAt: Boolean - ownerID: ID - clearOwner: Boolean + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] } """ -UpdateContactInput is used for update Contact object. +OrganizationWhereInput is used for filtering Organization objects. Input was generated by ent. """ -input UpdateContactInput { +input OrganizationWhereInput { + not: OrganizationWhereInput + and: [OrganizationWhereInput!] + or: [OrganizationWhereInput!] """ - tags associated with the object + id field predicates """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - the full name of the contact + created_at field predicates """ - fullName: String + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - the title of the contact + updated_at field predicates """ - title: String - clearTitle: Boolean + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - the company of the contact + created_by field predicates """ - company: String - clearCompany: Boolean + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - the email of the contact + updated_by field predicates """ - email: String - clearEmail: Boolean + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - the phone number of the contact + deleted_at field predicates """ - phoneNumber: String - clearPhoneNumber: Boolean + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - the address of the contact + deleted_by field predicates """ - address: String - clearAddress: Boolean + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - status of the contact + display_name field predicates """ - status: ContactUserStatus - ownerID: ID - clearOwner: Boolean - addEntityIDs: [ID!] - removeEntityIDs: [ID!] - clearEntities: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean -} -""" -UpdateDocumentDataInput is used for update DocumentData object. -Input was generated by ent. -""" -input UpdateDocumentDataInput { + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String """ - tags associated with the object + parent_organization_id field predicates """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + parentOrganizationID: ID + parentOrganizationIDNEQ: ID + parentOrganizationIDIn: [ID!] + parentOrganizationIDNotIn: [ID!] + parentOrganizationIDGT: ID + parentOrganizationIDGTE: ID + parentOrganizationIDLT: ID + parentOrganizationIDLTE: ID + parentOrganizationIDContains: ID + parentOrganizationIDHasPrefix: ID + parentOrganizationIDHasSuffix: ID + parentOrganizationIDIsNil: Boolean + parentOrganizationIDNotNil: Boolean + parentOrganizationIDEqualFold: ID + parentOrganizationIDContainsFold: ID """ - the json data of the document + personal_org field predicates """ - data: JSON - ownerID: ID - clearOwner: Boolean - templateID: ID - addEntityIDs: [ID!] - removeEntityIDs: [ID!] - clearEntity: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean -} -""" -UpdateEntitlementInput is used for update Entitlement object. -Input was generated by ent. -""" -input UpdateEntitlementInput { + personalOrg: Boolean + personalOrgNEQ: Boolean + personalOrgIsNil: Boolean + personalOrgNotNil: Boolean """ - tags associated with the object + avatar_remote_url field predicates """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String """ - used to store references to external systems, e.g. Stripe + parent edge predicates """ - externalCustomerID: String - clearExternalCustomerID: Boolean + hasParent: Boolean + hasParentWith: [OrganizationWhereInput!] """ - used to store references to external systems, e.g. Stripe + children edge predicates """ - externalSubscriptionID: String - clearExternalSubscriptionID: Boolean + hasChildren: Boolean + hasChildrenWith: [OrganizationWhereInput!] """ - the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + groups edge predicates """ - expiresAt: Time - clearExpiresAt: Boolean + hasGroups: Boolean + hasGroupsWith: [GroupWhereInput!] """ - whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + templates edge predicates """ - cancelled: Boolean - ownerID: ID - clearOwner: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateEntitlementPlanFeatureInput is used for update EntitlementPlanFeature object. -Input was generated by ent. -""" -input UpdateEntitlementPlanFeatureInput { + hasTemplates: Boolean + hasTemplatesWith: [TemplateWhereInput!] """ - tags associated with the object + integrations edge predicates """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] """ - metadata for the entitlement plan feature such as usage limits + setting edge predicates """ - metadata: Map - clearMetadata: Boolean - ownerID: ID - clearOwner: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateEntitlementPlanInput is used for update EntitlementPlan object. -Input was generated by ent. -""" -input UpdateEntitlementPlanInput { + hasSetting: Boolean + hasSettingWith: [OrganizationSettingWhereInput!] """ - tags associated with the object + documentdata edge predicates """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + hasDocumentdata: Boolean + hasDocumentdataWith: [DocumentDataWhereInput!] """ - the displayed 'friendly' name of the plan + entitlements edge predicates """ - displayName: String - clearDisplayName: Boolean + hasEntitlements: Boolean + hasEntitlementsWith: [EntitlementWhereInput!] """ - a description of the plan + organization_entitlement edge predicates """ - description: String - clearDescription: Boolean + hasOrganizationEntitlement: Boolean + hasOrganizationEntitlementWith: [EntitlementWhereInput!] """ - metadata for the plan + personal_access_tokens edge predicates """ - metadata: Map - clearMetadata: Boolean - ownerID: ID - clearOwner: Boolean - addEntitlementIDs: [ID!] - removeEntitlementIDs: [ID!] - clearEntitlements: Boolean - addBaseFeatureIDs: [ID!] - removeBaseFeatureIDs: [ID!] - clearBaseFeatures: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateEntityInput is used for update Entity object. -Input was generated by ent. -""" -input UpdateEntityInput { + hasPersonalAccessTokens: Boolean + hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] """ - tags associated with the object + api_tokens edge predicates """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + hasAPITokens: Boolean + hasAPITokensWith: [APITokenWhereInput!] """ - the name of the entity + oauthprovider edge predicates """ - name: String - clearName: Boolean + hasOauthprovider: Boolean + hasOauthproviderWith: [OauthProviderWhereInput!] """ - The entity's displayed 'friendly' name + users edge predicates """ - displayName: String - clearDisplayName: Boolean + hasUsers: Boolean + hasUsersWith: [UserWhereInput!] """ - An optional description of the entity + invites edge predicates """ - description: String - clearDescription: Boolean + hasInvites: Boolean + hasInvitesWith: [InviteWhereInput!] """ - domains associated with the entity + subscribers edge predicates """ - domains: [String!] - appendDomains: [String!] - clearDomains: Boolean + hasSubscribers: Boolean + hasSubscribersWith: [SubscriberWhereInput!] """ - status of the entity + webhooks edge predicates """ - status: String - clearStatus: Boolean - ownerID: ID - clearOwner: Boolean - addContactIDs: [ID!] - removeContactIDs: [ID!] - clearContacts: Boolean - addDocumentIDs: [ID!] - removeDocumentIDs: [ID!] - clearDocuments: Boolean - addNoteIDs: [ID!] - removeNoteIDs: [ID!] - clearNotes: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean - entityTypeID: ID - clearEntityType: Boolean -} -""" -UpdateEntityTypeInput is used for update EntityType object. -Input was generated by ent. -""" -input UpdateEntityTypeInput { + hasWebhooks: Boolean + hasWebhooksWith: [WebhookWhereInput!] """ - tags associated with the object + events edge predicates """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] """ - the name of the entity + secrets edge predicates """ - name: String - ownerID: ID - clearOwner: Boolean - addEntityIDs: [ID!] - removeEntityIDs: [ID!] - clearEntities: Boolean -} -""" -UpdateEventInput is used for update Event object. -Input was generated by ent. -""" -input UpdateEventInput { + hasSecrets: Boolean + hasSecretsWith: [HushWhereInput!] """ - tags associated with the object + features edge predicates """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - eventID: String - clearEventID: Boolean - correlationID: String - clearCorrelationID: Boolean - eventType: String - metadata: Map - clearMetadata: Boolean - addUserIDs: [ID!] - removeUserIDs: [ID!] - clearUser: Boolean - addGroupIDs: [ID!] - removeGroupIDs: [ID!] - clearGroup: Boolean - addIntegrationIDs: [ID!] - removeIntegrationIDs: [ID!] - clearIntegration: Boolean - addOrganizationIDs: [ID!] - removeOrganizationIDs: [ID!] - clearOrganization: Boolean - addInviteIDs: [ID!] - removeInviteIDs: [ID!] - clearInvite: Boolean - addFeatureIDs: [ID!] - removeFeatureIDs: [ID!] - clearFeature: Boolean - addEntitlementplanIDs: [ID!] - removeEntitlementplanIDs: [ID!] - clearEntitlementplan: Boolean - addPersonalAccessTokenIDs: [ID!] - removePersonalAccessTokenIDs: [ID!] - clearPersonalAccessToken: Boolean - addOauth2tokenIDs: [ID!] - removeOauth2tokenIDs: [ID!] - clearOauth2token: Boolean - addHushIDs: [ID!] - removeHushIDs: [ID!] - clearHush: Boolean - addEntitlementIDs: [ID!] - removeEntitlementIDs: [ID!] - clearEntitlement: Boolean - addWebhookIDs: [ID!] - removeWebhookIDs: [ID!] - clearWebhook: Boolean - addSubscriberIDs: [ID!] - removeSubscriberIDs: [ID!] - clearSubscriber: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFile: Boolean -} -""" -UpdateFeatureInput is used for update Feature object. -Input was generated by ent. -""" -input UpdateFeatureInput { + hasFeatures: Boolean + hasFeaturesWith: [FeatureWhereInput!] """ - tags associated with the object + files edge predicates """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] """ - the displayed 'friendly' name of the feature + entitlementplans edge predicates """ - displayName: String - clearDisplayName: Boolean + hasEntitlementplans: Boolean + hasEntitlementplansWith: [EntitlementPlanWhereInput!] """ - enabled features are available for use + entitlementplanfeatures edge predicates """ - enabled: Boolean + hasEntitlementplanfeatures: Boolean + hasEntitlementplanfeaturesWith: [EntitlementPlanFeatureWhereInput!] """ - a description of the feature + entities edge predicates """ - description: String - clearDescription: Boolean + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] """ - metadata for the feature + entitytypes edge predicates """ - metadata: Map - clearMetadata: Boolean - ownerID: ID - clearOwner: Boolean - addPlanIDs: [ID!] - removePlanIDs: [ID!] - clearPlans: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean + hasEntitytypes: Boolean + hasEntitytypesWith: [EntityTypeWhereInput!] + """ + contacts edge predicates + """ + hasContacts: Boolean + hasContactsWith: [ContactWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + members edge predicates + """ + hasMembers: Boolean + hasMembersWith: [OrgMembershipWhereInput!] } """ -UpdateFileInput is used for update File object. -Input was generated by ent. +Information about pagination in a connection. +https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo """ -input UpdateFileInput { +type PageInfo { """ - tags associated with the object + When paginating forwards, are there more items? """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + hasNextPage: Boolean! """ - the name of the file provided in the payload key without the extension + When paginating backwards, are there more items? """ - providedFileName: String + hasPreviousPage: Boolean! """ - the extension of the file provided + When paginating backwards, the cursor to continue. """ - providedFileExtension: String + startCursor: Cursor """ - the computed size of the file in the original http request + When paginating forwards, the cursor to continue. """ - providedFileSize: Int - clearProvidedFileSize: Boolean - persistedFileSize: Int - clearPersistedFileSize: Boolean + endCursor: Cursor +} +type PersonalAccessToken implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - the mime type detected by the system + tags associated with the object """ - detectedMimeType: String - clearDetectedMimeType: Boolean + tags: [String!] """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + the name associated with the token """ - md5Hash: String - clearMd5Hash: Boolean + name: String! + token: String! """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + when the token expires """ - detectedContentType: String + expiresAt: Time """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + a description of the token's purpose """ - storeKey: String - clearStoreKey: Boolean + description: String + scopes: [String!] + lastUsedAt: Time + owner: User! """ - the category type of the file, if any (e.g. evidence, invoice, etc.) + the organization(s) the token is associated with """ - categoryType: String - clearCategoryType: Boolean + organizations: [Organization!] + events: [Event!] +} +""" +A connection to a list of items. +""" +type PersonalAccessTokenConnection { """ - the full URI of the file + A list of edges. """ - uri: String - clearURI: Boolean + edges: [PersonalAccessTokenEdge] """ - the storage scheme of the file, e.g. file://, s3://, etc. + Information to aid in pagination. """ - storageScheme: String - clearStorageScheme: Boolean + pageInfo: PageInfo! """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + Identifies the total count of items in the connection. """ - storageVolume: String - clearStorageVolume: Boolean + totalCount: Int! +} +""" +An edge in a connection. +""" +type PersonalAccessTokenEdge { """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + The item at the end of the edge. """ - storagePath: String - clearStoragePath: Boolean - addUserIDs: [ID!] - removeUserIDs: [ID!] - clearUser: Boolean - addOrganizationIDs: [ID!] - removeOrganizationIDs: [ID!] - clearOrganization: Boolean - addGroupIDs: [ID!] - removeGroupIDs: [ID!] - clearGroup: Boolean - addContactIDs: [ID!] - removeContactIDs: [ID!] - clearContact: Boolean - addEntityIDs: [ID!] - removeEntityIDs: [ID!] - clearEntity: Boolean - addUsersettingIDs: [ID!] - removeUsersettingIDs: [ID!] - clearUsersetting: Boolean - addOrganizationsettingIDs: [ID!] - removeOrganizationsettingIDs: [ID!] - clearOrganizationsetting: Boolean - addTemplateIDs: [ID!] - removeTemplateIDs: [ID!] - clearTemplate: Boolean - addDocumentdatumIDs: [ID!] - removeDocumentdatumIDs: [ID!] - clearDocumentdata: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean + node: PersonalAccessToken + """ + A cursor for use in pagination. + """ + cursor: Cursor! } """ -UpdateGroupInput is used for update Group object. +PersonalAccessTokenWhereInput is used for filtering PersonalAccessToken objects. Input was generated by ent. """ -input UpdateGroupInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean +input PersonalAccessTokenWhereInput { + not: PersonalAccessTokenWhereInput + and: [PersonalAccessTokenWhereInput!] + or: [PersonalAccessTokenWhereInput!] """ - the name of the group - must be unique within the organization + id field predicates """ - name: String + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - the groups description + created_at field predicates """ - description: String - clearDescription: Boolean + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - the URL to an auto generated gravatar image for the group + updated_at field predicates """ - gravatarLogoURL: String - clearGravatarLogoURL: Boolean + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - the URL to an image uploaded by the customer for the groups avatar image + created_by field predicates """ - logoURL: String - clearLogoURL: Boolean + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - The group's displayed 'friendly' name + updated_by field predicates """ - displayName: String - ownerID: ID - clearOwner: Boolean - settingID: ID - addUserIDs: [ID!] - removeUserIDs: [ID!] - clearUsers: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean - addIntegrationIDs: [ID!] - removeIntegrationIDs: [ID!] - clearIntegrations: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean -} -""" -UpdateGroupMembershipInput is used for update GroupMembership object. -Input was generated by ent. -""" -input UpdateGroupMembershipInput { - role: GroupMembershipRole - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateGroupSettingInput is used for update GroupSetting object. -Input was generated by ent. -""" -input UpdateGroupSettingInput { + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - tags associated with the object + deleted_at field predicates """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + deleted_by field predicates """ - visibility: GroupSettingVisibility + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either + name field predicates """ - joinPolicy: GroupSettingJoinPolicy + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - whether to sync group members to slack groups + expires_at field predicates """ - syncToSlack: Boolean - clearSyncToSlack: Boolean + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean """ - whether to sync group members to github groups + last_used_at field predicates """ - syncToGithub: Boolean - clearSyncToGithub: Boolean - groupID: ID - clearGroup: Boolean -} -""" -UpdateHushInput is used for update Hush object. -Input was generated by ent. -""" -input UpdateHushInput { + lastUsedAt: Time + lastUsedAtNEQ: Time + lastUsedAtIn: [Time!] + lastUsedAtNotIn: [Time!] + lastUsedAtGT: Time + lastUsedAtGTE: Time + lastUsedAtLT: Time + lastUsedAtLTE: Time + lastUsedAtIsNil: Boolean + lastUsedAtNotNil: Boolean """ - the logical name of the corresponding hush secret or it's general grouping + owner edge predicates """ - name: String + hasOwner: Boolean + hasOwnerWith: [UserWhereInput!] """ - a description of the hush value or purpose, such as github PAT + organizations edge predicates """ - description: String - clearDescription: Boolean + hasOrganizations: Boolean + hasOrganizationsWith: [OrganizationWhereInput!] """ - the kind of secret, such as sshkey, certificate, api token, etc. + events edge predicates """ - kind: String - clearKind: Boolean - addIntegrationIDs: [ID!] - removeIntegrationIDs: [ID!] - clearIntegrations: Boolean - addOrganizationIDs: [ID!] - removeOrganizationIDs: [ID!] - clearOrganization: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] } -""" -UpdateIntegrationInput is used for update Integration object. -Input was generated by ent. -""" -input UpdateIntegrationInput { +type Procedure implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] - appendTags: [String!] - clearTags: Boolean """ - the name of the integration - must be unique within the organization + the name of the procedure """ - name: String + name: String! """ - a description of the integration + description of the procedure """ description: String - clearDescription: Boolean - kind: String - clearKind: Boolean - ownerID: ID - clearOwner: Boolean - addSecretIDs: [ID!] - removeSecretIDs: [ID!] - clearSecrets: Boolean - addOauth2tokenIDs: [ID!] - removeOauth2tokenIDs: [ID!] - clearOauth2tokens: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean - addWebhookIDs: [ID!] - removeWebhookIDs: [ID!] - clearWebhooks: Boolean + """ + status of the procedure + """ + status: String + """ + type of the procedure + """ + procedureType: String + """ + version of the procedure + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map + control: [Control!] + internalpolicy: [InternalPolicy!] + narratives: [Narrative!] + risks: [Risk!] } """ -UpdateInviteInput is used for update Invite object. -Input was generated by ent. +A connection to a list of items. """ -input UpdateInviteInput { +type ProcedureConnection { """ - the expiration date of the invitation token which defaults to 14 days in the future from creation + A list of edges. """ - expires: Time - clearExpires: Boolean + edges: [ProcedureEdge] """ - the status of the invitation + Information to aid in pagination. """ - status: InviteInviteStatus - role: InviteRole + pageInfo: PageInfo! """ - the number of attempts made to perform email send of the invitation, maximum of 5 + Identifies the total count of items in the connection. """ - sendAttempts: Int - ownerID: ID - clearOwner: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean + totalCount: Int! } """ -UpdateNoteInput is used for update Note object. -Input was generated by ent. +An edge in a connection. """ -input UpdateNoteInput { +type ProcedureEdge { """ - tags associated with the object + The item at the end of the edge. """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + node: Procedure """ - the text of the note + A cursor for use in pagination. """ - text: String - ownerID: ID - clearOwner: Boolean - entityID: ID - clearEntity: Boolean + cursor: Cursor! } -""" -UpdateOauthProviderInput is used for update OauthProvider object. -Input was generated by ent. -""" -input UpdateOauthProviderInput { +type ProcedureHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ProcedureHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] - appendTags: [String!] - clearTags: Boolean """ - the oauth provider's name + the name of the procedure """ - name: String + name: String! """ - the client id for the oauth provider + description of the procedure """ - clientID: String + description: String """ - the client secret + status of the procedure """ - clientSecret: String + status: String """ - the redirect url + type of the procedure """ - redirectURL: String + procedureType: String """ - the scopes + version of the procedure """ - scopes: String + version: String """ - the auth url of the provider + purpose and scope """ - authURL: String + purposeAndScope: String """ - the token url of the provider + background of the procedure """ - tokenURL: String + background: String """ - the auth style, 0: auto detect 1: third party log in 2: log in with username and password + which controls are satisfied by the procedure """ - authStyle: Uint + satisfies: String """ - the URL to request user information by token + json data for the procedure document """ - infoURL: String - ownerID: ID - clearOwner: Boolean + details: Map } """ -UpdateOhAuthTooTokenInput is used for update OhAuthTooToken object. -Input was generated by ent. +A connection to a list of items. """ -input UpdateOhAuthTooTokenInput { +type ProcedureHistoryConnection { """ - tags associated with the object + A list of edges. """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - clientID: String - scopes: [String!] - appendScopes: [String!] - clearScopes: Boolean - nonce: String - claimsUserID: String - claimsUsername: String - claimsEmail: String - claimsEmailVerified: Boolean - claimsGroups: [String!] - appendClaimsGroups: [String!] - clearClaimsGroups: Boolean - claimsPreferredUsername: String - connectorID: String - connectorData: [String!] - appendConnectorData: [String!] - clearConnectorData: Boolean - lastUsed: Time - addIntegrationIDs: [ID!] - removeIntegrationIDs: [ID!] - clearIntegration: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean + edges: [ProcedureHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! } """ -UpdateOrgMembershipInput is used for update OrgMembership object. -Input was generated by ent. +An edge in a connection. """ -input UpdateOrgMembershipInput { - role: OrgMembershipRole - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean +type ProcedureHistoryEdge { + """ + The item at the end of the edge. + """ + node: ProcedureHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! } """ -UpdateOrganizationInput is used for update Organization object. +ProcedureHistoryOpType is enum for the field operation +""" +enum ProcedureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ProcedureHistoryWhereInput is used for filtering ProcedureHistory objects. Input was generated by ent. """ -input UpdateOrganizationInput { +input ProcedureHistoryWhereInput { + not: ProcedureHistoryWhereInput + and: [ProcedureHistoryWhereInput!] + or: [ProcedureHistoryWhereInput!] """ - tags associated with the object + id field predicates """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - the name of the organization + history_time field predicates """ - name: String + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time """ - The organization's displayed 'friendly' name + ref field predicates """ - displayName: String + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String """ - An optional description of the organization + operation field predicates """ - description: String - clearDescription: Boolean + operation: ProcedureHistoryOpType + operationNEQ: ProcedureHistoryOpType + operationIn: [ProcedureHistoryOpType!] + operationNotIn: [ProcedureHistoryOpType!] """ - URL of the user's remote avatar + created_at field predicates """ - avatarRemoteURL: String - clearAvatarRemoteURL: Boolean - addGroupIDs: [ID!] - removeGroupIDs: [ID!] - clearGroups: Boolean - addTemplateIDs: [ID!] - removeTemplateIDs: [ID!] - clearTemplates: Boolean - addIntegrationIDs: [ID!] - removeIntegrationIDs: [ID!] - clearIntegrations: Boolean - settingID: ID - clearSetting: Boolean - addDocumentdatumIDs: [ID!] - removeDocumentdatumIDs: [ID!] - clearDocumentdata: Boolean - addEntitlementIDs: [ID!] - removeEntitlementIDs: [ID!] - clearEntitlements: Boolean - addOrganizationEntitlementIDs: [ID!] - removeOrganizationEntitlementIDs: [ID!] - clearOrganizationEntitlement: Boolean - addPersonalAccessTokenIDs: [ID!] - removePersonalAccessTokenIDs: [ID!] - clearPersonalAccessTokens: Boolean - addAPITokenIDs: [ID!] - removeAPITokenIDs: [ID!] - clearAPITokens: Boolean - addOauthproviderIDs: [ID!] - removeOauthproviderIDs: [ID!] - clearOauthprovider: Boolean - addUserIDs: [ID!] - removeUserIDs: [ID!] - clearUsers: Boolean - addInviteIDs: [ID!] - removeInviteIDs: [ID!] - clearInvites: Boolean - addSubscriberIDs: [ID!] - removeSubscriberIDs: [ID!] - clearSubscribers: Boolean - addWebhookIDs: [ID!] - removeWebhookIDs: [ID!] - clearWebhooks: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean - addSecretIDs: [ID!] - removeSecretIDs: [ID!] - clearSecrets: Boolean - addFeatureIDs: [ID!] - removeFeatureIDs: [ID!] - clearFeatures: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean - addEntitlementplanIDs: [ID!] - removeEntitlementplanIDs: [ID!] - clearEntitlementplans: Boolean - addEntityIDs: [ID!] - removeEntityIDs: [ID!] - clearEntities: Boolean - addEntitytypeIDs: [ID!] - removeEntitytypeIDs: [ID!] - clearEntitytypes: Boolean - addContactIDs: [ID!] - removeContactIDs: [ID!] - clearContacts: Boolean - addNoteIDs: [ID!] - removeNoteIDs: [ID!] - clearNotes: Boolean -} -""" -UpdateOrganizationSettingInput is used for update OrganizationSetting object. -Input was generated by ent. -""" -input UpdateOrganizationSettingInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - domains associated with the organization - """ - domains: [String!] - appendDomains: [String!] - clearDomains: Boolean - """ - Name of the person to contact for billing - """ - billingContact: String - clearBillingContact: Boolean - """ - Email address of the person to contact for billing - """ - billingEmail: String - clearBillingEmail: Boolean - """ - Phone number to contact for billing - """ - billingPhone: String - clearBillingPhone: Boolean - """ - Address to send billing information to - """ - billingAddress: String - clearBillingAddress: Boolean - """ - Usually government-issued tax ID or business ID such as ABN in Australia - """ - taxIdentifier: String - clearTaxIdentifier: Boolean - """ - geographical location of the organization - """ - geoLocation: OrganizationSettingRegion - clearGeoLocation: Boolean - organizationID: ID - clearOrganization: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean -} -""" -UpdatePersonalAccessTokenInput is used for update PersonalAccessToken object. -Input was generated by ent. -""" -input UpdatePersonalAccessTokenInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name associated with the token - """ - name: String - """ - a description of the token's purpose - """ - description: String - clearDescription: Boolean - scopes: [String!] - appendScopes: [String!] - clearScopes: Boolean - lastUsedAt: Time - clearLastUsedAt: Boolean - addOrganizationIDs: [ID!] - removeOrganizationIDs: [ID!] - clearOrganizations: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateSubscriberInput is used for update Subscriber object. -Input was generated by ent. -""" -input UpdateSubscriberInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - email address of the subscriber - """ - email: String - """ - phone number of the subscriber - """ - phoneNumber: String - clearPhoneNumber: Boolean - ownerID: ID - clearOwner: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateTFASettingInput is used for update TFASetting object. -Input was generated by ent. -""" -input UpdateTFASettingInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - specifies if the TFA device has been verified - """ - verified: Boolean - """ - specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app - """ - totpAllowed: Boolean - clearTotpAllowed: Boolean -} -""" -UpdateTemplateInput is used for update Template object. -Input was generated by ent. -""" -input UpdateTemplateInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the template - """ - name: String - """ - the type of the template, either a provided template or an implementation (document) - """ - templateType: TemplateDocumentType - """ - the description of the template - """ - description: String - clearDescription: Boolean - """ - the jsonschema object of the template - """ - jsonconfig: JSON - """ - the uischema for the template to render in the UI - """ - uischema: JSON - clearUischema: Boolean - ownerID: ID - clearOwner: Boolean - addDocumentIDs: [ID!] - removeDocumentIDs: [ID!] - clearDocuments: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean -} -""" -UpdateUserInput is used for update User object. -Input was generated by ent. -""" -input UpdateUserInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - email: String - firstName: String - clearFirstName: Boolean - lastName: String - clearLastName: Boolean - """ - The user's displayed 'friendly' name - """ - displayName: String - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - clearAvatarRemoteURL: Boolean - """ - The user's local avatar file - """ - avatarLocalFile: String - clearAvatarLocalFile: Boolean - """ - The time the user's (local) avatar was last updated - """ - avatarUpdatedAt: Time - clearAvatarUpdatedAt: Boolean - """ - the time the user was last seen - """ - lastSeen: Time - clearLastSeen: Boolean - """ - user password hash - """ - password: String - clearPassword: Boolean - """ - the Subject of the user JWT - """ - sub: String - clearSub: Boolean - """ - auth provider used to register the account - """ - authProvider: UserAuthProvider - """ - the user's role - """ - role: UserRole - clearRole: Boolean - addPersonalAccessTokenIDs: [ID!] - removePersonalAccessTokenIDs: [ID!] - clearPersonalAccessTokens: Boolean - addTfaSettingIDs: [ID!] - removeTfaSettingIDs: [ID!] - clearTfaSettings: Boolean - settingID: ID - addEmailVerificationTokenIDs: [ID!] - removeEmailVerificationTokenIDs: [ID!] - clearEmailVerificationTokens: Boolean - addPasswordResetTokenIDs: [ID!] - removePasswordResetTokenIDs: [ID!] - clearPasswordResetTokens: Boolean - addGroupIDs: [ID!] - removeGroupIDs: [ID!] - clearGroups: Boolean - addOrganizationIDs: [ID!] - removeOrganizationIDs: [ID!] - clearOrganizations: Boolean - addWebauthnIDs: [ID!] - removeWebauthnIDs: [ID!] - clearWebauthn: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean - fileID: ID - clearFile: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateUserSettingInput is used for update UserSetting object. -Input was generated by ent. -""" -input UpdateUserSettingInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - user account is locked if unconfirmed or explicitly locked - """ - locked: Boolean - """ - The time notifications regarding the user were silenced - """ - silencedAt: Time - clearSilencedAt: Boolean - """ - The time the user was suspended - """ - suspendedAt: Time - clearSuspendedAt: Boolean - """ - status of the user account - """ - status: UserSettingUserStatus - """ - whether the user has confirmed their email address - """ - emailConfirmed: Boolean - """ - specifies a user may complete authentication by verifying a WebAuthn capable device - """ - isWebauthnAllowed: Boolean - clearIsWebauthnAllowed: Boolean - """ - whether the user has two factor authentication enabled - """ - isTfaEnabled: Boolean - clearIsTfaEnabled: Boolean - userID: ID - clearUser: Boolean - defaultOrgID: ID - clearDefaultOrg: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean -} -""" -UpdateWebhookInput is used for update Webhook object. -Input was generated by ent. -""" -input UpdateWebhookInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the webhook - """ - name: String - """ - a description of the webhook - """ - description: String - clearDescription: Boolean - """ - the url to send the webhook to - """ - destinationURL: String - """ - indicates if the webhook is active and enabled - """ - enabled: Boolean - """ - the number of failures - """ - failures: Int - clearFailures: Boolean - """ - the last error message - """ - lastError: String - clearLastError: Boolean - """ - the last response - """ - lastResponse: String - clearLastResponse: Boolean - ownerID: ID - clearOwner: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean - addIntegrationIDs: [ID!] - removeIntegrationIDs: [ID!] - clearIntegrations: Boolean -} -type User implements Node { - id: ID! createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - email: String! - firstName: String - lastName: String - """ - The user's displayed 'friendly' name - """ - displayName: String! - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - The user's local avatar file - """ - avatarLocalFile: String - """ - The user's local avatar file id - """ - avatarLocalFileID: ID - """ - The time the user's (local) avatar was last updated - """ - avatarUpdatedAt: Time - """ - the time the user was last seen - """ - lastSeen: Time - """ - the Subject of the user JWT - """ - sub: String - """ - auth provider used to register the account - """ - authProvider: UserAuthProvider! - """ - the user's role - """ - role: UserRole - personalAccessTokens: [PersonalAccessToken!] - tfaSettings: [TFASetting!] - setting: UserSetting! - groups: [Group!] - organizations: [Organization!] - files: [File!] - file: File - events: [Event!] - groupMemberships: [GroupMembership!] - orgMemberships: [OrgMembership!] -} -""" -UserAuthProvider is enum for the field auth_provider -""" -enum UserAuthProvider @goModel(model: "github.com/theopenlane/core/pkg/enums.AuthProvider") { - CREDENTIALS - GOOGLE - GITHUB - WEBAUTHN -} -""" -A connection to a list of items. -""" -type UserConnection { - """ - A list of edges. - """ - edges: [UserEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type UserEdge { - """ - The item at the end of the edge. - """ - node: User + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - A cursor for use in pagination. + updated_at field predicates """ - cursor: Cursor! -} -type UserHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: UserHistoryOpType! - createdAt: Time updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - email: String! - firstName: String - lastName: String - """ - The user's displayed 'friendly' name - """ - displayName: String! - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - The user's local avatar file - """ - avatarLocalFile: String - """ - The user's local avatar file id - """ - avatarLocalFileID: String - """ - The time the user's (local) avatar was last updated - """ - avatarUpdatedAt: Time - """ - the time the user was last seen - """ - lastSeen: Time - """ - the Subject of the user JWT - """ - sub: String + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - auth provider used to register the account + created_by field predicates """ - authProvider: UserHistoryAuthProvider! + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - the user's role + updated_by field predicates """ - role: UserHistoryRole -} -""" -UserHistoryAuthProvider is enum for the field auth_provider -""" -enum UserHistoryAuthProvider @goModel(model: "github.com/theopenlane/core/pkg/enums.AuthProvider") { - CREDENTIALS - GOOGLE - GITHUB - WEBAUTHN -} -""" -A connection to a list of items. -""" -type UserHistoryConnection { + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - A list of edges. + deleted_at field predicates """ - edges: [UserHistoryEdge] + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - Information to aid in pagination. + deleted_by field predicates """ - pageInfo: PageInfo! + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - Identifies the total count of items in the connection. + name field predicates """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type UserHistoryEdge { + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - The item at the end of the edge. + description field predicates """ - node: UserHistory + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - A cursor for use in pagination. + status field predicates """ - cursor: Cursor! -} -""" -UserHistoryOpType is enum for the field operation -""" -enum UserHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for UserHistory connections -""" -input UserHistoryOrder { + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - The ordering direction. + procedure_type field predicates + """ + procedureType: String + procedureTypeNEQ: String + procedureTypeIn: [String!] + procedureTypeNotIn: [String!] + procedureTypeGT: String + procedureTypeGTE: String + procedureTypeLT: String + procedureTypeLTE: String + procedureTypeContains: String + procedureTypeHasPrefix: String + procedureTypeHasSuffix: String + procedureTypeIsNil: Boolean + procedureTypeNotNil: Boolean + procedureTypeEqualFold: String + procedureTypeContainsFold: String """ - direction: OrderDirection! = ASC + version field predicates """ - The field by which to order UserHistories. + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - field: UserHistoryOrderField! -} -""" -Properties by which UserHistory connections can be ordered. -""" -enum UserHistoryOrderField { - first_name - last_name - display_name -} -""" -UserHistoryRole is enum for the field role -""" -enum UserHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String } """ -UserHistoryWhereInput is used for filtering UserHistory objects. +ProcedureWhereInput is used for filtering Procedure objects. Input was generated by ent. """ -input UserHistoryWhereInput { - not: UserHistoryWhereInput - and: [UserHistoryWhereInput!] - or: [UserHistoryWhereInput!] +input ProcedureWhereInput { + not: ProcedureWhereInput + and: [ProcedureWhereInput!] + or: [ProcedureWhereInput!] """ id field predicates """ @@ -34780,42 +41439,6 @@ input UserHistoryWhereInput { idEqualFold: ID idContainsFold: ID """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: UserHistoryOpType - operationNEQ: UserHistoryOpType - operationIn: [UserHistoryOpType!] - operationNotIn: [UserHistoryOpType!] - """ created_at field predicates """ createdAt: Time @@ -34909,157 +41532,9194 @@ input UserHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - email field predicates - """ - email: String - emailNEQ: String - emailIn: [String!] - emailNotIn: [String!] - emailGT: String - emailGTE: String - emailLT: String - emailLTE: String - emailContains: String - emailHasPrefix: String - emailHasSuffix: String - emailEqualFold: String - emailContainsFold: String - """ - first_name field predicates - """ - firstName: String - firstNameNEQ: String - firstNameIn: [String!] - firstNameNotIn: [String!] - firstNameGT: String - firstNameGTE: String - firstNameLT: String - firstNameLTE: String - firstNameContains: String - firstNameHasPrefix: String - firstNameHasSuffix: String - firstNameIsNil: Boolean - firstNameNotNil: Boolean - firstNameEqualFold: String - firstNameContainsFold: String - """ - last_name field predicates - """ - lastName: String - lastNameNEQ: String - lastNameIn: [String!] - lastNameNotIn: [String!] - lastNameGT: String - lastNameGTE: String - lastNameLT: String - lastNameLTE: String - lastNameContains: String - lastNameHasPrefix: String - lastNameHasSuffix: String - lastNameIsNil: Boolean - lastNameNotNil: Boolean - lastNameEqualFold: String - lastNameContainsFold: String - """ - display_name field predicates + name field predicates """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - avatar_remote_url field predicates + description field predicates """ - avatarRemoteURL: String - avatarRemoteURLNEQ: String - avatarRemoteURLIn: [String!] - avatarRemoteURLNotIn: [String!] - avatarRemoteURLGT: String - avatarRemoteURLGTE: String - avatarRemoteURLLT: String - avatarRemoteURLLTE: String - avatarRemoteURLContains: String - avatarRemoteURLHasPrefix: String - avatarRemoteURLHasSuffix: String - avatarRemoteURLIsNil: Boolean - avatarRemoteURLNotNil: Boolean - avatarRemoteURLEqualFold: String - avatarRemoteURLContainsFold: String + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - avatar_local_file field predicates + status field predicates """ - avatarLocalFile: String - avatarLocalFileNEQ: String - avatarLocalFileIn: [String!] - avatarLocalFileNotIn: [String!] - avatarLocalFileGT: String - avatarLocalFileGTE: String - avatarLocalFileLT: String - avatarLocalFileLTE: String - avatarLocalFileContains: String - avatarLocalFileHasPrefix: String - avatarLocalFileHasSuffix: String - avatarLocalFileIsNil: Boolean - avatarLocalFileNotNil: Boolean - avatarLocalFileEqualFold: String - avatarLocalFileContainsFold: String + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - avatar_local_file_id field predicates + procedure_type field predicates + """ + procedureType: String + procedureTypeNEQ: String + procedureTypeIn: [String!] + procedureTypeNotIn: [String!] + procedureTypeGT: String + procedureTypeGTE: String + procedureTypeLT: String + procedureTypeLTE: String + procedureTypeContains: String + procedureTypeHasPrefix: String + procedureTypeHasSuffix: String + procedureTypeIsNil: Boolean + procedureTypeNotNil: Boolean + procedureTypeEqualFold: String + procedureTypeContainsFold: String """ - avatarLocalFileID: String - avatarLocalFileIDNEQ: String - avatarLocalFileIDIn: [String!] - avatarLocalFileIDNotIn: [String!] - avatarLocalFileIDGT: String - avatarLocalFileIDGTE: String - avatarLocalFileIDLT: String - avatarLocalFileIDLTE: String - avatarLocalFileIDContains: String - avatarLocalFileIDHasPrefix: String - avatarLocalFileIDHasSuffix: String - avatarLocalFileIDIsNil: Boolean - avatarLocalFileIDNotNil: Boolean - avatarLocalFileIDEqualFold: String - avatarLocalFileIDContainsFold: String + version field predicates """ - avatar_updated_at field predicates + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - avatarUpdatedAt: Time - avatarUpdatedAtNEQ: Time - avatarUpdatedAtIn: [Time!] - avatarUpdatedAtNotIn: [Time!] - avatarUpdatedAtGT: Time - avatarUpdatedAtGTE: Time - avatarUpdatedAtLT: Time - avatarUpdatedAtLTE: Time - avatarUpdatedAtIsNil: Boolean - avatarUpdatedAtNotNil: Boolean + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + internalpolicy edge predicates + """ + hasInternalpolicy: Boolean + hasInternalpolicyWith: [InternalPolicyWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] +} +type Query { """ - last_seen field predicates + Fetches an object given its ID. """ - lastSeen: Time - lastSeenNEQ: Time - lastSeenIn: [Time!] - lastSeenNotIn: [Time!] - lastSeenGT: Time - lastSeenGTE: Time - lastSeenLT: Time - lastSeenLTE: Time - lastSeenIsNil: Boolean - lastSeenNotNil: Boolean + node( + """ + ID of the object. + """ + id: ID! + ): Node """ - sub field predicates + Lookup nodes by a list of IDs. """ - sub: String + nodes( + """ + The list of node IDs. + """ + ids: [ID!]! + ): [Node]! + apiTokens( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for APITokens returned from the connection. + """ + where: APITokenWhereInput + ): APITokenConnection! + actionPlans( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ActionPlans returned from the connection. + """ + where: ActionPlanWhereInput + ): ActionPlanConnection! + actionPlanHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ActionPlanHistories returned from the connection. + """ + where: ActionPlanHistoryWhereInput + ): ActionPlanHistoryConnection! + contacts( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Contacts returned from the connection. + """ + where: ContactWhereInput + ): ContactConnection! + contactHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ContactHistories returned from the connection. + """ + where: ContactHistoryWhereInput + ): ContactHistoryConnection! + controls( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Controls returned from the connection. + """ + where: ControlWhereInput + ): ControlConnection! + controlHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlHistories returned from the connection. + """ + where: ControlHistoryWhereInput + ): ControlHistoryConnection! + controlObjectives( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlObjectives returned from the connection. + """ + where: ControlObjectiveWhereInput + ): ControlObjectiveConnection! + controlObjectiveHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlObjectiveHistories returned from the connection. + """ + where: ControlObjectiveHistoryWhereInput + ): ControlObjectiveHistoryConnection! + documentDataSlice( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for DocumentDataSlice returned from the connection. + """ + where: DocumentDataWhereInput + ): DocumentDataConnection! + documentDataHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for DocumentDataHistories returned from the connection. + """ + where: DocumentDataHistoryWhereInput + ): DocumentDataHistoryConnection! + entitlements( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Entitlements returned from the connection. + """ + where: EntitlementWhereInput + ): EntitlementConnection! + entitlementHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EntitlementHistories returned from the connection. + """ + where: EntitlementHistoryWhereInput + ): EntitlementHistoryConnection! + entitlementPlans( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EntitlementPlans returned from the connection. + """ + where: EntitlementPlanWhereInput + ): EntitlementPlanConnection! + entitlementPlanFeatures( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EntitlementPlanFeatures returned from the connection. + """ + where: EntitlementPlanFeatureWhereInput + ): EntitlementPlanFeatureConnection! + entitlementPlanFeatureHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EntitlementPlanFeatureHistories returned from the connection. + """ + where: EntitlementPlanFeatureHistoryWhereInput + ): EntitlementPlanFeatureHistoryConnection! + entitlementPlanHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EntitlementPlanHistories returned from the connection. + """ + where: EntitlementPlanHistoryWhereInput + ): EntitlementPlanHistoryConnection! + entities( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Entities returned from the connection. + """ + orderBy: EntityOrder + + """ + Filtering options for Entities returned from the connection. + """ + where: EntityWhereInput + ): EntityConnection! + entityHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityHistories returned from the connection. + """ + orderBy: EntityHistoryOrder + + """ + Filtering options for EntityHistories returned from the connection. + """ + where: EntityHistoryWhereInput + ): EntityHistoryConnection! + entityTypes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityTypes returned from the connection. + """ + orderBy: EntityTypeOrder + + """ + Filtering options for EntityTypes returned from the connection. + """ + where: EntityTypeWhereInput + ): EntityTypeConnection! + entityTypeHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityTypeHistories returned from the connection. + """ + orderBy: EntityTypeHistoryOrder + + """ + Filtering options for EntityTypeHistories returned from the connection. + """ + where: EntityTypeHistoryWhereInput + ): EntityTypeHistoryConnection! + events( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Events returned from the connection. + """ + where: EventWhereInput + ): EventConnection! + eventHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EventHistories returned from the connection. + """ + where: EventHistoryWhereInput + ): EventHistoryConnection! + features( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Features returned from the connection. + """ + where: FeatureWhereInput + ): FeatureConnection! + featureHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for FeatureHistories returned from the connection. + """ + where: FeatureHistoryWhereInput + ): FeatureHistoryConnection! + files( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Files returned from the connection. + """ + where: FileWhereInput + ): FileConnection! + fileHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for FileHistories returned from the connection. + """ + where: FileHistoryWhereInput + ): FileHistoryConnection! + groups( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Groups returned from the connection. + """ + orderBy: GroupOrder + + """ + Filtering options for Groups returned from the connection. + """ + where: GroupWhereInput + ): GroupConnection! + groupHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for GroupHistories returned from the connection. + """ + orderBy: GroupHistoryOrder + + """ + Filtering options for GroupHistories returned from the connection. + """ + where: GroupHistoryWhereInput + ): GroupHistoryConnection! + groupMemberships( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupMemberships returned from the connection. + """ + where: GroupMembershipWhereInput + ): GroupMembershipConnection! + groupMembershipHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupMembershipHistories returned from the connection. + """ + where: GroupMembershipHistoryWhereInput + ): GroupMembershipHistoryConnection! + groupSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupSettings returned from the connection. + """ + where: GroupSettingWhereInput + ): GroupSettingConnection! + groupSettingHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupSettingHistories returned from the connection. + """ + where: GroupSettingHistoryWhereInput + ): GroupSettingHistoryConnection! + hushes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Hushes returned from the connection. + """ + orderBy: HushOrder + + """ + Filtering options for Hushes returned from the connection. + """ + where: HushWhereInput + ): HushConnection! + hushHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for HushHistories returned from the connection. + """ + orderBy: HushHistoryOrder + + """ + Filtering options for HushHistories returned from the connection. + """ + where: HushHistoryWhereInput + ): HushHistoryConnection! + integrations( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Integrations returned from the connection. + """ + orderBy: IntegrationOrder + + """ + Filtering options for Integrations returned from the connection. + """ + where: IntegrationWhereInput + ): IntegrationConnection! + integrationHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for IntegrationHistories returned from the connection. + """ + orderBy: IntegrationHistoryOrder + + """ + Filtering options for IntegrationHistories returned from the connection. + """ + where: IntegrationHistoryWhereInput + ): IntegrationHistoryConnection! + internalPolicies( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for InternalPolicies returned from the connection. + """ + where: InternalPolicyWhereInput + ): InternalPolicyConnection! + internalPolicyHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for InternalPolicyHistories returned from the connection. + """ + where: InternalPolicyHistoryWhereInput + ): InternalPolicyHistoryConnection! + invites( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Invites returned from the connection. + """ + where: InviteWhereInput + ): InviteConnection! + narratives( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Narratives returned from the connection. + """ + where: NarrativeWhereInput + ): NarrativeConnection! + narrativeHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for NarrativeHistories returned from the connection. + """ + where: NarrativeHistoryWhereInput + ): NarrativeHistoryConnection! + notes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Notes returned from the connection. + """ + where: NoteWhereInput + ): NoteConnection! + noteHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for NoteHistories returned from the connection. + """ + where: NoteHistoryWhereInput + ): NoteHistoryConnection! + oauthProviders( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OauthProviders returned from the connection. + """ + where: OauthProviderWhereInput + ): OauthProviderConnection! + oauthProviderHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OauthProviderHistories returned from the connection. + """ + where: OauthProviderHistoryWhereInput + ): OauthProviderHistoryConnection! + ohAuthTooTokens( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OhAuthTooTokens returned from the connection. + """ + where: OhAuthTooTokenWhereInput + ): OhAuthTooTokenConnection! + orgMemberships( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrgMemberships returned from the connection. + """ + where: OrgMembershipWhereInput + ): OrgMembershipConnection! + orgMembershipHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrgMembershipHistories returned from the connection. + """ + where: OrgMembershipHistoryWhereInput + ): OrgMembershipHistoryConnection! + organizations( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Organizations returned from the connection. + """ + orderBy: OrganizationOrder + + """ + Filtering options for Organizations returned from the connection. + """ + where: OrganizationWhereInput + ): OrganizationConnection! + organizationHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for OrganizationHistories returned from the connection. + """ + orderBy: OrganizationHistoryOrder + + """ + Filtering options for OrganizationHistories returned from the connection. + """ + where: OrganizationHistoryWhereInput + ): OrganizationHistoryConnection! + organizationSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrganizationSettings returned from the connection. + """ + where: OrganizationSettingWhereInput + ): OrganizationSettingConnection! + organizationSettingHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrganizationSettingHistories returned from the connection. + """ + where: OrganizationSettingHistoryWhereInput + ): OrganizationSettingHistoryConnection! + personalAccessTokens( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for PersonalAccessTokens returned from the connection. + """ + where: PersonalAccessTokenWhereInput + ): PersonalAccessTokenConnection! + procedures( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Procedures returned from the connection. + """ + where: ProcedureWhereInput + ): ProcedureConnection! + procedureHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ProcedureHistories returned from the connection. + """ + where: ProcedureHistoryWhereInput + ): ProcedureHistoryConnection! + risks( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Risks returned from the connection. + """ + where: RiskWhereInput + ): RiskConnection! + riskHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for RiskHistories returned from the connection. + """ + where: RiskHistoryWhereInput + ): RiskHistoryConnection! + standards( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Standards returned from the connection. + """ + where: StandardWhereInput + ): StandardConnection! + standardHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for StandardHistories returned from the connection. + """ + where: StandardHistoryWhereInput + ): StandardHistoryConnection! + subcontrols( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Subcontrols returned from the connection. + """ + where: SubcontrolWhereInput + ): SubcontrolConnection! + subcontrolHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for SubcontrolHistories returned from the connection. + """ + where: SubcontrolHistoryWhereInput + ): SubcontrolHistoryConnection! + subscribers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Subscribers returned from the connection. + """ + where: SubscriberWhereInput + ): SubscriberConnection! + tfaSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for TFASettings returned from the connection. + """ + where: TFASettingWhereInput + ): TFASettingConnection! + templates( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Templates returned from the connection. + """ + orderBy: TemplateOrder + + """ + Filtering options for Templates returned from the connection. + """ + where: TemplateWhereInput + ): TemplateConnection! + templateHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for TemplateHistories returned from the connection. + """ + orderBy: TemplateHistoryOrder + + """ + Filtering options for TemplateHistories returned from the connection. + """ + where: TemplateHistoryWhereInput + ): TemplateHistoryConnection! + users( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Users returned from the connection. + """ + orderBy: UserOrder + + """ + Filtering options for Users returned from the connection. + """ + where: UserWhereInput + ): UserConnection! + userHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for UserHistories returned from the connection. + """ + orderBy: UserHistoryOrder + + """ + Filtering options for UserHistories returned from the connection. + """ + where: UserHistoryWhereInput + ): UserHistoryConnection! + userSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for UserSettings returned from the connection. + """ + where: UserSettingWhereInput + ): UserSettingConnection! + userSettingHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for UserSettingHistories returned from the connection. + """ + where: UserSettingHistoryWhereInput + ): UserSettingHistoryConnection! + webhooks( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Webhooks returned from the connection. + """ + orderBy: WebhookOrder + + """ + Filtering options for Webhooks returned from the connection. + """ + where: WebhookWhereInput + ): WebhookConnection! + webhookHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for WebhookHistories returned from the connection. + """ + orderBy: WebhookHistoryOrder + + """ + Filtering options for WebhookHistories returned from the connection. + """ + where: WebhookHistoryWhereInput + ): WebhookHistoryConnection! +} +type Risk implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map + control: [Control!] + procedure: [Procedure!] + actionplans: [ActionPlan!] +} +""" +A connection to a list of items. +""" +type RiskConnection { + """ + A list of edges. + """ + edges: [RiskEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type RiskEdge { + """ + The item at the end of the edge. + """ + node: Risk + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type RiskHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: RiskHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskHistoryRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskHistoryRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map +} +""" +A connection to a list of items. +""" +type RiskHistoryConnection { + """ + A list of edges. + """ + edges: [RiskHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type RiskHistoryEdge { + """ + The item at the end of the edge. + """ + node: RiskHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +RiskHistoryOpType is enum for the field operation +""" +enum RiskHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +RiskHistoryRiskImpact is enum for the field impact +""" +enum RiskHistoryRiskImpact @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskImpact") { + LOW + MODERATE + HIGH +} +""" +RiskHistoryRiskLikelihood is enum for the field likelihood +""" +enum RiskHistoryRiskLikelihood @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskLikelihood") { + UNLIKELY + LIKELY + HIGHLY_LIKELY +} +""" +RiskHistoryWhereInput is used for filtering RiskHistory objects. +Input was generated by ent. +""" +input RiskHistoryWhereInput { + not: RiskHistoryWhereInput + and: [RiskHistoryWhereInput!] + or: [RiskHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: RiskHistoryOpType + operationNEQ: RiskHistoryOpType + operationIn: [RiskHistoryOpType!] + operationNotIn: [RiskHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + risk_type field predicates + """ + riskType: String + riskTypeNEQ: String + riskTypeIn: [String!] + riskTypeNotIn: [String!] + riskTypeGT: String + riskTypeGTE: String + riskTypeLT: String + riskTypeLTE: String + riskTypeContains: String + riskTypeHasPrefix: String + riskTypeHasSuffix: String + riskTypeIsNil: Boolean + riskTypeNotNil: Boolean + riskTypeEqualFold: String + riskTypeContainsFold: String + """ + business_costs field predicates + """ + businessCosts: String + businessCostsNEQ: String + businessCostsIn: [String!] + businessCostsNotIn: [String!] + businessCostsGT: String + businessCostsGTE: String + businessCostsLT: String + businessCostsLTE: String + businessCostsContains: String + businessCostsHasPrefix: String + businessCostsHasSuffix: String + businessCostsIsNil: Boolean + businessCostsNotNil: Boolean + businessCostsEqualFold: String + businessCostsContainsFold: String + """ + impact field predicates + """ + impact: RiskHistoryRiskImpact + impactNEQ: RiskHistoryRiskImpact + impactIn: [RiskHistoryRiskImpact!] + impactNotIn: [RiskHistoryRiskImpact!] + impactIsNil: Boolean + impactNotNil: Boolean + """ + likelihood field predicates + """ + likelihood: RiskHistoryRiskLikelihood + likelihoodNEQ: RiskHistoryRiskLikelihood + likelihoodIn: [RiskHistoryRiskLikelihood!] + likelihoodNotIn: [RiskHistoryRiskLikelihood!] + likelihoodIsNil: Boolean + likelihoodNotNil: Boolean + """ + mitigation field predicates + """ + mitigation: String + mitigationNEQ: String + mitigationIn: [String!] + mitigationNotIn: [String!] + mitigationGT: String + mitigationGTE: String + mitigationLT: String + mitigationLTE: String + mitigationContains: String + mitigationHasPrefix: String + mitigationHasSuffix: String + mitigationIsNil: Boolean + mitigationNotNil: Boolean + mitigationEqualFold: String + mitigationContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +""" +RiskRiskImpact is enum for the field impact +""" +enum RiskRiskImpact @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskImpact") { + LOW + MODERATE + HIGH +} +""" +RiskRiskLikelihood is enum for the field likelihood +""" +enum RiskRiskLikelihood @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskLikelihood") { + UNLIKELY + LIKELY + HIGHLY_LIKELY +} +""" +RiskWhereInput is used for filtering Risk objects. +Input was generated by ent. +""" +input RiskWhereInput { + not: RiskWhereInput + and: [RiskWhereInput!] + or: [RiskWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + risk_type field predicates + """ + riskType: String + riskTypeNEQ: String + riskTypeIn: [String!] + riskTypeNotIn: [String!] + riskTypeGT: String + riskTypeGTE: String + riskTypeLT: String + riskTypeLTE: String + riskTypeContains: String + riskTypeHasPrefix: String + riskTypeHasSuffix: String + riskTypeIsNil: Boolean + riskTypeNotNil: Boolean + riskTypeEqualFold: String + riskTypeContainsFold: String + """ + business_costs field predicates + """ + businessCosts: String + businessCostsNEQ: String + businessCostsIn: [String!] + businessCostsNotIn: [String!] + businessCostsGT: String + businessCostsGTE: String + businessCostsLT: String + businessCostsLTE: String + businessCostsContains: String + businessCostsHasPrefix: String + businessCostsHasSuffix: String + businessCostsIsNil: Boolean + businessCostsNotNil: Boolean + businessCostsEqualFold: String + businessCostsContainsFold: String + """ + impact field predicates + """ + impact: RiskRiskImpact + impactNEQ: RiskRiskImpact + impactIn: [RiskRiskImpact!] + impactNotIn: [RiskRiskImpact!] + impactIsNil: Boolean + impactNotNil: Boolean + """ + likelihood field predicates + """ + likelihood: RiskRiskLikelihood + likelihoodNEQ: RiskRiskLikelihood + likelihoodIn: [RiskRiskLikelihood!] + likelihoodNotIn: [RiskRiskLikelihood!] + likelihoodIsNil: Boolean + likelihoodNotNil: Boolean + """ + mitigation field predicates + """ + mitigation: String + mitigationNEQ: String + mitigationIn: [String!] + mitigationNotIn: [String!] + mitigationGT: String + mitigationGTE: String + mitigationLT: String + mitigationLTE: String + mitigationContains: String + mitigationHasPrefix: String + mitigationHasSuffix: String + mitigationIsNil: Boolean + mitigationNotNil: Boolean + mitigationEqualFold: String + mitigationContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + procedure edge predicates + """ + hasProcedure: Boolean + hasProcedureWith: [ProcedureWhereInput!] + """ + actionplans edge predicates + """ + hasActionplans: Boolean + hasActionplansWith: [ActionPlanWhereInput!] +} +type Standard implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map + controlobjectives: [ControlObjective!] + controls: [Control!] + procedures: [Procedure!] + actionplans: [ActionPlan!] +} +""" +A connection to a list of items. +""" +type StandardConnection { + """ + A list of edges. + """ + edges: [StandardEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type StandardEdge { + """ + The item at the end of the edge. + """ + node: Standard + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type StandardHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: StandardHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map +} +""" +A connection to a list of items. +""" +type StandardHistoryConnection { + """ + A list of edges. + """ + edges: [StandardHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type StandardHistoryEdge { + """ + The item at the end of the edge. + """ + node: StandardHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +StandardHistoryOpType is enum for the field operation +""" +enum StandardHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +StandardHistoryWhereInput is used for filtering StandardHistory objects. +Input was generated by ent. +""" +input StandardHistoryWhereInput { + not: StandardHistoryWhereInput + and: [StandardHistoryWhereInput!] + or: [StandardHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: StandardHistoryOpType + operationNEQ: StandardHistoryOpType + operationIn: [StandardHistoryOpType!] + operationNotIn: [StandardHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + standard_type field predicates + """ + standardType: String + standardTypeNEQ: String + standardTypeIn: [String!] + standardTypeNotIn: [String!] + standardTypeGT: String + standardTypeGTE: String + standardTypeLT: String + standardTypeLTE: String + standardTypeContains: String + standardTypeHasPrefix: String + standardTypeHasSuffix: String + standardTypeIsNil: Boolean + standardTypeNotNil: Boolean + standardTypeEqualFold: String + standardTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +""" +StandardWhereInput is used for filtering Standard objects. +Input was generated by ent. +""" +input StandardWhereInput { + not: StandardWhereInput + and: [StandardWhereInput!] + or: [StandardWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + standard_type field predicates + """ + standardType: String + standardTypeNEQ: String + standardTypeIn: [String!] + standardTypeNotIn: [String!] + standardTypeGT: String + standardTypeGTE: String + standardTypeLT: String + standardTypeLTE: String + standardTypeContains: String + standardTypeHasPrefix: String + standardTypeHasSuffix: String + standardTypeIsNil: Boolean + standardTypeNotNil: Boolean + standardTypeEqualFold: String + standardTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + controlobjectives edge predicates + """ + hasControlobjectives: Boolean + hasControlobjectivesWith: [ControlObjectiveWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + actionplans edge predicates + """ + hasActionplans: Boolean + hasActionplansWith: [ActionPlanWhereInput!] +} +type Subcontrol implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the subcontrol + """ + name: String! + """ + description of the subcontrol + """ + description: String + """ + status of the subcontrol + """ + status: String + """ + type of the subcontrol + """ + subcontrolType: String + """ + version of the control + """ + version: String + """ + number of the subcontrol + """ + subcontrolNumber: String + """ + subcontrol family + """ + family: String + """ + subcontrol class + """ + class: String + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + """ + implementation status + """ + implementationStatus: String + """ + date the subcontrol was implemented + """ + implementationDate: Time + """ + implementation verification + """ + implementationVerification: String + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + """ + json data details of the subcontrol + """ + details: Map + control: [Control!] + user: [User!] + notes: Note +} +""" +A connection to a list of items. +""" +type SubcontrolConnection { + """ + A list of edges. + """ + edges: [SubcontrolEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type SubcontrolEdge { + """ + The item at the end of the edge. + """ + node: Subcontrol + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type SubcontrolHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: SubcontrolHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the subcontrol + """ + name: String! + """ + description of the subcontrol + """ + description: String + """ + status of the subcontrol + """ + status: String + """ + type of the subcontrol + """ + subcontrolType: String + """ + version of the control + """ + version: String + """ + number of the subcontrol + """ + subcontrolNumber: String + """ + subcontrol family + """ + family: String + """ + subcontrol class + """ + class: String + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + """ + implementation status + """ + implementationStatus: String + """ + date the subcontrol was implemented + """ + implementationDate: Time + """ + implementation verification + """ + implementationVerification: String + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + """ + json data details of the subcontrol + """ + details: Map +} +""" +A connection to a list of items. +""" +type SubcontrolHistoryConnection { + """ + A list of edges. + """ + edges: [SubcontrolHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type SubcontrolHistoryEdge { + """ + The item at the end of the edge. + """ + node: SubcontrolHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +SubcontrolHistoryOpType is enum for the field operation +""" +enum SubcontrolHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +SubcontrolHistoryWhereInput is used for filtering SubcontrolHistory objects. +Input was generated by ent. +""" +input SubcontrolHistoryWhereInput { + not: SubcontrolHistoryWhereInput + and: [SubcontrolHistoryWhereInput!] + or: [SubcontrolHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: SubcontrolHistoryOpType + operationNEQ: SubcontrolHistoryOpType + operationIn: [SubcontrolHistoryOpType!] + operationNotIn: [SubcontrolHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + subcontrol_type field predicates + """ + subcontrolType: String + subcontrolTypeNEQ: String + subcontrolTypeIn: [String!] + subcontrolTypeNotIn: [String!] + subcontrolTypeGT: String + subcontrolTypeGTE: String + subcontrolTypeLT: String + subcontrolTypeLTE: String + subcontrolTypeContains: String + subcontrolTypeHasPrefix: String + subcontrolTypeHasSuffix: String + subcontrolTypeIsNil: Boolean + subcontrolTypeNotNil: Boolean + subcontrolTypeEqualFold: String + subcontrolTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + subcontrol_number field predicates + """ + subcontrolNumber: String + subcontrolNumberNEQ: String + subcontrolNumberIn: [String!] + subcontrolNumberNotIn: [String!] + subcontrolNumberGT: String + subcontrolNumberGTE: String + subcontrolNumberLT: String + subcontrolNumberLTE: String + subcontrolNumberContains: String + subcontrolNumberHasPrefix: String + subcontrolNumberHasSuffix: String + subcontrolNumberIsNil: Boolean + subcontrolNumberNotNil: Boolean + subcontrolNumberEqualFold: String + subcontrolNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + implementation_evidence field predicates + """ + implementationEvidence: String + implementationEvidenceNEQ: String + implementationEvidenceIn: [String!] + implementationEvidenceNotIn: [String!] + implementationEvidenceGT: String + implementationEvidenceGTE: String + implementationEvidenceLT: String + implementationEvidenceLTE: String + implementationEvidenceContains: String + implementationEvidenceHasPrefix: String + implementationEvidenceHasSuffix: String + implementationEvidenceIsNil: Boolean + implementationEvidenceNotNil: Boolean + implementationEvidenceEqualFold: String + implementationEvidenceContainsFold: String + """ + implementation_status field predicates + """ + implementationStatus: String + implementationStatusNEQ: String + implementationStatusIn: [String!] + implementationStatusNotIn: [String!] + implementationStatusGT: String + implementationStatusGTE: String + implementationStatusLT: String + implementationStatusLTE: String + implementationStatusContains: String + implementationStatusHasPrefix: String + implementationStatusHasSuffix: String + implementationStatusIsNil: Boolean + implementationStatusNotNil: Boolean + implementationStatusEqualFold: String + implementationStatusContainsFold: String + """ + implementation_date field predicates + """ + implementationDate: Time + implementationDateNEQ: Time + implementationDateIn: [Time!] + implementationDateNotIn: [Time!] + implementationDateGT: Time + implementationDateGTE: Time + implementationDateLT: Time + implementationDateLTE: Time + implementationDateIsNil: Boolean + implementationDateNotNil: Boolean + """ + implementation_verification field predicates + """ + implementationVerification: String + implementationVerificationNEQ: String + implementationVerificationIn: [String!] + implementationVerificationNotIn: [String!] + implementationVerificationGT: String + implementationVerificationGTE: String + implementationVerificationLT: String + implementationVerificationLTE: String + implementationVerificationContains: String + implementationVerificationHasPrefix: String + implementationVerificationHasSuffix: String + implementationVerificationIsNil: Boolean + implementationVerificationNotNil: Boolean + implementationVerificationEqualFold: String + implementationVerificationContainsFold: String + """ + implementation_verification_date field predicates + """ + implementationVerificationDate: Time + implementationVerificationDateNEQ: Time + implementationVerificationDateIn: [Time!] + implementationVerificationDateNotIn: [Time!] + implementationVerificationDateGT: Time + implementationVerificationDateGTE: Time + implementationVerificationDateLT: Time + implementationVerificationDateLTE: Time + implementationVerificationDateIsNil: Boolean + implementationVerificationDateNotNil: Boolean +} +""" +SubcontrolWhereInput is used for filtering Subcontrol objects. +Input was generated by ent. +""" +input SubcontrolWhereInput { + not: SubcontrolWhereInput + and: [SubcontrolWhereInput!] + or: [SubcontrolWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + subcontrol_type field predicates + """ + subcontrolType: String + subcontrolTypeNEQ: String + subcontrolTypeIn: [String!] + subcontrolTypeNotIn: [String!] + subcontrolTypeGT: String + subcontrolTypeGTE: String + subcontrolTypeLT: String + subcontrolTypeLTE: String + subcontrolTypeContains: String + subcontrolTypeHasPrefix: String + subcontrolTypeHasSuffix: String + subcontrolTypeIsNil: Boolean + subcontrolTypeNotNil: Boolean + subcontrolTypeEqualFold: String + subcontrolTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + subcontrol_number field predicates + """ + subcontrolNumber: String + subcontrolNumberNEQ: String + subcontrolNumberIn: [String!] + subcontrolNumberNotIn: [String!] + subcontrolNumberGT: String + subcontrolNumberGTE: String + subcontrolNumberLT: String + subcontrolNumberLTE: String + subcontrolNumberContains: String + subcontrolNumberHasPrefix: String + subcontrolNumberHasSuffix: String + subcontrolNumberIsNil: Boolean + subcontrolNumberNotNil: Boolean + subcontrolNumberEqualFold: String + subcontrolNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + implementation_evidence field predicates + """ + implementationEvidence: String + implementationEvidenceNEQ: String + implementationEvidenceIn: [String!] + implementationEvidenceNotIn: [String!] + implementationEvidenceGT: String + implementationEvidenceGTE: String + implementationEvidenceLT: String + implementationEvidenceLTE: String + implementationEvidenceContains: String + implementationEvidenceHasPrefix: String + implementationEvidenceHasSuffix: String + implementationEvidenceIsNil: Boolean + implementationEvidenceNotNil: Boolean + implementationEvidenceEqualFold: String + implementationEvidenceContainsFold: String + """ + implementation_status field predicates + """ + implementationStatus: String + implementationStatusNEQ: String + implementationStatusIn: [String!] + implementationStatusNotIn: [String!] + implementationStatusGT: String + implementationStatusGTE: String + implementationStatusLT: String + implementationStatusLTE: String + implementationStatusContains: String + implementationStatusHasPrefix: String + implementationStatusHasSuffix: String + implementationStatusIsNil: Boolean + implementationStatusNotNil: Boolean + implementationStatusEqualFold: String + implementationStatusContainsFold: String + """ + implementation_date field predicates + """ + implementationDate: Time + implementationDateNEQ: Time + implementationDateIn: [Time!] + implementationDateNotIn: [Time!] + implementationDateGT: Time + implementationDateGTE: Time + implementationDateLT: Time + implementationDateLTE: Time + implementationDateIsNil: Boolean + implementationDateNotNil: Boolean + """ + implementation_verification field predicates + """ + implementationVerification: String + implementationVerificationNEQ: String + implementationVerificationIn: [String!] + implementationVerificationNotIn: [String!] + implementationVerificationGT: String + implementationVerificationGTE: String + implementationVerificationLT: String + implementationVerificationLTE: String + implementationVerificationContains: String + implementationVerificationHasPrefix: String + implementationVerificationHasSuffix: String + implementationVerificationIsNil: Boolean + implementationVerificationNotNil: Boolean + implementationVerificationEqualFold: String + implementationVerificationContainsFold: String + """ + implementation_verification_date field predicates + """ + implementationVerificationDate: Time + implementationVerificationDateNEQ: Time + implementationVerificationDateIn: [Time!] + implementationVerificationDateNotIn: [Time!] + implementationVerificationDateGT: Time + implementationVerificationDateGTE: Time + implementationVerificationDateLT: Time + implementationVerificationDateLTE: Time + implementationVerificationDateIsNil: Boolean + implementationVerificationDateNotNil: Boolean + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] +} +type Subscriber implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + email address of the subscriber + """ + email: String! + """ + phone number of the subscriber + """ + phoneNumber: String + """ + indicates if the email address has been verified + """ + verifiedEmail: Boolean! + """ + indicates if the phone number has been verified + """ + verifiedPhone: Boolean! + """ + indicates if the subscriber is active or not, active users will have at least one verified contact method + """ + active: Boolean! + owner: Organization + events: [Event!] +} +""" +A connection to a list of items. +""" +type SubscriberConnection { + """ + A list of edges. + """ + edges: [SubscriberEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type SubscriberEdge { + """ + The item at the end of the edge. + """ + node: Subscriber + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +SubscriberWhereInput is used for filtering Subscriber objects. +Input was generated by ent. +""" +input SubscriberWhereInput { + not: SubscriberWhereInput + and: [SubscriberWhereInput!] + or: [SubscriberWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + phone_number field predicates + """ + phoneNumber: String + phoneNumberNEQ: String + phoneNumberIn: [String!] + phoneNumberNotIn: [String!] + phoneNumberGT: String + phoneNumberGTE: String + phoneNumberLT: String + phoneNumberLTE: String + phoneNumberContains: String + phoneNumberHasPrefix: String + phoneNumberHasSuffix: String + phoneNumberIsNil: Boolean + phoneNumberNotNil: Boolean + phoneNumberEqualFold: String + phoneNumberContainsFold: String + """ + verified_email field predicates + """ + verifiedEmail: Boolean + verifiedEmailNEQ: Boolean + """ + verified_phone field predicates + """ + verifiedPhone: Boolean + verifiedPhoneNEQ: Boolean + """ + active field predicates + """ + active: Boolean + activeNEQ: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type TFASetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + TFA secret for the user + """ + tfaSecret: String + """ + specifies if the TFA device has been verified + """ + verified: Boolean! + """ + recovery codes for 2fa + """ + recoveryCodes: [String!] + """ + specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + """ + totpAllowed: Boolean + owner: User +} +""" +A connection to a list of items. +""" +type TFASettingConnection { + """ + A list of edges. + """ + edges: [TFASettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type TFASettingEdge { + """ + The item at the end of the edge. + """ + node: TFASetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +TFASettingWhereInput is used for filtering TFASetting objects. +Input was generated by ent. +""" +input TFASettingWhereInput { + not: TFASettingWhereInput + and: [TFASettingWhereInput!] + or: [TFASettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + tfa_secret field predicates + """ + tfaSecret: String + tfaSecretNEQ: String + tfaSecretIn: [String!] + tfaSecretNotIn: [String!] + tfaSecretGT: String + tfaSecretGTE: String + tfaSecretLT: String + tfaSecretLTE: String + tfaSecretContains: String + tfaSecretHasPrefix: String + tfaSecretHasSuffix: String + tfaSecretIsNil: Boolean + tfaSecretNotNil: Boolean + tfaSecretEqualFold: String + tfaSecretContainsFold: String + """ + verified field predicates + """ + verified: Boolean + verifiedNEQ: Boolean + """ + totp_allowed field predicates + """ + totpAllowed: Boolean + totpAllowedNEQ: Boolean + totpAllowedIsNil: Boolean + totpAllowedNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [UserWhereInput!] +} +type Template implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the template + """ + name: String! + """ + the type of the template, either a provided template or an implementation (document) + """ + templateType: TemplateDocumentType! + """ + the description of the template + """ + description: String + """ + the jsonschema object of the template + """ + jsonconfig: JSON! + """ + the uischema for the template to render in the UI + """ + uischema: JSON + owner: Organization + documents: [DocumentData!] + files: [File!] +} +""" +A connection to a list of items. +""" +type TemplateConnection { + """ + A list of edges. + """ + edges: [TemplateEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +TemplateDocumentType is enum for the field template_type +""" +enum TemplateDocumentType @goModel(model: "github.com/theopenlane/core/pkg/enums.DocumentType") { + ROOTTEMPLATE + DOCUMENT +} +""" +An edge in a connection. +""" +type TemplateEdge { + """ + The item at the end of the edge. + """ + node: Template + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type TemplateHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: TemplateHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the template + """ + name: String! + """ + the type of the template, either a provided template or an implementation (document) + """ + templateType: TemplateHistoryDocumentType! + """ + the description of the template + """ + description: String + """ + the jsonschema object of the template + """ + jsonconfig: JSON! + """ + the uischema for the template to render in the UI + """ + uischema: JSON +} +""" +A connection to a list of items. +""" +type TemplateHistoryConnection { + """ + A list of edges. + """ + edges: [TemplateHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +TemplateHistoryDocumentType is enum for the field template_type +""" +enum TemplateHistoryDocumentType @goModel(model: "github.com/theopenlane/core/pkg/enums.DocumentType") { + ROOTTEMPLATE + DOCUMENT +} +""" +An edge in a connection. +""" +type TemplateHistoryEdge { + """ + The item at the end of the edge. + """ + node: TemplateHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +TemplateHistoryOpType is enum for the field operation +""" +enum TemplateHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for TemplateHistory connections +""" +input TemplateHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order TemplateHistories. + """ + field: TemplateHistoryOrderField! +} +""" +Properties by which TemplateHistory connections can be ordered. +""" +enum TemplateHistoryOrderField { + name +} +""" +TemplateHistoryWhereInput is used for filtering TemplateHistory objects. +Input was generated by ent. +""" +input TemplateHistoryWhereInput { + not: TemplateHistoryWhereInput + and: [TemplateHistoryWhereInput!] + or: [TemplateHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: TemplateHistoryOpType + operationNEQ: TemplateHistoryOpType + operationIn: [TemplateHistoryOpType!] + operationNotIn: [TemplateHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + template_type field predicates + """ + templateType: TemplateHistoryDocumentType + templateTypeNEQ: TemplateHistoryDocumentType + templateTypeIn: [TemplateHistoryDocumentType!] + templateTypeNotIn: [TemplateHistoryDocumentType!] + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String +} +""" +Ordering options for Template connections +""" +input TemplateOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Templates. + """ + field: TemplateOrderField! +} +""" +Properties by which Template connections can be ordered. +""" +enum TemplateOrderField { + name +} +""" +TemplateWhereInput is used for filtering Template objects. +Input was generated by ent. +""" +input TemplateWhereInput { + not: TemplateWhereInput + and: [TemplateWhereInput!] + or: [TemplateWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + template_type field predicates + """ + templateType: TemplateDocumentType + templateTypeNEQ: TemplateDocumentType + templateTypeIn: [TemplateDocumentType!] + templateTypeNotIn: [TemplateDocumentType!] + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + documents edge predicates + """ + hasDocuments: Boolean + hasDocumentsWith: [DocumentDataWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +""" +The builtin Time type +""" +scalar Time +""" +The builtin Uint type +""" +scalar Uint +""" +UpdateAPITokenInput is used for update APIToken object. +Input was generated by ent. +""" +input UpdateAPITokenInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name associated with the token + """ + name: String + """ + a description of the token's purpose + """ + description: String + clearDescription: Boolean + scopes: [String!] + appendScopes: [String!] + clearScopes: Boolean + lastUsedAt: Time + clearLastUsedAt: Boolean + ownerID: ID + clearOwner: Boolean +} +""" +UpdateActionPlanInput is used for update ActionPlan object. +Input was generated by ent. +""" +input UpdateActionPlanInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the action plan + """ + name: String + """ + description of the action plan + """ + description: String + clearDescription: Boolean + """ + status of the action plan + """ + status: String + clearStatus: Boolean + """ + due date of the action plan + """ + dueDate: Time + clearDueDate: Boolean + """ + priority of the action plan + """ + priority: String + clearPriority: Boolean + """ + source of the action plan + """ + source: String + clearSource: Boolean + """ + json data including details of the action plan + """ + details: Map + clearDetails: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisk: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean +} +""" +UpdateContactInput is used for update Contact object. +Input was generated by ent. +""" +input UpdateContactInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the full name of the contact + """ + fullName: String + """ + the title of the contact + """ + title: String + clearTitle: Boolean + """ + the company of the contact + """ + company: String + clearCompany: Boolean + """ + the email of the contact + """ + email: String + clearEmail: Boolean + """ + the phone number of the contact + """ + phoneNumber: String + clearPhoneNumber: Boolean + """ + the address of the contact + """ + address: String + clearAddress: Boolean + """ + status of the contact + """ + status: ContactUserStatus + ownerID: ID + clearOwner: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntities: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateControlInput is used for update Control object. +Input was generated by ent. +""" +input UpdateControlInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the control + """ + name: String + """ + description of the control + """ + description: String + clearDescription: Boolean + """ + status of the control + """ + status: String + clearStatus: Boolean + """ + type of the control + """ + controlType: String + clearControlType: Boolean + """ + version of the control + """ + version: String + clearVersion: Boolean + """ + control number or identifier + """ + controlNumber: String + clearControlNumber: Boolean + """ + family associated with the control + """ + family: String + clearFamily: Boolean + """ + class associated with the control + """ + class: String + clearClass: Boolean + """ + source of the control, e.g. framework, template, custom, etc. + """ + source: String + clearSource: Boolean + """ + which control objectives are satisfied by the control + """ + satisfies: String + clearSatisfies: Boolean + """ + mapped frameworks + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + json data including details of the control + """ + details: Map + clearDetails: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addControlobjectiveIDs: [ID!] + removeControlobjectiveIDs: [ID!] + clearControlobjectives: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addActionplanIDs: [ID!] + removeActionplanIDs: [ID!] + clearActionplans: Boolean +} +""" +UpdateControlObjectiveInput is used for update ControlObjective object. +Input was generated by ent. +""" +input UpdateControlObjectiveInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the control objective + """ + name: String + """ + description of the control objective + """ + description: String + clearDescription: Boolean + """ + status of the control objective + """ + status: String + clearStatus: Boolean + """ + type of the control objective + """ + controlObjectiveType: String + clearControlObjectiveType: Boolean + """ + version of the control objective + """ + version: String + clearVersion: Boolean + """ + number of the control objective + """ + controlNumber: String + clearControlNumber: Boolean + """ + family of the control objective + """ + family: String + clearFamily: Boolean + """ + class associated with the control objective + """ + class: String + clearClass: Boolean + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + clearSource: Boolean + """ + mapped frameworks + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + json data including details of the control objective + """ + details: Map + clearDetails: Boolean + addPolicyIDs: [ID!] + removePolicyIDs: [ID!] + clearPolicy: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean +} +""" +UpdateDocumentDataInput is used for update DocumentData object. +Input was generated by ent. +""" +input UpdateDocumentDataInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the json data of the document + """ + data: JSON + ownerID: ID + clearOwner: Boolean + templateID: ID + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntity: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateEntitlementInput is used for update Entitlement object. +Input was generated by ent. +""" +input UpdateEntitlementInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + used to store references to external systems, e.g. Stripe + """ + externalCustomerID: String + clearExternalCustomerID: Boolean + """ + used to store references to external systems, e.g. Stripe + """ + externalSubscriptionID: String + clearExternalSubscriptionID: Boolean + """ + the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + """ + expiresAt: Time + clearExpiresAt: Boolean + """ + whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + """ + cancelled: Boolean + ownerID: ID + clearOwner: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateEntitlementPlanFeatureInput is used for update EntitlementPlanFeature object. +Input was generated by ent. +""" +input UpdateEntitlementPlanFeatureInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + metadata for the entitlement plan feature such as usage limits + """ + metadata: Map + clearMetadata: Boolean + ownerID: ID + clearOwner: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateEntitlementPlanInput is used for update EntitlementPlan object. +Input was generated by ent. +""" +input UpdateEntitlementPlanInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the displayed 'friendly' name of the plan + """ + displayName: String + clearDisplayName: Boolean + """ + a description of the plan + """ + description: String + clearDescription: Boolean + """ + metadata for the plan + """ + metadata: Map + clearMetadata: Boolean + ownerID: ID + clearOwner: Boolean + addEntitlementIDs: [ID!] + removeEntitlementIDs: [ID!] + clearEntitlements: Boolean + addBaseFeatureIDs: [ID!] + removeBaseFeatureIDs: [ID!] + clearBaseFeatures: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateEntityInput is used for update Entity object. +Input was generated by ent. +""" +input UpdateEntityInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the entity + """ + name: String + clearName: Boolean + """ + The entity's displayed 'friendly' name + """ + displayName: String + clearDisplayName: Boolean + """ + An optional description of the entity + """ + description: String + clearDescription: Boolean + """ + domains associated with the entity + """ + domains: [String!] + appendDomains: [String!] + clearDomains: Boolean + """ + status of the entity + """ + status: String + clearStatus: Boolean + ownerID: ID + clearOwner: Boolean + addContactIDs: [ID!] + removeContactIDs: [ID!] + clearContacts: Boolean + addDocumentIDs: [ID!] + removeDocumentIDs: [ID!] + clearDocuments: Boolean + addNoteIDs: [ID!] + removeNoteIDs: [ID!] + clearNotes: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + entityTypeID: ID + clearEntityType: Boolean +} +""" +UpdateEntityTypeInput is used for update EntityType object. +Input was generated by ent. +""" +input UpdateEntityTypeInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the entity + """ + name: String + ownerID: ID + clearOwner: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntities: Boolean +} +""" +UpdateEventInput is used for update Event object. +Input was generated by ent. +""" +input UpdateEventInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + eventID: String + clearEventID: Boolean + correlationID: String + clearCorrelationID: Boolean + eventType: String + metadata: Map + clearMetadata: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroup: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegration: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganization: Boolean + addInviteIDs: [ID!] + removeInviteIDs: [ID!] + clearInvite: Boolean + addFeatureIDs: [ID!] + removeFeatureIDs: [ID!] + clearFeature: Boolean + addEntitlementplanIDs: [ID!] + removeEntitlementplanIDs: [ID!] + clearEntitlementplan: Boolean + addPersonalAccessTokenIDs: [ID!] + removePersonalAccessTokenIDs: [ID!] + clearPersonalAccessToken: Boolean + addOauth2tokenIDs: [ID!] + removeOauth2tokenIDs: [ID!] + clearOauth2token: Boolean + addHushIDs: [ID!] + removeHushIDs: [ID!] + clearHush: Boolean + addEntitlementIDs: [ID!] + removeEntitlementIDs: [ID!] + clearEntitlement: Boolean + addWebhookIDs: [ID!] + removeWebhookIDs: [ID!] + clearWebhook: Boolean + addSubscriberIDs: [ID!] + removeSubscriberIDs: [ID!] + clearSubscriber: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFile: Boolean +} +""" +UpdateFeatureInput is used for update Feature object. +Input was generated by ent. +""" +input UpdateFeatureInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the displayed 'friendly' name of the feature + """ + displayName: String + clearDisplayName: Boolean + """ + enabled features are available for use + """ + enabled: Boolean + """ + a description of the feature + """ + description: String + clearDescription: Boolean + """ + metadata for the feature + """ + metadata: Map + clearMetadata: Boolean + ownerID: ID + clearOwner: Boolean + addPlanIDs: [ID!] + removePlanIDs: [ID!] + clearPlans: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateFileInput is used for update File object. +Input was generated by ent. +""" +input UpdateFileInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the file provided in the payload key without the extension + """ + providedFileName: String + """ + the extension of the file provided + """ + providedFileExtension: String + """ + the computed size of the file in the original http request + """ + providedFileSize: Int + clearProvidedFileSize: Boolean + persistedFileSize: Int + clearPersistedFileSize: Boolean + """ + the mime type detected by the system + """ + detectedMimeType: String + clearDetectedMimeType: Boolean + """ + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + """ + md5Hash: String + clearMd5Hash: Boolean + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + clearStoreKey: Boolean + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + clearCategoryType: Boolean + """ + the full URI of the file + """ + uri: String + clearURI: Boolean + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + clearStorageScheme: Boolean + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + clearStorageVolume: Boolean + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String + clearStoragePath: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganization: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroup: Boolean + addContactIDs: [ID!] + removeContactIDs: [ID!] + clearContact: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntity: Boolean + addUsersettingIDs: [ID!] + removeUsersettingIDs: [ID!] + clearUsersetting: Boolean + addOrganizationsettingIDs: [ID!] + removeOrganizationsettingIDs: [ID!] + clearOrganizationsetting: Boolean + addTemplateIDs: [ID!] + removeTemplateIDs: [ID!] + clearTemplate: Boolean + addDocumentdatumIDs: [ID!] + removeDocumentdatumIDs: [ID!] + clearDocumentdata: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateGroupInput is used for update Group object. +Input was generated by ent. +""" +input UpdateGroupInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the group - must be unique within the organization + """ + name: String + """ + the groups description + """ + description: String + clearDescription: Boolean + """ + the URL to an auto generated gravatar image for the group + """ + gravatarLogoURL: String + clearGravatarLogoURL: Boolean + """ + the URL to an image uploaded by the customer for the groups avatar image + """ + logoURL: String + clearLogoURL: Boolean + """ + The group's displayed 'friendly' name + """ + displayName: String + ownerID: ID + clearOwner: Boolean + settingID: ID + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUsers: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegrations: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateGroupMembershipInput is used for update GroupMembership object. +Input was generated by ent. +""" +input UpdateGroupMembershipInput { + role: GroupMembershipRole + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateGroupSettingInput is used for update GroupSetting object. +Input was generated by ent. +""" +input UpdateGroupSettingInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + """ + visibility: GroupSettingVisibility + """ + the policy governing ability to freely join a group, whether it requires an invitation, application, or either + """ + joinPolicy: GroupSettingJoinPolicy + """ + whether to sync group members to slack groups + """ + syncToSlack: Boolean + clearSyncToSlack: Boolean + """ + whether to sync group members to github groups + """ + syncToGithub: Boolean + clearSyncToGithub: Boolean + groupID: ID + clearGroup: Boolean +} +""" +UpdateHushInput is used for update Hush object. +Input was generated by ent. +""" +input UpdateHushInput { + """ + the logical name of the corresponding hush secret or it's general grouping + """ + name: String + """ + a description of the hush value or purpose, such as github PAT + """ + description: String + clearDescription: Boolean + """ + the kind of secret, such as sshkey, certificate, api token, etc. + """ + kind: String + clearKind: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegrations: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganization: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateIntegrationInput is used for update Integration object. +Input was generated by ent. +""" +input UpdateIntegrationInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the integration - must be unique within the organization + """ + name: String + """ + a description of the integration + """ + description: String + clearDescription: Boolean + kind: String + clearKind: Boolean + ownerID: ID + clearOwner: Boolean + addSecretIDs: [ID!] + removeSecretIDs: [ID!] + clearSecrets: Boolean + addOauth2tokenIDs: [ID!] + removeOauth2tokenIDs: [ID!] + clearOauth2tokens: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addWebhookIDs: [ID!] + removeWebhookIDs: [ID!] + clearWebhooks: Boolean +} +""" +UpdateInternalPolicyInput is used for update InternalPolicy object. +Input was generated by ent. +""" +input UpdateInternalPolicyInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the policy + """ + name: String + """ + description of the policy + """ + description: String + """ + status of the policy + """ + status: String + clearStatus: Boolean + """ + type of the policy + """ + policyType: String + clearPolicyType: Boolean + """ + version of the policy + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the policy + """ + background: String + clearBackground: Boolean + """ + json data for the policy document + """ + details: Map + clearDetails: Boolean + addControlobjectiveIDs: [ID!] + removeControlobjectiveIDs: [ID!] + clearControlobjectives: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean +} +""" +UpdateInviteInput is used for update Invite object. +Input was generated by ent. +""" +input UpdateInviteInput { + """ + the expiration date of the invitation token which defaults to 14 days in the future from creation + """ + expires: Time + clearExpires: Boolean + """ + the status of the invitation + """ + status: InviteInviteStatus + role: InviteRole + """ + the number of attempts made to perform email send of the invitation, maximum of 5 + """ + sendAttempts: Int + ownerID: ID + clearOwner: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateNarrativeInput is used for update Narrative object. +Input was generated by ent. +""" +input UpdateNarrativeInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the narrative + """ + name: String + """ + the description of the narrative + """ + description: String + clearDescription: Boolean + """ + which controls are satisfied by the narrative + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the narrative document + """ + details: Map + clearDetails: Boolean + addPolicyIDs: [ID!] + removePolicyIDs: [ID!] + clearPolicy: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedure: Boolean + addControlobjectiveIDs: [ID!] + removeControlobjectiveIDs: [ID!] + clearControlobjective: Boolean +} +""" +UpdateNoteInput is used for update Note object. +Input was generated by ent. +""" +input UpdateNoteInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the text of the note + """ + text: String + ownerID: ID + clearOwner: Boolean + entityID: ID + clearEntity: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean +} +""" +UpdateOauthProviderInput is used for update OauthProvider object. +Input was generated by ent. +""" +input UpdateOauthProviderInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the oauth provider's name + """ + name: String + """ + the client id for the oauth provider + """ + clientID: String + """ + the client secret + """ + clientSecret: String + """ + the redirect url + """ + redirectURL: String + """ + the scopes + """ + scopes: String + """ + the auth url of the provider + """ + authURL: String + """ + the token url of the provider + """ + tokenURL: String + """ + the auth style, 0: auto detect 1: third party log in 2: log in with username and password + """ + authStyle: Uint + """ + the URL to request user information by token + """ + infoURL: String + ownerID: ID + clearOwner: Boolean +} +""" +UpdateOhAuthTooTokenInput is used for update OhAuthTooToken object. +Input was generated by ent. +""" +input UpdateOhAuthTooTokenInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + clientID: String + scopes: [String!] + appendScopes: [String!] + clearScopes: Boolean + nonce: String + claimsUserID: String + claimsUsername: String + claimsEmail: String + claimsEmailVerified: Boolean + claimsGroups: [String!] + appendClaimsGroups: [String!] + clearClaimsGroups: Boolean + claimsPreferredUsername: String + connectorID: String + connectorData: [String!] + appendConnectorData: [String!] + clearConnectorData: Boolean + lastUsed: Time + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegration: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateOrgMembershipInput is used for update OrgMembership object. +Input was generated by ent. +""" +input UpdateOrgMembershipInput { + role: OrgMembershipRole + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateOrganizationInput is used for update Organization object. +Input was generated by ent. +""" +input UpdateOrganizationInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the organization + """ + name: String + """ + The organization's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the organization + """ + description: String + clearDescription: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + clearAvatarRemoteURL: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroups: Boolean + addTemplateIDs: [ID!] + removeTemplateIDs: [ID!] + clearTemplates: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegrations: Boolean + settingID: ID + clearSetting: Boolean + addDocumentdatumIDs: [ID!] + removeDocumentdatumIDs: [ID!] + clearDocumentdata: Boolean + addEntitlementIDs: [ID!] + removeEntitlementIDs: [ID!] + clearEntitlements: Boolean + addOrganizationEntitlementIDs: [ID!] + removeOrganizationEntitlementIDs: [ID!] + clearOrganizationEntitlement: Boolean + addPersonalAccessTokenIDs: [ID!] + removePersonalAccessTokenIDs: [ID!] + clearPersonalAccessTokens: Boolean + addAPITokenIDs: [ID!] + removeAPITokenIDs: [ID!] + clearAPITokens: Boolean + addOauthproviderIDs: [ID!] + removeOauthproviderIDs: [ID!] + clearOauthprovider: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUsers: Boolean + addInviteIDs: [ID!] + removeInviteIDs: [ID!] + clearInvites: Boolean + addSubscriberIDs: [ID!] + removeSubscriberIDs: [ID!] + clearSubscribers: Boolean + addWebhookIDs: [ID!] + removeWebhookIDs: [ID!] + clearWebhooks: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addSecretIDs: [ID!] + removeSecretIDs: [ID!] + clearSecrets: Boolean + addFeatureIDs: [ID!] + removeFeatureIDs: [ID!] + clearFeatures: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + addEntitlementplanIDs: [ID!] + removeEntitlementplanIDs: [ID!] + clearEntitlementplans: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntities: Boolean + addEntitytypeIDs: [ID!] + removeEntitytypeIDs: [ID!] + clearEntitytypes: Boolean + addContactIDs: [ID!] + removeContactIDs: [ID!] + clearContacts: Boolean + addNoteIDs: [ID!] + removeNoteIDs: [ID!] + clearNotes: Boolean +} +""" +UpdateOrganizationSettingInput is used for update OrganizationSetting object. +Input was generated by ent. +""" +input UpdateOrganizationSettingInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + domains associated with the organization + """ + domains: [String!] + appendDomains: [String!] + clearDomains: Boolean + """ + Name of the person to contact for billing + """ + billingContact: String + clearBillingContact: Boolean + """ + Email address of the person to contact for billing + """ + billingEmail: String + clearBillingEmail: Boolean + """ + Phone number to contact for billing + """ + billingPhone: String + clearBillingPhone: Boolean + """ + Address to send billing information to + """ + billingAddress: String + clearBillingAddress: Boolean + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + clearTaxIdentifier: Boolean + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingRegion + clearGeoLocation: Boolean + organizationID: ID + clearOrganization: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdatePersonalAccessTokenInput is used for update PersonalAccessToken object. +Input was generated by ent. +""" +input UpdatePersonalAccessTokenInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name associated with the token + """ + name: String + """ + a description of the token's purpose + """ + description: String + clearDescription: Boolean + scopes: [String!] + appendScopes: [String!] + clearScopes: Boolean + lastUsedAt: Time + clearLastUsedAt: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganizations: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateProcedureInput is used for update Procedure object. +Input was generated by ent. +""" +input UpdateProcedureInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the procedure + """ + name: String + """ + description of the procedure + """ + description: String + clearDescription: Boolean + """ + status of the procedure + """ + status: String + clearStatus: Boolean + """ + type of the procedure + """ + procedureType: String + clearProcedureType: Boolean + """ + version of the procedure + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the procedure + """ + background: String + clearBackground: Boolean + """ + which controls are satisfied by the procedure + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the procedure document + """ + details: Map + clearDetails: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addInternalpolicyIDs: [ID!] + removeInternalpolicyIDs: [ID!] + clearInternalpolicy: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean +} +""" +UpdateRiskInput is used for update Risk object. +Input was generated by ent. +""" +input UpdateRiskInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the risk + """ + name: String + """ + description of the risk + """ + description: String + clearDescription: Boolean + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + clearStatus: Boolean + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + clearRiskType: Boolean + """ + business costs associated with the risk + """ + businessCosts: String + clearBusinessCosts: Boolean + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + clearImpact: Boolean + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + clearLikelihood: Boolean + """ + mitigation for the risk + """ + mitigation: String + clearMitigation: Boolean + """ + which controls are satisfied by the risk + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the risk document + """ + details: Map + clearDetails: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedure: Boolean + addActionplanIDs: [ID!] + removeActionplanIDs: [ID!] + clearActionplans: Boolean +} +""" +UpdateStandardInput is used for update Standard object. +Input was generated by ent. +""" +input UpdateStandardInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String + """ + description of the standard + """ + description: String + clearDescription: Boolean + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + clearFamily: Boolean + """ + status of the standard - active, deprecated, etc. + """ + status: String + clearStatus: Boolean + """ + type of the standard - security, privacy, etc. + """ + standardType: String + clearStandardType: Boolean + """ + version of the standard + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the standard + """ + background: String + clearBackground: Boolean + """ + which controls are satisfied by the standard + """ + satisfies: String + clearSatisfies: Boolean + """ + json data with details of the standard + """ + details: Map + clearDetails: Boolean + addControlobjectiveIDs: [ID!] + removeControlobjectiveIDs: [ID!] + clearControlobjectives: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addActionplanIDs: [ID!] + removeActionplanIDs: [ID!] + clearActionplans: Boolean +} +""" +UpdateSubcontrolInput is used for update Subcontrol object. +Input was generated by ent. +""" +input UpdateSubcontrolInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the subcontrol + """ + name: String + """ + description of the subcontrol + """ + description: String + clearDescription: Boolean + """ + status of the subcontrol + """ + status: String + clearStatus: Boolean + """ + type of the subcontrol + """ + subcontrolType: String + clearSubcontrolType: Boolean + """ + version of the control + """ + version: String + clearVersion: Boolean + """ + number of the subcontrol + """ + subcontrolNumber: String + clearSubcontrolNumber: Boolean + """ + subcontrol family + """ + family: String + clearFamily: Boolean + """ + subcontrol class + """ + class: String + clearClass: Boolean + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + clearSource: Boolean + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + clearImplementationEvidence: Boolean + """ + implementation status + """ + implementationStatus: String + clearImplementationStatus: Boolean + """ + date the subcontrol was implemented + """ + implementationDate: Time + clearImplementationDate: Boolean + """ + implementation verification + """ + implementationVerification: String + clearImplementationVerification: Boolean + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + clearImplementationVerificationDate: Boolean + """ + json data details of the subcontrol + """ + details: Map + clearDetails: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + notesID: ID + clearNotes: Boolean +} +""" +UpdateSubscriberInput is used for update Subscriber object. +Input was generated by ent. +""" +input UpdateSubscriberInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + email address of the subscriber + """ + email: String + """ + phone number of the subscriber + """ + phoneNumber: String + clearPhoneNumber: Boolean + ownerID: ID + clearOwner: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateTFASettingInput is used for update TFASetting object. +Input was generated by ent. +""" +input UpdateTFASettingInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + specifies if the TFA device has been verified + """ + verified: Boolean + """ + specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + """ + totpAllowed: Boolean + clearTotpAllowed: Boolean +} +""" +UpdateTemplateInput is used for update Template object. +Input was generated by ent. +""" +input UpdateTemplateInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the template + """ + name: String + """ + the type of the template, either a provided template or an implementation (document) + """ + templateType: TemplateDocumentType + """ + the description of the template + """ + description: String + clearDescription: Boolean + """ + the jsonschema object of the template + """ + jsonconfig: JSON + """ + the uischema for the template to render in the UI + """ + uischema: JSON + clearUischema: Boolean + ownerID: ID + clearOwner: Boolean + addDocumentIDs: [ID!] + removeDocumentIDs: [ID!] + clearDocuments: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateUserInput is used for update User object. +Input was generated by ent. +""" +input UpdateUserInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + email: String + firstName: String + clearFirstName: Boolean + lastName: String + clearLastName: Boolean + """ + The user's displayed 'friendly' name + """ + displayName: String + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + clearAvatarRemoteURL: Boolean + """ + The user's local avatar file + """ + avatarLocalFile: String + clearAvatarLocalFile: Boolean + """ + The time the user's (local) avatar was last updated + """ + avatarUpdatedAt: Time + clearAvatarUpdatedAt: Boolean + """ + the time the user was last seen + """ + lastSeen: Time + clearLastSeen: Boolean + """ + user password hash + """ + password: String + clearPassword: Boolean + """ + the Subject of the user JWT + """ + sub: String + clearSub: Boolean + """ + auth provider used to register the account + """ + authProvider: UserAuthProvider + """ + the user's role + """ + role: UserRole + clearRole: Boolean + addPersonalAccessTokenIDs: [ID!] + removePersonalAccessTokenIDs: [ID!] + clearPersonalAccessTokens: Boolean + addTfaSettingIDs: [ID!] + removeTfaSettingIDs: [ID!] + clearTfaSettings: Boolean + settingID: ID + addEmailVerificationTokenIDs: [ID!] + removeEmailVerificationTokenIDs: [ID!] + clearEmailVerificationTokens: Boolean + addPasswordResetTokenIDs: [ID!] + removePasswordResetTokenIDs: [ID!] + clearPasswordResetTokens: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroups: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganizations: Boolean + addWebauthnIDs: [ID!] + removeWebauthnIDs: [ID!] + clearWebauthn: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + fileID: ID + clearFile: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addActionplanIDs: [ID!] + removeActionplanIDs: [ID!] + clearActionplans: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean +} +""" +UpdateUserSettingInput is used for update UserSetting object. +Input was generated by ent. +""" +input UpdateUserSettingInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + user account is locked if unconfirmed or explicitly locked + """ + locked: Boolean + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + clearSilencedAt: Boolean + """ + The time the user was suspended + """ + suspendedAt: Time + clearSuspendedAt: Boolean + """ + status of the user account + """ + status: UserSettingUserStatus + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + clearIsWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean + clearIsTfaEnabled: Boolean + userID: ID + clearUser: Boolean + defaultOrgID: ID + clearDefaultOrg: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateWebhookInput is used for update Webhook object. +Input was generated by ent. +""" +input UpdateWebhookInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the webhook + """ + name: String + """ + a description of the webhook + """ + description: String + clearDescription: Boolean + """ + the url to send the webhook to + """ + destinationURL: String + """ + indicates if the webhook is active and enabled + """ + enabled: Boolean + """ + the number of failures + """ + failures: Int + clearFailures: Boolean + """ + the last error message + """ + lastError: String + clearLastError: Boolean + """ + the last response + """ + lastResponse: String + clearLastResponse: Boolean + ownerID: ID + clearOwner: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegrations: Boolean +} +type User implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + email: String! + firstName: String + lastName: String + """ + The user's displayed 'friendly' name + """ + displayName: String! + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + The user's local avatar file + """ + avatarLocalFile: String + """ + The user's local avatar file id + """ + avatarLocalFileID: ID + """ + The time the user's (local) avatar was last updated + """ + avatarUpdatedAt: Time + """ + the time the user was last seen + """ + lastSeen: Time + """ + the Subject of the user JWT + """ + sub: String + """ + auth provider used to register the account + """ + authProvider: UserAuthProvider! + """ + the user's role + """ + role: UserRole + personalAccessTokens: [PersonalAccessToken!] + tfaSettings: [TFASetting!] + setting: UserSetting! + groups: [Group!] + organizations: [Organization!] + files: [File!] + file: File + events: [Event!] + actionplans: [ActionPlan!] + subcontrols: [Subcontrol!] + groupMemberships: [GroupMembership!] + orgMemberships: [OrgMembership!] +} +""" +UserAuthProvider is enum for the field auth_provider +""" +enum UserAuthProvider @goModel(model: "github.com/theopenlane/core/pkg/enums.AuthProvider") { + CREDENTIALS + GOOGLE + GITHUB + WEBAUTHN +} +""" +A connection to a list of items. +""" +type UserConnection { + """ + A list of edges. + """ + edges: [UserEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type UserEdge { + """ + The item at the end of the edge. + """ + node: User + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type UserHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: UserHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + email: String! + firstName: String + lastName: String + """ + The user's displayed 'friendly' name + """ + displayName: String! + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + The user's local avatar file + """ + avatarLocalFile: String + """ + The user's local avatar file id + """ + avatarLocalFileID: String + """ + The time the user's (local) avatar was last updated + """ + avatarUpdatedAt: Time + """ + the time the user was last seen + """ + lastSeen: Time + """ + the Subject of the user JWT + """ + sub: String + """ + auth provider used to register the account + """ + authProvider: UserHistoryAuthProvider! + """ + the user's role + """ + role: UserHistoryRole +} +""" +UserHistoryAuthProvider is enum for the field auth_provider +""" +enum UserHistoryAuthProvider @goModel(model: "github.com/theopenlane/core/pkg/enums.AuthProvider") { + CREDENTIALS + GOOGLE + GITHUB + WEBAUTHN +} +""" +A connection to a list of items. +""" +type UserHistoryConnection { + """ + A list of edges. + """ + edges: [UserHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type UserHistoryEdge { + """ + The item at the end of the edge. + """ + node: UserHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +UserHistoryOpType is enum for the field operation +""" +enum UserHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for UserHistory connections +""" +input UserHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order UserHistories. + """ + field: UserHistoryOrderField! +} +""" +Properties by which UserHistory connections can be ordered. +""" +enum UserHistoryOrderField { + first_name + last_name + display_name +} +""" +UserHistoryRole is enum for the field role +""" +enum UserHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER +} +""" +UserHistoryWhereInput is used for filtering UserHistory objects. +Input was generated by ent. +""" +input UserHistoryWhereInput { + not: UserHistoryWhereInput + and: [UserHistoryWhereInput!] + or: [UserHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: UserHistoryOpType + operationNEQ: UserHistoryOpType + operationIn: [UserHistoryOpType!] + operationNotIn: [UserHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + first_name field predicates + """ + firstName: String + firstNameNEQ: String + firstNameIn: [String!] + firstNameNotIn: [String!] + firstNameGT: String + firstNameGTE: String + firstNameLT: String + firstNameLTE: String + firstNameContains: String + firstNameHasPrefix: String + firstNameHasSuffix: String + firstNameIsNil: Boolean + firstNameNotNil: Boolean + firstNameEqualFold: String + firstNameContainsFold: String + """ + last_name field predicates + """ + lastName: String + lastNameNEQ: String + lastNameIn: [String!] + lastNameNotIn: [String!] + lastNameGT: String + lastNameGTE: String + lastNameLT: String + lastNameLTE: String + lastNameContains: String + lastNameHasPrefix: String + lastNameHasSuffix: String + lastNameIsNil: Boolean + lastNameNotNil: Boolean + lastNameEqualFold: String + lastNameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String + """ + avatar_local_file field predicates + """ + avatarLocalFile: String + avatarLocalFileNEQ: String + avatarLocalFileIn: [String!] + avatarLocalFileNotIn: [String!] + avatarLocalFileGT: String + avatarLocalFileGTE: String + avatarLocalFileLT: String + avatarLocalFileLTE: String + avatarLocalFileContains: String + avatarLocalFileHasPrefix: String + avatarLocalFileHasSuffix: String + avatarLocalFileIsNil: Boolean + avatarLocalFileNotNil: Boolean + avatarLocalFileEqualFold: String + avatarLocalFileContainsFold: String + """ + avatar_local_file_id field predicates + """ + avatarLocalFileID: String + avatarLocalFileIDNEQ: String + avatarLocalFileIDIn: [String!] + avatarLocalFileIDNotIn: [String!] + avatarLocalFileIDGT: String + avatarLocalFileIDGTE: String + avatarLocalFileIDLT: String + avatarLocalFileIDLTE: String + avatarLocalFileIDContains: String + avatarLocalFileIDHasPrefix: String + avatarLocalFileIDHasSuffix: String + avatarLocalFileIDIsNil: Boolean + avatarLocalFileIDNotNil: Boolean + avatarLocalFileIDEqualFold: String + avatarLocalFileIDContainsFold: String + """ + avatar_updated_at field predicates + """ + avatarUpdatedAt: Time + avatarUpdatedAtNEQ: Time + avatarUpdatedAtIn: [Time!] + avatarUpdatedAtNotIn: [Time!] + avatarUpdatedAtGT: Time + avatarUpdatedAtGTE: Time + avatarUpdatedAtLT: Time + avatarUpdatedAtLTE: Time + avatarUpdatedAtIsNil: Boolean + avatarUpdatedAtNotNil: Boolean + """ + last_seen field predicates + """ + lastSeen: Time + lastSeenNEQ: Time + lastSeenIn: [Time!] + lastSeenNotIn: [Time!] + lastSeenGT: Time + lastSeenGTE: Time + lastSeenLT: Time + lastSeenLTE: Time + lastSeenIsNil: Boolean + lastSeenNotNil: Boolean + """ + sub field predicates + """ + sub: String + subNEQ: String + subIn: [String!] + subNotIn: [String!] + subGT: String + subGTE: String + subLT: String + subLTE: String + subContains: String + subHasPrefix: String + subHasSuffix: String + subIsNil: Boolean + subNotNil: Boolean + subEqualFold: String + subContainsFold: String + """ + auth_provider field predicates + """ + authProvider: UserHistoryAuthProvider + authProviderNEQ: UserHistoryAuthProvider + authProviderIn: [UserHistoryAuthProvider!] + authProviderNotIn: [UserHistoryAuthProvider!] + """ + role field predicates + """ + role: UserHistoryRole + roleNEQ: UserHistoryRole + roleIn: [UserHistoryRole!] + roleNotIn: [UserHistoryRole!] + roleIsNil: Boolean + roleNotNil: Boolean +} +""" +Ordering options for User connections +""" +input UserOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Users. + """ + field: UserOrderField! +} +""" +Properties by which User connections can be ordered. +""" +enum UserOrderField { + first_name + last_name + display_name +} +""" +UserRole is enum for the field role +""" +enum UserRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER +} +type UserSetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + userID: ID + """ + user account is locked if unconfirmed or explicitly locked + """ + locked: Boolean! + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + """ + The time the user was suspended + """ + suspendedAt: Time + """ + status of the user account + """ + status: UserSettingUserStatus! + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean! + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean + user: User + """ + organization to load on user login + """ + defaultOrg: Organization + files: [File!] +} +""" +A connection to a list of items. +""" +type UserSettingConnection { + """ + A list of edges. + """ + edges: [UserSettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type UserSettingEdge { + """ + The item at the end of the edge. + """ + node: UserSetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type UserSettingHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: UserSettingHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + userID: String + """ + user account is locked if unconfirmed or explicitly locked + """ + locked: Boolean! + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + """ + The time the user was suspended + """ + suspendedAt: Time + """ + status of the user account + """ + status: UserSettingHistoryUserStatus! + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean! + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean +} +""" +A connection to a list of items. +""" +type UserSettingHistoryConnection { + """ + A list of edges. + """ + edges: [UserSettingHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type UserSettingHistoryEdge { + """ + The item at the end of the edge. + """ + node: UserSettingHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +UserSettingHistoryOpType is enum for the field operation +""" +enum UserSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +UserSettingHistoryUserStatus is enum for the field status +""" +enum UserSettingHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING +} +""" +UserSettingHistoryWhereInput is used for filtering UserSettingHistory objects. +Input was generated by ent. +""" +input UserSettingHistoryWhereInput { + not: UserSettingHistoryWhereInput + and: [UserSettingHistoryWhereInput!] + or: [UserSettingHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: UserSettingHistoryOpType + operationNEQ: UserSettingHistoryOpType + operationIn: [UserSettingHistoryOpType!] + operationNotIn: [UserSettingHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDIsNil: Boolean + userIDNotNil: Boolean + userIDEqualFold: String + userIDContainsFold: String + """ + locked field predicates + """ + locked: Boolean + lockedNEQ: Boolean + """ + silenced_at field predicates + """ + silencedAt: Time + silencedAtNEQ: Time + silencedAtIn: [Time!] + silencedAtNotIn: [Time!] + silencedAtGT: Time + silencedAtGTE: Time + silencedAtLT: Time + silencedAtLTE: Time + silencedAtIsNil: Boolean + silencedAtNotNil: Boolean + """ + suspended_at field predicates + """ + suspendedAt: Time + suspendedAtNEQ: Time + suspendedAtIn: [Time!] + suspendedAtNotIn: [Time!] + suspendedAtGT: Time + suspendedAtGTE: Time + suspendedAtLT: Time + suspendedAtLTE: Time + suspendedAtIsNil: Boolean + suspendedAtNotNil: Boolean + """ + status field predicates + """ + status: UserSettingHistoryUserStatus + statusNEQ: UserSettingHistoryUserStatus + statusIn: [UserSettingHistoryUserStatus!] + statusNotIn: [UserSettingHistoryUserStatus!] + """ + email_confirmed field predicates + """ + emailConfirmed: Boolean + emailConfirmedNEQ: Boolean + """ + is_webauthn_allowed field predicates + """ + isWebauthnAllowed: Boolean + isWebauthnAllowedNEQ: Boolean + isWebauthnAllowedIsNil: Boolean + isWebauthnAllowedNotNil: Boolean + """ + is_tfa_enabled field predicates + """ + isTfaEnabled: Boolean + isTfaEnabledNEQ: Boolean + isTfaEnabledIsNil: Boolean + isTfaEnabledNotNil: Boolean +} +""" +UserSettingUserStatus is enum for the field status +""" +enum UserSettingUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING +} +""" +UserSettingWhereInput is used for filtering UserSetting objects. +Input was generated by ent. +""" +input UserSettingWhereInput { + not: UserSettingWhereInput + and: [UserSettingWhereInput!] + or: [UserSettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + user_id field predicates + """ + userID: ID + userIDNEQ: ID + userIDIn: [ID!] + userIDNotIn: [ID!] + userIDGT: ID + userIDGTE: ID + userIDLT: ID + userIDLTE: ID + userIDContains: ID + userIDHasPrefix: ID + userIDHasSuffix: ID + userIDIsNil: Boolean + userIDNotNil: Boolean + userIDEqualFold: ID + userIDContainsFold: ID + """ + locked field predicates + """ + locked: Boolean + lockedNEQ: Boolean + """ + silenced_at field predicates + """ + silencedAt: Time + silencedAtNEQ: Time + silencedAtIn: [Time!] + silencedAtNotIn: [Time!] + silencedAtGT: Time + silencedAtGTE: Time + silencedAtLT: Time + silencedAtLTE: Time + silencedAtIsNil: Boolean + silencedAtNotNil: Boolean + """ + suspended_at field predicates + """ + suspendedAt: Time + suspendedAtNEQ: Time + suspendedAtIn: [Time!] + suspendedAtNotIn: [Time!] + suspendedAtGT: Time + suspendedAtGTE: Time + suspendedAtLT: Time + suspendedAtLTE: Time + suspendedAtIsNil: Boolean + suspendedAtNotNil: Boolean + """ + status field predicates + """ + status: UserSettingUserStatus + statusNEQ: UserSettingUserStatus + statusIn: [UserSettingUserStatus!] + statusNotIn: [UserSettingUserStatus!] + """ + email_confirmed field predicates + """ + emailConfirmed: Boolean + emailConfirmedNEQ: Boolean + """ + is_webauthn_allowed field predicates + """ + isWebauthnAllowed: Boolean + isWebauthnAllowedNEQ: Boolean + isWebauthnAllowedIsNil: Boolean + isWebauthnAllowedNotNil: Boolean + """ + is_tfa_enabled field predicates + """ + isTfaEnabled: Boolean + isTfaEnabledNEQ: Boolean + isTfaEnabledIsNil: Boolean + isTfaEnabledNotNil: Boolean + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + default_org edge predicates + """ + hasDefaultOrg: Boolean + hasDefaultOrgWith: [OrganizationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +""" +UserWhereInput is used for filtering User objects. +Input was generated by ent. +""" +input UserWhereInput { + not: UserWhereInput + and: [UserWhereInput!] + or: [UserWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + first_name field predicates + """ + firstName: String + firstNameNEQ: String + firstNameIn: [String!] + firstNameNotIn: [String!] + firstNameGT: String + firstNameGTE: String + firstNameLT: String + firstNameLTE: String + firstNameContains: String + firstNameHasPrefix: String + firstNameHasSuffix: String + firstNameIsNil: Boolean + firstNameNotNil: Boolean + firstNameEqualFold: String + firstNameContainsFold: String + """ + last_name field predicates + """ + lastName: String + lastNameNEQ: String + lastNameIn: [String!] + lastNameNotIn: [String!] + lastNameGT: String + lastNameGTE: String + lastNameLT: String + lastNameLTE: String + lastNameContains: String + lastNameHasPrefix: String + lastNameHasSuffix: String + lastNameIsNil: Boolean + lastNameNotNil: Boolean + lastNameEqualFold: String + lastNameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String + """ + avatar_local_file field predicates + """ + avatarLocalFile: String + avatarLocalFileNEQ: String + avatarLocalFileIn: [String!] + avatarLocalFileNotIn: [String!] + avatarLocalFileGT: String + avatarLocalFileGTE: String + avatarLocalFileLT: String + avatarLocalFileLTE: String + avatarLocalFileContains: String + avatarLocalFileHasPrefix: String + avatarLocalFileHasSuffix: String + avatarLocalFileIsNil: Boolean + avatarLocalFileNotNil: Boolean + avatarLocalFileEqualFold: String + avatarLocalFileContainsFold: String + """ + avatar_local_file_id field predicates + """ + avatarLocalFileID: ID + avatarLocalFileIDNEQ: ID + avatarLocalFileIDIn: [ID!] + avatarLocalFileIDNotIn: [ID!] + avatarLocalFileIDGT: ID + avatarLocalFileIDGTE: ID + avatarLocalFileIDLT: ID + avatarLocalFileIDLTE: ID + avatarLocalFileIDContains: ID + avatarLocalFileIDHasPrefix: ID + avatarLocalFileIDHasSuffix: ID + avatarLocalFileIDIsNil: Boolean + avatarLocalFileIDNotNil: Boolean + avatarLocalFileIDEqualFold: ID + avatarLocalFileIDContainsFold: ID + """ + avatar_updated_at field predicates + """ + avatarUpdatedAt: Time + avatarUpdatedAtNEQ: Time + avatarUpdatedAtIn: [Time!] + avatarUpdatedAtNotIn: [Time!] + avatarUpdatedAtGT: Time + avatarUpdatedAtGTE: Time + avatarUpdatedAtLT: Time + avatarUpdatedAtLTE: Time + avatarUpdatedAtIsNil: Boolean + avatarUpdatedAtNotNil: Boolean + """ + last_seen field predicates + """ + lastSeen: Time + lastSeenNEQ: Time + lastSeenIn: [Time!] + lastSeenNotIn: [Time!] + lastSeenGT: Time + lastSeenGTE: Time + lastSeenLT: Time + lastSeenLTE: Time + lastSeenIsNil: Boolean + lastSeenNotNil: Boolean + """ + sub field predicates + """ + sub: String subNEQ: String subIn: [String!] subNotIn: [String!] @@ -35075,20909 +50735,88942 @@ input UserHistoryWhereInput { subEqualFold: String subContainsFold: String """ - auth_provider field predicates + auth_provider field predicates + """ + authProvider: UserAuthProvider + authProviderNEQ: UserAuthProvider + authProviderIn: [UserAuthProvider!] + authProviderNotIn: [UserAuthProvider!] + """ + role field predicates + """ + role: UserRole + roleNEQ: UserRole + roleIn: [UserRole!] + roleNotIn: [UserRole!] + roleIsNil: Boolean + roleNotNil: Boolean + """ + personal_access_tokens edge predicates + """ + hasPersonalAccessTokens: Boolean + hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] + """ + tfa_settings edge predicates + """ + hasTfaSettings: Boolean + hasTfaSettingsWith: [TFASettingWhereInput!] + """ + setting edge predicates + """ + hasSetting: Boolean + hasSettingWith: [UserSettingWhereInput!] + """ + groups edge predicates + """ + hasGroups: Boolean + hasGroupsWith: [GroupWhereInput!] + """ + organizations edge predicates + """ + hasOrganizations: Boolean + hasOrganizationsWith: [OrganizationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + file edge predicates + """ + hasFile: Boolean + hasFileWith: [FileWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + actionplans edge predicates + """ + hasActionplans: Boolean + hasActionplansWith: [ActionPlanWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + group_memberships edge predicates + """ + hasGroupMemberships: Boolean + hasGroupMembershipsWith: [GroupMembershipWhereInput!] + """ + org_memberships edge predicates + """ + hasOrgMemberships: Boolean + hasOrgMembershipsWith: [OrgMembershipWhereInput!] +} +type Webhook implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the webhook + """ + name: String! + """ + a description of the webhook + """ + description: String + """ + the url to send the webhook to + """ + destinationURL: String! + """ + indicates if the webhook is active and enabled + """ + enabled: Boolean! + """ + the number of failures + """ + failures: Int + """ + the last error message + """ + lastError: String + """ + the last response + """ + lastResponse: String + owner: Organization + events: [Event!] + integrations: [Integration!] +} +""" +A connection to a list of items. +""" +type WebhookConnection { + """ + A list of edges. + """ + edges: [WebhookEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type WebhookEdge { + """ + The item at the end of the edge. + """ + node: Webhook + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type WebhookHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: WebhookHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the webhook + """ + name: String! + """ + a description of the webhook + """ + description: String + """ + the url to send the webhook to + """ + destinationURL: String! + """ + indicates if the webhook is active and enabled + """ + enabled: Boolean! + """ + the number of failures + """ + failures: Int + """ + the last error message + """ + lastError: String + """ + the last response + """ + lastResponse: String +} +""" +A connection to a list of items. +""" +type WebhookHistoryConnection { + """ + A list of edges. + """ + edges: [WebhookHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type WebhookHistoryEdge { + """ + The item at the end of the edge. + """ + node: WebhookHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +WebhookHistoryOpType is enum for the field operation +""" +enum WebhookHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for WebhookHistory connections +""" +input WebhookHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order WebhookHistories. + """ + field: WebhookHistoryOrderField! +} +""" +Properties by which WebhookHistory connections can be ordered. +""" +enum WebhookHistoryOrderField { + name + url +} +""" +WebhookHistoryWhereInput is used for filtering WebhookHistory objects. +Input was generated by ent. +""" +input WebhookHistoryWhereInput { + not: WebhookHistoryWhereInput + and: [WebhookHistoryWhereInput!] + or: [WebhookHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: WebhookHistoryOpType + operationNEQ: WebhookHistoryOpType + operationIn: [WebhookHistoryOpType!] + operationNotIn: [WebhookHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates """ - authProvider: UserHistoryAuthProvider - authProviderNEQ: UserHistoryAuthProvider - authProviderIn: [UserHistoryAuthProvider!] - authProviderNotIn: [UserHistoryAuthProvider!] + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - role field predicates + deleted_by field predicates """ - role: UserHistoryRole - roleNEQ: UserHistoryRole - roleIn: [UserHistoryRole!] - roleNotIn: [UserHistoryRole!] - roleIsNil: Boolean - roleNotNil: Boolean + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + destination_url field predicates + """ + destinationURL: String + destinationURLNEQ: String + destinationURLIn: [String!] + destinationURLNotIn: [String!] + destinationURLGT: String + destinationURLGTE: String + destinationURLLT: String + destinationURLLTE: String + destinationURLContains: String + destinationURLHasPrefix: String + destinationURLHasSuffix: String + destinationURLEqualFold: String + destinationURLContainsFold: String + """ + enabled field predicates + """ + enabled: Boolean + enabledNEQ: Boolean + """ + failures field predicates + """ + failures: Int + failuresNEQ: Int + failuresIn: [Int!] + failuresNotIn: [Int!] + failuresGT: Int + failuresGTE: Int + failuresLT: Int + failuresLTE: Int + failuresIsNil: Boolean + failuresNotNil: Boolean + """ + last_error field predicates + """ + lastError: String + lastErrorNEQ: String + lastErrorIn: [String!] + lastErrorNotIn: [String!] + lastErrorGT: String + lastErrorGTE: String + lastErrorLT: String + lastErrorLTE: String + lastErrorContains: String + lastErrorHasPrefix: String + lastErrorHasSuffix: String + lastErrorIsNil: Boolean + lastErrorNotNil: Boolean + lastErrorEqualFold: String + lastErrorContainsFold: String + """ + last_response field predicates + """ + lastResponse: String + lastResponseNEQ: String + lastResponseIn: [String!] + lastResponseNotIn: [String!] + lastResponseGT: String + lastResponseGTE: String + lastResponseLT: String + lastResponseLTE: String + lastResponseContains: String + lastResponseHasPrefix: String + lastResponseHasSuffix: String + lastResponseIsNil: Boolean + lastResponseNotNil: Boolean + lastResponseEqualFold: String + lastResponseContainsFold: String +} +""" +Ordering options for Webhook connections +""" +input WebhookOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Webhooks. + """ + field: WebhookOrderField! +} +""" +Properties by which Webhook connections can be ordered. +""" +enum WebhookOrderField { + name + url +} +""" +WebhookWhereInput is used for filtering Webhook objects. +Input was generated by ent. +""" +input WebhookWhereInput { + not: WebhookWhereInput + and: [WebhookWhereInput!] + or: [WebhookWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + destination_url field predicates + """ + destinationURL: String + destinationURLNEQ: String + destinationURLIn: [String!] + destinationURLNotIn: [String!] + destinationURLGT: String + destinationURLGTE: String + destinationURLLT: String + destinationURLLTE: String + destinationURLContains: String + destinationURLHasPrefix: String + destinationURLHasSuffix: String + destinationURLEqualFold: String + destinationURLContainsFold: String + """ + enabled field predicates + """ + enabled: Boolean + enabledNEQ: Boolean + """ + failures field predicates + """ + failures: Int + failuresNEQ: Int + failuresIn: [Int!] + failuresNotIn: [Int!] + failuresGT: Int + failuresGTE: Int + failuresLT: Int + failuresLTE: Int + failuresIsNil: Boolean + failuresNotNil: Boolean + """ + last_error field predicates + """ + lastError: String + lastErrorNEQ: String + lastErrorIn: [String!] + lastErrorNotIn: [String!] + lastErrorGT: String + lastErrorGTE: String + lastErrorLT: String + lastErrorLTE: String + lastErrorContains: String + lastErrorHasPrefix: String + lastErrorHasSuffix: String + lastErrorIsNil: Boolean + lastErrorNotNil: Boolean + lastErrorEqualFold: String + lastErrorContainsFold: String + """ + last_response field predicates + """ + lastResponse: String + lastResponseNEQ: String + lastResponseIn: [String!] + lastResponseNotIn: [String!] + lastResponseGT: String + lastResponseGTE: String + lastResponseLT: String + lastResponseLTE: String + lastResponseContains: String + lastResponseHasPrefix: String + lastResponseHasSuffix: String + lastResponseIsNil: Boolean + lastResponseNotNil: Boolean + lastResponseEqualFold: String + lastResponseContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + integrations edge predicates + """ + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] +} +`, BuiltIn: false}, + {Name: "../../schema/entitlement.graphql", Input: `extend type Query { + """ + Look up entitlement by ID + """ + entitlement( + """ + ID of the entitlement + """ + id: ID! + ): Entitlement! +} + +extend type Mutation{ + """ + Create a new entitlement + """ + createEntitlement( + """ + values of the entitlement + """ + input: CreateEntitlementInput! + ): EntitlementCreatePayload! + """ + Create multiple new entitlements + """ + createBulkEntitlement( + """ + values of the entitlement + """ + input: [CreateEntitlementInput!] + ): EntitlementBulkCreatePayload! + """ + Create multiple new entitlements via file upload + """ + createBulkCSVEntitlement( + """ + csv file containing values of the entitlement + """ + input: Upload! + ): EntitlementBulkCreatePayload! + """ + Update an existing entitlement + """ + updateEntitlement( + """ + ID of the entitlement + """ + id: ID! + """ + New values for the entitlement + """ + input: UpdateEntitlementInput! + ): EntitlementUpdatePayload! + """ + Delete an existing entitlement + """ + deleteEntitlement( + """ + ID of the entitlement + """ + id: ID! + ): EntitlementDeletePayload! +} + +""" +Return response for createEntitlement mutation +""" +type EntitlementCreatePayload { + """ + Created entitlement + """ + entitlement: Entitlement! +} + +""" +Return response for updateEntitlement mutation +""" +type EntitlementUpdatePayload { + """ + Updated entitlement + """ + entitlement: Entitlement! +} + +""" +Return response for deleteEntitlement mutation +""" +type EntitlementDeletePayload { + """ + Deleted entitlement ID + """ + deletedID: ID! +} + +""" +Return response for createBulkEntitlement mutation +""" +type EntitlementBulkCreatePayload { + """ + Created entitlements + """ + entitlements: [Entitlement!] +}`, BuiltIn: false}, + {Name: "../../schema/entitlementplan.graphql", Input: `extend type Query { + """ + Look up entitlementPlan by ID + """ + entitlementPlan( + """ + ID of the entitlementPlan + """ + id: ID! + ): EntitlementPlan! +} + +extend type Mutation{ + """ + Create a new entitlementPlan + """ + createEntitlementPlan( + """ + values of the entitlementPlan + """ + input: CreateEntitlementPlanInput! + ): EntitlementPlanCreatePayload! + """ + Create multiple new entitlementPlans + """ + createBulkEntitlementPlan( + """ + values of the entitlementPlan + """ + input: [CreateEntitlementPlanInput!] + ): EntitlementPlanBulkCreatePayload! + """ + Create multiple new entitlementPlans via file upload + """ + createBulkCSVEntitlementPlan( + """ + csv file containing values of the entitlementPlan + """ + input: Upload! + ): EntitlementPlanBulkCreatePayload! + """ + Update an existing entitlementPlan + """ + updateEntitlementPlan( + """ + ID of the entitlementPlan + """ + id: ID! + """ + New values for the entitlementPlan + """ + input: UpdateEntitlementPlanInput! + ): EntitlementPlanUpdatePayload! + """ + Delete an existing entitlementPlan + """ + deleteEntitlementPlan( + """ + ID of the entitlementPlan + """ + id: ID! + ): EntitlementPlanDeletePayload! +} + +""" +Return response for createEntitlementPlan mutation +""" +type EntitlementPlanCreatePayload { + """ + Created entitlementPlan + """ + entitlementPlan: EntitlementPlan! +} + +""" +Return response for updateEntitlementPlan mutation +""" +type EntitlementPlanUpdatePayload { + """ + Updated entitlementPlan + """ + entitlementPlan: EntitlementPlan! +} + +""" +Return response for deleteEntitlementPlan mutation +""" +type EntitlementPlanDeletePayload { + """ + Deleted entitlementPlan ID + """ + deletedID: ID! +} + +""" +Return response for createBulkEntitlementPlan mutation +""" +type EntitlementPlanBulkCreatePayload { + """ + Created entitlementPlans + """ + entitlementPlans: [EntitlementPlan!] +}`, BuiltIn: false}, + {Name: "../../schema/entitlementplanfeature.graphql", Input: `extend type Query { + """ + Look up entitlementPlanFeature by ID + """ + entitlementPlanFeature( + """ + ID of the entitlementPlanFeature + """ + id: ID! + ): EntitlementPlanFeature! +} + +extend type Mutation{ + """ + Create a new entitlementPlanFeature + """ + createEntitlementPlanFeature( + """ + values of the entitlementPlanFeature + """ + input: CreateEntitlementPlanFeatureInput! + ): EntitlementPlanFeatureCreatePayload! + """ + Create multiple new entitlementPlanFeatures + """ + createBulkEntitlementPlanFeature( + """ + values of the entitlementPlanFeature + """ + input: [CreateEntitlementPlanFeatureInput!] + ): EntitlementPlanFeatureBulkCreatePayload! + """ + Create multiple new entitlementPlanFeatures via file upload + """ + createBulkCSVEntitlementPlanFeature( + """ + csv file containing values of the entitlementPlanFeature + """ + input: Upload! + ): EntitlementPlanFeatureBulkCreatePayload! + """ + Update an existing entitlementPlanFeature + """ + updateEntitlementPlanFeature( + """ + ID of the entitlementPlanFeature + """ + id: ID! + """ + New values for the entitlementPlanFeature + """ + input: UpdateEntitlementPlanFeatureInput! + ): EntitlementPlanFeatureUpdatePayload! + """ + Delete an existing entitlementPlanFeature + """ + deleteEntitlementPlanFeature( + """ + ID of the entitlementPlanFeature + """ + id: ID! + ): EntitlementPlanFeatureDeletePayload! +} + +""" +Return response for createEntitlementPlanFeature mutation +""" +type EntitlementPlanFeatureCreatePayload { + """ + Created entitlementPlanFeature + """ + entitlementPlanFeature: EntitlementPlanFeature! +} + +""" +Return response for updateEntitlementPlanFeature mutation +""" +type EntitlementPlanFeatureUpdatePayload { + """ + Updated entitlementPlanFeature + """ + entitlementPlanFeature: EntitlementPlanFeature! +} + +""" +Return response for deleteEntitlementPlanFeature mutation +""" +type EntitlementPlanFeatureDeletePayload { + """ + Deleted entitlementPlanFeature ID + """ + deletedID: ID! +} + +""" +Return response for createBulkEntitlementPlanFeature mutation +""" +type EntitlementPlanFeatureBulkCreatePayload { + """ + Created entitlementPlanFeatures + """ + entitlementPlanFeatures: [EntitlementPlanFeature!] +}`, BuiltIn: false}, + {Name: "../../schema/entity.graphql", Input: `extend type Query { + """ + Look up entity by ID + """ + entity( + """ + ID of the entity + """ + id: ID! + ): Entity! +} + +extend type Mutation{ + """ + Create a new entity + """ + createEntity( + """ + values of the entity + """ + input: CreateEntityInput! + ): EntityCreatePayload! + """ + Create multiple new entities + """ + createBulkEntity( + """ + values of the entity + """ + input: [CreateEntityInput!] + ): EntityBulkCreatePayload! + """ + Create multiple new entities via file upload + """ + createBulkCSVEntity( + """ + csv file containing values of the entity + """ + input: Upload! + ): EntityBulkCreatePayload! + """ + Update an existing entity + """ + updateEntity( + """ + ID of the entity + """ + id: ID! + """ + New values for the entity + """ + input: UpdateEntityInput! + ): EntityUpdatePayload! + """ + Delete an existing entity + """ + deleteEntity( + """ + ID of the entity + """ + id: ID! + ): EntityDeletePayload! +} + +""" +Return response for createEntity mutation +""" +type EntityCreatePayload { + """ + Created entity + """ + entity: Entity! +} + +""" +Return response for updateEntity mutation +""" +type EntityUpdatePayload { + """ + Updated entity + """ + entity: Entity! +} + +""" +Return response for deleteEntity mutation +""" +type EntityDeletePayload { + """ + Deleted entity ID + """ + deletedID: ID! +} + +""" +Return response for createBulkEntity mutation +""" +type EntityBulkCreatePayload { + """ + Created entities + """ + entities: [Entity!] +}`, BuiltIn: false}, + {Name: "../../schema/entityextended.graphql", Input: `extend input CreateEntityInput { + note: CreateNoteInput +} + +extend input UpdateEntityInput { + note: CreateNoteInput +} +`, BuiltIn: false}, + {Name: "../../schema/entitytype.graphql", Input: `extend type Query { + """ + Look up entityType by ID + """ + entityType( + """ + ID of the entityType + """ + id: ID! + ): EntityType! +} + +extend type Mutation{ + """ + Create a new entityType + """ + createEntityType( + """ + values of the entityType + """ + input: CreateEntityTypeInput! + ): EntityTypeCreatePayload! + """ + Create multiple new entityTypes + """ + createBulkEntityType( + """ + values of the entityType + """ + input: [CreateEntityTypeInput!] + ): EntityTypeBulkCreatePayload! + """ + Create multiple new entityTypes via file upload + """ + createBulkCSVEntityType( + """ + csv file containing values of the entityType + """ + input: Upload! + ): EntityTypeBulkCreatePayload! + """ + Update an existing entityType + """ + updateEntityType( + """ + ID of the entityType + """ + id: ID! + """ + New values for the entityType + """ + input: UpdateEntityTypeInput! + ): EntityTypeUpdatePayload! + """ + Delete an existing entityType + """ + deleteEntityType( + """ + ID of the entityType + """ + id: ID! + ): EntityTypeDeletePayload! +} + +""" +Return response for createEntityType mutation +""" +type EntityTypeCreatePayload { + """ + Created entityType + """ + entityType: EntityType! +} + +""" +Return response for updateEntityType mutation +""" +type EntityTypeUpdatePayload { + """ + Updated entityType + """ + entityType: EntityType! +} + +""" +Return response for deleteEntityType mutation +""" +type EntityTypeDeletePayload { + """ + Deleted entityType ID + """ + deletedID: ID! +} + +""" +Return response for createBulkEntityType mutation +""" +type EntityTypeBulkCreatePayload { + """ + Created entityTypes + """ + entityTypes: [EntityType!] +}`, BuiltIn: false}, + {Name: "../../schema/event.graphql", Input: `extend type Query { + """ + Look up event by ID + """ + event( + """ + ID of the event + """ + id: ID! + ): Event! +} + +extend type Mutation{ + """ + Create a new event + """ + createEvent( + """ + values of the event + """ + input: CreateEventInput! + ): EventCreatePayload! + """ + Create multiple new events + """ + createBulkEvent( + """ + values of the event + """ + input: [CreateEventInput!] + ): EventBulkCreatePayload! + """ + Create multiple new events via file upload + """ + createBulkCSVEvent( + """ + csv file containing values of the event + """ + input: Upload! + ): EventBulkCreatePayload! + """ + Update an existing event + """ + updateEvent( + """ + ID of the event + """ + id: ID! + """ + New values for the event + """ + input: UpdateEventInput! + ): EventUpdatePayload! + """ + Delete an existing event + """ + deleteEvent( + """ + ID of the event + """ + id: ID! + ): EventDeletePayload! +} + +""" +Return response for createEvent mutation +""" +type EventCreatePayload { + """ + Created event + """ + event: Event! +} + +""" +Return response for updateEvent mutation +""" +type EventUpdatePayload { + """ + Updated event + """ + event: Event! +} + +""" +Return response for deleteEvent mutation +""" +type EventDeletePayload { + """ + Deleted event ID + """ + deletedID: ID! +} + +""" +Return response for createBulkEvent mutation +""" +type EventBulkCreatePayload { + """ + Created events + """ + events: [Event!] +}`, BuiltIn: false}, + {Name: "../../schema/feature.graphql", Input: `extend type Query { + """ + Look up feature by ID + """ + feature( + """ + ID of the feature + """ + id: ID! + ): Feature! +} + +extend type Mutation{ + """ + Create a new feature + """ + createFeature( + """ + values of the feature + """ + input: CreateFeatureInput! + ): FeatureCreatePayload! + """ + Create multiple new features + """ + createBulkFeature( + """ + values of the feature + """ + input: [CreateFeatureInput!] + ): FeatureBulkCreatePayload! + """ + Create multiple new features via file upload + """ + createBulkCSVFeature( + """ + csv file containing values of the feature + """ + input: Upload! + ): FeatureBulkCreatePayload! + """ + Update an existing feature + """ + updateFeature( + """ + ID of the feature + """ + id: ID! + """ + New values for the feature + """ + input: UpdateFeatureInput! + ): FeatureUpdatePayload! + """ + Delete an existing feature + """ + deleteFeature( + """ + ID of the feature + """ + id: ID! + ): FeatureDeletePayload! +} + +""" +Return response for createFeature mutation +""" +type FeatureCreatePayload { + """ + Created feature + """ + feature: Feature! +} + +""" +Return response for updateFeature mutation +""" +type FeatureUpdatePayload { + """ + Updated feature + """ + feature: Feature! +} + +""" +Return response for deleteFeature mutation +""" +type FeatureDeletePayload { + """ + Deleted feature ID + """ + deletedID: ID! +} + +""" +Return response for createBulkFeature mutation +""" +type FeatureBulkCreatePayload { + """ + Created features + """ + features: [Feature!] +}`, BuiltIn: false}, + {Name: "../../schema/file.graphql", Input: `extend type Query { + """ + Look up file by ID + """ + file( + """ + ID of the file + """ + id: ID! + ): File! +} + +extend type Mutation{ + """ + Delete an existing file + """ + deleteFile( + """ + ID of the file + """ + id: ID! + ): FileDeletePayload! +} + +""" +Return response for deleteFile mutation +""" +type FileDeletePayload { + """ + Deleted file ID + """ + deletedID: ID! +} + +`, BuiltIn: false}, + {Name: "../../schema/group.graphql", Input: `extend type Query { + """ + Look up group by ID + """ + group( + """ + ID of the group + """ + id: ID! + ): Group! +} + +extend type Mutation{ + """ + Create a new group + """ + createGroup( + """ + values of the group + """ + input: CreateGroupInput! + ): GroupCreatePayload! + """ + Create multiple new groups + """ + createBulkGroup( + """ + values of the group + """ + input: [CreateGroupInput!] + ): GroupBulkCreatePayload! + """ + Create multiple new groups via file upload + """ + createBulkCSVGroup( + """ + csv file containing values of the group + """ + input: Upload! + ): GroupBulkCreatePayload! + """ + Update an existing group + """ + updateGroup( + """ + ID of the group + """ + id: ID! + """ + New values for the group + """ + input: UpdateGroupInput! + ): GroupUpdatePayload! + """ + Delete an existing group + """ + deleteGroup( + """ + ID of the group + """ + id: ID! + ): GroupDeletePayload! +} + +""" +Return response for createGroup mutation +""" +type GroupCreatePayload { + """ + Created group + """ + group: Group! +} + +""" +Return response for updateGroup mutation +""" +type GroupUpdatePayload { + """ + Updated group + """ + group: Group! +} + +""" +Return response for deleteGroup mutation +""" +type GroupDeletePayload { + """ + Deleted group ID + """ + deletedID: ID! +} + +""" +Return response for createBulkGroup mutation +""" +type GroupBulkCreatePayload { + """ + Created groups + """ + groups: [Group!] +}`, BuiltIn: false}, + {Name: "../../schema/groupextended.graphql", Input: `extend input CreateGroupInput { + createGroupSettings: CreateGroupSettingInput +} + +extend input UpdateGroupInput { + addGroupMembers: [CreateGroupMembershipInput!] + updateGroupSettings: UpdateGroupSettingInput +} + +extend input GroupMembershipWhereInput { + groupID: String + userID: String +}`, BuiltIn: false}, + {Name: "../../schema/groupmembership.graphql", Input: `extend type Query { + """ + Look up groupMembership by ID + """ + groupMembership( + """ + ID of the groupMembership + """ + id: ID! + ): GroupMembership! +} + +extend type Mutation{ + """ + Create a new groupMembership + """ + createGroupMembership( + """ + values of the groupMembership + """ + input: CreateGroupMembershipInput! + ): GroupMembershipCreatePayload! + """ + Create multiple new groupMemberships + """ + createBulkGroupMembership( + """ + values of the groupMembership + """ + input: [CreateGroupMembershipInput!] + ): GroupMembershipBulkCreatePayload! + """ + Create multiple new groupMemberships via file upload + """ + createBulkCSVGroupMembership( + """ + csv file containing values of the groupMembership + """ + input: Upload! + ): GroupMembershipBulkCreatePayload! + """ + Update an existing groupMembership + """ + updateGroupMembership( + """ + ID of the groupMembership + """ + id: ID! + """ + New values for the groupMembership + """ + input: UpdateGroupMembershipInput! + ): GroupMembershipUpdatePayload! + """ + Delete an existing groupMembership + """ + deleteGroupMembership( + """ + ID of the groupMembership + """ + id: ID! + ): GroupMembershipDeletePayload! +} + +""" +Return response for createGroupMembership mutation +""" +type GroupMembershipCreatePayload { + """ + Created groupMembership + """ + groupMembership: GroupMembership! +} + +""" +Return response for updateGroupMembership mutation +""" +type GroupMembershipUpdatePayload { + """ + Updated groupMembership + """ + groupMembership: GroupMembership! +} + +""" +Return response for deleteGroupMembership mutation +""" +type GroupMembershipDeletePayload { + """ + Deleted groupMembership ID + """ + deletedID: ID! +} + +""" +Return response for createBulkGroupMembership mutation +""" +type GroupMembershipBulkCreatePayload { + """ + Created groupMemberships + """ + groupMemberships: [GroupMembership!] +}`, BuiltIn: false}, + {Name: "../../schema/groupsetting.graphql", Input: `extend type Query { + """ + Look up groupSetting by ID + """ + groupSetting( + """ + ID of the groupSetting + """ + id: ID! + ): GroupSetting! +} + +extend type Mutation{ + """ + Create a new groupSetting + """ + createGroupSetting( + """ + values of the groupSetting + """ + input: CreateGroupSettingInput! + ): GroupSettingCreatePayload! + """ + Create multiple new groupSettings + """ + createBulkGroupSetting( + """ + values of the groupSetting + """ + input: [CreateGroupSettingInput!] + ): GroupSettingBulkCreatePayload! + """ + Create multiple new groupSettings via file upload + """ + createBulkCSVGroupSetting( + """ + csv file containing values of the groupSetting + """ + input: Upload! + ): GroupSettingBulkCreatePayload! + """ + Update an existing groupSetting + """ + updateGroupSetting( + """ + ID of the groupSetting + """ + id: ID! + """ + New values for the groupSetting + """ + input: UpdateGroupSettingInput! + ): GroupSettingUpdatePayload! + """ + Delete an existing groupSetting + """ + deleteGroupSetting( + """ + ID of the groupSetting + """ + id: ID! + ): GroupSettingDeletePayload! +} + +""" +Return response for createGroupSetting mutation +""" +type GroupSettingCreatePayload { + """ + Created groupSetting + """ + groupSetting: GroupSetting! +} + +""" +Return response for updateGroupSetting mutation +""" +type GroupSettingUpdatePayload { + """ + Updated groupSetting + """ + groupSetting: GroupSetting! +} + +""" +Return response for deleteGroupSetting mutation +""" +type GroupSettingDeletePayload { + """ + Deleted groupSetting ID + """ + deletedID: ID! +} + +""" +Return response for createBulkGroupSetting mutation +""" +type GroupSettingBulkCreatePayload { + """ + Created groupSettings + """ + groupSettings: [GroupSetting!] +}`, BuiltIn: false}, + {Name: "../../schema/hush.graphql", Input: `extend type Query { + """ + Look up hush by ID + """ + hush( + """ + ID of the hush + """ + id: ID! + ): Hush! +} + +extend type Mutation{ + """ + Create a new hush + """ + createHush( + """ + values of the hush + """ + input: CreateHushInput! + ): HushCreatePayload! + """ + Create multiple new hushs + """ + createBulkHush( + """ + values of the hush + """ + input: [CreateHushInput!] + ): HushBulkCreatePayload! + """ + Create multiple new hushs via file upload + """ + createBulkCSVHush( + """ + csv file containing values of the hush + """ + input: Upload! + ): HushBulkCreatePayload! + """ + Update an existing hush + """ + updateHush( + """ + ID of the hush + """ + id: ID! + """ + New values for the hush + """ + input: UpdateHushInput! + ): HushUpdatePayload! + """ + Delete an existing hush + """ + deleteHush( + """ + ID of the hush + """ + id: ID! + ): HushDeletePayload! +} + +""" +Return response for createHush mutation +""" +type HushCreatePayload { + """ + Created hush + """ + hush: Hush! +} + +""" +Return response for updateHush mutation +""" +type HushUpdatePayload { + """ + Updated hush + """ + hush: Hush! +} + +""" +Return response for deleteHush mutation +""" +type HushDeletePayload { + """ + Deleted hush ID + """ + deletedID: ID! +} + +""" +Return response for createBulkHush mutation +""" +type HushBulkCreatePayload { + """ + Created hushs + """ + hushes: [Hush!] +}`, BuiltIn: false}, + {Name: "../../schema/integration.graphql", Input: `extend type Query { + """ + Look up integration by ID + """ + integration( + """ + ID of the integration + """ + id: ID! + ): Integration! +} + +extend type Mutation{ + """ + Create a new integration + """ + createIntegration( + """ + values of the integration + """ + input: CreateIntegrationInput! + ): IntegrationCreatePayload! + """ + Create multiple new integrations + """ + createBulkIntegration( + """ + values of the integration + """ + input: [CreateIntegrationInput!] + ): IntegrationBulkCreatePayload! + """ + Create multiple new integrations via file upload + """ + createBulkCSVIntegration( + """ + csv file containing values of the integration + """ + input: Upload! + ): IntegrationBulkCreatePayload! + """ + Update an existing integration + """ + updateIntegration( + """ + ID of the integration + """ + id: ID! + """ + New values for the integration + """ + input: UpdateIntegrationInput! + ): IntegrationUpdatePayload! + """ + Delete an existing integration + """ + deleteIntegration( + """ + ID of the integration + """ + id: ID! + ): IntegrationDeletePayload! +} + +""" +Return response for createIntegration mutation +""" +type IntegrationCreatePayload { + """ + Created integration + """ + integration: Integration! +} + +""" +Return response for updateIntegration mutation +""" +type IntegrationUpdatePayload { + """ + Updated integration + """ + integration: Integration! +} + +""" +Return response for deleteIntegration mutation +""" +type IntegrationDeletePayload { + """ + Deleted integration ID + """ + deletedID: ID! +} + +""" +Return response for createBulkIntegration mutation +""" +type IntegrationBulkCreatePayload { + """ + Created integrations + """ + integrations: [Integration!] +}`, BuiltIn: false}, + {Name: "../../schema/internalpolicy.graphql", Input: `extend type Query { + """ + Look up internalPolicy by ID + """ + internalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + ): InternalPolicy! +} + +extend type Mutation{ + """ + Create a new internalPolicy + """ + createInternalPolicy( + """ + values of the internalPolicy + """ + input: CreateInternalPolicyInput! + ): InternalPolicyCreatePayload! + """ + Create multiple new internalPolicys + """ + createBulkInternalPolicy( + """ + values of the internalPolicy + """ + input: [CreateInternalPolicyInput!] + ): InternalPolicyBulkCreatePayload! + """ + Create multiple new internalPolicys via file upload + """ + createBulkCSVInternalPolicy( + """ + csv file containing values of the internalPolicy + """ + input: Upload! + ): InternalPolicyBulkCreatePayload! + """ + Update an existing internalPolicy + """ + updateInternalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + """ + New values for the internalPolicy + """ + input: UpdateInternalPolicyInput! + ): InternalPolicyUpdatePayload! + """ + Delete an existing internalPolicy + """ + deleteInternalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + ): InternalPolicyDeletePayload! +} + +""" +Return response for createInternalPolicy mutation +""" +type InternalPolicyCreatePayload { + """ + Created internalPolicy + """ + internalPolicy: InternalPolicy! +} + +""" +Return response for updateInternalPolicy mutation +""" +type InternalPolicyUpdatePayload { + """ + Updated internalPolicy + """ + internalPolicy: InternalPolicy! +} + +""" +Return response for deleteInternalPolicy mutation +""" +type InternalPolicyDeletePayload { + """ + Deleted internalPolicy ID + """ + deletedID: ID! +} + +""" +Return response for createBulkInternalPolicy mutation +""" +type InternalPolicyBulkCreatePayload { + """ + Created internalPolicys + """ + internalPolicies: [InternalPolicy!] +}`, BuiltIn: false}, + {Name: "../../schema/invite.graphql", Input: `extend type Query { + """ + Look up invite by ID + """ + invite( + """ + ID of the invite + """ + id: ID! + ): Invite! +} + +extend type Mutation{ + """ + Create a new invite + """ + createInvite( + """ + values of the invite + """ + input: CreateInviteInput! + ): InviteCreatePayload! + """ + Create multiple new invites + """ + createBulkInvite( + """ + values of the invite + """ + input: [CreateInviteInput!] + ): InviteBulkCreatePayload! + """ + Create multiple new invites via file upload + """ + createBulkCSVInvite( + """ + csv file containing values of the invite + """ + input: Upload! + ): InviteBulkCreatePayload! + """ + Update an existing invite + """ + updateInvite( + """ + ID of the invite + """ + id: ID! + """ + New values for the invite + """ + input: UpdateInviteInput! + ): InviteUpdatePayload! + """ + Delete an existing invite + """ + deleteInvite( + """ + ID of the invite + """ + id: ID! + ): InviteDeletePayload! +} + +""" +Return response for createInvite mutation +""" +type InviteCreatePayload { + """ + Created invite + """ + invite: Invite! +} + +""" +Return response for updateInvite mutation +""" +type InviteUpdatePayload { + """ + Updated invite + """ + invite: Invite! +} + +""" +Return response for deleteInvite mutation +""" +type InviteDeletePayload { + """ + Deleted invite ID + """ + deletedID: ID! +} + +""" +Return response for createBulkInvite mutation +""" +type InviteBulkCreatePayload { + """ + Created invites + """ + invites: [Invite!] +}`, BuiltIn: false}, + {Name: "../../schema/narrative.graphql", Input: `extend type Query { + """ + Look up narrative by ID + """ + narrative( + """ + ID of the narrative + """ + id: ID! + ): Narrative! +} + +extend type Mutation{ + """ + Create a new narrative + """ + createNarrative( + """ + values of the narrative + """ + input: CreateNarrativeInput! + ): NarrativeCreatePayload! + """ + Create multiple new narratives + """ + createBulkNarrative( + """ + values of the narrative + """ + input: [CreateNarrativeInput!] + ): NarrativeBulkCreatePayload! + """ + Create multiple new narratives via file upload + """ + createBulkCSVNarrative( + """ + csv file containing values of the narrative + """ + input: Upload! + ): NarrativeBulkCreatePayload! + """ + Update an existing narrative + """ + updateNarrative( + """ + ID of the narrative + """ + id: ID! + """ + New values for the narrative + """ + input: UpdateNarrativeInput! + ): NarrativeUpdatePayload! + """ + Delete an existing narrative + """ + deleteNarrative( + """ + ID of the narrative + """ + id: ID! + ): NarrativeDeletePayload! +} + +""" +Return response for createNarrative mutation +""" +type NarrativeCreatePayload { + """ + Created narrative + """ + narrative: Narrative! +} + +""" +Return response for updateNarrative mutation +""" +type NarrativeUpdatePayload { + """ + Updated narrative + """ + narrative: Narrative! +} + +""" +Return response for deleteNarrative mutation +""" +type NarrativeDeletePayload { + """ + Deleted narrative ID + """ + deletedID: ID! +} + +""" +Return response for createBulkNarrative mutation +""" +type NarrativeBulkCreatePayload { + """ + Created narratives + """ + narratives: [Narrative!] +}`, BuiltIn: false}, + {Name: "../../schema/oauthprovider.graphql", Input: `extend type Query { + """ + Look up oauthProvider by ID + """ + oauthProvider( + """ + ID of the oauthProvider + """ + id: ID! + ): OauthProvider! +} + +extend type Mutation{ + """ + Create a new oauthProvider + """ + createOauthProvider( + """ + values of the oauthProvider + """ + input: CreateOauthProviderInput! + ): OauthProviderCreatePayload! + """ + Create multiple new oauthProviders + """ + createBulkOauthProvider( + """ + values of the oauthProvider + """ + input: [CreateOauthProviderInput!] + ): OauthProviderBulkCreatePayload! + """ + Create multiple new oauthProviders via file upload + """ + createBulkCSVOauthProvider( + """ + csv file containing values of the oauthProvider + """ + input: Upload! + ): OauthProviderBulkCreatePayload! + """ + Update an existing oauthProvider + """ + updateOauthProvider( + """ + ID of the oauthProvider + """ + id: ID! + """ + New values for the oauthProvider + """ + input: UpdateOauthProviderInput! + ): OauthProviderUpdatePayload! + """ + Delete an existing oauthProvider + """ + deleteOauthProvider( + """ + ID of the oauthProvider + """ + id: ID! + ): OauthProviderDeletePayload! +} + +""" +Return response for createOauthProvider mutation +""" +type OauthProviderCreatePayload { + """ + Created oauthProvider + """ + oauthProvider: OauthProvider! +} + +""" +Return response for updateOauthProvider mutation +""" +type OauthProviderUpdatePayload { + """ + Updated oauthProvider + """ + oauthProvider: OauthProvider! +} + +""" +Return response for deleteOauthProvider mutation +""" +type OauthProviderDeletePayload { + """ + Deleted oauthProvider ID + """ + deletedID: ID! +} + +""" +Return response for createBulkOauthProvider mutation +""" +type OauthProviderBulkCreatePayload { + """ + Created oauthProviders + """ + oauthProviders: [OauthProvider!] +}`, BuiltIn: false}, + {Name: "../../schema/ohauthtootoken.graphql", Input: `extend type Query { + """ + Look up ohAuthTooToken by ID + """ + ohAuthTooToken( + """ + ID of the ohAuthTooToken + """ + id: ID! + ): OhAuthTooToken! +} + +extend type Mutation{ + """ + Create a new ohAuthTooToken + """ + createOhAuthTooToken( + """ + values of the ohAuthTooToken + """ + input: CreateOhAuthTooTokenInput! + ): OhAuthTooTokenCreatePayload! + """ + Create multiple new ohAuthTooTokens + """ + createBulkOhAuthTooToken( + """ + values of the ohAuthTooToken + """ + input: [CreateOhAuthTooTokenInput!] + ): OhAuthTooTokenBulkCreatePayload! + """ + Create multiple new ohAuthTooTokens via file upload + """ + createBulkCSVOhAuthTooToken( + """ + csv file containing values of the ohAuthTooToken + """ + input: Upload! + ): OhAuthTooTokenBulkCreatePayload! + """ + Update an existing ohAuthTooToken + """ + updateOhAuthTooToken( + """ + ID of the ohAuthTooToken + """ + id: ID! + """ + New values for the ohAuthTooToken + """ + input: UpdateOhAuthTooTokenInput! + ): OhAuthTooTokenUpdatePayload! + """ + Delete an existing ohAuthTooToken + """ + deleteOhAuthTooToken( + """ + ID of the ohAuthTooToken + """ + id: ID! + ): OhAuthTooTokenDeletePayload! +} + +""" +Return response for createOhAuthTooToken mutation +""" +type OhAuthTooTokenCreatePayload { + """ + Created ohAuthTooToken + """ + ohAuthTooToken: OhAuthTooToken! +} + +""" +Return response for updateOhAuthTooToken mutation +""" +type OhAuthTooTokenUpdatePayload { + """ + Updated ohAuthTooToken + """ + ohAuthTooToken: OhAuthTooToken! +} + +""" +Return response for deleteOhAuthTooToken mutation +""" +type OhAuthTooTokenDeletePayload { + """ + Deleted ohAuthTooToken ID + """ + deletedID: ID! +} + +""" +Return response for createBulkOhAuthTooToken mutation +""" +type OhAuthTooTokenBulkCreatePayload { + """ + Created ohAuthTooTokens + """ + ohAuthTooTokens: [OhAuthTooToken!] +}`, BuiltIn: false}, + {Name: "../../schema/organization.graphql", Input: `extend type Query { + """ + Look up organization by ID + """ + organization( + """ + ID of the organization + """ + id: ID! + ): Organization! +} + +extend type Mutation{ + """ + Create a new organization + """ + createOrganization( + """ + values of the organization + """ + input: CreateOrganizationInput! + ): OrganizationCreatePayload! + """ + Create multiple new organizations + """ + createBulkOrganization( + """ + values of the organization + """ + input: [CreateOrganizationInput!] + ): OrganizationBulkCreatePayload! + """ + Create multiple new organizations via file upload + """ + createBulkCSVOrganization( + """ + csv file containing values of the organization + """ + input: Upload! + ): OrganizationBulkCreatePayload! + """ + Update an existing organization + """ + updateOrganization( + """ + ID of the organization + """ + id: ID! + """ + New values for the organization + """ + input: UpdateOrganizationInput! + ): OrganizationUpdatePayload! + """ + Delete an existing organization + """ + deleteOrganization( + """ + ID of the organization + """ + id: ID! + ): OrganizationDeletePayload! +} + +""" +Return response for createOrganization mutation +""" +type OrganizationCreatePayload { + """ + Created organization + """ + organization: Organization! +} + +""" +Return response for updateOrganization mutation +""" +type OrganizationUpdatePayload { + """ + Updated organization + """ + organization: Organization! +} + +""" +Return response for deleteOrganization mutation +""" +type OrganizationDeletePayload { + """ + Deleted organization ID + """ + deletedID: ID! +} + +""" +Return response for createBulkOrganization mutation +""" +type OrganizationBulkCreatePayload { + """ + Created organizations + """ + organizations: [Organization!] +}`, BuiltIn: false}, + {Name: "../../schema/organizationsetting.graphql", Input: `extend type Query { + """ + Look up organizationSetting by ID + """ + organizationSetting( + """ + ID of the organizationSetting + """ + id: ID! + ): OrganizationSetting! +} + +extend type Mutation{ + """ + Create a new organizationSetting + """ + createOrganizationSetting( + """ + values of the organizationSetting + """ + input: CreateOrganizationSettingInput! + ): OrganizationSettingCreatePayload! + """ + Create multiple new organizationSettings + """ + createBulkOrganizationSetting( + """ + values of the organizationSetting + """ + input: [CreateOrganizationSettingInput!] + ): OrganizationSettingBulkCreatePayload! + """ + Create multiple new organizationSettings via file upload + """ + createBulkCSVOrganizationSetting( + """ + csv file containing values of the organizationSetting + """ + input: Upload! + ): OrganizationSettingBulkCreatePayload! + """ + Update an existing organizationSetting + """ + updateOrganizationSetting( + """ + ID of the organizationSetting + """ + id: ID! + """ + New values for the organizationSetting + """ + input: UpdateOrganizationSettingInput! + ): OrganizationSettingUpdatePayload! + """ + Delete an existing organizationSetting + """ + deleteOrganizationSetting( + """ + ID of the organizationSetting + """ + id: ID! + ): OrganizationSettingDeletePayload! +} + +""" +Return response for createOrganizationSetting mutation +""" +type OrganizationSettingCreatePayload { + """ + Created organizationSetting + """ + organizationSetting: OrganizationSetting! +} + +""" +Return response for updateOrganizationSetting mutation +""" +type OrganizationSettingUpdatePayload { + """ + Updated organizationSetting + """ + organizationSetting: OrganizationSetting! +} + +""" +Return response for deleteOrganizationSetting mutation +""" +type OrganizationSettingDeletePayload { + """ + Deleted organizationSetting ID + """ + deletedID: ID! +} + +""" +Return response for createBulkOrganizationSetting mutation +""" +type OrganizationSettingBulkCreatePayload { + """ + Created organizationSettings + """ + organizationSettings: [OrganizationSetting!] +}`, BuiltIn: false}, + {Name: "../../schema/orgextended.graphql", Input: `extend input CreateOrganizationInput { + createOrgSettings: CreateOrganizationSettingInput +} + +extend input UpdateOrganizationInput { + addOrgMembers: [CreateOrgMembershipInput!] + updateOrgSettings: UpdateOrganizationSettingInput +} + +extend input OrgMembershipWhereInput { + organizationID: String + userID: String +}`, BuiltIn: false}, + {Name: "../../schema/orgmembership.graphql", Input: `extend type Query { + """ + Look up orgMembership by ID + """ + orgMembership( + """ + ID of the orgMembership + """ + id: ID! + ): OrgMembership! +} + +extend type Mutation{ + """ + Create a new orgMembership + """ + createOrgMembership( + """ + values of the orgMembership + """ + input: CreateOrgMembershipInput! + ): OrgMembershipCreatePayload! + """ + Create multiple new orgMemberships + """ + createBulkOrgMembership( + """ + values of the orgMembership + """ + input: [CreateOrgMembershipInput!] + ): OrgMembershipBulkCreatePayload! + """ + Create multiple new orgMemberships via file upload + """ + createBulkCSVOrgMembership( + """ + csv file containing values of the orgMembership + """ + input: Upload! + ): OrgMembershipBulkCreatePayload! + """ + Update an existing orgMembership + """ + updateOrgMembership( + """ + ID of the orgMembership + """ + id: ID! + """ + New values for the orgMembership + """ + input: UpdateOrgMembershipInput! + ): OrgMembershipUpdatePayload! + """ + Delete an existing orgMembership + """ + deleteOrgMembership( + """ + ID of the orgMembership + """ + id: ID! + ): OrgMembershipDeletePayload! +} + +""" +Return response for createOrgMembership mutation +""" +type OrgMembershipCreatePayload { + """ + Created orgMembership + """ + orgMembership: OrgMembership! +} + +""" +Return response for updateOrgMembership mutation +""" +type OrgMembershipUpdatePayload { + """ + Updated orgMembership + """ + orgMembership: OrgMembership! +} + +""" +Return response for deleteOrgMembership mutation +""" +type OrgMembershipDeletePayload { + """ + Deleted orgMembership ID + """ + deletedID: ID! +} + +""" +Return response for createBulkOrgMembership mutation +""" +type OrgMembershipBulkCreatePayload { + """ + Created orgMemberships + """ + orgMemberships: [OrgMembership!] +}`, BuiltIn: false}, + {Name: "../../schema/personalaccesstoken.graphql", Input: `extend type Query { + """ + Look up personalAccessToken by ID + """ + personalAccessToken( + """ + ID of the personalAccessToken + """ + id: ID! + ): PersonalAccessToken! +} + +extend type Mutation{ + """ + Create a new personalAccessToken + """ + createPersonalAccessToken( + """ + values of the personalAccessToken + """ + input: CreatePersonalAccessTokenInput! + ): PersonalAccessTokenCreatePayload! + """ + Create multiple new personalAccessTokens + """ + createBulkPersonalAccessToken( + """ + values of the personalAccessToken + """ + input: [CreatePersonalAccessTokenInput!] + ): PersonalAccessTokenBulkCreatePayload! + """ + Create multiple new personalAccessTokens via file upload + """ + createBulkCSVPersonalAccessToken( + """ + csv file containing values of the personalAccessToken + """ + input: Upload! + ): PersonalAccessTokenBulkCreatePayload! + """ + Update an existing personalAccessToken + """ + updatePersonalAccessToken( + """ + ID of the personalAccessToken + """ + id: ID! + """ + New values for the personalAccessToken + """ + input: UpdatePersonalAccessTokenInput! + ): PersonalAccessTokenUpdatePayload! + """ + Delete an existing personalAccessToken + """ + deletePersonalAccessToken( + """ + ID of the personalAccessToken + """ + id: ID! + ): PersonalAccessTokenDeletePayload! +} + +""" +Return response for createPersonalAccessToken mutation +""" +type PersonalAccessTokenCreatePayload { + """ + Created personalAccessToken + """ + personalAccessToken: PersonalAccessToken! +} + +""" +Return response for updatePersonalAccessToken mutation +""" +type PersonalAccessTokenUpdatePayload { + """ + Updated personalAccessToken + """ + personalAccessToken: PersonalAccessToken! +} + +""" +Return response for deletePersonalAccessToken mutation +""" +type PersonalAccessTokenDeletePayload { + """ + Deleted personalAccessToken ID + """ + deletedID: ID! +} + +""" +Return response for createBulkPersonalAccessToken mutation +""" +type PersonalAccessTokenBulkCreatePayload { + """ + Created personalAccessTokens + """ + personalAccessTokens: [PersonalAccessToken!] +}`, BuiltIn: false}, + {Name: "../../schema/procedure.graphql", Input: `extend type Query { + """ + Look up procedure by ID + """ + procedure( + """ + ID of the procedure + """ + id: ID! + ): Procedure! +} + +extend type Mutation{ + """ + Create a new procedure + """ + createProcedure( + """ + values of the procedure + """ + input: CreateProcedureInput! + ): ProcedureCreatePayload! + """ + Create multiple new procedures + """ + createBulkProcedure( + """ + values of the procedure + """ + input: [CreateProcedureInput!] + ): ProcedureBulkCreatePayload! + """ + Create multiple new procedures via file upload + """ + createBulkCSVProcedure( + """ + csv file containing values of the procedure + """ + input: Upload! + ): ProcedureBulkCreatePayload! + """ + Update an existing procedure + """ + updateProcedure( + """ + ID of the procedure + """ + id: ID! + """ + New values for the procedure + """ + input: UpdateProcedureInput! + ): ProcedureUpdatePayload! + """ + Delete an existing procedure + """ + deleteProcedure( + """ + ID of the procedure + """ + id: ID! + ): ProcedureDeletePayload! +} + +""" +Return response for createProcedure mutation +""" +type ProcedureCreatePayload { + """ + Created procedure + """ + procedure: Procedure! +} + +""" +Return response for updateProcedure mutation +""" +type ProcedureUpdatePayload { + """ + Updated procedure + """ + procedure: Procedure! +} + +""" +Return response for deleteProcedure mutation +""" +type ProcedureDeletePayload { + """ + Deleted procedure ID + """ + deletedID: ID! +} + +""" +Return response for createBulkProcedure mutation +""" +type ProcedureBulkCreatePayload { + """ + Created procedures + """ + procedures: [Procedure!] +}`, BuiltIn: false}, + {Name: "../../schema/risk.graphql", Input: `extend type Query { + """ + Look up risk by ID + """ + risk( + """ + ID of the risk + """ + id: ID! + ): Risk! +} + +extend type Mutation{ + """ + Create a new risk + """ + createRisk( + """ + values of the risk + """ + input: CreateRiskInput! + ): RiskCreatePayload! + """ + Create multiple new risks + """ + createBulkRisk( + """ + values of the risk + """ + input: [CreateRiskInput!] + ): RiskBulkCreatePayload! + """ + Create multiple new risks via file upload + """ + createBulkCSVRisk( + """ + csv file containing values of the risk + """ + input: Upload! + ): RiskBulkCreatePayload! + """ + Update an existing risk + """ + updateRisk( + """ + ID of the risk + """ + id: ID! + """ + New values for the risk + """ + input: UpdateRiskInput! + ): RiskUpdatePayload! + """ + Delete an existing risk + """ + deleteRisk( + """ + ID of the risk + """ + id: ID! + ): RiskDeletePayload! +} + +""" +Return response for createRisk mutation +""" +type RiskCreatePayload { + """ + Created risk + """ + risk: Risk! +} + +""" +Return response for updateRisk mutation +""" +type RiskUpdatePayload { + """ + Updated risk + """ + risk: Risk! +} + +""" +Return response for deleteRisk mutation +""" +type RiskDeletePayload { + """ + Deleted risk ID + """ + deletedID: ID! +} + +""" +Return response for createBulkRisk mutation +""" +type RiskBulkCreatePayload { + """ + Created risks + """ + risks: [Risk!] +}`, BuiltIn: false}, + {Name: "../../schema/scalars.graphql", Input: `scalar Upload`, BuiltIn: false}, + {Name: "../../schema/search.graphql", Input: `extend type Query{ + """ + Search across APIToken objects + """ + apiTokenSearch( + """ + Search query + """ + query: String! + ): APITokenSearchResult + """ + Search across ActionPlan objects + """ + actionPlanSearch( + """ + Search query + """ + query: String! + ): ActionPlanSearchResult + """ + Search across Contact objects + """ + contactSearch( + """ + Search query + """ + query: String! + ): ContactSearchResult + """ + Search across Control objects + """ + controlSearch( + """ + Search query + """ + query: String! + ): ControlSearchResult + """ + Search across ControlObjective objects + """ + controlObjectiveSearch( + """ + Search query + """ + query: String! + ): ControlObjectiveSearchResult + """ + Search across DocumentData objects + """ + documentDataSearch( + """ + Search query + """ + query: String! + ): DocumentDataSearchResult + """ + Search across Entitlement objects + """ + entitlementSearch( + """ + Search query + """ + query: String! + ): EntitlementSearchResult + """ + Search across EntitlementPlan objects + """ + entitlementPlanSearch( + """ + Search query + """ + query: String! + ): EntitlementPlanSearchResult + """ + Search across EntitlementPlanFeature objects + """ + entitlementPlanFeatureSearch( + """ + Search query + """ + query: String! + ): EntitlementPlanFeatureSearchResult + """ + Search across Entity objects + """ + entitySearch( + """ + Search query + """ + query: String! + ): EntitySearchResult + """ + Search across EntityType objects + """ + entityTypeSearch( + """ + Search query + """ + query: String! + ): EntityTypeSearchResult + """ + Search across Event objects + """ + eventSearch( + """ + Search query + """ + query: String! + ): EventSearchResult + """ + Search across Feature objects + """ + featureSearch( + """ + Search query + """ + query: String! + ): FeatureSearchResult + """ + Search across File objects + """ + fileSearch( + """ + Search query + """ + query: String! + ): FileSearchResult + """ + Search across Group objects + """ + groupSearch( + """ + Search query + """ + query: String! + ): GroupSearchResult + """ + Search across GroupSetting objects + """ + groupSettingSearch( + """ + Search query + """ + query: String! + ): GroupSettingSearchResult + """ + Search across Integration objects + """ + integrationSearch( + """ + Search query + """ + query: String! + ): IntegrationSearchResult + """ + Search across InternalPolicy objects + """ + internalPolicySearch( + """ + Search query + """ + query: String! + ): InternalPolicySearchResult + """ + Search across Narrative objects + """ + narrativeSearch( + """ + Search query + """ + query: String! + ): NarrativeSearchResult + """ + Search across OauthProvider objects + """ + oauthProviderSearch( + """ + Search query + """ + query: String! + ): OauthProviderSearchResult + """ + Search across OhAuthTooToken objects + """ + ohAuthTooTokenSearch( + """ + Search query + """ + query: String! + ): OhAuthTooTokenSearchResult + """ + Search across Organization objects + """ + organizationSearch( + """ + Search query + """ + query: String! + ): OrganizationSearchResult + """ + Search across OrganizationSetting objects + """ + organizationSettingSearch( + """ + Search query + """ + query: String! + ): OrganizationSettingSearchResult + """ + Search across PersonalAccessToken objects + """ + personalAccessTokenSearch( + """ + Search query + """ + query: String! + ): PersonalAccessTokenSearchResult + """ + Search across Procedure objects + """ + procedureSearch( + """ + Search query + """ + query: String! + ): ProcedureSearchResult + """ + Search across Risk objects + """ + riskSearch( + """ + Search query + """ + query: String! + ): RiskSearchResult + """ + Search across Standard objects + """ + standardSearch( + """ + Search query + """ + query: String! + ): StandardSearchResult + """ + Search across Subcontrol objects + """ + subcontrolSearch( + """ + Search query + """ + query: String! + ): SubcontrolSearchResult + """ + Search across Subscriber objects + """ + subscriberSearch( + """ + Search query + """ + query: String! + ): SubscriberSearchResult + """ + Search across TFASetting objects + """ + tFASettingSearch( + """ + Search query + """ + query: String! + ): TFASettingSearchResult + """ + Search across Template objects + """ + templateSearch( + """ + Search query + """ + query: String! + ): TemplateSearchResult + """ + Search across User objects + """ + userSearch( + """ + Search query + """ + query: String! + ): UserSearchResult + """ + Search across UserSetting objects + """ + userSettingSearch( + """ + Search query + """ + query: String! + ): UserSettingSearchResult + """ + Search across Webhook objects + """ + webhookSearch( + """ + Search query + """ + query: String! + ): WebhookSearchResult +} +union SearchResult = + | APITokenSearchResult + | ActionPlanSearchResult + | ContactSearchResult + | ControlSearchResult + | ControlObjectiveSearchResult + | DocumentDataSearchResult + | EntitlementSearchResult + | EntitlementPlanSearchResult + | EntitlementPlanFeatureSearchResult + | EntitySearchResult + | EntityTypeSearchResult + | EventSearchResult + | FeatureSearchResult + | FileSearchResult + | GroupSearchResult + | GroupSettingSearchResult + | IntegrationSearchResult + | InternalPolicySearchResult + | NarrativeSearchResult + | OauthProviderSearchResult + | OhAuthTooTokenSearchResult + | OrganizationSearchResult + | OrganizationSettingSearchResult + | PersonalAccessTokenSearchResult + | ProcedureSearchResult + | RiskSearchResult + | StandardSearchResult + | SubcontrolSearchResult + | SubscriberSearchResult + | TFASettingSearchResult + | TemplateSearchResult + | UserSearchResult + | UserSettingSearchResult + | WebhookSearchResult + +type SearchResultConnection { + page: PageInfo! + + nodes: [SearchResult!]! +} + +extend type Query{ + """ + Search across all objects + """ + search( + """ + Search query + """ + query: String! + ): SearchResultConnection + """ + Admin search across all objects + """ + adminSearch( + """ + Search query + """ + query: String! + ): SearchResultConnection +} + +type APITokenSearchResult { + apiTokens: [ APIToken!] +} + +type ActionPlanSearchResult { + actionPlans: [ ActionPlan!] +} + +type ContactSearchResult { + contacts: [ Contact!] +} + +type ControlSearchResult { + controls: [ Control!] +} + +type ControlObjectiveSearchResult { + controlObjectives: [ ControlObjective!] +} + +type DocumentDataSearchResult { + documentData: [ DocumentData!] +} + +type EntitlementSearchResult { + entitlements: [ Entitlement!] +} + +type EntitlementPlanSearchResult { + entitlementPlans: [ EntitlementPlan!] +} + +type EntitlementPlanFeatureSearchResult { + entitlementPlanFeatures: [ EntitlementPlanFeature!] +} + +type EntitySearchResult { + entities: [ Entity!] +} + +type EntityTypeSearchResult { + entityTypes: [ EntityType!] +} + +type EventSearchResult { + events: [ Event!] +} + +type FeatureSearchResult { + features: [ Feature!] +} + +type FileSearchResult { + files: [ File!] +} + +type GroupSearchResult { + groups: [ Group!] +} + +type GroupSettingSearchResult { + groupSettings: [ GroupSetting!] +} + +type IntegrationSearchResult { + integrations: [ Integration!] +} + +type InternalPolicySearchResult { + internalPolicies: [ InternalPolicy!] +} + +type NarrativeSearchResult { + narratives: [ Narrative!] +} + +type OauthProviderSearchResult { + oauthProviders: [ OauthProvider!] +} + +type OhAuthTooTokenSearchResult { + ohAuthTooTokens: [ OhAuthTooToken!] +} + +type OrganizationSearchResult { + organizations: [ Organization!] +} + +type OrganizationSettingSearchResult { + organizationSettings: [ OrganizationSetting!] +} + +type PersonalAccessTokenSearchResult { + personalAccessTokens: [ PersonalAccessToken!] +} + +type ProcedureSearchResult { + procedures: [ Procedure!] +} + +type RiskSearchResult { + risks: [ Risk!] +} + +type StandardSearchResult { + standards: [ Standard!] +} + +type SubcontrolSearchResult { + subcontrols: [ Subcontrol!] +} + +type SubscriberSearchResult { + subscribers: [ Subscriber!] +} + +type TFASettingSearchResult { + tFASettings: [ TFASetting!] +} + +type TemplateSearchResult { + templates: [ Template!] +} + +type UserSearchResult { + users: [ User!] +} + +type UserSettingSearchResult { + userSettings: [ UserSetting!] +} + +type WebhookSearchResult { + webhooks: [ Webhook!] +} +`, BuiltIn: false}, + {Name: "../../schema/standard.graphql", Input: `extend type Query { + """ + Look up standard by ID + """ + standard( + """ + ID of the standard + """ + id: ID! + ): Standard! +} + +extend type Mutation{ + """ + Create a new standard + """ + createStandard( + """ + values of the standard + """ + input: CreateStandardInput! + ): StandardCreatePayload! + """ + Create multiple new standards + """ + createBulkStandard( + """ + values of the standard + """ + input: [CreateStandardInput!] + ): StandardBulkCreatePayload! + """ + Create multiple new standards via file upload + """ + createBulkCSVStandard( + """ + csv file containing values of the standard + """ + input: Upload! + ): StandardBulkCreatePayload! + """ + Update an existing standard + """ + updateStandard( + """ + ID of the standard + """ + id: ID! + """ + New values for the standard + """ + input: UpdateStandardInput! + ): StandardUpdatePayload! + """ + Delete an existing standard + """ + deleteStandard( + """ + ID of the standard + """ + id: ID! + ): StandardDeletePayload! +} + +""" +Return response for createStandard mutation +""" +type StandardCreatePayload { + """ + Created standard + """ + standard: Standard! +} + +""" +Return response for updateStandard mutation +""" +type StandardUpdatePayload { + """ + Updated standard + """ + standard: Standard! +} + +""" +Return response for deleteStandard mutation +""" +type StandardDeletePayload { + """ + Deleted standard ID + """ + deletedID: ID! +} + +""" +Return response for createBulkStandard mutation +""" +type StandardBulkCreatePayload { + """ + Created standards + """ + standards: [Standard!] +}`, BuiltIn: false}, + {Name: "../../schema/subcontrol.graphql", Input: `extend type Query { + """ + Look up subcontrol by ID + """ + subcontrol( + """ + ID of the subcontrol + """ + id: ID! + ): Subcontrol! +} + +extend type Mutation{ + """ + Create a new subcontrol + """ + createSubcontrol( + """ + values of the subcontrol + """ + input: CreateSubcontrolInput! + ): SubcontrolCreatePayload! + """ + Create multiple new subcontrols + """ + createBulkSubcontrol( + """ + values of the subcontrol + """ + input: [CreateSubcontrolInput!] + ): SubcontrolBulkCreatePayload! + """ + Create multiple new subcontrols via file upload + """ + createBulkCSVSubcontrol( + """ + csv file containing values of the subcontrol + """ + input: Upload! + ): SubcontrolBulkCreatePayload! + """ + Update an existing subcontrol + """ + updateSubcontrol( + """ + ID of the subcontrol + """ + id: ID! + """ + New values for the subcontrol + """ + input: UpdateSubcontrolInput! + ): SubcontrolUpdatePayload! + """ + Delete an existing subcontrol + """ + deleteSubcontrol( + """ + ID of the subcontrol + """ + id: ID! + ): SubcontrolDeletePayload! +} + +""" +Return response for createSubcontrol mutation +""" +type SubcontrolCreatePayload { + """ + Created subcontrol + """ + subcontrol: Subcontrol! +} + +""" +Return response for updateSubcontrol mutation +""" +type SubcontrolUpdatePayload { + """ + Updated subcontrol + """ + subcontrol: Subcontrol! +} + +""" +Return response for deleteSubcontrol mutation +""" +type SubcontrolDeletePayload { + """ + Deleted subcontrol ID + """ + deletedID: ID! +} + +""" +Return response for createBulkSubcontrol mutation +""" +type SubcontrolBulkCreatePayload { + """ + Created subcontrols + """ + subcontrols: [Subcontrol!] +}`, BuiltIn: false}, + {Name: "../../schema/subscriber.graphql", Input: `extend type Query { + """ + Look up subscriber by Email + """ + subscriber( + """ + Email of the subscriber + """ + email: String! + ): Subscriber! +} + +extend type Mutation{ + """ + Create a new subscriber + """ + createSubscriber( + """ + values of the subscriber + """ + input: CreateSubscriberInput! + ): SubscriberCreatePayload! + """ + Create new subscribers + """ + createBulkSubscriber( + """ + values of the subscriber + """ + input: [CreateSubscriberInput!] + ): SubscriberBulkCreatePayload! + """ + Create new subscribers via CSV file + """ + createBulkCSVSubscriber( + """ + values of the subscriber + """ + input: Upload! + ): SubscriberBulkCreatePayload! + """ + Update an existing subscriber + """ + updateSubscriber( + """ + Email of the subscriber + """ + email: String! + """ + New values for the subscriber + """ + input: UpdateSubscriberInput! + ): SubscriberUpdatePayload! + """ + Delete an existing subscriber by Email + """ + deleteSubscriber( + """ + Email of the subscriber + """ + email: String! + """ + OwnerID of the subscriber + """ + ownerID: ID + ): SubscriberDeletePayload! +} + +""" +Return response for createSubscriber mutation +""" +type SubscriberCreatePayload { + """ + Created subscriber + """ + subscriber: Subscriber! +} + +""" +Return response for updateSubscriber mutation +""" +type SubscriberUpdatePayload { + """ + Updated subscriber + """ + subscriber: Subscriber! +} + +""" +Return response for deleteSubscriber mutation +""" +type SubscriberDeletePayload { + """ + Deleted subscriber email + """ + email: String! +} + +""" +Return response for createBulkSubscriber mutation +""" +type SubscriberBulkCreatePayload { + """ + Created subscribers + """ + subscribers: [Subscriber!] +} + +`, BuiltIn: false}, + {Name: "../../schema/template.graphql", Input: `extend type Query { + """ + Look up template by ID + """ + template( + """ + ID of the template + """ + id: ID! + ): Template! +} + +extend type Mutation{ + """ + Create a new template + """ + createTemplate( + """ + values of the template + """ + input: CreateTemplateInput! + ): TemplateCreatePayload! + """ + Create multiple new templates + """ + createBulkTemplate( + """ + values of the template + """ + input: [CreateTemplateInput!] + ): TemplateBulkCreatePayload! + """ + Create multiple new templates via file upload + """ + createBulkCSVTemplate( + """ + csv file containing values of the template + """ + input: Upload! + ): TemplateBulkCreatePayload! + """ + Update an existing template + """ + updateTemplate( + """ + ID of the template + """ + id: ID! + """ + New values for the template + """ + input: UpdateTemplateInput! + ): TemplateUpdatePayload! + """ + Delete an existing template + """ + deleteTemplate( + """ + ID of the template + """ + id: ID! + ): TemplateDeletePayload! +} + +""" +Return response for createTemplate mutation +""" +type TemplateCreatePayload { + """ + Created template + """ + template: Template! +} + +""" +Return response for updateTemplate mutation +""" +type TemplateUpdatePayload { + """ + Updated template + """ + template: Template! +} + +""" +Return response for deleteTemplate mutation +""" +type TemplateDeletePayload { + """ + Deleted template ID + """ + deletedID: ID! +} + +""" +Return response for createBulkTemplate mutation +""" +type TemplateBulkCreatePayload { + """ + Created templates + """ + templates: [Template!] +}`, BuiltIn: false}, + {Name: "../../schema/tfasetting.graphql", Input: `extend type Query { + """ + Look up tfaSetting for the current user + """ + tfaSetting( + """ + ID of the tfaSetting + """ + id: ID + ): TFASetting! +} + +extend type Mutation{ + """ + Create a new tfaSetting + """ + createTFASetting( + """ + values of the tfaSetting + """ + input: CreateTFASettingInput! + ): TFASettingCreatePayload! + """ + Update an existing tfaSetting + """ + updateTFASetting( + """ + New values for the tfaSetting + """ + input: UpdateTFASettingInput! + ): TFASettingUpdatePayload! +} + +""" +Return response for createTFASetting mutation +""" +type TFASettingCreatePayload { + """ + Created tfaSetting + """ + tfaSetting: TFASetting! +} + +""" +Return response for updateTFASetting mutation +""" +type TFASettingUpdatePayload { + """ + Updated tfaSetting + """ + tfaSetting: TFASetting! +} + +extend input UpdateTFASettingInput { + """ + Whether to regenerate backup codes + """ + regenBackupCodes: Boolean +}`, BuiltIn: false}, + {Name: "../../schema/user.graphql", Input: `extend type Query { + """ + Look up user by ID + """ + user( + """ + ID of the user + """ + id: ID! + ): User! +} + +extend type Mutation{ + """ + Create a new user + """ + createUser( + """ + values of the user + """ + input: CreateUserInput! + avatarFile: Upload + ): UserCreatePayload! + """ + Update an existing user + """ + updateUser( + """ + ID of the user + """ + id: ID! + """ + New values for the user + """ + input: UpdateUserInput! + avatarFile: Upload + ): UserUpdatePayload! + """ + Delete an existing user + """ + deleteUser( + """ + ID of the user + """ + id: ID! + ): UserDeletePayload! +} + +""" +Return response for createUser mutation +""" +type UserCreatePayload { + """ + Created user + """ + user: User! +} + +""" +Return response for updateUser mutation +""" +type UserUpdatePayload { + """ + Updated user + """ + user: User! +} + +""" +Return response for deleteUser mutation +""" +type UserDeletePayload { + """ + Deleted user ID + """ + deletedID: ID! +} + +""" +Return response for createBulkUser mutation +""" +type UserBulkCreatePayload { + """ + Created users + """ + users: [User!] +}`, BuiltIn: false}, + {Name: "../../schema/usersetting.graphql", Input: `extend type Query { + """ + Look up userSetting by ID + """ + userSetting( + """ + ID of the userSetting + """ + id: ID! + ): UserSetting! +} + +extend type Mutation{ + """ + Create a new userSetting + """ + createUserSetting( + """ + values of the userSetting + """ + input: CreateUserSettingInput! + ): UserSettingCreatePayload! + """ + Create multiple new userSettings + """ + createBulkUserSetting( + """ + values of the userSetting + """ + input: [CreateUserSettingInput!] + ): UserSettingBulkCreatePayload! + """ + Create multiple new userSettings via file upload + """ + createBulkCSVUserSetting( + """ + csv file containing values of the userSetting + """ + input: Upload! + ): UserSettingBulkCreatePayload! + """ + Update an existing userSetting + """ + updateUserSetting( + """ + ID of the userSetting + """ + id: ID! + """ + New values for the userSetting + """ + input: UpdateUserSettingInput! + ): UserSettingUpdatePayload! +} + +""" +Return response for createUserSetting mutation +""" +type UserSettingCreatePayload { + """ + Created userSetting + """ + userSetting: UserSetting! +} + +""" +Return response for updateUserSetting mutation +""" +type UserSettingUpdatePayload { + """ + Updated userSetting + """ + userSetting: UserSetting! +} + +""" +Return response for createBulkUserSetting mutation +""" +type UserSettingBulkCreatePayload { + """ + Created userSettings + """ + userSettings: [UserSetting!] +}`, BuiltIn: false}, + {Name: "../../schema/webhook.graphql", Input: `extend type Query { + """ + Look up webhook by ID + """ + webhook( + """ + ID of the webhook + """ + id: ID! + ): Webhook! +} + +extend type Mutation{ + """ + Create a new webhook + """ + createWebhook( + """ + values of the webhook + """ + input: CreateWebhookInput! + ): WebhookCreatePayload! + """ + Create multiple new webhooks + """ + createBulkWebhook( + """ + values of the webhook + """ + input: [CreateWebhookInput!] + ): WebhookBulkCreatePayload! + """ + Create multiple new webhooks via file upload + """ + createBulkCSVWebhook( + """ + csv file containing values of the webhook + """ + input: Upload! + ): WebhookBulkCreatePayload! + """ + Update an existing webhook + """ + updateWebhook( + """ + ID of the webhook + """ + id: ID! + """ + New values for the webhook + """ + input: UpdateWebhookInput! + ): WebhookUpdatePayload! + """ + Delete an existing webhook + """ + deleteWebhook( + """ + ID of the webhook + """ + id: ID! + ): WebhookDeletePayload! +} + +""" +Return response for createWebhook mutation +""" +type WebhookCreatePayload { + """ + Created webhook + """ + webhook: Webhook! +} + +""" +Return response for updateWebhook mutation +""" +type WebhookUpdatePayload { + """ + Updated webhook + """ + webhook: Webhook! +} + +""" +Return response for deleteWebhook mutation +""" +type WebhookDeletePayload { + """ + Deleted webhook ID + """ + deletedID: ID! +} + +""" +Return response for createBulkWebhook mutation +""" +type WebhookBulkCreatePayload { + """ + Created webhooks + """ + webhooks: [Webhook!] +}`, BuiltIn: false}, +} +var parsedSchema = gqlparser.MustLoadSchema(sources...) + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +func (ec *executionContext) field_Mutation_createAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createAPIToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createAPIToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateAPITokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateAPITokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateAPITokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInput(ctx, tmp) + } + + var zeroVal generated.CreateAPITokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createActionPlan_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createActionPlan_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateActionPlanInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateActionPlanInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateActionPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateActionPlanInput(ctx, tmp) + } + + var zeroVal generated.CreateActionPlanInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkAPIToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkAPIToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateAPITokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateAPITokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateAPITokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateAPITokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkActionPlan_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkActionPlan_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateActionPlanInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateActionPlanInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateActionPlanInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateActionPlanInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateActionPlanInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVAPIToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVAPIToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVActionPlan_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVActionPlan_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVContact_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVContact_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVControlObjective_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVControlObjective_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVControl_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVControl_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVDocumentData_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVDocumentData_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVEntitlementPlanFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVEntitlementPlanFeature_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVEntitlementPlanFeature_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVEntitlementPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVEntitlementPlan_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVEntitlementPlan_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVEntitlement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVEntitlement_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVEntitlement_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVEntityType_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVEntityType_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVEntity_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVEntity_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVEvent_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVEvent_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVFeature_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVFeature_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVGroupMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVGroupMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVGroupSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVGroupSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVGroup_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVGroup_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVHush_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVHush_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVIntegration_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVIntegration_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVInternalPolicy_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVInternalPolicy_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVInvite_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVInvite_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVNarrative_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVNarrative_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVOauthProvider_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVOauthProvider_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVOauthProvider_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVOhAuthTooToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVOhAuthTooToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVOhAuthTooToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVOrgMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVOrgMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVOrganizationSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVOrganizationSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVOrganization_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVOrganization_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVPersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVPersonalAccessToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVPersonalAccessToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVProcedure_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVProcedure_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVRisk_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVRisk_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVStandard_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVStandard_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVSubcontrol_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVSubcontrol_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVSubscriber_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVSubscriber_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVTemplate_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVTemplate_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVUserSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVUserSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVWebhook_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVWebhook_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkContact_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkContact_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateContactInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateContactInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateContactInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateContactInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkControlObjective_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkControlObjective_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateControlObjectiveInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateControlObjectiveInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateControlObjectiveInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlObjectiveInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateControlObjectiveInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkControl_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkControl_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateControlInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateControlInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateControlInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateControlInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkDocumentData_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkDocumentData_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateDocumentDataInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateDocumentDataInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateDocumentDataInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateDocumentDataInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkEntitlementPlanFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkEntitlementPlanFeature_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkEntitlementPlanFeature_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateEntitlementPlanFeatureInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateEntitlementPlanFeatureInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateEntitlementPlanFeatureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanFeatureInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateEntitlementPlanFeatureInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkEntitlementPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkEntitlementPlan_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkEntitlementPlan_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateEntitlementPlanInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateEntitlementPlanInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateEntitlementPlanInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateEntitlementPlanInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkEntitlement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkEntitlement_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkEntitlement_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateEntitlementInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateEntitlementInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateEntitlementInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateEntitlementInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkEntityType_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkEntityType_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateEntityTypeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateEntityTypeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateEntityTypeInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateEntityTypeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkEntity_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkEntity_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateEntityInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateEntityInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateEntityInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateEntityInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkEvent_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkEvent_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateEventInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateEventInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateEventInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateEventInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkFeature_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkFeature_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateFeatureInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateFeatureInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateFeatureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateFeatureInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateFeatureInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkGroupMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkGroupMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateGroupMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateGroupMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateGroupMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateGroupMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkGroupSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkGroupSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateGroupSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateGroupSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateGroupSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateGroupSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkGroup_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkGroup_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateGroupInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateGroupInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateGroupInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateGroupInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkHush_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkHush_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateHushInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateHushInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateHushInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateHushInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkIntegration_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkIntegration_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateIntegrationInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateIntegrationInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateIntegrationInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateIntegrationInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkInternalPolicy_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkInternalPolicy_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateInternalPolicyInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateInternalPolicyInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateInternalPolicyInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInternalPolicyInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateInternalPolicyInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkInvite_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkInvite_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateInviteInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateInviteInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateInviteInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateInviteInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkNarrative_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkNarrative_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateNarrativeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateNarrativeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateNarrativeInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNarrativeInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateNarrativeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkOauthProvider_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkOauthProvider_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkOauthProvider_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateOauthProviderInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateOauthProviderInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateOauthProviderInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOauthProviderInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateOauthProviderInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkOhAuthTooToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkOhAuthTooToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkOhAuthTooToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateOhAuthTooTokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateOhAuthTooTokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateOhAuthTooTokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOhAuthTooTokenInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateOhAuthTooTokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkOrgMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkOrgMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateOrgMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateOrgMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateOrgMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateOrgMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkOrganizationSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkOrganizationSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateOrganizationSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateOrganizationSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateOrganizationSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateOrganizationSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkOrganization_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkOrganization_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateOrganizationInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateOrganizationInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateOrganizationInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateOrganizationInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkPersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkPersonalAccessToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkPersonalAccessToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreatePersonalAccessTokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreatePersonalAccessTokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreatePersonalAccessTokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreatePersonalAccessTokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkProcedure_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkProcedure_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateProcedureInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateProcedureInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateProcedureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProcedureInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateProcedureInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkRisk_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkRisk_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateRiskInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateRiskInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateRiskInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateRiskInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkStandard_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkStandard_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateStandardInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateStandardInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateStandardInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateStandardInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateStandardInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkSubcontrol_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkSubcontrol_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateSubcontrolInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateSubcontrolInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateSubcontrolInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubcontrolInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateSubcontrolInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkSubscriber_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkSubscriber_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateSubscriberInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateSubscriberInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateSubscriberInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateSubscriberInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkTemplate_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkTemplate_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateTemplateInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateTemplateInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateTemplateInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateTemplateInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkUserSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkUserSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateUserSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateUserSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateUserSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateUserSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkWebhook_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkWebhook_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateWebhookInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateWebhookInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateWebhookInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateWebhookInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateWebhookInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createContact_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createContact_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateContactInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateContactInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateContactInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInput(ctx, tmp) + } + + var zeroVal generated.CreateContactInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createControlObjective_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createControlObjective_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateControlObjectiveInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateControlObjectiveInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateControlObjectiveInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlObjectiveInput(ctx, tmp) + } + + var zeroVal generated.CreateControlObjectiveInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createControl_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createControl_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateControlInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateControlInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateControlInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlInput(ctx, tmp) + } + + var zeroVal generated.CreateControlInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createDocumentData_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createDocumentData_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateDocumentDataInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateDocumentDataInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInput(ctx, tmp) + } + + var zeroVal generated.CreateDocumentDataInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createEntitlementPlanFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createEntitlementPlanFeature_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createEntitlementPlanFeature_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateEntitlementPlanFeatureInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateEntitlementPlanFeatureInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateEntitlementPlanFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanFeatureInput(ctx, tmp) + } + + var zeroVal generated.CreateEntitlementPlanFeatureInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createEntitlementPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createEntitlementPlan_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createEntitlementPlan_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateEntitlementPlanInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateEntitlementPlanInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateEntitlementPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanInput(ctx, tmp) + } + + var zeroVal generated.CreateEntitlementPlanInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createEntitlement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createEntitlement_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createEntitlement_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateEntitlementInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateEntitlementInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateEntitlementInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementInput(ctx, tmp) + } + + var zeroVal generated.CreateEntitlementInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createEntityType_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createEntityType_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateEntityTypeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateEntityTypeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateEntityTypeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInput(ctx, tmp) + } + + var zeroVal generated.CreateEntityTypeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createEntity_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createEntity_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateEntityInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateEntityInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateEntityInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInput(ctx, tmp) + } + + var zeroVal generated.CreateEntityInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createEvent_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createEvent_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateEventInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateEventInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateEventInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInput(ctx, tmp) + } + + var zeroVal generated.CreateEventInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createFeature_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createFeature_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateFeatureInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateFeatureInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateFeatureInput(ctx, tmp) + } + + var zeroVal generated.CreateFeatureInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createGroupMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createGroupMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateGroupMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateGroupMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateGroupMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInput(ctx, tmp) + } + + var zeroVal generated.CreateGroupMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createGroupSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createGroupSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateGroupSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateGroupSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateGroupSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx, tmp) + } + + var zeroVal generated.CreateGroupSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createGroup_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createGroup_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateGroupInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateGroupInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInput(ctx, tmp) + } + + var zeroVal generated.CreateGroupInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createHush_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createHush_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateHushInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateHushInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateHushInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInput(ctx, tmp) + } + + var zeroVal generated.CreateHushInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createIntegration_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createIntegration_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateIntegrationInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateIntegrationInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateIntegrationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInput(ctx, tmp) + } + + var zeroVal generated.CreateIntegrationInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createInternalPolicy_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createInternalPolicy_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateInternalPolicyInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateInternalPolicyInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateInternalPolicyInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInternalPolicyInput(ctx, tmp) + } + + var zeroVal generated.CreateInternalPolicyInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createInvite_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createInvite_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateInviteInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateInviteInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateInviteInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInput(ctx, tmp) + } + + var zeroVal generated.CreateInviteInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createNarrative_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createNarrative_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateNarrativeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateNarrativeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateNarrativeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNarrativeInput(ctx, tmp) + } + + var zeroVal generated.CreateNarrativeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createOauthProvider_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createOauthProvider_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createOauthProvider_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateOauthProviderInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateOauthProviderInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateOauthProviderInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOauthProviderInput(ctx, tmp) + } + + var zeroVal generated.CreateOauthProviderInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createOhAuthTooToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createOhAuthTooToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createOhAuthTooToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateOhAuthTooTokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateOhAuthTooTokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateOhAuthTooTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOhAuthTooTokenInput(ctx, tmp) + } + + var zeroVal generated.CreateOhAuthTooTokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createOrgMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createOrgMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateOrgMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateOrgMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateOrgMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInput(ctx, tmp) + } + + var zeroVal generated.CreateOrgMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createOrganizationSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createOrganizationSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateOrganizationSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateOrganizationSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateOrganizationSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx, tmp) + } + + var zeroVal generated.CreateOrganizationSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createOrganization_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createOrganization_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateOrganizationInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateOrganizationInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateOrganizationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInput(ctx, tmp) + } + + var zeroVal generated.CreateOrganizationInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createPersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createPersonalAccessToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createPersonalAccessToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreatePersonalAccessTokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreatePersonalAccessTokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreatePersonalAccessTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInput(ctx, tmp) + } + + var zeroVal generated.CreatePersonalAccessTokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createProcedure_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createProcedure_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateProcedureInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateProcedureInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateProcedureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProcedureInput(ctx, tmp) + } + + var zeroVal generated.CreateProcedureInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createRisk_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createRisk_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateRiskInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateRiskInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateRiskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInput(ctx, tmp) + } + + var zeroVal generated.CreateRiskInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createStandard_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createStandard_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateStandardInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateStandardInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateStandardInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateStandardInput(ctx, tmp) + } + + var zeroVal generated.CreateStandardInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createSubcontrol_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createSubcontrol_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateSubcontrolInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateSubcontrolInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateSubcontrolInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubcontrolInput(ctx, tmp) + } + + var zeroVal generated.CreateSubcontrolInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createSubscriber_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createSubscriber_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateSubscriberInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateSubscriberInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateSubscriberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInput(ctx, tmp) + } + + var zeroVal generated.CreateSubscriberInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createTFASetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createTFASetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createTFASetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateTFASettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateTFASettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateTFASettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTFASettingInput(ctx, tmp) + } + + var zeroVal generated.CreateTFASettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createTemplate_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createTemplate_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateTemplateInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateTemplateInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateTemplateInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInput(ctx, tmp) + } + + var zeroVal generated.CreateTemplateInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createUserSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createUserSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateUserSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateUserSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateUserSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInput(ctx, tmp) + } + + var zeroVal generated.CreateUserSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createUser_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + arg1, err := ec.field_Mutation_createUser_argsAvatarFile(ctx, rawArgs) + if err != nil { + return nil, err + } + args["avatarFile"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_createUser_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateUserInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateUserInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateUserInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserInput(ctx, tmp) + } + + var zeroVal generated.CreateUserInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createUser_argsAvatarFile( + ctx context.Context, + rawArgs map[string]interface{}, +) (*graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["avatarFile"] + if !ok { + var zeroVal *graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarFile")) + if tmp, ok := rawArgs["avatarFile"]; ok { + return ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal *graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createWebhook_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createWebhook_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateWebhookInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateWebhookInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateWebhookInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateWebhookInput(ctx, tmp) + } + + var zeroVal generated.CreateWebhookInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteAPIToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteAPIToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteActionPlan_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteActionPlan_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteContact_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteContact_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteControlObjective_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteControlObjective_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteControl_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteControl_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteDocumentData_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteDocumentData_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteEntitlementPlanFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteEntitlementPlanFeature_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteEntitlementPlanFeature_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteEntitlementPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteEntitlementPlan_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteEntitlementPlan_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteEntitlement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteEntitlement_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteEntitlement_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteEntityType_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteEntityType_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteEntity_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteEntity_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteEvent_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteEvent_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteFeature_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteFeature_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteFile_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteFile_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteFile_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteGroupMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteGroupMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteGroupSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteGroupSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteGroup_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteGroup_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteHush_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteHush_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteIntegration_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteIntegration_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteInternalPolicy_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteInternalPolicy_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteInvite_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteInvite_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteNarrative_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteNarrative_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteOauthProvider_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteOauthProvider_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteOauthProvider_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteOhAuthTooToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteOhAuthTooToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteOhAuthTooToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteOrgMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteOrgMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteOrganizationSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteOrganizationSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteOrganization_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteOrganization_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deletePersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deletePersonalAccessToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deletePersonalAccessToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteProcedure_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteProcedure_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteRisk_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteRisk_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteStandard_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteStandard_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteSubcontrol_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteSubcontrol_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteSubscriber_argsEmail(ctx, rawArgs) + if err != nil { + return nil, err + } + args["email"] = arg0 + arg1, err := ec.field_Mutation_deleteSubscriber_argsOwnerID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["ownerID"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteSubscriber_argsEmail( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["email"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + if tmp, ok := rawArgs["email"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteSubscriber_argsOwnerID( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ownerID"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + if tmp, ok := rawArgs["ownerID"]; ok { + return ec.unmarshalOID2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteTemplate_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteTemplate_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteUser_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteUser_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteWebhook_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteWebhook_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateAPIToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateAPIToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateAPIToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateAPIToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateAPITokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateAPITokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateAPITokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateAPITokenInput(ctx, tmp) + } + + var zeroVal generated.UpdateAPITokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateActionPlan_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateActionPlan_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateActionPlan_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateActionPlan_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateActionPlanInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateActionPlanInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateActionPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateActionPlanInput(ctx, tmp) + } + + var zeroVal generated.UpdateActionPlanInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateContact_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateContact_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateContact_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateContact_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateContactInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateContactInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateContactInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateContactInput(ctx, tmp) + } + + var zeroVal generated.UpdateContactInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateControlObjective_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateControlObjective_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateControlObjective_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateControlObjective_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateControlObjectiveInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateControlObjectiveInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateControlObjectiveInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateControlObjectiveInput(ctx, tmp) + } + + var zeroVal generated.UpdateControlObjectiveInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateControl_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateControl_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateControl_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateControl_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateControlInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateControlInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateControlInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateControlInput(ctx, tmp) + } + + var zeroVal generated.UpdateControlInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateDocumentData_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateDocumentData_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateDocumentData_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateDocumentData_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateDocumentDataInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateDocumentDataInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateDocumentDataInput(ctx, tmp) + } + + var zeroVal generated.UpdateDocumentDataInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntitlementPlanFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateEntitlementPlanFeature_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateEntitlementPlanFeature_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateEntitlementPlanFeature_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntitlementPlanFeature_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateEntitlementPlanFeatureInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateEntitlementPlanFeatureInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateEntitlementPlanFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntitlementPlanFeatureInput(ctx, tmp) + } + + var zeroVal generated.UpdateEntitlementPlanFeatureInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntitlementPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateEntitlementPlan_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateEntitlementPlan_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateEntitlementPlan_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntitlementPlan_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateEntitlementPlanInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateEntitlementPlanInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateEntitlementPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntitlementPlanInput(ctx, tmp) + } + + var zeroVal generated.UpdateEntitlementPlanInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntitlement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateEntitlement_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateEntitlement_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateEntitlement_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntitlement_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateEntitlementInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateEntitlementInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateEntitlementInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntitlementInput(ctx, tmp) + } + + var zeroVal generated.UpdateEntitlementInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateEntityType_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateEntityType_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateEntityType_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntityType_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateEntityTypeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateEntityTypeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateEntityTypeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntityTypeInput(ctx, tmp) + } + + var zeroVal generated.UpdateEntityTypeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateEntity_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateEntity_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateEntity_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntity_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateEntityInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateEntityInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateEntityInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntityInput(ctx, tmp) + } + + var zeroVal generated.UpdateEntityInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateEvent_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateEvent_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateEvent_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEvent_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateEventInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateEventInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateEventInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEventInput(ctx, tmp) + } + + var zeroVal generated.UpdateEventInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateFeature_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateFeature_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateFeature_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateFeature_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateFeatureInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateFeatureInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateFeatureInput(ctx, tmp) + } + + var zeroVal generated.UpdateFeatureInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateGroupMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateGroupMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateGroupMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateGroupMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateGroupMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateGroupMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateGroupMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupMembershipInput(ctx, tmp) + } + + var zeroVal generated.UpdateGroupMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateGroupSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateGroupSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateGroupSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateGroupSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateGroupSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateGroupSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateGroupSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupSettingInput(ctx, tmp) + } + + var zeroVal generated.UpdateGroupSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateGroup_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateGroup_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateGroup_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateGroup_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateGroupInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateGroupInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupInput(ctx, tmp) + } + + var zeroVal generated.UpdateGroupInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateHush_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateHush_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateHush_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateHush_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateHushInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateHushInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateHushInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateHushInput(ctx, tmp) + } + + var zeroVal generated.UpdateHushInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateIntegration_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateIntegration_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateIntegration_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIntegration_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateIntegrationInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateIntegrationInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateIntegrationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateIntegrationInput(ctx, tmp) + } + + var zeroVal generated.UpdateIntegrationInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateInternalPolicy_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateInternalPolicy_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateInternalPolicy_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateInternalPolicy_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateInternalPolicyInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateInternalPolicyInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateInternalPolicyInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateInternalPolicyInput(ctx, tmp) + } + + var zeroVal generated.UpdateInternalPolicyInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateInvite_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateInvite_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateInvite_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateInvite_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateInviteInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateInviteInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateInviteInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateInviteInput(ctx, tmp) + } + + var zeroVal generated.UpdateInviteInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateNarrative_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateNarrative_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateNarrative_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateNarrative_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateNarrativeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateNarrativeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateNarrativeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateNarrativeInput(ctx, tmp) + } + + var zeroVal generated.UpdateNarrativeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOauthProvider_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateOauthProvider_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateOauthProvider_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateOauthProvider_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOauthProvider_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateOauthProviderInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateOauthProviderInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateOauthProviderInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOauthProviderInput(ctx, tmp) + } + + var zeroVal generated.UpdateOauthProviderInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOhAuthTooToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateOhAuthTooToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateOhAuthTooToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateOhAuthTooToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOhAuthTooToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateOhAuthTooTokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateOhAuthTooTokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateOhAuthTooTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOhAuthTooTokenInput(ctx, tmp) + } + + var zeroVal generated.UpdateOhAuthTooTokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateOrgMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateOrgMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateOrgMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrgMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateOrgMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateOrgMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateOrgMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrgMembershipInput(ctx, tmp) + } + + var zeroVal generated.UpdateOrgMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateOrganizationSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateOrganizationSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateOrganizationSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrganizationSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateOrganizationSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateOrganizationSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateOrganizationSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationSettingInput(ctx, tmp) + } + + var zeroVal generated.UpdateOrganizationSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateOrganization_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateOrganization_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateOrganization_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrganization_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateOrganizationInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateOrganizationInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateOrganizationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationInput(ctx, tmp) + } + + var zeroVal generated.UpdateOrganizationInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updatePersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updatePersonalAccessToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updatePersonalAccessToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updatePersonalAccessToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updatePersonalAccessToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdatePersonalAccessTokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdatePersonalAccessTokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdatePersonalAccessTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdatePersonalAccessTokenInput(ctx, tmp) + } + + var zeroVal generated.UpdatePersonalAccessTokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateProcedure_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateProcedure_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateProcedure_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateProcedure_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateProcedureInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateProcedureInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateProcedureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateProcedureInput(ctx, tmp) + } + + var zeroVal generated.UpdateProcedureInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateRisk_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateRisk_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateRisk_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateRisk_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateRiskInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateRiskInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateRiskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateRiskInput(ctx, tmp) + } + + var zeroVal generated.UpdateRiskInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateStandard_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateStandard_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateStandard_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateStandard_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateStandardInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateStandardInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateStandardInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateStandardInput(ctx, tmp) + } + + var zeroVal generated.UpdateStandardInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateSubcontrol_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateSubcontrol_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateSubcontrol_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateSubcontrol_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateSubcontrolInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateSubcontrolInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateSubcontrolInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateSubcontrolInput(ctx, tmp) + } + + var zeroVal generated.UpdateSubcontrolInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateSubscriber_argsEmail(ctx, rawArgs) + if err != nil { + return nil, err + } + args["email"] = arg0 + arg1, err := ec.field_Mutation_updateSubscriber_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateSubscriber_argsEmail( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["email"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + if tmp, ok := rawArgs["email"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateSubscriber_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateSubscriberInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateSubscriberInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateSubscriberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateSubscriberInput(ctx, tmp) + } + + var zeroVal generated.UpdateSubscriberInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateTFASetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateTFASetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_updateTFASetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateTFASettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateTFASettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateTFASettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTFASettingInput(ctx, tmp) + } + + var zeroVal generated.UpdateTFASettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateTemplate_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateTemplate_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateTemplate_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateTemplate_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateTemplateInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateTemplateInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateTemplateInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTemplateInput(ctx, tmp) + } + + var zeroVal generated.UpdateTemplateInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateUserSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateUserSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateUserSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateUserSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateUserSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateUserSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateUserSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateUserSettingInput(ctx, tmp) + } + + var zeroVal generated.UpdateUserSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateUser_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateUser_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + arg2, err := ec.field_Mutation_updateUser_argsAvatarFile(ctx, rawArgs) + if err != nil { + return nil, err + } + args["avatarFile"] = arg2 + return args, nil +} +func (ec *executionContext) field_Mutation_updateUser_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateUser_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateUserInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateUserInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateUserInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateUserInput(ctx, tmp) + } + + var zeroVal generated.UpdateUserInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateUser_argsAvatarFile( + ctx context.Context, + rawArgs map[string]interface{}, +) (*graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["avatarFile"] + if !ok { + var zeroVal *graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarFile")) + if tmp, ok := rawArgs["avatarFile"]; ok { + return ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal *graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateWebhook_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateWebhook_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateWebhook_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateWebhook_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateWebhookInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateWebhookInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateWebhookInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateWebhookInput(ctx, tmp) + } + + var zeroVal generated.UpdateWebhookInput + return zeroVal, nil +} + +func (ec *executionContext) field_Organization_children_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Organization_children_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Organization_children_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Organization_children_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Organization_children_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Organization_children_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Organization_children_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Organization_children_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Organization_children_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Organization_children_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Organization_children_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Organization_children_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.OrganizationOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrder(ctx, tmp) + } + + var zeroVal *generated.OrganizationOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Organization_children_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrganizationWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, tmp) + } + + var zeroVal *generated.OrganizationWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) + if err != nil { + return nil, err + } + args["name"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query___type_argsName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["name"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + if tmp, ok := rawArgs["name"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_actionPlanHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_actionPlanHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_actionPlanHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_actionPlanHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_actionPlanHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_actionPlanHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_actionPlanHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_actionPlanHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_actionPlanHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_actionPlanHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_actionPlanHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ActionPlanHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ActionPlanHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOActionPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.ActionPlanHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_actionPlanSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_actionPlanSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_actionPlanSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_actionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_actionPlan_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_actionPlan_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_actionPlans_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_actionPlans_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_actionPlans_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_actionPlans_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_actionPlans_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_actionPlans_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_actionPlans_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_actionPlans_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_actionPlans_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_actionPlans_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_actionPlans_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ActionPlanWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ActionPlanWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, tmp) + } + + var zeroVal *generated.ActionPlanWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminAPITokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminAPITokenSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminAPITokenSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminActionPlanSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminActionPlanSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminActionPlanSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminContactSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminContactSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminContactSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminControlObjectiveSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminControlObjectiveSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminControlObjectiveSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminControlSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminControlSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminControlSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminDocumentDataSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminDocumentDataSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminDocumentDataSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminEntitlementPlanFeatureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminEntitlementPlanFeatureSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminEntitlementPlanFeatureSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminEntitlementPlanSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminEntitlementPlanSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminEntitlementPlanSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminEntitlementSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminEntitlementSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminEntitlementSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminEntitySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminEntitySearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminEntitySearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminEntityTypeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminEntityTypeSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminEntityTypeSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminEventSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminEventSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminEventSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminFeatureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminFeatureSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminFeatureSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminFileSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminFileSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminFileSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminGroupSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminGroupSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminGroupSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminGroupSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminGroupSettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminGroupSettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminIntegrationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminIntegrationSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminIntegrationSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminInternalPolicySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminInternalPolicySearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminInternalPolicySearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminNarrativeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminNarrativeSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminNarrativeSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminOauthProviderSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminOauthProviderSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminOauthProviderSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminOhAuthTooTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminOhAuthTooTokenSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminOhAuthTooTokenSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminOrganizationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminOrganizationSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminOrganizationSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminOrganizationSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminOrganizationSettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminOrganizationSettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminPersonalAccessTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminPersonalAccessTokenSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminPersonalAccessTokenSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminProcedureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminProcedureSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminProcedureSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminRiskSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminRiskSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminRiskSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminStandardSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminStandardSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminStandardSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminSubcontrolSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminSubcontrolSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminSubcontrolSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminSubscriberSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminSubscriberSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminSubscriberSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminTFASettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminTFASettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminTFASettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminTemplateSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminTemplateSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminTemplateSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminUserSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminUserSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminUserSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminUserSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminUserSettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminUserSettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminWebhookSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminWebhookSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminWebhookSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_apiTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_apiTokenSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_apiTokenSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_apiToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_apiToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_apiToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_apiTokens_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_apiTokens_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_apiTokens_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_apiTokens_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_apiTokens_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_apiTokens_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_apiTokens_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_apiTokens_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_apiTokens_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_apiTokens_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_apiTokens_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.APITokenWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.APITokenWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, tmp) + } + + var zeroVal *generated.APITokenWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_auditLogs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_auditLogs_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_auditLogs_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_auditLogs_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_auditLogs_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_auditLogs_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_auditLogs_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_auditLogs_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_auditLogs_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_auditLogs_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_auditLogs_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*AuditLogWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *AuditLogWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOAuditLogWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogWhereInput(ctx, tmp) + } + + var zeroVal *AuditLogWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_contactHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_contactHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_contactHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_contactHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_contactHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_contactHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_contactHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_contactHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_contactHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_contactHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_contactHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ContactHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ContactHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOContactHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.ContactHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_contactSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_contactSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_contactSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_contact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_contact_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_contact_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_contacts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_contacts_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_contacts_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_contacts_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_contacts_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_contacts_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_contacts_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_contacts_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_contacts_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_contacts_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_contacts_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ContactWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ContactWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, tmp) + } + + var zeroVal *generated.ContactWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controlHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_controlHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_controlHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_controlHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_controlHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_controlHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ControlHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ControlHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOControlHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.ControlHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlObjectiveHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controlObjectiveHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_controlObjectiveHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_controlObjectiveHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_controlObjectiveHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_controlObjectiveHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_controlObjectiveHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlObjectiveHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlObjectiveHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlObjectiveHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlObjectiveHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ControlObjectiveHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ControlObjectiveHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOControlObjectiveHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.ControlObjectiveHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlObjectiveSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controlObjectiveSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_controlObjectiveSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controlObjective_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_controlObjective_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlObjectives_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controlObjectives_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_controlObjectives_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_controlObjectives_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_controlObjectives_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_controlObjectives_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_controlObjectives_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlObjectives_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlObjectives_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlObjectives_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlObjectives_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ControlObjectiveWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ControlObjectiveWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, tmp) + } + + var zeroVal *generated.ControlObjectiveWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controlSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controlSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_controlSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_control_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_control_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_control_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controls_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controls_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_controls_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_controls_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_controls_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_controls_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_controls_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controls_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controls_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controls_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_controls_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ControlWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ControlWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, tmp) + } + + var zeroVal *generated.ControlWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentDataHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_documentDataHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_documentDataHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_documentDataHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_documentDataHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_documentDataHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_documentDataHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentDataHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentDataHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentDataHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentDataHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.DocumentDataHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.DocumentDataHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalODocumentDataHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.DocumentDataHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentDataSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_documentDataSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_documentDataSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentDataSlice_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_documentDataSlice_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_documentDataSlice_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_documentDataSlice_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_documentDataSlice_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_documentDataSlice_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_documentDataSlice_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentDataSlice_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentDataSlice_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentDataSlice_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentDataSlice_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.DocumentDataWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.DocumentDataWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, tmp) + } + + var zeroVal *generated.DocumentDataWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_documentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_documentData_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_documentData_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entities_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entities_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entities_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entities_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entities_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_entities_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_entities_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entities_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entities_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entities_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entities_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.EntityOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOEntityOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrder(ctx, tmp) + } + + var zeroVal *generated.EntityOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entities_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntityWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, tmp) + } + + var zeroVal *generated.EntityWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitlementHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entitlementHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entitlementHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entitlementHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entitlementHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_entitlementHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntitlementHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntitlementHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntitlementHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.EntitlementHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanFeatureHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitlementPlanFeatureHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entitlementPlanFeatureHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entitlementPlanFeatureHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entitlementPlanFeatureHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entitlementPlanFeatureHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_entitlementPlanFeatureHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanFeatureHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanFeatureHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanFeatureHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanFeatureHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntitlementPlanFeatureHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntitlementPlanFeatureHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntitlementPlanFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.EntitlementPlanFeatureHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanFeatureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitlementPlanFeatureSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entitlementPlanFeatureSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitlementPlanFeature_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entitlementPlanFeature_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanFeatures_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitlementPlanFeatures_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entitlementPlanFeatures_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entitlementPlanFeatures_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entitlementPlanFeatures_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entitlementPlanFeatures_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_entitlementPlanFeatures_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanFeatures_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanFeatures_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanFeatures_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanFeatures_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntitlementPlanFeatureWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntitlementPlanFeatureWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInput(ctx, tmp) + } + + var zeroVal *generated.EntitlementPlanFeatureWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitlementPlanHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entitlementPlanHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entitlementPlanHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entitlementPlanHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entitlementPlanHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_entitlementPlanHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntitlementPlanHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntitlementPlanHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntitlementPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.EntitlementPlanHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlanSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitlementPlanSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entitlementPlanSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitlementPlan_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entitlementPlan_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlans_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitlementPlans_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entitlementPlans_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entitlementPlans_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entitlementPlans_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entitlementPlans_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_entitlementPlans_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlans_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlans_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlans_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementPlans_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntitlementPlanWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntitlementPlanWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntitlementPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInput(ctx, tmp) + } + + var zeroVal *generated.EntitlementPlanWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlementSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitlementSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entitlementSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitlement_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entitlement_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlements_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitlements_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entitlements_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entitlements_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entitlements_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entitlements_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_entitlements_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlements_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlements_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlements_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitlements_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntitlementWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntitlementWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntitlementWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInput(ctx, tmp) + } + + var zeroVal *generated.EntitlementWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entityHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entityHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entityHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entityHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entityHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_entityHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_entityHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.EntityHistoryOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOEntityHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryOrder(ctx, tmp) + } + + var zeroVal *generated.EntityHistoryOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntityHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntityHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.EntityHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entitySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitySearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entitySearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypeHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entityTypeHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entityTypeHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entityTypeHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entityTypeHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entityTypeHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_entityTypeHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_entityTypeHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypeHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypeHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypeHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypeHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityTypeHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.EntityTypeHistoryOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOEntityTypeHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryOrder(ctx, tmp) + } + + var zeroVal *generated.EntityTypeHistoryOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypeHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityTypeHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntityTypeHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntityTypeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.EntityTypeHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entityTypeSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entityTypeSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entityType_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entityType_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entityTypes_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entityTypes_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entityTypes_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entityTypes_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entityTypes_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_entityTypes_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_entityTypes_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypes_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypes_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypes_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypes_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityTypeOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.EntityTypeOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOEntityTypeOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrder(ctx, tmp) + } + + var zeroVal *generated.EntityTypeOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entityTypes_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityTypeWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntityTypeWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, tmp) + } + + var zeroVal *generated.EntityTypeWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_entity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entity_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entity_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_eventHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_eventHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_eventHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_eventHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_eventHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_eventHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_eventHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_eventHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_eventHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_eventHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_eventHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EventHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EventHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEventHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.EventHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_eventSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_eventSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_eventSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_event_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_event_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_event_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_events_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_events_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_events_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_events_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_events_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_events_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_events_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_events_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_events_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_events_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_events_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EventWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EventWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, tmp) + } + + var zeroVal *generated.EventWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_featureHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_featureHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_featureHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_featureHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_featureHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_featureHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_featureHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_featureHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_featureHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_featureHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_featureHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.FeatureHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.FeatureHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.FeatureHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_featureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_featureSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_featureSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_feature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_feature_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_feature_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_features_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_features_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_features_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_features_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_features_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_features_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_features_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_features_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_features_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_features_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_features_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.FeatureWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.FeatureWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInput(ctx, tmp) + } + + var zeroVal *generated.FeatureWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_fileHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_fileHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_fileHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_fileHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_fileHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_fileHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_fileHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_fileHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_fileHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_fileHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_fileHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.FileHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.FileHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOFileHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.FileHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_fileSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_fileSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_fileSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_file_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_file_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_file_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_files_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_files_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_files_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_files_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_files_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_files_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_files_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_files_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_files_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_files_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_files_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.FileWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.FileWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, tmp) + } + + var zeroVal *generated.FileWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_groupHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_groupHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_groupHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_groupHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_groupHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_groupHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.GroupHistoryOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOGroupHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryOrder(ctx, tmp) + } + + var zeroVal *generated.GroupHistoryOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.GroupHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGroupHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.GroupHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupMembershipHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupMembershipHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_groupMembershipHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_groupMembershipHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_groupMembershipHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_groupMembershipHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_groupMembershipHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupMembershipHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupMembershipHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupMembershipHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupMembershipHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupMembershipHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.GroupMembershipHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGroupMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.GroupMembershipHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_groupMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupMemberships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupMemberships_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_groupMemberships_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_groupMemberships_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_groupMemberships_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_groupMemberships_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_groupMemberships_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupMemberships_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupMemberships_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupMemberships_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupMemberships_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupMembershipWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.GroupMembershipWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, tmp) + } + + var zeroVal *generated.GroupMembershipWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_groupSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSettingHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupSettingHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_groupSettingHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_groupSettingHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_groupSettingHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_groupSettingHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_groupSettingHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSettingHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSettingHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSettingHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSettingHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupSettingHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.GroupSettingHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGroupSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.GroupSettingHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupSettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_groupSettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_groupSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupSettings_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_groupSettings_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_groupSettings_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_groupSettings_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_groupSettings_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_groupSettings_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSettings_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSettings_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSettings_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groupSettings_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupSettingWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.GroupSettingWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx, tmp) + } + + var zeroVal *generated.GroupSettingWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_group_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_group_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_group_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groups_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_groups_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_groups_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_groups_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_groups_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_groups_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_groups_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groups_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groups_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groups_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groups_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.GroupOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOGroupOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrder(ctx, tmp) + } + + var zeroVal *generated.GroupOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_groups_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.GroupWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, tmp) + } + + var zeroVal *generated.GroupWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hushHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_hushHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_hushHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_hushHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_hushHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_hushHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_hushHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_hushHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hushHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hushHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hushHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hushHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.HushHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.HushHistoryOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOHushHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryOrder(ctx, tmp) + } + + var zeroVal *generated.HushHistoryOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hushHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.HushHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.HushHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOHushHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.HushHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_hush_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_hush_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hushes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_hushes_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_hushes_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_hushes_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_hushes_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_hushes_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_hushes_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_hushes_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hushes_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hushes_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hushes_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hushes_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.HushOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.HushOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOHushOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrder(ctx, tmp) + } + + var zeroVal *generated.HushOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_hushes_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.HushWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.HushWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, tmp) + } + + var zeroVal *generated.HushWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrationHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_integrationHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_integrationHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_integrationHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_integrationHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_integrationHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_integrationHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_integrationHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrationHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrationHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrationHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrationHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.IntegrationHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.IntegrationHistoryOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOIntegrationHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryOrder(ctx, tmp) + } + + var zeroVal *generated.IntegrationHistoryOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrationHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.IntegrationHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.IntegrationHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOIntegrationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.IntegrationHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_integrationSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_integrationSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_integration_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_integration_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_integrations_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_integrations_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_integrations_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_integrations_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_integrations_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_integrations_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_integrations_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrations_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrations_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrations_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrations_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.IntegrationOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.IntegrationOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOIntegrationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrder(ctx, tmp) + } + + var zeroVal *generated.IntegrationOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_integrations_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.IntegrationWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.IntegrationWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, tmp) + } + + var zeroVal *generated.IntegrationWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_internalPolicies_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_internalPolicies_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_internalPolicies_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_internalPolicies_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_internalPolicies_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_internalPolicies_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_internalPolicies_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_internalPolicies_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_internalPolicies_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_internalPolicies_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_internalPolicies_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.InternalPolicyWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.InternalPolicyWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, tmp) + } + + var zeroVal *generated.InternalPolicyWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_internalPolicyHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_internalPolicyHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_internalPolicyHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_internalPolicyHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_internalPolicyHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_internalPolicyHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_internalPolicyHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_internalPolicyHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_internalPolicyHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_internalPolicyHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_internalPolicyHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.InternalPolicyHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.InternalPolicyHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOInternalPolicyHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.InternalPolicyHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_internalPolicySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_internalPolicySearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_internalPolicySearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_internalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_internalPolicy_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_internalPolicy_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_invite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_invite_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_invite_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_invites_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_invites_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_invites_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_invites_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_invites_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_invites_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_invites_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_invites_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_invites_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_invites_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_invites_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.InviteWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.InviteWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, tmp) + } + + var zeroVal *generated.InviteWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_narrativeHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_narrativeHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_narrativeHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_narrativeHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_narrativeHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_narrativeHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_narrativeHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_narrativeHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_narrativeHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_narrativeHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_narrativeHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.NarrativeHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.NarrativeHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalONarrativeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.NarrativeHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_narrativeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_narrativeSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_narrativeSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_narrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_narrative_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_narrative_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_narratives_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_narratives_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_narratives_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_narratives_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_narratives_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_narratives_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_narratives_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_narratives_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_narratives_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_narratives_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_narratives_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.NarrativeWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.NarrativeWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, tmp) + } + + var zeroVal *generated.NarrativeWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_node_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_node_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_nodes_argsIds(ctx, rawArgs) + if err != nil { + return nil, err + } + args["ids"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_nodes_argsIds( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ids"] + if !ok { + var zeroVal []string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) + if tmp, ok := rawArgs["ids"]; ok { + return ec.unmarshalNID2ᚕstringᚄ(ctx, tmp) + } + + var zeroVal []string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_noteHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_noteHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_noteHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_noteHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_noteHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_noteHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_noteHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_noteHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_noteHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_noteHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_noteHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.NoteHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.NoteHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalONoteHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.NoteHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_notes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_notes_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_notes_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_notes_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_notes_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_notes_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_notes_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_notes_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_notes_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_notes_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_notes_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.NoteWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.NoteWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, tmp) + } + + var zeroVal *generated.NoteWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_oauthProviderHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_oauthProviderHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_oauthProviderHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_oauthProviderHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_oauthProviderHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_oauthProviderHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_oauthProviderHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_oauthProviderHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_oauthProviderHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_oauthProviderHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_oauthProviderHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OauthProviderHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OauthProviderHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOauthProviderHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.OauthProviderHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_oauthProviderSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_oauthProviderSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_oauthProviderSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_oauthProvider_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_oauthProvider_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_oauthProvider_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_oauthProviders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_oauthProviders_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_oauthProviders_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_oauthProviders_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_oauthProviders_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_oauthProviders_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_oauthProviders_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_oauthProviders_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_oauthProviders_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_oauthProviders_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_oauthProviders_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OauthProviderWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OauthProviderWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOauthProviderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInput(ctx, tmp) + } + + var zeroVal *generated.OauthProviderWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_ohAuthTooTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_ohAuthTooTokenSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_ohAuthTooTokenSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_ohAuthTooToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_ohAuthTooToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_ohAuthTooToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_ohAuthTooTokens_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_ohAuthTooTokens_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_ohAuthTooTokens_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_ohAuthTooTokens_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_ohAuthTooTokens_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_ohAuthTooTokens_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_ohAuthTooTokens_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_ohAuthTooTokens_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_ohAuthTooTokens_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_ohAuthTooTokens_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_ohAuthTooTokens_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OhAuthTooTokenWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OhAuthTooTokenWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOhAuthTooTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInput(ctx, tmp) + } + + var zeroVal *generated.OhAuthTooTokenWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_orgMembershipHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_orgMembershipHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_orgMembershipHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_orgMembershipHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_orgMembershipHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_orgMembershipHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_orgMembershipHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_orgMembershipHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_orgMembershipHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_orgMembershipHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_orgMembershipHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrgMembershipHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrgMembershipHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrgMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.OrgMembershipHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_orgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_orgMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_orgMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_orgMemberships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_orgMemberships_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_orgMemberships_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_orgMemberships_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_orgMemberships_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_orgMemberships_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_orgMemberships_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_orgMemberships_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_orgMemberships_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_orgMemberships_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_orgMemberships_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrgMembershipWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrgMembershipWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, tmp) + } + + var zeroVal *generated.OrgMembershipWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizationHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_organizationHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_organizationHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_organizationHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_organizationHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_organizationHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_organizationHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.OrganizationHistoryOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOOrganizationHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryOrder(ctx, tmp) + } + + var zeroVal *generated.OrganizationHistoryOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrganizationHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrganizationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.OrganizationHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizationSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_organizationSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSettingHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizationSettingHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_organizationSettingHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_organizationSettingHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_organizationSettingHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_organizationSettingHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_organizationSettingHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSettingHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSettingHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSettingHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSettingHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationSettingHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrganizationSettingHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.OrganizationSettingHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizationSettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_organizationSettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizationSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_organizationSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizationSettings_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_organizationSettings_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_organizationSettings_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_organizationSettings_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_organizationSettings_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_organizationSettings_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSettings_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSettings_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSettings_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizationSettings_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationSettingWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrganizationSettingWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx, tmp) + } + + var zeroVal *generated.OrganizationSettingWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organization_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_organization_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizations_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_organizations_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_organizations_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_organizations_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_organizations_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_organizations_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_organizations_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizations_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizations_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizations_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizations_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.OrganizationOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrder(ctx, tmp) + } + + var zeroVal *generated.OrganizationOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_organizations_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrganizationWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, tmp) + } + + var zeroVal *generated.OrganizationWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_personalAccessTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_personalAccessTokenSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_personalAccessTokenSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_personalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_personalAccessToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_personalAccessToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_personalAccessTokens_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_personalAccessTokens_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_personalAccessTokens_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_personalAccessTokens_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_personalAccessTokens_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_personalAccessTokens_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_personalAccessTokens_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_personalAccessTokens_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_personalAccessTokens_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_personalAccessTokens_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_personalAccessTokens_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.PersonalAccessTokenWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.PersonalAccessTokenWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, tmp) + } + + var zeroVal *generated.PersonalAccessTokenWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedureHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_procedureHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_procedureHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_procedureHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_procedureHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_procedureHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_procedureHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedureHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedureHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedureHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedureHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ProcedureHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ProcedureHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOProcedureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.ProcedureHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_procedureSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_procedureSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_procedure_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_procedure_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedures_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_procedures_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_procedures_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_procedures_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_procedures_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_procedures_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_procedures_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedures_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedures_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedures_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_procedures_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ProcedureWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ProcedureWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, tmp) + } + + var zeroVal *generated.ProcedureWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_riskHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_riskHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_riskHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_riskHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_riskHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_riskHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_riskHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_riskHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_riskHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_riskHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_riskHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.RiskHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.RiskHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalORiskHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.RiskHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_riskSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_riskSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_riskSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_risk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_risk_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_risk_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_risks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_risks_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_risks_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_risks_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_risks_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_risks_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_risks_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_risks_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_risks_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_risks_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_risks_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.RiskWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.RiskWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, tmp) + } + + var zeroVal *generated.RiskWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_search_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_search_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_standardHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_standardHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_standardHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_standardHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_standardHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_standardHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_standardHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_standardHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_standardHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_standardHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_standardHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.StandardHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.StandardHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOStandardHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.StandardHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_standardSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_standardSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_standardSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_standard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_standard_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_standard_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_standards_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_standards_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_standards_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_standards_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_standards_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_standards_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_standards_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_standards_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_standards_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_standards_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_standards_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.StandardWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.StandardWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, tmp) + } + + var zeroVal *generated.StandardWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subcontrolHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subcontrolHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_subcontrolHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_subcontrolHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_subcontrolHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_subcontrolHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_subcontrolHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subcontrolHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subcontrolHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subcontrolHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subcontrolHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.SubcontrolHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.SubcontrolHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOSubcontrolHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.SubcontrolHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subcontrolSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subcontrolSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_subcontrolSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subcontrol_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_subcontrol_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subcontrols_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subcontrols_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_subcontrols_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_subcontrols_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_subcontrols_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_subcontrols_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_subcontrols_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subcontrols_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subcontrols_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subcontrols_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subcontrols_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.SubcontrolWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.SubcontrolWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, tmp) + } + + var zeroVal *generated.SubcontrolWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subscriberSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subscriberSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_subscriberSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subscriber_argsEmail(ctx, rawArgs) + if err != nil { + return nil, err + } + args["email"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_subscriber_argsEmail( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["email"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + if tmp, ok := rawArgs["email"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subscribers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subscribers_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_subscribers_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_subscribers_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_subscribers_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_subscribers_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_subscribers_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subscribers_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subscribers_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subscribers_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_subscribers_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.SubscriberWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.SubscriberWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, tmp) + } + + var zeroVal *generated.SubscriberWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_tFASettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_tFASettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_tFASettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templateHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_templateHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_templateHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_templateHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_templateHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_templateHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_templateHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_templateHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templateHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templateHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templateHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templateHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.TemplateHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.TemplateHistoryOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOTemplateHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryOrder(ctx, tmp) + } + + var zeroVal *generated.TemplateHistoryOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templateHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.TemplateHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.TemplateHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOTemplateHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.TemplateHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templateSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_templateSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_templateSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_template_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_template_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_template_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templates_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_templates_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_templates_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_templates_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_templates_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_templates_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_templates_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_templates_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templates_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templates_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templates_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templates_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.TemplateOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.TemplateOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOTemplateOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrder(ctx, tmp) + } + + var zeroVal *generated.TemplateOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_templates_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.TemplateWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.TemplateWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, tmp) + } + + var zeroVal *generated.TemplateWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_tfaSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_tfaSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_tfaSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalOID2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_tfaSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_tfaSettings_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_tfaSettings_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_tfaSettings_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_tfaSettings_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_tfaSettings_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_tfaSettings_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_tfaSettings_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_tfaSettings_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_tfaSettings_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_tfaSettings_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.TFASettingWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.TFASettingWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx, tmp) + } + + var zeroVal *generated.TFASettingWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_userHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_userHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_userHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_userHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_userHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_userHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_userHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.UserHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.UserHistoryOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOUserHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryOrder(ctx, tmp) + } + + var zeroVal *generated.UserHistoryOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.UserHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.UserHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOUserHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.UserHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_userSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_userSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettingHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_userSettingHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_userSettingHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_userSettingHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_userSettingHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_userSettingHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_userSettingHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettingHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettingHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettingHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettingHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.UserSettingHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.UserSettingHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOUserSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.UserSettingHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_userSettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_userSettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_userSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_userSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_userSettings_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_userSettings_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_userSettings_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_userSettings_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_userSettings_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_userSettings_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettings_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettings_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettings_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettings_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.UserSettingWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.UserSettingWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOUserSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInput(ctx, tmp) + } + + var zeroVal *generated.UserSettingWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_user_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_user_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_users_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_users_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_users_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_users_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_users_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_users_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_users_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_users_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_users_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_users_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_users_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.UserOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.UserOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOUserOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrder(ctx, tmp) + } + + var zeroVal *generated.UserOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_users_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.UserWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.UserWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, tmp) + } + + var zeroVal *generated.UserWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhookHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_webhookHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_webhookHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_webhookHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_webhookHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_webhookHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_webhookHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_webhookHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhookHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhookHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhookHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhookHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.WebhookHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.WebhookHistoryOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOWebhookHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryOrder(ctx, tmp) + } + + var zeroVal *generated.WebhookHistoryOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhookHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.WebhookHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.WebhookHistoryWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOWebhookHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryWhereInput(ctx, tmp) + } + + var zeroVal *generated.WebhookHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhookSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_webhookSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_webhookSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_webhook_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_webhook_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhooks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_webhooks_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_webhooks_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_webhooks_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_webhooks_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_webhooks_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_webhooks_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_webhooks_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhooks_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhooks_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhooks_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhooks_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.WebhookOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.WebhookOrder + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOWebhookOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookOrder(ctx, tmp) + } + + var zeroVal *generated.WebhookOrder + return zeroVal, nil +} + +func (ec *executionContext) field_Query_webhooks_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.WebhookWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.WebhookWhereInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOWebhookWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInput(ctx, tmp) + } + + var zeroVal *generated.WebhookWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) + if err != nil { + return nil, err + } + args["includeDeprecated"] = arg0 + return args, nil +} +func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( + ctx context.Context, + rawArgs map[string]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["includeDeprecated"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) + if tmp, ok := rawArgs["includeDeprecated"]; ok { + return ec.unmarshalOBoolean2bool(ctx, tmp) + } + + var zeroVal bool + return zeroVal, nil +} + +func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) + if err != nil { + return nil, err + } + args["includeDeprecated"] = arg0 + return args, nil +} +func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( + ctx context.Context, + rawArgs map[string]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["includeDeprecated"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) + if tmp, ok := rawArgs["includeDeprecated"]; ok { + return ec.unmarshalOBoolean2bool(ctx, tmp) + } + + var zeroVal bool + return zeroVal, nil +} + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _APIToken_id(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_name(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_token(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_token(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Token, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_expiresAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExpiresAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_description(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_scopes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Scopes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_lastUsedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.LastUsedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APIToken_owner(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_owner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APIToken_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APIToken", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _APITokenBulkCreatePayload_apiTokens(ctx context.Context, field graphql.CollectedField, obj *APITokenBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenBulkCreatePayload_apiTokens(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.APITokens, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.APIToken) + fc.Result = res + return ec.marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenBulkCreatePayload_apiTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _APITokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.APITokenEdge) + fc.Result = res + return ec.marshalOAPITokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_APITokenEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_APITokenEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _APITokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _APITokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APITokenCreatePayload_apiToken(ctx context.Context, field graphql.CollectedField, obj *APITokenCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenCreatePayload_apiToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.APIToken, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.APIToken) + fc.Result = res + return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenCreatePayload_apiToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _APITokenDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *APITokenDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APITokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.APIToken) + fc.Result = res + return ec.marshalOAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _APITokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _APITokenSearchResult_apiTokens(ctx context.Context, field graphql.CollectedField, obj *APITokenSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenSearchResult_apiTokens(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.APITokens, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.APIToken) + fc.Result = res + return ec.marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenSearchResult_apiTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _APITokenUpdatePayload_apiToken(ctx context.Context, field graphql.CollectedField, obj *APITokenUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenUpdatePayload_apiToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.APIToken, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.APIToken) + fc.Result = res + return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenUpdatePayload_apiToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_id(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_name(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_description(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_status(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_dueDate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DueDate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_priority(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_priority(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Priority, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_source(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_source(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Source, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_details(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_details(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_standard(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_standard(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Standard(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Standard) + fc.Result = res + return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_Standard_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionplans": + return ec.fieldContext_Standard_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_risk(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_risk(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Risk(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Risk) + fc.Result = res + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_risk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Risk_id(ctx, field) + case "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionplans": + return ec.fieldContext_Risk_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_control(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_control(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Control(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Control) + fc.Result = res + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_user(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_user(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.User(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.User) + fc.Result = res + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanBulkCreatePayload_actionPlans(ctx context.Context, field graphql.CollectedField, obj *ActionPlanBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanBulkCreatePayload_actionPlans(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActionPlans, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ActionPlan) + fc.Result = res + return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanBulkCreatePayload_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ActionPlanEdge) + fc.Result = res + return ec.marshalOActionPlanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_ActionPlanEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ActionPlanEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanCreatePayload_actionPlan(ctx context.Context, field graphql.CollectedField, obj *ActionPlanCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanCreatePayload_actionPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActionPlan, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.ActionPlan) + fc.Result = res + return ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanCreatePayload_actionPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ActionPlanDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.ActionPlan) + fc.Result = res + return ec.marshalOActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNActionPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ActionPlanHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_dueDate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DueDate, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_priority(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_priority(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Priority, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_source(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_source(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Source, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_details(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ActionPlanHistoryEdge) + fc.Result = res + return ec.marshalOActionPlanHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_ActionPlanHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ActionPlanHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanHistoryEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.ActionPlanHistory) + fc.Result = res + return ec.marshalOActionPlanHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ActionPlanHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_ActionPlanHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_ActionPlanHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_ActionPlanHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlanHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlanHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlanHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlanHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlanHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlanHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlanHistory_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlanHistory_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlanHistory_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlanHistory_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlanHistory_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlanHistory_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlanHistory_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlanHistory_details(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanSearchResult_actionPlans(ctx context.Context, field graphql.CollectedField, obj *ActionPlanSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanSearchResult_actionPlans(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActionPlans, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ActionPlan) + fc.Result = res + return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanSearchResult_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanUpdatePayload_actionPlan(ctx context.Context, field graphql.CollectedField, obj *ActionPlanUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanUpdatePayload_actionPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActionPlan, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.ActionPlan) + fc.Result = res + return ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanUpdatePayload_actionPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLog_table(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLog_table(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Table, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLog_table(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLog", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLog_time(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLog_time(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Time, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLog_time(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLog", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLog_id(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLog_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLog_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLog", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLog_operation(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLog_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLog_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLog", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLog_changes(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLog_changes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Changes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLog_changes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLog", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLog_updatedBy(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLog_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOID2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLog_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLog", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLogConnection_edges(ctx context.Context, field graphql.CollectedField, obj *AuditLogConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLogConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*AuditLogEdge) + fc.Result = res + return ec.marshalOAuditLogEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLogConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLogConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_AuditLogEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_AuditLogEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AuditLogEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLogConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *AuditLogConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLogConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLogConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLogConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLogConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *AuditLogConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLogConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLogConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLogConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLogEdge_node(ctx context.Context, field graphql.CollectedField, obj *AuditLogEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLogEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*AuditLog) + fc.Result = res + return ec.marshalOAuditLog2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLog(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLogEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLogEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "table": + return ec.fieldContext_AuditLog_table(ctx, field) + case "time": + return ec.fieldContext_AuditLog_time(ctx, field) + case "id": + return ec.fieldContext_AuditLog_id(ctx, field) + case "operation": + return ec.fieldContext_AuditLog_operation(ctx, field) + case "changes": + return ec.fieldContext_AuditLog_changes(ctx, field) + case "updatedBy": + return ec.fieldContext_AuditLog_updatedBy(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AuditLog", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLogEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *AuditLogEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLogEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLogEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLogEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_id(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_fullName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FullName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_title(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_title(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Title, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_company(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_company(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Company, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_email(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_email(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Email, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_phoneNumber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PhoneNumber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_address(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_address(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Address, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_status(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.UserStatus) + fc.Result = res + return ec.marshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ContactUserStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_owner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_entities(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entities(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Entity) + fc.Result = res + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Contact_files(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_files(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Files(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.File) + fc.Result = res + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Contact_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactBulkCreatePayload_contacts(ctx context.Context, field graphql.CollectedField, obj *ContactBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactBulkCreatePayload_contacts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Contacts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Contact) + fc.Result = res + return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactBulkCreatePayload_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ContactEdge) + fc.Result = res + return ec.marshalOContactEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_ContactEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ContactEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactCreatePayload_contact(ctx context.Context, field graphql.CollectedField, obj *ContactCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactCreatePayload_contact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Contact, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Contact) + fc.Result = res + return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactCreatePayload_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ContactDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ContactEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Contact) + fc.Result = res + return ec.marshalOContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ContactEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ContactHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_fullName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FullName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_title(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_title(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Title, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_company(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_company(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Company, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_email(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_email(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Email, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_phoneNumber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PhoneNumber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_address(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_address(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Address, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.UserStatus) + fc.Result = res + return ec.marshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ContactHistoryUserStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ContactHistoryEdge) + fc.Result = res + return ec.marshalOContactHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_ContactHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ContactHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactHistoryEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.ContactHistory) + fc.Result = res + return ec.marshalOContactHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ContactHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_ContactHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_ContactHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_ContactHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_ContactHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ContactHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ContactHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ContactHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ContactHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ContactHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ContactHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ContactHistory_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_ContactHistory_fullName(ctx, field) + case "title": + return ec.fieldContext_ContactHistory_title(ctx, field) + case "company": + return ec.fieldContext_ContactHistory_company(ctx, field) + case "email": + return ec.fieldContext_ContactHistory_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_ContactHistory_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_ContactHistory_address(ctx, field) + case "status": + return ec.fieldContext_ContactHistory_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactSearchResult_contacts(ctx context.Context, field graphql.CollectedField, obj *ContactSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactSearchResult_contacts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Contacts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Contact) + fc.Result = res + return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactSearchResult_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactUpdatePayload_contact(ctx context.Context, field graphql.CollectedField, obj *ContactUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactUpdatePayload_contact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Contact, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Contact) + fc.Result = res + return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactUpdatePayload_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_id(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_name(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_description(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_status(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_controlType(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_controlType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_controlType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_version(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_controlNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_controlNumber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlNumber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_controlNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_family(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_family(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Family, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_class(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_class(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Class, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_source(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_source(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Source, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_satisfies(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Satisfies, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_mappedFrameworks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MappedFrameworks, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_details(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_details(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_procedures(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Procedures(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Procedure) + fc.Result = res + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "control": + return ec.fieldContext_Procedure_control(ctx, field) + case "internalpolicy": + return ec.fieldContext_Procedure_internalpolicy(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_subcontrols(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Subcontrols(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Subcontrol) + fc.Result = res + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "control": + return ec.fieldContext_Subcontrol_control(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_controlobjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_controlobjectives(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Controlobjectives(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ControlObjective) + fc.Result = res + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_controlobjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "policy": + return ec.fieldContext_ControlObjective_policy(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_standard(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_standard(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Standard(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Standard) + fc.Result = res + return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_Standard_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionplans": + return ec.fieldContext_Standard_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_narratives(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Narratives(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Narrative) + fc.Result = res + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "policy": + return ec.fieldContext_Narrative_policy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlobjective": + return ec.fieldContext_Narrative_controlobjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_risks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Risks(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Risk) + fc.Result = res + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Risk_id(ctx, field) + case "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionplans": + return ec.fieldContext_Risk_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_actionplans(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_actionplans(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Actionplans(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ActionPlan) + fc.Result = res + return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_actionplans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlBulkCreatePayload_controls(ctx context.Context, field graphql.CollectedField, obj *ControlBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlBulkCreatePayload_controls(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Controls, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Control) + fc.Result = res + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlBulkCreatePayload_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ControlEdge) + fc.Result = res + return ec.marshalOControlEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_ControlEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ControlEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlCreatePayload_control(ctx context.Context, field graphql.CollectedField, obj *ControlCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlCreatePayload_control(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Control, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Control) + fc.Result = res + return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlCreatePayload_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ControlDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Control) + fc.Result = res + return ec.marshalOControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ControlHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_controlType(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_controlType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_controlType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_controlNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_controlNumber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlNumber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_controlNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_family(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_family(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Family, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_class(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_class(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Class, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_source(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_source(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Source, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_satisfies(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Satisfies, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_mappedFrameworks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MappedFrameworks, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_details(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ControlHistoryEdge) + fc.Result = res + return ec.marshalOControlHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_ControlHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ControlHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlHistoryEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.ControlHistory) + fc.Result = res + return ec.marshalOControlHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ControlHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_ControlHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_ControlHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_ControlHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_ControlHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlHistory_tags(ctx, field) + case "name": + return ec.fieldContext_ControlHistory_name(ctx, field) + case "description": + return ec.fieldContext_ControlHistory_description(ctx, field) + case "status": + return ec.fieldContext_ControlHistory_status(ctx, field) + case "controlType": + return ec.fieldContext_ControlHistory_controlType(ctx, field) + case "version": + return ec.fieldContext_ControlHistory_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlHistory_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlHistory_family(ctx, field) + case "class": + return ec.fieldContext_ControlHistory_class(ctx, field) + case "source": + return ec.fieldContext_ControlHistory_source(ctx, field) + case "satisfies": + return ec.fieldContext_ControlHistory_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlHistory_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlHistory_details(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_name(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_description(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_controlObjectiveType(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlObjectiveType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_controlObjectiveType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_version(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_controlNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_controlNumber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlNumber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_controlNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_family(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_family(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Family, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_class(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_class(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Class, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_source(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_source(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Source, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MappedFrameworks, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_details(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_details(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_policy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_policy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Policy(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.InternalPolicy) + fc.Result = res + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_policy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_InternalPolicy_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_controls(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_controls(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Controls(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Control) + fc.Result = res + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_procedures(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Procedures(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Procedure) + fc.Result = res + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "control": + return ec.fieldContext_Procedure_control(ctx, field) + case "internalpolicy": + return ec.fieldContext_Procedure_internalpolicy(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_risks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_risks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Risks(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Risk) + fc.Result = res + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Risk_id(ctx, field) + case "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionplans": + return ec.fieldContext_Risk_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_subcontrols(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Subcontrols(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Subcontrol) + fc.Result = res + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "control": + return ec.fieldContext_Subcontrol_control(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_standard(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_standard(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Standard(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Standard) + fc.Result = res + return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_Standard_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionplans": + return ec.fieldContext_Standard_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_narratives(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Narratives(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Narrative) + fc.Result = res + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjective_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "policy": + return ec.fieldContext_Narrative_policy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlobjective": + return ec.fieldContext_Narrative_controlobjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveBulkCreatePayload_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *ControlObjectiveBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveBulkCreatePayload_controlObjectives(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlObjectives, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ControlObjective) + fc.Result = res + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveBulkCreatePayload_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "policy": + return ec.fieldContext_ControlObjective_policy(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ControlObjectiveEdge) + fc.Result = res + return ec.marshalOControlObjectiveEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_ControlObjectiveEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ControlObjectiveEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveCreatePayload_controlObjective(ctx context.Context, field graphql.CollectedField, obj *ControlObjectiveCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveCreatePayload_controlObjective(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlObjective, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.ControlObjective) + fc.Result = res + return ec.marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveCreatePayload_controlObjective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "policy": + return ec.fieldContext_ControlObjective_policy(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ControlObjectiveDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.ControlObjective) + fc.Result = res + return ec.marshalOControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "policy": + return ec.fieldContext_ControlObjective_policy(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNControlObjectiveHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ControlObjectiveHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_controlObjectiveType(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_controlObjectiveType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlObjectiveType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_controlObjectiveType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_controlNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_controlNumber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlNumber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_controlNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_family(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_family(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Family, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_class(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_class(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Class, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_source(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_source(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Source, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_mappedFrameworks(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MappedFrameworks, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_details(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ControlObjectiveHistoryEdge) + fc.Result = res + return ec.marshalOControlObjectiveHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_ControlObjectiveHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ControlObjectiveHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveHistoryEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.ControlObjectiveHistory) + fc.Result = res + return ec.marshalOControlObjectiveHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ControlObjectiveHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_ControlObjectiveHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_ControlObjectiveHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_ControlObjectiveHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjectiveHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjectiveHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjectiveHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjectiveHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjectiveHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjectiveHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjectiveHistory_tags(ctx, field) + case "name": + return ec.fieldContext_ControlObjectiveHistory_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjectiveHistory_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjectiveHistory_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjectiveHistory_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjectiveHistory_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjectiveHistory_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjectiveHistory_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjectiveHistory_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjectiveHistory_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjectiveHistory_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjectiveHistory_details(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveSearchResult_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *ControlObjectiveSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveSearchResult_controlObjectives(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlObjectives, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ControlObjective) + fc.Result = res + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveSearchResult_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "policy": + return ec.fieldContext_ControlObjective_policy(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveUpdatePayload_controlObjective(ctx context.Context, field graphql.CollectedField, obj *ControlObjectiveUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveUpdatePayload_controlObjective(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlObjective, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.ControlObjective) + fc.Result = res + return ec.marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveUpdatePayload_controlObjective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "policy": + return ec.fieldContext_ControlObjective_policy(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlSearchResult_controls(ctx context.Context, field graphql.CollectedField, obj *ControlSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlSearchResult_controls(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Controls, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Control) + fc.Result = res + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlSearchResult_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlUpdatePayload_control(ctx context.Context, field graphql.CollectedField, obj *ControlUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlUpdatePayload_control(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Control, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Control) + fc.Result = res + return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlUpdatePayload_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_id(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_templateID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_templateID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TemplateID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_data(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_data(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Data, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(customtypes.JSONObject) + fc.Result = res + return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type JSON does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_owner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_template(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_template(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Template(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Template) + fc.Result = res + return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_entity(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_entity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entity(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Entity) + fc.Result = res + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentData_files(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_files(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Files(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.File) + fc.Result = res + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentData_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataBulkCreatePayload_documentData(ctx context.Context, field graphql.CollectedField, obj *DocumentDataBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataBulkCreatePayload_documentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.DocumentData) + fc.Result = res + return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataBulkCreatePayload_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.DocumentDataEdge) + fc.Result = res + return ec.marshalODocumentDataEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_DocumentDataEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_DocumentDataEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataCreatePayload_documentData(ctx context.Context, field graphql.CollectedField, obj *DocumentDataCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataCreatePayload_documentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.DocumentData) + fc.Result = res + return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataCreatePayload_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *DocumentDataDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.DocumentData) + fc.Result = res + return ec.marshalODocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type DocumentDataHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_templateID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_templateID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TemplateID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistory_data(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_data(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Data, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(customtypes.JSONObject) + fc.Result = res + return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistory_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type JSON does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.DocumentDataHistoryEdge) + fc.Result = res + return ec.marshalODocumentDataHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_DocumentDataHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_DocumentDataHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataHistoryEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.DocumentDataHistory) + fc.Result = res + return ec.marshalODocumentDataHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_DocumentDataHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_DocumentDataHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_DocumentDataHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_DocumentDataHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentDataHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentDataHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentDataHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentDataHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentDataHistory_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentDataHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentDataHistory_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentDataHistory_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentDataHistory_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentDataHistory_data(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataSearchResult_documentData(ctx context.Context, field graphql.CollectedField, obj *DocumentDataSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataSearchResult_documentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.DocumentData) + fc.Result = res + return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataSearchResult_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataUpdatePayload_documentData(ctx context.Context, field graphql.CollectedField, obj *DocumentDataUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataUpdatePayload_documentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.DocumentData) + fc.Result = res + return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataUpdatePayload_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_id(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_planID(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_planID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_planID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_organizationID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrganizationID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_externalCustomerID(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_externalCustomerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExternalCustomerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_externalCustomerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_externalSubscriptionID(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExternalSubscriptionID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_externalSubscriptionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_expires(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_expires(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Expires, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_expires(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_expiresAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExpiresAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_cancelled(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_cancelled(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cancelled, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_cancelled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_owner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_plan(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_plan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Plan(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.EntitlementPlan) + fc.Result = res + return ec.marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_plan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlan_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) + case "displayName": + return ec.fieldContext_EntitlementPlan_displayName(ctx, field) + case "name": + return ec.fieldContext_EntitlementPlan_name(ctx, field) + case "description": + return ec.fieldContext_EntitlementPlan_description(ctx, field) + case "version": + return ec.fieldContext_EntitlementPlan_version(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlan_metadata(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlan_owner(ctx, field) + case "entitlements": + return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) + case "baseFeatures": + return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlan_events(ctx, field) + case "features": + return ec.fieldContext_EntitlementPlan_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_organization(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_organization(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Organization(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Entitlement_events(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entitlement_events(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entitlement_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entitlement", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementBulkCreatePayload_entitlements(ctx context.Context, field graphql.CollectedField, obj *EntitlementBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementBulkCreatePayload_entitlements(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entitlements, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Entitlement) + fc.Result = res + return ec.marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementBulkCreatePayload_entitlements(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entitlement_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entitlement_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entitlement_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entitlement_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entitlement_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Entitlement_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Entitlement_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entitlement_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Entitlement_ownerID(ctx, field) + case "planID": + return ec.fieldContext_Entitlement_planID(ctx, field) + case "organizationID": + return ec.fieldContext_Entitlement_organizationID(ctx, field) + case "externalCustomerID": + return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) + case "externalSubscriptionID": + return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) + case "expires": + return ec.fieldContext_Entitlement_expires(ctx, field) + case "expiresAt": + return ec.fieldContext_Entitlement_expiresAt(ctx, field) + case "cancelled": + return ec.fieldContext_Entitlement_cancelled(ctx, field) + case "owner": + return ec.fieldContext_Entitlement_owner(ctx, field) + case "plan": + return ec.fieldContext_Entitlement_plan(ctx, field) + case "organization": + return ec.fieldContext_Entitlement_organization(ctx, field) + case "events": + return ec.fieldContext_Entitlement_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementEdge) + fc.Result = res + return ec.marshalOEntitlementEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_EntitlementEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EntitlementEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementCreatePayload_entitlement(ctx context.Context, field graphql.CollectedField, obj *EntitlementCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementCreatePayload_entitlement(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entitlement, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Entitlement) + fc.Result = res + return ec.marshalNEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementCreatePayload_entitlement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entitlement_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entitlement_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entitlement_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entitlement_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entitlement_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Entitlement_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Entitlement_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entitlement_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Entitlement_ownerID(ctx, field) + case "planID": + return ec.fieldContext_Entitlement_planID(ctx, field) + case "organizationID": + return ec.fieldContext_Entitlement_organizationID(ctx, field) + case "externalCustomerID": + return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) + case "externalSubscriptionID": + return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) + case "expires": + return ec.fieldContext_Entitlement_expires(ctx, field) + case "expiresAt": + return ec.fieldContext_Entitlement_expiresAt(ctx, field) + case "cancelled": + return ec.fieldContext_Entitlement_cancelled(ctx, field) + case "owner": + return ec.fieldContext_Entitlement_owner(ctx, field) + case "plan": + return ec.fieldContext_Entitlement_plan(ctx, field) + case "organization": + return ec.fieldContext_Entitlement_organization(ctx, field) + case "events": + return ec.fieldContext_Entitlement_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EntitlementDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Entitlement) + fc.Result = res + return ec.marshalOEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entitlement_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entitlement_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entitlement_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entitlement_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entitlement_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Entitlement_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Entitlement_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entitlement_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Entitlement_ownerID(ctx, field) + case "planID": + return ec.fieldContext_Entitlement_planID(ctx, field) + case "organizationID": + return ec.fieldContext_Entitlement_organizationID(ctx, field) + case "externalCustomerID": + return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) + case "externalSubscriptionID": + return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) + case "expires": + return ec.fieldContext_Entitlement_expires(ctx, field) + case "expiresAt": + return ec.fieldContext_Entitlement_expiresAt(ctx, field) + case "cancelled": + return ec.fieldContext_Entitlement_cancelled(ctx, field) + case "owner": + return ec.fieldContext_Entitlement_owner(ctx, field) + case "plan": + return ec.fieldContext_Entitlement_plan(ctx, field) + case "organization": + return ec.fieldContext_Entitlement_organization(ctx, field) + case "events": + return ec.fieldContext_Entitlement_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNEntitlementHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type EntitlementHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_planID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_planID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_planID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_organizationID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrganizationID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_externalCustomerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_externalCustomerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExternalCustomerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_externalCustomerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_externalSubscriptionID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_externalSubscriptionID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExternalSubscriptionID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_externalSubscriptionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_expires(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_expires(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Expires, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_expires(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_expiresAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ExpiresAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistory_cancelled(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistory_cancelled(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cancelled, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistory_cancelled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementHistoryEdge) + fc.Result = res + return ec.marshalOEntitlementHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_EntitlementHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EntitlementHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementHistoryEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.EntitlementHistory) + fc.Result = res + return ec.marshalOEntitlementHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_EntitlementHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_EntitlementHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_EntitlementHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementHistory_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementHistory_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementHistory_ownerID(ctx, field) + case "planID": + return ec.fieldContext_EntitlementHistory_planID(ctx, field) + case "organizationID": + return ec.fieldContext_EntitlementHistory_organizationID(ctx, field) + case "externalCustomerID": + return ec.fieldContext_EntitlementHistory_externalCustomerID(ctx, field) + case "externalSubscriptionID": + return ec.fieldContext_EntitlementHistory_externalSubscriptionID(ctx, field) + case "expires": + return ec.fieldContext_EntitlementHistory_expires(ctx, field) + case "expiresAt": + return ec.fieldContext_EntitlementHistory_expiresAt(ctx, field) + case "cancelled": + return ec.fieldContext_EntitlementHistory_cancelled(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_displayName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DisplayName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_description(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_version(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_metadata(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Metadata, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_owner(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_owner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_entitlements(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_entitlements(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entitlements(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Entitlement) + fc.Result = res + return ec.marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_entitlements(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entitlement_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entitlement_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entitlement_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entitlement_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entitlement_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Entitlement_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Entitlement_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entitlement_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Entitlement_ownerID(ctx, field) + case "planID": + return ec.fieldContext_Entitlement_planID(ctx, field) + case "organizationID": + return ec.fieldContext_Entitlement_organizationID(ctx, field) + case "externalCustomerID": + return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) + case "externalSubscriptionID": + return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) + case "expires": + return ec.fieldContext_Entitlement_expires(ctx, field) + case "expiresAt": + return ec.fieldContext_Entitlement_expiresAt(ctx, field) + case "cancelled": + return ec.fieldContext_Entitlement_cancelled(ctx, field) + case "owner": + return ec.fieldContext_Entitlement_owner(ctx, field) + case "plan": + return ec.fieldContext_Entitlement_plan(ctx, field) + case "organization": + return ec.fieldContext_Entitlement_organization(ctx, field) + case "events": + return ec.fieldContext_Entitlement_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_baseFeatures(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BaseFeatures(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Feature) + fc.Result = res + return ec.marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_baseFeatures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Feature_id(ctx, field) + case "createdAt": + return ec.fieldContext_Feature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Feature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Feature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Feature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Feature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Feature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Feature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Feature_ownerID(ctx, field) + case "name": + return ec.fieldContext_Feature_name(ctx, field) + case "displayName": + return ec.fieldContext_Feature_displayName(ctx, field) + case "enabled": + return ec.fieldContext_Feature_enabled(ctx, field) + case "description": + return ec.fieldContext_Feature_description(ctx, field) + case "metadata": + return ec.fieldContext_Feature_metadata(ctx, field) + case "owner": + return ec.fieldContext_Feature_owner(ctx, field) + case "plans": + return ec.fieldContext_Feature_plans(ctx, field) + case "events": + return ec.fieldContext_Feature_events(ctx, field) + case "features": + return ec.fieldContext_Feature_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_events(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_events(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlan_features(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlan_features(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Features(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlanFeature) + fc.Result = res + return ec.marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlan_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) + case "planID": + return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) + case "featureID": + return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) + case "plan": + return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) + case "feature": + return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanBulkCreatePayload_entitlementPlans(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanBulkCreatePayload_entitlementPlans(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntitlementPlans, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlan) + fc.Result = res + return ec.marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanBulkCreatePayload_entitlementPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlan_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) + case "displayName": + return ec.fieldContext_EntitlementPlan_displayName(ctx, field) + case "name": + return ec.fieldContext_EntitlementPlan_name(ctx, field) + case "description": + return ec.fieldContext_EntitlementPlan_description(ctx, field) + case "version": + return ec.fieldContext_EntitlementPlan_version(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlan_metadata(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlan_owner(ctx, field) + case "entitlements": + return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) + case "baseFeatures": + return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlan_events(ctx, field) + case "features": + return ec.fieldContext_EntitlementPlan_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlanEdge) + fc.Result = res + return ec.marshalOEntitlementPlanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_EntitlementPlanEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EntitlementPlanEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanCreatePayload_entitlementPlan(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanCreatePayload_entitlementPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntitlementPlan, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.EntitlementPlan) + fc.Result = res + return ec.marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanCreatePayload_entitlementPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlan_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) + case "displayName": + return ec.fieldContext_EntitlementPlan_displayName(ctx, field) + case "name": + return ec.fieldContext_EntitlementPlan_name(ctx, field) + case "description": + return ec.fieldContext_EntitlementPlan_description(ctx, field) + case "version": + return ec.fieldContext_EntitlementPlan_version(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlan_metadata(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlan_owner(ctx, field) + case "entitlements": + return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) + case "baseFeatures": + return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlan_events(ctx, field) + case "features": + return ec.fieldContext_EntitlementPlan_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.EntitlementPlan) + fc.Result = res + return ec.marshalOEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlan_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) + case "displayName": + return ec.fieldContext_EntitlementPlan_displayName(ctx, field) + case "name": + return ec.fieldContext_EntitlementPlan_name(ctx, field) + case "description": + return ec.fieldContext_EntitlementPlan_description(ctx, field) + case "version": + return ec.fieldContext_EntitlementPlan_version(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlan_metadata(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlan_owner(ctx, field) + case "entitlements": + return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) + case "baseFeatures": + return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlan_events(ctx, field) + case "features": + return ec.fieldContext_EntitlementPlan_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Metadata, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_planID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_planID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_featureID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FeatureID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_featureID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_owner(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_plan(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Plan(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.EntitlementPlan) + fc.Result = res + return ec.marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_plan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlan_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) + case "displayName": + return ec.fieldContext_EntitlementPlan_displayName(ctx, field) + case "name": + return ec.fieldContext_EntitlementPlan_name(ctx, field) + case "description": + return ec.fieldContext_EntitlementPlan_description(ctx, field) + case "version": + return ec.fieldContext_EntitlementPlan_version(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlan_metadata(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlan_owner(ctx, field) + case "entitlements": + return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) + case "baseFeatures": + return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlan_events(ctx, field) + case "features": + return ec.fieldContext_EntitlementPlan_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_feature(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Feature(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Feature) + fc.Result = res + return ec.marshalNFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_feature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Feature_id(ctx, field) + case "createdAt": + return ec.fieldContext_Feature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Feature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Feature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Feature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Feature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Feature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Feature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Feature_ownerID(ctx, field) + case "name": + return ec.fieldContext_Feature_name(ctx, field) + case "displayName": + return ec.fieldContext_Feature_displayName(ctx, field) + case "enabled": + return ec.fieldContext_Feature_enabled(ctx, field) + case "description": + return ec.fieldContext_Feature_description(ctx, field) + case "metadata": + return ec.fieldContext_Feature_metadata(ctx, field) + case "owner": + return ec.fieldContext_Feature_owner(ctx, field) + case "plans": + return ec.fieldContext_Feature_plans(ctx, field) + case "events": + return ec.fieldContext_Feature_events(ctx, field) + case "features": + return ec.fieldContext_Feature_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeature_events(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeature_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeature", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureBulkCreatePayload_entitlementPlanFeatures(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanFeatureBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureBulkCreatePayload_entitlementPlanFeatures(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntitlementPlanFeatures, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlanFeature) + fc.Result = res + return ec.marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureBulkCreatePayload_entitlementPlanFeatures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) + case "planID": + return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) + case "featureID": + return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) + case "plan": + return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) + case "feature": + return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlanFeatureEdge) + fc.Result = res + return ec.marshalOEntitlementPlanFeatureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_EntitlementPlanFeatureEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EntitlementPlanFeatureEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureCreatePayload_entitlementPlanFeature(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanFeatureCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureCreatePayload_entitlementPlanFeature(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntitlementPlanFeature, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.EntitlementPlanFeature) + fc.Result = res + return ec.marshalNEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureCreatePayload_entitlementPlanFeature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) + case "planID": + return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) + case "featureID": + return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) + case "plan": + return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) + case "feature": + return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanFeatureDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.EntitlementPlanFeature) + fc.Result = res + return ec.marshalOEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) + case "planID": + return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) + case "featureID": + return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) + case "plan": + return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) + case "feature": + return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNEntitlementPlanFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type EntitlementPlanFeatureHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_metadata(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Metadata, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_planID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_planID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PlanID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_planID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistory_featureID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_featureID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.FeatureID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_featureID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlanFeatureHistoryEdge) + fc.Result = res + return ec.marshalOEntitlementPlanFeatureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_EntitlementPlanFeatureHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EntitlementPlanFeatureHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureHistoryEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.EntitlementPlanFeatureHistory) + fc.Result = res + return ec.marshalOEntitlementPlanFeatureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlanFeatureHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_EntitlementPlanFeatureHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_EntitlementPlanFeatureHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_EntitlementPlanFeatureHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlanFeatureHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlanFeatureHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlanFeatureHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlanFeatureHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlanFeatureHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlanFeatureHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlanFeatureHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlanFeatureHistory_ownerID(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlanFeatureHistory_metadata(ctx, field) + case "planID": + return ec.fieldContext_EntitlementPlanFeatureHistory_planID(ctx, field) + case "featureID": + return ec.fieldContext_EntitlementPlanFeatureHistory_featureID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureSearchResult_entitlementPlanFeatures(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanFeatureSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureSearchResult_entitlementPlanFeatures(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntitlementPlanFeatures, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlanFeature) + fc.Result = res + return ec.marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureSearchResult_entitlementPlanFeatures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) + case "planID": + return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) + case "featureID": + return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) + case "plan": + return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) + case "feature": + return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanFeatureUpdatePayload_entitlementPlanFeature(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanFeatureUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanFeatureUpdatePayload_entitlementPlanFeature(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntitlementPlanFeature, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.EntitlementPlanFeature) + fc.Result = res + return ec.marshalNEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanFeatureUpdatePayload_entitlementPlanFeature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanFeatureUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) + case "planID": + return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) + case "featureID": + return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) + case "plan": + return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) + case "feature": + return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNEntitlementPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type EntitlementPlanHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_displayName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DisplayName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_version(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistory_metadata(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Metadata, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlanHistoryEdge) + fc.Result = res + return ec.marshalOEntitlementPlanHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_EntitlementPlanHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EntitlementPlanHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanHistoryEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.EntitlementPlanHistory) + fc.Result = res + return ec.marshalOEntitlementPlanHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlanHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_EntitlementPlanHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_EntitlementPlanHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_EntitlementPlanHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlanHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlanHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlanHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlanHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlanHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlanHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlanHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlanHistory_ownerID(ctx, field) + case "displayName": + return ec.fieldContext_EntitlementPlanHistory_displayName(ctx, field) + case "name": + return ec.fieldContext_EntitlementPlanHistory_name(ctx, field) + case "description": + return ec.fieldContext_EntitlementPlanHistory_description(ctx, field) + case "version": + return ec.fieldContext_EntitlementPlanHistory_version(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlanHistory_metadata(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanSearchResult_entitlementPlans(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanSearchResult_entitlementPlans(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntitlementPlans, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlan) + fc.Result = res + return ec.marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanSearchResult_entitlementPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlan_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) + case "displayName": + return ec.fieldContext_EntitlementPlan_displayName(ctx, field) + case "name": + return ec.fieldContext_EntitlementPlan_name(ctx, field) + case "description": + return ec.fieldContext_EntitlementPlan_description(ctx, field) + case "version": + return ec.fieldContext_EntitlementPlan_version(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlan_metadata(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlan_owner(ctx, field) + case "entitlements": + return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) + case "baseFeatures": + return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlan_events(ctx, field) + case "features": + return ec.fieldContext_EntitlementPlan_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementPlanUpdatePayload_entitlementPlan(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementPlanUpdatePayload_entitlementPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntitlementPlan, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.EntitlementPlan) + fc.Result = res + return ec.marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementPlanUpdatePayload_entitlementPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementPlanUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlan_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) + case "displayName": + return ec.fieldContext_EntitlementPlan_displayName(ctx, field) + case "name": + return ec.fieldContext_EntitlementPlan_name(ctx, field) + case "description": + return ec.fieldContext_EntitlementPlan_description(ctx, field) + case "version": + return ec.fieldContext_EntitlementPlan_version(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlan_metadata(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlan_owner(ctx, field) + case "entitlements": + return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) + case "baseFeatures": + return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlan_events(ctx, field) + case "features": + return ec.fieldContext_EntitlementPlan_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementSearchResult_entitlements(ctx context.Context, field graphql.CollectedField, obj *EntitlementSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementSearchResult_entitlements(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entitlements, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Entitlement) + fc.Result = res + return ec.marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementSearchResult_entitlements(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entitlement_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entitlement_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entitlement_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entitlement_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entitlement_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Entitlement_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Entitlement_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entitlement_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Entitlement_ownerID(ctx, field) + case "planID": + return ec.fieldContext_Entitlement_planID(ctx, field) + case "organizationID": + return ec.fieldContext_Entitlement_organizationID(ctx, field) + case "externalCustomerID": + return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) + case "externalSubscriptionID": + return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) + case "expires": + return ec.fieldContext_Entitlement_expires(ctx, field) + case "expiresAt": + return ec.fieldContext_Entitlement_expiresAt(ctx, field) + case "cancelled": + return ec.fieldContext_Entitlement_cancelled(ctx, field) + case "owner": + return ec.fieldContext_Entitlement_owner(ctx, field) + case "plan": + return ec.fieldContext_Entitlement_plan(ctx, field) + case "organization": + return ec.fieldContext_Entitlement_organization(ctx, field) + case "events": + return ec.fieldContext_Entitlement_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitlementUpdatePayload_entitlement(ctx context.Context, field graphql.CollectedField, obj *EntitlementUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitlementUpdatePayload_entitlement(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entitlement, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Entitlement) + fc.Result = res + return ec.marshalNEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitlementUpdatePayload_entitlement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitlementUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entitlement_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entitlement_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entitlement_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entitlement_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entitlement_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Entitlement_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Entitlement_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entitlement_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Entitlement_ownerID(ctx, field) + case "planID": + return ec.fieldContext_Entitlement_planID(ctx, field) + case "organizationID": + return ec.fieldContext_Entitlement_organizationID(ctx, field) + case "externalCustomerID": + return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) + case "externalSubscriptionID": + return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) + case "expires": + return ec.fieldContext_Entitlement_expires(ctx, field) + case "expiresAt": + return ec.fieldContext_Entitlement_expiresAt(ctx, field) + case "cancelled": + return ec.fieldContext_Entitlement_cancelled(ctx, field) + case "owner": + return ec.fieldContext_Entitlement_owner(ctx, field) + case "plan": + return ec.fieldContext_Entitlement_plan(ctx, field) + case "organization": + return ec.fieldContext_Entitlement_organization(ctx, field) + case "events": + return ec.fieldContext_Entitlement_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_id(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_name(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_displayName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DisplayName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_description(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_domains(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_domains(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Domains, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_entityTypeID(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_entityTypeID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityTypeID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_entityTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_status(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_owner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_contacts(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_contacts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Contacts(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Contact) + fc.Result = res + return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_documents(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_documents(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Documents(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.DocumentData) + fc.Result = res + return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_documents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_notes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Notes(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Note) + fc.Result = res + return ec.marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Note_id(ctx, field) + case "createdAt": + return ec.fieldContext_Note_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Note_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Note_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Note_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Note_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Note_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Note_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Note_ownerID(ctx, field) + case "text": + return ec.fieldContext_Note_text(ctx, field) + case "owner": + return ec.fieldContext_Note_owner(ctx, field) + case "entity": + return ec.fieldContext_Note_entity(ctx, field) + case "subcontrols": + return ec.fieldContext_Note_subcontrols(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_files(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_files(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Files(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.File) + fc.Result = res + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Entity_entityType(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_entityType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityType(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.EntityType) + fc.Result = res + return ec.marshalOEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Entity_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Entity", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityBulkCreatePayload_entities(ctx context.Context, field graphql.CollectedField, obj *EntityBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityBulkCreatePayload_entities(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entities, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Entity) + fc.Result = res + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityBulkCreatePayload_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntityEdge) + fc.Result = res + return ec.marshalOEntityEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_EntityEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EntityEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityCreatePayload_entity(ctx context.Context, field graphql.CollectedField, obj *EntityCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityCreatePayload_entity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entity, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Entity) + fc.Result = res + return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityCreatePayload_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EntityDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Entity) + fc.Result = res + return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type EntityHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_displayName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DisplayName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_domains(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_domains(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Domains, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_entityTypeID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_entityTypeID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityTypeID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_entityTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntityHistoryEdge) + fc.Result = res + return ec.marshalOEntityHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_EntityHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EntityHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityHistoryEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_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) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistoryConnection_totalCount(_ 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 nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.EntityHistory) + fc.Result = res + return ec.marshalOEntityHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistory(ctx, field.Selections, res) +} + +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) { + switch field.Name { + case "id": + return ec.fieldContext_EntityHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_EntityHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_EntityHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_EntityHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_EntityHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityHistory_name(ctx, field) + case "displayName": + return ec.fieldContext_EntityHistory_displayName(ctx, field) + case "description": + return ec.fieldContext_EntityHistory_description(ctx, field) + case "domains": + return ec.fieldContext_EntityHistory_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_EntityHistory_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_EntityHistory_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityHistoryEdge_cursor(_ 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 nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitySearchResult_entities(ctx context.Context, field graphql.CollectedField, obj *EntitySearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitySearchResult_entities(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entities, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Entity) + fc.Result = res + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitySearchResult_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitySearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityType_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityType_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityType_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityType_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityType_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityType_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityType_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityType_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityType_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityType_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityType_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityType_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityType_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityType_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityType_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityType_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityType_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityType_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityType", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityType_owner(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_owner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityType_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityType", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityType_entities(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_entities(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entities(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Entity) + fc.Result = res + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityType_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityType", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeBulkCreatePayload_entityTypes(ctx context.Context, field graphql.CollectedField, obj *EntityTypeBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeBulkCreatePayload_entityTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityTypes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntityType) + fc.Result = res + return ec.marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeBulkCreatePayload_entityTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntityTypeEdge) + fc.Result = res + return ec.marshalOEntityTypeEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_EntityTypeEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EntityTypeEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeCreatePayload_entityType(ctx context.Context, field graphql.CollectedField, obj *EntityTypeCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeCreatePayload_entityType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.EntityType) + fc.Result = res + return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeCreatePayload_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EntityTypeDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.EntityType) + fc.Result = res + return ec.marshalOEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type EntityTypeHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntityTypeHistoryEdge) + fc.Result = res + return ec.marshalOEntityTypeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryEdge(ctx, field.Selections, res) +} + +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) { + switch field.Name { + case "node": + return ec.fieldContext_EntityTypeHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EntityTypeHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeHistoryEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_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) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_totalCount(_ 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 nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.EntityTypeHistory) + fc.Result = res + return ec.marshalOEntityTypeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistory(ctx, field.Selections, res) +} + +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) { + switch field.Name { + case "id": + return ec.fieldContext_EntityTypeHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_EntityTypeHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_EntityTypeHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_EntityTypeHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_EntityTypeHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityTypeHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityTypeHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityTypeHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityTypeHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityTypeHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityTypeHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityTypeHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityTypeHistory_name(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeHistoryEdge_cursor(_ 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 nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeSearchResult_entityTypes(ctx context.Context, field graphql.CollectedField, obj *EntityTypeSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeSearchResult_entityTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityTypes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntityType) + fc.Result = res + return ec.marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeSearchResult_entityTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeUpdatePayload_entityType(ctx context.Context, field graphql.CollectedField, obj *EntityTypeUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeUpdatePayload_entityType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.EntityType) + fc.Result = res + return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeUpdatePayload_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityUpdatePayload_entity(ctx context.Context, field graphql.CollectedField, obj *EntityUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityUpdatePayload_entity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entity, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Entity) + fc.Result = res + return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityUpdatePayload_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_id(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_eventID(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_eventID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EventID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_eventID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_correlationID(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_correlationID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CorrelationID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_correlationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_eventType(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_eventType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EventType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_eventType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_metadata(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Metadata, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_user(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_user(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.User(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.User) + fc.Result = res + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_group(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_group(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Group(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Group) + fc.Result = res + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_integration(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_integration(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Integration(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Integration) + fc.Result = res + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "oauth2tokens": + return ec.fieldContext_Integration_oauth2tokens(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + case "webhooks": + return ec.fieldContext_Integration_webhooks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_organization(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_organization(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Organization(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_invite(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_invite(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Invite(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Invite) + fc.Result = res + return ec.marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_invite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_feature(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_feature(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Feature(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Feature) + fc.Result = res + return ec.marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_feature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Feature_id(ctx, field) + case "createdAt": + return ec.fieldContext_Feature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Feature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Feature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Feature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Feature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Feature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Feature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Feature_ownerID(ctx, field) + case "name": + return ec.fieldContext_Feature_name(ctx, field) + case "displayName": + return ec.fieldContext_Feature_displayName(ctx, field) + case "enabled": + return ec.fieldContext_Feature_enabled(ctx, field) + case "description": + return ec.fieldContext_Feature_description(ctx, field) + case "metadata": + return ec.fieldContext_Feature_metadata(ctx, field) + case "owner": + return ec.fieldContext_Feature_owner(ctx, field) + case "plans": + return ec.fieldContext_Feature_plans(ctx, field) + case "events": + return ec.fieldContext_Feature_events(ctx, field) + case "features": + return ec.fieldContext_Feature_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_entitlementplan(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_entitlementplan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entitlementplan(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlan) + fc.Result = res + return ec.marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_entitlementplan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlan_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) + case "displayName": + return ec.fieldContext_EntitlementPlan_displayName(ctx, field) + case "name": + return ec.fieldContext_EntitlementPlan_name(ctx, field) + case "description": + return ec.fieldContext_EntitlementPlan_description(ctx, field) + case "version": + return ec.fieldContext_EntitlementPlan_version(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlan_metadata(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlan_owner(ctx, field) + case "entitlements": + return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) + case "baseFeatures": + return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlan_events(ctx, field) + case "features": + return ec.fieldContext_EntitlementPlan_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_entitlementplanfeature(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_entitlementplanfeature(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entitlementplanfeature(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlanFeature) + fc.Result = res + return ec.marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_entitlementplanfeature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) + case "planID": + return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) + case "featureID": + return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) + case "plan": + return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) + case "feature": + return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_personalAccessToken(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_personalAccessToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PersonalAccessToken(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.PersonalAccessToken) + fc.Result = res + return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_personalAccessToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_oauth2token(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_oauth2token(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Oauth2token(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.OhAuthTooToken) + fc.Result = res + return ec.marshalOOhAuthTooToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_oauth2token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OhAuthTooToken_id(ctx, field) + case "tags": + return ec.fieldContext_OhAuthTooToken_tags(ctx, field) + case "clientID": + return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) + case "scopes": + return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) + case "nonce": + return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) + case "claimsUserID": + return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) + case "claimsUsername": + return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) + case "claimsEmail": + return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) + case "claimsEmailVerified": + return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) + case "claimsGroups": + return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) + case "claimsPreferredUsername": + return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) + case "connectorID": + return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) + case "connectorData": + return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) + case "lastUsed": + return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) + case "integration": + return ec.fieldContext_OhAuthTooToken_integration(ctx, field) + case "events": + return ec.fieldContext_OhAuthTooToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_hush(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_hush(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Hush(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Hush) + fc.Result = res + return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_hush(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_orgmembership(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_orgmembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Orgmembership(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.OrgMembership) + fc.Result = res + return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_orgmembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OrgMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) + case "events": + return ec.fieldContext_OrgMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_groupmembership(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_groupmembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Groupmembership(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.GroupMembership) + fc.Result = res + return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_groupmembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_entitlement(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_entitlement(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entitlement(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Entitlement) + fc.Result = res + return ec.marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_entitlement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entitlement_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entitlement_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entitlement_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entitlement_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entitlement_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Entitlement_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Entitlement_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entitlement_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Entitlement_ownerID(ctx, field) + case "planID": + return ec.fieldContext_Entitlement_planID(ctx, field) + case "organizationID": + return ec.fieldContext_Entitlement_organizationID(ctx, field) + case "externalCustomerID": + return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) + case "externalSubscriptionID": + return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) + case "expires": + return ec.fieldContext_Entitlement_expires(ctx, field) + case "expiresAt": + return ec.fieldContext_Entitlement_expiresAt(ctx, field) + case "cancelled": + return ec.fieldContext_Entitlement_cancelled(ctx, field) + case "owner": + return ec.fieldContext_Entitlement_owner(ctx, field) + case "plan": + return ec.fieldContext_Entitlement_plan(ctx, field) + case "organization": + return ec.fieldContext_Entitlement_organization(ctx, field) + case "events": + return ec.fieldContext_Entitlement_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_webhook(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_webhook(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Webhook(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Webhook) + fc.Result = res + return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_webhook(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Webhook_id(ctx, field) + case "createdAt": + return ec.fieldContext_Webhook_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Webhook_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Webhook_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Webhook_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Webhook_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Webhook_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Webhook_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Webhook_ownerID(ctx, field) + case "name": + return ec.fieldContext_Webhook_name(ctx, field) + case "description": + return ec.fieldContext_Webhook_description(ctx, field) + case "destinationURL": + return ec.fieldContext_Webhook_destinationURL(ctx, field) + case "enabled": + return ec.fieldContext_Webhook_enabled(ctx, field) + case "failures": + return ec.fieldContext_Webhook_failures(ctx, field) + case "lastError": + return ec.fieldContext_Webhook_lastError(ctx, field) + case "lastResponse": + return ec.fieldContext_Webhook_lastResponse(ctx, field) + case "owner": + return ec.fieldContext_Webhook_owner(ctx, field) + case "events": + return ec.fieldContext_Webhook_events(ctx, field) + case "integrations": + return ec.fieldContext_Webhook_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_subscriber(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_subscriber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Subscriber(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Subscriber) + fc.Result = res + return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_file(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_file(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.File(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.File) + fc.Result = res + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventBulkCreatePayload_events(ctx context.Context, field graphql.CollectedField, obj *EventBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventBulkCreatePayload_events(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventBulkCreatePayload_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EventConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EventEdge) + fc.Result = res + return ec.marshalOEventEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_EventEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EventEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EventConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EventConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventCreatePayload_event(ctx context.Context, field graphql.CollectedField, obj *EventCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventCreatePayload_event(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Event, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Event) + fc.Result = res + return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventCreatePayload_event(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EventDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EventEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EventEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNEventHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type EventHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_eventID(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_eventID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EventID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_eventID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_correlationID(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_correlationID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CorrelationID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_correlationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_eventType(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_eventType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EventType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_eventType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_metadata(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Metadata, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EventHistoryEdge) + fc.Result = res + return ec.marshalOEventHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_EventHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EventHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventHistoryEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.EventHistory) + fc.Result = res + return ec.marshalOEventHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EventHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_EventHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_EventHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_EventHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_EventHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EventHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EventHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EventHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_EventHistory_tags(ctx, field) + case "eventID": + return ec.fieldContext_EventHistory_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_EventHistory_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_EventHistory_eventType(ctx, field) + case "metadata": + return ec.fieldContext_EventHistory_metadata(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventSearchResult_events(ctx context.Context, field graphql.CollectedField, obj *EventSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventSearchResult_events(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventSearchResult_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventUpdatePayload_event(ctx context.Context, field graphql.CollectedField, obj *EventUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventUpdatePayload_event(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Event, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Event) + fc.Result = res + return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventUpdatePayload_event(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_id(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_name(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_displayName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DisplayName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_enabled(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_enabled(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Enabled, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_description(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_metadata(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Metadata, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_owner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_plans(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_plans(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Plans(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlan) + fc.Result = res + return ec.marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_plans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlan_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) + case "displayName": + return ec.fieldContext_EntitlementPlan_displayName(ctx, field) + case "name": + return ec.fieldContext_EntitlementPlan_name(ctx, field) + case "description": + return ec.fieldContext_EntitlementPlan_description(ctx, field) + case "version": + return ec.fieldContext_EntitlementPlan_version(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlan_metadata(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlan_owner(ctx, field) + case "entitlements": + return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) + case "baseFeatures": + return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlan_events(ctx, field) + case "features": + return ec.fieldContext_EntitlementPlan_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_events(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_events(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Feature_features(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Feature_features(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Features(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntitlementPlanFeature) + fc.Result = res + return ec.marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Feature_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Feature", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) + case "planID": + return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) + case "featureID": + return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) + case "plan": + return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) + case "feature": + return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureBulkCreatePayload_features(ctx context.Context, field graphql.CollectedField, obj *FeatureBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureBulkCreatePayload_features(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Features, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Feature) + fc.Result = res + return ec.marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureBulkCreatePayload_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Feature_id(ctx, field) + case "createdAt": + return ec.fieldContext_Feature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Feature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Feature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Feature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Feature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Feature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Feature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Feature_ownerID(ctx, field) + case "name": + return ec.fieldContext_Feature_name(ctx, field) + case "displayName": + return ec.fieldContext_Feature_displayName(ctx, field) + case "enabled": + return ec.fieldContext_Feature_enabled(ctx, field) + case "description": + return ec.fieldContext_Feature_description(ctx, field) + case "metadata": + return ec.fieldContext_Feature_metadata(ctx, field) + case "owner": + return ec.fieldContext_Feature_owner(ctx, field) + case "plans": + return ec.fieldContext_Feature_plans(ctx, field) + case "events": + return ec.fieldContext_Feature_events(ctx, field) + case "features": + return ec.fieldContext_Feature_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.FeatureEdge) + fc.Result = res + return ec.marshalOFeatureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_FeatureEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_FeatureEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FeatureEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureCreatePayload_feature(ctx context.Context, field graphql.CollectedField, obj *FeatureCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureCreatePayload_feature(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Feature, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Feature) + fc.Result = res + return ec.marshalNFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureCreatePayload_feature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Feature_id(ctx, field) + case "createdAt": + return ec.fieldContext_Feature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Feature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Feature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Feature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Feature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Feature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Feature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Feature_ownerID(ctx, field) + case "name": + return ec.fieldContext_Feature_name(ctx, field) + case "displayName": + return ec.fieldContext_Feature_displayName(ctx, field) + case "enabled": + return ec.fieldContext_Feature_enabled(ctx, field) + case "description": + return ec.fieldContext_Feature_description(ctx, field) + case "metadata": + return ec.fieldContext_Feature_metadata(ctx, field) + case "owner": + return ec.fieldContext_Feature_owner(ctx, field) + case "plans": + return ec.fieldContext_Feature_plans(ctx, field) + case "events": + return ec.fieldContext_Feature_events(ctx, field) + case "features": + return ec.fieldContext_Feature_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *FeatureDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Feature) + fc.Result = res + return ec.marshalOFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Feature_id(ctx, field) + case "createdAt": + return ec.fieldContext_Feature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Feature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Feature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Feature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Feature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Feature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Feature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Feature_ownerID(ctx, field) + case "name": + return ec.fieldContext_Feature_name(ctx, field) + case "displayName": + return ec.fieldContext_Feature_displayName(ctx, field) + case "enabled": + return ec.fieldContext_Feature_enabled(ctx, field) + case "description": + return ec.fieldContext_Feature_description(ctx, field) + case "metadata": + return ec.fieldContext_Feature_metadata(ctx, field) + case "owner": + return ec.fieldContext_Feature_owner(ctx, field) + case "plans": + return ec.fieldContext_Feature_plans(ctx, field) + case "events": + return ec.fieldContext_Feature_events(ctx, field) + case "features": + return ec.fieldContext_Feature_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FeatureHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_displayName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DisplayName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_enabled(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_enabled(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Enabled, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistory_metadata(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Metadata, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.FeatureHistoryEdge) + fc.Result = res + return ec.marshalOFeatureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_FeatureHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_FeatureHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FeatureHistoryEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.FeatureHistory) + fc.Result = res + return ec.marshalOFeatureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_FeatureHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_FeatureHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_FeatureHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_FeatureHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_FeatureHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_FeatureHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_FeatureHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_FeatureHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_FeatureHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_FeatureHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_FeatureHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_FeatureHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_FeatureHistory_name(ctx, field) + case "displayName": + return ec.fieldContext_FeatureHistory_displayName(ctx, field) + case "enabled": + return ec.fieldContext_FeatureHistory_enabled(ctx, field) + case "description": + return ec.fieldContext_FeatureHistory_description(ctx, field) + case "metadata": + return ec.fieldContext_FeatureHistory_metadata(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FeatureHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureSearchResult_features(ctx context.Context, field graphql.CollectedField, obj *FeatureSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureSearchResult_features(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Features, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Feature) + fc.Result = res + return ec.marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureSearchResult_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Feature_id(ctx, field) + case "createdAt": + return ec.fieldContext_Feature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Feature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Feature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Feature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Feature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Feature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Feature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Feature_ownerID(ctx, field) + case "name": + return ec.fieldContext_Feature_name(ctx, field) + case "displayName": + return ec.fieldContext_Feature_displayName(ctx, field) + case "enabled": + return ec.fieldContext_Feature_enabled(ctx, field) + case "description": + return ec.fieldContext_Feature_description(ctx, field) + case "metadata": + return ec.fieldContext_Feature_metadata(ctx, field) + case "owner": + return ec.fieldContext_Feature_owner(ctx, field) + case "plans": + return ec.fieldContext_Feature_plans(ctx, field) + case "events": + return ec.fieldContext_Feature_events(ctx, field) + case "features": + return ec.fieldContext_Feature_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FeatureUpdatePayload_feature(ctx context.Context, field graphql.CollectedField, obj *FeatureUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FeatureUpdatePayload_feature(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Feature, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Feature) + fc.Result = res + return ec.marshalNFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FeatureUpdatePayload_feature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FeatureUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Feature_id(ctx, field) + case "createdAt": + return ec.fieldContext_Feature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Feature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Feature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Feature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Feature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Feature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Feature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Feature_ownerID(ctx, field) + case "name": + return ec.fieldContext_Feature_name(ctx, field) + case "displayName": + return ec.fieldContext_Feature_displayName(ctx, field) + case "enabled": + return ec.fieldContext_Feature_enabled(ctx, field) + case "description": + return ec.fieldContext_Feature_description(ctx, field) + case "metadata": + return ec.fieldContext_Feature_metadata(ctx, field) + case "owner": + return ec.fieldContext_Feature_owner(ctx, field) + case "plans": + return ec.fieldContext_Feature_plans(ctx, field) + case "events": + return ec.fieldContext_Feature_events(ctx, field) + case "features": + return ec.fieldContext_Feature_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _File_id(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_tags(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_providedFileName(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_providedFileName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProvidedFileName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_providedFileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_providedFileExtension(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_providedFileExtension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProvidedFileExtension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_providedFileExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_providedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_providedFileSize(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProvidedFileSize, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(int64) + fc.Result = res + return ec.marshalOInt2int64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_providedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_persistedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_persistedFileSize(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PersistedFileSize, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(int64) + fc.Result = res + return ec.marshalOInt2int64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_persistedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_detectedMimeType(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_detectedMimeType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DetectedMimeType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_detectedMimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_md5Hash(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_md5Hash(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Md5Hash, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_md5Hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_detectedContentType(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_detectedContentType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DetectedContentType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_detectedContentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_storeKey(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_storeKey(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StoreKey, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_storeKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_categoryType(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_categoryType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CategoryType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_categoryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_uri(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_uri(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.URI, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_uri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_storageScheme(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_storageScheme(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StorageScheme, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_storageScheme(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_storageVolume(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_storageVolume(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StorageVolume, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_storageVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_storagePath(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_storagePath(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StoragePath, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_storagePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _File_user(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_user(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.User(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.User) + fc.Result = res + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _File_organization(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_organization(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Organization(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _File_group(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_group(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Group(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Group) + fc.Result = res + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + return fc, nil } -""" -Ordering options for User connections -""" -input UserOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Users. - """ - field: UserOrderField! + +func (ec *executionContext) _File_contact(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_contact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Contact(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Contact) + fc.Result = res + return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) } -""" -Properties by which User connections can be ordered. -""" -enum UserOrderField { - first_name - last_name - display_name + +func (ec *executionContext) fieldContext_File_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + }, + } + return fc, nil } -""" -UserRole is enum for the field role -""" -enum UserRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER + +func (ec *executionContext) _File_entity(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_entity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entity(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Entity) + fc.Result = res + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) } -type UserSetting implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - userID: ID - """ - user account is locked if unconfirmed or explicitly locked - """ - locked: Boolean! - """ - The time notifications regarding the user were silenced - """ - silencedAt: Time - """ - The time the user was suspended - """ - suspendedAt: Time - """ - status of the user account - """ - status: UserSettingUserStatus! - """ - whether the user has confirmed their email address - """ - emailConfirmed: Boolean! - """ - specifies a user may complete authentication by verifying a WebAuthn capable device - """ - isWebauthnAllowed: Boolean - """ - whether the user has two factor authentication enabled - """ - isTfaEnabled: Boolean - user: User - """ - organization to load on user login - """ - defaultOrg: Organization - files: [File!] + +func (ec *executionContext) fieldContext_File_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil } -""" -A connection to a list of items. -""" -type UserSettingConnection { - """ - A list of edges. - """ - edges: [UserSettingEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! + +func (ec *executionContext) _File_usersetting(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_usersetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Usersetting(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.UserSetting) + fc.Result = res + return ec.marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx, field.Selections, res) } -""" -An edge in a connection. -""" -type UserSettingEdge { - """ - The item at the end of the edge. - """ - node: UserSetting - """ - A cursor for use in pagination. - """ - cursor: Cursor! + +func (ec *executionContext) fieldContext_File_usersetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + }, + } + return fc, nil } -type UserSettingHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: UserSettingHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - userID: String - """ - user account is locked if unconfirmed or explicitly locked - """ - locked: Boolean! - """ - The time notifications regarding the user were silenced - """ - silencedAt: Time - """ - The time the user was suspended - """ - suspendedAt: Time - """ - status of the user account - """ - status: UserSettingHistoryUserStatus! - """ - whether the user has confirmed their email address - """ - emailConfirmed: Boolean! - """ - specifies a user may complete authentication by verifying a WebAuthn capable device - """ - isWebauthnAllowed: Boolean - """ - whether the user has two factor authentication enabled - """ - isTfaEnabled: Boolean + +func (ec *executionContext) _File_organizationsetting(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_organizationsetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Organizationsetting(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.OrganizationSetting) + fc.Result = res + return ec.marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx, field.Selections, res) } -""" -A connection to a list of items. -""" -type UserSettingHistoryConnection { - """ - A list of edges. - """ - edges: [UserSettingHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! + +func (ec *executionContext) fieldContext_File_organizationsetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OrganizationSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) + }, + } + return fc, nil } -""" -An edge in a connection. -""" -type UserSettingHistoryEdge { - """ - The item at the end of the edge. - """ - node: UserSettingHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! + +func (ec *executionContext) _File_template(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_template(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Template(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Template) + fc.Result = res + return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) } -""" -UserSettingHistoryOpType is enum for the field operation -""" -enum UserSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE + +func (ec *executionContext) fieldContext_File_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + }, + } + return fc, nil } -""" -UserSettingHistoryUserStatus is enum for the field status -""" -enum UserSettingHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { - ACTIVE - INACTIVE - DEACTIVATED - SUSPENDED - ONBOARDING + +func (ec *executionContext) _File_documentdata(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_documentdata(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Documentdata(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.DocumentData) + fc.Result = res + return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) } -""" -UserSettingHistoryWhereInput is used for filtering UserSettingHistory objects. -Input was generated by ent. -""" -input UserSettingHistoryWhereInput { - not: UserSettingHistoryWhereInput - and: [UserSettingHistoryWhereInput!] - or: [UserSettingHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: UserSettingHistoryOpType - operationNEQ: UserSettingHistoryOpType - operationIn: [UserSettingHistoryOpType!] - operationNotIn: [UserSettingHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - user_id field predicates - """ - userID: String - userIDNEQ: String - userIDIn: [String!] - userIDNotIn: [String!] - userIDGT: String - userIDGTE: String - userIDLT: String - userIDLTE: String - userIDContains: String - userIDHasPrefix: String - userIDHasSuffix: String - userIDIsNil: Boolean - userIDNotNil: Boolean - userIDEqualFold: String - userIDContainsFold: String - """ - locked field predicates - """ - locked: Boolean - lockedNEQ: Boolean - """ - silenced_at field predicates - """ - silencedAt: Time - silencedAtNEQ: Time - silencedAtIn: [Time!] - silencedAtNotIn: [Time!] - silencedAtGT: Time - silencedAtGTE: Time - silencedAtLT: Time - silencedAtLTE: Time - silencedAtIsNil: Boolean - silencedAtNotNil: Boolean - """ - suspended_at field predicates - """ - suspendedAt: Time - suspendedAtNEQ: Time - suspendedAtIn: [Time!] - suspendedAtNotIn: [Time!] - suspendedAtGT: Time - suspendedAtGTE: Time - suspendedAtLT: Time - suspendedAtLTE: Time - suspendedAtIsNil: Boolean - suspendedAtNotNil: Boolean - """ - status field predicates - """ - status: UserSettingHistoryUserStatus - statusNEQ: UserSettingHistoryUserStatus - statusIn: [UserSettingHistoryUserStatus!] - statusNotIn: [UserSettingHistoryUserStatus!] - """ - email_confirmed field predicates - """ - emailConfirmed: Boolean - emailConfirmedNEQ: Boolean - """ - is_webauthn_allowed field predicates - """ - isWebauthnAllowed: Boolean - isWebauthnAllowedNEQ: Boolean - isWebauthnAllowedIsNil: Boolean - isWebauthnAllowedNotNil: Boolean - """ - is_tfa_enabled field predicates - """ - isTfaEnabled: Boolean - isTfaEnabledNEQ: Boolean - isTfaEnabledIsNil: Boolean - isTfaEnabledNotNil: Boolean + +func (ec *executionContext) fieldContext_File_documentdata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _File_events(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_events(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FileConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.FileConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.FileEdge) + fc.Result = res + return ec.marshalOFileEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileEdge(ctx, field.Selections, res) } -""" -UserSettingUserStatus is enum for the field status -""" -enum UserSettingUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { - ACTIVE - INACTIVE - DEACTIVATED - SUSPENDED - ONBOARDING + +func (ec *executionContext) fieldContext_FileConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_FileEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_FileEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FileEdge", field.Name) + }, + } + return fc, nil } -""" -UserSettingWhereInput is used for filtering UserSetting objects. -Input was generated by ent. -""" -input UserSettingWhereInput { - not: UserSettingWhereInput - and: [UserSettingWhereInput!] - or: [UserSettingWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - user_id field predicates - """ - userID: ID - userIDNEQ: ID - userIDIn: [ID!] - userIDNotIn: [ID!] - userIDGT: ID - userIDGTE: ID - userIDLT: ID - userIDLTE: ID - userIDContains: ID - userIDHasPrefix: ID - userIDHasSuffix: ID - userIDIsNil: Boolean - userIDNotNil: Boolean - userIDEqualFold: ID - userIDContainsFold: ID - """ - locked field predicates - """ - locked: Boolean - lockedNEQ: Boolean - """ - silenced_at field predicates - """ - silencedAt: Time - silencedAtNEQ: Time - silencedAtIn: [Time!] - silencedAtNotIn: [Time!] - silencedAtGT: Time - silencedAtGTE: Time - silencedAtLT: Time - silencedAtLTE: Time - silencedAtIsNil: Boolean - silencedAtNotNil: Boolean - """ - suspended_at field predicates - """ - suspendedAt: Time - suspendedAtNEQ: Time - suspendedAtIn: [Time!] - suspendedAtNotIn: [Time!] - suspendedAtGT: Time - suspendedAtGTE: Time - suspendedAtLT: Time - suspendedAtLTE: Time - suspendedAtIsNil: Boolean - suspendedAtNotNil: Boolean - """ - status field predicates - """ - status: UserSettingUserStatus - statusNEQ: UserSettingUserStatus - statusIn: [UserSettingUserStatus!] - statusNotIn: [UserSettingUserStatus!] - """ - email_confirmed field predicates - """ - emailConfirmed: Boolean - emailConfirmedNEQ: Boolean - """ - is_webauthn_allowed field predicates - """ - isWebauthnAllowed: Boolean - isWebauthnAllowedNEQ: Boolean - isWebauthnAllowedIsNil: Boolean - isWebauthnAllowedNotNil: Boolean - """ - is_tfa_enabled field predicates - """ - isTfaEnabled: Boolean - isTfaEnabledNEQ: Boolean - isTfaEnabledIsNil: Boolean - isTfaEnabledNotNil: Boolean - """ - user edge predicates - """ - hasUser: Boolean - hasUserWith: [UserWhereInput!] - """ - default_org edge predicates - """ - hasDefaultOrg: Boolean - hasDefaultOrgWith: [OrganizationWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] + +func (ec *executionContext) _FileConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.FileConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -""" -UserWhereInput is used for filtering User objects. -Input was generated by ent. -""" -input UserWhereInput { - not: UserWhereInput - and: [UserWhereInput!] - or: [UserWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - email field predicates - """ - email: String - emailNEQ: String - emailIn: [String!] - emailNotIn: [String!] - emailGT: String - emailGTE: String - emailLT: String - emailLTE: String - emailContains: String - emailHasPrefix: String - emailHasSuffix: String - emailEqualFold: String - emailContainsFold: String - """ - first_name field predicates - """ - firstName: String - firstNameNEQ: String - firstNameIn: [String!] - firstNameNotIn: [String!] - firstNameGT: String - firstNameGTE: String - firstNameLT: String - firstNameLTE: String - firstNameContains: String - firstNameHasPrefix: String - firstNameHasSuffix: String - firstNameIsNil: Boolean - firstNameNotNil: Boolean - firstNameEqualFold: String - firstNameContainsFold: String - """ - last_name field predicates - """ - lastName: String - lastNameNEQ: String - lastNameIn: [String!] - lastNameNotIn: [String!] - lastNameGT: String - lastNameGTE: String - lastNameLT: String - lastNameLTE: String - lastNameContains: String - lastNameHasPrefix: String - lastNameHasSuffix: String - lastNameIsNil: Boolean - lastNameNotNil: Boolean - lastNameEqualFold: String - lastNameContainsFold: String - """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String - """ - avatar_remote_url field predicates - """ - avatarRemoteURL: String - avatarRemoteURLNEQ: String - avatarRemoteURLIn: [String!] - avatarRemoteURLNotIn: [String!] - avatarRemoteURLGT: String - avatarRemoteURLGTE: String - avatarRemoteURLLT: String - avatarRemoteURLLTE: String - avatarRemoteURLContains: String - avatarRemoteURLHasPrefix: String - avatarRemoteURLHasSuffix: String - avatarRemoteURLIsNil: Boolean - avatarRemoteURLNotNil: Boolean - avatarRemoteURLEqualFold: String - avatarRemoteURLContainsFold: String - """ - avatar_local_file field predicates - """ - avatarLocalFile: String - avatarLocalFileNEQ: String - avatarLocalFileIn: [String!] - avatarLocalFileNotIn: [String!] - avatarLocalFileGT: String - avatarLocalFileGTE: String - avatarLocalFileLT: String - avatarLocalFileLTE: String - avatarLocalFileContains: String - avatarLocalFileHasPrefix: String - avatarLocalFileHasSuffix: String - avatarLocalFileIsNil: Boolean - avatarLocalFileNotNil: Boolean - avatarLocalFileEqualFold: String - avatarLocalFileContainsFold: String - """ - avatar_local_file_id field predicates - """ - avatarLocalFileID: ID - avatarLocalFileIDNEQ: ID - avatarLocalFileIDIn: [ID!] - avatarLocalFileIDNotIn: [ID!] - avatarLocalFileIDGT: ID - avatarLocalFileIDGTE: ID - avatarLocalFileIDLT: ID - avatarLocalFileIDLTE: ID - avatarLocalFileIDContains: ID - avatarLocalFileIDHasPrefix: ID - avatarLocalFileIDHasSuffix: ID - avatarLocalFileIDIsNil: Boolean - avatarLocalFileIDNotNil: Boolean - avatarLocalFileIDEqualFold: ID - avatarLocalFileIDContainsFold: ID - """ - avatar_updated_at field predicates - """ - avatarUpdatedAt: Time - avatarUpdatedAtNEQ: Time - avatarUpdatedAtIn: [Time!] - avatarUpdatedAtNotIn: [Time!] - avatarUpdatedAtGT: Time - avatarUpdatedAtGTE: Time - avatarUpdatedAtLT: Time - avatarUpdatedAtLTE: Time - avatarUpdatedAtIsNil: Boolean - avatarUpdatedAtNotNil: Boolean - """ - last_seen field predicates - """ - lastSeen: Time - lastSeenNEQ: Time - lastSeenIn: [Time!] - lastSeenNotIn: [Time!] - lastSeenGT: Time - lastSeenGTE: Time - lastSeenLT: Time - lastSeenLTE: Time - lastSeenIsNil: Boolean - lastSeenNotNil: Boolean - """ - sub field predicates - """ - sub: String - subNEQ: String - subIn: [String!] - subNotIn: [String!] - subGT: String - subGTE: String - subLT: String - subLTE: String - subContains: String - subHasPrefix: String - subHasSuffix: String - subIsNil: Boolean - subNotNil: Boolean - subEqualFold: String - subContainsFold: String - """ - auth_provider field predicates - """ - authProvider: UserAuthProvider - authProviderNEQ: UserAuthProvider - authProviderIn: [UserAuthProvider!] - authProviderNotIn: [UserAuthProvider!] - """ - role field predicates - """ - role: UserRole - roleNEQ: UserRole - roleIn: [UserRole!] - roleNotIn: [UserRole!] - roleIsNil: Boolean - roleNotNil: Boolean - """ - personal_access_tokens edge predicates - """ - hasPersonalAccessTokens: Boolean - hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] - """ - tfa_settings edge predicates - """ - hasTfaSettings: Boolean - hasTfaSettingsWith: [TFASettingWhereInput!] - """ - setting edge predicates - """ - hasSetting: Boolean - hasSettingWith: [UserSettingWhereInput!] - """ - groups edge predicates - """ - hasGroups: Boolean - hasGroupsWith: [GroupWhereInput!] - """ - organizations edge predicates - """ - hasOrganizations: Boolean - hasOrganizationsWith: [OrganizationWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] - """ - file edge predicates - """ - hasFile: Boolean - hasFileWith: [FileWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] - """ - group_memberships edge predicates - """ - hasGroupMemberships: Boolean - hasGroupMembershipsWith: [GroupMembershipWhereInput!] - """ - org_memberships edge predicates - """ - hasOrgMemberships: Boolean - hasOrgMembershipsWith: [OrgMembershipWhereInput!] + +func (ec *executionContext) fieldContext_FileConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil } -type Webhook implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: ID - """ - the name of the webhook - """ - name: String! - """ - a description of the webhook - """ - description: String - """ - the url to send the webhook to - """ - destinationURL: String! - """ - indicates if the webhook is active and enabled - """ - enabled: Boolean! - """ - the number of failures - """ - failures: Int - """ - the last error message - """ - lastError: String - """ - the last response - """ - lastResponse: String - owner: Organization - events: [Event!] - integrations: [Integration!] + +func (ec *executionContext) _FileConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.FileConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) } -""" -A connection to a list of items. -""" -type WebhookConnection { - """ - A list of edges. - """ - edges: [WebhookEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! + +func (ec *executionContext) fieldContext_FileConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil } -""" -An edge in a connection. -""" -type WebhookEdge { - """ - The item at the end of the edge. - """ - node: Webhook - """ - A cursor for use in pagination. - """ - cursor: Cursor! + +func (ec *executionContext) _FileDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *FileDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) } -type WebhookHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: WebhookHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: String - """ - the name of the webhook - """ - name: String! - """ - a description of the webhook - """ - description: String - """ - the url to send the webhook to - """ - destinationURL: String! - """ - indicates if the webhook is active and enabled - """ - enabled: Boolean! - """ - the number of failures - """ - failures: Int - """ - the last error message - """ - lastError: String - """ - the last response - """ - lastResponse: String + +func (ec *executionContext) fieldContext_FileDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FileEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.FileEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.File) + fc.Result = res + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FileEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FileEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.FileEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FileEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FileHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FileHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -""" -A connection to a list of items. -""" -type WebhookHistoryConnection { - """ - A list of edges. - """ - edges: [WebhookHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! + +func (ec *executionContext) _FileHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -""" -An edge in a connection. -""" -type WebhookHistoryEdge { - """ - The item at the end of the edge. - """ - node: WebhookHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! + +func (ec *executionContext) fieldContext_FileHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -""" -WebhookHistoryOpType is enum for the field operation -""" -enum WebhookHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE + +func (ec *executionContext) _FileHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Ordering options for WebhookHistory connections -""" -input WebhookHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order WebhookHistories. - """ - field: WebhookHistoryOrderField! + +func (ec *executionContext) fieldContext_FileHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Properties by which WebhookHistory connections can be ordered. -""" -enum WebhookHistoryOrderField { - name - url + +func (ec *executionContext) _FileHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -""" -WebhookHistoryWhereInput is used for filtering WebhookHistory objects. -Input was generated by ent. -""" -input WebhookHistoryWhereInput { - not: WebhookHistoryWhereInput - and: [WebhookHistoryWhereInput!] - or: [WebhookHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: WebhookHistoryOpType - operationNEQ: WebhookHistoryOpType - operationIn: [WebhookHistoryOpType!] - operationNotIn: [WebhookHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - destination_url field predicates - """ - destinationURL: String - destinationURLNEQ: String - destinationURLIn: [String!] - destinationURLNotIn: [String!] - destinationURLGT: String - destinationURLGTE: String - destinationURLLT: String - destinationURLLTE: String - destinationURLContains: String - destinationURLHasPrefix: String - destinationURLHasSuffix: String - destinationURLEqualFold: String - destinationURLContainsFold: String - """ - enabled field predicates - """ - enabled: Boolean - enabledNEQ: Boolean - """ - failures field predicates - """ - failures: Int - failuresNEQ: Int - failuresIn: [Int!] - failuresNotIn: [Int!] - failuresGT: Int - failuresGTE: Int - failuresLT: Int - failuresLTE: Int - failuresIsNil: Boolean - failuresNotNil: Boolean - """ - last_error field predicates - """ - lastError: String - lastErrorNEQ: String - lastErrorIn: [String!] - lastErrorNotIn: [String!] - lastErrorGT: String - lastErrorGTE: String - lastErrorLT: String - lastErrorLTE: String - lastErrorContains: String - lastErrorHasPrefix: String - lastErrorHasSuffix: String - lastErrorIsNil: Boolean - lastErrorNotNil: Boolean - lastErrorEqualFold: String - lastErrorContainsFold: String - """ - last_response field predicates - """ - lastResponse: String - lastResponseNEQ: String - lastResponseIn: [String!] - lastResponseNotIn: [String!] - lastResponseGT: String - lastResponseGTE: String - lastResponseLT: String - lastResponseLTE: String - lastResponseContains: String - lastResponseHasPrefix: String - lastResponseHasSuffix: String - lastResponseIsNil: Boolean - lastResponseNotNil: Boolean - lastResponseEqualFold: String - lastResponseContainsFold: String + +func (ec *executionContext) fieldContext_FileHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type FileHistoryOpType does not have child fields") + }, + } + return fc, nil } -""" -Ordering options for Webhook connections -""" -input WebhookOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Webhooks. - """ - field: WebhookOrderField! + +func (ec *executionContext) _FileHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -""" -Properties by which Webhook connections can be ordered. -""" -enum WebhookOrderField { - name - url + +func (ec *executionContext) fieldContext_FileHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -""" -WebhookWhereInput is used for filtering Webhook objects. -Input was generated by ent. -""" -input WebhookWhereInput { - not: WebhookWhereInput - and: [WebhookWhereInput!] - or: [WebhookWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - destination_url field predicates - """ - destinationURL: String - destinationURLNEQ: String - destinationURLIn: [String!] - destinationURLNotIn: [String!] - destinationURLGT: String - destinationURLGTE: String - destinationURLLT: String - destinationURLLTE: String - destinationURLContains: String - destinationURLHasPrefix: String - destinationURLHasSuffix: String - destinationURLEqualFold: String - destinationURLContainsFold: String - """ - enabled field predicates - """ - enabled: Boolean - enabledNEQ: Boolean - """ - failures field predicates - """ - failures: Int - failuresNEQ: Int - failuresIn: [Int!] - failuresNotIn: [Int!] - failuresGT: Int - failuresGTE: Int - failuresLT: Int - failuresLTE: Int - failuresIsNil: Boolean - failuresNotNil: Boolean - """ - last_error field predicates - """ - lastError: String - lastErrorNEQ: String - lastErrorIn: [String!] - lastErrorNotIn: [String!] - lastErrorGT: String - lastErrorGTE: String - lastErrorLT: String - lastErrorLTE: String - lastErrorContains: String - lastErrorHasPrefix: String - lastErrorHasSuffix: String - lastErrorIsNil: Boolean - lastErrorNotNil: Boolean - lastErrorEqualFold: String - lastErrorContainsFold: String - """ - last_response field predicates - """ - lastResponse: String - lastResponseNEQ: String - lastResponseIn: [String!] - lastResponseNotIn: [String!] - lastResponseGT: String - lastResponseGTE: String - lastResponseLT: String - lastResponseLTE: String - lastResponseContains: String - lastResponseHasPrefix: String - lastResponseHasSuffix: String - lastResponseIsNil: Boolean - lastResponseNotNil: Boolean - lastResponseEqualFold: String - lastResponseContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] - """ - integrations edge predicates - """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] + +func (ec *executionContext) _FileHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -`, BuiltIn: false}, - {Name: "../../schema/entitlement.graphql", Input: `extend type Query { - """ - Look up entitlement by ID - """ - entitlement( - """ - ID of the entitlement - """ - id: ID! - ): Entitlement! + +func (ec *executionContext) fieldContext_FileHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new entitlement - """ - createEntitlement( - """ - values of the entitlement - """ - input: CreateEntitlementInput! - ): EntitlementCreatePayload! - """ - Create multiple new entitlements - """ - createBulkEntitlement( - """ - values of the entitlement - """ - input: [CreateEntitlementInput!] - ): EntitlementBulkCreatePayload! - """ - Create multiple new entitlements via file upload - """ - createBulkCSVEntitlement( - """ - csv file containing values of the entitlement - """ - input: Upload! - ): EntitlementBulkCreatePayload! - """ - Update an existing entitlement - """ - updateEntitlement( - """ - ID of the entitlement - """ - id: ID! - """ - New values for the entitlement - """ - input: UpdateEntitlementInput! - ): EntitlementUpdatePayload! - """ - Delete an existing entitlement - """ - deleteEntitlement( - """ - ID of the entitlement - """ - id: ID! - ): EntitlementDeletePayload! +func (ec *executionContext) _FileHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for createEntitlement mutation -""" -type EntitlementCreatePayload { - """ - Created entitlement - """ - entitlement: Entitlement! +func (ec *executionContext) fieldContext_FileHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for updateEntitlement mutation -""" -type EntitlementUpdatePayload { - """ - Updated entitlement - """ - entitlement: Entitlement! +func (ec *executionContext) _FileHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for deleteEntitlement mutation -""" -type EntitlementDeletePayload { - """ - Deleted entitlement ID - """ - deletedID: ID! +func (ec *executionContext) fieldContext_FileHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for createBulkEntitlement mutation -""" -type EntitlementBulkCreatePayload { - """ - Created entitlements - """ - entitlements: [Entitlement!] -}`, BuiltIn: false}, - {Name: "../../schema/entitlementplan.graphql", Input: `extend type Query { - """ - Look up entitlementPlan by ID - """ - entitlementPlan( - """ - ID of the entitlementPlan - """ - id: ID! - ): EntitlementPlan! +func (ec *executionContext) _FileHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -extend type Mutation{ - """ - Create a new entitlementPlan - """ - createEntitlementPlan( - """ - values of the entitlementPlan - """ - input: CreateEntitlementPlanInput! - ): EntitlementPlanCreatePayload! - """ - Create multiple new entitlementPlans - """ - createBulkEntitlementPlan( - """ - values of the entitlementPlan - """ - input: [CreateEntitlementPlanInput!] - ): EntitlementPlanBulkCreatePayload! - """ - Create multiple new entitlementPlans via file upload - """ - createBulkCSVEntitlementPlan( - """ - csv file containing values of the entitlementPlan - """ - input: Upload! - ): EntitlementPlanBulkCreatePayload! - """ - Update an existing entitlementPlan - """ - updateEntitlementPlan( - """ - ID of the entitlementPlan - """ - id: ID! - """ - New values for the entitlementPlan - """ - input: UpdateEntitlementPlanInput! - ): EntitlementPlanUpdatePayload! - """ - Delete an existing entitlementPlan - """ - deleteEntitlementPlan( - """ - ID of the entitlementPlan - """ - id: ID! - ): EntitlementPlanDeletePayload! +func (ec *executionContext) fieldContext_FileHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -""" -Return response for createEntitlementPlan mutation -""" -type EntitlementPlanCreatePayload { - """ - Created entitlementPlan - """ - entitlementPlan: EntitlementPlan! +func (ec *executionContext) _FileHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for updateEntitlementPlan mutation -""" -type EntitlementPlanUpdatePayload { - """ - Updated entitlementPlan - """ - entitlementPlan: EntitlementPlan! +func (ec *executionContext) fieldContext_FileHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for deleteEntitlementPlan mutation -""" -type EntitlementPlanDeletePayload { - """ - Deleted entitlementPlan ID - """ - deletedID: ID! +func (ec *executionContext) _FileHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -""" -Return response for createBulkEntitlementPlan mutation -""" -type EntitlementPlanBulkCreatePayload { - """ - Created entitlementPlans - """ - entitlementPlans: [EntitlementPlan!] -}`, BuiltIn: false}, - {Name: "../../schema/entitlementplanfeature.graphql", Input: `extend type Query { - """ - Look up entitlementPlanFeature by ID - """ - entitlementPlanFeature( - """ - ID of the entitlementPlanFeature - """ - id: ID! - ): EntitlementPlanFeature! +func (ec *executionContext) fieldContext_FileHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new entitlementPlanFeature - """ - createEntitlementPlanFeature( - """ - values of the entitlementPlanFeature - """ - input: CreateEntitlementPlanFeatureInput! - ): EntitlementPlanFeatureCreatePayload! - """ - Create multiple new entitlementPlanFeatures - """ - createBulkEntitlementPlanFeature( - """ - values of the entitlementPlanFeature - """ - input: [CreateEntitlementPlanFeatureInput!] - ): EntitlementPlanFeatureBulkCreatePayload! - """ - Create multiple new entitlementPlanFeatures via file upload - """ - createBulkCSVEntitlementPlanFeature( - """ - csv file containing values of the entitlementPlanFeature - """ - input: Upload! - ): EntitlementPlanFeatureBulkCreatePayload! - """ - Update an existing entitlementPlanFeature - """ - updateEntitlementPlanFeature( - """ - ID of the entitlementPlanFeature - """ - id: ID! - """ - New values for the entitlementPlanFeature - """ - input: UpdateEntitlementPlanFeatureInput! - ): EntitlementPlanFeatureUpdatePayload! - """ - Delete an existing entitlementPlanFeature - """ - deleteEntitlementPlanFeature( - """ - ID of the entitlementPlanFeature - """ - id: ID! - ): EntitlementPlanFeatureDeletePayload! +func (ec *executionContext) _FileHistory_providedFileName(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_providedFileName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProvidedFileName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) } -""" -Return response for createEntitlementPlanFeature mutation -""" -type EntitlementPlanFeatureCreatePayload { - """ - Created entitlementPlanFeature - """ - entitlementPlanFeature: EntitlementPlanFeature! +func (ec *executionContext) fieldContext_FileHistory_providedFileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for updateEntitlementPlanFeature mutation -""" -type EntitlementPlanFeatureUpdatePayload { - """ - Updated entitlementPlanFeature - """ - entitlementPlanFeature: EntitlementPlanFeature! +func (ec *executionContext) _FileHistory_providedFileExtension(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_providedFileExtension(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProvidedFileExtension, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) } -""" -Return response for deleteEntitlementPlanFeature mutation -""" -type EntitlementPlanFeatureDeletePayload { - """ - Deleted entitlementPlanFeature ID - """ - deletedID: ID! +func (ec *executionContext) fieldContext_FileHistory_providedFileExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for createBulkEntitlementPlanFeature mutation -""" -type EntitlementPlanFeatureBulkCreatePayload { - """ - Created entitlementPlanFeatures - """ - entitlementPlanFeatures: [EntitlementPlanFeature!] -}`, BuiltIn: false}, - {Name: "../../schema/entity.graphql", Input: `extend type Query { - """ - Look up entity by ID - """ - entity( - """ - ID of the entity - """ - id: ID! - ): Entity! +func (ec *executionContext) _FileHistory_providedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_providedFileSize(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProvidedFileSize, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(int64) + fc.Result = res + return ec.marshalOInt2int64(ctx, field.Selections, res) } -extend type Mutation{ - """ - Create a new entity - """ - createEntity( - """ - values of the entity - """ - input: CreateEntityInput! - ): EntityCreatePayload! - """ - Create multiple new entities - """ - createBulkEntity( - """ - values of the entity - """ - input: [CreateEntityInput!] - ): EntityBulkCreatePayload! - """ - Create multiple new entities via file upload - """ - createBulkCSVEntity( - """ - csv file containing values of the entity - """ - input: Upload! - ): EntityBulkCreatePayload! - """ - Update an existing entity - """ - updateEntity( - """ - ID of the entity - """ - id: ID! - """ - New values for the entity - """ - input: UpdateEntityInput! - ): EntityUpdatePayload! - """ - Delete an existing entity - """ - deleteEntity( - """ - ID of the entity - """ - id: ID! - ): EntityDeletePayload! +func (ec *executionContext) fieldContext_FileHistory_providedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil } -""" -Return response for createEntity mutation -""" -type EntityCreatePayload { - """ - Created entity - """ - entity: Entity! +func (ec *executionContext) _FileHistory_persistedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_persistedFileSize(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PersistedFileSize, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(int64) + fc.Result = res + return ec.marshalOInt2int64(ctx, field.Selections, res) } -""" -Return response for updateEntity mutation -""" -type EntityUpdatePayload { - """ - Updated entity - """ - entity: Entity! +func (ec *executionContext) fieldContext_FileHistory_persistedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil } -""" -Return response for deleteEntity mutation -""" -type EntityDeletePayload { - """ - Deleted entity ID - """ - deletedID: ID! +func (ec *executionContext) _FileHistory_detectedMimeType(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_detectedMimeType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DetectedMimeType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for createBulkEntity mutation -""" -type EntityBulkCreatePayload { - """ - Created entities - """ - entities: [Entity!] -}`, BuiltIn: false}, - {Name: "../../schema/entityextended.graphql", Input: `extend input CreateEntityInput { - note: CreateNoteInput +func (ec *executionContext) fieldContext_FileHistory_detectedMimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -extend input UpdateEntityInput { - note: CreateNoteInput +func (ec *executionContext) _FileHistory_md5Hash(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_md5Hash(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Md5Hash, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -`, BuiltIn: false}, - {Name: "../../schema/entitytype.graphql", Input: `extend type Query { - """ - Look up entityType by ID - """ - entityType( - """ - ID of the entityType - """ - id: ID! - ): EntityType! + +func (ec *executionContext) fieldContext_FileHistory_md5Hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new entityType - """ - createEntityType( - """ - values of the entityType - """ - input: CreateEntityTypeInput! - ): EntityTypeCreatePayload! - """ - Create multiple new entityTypes - """ - createBulkEntityType( - """ - values of the entityType - """ - input: [CreateEntityTypeInput!] - ): EntityTypeBulkCreatePayload! - """ - Create multiple new entityTypes via file upload - """ - createBulkCSVEntityType( - """ - csv file containing values of the entityType - """ - input: Upload! - ): EntityTypeBulkCreatePayload! - """ - Update an existing entityType - """ - updateEntityType( - """ - ID of the entityType - """ - id: ID! - """ - New values for the entityType - """ - input: UpdateEntityTypeInput! - ): EntityTypeUpdatePayload! - """ - Delete an existing entityType - """ - deleteEntityType( - """ - ID of the entityType - """ - id: ID! - ): EntityTypeDeletePayload! +func (ec *executionContext) _FileHistory_detectedContentType(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_detectedContentType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DetectedContentType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) } -""" -Return response for createEntityType mutation -""" -type EntityTypeCreatePayload { - """ - Created entityType - """ - entityType: EntityType! +func (ec *executionContext) fieldContext_FileHistory_detectedContentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for updateEntityType mutation -""" -type EntityTypeUpdatePayload { - """ - Updated entityType - """ - entityType: EntityType! +func (ec *executionContext) _FileHistory_storeKey(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_storeKey(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StoreKey, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for deleteEntityType mutation -""" -type EntityTypeDeletePayload { - """ - Deleted entityType ID - """ - deletedID: ID! +func (ec *executionContext) fieldContext_FileHistory_storeKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for createBulkEntityType mutation -""" -type EntityTypeBulkCreatePayload { - """ - Created entityTypes - """ - entityTypes: [EntityType!] -}`, BuiltIn: false}, - {Name: "../../schema/event.graphql", Input: `extend type Query { - """ - Look up event by ID - """ - event( - """ - ID of the event - """ - id: ID! - ): Event! +func (ec *executionContext) _FileHistory_categoryType(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_categoryType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CategoryType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -extend type Mutation{ - """ - Create a new event - """ - createEvent( - """ - values of the event - """ - input: CreateEventInput! - ): EventCreatePayload! - """ - Create multiple new events - """ - createBulkEvent( - """ - values of the event - """ - input: [CreateEventInput!] - ): EventBulkCreatePayload! - """ - Create multiple new events via file upload - """ - createBulkCSVEvent( - """ - csv file containing values of the event - """ - input: Upload! - ): EventBulkCreatePayload! - """ - Update an existing event - """ - updateEvent( - """ - ID of the event - """ - id: ID! - """ - New values for the event - """ - input: UpdateEventInput! - ): EventUpdatePayload! - """ - Delete an existing event - """ - deleteEvent( - """ - ID of the event - """ - id: ID! - ): EventDeletePayload! +func (ec *executionContext) fieldContext_FileHistory_categoryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for createEvent mutation -""" -type EventCreatePayload { - """ - Created event - """ - event: Event! +func (ec *executionContext) _FileHistory_uri(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_uri(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.URI, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for updateEvent mutation -""" -type EventUpdatePayload { - """ - Updated event - """ - event: Event! +func (ec *executionContext) fieldContext_FileHistory_uri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for deleteEvent mutation -""" -type EventDeletePayload { - """ - Deleted event ID - """ - deletedID: ID! +func (ec *executionContext) _FileHistory_storageScheme(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_storageScheme(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StorageScheme, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for createBulkEvent mutation -""" -type EventBulkCreatePayload { - """ - Created events - """ - events: [Event!] -}`, BuiltIn: false}, - {Name: "../../schema/feature.graphql", Input: `extend type Query { - """ - Look up feature by ID - """ - feature( - """ - ID of the feature - """ - id: ID! - ): Feature! +func (ec *executionContext) fieldContext_FileHistory_storageScheme(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new feature - """ - createFeature( - """ - values of the feature - """ - input: CreateFeatureInput! - ): FeatureCreatePayload! - """ - Create multiple new features - """ - createBulkFeature( - """ - values of the feature - """ - input: [CreateFeatureInput!] - ): FeatureBulkCreatePayload! - """ - Create multiple new features via file upload - """ - createBulkCSVFeature( - """ - csv file containing values of the feature - """ - input: Upload! - ): FeatureBulkCreatePayload! - """ - Update an existing feature - """ - updateFeature( - """ - ID of the feature - """ - id: ID! - """ - New values for the feature - """ - input: UpdateFeatureInput! - ): FeatureUpdatePayload! - """ - Delete an existing feature - """ - deleteFeature( - """ - ID of the feature - """ - id: ID! - ): FeatureDeletePayload! +func (ec *executionContext) _FileHistory_storageVolume(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_storageVolume(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StorageVolume, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FileHistory_storageVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FileHistory_storagePath(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_storagePath(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StoragePath, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for createFeature mutation -""" -type FeatureCreatePayload { - """ - Created feature - """ - feature: Feature! +func (ec *executionContext) fieldContext_FileHistory_storagePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for updateFeature mutation -""" -type FeatureUpdatePayload { - """ - Updated feature - """ - feature: Feature! +func (ec *executionContext) _FileHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.FileHistoryEdge) + fc.Result = res + return ec.marshalOFileHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryEdge(ctx, field.Selections, res) } -""" -Return response for deleteFeature mutation -""" -type FeatureDeletePayload { - """ - Deleted feature ID - """ - deletedID: ID! +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) { + switch field.Name { + case "node": + return ec.fieldContext_FileHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_FileHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FileHistoryEdge", field.Name) + }, + } + return fc, nil } -""" -Return response for createBulkFeature mutation -""" -type FeatureBulkCreatePayload { - """ - Created features - """ - features: [Feature!] -}`, BuiltIn: false}, - {Name: "../../schema/file.graphql", Input: `extend type Query { - """ - Look up file by ID - """ - file( - """ - ID of the file - """ - id: ID! - ): File! +func (ec *executionContext) _FileHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -extend type Mutation{ - """ - Delete an existing file - """ - deleteFile( - """ - ID of the file - """ - id: ID! - ): FileDeletePayload! +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) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil } -""" -Return response for deleteFile mutation -""" -type FileDeletePayload { - """ - Deleted file ID - """ - deletedID: ID! +func (ec *executionContext) _FileHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) } -`, BuiltIn: false}, - {Name: "../../schema/group.graphql", Input: `extend type Query { - """ - Look up group by ID - """ - group( - """ - ID of the group - """ - id: ID! - ): Group! +func (ec *executionContext) fieldContext_FileHistoryConnection_totalCount(_ 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 nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new group - """ - createGroup( - """ - values of the group - """ - input: CreateGroupInput! - ): GroupCreatePayload! - """ - Create multiple new groups - """ - createBulkGroup( - """ - values of the group - """ - input: [CreateGroupInput!] - ): GroupBulkCreatePayload! - """ - Create multiple new groups via file upload - """ - createBulkCSVGroup( - """ - csv file containing values of the group - """ - input: Upload! - ): GroupBulkCreatePayload! - """ - Update an existing group - """ - updateGroup( - """ - ID of the group - """ - id: ID! - """ - New values for the group - """ - input: UpdateGroupInput! - ): GroupUpdatePayload! - """ - Delete an existing group - """ - deleteGroup( - """ - ID of the group - """ - id: ID! - ): GroupDeletePayload! +func (ec *executionContext) _FileHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.FileHistory) + fc.Result = res + return ec.marshalOFileHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistory(ctx, field.Selections, res) } -""" -Return response for createGroup mutation -""" -type GroupCreatePayload { - """ - Created group - """ - group: Group! +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) { + switch field.Name { + case "id": + return ec.fieldContext_FileHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_FileHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_FileHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_FileHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_FileHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_FileHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_FileHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_FileHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_FileHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_FileHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_FileHistory_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_FileHistory_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_FileHistory_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_FileHistory_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_FileHistory_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_FileHistory_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_FileHistory_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_FileHistory_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_FileHistory_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_FileHistory_categoryType(ctx, field) + case "uri": + return ec.fieldContext_FileHistory_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_FileHistory_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_FileHistory_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_FileHistory_storagePath(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FileHistory", field.Name) + }, + } + return fc, nil } -""" -Return response for updateGroup mutation -""" -type GroupUpdatePayload { - """ - Updated group - """ - group: Group! +func (ec *executionContext) _FileHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -""" -Return response for deleteGroup mutation -""" -type GroupDeletePayload { - """ - Deleted group ID - """ - deletedID: ID! +func (ec *executionContext) fieldContext_FileHistoryEdge_cursor(_ 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 nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil } -""" -Return response for createBulkGroup mutation -""" -type GroupBulkCreatePayload { - """ - Created groups - """ - groups: [Group!] -}`, BuiltIn: false}, - {Name: "../../schema/groupextended.graphql", Input: `extend input CreateGroupInput { - createGroupSettings: CreateGroupSettingInput +func (ec *executionContext) _FileSearchResult_files(ctx context.Context, field graphql.CollectedField, obj *FileSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileSearchResult_files(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Files, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.File) + fc.Result = res + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -extend input UpdateGroupInput { - addGroupMembers: [CreateGroupMembershipInput!] - updateGroupSettings: UpdateGroupSettingInput +func (ec *executionContext) fieldContext_FileSearchResult_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + }, + } + return fc, nil } -extend input GroupMembershipWhereInput { - groupID: String - userID: String -}`, BuiltIn: false}, - {Name: "../../schema/groupmembership.graphql", Input: `extend type Query { - """ - Look up groupMembership by ID - """ - groupMembership( - """ - ID of the groupMembership - """ - id: ID! - ): GroupMembership! +func (ec *executionContext) _Group_id(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) } -extend type Mutation{ - """ - Create a new groupMembership - """ - createGroupMembership( - """ - values of the groupMembership - """ - input: CreateGroupMembershipInput! - ): GroupMembershipCreatePayload! - """ - Create multiple new groupMemberships - """ - createBulkGroupMembership( - """ - values of the groupMembership - """ - input: [CreateGroupMembershipInput!] - ): GroupMembershipBulkCreatePayload! - """ - Create multiple new groupMemberships via file upload - """ - createBulkCSVGroupMembership( - """ - csv file containing values of the groupMembership - """ - input: Upload! - ): GroupMembershipBulkCreatePayload! - """ - Update an existing groupMembership - """ - updateGroupMembership( - """ - ID of the groupMembership - """ - id: ID! - """ - New values for the groupMembership - """ - input: UpdateGroupMembershipInput! - ): GroupMembershipUpdatePayload! - """ - Delete an existing groupMembership - """ - deleteGroupMembership( - """ - ID of the groupMembership - """ - id: ID! - ): GroupMembershipDeletePayload! +func (ec *executionContext) fieldContext_Group_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -""" -Return response for createGroupMembership mutation -""" -type GroupMembershipCreatePayload { - """ - Created groupMembership - """ - groupMembership: GroupMembership! +func (ec *executionContext) _Group_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -""" -Return response for updateGroupMembership mutation -""" -type GroupMembershipUpdatePayload { - """ - Updated groupMembership - """ - groupMembership: GroupMembership! +func (ec *executionContext) fieldContext_Group_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -""" -Return response for deleteGroupMembership mutation -""" -type GroupMembershipDeletePayload { - """ - Deleted groupMembership ID - """ - deletedID: ID! +func (ec *executionContext) _Group_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -""" -Return response for createBulkGroupMembership mutation -""" -type GroupMembershipBulkCreatePayload { - """ - Created groupMemberships - """ - groupMemberships: [GroupMembership!] -}`, BuiltIn: false}, - {Name: "../../schema/groupsetting.graphql", Input: `extend type Query { - """ - Look up groupSetting by ID - """ - groupSetting( - """ - ID of the groupSetting - """ - id: ID! - ): GroupSetting! +func (ec *executionContext) fieldContext_Group_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new groupSetting - """ - createGroupSetting( - """ - values of the groupSetting - """ - input: CreateGroupSettingInput! - ): GroupSettingCreatePayload! - """ - Create multiple new groupSettings - """ - createBulkGroupSetting( - """ - values of the groupSetting - """ - input: [CreateGroupSettingInput!] - ): GroupSettingBulkCreatePayload! - """ - Create multiple new groupSettings via file upload - """ - createBulkCSVGroupSetting( - """ - csv file containing values of the groupSetting - """ - input: Upload! - ): GroupSettingBulkCreatePayload! - """ - Update an existing groupSetting - """ - updateGroupSetting( - """ - ID of the groupSetting - """ - id: ID! - """ - New values for the groupSetting - """ - input: UpdateGroupSettingInput! - ): GroupSettingUpdatePayload! - """ - Delete an existing groupSetting - """ - deleteGroupSetting( - """ - ID of the groupSetting - """ - id: ID! - ): GroupSettingDeletePayload! +func (ec *executionContext) _Group_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for createGroupSetting mutation -""" -type GroupSettingCreatePayload { - """ - Created groupSetting - """ - groupSetting: GroupSetting! +func (ec *executionContext) fieldContext_Group_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for updateGroupSetting mutation -""" -type GroupSettingUpdatePayload { - """ - Updated groupSetting - """ - groupSetting: GroupSetting! +func (ec *executionContext) _Group_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for deleteGroupSetting mutation -""" -type GroupSettingDeletePayload { - """ - Deleted groupSetting ID - """ - deletedID: ID! +func (ec *executionContext) fieldContext_Group_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for createBulkGroupSetting mutation -""" -type GroupSettingBulkCreatePayload { - """ - Created groupSettings - """ - groupSettings: [GroupSetting!] -}`, BuiltIn: false}, - {Name: "../../schema/hush.graphql", Input: `extend type Query { - """ - Look up hush by ID - """ - hush( - """ - ID of the hush - """ - id: ID! - ): Hush! +func (ec *executionContext) _Group_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -extend type Mutation{ - """ - Create a new hush - """ - createHush( - """ - values of the hush - """ - input: CreateHushInput! - ): HushCreatePayload! - """ - Create multiple new hushs - """ - createBulkHush( - """ - values of the hush - """ - input: [CreateHushInput!] - ): HushBulkCreatePayload! - """ - Create multiple new hushs via file upload - """ - createBulkCSVHush( - """ - csv file containing values of the hush - """ - input: Upload! - ): HushBulkCreatePayload! - """ - Update an existing hush - """ - updateHush( - """ - ID of the hush - """ - id: ID! - """ - New values for the hush - """ - input: UpdateHushInput! - ): HushUpdatePayload! - """ - Delete an existing hush - """ - deleteHush( - """ - ID of the hush - """ - id: ID! - ): HushDeletePayload! +func (ec *executionContext) fieldContext_Group_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Group_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for createHush mutation -""" -type HushCreatePayload { - """ - Created hush - """ - hush: Hush! +func (ec *executionContext) fieldContext_Group_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for updateHush mutation -""" -type HushUpdatePayload { - """ - Updated hush - """ - hush: Hush! +func (ec *executionContext) _Group_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -""" -Return response for deleteHush mutation -""" -type HushDeletePayload { - """ - Deleted hush ID - """ - deletedID: ID! +func (ec *executionContext) fieldContext_Group_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for createBulkHush mutation -""" -type HushBulkCreatePayload { - """ - Created hushs - """ - hushes: [Hush!] -}`, BuiltIn: false}, - {Name: "../../schema/integration.graphql", Input: `extend type Query { - """ - Look up integration by ID - """ - integration( - """ - ID of the integration - """ - id: ID! - ): Integration! +func (ec *executionContext) _Group_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) } -extend type Mutation{ - """ - Create a new integration - """ - createIntegration( - """ - values of the integration - """ - input: CreateIntegrationInput! - ): IntegrationCreatePayload! - """ - Create multiple new integrations - """ - createBulkIntegration( - """ - values of the integration - """ - input: [CreateIntegrationInput!] - ): IntegrationBulkCreatePayload! - """ - Create multiple new integrations via file upload - """ - createBulkCSVIntegration( - """ - csv file containing values of the integration - """ - input: Upload! - ): IntegrationBulkCreatePayload! - """ - Update an existing integration - """ - updateIntegration( - """ - ID of the integration - """ - id: ID! - """ - New values for the integration - """ - input: UpdateIntegrationInput! - ): IntegrationUpdatePayload! - """ - Delete an existing integration - """ - deleteIntegration( - """ - ID of the integration - """ - id: ID! - ): IntegrationDeletePayload! +func (ec *executionContext) fieldContext_Group_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -""" -Return response for createIntegration mutation -""" -type IntegrationCreatePayload { - """ - Created integration - """ - integration: Integration! +func (ec *executionContext) _Group_name(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) } -""" -Return response for updateIntegration mutation -""" -type IntegrationUpdatePayload { - """ - Updated integration - """ - integration: Integration! +func (ec *executionContext) fieldContext_Group_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for deleteIntegration mutation -""" -type IntegrationDeletePayload { - """ - Deleted integration ID - """ - deletedID: ID! +func (ec *executionContext) _Group_description(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for createBulkIntegration mutation -""" -type IntegrationBulkCreatePayload { - """ - Created integrations - """ - integrations: [Integration!] -}`, BuiltIn: false}, - {Name: "../../schema/invite.graphql", Input: `extend type Query { - """ - Look up invite by ID - """ - invite( - """ - ID of the invite - """ - id: ID! - ): Invite! +func (ec *executionContext) fieldContext_Group_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new invite - """ - createInvite( - """ - values of the invite - """ - input: CreateInviteInput! - ): InviteCreatePayload! - """ - Create multiple new invites - """ - createBulkInvite( - """ - values of the invite - """ - input: [CreateInviteInput!] - ): InviteBulkCreatePayload! - """ - Create multiple new invites via file upload - """ - createBulkCSVInvite( - """ - csv file containing values of the invite - """ - input: Upload! - ): InviteBulkCreatePayload! - """ - Update an existing invite - """ - updateInvite( - """ - ID of the invite - """ - id: ID! - """ - New values for the invite - """ - input: UpdateInviteInput! - ): InviteUpdatePayload! - """ - Delete an existing invite - """ - deleteInvite( - """ - ID of the invite - """ - id: ID! - ): InviteDeletePayload! +func (ec *executionContext) _Group_gravatarLogoURL(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_gravatarLogoURL(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GravatarLogoURL, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for createInvite mutation -""" -type InviteCreatePayload { - """ - Created invite - """ - invite: Invite! +func (ec *executionContext) fieldContext_Group_gravatarLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for updateInvite mutation -""" -type InviteUpdatePayload { - """ - Updated invite - """ - invite: Invite! +func (ec *executionContext) _Group_logoURL(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_logoURL(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.LogoURL, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for deleteInvite mutation -""" -type InviteDeletePayload { - """ - Deleted invite ID - """ - deletedID: ID! +func (ec *executionContext) fieldContext_Group_logoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for createBulkInvite mutation -""" -type InviteBulkCreatePayload { - """ - Created invites - """ - invites: [Invite!] -}`, BuiltIn: false}, - {Name: "../../schema/oauthprovider.graphql", Input: `extend type Query { - """ - Look up oauthProvider by ID - """ - oauthProvider( - """ - ID of the oauthProvider - """ - id: ID! - ): OauthProvider! +func (ec *executionContext) _Group_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_displayName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DisplayName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) } -extend type Mutation{ - """ - Create a new oauthProvider - """ - createOauthProvider( - """ - values of the oauthProvider - """ - input: CreateOauthProviderInput! - ): OauthProviderCreatePayload! - """ - Create multiple new oauthProviders - """ - createBulkOauthProvider( - """ - values of the oauthProvider - """ - input: [CreateOauthProviderInput!] - ): OauthProviderBulkCreatePayload! - """ - Create multiple new oauthProviders via file upload - """ - createBulkCSVOauthProvider( - """ - csv file containing values of the oauthProvider - """ - input: Upload! - ): OauthProviderBulkCreatePayload! - """ - Update an existing oauthProvider - """ - updateOauthProvider( - """ - ID of the oauthProvider - """ - id: ID! - """ - New values for the oauthProvider - """ - input: UpdateOauthProviderInput! - ): OauthProviderUpdatePayload! - """ - Delete an existing oauthProvider - """ - deleteOauthProvider( - """ - ID of the oauthProvider - """ - id: ID! - ): OauthProviderDeletePayload! +func (ec *executionContext) fieldContext_Group_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for createOauthProvider mutation -""" -type OauthProviderCreatePayload { - """ - Created oauthProvider - """ - oauthProvider: OauthProvider! +func (ec *executionContext) _Group_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_owner(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -""" -Return response for updateOauthProvider mutation -""" -type OauthProviderUpdatePayload { - """ - Updated oauthProvider - """ - oauthProvider: OauthProvider! +func (ec *executionContext) fieldContext_Group_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil } -""" -Return response for deleteOauthProvider mutation -""" -type OauthProviderDeletePayload { - """ - Deleted oauthProvider ID - """ - deletedID: ID! +func (ec *executionContext) _Group_setting(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_setting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Setting(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.GroupSetting) + fc.Result = res + return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) } -""" -Return response for createBulkOauthProvider mutation -""" -type OauthProviderBulkCreatePayload { - """ - Created oauthProviders - """ - oauthProviders: [OauthProvider!] -}`, BuiltIn: false}, - {Name: "../../schema/ohauthtootoken.graphql", Input: `extend type Query { - """ - Look up ohAuthTooToken by ID - """ - ohAuthTooToken( - """ - ID of the ohAuthTooToken - """ - id: ID! - ): OhAuthTooToken! +func (ec *executionContext) fieldContext_Group_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new ohAuthTooToken - """ - createOhAuthTooToken( - """ - values of the ohAuthTooToken - """ - input: CreateOhAuthTooTokenInput! - ): OhAuthTooTokenCreatePayload! - """ - Create multiple new ohAuthTooTokens - """ - createBulkOhAuthTooToken( - """ - values of the ohAuthTooToken - """ - input: [CreateOhAuthTooTokenInput!] - ): OhAuthTooTokenBulkCreatePayload! - """ - Create multiple new ohAuthTooTokens via file upload - """ - createBulkCSVOhAuthTooToken( - """ - csv file containing values of the ohAuthTooToken - """ - input: Upload! - ): OhAuthTooTokenBulkCreatePayload! - """ - Update an existing ohAuthTooToken - """ - updateOhAuthTooToken( - """ - ID of the ohAuthTooToken - """ - id: ID! - """ - New values for the ohAuthTooToken - """ - input: UpdateOhAuthTooTokenInput! - ): OhAuthTooTokenUpdatePayload! - """ - Delete an existing ohAuthTooToken - """ - deleteOhAuthTooToken( - """ - ID of the ohAuthTooToken - """ - id: ID! - ): OhAuthTooTokenDeletePayload! +func (ec *executionContext) _Group_users(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_users(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Users(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.User) + fc.Result = res + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) } -""" -Return response for createOhAuthTooToken mutation -""" -type OhAuthTooTokenCreatePayload { - """ - Created ohAuthTooToken - """ - ohAuthTooToken: OhAuthTooToken! +func (ec *executionContext) fieldContext_Group_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + }, + } + return fc, nil } -""" -Return response for updateOhAuthTooToken mutation -""" -type OhAuthTooTokenUpdatePayload { - """ - Updated ohAuthTooToken - """ - ohAuthTooToken: OhAuthTooToken! +func (ec *executionContext) _Group_events(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_events(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Group_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil } -""" -Return response for deleteOhAuthTooToken mutation -""" -type OhAuthTooTokenDeletePayload { - """ - Deleted ohAuthTooToken ID - """ - deletedID: ID! +func (ec *executionContext) _Group_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_integrations(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Integrations(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Integration) + fc.Result = res + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) } -""" -Return response for createBulkOhAuthTooToken mutation -""" -type OhAuthTooTokenBulkCreatePayload { - """ - Created ohAuthTooTokens - """ - ohAuthTooTokens: [OhAuthTooToken!] -}`, BuiltIn: false}, - {Name: "../../schema/organization.graphql", Input: `extend type Query { - """ - Look up organization by ID - """ - organization( - """ - ID of the organization - """ - id: ID! - ): Organization! +func (ec *executionContext) fieldContext_Group_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "oauth2tokens": + return ec.fieldContext_Integration_oauth2tokens(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + case "webhooks": + return ec.fieldContext_Integration_webhooks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new organization - """ - createOrganization( - """ - values of the organization - """ - input: CreateOrganizationInput! - ): OrganizationCreatePayload! - """ - Create multiple new organizations - """ - createBulkOrganization( - """ - values of the organization - """ - input: [CreateOrganizationInput!] - ): OrganizationBulkCreatePayload! - """ - Create multiple new organizations via file upload - """ - createBulkCSVOrganization( - """ - csv file containing values of the organization - """ - input: Upload! - ): OrganizationBulkCreatePayload! - """ - Update an existing organization - """ - updateOrganization( - """ - ID of the organization - """ - id: ID! - """ - New values for the organization - """ - input: UpdateOrganizationInput! - ): OrganizationUpdatePayload! - """ - Delete an existing organization - """ - deleteOrganization( - """ - ID of the organization - """ - id: ID! - ): OrganizationDeletePayload! +func (ec *executionContext) _Group_files(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_files(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Files(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.File) + fc.Result = res + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -""" -Return response for createOrganization mutation -""" -type OrganizationCreatePayload { - """ - Created organization - """ - organization: Organization! +func (ec *executionContext) fieldContext_Group_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + }, + } + return fc, nil } -""" -Return response for updateOrganization mutation -""" -type OrganizationUpdatePayload { - """ - Updated organization - """ - organization: Organization! +func (ec *executionContext) _Group_members(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_members(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Members(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.GroupMembership) + fc.Result = res + return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) } -""" -Return response for deleteOrganization mutation -""" -type OrganizationDeletePayload { - """ - Deleted organization ID - """ - deletedID: ID! +func (ec *executionContext) fieldContext_Group_members(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + }, + } + return fc, nil } -""" -Return response for createBulkOrganization mutation -""" -type OrganizationBulkCreatePayload { - """ - Created organizations - """ - organizations: [Organization!] -}`, BuiltIn: false}, - {Name: "../../schema/organizationsetting.graphql", Input: `extend type Query { - """ - Look up organizationSetting by ID - """ - organizationSetting( - """ - ID of the organizationSetting - """ - id: ID! - ): OrganizationSetting! +func (ec *executionContext) _GroupBulkCreatePayload_groups(ctx context.Context, field graphql.CollectedField, obj *GroupBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupBulkCreatePayload_groups(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Groups, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Group) + fc.Result = res + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -extend type Mutation{ - """ - Create a new organizationSetting - """ - createOrganizationSetting( - """ - values of the organizationSetting - """ - input: CreateOrganizationSettingInput! - ): OrganizationSettingCreatePayload! - """ - Create multiple new organizationSettings - """ - createBulkOrganizationSetting( - """ - values of the organizationSetting - """ - input: [CreateOrganizationSettingInput!] - ): OrganizationSettingBulkCreatePayload! - """ - Create multiple new organizationSettings via file upload - """ - createBulkCSVOrganizationSetting( - """ - csv file containing values of the organizationSetting - """ - input: Upload! - ): OrganizationSettingBulkCreatePayload! - """ - Update an existing organizationSetting - """ - updateOrganizationSetting( - """ - ID of the organizationSetting - """ - id: ID! - """ - New values for the organizationSetting - """ - input: UpdateOrganizationSettingInput! - ): OrganizationSettingUpdatePayload! - """ - Delete an existing organizationSetting - """ - deleteOrganizationSetting( - """ - ID of the organizationSetting - """ - id: ID! - ): OrganizationSettingDeletePayload! +func (ec *executionContext) fieldContext_GroupBulkCreatePayload_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + return fc, nil } -""" -Return response for createOrganizationSetting mutation -""" -type OrganizationSettingCreatePayload { - """ - Created organizationSetting - """ - organizationSetting: OrganizationSetting! +func (ec *executionContext) _GroupConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.GroupEdge) + fc.Result = res + return ec.marshalOGroupEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupEdge(ctx, field.Selections, res) } -""" -Return response for updateOrganizationSetting mutation -""" -type OrganizationSettingUpdatePayload { - """ - Updated organizationSetting - """ - organizationSetting: OrganizationSetting! +func (ec *executionContext) fieldContext_GroupConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_GroupEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_GroupEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupEdge", field.Name) + }, + } + return fc, nil } -""" -Return response for deleteOrganizationSetting mutation -""" -type OrganizationSettingDeletePayload { - """ - Deleted organizationSetting ID - """ - deletedID: ID! +func (ec *executionContext) _GroupConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -""" -Return response for createBulkOrganizationSetting mutation -""" -type OrganizationSettingBulkCreatePayload { - """ - Created organizationSettings - """ - organizationSettings: [OrganizationSetting!] -}`, BuiltIn: false}, - {Name: "../../schema/orgextended.graphql", Input: `extend input CreateOrganizationInput { - createOrgSettings: CreateOrganizationSettingInput +func (ec *executionContext) fieldContext_GroupConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil } -extend input UpdateOrganizationInput { - addOrgMembers: [CreateOrgMembershipInput!] - updateOrgSettings: UpdateOrganizationSettingInput +func (ec *executionContext) _GroupConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) } -extend input OrgMembershipWhereInput { - organizationID: String - userID: String -}`, BuiltIn: false}, - {Name: "../../schema/orgmembership.graphql", Input: `extend type Query { - """ - Look up orgMembership by ID - """ - orgMembership( - """ - ID of the orgMembership - """ - id: ID! - ): OrgMembership! +func (ec *executionContext) fieldContext_GroupConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new orgMembership - """ - createOrgMembership( - """ - values of the orgMembership - """ - input: CreateOrgMembershipInput! - ): OrgMembershipCreatePayload! - """ - Create multiple new orgMemberships - """ - createBulkOrgMembership( - """ - values of the orgMembership - """ - input: [CreateOrgMembershipInput!] - ): OrgMembershipBulkCreatePayload! - """ - Create multiple new orgMemberships via file upload - """ - createBulkCSVOrgMembership( - """ - csv file containing values of the orgMembership - """ - input: Upload! - ): OrgMembershipBulkCreatePayload! - """ - Update an existing orgMembership - """ - updateOrgMembership( - """ - ID of the orgMembership - """ - id: ID! - """ - New values for the orgMembership - """ - input: UpdateOrgMembershipInput! - ): OrgMembershipUpdatePayload! - """ - Delete an existing orgMembership - """ - deleteOrgMembership( - """ - ID of the orgMembership - """ - id: ID! - ): OrgMembershipDeletePayload! +func (ec *executionContext) _GroupCreatePayload_group(ctx context.Context, field graphql.CollectedField, obj *GroupCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupCreatePayload_group(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Group, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Group) + fc.Result = res + return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) } -""" -Return response for createOrgMembership mutation -""" -type OrgMembershipCreatePayload { - """ - Created orgMembership - """ - orgMembership: OrgMembership! +func (ec *executionContext) fieldContext_GroupCreatePayload_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + return fc, nil } -""" -Return response for updateOrgMembership mutation -""" -type OrgMembershipUpdatePayload { - """ - Updated orgMembership - """ - orgMembership: OrgMembership! +func (ec *executionContext) _GroupDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *GroupDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) } -""" -Return response for deleteOrgMembership mutation -""" -type OrgMembershipDeletePayload { - """ - Deleted orgMembership ID - """ - deletedID: ID! +func (ec *executionContext) fieldContext_GroupDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -""" -Return response for createBulkOrgMembership mutation -""" -type OrgMembershipBulkCreatePayload { - """ - Created orgMemberships - """ - orgMemberships: [OrgMembership!] -}`, BuiltIn: false}, - {Name: "../../schema/personalaccesstoken.graphql", Input: `extend type Query { - """ - Look up personalAccessToken by ID - """ - personalAccessToken( - """ - ID of the personalAccessToken - """ - id: ID! - ): PersonalAccessToken! +func (ec *executionContext) _GroupEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Group) + fc.Result = res + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) } -extend type Mutation{ - """ - Create a new personalAccessToken - """ - createPersonalAccessToken( - """ - values of the personalAccessToken - """ - input: CreatePersonalAccessTokenInput! - ): PersonalAccessTokenCreatePayload! - """ - Create multiple new personalAccessTokens - """ - createBulkPersonalAccessToken( - """ - values of the personalAccessToken - """ - input: [CreatePersonalAccessTokenInput!] - ): PersonalAccessTokenBulkCreatePayload! - """ - Create multiple new personalAccessTokens via file upload - """ - createBulkCSVPersonalAccessToken( - """ - csv file containing values of the personalAccessToken - """ - input: Upload! - ): PersonalAccessTokenBulkCreatePayload! - """ - Update an existing personalAccessToken - """ - updatePersonalAccessToken( - """ - ID of the personalAccessToken - """ - id: ID! - """ - New values for the personalAccessToken - """ - input: UpdatePersonalAccessTokenInput! - ): PersonalAccessTokenUpdatePayload! - """ - Delete an existing personalAccessToken - """ - deletePersonalAccessToken( - """ - ID of the personalAccessToken - """ - id: ID! - ): PersonalAccessTokenDeletePayload! +func (ec *executionContext) fieldContext_GroupEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + return fc, nil } -""" -Return response for createPersonalAccessToken mutation -""" -type PersonalAccessTokenCreatePayload { - """ - Created personalAccessToken - """ - personalAccessToken: PersonalAccessToken! +func (ec *executionContext) _GroupEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -""" -Return response for updatePersonalAccessToken mutation -""" -type PersonalAccessTokenUpdatePayload { - """ - Updated personalAccessToken - """ - personalAccessToken: PersonalAccessToken! +func (ec *executionContext) fieldContext_GroupEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil } -""" -Return response for deletePersonalAccessToken mutation -""" -type PersonalAccessTokenDeletePayload { - """ - Deleted personalAccessToken ID - """ - deletedID: ID! +func (ec *executionContext) _GroupHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) } -""" -Return response for createBulkPersonalAccessToken mutation -""" -type PersonalAccessTokenBulkCreatePayload { - """ - Created personalAccessTokens - """ - personalAccessTokens: [PersonalAccessToken!] -}`, BuiltIn: false}, - {Name: "../../schema/scalars.graphql", Input: `scalar Upload`, BuiltIn: false}, - {Name: "../../schema/search.graphql", Input: `extend type Query{ - """ - Search across APIToken objects - """ - apiTokenSearch( - """ - Search query - """ - query: String! - ): APITokenSearchResult - """ - Search across Contact objects - """ - contactSearch( - """ - Search query - """ - query: String! - ): ContactSearchResult - """ - Search across DocumentData objects - """ - documentDataSearch( - """ - Search query - """ - query: String! - ): DocumentDataSearchResult - """ - Search across Entitlement objects - """ - entitlementSearch( - """ - Search query - """ - query: String! - ): EntitlementSearchResult - """ - Search across EntitlementPlan objects - """ - entitlementPlanSearch( - """ - Search query - """ - query: String! - ): EntitlementPlanSearchResult - """ - Search across EntitlementPlanFeature objects - """ - entitlementPlanFeatureSearch( - """ - Search query - """ - query: String! - ): EntitlementPlanFeatureSearchResult - """ - Search across Entity objects - """ - entitySearch( - """ - Search query - """ - query: String! - ): EntitySearchResult - """ - Search across EntityType objects - """ - entityTypeSearch( - """ - Search query - """ - query: String! - ): EntityTypeSearchResult - """ - Search across Event objects - """ - eventSearch( - """ - Search query - """ - query: String! - ): EventSearchResult - """ - Search across Feature objects - """ - featureSearch( - """ - Search query - """ - query: String! - ): FeatureSearchResult - """ - Search across File objects - """ - fileSearch( - """ - Search query - """ - query: String! - ): FileSearchResult - """ - Search across Group objects - """ - groupSearch( - """ - Search query - """ - query: String! - ): GroupSearchResult - """ - Search across GroupSetting objects - """ - groupSettingSearch( - """ - Search query - """ - query: String! - ): GroupSettingSearchResult - """ - Search across Integration objects - """ - integrationSearch( - """ - Search query - """ - query: String! - ): IntegrationSearchResult - """ - Search across OauthProvider objects - """ - oauthProviderSearch( - """ - Search query - """ - query: String! - ): OauthProviderSearchResult - """ - Search across OhAuthTooToken objects - """ - ohAuthTooTokenSearch( - """ - Search query - """ - query: String! - ): OhAuthTooTokenSearchResult - """ - Search across Organization objects - """ - organizationSearch( - """ - Search query - """ - query: String! - ): OrganizationSearchResult - """ - Search across OrganizationSetting objects - """ - organizationSettingSearch( - """ - Search query - """ - query: String! - ): OrganizationSettingSearchResult - """ - Search across PersonalAccessToken objects - """ - personalAccessTokenSearch( - """ - Search query - """ - query: String! - ): PersonalAccessTokenSearchResult - """ - Search across Subscriber objects - """ - subscriberSearch( - """ - Search query - """ - query: String! - ): SubscriberSearchResult - """ - Search across TFASetting objects - """ - tFASettingSearch( - """ - Search query - """ - query: String! - ): TFASettingSearchResult - """ - Search across Template objects - """ - templateSearch( - """ - Search query - """ - query: String! - ): TemplateSearchResult - """ - Search across User objects - """ - userSearch( - """ - Search query - """ - query: String! - ): UserSearchResult - """ - Search across UserSetting objects - """ - userSettingSearch( - """ - Search query - """ - query: String! - ): UserSettingSearchResult - """ - Search across Webhook objects - """ - webhookSearch( - """ - Search query - """ - query: String! - ): WebhookSearchResult +func (ec *executionContext) fieldContext_GroupHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -union SearchResult = - | APITokenSearchResult - | ContactSearchResult - | DocumentDataSearchResult - | EntitlementSearchResult - | EntitlementPlanSearchResult - | EntitlementPlanFeatureSearchResult - | EntitySearchResult - | EntityTypeSearchResult - | EventSearchResult - | FeatureSearchResult - | FileSearchResult - | GroupSearchResult - | GroupSettingSearchResult - | IntegrationSearchResult - | OauthProviderSearchResult - | OhAuthTooTokenSearchResult - | OrganizationSearchResult - | OrganizationSettingSearchResult - | PersonalAccessTokenSearchResult - | SubscriberSearchResult - | TFASettingSearchResult - | TemplateSearchResult - | UserSearchResult - | UserSettingSearchResult - | WebhookSearchResult -type SearchResultConnection { - page: PageInfo! - - nodes: [SearchResult!]! +func (ec *executionContext) _GroupHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_historyTime(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -extend type Query{ - """ - Search across all objects - """ - search( - """ - Search query - """ - query: String! - ): SearchResultConnection - """ - Admin search across all objects - """ - adminSearch( - """ - Search query - """ - query: String! - ): SearchResultConnection +func (ec *executionContext) fieldContext_GroupHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -type APITokenSearchResult { - apiTokens: [ APIToken!] +func (ec *executionContext) _GroupHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_ref(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -type ContactSearchResult { - contacts: [ Contact!] +func (ec *executionContext) fieldContext_GroupHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -type DocumentDataSearchResult { - documentData: [ DocumentData!] +func (ec *executionContext) _GroupHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -type EntitlementSearchResult { - entitlements: [ Entitlement!] +func (ec *executionContext) fieldContext_GroupHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GroupHistoryOpType does not have child fields") + }, + } + return fc, nil } -type EntitlementPlanSearchResult { - entitlementPlans: [ EntitlementPlan!] +func (ec *executionContext) _GroupHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -type EntitlementPlanFeatureSearchResult { - entitlementPlanFeatures: [ EntitlementPlanFeature!] +func (ec *executionContext) fieldContext_GroupHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -type EntitySearchResult { - entities: [ Entity!] +func (ec *executionContext) _GroupHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -type EntityTypeSearchResult { - entityTypes: [ EntityType!] +func (ec *executionContext) fieldContext_GroupHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -type EventSearchResult { - events: [ Event!] +func (ec *executionContext) _GroupHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -type FeatureSearchResult { - features: [ Feature!] +func (ec *executionContext) fieldContext_GroupHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -type FileSearchResult { - files: [ File!] +func (ec *executionContext) _GroupHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -type GroupSearchResult { - groups: [ Group!] +func (ec *executionContext) fieldContext_GroupHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -type GroupSettingSearchResult { - groupSettings: [ GroupSetting!] +func (ec *executionContext) _GroupHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -type IntegrationSearchResult { - integrations: [ Integration!] +func (ec *executionContext) fieldContext_GroupHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -type OauthProviderSearchResult { - oauthProviders: [ OauthProvider!] +func (ec *executionContext) _GroupHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -type OhAuthTooTokenSearchResult { - ohAuthTooTokens: [ OhAuthTooToken!] +func (ec *executionContext) fieldContext_GroupHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -type OrganizationSearchResult { - organizations: [ Organization!] +func (ec *executionContext) _GroupHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -type OrganizationSettingSearchResult { - organizationSettings: [ OrganizationSetting!] +func (ec *executionContext) fieldContext_GroupHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -type PersonalAccessTokenSearchResult { - personalAccessTokens: [ PersonalAccessToken!] +func (ec *executionContext) _GroupHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -type SubscriberSearchResult { - subscribers: [ Subscriber!] +func (ec *executionContext) fieldContext_GroupHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -type TFASettingSearchResult { - tFASettings: [ TFASetting!] +func (ec *executionContext) _GroupHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) } -type TemplateSearchResult { - templates: [ Template!] +func (ec *executionContext) fieldContext_GroupHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -type UserSearchResult { - users: [ User!] +func (ec *executionContext) _GroupHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -type UserSettingSearchResult { - userSettings: [ UserSetting!] +func (ec *executionContext) fieldContext_GroupHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -type WebhookSearchResult { - webhooks: [ Webhook!] +func (ec *executionContext) _GroupHistory_gravatarLogoURL(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_gravatarLogoURL(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GravatarLogoURL, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -`, BuiltIn: false}, - {Name: "../../schema/subscriber.graphql", Input: `extend type Query { - """ - Look up subscriber by Email - """ - subscriber( - """ - Email of the subscriber - """ - email: String! - ): Subscriber! + +func (ec *executionContext) fieldContext_GroupHistory_gravatarLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new subscriber - """ - createSubscriber( - """ - values of the subscriber - """ - input: CreateSubscriberInput! - ): SubscriberCreatePayload! - """ - Create new subscribers - """ - createBulkSubscriber( - """ - values of the subscriber - """ - input: [CreateSubscriberInput!] - ): SubscriberBulkCreatePayload! - """ - Create new subscribers via CSV file - """ - createBulkCSVSubscriber( - """ - values of the subscriber - """ - input: Upload! - ): SubscriberBulkCreatePayload! - """ - Update an existing subscriber - """ - updateSubscriber( - """ - Email of the subscriber - """ - email: String! - """ - New values for the subscriber - """ - input: UpdateSubscriberInput! - ): SubscriberUpdatePayload! - """ - Delete an existing subscriber by Email - """ - deleteSubscriber( - """ - Email of the subscriber - """ - email: String! - """ - OwnerID of the subscriber - """ - ownerID: ID - ): SubscriberDeletePayload! +func (ec *executionContext) _GroupHistory_logoURL(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_logoURL(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.LogoURL, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for createSubscriber mutation -""" -type SubscriberCreatePayload { - """ - Created subscriber - """ - subscriber: Subscriber! +func (ec *executionContext) fieldContext_GroupHistory_logoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for updateSubscriber mutation -""" -type SubscriberUpdatePayload { - """ - Updated subscriber - """ - subscriber: Subscriber! +func (ec *executionContext) _GroupHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_displayName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DisplayName, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) } -""" -Return response for deleteSubscriber mutation -""" -type SubscriberDeletePayload { - """ - Deleted subscriber email - """ - email: String! +func (ec *executionContext) fieldContext_GroupHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for createBulkSubscriber mutation -""" -type SubscriberBulkCreatePayload { - """ - Created subscribers - """ - subscribers: [Subscriber!] +func (ec *executionContext) _GroupHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.GroupHistoryEdge) + fc.Result = res + return ec.marshalOGroupHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryEdge(ctx, field.Selections, res) } -`, BuiltIn: false}, - {Name: "../../schema/template.graphql", Input: `extend type Query { - """ - Look up template by ID - """ - template( - """ - ID of the template - """ - id: ID! - ): Template! +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) { + switch field.Name { + case "node": + return ec.fieldContext_GroupHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_GroupHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupHistoryEdge", field.Name) + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new template - """ - createTemplate( - """ - values of the template - """ - input: CreateTemplateInput! - ): TemplateCreatePayload! - """ - Create multiple new templates - """ - createBulkTemplate( - """ - values of the template - """ - input: [CreateTemplateInput!] - ): TemplateBulkCreatePayload! - """ - Create multiple new templates via file upload - """ - createBulkCSVTemplate( - """ - csv file containing values of the template - """ - input: Upload! - ): TemplateBulkCreatePayload! - """ - Update an existing template - """ - updateTemplate( - """ - ID of the template - """ - id: ID! - """ - New values for the template - """ - input: UpdateTemplateInput! - ): TemplateUpdatePayload! - """ - Delete an existing template - """ - deleteTemplate( - """ - ID of the template - """ - id: ID! - ): TemplateDeletePayload! +func (ec *executionContext) _GroupHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -""" -Return response for createTemplate mutation -""" -type TemplateCreatePayload { - """ - Created template - """ - template: Template! +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) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil } -""" -Return response for updateTemplate mutation -""" -type TemplateUpdatePayload { - """ - Updated template - """ - template: Template! +func (ec *executionContext) _GroupHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistoryConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) } -""" -Return response for deleteTemplate mutation -""" -type TemplateDeletePayload { - """ - Deleted template ID - """ - deletedID: ID! +func (ec *executionContext) fieldContext_GroupHistoryConnection_totalCount(_ 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 nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil } -""" -Return response for createBulkTemplate mutation -""" -type TemplateBulkCreatePayload { - """ - Created templates - """ - templates: [Template!] -}`, BuiltIn: false}, - {Name: "../../schema/tfasetting.graphql", Input: `extend type Query { - """ - Look up tfaSetting for the current user - """ - tfaSetting( - """ - ID of the tfaSetting - """ - id: ID - ): TFASetting! +func (ec *executionContext) _GroupHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.GroupHistory) + fc.Result = res + return ec.marshalOGroupHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistory(ctx, field.Selections, res) } -extend type Mutation{ - """ - Create a new tfaSetting - """ - createTFASetting( - """ - values of the tfaSetting - """ - input: CreateTFASettingInput! - ): TFASettingCreatePayload! - """ - Update an existing tfaSetting - """ - updateTFASetting( - """ - New values for the tfaSetting - """ - input: UpdateTFASettingInput! - ): TFASettingUpdatePayload! +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) { + switch field.Name { + case "id": + return ec.fieldContext_GroupHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_GroupHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_GroupHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_GroupHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_GroupHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_GroupHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_GroupHistory_name(ctx, field) + case "description": + return ec.fieldContext_GroupHistory_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_GroupHistory_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_GroupHistory_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_GroupHistory_displayName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupHistory", field.Name) + }, + } + return fc, nil } -""" -Return response for createTFASetting mutation -""" -type TFASettingCreatePayload { - """ - Created tfaSetting - """ - tfaSetting: TFASetting! +func (ec *executionContext) _GroupHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -""" -Return response for updateTFASetting mutation -""" -type TFASettingUpdatePayload { - """ - Updated tfaSetting - """ - tfaSetting: TFASetting! +func (ec *executionContext) fieldContext_GroupHistoryEdge_cursor(_ 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 nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil } -extend input UpdateTFASettingInput { - """ - Whether to regenerate backup codes - """ - regenBackupCodes: Boolean -}`, BuiltIn: false}, - {Name: "../../schema/user.graphql", Input: `extend type Query { - """ - Look up user by ID - """ - user( - """ - ID of the user - """ - id: ID! - ): User! +func (ec *executionContext) _GroupMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) } -extend type Mutation{ - """ - Create a new user - """ - createUser( - """ - values of the user - """ - input: CreateUserInput! - avatarFile: Upload - ): UserCreatePayload! - """ - Update an existing user - """ - updateUser( - """ - ID of the user - """ - id: ID! - """ - New values for the user - """ - input: UpdateUserInput! - avatarFile: Upload - ): UserUpdatePayload! - """ - Delete an existing user - """ - deleteUser( - """ - ID of the user - """ - id: ID! - ): UserDeletePayload! +func (ec *executionContext) fieldContext_GroupMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -""" -Return response for createUser mutation -""" -type UserCreatePayload { - """ - Created user - """ - user: User! +func (ec *executionContext) _GroupMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -""" -Return response for updateUser mutation -""" -type UserUpdatePayload { - """ - Updated user - """ - user: User! +func (ec *executionContext) fieldContext_GroupMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -""" -Return response for deleteUser mutation -""" -type UserDeletePayload { - """ - Deleted user ID - """ - deletedID: ID! +func (ec *executionContext) _GroupMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -""" -Return response for createBulkUser mutation -""" -type UserBulkCreatePayload { - """ - Created users - """ - users: [User!] -}`, BuiltIn: false}, - {Name: "../../schema/usersetting.graphql", Input: `extend type Query { - """ - Look up userSetting by ID - """ - userSetting( - """ - ID of the userSetting - """ - id: ID! - ): UserSetting! +func (ec *executionContext) fieldContext_GroupMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new userSetting - """ - createUserSetting( - """ - values of the userSetting - """ - input: CreateUserSettingInput! - ): UserSettingCreatePayload! - """ - Create multiple new userSettings - """ - createBulkUserSetting( - """ - values of the userSetting - """ - input: [CreateUserSettingInput!] - ): UserSettingBulkCreatePayload! - """ - Create multiple new userSettings via file upload - """ - createBulkCSVUserSetting( - """ - csv file containing values of the userSetting - """ - input: Upload! - ): UserSettingBulkCreatePayload! - """ - Update an existing userSetting - """ - updateUserSetting( - """ - ID of the userSetting - """ - id: ID! - """ - New values for the userSetting - """ - input: UpdateUserSettingInput! - ): UserSettingUpdatePayload! +func (ec *executionContext) _GroupMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for createUserSetting mutation -""" -type UserSettingCreatePayload { - """ - Created userSetting - """ - userSetting: UserSetting! +func (ec *executionContext) fieldContext_GroupMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for updateUserSetting mutation -""" -type UserSettingUpdatePayload { - """ - Updated userSetting - """ - userSetting: UserSetting! +func (ec *executionContext) _GroupMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for createBulkUserSetting mutation -""" -type UserSettingBulkCreatePayload { - """ - Created userSettings - """ - userSettings: [UserSetting!] -}`, BuiltIn: false}, - {Name: "../../schema/webhook.graphql", Input: `extend type Query { - """ - Look up webhook by ID - """ - webhook( - """ - ID of the webhook - """ - id: ID! - ): Webhook! +func (ec *executionContext) fieldContext_GroupMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -extend type Mutation{ - """ - Create a new webhook - """ - createWebhook( - """ - values of the webhook - """ - input: CreateWebhookInput! - ): WebhookCreatePayload! - """ - Create multiple new webhooks - """ - createBulkWebhook( - """ - values of the webhook - """ - input: [CreateWebhookInput!] - ): WebhookBulkCreatePayload! - """ - Create multiple new webhooks via file upload - """ - createBulkCSVWebhook( - """ - csv file containing values of the webhook - """ - input: Upload! - ): WebhookBulkCreatePayload! - """ - Update an existing webhook - """ - updateWebhook( - """ - ID of the webhook - """ - id: ID! - """ - New values for the webhook - """ - input: UpdateWebhookInput! - ): WebhookUpdatePayload! - """ - Delete an existing webhook - """ - deleteWebhook( - """ - ID of the webhook - """ - id: ID! - ): WebhookDeletePayload! +func (ec *executionContext) _GroupMembership_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -""" -Return response for createWebhook mutation -""" -type WebhookCreatePayload { - """ - Created webhook - """ - webhook: Webhook! +func (ec *executionContext) fieldContext_GroupMembership_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _GroupMembership_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -""" -Return response for updateWebhook mutation -""" -type WebhookUpdatePayload { - """ - Updated webhook - """ - webhook: Webhook! +func (ec *executionContext) fieldContext_GroupMembership_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -""" -Return response for deleteWebhook mutation -""" -type WebhookDeletePayload { - """ - Deleted webhook ID - """ - deletedID: ID! +func (ec *executionContext) _GroupMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_role(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Role, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.Role) + fc.Result = res + return ec.marshalNGroupMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -""" -Return response for createBulkWebhook mutation -""" -type WebhookBulkCreatePayload { - """ - Created webhooks - """ - webhooks: [Webhook!] -}`, BuiltIn: false}, +func (ec *executionContext) fieldContext_GroupMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GroupMembershipRole does not have child fields") + }, + } + return fc, nil } -var parsedSchema = gqlparser.MustLoadSchema(sources...) - -// endregion ************************** generated!.gotpl ************************** - -// region ***************************** args.gotpl ***************************** -func (ec *executionContext) field_Mutation_createAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createAPIToken_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembership_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_groupID(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createAPIToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateAPITokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateAPITokenInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateAPITokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInput(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - var zeroVal generated.CreateAPITokenInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembership_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkAPIToken_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembership_userID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_userID(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkAPIToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateAPITokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateAPITokenInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateAPITokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInputᚄ(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateAPITokenInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembership_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVAPIToken_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembership_group(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_group(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVAPIToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Group(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*generated.Group) + fc.Result = res + return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembership_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVContact_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembership_user(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_user(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVContact_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.User(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*generated.User) + fc.Result = res + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembership_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVDocumentData_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembership_events(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_events(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createBulkCSVDocumentData_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + +func (ec *executionContext) fieldContext_GroupMembership_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembership", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, } + return fc, nil +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) _GroupMembershipBulkCreatePayload_groupMemberships(ctx context.Context, field graphql.CollectedField, obj *GroupMembershipBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupMemberships, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.GroupMembership) + fc.Result = res + return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVEntitlementPlanFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVEntitlementPlanFeature_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipConnection_edges(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.GroupMembershipEdge) + fc.Result = res + return ec.marshalOGroupMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipEdge(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createBulkCSVEntitlementPlanFeature_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + +func (ec *executionContext) fieldContext_GroupMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_GroupMembershipEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_GroupMembershipEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipEdge", field.Name) + }, } + return fc, nil +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) _GroupMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVEntitlementPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVEntitlementPlan_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipConnection_totalCount(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createBulkCSVEntitlementPlan_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + +func (ec *executionContext) fieldContext_GroupMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, } + return fc, nil +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) _GroupMembershipCreatePayload_groupMembership(ctx context.Context, field graphql.CollectedField, obj *GroupMembershipCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipCreatePayload_groupMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupMembership, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*generated.GroupMembership) + fc.Result = res + return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipCreatePayload_groupMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVEntitlement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVEntitlement_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *GroupMembershipDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipDeletePayload_deletedID(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createBulkCSVEntitlement_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + +func (ec *executionContext) fieldContext_GroupMembershipDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, } + return fc, nil +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) _GroupMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipEdge_node(ctx, field) + if err != nil { + return graphql.Null } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.GroupMembership) + fc.Result = res + return ec.marshalOGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVEntityType_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipEdge_cursor(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVEntityType_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal graphql.Upload - return zeroVal, nil + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createBulkCSVEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVEntity_argsInput(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_GroupMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, } - args["input"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVEntity_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) _GroupMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_id(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVEvent_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVEvent_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) fieldContext_GroupMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, } - - var zeroVal graphql.Upload - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVFeature_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_historyTime(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVFeature_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal graphql.Upload - return zeroVal, nil + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createBulkCSVGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVGroupMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_GroupMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - args["input"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVGroupMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) _GroupMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_ref(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVGroupSetting_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVGroupSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) fieldContext_GroupMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal graphql.Upload - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVGroup_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_operation(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVGroup_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal graphql.Upload - return zeroVal, nil + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createBulkCSVHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVHush_argsInput(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_GroupMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GroupMembershipHistoryOpType does not have child fields") + }, } - args["input"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVHush_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) _GroupMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVIntegration_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVIntegration_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) fieldContext_GroupMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal graphql.Upload - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVInvite_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_updatedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVInvite_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVOauthProvider_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVOauthProvider_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_createdBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVOauthProvider_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVOhAuthTooToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVOhAuthTooToken_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_updatedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVOhAuthTooToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVOrgMembership_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_deletedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVOrgMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVOrganizationSetting_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_deletedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVOrganizationSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVOrganization_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_role(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVOrganization_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Role, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(enums.Role) + fc.Result = res + return ec.marshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GroupMembershipHistoryRole does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVPersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVPersonalAccessToken_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_groupID(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVPersonalAccessToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVSubscriber_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_userID(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVSubscriber_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVTemplate_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistoryConnection_edges(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVTemplate_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.GroupMembershipHistoryEdge) + fc.Result = res + return ec.marshalOGroupMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryEdge(ctx, field.Selections, res) +} - var zeroVal graphql.Upload - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_GroupMembershipHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_GroupMembershipHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipHistoryEdge", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVUserSetting_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistoryConnection_pageInfo(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVUserSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, } - - var zeroVal graphql.Upload - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkCSVWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVWebhook_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistoryConnection_totalCount(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVWebhook_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal graphql.Upload - return zeroVal, nil + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createBulkContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkContact_argsInput(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, } - args["input"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkContact_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateContactInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateContactInput - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateContactInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInputᚄ(ctx, tmp) +func (ec *executionContext) _GroupMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal []*generated.CreateContactInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkDocumentData_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkDocumentData_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateDocumentDataInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateDocumentDataInput - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(*generated.GroupMembershipHistory) + fc.Result = res + return ec.marshalOGroupMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistory(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateDocumentDataInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInputᚄ(ctx, tmp) +func (ec *executionContext) fieldContext_GroupMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupMembershipHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_GroupMembershipHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_GroupMembershipHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_GroupMembershipHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembershipHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembershipHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembershipHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembershipHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembershipHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembershipHistory_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembershipHistory_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembershipHistory_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembershipHistory_userID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipHistory", field.Name) + }, } - - var zeroVal []*generated.CreateDocumentDataInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkEntitlementPlanFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkEntitlementPlanFeature_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistoryEdge_cursor(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkEntitlementPlanFeature_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateEntitlementPlanFeatureInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateEntitlementPlanFeatureInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateEntitlementPlanFeatureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanFeatureInputᚄ(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal []*generated.CreateEntitlementPlanFeatureInput - return zeroVal, nil + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createBulkEntitlementPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkEntitlementPlan_argsInput(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_GroupMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, } - args["input"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkEntitlementPlan_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateEntitlementPlanInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateEntitlementPlanInput - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateEntitlementPlanInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanInputᚄ(ctx, tmp) +func (ec *executionContext) _GroupMembershipUpdatePayload_groupMembership(ctx context.Context, field graphql.CollectedField, obj *GroupMembershipUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipUpdatePayload_groupMembership(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal []*generated.CreateEntitlementPlanInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkEntitlement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkEntitlement_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupMembership, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkEntitlement_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateEntitlementInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateEntitlementInput - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*generated.GroupMembership) + fc.Result = res + return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateEntitlementInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementInputᚄ(ctx, tmp) +func (ec *executionContext) fieldContext_GroupMembershipUpdatePayload_groupMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + }, } - - var zeroVal []*generated.CreateEntitlementInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkEntityType_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSearchResult_groups(ctx context.Context, field graphql.CollectedField, obj *GroupSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSearchResult_groups(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkEntityType_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateEntityTypeInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateEntityTypeInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Groups, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateEntityTypeInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal []*generated.CreateEntityTypeInput - return zeroVal, nil + res := resTmp.([]*generated.Group) + fc.Result = res + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createBulkEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkEntity_argsInput(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_GroupSearchResult_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, } - args["input"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkEntity_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateEntityInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateEntityInput - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateEntityInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInputᚄ(ctx, tmp) +func (ec *executionContext) _GroupSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_id(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal []*generated.CreateEntityInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkEvent_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkEvent_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateEventInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateEventInput - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateEventInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInputᚄ(ctx, tmp) +func (ec *executionContext) fieldContext_GroupSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, } - - var zeroVal []*generated.CreateEventInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkFeature_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_createdAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkFeature_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateFeatureInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateFeatureInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateFeatureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateFeatureInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateFeatureInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkGroupMembership_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_updatedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkGroupMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateGroupMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateGroupMembershipInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateGroupMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateGroupMembershipInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkGroupSetting_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_createdBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkGroupSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateGroupSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateGroupSettingInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateGroupSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateGroupSettingInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkGroup_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_updatedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkGroup_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateGroupInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateGroupInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateGroupInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateGroupInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkHush_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_tags(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkHush_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateHushInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateHushInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateHushInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateHushInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkIntegration_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_deletedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkIntegration_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateIntegrationInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateIntegrationInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateIntegrationInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateIntegrationInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkInvite_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_deletedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkInvite_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateInviteInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateInviteInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateInviteInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateInviteInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkOauthProvider_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkOauthProvider_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_visibility(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_visibility(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkOauthProvider_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateOauthProviderInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateOauthProviderInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Visibility, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateOauthProviderInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOauthProviderInputᚄ(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(enums.Visibility) + fc.Result = res + return ec.marshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateOauthProviderInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GroupSettingVisibility does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkOhAuthTooToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkOhAuthTooToken_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_joinPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_joinPolicy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkOhAuthTooToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateOhAuthTooTokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateOhAuthTooTokenInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.JoinPolicy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateOhAuthTooTokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOhAuthTooTokenInputᚄ(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(enums.JoinPolicy) + fc.Result = res + return ec.marshalNGroupSettingJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateOhAuthTooTokenInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_joinPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GroupSettingJoinPolicy does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkOrgMembership_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_syncToSlack(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_syncToSlack(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkOrgMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateOrgMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateOrgMembershipInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SyncToSlack, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateOrgMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateOrgMembershipInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_syncToSlack(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkOrganizationSetting_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_syncToGithub(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_syncToGithub(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkOrganizationSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateOrganizationSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateOrganizationSettingInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SyncToGithub, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateOrganizationSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateOrganizationSettingInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_syncToGithub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkOrganization_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_groupID(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkOrganization_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateOrganizationInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateOrganizationInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateOrganizationInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateOrganizationInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkPersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkPersonalAccessToken_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSetting_group(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_group(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkPersonalAccessToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreatePersonalAccessTokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreatePersonalAccessTokenInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Group(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreatePersonalAccessTokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(*generated.Group) + fc.Result = res + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) +} - var zeroVal []*generated.CreatePersonalAccessTokenInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSetting_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSetting", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkSubscriber_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingBulkCreatePayload_groupSettings(ctx context.Context, field graphql.CollectedField, obj *GroupSettingBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingBulkCreatePayload_groupSettings(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkSubscriber_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateSubscriberInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateSubscriberInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupSettings, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateSubscriberInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.GroupSetting) + fc.Result = res + return ec.marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingᚄ(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateSubscriberInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingBulkCreatePayload_groupSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkTemplate_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingConnection_edges(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkTemplate_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateTemplateInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateTemplateInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateTemplateInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInputᚄ(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.GroupSettingEdge) + fc.Result = res + return ec.marshalOGroupSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingEdge(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateTemplateInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_GroupSettingEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_GroupSettingEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingEdge", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkUserSetting_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingConnection_pageInfo(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkUserSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateUserSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateUserSettingInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateUserSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInputᚄ(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateUserSettingInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createBulkWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkWebhook_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingConnection_totalCount(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkWebhook_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateWebhookInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateWebhookInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateWebhookInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateWebhookInputᚄ(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} - var zeroVal []*generated.CreateWebhookInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createContact_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingCreatePayload_groupSetting(ctx context.Context, field graphql.CollectedField, obj *GroupSettingCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingCreatePayload_groupSetting(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createContact_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateContactInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateContactInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupSetting, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateContactInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInput(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*generated.GroupSetting) + fc.Result = res + return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) +} - var zeroVal generated.CreateContactInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingCreatePayload_groupSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createDocumentData_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *GroupSettingDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingDeletePayload_deletedID(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createDocumentData_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateDocumentDataInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateDocumentDataInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInput(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - var zeroVal generated.CreateDocumentDataInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createEntitlementPlanFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createEntitlementPlanFeature_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingEdge_node(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createEntitlementPlanFeature_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateEntitlementPlanFeatureInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateEntitlementPlanFeatureInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateEntitlementPlanFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanFeatureInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(*generated.GroupSetting) + fc.Result = res + return ec.marshalOGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) +} - var zeroVal generated.CreateEntitlementPlanFeatureInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createEntitlementPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createEntitlementPlan_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingEdge_cursor(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createEntitlementPlan_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateEntitlementPlanInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateEntitlementPlanInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateEntitlementPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanInput(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} - var zeroVal generated.CreateEntitlementPlanInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createEntitlement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createEntitlement_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_id(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createEntitlement_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateEntitlementInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateEntitlementInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateEntitlementInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementInput(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - var zeroVal generated.CreateEntitlementInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createEntityType_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_historyTime(ctx, field) if err != nil { - return nil, err + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["input"] = arg0 - return args, nil + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createEntityType_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateEntityTypeInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateEntityTypeInput - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateEntityTypeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInput(ctx, tmp) +func (ec *executionContext) fieldContext_GroupSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal generated.CreateEntityTypeInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createEntity_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_ref(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createEntity_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateEntityInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateEntityInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateEntityInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal generated.CreateEntityInput - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createEvent_argsInput(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_GroupSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - args["input"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createEvent_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateEventInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateEventInput - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateEventInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInput(ctx, tmp) +func (ec *executionContext) _GroupSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_operation(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal generated.CreateEventInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createFeature_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createFeature_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateFeatureInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateFeatureInput - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateFeatureInput(ctx, tmp) +func (ec *executionContext) fieldContext_GroupSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GroupSettingHistoryOpType does not have child fields") + }, } - - var zeroVal generated.CreateFeatureInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createGroupMembership_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_createdAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createGroupMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateGroupMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateGroupMembershipInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateGroupMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal generated.CreateGroupMembershipInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createGroupSetting_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_updatedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createGroupSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateGroupSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateGroupSettingInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateGroupSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal generated.CreateGroupSettingInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createGroup_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_createdBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createGroup_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateGroupInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateGroupInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal generated.CreateGroupInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createHush_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_updatedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createHush_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateHushInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateHushInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateHushInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal generated.CreateHushInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createIntegration_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_tags(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createIntegration_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateIntegrationInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateIntegrationInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateIntegrationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} - var zeroVal generated.CreateIntegrationInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createInvite_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_deletedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createInvite_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateInviteInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateInviteInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateInviteInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal generated.CreateInviteInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createOauthProvider_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createOauthProvider_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_deletedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createOauthProvider_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateOauthProviderInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateOauthProviderInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateOauthProviderInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOauthProviderInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal generated.CreateOauthProviderInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createOhAuthTooToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createOhAuthTooToken_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_visibility(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_visibility(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createOhAuthTooToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateOhAuthTooTokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateOhAuthTooTokenInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Visibility, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateOhAuthTooTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOhAuthTooTokenInput(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(enums.Visibility) + fc.Result = res + return ec.marshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, field.Selections, res) +} - var zeroVal generated.CreateOhAuthTooTokenInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GroupSettingHistoryVisibility does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createOrgMembership_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_joinPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_joinPolicy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createOrgMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateOrgMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateOrgMembershipInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.JoinPolicy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateOrgMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInput(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(enums.JoinPolicy) + fc.Result = res + return ec.marshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, field.Selections, res) +} - var zeroVal generated.CreateOrgMembershipInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_joinPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type GroupSettingHistoryJoinPolicy does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createOrganizationSetting_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_syncToSlack(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_syncToSlack(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createOrganizationSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateOrganizationSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateOrganizationSettingInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SyncToSlack, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateOrganizationSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} - var zeroVal generated.CreateOrganizationSettingInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_syncToSlack(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createOrganization_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_syncToGithub(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_syncToGithub(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createOrganization_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateOrganizationInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateOrganizationInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SyncToGithub, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateOrganizationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} - var zeroVal generated.CreateOrganizationInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_syncToGithub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createPersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createPersonalAccessToken_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_groupID(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createPersonalAccessToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreatePersonalAccessTokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreatePersonalAccessTokenInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreatePersonalAccessTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal generated.CreatePersonalAccessTokenInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createSubscriber_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistoryConnection_edges(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createSubscriber_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateSubscriberInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateSubscriberInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateSubscriberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.GroupSettingHistoryEdge) + fc.Result = res + return ec.marshalOGroupSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryEdge(ctx, field.Selections, res) +} - var zeroVal generated.CreateSubscriberInput - return zeroVal, nil +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) { + switch field.Name { + case "node": + return ec.fieldContext_GroupSettingHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_GroupSettingHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingHistoryEdge", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createTFASetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createTFASetting_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistoryConnection_pageInfo(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createTFASetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateTFASettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateTFASettingInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateTFASettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTFASettingInput(ctx, tmp) +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) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, } - - var zeroVal generated.CreateTFASettingInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createTemplate_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistoryConnection_totalCount(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createTemplate_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateTemplateInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateTemplateInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateTemplateInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInput(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} - var zeroVal generated.CreateTemplateInput - return zeroVal, nil +func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_totalCount(_ 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 nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createUserSetting_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistoryEdge_node(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createUserSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateUserSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateUserSettingInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateUserSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(*generated.GroupSettingHistory) + fc.Result = res + return ec.marshalOGroupSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistory(ctx, field.Selections, res) +} - var zeroVal generated.CreateUserSettingInput - return zeroVal, nil +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) { + switch field.Name { + case "id": + return ec.fieldContext_GroupSettingHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_GroupSettingHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_GroupSettingHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_GroupSettingHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSettingHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSettingHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSettingHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSettingHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSettingHistory_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSettingHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSettingHistory_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSettingHistory_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSettingHistory_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSettingHistory_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSettingHistory_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSettingHistory_groupID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingHistory", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_createUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createUser_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistoryEdge_cursor(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - arg1, err := ec.field_Mutation_createUser_argsAvatarFile(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) if err != nil { - return nil, err - } - args["avatarFile"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_createUser_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateUserInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateUserInput - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateUserInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserInput(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal generated.CreateUserInput - return zeroVal, nil + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_createUser_argsAvatarFile( - ctx context.Context, - rawArgs map[string]interface{}, -) (*graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["avatarFile"] - if !ok { - var zeroVal *graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarFile")) - if tmp, ok := rawArgs["avatarFile"]; ok { - return ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) fieldContext_GroupSettingHistoryEdge_cursor(_ 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 nil, errors.New("field of type Cursor does not have child fields") + }, } - - var zeroVal *graphql.Upload - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_createWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createWebhook_argsInput(ctx, rawArgs) +func (ec *executionContext) _GroupSettingSearchResult_groupSettings(ctx context.Context, field graphql.CollectedField, obj *GroupSettingSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingSearchResult_groupSettings(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createWebhook_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateWebhookInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateWebhookInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupSettings, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateWebhookInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateWebhookInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal generated.CreateWebhookInput - return zeroVal, nil + res := resTmp.([]*generated.GroupSetting) + fc.Result = res + return ec.marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingᚄ(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_deleteAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteAPIToken_argsID(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_GroupSettingSearchResult_groupSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + }, } - args["id"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteAPIToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) _GroupSettingUpdatePayload_groupSetting(ctx context.Context, field graphql.CollectedField, obj *GroupSettingUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingUpdatePayload_groupSetting(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteContact_argsID(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupSetting, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteContact_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*generated.GroupSetting) + fc.Result = res + return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) fieldContext_GroupSettingUpdatePayload_groupSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteDocumentData_argsID(ctx, rawArgs) +func (ec *executionContext) _GroupUpdatePayload_group(ctx context.Context, field graphql.CollectedField, obj *GroupUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupUpdatePayload_group(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteDocumentData_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Group, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*generated.Group) + fc.Result = res + return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_deleteEntitlementPlanFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteEntitlementPlanFeature_argsID(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_GroupUpdatePayload_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, } - args["id"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteEntitlementPlanFeature_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) _Hush_id(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_id(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteEntitlementPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteEntitlementPlan_argsID(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteEntitlementPlan_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) fieldContext_Hush_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteEntitlement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteEntitlement_argsID(ctx, rawArgs) +func (ec *executionContext) _Hush_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_createdAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteEntitlement_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_deleteEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteEntityType_argsID(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Hush_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - args["id"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteEntityType_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) _Hush_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_updatedAt(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteEntity_argsID(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteEntity_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) fieldContext_Hush_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteEvent_argsID(ctx, rawArgs) +func (ec *executionContext) _Hush_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_createdBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteEvent_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Hush_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_deleteFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteFeature_argsID(ctx, rawArgs) +func (ec *executionContext) _Hush_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_updatedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteFeature_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Hush_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_deleteFile_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteFile_argsID(ctx, rawArgs) +func (ec *executionContext) _Hush_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_deletedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteFile_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Hush_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_deleteGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteGroupMembership_argsID(ctx, rawArgs) +func (ec *executionContext) _Hush_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_deletedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteGroupMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) fieldContext_Hush_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteGroupSetting_argsID(ctx, rawArgs) +func (ec *executionContext) _Hush_name(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_name(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteGroupSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_deleteGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteGroup_argsID(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Hush_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - args["id"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteGroup_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) _Hush_description(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_description(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteHush_argsID(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteHush_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) fieldContext_Hush_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteIntegration_argsID(ctx, rawArgs) +func (ec *executionContext) _Hush_kind(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_kind(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteIntegration_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Kind, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_deleteInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteInvite_argsID(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Hush_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - args["id"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteInvite_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) _Hush_secretName(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_secretName(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteOauthProvider_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteOauthProvider_argsID(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SecretName, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteOauthProvider_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) fieldContext_Hush_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteOhAuthTooToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteOhAuthTooToken_argsID(ctx, rawArgs) +func (ec *executionContext) _Hush_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_integrations(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteOhAuthTooToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Integrations(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.Integration) + fc.Result = res + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Hush_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "oauth2tokens": + return ec.fieldContext_Integration_oauth2tokens(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + case "webhooks": + return ec.fieldContext_Integration_webhooks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_deleteOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteOrgMembership_argsID(ctx, rawArgs) +func (ec *executionContext) _Hush_organization(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_organization(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteOrgMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Organization(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Hush_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_deleteOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteOrganizationSetting_argsID(ctx, rawArgs) +func (ec *executionContext) _Hush_events(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_events(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteOrganizationSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Hush_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Hush", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_deleteOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteOrganization_argsID(ctx, rawArgs) +func (ec *executionContext) _HushBulkCreatePayload_hushes(ctx context.Context, field graphql.CollectedField, obj *HushBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushBulkCreatePayload_hushes(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteOrganization_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Hushes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.Hush) + fc.Result = res + return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_HushBulkCreatePayload_hushes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_deletePersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deletePersonalAccessToken_argsID(ctx, rawArgs) +func (ec *executionContext) _HushConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.HushConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushConnection_edges(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deletePersonalAccessToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.HushEdge) + fc.Result = res + return ec.marshalOHushEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushEdge(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_HushConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_HushEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_HushEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushEdge", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_deleteSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteSubscriber_argsEmail(ctx, rawArgs) +func (ec *executionContext) _HushConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.HushConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushConnection_pageInfo(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["email"] = arg0 - arg1, err := ec.field_Mutation_deleteSubscriber_argsOwnerID(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["ownerID"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteSubscriber_argsEmail( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["email"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - if tmp, ok := rawArgs["email"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) fieldContext_HushConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteSubscriber_argsOwnerID( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["ownerID"] - if !ok { - var zeroVal *string - return zeroVal, nil +func (ec *executionContext) _HushConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.HushConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - if tmp, ok := rawArgs["ownerID"]; ok { - return ec.unmarshalOID2ᚖstring(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} - var zeroVal *string - return zeroVal, nil +func (ec *executionContext) fieldContext_HushConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_deleteTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteTemplate_argsID(ctx, rawArgs) +func (ec *executionContext) _HushCreatePayload_hush(ctx context.Context, field graphql.CollectedField, obj *HushCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushCreatePayload_hush(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteTemplate_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Hush, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*generated.Hush) + fc.Result = res + return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_deleteUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteUser_argsID(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_HushCreatePayload_hush(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + }, } - args["id"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Mutation_deleteUser_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) _HushDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *HushDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteWebhook_argsID(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteWebhook_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) fieldContext_HushDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateAPIToken_argsID(ctx, rawArgs) +func (ec *executionContext) _HushEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.HushEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushEdge_node(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateAPIToken_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateAPIToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*generated.Hush) + fc.Result = res + return ec.marshalOHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateAPIToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateAPITokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateAPITokenInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateAPITokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateAPITokenInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + }, } - - var zeroVal generated.UpdateAPITokenInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateContact_argsID(ctx, rawArgs) +func (ec *executionContext) _HushEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.HushEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushEdge_cursor(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateContact_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateContact_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateContact_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateContactInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateContactInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateContactInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateContactInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, } - - var zeroVal generated.UpdateContactInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateDocumentData_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_id(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateDocumentData_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateDocumentData_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateDocumentData_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateDocumentDataInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateDocumentDataInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateDocumentDataInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, } - - var zeroVal generated.UpdateDocumentDataInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateEntitlementPlanFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateEntitlementPlanFeature_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_historyTime(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateEntitlementPlanFeature_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateEntitlementPlanFeature_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateEntitlementPlanFeature_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateEntitlementPlanFeatureInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateEntitlementPlanFeatureInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateEntitlementPlanFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntitlementPlanFeatureInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal generated.UpdateEntitlementPlanFeatureInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateEntitlementPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateEntitlementPlan_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_ref(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateEntitlementPlan_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateEntitlementPlan_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateEntitlementPlan_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateEntitlementPlanInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateEntitlementPlanInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateEntitlementPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntitlementPlanInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal generated.UpdateEntitlementPlanInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateEntitlement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateEntitlement_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_operation(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateEntitlement_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateEntitlement_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateEntitlement_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateEntitlementInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateEntitlementInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateEntitlementInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntitlementInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HushHistoryOpType does not have child fields") + }, } - - var zeroVal generated.UpdateEntitlementInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateEntityType_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_createdAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateEntityType_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateEntityType_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateEntityType_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateEntityTypeInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateEntityTypeInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateEntityTypeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntityTypeInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal generated.UpdateEntityTypeInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateEntity_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_updatedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateEntity_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateEntity_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateEntity_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateEntityInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateEntityInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateEntityInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntityInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal generated.UpdateEntityInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateEvent_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_createdBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateEvent_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateEvent_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateEvent_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateEventInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateEventInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateEventInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEventInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal generated.UpdateEventInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateFeature_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_updatedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateFeature_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateFeature_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateFeature_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateFeatureInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateFeatureInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateFeatureInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal generated.UpdateFeatureInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateGroupMembership_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_deletedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateGroupMembership_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateGroupMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateGroupMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateGroupMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateGroupMembershipInput - return zeroVal, nil +func (ec *executionContext) _HushHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateGroupMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupMembershipInput(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal generated.UpdateGroupMembershipInput - return zeroVal, nil +func (ec *executionContext) fieldContext_HushHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_updateGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateGroupSetting_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_name(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateGroupSetting_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateGroupSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateGroupSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateGroupSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateGroupSettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateGroupSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupSettingInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal generated.UpdateGroupSettingInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateGroup_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_description(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateGroup_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateGroup_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateGroup_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateGroupInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateGroupInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal generated.UpdateGroupInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateHush_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_kind(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_kind(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateHush_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Kind, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateHush_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateHush_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateHushInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateHushInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateHushInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateHushInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal generated.UpdateHushInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateIntegration_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistory_secretName(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_secretName(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateIntegration_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SecretName, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateIntegration_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateIntegration_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateIntegrationInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateIntegrationInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateIntegrationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateIntegrationInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistory_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal generated.UpdateIntegrationInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateInvite_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistoryConnection_edges(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateInvite_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateInvite_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.([]*generated.HushHistoryEdge) + fc.Result = res + return ec.marshalOHushHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateInvite_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateInviteInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateInviteInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateInviteInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateInviteInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_HushHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_HushHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushHistoryEdge", field.Name) + }, } - - var zeroVal generated.UpdateInviteInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateOauthProvider_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateOauthProvider_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistoryConnection_pageInfo(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateOauthProvider_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateOauthProvider_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateOauthProvider_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateOauthProviderInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateOauthProviderInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateOauthProviderInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOauthProviderInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, } - - var zeroVal generated.UpdateOauthProviderInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateOhAuthTooToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateOhAuthTooToken_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistoryConnection_totalCount(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateOhAuthTooToken_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateOhAuthTooToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateOhAuthTooToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateOhAuthTooTokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateOhAuthTooTokenInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateOhAuthTooTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOhAuthTooTokenInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, } - - var zeroVal generated.UpdateOhAuthTooTokenInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateOrgMembership_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistoryEdge_node(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateOrgMembership_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateOrgMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*generated.HushHistory) + fc.Result = res + return ec.marshalOHushHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistory(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateOrgMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateOrgMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateOrgMembershipInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateOrgMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrgMembershipInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_HushHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_HushHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_HushHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_HushHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_HushHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_HushHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_HushHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_HushHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_HushHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_HushHistory_deletedBy(ctx, field) + case "name": + return ec.fieldContext_HushHistory_name(ctx, field) + case "description": + return ec.fieldContext_HushHistory_description(ctx, field) + case "kind": + return ec.fieldContext_HushHistory_kind(ctx, field) + case "secretName": + return ec.fieldContext_HushHistory_secretName(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushHistory", field.Name) + }, } - - var zeroVal generated.UpdateOrgMembershipInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateOrganizationSetting_argsID(ctx, rawArgs) +func (ec *executionContext) _HushHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistoryEdge_cursor(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateOrganizationSetting_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateOrganizationSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateOrganizationSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateOrganizationSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateOrganizationSettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateOrganizationSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationSettingInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, } - - var zeroVal generated.UpdateOrganizationSettingInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateOrganization_argsID(ctx, rawArgs) +func (ec *executionContext) _HushUpdatePayload_hush(ctx context.Context, field graphql.CollectedField, obj *HushUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushUpdatePayload_hush(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateOrganization_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Hush, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateOrganization_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*generated.Hush) + fc.Result = res + return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateOrganization_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateOrganizationInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateOrganizationInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateOrganizationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationInput(ctx, tmp) +func (ec *executionContext) fieldContext_HushUpdatePayload_hush(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + }, } - - var zeroVal generated.UpdateOrganizationInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updatePersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updatePersonalAccessToken_argsID(ctx, rawArgs) +func (ec *executionContext) _Integration_id(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_id(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updatePersonalAccessToken_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updatePersonalAccessToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) fieldContext_Integration_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updatePersonalAccessToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdatePersonalAccessTokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdatePersonalAccessTokenInput - return zeroVal, nil +func (ec *executionContext) _Integration_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_createdAt(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdatePersonalAccessTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdatePersonalAccessTokenInput(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal generated.UpdatePersonalAccessTokenInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Integration_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_updateSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateSubscriber_argsEmail(ctx, rawArgs) +func (ec *executionContext) _Integration_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_updatedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["email"] = arg0 - arg1, err := ec.field_Mutation_updateSubscriber_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateSubscriber_argsEmail( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["email"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - if tmp, ok := rawArgs["email"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateSubscriber_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateSubscriberInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateSubscriberInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateSubscriberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateSubscriberInput(ctx, tmp) +func (ec *executionContext) fieldContext_Integration_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal generated.UpdateSubscriberInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateTFASetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateTFASetting_argsInput(ctx, rawArgs) +func (ec *executionContext) _Integration_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_createdBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_updateTFASetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateTFASettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateTFASettingInput - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateTFASettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTFASettingInput(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal generated.UpdateTFASettingInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Integration_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Mutation_updateTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateTemplate_argsID(ctx, rawArgs) +func (ec *executionContext) _Integration_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_updatedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateTemplate_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateTemplate_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateTemplate_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateTemplateInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateTemplateInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateTemplateInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTemplateInput(ctx, tmp) +func (ec *executionContext) fieldContext_Integration_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal generated.UpdateTemplateInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateUserSetting_argsID(ctx, rawArgs) +func (ec *executionContext) _Integration_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_tags(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateUserSetting_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateUserSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateUserSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateUserSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateUserSettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateUserSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateUserSettingInput(ctx, tmp) +func (ec *executionContext) fieldContext_Integration_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal generated.UpdateUserSettingInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateUser_argsID(ctx, rawArgs) +func (ec *executionContext) _Integration_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_deletedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateUser_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["input"] = arg1 - arg2, err := ec.field_Mutation_updateUser_argsAvatarFile(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + return graphql.Null } - args["avatarFile"] = arg2 - return args, nil + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateUser_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) fieldContext_Integration_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateUser_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateUserInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateUserInput - return zeroVal, nil +func (ec *executionContext) _Integration_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_deletedBy(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateUserInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateUserInput(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal generated.UpdateUserInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateUser_argsAvatarFile( - ctx context.Context, - rawArgs map[string]interface{}, -) (*graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["avatarFile"] - if !ok { - var zeroVal *graphql.Upload - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarFile")) - if tmp, ok := rawArgs["avatarFile"]; ok { - return ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) +func (ec *executionContext) fieldContext_Integration_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *graphql.Upload - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Mutation_updateWebhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateWebhook_argsID(ctx, rawArgs) +func (ec *executionContext) _Integration_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_ownerID(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateWebhook_argsInput(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateWebhook_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Mutation_updateWebhook_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateWebhookInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateWebhookInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateWebhookInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateWebhookInput(ctx, tmp) +func (ec *executionContext) fieldContext_Integration_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, } - - var zeroVal generated.UpdateWebhookInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Organization_children_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Organization_children_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Integration_name(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_name(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Organization_children_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Organization_children_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Organization_children_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Integration_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - args["last"] = arg3 - arg4, err := ec.field_Organization_children_argsOrderBy(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Integration_description(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_description(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["orderBy"] = arg4 - arg5, err := ec.field_Organization_children_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Organization_children_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Integration_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Organization_children_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Integration_kind(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_kind(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Kind, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Organization_children_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Integration_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Organization_children_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Integration_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_owner(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Organization_children_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.OrganizationOrder - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrder(ctx, tmp) +func (ec *executionContext) fieldContext_Integration_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, } - - var zeroVal *generated.OrganizationOrder - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Organization_children_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrganizationWhereInput - return zeroVal, nil +func (ec *executionContext) _Integration_secrets(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_secrets(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Secrets(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.Hush) + fc.Result = res + return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) +} - var zeroVal *generated.OrganizationWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Integration_secrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) +func (ec *executionContext) _Integration_oauth2tokens(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_oauth2tokens(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["name"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query___type_argsName( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["name"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Oauth2tokens(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - if tmp, ok := rawArgs["name"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.([]*generated.OhAuthTooToken) + fc.Result = res + return ec.marshalOOhAuthTooToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenᚄ(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_adminAPITokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminAPITokenSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Integration_oauth2tokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_OhAuthTooToken_id(ctx, field) + case "tags": + return ec.fieldContext_OhAuthTooToken_tags(ctx, field) + case "clientID": + return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) + case "scopes": + return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) + case "nonce": + return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) + case "claimsUserID": + return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) + case "claimsUsername": + return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) + case "claimsEmail": + return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) + case "claimsEmailVerified": + return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) + case "claimsGroups": + return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) + case "claimsPreferredUsername": + return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) + case "connectorID": + return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) + case "connectorData": + return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) + case "lastUsed": + return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) + case "integration": + return ec.fieldContext_OhAuthTooToken_integration(ctx, field) + case "events": + return ec.fieldContext_OhAuthTooToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) + }, } - args["query"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Query_adminAPITokenSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) _Integration_events(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_events(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminContactSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminContactSearch_argsQuery(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events(ctx) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminContactSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) fieldContext_Integration_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_adminDocumentDataSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminDocumentDataSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Integration_webhooks(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_webhooks(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminDocumentDataSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Webhooks(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.([]*generated.Webhook) + fc.Result = res + return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookᚄ(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_adminEntitlementPlanFeatureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminEntitlementPlanFeatureSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Integration_webhooks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Integration", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Webhook_id(ctx, field) + case "createdAt": + return ec.fieldContext_Webhook_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Webhook_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Webhook_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Webhook_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Webhook_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Webhook_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Webhook_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Webhook_ownerID(ctx, field) + case "name": + return ec.fieldContext_Webhook_name(ctx, field) + case "description": + return ec.fieldContext_Webhook_description(ctx, field) + case "destinationURL": + return ec.fieldContext_Webhook_destinationURL(ctx, field) + case "enabled": + return ec.fieldContext_Webhook_enabled(ctx, field) + case "failures": + return ec.fieldContext_Webhook_failures(ctx, field) + case "lastError": + return ec.fieldContext_Webhook_lastError(ctx, field) + case "lastResponse": + return ec.fieldContext_Webhook_lastResponse(ctx, field) + case "owner": + return ec.fieldContext_Webhook_owner(ctx, field) + case "events": + return ec.fieldContext_Webhook_events(ctx, field) + case "integrations": + return ec.fieldContext_Webhook_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) + }, } - args["query"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Query_adminEntitlementPlanFeatureSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) _IntegrationBulkCreatePayload_integrations(ctx context.Context, field graphql.CollectedField, obj *IntegrationBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationBulkCreatePayload_integrations(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminEntitlementPlanSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminEntitlementPlanSearch_argsQuery(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Integrations, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminEntitlementPlanSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.Integration) + fc.Result = res + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationBulkCreatePayload_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "oauth2tokens": + return ec.fieldContext_Integration_oauth2tokens(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + case "webhooks": + return ec.fieldContext_Integration_webhooks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_adminEntitlementSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminEntitlementSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _IntegrationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationConnection_edges(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminEntitlementSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.([]*generated.IntegrationEdge) + fc.Result = res + return ec.marshalOIntegrationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationEdge(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_adminEntitySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminEntitySearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_IntegrationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_IntegrationEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_IntegrationEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationEdge", field.Name) + }, } - args["query"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Query_adminEntitySearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) _IntegrationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminEntityTypeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminEntityTypeSearch_argsQuery(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminEntityTypeSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_adminEventSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminEventSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _IntegrationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationConnection_totalCount(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminEventSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_adminFeatureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminFeatureSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_IntegrationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, } - args["query"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Query_adminFeatureSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) _IntegrationCreatePayload_integration(ctx context.Context, field graphql.CollectedField, obj *IntegrationCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationCreatePayload_integration(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminFileSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminFileSearch_argsQuery(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Integration, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminFileSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*generated.Integration) + fc.Result = res + return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationCreatePayload_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "oauth2tokens": + return ec.fieldContext_Integration_oauth2tokens(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + case "webhooks": + return ec.fieldContext_Integration_webhooks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_adminGroupSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminGroupSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _IntegrationDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *IntegrationDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationDeletePayload_deletedID(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminGroupSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_adminGroupSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminGroupSettingSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_IntegrationDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, } - args["query"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Query_adminGroupSettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) _IntegrationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationEdge_node(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminIntegrationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminIntegrationSearch_argsQuery(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminIntegrationSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(*generated.Integration) + fc.Result = res + return ec.marshalOIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "oauth2tokens": + return ec.fieldContext_Integration_oauth2tokens(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + case "webhooks": + return ec.fieldContext_Integration_webhooks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_adminOauthProviderSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminOauthProviderSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _IntegrationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationEdge_cursor(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminOauthProviderSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_adminOhAuthTooTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminOhAuthTooTokenSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_IntegrationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, } - args["query"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Query_adminOhAuthTooTokenSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) _IntegrationHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_id(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminOrganizationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminOrganizationSearch_argsQuery(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminOrganizationSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_adminOrganizationSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminOrganizationSettingSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _IntegrationHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_historyTime(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminOrganizationSettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_adminPersonalAccessTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminPersonalAccessTokenSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_IntegrationHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - args["query"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Query_adminPersonalAccessTokenSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) _IntegrationHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_ref(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminSearch_argsQuery(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_adminSubscriberSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminSubscriberSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _IntegrationHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_operation(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminSubscriberSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNIntegrationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_adminTFASettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminTFASettingSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_IntegrationHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type IntegrationHistoryOpType does not have child fields") + }, } - args["query"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Query_adminTFASettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) _IntegrationHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminTemplateSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminTemplateSearch_argsQuery(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminTemplateSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_adminUserSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminUserSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _IntegrationHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_updatedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminUserSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_adminUserSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminUserSettingSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_IntegrationHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - args["query"] = arg0 - return args, nil + return fc, nil } -func (ec *executionContext) field_Query_adminUserSettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) _IntegrationHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminWebhookSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminWebhookSearch_argsQuery(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminWebhookSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_apiTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_apiTokenSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _IntegrationHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_updatedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_apiTokenSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_IntegrationHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Query_apiToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_apiToken_argsID(ctx, rawArgs) +func (ec *executionContext) _IntegrationHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_tags(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_apiToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_apiTokens_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_apiTokens_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_apiTokens_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_IntegrationHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - args["first"] = arg1 - arg2, err := ec.field_Query_apiTokens_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _IntegrationHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_deletedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_apiTokens_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_apiTokens_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_apiTokens_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_apiTokens_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _IntegrationHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_apiTokens_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_apiTokens_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _IntegrationHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_ownerID(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_apiTokens_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.APITokenWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.APITokenWhereInput - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *generated.APITokenWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_auditLogs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_auditLogs_argsAfter(ctx, rawArgs) +func (ec *executionContext) _IntegrationHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_name(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_auditLogs_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_auditLogs_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_auditLogs_argsLast(ctx, rawArgs) + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_IntegrationHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _IntegrationHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_description(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_auditLogs_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_auditLogs_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_auditLogs_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _IntegrationHistory_kind(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_kind(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Kind, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_auditLogs_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistory_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_auditLogs_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _IntegrationHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_auditLogs_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*AuditLogWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *AuditLogWhereInput - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.IntegrationHistoryEdge) + fc.Result = res + return ec.marshalOIntegrationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryEdge(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOAuditLogWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_IntegrationHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_IntegrationHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationHistoryEdge", field.Name) + }, } - - var zeroVal *AuditLogWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_contactHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_contactHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _IntegrationHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistoryConnection_pageInfo(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_contactHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_contactHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_contactHistories_argsLast(ctx, rawArgs) + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_IntegrationHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _IntegrationHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistoryConnection_totalCount(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_contactHistories_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_contactHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_contactHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _IntegrationHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistoryEdge_node(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_contactHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(*generated.IntegrationHistory) + fc.Result = res + return ec.marshalOIntegrationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistory(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_IntegrationHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_IntegrationHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_IntegrationHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_IntegrationHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_IntegrationHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_IntegrationHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_IntegrationHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_IntegrationHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_IntegrationHistory_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_IntegrationHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_IntegrationHistory_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_IntegrationHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_IntegrationHistory_name(ctx, field) + case "description": + return ec.fieldContext_IntegrationHistory_description(ctx, field) + case "kind": + return ec.fieldContext_IntegrationHistory_kind(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationHistory", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_contactHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _IntegrationHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistoryEdge_cursor(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_contactHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ContactHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ContactHistoryWhereInput - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOContactHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_IntegrationHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, } - - var zeroVal *generated.ContactHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_contactSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_contactSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _IntegrationSearchResult_integrations(ctx context.Context, field graphql.CollectedField, obj *IntegrationSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationSearchResult_integrations(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_contactSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Integrations, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.Integration) + fc.Result = res + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_IntegrationSearchResult_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationSearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "oauth2tokens": + return ec.fieldContext_Integration_oauth2tokens(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + case "webhooks": + return ec.fieldContext_Integration_webhooks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Query_contact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_contact_argsID(ctx, rawArgs) +func (ec *executionContext) _IntegrationUpdatePayload_integration(ctx context.Context, field graphql.CollectedField, obj *IntegrationUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationUpdatePayload_integration(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_contact_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Integration, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*generated.Integration) + fc.Result = res + return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_IntegrationUpdatePayload_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "oauth2tokens": + return ec.fieldContext_Integration_oauth2tokens(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + case "webhooks": + return ec.fieldContext_Integration_webhooks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Query_contacts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_contacts_argsAfter(ctx, rawArgs) +func (ec *executionContext) _InternalPolicy_id(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_id(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_contacts_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_contacts_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_contacts_argsLast(ctx, rawArgs) + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicy_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _InternalPolicy_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_createdAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_contacts_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_contacts_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_contacts_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicy_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_contacts_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_contacts_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicy_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_createdBy(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_contacts_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ContactWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ContactWhereInput - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *generated.ContactWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_documentDataHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_documentDataHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _InternalPolicy_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_updatedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_documentDataHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_documentDataHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_documentDataHistories_argsLast(ctx, rawArgs) + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicy_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _InternalPolicy_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_deletedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_documentDataHistories_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_documentDataHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_documentDataHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicy_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_documentDataHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_documentDataHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicy_tags(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_tags(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_documentDataHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.DocumentDataHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.DocumentDataHistoryWhereInput - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalODocumentDataHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *generated.DocumentDataHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_documentDataSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_documentDataSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _InternalPolicy_name(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_name(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_documentDataSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_documentDataSlice_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_documentDataSlice_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_documentDataSlice_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_documentDataSlice_argsBefore(ctx, rawArgs) +func (ec *executionContext) _InternalPolicy_description(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_description(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_documentDataSlice_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_documentDataSlice_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_documentDataSlice_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_documentDataSlice_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicy_status(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_status(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_documentDataSlice_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_documentDataSlice_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicy_policyType(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_policyType(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PolicyType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_documentDataSlice_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.DocumentDataWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.DocumentDataWhereInput - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_policyType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *generated.DocumentDataWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_documentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_documentData_argsID(ctx, rawArgs) +func (ec *executionContext) _InternalPolicy_version(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_version(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_documentData_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_InternalPolicy_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Query_entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entities_argsAfter(ctx, rawArgs) +func (ec *executionContext) _InternalPolicy_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_entities_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PurposeAndScope, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_entities_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_entities_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicy_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_entities_argsOrderBy(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _InternalPolicy_background(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_background(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_entities_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Background, nil + }) if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_entities_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_entities_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entities_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _InternalPolicy_details(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_details(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entities_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entities_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.EntityOrder - return zeroVal, nil +func (ec *executionContext) _InternalPolicy_controlobjectives(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_controlobjectives(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOEntityOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Controlobjectives(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.EntityOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entities_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntityWhereInput - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.ControlObjective) + fc.Result = res + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_controlobjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "policy": + return ec.fieldContext_ControlObjective_policy(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + }, } - - var zeroVal *generated.EntityWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitlementHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_entitlementHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_entitlementHistories_argsBefore(ctx, rawArgs) +func (ec *executionContext) _InternalPolicy_controls(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_controls(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_entitlementHistories_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Controls(ctx) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_entitlementHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.([]*generated.Control) + fc.Result = res + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_entitlementHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicy_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_procedures(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Procedures(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitlementHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.Procedure) + fc.Result = res + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "control": + return ec.fieldContext_Procedure_control(ctx, field) + case "internalpolicy": + return ec.fieldContext_Procedure_internalpolicy(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicy_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_narratives(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Narratives(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitlementHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntitlementHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntitlementHistoryWhereInput - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.Narrative) + fc.Result = res + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntitlementHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicy_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "policy": + return ec.fieldContext_Narrative_policy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlobjective": + return ec.fieldContext_Narrative_controlobjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + }, } - - var zeroVal *generated.EntitlementHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlanFeatureHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitlementPlanFeatureHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_entitlementPlanFeatureHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_entitlementPlanFeatureHistories_argsBefore(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyBulkCreatePayload_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *InternalPolicyBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyBulkCreatePayload_internalPolicies(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_entitlementPlanFeatureHistories_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.InternalPolicies, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_entitlementPlanFeatureHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.([]*generated.InternalPolicy) + fc.Result = res + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_entitlementPlanFeatureHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyBulkCreatePayload_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_InternalPolicy_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlanFeatureHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyConnection_edges(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitlementPlanFeatureHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.InternalPolicyEdge) + fc.Result = res + return ec.marshalOInternalPolicyEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyEdge(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_InternalPolicyEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_InternalPolicyEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyEdge", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlanFeatureHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitlementPlanFeatureHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntitlementPlanFeatureHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntitlementPlanFeatureHistoryWhereInput - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntitlementPlanFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, } - - var zeroVal *generated.EntitlementPlanFeatureHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlanFeatureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitlementPlanFeatureSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyConnection_totalCount(ctx, field) if err != nil { - return nil, err + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["query"] = arg0 - return args, nil + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_entitlementPlanFeatureSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlanFeature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitlementPlanFeature_argsID(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyCreatePayload_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *InternalPolicyCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyCreatePayload_internalPolicy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entitlementPlanFeature_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.InternalPolicy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*generated.InternalPolicy) + fc.Result = res + return ec.marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_InternalPolicyCreatePayload_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_InternalPolicy_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlanFeatures_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitlementPlanFeatures_argsAfter(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *InternalPolicyDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyDeletePayload_deletedID(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_entitlementPlanFeatures_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_entitlementPlanFeatures_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_entitlementPlanFeatures_argsLast(ctx, rawArgs) + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicyDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _InternalPolicyEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyEdge_node(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_entitlementPlanFeatures_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_entitlementPlanFeatures_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(*generated.InternalPolicy) + fc.Result = res + return ec.marshalOInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_InternalPolicy_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlanFeatures_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyEdge_cursor(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitlementPlanFeatures_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlanFeatures_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_id(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitlementPlanFeatures_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntitlementPlanFeatureWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntitlementPlanFeatureWhereInput - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, } - - var zeroVal *generated.EntitlementPlanFeatureWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlanHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitlementPlanHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_historyTime(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_entitlementPlanHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.HistoryTime, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_entitlementPlanHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_entitlementPlanHistories_argsLast(ctx, rawArgs) + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicyHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _InternalPolicyHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_ref(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_entitlementPlanHistories_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Ref, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_entitlementPlanHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlanHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_operation(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitlementPlanHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNInternalPolicyHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type InternalPolicyHistoryOpType does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlanHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitlementPlanHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntitlementPlanHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntitlementPlanHistoryWhereInput - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntitlementPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal *generated.EntitlementPlanHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlanSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitlementPlanSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_updatedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entitlementPlanSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitlementPlan_argsID(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_createdBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entitlementPlan_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_InternalPolicyHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlans_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitlementPlans_argsAfter(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_updatedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_entitlementPlans_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_entitlementPlans_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_entitlementPlans_argsLast(ctx, rawArgs) + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _InternalPolicyHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_deletedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_entitlementPlans_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_entitlementPlans_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlans_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitlementPlans_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementPlans_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_tags(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitlementPlans_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntitlementPlanWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntitlementPlanWhereInput - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntitlementPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *generated.EntitlementPlanWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlementSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitlementSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_name(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entitlementSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_InternalPolicyHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Query_entitlement_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitlement_argsID(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_description(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entitlement_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_entitlements_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitlements_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_entitlements_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_InternalPolicyHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - args["first"] = arg1 - arg2, err := ec.field_Query_entitlements_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _InternalPolicyHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_status(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_entitlements_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_entitlements_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_entitlements_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlements_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyHistory_policyType(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_policyType(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PolicyType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitlements_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistory_policyType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entitlements_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_version(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Version, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitlements_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntitlementWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntitlementWhereInput - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntitlementWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *generated.EntitlementWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entityHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entityHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyHistory_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_purposeAndScope(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_entityHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PurposeAndScope, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_entityHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_entityHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicyHistory_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_entityHistories_argsOrderBy(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _InternalPolicyHistory_background(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_background(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_entityHistories_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Background, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_entityHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistory_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entityHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_details(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entityHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.EntityHistoryOrder - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.InternalPolicyHistoryEdge) + fc.Result = res + return ec.marshalOInternalPolicyHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryEdge(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOEntityHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryOrder(ctx, tmp) +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) { + switch field.Name { + case "node": + return ec.fieldContext_InternalPolicyHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_InternalPolicyHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyHistoryEdge", field.Name) + }, } - - var zeroVal *generated.EntityHistoryOrder - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entityHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntityHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) _InternalPolicyHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistoryConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntityHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInput(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} - var zeroVal *generated.EntityHistoryWhereInput - return zeroVal, nil +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) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Query_entitySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitySearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistoryConnection_totalCount(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entitySearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_totalCount(_ 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 nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Query_entityTypeHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entityTypeHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _InternalPolicyHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistoryEdge_node(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_entityTypeHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_entityTypeHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_entityTypeHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*generated.InternalPolicyHistory) + fc.Result = res + return ec.marshalOInternalPolicyHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistory(ctx, field.Selections, res) +} + +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) { + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicyHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_InternalPolicyHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_InternalPolicyHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_InternalPolicyHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicyHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicyHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicyHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicyHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicyHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicyHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicyHistory_tags(ctx, field) + case "name": + return ec.fieldContext_InternalPolicyHistory_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicyHistory_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicyHistory_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicyHistory_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicyHistory_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicyHistory_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicyHistory_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicyHistory_details(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyHistory", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_entityTypeHistories_argsOrderBy(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _InternalPolicyHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistoryEdge_cursor(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_entityTypeHistories_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_entityTypeHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyHistoryEdge_cursor(_ 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 nil, errors.New("field of type Cursor does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entityTypeHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicySearchResult_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *InternalPolicySearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicySearchResult_internalPolicies(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.InternalPolicies, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypeHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.InternalPolicy) + fc.Result = res + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicySearchResult_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicySearchResult", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_InternalPolicy_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entityTypeHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InternalPolicyUpdatePayload_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *InternalPolicyUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyUpdatePayload_internalPolicy(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.InternalPolicy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypeHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityTypeHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.EntityTypeHistoryOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*generated.InternalPolicy) + fc.Result = res + return ec.marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOEntityTypeHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryOrder(ctx, tmp) +func (ec *executionContext) fieldContext_InternalPolicyUpdatePayload_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_InternalPolicy_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + }, } - - var zeroVal *generated.EntityTypeHistoryOrder - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entityTypeHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityTypeHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntityTypeHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) _Invite_id(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_id(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntityTypeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInput(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - var zeroVal *generated.EntityTypeHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Invite_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Query_entityTypeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entityTypeSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Invite_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_createdAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entityTypeSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Invite_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Query_entityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entityType_argsID(ctx, rawArgs) +func (ec *executionContext) _Invite_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_updatedAt(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entityType_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) +func (ec *executionContext) fieldContext_Invite_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entityTypes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entityTypes_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Invite_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_createdBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_entityTypes_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_entityTypes_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_entityTypes_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Invite_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_entityTypes_argsOrderBy(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Invite_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_updatedBy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_entityTypes_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_entityTypes_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Invite_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entityTypes_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Invite_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_deletedAt(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypes_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Invite_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entityTypes_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Invite_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_deletedBy(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypes_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityTypeOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.EntityTypeOrder - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOEntityTypeOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrder(ctx, tmp) +func (ec *executionContext) fieldContext_Invite_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } - - var zeroVal *generated.EntityTypeOrder - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_entityTypes_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityTypeWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntityTypeWhereInput - return zeroVal, nil +func (ec *executionContext) _Invite_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_ownerID(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOID2string(ctx, field.Selections, res) +} - var zeroVal *generated.EntityTypeWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Invite_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Query_entity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entity_argsID(ctx, rawArgs) +func (ec *executionContext) _Invite_expires(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_expires(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entity_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Expires, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Invite_expires(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Query_eventHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_eventHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Invite_recipient(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_recipient(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_eventHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Recipient, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_eventHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_eventHistories_argsLast(ctx, rawArgs) + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Invite_recipient(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Invite_status(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_status(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_eventHistories_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_eventHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(enums.InviteStatus) + fc.Result = res + return ec.marshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Invite_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type InviteInviteStatus does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_eventHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Invite_role(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_role(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Role, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_eventHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(enums.Role) + fc.Result = res + return ec.marshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Invite_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type InviteRole does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_eventHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Invite_sendAttempts(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_sendAttempts(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SendAttempts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_eventHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EventHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EventHistoryWhereInput - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEventHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_Invite_sendAttempts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, } - - var zeroVal *generated.EventHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_eventSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_eventSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Invite_requestorID(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_requestorID(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_eventSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RequestorID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Invite_requestorID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil } -func (ec *executionContext) field_Query_event_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_event_argsID(ctx, rawArgs) +func (ec *executionContext) _Invite_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_owner(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_event_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Invite_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Query_events_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_events_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Invite_events(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_events(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_events_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events(ctx) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_events_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_events_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Invite_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Invite", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_events_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _InviteBulkCreatePayload_invites(ctx context.Context, field graphql.CollectedField, obj *InviteBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteBulkCreatePayload_invites(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_events_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Invites, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.Invite) + fc.Result = res + return ec.marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx, field.Selections, res) +} - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_InviteBulkCreatePayload_invites(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Query_events_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InviteConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.InviteConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteConnection_edges(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_events_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + return graphql.Null } + res := resTmp.([]*generated.InviteEdge) + fc.Result = res + return ec.marshalOInviteEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteEdge(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InviteConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_InviteEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_InviteEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InviteEdge", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_events_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InviteConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.InviteConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteConnection_pageInfo(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_events_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EventWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EventWhereInput - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_InviteConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, } - - var zeroVal *generated.EventWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_featureHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_featureHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_featureHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_featureHistories_argsBefore(ctx, rawArgs) +func (ec *executionContext) _InviteConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.InviteConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteConnection_totalCount(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_featureHistories_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_featureHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_featureHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InviteConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_featureHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InviteCreatePayload_invite(ctx context.Context, field graphql.CollectedField, obj *InviteCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteCreatePayload_invite(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Invite, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_featureHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*generated.Invite) + fc.Result = res + return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InviteCreatePayload_invite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_featureHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _InviteDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *InviteDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_featureHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.FeatureHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.FeatureHistoryWhereInput - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_InviteDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteDeletePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, } - - var zeroVal *generated.FeatureHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_featureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_featureSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _InviteEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.InviteEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteEdge_node(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_featureSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + return graphql.Null } + res := resTmp.(*generated.Invite) + fc.Result = res + return ec.marshalOInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_InviteEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + }, + } + return fc, nil } -func (ec *executionContext) field_Query_feature_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_feature_argsID(ctx, rawArgs) +func (ec *executionContext) _InviteEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.InviteEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteEdge_cursor(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_feature_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_features_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_features_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_features_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_InviteEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, } - args["first"] = arg1 - arg2, err := ec.field_Query_features_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _InviteUpdatePayload_invite(ctx context.Context, field graphql.CollectedField, obj *InviteUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteUpdatePayload_invite(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_features_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Invite, nil + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_features_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*generated.Invite) + fc.Result = res + return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_features_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_InviteUpdatePayload_invite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_features_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createActionPlan(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateActionPlan(rctx, fc.Args["input"].(generated.CreateActionPlanInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*ActionPlanCreatePayload) + fc.Result = res + return ec.marshalNActionPlanCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_features_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createActionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "actionPlan": + return ec.fieldContext_ActionPlanCreatePayload_actionPlan(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_features_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkActionPlan(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkActionPlan(rctx, fc.Args["input"].([]*generated.CreateActionPlanInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*ActionPlanBulkCreatePayload) + fc.Result = res + return ec.marshalNActionPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_features_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.FeatureWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.FeatureWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkActionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "actionPlans": + return ec.fieldContext_ActionPlanBulkCreatePayload_actionPlans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.FeatureWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_fileHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_fileHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_fileHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_fileHistories_argsBefore(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkCSVActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVActionPlan(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_fileHistories_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVActionPlan(rctx, fc.Args["input"].(graphql.Upload)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_fileHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*ActionPlanBulkCreatePayload) + fc.Result = res + return ec.marshalNActionPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_fileHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createBulkCSVActionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "actionPlans": + return ec.fieldContext_ActionPlanBulkCreatePayload_actionPlans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanBulkCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createBulkCSVActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_fileHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_updateActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateActionPlan(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateActionPlan(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateActionPlanInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*ActionPlanUpdatePayload) + fc.Result = res + return ec.marshalNActionPlanUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_fileHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateActionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "actionPlan": + return ec.fieldContext_ActionPlanUpdatePayload_actionPlan(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_fileHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteActionPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteActionPlan(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + res := resTmp.(*ActionPlanDeletePayload) + fc.Result = res + return ec.marshalNActionPlanDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_fileHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.FileHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.FileHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteActionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_ActionPlanDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOFileHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.FileHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_fileSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_fileSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_createAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createAPIToken(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_fileSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateAPIToken(rctx, fc.Args["input"].(generated.CreateAPITokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*APITokenCreatePayload) + fc.Result = res + return ec.marshalNAPITokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenCreatePayload(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "apiToken": + return ec.fieldContext_APITokenCreatePayload_apiToken(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_file_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_file_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkAPIToken(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_file_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkAPIToken(rctx, fc.Args["input"].([]*generated.CreateAPITokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*APITokenBulkCreatePayload) + fc.Result = res + return ec.marshalNAPITokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_files_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_files_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_createBulkAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "apiTokens": + return ec.fieldContext_APITokenBulkCreatePayload_apiTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenBulkCreatePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_files_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_files_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVAPIToken(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_files_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVAPIToken(rctx, fc.Args["input"].(graphql.Upload)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_files_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*APITokenBulkCreatePayload) + fc.Result = res + return ec.marshalNAPITokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_files_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createBulkCSVAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "apiTokens": + return ec.fieldContext_APITokenBulkCreatePayload_apiTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenBulkCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createBulkCSVAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_files_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_updateAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateAPIToken(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateAPIToken(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateAPITokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*APITokenUpdatePayload) + fc.Result = res + return ec.marshalNAPITokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_files_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "apiToken": + return ec.fieldContext_APITokenUpdatePayload_apiToken(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_files_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteAPIToken(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteAPIToken(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*APITokenDeletePayload) + fc.Result = res + return ec.marshalNAPITokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_files_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.FileWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.FileWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_APITokenDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.FileWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_groupHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_createContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createContact(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_groupHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateContact(rctx, fc.Args["input"].(generated.CreateContactInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_groupHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_groupHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*ContactCreatePayload) + fc.Result = res + return ec.marshalNContactCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "contact": + return ec.fieldContext_ContactCreatePayload_contact(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactCreatePayload", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_groupHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_groupHistories_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkContact(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_groupHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkContact(rctx, fc.Args["input"].([]*generated.CreateContactInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*ContactBulkCreatePayload) + fc.Result = res + return ec.marshalNContactBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "contacts": + return ec.fieldContext_ContactBulkCreatePayload_contacts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_groupHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkCSVContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVContact(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVContact(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*ContactBulkCreatePayload) + fc.Result = res + return ec.marshalNContactBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "contacts": + return ec.fieldContext_ContactBulkCreatePayload_contacts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_groupHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.GroupHistoryOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_updateContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateContact(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOGroupHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateContact(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateContactInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.GroupHistoryOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*ContactUpdatePayload) + fc.Result = res + return ec.marshalNContactUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.GroupHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "contact": + return ec.fieldContext_ContactUpdatePayload_contact(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOGroupHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.GroupHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_groupMembershipHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupMembershipHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_groupMembershipHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_groupMembershipHistories_argsBefore(ctx, rawArgs) +func (ec *executionContext) _Mutation_deleteContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteContact(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_groupMembershipHistories_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteContact(rctx, fc.Args["id"].(string)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_groupMembershipHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*ContactDeletePayload) + fc.Result = res + return ec.marshalNContactDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupMembershipHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_deleteContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_ContactDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactDeletePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_deleteContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_groupMembershipHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createControl(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateControl(rctx, fc.Args["input"].(generated.CreateControlInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*ControlCreatePayload) + fc.Result = res + return ec.marshalNControlCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupMembershipHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createControl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "control": + return ec.fieldContext_ControlCreatePayload_control(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_groupMembershipHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkControl(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkControl(rctx, fc.Args["input"].([]*generated.CreateControlInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupMembershipHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupMembershipHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.GroupMembershipHistoryWhereInput - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*ControlBulkCreatePayload) + fc.Result = res + return ec.marshalNControlBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlBulkCreatePayload(ctx, field.Selections, res) +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOGroupMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInput(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createBulkControl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "controls": + return ec.fieldContext_ControlBulkCreatePayload_controls(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlBulkCreatePayload", field.Name) + }, } - - var zeroVal *generated.GroupMembershipHistoryWhereInput - return zeroVal, 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_Mutation_createBulkControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_groupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupMembership_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkCSVControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVControl(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_groupMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVControl(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*ControlBulkCreatePayload) + fc.Result = res + return ec.marshalNControlBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupMemberships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupMemberships_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_createBulkCSVControl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "controls": + return ec.fieldContext_ControlBulkCreatePayload_controls(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlBulkCreatePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_groupMemberships_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_groupMemberships_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_updateControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateControl(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_groupMemberships_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateControl(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateControlInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_groupMemberships_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*ControlUpdatePayload) + fc.Result = res + return ec.marshalNControlUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupMemberships_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_updateControl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "control": + return ec.fieldContext_ControlUpdatePayload_control(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlUpdatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_updateControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_groupMemberships_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteControl(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteControl(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*ControlDeletePayload) + fc.Result = res + return ec.marshalNControlDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupMemberships_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteControl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_ControlDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_groupMemberships_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createControlObjective(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateControlObjective(rctx, fc.Args["input"].(generated.CreateControlObjectiveInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*ControlObjectiveCreatePayload) + fc.Result = res + return ec.marshalNControlObjectiveCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupMemberships_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupMembershipWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.GroupMembershipWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createControlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "controlObjective": + return ec.fieldContext_ControlObjectiveCreatePayload_controlObjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.GroupMembershipWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_groupSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkControlObjective(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_groupSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkControlObjective(rctx, fc.Args["input"].([]*generated.CreateControlObjectiveInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*ControlObjectiveBulkCreatePayload) + fc.Result = res + return ec.marshalNControlObjectiveBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupSettingHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupSettingHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_createBulkControlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "controlObjectives": + return ec.fieldContext_ControlObjectiveBulkCreatePayload_controlObjectives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveBulkCreatePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_groupSettingHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_groupSettingHistories_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVControlObjective(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_groupSettingHistories_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVControlObjective(rctx, fc.Args["input"].(graphql.Upload)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_groupSettingHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*ControlObjectiveBulkCreatePayload) + fc.Result = res + return ec.marshalNControlObjectiveBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupSettingHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createBulkCSVControlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "controlObjectives": + return ec.fieldContext_ControlObjectiveBulkCreatePayload_controlObjectives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveBulkCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createBulkCSVControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_groupSettingHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_updateControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateControlObjective(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateControlObjective(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateControlObjectiveInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*ControlObjectiveUpdatePayload) + fc.Result = res + return ec.marshalNControlObjectiveUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupSettingHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateControlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "controlObjective": + return ec.fieldContext_ControlObjectiveUpdatePayload_controlObjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_groupSettingHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteControlObjective(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteControlObjective(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*ControlObjectiveDeletePayload) + fc.Result = res + return ec.marshalNControlObjectiveDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupSettingHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupSettingHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.GroupSettingHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteControlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_ControlObjectiveDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOGroupSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.GroupSettingHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_groupSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupSettingSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_createDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createDocumentData(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_groupSettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateDocumentData(rctx, fc.Args["input"].(generated.CreateDocumentDataInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*DocumentDataCreatePayload) + fc.Result = res + return ec.marshalNDocumentDataCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataCreatePayload(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "documentData": + return ec.fieldContext_DocumentDataCreatePayload_documentData(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_groupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupSetting_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkDocumentData(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_groupSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkDocumentData(rctx, fc.Args["input"].([]*generated.CreateDocumentDataInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*DocumentDataBulkCreatePayload) + fc.Result = res + return ec.marshalNDocumentDataBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupSettings_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_createBulkDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "documentData": + return ec.fieldContext_DocumentDataBulkCreatePayload_documentData(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataBulkCreatePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_groupSettings_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_groupSettings_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVDocumentData(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_groupSettings_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVDocumentData(rctx, fc.Args["input"].(graphql.Upload)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_groupSettings_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*DocumentDataBulkCreatePayload) + fc.Result = res + return ec.marshalNDocumentDataBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupSettings_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createBulkCSVDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "documentData": + return ec.fieldContext_DocumentDataBulkCreatePayload_documentData(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataBulkCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createBulkCSVDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_groupSettings_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_updateDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateDocumentData(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateDocumentData(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateDocumentDataInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*DocumentDataUpdatePayload) + fc.Result = res + return ec.marshalNDocumentDataUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupSettings_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "documentData": + return ec.fieldContext_DocumentDataUpdatePayload_documentData(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_groupSettings_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteDocumentData(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteDocumentData(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*DocumentDataDeletePayload) + fc.Result = res + return ec.marshalNDocumentDataDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groupSettings_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupSettingWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.GroupSettingWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_DocumentDataDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.GroupSettingWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_group_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_group_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_createEntitlement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createEntitlement(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_group_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateEntitlement(rctx, fc.Args["input"].(generated.CreateEntitlementInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*EntitlementCreatePayload) + fc.Result = res + return ec.marshalNEntitlementCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementCreatePayload(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createEntitlement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entitlement": + return ec.fieldContext_EntitlementCreatePayload_entitlement(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createEntitlement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groups_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkEntitlement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkEntitlement(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_groups_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkEntitlement(rctx, fc.Args["input"].([]*generated.CreateEntitlementInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_groups_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_groups_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*EntitlementBulkCreatePayload) + fc.Result = res + return ec.marshalNEntitlementBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkEntitlement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entitlements": + return ec.fieldContext_EntitlementBulkCreatePayload_entitlements(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementBulkCreatePayload", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_groups_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkEntitlement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_groups_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVEntitlement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVEntitlement(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_groups_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVEntitlement(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*EntitlementBulkCreatePayload) + fc.Result = res + return ec.marshalNEntitlementBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groups_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntitlement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entitlements": + return ec.fieldContext_EntitlementBulkCreatePayload_entitlements(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVEntitlement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_groups_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_updateEntitlement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateEntitlement(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateEntitlement(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntitlementInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EntitlementUpdatePayload) + fc.Result = res + return ec.marshalNEntitlementUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groups_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateEntitlement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entitlement": + return ec.fieldContext_EntitlementUpdatePayload_entitlement(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateEntitlement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_groups_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.GroupOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteEntitlement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteEntitlement(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOGroupOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteEntitlement(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.GroupOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EntitlementDeletePayload) + fc.Result = res + return ec.marshalNEntitlementDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_groups_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.GroupWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteEntitlement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_EntitlementDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteEntitlement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.GroupWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_hushHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_hushHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_createEntitlementPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createEntitlementPlan(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_hushHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateEntitlementPlan(rctx, fc.Args["input"].(generated.CreateEntitlementPlanInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_hushHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_hushHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*EntitlementPlanCreatePayload) + fc.Result = res + return ec.marshalNEntitlementPlanCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createEntitlementPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entitlementPlan": + return ec.fieldContext_EntitlementPlanCreatePayload_entitlementPlan(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanCreatePayload", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_hushHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createEntitlementPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_hushHistories_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkEntitlementPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkEntitlementPlan(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_hushHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkEntitlementPlan(rctx, fc.Args["input"].([]*generated.CreateEntitlementPlanInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*EntitlementPlanBulkCreatePayload) + fc.Result = res + return ec.marshalNEntitlementPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_hushHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkEntitlementPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entitlementPlans": + return ec.fieldContext_EntitlementPlanBulkCreatePayload_entitlementPlans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkEntitlementPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_hushHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkCSVEntitlementPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVEntitlementPlan(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVEntitlementPlan(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EntitlementPlanBulkCreatePayload) + fc.Result = res + return ec.marshalNEntitlementPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_hushHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntitlementPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entitlementPlans": + return ec.fieldContext_EntitlementPlanBulkCreatePayload_entitlementPlans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVEntitlementPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_hushHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.HushHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.HushHistoryOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_updateEntitlementPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateEntitlementPlan(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOHushHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateEntitlementPlan(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntitlementPlanInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.HushHistoryOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EntitlementPlanUpdatePayload) + fc.Result = res + return ec.marshalNEntitlementPlanUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_hushHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.HushHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.HushHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateEntitlementPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entitlementPlan": + return ec.fieldContext_EntitlementPlanUpdatePayload_entitlementPlan(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOHushHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateEntitlementPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.HushHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_hush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_hush_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_deleteEntitlementPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteEntitlementPlan(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_hush_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteEntitlementPlan(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*EntitlementPlanDeletePayload) + fc.Result = res + return ec.marshalNEntitlementPlanDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_hushes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_hushes_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_hushes_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_deleteEntitlementPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_EntitlementPlanDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanDeletePayload", field.Name) + }, } - args["first"] = arg1 - arg2, err := ec.field_Query_hushes_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteEntitlementPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["before"] = arg2 - arg3, err := ec.field_Query_hushes_argsLast(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createEntitlementPlanFeature(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_hushes_argsOrderBy(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateEntitlementPlanFeature(rctx, fc.Args["input"].(generated.CreateEntitlementPlanFeatureInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_hushes_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg5 - return args, nil + res := resTmp.(*EntitlementPlanFeatureCreatePayload) + fc.Result = res + return ec.marshalNEntitlementPlanFeatureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_hushes_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entitlementPlanFeature": + return ec.fieldContext_EntitlementPlanFeatureCreatePayload_entitlementPlanFeature(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createEntitlementPlanFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_hushes_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkEntitlementPlanFeature(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkEntitlementPlanFeature(rctx, fc.Args["input"].([]*generated.CreateEntitlementPlanFeatureInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EntitlementPlanFeatureBulkCreatePayload) + fc.Result = res + return ec.marshalNEntitlementPlanFeatureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_hushes_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entitlementPlanFeatures": + return ec.fieldContext_EntitlementPlanFeatureBulkCreatePayload_entitlementPlanFeatures(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureBulkCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkEntitlementPlanFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } + return fc, nil +} - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) _Mutation_createBulkCSVEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVEntitlementPlanFeature(ctx, field) + if err != nil { + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVEntitlementPlanFeature(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EntitlementPlanFeatureBulkCreatePayload) + fc.Result = res + return ec.marshalNEntitlementPlanFeatureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_hushes_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entitlementPlanFeatures": + return ec.fieldContext_EntitlementPlanFeatureBulkCreatePayload_entitlementPlanFeatures(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVEntitlementPlanFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_hushes_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.HushOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.HushOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_updateEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateEntitlementPlanFeature(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOHushOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateEntitlementPlanFeature(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntitlementPlanFeatureInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.HushOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EntitlementPlanFeatureUpdatePayload) + fc.Result = res + return ec.marshalNEntitlementPlanFeatureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_hushes_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.HushWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.HushWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entitlementPlanFeature": + return ec.fieldContext_EntitlementPlanFeatureUpdatePayload_entitlementPlanFeature(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateEntitlementPlanFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.HushWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_integrationHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_integrationHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_deleteEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteEntitlementPlanFeature(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_integrationHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteEntitlementPlanFeature(rctx, fc.Args["id"].(string)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_integrationHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_integrationHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*EntitlementPlanFeatureDeletePayload) + fc.Result = res + return ec.marshalNEntitlementPlanFeatureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_EntitlementPlanFeatureDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureDeletePayload", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_integrationHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteEntitlementPlanFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_integrationHistories_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createEntity(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_integrationHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateEntity(rctx, fc.Args["input"].(generated.CreateEntityInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*EntityCreatePayload) + fc.Result = res + return ec.marshalNEntityCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_integrationHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entity": + return ec.fieldContext_EntityCreatePayload_entity(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_integrationHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkEntity(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkEntity(rctx, fc.Args["input"].([]*generated.CreateEntityInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EntityBulkCreatePayload) + fc.Result = res + return ec.marshalNEntityBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_integrationHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entities": + return ec.fieldContext_EntityBulkCreatePayload_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_integrationHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.IntegrationHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.IntegrationHistoryOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkCSVEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVEntity(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOIntegrationHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVEntity(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.IntegrationHistoryOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EntityBulkCreatePayload) + fc.Result = res + return ec.marshalNEntityBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_integrationHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.IntegrationHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.IntegrationHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entities": + return ec.fieldContext_EntityBulkCreatePayload_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOIntegrationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.IntegrationHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_integrationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_integrationSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_updateEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateEntity(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_integrationSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateEntity(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntityInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*EntityUpdatePayload) + fc.Result = res + return ec.marshalNEntityUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_integration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_integration_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_integration_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entity": + return ec.fieldContext_EntityUpdatePayload_entity(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_integrations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_integrations_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_deleteEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteEntity(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_integrations_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteEntity(rctx, fc.Args["id"].(string)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_integrations_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_integrations_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*EntityDeletePayload) + fc.Result = res + return ec.marshalNEntityDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_EntityDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityDeletePayload", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_integrations_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_integrations_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createEntityType(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_integrations_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateEntityType(rctx, fc.Args["input"].(generated.CreateEntityTypeInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*EntityTypeCreatePayload) + fc.Result = res + return ec.marshalNEntityTypeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_integrations_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entityType": + return ec.fieldContext_EntityTypeCreatePayload_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_integrations_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkEntityType(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkEntityType(rctx, fc.Args["input"].([]*generated.CreateEntityTypeInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EntityTypeBulkCreatePayload) + fc.Result = res + return ec.marshalNEntityTypeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_integrations_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entityTypes": + return ec.fieldContext_EntityTypeBulkCreatePayload_entityTypes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_integrations_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.IntegrationOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.IntegrationOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkCSVEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVEntityType(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOIntegrationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVEntityType(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.IntegrationOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EntityTypeBulkCreatePayload) + fc.Result = res + return ec.marshalNEntityTypeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_integrations_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.IntegrationWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.IntegrationWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entityTypes": + return ec.fieldContext_EntityTypeBulkCreatePayload_entityTypes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.IntegrationWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_invite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_invite_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_updateEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateEntityType(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_invite_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateEntityType(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntityTypeInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*EntityTypeUpdatePayload) + fc.Result = res + return ec.marshalNEntityTypeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_invites_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_invites_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_updateEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "entityType": + return ec.fieldContext_EntityTypeUpdatePayload_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeUpdatePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_invites_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_invites_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteEntityType(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_invites_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteEntityType(rctx, fc.Args["id"].(string)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_invites_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*EntityTypeDeletePayload) + fc.Result = res + return ec.marshalNEntityTypeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_invites_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_deleteEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_EntityTypeDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeDeletePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_deleteEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_invites_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createEvent(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateEvent(rctx, fc.Args["input"].(generated.CreateEventInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EventCreatePayload) + fc.Result = res + return ec.marshalNEventCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_invites_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "event": + return ec.fieldContext_EventCreatePayload_event(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_invites_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkEvent(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkEvent(rctx, fc.Args["input"].([]*generated.CreateEventInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EventBulkCreatePayload) + fc.Result = res + return ec.marshalNEventBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_invites_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.InviteWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.InviteWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "events": + return ec.fieldContext_EventBulkCreatePayload_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.InviteWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_node_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkCSVEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVEvent(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_node_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVEvent(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*EventBulkCreatePayload) + fc.Result = res + return ec.marshalNEventBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_nodes_argsIds(ctx, rawArgs) - if err != nil { - return nil, err - } - args["ids"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_nodes_argsIds( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["ids"] - if !ok { - var zeroVal []string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "events": + return ec.fieldContext_EventBulkCreatePayload_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) - if tmp, ok := rawArgs["ids"]; ok { - return ec.unmarshalNID2ᚕstringᚄ(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal []string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_noteHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_noteHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_noteHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_noteHistories_argsBefore(ctx, rawArgs) +func (ec *executionContext) _Mutation_updateEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateEvent(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_noteHistories_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateEvent(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEventInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_noteHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*EventUpdatePayload) + fc.Result = res + return ec.marshalNEventUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_noteHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_updateEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "event": + return ec.fieldContext_EventUpdatePayload_event(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventUpdatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_updateEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_noteHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteEvent(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteEvent(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*EventDeletePayload) + fc.Result = res + return ec.marshalNEventDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_noteHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_EventDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_noteHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createFeature(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateFeature(rctx, fc.Args["input"].(generated.CreateFeatureInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*FeatureCreatePayload) + fc.Result = res + return ec.marshalNFeatureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_noteHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.NoteHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.NoteHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "feature": + return ec.fieldContext_FeatureCreatePayload_feature(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FeatureCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalONoteHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.NoteHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_notes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_notes_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_notes_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_notes_argsBefore(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkFeature(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_notes_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkFeature(rctx, fc.Args["input"].([]*generated.CreateFeatureInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_notes_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*FeatureBulkCreatePayload) + fc.Result = res + return ec.marshalNFeatureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_notes_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createBulkFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "features": + return ec.fieldContext_FeatureBulkCreatePayload_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FeatureBulkCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createBulkFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_notes_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkCSVFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVFeature(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVFeature(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*FeatureBulkCreatePayload) + fc.Result = res + return ec.marshalNFeatureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_notes_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "features": + return ec.fieldContext_FeatureBulkCreatePayload_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FeatureBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_notes_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_updateFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateFeature(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateFeature(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateFeatureInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*FeatureUpdatePayload) + fc.Result = res + return ec.marshalNFeatureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_notes_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.NoteWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.NoteWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "feature": + return ec.fieldContext_FeatureUpdatePayload_feature(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FeatureUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.NoteWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_oauthProviderHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_oauthProviderHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_oauthProviderHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_oauthProviderHistories_argsBefore(ctx, rawArgs) +func (ec *executionContext) _Mutation_deleteFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteFeature(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_oauthProviderHistories_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteFeature(rctx, fc.Args["id"].(string)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_oauthProviderHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*FeatureDeletePayload) + fc.Result = res + return ec.marshalNFeatureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_oauthProviderHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_deleteFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_FeatureDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FeatureDeletePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_deleteFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_oauthProviderHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteFile(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteFile(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteFile(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + res := resTmp.(*FileDeletePayload) + fc.Result = res + return ec.marshalNFileDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_oauthProviderHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteFile(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_FileDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FileDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteFile_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_oauthProviderHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createGroup(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateGroup(rctx, fc.Args["input"].(generated.CreateGroupInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*GroupCreatePayload) + fc.Result = res + return ec.marshalNGroupCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_oauthProviderHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OauthProviderHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OauthProviderHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "group": + return ec.fieldContext_GroupCreatePayload_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOauthProviderHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.OauthProviderHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_oauthProviderSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_oauthProviderSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkGroup(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_oauthProviderSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkGroup(rctx, fc.Args["input"].([]*generated.CreateGroupInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*GroupBulkCreatePayload) + fc.Result = res + return ec.marshalNGroupBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_oauthProvider_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_oauthProvider_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_oauthProvider_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "groups": + return ec.fieldContext_GroupBulkCreatePayload_groups(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_oauthProviders_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_oauthProviders_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_oauthProviders_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_oauthProviders_argsBefore(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkCSVGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVGroup(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_oauthProviders_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVGroup(rctx, fc.Args["input"].(graphql.Upload)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_oauthProviders_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*GroupBulkCreatePayload) + fc.Result = res + return ec.marshalNGroupBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_oauthProviders_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createBulkCSVGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "groups": + return ec.fieldContext_GroupBulkCreatePayload_groups(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupBulkCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createBulkCSVGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_oauthProviders_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_updateGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateGroup(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateGroup(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateGroupInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*GroupUpdatePayload) + fc.Result = res + return ec.marshalNGroupUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_oauthProviders_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "group": + return ec.fieldContext_GroupUpdatePayload_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_oauthProviders_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteGroup(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteGroup(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*GroupDeletePayload) + fc.Result = res + return ec.marshalNGroupDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_oauthProviders_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OauthProviderWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OauthProviderWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_GroupDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOauthProviderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.OauthProviderWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_ohAuthTooTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_ohAuthTooTokenSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_createGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createGroupMembership(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_ohAuthTooTokenSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateGroupMembership(rctx, fc.Args["input"].(generated.CreateGroupMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*GroupMembershipCreatePayload) + fc.Result = res + return ec.marshalNGroupMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipCreatePayload(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "groupMembership": + return ec.fieldContext_GroupMembershipCreatePayload_groupMembership(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_ohAuthTooToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_ohAuthTooToken_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkGroupMembership(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_ohAuthTooToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkGroupMembership(rctx, fc.Args["input"].([]*generated.CreateGroupMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*GroupMembershipBulkCreatePayload) + fc.Result = res + return ec.marshalNGroupMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_ohAuthTooTokens_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_ohAuthTooTokens_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_createBulkGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "groupMemberships": + return ec.fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipBulkCreatePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_ohAuthTooTokens_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_ohAuthTooTokens_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVGroupMembership(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_ohAuthTooTokens_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVGroupMembership(rctx, fc.Args["input"].(graphql.Upload)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_ohAuthTooTokens_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*GroupMembershipBulkCreatePayload) + fc.Result = res + return ec.marshalNGroupMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_ohAuthTooTokens_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createBulkCSVGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "groupMemberships": + return ec.fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipBulkCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createBulkCSVGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_ohAuthTooTokens_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_updateGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateGroupMembership(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateGroupMembership(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateGroupMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*GroupMembershipUpdatePayload) + fc.Result = res + return ec.marshalNGroupMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_ohAuthTooTokens_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "groupMembership": + return ec.fieldContext_GroupMembershipUpdatePayload_groupMembership(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_ohAuthTooTokens_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteGroupMembership(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteGroupMembership(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*GroupMembershipDeletePayload) + fc.Result = res + return ec.marshalNGroupMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_ohAuthTooTokens_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OhAuthTooTokenWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OhAuthTooTokenWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_GroupMembershipDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOhAuthTooTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.OhAuthTooTokenWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_orgMembershipHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_orgMembershipHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_orgMembershipHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_orgMembershipHistories_argsBefore(ctx, rawArgs) +func (ec *executionContext) _Mutation_createGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createGroupSetting(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_orgMembershipHistories_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateGroupSetting(rctx, fc.Args["input"].(generated.CreateGroupSettingInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_orgMembershipHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*GroupSettingCreatePayload) + fc.Result = res + return ec.marshalNGroupSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_orgMembershipHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "groupSetting": + return ec.fieldContext_GroupSettingCreatePayload_groupSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_orgMembershipHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkGroupSetting(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkGroupSetting(rctx, fc.Args["input"].([]*generated.CreateGroupSettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*GroupSettingBulkCreatePayload) + fc.Result = res + return ec.marshalNGroupSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_orgMembershipHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "groupSettings": + return ec.fieldContext_GroupSettingBulkCreatePayload_groupSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_orgMembershipHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkCSVGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVGroupSetting(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVGroupSetting(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*GroupSettingBulkCreatePayload) + fc.Result = res + return ec.marshalNGroupSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_orgMembershipHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrgMembershipHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrgMembershipHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "groupSettings": + return ec.fieldContext_GroupSettingBulkCreatePayload_groupSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrgMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.OrgMembershipHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_orgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_orgMembership_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_updateGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateGroupSetting(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_orgMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateGroupSetting(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateGroupSettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*GroupSettingUpdatePayload) + fc.Result = res + return ec.marshalNGroupSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_orgMemberships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_orgMemberships_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_updateGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "groupSetting": + return ec.fieldContext_GroupSettingUpdatePayload_groupSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingUpdatePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_orgMemberships_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_orgMemberships_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteGroupSetting(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_orgMemberships_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteGroupSetting(rctx, fc.Args["id"].(string)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_orgMemberships_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*GroupSettingDeletePayload) + fc.Result = res + return ec.marshalNGroupSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_orgMemberships_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_deleteGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_GroupSettingDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingDeletePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_deleteGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_orgMemberships_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createHush(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateHush(rctx, fc.Args["input"].(generated.CreateHushInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*HushCreatePayload) + fc.Result = res + return ec.marshalNHushCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_orgMemberships_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hush": + return ec.fieldContext_HushCreatePayload_hush(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_orgMemberships_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkHush(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkHush(rctx, fc.Args["input"].([]*generated.CreateHushInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*HushBulkCreatePayload) + fc.Result = res + return ec.marshalNHushBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_orgMemberships_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrgMembershipWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrgMembershipWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hushes": + return ec.fieldContext_HushBulkCreatePayload_hushes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.OrgMembershipWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_organizationHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizationHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkCSVHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVHush(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_organizationHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVHush(rctx, fc.Args["input"].(graphql.Upload)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_organizationHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_organizationHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*HushBulkCreatePayload) + fc.Result = res + return ec.marshalNHushBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hushes": + return ec.fieldContext_HushBulkCreatePayload_hushes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushBulkCreatePayload", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_organizationHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_organizationHistories_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_updateHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateHush(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_organizationHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateHush(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateHushInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*HushUpdatePayload) + fc.Result = res + return ec.marshalNHushUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizationHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hush": + return ec.fieldContext_HushUpdatePayload_hush(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_organizationHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteHush(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteHush(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*HushDeletePayload) + fc.Result = res + return ec.marshalNHushDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizationHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_HushDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_organizationHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.OrganizationHistoryOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_createIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createIntegration(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOOrganizationHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateIntegration(rctx, fc.Args["input"].(generated.CreateIntegrationInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.OrganizationHistoryOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*IntegrationCreatePayload) + fc.Result = res + return ec.marshalNIntegrationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizationHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrganizationHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "integration": + return ec.fieldContext_IntegrationCreatePayload_integration(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrganizationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.OrganizationHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_organizationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizationSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkIntegration(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_organizationSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkIntegration(rctx, fc.Args["input"].([]*generated.CreateIntegrationInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*IntegrationBulkCreatePayload) + fc.Result = res + return ec.marshalNIntegrationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizationSettingHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizationSettingHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_createBulkIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "integrations": + return ec.fieldContext_IntegrationBulkCreatePayload_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationBulkCreatePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_organizationSettingHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_organizationSettingHistories_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVIntegration(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_organizationSettingHistories_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVIntegration(rctx, fc.Args["input"].(graphql.Upload)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_organizationSettingHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*IntegrationBulkCreatePayload) + fc.Result = res + return ec.marshalNIntegrationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizationSettingHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createBulkCSVIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "integrations": + return ec.fieldContext_IntegrationBulkCreatePayload_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationBulkCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createBulkCSVIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_organizationSettingHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_updateIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateIntegration(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateIntegration(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateIntegrationInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + res := resTmp.(*IntegrationUpdatePayload) + fc.Result = res + return ec.marshalNIntegrationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizationSettingHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "integration": + return ec.fieldContext_IntegrationUpdatePayload_integration(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_organizationSettingHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteIntegration(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteIntegration(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*IntegrationDeletePayload) + fc.Result = res + return ec.marshalNIntegrationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizationSettingHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationSettingHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrganizationSettingHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_IntegrationDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.OrganizationSettingHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_organizationSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizationSettingSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_createInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createInternalPolicy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_organizationSettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateInternalPolicy(rctx, fc.Args["input"].(generated.CreateInternalPolicyInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*InternalPolicyCreatePayload) + fc.Result = res + return ec.marshalNInternalPolicyCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyCreatePayload(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createInternalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "internalPolicy": + return ec.fieldContext_InternalPolicyCreatePayload_internalPolicy(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_organizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizationSetting_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkInternalPolicy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_organizationSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkInternalPolicy(rctx, fc.Args["input"].([]*generated.CreateInternalPolicyInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*InternalPolicyBulkCreatePayload) + fc.Result = res + return ec.marshalNInternalPolicyBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizationSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizationSettings_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_createBulkInternalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "internalPolicies": + return ec.fieldContext_InternalPolicyBulkCreatePayload_internalPolicies(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyBulkCreatePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_organizationSettings_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_organizationSettings_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVInternalPolicy(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_organizationSettings_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVInternalPolicy(rctx, fc.Args["input"].(graphql.Upload)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_organizationSettings_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*InternalPolicyBulkCreatePayload) + fc.Result = res + return ec.marshalNInternalPolicyBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizationSettings_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createBulkCSVInternalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "internalPolicies": + return ec.fieldContext_InternalPolicyBulkCreatePayload_internalPolicies(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyBulkCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createBulkCSVInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_organizationSettings_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_updateInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateInternalPolicy(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateInternalPolicy(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateInternalPolicyInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*InternalPolicyUpdatePayload) + fc.Result = res + return ec.marshalNInternalPolicyUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizationSettings_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateInternalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "internalPolicy": + return ec.fieldContext_InternalPolicyUpdatePayload_internalPolicy(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_organizationSettings_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteInternalPolicy(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteInternalPolicy(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*InternalPolicyDeletePayload) + fc.Result = res + return ec.marshalNInternalPolicyDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizationSettings_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationSettingWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrganizationSettingWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteInternalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_InternalPolicyDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.OrganizationSettingWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_organization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organization_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_createInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createInvite(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_organization_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateInvite(rctx, fc.Args["input"].(generated.CreateInviteInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*InviteCreatePayload) + fc.Result = res + return ec.marshalNInviteCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteCreatePayload(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "invite": + return ec.fieldContext_InviteCreatePayload_invite(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InviteCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_organizations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizations_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkInvite(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_organizations_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkInvite(rctx, fc.Args["input"].([]*generated.CreateInviteInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_organizations_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_organizations_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*InviteBulkCreatePayload) + fc.Result = res + return ec.marshalNInviteBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "invites": + return ec.fieldContext_InviteBulkCreatePayload_invites(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InviteBulkCreatePayload", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_organizations_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_organizations_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVInvite(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_organizations_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVInvite(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*InviteBulkCreatePayload) + fc.Result = res + return ec.marshalNInviteBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizations_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "invites": + return ec.fieldContext_InviteBulkCreatePayload_invites(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InviteBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_organizations_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_updateInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateInvite(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateInvite(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateInviteInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*InviteUpdatePayload) + fc.Result = res + return ec.marshalNInviteUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizations_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "invite": + return ec.fieldContext_InviteUpdatePayload_invite(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InviteUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_organizations_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.OrganizationOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteInvite(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteInvite(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.OrganizationOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*InviteDeletePayload) + fc.Result = res + return ec.marshalNInviteDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_organizations_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrganizationWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_InviteDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InviteDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.OrganizationWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_personalAccessTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_personalAccessTokenSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_createNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createNarrative(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_personalAccessTokenSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateNarrative(rctx, fc.Args["input"].(generated.CreateNarrativeInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*NarrativeCreatePayload) + fc.Result = res + return ec.marshalNNarrativeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_personalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_personalAccessToken_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_personalAccessToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createNarrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "narrative": + return ec.fieldContext_NarrativeCreatePayload_narrative(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_personalAccessTokens_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_personalAccessTokens_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_personalAccessTokens_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_personalAccessTokens_argsBefore(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkNarrative(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_personalAccessTokens_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkNarrative(rctx, fc.Args["input"].([]*generated.CreateNarrativeInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_personalAccessTokens_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*NarrativeBulkCreatePayload) + fc.Result = res + return ec.marshalNNarrativeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_personalAccessTokens_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createBulkNarrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "narratives": + return ec.fieldContext_NarrativeBulkCreatePayload_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeBulkCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createBulkNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_personalAccessTokens_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkCSVNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVNarrative(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVNarrative(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*NarrativeBulkCreatePayload) + fc.Result = res + return ec.marshalNNarrativeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_personalAccessTokens_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVNarrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "narratives": + return ec.fieldContext_NarrativeBulkCreatePayload_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_personalAccessTokens_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_updateNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateNarrative(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateNarrative(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateNarrativeInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*NarrativeUpdatePayload) + fc.Result = res + return ec.marshalNNarrativeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_personalAccessTokens_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.PersonalAccessTokenWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.PersonalAccessTokenWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateNarrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "narrative": + return ec.fieldContext_NarrativeUpdatePayload_narrative(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.PersonalAccessTokenWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_search_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_deleteNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteNarrative(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_search_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteNarrative(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*NarrativeDeletePayload) + fc.Result = res + return ec.marshalNNarrativeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_subscriberSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_subscriberSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_subscriberSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteNarrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_NarrativeDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_subscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_subscriber_argsEmail(ctx, rawArgs) +func (ec *executionContext) _Mutation_createOauthProvider(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createOauthProvider(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["email"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_subscriber_argsEmail( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["email"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateOauthProvider(rctx, fc.Args["input"].(generated.CreateOauthProviderInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - if tmp, ok := rawArgs["email"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*OauthProviderCreatePayload) + fc.Result = res + return ec.marshalNOauthProviderCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_subscribers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_subscribers_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_createOauthProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "oauthProvider": + return ec.fieldContext_OauthProviderCreatePayload_oauthProvider(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OauthProviderCreatePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_subscribers_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createOauthProvider_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_subscribers_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkOauthProvider(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkOauthProvider(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_subscribers_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkOauthProvider(rctx, fc.Args["input"].([]*generated.CreateOauthProviderInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_subscribers_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*OauthProviderBulkCreatePayload) + fc.Result = res + return ec.marshalNOauthProviderBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_subscribers_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createBulkOauthProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "oauthProviders": + return ec.fieldContext_OauthProviderBulkCreatePayload_oauthProviders(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OauthProviderBulkCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createBulkOauthProvider_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_subscribers_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkCSVOauthProvider(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVOauthProvider(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVOauthProvider(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*OauthProviderBulkCreatePayload) + fc.Result = res + return ec.marshalNOauthProviderBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_subscribers_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVOauthProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "oauthProviders": + return ec.fieldContext_OauthProviderBulkCreatePayload_oauthProviders(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OauthProviderBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVOauthProvider_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_subscribers_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_updateOauthProvider(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateOauthProvider(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateOauthProvider(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOauthProviderInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*OauthProviderUpdatePayload) + fc.Result = res + return ec.marshalNOauthProviderUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_subscribers_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.SubscriberWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.SubscriberWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateOauthProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "oauthProvider": + return ec.fieldContext_OauthProviderUpdatePayload_oauthProvider(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OauthProviderUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateOauthProvider_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.SubscriberWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_tFASettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_tFASettingSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_deleteOauthProvider(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteOauthProvider(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_tFASettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteOauthProvider(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*OauthProviderDeletePayload) + fc.Result = res + return ec.marshalNOauthProviderDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderDeletePayload(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteOauthProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_OauthProviderDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OauthProviderDeletePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteOauthProvider_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_templateHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_templateHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_createOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createOhAuthTooToken(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_templateHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateOhAuthTooToken(rctx, fc.Args["input"].(generated.CreateOhAuthTooTokenInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_templateHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_templateHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*OhAuthTooTokenCreatePayload) + fc.Result = res + return ec.marshalNOhAuthTooTokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "ohAuthTooToken": + return ec.fieldContext_OhAuthTooTokenCreatePayload_ohAuthTooToken(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenCreatePayload", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_templateHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createOhAuthTooToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_templateHistories_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkOhAuthTooToken(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_templateHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkOhAuthTooToken(rctx, fc.Args["input"].([]*generated.CreateOhAuthTooTokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*OhAuthTooTokenBulkCreatePayload) + fc.Result = res + return ec.marshalNOhAuthTooTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_templateHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "ohAuthTooTokens": + return ec.fieldContext_OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkOhAuthTooToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_templateHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkCSVOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVOhAuthTooToken(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVOhAuthTooToken(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*OhAuthTooTokenBulkCreatePayload) + fc.Result = res + return ec.marshalNOhAuthTooTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_templateHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "ohAuthTooTokens": + return ec.fieldContext_OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVOhAuthTooToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_templateHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.TemplateHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.TemplateHistoryOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_updateOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateOhAuthTooToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateOhAuthTooToken(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOhAuthTooTokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOTemplateHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryOrder(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *generated.TemplateHistoryOrder - return zeroVal, nil + res := resTmp.(*OhAuthTooTokenUpdatePayload) + fc.Result = res + return ec.marshalNOhAuthTooTokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_templateHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.TemplateHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.TemplateHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "ohAuthTooToken": + return ec.fieldContext_OhAuthTooTokenUpdatePayload_ohAuthTooToken(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOTemplateHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateOhAuthTooToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.TemplateHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_templateSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_templateSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_deleteOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteOhAuthTooToken(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_templateSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteOhAuthTooToken(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*OhAuthTooTokenDeletePayload) + fc.Result = res + return ec.marshalNOhAuthTooTokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_template_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_template_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_template_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_OhAuthTooTokenDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteOhAuthTooToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal string - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_templates_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_templates_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_createOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createOrganization(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_templates_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateOrganization(rctx, fc.Args["input"].(generated.CreateOrganizationInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_templates_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_templates_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*OrganizationCreatePayload) + fc.Result = res + return ec.marshalNOrganizationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "organization": + return ec.fieldContext_OrganizationCreatePayload_organization(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationCreatePayload", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_templates_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_templates_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkOrganization(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_templates_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkOrganization(rctx, fc.Args["input"].([]*generated.CreateOrganizationInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*OrganizationBulkCreatePayload) + fc.Result = res + return ec.marshalNOrganizationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_templates_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "organizations": + return ec.fieldContext_OrganizationBulkCreatePayload_organizations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_templates_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkCSVOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVOrganization(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVOrganization(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*OrganizationBulkCreatePayload) + fc.Result = res + return ec.marshalNOrganizationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_templates_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "organizations": + return ec.fieldContext_OrganizationBulkCreatePayload_organizations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_templates_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.TemplateOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.TemplateOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_updateOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateOrganization(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOTemplateOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateOrganization(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrganizationInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.TemplateOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*OrganizationUpdatePayload) + fc.Result = res + return ec.marshalNOrganizationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_templates_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.TemplateWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.TemplateWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "organization": + return ec.fieldContext_OrganizationUpdatePayload_organization(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.TemplateWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_tfaSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_tfaSetting_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_deleteOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteOrganization(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_tfaSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal *string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteOrganization(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalOID2ᚖstring(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *string - return zeroVal, nil + res := resTmp.(*OrganizationDeletePayload) + fc.Result = res + return ec.marshalNOrganizationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_tfaSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_tfaSettings_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_deleteOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_OrganizationDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationDeletePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_tfaSettings_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_tfaSettings_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createOrganizationSetting(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_tfaSettings_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateOrganizationSetting(rctx, fc.Args["input"].(generated.CreateOrganizationSettingInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_tfaSettings_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*OrganizationSettingCreatePayload) + fc.Result = res + return ec.marshalNOrganizationSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_tfaSettings_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_createOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "organizationSetting": + return ec.fieldContext_OrganizationSettingCreatePayload_organizationSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingCreatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_createOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_tfaSettings_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkOrganizationSetting(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkOrganizationSetting(rctx, fc.Args["input"].([]*generated.CreateOrganizationSettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*OrganizationSettingBulkCreatePayload) + fc.Result = res + return ec.marshalNOrganizationSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_tfaSettings_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "organizationSettings": + return ec.fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_tfaSettings_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkCSVOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVOrganizationSetting(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVOrganizationSetting(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*OrganizationSettingBulkCreatePayload) + fc.Result = res + return ec.marshalNOrganizationSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_tfaSettings_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.TFASettingWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.TFASettingWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "organizationSettings": + return ec.fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.TFASettingWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_userHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_userHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_updateOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateOrganizationSetting(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_userHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateOrganizationSetting(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrganizationSettingInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_userHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_userHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*OrganizationSettingUpdatePayload) + fc.Result = res + return ec.marshalNOrganizationSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "organizationSetting": + return ec.fieldContext_OrganizationSettingUpdatePayload_organizationSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingUpdatePayload", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_userHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_userHistories_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteOrganizationSetting(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_userHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteOrganizationSetting(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*OrganizationSettingDeletePayload) + fc.Result = res + return ec.marshalNOrganizationSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_userHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_OrganizationSettingDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_userHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_createOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createOrgMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateOrgMembership(rctx, fc.Args["input"].(generated.CreateOrgMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*OrgMembershipCreatePayload) + fc.Result = res + return ec.marshalNOrgMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_userHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "orgMembership": + return ec.fieldContext_OrgMembershipCreatePayload_orgMembership(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_userHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.UserHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.UserHistoryOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_createBulkOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkOrgMembership(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOUserHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkOrgMembership(rctx, fc.Args["input"].([]*generated.CreateOrgMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.UserHistoryOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*OrgMembershipBulkCreatePayload) + fc.Result = res + return ec.marshalNOrgMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_userHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.UserHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.UserHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "orgMemberships": + return ec.fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOUserHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.UserHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_userSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_userSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkCSVOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVOrgMembership(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_userSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVOrgMembership(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*OrgMembershipBulkCreatePayload) + fc.Result = res + return ec.marshalNOrgMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_userSettingHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_userSettingHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "orgMemberships": + return ec.fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipBulkCreatePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_userSettingHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_userSettingHistories_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_updateOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateOrgMembership(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_userSettingHistories_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateOrgMembership(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrgMembershipInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_userSettingHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*OrgMembershipUpdatePayload) + fc.Result = res + return ec.marshalNOrgMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_userSettingHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_updateOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "orgMembership": + return ec.fieldContext_OrgMembershipUpdatePayload_orgMembership(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipUpdatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_updateOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_userSettingHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteOrgMembership(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteOrgMembership(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*OrgMembershipDeletePayload) + fc.Result = res + return ec.marshalNOrgMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_userSettingHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_OrgMembershipDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_userSettingHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createPersonalAccessToken(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreatePersonalAccessToken(rctx, fc.Args["input"].(generated.CreatePersonalAccessTokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*PersonalAccessTokenCreatePayload) + fc.Result = res + return ec.marshalNPersonalAccessTokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_userSettingHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.UserSettingHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.UserSettingHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "personalAccessToken": + return ec.fieldContext_PersonalAccessTokenCreatePayload_personalAccessToken(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOUserSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createPersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.UserSettingHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_userSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_userSettingSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkPersonalAccessToken(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_userSettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkPersonalAccessToken(rctx, fc.Args["input"].([]*generated.CreatePersonalAccessTokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*PersonalAccessTokenBulkCreatePayload) + fc.Result = res + return ec.marshalNPersonalAccessTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenBulkCreatePayload(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "personalAccessTokens": + return ec.fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenBulkCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkPersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_userSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_userSetting_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkCSVPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVPersonalAccessToken(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_userSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVPersonalAccessToken(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal string - return zeroVal, nil + res := resTmp.(*PersonalAccessTokenBulkCreatePayload) + fc.Result = res + return ec.marshalNPersonalAccessTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_userSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_userSettings_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err +func (ec *executionContext) fieldContext_Mutation_createBulkCSVPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "personalAccessTokens": + return ec.fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenBulkCreatePayload", field.Name) + }, } - args["after"] = arg0 - arg1, err := ec.field_Query_userSettings_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVPersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["first"] = arg1 - arg2, err := ec.field_Query_userSettings_argsBefore(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_updatePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updatePersonalAccessToken(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_userSettings_argsLast(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdatePersonalAccessToken(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdatePersonalAccessTokenInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["last"] = arg3 - arg4, err := ec.field_Query_userSettings_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["where"] = arg4 - return args, nil + res := resTmp.(*PersonalAccessTokenUpdatePayload) + fc.Result = res + return ec.marshalNPersonalAccessTokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_userSettings_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) +func (ec *executionContext) fieldContext_Mutation_updatePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "personalAccessToken": + return ec.fieldContext_PersonalAccessTokenUpdatePayload_personalAccessToken(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenUpdatePayload", field.Name) + }, } - - var zeroVal *entgql.Cursor[string] - return zeroVal, 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_Mutation_updatePersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_userSettings_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_deletePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deletePersonalAccessToken(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeletePersonalAccessToken(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*PersonalAccessTokenDeletePayload) + fc.Result = res + return ec.marshalNPersonalAccessTokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_userSettings_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deletePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_PersonalAccessTokenDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deletePersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_userSettings_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) _Mutation_createProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createProcedure(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateProcedure(rctx, fc.Args["input"].(generated.CreateProcedureInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *int - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*ProcedureCreatePayload) + fc.Result = res + return ec.marshalNProcedureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_userSettings_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.UserSettingWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.UserSettingWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createProcedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "procedure": + return ec.fieldContext_ProcedureCreatePayload_procedure(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOUserSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.UserSettingWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_user_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkProcedure(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_user_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkProcedure(rctx, fc.Args["input"].([]*generated.CreateProcedureInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*ProcedureBulkCreatePayload) + fc.Result = res + return ec.marshalNProcedureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureBulkCreatePayload(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkProcedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "procedures": + return ec.fieldContext_ProcedureBulkCreatePayload_procedures(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureBulkCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_users_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkCSVProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVProcedure(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_users_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVProcedure(rctx, fc.Args["input"].(graphql.Upload)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_users_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_users_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*ProcedureBulkCreatePayload) + fc.Result = res + return ec.marshalNProcedureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVProcedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "procedures": + return ec.fieldContext_ProcedureBulkCreatePayload_procedures(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureBulkCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["last"] = arg3 - arg4, err := ec.field_Query_users_argsOrderBy(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_updateProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateProcedure(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_users_argsWhere(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateProcedure(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateProcedureInput)) + }) if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_users_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*ProcedureUpdatePayload) + fc.Result = res + return ec.marshalNProcedureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_users_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateProcedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "procedure": + return ec.fieldContext_ProcedureUpdatePayload_procedure(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_users_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteProcedure(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteProcedure(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*ProcedureDeletePayload) + fc.Result = res + return ec.marshalNProcedureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_users_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteProcedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_ProcedureDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_users_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.UserOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.UserOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_createRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createRisk(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOUserOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateRisk(rctx, fc.Args["input"].(generated.CreateRiskInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.UserOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*RiskCreatePayload) + fc.Result = res + return ec.marshalNRiskCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_users_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.UserWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.UserWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createRisk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "risk": + return ec.fieldContext_RiskCreatePayload_risk(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RiskCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.UserWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_webhookHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_webhookHistories_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkRisk(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_webhookHistories_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkRisk(rctx, fc.Args["input"].([]*generated.CreateRiskInput)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_webhookHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_webhookHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*RiskBulkCreatePayload) + fc.Result = res + return ec.marshalNRiskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkRisk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "risks": + return ec.fieldContext_RiskBulkCreatePayload_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RiskBulkCreatePayload", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_webhookHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_webhookHistories_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVRisk(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_webhookHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVRisk(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*RiskBulkCreatePayload) + fc.Result = res + return ec.marshalNRiskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_webhookHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkCSVRisk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "risks": + return ec.fieldContext_RiskBulkCreatePayload_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RiskBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_webhookHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_updateRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateRisk(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateRisk(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateRiskInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*RiskUpdatePayload) + fc.Result = res + return ec.marshalNRiskUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_webhookHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateRisk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "risk": + return ec.fieldContext_RiskUpdatePayload_risk(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RiskUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_webhookHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.WebhookHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.WebhookHistoryOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteRisk(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOWebhookHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteRisk(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.WebhookHistoryOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*RiskDeletePayload) + fc.Result = res + return ec.marshalNRiskDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_webhookHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.WebhookHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.WebhookHistoryWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteRisk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_RiskDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RiskDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOWebhookHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.WebhookHistoryWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_webhookSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_webhookSearch_argsQuery(ctx, rawArgs) +func (ec *executionContext) _Mutation_createStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createStandard(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_webhookSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateStandard(rctx, fc.Args["input"].(generated.CreateStandardInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*StandardCreatePayload) + fc.Result = res + return ec.marshalNStandardCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardCreatePayload(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createStandard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "standard": + return ec.fieldContext_StandardCreatePayload_standard(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_webhook_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_webhook_argsID(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkStandard(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_webhook_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkStandard(rctx, fc.Args["input"].([]*generated.CreateStandardInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } + res := resTmp.(*StandardBulkCreatePayload) + fc.Result = res + return ec.marshalNStandardBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardBulkCreatePayload(ctx, field.Selections, res) +} - var zeroVal string - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createBulkStandard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "standards": + return ec.fieldContext_StandardBulkCreatePayload_standards(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardBulkCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) field_Query_webhooks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_webhooks_argsAfter(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkCSVStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVStandard(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["after"] = arg0 - arg1, err := ec.field_Query_webhooks_argsFirst(ctx, rawArgs) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVStandard(rctx, fc.Args["input"].(graphql.Upload)) + }) if err != nil { - return nil, err + ec.Error(ctx, err) + return graphql.Null } - args["first"] = arg1 - arg2, err := ec.field_Query_webhooks_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - args["before"] = arg2 - arg3, err := ec.field_Query_webhooks_argsLast(ctx, rawArgs) - if err != nil { - return nil, err + res := resTmp.(*StandardBulkCreatePayload) + fc.Result = res + return ec.marshalNStandardBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVStandard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "standards": + return ec.fieldContext_StandardBulkCreatePayload_standards(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardBulkCreatePayload", field.Name) + }, } - args["last"] = arg3 - arg4, err := ec.field_Query_webhooks_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_webhooks_argsWhere(ctx, rawArgs) + return fc, nil +} + +func (ec *executionContext) _Mutation_updateStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateStandard(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_webhooks_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateStandard(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateStandardInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + res := resTmp.(*StandardUpdatePayload) + fc.Result = res + return ec.marshalNStandardUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_webhooks_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_updateStandard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "standard": + return ec.fieldContext_StandardUpdatePayload_standard(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardUpdatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) - if tmp, ok := rawArgs["first"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_webhooks_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil +func (ec *executionContext) _Mutation_deleteStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteStandard(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteStandard(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*StandardDeletePayload) + fc.Result = res + return ec.marshalNStandardDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_webhooks_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_deleteStandard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_StandardDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardDeletePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) - if tmp, ok := rawArgs["last"]; ok { - return ec.unmarshalOInt2ᚖint(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *int - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field_Query_webhooks_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.WebhookOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.WebhookOrder - return zeroVal, nil +func (ec *executionContext) _Mutation_createSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createSubcontrol(ctx, field) + if err != nil { + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOWebhookOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookOrder(ctx, tmp) + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateSubcontrol(rctx, fc.Args["input"].(generated.CreateSubcontrolInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - var zeroVal *generated.WebhookOrder - return zeroVal, nil + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*SubcontrolCreatePayload) + fc.Result = res + return ec.marshalNSubcontrolCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field_Query_webhooks_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.WebhookWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.WebhookWhereInput - return zeroVal, nil +func (ec *executionContext) fieldContext_Mutation_createSubcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "subcontrol": + return ec.fieldContext_SubcontrolCreatePayload_subcontrol(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubcontrolCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOWebhookWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInput(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal *generated.WebhookWhereInput - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkSubcontrol(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["includeDeprecated"] = arg0 - return args, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkSubcontrol(rctx, fc.Args["input"].([]*generated.CreateSubcontrolInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*SubcontrolBulkCreatePayload) + fc.Result = res + return ec.marshalNSubcontrolBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( - ctx context.Context, - rawArgs map[string]interface{}, -) (bool, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { - var zeroVal bool - return zeroVal, nil + +func (ec *executionContext) fieldContext_Mutation_createBulkSubcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "subcontrols": + return ec.fieldContext_SubcontrolBulkCreatePayload_subcontrols(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubcontrolBulkCreatePayload", field.Name) + }, } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) - if tmp, ok := rawArgs["includeDeprecated"]; ok { - return ec.unmarshalOBoolean2bool(ctx, tmp) + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } - - var zeroVal bool - return zeroVal, nil + return fc, nil } -func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) +func (ec *executionContext) _Mutation_createBulkCSVSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVSubcontrol(ctx, field) if err != nil { - return nil, err + return graphql.Null } - args["includeDeprecated"] = arg0 - return args, nil -} -func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( - ctx context.Context, - rawArgs map[string]interface{}, -) (bool, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { - var zeroVal bool - return zeroVal, nil + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVSubcontrol(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) - if tmp, ok := rawArgs["includeDeprecated"]; ok { - return ec.unmarshalOBoolean2bool(ctx, tmp) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null } - - var zeroVal bool - return zeroVal, nil + res := resTmp.(*SubcontrolBulkCreatePayload) + fc.Result = res + return ec.marshalNSubcontrolBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolBulkCreatePayload(ctx, field.Selections, res) } -// endregion ***************************** args.gotpl ***************************** - -// region ************************** directives.gotpl ************************** - -// endregion ************************** directives.gotpl ************************** - -// region **************************** field.gotpl ***************************** +func (ec *executionContext) fieldContext_Mutation_createBulkCSVSubcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "subcontrols": + return ec.fieldContext_SubcontrolBulkCreatePayload_subcontrols(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubcontrolBulkCreatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} -func (ec *executionContext) _APIToken_id(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_id(ctx, field) +func (ec *executionContext) _Mutation_updateSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateSubcontrol(ctx, field) if err != nil { return graphql.Null } @@ -55990,7 +139683,7 @@ func (ec *executionContext) _APIToken_id(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return ec.resolvers.Mutation().UpdateSubcontrol(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateSubcontrolInput)) }) if err != nil { ec.Error(ctx, err) @@ -56002,26 +139695,41 @@ func (ec *executionContext) _APIToken_id(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*SubcontrolUpdatePayload) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNSubcontrolUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_updateSubcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "subcontrol": + return ec.fieldContext_SubcontrolUpdatePayload_subcontrol(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubcontrolUpdatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_createdAt(ctx, field) +func (ec *executionContext) _Mutation_deleteSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteSubcontrol(ctx, field) if err != nil { return graphql.Null } @@ -56034,35 +139742,53 @@ func (ec *executionContext) _APIToken_createdAt(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return ec.resolvers.Mutation().DeleteSubcontrol(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*SubcontrolDeletePayload) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNSubcontrolDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_deleteSubcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "deletedID": + return ec.fieldContext_SubcontrolDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubcontrolDeletePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_updatedAt(ctx, field) +func (ec *executionContext) _Mutation_createSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createSubscriber(ctx, field) if err != nil { return graphql.Null } @@ -56075,35 +139801,53 @@ func (ec *executionContext) _APIToken_updatedAt(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return ec.resolvers.Mutation().CreateSubscriber(rctx, fc.Args["input"].(generated.CreateSubscriberInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*SubscriberCreatePayload) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNSubscriberCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "subscriber": + return ec.fieldContext_SubscriberCreatePayload_subscriber(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubscriberCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_createdBy(ctx, field) +func (ec *executionContext) _Mutation_createBulkSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkSubscriber(ctx, field) if err != nil { return graphql.Null } @@ -56116,35 +139860,53 @@ func (ec *executionContext) _APIToken_createdBy(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return ec.resolvers.Mutation().CreateBulkSubscriber(rctx, fc.Args["input"].([]*generated.CreateSubscriberInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*SubscriberBulkCreatePayload) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNSubscriberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createBulkSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "subscribers": + return ec.fieldContext_SubscriberBulkCreatePayload_subscribers(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubscriberBulkCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_updatedBy(ctx, field) +func (ec *executionContext) _Mutation_createBulkCSVSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVSubscriber(ctx, field) if err != nil { return graphql.Null } @@ -56157,35 +139919,53 @@ func (ec *executionContext) _APIToken_updatedBy(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return ec.resolvers.Mutation().CreateBulkCSVSubscriber(rctx, fc.Args["input"].(graphql.Upload)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*SubscriberBulkCreatePayload) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNSubscriberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createBulkCSVSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "subscribers": + return ec.fieldContext_SubscriberBulkCreatePayload_subscribers(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubscriberBulkCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_deletedAt(ctx, field) +func (ec *executionContext) _Mutation_updateSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateSubscriber(ctx, field) if err != nil { return graphql.Null } @@ -56198,35 +139978,53 @@ func (ec *executionContext) _APIToken_deletedAt(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return ec.resolvers.Mutation().UpdateSubscriber(rctx, fc.Args["email"].(string), fc.Args["input"].(generated.UpdateSubscriberInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*SubscriberUpdatePayload) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNSubscriberUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_updateSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "subscriber": + return ec.fieldContext_SubscriberUpdatePayload_subscriber(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubscriberUpdatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_deletedBy(ctx, field) +func (ec *executionContext) _Mutation_deleteSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteSubscriber(ctx, field) if err != nil { return graphql.Null } @@ -56239,35 +140037,53 @@ func (ec *executionContext) _APIToken_deletedBy(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return ec.resolvers.Mutation().DeleteSubscriber(rctx, fc.Args["email"].(string), fc.Args["ownerID"].(*string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*SubscriberDeletePayload) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNSubscriberDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_deleteSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "email": + return ec.fieldContext_SubscriberDeletePayload_email(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubscriberDeletePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_tags(ctx, field) +func (ec *executionContext) _Mutation_createTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createTemplate(ctx, field) if err != nil { return graphql.Null } @@ -56280,35 +140096,53 @@ func (ec *executionContext) _APIToken_tags(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return ec.resolvers.Mutation().CreateTemplate(rctx, fc.Args["input"].(generated.CreateTemplateInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*TemplateCreatePayload) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNTemplateCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "template": + return ec.fieldContext_TemplateCreatePayload_template(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_ownerID(ctx, field) +func (ec *executionContext) _Mutation_createBulkTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkTemplate(ctx, field) if err != nil { return graphql.Null } @@ -56321,35 +140155,53 @@ func (ec *executionContext) _APIToken_ownerID(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return ec.resolvers.Mutation().CreateBulkTemplate(rctx, fc.Args["input"].([]*generated.CreateTemplateInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*TemplateBulkCreatePayload) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalNTemplateBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createBulkTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "templates": + return ec.fieldContext_TemplateBulkCreatePayload_templates(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateBulkCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_name(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_name(ctx, field) +func (ec *executionContext) _Mutation_createBulkCSVTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVTemplate(ctx, field) if err != nil { return graphql.Null } @@ -56362,7 +140214,7 @@ func (ec *executionContext) _APIToken_name(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return ec.resolvers.Mutation().CreateBulkCSVTemplate(rctx, fc.Args["input"].(graphql.Upload)) }) if err != nil { ec.Error(ctx, err) @@ -56374,26 +140226,41 @@ func (ec *executionContext) _APIToken_name(ctx context.Context, field graphql.Co } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*TemplateBulkCreatePayload) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNTemplateBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createBulkCSVTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "templates": + return ec.fieldContext_TemplateBulkCreatePayload_templates(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateBulkCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_token(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_token(ctx, field) +func (ec *executionContext) _Mutation_updateTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateTemplate(ctx, field) if err != nil { return graphql.Null } @@ -56406,7 +140273,7 @@ func (ec *executionContext) _APIToken_token(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Token, nil + return ec.resolvers.Mutation().UpdateTemplate(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateTemplateInput)) }) if err != nil { ec.Error(ctx, err) @@ -56418,26 +140285,41 @@ func (ec *executionContext) _APIToken_token(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*TemplateUpdatePayload) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNTemplateUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_updateTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "template": + return ec.fieldContext_TemplateUpdatePayload_template(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateUpdatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_expiresAt(ctx, field) +func (ec *executionContext) _Mutation_deleteTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteTemplate(ctx, field) if err != nil { return graphql.Null } @@ -56450,35 +140332,53 @@ func (ec *executionContext) _APIToken_expiresAt(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExpiresAt, nil + return ec.resolvers.Mutation().DeleteTemplate(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.(*TemplateDeletePayload) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalNTemplateDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_deleteTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "deletedID": + return ec.fieldContext_TemplateDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateDeletePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_description(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_description(ctx, field) +func (ec *executionContext) _Mutation_createTFASetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createTFASetting(ctx, field) if err != nil { return graphql.Null } @@ -56491,35 +140391,53 @@ func (ec *executionContext) _APIToken_description(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return ec.resolvers.Mutation().CreateTFASetting(rctx, fc.Args["input"].(generated.CreateTFASettingInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*TFASettingCreatePayload) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNTFASettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createTFASetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "tfaSetting": + return ec.fieldContext_TFASettingCreatePayload_tfaSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TFASettingCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createTFASetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_scopes(ctx, field) +func (ec *executionContext) _Mutation_updateTFASetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateTFASetting(ctx, field) if err != nil { return graphql.Null } @@ -56532,35 +140450,53 @@ func (ec *executionContext) _APIToken_scopes(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Scopes, nil + return ec.resolvers.Mutation().UpdateTFASetting(rctx, fc.Args["input"].(generated.UpdateTFASettingInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*TFASettingUpdatePayload) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNTFASettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_updateTFASetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "tfaSetting": + return ec.fieldContext_TFASettingUpdatePayload_tfaSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TFASettingUpdatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateTFASetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_lastUsedAt(ctx, field) +func (ec *executionContext) _Mutation_createUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createUser(ctx, field) if err != nil { return graphql.Null } @@ -56573,35 +140509,53 @@ func (ec *executionContext) _APIToken_lastUsedAt(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastUsedAt, nil + return ec.resolvers.Mutation().CreateUser(rctx, fc.Args["input"].(generated.CreateUserInput), fc.Args["avatarFile"].(*graphql.Upload)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.(*UserCreatePayload) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalNUserCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "user": + return ec.fieldContext_UserCreatePayload_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APIToken_owner(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_owner(ctx, field) +func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateUser(ctx, field) if err != nil { return graphql.Null } @@ -56614,119 +140568,53 @@ func (ec *executionContext) _APIToken_owner(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return ec.resolvers.Mutation().UpdateUser(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateUserInput), fc.Args["avatarFile"].(*graphql.Upload)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(*UserUpdatePayload) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNUserUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APIToken_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APIToken", + Object: "Mutation", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + case "user": + return ec.fieldContext_UserUpdatePayload_user(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserUpdatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APITokenBulkCreatePayload_apiTokens(ctx context.Context, field graphql.CollectedField, obj *APITokenBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenBulkCreatePayload_apiTokens(ctx, field) +func (ec *executionContext) _Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteUser(ctx, field) if err != nil { return graphql.Null } @@ -56739,69 +140627,53 @@ func (ec *executionContext) _APITokenBulkCreatePayload_apiTokens(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.APITokens, nil + return ec.resolvers.Mutation().DeleteUser(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.APIToken) + res := resTmp.(*UserDeletePayload) fc.Result = res - return ec.marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx, field.Selections, res) + return ec.marshalNUserDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APITokenBulkCreatePayload_apiTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APITokenBulkCreatePayload", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) + case "deletedID": + return ec.fieldContext_UserDeletePayload_deletedID(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserDeletePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APITokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenConnection_edges(ctx, field) +func (ec *executionContext) _Mutation_createUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createUserSetting(ctx, field) if err != nil { return graphql.Null } @@ -56814,41 +140686,53 @@ func (ec *executionContext) _APITokenConnection_edges(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return ec.resolvers.Mutation().CreateUserSetting(rctx, fc.Args["input"].(generated.CreateUserSettingInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.APITokenEdge) + res := resTmp.(*UserSettingCreatePayload) fc.Result = res - return ec.marshalOAPITokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenEdge(ctx, field.Selections, res) + return ec.marshalNUserSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APITokenConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createUserSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APITokenConnection", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_APITokenEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_APITokenEdge_cursor(ctx, field) + case "userSetting": + return ec.fieldContext_UserSettingCreatePayload_userSetting(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APITokenEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSettingCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APITokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenConnection_pageInfo(ctx, field) +func (ec *executionContext) _Mutation_createBulkUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkUserSetting(ctx, field) if err != nil { return graphql.Null } @@ -56861,7 +140745,7 @@ func (ec *executionContext) _APITokenConnection_pageInfo(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return ec.resolvers.Mutation().CreateBulkUserSetting(rctx, fc.Args["input"].([]*generated.CreateUserSettingInput)) }) if err != nil { ec.Error(ctx, err) @@ -56873,36 +140757,41 @@ func (ec *executionContext) _APITokenConnection_pageInfo(ctx context.Context, fi } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*UserSettingBulkCreatePayload) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNUserSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APITokenConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createBulkUserSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APITokenConnection", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "userSettings": + return ec.fieldContext_UserSettingBulkCreatePayload_userSettings(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSettingBulkCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APITokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenConnection_totalCount(ctx, field) +func (ec *executionContext) _Mutation_createBulkCSVUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVUserSetting(ctx, field) if err != nil { return graphql.Null } @@ -56915,7 +140804,7 @@ func (ec *executionContext) _APITokenConnection_totalCount(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return ec.resolvers.Mutation().CreateBulkCSVUserSetting(rctx, fc.Args["input"].(graphql.Upload)) }) if err != nil { ec.Error(ctx, err) @@ -56927,26 +140816,41 @@ func (ec *executionContext) _APITokenConnection_totalCount(ctx context.Context, } return graphql.Null } - res := resTmp.(int) + res := resTmp.(*UserSettingBulkCreatePayload) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNUserSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APITokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createBulkCSVUserSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APITokenConnection", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "userSettings": + return ec.fieldContext_UserSettingBulkCreatePayload_userSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingBulkCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APITokenCreatePayload_apiToken(ctx context.Context, field graphql.CollectedField, obj *APITokenCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenCreatePayload_apiToken(ctx, field) +func (ec *executionContext) _Mutation_updateUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateUserSetting(ctx, field) if err != nil { return graphql.Null } @@ -56959,7 +140863,7 @@ func (ec *executionContext) _APITokenCreatePayload_apiToken(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.APIToken, nil + return ec.resolvers.Mutation().UpdateUserSetting(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateUserSettingInput)) }) if err != nil { ec.Error(ctx, err) @@ -56971,60 +140875,100 @@ func (ec *executionContext) _APITokenCreatePayload_apiToken(ctx context.Context, } return graphql.Null } - res := resTmp.(*generated.APIToken) + res := resTmp.(*UserSettingUpdatePayload) fc.Result = res - return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) + return ec.marshalNUserSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APITokenCreatePayload_apiToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_updateUserSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APITokenCreatePayload", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) + case "userSetting": + return ec.fieldContext_UserSettingUpdatePayload_userSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingUpdatePayload", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createWebhook(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateWebhook(rctx, fc.Args["input"].(generated.CreateWebhookInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*WebhookCreatePayload) + fc.Result = res + return ec.marshalNWebhookCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "webhook": + return ec.fieldContext_WebhookCreatePayload_webhook(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + return nil, fmt.Errorf("no field named %q was found under type WebhookCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APITokenDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *APITokenDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Mutation_createBulkWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkWebhook(ctx, field) if err != nil { return graphql.Null } @@ -57037,7 +140981,7 @@ func (ec *executionContext) _APITokenDeletePayload_deletedID(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return ec.resolvers.Mutation().CreateBulkWebhook(rctx, fc.Args["input"].([]*generated.CreateWebhookInput)) }) if err != nil { ec.Error(ctx, err) @@ -57049,26 +140993,41 @@ func (ec *executionContext) _APITokenDeletePayload_deletedID(ctx context.Context } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*WebhookBulkCreatePayload) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNWebhookBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APITokenDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createBulkWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APITokenDeletePayload", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "webhooks": + return ec.fieldContext_WebhookBulkCreatePayload_webhooks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type WebhookBulkCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APITokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenEdge_node(ctx, field) +func (ec *executionContext) _Mutation_createBulkCSVWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVWebhook(ctx, field) if err != nil { return graphql.Null } @@ -57081,69 +141040,53 @@ func (ec *executionContext) _APITokenEdge_node(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return ec.resolvers.Mutation().CreateBulkCSVWebhook(rctx, fc.Args["input"].(graphql.Upload)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.APIToken) + res := resTmp.(*WebhookBulkCreatePayload) fc.Result = res - return ec.marshalOAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) + return ec.marshalNWebhookBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookBulkCreatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APITokenEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_createBulkCSVWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APITokenEdge", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) + case "webhooks": + return ec.fieldContext_WebhookBulkCreatePayload_webhooks(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + return nil, fmt.Errorf("no field named %q was found under type WebhookBulkCreatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APITokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenEdge_cursor(ctx, field) +func (ec *executionContext) _Mutation_updateWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateWebhook(ctx, field) if err != nil { return graphql.Null } @@ -57156,7 +141099,7 @@ func (ec *executionContext) _APITokenEdge_cursor(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return ec.resolvers.Mutation().UpdateWebhook(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateWebhookInput)) }) if err != nil { ec.Error(ctx, err) @@ -57168,26 +141111,41 @@ func (ec *executionContext) _APITokenEdge_cursor(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*WebhookUpdatePayload) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNWebhookUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookUpdatePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APITokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_updateWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APITokenEdge", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "webhook": + return ec.fieldContext_WebhookUpdatePayload_webhook(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type WebhookUpdatePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APITokenSearchResult_apiTokens(ctx context.Context, field graphql.CollectedField, obj *APITokenSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenSearchResult_apiTokens(ctx, field) +func (ec *executionContext) _Mutation_deleteWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteWebhook(ctx, field) if err != nil { return graphql.Null } @@ -57200,69 +141158,53 @@ func (ec *executionContext) _APITokenSearchResult_apiTokens(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.APITokens, nil + return ec.resolvers.Mutation().DeleteWebhook(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.APIToken) + res := resTmp.(*WebhookDeletePayload) fc.Result = res - return ec.marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx, field.Selections, res) + return ec.marshalNWebhookDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookDeletePayload(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APITokenSearchResult_apiTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_deleteWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APITokenSearchResult", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) + case "deletedID": + return ec.fieldContext_WebhookDeletePayload_deletedID(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + return nil, fmt.Errorf("no field named %q was found under type WebhookDeletePayload", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _APITokenUpdatePayload_apiToken(ctx context.Context, field graphql.CollectedField, obj *APITokenUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenUpdatePayload_apiToken(ctx, field) +func (ec *executionContext) _Narrative_id(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_id(ctx, field) if err != nil { return graphql.Null } @@ -57275,7 +141217,7 @@ func (ec *executionContext) _APITokenUpdatePayload_apiToken(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.APIToken, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -57287,60 +141229,26 @@ func (ec *executionContext) _APITokenUpdatePayload_apiToken(ctx context.Context, } return graphql.Null } - res := resTmp.(*generated.APIToken) + res := resTmp.(string) fc.Result = res - return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_APITokenUpdatePayload_apiToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "APITokenUpdatePayload", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _AuditLog_table(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLog_table(ctx, field) +func (ec *executionContext) _Narrative_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -57353,7 +141261,7 @@ func (ec *executionContext) _AuditLog_table(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Table, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -57362,26 +141270,26 @@ func (ec *executionContext) _AuditLog_table(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_AuditLog_table(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AuditLog", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _AuditLog_time(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLog_time(ctx, field) +func (ec *executionContext) _Narrative_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -57394,7 +141302,7 @@ func (ec *executionContext) _AuditLog_time(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Time, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -57403,14 +141311,14 @@ func (ec *executionContext) _AuditLog_time(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_AuditLog_time(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AuditLog", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, @@ -57421,8 +141329,8 @@ func (ec *executionContext) fieldContext_AuditLog_time(_ context.Context, field return fc, nil } -func (ec *executionContext) _AuditLog_id(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLog_id(ctx, field) +func (ec *executionContext) _Narrative_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -57435,38 +141343,35 @@ func (ec *executionContext) _AuditLog_id(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_AuditLog_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AuditLog", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _AuditLog_operation(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLog_operation(ctx, field) +func (ec *executionContext) _Narrative_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -57479,7 +141384,7 @@ func (ec *executionContext) _AuditLog_operation(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -57488,14 +141393,14 @@ func (ec *executionContext) _AuditLog_operation(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_AuditLog_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AuditLog", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, @@ -57506,8 +141411,8 @@ func (ec *executionContext) fieldContext_AuditLog_operation(_ context.Context, f return fc, nil } -func (ec *executionContext) _AuditLog_changes(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLog_changes(ctx, field) +func (ec *executionContext) _Narrative_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -57520,7 +141425,7 @@ func (ec *executionContext) _AuditLog_changes(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Changes, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -57529,26 +141434,26 @@ func (ec *executionContext) _AuditLog_changes(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_AuditLog_changes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AuditLog", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _AuditLog_updatedBy(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLog_updatedBy(ctx, field) +func (ec *executionContext) _Narrative_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -57561,7 +141466,7 @@ func (ec *executionContext) _AuditLog_updatedBy(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -57570,26 +141475,26 @@ func (ec *executionContext) _AuditLog_updatedBy(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOID2ᚖstring(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_AuditLog_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AuditLog", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _AuditLogConnection_edges(ctx context.Context, field graphql.CollectedField, obj *AuditLogConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLogConnection_edges(ctx, field) +func (ec *executionContext) _Narrative_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_tags(ctx, field) if err != nil { return graphql.Null } @@ -57602,7 +141507,7 @@ func (ec *executionContext) _AuditLogConnection_edges(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -57611,32 +141516,26 @@ func (ec *executionContext) _AuditLogConnection_edges(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*AuditLogEdge) + res := resTmp.([]string) fc.Result = res - return ec.marshalOAuditLogEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogEdge(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_AuditLogConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AuditLogConnection", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_AuditLogEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_AuditLogEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AuditLogEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _AuditLogConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *AuditLogConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLogConnection_pageInfo(ctx, field) +func (ec *executionContext) _Narrative_name(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_name(ctx, field) if err != nil { return graphql.Null } @@ -57649,7 +141548,7 @@ func (ec *executionContext) _AuditLogConnection_pageInfo(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -57661,36 +141560,26 @@ func (ec *executionContext) _AuditLogConnection_pageInfo(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_AuditLogConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AuditLogConnection", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _AuditLogConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *AuditLogConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLogConnection_totalCount(ctx, field) +func (ec *executionContext) _Narrative_description(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_description(ctx, field) if err != nil { return graphql.Null } @@ -57703,38 +141592,35 @@ func (ec *executionContext) _AuditLogConnection_totalCount(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_AuditLogConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AuditLogConnection", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _AuditLogEdge_node(ctx context.Context, field graphql.CollectedField, obj *AuditLogEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLogEdge_node(ctx, field) +func (ec *executionContext) _Narrative_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -57747,7 +141633,7 @@ func (ec *executionContext) _AuditLogEdge_node(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, err) @@ -57756,40 +141642,26 @@ func (ec *executionContext) _AuditLogEdge_node(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*AuditLog) + res := resTmp.(string) fc.Result = res - return ec.marshalOAuditLog2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLog(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_AuditLogEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AuditLogEdge", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "table": - return ec.fieldContext_AuditLog_table(ctx, field) - case "time": - return ec.fieldContext_AuditLog_time(ctx, field) - case "id": - return ec.fieldContext_AuditLog_id(ctx, field) - case "operation": - return ec.fieldContext_AuditLog_operation(ctx, field) - case "changes": - return ec.fieldContext_AuditLog_changes(ctx, field) - case "updatedBy": - return ec.fieldContext_AuditLog_updatedBy(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AuditLog", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _AuditLogEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *AuditLogEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLogEdge_cursor(ctx, field) +func (ec *executionContext) _Narrative_details(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_details(ctx, field) if err != nil { return graphql.Null } @@ -57802,38 +141674,35 @@ func (ec *executionContext) _AuditLogEdge_cursor(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_AuditLogEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "AuditLogEdge", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Contact_id(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_id(ctx, field) +func (ec *executionContext) _Narrative_policy(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_policy(ctx, field) if err != nil { return graphql.Null } @@ -57846,38 +141715,77 @@ func (ec *executionContext) _Contact_id(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Policy(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.InternalPolicy) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_policy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "Narrative", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_InternalPolicy_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) }, } return fc, nil } -func (ec *executionContext) _Contact_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_createdAt(ctx, field) +func (ec *executionContext) _Narrative_control(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_control(ctx, field) if err != nil { return graphql.Null } @@ -57890,7 +141798,7 @@ func (ec *executionContext) _Contact_createdAt(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Control(ctx) }) if err != nil { ec.Error(ctx, err) @@ -57899,26 +141807,82 @@ func (ec *executionContext) _Contact_createdAt(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "Narrative", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _Contact_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_updatedAt(ctx, field) +func (ec *executionContext) _Narrative_procedure(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_procedure(ctx, field) if err != nil { return graphql.Null } @@ -57931,7 +141895,7 @@ func (ec *executionContext) _Contact_updatedAt(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Procedure(ctx) }) if err != nil { ec.Error(ctx, err) @@ -57940,26 +141904,70 @@ func (ec *executionContext) _Contact_updatedAt(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "Narrative", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "control": + return ec.fieldContext_Procedure_control(ctx, field) + case "internalpolicy": + return ec.fieldContext_Procedure_internalpolicy(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _Contact_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_createdBy(ctx, field) +func (ec *executionContext) _Narrative_controlobjective(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_controlobjective(ctx, field) if err != nil { return graphql.Null } @@ -57972,7 +141980,7 @@ func (ec *executionContext) _Contact_createdBy(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Controlobjective(ctx) }) if err != nil { ec.Error(ctx, err) @@ -57981,26 +141989,80 @@ func (ec *executionContext) _Contact_createdBy(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.ControlObjective) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_controlobjective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "Narrative", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "policy": + return ec.fieldContext_ControlObjective_policy(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) }, } return fc, nil } -func (ec *executionContext) _Contact_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_updatedBy(ctx, field) +func (ec *executionContext) _NarrativeBulkCreatePayload_narratives(ctx context.Context, field graphql.CollectedField, obj *NarrativeBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeBulkCreatePayload_narratives(ctx, field) if err != nil { return graphql.Null } @@ -58013,7 +142075,7 @@ func (ec *executionContext) _Contact_updatedBy(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Narratives, nil }) if err != nil { ec.Error(ctx, err) @@ -58022,26 +142084,60 @@ func (ec *executionContext) _Contact_updatedBy(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Narrative) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeBulkCreatePayload_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "policy": + return ec.fieldContext_Narrative_policy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlobjective": + return ec.fieldContext_Narrative_controlobjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _Contact_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_deletedAt(ctx, field) +func (ec *executionContext) _NarrativeConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -58054,7 +142150,7 @@ func (ec *executionContext) _Contact_deletedAt(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -58063,26 +142159,32 @@ func (ec *executionContext) _Contact_deletedAt(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.NarrativeEdge) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalONarrativeEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_NarrativeEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_NarrativeEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Contact_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_deletedBy(ctx, field) +func (ec *executionContext) _NarrativeConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -58095,35 +142197,48 @@ func (ec *executionContext) _Contact_deletedBy(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Contact_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_tags(ctx, field) +func (ec *executionContext) _NarrativeConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -58136,35 +142251,38 @@ func (ec *executionContext) _Contact_tags(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Contact_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_ownerID(ctx, field) +func (ec *executionContext) _NarrativeCreatePayload_narrative(ctx context.Context, field graphql.CollectedField, obj *NarrativeCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeCreatePayload_narrative(ctx, field) if err != nil { return graphql.Null } @@ -58177,35 +142295,72 @@ func (ec *executionContext) _Contact_ownerID(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Narrative, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Narrative) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeCreatePayload_narrative(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "policy": + return ec.fieldContext_Narrative_policy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlobjective": + return ec.fieldContext_Narrative_controlobjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _Contact_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_fullName(ctx, field) +func (ec *executionContext) _NarrativeDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *NarrativeDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -58218,7 +142373,7 @@ func (ec *executionContext) _Contact_fullName(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FullName, nil + return obj.DeletedID, nil }) if err != nil { ec.Error(ctx, err) @@ -58232,24 +142387,24 @@ func (ec *executionContext) _Contact_fullName(ctx context.Context, field graphql } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeDeletePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Contact_title(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_title(ctx, field) +func (ec *executionContext) _NarrativeEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -58262,7 +142417,7 @@ func (ec *executionContext) _Contact_title(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Title, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -58271,26 +142426,60 @@ func (ec *executionContext) _Contact_title(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Narrative) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "policy": + return ec.fieldContext_Narrative_policy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlobjective": + return ec.fieldContext_Narrative_controlobjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _Contact_company(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_company(ctx, field) +func (ec *executionContext) _NarrativeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -58303,35 +142492,38 @@ func (ec *executionContext) _Contact_company(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Company, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Contact_email(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_email(ctx, field) +func (ec *executionContext) _NarrativeHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -58344,35 +142536,38 @@ func (ec *executionContext) _Contact_email(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Email, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Contact_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_phoneNumber(ctx, field) +func (ec *executionContext) _NarrativeHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -58385,35 +142580,38 @@ func (ec *executionContext) _Contact_phoneNumber(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PhoneNumber, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Contact_address(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_address(ctx, field) +func (ec *executionContext) _NarrativeHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -58426,7 +142624,7 @@ func (ec *executionContext) _Contact_address(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Address, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -58440,9 +142638,9 @@ func (ec *executionContext) _Contact_address(ctx context.Context, field graphql. return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -58453,8 +142651,8 @@ func (ec *executionContext) fieldContext_Contact_address(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Contact_status(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_status(ctx, field) +func (ec *executionContext) _NarrativeHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -58467,7 +142665,7 @@ func (ec *executionContext) _Contact_status(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -58479,26 +142677,26 @@ func (ec *executionContext) _Contact_status(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(enums.UserStatus) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) + return ec.marshalNNarrativeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ContactUserStatus does not have child fields") + return nil, errors.New("field of type NarrativeHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Contact_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_owner(ctx, field) +func (ec *executionContext) _NarrativeHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -58511,7 +142709,7 @@ func (ec *executionContext) _Contact_owner(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -58520,110 +142718,26 @@ func (ec *executionContext) _Contact_owner(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Contact_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_entities(ctx, field) +func (ec *executionContext) _NarrativeHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -58636,7 +142750,7 @@ func (ec *executionContext) _Contact_entities(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entities(ctx) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -58645,70 +142759,26 @@ func (ec *executionContext) _Contact_entities(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Entity) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Contact_files(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_files(ctx, field) +func (ec *executionContext) _NarrativeHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -58721,7 +142791,7 @@ func (ec *executionContext) _Contact_files(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -58730,90 +142800,26 @@ func (ec *executionContext) _Contact_files(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.(string) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Contact_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "NarrativeHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactBulkCreatePayload_contacts(ctx context.Context, field graphql.CollectedField, obj *ContactBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactBulkCreatePayload_contacts(ctx, field) +func (ec *executionContext) _NarrativeHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -58826,7 +142832,7 @@ func (ec *executionContext) _ContactBulkCreatePayload_contacts(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contacts, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -58835,66 +142841,67 @@ func (ec *executionContext) _ContactBulkCreatePayload_contacts(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Contact) + res := resTmp.(string) fc.Result = res - return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactBulkCreatePayload_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactBulkCreatePayload", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _NarrativeHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NarrativeHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NarrativeHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactConnection_edges(ctx, field) +func (ec *executionContext) _NarrativeHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -58907,7 +142914,7 @@ func (ec *executionContext) _ContactConnection_edges(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -58916,32 +142923,26 @@ func (ec *executionContext) _ContactConnection_edges(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ContactEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOContactEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactConnection", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ContactEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ContactEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactConnection_pageInfo(ctx, field) +func (ec *executionContext) _NarrativeHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -58954,48 +142955,35 @@ func (ec *executionContext) _ContactConnection_pageInfo(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactConnection", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactConnection_totalCount(ctx, field) +func (ec *executionContext) _NarrativeHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -59008,7 +142996,7 @@ func (ec *executionContext) _ContactConnection_totalCount(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -59020,26 +143008,26 @@ func (ec *executionContext) _ContactConnection_totalCount(ctx context.Context, f } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactConnection", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactCreatePayload_contact(ctx context.Context, field graphql.CollectedField, obj *ContactCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactCreatePayload_contact(ctx, field) +func (ec *executionContext) _NarrativeHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -59052,78 +143040,35 @@ func (ec *executionContext) _ContactCreatePayload_contact(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contact, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Contact) + res := resTmp.(string) fc.Result = res - return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactCreatePayload_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactCreatePayload", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ContactDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _NarrativeHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -59136,38 +143081,35 @@ func (ec *executionContext) _ContactDeletePayload_deletedID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactDeletePayload", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ContactEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactEdge_node(ctx, field) +func (ec *executionContext) _NarrativeHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -59180,7 +143122,7 @@ func (ec *executionContext) _ContactEdge_node(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -59189,66 +143131,26 @@ func (ec *executionContext) _ContactEdge_node(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Contact) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactEdge", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ContactEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactEdge_cursor(ctx, field) +func (ec *executionContext) _NarrativeHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -59261,38 +143163,41 @@ func (ec *executionContext) _ContactEdge_cursor(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]*generated.NarrativeHistoryEdge) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalONarrativeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactEdge", + Object: "NarrativeHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_NarrativeHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_NarrativeHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _ContactHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_id(ctx, field) +func (ec *executionContext) _NarrativeHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -59305,7 +143210,7 @@ func (ec *executionContext) _ContactHistory_id(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -59317,26 +143222,36 @@ func (ec *executionContext) _ContactHistory_id(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "NarrativeHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _ContactHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_historyTime(ctx, field) +func (ec *executionContext) _NarrativeHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -59349,7 +143264,7 @@ func (ec *executionContext) _ContactHistory_historyTime(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -59361,26 +143276,26 @@ func (ec *executionContext) _ContactHistory_historyTime(ctx context.Context, fie } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(int) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "NarrativeHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_ref(ctx, field) +func (ec *executionContext) _NarrativeHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -59393,7 +143308,7 @@ func (ec *executionContext) _ContactHistory_ref(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -59402,26 +143317,58 @@ func (ec *executionContext) _ContactHistory_ref(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.NarrativeHistory) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalONarrativeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "NarrativeHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_NarrativeHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_NarrativeHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_NarrativeHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_NarrativeHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_NarrativeHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_NarrativeHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_NarrativeHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_NarrativeHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_NarrativeHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_NarrativeHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_NarrativeHistory_tags(ctx, field) + case "name": + return ec.fieldContext_NarrativeHistory_name(ctx, field) + case "description": + return ec.fieldContext_NarrativeHistory_description(ctx, field) + case "satisfies": + return ec.fieldContext_NarrativeHistory_satisfies(ctx, field) + case "details": + return ec.fieldContext_NarrativeHistory_details(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _ContactHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_operation(ctx, field) +func (ec *executionContext) _NarrativeHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -59434,7 +143381,7 @@ func (ec *executionContext) _ContactHistory_operation(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -59446,26 +143393,26 @@ func (ec *executionContext) _ContactHistory_operation(ctx context.Context, field } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "NarrativeHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ContactHistoryOpType does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_createdAt(ctx, field) +func (ec *executionContext) _NarrativeSearchResult_narratives(ctx context.Context, field graphql.CollectedField, obj *NarrativeSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeSearchResult_narratives(ctx, field) if err != nil { return graphql.Null } @@ -59478,7 +143425,7 @@ func (ec *executionContext) _ContactHistory_createdAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Narratives, nil }) if err != nil { ec.Error(ctx, err) @@ -59487,26 +143434,60 @@ func (ec *executionContext) _ContactHistory_createdAt(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Narrative) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeSearchResult_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "NarrativeSearchResult", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "policy": + return ec.fieldContext_Narrative_policy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlobjective": + return ec.fieldContext_Narrative_controlobjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _ContactHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_updatedAt(ctx, field) +func (ec *executionContext) _NarrativeUpdatePayload_narrative(ctx context.Context, field graphql.CollectedField, obj *NarrativeUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeUpdatePayload_narrative(ctx, field) if err != nil { return graphql.Null } @@ -59519,35 +143500,72 @@ func (ec *executionContext) _ContactHistory_updatedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Narrative, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.Narrative) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeUpdatePayload_narrative(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "NarrativeUpdatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "policy": + return ec.fieldContext_Narrative_policy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlobjective": + return ec.fieldContext_Narrative_controlobjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _ContactHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_createdBy(ctx, field) +func (ec *executionContext) _Note_id(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_id(ctx, field) if err != nil { return graphql.Null } @@ -59560,35 +143578,38 @@ func (ec *executionContext) _ContactHistory_createdBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_updatedBy(ctx, field) +func (ec *executionContext) _Note_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -59601,7 +143622,7 @@ func (ec *executionContext) _ContactHistory_updatedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -59610,26 +143631,26 @@ func (ec *executionContext) _ContactHistory_updatedBy(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_deletedAt(ctx, field) +func (ec *executionContext) _Note_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -59642,7 +143663,7 @@ func (ec *executionContext) _ContactHistory_deletedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -59656,9 +143677,9 @@ func (ec *executionContext) _ContactHistory_deletedAt(ctx context.Context, field return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, @@ -59669,8 +143690,8 @@ func (ec *executionContext) fieldContext_ContactHistory_deletedAt(_ context.Cont return fc, nil } -func (ec *executionContext) _ContactHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_deletedBy(ctx, field) +func (ec *executionContext) _Note_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -59683,7 +143704,7 @@ func (ec *executionContext) _ContactHistory_deletedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -59697,9 +143718,9 @@ func (ec *executionContext) _ContactHistory_deletedBy(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, @@ -59710,8 +143731,8 @@ func (ec *executionContext) fieldContext_ContactHistory_deletedBy(_ context.Cont return fc, nil } -func (ec *executionContext) _ContactHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_tags(ctx, field) +func (ec *executionContext) _Note_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -59724,7 +143745,7 @@ func (ec *executionContext) _ContactHistory_tags(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -59733,14 +143754,14 @@ func (ec *executionContext) _ContactHistory_tags(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, @@ -59751,8 +143772,8 @@ func (ec *executionContext) fieldContext_ContactHistory_tags(_ context.Context, return fc, nil } -func (ec *executionContext) _ContactHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_ownerID(ctx, field) +func (ec *executionContext) _Note_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -59765,7 +143786,7 @@ func (ec *executionContext) _ContactHistory_ownerID(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -59774,26 +143795,26 @@ func (ec *executionContext) _ContactHistory_ownerID(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactHistory_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_fullName(ctx, field) +func (ec *executionContext) _Note_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -59806,26 +143827,23 @@ func (ec *executionContext) _ContactHistory_fullName(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FullName, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, @@ -59836,8 +143854,8 @@ func (ec *executionContext) fieldContext_ContactHistory_fullName(_ context.Conte return fc, nil } -func (ec *executionContext) _ContactHistory_title(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_title(ctx, field) +func (ec *executionContext) _Note_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_tags(ctx, field) if err != nil { return graphql.Null } @@ -59850,7 +143868,7 @@ func (ec *executionContext) _ContactHistory_title(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Title, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -59859,14 +143877,14 @@ func (ec *executionContext) _ContactHistory_title(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, @@ -59877,8 +143895,8 @@ func (ec *executionContext) fieldContext_ContactHistory_title(_ context.Context, return fc, nil } -func (ec *executionContext) _ContactHistory_company(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_company(ctx, field) +func (ec *executionContext) _Note_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -59891,7 +143909,7 @@ func (ec *executionContext) _ContactHistory_company(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Company, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -59902,24 +143920,24 @@ func (ec *executionContext) _ContactHistory_company(ctx context.Context, field g } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactHistory_email(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_email(ctx, field) +func (ec *executionContext) _Note_text(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_text(ctx, field) if err != nil { return graphql.Null } @@ -59932,23 +143950,26 @@ func (ec *executionContext) _ContactHistory_email(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Email, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, @@ -59959,8 +143980,8 @@ func (ec *executionContext) fieldContext_ContactHistory_email(_ context.Context, return fc, nil } -func (ec *executionContext) _ContactHistory_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_phoneNumber(ctx, field) +func (ec *executionContext) _Note_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_owner(ctx, field) if err != nil { return graphql.Null } @@ -59973,7 +143994,7 @@ func (ec *executionContext) _ContactHistory_phoneNumber(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PhoneNumber, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -59982,26 +144003,110 @@ func (ec *executionContext) _ContactHistory_phoneNumber(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _ContactHistory_address(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_address(ctx, field) +func (ec *executionContext) _Note_entity(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_entity(ctx, field) if err != nil { return graphql.Null } @@ -60014,7 +144119,7 @@ func (ec *executionContext) _ContactHistory_address(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Address, nil + return obj.Entity(ctx) }) if err != nil { ec.Error(ctx, err) @@ -60023,26 +144128,70 @@ func (ec *executionContext) _ContactHistory_address(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Entity) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) }, } return fc, nil } -func (ec *executionContext) _ContactHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_status(ctx, field) +func (ec *executionContext) _Note_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_subcontrols(ctx, field) if err != nil { return graphql.Null } @@ -60055,38 +144204,91 @@ func (ec *executionContext) _ContactHistory_status(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Subcontrols(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.UserStatus) + res := resTmp.([]*generated.Subcontrol) fc.Result = res - return ec.marshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistory", + Object: "Note", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ContactHistoryUserStatus does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "control": + return ec.fieldContext_Subcontrol_control(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } return fc, nil } -func (ec *executionContext) _ContactHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistoryConnection_edges(ctx, field) +func (ec *executionContext) _NoteConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NoteConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -60108,32 +144310,32 @@ func (ec *executionContext) _ContactHistoryConnection_edges(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ContactHistoryEdge) + res := resTmp.([]*generated.NoteEdge) fc.Result = res - return ec.marshalOContactHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryEdge(ctx, field.Selections, res) + return ec.marshalONoteEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistoryConnection", + Object: "NoteConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_ContactHistoryEdge_node(ctx, field) + return ec.fieldContext_NoteEdge_node(ctx, field) case "cursor": - return ec.fieldContext_ContactHistoryEdge_cursor(ctx, field) + return ec.fieldContext_NoteEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type NoteEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _ContactHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _NoteConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NoteConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -60163,9 +144365,9 @@ func (ec *executionContext) _ContactHistoryConnection_pageInfo(ctx context.Conte return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistoryConnection", + Object: "NoteConnection", Field: field, IsMethod: false, IsResolver: false, @@ -60186,8 +144388,8 @@ func (ec *executionContext) fieldContext_ContactHistoryConnection_pageInfo(_ con return fc, nil } -func (ec *executionContext) _ContactHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _NoteConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NoteConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -60217,9 +144419,9 @@ func (ec *executionContext) _ContactHistoryConnection_totalCount(ctx context.Con return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistoryConnection", + Object: "NoteConnection", Field: field, IsMethod: false, IsResolver: false, @@ -60230,8 +144432,8 @@ func (ec *executionContext) fieldContext_ContactHistoryConnection_totalCount(_ c return fc, nil } -func (ec *executionContext) _ContactHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistoryEdge_node(ctx, field) +func (ec *executionContext) _NoteEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NoteEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -60253,66 +144455,54 @@ func (ec *executionContext) _ContactHistoryEdge_node(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.ContactHistory) + res := resTmp.(*generated.Note) fc.Result = res - return ec.marshalOContactHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistory(ctx, field.Selections, res) + return ec.marshalONote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistoryEdge", + Object: "NoteEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_ContactHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_ContactHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_ContactHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_ContactHistory_operation(ctx, field) + return ec.fieldContext_Note_id(ctx, field) case "createdAt": - return ec.fieldContext_ContactHistory_createdAt(ctx, field) + return ec.fieldContext_Note_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_ContactHistory_updatedAt(ctx, field) + return ec.fieldContext_Note_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_ContactHistory_createdBy(ctx, field) + return ec.fieldContext_Note_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_ContactHistory_updatedBy(ctx, field) + return ec.fieldContext_Note_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_ContactHistory_deletedAt(ctx, field) + return ec.fieldContext_Note_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_ContactHistory_deletedBy(ctx, field) + return ec.fieldContext_Note_deletedBy(ctx, field) case "tags": - return ec.fieldContext_ContactHistory_tags(ctx, field) + return ec.fieldContext_Note_tags(ctx, field) case "ownerID": - return ec.fieldContext_ContactHistory_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_ContactHistory_fullName(ctx, field) - case "title": - return ec.fieldContext_ContactHistory_title(ctx, field) - case "company": - return ec.fieldContext_ContactHistory_company(ctx, field) - case "email": - return ec.fieldContext_ContactHistory_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_ContactHistory_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_ContactHistory_address(ctx, field) - case "status": - return ec.fieldContext_ContactHistory_status(ctx, field) + return ec.fieldContext_Note_ownerID(ctx, field) + case "text": + return ec.fieldContext_Note_text(ctx, field) + case "owner": + return ec.fieldContext_Note_owner(ctx, field) + case "entity": + return ec.fieldContext_Note_entity(ctx, field) + case "subcontrols": + return ec.fieldContext_Note_subcontrols(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) }, } return fc, nil } -func (ec *executionContext) _ContactHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _NoteEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NoteEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -60342,9 +144532,9 @@ func (ec *executionContext) _ContactHistoryEdge_cursor(ctx context.Context, fiel return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistoryEdge", + Object: "NoteEdge", Field: field, IsMethod: false, IsResolver: false, @@ -60355,8 +144545,8 @@ func (ec *executionContext) fieldContext_ContactHistoryEdge_cursor(_ context.Con return fc, nil } -func (ec *executionContext) _ContactSearchResult_contacts(ctx context.Context, field graphql.CollectedField, obj *ContactSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactSearchResult_contacts(ctx, field) +func (ec *executionContext) _NoteHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -60369,75 +144559,38 @@ func (ec *executionContext) _ContactSearchResult_contacts(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contacts, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Contact) + res := resTmp.(string) fc.Result = res - return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactSearchResult_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactSearchResult", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ContactUpdatePayload_contact(ctx context.Context, field graphql.CollectedField, obj *ContactUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactUpdatePayload_contact(ctx, field) +func (ec *executionContext) _NoteHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -60450,7 +144603,7 @@ func (ec *executionContext) _ContactUpdatePayload_contact(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contact, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -60462,66 +144615,26 @@ func (ec *executionContext) _ContactUpdatePayload_contact(ctx context.Context, f } return graphql.Null } - res := resTmp.(*generated.Contact) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ContactUpdatePayload_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactUpdatePayload", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentData_id(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_id(ctx, field) +func (ec *executionContext) _NoteHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -60534,38 +144647,35 @@ func (ec *executionContext) _DocumentData_id(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentData_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_createdAt(ctx, field) +func (ec *executionContext) _NoteHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -60578,35 +144688,38 @@ func (ec *executionContext) _DocumentData_createdAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type NoteHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentData_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_updatedAt(ctx, field) +func (ec *executionContext) _NoteHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -60619,7 +144732,7 @@ func (ec *executionContext) _DocumentData_updatedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -60633,9 +144746,9 @@ func (ec *executionContext) _DocumentData_updatedAt(ctx context.Context, field g return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, @@ -60646,8 +144759,8 @@ func (ec *executionContext) fieldContext_DocumentData_updatedAt(_ context.Contex return fc, nil } -func (ec *executionContext) _DocumentData_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_createdBy(ctx, field) +func (ec *executionContext) _NoteHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -60660,7 +144773,7 @@ func (ec *executionContext) _DocumentData_createdBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -60669,26 +144782,26 @@ func (ec *executionContext) _DocumentData_createdBy(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentData_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_updatedBy(ctx, field) +func (ec *executionContext) _NoteHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -60701,7 +144814,7 @@ func (ec *executionContext) _DocumentData_updatedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -60715,9 +144828,9 @@ func (ec *executionContext) _DocumentData_updatedBy(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, @@ -60728,8 +144841,8 @@ func (ec *executionContext) fieldContext_DocumentData_updatedBy(_ context.Contex return fc, nil } -func (ec *executionContext) _DocumentData_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_tags(ctx, field) +func (ec *executionContext) _NoteHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -60742,7 +144855,7 @@ func (ec *executionContext) _DocumentData_tags(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -60751,14 +144864,14 @@ func (ec *executionContext) _DocumentData_tags(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, @@ -60769,8 +144882,8 @@ func (ec *executionContext) fieldContext_DocumentData_tags(_ context.Context, fi return fc, nil } -func (ec *executionContext) _DocumentData_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_deletedAt(ctx, field) +func (ec *executionContext) _NoteHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -60797,9 +144910,9 @@ func (ec *executionContext) _DocumentData_deletedAt(ctx context.Context, field g return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, @@ -60809,50 +144922,9 @@ func (ec *executionContext) fieldContext_DocumentData_deletedAt(_ context.Contex } return fc, nil } - -func (ec *executionContext) _DocumentData_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentData_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_ownerID(ctx, field) + +func (ec *executionContext) _NoteHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -60865,7 +144937,7 @@ func (ec *executionContext) _DocumentData_ownerID(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -60876,24 +144948,24 @@ func (ec *executionContext) _DocumentData_ownerID(ctx context.Context, field gra } res := resTmp.(string) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentData_templateID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_templateID(ctx, field) +func (ec *executionContext) _NoteHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -60906,38 +144978,35 @@ func (ec *executionContext) _DocumentData_templateID(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TemplateID, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentData_data(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_data(ctx, field) +func (ec *executionContext) _NoteHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -60950,38 +145019,35 @@ func (ec *executionContext) _DocumentData_data(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Data, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(customtypes.JSONObject) + res := resTmp.(string) fc.Result = res - return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type JSON does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentData_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_owner(ctx, field) +func (ec *executionContext) _NoteHistory_text(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_text(ctx, field) if err != nil { return graphql.Null } @@ -60994,119 +145060,38 @@ func (ec *executionContext) _DocumentData_owner(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentData_template(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_template(ctx, field) +func (ec *executionContext) _NoteHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -61119,74 +145104,41 @@ func (ec *executionContext) _DocumentData_template(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Template(ctx) + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Template) + res := resTmp.([]*generated.NoteHistoryEdge) fc.Result = res - return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) + return ec.marshalONoteHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistoryConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) + case "node": + return ec.fieldContext_NoteHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_NoteHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + return nil, fmt.Errorf("no field named %q was found under type NoteHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentData_entity(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_entity(ctx, field) +func (ec *executionContext) _NoteHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -61199,79 +145151,48 @@ func (ec *executionContext) _DocumentData_entity(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entity(ctx) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Entity) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistoryConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentData_files(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_files(ctx, field) +func (ec *executionContext) _NoteHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -61284,99 +145205,38 @@ func (ec *executionContext) _DocumentData_files(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.(int) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentData_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentData", + Object: "NoteHistoryConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataBulkCreatePayload_documentData(ctx context.Context, field graphql.CollectedField, obj *DocumentDataBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataBulkCreatePayload_documentData(ctx, field) +func (ec *executionContext) _NoteHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -61389,7 +145249,7 @@ func (ec *executionContext) _DocumentDataBulkCreatePayload_documentData(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DocumentData, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -61398,58 +145258,54 @@ func (ec *executionContext) _DocumentDataBulkCreatePayload_documentData(ctx cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.DocumentData) + res := resTmp.(*generated.NoteHistory) fc.Result = res - return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) + return ec.marshalONoteHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataBulkCreatePayload_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataBulkCreatePayload", + Object: "NoteHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_DocumentData_id(ctx, field) + return ec.fieldContext_NoteHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_NoteHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_NoteHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_NoteHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) + return ec.fieldContext_NoteHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) + return ec.fieldContext_NoteHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) + return ec.fieldContext_NoteHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) + return ec.fieldContext_NoteHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) + return ec.fieldContext_NoteHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) + return ec.fieldContext_NoteHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_NoteHistory_tags(ctx, field) case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) + return ec.fieldContext_NoteHistory_ownerID(ctx, field) + case "text": + return ec.fieldContext_NoteHistory_text(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + return nil, fmt.Errorf("no field named %q was found under type NoteHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentDataConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataConnection_edges(ctx, field) +func (ec *executionContext) _NoteHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -61462,41 +145318,38 @@ func (ec *executionContext) _DocumentDataConnection_edges(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.DocumentDataEdge) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalODocumentDataEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataEdge(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataConnection", + Object: "NoteHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_DocumentDataEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_DocumentDataEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataEdge", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataConnection_pageInfo(ctx, field) +func (ec *executionContext) _OauthProvider_id(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_id(ctx, field) if err != nil { return graphql.Null } @@ -61509,7 +145362,7 @@ func (ec *executionContext) _DocumentDataConnection_pageInfo(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -61521,36 +145374,26 @@ func (ec *executionContext) _DocumentDataConnection_pageInfo(ctx context.Context } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataConnection", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataConnection_totalCount(ctx, field) +func (ec *executionContext) _OauthProvider_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -61563,38 +145406,35 @@ func (ec *executionContext) _DocumentDataConnection_totalCount(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataConnection", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataCreatePayload_documentData(ctx context.Context, field graphql.CollectedField, obj *DocumentDataCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataCreatePayload_documentData(ctx, field) +func (ec *executionContext) _OauthProvider_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -61607,70 +145447,35 @@ func (ec *executionContext) _DocumentDataCreatePayload_documentData(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DocumentData, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.DocumentData) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataCreatePayload_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataCreatePayload", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *DocumentDataDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _OauthProvider_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -61683,38 +145488,35 @@ func (ec *executionContext) _DocumentDataDeletePayload_deletedID(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataDeletePayload", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataEdge_node(ctx, field) +func (ec *executionContext) _OauthProvider_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -61727,7 +145529,7 @@ func (ec *executionContext) _DocumentDataEdge_node(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -61736,58 +145538,26 @@ func (ec *executionContext) _DocumentDataEdge_node(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.DocumentData) + res := resTmp.(string) fc.Result = res - return ec.marshalODocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataEdge", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataEdge_cursor(ctx, field) +func (ec *executionContext) _OauthProvider_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_tags(ctx, field) if err != nil { return graphql.Null } @@ -61800,38 +145570,35 @@ func (ec *executionContext) _DocumentDataEdge_cursor(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataEdge", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_id(ctx, field) +func (ec *executionContext) _OauthProvider_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -61844,38 +145611,35 @@ func (ec *executionContext) _DocumentDataHistory_id(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_historyTime(ctx, field) +func (ec *executionContext) _OauthProvider_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -61888,38 +145652,35 @@ func (ec *executionContext) _DocumentDataHistory_historyTime(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_ref(ctx, field) +func (ec *executionContext) _OauthProvider_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -61932,7 +145693,7 @@ func (ec *executionContext) _DocumentDataHistory_ref(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -61943,24 +145704,24 @@ func (ec *executionContext) _DocumentDataHistory_ref(ctx context.Context, field } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_operation(ctx, field) +func (ec *executionContext) _OauthProvider_name(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_name(ctx, field) if err != nil { return graphql.Null } @@ -61973,7 +145734,7 @@ func (ec *executionContext) _DocumentDataHistory_operation(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -61985,26 +145746,26 @@ func (ec *executionContext) _DocumentDataHistory_operation(ctx context.Context, } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentDataHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_createdAt(ctx, field) +func (ec *executionContext) _OauthProvider_clientID(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_clientID(ctx, field) if err != nil { return graphql.Null } @@ -62017,35 +145778,38 @@ func (ec *executionContext) _DocumentDataHistory_createdAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.ClientID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_clientID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_updatedAt(ctx, field) +func (ec *executionContext) _OauthProvider_clientSecret(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_clientSecret(ctx, field) if err != nil { return graphql.Null } @@ -62058,35 +145822,38 @@ func (ec *executionContext) _DocumentDataHistory_updatedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.ClientSecret, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_clientSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_createdBy(ctx, field) +func (ec *executionContext) _OauthProvider_redirectURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_redirectURL(ctx, field) if err != nil { return graphql.Null } @@ -62099,23 +145866,26 @@ func (ec *executionContext) _DocumentDataHistory_createdBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.RedirectURL, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_redirectURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, @@ -62126,8 +145896,8 @@ func (ec *executionContext) fieldContext_DocumentDataHistory_createdBy(_ context return fc, nil } -func (ec *executionContext) _DocumentDataHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_updatedBy(ctx, field) +func (ec *executionContext) _OauthProvider_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_scopes(ctx, field) if err != nil { return graphql.Null } @@ -62140,23 +145910,26 @@ func (ec *executionContext) _DocumentDataHistory_updatedBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Scopes, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, @@ -62167,8 +145940,8 @@ func (ec *executionContext) fieldContext_DocumentDataHistory_updatedBy(_ context return fc, nil } -func (ec *executionContext) _DocumentDataHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_tags(ctx, field) +func (ec *executionContext) _OauthProvider_authURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_authURL(ctx, field) if err != nil { return graphql.Null } @@ -62181,23 +145954,26 @@ func (ec *executionContext) _DocumentDataHistory_tags(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.AuthURL, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_authURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, @@ -62208,8 +145984,8 @@ func (ec *executionContext) fieldContext_DocumentDataHistory_tags(_ context.Cont return fc, nil } -func (ec *executionContext) _DocumentDataHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_deletedAt(ctx, field) +func (ec *executionContext) _OauthProvider_tokenURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_tokenURL(ctx, field) if err != nil { return graphql.Null } @@ -62222,35 +145998,38 @@ func (ec *executionContext) _DocumentDataHistory_deletedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.TokenURL, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_tokenURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_deletedBy(ctx, field) +func (ec *executionContext) _OauthProvider_authStyle(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_authStyle(ctx, field) if err != nil { return graphql.Null } @@ -62263,35 +146042,38 @@ func (ec *executionContext) _DocumentDataHistory_deletedBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.AuthStyle, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(customtypes.Uint8) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNUint2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_authStyle(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Uint does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_ownerID(ctx, field) +func (ec *executionContext) _OauthProvider_infoURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_infoURL(ctx, field) if err != nil { return graphql.Null } @@ -62304,23 +146086,26 @@ func (ec *executionContext) _DocumentDataHistory_ownerID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.InfoURL, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_infoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, IsMethod: false, IsResolver: false, @@ -62331,8 +146116,8 @@ func (ec *executionContext) fieldContext_DocumentDataHistory_ownerID(_ context.C return fc, nil } -func (ec *executionContext) _DocumentDataHistory_templateID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_templateID(ctx, field) +func (ec *executionContext) _OauthProvider_owner(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProvider_owner(ctx, field) if err != nil { return graphql.Null } @@ -62345,38 +146130,119 @@ func (ec *executionContext) _DocumentDataHistory_templateID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TemplateID, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProvider_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProvider", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistory_data(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_data(ctx, field) +func (ec *executionContext) _OauthProviderBulkCreatePayload_oauthProviders(ctx context.Context, field graphql.CollectedField, obj *OauthProviderBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderBulkCreatePayload_oauthProviders(ctx, field) if err != nil { return graphql.Null } @@ -62389,38 +146255,75 @@ func (ec *executionContext) _DocumentDataHistory_data(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Data, nil + return obj.OauthProviders, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(customtypes.JSONObject) + res := resTmp.([]*generated.OauthProvider) fc.Result = res - return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) + return ec.marshalOOauthProvider2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistory_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderBulkCreatePayload_oauthProviders(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", + Object: "OauthProviderBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type JSON does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OauthProvider_id(ctx, field) + case "createdAt": + return ec.fieldContext_OauthProvider_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OauthProvider_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OauthProvider_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OauthProvider_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OauthProvider_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OauthProvider_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OauthProvider_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_OauthProvider_ownerID(ctx, field) + case "name": + return ec.fieldContext_OauthProvider_name(ctx, field) + case "clientID": + return ec.fieldContext_OauthProvider_clientID(ctx, field) + case "clientSecret": + return ec.fieldContext_OauthProvider_clientSecret(ctx, field) + case "redirectURL": + return ec.fieldContext_OauthProvider_redirectURL(ctx, field) + case "scopes": + return ec.fieldContext_OauthProvider_scopes(ctx, field) + case "authURL": + return ec.fieldContext_OauthProvider_authURL(ctx, field) + case "tokenURL": + return ec.fieldContext_OauthProvider_tokenURL(ctx, field) + case "authStyle": + return ec.fieldContext_OauthProvider_authStyle(ctx, field) + case "infoURL": + return ec.fieldContext_OauthProvider_infoURL(ctx, field) + case "owner": + return ec.fieldContext_OauthProvider_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistoryConnection_edges(ctx, field) +func (ec *executionContext) _OauthProviderConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -62442,32 +146345,32 @@ func (ec *executionContext) _DocumentDataHistoryConnection_edges(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.DocumentDataHistoryEdge) + res := resTmp.([]*generated.OauthProviderEdge) fc.Result = res - return ec.marshalODocumentDataHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryEdge(ctx, field.Selections, res) + return ec.marshalOOauthProviderEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryConnection", + Object: "OauthProviderConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_DocumentDataHistoryEdge_node(ctx, field) + return ec.fieldContext_OauthProviderEdge_node(ctx, field) case "cursor": - return ec.fieldContext_DocumentDataHistoryEdge_cursor(ctx, field) + return ec.fieldContext_OauthProviderEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OauthProviderEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _OauthProviderConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -62497,9 +146400,9 @@ func (ec *executionContext) _DocumentDataHistoryConnection_pageInfo(ctx context. return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryConnection", + Object: "OauthProviderConnection", Field: field, IsMethod: false, IsResolver: false, @@ -62520,8 +146423,8 @@ func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_pageInfo( return fc, nil } -func (ec *executionContext) _DocumentDataHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _OauthProviderConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -62551,9 +146454,9 @@ func (ec *executionContext) _DocumentDataHistoryConnection_totalCount(ctx contex return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryConnection", + Object: "OauthProviderConnection", Field: field, IsMethod: false, IsResolver: false, @@ -62564,8 +146467,8 @@ func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_totalCoun return fc, nil } -func (ec *executionContext) _DocumentDataHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistoryEdge_node(ctx, field) +func (ec *executionContext) _OauthProviderCreatePayload_oauthProvider(ctx context.Context, field graphql.CollectedField, obj *OauthProviderCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderCreatePayload_oauthProvider(ctx, field) if err != nil { return graphql.Null } @@ -62578,65 +146481,78 @@ func (ec *executionContext) _DocumentDataHistoryEdge_node(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.OauthProvider, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.DocumentDataHistory) + res := resTmp.(*generated.OauthProvider) fc.Result = res - return ec.marshalODocumentDataHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistory(ctx, field.Selections, res) + return ec.marshalNOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderCreatePayload_oauthProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryEdge", + Object: "OauthProviderCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_DocumentDataHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_DocumentDataHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_DocumentDataHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_DocumentDataHistory_operation(ctx, field) + return ec.fieldContext_OauthProvider_id(ctx, field) case "createdAt": - return ec.fieldContext_DocumentDataHistory_createdAt(ctx, field) + return ec.fieldContext_OauthProvider_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_DocumentDataHistory_updatedAt(ctx, field) + return ec.fieldContext_OauthProvider_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_DocumentDataHistory_createdBy(ctx, field) + return ec.fieldContext_OauthProvider_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_DocumentDataHistory_updatedBy(ctx, field) + return ec.fieldContext_OauthProvider_updatedBy(ctx, field) case "tags": - return ec.fieldContext_DocumentDataHistory_tags(ctx, field) + return ec.fieldContext_OauthProvider_tags(ctx, field) case "deletedAt": - return ec.fieldContext_DocumentDataHistory_deletedAt(ctx, field) + return ec.fieldContext_OauthProvider_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_DocumentDataHistory_deletedBy(ctx, field) + return ec.fieldContext_OauthProvider_deletedBy(ctx, field) case "ownerID": - return ec.fieldContext_DocumentDataHistory_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentDataHistory_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentDataHistory_data(ctx, field) + return ec.fieldContext_OauthProvider_ownerID(ctx, field) + case "name": + return ec.fieldContext_OauthProvider_name(ctx, field) + case "clientID": + return ec.fieldContext_OauthProvider_clientID(ctx, field) + case "clientSecret": + return ec.fieldContext_OauthProvider_clientSecret(ctx, field) + case "redirectURL": + return ec.fieldContext_OauthProvider_redirectURL(ctx, field) + case "scopes": + return ec.fieldContext_OauthProvider_scopes(ctx, field) + case "authURL": + return ec.fieldContext_OauthProvider_authURL(ctx, field) + case "tokenURL": + return ec.fieldContext_OauthProvider_tokenURL(ctx, field) + case "authStyle": + return ec.fieldContext_OauthProvider_authStyle(ctx, field) + case "infoURL": + return ec.fieldContext_OauthProvider_infoURL(ctx, field) + case "owner": + return ec.fieldContext_OauthProvider_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentDataHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _OauthProviderDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OauthProviderDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -62649,7 +146565,7 @@ func (ec *executionContext) _DocumentDataHistoryEdge_cursor(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedID, nil }) if err != nil { ec.Error(ctx, err) @@ -62661,26 +146577,26 @@ func (ec *executionContext) _DocumentDataHistoryEdge_cursor(ctx context.Context, } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryEdge", + Object: "OauthProviderDeletePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _DocumentDataSearchResult_documentData(ctx context.Context, field graphql.CollectedField, obj *DocumentDataSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataSearchResult_documentData(ctx, field) +func (ec *executionContext) _OauthProviderEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -62693,7 +146609,7 @@ func (ec *executionContext) _DocumentDataSearchResult_documentData(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DocumentData, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -62702,58 +146618,66 @@ func (ec *executionContext) _DocumentDataSearchResult_documentData(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.DocumentData) + res := resTmp.(*generated.OauthProvider) fc.Result = res - return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) + return ec.marshalOOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataSearchResult_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataSearchResult", + Object: "OauthProviderEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_DocumentData_id(ctx, field) + return ec.fieldContext_OauthProvider_id(ctx, field) case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) + return ec.fieldContext_OauthProvider_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) + return ec.fieldContext_OauthProvider_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) + return ec.fieldContext_OauthProvider_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) + return ec.fieldContext_OauthProvider_updatedBy(ctx, field) case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) + return ec.fieldContext_OauthProvider_tags(ctx, field) case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) + return ec.fieldContext_OauthProvider_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) + return ec.fieldContext_OauthProvider_deletedBy(ctx, field) case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) + return ec.fieldContext_OauthProvider_ownerID(ctx, field) + case "name": + return ec.fieldContext_OauthProvider_name(ctx, field) + case "clientID": + return ec.fieldContext_OauthProvider_clientID(ctx, field) + case "clientSecret": + return ec.fieldContext_OauthProvider_clientSecret(ctx, field) + case "redirectURL": + return ec.fieldContext_OauthProvider_redirectURL(ctx, field) + case "scopes": + return ec.fieldContext_OauthProvider_scopes(ctx, field) + case "authURL": + return ec.fieldContext_OauthProvider_authURL(ctx, field) + case "tokenURL": + return ec.fieldContext_OauthProvider_tokenURL(ctx, field) + case "authStyle": + return ec.fieldContext_OauthProvider_authStyle(ctx, field) + case "infoURL": + return ec.fieldContext_OauthProvider_infoURL(ctx, field) case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) + return ec.fieldContext_OauthProvider_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) }, } return fc, nil } -func (ec *executionContext) _DocumentDataUpdatePayload_documentData(ctx context.Context, field graphql.CollectedField, obj *DocumentDataUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataUpdatePayload_documentData(ctx, field) +func (ec *executionContext) _OauthProviderEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -62766,7 +146690,7 @@ func (ec *executionContext) _DocumentDataUpdatePayload_documentData(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DocumentData, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -62778,58 +146702,26 @@ func (ec *executionContext) _DocumentDataUpdatePayload_documentData(ctx context. } return graphql.Null } - res := resTmp.(*generated.DocumentData) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_DocumentDataUpdatePayload_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DocumentDataUpdatePayload", + Object: "OauthProviderEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_id(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_id(ctx, field) +func (ec *executionContext) _OauthProviderHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -62859,9 +146751,9 @@ func (ec *executionContext) _Entitlement_id(ctx context.Context, field graphql.C return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, @@ -62872,8 +146764,8 @@ func (ec *executionContext) fieldContext_Entitlement_id(_ context.Context, field return fc, nil } -func (ec *executionContext) _Entitlement_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_createdAt(ctx, field) +func (ec *executionContext) _OauthProviderHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -62886,23 +146778,26 @@ func (ec *executionContext) _Entitlement_createdAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(time.Time) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, @@ -62913,8 +146808,8 @@ func (ec *executionContext) fieldContext_Entitlement_createdAt(_ context.Context return fc, nil } -func (ec *executionContext) _Entitlement_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_updatedAt(ctx, field) +func (ec *executionContext) _OauthProviderHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -62927,7 +146822,7 @@ func (ec *executionContext) _Entitlement_updatedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -62936,26 +146831,26 @@ func (ec *executionContext) _Entitlement_updatedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_createdBy(ctx, field) +func (ec *executionContext) _OauthProviderHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -62968,35 +146863,38 @@ func (ec *executionContext) _Entitlement_createdBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOauthProviderHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type OauthProviderHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_updatedBy(ctx, field) +func (ec *executionContext) _OauthProviderHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -63009,7 +146907,7 @@ func (ec *executionContext) _Entitlement_updatedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -63018,26 +146916,26 @@ func (ec *executionContext) _Entitlement_updatedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_tags(ctx, field) +func (ec *executionContext) _OauthProviderHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -63050,7 +146948,7 @@ func (ec *executionContext) _Entitlement_tags(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -63059,26 +146957,26 @@ func (ec *executionContext) _Entitlement_tags(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_deletedAt(ctx, field) +func (ec *executionContext) _OauthProviderHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -63091,7 +146989,7 @@ func (ec *executionContext) _Entitlement_deletedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -63100,26 +146998,26 @@ func (ec *executionContext) _Entitlement_deletedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_deletedBy(ctx, field) +func (ec *executionContext) _OauthProviderHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -63132,7 +147030,7 @@ func (ec *executionContext) _Entitlement_deletedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -63146,9 +147044,9 @@ func (ec *executionContext) _Entitlement_deletedBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, @@ -63159,8 +147057,8 @@ func (ec *executionContext) fieldContext_Entitlement_deletedBy(_ context.Context return fc, nil } -func (ec *executionContext) _Entitlement_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_ownerID(ctx, field) +func (ec *executionContext) _OauthProviderHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -63173,7 +147071,7 @@ func (ec *executionContext) _Entitlement_ownerID(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -63182,26 +147080,26 @@ func (ec *executionContext) _Entitlement_ownerID(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_planID(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_planID(ctx, field) +func (ec *executionContext) _OauthProviderHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -63214,38 +147112,35 @@ func (ec *executionContext) _Entitlement_planID(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PlanID, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_planID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_organizationID(ctx, field) +func (ec *executionContext) _OauthProviderHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -63258,38 +147153,35 @@ func (ec *executionContext) _Entitlement_organizationID(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationID, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_externalCustomerID(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_externalCustomerID(ctx, field) +func (ec *executionContext) _OauthProviderHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -63302,7 +147194,7 @@ func (ec *executionContext) _Entitlement_externalCustomerID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExternalCustomerID, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -63316,9 +147208,9 @@ func (ec *executionContext) _Entitlement_externalCustomerID(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_externalCustomerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, @@ -63329,8 +147221,8 @@ func (ec *executionContext) fieldContext_Entitlement_externalCustomerID(_ contex return fc, nil } -func (ec *executionContext) _Entitlement_externalSubscriptionID(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) +func (ec *executionContext) _OauthProviderHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -63343,23 +147235,26 @@ func (ec *executionContext) _Entitlement_externalSubscriptionID(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExternalSubscriptionID, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_externalSubscriptionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, @@ -63370,8 +147265,8 @@ func (ec *executionContext) fieldContext_Entitlement_externalSubscriptionID(_ co return fc, nil } -func (ec *executionContext) _Entitlement_expires(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_expires(ctx, field) +func (ec *executionContext) _OauthProviderHistory_clientID(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_clientID(ctx, field) if err != nil { return graphql.Null } @@ -63384,7 +147279,7 @@ func (ec *executionContext) _Entitlement_expires(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Expires, nil + return obj.ClientID, nil }) if err != nil { ec.Error(ctx, err) @@ -63396,26 +147291,26 @@ func (ec *executionContext) _Entitlement_expires(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_expires(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_clientID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_expiresAt(ctx, field) +func (ec *executionContext) _OauthProviderHistory_clientSecret(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_clientSecret(ctx, field) if err != nil { return graphql.Null } @@ -63428,35 +147323,38 @@ func (ec *executionContext) _Entitlement_expiresAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExpiresAt, nil + return obj.ClientSecret, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_clientSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_cancelled(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_cancelled(ctx, field) +func (ec *executionContext) _OauthProviderHistory_redirectURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_redirectURL(ctx, field) if err != nil { return graphql.Null } @@ -63469,7 +147367,7 @@ func (ec *executionContext) _Entitlement_cancelled(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cancelled, nil + return obj.RedirectURL, nil }) if err != nil { ec.Error(ctx, err) @@ -63481,26 +147379,26 @@ func (ec *executionContext) _Entitlement_cancelled(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_cancelled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_redirectURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_owner(ctx, field) +func (ec *executionContext) _OauthProviderHistory_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_scopes(ctx, field) if err != nil { return graphql.Null } @@ -63513,119 +147411,38 @@ func (ec *executionContext) _Entitlement_owner(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.Scopes, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_plan(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_plan(ctx, field) +func (ec *executionContext) _OauthProviderHistory_authURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_authURL(ctx, field) if err != nil { return graphql.Null } @@ -63638,7 +147455,7 @@ func (ec *executionContext) _Entitlement_plan(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Plan(ctx) + return obj.AuthURL, nil }) if err != nil { ec.Error(ctx, err) @@ -63650,66 +147467,26 @@ func (ec *executionContext) _Entitlement_plan(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(*generated.EntitlementPlan) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_plan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_authURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlan_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) - case "displayName": - return ec.fieldContext_EntitlementPlan_displayName(ctx, field) - case "name": - return ec.fieldContext_EntitlementPlan_name(ctx, field) - case "description": - return ec.fieldContext_EntitlementPlan_description(ctx, field) - case "version": - return ec.fieldContext_EntitlementPlan_version(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlan_metadata(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlan_owner(ctx, field) - case "entitlements": - return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) - case "baseFeatures": - return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlan_events(ctx, field) - case "features": - return ec.fieldContext_EntitlementPlan_features(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_organization(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_organization(ctx, field) +func (ec *executionContext) _OauthProviderHistory_tokenURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_tokenURL(ctx, field) if err != nil { return graphql.Null } @@ -63722,7 +147499,7 @@ func (ec *executionContext) _Entitlement_organization(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization(ctx) + return obj.TokenURL, nil }) if err != nil { ec.Error(ctx, err) @@ -63734,110 +147511,26 @@ func (ec *executionContext) _Entitlement_organization(ctx context.Context, field } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_tokenURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entitlement_events(ctx context.Context, field graphql.CollectedField, obj *generated.Entitlement) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entitlement_events(ctx, field) +func (ec *executionContext) _OauthProviderHistory_authStyle(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_authStyle(ctx, field) if err != nil { return graphql.Null } @@ -63850,91 +147543,38 @@ func (ec *executionContext) _Entitlement_events(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.AuthStyle, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(customtypes.Uint8) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalNUint2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entitlement_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_authStyle(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entitlement", + Object: "OauthProviderHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type Uint does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementBulkCreatePayload_entitlements(ctx context.Context, field graphql.CollectedField, obj *EntitlementBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementBulkCreatePayload_entitlements(ctx, field) +func (ec *executionContext) _OauthProviderHistory_infoURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistory_infoURL(ctx, field) if err != nil { return graphql.Null } @@ -63947,77 +147587,38 @@ func (ec *executionContext) _EntitlementBulkCreatePayload_entitlements(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entitlements, nil + return obj.InfoURL, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Entitlement) + res := resTmp.(string) fc.Result = res - return ec.marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementBulkCreatePayload_entitlements(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistory_infoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementBulkCreatePayload", + Object: "OauthProviderHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entitlement_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entitlement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entitlement_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entitlement_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entitlement_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Entitlement_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Entitlement_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entitlement_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Entitlement_ownerID(ctx, field) - case "planID": - return ec.fieldContext_Entitlement_planID(ctx, field) - case "organizationID": - return ec.fieldContext_Entitlement_organizationID(ctx, field) - case "externalCustomerID": - return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) - case "externalSubscriptionID": - return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) - case "expires": - return ec.fieldContext_Entitlement_expires(ctx, field) - case "expiresAt": - return ec.fieldContext_Entitlement_expiresAt(ctx, field) - case "cancelled": - return ec.fieldContext_Entitlement_cancelled(ctx, field) - case "owner": - return ec.fieldContext_Entitlement_owner(ctx, field) - case "plan": - return ec.fieldContext_Entitlement_plan(ctx, field) - case "organization": - return ec.fieldContext_Entitlement_organization(ctx, field) - case "events": - return ec.fieldContext_Entitlement_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementConnection_edges(ctx, field) +func (ec *executionContext) _OauthProviderHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -64039,32 +147640,32 @@ func (ec *executionContext) _EntitlementConnection_edges(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntitlementEdge) + res := resTmp.([]*generated.OauthProviderHistoryEdge) fc.Result = res - return ec.marshalOEntitlementEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementEdge(ctx, field.Selections, res) + return ec.marshalOOauthProviderHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementConnection", + Object: "OauthProviderHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_EntitlementEdge_node(ctx, field) + return ec.fieldContext_OauthProviderHistoryEdge_node(ctx, field) case "cursor": - return ec.fieldContext_EntitlementEdge_cursor(ctx, field) + return ec.fieldContext_OauthProviderHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OauthProviderHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementConnection_pageInfo(ctx, field) +func (ec *executionContext) _OauthProviderHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -64094,9 +147695,9 @@ func (ec *executionContext) _EntitlementConnection_pageInfo(ctx context.Context, return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementConnection", + Object: "OauthProviderHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -64117,8 +147718,8 @@ func (ec *executionContext) fieldContext_EntitlementConnection_pageInfo(_ contex return fc, nil } -func (ec *executionContext) _EntitlementConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementConnection_totalCount(ctx, field) +func (ec *executionContext) _OauthProviderHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -64148,9 +147749,9 @@ func (ec *executionContext) _EntitlementConnection_totalCount(ctx context.Contex return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementConnection", + Object: "OauthProviderHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -64161,8 +147762,8 @@ func (ec *executionContext) fieldContext_EntitlementConnection_totalCount(_ cont return fc, nil } -func (ec *executionContext) _EntitlementCreatePayload_entitlement(ctx context.Context, field graphql.CollectedField, obj *EntitlementCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementCreatePayload_entitlement(ctx, field) +func (ec *executionContext) _OauthProviderHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -64175,80 +147776,79 @@ func (ec *executionContext) _EntitlementCreatePayload_entitlement(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entitlement, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Entitlement) + res := resTmp.(*generated.OauthProviderHistory) fc.Result = res - return ec.marshalNEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx, field.Selections, res) + return ec.marshalOOauthProviderHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementCreatePayload_entitlement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementCreatePayload", + Object: "OauthProviderHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Entitlement_id(ctx, field) + return ec.fieldContext_OauthProviderHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_OauthProviderHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_OauthProviderHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_OauthProviderHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_Entitlement_createdAt(ctx, field) + return ec.fieldContext_OauthProviderHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Entitlement_updatedAt(ctx, field) + return ec.fieldContext_OauthProviderHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Entitlement_createdBy(ctx, field) + return ec.fieldContext_OauthProviderHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Entitlement_updatedBy(ctx, field) + return ec.fieldContext_OauthProviderHistory_updatedBy(ctx, field) case "tags": - return ec.fieldContext_Entitlement_tags(ctx, field) + return ec.fieldContext_OauthProviderHistory_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Entitlement_deletedAt(ctx, field) + return ec.fieldContext_OauthProviderHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Entitlement_deletedBy(ctx, field) + return ec.fieldContext_OauthProviderHistory_deletedBy(ctx, field) case "ownerID": - return ec.fieldContext_Entitlement_ownerID(ctx, field) - case "planID": - return ec.fieldContext_Entitlement_planID(ctx, field) - case "organizationID": - return ec.fieldContext_Entitlement_organizationID(ctx, field) - case "externalCustomerID": - return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) - case "externalSubscriptionID": - return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) - case "expires": - return ec.fieldContext_Entitlement_expires(ctx, field) - case "expiresAt": - return ec.fieldContext_Entitlement_expiresAt(ctx, field) - case "cancelled": - return ec.fieldContext_Entitlement_cancelled(ctx, field) - case "owner": - return ec.fieldContext_Entitlement_owner(ctx, field) - case "plan": - return ec.fieldContext_Entitlement_plan(ctx, field) - case "organization": - return ec.fieldContext_Entitlement_organization(ctx, field) - case "events": - return ec.fieldContext_Entitlement_events(ctx, field) + return ec.fieldContext_OauthProviderHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_OauthProviderHistory_name(ctx, field) + case "clientID": + return ec.fieldContext_OauthProviderHistory_clientID(ctx, field) + case "clientSecret": + return ec.fieldContext_OauthProviderHistory_clientSecret(ctx, field) + case "redirectURL": + return ec.fieldContext_OauthProviderHistory_redirectURL(ctx, field) + case "scopes": + return ec.fieldContext_OauthProviderHistory_scopes(ctx, field) + case "authURL": + return ec.fieldContext_OauthProviderHistory_authURL(ctx, field) + case "tokenURL": + return ec.fieldContext_OauthProviderHistory_tokenURL(ctx, field) + case "authStyle": + return ec.fieldContext_OauthProviderHistory_authStyle(ctx, field) + case "infoURL": + return ec.fieldContext_OauthProviderHistory_infoURL(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OauthProviderHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EntitlementDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _OauthProviderHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -64261,7 +147861,7 @@ func (ec *executionContext) _EntitlementDeletePayload_deletedID(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -64273,26 +147873,26 @@ func (ec *executionContext) _EntitlementDeletePayload_deletedID(ctx context.Cont } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementDeletePayload", + Object: "OauthProviderHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementEdge_node(ctx, field) +func (ec *executionContext) _OauthProviderSearchResult_oauthProviders(ctx context.Context, field graphql.CollectedField, obj *OauthProviderSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderSearchResult_oauthProviders(ctx, field) if err != nil { return graphql.Null } @@ -64305,7 +147905,7 @@ func (ec *executionContext) _EntitlementEdge_node(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.OauthProviders, nil }) if err != nil { ec.Error(ctx, err) @@ -64314,68 +147914,66 @@ func (ec *executionContext) _EntitlementEdge_node(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Entitlement) + res := resTmp.([]*generated.OauthProvider) fc.Result = res - return ec.marshalOEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx, field.Selections, res) + return ec.marshalOOauthProvider2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderSearchResult_oauthProviders(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementEdge", + Object: "OauthProviderSearchResult", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Entitlement_id(ctx, field) + return ec.fieldContext_OauthProvider_id(ctx, field) case "createdAt": - return ec.fieldContext_Entitlement_createdAt(ctx, field) + return ec.fieldContext_OauthProvider_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Entitlement_updatedAt(ctx, field) + return ec.fieldContext_OauthProvider_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Entitlement_createdBy(ctx, field) + return ec.fieldContext_OauthProvider_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Entitlement_updatedBy(ctx, field) + return ec.fieldContext_OauthProvider_updatedBy(ctx, field) case "tags": - return ec.fieldContext_Entitlement_tags(ctx, field) + return ec.fieldContext_OauthProvider_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Entitlement_deletedAt(ctx, field) + return ec.fieldContext_OauthProvider_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Entitlement_deletedBy(ctx, field) + return ec.fieldContext_OauthProvider_deletedBy(ctx, field) case "ownerID": - return ec.fieldContext_Entitlement_ownerID(ctx, field) - case "planID": - return ec.fieldContext_Entitlement_planID(ctx, field) - case "organizationID": - return ec.fieldContext_Entitlement_organizationID(ctx, field) - case "externalCustomerID": - return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) - case "externalSubscriptionID": - return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) - case "expires": - return ec.fieldContext_Entitlement_expires(ctx, field) - case "expiresAt": - return ec.fieldContext_Entitlement_expiresAt(ctx, field) - case "cancelled": - return ec.fieldContext_Entitlement_cancelled(ctx, field) + return ec.fieldContext_OauthProvider_ownerID(ctx, field) + case "name": + return ec.fieldContext_OauthProvider_name(ctx, field) + case "clientID": + return ec.fieldContext_OauthProvider_clientID(ctx, field) + case "clientSecret": + return ec.fieldContext_OauthProvider_clientSecret(ctx, field) + case "redirectURL": + return ec.fieldContext_OauthProvider_redirectURL(ctx, field) + case "scopes": + return ec.fieldContext_OauthProvider_scopes(ctx, field) + case "authURL": + return ec.fieldContext_OauthProvider_authURL(ctx, field) + case "tokenURL": + return ec.fieldContext_OauthProvider_tokenURL(ctx, field) + case "authStyle": + return ec.fieldContext_OauthProvider_authStyle(ctx, field) + case "infoURL": + return ec.fieldContext_OauthProvider_infoURL(ctx, field) case "owner": - return ec.fieldContext_Entitlement_owner(ctx, field) - case "plan": - return ec.fieldContext_Entitlement_plan(ctx, field) - case "organization": - return ec.fieldContext_Entitlement_organization(ctx, field) - case "events": - return ec.fieldContext_Entitlement_events(ctx, field) + return ec.fieldContext_OauthProvider_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementEdge_cursor(ctx, field) +func (ec *executionContext) _OauthProviderUpdatePayload_oauthProvider(ctx context.Context, field graphql.CollectedField, obj *OauthProviderUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OauthProviderUpdatePayload_oauthProvider(ctx, field) if err != nil { return graphql.Null } @@ -64388,7 +147986,7 @@ func (ec *executionContext) _EntitlementEdge_cursor(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.OauthProvider, nil }) if err != nil { ec.Error(ctx, err) @@ -64400,26 +147998,66 @@ func (ec *executionContext) _EntitlementEdge_cursor(ctx context.Context, field g } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*generated.OauthProvider) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OauthProviderUpdatePayload_oauthProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementEdge", + Object: "OauthProviderUpdatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OauthProvider_id(ctx, field) + case "createdAt": + return ec.fieldContext_OauthProvider_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OauthProvider_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OauthProvider_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OauthProvider_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OauthProvider_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OauthProvider_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OauthProvider_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_OauthProvider_ownerID(ctx, field) + case "name": + return ec.fieldContext_OauthProvider_name(ctx, field) + case "clientID": + return ec.fieldContext_OauthProvider_clientID(ctx, field) + case "clientSecret": + return ec.fieldContext_OauthProvider_clientSecret(ctx, field) + case "redirectURL": + return ec.fieldContext_OauthProvider_redirectURL(ctx, field) + case "scopes": + return ec.fieldContext_OauthProvider_scopes(ctx, field) + case "authURL": + return ec.fieldContext_OauthProvider_authURL(ctx, field) + case "tokenURL": + return ec.fieldContext_OauthProvider_tokenURL(ctx, field) + case "authStyle": + return ec.fieldContext_OauthProvider_authStyle(ctx, field) + case "infoURL": + return ec.fieldContext_OauthProvider_infoURL(ctx, field) + case "owner": + return ec.fieldContext_OauthProvider_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_id(ctx, field) +func (ec *executionContext) _OhAuthTooToken_id(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_id(ctx, field) if err != nil { return graphql.Null } @@ -64449,9 +148087,9 @@ func (ec *executionContext) _EntitlementHistory_id(ctx context.Context, field gr return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, @@ -64462,52 +148100,8 @@ func (ec *executionContext) fieldContext_EntitlementHistory_id(_ context.Context return fc, nil } -func (ec *executionContext) _EntitlementHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_historyTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntitlementHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntitlementHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EntitlementHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_ref(ctx, field) +func (ec *executionContext) _OhAuthTooToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_tags(ctx, field) if err != nil { return graphql.Null } @@ -64520,7 +148114,7 @@ func (ec *executionContext) _EntitlementHistory_ref(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -64529,14 +148123,14 @@ func (ec *executionContext) _EntitlementHistory_ref(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, @@ -64547,8 +148141,8 @@ func (ec *executionContext) fieldContext_EntitlementHistory_ref(_ context.Contex return fc, nil } -func (ec *executionContext) _EntitlementHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_operation(ctx, field) +func (ec *executionContext) _OhAuthTooToken_clientID(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_clientID(ctx, field) if err != nil { return graphql.Null } @@ -64561,7 +148155,7 @@ func (ec *executionContext) _EntitlementHistory_operation(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.ClientID, nil }) if err != nil { ec.Error(ctx, err) @@ -64573,26 +148167,26 @@ func (ec *executionContext) _EntitlementHistory_operation(ctx context.Context, f } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntitlementHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_clientID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EntitlementHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_createdAt(ctx, field) +func (ec *executionContext) _OhAuthTooToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_scopes(ctx, field) if err != nil { return graphql.Null } @@ -64605,7 +148199,7 @@ func (ec *executionContext) _EntitlementHistory_createdAt(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Scopes, nil }) if err != nil { ec.Error(ctx, err) @@ -64614,26 +148208,26 @@ func (ec *executionContext) _EntitlementHistory_createdAt(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_updatedAt(ctx, field) +func (ec *executionContext) _OhAuthTooToken_nonce(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_nonce(ctx, field) if err != nil { return graphql.Null } @@ -64646,64 +148240,26 @@ func (ec *executionContext) _EntitlementHistory_updatedAt(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Nonce, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntitlementHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntitlementHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EntitlementHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_nonce(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, @@ -64714,8 +148270,8 @@ func (ec *executionContext) fieldContext_EntitlementHistory_createdBy(_ context. return fc, nil } -func (ec *executionContext) _EntitlementHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_updatedBy(ctx, field) +func (ec *executionContext) _OhAuthTooToken_claimsUserID(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) if err != nil { return graphql.Null } @@ -64728,23 +148284,26 @@ func (ec *executionContext) _EntitlementHistory_updatedBy(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.ClaimsUserID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_claimsUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, @@ -64755,8 +148314,8 @@ func (ec *executionContext) fieldContext_EntitlementHistory_updatedBy(_ context. return fc, nil } -func (ec *executionContext) _EntitlementHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_tags(ctx, field) +func (ec *executionContext) _OhAuthTooToken_claimsUsername(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) if err != nil { return graphql.Null } @@ -64769,23 +148328,26 @@ func (ec *executionContext) _EntitlementHistory_tags(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.ClaimsUsername, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_claimsUsername(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, @@ -64796,8 +148358,8 @@ func (ec *executionContext) fieldContext_EntitlementHistory_tags(_ context.Conte return fc, nil } -func (ec *executionContext) _EntitlementHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_deletedAt(ctx, field) +func (ec *executionContext) _OhAuthTooToken_claimsEmail(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) if err != nil { return graphql.Null } @@ -64810,35 +148372,38 @@ func (ec *executionContext) _EntitlementHistory_deletedAt(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.ClaimsEmail, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_claimsEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_deletedBy(ctx, field) +func (ec *executionContext) _OhAuthTooToken_claimsEmailVerified(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) if err != nil { return graphql.Null } @@ -64851,35 +148416,38 @@ func (ec *executionContext) _EntitlementHistory_deletedBy(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.ClaimsEmailVerified, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_claimsEmailVerified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_ownerID(ctx, field) +func (ec *executionContext) _OhAuthTooToken_claimsGroups(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) if err != nil { return graphql.Null } @@ -64892,7 +148460,7 @@ func (ec *executionContext) _EntitlementHistory_ownerID(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.ClaimsGroups, nil }) if err != nil { ec.Error(ctx, err) @@ -64901,14 +148469,14 @@ func (ec *executionContext) _EntitlementHistory_ownerID(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_claimsGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, @@ -64919,8 +148487,8 @@ func (ec *executionContext) fieldContext_EntitlementHistory_ownerID(_ context.Co return fc, nil } -func (ec *executionContext) _EntitlementHistory_planID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_planID(ctx, field) +func (ec *executionContext) _OhAuthTooToken_claimsPreferredUsername(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) if err != nil { return graphql.Null } @@ -64933,7 +148501,7 @@ func (ec *executionContext) _EntitlementHistory_planID(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PlanID, nil + return obj.ClaimsPreferredUsername, nil }) if err != nil { ec.Error(ctx, err) @@ -64950,9 +148518,9 @@ func (ec *executionContext) _EntitlementHistory_planID(ctx context.Context, fiel return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_planID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_claimsPreferredUsername(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, @@ -64963,8 +148531,8 @@ func (ec *executionContext) fieldContext_EntitlementHistory_planID(_ context.Con return fc, nil } -func (ec *executionContext) _EntitlementHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_organizationID(ctx, field) +func (ec *executionContext) _OhAuthTooToken_connectorID(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) if err != nil { return graphql.Null } @@ -64977,7 +148545,7 @@ func (ec *executionContext) _EntitlementHistory_organizationID(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationID, nil + return obj.ConnectorID, nil }) if err != nil { ec.Error(ctx, err) @@ -64994,9 +148562,9 @@ func (ec *executionContext) _EntitlementHistory_organizationID(ctx context.Conte return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_connectorID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, @@ -65007,8 +148575,8 @@ func (ec *executionContext) fieldContext_EntitlementHistory_organizationID(_ con return fc, nil } -func (ec *executionContext) _EntitlementHistory_externalCustomerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_externalCustomerID(ctx, field) +func (ec *executionContext) _OhAuthTooToken_connectorData(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) if err != nil { return graphql.Null } @@ -65021,7 +148589,7 @@ func (ec *executionContext) _EntitlementHistory_externalCustomerID(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExternalCustomerID, nil + return obj.ConnectorData, nil }) if err != nil { ec.Error(ctx, err) @@ -65030,14 +148598,14 @@ func (ec *executionContext) _EntitlementHistory_externalCustomerID(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_externalCustomerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_connectorData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, @@ -65048,8 +148616,8 @@ func (ec *executionContext) fieldContext_EntitlementHistory_externalCustomerID(_ return fc, nil } -func (ec *executionContext) _EntitlementHistory_externalSubscriptionID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_externalSubscriptionID(ctx, field) +func (ec *executionContext) _OhAuthTooToken_lastUsed(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) if err != nil { return graphql.Null } @@ -65062,35 +148630,38 @@ func (ec *executionContext) _EntitlementHistory_externalSubscriptionID(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExternalSubscriptionID, nil + return obj.LastUsed, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_externalSubscriptionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_lastUsed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementHistory_expires(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_expires(ctx, field) +func (ec *executionContext) _OhAuthTooToken_integration(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_integration(ctx, field) if err != nil { return graphql.Null } @@ -65103,38 +148674,71 @@ func (ec *executionContext) _EntitlementHistory_expires(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Expires, nil + return obj.Integration(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(bool) + res := resTmp.([]*generated.Integration) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_expires(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "oauth2tokens": + return ec.fieldContext_Integration_oauth2tokens(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + case "webhooks": + return ec.fieldContext_Integration_webhooks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementHistory_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_expiresAt(ctx, field) +func (ec *executionContext) _OhAuthTooToken_events(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooToken_events(ctx, field) if err != nil { return graphql.Null } @@ -65147,7 +148751,7 @@ func (ec *executionContext) _EntitlementHistory_expiresAt(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExpiresAt, nil + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) @@ -65156,26 +148760,82 @@ func (ec *executionContext) _EntitlementHistory_expiresAt(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooToken_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooToken", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementHistory_cancelled(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistory_cancelled(ctx, field) +func (ec *executionContext) _OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(ctx context.Context, field graphql.CollectedField, obj *OhAuthTooTokenBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(ctx, field) if err != nil { return graphql.Null } @@ -65188,38 +148848,69 @@ func (ec *executionContext) _EntitlementHistory_cancelled(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cancelled, nil + return obj.OhAuthTooTokens, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(bool) + res := resTmp.([]*generated.OhAuthTooToken) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOOhAuthTooToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistory_cancelled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistory", + Object: "OhAuthTooTokenBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OhAuthTooToken_id(ctx, field) + case "tags": + return ec.fieldContext_OhAuthTooToken_tags(ctx, field) + case "clientID": + return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) + case "scopes": + return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) + case "nonce": + return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) + case "claimsUserID": + return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) + case "claimsUsername": + return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) + case "claimsEmail": + return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) + case "claimsEmailVerified": + return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) + case "claimsGroups": + return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) + case "claimsPreferredUsername": + return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) + case "connectorID": + return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) + case "connectorData": + return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) + case "lastUsed": + return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) + case "integration": + return ec.fieldContext_OhAuthTooToken_integration(ctx, field) + case "events": + return ec.fieldContext_OhAuthTooToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistoryConnection_edges(ctx, field) +func (ec *executionContext) _OhAuthTooTokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooTokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooTokenConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -65241,32 +148932,32 @@ func (ec *executionContext) _EntitlementHistoryConnection_edges(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntitlementHistoryEdge) + res := resTmp.([]*generated.OhAuthTooTokenEdge) fc.Result = res - return ec.marshalOEntitlementHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryEdge(ctx, field.Selections, res) + return ec.marshalOOhAuthTooTokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooTokenConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistoryConnection", + Object: "OhAuthTooTokenConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_EntitlementHistoryEdge_node(ctx, field) + return ec.fieldContext_OhAuthTooTokenEdge_node(ctx, field) case "cursor": - return ec.fieldContext_EntitlementHistoryEdge_cursor(ctx, field) + return ec.fieldContext_OhAuthTooTokenEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _OhAuthTooTokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooTokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooTokenConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -65296,9 +148987,9 @@ func (ec *executionContext) _EntitlementHistoryConnection_pageInfo(ctx context.C return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooTokenConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistoryConnection", + Object: "OhAuthTooTokenConnection", Field: field, IsMethod: false, IsResolver: false, @@ -65319,8 +149010,8 @@ func (ec *executionContext) fieldContext_EntitlementHistoryConnection_pageInfo(_ return fc, nil } -func (ec *executionContext) _EntitlementHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _OhAuthTooTokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooTokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooTokenConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -65350,9 +149041,9 @@ func (ec *executionContext) _EntitlementHistoryConnection_totalCount(ctx context return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooTokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistoryConnection", + Object: "OhAuthTooTokenConnection", Field: field, IsMethod: false, IsResolver: false, @@ -65363,8 +149054,8 @@ func (ec *executionContext) fieldContext_EntitlementHistoryConnection_totalCount return fc, nil } -func (ec *executionContext) _EntitlementHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistoryEdge_node(ctx, field) +func (ec *executionContext) _OhAuthTooTokenCreatePayload_ohAuthTooToken(ctx context.Context, field graphql.CollectedField, obj *OhAuthTooTokenCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooTokenCreatePayload_ohAuthTooToken(ctx, field) if err != nil { return graphql.Null } @@ -65377,75 +149068,72 @@ func (ec *executionContext) _EntitlementHistoryEdge_node(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.OhAuthTooToken, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.EntitlementHistory) + res := resTmp.(*generated.OhAuthTooToken) fc.Result = res - return ec.marshalOEntitlementHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistory(ctx, field.Selections, res) + return ec.marshalNOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooTokenCreatePayload_ohAuthTooToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistoryEdge", + Object: "OhAuthTooTokenCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_EntitlementHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_EntitlementHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_EntitlementHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_EntitlementHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementHistory_updatedBy(ctx, field) + return ec.fieldContext_OhAuthTooToken_id(ctx, field) case "tags": - return ec.fieldContext_EntitlementHistory_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementHistory_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementHistory_ownerID(ctx, field) - case "planID": - return ec.fieldContext_EntitlementHistory_planID(ctx, field) - case "organizationID": - return ec.fieldContext_EntitlementHistory_organizationID(ctx, field) - case "externalCustomerID": - return ec.fieldContext_EntitlementHistory_externalCustomerID(ctx, field) - case "externalSubscriptionID": - return ec.fieldContext_EntitlementHistory_externalSubscriptionID(ctx, field) - case "expires": - return ec.fieldContext_EntitlementHistory_expires(ctx, field) - case "expiresAt": - return ec.fieldContext_EntitlementHistory_expiresAt(ctx, field) - case "cancelled": - return ec.fieldContext_EntitlementHistory_cancelled(ctx, field) + return ec.fieldContext_OhAuthTooToken_tags(ctx, field) + case "clientID": + return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) + case "scopes": + return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) + case "nonce": + return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) + case "claimsUserID": + return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) + case "claimsUsername": + return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) + case "claimsEmail": + return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) + case "claimsEmailVerified": + return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) + case "claimsGroups": + return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) + case "claimsPreferredUsername": + return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) + case "connectorID": + return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) + case "connectorData": + return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) + case "lastUsed": + return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) + case "integration": + return ec.fieldContext_OhAuthTooToken_integration(ctx, field) + case "events": + return ec.fieldContext_OhAuthTooToken_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _OhAuthTooTokenDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OhAuthTooTokenDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooTokenDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -65458,7 +149146,7 @@ func (ec *executionContext) _EntitlementHistoryEdge_cursor(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedID, nil }) if err != nil { ec.Error(ctx, err) @@ -65470,26 +149158,26 @@ func (ec *executionContext) _EntitlementHistoryEdge_cursor(ctx context.Context, } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooTokenDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementHistoryEdge", + Object: "OhAuthTooTokenDeletePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_id(ctx, field) +func (ec *executionContext) _OhAuthTooTokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooTokenEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooTokenEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -65502,38 +149190,69 @@ func (ec *executionContext) _EntitlementPlan_id(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OhAuthTooToken) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooTokenEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OhAuthTooTokenEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OhAuthTooToken_id(ctx, field) + case "tags": + return ec.fieldContext_OhAuthTooToken_tags(ctx, field) + case "clientID": + return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) + case "scopes": + return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) + case "nonce": + return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) + case "claimsUserID": + return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) + case "claimsUsername": + return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) + case "claimsEmail": + return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) + case "claimsEmailVerified": + return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) + case "claimsGroups": + return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) + case "claimsPreferredUsername": + return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) + case "connectorID": + return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) + case "connectorData": + return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) + case "lastUsed": + return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) + case "integration": + return ec.fieldContext_OhAuthTooToken_integration(ctx, field) + case "events": + return ec.fieldContext_OhAuthTooToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_createdAt(ctx, field) +func (ec *executionContext) _OhAuthTooTokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooTokenEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooTokenEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -65546,35 +149265,38 @@ func (ec *executionContext) _EntitlementPlan_createdAt(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooTokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OhAuthTooTokenEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) +func (ec *executionContext) _OhAuthTooTokenSearchResult_ohAuthTooTokens(ctx context.Context, field graphql.CollectedField, obj *OhAuthTooTokenSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooTokenSearchResult_ohAuthTooTokens(ctx, field) if err != nil { return graphql.Null } @@ -65587,7 +149309,7 @@ func (ec *executionContext) _EntitlementPlan_updatedAt(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.OhAuthTooTokens, nil }) if err != nil { ec.Error(ctx, err) @@ -65596,26 +149318,60 @@ func (ec *executionContext) _EntitlementPlan_updatedAt(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.OhAuthTooToken) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOOhAuthTooToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooTokenSearchResult_ohAuthTooTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OhAuthTooTokenSearchResult", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OhAuthTooToken_id(ctx, field) + case "tags": + return ec.fieldContext_OhAuthTooToken_tags(ctx, field) + case "clientID": + return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) + case "scopes": + return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) + case "nonce": + return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) + case "claimsUserID": + return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) + case "claimsUsername": + return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) + case "claimsEmail": + return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) + case "claimsEmailVerified": + return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) + case "claimsGroups": + return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) + case "claimsPreferredUsername": + return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) + case "connectorID": + return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) + case "connectorData": + return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) + case "lastUsed": + return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) + case "integration": + return ec.fieldContext_OhAuthTooToken_integration(ctx, field) + case "events": + return ec.fieldContext_OhAuthTooToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_createdBy(ctx, field) +func (ec *executionContext) _OhAuthTooTokenUpdatePayload_ohAuthTooToken(ctx context.Context, field graphql.CollectedField, obj *OhAuthTooTokenUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OhAuthTooTokenUpdatePayload_ohAuthTooToken(ctx, field) if err != nil { return graphql.Null } @@ -65628,35 +149384,72 @@ func (ec *executionContext) _EntitlementPlan_createdBy(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.OhAuthTooToken, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OhAuthTooToken) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OhAuthTooTokenUpdatePayload_ohAuthTooToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OhAuthTooTokenUpdatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OhAuthTooToken_id(ctx, field) + case "tags": + return ec.fieldContext_OhAuthTooToken_tags(ctx, field) + case "clientID": + return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) + case "scopes": + return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) + case "nonce": + return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) + case "claimsUserID": + return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) + case "claimsUsername": + return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) + case "claimsEmail": + return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) + case "claimsEmailVerified": + return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) + case "claimsGroups": + return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) + case "claimsPreferredUsername": + return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) + case "connectorID": + return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) + case "connectorData": + return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) + case "lastUsed": + return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) + case "integration": + return ec.fieldContext_OhAuthTooToken_integration(ctx, field) + case "events": + return ec.fieldContext_OhAuthTooToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) +func (ec *executionContext) _OrgMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_id(ctx, field) if err != nil { return graphql.Null } @@ -65669,35 +149462,38 @@ func (ec *executionContext) _EntitlementPlan_updatedBy(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) +func (ec *executionContext) _OrgMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -65710,7 +149506,7 @@ func (ec *executionContext) _EntitlementPlan_deletedAt(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -65724,9 +149520,9 @@ func (ec *executionContext) _EntitlementPlan_deletedAt(ctx context.Context, fiel return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, @@ -65737,8 +149533,8 @@ func (ec *executionContext) fieldContext_EntitlementPlan_deletedAt(_ context.Con return fc, nil } -func (ec *executionContext) _EntitlementPlan_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) +func (ec *executionContext) _OrgMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -65751,7 +149547,7 @@ func (ec *executionContext) _EntitlementPlan_deletedBy(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -65760,26 +149556,26 @@ func (ec *executionContext) _EntitlementPlan_deletedBy(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_tags(ctx, field) +func (ec *executionContext) _OrgMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -65792,7 +149588,7 @@ func (ec *executionContext) _EntitlementPlan_tags(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -65801,14 +149597,14 @@ func (ec *executionContext) _EntitlementPlan_tags(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, @@ -65819,8 +149615,8 @@ func (ec *executionContext) fieldContext_EntitlementPlan_tags(_ context.Context, return fc, nil } -func (ec *executionContext) _EntitlementPlan_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_ownerID(ctx, field) +func (ec *executionContext) _OrgMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -65833,7 +149629,7 @@ func (ec *executionContext) _EntitlementPlan_ownerID(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -65844,24 +149640,24 @@ func (ec *executionContext) _EntitlementPlan_ownerID(ctx context.Context, field } res := resTmp.(string) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_displayName(ctx, field) +func (ec *executionContext) _OrgMembership_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -65874,7 +149670,7 @@ func (ec *executionContext) _EntitlementPlan_displayName(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -65883,26 +149679,26 @@ func (ec *executionContext) _EntitlementPlan_displayName(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_name(ctx, field) +func (ec *executionContext) _OrgMembership_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -65915,26 +149711,23 @@ func (ec *executionContext) _EntitlementPlan_name(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, @@ -65945,8 +149738,8 @@ func (ec *executionContext) fieldContext_EntitlementPlan_name(_ context.Context, return fc, nil } -func (ec *executionContext) _EntitlementPlan_description(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_description(ctx, field) +func (ec *executionContext) _OrgMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_role(ctx, field) if err != nil { return graphql.Null } @@ -65959,35 +149752,38 @@ func (ec *executionContext) _EntitlementPlan_description(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(enums.Role) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrgMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type OrgMembershipRole does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_version(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_version(ctx, field) +func (ec *executionContext) _OrgMembership_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_organizationID(ctx, field) if err != nil { return graphql.Null } @@ -66000,7 +149796,7 @@ func (ec *executionContext) _EntitlementPlan_version(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.OrganizationID, nil }) if err != nil { ec.Error(ctx, err) @@ -66014,24 +149810,24 @@ func (ec *executionContext) _EntitlementPlan_version(ctx context.Context, field } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_metadata(ctx, field) +func (ec *executionContext) _OrgMembership_userID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_userID(ctx, field) if err != nil { return graphql.Null } @@ -66044,35 +149840,38 @@ func (ec *executionContext) _EntitlementPlan_metadata(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Metadata, nil + return obj.UserID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(string) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_owner(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_owner(ctx, field) +func (ec *executionContext) _OrgMembership_organization(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_organization(ctx, field) if err != nil { return graphql.Null } @@ -66085,23 +149884,26 @@ func (ec *executionContext) _EntitlementPlan_owner(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.Organization(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: true, IsResolver: false, @@ -66196,8 +149998,8 @@ func (ec *executionContext) fieldContext_EntitlementPlan_owner(_ context.Context return fc, nil } -func (ec *executionContext) _EntitlementPlan_entitlements(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_entitlements(ctx, field) +func (ec *executionContext) _OrgMembership_user(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_user(ctx, field) if err != nil { return graphql.Null } @@ -66210,156 +150012,104 @@ func (ec *executionContext) _EntitlementPlan_entitlements(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entitlements(ctx) + return obj.User(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Entitlement) - fc.Result = res - return ec.marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntitlementPlan_entitlements(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntitlementPlan", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entitlement_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entitlement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entitlement_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entitlement_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entitlement_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Entitlement_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Entitlement_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entitlement_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Entitlement_ownerID(ctx, field) - case "planID": - return ec.fieldContext_Entitlement_planID(ctx, field) - case "organizationID": - return ec.fieldContext_Entitlement_organizationID(ctx, field) - case "externalCustomerID": - return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) - case "externalSubscriptionID": - return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) - case "expires": - return ec.fieldContext_Entitlement_expires(ctx, field) - case "expiresAt": - return ec.fieldContext_Entitlement_expiresAt(ctx, field) - case "cancelled": - return ec.fieldContext_Entitlement_cancelled(ctx, field) - case "owner": - return ec.fieldContext_Entitlement_owner(ctx, field) - case "plan": - return ec.fieldContext_Entitlement_plan(ctx, field) - case "organization": - return ec.fieldContext_Entitlement_organization(ctx, field) - case "events": - return ec.fieldContext_Entitlement_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EntitlementPlan_baseFeatures(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BaseFeatures(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Feature) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureᚄ(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_baseFeatures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Feature_id(ctx, field) + return ec.fieldContext_User_id(ctx, field) case "createdAt": - return ec.fieldContext_Feature_createdAt(ctx, field) + return ec.fieldContext_User_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Feature_updatedAt(ctx, field) + return ec.fieldContext_User_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Feature_createdBy(ctx, field) + return ec.fieldContext_User_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Feature_updatedBy(ctx, field) + return ec.fieldContext_User_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Feature_deletedAt(ctx, field) + return ec.fieldContext_User_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Feature_deletedBy(ctx, field) + return ec.fieldContext_User_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Feature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Feature_ownerID(ctx, field) - case "name": - return ec.fieldContext_Feature_name(ctx, field) + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) case "displayName": - return ec.fieldContext_Feature_displayName(ctx, field) - case "enabled": - return ec.fieldContext_Feature_enabled(ctx, field) - case "description": - return ec.fieldContext_Feature_description(ctx, field) - case "metadata": - return ec.fieldContext_Feature_metadata(ctx, field) - case "owner": - return ec.fieldContext_Feature_owner(ctx, field) - case "plans": - return ec.fieldContext_Feature_plans(ctx, field) + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) case "events": - return ec.fieldContext_Feature_events(ctx, field) - case "features": - return ec.fieldContext_Feature_features(ctx, field) + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlan_events(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_events(ctx, field) +func (ec *executionContext) _OrgMembership_events(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_events(ctx, field) if err != nil { return graphql.Null } @@ -66386,9 +150136,9 @@ func (ec *executionContext) _EntitlementPlan_events(ctx context.Context, field g return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlan_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlan", + Object: "OrgMembership", Field: field, IsMethod: true, IsResolver: false, @@ -66455,83 +150205,8 @@ func (ec *executionContext) fieldContext_EntitlementPlan_events(_ context.Contex return fc, nil } -func (ec *executionContext) _EntitlementPlan_features(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlan_features(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Features(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.EntitlementPlanFeature) - fc.Result = res - return ec.marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntitlementPlan_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntitlementPlan", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) - case "planID": - return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) - case "featureID": - return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) - case "plan": - return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) - case "feature": - return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EntitlementPlanBulkCreatePayload_entitlementPlans(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanBulkCreatePayload_entitlementPlans(ctx, field) +func (ec *executionContext) _OrgMembershipBulkCreatePayload_orgMemberships(ctx context.Context, field graphql.CollectedField, obj *OrgMembershipBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(ctx, field) if err != nil { return graphql.Null } @@ -66544,7 +150219,7 @@ func (ec *executionContext) _EntitlementPlanBulkCreatePayload_entitlementPlans(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntitlementPlans, nil + return obj.OrgMemberships, nil }) if err != nil { ec.Error(ctx, err) @@ -66553,66 +150228,54 @@ func (ec *executionContext) _EntitlementPlanBulkCreatePayload_entitlementPlans(c if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntitlementPlan) + res := resTmp.([]*generated.OrgMembership) fc.Result = res - return ec.marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanᚄ(ctx, field.Selections, res) + return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanBulkCreatePayload_entitlementPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanBulkCreatePayload", + Object: "OrgMembershipBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_EntitlementPlan_id(ctx, field) + return ec.fieldContext_OrgMembership_id(ctx, field) case "createdAt": - return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + return ec.fieldContext_OrgMembership_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlan_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) - case "displayName": - return ec.fieldContext_EntitlementPlan_displayName(ctx, field) - case "name": - return ec.fieldContext_EntitlementPlan_name(ctx, field) - case "description": - return ec.fieldContext_EntitlementPlan_description(ctx, field) - case "version": - return ec.fieldContext_EntitlementPlan_version(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlan_metadata(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlan_owner(ctx, field) - case "entitlements": - return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) - case "baseFeatures": - return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + return ec.fieldContext_OrgMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) case "events": - return ec.fieldContext_EntitlementPlan_events(ctx, field) - case "features": - return ec.fieldContext_EntitlementPlan_features(ctx, field) + return ec.fieldContext_OrgMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanConnection_edges(ctx, field) +func (ec *executionContext) _OrgMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -66634,32 +150297,32 @@ func (ec *executionContext) _EntitlementPlanConnection_edges(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntitlementPlanEdge) + res := resTmp.([]*generated.OrgMembershipEdge) fc.Result = res - return ec.marshalOEntitlementPlanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanEdge(ctx, field.Selections, res) + return ec.marshalOOrgMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanConnection", + Object: "OrgMembershipConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_EntitlementPlanEdge_node(ctx, field) + return ec.fieldContext_OrgMembershipEdge_node(ctx, field) case "cursor": - return ec.fieldContext_EntitlementPlanEdge_cursor(ctx, field) + return ec.fieldContext_OrgMembershipEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanConnection_pageInfo(ctx, field) +func (ec *executionContext) _OrgMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -66689,9 +150352,9 @@ func (ec *executionContext) _EntitlementPlanConnection_pageInfo(ctx context.Cont return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanConnection", + Object: "OrgMembershipConnection", Field: field, IsMethod: false, IsResolver: false, @@ -66712,8 +150375,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanConnection_pageInfo(_ co return fc, nil } -func (ec *executionContext) _EntitlementPlanConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanConnection_totalCount(ctx, field) +func (ec *executionContext) _OrgMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -66743,9 +150406,9 @@ func (ec *executionContext) _EntitlementPlanConnection_totalCount(ctx context.Co return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanConnection", + Object: "OrgMembershipConnection", Field: field, IsMethod: false, IsResolver: false, @@ -66756,8 +150419,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanConnection_totalCount(_ return fc, nil } -func (ec *executionContext) _EntitlementPlanCreatePayload_entitlementPlan(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanCreatePayload_entitlementPlan(ctx, field) +func (ec *executionContext) _OrgMembershipCreatePayload_orgMembership(ctx context.Context, field graphql.CollectedField, obj *OrgMembershipCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipCreatePayload_orgMembership(ctx, field) if err != nil { return graphql.Null } @@ -66770,7 +150433,7 @@ func (ec *executionContext) _EntitlementPlanCreatePayload_entitlementPlan(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntitlementPlan, nil + return obj.OrgMembership, nil }) if err != nil { ec.Error(ctx, err) @@ -66782,66 +150445,54 @@ func (ec *executionContext) _EntitlementPlanCreatePayload_entitlementPlan(ctx co } return graphql.Null } - res := resTmp.(*generated.EntitlementPlan) + res := resTmp.(*generated.OrgMembership) fc.Result = res - return ec.marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, field.Selections, res) + return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanCreatePayload_entitlementPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipCreatePayload_orgMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanCreatePayload", + Object: "OrgMembershipCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_EntitlementPlan_id(ctx, field) + return ec.fieldContext_OrgMembership_id(ctx, field) case "createdAt": - return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + return ec.fieldContext_OrgMembership_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + return ec.fieldContext_OrgMembership_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlan_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) - case "displayName": - return ec.fieldContext_EntitlementPlan_displayName(ctx, field) - case "name": - return ec.fieldContext_EntitlementPlan_name(ctx, field) - case "description": - return ec.fieldContext_EntitlementPlan_description(ctx, field) - case "version": - return ec.fieldContext_EntitlementPlan_version(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlan_metadata(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlan_owner(ctx, field) - case "entitlements": - return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) - case "baseFeatures": - return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) case "events": - return ec.fieldContext_EntitlementPlan_events(ctx, field) - case "features": - return ec.fieldContext_EntitlementPlan_features(ctx, field) + return ec.fieldContext_OrgMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _OrgMembershipDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OrgMembershipDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -66871,9 +150522,9 @@ func (ec *executionContext) _EntitlementPlanDeletePayload_deletedID(ctx context. return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanDeletePayload", + Object: "OrgMembershipDeletePayload", Field: field, IsMethod: false, IsResolver: false, @@ -66884,8 +150535,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanDeletePayload_deletedID( return fc, nil } -func (ec *executionContext) _EntitlementPlanEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanEdge_node(ctx, field) +func (ec *executionContext) _OrgMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -66907,66 +150558,54 @@ func (ec *executionContext) _EntitlementPlanEdge_node(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.EntitlementPlan) + res := resTmp.(*generated.OrgMembership) fc.Result = res - return ec.marshalOEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, field.Selections, res) + return ec.marshalOOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanEdge", + Object: "OrgMembershipEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_EntitlementPlan_id(ctx, field) + return ec.fieldContext_OrgMembership_id(ctx, field) case "createdAt": - return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + return ec.fieldContext_OrgMembership_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + return ec.fieldContext_OrgMembership_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlan_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) - case "displayName": - return ec.fieldContext_EntitlementPlan_displayName(ctx, field) - case "name": - return ec.fieldContext_EntitlementPlan_name(ctx, field) - case "description": - return ec.fieldContext_EntitlementPlan_description(ctx, field) - case "version": - return ec.fieldContext_EntitlementPlan_version(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlan_metadata(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlan_owner(ctx, field) - case "entitlements": - return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) - case "baseFeatures": - return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) case "events": - return ec.fieldContext_EntitlementPlan_events(ctx, field) - case "features": - return ec.fieldContext_EntitlementPlan_features(ctx, field) + return ec.fieldContext_OrgMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanEdge_cursor(ctx, field) +func (ec *executionContext) _OrgMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -66996,9 +150635,9 @@ func (ec *executionContext) _EntitlementPlanEdge_cursor(ctx context.Context, fie return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanEdge", + Object: "OrgMembershipEdge", Field: field, IsMethod: false, IsResolver: false, @@ -67009,8 +150648,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanEdge_cursor(_ context.Co return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_id(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -67040,9 +150679,9 @@ func (ec *executionContext) _EntitlementPlanFeature_id(ctx context.Context, fiel return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", + Object: "OrgMembershipHistory", Field: field, IsMethod: false, IsResolver: false, @@ -67053,8 +150692,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeature_id(_ context.Con return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -67067,64 +150706,26 @@ func (ec *executionContext) _EntitlementPlanFeature_createdAt(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntitlementPlanFeature_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EntitlementPlanFeature_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { return graphql.Null } res := resTmp.(time.Time) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeature_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", + Object: "OrgMembershipHistory", Field: field, IsMethod: false, IsResolver: false, @@ -67135,8 +150736,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeature_updatedAt(_ cont return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -67149,7 +150750,7 @@ func (ec *executionContext) _EntitlementPlanFeature_createdBy(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -67163,9 +150764,9 @@ func (ec *executionContext) _EntitlementPlanFeature_createdBy(ctx context.Contex return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeature_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", + Object: "OrgMembershipHistory", Field: field, IsMethod: false, IsResolver: false, @@ -67176,8 +150777,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeature_createdBy(_ cont return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -67190,35 +150791,38 @@ func (ec *executionContext) _EntitlementPlanFeature_updatedBy(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeature_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", + Object: "OrgMembershipHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type OrgMembershipHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -67231,7 +150835,7 @@ func (ec *executionContext) _EntitlementPlanFeature_deletedAt(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -67245,9 +150849,9 @@ func (ec *executionContext) _EntitlementPlanFeature_deletedAt(ctx context.Contex return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeature_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", + Object: "OrgMembershipHistory", Field: field, IsMethod: false, IsResolver: false, @@ -67258,8 +150862,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeature_deletedAt(_ cont return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -67272,7 +150876,7 @@ func (ec *executionContext) _EntitlementPlanFeature_deletedBy(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -67281,26 +150885,26 @@ func (ec *executionContext) _EntitlementPlanFeature_deletedBy(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeature_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", + Object: "OrgMembershipHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -67313,7 +150917,7 @@ func (ec *executionContext) _EntitlementPlanFeature_tags(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -67322,14 +150926,14 @@ func (ec *executionContext) _EntitlementPlanFeature_tags(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeature_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", + Object: "OrgMembershipHistory", Field: field, IsMethod: false, IsResolver: false, @@ -67340,8 +150944,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeature_tags(_ context.C return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -67354,7 +150958,7 @@ func (ec *executionContext) _EntitlementPlanFeature_ownerID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -67365,24 +150969,24 @@ func (ec *executionContext) _EntitlementPlanFeature_ownerID(ctx context.Context, } res := resTmp.(string) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeature_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", + Object: "OrgMembershipHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -67395,7 +150999,7 @@ func (ec *executionContext) _EntitlementPlanFeature_metadata(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Metadata, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -67404,26 +151008,26 @@ func (ec *executionContext) _EntitlementPlanFeature_metadata(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeature_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", + Object: "OrgMembershipHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_planID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -67436,38 +151040,35 @@ func (ec *executionContext) _EntitlementPlanFeature_planID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PlanID, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeature_planID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", + Object: "OrgMembershipHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_featureID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_role(ctx, field) if err != nil { return graphql.Null } @@ -67480,7 +151081,7 @@ func (ec *executionContext) _EntitlementPlanFeature_featureID(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FeatureID, nil + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) @@ -67492,151 +151093,26 @@ func (ec *executionContext) _EntitlementPlanFeature_featureID(ctx context.Contex } return graphql.Null } - res := resTmp.(string) + res := resTmp.(enums.Role) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeature_featureID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", + Object: "OrgMembershipHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EntitlementPlanFeature_owner(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntitlementPlanFeature_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type OrgMembershipHistoryRole does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_plan(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_organizationID(ctx, field) if err != nil { return graphql.Null } @@ -67649,7 +151125,7 @@ func (ec *executionContext) _EntitlementPlanFeature_plan(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Plan(ctx) + return obj.OrganizationID, nil }) if err != nil { ec.Error(ctx, err) @@ -67661,66 +151137,26 @@ func (ec *executionContext) _EntitlementPlanFeature_plan(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*generated.EntitlementPlan) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeature_plan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", + Object: "OrgMembershipHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlan_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) - case "displayName": - return ec.fieldContext_EntitlementPlan_displayName(ctx, field) - case "name": - return ec.fieldContext_EntitlementPlan_name(ctx, field) - case "description": - return ec.fieldContext_EntitlementPlan_description(ctx, field) - case "version": - return ec.fieldContext_EntitlementPlan_version(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlan_metadata(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlan_owner(ctx, field) - case "entitlements": - return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) - case "baseFeatures": - return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlan_events(ctx, field) - case "features": - return ec.fieldContext_EntitlementPlan_features(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeature_feature(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_userID(ctx, field) if err != nil { return graphql.Null } @@ -67733,7 +151169,7 @@ func (ec *executionContext) _EntitlementPlanFeature_feature(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Feature(ctx) + return obj.UserID, nil }) if err != nil { ec.Error(ctx, err) @@ -67745,236 +151181,26 @@ func (ec *executionContext) _EntitlementPlanFeature_feature(ctx context.Context, } return graphql.Null } - res := resTmp.(*generated.Feature) - fc.Result = res - return ec.marshalNFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntitlementPlanFeature_feature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Feature_id(ctx, field) - case "createdAt": - return ec.fieldContext_Feature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Feature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Feature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Feature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Feature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Feature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Feature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Feature_ownerID(ctx, field) - case "name": - return ec.fieldContext_Feature_name(ctx, field) - case "displayName": - return ec.fieldContext_Feature_displayName(ctx, field) - case "enabled": - return ec.fieldContext_Feature_enabled(ctx, field) - case "description": - return ec.fieldContext_Feature_description(ctx, field) - case "metadata": - return ec.fieldContext_Feature_metadata(ctx, field) - case "owner": - return ec.fieldContext_Feature_owner(ctx, field) - case "plans": - return ec.fieldContext_Feature_plans(ctx, field) - case "events": - return ec.fieldContext_Feature_events(ctx, field) - case "features": - return ec.fieldContext_Feature_features(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EntitlementPlanFeature_events(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeature_events(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Event) - fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntitlementPlanFeature_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeature", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EntitlementPlanFeatureBulkCreatePayload_entitlementPlanFeatures(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanFeatureBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureBulkCreatePayload_entitlementPlanFeatures(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EntitlementPlanFeatures, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.EntitlementPlanFeature) + res := resTmp.(string) fc.Result = res - return ec.marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureBulkCreatePayload_entitlementPlanFeatures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureBulkCreatePayload", + Object: "OrgMembershipHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) - case "planID": - return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) - case "featureID": - return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) - case "plan": - return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) - case "feature": - return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureConnection_edges(ctx, field) +func (ec *executionContext) _OrgMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -67996,32 +151222,32 @@ func (ec *executionContext) _EntitlementPlanFeatureConnection_edges(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntitlementPlanFeatureEdge) + res := resTmp.([]*generated.OrgMembershipHistoryEdge) fc.Result = res - return ec.marshalOEntitlementPlanFeatureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureEdge(ctx, field.Selections, res) + return ec.marshalOOrgMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureConnection", + Object: "OrgMembershipHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_EntitlementPlanFeatureEdge_node(ctx, field) + return ec.fieldContext_OrgMembershipHistoryEdge_node(ctx, field) case "cursor": - return ec.fieldContext_EntitlementPlanFeatureEdge_cursor(ctx, field) + return ec.fieldContext_OrgMembershipHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureConnection_pageInfo(ctx, field) +func (ec *executionContext) _OrgMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -68051,9 +151277,9 @@ func (ec *executionContext) _EntitlementPlanFeatureConnection_pageInfo(ctx conte return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureConnection", + Object: "OrgMembershipHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -68074,8 +151300,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeatureConnection_pageIn return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureConnection_totalCount(ctx, field) +func (ec *executionContext) _OrgMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -68105,9 +151331,9 @@ func (ec *executionContext) _EntitlementPlanFeatureConnection_totalCount(ctx con return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureConnection", + Object: "OrgMembershipHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -68118,8 +151344,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeatureConnection_totalC return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureCreatePayload_entitlementPlanFeature(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanFeatureCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureCreatePayload_entitlementPlanFeature(ctx, field) +func (ec *executionContext) _OrgMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -68132,72 +151358,63 @@ func (ec *executionContext) _EntitlementPlanFeatureCreatePayload_entitlementPlan }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntitlementPlanFeature, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.EntitlementPlanFeature) + res := resTmp.(*generated.OrgMembershipHistory) fc.Result = res - return ec.marshalNEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx, field.Selections, res) + return ec.marshalOOrgMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureCreatePayload_entitlementPlanFeature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureCreatePayload", + Object: "OrgMembershipHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + return ec.fieldContext_OrgMembershipHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_OrgMembershipHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_OrgMembershipHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_OrgMembershipHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + return ec.fieldContext_OrgMembershipHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + return ec.fieldContext_OrgMembershipHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + return ec.fieldContext_OrgMembershipHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + return ec.fieldContext_OrgMembershipHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + return ec.fieldContext_OrgMembershipHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) - case "planID": - return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) - case "featureID": - return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) - case "plan": - return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) - case "feature": - return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + return ec.fieldContext_OrgMembershipHistory_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembershipHistory_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembershipHistory_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembershipHistory_userID(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanFeatureDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _OrgMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -68210,7 +151427,7 @@ func (ec *executionContext) _EntitlementPlanFeatureDeletePayload_deletedID(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -68222,26 +151439,26 @@ func (ec *executionContext) _EntitlementPlanFeatureDeletePayload_deletedID(ctx c } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureDeletePayload", + Object: "OrgMembershipHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureEdge_node(ctx, field) +func (ec *executionContext) _OrgMembershipUpdatePayload_orgMembership(ctx context.Context, field graphql.CollectedField, obj *OrgMembershipUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipUpdatePayload_orgMembership(ctx, field) if err != nil { return graphql.Null } @@ -68254,113 +151471,66 @@ func (ec *executionContext) _EntitlementPlanFeatureEdge_node(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.OrgMembership, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.EntitlementPlanFeature) + res := resTmp.(*generated.OrgMembership) fc.Result = res - return ec.marshalOEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx, field.Selections, res) + return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipUpdatePayload_orgMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureEdge", + Object: "OrgMembershipUpdatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + return ec.fieldContext_OrgMembership_id(ctx, field) case "createdAt": - return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + return ec.fieldContext_OrgMembership_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + return ec.fieldContext_OrgMembership_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) - case "planID": - return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) - case "featureID": - return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) - case "plan": - return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) - case "feature": - return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) case "events": - return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + return ec.fieldContext_OrgMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EntitlementPlanFeatureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntitlementPlanFeatureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_id(ctx, field) +func (ec *executionContext) _Organization_id(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_id(ctx, field) if err != nil { return graphql.Null } @@ -68390,9 +151560,9 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_id(ctx context.Contex return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, @@ -68403,8 +151573,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_id(_ cont return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_historyTime(ctx, field) +func (ec *executionContext) _Organization_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -68417,26 +151587,23 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_historyTime(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(time.Time) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, @@ -68447,8 +151614,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_historyTi return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_ref(ctx, field) +func (ec *executionContext) _Organization_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -68461,7 +151628,7 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_ref(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -68470,26 +151637,26 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_ref(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_operation(ctx, field) +func (ec *executionContext) _Organization_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -68502,38 +151669,35 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_operation(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntitlementPlanFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EntitlementPlanFeatureHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_createdAt(ctx, field) +func (ec *executionContext) _Organization_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -68546,7 +151710,7 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_createdAt(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -68555,26 +151719,26 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_createdAt(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_updatedAt(ctx, field) +func (ec *executionContext) _Organization_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_tags(ctx, field) if err != nil { return graphql.Null } @@ -68587,7 +151751,7 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_updatedAt(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -68596,26 +151760,26 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_updatedAt(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_createdBy(ctx, field) +func (ec *executionContext) _Organization_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -68628,7 +151792,7 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_createdBy(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -68637,26 +151801,26 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_createdBy(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_updatedBy(ctx, field) +func (ec *executionContext) _Organization_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -68669,7 +151833,7 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_updatedBy(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -68683,9 +151847,9 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_updatedBy(ctx context return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, @@ -68696,8 +151860,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_updatedBy return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_deletedAt(ctx, field) +func (ec *executionContext) _Organization_name(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_name(ctx, field) if err != nil { return graphql.Null } @@ -68710,64 +151874,26 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_deletedAt(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _EntitlementPlanFeatureHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, @@ -68778,8 +151904,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_deletedBy return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_tags(ctx, field) +func (ec *executionContext) _Organization_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_displayName(ctx, field) if err != nil { return graphql.Null } @@ -68792,23 +151918,26 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_tags(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, @@ -68819,8 +151948,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_tags(_ co return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_ownerID(ctx, field) +func (ec *executionContext) _Organization_description(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_description(ctx, field) if err != nil { return graphql.Null } @@ -68833,7 +151962,7 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_ownerID(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -68847,9 +151976,9 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_ownerID(ctx context.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, @@ -68860,8 +151989,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_ownerID(_ return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_metadata(ctx, field) +func (ec *executionContext) _Organization_personalOrg(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_personalOrg(ctx, field) if err != nil { return graphql.Null } @@ -68874,7 +152003,7 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_metadata(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Metadata, nil + return obj.PersonalOrg, nil }) if err != nil { ec.Error(ctx, err) @@ -68883,26 +152012,26 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_metadata(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(bool) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_personalOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_planID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_planID(ctx, field) +func (ec *executionContext) _Organization_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_avatarRemoteURL(ctx, field) if err != nil { return graphql.Null } @@ -68915,26 +152044,23 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_planID(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PlanID, nil + return obj.AvatarRemoteURL, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_planID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, @@ -68945,8 +152071,8 @@ func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_planID(_ return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistory_featureID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistory_featureID(ctx, field) +func (ec *executionContext) _Organization_dedicatedDb(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_dedicatedDb(ctx, field) if err != nil { return graphql.Null } @@ -68959,7 +152085,7 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_featureID(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FeatureID, nil + return obj.DedicatedDb, nil }) if err != nil { ec.Error(ctx, err) @@ -68971,26 +152097,26 @@ func (ec *executionContext) _EntitlementPlanFeatureHistory_featureID(ctx context } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistory_featureID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_dedicatedDb(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistory", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistoryConnection_edges(ctx, field) +func (ec *executionContext) _Organization_parent(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_parent(ctx, field) if err != nil { return graphql.Null } @@ -69003,7 +152129,7 @@ func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection_edges(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Parent(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69012,32 +152138,110 @@ func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection_edges(ctx c if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntitlementPlanFeatureHistoryEdge) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOEntitlementPlanFeatureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryEdge(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_parent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistoryConnection", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_EntitlementPlanFeatureHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EntitlementPlanFeatureHistoryEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Organization_children(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_children(ctx, field) if err != nil { return graphql.Null } @@ -69050,7 +152254,7 @@ func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection_pageInfo(ct }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Children(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.OrganizationOrder), fc.Args["where"].(*generated.OrganizationWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -69062,80 +152266,45 @@ func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection_pageInfo(ct } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*generated.OrganizationConnection) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_children(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistoryConnection", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "edges": + return ec.fieldContext_OrganizationConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrganizationConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrganizationConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationConnection", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistoryConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Organization_children_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistoryEdge_node(ctx, field) +func (ec *executionContext) _Organization_groups(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_groups(ctx, field) if err != nil { return graphql.Null } @@ -69148,7 +152317,7 @@ func (ec *executionContext) _EntitlementPlanFeatureHistoryEdge_node(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Groups(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69157,58 +152326,70 @@ func (ec *executionContext) _EntitlementPlanFeatureHistoryEdge_node(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.EntitlementPlanFeatureHistory) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOEntitlementPlanFeatureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistory(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistoryEdge", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_EntitlementPlanFeatureHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_EntitlementPlanFeatureHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_EntitlementPlanFeatureHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_EntitlementPlanFeatureHistory_operation(ctx, field) + return ec.fieldContext_Group_id(ctx, field) case "createdAt": - return ec.fieldContext_EntitlementPlanFeatureHistory_createdAt(ctx, field) + return ec.fieldContext_Group_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_EntitlementPlanFeatureHistory_updatedAt(ctx, field) + return ec.fieldContext_Group_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_EntitlementPlanFeatureHistory_createdBy(ctx, field) + return ec.fieldContext_Group_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_EntitlementPlanFeatureHistory_updatedBy(ctx, field) + return ec.fieldContext_Group_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_EntitlementPlanFeatureHistory_deletedAt(ctx, field) + return ec.fieldContext_Group_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_EntitlementPlanFeatureHistory_deletedBy(ctx, field) + return ec.fieldContext_Group_deletedBy(ctx, field) case "tags": - return ec.fieldContext_EntitlementPlanFeatureHistory_tags(ctx, field) + return ec.fieldContext_Group_tags(ctx, field) case "ownerID": - return ec.fieldContext_EntitlementPlanFeatureHistory_ownerID(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlanFeatureHistory_metadata(ctx, field) - case "planID": - return ec.fieldContext_EntitlementPlanFeatureHistory_planID(ctx, field) - case "featureID": - return ec.fieldContext_EntitlementPlanFeatureHistory_featureID(ctx, field) + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanFeatureHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _Organization_templates(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_templates(ctx, field) if err != nil { return graphql.Null } @@ -69221,38 +152402,71 @@ func (ec *executionContext) _EntitlementPlanFeatureHistoryEdge_cursor(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Templates(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]*generated.Template) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureHistoryEdge", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureSearchResult_entitlementPlanFeatures(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanFeatureSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureSearchResult_entitlementPlanFeatures(ctx, field) +func (ec *executionContext) _Organization_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_integrations(ctx, field) if err != nil { return graphql.Null } @@ -69265,7 +152479,7 @@ func (ec *executionContext) _EntitlementPlanFeatureSearchResult_entitlementPlanF }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntitlementPlanFeatures, nil + return obj.Integrations(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69274,60 +152488,62 @@ func (ec *executionContext) _EntitlementPlanFeatureSearchResult_entitlementPlanF if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntitlementPlanFeature) + res := resTmp.([]*generated.Integration) fc.Result = res - return ec.marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx, field.Selections, res) + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureSearchResult_entitlementPlanFeatures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureSearchResult", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + return ec.fieldContext_Integration_id(ctx, field) case "createdAt": - return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + return ec.fieldContext_Integration_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + return ec.fieldContext_Integration_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + return ec.fieldContext_Integration_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) case "deletedAt": - return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + return ec.fieldContext_Integration_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) + return ec.fieldContext_Integration_deletedBy(ctx, field) case "ownerID": - return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) - case "planID": - return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) - case "featureID": - return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) case "owner": - return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) - case "plan": - return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) - case "feature": - return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "oauth2tokens": + return ec.fieldContext_Integration_oauth2tokens(ctx, field) case "events": - return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + return ec.fieldContext_Integration_events(ctx, field) + case "webhooks": + return ec.fieldContext_Integration_webhooks(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanFeatureUpdatePayload_entitlementPlanFeature(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanFeatureUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanFeatureUpdatePayload_entitlementPlanFeature(ctx, field) +func (ec *executionContext) _Organization_setting(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_setting(ctx, field) if err != nil { return graphql.Null } @@ -69340,72 +152556,73 @@ func (ec *executionContext) _EntitlementPlanFeatureUpdatePayload_entitlementPlan }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntitlementPlanFeature, nil + return obj.Setting(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.EntitlementPlanFeature) + res := resTmp.(*generated.OrganizationSetting) fc.Result = res - return ec.marshalNEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx, field.Selections, res) + return ec.marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanFeatureUpdatePayload_entitlementPlanFeature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanFeatureUpdatePayload", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + return ec.fieldContext_OrganizationSetting_id(ctx, field) case "createdAt": - return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) case "deletedAt": - return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) - case "planID": - return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) - case "featureID": - return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) - case "plan": - return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) - case "feature": - return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_id(ctx, field) +func (ec *executionContext) _Organization_documentdata(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_documentdata(ctx, field) if err != nil { return graphql.Null } @@ -69418,38 +152635,67 @@ func (ec *executionContext) _EntitlementPlanHistory_id(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Documentdata(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.DocumentData) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_documentdata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_historyTime(ctx, field) +func (ec *executionContext) _Organization_entitlements(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_entitlements(ctx, field) if err != nil { return graphql.Null } @@ -69462,38 +152708,77 @@ func (ec *executionContext) _EntitlementPlanHistory_historyTime(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Entitlements(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Entitlement) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_entitlements(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Entitlement_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entitlement_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entitlement_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entitlement_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entitlement_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Entitlement_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Entitlement_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entitlement_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Entitlement_ownerID(ctx, field) + case "planID": + return ec.fieldContext_Entitlement_planID(ctx, field) + case "organizationID": + return ec.fieldContext_Entitlement_organizationID(ctx, field) + case "externalCustomerID": + return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) + case "externalSubscriptionID": + return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) + case "expires": + return ec.fieldContext_Entitlement_expires(ctx, field) + case "expiresAt": + return ec.fieldContext_Entitlement_expiresAt(ctx, field) + case "cancelled": + return ec.fieldContext_Entitlement_cancelled(ctx, field) + case "owner": + return ec.fieldContext_Entitlement_owner(ctx, field) + case "plan": + return ec.fieldContext_Entitlement_plan(ctx, field) + case "organization": + return ec.fieldContext_Entitlement_organization(ctx, field) + case "events": + return ec.fieldContext_Entitlement_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_ref(ctx, field) +func (ec *executionContext) _Organization_organizationEntitlement(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_organizationEntitlement(ctx, field) if err != nil { return graphql.Null } @@ -69506,7 +152791,7 @@ func (ec *executionContext) _EntitlementPlanHistory_ref(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.OrganizationEntitlement(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69515,26 +152800,68 @@ func (ec *executionContext) _EntitlementPlanHistory_ref(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Entitlement) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_organizationEntitlement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Entitlement_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entitlement_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entitlement_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entitlement_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entitlement_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Entitlement_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Entitlement_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entitlement_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Entitlement_ownerID(ctx, field) + case "planID": + return ec.fieldContext_Entitlement_planID(ctx, field) + case "organizationID": + return ec.fieldContext_Entitlement_organizationID(ctx, field) + case "externalCustomerID": + return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) + case "externalSubscriptionID": + return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) + case "expires": + return ec.fieldContext_Entitlement_expires(ctx, field) + case "expiresAt": + return ec.fieldContext_Entitlement_expiresAt(ctx, field) + case "cancelled": + return ec.fieldContext_Entitlement_cancelled(ctx, field) + case "owner": + return ec.fieldContext_Entitlement_owner(ctx, field) + case "plan": + return ec.fieldContext_Entitlement_plan(ctx, field) + case "organization": + return ec.fieldContext_Entitlement_organization(ctx, field) + case "events": + return ec.fieldContext_Entitlement_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_operation(ctx, field) +func (ec *executionContext) _Organization_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_personalAccessTokens(ctx, field) if err != nil { return graphql.Null } @@ -69547,38 +152874,71 @@ func (ec *executionContext) _EntitlementPlanHistory_operation(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.PersonalAccessTokens(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.([]*generated.PersonalAccessToken) fc.Result = res - return ec.marshalNEntitlementPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EntitlementPlanHistoryOpType does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_createdAt(ctx, field) +func (ec *executionContext) _Organization_apiTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_apiTokens(ctx, field) if err != nil { return graphql.Null } @@ -69591,7 +152951,7 @@ func (ec *executionContext) _EntitlementPlanHistory_createdAt(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.APITokens(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69600,26 +152960,60 @@ func (ec *executionContext) _EntitlementPlanHistory_createdAt(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.APIToken) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_apiTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_updatedAt(ctx, field) +func (ec *executionContext) _Organization_oauthprovider(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_oauthprovider(ctx, field) if err != nil { return graphql.Null } @@ -69632,7 +153026,7 @@ func (ec *executionContext) _EntitlementPlanHistory_updatedAt(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Oauthprovider(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69641,26 +153035,66 @@ func (ec *executionContext) _EntitlementPlanHistory_updatedAt(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.OauthProvider) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOOauthProvider2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_oauthprovider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OauthProvider_id(ctx, field) + case "createdAt": + return ec.fieldContext_OauthProvider_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OauthProvider_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OauthProvider_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OauthProvider_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OauthProvider_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OauthProvider_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OauthProvider_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_OauthProvider_ownerID(ctx, field) + case "name": + return ec.fieldContext_OauthProvider_name(ctx, field) + case "clientID": + return ec.fieldContext_OauthProvider_clientID(ctx, field) + case "clientSecret": + return ec.fieldContext_OauthProvider_clientSecret(ctx, field) + case "redirectURL": + return ec.fieldContext_OauthProvider_redirectURL(ctx, field) + case "scopes": + return ec.fieldContext_OauthProvider_scopes(ctx, field) + case "authURL": + return ec.fieldContext_OauthProvider_authURL(ctx, field) + case "tokenURL": + return ec.fieldContext_OauthProvider_tokenURL(ctx, field) + case "authStyle": + return ec.fieldContext_OauthProvider_authStyle(ctx, field) + case "infoURL": + return ec.fieldContext_OauthProvider_infoURL(ctx, field) + case "owner": + return ec.fieldContext_OauthProvider_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_createdBy(ctx, field) +func (ec *executionContext) _Organization_users(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_users(ctx, field) if err != nil { return graphql.Null } @@ -69673,7 +153107,7 @@ func (ec *executionContext) _EntitlementPlanHistory_createdBy(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Users(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69682,26 +153116,92 @@ func (ec *executionContext) _EntitlementPlanHistory_createdBy(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.User) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_updatedBy(ctx, field) +func (ec *executionContext) _Organization_invites(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_invites(ctx, field) if err != nil { return graphql.Null } @@ -69714,7 +153214,7 @@ func (ec *executionContext) _EntitlementPlanHistory_updatedBy(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Invites(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69723,26 +153223,60 @@ func (ec *executionContext) _EntitlementPlanHistory_updatedBy(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Invite) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_invites(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_deletedAt(ctx, field) +func (ec *executionContext) _Organization_subscribers(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_subscribers(ctx, field) if err != nil { return graphql.Null } @@ -69755,7 +153289,7 @@ func (ec *executionContext) _EntitlementPlanHistory_deletedAt(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Subscribers(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69764,26 +153298,60 @@ func (ec *executionContext) _EntitlementPlanHistory_deletedAt(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Subscriber) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_subscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_deletedBy(ctx, field) +func (ec *executionContext) _Organization_webhooks(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_webhooks(ctx, field) if err != nil { return graphql.Null } @@ -69796,7 +153364,7 @@ func (ec *executionContext) _EntitlementPlanHistory_deletedBy(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Webhooks(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69805,26 +153373,66 @@ func (ec *executionContext) _EntitlementPlanHistory_deletedBy(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Webhook) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_webhooks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Webhook_id(ctx, field) + case "createdAt": + return ec.fieldContext_Webhook_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Webhook_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Webhook_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Webhook_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Webhook_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Webhook_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Webhook_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Webhook_ownerID(ctx, field) + case "name": + return ec.fieldContext_Webhook_name(ctx, field) + case "description": + return ec.fieldContext_Webhook_description(ctx, field) + case "destinationURL": + return ec.fieldContext_Webhook_destinationURL(ctx, field) + case "enabled": + return ec.fieldContext_Webhook_enabled(ctx, field) + case "failures": + return ec.fieldContext_Webhook_failures(ctx, field) + case "lastError": + return ec.fieldContext_Webhook_lastError(ctx, field) + case "lastResponse": + return ec.fieldContext_Webhook_lastResponse(ctx, field) + case "owner": + return ec.fieldContext_Webhook_owner(ctx, field) + case "events": + return ec.fieldContext_Webhook_events(ctx, field) + case "integrations": + return ec.fieldContext_Webhook_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_tags(ctx, field) +func (ec *executionContext) _Organization_events(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_events(ctx, field) if err != nil { return graphql.Null } @@ -69837,7 +153445,7 @@ func (ec *executionContext) _EntitlementPlanHistory_tags(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69846,26 +153454,82 @@ func (ec *executionContext) _EntitlementPlanHistory_tags(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_ownerID(ctx, field) +func (ec *executionContext) _Organization_secrets(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_secrets(ctx, field) if err != nil { return graphql.Null } @@ -69878,7 +153542,7 @@ func (ec *executionContext) _EntitlementPlanHistory_ownerID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Secrets(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69887,26 +153551,56 @@ func (ec *executionContext) _EntitlementPlanHistory_ownerID(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Hush) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_secrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_displayName(ctx, field) +func (ec *executionContext) _Organization_features(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_features(ctx, field) if err != nil { return graphql.Null } @@ -69919,7 +153613,7 @@ func (ec *executionContext) _EntitlementPlanHistory_displayName(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.Features(ctx) }) if err != nil { ec.Error(ctx, err) @@ -69928,26 +153622,64 @@ func (ec *executionContext) _EntitlementPlanHistory_displayName(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Feature) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Feature_id(ctx, field) + case "createdAt": + return ec.fieldContext_Feature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Feature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Feature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Feature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Feature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Feature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Feature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Feature_ownerID(ctx, field) + case "name": + return ec.fieldContext_Feature_name(ctx, field) + case "displayName": + return ec.fieldContext_Feature_displayName(ctx, field) + case "enabled": + return ec.fieldContext_Feature_enabled(ctx, field) + case "description": + return ec.fieldContext_Feature_description(ctx, field) + case "metadata": + return ec.fieldContext_Feature_metadata(ctx, field) + case "owner": + return ec.fieldContext_Feature_owner(ctx, field) + case "plans": + return ec.fieldContext_Feature_plans(ctx, field) + case "events": + return ec.fieldContext_Feature_events(ctx, field) + case "features": + return ec.fieldContext_Feature_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_name(ctx, field) +func (ec *executionContext) _Organization_files(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_files(ctx, field) if err != nil { return graphql.Null } @@ -69960,38 +153692,99 @@ func (ec *executionContext) _EntitlementPlanHistory_name(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_description(ctx, field) +func (ec *executionContext) _Organization_entitlementplans(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_entitlementplans(ctx, field) if err != nil { return graphql.Null } @@ -70004,7 +153797,7 @@ func (ec *executionContext) _EntitlementPlanHistory_description(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Entitlementplans(ctx) }) if err != nil { ec.Error(ctx, err) @@ -70013,26 +153806,66 @@ func (ec *executionContext) _EntitlementPlanHistory_description(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.EntitlementPlan) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_entitlementplans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlan_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) + case "displayName": + return ec.fieldContext_EntitlementPlan_displayName(ctx, field) + case "name": + return ec.fieldContext_EntitlementPlan_name(ctx, field) + case "description": + return ec.fieldContext_EntitlementPlan_description(ctx, field) + case "version": + return ec.fieldContext_EntitlementPlan_version(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlan_metadata(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlan_owner(ctx, field) + case "entitlements": + return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) + case "baseFeatures": + return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlan_events(ctx, field) + case "features": + return ec.fieldContext_EntitlementPlan_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_version(ctx, field) +func (ec *executionContext) _Organization_entitlementplanfeatures(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) if err != nil { return graphql.Null } @@ -70045,38 +153878,69 @@ func (ec *executionContext) _EntitlementPlanHistory_version(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.Entitlementplanfeatures(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.EntitlementPlanFeature) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_entitlementplanfeatures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) + case "planID": + return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) + case "featureID": + return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) + case "plan": + return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) + case "feature": + return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistory_metadata(ctx, field) +func (ec *executionContext) _Organization_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_entities(ctx, field) if err != nil { return graphql.Null } @@ -70089,7 +153953,7 @@ func (ec *executionContext) _EntitlementPlanHistory_metadata(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Metadata, nil + return obj.Entities(ctx) }) if err != nil { ec.Error(ctx, err) @@ -70098,26 +153962,70 @@ func (ec *executionContext) _EntitlementPlanHistory_metadata(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.([]*generated.Entity) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistoryConnection_edges(ctx, field) +func (ec *executionContext) _Organization_entitytypes(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_entitytypes(ctx, field) if err != nil { return graphql.Null } @@ -70130,7 +154038,7 @@ func (ec *executionContext) _EntitlementPlanHistoryConnection_edges(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Entitytypes(ctx) }) if err != nil { ec.Error(ctx, err) @@ -70139,32 +154047,52 @@ func (ec *executionContext) _EntitlementPlanHistoryConnection_edges(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntitlementPlanHistoryEdge) + res := resTmp.([]*generated.EntityType) fc.Result = res - return ec.marshalOEntitlementPlanHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryEdge(ctx, field.Selections, res) + return ec.marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_entitytypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistoryConnection", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_EntitlementPlanHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EntitlementPlanHistoryEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Organization_contacts(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_contacts(ctx, field) if err != nil { return graphql.Null } @@ -70177,48 +154105,75 @@ func (ec *executionContext) _EntitlementPlanHistoryConnection_pageInfo(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Contacts(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]*generated.Contact) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistoryConnection", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "id": + return ec.fieldContext_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _Organization_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_notes(ctx, field) if err != nil { return graphql.Null } @@ -70231,38 +154186,63 @@ func (ec *executionContext) _EntitlementPlanHistoryConnection_totalCount(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Notes(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.([]*generated.Note) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistoryConnection", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Note_id(ctx, field) + case "createdAt": + return ec.fieldContext_Note_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Note_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Note_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Note_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Note_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Note_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Note_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Note_ownerID(ctx, field) + case "text": + return ec.fieldContext_Note_text(ctx, field) + case "owner": + return ec.fieldContext_Note_owner(ctx, field) + case "entity": + return ec.fieldContext_Note_entity(ctx, field) + case "subcontrols": + return ec.fieldContext_Note_subcontrols(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistoryEdge_node(ctx, field) +func (ec *executionContext) _Organization_members(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_members(ctx, field) if err != nil { return graphql.Null } @@ -70275,7 +154255,7 @@ func (ec *executionContext) _EntitlementPlanHistoryEdge_node(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Members(ctx) }) if err != nil { ec.Error(ctx, err) @@ -70284,62 +154264,54 @@ func (ec *executionContext) _EntitlementPlanHistoryEdge_node(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.EntitlementPlanHistory) + res := resTmp.([]*generated.OrgMembership) fc.Result = res - return ec.marshalOEntitlementPlanHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistory(ctx, field.Selections, res) + return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_members(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistoryEdge", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_EntitlementPlanHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_EntitlementPlanHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_EntitlementPlanHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_EntitlementPlanHistory_operation(ctx, field) + return ec.fieldContext_OrgMembership_id(ctx, field) case "createdAt": - return ec.fieldContext_EntitlementPlanHistory_createdAt(ctx, field) + return ec.fieldContext_OrgMembership_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_EntitlementPlanHistory_updatedAt(ctx, field) + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_EntitlementPlanHistory_createdBy(ctx, field) + return ec.fieldContext_OrgMembership_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_EntitlementPlanHistory_updatedBy(ctx, field) + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_EntitlementPlanHistory_deletedAt(ctx, field) + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_EntitlementPlanHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlanHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlanHistory_ownerID(ctx, field) - case "displayName": - return ec.fieldContext_EntitlementPlanHistory_displayName(ctx, field) - case "name": - return ec.fieldContext_EntitlementPlanHistory_name(ctx, field) - case "description": - return ec.fieldContext_EntitlementPlanHistory_description(ctx, field) - case "version": - return ec.fieldContext_EntitlementPlanHistory_version(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlanHistory_metadata(ctx, field) + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) + case "events": + return ec.fieldContext_OrgMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntitlementPlanHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _OrganizationBulkCreatePayload_organizations(ctx context.Context, field graphql.CollectedField, obj *OrganizationBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationBulkCreatePayload_organizations(ctx, field) if err != nil { return graphql.Null } @@ -70352,38 +154324,119 @@ func (ec *executionContext) _EntitlementPlanHistoryEdge_cursor(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Organizations, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationBulkCreatePayload_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanHistoryEdge", + Object: "OrganizationBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanSearchResult_entitlementPlans(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanSearchResult_entitlementPlans(ctx, field) +func (ec *executionContext) _OrganizationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -70396,7 +154449,7 @@ func (ec *executionContext) _EntitlementPlanSearchResult_entitlementPlans(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntitlementPlans, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -70405,66 +154458,32 @@ func (ec *executionContext) _EntitlementPlanSearchResult_entitlementPlans(ctx co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntitlementPlan) + res := resTmp.([]*generated.OrganizationEdge) fc.Result = res - return ec.marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanᚄ(ctx, field.Selections, res) + return ec.marshalOOrganizationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanSearchResult_entitlementPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanSearchResult", + Object: "OrganizationConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlan_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) - case "displayName": - return ec.fieldContext_EntitlementPlan_displayName(ctx, field) - case "name": - return ec.fieldContext_EntitlementPlan_name(ctx, field) - case "description": - return ec.fieldContext_EntitlementPlan_description(ctx, field) - case "version": - return ec.fieldContext_EntitlementPlan_version(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlan_metadata(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlan_owner(ctx, field) - case "entitlements": - return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) - case "baseFeatures": - return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlan_events(ctx, field) - case "features": - return ec.fieldContext_EntitlementPlan_features(ctx, field) + case "node": + return ec.fieldContext_OrganizationEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_OrganizationEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementPlanUpdatePayload_entitlementPlan(ctx context.Context, field graphql.CollectedField, obj *EntitlementPlanUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementPlanUpdatePayload_entitlementPlan(ctx, field) +func (ec *executionContext) _OrganizationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -70477,7 +154496,7 @@ func (ec *executionContext) _EntitlementPlanUpdatePayload_entitlementPlan(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntitlementPlan, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -70489,66 +154508,36 @@ func (ec *executionContext) _EntitlementPlanUpdatePayload_entitlementPlan(ctx co } return graphql.Null } - res := resTmp.(*generated.EntitlementPlan) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementPlanUpdatePayload_entitlementPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementPlanUpdatePayload", + Object: "OrganizationConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlan_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) - case "displayName": - return ec.fieldContext_EntitlementPlan_displayName(ctx, field) - case "name": - return ec.fieldContext_EntitlementPlan_name(ctx, field) - case "description": - return ec.fieldContext_EntitlementPlan_description(ctx, field) - case "version": - return ec.fieldContext_EntitlementPlan_version(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlan_metadata(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlan_owner(ctx, field) - case "entitlements": - return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) - case "baseFeatures": - return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlan_events(ctx, field) - case "features": - return ec.fieldContext_EntitlementPlan_features(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntitlementSearchResult_entitlements(ctx context.Context, field graphql.CollectedField, obj *EntitlementSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementSearchResult_entitlements(ctx, field) +func (ec *executionContext) _OrganizationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -70561,77 +154550,38 @@ func (ec *executionContext) _EntitlementSearchResult_entitlements(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entitlements, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Entitlement) + res := resTmp.(int) fc.Result = res - return ec.marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementSearchResult_entitlements(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementSearchResult", + Object: "OrganizationConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entitlement_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entitlement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entitlement_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entitlement_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entitlement_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Entitlement_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Entitlement_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entitlement_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Entitlement_ownerID(ctx, field) - case "planID": - return ec.fieldContext_Entitlement_planID(ctx, field) - case "organizationID": - return ec.fieldContext_Entitlement_organizationID(ctx, field) - case "externalCustomerID": - return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) - case "externalSubscriptionID": - return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) - case "expires": - return ec.fieldContext_Entitlement_expires(ctx, field) - case "expiresAt": - return ec.fieldContext_Entitlement_expiresAt(ctx, field) - case "cancelled": - return ec.fieldContext_Entitlement_cancelled(ctx, field) - case "owner": - return ec.fieldContext_Entitlement_owner(ctx, field) - case "plan": - return ec.fieldContext_Entitlement_plan(ctx, field) - case "organization": - return ec.fieldContext_Entitlement_organization(ctx, field) - case "events": - return ec.fieldContext_Entitlement_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitlementUpdatePayload_entitlement(ctx context.Context, field graphql.CollectedField, obj *EntitlementUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitlementUpdatePayload_entitlement(ctx, field) +func (ec *executionContext) _OrganizationCreatePayload_organization(ctx context.Context, field graphql.CollectedField, obj *OrganizationCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationCreatePayload_organization(ctx, field) if err != nil { return graphql.Null } @@ -70644,7 +154594,7 @@ func (ec *executionContext) _EntitlementUpdatePayload_entitlement(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entitlement, nil + return obj.Organization, nil }) if err != nil { ec.Error(ctx, err) @@ -70656,68 +154606,110 @@ func (ec *executionContext) _EntitlementUpdatePayload_entitlement(ctx context.Co } return graphql.Null } - res := resTmp.(*generated.Entitlement) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalNEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx, field.Selections, res) + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitlementUpdatePayload_entitlement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationCreatePayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitlementUpdatePayload", + Object: "OrganizationCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Entitlement_id(ctx, field) + return ec.fieldContext_Organization_id(ctx, field) case "createdAt": - return ec.fieldContext_Entitlement_createdAt(ctx, field) + return ec.fieldContext_Organization_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Entitlement_updatedAt(ctx, field) + return ec.fieldContext_Organization_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Entitlement_createdBy(ctx, field) + return ec.fieldContext_Organization_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Entitlement_updatedBy(ctx, field) + return ec.fieldContext_Organization_updatedBy(ctx, field) case "tags": - return ec.fieldContext_Entitlement_tags(ctx, field) + return ec.fieldContext_Organization_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Entitlement_deletedAt(ctx, field) + return ec.fieldContext_Organization_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Entitlement_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Entitlement_ownerID(ctx, field) - case "planID": - return ec.fieldContext_Entitlement_planID(ctx, field) - case "organizationID": - return ec.fieldContext_Entitlement_organizationID(ctx, field) - case "externalCustomerID": - return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) - case "externalSubscriptionID": - return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) - case "expires": - return ec.fieldContext_Entitlement_expires(ctx, field) - case "expiresAt": - return ec.fieldContext_Entitlement_expiresAt(ctx, field) - case "cancelled": - return ec.fieldContext_Entitlement_cancelled(ctx, field) - case "owner": - return ec.fieldContext_Entitlement_owner(ctx, field) - case "plan": - return ec.fieldContext_Entitlement_plan(ctx, field) - case "organization": - return ec.fieldContext_Entitlement_organization(ctx, field) + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) case "events": - return ec.fieldContext_Entitlement_events(ctx, field) + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Entity_id(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_id(ctx, field) +func (ec *executionContext) _OrganizationDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OrganizationDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -70730,7 +154722,7 @@ func (ec *executionContext) _Entity_id(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.DeletedID, nil }) if err != nil { ec.Error(ctx, err) @@ -70747,9 +154739,9 @@ func (ec *executionContext) _Entity_id(ctx context.Context, field graphql.Collec return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationDeletePayload", Field: field, IsMethod: false, IsResolver: false, @@ -70760,8 +154752,8 @@ func (ec *executionContext) fieldContext_Entity_id(_ context.Context, field grap return fc, nil } -func (ec *executionContext) _Entity_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_createdAt(ctx, field) +func (ec *executionContext) _OrganizationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -70774,7 +154766,7 @@ func (ec *executionContext) _Entity_createdAt(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -70783,26 +154775,110 @@ func (ec *executionContext) _Entity_createdAt(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Entity_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_updatedAt(ctx, field) +func (ec *executionContext) _OrganizationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -70815,76 +154891,38 @@ func (ec *executionContext) _Entity_updatedAt(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Entity_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entity_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_updatedBy(ctx, field) +func (ec *executionContext) _OrganizationHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -70897,35 +154935,38 @@ func (ec *executionContext) _Entity_updatedBy(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entity_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_deletedAt(ctx, field) +func (ec *executionContext) _OrganizationHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -70938,23 +154979,26 @@ func (ec *executionContext) _Entity_deletedAt(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(time.Time) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -70965,8 +155009,8 @@ func (ec *executionContext) fieldContext_Entity_deletedAt(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Entity_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_deletedBy(ctx, field) +func (ec *executionContext) _OrganizationHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -70979,7 +155023,7 @@ func (ec *executionContext) _Entity_deletedBy(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -70993,9 +155037,9 @@ func (ec *executionContext) _Entity_deletedBy(ctx context.Context, field graphql return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -71006,8 +155050,8 @@ func (ec *executionContext) fieldContext_Entity_deletedBy(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Entity_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_tags(ctx, field) +func (ec *executionContext) _OrganizationHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -71020,35 +155064,38 @@ func (ec *executionContext) _Entity_tags(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type OrganizationHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entity_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_ownerID(ctx, field) +func (ec *executionContext) _OrganizationHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -71061,7 +155108,7 @@ func (ec *executionContext) _Entity_ownerID(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -71070,26 +155117,26 @@ func (ec *executionContext) _Entity_ownerID(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entity_name(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_name(ctx, field) +func (ec *executionContext) _OrganizationHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -71102,7 +155149,7 @@ func (ec *executionContext) _Entity_name(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -71111,26 +155158,26 @@ func (ec *executionContext) _Entity_name(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entity_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_displayName(ctx, field) +func (ec *executionContext) _OrganizationHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -71143,7 +155190,7 @@ func (ec *executionContext) _Entity_displayName(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -71157,9 +155204,9 @@ func (ec *executionContext) _Entity_displayName(ctx context.Context, field graph return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -71170,8 +155217,8 @@ func (ec *executionContext) fieldContext_Entity_displayName(_ context.Context, f return fc, nil } -func (ec *executionContext) _Entity_description(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_description(ctx, field) +func (ec *executionContext) _OrganizationHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -71184,7 +155231,7 @@ func (ec *executionContext) _Entity_description(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -71198,9 +155245,9 @@ func (ec *executionContext) _Entity_description(ctx context.Context, field graph return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -71211,8 +155258,8 @@ func (ec *executionContext) fieldContext_Entity_description(_ context.Context, f return fc, nil } -func (ec *executionContext) _Entity_domains(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_domains(ctx, field) +func (ec *executionContext) _OrganizationHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -71225,7 +155272,7 @@ func (ec *executionContext) _Entity_domains(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Domains, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -71239,9 +155286,9 @@ func (ec *executionContext) _Entity_domains(ctx context.Context, field graphql.C return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -71252,8 +155299,8 @@ func (ec *executionContext) fieldContext_Entity_domains(_ context.Context, field return fc, nil } -func (ec *executionContext) _Entity_entityTypeID(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_entityTypeID(ctx, field) +func (ec *executionContext) _OrganizationHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -71266,7 +155313,7 @@ func (ec *executionContext) _Entity_entityTypeID(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntityTypeID, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -71275,26 +155322,26 @@ func (ec *executionContext) _Entity_entityTypeID(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_entityTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entity_status(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_status(ctx, field) +func (ec *executionContext) _OrganizationHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -71307,7 +155354,7 @@ func (ec *executionContext) _Entity_status(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -71321,9 +155368,9 @@ func (ec *executionContext) _Entity_status(ctx context.Context, field graphql.Co return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -71334,8 +155381,8 @@ func (ec *executionContext) fieldContext_Entity_status(_ context.Context, field return fc, nil } -func (ec *executionContext) _Entity_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_owner(ctx, field) +func (ec *executionContext) _OrganizationHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -71348,200 +155395,38 @@ func (ec *executionContext) _Entity_owner(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Entity_contacts(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_contacts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Contacts(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Contact) + res := resTmp.(string) fc.Result = res - return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entity_documents(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_documents(ctx, field) +func (ec *executionContext) _OrganizationHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_displayName(ctx, field) if err != nil { return graphql.Null } @@ -71554,67 +155439,38 @@ func (ec *executionContext) _Entity_documents(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Documents(ctx) + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.DocumentData) + res := resTmp.(string) fc.Result = res - return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_documents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entity_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_notes(ctx, field) +func (ec *executionContext) _OrganizationHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -71627,7 +155483,7 @@ func (ec *executionContext) _Entity_notes(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Notes(ctx) + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -71636,52 +155492,26 @@ func (ec *executionContext) _Entity_notes(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Note) + res := resTmp.(string) fc.Result = res - return ec.marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Note_id(ctx, field) - case "createdAt": - return ec.fieldContext_Note_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Note_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Note_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Note_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Note_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Note_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Note_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Note_ownerID(ctx, field) - case "text": - return ec.fieldContext_Note_text(ctx, field) - case "owner": - return ec.fieldContext_Note_owner(ctx, field) - case "entity": - return ec.fieldContext_Note_entity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entity_files(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_files(ctx, field) +func (ec *executionContext) _OrganizationHistory_personalOrg(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_personalOrg(ctx, field) if err != nil { return graphql.Null } @@ -71694,7 +155524,7 @@ func (ec *executionContext) _Entity_files(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) + return obj.PersonalOrg, nil }) if err != nil { ec.Error(ctx, err) @@ -71703,90 +155533,26 @@ func (ec *executionContext) _Entity_files(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.(bool) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_personalOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Entity_entityType(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_entityType(ctx, field) +func (ec *executionContext) _OrganizationHistory_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_avatarRemoteURL(ctx, field) if err != nil { return graphql.Null } @@ -71799,7 +155565,7 @@ func (ec *executionContext) _Entity_entityType(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntityType(ctx) + return obj.AvatarRemoteURL, nil }) if err != nil { ec.Error(ctx, err) @@ -71808,52 +155574,26 @@ func (ec *executionContext) _Entity_entityType(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.EntityType) + res := resTmp.(*string) fc.Result = res - return ec.marshalOEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Entity_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Entity", + Object: "OrganizationHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityBulkCreatePayload_entities(ctx context.Context, field graphql.CollectedField, obj *EntityBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityBulkCreatePayload_entities(ctx, field) +func (ec *executionContext) _OrganizationHistory_dedicatedDb(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_dedicatedDb(ctx, field) if err != nil { return graphql.Null } @@ -71866,79 +155606,38 @@ func (ec *executionContext) _EntityBulkCreatePayload_entities(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entities, nil + return obj.DedicatedDb, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Entity) + res := resTmp.(bool) fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityBulkCreatePayload_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_dedicatedDb(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityBulkCreatePayload", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityConnection_edges(ctx, field) +func (ec *executionContext) _OrganizationHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -71960,32 +155659,32 @@ func (ec *executionContext) _EntityConnection_edges(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntityEdge) + res := resTmp.([]*generated.OrganizationHistoryEdge) fc.Result = res - return ec.marshalOEntityEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityEdge(ctx, field.Selections, res) + return ec.marshalOOrganizationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityConnection", + Object: "OrganizationHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_EntityEdge_node(ctx, field) + return ec.fieldContext_OrganizationHistoryEdge_node(ctx, field) case "cursor": - return ec.fieldContext_EntityEdge_cursor(ctx, field) + return ec.fieldContext_OrganizationHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntityEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityConnection_pageInfo(ctx, field) +func (ec *executionContext) _OrganizationHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -72015,9 +155714,9 @@ func (ec *executionContext) _EntityConnection_pageInfo(ctx context.Context, fiel return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityConnection", + Object: "OrganizationHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -72038,8 +155737,8 @@ func (ec *executionContext) fieldContext_EntityConnection_pageInfo(_ context.Con return fc, nil } -func (ec *executionContext) _EntityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityConnection_totalCount(ctx, field) +func (ec *executionContext) _OrganizationHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -72069,9 +155768,9 @@ func (ec *executionContext) _EntityConnection_totalCount(ctx context.Context, fi return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityConnection", + Object: "OrganizationHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -72082,8 +155781,8 @@ func (ec *executionContext) fieldContext_EntityConnection_totalCount(_ context.C return fc, nil } -func (ec *executionContext) _EntityCreatePayload_entity(ctx context.Context, field graphql.CollectedField, obj *EntityCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityCreatePayload_entity(ctx, field) +func (ec *executionContext) _OrganizationHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -72096,82 +155795,71 @@ func (ec *executionContext) _EntityCreatePayload_entity(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entity, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Entity) + res := resTmp.(*generated.OrganizationHistory) fc.Result = res - return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) + return ec.marshalOOrganizationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityCreatePayload_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityCreatePayload", + Object: "OrganizationHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Entity_id(ctx, field) + return ec.fieldContext_OrganizationHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_OrganizationHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_OrganizationHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_OrganizationHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) + return ec.fieldContext_OrganizationHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) + return ec.fieldContext_OrganizationHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) + return ec.fieldContext_OrganizationHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) + return ec.fieldContext_OrganizationHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationHistory_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) + return ec.fieldContext_OrganizationHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) + return ec.fieldContext_OrganizationHistory_deletedBy(ctx, field) case "name": - return ec.fieldContext_Entity_name(ctx, field) + return ec.fieldContext_OrganizationHistory_name(ctx, field) case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) + return ec.fieldContext_OrganizationHistory_displayName(ctx, field) case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) + return ec.fieldContext_OrganizationHistory_description(ctx, field) + case "personalOrg": + return ec.fieldContext_OrganizationHistory_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_OrganizationHistory_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_OrganizationHistory_dedicatedDb(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EntityDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _OrganizationHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -72184,7 +155872,7 @@ func (ec *executionContext) _EntityDeletePayload_deletedID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -72196,26 +155884,26 @@ func (ec *executionContext) _EntityDeletePayload_deletedID(ctx context.Context, } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityDeletePayload", + Object: "OrganizationHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityEdge_node(ctx, field) +func (ec *executionContext) _OrganizationSearchResult_organizations(ctx context.Context, field graphql.CollectedField, obj *OrganizationSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSearchResult_organizations(ctx, field) if err != nil { return graphql.Null } @@ -72228,7 +155916,7 @@ func (ec *executionContext) _EntityEdge_node(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Organizations, nil }) if err != nil { ec.Error(ctx, err) @@ -72237,70 +155925,110 @@ func (ec *executionContext) _EntityEdge_node(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Entity) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSearchResult_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityEdge", + Object: "OrganizationSearchResult", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Entity_id(ctx, field) + return ec.fieldContext_Organization_id(ctx, field) case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) + return ec.fieldContext_Organization_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) + return ec.fieldContext_Organization_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) + return ec.fieldContext_Organization_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) + return ec.fieldContext_Organization_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) + return ec.fieldContext_Organization_deletedBy(ctx, field) case "name": - return ec.fieldContext_Entity_name(ctx, field) + return ec.fieldContext_Organization_name(ctx, field) case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) + return ec.fieldContext_Organization_displayName(ctx, field) case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) + return ec.fieldContext_Organization_contacts(ctx, field) case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityEdge_cursor(ctx, field) +func (ec *executionContext) _OrganizationSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_id(ctx, field) if err != nil { return graphql.Null } @@ -72313,7 +156041,7 @@ func (ec *executionContext) _EntityEdge_cursor(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -72325,26 +156053,26 @@ func (ec *executionContext) _EntityEdge_cursor(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityEdge", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_id(ctx, field) +func (ec *executionContext) _OrganizationSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -72357,38 +156085,35 @@ func (ec *executionContext) _EntityHistory_id(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_historyTime(ctx, field) +func (ec *executionContext) _OrganizationSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -72401,26 +156126,23 @@ func (ec *executionContext) _EntityHistory_historyTime(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(time.Time) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, @@ -72431,8 +156153,8 @@ func (ec *executionContext) fieldContext_EntityHistory_historyTime(_ context.Con return fc, nil } -func (ec *executionContext) _EntityHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_ref(ctx, field) +func (ec *executionContext) _OrganizationSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -72445,7 +156167,7 @@ func (ec *executionContext) _EntityHistory_ref(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -72459,9 +156181,9 @@ func (ec *executionContext) _EntityHistory_ref(ctx context.Context, field graphq return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, @@ -72472,8 +156194,8 @@ func (ec *executionContext) fieldContext_EntityHistory_ref(_ context.Context, fi return fc, nil } -func (ec *executionContext) _EntityHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_operation(ctx, field) +func (ec *executionContext) _OrganizationSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -72486,38 +156208,35 @@ func (ec *executionContext) _EntityHistory_operation(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EntityHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_createdAt(ctx, field) +func (ec *executionContext) _OrganizationSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_tags(ctx, field) if err != nil { return graphql.Null } @@ -72530,7 +156249,7 @@ func (ec *executionContext) _EntityHistory_createdAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -72539,26 +156258,26 @@ func (ec *executionContext) _EntityHistory_createdAt(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_updatedAt(ctx, field) +func (ec *executionContext) _OrganizationSetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -72571,7 +156290,7 @@ func (ec *executionContext) _EntityHistory_updatedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -72585,9 +156304,9 @@ func (ec *executionContext) _EntityHistory_updatedAt(ctx context.Context, field return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, @@ -72598,8 +156317,8 @@ func (ec *executionContext) fieldContext_EntityHistory_updatedAt(_ context.Conte return fc, nil } -func (ec *executionContext) _EntityHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_createdBy(ctx, field) +func (ec *executionContext) _OrganizationSetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -72612,7 +156331,7 @@ func (ec *executionContext) _EntityHistory_createdBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -72626,9 +156345,9 @@ func (ec *executionContext) _EntityHistory_createdBy(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, @@ -72639,8 +156358,8 @@ func (ec *executionContext) fieldContext_EntityHistory_createdBy(_ context.Conte return fc, nil } -func (ec *executionContext) _EntityHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_updatedBy(ctx, field) +func (ec *executionContext) _OrganizationSetting_domains(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_domains(ctx, field) if err != nil { return graphql.Null } @@ -72653,7 +156372,7 @@ func (ec *executionContext) _EntityHistory_updatedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Domains, nil }) if err != nil { ec.Error(ctx, err) @@ -72662,14 +156381,14 @@ func (ec *executionContext) _EntityHistory_updatedBy(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, @@ -72680,8 +156399,8 @@ func (ec *executionContext) fieldContext_EntityHistory_updatedBy(_ context.Conte return fc, nil } -func (ec *executionContext) _EntityHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_deletedAt(ctx, field) +func (ec *executionContext) _OrganizationSetting_billingContact(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_billingContact(ctx, field) if err != nil { return graphql.Null } @@ -72694,7 +156413,7 @@ func (ec *executionContext) _EntityHistory_deletedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.BillingContact, nil }) if err != nil { ec.Error(ctx, err) @@ -72703,26 +156422,26 @@ func (ec *executionContext) _EntityHistory_deletedAt(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_billingContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_deletedBy(ctx, field) +func (ec *executionContext) _OrganizationSetting_billingEmail(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) if err != nil { return graphql.Null } @@ -72735,7 +156454,7 @@ func (ec *executionContext) _EntityHistory_deletedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.BillingEmail, nil }) if err != nil { ec.Error(ctx, err) @@ -72749,9 +156468,9 @@ func (ec *executionContext) _EntityHistory_deletedBy(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_billingEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, @@ -72762,8 +156481,8 @@ func (ec *executionContext) fieldContext_EntityHistory_deletedBy(_ context.Conte return fc, nil } -func (ec *executionContext) _EntityHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_tags(ctx, field) +func (ec *executionContext) _OrganizationSetting_billingPhone(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) if err != nil { return graphql.Null } @@ -72776,7 +156495,7 @@ func (ec *executionContext) _EntityHistory_tags(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.BillingPhone, nil }) if err != nil { ec.Error(ctx, err) @@ -72785,14 +156504,14 @@ func (ec *executionContext) _EntityHistory_tags(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_billingPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, @@ -72803,8 +156522,8 @@ func (ec *executionContext) fieldContext_EntityHistory_tags(_ context.Context, f return fc, nil } -func (ec *executionContext) _EntityHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_ownerID(ctx, field) +func (ec *executionContext) _OrganizationSetting_billingAddress(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) if err != nil { return graphql.Null } @@ -72817,7 +156536,7 @@ func (ec *executionContext) _EntityHistory_ownerID(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.BillingAddress, nil }) if err != nil { ec.Error(ctx, err) @@ -72831,9 +156550,9 @@ func (ec *executionContext) _EntityHistory_ownerID(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, @@ -72844,8 +156563,8 @@ func (ec *executionContext) fieldContext_EntityHistory_ownerID(_ context.Context return fc, nil } -func (ec *executionContext) _EntityHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_name(ctx, field) +func (ec *executionContext) _OrganizationSetting_taxIdentifier(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) if err != nil { return graphql.Null } @@ -72858,7 +156577,7 @@ func (ec *executionContext) _EntityHistory_name(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.TaxIdentifier, nil }) if err != nil { ec.Error(ctx, err) @@ -72872,9 +156591,9 @@ func (ec *executionContext) _EntityHistory_name(ctx context.Context, field graph return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_taxIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, @@ -72885,8 +156604,8 @@ func (ec *executionContext) fieldContext_EntityHistory_name(_ context.Context, f return fc, nil } -func (ec *executionContext) _EntityHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_displayName(ctx, field) +func (ec *executionContext) _OrganizationSetting_geoLocation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) if err != nil { return graphql.Null } @@ -72899,7 +156618,7 @@ func (ec *executionContext) _EntityHistory_displayName(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.GeoLocation, nil }) if err != nil { ec.Error(ctx, err) @@ -72908,26 +156627,26 @@ func (ec *executionContext) _EntityHistory_displayName(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(enums.Region) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_geoLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type OrganizationSettingRegion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_description(ctx, field) +func (ec *executionContext) _OrganizationSetting_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_organizationID(ctx, field) if err != nil { return graphql.Null } @@ -72940,7 +156659,7 @@ func (ec *executionContext) _EntityHistory_description(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.OrganizationID, nil }) if err != nil { ec.Error(ctx, err) @@ -72951,24 +156670,24 @@ func (ec *executionContext) _EntityHistory_description(ctx context.Context, fiel } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityHistory_domains(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_domains(ctx, field) +func (ec *executionContext) _OrganizationSetting_organization(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_organization(ctx, field) if err != nil { return graphql.Null } @@ -72981,7 +156700,7 @@ func (ec *executionContext) _EntityHistory_domains(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Domains, nil + return obj.Organization(ctx) }) if err != nil { ec.Error(ctx, err) @@ -72990,26 +156709,110 @@ func (ec *executionContext) _EntityHistory_domains(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityHistory_entityTypeID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_entityTypeID(ctx, field) +func (ec *executionContext) _OrganizationSetting_files(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_files(ctx, field) if err != nil { return graphql.Null } @@ -73022,7 +156825,7 @@ func (ec *executionContext) _EntityHistory_entityTypeID(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntityTypeID, nil + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) @@ -73031,26 +156834,90 @@ func (ec *executionContext) _EntityHistory_entityTypeID(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_entityTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSetting", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_status(ctx, field) +func (ec *executionContext) _OrganizationSettingBulkCreatePayload_organizationSettings(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field) if err != nil { return graphql.Null } @@ -73063,7 +156930,7 @@ func (ec *executionContext) _EntityHistory_status(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.OrganizationSettings, nil }) if err != nil { ec.Error(ctx, err) @@ -73072,26 +156939,64 @@ func (ec *executionContext) _EntityHistory_status(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.OrganizationSetting) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistory", + Object: "OrganizationSettingBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OrganizationSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistoryConnection_edges(ctx, field) +func (ec *executionContext) _OrganizationSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -73113,32 +157018,32 @@ func (ec *executionContext) _EntityHistoryConnection_edges(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntityHistoryEdge) + res := resTmp.([]*generated.OrganizationSettingEdge) fc.Result = res - return ec.marshalOEntityHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryEdge(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistoryConnection", + Object: "OrganizationSettingConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_EntityHistoryEdge_node(ctx, field) + return ec.fieldContext_OrganizationSettingEdge_node(ctx, field) case "cursor": - return ec.fieldContext_EntityHistoryEdge_cursor(ctx, field) + return ec.fieldContext_OrganizationSettingEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntityHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _OrganizationSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -73168,9 +157073,9 @@ func (ec *executionContext) _EntityHistoryConnection_pageInfo(ctx context.Contex return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistoryConnection", + Object: "OrganizationSettingConnection", Field: field, IsMethod: false, IsResolver: false, @@ -73191,8 +157096,8 @@ func (ec *executionContext) fieldContext_EntityHistoryConnection_pageInfo(_ cont return fc, nil } -func (ec *executionContext) _EntityHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _OrganizationSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -73222,9 +157127,9 @@ func (ec *executionContext) _EntityHistoryConnection_totalCount(ctx context.Cont return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistoryConnection", + Object: "OrganizationSettingConnection", Field: field, IsMethod: false, IsResolver: false, @@ -73235,8 +157140,8 @@ func (ec *executionContext) fieldContext_EntityHistoryConnection_totalCount(_ co return fc, nil } -func (ec *executionContext) _EntityHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistoryEdge_node(ctx, field) +func (ec *executionContext) _OrganizationSettingCreatePayload_organizationSetting(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingCreatePayload_organizationSetting(ctx, field) if err != nil { return graphql.Null } @@ -73249,73 +157154,76 @@ func (ec *executionContext) _EntityHistoryEdge_node(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.OrganizationSetting, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.EntityHistory) + res := resTmp.(*generated.OrganizationSetting) fc.Result = res - return ec.marshalOEntityHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistory(ctx, field.Selections, res) + return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingCreatePayload_organizationSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistoryEdge", + Object: "OrganizationSettingCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_EntityHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_EntityHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_EntityHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_EntityHistory_operation(ctx, field) + return ec.fieldContext_OrganizationSetting_id(ctx, field) case "createdAt": - return ec.fieldContext_EntityHistory_createdAt(ctx, field) + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_EntityHistory_updatedAt(ctx, field) + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_EntityHistory_createdBy(ctx, field) + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_EntityHistory_updatedBy(ctx, field) + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) case "deletedAt": - return ec.fieldContext_EntityHistory_deletedAt(ctx, field) + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_EntityHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityHistory_name(ctx, field) - case "displayName": - return ec.fieldContext_EntityHistory_displayName(ctx, field) - case "description": - return ec.fieldContext_EntityHistory_description(ctx, field) + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) case "domains": - return ec.fieldContext_EntityHistory_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_EntityHistory_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_EntityHistory_status(ctx, field) + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntityHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _OrganizationSettingDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -73328,7 +157236,7 @@ func (ec *executionContext) _EntityHistoryEdge_cursor(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedID, nil }) if err != nil { ec.Error(ctx, err) @@ -73340,26 +157248,26 @@ func (ec *executionContext) _EntityHistoryEdge_cursor(ctx context.Context, field } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistoryEdge", + Object: "OrganizationSettingDeletePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitySearchResult_entities(ctx context.Context, field graphql.CollectedField, obj *EntitySearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitySearchResult_entities(ctx, field) +func (ec *executionContext) _OrganizationSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -73372,7 +157280,7 @@ func (ec *executionContext) _EntitySearchResult_entities(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entities, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -73381,70 +157289,108 @@ func (ec *executionContext) _EntitySearchResult_entities(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Entity) + res := resTmp.(*generated.OrganizationSetting) fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) + return ec.marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitySearchResult_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitySearchResult", + Object: "OrganizationSettingEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Entity_id(ctx, field) + return ec.fieldContext_OrganizationSetting_id(ctx, field) case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) + return ec.fieldContext_OrganizationSetting_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityType_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_id(ctx, field) +func (ec *executionContext) _OrganizationSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSettingEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OrganizationSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -73474,9 +157420,9 @@ func (ec *executionContext) _EntityType_id(ctx context.Context, field graphql.Co return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -73487,8 +157433,8 @@ func (ec *executionContext) fieldContext_EntityType_id(_ context.Context, field return fc, nil } -func (ec *executionContext) _EntityType_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_createdAt(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -73501,23 +157447,26 @@ func (ec *executionContext) _EntityType_createdAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(time.Time) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -73528,8 +157477,8 @@ func (ec *executionContext) fieldContext_EntityType_createdAt(_ context.Context, return fc, nil } -func (ec *executionContext) _EntityType_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_updatedAt(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -73542,7 +157491,7 @@ func (ec *executionContext) _EntityType_updatedAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -73551,26 +157500,26 @@ func (ec *executionContext) _EntityType_updatedAt(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_createdBy(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -73583,35 +157532,38 @@ func (ec *executionContext) _EntityType_createdBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type OrganizationSettingHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_updatedBy(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -73624,7 +157576,7 @@ func (ec *executionContext) _EntityType_updatedBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -73633,26 +157585,26 @@ func (ec *executionContext) _EntityType_updatedBy(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_deletedAt(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -73665,7 +157617,7 @@ func (ec *executionContext) _EntityType_deletedAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -73679,9 +157631,9 @@ func (ec *executionContext) _EntityType_deletedAt(ctx context.Context, field gra return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -73692,8 +157644,8 @@ func (ec *executionContext) fieldContext_EntityType_deletedAt(_ context.Context, return fc, nil } -func (ec *executionContext) _EntityType_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_deletedBy(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -73706,7 +157658,7 @@ func (ec *executionContext) _EntityType_deletedBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -73720,9 +157672,9 @@ func (ec *executionContext) _EntityType_deletedBy(ctx context.Context, field gra return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -73733,8 +157685,49 @@ func (ec *executionContext) fieldContext_EntityType_deletedBy(_ context.Context, return fc, nil } -func (ec *executionContext) _EntityType_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_tags(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OrganizationSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -73761,9 +157754,9 @@ func (ec *executionContext) _EntityType_tags(ctx context.Context, field graphql. return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -73774,8 +157767,8 @@ func (ec *executionContext) fieldContext_EntityType_tags(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _EntityType_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_ownerID(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -73788,7 +157781,7 @@ func (ec *executionContext) _EntityType_ownerID(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -73797,26 +157790,26 @@ func (ec *executionContext) _EntityType_ownerID(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_name(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -73829,26 +157822,23 @@ func (ec *executionContext) _EntityType_name(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -73859,8 +157849,8 @@ func (ec *executionContext) fieldContext_EntityType_name(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _EntityType_owner(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_owner(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_domains(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_domains(ctx, field) if err != nil { return graphql.Null } @@ -73873,7 +157863,7 @@ func (ec *executionContext) _EntityType_owner(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.Domains, nil }) if err != nil { ec.Error(ctx, err) @@ -73882,110 +157872,67 @@ func (ec *executionContext) _EntityType_owner(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.([]string) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "OrganizationSettingHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_entities(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_entities(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_billingContact(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_billingContact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BillingContact, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OrganizationSettingHistory_billingEmail(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_billingEmail(ctx, field) if err != nil { return graphql.Null } @@ -73998,7 +157945,7 @@ func (ec *executionContext) _EntityType_entities(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entities(ctx) + return obj.BillingEmail, nil }) if err != nil { ec.Error(ctx, err) @@ -74007,70 +157954,26 @@ func (ec *executionContext) _EntityType_entities(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Entity) + res := resTmp.(string) fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "OrganizationSettingHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeBulkCreatePayload_entityTypes(ctx context.Context, field graphql.CollectedField, obj *EntityTypeBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeBulkCreatePayload_entityTypes(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_billingPhone(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_billingPhone(ctx, field) if err != nil { return graphql.Null } @@ -74083,7 +157986,7 @@ func (ec *executionContext) _EntityTypeBulkCreatePayload_entityTypes(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntityTypes, nil + return obj.BillingPhone, nil }) if err != nil { ec.Error(ctx, err) @@ -74092,52 +157995,26 @@ func (ec *executionContext) _EntityTypeBulkCreatePayload_entityTypes(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntityType) + res := resTmp.(string) fc.Result = res - return ec.marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeBulkCreatePayload_entityTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeBulkCreatePayload", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeConnection_edges(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_billingAddress(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_billingAddress(ctx, field) if err != nil { return graphql.Null } @@ -74150,7 +158027,7 @@ func (ec *executionContext) _EntityTypeConnection_edges(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.BillingAddress, nil }) if err != nil { ec.Error(ctx, err) @@ -74159,32 +158036,26 @@ func (ec *executionContext) _EntityTypeConnection_edges(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntityTypeEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOEntityTypeEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeConnection", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_EntityTypeEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EntityTypeEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeConnection_pageInfo(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_taxIdentifier(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_taxIdentifier(ctx, field) if err != nil { return graphql.Null } @@ -74197,48 +158068,35 @@ func (ec *executionContext) _EntityTypeConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.TaxIdentifier, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_taxIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeConnection", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeConnection_totalCount(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_geoLocation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_geoLocation(ctx, field) if err != nil { return graphql.Null } @@ -74251,38 +158109,35 @@ func (ec *executionContext) _EntityTypeConnection_totalCount(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.GeoLocation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(enums.Region) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_geoLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeConnection", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type OrganizationSettingHistoryRegion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeCreatePayload_entityType(ctx context.Context, field graphql.CollectedField, obj *EntityTypeCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeCreatePayload_entityType(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_organizationID(ctx, field) if err != nil { return graphql.Null } @@ -74295,64 +158150,35 @@ func (ec *executionContext) _EntityTypeCreatePayload_entityType(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntityType, nil + return obj.OrganizationID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.EntityType) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeCreatePayload_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeCreatePayload", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EntityTypeDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _OrganizationSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -74365,38 +158191,41 @@ func (ec *executionContext) _EntityTypeDeletePayload_deletedID(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.OrganizationSettingHistoryEdge) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeDeletePayload", + Object: "OrganizationSettingHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_OrganizationSettingHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_OrganizationSettingHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityTypeEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeEdge_node(ctx, field) +func (ec *executionContext) _OrganizationSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -74409,61 +158238,48 @@ func (ec *executionContext) _EntityTypeEdge_node(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.EntityType) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeEdge", + Object: "OrganizationSettingHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityTypeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeEdge_cursor(ctx, field) +func (ec *executionContext) _OrganizationSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -74476,7 +158292,7 @@ func (ec *executionContext) _EntityTypeEdge_cursor(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -74488,26 +158304,26 @@ func (ec *executionContext) _EntityTypeEdge_cursor(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(int) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeEdge", + Object: "OrganizationSettingHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_id(ctx, field) +func (ec *executionContext) _OrganizationSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -74520,38 +158336,75 @@ func (ec *executionContext) _EntityTypeHistory_id(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OrganizationSettingHistory) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "OrganizationSettingHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OrganizationSettingHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_OrganizationSettingHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_OrganizationSettingHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_OrganizationSettingHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSettingHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSettingHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSettingHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSettingHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSettingHistory_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSettingHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSettingHistory_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSettingHistory_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSettingHistory_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSettingHistory_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSettingHistory_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSettingHistory_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSettingHistory_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSettingHistory_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSettingHistory_organizationID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_historyTime(ctx, field) +func (ec *executionContext) _OrganizationSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -74564,7 +158417,7 @@ func (ec *executionContext) _EntityTypeHistory_historyTime(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -74576,26 +158429,26 @@ func (ec *executionContext) _EntityTypeHistory_historyTime(ctx context.Context, } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "OrganizationSettingHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_ref(ctx, field) +func (ec *executionContext) _OrganizationSettingSearchResult_organizationSettings(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingSearchResult_organizationSettings(ctx, field) if err != nil { return graphql.Null } @@ -74608,7 +158461,7 @@ func (ec *executionContext) _EntityTypeHistory_ref(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.OrganizationSettings, nil }) if err != nil { ec.Error(ctx, err) @@ -74617,26 +158470,64 @@ func (ec *executionContext) _EntityTypeHistory_ref(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.OrganizationSetting) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingSearchResult_organizationSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "OrganizationSettingSearchResult", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OrganizationSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_operation(ctx, field) +func (ec *executionContext) _OrganizationSettingUpdatePayload_organizationSetting(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingUpdatePayload_organizationSetting(ctx, field) if err != nil { return graphql.Null } @@ -74649,7 +158540,7 @@ func (ec *executionContext) _EntityTypeHistory_operation(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.OrganizationSetting, nil }) if err != nil { ec.Error(ctx, err) @@ -74661,26 +158552,64 @@ func (ec *executionContext) _EntityTypeHistory_operation(ctx context.Context, fi } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(*generated.OrganizationSetting) fc.Result = res - return ec.marshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingUpdatePayload_organizationSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "OrganizationSettingUpdatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EntityTypeHistoryOpType does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OrganizationSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_createdAt(ctx, field) +func (ec *executionContext) _OrganizationUpdatePayload_organization(ctx context.Context, field graphql.CollectedField, obj *OrganizationUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationUpdatePayload_organization(ctx, field) if err != nil { return graphql.Null } @@ -74693,35 +158622,122 @@ func (ec *executionContext) _EntityTypeHistory_createdAt(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Organization, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationUpdatePayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "OrganizationUpdatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_updatedAt(ctx, field) +func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PageInfo_hasNextPage(ctx, field) if err != nil { return graphql.Null } @@ -74734,35 +158750,38 @@ func (ec *executionContext) _EntityTypeHistory_updatedAt(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.HasNextPage, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(bool) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "PageInfo", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_createdBy(ctx, field) +func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) if err != nil { return graphql.Null } @@ -74775,35 +158794,38 @@ func (ec *executionContext) _EntityTypeHistory_createdBy(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.HasPreviousPage, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "PageInfo", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_updatedBy(ctx, field) +func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PageInfo_startCursor(ctx, field) if err != nil { return graphql.Null } @@ -74816,7 +158838,7 @@ func (ec *executionContext) _EntityTypeHistory_updatedBy(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.StartCursor, nil }) if err != nil { ec.Error(ctx, err) @@ -74825,26 +158847,26 @@ func (ec *executionContext) _EntityTypeHistory_updatedBy(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "PageInfo", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_deletedAt(ctx, field) +func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PageInfo_endCursor(ctx, field) if err != nil { return graphql.Null } @@ -74857,7 +158879,7 @@ func (ec *executionContext) _EntityTypeHistory_deletedAt(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.EndCursor, nil }) if err != nil { ec.Error(ctx, err) @@ -74866,26 +158888,26 @@ func (ec *executionContext) _EntityTypeHistory_deletedAt(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*entgql.Cursor[string]) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "PageInfo", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_deletedBy(ctx, field) +func (ec *executionContext) _PersonalAccessToken_id(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_id(ctx, field) if err != nil { return graphql.Null } @@ -74898,35 +158920,38 @@ func (ec *executionContext) _EntityTypeHistory_deletedBy(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_tags(ctx, field) +func (ec *executionContext) _PersonalAccessToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -74939,7 +158964,7 @@ func (ec *executionContext) _EntityTypeHistory_tags(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -74948,26 +158973,26 @@ func (ec *executionContext) _EntityTypeHistory_tags(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_ownerID(ctx, field) +func (ec *executionContext) _PersonalAccessToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -74980,7 +159005,7 @@ func (ec *executionContext) _EntityTypeHistory_ownerID(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -74989,26 +159014,26 @@ func (ec *executionContext) _EntityTypeHistory_ownerID(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_name(ctx, field) +func (ec *executionContext) _PersonalAccessToken_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -75021,26 +159046,23 @@ func (ec *executionContext) _EntityTypeHistory_name(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, @@ -75051,8 +159073,8 @@ func (ec *executionContext) fieldContext_EntityTypeHistory_name(_ context.Contex return fc, nil } -func (ec *executionContext) _EntityTypeHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistoryConnection_edges(ctx, field) +func (ec *executionContext) _PersonalAccessToken_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -75065,7 +159087,7 @@ func (ec *executionContext) _EntityTypeHistoryConnection_edges(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -75074,32 +159096,26 @@ func (ec *executionContext) _EntityTypeHistoryConnection_edges(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntityTypeHistoryEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOEntityTypeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryConnection", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_EntityTypeHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EntityTypeHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeHistoryEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _PersonalAccessToken_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -75112,48 +159128,35 @@ func (ec *executionContext) _EntityTypeHistoryConnection_pageInfo(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryConnection", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _PersonalAccessToken_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -75166,38 +159169,35 @@ func (ec *executionContext) _EntityTypeHistoryConnection_totalCount(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryConnection", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistoryEdge_node(ctx, field) +func (ec *executionContext) _PersonalAccessToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_tags(ctx, field) if err != nil { return graphql.Null } @@ -75210,7 +159210,7 @@ func (ec *executionContext) _EntityTypeHistoryEdge_node(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -75219,54 +159219,26 @@ func (ec *executionContext) _EntityTypeHistoryEdge_node(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.EntityTypeHistory) + res := resTmp.([]string) fc.Result = res - return ec.marshalOEntityTypeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistory(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryEdge", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntityTypeHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_EntityTypeHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_EntityTypeHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_EntityTypeHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_EntityTypeHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityTypeHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityTypeHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityTypeHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityTypeHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityTypeHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityTypeHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityTypeHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityTypeHistory_name(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeHistory", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _PersonalAccessToken_name(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_name(ctx, field) if err != nil { return graphql.Null } @@ -75279,7 +159251,7 @@ func (ec *executionContext) _EntityTypeHistoryEdge_cursor(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -75291,26 +159263,26 @@ func (ec *executionContext) _EntityTypeHistoryEdge_cursor(ctx context.Context, f } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryEdge", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeSearchResult_entityTypes(ctx context.Context, field graphql.CollectedField, obj *EntityTypeSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeSearchResult_entityTypes(ctx, field) +func (ec *executionContext) _PersonalAccessToken_token(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_token(ctx, field) if err != nil { return graphql.Null } @@ -75323,61 +159295,38 @@ func (ec *executionContext) _EntityTypeSearchResult_entityTypes(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntityTypes, nil + return obj.Token, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.EntityType) + res := resTmp.(string) fc.Result = res - return ec.marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeSearchResult_entityTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeSearchResult", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeUpdatePayload_entityType(ctx context.Context, field graphql.CollectedField, obj *EntityTypeUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeUpdatePayload_entityType(ctx, field) +func (ec *executionContext) _PersonalAccessToken_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) if err != nil { return graphql.Null } @@ -75390,64 +159339,35 @@ func (ec *executionContext) _EntityTypeUpdatePayload_entityType(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntityType, nil + return obj.ExpiresAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.EntityType) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeUpdatePayload_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeUpdatePayload", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityUpdatePayload_entity(ctx context.Context, field graphql.CollectedField, obj *EntityUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityUpdatePayload_entity(ctx, field) +func (ec *executionContext) _PersonalAccessToken_description(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_description(ctx, field) if err != nil { return graphql.Null } @@ -75460,82 +159380,35 @@ func (ec *executionContext) _EntityUpdatePayload_entity(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entity, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Entity) + res := resTmp.(*string) fc.Result = res - return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityUpdatePayload_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityUpdatePayload", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_id(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_id(ctx, field) +func (ec *executionContext) _PersonalAccessToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_scopes(ctx, field) if err != nil { return graphql.Null } @@ -75548,38 +159421,35 @@ func (ec *executionContext) _Event_id(ctx context.Context, field graphql.Collect }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Scopes, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } + } + if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_createdAt(ctx, field) +func (ec *executionContext) _PersonalAccessToken_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) if err != nil { return graphql.Null } @@ -75592,7 +159462,7 @@ func (ec *executionContext) _Event_createdAt(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.LastUsedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -75601,14 +159471,14 @@ func (ec *executionContext) _Event_createdAt(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, @@ -75619,8 +159489,8 @@ func (ec *executionContext) fieldContext_Event_createdAt(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Event_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_updatedAt(ctx, field) +func (ec *executionContext) _PersonalAccessToken_owner(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_owner(ctx, field) if err != nil { return graphql.Null } @@ -75633,35 +159503,104 @@ func (ec *executionContext) _Event_updatedAt(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessToken", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_createdBy(ctx, field) +func (ec *executionContext) _PersonalAccessToken_organizations(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_organizations(ctx, field) if err != nil { return graphql.Null } @@ -75674,7 +159613,7 @@ func (ec *executionContext) _Event_createdBy(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Organizations(ctx) }) if err != nil { ec.Error(ctx, err) @@ -75683,26 +159622,110 @@ func (ec *executionContext) _Event_createdBy(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessToken", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_updatedBy(ctx, field) +func (ec *executionContext) _PersonalAccessToken_events(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_events(ctx, field) if err != nil { return graphql.Null } @@ -75715,7 +159738,7 @@ func (ec *executionContext) _Event_updatedBy(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) @@ -75724,26 +159747,82 @@ func (ec *executionContext) _Event_updatedBy(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessToken", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_tags(ctx, field) +func (ec *executionContext) _PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field) if err != nil { return graphql.Null } @@ -75756,7 +159835,7 @@ func (ec *executionContext) _Event_tags(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.PersonalAccessTokens, nil }) if err != nil { ec.Error(ctx, err) @@ -75765,26 +159844,62 @@ func (ec *executionContext) _Event_tags(ctx context.Context, field graphql.Colle if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.([]*generated.PersonalAccessToken) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessTokenBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_eventID(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_eventID(ctx, field) +func (ec *executionContext) _PersonalAccessTokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -75797,7 +159912,7 @@ func (ec *executionContext) _Event_eventID(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EventID, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -75806,26 +159921,32 @@ func (ec *executionContext) _Event_eventID(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.PersonalAccessTokenEdge) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOPersonalAccessTokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_eventID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessTokenConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_PersonalAccessTokenEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_PersonalAccessTokenEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_correlationID(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_correlationID(ctx, field) +func (ec *executionContext) _PersonalAccessTokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -75838,35 +159959,48 @@ func (ec *executionContext) _Event_correlationID(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CorrelationID, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_correlationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessTokenConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_eventType(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_eventType(ctx, field) +func (ec *executionContext) _PersonalAccessTokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -75879,7 +160013,7 @@ func (ec *executionContext) _Event_eventType(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EventType, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -75891,26 +160025,26 @@ func (ec *executionContext) _Event_eventType(ctx context.Context, field graphql. } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_eventType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessTokenConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_metadata(ctx, field) +func (ec *executionContext) _PersonalAccessTokenCreatePayload_personalAccessToken(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenCreatePayload_personalAccessToken(ctx, field) if err != nil { return graphql.Null } @@ -75923,35 +160057,74 @@ func (ec *executionContext) _Event_metadata(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Metadata, nil + return obj.PersonalAccessToken, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(*generated.PersonalAccessToken) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenCreatePayload_personalAccessToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessTokenCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_user(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_user(ctx, field) +func (ec *executionContext) _PersonalAccessTokenDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -75964,97 +160137,38 @@ func (ec *executionContext) _Event_user(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User(ctx) + return obj.DeletedID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.User) + res := resTmp.(string) fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessTokenDeletePayload", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_group(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_group(ctx, field) +func (ec *executionContext) _PersonalAccessTokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -76067,7 +160181,7 @@ func (ec *executionContext) _Event_group(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group(ctx) + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -76076,70 +160190,62 @@ func (ec *executionContext) _Event_group(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(*generated.PersonalAccessToken) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessTokenEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Group_id(ctx, field) + return ec.fieldContext_PersonalAccessToken_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) case "name": - return ec.fieldContext_Group_name(ctx, field) + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_PersonalAccessToken_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_integration(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_integration(ctx, field) +func (ec *executionContext) _PersonalAccessTokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -76152,71 +160258,38 @@ func (ec *executionContext) _Event_integration(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integration(ctx) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Integration) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessTokenEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "oauth2tokens": - return ec.fieldContext_Integration_oauth2tokens(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - case "webhooks": - return ec.fieldContext_Integration_webhooks(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_organization(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_organization(ctx, field) +func (ec *executionContext) _PersonalAccessTokenSearchResult_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(ctx, field) if err != nil { return graphql.Null } @@ -76229,7 +160302,7 @@ func (ec *executionContext) _Event_organization(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization(ctx) + return obj.PersonalAccessTokens, nil }) if err != nil { ec.Error(ctx, err) @@ -76238,110 +160311,62 @@ func (ec *executionContext) _Event_organization(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.([]*generated.PersonalAccessToken) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessTokenSearchResult", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Organization_id(ctx, field) + return ec.fieldContext_PersonalAccessToken_id(ctx, field) case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + return ec.fieldContext_PersonalAccessToken_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_invite(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_invite(ctx, field) +func (ec *executionContext) _PersonalAccessTokenUpdatePayload_personalAccessToken(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenUpdatePayload_personalAccessToken(ctx, field) if err != nil { return graphql.Null } @@ -76354,69 +160379,74 @@ func (ec *executionContext) _Event_invite(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Invite(ctx) + return obj.PersonalAccessToken, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Invite) + res := resTmp.(*generated.PersonalAccessToken) fc.Result = res - return ec.marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx, field.Selections, res) + return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_invite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenUpdatePayload_personalAccessToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "PersonalAccessTokenUpdatePayload", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Invite_id(ctx, field) + return ec.fieldContext_PersonalAccessToken_id(ctx, field) case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) - case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) case "owner": - return ec.fieldContext_Invite_owner(ctx, field) + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) case "events": - return ec.fieldContext_Invite_events(ctx, field) + return ec.fieldContext_PersonalAccessToken_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_feature(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_feature(ctx, field) +func (ec *executionContext) _Procedure_id(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_id(ctx, field) if err != nil { return graphql.Null } @@ -76429,73 +160459,38 @@ func (ec *executionContext) _Event_feature(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Feature(ctx) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Feature) + res := resTmp.(string) fc.Result = res - return ec.marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_feature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Procedure", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Feature_id(ctx, field) - case "createdAt": - return ec.fieldContext_Feature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Feature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Feature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Feature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Feature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Feature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Feature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Feature_ownerID(ctx, field) - case "name": - return ec.fieldContext_Feature_name(ctx, field) - case "displayName": - return ec.fieldContext_Feature_displayName(ctx, field) - case "enabled": - return ec.fieldContext_Feature_enabled(ctx, field) - case "description": - return ec.fieldContext_Feature_description(ctx, field) - case "metadata": - return ec.fieldContext_Feature_metadata(ctx, field) - case "owner": - return ec.fieldContext_Feature_owner(ctx, field) - case "plans": - return ec.fieldContext_Feature_plans(ctx, field) - case "events": - return ec.fieldContext_Feature_events(ctx, field) - case "features": - return ec.fieldContext_Feature_features(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_entitlementplan(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_entitlementplan(ctx, field) +func (ec *executionContext) _Procedure_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -76508,7 +160503,7 @@ func (ec *executionContext) _Event_entitlementplan(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entitlementplan(ctx) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -76517,66 +160512,26 @@ func (ec *executionContext) _Event_entitlementplan(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntitlementPlan) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_entitlementplan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Procedure", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlan_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) - case "displayName": - return ec.fieldContext_EntitlementPlan_displayName(ctx, field) - case "name": - return ec.fieldContext_EntitlementPlan_name(ctx, field) - case "description": - return ec.fieldContext_EntitlementPlan_description(ctx, field) - case "version": - return ec.fieldContext_EntitlementPlan_version(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlan_metadata(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlan_owner(ctx, field) - case "entitlements": - return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) - case "baseFeatures": - return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlan_events(ctx, field) - case "features": - return ec.fieldContext_EntitlementPlan_features(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_entitlementplanfeature(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_entitlementplanfeature(ctx, field) +func (ec *executionContext) _Procedure_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -76589,7 +160544,7 @@ func (ec *executionContext) _Event_entitlementplanfeature(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entitlementplanfeature(ctx) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -76598,60 +160553,67 @@ func (ec *executionContext) _Event_entitlementplanfeature(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntitlementPlanFeature) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_entitlementplanfeature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Procedure", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) - case "planID": - return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) - case "featureID": - return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) - case "plan": - return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) - case "feature": - return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Procedure_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Procedure_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Procedure", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_personalAccessToken(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_personalAccessToken(ctx, field) +func (ec *executionContext) _Procedure_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -76664,7 +160626,7 @@ func (ec *executionContext) _Event_personalAccessToken(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessToken(ctx) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -76673,62 +160635,26 @@ func (ec *executionContext) _Event_personalAccessToken(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.PersonalAccessToken) + res := resTmp.(string) fc.Result = res - return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_personalAccessToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Procedure", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_oauth2token(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_oauth2token(ctx, field) +func (ec *executionContext) _Procedure_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -76741,7 +160667,7 @@ func (ec *executionContext) _Event_oauth2token(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Oauth2token(ctx) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -76750,60 +160676,26 @@ func (ec *executionContext) _Event_oauth2token(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OhAuthTooToken) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOOhAuthTooToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_oauth2token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Procedure", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OhAuthTooToken_id(ctx, field) - case "tags": - return ec.fieldContext_OhAuthTooToken_tags(ctx, field) - case "clientID": - return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) - case "scopes": - return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) - case "nonce": - return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) - case "claimsUserID": - return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) - case "claimsUsername": - return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) - case "claimsEmail": - return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) - case "claimsEmailVerified": - return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) - case "claimsGroups": - return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) - case "claimsPreferredUsername": - return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) - case "connectorID": - return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) - case "connectorData": - return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) - case "lastUsed": - return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) - case "integration": - return ec.fieldContext_OhAuthTooToken_integration(ctx, field) - case "events": - return ec.fieldContext_OhAuthTooToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_hush(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_hush(ctx, field) +func (ec *executionContext) _Procedure_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -76816,7 +160708,7 @@ func (ec *executionContext) _Event_hush(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Hush(ctx) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -76825,56 +160717,26 @@ func (ec *executionContext) _Event_hush(ctx context.Context, field graphql.Colle if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Hush) + res := resTmp.(string) fc.Result = res - return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_hush(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Procedure", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Hush_id(ctx, field) - case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Hush_name(ctx, field) - case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_orgmembership(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_orgmembership(ctx, field) +func (ec *executionContext) _Procedure_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_tags(ctx, field) if err != nil { return graphql.Null } @@ -76887,7 +160749,7 @@ func (ec *executionContext) _Event_orgmembership(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Orgmembership(ctx) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -76896,54 +160758,26 @@ func (ec *executionContext) _Event_orgmembership(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrgMembership) + res := resTmp.([]string) fc.Result = res - return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_orgmembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Procedure", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_groupmembership(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_groupmembership(ctx, field) +func (ec *executionContext) _Procedure_name(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_name(ctx, field) if err != nil { return graphql.Null } @@ -76956,63 +160790,38 @@ func (ec *executionContext) _Event_groupmembership(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Groupmembership(ctx) + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.GroupMembership) + res := resTmp.(string) fc.Result = res - return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_groupmembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Procedure", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_entitlement(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_entitlement(ctx, field) +func (ec *executionContext) _Procedure_description(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_description(ctx, field) if err != nil { return graphql.Null } @@ -77025,7 +160834,7 @@ func (ec *executionContext) _Event_entitlement(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entitlement(ctx) + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -77034,68 +160843,26 @@ func (ec *executionContext) _Event_entitlement(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Entitlement) + res := resTmp.(string) fc.Result = res - return ec.marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_entitlement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Procedure", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entitlement_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entitlement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entitlement_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entitlement_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entitlement_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Entitlement_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Entitlement_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entitlement_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Entitlement_ownerID(ctx, field) - case "planID": - return ec.fieldContext_Entitlement_planID(ctx, field) - case "organizationID": - return ec.fieldContext_Entitlement_organizationID(ctx, field) - case "externalCustomerID": - return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) - case "externalSubscriptionID": - return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) - case "expires": - return ec.fieldContext_Entitlement_expires(ctx, field) - case "expiresAt": - return ec.fieldContext_Entitlement_expiresAt(ctx, field) - case "cancelled": - return ec.fieldContext_Entitlement_cancelled(ctx, field) - case "owner": - return ec.fieldContext_Entitlement_owner(ctx, field) - case "plan": - return ec.fieldContext_Entitlement_plan(ctx, field) - case "organization": - return ec.fieldContext_Entitlement_organization(ctx, field) - case "events": - return ec.fieldContext_Entitlement_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_webhook(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_webhook(ctx, field) +func (ec *executionContext) _Procedure_status(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_status(ctx, field) if err != nil { return graphql.Null } @@ -77108,7 +160875,7 @@ func (ec *executionContext) _Event_webhook(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Webhook(ctx) + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -77117,66 +160884,26 @@ func (ec *executionContext) _Event_webhook(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Webhook) + res := resTmp.(string) fc.Result = res - return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_webhook(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Procedure", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Webhook_id(ctx, field) - case "createdAt": - return ec.fieldContext_Webhook_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Webhook_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Webhook_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Webhook_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Webhook_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Webhook_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Webhook_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Webhook_ownerID(ctx, field) - case "name": - return ec.fieldContext_Webhook_name(ctx, field) - case "description": - return ec.fieldContext_Webhook_description(ctx, field) - case "destinationURL": - return ec.fieldContext_Webhook_destinationURL(ctx, field) - case "enabled": - return ec.fieldContext_Webhook_enabled(ctx, field) - case "failures": - return ec.fieldContext_Webhook_failures(ctx, field) - case "lastError": - return ec.fieldContext_Webhook_lastError(ctx, field) - case "lastResponse": - return ec.fieldContext_Webhook_lastResponse(ctx, field) - case "owner": - return ec.fieldContext_Webhook_owner(ctx, field) - case "events": - return ec.fieldContext_Webhook_events(ctx, field) - case "integrations": - return ec.fieldContext_Webhook_integrations(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_subscriber(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_subscriber(ctx, field) +func (ec *executionContext) _Procedure_procedureType(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_procedureType(ctx, field) if err != nil { return graphql.Null } @@ -77189,7 +160916,7 @@ func (ec *executionContext) _Event_subscriber(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subscriber(ctx) + return obj.ProcedureType, nil }) if err != nil { ec.Error(ctx, err) @@ -77198,60 +160925,26 @@ func (ec *executionContext) _Event_subscriber(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Subscriber) + res := resTmp.(string) fc.Result = res - return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_procedureType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Procedure", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subscriber_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_file(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_file(ctx, field) +func (ec *executionContext) _Procedure_version(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_version(ctx, field) if err != nil { return graphql.Null } @@ -77264,7 +160957,7 @@ func (ec *executionContext) _Event_file(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.File(ctx) + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -77273,90 +160966,26 @@ func (ec *executionContext) _Event_file(ctx context.Context, field graphql.Colle if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.(string) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Procedure", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventBulkCreatePayload_events(ctx context.Context, field graphql.CollectedField, obj *EventBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventBulkCreatePayload_events(ctx, field) +func (ec *executionContext) _Procedure_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_purposeAndScope(ctx, field) if err != nil { return graphql.Null } @@ -77369,7 +160998,7 @@ func (ec *executionContext) _EventBulkCreatePayload_events(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events, nil + return obj.PurposeAndScope, nil }) if err != nil { ec.Error(ctx, err) @@ -77378,82 +161007,26 @@ func (ec *executionContext) _EventBulkCreatePayload_events(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(string) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventBulkCreatePayload_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventBulkCreatePayload", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EventConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventConnection_edges(ctx, field) +func (ec *executionContext) _Procedure_background(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_background(ctx, field) if err != nil { return graphql.Null } @@ -77466,7 +161039,7 @@ func (ec *executionContext) _EventConnection_edges(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Background, nil }) if err != nil { ec.Error(ctx, err) @@ -77475,32 +161048,26 @@ func (ec *executionContext) _EventConnection_edges(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EventEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOEventEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventConnection", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_EventEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EventEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EventConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventConnection_pageInfo(ctx, field) +func (ec *executionContext) _Procedure_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -77513,48 +161080,35 @@ func (ec *executionContext) _EventConnection_pageInfo(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventConnection", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EventConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventConnection_totalCount(ctx, field) +func (ec *executionContext) _Procedure_details(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_details(ctx, field) if err != nil { return graphql.Null } @@ -77567,38 +161121,35 @@ func (ec *executionContext) _EventConnection_totalCount(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventConnection", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventCreatePayload_event(ctx context.Context, field graphql.CollectedField, obj *EventCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventCreatePayload_event(ctx, field) +func (ec *executionContext) _Procedure_control(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_control(ctx, field) if err != nil { return graphql.Null } @@ -77611,94 +161162,91 @@ func (ec *executionContext) _EventCreatePayload_event(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Event, nil + return obj.Control(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Event) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventCreatePayload_event(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventCreatePayload", + Object: "Procedure", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Event_id(ctx, field) + return ec.fieldContext_Control_id(ctx, field) case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) + return ec.fieldContext_Control_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) + return ec.fieldContext_Control_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) + return ec.fieldContext_Control_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EventDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Procedure_internalpolicy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_internalpolicy(ctx, field) if err != nil { return graphql.Null } @@ -77711,38 +161259,77 @@ func (ec *executionContext) _EventDeletePayload_deletedID(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Internalpolicy(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.InternalPolicy) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_internalpolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventDeletePayload", + Object: "Procedure", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_InternalPolicy_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EventEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventEdge_node(ctx, field) +func (ec *executionContext) _Procedure_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_narratives(ctx, field) if err != nil { return graphql.Null } @@ -77755,7 +161342,7 @@ func (ec *executionContext) _EventEdge_node(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Narratives(ctx) }) if err != nil { ec.Error(ctx, err) @@ -77764,82 +161351,60 @@ func (ec *executionContext) _EventEdge_node(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Event) + res := resTmp.([]*generated.Narrative) fc.Result = res - return ec.marshalOEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventEdge", + Object: "Procedure", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Event_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) + return ec.fieldContext_Narrative_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) + return ec.fieldContext_Narrative_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) + return ec.fieldContext_Narrative_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + return ec.fieldContext_Narrative_tags(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "policy": + return ec.fieldContext_Narrative_policy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlobjective": + return ec.fieldContext_Narrative_controlobjective(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EventEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventEdge_cursor(ctx, field) +func (ec *executionContext) _Procedure_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_risks(ctx, field) if err != nil { return graphql.Null } @@ -77852,38 +161417,79 @@ func (ec *executionContext) _EventEdge_cursor(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Risks(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]*generated.Risk) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventEdge", + Object: "Procedure", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Risk_id(ctx, field) + case "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionplans": + return ec.fieldContext_Risk_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_id(ctx, field) +func (ec *executionContext) _ProcedureBulkCreatePayload_procedures(ctx context.Context, field graphql.CollectedField, obj *ProcedureBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureBulkCreatePayload_procedures(ctx, field) if err != nil { return graphql.Null } @@ -77896,38 +161502,79 @@ func (ec *executionContext) _EventHistory_id(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Procedures, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureBulkCreatePayload_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "control": + return ec.fieldContext_Procedure_control(ctx, field) + case "internalpolicy": + return ec.fieldContext_Procedure_internalpolicy(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_historyTime(ctx, field) +func (ec *executionContext) _ProcedureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -77940,38 +161587,41 @@ func (ec *executionContext) _EventHistory_historyTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.ProcedureEdge) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOProcedureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_ProcedureEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ProcedureEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_ref(ctx, field) +func (ec *executionContext) _ProcedureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -77984,35 +161634,48 @@ func (ec *executionContext) _EventHistory_ref(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_operation(ctx, field) +func (ec *executionContext) _ProcedureConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -78025,7 +161688,7 @@ func (ec *executionContext) _EventHistory_operation(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -78037,26 +161700,26 @@ func (ec *executionContext) _EventHistory_operation(ctx context.Context, field g } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(int) fc.Result = res - return ec.marshalNEventHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EventHistoryOpType does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_createdAt(ctx, field) +func (ec *executionContext) _ProcedureCreatePayload_procedure(ctx context.Context, field graphql.CollectedField, obj *ProcedureCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureCreatePayload_procedure(ctx, field) if err != nil { return graphql.Null } @@ -78069,35 +161732,82 @@ func (ec *executionContext) _EventHistory_createdAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Procedure, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.Procedure) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureCreatePayload_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "control": + return ec.fieldContext_Procedure_control(ctx, field) + case "internalpolicy": + return ec.fieldContext_Procedure_internalpolicy(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_updatedAt(ctx, field) +func (ec *executionContext) _ProcedureDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ProcedureDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -78110,35 +161820,38 @@ func (ec *executionContext) _EventHistory_updatedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DeletedID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureDeletePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_createdBy(ctx, field) +func (ec *executionContext) _ProcedureEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -78151,7 +161864,7 @@ func (ec *executionContext) _EventHistory_createdBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -78160,26 +161873,70 @@ func (ec *executionContext) _EventHistory_createdBy(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Procedure) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "control": + return ec.fieldContext_Procedure_control(ctx, field) + case "internalpolicy": + return ec.fieldContext_Procedure_internalpolicy(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_updatedBy(ctx, field) +func (ec *executionContext) _ProcedureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -78192,35 +161949,38 @@ func (ec *executionContext) _EventHistory_updatedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_tags(ctx, field) +func (ec *executionContext) _ProcedureHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -78233,35 +161993,38 @@ func (ec *executionContext) _EventHistory_tags(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistory_eventID(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_eventID(ctx, field) +func (ec *executionContext) _ProcedureHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -78274,35 +162037,38 @@ func (ec *executionContext) _EventHistory_eventID(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EventID, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_eventID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistory_correlationID(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_correlationID(ctx, field) +func (ec *executionContext) _ProcedureHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -78315,7 +162081,7 @@ func (ec *executionContext) _EventHistory_correlationID(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CorrelationID, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -78329,9 +162095,9 @@ func (ec *executionContext) _EventHistory_correlationID(ctx context.Context, fie return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_correlationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -78342,8 +162108,8 @@ func (ec *executionContext) fieldContext_EventHistory_correlationID(_ context.Co return fc, nil } -func (ec *executionContext) _EventHistory_eventType(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_eventType(ctx, field) +func (ec *executionContext) _ProcedureHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -78356,7 +162122,7 @@ func (ec *executionContext) _EventHistory_eventType(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EventType, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -78368,26 +162134,26 @@ func (ec *executionContext) _EventHistory_eventType(ctx context.Context, field g } return graphql.Null } - res := resTmp.(string) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNProcedureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_eventType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ProcedureHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_metadata(ctx, field) +func (ec *executionContext) _ProcedureHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -78400,7 +162166,7 @@ func (ec *executionContext) _EventHistory_metadata(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Metadata, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -78409,26 +162175,26 @@ func (ec *executionContext) _EventHistory_metadata(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistoryConnection_edges(ctx, field) +func (ec *executionContext) _ProcedureHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -78441,7 +162207,7 @@ func (ec *executionContext) _EventHistoryConnection_edges(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -78450,32 +162216,26 @@ func (ec *executionContext) _EventHistoryConnection_edges(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EventHistoryEdge) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEventHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryEdge(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistoryConnection", + Object: "ProcedureHistory", Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_EventHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EventHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventHistoryEdge", field.Name) + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _ProcedureHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -78488,48 +162248,35 @@ func (ec *executionContext) _EventHistoryConnection_pageInfo(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistoryConnection", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _ProcedureHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -78542,38 +162289,35 @@ func (ec *executionContext) _EventHistoryConnection_totalCount(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistoryConnection", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistoryEdge_node(ctx, field) +func (ec *executionContext) _ProcedureHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -78586,7 +162330,7 @@ func (ec *executionContext) _EventHistoryEdge_node(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -78595,54 +162339,26 @@ func (ec *executionContext) _EventHistoryEdge_node(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.EventHistory) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEventHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistory(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistoryEdge", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EventHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_EventHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_EventHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_EventHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_EventHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EventHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EventHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EventHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_EventHistory_tags(ctx, field) - case "eventID": - return ec.fieldContext_EventHistory_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_EventHistory_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_EventHistory_eventType(ctx, field) - case "metadata": - return ec.fieldContext_EventHistory_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventHistory", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _ProcedureHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -78655,38 +162371,35 @@ func (ec *executionContext) _EventHistoryEdge_cursor(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistoryEdge", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventSearchResult_events(ctx context.Context, field graphql.CollectedField, obj *EventSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventSearchResult_events(ctx, field) +func (ec *executionContext) _ProcedureHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -78699,7 +162412,7 @@ func (ec *executionContext) _EventSearchResult_events(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -78708,82 +162421,26 @@ func (ec *executionContext) _EventSearchResult_events(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.([]string) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventSearchResult_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventSearchResult", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventUpdatePayload_event(ctx context.Context, field graphql.CollectedField, obj *EventUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventUpdatePayload_event(ctx, field) +func (ec *executionContext) _ProcedureHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -78796,7 +162453,7 @@ func (ec *executionContext) _EventUpdatePayload_event(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Event, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -78808,82 +162465,26 @@ func (ec *executionContext) _EventUpdatePayload_event(ctx context.Context, field } return graphql.Null } - res := resTmp.(*generated.Event) + res := resTmp.(string) fc.Result = res - return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventUpdatePayload_event(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventUpdatePayload", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Feature_id(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_id(ctx, field) +func (ec *executionContext) _ProcedureHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -78896,38 +162497,35 @@ func (ec *executionContext) _Feature_id(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Feature_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_createdAt(ctx, field) +func (ec *executionContext) _ProcedureHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -78940,7 +162538,7 @@ func (ec *executionContext) _Feature_createdAt(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -78949,26 +162547,26 @@ func (ec *executionContext) _Feature_createdAt(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Feature_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_updatedAt(ctx, field) +func (ec *executionContext) _ProcedureHistory_procedureType(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_procedureType(ctx, field) if err != nil { return graphql.Null } @@ -78981,7 +162579,7 @@ func (ec *executionContext) _Feature_updatedAt(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.ProcedureType, nil }) if err != nil { ec.Error(ctx, err) @@ -78990,26 +162588,26 @@ func (ec *executionContext) _Feature_updatedAt(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_procedureType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Feature_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_createdBy(ctx, field) +func (ec *executionContext) _ProcedureHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_version(ctx, field) if err != nil { return graphql.Null } @@ -79022,7 +162620,7 @@ func (ec *executionContext) _Feature_createdBy(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -79036,9 +162634,9 @@ func (ec *executionContext) _Feature_createdBy(ctx context.Context, field graphq return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -79049,8 +162647,8 @@ func (ec *executionContext) fieldContext_Feature_createdBy(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Feature_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_updatedBy(ctx, field) +func (ec *executionContext) _ProcedureHistory_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_purposeAndScope(ctx, field) if err != nil { return graphql.Null } @@ -79063,7 +162661,7 @@ func (ec *executionContext) _Feature_updatedBy(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.PurposeAndScope, nil }) if err != nil { ec.Error(ctx, err) @@ -79077,9 +162675,9 @@ func (ec *executionContext) _Feature_updatedBy(ctx context.Context, field graphq return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -79090,8 +162688,8 @@ func (ec *executionContext) fieldContext_Feature_updatedBy(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Feature_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_deletedAt(ctx, field) +func (ec *executionContext) _ProcedureHistory_background(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_background(ctx, field) if err != nil { return graphql.Null } @@ -79104,7 +162702,7 @@ func (ec *executionContext) _Feature_deletedAt(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Background, nil }) if err != nil { ec.Error(ctx, err) @@ -79113,26 +162711,26 @@ func (ec *executionContext) _Feature_deletedAt(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Feature_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_deletedBy(ctx, field) +func (ec *executionContext) _ProcedureHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -79145,7 +162743,7 @@ func (ec *executionContext) _Feature_deletedBy(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, err) @@ -79159,9 +162757,9 @@ func (ec *executionContext) _Feature_deletedBy(ctx context.Context, field graphq return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -79172,8 +162770,8 @@ func (ec *executionContext) fieldContext_Feature_deletedBy(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Feature_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_tags(ctx, field) +func (ec *executionContext) _ProcedureHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -79186,7 +162784,7 @@ func (ec *executionContext) _Feature_tags(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -79195,26 +162793,26 @@ func (ec *executionContext) _Feature_tags(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Feature_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_ownerID(ctx, field) +func (ec *executionContext) _ProcedureHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -79227,7 +162825,7 @@ func (ec *executionContext) _Feature_ownerID(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -79236,26 +162834,32 @@ func (ec *executionContext) _Feature_ownerID(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.ProcedureHistoryEdge) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOProcedureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_ownerID(_ 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: "Feature", + Object: "ProcedureHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_ProcedureHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ProcedureHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Feature_name(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_name(ctx, field) +func (ec *executionContext) _ProcedureHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -79268,7 +162872,7 @@ func (ec *executionContext) _Feature_name(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -79280,26 +162884,36 @@ func (ec *executionContext) _Feature_name(ctx context.Context, field graphql.Col } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_name(_ 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: "Feature", + Object: "ProcedureHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Feature_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_displayName(ctx, field) +func (ec *executionContext) _ProcedureHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -79312,35 +162926,38 @@ func (ec *executionContext) _Feature_displayName(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "ProcedureHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Feature_enabled(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_enabled(ctx, field) +func (ec *executionContext) _ProcedureHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -79353,38 +162970,77 @@ func (ec *executionContext) _Feature_enabled(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Enabled, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(*generated.ProcedureHistory) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOProcedureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_enabled(_ 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: "Feature", + Object: "ProcedureHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_ProcedureHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_ProcedureHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_ProcedureHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_ProcedureHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_ProcedureHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ProcedureHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ProcedureHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ProcedureHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ProcedureHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ProcedureHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ProcedureHistory_tags(ctx, field) + case "name": + return ec.fieldContext_ProcedureHistory_name(ctx, field) + case "description": + return ec.fieldContext_ProcedureHistory_description(ctx, field) + case "status": + return ec.fieldContext_ProcedureHistory_status(ctx, field) + case "procedureType": + return ec.fieldContext_ProcedureHistory_procedureType(ctx, field) + case "version": + return ec.fieldContext_ProcedureHistory_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_ProcedureHistory_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_ProcedureHistory_background(ctx, field) + case "satisfies": + return ec.fieldContext_ProcedureHistory_satisfies(ctx, field) + case "details": + return ec.fieldContext_ProcedureHistory_details(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _Feature_description(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_description(ctx, field) +func (ec *executionContext) _ProcedureHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -79397,35 +163053,38 @@ func (ec *executionContext) _Feature_description(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "ProcedureHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Feature_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_metadata(ctx, field) +func (ec *executionContext) _ProcedureSearchResult_procedures(ctx context.Context, field graphql.CollectedField, obj *ProcedureSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureSearchResult_procedures(ctx, field) if err != nil { return graphql.Null } @@ -79438,7 +163097,7 @@ func (ec *executionContext) _Feature_metadata(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Metadata, nil + return obj.Procedures, nil }) if err != nil { ec.Error(ctx, err) @@ -79447,26 +163106,70 @@ func (ec *executionContext) _Feature_metadata(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureSearchResult_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "ProcedureSearchResult", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "control": + return ec.fieldContext_Procedure_control(ctx, field) + case "internalpolicy": + return ec.fieldContext_Procedure_internalpolicy(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _Feature_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_owner(ctx, field) +func (ec *executionContext) _ProcedureUpdatePayload_procedure(ctx context.Context, field graphql.CollectedField, obj *ProcedureUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureUpdatePayload_procedure(ctx, field) if err != nil { return graphql.Null } @@ -79479,119 +163182,82 @@ func (ec *executionContext) _Feature_owner(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.Procedure, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(*generated.Procedure) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureUpdatePayload_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "ProcedureUpdatePayload", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Organization_id(ctx, field) + return ec.fieldContext_Procedure_id(ctx, field) case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) + return ec.fieldContext_Procedure_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) + return ec.fieldContext_Procedure_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) + return ec.fieldContext_Procedure_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) + return ec.fieldContext_Procedure_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) + return ec.fieldContext_Procedure_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) + return ec.fieldContext_Procedure_name(ctx, field) case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "control": + return ec.fieldContext_Procedure_control(ctx, field) + case "internalpolicy": + return ec.fieldContext_Procedure_internalpolicy(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _Feature_plans(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_plans(ctx, field) +func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_node(ctx, field) if err != nil { return graphql.Null } @@ -79604,7 +163270,7 @@ func (ec *executionContext) _Feature_plans(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Plans(ctx) + return ec.resolvers.Query().Node(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -79613,66 +163279,37 @@ func (ec *executionContext) _Feature_plans(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntitlementPlan) + res := resTmp.(generated.Noder) fc.Result = res - return ec.marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanᚄ(ctx, field.Selections, res) + return ec.marshalONode2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_plans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlan_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) - case "displayName": - return ec.fieldContext_EntitlementPlan_displayName(ctx, field) - case "name": - return ec.fieldContext_EntitlementPlan_name(ctx, field) - case "description": - return ec.fieldContext_EntitlementPlan_description(ctx, field) - case "version": - return ec.fieldContext_EntitlementPlan_version(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlan_metadata(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlan_owner(ctx, field) - case "entitlements": - return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) - case "baseFeatures": - return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlan_events(ctx, field) - case "features": - return ec.fieldContext_EntitlementPlan_features(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) + 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) _Feature_events(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_events(ctx, field) +func (ec *executionContext) _Query_nodes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_nodes(ctx, field) if err != nil { return graphql.Null } @@ -79685,91 +163322,112 @@ func (ec *executionContext) _Feature_events(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return ec.resolvers.Query().Nodes(rctx, fc.Args["ids"].([]string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.([]generated.Noder) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalNNode2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + 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_apiTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_apiTokens(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().APITokens(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.APITokenWhereInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.APITokenConnection) + fc.Result = res + return ec.marshalNAPITokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_apiTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + case "edges": + return ec.fieldContext_APITokenConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_APITokenConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_APITokenConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, fmt.Errorf("no field named %q was found under type APITokenConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_apiTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Feature_features(ctx context.Context, field graphql.CollectedField, obj *generated.Feature) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Feature_features(ctx, field) +func (ec *executionContext) _Query_actionPlans(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_actionPlans(ctx, field) if err != nil { return graphql.Null } @@ -79782,69 +163440,57 @@ func (ec *executionContext) _Feature_features(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Features(ctx) + return ec.resolvers.Query().ActionPlans(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ActionPlanWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.EntitlementPlanFeature) + res := resTmp.(*generated.ActionPlanConnection) fc.Result = res - return ec.marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx, field.Selections, res) + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Feature_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Feature", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) - case "planID": - return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) - case "featureID": - return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) - case "plan": - return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) - case "feature": - return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + case "edges": + return ec.fieldContext_ActionPlanConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ActionPlanConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ActionPlanConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ActionPlanConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureBulkCreatePayload_features(ctx context.Context, field graphql.CollectedField, obj *FeatureBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureBulkCreatePayload_features(ctx, field) +func (ec *executionContext) _Query_actionPlanHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_actionPlanHistories(ctx, field) if err != nil { return graphql.Null } @@ -79857,73 +163503,57 @@ func (ec *executionContext) _FeatureBulkCreatePayload_features(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Features, nil + return ec.resolvers.Query().ActionPlanHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ActionPlanHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Feature) + res := resTmp.(*generated.ActionPlanHistoryConnection) fc.Result = res - return ec.marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureᚄ(ctx, field.Selections, res) + return ec.marshalNActionPlanHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureBulkCreatePayload_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_actionPlanHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureBulkCreatePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Feature_id(ctx, field) - case "createdAt": - return ec.fieldContext_Feature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Feature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Feature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Feature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Feature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Feature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Feature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Feature_ownerID(ctx, field) - case "name": - return ec.fieldContext_Feature_name(ctx, field) - case "displayName": - return ec.fieldContext_Feature_displayName(ctx, field) - case "enabled": - return ec.fieldContext_Feature_enabled(ctx, field) - case "description": - return ec.fieldContext_Feature_description(ctx, field) - case "metadata": - return ec.fieldContext_Feature_metadata(ctx, field) - case "owner": - return ec.fieldContext_Feature_owner(ctx, field) - case "plans": - return ec.fieldContext_Feature_plans(ctx, field) - case "events": - return ec.fieldContext_Feature_events(ctx, field) - case "features": - return ec.fieldContext_Feature_features(ctx, field) + case "edges": + return ec.fieldContext_ActionPlanHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ActionPlanHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ActionPlanHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ActionPlanHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_actionPlanHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureConnection_edges(ctx, field) +func (ec *executionContext) _Query_contacts(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_contacts(ctx, field) if err != nil { return graphql.Null } @@ -79936,41 +163566,57 @@ func (ec *executionContext) _FeatureConnection_edges(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return ec.resolvers.Query().Contacts(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ContactWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.FeatureEdge) + res := resTmp.(*generated.ContactConnection) fc.Result = res - return ec.marshalOFeatureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureEdge(ctx, field.Selections, res) + return ec.marshalNContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_contacts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_FeatureEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_FeatureEdge_cursor(ctx, field) + case "edges": + return ec.fieldContext_ContactConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ContactConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ContactConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FeatureEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ContactConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureConnection_pageInfo(ctx, field) +func (ec *executionContext) _Query_contactHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_contactHistories(ctx, field) if err != nil { return graphql.Null } @@ -79983,7 +163629,7 @@ func (ec *executionContext) _FeatureConnection_pageInfo(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return ec.resolvers.Query().ContactHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ContactHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -79995,36 +163641,45 @@ func (ec *executionContext) _FeatureConnection_pageInfo(ctx context.Context, fie } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*generated.ContactHistoryConnection) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNContactHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_contactHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "edges": + return ec.fieldContext_ContactHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ContactHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ContactHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ContactHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_contactHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureConnection_totalCount(ctx, field) +func (ec *executionContext) _Query_controls(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controls(ctx, field) if err != nil { return graphql.Null } @@ -80037,7 +163692,7 @@ func (ec *executionContext) _FeatureConnection_totalCount(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return ec.resolvers.Query().Controls(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ControlWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -80049,26 +163704,45 @@ func (ec *executionContext) _FeatureConnection_totalCount(ctx context.Context, f } return graphql.Null } - res := resTmp.(int) + res := resTmp.(*generated.ControlConnection) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_ControlConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ControlConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ControlConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureCreatePayload_feature(ctx context.Context, field graphql.CollectedField, obj *FeatureCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureCreatePayload_feature(ctx, field) +func (ec *executionContext) _Query_controlHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controlHistories(ctx, field) if err != nil { return graphql.Null } @@ -80081,7 +163755,7 @@ func (ec *executionContext) _FeatureCreatePayload_feature(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Feature, nil + return ec.resolvers.Query().ControlHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ControlHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -80093,64 +163767,45 @@ func (ec *executionContext) _FeatureCreatePayload_feature(ctx context.Context, f } return graphql.Null } - res := resTmp.(*generated.Feature) + res := resTmp.(*generated.ControlHistoryConnection) fc.Result = res - return ec.marshalNFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx, field.Selections, res) + return ec.marshalNControlHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureCreatePayload_feature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureCreatePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Feature_id(ctx, field) - case "createdAt": - return ec.fieldContext_Feature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Feature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Feature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Feature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Feature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Feature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Feature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Feature_ownerID(ctx, field) - case "name": - return ec.fieldContext_Feature_name(ctx, field) - case "displayName": - return ec.fieldContext_Feature_displayName(ctx, field) - case "enabled": - return ec.fieldContext_Feature_enabled(ctx, field) - case "description": - return ec.fieldContext_Feature_description(ctx, field) - case "metadata": - return ec.fieldContext_Feature_metadata(ctx, field) - case "owner": - return ec.fieldContext_Feature_owner(ctx, field) - case "plans": - return ec.fieldContext_Feature_plans(ctx, field) - case "events": - return ec.fieldContext_Feature_events(ctx, field) - case "features": - return ec.fieldContext_Feature_features(ctx, field) + case "edges": + return ec.fieldContext_ControlHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ControlHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ControlHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_controlHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *FeatureDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Query_controlObjectives(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controlObjectives(ctx, field) if err != nil { return graphql.Null } @@ -80163,7 +163818,7 @@ func (ec *executionContext) _FeatureDeletePayload_deletedID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return ec.resolvers.Query().ControlObjectives(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -80175,26 +163830,45 @@ func (ec *executionContext) _FeatureDeletePayload_deletedID(ctx context.Context, } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.ControlObjectiveConnection) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlObjectives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureDeletePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_ControlObjectiveConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ControlObjectiveConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ControlObjectiveConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureEdge_node(ctx, field) +func (ec *executionContext) _Query_controlObjectiveHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controlObjectiveHistories(ctx, field) if err != nil { return graphql.Null } @@ -80207,73 +163881,57 @@ func (ec *executionContext) _FeatureEdge_node(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return ec.resolvers.Query().ControlObjectiveHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ControlObjectiveHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.Feature) + res := resTmp.(*generated.ControlObjectiveHistoryConnection) fc.Result = res - return ec.marshalOFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx, field.Selections, res) + return ec.marshalNControlObjectiveHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlObjectiveHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Feature_id(ctx, field) - case "createdAt": - return ec.fieldContext_Feature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Feature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Feature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Feature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Feature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Feature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Feature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Feature_ownerID(ctx, field) - case "name": - return ec.fieldContext_Feature_name(ctx, field) - case "displayName": - return ec.fieldContext_Feature_displayName(ctx, field) - case "enabled": - return ec.fieldContext_Feature_enabled(ctx, field) - case "description": - return ec.fieldContext_Feature_description(ctx, field) - case "metadata": - return ec.fieldContext_Feature_metadata(ctx, field) - case "owner": - return ec.fieldContext_Feature_owner(ctx, field) - case "plans": - return ec.fieldContext_Feature_plans(ctx, field) - case "events": - return ec.fieldContext_Feature_events(ctx, field) - case "features": - return ec.fieldContext_Feature_features(ctx, field) + case "edges": + return ec.fieldContext_ControlObjectiveHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ControlObjectiveHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ControlObjectiveHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveHistoryConnection", field.Name) }, } + defer func() { + if 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_controlObjectiveHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureEdge_cursor(ctx, field) +func (ec *executionContext) _Query_documentDataSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_documentDataSlice(ctx, field) if err != nil { return graphql.Null } @@ -80286,7 +163944,7 @@ func (ec *executionContext) _FeatureEdge_cursor(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return ec.resolvers.Query().DocumentDataSlice(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.DocumentDataWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -80298,26 +163956,45 @@ func (ec *executionContext) _FeatureEdge_cursor(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*generated.DocumentDataConnection) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNDocumentDataConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_documentDataSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_DocumentDataConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_DocumentDataConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_DocumentDataConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_documentDataSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_id(ctx, field) +func (ec *executionContext) _Query_documentDataHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_documentDataHistories(ctx, field) if err != nil { return graphql.Null } @@ -80330,7 +164007,7 @@ func (ec *executionContext) _FeatureHistory_id(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return ec.resolvers.Query().DocumentDataHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.DocumentDataHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -80342,26 +164019,45 @@ func (ec *executionContext) _FeatureHistory_id(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.DocumentDataHistoryConnection) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNDocumentDataHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_documentDataHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_DocumentDataHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_DocumentDataHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_DocumentDataHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_documentDataHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_historyTime(ctx, field) +func (ec *executionContext) _Query_entitlements(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitlements(ctx, field) if err != nil { return graphql.Null } @@ -80374,7 +164070,7 @@ func (ec *executionContext) _FeatureHistory_historyTime(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return ec.resolvers.Query().Entitlements(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EntitlementWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -80386,26 +164082,45 @@ func (ec *executionContext) _FeatureHistory_historyTime(ctx context.Context, fie } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.EntitlementConnection) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNEntitlementConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitlements(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_EntitlementConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntitlementConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntitlementConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementConnection", field.Name) }, } + defer func() { + if 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_entitlements_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_ref(ctx, field) +func (ec *executionContext) _Query_entitlementHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitlementHistories(ctx, field) if err != nil { return graphql.Null } @@ -80418,35 +164133,57 @@ func (ec *executionContext) _FeatureHistory_ref(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return ec.resolvers.Query().EntitlementHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EntitlementHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.EntitlementHistoryConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNEntitlementHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitlementHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_EntitlementHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntitlementHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntitlementHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementHistoryConnection", field.Name) }, } + defer func() { + if 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_entitlementHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_operation(ctx, field) +func (ec *executionContext) _Query_entitlementPlans(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitlementPlans(ctx, field) if err != nil { return graphql.Null } @@ -80459,7 +164196,7 @@ func (ec *executionContext) _FeatureHistory_operation(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return ec.resolvers.Query().EntitlementPlans(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EntitlementPlanWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -80471,26 +164208,45 @@ func (ec *executionContext) _FeatureHistory_operation(ctx context.Context, field } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(*generated.EntitlementPlanConnection) fc.Result = res - return ec.marshalNFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNEntitlementPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitlementPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FeatureHistoryOpType does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_EntitlementPlanConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntitlementPlanConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntitlementPlanConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanConnection", field.Name) }, } + defer func() { + if 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_entitlementPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_createdAt(ctx, field) +func (ec *executionContext) _Query_entitlementPlanFeatures(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitlementPlanFeatures(ctx, field) if err != nil { return graphql.Null } @@ -80503,35 +164259,57 @@ func (ec *executionContext) _FeatureHistory_createdAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return ec.resolvers.Query().EntitlementPlanFeatures(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EntitlementPlanFeatureWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.EntitlementPlanFeatureConnection) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNEntitlementPlanFeatureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitlementPlanFeatures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_EntitlementPlanFeatureConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntitlementPlanFeatureConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntitlementPlanFeatureConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureConnection", field.Name) }, } + defer func() { + if 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_entitlementPlanFeatures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_updatedAt(ctx, field) +func (ec *executionContext) _Query_entitlementPlanFeatureHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitlementPlanFeatureHistories(ctx, field) if err != nil { return graphql.Null } @@ -80544,35 +164322,57 @@ func (ec *executionContext) _FeatureHistory_updatedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return ec.resolvers.Query().EntitlementPlanFeatureHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EntitlementPlanFeatureHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.EntitlementPlanFeatureHistoryConnection) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNEntitlementPlanFeatureHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitlementPlanFeatureHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_EntitlementPlanFeatureHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntitlementPlanFeatureHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntitlementPlanFeatureHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureHistoryConnection", field.Name) }, } + defer func() { + if 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_entitlementPlanFeatureHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_createdBy(ctx, field) +func (ec *executionContext) _Query_entitlementPlanHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitlementPlanHistories(ctx, field) if err != nil { return graphql.Null } @@ -80585,35 +164385,57 @@ func (ec *executionContext) _FeatureHistory_createdBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return ec.resolvers.Query().EntitlementPlanHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EntitlementPlanHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.EntitlementPlanHistoryConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNEntitlementPlanHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitlementPlanHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_EntitlementPlanHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntitlementPlanHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntitlementPlanHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanHistoryConnection", field.Name) }, } + defer func() { + if 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_entitlementPlanHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_updatedBy(ctx, field) +func (ec *executionContext) _Query_entities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entities(ctx, field) if err != nil { return graphql.Null } @@ -80626,35 +164448,57 @@ func (ec *executionContext) _FeatureHistory_updatedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return ec.resolvers.Query().Entities(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.EntityConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_EntityConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntityConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntityConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_deletedAt(ctx, field) +func (ec *executionContext) _Query_entityHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entityHistories(ctx, field) if err != nil { return graphql.Null } @@ -80667,35 +164511,57 @@ func (ec *executionContext) _FeatureHistory_deletedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return ec.resolvers.Query().EntityHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityHistoryOrder), fc.Args["where"].(*generated.EntityHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.EntityHistoryConnection) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNEntityHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entityHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_EntityHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntityHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntityHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_entityHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_deletedBy(ctx, field) +func (ec *executionContext) _Query_entityTypes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entityTypes(ctx, field) if err != nil { return graphql.Null } @@ -80708,35 +164574,57 @@ func (ec *executionContext) _FeatureHistory_deletedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return ec.resolvers.Query().EntityTypes(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityTypeOrder), fc.Args["where"].(*generated.EntityTypeWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.EntityTypeConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNEntityTypeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entityTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_EntityTypeConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntityTypeConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntityTypeConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_entityTypes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_tags(ctx, field) +func (ec *executionContext) _Query_entityTypeHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entityTypeHistories(ctx, field) if err != nil { return graphql.Null } @@ -80749,35 +164637,57 @@ func (ec *executionContext) _FeatureHistory_tags(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return ec.resolvers.Query().EntityTypeHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityTypeHistoryOrder), fc.Args["where"].(*generated.EntityTypeHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*generated.EntityTypeHistoryConnection) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNEntityTypeHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entityTypeHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_EntityTypeHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntityTypeHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntityTypeHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_entityTypeHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_ownerID(ctx, field) +func (ec *executionContext) _Query_events(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_events(ctx, field) if err != nil { return graphql.Null } @@ -80790,35 +164700,57 @@ func (ec *executionContext) _FeatureHistory_ownerID(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return ec.resolvers.Query().Events(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EventWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.EventConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_EventConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EventConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EventConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_name(ctx, field) +func (ec *executionContext) _Query_eventHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_eventHistories(ctx, field) if err != nil { return graphql.Null } @@ -80831,7 +164763,7 @@ func (ec *executionContext) _FeatureHistory_name(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return ec.resolvers.Query().EventHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EventHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -80843,26 +164775,45 @@ func (ec *executionContext) _FeatureHistory_name(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.EventHistoryConnection) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNEventHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_eventHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_EventHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EventHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EventHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_eventHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_displayName(ctx, field) +func (ec *executionContext) _Query_features(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_features(ctx, field) if err != nil { return graphql.Null } @@ -80875,35 +164826,57 @@ func (ec *executionContext) _FeatureHistory_displayName(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return ec.resolvers.Query().Features(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.FeatureWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.FeatureConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNFeatureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_features(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_FeatureConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_FeatureConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_FeatureConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FeatureConnection", field.Name) }, } + defer func() { + if 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_features_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_enabled(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_enabled(ctx, field) +func (ec *executionContext) _Query_featureHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_featureHistories(ctx, field) if err != nil { return graphql.Null } @@ -80916,7 +164889,7 @@ func (ec *executionContext) _FeatureHistory_enabled(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Enabled, nil + return ec.resolvers.Query().FeatureHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.FeatureHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -80928,26 +164901,45 @@ func (ec *executionContext) _FeatureHistory_enabled(ctx context.Context, field g } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(*generated.FeatureHistoryConnection) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNFeatureHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_featureHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_FeatureHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_FeatureHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_FeatureHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FeatureHistoryConnection", field.Name) }, } + defer func() { + if 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_featureHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_description(ctx, field) +func (ec *executionContext) _Query_files(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_files(ctx, field) if err != nil { return graphql.Null } @@ -80960,35 +164952,57 @@ func (ec *executionContext) _FeatureHistory_description(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return ec.resolvers.Query().Files(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.FileWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*generated.FileConnection) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_FileConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_FileConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_FileConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FileConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistory_metadata(ctx, field) +func (ec *executionContext) _Query_fileHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_fileHistories(ctx, field) if err != nil { return graphql.Null } @@ -81001,35 +165015,57 @@ func (ec *executionContext) _FeatureHistory_metadata(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Metadata, nil + return ec.resolvers.Query().FileHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.FileHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(*generated.FileHistoryConnection) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalNFileHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_fileHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_FileHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_FileHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_FileHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FileHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_fileHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistoryConnection_edges(ctx, field) +func (ec *executionContext) _Query_groups(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groups(ctx, field) if err != nil { return graphql.Null } @@ -81042,41 +165078,57 @@ func (ec *executionContext) _FeatureHistoryConnection_edges(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return ec.resolvers.Query().Groups(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.FeatureHistoryEdge) + res := resTmp.(*generated.GroupConnection) fc.Result = res - return ec.marshalOFeatureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryEdge(ctx, field.Selections, res) + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistoryConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_FeatureHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_FeatureHistoryEdge_cursor(ctx, field) + case "edges": + return ec.fieldContext_GroupConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GroupConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GroupConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FeatureHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Query_groupHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupHistories(ctx, field) if err != nil { return graphql.Null } @@ -81089,7 +165141,7 @@ func (ec *executionContext) _FeatureHistoryConnection_pageInfo(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return ec.resolvers.Query().GroupHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.GroupHistoryOrder), fc.Args["where"].(*generated.GroupHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -81101,36 +165153,45 @@ func (ec *executionContext) _FeatureHistoryConnection_pageInfo(ctx context.Conte } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*generated.GroupHistoryConnection) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNGroupHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistoryConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "edges": + return ec.fieldContext_GroupHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GroupHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GroupHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_groupHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _Query_groupMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupMemberships(ctx, field) if err != nil { return graphql.Null } @@ -81143,7 +165204,7 @@ func (ec *executionContext) _FeatureHistoryConnection_totalCount(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return ec.resolvers.Query().GroupMemberships(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupMembershipWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -81155,26 +165216,45 @@ func (ec *executionContext) _FeatureHistoryConnection_totalCount(ctx context.Con } return graphql.Null } - res := resTmp.(int) + res := resTmp.(*generated.GroupMembershipConnection) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNGroupMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistoryConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_GroupMembershipConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GroupMembershipConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GroupMembershipConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_groupMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistoryEdge_node(ctx, field) +func (ec *executionContext) _Query_groupMembershipHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupMembershipHistories(ctx, field) if err != nil { return graphql.Null } @@ -81187,71 +165267,57 @@ func (ec *executionContext) _FeatureHistoryEdge_node(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return ec.resolvers.Query().GroupMembershipHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupMembershipHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.FeatureHistory) + res := resTmp.(*generated.GroupMembershipHistoryConnection) fc.Result = res - return ec.marshalOFeatureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistory(ctx, field.Selections, res) + return ec.marshalNGroupMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupMembershipHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistoryEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_FeatureHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_FeatureHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_FeatureHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_FeatureHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_FeatureHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_FeatureHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_FeatureHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_FeatureHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_FeatureHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_FeatureHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_FeatureHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_FeatureHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_FeatureHistory_name(ctx, field) - case "displayName": - return ec.fieldContext_FeatureHistory_displayName(ctx, field) - case "enabled": - return ec.fieldContext_FeatureHistory_enabled(ctx, field) - case "description": - return ec.fieldContext_FeatureHistory_description(ctx, field) - case "metadata": - return ec.fieldContext_FeatureHistory_metadata(ctx, field) + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "edges": + return ec.fieldContext_GroupMembershipHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GroupMembershipHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GroupMembershipHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FeatureHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_groupMembershipHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.FeatureHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _Query_groupSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupSettings(ctx, field) if err != nil { return graphql.Null } @@ -81264,7 +165330,7 @@ func (ec *executionContext) _FeatureHistoryEdge_cursor(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return ec.resolvers.Query().GroupSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupSettingWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -81276,26 +165342,45 @@ func (ec *executionContext) _FeatureHistoryEdge_cursor(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*generated.GroupSettingConnection) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNGroupSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureHistoryEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_GroupSettingConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GroupSettingConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GroupSettingConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_groupSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureSearchResult_features(ctx context.Context, field graphql.CollectedField, obj *FeatureSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureSearchResult_features(ctx, field) +func (ec *executionContext) _Query_groupSettingHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupSettingHistories(ctx, field) if err != nil { return graphql.Null } @@ -81308,73 +165393,57 @@ func (ec *executionContext) _FeatureSearchResult_features(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Features, nil + return ec.resolvers.Query().GroupSettingHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupSettingHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Feature) + res := resTmp.(*generated.GroupSettingHistoryConnection) fc.Result = res - return ec.marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureᚄ(ctx, field.Selections, res) + return ec.marshalNGroupSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureSearchResult_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupSettingHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureSearchResult", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Feature_id(ctx, field) - case "createdAt": - return ec.fieldContext_Feature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Feature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Feature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Feature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Feature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Feature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Feature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Feature_ownerID(ctx, field) - case "name": - return ec.fieldContext_Feature_name(ctx, field) - case "displayName": - return ec.fieldContext_Feature_displayName(ctx, field) - case "enabled": - return ec.fieldContext_Feature_enabled(ctx, field) - case "description": - return ec.fieldContext_Feature_description(ctx, field) - case "metadata": - return ec.fieldContext_Feature_metadata(ctx, field) - case "owner": - return ec.fieldContext_Feature_owner(ctx, field) - case "plans": - return ec.fieldContext_Feature_plans(ctx, field) - case "events": - return ec.fieldContext_Feature_events(ctx, field) - case "features": - return ec.fieldContext_Feature_features(ctx, field) + case "edges": + return ec.fieldContext_GroupSettingHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GroupSettingHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GroupSettingHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupSettingHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_groupSettingHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FeatureUpdatePayload_feature(ctx context.Context, field graphql.CollectedField, obj *FeatureUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FeatureUpdatePayload_feature(ctx, field) +func (ec *executionContext) _Query_hushes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_hushes(ctx, field) if err != nil { return graphql.Null } @@ -81387,7 +165456,7 @@ func (ec *executionContext) _FeatureUpdatePayload_feature(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Feature, nil + return ec.resolvers.Query().Hushes(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.HushOrder), fc.Args["where"].(*generated.HushWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -81399,64 +165468,45 @@ func (ec *executionContext) _FeatureUpdatePayload_feature(ctx context.Context, f } return graphql.Null } - res := resTmp.(*generated.Feature) + res := resTmp.(*generated.HushConnection) fc.Result = res - return ec.marshalNFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx, field.Selections, res) + return ec.marshalNHushConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FeatureUpdatePayload_feature(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_hushes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FeatureUpdatePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Feature_id(ctx, field) - case "createdAt": - return ec.fieldContext_Feature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Feature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Feature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Feature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Feature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Feature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Feature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Feature_ownerID(ctx, field) - case "name": - return ec.fieldContext_Feature_name(ctx, field) - case "displayName": - return ec.fieldContext_Feature_displayName(ctx, field) - case "enabled": - return ec.fieldContext_Feature_enabled(ctx, field) - case "description": - return ec.fieldContext_Feature_description(ctx, field) - case "metadata": - return ec.fieldContext_Feature_metadata(ctx, field) - case "owner": - return ec.fieldContext_Feature_owner(ctx, field) - case "plans": - return ec.fieldContext_Feature_plans(ctx, field) - case "events": - return ec.fieldContext_Feature_events(ctx, field) - case "features": - return ec.fieldContext_Feature_features(ctx, field) + case "edges": + return ec.fieldContext_HushConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_HushConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_HushConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) + return nil, fmt.Errorf("no field named %q was found under type HushConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_hushes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_id(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_id(ctx, field) +func (ec *executionContext) _Query_hushHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_hushHistories(ctx, field) if err != nil { return graphql.Null } @@ -81469,7 +165519,7 @@ func (ec *executionContext) _File_id(ctx context.Context, field graphql.Collecte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return ec.resolvers.Query().HushHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.HushHistoryOrder), fc.Args["where"].(*generated.HushHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -81481,26 +165531,45 @@ func (ec *executionContext) _File_id(ctx context.Context, field graphql.Collecte } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.HushHistoryConnection) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNHushHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_hushHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_HushHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_HushHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_HushHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_hushHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_createdAt(ctx, field) +func (ec *executionContext) _Query_integrations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_integrations(ctx, field) if err != nil { return graphql.Null } @@ -81513,35 +165582,57 @@ func (ec *executionContext) _File_createdAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return ec.resolvers.Query().Integrations(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.IntegrationConnection) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_IntegrationConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_IntegrationConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_IntegrationConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_updatedAt(ctx, field) +func (ec *executionContext) _Query_integrationHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_integrationHistories(ctx, field) if err != nil { return graphql.Null } @@ -81554,35 +165645,57 @@ func (ec *executionContext) _File_updatedAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return ec.resolvers.Query().IntegrationHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.IntegrationHistoryOrder), fc.Args["where"].(*generated.IntegrationHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.IntegrationHistoryConnection) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNIntegrationHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_integrationHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_IntegrationHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_IntegrationHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_IntegrationHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_integrationHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_createdBy(ctx, field) +func (ec *executionContext) _Query_internalPolicies(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_internalPolicies(ctx, field) if err != nil { return graphql.Null } @@ -81595,35 +165708,57 @@ func (ec *executionContext) _File_createdBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return ec.resolvers.Query().InternalPolicies(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.InternalPolicyWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.InternalPolicyConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_InternalPolicyConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_InternalPolicyConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_InternalPolicyConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_updatedBy(ctx, field) +func (ec *executionContext) _Query_internalPolicyHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_internalPolicyHistories(ctx, field) if err != nil { return graphql.Null } @@ -81636,35 +165771,57 @@ func (ec *executionContext) _File_updatedBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return ec.resolvers.Query().InternalPolicyHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.InternalPolicyHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.InternalPolicyHistoryConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInternalPolicyHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_internalPolicyHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_InternalPolicyHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_InternalPolicyHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_InternalPolicyHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_internalPolicyHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_deletedAt(ctx, field) +func (ec *executionContext) _Query_invites(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_invites(ctx, field) if err != nil { return graphql.Null } @@ -81677,35 +165834,57 @@ func (ec *executionContext) _File_deletedAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return ec.resolvers.Query().Invites(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.InviteWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.InviteConnection) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNInviteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_invites(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_InviteConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_InviteConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_InviteConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InviteConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_invites_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_deletedBy(ctx, field) +func (ec *executionContext) _Query_narratives(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_narratives(ctx, field) if err != nil { return graphql.Null } @@ -81718,35 +165897,57 @@ func (ec *executionContext) _File_deletedBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return ec.resolvers.Query().Narratives(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NarrativeWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.NarrativeConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_narratives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_NarrativeConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_NarrativeConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_NarrativeConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_tags(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_tags(ctx, field) +func (ec *executionContext) _Query_narrativeHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_narrativeHistories(ctx, field) if err != nil { return graphql.Null } @@ -81759,35 +165960,57 @@ func (ec *executionContext) _File_tags(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return ec.resolvers.Query().NarrativeHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NarrativeHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*generated.NarrativeHistoryConnection) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNNarrativeHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_narrativeHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_NarrativeHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_NarrativeHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_NarrativeHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_narrativeHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_providedFileName(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_providedFileName(ctx, field) +func (ec *executionContext) _Query_notes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_notes(ctx, field) if err != nil { return graphql.Null } @@ -81800,7 +166023,7 @@ func (ec *executionContext) _File_providedFileName(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProvidedFileName, nil + return ec.resolvers.Query().Notes(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NoteWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -81812,26 +166035,45 @@ func (ec *executionContext) _File_providedFileName(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.NoteConnection) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_providedFileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_notes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_NoteConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_NoteConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_NoteConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NoteConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_notes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_providedFileExtension(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_providedFileExtension(ctx, field) +func (ec *executionContext) _Query_noteHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_noteHistories(ctx, field) if err != nil { return graphql.Null } @@ -81844,7 +166086,7 @@ func (ec *executionContext) _File_providedFileExtension(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProvidedFileExtension, nil + return ec.resolvers.Query().NoteHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NoteHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -81856,26 +166098,45 @@ func (ec *executionContext) _File_providedFileExtension(ctx context.Context, fie } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.NoteHistoryConnection) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNNoteHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_providedFileExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_noteHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_NoteHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_NoteHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_NoteHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NoteHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_noteHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_providedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_providedFileSize(ctx, field) +func (ec *executionContext) _Query_oauthProviders(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_oauthProviders(ctx, field) if err != nil { return graphql.Null } @@ -81888,35 +166149,57 @@ func (ec *executionContext) _File_providedFileSize(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProvidedFileSize, nil + return ec.resolvers.Query().OauthProviders(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OauthProviderWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(int64) + res := resTmp.(*generated.OauthProviderConnection) fc.Result = res - return ec.marshalOInt2int64(ctx, field.Selections, res) + return ec.marshalNOauthProviderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_providedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_oauthProviders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_OauthProviderConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OauthProviderConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OauthProviderConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OauthProviderConnection", field.Name) }, } + defer func() { + if 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_oauthProviders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_persistedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_persistedFileSize(ctx, field) +func (ec *executionContext) _Query_oauthProviderHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_oauthProviderHistories(ctx, field) if err != nil { return graphql.Null } @@ -81929,35 +166212,57 @@ func (ec *executionContext) _File_persistedFileSize(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersistedFileSize, nil + return ec.resolvers.Query().OauthProviderHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OauthProviderHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(int64) + res := resTmp.(*generated.OauthProviderHistoryConnection) fc.Result = res - return ec.marshalOInt2int64(ctx, field.Selections, res) + return ec.marshalNOauthProviderHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_persistedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_oauthProviderHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_OauthProviderHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OauthProviderHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OauthProviderHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OauthProviderHistoryConnection", field.Name) }, } + defer func() { + if 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_oauthProviderHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_detectedMimeType(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_detectedMimeType(ctx, field) +func (ec *executionContext) _Query_ohAuthTooTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_ohAuthTooTokens(ctx, field) if err != nil { return graphql.Null } @@ -81970,35 +166275,57 @@ func (ec *executionContext) _File_detectedMimeType(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DetectedMimeType, nil + return ec.resolvers.Query().OhAuthTooTokens(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OhAuthTooTokenWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OhAuthTooTokenConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOhAuthTooTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_detectedMimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_ohAuthTooTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_OhAuthTooTokenConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OhAuthTooTokenConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OhAuthTooTokenConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenConnection", field.Name) }, } + defer func() { + if 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_ohAuthTooTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_md5Hash(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_md5Hash(ctx, field) +func (ec *executionContext) _Query_orgMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_orgMemberships(ctx, field) if err != nil { return graphql.Null } @@ -82011,35 +166338,57 @@ func (ec *executionContext) _File_md5Hash(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Md5Hash, nil + return ec.resolvers.Query().OrgMemberships(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrgMembershipWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OrgMembershipConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_md5Hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_orgMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_OrgMembershipConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrgMembershipConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrgMembershipConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_orgMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_detectedContentType(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_detectedContentType(ctx, field) +func (ec *executionContext) _Query_orgMembershipHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_orgMembershipHistories(ctx, field) if err != nil { return graphql.Null } @@ -82052,7 +166401,7 @@ func (ec *executionContext) _File_detectedContentType(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DetectedContentType, nil + return ec.resolvers.Query().OrgMembershipHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrgMembershipHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -82064,26 +166413,45 @@ func (ec *executionContext) _File_detectedContentType(ctx context.Context, field } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OrgMembershipHistoryConnection) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNOrgMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_detectedContentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_orgMembershipHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_OrgMembershipHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrgMembershipHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrgMembershipHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_orgMembershipHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_storeKey(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_storeKey(ctx, field) +func (ec *executionContext) _Query_organizations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizations(ctx, field) if err != nil { return graphql.Null } @@ -82096,35 +166464,57 @@ func (ec *executionContext) _File_storeKey(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StoreKey, nil + return ec.resolvers.Query().Organizations(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.OrganizationOrder), fc.Args["where"].(*generated.OrganizationWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OrganizationConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_storeKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_OrganizationConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrganizationConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrganizationConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_organizations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_categoryType(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_categoryType(ctx, field) +func (ec *executionContext) _Query_organizationHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizationHistories(ctx, field) if err != nil { return graphql.Null } @@ -82137,35 +166527,57 @@ func (ec *executionContext) _File_categoryType(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CategoryType, nil + return ec.resolvers.Query().OrganizationHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.OrganizationHistoryOrder), fc.Args["where"].(*generated.OrganizationHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OrganizationHistoryConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrganizationHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_categoryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizationHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_OrganizationHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrganizationHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrganizationHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_organizationHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_uri(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_uri(ctx, field) +func (ec *executionContext) _Query_organizationSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizationSettings(ctx, field) if err != nil { return graphql.Null } @@ -82178,35 +166590,57 @@ func (ec *executionContext) _File_uri(ctx context.Context, field graphql.Collect }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.URI, nil + return ec.resolvers.Query().OrganizationSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrganizationSettingWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OrganizationSettingConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrganizationSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_uri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizationSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_OrganizationSettingConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrganizationSettingConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrganizationSettingConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_organizationSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_storageScheme(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_storageScheme(ctx, field) +func (ec *executionContext) _Query_organizationSettingHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizationSettingHistories(ctx, field) if err != nil { return graphql.Null } @@ -82219,35 +166653,57 @@ func (ec *executionContext) _File_storageScheme(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StorageScheme, nil + return ec.resolvers.Query().OrganizationSettingHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrganizationSettingHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OrganizationSettingHistoryConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrganizationSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_storageScheme(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizationSettingHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_OrganizationSettingHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrganizationSettingHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrganizationSettingHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_organizationSettingHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_storageVolume(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_storageVolume(ctx, field) +func (ec *executionContext) _Query_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_personalAccessTokens(ctx, field) if err != nil { return graphql.Null } @@ -82260,35 +166716,57 @@ func (ec *executionContext) _File_storageVolume(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StorageVolume, nil + return ec.resolvers.Query().PersonalAccessTokens(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.PersonalAccessTokenWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.PersonalAccessTokenConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPersonalAccessTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_storageVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_PersonalAccessTokenConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_PersonalAccessTokenConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_PersonalAccessTokenConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_personalAccessTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_storagePath(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_storagePath(ctx, field) +func (ec *executionContext) _Query_procedures(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_procedures(ctx, field) if err != nil { return graphql.Null } @@ -82301,35 +166779,57 @@ func (ec *executionContext) _File_storagePath(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StoragePath, nil + return ec.resolvers.Query().Procedures(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProcedureWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.ProcedureConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_storagePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_ProcedureConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ProcedureConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ProcedureConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_user(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_user(ctx, field) +func (ec *executionContext) _Query_procedureHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_procedureHistories(ctx, field) if err != nil { return graphql.Null } @@ -82342,97 +166842,57 @@ func (ec *executionContext) _File_user(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User(ctx) + return ec.resolvers.Query().ProcedureHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProcedureHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.User) + res := resTmp.(*generated.ProcedureHistoryConnection) fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) + return ec.marshalNProcedureHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_procedureHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) + case "edges": + return ec.fieldContext_ProcedureHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ProcedureHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ProcedureHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProcedureHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_procedureHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_organization(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_organization(ctx, field) +func (ec *executionContext) _Query_risks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_risks(ctx, field) if err != nil { return graphql.Null } @@ -82445,119 +166905,57 @@ func (ec *executionContext) _File_organization(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization(ctx) + return ec.resolvers.Query().Risks(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.RiskWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.(*generated.RiskConnection) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + case "edges": + return ec.fieldContext_RiskConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_RiskConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_RiskConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RiskConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_group(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_group(ctx, field) +func (ec *executionContext) _Query_riskHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_riskHistories(ctx, field) if err != nil { return graphql.Null } @@ -82570,79 +166968,57 @@ func (ec *executionContext) _File_group(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group(ctx) + return ec.resolvers.Query().RiskHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.RiskHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(*generated.RiskHistoryConnection) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalNRiskHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_riskHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + case "edges": + return ec.fieldContext_RiskHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_RiskHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_RiskHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RiskHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_riskHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_contact(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_contact(ctx, field) +func (ec *executionContext) _Query_standards(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_standards(ctx, field) if err != nil { return graphql.Null } @@ -82655,75 +167031,57 @@ func (ec *executionContext) _File_contact(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contact(ctx) + return ec.resolvers.Query().Standards(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.StandardWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Contact) + res := resTmp.(*generated.StandardConnection) fc.Result = res - return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) + return ec.marshalNStandardConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_standards(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) + case "edges": + return ec.fieldContext_StandardConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_StandardConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_StandardConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + return nil, fmt.Errorf("no field named %q was found under type StandardConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_standards_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_entity(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_entity(ctx, field) +func (ec *executionContext) _Query_standardHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_standardHistories(ctx, field) if err != nil { return graphql.Null } @@ -82736,79 +167094,57 @@ func (ec *executionContext) _File_entity(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entity(ctx) + return ec.resolvers.Query().StandardHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.StandardHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Entity) + res := resTmp.(*generated.StandardHistoryConnection) fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) + return ec.marshalNStandardHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_standardHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) + case "edges": + return ec.fieldContext_StandardHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_StandardHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_StandardHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type StandardHistoryConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_standardHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_usersetting(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_usersetting(ctx, field) +func (ec *executionContext) _Query_subcontrols(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subcontrols(ctx, field) if err != nil { return graphql.Null } @@ -82821,75 +167157,57 @@ func (ec *executionContext) _File_usersetting(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Usersetting(ctx) + return ec.resolvers.Query().Subcontrols(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.SubcontrolWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.UserSetting) + res := resTmp.(*generated.SubcontrolConnection) fc.Result = res - return ec.marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx, field.Selections, res) + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_usersetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) + case "edges": + return ec.fieldContext_SubcontrolConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_SubcontrolConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_SubcontrolConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubcontrolConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_organizationsetting(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_organizationsetting(ctx, field) +func (ec *executionContext) _Query_subcontrolHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subcontrolHistories(ctx, field) if err != nil { return graphql.Null } @@ -82902,73 +167220,57 @@ func (ec *executionContext) _File_organizationsetting(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organizationsetting(ctx) + return ec.resolvers.Query().SubcontrolHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.SubcontrolHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.OrganizationSetting) + res := resTmp.(*generated.SubcontrolHistoryConnection) fc.Result = res - return ec.marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx, field.Selections, res) + return ec.marshalNSubcontrolHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_organizationsetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subcontrolHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) + case "edges": + return ec.fieldContext_SubcontrolHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_SubcontrolHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_SubcontrolHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubcontrolHistoryConnection", field.Name) }, } + defer func() { + if 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_subcontrolHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_template(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_template(ctx, field) +func (ec *executionContext) _Query_subscribers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subscribers(ctx, field) if err != nil { return graphql.Null } @@ -82981,71 +167283,57 @@ func (ec *executionContext) _File_template(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Template(ctx) + return ec.resolvers.Query().Subscribers(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.SubscriberWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Template) + res := resTmp.(*generated.SubscriberConnection) fc.Result = res - return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) + return ec.marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subscribers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) + case "edges": + return ec.fieldContext_SubscriberConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_SubscriberConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_SubscriberConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubscriberConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_subscribers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_documentdata(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_documentdata(ctx, field) +func (ec *executionContext) _Query_tfaSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_tfaSettings(ctx, field) if err != nil { return graphql.Null } @@ -83058,67 +167346,57 @@ func (ec *executionContext) _File_documentdata(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Documentdata(ctx) + return ec.resolvers.Query().TfaSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.TFASettingWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.DocumentData) + res := resTmp.(*generated.TFASettingConnection) fc.Result = res - return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) + return ec.marshalNTFASettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_documentdata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_tfaSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) + case "edges": + return ec.fieldContext_TFASettingConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_TFASettingConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_TFASettingConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TFASettingConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_tfaSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _File_events(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_events(ctx, field) +func (ec *executionContext) _Query_templates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_templates(ctx, field) if err != nil { return graphql.Null } @@ -83131,91 +167409,57 @@ func (ec *executionContext) _File_events(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return ec.resolvers.Query().Templates(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.TemplateOrder), fc.Args["where"].(*generated.TemplateWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(*generated.TemplateConnection) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_templates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + case "edges": + return ec.fieldContext_TemplateConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_TemplateConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_TemplateConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TemplateConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_templates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.FileConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileConnection_edges(ctx, field) +func (ec *executionContext) _Query_templateHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_templateHistories(ctx, field) if err != nil { return graphql.Null } @@ -83228,41 +167472,57 @@ func (ec *executionContext) _FileConnection_edges(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return ec.resolvers.Query().TemplateHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.TemplateHistoryOrder), fc.Args["where"].(*generated.TemplateHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.FileEdge) + res := resTmp.(*generated.TemplateHistoryConnection) fc.Result = res - return ec.marshalOFileEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileEdge(ctx, field.Selections, res) + return ec.marshalNTemplateHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_templateHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_FileEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_FileEdge_cursor(ctx, field) + case "edges": + return ec.fieldContext_TemplateHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_TemplateHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_TemplateHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FileEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TemplateHistoryConnection", field.Name) }, } + defer func() { + if 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_templateHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.FileConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileConnection_pageInfo(ctx, field) +func (ec *executionContext) _Query_users(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_users(ctx, field) if err != nil { return graphql.Null } @@ -83275,7 +167535,7 @@ func (ec *executionContext) _FileConnection_pageInfo(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return ec.resolvers.Query().Users(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.UserOrder), fc.Args["where"].(*generated.UserWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -83287,36 +167547,45 @@ func (ec *executionContext) _FileConnection_pageInfo(ctx context.Context, field } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*generated.UserConnection) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "edges": + return ec.fieldContext_UserConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_UserConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_UserConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.FileConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileConnection_totalCount(ctx, field) +func (ec *executionContext) _Query_userHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userHistories(ctx, field) if err != nil { return graphql.Null } @@ -83329,7 +167598,7 @@ func (ec *executionContext) _FileConnection_totalCount(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return ec.resolvers.Query().UserHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.UserHistoryOrder), fc.Args["where"].(*generated.UserHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -83341,26 +167610,45 @@ func (ec *executionContext) _FileConnection_totalCount(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(int) + res := resTmp.(*generated.UserHistoryConnection) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNUserHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_userHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_UserHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_UserHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_UserHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserHistoryConnection", field.Name) }, } + defer func() { + if 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_userHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *FileDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Query_userSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userSettings(ctx, field) if err != nil { return graphql.Null } @@ -83373,7 +167661,7 @@ func (ec *executionContext) _FileDeletePayload_deletedID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return ec.resolvers.Query().UserSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.UserSettingWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -83385,26 +167673,45 @@ func (ec *executionContext) _FileDeletePayload_deletedID(ctx context.Context, fi } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.UserSettingConnection) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNUserSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_userSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileDeletePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_UserSettingConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_UserSettingConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_UserSettingConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingConnection", field.Name) }, } + defer func() { + if 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_userSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.FileEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileEdge_node(ctx, field) +func (ec *executionContext) _Query_userSettingHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userSettingHistories(ctx, field) if err != nil { return graphql.Null } @@ -83417,99 +167724,57 @@ func (ec *executionContext) _FileEdge_node(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return ec.resolvers.Query().UserSettingHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.UserSettingHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.File) + res := resTmp.(*generated.UserSettingHistoryConnection) fc.Result = res - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, field.Selections, res) + return ec.marshalNUserSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_userSettingHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) + case "edges": + return ec.fieldContext_UserSettingHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_UserSettingHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_UserSettingHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSettingHistoryConnection", field.Name) }, } + defer func() { + if 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_userSettingHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.FileEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileEdge_cursor(ctx, field) +func (ec *executionContext) _Query_webhooks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_webhooks(ctx, field) if err != nil { return graphql.Null } @@ -83522,7 +167787,7 @@ func (ec *executionContext) _FileEdge_cursor(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return ec.resolvers.Query().Webhooks(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.WebhookOrder), fc.Args["where"].(*generated.WebhookWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -83534,26 +167799,45 @@ func (ec *executionContext) _FileEdge_cursor(ctx context.Context, field graphql. } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*generated.WebhookConnection) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNWebhookConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_webhooks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_WebhookConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_WebhookConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_WebhookConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type WebhookConnection", field.Name) }, } + defer func() { + if 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_webhooks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_id(ctx, field) +func (ec *executionContext) _Query_webhookHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_webhookHistories(ctx, field) if err != nil { return graphql.Null } @@ -83566,7 +167850,7 @@ func (ec *executionContext) _FileHistory_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return ec.resolvers.Query().WebhookHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.WebhookHistoryOrder), fc.Args["where"].(*generated.WebhookHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -83578,26 +167862,45 @@ func (ec *executionContext) _FileHistory_id(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.WebhookHistoryConnection) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNWebhookHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_webhookHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_WebhookHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_WebhookHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_WebhookHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type WebhookHistoryConnection", field.Name) }, } + defer func() { + if 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_webhookHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_historyTime(ctx, field) +func (ec *executionContext) _Query_actionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_actionPlan(ctx, field) if err != nil { return graphql.Null } @@ -83610,7 +167913,7 @@ func (ec *executionContext) _FileHistory_historyTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return ec.resolvers.Query().ActionPlan(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -83622,26 +167925,77 @@ func (ec *executionContext) _FileHistory_historyTime(ctx context.Context, field } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.ActionPlan) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_actionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) }, } + defer func() { + if 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_actionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_ref(ctx, field) +func (ec *executionContext) _Query_adminAPITokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminAPITokenSearch(ctx, field) if err != nil { return graphql.Null } @@ -83654,7 +168008,7 @@ func (ec *executionContext) _FileHistory_ref(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return ec.resolvers.Query().AdminAPITokenSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -83663,26 +168017,41 @@ func (ec *executionContext) _FileHistory_ref(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*APITokenSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOAPITokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminAPITokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "apiTokens": + return ec.fieldContext_APITokenSearchResult_apiTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminAPITokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_operation(ctx, field) +func (ec *executionContext) _Query_adminActionPlanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminActionPlanSearch(ctx, field) if err != nil { return graphql.Null } @@ -83695,38 +168064,50 @@ func (ec *executionContext) _FileHistory_operation(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return ec.resolvers.Query().AdminActionPlanSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(*ActionPlanSearchResult) fc.Result = res - return ec.marshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOActionPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminActionPlanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FileHistoryOpType does not have child fields") + switch field.Name { + case "actionPlans": + return ec.fieldContext_ActionPlanSearchResult_actionPlans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminActionPlanSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_createdAt(ctx, field) +func (ec *executionContext) _Query_adminContactSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminContactSearch(ctx, field) if err != nil { return graphql.Null } @@ -83739,7 +168120,7 @@ func (ec *executionContext) _FileHistory_createdAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return ec.resolvers.Query().AdminContactSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -83748,26 +168129,41 @@ func (ec *executionContext) _FileHistory_createdAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*ContactSearchResult) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOContactSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminContactSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "contacts": + return ec.fieldContext_ContactSearchResult_contacts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminContactSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_updatedAt(ctx, field) +func (ec *executionContext) _Query_adminControlSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminControlSearch(ctx, field) if err != nil { return graphql.Null } @@ -83780,7 +168176,7 @@ func (ec *executionContext) _FileHistory_updatedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return ec.resolvers.Query().AdminControlSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -83789,26 +168185,41 @@ func (ec *executionContext) _FileHistory_updatedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*ControlSearchResult) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOControlSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminControlSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "controls": + return ec.fieldContext_ControlSearchResult_controls(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminControlSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_createdBy(ctx, field) +func (ec *executionContext) _Query_adminControlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminControlObjectiveSearch(ctx, field) if err != nil { return graphql.Null } @@ -83821,7 +168232,7 @@ func (ec *executionContext) _FileHistory_createdBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return ec.resolvers.Query().AdminControlObjectiveSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -83830,26 +168241,41 @@ func (ec *executionContext) _FileHistory_createdBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*ControlObjectiveSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOControlObjectiveSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminControlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "controlObjectives": + return ec.fieldContext_ControlObjectiveSearchResult_controlObjectives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminControlObjectiveSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_updatedBy(ctx, field) +func (ec *executionContext) _Query_adminDocumentDataSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminDocumentDataSearch(ctx, field) if err != nil { return graphql.Null } @@ -83862,7 +168288,7 @@ func (ec *executionContext) _FileHistory_updatedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return ec.resolvers.Query().AdminDocumentDataSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -83871,26 +168297,41 @@ func (ec *executionContext) _FileHistory_updatedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*DocumentDataSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalODocumentDataSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminDocumentDataSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "documentData": + return ec.fieldContext_DocumentDataSearchResult_documentData(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminDocumentDataSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_deletedAt(ctx, field) +func (ec *executionContext) _Query_adminEntitlementSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminEntitlementSearch(ctx, field) if err != nil { return graphql.Null } @@ -83903,7 +168344,7 @@ func (ec *executionContext) _FileHistory_deletedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return ec.resolvers.Query().AdminEntitlementSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -83912,26 +168353,41 @@ func (ec *executionContext) _FileHistory_deletedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*EntitlementSearchResult) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOEntitlementSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminEntitlementSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "entitlements": + return ec.fieldContext_EntitlementSearchResult_entitlements(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementSearchResult", field.Name) }, } + defer func() { + if 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_adminEntitlementSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_deletedBy(ctx, field) +func (ec *executionContext) _Query_adminEntitlementPlanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminEntitlementPlanSearch(ctx, field) if err != nil { return graphql.Null } @@ -83944,7 +168400,7 @@ func (ec *executionContext) _FileHistory_deletedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return ec.resolvers.Query().AdminEntitlementPlanSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -83953,26 +168409,41 @@ func (ec *executionContext) _FileHistory_deletedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*EntitlementPlanSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOEntitlementPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminEntitlementPlanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "entitlementPlans": + return ec.fieldContext_EntitlementPlanSearchResult_entitlementPlans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanSearchResult", field.Name) }, } + defer func() { + if 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_adminEntitlementPlanSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_tags(ctx, field) +func (ec *executionContext) _Query_adminEntitlementPlanFeatureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminEntitlementPlanFeatureSearch(ctx, field) if err != nil { return graphql.Null } @@ -83985,7 +168456,7 @@ func (ec *executionContext) _FileHistory_tags(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return ec.resolvers.Query().AdminEntitlementPlanFeatureSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -83994,26 +168465,41 @@ func (ec *executionContext) _FileHistory_tags(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*EntitlementPlanFeatureSearchResult) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOEntitlementPlanFeatureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminEntitlementPlanFeatureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "entitlementPlanFeatures": + return ec.fieldContext_EntitlementPlanFeatureSearchResult_entitlementPlanFeatures(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureSearchResult", field.Name) }, } + defer func() { + if 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_adminEntitlementPlanFeatureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_providedFileName(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_providedFileName(ctx, field) +func (ec *executionContext) _Query_adminEntitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminEntitySearch(ctx, field) if err != nil { return graphql.Null } @@ -84026,38 +168512,50 @@ func (ec *executionContext) _FileHistory_providedFileName(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProvidedFileName, nil + return ec.resolvers.Query().AdminEntitySearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*EntitySearchResult) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOEntitySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitySearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_providedFileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminEntitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "entities": + return ec.fieldContext_EntitySearchResult_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitySearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminEntitySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_providedFileExtension(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_providedFileExtension(ctx, field) +func (ec *executionContext) _Query_adminEntityTypeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminEntityTypeSearch(ctx, field) if err != nil { return graphql.Null } @@ -84070,38 +168568,50 @@ func (ec *executionContext) _FileHistory_providedFileExtension(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProvidedFileExtension, nil + return ec.resolvers.Query().AdminEntityTypeSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*EntityTypeSearchResult) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOEntityTypeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_providedFileExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminEntityTypeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "entityTypes": + return ec.fieldContext_EntityTypeSearchResult_entityTypes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminEntityTypeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_providedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_providedFileSize(ctx, field) +func (ec *executionContext) _Query_adminEventSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminEventSearch(ctx, field) if err != nil { return graphql.Null } @@ -84114,7 +168624,7 @@ func (ec *executionContext) _FileHistory_providedFileSize(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProvidedFileSize, nil + return ec.resolvers.Query().AdminEventSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84123,26 +168633,41 @@ func (ec *executionContext) _FileHistory_providedFileSize(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(int64) + res := resTmp.(*EventSearchResult) fc.Result = res - return ec.marshalOInt2int64(ctx, field.Selections, res) + return ec.marshalOEventSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_providedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminEventSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "events": + return ec.fieldContext_EventSearchResult_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminEventSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_persistedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_persistedFileSize(ctx, field) +func (ec *executionContext) _Query_adminFeatureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminFeatureSearch(ctx, field) if err != nil { return graphql.Null } @@ -84155,7 +168680,7 @@ func (ec *executionContext) _FileHistory_persistedFileSize(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersistedFileSize, nil + return ec.resolvers.Query().AdminFeatureSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84164,26 +168689,41 @@ func (ec *executionContext) _FileHistory_persistedFileSize(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(int64) + res := resTmp.(*FeatureSearchResult) fc.Result = res - return ec.marshalOInt2int64(ctx, field.Selections, res) + return ec.marshalOFeatureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_persistedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminFeatureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "features": + return ec.fieldContext_FeatureSearchResult_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FeatureSearchResult", field.Name) }, } + defer func() { + if 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_adminFeatureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_detectedMimeType(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_detectedMimeType(ctx, field) +func (ec *executionContext) _Query_adminFileSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminFileSearch(ctx, field) if err != nil { return graphql.Null } @@ -84196,7 +168736,7 @@ func (ec *executionContext) _FileHistory_detectedMimeType(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DetectedMimeType, nil + return ec.resolvers.Query().AdminFileSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84205,26 +168745,41 @@ func (ec *executionContext) _FileHistory_detectedMimeType(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*FileSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOFileSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_detectedMimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminFileSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "files": + return ec.fieldContext_FileSearchResult_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FileSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminFileSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_md5Hash(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_md5Hash(ctx, field) +func (ec *executionContext) _Query_adminGroupSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminGroupSearch(ctx, field) if err != nil { return graphql.Null } @@ -84237,7 +168792,7 @@ func (ec *executionContext) _FileHistory_md5Hash(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Md5Hash, nil + return ec.resolvers.Query().AdminGroupSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84246,26 +168801,41 @@ func (ec *executionContext) _FileHistory_md5Hash(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*GroupSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGroupSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_md5Hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminGroupSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "groups": + return ec.fieldContext_GroupSearchResult_groups(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminGroupSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_detectedContentType(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_detectedContentType(ctx, field) +func (ec *executionContext) _Query_adminGroupSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminGroupSettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -84278,38 +168848,50 @@ func (ec *executionContext) _FileHistory_detectedContentType(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DetectedContentType, nil + return ec.resolvers.Query().AdminGroupSettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*GroupSettingSearchResult) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOGroupSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_detectedContentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminGroupSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "groupSettings": + return ec.fieldContext_GroupSettingSearchResult_groupSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminGroupSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_storeKey(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_storeKey(ctx, field) +func (ec *executionContext) _Query_adminIntegrationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminIntegrationSearch(ctx, field) if err != nil { return graphql.Null } @@ -84322,7 +168904,7 @@ func (ec *executionContext) _FileHistory_storeKey(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StoreKey, nil + return ec.resolvers.Query().AdminIntegrationSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84331,26 +168913,41 @@ func (ec *executionContext) _FileHistory_storeKey(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*IntegrationSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOIntegrationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_storeKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminIntegrationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "integrations": + return ec.fieldContext_IntegrationSearchResult_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminIntegrationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_categoryType(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_categoryType(ctx, field) +func (ec *executionContext) _Query_adminInternalPolicySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminInternalPolicySearch(ctx, field) if err != nil { return graphql.Null } @@ -84363,7 +168960,7 @@ func (ec *executionContext) _FileHistory_categoryType(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CategoryType, nil + return ec.resolvers.Query().AdminInternalPolicySearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84372,26 +168969,41 @@ func (ec *executionContext) _FileHistory_categoryType(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*InternalPolicySearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOInternalPolicySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicySearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_categoryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminInternalPolicySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "internalPolicies": + return ec.fieldContext_InternalPolicySearchResult_internalPolicies(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicySearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminInternalPolicySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_uri(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_uri(ctx, field) +func (ec *executionContext) _Query_adminNarrativeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminNarrativeSearch(ctx, field) if err != nil { return graphql.Null } @@ -84404,7 +169016,7 @@ func (ec *executionContext) _FileHistory_uri(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.URI, nil + return ec.resolvers.Query().AdminNarrativeSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84413,26 +169025,41 @@ func (ec *executionContext) _FileHistory_uri(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*NarrativeSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalONarrativeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_uri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminNarrativeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "narratives": + return ec.fieldContext_NarrativeSearchResult_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminNarrativeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_storageScheme(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_storageScheme(ctx, field) +func (ec *executionContext) _Query_adminOauthProviderSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminOauthProviderSearch(ctx, field) if err != nil { return graphql.Null } @@ -84445,7 +169072,7 @@ func (ec *executionContext) _FileHistory_storageScheme(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StorageScheme, nil + return ec.resolvers.Query().AdminOauthProviderSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84454,26 +169081,41 @@ func (ec *executionContext) _FileHistory_storageScheme(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*OauthProviderSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOauthProviderSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_storageScheme(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminOauthProviderSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "oauthProviders": + return ec.fieldContext_OauthProviderSearchResult_oauthProviders(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OauthProviderSearchResult", field.Name) }, } + defer func() { + if 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_adminOauthProviderSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_storageVolume(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_storageVolume(ctx, field) +func (ec *executionContext) _Query_adminOhAuthTooTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminOhAuthTooTokenSearch(ctx, field) if err != nil { return graphql.Null } @@ -84486,7 +169128,7 @@ func (ec *executionContext) _FileHistory_storageVolume(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StorageVolume, nil + return ec.resolvers.Query().AdminOhAuthTooTokenSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84495,26 +169137,41 @@ func (ec *executionContext) _FileHistory_storageVolume(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*OhAuthTooTokenSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOhAuthTooTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_storageVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminOhAuthTooTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "ohAuthTooTokens": + return ec.fieldContext_OhAuthTooTokenSearchResult_ohAuthTooTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenSearchResult", field.Name) }, } + defer func() { + if 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_adminOhAuthTooTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistory_storagePath(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_storagePath(ctx, field) +func (ec *executionContext) _Query_adminOrganizationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminOrganizationSearch(ctx, field) if err != nil { return graphql.Null } @@ -84527,7 +169184,7 @@ func (ec *executionContext) _FileHistory_storagePath(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StoragePath, nil + return ec.resolvers.Query().AdminOrganizationSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84536,26 +169193,41 @@ func (ec *executionContext) _FileHistory_storagePath(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*OrganizationSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOrganizationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_storagePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminOrganizationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "organizations": + return ec.fieldContext_OrganizationSearchResult_organizations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminOrganizationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistoryConnection_edges(ctx, field) +func (ec *executionContext) _Query_adminOrganizationSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminOrganizationSettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -84568,7 +169240,7 @@ func (ec *executionContext) _FileHistoryConnection_edges(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return ec.resolvers.Query().AdminOrganizationSettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84577,32 +169249,41 @@ func (ec *executionContext) _FileHistoryConnection_edges(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.FileHistoryEdge) + res := resTmp.(*OrganizationSettingSearchResult) fc.Result = res - return ec.marshalOFileHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryEdge(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminOrganizationSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistoryConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_FileHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_FileHistoryEdge_cursor(ctx, field) + case "organizationSettings": + return ec.fieldContext_OrganizationSettingSearchResult_organizationSettings(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FileHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminOrganizationSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Query_adminPersonalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminPersonalAccessTokenSearch(ctx, field) if err != nil { return graphql.Null } @@ -84615,48 +169296,50 @@ func (ec *executionContext) _FileHistoryConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return ec.resolvers.Query().AdminPersonalAccessTokenSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*PersonalAccessTokenSearchResult) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOPersonalAccessTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminPersonalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistoryConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminPersonalAccessTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _Query_adminProcedureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminProcedureSearch(ctx, field) if err != nil { return graphql.Null } @@ -84669,38 +169352,50 @@ func (ec *executionContext) _FileHistoryConnection_totalCount(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return ec.resolvers.Query().AdminProcedureSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(*ProcedureSearchResult) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOProcedureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminProcedureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistoryConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "procedures": + return ec.fieldContext_ProcedureSearchResult_procedures(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminProcedureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistoryEdge_node(ctx, field) +func (ec *executionContext) _Query_adminRiskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminRiskSearch(ctx, field) if err != nil { return graphql.Null } @@ -84713,7 +169408,7 @@ func (ec *executionContext) _FileHistoryEdge_node(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return ec.resolvers.Query().AdminRiskSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84722,76 +169417,41 @@ func (ec *executionContext) _FileHistoryEdge_node(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.FileHistory) + res := resTmp.(*RiskSearchResult) fc.Result = res - return ec.marshalOFileHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistory(ctx, field.Selections, res) + return ec.marshalORiskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminRiskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistoryEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_FileHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_FileHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_FileHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_FileHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_FileHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_FileHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_FileHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_FileHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_FileHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_FileHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_FileHistory_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_FileHistory_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_FileHistory_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_FileHistory_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_FileHistory_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_FileHistory_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_FileHistory_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_FileHistory_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_FileHistory_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_FileHistory_categoryType(ctx, field) - case "uri": - return ec.fieldContext_FileHistory_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_FileHistory_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_FileHistory_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_FileHistory_storagePath(ctx, field) + case "risks": + return ec.fieldContext_RiskSearchResult_risks(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FileHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RiskSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminRiskSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _Query_adminStandardSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminStandardSearch(ctx, field) if err != nil { return graphql.Null } @@ -84804,38 +169464,50 @@ func (ec *executionContext) _FileHistoryEdge_cursor(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return ec.resolvers.Query().AdminStandardSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*StandardSearchResult) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOStandardSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminStandardSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistoryEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "standards": + return ec.fieldContext_StandardSearchResult_standards(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminStandardSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _FileSearchResult_files(ctx context.Context, field graphql.CollectedField, obj *FileSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileSearchResult_files(ctx, field) +func (ec *executionContext) _Query_adminSubcontrolSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminSubcontrolSearch(ctx, field) if err != nil { return graphql.Null } @@ -84848,7 +169520,7 @@ func (ec *executionContext) _FileSearchResult_files(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Files, nil + return ec.resolvers.Query().AdminSubcontrolSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -84857,90 +169529,41 @@ func (ec *executionContext) _FileSearchResult_files(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.(*SubcontrolSearchResult) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalOSubcontrolSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileSearchResult_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminSubcontrolSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileSearchResult", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) + case "subcontrols": + return ec.fieldContext_SubcontrolSearchResult_subcontrols(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubcontrolSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminSubcontrolSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_id(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_id(ctx, field) +func (ec *executionContext) _Query_adminSubscriberSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminSubscriberSearch(ctx, field) if err != nil { return graphql.Null } @@ -84953,38 +169576,50 @@ func (ec *executionContext) _Group_id(ctx context.Context, field graphql.Collect }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return ec.resolvers.Query().AdminSubscriberSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*SubscriberSearchResult) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOSubscriberSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminSubscriberSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "subscribers": + return ec.fieldContext_SubscriberSearchResult_subscribers(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubscriberSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminSubscriberSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_createdAt(ctx, field) +func (ec *executionContext) _Query_adminTFASettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminTFASettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -84997,7 +169632,7 @@ func (ec *executionContext) _Group_createdAt(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return ec.resolvers.Query().AdminTFASettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -85006,26 +169641,41 @@ func (ec *executionContext) _Group_createdAt(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*TFASettingSearchResult) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTFASettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminTFASettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "tFASettings": + return ec.fieldContext_TFASettingSearchResult_tFASettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TFASettingSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminTFASettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_updatedAt(ctx, field) +func (ec *executionContext) _Query_adminTemplateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminTemplateSearch(ctx, field) if err != nil { return graphql.Null } @@ -85038,7 +169688,7 @@ func (ec *executionContext) _Group_updatedAt(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return ec.resolvers.Query().AdminTemplateSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -85047,26 +169697,41 @@ func (ec *executionContext) _Group_updatedAt(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*TemplateSearchResult) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTemplateSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminTemplateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "templates": + return ec.fieldContext_TemplateSearchResult_templates(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminTemplateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_createdBy(ctx, field) +func (ec *executionContext) _Query_adminUserSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminUserSearch(ctx, field) if err != nil { return graphql.Null } @@ -85079,7 +169744,7 @@ func (ec *executionContext) _Group_createdBy(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return ec.resolvers.Query().AdminUserSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -85088,26 +169753,41 @@ func (ec *executionContext) _Group_createdBy(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*UserSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOUserSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminUserSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "users": + return ec.fieldContext_UserSearchResult_users(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminUserSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_updatedBy(ctx, field) +func (ec *executionContext) _Query_adminUserSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminUserSettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -85120,7 +169800,7 @@ func (ec *executionContext) _Group_updatedBy(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return ec.resolvers.Query().AdminUserSettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -85129,26 +169809,41 @@ func (ec *executionContext) _Group_updatedBy(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*UserSettingSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOUserSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminUserSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "userSettings": + return ec.fieldContext_UserSettingSearchResult_userSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminUserSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_deletedAt(ctx, field) +func (ec *executionContext) _Query_adminWebhookSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminWebhookSearch(ctx, field) if err != nil { return graphql.Null } @@ -85161,7 +169856,7 @@ func (ec *executionContext) _Group_deletedAt(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return ec.resolvers.Query().AdminWebhookSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -85170,26 +169865,41 @@ func (ec *executionContext) _Group_deletedAt(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*WebhookSearchResult) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOWebhookSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminWebhookSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "webhooks": + return ec.fieldContext_WebhookSearchResult_webhooks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type WebhookSearchResult", field.Name) }, } + defer func() { + if 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_adminWebhookSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_deletedBy(ctx, field) +func (ec *executionContext) _Query_apiToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_apiToken(ctx, field) if err != nil { return graphql.Null } @@ -85202,35 +169912,83 @@ func (ec *executionContext) _Group_deletedBy(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return ec.resolvers.Query().APIToken(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.APIToken) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_apiToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) }, } + defer func() { + if 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_apiToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_tags(ctx, field) +func (ec *executionContext) _Query_auditLogs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_auditLogs(ctx, field) if err != nil { return graphql.Null } @@ -85243,35 +170001,57 @@ func (ec *executionContext) _Group_tags(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return ec.resolvers.Query().AuditLogs(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*AuditLogWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*AuditLogConnection) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNAuditLogConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_auditLogs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "edges": + return ec.fieldContext_AuditLogConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_AuditLogConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_AuditLogConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AuditLogConnection", field.Name) }, } + defer func() { + if 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_auditLogs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_ownerID(ctx, field) +func (ec *executionContext) _Query_contact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_contact(ctx, field) if err != nil { return graphql.Null } @@ -85284,35 +170064,89 @@ func (ec *executionContext) _Group_ownerID(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return ec.resolvers.Query().Contact(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Contact) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_contact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) }, } + defer func() { + if 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_contact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_name(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_name(ctx, field) +func (ec *executionContext) _Query_control(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_control(ctx, field) if err != nil { return graphql.Null } @@ -85325,7 +170159,7 @@ func (ec *executionContext) _Group_name(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return ec.resolvers.Query().Control(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -85337,26 +170171,93 @@ func (ec *executionContext) _Group_name(ctx context.Context, field graphql.Colle } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Control) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_control(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_control_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_description(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_description(ctx, field) +func (ec *executionContext) _Query_controlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controlObjective(ctx, field) if err != nil { return graphql.Null } @@ -85369,35 +170270,103 @@ func (ec *executionContext) _Group_description(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return ec.resolvers.Query().ControlObjective(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.ControlObjective) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "policy": + return ec.fieldContext_ControlObjective_policy(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_controlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_gravatarLogoURL(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_gravatarLogoURL(ctx, field) +func (ec *executionContext) _Query_documentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_documentData(ctx, field) if err != nil { return graphql.Null } @@ -85410,35 +170379,81 @@ func (ec *executionContext) _Group_gravatarLogoURL(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GravatarLogoURL, nil + return ec.resolvers.Query().DocumentData(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.DocumentData) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_gravatarLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_documentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) }, } + defer func() { + if 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_documentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_logoURL(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_logoURL(ctx, field) +func (ec *executionContext) _Query_entitlement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitlement(ctx, field) if err != nil { return graphql.Null } @@ -85451,35 +170466,91 @@ func (ec *executionContext) _Group_logoURL(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LogoURL, nil + return ec.resolvers.Query().Entitlement(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Entitlement) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_logoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitlement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Entitlement_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entitlement_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entitlement_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entitlement_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entitlement_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Entitlement_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Entitlement_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entitlement_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Entitlement_ownerID(ctx, field) + case "planID": + return ec.fieldContext_Entitlement_planID(ctx, field) + case "organizationID": + return ec.fieldContext_Entitlement_organizationID(ctx, field) + case "externalCustomerID": + return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) + case "externalSubscriptionID": + return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) + case "expires": + return ec.fieldContext_Entitlement_expires(ctx, field) + case "expiresAt": + return ec.fieldContext_Entitlement_expiresAt(ctx, field) + case "cancelled": + return ec.fieldContext_Entitlement_cancelled(ctx, field) + case "owner": + return ec.fieldContext_Entitlement_owner(ctx, field) + case "plan": + return ec.fieldContext_Entitlement_plan(ctx, field) + case "organization": + return ec.fieldContext_Entitlement_organization(ctx, field) + case "events": + return ec.fieldContext_Entitlement_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) }, } + defer func() { + if 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_entitlement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_displayName(ctx, field) +func (ec *executionContext) _Query_entitlementPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitlementPlan(ctx, field) if err != nil { return graphql.Null } @@ -85492,7 +170563,7 @@ func (ec *executionContext) _Group_displayName(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return ec.resolvers.Query().EntitlementPlan(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -85504,26 +170575,77 @@ func (ec *executionContext) _Group_displayName(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.EntitlementPlan) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitlementPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_EntitlementPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlan_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) + case "displayName": + return ec.fieldContext_EntitlementPlan_displayName(ctx, field) + case "name": + return ec.fieldContext_EntitlementPlan_name(ctx, field) + case "description": + return ec.fieldContext_EntitlementPlan_description(ctx, field) + case "version": + return ec.fieldContext_EntitlementPlan_version(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlan_metadata(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlan_owner(ctx, field) + case "entitlements": + return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) + case "baseFeatures": + return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) + case "events": + return ec.fieldContext_EntitlementPlan_events(ctx, field) + case "features": + return ec.fieldContext_EntitlementPlan_features(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) }, } + defer func() { + if 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_entitlementPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_owner(ctx, field) +func (ec *executionContext) _Query_entitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitlementPlanFeature(ctx, field) if err != nil { return graphql.Null } @@ -85536,119 +170658,83 @@ func (ec *executionContext) _Group_owner(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return ec.resolvers.Query().EntitlementPlanFeature(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(*generated.EntitlementPlanFeature) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Organization_id(ctx, field) + return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) + return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) + return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) + return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) + return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) + return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) + return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) + case "metadata": + return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) + case "planID": + return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) + case "featureID": + return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) + case "owner": + return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) + case "plan": + return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) + case "feature": + return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) }, } + defer func() { + if 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_entitlementPlanFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_setting(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_setting(ctx, field) +func (ec *executionContext) _Query_entity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entity(ctx, field) if err != nil { return graphql.Null } @@ -85661,7 +170747,7 @@ func (ec *executionContext) _Group_setting(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Setting(ctx) + return ec.resolvers.Query().Entity(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -85673,56 +170759,81 @@ func (ec *executionContext) _Group_setting(ctx context.Context, field graphql.Co } return graphql.Null } - res := resTmp.(*generated.GroupSetting) + res := resTmp.(*generated.Entity) fc.Result = res - return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) + return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_GroupSetting_id(ctx, field) + return ec.fieldContext_Entity_id(ctx, field) case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) + return ec.fieldContext_Entity_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + return ec.fieldContext_Entity_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) + return ec.fieldContext_Entity_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) + return ec.fieldContext_Entity_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + return ec.fieldContext_Entity_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) }, } + defer func() { + if 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_entity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_users(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_users(ctx, field) +func (ec *executionContext) _Query_entityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entityType(ctx, field) if err != nil { return graphql.Null } @@ -85735,97 +170846,75 @@ func (ec *executionContext) _Group_users(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Users(ctx) + return ec.resolvers.Query().EntityType(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.User) + res := resTmp.(*generated.EntityType) fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) + return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_User_id(ctx, field) + return ec.fieldContext_EntityType_id(ctx, field) case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) + return ec.fieldContext_EntityType_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) + return ec.fieldContext_EntityType_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) + return ec.fieldContext_EntityType_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) + return ec.fieldContext_EntityType_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) + return ec.fieldContext_EntityType_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) + return ec.fieldContext_EntityType_deletedBy(ctx, field) case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) }, } + defer func() { + if 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_entityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_events(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_events(ctx, field) +func (ec *executionContext) _Query_event(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_event(ctx, field) if err != nil { return graphql.Null } @@ -85838,26 +170927,29 @@ func (ec *executionContext) _Group_events(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return ec.resolvers.Query().Event(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(*generated.Event) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_event(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": @@ -85918,11 +171010,22 @@ func (ec *executionContext) fieldContext_Group_events(_ context.Context, field g return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_event_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_integrations(ctx, field) +func (ec *executionContext) _Query_feature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_feature(ctx, field) if err != nil { return graphql.Null } @@ -85935,71 +171038,87 @@ func (ec *executionContext) _Group_integrations(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integrations(ctx) + return ec.resolvers.Query().Feature(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Integration) + res := resTmp.(*generated.Feature) fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) + return ec.marshalNFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_feature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Integration_id(ctx, field) + return ec.fieldContext_Feature_id(ctx, field) case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) + return ec.fieldContext_Feature_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) + return ec.fieldContext_Feature_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) + return ec.fieldContext_Feature_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) + return ec.fieldContext_Feature_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) + return ec.fieldContext_Feature_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) + return ec.fieldContext_Feature_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Feature_tags(ctx, field) case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) + return ec.fieldContext_Feature_ownerID(ctx, field) case "name": - return ec.fieldContext_Integration_name(ctx, field) + return ec.fieldContext_Feature_name(ctx, field) + case "displayName": + return ec.fieldContext_Feature_displayName(ctx, field) + case "enabled": + return ec.fieldContext_Feature_enabled(ctx, field) case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) + return ec.fieldContext_Feature_description(ctx, field) + case "metadata": + return ec.fieldContext_Feature_metadata(ctx, field) case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "oauth2tokens": - return ec.fieldContext_Integration_oauth2tokens(ctx, field) + return ec.fieldContext_Feature_owner(ctx, field) + case "plans": + return ec.fieldContext_Feature_plans(ctx, field) case "events": - return ec.fieldContext_Integration_events(ctx, field) - case "webhooks": - return ec.fieldContext_Integration_webhooks(ctx, field) + return ec.fieldContext_Feature_events(ctx, field) + case "features": + return ec.fieldContext_Feature_features(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) }, } + defer func() { + if 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_feature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Group_files(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_files(ctx, field) +func (ec *executionContext) _Query_file(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_file(ctx, field) if err != nil { return graphql.Null } @@ -86012,26 +171131,29 @@ func (ec *executionContext) _Group_files(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) + return ec.resolvers.Query().File(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.(*generated.File) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalNFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_file(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": @@ -86100,11 +171222,22 @@ func (ec *executionContext) fieldContext_Group_files(_ context.Context, field gr return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_file_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) { - fc, err := ec.fieldContext_Group_members(ctx, field) +func (ec *executionContext) _Query_group(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_group(ctx, field) if err != nil { return graphql.Null } @@ -86117,26 +171250,128 @@ func (ec *executionContext) _Group_members(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Members(ctx) + return ec.resolvers.Query().Group(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.GroupMembership) + res := resTmp.(*generated.Group) fc.Result = res - return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) + return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_members(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_group(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_group_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_groupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().GroupMembership(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.GroupMembership) + fc.Result = res + return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_groupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": @@ -86169,11 +171404,22 @@ func (ec *executionContext) fieldContext_Group_members(_ context.Context, field return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_groupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupBulkCreatePayload_groups(ctx context.Context, field graphql.CollectedField, obj *GroupBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupBulkCreatePayload_groups(ctx, field) +func (ec *executionContext) _Query_groupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupSetting(ctx, field) if err != nil { return graphql.Null } @@ -86186,79 +171432,255 @@ func (ec *executionContext) _GroupBulkCreatePayload_groups(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Groups, nil + return ec.resolvers.Query().GroupSetting(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(*generated.GroupSetting) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupBulkCreatePayload_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupBulkCreatePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Group_id(ctx, field) + return ec.fieldContext_GroupSetting_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_GroupSetting_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_GroupSetting_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_groupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_hush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_hush(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().Hush(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Hush) + fc.Result = res + return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_hush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_hush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_integration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_integration(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().Integration(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Integration) + fc.Result = res + return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_integration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) case "tags": - return ec.fieldContext_Group_tags(ctx, field) + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) + return ec.fieldContext_Integration_ownerID(ctx, field) case "name": - return ec.fieldContext_Group_name(ctx, field) + return ec.fieldContext_Integration_name(ctx, field) case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "oauth2tokens": + return ec.fieldContext_Integration_oauth2tokens(ctx, field) case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_Integration_events(ctx, field) + case "webhooks": + return ec.fieldContext_Integration_webhooks(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_integration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupConnection_edges(ctx, field) +func (ec *executionContext) _Query_internalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_internalPolicy(ctx, field) if err != nil { return graphql.Null } @@ -86271,41 +171693,91 @@ func (ec *executionContext) _GroupConnection_edges(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return ec.resolvers.Query().InternalPolicy(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.GroupEdge) + res := resTmp.(*generated.InternalPolicy) fc.Result = res - return ec.marshalOGroupEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupEdge(ctx, field.Selections, res) + return ec.marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_internalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_GroupEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_GroupEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_InternalPolicy_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_internalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupConnection_pageInfo(ctx, field) +func (ec *executionContext) _Query_invite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_invite(ctx, field) if err != nil { return graphql.Null } @@ -86318,7 +171790,7 @@ func (ec *executionContext) _GroupConnection_pageInfo(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return ec.resolvers.Query().Invite(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -86330,36 +171802,71 @@ func (ec *executionContext) _GroupConnection_pageInfo(ctx context.Context, field } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*generated.Invite) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_invite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "id": + return ec.fieldContext_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_invite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupConnection_totalCount(ctx, field) +func (ec *executionContext) _Query_narrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_narrative(ctx, field) if err != nil { return graphql.Null } @@ -86372,7 +171879,7 @@ func (ec *executionContext) _GroupConnection_totalCount(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return ec.resolvers.Query().Narrative(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -86384,26 +171891,71 @@ func (ec *executionContext) _GroupConnection_totalCount(ctx context.Context, fie } return graphql.Null } - res := resTmp.(int) + res := resTmp.(*generated.Narrative) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_narrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "policy": + return ec.fieldContext_Narrative_policy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlobjective": + return ec.fieldContext_Narrative_controlobjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_narrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupCreatePayload_group(ctx context.Context, field graphql.CollectedField, obj *GroupCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupCreatePayload_group(ctx, field) +func (ec *executionContext) _Query_oauthProvider(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_oauthProvider(ctx, field) if err != nil { return graphql.Null } @@ -86416,7 +171968,7 @@ func (ec *executionContext) _GroupCreatePayload_group(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group, nil + return ec.resolvers.Query().OauthProvider(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -86428,70 +171980,77 @@ func (ec *executionContext) _GroupCreatePayload_group(ctx context.Context, field } return graphql.Null } - res := resTmp.(*generated.Group) + res := resTmp.(*generated.OauthProvider) fc.Result = res - return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) + return ec.marshalNOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupCreatePayload_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_oauthProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupCreatePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Group_id(ctx, field) + return ec.fieldContext_OauthProvider_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_OauthProvider_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_OauthProvider_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_OauthProvider_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_OauthProvider_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OauthProvider_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_OauthProvider_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) + return ec.fieldContext_OauthProvider_deletedBy(ctx, field) case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) + return ec.fieldContext_OauthProvider_ownerID(ctx, field) case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) + return ec.fieldContext_OauthProvider_name(ctx, field) + case "clientID": + return ec.fieldContext_OauthProvider_clientID(ctx, field) + case "clientSecret": + return ec.fieldContext_OauthProvider_clientSecret(ctx, field) + case "redirectURL": + return ec.fieldContext_OauthProvider_redirectURL(ctx, field) + case "scopes": + return ec.fieldContext_OauthProvider_scopes(ctx, field) + case "authURL": + return ec.fieldContext_OauthProvider_authURL(ctx, field) + case "tokenURL": + return ec.fieldContext_OauthProvider_tokenURL(ctx, field) + case "authStyle": + return ec.fieldContext_OauthProvider_authStyle(ctx, field) + case "infoURL": + return ec.fieldContext_OauthProvider_infoURL(ctx, field) case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_OauthProvider_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) }, } + defer func() { + if 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_oauthProvider_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *GroupDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Query_ohAuthTooToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_ohAuthTooToken(ctx, field) if err != nil { return graphql.Null } @@ -86504,7 +172063,7 @@ func (ec *executionContext) _GroupDeletePayload_deletedID(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return ec.resolvers.Query().OhAuthTooToken(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -86516,26 +172075,71 @@ func (ec *executionContext) _GroupDeletePayload_deletedID(ctx context.Context, f } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OhAuthTooToken) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_ohAuthTooToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupDeletePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OhAuthTooToken_id(ctx, field) + case "tags": + return ec.fieldContext_OhAuthTooToken_tags(ctx, field) + case "clientID": + return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) + case "scopes": + return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) + case "nonce": + return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) + case "claimsUserID": + return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) + case "claimsUsername": + return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) + case "claimsEmail": + return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) + case "claimsEmailVerified": + return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) + case "claimsGroups": + return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) + case "claimsPreferredUsername": + return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) + case "connectorID": + return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) + case "connectorData": + return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) + case "lastUsed": + return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) + case "integration": + return ec.fieldContext_OhAuthTooToken_integration(ctx, field) + case "events": + return ec.fieldContext_OhAuthTooToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) }, } + defer func() { + if 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_ohAuthTooToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupEdge_node(ctx, field) +func (ec *executionContext) _Query_organization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organization(ctx, field) if err != nil { return graphql.Null } @@ -86548,79 +172152,133 @@ func (ec *executionContext) _GroupEdge_node(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return ec.resolvers.Query().Organization(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.Group) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Group_id(ctx, field) + return ec.fieldContext_Organization_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_Organization_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_Organization_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_Organization_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_Organization_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) + return ec.fieldContext_Organization_deletedBy(ctx, field) case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) + return ec.fieldContext_Organization_name(ctx, field) case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) case "setting": - return ec.fieldContext_Group_setting(ctx, field) + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) case "users": - return ec.fieldContext_Group_users(ctx, field) + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) case "files": - return ec.fieldContext_Group_files(ctx, field) + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_organization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupEdge_cursor(ctx, field) +func (ec *executionContext) _Query_organizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizationSetting(ctx, field) if err != nil { return graphql.Null } @@ -86633,7 +172291,7 @@ func (ec *executionContext) _GroupEdge_cursor(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return ec.resolvers.Query().OrganizationSetting(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -86645,26 +172303,75 @@ func (ec *executionContext) _GroupEdge_cursor(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*generated.OrganizationSetting) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OrganizationSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_organizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_id(ctx, field) +func (ec *executionContext) _Query_orgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_orgMembership(ctx, field) if err != nil { return graphql.Null } @@ -86677,7 +172384,7 @@ func (ec *executionContext) _GroupHistory_id(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return ec.resolvers.Query().OrgMembership(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -86689,26 +172396,65 @@ func (ec *executionContext) _GroupHistory_id(ctx context.Context, field graphql. } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OrgMembership) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_orgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OrgMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) + case "events": + return ec.fieldContext_OrgMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_orgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_historyTime(ctx, field) +func (ec *executionContext) _Query_personalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_personalAccessToken(ctx, field) if err != nil { return graphql.Null } @@ -86721,7 +172467,7 @@ func (ec *executionContext) _GroupHistory_historyTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return ec.resolvers.Query().PersonalAccessToken(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -86733,67 +172479,73 @@ func (ec *executionContext) _GroupHistory_historyTime(ctx context.Context, field } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.PersonalAccessToken) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_personalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _GroupHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_ref(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_personalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GroupHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _GroupHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_operation(ctx, field) +func (ec *executionContext) _Query_procedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_procedure(ctx, field) if err != nil { return graphql.Null } @@ -86806,7 +172558,7 @@ func (ec *executionContext) _GroupHistory_operation(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return ec.resolvers.Query().Procedure(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -86818,67 +172570,81 @@ func (ec *executionContext) _GroupHistory_operation(ctx context.Context, field g } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(*generated.Procedure) fc.Result = res - return ec.marshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_procedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupHistoryOpType does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "control": + return ec.fieldContext_Procedure_control(ctx, field) + case "internalpolicy": + return ec.fieldContext_Procedure_internalpolicy(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _GroupHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_procedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GroupHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _GroupHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_updatedAt(ctx, field) +func (ec *executionContext) _Query_risk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_risk(ctx, field) if err != nil { return graphql.Null } @@ -86891,76 +172657,93 @@ func (ec *executionContext) _GroupHistory_updatedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return ec.resolvers.Query().Risk(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.Risk) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_risk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Risk_id(ctx, field) + case "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionplans": + return ec.fieldContext_Risk_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _GroupHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_risk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GroupHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _GroupHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_updatedBy(ctx, field) +func (ec *executionContext) _Query_apiTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_apiTokenSearch(ctx, field) if err != nil { return graphql.Null } @@ -86973,7 +172756,7 @@ func (ec *executionContext) _GroupHistory_updatedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return ec.resolvers.Query().APITokenSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -86982,67 +172765,41 @@ func (ec *executionContext) _GroupHistory_updatedBy(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*APITokenSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOAPITokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_apiTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "apiTokens": + return ec.fieldContext_APITokenSearchResult_apiTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenSearchResult", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _GroupHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_apiTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GroupHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _GroupHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_deletedBy(ctx, field) +func (ec *executionContext) _Query_actionPlanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_actionPlanSearch(ctx, field) if err != nil { return graphql.Null } @@ -87055,7 +172812,7 @@ func (ec *executionContext) _GroupHistory_deletedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return ec.resolvers.Query().ActionPlanSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87064,26 +172821,41 @@ func (ec *executionContext) _GroupHistory_deletedBy(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*ActionPlanSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOActionPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_actionPlanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "actionPlans": + return ec.fieldContext_ActionPlanSearchResult_actionPlans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_actionPlanSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_tags(ctx, field) +func (ec *executionContext) _Query_contactSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_contactSearch(ctx, field) if err != nil { return graphql.Null } @@ -87096,7 +172868,7 @@ func (ec *executionContext) _GroupHistory_tags(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return ec.resolvers.Query().ContactSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87105,26 +172877,41 @@ func (ec *executionContext) _GroupHistory_tags(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*ContactSearchResult) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOContactSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_contactSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "contacts": + return ec.fieldContext_ContactSearchResult_contacts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_contactSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_ownerID(ctx, field) +func (ec *executionContext) _Query_controlSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controlSearch(ctx, field) if err != nil { return graphql.Null } @@ -87137,7 +172924,7 @@ func (ec *executionContext) _GroupHistory_ownerID(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return ec.resolvers.Query().ControlSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87146,26 +172933,41 @@ func (ec *executionContext) _GroupHistory_ownerID(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*ControlSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOControlSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "controls": + return ec.fieldContext_ControlSearchResult_controls(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_controlSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_name(ctx, field) +func (ec *executionContext) _Query_controlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controlObjectiveSearch(ctx, field) if err != nil { return graphql.Null } @@ -87178,38 +172980,50 @@ func (ec *executionContext) _GroupHistory_name(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return ec.resolvers.Query().ControlObjectiveSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*ControlObjectiveSearchResult) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOControlObjectiveSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "controlObjectives": + return ec.fieldContext_ControlObjectiveSearchResult_controlObjectives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_controlObjectiveSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_description(ctx, field) +func (ec *executionContext) _Query_documentDataSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_documentDataSearch(ctx, field) if err != nil { return graphql.Null } @@ -87222,7 +173036,7 @@ func (ec *executionContext) _GroupHistory_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return ec.resolvers.Query().DocumentDataSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87231,26 +173045,41 @@ func (ec *executionContext) _GroupHistory_description(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*DocumentDataSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalODocumentDataSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_documentDataSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "documentData": + return ec.fieldContext_DocumentDataSearchResult_documentData(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_documentDataSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistory_gravatarLogoURL(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_gravatarLogoURL(ctx, field) +func (ec *executionContext) _Query_entitlementSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitlementSearch(ctx, field) if err != nil { return graphql.Null } @@ -87263,7 +173092,7 @@ func (ec *executionContext) _GroupHistory_gravatarLogoURL(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GravatarLogoURL, nil + return ec.resolvers.Query().EntitlementSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87272,26 +173101,41 @@ func (ec *executionContext) _GroupHistory_gravatarLogoURL(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*EntitlementSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOEntitlementSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_gravatarLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitlementSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "entitlements": + return ec.fieldContext_EntitlementSearchResult_entitlements(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementSearchResult", field.Name) }, } + defer func() { + if 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_entitlementSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistory_logoURL(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_logoURL(ctx, field) +func (ec *executionContext) _Query_entitlementPlanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitlementPlanSearch(ctx, field) if err != nil { return graphql.Null } @@ -87304,7 +173148,7 @@ func (ec *executionContext) _GroupHistory_logoURL(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LogoURL, nil + return ec.resolvers.Query().EntitlementPlanSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87313,26 +173157,41 @@ func (ec *executionContext) _GroupHistory_logoURL(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*EntitlementPlanSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOEntitlementPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_logoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitlementPlanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "entitlementPlans": + return ec.fieldContext_EntitlementPlanSearchResult_entitlementPlans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanSearchResult", field.Name) }, } + defer func() { + if 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_entitlementPlanSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_displayName(ctx, field) +func (ec *executionContext) _Query_entitlementPlanFeatureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitlementPlanFeatureSearch(ctx, field) if err != nil { return graphql.Null } @@ -87345,38 +173204,50 @@ func (ec *executionContext) _GroupHistory_displayName(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return ec.resolvers.Query().EntitlementPlanFeatureSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*EntitlementPlanFeatureSearchResult) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOEntitlementPlanFeatureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitlementPlanFeatureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "entitlementPlanFeatures": + return ec.fieldContext_EntitlementPlanFeatureSearchResult_entitlementPlanFeatures(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureSearchResult", field.Name) }, } + defer func() { + if 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_entitlementPlanFeatureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistoryConnection_edges(ctx, field) +func (ec *executionContext) _Query_entitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitySearch(ctx, field) if err != nil { return graphql.Null } @@ -87389,7 +173260,7 @@ func (ec *executionContext) _GroupHistoryConnection_edges(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return ec.resolvers.Query().EntitySearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87398,32 +173269,41 @@ func (ec *executionContext) _GroupHistoryConnection_edges(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupHistoryEdge) + res := resTmp.(*EntitySearchResult) fc.Result = res - return ec.marshalOGroupHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryEdge(ctx, field.Selections, res) + return ec.marshalOEntitySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitySearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistoryConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_GroupHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_GroupHistoryEdge_cursor(ctx, field) + case "entities": + return ec.fieldContext_EntitySearchResult_entities(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntitySearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_entitySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Query_entityTypeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entityTypeSearch(ctx, field) if err != nil { return graphql.Null } @@ -87436,48 +173316,50 @@ func (ec *executionContext) _GroupHistoryConnection_pageInfo(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return ec.resolvers.Query().EntityTypeSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*EntityTypeSearchResult) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOEntityTypeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entityTypeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistoryConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "entityTypes": + return ec.fieldContext_EntityTypeSearchResult_entityTypes(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityTypeSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_entityTypeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _Query_eventSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_eventSearch(ctx, field) if err != nil { return graphql.Null } @@ -87490,38 +173372,50 @@ func (ec *executionContext) _GroupHistoryConnection_totalCount(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return ec.resolvers.Query().EventSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(*EventSearchResult) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOEventSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_eventSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistoryConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "events": + return ec.fieldContext_EventSearchResult_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_eventSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistoryEdge_node(ctx, field) +func (ec *executionContext) _Query_featureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_featureSearch(ctx, field) if err != nil { return graphql.Null } @@ -87534,7 +173428,7 @@ func (ec *executionContext) _GroupHistoryEdge_node(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return ec.resolvers.Query().FeatureSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87543,62 +173437,41 @@ func (ec *executionContext) _GroupHistoryEdge_node(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.GroupHistory) + res := resTmp.(*FeatureSearchResult) fc.Result = res - return ec.marshalOGroupHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistory(ctx, field.Selections, res) + return ec.marshalOFeatureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_featureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistoryEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_GroupHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_GroupHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_GroupHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_GroupHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_GroupHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_GroupHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_GroupHistory_name(ctx, field) - case "description": - return ec.fieldContext_GroupHistory_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_GroupHistory_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_GroupHistory_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_GroupHistory_displayName(ctx, field) + case "features": + return ec.fieldContext_FeatureSearchResult_features(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type FeatureSearchResult", field.Name) }, } + defer func() { + if 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_featureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _Query_fileSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_fileSearch(ctx, field) if err != nil { return graphql.Null } @@ -87611,38 +173484,50 @@ func (ec *executionContext) _GroupHistoryEdge_cursor(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return ec.resolvers.Query().FileSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*FileSearchResult) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOFileSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_fileSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistoryEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "files": + return ec.fieldContext_FileSearchResult_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FileSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_fileSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_id(ctx, field) +func (ec *executionContext) _Query_groupSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupSearch(ctx, field) if err != nil { return graphql.Null } @@ -87655,38 +173540,50 @@ func (ec *executionContext) _GroupMembership_id(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return ec.resolvers.Query().GroupSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*GroupSearchResult) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOGroupSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "groups": + return ec.fieldContext_GroupSearchResult_groups(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_groupSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_createdAt(ctx, field) +func (ec *executionContext) _Query_groupSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupSettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -87699,7 +173596,7 @@ func (ec *executionContext) _GroupMembership_createdAt(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return ec.resolvers.Query().GroupSettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87708,26 +173605,41 @@ func (ec *executionContext) _GroupMembership_createdAt(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*GroupSettingSearchResult) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOGroupSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "groupSettings": + return ec.fieldContext_GroupSettingSearchResult_groupSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_groupSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_updatedAt(ctx, field) +func (ec *executionContext) _Query_integrationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_integrationSearch(ctx, field) if err != nil { return graphql.Null } @@ -87740,7 +173652,7 @@ func (ec *executionContext) _GroupMembership_updatedAt(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return ec.resolvers.Query().IntegrationSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87749,26 +173661,41 @@ func (ec *executionContext) _GroupMembership_updatedAt(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*IntegrationSearchResult) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOIntegrationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_integrationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "integrations": + return ec.fieldContext_IntegrationSearchResult_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_integrationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_createdBy(ctx, field) +func (ec *executionContext) _Query_internalPolicySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_internalPolicySearch(ctx, field) if err != nil { return graphql.Null } @@ -87781,7 +173708,7 @@ func (ec *executionContext) _GroupMembership_createdBy(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return ec.resolvers.Query().InternalPolicySearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87790,26 +173717,41 @@ func (ec *executionContext) _GroupMembership_createdBy(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*InternalPolicySearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOInternalPolicySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicySearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_internalPolicySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "internalPolicies": + return ec.fieldContext_InternalPolicySearchResult_internalPolicies(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicySearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_internalPolicySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_updatedBy(ctx, field) +func (ec *executionContext) _Query_narrativeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_narrativeSearch(ctx, field) if err != nil { return graphql.Null } @@ -87822,7 +173764,7 @@ func (ec *executionContext) _GroupMembership_updatedBy(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return ec.resolvers.Query().NarrativeSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87831,26 +173773,41 @@ func (ec *executionContext) _GroupMembership_updatedBy(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*NarrativeSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalONarrativeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_narrativeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "narratives": + return ec.fieldContext_NarrativeSearchResult_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_narrativeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_deletedAt(ctx, field) +func (ec *executionContext) _Query_oauthProviderSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_oauthProviderSearch(ctx, field) if err != nil { return graphql.Null } @@ -87863,7 +173820,7 @@ func (ec *executionContext) _GroupMembership_deletedAt(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return ec.resolvers.Query().OauthProviderSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87872,26 +173829,41 @@ func (ec *executionContext) _GroupMembership_deletedAt(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*OauthProviderSearchResult) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOOauthProviderSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_oauthProviderSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "oauthProviders": + return ec.fieldContext_OauthProviderSearchResult_oauthProviders(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OauthProviderSearchResult", field.Name) }, } + defer func() { + if 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_oauthProviderSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_deletedBy(ctx, field) +func (ec *executionContext) _Query_ohAuthTooTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_ohAuthTooTokenSearch(ctx, field) if err != nil { return graphql.Null } @@ -87904,7 +173876,7 @@ func (ec *executionContext) _GroupMembership_deletedBy(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return ec.resolvers.Query().OhAuthTooTokenSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -87913,26 +173885,41 @@ func (ec *executionContext) _GroupMembership_deletedBy(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*OhAuthTooTokenSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOhAuthTooTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_ohAuthTooTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "ohAuthTooTokens": + return ec.fieldContext_OhAuthTooTokenSearchResult_ohAuthTooTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenSearchResult", field.Name) }, } + defer func() { + if 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_ohAuthTooTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_role(ctx, field) +func (ec *executionContext) _Query_organizationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizationSearch(ctx, field) if err != nil { return graphql.Null } @@ -87945,38 +173932,50 @@ func (ec *executionContext) _GroupMembership_role(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return ec.resolvers.Query().OrganizationSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.(*OrganizationSearchResult) fc.Result = res - return ec.marshalNGroupMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalOOrganizationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupMembershipRole does not have child fields") + switch field.Name { + case "organizations": + return ec.fieldContext_OrganizationSearchResult_organizations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_organizationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_groupID(ctx, field) +func (ec *executionContext) _Query_organizationSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizationSettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -87989,38 +173988,50 @@ func (ec *executionContext) _GroupMembership_groupID(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupID, nil + return ec.resolvers.Query().OrganizationSettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*OrganizationSettingSearchResult) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizationSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "organizationSettings": + return ec.fieldContext_OrganizationSettingSearchResult_organizationSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_organizationSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_userID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_userID(ctx, field) +func (ec *executionContext) _Query_personalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_personalAccessTokenSearch(ctx, field) if err != nil { return graphql.Null } @@ -88033,38 +174044,50 @@ func (ec *executionContext) _GroupMembership_userID(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserID, nil + return ec.resolvers.Query().PersonalAccessTokenSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*PersonalAccessTokenSearchResult) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOPersonalAccessTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_personalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "personalAccessTokens": + return ec.fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_personalAccessTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_group(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_group(ctx, field) +func (ec *executionContext) _Query_procedureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_procedureSearch(ctx, field) if err != nil { return graphql.Null } @@ -88077,82 +174100,50 @@ func (ec *executionContext) _GroupMembership_group(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group(ctx) + return ec.resolvers.Query().ProcedureSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Group) + res := resTmp.(*ProcedureSearchResult) fc.Result = res - return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) + return ec.marshalOProcedureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_procedureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + case "procedures": + return ec.fieldContext_ProcedureSearchResult_procedures(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProcedureSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_procedureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_user(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_user(ctx, field) +func (ec *executionContext) _Query_riskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_riskSearch(ctx, field) if err != nil { return graphql.Null } @@ -88165,100 +174156,50 @@ func (ec *executionContext) _GroupMembership_user(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User(ctx) + return ec.resolvers.Query().RiskSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.User) + res := resTmp.(*RiskSearchResult) fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return ec.marshalORiskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_riskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) + case "risks": + return ec.fieldContext_RiskSearchResult_risks(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RiskSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_riskSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembership_events(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_events(ctx, field) +func (ec *executionContext) _Query_standardSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_standardSearch(ctx, field) if err != nil { return graphql.Null } @@ -88271,7 +174212,7 @@ func (ec *executionContext) _GroupMembership_events(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return ec.resolvers.Query().StandardSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -88280,82 +174221,41 @@ func (ec *executionContext) _GroupMembership_events(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(*StandardSearchResult) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOStandardSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_standardSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + case "standards": + return ec.fieldContext_StandardSearchResult_standards(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, fmt.Errorf("no field named %q was found under type StandardSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_standardSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipBulkCreatePayload_groupMemberships(ctx context.Context, field graphql.CollectedField, obj *GroupMembershipBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(ctx, field) +func (ec *executionContext) _Query_subcontrolSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subcontrolSearch(ctx, field) if err != nil { return graphql.Null } @@ -88368,7 +174268,7 @@ func (ec *executionContext) _GroupMembershipBulkCreatePayload_groupMemberships(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupMemberships, nil + return ec.resolvers.Query().SubcontrolSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -88377,54 +174277,41 @@ func (ec *executionContext) _GroupMembershipBulkCreatePayload_groupMemberships(c if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupMembership) + res := resTmp.(*SubcontrolSearchResult) fc.Result = res - return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) + return ec.marshalOSubcontrolSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subcontrolSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipBulkCreatePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) + case "subcontrols": + return ec.fieldContext_SubcontrolSearchResult_subcontrols(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubcontrolSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_subcontrolSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipConnection_edges(ctx, field) +func (ec *executionContext) _Query_subscriberSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subscriberSearch(ctx, field) if err != nil { return graphql.Null } @@ -88437,7 +174324,7 @@ func (ec *executionContext) _GroupMembershipConnection_edges(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return ec.resolvers.Query().SubscriberSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -88446,32 +174333,41 @@ func (ec *executionContext) _GroupMembershipConnection_edges(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupMembershipEdge) + res := resTmp.(*SubscriberSearchResult) fc.Result = res - return ec.marshalOGroupMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipEdge(ctx, field.Selections, res) + return ec.marshalOSubscriberSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subscriberSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_GroupMembershipEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_GroupMembershipEdge_cursor(ctx, field) + case "subscribers": + return ec.fieldContext_SubscriberSearchResult_subscribers(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubscriberSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_subscriberSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipConnection_pageInfo(ctx, field) +func (ec *executionContext) _Query_tFASettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_tFASettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -88484,48 +174380,50 @@ func (ec *executionContext) _GroupMembershipConnection_pageInfo(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return ec.resolvers.Query().TFASettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*TFASettingSearchResult) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOTFASettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_tFASettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "tFASettings": + return ec.fieldContext_TFASettingSearchResult_tFASettings(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TFASettingSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_tFASettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipConnection_totalCount(ctx, field) +func (ec *executionContext) _Query_templateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_templateSearch(ctx, field) if err != nil { return graphql.Null } @@ -88538,38 +174436,50 @@ func (ec *executionContext) _GroupMembershipConnection_totalCount(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return ec.resolvers.Query().TemplateSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(*TemplateSearchResult) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOTemplateSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_templateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "templates": + return ec.fieldContext_TemplateSearchResult_templates(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_templateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipCreatePayload_groupMembership(ctx context.Context, field graphql.CollectedField, obj *GroupMembershipCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipCreatePayload_groupMembership(ctx, field) +func (ec *executionContext) _Query_userSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userSearch(ctx, field) if err != nil { return graphql.Null } @@ -88582,66 +174492,50 @@ func (ec *executionContext) _GroupMembershipCreatePayload_groupMembership(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupMembership, nil + return ec.resolvers.Query().UserSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.GroupMembership) + res := resTmp.(*UserSearchResult) fc.Result = res - return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) + return ec.marshalOUserSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipCreatePayload_groupMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_userSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipCreatePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) + case "users": + return ec.fieldContext_UserSearchResult_users(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_userSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *GroupMembershipDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Query_userSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userSettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -88654,38 +174548,50 @@ func (ec *executionContext) _GroupMembershipDeletePayload_deletedID(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return ec.resolvers.Query().UserSettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*UserSettingSearchResult) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOUserSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_userSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipDeletePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "userSettings": + return ec.fieldContext_UserSettingSearchResult_userSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingSearchResult", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_userSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipEdge_node(ctx, field) +func (ec *executionContext) _Query_webhookSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_webhookSearch(ctx, field) if err != nil { return graphql.Null } @@ -88698,7 +174604,7 @@ func (ec *executionContext) _GroupMembershipEdge_node(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return ec.resolvers.Query().WebhookSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -88707,54 +174613,41 @@ func (ec *executionContext) _GroupMembershipEdge_node(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.GroupMembership) + res := resTmp.(*WebhookSearchResult) fc.Result = res - return ec.marshalOGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) + return ec.marshalOWebhookSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_webhookSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) + case "webhooks": + return ec.fieldContext_WebhookSearchResult_webhooks(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + return nil, fmt.Errorf("no field named %q was found under type WebhookSearchResult", field.Name) }, } + defer func() { + if 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_webhookSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipEdge_cursor(ctx, field) +func (ec *executionContext) _Query_search(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_search(ctx, field) if err != nil { return graphql.Null } @@ -88767,38 +174660,52 @@ func (ec *executionContext) _GroupMembershipEdge_cursor(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return ec.resolvers.Query().Search(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*SearchResultConnection) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOSearchResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_search(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "page": + return ec.fieldContext_SearchResultConnection_page(ctx, field) + case "nodes": + return ec.fieldContext_SearchResultConnection_nodes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SearchResultConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_search_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_id(ctx, field) +func (ec *executionContext) _Query_adminSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminSearch(ctx, field) if err != nil { return graphql.Null } @@ -88811,38 +174718,52 @@ func (ec *executionContext) _GroupMembershipHistory_id(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return ec.resolvers.Query().AdminSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*SearchResultConnection) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOSearchResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "page": + return ec.fieldContext_SearchResultConnection_page(ctx, field) + case "nodes": + return ec.fieldContext_SearchResultConnection_nodes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SearchResultConnection", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_adminSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_historyTime(ctx, field) +func (ec *executionContext) _Query_standard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_standard(ctx, field) if err != nil { return graphql.Null } @@ -88855,7 +174776,7 @@ func (ec *executionContext) _GroupMembershipHistory_historyTime(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return ec.resolvers.Query().Standard(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -88867,26 +174788,83 @@ func (ec *executionContext) _GroupMembershipHistory_historyTime(ctx context.Cont } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.Standard) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_standard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_Standard_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionplans": + return ec.fieldContext_Standard_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_standard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_ref(ctx, field) +func (ec *executionContext) _Query_subcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subcontrol(ctx, field) if err != nil { return graphql.Null } @@ -88899,35 +174877,105 @@ func (ec *executionContext) _GroupMembershipHistory_ref(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return ec.resolvers.Query().Subcontrol(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Subcontrol) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "control": + return ec.fieldContext_Subcontrol_control(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_subcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_operation(ctx, field) +func (ec *executionContext) _Query_subscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subscriber(ctx, field) if err != nil { return graphql.Null } @@ -88940,7 +174988,7 @@ func (ec *executionContext) _GroupMembershipHistory_operation(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return ec.resolvers.Query().Subscriber(rctx, fc.Args["email"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -88952,67 +175000,71 @@ func (ec *executionContext) _GroupMembershipHistory_operation(ctx context.Contex } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(*generated.Subscriber) fc.Result = res - return ec.marshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupMembershipHistoryOpType does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _GroupMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_subscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GroupMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_updatedAt(ctx, field) +func (ec *executionContext) _Query_template(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_template(ctx, field) if err != nil { return graphql.Null } @@ -89025,35 +175077,85 @@ func (ec *executionContext) _GroupMembershipHistory_updatedAt(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return ec.resolvers.Query().Template(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.Template) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_template(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_template_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_createdBy(ctx, field) +func (ec *executionContext) _Query_tfaSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_tfaSetting(ctx, field) if err != nil { return graphql.Null } @@ -89066,35 +175168,77 @@ func (ec *executionContext) _GroupMembershipHistory_createdBy(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return ec.resolvers.Query().TfaSetting(rctx, fc.Args["id"].(*string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.TFASetting) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_tfaSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_TFASetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_TFASetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_TFASetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_TFASetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_TFASetting_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_TFASetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_TFASetting_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_TFASetting_tags(ctx, field) + case "tfaSecret": + return ec.fieldContext_TFASetting_tfaSecret(ctx, field) + case "verified": + return ec.fieldContext_TFASetting_verified(ctx, field) + case "recoveryCodes": + return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) + case "totpAllowed": + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + case "owner": + return ec.fieldContext_TFASetting_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_tfaSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_updatedBy(ctx, field) +func (ec *executionContext) _Query_user(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_user(ctx, field) if err != nil { return graphql.Null } @@ -89107,35 +175251,115 @@ func (ec *executionContext) _GroupMembershipHistory_updatedBy(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return ec.resolvers.Query().User(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_user_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_deletedAt(ctx, field) +func (ec *executionContext) _Query_userSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userSetting(ctx, field) if err != nil { return graphql.Null } @@ -89148,35 +175372,89 @@ func (ec *executionContext) _GroupMembershipHistory_deletedAt(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return ec.resolvers.Query().UserSetting(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.UserSetting) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_userSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_userSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_deletedBy(ctx, field) +func (ec *executionContext) _Query_webhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_webhook(ctx, field) if err != nil { return graphql.Null } @@ -89189,35 +175467,89 @@ func (ec *executionContext) _GroupMembershipHistory_deletedBy(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return ec.resolvers.Query().Webhook(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Webhook) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNWebhook2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhook(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_webhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Webhook_id(ctx, field) + case "createdAt": + return ec.fieldContext_Webhook_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Webhook_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Webhook_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Webhook_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Webhook_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Webhook_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Webhook_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Webhook_ownerID(ctx, field) + case "name": + return ec.fieldContext_Webhook_name(ctx, field) + case "description": + return ec.fieldContext_Webhook_description(ctx, field) + case "destinationURL": + return ec.fieldContext_Webhook_destinationURL(ctx, field) + case "enabled": + return ec.fieldContext_Webhook_enabled(ctx, field) + case "failures": + return ec.fieldContext_Webhook_failures(ctx, field) + case "lastError": + return ec.fieldContext_Webhook_lastError(ctx, field) + case "lastResponse": + return ec.fieldContext_Webhook_lastResponse(ctx, field) + case "owner": + return ec.fieldContext_Webhook_owner(ctx, field) + case "events": + return ec.fieldContext_Webhook_events(ctx, field) + case "integrations": + return ec.fieldContext_Webhook_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) }, } + defer func() { + if 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_webhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_role(ctx, field) +func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query___type(ctx, field) if err != nil { return graphql.Null } @@ -89230,38 +175562,68 @@ func (ec *executionContext) _GroupMembershipHistory_role(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return ec.introspectType(fc.Args["name"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.(*introspection.Type) fc.Result = res - return ec.marshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "Query", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupMembershipHistoryRole does not have child fields") + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_groupID(ctx, field) +func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query___schema(ctx, field) if err != nil { return graphql.Null } @@ -89274,38 +175636,49 @@ func (ec *executionContext) _GroupMembershipHistory_groupID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupID, nil + return ec.introspectSchema() }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*introspection.Schema) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "Query", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "description": + return ec.fieldContext___Schema_description(ctx, field) + case "types": + return ec.fieldContext___Schema_types(ctx, field) + case "queryType": + return ec.fieldContext___Schema_queryType(ctx, field) + case "mutationType": + return ec.fieldContext___Schema_mutationType(ctx, field) + case "subscriptionType": + return ec.fieldContext___Schema_subscriptionType(ctx, field) + case "directives": + return ec.fieldContext___Schema_directives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_userID(ctx, field) +func (ec *executionContext) _Risk_id(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_id(ctx, field) if err != nil { return graphql.Null } @@ -89318,7 +175691,7 @@ func (ec *executionContext) _GroupMembershipHistory_userID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserID, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -89332,24 +175705,24 @@ func (ec *executionContext) _GroupMembershipHistory_userID(ctx context.Context, } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistoryConnection_edges(ctx, field) +func (ec *executionContext) _Risk_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -89362,7 +175735,7 @@ func (ec *executionContext) _GroupMembershipHistoryConnection_edges(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -89371,32 +175744,26 @@ func (ec *executionContext) _GroupMembershipHistoryConnection_edges(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupMembershipHistoryEdge) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOGroupMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryEdge(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryConnection", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_GroupMembershipHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_GroupMembershipHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipHistoryEdge", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Risk_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -89409,48 +175776,35 @@ func (ec *executionContext) _GroupMembershipHistoryConnection_pageInfo(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryConnection", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _Risk_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -89463,38 +175817,35 @@ func (ec *executionContext) _GroupMembershipHistoryConnection_totalCount(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryConnection", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistoryEdge_node(ctx, field) +func (ec *executionContext) _Risk_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -89507,7 +175858,7 @@ func (ec *executionContext) _GroupMembershipHistoryEdge_node(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -89516,54 +175867,26 @@ func (ec *executionContext) _GroupMembershipHistoryEdge_node(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.GroupMembershipHistory) + res := resTmp.(string) fc.Result = res - return ec.marshalOGroupMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistory(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryEdge", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_GroupMembershipHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_GroupMembershipHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_GroupMembershipHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_GroupMembershipHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembershipHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembershipHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembershipHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembershipHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembershipHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembershipHistory_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembershipHistory_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembershipHistory_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembershipHistory_userID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipHistory", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _Risk_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -89576,38 +175899,35 @@ func (ec *executionContext) _GroupMembershipHistoryEdge_cursor(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryEdge", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembershipUpdatePayload_groupMembership(ctx context.Context, field graphql.CollectedField, obj *GroupMembershipUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipUpdatePayload_groupMembership(ctx, field) +func (ec *executionContext) _Risk_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -89620,66 +175940,35 @@ func (ec *executionContext) _GroupMembershipUpdatePayload_groupMembership(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupMembership, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.GroupMembership) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipUpdatePayload_groupMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipUpdatePayload", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSearchResult_groups(ctx context.Context, field graphql.CollectedField, obj *GroupSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSearchResult_groups(ctx, field) +func (ec *executionContext) _Risk_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_tags(ctx, field) if err != nil { return graphql.Null } @@ -89692,7 +175981,7 @@ func (ec *executionContext) _GroupSearchResult_groups(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Groups, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -89701,70 +175990,26 @@ func (ec *executionContext) _GroupSearchResult_groups(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.([]string) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSearchResult_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSearchResult", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_id(ctx, field) +func (ec *executionContext) _Risk_name(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_name(ctx, field) if err != nil { return graphql.Null } @@ -89777,7 +176022,7 @@ func (ec *executionContext) _GroupSetting_id(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -89791,24 +176036,24 @@ func (ec *executionContext) _GroupSetting_id(ctx context.Context, field graphql. } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_createdAt(ctx, field) +func (ec *executionContext) _Risk_description(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_description(ctx, field) if err != nil { return graphql.Null } @@ -89821,7 +176066,7 @@ func (ec *executionContext) _GroupSetting_createdAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -89830,26 +176075,26 @@ func (ec *executionContext) _GroupSetting_createdAt(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_updatedAt(ctx, field) +func (ec *executionContext) _Risk_status(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_status(ctx, field) if err != nil { return graphql.Null } @@ -89862,7 +176107,7 @@ func (ec *executionContext) _GroupSetting_updatedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -89871,26 +176116,26 @@ func (ec *executionContext) _GroupSetting_updatedAt(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_createdBy(ctx, field) +func (ec *executionContext) _Risk_riskType(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_riskType(ctx, field) if err != nil { return graphql.Null } @@ -89903,7 +176148,7 @@ func (ec *executionContext) _GroupSetting_createdBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.RiskType, nil }) if err != nil { ec.Error(ctx, err) @@ -89917,9 +176162,9 @@ func (ec *executionContext) _GroupSetting_createdBy(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_riskType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, @@ -89930,8 +176175,8 @@ func (ec *executionContext) fieldContext_GroupSetting_createdBy(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_updatedBy(ctx, field) +func (ec *executionContext) _Risk_businessCosts(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_businessCosts(ctx, field) if err != nil { return graphql.Null } @@ -89944,7 +176189,7 @@ func (ec *executionContext) _GroupSetting_updatedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.BusinessCosts, nil }) if err != nil { ec.Error(ctx, err) @@ -89958,9 +176203,9 @@ func (ec *executionContext) _GroupSetting_updatedBy(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_businessCosts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, @@ -89971,8 +176216,8 @@ func (ec *executionContext) fieldContext_GroupSetting_updatedBy(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_tags(ctx, field) +func (ec *executionContext) _Risk_impact(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_impact(ctx, field) if err != nil { return graphql.Null } @@ -89985,7 +176230,7 @@ func (ec *executionContext) _GroupSetting_tags(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Impact, nil }) if err != nil { ec.Error(ctx, err) @@ -89994,26 +176239,26 @@ func (ec *executionContext) _GroupSetting_tags(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(enums.RiskImpact) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalORiskRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type RiskRiskImpact does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_deletedAt(ctx, field) +func (ec *executionContext) _Risk_likelihood(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_likelihood(ctx, field) if err != nil { return graphql.Null } @@ -90026,7 +176271,7 @@ func (ec *executionContext) _GroupSetting_deletedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Likelihood, nil }) if err != nil { ec.Error(ctx, err) @@ -90035,26 +176280,26 @@ func (ec *executionContext) _GroupSetting_deletedAt(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(enums.RiskLikelihood) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalORiskRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_likelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type RiskRiskLikelihood does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_deletedBy(ctx, field) +func (ec *executionContext) _Risk_mitigation(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_mitigation(ctx, field) if err != nil { return graphql.Null } @@ -90067,7 +176312,7 @@ func (ec *executionContext) _GroupSetting_deletedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Mitigation, nil }) if err != nil { ec.Error(ctx, err) @@ -90081,9 +176326,9 @@ func (ec *executionContext) _GroupSetting_deletedBy(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_mitigation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, @@ -90094,52 +176339,8 @@ func (ec *executionContext) fieldContext_GroupSetting_deletedBy(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupSetting_visibility(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_visibility(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Visibility, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(enums.Visibility) - fc.Result = res - return ec.marshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GroupSetting_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupSettingVisibility does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _GroupSetting_joinPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_joinPolicy(ctx, field) +func (ec *executionContext) _Risk_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -90152,38 +176353,35 @@ func (ec *executionContext) _GroupSetting_joinPolicy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.JoinPolicy, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.JoinPolicy) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupSettingJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_joinPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupSettingJoinPolicy does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_syncToSlack(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_syncToSlack(ctx, field) +func (ec *executionContext) _Risk_details(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_details(ctx, field) if err != nil { return graphql.Null } @@ -90196,7 +176394,7 @@ func (ec *executionContext) _GroupSetting_syncToSlack(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SyncToSlack, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -90205,26 +176403,26 @@ func (ec *executionContext) _GroupSetting_syncToSlack(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_syncToSlack(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_syncToGithub(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_syncToGithub(ctx, field) +func (ec *executionContext) _Risk_control(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_control(ctx, field) if err != nil { return graphql.Null } @@ -90237,7 +176435,7 @@ func (ec *executionContext) _GroupSetting_syncToGithub(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SyncToGithub, nil + return obj.Control(ctx) }) if err != nil { ec.Error(ctx, err) @@ -90246,26 +176444,82 @@ func (ec *executionContext) _GroupSetting_syncToGithub(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_syncToGithub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSetting_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_groupID(ctx, field) +func (ec *executionContext) _Risk_procedure(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_procedure(ctx, field) if err != nil { return graphql.Null } @@ -90278,7 +176532,7 @@ func (ec *executionContext) _GroupSetting_groupID(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupID, nil + return obj.Procedure(ctx) }) if err != nil { ec.Error(ctx, err) @@ -90287,26 +176541,70 @@ func (ec *executionContext) _GroupSetting_groupID(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "control": + return ec.fieldContext_Procedure_control(ctx, field) + case "internalpolicy": + return ec.fieldContext_Procedure_internalpolicy(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSetting_group(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_group(ctx, field) +func (ec *executionContext) _Risk_actionplans(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_actionplans(ctx, field) if err != nil { return graphql.Null } @@ -90319,7 +176617,7 @@ func (ec *executionContext) _GroupSetting_group(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group(ctx) + return obj.Actionplans(ctx) }) if err != nil { ec.Error(ctx, err) @@ -90328,70 +176626,66 @@ func (ec *executionContext) _GroupSetting_group(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Group) + res := resTmp.([]*generated.ActionPlan) fc.Result = res - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) + return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_actionplans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Group_id(ctx, field) + return ec.fieldContext_ActionPlan_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_ActionPlan_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_ActionPlan_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) + return ec.fieldContext_ActionPlan_tags(ctx, field) case "name": - return ec.fieldContext_Group_name(ctx, field) + return ec.fieldContext_ActionPlan_name(ctx, field) case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingBulkCreatePayload_groupSettings(ctx context.Context, field graphql.CollectedField, obj *GroupSettingBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingBulkCreatePayload_groupSettings(ctx, field) +func (ec *executionContext) _RiskBulkCreatePayload_risks(ctx context.Context, field graphql.CollectedField, obj *RiskBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskBulkCreatePayload_risks(ctx, field) if err != nil { return graphql.Null } @@ -90404,7 +176698,7 @@ func (ec *executionContext) _GroupSettingBulkCreatePayload_groupSettings(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupSettings, nil + return obj.Risks, nil }) if err != nil { ec.Error(ctx, err) @@ -90413,56 +176707,70 @@ func (ec *executionContext) _GroupSettingBulkCreatePayload_groupSettings(ctx con if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupSetting) + res := resTmp.([]*generated.Risk) fc.Result = res - return ec.marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingᚄ(ctx, field.Selections, res) + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingBulkCreatePayload_groupSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskBulkCreatePayload_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingBulkCreatePayload", + Object: "RiskBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_GroupSetting_id(ctx, field) + return ec.fieldContext_Risk_id(ctx, field) case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) + return ec.fieldContext_Risk_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + return ec.fieldContext_Risk_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) + return ec.fieldContext_Risk_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) + return ec.fieldContext_Risk_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + return ec.fieldContext_Risk_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionplans": + return ec.fieldContext_Risk_actionplans(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingConnection_edges(ctx, field) +func (ec *executionContext) _RiskConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -90484,32 +176792,32 @@ func (ec *executionContext) _GroupSettingConnection_edges(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupSettingEdge) + res := resTmp.([]*generated.RiskEdge) fc.Result = res - return ec.marshalOGroupSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingEdge(ctx, field.Selections, res) + return ec.marshalORiskEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingConnection", + Object: "RiskConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_GroupSettingEdge_node(ctx, field) + return ec.fieldContext_RiskEdge_node(ctx, field) case "cursor": - return ec.fieldContext_GroupSettingEdge_cursor(ctx, field) + return ec.fieldContext_RiskEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RiskEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingConnection_pageInfo(ctx, field) +func (ec *executionContext) _RiskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -90539,9 +176847,9 @@ func (ec *executionContext) _GroupSettingConnection_pageInfo(ctx context.Context return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingConnection", + Object: "RiskConnection", Field: field, IsMethod: false, IsResolver: false, @@ -90562,8 +176870,8 @@ func (ec *executionContext) fieldContext_GroupSettingConnection_pageInfo(_ conte return fc, nil } -func (ec *executionContext) _GroupSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingConnection_totalCount(ctx, field) +func (ec *executionContext) _RiskConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -90593,9 +176901,9 @@ func (ec *executionContext) _GroupSettingConnection_totalCount(ctx context.Conte return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingConnection", + Object: "RiskConnection", Field: field, IsMethod: false, IsResolver: false, @@ -90606,8 +176914,8 @@ func (ec *executionContext) fieldContext_GroupSettingConnection_totalCount(_ con return fc, nil } -func (ec *executionContext) _GroupSettingCreatePayload_groupSetting(ctx context.Context, field graphql.CollectedField, obj *GroupSettingCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingCreatePayload_groupSetting(ctx, field) +func (ec *executionContext) _RiskCreatePayload_risk(ctx context.Context, field graphql.CollectedField, obj *RiskCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskCreatePayload_risk(ctx, field) if err != nil { return graphql.Null } @@ -90620,7 +176928,7 @@ func (ec *executionContext) _GroupSettingCreatePayload_groupSetting(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupSetting, nil + return obj.Risk, nil }) if err != nil { ec.Error(ctx, err) @@ -90632,56 +176940,70 @@ func (ec *executionContext) _GroupSettingCreatePayload_groupSetting(ctx context. } return graphql.Null } - res := resTmp.(*generated.GroupSetting) + res := resTmp.(*generated.Risk) fc.Result = res - return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) + return ec.marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingCreatePayload_groupSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskCreatePayload_risk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingCreatePayload", + Object: "RiskCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_GroupSetting_id(ctx, field) + return ec.fieldContext_Risk_id(ctx, field) case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) + return ec.fieldContext_Risk_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + return ec.fieldContext_Risk_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) + return ec.fieldContext_Risk_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) + return ec.fieldContext_Risk_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + return ec.fieldContext_Risk_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionplans": + return ec.fieldContext_Risk_actionplans(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *GroupSettingDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _RiskDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *RiskDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -90711,9 +177033,9 @@ func (ec *executionContext) _GroupSettingDeletePayload_deletedID(ctx context.Con return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingDeletePayload", + Object: "RiskDeletePayload", Field: field, IsMethod: false, IsResolver: false, @@ -90724,8 +177046,8 @@ func (ec *executionContext) fieldContext_GroupSettingDeletePayload_deletedID(_ c return fc, nil } -func (ec *executionContext) _GroupSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingEdge_node(ctx, field) +func (ec *executionContext) _RiskEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.RiskEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -90747,56 +177069,70 @@ func (ec *executionContext) _GroupSettingEdge_node(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.GroupSetting) + res := resTmp.(*generated.Risk) fc.Result = res - return ec.marshalOGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) + return ec.marshalORisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingEdge", + Object: "RiskEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_GroupSetting_id(ctx, field) + return ec.fieldContext_Risk_id(ctx, field) case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) + return ec.fieldContext_Risk_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + return ec.fieldContext_Risk_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) + return ec.fieldContext_Risk_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) + return ec.fieldContext_Risk_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + return ec.fieldContext_Risk_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionplans": + return ec.fieldContext_Risk_actionplans(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingEdge_cursor(ctx, field) +func (ec *executionContext) _RiskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.RiskEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -90826,9 +177162,9 @@ func (ec *executionContext) _GroupSettingEdge_cursor(ctx context.Context, field return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingEdge", + Object: "RiskEdge", Field: field, IsMethod: false, IsResolver: false, @@ -90839,8 +177175,8 @@ func (ec *executionContext) fieldContext_GroupSettingEdge_cursor(_ context.Conte return fc, nil } -func (ec *executionContext) _GroupSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_id(ctx, field) +func (ec *executionContext) _RiskHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -90870,9 +177206,9 @@ func (ec *executionContext) _GroupSettingHistory_id(ctx context.Context, field g return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -90883,8 +177219,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_id(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_historyTime(ctx, field) +func (ec *executionContext) _RiskHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -90914,9 +177250,9 @@ func (ec *executionContext) _GroupSettingHistory_historyTime(ctx context.Context return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -90927,8 +177263,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_historyTime(_ conte return fc, nil } -func (ec *executionContext) _GroupSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_ref(ctx, field) +func (ec *executionContext) _RiskHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -90955,9 +177291,9 @@ func (ec *executionContext) _GroupSettingHistory_ref(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -90968,8 +177304,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_ref(_ context.Conte return fc, nil } -func (ec *executionContext) _GroupSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_operation(ctx, field) +func (ec *executionContext) _RiskHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -90996,24 +177332,24 @@ func (ec *executionContext) _GroupSettingHistory_operation(ctx context.Context, } res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNRiskHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupSettingHistoryOpType does not have child fields") + return nil, errors.New("field of type RiskHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_createdAt(ctx, field) +func (ec *executionContext) _RiskHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -91040,9 +177376,9 @@ func (ec *executionContext) _GroupSettingHistory_createdAt(ctx context.Context, return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -91053,8 +177389,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_createdAt(_ context return fc, nil } -func (ec *executionContext) _GroupSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_updatedAt(ctx, field) +func (ec *executionContext) _RiskHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -91081,9 +177417,9 @@ func (ec *executionContext) _GroupSettingHistory_updatedAt(ctx context.Context, return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -91094,8 +177430,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_updatedAt(_ context return fc, nil } -func (ec *executionContext) _GroupSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_createdBy(ctx, field) +func (ec *executionContext) _RiskHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -91122,9 +177458,9 @@ func (ec *executionContext) _GroupSettingHistory_createdBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -91135,8 +177471,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_createdBy(_ context return fc, nil } -func (ec *executionContext) _GroupSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_updatedBy(ctx, field) +func (ec *executionContext) _RiskHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -91163,9 +177499,9 @@ func (ec *executionContext) _GroupSettingHistory_updatedBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -91176,8 +177512,90 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_updatedBy(_ context return fc, nil } -func (ec *executionContext) _GroupSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_tags(ctx, field) +func (ec *executionContext) _RiskHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RiskHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RiskHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _RiskHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RiskHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RiskHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _RiskHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -91204,9 +177622,9 @@ func (ec *executionContext) _GroupSettingHistory_tags(ctx context.Context, field return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -91217,8 +177635,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_tags(_ context.Cont return fc, nil } -func (ec *executionContext) _GroupSettingHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_deletedAt(ctx, field) +func (ec *executionContext) _RiskHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -91231,35 +177649,38 @@ func (ec *executionContext) _GroupSettingHistory_deletedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_deletedBy(ctx, field) +func (ec *executionContext) _RiskHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -91272,7 +177693,130 @@ func (ec *executionContext) _GroupSettingHistory_deletedBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Description, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RiskHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RiskHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _RiskHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RiskHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RiskHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _RiskHistory_riskType(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_riskType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RiskHistory_riskType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RiskHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _RiskHistory_businessCosts(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_businessCosts(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.BusinessCosts, nil }) if err != nil { ec.Error(ctx, err) @@ -91286,9 +177830,9 @@ func (ec *executionContext) _GroupSettingHistory_deletedBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_businessCosts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -91299,8 +177843,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_deletedBy(_ context return fc, nil } -func (ec *executionContext) _GroupSettingHistory_visibility(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_visibility(ctx, field) +func (ec *executionContext) _RiskHistory_impact(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_impact(ctx, field) if err != nil { return graphql.Null } @@ -91313,38 +177857,35 @@ func (ec *executionContext) _GroupSettingHistory_visibility(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Visibility, nil + return obj.Impact, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.Visibility) + res := resTmp.(enums.RiskImpact) fc.Result = res - return ec.marshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, field.Selections, res) + return ec.marshalORiskHistoryRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupSettingHistoryVisibility does not have child fields") + return nil, errors.New("field of type RiskHistoryRiskImpact does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistory_joinPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_joinPolicy(ctx, field) +func (ec *executionContext) _RiskHistory_likelihood(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_likelihood(ctx, field) if err != nil { return graphql.Null } @@ -91357,38 +177898,35 @@ func (ec *executionContext) _GroupSettingHistory_joinPolicy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.JoinPolicy, nil + return obj.Likelihood, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.JoinPolicy) + res := resTmp.(enums.RiskLikelihood) fc.Result = res - return ec.marshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, field.Selections, res) + return ec.marshalORiskHistoryRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_joinPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_likelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupSettingHistoryJoinPolicy does not have child fields") + return nil, errors.New("field of type RiskHistoryRiskLikelihood does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistory_syncToSlack(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_syncToSlack(ctx, field) +func (ec *executionContext) _RiskHistory_mitigation(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_mitigation(ctx, field) if err != nil { return graphql.Null } @@ -91401,7 +177939,7 @@ func (ec *executionContext) _GroupSettingHistory_syncToSlack(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SyncToSlack, nil + return obj.Mitigation, nil }) if err != nil { ec.Error(ctx, err) @@ -91410,26 +177948,26 @@ func (ec *executionContext) _GroupSettingHistory_syncToSlack(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_syncToSlack(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_mitigation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistory_syncToGithub(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_syncToGithub(ctx, field) +func (ec *executionContext) _RiskHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -91442,7 +177980,7 @@ func (ec *executionContext) _GroupSettingHistory_syncToGithub(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SyncToGithub, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, err) @@ -91451,26 +177989,26 @@ func (ec *executionContext) _GroupSettingHistory_syncToGithub(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_syncToGithub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_groupID(ctx, field) +func (ec *executionContext) _RiskHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -91483,7 +178021,7 @@ func (ec *executionContext) _GroupSettingHistory_groupID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupID, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -91492,26 +178030,26 @@ func (ec *executionContext) _GroupSettingHistory_groupID(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistoryConnection_edges(ctx, field) +func (ec *executionContext) _RiskHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -91533,32 +178071,32 @@ func (ec *executionContext) _GroupSettingHistoryConnection_edges(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupSettingHistoryEdge) + res := resTmp.([]*generated.RiskHistoryEdge) fc.Result = res - return ec.marshalOGroupSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryEdge(ctx, field.Selections, res) + return ec.marshalORiskHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryConnection", + Object: "RiskHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_GroupSettingHistoryEdge_node(ctx, field) + return ec.fieldContext_RiskHistoryEdge_node(ctx, field) case "cursor": - return ec.fieldContext_GroupSettingHistoryEdge_cursor(ctx, field) + return ec.fieldContext_RiskHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RiskHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _RiskHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -91588,9 +178126,9 @@ func (ec *executionContext) _GroupSettingHistoryConnection_pageInfo(ctx context. return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryConnection", + Object: "RiskHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -91611,8 +178149,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_pageInfo( return fc, nil } -func (ec *executionContext) _GroupSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _RiskHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -91642,9 +178180,9 @@ func (ec *executionContext) _GroupSettingHistoryConnection_totalCount(ctx contex return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryConnection", + Object: "RiskHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -91655,8 +178193,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_totalCoun return fc, nil } -func (ec *executionContext) _GroupSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistoryEdge_node(ctx, field) +func (ec *executionContext) _RiskHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -91678,60 +178216,70 @@ func (ec *executionContext) _GroupSettingHistoryEdge_node(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.GroupSettingHistory) + res := resTmp.(*generated.RiskHistory) fc.Result = res - return ec.marshalOGroupSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistory(ctx, field.Selections, res) + return ec.marshalORiskHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryEdge", + Object: "RiskHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_GroupSettingHistory_id(ctx, field) + return ec.fieldContext_RiskHistory_id(ctx, field) case "historyTime": - return ec.fieldContext_GroupSettingHistory_historyTime(ctx, field) + return ec.fieldContext_RiskHistory_historyTime(ctx, field) case "ref": - return ec.fieldContext_GroupSettingHistory_ref(ctx, field) + return ec.fieldContext_RiskHistory_ref(ctx, field) case "operation": - return ec.fieldContext_GroupSettingHistory_operation(ctx, field) + return ec.fieldContext_RiskHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_GroupSettingHistory_createdAt(ctx, field) + return ec.fieldContext_RiskHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupSettingHistory_updatedAt(ctx, field) + return ec.fieldContext_RiskHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_GroupSettingHistory_createdBy(ctx, field) + return ec.fieldContext_RiskHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_GroupSettingHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSettingHistory_tags(ctx, field) + return ec.fieldContext_RiskHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_GroupSettingHistory_deletedAt(ctx, field) + return ec.fieldContext_RiskHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_GroupSettingHistory_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSettingHistory_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSettingHistory_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSettingHistory_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSettingHistory_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSettingHistory_groupID(ctx, field) + return ec.fieldContext_RiskHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_RiskHistory_tags(ctx, field) + case "name": + return ec.fieldContext_RiskHistory_name(ctx, field) + case "description": + return ec.fieldContext_RiskHistory_description(ctx, field) + case "status": + return ec.fieldContext_RiskHistory_status(ctx, field) + case "riskType": + return ec.fieldContext_RiskHistory_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_RiskHistory_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_RiskHistory_impact(ctx, field) + case "likelihood": + return ec.fieldContext_RiskHistory_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_RiskHistory_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_RiskHistory_satisfies(ctx, field) + case "details": + return ec.fieldContext_RiskHistory_details(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RiskHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _RiskHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -91761,9 +178309,9 @@ func (ec *executionContext) _GroupSettingHistoryEdge_cursor(ctx context.Context, return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryEdge", + Object: "RiskHistoryEdge", Field: field, IsMethod: false, IsResolver: false, @@ -91774,8 +178322,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistoryEdge_cursor(_ contex return fc, nil } -func (ec *executionContext) _GroupSettingSearchResult_groupSettings(ctx context.Context, field graphql.CollectedField, obj *GroupSettingSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingSearchResult_groupSettings(ctx, field) +func (ec *executionContext) _RiskSearchResult_risks(ctx context.Context, field graphql.CollectedField, obj *RiskSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskSearchResult_risks(ctx, field) if err != nil { return graphql.Null } @@ -91788,7 +178336,7 @@ func (ec *executionContext) _GroupSettingSearchResult_groupSettings(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupSettings, nil + return obj.Risks, nil }) if err != nil { ec.Error(ctx, err) @@ -91797,56 +178345,70 @@ func (ec *executionContext) _GroupSettingSearchResult_groupSettings(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupSetting) + res := resTmp.([]*generated.Risk) fc.Result = res - return ec.marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingᚄ(ctx, field.Selections, res) + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingSearchResult_groupSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskSearchResult_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingSearchResult", + Object: "RiskSearchResult", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_GroupSetting_id(ctx, field) + return ec.fieldContext_Risk_id(ctx, field) case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) + return ec.fieldContext_Risk_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + return ec.fieldContext_Risk_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) + return ec.fieldContext_Risk_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) + return ec.fieldContext_Risk_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + return ec.fieldContext_Risk_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionplans": + return ec.fieldContext_Risk_actionplans(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingUpdatePayload_groupSetting(ctx context.Context, field graphql.CollectedField, obj *GroupSettingUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingUpdatePayload_groupSetting(ctx, field) +func (ec *executionContext) _RiskUpdatePayload_risk(ctx context.Context, field graphql.CollectedField, obj *RiskUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskUpdatePayload_risk(ctx, field) if err != nil { return graphql.Null } @@ -91859,7 +178421,7 @@ func (ec *executionContext) _GroupSettingUpdatePayload_groupSetting(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupSetting, nil + return obj.Risk, nil }) if err != nil { ec.Error(ctx, err) @@ -91871,56 +178433,70 @@ func (ec *executionContext) _GroupSettingUpdatePayload_groupSetting(ctx context. } return graphql.Null } - res := resTmp.(*generated.GroupSetting) + res := resTmp.(*generated.Risk) fc.Result = res - return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) + return ec.marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingUpdatePayload_groupSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskUpdatePayload_risk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingUpdatePayload", + Object: "RiskUpdatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_GroupSetting_id(ctx, field) + return ec.fieldContext_Risk_id(ctx, field) case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) + return ec.fieldContext_Risk_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + return ec.fieldContext_Risk_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) + return ec.fieldContext_Risk_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) + return ec.fieldContext_Risk_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + return ec.fieldContext_Risk_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionplans": + return ec.fieldContext_Risk_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupUpdatePayload_group(ctx context.Context, field graphql.CollectedField, obj *GroupUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupUpdatePayload_group(ctx, field) +func (ec *executionContext) _SearchResultConnection_page(ctx context.Context, field graphql.CollectedField, obj *SearchResultConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SearchResultConnection_page(ctx, field) if err != nil { return graphql.Null } @@ -91933,7 +178509,7 @@ func (ec *executionContext) _GroupUpdatePayload_group(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group, nil + return obj.Page, nil }) if err != nil { ec.Error(ctx, err) @@ -91945,70 +178521,80 @@ func (ec *executionContext) _GroupUpdatePayload_group(ctx context.Context, field } return graphql.Null } - res := resTmp.(*generated.Group) + res := resTmp.(*entgql.PageInfo[string]) fc.Result = res - return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) + return ec.marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupUpdatePayload_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SearchResultConnection_page(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupUpdatePayload", + Object: "SearchResultConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Hush_id(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_id(ctx, field) +func (ec *executionContext) _SearchResultConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *SearchResultConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SearchResultConnection_nodes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Nodes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]SearchResult) + fc.Result = res + return ec.marshalNSearchResult2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SearchResultConnection_nodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SearchResultConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type SearchResult does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Standard_id(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_id(ctx, field) if err != nil { return graphql.Null } @@ -92038,9 +178624,9 @@ func (ec *executionContext) _Hush_id(ctx context.Context, field graphql.Collecte return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -92051,8 +178637,8 @@ func (ec *executionContext) fieldContext_Hush_id(_ context.Context, field graphq return fc, nil } -func (ec *executionContext) _Hush_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_createdAt(ctx, field) +func (ec *executionContext) _Standard_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -92079,9 +178665,9 @@ func (ec *executionContext) _Hush_createdAt(ctx context.Context, field graphql.C return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -92092,8 +178678,8 @@ func (ec *executionContext) fieldContext_Hush_createdAt(_ context.Context, field return fc, nil } -func (ec *executionContext) _Hush_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_updatedAt(ctx, field) +func (ec *executionContext) _Standard_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -92120,9 +178706,9 @@ func (ec *executionContext) _Hush_updatedAt(ctx context.Context, field graphql.C return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -92133,8 +178719,8 @@ func (ec *executionContext) fieldContext_Hush_updatedAt(_ context.Context, field return fc, nil } -func (ec *executionContext) _Hush_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_createdBy(ctx, field) +func (ec *executionContext) _Standard_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -92161,9 +178747,9 @@ func (ec *executionContext) _Hush_createdBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -92174,8 +178760,8 @@ func (ec *executionContext) fieldContext_Hush_createdBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _Hush_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_updatedBy(ctx, field) +func (ec *executionContext) _Standard_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -92202,9 +178788,9 @@ func (ec *executionContext) _Hush_updatedBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -92215,8 +178801,8 @@ func (ec *executionContext) fieldContext_Hush_updatedBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _Hush_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_deletedAt(ctx, field) +func (ec *executionContext) _Standard_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -92243,9 +178829,9 @@ func (ec *executionContext) _Hush_deletedAt(ctx context.Context, field graphql.C return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -92256,8 +178842,8 @@ func (ec *executionContext) fieldContext_Hush_deletedAt(_ context.Context, field return fc, nil } -func (ec *executionContext) _Hush_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_deletedBy(ctx, field) +func (ec *executionContext) _Standard_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -92284,9 +178870,9 @@ func (ec *executionContext) _Hush_deletedBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -92297,8 +178883,49 @@ func (ec *executionContext) fieldContext_Hush_deletedBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _Hush_name(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_name(ctx, field) +func (ec *executionContext) _Standard_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Standard_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Standard", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Standard_name(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_name(ctx, field) if err != nil { return graphql.Null } @@ -92328,9 +178955,9 @@ func (ec *executionContext) _Hush_name(ctx context.Context, field graphql.Collec return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -92341,8 +178968,8 @@ func (ec *executionContext) fieldContext_Hush_name(_ context.Context, field grap return fc, nil } -func (ec *executionContext) _Hush_description(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_description(ctx, field) +func (ec *executionContext) _Standard_description(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_description(ctx, field) if err != nil { return graphql.Null } @@ -92369,9 +178996,9 @@ func (ec *executionContext) _Hush_description(ctx context.Context, field graphql return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -92382,8 +179009,8 @@ func (ec *executionContext) fieldContext_Hush_description(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Hush_kind(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_kind(ctx, field) +func (ec *executionContext) _Standard_family(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_family(ctx, field) if err != nil { return graphql.Null } @@ -92396,7 +179023,7 @@ func (ec *executionContext) _Hush_kind(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Kind, nil + return obj.Family, nil }) if err != nil { ec.Error(ctx, err) @@ -92410,9 +179037,9 @@ func (ec *executionContext) _Hush_kind(ctx context.Context, field graphql.Collec return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -92423,8 +179050,8 @@ func (ec *executionContext) fieldContext_Hush_kind(_ context.Context, field grap return fc, nil } -func (ec *executionContext) _Hush_secretName(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_secretName(ctx, field) +func (ec *executionContext) _Standard_status(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_status(ctx, field) if err != nil { return graphql.Null } @@ -92437,7 +179064,7 @@ func (ec *executionContext) _Hush_secretName(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecretName, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -92451,9 +179078,9 @@ func (ec *executionContext) _Hush_secretName(ctx context.Context, field graphql. return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -92464,8 +179091,8 @@ func (ec *executionContext) fieldContext_Hush_secretName(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Hush_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_integrations(ctx, field) +func (ec *executionContext) _Standard_standardType(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_standardType(ctx, field) if err != nil { return graphql.Null } @@ -92478,7 +179105,7 @@ func (ec *executionContext) _Hush_integrations(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integrations(ctx) + return obj.StandardType, nil }) if err != nil { ec.Error(ctx, err) @@ -92487,62 +179114,26 @@ func (ec *executionContext) _Hush_integrations(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Integration) + res := resTmp.(string) fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_standardType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "oauth2tokens": - return ec.fieldContext_Integration_oauth2tokens(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - case "webhooks": - return ec.fieldContext_Integration_webhooks(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Hush_organization(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_organization(ctx, field) +func (ec *executionContext) _Standard_version(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_version(ctx, field) if err != nil { return graphql.Null } @@ -92555,7 +179146,7 @@ func (ec *executionContext) _Hush_organization(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization(ctx) + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -92564,110 +179155,26 @@ func (ec *executionContext) _Hush_organization(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Hush_events(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_events(ctx, field) +func (ec *executionContext) _Standard_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_purposeAndScope(ctx, field) if err != nil { return graphql.Null } @@ -92680,7 +179187,7 @@ func (ec *executionContext) _Hush_events(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.PurposeAndScope, nil }) if err != nil { ec.Error(ctx, err) @@ -92689,82 +179196,26 @@ func (ec *executionContext) _Hush_events(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(string) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "Standard", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushBulkCreatePayload_hushes(ctx context.Context, field graphql.CollectedField, obj *HushBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushBulkCreatePayload_hushes(ctx, field) +func (ec *executionContext) _Standard_background(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_background(ctx, field) if err != nil { return graphql.Null } @@ -92777,7 +179228,7 @@ func (ec *executionContext) _HushBulkCreatePayload_hushes(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Hushes, nil + return obj.Background, nil }) if err != nil { ec.Error(ctx, err) @@ -92786,56 +179237,203 @@ func (ec *executionContext) _HushBulkCreatePayload_hushes(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Hush) + res := resTmp.(string) fc.Result = res - return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushBulkCreatePayload_hushes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushBulkCreatePayload", + Object: "Standard", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Standard_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_satisfies(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Satisfies, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Standard_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Standard", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Standard_details(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_details(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Standard_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Standard_controlobjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_controlobjectives(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Controlobjectives(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ControlObjective) + fc.Result = res + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Standard_controlobjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Standard", + Field: field, + IsMethod: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Hush_id(ctx, field) + return ec.fieldContext_ControlObjective_id(ctx, field) case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) + return ec.fieldContext_ControlObjective_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) + return ec.fieldContext_ControlObjective_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) case "name": - return ec.fieldContext_Hush_name(ctx, field) + return ec.fieldContext_ControlObjective_name(ctx, field) case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "policy": + return ec.fieldContext_ControlObjective_policy(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.HushConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushConnection_edges(ctx, field) +func (ec *executionContext) _Standard_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_controls(ctx, field) if err != nil { return graphql.Null } @@ -92848,7 +179446,7 @@ func (ec *executionContext) _HushConnection_edges(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Controls(ctx) }) if err != nil { ec.Error(ctx, err) @@ -92857,32 +179455,82 @@ func (ec *executionContext) _HushConnection_edges(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.HushEdge) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalOHushEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushEdge(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushConnection", + Object: "Standard", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_HushEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_HushEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HushEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.HushConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushConnection_pageInfo(ctx, field) +func (ec *executionContext) _Standard_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_procedures(ctx, field) if err != nil { return graphql.Null } @@ -92895,48 +179543,79 @@ func (ec *executionContext) _HushConnection_pageInfo(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Procedures(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushConnection", + Object: "Standard", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "control": + return ec.fieldContext_Procedure_control(ctx, field) + case "internalpolicy": + return ec.fieldContext_Procedure_internalpolicy(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.HushConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushConnection_totalCount(ctx, field) +func (ec *executionContext) _Standard_actionplans(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_actionplans(ctx, field) if err != nil { return graphql.Null } @@ -92949,38 +179628,75 @@ func (ec *executionContext) _HushConnection_totalCount(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Actionplans(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.([]*generated.ActionPlan) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_actionplans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushConnection", + Object: "Standard", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushCreatePayload_hush(ctx context.Context, field graphql.CollectedField, obj *HushCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushCreatePayload_hush(ctx, field) +func (ec *executionContext) _StandardBulkCreatePayload_standards(ctx context.Context, field graphql.CollectedField, obj *StandardBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardBulkCreatePayload_standards(ctx, field) if err != nil { return graphql.Null } @@ -92993,68 +179709,81 @@ func (ec *executionContext) _HushCreatePayload_hush(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Hush, nil + return obj.Standards, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Hush) + res := resTmp.([]*generated.Standard) fc.Result = res - return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) + return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushCreatePayload_hush(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardBulkCreatePayload_standards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushCreatePayload", + Object: "StandardBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Hush_id(ctx, field) + return ec.fieldContext_Standard_id(ctx, field) case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) + return ec.fieldContext_Standard_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) + return ec.fieldContext_Standard_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) + return ec.fieldContext_Standard_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) + return ec.fieldContext_Standard_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) + return ec.fieldContext_Standard_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) case "name": - return ec.fieldContext_Hush_name(ctx, field) + return ec.fieldContext_Standard_name(ctx, field) case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_Standard_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionplans": + return ec.fieldContext_Standard_actionplans(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *HushDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _StandardConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -93067,38 +179796,41 @@ func (ec *executionContext) _HushDeletePayload_deletedID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.StandardEdge) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOStandardEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushDeletePayload", + Object: "StandardConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_StandardEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_StandardEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.HushEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushEdge_node(ctx, field) +func (ec *executionContext) _StandardConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -93111,65 +179843,48 @@ func (ec *executionContext) _HushEdge_node(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.Hush) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushEdge", + Object: "StandardConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Hush_id(ctx, field) - case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Hush_name(ctx, field) - case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.HushEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushEdge_cursor(ctx, field) +func (ec *executionContext) _StandardConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -93182,7 +179897,7 @@ func (ec *executionContext) _HushEdge_cursor(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -93194,26 +179909,26 @@ func (ec *executionContext) _HushEdge_cursor(ctx context.Context, field graphql. } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(int) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushEdge", + Object: "StandardConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_id(ctx, field) +func (ec *executionContext) _StandardCreatePayload_standard(ctx context.Context, field graphql.CollectedField, obj *StandardCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardCreatePayload_standard(ctx, field) if err != nil { return graphql.Null } @@ -93226,7 +179941,7 @@ func (ec *executionContext) _HushHistory_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Standard, nil }) if err != nil { ec.Error(ctx, err) @@ -93238,26 +179953,72 @@ func (ec *executionContext) _HushHistory_id(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Standard) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardCreatePayload_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_Standard_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionplans": + return ec.fieldContext_Standard_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_historyTime(ctx, field) +func (ec *executionContext) _StandardDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *StandardDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -93270,7 +180031,7 @@ func (ec *executionContext) _HushHistory_historyTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.DeletedID, nil }) if err != nil { ec.Error(ctx, err) @@ -93282,26 +180043,26 @@ func (ec *executionContext) _HushHistory_historyTime(ctx context.Context, field } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardDeletePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_ref(ctx, field) +func (ec *executionContext) _StandardEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.StandardEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -93314,7 +180075,7 @@ func (ec *executionContext) _HushHistory_ref(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -93323,26 +180084,72 @@ func (ec *executionContext) _HushHistory_ref(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Standard) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_Standard_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionplans": + return ec.fieldContext_Standard_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_operation(ctx, field) +func (ec *executionContext) _StandardEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.StandardEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -93355,7 +180162,7 @@ func (ec *executionContext) _HushHistory_operation(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -93367,26 +180174,26 @@ func (ec *executionContext) _HushHistory_operation(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type HushHistoryOpType does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_createdAt(ctx, field) +func (ec *executionContext) _StandardHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -93399,35 +180206,38 @@ func (ec *executionContext) _HushHistory_createdAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_updatedAt(ctx, field) +func (ec *executionContext) _StandardHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -93440,23 +180250,26 @@ func (ec *executionContext) _HushHistory_updatedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(time.Time) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -93467,8 +180280,8 @@ func (ec *executionContext) fieldContext_HushHistory_updatedAt(_ context.Context return fc, nil } -func (ec *executionContext) _HushHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_createdBy(ctx, field) +func (ec *executionContext) _StandardHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -93481,7 +180294,7 @@ func (ec *executionContext) _HushHistory_createdBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -93495,9 +180308,9 @@ func (ec *executionContext) _HushHistory_createdBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -93508,8 +180321,8 @@ func (ec *executionContext) fieldContext_HushHistory_createdBy(_ context.Context return fc, nil } -func (ec *executionContext) _HushHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_updatedBy(ctx, field) +func (ec *executionContext) _StandardHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -93522,35 +180335,38 @@ func (ec *executionContext) _HushHistory_updatedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNStandardHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type StandardHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_deletedAt(ctx, field) +func (ec *executionContext) _StandardHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -93563,7 +180379,7 @@ func (ec *executionContext) _HushHistory_deletedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -93577,9 +180393,9 @@ func (ec *executionContext) _HushHistory_deletedAt(ctx context.Context, field gr return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -93590,8 +180406,8 @@ func (ec *executionContext) fieldContext_HushHistory_deletedAt(_ context.Context return fc, nil } -func (ec *executionContext) _HushHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_deletedBy(ctx, field) +func (ec *executionContext) _StandardHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -93604,7 +180420,7 @@ func (ec *executionContext) _HushHistory_deletedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -93613,26 +180429,26 @@ func (ec *executionContext) _HushHistory_deletedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_name(ctx, field) +func (ec *executionContext) _StandardHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -93645,26 +180461,23 @@ func (ec *executionContext) _HushHistory_name(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -93675,8 +180488,8 @@ func (ec *executionContext) fieldContext_HushHistory_name(_ context.Context, fie return fc, nil } -func (ec *executionContext) _HushHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_description(ctx, field) +func (ec *executionContext) _StandardHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -93689,7 +180502,7 @@ func (ec *executionContext) _HushHistory_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -93703,9 +180516,9 @@ func (ec *executionContext) _HushHistory_description(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -93716,8 +180529,8 @@ func (ec *executionContext) fieldContext_HushHistory_description(_ context.Conte return fc, nil } -func (ec *executionContext) _HushHistory_kind(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_kind(ctx, field) +func (ec *executionContext) _StandardHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -93730,7 +180543,7 @@ func (ec *executionContext) _HushHistory_kind(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Kind, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -93739,26 +180552,26 @@ func (ec *executionContext) _HushHistory_kind(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushHistory_secretName(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_secretName(ctx, field) +func (ec *executionContext) _StandardHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -93771,7 +180584,7 @@ func (ec *executionContext) _HushHistory_secretName(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SecretName, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -93785,9 +180598,9 @@ func (ec *executionContext) _HushHistory_secretName(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -93798,8 +180611,8 @@ func (ec *executionContext) fieldContext_HushHistory_secretName(_ context.Contex return fc, nil } -func (ec *executionContext) _HushHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistoryConnection_edges(ctx, field) +func (ec *executionContext) _StandardHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -93812,7 +180625,7 @@ func (ec *executionContext) _HushHistoryConnection_edges(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -93821,32 +180634,26 @@ func (ec *executionContext) _HushHistoryConnection_edges(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.HushHistoryEdge) + res := resTmp.([]string) fc.Result = res - return ec.marshalOHushHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryEdge(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryConnection", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_HushHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_HushHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HushHistoryEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _StandardHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -93859,7 +180666,7 @@ func (ec *executionContext) _HushHistoryConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -93871,36 +180678,26 @@ func (ec *executionContext) _HushHistoryConnection_pageInfo(ctx context.Context, } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryConnection", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _StandardHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -93913,38 +180710,35 @@ func (ec *executionContext) _HushHistoryConnection_totalCount(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryConnection", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistoryEdge_node(ctx, field) +func (ec *executionContext) _StandardHistory_family(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_family(ctx, field) if err != nil { return graphql.Null } @@ -93957,7 +180751,7 @@ func (ec *executionContext) _HushHistoryEdge_node(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Family, nil }) if err != nil { ec.Error(ctx, err) @@ -93966,56 +180760,26 @@ func (ec *executionContext) _HushHistoryEdge_node(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.HushHistory) + res := resTmp.(string) fc.Result = res - return ec.marshalOHushHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistory(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryEdge", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_HushHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_HushHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_HushHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_HushHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_HushHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_HushHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_HushHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_HushHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_HushHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_HushHistory_deletedBy(ctx, field) - case "name": - return ec.fieldContext_HushHistory_name(ctx, field) - case "description": - return ec.fieldContext_HushHistory_description(ctx, field) - case "kind": - return ec.fieldContext_HushHistory_kind(ctx, field) - case "secretName": - return ec.fieldContext_HushHistory_secretName(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HushHistory", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _StandardHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -94028,38 +180792,35 @@ func (ec *executionContext) _HushHistoryEdge_cursor(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryEdge", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushUpdatePayload_hush(ctx context.Context, field graphql.CollectedField, obj *HushUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushUpdatePayload_hush(ctx, field) +func (ec *executionContext) _StandardHistory_standardType(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_standardType(ctx, field) if err != nil { return graphql.Null } @@ -94072,68 +180833,35 @@ func (ec *executionContext) _HushUpdatePayload_hush(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Hush, nil + return obj.StandardType, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Hush) + res := resTmp.(string) fc.Result = res - return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushUpdatePayload_hush(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_standardType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushUpdatePayload", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Hush_id(ctx, field) - case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Hush_name(ctx, field) - case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_id(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_id(ctx, field) +func (ec *executionContext) _StandardHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_version(ctx, field) if err != nil { return graphql.Null } @@ -94146,38 +180874,35 @@ func (ec *executionContext) _Integration_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_createdAt(ctx, field) +func (ec *executionContext) _StandardHistory_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_purposeAndScope(ctx, field) if err != nil { return graphql.Null } @@ -94190,7 +180915,7 @@ func (ec *executionContext) _Integration_createdAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.PurposeAndScope, nil }) if err != nil { ec.Error(ctx, err) @@ -94199,26 +180924,26 @@ func (ec *executionContext) _Integration_createdAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_updatedAt(ctx, field) +func (ec *executionContext) _StandardHistory_background(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_background(ctx, field) if err != nil { return graphql.Null } @@ -94231,7 +180956,7 @@ func (ec *executionContext) _Integration_updatedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Background, nil }) if err != nil { ec.Error(ctx, err) @@ -94240,26 +180965,26 @@ func (ec *executionContext) _Integration_updatedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_createdBy(ctx, field) +func (ec *executionContext) _StandardHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -94272,7 +180997,7 @@ func (ec *executionContext) _Integration_createdBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, err) @@ -94286,9 +181011,9 @@ func (ec *executionContext) _Integration_createdBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -94299,8 +181024,8 @@ func (ec *executionContext) fieldContext_Integration_createdBy(_ context.Context return fc, nil } -func (ec *executionContext) _Integration_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_updatedBy(ctx, field) +func (ec *executionContext) _StandardHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -94313,7 +181038,7 @@ func (ec *executionContext) _Integration_updatedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -94322,26 +181047,26 @@ func (ec *executionContext) _Integration_updatedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_tags(ctx, field) +func (ec *executionContext) _StandardHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -94354,7 +181079,7 @@ func (ec *executionContext) _Integration_tags(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -94363,26 +181088,32 @@ func (ec *executionContext) _Integration_tags(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.([]*generated.StandardHistoryEdge) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOStandardHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "StandardHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_StandardHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_StandardHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Integration_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_deletedAt(ctx, field) +func (ec *executionContext) _StandardHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -94395,35 +181126,48 @@ func (ec *executionContext) _Integration_deletedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "StandardHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Integration_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_deletedBy(ctx, field) +func (ec *executionContext) _StandardHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -94436,35 +181180,38 @@ func (ec *executionContext) _Integration_deletedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "StandardHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_ownerID(ctx, field) +func (ec *executionContext) _StandardHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -94477,7 +181224,7 @@ func (ec *executionContext) _Integration_ownerID(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -94486,26 +181233,70 @@ func (ec *executionContext) _Integration_ownerID(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.StandardHistory) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOStandardHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "StandardHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_StandardHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_StandardHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_StandardHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_StandardHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_StandardHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_StandardHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_StandardHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_StandardHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_StandardHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_StandardHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_StandardHistory_tags(ctx, field) + case "name": + return ec.fieldContext_StandardHistory_name(ctx, field) + case "description": + return ec.fieldContext_StandardHistory_description(ctx, field) + case "family": + return ec.fieldContext_StandardHistory_family(ctx, field) + case "status": + return ec.fieldContext_StandardHistory_status(ctx, field) + case "standardType": + return ec.fieldContext_StandardHistory_standardType(ctx, field) + case "version": + return ec.fieldContext_StandardHistory_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_StandardHistory_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_StandardHistory_background(ctx, field) + case "satisfies": + return ec.fieldContext_StandardHistory_satisfies(ctx, field) + case "details": + return ec.fieldContext_StandardHistory_details(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _Integration_name(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_name(ctx, field) +func (ec *executionContext) _StandardHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -94518,7 +181309,7 @@ func (ec *executionContext) _Integration_name(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -94530,26 +181321,26 @@ func (ec *executionContext) _Integration_name(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "StandardHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_description(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_description(ctx, field) +func (ec *executionContext) _StandardSearchResult_standards(ctx context.Context, field graphql.CollectedField, obj *StandardSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardSearchResult_standards(ctx, field) if err != nil { return graphql.Null } @@ -94562,7 +181353,7 @@ func (ec *executionContext) _Integration_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Standards, nil }) if err != nil { ec.Error(ctx, err) @@ -94571,26 +181362,72 @@ func (ec *executionContext) _Integration_description(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Standard) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardSearchResult_standards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "StandardSearchResult", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_Standard_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionplans": + return ec.fieldContext_Standard_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) }, } return fc, nil } -func (ec *executionContext) _Integration_kind(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_kind(ctx, field) +func (ec *executionContext) _StandardUpdatePayload_standard(ctx context.Context, field graphql.CollectedField, obj *StandardUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardUpdatePayload_standard(ctx, field) if err != nil { return graphql.Null } @@ -94603,35 +181440,84 @@ func (ec *executionContext) _Integration_kind(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Kind, nil + return obj.Standard, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Standard) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardUpdatePayload_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "StandardUpdatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlobjectives": + return ec.fieldContext_Standard_controlobjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionplans": + return ec.fieldContext_Standard_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) }, } return fc, nil } -func (ec *executionContext) _Integration_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_owner(ctx, field) +func (ec *executionContext) _Subcontrol_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_id(ctx, field) if err != nil { return graphql.Null } @@ -94644,119 +181530,38 @@ func (ec *executionContext) _Integration_owner(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Subcontrol", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_secrets(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_secrets(ctx, field) +func (ec *executionContext) _Subcontrol_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -94769,7 +181574,7 @@ func (ec *executionContext) _Integration_secrets(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Secrets(ctx) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -94778,56 +181583,26 @@ func (ec *executionContext) _Integration_secrets(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Hush) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_secrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Subcontrol", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Hush_id(ctx, field) - case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Hush_name(ctx, field) - case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_oauth2tokens(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_oauth2tokens(ctx, field) +func (ec *executionContext) _Subcontrol_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -94840,7 +181615,7 @@ func (ec *executionContext) _Integration_oauth2tokens(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Oauth2tokens(ctx) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -94849,60 +181624,26 @@ func (ec *executionContext) _Integration_oauth2tokens(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OhAuthTooToken) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOOhAuthTooToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_oauth2tokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Subcontrol", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OhAuthTooToken_id(ctx, field) - case "tags": - return ec.fieldContext_OhAuthTooToken_tags(ctx, field) - case "clientID": - return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) - case "scopes": - return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) - case "nonce": - return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) - case "claimsUserID": - return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) - case "claimsUsername": - return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) - case "claimsEmail": - return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) - case "claimsEmailVerified": - return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) - case "claimsGroups": - return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) - case "claimsPreferredUsername": - return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) - case "connectorID": - return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) - case "connectorData": - return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) - case "lastUsed": - return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) - case "integration": - return ec.fieldContext_OhAuthTooToken_integration(ctx, field) - case "events": - return ec.fieldContext_OhAuthTooToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_events(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_events(ctx, field) +func (ec *executionContext) _Subcontrol_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -94915,7 +181656,7 @@ func (ec *executionContext) _Integration_events(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -94924,82 +181665,26 @@ func (ec *executionContext) _Integration_events(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(string) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Subcontrol", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_webhooks(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_webhooks(ctx, field) +func (ec *executionContext) _Subcontrol_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -95012,7 +181697,7 @@ func (ec *executionContext) _Integration_webhooks(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Webhooks(ctx) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -95021,66 +181706,26 @@ func (ec *executionContext) _Integration_webhooks(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Webhook) + res := resTmp.(string) fc.Result = res - return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_webhooks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Subcontrol", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Webhook_id(ctx, field) - case "createdAt": - return ec.fieldContext_Webhook_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Webhook_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Webhook_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Webhook_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Webhook_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Webhook_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Webhook_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Webhook_ownerID(ctx, field) - case "name": - return ec.fieldContext_Webhook_name(ctx, field) - case "description": - return ec.fieldContext_Webhook_description(ctx, field) - case "destinationURL": - return ec.fieldContext_Webhook_destinationURL(ctx, field) - case "enabled": - return ec.fieldContext_Webhook_enabled(ctx, field) - case "failures": - return ec.fieldContext_Webhook_failures(ctx, field) - case "lastError": - return ec.fieldContext_Webhook_lastError(ctx, field) - case "lastResponse": - return ec.fieldContext_Webhook_lastResponse(ctx, field) - case "owner": - return ec.fieldContext_Webhook_owner(ctx, field) - case "events": - return ec.fieldContext_Webhook_events(ctx, field) - case "integrations": - return ec.fieldContext_Webhook_integrations(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationBulkCreatePayload_integrations(ctx context.Context, field graphql.CollectedField, obj *IntegrationBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationBulkCreatePayload_integrations(ctx, field) +func (ec *executionContext) _Subcontrol_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -95093,7 +181738,7 @@ func (ec *executionContext) _IntegrationBulkCreatePayload_integrations(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integrations, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -95102,62 +181747,26 @@ func (ec *executionContext) _IntegrationBulkCreatePayload_integrations(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Integration) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationBulkCreatePayload_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationBulkCreatePayload", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "oauth2tokens": - return ec.fieldContext_Integration_oauth2tokens(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - case "webhooks": - return ec.fieldContext_Integration_webhooks(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationConnection_edges(ctx, field) +func (ec *executionContext) _Subcontrol_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -95170,7 +181779,7 @@ func (ec *executionContext) _IntegrationConnection_edges(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -95179,32 +181788,26 @@ func (ec *executionContext) _IntegrationConnection_edges(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.IntegrationEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOIntegrationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationConnection", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_IntegrationEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_IntegrationEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IntegrationEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationConnection_pageInfo(ctx, field) +func (ec *executionContext) _Subcontrol_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_tags(ctx, field) if err != nil { return graphql.Null } @@ -95217,48 +181820,35 @@ func (ec *executionContext) _IntegrationConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationConnection", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationConnection_totalCount(ctx, field) +func (ec *executionContext) _Subcontrol_name(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_name(ctx, field) if err != nil { return graphql.Null } @@ -95271,7 +181861,7 @@ func (ec *executionContext) _IntegrationConnection_totalCount(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -95283,26 +181873,26 @@ func (ec *executionContext) _IntegrationConnection_totalCount(ctx context.Contex } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationConnection", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationCreatePayload_integration(ctx context.Context, field graphql.CollectedField, obj *IntegrationCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationCreatePayload_integration(ctx, field) +func (ec *executionContext) _Subcontrol_description(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_description(ctx, field) if err != nil { return graphql.Null } @@ -95315,74 +181905,35 @@ func (ec *executionContext) _IntegrationCreatePayload_integration(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integration, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Integration) + res := resTmp.(string) fc.Result = res - return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationCreatePayload_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationCreatePayload", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "oauth2tokens": - return ec.fieldContext_Integration_oauth2tokens(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - case "webhooks": - return ec.fieldContext_Integration_webhooks(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *IntegrationDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Subcontrol_status(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_status(ctx, field) if err != nil { return graphql.Null } @@ -95395,38 +181946,35 @@ func (ec *executionContext) _IntegrationDeletePayload_deletedID(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationDeletePayload", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationEdge_node(ctx, field) +func (ec *executionContext) _Subcontrol_subcontrolType(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_subcontrolType(ctx, field) if err != nil { return graphql.Null } @@ -95439,7 +181987,7 @@ func (ec *executionContext) _IntegrationEdge_node(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.SubcontrolType, nil }) if err != nil { ec.Error(ctx, err) @@ -95448,62 +181996,26 @@ func (ec *executionContext) _IntegrationEdge_node(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Integration) + res := resTmp.(string) fc.Result = res - return ec.marshalOIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_subcontrolType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationEdge", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "oauth2tokens": - return ec.fieldContext_Integration_oauth2tokens(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - case "webhooks": - return ec.fieldContext_Integration_webhooks(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationEdge_cursor(ctx, field) +func (ec *executionContext) _Subcontrol_version(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_version(ctx, field) if err != nil { return graphql.Null } @@ -95516,38 +182028,35 @@ func (ec *executionContext) _IntegrationEdge_cursor(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationEdge", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_id(ctx, field) +func (ec *executionContext) _Subcontrol_subcontrolNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) if err != nil { return graphql.Null } @@ -95560,38 +182069,35 @@ func (ec *executionContext) _IntegrationHistory_id(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.SubcontrolNumber, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_subcontrolNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_historyTime(ctx, field) +func (ec *executionContext) _Subcontrol_family(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_family(ctx, field) if err != nil { return graphql.Null } @@ -95604,38 +182110,35 @@ func (ec *executionContext) _IntegrationHistory_historyTime(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Family, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_ref(ctx, field) +func (ec *executionContext) _Subcontrol_class(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_class(ctx, field) if err != nil { return graphql.Null } @@ -95648,7 +182151,7 @@ func (ec *executionContext) _IntegrationHistory_ref(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.Class, nil }) if err != nil { ec.Error(ctx, err) @@ -95662,9 +182165,9 @@ func (ec *executionContext) _IntegrationHistory_ref(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, @@ -95675,8 +182178,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_ref(_ context.Contex return fc, nil } -func (ec *executionContext) _IntegrationHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_operation(ctx, field) +func (ec *executionContext) _Subcontrol_source(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_source(ctx, field) if err != nil { return graphql.Null } @@ -95689,38 +182192,35 @@ func (ec *executionContext) _IntegrationHistory_operation(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.Source, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNIntegrationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type IntegrationHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_createdAt(ctx, field) +func (ec *executionContext) _Subcontrol_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) if err != nil { return graphql.Null } @@ -95733,7 +182233,7 @@ func (ec *executionContext) _IntegrationHistory_createdAt(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.MappedFrameworks, nil }) if err != nil { ec.Error(ctx, err) @@ -95742,26 +182242,26 @@ func (ec *executionContext) _IntegrationHistory_createdAt(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_updatedAt(ctx, field) +func (ec *executionContext) _Subcontrol_implementationEvidence(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) if err != nil { return graphql.Null } @@ -95774,7 +182274,7 @@ func (ec *executionContext) _IntegrationHistory_updatedAt(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.ImplementationEvidence, nil }) if err != nil { ec.Error(ctx, err) @@ -95783,26 +182283,26 @@ func (ec *executionContext) _IntegrationHistory_updatedAt(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_implementationEvidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_createdBy(ctx, field) +func (ec *executionContext) _Subcontrol_implementationStatus(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_implementationStatus(ctx, field) if err != nil { return graphql.Null } @@ -95815,7 +182315,7 @@ func (ec *executionContext) _IntegrationHistory_createdBy(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.ImplementationStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -95829,9 +182329,9 @@ func (ec *executionContext) _IntegrationHistory_createdBy(ctx context.Context, f return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_implementationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, @@ -95842,8 +182342,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_createdBy(_ context. return fc, nil } -func (ec *executionContext) _IntegrationHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_updatedBy(ctx, field) +func (ec *executionContext) _Subcontrol_implementationDate(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_implementationDate(ctx, field) if err != nil { return graphql.Null } @@ -95856,7 +182356,7 @@ func (ec *executionContext) _IntegrationHistory_updatedBy(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.ImplementationDate, nil }) if err != nil { ec.Error(ctx, err) @@ -95865,26 +182365,26 @@ func (ec *executionContext) _IntegrationHistory_updatedBy(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_implementationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_tags(ctx, field) +func (ec *executionContext) _Subcontrol_implementationVerification(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_implementationVerification(ctx, field) if err != nil { return graphql.Null } @@ -95897,7 +182397,7 @@ func (ec *executionContext) _IntegrationHistory_tags(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.ImplementationVerification, nil }) if err != nil { ec.Error(ctx, err) @@ -95906,14 +182406,14 @@ func (ec *executionContext) _IntegrationHistory_tags(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_implementationVerification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, @@ -95924,8 +182424,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_tags(_ context.Conte return fc, nil } -func (ec *executionContext) _IntegrationHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_deletedAt(ctx, field) +func (ec *executionContext) _Subcontrol_implementationVerificationDate(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) if err != nil { return graphql.Null } @@ -95938,7 +182438,7 @@ func (ec *executionContext) _IntegrationHistory_deletedAt(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.ImplementationVerificationDate, nil }) if err != nil { ec.Error(ctx, err) @@ -95952,9 +182452,9 @@ func (ec *executionContext) _IntegrationHistory_deletedAt(ctx context.Context, f return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_implementationVerificationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, @@ -95965,8 +182465,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_deletedAt(_ context. return fc, nil } -func (ec *executionContext) _IntegrationHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_deletedBy(ctx, field) +func (ec *executionContext) _Subcontrol_details(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_details(ctx, field) if err != nil { return graphql.Null } @@ -95979,7 +182479,7 @@ func (ec *executionContext) _IntegrationHistory_deletedBy(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -95988,26 +182488,26 @@ func (ec *executionContext) _IntegrationHistory_deletedBy(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_ownerID(ctx, field) +func (ec *executionContext) _Subcontrol_control(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_control(ctx, field) if err != nil { return graphql.Null } @@ -96020,7 +182520,7 @@ func (ec *executionContext) _IntegrationHistory_ownerID(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Control(ctx) }) if err != nil { ec.Error(ctx, err) @@ -96029,26 +182529,82 @@ func (ec *executionContext) _IntegrationHistory_ownerID(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "name": + return ec.fieldContext_Control_name(ctx, field) + case "description": + return ec.fieldContext_Control_description(ctx, field) + case "status": + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlobjectives": + return ec.fieldContext_Control_controlobjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionplans": + return ec.fieldContext_Control_actionplans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_name(ctx, field) +func (ec *executionContext) _Subcontrol_user(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_user(ctx, field) if err != nil { return graphql.Null } @@ -96061,38 +182617,101 @@ func (ec *executionContext) _IntegrationHistory_name(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.User(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.User) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_description(ctx, field) +func (ec *executionContext) _Subcontrol_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_notes(ctx, field) if err != nil { return graphql.Null } @@ -96105,7 +182724,7 @@ func (ec *executionContext) _IntegrationHistory_description(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Notes(ctx) }) if err != nil { ec.Error(ctx, err) @@ -96114,26 +182733,54 @@ func (ec *executionContext) _IntegrationHistory_description(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Note) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalONote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "Subcontrol", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Note_id(ctx, field) + case "createdAt": + return ec.fieldContext_Note_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Note_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Note_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Note_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Note_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Note_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Note_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Note_ownerID(ctx, field) + case "text": + return ec.fieldContext_Note_text(ctx, field) + case "owner": + return ec.fieldContext_Note_owner(ctx, field) + case "entity": + return ec.fieldContext_Note_entity(ctx, field) + case "subcontrols": + return ec.fieldContext_Note_subcontrols(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_kind(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_kind(ctx, field) +func (ec *executionContext) _SubcontrolBulkCreatePayload_subcontrols(ctx context.Context, field graphql.CollectedField, obj *SubcontrolBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolBulkCreatePayload_subcontrols(ctx, field) if err != nil { return graphql.Null } @@ -96146,7 +182793,7 @@ func (ec *executionContext) _IntegrationHistory_kind(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Kind, nil + return obj.Subcontrols, nil }) if err != nil { ec.Error(ctx, err) @@ -96155,26 +182802,82 @@ func (ec *executionContext) _IntegrationHistory_kind(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Subcontrol) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolBulkCreatePayload_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "SubcontrolBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "control": + return ec.fieldContext_Subcontrol_control(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistoryConnection_edges(ctx, field) +func (ec *executionContext) _SubcontrolConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -96196,32 +182899,32 @@ func (ec *executionContext) _IntegrationHistoryConnection_edges(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.IntegrationHistoryEdge) + res := resTmp.([]*generated.SubcontrolEdge) fc.Result = res - return ec.marshalOIntegrationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryEdge(ctx, field.Selections, res) + return ec.marshalOSubcontrolEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistoryConnection", + Object: "SubcontrolConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_IntegrationHistoryEdge_node(ctx, field) + return ec.fieldContext_SubcontrolEdge_node(ctx, field) case "cursor": - return ec.fieldContext_IntegrationHistoryEdge_cursor(ctx, field) + return ec.fieldContext_SubcontrolEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type IntegrationHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubcontrolEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _SubcontrolConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -96251,9 +182954,9 @@ func (ec *executionContext) _IntegrationHistoryConnection_pageInfo(ctx context.C return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistoryConnection", + Object: "SubcontrolConnection", Field: field, IsMethod: false, IsResolver: false, @@ -96274,8 +182977,8 @@ func (ec *executionContext) fieldContext_IntegrationHistoryConnection_pageInfo(_ return fc, nil } -func (ec *executionContext) _IntegrationHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _SubcontrolConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -96305,9 +183008,9 @@ func (ec *executionContext) _IntegrationHistoryConnection_totalCount(ctx context return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistoryConnection", + Object: "SubcontrolConnection", Field: field, IsMethod: false, IsResolver: false, @@ -96318,8 +183021,8 @@ func (ec *executionContext) fieldContext_IntegrationHistoryConnection_totalCount return fc, nil } -func (ec *executionContext) _IntegrationHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistoryEdge_node(ctx, field) +func (ec *executionContext) _SubcontrolCreatePayload_subcontrol(ctx context.Context, field graphql.CollectedField, obj *SubcontrolCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolCreatePayload_subcontrol(ctx, field) if err != nil { return graphql.Null } @@ -96332,67 +183035,94 @@ func (ec *executionContext) _IntegrationHistoryEdge_node(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Subcontrol, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.IntegrationHistory) + res := resTmp.(*generated.Subcontrol) fc.Result = res - return ec.marshalOIntegrationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistory(ctx, field.Selections, res) + return ec.marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolCreatePayload_subcontrol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistoryEdge", + Object: "SubcontrolCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_IntegrationHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_IntegrationHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_IntegrationHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_IntegrationHistory_operation(ctx, field) + return ec.fieldContext_Subcontrol_id(ctx, field) case "createdAt": - return ec.fieldContext_IntegrationHistory_createdAt(ctx, field) + return ec.fieldContext_Subcontrol_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_IntegrationHistory_updatedAt(ctx, field) + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_IntegrationHistory_createdBy(ctx, field) + return ec.fieldContext_Subcontrol_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_IntegrationHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_IntegrationHistory_tags(ctx, field) + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_IntegrationHistory_deletedAt(ctx, field) + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_IntegrationHistory_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_IntegrationHistory_ownerID(ctx, field) + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) case "name": - return ec.fieldContext_IntegrationHistory_name(ctx, field) + return ec.fieldContext_Subcontrol_name(ctx, field) case "description": - return ec.fieldContext_IntegrationHistory_description(ctx, field) - case "kind": - return ec.fieldContext_IntegrationHistory_kind(ctx, field) + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "control": + return ec.fieldContext_Subcontrol_control(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type IntegrationHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _SubcontrolDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *SubcontrolDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -96405,7 +183135,7 @@ func (ec *executionContext) _IntegrationHistoryEdge_cursor(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedID, nil }) if err != nil { ec.Error(ctx, err) @@ -96417,26 +183147,26 @@ func (ec *executionContext) _IntegrationHistoryEdge_cursor(ctx context.Context, } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistoryEdge", + Object: "SubcontrolDeletePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationSearchResult_integrations(ctx context.Context, field graphql.CollectedField, obj *IntegrationSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationSearchResult_integrations(ctx, field) +func (ec *executionContext) _SubcontrolEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -96449,7 +183179,7 @@ func (ec *executionContext) _IntegrationSearchResult_integrations(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integrations, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -96458,62 +183188,82 @@ func (ec *executionContext) _IntegrationSearchResult_integrations(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Integration) + res := resTmp.(*generated.Subcontrol) fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationSearchResult_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationSearchResult", + Object: "SubcontrolEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Integration_id(ctx, field) + return ec.fieldContext_Subcontrol_id(ctx, field) case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) + return ec.fieldContext_Subcontrol_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) + return ec.fieldContext_Subcontrol_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) case "name": - return ec.fieldContext_Integration_name(ctx, field) + return ec.fieldContext_Subcontrol_name(ctx, field) case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "oauth2tokens": - return ec.fieldContext_Integration_oauth2tokens(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - case "webhooks": - return ec.fieldContext_Integration_webhooks(ctx, field) + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "control": + return ec.fieldContext_Subcontrol_control(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationUpdatePayload_integration(ctx context.Context, field graphql.CollectedField, obj *IntegrationUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationUpdatePayload_integration(ctx, field) +func (ec *executionContext) _SubcontrolEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -96526,7 +183276,7 @@ func (ec *executionContext) _IntegrationUpdatePayload_integration(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integration, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -96538,62 +183288,26 @@ func (ec *executionContext) _IntegrationUpdatePayload_integration(ctx context.Co } return graphql.Null } - res := resTmp.(*generated.Integration) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationUpdatePayload_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationUpdatePayload", + Object: "SubcontrolEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "oauth2tokens": - return ec.fieldContext_Integration_oauth2tokens(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - case "webhooks": - return ec.fieldContext_Integration_webhooks(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_id(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_id(ctx, field) +func (ec *executionContext) _SubcontrolHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -96623,9 +183337,9 @@ func (ec *executionContext) _Invite_id(ctx context.Context, field graphql.Collec return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -96636,8 +183350,8 @@ func (ec *executionContext) fieldContext_Invite_id(_ context.Context, field grap return fc, nil } -func (ec *executionContext) _Invite_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_createdAt(ctx, field) +func (ec *executionContext) _SubcontrolHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -96650,23 +183364,26 @@ func (ec *executionContext) _Invite_createdAt(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(time.Time) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -96677,8 +183394,8 @@ func (ec *executionContext) fieldContext_Invite_createdAt(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Invite_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_updatedAt(ctx, field) +func (ec *executionContext) _SubcontrolHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -96691,7 +183408,7 @@ func (ec *executionContext) _Invite_updatedAt(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -96700,26 +183417,26 @@ func (ec *executionContext) _Invite_updatedAt(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_createdBy(ctx, field) +func (ec *executionContext) _SubcontrolHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -96732,35 +183449,38 @@ func (ec *executionContext) _Invite_createdBy(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNSubcontrolHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type SubcontrolHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_updatedBy(ctx, field) +func (ec *executionContext) _SubcontrolHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -96773,7 +183493,7 @@ func (ec *executionContext) _Invite_updatedBy(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -96782,26 +183502,26 @@ func (ec *executionContext) _Invite_updatedBy(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_deletedAt(ctx, field) +func (ec *executionContext) _SubcontrolHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -96814,7 +183534,7 @@ func (ec *executionContext) _Invite_deletedAt(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -96828,9 +183548,9 @@ func (ec *executionContext) _Invite_deletedAt(ctx context.Context, field graphql return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -96841,8 +183561,8 @@ func (ec *executionContext) fieldContext_Invite_deletedAt(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Invite_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_deletedBy(ctx, field) +func (ec *executionContext) _SubcontrolHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -96855,7 +183575,7 @@ func (ec *executionContext) _Invite_deletedBy(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -96869,9 +183589,9 @@ func (ec *executionContext) _Invite_deletedBy(ctx context.Context, field graphql return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -96882,8 +183602,8 @@ func (ec *executionContext) fieldContext_Invite_deletedBy(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Invite_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_ownerID(ctx, field) +func (ec *executionContext) _SubcontrolHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -96896,7 +183616,7 @@ func (ec *executionContext) _Invite_ownerID(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -96907,24 +183627,24 @@ func (ec *executionContext) _Invite_ownerID(ctx context.Context, field graphql.C } res := resTmp.(string) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_expires(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_expires(ctx, field) +func (ec *executionContext) _SubcontrolHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -96937,7 +183657,7 @@ func (ec *executionContext) _Invite_expires(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Expires, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -96951,9 +183671,9 @@ func (ec *executionContext) _Invite_expires(ctx context.Context, field graphql.C return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_expires(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -96964,8 +183684,8 @@ func (ec *executionContext) fieldContext_Invite_expires(_ context.Context, field return fc, nil } -func (ec *executionContext) _Invite_recipient(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_recipient(ctx, field) +func (ec *executionContext) _SubcontrolHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -96978,26 +183698,23 @@ func (ec *executionContext) _Invite_recipient(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Recipient, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_recipient(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -97008,8 +183725,8 @@ func (ec *executionContext) fieldContext_Invite_recipient(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Invite_status(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_status(ctx, field) +func (ec *executionContext) _SubcontrolHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -97022,38 +183739,35 @@ func (ec *executionContext) _Invite_status(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.InviteStatus) + res := resTmp.([]string) fc.Result = res - return ec.marshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type InviteInviteStatus does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_role(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_role(ctx, field) +func (ec *executionContext) _SubcontrolHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -97066,7 +183780,7 @@ func (ec *executionContext) _Invite_role(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -97078,26 +183792,26 @@ func (ec *executionContext) _Invite_role(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.(string) fc.Result = res - return ec.marshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type InviteRole does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_sendAttempts(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_sendAttempts(ctx, field) +func (ec *executionContext) _SubcontrolHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -97110,38 +183824,35 @@ func (ec *executionContext) _Invite_sendAttempts(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SendAttempts, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_sendAttempts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_requestorID(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_requestorID(ctx, field) +func (ec *executionContext) _SubcontrolHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -97154,7 +183865,7 @@ func (ec *executionContext) _Invite_requestorID(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RequestorID, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -97168,9 +183879,9 @@ func (ec *executionContext) _Invite_requestorID(ctx context.Context, field graph return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_requestorID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -97181,8 +183892,8 @@ func (ec *executionContext) fieldContext_Invite_requestorID(_ context.Context, f return fc, nil } -func (ec *executionContext) _Invite_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_owner(ctx, field) +func (ec *executionContext) _SubcontrolHistory_subcontrolType(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_subcontrolType(ctx, field) if err != nil { return graphql.Null } @@ -97195,7 +183906,7 @@ func (ec *executionContext) _Invite_owner(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.SubcontrolType, nil }) if err != nil { ec.Error(ctx, err) @@ -97204,110 +183915,26 @@ func (ec *executionContext) _Invite_owner(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_subcontrolType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_events(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_events(ctx, field) +func (ec *executionContext) _SubcontrolHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_version(ctx, field) if err != nil { return graphql.Null } @@ -97320,7 +183947,7 @@ func (ec *executionContext) _Invite_events(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -97329,82 +183956,26 @@ func (ec *executionContext) _Invite_events(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(string) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "SubcontrolHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InviteBulkCreatePayload_invites(ctx context.Context, field graphql.CollectedField, obj *InviteBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteBulkCreatePayload_invites(ctx, field) +func (ec *executionContext) _SubcontrolHistory_subcontrolNumber(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_subcontrolNumber(ctx, field) if err != nil { return graphql.Null } @@ -97417,7 +183988,7 @@ func (ec *executionContext) _InviteBulkCreatePayload_invites(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Invites, nil + return obj.SubcontrolNumber, nil }) if err != nil { ec.Error(ctx, err) @@ -97426,60 +183997,26 @@ func (ec *executionContext) _InviteBulkCreatePayload_invites(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Invite) + res := resTmp.(string) fc.Result = res - return ec.marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteBulkCreatePayload_invites(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_subcontrolNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteBulkCreatePayload", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Invite_id(ctx, field) - case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) - case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) - case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InviteConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.InviteConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteConnection_edges(ctx, field) +func (ec *executionContext) _SubcontrolHistory_family(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_family(ctx, field) if err != nil { return graphql.Null } @@ -97492,7 +184029,7 @@ func (ec *executionContext) _InviteConnection_edges(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Family, nil }) if err != nil { ec.Error(ctx, err) @@ -97501,32 +184038,26 @@ func (ec *executionContext) _InviteConnection_edges(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.InviteEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOInviteEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteConnection", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_InviteEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_InviteEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InviteEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InviteConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.InviteConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteConnection_pageInfo(ctx, field) +func (ec *executionContext) _SubcontrolHistory_class(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_class(ctx, field) if err != nil { return graphql.Null } @@ -97539,48 +184070,35 @@ func (ec *executionContext) _InviteConnection_pageInfo(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Class, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteConnection", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InviteConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.InviteConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteConnection_totalCount(ctx, field) +func (ec *executionContext) _SubcontrolHistory_source(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_source(ctx, field) if err != nil { return graphql.Null } @@ -97593,38 +184111,35 @@ func (ec *executionContext) _InviteConnection_totalCount(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Source, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteConnection", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InviteCreatePayload_invite(ctx context.Context, field graphql.CollectedField, obj *InviteCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteCreatePayload_invite(ctx, field) +func (ec *executionContext) _SubcontrolHistory_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_mappedFrameworks(ctx, field) if err != nil { return graphql.Null } @@ -97637,72 +184152,35 @@ func (ec *executionContext) _InviteCreatePayload_invite(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Invite, nil + return obj.MappedFrameworks, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Invite) + res := resTmp.(string) fc.Result = res - return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteCreatePayload_invite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteCreatePayload", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Invite_id(ctx, field) - case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) - case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) - case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InviteDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *InviteDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _SubcontrolHistory_implementationEvidence(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_implementationEvidence(ctx, field) if err != nil { return graphql.Null } @@ -97715,38 +184193,35 @@ func (ec *executionContext) _InviteDeletePayload_deletedID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.ImplementationEvidence, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_implementationEvidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteDeletePayload", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InviteEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.InviteEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteEdge_node(ctx, field) +func (ec *executionContext) _SubcontrolHistory_implementationStatus(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_implementationStatus(ctx, field) if err != nil { return graphql.Null } @@ -97759,7 +184234,7 @@ func (ec *executionContext) _InviteEdge_node(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.ImplementationStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -97768,60 +184243,26 @@ func (ec *executionContext) _InviteEdge_node(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Invite) + res := resTmp.(string) fc.Result = res - return ec.marshalOInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_implementationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteEdge", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Invite_id(ctx, field) - case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) - case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) - case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InviteEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.InviteEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteEdge_cursor(ctx, field) +func (ec *executionContext) _SubcontrolHistory_implementationDate(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_implementationDate(ctx, field) if err != nil { return graphql.Null } @@ -97834,38 +184275,76 @@ func (ec *executionContext) _InviteEdge_cursor(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.ImplementationDate, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubcontrolHistory_implementationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubcontrolHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SubcontrolHistory_implementationVerification(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_implementationVerification(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ImplementationVerification, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_implementationVerification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteEdge", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InviteUpdatePayload_invite(ctx context.Context, field graphql.CollectedField, obj *InviteUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteUpdatePayload_invite(ctx, field) +func (ec *executionContext) _SubcontrolHistory_implementationVerificationDate(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_implementationVerificationDate(ctx, field) if err != nil { return graphql.Null } @@ -97878,72 +184357,123 @@ func (ec *executionContext) _InviteUpdatePayload_invite(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Invite, nil + return obj.ImplementationVerificationDate, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubcontrolHistory_implementationVerificationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubcontrolHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SubcontrolHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_details(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(*generated.Invite) + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteUpdatePayload_invite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteUpdatePayload", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Invite_id(ctx, field) - case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) - case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) - case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _SubcontrolHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistoryConnection_edges(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.SubcontrolHistoryEdge) + fc.Result = res + return ec.marshalOSubcontrolHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubcontrolHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubcontrolHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_SubcontrolHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_SubcontrolHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubcontrolHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Mutation_createAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createAPIToken(ctx, field) +func (ec *executionContext) _SubcontrolHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -97956,7 +184486,7 @@ func (ec *executionContext) _Mutation_createAPIToken(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateAPIToken(rctx, fc.Args["input"].(generated.CreateAPITokenInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -97968,41 +184498,36 @@ func (ec *executionContext) _Mutation_createAPIToken(ctx context.Context, field } return graphql.Null } - res := resTmp.(*APITokenCreatePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNAPITokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenCreatePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubcontrolHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "apiToken": - return ec.fieldContext_APITokenCreatePayload_apiToken(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APITokenCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkAPIToken(ctx, field) +func (ec *executionContext) _SubcontrolHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -98015,7 +184540,7 @@ func (ec *executionContext) _Mutation_createBulkAPIToken(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkAPIToken(rctx, fc.Args["input"].([]*generated.CreateAPITokenInput)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -98027,41 +184552,26 @@ func (ec *executionContext) _Mutation_createBulkAPIToken(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*APITokenBulkCreatePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNAPITokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubcontrolHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "apiTokens": - return ec.fieldContext_APITokenBulkCreatePayload_apiTokens(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type APITokenBulkCreatePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVAPIToken(ctx, field) +func (ec *executionContext) _SubcontrolHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -98074,53 +184584,91 @@ func (ec *executionContext) _Mutation_createBulkCSVAPIToken(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVAPIToken(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*APITokenBulkCreatePayload) + res := resTmp.(*generated.SubcontrolHistory) fc.Result = res - return ec.marshalNAPITokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOSubcontrolHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubcontrolHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "apiTokens": - return ec.fieldContext_APITokenBulkCreatePayload_apiTokens(ctx, field) + case "id": + return ec.fieldContext_SubcontrolHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_SubcontrolHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_SubcontrolHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_SubcontrolHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_SubcontrolHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_SubcontrolHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_SubcontrolHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_SubcontrolHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_SubcontrolHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_SubcontrolHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_SubcontrolHistory_tags(ctx, field) + case "name": + return ec.fieldContext_SubcontrolHistory_name(ctx, field) + case "description": + return ec.fieldContext_SubcontrolHistory_description(ctx, field) + case "status": + return ec.fieldContext_SubcontrolHistory_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_SubcontrolHistory_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_SubcontrolHistory_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_SubcontrolHistory_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_SubcontrolHistory_family(ctx, field) + case "class": + return ec.fieldContext_SubcontrolHistory_class(ctx, field) + case "source": + return ec.fieldContext_SubcontrolHistory_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_SubcontrolHistory_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_SubcontrolHistory_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_SubcontrolHistory_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_SubcontrolHistory_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_SubcontrolHistory_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_SubcontrolHistory_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_SubcontrolHistory_details(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APITokenBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubcontrolHistory", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateAPIToken(ctx, field) +func (ec *executionContext) _SubcontrolHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -98133,7 +184681,7 @@ func (ec *executionContext) _Mutation_updateAPIToken(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateAPIToken(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateAPITokenInput)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -98145,41 +184693,26 @@ func (ec *executionContext) _Mutation_updateAPIToken(ctx context.Context, field } return graphql.Null } - res := resTmp.(*APITokenUpdatePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNAPITokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenUpdatePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubcontrolHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "apiToken": - return ec.fieldContext_APITokenUpdatePayload_apiToken(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type APITokenUpdatePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteAPIToken(ctx, field) +func (ec *executionContext) _SubcontrolSearchResult_subcontrols(ctx context.Context, field graphql.CollectedField, obj *SubcontrolSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolSearchResult_subcontrols(ctx, field) if err != nil { return graphql.Null } @@ -98192,53 +184725,91 @@ func (ec *executionContext) _Mutation_deleteAPIToken(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteAPIToken(rctx, fc.Args["id"].(string)) + return obj.Subcontrols, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*APITokenDeletePayload) + res := resTmp.([]*generated.Subcontrol) fc.Result = res - return ec.marshalNAPITokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenDeletePayload(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolSearchResult_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubcontrolSearchResult", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_APITokenDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "control": + return ec.fieldContext_Subcontrol_control(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APITokenDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createContact(ctx, field) +func (ec *executionContext) _SubcontrolUpdatePayload_subcontrol(ctx context.Context, field graphql.CollectedField, obj *SubcontrolUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolUpdatePayload_subcontrol(ctx, field) if err != nil { return graphql.Null } @@ -98251,7 +184822,7 @@ func (ec *executionContext) _Mutation_createContact(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateContact(rctx, fc.Args["input"].(generated.CreateContactInput)) + return obj.Subcontrol, nil }) if err != nil { ec.Error(ctx, err) @@ -98263,41 +184834,82 @@ func (ec *executionContext) _Mutation_createContact(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*ContactCreatePayload) + res := resTmp.(*generated.Subcontrol) fc.Result = res - return ec.marshalNContactCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactCreatePayload(ctx, field.Selections, res) + return ec.marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolUpdatePayload_subcontrol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubcontrolUpdatePayload", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "contact": - return ec.fieldContext_ContactCreatePayload_contact(ctx, field) + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "control": + return ec.fieldContext_Subcontrol_control(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkContact(ctx, field) +func (ec *executionContext) _Subscriber_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_id(ctx, field) if err != nil { return graphql.Null } @@ -98310,7 +184922,7 @@ func (ec *executionContext) _Mutation_createBulkContact(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkContact(rctx, fc.Args["input"].([]*generated.CreateContactInput)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -98322,41 +184934,26 @@ func (ec *executionContext) _Mutation_createBulkContact(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*ContactBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNContactBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "contacts": - return ec.fieldContext_ContactBulkCreatePayload_contacts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactBulkCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVContact(ctx, field) +func (ec *executionContext) _Subscriber_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -98369,53 +184966,35 @@ func (ec *executionContext) _Mutation_createBulkCSVContact(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVContact(rctx, fc.Args["input"].(graphql.Upload)) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ContactBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNContactBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "contacts": - return ec.fieldContext_ContactBulkCreatePayload_contacts(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateContact(ctx, field) +func (ec *executionContext) _Subscriber_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -98428,53 +185007,35 @@ func (ec *executionContext) _Mutation_updateContact(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateContact(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateContactInput)) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ContactUpdatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNContactUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactUpdatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "contact": - return ec.fieldContext_ContactUpdatePayload_contact(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactUpdatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteContact(ctx, field) +func (ec *executionContext) _Subscriber_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -98487,53 +185048,35 @@ func (ec *executionContext) _Mutation_deleteContact(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteContact(rctx, fc.Args["id"].(string)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ContactDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNContactDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_ContactDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createDocumentData(ctx, field) +func (ec *executionContext) _Subscriber_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -98546,53 +185089,35 @@ func (ec *executionContext) _Mutation_createDocumentData(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateDocumentData(rctx, fc.Args["input"].(generated.CreateDocumentDataInput)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*DocumentDataCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNDocumentDataCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "documentData": - return ec.fieldContext_DocumentDataCreatePayload_documentData(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkDocumentData(ctx, field) +func (ec *executionContext) _Subscriber_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_tags(ctx, field) if err != nil { return graphql.Null } @@ -98605,53 +185130,35 @@ func (ec *executionContext) _Mutation_createBulkDocumentData(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkDocumentData(rctx, fc.Args["input"].([]*generated.CreateDocumentDataInput)) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*DocumentDataBulkCreatePayload) + res := resTmp.([]string) fc.Result = res - return ec.marshalNDocumentDataBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "documentData": - return ec.fieldContext_DocumentDataBulkCreatePayload_documentData(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVDocumentData(ctx, field) +func (ec *executionContext) _Subscriber_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -98664,53 +185171,35 @@ func (ec *executionContext) _Mutation_createBulkCSVDocumentData(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVDocumentData(rctx, fc.Args["input"].(graphql.Upload)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*DocumentDataBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNDocumentDataBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "documentData": - return ec.fieldContext_DocumentDataBulkCreatePayload_documentData(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateDocumentData(ctx, field) +func (ec *executionContext) _Subscriber_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -98723,53 +185212,35 @@ func (ec *executionContext) _Mutation_updateDocumentData(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateDocumentData(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateDocumentDataInput)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*DocumentDataUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNDocumentDataUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "documentData": - return ec.fieldContext_DocumentDataUpdatePayload_documentData(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteDocumentData(ctx, field) +func (ec *executionContext) _Subscriber_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -98782,53 +185253,35 @@ func (ec *executionContext) _Mutation_deleteDocumentData(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteDocumentData(rctx, fc.Args["id"].(string)) + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*DocumentDataDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNDocumentDataDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataDeletePayload(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_DocumentDataDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataDeletePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createEntitlement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createEntitlement(ctx, field) +func (ec *executionContext) _Subscriber_email(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_email(ctx, field) if err != nil { return graphql.Null } @@ -98841,7 +185294,7 @@ func (ec *executionContext) _Mutation_createEntitlement(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateEntitlement(rctx, fc.Args["input"].(generated.CreateEntitlementInput)) + return obj.Email, nil }) if err != nil { ec.Error(ctx, err) @@ -98853,41 +185306,26 @@ func (ec *executionContext) _Mutation_createEntitlement(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*EntitlementCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntitlementCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementCreatePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createEntitlement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entitlement": - return ec.fieldContext_EntitlementCreatePayload_entitlement(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createEntitlement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkEntitlement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkEntitlement(ctx, field) +func (ec *executionContext) _Subscriber_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_phoneNumber(ctx, field) if err != nil { return graphql.Null } @@ -98900,53 +185338,35 @@ func (ec *executionContext) _Mutation_createBulkEntitlement(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkEntitlement(rctx, fc.Args["input"].([]*generated.CreateEntitlementInput)) + return obj.PhoneNumber, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntitlementBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntitlementBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkEntitlement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entitlements": - return ec.fieldContext_EntitlementBulkCreatePayload_entitlements(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkEntitlement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVEntitlement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVEntitlement(ctx, field) +func (ec *executionContext) _Subscriber_verifiedEmail(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_verifiedEmail(ctx, field) if err != nil { return graphql.Null } @@ -98959,7 +185379,7 @@ func (ec *executionContext) _Mutation_createBulkCSVEntitlement(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVEntitlement(rctx, fc.Args["input"].(graphql.Upload)) + return obj.VerifiedEmail, nil }) if err != nil { ec.Error(ctx, err) @@ -98971,41 +185391,26 @@ func (ec *executionContext) _Mutation_createBulkCSVEntitlement(ctx context.Conte } return graphql.Null } - res := resTmp.(*EntitlementBulkCreatePayload) + res := resTmp.(bool) fc.Result = res - return ec.marshalNEntitlementBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntitlement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_verifiedEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entitlements": - return ec.fieldContext_EntitlementBulkCreatePayload_entitlements(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementBulkCreatePayload", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVEntitlement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateEntitlement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateEntitlement(ctx, field) +func (ec *executionContext) _Subscriber_verifiedPhone(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_verifiedPhone(ctx, field) if err != nil { return graphql.Null } @@ -99018,7 +185423,7 @@ func (ec *executionContext) _Mutation_updateEntitlement(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateEntitlement(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntitlementInput)) + return obj.VerifiedPhone, nil }) if err != nil { ec.Error(ctx, err) @@ -99030,41 +185435,26 @@ func (ec *executionContext) _Mutation_updateEntitlement(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*EntitlementUpdatePayload) + res := resTmp.(bool) fc.Result = res - return ec.marshalNEntitlementUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementUpdatePayload(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateEntitlement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_verifiedPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entitlement": - return ec.fieldContext_EntitlementUpdatePayload_entitlement(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementUpdatePayload", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateEntitlement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteEntitlement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteEntitlement(ctx, field) +func (ec *executionContext) _Subscriber_active(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_active(ctx, field) if err != nil { return graphql.Null } @@ -99077,7 +185467,7 @@ func (ec *executionContext) _Mutation_deleteEntitlement(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteEntitlement(rctx, fc.Args["id"].(string)) + return obj.Active, nil }) if err != nil { ec.Error(ctx, err) @@ -99089,41 +185479,26 @@ func (ec *executionContext) _Mutation_deleteEntitlement(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*EntitlementDeletePayload) + res := resTmp.(bool) fc.Result = res - return ec.marshalNEntitlementDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementDeletePayload(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteEntitlement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_EntitlementDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementDeletePayload", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteEntitlement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createEntitlementPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createEntitlementPlan(ctx, field) +func (ec *executionContext) _Subscriber_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_owner(ctx, field) if err != nil { return graphql.Null } @@ -99136,53 +185511,119 @@ func (ec *executionContext) _Mutation_createEntitlementPlan(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateEntitlementPlan(rctx, fc.Args["input"].(generated.CreateEntitlementPlanInput)) + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntitlementPlanCreatePayload) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalNEntitlementPlanCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanCreatePayload(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createEntitlementPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "entitlementPlan": - return ec.fieldContext_EntitlementPlanCreatePayload_entitlementPlan(ctx, field) + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createEntitlementPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkEntitlementPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkEntitlementPlan(ctx, field) +func (ec *executionContext) _Subscriber_events(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_events(ctx, field) if err != nil { return graphql.Null } @@ -99195,53 +185636,91 @@ func (ec *executionContext) _Mutation_createBulkEntitlementPlan(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkEntitlementPlan(rctx, fc.Args["input"].([]*generated.CreateEntitlementPlanInput)) + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntitlementPlanBulkCreatePayload) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalNEntitlementPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkEntitlementPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Subscriber", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "entitlementPlans": - return ec.fieldContext_EntitlementPlanBulkCreatePayload_entitlementPlans(ctx, field) + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkEntitlementPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVEntitlementPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVEntitlementPlan(ctx, field) +func (ec *executionContext) _SubscriberBulkCreatePayload_subscribers(ctx context.Context, field graphql.CollectedField, obj *SubscriberBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberBulkCreatePayload_subscribers(ctx, field) if err != nil { return graphql.Null } @@ -99254,53 +185733,69 @@ func (ec *executionContext) _Mutation_createBulkCSVEntitlementPlan(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVEntitlementPlan(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Subscribers, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntitlementPlanBulkCreatePayload) + res := resTmp.([]*generated.Subscriber) fc.Result = res - return ec.marshalNEntitlementPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntitlementPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberBulkCreatePayload_subscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubscriberBulkCreatePayload", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "entitlementPlans": - return ec.fieldContext_EntitlementPlanBulkCreatePayload_entitlementPlans(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanBulkCreatePayload", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVEntitlementPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err + case "id": + return ec.fieldContext_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + }, } return fc, nil } -func (ec *executionContext) _Mutation_updateEntitlementPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateEntitlementPlan(ctx, field) +func (ec *executionContext) _SubscriberConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -99313,53 +185808,41 @@ func (ec *executionContext) _Mutation_updateEntitlementPlan(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateEntitlementPlan(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntitlementPlanInput)) + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntitlementPlanUpdatePayload) + res := resTmp.([]*generated.SubscriberEdge) fc.Result = res - return ec.marshalNEntitlementPlanUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanUpdatePayload(ctx, field.Selections, res) + return ec.marshalOSubscriberEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateEntitlementPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubscriberConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "entitlementPlan": - return ec.fieldContext_EntitlementPlanUpdatePayload_entitlementPlan(ctx, field) + case "node": + return ec.fieldContext_SubscriberEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_SubscriberEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubscriberEdge", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateEntitlementPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteEntitlementPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteEntitlementPlan(ctx, field) +func (ec *executionContext) _SubscriberConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -99372,7 +185855,7 @@ func (ec *executionContext) _Mutation_deleteEntitlementPlan(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteEntitlementPlan(rctx, fc.Args["id"].(string)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -99384,41 +185867,36 @@ func (ec *executionContext) _Mutation_deleteEntitlementPlan(ctx context.Context, } return graphql.Null } - res := resTmp.(*EntitlementPlanDeletePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNEntitlementPlanDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanDeletePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteEntitlementPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubscriberConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_EntitlementPlanDeletePayload_deletedID(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteEntitlementPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createEntitlementPlanFeature(ctx, field) +func (ec *executionContext) _SubscriberConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -99431,7 +185909,7 @@ func (ec *executionContext) _Mutation_createEntitlementPlanFeature(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateEntitlementPlanFeature(rctx, fc.Args["input"].(generated.CreateEntitlementPlanFeatureInput)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -99443,41 +185921,26 @@ func (ec *executionContext) _Mutation_createEntitlementPlanFeature(ctx context.C } return graphql.Null } - res := resTmp.(*EntitlementPlanFeatureCreatePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNEntitlementPlanFeatureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureCreatePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubscriberConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entitlementPlanFeature": - return ec.fieldContext_EntitlementPlanFeatureCreatePayload_entitlementPlanFeature(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureCreatePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createEntitlementPlanFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkEntitlementPlanFeature(ctx, field) +func (ec *executionContext) _SubscriberCreatePayload_subscriber(ctx context.Context, field graphql.CollectedField, obj *SubscriberCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberCreatePayload_subscriber(ctx, field) if err != nil { return graphql.Null } @@ -99490,7 +185953,7 @@ func (ec *executionContext) _Mutation_createBulkEntitlementPlanFeature(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkEntitlementPlanFeature(rctx, fc.Args["input"].([]*generated.CreateEntitlementPlanFeatureInput)) + return obj.Subscriber, nil }) if err != nil { ec.Error(ctx, err) @@ -99502,41 +185965,60 @@ func (ec *executionContext) _Mutation_createBulkEntitlementPlanFeature(ctx conte } return graphql.Null } - res := resTmp.(*EntitlementPlanFeatureBulkCreatePayload) + res := resTmp.(*generated.Subscriber) fc.Result = res - return ec.marshalNEntitlementPlanFeatureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberCreatePayload_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubscriberCreatePayload", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "entitlementPlanFeatures": - return ec.fieldContext_EntitlementPlanFeatureBulkCreatePayload_entitlementPlanFeatures(ctx, field) + case "id": + return ec.fieldContext_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkEntitlementPlanFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVEntitlementPlanFeature(ctx, field) +func (ec *executionContext) _SubscriberDeletePayload_email(ctx context.Context, field graphql.CollectedField, obj *SubscriberDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberDeletePayload_email(ctx, field) if err != nil { return graphql.Null } @@ -99549,7 +186031,7 @@ func (ec *executionContext) _Mutation_createBulkCSVEntitlementPlanFeature(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVEntitlementPlanFeature(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Email, nil }) if err != nil { ec.Error(ctx, err) @@ -99561,41 +186043,26 @@ func (ec *executionContext) _Mutation_createBulkCSVEntitlementPlanFeature(ctx co } return graphql.Null } - res := resTmp.(*EntitlementPlanFeatureBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntitlementPlanFeatureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberDeletePayload_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubscriberDeletePayload", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entitlementPlanFeatures": - return ec.fieldContext_EntitlementPlanFeatureBulkCreatePayload_entitlementPlanFeatures(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVEntitlementPlanFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateEntitlementPlanFeature(ctx, field) +func (ec *executionContext) _SubscriberEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -99608,53 +186075,69 @@ func (ec *executionContext) _Mutation_updateEntitlementPlanFeature(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateEntitlementPlanFeature(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntitlementPlanFeatureInput)) + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntitlementPlanFeatureUpdatePayload) + res := resTmp.(*generated.Subscriber) fc.Result = res - return ec.marshalNEntitlementPlanFeatureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureUpdatePayload(ctx, field.Selections, res) + return ec.marshalOSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubscriberEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "entitlementPlanFeature": - return ec.fieldContext_EntitlementPlanFeatureUpdatePayload_entitlementPlanFeature(ctx, field) + case "id": + return ec.fieldContext_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateEntitlementPlanFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteEntitlementPlanFeature(ctx, field) +func (ec *executionContext) _SubscriberEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -99667,7 +186150,7 @@ func (ec *executionContext) _Mutation_deleteEntitlementPlanFeature(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteEntitlementPlanFeature(rctx, fc.Args["id"].(string)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -99679,41 +186162,26 @@ func (ec *executionContext) _Mutation_deleteEntitlementPlanFeature(ctx context.C } return graphql.Null } - res := resTmp.(*EntitlementPlanFeatureDeletePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNEntitlementPlanFeatureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureDeletePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteEntitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubscriberEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_EntitlementPlanFeatureDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureDeletePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteEntitlementPlanFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createEntity(ctx, field) +func (ec *executionContext) _SubscriberSearchResult_subscribers(ctx context.Context, field graphql.CollectedField, obj *SubscriberSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberSearchResult_subscribers(ctx, field) if err != nil { return graphql.Null } @@ -99726,53 +186194,69 @@ func (ec *executionContext) _Mutation_createEntity(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateEntity(rctx, fc.Args["input"].(generated.CreateEntityInput)) + return obj.Subscribers, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityCreatePayload) + res := resTmp.([]*generated.Subscriber) fc.Result = res - return ec.marshalNEntityCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityCreatePayload(ctx, field.Selections, res) + return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberSearchResult_subscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubscriberSearchResult", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "entity": - return ec.fieldContext_EntityCreatePayload_entity(ctx, field) + case "id": + return ec.fieldContext_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntityCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkEntity(ctx, field) +func (ec *executionContext) _SubscriberUpdatePayload_subscriber(ctx context.Context, field graphql.CollectedField, obj *SubscriberUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberUpdatePayload_subscriber(ctx, field) if err != nil { return graphql.Null } @@ -99785,7 +186269,7 @@ func (ec *executionContext) _Mutation_createBulkEntity(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkEntity(rctx, fc.Args["input"].([]*generated.CreateEntityInput)) + return obj.Subscriber, nil }) if err != nil { ec.Error(ctx, err) @@ -99797,41 +186281,60 @@ func (ec *executionContext) _Mutation_createBulkEntity(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*EntityBulkCreatePayload) + res := resTmp.(*generated.Subscriber) fc.Result = res - return ec.marshalNEntityBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberUpdatePayload_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "SubscriberUpdatePayload", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "entities": - return ec.fieldContext_EntityBulkCreatePayload_entities(ctx, field) + case "id": + return ec.fieldContext_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntityBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVEntity(ctx, field) +func (ec *executionContext) _TFASetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_id(ctx, field) if err != nil { return graphql.Null } @@ -99844,7 +186347,7 @@ func (ec *executionContext) _Mutation_createBulkCSVEntity(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVEntity(rctx, fc.Args["input"].(graphql.Upload)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -99856,41 +186359,26 @@ func (ec *executionContext) _Mutation_createBulkCSVEntity(ctx context.Context, f } return graphql.Null } - res := resTmp.(*EntityBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entities": - return ec.fieldContext_EntityBulkCreatePayload_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityBulkCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateEntity(ctx, field) +func (ec *executionContext) _TFASetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -99903,53 +186391,35 @@ func (ec *executionContext) _Mutation_updateEntity(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateEntity(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntityInput)) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityUpdatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNEntityUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityUpdatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entity": - return ec.fieldContext_EntityUpdatePayload_entity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityUpdatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteEntity(ctx, field) +func (ec *executionContext) _TFASetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -99962,53 +186432,35 @@ func (ec *executionContext) _Mutation_deleteEntity(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteEntity(rctx, fc.Args["id"].(string)) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityDeletePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNEntityDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityDeletePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_EntityDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityDeletePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createEntityType(ctx, field) +func (ec *executionContext) _TFASetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -100021,53 +186473,35 @@ func (ec *executionContext) _Mutation_createEntityType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateEntityType(rctx, fc.Args["input"].(generated.CreateEntityTypeInput)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityTypeCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityTypeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entityType": - return ec.fieldContext_EntityTypeCreatePayload_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkEntityType(ctx, field) +func (ec *executionContext) _TFASetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -100080,53 +186514,35 @@ func (ec *executionContext) _Mutation_createBulkEntityType(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkEntityType(rctx, fc.Args["input"].([]*generated.CreateEntityTypeInput)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityTypeBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityTypeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entityTypes": - return ec.fieldContext_EntityTypeBulkCreatePayload_entityTypes(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVEntityType(ctx, field) +func (ec *executionContext) _TFASetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -100139,53 +186555,35 @@ func (ec *executionContext) _Mutation_createBulkCSVEntityType(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVEntityType(rctx, fc.Args["input"].(graphql.Upload)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityTypeBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNEntityTypeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entityTypes": - return ec.fieldContext_EntityTypeBulkCreatePayload_entityTypes(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateEntityType(ctx, field) +func (ec *executionContext) _TFASetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -100198,53 +186596,35 @@ func (ec *executionContext) _Mutation_updateEntityType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateEntityType(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntityTypeInput)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityTypeUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityTypeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entityType": - return ec.fieldContext_EntityTypeUpdatePayload_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteEntityType(ctx, field) +func (ec *executionContext) _TFASetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_tags(ctx, field) if err != nil { return graphql.Null } @@ -100257,53 +186637,35 @@ func (ec *executionContext) _Mutation_deleteEntityType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteEntityType(rctx, fc.Args["id"].(string)) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityTypeDeletePayload) + res := resTmp.([]string) fc.Result = res - return ec.marshalNEntityTypeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_EntityTypeDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createEvent(ctx, field) +func (ec *executionContext) _TFASetting_tfaSecret(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_tfaSecret(ctx, field) if err != nil { return graphql.Null } @@ -100316,53 +186678,35 @@ func (ec *executionContext) _Mutation_createEvent(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateEvent(rctx, fc.Args["input"].(generated.CreateEventInput)) + return obj.TfaSecret, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EventCreatePayload) + res := resTmp.(*string) fc.Result = res - return ec.marshalNEventCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_tfaSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "event": - return ec.fieldContext_EventCreatePayload_event(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkEvent(ctx, field) +func (ec *executionContext) _TFASetting_verified(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_verified(ctx, field) if err != nil { return graphql.Null } @@ -100375,7 +186719,7 @@ func (ec *executionContext) _Mutation_createBulkEvent(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkEvent(rctx, fc.Args["input"].([]*generated.CreateEventInput)) + return obj.Verified, nil }) if err != nil { ec.Error(ctx, err) @@ -100387,41 +186731,26 @@ func (ec *executionContext) _Mutation_createBulkEvent(ctx context.Context, field } return graphql.Null } - res := resTmp.(*EventBulkCreatePayload) + res := resTmp.(bool) fc.Result = res - return ec.marshalNEventBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_verified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "events": - return ec.fieldContext_EventBulkCreatePayload_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventBulkCreatePayload", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVEvent(ctx, field) +func (ec *executionContext) _TFASetting_recoveryCodes(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_recoveryCodes(ctx, field) if err != nil { return graphql.Null } @@ -100434,53 +186763,35 @@ func (ec *executionContext) _Mutation_createBulkCSVEvent(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVEvent(rctx, fc.Args["input"].(graphql.Upload)) + return obj.RecoveryCodes, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EventBulkCreatePayload) + res := resTmp.([]string) fc.Result = res - return ec.marshalNEventBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_recoveryCodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "events": - return ec.fieldContext_EventBulkCreatePayload_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateEvent(ctx, field) +func (ec *executionContext) _TFASetting_totpAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_totpAllowed(ctx, field) if err != nil { return graphql.Null } @@ -100493,53 +186804,35 @@ func (ec *executionContext) _Mutation_updateEvent(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateEvent(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEventInput)) + return obj.TotpAllowed, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EventUpdatePayload) + res := resTmp.(bool) fc.Result = res - return ec.marshalNEventUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventUpdatePayload(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_totpAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "event": - return ec.fieldContext_EventUpdatePayload_event(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventUpdatePayload", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteEvent(ctx, field) +func (ec *executionContext) _TFASetting_owner(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_owner(ctx, field) if err != nil { return graphql.Null } @@ -100552,53 +186845,101 @@ func (ec *executionContext) _Mutation_deleteEvent(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteEvent(rctx, fc.Args["id"].(string)) + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EventDeletePayload) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalNEventDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventDeletePayload(ctx, field.Selections, res) + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASetting", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_EventDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EventDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createFeature(ctx, field) +func (ec *executionContext) _TFASettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -100611,53 +186952,41 @@ func (ec *executionContext) _Mutation_createFeature(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateFeature(rctx, fc.Args["input"].(generated.CreateFeatureInput)) + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*FeatureCreatePayload) + res := resTmp.([]*generated.TFASettingEdge) fc.Result = res - return ec.marshalNFeatureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureCreatePayload(ctx, field.Selections, res) + return ec.marshalOTFASettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASettingConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "feature": - return ec.fieldContext_FeatureCreatePayload_feature(ctx, field) + case "node": + return ec.fieldContext_TFASettingEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_TFASettingEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FeatureCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TFASettingEdge", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkFeature(ctx, field) +func (ec *executionContext) _TFASettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -100670,7 +186999,7 @@ func (ec *executionContext) _Mutation_createBulkFeature(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkFeature(rctx, fc.Args["input"].([]*generated.CreateFeatureInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -100682,41 +187011,36 @@ func (ec *executionContext) _Mutation_createBulkFeature(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*FeatureBulkCreatePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNFeatureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASettingConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "features": - return ec.fieldContext_FeatureBulkCreatePayload_features(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FeatureBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVFeature(ctx, field) +func (ec *executionContext) _TFASettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -100729,7 +187053,7 @@ func (ec *executionContext) _Mutation_createBulkCSVFeature(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVFeature(rctx, fc.Args["input"].(graphql.Upload)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -100741,41 +187065,26 @@ func (ec *executionContext) _Mutation_createBulkCSVFeature(ctx context.Context, } return graphql.Null } - res := resTmp.(*FeatureBulkCreatePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNFeatureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASettingConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "features": - return ec.fieldContext_FeatureBulkCreatePayload_features(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FeatureBulkCreatePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateFeature(ctx, field) +func (ec *executionContext) _TFASettingCreatePayload_tfaSetting(ctx context.Context, field graphql.CollectedField, obj *TFASettingCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingCreatePayload_tfaSetting(ctx, field) if err != nil { return graphql.Null } @@ -100788,7 +187097,7 @@ func (ec *executionContext) _Mutation_updateFeature(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateFeature(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateFeatureInput)) + return obj.TfaSetting, nil }) if err != nil { ec.Error(ctx, err) @@ -100800,41 +187109,54 @@ func (ec *executionContext) _Mutation_updateFeature(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*FeatureUpdatePayload) + res := resTmp.(*generated.TFASetting) fc.Result = res - return ec.marshalNFeatureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureUpdatePayload(ctx, field.Selections, res) + return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingCreatePayload_tfaSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASettingCreatePayload", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "feature": - return ec.fieldContext_FeatureUpdatePayload_feature(ctx, field) + case "id": + return ec.fieldContext_TFASetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_TFASetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_TFASetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_TFASetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_TFASetting_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_TFASetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_TFASetting_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_TFASetting_tags(ctx, field) + case "tfaSecret": + return ec.fieldContext_TFASetting_tfaSecret(ctx, field) + case "verified": + return ec.fieldContext_TFASetting_verified(ctx, field) + case "recoveryCodes": + return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) + case "totpAllowed": + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + case "owner": + return ec.fieldContext_TFASetting_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FeatureUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteFeature(ctx, field) +func (ec *executionContext) _TFASettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -100847,53 +187169,63 @@ func (ec *executionContext) _Mutation_deleteFeature(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteFeature(rctx, fc.Args["id"].(string)) + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*FeatureDeletePayload) + res := resTmp.(*generated.TFASetting) fc.Result = res - return ec.marshalNFeatureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureDeletePayload(ctx, field.Selections, res) + return ec.marshalOTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASettingEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_FeatureDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_TFASetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_TFASetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_TFASetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_TFASetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_TFASetting_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_TFASetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_TFASetting_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_TFASetting_tags(ctx, field) + case "tfaSecret": + return ec.fieldContext_TFASetting_tfaSecret(ctx, field) + case "verified": + return ec.fieldContext_TFASetting_verified(ctx, field) + case "recoveryCodes": + return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) + case "totpAllowed": + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + case "owner": + return ec.fieldContext_TFASetting_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FeatureDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteFile(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteFile(ctx, field) +func (ec *executionContext) _TFASettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -100906,7 +187238,7 @@ func (ec *executionContext) _Mutation_deleteFile(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteFile(rctx, fc.Args["id"].(string)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -100918,41 +187250,26 @@ func (ec *executionContext) _Mutation_deleteFile(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(*FileDeletePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNFileDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileDeletePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteFile(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASettingEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_FileDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FileDeletePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteFile_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createGroup(ctx, field) +func (ec *executionContext) _TFASettingSearchResult_tFASettings(ctx context.Context, field graphql.CollectedField, obj *TFASettingSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingSearchResult_tFASettings(ctx, field) if err != nil { return graphql.Null } @@ -100965,53 +187282,63 @@ func (ec *executionContext) _Mutation_createGroup(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateGroup(rctx, fc.Args["input"].(generated.CreateGroupInput)) + return obj.TFASettings, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupCreatePayload) + res := resTmp.([]*generated.TFASetting) fc.Result = res - return ec.marshalNGroupCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupCreatePayload(ctx, field.Selections, res) + return ec.marshalOTFASetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingSearchResult_tFASettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASettingSearchResult", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "group": - return ec.fieldContext_GroupCreatePayload_group(ctx, field) + case "id": + return ec.fieldContext_TFASetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_TFASetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_TFASetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_TFASetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_TFASetting_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_TFASetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_TFASetting_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_TFASetting_tags(ctx, field) + case "tfaSecret": + return ec.fieldContext_TFASetting_tfaSecret(ctx, field) + case "verified": + return ec.fieldContext_TFASetting_verified(ctx, field) + case "recoveryCodes": + return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) + case "totpAllowed": + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + case "owner": + return ec.fieldContext_TFASetting_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkGroup(ctx, field) +func (ec *executionContext) _TFASettingUpdatePayload_tfaSetting(ctx context.Context, field graphql.CollectedField, obj *TFASettingUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingUpdatePayload_tfaSetting(ctx, field) if err != nil { return graphql.Null } @@ -101024,7 +187351,7 @@ func (ec *executionContext) _Mutation_createBulkGroup(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkGroup(rctx, fc.Args["input"].([]*generated.CreateGroupInput)) + return obj.TfaSetting, nil }) if err != nil { ec.Error(ctx, err) @@ -101036,41 +187363,54 @@ func (ec *executionContext) _Mutation_createBulkGroup(ctx context.Context, field } return graphql.Null } - res := resTmp.(*GroupBulkCreatePayload) + res := resTmp.(*generated.TFASetting) fc.Result = res - return ec.marshalNGroupBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingUpdatePayload_tfaSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TFASettingUpdatePayload", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "groups": - return ec.fieldContext_GroupBulkCreatePayload_groups(ctx, field) + case "id": + return ec.fieldContext_TFASetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_TFASetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_TFASetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_TFASetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_TFASetting_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_TFASetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_TFASetting_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_TFASetting_tags(ctx, field) + case "tfaSecret": + return ec.fieldContext_TFASetting_tfaSecret(ctx, field) + case "verified": + return ec.fieldContext_TFASetting_verified(ctx, field) + case "recoveryCodes": + return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) + case "totpAllowed": + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + case "owner": + return ec.fieldContext_TFASetting_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVGroup(ctx, field) +func (ec *executionContext) _Template_id(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_id(ctx, field) if err != nil { return graphql.Null } @@ -101083,7 +187423,7 @@ func (ec *executionContext) _Mutation_createBulkCSVGroup(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVGroup(rctx, fc.Args["input"].(graphql.Upload)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -101095,41 +187435,26 @@ func (ec *executionContext) _Mutation_createBulkCSVGroup(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*GroupBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groups": - return ec.fieldContext_GroupBulkCreatePayload_groups(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupBulkCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateGroup(ctx, field) +func (ec *executionContext) _Template_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -101142,53 +187467,35 @@ func (ec *executionContext) _Mutation_updateGroup(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateGroup(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateGroupInput)) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupUpdatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNGroupUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupUpdatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "group": - return ec.fieldContext_GroupUpdatePayload_group(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupUpdatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteGroup(ctx, field) +func (ec *executionContext) _Template_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -101201,53 +187508,35 @@ func (ec *executionContext) _Mutation_deleteGroup(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteGroup(rctx, fc.Args["id"].(string)) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupDeletePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNGroupDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupDeletePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_GroupDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupDeletePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createGroupMembership(ctx, field) +func (ec *executionContext) _Template_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -101260,53 +187549,35 @@ func (ec *executionContext) _Mutation_createGroupMembership(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateGroupMembership(rctx, fc.Args["input"].(generated.CreateGroupMembershipInput)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupMembershipCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupMembership": - return ec.fieldContext_GroupMembershipCreatePayload_groupMembership(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkGroupMembership(ctx, field) +func (ec *executionContext) _Template_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -101319,53 +187590,35 @@ func (ec *executionContext) _Mutation_createBulkGroupMembership(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkGroupMembership(rctx, fc.Args["input"].([]*generated.CreateGroupMembershipInput)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupMembershipBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupMemberships": - return ec.fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVGroupMembership(ctx, field) +func (ec *executionContext) _Template_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -101378,53 +187631,35 @@ func (ec *executionContext) _Mutation_createBulkCSVGroupMembership(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVGroupMembership(rctx, fc.Args["input"].(graphql.Upload)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupMembershipBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNGroupMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupMemberships": - return ec.fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateGroupMembership(ctx, field) +func (ec *executionContext) _Template_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -101437,53 +187672,35 @@ func (ec *executionContext) _Mutation_updateGroupMembership(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateGroupMembership(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateGroupMembershipInput)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupMembershipUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupMembership": - return ec.fieldContext_GroupMembershipUpdatePayload_groupMembership(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteGroupMembership(ctx, field) +func (ec *executionContext) _Template_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_tags(ctx, field) if err != nil { return graphql.Null } @@ -101496,53 +187713,35 @@ func (ec *executionContext) _Mutation_deleteGroupMembership(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteGroupMembership(rctx, fc.Args["id"].(string)) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupMembershipDeletePayload) + res := resTmp.([]string) fc.Result = res - return ec.marshalNGroupMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_GroupMembershipDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createGroupSetting(ctx, field) +func (ec *executionContext) _Template_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -101555,53 +187754,35 @@ func (ec *executionContext) _Mutation_createGroupSetting(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateGroupSetting(rctx, fc.Args["input"].(generated.CreateGroupSettingInput)) + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupSettingCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingCreatePayload(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupSetting": - return ec.fieldContext_GroupSettingCreatePayload_groupSetting(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkGroupSetting(ctx, field) +func (ec *executionContext) _Template_name(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_name(ctx, field) if err != nil { return graphql.Null } @@ -101614,7 +187795,7 @@ func (ec *executionContext) _Mutation_createBulkGroupSetting(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkGroupSetting(rctx, fc.Args["input"].([]*generated.CreateGroupSettingInput)) + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -101626,41 +187807,26 @@ func (ec *executionContext) _Mutation_createBulkGroupSetting(ctx context.Context } return graphql.Null } - res := resTmp.(*GroupSettingBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupSettings": - return ec.fieldContext_GroupSettingBulkCreatePayload_groupSettings(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVGroupSetting(ctx, field) +func (ec *executionContext) _Template_templateType(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_templateType(ctx, field) if err != nil { return graphql.Null } @@ -101673,7 +187839,7 @@ func (ec *executionContext) _Mutation_createBulkCSVGroupSetting(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVGroupSetting(rctx, fc.Args["input"].(graphql.Upload)) + return obj.TemplateType, nil }) if err != nil { ec.Error(ctx, err) @@ -101685,41 +187851,26 @@ func (ec *executionContext) _Mutation_createBulkCSVGroupSetting(ctx context.Cont } return graphql.Null } - res := resTmp.(*GroupSettingBulkCreatePayload) + res := resTmp.(enums.DocumentType) fc.Result = res - return ec.marshalNGroupSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNTemplateDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_templateType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupSettings": - return ec.fieldContext_GroupSettingBulkCreatePayload_groupSettings(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingBulkCreatePayload", field.Name) + return nil, errors.New("field of type TemplateDocumentType does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateGroupSetting(ctx, field) +func (ec *executionContext) _Template_description(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_description(ctx, field) if err != nil { return graphql.Null } @@ -101732,53 +187883,35 @@ func (ec *executionContext) _Mutation_updateGroupSetting(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateGroupSetting(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateGroupSettingInput)) + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupSettingUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupSetting": - return ec.fieldContext_GroupSettingUpdatePayload_groupSetting(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteGroupSetting(ctx, field) +func (ec *executionContext) _Template_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_jsonconfig(ctx, field) if err != nil { return graphql.Null } @@ -101791,7 +187924,7 @@ func (ec *executionContext) _Mutation_deleteGroupSetting(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteGroupSetting(rctx, fc.Args["id"].(string)) + return obj.Jsonconfig, nil }) if err != nil { ec.Error(ctx, err) @@ -101803,41 +187936,26 @@ func (ec *executionContext) _Mutation_deleteGroupSetting(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*GroupSettingDeletePayload) + res := resTmp.(customtypes.JSONObject) fc.Result = res - return ec.marshalNGroupSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingDeletePayload(ctx, field.Selections, res) + return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_GroupSettingDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingDeletePayload", field.Name) + return nil, errors.New("field of type JSON does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createHush(ctx, field) +func (ec *executionContext) _Template_uischema(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_uischema(ctx, field) if err != nil { return graphql.Null } @@ -101850,53 +187968,35 @@ func (ec *executionContext) _Mutation_createHush(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateHush(rctx, fc.Args["input"].(generated.CreateHushInput)) + return obj.Uischema, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*HushCreatePayload) + res := resTmp.(customtypes.JSONObject) fc.Result = res - return ec.marshalNHushCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushCreatePayload(ctx, field.Selections, res) + return ec.marshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hush": - return ec.fieldContext_HushCreatePayload_hush(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HushCreatePayload", field.Name) + return nil, errors.New("field of type JSON does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkHush(ctx, field) +func (ec *executionContext) _Template_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_owner(ctx, field) if err != nil { return graphql.Null } @@ -101909,53 +188009,119 @@ func (ec *executionContext) _Mutation_createBulkHush(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkHush(rctx, fc.Args["input"].([]*generated.CreateHushInput)) + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*HushBulkCreatePayload) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalNHushBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hushes": - return ec.fieldContext_HushBulkCreatePayload_hushes(ctx, field) + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HushBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVHush(ctx, field) +func (ec *executionContext) _Template_documents(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_documents(ctx, field) if err != nil { return graphql.Null } @@ -101968,53 +188134,67 @@ func (ec *executionContext) _Mutation_createBulkCSVHush(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVHush(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Documents(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*HushBulkCreatePayload) + res := resTmp.([]*generated.DocumentData) fc.Result = res - return ec.marshalNHushBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_documents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hushes": - return ec.fieldContext_HushBulkCreatePayload_hushes(ctx, field) + case "id": + return ec.fieldContext_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HushBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateHush(ctx, field) +func (ec *executionContext) _Template_files(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_files(ctx, field) if err != nil { return graphql.Null } @@ -102027,53 +188207,99 @@ func (ec *executionContext) _Mutation_updateHush(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateHush(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateHushInput)) + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*HushUpdatePayload) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalNHushUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushUpdatePayload(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Template", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hush": - return ec.fieldContext_HushUpdatePayload_hush(ctx, field) + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HushUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteHush(ctx, field) +func (ec *executionContext) _TemplateBulkCreatePayload_templates(ctx context.Context, field graphql.CollectedField, obj *TemplateBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateBulkCreatePayload_templates(ctx, field) if err != nil { return graphql.Null } @@ -102086,53 +188312,71 @@ func (ec *executionContext) _Mutation_deleteHush(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteHush(rctx, fc.Args["id"].(string)) + return obj.Templates, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*HushDeletePayload) + res := resTmp.([]*generated.Template) fc.Result = res - return ec.marshalNHushDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushDeletePayload(ctx, field.Selections, res) + return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateBulkCreatePayload_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateBulkCreatePayload", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_HushDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HushDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createIntegration(ctx, field) +func (ec *executionContext) _TemplateConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -102145,53 +188389,41 @@ func (ec *executionContext) _Mutation_createIntegration(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateIntegration(rctx, fc.Args["input"].(generated.CreateIntegrationInput)) + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*IntegrationCreatePayload) + res := resTmp.([]*generated.TemplateEdge) fc.Result = res - return ec.marshalNIntegrationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationCreatePayload(ctx, field.Selections, res) + return ec.marshalOTemplateEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "integration": - return ec.fieldContext_IntegrationCreatePayload_integration(ctx, field) + case "node": + return ec.fieldContext_TemplateEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_TemplateEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type IntegrationCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TemplateEdge", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkIntegration(ctx, field) +func (ec *executionContext) _TemplateConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -102204,7 +188436,7 @@ func (ec *executionContext) _Mutation_createBulkIntegration(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkIntegration(rctx, fc.Args["input"].([]*generated.CreateIntegrationInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -102216,41 +188448,36 @@ func (ec *executionContext) _Mutation_createBulkIntegration(ctx context.Context, } return graphql.Null } - res := resTmp.(*IntegrationBulkCreatePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNIntegrationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "integrations": - return ec.fieldContext_IntegrationBulkCreatePayload_integrations(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type IntegrationBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVIntegration(ctx, field) +func (ec *executionContext) _TemplateConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -102263,7 +188490,7 @@ func (ec *executionContext) _Mutation_createBulkCSVIntegration(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVIntegration(rctx, fc.Args["input"].(graphql.Upload)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -102275,41 +188502,26 @@ func (ec *executionContext) _Mutation_createBulkCSVIntegration(ctx context.Conte } return graphql.Null } - res := resTmp.(*IntegrationBulkCreatePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNIntegrationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "integrations": - return ec.fieldContext_IntegrationBulkCreatePayload_integrations(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IntegrationBulkCreatePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateIntegration(ctx, field) +func (ec *executionContext) _TemplateCreatePayload_template(ctx context.Context, field graphql.CollectedField, obj *TemplateCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateCreatePayload_template(ctx, field) if err != nil { return graphql.Null } @@ -102322,7 +188534,7 @@ func (ec *executionContext) _Mutation_updateIntegration(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateIntegration(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateIntegrationInput)) + return obj.Template, nil }) if err != nil { ec.Error(ctx, err) @@ -102334,41 +188546,62 @@ func (ec *executionContext) _Mutation_updateIntegration(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*IntegrationUpdatePayload) + res := resTmp.(*generated.Template) fc.Result = res - return ec.marshalNIntegrationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationUpdatePayload(ctx, field.Selections, res) + return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateCreatePayload_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateCreatePayload", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "integration": - return ec.fieldContext_IntegrationUpdatePayload_integration(ctx, field) + case "id": + return ec.fieldContext_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type IntegrationUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteIntegration(ctx, field) +func (ec *executionContext) _TemplateDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *TemplateDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -102381,7 +188614,7 @@ func (ec *executionContext) _Mutation_deleteIntegration(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteIntegration(rctx, fc.Args["id"].(string)) + return obj.DeletedID, nil }) if err != nil { ec.Error(ctx, err) @@ -102393,41 +188626,26 @@ func (ec *executionContext) _Mutation_deleteIntegration(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*IntegrationDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNIntegrationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationDeletePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateDeletePayload", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_IntegrationDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IntegrationDeletePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createInvite(ctx, field) +func (ec *executionContext) _TemplateEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -102440,53 +188658,71 @@ func (ec *executionContext) _Mutation_createInvite(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateInvite(rctx, fc.Args["input"].(generated.CreateInviteInput)) + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*InviteCreatePayload) + res := resTmp.(*generated.Template) fc.Result = res - return ec.marshalNInviteCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteCreatePayload(ctx, field.Selections, res) + return ec.marshalOTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "invite": - return ec.fieldContext_InviteCreatePayload_invite(ctx, field) + case "id": + return ec.fieldContext_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type InviteCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkInvite(ctx, field) +func (ec *executionContext) _TemplateEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -102499,7 +188735,7 @@ func (ec *executionContext) _Mutation_createBulkInvite(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkInvite(rctx, fc.Args["input"].([]*generated.CreateInviteInput)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -102511,41 +188747,26 @@ func (ec *executionContext) _Mutation_createBulkInvite(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*InviteBulkCreatePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNInviteBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "invites": - return ec.fieldContext_InviteBulkCreatePayload_invites(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InviteBulkCreatePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVInvite(ctx, field) +func (ec *executionContext) _TemplateHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -102558,7 +188779,7 @@ func (ec *executionContext) _Mutation_createBulkCSVInvite(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVInvite(rctx, fc.Args["input"].(graphql.Upload)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -102570,41 +188791,26 @@ func (ec *executionContext) _Mutation_createBulkCSVInvite(ctx context.Context, f } return graphql.Null } - res := resTmp.(*InviteBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNInviteBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "invites": - return ec.fieldContext_InviteBulkCreatePayload_invites(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InviteBulkCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateInvite(ctx, field) +func (ec *executionContext) _TemplateHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -102617,7 +188823,7 @@ func (ec *executionContext) _Mutation_updateInvite(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateInvite(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateInviteInput)) + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -102629,41 +188835,26 @@ func (ec *executionContext) _Mutation_updateInvite(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(*InviteUpdatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNInviteUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteUpdatePayload(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "invite": - return ec.fieldContext_InviteUpdatePayload_invite(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InviteUpdatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteInvite(ctx, field) +func (ec *executionContext) _TemplateHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -102676,53 +188867,35 @@ func (ec *executionContext) _Mutation_deleteInvite(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteInvite(rctx, fc.Args["id"].(string)) + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*InviteDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNInviteDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_InviteDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InviteDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createOauthProvider(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createOauthProvider(ctx, field) +func (ec *executionContext) _TemplateHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -102735,7 +188908,7 @@ func (ec *executionContext) _Mutation_createOauthProvider(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateOauthProvider(rctx, fc.Args["input"].(generated.CreateOauthProviderInput)) + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -102747,41 +188920,26 @@ func (ec *executionContext) _Mutation_createOauthProvider(ctx context.Context, f } return graphql.Null } - res := resTmp.(*OauthProviderCreatePayload) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNOauthProviderCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderCreatePayload(ctx, field.Selections, res) + return ec.marshalNTemplateHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createOauthProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "oauthProvider": - return ec.fieldContext_OauthProviderCreatePayload_oauthProvider(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OauthProviderCreatePayload", field.Name) + return nil, errors.New("field of type TemplateHistoryOpType does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createOauthProvider_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkOauthProvider(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkOauthProvider(ctx, field) +func (ec *executionContext) _TemplateHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -102794,53 +188952,35 @@ func (ec *executionContext) _Mutation_createBulkOauthProvider(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkOauthProvider(rctx, fc.Args["input"].([]*generated.CreateOauthProviderInput)) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OauthProviderBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOauthProviderBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkOauthProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "oauthProviders": - return ec.fieldContext_OauthProviderBulkCreatePayload_oauthProviders(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OauthProviderBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkOauthProvider_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVOauthProvider(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVOauthProvider(ctx, field) +func (ec *executionContext) _TemplateHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -102853,53 +188993,35 @@ func (ec *executionContext) _Mutation_createBulkCSVOauthProvider(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVOauthProvider(rctx, fc.Args["input"].(graphql.Upload)) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OauthProviderBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOauthProviderBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVOauthProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "oauthProviders": - return ec.fieldContext_OauthProviderBulkCreatePayload_oauthProviders(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OauthProviderBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVOauthProvider_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateOauthProvider(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateOauthProvider(ctx, field) +func (ec *executionContext) _TemplateHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -102912,53 +189034,35 @@ func (ec *executionContext) _Mutation_updateOauthProvider(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateOauthProvider(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOauthProviderInput)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OauthProviderUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOauthProviderUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateOauthProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "oauthProvider": - return ec.fieldContext_OauthProviderUpdatePayload_oauthProvider(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OauthProviderUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateOauthProvider_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteOauthProvider(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteOauthProvider(ctx, field) +func (ec *executionContext) _TemplateHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -102971,53 +189075,35 @@ func (ec *executionContext) _Mutation_deleteOauthProvider(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteOauthProvider(rctx, fc.Args["id"].(string)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OauthProviderDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOauthProviderDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteOauthProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_OauthProviderDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OauthProviderDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteOauthProvider_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createOhAuthTooToken(ctx, field) +func (ec *executionContext) _TemplateHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -103030,53 +189116,35 @@ func (ec *executionContext) _Mutation_createOhAuthTooToken(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateOhAuthTooToken(rctx, fc.Args["input"].(generated.CreateOhAuthTooTokenInput)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OhAuthTooTokenCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOhAuthTooTokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "ohAuthTooToken": - return ec.fieldContext_OhAuthTooTokenCreatePayload_ohAuthTooToken(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createOhAuthTooToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkOhAuthTooToken(ctx, field) +func (ec *executionContext) _TemplateHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -103089,53 +189157,35 @@ func (ec *executionContext) _Mutation_createBulkOhAuthTooToken(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkOhAuthTooToken(rctx, fc.Args["input"].([]*generated.CreateOhAuthTooTokenInput)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OhAuthTooTokenBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOhAuthTooTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "ohAuthTooTokens": - return ec.fieldContext_OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkOhAuthTooToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVOhAuthTooToken(ctx, field) +func (ec *executionContext) _TemplateHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -103148,53 +189198,35 @@ func (ec *executionContext) _Mutation_createBulkCSVOhAuthTooToken(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVOhAuthTooToken(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OhAuthTooTokenBulkCreatePayload) + res := resTmp.([]string) fc.Result = res - return ec.marshalNOhAuthTooTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "ohAuthTooTokens": - return ec.fieldContext_OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVOhAuthTooToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateOhAuthTooToken(ctx, field) +func (ec *executionContext) _TemplateHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -103207,53 +189239,35 @@ func (ec *executionContext) _Mutation_updateOhAuthTooToken(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateOhAuthTooToken(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOhAuthTooTokenInput)) + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OhAuthTooTokenUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOhAuthTooTokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "ohAuthTooToken": - return ec.fieldContext_OhAuthTooTokenUpdatePayload_ohAuthTooToken(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateOhAuthTooToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteOhAuthTooToken(ctx, field) +func (ec *executionContext) _TemplateHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -103266,7 +189280,7 @@ func (ec *executionContext) _Mutation_deleteOhAuthTooToken(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteOhAuthTooToken(rctx, fc.Args["id"].(string)) + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -103278,41 +189292,26 @@ func (ec *executionContext) _Mutation_deleteOhAuthTooToken(ctx context.Context, } return graphql.Null } - res := resTmp.(*OhAuthTooTokenDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOhAuthTooTokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenDeletePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteOhAuthTooToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_OhAuthTooTokenDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteOhAuthTooToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createOrganization(ctx, field) +func (ec *executionContext) _TemplateHistory_templateType(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_templateType(ctx, field) if err != nil { return graphql.Null } @@ -103325,7 +189324,7 @@ func (ec *executionContext) _Mutation_createOrganization(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateOrganization(rctx, fc.Args["input"].(generated.CreateOrganizationInput)) + return obj.TemplateType, nil }) if err != nil { ec.Error(ctx, err) @@ -103337,41 +189336,26 @@ func (ec *executionContext) _Mutation_createOrganization(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*OrganizationCreatePayload) + res := resTmp.(enums.DocumentType) fc.Result = res - return ec.marshalNOrganizationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationCreatePayload(ctx, field.Selections, res) + return ec.marshalNTemplateHistoryDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_templateType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organization": - return ec.fieldContext_OrganizationCreatePayload_organization(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationCreatePayload", field.Name) + return nil, errors.New("field of type TemplateHistoryDocumentType does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkOrganization(ctx, field) +func (ec *executionContext) _TemplateHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -103384,53 +189368,35 @@ func (ec *executionContext) _Mutation_createBulkOrganization(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkOrganization(rctx, fc.Args["input"].([]*generated.CreateOrganizationInput)) + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrganizationBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrganizationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizations": - return ec.fieldContext_OrganizationBulkCreatePayload_organizations(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVOrganization(ctx, field) +func (ec *executionContext) _TemplateHistory_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_jsonconfig(ctx, field) if err != nil { return graphql.Null } @@ -103443,7 +189409,7 @@ func (ec *executionContext) _Mutation_createBulkCSVOrganization(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVOrganization(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Jsonconfig, nil }) if err != nil { ec.Error(ctx, err) @@ -103455,41 +189421,26 @@ func (ec *executionContext) _Mutation_createBulkCSVOrganization(ctx context.Cont } return graphql.Null } - res := resTmp.(*OrganizationBulkCreatePayload) + res := resTmp.(customtypes.JSONObject) fc.Result = res - return ec.marshalNOrganizationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizations": - return ec.fieldContext_OrganizationBulkCreatePayload_organizations(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationBulkCreatePayload", field.Name) + return nil, errors.New("field of type JSON does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateOrganization(ctx, field) +func (ec *executionContext) _TemplateHistory_uischema(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_uischema(ctx, field) if err != nil { return graphql.Null } @@ -103502,53 +189453,35 @@ func (ec *executionContext) _Mutation_updateOrganization(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateOrganization(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrganizationInput)) + return obj.Uischema, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrganizationUpdatePayload) + res := resTmp.(customtypes.JSONObject) fc.Result = res - return ec.marshalNOrganizationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationUpdatePayload(ctx, field.Selections, res) + return ec.marshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organization": - return ec.fieldContext_OrganizationUpdatePayload_organization(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationUpdatePayload", field.Name) + return nil, errors.New("field of type JSON does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteOrganization(ctx, field) +func (ec *executionContext) _TemplateHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -103561,53 +189494,41 @@ func (ec *executionContext) _Mutation_deleteOrganization(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteOrganization(rctx, fc.Args["id"].(string)) + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrganizationDeletePayload) + res := resTmp.([]*generated.TemplateHistoryEdge) fc.Result = res - return ec.marshalNOrganizationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationDeletePayload(ctx, field.Selections, res) + return ec.marshalOTemplateHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_OrganizationDeletePayload_deletedID(ctx, field) + case "node": + return ec.fieldContext_TemplateHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_TemplateHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TemplateHistoryEdge", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createOrganizationSetting(ctx, field) +func (ec *executionContext) _TemplateHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -103620,7 +189541,7 @@ func (ec *executionContext) _Mutation_createOrganizationSetting(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateOrganizationSetting(rctx, fc.Args["input"].(generated.CreateOrganizationSettingInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -103632,41 +189553,36 @@ func (ec *executionContext) _Mutation_createOrganizationSetting(ctx context.Cont } return graphql.Null } - res := resTmp.(*OrganizationSettingCreatePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNOrganizationSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingCreatePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "organizationSetting": - return ec.fieldContext_OrganizationSettingCreatePayload_organizationSetting(ctx, field) + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkOrganizationSetting(ctx, field) +func (ec *executionContext) _TemplateHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -103679,7 +189595,7 @@ func (ec *executionContext) _Mutation_createBulkOrganizationSetting(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkOrganizationSetting(rctx, fc.Args["input"].([]*generated.CreateOrganizationSettingInput)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -103691,41 +189607,26 @@ func (ec *executionContext) _Mutation_createBulkOrganizationSetting(ctx context. } return graphql.Null } - res := resTmp.(*OrganizationSettingBulkCreatePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNOrganizationSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizationSettings": - return ec.fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingBulkCreatePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVOrganizationSetting(ctx, field) +func (ec *executionContext) _TemplateHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -103738,53 +189639,71 @@ func (ec *executionContext) _Mutation_createBulkCSVOrganizationSetting(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVOrganizationSetting(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrganizationSettingBulkCreatePayload) + res := resTmp.(*generated.TemplateHistory) fc.Result = res - return ec.marshalNOrganizationSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTemplateHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "organizationSettings": - return ec.fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field) + case "id": + return ec.fieldContext_TemplateHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_TemplateHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_TemplateHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_TemplateHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_TemplateHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_TemplateHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_TemplateHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_TemplateHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_TemplateHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_TemplateHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_TemplateHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_TemplateHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_TemplateHistory_name(ctx, field) + case "templateType": + return ec.fieldContext_TemplateHistory_templateType(ctx, field) + case "description": + return ec.fieldContext_TemplateHistory_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_TemplateHistory_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_TemplateHistory_uischema(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TemplateHistory", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateOrganizationSetting(ctx, field) +func (ec *executionContext) _TemplateHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -103797,7 +189716,7 @@ func (ec *executionContext) _Mutation_updateOrganizationSetting(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateOrganizationSetting(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrganizationSettingInput)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -103809,41 +189728,26 @@ func (ec *executionContext) _Mutation_updateOrganizationSetting(ctx context.Cont } return graphql.Null } - res := resTmp.(*OrganizationSettingUpdatePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNOrganizationSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingUpdatePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizationSetting": - return ec.fieldContext_OrganizationSettingUpdatePayload_organizationSetting(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingUpdatePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteOrganizationSetting(ctx, field) +func (ec *executionContext) _TemplateSearchResult_templates(ctx context.Context, field graphql.CollectedField, obj *TemplateSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateSearchResult_templates(ctx, field) if err != nil { return graphql.Null } @@ -103856,53 +189760,71 @@ func (ec *executionContext) _Mutation_deleteOrganizationSetting(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteOrganizationSetting(rctx, fc.Args["id"].(string)) + return obj.Templates, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrganizationSettingDeletePayload) + res := resTmp.([]*generated.Template) fc.Result = res - return ec.marshalNOrganizationSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingDeletePayload(ctx, field.Selections, res) + return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateSearchResult_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateSearchResult", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_OrganizationSettingDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createOrgMembership(ctx, field) +func (ec *executionContext) _TemplateUpdatePayload_template(ctx context.Context, field graphql.CollectedField, obj *TemplateUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateUpdatePayload_template(ctx, field) if err != nil { return graphql.Null } @@ -103915,7 +189837,7 @@ func (ec *executionContext) _Mutation_createOrgMembership(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateOrgMembership(rctx, fc.Args["input"].(generated.CreateOrgMembershipInput)) + return obj.Template, nil }) if err != nil { ec.Error(ctx, err) @@ -103927,41 +189849,62 @@ func (ec *executionContext) _Mutation_createOrgMembership(ctx context.Context, f } return graphql.Null } - res := resTmp.(*OrgMembershipCreatePayload) + res := resTmp.(*generated.Template) fc.Result = res - return ec.marshalNOrgMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipCreatePayload(ctx, field.Selections, res) + return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateUpdatePayload_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "TemplateUpdatePayload", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "orgMembership": - return ec.fieldContext_OrgMembershipCreatePayload_orgMembership(ctx, field) + case "id": + return ec.fieldContext_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkOrgMembership(ctx, field) +func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_id(ctx, field) if err != nil { return graphql.Null } @@ -103974,7 +189917,7 @@ func (ec *executionContext) _Mutation_createBulkOrgMembership(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkOrgMembership(rctx, fc.Args["input"].([]*generated.CreateOrgMembershipInput)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -103986,41 +189929,26 @@ func (ec *executionContext) _Mutation_createBulkOrgMembership(ctx context.Contex } return graphql.Null } - res := resTmp.(*OrgMembershipBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrgMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "orgMemberships": - return ec.fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipBulkCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVOrgMembership(ctx, field) +func (ec *executionContext) _User_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -104033,53 +189961,35 @@ func (ec *executionContext) _Mutation_createBulkCSVOrgMembership(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVOrgMembership(rctx, fc.Args["input"].(graphql.Upload)) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrgMembershipBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOrgMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "orgMemberships": - return ec.fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateOrgMembership(ctx, field) +func (ec *executionContext) _User_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -104092,53 +190002,35 @@ func (ec *executionContext) _Mutation_updateOrgMembership(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateOrgMembership(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrgMembershipInput)) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrgMembershipUpdatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOrgMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipUpdatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "orgMembership": - return ec.fieldContext_OrgMembershipUpdatePayload_orgMembership(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipUpdatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteOrgMembership(ctx, field) +func (ec *executionContext) _User_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -104151,53 +190043,35 @@ func (ec *executionContext) _Mutation_deleteOrgMembership(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteOrgMembership(rctx, fc.Args["id"].(string)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrgMembershipDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrgMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_OrgMembershipDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createPersonalAccessToken(ctx, field) +func (ec *executionContext) _User_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -104210,53 +190084,35 @@ func (ec *executionContext) _Mutation_createPersonalAccessToken(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreatePersonalAccessToken(rctx, fc.Args["input"].(generated.CreatePersonalAccessTokenInput)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*PersonalAccessTokenCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNPersonalAccessTokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "personalAccessToken": - return ec.fieldContext_PersonalAccessTokenCreatePayload_personalAccessToken(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createPersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkPersonalAccessToken(ctx, field) +func (ec *executionContext) _User_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -104269,53 +190125,35 @@ func (ec *executionContext) _Mutation_createBulkPersonalAccessToken(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkPersonalAccessToken(rctx, fc.Args["input"].([]*generated.CreatePersonalAccessTokenInput)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*PersonalAccessTokenBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNPersonalAccessTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "personalAccessTokens": - return ec.fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkPersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVPersonalAccessToken(ctx, field) +func (ec *executionContext) _User_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -104328,53 +190166,35 @@ func (ec *executionContext) _Mutation_createBulkCSVPersonalAccessToken(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVPersonalAccessToken(rctx, fc.Args["input"].(graphql.Upload)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*PersonalAccessTokenBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNPersonalAccessTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "personalAccessTokens": - return ec.fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVPersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updatePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updatePersonalAccessToken(ctx, field) +func (ec *executionContext) _User_tags(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_tags(ctx, field) if err != nil { return graphql.Null } @@ -104387,53 +190207,35 @@ func (ec *executionContext) _Mutation_updatePersonalAccessToken(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdatePersonalAccessToken(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdatePersonalAccessTokenInput)) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*PersonalAccessTokenUpdatePayload) + res := resTmp.([]string) fc.Result = res - return ec.marshalNPersonalAccessTokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updatePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "personalAccessToken": - return ec.fieldContext_PersonalAccessTokenUpdatePayload_personalAccessToken(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updatePersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deletePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deletePersonalAccessToken(ctx, field) +func (ec *executionContext) _User_email(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_email(ctx, field) if err != nil { return graphql.Null } @@ -104446,7 +190248,7 @@ func (ec *executionContext) _Mutation_deletePersonalAccessToken(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeletePersonalAccessToken(rctx, fc.Args["id"].(string)) + return obj.Email, nil }) if err != nil { ec.Error(ctx, err) @@ -104458,41 +190260,26 @@ func (ec *executionContext) _Mutation_deletePersonalAccessToken(ctx context.Cont } return graphql.Null } - res := resTmp.(*PersonalAccessTokenDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNPersonalAccessTokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenDeletePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deletePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_PersonalAccessTokenDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deletePersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createSubscriber(ctx, field) +func (ec *executionContext) _User_firstName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_firstName(ctx, field) if err != nil { return graphql.Null } @@ -104505,53 +190292,35 @@ func (ec *executionContext) _Mutation_createSubscriber(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateSubscriber(rctx, fc.Args["input"].(generated.CreateSubscriberInput)) + return obj.FirstName, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*SubscriberCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNSubscriberCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subscriber": - return ec.fieldContext_SubscriberCreatePayload_subscriber(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubscriberCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkSubscriber(ctx, field) +func (ec *executionContext) _User_lastName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_lastName(ctx, field) if err != nil { return graphql.Null } @@ -104564,53 +190333,35 @@ func (ec *executionContext) _Mutation_createBulkSubscriber(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkSubscriber(rctx, fc.Args["input"].([]*generated.CreateSubscriberInput)) + return obj.LastName, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*SubscriberBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNSubscriberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subscribers": - return ec.fieldContext_SubscriberBulkCreatePayload_subscribers(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubscriberBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVSubscriber(ctx, field) +func (ec *executionContext) _User_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_displayName(ctx, field) if err != nil { return graphql.Null } @@ -104623,7 +190374,7 @@ func (ec *executionContext) _Mutation_createBulkCSVSubscriber(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVSubscriber(rctx, fc.Args["input"].(graphql.Upload)) + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -104635,41 +190386,26 @@ func (ec *executionContext) _Mutation_createBulkCSVSubscriber(ctx context.Contex } return graphql.Null } - res := resTmp.(*SubscriberBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNSubscriberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subscribers": - return ec.fieldContext_SubscriberBulkCreatePayload_subscribers(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubscriberBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateSubscriber(ctx, field) +func (ec *executionContext) _User_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_avatarRemoteURL(ctx, field) if err != nil { return graphql.Null } @@ -104682,53 +190418,35 @@ func (ec *executionContext) _Mutation_updateSubscriber(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateSubscriber(rctx, fc.Args["email"].(string), fc.Args["input"].(generated.UpdateSubscriberInput)) + return obj.AvatarRemoteURL, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*SubscriberUpdatePayload) + res := resTmp.(*string) fc.Result = res - return ec.marshalNSubscriberUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subscriber": - return ec.fieldContext_SubscriberUpdatePayload_subscriber(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubscriberUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteSubscriber(ctx, field) +func (ec *executionContext) _User_avatarLocalFile(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_avatarLocalFile(ctx, field) if err != nil { return graphql.Null } @@ -104741,53 +190459,35 @@ func (ec *executionContext) _Mutation_deleteSubscriber(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteSubscriber(rctx, fc.Args["email"].(string), fc.Args["ownerID"].(*string)) + return obj.AvatarLocalFile, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*SubscriberDeletePayload) + res := resTmp.(*string) fc.Result = res - return ec.marshalNSubscriberDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_avatarLocalFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "email": - return ec.fieldContext_SubscriberDeletePayload_email(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubscriberDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createTemplate(ctx, field) +func (ec *executionContext) _User_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_avatarLocalFileID(ctx, field) if err != nil { return graphql.Null } @@ -104800,53 +190500,35 @@ func (ec *executionContext) _Mutation_createTemplate(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateTemplate(rctx, fc.Args["input"].(generated.CreateTemplateInput)) + return obj.AvatarLocalFileID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*TemplateCreatePayload) + res := resTmp.(*string) fc.Result = res - return ec.marshalNTemplateCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateCreatePayload(ctx, field.Selections, res) + return ec.marshalOID2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "template": - return ec.fieldContext_TemplateCreatePayload_template(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TemplateCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkTemplate(ctx, field) +func (ec *executionContext) _User_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_avatarUpdatedAt(ctx, field) if err != nil { return graphql.Null } @@ -104859,53 +190541,35 @@ func (ec *executionContext) _Mutation_createBulkTemplate(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkTemplate(rctx, fc.Args["input"].([]*generated.CreateTemplateInput)) + return obj.AvatarUpdatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*TemplateBulkCreatePayload) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalNTemplateBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "templates": - return ec.fieldContext_TemplateBulkCreatePayload_templates(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TemplateBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVTemplate(ctx, field) +func (ec *executionContext) _User_lastSeen(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_lastSeen(ctx, field) if err != nil { return graphql.Null } @@ -104918,53 +190582,35 @@ func (ec *executionContext) _Mutation_createBulkCSVTemplate(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVTemplate(rctx, fc.Args["input"].(graphql.Upload)) + return obj.LastSeen, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*TemplateBulkCreatePayload) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalNTemplateBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_lastSeen(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "templates": - return ec.fieldContext_TemplateBulkCreatePayload_templates(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TemplateBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateTemplate(ctx, field) +func (ec *executionContext) _User_sub(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_sub(ctx, field) if err != nil { return graphql.Null } @@ -104977,53 +190623,35 @@ func (ec *executionContext) _Mutation_updateTemplate(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateTemplate(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateTemplateInput)) + return obj.Sub, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*TemplateUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNTemplateUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_sub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "template": - return ec.fieldContext_TemplateUpdatePayload_template(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TemplateUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteTemplate(ctx, field) +func (ec *executionContext) _User_authProvider(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_authProvider(ctx, field) if err != nil { return graphql.Null } @@ -105036,7 +190664,7 @@ func (ec *executionContext) _Mutation_deleteTemplate(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteTemplate(rctx, fc.Args["id"].(string)) + return obj.AuthProvider, nil }) if err != nil { ec.Error(ctx, err) @@ -105048,41 +190676,26 @@ func (ec *executionContext) _Mutation_deleteTemplate(ctx context.Context, field } return graphql.Null } - res := resTmp.(*TemplateDeletePayload) + res := resTmp.(enums.AuthProvider) fc.Result = res - return ec.marshalNTemplateDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateDeletePayload(ctx, field.Selections, res) + return ec.marshalNUserAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_authProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_TemplateDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TemplateDeletePayload", field.Name) + return nil, errors.New("field of type UserAuthProvider does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createTFASetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createTFASetting(ctx, field) +func (ec *executionContext) _User_role(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_role(ctx, field) if err != nil { return graphql.Null } @@ -105095,53 +190708,35 @@ func (ec *executionContext) _Mutation_createTFASetting(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateTFASetting(rctx, fc.Args["input"].(generated.CreateTFASettingInput)) + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*TFASettingCreatePayload) + res := resTmp.(enums.Role) fc.Result = res - return ec.marshalNTFASettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingCreatePayload(ctx, field.Selections, res) + return ec.marshalOUserRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createTFASetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "tfaSetting": - return ec.fieldContext_TFASettingCreatePayload_tfaSetting(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TFASettingCreatePayload", field.Name) + return nil, errors.New("field of type UserRole does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createTFASetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateTFASetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateTFASetting(ctx, field) +func (ec *executionContext) _User_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_personalAccessTokens(ctx, field) if err != nil { return graphql.Null } @@ -105154,53 +190749,71 @@ func (ec *executionContext) _Mutation_updateTFASetting(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateTFASetting(rctx, fc.Args["input"].(generated.UpdateTFASettingInput)) + return obj.PersonalAccessTokens(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*TFASettingUpdatePayload) + res := resTmp.([]*generated.PersonalAccessToken) fc.Result = res - return ec.marshalNTFASettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingUpdatePayload(ctx, field.Selections, res) + return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateTFASetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "tfaSetting": - return ec.fieldContext_TFASettingUpdatePayload_tfaSetting(ctx, field) + case "id": + return ec.fieldContext_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TFASettingUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateTFASetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createUser(ctx, field) +func (ec *executionContext) _User_tfaSettings(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_tfaSettings(ctx, field) if err != nil { return graphql.Null } @@ -105213,53 +190826,63 @@ func (ec *executionContext) _Mutation_createUser(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateUser(rctx, fc.Args["input"].(generated.CreateUserInput), fc.Args["avatarFile"].(*graphql.Upload)) + return obj.TfaSettings(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*UserCreatePayload) + res := resTmp.([]*generated.TFASetting) fc.Result = res - return ec.marshalNUserCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserCreatePayload(ctx, field.Selections, res) + return ec.marshalOTFASetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_tfaSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "user": - return ec.fieldContext_UserCreatePayload_user(ctx, field) + case "id": + return ec.fieldContext_TFASetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_TFASetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_TFASetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_TFASetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_TFASetting_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_TFASetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_TFASetting_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_TFASetting_tags(ctx, field) + case "tfaSecret": + return ec.fieldContext_TFASetting_tfaSecret(ctx, field) + case "verified": + return ec.fieldContext_TFASetting_verified(ctx, field) + case "recoveryCodes": + return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) + case "totpAllowed": + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + case "owner": + return ec.fieldContext_TFASetting_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateUser(ctx, field) +func (ec *executionContext) _User_setting(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_setting(ctx, field) if err != nil { return graphql.Null } @@ -105272,7 +190895,7 @@ func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateUser(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateUserInput), fc.Args["avatarFile"].(*graphql.Upload)) + return obj.Setting(ctx) }) if err != nil { ec.Error(ctx, err) @@ -105284,41 +190907,66 @@ func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(*UserUpdatePayload) + res := resTmp.(*generated.UserSetting) fc.Result = res - return ec.marshalNUserUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserUpdatePayload(ctx, field.Selections, res) + return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { + case "id": + return ec.fieldContext_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) case "user": - return ec.fieldContext_UserUpdatePayload_user(ctx, field) + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteUser(ctx, field) +func (ec *executionContext) _User_groups(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_groups(ctx, field) if err != nil { return graphql.Null } @@ -105331,53 +190979,79 @@ func (ec *executionContext) _Mutation_deleteUser(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteUser(rctx, fc.Args["id"].(string)) + return obj.Groups(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*UserDeletePayload) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalNUserDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserDeletePayload(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_UserDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createUserSetting(ctx, field) +func (ec *executionContext) _User_organizations(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_organizations(ctx, field) if err != nil { return graphql.Null } @@ -105390,53 +191064,119 @@ func (ec *executionContext) _Mutation_createUserSetting(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateUserSetting(rctx, fc.Args["input"].(generated.CreateUserSettingInput)) + return obj.Organizations(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*UserSettingCreatePayload) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalNUserSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingCreatePayload(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createUserSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "userSetting": - return ec.fieldContext_UserSettingCreatePayload_userSetting(ctx, field) + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserSettingCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkUserSetting(ctx, field) +func (ec *executionContext) _User_files(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_files(ctx, field) if err != nil { return graphql.Null } @@ -105449,53 +191189,99 @@ func (ec *executionContext) _Mutation_createBulkUserSetting(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkUserSetting(rctx, fc.Args["input"].([]*generated.CreateUserSettingInput)) + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*UserSettingBulkCreatePayload) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalNUserSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkUserSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "userSettings": - return ec.fieldContext_UserSettingBulkCreatePayload_userSettings(ctx, field) + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserSettingBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVUserSetting(ctx, field) +func (ec *executionContext) _User_file(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_file(ctx, field) if err != nil { return graphql.Null } @@ -105508,53 +191294,99 @@ func (ec *executionContext) _Mutation_createBulkCSVUserSetting(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVUserSetting(rctx, fc.Args["input"].(graphql.Upload)) + return obj.File(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*UserSettingBulkCreatePayload) + res := resTmp.(*generated.File) fc.Result = res - return ec.marshalNUserSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVUserSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "userSettings": - return ec.fieldContext_UserSettingBulkCreatePayload_userSettings(ctx, field) + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserSettingBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateUserSetting(ctx, field) +func (ec *executionContext) _User_events(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_events(ctx, field) if err != nil { return graphql.Null } @@ -105567,53 +191399,91 @@ func (ec *executionContext) _Mutation_updateUserSetting(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateUserSetting(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateUserSettingInput)) + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*UserSettingUpdatePayload) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalNUserSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingUpdatePayload(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateUserSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "userSetting": - return ec.fieldContext_UserSettingUpdatePayload_userSetting(ctx, field) + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserSettingUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createWebhook(ctx, field) +func (ec *executionContext) _User_actionplans(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_actionplans(ctx, field) if err != nil { return graphql.Null } @@ -105626,53 +191496,75 @@ func (ec *executionContext) _Mutation_createWebhook(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateWebhook(rctx, fc.Args["input"].(generated.CreateWebhookInput)) + return obj.Actionplans(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*WebhookCreatePayload) + res := resTmp.([]*generated.ActionPlan) fc.Result = res - return ec.marshalNWebhookCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookCreatePayload(ctx, field.Selections, res) + return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_actionplans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "webhook": - return ec.fieldContext_WebhookCreatePayload_webhook(ctx, field) + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type WebhookCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkWebhook(ctx, field) +func (ec *executionContext) _User_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_subcontrols(ctx, field) if err != nil { return graphql.Null } @@ -105685,53 +191577,91 @@ func (ec *executionContext) _Mutation_createBulkWebhook(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkWebhook(rctx, fc.Args["input"].([]*generated.CreateWebhookInput)) + return obj.Subcontrols(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*WebhookBulkCreatePayload) + res := resTmp.([]*generated.Subcontrol) fc.Result = res - return ec.marshalNWebhookBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "webhooks": - return ec.fieldContext_WebhookBulkCreatePayload_webhooks(ctx, field) + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "control": + return ec.fieldContext_Subcontrol_control(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type WebhookBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVWebhook(ctx, field) +func (ec *executionContext) _User_groupMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_groupMemberships(ctx, field) if err != nil { return graphql.Null } @@ -105744,53 +191674,63 @@ func (ec *executionContext) _Mutation_createBulkCSVWebhook(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVWebhook(rctx, fc.Args["input"].(graphql.Upload)) + return obj.GroupMemberships(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*WebhookBulkCreatePayload) + res := resTmp.([]*generated.GroupMembership) fc.Result = res - return ec.marshalNWebhookBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_groupMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "webhooks": - return ec.fieldContext_WebhookBulkCreatePayload_webhooks(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type WebhookBulkCreatePayload", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err + case "id": + return ec.fieldContext_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + }, } return fc, nil } -func (ec *executionContext) _Mutation_updateWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateWebhook(ctx, field) +func (ec *executionContext) _User_orgMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_orgMemberships(ctx, field) if err != nil { return graphql.Null } @@ -105803,53 +191743,63 @@ func (ec *executionContext) _Mutation_updateWebhook(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateWebhook(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateWebhookInput)) + return obj.OrgMemberships(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*WebhookUpdatePayload) + res := resTmp.([]*generated.OrgMembership) fc.Result = res - return ec.marshalNWebhookUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookUpdatePayload(ctx, field.Selections, res) + return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_orgMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "User", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "webhook": - return ec.fieldContext_WebhookUpdatePayload_webhook(ctx, field) + case "id": + return ec.fieldContext_OrgMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) + case "events": + return ec.fieldContext_OrgMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type WebhookUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteWebhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteWebhook(ctx, field) +func (ec *executionContext) _UserBulkCreatePayload_users(ctx context.Context, field graphql.CollectedField, obj *UserBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserBulkCreatePayload_users(ctx, field) if err != nil { return graphql.Null } @@ -105862,53 +191812,101 @@ func (ec *executionContext) _Mutation_deleteWebhook(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteWebhook(rctx, fc.Args["id"].(string)) + return obj.Users, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*WebhookDeletePayload) + res := resTmp.([]*generated.User) fc.Result = res - return ec.marshalNWebhookDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookDeletePayload(ctx, field.Selections, res) + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteWebhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserBulkCreatePayload_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "UserBulkCreatePayload", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_WebhookDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type WebhookDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteWebhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Note_id(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_id(ctx, field) +func (ec *executionContext) _UserConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -105921,38 +191919,41 @@ func (ec *executionContext) _Note_id(ctx context.Context, field graphql.Collecte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.UserEdge) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOUserEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "UserConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_UserEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_UserEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Note_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_createdAt(ctx, field) +func (ec *executionContext) _UserConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -105965,35 +191966,48 @@ func (ec *executionContext) _Note_createdAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "UserConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Note_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_updatedAt(ctx, field) +func (ec *executionContext) _UserConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -106006,35 +192020,38 @@ func (ec *executionContext) _Note_updatedAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(int) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "UserConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Note_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_createdBy(ctx, field) +func (ec *executionContext) _UserCreatePayload_user(ctx context.Context, field graphql.CollectedField, obj *UserCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserCreatePayload_user(ctx, field) if err != nil { return graphql.Null } @@ -106047,35 +192064,104 @@ func (ec *executionContext) _Note_createdBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.User, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserCreatePayload_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "UserCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _Note_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_updatedBy(ctx, field) +func (ec *executionContext) _UserDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *UserDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -106088,35 +192174,38 @@ func (ec *executionContext) _Note_updatedBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.DeletedID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "UserDeletePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Note_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_deletedAt(ctx, field) +func (ec *executionContext) _UserEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -106129,7 +192218,7 @@ func (ec *executionContext) _Note_deletedAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -106138,26 +192227,92 @@ func (ec *executionContext) _Note_deletedAt(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "UserEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _Note_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_deletedBy(ctx, field) +func (ec *executionContext) _UserEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -106170,35 +192325,38 @@ func (ec *executionContext) _Note_deletedBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "UserEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Note_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_tags(ctx, field) +func (ec *executionContext) _UserHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -106211,35 +192369,38 @@ func (ec *executionContext) _Note_tags(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Note_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_ownerID(ctx, field) +func (ec *executionContext) _UserHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -106252,35 +192413,38 @@ func (ec *executionContext) _Note_ownerID(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Note_text(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_text(ctx, field) +func (ec *executionContext) _UserHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -106293,26 +192457,23 @@ func (ec *executionContext) _Note_text(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, @@ -106323,8 +192484,8 @@ func (ec *executionContext) fieldContext_Note_text(_ context.Context, field grap return fc, nil } -func (ec *executionContext) _Note_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_owner(ctx, field) +func (ec *executionContext) _UserHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -106337,119 +192498,38 @@ func (ec *executionContext) _Note_owner(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNUserHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "UserHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type UserHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Note_entity(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_entity(ctx, field) +func (ec *executionContext) _UserHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -106462,7 +192542,7 @@ func (ec *executionContext) _Note_entity(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entity(ctx) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -106471,70 +192551,26 @@ func (ec *executionContext) _Note_entity(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Entity) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "UserHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NoteConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteConnection_edges(ctx, field) +func (ec *executionContext) _UserHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -106547,7 +192583,7 @@ func (ec *executionContext) _NoteConnection_edges(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -106556,32 +192592,26 @@ func (ec *executionContext) _NoteConnection_edges(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.NoteEdge) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalONoteEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteEdge(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteConnection", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_NoteEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_NoteEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NoteEdge", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NoteConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteConnection_pageInfo(ctx, field) +func (ec *executionContext) _UserHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -106594,48 +192624,35 @@ func (ec *executionContext) _NoteConnection_pageInfo(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteConnection", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NoteConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteConnection_totalCount(ctx, field) +func (ec *executionContext) _UserHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -106648,38 +192665,35 @@ func (ec *executionContext) _NoteConnection_totalCount(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteConnection", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NoteEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteEdge_node(ctx, field) +func (ec *executionContext) _UserHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -106692,7 +192706,7 @@ func (ec *executionContext) _NoteEdge_node(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -106701,52 +192715,26 @@ func (ec *executionContext) _NoteEdge_node(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Note) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalONote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteEdge", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Note_id(ctx, field) - case "createdAt": - return ec.fieldContext_Note_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Note_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Note_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Note_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Note_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Note_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Note_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Note_ownerID(ctx, field) - case "text": - return ec.fieldContext_Note_text(ctx, field) - case "owner": - return ec.fieldContext_Note_owner(ctx, field) - case "entity": - return ec.fieldContext_Note_entity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NoteEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteEdge_cursor(ctx, field) +func (ec *executionContext) _UserHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -106759,38 +192747,35 @@ func (ec *executionContext) _NoteEdge_cursor(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteEdge", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_id(ctx, field) +func (ec *executionContext) _UserHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -106803,38 +192788,35 @@ func (ec *executionContext) _NoteHistory_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_historyTime(ctx, field) +func (ec *executionContext) _UserHistory_email(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_email(ctx, field) if err != nil { return graphql.Null } @@ -106847,7 +192829,7 @@ func (ec *executionContext) _NoteHistory_historyTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Email, nil }) if err != nil { ec.Error(ctx, err) @@ -106859,26 +192841,26 @@ func (ec *executionContext) _NoteHistory_historyTime(ctx context.Context, field } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_ref(ctx, field) +func (ec *executionContext) _UserHistory_firstName(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_firstName(ctx, field) if err != nil { return graphql.Null } @@ -106891,7 +192873,7 @@ func (ec *executionContext) _NoteHistory_ref(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.FirstName, nil }) if err != nil { ec.Error(ctx, err) @@ -106905,9 +192887,9 @@ func (ec *executionContext) _NoteHistory_ref(ctx context.Context, field graphql. return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, @@ -106918,8 +192900,8 @@ func (ec *executionContext) fieldContext_NoteHistory_ref(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _NoteHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_operation(ctx, field) +func (ec *executionContext) _UserHistory_lastName(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_lastName(ctx, field) if err != nil { return graphql.Null } @@ -106932,38 +192914,35 @@ func (ec *executionContext) _NoteHistory_operation(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.LastName, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type NoteHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_createdAt(ctx, field) +func (ec *executionContext) _UserHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_displayName(ctx, field) if err != nil { return graphql.Null } @@ -106976,35 +192955,38 @@ func (ec *executionContext) _NoteHistory_createdAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_updatedAt(ctx, field) +func (ec *executionContext) _UserHistory_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_avatarRemoteURL(ctx, field) if err != nil { return graphql.Null } @@ -107017,7 +192999,7 @@ func (ec *executionContext) _NoteHistory_updatedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.AvatarRemoteURL, nil }) if err != nil { ec.Error(ctx, err) @@ -107026,26 +193008,26 @@ func (ec *executionContext) _NoteHistory_updatedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_createdBy(ctx, field) +func (ec *executionContext) _UserHistory_avatarLocalFile(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_avatarLocalFile(ctx, field) if err != nil { return graphql.Null } @@ -107058,7 +193040,7 @@ func (ec *executionContext) _NoteHistory_createdBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.AvatarLocalFile, nil }) if err != nil { ec.Error(ctx, err) @@ -107067,14 +193049,14 @@ func (ec *executionContext) _NoteHistory_createdBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_avatarLocalFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, @@ -107085,8 +193067,8 @@ func (ec *executionContext) fieldContext_NoteHistory_createdBy(_ context.Context return fc, nil } -func (ec *executionContext) _NoteHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_updatedBy(ctx, field) +func (ec *executionContext) _UserHistory_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_avatarLocalFileID(ctx, field) if err != nil { return graphql.Null } @@ -107099,7 +193081,7 @@ func (ec *executionContext) _NoteHistory_updatedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.AvatarLocalFileID, nil }) if err != nil { ec.Error(ctx, err) @@ -107108,14 +193090,14 @@ func (ec *executionContext) _NoteHistory_updatedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, @@ -107126,8 +193108,8 @@ func (ec *executionContext) fieldContext_NoteHistory_updatedBy(_ context.Context return fc, nil } -func (ec *executionContext) _NoteHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_deletedAt(ctx, field) +func (ec *executionContext) _UserHistory_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_avatarUpdatedAt(ctx, field) if err != nil { return graphql.Null } @@ -107140,7 +193122,7 @@ func (ec *executionContext) _NoteHistory_deletedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.AvatarUpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -107149,14 +193131,14 @@ func (ec *executionContext) _NoteHistory_deletedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, @@ -107167,8 +193149,8 @@ func (ec *executionContext) fieldContext_NoteHistory_deletedAt(_ context.Context return fc, nil } -func (ec *executionContext) _NoteHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_deletedBy(ctx, field) +func (ec *executionContext) _UserHistory_lastSeen(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_lastSeen(ctx, field) if err != nil { return graphql.Null } @@ -107181,7 +193163,7 @@ func (ec *executionContext) _NoteHistory_deletedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.LastSeen, nil }) if err != nil { ec.Error(ctx, err) @@ -107190,26 +193172,26 @@ func (ec *executionContext) _NoteHistory_deletedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_lastSeen(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_tags(ctx, field) +func (ec *executionContext) _UserHistory_sub(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_sub(ctx, field) if err != nil { return graphql.Null } @@ -107222,7 +193204,7 @@ func (ec *executionContext) _NoteHistory_tags(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Sub, nil }) if err != nil { ec.Error(ctx, err) @@ -107231,14 +193213,14 @@ func (ec *executionContext) _NoteHistory_tags(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_sub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, @@ -107249,8 +193231,8 @@ func (ec *executionContext) fieldContext_NoteHistory_tags(_ context.Context, fie return fc, nil } -func (ec *executionContext) _NoteHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_ownerID(ctx, field) +func (ec *executionContext) _UserHistory_authProvider(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_authProvider(ctx, field) if err != nil { return graphql.Null } @@ -107263,35 +193245,38 @@ func (ec *executionContext) _NoteHistory_ownerID(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.AuthProvider, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(enums.AuthProvider) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNUserHistoryAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_authProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type UserHistoryAuthProvider does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_text(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_text(ctx, field) +func (ec *executionContext) _UserHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_role(ctx, field) if err != nil { return graphql.Null } @@ -107304,38 +193289,35 @@ func (ec *executionContext) _NoteHistory_text(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(enums.Role) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOUserHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type UserHistoryRole does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistoryConnection_edges(ctx, field) +func (ec *executionContext) _UserHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -107357,32 +193339,32 @@ func (ec *executionContext) _NoteHistoryConnection_edges(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.NoteHistoryEdge) + res := resTmp.([]*generated.UserHistoryEdge) fc.Result = res - return ec.marshalONoteHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryEdge(ctx, field.Selections, res) + return ec.marshalOUserHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryConnection", + Object: "UserHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_NoteHistoryEdge_node(ctx, field) + return ec.fieldContext_UserHistoryEdge_node(ctx, field) case "cursor": - return ec.fieldContext_NoteHistoryEdge_cursor(ctx, field) + return ec.fieldContext_UserHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type NoteHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _NoteHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _UserHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -107412,9 +193394,9 @@ func (ec *executionContext) _NoteHistoryConnection_pageInfo(ctx context.Context, return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryConnection", + Object: "UserHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -107435,8 +193417,8 @@ func (ec *executionContext) fieldContext_NoteHistoryConnection_pageInfo(_ contex return fc, nil } -func (ec *executionContext) _NoteHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _UserHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -107466,9 +193448,9 @@ func (ec *executionContext) _NoteHistoryConnection_totalCount(ctx context.Contex return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryConnection", + Object: "UserHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -107479,8 +193461,8 @@ func (ec *executionContext) fieldContext_NoteHistoryConnection_totalCount(_ cont return fc, nil } -func (ec *executionContext) _NoteHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistoryEdge_node(ctx, field) +func (ec *executionContext) _UserHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -107502,54 +193484,74 @@ func (ec *executionContext) _NoteHistoryEdge_node(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.NoteHistory) + res := resTmp.(*generated.UserHistory) fc.Result = res - return ec.marshalONoteHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistory(ctx, field.Selections, res) + return ec.marshalOUserHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryEdge", + Object: "UserHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_NoteHistory_id(ctx, field) + return ec.fieldContext_UserHistory_id(ctx, field) case "historyTime": - return ec.fieldContext_NoteHistory_historyTime(ctx, field) + return ec.fieldContext_UserHistory_historyTime(ctx, field) case "ref": - return ec.fieldContext_NoteHistory_ref(ctx, field) + return ec.fieldContext_UserHistory_ref(ctx, field) case "operation": - return ec.fieldContext_NoteHistory_operation(ctx, field) + return ec.fieldContext_UserHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_NoteHistory_createdAt(ctx, field) + return ec.fieldContext_UserHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_NoteHistory_updatedAt(ctx, field) + return ec.fieldContext_UserHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_NoteHistory_createdBy(ctx, field) + return ec.fieldContext_UserHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_NoteHistory_updatedBy(ctx, field) + return ec.fieldContext_UserHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_NoteHistory_deletedAt(ctx, field) + return ec.fieldContext_UserHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_NoteHistory_deletedBy(ctx, field) + return ec.fieldContext_UserHistory_deletedBy(ctx, field) case "tags": - return ec.fieldContext_NoteHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_NoteHistory_ownerID(ctx, field) - case "text": - return ec.fieldContext_NoteHistory_text(ctx, field) + return ec.fieldContext_UserHistory_tags(ctx, field) + case "email": + return ec.fieldContext_UserHistory_email(ctx, field) + case "firstName": + return ec.fieldContext_UserHistory_firstName(ctx, field) + case "lastName": + return ec.fieldContext_UserHistory_lastName(ctx, field) + case "displayName": + return ec.fieldContext_UserHistory_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_UserHistory_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_UserHistory_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_UserHistory_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_UserHistory_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_UserHistory_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_UserHistory_sub(ctx, field) + case "authProvider": + return ec.fieldContext_UserHistory_authProvider(ctx, field) + case "role": + return ec.fieldContext_UserHistory_role(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type NoteHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _NoteHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _UserHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -107579,9 +193581,9 @@ func (ec *executionContext) _NoteHistoryEdge_cursor(ctx context.Context, field g return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryEdge", + Object: "UserHistoryEdge", Field: field, IsMethod: false, IsResolver: false, @@ -107592,8 +193594,8 @@ func (ec *executionContext) fieldContext_NoteHistoryEdge_cursor(_ context.Contex return fc, nil } -func (ec *executionContext) _OauthProvider_id(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_id(ctx, field) +func (ec *executionContext) _UserSearchResult_users(ctx context.Context, field graphql.CollectedField, obj *UserSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSearchResult_users(ctx, field) if err != nil { return graphql.Null } @@ -107606,38 +193608,101 @@ func (ec *executionContext) _OauthProvider_id(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Users, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.User) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSearchResult_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSearchResult", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProvider_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_createdAt(ctx, field) +func (ec *executionContext) _UserSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_id(ctx, field) if err != nil { return graphql.Null } @@ -107650,35 +193715,38 @@ func (ec *executionContext) _OauthProvider_createdAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_updatedAt(ctx, field) +func (ec *executionContext) _UserSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -107691,7 +193759,7 @@ func (ec *executionContext) _OauthProvider_updatedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -107705,9 +193773,9 @@ func (ec *executionContext) _OauthProvider_updatedAt(ctx context.Context, field return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, @@ -107718,8 +193786,8 @@ func (ec *executionContext) fieldContext_OauthProvider_updatedAt(_ context.Conte return fc, nil } -func (ec *executionContext) _OauthProvider_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_createdBy(ctx, field) +func (ec *executionContext) _UserSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -107732,7 +193800,7 @@ func (ec *executionContext) _OauthProvider_createdBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -107741,26 +193809,26 @@ func (ec *executionContext) _OauthProvider_createdBy(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_updatedBy(ctx, field) +func (ec *executionContext) _UserSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -107773,7 +193841,7 @@ func (ec *executionContext) _OauthProvider_updatedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -107787,9 +193855,9 @@ func (ec *executionContext) _OauthProvider_updatedBy(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, @@ -107800,8 +193868,8 @@ func (ec *executionContext) fieldContext_OauthProvider_updatedBy(_ context.Conte return fc, nil } -func (ec *executionContext) _OauthProvider_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_tags(ctx, field) +func (ec *executionContext) _UserSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -107814,7 +193882,7 @@ func (ec *executionContext) _OauthProvider_tags(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -107823,14 +193891,14 @@ func (ec *executionContext) _OauthProvider_tags(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, @@ -107841,8 +193909,8 @@ func (ec *executionContext) fieldContext_OauthProvider_tags(_ context.Context, f return fc, nil } -func (ec *executionContext) _OauthProvider_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_deletedAt(ctx, field) +func (ec *executionContext) _UserSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_tags(ctx, field) if err != nil { return graphql.Null } @@ -107855,7 +193923,7 @@ func (ec *executionContext) _OauthProvider_deletedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -107864,26 +193932,26 @@ func (ec *executionContext) _OauthProvider_deletedAt(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_deletedBy(ctx, field) +func (ec *executionContext) _UserSetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -107896,7 +193964,7 @@ func (ec *executionContext) _OauthProvider_deletedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -107905,26 +193973,26 @@ func (ec *executionContext) _OauthProvider_deletedBy(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_ownerID(ctx, field) +func (ec *executionContext) _UserSetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -107937,7 +194005,7 @@ func (ec *executionContext) _OauthProvider_ownerID(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -107948,24 +194016,24 @@ func (ec *executionContext) _OauthProvider_ownerID(ctx context.Context, field gr } res := resTmp.(string) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_name(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_name(ctx, field) +func (ec *executionContext) _UserSetting_userID(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_userID(ctx, field) if err != nil { return graphql.Null } @@ -107978,38 +194046,35 @@ func (ec *executionContext) _OauthProvider_name(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.UserID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_clientID(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_clientID(ctx, field) +func (ec *executionContext) _UserSetting_locked(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_locked(ctx, field) if err != nil { return graphql.Null } @@ -108022,7 +194087,7 @@ func (ec *executionContext) _OauthProvider_clientID(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClientID, nil + return obj.Locked, nil }) if err != nil { ec.Error(ctx, err) @@ -108034,26 +194099,26 @@ func (ec *executionContext) _OauthProvider_clientID(ctx context.Context, field g } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_clientID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_locked(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_clientSecret(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_clientSecret(ctx, field) +func (ec *executionContext) _UserSetting_silencedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_silencedAt(ctx, field) if err != nil { return graphql.Null } @@ -108066,38 +194131,35 @@ func (ec *executionContext) _OauthProvider_clientSecret(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClientSecret, nil + return obj.SilencedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_clientSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_silencedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_redirectURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_redirectURL(ctx, field) +func (ec *executionContext) _UserSetting_suspendedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_suspendedAt(ctx, field) if err != nil { return graphql.Null } @@ -108110,38 +194172,35 @@ func (ec *executionContext) _OauthProvider_redirectURL(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RedirectURL, nil + return obj.SuspendedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_redirectURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_suspendedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_scopes(ctx, field) +func (ec *executionContext) _UserSetting_status(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_status(ctx, field) if err != nil { return graphql.Null } @@ -108154,7 +194213,7 @@ func (ec *executionContext) _OauthProvider_scopes(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Scopes, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -108166,26 +194225,26 @@ func (ec *executionContext) _OauthProvider_scopes(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(string) + res := resTmp.(enums.UserStatus) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNUserSettingUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type UserSettingUserStatus does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_authURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_authURL(ctx, field) +func (ec *executionContext) _UserSetting_emailConfirmed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_emailConfirmed(ctx, field) if err != nil { return graphql.Null } @@ -108198,7 +194257,7 @@ func (ec *executionContext) _OauthProvider_authURL(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuthURL, nil + return obj.EmailConfirmed, nil }) if err != nil { ec.Error(ctx, err) @@ -108210,26 +194269,26 @@ func (ec *executionContext) _OauthProvider_authURL(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_authURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_emailConfirmed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_tokenURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_tokenURL(ctx, field) +func (ec *executionContext) _UserSetting_isWebauthnAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) if err != nil { return graphql.Null } @@ -108242,38 +194301,35 @@ func (ec *executionContext) _OauthProvider_tokenURL(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TokenURL, nil + return obj.IsWebauthnAllowed, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_tokenURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_isWebauthnAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_authStyle(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_authStyle(ctx, field) +func (ec *executionContext) _UserSetting_isTfaEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) if err != nil { return graphql.Null } @@ -108286,38 +194342,35 @@ func (ec *executionContext) _OauthProvider_authStyle(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuthStyle, nil + return obj.IsTfaEnabled, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(customtypes.Uint8) + res := resTmp.(bool) fc.Result = res - return ec.marshalNUint2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_authStyle(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_isTfaEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Uint does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProvider_infoURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_infoURL(ctx, field) +func (ec *executionContext) _UserSetting_user(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_user(ctx, field) if err != nil { return graphql.Null } @@ -108330,38 +194383,101 @@ func (ec *executionContext) _OauthProvider_infoURL(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InfoURL, nil + return obj.User(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_infoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProvider_owner(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProvider_owner(ctx, field) +func (ec *executionContext) _UserSetting_defaultOrg(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_defaultOrg(ctx, field) if err != nil { return graphql.Null } @@ -108374,7 +194490,7 @@ func (ec *executionContext) _OauthProvider_owner(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.DefaultOrg(ctx) }) if err != nil { ec.Error(ctx, err) @@ -108388,9 +194504,9 @@ func (ec *executionContext) _OauthProvider_owner(ctx context.Context, field grap return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProvider_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_defaultOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProvider", + Object: "UserSetting", Field: field, IsMethod: true, IsResolver: false, @@ -108485,8 +194601,8 @@ func (ec *executionContext) fieldContext_OauthProvider_owner(_ context.Context, return fc, nil } -func (ec *executionContext) _OauthProviderBulkCreatePayload_oauthProviders(ctx context.Context, field graphql.CollectedField, obj *OauthProviderBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderBulkCreatePayload_oauthProviders(ctx, field) +func (ec *executionContext) _UserSetting_files(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_files(ctx, field) if err != nil { return graphql.Null } @@ -108499,7 +194615,7 @@ func (ec *executionContext) _OauthProviderBulkCreatePayload_oauthProviders(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OauthProviders, nil + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) @@ -108508,66 +194624,90 @@ func (ec *executionContext) _OauthProviderBulkCreatePayload_oauthProviders(ctx c if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OauthProvider) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalOOauthProvider2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderᚄ(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderBulkCreatePayload_oauthProviders(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderBulkCreatePayload", + Object: "UserSetting", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_OauthProvider_id(ctx, field) + return ec.fieldContext_File_id(ctx, field) case "createdAt": - return ec.fieldContext_OauthProvider_createdAt(ctx, field) + return ec.fieldContext_File_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_OauthProvider_updatedAt(ctx, field) + return ec.fieldContext_File_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_OauthProvider_createdBy(ctx, field) + return ec.fieldContext_File_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_OauthProvider_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OauthProvider_tags(ctx, field) + return ec.fieldContext_File_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_OauthProvider_deletedAt(ctx, field) + return ec.fieldContext_File_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_OauthProvider_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OauthProvider_ownerID(ctx, field) - case "name": - return ec.fieldContext_OauthProvider_name(ctx, field) - case "clientID": - return ec.fieldContext_OauthProvider_clientID(ctx, field) - case "clientSecret": - return ec.fieldContext_OauthProvider_clientSecret(ctx, field) - case "redirectURL": - return ec.fieldContext_OauthProvider_redirectURL(ctx, field) - case "scopes": - return ec.fieldContext_OauthProvider_scopes(ctx, field) - case "authURL": - return ec.fieldContext_OauthProvider_authURL(ctx, field) - case "tokenURL": - return ec.fieldContext_OauthProvider_tokenURL(ctx, field) - case "authStyle": - return ec.fieldContext_OauthProvider_authStyle(ctx, field) - case "infoURL": - return ec.fieldContext_OauthProvider_infoURL(ctx, field) - case "owner": - return ec.fieldContext_OauthProvider_owner(ctx, field) + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "usersetting": + return ec.fieldContext_File_usersetting(ctx, field) + case "organizationsetting": + return ec.fieldContext_File_organizationsetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentdata": + return ec.fieldContext_File_documentdata(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProviderConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderConnection_edges(ctx, field) +func (ec *executionContext) _UserSettingBulkCreatePayload_userSettings(ctx context.Context, field graphql.CollectedField, obj *UserSettingBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingBulkCreatePayload_userSettings(ctx, field) if err != nil { return graphql.Null } @@ -108580,7 +194720,7 @@ func (ec *executionContext) _OauthProviderConnection_edges(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.UserSettings, nil }) if err != nil { ec.Error(ctx, err) @@ -108589,32 +194729,66 @@ func (ec *executionContext) _OauthProviderConnection_edges(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OauthProviderEdge) + res := resTmp.([]*generated.UserSetting) fc.Result = res - return ec.marshalOOauthProviderEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderEdge(ctx, field.Selections, res) + return ec.marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingBulkCreatePayload_userSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderConnection", + Object: "UserSettingBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_OauthProviderEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OauthProviderEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OauthProviderEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProviderConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderConnection_pageInfo(ctx, field) +func (ec *executionContext) _UserSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -108627,48 +194801,41 @@ func (ec *executionContext) _OauthProviderConnection_pageInfo(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]*generated.UserSettingEdge) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOUserSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderConnection", + Object: "UserSettingConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "node": + return ec.fieldContext_UserSettingEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_UserSettingEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSettingEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProviderConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderConnection_totalCount(ctx, field) +func (ec *executionContext) _UserSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -108681,7 +194848,7 @@ func (ec *executionContext) _OauthProviderConnection_totalCount(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -108693,26 +194860,36 @@ func (ec *executionContext) _OauthProviderConnection_totalCount(ctx context.Cont } return graphql.Null } - res := resTmp.(int) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderConnection", + Object: "UserSettingConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProviderCreatePayload_oauthProvider(ctx context.Context, field graphql.CollectedField, obj *OauthProviderCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderCreatePayload_oauthProvider(ctx, field) +func (ec *executionContext) _UserSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -108725,7 +194902,7 @@ func (ec *executionContext) _OauthProviderCreatePayload_oauthProvider(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OauthProvider, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -108737,66 +194914,26 @@ func (ec *executionContext) _OauthProviderCreatePayload_oauthProvider(ctx contex } return graphql.Null } - res := resTmp.(*generated.OauthProvider) + res := resTmp.(int) fc.Result = res - return ec.marshalNOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderCreatePayload_oauthProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderCreatePayload", + Object: "UserSettingConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OauthProvider_id(ctx, field) - case "createdAt": - return ec.fieldContext_OauthProvider_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OauthProvider_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OauthProvider_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OauthProvider_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OauthProvider_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OauthProvider_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OauthProvider_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OauthProvider_ownerID(ctx, field) - case "name": - return ec.fieldContext_OauthProvider_name(ctx, field) - case "clientID": - return ec.fieldContext_OauthProvider_clientID(ctx, field) - case "clientSecret": - return ec.fieldContext_OauthProvider_clientSecret(ctx, field) - case "redirectURL": - return ec.fieldContext_OauthProvider_redirectURL(ctx, field) - case "scopes": - return ec.fieldContext_OauthProvider_scopes(ctx, field) - case "authURL": - return ec.fieldContext_OauthProvider_authURL(ctx, field) - case "tokenURL": - return ec.fieldContext_OauthProvider_tokenURL(ctx, field) - case "authStyle": - return ec.fieldContext_OauthProvider_authStyle(ctx, field) - case "infoURL": - return ec.fieldContext_OauthProvider_infoURL(ctx, field) - case "owner": - return ec.fieldContext_OauthProvider_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProviderDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OauthProviderDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _UserSettingCreatePayload_userSetting(ctx context.Context, field graphql.CollectedField, obj *UserSettingCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingCreatePayload_userSetting(ctx, field) if err != nil { return graphql.Null } @@ -108809,7 +194946,7 @@ func (ec *executionContext) _OauthProviderDeletePayload_deletedID(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.UserSetting, nil }) if err != nil { ec.Error(ctx, err) @@ -108821,26 +194958,66 @@ func (ec *executionContext) _OauthProviderDeletePayload_deletedID(ctx context.Co } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.UserSetting) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingCreatePayload_userSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderDeletePayload", + Object: "UserSettingCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProviderEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderEdge_node(ctx, field) +func (ec *executionContext) _UserSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -108862,66 +195039,66 @@ func (ec *executionContext) _OauthProviderEdge_node(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OauthProvider) + res := resTmp.(*generated.UserSetting) fc.Result = res - return ec.marshalOOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx, field.Selections, res) + return ec.marshalOUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderEdge", + Object: "UserSettingEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_OauthProvider_id(ctx, field) + return ec.fieldContext_UserSetting_id(ctx, field) case "createdAt": - return ec.fieldContext_OauthProvider_createdAt(ctx, field) + return ec.fieldContext_UserSetting_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_OauthProvider_updatedAt(ctx, field) + return ec.fieldContext_UserSetting_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_OauthProvider_createdBy(ctx, field) + return ec.fieldContext_UserSetting_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_OauthProvider_updatedBy(ctx, field) + return ec.fieldContext_UserSetting_updatedBy(ctx, field) case "tags": - return ec.fieldContext_OauthProvider_tags(ctx, field) + return ec.fieldContext_UserSetting_tags(ctx, field) case "deletedAt": - return ec.fieldContext_OauthProvider_deletedAt(ctx, field) + return ec.fieldContext_UserSetting_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_OauthProvider_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OauthProvider_ownerID(ctx, field) - case "name": - return ec.fieldContext_OauthProvider_name(ctx, field) - case "clientID": - return ec.fieldContext_OauthProvider_clientID(ctx, field) - case "clientSecret": - return ec.fieldContext_OauthProvider_clientSecret(ctx, field) - case "redirectURL": - return ec.fieldContext_OauthProvider_redirectURL(ctx, field) - case "scopes": - return ec.fieldContext_OauthProvider_scopes(ctx, field) - case "authURL": - return ec.fieldContext_OauthProvider_authURL(ctx, field) - case "tokenURL": - return ec.fieldContext_OauthProvider_tokenURL(ctx, field) - case "authStyle": - return ec.fieldContext_OauthProvider_authStyle(ctx, field) - case "infoURL": - return ec.fieldContext_OauthProvider_infoURL(ctx, field) - case "owner": - return ec.fieldContext_OauthProvider_owner(ctx, field) + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProviderEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderEdge_cursor(ctx, field) +func (ec *executionContext) _UserSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -108951,9 +195128,9 @@ func (ec *executionContext) _OauthProviderEdge_cursor(ctx context.Context, field return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderEdge", + Object: "UserSettingEdge", Field: field, IsMethod: false, IsResolver: false, @@ -108964,8 +195141,8 @@ func (ec *executionContext) fieldContext_OauthProviderEdge_cursor(_ context.Cont return fc, nil } -func (ec *executionContext) _OauthProviderHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_id(ctx, field) +func (ec *executionContext) _UserSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -108995,9 +195172,9 @@ func (ec *executionContext) _OauthProviderHistory_id(ctx context.Context, field return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109008,8 +195185,8 @@ func (ec *executionContext) fieldContext_OauthProviderHistory_id(_ context.Conte return fc, nil } -func (ec *executionContext) _OauthProviderHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_historyTime(ctx, field) +func (ec *executionContext) _UserSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -109039,9 +195216,9 @@ func (ec *executionContext) _OauthProviderHistory_historyTime(ctx context.Contex return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109052,8 +195229,8 @@ func (ec *executionContext) fieldContext_OauthProviderHistory_historyTime(_ cont return fc, nil } -func (ec *executionContext) _OauthProviderHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_ref(ctx, field) +func (ec *executionContext) _UserSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -109080,9 +195257,9 @@ func (ec *executionContext) _OauthProviderHistory_ref(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109093,8 +195270,8 @@ func (ec *executionContext) fieldContext_OauthProviderHistory_ref(_ context.Cont return fc, nil } -func (ec *executionContext) _OauthProviderHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_operation(ctx, field) +func (ec *executionContext) _UserSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -109121,24 +195298,24 @@ func (ec *executionContext) _OauthProviderHistory_operation(ctx context.Context, } res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNOauthProviderHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNUserSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OauthProviderHistoryOpType does not have child fields") + return nil, errors.New("field of type UserSettingHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_createdAt(ctx, field) +func (ec *executionContext) _UserSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -109165,9 +195342,9 @@ func (ec *executionContext) _OauthProviderHistory_createdAt(ctx context.Context, return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109178,8 +195355,8 @@ func (ec *executionContext) fieldContext_OauthProviderHistory_createdAt(_ contex return fc, nil } -func (ec *executionContext) _OauthProviderHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_updatedAt(ctx, field) +func (ec *executionContext) _UserSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -109206,9 +195383,9 @@ func (ec *executionContext) _OauthProviderHistory_updatedAt(ctx context.Context, return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109219,8 +195396,8 @@ func (ec *executionContext) fieldContext_OauthProviderHistory_updatedAt(_ contex return fc, nil } -func (ec *executionContext) _OauthProviderHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_createdBy(ctx, field) +func (ec *executionContext) _UserSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -109247,9 +195424,9 @@ func (ec *executionContext) _OauthProviderHistory_createdBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109260,8 +195437,8 @@ func (ec *executionContext) fieldContext_OauthProviderHistory_createdBy(_ contex return fc, nil } -func (ec *executionContext) _OauthProviderHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_updatedBy(ctx, field) +func (ec *executionContext) _UserSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -109288,9 +195465,9 @@ func (ec *executionContext) _OauthProviderHistory_updatedBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109301,8 +195478,8 @@ func (ec *executionContext) fieldContext_OauthProviderHistory_updatedBy(_ contex return fc, nil } -func (ec *executionContext) _OauthProviderHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_tags(ctx, field) +func (ec *executionContext) _UserSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -109329,9 +195506,9 @@ func (ec *executionContext) _OauthProviderHistory_tags(ctx context.Context, fiel return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109342,8 +195519,8 @@ func (ec *executionContext) fieldContext_OauthProviderHistory_tags(_ context.Con return fc, nil } -func (ec *executionContext) _OauthProviderHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_deletedAt(ctx, field) +func (ec *executionContext) _UserSettingHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -109370,9 +195547,9 @@ func (ec *executionContext) _OauthProviderHistory_deletedAt(ctx context.Context, return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109383,8 +195560,8 @@ func (ec *executionContext) fieldContext_OauthProviderHistory_deletedAt(_ contex return fc, nil } -func (ec *executionContext) _OauthProviderHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_deletedBy(ctx, field) +func (ec *executionContext) _UserSettingHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -109411,9 +195588,9 @@ func (ec *executionContext) _OauthProviderHistory_deletedBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109424,8 +195601,345 @@ func (ec *executionContext) fieldContext_OauthProviderHistory_deletedBy(_ contex return fc, nil } -func (ec *executionContext) _OauthProviderHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_ownerID(ctx, field) +func (ec *executionContext) _UserSettingHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_userID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSettingHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserSettingHistory_locked(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_locked(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Locked, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSettingHistory_locked(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserSettingHistory_silencedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_silencedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SilencedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSettingHistory_silencedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserSettingHistory_suspendedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_suspendedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SuspendedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*time.Time) + fc.Result = res + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSettingHistory_suspendedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserSettingHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_status(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Status, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.UserStatus) + fc.Result = res + return ec.marshalNUserSettingHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSettingHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type UserSettingHistoryUserStatus does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserSettingHistory_emailConfirmed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_emailConfirmed(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EmailConfirmed, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSettingHistory_emailConfirmed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserSettingHistory_isWebauthnAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_isWebauthnAllowed(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsWebauthnAllowed, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSettingHistory_isWebauthnAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserSettingHistory_isTfaEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_isTfaEnabled(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsTfaEnabled, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalOBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSettingHistory_isTfaEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -109438,7 +195952,7 @@ func (ec *executionContext) _OauthProviderHistory_ownerID(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -109447,26 +195961,32 @@ func (ec *executionContext) _OauthProviderHistory_ownerID(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.UserSettingHistoryEdge) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOUserSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_UserSettingHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_UserSettingHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_name(ctx, field) +func (ec *executionContext) _UserSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -109479,7 +195999,7 @@ func (ec *executionContext) _OauthProviderHistory_name(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -109491,26 +196011,36 @@ func (ec *executionContext) _OauthProviderHistory_name(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistory_clientID(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_clientID(ctx, field) +func (ec *executionContext) _UserSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -109523,7 +196053,7 @@ func (ec *executionContext) _OauthProviderHistory_clientID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClientID, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -109535,26 +196065,26 @@ func (ec *executionContext) _OauthProviderHistory_clientID(ctx context.Context, } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_clientID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistory_clientSecret(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_clientSecret(ctx, field) +func (ec *executionContext) _UserSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -109567,38 +196097,75 @@ func (ec *executionContext) _OauthProviderHistory_clientSecret(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClientSecret, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.UserSettingHistory) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOUserSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_clientSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_UserSettingHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_UserSettingHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_UserSettingHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_UserSettingHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_UserSettingHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSettingHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSettingHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSettingHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSettingHistory_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSettingHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSettingHistory_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSettingHistory_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSettingHistory_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSettingHistory_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSettingHistory_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSettingHistory_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSettingHistory_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSettingHistory_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSettingHistory_isTfaEnabled(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistory_redirectURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_redirectURL(ctx, field) +func (ec *executionContext) _UserSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -109611,7 +196178,7 @@ func (ec *executionContext) _OauthProviderHistory_redirectURL(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RedirectURL, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -109623,26 +196190,26 @@ func (ec *executionContext) _OauthProviderHistory_redirectURL(ctx context.Contex } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_redirectURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistory_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_scopes(ctx, field) +func (ec *executionContext) _UserSettingSearchResult_userSettings(ctx context.Context, field graphql.CollectedField, obj *UserSettingSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingSearchResult_userSettings(ctx, field) if err != nil { return graphql.Null } @@ -109655,38 +196222,75 @@ func (ec *executionContext) _OauthProviderHistory_scopes(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Scopes, nil + return obj.UserSettings, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.UserSetting) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingSearchResult_userSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingSearchResult", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistory_authURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_authURL(ctx, field) +func (ec *executionContext) _UserSettingUpdatePayload_userSetting(ctx context.Context, field graphql.CollectedField, obj *UserSettingUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingUpdatePayload_userSetting(ctx, field) if err != nil { return graphql.Null } @@ -109699,7 +196303,7 @@ func (ec *executionContext) _OauthProviderHistory_authURL(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuthURL, nil + return obj.UserSetting, nil }) if err != nil { ec.Error(ctx, err) @@ -109711,26 +196315,66 @@ func (ec *executionContext) _OauthProviderHistory_authURL(ctx context.Context, f } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.UserSetting) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_authURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingUpdatePayload_userSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserSettingUpdatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistory_tokenURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_tokenURL(ctx, field) +func (ec *executionContext) _UserUpdatePayload_user(ctx context.Context, field graphql.CollectedField, obj *UserUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserUpdatePayload_user(ctx, field) if err != nil { return graphql.Null } @@ -109743,7 +196387,7 @@ func (ec *executionContext) _OauthProviderHistory_tokenURL(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TokenURL, nil + return obj.User, nil }) if err != nil { ec.Error(ctx, err) @@ -109755,26 +196399,92 @@ func (ec *executionContext) _OauthProviderHistory_tokenURL(ctx context.Context, } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_tokenURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserUpdatePayload_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "UserUpdatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionplans": + return ec.fieldContext_User_actionplans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistory_authStyle(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_authStyle(ctx, field) +func (ec *executionContext) _Webhook_id(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_id(ctx, field) if err != nil { return graphql.Null } @@ -109787,7 +196497,7 @@ func (ec *executionContext) _OauthProviderHistory_authStyle(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuthStyle, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -109799,26 +196509,26 @@ func (ec *executionContext) _OauthProviderHistory_authStyle(ctx context.Context, } return graphql.Null } - res := resTmp.(customtypes.Uint8) + res := resTmp.(string) fc.Result = res - return ec.marshalNUint2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_authStyle(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Uint does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistory_infoURL(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistory_infoURL(ctx, field) +func (ec *executionContext) _Webhook_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -109831,38 +196541,35 @@ func (ec *executionContext) _OauthProviderHistory_infoURL(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InfoURL, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistory_infoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistory", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistoryConnection_edges(ctx, field) +func (ec *executionContext) _Webhook_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -109875,7 +196582,7 @@ func (ec *executionContext) _OauthProviderHistoryConnection_edges(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -109884,32 +196591,26 @@ func (ec *executionContext) _OauthProviderHistoryConnection_edges(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OauthProviderHistoryEdge) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOOauthProviderHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryEdge(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistoryConnection", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_OauthProviderHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OauthProviderHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OauthProviderHistoryEdge", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Webhook_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -109922,48 +196623,35 @@ func (ec *executionContext) _OauthProviderHistoryConnection_pageInfo(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistoryConnection", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _Webhook_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -109976,38 +196664,35 @@ func (ec *executionContext) _OauthProviderHistoryConnection_totalCount(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistoryConnection", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistoryEdge_node(ctx, field) +func (ec *executionContext) _Webhook_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_tags(ctx, field) if err != nil { return graphql.Null } @@ -110020,7 +196705,7 @@ func (ec *executionContext) _OauthProviderHistoryEdge_node(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -110029,70 +196714,26 @@ func (ec *executionContext) _OauthProviderHistoryEdge_node(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OauthProviderHistory) + res := resTmp.([]string) fc.Result = res - return ec.marshalOOauthProviderHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistory(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistoryEdge", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OauthProviderHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_OauthProviderHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_OauthProviderHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_OauthProviderHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_OauthProviderHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OauthProviderHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OauthProviderHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OauthProviderHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OauthProviderHistory_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OauthProviderHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OauthProviderHistory_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OauthProviderHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_OauthProviderHistory_name(ctx, field) - case "clientID": - return ec.fieldContext_OauthProviderHistory_clientID(ctx, field) - case "clientSecret": - return ec.fieldContext_OauthProviderHistory_clientSecret(ctx, field) - case "redirectURL": - return ec.fieldContext_OauthProviderHistory_redirectURL(ctx, field) - case "scopes": - return ec.fieldContext_OauthProviderHistory_scopes(ctx, field) - case "authURL": - return ec.fieldContext_OauthProviderHistory_authURL(ctx, field) - case "tokenURL": - return ec.fieldContext_OauthProviderHistory_tokenURL(ctx, field) - case "authStyle": - return ec.fieldContext_OauthProviderHistory_authStyle(ctx, field) - case "infoURL": - return ec.fieldContext_OauthProviderHistory_infoURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OauthProviderHistory", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProviderHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OauthProviderHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _Webhook_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -110105,38 +196746,35 @@ func (ec *executionContext) _OauthProviderHistoryEdge_cursor(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderHistoryEdge", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProviderSearchResult_oauthProviders(ctx context.Context, field graphql.CollectedField, obj *OauthProviderSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderSearchResult_oauthProviders(ctx, field) +func (ec *executionContext) _Webhook_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -110149,7 +196787,7 @@ func (ec *executionContext) _OauthProviderSearchResult_oauthProviders(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OauthProviders, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -110158,66 +196796,26 @@ func (ec *executionContext) _OauthProviderSearchResult_oauthProviders(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OauthProvider) + res := resTmp.(string) fc.Result = res - return ec.marshalOOauthProvider2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderSearchResult_oauthProviders(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderSearchResult", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OauthProvider_id(ctx, field) - case "createdAt": - return ec.fieldContext_OauthProvider_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OauthProvider_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OauthProvider_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OauthProvider_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OauthProvider_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OauthProvider_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OauthProvider_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OauthProvider_ownerID(ctx, field) - case "name": - return ec.fieldContext_OauthProvider_name(ctx, field) - case "clientID": - return ec.fieldContext_OauthProvider_clientID(ctx, field) - case "clientSecret": - return ec.fieldContext_OauthProvider_clientSecret(ctx, field) - case "redirectURL": - return ec.fieldContext_OauthProvider_redirectURL(ctx, field) - case "scopes": - return ec.fieldContext_OauthProvider_scopes(ctx, field) - case "authURL": - return ec.fieldContext_OauthProvider_authURL(ctx, field) - case "tokenURL": - return ec.fieldContext_OauthProvider_tokenURL(ctx, field) - case "authStyle": - return ec.fieldContext_OauthProvider_authStyle(ctx, field) - case "infoURL": - return ec.fieldContext_OauthProvider_infoURL(ctx, field) - case "owner": - return ec.fieldContext_OauthProvider_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OauthProviderUpdatePayload_oauthProvider(ctx context.Context, field graphql.CollectedField, obj *OauthProviderUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OauthProviderUpdatePayload_oauthProvider(ctx, field) +func (ec *executionContext) _Webhook_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -110230,78 +196828,35 @@ func (ec *executionContext) _OauthProviderUpdatePayload_oauthProvider(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OauthProvider, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.OauthProvider) + res := resTmp.(string) fc.Result = res - return ec.marshalNOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OauthProviderUpdatePayload_oauthProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OauthProviderUpdatePayload", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OauthProvider_id(ctx, field) - case "createdAt": - return ec.fieldContext_OauthProvider_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OauthProvider_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OauthProvider_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OauthProvider_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OauthProvider_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OauthProvider_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OauthProvider_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OauthProvider_ownerID(ctx, field) - case "name": - return ec.fieldContext_OauthProvider_name(ctx, field) - case "clientID": - return ec.fieldContext_OauthProvider_clientID(ctx, field) - case "clientSecret": - return ec.fieldContext_OauthProvider_clientSecret(ctx, field) - case "redirectURL": - return ec.fieldContext_OauthProvider_redirectURL(ctx, field) - case "scopes": - return ec.fieldContext_OauthProvider_scopes(ctx, field) - case "authURL": - return ec.fieldContext_OauthProvider_authURL(ctx, field) - case "tokenURL": - return ec.fieldContext_OauthProvider_tokenURL(ctx, field) - case "authStyle": - return ec.fieldContext_OauthProvider_authStyle(ctx, field) - case "infoURL": - return ec.fieldContext_OauthProvider_infoURL(ctx, field) - case "owner": - return ec.fieldContext_OauthProvider_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooToken_id(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_id(ctx, field) +func (ec *executionContext) _Webhook_name(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_name(ctx, field) if err != nil { return graphql.Null } @@ -110314,7 +196869,7 @@ func (ec *executionContext) _OhAuthTooToken_id(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -110328,24 +196883,24 @@ func (ec *executionContext) _OhAuthTooToken_id(ctx context.Context, field graphq } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_tags(ctx, field) +func (ec *executionContext) _Webhook_description(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_description(ctx, field) if err != nil { return graphql.Null } @@ -110358,7 +196913,7 @@ func (ec *executionContext) _OhAuthTooToken_tags(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -110367,14 +196922,14 @@ func (ec *executionContext) _OhAuthTooToken_tags(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, @@ -110385,8 +196940,8 @@ func (ec *executionContext) fieldContext_OhAuthTooToken_tags(_ context.Context, return fc, nil } -func (ec *executionContext) _OhAuthTooToken_clientID(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_clientID(ctx, field) +func (ec *executionContext) _Webhook_destinationURL(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_destinationURL(ctx, field) if err != nil { return graphql.Null } @@ -110399,7 +196954,7 @@ func (ec *executionContext) _OhAuthTooToken_clientID(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClientID, nil + return obj.DestinationURL, nil }) if err != nil { ec.Error(ctx, err) @@ -110416,9 +196971,9 @@ func (ec *executionContext) _OhAuthTooToken_clientID(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_clientID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_destinationURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, @@ -110429,8 +196984,8 @@ func (ec *executionContext) fieldContext_OhAuthTooToken_clientID(_ context.Conte return fc, nil } -func (ec *executionContext) _OhAuthTooToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_scopes(ctx, field) +func (ec *executionContext) _Webhook_enabled(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_enabled(ctx, field) if err != nil { return graphql.Null } @@ -110443,35 +196998,38 @@ func (ec *executionContext) _OhAuthTooToken_scopes(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Scopes, nil + return obj.Enabled, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(bool) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooToken_nonce(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_nonce(ctx, field) +func (ec *executionContext) _Webhook_failures(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_failures(ctx, field) if err != nil { return graphql.Null } @@ -110484,38 +197042,35 @@ func (ec *executionContext) _OhAuthTooToken_nonce(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Nonce, nil + return obj.Failures, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_nonce(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_failures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooToken_claimsUserID(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) +func (ec *executionContext) _Webhook_lastError(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_lastError(ctx, field) if err != nil { return graphql.Null } @@ -110528,26 +197083,23 @@ func (ec *executionContext) _OhAuthTooToken_claimsUserID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClaimsUserID, nil + return obj.LastError, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_claimsUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_lastError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, @@ -110558,8 +197110,8 @@ func (ec *executionContext) fieldContext_OhAuthTooToken_claimsUserID(_ context.C return fc, nil } -func (ec *executionContext) _OhAuthTooToken_claimsUsername(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) +func (ec *executionContext) _Webhook_lastResponse(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_lastResponse(ctx, field) if err != nil { return graphql.Null } @@ -110572,26 +197124,23 @@ func (ec *executionContext) _OhAuthTooToken_claimsUsername(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClaimsUsername, nil + return obj.LastResponse, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_claimsUsername(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_lastResponse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "Webhook", Field: field, IsMethod: false, IsResolver: false, @@ -110602,8 +197151,8 @@ func (ec *executionContext) fieldContext_OhAuthTooToken_claimsUsername(_ context return fc, nil } -func (ec *executionContext) _OhAuthTooToken_claimsEmail(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) +func (ec *executionContext) _Webhook_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_owner(ctx, field) if err != nil { return graphql.Null } @@ -110616,38 +197165,119 @@ func (ec *executionContext) _OhAuthTooToken_claimsEmail(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClaimsEmail, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_claimsEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "Webhook", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentdata": + return ec.fieldContext_Organization_documentdata(ctx, field) + case "entitlements": + return ec.fieldContext_Organization_entitlements(ctx, field) + case "organizationEntitlement": + return ec.fieldContext_Organization_organizationEntitlement(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "oauthprovider": + return ec.fieldContext_Organization_oauthprovider(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "webhooks": + return ec.fieldContext_Organization_webhooks(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "features": + return ec.fieldContext_Organization_features(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entitlementplans": + return ec.fieldContext_Organization_entitlementplans(ctx, field) + case "entitlementplanfeatures": + return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entitytypes": + return ec.fieldContext_Organization_entitytypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _OhAuthTooToken_claimsEmailVerified(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) +func (ec *executionContext) _Webhook_events(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_events(ctx, field) if err != nil { return graphql.Null } @@ -110660,38 +197290,91 @@ func (ec *executionContext) _OhAuthTooToken_claimsEmailVerified(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClaimsEmailVerified, nil + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(bool) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_claimsEmailVerified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "Webhook", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "feature": + return ec.fieldContext_Event_feature(ctx, field) + case "entitlementplan": + return ec.fieldContext_Event_entitlementplan(ctx, field) + case "entitlementplanfeature": + return ec.fieldContext_Event_entitlementplanfeature(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "oauth2token": + return ec.fieldContext_Event_oauth2token(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "entitlement": + return ec.fieldContext_Event_entitlement(ctx, field) + case "webhook": + return ec.fieldContext_Event_webhook(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } return fc, nil } -func (ec *executionContext) _OhAuthTooToken_claimsGroups(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) +func (ec *executionContext) _Webhook_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Webhook_integrations(ctx, field) if err != nil { return graphql.Null } @@ -110704,7 +197387,7 @@ func (ec *executionContext) _OhAuthTooToken_claimsGroups(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClaimsGroups, nil + return obj.Integrations(ctx) }) if err != nil { ec.Error(ctx, err) @@ -110713,26 +197396,62 @@ func (ec *executionContext) _OhAuthTooToken_claimsGroups(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.([]*generated.Integration) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_claimsGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Webhook_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "Webhook", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "oauth2tokens": + return ec.fieldContext_Integration_oauth2tokens(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + case "webhooks": + return ec.fieldContext_Integration_webhooks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) }, } return fc, nil } -func (ec *executionContext) _OhAuthTooToken_claimsPreferredUsername(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) +func (ec *executionContext) _WebhookBulkCreatePayload_webhooks(ctx context.Context, field graphql.CollectedField, obj *WebhookBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookBulkCreatePayload_webhooks(ctx, field) if err != nil { return graphql.Null } @@ -110745,38 +197464,75 @@ func (ec *executionContext) _OhAuthTooToken_claimsPreferredUsername(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClaimsPreferredUsername, nil + return obj.Webhooks, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Webhook) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_claimsPreferredUsername(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookBulkCreatePayload_webhooks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "WebhookBulkCreatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Webhook_id(ctx, field) + case "createdAt": + return ec.fieldContext_Webhook_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Webhook_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Webhook_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Webhook_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Webhook_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Webhook_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Webhook_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Webhook_ownerID(ctx, field) + case "name": + return ec.fieldContext_Webhook_name(ctx, field) + case "description": + return ec.fieldContext_Webhook_description(ctx, field) + case "destinationURL": + return ec.fieldContext_Webhook_destinationURL(ctx, field) + case "enabled": + return ec.fieldContext_Webhook_enabled(ctx, field) + case "failures": + return ec.fieldContext_Webhook_failures(ctx, field) + case "lastError": + return ec.fieldContext_Webhook_lastError(ctx, field) + case "lastResponse": + return ec.fieldContext_Webhook_lastResponse(ctx, field) + case "owner": + return ec.fieldContext_Webhook_owner(ctx, field) + case "events": + return ec.fieldContext_Webhook_events(ctx, field) + case "integrations": + return ec.fieldContext_Webhook_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) }, } return fc, nil } -func (ec *executionContext) _OhAuthTooToken_connectorID(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) +func (ec *executionContext) _WebhookConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -110789,38 +197545,41 @@ func (ec *executionContext) _OhAuthTooToken_connectorID(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ConnectorID, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.WebhookEdge) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOWebhookEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_connectorID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "WebhookConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_WebhookEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_WebhookEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type WebhookEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _OhAuthTooToken_connectorData(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) +func (ec *executionContext) _WebhookConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -110833,35 +197592,48 @@ func (ec *executionContext) _OhAuthTooToken_connectorData(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ConnectorData, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_connectorData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "WebhookConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _OhAuthTooToken_lastUsed(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) +func (ec *executionContext) _WebhookConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -110874,7 +197646,7 @@ func (ec *executionContext) _OhAuthTooToken_lastUsed(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastUsed, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -110886,26 +197658,26 @@ func (ec *executionContext) _OhAuthTooToken_lastUsed(ctx context.Context, field } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(int) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_lastUsed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "WebhookConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooToken_integration(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_integration(ctx, field) +func (ec *executionContext) _WebhookCreatePayload_webhook(ctx context.Context, field graphql.CollectedField, obj *WebhookCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookCreatePayload_webhook(ctx, field) if err != nil { return graphql.Null } @@ -110918,71 +197690,78 @@ func (ec *executionContext) _OhAuthTooToken_integration(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integration(ctx) + return obj.Webhook, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Integration) + res := resTmp.(*generated.Webhook) fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) + return ec.marshalNWebhook2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhook(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookCreatePayload_webhook(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "WebhookCreatePayload", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Integration_id(ctx, field) + return ec.fieldContext_Webhook_id(ctx, field) case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) + return ec.fieldContext_Webhook_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) + return ec.fieldContext_Webhook_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) + return ec.fieldContext_Webhook_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) + return ec.fieldContext_Webhook_updatedBy(ctx, field) case "tags": - return ec.fieldContext_Integration_tags(ctx, field) + return ec.fieldContext_Webhook_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) + return ec.fieldContext_Webhook_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) + return ec.fieldContext_Webhook_deletedBy(ctx, field) case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) + return ec.fieldContext_Webhook_ownerID(ctx, field) case "name": - return ec.fieldContext_Integration_name(ctx, field) + return ec.fieldContext_Webhook_name(ctx, field) case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) + return ec.fieldContext_Webhook_description(ctx, field) + case "destinationURL": + return ec.fieldContext_Webhook_destinationURL(ctx, field) + case "enabled": + return ec.fieldContext_Webhook_enabled(ctx, field) + case "failures": + return ec.fieldContext_Webhook_failures(ctx, field) + case "lastError": + return ec.fieldContext_Webhook_lastError(ctx, field) + case "lastResponse": + return ec.fieldContext_Webhook_lastResponse(ctx, field) case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "oauth2tokens": - return ec.fieldContext_Integration_oauth2tokens(ctx, field) + return ec.fieldContext_Webhook_owner(ctx, field) case "events": - return ec.fieldContext_Integration_events(ctx, field) - case "webhooks": - return ec.fieldContext_Integration_webhooks(ctx, field) + return ec.fieldContext_Webhook_events(ctx, field) + case "integrations": + return ec.fieldContext_Webhook_integrations(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) }, } return fc, nil } -func (ec *executionContext) _OhAuthTooToken_events(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooToken_events(ctx, field) +func (ec *executionContext) _WebhookDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *WebhookDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookDeletePayload_deletedID(ctx, field) if err != nil { return graphql.Null } @@ -110995,91 +197774,38 @@ func (ec *executionContext) _OhAuthTooToken_events(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.DeletedID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(string) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooToken_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooToken", + Object: "WebhookDeletePayload", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(ctx context.Context, field graphql.CollectedField, obj *OhAuthTooTokenBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(ctx, field) +func (ec *executionContext) _WebhookEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -111092,7 +197818,7 @@ func (ec *executionContext) _OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OhAuthTooTokens, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -111101,60 +197827,66 @@ func (ec *executionContext) _OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(ctx if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OhAuthTooToken) + res := resTmp.(*generated.Webhook) fc.Result = res - return ec.marshalOOhAuthTooToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenᚄ(ctx, field.Selections, res) + return ec.marshalOWebhook2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhook(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooTokenBulkCreatePayload", + Object: "WebhookEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_OhAuthTooToken_id(ctx, field) + return ec.fieldContext_Webhook_id(ctx, field) + case "createdAt": + return ec.fieldContext_Webhook_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Webhook_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Webhook_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Webhook_updatedBy(ctx, field) case "tags": - return ec.fieldContext_OhAuthTooToken_tags(ctx, field) - case "clientID": - return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) - case "scopes": - return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) - case "nonce": - return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) - case "claimsUserID": - return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) - case "claimsUsername": - return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) - case "claimsEmail": - return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) - case "claimsEmailVerified": - return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) - case "claimsGroups": - return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) - case "claimsPreferredUsername": - return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) - case "connectorID": - return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) - case "connectorData": - return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) - case "lastUsed": - return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) - case "integration": - return ec.fieldContext_OhAuthTooToken_integration(ctx, field) + return ec.fieldContext_Webhook_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Webhook_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Webhook_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Webhook_ownerID(ctx, field) + case "name": + return ec.fieldContext_Webhook_name(ctx, field) + case "description": + return ec.fieldContext_Webhook_description(ctx, field) + case "destinationURL": + return ec.fieldContext_Webhook_destinationURL(ctx, field) + case "enabled": + return ec.fieldContext_Webhook_enabled(ctx, field) + case "failures": + return ec.fieldContext_Webhook_failures(ctx, field) + case "lastError": + return ec.fieldContext_Webhook_lastError(ctx, field) + case "lastResponse": + return ec.fieldContext_Webhook_lastResponse(ctx, field) + case "owner": + return ec.fieldContext_Webhook_owner(ctx, field) case "events": - return ec.fieldContext_OhAuthTooToken_events(ctx, field) + return ec.fieldContext_Webhook_events(ctx, field) + case "integrations": + return ec.fieldContext_Webhook_integrations(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) }, } return fc, nil } -func (ec *executionContext) _OhAuthTooTokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooTokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooTokenConnection_edges(ctx, field) +func (ec *executionContext) _WebhookEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -111167,41 +197899,38 @@ func (ec *executionContext) _OhAuthTooTokenConnection_edges(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.OhAuthTooTokenEdge) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOOhAuthTooTokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenEdge(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooTokenConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooTokenConnection", + Object: "WebhookEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_OhAuthTooTokenEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OhAuthTooTokenEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenEdge", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooTokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooTokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooTokenConnection_pageInfo(ctx, field) +func (ec *executionContext) _WebhookHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -111214,7 +197943,7 @@ func (ec *executionContext) _OhAuthTooTokenConnection_pageInfo(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -111226,36 +197955,26 @@ func (ec *executionContext) _OhAuthTooTokenConnection_pageInfo(ctx context.Conte } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooTokenConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooTokenConnection", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooTokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooTokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooTokenConnection_totalCount(ctx, field) +func (ec *executionContext) _WebhookHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -111268,7 +197987,7 @@ func (ec *executionContext) _OhAuthTooTokenConnection_totalCount(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -111280,26 +197999,26 @@ func (ec *executionContext) _OhAuthTooTokenConnection_totalCount(ctx context.Con } return graphql.Null } - res := resTmp.(int) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooTokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooTokenConnection", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooTokenCreatePayload_ohAuthTooToken(ctx context.Context, field graphql.CollectedField, obj *OhAuthTooTokenCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooTokenCreatePayload_ohAuthTooToken(ctx, field) +func (ec *executionContext) _WebhookHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -111312,72 +198031,35 @@ func (ec *executionContext) _OhAuthTooTokenCreatePayload_ohAuthTooToken(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OhAuthTooToken, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.OhAuthTooToken) + res := resTmp.(string) fc.Result = res - return ec.marshalNOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooTokenCreatePayload_ohAuthTooToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooTokenCreatePayload", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OhAuthTooToken_id(ctx, field) - case "tags": - return ec.fieldContext_OhAuthTooToken_tags(ctx, field) - case "clientID": - return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) - case "scopes": - return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) - case "nonce": - return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) - case "claimsUserID": - return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) - case "claimsUsername": - return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) - case "claimsEmail": - return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) - case "claimsEmailVerified": - return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) - case "claimsGroups": - return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) - case "claimsPreferredUsername": - return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) - case "connectorID": - return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) - case "connectorData": - return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) - case "lastUsed": - return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) - case "integration": - return ec.fieldContext_OhAuthTooToken_integration(ctx, field) - case "events": - return ec.fieldContext_OhAuthTooToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooTokenDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OhAuthTooTokenDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooTokenDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _WebhookHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -111390,7 +198072,7 @@ func (ec *executionContext) _OhAuthTooTokenDeletePayload_deletedID(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -111402,26 +198084,26 @@ func (ec *executionContext) _OhAuthTooTokenDeletePayload_deletedID(ctx context.C } return graphql.Null } - res := resTmp.(string) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNWebhookHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooTokenDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooTokenDeletePayload", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type WebhookHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooTokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooTokenEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooTokenEdge_node(ctx, field) +func (ec *executionContext) _WebhookHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -111434,7 +198116,7 @@ func (ec *executionContext) _OhAuthTooTokenEdge_node(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -111443,60 +198125,26 @@ func (ec *executionContext) _OhAuthTooTokenEdge_node(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OhAuthTooToken) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooTokenEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooTokenEdge", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OhAuthTooToken_id(ctx, field) - case "tags": - return ec.fieldContext_OhAuthTooToken_tags(ctx, field) - case "clientID": - return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) - case "scopes": - return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) - case "nonce": - return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) - case "claimsUserID": - return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) - case "claimsUsername": - return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) - case "claimsEmail": - return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) - case "claimsEmailVerified": - return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) - case "claimsGroups": - return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) - case "claimsPreferredUsername": - return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) - case "connectorID": - return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) - case "connectorData": - return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) - case "lastUsed": - return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) - case "integration": - return ec.fieldContext_OhAuthTooToken_integration(ctx, field) - case "events": - return ec.fieldContext_OhAuthTooToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooTokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OhAuthTooTokenEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooTokenEdge_cursor(ctx, field) +func (ec *executionContext) _WebhookHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -111509,38 +198157,35 @@ func (ec *executionContext) _OhAuthTooTokenEdge_cursor(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooTokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooTokenEdge", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooTokenSearchResult_ohAuthTooTokens(ctx context.Context, field graphql.CollectedField, obj *OhAuthTooTokenSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooTokenSearchResult_ohAuthTooTokens(ctx, field) +func (ec *executionContext) _WebhookHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -111553,7 +198198,7 @@ func (ec *executionContext) _OhAuthTooTokenSearchResult_ohAuthTooTokens(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OhAuthTooTokens, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -111562,60 +198207,26 @@ func (ec *executionContext) _OhAuthTooTokenSearchResult_ohAuthTooTokens(ctx cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OhAuthTooToken) + res := resTmp.(string) fc.Result = res - return ec.marshalOOhAuthTooToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooTokenSearchResult_ohAuthTooTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooTokenSearchResult", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OhAuthTooToken_id(ctx, field) - case "tags": - return ec.fieldContext_OhAuthTooToken_tags(ctx, field) - case "clientID": - return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) - case "scopes": - return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) - case "nonce": - return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) - case "claimsUserID": - return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) - case "claimsUsername": - return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) - case "claimsEmail": - return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) - case "claimsEmailVerified": - return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) - case "claimsGroups": - return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) - case "claimsPreferredUsername": - return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) - case "connectorID": - return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) - case "connectorData": - return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) - case "lastUsed": - return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) - case "integration": - return ec.fieldContext_OhAuthTooToken_integration(ctx, field) - case "events": - return ec.fieldContext_OhAuthTooToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OhAuthTooTokenUpdatePayload_ohAuthTooToken(ctx context.Context, field graphql.CollectedField, obj *OhAuthTooTokenUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OhAuthTooTokenUpdatePayload_ohAuthTooToken(ctx, field) +func (ec *executionContext) _WebhookHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -111628,72 +198239,35 @@ func (ec *executionContext) _OhAuthTooTokenUpdatePayload_ohAuthTooToken(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OhAuthTooToken, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.OhAuthTooToken) + res := resTmp.(string) fc.Result = res - return ec.marshalNOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OhAuthTooTokenUpdatePayload_ohAuthTooToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OhAuthTooTokenUpdatePayload", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OhAuthTooToken_id(ctx, field) - case "tags": - return ec.fieldContext_OhAuthTooToken_tags(ctx, field) - case "clientID": - return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) - case "scopes": - return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) - case "nonce": - return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) - case "claimsUserID": - return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) - case "claimsUsername": - return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) - case "claimsEmail": - return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) - case "claimsEmailVerified": - return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) - case "claimsGroups": - return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) - case "claimsPreferredUsername": - return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) - case "connectorID": - return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) - case "connectorData": - return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) - case "lastUsed": - return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) - case "integration": - return ec.fieldContext_OhAuthTooToken_integration(ctx, field) - case "events": - return ec.fieldContext_OhAuthTooToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_id(ctx, field) +func (ec *executionContext) _WebhookHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -111706,38 +198280,35 @@ func (ec *executionContext) _OrgMembership_id(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_createdAt(ctx, field) +func (ec *executionContext) _WebhookHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -111750,7 +198321,7 @@ func (ec *executionContext) _OrgMembership_createdAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -111764,9 +198335,9 @@ func (ec *executionContext) _OrgMembership_createdAt(ctx context.Context, field return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, @@ -111777,8 +198348,8 @@ func (ec *executionContext) fieldContext_OrgMembership_createdAt(_ context.Conte return fc, nil } -func (ec *executionContext) _OrgMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_updatedAt(ctx, field) +func (ec *executionContext) _WebhookHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -111791,7 +198362,7 @@ func (ec *executionContext) _OrgMembership_updatedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -111800,26 +198371,26 @@ func (ec *executionContext) _OrgMembership_updatedAt(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_createdBy(ctx, field) +func (ec *executionContext) _WebhookHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -111832,7 +198403,7 @@ func (ec *executionContext) _OrgMembership_createdBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -111846,9 +198417,9 @@ func (ec *executionContext) _OrgMembership_createdBy(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, @@ -111859,8 +198430,8 @@ func (ec *executionContext) fieldContext_OrgMembership_createdBy(_ context.Conte return fc, nil } -func (ec *executionContext) _OrgMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_updatedBy(ctx, field) +func (ec *executionContext) _WebhookHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -111873,23 +198444,26 @@ func (ec *executionContext) _OrgMembership_updatedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, @@ -111900,8 +198474,8 @@ func (ec *executionContext) fieldContext_OrgMembership_updatedBy(_ context.Conte return fc, nil } -func (ec *executionContext) _OrgMembership_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_deletedAt(ctx, field) +func (ec *executionContext) _WebhookHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -111914,7 +198488,7 @@ func (ec *executionContext) _OrgMembership_deletedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -111923,26 +198497,26 @@ func (ec *executionContext) _OrgMembership_deletedAt(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_deletedBy(ctx, field) +func (ec *executionContext) _WebhookHistory_destinationURL(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_destinationURL(ctx, field) if err != nil { return graphql.Null } @@ -111955,23 +198529,26 @@ func (ec *executionContext) _OrgMembership_deletedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.DestinationURL, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_destinationURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, @@ -111982,8 +198559,8 @@ func (ec *executionContext) fieldContext_OrgMembership_deletedBy(_ context.Conte return fc, nil } -func (ec *executionContext) _OrgMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_role(ctx, field) +func (ec *executionContext) _WebhookHistory_enabled(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_enabled(ctx, field) if err != nil { return graphql.Null } @@ -111996,7 +198573,7 @@ func (ec *executionContext) _OrgMembership_role(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.Enabled, nil }) if err != nil { ec.Error(ctx, err) @@ -112008,26 +198585,26 @@ func (ec *executionContext) _OrgMembership_role(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.(bool) fc.Result = res - return ec.marshalNOrgMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrgMembershipRole does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_organizationID(ctx, field) +func (ec *executionContext) _WebhookHistory_failures(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_failures(ctx, field) if err != nil { return graphql.Null } @@ -112040,38 +198617,35 @@ func (ec *executionContext) _OrgMembership_organizationID(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationID, nil + return obj.Failures, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_failures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_userID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_userID(ctx, field) +func (ec *executionContext) _WebhookHistory_lastError(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_lastError(ctx, field) if err != nil { return graphql.Null } @@ -112084,38 +198658,35 @@ func (ec *executionContext) _OrgMembership_userID(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserID, nil + return obj.LastError, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_lastError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_organization(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_organization(ctx, field) +func (ec *executionContext) _WebhookHistory_lastResponse(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistory_lastResponse(ctx, field) if err != nil { return graphql.Null } @@ -112128,122 +198699,35 @@ func (ec *executionContext) _OrgMembership_organization(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization(ctx) + return obj.LastResponse, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistory_lastResponse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_user(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_user(ctx, field) +func (ec *executionContext) _WebhookHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -112256,100 +198740,41 @@ func (ec *executionContext) _OrgMembership_user(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User(ctx) + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.User) + res := resTmp.([]*generated.WebhookHistoryEdge) fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return ec.marshalOWebhookHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistoryConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) + case "node": + return ec.fieldContext_WebhookHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_WebhookHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type WebhookHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembership_events(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_events(ctx, field) +func (ec *executionContext) _WebhookHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -112362,91 +198787,48 @@ func (ec *executionContext) _OrgMembership_events(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "WebhookHistoryConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipBulkCreatePayload_orgMemberships(ctx context.Context, field graphql.CollectedField, obj *OrgMembershipBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(ctx, field) +func (ec *executionContext) _WebhookHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -112459,63 +198841,38 @@ func (ec *executionContext) _OrgMembershipBulkCreatePayload_orgMemberships(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrgMemberships, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.OrgMembership) + res := resTmp.(int) fc.Result = res - return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipBulkCreatePayload", + Object: "WebhookHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipConnection_edges(ctx, field) +func (ec *executionContext) _WebhookHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -112528,7 +198885,7 @@ func (ec *executionContext) _OrgMembershipConnection_edges(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -112537,32 +198894,66 @@ func (ec *executionContext) _OrgMembershipConnection_edges(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrgMembershipEdge) + res := resTmp.(*generated.WebhookHistory) fc.Result = res - return ec.marshalOOrgMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipEdge(ctx, field.Selections, res) + return ec.marshalOWebhookHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipConnection", + Object: "WebhookHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_OrgMembershipEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OrgMembershipEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_WebhookHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_WebhookHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_WebhookHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_WebhookHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_WebhookHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_WebhookHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_WebhookHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_WebhookHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_WebhookHistory_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_WebhookHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_WebhookHistory_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_WebhookHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_WebhookHistory_name(ctx, field) + case "description": + return ec.fieldContext_WebhookHistory_description(ctx, field) + case "destinationURL": + return ec.fieldContext_WebhookHistory_destinationURL(ctx, field) + case "enabled": + return ec.fieldContext_WebhookHistory_enabled(ctx, field) + case "failures": + return ec.fieldContext_WebhookHistory_failures(ctx, field) + case "lastError": + return ec.fieldContext_WebhookHistory_lastError(ctx, field) + case "lastResponse": + return ec.fieldContext_WebhookHistory_lastResponse(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type WebhookHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipConnection_pageInfo(ctx, field) +func (ec *executionContext) _WebhookHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -112575,7 +198966,7 @@ func (ec *executionContext) _OrgMembershipConnection_pageInfo(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -112587,36 +198978,26 @@ func (ec *executionContext) _OrgMembershipConnection_pageInfo(ctx context.Contex } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipConnection", + Object: "WebhookHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipConnection_totalCount(ctx, field) +func (ec *executionContext) _WebhookSearchResult_webhooks(ctx context.Context, field graphql.CollectedField, obj *WebhookSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookSearchResult_webhooks(ctx, field) if err != nil { return graphql.Null } @@ -112629,38 +199010,75 @@ func (ec *executionContext) _OrgMembershipConnection_totalCount(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Webhooks, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.([]*generated.Webhook) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookSearchResult_webhooks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipConnection", + Object: "WebhookSearchResult", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Webhook_id(ctx, field) + case "createdAt": + return ec.fieldContext_Webhook_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Webhook_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Webhook_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Webhook_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Webhook_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Webhook_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Webhook_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Webhook_ownerID(ctx, field) + case "name": + return ec.fieldContext_Webhook_name(ctx, field) + case "description": + return ec.fieldContext_Webhook_description(ctx, field) + case "destinationURL": + return ec.fieldContext_Webhook_destinationURL(ctx, field) + case "enabled": + return ec.fieldContext_Webhook_enabled(ctx, field) + case "failures": + return ec.fieldContext_Webhook_failures(ctx, field) + case "lastError": + return ec.fieldContext_Webhook_lastError(ctx, field) + case "lastResponse": + return ec.fieldContext_Webhook_lastResponse(ctx, field) + case "owner": + return ec.fieldContext_Webhook_owner(ctx, field) + case "events": + return ec.fieldContext_Webhook_events(ctx, field) + case "integrations": + return ec.fieldContext_Webhook_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipCreatePayload_orgMembership(ctx context.Context, field graphql.CollectedField, obj *OrgMembershipCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipCreatePayload_orgMembership(ctx, field) +func (ec *executionContext) _WebhookUpdatePayload_webhook(ctx context.Context, field graphql.CollectedField, obj *WebhookUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_WebhookUpdatePayload_webhook(ctx, field) if err != nil { return graphql.Null } @@ -112673,7 +199091,7 @@ func (ec *executionContext) _OrgMembershipCreatePayload_orgMembership(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrgMembership, nil + return obj.Webhook, nil }) if err != nil { ec.Error(ctx, err) @@ -112685,54 +199103,66 @@ func (ec *executionContext) _OrgMembershipCreatePayload_orgMembership(ctx contex } return graphql.Null } - res := resTmp.(*generated.OrgMembership) + res := resTmp.(*generated.Webhook) fc.Result = res - return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) + return ec.marshalNWebhook2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhook(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipCreatePayload_orgMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_WebhookUpdatePayload_webhook(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipCreatePayload", + Object: "WebhookUpdatePayload", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_OrgMembership_id(ctx, field) + return ec.fieldContext_Webhook_id(ctx, field) case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) + return ec.fieldContext_Webhook_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) + return ec.fieldContext_Webhook_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) + return ec.fieldContext_Webhook_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) + return ec.fieldContext_Webhook_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Webhook_tags(ctx, field) case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) + return ec.fieldContext_Webhook_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) + return ec.fieldContext_Webhook_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Webhook_ownerID(ctx, field) + case "name": + return ec.fieldContext_Webhook_name(ctx, field) + case "description": + return ec.fieldContext_Webhook_description(ctx, field) + case "destinationURL": + return ec.fieldContext_Webhook_destinationURL(ctx, field) + case "enabled": + return ec.fieldContext_Webhook_enabled(ctx, field) + case "failures": + return ec.fieldContext_Webhook_failures(ctx, field) + case "lastError": + return ec.fieldContext_Webhook_lastError(ctx, field) + case "lastResponse": + return ec.fieldContext_Webhook_lastResponse(ctx, field) + case "owner": + return ec.fieldContext_Webhook_owner(ctx, field) case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) + return ec.fieldContext_Webhook_events(ctx, field) + case "integrations": + return ec.fieldContext_Webhook_integrations(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OrgMembershipDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipDeletePayload_deletedID(ctx, field) +func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_name(ctx, field) if err != nil { return graphql.Null } @@ -112745,7 +199175,7 @@ func (ec *executionContext) _OrgMembershipDeletePayload_deletedID(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -112759,24 +199189,24 @@ func (ec *executionContext) _OrgMembershipDeletePayload_deletedID(ctx context.Co } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipDeletePayload", + Object: "__Directive", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipEdge_node(ctx, field) +func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_description(ctx, field) if err != nil { return graphql.Null } @@ -112789,7 +199219,7 @@ func (ec *executionContext) _OrgMembershipEdge_node(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Description(), nil }) if err != nil { ec.Error(ctx, err) @@ -112798,54 +199228,26 @@ func (ec *executionContext) _OrgMembershipEdge_node(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OrgMembership) + res := resTmp.(*string) fc.Result = res - return ec.marshalOOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipEdge", + Object: "__Directive", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipEdge_cursor(ctx, field) +func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_locations(ctx, field) if err != nil { return graphql.Null } @@ -112858,7 +199260,7 @@ func (ec *executionContext) _OrgMembershipEdge_cursor(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Locations, nil }) if err != nil { ec.Error(ctx, err) @@ -112870,26 +199272,26 @@ func (ec *executionContext) _OrgMembershipEdge_cursor(ctx context.Context, field } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipEdge", + Object: "__Directive", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type __DirectiveLocation does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_id(ctx, field) +func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_args(ctx, field) if err != nil { return graphql.Null } @@ -112902,7 +199304,7 @@ func (ec *executionContext) _OrgMembershipHistory_id(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Args, nil }) if err != nil { ec.Error(ctx, err) @@ -112914,26 +199316,36 @@ func (ec *executionContext) _OrgMembershipHistory_id(ctx context.Context, field } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]introspection.InputValue) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Directive_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__Directive", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext___InputValue_name(ctx, field) + case "description": + return ec.fieldContext___InputValue_description(ctx, field) + case "type": + return ec.fieldContext___InputValue_type(ctx, field) + case "defaultValue": + return ec.fieldContext___InputValue_defaultValue(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_historyTime(ctx, field) +func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) if err != nil { return graphql.Null } @@ -112946,7 +199358,7 @@ func (ec *executionContext) _OrgMembershipHistory_historyTime(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.IsRepeatable, nil }) if err != nil { ec.Error(ctx, err) @@ -112958,26 +199370,26 @@ func (ec *executionContext) _OrgMembershipHistory_historyTime(ctx context.Contex } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(bool) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__Directive", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_ref(ctx, field) +func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_name(ctx, field) if err != nil { return graphql.Null } @@ -112990,23 +199402,26 @@ func (ec *executionContext) _OrgMembershipHistory_ref(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__EnumValue", Field: field, IsMethod: false, IsResolver: false, @@ -113017,8 +199432,8 @@ func (ec *executionContext) fieldContext_OrgMembershipHistory_ref(_ context.Cont return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_operation(ctx, field) +func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_description(ctx, field) if err != nil { return graphql.Null } @@ -113031,38 +199446,35 @@ func (ec *executionContext) _OrgMembershipHistory_operation(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.Description(), nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(*string) fc.Result = res - return ec.marshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__EnumValue", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrgMembershipHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_createdAt(ctx, field) +func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) if err != nil { return graphql.Null } @@ -113075,35 +199487,38 @@ func (ec *executionContext) _OrgMembershipHistory_createdAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.IsDeprecated(), nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(bool) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__EnumValue", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_updatedAt(ctx, field) +func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) if err != nil { return graphql.Null } @@ -113116,7 +199531,7 @@ func (ec *executionContext) _OrgMembershipHistory_updatedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DeprecationReason(), nil }) if err != nil { ec.Error(ctx, err) @@ -113125,26 +199540,26 @@ func (ec *executionContext) _OrgMembershipHistory_updatedAt(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__EnumValue", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_createdBy(ctx, field) +func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_name(ctx, field) if err != nil { return graphql.Null } @@ -113157,23 +199572,26 @@ func (ec *executionContext) _OrgMembershipHistory_createdBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__Field", Field: field, IsMethod: false, IsResolver: false, @@ -113184,8 +199602,8 @@ func (ec *executionContext) fieldContext_OrgMembershipHistory_createdBy(_ contex return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_updatedBy(ctx, field) +func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_description(ctx, field) if err != nil { return graphql.Null } @@ -113198,7 +199616,7 @@ func (ec *executionContext) _OrgMembershipHistory_updatedBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Description(), nil }) if err != nil { ec.Error(ctx, err) @@ -113207,16 +199625,16 @@ func (ec *executionContext) _OrgMembershipHistory_updatedBy(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__Field", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { return nil, errors.New("field of type String does not have child fields") @@ -113225,8 +199643,8 @@ func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedBy(_ contex return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_deletedAt(ctx, field) +func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_args(ctx, field) if err != nil { return graphql.Null } @@ -113239,35 +199657,48 @@ func (ec *executionContext) _OrgMembershipHistory_deletedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Args, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]introspection.InputValue) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Field_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__Field", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext___InputValue_name(ctx, field) + case "description": + return ec.fieldContext___InputValue_description(ctx, field) + case "type": + return ec.fieldContext___InputValue_type(ctx, field) + case "defaultValue": + return ec.fieldContext___InputValue_defaultValue(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_deletedBy(ctx, field) +func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_type(ctx, field) if err != nil { return graphql.Null } @@ -113280,35 +199711,60 @@ func (ec *executionContext) _OrgMembershipHistory_deletedBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*introspection.Type) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__Field", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_role(ctx, field) +func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) if err != nil { return graphql.Null } @@ -113321,7 +199777,7 @@ func (ec *executionContext) _OrgMembershipHistory_role(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.IsDeprecated(), nil }) if err != nil { ec.Error(ctx, err) @@ -113333,26 +199789,26 @@ func (ec *executionContext) _OrgMembershipHistory_role(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.(bool) fc.Result = res - return ec.marshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__Field", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrgMembershipHistoryRole does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_organizationID(ctx, field) +func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) if err != nil { return graphql.Null } @@ -113365,28 +199821,25 @@ func (ec *executionContext) _OrgMembershipHistory_organizationID(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationID, nil + return obj.DeprecationReason(), nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__Field", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { return nil, errors.New("field of type String does not have child fields") @@ -113395,8 +199848,8 @@ func (ec *executionContext) fieldContext_OrgMembershipHistory_organizationID(_ c return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_userID(ctx, field) +func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_name(ctx, field) if err != nil { return graphql.Null } @@ -113409,7 +199862,7 @@ func (ec *executionContext) _OrgMembershipHistory_userID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserID, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -113426,9 +199879,9 @@ func (ec *executionContext) _OrgMembershipHistory_userID(ctx context.Context, fi return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "__InputValue", Field: field, IsMethod: false, IsResolver: false, @@ -113439,8 +199892,8 @@ func (ec *executionContext) fieldContext_OrgMembershipHistory_userID(_ context.C return fc, nil } -func (ec *executionContext) _OrgMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistoryConnection_edges(ctx, field) +func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_description(ctx, field) if err != nil { return graphql.Null } @@ -113453,7 +199906,7 @@ func (ec *executionContext) _OrgMembershipHistoryConnection_edges(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Description(), nil }) if err != nil { ec.Error(ctx, err) @@ -113462,32 +199915,26 @@ func (ec *executionContext) _OrgMembershipHistoryConnection_edges(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrgMembershipHistoryEdge) + res := resTmp.(*string) fc.Result = res - return ec.marshalOOrgMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryEdge(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryConnection", + Object: "__InputValue", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_OrgMembershipHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OrgMembershipHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipHistoryEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_type(ctx, field) if err != nil { return graphql.Null } @@ -113500,7 +199947,7 @@ func (ec *executionContext) _OrgMembershipHistoryConnection_pageInfo(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -113512,36 +199959,48 @@ func (ec *executionContext) _OrgMembershipHistoryConnection_pageInfo(ctx context } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*introspection.Type) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryConnection", + Object: "__InputValue", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) if err != nil { return graphql.Null } @@ -113554,38 +200013,35 @@ func (ec *executionContext) _OrgMembershipHistoryConnection_totalCount(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.DefaultValue, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(int) + res := resTmp.(*string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryConnection", + Object: "__InputValue", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistoryEdge_node(ctx, field) +func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_description(ctx, field) if err != nil { return graphql.Null } @@ -113598,7 +200054,7 @@ func (ec *executionContext) _OrgMembershipHistoryEdge_node(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Description(), nil }) if err != nil { ec.Error(ctx, err) @@ -113607,54 +200063,26 @@ func (ec *executionContext) _OrgMembershipHistoryEdge_node(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OrgMembershipHistory) + res := resTmp.(*string) fc.Result = res - return ec.marshalOOrgMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistory(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryEdge", + Object: "__Schema", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrgMembershipHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_OrgMembershipHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_OrgMembershipHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_OrgMembershipHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembershipHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembershipHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembershipHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembershipHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembershipHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembershipHistory_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembershipHistory_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembershipHistory_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembershipHistory_userID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipHistory", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistoryEdge_cursor(ctx, field) +func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_types(ctx, field) if err != nil { return graphql.Null } @@ -113667,7 +200095,7 @@ func (ec *executionContext) _OrgMembershipHistoryEdge_cursor(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Types(), nil }) if err != nil { ec.Error(ctx, err) @@ -113679,26 +200107,48 @@ func (ec *executionContext) _OrgMembershipHistoryEdge_cursor(ctx context.Context } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]introspection.Type) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryEdge", + Object: "__Schema", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipUpdatePayload_orgMembership(ctx context.Context, field graphql.CollectedField, obj *OrgMembershipUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipUpdatePayload_orgMembership(ctx, field) +func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_queryType(ctx, field) if err != nil { return graphql.Null } @@ -113711,7 +200161,7 @@ func (ec *executionContext) _OrgMembershipUpdatePayload_orgMembership(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrgMembership, nil + return obj.QueryType(), nil }) if err != nil { ec.Error(ctx, err) @@ -113723,54 +200173,48 @@ func (ec *executionContext) _OrgMembershipUpdatePayload_orgMembership(ctx contex } return graphql.Null } - res := resTmp.(*generated.OrgMembership) + res := resTmp.(*introspection.Type) fc.Result = res - return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) + return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipUpdatePayload_orgMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipUpdatePayload", + Object: "__Schema", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_id(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_id(ctx, field) +func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_mutationType(ctx, field) if err != nil { return graphql.Null } @@ -113783,38 +200227,57 @@ func (ec *executionContext) _Organization_id(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.MutationType(), nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*introspection.Type) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "__Schema", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_createdAt(ctx, field) +func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) if err != nil { return graphql.Null } @@ -113827,7 +200290,7 @@ func (ec *executionContext) _Organization_createdAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.SubscriptionType(), nil }) if err != nil { ec.Error(ctx, err) @@ -113836,26 +200299,48 @@ func (ec *executionContext) _Organization_createdAt(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*introspection.Type) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "__Schema", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_updatedAt(ctx, field) +func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_directives(ctx, field) if err != nil { return graphql.Null } @@ -113868,35 +200353,50 @@ func (ec *executionContext) _Organization_updatedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Directives(), nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]introspection.Directive) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "__Schema", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext___Directive_name(ctx, field) + case "description": + return ec.fieldContext___Directive_description(ctx, field) + case "locations": + return ec.fieldContext___Directive_locations(ctx, field) + case "args": + return ec.fieldContext___Directive_args(ctx, field) + case "isRepeatable": + return ec.fieldContext___Directive_isRepeatable(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_createdBy(ctx, field) +func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_kind(ctx, field) if err != nil { return graphql.Null } @@ -113909,25 +200409,69 @@ func (ec *executionContext) _Organization_createdBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Kind(), nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalN__TypeKind2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "__Type", Field: field, - IsMethod: false, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type __TypeKind does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { return nil, errors.New("field of type String does not have child fields") @@ -113936,8 +200480,8 @@ func (ec *executionContext) fieldContext_Organization_createdBy(_ context.Contex return fc, nil } -func (ec *executionContext) _Organization_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_updatedBy(ctx, field) +func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_description(ctx, field) if err != nil { return graphql.Null } @@ -113950,7 +200494,7 @@ func (ec *executionContext) _Organization_updatedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Description(), nil }) if err != nil { ec.Error(ctx, err) @@ -113959,16 +200503,16 @@ func (ec *executionContext) _Organization_updatedBy(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "__Type", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { return nil, errors.New("field of type String does not have child fields") @@ -113977,8 +200521,8 @@ func (ec *executionContext) fieldContext_Organization_updatedBy(_ context.Contex return fc, nil } -func (ec *executionContext) _Organization_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_tags(ctx, field) +func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_fields(ctx, field) if err != nil { return graphql.Null } @@ -113991,7 +200535,7 @@ func (ec *executionContext) _Organization_tags(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil }) if err != nil { ec.Error(ctx, err) @@ -114000,26 +200544,51 @@ func (ec *executionContext) _Organization_tags(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.([]introspection.Field) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "__Type", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext___Field_name(ctx, field) + case "description": + return ec.fieldContext___Field_description(ctx, field) + case "args": + return ec.fieldContext___Field_args(ctx, field) + case "type": + return ec.fieldContext___Field_type(ctx, field) + case "isDeprecated": + return ec.fieldContext___Field_isDeprecated(ctx, field) + case "deprecationReason": + return ec.fieldContext___Field_deprecationReason(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Organization_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_deletedAt(ctx, field) +func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_interfaces(ctx, field) if err != nil { return graphql.Null } @@ -114032,7 +200601,7 @@ func (ec *executionContext) _Organization_deletedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Interfaces(), nil }) if err != nil { ec.Error(ctx, err) @@ -114041,26 +200610,48 @@ func (ec *executionContext) _Organization_deletedAt(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]introspection.Type) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "__Type", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_deletedBy(ctx, field) +func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) if err != nil { return graphql.Null } @@ -114073,7 +200664,7 @@ func (ec *executionContext) _Organization_deletedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.PossibleTypes(), nil }) if err != nil { ec.Error(ctx, err) @@ -114082,26 +200673,48 @@ func (ec *executionContext) _Organization_deletedBy(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]introspection.Type) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "__Type", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_name(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_name(ctx, field) +func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_enumValues(ctx, field) if err != nil { return graphql.Null } @@ -114114,38 +200727,56 @@ func (ec *executionContext) _Organization_name(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]introspection.EnumValue) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "__Type", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext___EnumValue_name(ctx, field) + case "description": + return ec.fieldContext___EnumValue_description(ctx, field) + case "isDeprecated": + return ec.fieldContext___EnumValue_isDeprecated(ctx, field) + case "deprecationReason": + return ec.fieldContext___EnumValue_deprecationReason(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Organization_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_displayName(ctx, field) +func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_inputFields(ctx, field) if err != nil { return graphql.Null } @@ -114158,38 +200789,45 @@ func (ec *executionContext) _Organization_displayName(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.InputFields(), nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]introspection.InputValue) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "__Type", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext___InputValue_name(ctx, field) + case "description": + return ec.fieldContext___InputValue_description(ctx, field) + case "type": + return ec.fieldContext___InputValue_type(ctx, field) + case "defaultValue": + return ec.fieldContext___InputValue_defaultValue(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_description(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_description(ctx, field) +func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_ofType(ctx, field) if err != nil { return graphql.Null } @@ -114202,7 +200840,7 @@ func (ec *executionContext) _Organization_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.OfType(), nil }) if err != nil { ec.Error(ctx, err) @@ -114211,26 +200849,48 @@ func (ec *executionContext) _Organization_description(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*introspection.Type) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "__Type", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_personalOrg(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_personalOrg(ctx, field) +func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) if err != nil { return graphql.Null } @@ -114243,7 +200903,7 @@ func (ec *executionContext) _Organization_personalOrg(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersonalOrg, nil + return obj.SpecifiedByURL(), nil }) if err != nil { ec.Error(ctx, err) @@ -114252,33719 +200912,36018 @@ func (ec *executionContext) _Organization_personalOrg(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(*string) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_personalOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "__Type", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - if err != nil { - return graphql.Null +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +func (ec *executionContext) unmarshalInputAPITokenWhereInput(ctx context.Context, obj interface{}) (generated.APITokenWhereInput, error) { + var it generated.APITokenWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "expiresAt", "expiresAtNEQ", "expiresAtIn", "expiresAtNotIn", "expiresAtGT", "expiresAtGTE", "expiresAtLT", "expiresAtLTE", "expiresAtIsNil", "expiresAtNotNil", "lastUsedAt", "lastUsedAtNEQ", "lastUsedAtIn", "lastUsedAtNotIn", "lastUsedAtGT", "lastUsedAtGTE", "lastUsedAtLT", "lastUsedAtLTE", "lastUsedAtIsNil", "lastUsedAtNotNil", "hasOwner", "hasOwnerWith"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "ownerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNEQ = data + case "ownerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIn = data + case "ownerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContains = data + case "ownerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasPrefix = data + case "ownerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasSuffix = data + case "ownerIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIsNil = data + case "ownerIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotNil = data + case "ownerIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDEqualFold = data + case "ownerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "expiresAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAt = data + case "expiresAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtNEQ = data + case "expiresAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtIn = data + case "expiresAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtNotIn = data + case "expiresAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtGT = data + case "expiresAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtGTE = data + case "expiresAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtLT = data + case "expiresAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtLTE = data + case "expiresAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtIsNil = data + case "expiresAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtNotNil = data + case "lastUsedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.LastUsedAt = data + case "lastUsedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.LastUsedAtNEQ = data + case "lastUsedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.LastUsedAtIn = data + case "lastUsedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.LastUsedAtNotIn = data + case "lastUsedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.LastUsedAtGT = data + case "lastUsedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.LastUsedAtGTE = data + case "lastUsedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.LastUsedAtLT = data + case "lastUsedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.LastUsedAtLTE = data + case "lastUsedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.LastUsedAtIsNil = data + case "lastUsedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.LastUsedAtNotNil = 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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOwnerWith = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AvatarRemoteURL, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _Organization_dedicatedDb(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_dedicatedDb(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DedicatedDb, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_Organization_dedicatedDb(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, +func (ec *executionContext) unmarshalInputActionPlanHistoryWhereInput(ctx context.Context, obj interface{}) (generated.ActionPlanHistoryWhereInput, error) { + var it generated.ActionPlanHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _Organization_parent(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_parent(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "dueDate", "dueDateNEQ", "dueDateIn", "dueDateNotIn", "dueDateGT", "dueDateGTE", "dueDateLT", "dueDateLTE", "dueDateIsNil", "dueDateNotNil", "priority", "priorityNEQ", "priorityIn", "priorityNotIn", "priorityGT", "priorityGTE", "priorityLT", "priorityLTE", "priorityContains", "priorityHasPrefix", "priorityHasSuffix", "priorityIsNil", "priorityNotNil", "priorityEqualFold", "priorityContainsFold", "source", "sourceNEQ", "sourceIn", "sourceNotIn", "sourceGT", "sourceGTE", "sourceLT", "sourceLTE", "sourceContains", "sourceHasPrefix", "sourceHasSuffix", "sourceIsNil", "sourceNotNil", "sourceEqualFold", "sourceContainsFold"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Parent(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_parent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOActionPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOActionPlanHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOActionPlanHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOActionPlanHistoryOpType2ᚖ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.unmarshalOActionPlanHistoryOpType2ᚖ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.unmarshalOActionPlanHistoryOpType2ᚕ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.unmarshalOActionPlanHistoryOpType2ᚕ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 "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_children(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_children(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Children(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.OrganizationOrder), fc.Args["where"].(*generated.OrganizationWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OrganizationConnection) - fc.Result = res - return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_children(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrganizationConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrganizationConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrganizationConnection_totalCount(ctx, field) + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_children_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Organization_groups(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_groups(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Groups(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Group) - fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_templates(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_templates(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Templates(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Template) - fc.Result = res - return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_integrations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Integrations(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Integration) - fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "oauth2tokens": - return ec.fieldContext_Integration_oauth2tokens(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - case "webhooks": - return ec.fieldContext_Integration_webhooks(ctx, field) + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_setting(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_setting(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Setting(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.OrganizationSetting) - fc.Result = res - return ec.marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLTE = 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 "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContainsFold = data + case "dueDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DueDate = data + case "dueDateNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DueDateNEQ = data + case "dueDateIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DueDateIn = data + case "dueDateNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DueDateNotIn = data + case "dueDateGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DueDateGT = data + case "dueDateGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DueDateGTE = data + case "dueDateLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DueDateLT = data + case "dueDateLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DueDateLTE = data + case "dueDateIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DueDateIsNil = data + case "dueDateNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DueDateNotNil = data + case "priority": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priority")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Priority = data + case "priorityNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityNEQ = data + case "priorityIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PriorityIn = data + case "priorityNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PriorityNotIn = data + case "priorityGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityGT = data + case "priorityGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityGTE = data + case "priorityLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityLT = data + case "priorityLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityLTE = data + case "priorityContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityContains = data + case "priorityHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityHasPrefix = data + case "priorityHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityHasSuffix = data + case "priorityIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PriorityIsNil = data + case "priorityNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PriorityNotNil = data + case "priorityEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityEqualFold = data + case "priorityContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityContainsFold = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Source = data + case "sourceNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceNEQ = data + case "sourceIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SourceIn = data + case "sourceNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SourceNotIn = data + case "sourceGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceGT = data + case "sourceGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceGTE = data + case "sourceLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceLT = data + case "sourceLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceLTE = data + case "sourceContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceContains = data + case "sourceHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceHasPrefix = data + case "sourceHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceHasSuffix = data + case "sourceIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SourceIsNil = data + case "sourceNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SourceNotNil = data + case "sourceEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_documentdata(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_documentdata(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Documentdata(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.DocumentData) - fc.Result = res - return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_documentdata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) + it.SourceEqualFold = data + case "sourceContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_entitlements(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_entitlements(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + it.SourceContainsFold = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Entitlements(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.([]*generated.Entitlement) - fc.Result = res - return ec.marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_Organization_entitlements(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entitlement_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entitlement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entitlement_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entitlement_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entitlement_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Entitlement_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Entitlement_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entitlement_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Entitlement_ownerID(ctx, field) - case "planID": - return ec.fieldContext_Entitlement_planID(ctx, field) - case "organizationID": - return ec.fieldContext_Entitlement_organizationID(ctx, field) - case "externalCustomerID": - return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) - case "externalSubscriptionID": - return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) - case "expires": - return ec.fieldContext_Entitlement_expires(ctx, field) - case "expiresAt": - return ec.fieldContext_Entitlement_expiresAt(ctx, field) - case "cancelled": - return ec.fieldContext_Entitlement_cancelled(ctx, field) - case "owner": - return ec.fieldContext_Entitlement_owner(ctx, field) - case "plan": - return ec.fieldContext_Entitlement_plan(ctx, field) - case "organization": - return ec.fieldContext_Entitlement_organization(ctx, field) - case "events": - return ec.fieldContext_Entitlement_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _Organization_organizationEntitlement(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_organizationEntitlement(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OrganizationEntitlement(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null +func (ec *executionContext) unmarshalInputActionPlanWhereInput(ctx context.Context, obj interface{}) (generated.ActionPlanWhereInput, error) { + var it generated.ActionPlanWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - res := resTmp.([]*generated.Entitlement) - fc.Result = res - return ec.marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_Organization_organizationEntitlement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entitlement_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entitlement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entitlement_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entitlement_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entitlement_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Entitlement_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Entitlement_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entitlement_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Entitlement_ownerID(ctx, field) - case "planID": - return ec.fieldContext_Entitlement_planID(ctx, field) - case "organizationID": - return ec.fieldContext_Entitlement_organizationID(ctx, field) - case "externalCustomerID": - return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) - case "externalSubscriptionID": - return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) - case "expires": - return ec.fieldContext_Entitlement_expires(ctx, field) - case "expiresAt": - return ec.fieldContext_Entitlement_expiresAt(ctx, field) - case "cancelled": - return ec.fieldContext_Entitlement_cancelled(ctx, field) - case "owner": - return ec.fieldContext_Entitlement_owner(ctx, field) - case "plan": - return ec.fieldContext_Entitlement_plan(ctx, field) - case "organization": - return ec.fieldContext_Entitlement_organization(ctx, field) - case "events": - return ec.fieldContext_Entitlement_events(ctx, field) + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "dueDate", "dueDateNEQ", "dueDateIn", "dueDateNotIn", "dueDateGT", "dueDateGTE", "dueDateLT", "dueDateLTE", "dueDateIsNil", "dueDateNotNil", "priority", "priorityNEQ", "priorityIn", "priorityNotIn", "priorityGT", "priorityGTE", "priorityLT", "priorityLTE", "priorityContains", "priorityHasPrefix", "priorityHasSuffix", "priorityIsNil", "priorityNotNil", "priorityEqualFold", "priorityContainsFold", "source", "sourceNEQ", "sourceIn", "sourceNotIn", "sourceGT", "sourceGTE", "sourceLT", "sourceLTE", "sourceContains", "sourceHasPrefix", "sourceHasSuffix", "sourceIsNil", "sourceNotNil", "sourceEqualFold", "sourceContainsFold", "hasStandard", "hasStandardWith", "hasRisk", "hasRiskWith", "hasControl", "hasControlWith", "hasUser", "hasUserWith"} + 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.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOActionPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOActionPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLTE = 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 } - return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_personalAccessTokens(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessTokens(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.PersonalAccessToken) - fc.Result = res - return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) + it.DescriptionHasSuffix = data + case "descriptionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_apiTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_apiTokens(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.APITokens(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.APIToken) - fc.Result = res - return ec.marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_apiTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) + it.DescriptionIsNil = data + case "descriptionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_oauthprovider(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_oauthprovider(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Oauthprovider(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.OauthProvider) - fc.Result = res - return ec.marshalOOauthProvider2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_oauthprovider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OauthProvider_id(ctx, field) - case "createdAt": - return ec.fieldContext_OauthProvider_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OauthProvider_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OauthProvider_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OauthProvider_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OauthProvider_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OauthProvider_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OauthProvider_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OauthProvider_ownerID(ctx, field) - case "name": - return ec.fieldContext_OauthProvider_name(ctx, field) - case "clientID": - return ec.fieldContext_OauthProvider_clientID(ctx, field) - case "clientSecret": - return ec.fieldContext_OauthProvider_clientSecret(ctx, field) - case "redirectURL": - return ec.fieldContext_OauthProvider_redirectURL(ctx, field) - case "scopes": - return ec.fieldContext_OauthProvider_scopes(ctx, field) - case "authURL": - return ec.fieldContext_OauthProvider_authURL(ctx, field) - case "tokenURL": - return ec.fieldContext_OauthProvider_tokenURL(ctx, field) - case "authStyle": - return ec.fieldContext_OauthProvider_authStyle(ctx, field) - case "infoURL": - return ec.fieldContext_OauthProvider_infoURL(ctx, field) - case "owner": - return ec.fieldContext_OauthProvider_owner(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_users(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_users(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Users(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.User) - fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_invites(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_invites(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Invites(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Invite) - fc.Result = res - return ec.marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_invites(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Invite_id(ctx, field) - case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) - case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) - case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) + it.DescriptionContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_subscribers(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_subscribers(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Subscribers(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Subscriber) - fc.Result = res - return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_subscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subscriber_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_webhooks(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_webhooks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Webhooks(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Webhook) - fc.Result = res - return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_webhooks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Webhook_id(ctx, field) - case "createdAt": - return ec.fieldContext_Webhook_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Webhook_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Webhook_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Webhook_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Webhook_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Webhook_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Webhook_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Webhook_ownerID(ctx, field) - case "name": - return ec.fieldContext_Webhook_name(ctx, field) - case "description": - return ec.fieldContext_Webhook_description(ctx, field) - case "destinationURL": - return ec.fieldContext_Webhook_destinationURL(ctx, field) - case "enabled": - return ec.fieldContext_Webhook_enabled(ctx, field) - case "failures": - return ec.fieldContext_Webhook_failures(ctx, field) - case "lastError": - return ec.fieldContext_Webhook_lastError(ctx, field) - case "lastResponse": - return ec.fieldContext_Webhook_lastResponse(ctx, field) - case "owner": - return ec.fieldContext_Webhook_owner(ctx, field) - case "events": - return ec.fieldContext_Webhook_events(ctx, field) - case "integrations": - return ec.fieldContext_Webhook_integrations(ctx, field) + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_events(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_events(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Event) - fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_secrets(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_secrets(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Secrets(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Hush) - fc.Result = res - return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_secrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Hush_id(ctx, field) - case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Hush_name(ctx, field) - case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_features(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_features(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Features(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Feature) - fc.Result = res - return ec.marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Feature_id(ctx, field) - case "createdAt": - return ec.fieldContext_Feature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Feature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Feature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Feature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Feature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Feature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Feature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Feature_ownerID(ctx, field) - case "name": - return ec.fieldContext_Feature_name(ctx, field) - case "displayName": - return ec.fieldContext_Feature_displayName(ctx, field) - case "enabled": - return ec.fieldContext_Feature_enabled(ctx, field) - case "description": - return ec.fieldContext_Feature_description(ctx, field) - case "metadata": - return ec.fieldContext_Feature_metadata(ctx, field) - case "owner": - return ec.fieldContext_Feature_owner(ctx, field) - case "plans": - return ec.fieldContext_Feature_plans(ctx, field) - case "events": - return ec.fieldContext_Feature_events(ctx, field) - case "features": - return ec.fieldContext_Feature_features(ctx, field) + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_files(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_files(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.File) - fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_entitlementplans(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_entitlementplans(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Entitlementplans(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.EntitlementPlan) - fc.Result = res - return ec.marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_entitlementplans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlan_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) - case "displayName": - return ec.fieldContext_EntitlementPlan_displayName(ctx, field) - case "name": - return ec.fieldContext_EntitlementPlan_name(ctx, field) - case "description": - return ec.fieldContext_EntitlementPlan_description(ctx, field) - case "version": - return ec.fieldContext_EntitlementPlan_version(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlan_metadata(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlan_owner(ctx, field) - case "entitlements": - return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) - case "baseFeatures": - return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlan_events(ctx, field) - case "features": - return ec.fieldContext_EntitlementPlan_features(ctx, field) + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_entitlementplanfeatures(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Entitlementplanfeatures(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.EntitlementPlanFeature) - fc.Result = res - return ec.marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_entitlementplanfeatures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) - case "planID": - return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) - case "featureID": - return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) - case "plan": - return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) - case "feature": - return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + it.StatusContainsFold = data + case "dueDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_entities(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Entities(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Entity) - fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) + it.DueDate = data + case "dueDateNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_entitytypes(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_entitytypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Entitytypes(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.EntityType) - fc.Result = res - return ec.marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_entitytypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) + it.DueDateNEQ = data + case "dueDateIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_contacts(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_contacts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Contacts(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Contact) - fc.Result = res - return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) + it.DueDateIn = data + case "dueDateNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_notes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Notes(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Note) - fc.Result = res - return ec.marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Note_id(ctx, field) - case "createdAt": - return ec.fieldContext_Note_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Note_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Note_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Note_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Note_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Note_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Note_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Note_ownerID(ctx, field) - case "text": - return ec.fieldContext_Note_text(ctx, field) - case "owner": - return ec.fieldContext_Note_owner(ctx, field) - case "entity": - return ec.fieldContext_Note_entity(ctx, field) + it.DueDateNotIn = data + case "dueDateGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Organization_members(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_members(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Members(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.OrgMembership) - fc.Result = res - return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Organization_members(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) + it.DueDateGT = data + case "dueDateGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationBulkCreatePayload_organizations(ctx context.Context, field graphql.CollectedField, obj *OrganizationBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationBulkCreatePayload_organizations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Organizations, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationBulkCreatePayload_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationBulkCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + it.DueDateGTE = data + case "dueDateLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.OrganizationEdge) - fc.Result = res - return ec.marshalOOrganizationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_OrganizationEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OrganizationEdge_cursor(ctx, field) + it.DueDateLT = data + case "dueDateLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + it.DueDateLTE = data + case "dueDateIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationCreatePayload_organization(ctx context.Context, field graphql.CollectedField, obj *OrganizationCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationCreatePayload_organization(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Organization, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationCreatePayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + it.DueDateIsNil = data + case "dueDateNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDateNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DueDateNotNil = data + case "priority": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priority")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Priority = data + case "priorityNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityNEQ = data + case "priorityIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PriorityIn = data + case "priorityNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PriorityNotIn = data + case "priorityGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityGT = data + case "priorityGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityGTE = data + case "priorityLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityLT = data + case "priorityLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityLTE = data + case "priorityContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityContains = data + case "priorityHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityHasPrefix = data + case "priorityHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityHasSuffix = data + case "priorityIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PriorityIsNil = data + case "priorityNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PriorityNotNil = data + case "priorityEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityEqualFold = data + case "priorityContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priorityContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PriorityContainsFold = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Source = data + case "sourceNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceNEQ = data + case "sourceIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SourceIn = data + case "sourceNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OrganizationDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationDeletePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + it.SourceNotIn = data + case "sourceGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_historyTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_ref(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_operation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(history.OpType) - fc.Result = res - return ec.marshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrganizationHistoryOpType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_displayName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_personalOrg(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_personalOrg(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PersonalOrg, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_personalOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_avatarRemoteURL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AvatarRemoteURL, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistory_dedicatedDb(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_dedicatedDb(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DedicatedDb, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistory_dedicatedDb(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistoryConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.OrganizationHistoryEdge) - fc.Result = res - return ec.marshalOOrganizationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryEdge(ctx, field.Selections, res) -} - -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) { - switch field.Name { - case "node": - return ec.fieldContext_OrganizationHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OrganizationHistoryEdge_cursor(ctx, field) + it.SourceGT = data + case "sourceGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceGTE = data + case "sourceLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceLT = data + case "sourceLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceLTE = data + case "sourceContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceContains = data + case "sourceHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceHasPrefix = data + case "sourceHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceHasSuffix = data + case "sourceIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SourceIsNil = data + case "sourceNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SourceNotNil = data + case "sourceEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceEqualFold = data + case "sourceContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceContainsFold = data + case "hasStandard": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStandard")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasStandard = data + case "hasStandardWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStandardWith")) + data, err := ec.unmarshalOStandardWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasStandardWith = data + case "hasRisk": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRisk")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationHistoryEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistoryConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_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) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + it.HasRisk = data + case "hasRiskWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRiskWith")) + data, err := ec.unmarshalORiskWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInputᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistoryConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistoryConnection_totalCount(_ 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 nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistoryEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.OrganizationHistory) - fc.Result = res - return ec.marshalOOrganizationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrganizationHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_OrganizationHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_OrganizationHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_OrganizationHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationHistory_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationHistory_deletedBy(ctx, field) - case "name": - return ec.fieldContext_OrganizationHistory_name(ctx, field) - case "displayName": - return ec.fieldContext_OrganizationHistory_displayName(ctx, field) - case "description": - return ec.fieldContext_OrganizationHistory_description(ctx, field) - case "personalOrg": - return ec.fieldContext_OrganizationHistory_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_OrganizationHistory_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_OrganizationHistory_dedicatedDb(ctx, field) + it.HasRiskWith = data + case "hasControl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControl")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationHistory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistoryEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationHistoryEdge_cursor(_ 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 nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSearchResult_organizations(ctx context.Context, field graphql.CollectedField, obj *OrganizationSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSearchResult_organizations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Organizations, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSearchResult_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSearchResult", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + it.HasControl = data + case "hasControlWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlWith")) + data, err := ec.unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_domains(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_domains(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Domains, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_billingContact(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BillingContact, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_billingContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_billingEmail(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BillingEmail, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_billingEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_billingPhone(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BillingPhone, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_billingPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_billingAddress(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + it.HasControlWith = 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ᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasUserWith = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BillingAddress, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _OrganizationSetting_taxIdentifier(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TaxIdentifier, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_OrganizationSetting_taxIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputAuditLogWhereInput(ctx context.Context, obj interface{}) (AuditLogWhereInput, error) { + var it AuditLogWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _OrganizationSetting_geoLocation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"refID", "updatedBy", "operation", "table", "before", "after"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeoLocation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(enums.Region) - fc.Result = res - return ec.marshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_geoLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrganizationSettingRegion does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + switch k { + case "refID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefID = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "operation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Operation = data + case "table": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("table")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Table = data + case "before": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.Before = data + case "after": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.After = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OrganizationID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(string) - fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_OrganizationSetting_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _OrganizationSetting_organization(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_organization(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Organization(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null +func (ec *executionContext) unmarshalInputContactHistoryWhereInput(ctx context.Context, obj interface{}) (generated.ContactHistoryWhereInput, error) { + var it generated.ContactHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_OrganizationSetting_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "fullName", "fullNameNEQ", "fullNameIn", "fullNameNotIn", "fullNameGT", "fullNameGTE", "fullNameLT", "fullNameLTE", "fullNameContains", "fullNameHasPrefix", "fullNameHasSuffix", "fullNameEqualFold", "fullNameContainsFold", "title", "titleNEQ", "titleIn", "titleNotIn", "titleGT", "titleGTE", "titleLT", "titleLTE", "titleContains", "titleHasPrefix", "titleHasSuffix", "titleIsNil", "titleNotNil", "titleEqualFold", "titleContainsFold", "company", "companyNEQ", "companyIn", "companyNotIn", "companyGT", "companyGTE", "companyLT", "companyLTE", "companyContains", "companyHasPrefix", "companyHasSuffix", "companyIsNil", "companyNotNil", "companyEqualFold", "companyContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailGT", "emailGTE", "emailLT", "emailLTE", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailIsNil", "emailNotNil", "emailEqualFold", "emailContainsFold", "phoneNumber", "phoneNumberNEQ", "phoneNumberIn", "phoneNumberNotIn", "phoneNumberGT", "phoneNumberGTE", "phoneNumberLT", "phoneNumberLTE", "phoneNumberContains", "phoneNumberHasPrefix", "phoneNumberHasSuffix", "phoneNumberIsNil", "phoneNumberNotNil", "phoneNumberEqualFold", "phoneNumberContainsFold", "address", "addressNEQ", "addressIn", "addressNotIn", "addressGT", "addressGTE", "addressLT", "addressLTE", "addressContains", "addressHasPrefix", "addressHasSuffix", "addressIsNil", "addressNotNil", "addressEqualFold", "addressContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn"} + 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.unmarshalOContactHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOContactHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOContactHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOContactHistoryOpType2ᚖ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.unmarshalOContactHistoryOpType2ᚖ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.unmarshalOContactHistoryOpType2ᚕ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.unmarshalOContactHistoryOpType2ᚕ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 "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = 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 "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSetting_files(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_files(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.File) - fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSetting_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSetting", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingBulkCreatePayload_organizationSettings(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OrganizationSettings, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.OrganizationSetting) - fc.Result = res - return ec.marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingBulkCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.OrganizationSettingEdge) - fc.Result = res - return ec.marshalOOrganizationSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_OrganizationSettingEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OrganizationSettingEdge_cursor(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, + 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 "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 "fullNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameGT = data + case "fullNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameGTE = data + case "fullNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameLT = data + case "fullNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameLTE = 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 "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 "title": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Title = data + case "titleNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleNEQ = data + case "titleIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TitleIn = data + case "titleNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TitleNotIn = data + case "titleGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleGT = data + case "titleGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleGTE = data + case "titleLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleLT = data + case "titleLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleLTE = data + case "titleContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleContains = data + case "titleHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleHasPrefix = data + case "titleHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleHasSuffix = data + case "titleIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.TitleIsNil = data + case "titleNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.TitleNotNil = data + case "titleEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleEqualFold = data + case "titleContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleContainsFold = data + case "company": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Company = data + case "companyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyNEQ = data + case "companyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CompanyIn = data + case "companyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CompanyNotIn = data + case "companyGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyGT = data + case "companyGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyGTE = data + case "companyLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyLT = data + case "companyLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyLTE = data + case "companyContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyContains = data + case "companyHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyHasPrefix = data + case "companyHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyHasSuffix = data + case "companyIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CompanyIsNil = data + case "companyNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CompanyNotNil = data + case "companyEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyEqualFold = data + case "companyContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyContainsFold = 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 "emailGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailGT = data + case "emailGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailGTE = data + case "emailLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailLT = data + case "emailLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailLTE = 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 "emailIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.EmailIsNil = data + case "emailNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.EmailNotNil = 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 "phoneNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumber = data + case "phoneNumberNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberNEQ = data + case "phoneNumberIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberIn = data + case "phoneNumberNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberNotIn = data + case "phoneNumberGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberGT = data + case "phoneNumberGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberGTE = data + case "phoneNumberLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberLT = data + case "phoneNumberLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberLTE = data + case "phoneNumberContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberContains = data + case "phoneNumberHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberHasPrefix = data + case "phoneNumberHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberHasSuffix = data + case "phoneNumberIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberIsNil = data + case "phoneNumberNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberNotNil = data + case "phoneNumberEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberEqualFold = data + case "phoneNumberContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberContainsFold = data + case "address": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("address")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Address = data + case "addressNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressNEQ = data + case "addressIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddressIn = data + case "addressNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddressNotIn = data + case "addressGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressGT = data + case "addressGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressGTE = data + case "addressLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressLT = data + case "addressLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressLTE = data + case "addressContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressContains = data + case "addressHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressHasPrefix = data + case "addressHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressHasSuffix = data + case "addressIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.AddressIsNil = data + case "addressNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.AddressNotNil = data + case "addressEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressEqualFold = data + case "addressContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOContactHistoryUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOContactHistoryUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + if err != nil { + return it, err + } + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOContactHistoryUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOContactHistoryUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusNotIn = data + } } - return fc, nil + + return it, nil } -func (ec *executionContext) _OrganizationSettingCreatePayload_organizationSetting(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingCreatePayload_organizationSetting(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OrganizationSetting, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null +func (ec *executionContext) unmarshalInputContactWhereInput(ctx context.Context, obj interface{}) (generated.ContactWhereInput, error) { + var it generated.ContactWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - res := resTmp.(*generated.OrganizationSetting) - fc.Result = res - return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_OrganizationSettingCreatePayload_organizationSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "fullName", "fullNameNEQ", "fullNameIn", "fullNameNotIn", "fullNameGT", "fullNameGTE", "fullNameLT", "fullNameLTE", "fullNameContains", "fullNameHasPrefix", "fullNameHasSuffix", "fullNameEqualFold", "fullNameContainsFold", "title", "titleNEQ", "titleIn", "titleNotIn", "titleGT", "titleGTE", "titleLT", "titleLTE", "titleContains", "titleHasPrefix", "titleHasSuffix", "titleIsNil", "titleNotNil", "titleEqualFold", "titleContainsFold", "company", "companyNEQ", "companyIn", "companyNotIn", "companyGT", "companyGTE", "companyLT", "companyLTE", "companyContains", "companyHasPrefix", "companyHasSuffix", "companyIsNil", "companyNotNil", "companyEqualFold", "companyContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailGT", "emailGTE", "emailLT", "emailLTE", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailIsNil", "emailNotNil", "emailEqualFold", "emailContainsFold", "phoneNumber", "phoneNumberNEQ", "phoneNumberIn", "phoneNumberNotIn", "phoneNumberGT", "phoneNumberGTE", "phoneNumberLT", "phoneNumberLTE", "phoneNumberContains", "phoneNumberHasPrefix", "phoneNumberHasSuffix", "phoneNumberIsNil", "phoneNumberNotNil", "phoneNumberEqualFold", "phoneNumberContainsFold", "address", "addressNEQ", "addressIn", "addressNotIn", "addressGT", "addressGTE", "addressLT", "addressLTE", "addressContains", "addressHasPrefix", "addressHasSuffix", "addressIsNil", "addressNotNil", "addressEqualFold", "addressContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "hasOwner", "hasOwnerWith", "hasEntities", "hasEntitiesWith", "hasFiles", "hasFilesWith"} + 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.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOContactWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOContactWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "ownerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNEQ = data + case "ownerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIn = data + case "ownerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContains = data + case "ownerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasPrefix = data + case "ownerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasSuffix = data + case "ownerIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIsNil = data + case "ownerIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotNil = data + case "ownerIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDEqualFold = data + case "ownerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContainsFold = data + case "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 "fullNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameGT = data + case "fullNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameGTE = data + case "fullNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameLT = data + case "fullNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameLTE = 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 "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 "title": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Title = data + case "titleNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleNEQ = data + case "titleIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TitleIn = data + case "titleNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TitleNotIn = data + case "titleGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleGT = data + case "titleGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleGTE = data + case "titleLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleLT = data + case "titleLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleLTE = data + case "titleContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleContains = data + case "titleHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleHasPrefix = data + case "titleHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleHasSuffix = data + case "titleIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.TitleIsNil = data + case "titleNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.TitleNotNil = data + case "titleEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleEqualFold = data + case "titleContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TitleContainsFold = data + case "company": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Company = data + case "companyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyNEQ = data + case "companyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingDeletePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.OrganizationSetting) - fc.Result = res - return ec.marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) + it.CompanyIn = data + case "companyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_historyTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_ref(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_operation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(history.OpType) - fc.Result = res - return ec.marshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrganizationSettingHistoryOpType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_domains(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_domains(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Domains, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_billingContact(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_billingContact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BillingContact, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_billingEmail(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_billingEmail(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BillingEmail, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_billingPhone(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_billingPhone(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BillingPhone, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_billingAddress(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_billingAddress(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BillingAddress, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_taxIdentifier(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_taxIdentifier(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TaxIdentifier, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_taxIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_geoLocation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_geoLocation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + it.CompanyNotIn = data + case "companyGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyGT = data + case "companyGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyGTE = data + case "companyLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyLT = data + case "companyLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyLTE = data + case "companyContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyContains = data + case "companyHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyHasPrefix = data + case "companyHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyHasSuffix = data + case "companyIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CompanyIsNil = data + case "companyNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CompanyNotNil = data + case "companyEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyEqualFold = data + case "companyContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CompanyContainsFold = 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 "emailGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailGT = data + case "emailGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailGTE = data + case "emailLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailLT = data + case "emailLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailLTE = 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 "emailIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.EmailIsNil = data + case "emailNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.EmailNotNil = 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 "phoneNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumber = data + case "phoneNumberNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberNEQ = data + case "phoneNumberIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberIn = data + case "phoneNumberNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberNotIn = data + case "phoneNumberGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberGT = data + case "phoneNumberGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberGTE = data + case "phoneNumberLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberLT = data + case "phoneNumberLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberLTE = data + case "phoneNumberContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberContains = data + case "phoneNumberHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberHasPrefix = data + case "phoneNumberHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberHasSuffix = data + case "phoneNumberIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberIsNil = data + case "phoneNumberNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberNotNil = data + case "phoneNumberEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberEqualFold = data + case "phoneNumberContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberContainsFold = data + case "address": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("address")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Address = data + case "addressNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressNEQ = data + case "addressIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddressIn = data + case "addressNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddressNotIn = data + case "addressGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressGT = data + case "addressGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressGTE = data + case "addressLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressLT = data + case "addressLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressLTE = data + case "addressContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressContains = data + case "addressHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressHasPrefix = data + case "addressHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressHasSuffix = data + case "addressIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.AddressIsNil = data + case "addressNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.AddressNotNil = data + case "addressEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressEqualFold = data + case "addressContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AddressContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOContactUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOContactUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + if err != nil { + return it, err + } + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOContactUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOContactUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusNotIn = 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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOwnerWith = 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ᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEntitiesWith = data + case "hasFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasFiles = data + case "hasFilesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasFilesWith = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GeoLocation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(enums.Region) - fc.Result = res - return ec.marshalOOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_geoLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrganizationSettingHistoryRegion does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _OrganizationSettingHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_organizationID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OrganizationID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputControlHistoryWhereInput(ctx context.Context, obj interface{}) (generated.ControlHistoryWhereInput, error) { + var it generated.ControlHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _OrganizationSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistoryConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "controlType", "controlTypeNEQ", "controlTypeIn", "controlTypeNotIn", "controlTypeGT", "controlTypeGTE", "controlTypeLT", "controlTypeLTE", "controlTypeContains", "controlTypeHasPrefix", "controlTypeHasSuffix", "controlTypeIsNil", "controlTypeNotNil", "controlTypeEqualFold", "controlTypeContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionIsNil", "versionNotNil", "versionEqualFold", "versionContainsFold", "controlNumber", "controlNumberNEQ", "controlNumberIn", "controlNumberNotIn", "controlNumberGT", "controlNumberGTE", "controlNumberLT", "controlNumberLTE", "controlNumberContains", "controlNumberHasPrefix", "controlNumberHasSuffix", "controlNumberIsNil", "controlNumberNotNil", "controlNumberEqualFold", "controlNumberContainsFold", "family", "familyNEQ", "familyIn", "familyNotIn", "familyGT", "familyGTE", "familyLT", "familyLTE", "familyContains", "familyHasPrefix", "familyHasSuffix", "familyIsNil", "familyNotNil", "familyEqualFold", "familyContainsFold", "class", "classNEQ", "classIn", "classNotIn", "classGT", "classGTE", "classLT", "classLTE", "classContains", "classHasPrefix", "classHasSuffix", "classIsNil", "classNotNil", "classEqualFold", "classContainsFold", "source", "sourceNEQ", "sourceIn", "sourceNotIn", "sourceGT", "sourceGTE", "sourceLT", "sourceLTE", "sourceContains", "sourceHasPrefix", "sourceHasSuffix", "sourceIsNil", "sourceNotNil", "sourceEqualFold", "sourceContainsFold", "satisfies", "satisfiesNEQ", "satisfiesIn", "satisfiesNotIn", "satisfiesGT", "satisfiesGTE", "satisfiesLT", "satisfiesLTE", "satisfiesContains", "satisfiesHasPrefix", "satisfiesHasSuffix", "satisfiesIsNil", "satisfiesNotNil", "satisfiesEqualFold", "satisfiesContainsFold", "mappedFrameworks", "mappedFrameworksNEQ", "mappedFrameworksIn", "mappedFrameworksNotIn", "mappedFrameworksGT", "mappedFrameworksGTE", "mappedFrameworksLT", "mappedFrameworksLTE", "mappedFrameworksContains", "mappedFrameworksHasPrefix", "mappedFrameworksHasSuffix", "mappedFrameworksIsNil", "mappedFrameworksNotNil", "mappedFrameworksEqualFold", "mappedFrameworksContainsFold"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.OrganizationSettingHistoryEdge) - fc.Result = res - return ec.marshalOOrganizationSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryEdge(ctx, field.Selections, res) -} - -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) { - switch field.Name { - case "node": - return ec.fieldContext_OrganizationSettingHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OrganizationSettingHistoryEdge_cursor(ctx, field) + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOControlHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOControlHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOControlHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOControlHistoryOpType2ᚖ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.unmarshalOControlHistoryOpType2ᚖ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.unmarshalOControlHistoryOpType2ᚕ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.unmarshalOControlHistoryOpType2ᚕ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 "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingHistoryEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistoryConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_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) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistoryConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_totalCount(_ 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 nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistoryEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.OrganizationSettingHistory) - fc.Result = res - return ec.marshalOOrganizationSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistory(ctx, field.Selections, res) -} - -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) { - switch field.Name { - case "id": - return ec.fieldContext_OrganizationSettingHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_OrganizationSettingHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_OrganizationSettingHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_OrganizationSettingHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSettingHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSettingHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSettingHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSettingHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSettingHistory_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSettingHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSettingHistory_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSettingHistory_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSettingHistory_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSettingHistory_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSettingHistory_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSettingHistory_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSettingHistory_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSettingHistory_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSettingHistory_organizationID(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingHistory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistoryEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistoryEdge_cursor(_ 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 nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingSearchResult_organizationSettings(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingSearchResult_organizationSettings(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OrganizationSettings, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.OrganizationSetting) - fc.Result = res - return ec.marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingSearchResult_organizationSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingSearchResult", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingUpdatePayload_organizationSetting(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingUpdatePayload_organizationSetting(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OrganizationSetting, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OrganizationSetting) - fc.Result = res - return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingUpdatePayload_organizationSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingUpdatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationUpdatePayload_organization(ctx context.Context, field graphql.CollectedField, obj *OrganizationUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationUpdatePayload_organization(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Organization, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationUpdatePayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationUpdatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + 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 "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLTE = 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 "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_hasNextPage(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HasNextPage, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HasPreviousPage, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_startCursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.StartCursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*entgql.Cursor[string]) - fc.Result = res - return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_endCursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EndCursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*entgql.Cursor[string]) - fc.Result = res - return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PageInfo", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_id(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_name(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_token(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_token(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Token, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ExpiresAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_description(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Scopes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastUsedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_owner(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_owner(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.User) - fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) + it.StatusContainsFold = data + case "controlType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_organizations(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Organizations(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + it.ControlType = data + case "controlTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeNEQ = data + case "controlTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeIn = data + case "controlTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeNotIn = data + case "controlTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeGT = data + case "controlTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeGTE = data + case "controlTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeLT = data + case "controlTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeLTE = data + case "controlTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeContains = data + case "controlTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeHasPrefix = data + case "controlTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessToken_events(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_events(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Event) - fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessToken_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + it.ControlTypeHasSuffix = data + case "controlTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessTokens, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.PersonalAccessToken) - fc.Result = res - return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenBulkCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) + it.ControlTypeIsNil = data + case "controlTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessTokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.PersonalAccessTokenEdge) - fc.Result = res - return ec.marshalOPersonalAccessTokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_PersonalAccessTokenEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_PersonalAccessTokenEdge_cursor(ctx, field) + it.ControlTypeNotNil = data + case "controlTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessTokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + it.ControlTypeEqualFold = data + case "controlTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessTokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessTokenCreatePayload_personalAccessToken(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenCreatePayload_personalAccessToken(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessToken, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.PersonalAccessToken) - fc.Result = res - return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessTokenCreatePayload_personalAccessToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) + it.ControlTypeContainsFold = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessTokenDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessTokenDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenDeletePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessTokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.PersonalAccessToken) - fc.Result = res - return ec.marshalOPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessTokenEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessTokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessTokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessTokenSearchResult_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessTokens, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.PersonalAccessToken) - fc.Result = res - return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenSearchResult", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _PersonalAccessTokenUpdatePayload_personalAccessToken(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenUpdatePayload_personalAccessToken(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessToken, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.PersonalAccessToken) - fc.Result = res - return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_PersonalAccessTokenUpdatePayload_personalAccessToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenUpdatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Node(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(generated.Noder) - fc.Result = res - return ec.marshalONode2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_node_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_nodes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_nodes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Nodes(rctx, fc.Args["ids"].([]string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]generated.Noder) - fc.Result = res - return ec.marshalNNode2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, field.Selections, res) -} - -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_apiTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_apiTokens(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().APITokens(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.APITokenWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.APITokenConnection) - fc.Result = res - return ec.marshalNAPITokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_apiTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_APITokenConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_APITokenConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_APITokenConnection_totalCount(ctx, field) + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasSuffix = data + case "versionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.VersionIsNil = data + case "versionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.VersionNotNil = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContainsFold = data + case "controlNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumber = data + case "controlNumberNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberNEQ = data + case "controlNumberIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberIn = data + case "controlNumberNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberNotIn = data + case "controlNumberGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberGT = data + case "controlNumberGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberGTE = data + case "controlNumberLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberLT = data + case "controlNumberLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberLTE = data + case "controlNumberContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberContains = data + case "controlNumberHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberHasPrefix = data + case "controlNumberHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type APITokenConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_apiTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_contacts(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_contacts(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Contacts(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ContactWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.ContactConnection) - fc.Result = res - return ec.marshalNContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_contacts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ContactConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ContactConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ContactConnection_totalCount(ctx, field) + it.ControlNumberHasSuffix = data + case "controlNumberIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type ContactConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_contactHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_contactHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ContactHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ContactHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.ContactHistoryConnection) - fc.Result = res - return ec.marshalNContactHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_contactHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ContactHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ContactHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ContactHistoryConnection_totalCount(ctx, field) + it.ControlNumberIsNil = data + case "controlNumberNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type ContactHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_contactHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_documentDataSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_documentDataSlice(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().DocumentDataSlice(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.DocumentDataWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.DocumentDataConnection) - fc.Result = res - return ec.marshalNDocumentDataConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_documentDataSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_DocumentDataConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DocumentDataConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_DocumentDataConnection_totalCount(ctx, field) + it.ControlNumberNotNil = data + case "controlNumberEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_documentDataSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_documentDataHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_documentDataHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().DocumentDataHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.DocumentDataHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.DocumentDataHistoryConnection) - fc.Result = res - return ec.marshalNDocumentDataHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_documentDataHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_DocumentDataHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DocumentDataHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_DocumentDataHistoryConnection_totalCount(ctx, field) + it.ControlNumberEqualFold = data + case "controlNumberContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_documentDataHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitlements(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitlements(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Entitlements(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EntitlementWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntitlementConnection) - fc.Result = res - return ec.marshalNEntitlementConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitlements(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntitlementConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntitlementConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntitlementConnection_totalCount(ctx, field) + it.ControlNumberContainsFold = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementConnection", field.Name) - }, - } - defer func() { - if 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_entitlements_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitlementHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitlementHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntitlementHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EntitlementHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntitlementHistoryConnection) - fc.Result = res - return ec.marshalNEntitlementHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitlementHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntitlementHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntitlementHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntitlementHistoryConnection_totalCount(ctx, field) + it.Family = data + case "familyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementHistoryConnection", field.Name) - }, - } - defer func() { - if 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_entitlementHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitlementPlans(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitlementPlans(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntitlementPlans(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EntitlementPlanWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntitlementPlanConnection) - fc.Result = res - return ec.marshalNEntitlementPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitlementPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntitlementPlanConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntitlementPlanConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntitlementPlanConnection_totalCount(ctx, field) + it.FamilyNEQ = data + case "familyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanConnection", field.Name) - }, - } - defer func() { - if 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_entitlementPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitlementPlanFeatures(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitlementPlanFeatures(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntitlementPlanFeatures(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EntitlementPlanFeatureWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntitlementPlanFeatureConnection) - fc.Result = res - return ec.marshalNEntitlementPlanFeatureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitlementPlanFeatures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntitlementPlanFeatureConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntitlementPlanFeatureConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntitlementPlanFeatureConnection_totalCount(ctx, field) + it.FamilyIn = data + case "familyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureConnection", field.Name) - }, - } - defer func() { - if 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_entitlementPlanFeatures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitlementPlanFeatureHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitlementPlanFeatureHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntitlementPlanFeatureHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EntitlementPlanFeatureHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntitlementPlanFeatureHistoryConnection) - fc.Result = res - return ec.marshalNEntitlementPlanFeatureHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitlementPlanFeatureHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntitlementPlanFeatureHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntitlementPlanFeatureHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntitlementPlanFeatureHistoryConnection_totalCount(ctx, field) + it.FamilyNotIn = data + case "familyGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureHistoryConnection", field.Name) - }, - } - defer func() { - if 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_entitlementPlanFeatureHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitlementPlanHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitlementPlanHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntitlementPlanHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EntitlementPlanHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntitlementPlanHistoryConnection) - fc.Result = res - return ec.marshalNEntitlementPlanHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitlementPlanHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntitlementPlanHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntitlementPlanHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntitlementPlanHistoryConnection_totalCount(ctx, field) + it.FamilyGT = data + case "familyGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanHistoryConnection", field.Name) - }, - } - defer func() { - if 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_entitlementPlanHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entities(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Entities(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntityConnection) - fc.Result = res - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntityConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntityConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntityConnection_totalCount(ctx, field) + it.FamilyGTE = data + case "familyLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntityConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entityHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entityHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntityHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityHistoryOrder), fc.Args["where"].(*generated.EntityHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntityHistoryConnection) - fc.Result = res - return ec.marshalNEntityHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entityHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntityHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntityHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntityHistoryConnection_totalCount(ctx, field) + it.FamilyLT = data + case "familyLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntityHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entityHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entityTypes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entityTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntityTypes(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityTypeOrder), fc.Args["where"].(*generated.EntityTypeWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntityTypeConnection) - fc.Result = res - return ec.marshalNEntityTypeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entityTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntityTypeConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntityTypeConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntityTypeConnection_totalCount(ctx, field) + it.FamilyLTE = data + case "familyContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entityTypes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entityTypeHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entityTypeHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntityTypeHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityTypeHistoryOrder), fc.Args["where"].(*generated.EntityTypeHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntityTypeHistoryConnection) - fc.Result = res - return ec.marshalNEntityTypeHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entityTypeHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntityTypeHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntityTypeHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntityTypeHistoryConnection_totalCount(ctx, field) + it.FamilyContains = data + case "familyHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyHasPrefix = data + case "familyHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyHasSuffix = data + case "familyIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FamilyIsNil = data + case "familyNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FamilyNotNil = data + case "familyEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyEqualFold = data + case "familyContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyContainsFold = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Class = data + case "classNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassNEQ = data + case "classIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ClassIn = data + case "classNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ClassNotIn = data + case "classGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassGT = data + case "classGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassGTE = data + case "classLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassLT = data + case "classLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassLTE = data + case "classContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassContains = data + case "classHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassHasPrefix = data + case "classHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassHasSuffix = data + case "classIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClassIsNil = data + case "classNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClassNotNil = data + case "classEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassEqualFold = data + case "classContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassContainsFold = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Source = data + case "sourceNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceNEQ = data + case "sourceIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SourceIn = data + case "sourceNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SourceNotIn = data + case "sourceGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceGT = data + case "sourceGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceGTE = data + case "sourceLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceLT = data + case "sourceLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceLTE = data + case "sourceContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entityTypeHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_events(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_events(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Events(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EventWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EventConnection) - fc.Result = res - return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EventConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EventConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EventConnection_totalCount(ctx, field) + it.SourceContains = data + case "sourceHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EventConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_eventHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_eventHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EventHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EventHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EventHistoryConnection) - fc.Result = res - return ec.marshalNEventHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_eventHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EventHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EventHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EventHistoryConnection_totalCount(ctx, field) + it.SourceHasPrefix = data + case "sourceHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EventHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_eventHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_features(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_features(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Features(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.FeatureWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.FeatureConnection) - fc.Result = res - return ec.marshalNFeatureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_features(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_FeatureConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_FeatureConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_FeatureConnection_totalCount(ctx, field) + it.SourceHasSuffix = data + case "sourceIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type FeatureConnection", field.Name) - }, - } - defer func() { - if 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_features_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_featureHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_featureHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FeatureHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.FeatureHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.FeatureHistoryConnection) - fc.Result = res - return ec.marshalNFeatureHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_featureHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_FeatureHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_FeatureHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_FeatureHistoryConnection_totalCount(ctx, field) + it.SourceIsNil = data + case "sourceNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type FeatureHistoryConnection", field.Name) - }, - } - defer func() { - if 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_featureHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_files(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_files(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Files(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.FileWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.FileConnection) - fc.Result = res - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_FileConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_FileConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_FileConnection_totalCount(ctx, field) + it.SourceNotNil = data + case "sourceEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type FileConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_fileHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_fileHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FileHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.FileHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.FileHistoryConnection) - fc.Result = res - return ec.marshalNFileHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_fileHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_FileHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_FileHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_FileHistoryConnection_totalCount(ctx, field) + it.SourceEqualFold = data + case "sourceContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type FileHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_fileHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_groups(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groups(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Groups(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.GroupConnection) - fc.Result = res - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_GroupConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GroupConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GroupConnection_totalCount(ctx, field) + it.SourceContainsFold = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type GroupConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_groupHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.GroupHistoryOrder), fc.Args["where"].(*generated.GroupHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.GroupHistoryConnection) - fc.Result = res - return ec.marshalNGroupHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_groupHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_GroupHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GroupHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GroupHistoryConnection_totalCount(ctx, field) + it.Satisfies = data + case "satisfiesNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type GroupHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_groupMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupMemberships(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupMemberships(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupMembershipWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.GroupMembershipConnection) - fc.Result = res - return ec.marshalNGroupMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_groupMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_GroupMembershipConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GroupMembershipConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GroupMembershipConnection_totalCount(ctx, field) + it.SatisfiesNEQ = data + case "satisfiesIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_groupMembershipHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupMembershipHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupMembershipHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupMembershipHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.GroupMembershipHistoryConnection) - fc.Result = res - return ec.marshalNGroupMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_groupMembershipHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_GroupMembershipHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GroupMembershipHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GroupMembershipHistoryConnection_totalCount(ctx, field) + it.SatisfiesIn = data + case "satisfiesNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupMembershipHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_groupSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupSettings(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupSettingWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.GroupSettingConnection) - fc.Result = res - return ec.marshalNGroupSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_groupSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_GroupSettingConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GroupSettingConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GroupSettingConnection_totalCount(ctx, field) + it.SatisfiesNotIn = data + case "satisfiesGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_groupSettingHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupSettingHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupSettingHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupSettingHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.GroupSettingHistoryConnection) - fc.Result = res - return ec.marshalNGroupSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_groupSettingHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_GroupSettingHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GroupSettingHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GroupSettingHistoryConnection_totalCount(ctx, field) + it.SatisfiesGT = data + case "satisfiesGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupSettingHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_hushes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_hushes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Hushes(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.HushOrder), fc.Args["where"].(*generated.HushWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.HushConnection) - fc.Result = res - return ec.marshalNHushConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_hushes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_HushConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_HushConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_HushConnection_totalCount(ctx, field) + it.SatisfiesGTE = data + case "satisfiesLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type HushConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_hushes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_hushHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_hushHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().HushHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.HushHistoryOrder), fc.Args["where"].(*generated.HushHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.HushHistoryConnection) - fc.Result = res - return ec.marshalNHushHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_hushHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_HushHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_HushHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_HushHistoryConnection_totalCount(ctx, field) + it.SatisfiesLT = data + case "satisfiesLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type HushHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_hushHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_integrations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_integrations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Integrations(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.IntegrationConnection) - fc.Result = res - return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_IntegrationConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IntegrationConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_IntegrationConnection_totalCount(ctx, field) + it.SatisfiesLTE = data + case "satisfiesContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesContains = data + case "satisfiesHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesHasPrefix = data + case "satisfiesHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesHasSuffix = data + case "satisfiesIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesIsNil = data + case "satisfiesNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesNotNil = data + case "satisfiesEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesEqualFold = data + case "satisfiesContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesContainsFold = data + case "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworks = data + case "mappedFrameworksNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksNEQ = data + case "mappedFrameworksIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksIn = data + case "mappedFrameworksNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksNotIn = data + case "mappedFrameworksGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksGT = data + case "mappedFrameworksGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type IntegrationConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_integrationHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_integrationHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().IntegrationHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.IntegrationHistoryOrder), fc.Args["where"].(*generated.IntegrationHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.IntegrationHistoryConnection) - fc.Result = res - return ec.marshalNIntegrationHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_integrationHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_IntegrationHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IntegrationHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_IntegrationHistoryConnection_totalCount(ctx, field) + it.MappedFrameworksGTE = data + case "mappedFrameworksLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type IntegrationHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_integrationHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_invites(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_invites(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Invites(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.InviteWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.InviteConnection) - fc.Result = res - return ec.marshalNInviteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_invites(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_InviteConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_InviteConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_InviteConnection_totalCount(ctx, field) + it.MappedFrameworksLT = data + case "mappedFrameworksLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type InviteConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_invites_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_notes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_notes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Notes(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NoteWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.NoteConnection) - fc.Result = res - return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_notes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_NoteConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_NoteConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_NoteConnection_totalCount(ctx, field) + it.MappedFrameworksLTE = data + case "mappedFrameworksContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type NoteConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_notes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_noteHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_noteHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().NoteHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NoteHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.NoteHistoryConnection) - fc.Result = res - return ec.marshalNNoteHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_noteHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_NoteHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_NoteHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_NoteHistoryConnection_totalCount(ctx, field) + it.MappedFrameworksContains = data + case "mappedFrameworksHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type NoteHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_noteHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_oauthProviders(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_oauthProviders(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OauthProviders(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OauthProviderWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OauthProviderConnection) - fc.Result = res - return ec.marshalNOauthProviderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_oauthProviders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OauthProviderConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OauthProviderConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OauthProviderConnection_totalCount(ctx, field) + it.MappedFrameworksHasPrefix = data + case "mappedFrameworksHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OauthProviderConnection", field.Name) - }, - } - defer func() { - if 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_oauthProviders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_oauthProviderHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_oauthProviderHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OauthProviderHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OauthProviderHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OauthProviderHistoryConnection) - fc.Result = res - return ec.marshalNOauthProviderHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_oauthProviderHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OauthProviderHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OauthProviderHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OauthProviderHistoryConnection_totalCount(ctx, field) + it.MappedFrameworksHasSuffix = data + case "mappedFrameworksIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OauthProviderHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + it.MappedFrameworksIsNil = data + case "mappedFrameworksNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksNotNil = data + case "mappedFrameworksEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksEqualFold = data + case "mappedFrameworksContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksContainsFold = data } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_oauthProviderHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err } - return fc, nil -} -func (ec *executionContext) _Query_ohAuthTooTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_ohAuthTooTokens(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OhAuthTooTokens(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OhAuthTooTokenWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OhAuthTooTokenConnection) - fc.Result = res - return ec.marshalNOhAuthTooTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenConnection(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_Query_ohAuthTooTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OhAuthTooTokenConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OhAuthTooTokenConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OhAuthTooTokenConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenConnection", field.Name) - }, - } - defer func() { - if 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_ohAuthTooTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err +func (ec *executionContext) unmarshalInputControlObjectiveHistoryWhereInput(ctx context.Context, obj interface{}) (generated.ControlObjectiveHistoryWhereInput, error) { + var it generated.ControlObjectiveHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _Query_orgMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_orgMemberships(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrgMemberships(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrgMembershipWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "controlObjectiveType", "controlObjectiveTypeNEQ", "controlObjectiveTypeIn", "controlObjectiveTypeNotIn", "controlObjectiveTypeGT", "controlObjectiveTypeGTE", "controlObjectiveTypeLT", "controlObjectiveTypeLTE", "controlObjectiveTypeContains", "controlObjectiveTypeHasPrefix", "controlObjectiveTypeHasSuffix", "controlObjectiveTypeIsNil", "controlObjectiveTypeNotNil", "controlObjectiveTypeEqualFold", "controlObjectiveTypeContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionIsNil", "versionNotNil", "versionEqualFold", "versionContainsFold", "controlNumber", "controlNumberNEQ", "controlNumberIn", "controlNumberNotIn", "controlNumberGT", "controlNumberGTE", "controlNumberLT", "controlNumberLTE", "controlNumberContains", "controlNumberHasPrefix", "controlNumberHasSuffix", "controlNumberIsNil", "controlNumberNotNil", "controlNumberEqualFold", "controlNumberContainsFold", "family", "familyNEQ", "familyIn", "familyNotIn", "familyGT", "familyGTE", "familyLT", "familyLTE", "familyContains", "familyHasPrefix", "familyHasSuffix", "familyIsNil", "familyNotNil", "familyEqualFold", "familyContainsFold", "class", "classNEQ", "classIn", "classNotIn", "classGT", "classGTE", "classLT", "classLTE", "classContains", "classHasPrefix", "classHasSuffix", "classIsNil", "classNotNil", "classEqualFold", "classContainsFold", "source", "sourceNEQ", "sourceIn", "sourceNotIn", "sourceGT", "sourceGTE", "sourceLT", "sourceLTE", "sourceContains", "sourceHasPrefix", "sourceHasSuffix", "sourceIsNil", "sourceNotNil", "sourceEqualFold", "sourceContainsFold", "mappedFrameworks", "mappedFrameworksNEQ", "mappedFrameworksIn", "mappedFrameworksNotIn", "mappedFrameworksGT", "mappedFrameworksGTE", "mappedFrameworksLT", "mappedFrameworksLTE", "mappedFrameworksContains", "mappedFrameworksHasPrefix", "mappedFrameworksHasSuffix", "mappedFrameworksIsNil", "mappedFrameworksNotNil", "mappedFrameworksEqualFold", "mappedFrameworksContainsFold"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - return graphql.Null - } - res := resTmp.(*generated.OrgMembershipConnection) - fc.Result = res - return ec.marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_orgMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrgMembershipConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrgMembershipConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrgMembershipConnection_totalCount(ctx, field) + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOControlObjectiveHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOControlObjectiveHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOControlObjectiveHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOControlObjectiveHistoryOpType2ᚖ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.unmarshalOControlObjectiveHistoryOpType2ᚖ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.unmarshalOControlObjectiveHistoryOpType2ᚕ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.unmarshalOControlObjectiveHistoryOpType2ᚕ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 "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_orgMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_orgMembershipHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_orgMembershipHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrgMembershipHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrgMembershipHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OrgMembershipHistoryConnection) - fc.Result = res - return ec.marshalNOrgMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_orgMembershipHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrgMembershipHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrgMembershipHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrgMembershipHistoryConnection_totalCount(ctx, field) + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_orgMembershipHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_organizations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Organizations(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.OrganizationOrder), fc.Args["where"].(*generated.OrganizationWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OrganizationConnection) - fc.Result = res - return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_organizations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrganizationConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrganizationConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrganizationConnection_totalCount(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type OrganizationConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_organizationHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizationHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrganizationHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.OrganizationHistoryOrder), fc.Args["where"].(*generated.OrganizationHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OrganizationHistoryConnection) - fc.Result = res - return ec.marshalNOrganizationHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_organizationHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrganizationHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrganizationHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrganizationHistoryConnection_totalCount(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type OrganizationHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_organizationSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizationSettings(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrganizationSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrganizationSettingWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OrganizationSettingConnection) - fc.Result = res - return ec.marshalNOrganizationSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_organizationSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrganizationSettingConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrganizationSettingConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrganizationSettingConnection_totalCount(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_organizationSettingHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizationSettingHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrganizationSettingHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrganizationSettingHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OrganizationSettingHistoryConnection) - fc.Result = res - return ec.marshalNOrganizationSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_organizationSettingHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrganizationSettingHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrganizationSettingHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrganizationSettingHistoryConnection_totalCount(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingHistoryConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationSettingHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_personalAccessTokens(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PersonalAccessTokens(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.PersonalAccessTokenWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.PersonalAccessTokenConnection) - fc.Result = res - return ec.marshalNPersonalAccessTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_PersonalAccessTokenConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_PersonalAccessTokenConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_PersonalAccessTokenConnection_totalCount(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_personalAccessTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_subscribers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_subscribers(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Subscribers(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.SubscriberWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.SubscriberConnection) - fc.Result = res - return ec.marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_subscribers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_SubscriberConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SubscriberConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_SubscriberConnection_totalCount(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type SubscriberConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subscribers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_tfaSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_tfaSettings(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TfaSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.TFASettingWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.TFASettingConnection) - fc.Result = res - return ec.marshalNTFASettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_tfaSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_TFASettingConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_TFASettingConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_TFASettingConnection_totalCount(ctx, field) + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TFASettingConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_tfaSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_templates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_templates(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Templates(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.TemplateOrder), fc.Args["where"].(*generated.TemplateWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.TemplateConnection) - fc.Result = res - return ec.marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_templates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_TemplateConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_TemplateConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_TemplateConnection_totalCount(ctx, field) + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TemplateConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_templates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_templateHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_templateHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TemplateHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.TemplateHistoryOrder), fc.Args["where"].(*generated.TemplateHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.TemplateHistoryConnection) - fc.Result = res - return ec.marshalNTemplateHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_templateHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_TemplateHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_TemplateHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_TemplateHistoryConnection_totalCount(ctx, field) + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TemplateHistoryConnection", field.Name) - }, - } - defer func() { - if 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_templateHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_users(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_users(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Users(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.UserOrder), fc.Args["where"].(*generated.UserWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.UserConnection) - fc.Result = res - return ec.marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_UserConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_UserConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_UserConnection_totalCount(ctx, field) + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_userHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.UserHistoryOrder), fc.Args["where"].(*generated.UserHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.UserHistoryConnection) - fc.Result = res - return ec.marshalNUserHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_userHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_UserHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_UserHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_UserHistoryConnection_totalCount(ctx, field) + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserHistoryConnection", field.Name) - }, - } - defer func() { - if 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_userHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_userSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userSettings(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.UserSettingWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.UserSettingConnection) - fc.Result = res - return ec.marshalNUserSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_userSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_UserSettingConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_UserSettingConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_UserSettingConnection_totalCount(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type UserSettingConnection", field.Name) - }, - } - defer func() { - if 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_userSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_userSettingHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userSettingHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserSettingHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.UserSettingHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.UserSettingHistoryConnection) - fc.Result = res - return ec.marshalNUserSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_userSettingHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_UserSettingHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_UserSettingHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_UserSettingHistoryConnection_totalCount(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type UserSettingHistoryConnection", field.Name) - }, - } - defer func() { - if 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_userSettingHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_webhooks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_webhooks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Webhooks(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.WebhookOrder), fc.Args["where"].(*generated.WebhookWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.WebhookConnection) - fc.Result = res - return ec.marshalNWebhookConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_webhooks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_WebhookConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_WebhookConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_WebhookConnection_totalCount(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type WebhookConnection", field.Name) - }, - } - defer func() { - if 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_webhooks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_webhookHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_webhookHistories(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().WebhookHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.WebhookHistoryOrder), fc.Args["where"].(*generated.WebhookHistoryWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.WebhookHistoryConnection) - fc.Result = res - return ec.marshalNWebhookHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_webhookHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_WebhookHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_WebhookHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_WebhookHistoryConnection_totalCount(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type WebhookHistoryConnection", field.Name) - }, - } - defer func() { - if 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_webhookHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminAPITokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminAPITokenSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminAPITokenSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*APITokenSearchResult) - fc.Result = res - return ec.marshalOAPITokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminAPITokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "apiTokens": - return ec.fieldContext_APITokenSearchResult_apiTokens(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type APITokenSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminAPITokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminContactSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminContactSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminContactSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*ContactSearchResult) - fc.Result = res - return ec.marshalOContactSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminContactSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "contacts": - return ec.fieldContext_ContactSearchResult_contacts(ctx, field) + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type ContactSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminContactSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminDocumentDataSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminDocumentDataSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminDocumentDataSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*DocumentDataSearchResult) - fc.Result = res - return ec.marshalODocumentDataSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminDocumentDataSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "documentData": - return ec.fieldContext_DocumentDataSearchResult_documentData(ctx, field) + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminDocumentDataSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminEntitlementSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminEntitlementSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminEntitlementSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*EntitlementSearchResult) - fc.Result = res - return ec.marshalOEntitlementSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminEntitlementSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entitlements": - return ec.fieldContext_EntitlementSearchResult_entitlements(ctx, field) + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementSearchResult", field.Name) - }, - } - defer func() { - if 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_adminEntitlementSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminEntitlementPlanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminEntitlementPlanSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminEntitlementPlanSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*EntitlementPlanSearchResult) - fc.Result = res - return ec.marshalOEntitlementPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminEntitlementPlanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entitlementPlans": - return ec.fieldContext_EntitlementPlanSearchResult_entitlementPlans(ctx, field) + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanSearchResult", field.Name) - }, - } - defer func() { - if 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_adminEntitlementPlanSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminEntitlementPlanFeatureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminEntitlementPlanFeatureSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminEntitlementPlanFeatureSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*EntitlementPlanFeatureSearchResult) - fc.Result = res - return ec.marshalOEntitlementPlanFeatureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminEntitlementPlanFeatureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entitlementPlanFeatures": - return ec.fieldContext_EntitlementPlanFeatureSearchResult_entitlementPlanFeatures(ctx, field) + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureSearchResult", field.Name) - }, - } - defer func() { - if 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_adminEntitlementPlanFeatureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminEntitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminEntitySearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminEntitySearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*EntitySearchResult) - fc.Result = res - return ec.marshalOEntitySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitySearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminEntitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entities": - return ec.fieldContext_EntitySearchResult_entities(ctx, field) + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitySearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminEntitySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminEntityTypeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminEntityTypeSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminEntityTypeSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*EntityTypeSearchResult) - fc.Result = res - return ec.marshalOEntityTypeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminEntityTypeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entityTypes": - return ec.fieldContext_EntityTypeSearchResult_entityTypes(ctx, field) + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminEntityTypeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminEventSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminEventSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminEventSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*EventSearchResult) - fc.Result = res - return ec.marshalOEventSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminEventSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "events": - return ec.fieldContext_EventSearchResult_events(ctx, field) + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EventSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminEventSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminFeatureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminFeatureSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminFeatureSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*FeatureSearchResult) - fc.Result = res - return ec.marshalOFeatureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminFeatureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "features": - return ec.fieldContext_FeatureSearchResult_features(ctx, field) + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type FeatureSearchResult", field.Name) - }, - } - defer func() { - if 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_adminFeatureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminFileSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminFileSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminFileSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*FileSearchResult) - fc.Result = res - return ec.marshalOFileSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminFileSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "files": - return ec.fieldContext_FileSearchResult_files(ctx, field) + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type FileSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminFileSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminGroupSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminGroupSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminGroupSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*GroupSearchResult) - fc.Result = res - return ec.marshalOGroupSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminGroupSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groups": - return ec.fieldContext_GroupSearchResult_groups(ctx, field) + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type GroupSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminGroupSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminGroupSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminGroupSettingSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminGroupSettingSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*GroupSettingSearchResult) - fc.Result = res - return ec.marshalOGroupSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminGroupSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupSettings": - return ec.fieldContext_GroupSettingSearchResult_groupSettings(ctx, field) + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminGroupSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminIntegrationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminIntegrationSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminIntegrationSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*IntegrationSearchResult) - fc.Result = res - return ec.marshalOIntegrationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminIntegrationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "integrations": - return ec.fieldContext_IntegrationSearchResult_integrations(ctx, field) + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type IntegrationSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminIntegrationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminOauthProviderSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminOauthProviderSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminOauthProviderSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*OauthProviderSearchResult) - fc.Result = res - return ec.marshalOOauthProviderSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminOauthProviderSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "oauthProviders": - return ec.fieldContext_OauthProviderSearchResult_oauthProviders(ctx, field) + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OauthProviderSearchResult", field.Name) - }, - } - defer func() { - if 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_adminOauthProviderSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminOhAuthTooTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminOhAuthTooTokenSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminOhAuthTooTokenSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*OhAuthTooTokenSearchResult) - fc.Result = res - return ec.marshalOOhAuthTooTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminOhAuthTooTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "ohAuthTooTokens": - return ec.fieldContext_OhAuthTooTokenSearchResult_ohAuthTooTokens(ctx, field) + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenSearchResult", field.Name) - }, - } - defer func() { - if 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_adminOhAuthTooTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminOrganizationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminOrganizationSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminOrganizationSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*OrganizationSearchResult) - fc.Result = res - return ec.marshalOOrganizationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminOrganizationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizations": - return ec.fieldContext_OrganizationSearchResult_organizations(ctx, field) + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminOrganizationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminOrganizationSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminOrganizationSettingSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminOrganizationSettingSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*OrganizationSettingSearchResult) - fc.Result = res - return ec.marshalOOrganizationSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminOrganizationSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizationSettings": - return ec.fieldContext_OrganizationSettingSearchResult_organizationSettings(ctx, field) + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminOrganizationSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminPersonalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminPersonalAccessTokenSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminPersonalAccessTokenSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*PersonalAccessTokenSearchResult) - fc.Result = res - return ec.marshalOPersonalAccessTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminPersonalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "personalAccessTokens": - return ec.fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(ctx, field) + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminPersonalAccessTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminSubscriberSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminSubscriberSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminSubscriberSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*SubscriberSearchResult) - fc.Result = res - return ec.marshalOSubscriberSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminSubscriberSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subscribers": - return ec.fieldContext_SubscriberSearchResult_subscribers(ctx, field) + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type SubscriberSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminSubscriberSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminTFASettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminTFASettingSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminTFASettingSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*TFASettingSearchResult) - fc.Result = res - return ec.marshalOTFASettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminTFASettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "tFASettings": - return ec.fieldContext_TFASettingSearchResult_tFASettings(ctx, field) + it.DeletedByContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TFASettingSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminTFASettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminTemplateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminTemplateSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminTemplateSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*TemplateSearchResult) - fc.Result = res - return ec.marshalOTemplateSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminTemplateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "templates": - return ec.fieldContext_TemplateSearchResult_templates(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type TemplateSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminTemplateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminUserSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminUserSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminUserSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*UserSearchResult) - fc.Result = res - return ec.marshalOUserSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminUserSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "users": - return ec.fieldContext_UserSearchResult_users(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type UserSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminUserSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminUserSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminUserSettingSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminUserSettingSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*UserSettingSearchResult) - fc.Result = res - return ec.marshalOUserSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminUserSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "userSettings": - return ec.fieldContext_UserSettingSearchResult_userSettings(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type UserSettingSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminUserSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminWebhookSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminWebhookSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminWebhookSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*WebhookSearchResult) - fc.Result = res - return ec.marshalOWebhookSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminWebhookSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "webhooks": - return ec.fieldContext_WebhookSearchResult_webhooks(ctx, field) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type WebhookSearchResult", field.Name) - }, - } - defer func() { - if 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_adminWebhookSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_apiToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_apiToken(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().APIToken(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.APIToken) - fc.Result = res - return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_apiToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) - }, - } - defer func() { - if 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_apiToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_auditLogs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_auditLogs(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AuditLogs(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*AuditLogWhereInput)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*AuditLogConnection) - fc.Result = res - return ec.marshalNAuditLogConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_auditLogs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_AuditLogConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_AuditLogConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_AuditLogConnection_totalCount(ctx, field) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type AuditLogConnection", field.Name) - }, - } - defer func() { - if 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_auditLogs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_contact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_contact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Contact(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Contact) - fc.Result = res - return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_contact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) - }, - } - defer func() { - if 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_contact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_documentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_documentData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().DocumentData(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.DocumentData) - fc.Result = res - return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_documentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "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 } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) - }, - } - defer func() { - if 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_documentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitlement(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitlement(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Entitlement(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Entitlement) - fc.Result = res - return ec.marshalNEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitlement(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entitlement_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entitlement_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entitlement_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entitlement_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entitlement_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Entitlement_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Entitlement_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entitlement_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Entitlement_ownerID(ctx, field) - case "planID": - return ec.fieldContext_Entitlement_planID(ctx, field) - case "organizationID": - return ec.fieldContext_Entitlement_organizationID(ctx, field) - case "externalCustomerID": - return ec.fieldContext_Entitlement_externalCustomerID(ctx, field) - case "externalSubscriptionID": - return ec.fieldContext_Entitlement_externalSubscriptionID(ctx, field) - case "expires": - return ec.fieldContext_Entitlement_expires(ctx, field) - case "expiresAt": - return ec.fieldContext_Entitlement_expiresAt(ctx, field) - case "cancelled": - return ec.fieldContext_Entitlement_cancelled(ctx, field) - case "owner": - return ec.fieldContext_Entitlement_owner(ctx, field) - case "plan": - return ec.fieldContext_Entitlement_plan(ctx, field) - case "organization": - return ec.fieldContext_Entitlement_organization(ctx, field) - case "events": - return ec.fieldContext_Entitlement_events(ctx, field) + it.DescriptionNotIn = data + case "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Entitlement", field.Name) - }, - } - defer func() { - if 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_entitlement_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitlementPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitlementPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntitlementPlan(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntitlementPlan) - fc.Result = res - return ec.marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitlementPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlan_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlan_ownerID(ctx, field) - case "displayName": - return ec.fieldContext_EntitlementPlan_displayName(ctx, field) - case "name": - return ec.fieldContext_EntitlementPlan_name(ctx, field) - case "description": - return ec.fieldContext_EntitlementPlan_description(ctx, field) - case "version": - return ec.fieldContext_EntitlementPlan_version(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlan_metadata(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlan_owner(ctx, field) - case "entitlements": - return ec.fieldContext_EntitlementPlan_entitlements(ctx, field) - case "baseFeatures": - return ec.fieldContext_EntitlementPlan_baseFeatures(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlan_events(ctx, field) - case "features": - return ec.fieldContext_EntitlementPlan_features(ctx, field) + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlan", field.Name) - }, - } - defer func() { - if 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_entitlementPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitlementPlanFeature(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntitlementPlanFeature(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntitlementPlanFeature) - fc.Result = res - return ec.marshalNEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitlementPlanFeature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntitlementPlanFeature_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntitlementPlanFeature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntitlementPlanFeature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntitlementPlanFeature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntitlementPlanFeature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntitlementPlanFeature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntitlementPlanFeature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntitlementPlanFeature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntitlementPlanFeature_ownerID(ctx, field) - case "metadata": - return ec.fieldContext_EntitlementPlanFeature_metadata(ctx, field) - case "planID": - return ec.fieldContext_EntitlementPlanFeature_planID(ctx, field) - case "featureID": - return ec.fieldContext_EntitlementPlanFeature_featureID(ctx, field) - case "owner": - return ec.fieldContext_EntitlementPlanFeature_owner(ctx, field) - case "plan": - return ec.fieldContext_EntitlementPlanFeature_plan(ctx, field) - case "feature": - return ec.fieldContext_EntitlementPlanFeature_feature(ctx, field) - case "events": - return ec.fieldContext_EntitlementPlanFeature_events(ctx, field) + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeature", field.Name) - }, - } - defer func() { - if 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_entitlementPlanFeature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Entity(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Entity) - fc.Result = res - return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) - }, - } - defer func() { - if 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_entity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entityType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntityType(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.EntityType) - fc.Result = res - return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) - }, - } - defer func() { - if 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_entityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_event(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_event(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Event(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Event) - fc.Result = res - return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_event(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_event_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_feature(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_feature(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Feature(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Feature) - fc.Result = res - return ec.marshalNFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_feature(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Feature_id(ctx, field) - case "createdAt": - return ec.fieldContext_Feature_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Feature_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Feature_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Feature_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Feature_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Feature_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Feature_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Feature_ownerID(ctx, field) - case "name": - return ec.fieldContext_Feature_name(ctx, field) - case "displayName": - return ec.fieldContext_Feature_displayName(ctx, field) - case "enabled": - return ec.fieldContext_Feature_enabled(ctx, field) - case "description": - return ec.fieldContext_Feature_description(ctx, field) - case "metadata": - return ec.fieldContext_Feature_metadata(ctx, field) - case "owner": - return ec.fieldContext_Feature_owner(ctx, field) - case "plans": - return ec.fieldContext_Feature_plans(ctx, field) - case "events": - return ec.fieldContext_Feature_events(ctx, field) - case "features": - return ec.fieldContext_Feature_features(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type Feature", field.Name) - }, - } - defer func() { - if 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_feature_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_file(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_file(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().File(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.File) - fc.Result = res - return ec.marshalNFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_file(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) + it.DescriptionHasSuffix = data + case "descriptionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_file_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_group(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_group(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Group(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Group) - fc.Result = res - return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_group(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + it.DescriptionIsNil = data + case "descriptionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_group_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_groupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupMembership(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupMembership(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.GroupMembership) - fc.Result = res - return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_groupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) + 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 "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_groupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupSetting(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupSetting(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.GroupSetting) - fc.Result = res - return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_groupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_GroupSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_hush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_hush(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Hush(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Hush) - fc.Result = res - return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_hush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Hush_id(ctx, field) - case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Hush_name(ctx, field) - case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_hush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_integration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_integration(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Integration(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Integration) - fc.Result = res - return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_integration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "oauth2tokens": - return ec.fieldContext_Integration_oauth2tokens(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - case "webhooks": - return ec.fieldContext_Integration_webhooks(ctx, field) + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_integration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_invite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_invite(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Invite(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Invite) - fc.Result = res - return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_invite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Invite_id(ctx, field) - case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) - case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) - case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_invite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_oauthProvider(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_oauthProvider(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OauthProvider(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OauthProvider) - fc.Result = res - return ec.marshalNOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_oauthProvider(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OauthProvider_id(ctx, field) - case "createdAt": - return ec.fieldContext_OauthProvider_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OauthProvider_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OauthProvider_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OauthProvider_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OauthProvider_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OauthProvider_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OauthProvider_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OauthProvider_ownerID(ctx, field) - case "name": - return ec.fieldContext_OauthProvider_name(ctx, field) - case "clientID": - return ec.fieldContext_OauthProvider_clientID(ctx, field) - case "clientSecret": - return ec.fieldContext_OauthProvider_clientSecret(ctx, field) - case "redirectURL": - return ec.fieldContext_OauthProvider_redirectURL(ctx, field) - case "scopes": - return ec.fieldContext_OauthProvider_scopes(ctx, field) - case "authURL": - return ec.fieldContext_OauthProvider_authURL(ctx, field) - case "tokenURL": - return ec.fieldContext_OauthProvider_tokenURL(ctx, field) - case "authStyle": - return ec.fieldContext_OauthProvider_authStyle(ctx, field) - case "infoURL": - return ec.fieldContext_OauthProvider_infoURL(ctx, field) - case "owner": - return ec.fieldContext_OauthProvider_owner(ctx, field) + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OauthProvider", field.Name) - }, - } - defer func() { - if 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_oauthProvider_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_ohAuthTooToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_ohAuthTooToken(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OhAuthTooToken(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OhAuthTooToken) - fc.Result = res - return ec.marshalNOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_ohAuthTooToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OhAuthTooToken_id(ctx, field) - case "tags": - return ec.fieldContext_OhAuthTooToken_tags(ctx, field) - case "clientID": - return ec.fieldContext_OhAuthTooToken_clientID(ctx, field) - case "scopes": - return ec.fieldContext_OhAuthTooToken_scopes(ctx, field) - case "nonce": - return ec.fieldContext_OhAuthTooToken_nonce(ctx, field) - case "claimsUserID": - return ec.fieldContext_OhAuthTooToken_claimsUserID(ctx, field) - case "claimsUsername": - return ec.fieldContext_OhAuthTooToken_claimsUsername(ctx, field) - case "claimsEmail": - return ec.fieldContext_OhAuthTooToken_claimsEmail(ctx, field) - case "claimsEmailVerified": - return ec.fieldContext_OhAuthTooToken_claimsEmailVerified(ctx, field) - case "claimsGroups": - return ec.fieldContext_OhAuthTooToken_claimsGroups(ctx, field) - case "claimsPreferredUsername": - return ec.fieldContext_OhAuthTooToken_claimsPreferredUsername(ctx, field) - case "connectorID": - return ec.fieldContext_OhAuthTooToken_connectorID(ctx, field) - case "connectorData": - return ec.fieldContext_OhAuthTooToken_connectorData(ctx, field) - case "lastUsed": - return ec.fieldContext_OhAuthTooToken_lastUsed(ctx, field) - case "integration": - return ec.fieldContext_OhAuthTooToken_integration(ctx, field) - case "events": - return ec.fieldContext_OhAuthTooToken_events(ctx, field) + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooToken", field.Name) - }, - } - defer func() { - if 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_ohAuthTooToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_organization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organization(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Organization(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_organization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_organizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizationSetting(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrganizationSetting(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OrganizationSetting) - fc.Result = res - return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_organizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_orgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_orgMembership(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrgMembership(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.OrgMembership) - fc.Result = res - return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_orgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_orgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_personalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_personalAccessToken(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PersonalAccessToken(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.PersonalAccessToken) - fc.Result = res - return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_personalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_personalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_apiTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_apiTokenSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().APITokenSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*APITokenSearchResult) - fc.Result = res - return ec.marshalOAPITokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_apiTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "apiTokens": - return ec.fieldContext_APITokenSearchResult_apiTokens(ctx, field) + it.StatusContainsFold = data + case "controlObjectiveType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type APITokenSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_apiTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_contactSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_contactSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ContactSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*ContactSearchResult) - fc.Result = res - return ec.marshalOContactSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_contactSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "contacts": - return ec.fieldContext_ContactSearchResult_contacts(ctx, field) + it.ControlObjectiveType = data + case "controlObjectiveTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type ContactSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_contactSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_documentDataSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_documentDataSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().DocumentDataSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*DocumentDataSearchResult) - fc.Result = res - return ec.marshalODocumentDataSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_documentDataSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "documentData": - return ec.fieldContext_DocumentDataSearchResult_documentData(ctx, field) + it.ControlObjectiveTypeNEQ = data + case "controlObjectiveTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_documentDataSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitlementSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitlementSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntitlementSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*EntitlementSearchResult) - fc.Result = res - return ec.marshalOEntitlementSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitlementSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entitlements": - return ec.fieldContext_EntitlementSearchResult_entitlements(ctx, field) + it.ControlObjectiveTypeIn = data + case "controlObjectiveTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementSearchResult", field.Name) - }, - } - defer func() { - if 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_entitlementSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitlementPlanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitlementPlanSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntitlementPlanSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*EntitlementPlanSearchResult) - fc.Result = res - return ec.marshalOEntitlementPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitlementPlanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entitlementPlans": - return ec.fieldContext_EntitlementPlanSearchResult_entitlementPlans(ctx, field) + it.ControlObjectiveTypeNotIn = data + case "controlObjectiveTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanSearchResult", field.Name) - }, - } - defer func() { - if 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_entitlementPlanSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitlementPlanFeatureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitlementPlanFeatureSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntitlementPlanFeatureSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*EntitlementPlanFeatureSearchResult) - fc.Result = res - return ec.marshalOEntitlementPlanFeatureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitlementPlanFeatureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entitlementPlanFeatures": - return ec.fieldContext_EntitlementPlanFeatureSearchResult_entitlementPlanFeatures(ctx, field) + it.ControlObjectiveTypeGT = data + case "controlObjectiveTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitlementPlanFeatureSearchResult", field.Name) - }, - } - defer func() { - if 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_entitlementPlanFeatureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitySearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntitySearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*EntitySearchResult) - fc.Result = res - return ec.marshalOEntitySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitySearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entities": - return ec.fieldContext_EntitySearchResult_entities(ctx, field) + it.ControlObjectiveTypeGTE = data + case "controlObjectiveTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntitySearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entitySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_entityTypeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entityTypeSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntityTypeSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*EntityTypeSearchResult) - fc.Result = res - return ec.marshalOEntityTypeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_entityTypeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entityTypes": - return ec.fieldContext_EntityTypeSearchResult_entityTypes(ctx, field) + it.ControlObjectiveTypeLT = data + case "controlObjectiveTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entityTypeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_eventSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_eventSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EventSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*EventSearchResult) - fc.Result = res - return ec.marshalOEventSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_eventSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "events": - return ec.fieldContext_EventSearchResult_events(ctx, field) + it.ControlObjectiveTypeLTE = data + case "controlObjectiveTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type EventSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_eventSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_featureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_featureSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FeatureSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*FeatureSearchResult) - fc.Result = res - return ec.marshalOFeatureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_featureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "features": - return ec.fieldContext_FeatureSearchResult_features(ctx, field) + it.ControlObjectiveTypeContains = data + case "controlObjectiveTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type FeatureSearchResult", field.Name) - }, - } - defer func() { - if 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_featureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_fileSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_fileSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FileSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*FileSearchResult) - fc.Result = res - return ec.marshalOFileSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_fileSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "files": - return ec.fieldContext_FileSearchResult_files(ctx, field) + it.ControlObjectiveTypeHasPrefix = data + case "controlObjectiveTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type FileSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_fileSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_groupSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*GroupSearchResult) - fc.Result = res - return ec.marshalOGroupSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_groupSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groups": - return ec.fieldContext_GroupSearchResult_groups(ctx, field) + it.ControlObjectiveTypeHasSuffix = data + case "controlObjectiveTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type GroupSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_groupSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupSettingSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupSettingSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*GroupSettingSearchResult) - fc.Result = res - return ec.marshalOGroupSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_groupSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupSettings": - return ec.fieldContext_GroupSettingSearchResult_groupSettings(ctx, field) + it.ControlObjectiveTypeIsNil = data + case "controlObjectiveTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_integrationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_integrationSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().IntegrationSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*IntegrationSearchResult) - fc.Result = res - return ec.marshalOIntegrationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_integrationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "integrations": - return ec.fieldContext_IntegrationSearchResult_integrations(ctx, field) + it.ControlObjectiveTypeNotNil = data + case "controlObjectiveTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type IntegrationSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_integrationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_oauthProviderSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_oauthProviderSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OauthProviderSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*OauthProviderSearchResult) - fc.Result = res - return ec.marshalOOauthProviderSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_oauthProviderSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "oauthProviders": - return ec.fieldContext_OauthProviderSearchResult_oauthProviders(ctx, field) + it.ControlObjectiveTypeEqualFold = data + case "controlObjectiveTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OauthProviderSearchResult", field.Name) - }, - } - defer func() { - if 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_oauthProviderSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_ohAuthTooTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_ohAuthTooTokenSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OhAuthTooTokenSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*OhAuthTooTokenSearchResult) - fc.Result = res - return ec.marshalOOhAuthTooTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_ohAuthTooTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "ohAuthTooTokens": - return ec.fieldContext_OhAuthTooTokenSearchResult_ohAuthTooTokens(ctx, field) + it.ControlObjectiveTypeContainsFold = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OhAuthTooTokenSearchResult", field.Name) - }, - } - defer func() { - if 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_ohAuthTooTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_organizationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizationSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrganizationSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*OrganizationSearchResult) - fc.Result = res - return ec.marshalOOrganizationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_organizationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizations": - return ec.fieldContext_OrganizationSearchResult_organizations(ctx, field) + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_organizationSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizationSettingSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrganizationSettingSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*OrganizationSettingSearchResult) - fc.Result = res - return ec.marshalOOrganizationSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_organizationSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizationSettings": - return ec.fieldContext_OrganizationSettingSearchResult_organizationSettings(ctx, field) + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_personalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_personalAccessTokenSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PersonalAccessTokenSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*PersonalAccessTokenSearchResult) - fc.Result = res - return ec.marshalOPersonalAccessTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_personalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "personalAccessTokens": - return ec.fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(ctx, field) + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_personalAccessTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_subscriberSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_subscriberSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().SubscriberSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*SubscriberSearchResult) - fc.Result = res - return ec.marshalOSubscriberSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_subscriberSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subscribers": - return ec.fieldContext_SubscriberSearchResult_subscribers(ctx, field) + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type SubscriberSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subscriberSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_tFASettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_tFASettingSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TFASettingSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*TFASettingSearchResult) - fc.Result = res - return ec.marshalOTFASettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_tFASettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "tFASettings": - return ec.fieldContext_TFASettingSearchResult_tFASettings(ctx, field) + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TFASettingSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_tFASettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_templateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_templateSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TemplateSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*TemplateSearchResult) - fc.Result = res - return ec.marshalOTemplateSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_templateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "templates": - return ec.fieldContext_TemplateSearchResult_templates(ctx, field) + it.VersionHasSuffix = data + case "versionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TemplateSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_templateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_userSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*UserSearchResult) - fc.Result = res - return ec.marshalOUserSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_userSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "users": - return ec.fieldContext_UserSearchResult_users(ctx, field) + it.VersionIsNil = data + case "versionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_userSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_userSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userSettingSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserSettingSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*UserSettingSearchResult) - fc.Result = res - return ec.marshalOUserSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_userSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "userSettings": - return ec.fieldContext_UserSettingSearchResult_userSettings(ctx, field) + it.VersionNotNil = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserSettingSearchResult", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_userSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_webhookSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_webhookSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().WebhookSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*WebhookSearchResult) - fc.Result = res - return ec.marshalOWebhookSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookSearchResult(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_webhookSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "webhooks": - return ec.fieldContext_WebhookSearchResult_webhooks(ctx, field) + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type WebhookSearchResult", field.Name) - }, - } - defer func() { - if 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_webhookSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_search(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_search(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Search(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*SearchResultConnection) - fc.Result = res - return ec.marshalOSearchResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_search(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "page": - return ec.fieldContext_SearchResultConnection_page(ctx, field) - case "nodes": - return ec.fieldContext_SearchResultConnection_nodes(ctx, field) + it.VersionContainsFold = data + case "controlNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type SearchResultConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_search_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_adminSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminSearch(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminSearch(rctx, fc.Args["query"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*SearchResultConnection) - fc.Result = res - return ec.marshalOSearchResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultConnection(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_adminSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "page": - return ec.fieldContext_SearchResultConnection_page(ctx, field) - case "nodes": - return ec.fieldContext_SearchResultConnection_nodes(ctx, field) + it.ControlNumber = data + case "controlNumberNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type SearchResultConnection", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_subscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_subscriber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Subscriber(rctx, fc.Args["email"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Subscriber) - fc.Result = res - return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_subscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subscriber_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) + it.ControlNumberNEQ = data + case "controlNumberIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_template(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_template(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Template(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Template) - fc.Result = res - return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_template(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) + it.ControlNumberIn = data + case "controlNumberNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_template_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_tfaSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_tfaSetting(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TfaSetting(rctx, fc.Args["id"].(*string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.TFASetting) - fc.Result = res - return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_tfaSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_TFASetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_TFASetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TFASetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_TFASetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_TFASetting_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_TFASetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_TFASetting_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_TFASetting_tags(ctx, field) - case "tfaSecret": - return ec.fieldContext_TFASetting_tfaSecret(ctx, field) - case "verified": - return ec.fieldContext_TFASetting_verified(ctx, field) - case "recoveryCodes": - return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - case "totpAllowed": - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) - case "owner": - return ec.fieldContext_TFASetting_owner(ctx, field) + it.ControlNumberNotIn = data + case "controlNumberGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_tfaSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_user(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_user(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().User(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.User) - fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) + it.ControlNumberGT = data + case "controlNumberGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberGTE = data + case "controlNumberLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberLT = data + case "controlNumberLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberLTE = data + case "controlNumberContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberContains = data + case "controlNumberHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberHasPrefix = data + case "controlNumberHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberHasSuffix = data + case "controlNumberIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberIsNil = data + case "controlNumberNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberNotNil = data + case "controlNumberEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_user_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_userSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userSetting(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserSetting(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.UserSetting) - fc.Result = res - return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_userSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) + it.ControlNumberEqualFold = data + case "controlNumberContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_userSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query_webhook(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_webhook(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Webhook(rctx, fc.Args["id"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Webhook) - fc.Result = res - return ec.marshalNWebhook2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhook(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_webhook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Webhook_id(ctx, field) - case "createdAt": - return ec.fieldContext_Webhook_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Webhook_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Webhook_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Webhook_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Webhook_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Webhook_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Webhook_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Webhook_ownerID(ctx, field) - case "name": - return ec.fieldContext_Webhook_name(ctx, field) - case "description": - return ec.fieldContext_Webhook_description(ctx, field) - case "destinationURL": - return ec.fieldContext_Webhook_destinationURL(ctx, field) - case "enabled": - return ec.fieldContext_Webhook_enabled(ctx, field) - case "failures": - return ec.fieldContext_Webhook_failures(ctx, field) - case "lastError": - return ec.fieldContext_Webhook_lastError(ctx, field) - case "lastResponse": - return ec.fieldContext_Webhook_lastResponse(ctx, field) - case "owner": - return ec.fieldContext_Webhook_owner(ctx, field) - case "events": - return ec.fieldContext_Webhook_events(ctx, field) - case "integrations": - return ec.fieldContext_Webhook_integrations(ctx, field) + it.ControlNumberContainsFold = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) - }, - } - defer func() { - if 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_webhook_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query___type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.introspectType(fc.Args["name"].(string)) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + it.Family = data + case "familyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query___schema(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return ec.introspectSchema() - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Schema) - fc.Result = res - return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "description": - return ec.fieldContext___Schema_description(ctx, field) - case "types": - return ec.fieldContext___Schema_types(ctx, field) - case "queryType": - return ec.fieldContext___Schema_queryType(ctx, field) - case "mutationType": - return ec.fieldContext___Schema_mutationType(ctx, field) - case "subscriptionType": - return ec.fieldContext___Schema_subscriptionType(ctx, field) - case "directives": - return ec.fieldContext___Schema_directives(ctx, field) + it.FamilyNEQ = data + case "familyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SearchResultConnection_page(ctx context.Context, field graphql.CollectedField, obj *SearchResultConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SearchResultConnection_page(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Page, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SearchResultConnection_page(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SearchResultConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + it.FamilyIn = data + case "familyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SearchResultConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *SearchResultConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SearchResultConnection_nodes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Nodes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]SearchResult) - fc.Result = res - return ec.marshalNSearchResult2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SearchResultConnection_nodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SearchResultConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SearchResult does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_email(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_email(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Email, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_phoneNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PhoneNumber, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_verifiedEmail(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.VerifiedEmail, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_verifiedEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_verifiedPhone(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.VerifiedPhone, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + it.FamilyNotIn = data + case "familyGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyGT = data + case "familyGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyGTE = data + case "familyLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyLT = data + case "familyLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyLTE = data + case "familyContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyContains = data + case "familyHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyHasPrefix = data + case "familyHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyHasSuffix = data + case "familyIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FamilyIsNil = data + case "familyNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FamilyNotNil = data + case "familyEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyEqualFold = data + case "familyContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyContainsFold = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Class = data + case "classNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassNEQ = data + case "classIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ClassIn = data + case "classNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ClassNotIn = data + case "classGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassGT = data + case "classGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassGTE = data + case "classLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassLT = data + case "classLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassLTE = data + case "classContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassContains = data + case "classHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassHasPrefix = data + case "classHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassHasSuffix = data + case "classIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClassIsNil = data + case "classNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClassNotNil = data + case "classEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassEqualFold = data + case "classContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassContainsFold = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Source = data + case "sourceNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceNEQ = data + case "sourceIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SourceIn = data + case "sourceNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SourceNotIn = data + case "sourceGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceGT = data + case "sourceGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceGTE = data + case "sourceLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceLT = data + case "sourceLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceLTE = data + case "sourceContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceContains = data + case "sourceHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceHasPrefix = data + case "sourceHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceHasSuffix = data + case "sourceIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SourceIsNil = data + case "sourceNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SourceNotNil = data + case "sourceEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceEqualFold = data + case "sourceContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceContainsFold = data + case "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworks = data + case "mappedFrameworksNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksNEQ = data + case "mappedFrameworksIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksIn = data + case "mappedFrameworksNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksNotIn = data + case "mappedFrameworksGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksGT = data + case "mappedFrameworksGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksGTE = data + case "mappedFrameworksLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksLT = data + case "mappedFrameworksLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksLTE = data + case "mappedFrameworksContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksContains = data + case "mappedFrameworksHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksHasPrefix = data + case "mappedFrameworksHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksHasSuffix = data + case "mappedFrameworksIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksIsNil = data + case "mappedFrameworksNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksNotNil = data + case "mappedFrameworksEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksEqualFold = data + case "mappedFrameworksContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksContainsFold = data } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_verifiedPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _Subscriber_active(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_active(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Active, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_Subscriber_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, +func (ec *executionContext) unmarshalInputControlObjectiveWhereInput(ctx context.Context, obj interface{}) (generated.ControlObjectiveWhereInput, error) { + var it generated.ControlObjectiveWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _Subscriber_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_owner(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "controlObjectiveType", "controlObjectiveTypeNEQ", "controlObjectiveTypeIn", "controlObjectiveTypeNotIn", "controlObjectiveTypeGT", "controlObjectiveTypeGTE", "controlObjectiveTypeLT", "controlObjectiveTypeLTE", "controlObjectiveTypeContains", "controlObjectiveTypeHasPrefix", "controlObjectiveTypeHasSuffix", "controlObjectiveTypeIsNil", "controlObjectiveTypeNotNil", "controlObjectiveTypeEqualFold", "controlObjectiveTypeContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionIsNil", "versionNotNil", "versionEqualFold", "versionContainsFold", "controlNumber", "controlNumberNEQ", "controlNumberIn", "controlNumberNotIn", "controlNumberGT", "controlNumberGTE", "controlNumberLT", "controlNumberLTE", "controlNumberContains", "controlNumberHasPrefix", "controlNumberHasSuffix", "controlNumberIsNil", "controlNumberNotNil", "controlNumberEqualFold", "controlNumberContainsFold", "family", "familyNEQ", "familyIn", "familyNotIn", "familyGT", "familyGTE", "familyLT", "familyLTE", "familyContains", "familyHasPrefix", "familyHasSuffix", "familyIsNil", "familyNotNil", "familyEqualFold", "familyContainsFold", "class", "classNEQ", "classIn", "classNotIn", "classGT", "classGTE", "classLT", "classLTE", "classContains", "classHasPrefix", "classHasSuffix", "classIsNil", "classNotNil", "classEqualFold", "classContainsFold", "source", "sourceNEQ", "sourceIn", "sourceNotIn", "sourceGT", "sourceGTE", "sourceLT", "sourceLTE", "sourceContains", "sourceHasPrefix", "sourceHasSuffix", "sourceIsNil", "sourceNotNil", "sourceEqualFold", "sourceContainsFold", "mappedFrameworks", "mappedFrameworksNEQ", "mappedFrameworksIn", "mappedFrameworksNotIn", "mappedFrameworksGT", "mappedFrameworksGTE", "mappedFrameworksLT", "mappedFrameworksLTE", "mappedFrameworksContains", "mappedFrameworksHasPrefix", "mappedFrameworksHasSuffix", "mappedFrameworksIsNil", "mappedFrameworksNotNil", "mappedFrameworksEqualFold", "mappedFrameworksContainsFold", "hasPolicy", "hasPolicyWith", "hasControls", "hasControlsWith", "hasProcedures", "hasProceduresWith", "hasRisks", "hasRisksWith", "hasSubcontrols", "hasSubcontrolsWith", "hasStandard", "hasStandardWith", "hasNarratives", "hasNarrativesWith"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOControlObjectiveWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOControlObjectiveWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Subscriber_events(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_events(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Event) - fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subscriber_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subscriber", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubscriberBulkCreatePayload_subscribers(ctx context.Context, field graphql.CollectedField, obj *SubscriberBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberBulkCreatePayload_subscribers(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Subscribers, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Subscriber) - fc.Result = res - return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubscriberBulkCreatePayload_subscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberBulkCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subscriber_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubscriberConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.SubscriberEdge) - fc.Result = res - return ec.marshalOSubscriberEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubscriberConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_SubscriberEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_SubscriberEdge_cursor(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type SubscriberEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubscriberConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubscriberConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubscriberConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubscriberConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SubscriberCreatePayload_subscriber(ctx context.Context, field graphql.CollectedField, obj *SubscriberCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberCreatePayload_subscriber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Subscriber, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Subscriber) - fc.Result = res - return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubscriberCreatePayload_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subscriber_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) + 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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLTE = 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 "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContainsFold = data + case "controlObjectiveType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveType = data + case "controlObjectiveTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeNEQ = data + case "controlObjectiveTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeIn = data + case "controlObjectiveTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeNotIn = data + case "controlObjectiveTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeGT = data + case "controlObjectiveTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeGTE = data + case "controlObjectiveTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeLT = data + case "controlObjectiveTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeLTE = data + case "controlObjectiveTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeContains = data + case "controlObjectiveTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeHasPrefix = data + case "controlObjectiveTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeHasSuffix = data + case "controlObjectiveTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeIsNil = data + case "controlObjectiveTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeNotNil = data + case "controlObjectiveTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeEqualFold = data + case "controlObjectiveTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveTypeContainsFold = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasSuffix = data + case "versionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.VersionIsNil = data + case "versionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.VersionNotNil = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContainsFold = data + case "controlNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumber = data + case "controlNumberNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberNEQ = data + case "controlNumberIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberIn = data + case "controlNumberNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberNotIn = data + case "controlNumberGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberGT = data + case "controlNumberGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberGTE = data + case "controlNumberLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberLT = data + case "controlNumberLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberLTE = data + case "controlNumberContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberContains = data + case "controlNumberHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberHasPrefix = data + case "controlNumberHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberHasSuffix = data + case "controlNumberIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberIsNil = data + case "controlNumberNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberNotNil = data + case "controlNumberEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberEqualFold = data + case "controlNumberContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberContainsFold = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Family = data + case "familyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyNEQ = data + case "familyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FamilyIn = data + case "familyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FamilyNotIn = data + case "familyGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyGT = data + case "familyGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyGTE = data + case "familyLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyLT = data + case "familyLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyLTE = data + case "familyContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyContains = data + case "familyHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyHasPrefix = data + case "familyHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyHasSuffix = data + case "familyIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FamilyIsNil = data + case "familyNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FamilyNotNil = data + case "familyEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyEqualFold = data + case "familyContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyContainsFold = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Class = data + case "classNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassNEQ = data + case "classIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ClassIn = data + case "classNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ClassNotIn = data + case "classGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassGT = data + case "classGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassGTE = data + case "classLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassLT = data + case "classLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassLTE = data + case "classContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassContains = data + case "classHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassHasPrefix = data + case "classHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassHasSuffix = data + case "classIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClassIsNil = data + case "classNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClassNotNil = data + case "classEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassEqualFold = data + case "classContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassContainsFold = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Source = data + case "sourceNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceNEQ = data + case "sourceIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SourceIn = data + case "sourceNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SourceNotIn = data + case "sourceGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceGT = data + case "sourceGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceGTE = data + case "sourceLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceLT = data + case "sourceLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceLTE = data + case "sourceContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceContains = data + case "sourceHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceHasPrefix = data + case "sourceHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceHasSuffix = data + case "sourceIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SourceIsNil = data + case "sourceNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SourceNotNil = data + case "sourceEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceEqualFold = data + case "sourceContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubscriberDeletePayload_email(ctx context.Context, field graphql.CollectedField, obj *SubscriberDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberDeletePayload_email(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Email, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubscriberDeletePayload_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberDeletePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SubscriberEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Subscriber) - fc.Result = res - return ec.marshalOSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubscriberEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subscriber_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) + it.SourceContainsFold = data + case "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubscriberEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubscriberEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _SubscriberSearchResult_subscribers(ctx context.Context, field graphql.CollectedField, obj *SubscriberSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberSearchResult_subscribers(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Subscribers, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Subscriber) - fc.Result = res - return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubscriberSearchResult_subscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberSearchResult", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subscriber_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) + it.MappedFrameworks = data + case "mappedFrameworksNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubscriberUpdatePayload_subscriber(ctx context.Context, field graphql.CollectedField, obj *SubscriberUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberUpdatePayload_subscriber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Subscriber, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Subscriber) - fc.Result = res - return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubscriberUpdatePayload_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubscriberUpdatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subscriber_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) + it.MappedFrameworksNEQ = data + case "mappedFrameworksIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_tfaSecret(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_tfaSecret(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TfaSecret, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_tfaSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_verified(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_verified(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Verified, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_verified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_recoveryCodes(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.RecoveryCodes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_recoveryCodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_totpAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_totpAllowed(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotpAllowed, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_totpAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASetting_owner(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_owner(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.User) - fc.Result = res - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASetting_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASetting", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) + it.MappedFrameworksIn = data + case "mappedFrameworksNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.TFASettingEdge) - fc.Result = res - return ec.marshalOTFASettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASettingConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_TFASettingEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_TFASettingEdge_cursor(ctx, field) + it.MappedFrameworksNotIn = data + case "mappedFrameworksGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksGT = data + case "mappedFrameworksGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksGTE = data + case "mappedFrameworksLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksLT = data + case "mappedFrameworksLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksLTE = data + case "mappedFrameworksContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksContains = data + case "mappedFrameworksHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksHasPrefix = data + case "mappedFrameworksHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksHasSuffix = data + case "mappedFrameworksIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksIsNil = data + case "mappedFrameworksNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksNotNil = data + case "mappedFrameworksEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksEqualFold = data + case "mappedFrameworksContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksContainsFold = data + case "hasPolicy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPolicy")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasPolicy = data + case "hasPolicyWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPolicyWith")) + data, err := ec.unmarshalOInternalPolicyWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInputᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TFASettingEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASettingConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + it.HasPolicyWith = data + case "hasControls": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControls")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASettingConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASettingCreatePayload_tfaSetting(ctx context.Context, field graphql.CollectedField, obj *TFASettingCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingCreatePayload_tfaSetting(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TfaSetting, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.TFASetting) - fc.Result = res - return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASettingCreatePayload_tfaSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASettingCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_TFASetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_TFASetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TFASetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_TFASetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_TFASetting_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_TFASetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_TFASetting_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_TFASetting_tags(ctx, field) - case "tfaSecret": - return ec.fieldContext_TFASetting_tfaSecret(ctx, field) - case "verified": - return ec.fieldContext_TFASetting_verified(ctx, field) - case "recoveryCodes": - return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - case "totpAllowed": - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) - case "owner": - return ec.fieldContext_TFASetting_owner(ctx, field) + it.HasControls = data + case "hasControlsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlsWith")) + data, err := ec.unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.TFASetting) - fc.Result = res - return ec.marshalOTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASettingEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_TFASetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_TFASetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TFASetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_TFASetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_TFASetting_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_TFASetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_TFASetting_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_TFASetting_tags(ctx, field) - case "tfaSecret": - return ec.fieldContext_TFASetting_tfaSecret(ctx, field) - case "verified": - return ec.fieldContext_TFASetting_verified(ctx, field) - case "recoveryCodes": - return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - case "totpAllowed": - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) - case "owner": - return ec.fieldContext_TFASetting_owner(ctx, field) + it.HasControlsWith = data + case "hasProcedures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProcedures")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASettingEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASettingSearchResult_tFASettings(ctx context.Context, field graphql.CollectedField, obj *TFASettingSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingSearchResult_tFASettings(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TFASettings, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.TFASetting) - fc.Result = res - return ec.marshalOTFASetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASettingSearchResult_tFASettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASettingSearchResult", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_TFASetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_TFASetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TFASetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_TFASetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_TFASetting_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_TFASetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_TFASetting_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_TFASetting_tags(ctx, field) - case "tfaSecret": - return ec.fieldContext_TFASetting_tfaSecret(ctx, field) - case "verified": - return ec.fieldContext_TFASetting_verified(ctx, field) - case "recoveryCodes": - return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - case "totpAllowed": - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) - case "owner": - return ec.fieldContext_TFASetting_owner(ctx, field) + it.HasProcedures = data + case "hasProceduresWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProceduresWith")) + data, err := ec.unmarshalOProcedureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInputᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TFASettingUpdatePayload_tfaSetting(ctx context.Context, field graphql.CollectedField, obj *TFASettingUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingUpdatePayload_tfaSetting(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TfaSetting, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.TFASetting) - fc.Result = res - return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TFASettingUpdatePayload_tfaSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASettingUpdatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_TFASetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_TFASetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TFASetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_TFASetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_TFASetting_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_TFASetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_TFASetting_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_TFASetting_tags(ctx, field) - case "tfaSecret": - return ec.fieldContext_TFASetting_tfaSecret(ctx, field) - case "verified": - return ec.fieldContext_TFASetting_verified(ctx, field) - case "recoveryCodes": - return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - case "totpAllowed": - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) - case "owner": - return ec.fieldContext_TFASetting_owner(ctx, field) + it.HasProceduresWith = data + case "hasRisks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRisks")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_id(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_name(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_templateType(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_templateType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TemplateType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(enums.DocumentType) - fc.Result = res - return ec.marshalNTemplateDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_templateType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TemplateDocumentType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_description(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_jsonconfig(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Jsonconfig, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(customtypes.JSONObject) - fc.Result = res - return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type JSON does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_uischema(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_uischema(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Uischema, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null + it.HasRisks = data + case "hasRisksWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRisksWith")) + data, err := ec.unmarshalORiskWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasRisksWith = 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ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSubcontrolsWith = data + case "hasStandard": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStandard")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasStandard = data + case "hasStandardWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStandardWith")) + data, err := ec.unmarshalOStandardWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasStandardWith = data + case "hasNarratives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNarratives")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasNarratives = data + case "hasNarrativesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNarrativesWith")) + data, err := ec.unmarshalONarrativeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasNarrativesWith = data + } } - res := resTmp.(customtypes.JSONObject) - fc.Result = res - return ec.marshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_Template_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type JSON does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _Template_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_owner(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null +func (ec *executionContext) unmarshalInputControlWhereInput(ctx context.Context, obj interface{}) (generated.ControlWhereInput, error) { + var it generated.ControlWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_Template_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "controlType", "controlTypeNEQ", "controlTypeIn", "controlTypeNotIn", "controlTypeGT", "controlTypeGTE", "controlTypeLT", "controlTypeLTE", "controlTypeContains", "controlTypeHasPrefix", "controlTypeHasSuffix", "controlTypeIsNil", "controlTypeNotNil", "controlTypeEqualFold", "controlTypeContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionIsNil", "versionNotNil", "versionEqualFold", "versionContainsFold", "controlNumber", "controlNumberNEQ", "controlNumberIn", "controlNumberNotIn", "controlNumberGT", "controlNumberGTE", "controlNumberLT", "controlNumberLTE", "controlNumberContains", "controlNumberHasPrefix", "controlNumberHasSuffix", "controlNumberIsNil", "controlNumberNotNil", "controlNumberEqualFold", "controlNumberContainsFold", "family", "familyNEQ", "familyIn", "familyNotIn", "familyGT", "familyGTE", "familyLT", "familyLTE", "familyContains", "familyHasPrefix", "familyHasSuffix", "familyIsNil", "familyNotNil", "familyEqualFold", "familyContainsFold", "class", "classNEQ", "classIn", "classNotIn", "classGT", "classGTE", "classLT", "classLTE", "classContains", "classHasPrefix", "classHasSuffix", "classIsNil", "classNotNil", "classEqualFold", "classContainsFold", "source", "sourceNEQ", "sourceIn", "sourceNotIn", "sourceGT", "sourceGTE", "sourceLT", "sourceLTE", "sourceContains", "sourceHasPrefix", "sourceHasSuffix", "sourceIsNil", "sourceNotNil", "sourceEqualFold", "sourceContainsFold", "satisfies", "satisfiesNEQ", "satisfiesIn", "satisfiesNotIn", "satisfiesGT", "satisfiesGTE", "satisfiesLT", "satisfiesLTE", "satisfiesContains", "satisfiesHasPrefix", "satisfiesHasSuffix", "satisfiesIsNil", "satisfiesNotNil", "satisfiesEqualFold", "satisfiesContainsFold", "mappedFrameworks", "mappedFrameworksNEQ", "mappedFrameworksIn", "mappedFrameworksNotIn", "mappedFrameworksGT", "mappedFrameworksGTE", "mappedFrameworksLT", "mappedFrameworksLTE", "mappedFrameworksContains", "mappedFrameworksHasPrefix", "mappedFrameworksHasSuffix", "mappedFrameworksIsNil", "mappedFrameworksNotNil", "mappedFrameworksEqualFold", "mappedFrameworksContainsFold", "hasProcedures", "hasProceduresWith", "hasSubcontrols", "hasSubcontrolsWith", "hasControlobjectives", "hasControlobjectivesWith", "hasStandard", "hasStandardWith", "hasNarratives", "hasNarrativesWith", "hasRisks", "hasRisksWith", "hasActionplans", "hasActionplansWith"} + 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.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLTE = 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 "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_documents(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_documents(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Documents(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.DocumentData) - fc.Result = res - return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_documents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Template_files(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_files(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.File) - fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Template_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Template", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateBulkCreatePayload_templates(ctx context.Context, field graphql.CollectedField, obj *TemplateBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateBulkCreatePayload_templates(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Templates, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Template) - fc.Result = res - return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateBulkCreatePayload_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateBulkCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.TemplateEdge) - fc.Result = res - return ec.marshalOTemplateEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_TemplateEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_TemplateEdge_cursor(ctx, field) + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TemplateEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateCreatePayload_template(ctx context.Context, field graphql.CollectedField, obj *TemplateCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateCreatePayload_template(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Template, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Template) - fc.Result = res - return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateCreatePayload_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) + it.StatusContainsFold = data + case "controlType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *TemplateDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateDeletePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Template) - fc.Result = res - return ec.marshalOTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) + it.ControlType = data + case "controlTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeNEQ = data + case "controlTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeIn = data + case "controlTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeNotIn = data + case "controlTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeGT = data + case "controlTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeGTE = data + case "controlTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeLT = data + case "controlTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeLTE = data + case "controlTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeContains = data + case "controlTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeHasPrefix = data + case "controlTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeHasSuffix = data + case "controlTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeIsNil = data + case "controlTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeNotNil = data + case "controlTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeEqualFold = data + case "controlTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlTypeContainsFold = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasSuffix = data + case "versionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.VersionIsNil = data + case "versionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.VersionNotNil = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContainsFold = data + case "controlNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumber = data + case "controlNumberNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberNEQ = data + case "controlNumberIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberIn = data + case "controlNumberNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberNotIn = data + case "controlNumberGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberGT = data + case "controlNumberGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberGTE = data + case "controlNumberLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberLT = data + case "controlNumberLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberLTE = data + case "controlNumberContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberContains = data + case "controlNumberHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberHasPrefix = data + case "controlNumberHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberHasSuffix = data + case "controlNumberIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberIsNil = data + case "controlNumberNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberNotNil = data + case "controlNumberEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberEqualFold = data + case "controlNumberContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumberContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumberContainsFold = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Family = data + case "familyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyNEQ = data + case "familyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FamilyIn = data + case "familyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FamilyNotIn = data + case "familyGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyGT = data + case "familyGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyGTE = data + case "familyLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyLT = data + case "familyLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyLTE = data + case "familyContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyContains = data + case "familyHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyHasPrefix = data + case "familyHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyHasSuffix = data + case "familyIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FamilyIsNil = data + case "familyNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FamilyNotNil = data + case "familyEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyEqualFold = data + case "familyContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyContainsFold = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Class = data + case "classNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassNEQ = data + case "classIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ClassIn = data + case "classNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ClassNotIn = data + case "classGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassGT = data + case "classGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassGTE = data + case "classLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassLT = data + case "classLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassLTE = data + case "classContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassContains = data + case "classHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassHasPrefix = data + case "classHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassHasSuffix = data + case "classIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClassIsNil = data + case "classNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClassNotNil = data + case "classEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassEqualFold = data + case "classContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClassContainsFold = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Source = data + case "sourceNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceNEQ = data + case "sourceIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SourceIn = data + case "sourceNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SourceNotIn = data + case "sourceGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceGT = data + case "sourceGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceGTE = data + case "sourceLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceLT = data + case "sourceLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceLTE = data + case "sourceContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceContains = data + case "sourceHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceHasPrefix = data + case "sourceHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceHasSuffix = data + case "sourceIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SourceIsNil = data + case "sourceNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SourceNotNil = data + case "sourceEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceEqualFold = data + case "sourceContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SourceContainsFold = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_historyTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_ref(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_operation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(history.OpType) - fc.Result = res - return ec.marshalNTemplateHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TemplateHistoryOpType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_templateType(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_templateType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TemplateType, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(enums.DocumentType) - fc.Result = res - return ec.marshalNTemplateHistoryDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_templateType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TemplateHistoryDocumentType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_jsonconfig(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Jsonconfig, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(customtypes.JSONObject) - fc.Result = res - return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type JSON does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistory_uischema(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_uischema(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Uischema, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(customtypes.JSONObject) - fc.Result = res - return ec.marshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistory_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type JSON does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistoryConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.TemplateHistoryEdge) - fc.Result = res - return ec.marshalOTemplateHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_TemplateHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_TemplateHistoryEdge_cursor(ctx, field) + it.Satisfies = data + case "satisfiesNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TemplateHistoryEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistoryConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + it.SatisfiesNEQ = data + case "satisfiesIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistoryConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistoryEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.TemplateHistory) - fc.Result = res - return ec.marshalOTemplateHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_TemplateHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_TemplateHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_TemplateHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_TemplateHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_TemplateHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TemplateHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_TemplateHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_TemplateHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_TemplateHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_TemplateHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_TemplateHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_TemplateHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_TemplateHistory_name(ctx, field) - case "templateType": - return ec.fieldContext_TemplateHistory_templateType(ctx, field) - case "description": - return ec.fieldContext_TemplateHistory_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_TemplateHistory_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_TemplateHistory_uischema(ctx, field) + it.SatisfiesIn = data + case "satisfiesNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesNotIn = data + case "satisfiesGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesGT = data + case "satisfiesGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesGTE = data + case "satisfiesLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesLT = data + case "satisfiesLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesLTE = data + case "satisfiesContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesContains = data + case "satisfiesHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesHasPrefix = data + case "satisfiesHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesHasSuffix = data + case "satisfiesIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesIsNil = data + case "satisfiesNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type TemplateHistory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistoryEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateSearchResult_templates(ctx context.Context, field graphql.CollectedField, obj *TemplateSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateSearchResult_templates(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Templates, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Template) - fc.Result = res - return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateSearchResult_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateSearchResult", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) + it.SatisfiesNotNil = data + case "satisfiesEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateUpdatePayload_template(ctx context.Context, field graphql.CollectedField, obj *TemplateUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateUpdatePayload_template(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Template, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Template) - fc.Result = res - return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateUpdatePayload_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateUpdatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) + it.SatisfiesEqualFold = data + case "satisfiesContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_tags(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_email(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_email(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Email, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_firstName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_firstName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + it.SatisfiesContainsFold = data + case "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworks = data + case "mappedFrameworksNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksNEQ = data + case "mappedFrameworksIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksIn = data + case "mappedFrameworksNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksNotIn = data + case "mappedFrameworksGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksGT = data + case "mappedFrameworksGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksGTE = data + case "mappedFrameworksLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksLT = data + case "mappedFrameworksLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksLTE = data + case "mappedFrameworksContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksContains = data + case "mappedFrameworksHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksHasPrefix = data + case "mappedFrameworksHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksHasSuffix = data + case "mappedFrameworksIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksIsNil = data + case "mappedFrameworksNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksNotNil = data + case "mappedFrameworksEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksEqualFold = data + case "mappedFrameworksContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksContainsFold = data + case "hasProcedures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProcedures")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasProcedures = data + case "hasProceduresWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProceduresWith")) + data, err := ec.unmarshalOProcedureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasProceduresWith = 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ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSubcontrolsWith = data + case "hasControlobjectives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlobjectives")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasControlobjectives = data + case "hasControlobjectivesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlobjectivesWith")) + data, err := ec.unmarshalOControlObjectiveWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasControlobjectivesWith = data + case "hasStandard": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStandard")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasStandard = data + case "hasStandardWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasStandardWith")) + data, err := ec.unmarshalOStandardWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasStandardWith = data + case "hasNarratives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNarratives")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasNarratives = data + case "hasNarrativesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNarrativesWith")) + data, err := ec.unmarshalONarrativeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasNarrativesWith = data + case "hasRisks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRisks")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasRisks = data + case "hasRisksWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRisksWith")) + data, err := ec.unmarshalORiskWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasRisksWith = data + case "hasActionplans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasActionplans")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasActionplans = data + case "hasActionplansWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasActionplansWith")) + data, err := ec.unmarshalOActionPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasActionplansWith = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FirstName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _User_lastName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_lastName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_User_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputCreateAPITokenInput(ctx context.Context, obj interface{}) (generated.CreateAPITokenInput, error) { + var it generated.CreateAPITokenInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _User_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_displayName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"tags", "name", "expiresAt", "description", "scopes", "lastUsedAt", "ownerID"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + 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 "expiresAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAt = data + case "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 "scopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Scopes = data + case "lastUsedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.LastUsedAt = 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 } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _User_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_avatarRemoteURL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AvatarRemoteURL, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_User_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputCreateActionPlanInput(ctx context.Context, obj interface{}) (generated.CreateActionPlanInput, error) { + var it generated.CreateActionPlanInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _User_avatarLocalFile(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_avatarLocalFile(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"tags", "name", "description", "status", "dueDate", "priority", "source", "details", "standardIDs", "riskIDs", "controlIDs", "userIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AvatarLocalFile, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_User_avatarLocalFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _User_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_avatarLocalFileID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + switch k { + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Tags = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Description = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "dueDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DueDate = data + case "priority": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priority")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Priority = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Source = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Details = data + case "standardIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StandardIDs = data + case "riskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RiskIDs = data + case "controlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlIDs = data + case "userIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UserIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AvatarLocalFileID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOID2ᚖstring(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_User_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _User_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_avatarUpdatedAt(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateContactInput(ctx context.Context, obj interface{}) (generated.CreateContactInput, error) { + var it generated.CreateContactInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "fullName", "title", "company", "email", "phoneNumber", "address", "status", "ownerID", "entityIDs", "fileIDs"} + 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 "fullName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.FullName = data + case "title": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Title = data + case "company": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Company = 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 "phoneNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumber = data + case "address": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("address")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Address = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOContactUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + if err != nil { + return it, err + } + it.Status = 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 "entityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntityIDs = data + case "fileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FileIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AvatarUpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_User_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _User_lastSeen(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_lastSeen(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateControlInput(ctx context.Context, obj interface{}) (generated.CreateControlInput, error) { + var it generated.CreateControlInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "description", "status", "controlType", "version", "controlNumber", "family", "class", "source", "satisfies", "mappedFrameworks", "details", "procedureIDs", "subcontrolIDs", "controlobjectiveIDs", "standardIDs", "narrativeIDs", "riskIDs", "actionplanIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Tags = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Description = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "controlType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "controlNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumber = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Family = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Class = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Source = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Satisfies = data + case "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworks = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Details = data + case "procedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProcedureIDs = data + case "subcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubcontrolIDs = data + case "controlobjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlobjectiveIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlobjectiveIDs = data + case "standardIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StandardIDs = data + case "narrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("narrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NarrativeIDs = data + case "riskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RiskIDs = data + case "actionplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ActionplanIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastSeen, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_User_lastSeen(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _User_sub(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_sub(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateControlObjectiveInput(ctx context.Context, obj interface{}) (generated.CreateControlObjectiveInput, error) { + var it generated.CreateControlObjectiveInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "description", "status", "controlObjectiveType", "version", "controlNumber", "family", "class", "source", "mappedFrameworks", "details", "policyIDs", "controlIDs", "procedureIDs", "riskIDs", "subcontrolIDs", "standardIDs", "narrativeIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Tags = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Description = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "controlObjectiveType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "controlNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumber = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Family = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Class = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Source = data + case "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworks = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Details = data + case "policyIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PolicyIDs = data + case "controlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlIDs = data + case "procedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProcedureIDs = data + case "riskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RiskIDs = data + case "subcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubcontrolIDs = data + case "standardIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StandardIDs = data + case "narrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("narrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NarrativeIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Sub, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_User_sub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _User_authProvider(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_authProvider(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateDocumentDataInput(ctx context.Context, obj interface{}) (generated.CreateDocumentDataInput, error) { + var it generated.CreateDocumentDataInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "data", "ownerID", "templateID", "entityIDs", "fileIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AuthProvider, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + 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 "data": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("data")) + data, err := ec.unmarshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, v) + if err != nil { + return it, err + } + it.Data = 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 "templateID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.TemplateID = data + case "entityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntityIDs = data + case "fileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FileIDs = data } - return graphql.Null } - res := resTmp.(enums.AuthProvider) - fc.Result = res - return ec.marshalNUserAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_User_authProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserAuthProvider does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _User_role(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_role(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateEntitlementInput(ctx context.Context, obj interface{}) (generated.CreateEntitlementInput, error) { + var it generated.CreateEntitlementInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "externalCustomerID", "externalSubscriptionID", "expiresAt", "cancelled", "ownerID", "planID", "organizationID", "eventIDs"} + 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 "externalCustomerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerID = data + case "externalSubscriptionID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionID = data + case "expiresAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAt = data + case "cancelled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cancelled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Cancelled = 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 "planID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.PlanID = data + case "organizationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.OrganizationID = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Role, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(enums.Role) - fc.Result = res - return ec.marshalOUserRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_User_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserRole does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _User_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_personalAccessTokens(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessTokens(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateEntitlementPlanFeatureInput(ctx context.Context, obj interface{}) (generated.CreateEntitlementPlanFeatureInput, error) { + var it generated.CreateEntitlementPlanFeatureInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - res := resTmp.([]*generated.PersonalAccessToken) - fc.Result = res - return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_User_personalAccessTokens(_ 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) { - switch field.Name { - case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) + fieldsInOrder := [...]string{"tags", "metadata", "ownerID", "planID", "featureID", "eventIDs"} + 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 } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) - }, + it.Tags = 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 "planID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.PlanID = data + case "featureID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.FeatureID = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data + } } - return fc, nil + + return it, nil } -func (ec *executionContext) _User_tfaSettings(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_tfaSettings(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TfaSettings(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateEntitlementPlanInput(ctx context.Context, obj interface{}) (generated.CreateEntitlementPlanInput, error) { + var it generated.CreateEntitlementPlanInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - res := resTmp.([]*generated.TFASetting) - fc.Result = res - return ec.marshalOTFASetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingᚄ(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_User_tfaSettings(_ 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) { - switch field.Name { - case "id": - return ec.fieldContext_TFASetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_TFASetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TFASetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_TFASetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_TFASetting_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_TFASetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_TFASetting_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_TFASetting_tags(ctx, field) - case "tfaSecret": - return ec.fieldContext_TFASetting_tfaSecret(ctx, field) - case "verified": - return ec.fieldContext_TFASetting_verified(ctx, field) - case "recoveryCodes": - return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - case "totpAllowed": - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) - case "owner": - return ec.fieldContext_TFASetting_owner(ctx, field) + fieldsInOrder := [...]string{"tags", "displayName", "name", "description", "version", "metadata", "ownerID", "entitlementIDs", "baseFeatureIDs", "eventIDs"} + 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 } - return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) - }, + it.Tags = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = 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 "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Version = 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 "entitlementIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entitlementIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntitlementIDs = data + case "baseFeatureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("baseFeatureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BaseFeatureIDs = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data + } } - return fc, nil + + return it, nil } -func (ec *executionContext) _User_setting(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_setting(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateEntityInput(ctx context.Context, obj interface{}) (generated.CreateEntityInput, error) { + var it generated.CreateEntityInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "displayName", "description", "domains", "status", "ownerID", "contactIDs", "documentIDs", "noteIDs", "fileIDs", "entityTypeID", "note"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Setting(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + 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.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = 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 "domains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domains")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Domains = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "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 "contactIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ContactIDs = data + case "documentIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DocumentIDs = data + case "noteIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("noteIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NoteIDs = data + case "fileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FileIDs = data + case "entityTypeID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeID = data + case "note": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("note")) + data, err := ec.unmarshalOCreateNoteInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNoteInput(ctx, v) + if err != nil { + return it, err + } + if err = ec.resolvers.CreateEntityInput().Note(ctx, &it, data); err != nil { + return it, err + } } - return graphql.Null } - res := resTmp.(*generated.UserSetting) - fc.Result = res - return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_User_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "User", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _User_groups(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_groups(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Groups(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateEntityTypeInput(ctx context.Context, obj interface{}) (generated.CreateEntityTypeInput, error) { + var it generated.CreateEntityTypeInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - res := resTmp.([]*generated.Group) - fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_User_groups(_ 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) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + fieldsInOrder := [...]string{"tags", "name", "ownerID", "entityIDs"} + 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 } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) - }, + 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 "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 "entityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntityIDs = data + } } - return fc, nil + + return it, nil } -func (ec *executionContext) _User_organizations(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_organizations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Organizations(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateEventInput(ctx context.Context, obj interface{}) (generated.CreateEventInput, error) { + var it generated.CreateEventInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - res := resTmp.([]*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_User_organizations(_ 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) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + fieldsInOrder := [...]string{"tags", "eventID", "correlationID", "eventType", "metadata", "userIDs", "groupIDs", "integrationIDs", "organizationIDs", "inviteIDs", "featureIDs", "entitlementplanIDs", "personalAccessTokenIDs", "oauth2tokenIDs", "hushIDs", "entitlementIDs", "webhookIDs", "subscriberIDs", "fileIDs"} + 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 } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, + it.Tags = data + case "eventID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventID = data + case "correlationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationID = data + case "eventType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventType")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.EventType = 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 "userIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UserIDs = data + case "groupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.GroupIDs = data + case "integrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IntegrationIDs = data + case "organizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDs = data + case "inviteIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inviteIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.InviteIDs = data + case "featureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDs = data + case "entitlementplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entitlementplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntitlementplanIDs = data + case "personalAccessTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalAccessTokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PersonalAccessTokenIDs = data + case "oauth2tokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("oauth2tokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Oauth2tokenIDs = data + case "hushIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hushIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.HushIDs = data + case "entitlementIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entitlementIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntitlementIDs = data + case "webhookIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.WebhookIDs = data + case "subscriberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDs = data + case "fileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FileIDs = data + } } - return fc, nil + + return it, nil } -func (ec *executionContext) _User_files(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_files(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateFeatureInput(ctx context.Context, obj interface{}) (generated.CreateFeatureInput, error) { + var it generated.CreateFeatureInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - res := resTmp.([]*generated.File) - fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_User_files(_ 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) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) + fieldsInOrder := [...]string{"tags", "name", "displayName", "enabled", "description", "metadata", "ownerID", "planIDs", "eventIDs"} + 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 } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, + 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 "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Enabled = 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 "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 "planIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PlanIDs = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data + } } - return fc, nil + + return it, nil } -func (ec *executionContext) _User_file(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_file(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateFileInput(ctx context.Context, obj interface{}) (generated.CreateFileInput, error) { + var it generated.CreateFileInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "providedFileName", "providedFileExtension", "providedFileSize", "persistedFileSize", "detectedMimeType", "md5Hash", "detectedContentType", "storeKey", "categoryType", "uri", "storageScheme", "storageVolume", "storagePath", "userIDs", "organizationIDs", "groupIDs", "contactIDs", "entityIDs", "usersettingIDs", "organizationsettingIDs", "templateIDs", "documentdatumIDs", "eventIDs"} + 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 "providedFileName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileName")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileName = data + case "providedFileExtension": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtension")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtension = data + case "providedFileSize": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSize")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileSize = data + case "persistedFileSize": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSize")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSize = data + case "detectedMimeType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeType = data + case "md5Hash": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5Hash")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Md5Hash = data + case "detectedContentType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentType")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.DetectedContentType = data + case "storeKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKey")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StoreKey = data + case "categoryType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CategoryType = data + case "uri": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uri")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.URI = data + case "storageScheme": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageScheme")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StorageScheme = data + case "storageVolume": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolume")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StorageVolume = data + case "storagePath": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePath")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StoragePath = data + case "userIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UserIDs = data + case "organizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDs = data + case "groupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.GroupIDs = data + case "contactIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ContactIDs = data + case "entityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntityIDs = data + case "usersettingIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("usersettingIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UsersettingIDs = data + case "organizationsettingIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationsettingIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OrganizationsettingIDs = data + case "templateIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDs = data + case "documentdatumIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentdatumIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DocumentdatumIDs = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.File(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(*generated.File) - fc.Result = res - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, field.Selections, res) + + return it, nil } -func (ec *executionContext) fieldContext_User_file(_ 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) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) +func (ec *executionContext) unmarshalInputCreateGroupInput(ctx context.Context, obj interface{}) (generated.CreateGroupInput, error) { + var it generated.CreateGroupInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "name", "description", "gravatarLogoURL", "logoURL", "displayName", "ownerID", "settingID", "userIDs", "eventIDs", "integrationIDs", "fileIDs", "createGroupSettings"} + 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 } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, + 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 "gravatarLogoURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gravatarLogoURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GravatarLogoURL = data + case "logoURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.LogoURL = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = 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 "settingID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.SettingID = data + case "userIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UserIDs = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data + case "integrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IntegrationIDs = data + case "fileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FileIDs = data + case "createGroupSettings": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createGroupSettings")) + data, err := ec.unmarshalOCreateGroupSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx, v) + if err != nil { + return it, err + } + if err = ec.resolvers.CreateGroupInput().CreateGroupSettings(ctx, &it, data); err != nil { + return it, err + } + } } - return fc, nil + + return it, nil } -func (ec *executionContext) _User_events(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_events(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateGroupMembershipInput(ctx context.Context, obj interface{}) (generated.CreateGroupMembershipInput, error) { + var it generated.CreateGroupMembershipInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"role", "groupID", "userID", "eventIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOGroupMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + if err != nil { + return it, err + } + it.Role = data + case "groupID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.GroupID = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.UserID = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.([]*generated.Event) - fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + + return it, nil } -func (ec *executionContext) fieldContext_User_events(_ 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) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) +func (ec *executionContext) unmarshalInputCreateGroupSettingInput(ctx context.Context, obj interface{}) (generated.CreateGroupSettingInput, error) { + var it generated.CreateGroupSettingInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "visibility", "joinPolicy", "syncToSlack", "syncToGithub", "groupID"} + 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 } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) - }, + it.Tags = data + case "visibility": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibility")) + data, err := ec.unmarshalOGroupSettingVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, v) + if err != nil { + return it, err + } + it.Visibility = data + case "joinPolicy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicy")) + data, err := ec.unmarshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, v) + if err != nil { + return it, err + } + it.JoinPolicy = data + case "syncToSlack": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlack")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.SyncToSlack = data + case "syncToGithub": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithub")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.SyncToGithub = 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 + } } - return fc, nil + + return it, nil } -func (ec *executionContext) _User_groupMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_groupMemberships(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateHushInput(ctx context.Context, obj interface{}) (generated.CreateHushInput, error) { + var it generated.CreateHushInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"name", "description", "kind", "secretName", "secretValue", "integrationIDs", "organizationIDs", "eventIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + 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 "kind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Kind = data + case "secretName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretName = data + case "secretValue": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretValue")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretValue = data + case "integrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IntegrationIDs = data + case "organizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDs = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GroupMemberships(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.([]*generated.GroupMembership) - fc.Result = res - return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) + + return it, nil } -func (ec *executionContext) fieldContext_User_groupMemberships(_ 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) { - switch field.Name { - case "id": - return ec.fieldContext_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) +func (ec *executionContext) unmarshalInputCreateIntegrationInput(ctx context.Context, obj interface{}) (generated.CreateIntegrationInput, error) { + var it generated.CreateIntegrationInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "name", "description", "kind", "ownerID", "secretIDs", "oauth2tokenIDs", "eventIDs", "webhookIDs"} + 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 } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) - }, + 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 "kind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Kind = 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 "secretIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SecretIDs = data + case "oauth2tokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("oauth2tokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Oauth2tokenIDs = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data + case "webhookIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.WebhookIDs = data + } } - return fc, nil + + return it, nil } -func (ec *executionContext) _User_orgMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_orgMemberships(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateInternalPolicyInput(ctx context.Context, obj interface{}) (generated.CreateInternalPolicyInput, error) { + var it generated.CreateInternalPolicyInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "description", "status", "policyType", "version", "purposeAndScope", "background", "details", "controlobjectiveIDs", "controlIDs", "procedureIDs", "narrativeIDs"} + 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.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Description = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "policyType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PolicyType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "purposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScope")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScope = data + case "background": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("background")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Background = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Details = data + case "controlobjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlobjectiveIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlobjectiveIDs = data + case "controlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlIDs = data + case "procedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProcedureIDs = data + case "narrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("narrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NarrativeIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OrgMemberships(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.([]*generated.OrgMembership) - fc.Result = res - return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) + + return it, nil } -func (ec *executionContext) fieldContext_User_orgMemberships(_ 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) { - switch field.Name { - case "id": - return ec.fieldContext_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) +func (ec *executionContext) unmarshalInputCreateInviteInput(ctx context.Context, obj interface{}) (generated.CreateInviteInput, error) { + var it generated.CreateInviteInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"expires", "recipient", "status", "role", "sendAttempts", "requestorID", "ownerID", "eventIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "expires": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expires")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) - }, + it.Expires = data + case "recipient": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipient")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Recipient = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOInviteInviteStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOInviteRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + if err != nil { + return it, err + } + it.Role = data + case "sendAttempts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttempts")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.SendAttempts = data + case "requestorID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RequestorID = 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 "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data + } } - return fc, nil + + return it, nil } -func (ec *executionContext) _UserBulkCreatePayload_users(ctx context.Context, field graphql.CollectedField, obj *UserBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserBulkCreatePayload_users(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateNarrativeInput(ctx context.Context, obj interface{}) (generated.CreateNarrativeInput, error) { + var it generated.CreateNarrativeInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "description", "satisfies", "details", "policyIDs", "controlIDs", "procedureIDs", "controlobjectiveIDs"} + 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 "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Satisfies = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Details = data + case "policyIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PolicyIDs = data + case "controlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlIDs = data + case "procedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProcedureIDs = data + case "controlobjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlobjectiveIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlobjectiveIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Users, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.([]*generated.User) - fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) + + return it, nil } -func (ec *executionContext) fieldContext_UserBulkCreatePayload_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserBulkCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) +func (ec *executionContext) unmarshalInputCreateNoteInput(ctx context.Context, obj interface{}) (generated.CreateNoteInput, error) { + var it generated.CreateNoteInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "text", "ownerID", "entityID", "subcontrolIDs"} + 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 } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, + it.Tags = data + case "text": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Text = 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 "entityID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityID = data + case "subcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubcontrolIDs = data + } } - return fc, nil + + return it, nil } -func (ec *executionContext) _UserConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserConnection_edges(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateOauthProviderInput(ctx context.Context, obj interface{}) (generated.CreateOauthProviderInput, error) { + var it generated.CreateOauthProviderInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "clientID", "clientSecret", "redirectURL", "scopes", "authURL", "tokenURL", "authStyle", "infoURL", "ownerID"} + 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 "clientID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.ClientID = data + case "clientSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.ClientSecret = data + case "redirectURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURL")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.RedirectURL = data + case "scopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Scopes = data + case "authURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURL")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.AuthURL = data + case "tokenURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURL")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.TokenURL = data + case "authStyle": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyle")) + data, err := ec.unmarshalNUint2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + if err != nil { + return it, err + } + it.AuthStyle = data + case "infoURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURL")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.InfoURL = 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 } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.([]*generated.UserEdge) - fc.Result = res - return ec.marshalOUserEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserEdge(ctx, field.Selections, res) + + return it, nil } -func (ec *executionContext) fieldContext_UserConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_UserEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_UserEdge_cursor(ctx, field) +func (ec *executionContext) unmarshalInputCreateOhAuthTooTokenInput(ctx context.Context, obj interface{}) (generated.CreateOhAuthTooTokenInput, error) { + var it generated.CreateOhAuthTooTokenInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "clientID", "scopes", "nonce", "claimsUserID", "claimsUsername", "claimsEmail", "claimsEmailVerified", "claimsGroups", "claimsPreferredUsername", "connectorID", "connectorData", "lastUsed", "integrationIDs", "eventIDs"} + 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 "clientID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.ClientID = data + case "scopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Scopes = data + case "nonce": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonce")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Nonce = data + case "claimsUserID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserID")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.ClaimsUserID = data + case "claimsUsername": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsername")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.ClaimsUsername = data + case "claimsEmail": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmail")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.ClaimsEmail = data + case "claimsEmailVerified": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailVerified")) + data, err := ec.unmarshalNBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClaimsEmailVerified = data + case "claimsGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsGroups")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ClaimsGroups = data + case "claimsPreferredUsername": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsername")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.ClaimsPreferredUsername = data + case "connectorID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorID")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + it.ConnectorID = data + case "connectorData": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorData")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ConnectorData = data + case "lastUsed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsed")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.LastUsed = data + case "integrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IntegrationIDs = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data } - return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateOrgMembershipInput(ctx context.Context, obj interface{}) (generated.CreateOrgMembershipInput, error) { + var it generated.CreateOrgMembershipInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"role", "organizationID", "userID", "eventIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + switch k { + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOOrgMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + if err != nil { + return it, err + } + it.Role = data + case "organizationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.OrganizationID = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.UserID = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data } - return graphql.Null } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserCreatePayload_user(ctx context.Context, field graphql.CollectedField, obj *UserCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserCreatePayload_user(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Context, obj interface{}) (generated.CreateOrganizationInput, error) { + var it generated.CreateOrganizationInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "displayName", "description", "personalOrg", "avatarRemoteURL", "dedicatedDb", "parentID", "groupIDs", "templateIDs", "integrationIDs", "settingID", "documentdatumIDs", "entitlementIDs", "organizationEntitlementIDs", "personalAccessTokenIDs", "apiTokenIDs", "oauthproviderIDs", "userIDs", "inviteIDs", "subscriberIDs", "webhookIDs", "eventIDs", "secretIDs", "featureIDs", "fileIDs", "entitlementplanIDs", "entityIDs", "entitytypeIDs", "contactIDs", "noteIDs", "createOrgSettings"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.User, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + 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 "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = 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 "personalOrg": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrg")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.PersonalOrg = data + case "avatarRemoteURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURL = data + case "dedicatedDb": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dedicatedDb")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.DedicatedDb = data + case "parentID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ParentID = data + case "groupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.GroupIDs = data + case "templateIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDs = data + case "integrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IntegrationIDs = data + case "settingID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SettingID = data + case "documentdatumIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentdatumIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DocumentdatumIDs = data + case "entitlementIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entitlementIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntitlementIDs = data + case "organizationEntitlementIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationEntitlementIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OrganizationEntitlementIDs = data + case "personalAccessTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalAccessTokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PersonalAccessTokenIDs = data + case "apiTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiTokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.APITokenIDs = data + case "oauthproviderIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("oauthproviderIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OauthproviderIDs = data + case "userIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UserIDs = data + case "inviteIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inviteIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.InviteIDs = data + case "subscriberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDs = data + case "webhookIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.WebhookIDs = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data + case "secretIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SecretIDs = data + case "featureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDs = data + case "fileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FileIDs = data + case "entitlementplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entitlementplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntitlementplanIDs = data + case "entityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntityIDs = data + case "entitytypeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entitytypeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntitytypeIDs = data + case "contactIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ContactIDs = data + case "noteIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("noteIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NoteIDs = data + case "createOrgSettings": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createOrgSettings")) + data, err := ec.unmarshalOCreateOrganizationSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx, v) + if err != nil { + return it, err + } + if err = ec.resolvers.CreateOrganizationInput().CreateOrgSettings(ctx, &it, data); err != nil { + return it, err + } } - return graphql.Null } - res := resTmp.(*generated.User) - fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserCreatePayload_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *UserDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateOrganizationSettingInput(ctx context.Context, obj interface{}) (generated.CreateOrganizationSettingInput, error) { + var it generated.CreateOrganizationSettingInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "domains", "billingContact", "billingEmail", "billingPhone", "billingAddress", "taxIdentifier", "geoLocation", "organizationID", "fileIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + 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 "domains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domains")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Domains = data + case "billingContact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContact")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingContact = data + case "billingEmail": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmail")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingEmail = data + case "billingPhone": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhone")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingPhone = data + case "billingAddress": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddress")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingAddress = data + case "taxIdentifier": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifier")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TaxIdentifier = data + case "geoLocation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocation")) + data, err := ec.unmarshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, v) + if err != nil { + return it, err + } + it.GeoLocation = data + case "organizationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationID = data + case "fileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FileIDs = data } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserDeletePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _UserEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.User) - fc.Result = res - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_UserEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, +func (ec *executionContext) unmarshalInputCreatePersonalAccessTokenInput(ctx context.Context, obj interface{}) (generated.CreatePersonalAccessTokenInput, error) { + var it generated.CreatePersonalAccessTokenInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _UserEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"tags", "name", "expiresAt", "description", "scopes", "lastUsedAt", "ownerID", "organizationIDs", "eventIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + 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 "expiresAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAt = data + case "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 "scopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Scopes = data + case "lastUsedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.LastUsedAt = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "organizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDs = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data } - return graphql.Null } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_id(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateProcedureInput(ctx context.Context, obj interface{}) (generated.CreateProcedureInput, error) { + var it generated.CreateProcedureInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "description", "status", "procedureType", "version", "purposeAndScope", "background", "satisfies", "details", "controlIDs", "internalpolicyIDs", "narrativeIDs", "riskIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + switch k { + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Tags = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Description = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "procedureType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "purposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScope")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScope = data + case "background": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("background")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Background = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Satisfies = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Details = data + case "controlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlIDs = data + case "internalpolicyIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("internalpolicyIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.InternalpolicyIDs = data + case "narrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("narrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NarrativeIDs = data + case "riskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RiskIDs = data } - return graphql.Null } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_historyTime(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateRiskInput(ctx context.Context, obj interface{}) (generated.CreateRiskInput, error) { + var it generated.CreateRiskInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "description", "status", "riskType", "businessCosts", "impact", "likelihood", "mitigation", "satisfies", "details", "controlIDs", "procedureIDs", "actionplanIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + switch k { + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Tags = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Description = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "riskType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RiskType = data + case "businessCosts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCosts")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCosts = data + case "impact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impact")) + data, err := ec.unmarshalORiskRiskImpact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, v) + if err != nil { + return it, err + } + it.Impact = data + case "likelihood": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihood")) + data, err := ec.unmarshalORiskRiskLikelihood2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, v) + if err != nil { + return it, err + } + it.Likelihood = data + case "mitigation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigation")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Mitigation = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Satisfies = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Details = data + case "controlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlIDs = data + case "procedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProcedureIDs = data + case "actionplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ActionplanIDs = data } - return graphql.Null } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_ref(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateStandardInput(ctx context.Context, obj interface{}) (generated.CreateStandardInput, error) { + var it generated.CreateStandardInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "description", "family", "status", "standardType", "version", "purposeAndScope", "background", "satisfies", "details", "controlobjectiveIDs", "controlIDs", "procedureIDs", "actionplanIDs"} + 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 "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Family = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "standardType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StandardType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "purposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScope")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScope = data + case "background": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("background")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Background = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Satisfies = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Details = data + case "controlobjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlobjectiveIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlobjectiveIDs = data + case "controlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlIDs = data + case "procedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProcedureIDs = data + case "actionplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ActionplanIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_operation(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateSubcontrolInput(ctx context.Context, obj interface{}) (generated.CreateSubcontrolInput, error) { + var it generated.CreateSubcontrolInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "description", "status", "subcontrolType", "version", "subcontrolNumber", "family", "class", "source", "mappedFrameworks", "implementationEvidence", "implementationStatus", "implementationDate", "implementationVerification", "implementationVerificationDate", "details", "controlIDs", "userIDs", "notesID"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + switch k { + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Tags = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Description = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "subcontrolType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubcontrolType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "subcontrolNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubcontrolNumber = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Family = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Class = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Source = data + case "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworks = data + case "implementationEvidence": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidence")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ImplementationEvidence = data + case "implementationStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatus")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ImplementationStatus = data + case "implementationDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDate")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ImplementationDate = data + case "implementationVerification": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerification")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ImplementationVerification = data + case "implementationVerificationDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDate")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ImplementationVerificationDate = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Details = data + case "controlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlIDs = data + case "userIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UserIDs = data + case "notesID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("notesID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NotesID = data } - return graphql.Null } - res := resTmp.(history.OpType) - fc.Result = res - return ec.marshalNUserHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserHistoryOpType does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_createdAt(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateSubscriberInput(ctx context.Context, obj interface{}) (generated.CreateSubscriberInput, error) { + var it generated.CreateSubscriberInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "email", "phoneNumber", "ownerID", "eventIDs"} + 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 "phoneNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumber = 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 "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_updatedAt(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateTFASettingInput(ctx context.Context, obj interface{}) (generated.CreateTFASettingInput, error) { + var it generated.CreateTFASettingInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "totpAllowed", "ownerID"} + 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 "totpAllowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totpAllowed")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.TotpAllowed = 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 } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateTemplateInput(ctx context.Context, obj interface{}) (generated.CreateTemplateInput, error) { + var it generated.CreateTemplateInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "templateType", "description", "jsonconfig", "uischema", "ownerID", "documentIDs", "fileIDs"} + 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 "templateType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateType")) + data, err := ec.unmarshalOTemplateDocumentType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, v) + if err != nil { + return it, err + } + it.TemplateType = 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 "jsonconfig": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jsonconfig")) + data, err := ec.unmarshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, v) + if err != nil { + return it, err + } + it.Jsonconfig = data + case "uischema": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uischema")) + data, err := ec.unmarshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, v) + if err != nil { + return it, err + } + it.Uischema = 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 "documentIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DocumentIDs = data + case "fileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FileIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_updatedBy(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, obj interface{}) (generated.CreateUserInput, error) { + var it generated.CreateUserInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "email", "firstName", "lastName", "displayName", "avatarRemoteURL", "avatarLocalFile", "avatarUpdatedAt", "lastSeen", "password", "sub", "authProvider", "role", "personalAccessTokenIDs", "tfaSettingIDs", "settingID", "emailVerificationTokenIDs", "passwordResetTokenIDs", "groupIDs", "organizationIDs", "webauthnIDs", "fileIDs", "fileID", "eventIDs", "actionplanIDs", "subcontrolIDs"} + 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 "firstName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FirstName = data + case "lastName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.LastName = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = data + case "avatarRemoteURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURL = data + case "avatarLocalFile": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFile")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarLocalFile = data + case "avatarUpdatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.AvatarUpdatedAt = data + case "lastSeen": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeen")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.LastSeen = data + case "password": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Password = data + case "sub": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sub")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Sub = data + case "authProvider": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProvider")) + data, err := ec.unmarshalOUserAuthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, v) + if err != nil { + return it, err + } + it.AuthProvider = data + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOUserRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + if err != nil { + return it, err + } + it.Role = data + case "personalAccessTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalAccessTokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PersonalAccessTokenIDs = data + case "tfaSettingIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSettingIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TfaSettingIDs = data + case "settingID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.SettingID = data + case "emailVerificationTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailVerificationTokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EmailVerificationTokenIDs = data + case "passwordResetTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("passwordResetTokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PasswordResetTokenIDs = data + case "groupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.GroupIDs = data + case "organizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDs = data + case "webauthnIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webauthnIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.WebauthnIDs = data + case "fileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FileIDs = data + case "fileID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FileID = data + case "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data + case "actionplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ActionplanIDs = data + case "subcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubcontrolIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateUserSettingInput(ctx context.Context, obj interface{}) (generated.CreateUserSettingInput, error) { + var it generated.CreateUserSettingInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "locked", "silencedAt", "suspendedAt", "status", "emailConfirmed", "isWebauthnAllowed", "isTfaEnabled", "userID", "defaultOrgID", "fileIDs"} + 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 "locked": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locked")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Locked = data + case "silencedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.SilencedAt = data + case "suspendedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.SuspendedAt = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOUserSettingUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "emailConfirmed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailConfirmed")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.EmailConfirmed = data + case "isWebauthnAllowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowed")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.IsWebauthnAllowed = data + case "isTfaEnabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.IsTfaEnabled = 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 "defaultOrgID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultOrgID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DefaultOrgID = data + case "fileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FileIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputCreateWebhookInput(ctx context.Context, obj interface{}) (generated.CreateWebhookInput, error) { + var it generated.CreateWebhookInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"tags", "name", "description", "destinationURL", "enabled", "failures", "lastError", "lastResponse", "ownerID", "eventIDs", "integrationIDs"} + 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 "destinationURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURL")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.DestinationURL = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Enabled = data + case "failures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failures")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.Failures = data + case "lastError": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastError")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.LastError = data + case "lastResponse": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponse")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.LastResponse = 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 "eventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDs = data + case "integrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IntegrationIDs = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _UserHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_UserHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputDocumentDataHistoryWhereInput(ctx context.Context, obj interface{}) (generated.DocumentDataHistoryWhereInput, error) { + var it generated.DocumentDataHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _UserHistory_email(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_email(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Email, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "templateID", "templateIDNEQ", "templateIDIn", "templateIDNotIn", "templateIDGT", "templateIDGTE", "templateIDLT", "templateIDLTE", "templateIDContains", "templateIDHasPrefix", "templateIDHasSuffix", "templateIDEqualFold", "templateIDContainsFold"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserHistory_firstName(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_firstName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalODocumentDataHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalODocumentDataHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalODocumentDataHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalODocumentDataHistoryOpType2ᚖ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.unmarshalODocumentDataHistoryOpType2ᚖ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.unmarshalODocumentDataHistoryOpType2ᚕ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.unmarshalODocumentDataHistoryOpType2ᚕ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 "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = 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 "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = 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 "templateID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateID = data + case "templateIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDNEQ = data + case "templateIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDIn = data + case "templateIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDNotIn = data + case "templateIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDGT = data + case "templateIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDGTE = data + case "templateIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDLT = data + case "templateIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDLTE = data + case "templateIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDContains = data + case "templateIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDHasPrefix = data + case "templateIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDHasSuffix = data + case "templateIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDEqualFold = data + case "templateIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDContainsFold = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.FirstName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistory_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _UserHistory_lastName(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_lastName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_UserHistory_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputDocumentDataWhereInput(ctx context.Context, obj interface{}) (generated.DocumentDataWhereInput, error) { + var it generated.DocumentDataWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _UserHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_displayName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "templateID", "templateIDNEQ", "templateIDIn", "templateIDNotIn", "templateIDGT", "templateIDGTE", "templateIDLT", "templateIDLTE", "templateIDContains", "templateIDHasPrefix", "templateIDHasSuffix", "templateIDEqualFold", "templateIDContainsFold", "hasOwner", "hasOwnerWith", "hasTemplate", "hasTemplateWith", "hasEntity", "hasEntityWith", "hasFiles", "hasFilesWith"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "ownerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNEQ = data + case "ownerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIn = data + case "ownerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContains = data + case "ownerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasPrefix = data + case "ownerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasSuffix = data + case "ownerIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIsNil = data + case "ownerIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotNil = data + case "ownerIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDEqualFold = data + case "ownerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContainsFold = data + case "templateID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateID = data + case "templateIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDNEQ = data + case "templateIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDIn = data + case "templateIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDNotIn = data + case "templateIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDGT = data + case "templateIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDGTE = data + case "templateIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDLT = data + case "templateIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDLTE = data + case "templateIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDContains = data + case "templateIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDHasPrefix = data + case "templateIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDHasSuffix = data + case "templateIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDEqualFold = data + case "templateIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TemplateIDContainsFold = 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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOwnerWith = data + case "hasTemplate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplate")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasTemplate = data + case "hasTemplateWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplateWith")) + data, err := ec.unmarshalOTemplateWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTemplateWith = data + case "hasEntity": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntity")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEntity = data + case "hasEntityWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityWith")) + data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEntityWith = data + case "hasFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasFiles = data + case "hasFilesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasFilesWith = data } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _UserHistory_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_avatarRemoteURL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AvatarRemoteURL, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_UserHistory_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputEntitlementHistoryWhereInput(ctx context.Context, obj interface{}) (generated.EntitlementHistoryWhereInput, error) { + var it generated.EntitlementHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _UserHistory_avatarLocalFile(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_avatarLocalFile(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "planID", "planIDNEQ", "planIDIn", "planIDNotIn", "planIDGT", "planIDGTE", "planIDLT", "planIDLTE", "planIDContains", "planIDHasPrefix", "planIDHasSuffix", "planIDEqualFold", "planIDContainsFold", "organizationID", "organizationIDNEQ", "organizationIDIn", "organizationIDNotIn", "organizationIDGT", "organizationIDGTE", "organizationIDLT", "organizationIDLTE", "organizationIDContains", "organizationIDHasPrefix", "organizationIDHasSuffix", "organizationIDEqualFold", "organizationIDContainsFold", "externalCustomerID", "externalCustomerIDNEQ", "externalCustomerIDIn", "externalCustomerIDNotIn", "externalCustomerIDGT", "externalCustomerIDGTE", "externalCustomerIDLT", "externalCustomerIDLTE", "externalCustomerIDContains", "externalCustomerIDHasPrefix", "externalCustomerIDHasSuffix", "externalCustomerIDIsNil", "externalCustomerIDNotNil", "externalCustomerIDEqualFold", "externalCustomerIDContainsFold", "externalSubscriptionID", "externalSubscriptionIDNEQ", "externalSubscriptionIDIn", "externalSubscriptionIDNotIn", "externalSubscriptionIDGT", "externalSubscriptionIDGTE", "externalSubscriptionIDLT", "externalSubscriptionIDLTE", "externalSubscriptionIDContains", "externalSubscriptionIDHasPrefix", "externalSubscriptionIDHasSuffix", "externalSubscriptionIDIsNil", "externalSubscriptionIDNotNil", "externalSubscriptionIDEqualFold", "externalSubscriptionIDContainsFold", "expires", "expiresNEQ", "expiresAt", "expiresAtNEQ", "expiresAtIn", "expiresAtNotIn", "expiresAtGT", "expiresAtGTE", "expiresAtLT", "expiresAtLTE", "expiresAtIsNil", "expiresAtNotNil", "cancelled", "cancelledNEQ"} + 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.unmarshalOEntitlementHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOEntitlementHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOEntitlementHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOEntitlementHistoryOpType2ᚖ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.unmarshalOEntitlementHistoryOpType2ᚖ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.unmarshalOEntitlementHistoryOpType2ᚕ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.unmarshalOEntitlementHistoryOpType2ᚕ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 "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = 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 "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = 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 "planID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanID = data + case "planIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDNEQ = data + case "planIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PlanIDIn = data + case "planIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PlanIDNotIn = data + case "planIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDGT = data + case "planIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDGTE = data + case "planIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDLT = data + case "planIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDLTE = data + case "planIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDContains = data + case "planIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDHasPrefix = data + case "planIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDHasSuffix = data + case "planIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDEqualFold = data + case "planIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDContainsFold = data + case "organizationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationID = data + case "organizationIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDNEQ = data + case "organizationIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDIn = data + case "organizationIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDNotIn = data + case "organizationIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDGT = data + case "organizationIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDGTE = data + case "organizationIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDLT = data + case "organizationIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDLTE = data + case "organizationIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDContains = data + case "organizationIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDHasPrefix = data + case "organizationIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDHasSuffix = data + case "organizationIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDEqualFold = data + case "organizationIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDContainsFold = data + case "externalCustomerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerID = data + case "externalCustomerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDNEQ = data + case "externalCustomerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDIn = data + case "externalCustomerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDNotIn = data + case "externalCustomerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDGT = data + case "externalCustomerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDGTE = data + case "externalCustomerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDLT = data + case "externalCustomerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDLTE = data + case "externalCustomerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDContains = data + case "externalCustomerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDHasPrefix = data + case "externalCustomerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDHasSuffix = data + case "externalCustomerIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDIsNil = data + case "externalCustomerIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDNotNil = data + case "externalCustomerIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDEqualFold = data + case "externalCustomerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDContainsFold = data + case "externalSubscriptionID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionID = data + case "externalSubscriptionIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDNEQ = data + case "externalSubscriptionIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDIn = data + case "externalSubscriptionIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDNotIn = data + case "externalSubscriptionIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDGT = data + case "externalSubscriptionIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDGTE = data + case "externalSubscriptionIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDLT = data + case "externalSubscriptionIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDLTE = data + case "externalSubscriptionIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDContains = data + case "externalSubscriptionIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDHasPrefix = data + case "externalSubscriptionIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDHasSuffix = data + case "externalSubscriptionIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDIsNil = data + case "externalSubscriptionIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDNotNil = data + case "externalSubscriptionIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDEqualFold = data + case "externalSubscriptionIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDContainsFold = data + case "expires": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expires")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Expires = data + case "expiresNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.ExpiresNEQ = data + case "expiresAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAt = data + case "expiresAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtNEQ = data + case "expiresAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtIn = data + case "expiresAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtNotIn = data + case "expiresAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtGT = data + case "expiresAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtGTE = data + case "expiresAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtLT = data + case "expiresAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtLTE = data + case "expiresAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtIsNil = data + case "expiresAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtNotNil = data + case "cancelled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cancelled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Cancelled = data + case "cancelledNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cancelledNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.CancelledNEQ = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AvatarLocalFile, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistory_avatarLocalFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _UserHistory_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_avatarLocalFileID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AvatarLocalFileID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_UserHistory_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputEntitlementPlanFeatureHistoryWhereInput(ctx context.Context, obj interface{}) (generated.EntitlementPlanFeatureHistoryWhereInput, error) { + var it generated.EntitlementPlanFeatureHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _UserHistory_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_avatarUpdatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "planID", "planIDNEQ", "planIDIn", "planIDNotIn", "planIDGT", "planIDGTE", "planIDLT", "planIDLTE", "planIDContains", "planIDHasPrefix", "planIDHasSuffix", "planIDEqualFold", "planIDContainsFold", "featureID", "featureIDNEQ", "featureIDIn", "featureIDNotIn", "featureIDGT", "featureIDGTE", "featureIDLT", "featureIDLTE", "featureIDContains", "featureIDHasPrefix", "featureIDHasSuffix", "featureIDEqualFold", "featureIDContainsFold"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AvatarUpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistory_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserHistory_lastSeen(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_lastSeen(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOEntitlementPlanFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOEntitlementPlanFeatureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOEntitlementPlanFeatureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOEntitlementPlanFeatureHistoryOpType2ᚖ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.unmarshalOEntitlementPlanFeatureHistoryOpType2ᚖ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.unmarshalOEntitlementPlanFeatureHistoryOpType2ᚕ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.unmarshalOEntitlementPlanFeatureHistoryOpType2ᚕ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 "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = 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 "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = 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 "planID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanID = data + case "planIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDNEQ = data + case "planIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PlanIDIn = data + case "planIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PlanIDNotIn = data + case "planIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDGT = data + case "planIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDGTE = data + case "planIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDLT = data + case "planIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDLTE = data + case "planIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDContains = data + case "planIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDHasPrefix = data + case "planIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDHasSuffix = data + case "planIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDEqualFold = data + case "planIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDContainsFold = data + case "featureID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FeatureID = data + case "featureIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDNEQ = data + case "featureIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDIn = data + case "featureIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDNotIn = data + case "featureIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDGT = data + case "featureIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDGTE = data + case "featureIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDLT = data + case "featureIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDLTE = data + case "featureIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDContains = data + case "featureIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDHasPrefix = data + case "featureIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDHasSuffix = data + case "featureIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDEqualFold = data + case "featureIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FeatureIDContainsFold = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastSeen, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistory_lastSeen(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _UserHistory_sub(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_sub(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Sub, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_UserHistory_sub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputEntitlementPlanFeatureWhereInput(ctx context.Context, obj interface{}) (generated.EntitlementPlanFeatureWhereInput, error) { + var it generated.EntitlementPlanFeatureWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _UserHistory_authProvider(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_authProvider(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.AuthProvider, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data } - return graphql.Null - } - res := resTmp.(enums.AuthProvider) - fc.Result = res - return ec.marshalNUserHistoryAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistory_authProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserHistoryAuthProvider does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _UserHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_role(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Role, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(enums.Role) - fc.Result = res - return ec.marshalOUserHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_UserHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserHistoryRole does not have child fields") - }, +func (ec *executionContext) unmarshalInputEntitlementPlanHistoryWhereInput(ctx context.Context, obj interface{}) (generated.EntitlementPlanHistoryWhereInput, error) { + var it generated.EntitlementPlanHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _UserHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistoryConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameIsNil", "displayNameNotNil", "displayNameEqualFold", "displayNameContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionEqualFold", "versionContainsFold"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.UserHistoryEdge) - fc.Result = res - return ec.marshalOUserHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_UserHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_UserHistoryEdge_cursor(ctx, field) + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOEntitlementPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOEntitlementPlanHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOEntitlementPlanHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOEntitlementPlanHistoryOpType2ᚖ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.unmarshalOEntitlementPlanHistoryOpType2ᚖ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.unmarshalOEntitlementPlanHistoryOpType2ᚕ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.unmarshalOEntitlementPlanHistoryOpType2ᚕ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 "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserHistoryEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistoryConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistoryConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistoryEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.UserHistory) - fc.Result = res - return ec.marshalOUserHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_UserHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_UserHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_UserHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_UserHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_UserHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_UserHistory_tags(ctx, field) - case "email": - return ec.fieldContext_UserHistory_email(ctx, field) - case "firstName": - return ec.fieldContext_UserHistory_firstName(ctx, field) - case "lastName": - return ec.fieldContext_UserHistory_lastName(ctx, field) - case "displayName": - return ec.fieldContext_UserHistory_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_UserHistory_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_UserHistory_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_UserHistory_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_UserHistory_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_UserHistory_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_UserHistory_sub(ctx, field) - case "authProvider": - return ec.fieldContext_UserHistory_authProvider(ctx, field) - case "role": - return ec.fieldContext_UserHistory_role(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type UserHistory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistoryEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSearchResult_users(ctx context.Context, field graphql.CollectedField, obj *UserSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSearchResult_users(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Users, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = 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 "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = 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 "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = data + case "displayNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNEQ = data + case "displayNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameIn = data + case "displayNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNotIn = data + case "displayNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameGT = data + case "displayNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameGTE = data + case "displayNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameLT = data + case "displayNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameLTE = data + case "displayNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameContains = data + case "displayNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameHasPrefix = data + case "displayNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameHasSuffix = data + case "displayNameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameIsNil = data + case "displayNameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNotNil = data + case "displayNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameEqualFold = data + case "displayNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLTE = 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 "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasSuffix = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContainsFold = data + } } - res := resTmp.([]*generated.User) - fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) + + return it, nil } -func (ec *executionContext) fieldContext_UserSearchResult_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSearchResult", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) +func (ec *executionContext) unmarshalInputEntitlementPlanWhereInput(ctx context.Context, obj interface{}) (generated.EntitlementPlanWhereInput, error) { + var it generated.EntitlementPlanWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameIsNil", "displayNameNotNil", "displayNameEqualFold", "displayNameContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionEqualFold", "versionContainsFold", "hasOwner", "hasOwnerWith", "hasEntitlements", "hasEntitlementsWith", "hasBaseFeatures", "hasBaseFeaturesWith", "hasEvents", "hasEventsWith", "hasFeatures", "hasFeaturesWith"} + 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.unmarshalOEntitlementPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "ownerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNEQ = data + case "ownerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIn = data + case "ownerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContains = data + case "ownerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasPrefix = data + case "ownerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasSuffix = data + case "ownerIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIsNil = data + case "ownerIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotNil = data + case "ownerIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDEqualFold = data + case "ownerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContainsFold = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = data + case "displayNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNEQ = data + case "displayNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameIn = data + case "displayNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNotIn = data + case "displayNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameGT = data + case "displayNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameGTE = data + case "displayNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameLT = data + case "displayNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameLTE = data + case "displayNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameContains = data + case "displayNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameHasPrefix = data + case "displayNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameHasSuffix = data + case "displayNameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameIsNil = data + case "displayNameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNotNil = data + case "displayNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameEqualFold = data + case "displayNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "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 } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_userID(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_userID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_locked(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_locked(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Locked, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_locked(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_silencedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_silencedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SilencedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_silencedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_suspendedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_suspendedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SuspendedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_suspendedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_status(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(enums.UserStatus) - fc.Result = res - return ec.marshalNUserSettingUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserSettingUserStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_emailConfirmed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EmailConfirmed, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_emailConfirmed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_isWebauthnAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsWebauthnAllowed, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_isWebauthnAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_isTfaEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsTfaEnabled, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_isTfaEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_user(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_user(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.User(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.User) - fc.Result = res - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_defaultOrg(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_defaultOrg(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DefaultOrg(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_defaultOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + it.DescriptionNotIn = data + case "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSetting_files(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_files(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.File) - fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSetting_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSetting", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "usersetting": - return ec.fieldContext_File_usersetting(ctx, field) - case "organizationsetting": - return ec.fieldContext_File_organizationsetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentdata": - return ec.fieldContext_File_documentdata(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingBulkCreatePayload_userSettings(ctx context.Context, field graphql.CollectedField, obj *UserSettingBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingBulkCreatePayload_userSettings(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserSettings, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.UserSetting) - fc.Result = res - return ec.marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingBulkCreatePayload_userSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingBulkCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.UserSettingEdge) - fc.Result = res - return ec.marshalOUserSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_UserSettingEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_UserSettingEdge_cursor(ctx, field) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserSettingEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingCreatePayload_userSetting(ctx context.Context, field graphql.CollectedField, obj *UserSettingCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingCreatePayload_userSetting(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserSetting, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.UserSetting) - fc.Result = res - return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingCreatePayload_userSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.UserSetting) - fc.Result = res - return ec.marshalOUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) + it.DescriptionHasSuffix = data + case "descriptionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_historyTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_ref(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_operation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(history.OpType) - fc.Result = res - return ec.marshalNUserSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserSettingHistoryOpType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_userID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + 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 "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasSuffix = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContainsFold = 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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOwnerWith = data + case "hasEntitlements": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlements")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEntitlements = data + case "hasEntitlementsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementsWith")) + data, err := ec.unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEntitlementsWith = data + case "hasBaseFeatures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasBaseFeatures")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasBaseFeatures = data + case "hasBaseFeaturesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasBaseFeaturesWith")) + data, err := ec.unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasBaseFeaturesWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEventsWith = data + case "hasFeatures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeatures")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasFeatures = data + case "hasFeaturesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeaturesWith")) + data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasFeaturesWith = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _UserSettingHistory_locked(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_locked(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Locked, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_UserSettingHistory_locked(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, +func (ec *executionContext) unmarshalInputEntitlementWhereInput(ctx context.Context, obj interface{}) (generated.EntitlementWhereInput, error) { + var it generated.EntitlementWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _UserSettingHistory_silencedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_silencedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "planID", "planIDNEQ", "planIDIn", "planIDNotIn", "planIDGT", "planIDGTE", "planIDLT", "planIDLTE", "planIDContains", "planIDHasPrefix", "planIDHasSuffix", "planIDEqualFold", "planIDContainsFold", "organizationID", "organizationIDNEQ", "organizationIDIn", "organizationIDNotIn", "organizationIDGT", "organizationIDGTE", "organizationIDLT", "organizationIDLTE", "organizationIDContains", "organizationIDHasPrefix", "organizationIDHasSuffix", "organizationIDEqualFold", "organizationIDContainsFold", "externalCustomerID", "externalCustomerIDNEQ", "externalCustomerIDIn", "externalCustomerIDNotIn", "externalCustomerIDGT", "externalCustomerIDGTE", "externalCustomerIDLT", "externalCustomerIDLTE", "externalCustomerIDContains", "externalCustomerIDHasPrefix", "externalCustomerIDHasSuffix", "externalCustomerIDIsNil", "externalCustomerIDNotNil", "externalCustomerIDEqualFold", "externalCustomerIDContainsFold", "externalSubscriptionID", "externalSubscriptionIDNEQ", "externalSubscriptionIDIn", "externalSubscriptionIDNotIn", "externalSubscriptionIDGT", "externalSubscriptionIDGTE", "externalSubscriptionIDLT", "externalSubscriptionIDLTE", "externalSubscriptionIDContains", "externalSubscriptionIDHasPrefix", "externalSubscriptionIDHasSuffix", "externalSubscriptionIDIsNil", "externalSubscriptionIDNotNil", "externalSubscriptionIDEqualFold", "externalSubscriptionIDContainsFold", "expires", "expiresNEQ", "expiresAt", "expiresAtNEQ", "expiresAtIn", "expiresAtNotIn", "expiresAtGT", "expiresAtGTE", "expiresAtLT", "expiresAtLTE", "expiresAtIsNil", "expiresAtNotNil", "cancelled", "cancelledNEQ", "hasOwner", "hasOwnerWith", "hasPlan", "hasPlanWith", "hasOrganization", "hasOrganizationWith", "hasEvents", "hasEventsWith"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SilencedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_silencedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_suspendedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_suspendedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOEntitlementWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "ownerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNEQ = data + case "ownerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIn = data + case "ownerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContains = data + case "ownerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasPrefix = data + case "ownerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasSuffix = data + case "ownerIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIsNil = data + case "ownerIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotNil = data + case "ownerIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDEqualFold = data + case "ownerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContainsFold = data + case "planID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanID = data + case "planIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDNEQ = data + case "planIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PlanIDIn = data + case "planIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PlanIDNotIn = data + case "planIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDGT = data + case "planIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDGTE = data + case "planIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDLT = data + case "planIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDLTE = data + case "planIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDContains = data + case "planIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDHasPrefix = data + case "planIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDHasSuffix = data + case "planIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDEqualFold = data + case "planIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PlanIDContainsFold = data + case "organizationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationID = data + case "organizationIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDNEQ = data + case "organizationIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDIn = data + case "organizationIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDNotIn = data + case "organizationIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDGT = data + case "organizationIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDGTE = data + case "organizationIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDLT = data + case "organizationIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDLTE = data + case "organizationIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDContains = data + case "organizationIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDHasPrefix = data + case "organizationIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDHasSuffix = data + case "organizationIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDEqualFold = data + case "organizationIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDContainsFold = data + case "externalCustomerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerID = data + case "externalCustomerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDNEQ = data + case "externalCustomerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDIn = data + case "externalCustomerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDNotIn = data + case "externalCustomerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDGT = data + case "externalCustomerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDGTE = data + case "externalCustomerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDLT = data + case "externalCustomerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDLTE = data + case "externalCustomerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDContains = data + case "externalCustomerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDHasPrefix = data + case "externalCustomerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDHasSuffix = data + case "externalCustomerIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDIsNil = data + case "externalCustomerIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDNotNil = data + case "externalCustomerIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDEqualFold = data + case "externalCustomerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalCustomerIDContainsFold = data + case "externalSubscriptionID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionID = data + case "externalSubscriptionIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDNEQ = data + case "externalSubscriptionIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDIn = data + case "externalSubscriptionIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDNotIn = data + case "externalSubscriptionIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDGT = data + case "externalSubscriptionIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDGTE = data + case "externalSubscriptionIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDLT = data + case "externalSubscriptionIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDLTE = data + case "externalSubscriptionIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDContains = data + case "externalSubscriptionIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDHasPrefix = data + case "externalSubscriptionIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDHasSuffix = data + case "externalSubscriptionIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDIsNil = data + case "externalSubscriptionIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDNotNil = data + case "externalSubscriptionIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDEqualFold = data + case "externalSubscriptionIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ExternalSubscriptionIDContainsFold = data + case "expires": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expires")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Expires = data + case "expiresNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.ExpiresNEQ = data + case "expiresAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAt = data + case "expiresAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtNEQ = data + case "expiresAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtIn = data + case "expiresAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtNotIn = data + case "expiresAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtGT = data + case "expiresAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtGTE = data + case "expiresAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtLT = data + case "expiresAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtLTE = data + case "expiresAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtIsNil = data + case "expiresAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExpiresAtNotNil = data + case "cancelled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cancelled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Cancelled = data + case "cancelledNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cancelledNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.CancelledNEQ = 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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOwnerWith = data + case "hasPlan": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlan")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasPlan = data + case "hasPlanWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlanWith")) + data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasPlanWith = data + case "hasOrganization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganization")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOrganization = data + case "hasOrganizationWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOrganizationWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEventsWith = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SuspendedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserSettingHistory_suspendedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _UserSettingHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_status(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null +func (ec *executionContext) unmarshalInputEntityHistoryOrder(ctx context.Context, obj interface{}) (generated.EntityHistoryOrder, error) { + var it generated.EntityHistoryOrder + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - res := resTmp.(enums.UserStatus) - fc.Result = res - return ec.marshalNUserSettingHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_UserSettingHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserSettingHistoryUserStatus does not have child fields") - }, + if _, present := asMap["direction"]; !present { + asMap["direction"] = "ASC" } - return fc, nil -} -func (ec *executionContext) _UserSettingHistory_emailConfirmed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_emailConfirmed(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EmailConfirmed, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + fieldsInOrder := [...]string{"direction", "field"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_emailConfirmed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistory_isWebauthnAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_isWebauthnAllowed(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + 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.unmarshalNEntityHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryOrderField(ctx, v) + if err != nil { + return it, err + } + it.Field = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsWebauthnAllowed, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistory_isWebauthnAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _UserSettingHistory_isTfaEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_isTfaEnabled(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsTfaEnabled, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_UserSettingHistory_isTfaEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, +func (ec *executionContext) unmarshalInputEntityHistoryWhereInput(ctx context.Context, obj interface{}) (generated.EntityHistoryWhereInput, error) { + var it generated.EntityHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _UserSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistoryConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameIsNil", "nameNotNil", "nameEqualFold", "nameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameIsNil", "displayNameNotNil", "displayNameEqualFold", "displayNameContainsFold", "entityTypeID", "entityTypeIDNEQ", "entityTypeIDIn", "entityTypeIDNotIn", "entityTypeIDGT", "entityTypeIDGTE", "entityTypeIDLT", "entityTypeIDLTE", "entityTypeIDContains", "entityTypeIDHasPrefix", "entityTypeIDHasSuffix", "entityTypeIDIsNil", "entityTypeIDNotNil", "entityTypeIDEqualFold", "entityTypeIDContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.UserSettingHistoryEdge) - fc.Result = res - return ec.marshalOUserSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_UserSettingHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_UserSettingHistoryEdge_cursor(ctx, field) + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOEntityHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOEntityHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOEntityHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOEntityHistoryOpType2ᚖ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.unmarshalOEntityHistoryOpType2ᚖ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.unmarshalOEntityHistoryOpType2ᚕ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.unmarshalOEntityHistoryOpType2ᚕ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 "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserSettingHistoryEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistoryConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistoryConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistoryEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.UserSettingHistory) - fc.Result = res - return ec.marshalOUserSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserSettingHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_UserSettingHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_UserSettingHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_UserSettingHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_UserSettingHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSettingHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSettingHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSettingHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSettingHistory_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSettingHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSettingHistory_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSettingHistory_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSettingHistory_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSettingHistory_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSettingHistory_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSettingHistory_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSettingHistory_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSettingHistory_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSettingHistory_isTfaEnabled(ctx, field) + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserSettingHistory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistoryEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingSearchResult_userSettings(ctx context.Context, field graphql.CollectedField, obj *UserSettingSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingSearchResult_userSettings(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserSettings, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.UserSetting) - fc.Result = res - return ec.marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingSearchResult_userSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingSearchResult", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = 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 "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = 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 "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.NameIsNil = data + case "nameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.NameNotNil = 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 "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserSettingUpdatePayload_userSetting(ctx context.Context, field graphql.CollectedField, obj *UserSettingUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingUpdatePayload_userSetting(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UserSetting, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.UserSetting) - fc.Result = res - return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserSettingUpdatePayload_userSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserSettingUpdatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) + it.DisplayName = data + case "displayNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _UserUpdatePayload_user(ctx context.Context, field graphql.CollectedField, obj *UserUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserUpdatePayload_user(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.User, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.User) - fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_UserUpdatePayload_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "UserUpdatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_User_id(ctx, field) - case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) + it.DisplayNameNEQ = data + case "displayNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_id(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_createdAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_name(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_description(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_destinationURL(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_destinationURL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DestinationURL, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_destinationURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_enabled(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_enabled(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Enabled, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_failures(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_failures(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Failures, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalOInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_failures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_lastError(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_lastError(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastError, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_lastError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_lastResponse(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_lastResponse(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastResponse, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_lastResponse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_owner(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Organization_id(ctx, field) - case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentdata": - return ec.fieldContext_Organization_documentdata(ctx, field) - case "entitlements": - return ec.fieldContext_Organization_entitlements(ctx, field) - case "organizationEntitlement": - return ec.fieldContext_Organization_organizationEntitlement(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "oauthprovider": - return ec.fieldContext_Organization_oauthprovider(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "webhooks": - return ec.fieldContext_Organization_webhooks(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "features": - return ec.fieldContext_Organization_features(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entitlementplans": - return ec.fieldContext_Organization_entitlementplans(ctx, field) - case "entitlementplanfeatures": - return ec.fieldContext_Organization_entitlementplanfeatures(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entitytypes": - return ec.fieldContext_Organization_entitytypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + it.DisplayNameIn = data + case "displayNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNotIn = data + case "displayNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameGT = data + case "displayNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameGTE = data + case "displayNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_events(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_events(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Event) - fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "feature": - return ec.fieldContext_Event_feature(ctx, field) - case "entitlementplan": - return ec.fieldContext_Event_entitlementplan(ctx, field) - case "entitlementplanfeature": - return ec.fieldContext_Event_entitlementplanfeature(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "oauth2token": - return ec.fieldContext_Event_oauth2token(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "entitlement": - return ec.fieldContext_Event_entitlement(ctx, field) - case "webhook": - return ec.fieldContext_Event_webhook(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + it.DisplayNameLT = data + case "displayNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Webhook_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Webhook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Webhook_integrations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Integrations(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Integration) - fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Webhook_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Webhook", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "oauth2tokens": - return ec.fieldContext_Integration_oauth2tokens(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - case "webhooks": - return ec.fieldContext_Integration_webhooks(ctx, field) + it.DisplayNameLTE = data + case "displayNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookBulkCreatePayload_webhooks(ctx context.Context, field graphql.CollectedField, obj *WebhookBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookBulkCreatePayload_webhooks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Webhooks, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Webhook) - fc.Result = res - return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookBulkCreatePayload_webhooks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookBulkCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Webhook_id(ctx, field) - case "createdAt": - return ec.fieldContext_Webhook_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Webhook_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Webhook_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Webhook_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Webhook_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Webhook_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Webhook_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Webhook_ownerID(ctx, field) - case "name": - return ec.fieldContext_Webhook_name(ctx, field) - case "description": - return ec.fieldContext_Webhook_description(ctx, field) - case "destinationURL": - return ec.fieldContext_Webhook_destinationURL(ctx, field) - case "enabled": - return ec.fieldContext_Webhook_enabled(ctx, field) - case "failures": - return ec.fieldContext_Webhook_failures(ctx, field) - case "lastError": - return ec.fieldContext_Webhook_lastError(ctx, field) - case "lastResponse": - return ec.fieldContext_Webhook_lastResponse(ctx, field) - case "owner": - return ec.fieldContext_Webhook_owner(ctx, field) - case "events": - return ec.fieldContext_Webhook_events(ctx, field) - case "integrations": - return ec.fieldContext_Webhook_integrations(ctx, field) + it.DisplayNameContains = data + case "displayNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.WebhookEdge) - fc.Result = res - return ec.marshalOWebhookEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_WebhookEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_WebhookEdge_cursor(ctx, field) + it.DisplayNameHasPrefix = data + case "displayNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type WebhookEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + it.DisplayNameHasSuffix = data + case "displayNameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookCreatePayload_webhook(ctx context.Context, field graphql.CollectedField, obj *WebhookCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookCreatePayload_webhook(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Webhook, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Webhook) - fc.Result = res - return ec.marshalNWebhook2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhook(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookCreatePayload_webhook(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookCreatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Webhook_id(ctx, field) - case "createdAt": - return ec.fieldContext_Webhook_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Webhook_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Webhook_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Webhook_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Webhook_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Webhook_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Webhook_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Webhook_ownerID(ctx, field) - case "name": - return ec.fieldContext_Webhook_name(ctx, field) - case "description": - return ec.fieldContext_Webhook_description(ctx, field) - case "destinationURL": - return ec.fieldContext_Webhook_destinationURL(ctx, field) - case "enabled": - return ec.fieldContext_Webhook_enabled(ctx, field) - case "failures": - return ec.fieldContext_Webhook_failures(ctx, field) - case "lastError": - return ec.fieldContext_Webhook_lastError(ctx, field) - case "lastResponse": - return ec.fieldContext_Webhook_lastResponse(ctx, field) - case "owner": - return ec.fieldContext_Webhook_owner(ctx, field) - case "events": - return ec.fieldContext_Webhook_events(ctx, field) - case "integrations": - return ec.fieldContext_Webhook_integrations(ctx, field) + it.DisplayNameIsNil = data + case "displayNameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *WebhookDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookDeletePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Webhook) - fc.Result = res - return ec.marshalOWebhook2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhook(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Webhook_id(ctx, field) - case "createdAt": - return ec.fieldContext_Webhook_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Webhook_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Webhook_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Webhook_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Webhook_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Webhook_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Webhook_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Webhook_ownerID(ctx, field) - case "name": - return ec.fieldContext_Webhook_name(ctx, field) - case "description": - return ec.fieldContext_Webhook_description(ctx, field) - case "destinationURL": - return ec.fieldContext_Webhook_destinationURL(ctx, field) - case "enabled": - return ec.fieldContext_Webhook_enabled(ctx, field) - case "failures": - return ec.fieldContext_Webhook_failures(ctx, field) - case "lastError": - return ec.fieldContext_Webhook_lastError(ctx, field) - case "lastResponse": - return ec.fieldContext_Webhook_lastResponse(ctx, field) - case "owner": - return ec.fieldContext_Webhook_owner(ctx, field) - case "events": - return ec.fieldContext_Webhook_events(ctx, field) - case "integrations": - return ec.fieldContext_Webhook_integrations(ctx, field) + it.DisplayNameNotNil = data + case "displayNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_id(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_historyTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_ref(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + it.DisplayNameEqualFold = data + case "displayNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameContainsFold = data + case "entityTypeID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeID = data + case "entityTypeIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDNEQ = data + case "entityTypeIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDIn = data + case "entityTypeIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDNotIn = data + case "entityTypeIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDGT = data + case "entityTypeIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDGTE = data + case "entityTypeIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDLT = data + case "entityTypeIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDLTE = data + case "entityTypeIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDContains = data + case "entityTypeIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDHasPrefix = data + case "entityTypeIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDHasSuffix = data + case "entityTypeIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDIsNil = data + case "entityTypeIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDNotNil = data + case "entityTypeIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDEqualFold = data + case "entityTypeIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContainsFold = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + + return it, nil } -func (ec *executionContext) fieldContext_WebhookHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputEntityOrder(ctx context.Context, obj interface{}) (generated.EntityOrder, error) { + var it generated.EntityOrder + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _WebhookHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_operation(ctx, field) - if err != nil { - return graphql.Null + if _, present := asMap["direction"]; !present { + asMap["direction"] = "ASC" } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"direction", "field"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + 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.unmarshalNEntityOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderField(ctx, v) + if err != nil { + return it, err + } + it.Field = data } - return graphql.Null } - res := resTmp.(history.OpType) - fc.Result = res - return ec.marshalNWebhookHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + + return it, nil } -func (ec *executionContext) fieldContext_WebhookHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type WebhookHistoryOpType does not have child fields") - }, +func (ec *executionContext) unmarshalInputEntityTypeHistoryOrder(ctx context.Context, obj interface{}) (generated.EntityTypeHistoryOrder, error) { + var it generated.EntityTypeHistoryOrder + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil + + 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.unmarshalNEntityTypeHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryOrderField(ctx, v) + if err != nil { + return it, err + } + it.Field = data + } + } + + return it, nil } -func (ec *executionContext) _WebhookHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_createdAt(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) unmarshalInputEntityTypeHistoryWhereInput(ctx context.Context, obj interface{}) (generated.EntityTypeHistoryWhereInput, error) { + var it generated.EntityTypeHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold"} + 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.unmarshalOEntityTypeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOEntityTypeHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOEntityTypeHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOEntityTypeHistoryOpType2ᚖ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.unmarshalOEntityTypeHistoryOpType2ᚖ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.unmarshalOEntityTypeHistoryOpType2ᚕ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.unmarshalOEntityTypeHistoryOpType2ᚕ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 "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = 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 "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = 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 "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_WebhookHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _WebhookHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_updatedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null +func (ec *executionContext) unmarshalInputEntityTypeOrder(ctx context.Context, obj interface{}) (generated.EntityTypeOrder, error) { + var it generated.EntityTypeOrder + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_WebhookHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, + if _, present := asMap["direction"]; !present { + asMap["direction"] = "ASC" } - return fc, nil -} -func (ec *executionContext) _WebhookHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"direction", "field"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + 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.unmarshalNEntityTypeOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrderField(ctx, v) + if err != nil { + return it, err + } + it.Field = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _WebhookHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_WebhookHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputEntityTypeWhereInput(ctx context.Context, obj interface{}) (generated.EntityTypeWhereInput, error) { + var it generated.EntityTypeWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _WebhookHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "hasOwner", "hasOwnerWith", "hasEntities", "hasEntitiesWith"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "ownerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNEQ = data + case "ownerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIn = data + case "ownerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContains = data + case "ownerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasPrefix = data + case "ownerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasSuffix = data + case "ownerIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIsNil = data + case "ownerIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotNil = data + case "ownerIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDEqualFold = data + case "ownerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOwnerWith = 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ᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEntitiesWith = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _WebhookHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_WebhookHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputEntityWhereInput(ctx context.Context, obj interface{}) (generated.EntityWhereInput, error) { + var it generated.EntityWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _WebhookHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameIsNil", "nameNotNil", "nameEqualFold", "nameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameIsNil", "displayNameNotNil", "displayNameEqualFold", "displayNameContainsFold", "entityTypeID", "entityTypeIDNEQ", "entityTypeIDIn", "entityTypeIDNotIn", "entityTypeIDGT", "entityTypeIDGTE", "entityTypeIDLT", "entityTypeIDLTE", "entityTypeIDContains", "entityTypeIDHasPrefix", "entityTypeIDHasSuffix", "entityTypeIDIsNil", "entityTypeIDNotNil", "entityTypeIDEqualFold", "entityTypeIDContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "hasOwner", "hasOwnerWith", "hasContacts", "hasContactsWith", "hasDocuments", "hasDocumentsWith", "hasNotes", "hasNotesWith", "hasFiles", "hasFilesWith", "hasEntityType", "hasEntityTypeWith"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "ownerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNEQ = data + case "ownerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIn = data + case "ownerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContains = data + case "ownerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasPrefix = data + case "ownerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasSuffix = data + case "ownerIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIsNil = data + case "ownerIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotNil = data + case "ownerIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDEqualFold = data + case "ownerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.NameIsNil = data + case "nameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.NameNotNil = 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 "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = data + case "displayNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNEQ = data + case "displayNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameIn = data + case "displayNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNotIn = data + case "displayNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameGT = data + case "displayNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameGTE = data + case "displayNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameLT = data + case "displayNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameLTE = data + case "displayNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameContains = data + case "displayNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameHasPrefix = data + case "displayNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameHasSuffix = data + case "displayNameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameIsNil = data + case "displayNameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNotNil = data + case "displayNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameEqualFold = data + case "displayNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameContainsFold = data + case "entityTypeID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeID = data + case "entityTypeIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDNEQ = data + case "entityTypeIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDIn = data + case "entityTypeIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDNotIn = data + case "entityTypeIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDGT = data + case "entityTypeIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDGTE = data + case "entityTypeIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDLT = data + case "entityTypeIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDLTE = data + case "entityTypeIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDContains = data + case "entityTypeIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDHasPrefix = data + case "entityTypeIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDHasSuffix = data + case "entityTypeIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDIsNil = data + case "entityTypeIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDNotNil = data + case "entityTypeIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDEqualFold = data + case "entityTypeIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityTypeIDContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContainsFold = 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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOwnerWith = data + case "hasContacts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContacts")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasContacts = data + case "hasContactsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContactsWith")) + data, err := ec.unmarshalOContactWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasContactsWith = data + case "hasDocuments": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocuments")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasDocuments = data + case "hasDocumentsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocumentsWith")) + data, err := ec.unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasDocumentsWith = data + case "hasNotes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNotes")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasNotes = data + case "hasNotesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNotesWith")) + data, err := ec.unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasNotesWith = data + case "hasFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasFiles = data + case "hasFilesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasFilesWith = data + case "hasEntityType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityType")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEntityType = data + case "hasEntityTypeWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityTypeWith")) + data, err := ec.unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEntityTypeWith = data } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _WebhookHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_WebhookHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputEventHistoryWhereInput(ctx context.Context, obj interface{}) (generated.EventHistoryWhereInput, error) { + var it generated.EventHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _WebhookHistory_destinationURL(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_destinationURL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "eventID", "eventIDNEQ", "eventIDIn", "eventIDNotIn", "eventIDGT", "eventIDGTE", "eventIDLT", "eventIDLTE", "eventIDContains", "eventIDHasPrefix", "eventIDHasSuffix", "eventIDIsNil", "eventIDNotNil", "eventIDEqualFold", "eventIDContainsFold", "correlationID", "correlationIDNEQ", "correlationIDIn", "correlationIDNotIn", "correlationIDGT", "correlationIDGTE", "correlationIDLT", "correlationIDLTE", "correlationIDContains", "correlationIDHasPrefix", "correlationIDHasSuffix", "correlationIDIsNil", "correlationIDNotNil", "correlationIDEqualFold", "correlationIDContainsFold", "eventType", "eventTypeNEQ", "eventTypeIn", "eventTypeNotIn", "eventTypeGT", "eventTypeGTE", "eventTypeLT", "eventTypeLTE", "eventTypeContains", "eventTypeHasPrefix", "eventTypeHasSuffix", "eventTypeEqualFold", "eventTypeContainsFold"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DestinationURL, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOEventHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOEventHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOEventHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOEventHistoryOpType2ᚖ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.unmarshalOEventHistoryOpType2ᚖ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.unmarshalOEventHistoryOpType2ᚕ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.unmarshalOEventHistoryOpType2ᚕ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 "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "eventID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventID = data + case "eventIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDNEQ = data + case "eventIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDIn = data + case "eventIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDNotIn = data + case "eventIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDGT = data + case "eventIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDGTE = data + case "eventIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDLT = data + case "eventIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDLTE = data + case "eventIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDContains = data + case "eventIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDHasPrefix = data + case "eventIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDHasSuffix = data + case "eventIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.EventIDIsNil = data + case "eventIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.EventIDNotNil = data + case "eventIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDEqualFold = data + case "eventIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDContainsFold = data + case "correlationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationID = data + case "correlationIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDNEQ = data + case "correlationIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDIn = data + case "correlationIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDNotIn = data + case "correlationIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDGT = data + case "correlationIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDGTE = data + case "correlationIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDLT = data + case "correlationIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDLTE = data + case "correlationIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDContains = data + case "correlationIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDHasPrefix = data + case "correlationIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDHasSuffix = data + case "correlationIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDIsNil = data + case "correlationIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDNotNil = data + case "correlationIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDEqualFold = data + case "correlationIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDContainsFold = data + case "eventType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventType = data + case "eventTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeNEQ = data + case "eventTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventTypeIn = data + case "eventTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventTypeNotIn = data + case "eventTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeGT = data + case "eventTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeGTE = data + case "eventTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeLT = data + case "eventTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeLTE = data + case "eventTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeContains = data + case "eventTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeHasPrefix = data + case "eventTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeHasSuffix = data + case "eventTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeEqualFold = data + case "eventTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeContainsFold = data } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistory_destinationURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, } - return fc, nil -} -func (ec *executionContext) _WebhookHistory_enabled(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_enabled(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Enabled, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_WebhookHistory_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, +func (ec *executionContext) unmarshalInputEventWhereInput(ctx context.Context, obj interface{}) (generated.EventWhereInput, error) { + var it generated.EventWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _WebhookHistory_failures(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_failures(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "eventID", "eventIDNEQ", "eventIDIn", "eventIDNotIn", "eventIDGT", "eventIDGTE", "eventIDLT", "eventIDLTE", "eventIDContains", "eventIDHasPrefix", "eventIDHasSuffix", "eventIDIsNil", "eventIDNotNil", "eventIDEqualFold", "eventIDContainsFold", "correlationID", "correlationIDNEQ", "correlationIDIn", "correlationIDNotIn", "correlationIDGT", "correlationIDGTE", "correlationIDLT", "correlationIDLTE", "correlationIDContains", "correlationIDHasPrefix", "correlationIDHasSuffix", "correlationIDIsNil", "correlationIDNotNil", "correlationIDEqualFold", "correlationIDContainsFold", "eventType", "eventTypeNEQ", "eventTypeIn", "eventTypeNotIn", "eventTypeGT", "eventTypeGTE", "eventTypeLT", "eventTypeLTE", "eventTypeContains", "eventTypeHasPrefix", "eventTypeHasSuffix", "eventTypeEqualFold", "eventTypeContainsFold", "hasUser", "hasUserWith", "hasGroup", "hasGroupWith", "hasIntegration", "hasIntegrationWith", "hasOrganization", "hasOrganizationWith", "hasInvite", "hasInviteWith", "hasFeature", "hasFeatureWith", "hasEntitlementplan", "hasEntitlementplanWith", "hasEntitlementplanfeature", "hasEntitlementplanfeatureWith", "hasPersonalAccessToken", "hasPersonalAccessTokenWith", "hasOauth2token", "hasOauth2tokenWith", "hasHush", "hasHushWith", "hasOrgmembership", "hasOrgmembershipWith", "hasGroupmembership", "hasGroupmembershipWith", "hasEntitlement", "hasEntitlementWith", "hasWebhook", "hasWebhookWith", "hasSubscriber", "hasSubscriberWith", "hasFile", "hasFileWith"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Failures, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalOInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistory_failures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookHistory_lastError(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_lastError(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "eventID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventID = data + case "eventIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDNEQ = data + case "eventIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDIn = data + case "eventIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventIDNotIn = data + case "eventIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDGT = data + case "eventIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDGTE = data + case "eventIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDLT = data + case "eventIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDLTE = data + case "eventIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDContains = data + case "eventIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDHasPrefix = data + case "eventIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDHasSuffix = data + case "eventIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.EventIDIsNil = data + case "eventIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.EventIDNotNil = data + case "eventIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDEqualFold = data + case "eventIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventIDContainsFold = data + case "correlationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationID = data + case "correlationIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDNEQ = data + case "correlationIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDIn = data + case "correlationIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDNotIn = data + case "correlationIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDGT = data + case "correlationIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDGTE = data + case "correlationIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDLT = data + case "correlationIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDLTE = data + case "correlationIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDContains = data + case "correlationIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDHasPrefix = data + case "correlationIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDHasSuffix = data + case "correlationIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDIsNil = data + case "correlationIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDNotNil = data + case "correlationIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDEqualFold = data + case "correlationIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CorrelationIDContainsFold = data + case "eventType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventType = data + case "eventTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeNEQ = data + case "eventTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventTypeIn = data + case "eventTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EventTypeNotIn = data + case "eventTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeGT = data + case "eventTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeGTE = data + case "eventTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeLT = data + case "eventTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeLTE = data + case "eventTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeContains = data + case "eventTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeHasPrefix = data + case "eventTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeHasSuffix = data + case "eventTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeEqualFold = data + case "eventTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EventTypeContainsFold = 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ᚋ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ᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasGroupWith = 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ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasIntegrationWith = data + case "hasOrganization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganization")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOrganization = data + case "hasOrganizationWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOrganizationWith = data + case "hasInvite": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInvite")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasInvite = data + case "hasInviteWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInviteWith")) + data, err := ec.unmarshalOInviteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasInviteWith = data + case "hasFeature": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeature")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasFeature = data + case "hasFeatureWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeatureWith")) + data, err := ec.unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasFeatureWith = data + case "hasEntitlementplan": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplan")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEntitlementplan = data + case "hasEntitlementplanWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplanWith")) + data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEntitlementplanWith = data + case "hasEntitlementplanfeature": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplanfeature")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEntitlementplanfeature = data + case "hasEntitlementplanfeatureWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplanfeatureWith")) + data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEntitlementplanfeatureWith = data + case "hasPersonalAccessToken": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPersonalAccessToken")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasPersonalAccessToken = data + case "hasPersonalAccessTokenWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPersonalAccessTokenWith")) + data, err := ec.unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasPersonalAccessTokenWith = data + case "hasOauth2token": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOauth2token")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOauth2token = data + case "hasOauth2tokenWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOauth2tokenWith")) + data, err := ec.unmarshalOOhAuthTooTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOauth2tokenWith = data + case "hasHush": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasHush")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasHush = data + case "hasHushWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasHushWith")) + data, err := ec.unmarshalOHushWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasHushWith = data + case "hasOrgmembership": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrgmembership")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOrgmembership = data + case "hasOrgmembershipWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrgmembershipWith")) + data, err := ec.unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOrgmembershipWith = data + case "hasGroupmembership": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupmembership")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasGroupmembership = data + case "hasGroupmembershipWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupmembershipWith")) + data, err := ec.unmarshalOGroupMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasGroupmembershipWith = data + case "hasEntitlement": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlement")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEntitlement = data + case "hasEntitlementWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementWith")) + data, err := ec.unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEntitlementWith = data + case "hasWebhook": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWebhook")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasWebhook = data + case "hasWebhookWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWebhookWith")) + data, err := ec.unmarshalOWebhookWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasWebhookWith = 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ᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSubscriberWith = data + case "hasFile": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFile")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasFile = data + case "hasFileWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFileWith")) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasFileWith = data } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastError, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistory_lastError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} -func (ec *executionContext) _WebhookHistory_lastResponse(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistory_lastResponse(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastResponse, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return it, nil } -func (ec *executionContext) fieldContext_WebhookHistory_lastResponse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, +func (ec *executionContext) unmarshalInputFeatureHistoryWhereInput(ctx context.Context, obj interface{}) (generated.FeatureHistoryWhereInput, error) { + var it generated.FeatureHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - return fc, nil -} -func (ec *executionContext) _WebhookHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistoryConnection_edges(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameIsNil", "displayNameNotNil", "displayNameEqualFold", "displayNameContainsFold", "enabled", "enabledNEQ", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.WebhookHistoryEdge) - fc.Result = res - return ec.marshalOWebhookHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_WebhookHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_WebhookHistoryEdge_cursor(ctx, field) + switch k { + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOFeatureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOFeatureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOFeatureHistoryOpType2ᚖ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.unmarshalOFeatureHistoryOpType2ᚖ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.unmarshalOFeatureHistoryOpType2ᚕ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.unmarshalOFeatureHistoryOpType2ᚕ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 "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type WebhookHistoryEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistoryConnection_pageInfo(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistoryConnection_totalCount(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistoryEdge_node(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.WebhookHistory) - fc.Result = res - return ec.marshalOWebhookHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_WebhookHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_WebhookHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_WebhookHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_WebhookHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_WebhookHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_WebhookHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_WebhookHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_WebhookHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_WebhookHistory_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_WebhookHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_WebhookHistory_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_WebhookHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_WebhookHistory_name(ctx, field) - case "description": - return ec.fieldContext_WebhookHistory_description(ctx, field) - case "destinationURL": - return ec.fieldContext_WebhookHistory_destinationURL(ctx, field) - case "enabled": - return ec.fieldContext_WebhookHistory_enabled(ctx, field) - case "failures": - return ec.fieldContext_WebhookHistory_failures(ctx, field) - case "lastError": - return ec.fieldContext_WebhookHistory_lastError(ctx, field) - case "lastResponse": - return ec.fieldContext_WebhookHistory_lastResponse(ctx, field) + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = 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 "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = 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 "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = data + case "displayNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNEQ = data + case "displayNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameIn = data + case "displayNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNotIn = data + case "displayNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameGT = data + case "displayNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameGTE = data + case "displayNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameLT = data + case "displayNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameLTE = data + case "displayNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameContains = data + case "displayNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameHasPrefix = data + case "displayNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameHasSuffix = data + case "displayNameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameIsNil = data + case "displayNameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNotNil = data + case "displayNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameEqualFold = data + case "displayNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameContainsFold = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Enabled = data + case "enabledNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabledNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.EnabledNEQ = 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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLTE = 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 } - return nil, fmt.Errorf("no field named %q was found under type WebhookHistory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.WebhookHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookHistoryEdge_cursor(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + 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 } - return graphql.Null } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_WebhookHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil + return it, nil } -func (ec *executionContext) _WebhookSearchResult_webhooks(ctx context.Context, field graphql.CollectedField, obj *WebhookSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookSearchResult_webhooks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Webhooks, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null +func (ec *executionContext) unmarshalInputFeatureWhereInput(ctx context.Context, obj interface{}) (generated.FeatureWhereInput, error) { + var it generated.FeatureWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v } - res := resTmp.([]*generated.Webhook) - fc.Result = res - return ec.marshalOWebhook2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookᚄ(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_WebhookSearchResult_webhooks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookSearchResult", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Webhook_id(ctx, field) - case "createdAt": - return ec.fieldContext_Webhook_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Webhook_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Webhook_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Webhook_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Webhook_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Webhook_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Webhook_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Webhook_ownerID(ctx, field) - case "name": - return ec.fieldContext_Webhook_name(ctx, field) - case "description": - return ec.fieldContext_Webhook_description(ctx, field) - case "destinationURL": - return ec.fieldContext_Webhook_destinationURL(ctx, field) - case "enabled": - return ec.fieldContext_Webhook_enabled(ctx, field) - case "failures": - return ec.fieldContext_Webhook_failures(ctx, field) - case "lastError": - return ec.fieldContext_Webhook_lastError(ctx, field) - case "lastResponse": - return ec.fieldContext_Webhook_lastResponse(ctx, field) - case "owner": - return ec.fieldContext_Webhook_owner(ctx, field) - case "events": - return ec.fieldContext_Webhook_events(ctx, field) - case "integrations": - return ec.fieldContext_Webhook_integrations(ctx, field) + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameIsNil", "displayNameNotNil", "displayNameEqualFold", "displayNameContainsFold", "enabled", "enabledNEQ", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "hasOwner", "hasOwnerWith", "hasPlans", "hasPlansWith", "hasEvents", "hasEventsWith", "hasFeatures", "hasFeaturesWith"} + 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.unmarshalOFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ID = data + case "idNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotNil = data + case "updatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGT = data + case "updatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtGTE = data + case "updatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLT = data + case "updatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtIsNil = data + case "updatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedAtNotNil = data + case "createdBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedBy = data + case "createdByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNEQ = data + case "createdByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "ownerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNEQ = data + case "ownerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIn = data + case "ownerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContains = data + case "ownerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasPrefix = data + case "ownerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasSuffix = data + case "ownerIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIsNil = data + case "ownerIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotNil = data + case "ownerIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDEqualFold = data + case "ownerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = data + case "displayNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNEQ = data + case "displayNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameIn = data + case "displayNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNotIn = data + case "displayNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameGT = data + case "displayNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameGTE = data + case "displayNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _WebhookUpdatePayload_webhook(ctx context.Context, field graphql.CollectedField, obj *WebhookUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_WebhookUpdatePayload_webhook(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Webhook, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Webhook) - fc.Result = res - return ec.marshalNWebhook2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhook(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_WebhookUpdatePayload_webhook(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "WebhookUpdatePayload", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Webhook_id(ctx, field) - case "createdAt": - return ec.fieldContext_Webhook_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Webhook_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Webhook_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Webhook_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Webhook_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Webhook_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Webhook_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Webhook_ownerID(ctx, field) - case "name": - return ec.fieldContext_Webhook_name(ctx, field) - case "description": - return ec.fieldContext_Webhook_description(ctx, field) - case "destinationURL": - return ec.fieldContext_Webhook_destinationURL(ctx, field) - case "enabled": - return ec.fieldContext_Webhook_enabled(ctx, field) - case "failures": - return ec.fieldContext_Webhook_failures(ctx, field) - case "lastError": - return ec.fieldContext_Webhook_lastError(ctx, field) - case "lastResponse": - return ec.fieldContext_Webhook_lastResponse(ctx, field) - case "owner": - return ec.fieldContext_Webhook_owner(ctx, field) - case "events": - return ec.fieldContext_Webhook_events(ctx, field) - case "integrations": - return ec.fieldContext_Webhook_integrations(ctx, field) + it.DisplayNameLT = data + case "displayNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type Webhook", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_locations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Locations, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]string) - fc.Result = res - return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type __DirectiveLocation does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_args(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Args, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.InputValue) - fc.Result = res - return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___InputValue_name(ctx, field) - case "description": - return ec.fieldContext___InputValue_description(ctx, field) - case "type": - return ec.fieldContext___InputValue_type(ctx, field) - case "defaultValue": - return ec.fieldContext___InputValue_defaultValue(ctx, field) + it.DisplayNameLTE = data + case "displayNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsRepeatable, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Directive", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsDeprecated(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeprecationReason(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_args(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Args, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.InputValue) - fc.Result = res - return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___InputValue_name(ctx, field) - case "description": - return ec.fieldContext___InputValue_description(ctx, field) - case "type": - return ec.fieldContext___InputValue_type(ctx, field) - case "defaultValue": - return ec.fieldContext___InputValue_defaultValue(ctx, field) + it.DisplayNameContains = data + case "displayNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + it.DisplayNameHasPrefix = data + case "displayNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.IsDeprecated(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(bool) - fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeprecationReason(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Field", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_type(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Type, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + it.DisplayNameHasSuffix = data + case "displayNameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameIsNil = data + case "displayNameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameNotNil = data + case "displayNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameEqualFold = data + case "displayNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameContainsFold = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Enabled = data + case "enabledNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabledNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.EnabledNEQ = 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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DefaultValue, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__InputValue", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_types(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Types(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.Type) - fc.Result = res - return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_queryType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.QueryType(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_mutationType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MutationType(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubscriptionType(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_directives(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Directives(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.([]introspection.Directive) - fc.Result = res - return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Schema", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___Directive_name(ctx, field) - case "description": - return ec.fieldContext___Directive_description(ctx, field) - case "locations": - return ec.fieldContext___Directive_locations(ctx, field) - case "args": - return ec.fieldContext___Directive_args(ctx, field) - case "isRepeatable": - return ec.fieldContext___Directive_isRepeatable(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_kind(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Kind(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalN__TypeKind2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type __TypeKind does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_name(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_fields(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.Field) - fc.Result = res - return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___Field_name(ctx, field) - case "description": - return ec.fieldContext___Field_description(ctx, field) - case "args": - return ec.fieldContext___Field_args(ctx, field) - case "type": - return ec.fieldContext___Field_type(ctx, field) - case "isDeprecated": - return ec.fieldContext___Field_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___Field_deprecationReason(ctx, field) + it.DescriptionHasSuffix = data + case "descriptionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_interfaces(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Interfaces(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + it.DescriptionIsNil = data + case "descriptionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PossibleTypes(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_enumValues(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.EnumValue) - fc.Result = res - return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___EnumValue_name(ctx, field) - case "description": - return ec.fieldContext___EnumValue_description(ctx, field) - case "isDeprecated": - return ec.fieldContext___EnumValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___EnumValue_deprecationReason(ctx, field) + 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 } - return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} - -func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_inputFields(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.InputFields(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]introspection.InputValue) - fc.Result = res - return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___InputValue_name(ctx, field) - case "description": - return ec.fieldContext___InputValue_description(ctx, field) - case "type": - return ec.fieldContext___InputValue_type(ctx, field) - case "defaultValue": - return ec.fieldContext___InputValue_defaultValue(ctx, field) + it.DescriptionContainsFold = data + case "hasOwner": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_ofType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OfType(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*introspection.Type) - fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + it.HasOwner = data + case "hasOwnerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SpecifiedByURL(), nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__Type", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, + it.HasOwnerWith = data + case "hasPlans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlans")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasPlans = data + case "hasPlansWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlansWith")) + data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasPlansWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEventsWith = data + case "hasFeatures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeatures")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasFeatures = data + case "hasFeaturesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeaturesWith")) + data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasFeaturesWith = data + } } - return fc, nil -} - -// endregion **************************** field.gotpl ***************************** -// region **************************** input.gotpl ***************************** + return it, nil +} -func (ec *executionContext) unmarshalInputAPITokenWhereInput(ctx context.Context, obj interface{}) (generated.APITokenWhereInput, error) { - var it generated.APITokenWhereInput +func (ec *executionContext) unmarshalInputFileHistoryWhereInput(ctx context.Context, obj interface{}) (generated.FileHistoryWhereInput, error) { + var it generated.FileHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "expiresAt", "expiresAtNEQ", "expiresAtIn", "expiresAtNotIn", "expiresAtGT", "expiresAtGTE", "expiresAtLT", "expiresAtLTE", "expiresAtIsNil", "expiresAtNotNil", "lastUsedAt", "lastUsedAtNEQ", "lastUsedAtIn", "lastUsedAtNotIn", "lastUsedAtGT", "lastUsedAtGTE", "lastUsedAtLT", "lastUsedAtLTE", "lastUsedAtIsNil", "lastUsedAtNotNil", "hasOwner", "hasOwnerWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "providedFileName", "providedFileNameNEQ", "providedFileNameIn", "providedFileNameNotIn", "providedFileNameGT", "providedFileNameGTE", "providedFileNameLT", "providedFileNameLTE", "providedFileNameContains", "providedFileNameHasPrefix", "providedFileNameHasSuffix", "providedFileNameEqualFold", "providedFileNameContainsFold", "providedFileExtension", "providedFileExtensionNEQ", "providedFileExtensionIn", "providedFileExtensionNotIn", "providedFileExtensionGT", "providedFileExtensionGTE", "providedFileExtensionLT", "providedFileExtensionLTE", "providedFileExtensionContains", "providedFileExtensionHasPrefix", "providedFileExtensionHasSuffix", "providedFileExtensionEqualFold", "providedFileExtensionContainsFold", "providedFileSize", "providedFileSizeNEQ", "providedFileSizeIn", "providedFileSizeNotIn", "providedFileSizeGT", "providedFileSizeGTE", "providedFileSizeLT", "providedFileSizeLTE", "providedFileSizeIsNil", "providedFileSizeNotNil", "persistedFileSize", "persistedFileSizeNEQ", "persistedFileSizeIn", "persistedFileSizeNotIn", "persistedFileSizeGT", "persistedFileSizeGTE", "persistedFileSizeLT", "persistedFileSizeLTE", "persistedFileSizeIsNil", "persistedFileSizeNotNil", "detectedMimeType", "detectedMimeTypeNEQ", "detectedMimeTypeIn", "detectedMimeTypeNotIn", "detectedMimeTypeGT", "detectedMimeTypeGTE", "detectedMimeTypeLT", "detectedMimeTypeLTE", "detectedMimeTypeContains", "detectedMimeTypeHasPrefix", "detectedMimeTypeHasSuffix", "detectedMimeTypeIsNil", "detectedMimeTypeNotNil", "detectedMimeTypeEqualFold", "detectedMimeTypeContainsFold", "md5Hash", "md5HashNEQ", "md5HashIn", "md5HashNotIn", "md5HashGT", "md5HashGTE", "md5HashLT", "md5HashLTE", "md5HashContains", "md5HashHasPrefix", "md5HashHasSuffix", "md5HashIsNil", "md5HashNotNil", "md5HashEqualFold", "md5HashContainsFold", "detectedContentType", "detectedContentTypeNEQ", "detectedContentTypeIn", "detectedContentTypeNotIn", "detectedContentTypeGT", "detectedContentTypeGTE", "detectedContentTypeLT", "detectedContentTypeLTE", "detectedContentTypeContains", "detectedContentTypeHasPrefix", "detectedContentTypeHasSuffix", "detectedContentTypeEqualFold", "detectedContentTypeContainsFold", "storeKey", "storeKeyNEQ", "storeKeyIn", "storeKeyNotIn", "storeKeyGT", "storeKeyGTE", "storeKeyLT", "storeKeyLTE", "storeKeyContains", "storeKeyHasPrefix", "storeKeyHasSuffix", "storeKeyIsNil", "storeKeyNotNil", "storeKeyEqualFold", "storeKeyContainsFold", "categoryType", "categoryTypeNEQ", "categoryTypeIn", "categoryTypeNotIn", "categoryTypeGT", "categoryTypeGTE", "categoryTypeLT", "categoryTypeLTE", "categoryTypeContains", "categoryTypeHasPrefix", "categoryTypeHasSuffix", "categoryTypeIsNil", "categoryTypeNotNil", "categoryTypeEqualFold", "categoryTypeContainsFold", "uri", "uriNEQ", "uriIn", "uriNotIn", "uriGT", "uriGTE", "uriLT", "uriLTE", "uriContains", "uriHasPrefix", "uriHasSuffix", "uriIsNil", "uriNotNil", "uriEqualFold", "uriContainsFold", "storageScheme", "storageSchemeNEQ", "storageSchemeIn", "storageSchemeNotIn", "storageSchemeGT", "storageSchemeGTE", "storageSchemeLT", "storageSchemeLTE", "storageSchemeContains", "storageSchemeHasPrefix", "storageSchemeHasSuffix", "storageSchemeIsNil", "storageSchemeNotNil", "storageSchemeEqualFold", "storageSchemeContainsFold", "storageVolume", "storageVolumeNEQ", "storageVolumeIn", "storageVolumeNotIn", "storageVolumeGT", "storageVolumeGTE", "storageVolumeLT", "storageVolumeLTE", "storageVolumeContains", "storageVolumeHasPrefix", "storageVolumeHasSuffix", "storageVolumeIsNil", "storageVolumeNotNil", "storageVolumeEqualFold", "storageVolumeContainsFold", "storagePath", "storagePathNEQ", "storagePathIn", "storagePathNotIn", "storagePathGT", "storagePathGTE", "storagePathLT", "storagePathLTE", "storagePathContains", "storagePathHasPrefix", "storagePathHasSuffix", "storagePathIsNil", "storagePathNotNil", "storagePathEqualFold", "storagePathContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -147973,21 +236932,21 @@ func (ec *executionContext) unmarshalInputAPITokenWhereInput(ctx context.Context switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, v) + data, err := ec.unmarshalOFileHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOFileHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOFileHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -148062,6 +237021,195 @@ func (ec *executionContext) unmarshalInputAPITokenWhereInput(ctx context.Context 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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOFileHistoryOpType2ᚖ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.unmarshalOFileHistoryOpType2ᚖ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.unmarshalOFileHistoryOpType2ᚕ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.unmarshalOFileHistoryOpType2ᚕ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) @@ -148222,797 +237370,1638 @@ func (ec *executionContext) unmarshalInputAPITokenWhereInput(ctx context.Context if err != nil { return it, err } - it.CreatedByIn = data - case "createdByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + it.CreatedByIn = data + case "createdByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "providedFileName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileName = data + case "providedFileNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileNameNEQ = data + case "providedFileNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileNameIn = data + case "providedFileNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileNameNotIn = data + case "providedFileNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileNameGT = data + case "providedFileNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileNameGTE = data + case "providedFileNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileNameLT = data + case "providedFileNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileNameLTE = data + case "providedFileNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileNameContains = data + case "providedFileNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileNameHasPrefix = data + case "providedFileNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileNameHasSuffix = data + case "providedFileNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileNameEqualFold = data + case "providedFileNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileNameContainsFold = data + case "providedFileExtension": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtension")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtension = data + case "providedFileExtensionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtensionNEQ = data + case "providedFileExtensionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtensionIn = data + case "providedFileExtensionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtensionNotIn = data + case "providedFileExtensionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtensionGT = data + case "providedFileExtensionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtensionGTE = data + case "providedFileExtensionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtensionLT = data + case "providedFileExtensionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtensionLTE = data + case "providedFileExtensionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtensionContains = data + case "providedFileExtensionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtensionHasPrefix = data + case "providedFileExtensionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtensionHasSuffix = data + case "providedFileExtensionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtensionEqualFold = data + case "providedFileExtensionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileExtensionContainsFold = data + case "providedFileSize": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSize")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileSize = data + case "providedFileSizeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeNEQ")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileSizeNEQ = data + case "providedFileSizeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeIn")) + data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileSizeIn = data + case "providedFileSizeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeNotIn")) + data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileSizeNotIn = data + case "providedFileSizeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeGT")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileSizeGT = data + case "providedFileSizeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeGTE")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileSizeGTE = data + case "providedFileSizeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeLT")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileSizeLT = data + case "providedFileSizeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeLTE")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileSizeLTE = data + case "providedFileSizeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileSizeIsNil = data + case "providedFileSizeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ProvidedFileSizeNotNil = data + case "persistedFileSize": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSize")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSize = data + case "persistedFileSizeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeNEQ")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeNEQ = data + case "persistedFileSizeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeIn")) + data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeIn = data + case "persistedFileSizeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeNotIn")) + data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeNotIn = data + case "persistedFileSizeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeGT")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeGT = data + case "persistedFileSizeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeGTE")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeGTE = data + case "persistedFileSizeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeLT")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeLT = data + case "persistedFileSizeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeLTE")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeLTE = data + case "persistedFileSizeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeIsNil = data + case "persistedFileSizeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeNotNil = data + case "detectedMimeType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeType = data + case "detectedMimeTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeNEQ = data + case "detectedMimeTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeIn = data + case "detectedMimeTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeNotIn = data + case "detectedMimeTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeGT = data + case "detectedMimeTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeGTE = data + case "detectedMimeTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeLT = data + case "detectedMimeTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeLTE = data + case "detectedMimeTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeContains = data + case "detectedMimeTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeHasPrefix = data + case "detectedMimeTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeHasSuffix = data + case "detectedMimeTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeIsNil = data + case "detectedMimeTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeNotNil = data + case "detectedMimeTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeEqualFold = data + case "detectedMimeTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DetectedMimeTypeContainsFold = data + case "md5Hash": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5Hash")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Md5Hash = data + case "md5HashNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Md5HashNEQ = data + case "md5HashIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Md5HashIn = data + case "md5HashNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + it.Md5HashNotIn = data + case "md5HashGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + it.Md5HashGT = data + case "md5HashGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + it.Md5HashGTE = data + case "md5HashLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + it.Md5HashLT = data + case "md5HashLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + it.Md5HashLTE = data + case "md5HashContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashContains")) 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")) + it.Md5HashContains = data + case "md5HashHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashHasPrefix")) 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")) + it.Md5HashHasPrefix = data + case "md5HashHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashHasSuffix")) 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")) + it.Md5HashHasSuffix = data + case "md5HashIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + it.Md5HashIsNil = data + case "md5HashNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByNotNil = data - case "createdByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + it.Md5HashNotNil = data + case "md5HashEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashEqualFold")) 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")) + it.Md5HashEqualFold = data + case "md5HashContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashContainsFold")) 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")) + it.Md5HashContainsFold = data + case "detectedContentType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentType")) 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")) + it.DetectedContentType = data + case "detectedContentTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeNEQ")) 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")) + it.DetectedContentTypeNEQ = data + case "detectedContentTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeIn")) 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")) + it.DetectedContentTypeIn = data + case "detectedContentTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + it.DetectedContentTypeNotIn = data + case "detectedContentTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + it.DetectedContentTypeGT = data + case "detectedContentTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + it.DetectedContentTypeGTE = data + case "detectedContentTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + it.DetectedContentTypeLT = data + case "detectedContentTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + it.DetectedContentTypeLTE = data + case "detectedContentTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeContains")) 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")) + it.DetectedContentTypeContains = data + case "detectedContentTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeHasPrefix")) 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")) + it.DetectedContentTypeHasPrefix = data + case "detectedContentTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeHasSuffix")) 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) + it.DetectedContentTypeHasSuffix = data + case "detectedContentTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.DetectedContentTypeEqualFold = data + case "detectedContentTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByNotNil = data - case "updatedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + it.DetectedContentTypeContainsFold = data + case "storeKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKey")) 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")) + it.StoreKey = data + case "storeKeyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoreKeyNEQ = data + case "storeKeyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoreKeyIn = data + case "storeKeyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.StoreKeyNotIn = data + case "storeKeyGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.StoreKeyGT = data + case "storeKeyGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoreKeyGTE = data + case "storeKeyLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoreKeyLT = data + case "storeKeyLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoreKeyLTE = data + case "storeKeyContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoreKeyContains = data + case "storeKeyHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + it.StoreKeyHasPrefix = data + case "storeKeyHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StoreKeyHasSuffix = data + case "storeKeyIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + it.StoreKeyIsNil = data + case "storeKeyNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + it.StoreKeyNotNil = data + case "storeKeyEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + it.StoreKeyEqualFold = data + case "storeKeyContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + it.StoreKeyContainsFold = data + case "categoryType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CategoryType = data + case "categoryTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CategoryTypeNEQ = data + case "categoryTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + it.CategoryTypeIn = data + case "categoryTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + it.CategoryTypeNotIn = data + case "categoryTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + it.CategoryTypeGT = data + case "categoryTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + it.CategoryTypeGTE = data + case "categoryTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + it.CategoryTypeLT = data + case "categoryTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + it.CategoryTypeLTE = data + case "categoryTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + it.CategoryTypeContains = data + case "categoryTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + it.CategoryTypeHasPrefix = data + case "categoryTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + it.CategoryTypeHasSuffix = data + case "categoryTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + it.CategoryTypeIsNil = data + case "categoryTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + it.CategoryTypeNotNil = data + case "categoryTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + it.CategoryTypeEqualFold = data + case "categoryTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.CategoryTypeContainsFold = data + case "uri": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uri")) + 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.unmarshalOID2ᚖstring(ctx, v) + it.URI = data + case "uriNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriNEQ")) + 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.unmarshalOID2ᚕstringᚄ(ctx, v) + it.URINEQ = data + case "uriIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriIn")) + 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.unmarshalOID2ᚕstringᚄ(ctx, v) + it.URIIn = data + case "uriNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.URINotIn = data + case "uriGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.URIGT = data + case "uriGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.URIGTE = data + case "uriLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.URILT = data + case "uriLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.URILTE = data + case "uriContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriContains")) + 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.unmarshalOID2ᚖstring(ctx, v) + it.URIContains = data + case "uriHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriHasPrefix")) + 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.unmarshalOID2ᚖstring(ctx, v) + it.URIHasPrefix = data + case "uriHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriHasSuffix")) + 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")) + it.URIHasSuffix = data + case "uriIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + it.URIIsNil = data + case "uriNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriNotNil")) 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) + it.URINotNil = data + case "uriEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriEqualFold")) + 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.unmarshalOID2ᚖstring(ctx, v) + it.URIEqualFold = data + case "uriContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriContainsFold")) + 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")) + it.URIContainsFold = data + case "storageScheme": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageScheme")) 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")) + it.StorageScheme = data + case "storageSchemeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeNEQ")) 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")) + it.StorageSchemeNEQ = data + case "storageSchemeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeIn")) 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")) + it.StorageSchemeIn = data + case "storageSchemeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + it.StorageSchemeNotIn = data + case "storageSchemeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + it.StorageSchemeGT = data + case "storageSchemeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + it.StorageSchemeGTE = data + case "storageSchemeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + it.StorageSchemeLT = data + case "storageSchemeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + it.StorageSchemeLTE = data + case "storageSchemeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeContains")) 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")) + it.StorageSchemeContains = data + case "storageSchemeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeHasPrefix")) 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")) + it.StorageSchemeHasPrefix = data + case "storageSchemeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeHasSuffix")) 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")) + it.StorageSchemeHasSuffix = data + case "storageSchemeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StorageSchemeIsNil = data + case "storageSchemeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StorageSchemeNotNil = data + case "storageSchemeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeEqualFold")) 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")) + it.StorageSchemeEqualFold = data + case "storageSchemeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - case "expiresAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StorageSchemeContainsFold = data + case "storageVolume": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolume")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAt = data - case "expiresAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StorageVolume = data + case "storageVolumeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtNEQ = data - case "expiresAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.StorageVolumeNEQ = data + case "storageVolumeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresAtIn = data - case "expiresAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.StorageVolumeIn = data + case "storageVolumeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresAtNotIn = data - case "expiresAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StorageVolumeNotIn = data + case "storageVolumeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtGT = data - case "expiresAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StorageVolumeGT = data + case "storageVolumeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtGTE = data - case "expiresAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StorageVolumeGTE = data + case "storageVolumeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtLT = data - case "expiresAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StorageVolumeLT = data + case "storageVolumeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtLTE = data - case "expiresAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.StorageVolumeLTE = data + case "storageVolumeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtIsNil = data - case "expiresAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.StorageVolumeContains = data + case "storageVolumeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtNotNil = data - case "lastUsedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StorageVolumeHasPrefix = data + case "storageVolumeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedAt = data - case "lastUsedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StorageVolumeHasSuffix = data + case "storageVolumeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.LastUsedAtNEQ = data - case "lastUsedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.StorageVolumeIsNil = data + case "storageVolumeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.LastUsedAtIn = data - case "lastUsedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.StorageVolumeNotNil = data + case "storageVolumeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedAtNotIn = data - case "lastUsedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StorageVolumeEqualFold = data + case "storageVolumeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedAtGT = data - case "lastUsedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StorageVolumeContainsFold = data + case "storagePath": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePath")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedAtGTE = data - case "lastUsedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoragePath = data + case "storagePathNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedAtLT = data - case "lastUsedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoragePathNEQ = data + case "storagePathIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.LastUsedAtLTE = data - case "lastUsedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.StoragePathIn = data + case "storagePathNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.LastUsedAtIsNil = data - case "lastUsedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.StoragePathNotIn = data + case "storagePathGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedAtNotNil = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.StoragePathGT = data + case "storagePathGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathGTE")) + data, err := ec.unmarshalOString2ᚖstring(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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.StoragePathGTE = data + case "storagePathLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOwnerWith = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputAuditLogWhereInput(ctx context.Context, obj interface{}) (AuditLogWhereInput, error) { - var it AuditLogWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"refID", "updatedBy", "operation", "table", "before", "after"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "refID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StoragePathLT = data + case "storagePathLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefID = data - case "updatedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StoragePathLTE = data + case "storagePathContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedBy = data - case "operation": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) + it.StoragePathContains = data + case "storagePathHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Operation = data - case "table": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("table")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StoragePathHasPrefix = data + case "storagePathHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Table = data - case "before": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoragePathHasSuffix = data + case "storagePathIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Before = data - case "after": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoragePathIsNil = data + case "storagePathNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.After = data + it.StoragePathNotNil = data + case "storagePathEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StoragePathEqualFold = data + case "storagePathContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StoragePathContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputContactHistoryWhereInput(ctx context.Context, obj interface{}) (generated.ContactHistoryWhereInput, error) { - var it generated.ContactHistoryWhereInput +func (ec *executionContext) unmarshalInputFileWhereInput(ctx context.Context, obj interface{}) (generated.FileWhereInput, error) { + var it generated.FileWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "fullName", "fullNameNEQ", "fullNameIn", "fullNameNotIn", "fullNameGT", "fullNameGTE", "fullNameLT", "fullNameLTE", "fullNameContains", "fullNameHasPrefix", "fullNameHasSuffix", "fullNameEqualFold", "fullNameContainsFold", "title", "titleNEQ", "titleIn", "titleNotIn", "titleGT", "titleGTE", "titleLT", "titleLTE", "titleContains", "titleHasPrefix", "titleHasSuffix", "titleIsNil", "titleNotNil", "titleEqualFold", "titleContainsFold", "company", "companyNEQ", "companyIn", "companyNotIn", "companyGT", "companyGTE", "companyLT", "companyLTE", "companyContains", "companyHasPrefix", "companyHasSuffix", "companyIsNil", "companyNotNil", "companyEqualFold", "companyContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailGT", "emailGTE", "emailLT", "emailLTE", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailIsNil", "emailNotNil", "emailEqualFold", "emailContainsFold", "phoneNumber", "phoneNumberNEQ", "phoneNumberIn", "phoneNumberNotIn", "phoneNumberGT", "phoneNumberGTE", "phoneNumberLT", "phoneNumberLTE", "phoneNumberContains", "phoneNumberHasPrefix", "phoneNumberHasSuffix", "phoneNumberIsNil", "phoneNumberNotNil", "phoneNumberEqualFold", "phoneNumberContainsFold", "address", "addressNEQ", "addressIn", "addressNotIn", "addressGT", "addressGTE", "addressLT", "addressLTE", "addressContains", "addressHasPrefix", "addressHasSuffix", "addressIsNil", "addressNotNil", "addressEqualFold", "addressContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "providedFileName", "providedFileNameNEQ", "providedFileNameIn", "providedFileNameNotIn", "providedFileNameGT", "providedFileNameGTE", "providedFileNameLT", "providedFileNameLTE", "providedFileNameContains", "providedFileNameHasPrefix", "providedFileNameHasSuffix", "providedFileNameEqualFold", "providedFileNameContainsFold", "providedFileExtension", "providedFileExtensionNEQ", "providedFileExtensionIn", "providedFileExtensionNotIn", "providedFileExtensionGT", "providedFileExtensionGTE", "providedFileExtensionLT", "providedFileExtensionLTE", "providedFileExtensionContains", "providedFileExtensionHasPrefix", "providedFileExtensionHasSuffix", "providedFileExtensionEqualFold", "providedFileExtensionContainsFold", "providedFileSize", "providedFileSizeNEQ", "providedFileSizeIn", "providedFileSizeNotIn", "providedFileSizeGT", "providedFileSizeGTE", "providedFileSizeLT", "providedFileSizeLTE", "providedFileSizeIsNil", "providedFileSizeNotNil", "persistedFileSize", "persistedFileSizeNEQ", "persistedFileSizeIn", "persistedFileSizeNotIn", "persistedFileSizeGT", "persistedFileSizeGTE", "persistedFileSizeLT", "persistedFileSizeLTE", "persistedFileSizeIsNil", "persistedFileSizeNotNil", "detectedMimeType", "detectedMimeTypeNEQ", "detectedMimeTypeIn", "detectedMimeTypeNotIn", "detectedMimeTypeGT", "detectedMimeTypeGTE", "detectedMimeTypeLT", "detectedMimeTypeLTE", "detectedMimeTypeContains", "detectedMimeTypeHasPrefix", "detectedMimeTypeHasSuffix", "detectedMimeTypeIsNil", "detectedMimeTypeNotNil", "detectedMimeTypeEqualFold", "detectedMimeTypeContainsFold", "md5Hash", "md5HashNEQ", "md5HashIn", "md5HashNotIn", "md5HashGT", "md5HashGTE", "md5HashLT", "md5HashLTE", "md5HashContains", "md5HashHasPrefix", "md5HashHasSuffix", "md5HashIsNil", "md5HashNotNil", "md5HashEqualFold", "md5HashContainsFold", "detectedContentType", "detectedContentTypeNEQ", "detectedContentTypeIn", "detectedContentTypeNotIn", "detectedContentTypeGT", "detectedContentTypeGTE", "detectedContentTypeLT", "detectedContentTypeLTE", "detectedContentTypeContains", "detectedContentTypeHasPrefix", "detectedContentTypeHasSuffix", "detectedContentTypeEqualFold", "detectedContentTypeContainsFold", "storeKey", "storeKeyNEQ", "storeKeyIn", "storeKeyNotIn", "storeKeyGT", "storeKeyGTE", "storeKeyLT", "storeKeyLTE", "storeKeyContains", "storeKeyHasPrefix", "storeKeyHasSuffix", "storeKeyIsNil", "storeKeyNotNil", "storeKeyEqualFold", "storeKeyContainsFold", "categoryType", "categoryTypeNEQ", "categoryTypeIn", "categoryTypeNotIn", "categoryTypeGT", "categoryTypeGTE", "categoryTypeLT", "categoryTypeLTE", "categoryTypeContains", "categoryTypeHasPrefix", "categoryTypeHasSuffix", "categoryTypeIsNil", "categoryTypeNotNil", "categoryTypeEqualFold", "categoryTypeContainsFold", "uri", "uriNEQ", "uriIn", "uriNotIn", "uriGT", "uriGTE", "uriLT", "uriLTE", "uriContains", "uriHasPrefix", "uriHasSuffix", "uriIsNil", "uriNotNil", "uriEqualFold", "uriContainsFold", "storageScheme", "storageSchemeNEQ", "storageSchemeIn", "storageSchemeNotIn", "storageSchemeGT", "storageSchemeGTE", "storageSchemeLT", "storageSchemeLTE", "storageSchemeContains", "storageSchemeHasPrefix", "storageSchemeHasSuffix", "storageSchemeIsNil", "storageSchemeNotNil", "storageSchemeEqualFold", "storageSchemeContainsFold", "storageVolume", "storageVolumeNEQ", "storageVolumeIn", "storageVolumeNotIn", "storageVolumeGT", "storageVolumeGTE", "storageVolumeLT", "storageVolumeLTE", "storageVolumeContains", "storageVolumeHasPrefix", "storageVolumeHasSuffix", "storageVolumeIsNil", "storageVolumeNotNil", "storageVolumeEqualFold", "storageVolumeContainsFold", "storagePath", "storagePathNEQ", "storagePathIn", "storagePathNotIn", "storagePathGT", "storagePathGTE", "storagePathLT", "storagePathLTE", "storagePathContains", "storagePathHasPrefix", "storagePathHasSuffix", "storagePathIsNil", "storagePathNotNil", "storagePathEqualFold", "storagePathContainsFold", "hasUser", "hasUserWith", "hasOrganization", "hasOrganizationWith", "hasGroup", "hasGroupWith", "hasContact", "hasContactWith", "hasEntity", "hasEntityWith", "hasUsersetting", "hasUsersettingWith", "hasOrganizationsetting", "hasOrganizationsettingWith", "hasTemplate", "hasTemplateWith", "hasDocumentdata", "hasDocumentdataWith", "hasEvents", "hasEventsWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -149021,21 +239010,21 @@ func (ec *executionContext) unmarshalInputContactHistoryWhereInput(ctx context.C switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOContactHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOContactHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOContactHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -149110,195 +239099,6 @@ func (ec *executionContext) unmarshalInputContactHistoryWhereInput(ctx context.C 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 "historyTimeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNEQ = data - case "historyTimeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeIn = data - case "historyTimeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNotIn = 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 "refGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGT = data - case "refGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGTE = data - case "refLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLT = data - case "refLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLTE = 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.unmarshalOContactHistoryOpType2ᚖ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.unmarshalOContactHistoryOpType2ᚖ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.unmarshalOContactHistoryOpType2ᚕ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.unmarshalOContactHistoryOpType2ᚕ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) @@ -149824,5000 +239624,4314 @@ func (ec *executionContext) unmarshalInputContactHistoryWhereInput(ctx context.C return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + case "providedFileName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileName")) 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")) + it.ProvidedFileName = data + case "providedFileNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameNEQ")) 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")) + it.ProvidedFileNameNEQ = data + case "providedFileNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameIn")) 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")) + it.ProvidedFileNameIn = data + case "providedFileNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + it.ProvidedFileNameNotIn = data + case "providedFileNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + it.ProvidedFileNameGT = data + case "providedFileNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + it.ProvidedFileNameGTE = data + case "providedFileNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + it.ProvidedFileNameLT = data + case "providedFileNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + it.ProvidedFileNameLTE = data + case "providedFileNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameContains")) 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")) + it.ProvidedFileNameContains = data + case "providedFileNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameHasPrefix")) 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")) + it.ProvidedFileNameHasPrefix = data + case "providedFileNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameHasSuffix")) 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")) + it.ProvidedFileNameHasSuffix = data + case "providedFileNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameEqualFold")) 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")) + it.ProvidedFileNameEqualFold = data + case "providedFileNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContainsFold = data - case "fullName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) + it.ProvidedFileNameContainsFold = data + case "providedFileExtension": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtension")) 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")) + it.ProvidedFileExtension = data + case "providedFileExtensionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionNEQ")) 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")) + it.ProvidedFileExtensionNEQ = data + case "providedFileExtensionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionIn")) 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")) + it.ProvidedFileExtensionIn = data + case "providedFileExtensionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.FullNameNotIn = data - case "fullNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameGT")) + it.ProvidedFileExtensionNotIn = data + case "providedFileExtensionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FullNameGT = data - case "fullNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameGTE")) + it.ProvidedFileExtensionGT = data + case "providedFileExtensionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FullNameGTE = data - case "fullNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameLT")) + it.ProvidedFileExtensionGTE = data + case "providedFileExtensionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FullNameLT = data - case "fullNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameLTE")) + it.ProvidedFileExtensionLT = data + case "providedFileExtensionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FullNameLTE = data - case "fullNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameContains")) + it.ProvidedFileExtensionLTE = data + case "providedFileExtensionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionContains")) 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")) + it.ProvidedFileExtensionContains = data + case "providedFileExtensionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionHasPrefix")) 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")) + it.ProvidedFileExtensionHasPrefix = data + case "providedFileExtensionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FullNameHasSuffix = data - case "fullNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameEqualFold")) + it.ProvidedFileExtensionHasSuffix = data + case "providedFileExtensionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionEqualFold")) 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")) + it.ProvidedFileExtensionEqualFold = data + case "providedFileExtensionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FullNameContainsFold = data - case "title": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ProvidedFileExtensionContainsFold = data + case "providedFileSize": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSize")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) if err != nil { return it, err } - it.Title = data - case "titleNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ProvidedFileSize = data + case "providedFileSizeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeNEQ")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) if err != nil { return it, err } - it.TitleNEQ = data - case "titleIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ProvidedFileSizeNEQ = data + case "providedFileSizeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeIn")) + data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) if err != nil { return it, err } - it.TitleIn = data - case "titleNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ProvidedFileSizeIn = data + case "providedFileSizeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeNotIn")) + data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) if err != nil { return it, err } - it.TitleNotIn = data - case "titleGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ProvidedFileSizeNotIn = data + case "providedFileSizeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeGT")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) if err != nil { return it, err } - it.TitleGT = data - case "titleGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ProvidedFileSizeGT = data + case "providedFileSizeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeGTE")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) if err != nil { return it, err } - it.TitleGTE = data - case "titleLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ProvidedFileSizeGTE = data + case "providedFileSizeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeLT")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) if err != nil { return it, err } - it.TitleLT = data - case "titleLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ProvidedFileSizeLT = data + case "providedFileSizeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeLTE")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) if err != nil { return it, err } - it.TitleLTE = data - case "titleContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ProvidedFileSizeLTE = data + case "providedFileSizeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TitleContains = data - case "titleHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ProvidedFileSizeIsNil = data + case "providedFileSizeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TitleHasPrefix = data - case "titleHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ProvidedFileSizeNotNil = data + case "persistedFileSize": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSize")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) if err != nil { return it, err } - it.TitleHasSuffix = data - case "titleIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.PersistedFileSize = data + case "persistedFileSizeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeNEQ")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) if err != nil { return it, err } - it.TitleIsNil = data - case "titleNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.PersistedFileSizeNEQ = data + case "persistedFileSizeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeIn")) + data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) if err != nil { return it, err } - it.TitleNotNil = data - case "titleEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.PersistedFileSizeIn = data + case "persistedFileSizeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeNotIn")) + data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) if err != nil { return it, err } - it.TitleEqualFold = data - case "titleContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.PersistedFileSizeNotIn = data + case "persistedFileSizeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeGT")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) if err != nil { return it, err } - it.TitleContainsFold = data - case "company": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company")) + it.PersistedFileSizeGT = data + case "persistedFileSizeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeGTE")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeGTE = data + case "persistedFileSizeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeLT")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeLT = data + case "persistedFileSizeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeLTE")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeLTE = data + case "persistedFileSizeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeIsNil = data + case "persistedFileSizeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PersistedFileSizeNotNil = data + case "detectedMimeType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeType")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Company = data - case "companyNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyNEQ")) + it.DetectedMimeType = data + case "detectedMimeTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CompanyNEQ = data - case "companyIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyIn")) + it.DetectedMimeTypeNEQ = data + case "detectedMimeTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CompanyIn = data - case "companyNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyNotIn")) + it.DetectedMimeTypeIn = data + case "detectedMimeTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CompanyNotIn = data - case "companyGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyGT")) + it.DetectedMimeTypeNotIn = data + case "detectedMimeTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CompanyGT = data - case "companyGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyGTE")) + it.DetectedMimeTypeGT = data + case "detectedMimeTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CompanyGTE = data - case "companyLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyLT")) + it.DetectedMimeTypeGTE = data + case "detectedMimeTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CompanyLT = data - case "companyLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyLTE")) + it.DetectedMimeTypeLT = data + case "detectedMimeTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CompanyLTE = data - case "companyContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyContains")) + it.DetectedMimeTypeLTE = data + case "detectedMimeTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CompanyContains = data - case "companyHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyHasPrefix")) + it.DetectedMimeTypeContains = data + case "detectedMimeTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CompanyHasPrefix = data - case "companyHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyHasSuffix")) + it.DetectedMimeTypeHasPrefix = data + case "detectedMimeTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CompanyHasSuffix = data - case "companyIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyIsNil")) + it.DetectedMimeTypeHasSuffix = data + case "detectedMimeTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CompanyIsNil = data - case "companyNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyNotNil")) + it.DetectedMimeTypeIsNil = data + case "detectedMimeTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CompanyNotNil = data - case "companyEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyEqualFold")) + it.DetectedMimeTypeNotNil = data + case "detectedMimeTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CompanyEqualFold = data - case "companyContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyContainsFold")) + it.DetectedMimeTypeEqualFold = data + case "detectedMimeTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CompanyContainsFold = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + it.DetectedMimeTypeContainsFold = data + case "md5Hash": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5Hash")) 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")) + it.Md5Hash = data + case "md5HashNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashNEQ")) 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")) + it.Md5HashNEQ = data + case "md5HashIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashIn")) 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")) + it.Md5HashIn = data + case "md5HashNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.EmailNotIn = data - case "emailGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGT")) + it.Md5HashNotIn = data + case "md5HashGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailGT = data - case "emailGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGTE")) + it.Md5HashGT = data + case "md5HashGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailGTE = data - case "emailLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLT")) + it.Md5HashGTE = data + case "md5HashLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailLT = data - case "emailLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLTE")) + it.Md5HashLT = data + case "md5HashLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailLTE = data - case "emailContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailContains")) + it.Md5HashLTE = data + case "md5HashContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashContains")) 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")) + it.Md5HashContains = data + case "md5HashHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashHasPrefix")) 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")) + it.Md5HashHasPrefix = data + case "md5HashHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailHasSuffix = data - case "emailIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailIsNil")) + it.Md5HashHasSuffix = data + case "md5HashIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EmailIsNil = data - case "emailNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailNotNil")) + it.Md5HashIsNil = data + case "md5HashNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EmailNotNil = data - case "emailEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailEqualFold")) + it.Md5HashNotNil = data + case "md5HashEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashEqualFold")) 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")) + it.Md5HashEqualFold = data + case "md5HashContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailContainsFold = data - case "phoneNumber": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) + it.Md5HashContainsFold = data + case "detectedContentType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentType")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumber = data - case "phoneNumberNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNEQ")) + it.DetectedContentType = data + case "detectedContentTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberNEQ = data - case "phoneNumberIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberIn")) + it.DetectedContentTypeNEQ = data + case "detectedContentTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.PhoneNumberIn = data - case "phoneNumberNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNotIn")) + it.DetectedContentTypeIn = data + case "detectedContentTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.PhoneNumberNotIn = data - case "phoneNumberGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberGT")) + it.DetectedContentTypeNotIn = data + case "detectedContentTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberGT = data - case "phoneNumberGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberGTE")) + it.DetectedContentTypeGT = data + case "detectedContentTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberGTE = data - case "phoneNumberLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberLT")) + it.DetectedContentTypeGTE = data + case "detectedContentTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberLT = data - case "phoneNumberLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberLTE")) + it.DetectedContentTypeLT = data + case "detectedContentTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberLTE = data - case "phoneNumberContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberContains")) + it.DetectedContentTypeLTE = data + case "detectedContentTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberContains = data - case "phoneNumberHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberHasPrefix")) + it.DetectedContentTypeContains = data + case "detectedContentTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberHasPrefix = data - case "phoneNumberHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberHasSuffix")) + it.DetectedContentTypeHasPrefix = data + case "detectedContentTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberHasSuffix = data - case "phoneNumberIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.PhoneNumberIsNil = data - case "phoneNumberNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.PhoneNumberNotNil = data - case "phoneNumberEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberEqualFold")) + it.DetectedContentTypeHasSuffix = data + case "detectedContentTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberEqualFold = data - case "phoneNumberContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberContainsFold")) + it.DetectedContentTypeEqualFold = data + case "detectedContentTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberContainsFold = data - case "address": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("address")) + it.DetectedContentTypeContainsFold = data + case "storeKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKey")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Address = data - case "addressNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressNEQ")) + it.StoreKey = data + case "storeKeyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressNEQ = data - case "addressIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressIn")) + it.StoreKeyNEQ = data + case "storeKeyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddressIn = data - case "addressNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressNotIn")) + it.StoreKeyIn = data + case "storeKeyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddressNotIn = data - case "addressGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressGT")) + it.StoreKeyNotIn = data + case "storeKeyGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressGT = data - case "addressGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressGTE")) + it.StoreKeyGT = data + case "storeKeyGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressGTE = data - case "addressLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressLT")) + it.StoreKeyGTE = data + case "storeKeyLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressLT = data - case "addressLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressLTE")) + it.StoreKeyLT = data + case "storeKeyLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressLTE = data - case "addressContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressContains")) + it.StoreKeyLTE = data + case "storeKeyContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressContains = data - case "addressHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressHasPrefix")) + it.StoreKeyContains = data + case "storeKeyHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressHasPrefix = data - case "addressHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressHasSuffix")) + it.StoreKeyHasPrefix = data + case "storeKeyHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressHasSuffix = data - case "addressIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressIsNil")) + it.StoreKeyHasSuffix = data + case "storeKeyIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AddressIsNil = data - case "addressNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressNotNil")) + it.StoreKeyIsNil = data + case "storeKeyNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AddressNotNil = data - case "addressEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressEqualFold")) + it.StoreKeyNotNil = data + case "storeKeyEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressEqualFold = data - case "addressContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressContainsFold")) + it.StoreKeyEqualFold = data + case "storeKeyContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressContainsFold = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOContactHistoryUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + it.StoreKeyContainsFold = data + case "categoryType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Status = data - case "statusNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) - data, err := ec.unmarshalOContactHistoryUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + it.CategoryType = data + case "categoryTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusNEQ = data - case "statusIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) - data, err := ec.unmarshalOContactHistoryUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) + it.CategoryTypeNEQ = data + case "categoryTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.StatusIn = data - case "statusNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) - data, err := ec.unmarshalOContactHistoryUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) + it.CategoryTypeIn = data + case "categoryTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.StatusNotIn = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputContactWhereInput(ctx context.Context, obj interface{}) (generated.ContactWhereInput, error) { - var it generated.ContactWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "fullName", "fullNameNEQ", "fullNameIn", "fullNameNotIn", "fullNameGT", "fullNameGTE", "fullNameLT", "fullNameLTE", "fullNameContains", "fullNameHasPrefix", "fullNameHasSuffix", "fullNameEqualFold", "fullNameContainsFold", "title", "titleNEQ", "titleIn", "titleNotIn", "titleGT", "titleGTE", "titleLT", "titleLTE", "titleContains", "titleHasPrefix", "titleHasSuffix", "titleIsNil", "titleNotNil", "titleEqualFold", "titleContainsFold", "company", "companyNEQ", "companyIn", "companyNotIn", "companyGT", "companyGTE", "companyLT", "companyLTE", "companyContains", "companyHasPrefix", "companyHasSuffix", "companyIsNil", "companyNotNil", "companyEqualFold", "companyContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailGT", "emailGTE", "emailLT", "emailLTE", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailIsNil", "emailNotNil", "emailEqualFold", "emailContainsFold", "phoneNumber", "phoneNumberNEQ", "phoneNumberIn", "phoneNumberNotIn", "phoneNumberGT", "phoneNumberGTE", "phoneNumberLT", "phoneNumberLTE", "phoneNumberContains", "phoneNumberHasPrefix", "phoneNumberHasSuffix", "phoneNumberIsNil", "phoneNumberNotNil", "phoneNumberEqualFold", "phoneNumberContainsFold", "address", "addressNEQ", "addressIn", "addressNotIn", "addressGT", "addressGTE", "addressLT", "addressLTE", "addressContains", "addressHasPrefix", "addressHasSuffix", "addressIsNil", "addressNotNil", "addressEqualFold", "addressContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "hasOwner", "hasOwnerWith", "hasEntities", "hasEntitiesWith", "hasFiles", "hasFilesWith"} - 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.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) + it.CategoryTypeNotIn = data + case "categoryTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOContactWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(ctx, v) + it.CategoryTypeGT = data + case "categoryTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOContactWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(ctx, v) + it.CategoryTypeGTE = data + case "categoryTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.CategoryTypeLT = data + case "categoryTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeLTE")) + data, err := ec.unmarshalOString2ᚖ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) + it.CategoryTypeLTE = data + case "categoryTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeContains")) + data, err := ec.unmarshalOString2ᚖ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) + it.CategoryTypeContains = data + case "categoryTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖ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) + it.CategoryTypeHasPrefix = data + case "categoryTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.CategoryTypeHasSuffix = data + case "categoryTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.CategoryTypeIsNil = data + case "categoryTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.CategoryTypeNotNil = data + case "categoryTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.CategoryTypeEqualFold = data + case "categoryTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.CategoryTypeContainsFold = data + case "uri": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uri")) + data, err := ec.unmarshalOString2ᚖ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) + it.URI = data + case "uriNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriNEQ")) + data, err := ec.unmarshalOString2ᚖ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) + it.URINEQ = data + case "uriIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.URIIn = data + case "uriNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.URINotIn = data + case "uriGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.URIGT = data + case "uriGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.URIGTE = data + case "uriLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriLT")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.URILT = data + case "uriLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriLTE")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.URILTE = data + case "uriContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriContains")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.URIContains = data + case "uriHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.URIHasPrefix = data + case "uriHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + it.URIHasSuffix = data + case "uriIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedAtNotNil = data - case "updatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGT = data - case "updatedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGTE = data - case "updatedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLT = data - case "updatedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.URIIsNil = data + case "uriNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriNotNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.URINotNil = data + case "uriEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.URIEqualFold = data + case "uriContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtNotNil = data - case "createdBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + it.URIContainsFold = data + case "storageScheme": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageScheme")) 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")) + it.StorageScheme = data + case "storageSchemeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeNEQ")) 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")) + it.StorageSchemeNEQ = data + case "storageSchemeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeIn")) 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")) + it.StorageSchemeIn = data + case "storageSchemeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + it.StorageSchemeNotIn = data + case "storageSchemeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + it.StorageSchemeGT = data + case "storageSchemeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + it.StorageSchemeGTE = data + case "storageSchemeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + it.StorageSchemeLT = data + case "storageSchemeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + it.StorageSchemeLTE = data + case "storageSchemeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeContains")) 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")) + it.StorageSchemeContains = data + case "storageSchemeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeHasPrefix")) 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")) + it.StorageSchemeHasPrefix = data + case "storageSchemeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeHasSuffix")) 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")) + it.StorageSchemeHasSuffix = data + case "storageSchemeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + it.StorageSchemeIsNil = data + case "storageSchemeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByNotNil = data - case "createdByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + it.StorageSchemeNotNil = data + case "storageSchemeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeEqualFold")) 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")) + it.StorageSchemeEqualFold = data + case "storageSchemeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeContainsFold")) 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")) + it.StorageSchemeContainsFold = data + case "storageVolume": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolume")) 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")) + it.StorageVolume = data + case "storageVolumeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeNEQ")) 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")) + it.StorageVolumeNEQ = data + case "storageVolumeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeIn")) 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")) + it.StorageVolumeIn = data + case "storageVolumeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + it.StorageVolumeNotIn = data + case "storageVolumeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + it.StorageVolumeGT = data + case "storageVolumeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + it.StorageVolumeGTE = data + case "storageVolumeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + it.StorageVolumeLT = data + case "storageVolumeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + it.StorageVolumeLTE = data + case "storageVolumeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeContains")) 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")) + it.StorageVolumeContains = data + case "storageVolumeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeHasPrefix")) 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")) + it.StorageVolumeHasPrefix = data + case "storageVolumeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeHasSuffix")) 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")) + it.StorageVolumeHasSuffix = data + case "storageVolumeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + it.StorageVolumeIsNil = data + case "storageVolumeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByNotNil = data - case "updatedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + it.StorageVolumeNotNil = data + case "storageVolumeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeEqualFold")) 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")) + it.StorageVolumeEqualFold = data + case "storageVolumeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StorageVolumeContainsFold = data + case "storagePath": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePath")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoragePath = data + case "storagePathNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.StoragePathNEQ = data + case "storagePathIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.StoragePathIn = data + case "storagePathNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoragePathNotIn = data + case "storagePathGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoragePathGT = data + case "storagePathGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoragePathGTE = data + case "storagePathLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoragePathLT = data + case "storagePathLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + it.StoragePathLTE = data + case "storagePathContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StoragePathContains = data + case "storagePathHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StoragePathHasPrefix = data + case "storagePathHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StoragePathHasSuffix = data + case "storagePathIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + it.StoragePathIsNil = data + case "storagePathNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + it.StoragePathNotNil = data + case "storagePathEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + it.StoragePathEqualFold = data + case "storagePathContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.StoragePathContainsFold = data + case "hasUser": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUser")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.HasUser = data + case "hasUserWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUserWith")) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasUserWith = data + case "hasOrganization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganization")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasOrganization = data + case "hasOrganizationWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasOrganizationWith = data + case "hasGroup": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroup")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasGroup = data + case "hasGroupWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasGroupWith = data + case "hasContact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContact")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasContact = data + case "hasContactWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContactWith")) + data, err := ec.unmarshalOContactWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasContactWith = data + case "hasEntity": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntity")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.HasEntity = data + case "hasEntityWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityWith")) + data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.HasEntityWith = data + case "hasUsersetting": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUsersetting")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasUsersetting = data + case "hasUsersettingWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUsersettingWith")) + data, err := ec.unmarshalOUserSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasUsersettingWith = data + case "hasOrganizationsetting": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationsetting")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.HasOrganizationsetting = data + case "hasOrganizationsettingWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationsettingWith")) + data, err := ec.unmarshalOOrganizationSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInputᚄ(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) + it.HasOrganizationsettingWith = data + case "hasTemplate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplate")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.HasTemplate = data + case "hasTemplateWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplateWith")) + data, err := ec.unmarshalOTemplateWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTemplateWith = data + case "hasDocumentdata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocumentdata")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasDocumentdata = data + case "hasDocumentdataWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocumentdataWith")) + data, err := ec.unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(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) + it.HasDocumentdataWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.HasEventsWith = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGroupHistoryOrder(ctx context.Context, obj interface{}) (generated.GroupHistoryOrder, error) { + var it generated.GroupHistoryOrder + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + 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.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Direction = data + case "field": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) + data, err := ec.unmarshalNGroupHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryOrderField(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Field = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGroupHistoryWhereInput(ctx context.Context, obj interface{}) (generated.GroupHistoryWhereInput, error) { + var it generated.GroupHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold"} + 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.unmarshalOGroupHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInput(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOGroupHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInputᚄ(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) + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOGroupHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + 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.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDNotNil = data - case "ownerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDEqualFold = data - case "ownerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContainsFold = data - case "fullName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.FullName = data - case "fullNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.FullNameNEQ = data - case "fullNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.FullNameIn = data - case "fullNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.FullNameNotIn = data - case "fullNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.FullNameGT = data - case "fullNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.FullNameGTE = data - case "fullNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HistoryTime = data + case "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.FullNameLT = data - case "fullNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.FullNameLTE = data - case "fullNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(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) + it.HistoryTimeNotIn = 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.FullNameHasPrefix = data - case "fullNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.FullNameHasSuffix = data - case "fullNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.FullNameEqualFold = data - case "fullNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.FullNameContainsFold = data - case "title": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) + 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.Title = data - case "titleNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleNEQ")) + 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.TitleNEQ = data - case "titleIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleIn")) + 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.TitleIn = data - case "titleNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleNotIn")) + 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.TitleNotIn = data - case "titleGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleGT")) + it.RefNotIn = data + case "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TitleGT = data - case "titleGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleGTE")) + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TitleGTE = data - case "titleLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleLT")) + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TitleLT = data - case "titleLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleLTE")) + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TitleLTE = data - case "titleContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleContains")) + it.RefLTE = data + case "refContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TitleContains = data - case "titleHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleHasPrefix")) + 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.TitleHasPrefix = data - case "titleHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleHasSuffix")) + 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.TitleHasSuffix = data - case "titleIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleIsNil")) + 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.TitleIsNil = data - case "titleNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleNotNil")) + 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.TitleNotNil = data - case "titleEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleEqualFold")) + 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.TitleEqualFold = data - case "titleContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("titleContainsFold")) + 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.TitleContainsFold = data - case "company": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RefContainsFold = data + case "operation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) + data, err := ec.unmarshalOGroupHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) if err != nil { return it, err } - it.Company = data - case "companyNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Operation = data + case "operationNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNEQ")) + data, err := ec.unmarshalOGroupHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) if err != nil { return it, err } - it.CompanyNEQ = data - case "companyIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.OperationNEQ = data + case "operationIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationIn")) + data, err := ec.unmarshalOGroupHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } - it.CompanyIn = data - case "companyNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.OperationIn = data + case "operationNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNotIn")) + data, err := ec.unmarshalOGroupHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } - it.CompanyNotIn = data - case "companyGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.CompanyGT = data - case "companyGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.CompanyGTE = data - case "companyLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.CompanyLT = data - case "companyLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.CompanyLTE = data - case "companyContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.CompanyContains = data - case "companyHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.CompanyHasPrefix = data - case "companyHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.CompanyHasSuffix = data - case "companyIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.CompanyIsNil = data - case "companyNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyNotNil")) + 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.CompanyNotNil = data - case "companyEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CompanyEqualFold = data - case "companyContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("companyContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CompanyContainsFold = 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) + 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.EmailIn = data - case "emailNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.EmailNotIn = data - case "emailGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EmailGT = data - case "emailGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.EmailGTE = data - case "emailLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.EmailLT = data - case "emailLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EmailLTE = data - case "emailContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.EmailContains = data - case "emailHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.EmailHasPrefix = data - case "emailHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.EmailHasSuffix = data - case "emailIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailIsNil")) + 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.EmailIsNil = data - case "emailNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailNotNil")) + 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.EmailNotNil = 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 "phoneNumber": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) + 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.PhoneNumber = data - case "phoneNumberNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNEQ")) + 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.PhoneNumberNEQ = data - case "phoneNumberIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberIn")) + 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.PhoneNumberIn = data - case "phoneNumberNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNotIn")) + 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.PhoneNumberNotIn = data - case "phoneNumberGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberGT")) + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberGT = data - case "phoneNumberGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberGTE")) + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberGTE = data - case "phoneNumberLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberLT")) + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberLT = data - case "phoneNumberLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberLTE")) + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberLTE = data - case "phoneNumberContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberContains")) + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberContains = data - case "phoneNumberHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberHasPrefix")) + 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.PhoneNumberHasPrefix = data - case "phoneNumberHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberHasSuffix")) + 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.PhoneNumberHasSuffix = data - case "phoneNumberIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberIsNil")) + 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.PhoneNumberIsNil = data - case "phoneNumberNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNotNil")) + 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.PhoneNumberNotNil = data - case "phoneNumberEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberEqualFold")) + 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.PhoneNumberEqualFold = data - case "phoneNumberContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberContainsFold")) + 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.PhoneNumberContainsFold = data - case "address": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("address")) + 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.Address = data - case "addressNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressNEQ")) + 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.AddressNEQ = data - case "addressIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressIn")) + 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.AddressIn = data - case "addressNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressNotIn")) + 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.AddressNotIn = data - case "addressGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressGT")) + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressGT = data - case "addressGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressGTE")) + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressGTE = data - case "addressLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressLT")) + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressLT = data - case "addressLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressLTE")) + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressLTE = data - case "addressContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressContains")) + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddressContains = data - case "addressHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressHasPrefix")) + 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.AddressHasPrefix = data - case "addressHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressHasSuffix")) + 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.AddressHasSuffix = data - case "addressIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressIsNil")) + 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.AddressIsNil = data - case "addressNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressNotNil")) + 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.AddressNotNil = data - case "addressEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressEqualFold")) + 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.AddressEqualFold = data - case "addressContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addressContainsFold")) + 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.AddressContainsFold = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOContactUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) - if err != nil { - return it, err - } - it.Status = data - case "statusNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) - data, err := ec.unmarshalOContactUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) - if err != nil { - return it, err - } - it.StatusNEQ = data - case "statusIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) - data, err := ec.unmarshalOContactUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StatusIn = data - case "statusNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) - data, err := ec.unmarshalOContactUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StatusNotIn = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.HasOwnerWith = data - case "hasEntities": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntities")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(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ᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.HasEntitiesWith = data - case "hasFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.HasFiles = data - case "hasFilesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.HasFilesWith = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateAPITokenInput(ctx context.Context, obj interface{}) (generated.CreateAPITokenInput, error) { - var it generated.CreateAPITokenInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "name", "expiresAt", "description", "scopes", "lastUsedAt", "ownerID"} - 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) + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Name = data - case "expiresAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAt = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Description = data - case "scopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Scopes = data - case "lastUsedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.LastUsedAt = 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 - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateContactInput(ctx context.Context, obj interface{}) (generated.CreateContactInput, error) { - var it generated.CreateContactInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "fullName", "title", "company", "email", "phoneNumber", "address", "status", "ownerID", "entityIDs", "fileIDs"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "tags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Tags = data - case "fullName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.FullName = data - case "title": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Title = data - case "company": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company")) + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Company = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Email = data - case "phoneNumber": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumber = data - case "address": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("address")) + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Address = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOContactUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) - if err != nil { - return it, err - } - it.Status = 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 "entityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.EntityIDs = data - case "fileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.FileIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateDocumentDataInput(ctx context.Context, obj interface{}) (generated.CreateDocumentDataInput, error) { - var it generated.CreateDocumentDataInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "data", "ownerID", "templateID", "entityIDs", "fileIDs"} - 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 "data": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("data")) - data, err := ec.unmarshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, v) - if err != nil { - return it, err - } - it.Data = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "templateID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateID")) - data, err := ec.unmarshalNID2string(ctx, v) + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateID = data - case "entityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EntityIDs = data - case "fileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.FileIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateEntitlementInput(ctx context.Context, obj interface{}) (generated.CreateEntitlementInput, error) { - var it generated.CreateEntitlementInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "externalCustomerID", "externalSubscriptionID", "expiresAt", "cancelled", "ownerID", "planID", "organizationID", "eventIDs"} - 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) + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Tags = data - case "externalCustomerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerID")) + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerID = data - case "externalSubscriptionID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionID")) + it.DeletedByContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionID = data - case "expiresAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.ExpiresAt = data - case "cancelled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cancelled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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.Cancelled = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerID = data - case "planID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planID")) - data, err := ec.unmarshalNID2string(ctx, v) + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanID = data - case "organizationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) - data, err := ec.unmarshalNID2string(ctx, v) + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationID = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateEntitlementPlanFeatureInput(ctx context.Context, obj interface{}) (generated.CreateEntitlementPlanFeatureInput, error) { - var it generated.CreateEntitlementPlanFeatureInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "metadata", "ownerID", "planID", "featureID", "eventIDs"} - 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) + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Tags = data - case "metadata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) - data, err := ec.unmarshalOMap2map(ctx, v) + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOString2ᚖstring(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) + 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.OwnerID = data - case "planID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planID")) - data, err := ec.unmarshalNID2string(ctx, v) + 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.PlanID = data - case "featureID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureID")) - data, err := ec.unmarshalNID2string(ctx, v) + 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.FeatureID = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateEntitlementPlanInput(ctx context.Context, obj interface{}) (generated.CreateEntitlementPlanInput, error) { - var it generated.CreateEntitlementPlanInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "displayName", "name", "description", "version", "metadata", "ownerID", "entitlementIDs", "baseFeatureIDs", "eventIDs"} - 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) + 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.Tags = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + 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.DisplayName = data + it.OwnerIDContainsFold = data case "name": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) + 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")) + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Description = data - case "version": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) - data, err := ec.unmarshalNString2string(ctx, v) + 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.Version = data - case "metadata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) - data, err := ec.unmarshalOMap2map(ctx, v) + 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.Metadata = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "entitlementIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entitlementIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntitlementIDs = data - case "baseFeatureIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("baseFeatureIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.BaseFeatureIDs = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateEntityInput(ctx context.Context, obj interface{}) (generated.CreateEntityInput, error) { - var it generated.CreateEntityInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "name", "displayName", "description", "domains", "status", "ownerID", "contactIDs", "documentIDs", "noteIDs", "fileIDs", "entityTypeID", "note"} - 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) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Tags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + 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.Name = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + 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.DisplayName = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + 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.Description = data - case "domains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domains")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.Domains = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + it.NameContainsFold = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Status = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DisplayName = data + case "displayNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "contactIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameNEQ = data + case "displayNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ContactIDs = data - case "documentIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameIn = data + case "displayNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DocumentIDs = data - case "noteIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("noteIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameNotIn = data + case "displayNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NoteIDs = data - case "fileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameGT = data + case "displayNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FileIDs = data - case "entityTypeID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DisplayNameGTE = data + case "displayNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeID = data - case "note": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("note")) - data, err := ec.unmarshalOCreateNoteInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNoteInput(ctx, v) + it.DisplayNameLT = data + case "displayNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - if err = ec.resolvers.CreateEntityInput().Note(ctx, &it, data); err != nil { + it.DisplayNameLTE = data + case "displayNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { return it, err } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateEntityTypeInput(ctx context.Context, obj interface{}) (generated.CreateEntityTypeInput, error) { - var it generated.CreateEntityTypeInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "name", "ownerID", "entityIDs"} - 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) + it.DisplayNameContains = data + case "displayNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + 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) + it.DisplayNameHasPrefix = data + case "displayNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Name = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DisplayNameHasSuffix = data + case "displayNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "entityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameEqualFold = data + case "displayNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityIDs = data + it.DisplayNameContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputCreateEventInput(ctx context.Context, obj interface{}) (generated.CreateEventInput, error) { - var it generated.CreateEventInput +func (ec *executionContext) unmarshalInputGroupMembershipHistoryWhereInput(ctx context.Context, obj interface{}) (generated.GroupMembershipHistoryWhereInput, error) { + var it generated.GroupMembershipHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"tags", "eventID", "correlationID", "eventType", "metadata", "userIDs", "groupIDs", "integrationIDs", "organizationIDs", "inviteIDs", "featureIDs", "entitlementplanIDs", "personalAccessTokenIDs", "oauth2tokenIDs", "hushIDs", "entitlementIDs", "webhookIDs", "subscriberIDs", "fileIDs"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "role", "roleNEQ", "roleIn", "roleNotIn", "groupID", "groupIDNEQ", "groupIDIn", "groupIDNotIn", "groupIDGT", "groupIDGTE", "groupIDLT", "groupIDLTE", "groupIDContains", "groupIDHasPrefix", "groupIDHasSuffix", "groupIDEqualFold", "groupIDContainsFold", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDGT", "userIDGTE", "userIDLT", "userIDLTE", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDEqualFold", "userIDContainsFold"} 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) + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOGroupMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInput(ctx, v) if err != nil { return it, err } - it.Tags = data - case "eventID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOGroupMembershipHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.EventID = data - case "correlationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOGroupMembershipHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.CorrelationID = data - case "eventType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventType")) - data, err := ec.unmarshalNString2string(ctx, v) + 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.EventType = data - case "metadata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) - data, err := ec.unmarshalOMap2map(ctx, v) + 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.Metadata = data - case "userIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDs")) + 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.UserIDs = data - case "groupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDs")) + 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.GroupIDs = data - case "integrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.IntegrationIDs = data - case "organizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDs = data - case "inviteIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inviteIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.InviteIDs = data - case "featureIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureIDs = data - case "entitlementplanIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entitlementplanIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntitlementplanIDs = data - case "personalAccessTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalAccessTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.PersonalAccessTokenIDs = data - case "oauth2tokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("oauth2tokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.Oauth2tokenIDs = data - case "hushIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hushIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.HistoryTime = data + case "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.HushIDs = data - case "entitlementIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entitlementIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.EntitlementIDs = data - case "webhookIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.WebhookIDs = data - case "subscriberIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.HistoryTimeNotIn = 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.SubscriberIDs = data - case "fileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.FileIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateFeatureInput(ctx context.Context, obj interface{}) (generated.CreateFeatureInput, error) { - var it generated.CreateFeatureInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "name", "displayName", "enabled", "description", "metadata", "ownerID", "planIDs", "eventIDs"} - 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) + 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.Tags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) + 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.Name = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + 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.DisplayName = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.Enabled = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + 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.Description = 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 "planIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.PlanIDs = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateFileInput(ctx context.Context, obj interface{}) (generated.CreateFileInput, error) { - var it generated.CreateFileInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "providedFileName", "providedFileExtension", "providedFileSize", "persistedFileSize", "detectedMimeType", "md5Hash", "detectedContentType", "storeKey", "categoryType", "uri", "storageScheme", "storageVolume", "storagePath", "userIDs", "organizationIDs", "groupIDs", "contactIDs", "entityIDs", "usersettingIDs", "organizationsettingIDs", "templateIDs", "documentdatumIDs", "eventIDs"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "tags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + 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.Tags = data - case "providedFileName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileName")) - data, err := ec.unmarshalNString2string(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileName = data - case "providedFileExtension": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtension")) - data, err := ec.unmarshalNString2string(ctx, v) + 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.ProvidedFileExtension = data - case "providedFileSize": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSize")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.RefNotIn = data + case "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileSize = data - case "persistedFileSize": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSize")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PersistedFileSize = data - case "detectedMimeType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeType")) + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedMimeType = data - case "md5Hash": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5Hash")) + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5Hash = data - case "detectedContentType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentType")) - data, err := ec.unmarshalNString2string(ctx, v) + it.RefLTE = data + case "refContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentType = data - case "storeKey": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKey")) + 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.StoreKey = data - case "categoryType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryType")) + 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.CategoryType = data - case "uri": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uri")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.URI = data - case "storageScheme": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageScheme")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.StorageScheme = data - case "storageVolume": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolume")) + 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.StorageVolume = data - case "storagePath": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePath")) + 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.StoragePath = data - case "userIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.RefContainsFold = data + case "operation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) + data, err := ec.unmarshalOGroupMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) if err != nil { return it, err } - it.UserIDs = data - case "organizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.Operation = data + case "operationNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNEQ")) + data, err := ec.unmarshalOGroupMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) if err != nil { return it, err } - it.OrganizationIDs = data - case "groupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.OperationNEQ = data + case "operationIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationIn")) + data, err := ec.unmarshalOGroupMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } - it.GroupIDs = data - case "contactIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.OperationIn = data + case "operationNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNotIn")) + data, err := ec.unmarshalOGroupMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } - it.ContactIDs = data - case "entityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.EntityIDs = data - case "usersettingIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("usersettingIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.UsersettingIDs = data - case "organizationsettingIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationsettingIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.OrganizationsettingIDs = data - case "templateIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.TemplateIDs = data - case "documentdatumIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentdatumIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DocumentdatumIDs = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateGroupInput(ctx context.Context, obj interface{}) (generated.CreateGroupInput, error) { - var it generated.CreateGroupInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "name", "description", "gravatarLogoURL", "logoURL", "displayName", "ownerID", "settingID", "userIDs", "eventIDs", "integrationIDs", "fileIDs", "createGroupSettings"} - 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) + 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.Tags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Description = data - case "gravatarLogoURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gravatarLogoURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.GravatarLogoURL = data - case "logoURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.LogoURL = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "settingID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) - data, err := ec.unmarshalNID2string(ctx, v) + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.SettingID = data - case "userIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.UserIDs = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.EventIDs = data - case "integrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.IntegrationIDs = data - case "fileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.FileIDs = data - case "createGroupSettings": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createGroupSettings")) - data, err := ec.unmarshalOCreateGroupSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx, v) + it.UpdatedAtLTE = data + case "updatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - if err = ec.resolvers.CreateGroupInput().CreateGroupSettings(ctx, &it, data); err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateGroupMembershipInput(ctx context.Context, obj interface{}) (generated.CreateGroupMembershipInput, error) { - var it generated.CreateGroupMembershipInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"role", "groupID", "userID", "eventIDs"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOGroupMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + 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.Role = data - case "groupID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) - data, err := ec.unmarshalNID2string(ctx, v) + 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.GroupID = data - case "userID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) - data, err := ec.unmarshalNID2string(ctx, v) + 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.UserID = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateGroupSettingInput(ctx context.Context, obj interface{}) (generated.CreateGroupSettingInput, error) { - var it generated.CreateGroupSettingInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "visibility", "joinPolicy", "syncToSlack", "syncToGithub", "groupID"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "tags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + 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.Tags = data - case "visibility": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibility")) - data, err := ec.unmarshalOGroupSettingVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, v) + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Visibility = data - case "joinPolicy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicy")) - data, err := ec.unmarshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, v) + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.JoinPolicy = data - case "syncToSlack": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlack")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SyncToSlack = data - case "syncToGithub": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithub")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SyncToGithub = data - case "groupID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.GroupID = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateHushInput(ctx context.Context, obj interface{}) (generated.CreateHushInput, error) { - var it generated.CreateHushInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"name", "description", "kind", "secretName", "secretValue", "integrationIDs", "organizationIDs", "eventIDs"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) + 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.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + 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.Description = data - case "kind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.Kind = data - case "secretName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.SecretName = data - case "secretValue": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretValue")) + 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.SecretValue = data - case "integrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.IntegrationIDs = data - case "organizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.OrganizationIDs = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateIntegrationInput(ctx context.Context, obj interface{}) (generated.CreateIntegrationInput, error) { - var it generated.CreateIntegrationInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "name", "description", "kind", "ownerID", "secretIDs", "oauth2tokenIDs", "eventIDs", "webhookIDs"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "tags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + 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.Tags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) + 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.Name = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Description = data - case "kind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Kind = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "secretIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretIDs = data - case "oauth2tokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("oauth2tokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Oauth2tokenIDs = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.EventIDs = data - case "webhookIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.WebhookIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateInviteInput(ctx context.Context, obj interface{}) (generated.CreateInviteInput, error) { - var it generated.CreateInviteInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"expires", "recipient", "status", "role", "sendAttempts", "requestorID", "ownerID", "eventIDs"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "expires": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expires")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.Expires = data - case "recipient": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipient")) - data, err := ec.unmarshalNString2string(ctx, v) + 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.Recipient = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOInviteInviteStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, v) + 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.Status = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOInviteRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + 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.Role = data - case "sendAttempts": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttempts")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.SendAttempts = data - case "requestorID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RequestorID = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateNoteInput(ctx context.Context, obj interface{}) (generated.CreateNoteInput, error) { - var it generated.CreateNoteInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "text", "ownerID", "entityID"} - 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) + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.Tags = data - case "text": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.Text = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "entityID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EntityID = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateOauthProviderInput(ctx context.Context, obj interface{}) (generated.CreateOauthProviderInput, error) { - var it generated.CreateOauthProviderInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "name", "clientID", "clientSecret", "redirectURL", "scopes", "authURL", "tokenURL", "authStyle", "infoURL", "ownerID"} - 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) + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Name = data - case "clientID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientID = data - case "clientSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientSecret = data - case "redirectURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURL")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RedirectURL = data - case "scopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Scopes = data - case "authURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURL")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AuthURL = data - case "tokenURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURL")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TokenURL = data - case "authStyle": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyle")) - data, err := ec.unmarshalNUint2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AuthStyle = data - case "infoURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURL")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.InfoURL = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerID = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateOhAuthTooTokenInput(ctx context.Context, obj interface{}) (generated.CreateOhAuthTooTokenInput, error) { - var it generated.CreateOhAuthTooTokenInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "clientID", "scopes", "nonce", "claimsUserID", "claimsUsername", "claimsEmail", "claimsEmailVerified", "claimsGroups", "claimsPreferredUsername", "connectorID", "connectorData", "lastUsed", "integrationIDs", "eventIDs"} - 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) + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Tags = data - case "clientID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientID = data - case "scopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Scopes = data - case "nonce": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonce")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Nonce = data - case "claimsUserID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserID")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsUserID = data - case "claimsUsername": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsername")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsUsername = data - case "claimsEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmail")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedByContainsFold = data + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOGroupMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) if err != nil { return it, err } - it.ClaimsEmail = data - case "claimsEmailVerified": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailVerified")) - data, err := ec.unmarshalNBoolean2bool(ctx, v) + it.Role = data + case "roleNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) + data, err := ec.unmarshalOGroupMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) if err != nil { return it, err } - it.ClaimsEmailVerified = data - case "claimsGroups": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsGroups")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.RoleNEQ = data + case "roleIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) + data, err := ec.unmarshalOGroupMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) if err != nil { return it, err } - it.ClaimsGroups = data - case "claimsPreferredUsername": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsername")) - data, err := ec.unmarshalNString2string(ctx, v) + it.RoleIn = data + case "roleNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) + data, err := ec.unmarshalOGroupMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) if err != nil { return it, err } - it.ClaimsPreferredUsername = data - case "connectorID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorID")) - data, err := ec.unmarshalNString2string(ctx, v) + it.RoleNotIn = data + case "groupID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ConnectorID = data - case "connectorData": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorData")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.ConnectorData = data - case "lastUsed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsed")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.LastUsed = data - case "integrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.IntegrationIDs = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.GroupIDNotIn = data + case "groupIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateOrgMembershipInput(ctx context.Context, obj interface{}) (generated.CreateOrgMembershipInput, error) { - var it generated.CreateOrgMembershipInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"role", "organizationID", "userID", "eventIDs"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOOrgMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + it.GroupIDGT = data + case "groupIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Role = data - case "organizationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) - data, err := ec.unmarshalNID2string(ctx, v) + it.GroupIDGTE = data + case "groupIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationID = data - case "userID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) - data, err := ec.unmarshalNID2string(ctx, v) + it.GroupIDLT = data + case "groupIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserID = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.GroupIDLTE = data + case "groupIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Context, obj interface{}) (generated.CreateOrganizationInput, error) { - var it generated.CreateOrganizationInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "name", "displayName", "description", "personalOrg", "avatarRemoteURL", "dedicatedDb", "parentID", "groupIDs", "templateIDs", "integrationIDs", "settingID", "documentdatumIDs", "entitlementIDs", "organizationEntitlementIDs", "personalAccessTokenIDs", "apiTokenIDs", "oauthproviderIDs", "userIDs", "inviteIDs", "subscriberIDs", "webhookIDs", "eventIDs", "secretIDs", "featureIDs", "fileIDs", "entitlementplanIDs", "entityIDs", "entitytypeIDs", "contactIDs", "noteIDs", "createOrgSettings"} - 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) + 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.Tags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) + 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.Name = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + it.GroupIDHasSuffix = data + case "groupIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + 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.Description = data - case "personalOrg": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrg")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.GroupIDContainsFold = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PersonalOrg = data - case "avatarRemoteURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) + 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.AvatarRemoteURL = data - case "dedicatedDb": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dedicatedDb")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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.DedicatedDb = data - case "parentID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.ParentID = data - case "groupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserIDNotIn = data + case "userIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.GroupIDs = data - case "templateIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserIDGT = data + case "userIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateIDs = data - case "integrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserIDGTE = data + case "userIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IntegrationIDs = data - case "settingID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.UserIDLT = data + case "userIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SettingID = data - case "documentdatumIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentdatumIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserIDLTE = data + case "userIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DocumentdatumIDs = data - case "entitlementIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entitlementIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.EntitlementIDs = data - case "organizationEntitlementIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationEntitlementIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.OrganizationEntitlementIDs = data - case "personalAccessTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalAccessTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserIDHasSuffix = data + case "userIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PersonalAccessTokenIDs = data - case "apiTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.APITokenIDs = data - case "oauthproviderIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("oauthproviderIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserIDContainsFold = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGroupMembershipWhereInput(ctx context.Context, obj interface{}) (generated.GroupMembershipWhereInput, error) { + var it generated.GroupMembershipWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "role", "roleNEQ", "roleIn", "roleNotIn", "groupID", "userID"} + 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.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, v) if err != nil { return it, err } - it.OauthproviderIDs = data - case "userIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOGroupMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.UserIDs = data - case "inviteIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("inviteIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOGroupMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.InviteIDs = data - case "subscriberIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.SubscriberIDs = data - case "webhookIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.WebhookIDs = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) + 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.EventIDs = data - case "secretIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretIDs")) + 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.SecretIDs = data - case "featureIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureIDs = data - case "fileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.FileIDs = data - case "entitlementplanIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entitlementplanIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntitlementplanIDs = data - case "entityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityIDs = data - case "entitytypeIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entitytypeIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntitytypeIDs = data - case "contactIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.ContactIDs = data - case "noteIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("noteIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.NoteIDs = data - case "createOrgSettings": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createOrgSettings")) - data, err := ec.unmarshalOCreateOrganizationSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx, v) + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - if err = ec.resolvers.CreateOrganizationInput().CreateOrgSettings(ctx, &it, data); err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateOrganizationSettingInput(ctx context.Context, obj interface{}) (generated.CreateOrganizationSettingInput, error) { - var it generated.CreateOrganizationSettingInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "domains", "billingContact", "billingEmail", "billingPhone", "billingAddress", "taxIdentifier", "geoLocation", "organizationID", "fileIDs"} - 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) + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.Tags = data - case "domains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domains")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.Domains = data - case "billingContact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContact")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.BillingContact = data - case "billingEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmail")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.BillingEmail = data - case "billingPhone": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhone")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.BillingPhone = data - case "billingAddress": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddress")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.BillingAddress = data - case "taxIdentifier": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifier")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TaxIdentifier = data - case "geoLocation": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocation")) - data, err := ec.unmarshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, v) + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.GeoLocation = data - case "organizationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OrganizationID = data - case "fileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.FileIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreatePersonalAccessTokenInput(ctx context.Context, obj interface{}) (generated.CreatePersonalAccessTokenInput, error) { - var it generated.CreatePersonalAccessTokenInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "name", "expiresAt", "description", "scopes", "lastUsedAt", "ownerID", "organizationIDs", "eventIDs"} - 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) + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.Tags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.Name = data - case "expiresAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ExpiresAt = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.Description = data - case "scopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.Scopes = data - case "lastUsedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAt")) + 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.LastUsedAt = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalNID2string(ctx, v) + 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.OwnerID = data - case "organizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.OrganizationIDs = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateSubscriberInput(ctx context.Context, obj interface{}) (generated.CreateSubscriberInput, error) { - var it generated.CreateSubscriberInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "email", "phoneNumber", "ownerID", "eventIDs"} - 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) + 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.Tags = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalNString2string(ctx, v) + 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.Email = data - case "phoneNumber": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.PhoneNumber = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateTFASettingInput(ctx context.Context, obj interface{}) (generated.CreateTFASettingInput, error) { - var it generated.CreateTFASettingInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "totpAllowed", "ownerID"} - 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) + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Tags = data - case "totpAllowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totpAllowed")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TotpAllowed = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerID = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateTemplateInput(ctx context.Context, obj interface{}) (generated.CreateTemplateInput, error) { - var it generated.CreateTemplateInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "name", "templateType", "description", "jsonconfig", "uischema", "ownerID", "documentIDs", "fileIDs"} - 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) + 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.Tags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) + 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.Name = data - case "templateType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateType")) - data, err := ec.unmarshalOTemplateDocumentType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, v) + 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.TemplateType = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.Description = data - case "jsonconfig": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jsonconfig")) - data, err := ec.unmarshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, v) + 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.Jsonconfig = data - case "uischema": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uischema")) - data, err := ec.unmarshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, v) + 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.Uischema = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerID = data - case "documentIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("documentIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.DocumentIDs = data - case "fileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.FileIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, obj interface{}) (generated.CreateUserInput, error) { - var it generated.CreateUserInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "email", "firstName", "lastName", "displayName", "avatarRemoteURL", "avatarLocalFile", "avatarUpdatedAt", "lastSeen", "password", "sub", "authProvider", "role", "personalAccessTokenIDs", "tfaSettingIDs", "settingID", "emailVerificationTokenIDs", "passwordResetTokenIDs", "groupIDs", "organizationIDs", "webauthnIDs", "fileIDs", "fileID", "eventIDs"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "tags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + 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.Tags = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalNString2string(ctx, v) + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Email = data - case "firstName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstName")) + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FirstName = data - case "lastName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastName")) + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastName = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) - data, err := ec.unmarshalNString2string(ctx, v) + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "avatarRemoteURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURL = data - case "avatarLocalFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFile")) + 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.AvatarLocalFile = data - case "avatarUpdatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.AvatarUpdatedAt = data - case "lastSeen": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeen")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.LastSeen = data - case "password": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.Password = data - case "sub": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sub")) + 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.Sub = data - case "authProvider": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProvider")) - data, err := ec.unmarshalOUserAuthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, v) + 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.AuthProvider = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOUserRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.Role = data - case "personalAccessTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalAccessTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.PersonalAccessTokenIDs = data - case "tfaSettingIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSettingIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.TfaSettingIDs = data - case "settingID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) - data, err := ec.unmarshalNID2string(ctx, v) + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.SettingID = data - case "emailVerificationTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailVerificationTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EmailVerificationTokenIDs = data - case "passwordResetTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("passwordResetTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.PasswordResetTokenIDs = data - case "groupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.GroupIDs = data - case "organizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.OrganizationIDs = data - case "webauthnIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webauthnIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.WebauthnIDs = data - case "fileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.FileIDs = data - case "fileID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FileID = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateUserSettingInput(ctx context.Context, obj interface{}) (generated.CreateUserSettingInput, error) { - var it generated.CreateUserSettingInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "locked", "silencedAt", "suspendedAt", "status", "emailConfirmed", "isWebauthnAllowed", "isTfaEnabled", "userID", "defaultOrgID", "fileIDs"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "tags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Tags = data - case "locked": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locked")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.Locked = data - case "silencedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.SilencedAt = data - case "suspendedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SuspendedAt = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOUserSettingUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Status = data - case "emailConfirmed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailConfirmed")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailConfirmed = data - case "isWebauthnAllowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowed")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IsWebauthnAllowed = data - case "isTfaEnabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IsTfaEnabled = data - case "userID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserID = data - case "defaultOrgID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultOrgID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DefaultOrgID = data - case "fileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.FileIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateWebhookInput(ctx context.Context, obj interface{}) (generated.CreateWebhookInput, error) { - var it generated.CreateWebhookInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "name", "description", "destinationURL", "enabled", "failures", "lastError", "lastResponse", "ownerID", "eventIDs", "integrationIDs"} - 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) + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + 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")) + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Description = data - case "destinationURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURL")) - data, err := ec.unmarshalNString2string(ctx, v) + it.DeletedByContainsFold = data + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOGroupMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) if err != nil { return it, err } - it.DestinationURL = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Role = data + case "roleNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) + data, err := ec.unmarshalOGroupMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) if err != nil { return it, err } - it.Enabled = data - case "failures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failures")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.RoleNEQ = data + case "roleIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) + data, err := ec.unmarshalOGroupMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) if err != nil { return it, err } - it.Failures = data - case "lastError": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastError")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RoleIn = data + case "roleNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) + data, err := ec.unmarshalOGroupMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) if err != nil { return it, err } - it.LastError = data - case "lastResponse": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponse")) + it.RoleNotIn = data + case "groupID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastResponse = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.GroupID = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "eventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserID = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputGroupOrder(ctx context.Context, obj interface{}) (generated.GroupOrder, error) { + var it generated.GroupOrder + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + 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.EventIDs = data - case "integrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.Direction = data + case "field": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) + data, err := ec.unmarshalNGroupOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderField(ctx, v) if err != nil { return it, err } - it.IntegrationIDs = data + it.Field = data } } return it, nil } -func (ec *executionContext) unmarshalInputDocumentDataHistoryWhereInput(ctx context.Context, obj interface{}) (generated.DocumentDataHistoryWhereInput, error) { - var it generated.DocumentDataHistoryWhereInput +func (ec *executionContext) unmarshalInputGroupSettingHistoryWhereInput(ctx context.Context, obj interface{}) (generated.GroupSettingHistoryWhereInput, error) { + var it generated.GroupSettingHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "templateID", "templateIDNEQ", "templateIDIn", "templateIDNotIn", "templateIDGT", "templateIDGTE", "templateIDLT", "templateIDLTE", "templateIDContains", "templateIDHasPrefix", "templateIDHasSuffix", "templateIDEqualFold", "templateIDContainsFold"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "visibility", "visibilityNEQ", "visibilityIn", "visibilityNotIn", "joinPolicy", "joinPolicyNEQ", "joinPolicyIn", "joinPolicyNotIn", "syncToSlack", "syncToSlackNEQ", "syncToSlackIsNil", "syncToSlackNotNil", "syncToGithub", "syncToGithubNEQ", "syncToGithubIsNil", "syncToGithubNotNil", "groupID", "groupIDNEQ", "groupIDIn", "groupIDNotIn", "groupIDGT", "groupIDGTE", "groupIDLT", "groupIDLTE", "groupIDContains", "groupIDHasPrefix", "groupIDHasSuffix", "groupIDIsNil", "groupIDNotNil", "groupIDEqualFold", "groupIDContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -154826,21 +243940,21 @@ func (ec *executionContext) unmarshalInputDocumentDataHistoryWhereInput(ctx cont switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalODocumentDataHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOGroupSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalODocumentDataHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOGroupSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalODocumentDataHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOGroupSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -155078,28 +244192,28 @@ func (ec *executionContext) unmarshalInputDocumentDataHistoryWhereInput(ctx cont it.RefContainsFold = data case "operation": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalODocumentDataHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOGroupSettingHistoryOpType2ᚖ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.unmarshalODocumentDataHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOGroupSettingHistoryOpType2ᚖ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.unmarshalODocumentDataHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOGroupSettingHistoryOpType2ᚕ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.unmarshalODocumentDataHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOGroupSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } @@ -155629,216 +244743,237 @@ func (ec *executionContext) unmarshalInputDocumentDataHistoryWhereInput(ctx cont return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + case "visibility": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibility")) + data, err := ec.unmarshalOGroupSettingHistoryVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(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) + it.Visibility = data + case "visibilityNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibilityNEQ")) + data, err := ec.unmarshalOGroupSettingHistoryVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(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) + it.VisibilityNEQ = data + case "visibilityIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibilityIn")) + data, err := ec.unmarshalOGroupSettingHistoryVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(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) + it.VisibilityIn = data + case "visibilityNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibilityNotIn")) + data, err := ec.unmarshalOGroupSettingHistoryVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.VisibilityNotIn = data + case "joinPolicy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicy")) + data, err := ec.unmarshalOGroupSettingHistoryJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.JoinPolicy = data + case "joinPolicyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicyNEQ")) + data, err := ec.unmarshalOGroupSettingHistoryJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.JoinPolicyNEQ = data + case "joinPolicyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicyIn")) + data, err := ec.unmarshalOGroupSettingHistoryJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.JoinPolicyIn = data + case "joinPolicyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicyNotIn")) + data, err := ec.unmarshalOGroupSettingHistoryJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.JoinPolicyNotIn = data + case "syncToSlack": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlack")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.SyncToSlack = data + case "syncToSlackNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlackNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.SyncToSlackNEQ = data + case "syncToSlackIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlackIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + it.SyncToSlackIsNil = data + case "syncToSlackNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlackNotNil")) 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) + it.SyncToSlackNotNil = data + case "syncToGithub": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithub")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.SyncToGithub = data + case "syncToGithubNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithubNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.SyncToGithubNEQ = data + case "syncToGithubIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithubIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDContainsFold = data - case "templateID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateID")) + it.SyncToGithubIsNil = data + case "syncToGithubNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithubNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SyncToGithubNotNil = data + case "groupID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateID = data - case "templateIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDNEQ")) + 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.TemplateIDNEQ = data - case "templateIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDIn")) + 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.TemplateIDIn = data - case "templateIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDNotIn")) + 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.TemplateIDNotIn = data - case "templateIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDGT")) + it.GroupIDNotIn = data + case "groupIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateIDGT = data - case "templateIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDGTE")) + it.GroupIDGT = data + case "groupIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateIDGTE = data - case "templateIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDLT")) + it.GroupIDGTE = data + case "groupIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateIDLT = data - case "templateIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDLTE")) + it.GroupIDLT = data + case "groupIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateIDLTE = data - case "templateIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDContains")) + it.GroupIDLTE = data + case "groupIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateIDContains = data - case "templateIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDHasPrefix")) + 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.TemplateIDHasPrefix = data - case "templateIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDHasSuffix")) + 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.TemplateIDHasSuffix = data - case "templateIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDEqualFold")) + 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.TemplateIDEqualFold = data - case "templateIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDContainsFold")) + 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.TemplateIDContainsFold = data + it.GroupIDContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputDocumentDataWhereInput(ctx context.Context, obj interface{}) (generated.DocumentDataWhereInput, error) { - var it generated.DocumentDataWhereInput +func (ec *executionContext) unmarshalInputGroupSettingWhereInput(ctx context.Context, obj interface{}) (generated.GroupSettingWhereInput, error) { + var it generated.GroupSettingWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "templateID", "templateIDNEQ", "templateIDIn", "templateIDNotIn", "templateIDGT", "templateIDGTE", "templateIDLT", "templateIDLTE", "templateIDContains", "templateIDHasPrefix", "templateIDHasSuffix", "templateIDEqualFold", "templateIDContainsFold", "hasOwner", "hasOwnerWith", "hasTemplate", "hasTemplateWith", "hasEntity", "hasEntityWith", "hasFiles", "hasFilesWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "visibility", "visibilityNEQ", "visibilityIn", "visibilityNotIn", "joinPolicy", "joinPolicyNEQ", "joinPolicyIn", "joinPolicyNotIn", "syncToSlack", "syncToSlackNEQ", "syncToSlackIsNil", "syncToSlackNotNil", "syncToGithub", "syncToGithubNEQ", "syncToGithubIsNil", "syncToGithubNotNil", "groupID", "groupIDNEQ", "groupIDIn", "groupIDNotIn", "groupIDGT", "groupIDGTE", "groupIDLT", "groupIDLTE", "groupIDContains", "groupIDHasPrefix", "groupIDHasSuffix", "groupIDIsNil", "groupIDNotNil", "groupIDEqualFold", "groupIDContainsFold", "hasGroup", "hasGroupWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -155847,21 +244982,21 @@ func (ec *executionContext) unmarshalInputDocumentDataWhereInput(ctx context.Con switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, v) + data, err := ec.unmarshalOGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOGroupSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOGroupSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -156461,272 +245596,251 @@ func (ec *executionContext) unmarshalInputDocumentDataWhereInput(ctx context.Con return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + case "visibility": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibility")) + data, err := ec.unmarshalOGroupSettingVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(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) + it.Visibility = data + case "visibilityNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibilityNEQ")) + data, err := ec.unmarshalOGroupSettingVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(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) + it.VisibilityNEQ = data + case "visibilityIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibilityIn")) + data, err := ec.unmarshalOGroupSettingVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(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) + it.VisibilityIn = data + case "visibilityNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibilityNotIn")) + data, err := ec.unmarshalOGroupSettingVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.VisibilityNotIn = data + case "joinPolicy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicy")) + data, err := ec.unmarshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.JoinPolicy = data + case "joinPolicyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicyNEQ")) + data, err := ec.unmarshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.JoinPolicyNEQ = data + case "joinPolicyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicyIn")) + data, err := ec.unmarshalOGroupSettingJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.JoinPolicyIn = data + case "joinPolicyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicyNotIn")) + data, err := ec.unmarshalOGroupSettingJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.JoinPolicyNotIn = data + case "syncToSlack": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlack")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.SyncToSlack = data + case "syncToSlackNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlackNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.SyncToSlackNEQ = data + case "syncToSlackIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlackIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + it.SyncToSlackIsNil = data + case "syncToSlackNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlackNotNil")) 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) + it.SyncToSlackNotNil = data + case "syncToGithub": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithub")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.SyncToGithub = data + case "syncToGithubNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithubNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.SyncToGithubNEQ = data + case "syncToGithubIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithubIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDContainsFold = data - case "templateID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.SyncToGithubIsNil = data + case "syncToGithubNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithubNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TemplateID = data - case "templateIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDNEQ")) + it.SyncToGithubNotNil = data + case "groupID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateIDNEQ = data - case "templateIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.TemplateIDIn = data - case "templateIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDNotIn")) + 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.TemplateIDNotIn = data - case "templateIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TemplateIDGT = data - case "templateIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.TemplateIDGTE = data - case "templateIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDLT")) + it.GroupIDNotIn = data + case "groupIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDGT")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateIDLT = data - case "templateIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDLTE")) + it.GroupIDGT = data + case "groupIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDGTE")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateIDLTE = data - case "templateIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDContains")) + it.GroupIDGTE = data + case "groupIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDLT")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateIDContains = data - case "templateIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDHasPrefix")) + it.GroupIDLT = data + case "groupIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDLTE")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateIDHasPrefix = data - case "templateIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDHasSuffix")) + it.GroupIDLTE = data + case "groupIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDContains")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateIDHasSuffix = data - case "templateIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDEqualFold")) + 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.TemplateIDEqualFold = data - case "templateIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateIDContainsFold")) + 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.TemplateIDContainsFold = 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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasOwnerWith = data - case "hasTemplate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplate")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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.HasTemplate = data - case "hasTemplateWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplateWith")) - data, err := ec.unmarshalOTemplateWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInputᚄ(ctx, v) + 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.HasTemplateWith = data - case "hasEntity": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntity")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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.HasEntity = data - case "hasEntityWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityWith")) - data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + 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.HasEntityWith = data - case "hasFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) + it.GroupIDContainsFold = data + case "hasGroup": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroup")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasFiles = data - case "hasFilesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + it.HasGroup = data + case "hasGroupWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasFilesWith = data + it.HasGroupWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputEntitlementHistoryWhereInput(ctx context.Context, obj interface{}) (generated.EntitlementHistoryWhereInput, error) { - var it generated.EntitlementHistoryWhereInput +func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, obj interface{}) (generated.GroupWhereInput, error) { + var it generated.GroupWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "planID", "planIDNEQ", "planIDIn", "planIDNotIn", "planIDGT", "planIDGTE", "planIDLT", "planIDLTE", "planIDContains", "planIDHasPrefix", "planIDHasSuffix", "planIDEqualFold", "planIDContainsFold", "organizationID", "organizationIDNEQ", "organizationIDIn", "organizationIDNotIn", "organizationIDGT", "organizationIDGTE", "organizationIDLT", "organizationIDLTE", "organizationIDContains", "organizationIDHasPrefix", "organizationIDHasSuffix", "organizationIDEqualFold", "organizationIDContainsFold", "externalCustomerID", "externalCustomerIDNEQ", "externalCustomerIDIn", "externalCustomerIDNotIn", "externalCustomerIDGT", "externalCustomerIDGTE", "externalCustomerIDLT", "externalCustomerIDLTE", "externalCustomerIDContains", "externalCustomerIDHasPrefix", "externalCustomerIDHasSuffix", "externalCustomerIDIsNil", "externalCustomerIDNotNil", "externalCustomerIDEqualFold", "externalCustomerIDContainsFold", "externalSubscriptionID", "externalSubscriptionIDNEQ", "externalSubscriptionIDIn", "externalSubscriptionIDNotIn", "externalSubscriptionIDGT", "externalSubscriptionIDGTE", "externalSubscriptionIDLT", "externalSubscriptionIDLTE", "externalSubscriptionIDContains", "externalSubscriptionIDHasPrefix", "externalSubscriptionIDHasSuffix", "externalSubscriptionIDIsNil", "externalSubscriptionIDNotNil", "externalSubscriptionIDEqualFold", "externalSubscriptionIDContainsFold", "expires", "expiresNEQ", "expiresAt", "expiresAtNEQ", "expiresAtIn", "expiresAtNotIn", "expiresAtGT", "expiresAtGTE", "expiresAtLT", "expiresAtLTE", "expiresAtIsNil", "expiresAtNotNil", "cancelled", "cancelledNEQ"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "hasOwner", "hasOwnerWith", "hasSetting", "hasSettingWith", "hasUsers", "hasUsersWith", "hasEvents", "hasEventsWith", "hasIntegrations", "hasIntegrationsWith", "hasFiles", "hasFilesWith", "hasMembers", "hasMembersWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -156735,21 +245849,21 @@ func (ec *executionContext) unmarshalInputEntitlementHistoryWhereInput(ctx conte switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOEntitlementHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOEntitlementHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOEntitlementHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -156824,195 +245938,6 @@ func (ec *executionContext) unmarshalInputEntitlementHistoryWhereInput(ctx conte 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 "historyTimeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNEQ = data - case "historyTimeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeIn = data - case "historyTimeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNotIn = 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 "refGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGT = data - case "refGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGTE = data - case "refLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLT = data - case "refLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLTE = 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.unmarshalOEntitlementHistoryOpType2ᚖ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.unmarshalOEntitlementHistoryOpType2ᚖ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.unmarshalOEntitlementHistoryOpType2ᚕ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.unmarshalOEntitlementHistoryOpType2ᚕ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) @@ -157540,77 +246465,77 @@ func (ec *executionContext) unmarshalInputEntitlementHistoryWhereInput(ctx conte it.DeletedByContainsFold = data case "ownerID": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.unmarshalOString2ᚖstring(ctx, v) + 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.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.unmarshalOString2ᚕstringᚄ(ctx, v) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } it.OwnerIDNotIn = data case "ownerIDGT": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.OwnerIDGT = data case "ownerIDGTE": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.OwnerIDGTE = data case "ownerIDLT": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.OwnerIDLT = data case "ownerIDLTE": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.OwnerIDLTE = data case "ownerIDContains": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.unmarshalOString2ᚖstring(ctx, v) + 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.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } @@ -157631,522 +246556,350 @@ func (ec *executionContext) unmarshalInputEntitlementHistoryWhereInput(ctx conte it.OwnerIDNotNil = data case "ownerIDEqualFold": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.OwnerIDContainsFold = data - case "planID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PlanID = data - case "planIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PlanIDNEQ = data - case "planIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.PlanIDIn = data - case "planIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.PlanIDNotIn = data - case "planIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PlanIDGT = data - case "planIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PlanIDGTE = data - case "planIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PlanIDLT = data - case "planIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PlanIDLTE = data - case "planIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PlanIDContains = data - case "planIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PlanIDHasPrefix = data - case "planIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PlanIDHasSuffix = data - case "planIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PlanIDEqualFold = data - case "planIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.PlanIDContainsFold = data - case "organizationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationID = data - case "organizationIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNEQ")) + 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.OrganizationIDNEQ = data - case "organizationIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIn")) + 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.OrganizationIDIn = data - case "organizationIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotIn")) + 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.OrganizationIDNotIn = data - case "organizationIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGT")) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDGT = data - case "organizationIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGTE")) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDGTE = data - case "organizationIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLT")) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDLT = data - case "organizationIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLTE")) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDLTE = data - case "organizationIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContains")) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDContains = data - case "organizationIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasPrefix")) + 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.OrganizationIDHasPrefix = data - case "organizationIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasSuffix")) + 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.OrganizationIDHasSuffix = data - case "organizationIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDEqualFold")) + 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.OrganizationIDEqualFold = data - case "organizationIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContainsFold")) + 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.OrganizationIDContainsFold = data - case "externalCustomerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerID")) + it.NameContainsFold = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerID = data - case "externalCustomerIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDNEQ")) + it.DisplayName = data + case "displayNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDNEQ = data - case "externalCustomerIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDIn")) + it.DisplayNameNEQ = data + case "displayNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDIn = data - case "externalCustomerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDNotIn")) + it.DisplayNameIn = data + case "displayNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDNotIn = data - case "externalCustomerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ExternalCustomerIDGT = data - case "externalCustomerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ExternalCustomerIDGTE = data - case "externalCustomerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ExternalCustomerIDLT = data - case "externalCustomerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ExternalCustomerIDLTE = data - case "externalCustomerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ExternalCustomerIDContains = data - case "externalCustomerIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ExternalCustomerIDHasPrefix = data - case "externalCustomerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ExternalCustomerIDHasSuffix = data - case "externalCustomerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.ExternalCustomerIDIsNil = data - case "externalCustomerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.ExternalCustomerIDNotNil = data - case "externalCustomerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ExternalCustomerIDEqualFold = data - case "externalCustomerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ExternalCustomerIDContainsFold = data - case "externalSubscriptionID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionID")) + it.DisplayNameNotIn = data + case "displayNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionID = data - case "externalSubscriptionIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDNEQ")) + it.DisplayNameGT = data + case "displayNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDNEQ = data - case "externalSubscriptionIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ExternalSubscriptionIDIn = data - case "externalSubscriptionIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ExternalSubscriptionIDNotIn = data - case "externalSubscriptionIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDGT")) + it.DisplayNameGTE = data + case "displayNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDGT = data - case "externalSubscriptionIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDGTE")) + it.DisplayNameLT = data + case "displayNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDGTE = data - case "externalSubscriptionIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDLT")) + it.DisplayNameLTE = data + case "displayNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDLT = data - case "externalSubscriptionIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDLTE")) + it.DisplayNameContains = data + case "displayNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDLTE = data - case "externalSubscriptionIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDContains")) + it.DisplayNameHasPrefix = data + case "displayNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDContains = data - case "externalSubscriptionIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDHasPrefix")) + it.DisplayNameHasSuffix = data + case "displayNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDHasPrefix = data - case "externalSubscriptionIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDHasSuffix")) + it.DisplayNameEqualFold = data + case "displayNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDHasSuffix = data - case "externalSubscriptionIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.ExternalSubscriptionIDIsNil = data - case "externalSubscriptionIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.ExternalSubscriptionIDNotNil = data - case "externalSubscriptionIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DisplayNameContainsFold = data + case "hasOwner": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDEqualFold = data - case "externalSubscriptionIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasOwner = data + case "hasOwnerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDContainsFold = data - case "expires": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expires")) + it.HasOwnerWith = data + case "hasSetting": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSetting")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Expires = data - case "expiresNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.HasSetting = data + case "hasSettingWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSettingWith")) + data, err := ec.unmarshalOGroupSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresNEQ = data - case "expiresAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.HasSettingWith = data + case "hasUsers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUsers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ExpiresAt = data - case "expiresAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.HasUsers = data + case "hasUsersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUsersWith")) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresAtNEQ = data - case "expiresAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.HasUsersWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ExpiresAtIn = data - case "expiresAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresAtNotIn = data - case "expiresAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.HasEventsWith = data + case "hasIntegrations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrations")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ExpiresAtGT = data - case "expiresAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.HasIntegrations = data + case "hasIntegrationsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationsWith")) + data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresAtGTE = data - case "expiresAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.HasIntegrationsWith = data + case "hasFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ExpiresAtLT = data - case "expiresAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.HasFiles = data + case "hasFilesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresAtLTE = data - case "expiresAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.HasFilesWith = data + case "hasMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasMembers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ExpiresAtIsNil = data - case "expiresAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.HasMembers = data + case "hasMembersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasMembersWith")) + data, err := ec.unmarshalOGroupMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresAtNotNil = data - case "cancelled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cancelled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.HasMembersWith = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputHushHistoryOrder(ctx context.Context, obj interface{}) (generated.HushHistoryOrder, error) { + var it generated.HushHistoryOrder + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + 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.Cancelled = data - case "cancelledNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cancelledNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Direction = data + case "field": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) + data, err := ec.unmarshalNHushHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryOrderField(ctx, v) if err != nil { return it, err } - it.CancelledNEQ = data + it.Field = data } } return it, nil } -func (ec *executionContext) unmarshalInputEntitlementPlanFeatureHistoryWhereInput(ctx context.Context, obj interface{}) (generated.EntitlementPlanFeatureHistoryWhereInput, error) { - var it generated.EntitlementPlanFeatureHistoryWhereInput +func (ec *executionContext) unmarshalInputHushHistoryWhereInput(ctx context.Context, obj interface{}) (generated.HushHistoryWhereInput, error) { + var it generated.HushHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "planID", "planIDNEQ", "planIDIn", "planIDNotIn", "planIDGT", "planIDGTE", "planIDLT", "planIDLTE", "planIDContains", "planIDHasPrefix", "planIDHasSuffix", "planIDEqualFold", "planIDContainsFold", "featureID", "featureIDNEQ", "featureIDIn", "featureIDNotIn", "featureIDGT", "featureIDGTE", "featureIDLT", "featureIDLTE", "featureIDContains", "featureIDHasPrefix", "featureIDHasSuffix", "featureIDEqualFold", "featureIDContainsFold"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "kind", "kindNEQ", "kindIn", "kindNotIn", "kindGT", "kindGTE", "kindLT", "kindLTE", "kindContains", "kindHasPrefix", "kindHasSuffix", "kindIsNil", "kindNotNil", "kindEqualFold", "kindContainsFold", "secretName", "secretNameNEQ", "secretNameIn", "secretNameNotIn", "secretNameGT", "secretNameGTE", "secretNameLT", "secretNameLTE", "secretNameContains", "secretNameHasPrefix", "secretNameHasSuffix", "secretNameIsNil", "secretNameNotNil", "secretNameEqualFold", "secretNameContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -158155,21 +246908,21 @@ func (ec *executionContext) unmarshalInputEntitlementPlanFeatureHistoryWhereInpu switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOEntitlementPlanFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOHushHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOEntitlementPlanFeatureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOHushHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOEntitlementPlanFeatureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOHushHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -158407,28 +247160,28 @@ func (ec *executionContext) unmarshalInputEntitlementPlanFeatureHistoryWhereInpu it.RefContainsFold = data case "operation": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOEntitlementPlanFeatureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOHushHistoryOpType2ᚖ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.unmarshalOEntitlementPlanFeatureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOHushHistoryOpType2ᚖ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.unmarshalOEntitlementPlanFeatureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOHushHistoryOpType2ᚕ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.unmarshalOEntitlementPlanFeatureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOHushHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } @@ -158958,307 +247711,359 @@ func (ec *executionContext) unmarshalInputEntitlementPlanFeatureHistoryWhereInpu return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 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")) + 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.OwnerIDNEQ = data - case "ownerIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + 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.OwnerIDIn = data - case "ownerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + 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.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContains = data - case "ownerIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + 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.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + 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.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")) + 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.OwnerIDEqualFold = data - case "ownerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + 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.OwnerIDContainsFold = data - case "planID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planID")) + it.NameContainsFold = data + case "kind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanID = data - case "planIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDNEQ")) + it.Kind = data + case "kindNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDNEQ = data - case "planIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDIn")) + it.KindNEQ = data + case "kindIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.PlanIDIn = data - case "planIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDNotIn")) + it.KindIn = data + case "kindNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.PlanIDNotIn = data - case "planIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDGT")) + it.KindNotIn = data + case "kindGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDGT = data - case "planIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDGTE")) + it.KindGT = data + case "kindGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDGTE = data - case "planIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDLT")) + it.KindGTE = data + case "kindLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDLT = data - case "planIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDLTE")) + it.KindLT = data + case "kindLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDLTE = data - case "planIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDContains")) + it.KindLTE = data + case "kindContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDContains = data - case "planIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDHasPrefix")) + it.KindContains = data + case "kindHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDHasPrefix = data - case "planIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDHasSuffix")) + it.KindHasPrefix = data + case "kindHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDHasSuffix = data - case "planIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDEqualFold")) + it.KindHasSuffix = data + case "kindIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.KindIsNil = data + case "kindNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.KindNotNil = data + case "kindEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDEqualFold = data - case "planIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDContainsFold")) + it.KindEqualFold = data + case "kindContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDContainsFold = data - case "featureID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureID")) + it.KindContainsFold = data + case "secretName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureID = data - case "featureIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDNEQ")) + it.SecretName = data + case "secretNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureIDNEQ = data - case "featureIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDIn")) + it.SecretNameNEQ = data + case "secretNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.FeatureIDIn = data - case "featureIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDNotIn")) + it.SecretNameIn = data + case "secretNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.FeatureIDNotIn = data - case "featureIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDGT")) + it.SecretNameNotIn = data + case "secretNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureIDGT = data - case "featureIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDGTE")) + it.SecretNameGT = data + case "secretNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureIDGTE = data - case "featureIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDLT")) + it.SecretNameGTE = data + case "secretNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureIDLT = data - case "featureIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDLTE")) + it.SecretNameLT = data + case "secretNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureIDLTE = data - case "featureIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDContains")) + it.SecretNameLTE = data + case "secretNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureIDContains = data - case "featureIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDHasPrefix")) + it.SecretNameContains = data + case "secretNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureIDHasPrefix = data - case "featureIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDHasSuffix")) + it.SecretNameHasPrefix = data + case "secretNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureIDHasSuffix = data - case "featureIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDEqualFold")) + it.SecretNameHasSuffix = data + case "secretNameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SecretNameIsNil = data + case "secretNameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SecretNameNotNil = data + case "secretNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureIDEqualFold = data - case "featureIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("featureIDContainsFold")) + it.SecretNameEqualFold = data + case "secretNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FeatureIDContainsFold = data + it.SecretNameContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputEntitlementPlanFeatureWhereInput(ctx context.Context, obj interface{}) (generated.EntitlementPlanFeatureWhereInput, error) { - var it generated.EntitlementPlanFeatureWhereInput +func (ec *executionContext) unmarshalInputHushOrder(ctx context.Context, obj interface{}) (generated.HushOrder, error) { + var it generated.HushOrder asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold"} + 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.unmarshalNHushOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrderField(ctx, v) + if err != nil { + return it, err + } + it.Field = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputHushWhereInput(ctx context.Context, obj interface{}) (generated.HushWhereInput, error) { + var it generated.HushWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "kind", "kindNEQ", "kindIn", "kindNotIn", "kindGT", "kindGTE", "kindLT", "kindLTE", "kindContains", "kindHasPrefix", "kindHasSuffix", "kindIsNil", "kindNotNil", "kindEqualFold", "kindContainsFold", "secretName", "secretNameNEQ", "secretNameIn", "secretNameNotIn", "secretNameGT", "secretNameGTE", "secretNameLT", "secretNameLTE", "secretNameContains", "secretNameHasPrefix", "secretNameHasSuffix", "secretNameIsNil", "secretNameNotNil", "secretNameEqualFold", "secretNameContainsFold", "hasIntegrations", "hasIntegrationsWith", "hasOrganization", "hasOrganizationWith", "hasEvents", "hasEventsWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -159267,21 +248072,21 @@ func (ec *executionContext) unmarshalInputEntitlementPlanFeatureWhereInput(ctx c switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInput(ctx, v) + data, err := ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOHushWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOHushWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -159881,20 +248686,401 @@ func (ec *executionContext) unmarshalInputEntitlementPlanFeatureWhereInput(ctx c return it, err } it.DeletedByContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "kind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Kind = data + case "kindNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.KindNEQ = data + case "kindIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.KindIn = data + case "kindNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.KindNotIn = data + case "kindGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.KindGT = data + case "kindGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.KindGTE = data + case "kindLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.KindLT = data + case "kindLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.KindLTE = data + case "kindContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.KindContains = data + case "kindHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.KindHasPrefix = data + case "kindHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.KindHasSuffix = data + case "kindIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.KindIsNil = data + case "kindNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.KindNotNil = data + case "kindEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.KindEqualFold = data + case "kindContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.KindContainsFold = data + case "secretName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretName = data + case "secretNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretNameNEQ = data + case "secretNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SecretNameIn = data + case "secretNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SecretNameNotIn = data + case "secretNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretNameGT = data + case "secretNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretNameGTE = data + case "secretNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretNameLT = data + case "secretNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretNameLTE = data + case "secretNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretNameContains = data + case "secretNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretNameHasPrefix = data + case "secretNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretNameHasSuffix = data + case "secretNameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SecretNameIsNil = data + case "secretNameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SecretNameNotNil = data + case "secretNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretNameEqualFold = data + case "secretNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SecretNameContainsFold = data + case "hasIntegrations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrations")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasIntegrations = data + case "hasIntegrationsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationsWith")) + data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasIntegrationsWith = data + case "hasOrganization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganization")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOrganization = data + case "hasOrganizationWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOrganizationWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEventsWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputEntitlementPlanHistoryWhereInput(ctx context.Context, obj interface{}) (generated.EntitlementPlanHistoryWhereInput, error) { - var it generated.EntitlementPlanHistoryWhereInput +func (ec *executionContext) unmarshalInputIntegrationHistoryOrder(ctx context.Context, obj interface{}) (generated.IntegrationHistoryOrder, error) { + var it generated.IntegrationHistoryOrder asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameIsNil", "displayNameNotNil", "displayNameEqualFold", "displayNameContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionEqualFold", "versionContainsFold"} + 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.unmarshalNIntegrationHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryOrderField(ctx, v) + if err != nil { + return it, err + } + it.Field = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputIntegrationHistoryWhereInput(ctx context.Context, obj interface{}) (generated.IntegrationHistoryWhereInput, error) { + var it generated.IntegrationHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "kind", "kindNEQ", "kindIn", "kindNotIn", "kindGT", "kindGTE", "kindLT", "kindLTE", "kindContains", "kindHasPrefix", "kindHasSuffix", "kindIsNil", "kindNotNil", "kindEqualFold", "kindContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -159903,21 +249089,21 @@ func (ec *executionContext) unmarshalInputEntitlementPlanHistoryWhereInput(ctx c switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOEntitlementPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOIntegrationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOEntitlementPlanHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOIntegrationHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOEntitlementPlanHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOIntegrationHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -160155,28 +249341,28 @@ func (ec *executionContext) unmarshalInputEntitlementPlanHistoryWhereInput(ctx c it.RefContainsFold = data case "operation": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOEntitlementPlanHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOIntegrationHistoryOpType2ᚖ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.unmarshalOEntitlementPlanHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOIntegrationHistoryOpType2ᚖ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.unmarshalOEntitlementPlanHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOIntegrationHistoryOpType2ᚕ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.unmarshalOEntitlementPlanHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOIntegrationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } @@ -160811,111 +249997,6 @@ func (ec *executionContext) unmarshalInputEntitlementPlanHistoryWhereInput(ctx c return it, err } it.OwnerIDContainsFold = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayName = data - case "displayNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameNEQ = data - case "displayNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameIn = data - case "displayNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameNotIn = data - case "displayNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameGT = data - case "displayNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameGTE = data - case "displayNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameLT = data - case "displayNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameLTE = data - case "displayNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameContains = data - case "displayNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameHasPrefix = data - case "displayNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameHasSuffix = data - case "displayNameIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameIsNil = data - case "displayNameNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameNotNil = data - case "displayNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameEqualFold = data - case "displayNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameContainsFold = data case "name": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) @@ -161007,216 +250088,163 @@ func (ec *executionContext) unmarshalInputEntitlementPlanHistoryWhereInput(ctx c return it, err } it.NameContainsFold = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + case "kind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) 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")) + it.Kind = data + case "kindNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNEQ")) 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")) + it.KindNEQ = data + case "kindIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIn")) 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")) + it.KindIn = data + case "kindNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DescriptionNotIn = data - case "descriptionGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + it.KindNotIn = data + case "kindGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionGT = data - case "descriptionGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + it.KindGT = data + case "kindGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionGTE = data - case "descriptionLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + it.KindGTE = data + case "kindLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionLT = data - case "descriptionLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + it.KindLT = data + case "kindLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionLTE = data - case "descriptionContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) + it.KindLTE = data + case "kindContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContains")) 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")) + it.KindContains = data + case "kindHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasPrefix")) 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")) + it.KindHasPrefix = data + case "kindHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasSuffix")) 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")) + it.KindHasSuffix = data + case "kindIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DescriptionIsNil = data - case "descriptionNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNotNil")) + it.KindIsNil = data + case "kindNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotNil")) 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 "version": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Version = data - case "versionNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionNEQ = data - case "versionIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.VersionIn = data - case "versionNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.VersionNotIn = data - case "versionGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionGT = data - case "versionGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionGTE = data - case "versionLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionLT = data - case "versionLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionLTE = data - case "versionContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionContains = data - case "versionHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) + it.KindNotNil = data + case "kindEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.VersionHasPrefix = data - case "versionHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) + it.KindEqualFold = data + case "kindContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.VersionHasSuffix = data - case "versionEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.KindContainsFold = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputIntegrationOrder(ctx context.Context, obj interface{}) (generated.IntegrationOrder, error) { + var it generated.IntegrationOrder + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + 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.VersionEqualFold = data - case "versionContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Direction = data + case "field": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) + data, err := ec.unmarshalNIntegrationOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderField(ctx, v) if err != nil { return it, err } - it.VersionContainsFold = data + it.Field = data } } return it, nil } -func (ec *executionContext) unmarshalInputEntitlementPlanWhereInput(ctx context.Context, obj interface{}) (generated.EntitlementPlanWhereInput, error) { - var it generated.EntitlementPlanWhereInput +func (ec *executionContext) unmarshalInputIntegrationWhereInput(ctx context.Context, obj interface{}) (generated.IntegrationWhereInput, error) { + var it generated.IntegrationWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameIsNil", "displayNameNotNil", "displayNameEqualFold", "displayNameContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionEqualFold", "versionContainsFold", "hasOwner", "hasOwnerWith", "hasEntitlements", "hasEntitlementsWith", "hasBaseFeatures", "hasBaseFeaturesWith", "hasEvents", "hasEventsWith", "hasFeatures", "hasFeaturesWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "kind", "kindNEQ", "kindIn", "kindNotIn", "kindGT", "kindGTE", "kindLT", "kindLTE", "kindContains", "kindHasPrefix", "kindHasSuffix", "kindIsNil", "kindNotNil", "kindEqualFold", "kindContainsFold", "hasOwner", "hasOwnerWith", "hasSecrets", "hasSecretsWith", "hasOauth2tokens", "hasOauth2tokensWith", "hasEvents", "hasEventsWith", "hasWebhooks", "hasWebhooksWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -161225,21 +250253,21 @@ func (ec *executionContext) unmarshalInputEntitlementPlanWhereInput(ctx context. switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInput(ctx, v) + data, err := ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -161944,111 +250972,6 @@ func (ec *executionContext) unmarshalInputEntitlementPlanWhereInput(ctx context. return it, err } it.OwnerIDContainsFold = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayName = data - case "displayNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameNEQ = data - case "displayNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameIn = data - case "displayNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameNotIn = data - case "displayNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameGT = data - case "displayNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameGTE = data - case "displayNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameLT = data - case "displayNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameLTE = data - case "displayNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameContains = data - case "displayNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameHasPrefix = data - case "displayNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameHasSuffix = data - case "displayNameIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameIsNil = data - case "displayNameNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameNotNil = data - case "displayNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameEqualFold = data - case "displayNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameContainsFold = data case "name": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) @@ -162140,202 +251063,111 @@ func (ec *executionContext) unmarshalInputEntitlementPlanWhereInput(ctx context. return it, err } it.NameContainsFold = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + case "kind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) 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")) + it.Kind = data + case "kindNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNEQ")) 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")) + it.KindNEQ = data + case "kindIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIn")) 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")) + it.KindIn = data + case "kindNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DescriptionNotIn = data - case "descriptionGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + it.KindNotIn = data + case "kindGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionGT = data - case "descriptionGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + it.KindGT = data + case "kindGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionGTE = data - case "descriptionLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + it.KindGTE = data + case "kindLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionLT = data - case "descriptionLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + it.KindLT = data + case "kindLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionLTE = data - case "descriptionContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) + it.KindLTE = data + case "kindContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContains")) 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")) + it.KindContains = data + case "kindHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasPrefix")) 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")) + it.KindHasPrefix = data + case "kindHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasSuffix")) 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")) + it.KindHasSuffix = data + case "kindIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DescriptionIsNil = data - case "descriptionNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNotNil")) + it.KindIsNil = data + case "kindNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotNil")) 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 "version": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Version = data - case "versionNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionNEQ = data - case "versionIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.VersionIn = data - case "versionNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.VersionNotIn = data - case "versionGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionGT = data - case "versionGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionGTE = data - case "versionLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionLT = data - case "versionLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionLTE = data - case "versionContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionContains = data - case "versionHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionHasPrefix = data - case "versionHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.VersionHasSuffix = data - case "versionEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) + it.KindNotNil = data + case "kindEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.VersionEqualFold = data - case "versionContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) + it.KindEqualFold = data + case "kindContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.VersionContainsFold = data + it.KindContainsFold = data case "hasOwner": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -162350,34 +251182,34 @@ func (ec *executionContext) unmarshalInputEntitlementPlanWhereInput(ctx context. return it, err } it.HasOwnerWith = data - case "hasEntitlements": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlements")) + case "hasSecrets": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSecrets")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasEntitlements = data - case "hasEntitlementsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementsWith")) - data, err := ec.unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx, v) + it.HasSecrets = data + case "hasSecretsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSecretsWith")) + data, err := ec.unmarshalOHushWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasEntitlementsWith = data - case "hasBaseFeatures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasBaseFeatures")) + it.HasSecretsWith = data + case "hasOauth2tokens": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOauth2tokens")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasBaseFeatures = data - case "hasBaseFeaturesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasBaseFeaturesWith")) - data, err := ec.unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInputᚄ(ctx, v) + it.HasOauth2tokens = data + case "hasOauth2tokensWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOauth2tokensWith")) + data, err := ec.unmarshalOOhAuthTooTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasBaseFeaturesWith = data + it.HasOauth2tokensWith = data case "hasEvents": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -162392,34 +251224,34 @@ func (ec *executionContext) unmarshalInputEntitlementPlanWhereInput(ctx context. return it, err } it.HasEventsWith = data - case "hasFeatures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeatures")) + case "hasWebhooks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWebhooks")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasFeatures = data - case "hasFeaturesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeaturesWith")) - data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx, v) + it.HasWebhooks = data + case "hasWebhooksWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWebhooksWith")) + data, err := ec.unmarshalOWebhookWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasFeaturesWith = data + it.HasWebhooksWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputEntitlementWhereInput(ctx context.Context, obj interface{}) (generated.EntitlementWhereInput, error) { - var it generated.EntitlementWhereInput +func (ec *executionContext) unmarshalInputInternalPolicyHistoryWhereInput(ctx context.Context, obj interface{}) (generated.InternalPolicyHistoryWhereInput, error) { + var it generated.InternalPolicyHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "planID", "planIDNEQ", "planIDIn", "planIDNotIn", "planIDGT", "planIDGTE", "planIDLT", "planIDLTE", "planIDContains", "planIDHasPrefix", "planIDHasSuffix", "planIDEqualFold", "planIDContainsFold", "organizationID", "organizationIDNEQ", "organizationIDIn", "organizationIDNotIn", "organizationIDGT", "organizationIDGTE", "organizationIDLT", "organizationIDLTE", "organizationIDContains", "organizationIDHasPrefix", "organizationIDHasSuffix", "organizationIDEqualFold", "organizationIDContainsFold", "externalCustomerID", "externalCustomerIDNEQ", "externalCustomerIDIn", "externalCustomerIDNotIn", "externalCustomerIDGT", "externalCustomerIDGTE", "externalCustomerIDLT", "externalCustomerIDLTE", "externalCustomerIDContains", "externalCustomerIDHasPrefix", "externalCustomerIDHasSuffix", "externalCustomerIDIsNil", "externalCustomerIDNotNil", "externalCustomerIDEqualFold", "externalCustomerIDContainsFold", "externalSubscriptionID", "externalSubscriptionIDNEQ", "externalSubscriptionIDIn", "externalSubscriptionIDNotIn", "externalSubscriptionIDGT", "externalSubscriptionIDGTE", "externalSubscriptionIDLT", "externalSubscriptionIDLTE", "externalSubscriptionIDContains", "externalSubscriptionIDHasPrefix", "externalSubscriptionIDHasSuffix", "externalSubscriptionIDIsNil", "externalSubscriptionIDNotNil", "externalSubscriptionIDEqualFold", "externalSubscriptionIDContainsFold", "expires", "expiresNEQ", "expiresAt", "expiresAtNEQ", "expiresAtIn", "expiresAtNotIn", "expiresAtGT", "expiresAtGTE", "expiresAtLT", "expiresAtLTE", "expiresAtIsNil", "expiresAtNotNil", "cancelled", "cancelledNEQ", "hasOwner", "hasOwnerWith", "hasPlan", "hasPlanWith", "hasOrganization", "hasOrganizationWith", "hasEvents", "hasEventsWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "policyType", "policyTypeNEQ", "policyTypeIn", "policyTypeNotIn", "policyTypeGT", "policyTypeGTE", "policyTypeLT", "policyTypeLTE", "policyTypeContains", "policyTypeHasPrefix", "policyTypeHasSuffix", "policyTypeIsNil", "policyTypeNotNil", "policyTypeEqualFold", "policyTypeContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionIsNil", "versionNotNil", "versionEqualFold", "versionContainsFold", "purposeAndScope", "purposeAndScopeNEQ", "purposeAndScopeIn", "purposeAndScopeNotIn", "purposeAndScopeGT", "purposeAndScopeGTE", "purposeAndScopeLT", "purposeAndScopeLTE", "purposeAndScopeContains", "purposeAndScopeHasPrefix", "purposeAndScopeHasSuffix", "purposeAndScopeIsNil", "purposeAndScopeNotNil", "purposeAndScopeEqualFold", "purposeAndScopeContainsFold", "background", "backgroundNEQ", "backgroundIn", "backgroundNotIn", "backgroundGT", "backgroundGTE", "backgroundLT", "backgroundLTE", "backgroundContains", "backgroundHasPrefix", "backgroundHasSuffix", "backgroundIsNil", "backgroundNotNil", "backgroundEqualFold", "backgroundContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -162428,21 +251260,21 @@ func (ec *executionContext) unmarshalInputEntitlementWhereInput(ctx context.Cont switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOEntitlementWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInput(ctx, v) + data, err := ec.unmarshalOInternalPolicyHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOInternalPolicyHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOInternalPolicyHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -162517,6 +251349,195 @@ func (ec *executionContext) unmarshalInputEntitlementWhereInput(ctx context.Cont 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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOInternalPolicyHistoryOpType2ᚖ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.unmarshalOInternalPolicyHistoryOpType2ᚖ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.unmarshalOInternalPolicyHistoryOpType2ᚕ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.unmarshalOInternalPolicyHistoryOpType2ᚕ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) @@ -163042,709 +252063,727 @@ func (ec *executionContext) unmarshalInputEntitlementWhereInput(ctx context.Cont return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + 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.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDNEQ = data - case "ownerIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.OwnerIDIn = data - case "ownerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContains = data - case "ownerIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.OwnerIDNotNil = data - case "ownerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDEqualFold = data - case "ownerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDContainsFold = data - case "planID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.PlanID = data - case "planIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.PlanIDNEQ = data - case "planIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DescriptionNotIn = data + case "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDIn = data - case "planIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDNotIn = data - case "planIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDGT = data - case "planIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDGTE = data - case "planIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDLT = data - case "planIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.PlanIDLTE = data - case "planIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.PlanIDContains = data - case "planIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDHasPrefix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DescriptionHasSuffix = data + case "descriptionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDHasPrefix = data - case "planIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.PlanIDHasSuffix = data - case "planIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DescriptionContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDEqualFold = data - case "planIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("planIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PlanIDContainsFold = data - case "organizationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OrganizationID = data - case "organizationIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OrganizationIDNEQ = data - case "organizationIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDIn = data - case "organizationIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDNotIn = data - case "organizationIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDGT = data - case "organizationIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDGTE = data - case "organizationIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDLT = data - case "organizationIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDLTE = data - case "organizationIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDContains = data - case "organizationIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasPrefix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OrganizationIDHasPrefix = data - case "organizationIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OrganizationIDHasSuffix = data - case "organizationIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDEqualFold = data - case "organizationIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDContainsFold = data - case "externalCustomerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerID")) + it.StatusContainsFold = data + case "policyType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyType")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerID = data - case "externalCustomerIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDNEQ")) + it.PolicyType = data + case "policyTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDNEQ = data - case "externalCustomerIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDIn")) + it.PolicyTypeNEQ = data + case "policyTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDIn = data - case "externalCustomerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDNotIn")) + it.PolicyTypeIn = data + case "policyTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDNotIn = data - case "externalCustomerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDGT")) + it.PolicyTypeNotIn = data + case "policyTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDGT = data - case "externalCustomerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDGTE")) + it.PolicyTypeGT = data + case "policyTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDGTE = data - case "externalCustomerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDLT")) + it.PolicyTypeGTE = data + case "policyTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDLT = data - case "externalCustomerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDLTE")) + it.PolicyTypeLT = data + case "policyTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDLTE = data - case "externalCustomerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDContains")) + it.PolicyTypeLTE = data + case "policyTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDContains = data - case "externalCustomerIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDHasPrefix")) + it.PolicyTypeContains = data + case "policyTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDHasPrefix = data - case "externalCustomerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDHasSuffix")) + it.PolicyTypeHasPrefix = data + case "policyTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDHasSuffix = data - case "externalCustomerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDIsNil")) + it.PolicyTypeHasSuffix = data + case "policyTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDIsNil = data - case "externalCustomerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDNotNil")) + it.PolicyTypeIsNil = data + case "policyTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDNotNil = data - case "externalCustomerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDEqualFold")) + it.PolicyTypeNotNil = data + case "policyTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDEqualFold = data - case "externalCustomerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerIDContainsFold")) + it.PolicyTypeEqualFold = data + case "policyTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalCustomerIDContainsFold = data - case "externalSubscriptionID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionID")) + it.PolicyTypeContainsFold = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionID = data - case "externalSubscriptionIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDNEQ")) + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDNEQ = data - case "externalSubscriptionIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDIn")) + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDIn = data - case "externalSubscriptionIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDNotIn")) + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDNotIn = data - case "externalSubscriptionIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDGT")) + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDGT = data - case "externalSubscriptionIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDGTE")) + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDGTE = data - case "externalSubscriptionIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDLT")) + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDLT = data - case "externalSubscriptionIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDLTE")) + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDLTE = data - case "externalSubscriptionIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDContains")) + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDContains = data - case "externalSubscriptionIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDHasPrefix")) + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDHasPrefix = data - case "externalSubscriptionIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDHasSuffix")) + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDHasSuffix = data - case "externalSubscriptionIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDIsNil")) + it.VersionHasSuffix = data + case "versionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDIsNil = data - case "externalSubscriptionIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDNotNil")) + it.VersionIsNil = data + case "versionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDNotNil = data - case "externalSubscriptionIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDEqualFold")) + it.VersionNotNil = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDEqualFold = data - case "externalSubscriptionIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionIDContainsFold")) + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionIDContainsFold = data - case "expires": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expires")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.VersionContainsFold = data + case "purposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScope")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Expires = data - case "expiresNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.PurposeAndScope = data + case "purposeAndScopeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresNEQ = data - case "expiresAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.PurposeAndScopeNEQ = data + case "purposeAndScopeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresAt = data - case "expiresAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.PurposeAndScopeIn = data + case "purposeAndScopeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresAtNEQ = data - case "expiresAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.PurposeAndScopeNotIn = data + case "purposeAndScopeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtIn = data - case "expiresAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.PurposeAndScopeGT = data + case "purposeAndScopeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtNotIn = data - case "expiresAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.PurposeAndScopeGTE = data + case "purposeAndScopeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtGT = data - case "expiresAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.PurposeAndScopeLT = data + case "purposeAndScopeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtGTE = data - case "expiresAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.PurposeAndScopeLTE = data + case "purposeAndScopeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtLT = data - case "expiresAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.PurposeAndScopeContains = data + case "purposeAndScopeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtLTE = data - case "expiresAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIsNil")) + it.PurposeAndScopeHasPrefix = data + case "purposeAndScopeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeHasSuffix = data + case "purposeAndScopeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ExpiresAtIsNil = data - case "expiresAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotNil")) + it.PurposeAndScopeIsNil = data + case "purposeAndScopeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ExpiresAtNotNil = data - case "cancelled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cancelled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.PurposeAndScopeNotNil = data + case "purposeAndScopeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Cancelled = data - case "cancelledNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cancelledNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.PurposeAndScopeEqualFold = data + case "purposeAndScopeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CancelledNEQ = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.PurposeAndScopeContainsFold = data + case "background": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("background")) + data, err := ec.unmarshalOString2ᚖstring(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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.Background = data + case "backgroundNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOwnerWith = data - case "hasPlan": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlan")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.BackgroundNEQ = data + case "backgroundIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasPlan = data - case "hasPlanWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlanWith")) - data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx, v) + it.BackgroundIn = data + case "backgroundNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasPlanWith = data - case "hasOrganization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganization")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.BackgroundNotIn = data + case "backgroundGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOrganization = data - case "hasOrganizationWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationWith")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.BackgroundGT = data + case "backgroundGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOrganizationWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.BackgroundGTE = data + case "backgroundLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + it.BackgroundLT = data + case "backgroundLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEventsWith = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputEntityHistoryOrder(ctx context.Context, obj interface{}) (generated.EntityHistoryOrder, error) { - var it generated.EntityHistoryOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - 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) + it.BackgroundLTE = data + case "backgroundContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNEntityHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryOrderField(ctx, v) + it.BackgroundContains = data + case "backgroundHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Field = data + it.BackgroundHasPrefix = data + case "backgroundHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundHasSuffix = data + case "backgroundIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.BackgroundIsNil = data + case "backgroundNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.BackgroundNotNil = data + case "backgroundEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundEqualFold = data + case "backgroundContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputEntityHistoryWhereInput(ctx context.Context, obj interface{}) (generated.EntityHistoryWhereInput, error) { - var it generated.EntityHistoryWhereInput +func (ec *executionContext) unmarshalInputInternalPolicyWhereInput(ctx context.Context, obj interface{}) (generated.InternalPolicyWhereInput, error) { + var it generated.InternalPolicyWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameIsNil", "nameNotNil", "nameEqualFold", "nameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameIsNil", "displayNameNotNil", "displayNameEqualFold", "displayNameContainsFold", "entityTypeID", "entityTypeIDNEQ", "entityTypeIDIn", "entityTypeIDNotIn", "entityTypeIDGT", "entityTypeIDGTE", "entityTypeIDLT", "entityTypeIDLTE", "entityTypeIDContains", "entityTypeIDHasPrefix", "entityTypeIDHasSuffix", "entityTypeIDIsNil", "entityTypeIDNotNil", "entityTypeIDEqualFold", "entityTypeIDContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "policyType", "policyTypeNEQ", "policyTypeIn", "policyTypeNotIn", "policyTypeGT", "policyTypeGTE", "policyTypeLT", "policyTypeLTE", "policyTypeContains", "policyTypeHasPrefix", "policyTypeHasSuffix", "policyTypeIsNil", "policyTypeNotNil", "policyTypeEqualFold", "policyTypeContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionIsNil", "versionNotNil", "versionEqualFold", "versionContainsFold", "purposeAndScope", "purposeAndScopeNEQ", "purposeAndScopeIn", "purposeAndScopeNotIn", "purposeAndScopeGT", "purposeAndScopeGTE", "purposeAndScopeLT", "purposeAndScopeLTE", "purposeAndScopeContains", "purposeAndScopeHasPrefix", "purposeAndScopeHasSuffix", "purposeAndScopeIsNil", "purposeAndScopeNotNil", "purposeAndScopeEqualFold", "purposeAndScopeContainsFold", "background", "backgroundNEQ", "backgroundIn", "backgroundNotIn", "backgroundGT", "backgroundGTE", "backgroundLT", "backgroundLTE", "backgroundContains", "backgroundHasPrefix", "backgroundHasSuffix", "backgroundIsNil", "backgroundNotNil", "backgroundEqualFold", "backgroundContainsFold", "hasControlobjectives", "hasControlobjectivesWith", "hasControls", "hasControlsWith", "hasProcedures", "hasProceduresWith", "hasNarratives", "hasNarrativesWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -163753,21 +252792,21 @@ func (ec *executionContext) unmarshalInputEntityHistoryWhereInput(ctx context.Co switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOEntityHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOEntityHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOInternalPolicyWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOEntityHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOInternalPolicyWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -163842,195 +252881,6 @@ func (ec *executionContext) unmarshalInputEntityHistoryWhereInput(ctx context.Co 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 "historyTimeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNEQ = data - case "historyTimeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeIn = data - case "historyTimeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNotIn = 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 "refGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGT = data - case "refGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGTE = data - case "refLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLT = data - case "refLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLTE = 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.unmarshalOEntityHistoryOpType2ᚖ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.unmarshalOEntityHistoryOpType2ᚖ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.unmarshalOEntityHistoryOpType2ᚕ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.unmarshalOEntityHistoryOpType2ᚕ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) @@ -164556,621 +253406,783 @@ func (ec *executionContext) unmarshalInputEntityHistoryWhereInput(ctx context.Co return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 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")) + 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.OwnerIDNEQ = data - case "ownerIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + 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.OwnerIDIn = data - case "ownerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + 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.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContains = data - case "ownerIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + 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.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + 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.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + 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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLTE = 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 "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 "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDNotNil = data - case "ownerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) 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")) + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) 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")) + it.StatusContainsFold = data + case "policyType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyType")) 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")) + it.PolicyType = data + case "policyTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeNEQ")) 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")) + it.PolicyTypeNEQ = data + case "policyTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeIn")) 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")) + it.PolicyTypeIn = data + case "policyTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + it.PolicyTypeNotIn = data + case "policyTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + it.PolicyTypeGT = data + case "policyTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + it.PolicyTypeGTE = data + case "policyTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + it.PolicyTypeLT = data + case "policyTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + it.PolicyTypeLTE = data + case "policyTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeContains")) 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")) + it.PolicyTypeContains = data + case "policyTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeHasPrefix")) 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")) + it.PolicyTypeHasPrefix = data + case "policyTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameHasSuffix = data - case "nameIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIsNil")) + it.PolicyTypeHasSuffix = data + case "policyTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameIsNil = data - case "nameNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotNil")) + it.PolicyTypeIsNil = data + case "policyTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameNotNil = data - case "nameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + it.PolicyTypeNotNil = data + case "policyTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeEqualFold")) 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")) + it.PolicyTypeEqualFold = data + case "policyTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyTypeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + it.PolicyTypeContainsFold = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "displayNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameNEQ = data - case "displayNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DisplayNameIn = data - case "displayNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DisplayNameNotIn = data - case "displayNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameGT = data - case "displayNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameGTE = data - case "displayNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameLT = data - case "displayNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameLTE = data - case "displayNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameContains = data - case "displayNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameHasPrefix = data - case "displayNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameHasSuffix = data - case "displayNameIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIsNil")) + it.VersionHasSuffix = data + case "versionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DisplayNameIsNil = data - case "displayNameNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotNil")) + it.VersionIsNil = data + case "versionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DisplayNameNotNil = data - case "displayNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + it.VersionNotNil = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameEqualFold = data - case "displayNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameContainsFold = data - case "entityTypeID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeID")) + it.VersionContainsFold = data + case "purposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScope")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeID = data - case "entityTypeIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDNEQ")) + it.PurposeAndScope = data + case "purposeAndScopeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeIDNEQ = data - case "entityTypeIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDIn")) + it.PurposeAndScopeNEQ = data + case "purposeAndScopeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.EntityTypeIDIn = data - case "entityTypeIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDNotIn")) + it.PurposeAndScopeIn = data + case "purposeAndScopeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.EntityTypeIDNotIn = data - case "entityTypeIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDGT")) + it.PurposeAndScopeNotIn = data + case "purposeAndScopeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeIDGT = data - case "entityTypeIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDGTE")) + it.PurposeAndScopeGT = data + case "purposeAndScopeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeIDGTE = data - case "entityTypeIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDLT")) + it.PurposeAndScopeGTE = data + case "purposeAndScopeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeIDLT = data - case "entityTypeIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDLTE")) + it.PurposeAndScopeLT = data + case "purposeAndScopeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeIDLTE = data - case "entityTypeIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDContains")) + it.PurposeAndScopeLTE = data + case "purposeAndScopeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeIDContains = data - case "entityTypeIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDHasPrefix")) + it.PurposeAndScopeContains = data + case "purposeAndScopeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeIDHasPrefix = data - case "entityTypeIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDHasSuffix")) + it.PurposeAndScopeHasPrefix = data + case "purposeAndScopeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeIDHasSuffix = data - case "entityTypeIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDIsNil")) + it.PurposeAndScopeHasSuffix = data + case "purposeAndScopeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EntityTypeIDIsNil = data - case "entityTypeIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDNotNil")) + it.PurposeAndScopeIsNil = data + case "purposeAndScopeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EntityTypeIDNotNil = data - case "entityTypeIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDEqualFold")) + it.PurposeAndScopeNotNil = data + case "purposeAndScopeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeIDEqualFold = data - case "entityTypeIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDContainsFold")) + it.PurposeAndScopeEqualFold = data + case "purposeAndScopeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeIDContainsFold = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + it.PurposeAndScopeContainsFold = data + case "background": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("background")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Status = data - case "statusNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + it.Background = data + case "backgroundNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusNEQ = data - case "statusIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + it.BackgroundNEQ = data + case "backgroundIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.StatusIn = data - case "statusNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + it.BackgroundIn = data + case "backgroundNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.StatusNotIn = data - case "statusGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + it.BackgroundNotIn = data + case "backgroundGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusGT = data - case "statusGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + it.BackgroundGT = data + case "backgroundGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusGTE = data - case "statusLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + it.BackgroundGTE = data + case "backgroundLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusLT = data - case "statusLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + it.BackgroundLT = data + case "backgroundLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusLTE = data - case "statusContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + it.BackgroundLTE = data + case "backgroundContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusContains = data - case "statusHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + it.BackgroundContains = data + case "backgroundHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusHasPrefix = data - case "statusHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + it.BackgroundHasPrefix = data + case "backgroundHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusHasSuffix = data - case "statusIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + it.BackgroundHasSuffix = data + case "backgroundIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.StatusIsNil = data - case "statusNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + it.BackgroundIsNil = data + case "backgroundNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.StatusNotNil = data - case "statusEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + it.BackgroundNotNil = data + case "backgroundEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusEqualFold = data - case "statusContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + it.BackgroundEqualFold = data + case "backgroundContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusContainsFold = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputEntityOrder(ctx context.Context, obj interface{}) (generated.EntityOrder, error) { - var it generated.EntityOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - 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) + it.BackgroundContainsFold = data + case "hasControlobjectives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlobjectives")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNEntityOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderField(ctx, v) + it.HasControlobjectives = data + case "hasControlobjectivesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlobjectivesWith")) + data, err := ec.unmarshalOControlObjectiveWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.Field = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputEntityTypeHistoryOrder(ctx context.Context, obj interface{}) (generated.EntityTypeHistoryOrder, error) { - var it generated.EntityTypeHistoryOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - 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) + it.HasControlobjectivesWith = data + case "hasControls": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControls")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNEntityTypeHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryOrderField(ctx, v) + it.HasControls = data + case "hasControlsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlsWith")) + data, err := ec.unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.Field = data + it.HasControlsWith = data + case "hasProcedures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProcedures")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasProcedures = data + case "hasProceduresWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProceduresWith")) + data, err := ec.unmarshalOProcedureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasProceduresWith = data + case "hasNarratives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNarratives")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasNarratives = data + case "hasNarrativesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNarrativesWith")) + data, err := ec.unmarshalONarrativeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasNarrativesWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputEntityTypeHistoryWhereInput(ctx context.Context, obj interface{}) (generated.EntityTypeHistoryWhereInput, error) { - var it generated.EntityTypeHistoryWhereInput +func (ec *executionContext) unmarshalInputInviteWhereInput(ctx context.Context, obj interface{}) (generated.InviteWhereInput, error) { + var it generated.InviteWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "expires", "expiresNEQ", "expiresIn", "expiresNotIn", "expiresGT", "expiresGTE", "expiresLT", "expiresLTE", "expiresIsNil", "expiresNotNil", "recipient", "recipientNEQ", "recipientIn", "recipientNotIn", "recipientGT", "recipientGTE", "recipientLT", "recipientLTE", "recipientContains", "recipientHasPrefix", "recipientHasSuffix", "recipientEqualFold", "recipientContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "role", "roleNEQ", "roleIn", "roleNotIn", "sendAttempts", "sendAttemptsNEQ", "sendAttemptsIn", "sendAttemptsNotIn", "sendAttemptsGT", "sendAttemptsGTE", "sendAttemptsLT", "sendAttemptsLTE", "requestorID", "requestorIDNEQ", "requestorIDIn", "requestorIDNotIn", "requestorIDGT", "requestorIDGTE", "requestorIDLT", "requestorIDLTE", "requestorIDContains", "requestorIDHasPrefix", "requestorIDHasSuffix", "requestorIDIsNil", "requestorIDNotNil", "requestorIDEqualFold", "requestorIDContainsFold", "hasOwner", "hasOwnerWith", "hasEvents", "hasEventsWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -165179,21 +254191,21 @@ func (ec *executionContext) unmarshalInputEntityTypeHistoryWhereInput(ctx contex switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOEntityTypeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOEntityTypeHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOInviteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOEntityTypeHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOInviteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -165268,195 +254280,6 @@ func (ec *executionContext) unmarshalInputEntityTypeHistoryWhereInput(ctx contex 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 "historyTimeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNEQ = data - case "historyTimeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeIn = data - case "historyTimeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNotIn = 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 "refGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGT = data - case "refGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGTE = data - case "refLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLT = data - case "refLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLTE = 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.unmarshalOEntityTypeHistoryOpType2ᚖ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.unmarshalOEntityTypeHistoryOpType2ᚖ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.unmarshalOEntityTypeHistoryOpType2ᚕ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.unmarshalOEntityTypeHistoryOpType2ᚕ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) @@ -165984,77 +254807,77 @@ func (ec *executionContext) unmarshalInputEntityTypeHistoryWhereInput(ctx contex it.DeletedByContainsFold = data case "ownerID": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.unmarshalOString2ᚖstring(ctx, v) + 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.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.unmarshalOString2ᚕstringᚄ(ctx, v) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } it.OwnerIDNotIn = data case "ownerIDGT": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.OwnerIDGT = data case "ownerIDGTE": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.OwnerIDGTE = data case "ownerIDLT": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.OwnerIDLT = data case "ownerIDLTE": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.OwnerIDLTE = data case "ownerIDContains": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.unmarshalOString2ᚖstring(ctx, v) + 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.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } @@ -166075,161 +254898,438 @@ func (ec *executionContext) unmarshalInputEntityTypeHistoryWhereInput(ctx contex it.OwnerIDNotNil = data case "ownerIDEqualFold": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.unmarshalOString2ᚖstring(ctx, v) + 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")) + case "expires": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expires")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.Expires = data + case "expiresNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresNEQ = data + case "expiresIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExpiresIn = data + case "expiresNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.ExpiresNotIn = data + case "expiresGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresGT = data + case "expiresGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresGTE = data + case "expiresLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresLT = data + case "expiresLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ExpiresLTE = data + case "expiresIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExpiresIsNil = data + case "expiresNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ExpiresNotNil = data + case "recipient": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipient")) 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")) + it.Recipient = data + case "recipientNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientNEQ")) 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")) + it.RecipientNEQ = data + case "recipientIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientIn")) 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")) + it.RecipientIn = data + case "recipientNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + it.RecipientNotIn = data + case "recipientGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + it.RecipientGT = data + case "recipientGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + it.RecipientGTE = data + case "recipientLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + it.RecipientLT = data + case "recipientLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + it.RecipientLTE = data + case "recipientContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientContains")) 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")) + it.RecipientContains = data + case "recipientHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientHasPrefix")) 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")) + it.RecipientHasPrefix = data + case "recipientHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientHasSuffix")) 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")) + it.RecipientHasSuffix = data + case "recipientEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientEqualFold")) 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")) + it.RecipientEqualFold = data + case "recipientContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputEntityTypeOrder(ctx context.Context, obj interface{}) (generated.EntityTypeOrder, error) { - var it generated.EntityTypeOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - 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) + it.RecipientContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOInviteInviteStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, v) if err != nil { return it, err } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNEntityTypeOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrderField(ctx, v) + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOInviteInviteStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, v) if err != nil { return it, err } - it.Field = data + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOInviteInviteStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatusᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOInviteInviteStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatusᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusNotIn = data + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOInviteRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + if err != nil { + return it, err + } + it.Role = data + case "roleNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) + data, err := ec.unmarshalOInviteRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + if err != nil { + return it, err + } + it.RoleNEQ = data + case "roleIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) + data, err := ec.unmarshalOInviteRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + if err != nil { + return it, err + } + it.RoleIn = data + case "roleNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) + data, err := ec.unmarshalOInviteRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + if err != nil { + return it, err + } + it.RoleNotIn = data + case "sendAttempts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttempts")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.SendAttempts = data + case "sendAttemptsNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsNEQ")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.SendAttemptsNEQ = data + case "sendAttemptsIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsIn")) + data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) + if err != nil { + return it, err + } + it.SendAttemptsIn = data + case "sendAttemptsNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsNotIn")) + data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) + if err != nil { + return it, err + } + it.SendAttemptsNotIn = data + case "sendAttemptsGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsGT")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.SendAttemptsGT = data + case "sendAttemptsGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsGTE")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.SendAttemptsGTE = data + case "sendAttemptsLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsLT")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.SendAttemptsLT = data + case "sendAttemptsLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsLTE")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.SendAttemptsLTE = data + case "requestorID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RequestorID = data + case "requestorIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDNEQ = data + case "requestorIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDIn = data + case "requestorIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDNotIn = data + case "requestorIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDGT = data + case "requestorIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDGTE = data + case "requestorIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDLT = data + case "requestorIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDLTE = data + case "requestorIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDContains = data + case "requestorIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDHasPrefix = data + case "requestorIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDHasSuffix = data + case "requestorIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDIsNil = data + case "requestorIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDNotNil = data + case "requestorIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDEqualFold = data + case "requestorIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RequestorIDContainsFold = 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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOwnerWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEventsWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputEntityTypeWhereInput(ctx context.Context, obj interface{}) (generated.EntityTypeWhereInput, error) { - var it generated.EntityTypeWhereInput +func (ec *executionContext) unmarshalInputNarrativeHistoryWhereInput(ctx context.Context, obj interface{}) (generated.NarrativeHistoryWhereInput, error) { + var it generated.NarrativeHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "hasOwner", "hasOwnerWith", "hasEntities", "hasEntitiesWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "satisfies", "satisfiesNEQ", "satisfiesIn", "satisfiesNotIn", "satisfiesGT", "satisfiesGTE", "satisfiesLT", "satisfiesLTE", "satisfiesContains", "satisfiesHasPrefix", "satisfiesHasSuffix", "satisfiesIsNil", "satisfiesNotNil", "satisfiesEqualFold", "satisfiesContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -166238,21 +255338,21 @@ func (ec *executionContext) unmarshalInputEntityTypeWhereInput(ctx context.Conte switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, v) + data, err := ec.unmarshalONarrativeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInputᚄ(ctx, v) + data, err := ec.unmarshalONarrativeHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInputᚄ(ctx, v) + data, err := ec.unmarshalONarrativeHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -166327,6 +255427,195 @@ func (ec *executionContext) unmarshalInputEntityTypeWhereInput(ctx context.Conte 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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalONarrativeHistoryOpType2ᚖ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.unmarshalONarrativeHistoryOpType2ᚖ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.unmarshalONarrativeHistoryOpType2ᚕ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.unmarshalONarrativeHistoryOpType2ᚕ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) @@ -166852,244 +256141,321 @@ func (ec *executionContext) unmarshalInputEntityTypeWhereInput(ctx context.Conte return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + 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.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDNEQ = data - case "ownerIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.OwnerIDIn = data - case "ownerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContains = data - case "ownerIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.OwnerIDNotNil = data - case "ownerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDEqualFold = data - case "ownerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDContainsFold = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + 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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) 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")) + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) 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) + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + 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) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + 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.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + 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.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + 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.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + 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.NameContains = data - case "nameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + it.DescriptionContainsFold = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) 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")) + it.Satisfies = data + case "satisfiesNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNEQ")) 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")) + it.SatisfiesNEQ = data + case "satisfiesIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesIn = data + case "satisfiesNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesNotIn = data + case "satisfiesGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGT")) 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")) + it.SatisfiesGT = data + case "satisfiesGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.SatisfiesGTE = data + case "satisfiesLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLT")) + data, err := ec.unmarshalOString2ᚖstring(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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.SatisfiesLT = data + case "satisfiesLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOwnerWith = data - case "hasEntities": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntities")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.SatisfiesLTE = data + case "satisfiesContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContains")) + data, err := ec.unmarshalOString2ᚖstring(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ᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + it.SatisfiesContains = data + case "satisfiesHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEntitiesWith = data + it.SatisfiesHasPrefix = data + case "satisfiesHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesHasSuffix = data + case "satisfiesIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesIsNil = data + case "satisfiesNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesNotNil = data + case "satisfiesEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesEqualFold = data + case "satisfiesContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputEntityWhereInput(ctx context.Context, obj interface{}) (generated.EntityWhereInput, error) { - var it generated.EntityWhereInput +func (ec *executionContext) unmarshalInputNarrativeWhereInput(ctx context.Context, obj interface{}) (generated.NarrativeWhereInput, error) { + var it generated.NarrativeWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameIsNil", "nameNotNil", "nameEqualFold", "nameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameIsNil", "displayNameNotNil", "displayNameEqualFold", "displayNameContainsFold", "entityTypeID", "entityTypeIDNEQ", "entityTypeIDIn", "entityTypeIDNotIn", "entityTypeIDGT", "entityTypeIDGTE", "entityTypeIDLT", "entityTypeIDLTE", "entityTypeIDContains", "entityTypeIDHasPrefix", "entityTypeIDHasSuffix", "entityTypeIDIsNil", "entityTypeIDNotNil", "entityTypeIDEqualFold", "entityTypeIDContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "hasOwner", "hasOwnerWith", "hasContacts", "hasContactsWith", "hasDocuments", "hasDocumentsWith", "hasNotes", "hasNotesWith", "hasFiles", "hasFilesWith", "hasEntityType", "hasEntityTypeWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "satisfies", "satisfiesNEQ", "satisfiesIn", "satisfiesNotIn", "satisfiesGT", "satisfiesGTE", "satisfiesLT", "satisfiesLTE", "satisfiesContains", "satisfiesHasPrefix", "satisfiesHasSuffix", "satisfiesIsNil", "satisfiesNotNil", "satisfiesEqualFold", "satisfiesContainsFold", "hasPolicy", "hasPolicyWith", "hasControl", "hasControlWith", "hasProcedure", "hasProcedureWith", "hasControlobjective", "hasControlobjectiveWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -167098,21 +256464,21 @@ func (ec *executionContext) unmarshalInputEntityWhereInput(ctx context.Context, switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + data, err := ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + data, err := ec.unmarshalONarrativeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + data, err := ec.unmarshalONarrativeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -167712,111 +257078,6 @@ func (ec *executionContext) unmarshalInputEntityWhereInput(ctx context.Context, return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "ownerIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDNEQ = data - case "ownerIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDIn = data - case "ownerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDContains = data - case "ownerIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDNotNil = data - case "ownerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDEqualFold = data - case "ownerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDContainsFold = data case "name": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) @@ -167894,20 +257155,6 @@ func (ec *executionContext) unmarshalInputEntityWhereInput(ctx context.Context, return it, err } it.NameHasSuffix = data - case "nameIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.NameIsNil = data - case "nameNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.NameNotNil = data case "nameEqualFold": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) @@ -167922,419 +257169,286 @@ func (ec *executionContext) unmarshalInputEntityWhereInput(ctx context.Context, return it, err } it.NameContainsFold = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "displayNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + 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.DisplayNameNEQ = data - case "displayNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + 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.DisplayNameIn = data - case "displayNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + 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.DisplayNameNotIn = data - case "displayNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + it.DescriptionNotIn = data + case "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameGT = data - case "displayNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameGTE = data - case "displayNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameLT = data - case "displayNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameLTE = data - case "displayNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameContains = data - case "displayNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + 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.DisplayNameHasPrefix = data - case "displayNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + 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.DisplayNameHasSuffix = data - case "displayNameIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIsNil")) + 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.DisplayNameIsNil = data - case "displayNameNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotNil")) + 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.DisplayNameNotNil = data - case "displayNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + 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.DisplayNameEqualFold = data - case "displayNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + 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.DisplayNameContainsFold = data - case "entityTypeID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeID = data - case "entityTypeIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDNEQ = data - case "entityTypeIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDIn = data - case "entityTypeIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDNotIn = data - case "entityTypeIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDGT = data - case "entityTypeIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDGTE = data - case "entityTypeIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDLT = data - case "entityTypeIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDLTE = data - case "entityTypeIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDContains = data - case "entityTypeIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDHasPrefix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDHasPrefix = data - case "entityTypeIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDHasSuffix = data - case "entityTypeIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDIsNil = data - case "entityTypeIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDNotNil = data - case "entityTypeIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDEqualFold = data - case "entityTypeIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EntityTypeIDContainsFold = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + it.DescriptionContainsFold = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Status = data - case "statusNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + it.Satisfies = data + case "satisfiesNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusNEQ = data - case "statusIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + it.SatisfiesNEQ = data + case "satisfiesIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.StatusIn = data - case "statusNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + it.SatisfiesIn = data + case "satisfiesNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.StatusNotIn = data - case "statusGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + it.SatisfiesNotIn = data + case "satisfiesGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusGT = data - case "statusGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + it.SatisfiesGT = data + case "satisfiesGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusGTE = data - case "statusLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + it.SatisfiesGTE = data + case "satisfiesLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusLT = data - case "statusLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + it.SatisfiesLT = data + case "satisfiesLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusLTE = data - case "statusContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + it.SatisfiesLTE = data + case "satisfiesContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusContains = data - case "statusHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + it.SatisfiesContains = data + case "satisfiesHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusHasPrefix = data - case "statusHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + it.SatisfiesHasPrefix = data + case "satisfiesHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusHasSuffix = data - case "statusIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + it.SatisfiesHasSuffix = data + case "satisfiesIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.StatusIsNil = data - case "statusNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + it.SatisfiesIsNil = data + case "satisfiesNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.StatusNotNil = data - case "statusEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + it.SatisfiesNotNil = data + case "satisfiesEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusEqualFold = data - case "statusContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + it.SatisfiesEqualFold = data + case "satisfiesContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusContainsFold = 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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasOwnerWith = data - case "hasContacts": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContacts")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasContacts = data - case "hasContactsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContactsWith")) - data, err := ec.unmarshalOContactWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasContactsWith = data - case "hasDocuments": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocuments")) + it.SatisfiesContainsFold = data + case "hasPolicy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPolicy")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasDocuments = data - case "hasDocumentsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocumentsWith")) - data, err := ec.unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx, v) + it.HasPolicy = data + case "hasPolicyWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPolicyWith")) + data, err := ec.unmarshalOInternalPolicyWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasDocumentsWith = data - case "hasNotes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNotes")) + it.HasPolicyWith = data + case "hasControl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControl")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasNotes = data - case "hasNotesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNotesWith")) - data, err := ec.unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInputᚄ(ctx, v) + it.HasControl = data + case "hasControlWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlWith")) + data, err := ec.unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasNotesWith = data - case "hasFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) + it.HasControlWith = data + case "hasProcedure": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProcedure")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasFiles = data - case "hasFilesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + it.HasProcedure = data + case "hasProcedureWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProcedureWith")) + data, err := ec.unmarshalOProcedureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasFilesWith = data - case "hasEntityType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityType")) + it.HasProcedureWith = data + case "hasControlobjective": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlobjective")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasEntityType = data - case "hasEntityTypeWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityTypeWith")) - data, err := ec.unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInputᚄ(ctx, v) + it.HasControlobjective = data + case "hasControlobjectiveWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlobjectiveWith")) + data, err := ec.unmarshalOControlObjectiveWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasEntityTypeWith = data + it.HasControlobjectiveWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputEventHistoryWhereInput(ctx context.Context, obj interface{}) (generated.EventHistoryWhereInput, error) { - var it generated.EventHistoryWhereInput +func (ec *executionContext) unmarshalInputNoteHistoryWhereInput(ctx context.Context, obj interface{}) (generated.NoteHistoryWhereInput, error) { + var it generated.NoteHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "eventID", "eventIDNEQ", "eventIDIn", "eventIDNotIn", "eventIDGT", "eventIDGTE", "eventIDLT", "eventIDLTE", "eventIDContains", "eventIDHasPrefix", "eventIDHasSuffix", "eventIDIsNil", "eventIDNotNil", "eventIDEqualFold", "eventIDContainsFold", "correlationID", "correlationIDNEQ", "correlationIDIn", "correlationIDNotIn", "correlationIDGT", "correlationIDGTE", "correlationIDLT", "correlationIDLTE", "correlationIDContains", "correlationIDHasPrefix", "correlationIDHasSuffix", "correlationIDIsNil", "correlationIDNotNil", "correlationIDEqualFold", "correlationIDContainsFold", "eventType", "eventTypeNEQ", "eventTypeIn", "eventTypeNotIn", "eventTypeGT", "eventTypeGTE", "eventTypeLT", "eventTypeLTE", "eventTypeContains", "eventTypeHasPrefix", "eventTypeHasSuffix", "eventTypeEqualFold", "eventTypeContainsFold"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "text", "textNEQ", "textIn", "textNotIn", "textGT", "textGTE", "textLT", "textLTE", "textContains", "textHasPrefix", "textHasSuffix", "textEqualFold", "textContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -168343,21 +257457,21 @@ func (ec *executionContext) unmarshalInputEventHistoryWhereInput(ctx context.Con switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOEventHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInput(ctx, v) + data, err := ec.unmarshalONoteHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOEventHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalONoteHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOEventHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalONoteHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -168595,28 +257709,28 @@ func (ec *executionContext) unmarshalInputEventHistoryWhereInput(ctx context.Con it.RefContainsFold = data case "operation": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOEventHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalONoteHistoryOpType2ᚖ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.unmarshalOEventHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalONoteHistoryOpType2ᚖ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.unmarshalOEventHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalONoteHistoryOpType2ᚕ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.unmarshalOEventHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalONoteHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } @@ -168971,321 +258085,391 @@ func (ec *executionContext) unmarshalInputEventHistoryWhereInput(ctx context.Con return it, err } it.UpdatedByContainsFold = data - case "eventID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventID")) + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventID = data - case "eventIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDNEQ")) + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDNEQ = data - case "eventIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDIn")) + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.EventIDIn = data - case "eventIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDNotIn")) + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.EventIDNotIn = data - case "eventIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDGT")) + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDGT = data - case "eventIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDGTE")) + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDGTE = data - case "eventIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDLT")) + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDLT = data - case "eventIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDLTE")) + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDLTE = data - case "eventIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDContains")) + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDContains = data - case "eventIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDHasPrefix")) + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDHasPrefix = data - case "eventIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDHasSuffix")) + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDHasSuffix = data - case "eventIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDIsNil")) + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EventIDIsNil = data - case "eventIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDNotNil")) + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EventIDNotNil = data - case "eventIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDEqualFold")) + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDEqualFold = data - case "eventIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDContainsFold")) + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventIDContainsFold = data - case "correlationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationID")) + it.DeletedByContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CorrelationID = data - case "correlationIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDNEQ")) + 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.CorrelationIDNEQ = data - case "correlationIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDIn")) + 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.CorrelationIDIn = data - case "correlationIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDNotIn")) + 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.CorrelationIDNotIn = data - case "correlationIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDGT")) + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CorrelationIDGT = data - case "correlationIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDGTE")) + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CorrelationIDGTE = data - case "correlationIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDLT")) + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CorrelationIDLT = data - case "correlationIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDLTE")) + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CorrelationIDLTE = data - case "correlationIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDContains")) + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CorrelationIDContains = data - case "correlationIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDHasPrefix")) + 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.CorrelationIDHasPrefix = data - case "correlationIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDHasSuffix")) + 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.CorrelationIDHasSuffix = data - case "correlationIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDIsNil")) + 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.CorrelationIDIsNil = data - case "correlationIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDNotNil")) + 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.CorrelationIDNotNil = data - case "correlationIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDEqualFold")) + 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.CorrelationIDEqualFold = data - case "correlationIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDContainsFold")) + 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.CorrelationIDContainsFold = data - case "eventType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventType")) + it.OwnerIDContainsFold = data + case "text": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventType = data - case "eventTypeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeNEQ")) + it.Text = data + case "textNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeNEQ = data - case "eventTypeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeIn")) + it.TextNEQ = data + case "textIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.EventTypeIn = data - case "eventTypeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeNotIn")) + it.TextIn = data + case "textNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.EventTypeNotIn = data - case "eventTypeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeGT")) + it.TextNotIn = data + case "textGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeGT = data - case "eventTypeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeGTE")) + it.TextGT = data + case "textGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeGTE = data - case "eventTypeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeLT")) + it.TextGTE = data + case "textLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeLT = data - case "eventTypeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeLTE")) + it.TextLT = data + case "textLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeLTE = data - case "eventTypeContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeContains")) + it.TextLTE = data + case "textContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeContains = data - case "eventTypeHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeHasPrefix")) + it.TextContains = data + case "textHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeHasPrefix = data - case "eventTypeHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeHasSuffix")) + it.TextHasPrefix = data + case "textHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeHasSuffix = data - case "eventTypeEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeEqualFold")) + it.TextHasSuffix = data + case "textEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeEqualFold = data - case "eventTypeContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeContainsFold")) + it.TextEqualFold = data + case "textContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeContainsFold = data + it.TextContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputEventWhereInput(ctx context.Context, obj interface{}) (generated.EventWhereInput, error) { - var it generated.EventWhereInput +func (ec *executionContext) unmarshalInputNoteWhereInput(ctx context.Context, obj interface{}) (generated.NoteWhereInput, error) { + var it generated.NoteWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "eventID", "eventIDNEQ", "eventIDIn", "eventIDNotIn", "eventIDGT", "eventIDGTE", "eventIDLT", "eventIDLTE", "eventIDContains", "eventIDHasPrefix", "eventIDHasSuffix", "eventIDIsNil", "eventIDNotNil", "eventIDEqualFold", "eventIDContainsFold", "correlationID", "correlationIDNEQ", "correlationIDIn", "correlationIDNotIn", "correlationIDGT", "correlationIDGTE", "correlationIDLT", "correlationIDLTE", "correlationIDContains", "correlationIDHasPrefix", "correlationIDHasSuffix", "correlationIDIsNil", "correlationIDNotNil", "correlationIDEqualFold", "correlationIDContainsFold", "eventType", "eventTypeNEQ", "eventTypeIn", "eventTypeNotIn", "eventTypeGT", "eventTypeGTE", "eventTypeLT", "eventTypeLTE", "eventTypeContains", "eventTypeHasPrefix", "eventTypeHasSuffix", "eventTypeEqualFold", "eventTypeContainsFold", "hasUser", "hasUserWith", "hasGroup", "hasGroupWith", "hasIntegration", "hasIntegrationWith", "hasOrganization", "hasOrganizationWith", "hasInvite", "hasInviteWith", "hasFeature", "hasFeatureWith", "hasEntitlementplan", "hasEntitlementplanWith", "hasEntitlementplanfeature", "hasEntitlementplanfeatureWith", "hasPersonalAccessToken", "hasPersonalAccessTokenWith", "hasOauth2token", "hasOauth2tokenWith", "hasHush", "hasHushWith", "hasOrgmembership", "hasOrgmembershipWith", "hasGroupmembership", "hasGroupmembershipWith", "hasEntitlement", "hasEntitlementWith", "hasWebhook", "hasWebhookWith", "hasSubscriber", "hasSubscriberWith", "hasFile", "hasFileWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "text", "textNEQ", "textIn", "textNotIn", "textGT", "textGTE", "textLT", "textLTE", "textContains", "textHasPrefix", "textHasSuffix", "textEqualFold", "textContainsFold", "hasOwner", "hasOwnerWith", "hasEntity", "hasEntityWith", "hasSubcontrols", "hasSubcontrolsWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -169294,21 +258478,21 @@ func (ec *executionContext) unmarshalInputEventWhereInput(ctx context.Context, o switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + data, err := ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + data, err := ec.unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + data, err := ec.unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -169733,559 +258917,433 @@ func (ec *executionContext) unmarshalInputEventWhereInput(ctx context.Context, o return it, err } it.UpdatedByContainsFold = data - case "eventID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EventID = data - case "eventIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EventIDNEQ = data - case "eventIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.EventIDIn = data - case "eventIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EventIDNotIn = data - case "eventIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EventIDGT = data - case "eventIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.EventIDGTE = data - case "eventIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.EventIDLT = data - case "eventIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EventIDLTE = data - case "eventIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EventIDContains = data - case "eventIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EventIDHasPrefix = data - case "eventIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EventIDHasSuffix = data - case "eventIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDIsNil")) + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EventIDIsNil = data - case "eventIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDNotNil")) + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EventIDNotNil = data - case "eventIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EventIDEqualFold = data - case "eventIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventIDContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EventIDContainsFold = data - case "correlationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationID")) + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CorrelationID = data - case "correlationIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDNEQ")) + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CorrelationIDNEQ = data - case "correlationIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDIn")) + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CorrelationIDIn = data - case "correlationIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDNotIn")) + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CorrelationIDNotIn = data - case "correlationIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CorrelationIDGT = data - case "correlationIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CorrelationIDGTE = data - case "correlationIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CorrelationIDLT = data - case "correlationIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CorrelationIDLTE = data - case "correlationIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CorrelationIDContains = data - case "correlationIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CorrelationIDHasPrefix = data - case "correlationIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CorrelationIDHasSuffix = data - case "correlationIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CorrelationIDIsNil = data - case "correlationIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CorrelationIDNotNil = data - case "correlationIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CorrelationIDEqualFold = data - case "correlationIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationIDContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CorrelationIDContainsFold = data - case "eventType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventType")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EventType = data - case "eventTypeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeNEQ")) + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeNEQ = data - case "eventTypeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.EventTypeIn = data - case "eventTypeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.EventTypeNotIn = data - case "eventTypeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeGT")) + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeGT = data - case "eventTypeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeGTE")) + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeGTE = data - case "eventTypeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeLT")) + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeLT = data - case "eventTypeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeLTE")) + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeLTE = data - case "eventTypeContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeContains")) + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeContains = data - case "eventTypeHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeHasPrefix")) + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeHasPrefix = data - case "eventTypeHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EventTypeHasSuffix = data - case "eventTypeEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeEqualFold")) + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeEqualFold = data - case "eventTypeContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventTypeContainsFold")) + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EventTypeContainsFold = data - case "hasUser": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUser")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedByContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(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ᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) + 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.HasUserWith = data - case "hasGroup": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroup")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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.HasGroup = data - case "hasGroupWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupWith")) - data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + 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.HasGroupWith = data - case "hasIntegration": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegration")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasIntegration = data - case "hasIntegrationWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationWith")) - data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasIntegrationWith = data - case "hasOrganization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganization")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOrganization = data - case "hasOrganizationWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationWith")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOrganizationWith = data - case "hasInvite": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInvite")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasInvite = data - case "hasInviteWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInviteWith")) - data, err := ec.unmarshalOInviteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInputᚄ(ctx, v) + 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.HasInviteWith = data - case "hasFeature": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeature")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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.HasFeature = data - case "hasFeatureWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeatureWith")) - data, err := ec.unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInputᚄ(ctx, v) + 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.HasFeatureWith = data - case "hasEntitlementplan": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplan")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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.HasEntitlementplan = data - case "hasEntitlementplanWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplanWith")) - data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx, v) + 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.HasEntitlementplanWith = data - case "hasEntitlementplanfeature": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplanfeature")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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.HasEntitlementplanfeature = data - case "hasEntitlementplanfeatureWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplanfeatureWith")) - data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx, v) + it.OwnerIDContainsFold = data + case "text": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEntitlementplanfeatureWith = data - case "hasPersonalAccessToken": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPersonalAccessToken")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Text = data + case "textNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasPersonalAccessToken = data - case "hasPersonalAccessTokenWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPersonalAccessTokenWith")) - data, err := ec.unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx, v) + it.TextNEQ = data + case "textIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasPersonalAccessTokenWith = data - case "hasOauth2token": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOauth2token")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.TextIn = data + case "textNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasOauth2token = data - case "hasOauth2tokenWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOauth2tokenWith")) - data, err := ec.unmarshalOOhAuthTooTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInputᚄ(ctx, v) + it.TextNotIn = data + case "textGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOauth2tokenWith = data - case "hasHush": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasHush")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.TextGT = data + case "textGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasHush = data - case "hasHushWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasHushWith")) - data, err := ec.unmarshalOHushWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInputᚄ(ctx, v) + it.TextGTE = data + case "textLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasHushWith = data - case "hasOrgmembership": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrgmembership")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.TextLT = data + case "textLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOrgmembership = data - case "hasOrgmembershipWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrgmembershipWith")) - data, err := ec.unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInputᚄ(ctx, v) + it.TextLTE = data + case "textContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOrgmembershipWith = data - case "hasGroupmembership": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupmembership")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.TextContains = data + case "textHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasGroupmembership = data - case "hasGroupmembershipWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupmembershipWith")) - data, err := ec.unmarshalOGroupMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInputᚄ(ctx, v) + it.TextHasPrefix = data + case "textHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasGroupmembershipWith = data - case "hasEntitlement": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlement")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.TextHasSuffix = data + case "textEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEntitlement = data - case "hasEntitlementWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementWith")) - data, err := ec.unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx, v) + it.TextEqualFold = data + case "textContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEntitlementWith = data - case "hasWebhook": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWebhook")) + it.TextContainsFold = data + case "hasOwner": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasWebhook = data - case "hasWebhookWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWebhookWith")) - data, err := ec.unmarshalOWebhookWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInputᚄ(ctx, v) + it.HasOwner = data + case "hasOwnerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasWebhookWith = data - case "hasSubscriber": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubscriber")) + it.HasOwnerWith = data + case "hasEntity": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntity")) 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ᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInputᚄ(ctx, v) + it.HasEntity = data + case "hasEntityWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityWith")) + data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasSubscriberWith = data - case "hasFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFile")) + it.HasEntityWith = data + case "hasSubcontrols": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubcontrols")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasFile = data - case "hasFileWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFileWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + it.HasSubcontrols = data + case "hasSubcontrolsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubcontrolsWith")) + data, err := ec.unmarshalOSubcontrolWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasFileWith = data + it.HasSubcontrolsWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputFeatureHistoryWhereInput(ctx context.Context, obj interface{}) (generated.FeatureHistoryWhereInput, error) { - var it generated.FeatureHistoryWhereInput +func (ec *executionContext) unmarshalInputOauthProviderHistoryWhereInput(ctx context.Context, obj interface{}) (generated.OauthProviderHistoryWhereInput, error) { + var it generated.OauthProviderHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameIsNil", "displayNameNotNil", "displayNameEqualFold", "displayNameContainsFold", "enabled", "enabledNEQ", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "clientID", "clientIDNEQ", "clientIDIn", "clientIDNotIn", "clientIDGT", "clientIDGTE", "clientIDLT", "clientIDLTE", "clientIDContains", "clientIDHasPrefix", "clientIDHasSuffix", "clientIDEqualFold", "clientIDContainsFold", "clientSecret", "clientSecretNEQ", "clientSecretIn", "clientSecretNotIn", "clientSecretGT", "clientSecretGTE", "clientSecretLT", "clientSecretLTE", "clientSecretContains", "clientSecretHasPrefix", "clientSecretHasSuffix", "clientSecretEqualFold", "clientSecretContainsFold", "redirectURL", "redirectURLNEQ", "redirectURLIn", "redirectURLNotIn", "redirectURLGT", "redirectURLGTE", "redirectURLLT", "redirectURLLTE", "redirectURLContains", "redirectURLHasPrefix", "redirectURLHasSuffix", "redirectURLEqualFold", "redirectURLContainsFold", "scopes", "scopesNEQ", "scopesIn", "scopesNotIn", "scopesGT", "scopesGTE", "scopesLT", "scopesLTE", "scopesContains", "scopesHasPrefix", "scopesHasSuffix", "scopesEqualFold", "scopesContainsFold", "authURL", "authURLNEQ", "authURLIn", "authURLNotIn", "authURLGT", "authURLGTE", "authURLLT", "authURLLTE", "authURLContains", "authURLHasPrefix", "authURLHasSuffix", "authURLEqualFold", "authURLContainsFold", "tokenURL", "tokenURLNEQ", "tokenURLIn", "tokenURLNotIn", "tokenURLGT", "tokenURLGTE", "tokenURLLT", "tokenURLLTE", "tokenURLContains", "tokenURLHasPrefix", "tokenURLHasSuffix", "tokenURLEqualFold", "tokenURLContainsFold", "authStyle", "authStyleNEQ", "authStyleIn", "authStyleNotIn", "authStyleGT", "authStyleGTE", "authStyleLT", "authStyleLTE", "infoURL", "infoURLNEQ", "infoURLIn", "infoURLNotIn", "infoURLGT", "infoURLGTE", "infoURLLT", "infoURLLTE", "infoURLContains", "infoURLHasPrefix", "infoURLHasSuffix", "infoURLEqualFold", "infoURLContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -170294,21 +259352,21 @@ func (ec *executionContext) unmarshalInputFeatureHistoryWhereInput(ctx context.C switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOOauthProviderHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOFeatureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOauthProviderHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOFeatureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOauthProviderHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -170546,28 +259604,28 @@ func (ec *executionContext) unmarshalInputFeatureHistoryWhereInput(ctx context.C it.RefContainsFold = data case "operation": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOFeatureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOOauthProviderHistoryOpType2ᚖ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.unmarshalOFeatureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOOauthProviderHistoryOpType2ᚖ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.unmarshalOFeatureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOOauthProviderHistoryOpType2ᚕ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.unmarshalOFeatureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOOauthProviderHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } @@ -171293,244 +260351,713 @@ func (ec *executionContext) unmarshalInputFeatureHistoryWhereInput(ctx context.C return it, err } it.NameContainsFold = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + case "clientID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "displayNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + it.ClientID = data + case "clientIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameNEQ = data - case "displayNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + it.ClientIDNEQ = data + case "clientIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DisplayNameIn = data - case "displayNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + it.ClientIDIn = data + case "clientIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DisplayNameNotIn = data - case "displayNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + it.ClientIDNotIn = data + case "clientIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameGT = data - case "displayNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + it.ClientIDGT = data + case "clientIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameGTE = data - case "displayNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + it.ClientIDGTE = data + case "clientIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameLT = data - case "displayNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + it.ClientIDLT = data + case "clientIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameLTE = data - case "displayNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + it.ClientIDLTE = data + case "clientIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameContains = data - case "displayNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + it.ClientIDContains = data + case "clientIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameHasPrefix = data - case "displayNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + it.ClientIDHasPrefix = data + case "clientIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameHasSuffix = data - case "displayNameIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClientIDHasSuffix = data + case "clientIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameIsNil = data - case "displayNameNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClientIDEqualFold = data + case "clientIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameNotNil = data - case "displayNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + it.ClientIDContainsFold = data + case "clientSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameEqualFold = data - case "displayNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + it.ClientSecret = data + case "clientSecretNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameContainsFold = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClientSecretNEQ = data + case "clientSecretIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Enabled = data - case "enabledNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabledNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClientSecretIn = data + case "clientSecretNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.EnabledNEQ = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + it.ClientSecretNotIn = data + case "clientSecretGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretGT")) 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")) + it.ClientSecretGT = data + case "clientSecretGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretGTE")) 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")) + it.ClientSecretGTE = data + case "clientSecretLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClientSecretLT = data + case "clientSecretLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClientSecretLTE = data + case "clientSecretContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClientSecretContains = data + case "clientSecretHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClientSecretHasPrefix = data + case "clientSecretHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClientSecretHasSuffix = data + case "clientSecretEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClientSecretEqualFold = data + case "clientSecretContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClientSecretContainsFold = data + case "redirectURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RedirectURL = data + case "redirectURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RedirectURLNEQ = data + case "redirectURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLIn")) 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")) + it.RedirectURLIn = data + case "redirectURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DescriptionNotIn = data - case "descriptionGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + it.RedirectURLNotIn = data + case "redirectURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionGT = data - case "descriptionGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + it.RedirectURLGT = data + case "redirectURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionGTE = data - case "descriptionLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + it.RedirectURLGTE = data + case "redirectURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionLT = data - case "descriptionLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + it.RedirectURLLT = data + case "redirectURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionLTE = data - case "descriptionContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) + it.RedirectURLLTE = data + case "redirectURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLContains")) 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")) + it.RedirectURLContains = data + case "redirectURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLHasPrefix")) 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")) + it.RedirectURLHasPrefix = data + case "redirectURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLHasSuffix")) 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) + it.RedirectURLHasSuffix = data + case "redirectURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.RedirectURLEqualFold = data + case "redirectURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionNotNil = data - case "descriptionEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionEqualFold")) + it.RedirectURLContainsFold = data + case "scopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) 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")) + it.Scopes = data + case "scopesNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionContainsFold = data + it.ScopesNEQ = data + case "scopesIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ScopesIn = data + case "scopesNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ScopesNotIn = data + case "scopesGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ScopesGT = data + case "scopesGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ScopesGTE = data + case "scopesLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ScopesLT = data + case "scopesLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ScopesLTE = data + case "scopesContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ScopesContains = data + case "scopesHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ScopesHasPrefix = data + case "scopesHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ScopesHasSuffix = data + case "scopesEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ScopesEqualFold = data + case "scopesContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ScopesContainsFold = data + case "authURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AuthURL = data + case "authURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AuthURLNEQ = data + case "authURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AuthURLIn = data + case "authURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AuthURLNotIn = data + case "authURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AuthURLGT = data + case "authURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AuthURLGTE = data + case "authURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AuthURLLT = data + case "authURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AuthURLLTE = data + case "authURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AuthURLContains = data + case "authURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AuthURLHasPrefix = data + case "authURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AuthURLHasSuffix = data + case "authURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AuthURLEqualFold = data + case "authURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AuthURLContainsFold = data + case "tokenURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TokenURL = data + case "tokenURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TokenURLNEQ = data + case "tokenURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TokenURLIn = data + case "tokenURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TokenURLNotIn = data + case "tokenURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TokenURLGT = data + case "tokenURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TokenURLGTE = data + case "tokenURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TokenURLLT = data + case "tokenURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TokenURLLTE = data + case "tokenURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TokenURLContains = data + case "tokenURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TokenURLHasPrefix = data + case "tokenURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TokenURLHasSuffix = data + case "tokenURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TokenURLEqualFold = data + case "tokenURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TokenURLContainsFold = data + case "authStyle": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyle")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + if err != nil { + return it, err + } + it.AuthStyle = data + case "authStyleNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleNEQ")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + if err != nil { + return it, err + } + it.AuthStyleNEQ = data + case "authStyleIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleIn")) + data, err := ec.unmarshalOUint2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8ᚄ(ctx, v) + if err != nil { + return it, err + } + it.AuthStyleIn = data + case "authStyleNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleNotIn")) + data, err := ec.unmarshalOUint2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8ᚄ(ctx, v) + if err != nil { + return it, err + } + it.AuthStyleNotIn = data + case "authStyleGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleGT")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + if err != nil { + return it, err + } + it.AuthStyleGT = data + case "authStyleGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleGTE")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + if err != nil { + return it, err + } + it.AuthStyleGTE = data + case "authStyleLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleLT")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + if err != nil { + return it, err + } + it.AuthStyleLT = data + case "authStyleLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleLTE")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + if err != nil { + return it, err + } + it.AuthStyleLTE = data + case "infoURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.InfoURL = data + case "infoURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.InfoURLNEQ = data + case "infoURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.InfoURLIn = data + case "infoURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.InfoURLNotIn = data + case "infoURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.InfoURLGT = data + case "infoURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.InfoURLGTE = data + case "infoURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.InfoURLLT = data + case "infoURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.InfoURLLTE = data + case "infoURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.InfoURLContains = data + case "infoURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.InfoURLHasPrefix = data + case "infoURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.InfoURLHasSuffix = data + case "infoURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.InfoURLEqualFold = data + case "infoURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.InfoURLContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputFeatureWhereInput(ctx context.Context, obj interface{}) (generated.FeatureWhereInput, error) { - var it generated.FeatureWhereInput +func (ec *executionContext) unmarshalInputOauthProviderWhereInput(ctx context.Context, obj interface{}) (generated.OauthProviderWhereInput, error) { + var it generated.OauthProviderWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameIsNil", "displayNameNotNil", "displayNameEqualFold", "displayNameContainsFold", "enabled", "enabledNEQ", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "hasOwner", "hasOwnerWith", "hasPlans", "hasPlansWith", "hasEvents", "hasEventsWith", "hasFeatures", "hasFeaturesWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "clientID", "clientIDNEQ", "clientIDIn", "clientIDNotIn", "clientIDGT", "clientIDGTE", "clientIDLT", "clientIDLTE", "clientIDContains", "clientIDHasPrefix", "clientIDHasSuffix", "clientIDEqualFold", "clientIDContainsFold", "clientSecret", "clientSecretNEQ", "clientSecretIn", "clientSecretNotIn", "clientSecretGT", "clientSecretGTE", "clientSecretLT", "clientSecretLTE", "clientSecretContains", "clientSecretHasPrefix", "clientSecretHasSuffix", "clientSecretEqualFold", "clientSecretContainsFold", "redirectURL", "redirectURLNEQ", "redirectURLIn", "redirectURLNotIn", "redirectURLGT", "redirectURLGTE", "redirectURLLT", "redirectURLLTE", "redirectURLContains", "redirectURLHasPrefix", "redirectURLHasSuffix", "redirectURLEqualFold", "redirectURLContainsFold", "scopes", "scopesNEQ", "scopesIn", "scopesNotIn", "scopesGT", "scopesGTE", "scopesLT", "scopesLTE", "scopesContains", "scopesHasPrefix", "scopesHasSuffix", "scopesEqualFold", "scopesContainsFold", "authURL", "authURLNEQ", "authURLIn", "authURLNotIn", "authURLGT", "authURLGTE", "authURLLT", "authURLLTE", "authURLContains", "authURLHasPrefix", "authURLHasSuffix", "authURLEqualFold", "authURLContainsFold", "tokenURL", "tokenURLNEQ", "tokenURLIn", "tokenURLNotIn", "tokenURLGT", "tokenURLGTE", "tokenURLLT", "tokenURLLTE", "tokenURLContains", "tokenURLHasPrefix", "tokenURLHasSuffix", "tokenURLEqualFold", "tokenURLContainsFold", "authStyle", "authStyleNEQ", "authStyleIn", "authStyleNotIn", "authStyleGT", "authStyleGTE", "authStyleLT", "authStyleLTE", "infoURL", "infoURLNEQ", "infoURLIn", "infoURLNotIn", "infoURLGT", "infoURLGTE", "infoURLLT", "infoURLLTE", "infoURLContains", "infoURLHasPrefix", "infoURLHasSuffix", "infoURLEqualFold", "infoURLContainsFold", "hasOwner", "hasOwnerWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -171539,21 +261066,21 @@ func (ec *executionContext) unmarshalInputFeatureWhereInput(ctx context.Context, switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInput(ctx, v) + data, err := ec.unmarshalOOauthProviderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOauthProviderWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOauthProviderWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -172349,2378 +261876,1573 @@ func (ec *executionContext) unmarshalInputFeatureWhereInput(ctx context.Context, return it, err } it.NameContainsFold = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayName = data - case "displayNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameNEQ = data - case "displayNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameIn = data - case "displayNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameNotIn = data - case "displayNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameGT = data - case "displayNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameGTE = data - case "displayNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameLT = data - case "displayNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameLTE = data - case "displayNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameContains = data - case "displayNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameHasPrefix = data - case "displayNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameHasSuffix = data - case "displayNameIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameIsNil = data - case "displayNameNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameNotNil = data - case "displayNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameEqualFold = data - case "displayNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameContainsFold = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.Enabled = data - case "enabledNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabledNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.EnabledNEQ = 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 "descriptionGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DescriptionGT = data - case "descriptionGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DescriptionGTE = data - case "descriptionLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DescriptionLT = data - case "descriptionLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DescriptionLTE = 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 "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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasOwnerWith = data - case "hasPlans": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlans")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasPlans = data - case "hasPlansWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlansWith")) - data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasPlansWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasEventsWith = data - case "hasFeatures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeatures")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasFeatures = data - case "hasFeaturesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeaturesWith")) - data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasFeaturesWith = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputFileHistoryWhereInput(ctx context.Context, obj interface{}) (generated.FileHistoryWhereInput, error) { - var it generated.FileHistoryWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "providedFileName", "providedFileNameNEQ", "providedFileNameIn", "providedFileNameNotIn", "providedFileNameGT", "providedFileNameGTE", "providedFileNameLT", "providedFileNameLTE", "providedFileNameContains", "providedFileNameHasPrefix", "providedFileNameHasSuffix", "providedFileNameEqualFold", "providedFileNameContainsFold", "providedFileExtension", "providedFileExtensionNEQ", "providedFileExtensionIn", "providedFileExtensionNotIn", "providedFileExtensionGT", "providedFileExtensionGTE", "providedFileExtensionLT", "providedFileExtensionLTE", "providedFileExtensionContains", "providedFileExtensionHasPrefix", "providedFileExtensionHasSuffix", "providedFileExtensionEqualFold", "providedFileExtensionContainsFold", "providedFileSize", "providedFileSizeNEQ", "providedFileSizeIn", "providedFileSizeNotIn", "providedFileSizeGT", "providedFileSizeGTE", "providedFileSizeLT", "providedFileSizeLTE", "providedFileSizeIsNil", "providedFileSizeNotNil", "persistedFileSize", "persistedFileSizeNEQ", "persistedFileSizeIn", "persistedFileSizeNotIn", "persistedFileSizeGT", "persistedFileSizeGTE", "persistedFileSizeLT", "persistedFileSizeLTE", "persistedFileSizeIsNil", "persistedFileSizeNotNil", "detectedMimeType", "detectedMimeTypeNEQ", "detectedMimeTypeIn", "detectedMimeTypeNotIn", "detectedMimeTypeGT", "detectedMimeTypeGTE", "detectedMimeTypeLT", "detectedMimeTypeLTE", "detectedMimeTypeContains", "detectedMimeTypeHasPrefix", "detectedMimeTypeHasSuffix", "detectedMimeTypeIsNil", "detectedMimeTypeNotNil", "detectedMimeTypeEqualFold", "detectedMimeTypeContainsFold", "md5Hash", "md5HashNEQ", "md5HashIn", "md5HashNotIn", "md5HashGT", "md5HashGTE", "md5HashLT", "md5HashLTE", "md5HashContains", "md5HashHasPrefix", "md5HashHasSuffix", "md5HashIsNil", "md5HashNotNil", "md5HashEqualFold", "md5HashContainsFold", "detectedContentType", "detectedContentTypeNEQ", "detectedContentTypeIn", "detectedContentTypeNotIn", "detectedContentTypeGT", "detectedContentTypeGTE", "detectedContentTypeLT", "detectedContentTypeLTE", "detectedContentTypeContains", "detectedContentTypeHasPrefix", "detectedContentTypeHasSuffix", "detectedContentTypeEqualFold", "detectedContentTypeContainsFold", "storeKey", "storeKeyNEQ", "storeKeyIn", "storeKeyNotIn", "storeKeyGT", "storeKeyGTE", "storeKeyLT", "storeKeyLTE", "storeKeyContains", "storeKeyHasPrefix", "storeKeyHasSuffix", "storeKeyIsNil", "storeKeyNotNil", "storeKeyEqualFold", "storeKeyContainsFold", "categoryType", "categoryTypeNEQ", "categoryTypeIn", "categoryTypeNotIn", "categoryTypeGT", "categoryTypeGTE", "categoryTypeLT", "categoryTypeLTE", "categoryTypeContains", "categoryTypeHasPrefix", "categoryTypeHasSuffix", "categoryTypeIsNil", "categoryTypeNotNil", "categoryTypeEqualFold", "categoryTypeContainsFold", "uri", "uriNEQ", "uriIn", "uriNotIn", "uriGT", "uriGTE", "uriLT", "uriLTE", "uriContains", "uriHasPrefix", "uriHasSuffix", "uriIsNil", "uriNotNil", "uriEqualFold", "uriContainsFold", "storageScheme", "storageSchemeNEQ", "storageSchemeIn", "storageSchemeNotIn", "storageSchemeGT", "storageSchemeGTE", "storageSchemeLT", "storageSchemeLTE", "storageSchemeContains", "storageSchemeHasPrefix", "storageSchemeHasSuffix", "storageSchemeIsNil", "storageSchemeNotNil", "storageSchemeEqualFold", "storageSchemeContainsFold", "storageVolume", "storageVolumeNEQ", "storageVolumeIn", "storageVolumeNotIn", "storageVolumeGT", "storageVolumeGTE", "storageVolumeLT", "storageVolumeLTE", "storageVolumeContains", "storageVolumeHasPrefix", "storageVolumeHasSuffix", "storageVolumeIsNil", "storageVolumeNotNil", "storageVolumeEqualFold", "storageVolumeContainsFold", "storagePath", "storagePathNEQ", "storagePathIn", "storagePathNotIn", "storagePathGT", "storagePathGTE", "storagePathLT", "storagePathLTE", "storagePathContains", "storagePathHasPrefix", "storagePathHasSuffix", "storagePathIsNil", "storagePathNotNil", "storagePathEqualFold", "storagePathContainsFold"} - 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.unmarshalOFileHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInput(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOFileHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOFileHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Or = data - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "idNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDNEQ = data - case "idIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDIn = data - case "idNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDEqualFold = data - case "idContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDContainsFold = data - case "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 "historyTimeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNEQ = data - case "historyTimeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeIn = data - case "historyTimeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNotIn = 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 "refGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGT = data - case "refGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGTE = data - case "refLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLT = data - case "refLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLTE = 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.unmarshalOFileHistoryOpType2ᚖ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.unmarshalOFileHistoryOpType2ᚖ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.unmarshalOFileHistoryOpType2ᚕ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.unmarshalOFileHistoryOpType2ᚕ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 "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGT = data - case "createdAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGTE = data - case "createdAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLT = data - case "createdAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLTE = data - case "createdAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotNil = data - case "updatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGT = data - case "updatedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGTE = data - case "updatedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLT = data - case "updatedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLTE = data - case "updatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIsNil = data - case "updatedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotNil = data - case "createdBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + case "clientID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) 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")) + it.ClientID = data + case "clientIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDNEQ")) 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")) + it.ClientIDNEQ = data + case "clientIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDIn")) 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")) + it.ClientIDIn = data + case "clientIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + it.ClientIDNotIn = data + case "clientIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + it.ClientIDGT = data + case "clientIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + it.ClientIDGTE = data + case "clientIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + it.ClientIDLT = data + case "clientIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + it.ClientIDLTE = data + case "clientIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDContains")) 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")) + it.ClientIDContains = data + case "clientIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDHasPrefix")) 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")) + it.ClientIDHasPrefix = data + case "clientIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDHasSuffix")) 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")) + it.ClientIDHasSuffix = data + case "clientIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDEqualFold")) 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")) + it.ClientIDEqualFold = data + case "clientIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDContainsFold")) 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")) + it.ClientIDContainsFold = data + case "clientSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) 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")) + it.ClientSecret = data + case "clientSecretNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretNEQ")) 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")) + it.ClientSecretNEQ = data + case "clientSecretIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretIn")) 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")) + it.ClientSecretIn = data + case "clientSecretNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + it.ClientSecretNotIn = data + case "clientSecretGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + it.ClientSecretGT = data + case "clientSecretGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + it.ClientSecretGTE = data + case "clientSecretLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + it.ClientSecretLT = data + case "clientSecretLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + it.ClientSecretLTE = data + case "clientSecretContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretContains")) 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")) + it.ClientSecretContains = data + case "clientSecretHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretHasPrefix")) 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")) + it.ClientSecretHasPrefix = data + case "clientSecretHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretHasSuffix")) 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")) + it.ClientSecretHasSuffix = data + case "clientSecretEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretEqualFold")) 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")) + it.ClientSecretEqualFold = data + case "clientSecretContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + it.ClientSecretContainsFold = data + case "redirectURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURL")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + it.RedirectURL = data + case "redirectURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + it.RedirectURLNEQ = data + case "redirectURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + it.RedirectURLIn = data + case "redirectURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + it.RedirectURLNotIn = data + case "redirectURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + it.RedirectURLGT = data + case "redirectURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + it.RedirectURLGTE = data + case "redirectURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + it.RedirectURLLT = data + case "redirectURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + it.RedirectURLLTE = data + case "redirectURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.RedirectURLContains = data + case "redirectURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.RedirectURLHasPrefix = data + case "redirectURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + it.RedirectURLHasSuffix = data + case "redirectURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + it.RedirectURLEqualFold = data + case "redirectURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "providedFileName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileName")) + it.RedirectURLContainsFold = data + case "scopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileName = data - case "providedFileNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameNEQ")) + it.Scopes = data + case "scopesNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileNameNEQ = data - case "providedFileNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameIn")) + it.ScopesNEQ = data + case "scopesIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ProvidedFileNameIn = data - case "providedFileNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameNotIn")) + it.ScopesIn = data + case "scopesNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ProvidedFileNameNotIn = data - case "providedFileNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameGT")) + it.ScopesNotIn = data + case "scopesGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileNameGT = data - case "providedFileNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameGTE")) + it.ScopesGT = data + case "scopesGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileNameGTE = data - case "providedFileNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameLT")) + it.ScopesGTE = data + case "scopesLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileNameLT = data - case "providedFileNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameLTE")) + it.ScopesLT = data + case "scopesLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileNameLTE = data - case "providedFileNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameContains")) + it.ScopesLTE = data + case "scopesContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileNameContains = data - case "providedFileNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameHasPrefix")) + it.ScopesContains = data + case "scopesHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileNameHasPrefix = data - case "providedFileNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameHasSuffix")) + it.ScopesHasPrefix = data + case "scopesHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileNameHasSuffix = data - case "providedFileNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameEqualFold")) + it.ScopesHasSuffix = data + case "scopesEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileNameEqualFold = data - case "providedFileNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameContainsFold")) + it.ScopesEqualFold = data + case "scopesContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileNameContainsFold = data - case "providedFileExtension": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtension")) + it.ScopesContainsFold = data + case "authURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURL")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtension = data - case "providedFileExtensionNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionNEQ")) + it.AuthURL = data + case "authURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtensionNEQ = data - case "providedFileExtensionIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionIn")) + it.AuthURLNEQ = data + case "authURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtensionIn = data - case "providedFileExtensionNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionNotIn")) + it.AuthURLIn = data + case "authURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtensionNotIn = data - case "providedFileExtensionGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionGT")) + it.AuthURLNotIn = data + case "authURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtensionGT = data - case "providedFileExtensionGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionGTE")) + it.AuthURLGT = data + case "authURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtensionGTE = data - case "providedFileExtensionLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionLT")) + it.AuthURLGTE = data + case "authURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtensionLT = data - case "providedFileExtensionLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionLTE")) + it.AuthURLLT = data + case "authURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtensionLTE = data - case "providedFileExtensionContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionContains")) + it.AuthURLLTE = data + case "authURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtensionContains = data - case "providedFileExtensionHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionHasPrefix")) + it.AuthURLContains = data + case "authURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtensionHasPrefix = data - case "providedFileExtensionHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionHasSuffix")) + it.AuthURLHasPrefix = data + case "authURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtensionHasSuffix = data - case "providedFileExtensionEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionEqualFold")) + it.AuthURLHasSuffix = data + case "authURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtensionEqualFold = data - case "providedFileExtensionContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionContainsFold")) + it.AuthURLEqualFold = data + case "authURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtensionContainsFold = data - case "providedFileSize": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSize")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.AuthURLContainsFold = data + case "tokenURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileSize = data - case "providedFileSizeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeNEQ")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.TokenURL = data + case "tokenURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileSizeNEQ = data - case "providedFileSizeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeIn")) - data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) + it.TokenURLNEQ = data + case "tokenURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ProvidedFileSizeIn = data - case "providedFileSizeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeNotIn")) - data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) + it.TokenURLIn = data + case "tokenURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ProvidedFileSizeNotIn = data - case "providedFileSizeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeGT")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.TokenURLNotIn = data + case "tokenURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileSizeGT = data - case "providedFileSizeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeGTE")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.TokenURLGT = data + case "tokenURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileSizeGTE = data - case "providedFileSizeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeLT")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.TokenURLGTE = data + case "tokenURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileSizeLT = data - case "providedFileSizeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeLTE")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.TokenURLLT = data + case "tokenURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileSizeLTE = data - case "providedFileSizeIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.TokenURLLTE = data + case "tokenURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileSizeIsNil = data - case "providedFileSizeNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.TokenURLContains = data + case "tokenURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileSizeNotNil = data - case "persistedFileSize": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSize")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.TokenURLHasPrefix = data + case "tokenURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PersistedFileSize = data - case "persistedFileSizeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeNEQ")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.TokenURLHasSuffix = data + case "tokenURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PersistedFileSizeNEQ = data - case "persistedFileSizeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeIn")) - data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) + it.TokenURLEqualFold = data + case "tokenURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PersistedFileSizeIn = data - case "persistedFileSizeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeNotIn")) - data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) + it.TokenURLContainsFold = data + case "authStyle": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyle")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) if err != nil { return it, err } - it.PersistedFileSizeNotIn = data - case "persistedFileSizeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeGT")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.AuthStyle = data + case "authStyleNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleNEQ")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) if err != nil { return it, err } - it.PersistedFileSizeGT = data - case "persistedFileSizeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeGTE")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.AuthStyleNEQ = data + case "authStyleIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleIn")) + data, err := ec.unmarshalOUint2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8ᚄ(ctx, v) if err != nil { return it, err } - it.PersistedFileSizeGTE = data - case "persistedFileSizeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeLT")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.AuthStyleIn = data + case "authStyleNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleNotIn")) + data, err := ec.unmarshalOUint2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8ᚄ(ctx, v) if err != nil { return it, err } - it.PersistedFileSizeLT = data - case "persistedFileSizeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeLTE")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.AuthStyleNotIn = data + case "authStyleGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleGT")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) if err != nil { return it, err } - it.PersistedFileSizeLTE = data - case "persistedFileSizeIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AuthStyleGT = data + case "authStyleGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleGTE")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) if err != nil { return it, err } - it.PersistedFileSizeIsNil = data - case "persistedFileSizeNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AuthStyleGTE = data + case "authStyleLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleLT")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) if err != nil { return it, err } - it.PersistedFileSizeNotNil = data - case "detectedMimeType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeType")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AuthStyleLT = data + case "authStyleLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleLTE")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) if err != nil { return it, err } - it.DetectedMimeType = data - case "detectedMimeTypeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeNEQ")) + it.AuthStyleLTE = data + case "infoURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURL")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeNEQ = data - case "detectedMimeTypeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.InfoURL = data + case "infoURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeIn = data - case "detectedMimeTypeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeNotIn")) + it.InfoURLNEQ = data + case "infoURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeNotIn = data - case "detectedMimeTypeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.InfoURLIn = data + case "infoURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeGT = data - case "detectedMimeTypeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeGTE")) + it.InfoURLNotIn = data + case "infoURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeGTE = data - case "detectedMimeTypeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeLT")) + it.InfoURLGT = data + case "infoURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeLT = data - case "detectedMimeTypeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeLTE")) + it.InfoURLGTE = data + case "infoURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeLTE = data - case "detectedMimeTypeContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeContains")) + it.InfoURLLT = data + case "infoURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeContains = data - case "detectedMimeTypeHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeHasPrefix")) + it.InfoURLLTE = data + case "infoURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeHasPrefix = data - case "detectedMimeTypeHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeHasSuffix")) + it.InfoURLContains = data + case "infoURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeHasSuffix = data - case "detectedMimeTypeIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeIsNil = data - case "detectedMimeTypeNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.InfoURLHasPrefix = data + case "infoURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeNotNil = data - case "detectedMimeTypeEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeEqualFold")) + it.InfoURLHasSuffix = data + case "infoURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeEqualFold = data - case "detectedMimeTypeContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeContainsFold")) + it.InfoURLEqualFold = data + case "infoURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedMimeTypeContainsFold = data - case "md5Hash": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5Hash")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.InfoURLContainsFold = data + case "hasOwner": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Md5Hash = data - case "md5HashNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasOwner = data + case "hasOwnerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.Md5HashNEQ = data - case "md5HashIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.HasOwnerWith = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputOhAuthTooTokenWhereInput(ctx context.Context, obj interface{}) (generated.OhAuthTooTokenWhereInput, error) { + var it generated.OhAuthTooTokenWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "clientID", "clientIDNEQ", "clientIDIn", "clientIDNotIn", "clientIDGT", "clientIDGTE", "clientIDLT", "clientIDLTE", "clientIDContains", "clientIDHasPrefix", "clientIDHasSuffix", "clientIDEqualFold", "clientIDContainsFold", "nonce", "nonceNEQ", "nonceIn", "nonceNotIn", "nonceGT", "nonceGTE", "nonceLT", "nonceLTE", "nonceContains", "nonceHasPrefix", "nonceHasSuffix", "nonceEqualFold", "nonceContainsFold", "claimsUserID", "claimsUserIDNEQ", "claimsUserIDIn", "claimsUserIDNotIn", "claimsUserIDGT", "claimsUserIDGTE", "claimsUserIDLT", "claimsUserIDLTE", "claimsUserIDContains", "claimsUserIDHasPrefix", "claimsUserIDHasSuffix", "claimsUserIDEqualFold", "claimsUserIDContainsFold", "claimsUsername", "claimsUsernameNEQ", "claimsUsernameIn", "claimsUsernameNotIn", "claimsUsernameGT", "claimsUsernameGTE", "claimsUsernameLT", "claimsUsernameLTE", "claimsUsernameContains", "claimsUsernameHasPrefix", "claimsUsernameHasSuffix", "claimsUsernameEqualFold", "claimsUsernameContainsFold", "claimsEmail", "claimsEmailNEQ", "claimsEmailIn", "claimsEmailNotIn", "claimsEmailGT", "claimsEmailGTE", "claimsEmailLT", "claimsEmailLTE", "claimsEmailContains", "claimsEmailHasPrefix", "claimsEmailHasSuffix", "claimsEmailEqualFold", "claimsEmailContainsFold", "claimsEmailVerified", "claimsEmailVerifiedNEQ", "claimsPreferredUsername", "claimsPreferredUsernameNEQ", "claimsPreferredUsernameIn", "claimsPreferredUsernameNotIn", "claimsPreferredUsernameGT", "claimsPreferredUsernameGTE", "claimsPreferredUsernameLT", "claimsPreferredUsernameLTE", "claimsPreferredUsernameContains", "claimsPreferredUsernameHasPrefix", "claimsPreferredUsernameHasSuffix", "claimsPreferredUsernameEqualFold", "claimsPreferredUsernameContainsFold", "connectorID", "connectorIDNEQ", "connectorIDIn", "connectorIDNotIn", "connectorIDGT", "connectorIDGTE", "connectorIDLT", "connectorIDLTE", "connectorIDContains", "connectorIDHasPrefix", "connectorIDHasSuffix", "connectorIDEqualFold", "connectorIDContainsFold", "lastUsed", "lastUsedNEQ", "lastUsedIn", "lastUsedNotIn", "lastUsedGT", "lastUsedGTE", "lastUsedLT", "lastUsedLTE", "hasIntegration", "hasIntegrationWith", "hasEvents", "hasEventsWith"} + 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.unmarshalOOhAuthTooTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInput(ctx, v) if err != nil { return it, err } - it.Md5HashIn = data - case "md5HashNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOOhAuthTooTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.Md5HashNotIn = data - case "md5HashGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOOhAuthTooTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.Md5HashGT = data - case "md5HashGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.Md5HashGTE = data - case "md5HashLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.Md5HashLT = data - case "md5HashLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Md5HashLTE = data - case "md5HashContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Md5HashContains = data - case "md5HashHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashHasPrefix = data - case "md5HashHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashHasSuffix = data - case "md5HashIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashIsNil = data - case "md5HashNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashNotNil = data - case "md5HashEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashEqualFold = data - case "md5HashContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashContainsFold = data - case "detectedContentType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentType")) + it.IDContainsFold = data + case "clientID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentType = data - case "detectedContentTypeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeNEQ")) + it.ClientID = data + case "clientIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeNEQ = data - case "detectedContentTypeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeIn")) + it.ClientIDNEQ = data + case "clientIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeIn = data - case "detectedContentTypeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeNotIn")) + it.ClientIDIn = data + case "clientIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeNotIn = data - case "detectedContentTypeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeGT")) + it.ClientIDNotIn = data + case "clientIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeGT = data - case "detectedContentTypeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeGTE")) + it.ClientIDGT = data + case "clientIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeGTE = data - case "detectedContentTypeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeLT")) + it.ClientIDGTE = data + case "clientIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeLT = data - case "detectedContentTypeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeLTE")) + it.ClientIDLT = data + case "clientIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeLTE = data - case "detectedContentTypeContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeContains")) + it.ClientIDLTE = data + case "clientIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeContains = data - case "detectedContentTypeHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeHasPrefix")) + it.ClientIDContains = data + case "clientIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeHasPrefix = data - case "detectedContentTypeHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeHasSuffix")) + it.ClientIDHasPrefix = data + case "clientIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeHasSuffix = data - case "detectedContentTypeEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeEqualFold")) + it.ClientIDHasSuffix = data + case "clientIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeEqualFold = data - case "detectedContentTypeContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeContainsFold")) + it.ClientIDEqualFold = data + case "clientIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeContainsFold = data - case "storeKey": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKey")) + it.ClientIDContainsFold = data + case "nonce": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonce")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKey = data - case "storeKeyNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyNEQ")) + it.Nonce = data + case "nonceNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyNEQ = data - case "storeKeyIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyIn")) + it.NonceNEQ = data + case "nonceIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.StoreKeyIn = data - case "storeKeyNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyNotIn")) + it.NonceIn = data + case "nonceNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.StoreKeyNotIn = data - case "storeKeyGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyGT")) + it.NonceNotIn = data + case "nonceGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyGT = data - case "storeKeyGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyGTE")) + it.NonceGT = data + case "nonceGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyGTE = data - case "storeKeyLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyLT")) + it.NonceGTE = data + case "nonceLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyLT = data - case "storeKeyLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyLTE")) + it.NonceLT = data + case "nonceLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyLTE = data - case "storeKeyContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyContains")) + it.NonceLTE = data + case "nonceContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyContains = data - case "storeKeyHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyHasPrefix")) + it.NonceContains = data + case "nonceHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyHasPrefix = data - case "storeKeyHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyHasSuffix")) + it.NonceHasPrefix = data + case "nonceHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyHasSuffix = data - case "storeKeyIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.NonceHasSuffix = data + case "nonceEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyIsNil = data - case "storeKeyNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.NonceEqualFold = data + case "nonceContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyNotNil = data - case "storeKeyEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyEqualFold")) + it.NonceContainsFold = data + case "claimsUserID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserID")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyEqualFold = data - case "storeKeyContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyContainsFold")) + it.ClaimsUserID = data + case "claimsUserIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyContainsFold = data - case "categoryType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryType")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClaimsUserIDNEQ = data + case "claimsUserIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CategoryType = data - case "categoryTypeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeNEQ")) + it.ClaimsUserIDIn = data + case "claimsUserIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ClaimsUserIDNotIn = data + case "claimsUserIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeNEQ = data - case "categoryTypeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClaimsUserIDGT = data + case "claimsUserIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeIn = data - case "categoryTypeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClaimsUserIDGTE = data + case "claimsUserIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeNotIn = data - case "categoryTypeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeGT")) + it.ClaimsUserIDLT = data + case "claimsUserIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeGT = data - case "categoryTypeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeGTE")) + it.ClaimsUserIDLTE = data + case "claimsUserIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeGTE = data - case "categoryTypeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeLT")) + it.ClaimsUserIDContains = data + case "claimsUserIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeLT = data - case "categoryTypeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeLTE")) + it.ClaimsUserIDHasPrefix = data + case "claimsUserIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeLTE = data - case "categoryTypeContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeContains")) + it.ClaimsUserIDHasSuffix = data + case "claimsUserIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeContains = data - case "categoryTypeHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeHasPrefix")) + it.ClaimsUserIDEqualFold = data + case "claimsUserIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeHasPrefix = data - case "categoryTypeHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeHasSuffix")) + it.ClaimsUserIDContainsFold = data + case "claimsUsername": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsername")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeHasSuffix = data - case "categoryTypeIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClaimsUsername = data + case "claimsUsernameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeIsNil = data - case "categoryTypeNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClaimsUsernameNEQ = data + case "claimsUsernameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CategoryTypeNotNil = data - case "categoryTypeEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClaimsUsernameIn = data + case "claimsUsernameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CategoryTypeEqualFold = data - case "categoryTypeContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeContainsFold")) + it.ClaimsUsernameNotIn = data + case "claimsUsernameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeContainsFold = data - case "uri": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uri")) + it.ClaimsUsernameGT = data + case "claimsUsernameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URI = data - case "uriNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriNEQ")) + it.ClaimsUsernameGTE = data + case "claimsUsernameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URINEQ = data - case "uriIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClaimsUsernameLT = data + case "claimsUsernameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URIIn = data - case "uriNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClaimsUsernameLTE = data + case "claimsUsernameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URINotIn = data - case "uriGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriGT")) + it.ClaimsUsernameContains = data + case "claimsUsernameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URIGT = data - case "uriGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriGTE")) + it.ClaimsUsernameHasPrefix = data + case "claimsUsernameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URIGTE = data - case "uriLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriLT")) + it.ClaimsUsernameHasSuffix = data + case "claimsUsernameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URILT = data - case "uriLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriLTE")) + it.ClaimsUsernameEqualFold = data + case "claimsUsernameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URILTE = data - case "uriContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriContains")) + it.ClaimsUsernameContainsFold = data + case "claimsEmail": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmail")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URIContains = data - case "uriHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriHasPrefix")) + it.ClaimsEmail = data + case "claimsEmailNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URIHasPrefix = data - case "uriHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClaimsEmailNEQ = data + case "claimsEmailIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.URIHasSuffix = data - case "uriIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClaimsEmailIn = data + case "claimsEmailNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.URIIsNil = data - case "uriNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClaimsEmailNotIn = data + case "claimsEmailGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URINotNil = data - case "uriEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriEqualFold")) + it.ClaimsEmailGT = data + case "claimsEmailGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URIEqualFold = data - case "uriContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriContainsFold")) + it.ClaimsEmailGTE = data + case "claimsEmailLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URIContainsFold = data - case "storageScheme": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageScheme")) + it.ClaimsEmailLT = data + case "claimsEmailLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageScheme = data - case "storageSchemeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeNEQ")) + it.ClaimsEmailLTE = data + case "claimsEmailContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeNEQ = data - case "storageSchemeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClaimsEmailContains = data + case "claimsEmailHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeIn = data - case "storageSchemeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClaimsEmailHasPrefix = data + case "claimsEmailHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeNotIn = data - case "storageSchemeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeGT")) + it.ClaimsEmailHasSuffix = data + case "claimsEmailEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeGT = data - case "storageSchemeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeGTE")) + it.ClaimsEmailEqualFold = data + case "claimsEmailContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeGTE = data - case "storageSchemeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClaimsEmailContainsFold = data + case "claimsEmailVerified": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailVerified")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.StorageSchemeLT = data - case "storageSchemeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClaimsEmailVerified = data + case "claimsEmailVerifiedNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailVerifiedNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.StorageSchemeLTE = data - case "storageSchemeContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeContains")) + it.ClaimsEmailVerifiedNEQ = data + case "claimsPreferredUsername": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsername")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeContains = data - case "storageSchemeHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeHasPrefix")) + it.ClaimsPreferredUsername = data + case "claimsPreferredUsernameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeHasPrefix = data - case "storageSchemeHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClaimsPreferredUsernameNEQ = data + case "claimsPreferredUsernameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.StorageSchemeHasSuffix = data - case "storageSchemeIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClaimsPreferredUsernameIn = data + case "claimsPreferredUsernameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.StorageSchemeIsNil = data - case "storageSchemeNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClaimsPreferredUsernameNotIn = data + case "claimsPreferredUsernameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeNotNil = data - case "storageSchemeEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeEqualFold")) + it.ClaimsPreferredUsernameGT = data + case "claimsPreferredUsernameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeEqualFold = data - case "storageSchemeContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeContainsFold")) + it.ClaimsPreferredUsernameGTE = data + case "claimsPreferredUsernameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeContainsFold = data - case "storageVolume": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolume")) + it.ClaimsPreferredUsernameLT = data + case "claimsPreferredUsernameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolume = data - case "storageVolumeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeNEQ")) + it.ClaimsPreferredUsernameLTE = data + case "claimsPreferredUsernameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeNEQ = data - case "storageVolumeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClaimsPreferredUsernameContains = data + case "claimsPreferredUsernameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeIn = data - case "storageVolumeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClaimsPreferredUsernameHasPrefix = data + case "claimsPreferredUsernameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeNotIn = data - case "storageVolumeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeGT")) + it.ClaimsPreferredUsernameHasSuffix = data + case "claimsPreferredUsernameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeGT = data - case "storageVolumeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeGTE")) + it.ClaimsPreferredUsernameEqualFold = data + case "claimsPreferredUsernameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeGTE = data - case "storageVolumeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeLT")) + it.ClaimsPreferredUsernameContainsFold = data + case "connectorID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorID")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeLT = data - case "storageVolumeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeLTE")) + it.ConnectorID = data + case "connectorIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeLTE = data - case "storageVolumeContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ConnectorIDNEQ = data + case "connectorIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.StorageVolumeContains = data - case "storageVolumeHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeHasPrefix")) + it.ConnectorIDIn = data + case "connectorIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ConnectorIDNotIn = data + case "connectorIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeHasPrefix = data - case "storageVolumeHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeHasSuffix")) + it.ConnectorIDGT = data + case "connectorIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeHasSuffix = data - case "storageVolumeIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ConnectorIDGTE = data + case "connectorIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeIsNil = data - case "storageVolumeNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ConnectorIDLT = data + case "connectorIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeNotNil = data - case "storageVolumeEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeEqualFold")) + it.ConnectorIDLTE = data + case "connectorIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeEqualFold = data - case "storageVolumeContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeContainsFold")) + it.ConnectorIDContains = data + case "connectorIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeContainsFold = data - case "storagePath": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePath")) + it.ConnectorIDHasPrefix = data + case "connectorIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoragePath = data - case "storagePathNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathNEQ")) + it.ConnectorIDHasSuffix = data + case "connectorIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoragePathNEQ = data - case "storagePathIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ConnectorIDEqualFold = data + case "connectorIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoragePathIn = data - case "storagePathNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ConnectorIDContainsFold = data + case "lastUsed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsed")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StoragePathNotIn = data - case "storagePathGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.LastUsed = data + case "lastUsedNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StoragePathGT = data - case "storagePathGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.LastUsedNEQ = data + case "lastUsedIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.StoragePathGTE = data - case "storagePathLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.LastUsedIn = data + case "lastUsedNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.StoragePathLT = data - case "storagePathLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.LastUsedNotIn = data + case "lastUsedGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StoragePathLTE = data - case "storagePathContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.LastUsedGT = data + case "lastUsedGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StoragePathContains = data - case "storagePathHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.LastUsedGTE = data + case "lastUsedLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StoragePathHasPrefix = data - case "storagePathHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.LastUsedLT = data + case "lastUsedLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StoragePathHasSuffix = data - case "storagePathIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LastUsedLTE = data + case "hasIntegration": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegration")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.StoragePathIsNil = data - case "storagePathNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.HasIntegration = data + case "hasIntegrationWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationWith")) + data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.StoragePathNotNil = data - case "storagePathEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasIntegrationWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.StoragePathEqualFold = data - case "storagePathContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.StoragePathContainsFold = data + it.HasEventsWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputFileWhereInput(ctx context.Context, obj interface{}) (generated.FileWhereInput, error) { - var it generated.FileWhereInput +func (ec *executionContext) unmarshalInputOrgMembershipHistoryWhereInput(ctx context.Context, obj interface{}) (generated.OrgMembershipHistoryWhereInput, error) { + var it generated.OrgMembershipHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "providedFileName", "providedFileNameNEQ", "providedFileNameIn", "providedFileNameNotIn", "providedFileNameGT", "providedFileNameGTE", "providedFileNameLT", "providedFileNameLTE", "providedFileNameContains", "providedFileNameHasPrefix", "providedFileNameHasSuffix", "providedFileNameEqualFold", "providedFileNameContainsFold", "providedFileExtension", "providedFileExtensionNEQ", "providedFileExtensionIn", "providedFileExtensionNotIn", "providedFileExtensionGT", "providedFileExtensionGTE", "providedFileExtensionLT", "providedFileExtensionLTE", "providedFileExtensionContains", "providedFileExtensionHasPrefix", "providedFileExtensionHasSuffix", "providedFileExtensionEqualFold", "providedFileExtensionContainsFold", "providedFileSize", "providedFileSizeNEQ", "providedFileSizeIn", "providedFileSizeNotIn", "providedFileSizeGT", "providedFileSizeGTE", "providedFileSizeLT", "providedFileSizeLTE", "providedFileSizeIsNil", "providedFileSizeNotNil", "persistedFileSize", "persistedFileSizeNEQ", "persistedFileSizeIn", "persistedFileSizeNotIn", "persistedFileSizeGT", "persistedFileSizeGTE", "persistedFileSizeLT", "persistedFileSizeLTE", "persistedFileSizeIsNil", "persistedFileSizeNotNil", "detectedMimeType", "detectedMimeTypeNEQ", "detectedMimeTypeIn", "detectedMimeTypeNotIn", "detectedMimeTypeGT", "detectedMimeTypeGTE", "detectedMimeTypeLT", "detectedMimeTypeLTE", "detectedMimeTypeContains", "detectedMimeTypeHasPrefix", "detectedMimeTypeHasSuffix", "detectedMimeTypeIsNil", "detectedMimeTypeNotNil", "detectedMimeTypeEqualFold", "detectedMimeTypeContainsFold", "md5Hash", "md5HashNEQ", "md5HashIn", "md5HashNotIn", "md5HashGT", "md5HashGTE", "md5HashLT", "md5HashLTE", "md5HashContains", "md5HashHasPrefix", "md5HashHasSuffix", "md5HashIsNil", "md5HashNotNil", "md5HashEqualFold", "md5HashContainsFold", "detectedContentType", "detectedContentTypeNEQ", "detectedContentTypeIn", "detectedContentTypeNotIn", "detectedContentTypeGT", "detectedContentTypeGTE", "detectedContentTypeLT", "detectedContentTypeLTE", "detectedContentTypeContains", "detectedContentTypeHasPrefix", "detectedContentTypeHasSuffix", "detectedContentTypeEqualFold", "detectedContentTypeContainsFold", "storeKey", "storeKeyNEQ", "storeKeyIn", "storeKeyNotIn", "storeKeyGT", "storeKeyGTE", "storeKeyLT", "storeKeyLTE", "storeKeyContains", "storeKeyHasPrefix", "storeKeyHasSuffix", "storeKeyIsNil", "storeKeyNotNil", "storeKeyEqualFold", "storeKeyContainsFold", "categoryType", "categoryTypeNEQ", "categoryTypeIn", "categoryTypeNotIn", "categoryTypeGT", "categoryTypeGTE", "categoryTypeLT", "categoryTypeLTE", "categoryTypeContains", "categoryTypeHasPrefix", "categoryTypeHasSuffix", "categoryTypeIsNil", "categoryTypeNotNil", "categoryTypeEqualFold", "categoryTypeContainsFold", "uri", "uriNEQ", "uriIn", "uriNotIn", "uriGT", "uriGTE", "uriLT", "uriLTE", "uriContains", "uriHasPrefix", "uriHasSuffix", "uriIsNil", "uriNotNil", "uriEqualFold", "uriContainsFold", "storageScheme", "storageSchemeNEQ", "storageSchemeIn", "storageSchemeNotIn", "storageSchemeGT", "storageSchemeGTE", "storageSchemeLT", "storageSchemeLTE", "storageSchemeContains", "storageSchemeHasPrefix", "storageSchemeHasSuffix", "storageSchemeIsNil", "storageSchemeNotNil", "storageSchemeEqualFold", "storageSchemeContainsFold", "storageVolume", "storageVolumeNEQ", "storageVolumeIn", "storageVolumeNotIn", "storageVolumeGT", "storageVolumeGTE", "storageVolumeLT", "storageVolumeLTE", "storageVolumeContains", "storageVolumeHasPrefix", "storageVolumeHasSuffix", "storageVolumeIsNil", "storageVolumeNotNil", "storageVolumeEqualFold", "storageVolumeContainsFold", "storagePath", "storagePathNEQ", "storagePathIn", "storagePathNotIn", "storagePathGT", "storagePathGTE", "storagePathLT", "storagePathLTE", "storagePathContains", "storagePathHasPrefix", "storagePathHasSuffix", "storagePathIsNil", "storagePathNotNil", "storagePathEqualFold", "storagePathContainsFold", "hasUser", "hasUserWith", "hasOrganization", "hasOrganizationWith", "hasGroup", "hasGroupWith", "hasContact", "hasContactWith", "hasEntity", "hasEntityWith", "hasUsersetting", "hasUsersettingWith", "hasOrganizationsetting", "hasOrganizationsettingWith", "hasTemplate", "hasTemplateWith", "hasDocumentdata", "hasDocumentdataWith", "hasEvents", "hasEventsWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "role", "roleNEQ", "roleIn", "roleNotIn", "organizationID", "organizationIDNEQ", "organizationIDIn", "organizationIDNotIn", "organizationIDGT", "organizationIDGTE", "organizationIDLT", "organizationIDLTE", "organizationIDContains", "organizationIDHasPrefix", "organizationIDHasSuffix", "organizationIDEqualFold", "organizationIDContainsFold", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDGT", "userIDGTE", "userIDLT", "userIDLTE", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDEqualFold", "userIDContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -174729,21 +263451,21 @@ func (ec *executionContext) unmarshalInputFileWhereInput(ctx context.Context, ob switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + data, err := ec.unmarshalOOrgMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOrgMembershipHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOrgMembershipHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -174818,6 +263540,195 @@ func (ec *executionContext) unmarshalInputFileWhereInput(ctx context.Context, ob 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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOOrgMembershipHistoryOpType2ᚖ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.unmarshalOOrgMembershipHistoryOpType2ᚖ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.unmarshalOOrgMembershipHistoryOpType2ᚕ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.unmarshalOOrgMembershipHistoryOpType2ᚕ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) @@ -175239,1511 +264150,1006 @@ func (ec *executionContext) unmarshalInputFileWhereInput(ctx context.Context, ob } it.DeletedAtNotNil = data case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DeletedByContainsFold = data - case "providedFileName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileName = data - case "providedFileNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileNameNEQ = data - case "providedFileNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileNameIn = data - case "providedFileNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileNameNotIn = data - case "providedFileNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileNameGT = data - case "providedFileNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileNameGTE = data - case "providedFileNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileNameLT = data - case "providedFileNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileNameLTE = data - case "providedFileNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileNameContains = data - case "providedFileNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileNameHasPrefix = data - case "providedFileNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileNameHasSuffix = data - case "providedFileNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileNameEqualFold = data - case "providedFileNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileNameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileNameContainsFold = data - case "providedFileExtension": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtension")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtension = data - case "providedFileExtensionNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtensionNEQ = data - case "providedFileExtensionIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtensionIn = data - case "providedFileExtensionNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtensionNotIn = data - case "providedFileExtensionGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtensionGT = data - case "providedFileExtensionGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtensionGTE = data - case "providedFileExtensionLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtensionLT = data - case "providedFileExtensionLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtensionLTE = data - case "providedFileExtensionContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtensionContains = data - case "providedFileExtensionHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtensionHasPrefix = data - case "providedFileExtensionHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtensionHasSuffix = data - case "providedFileExtensionEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtensionEqualFold = data - case "providedFileExtensionContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtensionContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileExtensionContainsFold = data - case "providedFileSize": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSize")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileSize = data - case "providedFileSizeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeNEQ")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileSizeNEQ = data - case "providedFileSizeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeIn")) - data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileSizeIn = data - case "providedFileSizeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeNotIn")) - data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileSizeNotIn = data - case "providedFileSizeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeGT")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileSizeGT = data - case "providedFileSizeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeGTE")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileSizeGTE = data - case "providedFileSizeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeLT")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileSizeLT = data - case "providedFileSizeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeLTE")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileSizeLTE = data - case "providedFileSizeIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileSizeIsNil = data - case "providedFileSizeNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSizeNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.ProvidedFileSizeNotNil = data - case "persistedFileSize": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSize")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) - if err != nil { - return it, err - } - it.PersistedFileSize = data - case "persistedFileSizeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeNEQ")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) - if err != nil { - return it, err - } - it.PersistedFileSizeNEQ = data - case "persistedFileSizeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeIn")) - data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) - if err != nil { - return it, err - } - it.PersistedFileSizeIn = data - case "persistedFileSizeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeNotIn")) - data, err := ec.unmarshalOInt2ᚕint64ᚄ(ctx, v) - if err != nil { - return it, err - } - it.PersistedFileSizeNotIn = data - case "persistedFileSizeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeGT")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) - if err != nil { - return it, err - } - it.PersistedFileSizeGT = data - case "persistedFileSizeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeGTE")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) - if err != nil { - return it, err - } - it.PersistedFileSizeGTE = data - case "persistedFileSizeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeLT")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) - if err != nil { - return it, err - } - it.PersistedFileSizeLT = data - case "persistedFileSizeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeLTE")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) - if err != nil { - return it, err - } - it.PersistedFileSizeLTE = data - case "persistedFileSizeIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.PersistedFileSizeIsNil = data - case "persistedFileSizeNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSizeNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.PersistedFileSizeNotNil = data - case "detectedMimeType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeType")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeType = data - case "detectedMimeTypeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeNEQ = data - case "detectedMimeTypeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeIn = data - case "detectedMimeTypeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeNotIn = data - case "detectedMimeTypeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeGT = data - case "detectedMimeTypeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeGTE = data - case "detectedMimeTypeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeLT = data - case "detectedMimeTypeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeLTE = data - case "detectedMimeTypeContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeContains = data - case "detectedMimeTypeHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeHasPrefix = data - case "detectedMimeTypeHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeHasSuffix = data - case "detectedMimeTypeIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeIsNil = data - case "detectedMimeTypeNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeNotNil = data - case "detectedMimeTypeEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeEqualFold = data - case "detectedMimeTypeContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeTypeContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DetectedMimeTypeContainsFold = data - case "md5Hash": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5Hash")) + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5Hash = data - case "md5HashNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashNEQ")) + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashNEQ = data - case "md5HashIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashIn")) + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Md5HashIn = data - case "md5HashNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashNotIn")) + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Md5HashNotIn = data - case "md5HashGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashGT")) + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashGT = data - case "md5HashGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashGTE")) + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashGTE = data - case "md5HashLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashLT")) + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashLT = data - case "md5HashLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashLTE")) + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashLTE = data - case "md5HashContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashContains")) + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashContains = data - case "md5HashHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashHasPrefix")) + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashHasPrefix = data - case "md5HashHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashHasSuffix")) + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashHasSuffix = data - case "md5HashIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashIsNil")) + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Md5HashIsNil = data - case "md5HashNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashNotNil")) + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Md5HashNotNil = data - case "md5HashEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashEqualFold")) + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashEqualFold = data - case "md5HashContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5HashContainsFold")) + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Md5HashContainsFold = data - case "detectedContentType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentType")) + it.DeletedByContainsFold = data + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOOrgMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + if err != nil { + return it, err + } + it.Role = data + case "roleNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) + data, err := ec.unmarshalOOrgMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + if err != nil { + return it, err + } + it.RoleNEQ = data + case "roleIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) + data, err := ec.unmarshalOOrgMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + if err != nil { + return it, err + } + it.RoleIn = data + case "roleNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) + data, err := ec.unmarshalOOrgMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + if err != nil { + return it, err + } + it.RoleNotIn = data + case "organizationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentType = data - case "detectedContentTypeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeNEQ")) + it.OrganizationID = data + case "organizationIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeNEQ = data - case "detectedContentTypeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeIn")) + it.OrganizationIDNEQ = data + case "organizationIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeIn = data - case "detectedContentTypeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeNotIn")) + it.OrganizationIDIn = data + case "organizationIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeNotIn = data - case "detectedContentTypeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeGT")) + it.OrganizationIDNotIn = data + case "organizationIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeGT = data - case "detectedContentTypeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeGTE")) + it.OrganizationIDGT = data + case "organizationIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeGTE = data - case "detectedContentTypeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeLT")) + it.OrganizationIDGTE = data + case "organizationIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeLT = data - case "detectedContentTypeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeLTE")) + it.OrganizationIDLT = data + case "organizationIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeLTE = data - case "detectedContentTypeContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeContains")) + it.OrganizationIDLTE = data + case "organizationIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeContains = data - case "detectedContentTypeHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeHasPrefix")) + it.OrganizationIDContains = data + case "organizationIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeHasPrefix = data - case "detectedContentTypeHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeHasSuffix")) + it.OrganizationIDHasPrefix = data + case "organizationIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeHasSuffix = data - case "detectedContentTypeEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeEqualFold")) + it.OrganizationIDHasSuffix = data + case "organizationIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeEqualFold = data - case "detectedContentTypeContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentTypeContainsFold")) + it.OrganizationIDEqualFold = data + case "organizationIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentTypeContainsFold = data - case "storeKey": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKey")) + it.OrganizationIDContainsFold = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKey = data - case "storeKeyNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyNEQ")) + 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.StoreKeyNEQ = data - case "storeKeyIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyIn")) + 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.StoreKeyIn = data - case "storeKeyNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyNotIn")) + 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.StoreKeyNotIn = data - case "storeKeyGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyGT")) + it.UserIDNotIn = data + case "userIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyGT = data - case "storeKeyGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyGTE")) + it.UserIDGT = data + case "userIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyGTE = data - case "storeKeyLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyLT")) + it.UserIDGTE = data + case "userIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyLT = data - case "storeKeyLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyLTE")) + it.UserIDLT = data + case "userIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyLTE = data - case "storeKeyContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyContains")) + it.UserIDLTE = data + case "userIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyContains = data - case "storeKeyHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyHasPrefix")) + 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.StoreKeyHasPrefix = data - case "storeKeyHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyHasSuffix")) + 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.StoreKeyHasSuffix = data - case "storeKeyIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UserIDHasSuffix = data + case "userIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoreKeyIsNil = data - case "storeKeyNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.StoreKeyNotNil = data - case "storeKeyEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.UserIDContainsFold = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputOrgMembershipWhereInput(ctx context.Context, obj interface{}) (generated.OrgMembershipWhereInput, error) { + var it generated.OrgMembershipWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "role", "roleNEQ", "roleIn", "roleNotIn", "organizationID", "userID"} + 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.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) if err != nil { return it, err } - it.StoreKeyEqualFold = data - case "storeKeyContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKeyContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.StoreKeyContainsFold = data - case "categoryType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryType")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.CategoryType = data - case "categoryTypeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.CategoryTypeNEQ = data - case "categoryTypeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.CategoryTypeIn = data - case "categoryTypeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CategoryTypeNotIn = data - case "categoryTypeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CategoryTypeGT = data - case "categoryTypeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeGTE = data - case "categoryTypeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeLT = data - case "categoryTypeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeLTE = data - case "categoryTypeContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeContains = data - case "categoryTypeHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeHasPrefix = data - case "categoryTypeHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryTypeHasSuffix = data - case "categoryTypeIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.CategoryTypeIsNil = data - case "categoryTypeNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.CategoryTypeNotNil = data - case "categoryTypeEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.CategoryTypeEqualFold = data - case "categoryTypeContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryTypeContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.CategoryTypeContainsFold = data - case "uri": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uri")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.URI = data - case "uriNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.URINEQ = data - case "uriIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.URIIn = data - case "uriNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.URINotIn = data - case "uriGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.URIGT = data - case "uriGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.URIGTE = data - case "uriLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.URILT = data - case "uriLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.URILTE = data - case "uriContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.URIContains = data - case "uriHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.URIHasPrefix = data - case "uriHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.URIHasSuffix = data - case "uriIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.URIIsNil = data - case "uriNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.URINotNil = data - case "uriEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.URIEqualFold = data - case "uriContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uriContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.URIContainsFold = data - case "storageScheme": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageScheme")) + 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.StorageScheme = data - case "storageSchemeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeNEQ")) + 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.StorageSchemeNEQ = data - case "storageSchemeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeIn")) + 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.StorageSchemeIn = data - case "storageSchemeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeNotIn")) + 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.StorageSchemeNotIn = data - case "storageSchemeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeGT")) + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeGT = data - case "storageSchemeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeGTE")) + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeGTE = data - case "storageSchemeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeLT")) + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeLT = data - case "storageSchemeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeLTE")) + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeLTE = data - case "storageSchemeContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeContains")) + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageSchemeContains = data - case "storageSchemeHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeHasPrefix")) + 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.StorageSchemeHasPrefix = data - case "storageSchemeHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeHasSuffix")) + 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.StorageSchemeHasSuffix = data - case "storageSchemeIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeIsNil")) + 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.StorageSchemeIsNil = data - case "storageSchemeNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeNotNil")) + 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.StorageSchemeNotNil = data - case "storageSchemeEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeEqualFold")) + 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.StorageSchemeEqualFold = data - case "storageSchemeContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageSchemeContainsFold")) + 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.StorageSchemeContainsFold = data - case "storageVolume": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolume")) + 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.StorageVolume = data - case "storageVolumeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeNEQ")) + 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.StorageVolumeNEQ = data - case "storageVolumeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeIn")) + 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.StorageVolumeIn = data - case "storageVolumeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeNotIn")) + 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.StorageVolumeNotIn = data - case "storageVolumeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeGT")) + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeGT = data - case "storageVolumeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeGTE")) + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeGTE = data - case "storageVolumeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeLT")) + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeLT = data - case "storageVolumeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeLTE")) + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeLTE = data - case "storageVolumeContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeContains")) + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolumeContains = data - case "storageVolumeHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeHasPrefix")) + 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.StorageVolumeHasPrefix = data - case "storageVolumeHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeHasSuffix")) + 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.StorageVolumeHasSuffix = data - case "storageVolumeIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeIsNil")) + 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.StorageVolumeIsNil = data - case "storageVolumeNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeNotNil")) + 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.StorageVolumeNotNil = data - case "storageVolumeEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.StorageVolumeEqualFold = data - case "storageVolumeContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolumeContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.StorageVolumeContainsFold = data - case "storagePath": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePath")) + 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.StoragePath = data - case "storagePathNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathNEQ")) + 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.StoragePathNEQ = data - case "storagePathIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.StoragePathIn = data - case "storagePathNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StoragePathNotIn = data - case "storagePathGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StoragePathGT = data - case "storagePathGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.StoragePathGTE = data - case "storagePathLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.StoragePathLT = data - case "storagePathLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StoragePathLTE = data - case "storagePathContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StoragePathContains = data - case "storagePathHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StoragePathHasPrefix = data - case "storagePathHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.StoragePathHasSuffix = data - case "storagePathIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathIsNil")) + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.StoragePathIsNil = data - case "storagePathNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathNotNil")) + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.StoragePathNotNil = data - case "storagePathEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathEqualFold")) + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoragePathEqualFold = data - case "storagePathContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePathContainsFold")) + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoragePathContainsFold = 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ᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasUserWith = data - case "hasOrganization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganization")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasOrganization = data - case "hasOrganizationWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationWith")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOrganizationWith = data - case "hasGroup": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroup")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(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ᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasGroupWith = data - case "hasContact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContact")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(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ᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(ctx, v) + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasContactWith = data - case "hasEntity": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntity")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEntity = data - case "hasEntityWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityWith")) - data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEntityWith = data - case "hasUsersetting": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUsersetting")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasUsersetting = data - case "hasUsersettingWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUsersettingWith")) - data, err := ec.unmarshalOUserSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInputᚄ(ctx, v) + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasUsersettingWith = data - case "hasOrganizationsetting": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationsetting")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOrganizationsetting = data - case "hasOrganizationsettingWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationsettingWith")) - data, err := ec.unmarshalOOrganizationSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInputᚄ(ctx, v) + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOrganizationsettingWith = data - case "hasTemplate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplate")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedByContainsFold = data + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOOrgMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) if err != nil { return it, err } - it.HasTemplate = data - case "hasTemplateWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplateWith")) - data, err := ec.unmarshalOTemplateWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInputᚄ(ctx, v) + it.Role = data + case "roleNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) + data, err := ec.unmarshalOOrgMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) if err != nil { return it, err } - it.HasTemplateWith = data - case "hasDocumentdata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocumentdata")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.RoleNEQ = data + case "roleIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) + data, err := ec.unmarshalOOrgMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) if err != nil { return it, err } - it.HasDocumentdata = data - case "hasDocumentdataWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocumentdataWith")) - data, err := ec.unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx, v) + it.RoleIn = data + case "roleNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) + data, err := ec.unmarshalOOrgMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) if err != nil { return it, err } - it.HasDocumentdataWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.RoleNotIn = data + case "organizationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + it.OrganizationID = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEventsWith = data + it.UserID = data } } return it, nil } -func (ec *executionContext) unmarshalInputGroupHistoryOrder(ctx context.Context, obj interface{}) (generated.GroupHistoryOrder, error) { - var it generated.GroupHistoryOrder +func (ec *executionContext) unmarshalInputOrganizationHistoryOrder(ctx context.Context, obj interface{}) (generated.OrganizationHistoryOrder, error) { + var it generated.OrganizationHistoryOrder asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v @@ -176769,7 +265175,7 @@ func (ec *executionContext) unmarshalInputGroupHistoryOrder(ctx context.Context, it.Direction = data case "field": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNGroupHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryOrderField(ctx, v) + data, err := ec.unmarshalNOrganizationHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryOrderField(ctx, v) if err != nil { return it, err } @@ -176780,14 +265186,14 @@ func (ec *executionContext) unmarshalInputGroupHistoryOrder(ctx context.Context, return it, nil } -func (ec *executionContext) unmarshalInputGroupHistoryWhereInput(ctx context.Context, obj interface{}) (generated.GroupHistoryWhereInput, error) { - var it generated.GroupHistoryWhereInput +func (ec *executionContext) unmarshalInputOrganizationHistoryWhereInput(ctx context.Context, obj interface{}) (generated.OrganizationHistoryWhereInput, error) { + var it generated.OrganizationHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "parentOrganizationID", "parentOrganizationIDNEQ", "parentOrganizationIDIn", "parentOrganizationIDNotIn", "parentOrganizationIDGT", "parentOrganizationIDGTE", "parentOrganizationIDLT", "parentOrganizationIDLTE", "parentOrganizationIDContains", "parentOrganizationIDHasPrefix", "parentOrganizationIDHasSuffix", "parentOrganizationIDIsNil", "parentOrganizationIDNotNil", "parentOrganizationIDEqualFold", "parentOrganizationIDContainsFold", "personalOrg", "personalOrgNEQ", "personalOrgIsNil", "personalOrgNotNil", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLGT", "avatarRemoteURLGTE", "avatarRemoteURLLT", "avatarRemoteURLLTE", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -176796,21 +265202,21 @@ func (ec *executionContext) unmarshalInputGroupHistoryWhereInput(ctx context.Con switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOGroupHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOOrganizationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOGroupHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOrganizationHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOGroupHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOrganizationHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -177048,28 +265454,28 @@ func (ec *executionContext) unmarshalInputGroupHistoryWhereInput(ctx context.Con it.RefContainsFold = data case "operation": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOGroupHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOOrganizationHistoryOpType2ᚖ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.unmarshalOGroupHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOOrganizationHistoryOpType2ᚖ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.unmarshalOGroupHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOOrganizationHistoryOpType2ᚕ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.unmarshalOGroupHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOOrganizationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } @@ -177599,307 +266005,387 @@ func (ec *executionContext) unmarshalInputGroupHistoryWhereInput(ctx context.Con return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) 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")) + it.DisplayName = data + case "displayNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) 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")) + it.DisplayNameNEQ = data + case "displayNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) 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")) + it.DisplayNameIn = data + case "displayNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + it.DisplayNameNotIn = data + case "displayNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + it.DisplayNameGT = data + case "displayNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + it.DisplayNameGTE = data + case "displayNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + it.DisplayNameLT = data + case "displayNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + it.DisplayNameLTE = data + case "displayNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) 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")) + it.DisplayNameContains = data + case "displayNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) 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")) + it.DisplayNameHasPrefix = data + case "displayNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) 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) + it.DisplayNameHasSuffix = data + case "displayNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DisplayNameEqualFold = data + case "displayNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.DisplayNameContainsFold = data + case "parentOrganizationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationID")) + 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.unmarshalOString2ᚖstring(ctx, v) + it.ParentOrganizationID = data + case "parentOrganizationIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContainsFold = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ParentOrganizationIDNEQ = data + case "parentOrganizationIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Name = data - case "nameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ParentOrganizationIDIn = data + case "parentOrganizationIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameNEQ = data - case "nameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ParentOrganizationIDNotIn = data + case "parentOrganizationIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameIn = data - case "nameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ParentOrganizationIDGT = data + case "parentOrganizationIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ParentOrganizationIDGTE = data + case "parentOrganizationIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ParentOrganizationIDLT = data + case "parentOrganizationIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ParentOrganizationIDLTE = data + case "parentOrganizationIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ParentOrganizationIDContains = data + case "parentOrganizationIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ParentOrganizationIDHasPrefix = data + case "parentOrganizationIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖ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) + it.ParentOrganizationIDHasSuffix = data + case "parentOrganizationIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameHasPrefix = data - case "nameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ParentOrganizationIDIsNil = data + case "parentOrganizationIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameHasSuffix = data - case "nameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ParentOrganizationIDNotNil = data + case "parentOrganizationIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDEqualFold")) + data, err := ec.unmarshalOID2ᚖ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) + it.ParentOrganizationIDEqualFold = data + case "parentOrganizationIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + it.ParentOrganizationIDContainsFold = data + case "personalOrg": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrg")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.PersonalOrg = data + case "personalOrgNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrgNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.PersonalOrgNEQ = data + case "personalOrgIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrgIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PersonalOrgIsNil = data + case "personalOrgNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrgNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PersonalOrgNotNil = data + case "avatarRemoteURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "displayNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + it.AvatarRemoteURL = data + case "avatarRemoteURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameNEQ = data - case "displayNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + it.AvatarRemoteURLNEQ = data + case "avatarRemoteURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DisplayNameIn = data - case "displayNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + it.AvatarRemoteURLIn = data + case "avatarRemoteURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DisplayNameNotIn = data - case "displayNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + it.AvatarRemoteURLNotIn = data + case "avatarRemoteURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameGT = data - case "displayNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + it.AvatarRemoteURLGT = data + case "avatarRemoteURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameGTE = data - case "displayNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + it.AvatarRemoteURLGTE = data + case "avatarRemoteURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameLT = data - case "displayNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + it.AvatarRemoteURLLT = data + case "avatarRemoteURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameLTE = data - case "displayNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + it.AvatarRemoteURLLTE = data + case "avatarRemoteURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameContains = data - case "displayNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + it.AvatarRemoteURLContains = data + case "avatarRemoteURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameHasPrefix = data - case "displayNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + it.AvatarRemoteURLHasPrefix = data + case "avatarRemoteURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameHasSuffix = data - case "displayNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + it.AvatarRemoteURLHasSuffix = data + case "avatarRemoteURLIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLIsNil = data + case "avatarRemoteURLNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLNotNil = data + case "avatarRemoteURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameEqualFold = data - case "displayNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + it.AvatarRemoteURLEqualFold = data + case "avatarRemoteURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameContainsFold = data + it.AvatarRemoteURLContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputGroupMembershipHistoryWhereInput(ctx context.Context, obj interface{}) (generated.GroupMembershipHistoryWhereInput, error) { - var it generated.GroupMembershipHistoryWhereInput +func (ec *executionContext) unmarshalInputOrganizationOrder(ctx context.Context, obj interface{}) (generated.OrganizationOrder, error) { + var it generated.OrganizationOrder asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "role", "roleNEQ", "roleIn", "roleNotIn", "groupID", "groupIDNEQ", "groupIDIn", "groupIDNotIn", "groupIDGT", "groupIDGTE", "groupIDLT", "groupIDLTE", "groupIDContains", "groupIDHasPrefix", "groupIDHasSuffix", "groupIDEqualFold", "groupIDContainsFold", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDGT", "userIDGTE", "userIDLT", "userIDLTE", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDEqualFold", "userIDContainsFold"} + 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.unmarshalNOrganizationOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderField(ctx, v) + if err != nil { + return it, err + } + it.Field = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputOrganizationSettingHistoryWhereInput(ctx context.Context, obj interface{}) (generated.OrganizationSettingHistoryWhereInput, error) { + var it generated.OrganizationSettingHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "billingContact", "billingContactNEQ", "billingContactIn", "billingContactNotIn", "billingContactGT", "billingContactGTE", "billingContactLT", "billingContactLTE", "billingContactContains", "billingContactHasPrefix", "billingContactHasSuffix", "billingContactIsNil", "billingContactNotNil", "billingContactEqualFold", "billingContactContainsFold", "billingEmail", "billingEmailNEQ", "billingEmailIn", "billingEmailNotIn", "billingEmailGT", "billingEmailGTE", "billingEmailLT", "billingEmailLTE", "billingEmailContains", "billingEmailHasPrefix", "billingEmailHasSuffix", "billingEmailIsNil", "billingEmailNotNil", "billingEmailEqualFold", "billingEmailContainsFold", "billingPhone", "billingPhoneNEQ", "billingPhoneIn", "billingPhoneNotIn", "billingPhoneGT", "billingPhoneGTE", "billingPhoneLT", "billingPhoneLTE", "billingPhoneContains", "billingPhoneHasPrefix", "billingPhoneHasSuffix", "billingPhoneIsNil", "billingPhoneNotNil", "billingPhoneEqualFold", "billingPhoneContainsFold", "billingAddress", "billingAddressNEQ", "billingAddressIn", "billingAddressNotIn", "billingAddressGT", "billingAddressGTE", "billingAddressLT", "billingAddressLTE", "billingAddressContains", "billingAddressHasPrefix", "billingAddressHasSuffix", "billingAddressIsNil", "billingAddressNotNil", "billingAddressEqualFold", "billingAddressContainsFold", "taxIdentifier", "taxIdentifierNEQ", "taxIdentifierIn", "taxIdentifierNotIn", "taxIdentifierGT", "taxIdentifierGTE", "taxIdentifierLT", "taxIdentifierLTE", "taxIdentifierContains", "taxIdentifierHasPrefix", "taxIdentifierHasSuffix", "taxIdentifierIsNil", "taxIdentifierNotNil", "taxIdentifierEqualFold", "taxIdentifierContainsFold", "geoLocation", "geoLocationNEQ", "geoLocationIn", "geoLocationNotIn", "geoLocationIsNil", "geoLocationNotNil", "organizationID", "organizationIDNEQ", "organizationIDIn", "organizationIDNotIn", "organizationIDGT", "organizationIDGTE", "organizationIDLT", "organizationIDLTE", "organizationIDContains", "organizationIDHasPrefix", "organizationIDHasSuffix", "organizationIDIsNil", "organizationIDNotNil", "organizationIDEqualFold", "organizationIDContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -177908,21 +266394,21 @@ func (ec *executionContext) unmarshalInputGroupMembershipHistoryWhereInput(ctx c switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOGroupMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOGroupMembershipHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOrganizationSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOGroupMembershipHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOrganizationSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -178160,28 +266646,28 @@ func (ec *executionContext) unmarshalInputGroupMembershipHistoryWhereInput(ctx c it.RefContainsFold = data case "operation": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOGroupMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOOrganizationSettingHistoryOpType2ᚖ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.unmarshalOGroupMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOOrganizationSettingHistoryOpType2ᚖ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.unmarshalOGroupMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOOrganizationSettingHistoryOpType2ᚕ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.unmarshalOGroupMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOOrganizationSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } @@ -178584,357 +267070,819 @@ func (ec *executionContext) unmarshalInputGroupMembershipHistoryWhereInput(ctx c if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "billingContact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContact")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingContact = data + case "billingContactNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingContactNEQ = data + case "billingContactIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BillingContactIn = data + case "billingContactNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BillingContactNotIn = data + case "billingContactGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingContactGT = data + case "billingContactGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingContactGTE = data + case "billingContactLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingContactLT = data + case "billingContactLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingContactLTE = data + case "billingContactContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingContactContains = data + case "billingContactHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingContactHasPrefix = data + case "billingContactHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingContactHasSuffix = data + case "billingContactIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.BillingContactIsNil = data + case "billingContactNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.BillingContactNotNil = data + case "billingContactEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingContactEqualFold = data + case "billingContactContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingContactContainsFold = data + case "billingEmail": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmail")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingEmail = data + case "billingEmailNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailNEQ = data + case "billingEmailIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailIn = data + case "billingEmailNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailNotIn = data + case "billingEmailGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailGT = data + case "billingEmailGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailGTE = data + case "billingEmailLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailLT = data + case "billingEmailLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailLTE = data + case "billingEmailContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailContains = data + case "billingEmailHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailHasPrefix = data + case "billingEmailHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailHasSuffix = data + case "billingEmailIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailIsNil = data + case "billingEmailNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailNotNil = data + case "billingEmailEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailEqualFold = data + case "billingEmailContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingEmailContainsFold = data + case "billingPhone": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhone")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingPhone = data + case "billingPhoneNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingPhoneNEQ = data + case "billingPhoneIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BillingPhoneIn = data + case "billingPhoneNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BillingPhoneNotIn = data + case "billingPhoneGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingPhoneGT = data + case "billingPhoneGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingPhoneGTE = data + case "billingPhoneLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingPhoneLT = data + case "billingPhoneLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingPhoneLTE = data + case "billingPhoneContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingPhoneContains = data + case "billingPhoneHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingPhoneHasPrefix = data + case "billingPhoneHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BillingPhoneHasSuffix = data + case "billingPhoneIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.BillingPhoneIsNil = data + case "billingPhoneNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.BillingPhoneNotNil = data + case "billingPhoneEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.BillingPhoneEqualFold = data + case "billingPhoneContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + it.BillingPhoneContainsFold = data + case "billingAddress": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddress")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + it.BillingAddress = data + case "billingAddressNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + it.BillingAddressNEQ = data + case "billingAddressIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + it.BillingAddressIn = data + case "billingAddressNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + it.BillingAddressNotIn = data + case "billingAddressGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + it.BillingAddressGT = data + case "billingAddressGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + it.BillingAddressGTE = data + case "billingAddressLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + it.BillingAddressLT = data + case "billingAddressLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + it.BillingAddressLTE = data + case "billingAddressContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + it.BillingAddressContains = data + case "billingAddressHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + it.BillingAddressHasPrefix = data + case "billingAddressHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + it.BillingAddressHasSuffix = data + case "billingAddressIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + it.BillingAddressIsNil = data + case "billingAddressNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + it.BillingAddressNotNil = data + case "billingAddressEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + it.BillingAddressEqualFold = data + case "billingAddressContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOGroupMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + it.BillingAddressContainsFold = data + case "taxIdentifier": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifier")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Role = data - case "roleNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) - data, err := ec.unmarshalOGroupMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + it.TaxIdentifier = data + case "taxIdentifierNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RoleNEQ = data - case "roleIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) - data, err := ec.unmarshalOGroupMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + it.TaxIdentifierNEQ = data + case "taxIdentifierIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RoleIn = data - case "roleNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) - data, err := ec.unmarshalOGroupMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + it.TaxIdentifierIn = data + case "taxIdentifierNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RoleNotIn = data - case "groupID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) + it.TaxIdentifierNotIn = data + case "taxIdentifierGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierGT")) 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")) + it.TaxIdentifierGT = data + case "taxIdentifierGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierGTE")) 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) + it.TaxIdentifierGTE = data + case "taxIdentifierLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierLT")) + 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) + it.TaxIdentifierLT = data + case "taxIdentifierLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.GroupIDNotIn = data - case "groupIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDGT")) + it.TaxIdentifierLTE = data + case "taxIdentifierContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.GroupIDGT = data - case "groupIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDGTE")) + it.TaxIdentifierContains = data + case "taxIdentifierHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.GroupIDGTE = data - case "groupIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDLT")) + it.TaxIdentifierHasPrefix = data + case "taxIdentifierHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.GroupIDLT = data - case "groupIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.TaxIdentifierHasSuffix = data + case "taxIdentifierIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.GroupIDLTE = data - case "groupIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.TaxIdentifierIsNil = data + case "taxIdentifierNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.GroupIDContains = data - case "groupIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDHasPrefix")) + it.TaxIdentifierNotNil = data + case "taxIdentifierEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierEqualFold")) 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")) + it.TaxIdentifierEqualFold = data + case "taxIdentifierContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.GroupIDHasSuffix = data - case "groupIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.TaxIdentifierContainsFold = data + case "geoLocation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocation")) + data, err := ec.unmarshalOOrganizationSettingHistoryRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(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) + it.GeoLocation = data + case "geoLocationNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationNEQ")) + data, err := ec.unmarshalOOrganizationSettingHistoryRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, v) if err != nil { return it, err } - it.GroupIDContainsFold = data - case "userID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + it.GeoLocationNEQ = data + case "geoLocationIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationIn")) + data, err := ec.unmarshalOOrganizationSettingHistoryRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx, v) + if err != nil { + return it, err + } + it.GeoLocationIn = data + case "geoLocationNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationNotIn")) + data, err := ec.unmarshalOOrganizationSettingHistoryRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx, v) + if err != nil { + return it, err + } + it.GeoLocationNotIn = data + case "geoLocationIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.GeoLocationIsNil = data + case "geoLocationNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.GeoLocationNotNil = data + case "organizationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) 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")) + it.OrganizationID = data + case "organizationIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNEQ")) 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")) + it.OrganizationIDNEQ = data + case "organizationIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIn")) 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")) + it.OrganizationIDIn = data + case "organizationIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UserIDNotIn = data - case "userIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGT")) + it.OrganizationIDNotIn = data + case "organizationIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDGT = data - case "userIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGTE")) + it.OrganizationIDGT = data + case "organizationIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDGTE = data - case "userIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLT")) + it.OrganizationIDGTE = data + case "organizationIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDLT = data - case "userIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLTE")) + it.OrganizationIDLT = data + case "organizationIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDLTE = data - case "userIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContains")) + it.OrganizationIDLTE = data + case "organizationIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContains")) 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")) + it.OrganizationIDContains = data + case "organizationIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasPrefix")) 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")) + it.OrganizationIDHasPrefix = data + case "organizationIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDHasSuffix = data - case "userIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDEqualFold")) + it.OrganizationIDHasSuffix = data + case "organizationIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDIsNil = data + case "organizationIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.OrganizationIDNotNil = data + case "organizationIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDEqualFold")) 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")) + it.OrganizationIDEqualFold = data + case "organizationIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDContainsFold = data + it.OrganizationIDContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputGroupMembershipWhereInput(ctx context.Context, obj interface{}) (generated.GroupMembershipWhereInput, error) { - var it generated.GroupMembershipWhereInput +func (ec *executionContext) unmarshalInputOrganizationSettingWhereInput(ctx context.Context, obj interface{}) (generated.OrganizationSettingWhereInput, error) { + var it generated.OrganizationSettingWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "role", "roleNEQ", "roleIn", "roleNotIn", "groupID", "userID"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "billingContact", "billingContactNEQ", "billingContactIn", "billingContactNotIn", "billingContactGT", "billingContactGTE", "billingContactLT", "billingContactLTE", "billingContactContains", "billingContactHasPrefix", "billingContactHasSuffix", "billingContactIsNil", "billingContactNotNil", "billingContactEqualFold", "billingContactContainsFold", "billingEmail", "billingEmailNEQ", "billingEmailIn", "billingEmailNotIn", "billingEmailGT", "billingEmailGTE", "billingEmailLT", "billingEmailLTE", "billingEmailContains", "billingEmailHasPrefix", "billingEmailHasSuffix", "billingEmailIsNil", "billingEmailNotNil", "billingEmailEqualFold", "billingEmailContainsFold", "billingPhone", "billingPhoneNEQ", "billingPhoneIn", "billingPhoneNotIn", "billingPhoneGT", "billingPhoneGTE", "billingPhoneLT", "billingPhoneLTE", "billingPhoneContains", "billingPhoneHasPrefix", "billingPhoneHasSuffix", "billingPhoneIsNil", "billingPhoneNotNil", "billingPhoneEqualFold", "billingPhoneContainsFold", "billingAddress", "billingAddressNEQ", "billingAddressIn", "billingAddressNotIn", "billingAddressGT", "billingAddressGTE", "billingAddressLT", "billingAddressLTE", "billingAddressContains", "billingAddressHasPrefix", "billingAddressHasSuffix", "billingAddressIsNil", "billingAddressNotNil", "billingAddressEqualFold", "billingAddressContainsFold", "taxIdentifier", "taxIdentifierNEQ", "taxIdentifierIn", "taxIdentifierNotIn", "taxIdentifierGT", "taxIdentifierGTE", "taxIdentifierLT", "taxIdentifierLTE", "taxIdentifierContains", "taxIdentifierHasPrefix", "taxIdentifierHasSuffix", "taxIdentifierIsNil", "taxIdentifierNotNil", "taxIdentifierEqualFold", "taxIdentifierContainsFold", "geoLocation", "geoLocationNEQ", "geoLocationIn", "geoLocationNotIn", "geoLocationIsNil", "geoLocationNotNil", "organizationID", "organizationIDNEQ", "organizationIDIn", "organizationIDNotIn", "organizationIDGT", "organizationIDGTE", "organizationIDLT", "organizationIDLTE", "organizationIDContains", "organizationIDHasPrefix", "organizationIDHasSuffix", "organizationIDIsNil", "organizationIDNotNil", "organizationIDEqualFold", "organizationIDContainsFold", "hasOrganization", "hasOrganizationWith", "hasFiles", "hasFilesWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -178943,21 +267891,21 @@ func (ec *executionContext) unmarshalInputGroupMembershipWhereInput(ctx context. switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, v) + data, err := ec.unmarshalOOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOGroupMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOrganizationSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOGroupMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOrganizationSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -179557,1142 +268505,720 @@ func (ec *executionContext) unmarshalInputGroupMembershipWhereInput(ctx context. return it, err } it.DeletedByContainsFold = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOGroupMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) - if err != nil { - return it, err - } - it.Role = data - case "roleNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) - data, err := ec.unmarshalOGroupMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) - if err != nil { - return it, err - } - it.RoleNEQ = data - case "roleIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) - data, err := ec.unmarshalOGroupMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) - if err != nil { - return it, err - } - it.RoleIn = data - case "roleNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) - data, err := ec.unmarshalOGroupMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) - if err != nil { - return it, err - } - it.RoleNotIn = 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 "userID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UserID = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputGroupOrder(ctx context.Context, obj interface{}) (generated.GroupOrder, error) { - var it generated.GroupOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - 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.unmarshalNGroupOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputGroupSettingHistoryWhereInput(ctx context.Context, obj interface{}) (generated.GroupSettingHistoryWhereInput, error) { - var it generated.GroupSettingHistoryWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "visibility", "visibilityNEQ", "visibilityIn", "visibilityNotIn", "joinPolicy", "joinPolicyNEQ", "joinPolicyIn", "joinPolicyNotIn", "syncToSlack", "syncToSlackNEQ", "syncToSlackIsNil", "syncToSlackNotNil", "syncToGithub", "syncToGithubNEQ", "syncToGithubIsNil", "syncToGithubNotNil", "groupID", "groupIDNEQ", "groupIDIn", "groupIDNotIn", "groupIDGT", "groupIDGTE", "groupIDLT", "groupIDLTE", "groupIDContains", "groupIDHasPrefix", "groupIDHasSuffix", "groupIDIsNil", "groupIDNotNil", "groupIDEqualFold", "groupIDContainsFold"} - 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.unmarshalOGroupSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInput(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOGroupSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOGroupSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Or = data - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "idNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDNEQ = data - case "idIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDIn = data - case "idNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDEqualFold = data - case "idContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDContainsFold = data - case "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 "historyTimeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNEQ = data - case "historyTimeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeIn = data - case "historyTimeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNotIn = 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")) + case "billingContact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContact")) 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")) + it.BillingContact = data + case "billingContactNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactNEQ")) 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")) + it.BillingContactNEQ = data + case "billingContactIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactIn")) 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")) + it.BillingContactIn = data + case "billingContactNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RefNotIn = data - case "refGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + it.BillingContactNotIn = data + case "billingContactGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefGT = data - case "refGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + it.BillingContactGT = data + case "billingContactGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefGTE = data - case "refLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + it.BillingContactGTE = data + case "billingContactLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefLT = data - case "refLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + it.BillingContactLT = data + case "billingContactLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefLTE = data - case "refContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContains")) + it.BillingContactLTE = data + case "billingContactContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactContains")) 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")) + it.BillingContactContains = data + case "billingContactHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactHasPrefix")) 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")) + it.BillingContactHasPrefix = data + case "billingContactHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactHasSuffix")) 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")) + it.BillingContactHasSuffix = data + case "billingContactIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.RefIsNil = data - case "refNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refNotNil")) + it.BillingContactIsNil = data + case "billingContactNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.RefNotNil = data - case "refEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refEqualFold")) + it.BillingContactNotNil = data + case "billingContactEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactEqualFold")) 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")) + it.BillingContactEqualFold = data + case "billingContactContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactContainsFold")) 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.unmarshalOGroupSettingHistoryOpType2ᚖ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.unmarshalOGroupSettingHistoryOpType2ᚖ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.unmarshalOGroupSettingHistoryOpType2ᚕ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.unmarshalOGroupSettingHistoryOpType2ᚕ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 "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGT = data - case "createdAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGTE = data - case "createdAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLT = data - case "createdAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLTE = data - case "createdAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotNil = data - case "updatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGT = data - case "updatedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGTE = data - case "updatedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLT = data - case "updatedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLTE = data - case "updatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIsNil = data - case "updatedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotNil = data - case "createdBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + it.BillingContactContainsFold = data + case "billingEmail": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmail")) 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")) + it.BillingEmail = data + case "billingEmailNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailNEQ")) 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")) + it.BillingEmailNEQ = data + case "billingEmailIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailIn")) 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")) + it.BillingEmailIn = data + case "billingEmailNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + it.BillingEmailNotIn = data + case "billingEmailGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + it.BillingEmailGT = data + case "billingEmailGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + it.BillingEmailGTE = data + case "billingEmailLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + it.BillingEmailLT = data + case "billingEmailLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + it.BillingEmailLTE = data + case "billingEmailContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailContains")) 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")) + it.BillingEmailContains = data + case "billingEmailHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailHasPrefix")) 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")) + it.BillingEmailHasPrefix = data + case "billingEmailHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailHasSuffix")) 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")) + it.BillingEmailHasSuffix = data + case "billingEmailIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + it.BillingEmailIsNil = data + case "billingEmailNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByNotNil = data - case "createdByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + it.BillingEmailNotNil = data + case "billingEmailEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailEqualFold")) 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")) + it.BillingEmailEqualFold = data + case "billingEmailContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailContainsFold")) 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")) + it.BillingEmailContainsFold = data + case "billingPhone": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhone")) 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")) + it.BillingPhone = data + case "billingPhoneNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneNEQ")) 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")) + it.BillingPhoneNEQ = data + case "billingPhoneIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneIn")) 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")) + it.BillingPhoneIn = data + case "billingPhoneNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + it.BillingPhoneNotIn = data + case "billingPhoneGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + it.BillingPhoneGT = data + case "billingPhoneGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + it.BillingPhoneGTE = data + case "billingPhoneLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + it.BillingPhoneLT = data + case "billingPhoneLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + it.BillingPhoneLTE = data + case "billingPhoneContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneContains")) 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")) + it.BillingPhoneContains = data + case "billingPhoneHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneHasPrefix")) 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")) + it.BillingPhoneHasPrefix = data + case "billingPhoneHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneHasSuffix")) 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")) + it.BillingPhoneHasSuffix = data + case "billingPhoneIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + it.BillingPhoneIsNil = data + case "billingPhoneNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByNotNil = data - case "updatedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + it.BillingPhoneNotNil = data + case "billingPhoneEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneEqualFold")) 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")) + it.BillingPhoneEqualFold = data + case "billingPhoneContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.BillingPhoneContainsFold = data + case "billingAddress": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddress")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.BillingAddress = data + case "billingAddressNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.BillingAddressNEQ = data + case "billingAddressIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.BillingAddressIn = data + case "billingAddressNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.BillingAddressNotIn = data + case "billingAddressGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.BillingAddressGT = data + case "billingAddressGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.BillingAddressGTE = data + case "billingAddressLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.BillingAddressLT = data + case "billingAddressLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.BillingAddressLTE = data + case "billingAddressContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + it.BillingAddressContains = data + case "billingAddressHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + it.BillingAddressHasPrefix = data + case "billingAddressHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.BillingAddressHasSuffix = data + case "billingAddressIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.BillingAddressIsNil = data + case "billingAddressNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + it.BillingAddressNotNil = data + case "billingAddressEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + it.BillingAddressEqualFold = data + case "billingAddressContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + it.BillingAddressContainsFold = data + case "taxIdentifier": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifier")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + it.TaxIdentifier = data + case "taxIdentifierNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.TaxIdentifierNEQ = data + case "taxIdentifierIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.TaxIdentifierIn = data + case "taxIdentifierNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + it.TaxIdentifierNotIn = data + case "taxIdentifierGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.TaxIdentifierGT = data + case "taxIdentifierGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.TaxIdentifierGTE = data + case "taxIdentifierLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + it.TaxIdentifierLT = data + case "taxIdentifierLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + it.TaxIdentifierLTE = data + case "taxIdentifierContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "visibility": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibility")) - data, err := ec.unmarshalOGroupSettingHistoryVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, v) + it.TaxIdentifierContains = data + case "taxIdentifierHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Visibility = data - case "visibilityNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibilityNEQ")) - data, err := ec.unmarshalOGroupSettingHistoryVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, v) + it.TaxIdentifierHasPrefix = data + case "taxIdentifierHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.VisibilityNEQ = data - case "visibilityIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibilityIn")) - data, err := ec.unmarshalOGroupSettingHistoryVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx, v) + it.TaxIdentifierHasSuffix = data + case "taxIdentifierIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.VisibilityIn = data - case "visibilityNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibilityNotIn")) - data, err := ec.unmarshalOGroupSettingHistoryVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx, v) + it.TaxIdentifierIsNil = data + case "taxIdentifierNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.VisibilityNotIn = data - case "joinPolicy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicy")) - data, err := ec.unmarshalOGroupSettingHistoryJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, v) + it.TaxIdentifierNotNil = data + case "taxIdentifierEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.JoinPolicy = data - case "joinPolicyNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicyNEQ")) - data, err := ec.unmarshalOGroupSettingHistoryJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, v) + it.TaxIdentifierEqualFold = data + case "taxIdentifierContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.JoinPolicyNEQ = data - case "joinPolicyIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicyIn")) - data, err := ec.unmarshalOGroupSettingHistoryJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx, v) + it.TaxIdentifierContainsFold = data + case "geoLocation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocation")) + data, err := ec.unmarshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, v) if err != nil { return it, err } - it.JoinPolicyIn = data - case "joinPolicyNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicyNotIn")) - data, err := ec.unmarshalOGroupSettingHistoryJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx, v) + it.GeoLocation = data + case "geoLocationNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationNEQ")) + data, err := ec.unmarshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, v) if err != nil { return it, err } - it.JoinPolicyNotIn = data - case "syncToSlack": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlack")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.GeoLocationNEQ = data + case "geoLocationIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationIn")) + data, err := ec.unmarshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx, v) if err != nil { return it, err } - it.SyncToSlack = data - case "syncToSlackNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlackNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.GeoLocationIn = data + case "geoLocationNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationNotIn")) + data, err := ec.unmarshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx, v) if err != nil { return it, err } - it.SyncToSlackNEQ = data - case "syncToSlackIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlackIsNil")) + it.GeoLocationNotIn = data + case "geoLocationIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.SyncToSlackIsNil = data - case "syncToSlackNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlackNotNil")) + it.GeoLocationIsNil = data + case "geoLocationNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.SyncToSlackNotNil = data - case "syncToGithub": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithub")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.GeoLocationNotNil = data + case "organizationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.SyncToGithub = data - case "syncToGithubNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithubNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.OrganizationID = data + case "organizationIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.SyncToGithubNEQ = data - case "syncToGithubIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithubIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.OrganizationIDNEQ = data + case "organizationIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.SyncToGithubIsNil = data - case "syncToGithubNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithubNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.OrganizationIDIn = data + case "organizationIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.SyncToGithubNotNil = data - case "groupID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OrganizationIDNotIn = data + case "organizationIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGT")) + 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.unmarshalOString2ᚖstring(ctx, v) + it.OrganizationIDGT = data + case "organizationIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGTE")) + 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.unmarshalOString2ᚕstringᚄ(ctx, v) + it.OrganizationIDGTE = data + case "organizationIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLT")) + 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.unmarshalOString2ᚕstringᚄ(ctx, v) + it.OrganizationIDLT = data + case "organizationIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.GroupIDNotIn = data - case "groupIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OrganizationIDLTE = data + case "organizationIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.GroupIDGT = data - case "groupIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OrganizationIDContains = data + case "organizationIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.GroupIDGTE = data - case "groupIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OrganizationIDHasPrefix = data + case "organizationIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.GroupIDLT = data - case "groupIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OrganizationIDHasSuffix = data + case "organizationIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.GroupIDLTE = data - case "groupIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OrganizationIDIsNil = data + case "organizationIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.OrganizationIDNotNil = data + case "organizationIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDEqualFold")) + 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.unmarshalOString2ᚖstring(ctx, v) + it.OrganizationIDEqualFold = data + case "organizationIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContainsFold")) + 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) + it.OrganizationIDContainsFold = data + case "hasOrganization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganization")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.HasOrganization = data + case "hasOrganizationWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(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) + it.HasOrganizationWith = data + case "hasFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.HasFiles = data + case "hasFilesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.GroupIDContainsFold = data + it.HasFilesWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputGroupSettingWhereInput(ctx context.Context, obj interface{}) (generated.GroupSettingWhereInput, error) { - var it generated.GroupSettingWhereInput +func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Context, obj interface{}) (generated.OrganizationWhereInput, error) { + var it generated.OrganizationWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "visibility", "visibilityNEQ", "visibilityIn", "visibilityNotIn", "joinPolicy", "joinPolicyNEQ", "joinPolicyIn", "joinPolicyNotIn", "syncToSlack", "syncToSlackNEQ", "syncToSlackIsNil", "syncToSlackNotNil", "syncToGithub", "syncToGithubNEQ", "syncToGithubIsNil", "syncToGithubNotNil", "groupID", "groupIDNEQ", "groupIDIn", "groupIDNotIn", "groupIDGT", "groupIDGTE", "groupIDLT", "groupIDLTE", "groupIDContains", "groupIDHasPrefix", "groupIDHasSuffix", "groupIDIsNil", "groupIDNotNil", "groupIDEqualFold", "groupIDContainsFold", "hasGroup", "hasGroupWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "parentOrganizationID", "parentOrganizationIDNEQ", "parentOrganizationIDIn", "parentOrganizationIDNotIn", "parentOrganizationIDGT", "parentOrganizationIDGTE", "parentOrganizationIDLT", "parentOrganizationIDLTE", "parentOrganizationIDContains", "parentOrganizationIDHasPrefix", "parentOrganizationIDHasSuffix", "parentOrganizationIDIsNil", "parentOrganizationIDNotNil", "parentOrganizationIDEqualFold", "parentOrganizationIDContainsFold", "personalOrg", "personalOrgNEQ", "personalOrgIsNil", "personalOrgNotNil", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLGT", "avatarRemoteURLGTE", "avatarRemoteURLLT", "avatarRemoteURLLTE", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "hasParent", "hasParentWith", "hasChildren", "hasChildrenWith", "hasGroups", "hasGroupsWith", "hasTemplates", "hasTemplatesWith", "hasIntegrations", "hasIntegrationsWith", "hasSetting", "hasSettingWith", "hasDocumentdata", "hasDocumentdataWith", "hasEntitlements", "hasEntitlementsWith", "hasOrganizationEntitlement", "hasOrganizationEntitlementWith", "hasPersonalAccessTokens", "hasPersonalAccessTokensWith", "hasAPITokens", "hasAPITokensWith", "hasOauthprovider", "hasOauthproviderWith", "hasUsers", "hasUsersWith", "hasInvites", "hasInvitesWith", "hasSubscribers", "hasSubscribersWith", "hasWebhooks", "hasWebhooksWith", "hasEvents", "hasEventsWith", "hasSecrets", "hasSecretsWith", "hasFeatures", "hasFeaturesWith", "hasFiles", "hasFilesWith", "hasEntitlementplans", "hasEntitlementplansWith", "hasEntitlementplanfeatures", "hasEntitlementplanfeaturesWith", "hasEntities", "hasEntitiesWith", "hasEntitytypes", "hasEntitytypesWith", "hasContacts", "hasContactsWith", "hasNotes", "hasNotesWith", "hasMembers", "hasMembersWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -180701,21 +269227,21 @@ func (ec *executionContext) unmarshalInputGroupSettingWhereInput(ctx context.Con switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx, v) + data, err := ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOGroupSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOGroupSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -181315,251 +269841,727 @@ func (ec *executionContext) unmarshalInputGroupSettingWhereInput(ctx context.Con return it, err } it.DeletedByContainsFold = data - case "visibility": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibility")) - data, err := ec.unmarshalOGroupSettingVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, v) + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Visibility = data - case "visibilityNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibilityNEQ")) - data, err := ec.unmarshalOGroupSettingVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, v) + it.DisplayName = data + case "displayNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.VisibilityNEQ = data - case "visibilityIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibilityIn")) - data, err := ec.unmarshalOGroupSettingVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx, v) + it.DisplayNameNEQ = data + case "displayNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.VisibilityIn = data - case "visibilityNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibilityNotIn")) - data, err := ec.unmarshalOGroupSettingVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx, v) + it.DisplayNameIn = data + case "displayNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.VisibilityNotIn = data - case "joinPolicy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicy")) - data, err := ec.unmarshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, v) + it.DisplayNameNotIn = data + case "displayNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.JoinPolicy = data - case "joinPolicyNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicyNEQ")) - data, err := ec.unmarshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, v) + it.DisplayNameGT = data + case "displayNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.JoinPolicyNEQ = data - case "joinPolicyIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicyIn")) - data, err := ec.unmarshalOGroupSettingJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx, v) + it.DisplayNameGTE = data + case "displayNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.JoinPolicyIn = data - case "joinPolicyNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicyNotIn")) - data, err := ec.unmarshalOGroupSettingJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx, v) + it.DisplayNameLT = data + case "displayNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.JoinPolicyNotIn = data - case "syncToSlack": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlack")) + it.DisplayNameLTE = data + case "displayNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameContains = data + case "displayNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameHasPrefix = data + case "displayNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameHasSuffix = data + case "displayNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameEqualFold = data + case "displayNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayNameContainsFold = data + case "parentOrganizationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationID = data + case "parentOrganizationIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDNEQ = data + case "parentOrganizationIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDIn = data + case "parentOrganizationIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDNotIn = data + case "parentOrganizationIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDGT = data + case "parentOrganizationIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDGTE = data + case "parentOrganizationIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDLT = data + case "parentOrganizationIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDLTE = data + case "parentOrganizationIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDContains = data + case "parentOrganizationIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDHasPrefix = data + case "parentOrganizationIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDHasSuffix = data + case "parentOrganizationIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDIsNil = data + case "parentOrganizationIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDNotNil = data + case "parentOrganizationIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDEqualFold = data + case "parentOrganizationIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ParentOrganizationIDContainsFold = data + case "personalOrg": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrg")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.SyncToSlack = data - case "syncToSlackNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlackNEQ")) + it.PersonalOrg = data + case "personalOrgNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrgNEQ")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.SyncToSlackNEQ = data - case "syncToSlackIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlackIsNil")) + it.PersonalOrgNEQ = data + case "personalOrgIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrgIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PersonalOrgIsNil = data + case "personalOrgNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrgNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PersonalOrgNotNil = data + case "avatarRemoteURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURL = data + case "avatarRemoteURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLNEQ = data + case "avatarRemoteURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLIn = data + case "avatarRemoteURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLNotIn = data + case "avatarRemoteURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLGT = data + case "avatarRemoteURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLGTE = data + case "avatarRemoteURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLLT = data + case "avatarRemoteURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLLTE = data + case "avatarRemoteURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLContains = data + case "avatarRemoteURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLHasPrefix = data + case "avatarRemoteURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLHasSuffix = data + case "avatarRemoteURLIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLIsNil = data + case "avatarRemoteURLNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.SyncToSlackIsNil = data - case "syncToSlackNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlackNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AvatarRemoteURLNotNil = data + case "avatarRemoteURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLEqualFold = data + case "avatarRemoteURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLContainsFold = data + case "hasParent": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasParent")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasParent = data + case "hasParentWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasParentWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasParentWith = data + case "hasChildren": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasChildren")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasChildren = data + case "hasChildrenWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasChildrenWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasChildrenWith = data + case "hasGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroups")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasGroups = data + case "hasGroupsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasGroupsWith = data + case "hasTemplates": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplates")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasTemplates = data + case "hasTemplatesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplatesWith")) + data, err := ec.unmarshalOTemplateWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTemplatesWith = data + case "hasIntegrations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrations")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasIntegrations = data + case "hasIntegrationsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationsWith")) + data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasIntegrationsWith = data + case "hasSetting": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSetting")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasSetting = data + case "hasSettingWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSettingWith")) + data, err := ec.unmarshalOOrganizationSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSettingWith = data + case "hasDocumentdata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocumentdata")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasDocumentdata = data + case "hasDocumentdataWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocumentdataWith")) + data, err := ec.unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasDocumentdataWith = data + case "hasEntitlements": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlements")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEntitlements = data + case "hasEntitlementsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementsWith")) + data, err := ec.unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEntitlementsWith = data + case "hasOrganizationEntitlement": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationEntitlement")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOrganizationEntitlement = data + case "hasOrganizationEntitlementWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationEntitlementWith")) + data, err := ec.unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOrganizationEntitlementWith = data + case "hasPersonalAccessTokens": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPersonalAccessTokens")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasPersonalAccessTokens = data + case "hasPersonalAccessTokensWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPersonalAccessTokensWith")) + data, err := ec.unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasPersonalAccessTokensWith = data + case "hasAPITokens": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAPITokens")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAPITokens = data + case "hasAPITokensWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAPITokensWith")) + data, err := ec.unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAPITokensWith = data + case "hasOauthprovider": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOauthprovider")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOauthprovider = data + case "hasOauthproviderWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOauthproviderWith")) + data, err := ec.unmarshalOOauthProviderWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOauthproviderWith = data + case "hasUsers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUsers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasUsers = data + case "hasUsersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUsersWith")) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasUsersWith = data + case "hasInvites": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInvites")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasInvites = data + case "hasInvitesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInvitesWith")) + data, err := ec.unmarshalOInviteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasInvitesWith = data + case "hasSubscribers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubscribers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasSubscribers = data + case "hasSubscribersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubscribersWith")) + data, err := ec.unmarshalOSubscriberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSubscribersWith = data + case "hasWebhooks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWebhooks")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasWebhooks = data + case "hasWebhooksWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWebhooksWith")) + data, err := ec.unmarshalOWebhookWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasWebhooksWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.SyncToSlackNotNil = data - case "syncToGithub": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithub")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.SyncToGithub = data - case "syncToGithubNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithubNEQ")) + it.HasEventsWith = data + case "hasSecrets": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSecrets")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.SyncToGithubNEQ = data - case "syncToGithubIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithubIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.HasSecrets = data + case "hasSecretsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSecretsWith")) + data, err := ec.unmarshalOHushWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.SyncToGithubIsNil = data - case "syncToGithubNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithubNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.HasSecretsWith = data + case "hasFeatures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeatures")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.SyncToGithubNotNil = data - case "groupID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.HasFeatures = data + case "hasFeaturesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeaturesWith")) + data, err := ec.unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInputᚄ(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) + it.HasFeaturesWith = data + case "hasFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.HasFiles = data + case "hasFilesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(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) + it.HasFilesWith = data + case "hasEntitlementplans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplans")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.GroupIDNotIn = data - case "groupIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.HasEntitlementplans = data + case "hasEntitlementplansWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplansWith")) + data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.GroupIDGT = data - case "groupIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.HasEntitlementplansWith = data + case "hasEntitlementplanfeatures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplanfeatures")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.GroupIDGTE = data - case "groupIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.HasEntitlementplanfeatures = data + case "hasEntitlementplanfeaturesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplanfeaturesWith")) + data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.GroupIDLT = data - case "groupIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.HasEntitlementplanfeaturesWith = data + case "hasEntities": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntities")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.GroupIDLTE = data - case "groupIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.HasEntities = data + case "hasEntitiesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitiesWith")) + data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(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) + it.HasEntitiesWith = data + case "hasEntitytypes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitytypes")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.HasEntitytypes = data + case "hasEntitytypesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitytypesWith")) + data, err := ec.unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInputᚄ(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) + it.HasEntitytypesWith = data + case "hasContacts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContacts")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.HasContacts = data + case "hasContactsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContactsWith")) + data, err := ec.unmarshalOContactWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(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) + it.HasContactsWith = data + case "hasNotes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNotes")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.HasNotes = data + case "hasNotesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNotesWith")) + data, err := ec.unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.GroupIDContainsFold = data - case "hasGroup": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroup")) + it.HasNotesWith = data + case "hasMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasMembers")) 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ᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + it.HasMembers = data + case "hasMembersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasMembersWith")) + data, err := ec.unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasGroupWith = data + it.HasMembersWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, obj interface{}) (generated.GroupWhereInput, error) { - var it generated.GroupWhereInput +func (ec *executionContext) unmarshalInputPersonalAccessTokenWhereInput(ctx context.Context, obj interface{}) (generated.PersonalAccessTokenWhereInput, error) { + var it generated.PersonalAccessTokenWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "hasOwner", "hasOwnerWith", "hasSetting", "hasSettingWith", "hasUsers", "hasUsersWith", "hasEvents", "hasEventsWith", "hasIntegrations", "hasIntegrationsWith", "hasFiles", "hasFilesWith", "hasMembers", "hasMembersWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "expiresAt", "expiresAtNEQ", "expiresAtIn", "expiresAtNotIn", "expiresAtGT", "expiresAtGTE", "expiresAtLT", "expiresAtLTE", "expiresAtIsNil", "expiresAtNotNil", "lastUsedAt", "lastUsedAtNEQ", "lastUsedAtIn", "lastUsedAtNotIn", "lastUsedAtGT", "lastUsedAtGTE", "lastUsedAtLT", "lastUsedAtLTE", "lastUsedAtIsNil", "lastUsedAtNotNil", "hasOwner", "hasOwnerWith", "hasOrganizations", "hasOrganizationsWith", "hasEvents", "hasEventsWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -181568,21 +270570,21 @@ func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, o switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + data, err := ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -182182,111 +271184,6 @@ func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, o return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "ownerIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDNEQ = data - case "ownerIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDIn = data - case "ownerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDContains = data - case "ownerIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDNotNil = data - case "ownerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDEqualFold = data - case "ownerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDContainsFold = data case "name": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) @@ -182378,247 +271275,202 @@ func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, o return it, err } it.NameContainsFold = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayName = data - case "displayNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + case "expiresAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DisplayNameNEQ = data - case "displayNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ExpiresAt = data + case "expiresAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DisplayNameIn = data - case "displayNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ExpiresAtNEQ = data + case "expiresAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.DisplayNameNotIn = data - case "displayNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ExpiresAtIn = data + case "expiresAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.DisplayNameGT = data - case "displayNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ExpiresAtNotIn = data + case "expiresAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DisplayNameGTE = data - case "displayNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ExpiresAtGT = data + case "expiresAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DisplayNameLT = data - case "displayNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ExpiresAtGTE = data + case "expiresAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DisplayNameLTE = data - case "displayNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ExpiresAtLT = data + case "expiresAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DisplayNameContains = data - case "displayNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ExpiresAtLTE = data + case "expiresAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DisplayNameHasPrefix = data - case "displayNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ExpiresAtIsNil = data + case "expiresAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DisplayNameHasSuffix = data - case "displayNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ExpiresAtNotNil = data + case "lastUsedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DisplayNameEqualFold = data - case "displayNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.LastUsedAt = data + case "lastUsedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DisplayNameContainsFold = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.LastUsedAtNEQ = data + case "lastUsedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.LastUsedAtIn = data + case "lastUsedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.HasOwnerWith = data - case "hasSetting": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSetting")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.LastUsedAtNotIn = data + case "lastUsedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.HasSetting = data - case "hasSettingWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSettingWith")) - data, err := ec.unmarshalOGroupSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInputᚄ(ctx, v) + it.LastUsedAtGT = data + case "lastUsedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.HasSettingWith = data - case "hasUsers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUsers")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.LastUsedAtGTE = data + case "lastUsedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.HasUsers = data - case "hasUsersWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUsersWith")) - data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) + it.LastUsedAtLT = data + case "lastUsedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.HasUsersWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.LastUsedAtLTE = data + case "lastUsedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + it.LastUsedAtIsNil = data + case "lastUsedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasEventsWith = data - case "hasIntegrations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrations")) + it.LastUsedAtNotNil = data + case "hasOwner": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasIntegrations = data - case "hasIntegrationsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationsWith")) - data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) + it.HasOwner = data + case "hasOwnerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasIntegrationsWith = data - case "hasFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) + it.HasOwnerWith = data + case "hasOrganizations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizations")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasFiles = data - case "hasFilesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + it.HasOrganizations = data + case "hasOrganizationsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationsWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasFilesWith = data - case "hasMembers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasMembers")) + it.HasOrganizationsWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasMembers = data - case "hasMembersWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasMembersWith")) - data, err := ec.unmarshalOGroupMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasMembersWith = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputHushHistoryOrder(ctx context.Context, obj interface{}) (generated.HushHistoryOrder, error) { - var it generated.HushHistoryOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - 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.unmarshalNHushHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryOrderField(ctx, v) + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.Field = data + it.HasEventsWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputHushHistoryWhereInput(ctx context.Context, obj interface{}) (generated.HushHistoryWhereInput, error) { - var it generated.HushHistoryWhereInput +func (ec *executionContext) unmarshalInputProcedureHistoryWhereInput(ctx context.Context, obj interface{}) (generated.ProcedureHistoryWhereInput, error) { + var it generated.ProcedureHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "kind", "kindNEQ", "kindIn", "kindNotIn", "kindGT", "kindGTE", "kindLT", "kindLTE", "kindContains", "kindHasPrefix", "kindHasSuffix", "kindIsNil", "kindNotNil", "kindEqualFold", "kindContainsFold", "secretName", "secretNameNEQ", "secretNameIn", "secretNameNotIn", "secretNameGT", "secretNameGTE", "secretNameLT", "secretNameLTE", "secretNameContains", "secretNameHasPrefix", "secretNameHasSuffix", "secretNameIsNil", "secretNameNotNil", "secretNameEqualFold", "secretNameContainsFold"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "procedureType", "procedureTypeNEQ", "procedureTypeIn", "procedureTypeNotIn", "procedureTypeGT", "procedureTypeGTE", "procedureTypeLT", "procedureTypeLTE", "procedureTypeContains", "procedureTypeHasPrefix", "procedureTypeHasSuffix", "procedureTypeIsNil", "procedureTypeNotNil", "procedureTypeEqualFold", "procedureTypeContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionIsNil", "versionNotNil", "versionEqualFold", "versionContainsFold", "purposeAndScope", "purposeAndScopeNEQ", "purposeAndScopeIn", "purposeAndScopeNotIn", "purposeAndScopeGT", "purposeAndScopeGTE", "purposeAndScopeLT", "purposeAndScopeLTE", "purposeAndScopeContains", "purposeAndScopeHasPrefix", "purposeAndScopeHasSuffix", "purposeAndScopeIsNil", "purposeAndScopeNotNil", "purposeAndScopeEqualFold", "purposeAndScopeContainsFold", "background", "backgroundNEQ", "backgroundIn", "backgroundNotIn", "backgroundGT", "backgroundGTE", "backgroundLT", "backgroundLTE", "backgroundContains", "backgroundHasPrefix", "backgroundHasSuffix", "backgroundIsNil", "backgroundNotNil", "backgroundEqualFold", "backgroundContainsFold", "satisfies", "satisfiesNEQ", "satisfiesIn", "satisfiesNotIn", "satisfiesGT", "satisfiesGTE", "satisfiesLT", "satisfiesLTE", "satisfiesContains", "satisfiesHasPrefix", "satisfiesHasSuffix", "satisfiesIsNil", "satisfiesNotNil", "satisfiesEqualFold", "satisfiesContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -182627,21 +271479,21 @@ func (ec *executionContext) unmarshalInputHushHistoryWhereInput(ctx context.Cont switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOHushHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOProcedureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOHushHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOProcedureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOHushHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOProcedureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -182879,28 +271731,28 @@ func (ec *executionContext) unmarshalInputHushHistoryWhereInput(ctx context.Cont it.RefContainsFold = data case "operation": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOHushHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOProcedureHistoryOpType2ᚖ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.unmarshalOHushHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOProcedureHistoryOpType2ᚖ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.unmarshalOHushHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOProcedureHistoryOpType2ᚕ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.unmarshalOHushHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOProcedureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } @@ -183107,682 +271959,1169 @@ func (ec *executionContext) unmarshalInputHushHistoryWhereInput(ctx context.Cont if err != nil { return it, err } - it.CreatedByContains = data - case "createdByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + it.CreatedByContains = data + case "createdByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasPrefix = data + case "createdByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByHasSuffix = data + case "createdByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByIsNil = data + case "createdByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.CreatedByNotNil = data + case "createdByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByEqualFold = data + case "createdByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CreatedByContainsFold = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "updatedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNEQ = data + case "updatedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIn = data + case "updatedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContains = data + case "updatedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasPrefix = data + case "updatedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByHasSuffix = data + case "updatedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByIsNil = data + case "updatedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByNotNil = data + case "updatedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByEqualFold = data + case "updatedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLTE = 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.CreatedByHasPrefix = data - case "createdByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + 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.CreatedByHasSuffix = data - case "createdByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + 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.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + 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.CreatedByNotNil = data - case "createdByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + 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.CreatedByEqualFold = data - case "createdByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + 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.CreatedByContainsFold = data - case "updatedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + it.DescriptionContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) 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")) + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) 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")) + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) 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")) + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) 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")) + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) 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")) + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) 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")) + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByNotNil = data - case "updatedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) 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")) + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StatusContainsFold = data + case "procedureType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ProcedureType = data + case "procedureTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ProcedureTypeNEQ = data + case "procedureTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ProcedureTypeIn = data + case "procedureTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ProcedureTypeNotIn = data + case "procedureTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ProcedureTypeGT = data + case "procedureTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ProcedureTypeGTE = data + case "procedureTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ProcedureTypeLT = data + case "procedureTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + it.ProcedureTypeLTE = data + case "procedureTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeContains = data + case "procedureTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeHasPrefix = data + case "procedureTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeHasSuffix = data + case "procedureTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + it.ProcedureTypeIsNil = data + case "procedureTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + it.ProcedureTypeNotNil = data + case "procedureTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + it.ProcedureTypeEqualFold = data + case "procedureTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + it.ProcedureTypeContainsFold = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + it.VersionHasSuffix = data + case "versionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + it.VersionIsNil = data + case "versionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + it.VersionNotNil = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + it.VersionContainsFold = data + case "purposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScope")) 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")) + it.PurposeAndScope = data + case "purposeAndScopeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNEQ")) 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")) + it.PurposeAndScopeNEQ = data + case "purposeAndScopeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeIn")) 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")) + it.PurposeAndScopeIn = data + case "purposeAndScopeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + it.PurposeAndScopeNotIn = data + case "purposeAndScopeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + it.PurposeAndScopeGT = data + case "purposeAndScopeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + it.PurposeAndScopeGTE = data + case "purposeAndScopeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + it.PurposeAndScopeLT = data + case "purposeAndScopeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + it.PurposeAndScopeLTE = data + case "purposeAndScopeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeContains")) 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")) + it.PurposeAndScopeContains = data + case "purposeAndScopeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeHasPrefix")) 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")) + it.PurposeAndScopeHasPrefix = data + case "purposeAndScopeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeHasSuffix")) 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")) + it.PurposeAndScopeHasSuffix = data + case "purposeAndScopeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeIsNil = data + case "purposeAndScopeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeNotNil = data + case "purposeAndScopeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeEqualFold")) 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")) + it.PurposeAndScopeEqualFold = data + case "purposeAndScopeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - case "kind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + it.PurposeAndScopeContainsFold = data + case "background": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("background")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Kind = data - case "kindNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNEQ")) + it.Background = data + case "backgroundNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindNEQ = data - case "kindIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIn")) + it.BackgroundNEQ = data + case "backgroundIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.KindIn = data - case "kindNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotIn")) + it.BackgroundIn = data + case "backgroundNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.KindNotIn = data - case "kindGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGT")) + it.BackgroundNotIn = data + case "backgroundGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindGT = data - case "kindGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGTE")) + it.BackgroundGT = data + case "backgroundGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindGTE = data - case "kindLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLT")) + it.BackgroundGTE = data + case "backgroundLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindLT = data - case "kindLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLTE")) + it.BackgroundLT = data + case "backgroundLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindLTE = data - case "kindContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContains")) + it.BackgroundLTE = data + case "backgroundContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindContains = data - case "kindHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasPrefix")) + it.BackgroundContains = data + case "backgroundHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindHasPrefix = data - case "kindHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasSuffix")) + it.BackgroundHasPrefix = data + case "backgroundHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindHasSuffix = data - case "kindIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIsNil")) + it.BackgroundHasSuffix = data + case "backgroundIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.KindIsNil = data - case "kindNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotNil")) + it.BackgroundIsNil = data + case "backgroundNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.KindNotNil = data - case "kindEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindEqualFold")) + it.BackgroundNotNil = data + case "backgroundEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindEqualFold = data - case "kindContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContainsFold")) + it.BackgroundEqualFold = data + case "backgroundContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindContainsFold = data - case "secretName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretName")) + it.BackgroundContainsFold = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretName = data - case "secretNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameNEQ")) + it.Satisfies = data + case "satisfiesNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameNEQ = data - case "secretNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameIn")) + it.SatisfiesNEQ = data + case "satisfiesIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.SecretNameIn = data - case "secretNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameNotIn")) + it.SatisfiesIn = data + case "satisfiesNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.SecretNameNotIn = data - case "secretNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameGT")) + it.SatisfiesNotIn = data + case "satisfiesGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameGT = data - case "secretNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameGTE")) + it.SatisfiesGT = data + case "satisfiesGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameGTE = data - case "secretNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameLT")) + it.SatisfiesGTE = data + case "satisfiesLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameLT = data - case "secretNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameLTE")) + it.SatisfiesLT = data + case "satisfiesLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameLTE = data - case "secretNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameContains")) + it.SatisfiesLTE = data + case "satisfiesContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameContains = data - case "secretNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameHasPrefix")) + it.SatisfiesContains = data + case "satisfiesHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameHasPrefix = data - case "secretNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameHasSuffix")) + it.SatisfiesHasPrefix = data + case "satisfiesHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameHasSuffix = data - case "secretNameIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameIsNil")) + it.SatisfiesHasSuffix = data + case "satisfiesIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.SecretNameIsNil = data - case "secretNameNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameNotNil")) + it.SatisfiesIsNil = data + case "satisfiesNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.SecretNameNotNil = data - case "secretNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameEqualFold")) + it.SatisfiesNotNil = data + case "satisfiesEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameEqualFold = data - case "secretNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameContainsFold")) + it.SatisfiesEqualFold = data + case "satisfiesContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameContainsFold = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputHushOrder(ctx context.Context, obj interface{}) (generated.HushOrder, error) { - var it generated.HushOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - 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.unmarshalNHushOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrderField(ctx, v) - if err != nil { - return it, err - } - it.Field = data + it.SatisfiesContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputHushWhereInput(ctx context.Context, obj interface{}) (generated.HushWhereInput, error) { - var it generated.HushWhereInput +func (ec *executionContext) unmarshalInputProcedureWhereInput(ctx context.Context, obj interface{}) (generated.ProcedureWhereInput, error) { + var it generated.ProcedureWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "kind", "kindNEQ", "kindIn", "kindNotIn", "kindGT", "kindGTE", "kindLT", "kindLTE", "kindContains", "kindHasPrefix", "kindHasSuffix", "kindIsNil", "kindNotNil", "kindEqualFold", "kindContainsFold", "secretName", "secretNameNEQ", "secretNameIn", "secretNameNotIn", "secretNameGT", "secretNameGTE", "secretNameLT", "secretNameLTE", "secretNameContains", "secretNameHasPrefix", "secretNameHasSuffix", "secretNameIsNil", "secretNameNotNil", "secretNameEqualFold", "secretNameContainsFold", "hasIntegrations", "hasIntegrationsWith", "hasOrganization", "hasOrganizationWith", "hasEvents", "hasEventsWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "procedureType", "procedureTypeNEQ", "procedureTypeIn", "procedureTypeNotIn", "procedureTypeGT", "procedureTypeGTE", "procedureTypeLT", "procedureTypeLTE", "procedureTypeContains", "procedureTypeHasPrefix", "procedureTypeHasSuffix", "procedureTypeIsNil", "procedureTypeNotNil", "procedureTypeEqualFold", "procedureTypeContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionIsNil", "versionNotNil", "versionEqualFold", "versionContainsFold", "purposeAndScope", "purposeAndScopeNEQ", "purposeAndScopeIn", "purposeAndScopeNotIn", "purposeAndScopeGT", "purposeAndScopeGTE", "purposeAndScopeLT", "purposeAndScopeLTE", "purposeAndScopeContains", "purposeAndScopeHasPrefix", "purposeAndScopeHasSuffix", "purposeAndScopeIsNil", "purposeAndScopeNotNil", "purposeAndScopeEqualFold", "purposeAndScopeContainsFold", "background", "backgroundNEQ", "backgroundIn", "backgroundNotIn", "backgroundGT", "backgroundGTE", "backgroundLT", "backgroundLTE", "backgroundContains", "backgroundHasPrefix", "backgroundHasSuffix", "backgroundIsNil", "backgroundNotNil", "backgroundEqualFold", "backgroundContainsFold", "satisfies", "satisfiesNEQ", "satisfiesIn", "satisfiesNotIn", "satisfiesGT", "satisfiesGTE", "satisfiesLT", "satisfiesLTE", "satisfiesContains", "satisfiesHasPrefix", "satisfiesHasSuffix", "satisfiesIsNil", "satisfiesNotNil", "satisfiesEqualFold", "satisfiesContainsFold", "hasControl", "hasControlWith", "hasInternalpolicy", "hasInternalpolicyWith", "hasNarratives", "hasNarrativesWith", "hasRisks", "hasRisksWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -183791,21 +273130,21 @@ func (ec *executionContext) unmarshalInputHushWhereInput(ctx context.Context, ob switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, v) + data, err := ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOHushWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOProcedureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOHushWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOProcedureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -184496,310 +273835,811 @@ func (ec *executionContext) unmarshalInputHushWhereInput(ctx context.Context, ob return it, err } it.NameContainsFold = data - case "kind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Kind = data - case "kindNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNEQ")) + 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.KindNEQ = data - case "kindIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIn")) + 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.KindIn = data - case "kindNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotIn")) + 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.KindNotIn = data - case "kindGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGT")) + it.DescriptionNotIn = data + case "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindGT = data - case "kindGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGTE")) + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindGTE = data - case "kindLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLT")) + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindLT = data - case "kindLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLTE")) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindLTE = data - case "kindContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContains")) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindContains = data - case "kindHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasPrefix")) + 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.KindHasPrefix = data - case "kindHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasSuffix")) + 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.KindHasSuffix = data - case "kindIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIsNil")) + 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.KindIsNil = data - case "kindNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotNil")) + 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.KindNotNil = data - case "kindEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindEqualFold")) + 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.KindEqualFold = data - case "kindContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContainsFold")) + 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.KindContainsFold = data - case "secretName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretName")) + it.DescriptionContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretName = data - case "secretNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameNEQ")) + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameNEQ = data - case "secretNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameIn")) + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.SecretNameIn = data - case "secretNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameNotIn")) + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.SecretNameNotIn = data - case "secretNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameGT")) + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameGT = data - case "secretNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameGTE")) + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameGTE = data - case "secretNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameLT")) + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameLT = data - case "secretNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameLTE")) + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameLTE = data - case "secretNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameContains")) + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameContains = data - case "secretNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameHasPrefix")) + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameHasPrefix = data - case "secretNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameHasSuffix")) + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameHasSuffix = data - case "secretNameIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameIsNil")) + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.SecretNameIsNil = data - case "secretNameNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameNotNil")) + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.SecretNameNotNil = data - case "secretNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameEqualFold")) + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameEqualFold = data - case "secretNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("secretNameContainsFold")) + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SecretNameContainsFold = data - case "hasIntegrations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrations")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.StatusContainsFold = data + case "procedureType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasIntegrations = data - case "hasIntegrationsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationsWith")) - data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) + it.ProcedureType = data + case "procedureTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasIntegrationsWith = data - case "hasOrganization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganization")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ProcedureTypeNEQ = data + case "procedureTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasOrganization = data - case "hasOrganizationWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationWith")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.ProcedureTypeIn = data + case "procedureTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasOrganizationWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + it.ProcedureTypeNotIn = data + case "procedureTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeGT = data + case "procedureTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeGTE = data + case "procedureTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeLT = data + case "procedureTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeLTE = data + case "procedureTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeContains = data + case "procedureTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeHasPrefix = data + case "procedureTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeHasSuffix = data + case "procedureTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeIsNil = data + case "procedureTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeNotNil = data + case "procedureTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeEqualFold = data + case "procedureTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ProcedureTypeContainsFold = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasSuffix = data + case "versionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.VersionIsNil = data + case "versionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.VersionNotNil = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContainsFold = data + case "purposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScope")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScope = data + case "purposeAndScopeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeNEQ = data + case "purposeAndScopeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeIn = data + case "purposeAndScopeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeNotIn = data + case "purposeAndScopeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeGT = data + case "purposeAndScopeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeGTE = data + case "purposeAndScopeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeLT = data + case "purposeAndScopeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeLTE = data + case "purposeAndScopeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeContains = data + case "purposeAndScopeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeHasPrefix = data + case "purposeAndScopeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeHasSuffix = data + case "purposeAndScopeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeIsNil = data + case "purposeAndScopeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeNotNil = data + case "purposeAndScopeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeEqualFold = data + case "purposeAndScopeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeContainsFold = data + case "background": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("background")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Background = data + case "backgroundNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundNEQ = data + case "backgroundIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BackgroundIn = data + case "backgroundNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BackgroundNotIn = data + case "backgroundGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundGT = data + case "backgroundGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundGTE = data + case "backgroundLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundLT = data + case "backgroundLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundLTE = data + case "backgroundContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundContains = data + case "backgroundHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundHasPrefix = data + case "backgroundHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundHasSuffix = data + case "backgroundIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.BackgroundIsNil = data + case "backgroundNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.BackgroundNotNil = data + case "backgroundEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundEqualFold = data + case "backgroundContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundContainsFold = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Satisfies = data + case "satisfiesNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesNEQ = data + case "satisfiesIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesIn = data + case "satisfiesNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesNotIn = data + case "satisfiesGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesGT = data + case "satisfiesGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesGTE = data + case "satisfiesLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesLT = data + case "satisfiesLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesLTE = data + case "satisfiesContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesContains = data + case "satisfiesHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesHasPrefix = data + case "satisfiesHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesHasSuffix = data + case "satisfiesIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesIsNil = data + case "satisfiesNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesNotNil = data + case "satisfiesEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesEqualFold = data + case "satisfiesContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesContainsFold = data + case "hasControl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControl")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + it.HasControl = data + case "hasControlWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlWith")) + data, err := ec.unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasEventsWith = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIntegrationHistoryOrder(ctx context.Context, obj interface{}) (generated.IntegrationHistoryOrder, error) { - var it generated.IntegrationHistoryOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - 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) + it.HasControlWith = data + case "hasInternalpolicy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalpolicy")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasInternalpolicy = data + case "hasInternalpolicyWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalpolicyWith")) + data, err := ec.unmarshalOInternalPolicyWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNIntegrationHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryOrderField(ctx, v) + it.HasInternalpolicyWith = data + case "hasNarratives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNarratives")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Field = data + it.HasNarratives = data + case "hasNarrativesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNarrativesWith")) + data, err := ec.unmarshalONarrativeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasNarrativesWith = data + case "hasRisks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRisks")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasRisks = data + case "hasRisksWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRisksWith")) + data, err := ec.unmarshalORiskWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasRisksWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputIntegrationHistoryWhereInput(ctx context.Context, obj interface{}) (generated.IntegrationHistoryWhereInput, error) { - var it generated.IntegrationHistoryWhereInput +func (ec *executionContext) unmarshalInputRiskHistoryWhereInput(ctx context.Context, obj interface{}) (generated.RiskHistoryWhereInput, error) { + var it generated.RiskHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "kind", "kindNEQ", "kindIn", "kindNotIn", "kindGT", "kindGTE", "kindLT", "kindLTE", "kindContains", "kindHasPrefix", "kindHasSuffix", "kindIsNil", "kindNotNil", "kindEqualFold", "kindContainsFold"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "riskType", "riskTypeNEQ", "riskTypeIn", "riskTypeNotIn", "riskTypeGT", "riskTypeGTE", "riskTypeLT", "riskTypeLTE", "riskTypeContains", "riskTypeHasPrefix", "riskTypeHasSuffix", "riskTypeIsNil", "riskTypeNotNil", "riskTypeEqualFold", "riskTypeContainsFold", "businessCosts", "businessCostsNEQ", "businessCostsIn", "businessCostsNotIn", "businessCostsGT", "businessCostsGTE", "businessCostsLT", "businessCostsLTE", "businessCostsContains", "businessCostsHasPrefix", "businessCostsHasSuffix", "businessCostsIsNil", "businessCostsNotNil", "businessCostsEqualFold", "businessCostsContainsFold", "impact", "impactNEQ", "impactIn", "impactNotIn", "impactIsNil", "impactNotNil", "likelihood", "likelihoodNEQ", "likelihoodIn", "likelihoodNotIn", "likelihoodIsNil", "likelihoodNotNil", "mitigation", "mitigationNEQ", "mitigationIn", "mitigationNotIn", "mitigationGT", "mitigationGTE", "mitigationLT", "mitigationLTE", "mitigationContains", "mitigationHasPrefix", "mitigationHasSuffix", "mitigationIsNil", "mitigationNotNil", "mitigationEqualFold", "mitigationContainsFold", "satisfies", "satisfiesNEQ", "satisfiesIn", "satisfiesNotIn", "satisfiesGT", "satisfiesGTE", "satisfiesLT", "satisfiesLTE", "satisfiesContains", "satisfiesHasPrefix", "satisfiesHasSuffix", "satisfiesIsNil", "satisfiesNotNil", "satisfiesEqualFold", "satisfiesContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -184808,21 +274648,21 @@ func (ec *executionContext) unmarshalInputIntegrationHistoryWhereInput(ctx conte switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOIntegrationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInput(ctx, v) + data, err := ec.unmarshalORiskHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOIntegrationHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalORiskHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOIntegrationHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalORiskHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -185060,28 +274900,28 @@ func (ec *executionContext) unmarshalInputIntegrationHistoryWhereInput(ctx conte it.RefContainsFold = data case "operation": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOIntegrationHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalORiskHistoryOpType2ᚖ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.unmarshalOIntegrationHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalORiskHistoryOpType2ᚖ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.unmarshalOIntegrationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalORiskHistoryOpType2ᚕ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.unmarshalOIntegrationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalORiskHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } @@ -185611,359 +275451,825 @@ func (ec *executionContext) unmarshalInputIntegrationHistoryWhereInput(ctx conte return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 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")) + 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.OwnerIDNEQ = data - case "ownerIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + 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.OwnerIDIn = data - case "ownerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + 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.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContains = data - case "ownerIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + 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.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + 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.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) + 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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLTE = 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.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + 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.OwnerIDNotNil = data - case "ownerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) + 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.OwnerIDEqualFold = data - case "ownerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + 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.OwnerIDContainsFold = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + it.DescriptionContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) 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")) + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) 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")) + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) 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")) + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) 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")) + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) 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")) + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) 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")) + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) 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")) + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - case "kind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + it.StatusContainsFold = data + case "riskType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskType")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Kind = data - case "kindNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNEQ")) + it.RiskType = data + case "riskTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindNEQ = data - case "kindIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIn")) + it.RiskTypeNEQ = data + case "riskTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.KindIn = data - case "kindNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotIn")) + it.RiskTypeIn = data + case "riskTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.KindNotIn = data - case "kindGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGT")) + it.RiskTypeNotIn = data + case "riskTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindGT = data - case "kindGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGTE")) + it.RiskTypeGT = data + case "riskTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindGTE = data - case "kindLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLT")) + it.RiskTypeGTE = data + case "riskTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindLT = data - case "kindLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLTE")) + it.RiskTypeLT = data + case "riskTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindLTE = data - case "kindContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContains")) + it.RiskTypeLTE = data + case "riskTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindContains = data - case "kindHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasPrefix")) + it.RiskTypeContains = data + case "riskTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindHasPrefix = data - case "kindHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasSuffix")) + it.RiskTypeHasPrefix = data + case "riskTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindHasSuffix = data - case "kindIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIsNil")) + it.RiskTypeHasSuffix = data + case "riskTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.KindIsNil = data - case "kindNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotNil")) + it.RiskTypeIsNil = data + case "riskTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.KindNotNil = data - case "kindEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindEqualFold")) + it.RiskTypeNotNil = data + case "riskTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindEqualFold = data - case "kindContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContainsFold")) + it.RiskTypeEqualFold = data + case "riskTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindContainsFold = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputIntegrationOrder(ctx context.Context, obj interface{}) (generated.IntegrationOrder, error) { - var it generated.IntegrationOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - 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) + it.RiskTypeContainsFold = data + case "businessCosts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCosts")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNIntegrationOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderField(ctx, v) + it.BusinessCosts = data + case "businessCostsNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Field = data + it.BusinessCostsNEQ = data + case "businessCostsIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsIn = data + case "businessCostsNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsNotIn = data + case "businessCostsGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsGT = data + case "businessCostsGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsGTE = data + case "businessCostsLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsLT = data + case "businessCostsLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsLTE = data + case "businessCostsContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsContains = data + case "businessCostsHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsHasPrefix = data + case "businessCostsHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsHasSuffix = data + case "businessCostsIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsIsNil = data + case "businessCostsNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsNotNil = data + case "businessCostsEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsEqualFold = data + case "businessCostsContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsContainsFold = data + case "impact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impact")) + data, err := ec.unmarshalORiskHistoryRiskImpact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, v) + if err != nil { + return it, err + } + it.Impact = data + case "impactNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impactNEQ")) + data, err := ec.unmarshalORiskHistoryRiskImpact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, v) + if err != nil { + return it, err + } + it.ImpactNEQ = data + case "impactIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impactIn")) + data, err := ec.unmarshalORiskHistoryRiskImpact2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpactᚄ(ctx, v) + if err != nil { + return it, err + } + it.ImpactIn = data + case "impactNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impactNotIn")) + data, err := ec.unmarshalORiskHistoryRiskImpact2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpactᚄ(ctx, v) + if err != nil { + return it, err + } + it.ImpactNotIn = data + case "impactIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impactIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ImpactIsNil = data + case "impactNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impactNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ImpactNotNil = data + case "likelihood": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihood")) + data, err := ec.unmarshalORiskHistoryRiskLikelihood2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, v) + if err != nil { + return it, err + } + it.Likelihood = data + case "likelihoodNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihoodNEQ")) + data, err := ec.unmarshalORiskHistoryRiskLikelihood2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, v) + if err != nil { + return it, err + } + it.LikelihoodNEQ = data + case "likelihoodIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihoodIn")) + data, err := ec.unmarshalORiskHistoryRiskLikelihood2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihoodᚄ(ctx, v) + if err != nil { + return it, err + } + it.LikelihoodIn = data + case "likelihoodNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihoodNotIn")) + data, err := ec.unmarshalORiskHistoryRiskLikelihood2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihoodᚄ(ctx, v) + if err != nil { + return it, err + } + it.LikelihoodNotIn = data + case "likelihoodIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihoodIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.LikelihoodIsNil = data + case "likelihoodNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihoodNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.LikelihoodNotNil = data + case "mitigation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigation")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Mitigation = data + case "mitigationNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MitigationNEQ = data + case "mitigationIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.MitigationIn = data + case "mitigationNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.MitigationNotIn = data + case "mitigationGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MitigationGT = data + case "mitigationGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MitigationGTE = data + case "mitigationLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MitigationLT = data + case "mitigationLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MitigationLTE = data + case "mitigationContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MitigationContains = data + case "mitigationHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MitigationHasPrefix = data + case "mitigationHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MitigationHasSuffix = data + case "mitigationIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MitigationIsNil = data + case "mitigationNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MitigationNotNil = data + case "mitigationEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MitigationEqualFold = data + case "mitigationContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MitigationContainsFold = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Satisfies = data + case "satisfiesNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesNEQ = data + case "satisfiesIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesIn = data + case "satisfiesNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesNotIn = data + case "satisfiesGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesGT = data + case "satisfiesGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesGTE = data + case "satisfiesLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesLT = data + case "satisfiesLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesLTE = data + case "satisfiesContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesContains = data + case "satisfiesHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesHasPrefix = data + case "satisfiesHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesHasSuffix = data + case "satisfiesIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesIsNil = data + case "satisfiesNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesNotNil = data + case "satisfiesEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesEqualFold = data + case "satisfiesContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputIntegrationWhereInput(ctx context.Context, obj interface{}) (generated.IntegrationWhereInput, error) { - var it generated.IntegrationWhereInput +func (ec *executionContext) unmarshalInputRiskWhereInput(ctx context.Context, obj interface{}) (generated.RiskWhereInput, error) { + var it generated.RiskWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "kind", "kindNEQ", "kindIn", "kindNotIn", "kindGT", "kindGTE", "kindLT", "kindLTE", "kindContains", "kindHasPrefix", "kindHasSuffix", "kindIsNil", "kindNotNil", "kindEqualFold", "kindContainsFold", "hasOwner", "hasOwnerWith", "hasSecrets", "hasSecretsWith", "hasOauth2tokens", "hasOauth2tokensWith", "hasEvents", "hasEventsWith", "hasWebhooks", "hasWebhooksWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "riskType", "riskTypeNEQ", "riskTypeIn", "riskTypeNotIn", "riskTypeGT", "riskTypeGTE", "riskTypeLT", "riskTypeLTE", "riskTypeContains", "riskTypeHasPrefix", "riskTypeHasSuffix", "riskTypeIsNil", "riskTypeNotNil", "riskTypeEqualFold", "riskTypeContainsFold", "businessCosts", "businessCostsNEQ", "businessCostsIn", "businessCostsNotIn", "businessCostsGT", "businessCostsGTE", "businessCostsLT", "businessCostsLTE", "businessCostsContains", "businessCostsHasPrefix", "businessCostsHasSuffix", "businessCostsIsNil", "businessCostsNotNil", "businessCostsEqualFold", "businessCostsContainsFold", "impact", "impactNEQ", "impactIn", "impactNotIn", "impactIsNil", "impactNotNil", "likelihood", "likelihoodNEQ", "likelihoodIn", "likelihoodNotIn", "likelihoodIsNil", "likelihoodNotNil", "mitigation", "mitigationNEQ", "mitigationIn", "mitigationNotIn", "mitigationGT", "mitigationGTE", "mitigationLT", "mitigationLTE", "mitigationContains", "mitigationHasPrefix", "mitigationHasSuffix", "mitigationIsNil", "mitigationNotNil", "mitigationEqualFold", "mitigationContainsFold", "satisfies", "satisfiesNEQ", "satisfiesIn", "satisfiesNotIn", "satisfiesGT", "satisfiesGTE", "satisfiesLT", "satisfiesLTE", "satisfiesContains", "satisfiesHasPrefix", "satisfiesHasSuffix", "satisfiesIsNil", "satisfiesNotNil", "satisfiesEqualFold", "satisfiesContainsFold", "hasControl", "hasControlWith", "hasProcedure", "hasProcedureWith", "hasActionplans", "hasActionplansWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -185972,21 +276278,21 @@ func (ec *executionContext) unmarshalInputIntegrationWhereInput(ctx context.Cont switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + data, err := ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) + data, err := ec.unmarshalORiskWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) + data, err := ec.unmarshalORiskWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -186543,434 +276849,910 @@ func (ec *executionContext) unmarshalInputIntegrationWhereInput(ctx context.Cont if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "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 "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionLTE = 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 "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContainsFold = data + case "riskType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RiskType = data + case "riskTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeNEQ = data + case "riskTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeIn = data + case "riskTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeNotIn = data + case "riskTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeGT = data + case "riskTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeGTE = data + case "riskTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeLT = data + case "riskTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeLTE = data + case "riskTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeContains = data + case "riskTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeHasPrefix = data + case "riskTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeHasSuffix = data + case "riskTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeIsNil = data + case "riskTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeNotNil = data + case "riskTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeEqualFold = data + case "riskTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RiskTypeContainsFold = data + case "businessCosts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCosts")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCosts = data + case "businessCostsNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsNEQ = data + case "businessCostsIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsIn = data + case "businessCostsNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsNotIn = data + case "businessCostsGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsGT = data + case "businessCostsGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BusinessCostsGTE = data + case "businessCostsLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + it.BusinessCostsLT = data + case "businessCostsLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.BusinessCostsLTE = data + case "businessCostsContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.BusinessCostsContains = data + case "businessCostsHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + it.BusinessCostsHasPrefix = data + case "businessCostsHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.BusinessCostsHasSuffix = data + case "businessCostsIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.BusinessCostsIsNil = data + case "businessCostsNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsNotNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.BusinessCostsNotNil = data + case "businessCostsEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsEqualFold")) + 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.unmarshalOID2ᚕstringᚄ(ctx, v) + it.BusinessCostsEqualFold = data + case "businessCostsContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCostsContainsFold")) + 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.unmarshalOID2ᚕstringᚄ(ctx, v) + it.BusinessCostsContainsFold = data + case "impact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impact")) + data, err := ec.unmarshalORiskRiskImpact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Impact = data + case "impactNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impactNEQ")) + data, err := ec.unmarshalORiskRiskImpact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ImpactNEQ = data + case "impactIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impactIn")) + data, err := ec.unmarshalORiskRiskImpact2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpactᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ImpactIn = data + case "impactNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impactNotIn")) + data, err := ec.unmarshalORiskRiskImpact2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpactᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ImpactNotIn = data + case "impactIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impactIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ImpactIsNil = data + case "impactNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impactNotNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ImpactNotNil = data + case "likelihood": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihood")) + data, err := ec.unmarshalORiskRiskLikelihood2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, v) if err != nil { return it, err } - it.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Likelihood = data + case "likelihoodNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihoodNEQ")) + data, err := ec.unmarshalORiskRiskLikelihood2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, v) if err != nil { return it, err } - it.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LikelihoodNEQ = data + case "likelihoodIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihoodIn")) + data, err := ec.unmarshalORiskRiskLikelihood2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihoodᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LikelihoodIn = data + case "likelihoodNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihoodNotIn")) + data, err := ec.unmarshalORiskRiskLikelihood2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihoodᚄ(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) + it.LikelihoodNotIn = data + case "likelihoodIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihoodIsNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.LikelihoodIsNil = data + case "likelihoodNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihoodNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDContainsFold = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + it.LikelihoodNotNil = data + case "mitigation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigation")) 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")) + it.Mitigation = data + case "mitigationNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationNEQ")) 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")) + it.MitigationNEQ = data + case "mitigationIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationIn")) 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")) + it.MitigationIn = data + case "mitigationNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + it.MitigationNotIn = data + case "mitigationGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + it.MitigationGT = data + case "mitigationGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + it.MitigationGTE = data + case "mitigationLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + it.MitigationLT = data + case "mitigationLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + it.MitigationLTE = data + case "mitigationContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationContains")) 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")) + it.MitigationContains = data + case "mitigationHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationHasPrefix")) 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")) + it.MitigationHasPrefix = data + case "mitigationHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationHasSuffix")) 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")) + it.MitigationHasSuffix = data + case "mitigationIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MitigationIsNil = data + case "mitigationNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MitigationNotNil = data + case "mitigationEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationEqualFold")) 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")) + it.MitigationEqualFold = data + case "mitigationContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigationContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - case "kind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + it.MitigationContainsFold = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Kind = data - case "kindNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNEQ")) + it.Satisfies = data + case "satisfiesNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindNEQ = data - case "kindIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIn")) + it.SatisfiesNEQ = data + case "satisfiesIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.KindIn = data - case "kindNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotIn")) + it.SatisfiesIn = data + case "satisfiesNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.KindNotIn = data - case "kindGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGT")) + it.SatisfiesNotIn = data + case "satisfiesGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindGT = data - case "kindGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindGTE")) + it.SatisfiesGT = data + case "satisfiesGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindGTE = data - case "kindLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLT")) + it.SatisfiesGTE = data + case "satisfiesLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindLT = data - case "kindLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindLTE")) + it.SatisfiesLT = data + case "satisfiesLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindLTE = data - case "kindContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContains")) + it.SatisfiesLTE = data + case "satisfiesContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindContains = data - case "kindHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasPrefix")) + it.SatisfiesContains = data + case "satisfiesHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindHasPrefix = data - case "kindHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindHasSuffix")) + it.SatisfiesHasPrefix = data + case "satisfiesHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindHasSuffix = data - case "kindIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindIsNil")) + it.SatisfiesHasSuffix = data + case "satisfiesIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.KindIsNil = data - case "kindNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindNotNil")) + it.SatisfiesIsNil = data + case "satisfiesNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.KindNotNil = data - case "kindEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindEqualFold")) + it.SatisfiesNotNil = data + case "satisfiesEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindEqualFold = data - case "kindContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kindContainsFold")) + it.SatisfiesEqualFold = data + case "satisfiesContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.KindContainsFold = 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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasOwnerWith = data - case "hasSecrets": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSecrets")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasSecrets = data - case "hasSecretsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSecretsWith")) - data, err := ec.unmarshalOHushWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasSecretsWith = data - case "hasOauth2tokens": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOauth2tokens")) + it.SatisfiesContainsFold = data + case "hasControl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControl")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasOauth2tokens = data - case "hasOauth2tokensWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOauth2tokensWith")) - data, err := ec.unmarshalOOhAuthTooTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInputᚄ(ctx, v) + it.HasControl = data + case "hasControlWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlWith")) + data, err := ec.unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasOauth2tokensWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + it.HasControlWith = data + case "hasProcedure": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProcedure")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + it.HasProcedure = data + case "hasProcedureWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProcedureWith")) + data, err := ec.unmarshalOProcedureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasEventsWith = data - case "hasWebhooks": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWebhooks")) + it.HasProcedureWith = data + case "hasActionplans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasActionplans")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasWebhooks = data - case "hasWebhooksWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWebhooksWith")) - data, err := ec.unmarshalOWebhookWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInputᚄ(ctx, v) + it.HasActionplans = data + case "hasActionplansWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasActionplansWith")) + data, err := ec.unmarshalOActionPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasWebhooksWith = data + it.HasActionplansWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputInviteWhereInput(ctx context.Context, obj interface{}) (generated.InviteWhereInput, error) { - var it generated.InviteWhereInput +func (ec *executionContext) unmarshalInputStandardHistoryWhereInput(ctx context.Context, obj interface{}) (generated.StandardHistoryWhereInput, error) { + var it generated.StandardHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "expires", "expiresNEQ", "expiresIn", "expiresNotIn", "expiresGT", "expiresGTE", "expiresLT", "expiresLTE", "expiresIsNil", "expiresNotNil", "recipient", "recipientNEQ", "recipientIn", "recipientNotIn", "recipientGT", "recipientGTE", "recipientLT", "recipientLTE", "recipientContains", "recipientHasPrefix", "recipientHasSuffix", "recipientEqualFold", "recipientContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "role", "roleNEQ", "roleIn", "roleNotIn", "sendAttempts", "sendAttemptsNEQ", "sendAttemptsIn", "sendAttemptsNotIn", "sendAttemptsGT", "sendAttemptsGTE", "sendAttemptsLT", "sendAttemptsLTE", "requestorID", "requestorIDNEQ", "requestorIDIn", "requestorIDNotIn", "requestorIDGT", "requestorIDGTE", "requestorIDLT", "requestorIDLTE", "requestorIDContains", "requestorIDHasPrefix", "requestorIDHasSuffix", "requestorIDIsNil", "requestorIDNotNil", "requestorIDEqualFold", "requestorIDContainsFold", "hasOwner", "hasOwnerWith", "hasEvents", "hasEventsWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "family", "familyNEQ", "familyIn", "familyNotIn", "familyGT", "familyGTE", "familyLT", "familyLTE", "familyContains", "familyHasPrefix", "familyHasSuffix", "familyIsNil", "familyNotNil", "familyEqualFold", "familyContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "standardType", "standardTypeNEQ", "standardTypeIn", "standardTypeNotIn", "standardTypeGT", "standardTypeGTE", "standardTypeLT", "standardTypeLTE", "standardTypeContains", "standardTypeHasPrefix", "standardTypeHasSuffix", "standardTypeIsNil", "standardTypeNotNil", "standardTypeEqualFold", "standardTypeContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionIsNil", "versionNotNil", "versionEqualFold", "versionContainsFold", "purposeAndScope", "purposeAndScopeNEQ", "purposeAndScopeIn", "purposeAndScopeNotIn", "purposeAndScopeGT", "purposeAndScopeGTE", "purposeAndScopeLT", "purposeAndScopeLTE", "purposeAndScopeContains", "purposeAndScopeHasPrefix", "purposeAndScopeHasSuffix", "purposeAndScopeIsNil", "purposeAndScopeNotNil", "purposeAndScopeEqualFold", "purposeAndScopeContainsFold", "background", "backgroundNEQ", "backgroundIn", "backgroundNotIn", "backgroundGT", "backgroundGTE", "backgroundLT", "backgroundLTE", "backgroundContains", "backgroundHasPrefix", "backgroundHasSuffix", "backgroundIsNil", "backgroundNotNil", "backgroundEqualFold", "backgroundContainsFold", "satisfies", "satisfiesNEQ", "satisfiesIn", "satisfiesNotIn", "satisfiesGT", "satisfiesGTE", "satisfiesLT", "satisfiesLTE", "satisfiesContains", "satisfiesHasPrefix", "satisfiesHasSuffix", "satisfiesIsNil", "satisfiesNotNil", "satisfiesEqualFold", "satisfiesContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -186979,21 +277761,21 @@ func (ec *executionContext) unmarshalInputInviteWhereInput(ctx context.Context, switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, v) + data, err := ec.unmarshalOStandardHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOInviteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOStandardHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOInviteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOStandardHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -187068,6 +277850,195 @@ func (ec *executionContext) unmarshalInputInviteWhereInput(ctx context.Context, 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 "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeNotIn = 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 "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefLTE = 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.unmarshalOStandardHistoryOpType2ᚖ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.unmarshalOStandardHistoryOpType2ᚖ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.unmarshalOStandardHistoryOpType2ᚕ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.unmarshalOStandardHistoryOpType2ᚕ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) @@ -187593,531 +278564,951 @@ func (ec *executionContext) unmarshalInputInviteWhereInput(ctx context.Context, return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + 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.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDNEQ = data - case "ownerIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.OwnerIDIn = data - case "ownerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContains = data - case "ownerIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.OwnerIDNotNil = data - case "ownerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDEqualFold = data - case "ownerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDContainsFold = data - case "expires": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expires")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.Expires = data - case "expiresNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.ExpiresNEQ = data - case "expiresIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.DescriptionNotIn = data + case "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresIn = data - case "expiresNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresNotIn = data - case "expiresGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresGT = data - case "expiresGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresGTE = data - case "expiresLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresLT = data - case "expiresLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.ExpiresLTE = data - case "expiresIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresIsNil")) + 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.ExpiresIsNil = data - case "expiresNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresNotNil")) + 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.ExpiresNotNil = data - case "recipient": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipient")) + 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.Recipient = data - case "recipientNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientNEQ")) + 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.RecipientNEQ = data - case "recipientIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientIn")) + it.DescriptionContainsFold = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Family = data + case "familyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FamilyNEQ = data + case "familyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RecipientIn = data - case "recipientNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientNotIn")) + it.FamilyIn = data + case "familyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RecipientNotIn = data - case "recipientGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientGT")) + it.FamilyNotIn = data + case "familyGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RecipientGT = data - case "recipientGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientGTE")) + it.FamilyGT = data + case "familyGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RecipientGTE = data - case "recipientLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientLT")) + it.FamilyGTE = data + case "familyLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RecipientLT = data - case "recipientLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientLTE")) + it.FamilyLT = data + case "familyLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RecipientLTE = data - case "recipientContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientContains")) + it.FamilyLTE = data + case "familyContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RecipientContains = data - case "recipientHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientHasPrefix")) + it.FamilyContains = data + case "familyHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RecipientHasPrefix = data - case "recipientHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientHasSuffix")) + it.FamilyHasPrefix = data + case "familyHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RecipientHasSuffix = data - case "recipientEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientEqualFold")) + it.FamilyHasSuffix = data + case "familyIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FamilyIsNil = data + case "familyNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FamilyNotNil = data + case "familyEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RecipientEqualFold = data - case "recipientContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipientContainsFold")) + it.FamilyEqualFold = data + case "familyContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RecipientContainsFold = data + it.FamilyContainsFold = data case "status": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOInviteInviteStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } it.Status = data case "statusNEQ": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) - data, err := ec.unmarshalOInviteInviteStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, v) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } it.StatusNEQ = data case "statusIn": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) - data, err := ec.unmarshalOInviteInviteStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatusᚄ(ctx, v) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } it.StatusIn = data case "statusNotIn": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) - data, err := ec.unmarshalOInviteInviteStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatusᚄ(ctx, v) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } it.StatusNotIn = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOInviteRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Role = data - case "roleNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) - data, err := ec.unmarshalOInviteRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RoleNEQ = data - case "roleIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) - data, err := ec.unmarshalOInviteRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RoleIn = data - case "roleNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) - data, err := ec.unmarshalOInviteRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RoleNotIn = data - case "sendAttempts": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttempts")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SendAttempts = data - case "sendAttemptsNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsNEQ")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SendAttemptsNEQ = data - case "sendAttemptsIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsIn")) - data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SendAttemptsIn = data - case "sendAttemptsNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsNotIn")) - data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.SendAttemptsNotIn = data - case "sendAttemptsGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsGT")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StatusContainsFold = data + case "standardType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StandardType = data + case "standardTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeNEQ = data + case "standardTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeIn = data + case "standardTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeNotIn = data + case "standardTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeGT = data + case "standardTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeGTE = data + case "standardTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeLT = data + case "standardTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeLTE = data + case "standardTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeContains = data + case "standardTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeHasPrefix = data + case "standardTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeHasSuffix = data + case "standardTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeIsNil = data + case "standardTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeNotNil = data + case "standardTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeEqualFold = data + case "standardTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.StandardTypeContainsFold = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasSuffix = data + case "versionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.VersionIsNil = data + case "versionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.VersionNotNil = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContainsFold = data + case "purposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScope")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScope = data + case "purposeAndScopeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeNEQ = data + case "purposeAndScopeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeIn = data + case "purposeAndScopeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeNotIn = data + case "purposeAndScopeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeGT = data + case "purposeAndScopeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeGTE = data + case "purposeAndScopeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeLT = data + case "purposeAndScopeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeLTE = data + case "purposeAndScopeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeContains = data + case "purposeAndScopeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeHasPrefix = data + case "purposeAndScopeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeHasSuffix = data + case "purposeAndScopeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeIsNil = data + case "purposeAndScopeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeNotNil = data + case "purposeAndScopeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeEqualFold = data + case "purposeAndScopeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PurposeAndScopeContainsFold = data + case "background": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("background")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Background = data + case "backgroundNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundNEQ = data + case "backgroundIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BackgroundIn = data + case "backgroundNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BackgroundNotIn = data + case "backgroundGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.BackgroundGT = data + case "backgroundGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SendAttemptsGT = data - case "sendAttemptsGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsGTE")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.BackgroundGTE = data + case "backgroundLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SendAttemptsGTE = data - case "sendAttemptsLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsLT")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.BackgroundLT = data + case "backgroundLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SendAttemptsLT = data - case "sendAttemptsLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttemptsLTE")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.BackgroundLTE = data + case "backgroundContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SendAttemptsLTE = data - case "requestorID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorID")) + it.BackgroundContains = data + case "backgroundHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorID = data - case "requestorIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDNEQ")) + it.BackgroundHasPrefix = data + case "backgroundHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorIDNEQ = data - case "requestorIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.BackgroundHasSuffix = data + case "backgroundIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.RequestorIDIn = data - case "requestorIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.BackgroundIsNil = data + case "backgroundNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.RequestorIDNotIn = data - case "requestorIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDGT")) + it.BackgroundNotNil = data + case "backgroundEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorIDGT = data - case "requestorIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDGTE")) + it.BackgroundEqualFold = data + case "backgroundContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorIDGTE = data - case "requestorIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDLT")) + it.BackgroundContainsFold = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorIDLT = data - case "requestorIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDLTE")) + it.Satisfies = data + case "satisfiesNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorIDLTE = data - case "requestorIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDContains")) + it.SatisfiesNEQ = data + case "satisfiesIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesIn = data + case "satisfiesNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SatisfiesNotIn = data + case "satisfiesGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorIDContains = data - case "requestorIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDHasPrefix")) + it.SatisfiesGT = data + case "satisfiesGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorIDHasPrefix = data - case "requestorIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDHasSuffix")) + it.SatisfiesGTE = data + case "satisfiesLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorIDHasSuffix = data - case "requestorIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SatisfiesLT = data + case "satisfiesLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorIDIsNil = data - case "requestorIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SatisfiesLTE = data + case "satisfiesContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorIDNotNil = data - case "requestorIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDEqualFold")) + it.SatisfiesContains = data + case "satisfiesHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorIDEqualFold = data - case "requestorIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requestorIDContainsFold")) + it.SatisfiesHasPrefix = data + case "satisfiesHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RequestorIDContainsFold = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.SatisfiesHasSuffix = data + case "satisfiesIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIsNil")) + data, err := ec.unmarshalOBoolean2bool(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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.SatisfiesIsNil = data + case "satisfiesNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasOwnerWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.SatisfiesNotNil = data + case "satisfiesEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + it.SatisfiesEqualFold = data + case "satisfiesContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEventsWith = data + it.SatisfiesContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputNoteHistoryWhereInput(ctx context.Context, obj interface{}) (generated.NoteHistoryWhereInput, error) { - var it generated.NoteHistoryWhereInput +func (ec *executionContext) unmarshalInputStandardWhereInput(ctx context.Context, obj interface{}) (generated.StandardWhereInput, error) { + var it generated.StandardWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "text", "textNEQ", "textIn", "textNotIn", "textGT", "textGTE", "textLT", "textLTE", "textContains", "textHasPrefix", "textHasSuffix", "textEqualFold", "textContainsFold"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "family", "familyNEQ", "familyIn", "familyNotIn", "familyGT", "familyGTE", "familyLT", "familyLTE", "familyContains", "familyHasPrefix", "familyHasSuffix", "familyIsNil", "familyNotNil", "familyEqualFold", "familyContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "standardType", "standardTypeNEQ", "standardTypeIn", "standardTypeNotIn", "standardTypeGT", "standardTypeGTE", "standardTypeLT", "standardTypeLTE", "standardTypeContains", "standardTypeHasPrefix", "standardTypeHasSuffix", "standardTypeIsNil", "standardTypeNotNil", "standardTypeEqualFold", "standardTypeContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionIsNil", "versionNotNil", "versionEqualFold", "versionContainsFold", "purposeAndScope", "purposeAndScopeNEQ", "purposeAndScopeIn", "purposeAndScopeNotIn", "purposeAndScopeGT", "purposeAndScopeGTE", "purposeAndScopeLT", "purposeAndScopeLTE", "purposeAndScopeContains", "purposeAndScopeHasPrefix", "purposeAndScopeHasSuffix", "purposeAndScopeIsNil", "purposeAndScopeNotNil", "purposeAndScopeEqualFold", "purposeAndScopeContainsFold", "background", "backgroundNEQ", "backgroundIn", "backgroundNotIn", "backgroundGT", "backgroundGTE", "backgroundLT", "backgroundLTE", "backgroundContains", "backgroundHasPrefix", "backgroundHasSuffix", "backgroundIsNil", "backgroundNotNil", "backgroundEqualFold", "backgroundContainsFold", "satisfies", "satisfiesNEQ", "satisfiesIn", "satisfiesNotIn", "satisfiesGT", "satisfiesGTE", "satisfiesLT", "satisfiesLTE", "satisfiesContains", "satisfiesHasPrefix", "satisfiesHasSuffix", "satisfiesIsNil", "satisfiesNotNil", "satisfiesEqualFold", "satisfiesContainsFold", "hasControlobjectives", "hasControlobjectivesWith", "hasControls", "hasControlsWith", "hasProcedures", "hasProceduresWith", "hasActionplans", "hasActionplansWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -188126,21 +279517,21 @@ func (ec *executionContext) unmarshalInputNoteHistoryWhereInput(ctx context.Cont switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalONoteHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalONoteHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOStandardWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalONoteHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOStandardWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -188215,195 +279606,6 @@ func (ec *executionContext) unmarshalInputNoteHistoryWhereInput(ctx context.Cont 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 "historyTimeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNEQ = data - case "historyTimeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeIn = data - case "historyTimeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNotIn = 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 "refGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGT = data - case "refGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGTE = data - case "refLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLT = data - case "refLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLTE = 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.unmarshalONoteHistoryOpType2ᚖ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.unmarshalONoteHistoryOpType2ᚖ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.unmarshalONoteHistoryOpType2ᚕ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.unmarshalONoteHistoryOpType2ᚕ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) @@ -188929,1076 +280131,1007 @@ func (ec *executionContext) unmarshalInputNoteHistoryWhereInput(ctx context.Cont return it, err } it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) 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")) + 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.OwnerIDNEQ = data - case "ownerIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + 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.OwnerIDIn = data - case "ownerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + 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.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContains = data - case "ownerIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + 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.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + 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.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")) + 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.OwnerIDEqualFold = data - case "ownerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + 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.OwnerIDContainsFold = data - case "text": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + 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.Text = data - case "textNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textNEQ")) + 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.TextNEQ = data - case "textIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textIn")) + 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.TextIn = data - case "textNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textNotIn")) + 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.TextNotIn = data - case "textGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TextGT = data - case "textGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textGTE")) + it.DescriptionNotIn = data + case "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TextGTE = data - case "textLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textLT")) + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TextLT = data - case "textLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textLTE")) + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TextLTE = data - case "textContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textContains")) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TextContains = data - case "textHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textHasPrefix")) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TextHasPrefix = data - case "textHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textHasSuffix")) + 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.TextHasSuffix = data - case "textEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textEqualFold")) + 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.TextEqualFold = data - case "textContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.TextContainsFold = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputNoteWhereInput(ctx context.Context, obj interface{}) (generated.NoteWhereInput, error) { - var it generated.NoteWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "text", "textNEQ", "textIn", "textNotIn", "textGT", "textGTE", "textLT", "textLTE", "textContains", "textHasPrefix", "textHasSuffix", "textEqualFold", "textContainsFold", "hasOwner", "hasOwnerWith", "hasEntity", "hasEntityWith"} - 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.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + 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.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInputᚄ(ctx, v) + 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.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInputᚄ(ctx, v) + 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.Or = data - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DescriptionContainsFold = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + data, err := ec.unmarshalOString2ᚖ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) + it.Family = data + case "familyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNEQ")) + data, err := ec.unmarshalOString2ᚖ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) + it.FamilyNEQ = data + case "familyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIn")) + data, err := ec.unmarshalOString2ᚕ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) + it.FamilyIn = data + case "familyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.FamilyNotIn = data + case "familyGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.FamilyGT = data + case "familyGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.FamilyGTE = data + case "familyLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.FamilyLT = data + case "familyLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.FamilyLTE = data + case "familyContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContains")) + data, err := ec.unmarshalOString2ᚖ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) + it.FamilyContains = data + case "familyHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasPrefix")) + data, err := ec.unmarshalOString2ᚖ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) + it.FamilyHasPrefix = data + case "familyHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FamilyHasSuffix = data + case "familyIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.FamilyIsNil = data + case "familyNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.FamilyNotNil = data + case "familyEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FamilyEqualFold = data + case "familyContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.FamilyContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(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) + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(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) + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtNotNil = data - case "createdBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + it.StatusContainsFold = data + case "standardType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardType")) 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")) + it.StandardType = data + case "standardTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeNEQ")) 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")) + it.StandardTypeNEQ = data + case "standardTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeIn")) 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")) + it.StandardTypeIn = data + case "standardTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + it.StandardTypeNotIn = data + case "standardTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + it.StandardTypeGT = data + case "standardTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + it.StandardTypeGTE = data + case "standardTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + it.StandardTypeLT = data + case "standardTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + it.StandardTypeLTE = data + case "standardTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeContains")) 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")) + it.StandardTypeContains = data + case "standardTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeHasPrefix")) 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")) + it.StandardTypeHasPrefix = data + case "standardTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeHasSuffix")) 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")) + it.StandardTypeHasSuffix = data + case "standardTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + it.StandardTypeIsNil = data + case "standardTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByNotNil = data - case "createdByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + it.StandardTypeNotNil = data + case "standardTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeEqualFold")) 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")) + it.StandardTypeEqualFold = data + case "standardTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardTypeContainsFold")) 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")) + it.StandardTypeContainsFold = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) 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")) + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) 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")) + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) 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")) + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) 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")) + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) 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")) + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) 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")) + it.VersionHasSuffix = data + case "versionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + it.VersionIsNil = data + case "versionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByNotNil = data - case "updatedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + it.VersionNotNil = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) 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")) + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.VersionContainsFold = data + case "purposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScope")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.PurposeAndScope = data + case "purposeAndScopeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.PurposeAndScopeNEQ = data + case "purposeAndScopeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.PurposeAndScopeIn = data + case "purposeAndScopeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.PurposeAndScopeNotIn = data + case "purposeAndScopeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.PurposeAndScopeGT = data + case "purposeAndScopeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + it.PurposeAndScopeGTE = data + case "purposeAndScopeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + it.PurposeAndScopeLT = data + case "purposeAndScopeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.PurposeAndScopeLTE = data + case "purposeAndScopeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.PurposeAndScopeContains = data + case "purposeAndScopeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + it.PurposeAndScopeHasPrefix = data + case "purposeAndScopeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.PurposeAndScopeHasSuffix = data + case "purposeAndScopeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.PurposeAndScopeIsNil = data + case "purposeAndScopeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + it.PurposeAndScopeNotNil = data + case "purposeAndScopeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + it.PurposeAndScopeEqualFold = data + case "purposeAndScopeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScopeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + it.PurposeAndScopeContainsFold = data + case "background": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("background")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + it.Background = data + case "backgroundNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.BackgroundNEQ = data + case "backgroundIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.BackgroundIn = data + case "backgroundNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + it.BackgroundNotIn = data + case "backgroundGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + it.BackgroundGT = data + case "backgroundGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.BackgroundGTE = data + case "backgroundLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundLT")) + 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.unmarshalOID2ᚖstring(ctx, v) + it.BackgroundLT = data + case "backgroundLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundLTE")) + 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.unmarshalOID2ᚕstringᚄ(ctx, v) + it.BackgroundLTE = data + case "backgroundContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundContains")) + 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.unmarshalOID2ᚕstringᚄ(ctx, v) + it.BackgroundContains = data + case "backgroundHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.BackgroundHasPrefix = data + case "backgroundHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.BackgroundHasSuffix = data + case "backgroundIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.BackgroundIsNil = data + case "backgroundNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.BackgroundNotNil = data + case "backgroundEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.BackgroundEqualFold = data + case "backgroundContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("backgroundContainsFold")) + 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.unmarshalOID2ᚖstring(ctx, v) + it.BackgroundContainsFold = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) + 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.unmarshalOID2ᚖstring(ctx, v) + it.Satisfies = data + case "satisfiesNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNEQ")) + 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) + it.SatisfiesNEQ = data + case "satisfiesIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SatisfiesIn = data + case "satisfiesNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(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) + it.SatisfiesNotIn = data + case "satisfiesGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGT")) + 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.unmarshalOID2ᚖstring(ctx, v) + it.SatisfiesGT = data + case "satisfiesGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDContainsFold = data - case "text": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + it.SatisfiesGTE = data + case "satisfiesLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Text = data - case "textNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textNEQ")) + it.SatisfiesLT = data + case "satisfiesLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TextNEQ = data - case "textIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.SatisfiesLTE = data + case "satisfiesContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TextIn = data - case "textNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.SatisfiesContains = data + case "satisfiesHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TextNotIn = data - case "textGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textGT")) + it.SatisfiesHasPrefix = data + case "satisfiesHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TextGT = data - case "textGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.SatisfiesHasSuffix = data + case "satisfiesIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TextGTE = data - case "textLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.SatisfiesIsNil = data + case "satisfiesNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TextLT = data - case "textLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textLTE")) + it.SatisfiesNotNil = data + case "satisfiesEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TextLTE = data - case "textContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textContains")) + it.SatisfiesEqualFold = data + case "satisfiesContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfiesContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TextContains = data - case "textHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.SatisfiesContainsFold = data + case "hasControlobjectives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlobjectives")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.TextHasPrefix = data - case "textHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasControlobjectives = data + case "hasControlobjectivesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlobjectivesWith")) + data, err := ec.unmarshalOControlObjectiveWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.TextHasSuffix = data - case "textEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasControlobjectivesWith = data + case "hasControls": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControls")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.TextEqualFold = data - case "textContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("textContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasControls = data + case "hasControlsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlsWith")) + data, err := ec.unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.TextContainsFold = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) + it.HasControlsWith = data + case "hasProcedures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProcedures")) 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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.HasProcedures = data + case "hasProceduresWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProceduresWith")) + data, err := ec.unmarshalOProcedureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasOwnerWith = data - case "hasEntity": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntity")) + it.HasProceduresWith = data + case "hasActionplans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasActionplans")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasEntity = data - case "hasEntityWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntityWith")) - data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + it.HasActionplans = data + case "hasActionplansWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasActionplansWith")) + data, err := ec.unmarshalOActionPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasEntityWith = data + it.HasActionplansWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputOauthProviderHistoryWhereInput(ctx context.Context, obj interface{}) (generated.OauthProviderHistoryWhereInput, error) { - var it generated.OauthProviderHistoryWhereInput +func (ec *executionContext) unmarshalInputSubcontrolHistoryWhereInput(ctx context.Context, obj interface{}) (generated.SubcontrolHistoryWhereInput, error) { + var it generated.SubcontrolHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "clientID", "clientIDNEQ", "clientIDIn", "clientIDNotIn", "clientIDGT", "clientIDGTE", "clientIDLT", "clientIDLTE", "clientIDContains", "clientIDHasPrefix", "clientIDHasSuffix", "clientIDEqualFold", "clientIDContainsFold", "clientSecret", "clientSecretNEQ", "clientSecretIn", "clientSecretNotIn", "clientSecretGT", "clientSecretGTE", "clientSecretLT", "clientSecretLTE", "clientSecretContains", "clientSecretHasPrefix", "clientSecretHasSuffix", "clientSecretEqualFold", "clientSecretContainsFold", "redirectURL", "redirectURLNEQ", "redirectURLIn", "redirectURLNotIn", "redirectURLGT", "redirectURLGTE", "redirectURLLT", "redirectURLLTE", "redirectURLContains", "redirectURLHasPrefix", "redirectURLHasSuffix", "redirectURLEqualFold", "redirectURLContainsFold", "scopes", "scopesNEQ", "scopesIn", "scopesNotIn", "scopesGT", "scopesGTE", "scopesLT", "scopesLTE", "scopesContains", "scopesHasPrefix", "scopesHasSuffix", "scopesEqualFold", "scopesContainsFold", "authURL", "authURLNEQ", "authURLIn", "authURLNotIn", "authURLGT", "authURLGTE", "authURLLT", "authURLLTE", "authURLContains", "authURLHasPrefix", "authURLHasSuffix", "authURLEqualFold", "authURLContainsFold", "tokenURL", "tokenURLNEQ", "tokenURLIn", "tokenURLNotIn", "tokenURLGT", "tokenURLGTE", "tokenURLLT", "tokenURLLTE", "tokenURLContains", "tokenURLHasPrefix", "tokenURLHasSuffix", "tokenURLEqualFold", "tokenURLContainsFold", "authStyle", "authStyleNEQ", "authStyleIn", "authStyleNotIn", "authStyleGT", "authStyleGTE", "authStyleLT", "authStyleLTE", "infoURL", "infoURLNEQ", "infoURLIn", "infoURLNotIn", "infoURLGT", "infoURLGTE", "infoURLLT", "infoURLLTE", "infoURLContains", "infoURLHasPrefix", "infoURLHasSuffix", "infoURLEqualFold", "infoURLContainsFold"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "subcontrolType", "subcontrolTypeNEQ", "subcontrolTypeIn", "subcontrolTypeNotIn", "subcontrolTypeGT", "subcontrolTypeGTE", "subcontrolTypeLT", "subcontrolTypeLTE", "subcontrolTypeContains", "subcontrolTypeHasPrefix", "subcontrolTypeHasSuffix", "subcontrolTypeIsNil", "subcontrolTypeNotNil", "subcontrolTypeEqualFold", "subcontrolTypeContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionIsNil", "versionNotNil", "versionEqualFold", "versionContainsFold", "subcontrolNumber", "subcontrolNumberNEQ", "subcontrolNumberIn", "subcontrolNumberNotIn", "subcontrolNumberGT", "subcontrolNumberGTE", "subcontrolNumberLT", "subcontrolNumberLTE", "subcontrolNumberContains", "subcontrolNumberHasPrefix", "subcontrolNumberHasSuffix", "subcontrolNumberIsNil", "subcontrolNumberNotNil", "subcontrolNumberEqualFold", "subcontrolNumberContainsFold", "family", "familyNEQ", "familyIn", "familyNotIn", "familyGT", "familyGTE", "familyLT", "familyLTE", "familyContains", "familyHasPrefix", "familyHasSuffix", "familyIsNil", "familyNotNil", "familyEqualFold", "familyContainsFold", "class", "classNEQ", "classIn", "classNotIn", "classGT", "classGTE", "classLT", "classLTE", "classContains", "classHasPrefix", "classHasSuffix", "classIsNil", "classNotNil", "classEqualFold", "classContainsFold", "source", "sourceNEQ", "sourceIn", "sourceNotIn", "sourceGT", "sourceGTE", "sourceLT", "sourceLTE", "sourceContains", "sourceHasPrefix", "sourceHasSuffix", "sourceIsNil", "sourceNotNil", "sourceEqualFold", "sourceContainsFold", "mappedFrameworks", "mappedFrameworksNEQ", "mappedFrameworksIn", "mappedFrameworksNotIn", "mappedFrameworksGT", "mappedFrameworksGTE", "mappedFrameworksLT", "mappedFrameworksLTE", "mappedFrameworksContains", "mappedFrameworksHasPrefix", "mappedFrameworksHasSuffix", "mappedFrameworksIsNil", "mappedFrameworksNotNil", "mappedFrameworksEqualFold", "mappedFrameworksContainsFold", "implementationEvidence", "implementationEvidenceNEQ", "implementationEvidenceIn", "implementationEvidenceNotIn", "implementationEvidenceGT", "implementationEvidenceGTE", "implementationEvidenceLT", "implementationEvidenceLTE", "implementationEvidenceContains", "implementationEvidenceHasPrefix", "implementationEvidenceHasSuffix", "implementationEvidenceIsNil", "implementationEvidenceNotNil", "implementationEvidenceEqualFold", "implementationEvidenceContainsFold", "implementationStatus", "implementationStatusNEQ", "implementationStatusIn", "implementationStatusNotIn", "implementationStatusGT", "implementationStatusGTE", "implementationStatusLT", "implementationStatusLTE", "implementationStatusContains", "implementationStatusHasPrefix", "implementationStatusHasSuffix", "implementationStatusIsNil", "implementationStatusNotNil", "implementationStatusEqualFold", "implementationStatusContainsFold", "implementationDate", "implementationDateNEQ", "implementationDateIn", "implementationDateNotIn", "implementationDateGT", "implementationDateGTE", "implementationDateLT", "implementationDateLTE", "implementationDateIsNil", "implementationDateNotNil", "implementationVerification", "implementationVerificationNEQ", "implementationVerificationIn", "implementationVerificationNotIn", "implementationVerificationGT", "implementationVerificationGTE", "implementationVerificationLT", "implementationVerificationLTE", "implementationVerificationContains", "implementationVerificationHasPrefix", "implementationVerificationHasSuffix", "implementationVerificationIsNil", "implementationVerificationNotNil", "implementationVerificationEqualFold", "implementationVerificationContainsFold", "implementationVerificationDate", "implementationVerificationDateNEQ", "implementationVerificationDateIn", "implementationVerificationDateNotIn", "implementationVerificationDateGT", "implementationVerificationDateGTE", "implementationVerificationDateLT", "implementationVerificationDateLTE", "implementationVerificationDateIsNil", "implementationVerificationDateNotNil"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -190007,21 +281140,21 @@ func (ec *executionContext) unmarshalInputOauthProviderHistoryWhereInput(ctx con switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOOauthProviderHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOSubcontrolHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOOauthProviderHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOSubcontrolHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOOauthProviderHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOSubcontrolHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -190259,28 +281392,28 @@ func (ec *executionContext) unmarshalInputOauthProviderHistoryWhereInput(ctx con it.RefContainsFold = data case "operation": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOOauthProviderHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOSubcontrolHistoryOpType2ᚖ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.unmarshalOOauthProviderHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOSubcontrolHistoryOpType2ᚖ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.unmarshalOOauthProviderHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOSubcontrolHistoryOpType2ᚕ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.unmarshalOOauthProviderHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOSubcontrolHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } @@ -190810,111 +281943,6 @@ func (ec *executionContext) unmarshalInputOauthProviderHistoryWhereInput(ctx con return it, err } it.DeletedByContainsFold = 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 "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OwnerIDLTE = 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) @@ -191006,4133 +282034,3589 @@ func (ec *executionContext) unmarshalInputOauthProviderHistoryWhereInput(ctx con return it, err } it.NameContainsFold = data - case "clientID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientID = data - case "clientIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientIDNEQ = data - case "clientIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ClientIDIn = data - case "clientIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ClientIDNotIn = data - case "clientIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientIDGT = data - case "clientIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientIDGTE = data - case "clientIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientIDLT = data - case "clientIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientIDLTE = data - case "clientIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientIDContains = data - case "clientIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientIDHasPrefix = data - case "clientIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientIDHasSuffix = data - case "clientIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientIDEqualFold = data - case "clientIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientIDContainsFold = data - case "clientSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientSecret = data - case "clientSecretNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientSecretNEQ = data - case "clientSecretIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ClientSecretIn = data - case "clientSecretNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ClientSecretNotIn = data - case "clientSecretGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientSecretGT = data - case "clientSecretGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientSecretGTE = data - case "clientSecretLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientSecretLT = data - case "clientSecretLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientSecretLTE = data - case "clientSecretContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientSecretContains = data - case "clientSecretHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientSecretHasPrefix = data - case "clientSecretHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientSecretHasSuffix = data - case "clientSecretEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientSecretEqualFold = data - case "clientSecretContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientSecretContainsFold = data - case "redirectURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RedirectURL = data - case "redirectURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RedirectURLNEQ = data - case "redirectURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.RedirectURLIn = data - case "redirectURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.RedirectURLNotIn = data - case "redirectURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RedirectURLGT = data - case "redirectURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RedirectURLGTE = data - case "redirectURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RedirectURLLT = data - case "redirectURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RedirectURLLTE = data - case "redirectURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RedirectURLContains = data - case "redirectURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RedirectURLHasPrefix = data - case "redirectURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RedirectURLHasSuffix = data - case "redirectURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RedirectURLEqualFold = data - case "redirectURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RedirectURLContainsFold = data - case "scopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Scopes = data - case "scopesNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ScopesNEQ = data - case "scopesIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ScopesIn = data - case "scopesNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ScopesNotIn = data - case "scopesGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ScopesGT = data - case "scopesGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ScopesGTE = data - case "scopesLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ScopesLT = data - case "scopesLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ScopesLTE = data - case "scopesContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ScopesContains = data - case "scopesHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ScopesHasPrefix = data - case "scopesHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ScopesHasSuffix = data - case "scopesEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ScopesEqualFold = data - case "scopesContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ScopesContainsFold = data - case "authURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AuthURL = data - case "authURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AuthURLNEQ = data - case "authURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.AuthURLIn = data - case "authURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.AuthURLNotIn = data - case "authURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AuthURLGT = data - case "authURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AuthURLGTE = data - case "authURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AuthURLLT = data - case "authURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AuthURLLTE = data - case "authURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AuthURLContains = data - case "authURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AuthURLHasPrefix = data - case "authURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AuthURLHasSuffix = data - case "authURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AuthURLEqualFold = data - case "authURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AuthURLContainsFold = data - case "tokenURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TokenURL = data - case "tokenURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TokenURLNEQ = data - case "tokenURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.TokenURLIn = data - case "tokenURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.TokenURLNotIn = data - case "tokenURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TokenURLGT = data - case "tokenURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TokenURLGTE = data - case "tokenURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TokenURLLT = data - case "tokenURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TokenURLLTE = data - case "tokenURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TokenURLContains = data - case "tokenURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TokenURLHasPrefix = data - case "tokenURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TokenURLHasSuffix = data - case "tokenURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TokenURLEqualFold = data - case "tokenURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TokenURLContainsFold = data - case "authStyle": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyle")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) - if err != nil { - return it, err - } - it.AuthStyle = data - case "authStyleNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleNEQ")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) - if err != nil { - return it, err - } - it.AuthStyleNEQ = data - case "authStyleIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleIn")) - data, err := ec.unmarshalOUint2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8ᚄ(ctx, v) - if err != nil { - return it, err - } - it.AuthStyleIn = data - case "authStyleNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleNotIn")) - data, err := ec.unmarshalOUint2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8ᚄ(ctx, v) - if err != nil { - return it, err - } - it.AuthStyleNotIn = data - case "authStyleGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleGT")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) - if err != nil { - return it, err - } - it.AuthStyleGT = data - case "authStyleGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleGTE")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) - if err != nil { - return it, err - } - it.AuthStyleGTE = data - case "authStyleLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleLT")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) - if err != nil { - return it, err - } - it.AuthStyleLT = data - case "authStyleLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleLTE")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) - if err != nil { - return it, err - } - it.AuthStyleLTE = data - case "infoURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.InfoURL = data - case "infoURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.InfoURLNEQ = data - case "infoURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.InfoURLIn = data - case "infoURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.InfoURLNotIn = data - case "infoURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.InfoURLGT = data - case "infoURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.InfoURLGTE = data - case "infoURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.InfoURLLT = data - case "infoURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.InfoURLLTE = data - case "infoURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.InfoURLContains = data - case "infoURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.InfoURLHasPrefix = data - case "infoURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.InfoURLHasSuffix = data - case "infoURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.InfoURLEqualFold = data - case "infoURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.InfoURLContainsFold = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputOauthProviderWhereInput(ctx context.Context, obj interface{}) (generated.OauthProviderWhereInput, error) { - var it generated.OauthProviderWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "clientID", "clientIDNEQ", "clientIDIn", "clientIDNotIn", "clientIDGT", "clientIDGTE", "clientIDLT", "clientIDLTE", "clientIDContains", "clientIDHasPrefix", "clientIDHasSuffix", "clientIDEqualFold", "clientIDContainsFold", "clientSecret", "clientSecretNEQ", "clientSecretIn", "clientSecretNotIn", "clientSecretGT", "clientSecretGTE", "clientSecretLT", "clientSecretLTE", "clientSecretContains", "clientSecretHasPrefix", "clientSecretHasSuffix", "clientSecretEqualFold", "clientSecretContainsFold", "redirectURL", "redirectURLNEQ", "redirectURLIn", "redirectURLNotIn", "redirectURLGT", "redirectURLGTE", "redirectURLLT", "redirectURLLTE", "redirectURLContains", "redirectURLHasPrefix", "redirectURLHasSuffix", "redirectURLEqualFold", "redirectURLContainsFold", "scopes", "scopesNEQ", "scopesIn", "scopesNotIn", "scopesGT", "scopesGTE", "scopesLT", "scopesLTE", "scopesContains", "scopesHasPrefix", "scopesHasSuffix", "scopesEqualFold", "scopesContainsFold", "authURL", "authURLNEQ", "authURLIn", "authURLNotIn", "authURLGT", "authURLGTE", "authURLLT", "authURLLTE", "authURLContains", "authURLHasPrefix", "authURLHasSuffix", "authURLEqualFold", "authURLContainsFold", "tokenURL", "tokenURLNEQ", "tokenURLIn", "tokenURLNotIn", "tokenURLGT", "tokenURLGTE", "tokenURLLT", "tokenURLLTE", "tokenURLContains", "tokenURLHasPrefix", "tokenURLHasSuffix", "tokenURLEqualFold", "tokenURLContainsFold", "authStyle", "authStyleNEQ", "authStyleIn", "authStyleNotIn", "authStyleGT", "authStyleGTE", "authStyleLT", "authStyleLTE", "infoURL", "infoURLNEQ", "infoURLIn", "infoURLNotIn", "infoURLGT", "infoURLGTE", "infoURLLT", "infoURLLTE", "infoURLContains", "infoURLHasPrefix", "infoURLHasSuffix", "infoURLEqualFold", "infoURLContainsFold", "hasOwner", "hasOwnerWith"} - 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.unmarshalOOauthProviderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInput(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOOauthProviderWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOOauthProviderWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Or = data - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "idNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDNEQ = data - case "idIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDIn = data - case "idNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDEqualFold = data - case "idContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDContainsFold = data - case "createdAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGT = data - case "createdAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(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) + 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.CreatedAtLT = data - case "createdAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.CreatedAtLTE = data - case "createdAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DescriptionNotIn = data + case "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.UpdatedAtGT = data - case "updatedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.UpdatedAtGTE = data - case "updatedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.UpdatedAtLT = data - case "updatedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.UpdatedAtLTE = data - case "updatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.UpdatedAtIsNil = data - case "updatedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.UpdatedAtNotNil = data - case "createdBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + it.DescriptionContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) 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")) + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) 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")) + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) 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")) + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) 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")) + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) 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")) + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) 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")) + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByNotNil = data - case "createdByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) 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")) + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) 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")) + it.StatusContainsFold = data + case "subcontrolType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolType")) 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")) + it.SubcontrolType = data + case "subcontrolTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeNEQ")) 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")) + it.SubcontrolTypeNEQ = data + case "subcontrolTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeIn")) 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")) + it.SubcontrolTypeIn = data + case "subcontrolTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + it.SubcontrolTypeNotIn = data + case "subcontrolTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + it.SubcontrolTypeGT = data + case "subcontrolTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + it.SubcontrolTypeGTE = data + case "subcontrolTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + it.SubcontrolTypeLT = data + case "subcontrolTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + it.SubcontrolTypeLTE = data + case "subcontrolTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeContains")) 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")) + it.SubcontrolTypeContains = data + case "subcontrolTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeHasPrefix")) 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")) + it.SubcontrolTypeHasPrefix = data + case "subcontrolTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeHasSuffix")) 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")) + it.SubcontrolTypeHasSuffix = data + case "subcontrolTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + it.SubcontrolTypeIsNil = data + case "subcontrolTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByNotNil = data - case "updatedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + it.SubcontrolTypeNotNil = data + case "subcontrolTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeEqualFold")) 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")) + it.SubcontrolTypeEqualFold = data + case "subcontrolTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.SubcontrolTypeContainsFold = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.VersionHasSuffix = data + case "versionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + it.VersionIsNil = data + case "versionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + it.VersionNotNil = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + it.VersionContainsFold = data + case "subcontrolNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubcontrolNumber = data + case "subcontrolNumberNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubcontrolNumberNEQ = data + case "subcontrolNumberIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + it.SubcontrolNumberIn = data + case "subcontrolNumberNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + it.SubcontrolNumberNotIn = data + case "subcontrolNumberGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + it.SubcontrolNumberGT = data + case "subcontrolNumberGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + it.SubcontrolNumberGTE = data + case "subcontrolNumberLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + it.SubcontrolNumberLT = data + case "subcontrolNumberLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + it.SubcontrolNumberLTE = data + case "subcontrolNumberContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + it.SubcontrolNumberContains = data + case "subcontrolNumberHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + it.SubcontrolNumberHasPrefix = data + case "subcontrolNumberHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + it.SubcontrolNumberHasSuffix = data + case "subcontrolNumberIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + it.SubcontrolNumberIsNil = data + case "subcontrolNumberNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + it.SubcontrolNumberNotNil = data + case "subcontrolNumberEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + it.SubcontrolNumberEqualFold = data + case "subcontrolNumberContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.SubcontrolNumberContainsFold = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + 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.unmarshalOID2ᚖstring(ctx, v) + it.Family = data + case "familyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNEQ")) + 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.unmarshalOID2ᚕstringᚄ(ctx, v) + it.FamilyNEQ = data + case "familyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIn")) + 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.unmarshalOID2ᚕstringᚄ(ctx, v) + it.FamilyIn = data + case "familyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.FamilyNotIn = data + case "familyGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.FamilyGT = data + case "familyGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.FamilyGTE = data + case "familyLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.FamilyLT = data + case "familyLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.FamilyLTE = data + case "familyContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContains")) + 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.unmarshalOID2ᚖstring(ctx, v) + it.FamilyContains = data + case "familyHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasPrefix")) + 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.unmarshalOID2ᚖstring(ctx, v) + it.FamilyHasPrefix = data + case "familyHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasSuffix")) + 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")) + it.FamilyHasSuffix = data + case "familyIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + it.FamilyIsNil = data + case "familyNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotNil")) 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) + it.FamilyNotNil = data + case "familyEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyEqualFold")) + 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.unmarshalOID2ᚖstring(ctx, v) + it.FamilyEqualFold = data + case "familyContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContainsFold")) + 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")) + it.FamilyContainsFold = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) 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")) + it.Class = data + case "classNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNEQ")) 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")) + it.ClassNEQ = data + case "classIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classIn")) 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")) + it.ClassIn = data + case "classNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + it.ClassNotIn = data + case "classGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + it.ClassGT = data + case "classGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + it.ClassGTE = data + case "classLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + it.ClassLT = data + case "classLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + it.ClassLTE = data + case "classContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classContains")) 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")) + it.ClassContains = data + case "classHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classHasPrefix")) 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")) + it.ClassHasPrefix = data + case "classHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classHasSuffix")) 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")) + it.ClassHasSuffix = data + case "classIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClassIsNil = data + case "classNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClassNotNil = data + case "classEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classEqualFold")) 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")) + it.ClassEqualFold = data + case "classContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - case "clientID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) + it.ClassContainsFold = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientID = data - case "clientIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDNEQ")) + it.Source = data + case "sourceNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDNEQ = data - case "clientIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDIn")) + it.SourceNEQ = data + case "sourceIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClientIDIn = data - case "clientIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDNotIn")) + it.SourceIn = data + case "sourceNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClientIDNotIn = data - case "clientIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDGT")) + it.SourceNotIn = data + case "sourceGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDGT = data - case "clientIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDGTE")) + it.SourceGT = data + case "sourceGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDGTE = data - case "clientIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDLT")) + it.SourceGTE = data + case "sourceLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDLT = data - case "clientIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDLTE")) + it.SourceLT = data + case "sourceLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDLTE = data - case "clientIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDContains")) + it.SourceLTE = data + case "sourceContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDContains = data - case "clientIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDHasPrefix")) + it.SourceContains = data + case "sourceHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDHasPrefix = data - case "clientIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDHasSuffix")) + it.SourceHasPrefix = data + case "sourceHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDHasSuffix = data - case "clientIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDEqualFold")) + it.SourceHasSuffix = data + case "sourceIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SourceIsNil = data + case "sourceNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SourceNotNil = data + case "sourceEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDEqualFold = data - case "clientIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDContainsFold")) + it.SourceEqualFold = data + case "sourceContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDContainsFold = data - case "clientSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) + it.SourceContainsFold = data + case "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientSecret = data - case "clientSecretNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretNEQ")) + it.MappedFrameworks = data + case "mappedFrameworksNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientSecretNEQ = data - case "clientSecretIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretIn")) + it.MappedFrameworksNEQ = data + case "mappedFrameworksIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClientSecretIn = data - case "clientSecretNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretNotIn")) + it.MappedFrameworksIn = data + case "mappedFrameworksNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClientSecretNotIn = data - case "clientSecretGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretGT")) + it.MappedFrameworksNotIn = data + case "mappedFrameworksGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientSecretGT = data - case "clientSecretGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretGTE")) + it.MappedFrameworksGT = data + case "mappedFrameworksGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientSecretGTE = data - case "clientSecretLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretLT")) + it.MappedFrameworksGTE = data + case "mappedFrameworksLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientSecretLT = data - case "clientSecretLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretLTE")) + it.MappedFrameworksLT = data + case "mappedFrameworksLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientSecretLTE = data - case "clientSecretContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretContains")) + it.MappedFrameworksLTE = data + case "mappedFrameworksContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientSecretContains = data - case "clientSecretHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretHasPrefix")) + it.MappedFrameworksContains = data + case "mappedFrameworksHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientSecretHasPrefix = data - case "clientSecretHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretHasSuffix")) + it.MappedFrameworksHasPrefix = data + case "mappedFrameworksHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientSecretHasSuffix = data - case "clientSecretEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretEqualFold")) + it.MappedFrameworksHasSuffix = data + case "mappedFrameworksIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksIsNil = data + case "mappedFrameworksNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworksNotNil = data + case "mappedFrameworksEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientSecretEqualFold = data - case "clientSecretContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecretContainsFold")) + it.MappedFrameworksEqualFold = data + case "mappedFrameworksContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientSecretContainsFold = data - case "redirectURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURL")) + it.MappedFrameworksContainsFold = data + case "implementationEvidence": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidence")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RedirectURL = data - case "redirectURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLNEQ")) + it.ImplementationEvidence = data + case "implementationEvidenceNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RedirectURLNEQ = data - case "redirectURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLIn")) + it.ImplementationEvidenceNEQ = data + case "implementationEvidenceIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RedirectURLIn = data - case "redirectURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLNotIn")) + it.ImplementationEvidenceIn = data + case "implementationEvidenceNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RedirectURLNotIn = data - case "redirectURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLGT")) + it.ImplementationEvidenceNotIn = data + case "implementationEvidenceGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RedirectURLGT = data - case "redirectURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLGTE")) + it.ImplementationEvidenceGT = data + case "implementationEvidenceGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RedirectURLGTE = data - case "redirectURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLLT")) + it.ImplementationEvidenceGTE = data + case "implementationEvidenceLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RedirectURLLT = data - case "redirectURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLLTE")) + it.ImplementationEvidenceLT = data + case "implementationEvidenceLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RedirectURLLTE = data - case "redirectURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLContains")) + it.ImplementationEvidenceLTE = data + case "implementationEvidenceContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RedirectURLContains = data - case "redirectURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLHasPrefix")) + it.ImplementationEvidenceContains = data + case "implementationEvidenceHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RedirectURLHasPrefix = data - case "redirectURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLHasSuffix")) + it.ImplementationEvidenceHasPrefix = data + case "implementationEvidenceHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RedirectURLHasSuffix = data - case "redirectURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLEqualFold")) + it.ImplementationEvidenceHasSuffix = data + case "implementationEvidenceIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ImplementationEvidenceIsNil = data + case "implementationEvidenceNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ImplementationEvidenceNotNil = data + case "implementationEvidenceEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RedirectURLEqualFold = data - case "redirectURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURLContainsFold")) + it.ImplementationEvidenceEqualFold = data + case "implementationEvidenceContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RedirectURLContainsFold = data - case "scopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) + it.ImplementationEvidenceContainsFold = data + case "implementationStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatus")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Scopes = data - case "scopesNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesNEQ")) + it.ImplementationStatus = data + case "implementationStatusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ScopesNEQ = data - case "scopesIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesIn")) + it.ImplementationStatusNEQ = data + case "implementationStatusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ScopesIn = data - case "scopesNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesNotIn")) + it.ImplementationStatusIn = data + case "implementationStatusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ScopesNotIn = data - case "scopesGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesGT")) + it.ImplementationStatusNotIn = data + case "implementationStatusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ScopesGT = data - case "scopesGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesGTE")) + it.ImplementationStatusGT = data + case "implementationStatusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ScopesGTE = data - case "scopesLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesLT")) + it.ImplementationStatusGTE = data + case "implementationStatusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ScopesLT = data - case "scopesLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesLTE")) + it.ImplementationStatusLT = data + case "implementationStatusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ScopesLTE = data - case "scopesContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesContains")) + it.ImplementationStatusLTE = data + case "implementationStatusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ScopesContains = data - case "scopesHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesHasPrefix")) + it.ImplementationStatusContains = data + case "implementationStatusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ScopesHasPrefix = data - case "scopesHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesHasSuffix")) + it.ImplementationStatusHasPrefix = data + case "implementationStatusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ScopesHasSuffix = data - case "scopesEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationStatusHasSuffix = data + case "implementationStatusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ScopesEqualFold = data - case "scopesContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopesContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationStatusIsNil = data + case "implementationStatusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ScopesContainsFold = data - case "authURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURL")) + it.ImplementationStatusNotNil = data + case "implementationStatusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AuthURL = data - case "authURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLNEQ")) + it.ImplementationStatusEqualFold = data + case "implementationStatusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AuthURLNEQ = data - case "authURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ImplementationStatusContainsFold = data + case "implementationDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDate")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthURLIn = data - case "authURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ImplementationDate = data + case "implementationDateNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthURLNotIn = data - case "authURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationDateNEQ = data + case "implementationDateIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.AuthURLGT = data - case "authURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationDateIn = data + case "implementationDateNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.AuthURLGTE = data - case "authURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationDateNotIn = data + case "implementationDateGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthURLLT = data - case "authURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationDateGT = data + case "implementationDateGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthURLLTE = data - case "authURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationDateGTE = data + case "implementationDateLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthURLContains = data - case "authURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationDateLT = data + case "implementationDateLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthURLHasPrefix = data - case "authURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationDateLTE = data + case "implementationDateIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AuthURLHasSuffix = data - case "authURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationDateIsNil = data + case "implementationDateNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AuthURLEqualFold = data - case "authURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURLContainsFold")) + it.ImplementationDateNotNil = data + case "implementationVerification": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerification")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AuthURLContainsFold = data - case "tokenURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURL")) + it.ImplementationVerification = data + case "implementationVerificationNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TokenURL = data - case "tokenURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationVerificationNEQ = data + case "implementationVerificationIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.TokenURLNEQ = data - case "tokenURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLIn")) + it.ImplementationVerificationIn = data + case "implementationVerificationNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.TokenURLIn = data - case "tokenURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ImplementationVerificationNotIn = data + case "implementationVerificationGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TokenURLNotIn = data - case "tokenURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLGT")) + it.ImplementationVerificationGT = data + case "implementationVerificationGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TokenURLGT = data - case "tokenURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLGTE")) + it.ImplementationVerificationGTE = data + case "implementationVerificationLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TokenURLGTE = data - case "tokenURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLLT")) + it.ImplementationVerificationLT = data + case "implementationVerificationLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TokenURLLT = data - case "tokenURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLLTE")) + it.ImplementationVerificationLTE = data + case "implementationVerificationContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TokenURLLTE = data - case "tokenURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLContains")) + it.ImplementationVerificationContains = data + case "implementationVerificationHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TokenURLContains = data - case "tokenURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLHasPrefix")) + it.ImplementationVerificationHasPrefix = data + case "implementationVerificationHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TokenURLHasPrefix = data - case "tokenURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationVerificationHasSuffix = data + case "implementationVerificationIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TokenURLHasSuffix = data - case "tokenURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLEqualFold")) + it.ImplementationVerificationIsNil = data + case "implementationVerificationNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ImplementationVerificationNotNil = data + case "implementationVerificationEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TokenURLEqualFold = data - case "tokenURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURLContainsFold")) + it.ImplementationVerificationEqualFold = data + case "implementationVerificationContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TokenURLContainsFold = data - case "authStyle": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyle")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + it.ImplementationVerificationContainsFold = data + case "implementationVerificationDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDate")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthStyle = data - case "authStyleNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleNEQ")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + it.ImplementationVerificationDate = data + case "implementationVerificationDateNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthStyleNEQ = data - case "authStyleIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleIn")) - data, err := ec.unmarshalOUint2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8ᚄ(ctx, v) + it.ImplementationVerificationDateNEQ = data + case "implementationVerificationDateIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.AuthStyleIn = data - case "authStyleNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleNotIn")) - data, err := ec.unmarshalOUint2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8ᚄ(ctx, v) + it.ImplementationVerificationDateIn = data + case "implementationVerificationDateNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.AuthStyleNotIn = data - case "authStyleGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleGT")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + it.ImplementationVerificationDateNotIn = data + case "implementationVerificationDateGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthStyleGT = data - case "authStyleGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleGTE")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + it.ImplementationVerificationDateGT = data + case "implementationVerificationDateGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthStyleGTE = data - case "authStyleLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleLT")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + it.ImplementationVerificationDateGTE = data + case "implementationVerificationDateLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthStyleLT = data - case "authStyleLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyleLTE")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + it.ImplementationVerificationDateLT = data + case "implementationVerificationDateLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthStyleLTE = data - case "infoURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationVerificationDateLTE = data + case "implementationVerificationDateIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.InfoURL = data - case "infoURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationVerificationDateIsNil = data + case "implementationVerificationDateNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.InfoURLNEQ = data - case "infoURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ImplementationVerificationDateNotNil = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputSubcontrolWhereInput(ctx context.Context, obj interface{}) (generated.SubcontrolWhereInput, error) { + var it generated.SubcontrolWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "statusGT", "statusGTE", "statusLT", "statusLTE", "statusContains", "statusHasPrefix", "statusHasSuffix", "statusIsNil", "statusNotNil", "statusEqualFold", "statusContainsFold", "subcontrolType", "subcontrolTypeNEQ", "subcontrolTypeIn", "subcontrolTypeNotIn", "subcontrolTypeGT", "subcontrolTypeGTE", "subcontrolTypeLT", "subcontrolTypeLTE", "subcontrolTypeContains", "subcontrolTypeHasPrefix", "subcontrolTypeHasSuffix", "subcontrolTypeIsNil", "subcontrolTypeNotNil", "subcontrolTypeEqualFold", "subcontrolTypeContainsFold", "version", "versionNEQ", "versionIn", "versionNotIn", "versionGT", "versionGTE", "versionLT", "versionLTE", "versionContains", "versionHasPrefix", "versionHasSuffix", "versionIsNil", "versionNotNil", "versionEqualFold", "versionContainsFold", "subcontrolNumber", "subcontrolNumberNEQ", "subcontrolNumberIn", "subcontrolNumberNotIn", "subcontrolNumberGT", "subcontrolNumberGTE", "subcontrolNumberLT", "subcontrolNumberLTE", "subcontrolNumberContains", "subcontrolNumberHasPrefix", "subcontrolNumberHasSuffix", "subcontrolNumberIsNil", "subcontrolNumberNotNil", "subcontrolNumberEqualFold", "subcontrolNumberContainsFold", "family", "familyNEQ", "familyIn", "familyNotIn", "familyGT", "familyGTE", "familyLT", "familyLTE", "familyContains", "familyHasPrefix", "familyHasSuffix", "familyIsNil", "familyNotNil", "familyEqualFold", "familyContainsFold", "class", "classNEQ", "classIn", "classNotIn", "classGT", "classGTE", "classLT", "classLTE", "classContains", "classHasPrefix", "classHasSuffix", "classIsNil", "classNotNil", "classEqualFold", "classContainsFold", "source", "sourceNEQ", "sourceIn", "sourceNotIn", "sourceGT", "sourceGTE", "sourceLT", "sourceLTE", "sourceContains", "sourceHasPrefix", "sourceHasSuffix", "sourceIsNil", "sourceNotNil", "sourceEqualFold", "sourceContainsFold", "mappedFrameworks", "mappedFrameworksNEQ", "mappedFrameworksIn", "mappedFrameworksNotIn", "mappedFrameworksGT", "mappedFrameworksGTE", "mappedFrameworksLT", "mappedFrameworksLTE", "mappedFrameworksContains", "mappedFrameworksHasPrefix", "mappedFrameworksHasSuffix", "mappedFrameworksIsNil", "mappedFrameworksNotNil", "mappedFrameworksEqualFold", "mappedFrameworksContainsFold", "implementationEvidence", "implementationEvidenceNEQ", "implementationEvidenceIn", "implementationEvidenceNotIn", "implementationEvidenceGT", "implementationEvidenceGTE", "implementationEvidenceLT", "implementationEvidenceLTE", "implementationEvidenceContains", "implementationEvidenceHasPrefix", "implementationEvidenceHasSuffix", "implementationEvidenceIsNil", "implementationEvidenceNotNil", "implementationEvidenceEqualFold", "implementationEvidenceContainsFold", "implementationStatus", "implementationStatusNEQ", "implementationStatusIn", "implementationStatusNotIn", "implementationStatusGT", "implementationStatusGTE", "implementationStatusLT", "implementationStatusLTE", "implementationStatusContains", "implementationStatusHasPrefix", "implementationStatusHasSuffix", "implementationStatusIsNil", "implementationStatusNotNil", "implementationStatusEqualFold", "implementationStatusContainsFold", "implementationDate", "implementationDateNEQ", "implementationDateIn", "implementationDateNotIn", "implementationDateGT", "implementationDateGTE", "implementationDateLT", "implementationDateLTE", "implementationDateIsNil", "implementationDateNotNil", "implementationVerification", "implementationVerificationNEQ", "implementationVerificationIn", "implementationVerificationNotIn", "implementationVerificationGT", "implementationVerificationGTE", "implementationVerificationLT", "implementationVerificationLTE", "implementationVerificationContains", "implementationVerificationHasPrefix", "implementationVerificationHasSuffix", "implementationVerificationIsNil", "implementationVerificationNotNil", "implementationVerificationEqualFold", "implementationVerificationContainsFold", "implementationVerificationDate", "implementationVerificationDateNEQ", "implementationVerificationDateIn", "implementationVerificationDateNotIn", "implementationVerificationDateGT", "implementationVerificationDateGTE", "implementationVerificationDateLT", "implementationVerificationDateLTE", "implementationVerificationDateIsNil", "implementationVerificationDateNotNil", "hasControl", "hasControlWith", "hasUser", "hasUserWith", "hasNotes", "hasNotesWith"} + 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.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) if err != nil { return it, err } - it.InfoURLIn = data - case "infoURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOSubcontrolWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.InfoURLNotIn = data - case "infoURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOSubcontrolWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.InfoURLGT = data - case "infoURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.InfoURLGTE = data - case "infoURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.InfoURLLT = data - case "infoURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.InfoURLLTE = data - case "infoURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.InfoURLContains = data - case "infoURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.InfoURLHasPrefix = data - case "infoURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.InfoURLHasSuffix = data - case "infoURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.InfoURLEqualFold = data - case "infoURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURLContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.InfoURLContainsFold = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasOwner = data - case "hasOwnerWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.HasOwnerWith = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputOhAuthTooTokenWhereInput(ctx context.Context, obj interface{}) (generated.OhAuthTooTokenWhereInput, error) { - var it generated.OhAuthTooTokenWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "clientID", "clientIDNEQ", "clientIDIn", "clientIDNotIn", "clientIDGT", "clientIDGTE", "clientIDLT", "clientIDLTE", "clientIDContains", "clientIDHasPrefix", "clientIDHasSuffix", "clientIDEqualFold", "clientIDContainsFold", "nonce", "nonceNEQ", "nonceIn", "nonceNotIn", "nonceGT", "nonceGTE", "nonceLT", "nonceLTE", "nonceContains", "nonceHasPrefix", "nonceHasSuffix", "nonceEqualFold", "nonceContainsFold", "claimsUserID", "claimsUserIDNEQ", "claimsUserIDIn", "claimsUserIDNotIn", "claimsUserIDGT", "claimsUserIDGTE", "claimsUserIDLT", "claimsUserIDLTE", "claimsUserIDContains", "claimsUserIDHasPrefix", "claimsUserIDHasSuffix", "claimsUserIDEqualFold", "claimsUserIDContainsFold", "claimsUsername", "claimsUsernameNEQ", "claimsUsernameIn", "claimsUsernameNotIn", "claimsUsernameGT", "claimsUsernameGTE", "claimsUsernameLT", "claimsUsernameLTE", "claimsUsernameContains", "claimsUsernameHasPrefix", "claimsUsernameHasSuffix", "claimsUsernameEqualFold", "claimsUsernameContainsFold", "claimsEmail", "claimsEmailNEQ", "claimsEmailIn", "claimsEmailNotIn", "claimsEmailGT", "claimsEmailGTE", "claimsEmailLT", "claimsEmailLTE", "claimsEmailContains", "claimsEmailHasPrefix", "claimsEmailHasSuffix", "claimsEmailEqualFold", "claimsEmailContainsFold", "claimsEmailVerified", "claimsEmailVerifiedNEQ", "claimsPreferredUsername", "claimsPreferredUsernameNEQ", "claimsPreferredUsernameIn", "claimsPreferredUsernameNotIn", "claimsPreferredUsernameGT", "claimsPreferredUsernameGTE", "claimsPreferredUsernameLT", "claimsPreferredUsernameLTE", "claimsPreferredUsernameContains", "claimsPreferredUsernameHasPrefix", "claimsPreferredUsernameHasSuffix", "claimsPreferredUsernameEqualFold", "claimsPreferredUsernameContainsFold", "connectorID", "connectorIDNEQ", "connectorIDIn", "connectorIDNotIn", "connectorIDGT", "connectorIDGTE", "connectorIDLT", "connectorIDLTE", "connectorIDContains", "connectorIDHasPrefix", "connectorIDHasSuffix", "connectorIDEqualFold", "connectorIDContainsFold", "lastUsed", "lastUsedNEQ", "lastUsedIn", "lastUsedNotIn", "lastUsedGT", "lastUsedGTE", "lastUsedLT", "lastUsedLTE", "hasIntegration", "hasIntegrationWith", "hasEvents", "hasEventsWith"} - 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.unmarshalOOhAuthTooTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInput(ctx, v) + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOOhAuthTooTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInputᚄ(ctx, v) + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOOhAuthTooTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInputᚄ(ctx, v) + it.CreatedAtIsNil = data + case "createdAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Or = data - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.ID = data - case "idNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.IDNEQ = data - case "idIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.IDIn = data - case "idNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.IDEqualFold = data - case "idContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.IDContainsFold = data - case "clientID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) + 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.ClientID = data - case "clientIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDNEQ")) + 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.ClientIDNEQ = data - case "clientIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDIn")) + 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.ClientIDIn = data - case "clientIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDNotIn")) + 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.ClientIDNotIn = data - case "clientIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDGT")) + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDGT = data - case "clientIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDGTE")) + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDGTE = data - case "clientIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDLT")) + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDLT = data - case "clientIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDLTE")) + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDLTE = data - case "clientIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDContains")) + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientIDContains = data - case "clientIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDHasPrefix")) + 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.ClientIDHasPrefix = data - case "clientIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDHasSuffix")) + 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.ClientIDHasSuffix = data - case "clientIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDEqualFold")) + 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.ClientIDEqualFold = data - case "clientIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientIDContainsFold")) + 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.ClientIDContainsFold = data - case "nonce": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonce")) + 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.Nonce = data - case "nonceNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceNEQ")) + 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.NonceNEQ = data - case "nonceIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceIn")) + 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.NonceIn = data - case "nonceNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceNotIn")) + 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.NonceNotIn = data - case "nonceGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceGT")) + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NonceGT = data - case "nonceGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceGTE")) + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NonceGTE = data - case "nonceLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceLT")) + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NonceLT = data - case "nonceLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceLTE")) + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NonceLTE = data - case "nonceContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceContains")) + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NonceContains = data - case "nonceHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceHasPrefix")) + 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.NonceHasPrefix = data - case "nonceHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceHasSuffix")) + 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.NonceHasSuffix = data - case "nonceEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.NonceEqualFold = data - case "nonceContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonceContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.NonceContainsFold = data - case "claimsUserID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserID")) + 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.ClaimsUserID = data - case "claimsUserIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDNEQ")) + 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.ClaimsUserIDNEQ = data - case "claimsUserIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClaimsUserIDIn = data - case "claimsUserIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClaimsUserIDNotIn = data - case "claimsUserIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClaimsUserIDGT = data - case "claimsUserIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClaimsUserIDGTE = data - case "claimsUserIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClaimsUserIDLT = data - case "claimsUserIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClaimsUserIDLTE = data - case "claimsUserIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClaimsUserIDContains = data - case "claimsUserIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClaimsUserIDHasPrefix = data - case "claimsUserIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClaimsUserIDHasSuffix = data - case "claimsUserIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClaimsUserIDEqualFold = data - case "claimsUserIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserIDContainsFold")) + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsUserIDContainsFold = data - case "claimsUsername": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsername")) + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsUsername = data - case "claimsUsernameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClaimsUsernameNEQ = data - case "claimsUsernameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameIn")) + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClaimsUsernameIn = data - case "claimsUsernameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsUsernameNotIn = data - case "claimsUsernameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameGT")) + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsUsernameGT = data - case "claimsUsernameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameGTE")) + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsUsernameGTE = data - case "claimsUsernameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameLT")) + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsUsernameLT = data - case "claimsUsernameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameLTE")) + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsUsernameLTE = data - case "claimsUsernameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameContains")) + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsUsernameContains = data - case "claimsUsernameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameHasPrefix")) + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsUsernameHasPrefix = data - case "claimsUsernameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClaimsUsernameHasSuffix = data - case "claimsUsernameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClaimsUsernameEqualFold = data - case "claimsUsernameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsernameContainsFold")) + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsUsernameContainsFold = data - case "claimsEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmail")) + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsEmail = data - case "claimsEmailNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailNEQ")) + it.DeletedByContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsEmailNEQ = data - case "claimsEmailIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.ClaimsEmailIn = data - case "claimsEmailNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailNotIn")) + 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.ClaimsEmailNotIn = data - case "claimsEmailGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.ClaimsEmailGT = data - case "claimsEmailGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailGTE")) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsEmailGTE = data - case "claimsEmailLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailLT")) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsEmailLT = data - case "claimsEmailLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailLTE")) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsEmailLTE = data - case "claimsEmailContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailContains")) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsEmailContains = data - case "claimsEmailHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailHasPrefix")) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsEmailHasPrefix = data - case "claimsEmailHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailHasSuffix")) + 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.ClaimsEmailHasSuffix = data - case "claimsEmailEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailEqualFold")) + 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.ClaimsEmailEqualFold = data - case "claimsEmailContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailContainsFold")) + 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.ClaimsEmailContainsFold = data - case "claimsEmailVerified": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailVerified")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.ClaimsEmailVerified = data - case "claimsEmailVerifiedNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailVerifiedNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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.ClaimsEmailVerifiedNEQ = data - case "claimsPreferredUsername": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsername")) + 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.ClaimsPreferredUsername = data - case "claimsPreferredUsernameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameNEQ")) + 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.ClaimsPreferredUsernameNEQ = data - case "claimsPreferredUsernameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameIn")) + 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.ClaimsPreferredUsernameIn = data - case "claimsPreferredUsernameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameNotIn")) + 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.ClaimsPreferredUsernameNotIn = data - case "claimsPreferredUsernameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameGT")) + it.DescriptionNotIn = data + case "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsPreferredUsernameGT = data - case "claimsPreferredUsernameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameGTE")) + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsPreferredUsernameGTE = data - case "claimsPreferredUsernameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameLT")) + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsPreferredUsernameLT = data - case "claimsPreferredUsernameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameLTE")) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsPreferredUsernameLTE = data - case "claimsPreferredUsernameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameContains")) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClaimsPreferredUsernameContains = data - case "claimsPreferredUsernameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameHasPrefix")) + 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.ClaimsPreferredUsernameHasPrefix = data - case "claimsPreferredUsernameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameHasSuffix")) + 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.ClaimsPreferredUsernameHasSuffix = data - case "claimsPreferredUsernameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameEqualFold")) + 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.ClaimsPreferredUsernameEqualFold = data - case "claimsPreferredUsernameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsernameContainsFold")) + 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.ClaimsPreferredUsernameContainsFold = data - case "connectorID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorID")) + it.DescriptionContainsFold = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ConnectorID = data - case "connectorIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDNEQ")) + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ConnectorIDNEQ = data - case "connectorIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDIn")) + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ConnectorIDIn = data - case "connectorIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDNotIn")) + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ConnectorIDNotIn = data - case "connectorIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDGT")) + it.StatusNotIn = data + case "statusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ConnectorIDGT = data - case "connectorIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDGTE")) + it.StatusGT = data + case "statusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ConnectorIDGTE = data - case "connectorIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDLT")) + it.StatusGTE = data + case "statusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ConnectorIDLT = data - case "connectorIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDLTE")) + it.StatusLT = data + case "statusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ConnectorIDLTE = data - case "connectorIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDContains")) + it.StatusLTE = data + case "statusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ConnectorIDContains = data - case "connectorIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDHasPrefix")) + it.StatusContains = data + case "statusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ConnectorIDHasPrefix = data - case "connectorIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDHasSuffix")) + it.StatusHasPrefix = data + case "statusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ConnectorIDHasSuffix = data - case "connectorIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDEqualFold")) + it.StatusHasSuffix = data + case "statusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusIsNil = data + case "statusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.StatusNotNil = data + case "statusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ConnectorIDEqualFold = data - case "connectorIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorIDContainsFold")) + it.StatusEqualFold = data + case "statusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ConnectorIDContainsFold = data - case "lastUsed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsed")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StatusContainsFold = data + case "subcontrolType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsed = data - case "lastUsedNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.SubcontrolType = data + case "subcontrolTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedNEQ = data - case "lastUsedIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.SubcontrolTypeNEQ = data + case "subcontrolTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.LastUsedIn = data - case "lastUsedNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.SubcontrolTypeIn = data + case "subcontrolTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.LastUsedNotIn = data - case "lastUsedGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.SubcontrolTypeNotIn = data + case "subcontrolTypeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedGT = data - case "lastUsedGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.SubcontrolTypeGT = data + case "subcontrolTypeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedGTE = data - case "lastUsedLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.SubcontrolTypeGTE = data + case "subcontrolTypeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedLT = data - case "lastUsedLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.SubcontrolTypeLT = data + case "subcontrolTypeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedLTE = data - case "hasIntegration": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegration")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.SubcontrolTypeLTE = data + case "subcontrolTypeContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeContains")) + data, err := ec.unmarshalOString2ᚖstring(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ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) + it.SubcontrolTypeContains = data + case "subcontrolTypeHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasIntegrationWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.SubcontrolTypeHasPrefix = data + case "subcontrolTypeHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + it.SubcontrolTypeHasSuffix = data + case "subcontrolTypeIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasEventsWith = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputOrgMembershipHistoryWhereInput(ctx context.Context, obj interface{}) (generated.OrgMembershipHistoryWhereInput, error) { - var it generated.OrgMembershipHistoryWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "role", "roleNEQ", "roleIn", "roleNotIn", "organizationID", "organizationIDNEQ", "organizationIDIn", "organizationIDNotIn", "organizationIDGT", "organizationIDGTE", "organizationIDLT", "organizationIDLTE", "organizationIDContains", "organizationIDHasPrefix", "organizationIDHasSuffix", "organizationIDEqualFold", "organizationIDContainsFold", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDGT", "userIDGTE", "userIDLT", "userIDLTE", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDEqualFold", "userIDContainsFold"} - 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.unmarshalOOrgMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInput(ctx, v) + it.SubcontrolTypeIsNil = data + case "subcontrolTypeNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOOrgMembershipHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInputᚄ(ctx, v) + it.SubcontrolTypeNotNil = data + case "subcontrolTypeEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOOrgMembershipHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInputᚄ(ctx, v) + it.SubcontrolTypeEqualFold = data + case "subcontrolTypeContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolTypeContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.SubcontrolTypeContainsFold = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖ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) + it.Version = data + case "versionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNEQ")) + data, err := ec.unmarshalOString2ᚖ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) + it.VersionNEQ = data + case "versionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIn")) + data, err := ec.unmarshalOString2ᚕ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) + it.VersionIn = data + case "versionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.VersionNotIn = data + case "versionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.VersionGT = data + case "versionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.VersionGTE = data + case "versionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.VersionLT = data + case "versionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.VersionLTE = data + case "versionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContains")) + data, err := ec.unmarshalOString2ᚖ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) + it.VersionContains = data + case "versionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasPrefix")) + data, err := ec.unmarshalOString2ᚖ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) + it.VersionHasPrefix = data + case "versionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HistoryTime = data - case "historyTimeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.VersionHasSuffix = data + case "versionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HistoryTimeNEQ = data - case "historyTimeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.VersionIsNil = data + case "versionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HistoryTimeIn = data - case "historyTimeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.VersionNotNil = data + case "versionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HistoryTimeNotIn = data - case "historyTimeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.VersionEqualFold = data + case "versionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("versionContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.VersionContainsFold = data + case "subcontrolNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumber")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.SubcontrolNumber = data + case "subcontrolNumberNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberNEQ")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.SubcontrolNumberNEQ = data + case "subcontrolNumberIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HistoryTimeLTE = data - case "ref": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ref")) + it.SubcontrolNumberIn = data + case "subcontrolNumberNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubcontrolNumberNotIn = data + case "subcontrolNumberGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberGT")) 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")) + it.SubcontrolNumberGT = data + case "subcontrolNumberGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberGTE")) 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) + it.SubcontrolNumberGTE = data + case "subcontrolNumberLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberLT")) + 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) + it.SubcontrolNumberLT = data + case "subcontrolNumberLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefNotIn = data - case "refGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + it.SubcontrolNumberLTE = data + case "subcontrolNumberContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefGT = data - case "refGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + it.SubcontrolNumberContains = data + case "subcontrolNumberHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefGTE = data - case "refLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + it.SubcontrolNumberHasPrefix = data + case "subcontrolNumberHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefLT = data - case "refLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + it.SubcontrolNumberHasSuffix = data + case "subcontrolNumberIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SubcontrolNumberIsNil = data + case "subcontrolNumberNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SubcontrolNumberNotNil = data + case "subcontrolNumberEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefLTE = data - case "refContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContains")) + it.SubcontrolNumberEqualFold = data + case "subcontrolNumberContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumberContainsFold")) 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")) + it.SubcontrolNumberContainsFold = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) 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")) + it.Family = data + case "familyNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNEQ")) 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) + it.FamilyNEQ = data + case "familyIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(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) + it.FamilyIn = data + case "familyNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RefNotNil = data - case "refEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refEqualFold")) + it.FamilyNotIn = data + case "familyGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGT")) 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")) + it.FamilyGT = data + case "familyGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyGTE")) 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.unmarshalOOrgMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + it.FamilyGTE = data + case "familyLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Operation = data - case "operationNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNEQ")) - data, err := ec.unmarshalOOrgMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + it.FamilyLT = data + case "familyLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OperationNEQ = data - case "operationIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationIn")) - data, err := ec.unmarshalOOrgMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + it.FamilyLTE = data + case "familyContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OperationIn = data - case "operationNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNotIn")) - data, err := ec.unmarshalOOrgMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + it.FamilyContains = data + case "familyHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.FamilyHasPrefix = data + case "familyHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FamilyHasSuffix = data + case "familyIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.FamilyIsNil = data + case "familyNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.FamilyNotNil = data + case "familyEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FamilyEqualFold = data + case "familyContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("familyContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.FamilyContainsFold = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.Class = data + case "classNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNEQ")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.ClassNEQ = data + case "classIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(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) + it.ClassIn = data + case "classNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(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) + it.ClassNotIn = data + case "classGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classGT")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.ClassGT = data + case "classGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClassGTE = data + case "classLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClassLT = data + case "classLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClassLTE = data + case "classContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClassContains = data + case "classHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.ClassHasPrefix = data + case "classHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.ClassHasSuffix = data + case "classIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classIsNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClassIsNil = data + case "classNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classNotNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClassNotNil = data + case "classEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.ClassEqualFold = data + case "classContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("classContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtNotNil = data - case "createdBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + it.ClassContainsFold = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) 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")) + it.Source = data + case "sourceNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNEQ")) 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")) + it.SourceNEQ = data + case "sourceIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIn")) 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")) + it.SourceIn = data + case "sourceNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + it.SourceNotIn = data + case "sourceGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + it.SourceGT = data + case "sourceGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + it.SourceGTE = data + case "sourceLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + it.SourceLT = data + case "sourceLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + it.SourceLTE = data + case "sourceContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContains")) 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")) + it.SourceContains = data + case "sourceHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasPrefix")) 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")) + it.SourceHasPrefix = data + case "sourceHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceHasSuffix")) 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")) + it.SourceHasSuffix = data + case "sourceIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + it.SourceIsNil = data + case "sourceNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByNotNil = data - case "createdByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + it.SourceNotNil = data + case "sourceEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceEqualFold")) 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")) + it.SourceEqualFold = data + case "sourceContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceContainsFold")) 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")) + it.SourceContainsFold = data + case "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) 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")) + it.MappedFrameworks = data + case "mappedFrameworksNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNEQ")) 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")) + it.MappedFrameworksNEQ = data + case "mappedFrameworksIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksIn")) 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")) + it.MappedFrameworksIn = data + case "mappedFrameworksNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + it.MappedFrameworksNotIn = data + case "mappedFrameworksGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + it.MappedFrameworksGT = data + case "mappedFrameworksGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + it.MappedFrameworksGTE = data + case "mappedFrameworksLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + it.MappedFrameworksLT = data + case "mappedFrameworksLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + it.MappedFrameworksLTE = data + case "mappedFrameworksContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksContains")) 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")) + it.MappedFrameworksContains = data + case "mappedFrameworksHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksHasPrefix")) 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")) + it.MappedFrameworksHasPrefix = data + case "mappedFrameworksHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksHasSuffix")) 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")) + it.MappedFrameworksHasSuffix = data + case "mappedFrameworksIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + it.MappedFrameworksIsNil = data + case "mappedFrameworksNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByNotNil = data - case "updatedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + it.MappedFrameworksNotNil = data + case "mappedFrameworksEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksEqualFold")) 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")) + it.MappedFrameworksEqualFold = data + case "mappedFrameworksContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworksContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.MappedFrameworksContainsFold = data + case "implementationEvidence": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidence")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ImplementationEvidence = data + case "implementationEvidenceNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ImplementationEvidenceNEQ = data + case "implementationEvidenceIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ImplementationEvidenceIn = data + case "implementationEvidenceNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ImplementationEvidenceNotIn = data + case "implementationEvidenceGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ImplementationEvidenceGT = data + case "implementationEvidenceGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ImplementationEvidenceGTE = data + case "implementationEvidenceLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ImplementationEvidenceLT = data + case "implementationEvidenceLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + it.ImplementationEvidenceLTE = data + case "implementationEvidenceContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ImplementationEvidenceContains = data + case "implementationEvidenceHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ImplementationEvidenceHasPrefix = data + case "implementationEvidenceHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ImplementationEvidenceHasSuffix = data + case "implementationEvidenceIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + it.ImplementationEvidenceIsNil = data + case "implementationEvidenceNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + it.ImplementationEvidenceNotNil = data + case "implementationEvidenceEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + it.ImplementationEvidenceEqualFold = data + case "implementationEvidenceContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidenceContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + it.ImplementationEvidenceContainsFold = data + case "implementationStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatus")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ImplementationStatus = data + case "implementationStatusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ImplementationStatusNEQ = data + case "implementationStatusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + it.ImplementationStatusIn = data + case "implementationStatusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + it.ImplementationStatusNotIn = data + case "implementationStatusGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + it.ImplementationStatusGT = data + case "implementationStatusGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + it.ImplementationStatusGTE = data + case "implementationStatusLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + it.ImplementationStatusLT = data + case "implementationStatusLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + it.ImplementationStatusLTE = data + case "implementationStatusContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + it.ImplementationStatusContains = data + case "implementationStatusHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + it.ImplementationStatusHasPrefix = data + case "implementationStatusHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + it.ImplementationStatusHasSuffix = data + case "implementationStatusIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + it.ImplementationStatusIsNil = data + case "implementationStatusNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + it.ImplementationStatusNotNil = data + case "implementationStatusEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + it.ImplementationStatusEqualFold = data + case "implementationStatusContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatusContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOOrgMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + it.ImplementationStatusContainsFold = data + case "implementationDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDate")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.Role = data - case "roleNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) - data, err := ec.unmarshalOOrgMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + it.ImplementationDate = data + case "implementationDateNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RoleNEQ = data - case "roleIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) - data, err := ec.unmarshalOOrgMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + it.ImplementationDateNEQ = data + case "implementationDateIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.RoleIn = data - case "roleNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) - data, err := ec.unmarshalOOrgMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + it.ImplementationDateIn = data + case "implementationDateNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.RoleNotIn = data - case "organizationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) + it.ImplementationDateNotIn = data + case "implementationDateGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ImplementationDateGT = data + case "implementationDateGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ImplementationDateGTE = data + case "implementationDateLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ImplementationDateLT = data + case "implementationDateLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.ImplementationDateLTE = data + case "implementationDateIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ImplementationDateIsNil = data + case "implementationDateNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDateNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ImplementationDateNotNil = data + case "implementationVerification": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerification")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationID = data - case "organizationIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNEQ")) + it.ImplementationVerification = data + case "implementationVerificationNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDNEQ = data - case "organizationIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIn")) + it.ImplementationVerificationNEQ = data + case "implementationVerificationIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OrganizationIDIn = data - case "organizationIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotIn")) + it.ImplementationVerificationIn = data + case "implementationVerificationNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OrganizationIDNotIn = data - case "organizationIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGT")) + it.ImplementationVerificationNotIn = data + case "implementationVerificationGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDGT = data - case "organizationIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGTE")) + it.ImplementationVerificationGT = data + case "implementationVerificationGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDGTE = data - case "organizationIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLT")) + it.ImplementationVerificationGTE = data + case "implementationVerificationLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDLT = data - case "organizationIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLTE")) + it.ImplementationVerificationLT = data + case "implementationVerificationLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDLTE = data - case "organizationIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContains")) + it.ImplementationVerificationLTE = data + case "implementationVerificationContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDContains = data - case "organizationIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasPrefix")) + it.ImplementationVerificationContains = data + case "implementationVerificationHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDHasPrefix = data - case "organizationIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasSuffix")) + it.ImplementationVerificationHasPrefix = data + case "implementationVerificationHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDHasSuffix = data - case "organizationIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationVerificationHasSuffix = data + case "implementationVerificationIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OrganizationIDEqualFold = data - case "organizationIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationVerificationIsNil = data + case "implementationVerificationNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OrganizationIDContainsFold = data - case "userID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + it.ImplementationVerificationNotNil = data + case "implementationVerificationEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationEqualFold")) 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")) + it.ImplementationVerificationEqualFold = data + case "implementationVerificationContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationContainsFold")) 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) + it.ImplementationVerificationContainsFold = data + case "implementationVerificationDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDate")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(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) + it.ImplementationVerificationDate = data + case "implementationVerificationDateNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.UserIDNotIn = data - case "userIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationVerificationDateNEQ = data + case "implementationVerificationDateIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.UserIDGT = data - case "userIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationVerificationDateIn = data + case "implementationVerificationDateNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.UserIDGTE = data - case "userIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationVerificationDateNotIn = data + case "implementationVerificationDateGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.UserIDLT = data - case "userIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationVerificationDateGT = data + case "implementationVerificationDateGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.UserIDLTE = data - case "userIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationVerificationDateGTE = data + case "implementationVerificationDateLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(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) + it.ImplementationVerificationDateLT = data + case "implementationVerificationDateLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(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) + it.ImplementationVerificationDateLTE = data + case "implementationVerificationDateIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UserIDHasSuffix = data - case "userIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationVerificationDateIsNil = data + case "implementationVerificationDateNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDateNotNil")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ImplementationVerificationDateNotNil = data + case "hasControl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControl")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.UserIDContainsFold = data + it.HasControl = data + case "hasControlWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlWith")) + data, err := ec.unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasControlWith = 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ᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasUserWith = data + case "hasNotes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNotes")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasNotes = data + case "hasNotesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNotesWith")) + data, err := ec.unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasNotesWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputOrgMembershipWhereInput(ctx context.Context, obj interface{}) (generated.OrgMembershipWhereInput, error) { - var it generated.OrgMembershipWhereInput +func (ec *executionContext) unmarshalInputSubscriberWhereInput(ctx context.Context, obj interface{}) (generated.SubscriberWhereInput, error) { + var it generated.SubscriberWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "role", "roleNEQ", "roleIn", "roleNotIn", "organizationID", "userID"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailGT", "emailGTE", "emailLT", "emailLTE", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "phoneNumber", "phoneNumberNEQ", "phoneNumberIn", "phoneNumberNotIn", "phoneNumberGT", "phoneNumberGTE", "phoneNumberLT", "phoneNumberLTE", "phoneNumberContains", "phoneNumberHasPrefix", "phoneNumberHasSuffix", "phoneNumberIsNil", "phoneNumberNotNil", "phoneNumberEqualFold", "phoneNumberContainsFold", "verifiedEmail", "verifiedEmailNEQ", "verifiedPhone", "verifiedPhoneNEQ", "active", "activeNEQ", "hasOwner", "hasOwnerWith", "hasEvents", "hasEventsWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -195141,21 +285625,21 @@ func (ec *executionContext) unmarshalInputOrgMembershipWhereInput(ctx context.Co switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) + data, err := ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOSubscriberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOSubscriberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -195755,386 +286239,488 @@ func (ec *executionContext) unmarshalInputOrgMembershipWhereInput(ctx context.Co return it, err } it.DeletedByContainsFold = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOOrgMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) - if err != nil { - return it, err - } - it.Role = data - case "roleNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) - data, err := ec.unmarshalOOrgMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.RoleNEQ = data - case "roleIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) - data, err := ec.unmarshalOOrgMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + 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.RoleIn = data - case "roleNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) - data, err := ec.unmarshalOOrgMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + 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.RoleNotIn = data - case "organizationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.OrganizationID = data - case "userID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserID = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputOrganizationHistoryOrder(ctx context.Context, obj interface{}) (generated.OrganizationHistoryOrder, error) { - var it generated.OrganizationHistoryOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - 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) + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNOrganizationHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryOrderField(ctx, v) + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Field = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputOrganizationHistoryWhereInput(ctx context.Context, obj interface{}) (generated.OrganizationHistoryWhereInput, error) { - var it generated.OrganizationHistoryWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "parentOrganizationID", "parentOrganizationIDNEQ", "parentOrganizationIDIn", "parentOrganizationIDNotIn", "parentOrganizationIDGT", "parentOrganizationIDGTE", "parentOrganizationIDLT", "parentOrganizationIDLTE", "parentOrganizationIDContains", "parentOrganizationIDHasPrefix", "parentOrganizationIDHasSuffix", "parentOrganizationIDIsNil", "parentOrganizationIDNotNil", "parentOrganizationIDEqualFold", "parentOrganizationIDContainsFold", "personalOrg", "personalOrgNEQ", "personalOrgIsNil", "personalOrgNotNil", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLGT", "avatarRemoteURLGTE", "avatarRemoteURLLT", "avatarRemoteURLLTE", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold"} - 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.unmarshalOOrganizationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInput(ctx, v) + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOOrganizationHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInputᚄ(ctx, v) + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOOrganizationHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInputᚄ(ctx, v) + 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.Or = data - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + 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.ID = data - case "idNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.IDNEQ = data - case "idIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.IDIn = data - case "idNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + 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.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.OwnerIDContainsFold = data + case "email": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.IDEqualFold = data - case "idContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.EmailNotIn = data + case "emailGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGT")) + data, err := ec.unmarshalOString2ᚖ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) + it.EmailGT = data + case "emailGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HistoryTime = data - case "historyTimeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.EmailGTE = data + case "emailLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HistoryTimeNEQ = data - case "historyTimeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.EmailLT = data + case "emailLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HistoryTimeIn = data - case "historyTimeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.EmailLTE = data + case "emailContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HistoryTimeNotIn = data - case "historyTimeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.HistoryTimeGT = data - case "historyTimeGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.HistoryTimeGTE = data - case "historyTimeLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.HistoryTimeLT = data - case "historyTimeLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.HistoryTimeLTE = data - case "ref": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ref")) + it.EmailContainsFold = data + case "phoneNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) 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")) + it.PhoneNumber = data + case "phoneNumberNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNEQ")) 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")) + it.PhoneNumberNEQ = data + case "phoneNumberIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberIn")) 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")) + it.PhoneNumberIn = data + case "phoneNumberNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RefNotIn = data - case "refGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + it.PhoneNumberNotIn = data + case "phoneNumberGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefGT = data - case "refGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + it.PhoneNumberGT = data + case "phoneNumberGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefGTE = data - case "refLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + it.PhoneNumberGTE = data + case "phoneNumberLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefLT = data - case "refLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + it.PhoneNumberLT = data + case "phoneNumberLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefLTE = data - case "refContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContains")) + it.PhoneNumberLTE = data + case "phoneNumberContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberContains")) 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")) + it.PhoneNumberContains = data + case "phoneNumberHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberHasPrefix")) 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")) + it.PhoneNumberHasPrefix = data + case "phoneNumberHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberHasSuffix = data + case "phoneNumberIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberIsNil = data + case "phoneNumberNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberNotNil = data + case "phoneNumberEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PhoneNumberEqualFold = data + case "phoneNumberContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberContainsFold")) 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) + it.PhoneNumberContainsFold = data + case "verifiedEmail": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verifiedEmail")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.VerifiedEmail = data + case "verifiedEmailNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verifiedEmailNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.VerifiedEmailNEQ = data + case "verifiedPhone": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verifiedPhone")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.VerifiedPhone = data + case "verifiedPhoneNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verifiedPhoneNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.VerifiedPhoneNEQ = data + case "active": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Active = data + case "activeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("activeNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.ActiveNEQ = 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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOwnerWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEventsWith = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputTFASettingWhereInput(ctx context.Context, obj interface{}) (generated.TFASettingWhereInput, error) { + var it generated.TFASettingWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "tfaSecret", "tfaSecretNEQ", "tfaSecretIn", "tfaSecretNotIn", "tfaSecretGT", "tfaSecretGTE", "tfaSecretLT", "tfaSecretLTE", "tfaSecretContains", "tfaSecretHasPrefix", "tfaSecretHasSuffix", "tfaSecretIsNil", "tfaSecretNotNil", "tfaSecretEqualFold", "tfaSecretContainsFold", "verified", "verifiedNEQ", "totpAllowed", "totpAllowedNEQ", "totpAllowedIsNil", "totpAllowedNotNil", "hasOwner", "hasOwnerWith"} + 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.unmarshalOTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOTFASettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOTFASettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInputᚄ(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.RefIsNil = data - case "refNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RefNotNil = data - case "refEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RefEqualFold = data - case "refContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefContainsFold = data - case "operation": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOOrganizationHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Operation = data - case "operationNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNEQ")) - data, err := ec.unmarshalOOrganizationHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.OperationNEQ = data - case "operationIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationIn")) - data, err := ec.unmarshalOOrganizationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.OperationIn = data - case "operationNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNotIn")) - data, err := ec.unmarshalOOrganizationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.OperationNotIn = data + 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) @@ -196660,343 +287246,175 @@ func (ec *executionContext) unmarshalInputOrganizationHistoryWhereInput(ctx cont return it, err } it.DeletedByContainsFold = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + case "tfaSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecret")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "displayNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + it.TfaSecret = data + case "tfaSecretNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameNEQ = data - case "displayNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + it.TfaSecretNEQ = data + case "tfaSecretIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DisplayNameIn = data - case "displayNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + it.TfaSecretIn = data + case "tfaSecretNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DisplayNameNotIn = data - case "displayNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameGT = data - case "displayNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.DisplayNameGTE = data - case "displayNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + it.TfaSecretNotIn = data + case "tfaSecretGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameLT = data - case "displayNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + it.TfaSecretGT = data + case "tfaSecretGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameLTE = data - case "displayNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + it.TfaSecretGTE = data + case "tfaSecretLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameContains = data - case "displayNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + it.TfaSecretLT = data + case "tfaSecretLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameHasPrefix = data - case "displayNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + it.TfaSecretLTE = data + case "tfaSecretContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameHasSuffix = data - case "displayNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + it.TfaSecretContains = data + case "tfaSecretHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameEqualFold = data - case "displayNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + it.TfaSecretHasPrefix = data + case "tfaSecretHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameContainsFold = data - case "parentOrganizationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationID = data - case "parentOrganizationIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDNEQ = data - case "parentOrganizationIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDIn = data - case "parentOrganizationIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDNotIn = data - case "parentOrganizationIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDGT = data - case "parentOrganizationIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDGTE = data - case "parentOrganizationIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDLT = data - case "parentOrganizationIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDLTE = data - case "parentOrganizationIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDContains = data - case "parentOrganizationIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDHasPrefix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDHasPrefix = data - case "parentOrganizationIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDHasSuffix = data - case "parentOrganizationIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDIsNil = data - case "parentOrganizationIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDNotNil = data - case "parentOrganizationIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDEqualFold = data - case "parentOrganizationIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDContainsFold = data - case "personalOrg": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrg")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.PersonalOrg = data - case "personalOrgNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrgNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.PersonalOrgNEQ = data - case "personalOrgIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrgIsNil")) + it.TfaSecretHasSuffix = data + case "tfaSecretIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.PersonalOrgIsNil = data - case "personalOrgNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrgNotNil")) + it.TfaSecretIsNil = data + case "tfaSecretNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.PersonalOrgNotNil = data - case "avatarRemoteURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AvatarRemoteURL = data - case "avatarRemoteURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AvatarRemoteURLNEQ = data - case "avatarRemoteURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.AvatarRemoteURLIn = data - case "avatarRemoteURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.AvatarRemoteURLNotIn = data - case "avatarRemoteURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.AvatarRemoteURLGT = data - case "avatarRemoteURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLGTE")) + it.TfaSecretNotNil = data + case "tfaSecretEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLGTE = data - case "avatarRemoteURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLLT")) + it.TfaSecretEqualFold = data + case "tfaSecretContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLLT = data - case "avatarRemoteURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.TfaSecretContainsFold = data + case "verified": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verified")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLLTE = data - case "avatarRemoteURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Verified = data + case "verifiedNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verifiedNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLContains = data - case "avatarRemoteURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.VerifiedNEQ = data + case "totpAllowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totpAllowed")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLHasPrefix = data - case "avatarRemoteURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.TotpAllowed = data + case "totpAllowedNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totpAllowedNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLHasSuffix = data - case "avatarRemoteURLIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLIsNil")) + it.TotpAllowedNEQ = data + case "totpAllowedIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totpAllowedIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLIsNil = data - case "avatarRemoteURLNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNotNil")) + it.TotpAllowedIsNil = data + case "totpAllowedNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totpAllowedNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLNotNil = data - case "avatarRemoteURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.TotpAllowedNotNil = data + case "hasOwner": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLEqualFold = data - case "avatarRemoteURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasOwner = data + case "hasOwnerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLContainsFold = data + it.HasOwnerWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputOrganizationOrder(ctx context.Context, obj interface{}) (generated.OrganizationOrder, error) { - var it generated.OrganizationOrder +func (ec *executionContext) unmarshalInputTemplateHistoryOrder(ctx context.Context, obj interface{}) (generated.TemplateHistoryOrder, error) { + var it generated.TemplateHistoryOrder asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v @@ -197022,7 +287440,7 @@ func (ec *executionContext) unmarshalInputOrganizationOrder(ctx context.Context, it.Direction = data case "field": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNOrganizationOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderField(ctx, v) + data, err := ec.unmarshalNTemplateHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryOrderField(ctx, v) if err != nil { return it, err } @@ -197033,14 +287451,14 @@ func (ec *executionContext) unmarshalInputOrganizationOrder(ctx context.Context, return it, nil } -func (ec *executionContext) unmarshalInputOrganizationSettingHistoryWhereInput(ctx context.Context, obj interface{}) (generated.OrganizationSettingHistoryWhereInput, error) { - var it generated.OrganizationSettingHistoryWhereInput +func (ec *executionContext) unmarshalInputTemplateHistoryWhereInput(ctx context.Context, obj interface{}) (generated.TemplateHistoryWhereInput, error) { + var it generated.TemplateHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "billingContact", "billingContactNEQ", "billingContactIn", "billingContactNotIn", "billingContactGT", "billingContactGTE", "billingContactLT", "billingContactLTE", "billingContactContains", "billingContactHasPrefix", "billingContactHasSuffix", "billingContactIsNil", "billingContactNotNil", "billingContactEqualFold", "billingContactContainsFold", "billingEmail", "billingEmailNEQ", "billingEmailIn", "billingEmailNotIn", "billingEmailGT", "billingEmailGTE", "billingEmailLT", "billingEmailLTE", "billingEmailContains", "billingEmailHasPrefix", "billingEmailHasSuffix", "billingEmailIsNil", "billingEmailNotNil", "billingEmailEqualFold", "billingEmailContainsFold", "billingPhone", "billingPhoneNEQ", "billingPhoneIn", "billingPhoneNotIn", "billingPhoneGT", "billingPhoneGTE", "billingPhoneLT", "billingPhoneLTE", "billingPhoneContains", "billingPhoneHasPrefix", "billingPhoneHasSuffix", "billingPhoneIsNil", "billingPhoneNotNil", "billingPhoneEqualFold", "billingPhoneContainsFold", "billingAddress", "billingAddressNEQ", "billingAddressIn", "billingAddressNotIn", "billingAddressGT", "billingAddressGTE", "billingAddressLT", "billingAddressLTE", "billingAddressContains", "billingAddressHasPrefix", "billingAddressHasSuffix", "billingAddressIsNil", "billingAddressNotNil", "billingAddressEqualFold", "billingAddressContainsFold", "taxIdentifier", "taxIdentifierNEQ", "taxIdentifierIn", "taxIdentifierNotIn", "taxIdentifierGT", "taxIdentifierGTE", "taxIdentifierLT", "taxIdentifierLTE", "taxIdentifierContains", "taxIdentifierHasPrefix", "taxIdentifierHasSuffix", "taxIdentifierIsNil", "taxIdentifierNotNil", "taxIdentifierEqualFold", "taxIdentifierContainsFold", "geoLocation", "geoLocationNEQ", "geoLocationIn", "geoLocationNotIn", "geoLocationIsNil", "geoLocationNotNil", "organizationID", "organizationIDNEQ", "organizationIDIn", "organizationIDNotIn", "organizationIDGT", "organizationIDGTE", "organizationIDLT", "organizationIDLTE", "organizationIDContains", "organizationIDHasPrefix", "organizationIDHasSuffix", "organizationIDIsNil", "organizationIDNotNil", "organizationIDEqualFold", "organizationIDContainsFold"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "templateType", "templateTypeNEQ", "templateTypeIn", "templateTypeNotIn", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -197049,21 +287467,21 @@ func (ec *executionContext) unmarshalInputOrganizationSettingHistoryWhereInput(c switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOTemplateHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOOrganizationSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTemplateHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOOrganizationSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTemplateHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -197301,28 +287719,28 @@ func (ec *executionContext) unmarshalInputOrganizationSettingHistoryWhereInput(c it.RefContainsFold = data case "operation": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOOrganizationSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOTemplateHistoryOpType2ᚖ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.unmarshalOOrganizationSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOTemplateHistoryOpType2ᚖ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.unmarshalOOrganizationSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOTemplateHistoryOpType2ᚕ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.unmarshalOOrganizationSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOTemplateHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } @@ -197852,692 +288270,387 @@ func (ec *executionContext) unmarshalInputOrganizationSettingHistoryWhereInput(c return it, err } it.DeletedByContainsFold = data - case "billingContact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContact")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContact = data - case "billingContactNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactNEQ = data - case "billingContactIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.BillingContactIn = data - case "billingContactNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.BillingContactNotIn = data - case "billingContactGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactGT = data - case "billingContactGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactGTE = data - case "billingContactLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactLT = data - case "billingContactLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactLTE = data - case "billingContactContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactContains = data - case "billingContactHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactHasPrefix = data - case "billingContactHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactHasSuffix = data - case "billingContactIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.BillingContactIsNil = data - case "billingContactNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.BillingContactNotNil = data - case "billingContactEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactEqualFold = data - case "billingContactContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactContainsFold = data - case "billingEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmail")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingEmail = data - case "billingEmailNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailNEQ = data - case "billingEmailIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailIn = data - case "billingEmailNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailNotIn = data - case "billingEmailGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailGT = data - case "billingEmailGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailGTE = data - case "billingEmailLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailLT = data - case "billingEmailLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailLTE = data - case "billingEmailContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailContains = data - case "billingEmailHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailHasPrefix = data - case "billingEmailHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailHasSuffix = data - case "billingEmailIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailIsNil = data - case "billingEmailNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailNotNil = data - case "billingEmailEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailEqualFold = data - case "billingEmailContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingEmailContainsFold = data - case "billingPhone": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhone")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhone = data - case "billingPhoneNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneNEQ = data - case "billingPhoneIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneIn = data - case "billingPhoneNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneNotIn = data - case "billingPhoneGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneGT = data - case "billingPhoneGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneGTE = data - case "billingPhoneLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneLT = data - case "billingPhoneLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneLTE = data - case "billingPhoneContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneContains = data - case "billingPhoneHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneHasPrefix = data - case "billingPhoneHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneHasSuffix = data - case "billingPhoneIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneIsNil = data - case "billingPhoneNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneNotNil = data - case "billingPhoneEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneEqualFold = data - case "billingPhoneContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneContainsFold = data - case "billingAddress": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddress")) + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingAddress = data - case "billingAddressNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressNEQ")) + 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.BillingAddressNEQ = data - case "billingAddressIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressIn")) + 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.BillingAddressIn = data - case "billingAddressNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressNotIn")) + 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.BillingAddressNotIn = data - case "billingAddressGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressGT")) + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingAddressGT = data - case "billingAddressGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressGTE")) + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingAddressGTE = data - case "billingAddressLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressLT")) + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingAddressLT = data - case "billingAddressLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressLTE")) + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingAddressLTE = data - case "billingAddressContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressContains")) + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingAddressContains = data - case "billingAddressHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressHasPrefix")) + 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.BillingAddressHasPrefix = data - case "billingAddressHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressHasSuffix")) + 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.BillingAddressHasSuffix = data - case "billingAddressIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressIsNil")) + 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.BillingAddressIsNil = data - case "billingAddressNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressNotNil")) + 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.BillingAddressNotNil = data - case "billingAddressEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressEqualFold")) + 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.BillingAddressEqualFold = data - case "billingAddressContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressContainsFold")) + 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.BillingAddressContainsFold = data - case "taxIdentifier": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifier")) + 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.TaxIdentifier = data - case "taxIdentifierNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierNEQ")) + 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.TaxIdentifierNEQ = data - case "taxIdentifierIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierIn")) + 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.TaxIdentifierIn = data - case "taxIdentifierNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierNotIn")) + 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.TaxIdentifierNotIn = data - case "taxIdentifierGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierGT")) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TaxIdentifierGT = data - case "taxIdentifierGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierGTE")) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TaxIdentifierGTE = data - case "taxIdentifierLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierLT")) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TaxIdentifierLT = data - case "taxIdentifierLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierLTE")) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TaxIdentifierLTE = data - case "taxIdentifierContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierContains")) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TaxIdentifierContains = data - case "taxIdentifierHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierHasPrefix")) + 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.TaxIdentifierHasPrefix = data - case "taxIdentifierHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierHasSuffix")) + 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.TaxIdentifierHasSuffix = data - case "taxIdentifierIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.TaxIdentifierIsNil = data - case "taxIdentifierNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.TaxIdentifierNotNil = data - case "taxIdentifierEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierEqualFold")) + 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.TaxIdentifierEqualFold = data - case "taxIdentifierContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierContainsFold")) + 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.TaxIdentifierContainsFold = data - case "geoLocation": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocation")) - data, err := ec.unmarshalOOrganizationSettingHistoryRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, v) - if err != nil { - return it, err - } - it.GeoLocation = data - case "geoLocationNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationNEQ")) - data, err := ec.unmarshalOOrganizationSettingHistoryRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, v) - if err != nil { - return it, err - } - it.GeoLocationNEQ = data - case "geoLocationIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationIn")) - data, err := ec.unmarshalOOrganizationSettingHistoryRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx, v) + it.NameContainsFold = data + case "templateType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateType")) + data, err := ec.unmarshalOTemplateHistoryDocumentType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, v) if err != nil { return it, err } - it.GeoLocationIn = data - case "geoLocationNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationNotIn")) - data, err := ec.unmarshalOOrganizationSettingHistoryRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx, v) + it.TemplateType = data + case "templateTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateTypeNEQ")) + data, err := ec.unmarshalOTemplateHistoryDocumentType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, v) if err != nil { return it, err } - it.GeoLocationNotIn = data - case "geoLocationIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.TemplateTypeNEQ = data + case "templateTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateTypeIn")) + data, err := ec.unmarshalOTemplateHistoryDocumentType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentTypeᚄ(ctx, v) if err != nil { return it, err } - it.GeoLocationIsNil = data - case "geoLocationNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.TemplateTypeIn = data + case "templateTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateTypeNotIn")) + data, err := ec.unmarshalOTemplateHistoryDocumentType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentTypeᚄ(ctx, v) if err != nil { return it, err } - it.GeoLocationNotNil = data - case "organizationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) + it.TemplateTypeNotIn = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationID = data - case "organizationIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNEQ")) + 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.OrganizationIDNEQ = data - case "organizationIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIn")) + 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.OrganizationIDIn = data - case "organizationIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotIn")) + 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.OrganizationIDNotIn = data - case "organizationIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGT")) + it.DescriptionNotIn = data + case "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDGT = data - case "organizationIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGTE")) + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDGTE = data - case "organizationIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLT")) + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDLT = data - case "organizationIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLTE")) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDLTE = data - case "organizationIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContains")) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OrganizationIDContains = data - case "organizationIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasPrefix")) + 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.OrganizationIDHasPrefix = data - case "organizationIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasSuffix")) + 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.OrganizationIDHasSuffix = data - case "organizationIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIsNil")) + 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.OrganizationIDIsNil = data - case "organizationIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotNil")) + 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.OrganizationIDNotNil = data - case "organizationIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDEqualFold")) + 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.OrganizationIDEqualFold = data - case "organizationIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContainsFold")) + 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.OrganizationIDContainsFold = data + it.DescriptionContainsFold = data } } return it, nil } -func (ec *executionContext) unmarshalInputOrganizationSettingWhereInput(ctx context.Context, obj interface{}) (generated.OrganizationSettingWhereInput, error) { - var it generated.OrganizationSettingWhereInput +func (ec *executionContext) unmarshalInputTemplateOrder(ctx context.Context, obj interface{}) (generated.TemplateOrder, error) { + var it generated.TemplateOrder asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "billingContact", "billingContactNEQ", "billingContactIn", "billingContactNotIn", "billingContactGT", "billingContactGTE", "billingContactLT", "billingContactLTE", "billingContactContains", "billingContactHasPrefix", "billingContactHasSuffix", "billingContactIsNil", "billingContactNotNil", "billingContactEqualFold", "billingContactContainsFold", "billingEmail", "billingEmailNEQ", "billingEmailIn", "billingEmailNotIn", "billingEmailGT", "billingEmailGTE", "billingEmailLT", "billingEmailLTE", "billingEmailContains", "billingEmailHasPrefix", "billingEmailHasSuffix", "billingEmailIsNil", "billingEmailNotNil", "billingEmailEqualFold", "billingEmailContainsFold", "billingPhone", "billingPhoneNEQ", "billingPhoneIn", "billingPhoneNotIn", "billingPhoneGT", "billingPhoneGTE", "billingPhoneLT", "billingPhoneLTE", "billingPhoneContains", "billingPhoneHasPrefix", "billingPhoneHasSuffix", "billingPhoneIsNil", "billingPhoneNotNil", "billingPhoneEqualFold", "billingPhoneContainsFold", "billingAddress", "billingAddressNEQ", "billingAddressIn", "billingAddressNotIn", "billingAddressGT", "billingAddressGTE", "billingAddressLT", "billingAddressLTE", "billingAddressContains", "billingAddressHasPrefix", "billingAddressHasSuffix", "billingAddressIsNil", "billingAddressNotNil", "billingAddressEqualFold", "billingAddressContainsFold", "taxIdentifier", "taxIdentifierNEQ", "taxIdentifierIn", "taxIdentifierNotIn", "taxIdentifierGT", "taxIdentifierGTE", "taxIdentifierLT", "taxIdentifierLTE", "taxIdentifierContains", "taxIdentifierHasPrefix", "taxIdentifierHasSuffix", "taxIdentifierIsNil", "taxIdentifierNotNil", "taxIdentifierEqualFold", "taxIdentifierContainsFold", "geoLocation", "geoLocationNEQ", "geoLocationIn", "geoLocationNotIn", "geoLocationIsNil", "geoLocationNotNil", "organizationID", "organizationIDNEQ", "organizationIDIn", "organizationIDNotIn", "organizationIDGT", "organizationIDGTE", "organizationIDLT", "organizationIDLTE", "organizationIDContains", "organizationIDHasPrefix", "organizationIDHasSuffix", "organizationIDIsNil", "organizationIDNotNil", "organizationIDEqualFold", "organizationIDContainsFold", "hasOrganization", "hasOrganizationWith", "hasFiles", "hasFilesWith"} + 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.unmarshalNTemplateOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrderField(ctx, v) + if err != nil { + return it, err + } + it.Field = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputTemplateWhereInput(ctx context.Context, obj interface{}) (generated.TemplateWhereInput, error) { + var it generated.TemplateWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "templateType", "templateTypeNEQ", "templateTypeIn", "templateTypeNotIn", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "hasOwner", "hasOwnerWith", "hasDocuments", "hasDocumentsWith", "hasFiles", "hasFilesWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -198546,21 +288659,21 @@ func (ec *executionContext) unmarshalInputOrganizationSettingWhereInput(ctx cont switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx, v) + data, err := ec.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOOrganizationSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTemplateWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOOrganizationSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOTemplateWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -199160,6733 +289273,6612 @@ func (ec *executionContext) unmarshalInputOrganizationSettingWhereInput(ctx cont return it, err } it.DeletedByContainsFold = data - case "billingContact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContact")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContact = data - case "billingContactNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactNEQ = data - case "billingContactIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.BillingContactIn = data - case "billingContactNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.BillingContactNotIn = data - case "billingContactGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactGT = data - case "billingContactGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactGTE = data - case "billingContactLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactLT = data - case "billingContactLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactLTE = data - case "billingContactContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactContains = data - case "billingContactHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactHasPrefix = data - case "billingContactHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactHasSuffix = data - case "billingContactIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.BillingContactIsNil = data - case "billingContactNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.BillingContactNotNil = data - case "billingContactEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactEqualFold = data - case "billingContactContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContactContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingContactContainsFold = data - case "billingEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmail")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingEmail = data - case "billingEmailNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.BillingEmailNEQ = data - case "billingEmailIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.BillingEmailIn = data - case "billingEmailNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.BillingEmailNotIn = data - case "billingEmailGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingEmailGT = data - case "billingEmailGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingEmailGTE = data - case "billingEmailLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingEmailLT = data - case "billingEmailLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingEmailLTE = data - case "billingEmailContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingEmailContains = data - case "billingEmailHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.BillingEmailHasPrefix = data - case "billingEmailHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.BillingEmailHasSuffix = data - case "billingEmailIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailIsNil")) + 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.BillingEmailIsNil = data - case "billingEmailNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailNotNil")) + 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.BillingEmailNotNil = data - case "billingEmailEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.BillingEmailEqualFold = data - case "billingEmailContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmailContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.BillingEmailContainsFold = data - case "billingPhone": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhone")) + 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.BillingPhone = data - case "billingPhoneNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneNEQ")) + 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.BillingPhoneNEQ = data - case "billingPhoneIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneIn")) + 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.BillingPhoneIn = data - case "billingPhoneNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneNotIn")) + 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.BillingPhoneNotIn = data - case "billingPhoneGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneGT = data - case "billingPhoneGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneGTE = data - case "billingPhoneLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneLT = data - case "billingPhoneLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneLTE = data - case "billingPhoneContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneContains = data - case "billingPhoneHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneHasPrefix = data - case "billingPhoneHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneHasSuffix = data - case "billingPhoneIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneIsNil = data - case "billingPhoneNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneNotNil = data - case "billingPhoneEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneEqualFold = data - case "billingPhoneContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhoneContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.BillingPhoneContainsFold = data - case "billingAddress": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddress")) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingAddress = data - case "billingAddressNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressNEQ")) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingAddressNEQ = data - case "billingAddressIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.BillingAddressIn = data - case "billingAddressNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.BillingAddressNotIn = data - case "billingAddressGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressGT")) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingAddressGT = data - case "billingAddressGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressGTE")) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingAddressGTE = data - case "billingAddressLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressLT")) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.BillingAddressLT = data - case "billingAddressLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressLTE")) + 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.BillingAddressLTE = data - case "billingAddressContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressContains")) + 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.BillingAddressContains = data - case "billingAddressHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressHasPrefix")) + 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.BillingAddressHasPrefix = data - case "billingAddressHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressHasSuffix")) + 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.BillingAddressHasSuffix = data - case "billingAddressIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.NameContainsFold = data + case "templateType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateType")) + data, err := ec.unmarshalOTemplateDocumentType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, v) if err != nil { return it, err } - it.BillingAddressIsNil = data - case "billingAddressNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.TemplateType = data + case "templateTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateTypeNEQ")) + data, err := ec.unmarshalOTemplateDocumentType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, v) if err != nil { return it, err } - it.BillingAddressNotNil = data - case "billingAddressEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.TemplateTypeNEQ = data + case "templateTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateTypeIn")) + data, err := ec.unmarshalOTemplateDocumentType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentTypeᚄ(ctx, v) if err != nil { return it, err } - it.BillingAddressEqualFold = data - case "billingAddressContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddressContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.TemplateTypeIn = data + case "templateTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateTypeNotIn")) + data, err := ec.unmarshalOTemplateDocumentType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentTypeᚄ(ctx, v) if err != nil { return it, err } - it.BillingAddressContainsFold = data - case "taxIdentifier": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifier")) + it.TemplateTypeNotIn = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TaxIdentifier = data - case "taxIdentifierNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierNEQ")) + 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.TaxIdentifierNEQ = data - case "taxIdentifierIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierIn")) + 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.TaxIdentifierIn = data - case "taxIdentifierNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierNotIn")) + 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.TaxIdentifierNotIn = data - case "taxIdentifierGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TaxIdentifierGT = data - case "taxIdentifierGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TaxIdentifierGTE = data - case "taxIdentifierLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TaxIdentifierLT = data - case "taxIdentifierLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TaxIdentifierLTE = data - case "taxIdentifierContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierContains")) + it.DescriptionNotIn = data + case "descriptionGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TaxIdentifierContains = data - case "taxIdentifierHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierHasPrefix")) + it.DescriptionGT = data + case "descriptionGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TaxIdentifierHasPrefix = data - case "taxIdentifierHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierHasSuffix")) + it.DescriptionGTE = data + case "descriptionLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TaxIdentifierHasSuffix = data - case "taxIdentifierIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.TaxIdentifierIsNil = data - case "taxIdentifierNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.TaxIdentifierNotNil = data - case "taxIdentifierEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierEqualFold")) + it.DescriptionLT = data + case "descriptionLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TaxIdentifierEqualFold = data - case "taxIdentifierContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifierContainsFold")) + it.DescriptionLTE = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TaxIdentifierContainsFold = data - case "geoLocation": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocation")) - data, err := ec.unmarshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, v) - if err != nil { - return it, err - } - it.GeoLocation = data - case "geoLocationNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationNEQ")) - data, err := ec.unmarshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, v) - if err != nil { - return it, err - } - it.GeoLocationNEQ = data - case "geoLocationIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationIn")) - data, err := ec.unmarshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx, v) - if err != nil { - return it, err - } - it.GeoLocationIn = data - case "geoLocationNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationNotIn")) - data, err := ec.unmarshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx, v) - if err != nil { - return it, err - } - it.GeoLocationNotIn = data - case "geoLocationIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.GeoLocationIsNil = data - case "geoLocationNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocationNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.GeoLocationNotNil = data - case "organizationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OrganizationID = data - case "organizationIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDNEQ = data - case "organizationIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDIn = data - case "organizationIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDNotIn = data - case "organizationIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDGT = data - case "organizationIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDGTE = data - case "organizationIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDLT = data - case "organizationIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDLTE = data - case "organizationIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDContains = data - case "organizationIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasPrefix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDHasPrefix = data - case "organizationIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDHasSuffix = data - case "organizationIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDIsNil = data - case "organizationIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDNotNil = data - case "organizationIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDEqualFold = data - case "organizationIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.OrganizationIDContainsFold = data - case "hasOrganization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganization")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasOrganization = data - case "hasOrganizationWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationWith")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasOrganizationWith = data - case "hasFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasFiles = data - case "hasFilesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasFilesWith = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Context, obj interface{}) (generated.OrganizationWhereInput, error) { - var it generated.OrganizationWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "parentOrganizationID", "parentOrganizationIDNEQ", "parentOrganizationIDIn", "parentOrganizationIDNotIn", "parentOrganizationIDGT", "parentOrganizationIDGTE", "parentOrganizationIDLT", "parentOrganizationIDLTE", "parentOrganizationIDContains", "parentOrganizationIDHasPrefix", "parentOrganizationIDHasSuffix", "parentOrganizationIDIsNil", "parentOrganizationIDNotNil", "parentOrganizationIDEqualFold", "parentOrganizationIDContainsFold", "personalOrg", "personalOrgNEQ", "personalOrgIsNil", "personalOrgNotNil", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLGT", "avatarRemoteURLGTE", "avatarRemoteURLLT", "avatarRemoteURLLTE", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "hasParent", "hasParentWith", "hasChildren", "hasChildrenWith", "hasGroups", "hasGroupsWith", "hasTemplates", "hasTemplatesWith", "hasIntegrations", "hasIntegrationsWith", "hasSetting", "hasSettingWith", "hasDocumentdata", "hasDocumentdataWith", "hasEntitlements", "hasEntitlementsWith", "hasOrganizationEntitlement", "hasOrganizationEntitlementWith", "hasPersonalAccessTokens", "hasPersonalAccessTokensWith", "hasAPITokens", "hasAPITokensWith", "hasOauthprovider", "hasOauthproviderWith", "hasUsers", "hasUsersWith", "hasInvites", "hasInvitesWith", "hasSubscribers", "hasSubscribersWith", "hasWebhooks", "hasWebhooksWith", "hasEvents", "hasEventsWith", "hasSecrets", "hasSecretsWith", "hasFeatures", "hasFeaturesWith", "hasFiles", "hasFilesWith", "hasEntitlementplans", "hasEntitlementplansWith", "hasEntitlementplanfeatures", "hasEntitlementplanfeaturesWith", "hasEntities", "hasEntitiesWith", "hasEntitytypes", "hasEntitytypesWith", "hasContacts", "hasContactsWith", "hasNotes", "hasNotesWith", "hasMembers", "hasMembersWith"} - 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.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Or = data - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "idNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDNEQ = data - case "idIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDIn = data - case "idNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDEqualFold = data - case "idContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDContainsFold = data - case "createdAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGT = data - case "createdAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGTE = data - case "createdAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLT = data - case "createdAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLTE = data - case "createdAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotNil = data - case "updatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGT = data - case "updatedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGTE = data - case "updatedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLT = data - case "updatedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLTE = data - case "updatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIsNil = data - case "updatedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotNil = data - case "createdBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + 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.CreatedBy = data - case "createdByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + 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.CreatedByNEQ = data - case "createdByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.CreatedByIn = data - case "createdByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + 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.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + 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.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DescriptionContainsFold = data + case "hasOwner": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasOwner = data + case "hasOwnerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasOwnerWith = data + case "hasDocuments": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocuments")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.HasDocuments = data + case "hasDocumentsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocumentsWith")) + data, err := ec.unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(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) + it.HasDocumentsWith = data + case "hasFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.HasFiles = data + case "hasFilesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(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) + it.HasFilesWith = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateAPITokenInput(ctx context.Context, obj interface{}) (generated.UpdateAPITokenInput, error) { + var it generated.UpdateAPITokenInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "scopes", "appendScopes", "clearScopes", "lastUsedAt", "clearLastUsedAt", "ownerID", "clearOwner"} + 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.CreatedByNotNil = data - case "createdByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.CreatedByEqualFold = data - case "createdByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.CreatedByContainsFold = data - case "updatedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + 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.UpdatedBy = data - case "updatedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNEQ")) + 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.UpdatedByNEQ = data - case "updatedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.UpdatedByIn = data - case "updatedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + it.ClearDescription = data + case "scopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Scopes = data + case "appendScopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendScopes")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AppendScopes = data + case "clearScopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearScopes")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearScopes = data + case "lastUsedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.LastUsedAt = data + case "clearLastUsedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLastUsedAt")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearLastUsedAt = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖ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) + 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.UpdatedByHasPrefix = data - case "updatedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearOwner = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateActionPlanInput(ctx context.Context, obj interface{}) (generated.UpdateActionPlanInput, error) { + var it generated.UpdateActionPlanInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "status", "clearStatus", "dueDate", "clearDueDate", "priority", "clearPriority", "source", "clearSource", "details", "clearDetails", "addStandardIDs", "removeStandardIDs", "clearStandard", "addRiskIDs", "removeRiskIDs", "clearRisk", "addControlIDs", "removeControlIDs", "clearControl", "addUserIDs", "removeUserIDs", "clearUser"} + 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.UpdatedByHasSuffix = data - case "updatedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + 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.UpdatedByNotNil = data - case "updatedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + 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.UpdatedByEqualFold = data - case "updatedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + 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.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearDescription = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.Status = data + case "clearStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStatus")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClearStatus = data + case "dueDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("dueDate")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.DueDate = data + case "clearDueDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDueDate")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearDueDate = data + case "priority": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("priority")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.Priority = data + case "clearPriority": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPriority")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearPriority = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + it.Source = data + case "clearSource": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSource")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearSource = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Details = data + case "clearDetails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDetails")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearDetails = data + case "addStandardIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addStandardIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.AddStandardIDs = data + case "removeStandardIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeStandardIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.RemoveStandardIDs = data + case "clearStandard": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStandard")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearStandard = data + case "addRiskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addRiskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddRiskIDs = data + case "removeRiskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeRiskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveRiskIDs = data + case "clearRisk": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearRisk")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearRisk = data + case "addControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddControlIDs = data + case "removeControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveControlIDs = data + case "clearControl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControl")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearControl = data + case "addUserIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUserIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AddUserIDs = data + case "removeUserIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUserIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + it.RemoveUserIDs = data + case "clearUser": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUser")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearUser = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateContactInput(ctx context.Context, obj interface{}) (generated.UpdateContactInput, error) { + var it generated.UpdateContactInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "fullName", "title", "clearTitle", "company", "clearCompany", "email", "clearEmail", "phoneNumber", "clearPhoneNumber", "address", "clearAddress", "status", "ownerID", "clearOwner", "addEntityIDs", "removeEntityIDs", "clearEntities", "addFileIDs", "removeFileIDs", "clearFiles"} + 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.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.DeletedByContainsFold = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.DisplayName = data - case "displayNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + it.ClearTags = data + case "fullName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameNEQ = data - case "displayNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.FullName = data + case "title": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameIn = data - case "displayNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.Title = data + case "clearTitle": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTitle")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DisplayNameNotIn = data - case "displayNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + it.ClearTitle = data + case "company": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameGT = data - case "displayNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Company = data + case "clearCompany": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearCompany")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DisplayNameGTE = data - case "displayNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + it.ClearCompany = data + case "email": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameLT = data - case "displayNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Email = data + case "clearEmail": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEmail")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DisplayNameLTE = data - case "displayNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + it.ClearEmail = data + case "phoneNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameContains = data - case "displayNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.PhoneNumber = data + case "clearPhoneNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPhoneNumber")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DisplayNameHasPrefix = data - case "displayNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + it.ClearPhoneNumber = data + case "address": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("address")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayNameHasSuffix = data - case "displayNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Address = data + case "clearAddress": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAddress")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DisplayNameEqualFold = data - case "displayNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearAddress = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOContactUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) if err != nil { return it, err } - it.DisplayNameContainsFold = data - case "parentOrganizationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationID")) + it.Status = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.ParentOrganizationID = data - case "parentOrganizationIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.ParentOrganizationIDNEQ = data - case "parentOrganizationIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDIn")) + it.ClearOwner = data + case "addEntityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntityIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ParentOrganizationIDIn = data - case "parentOrganizationIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDNotIn")) + it.AddEntityIDs = data + case "removeEntityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntityIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ParentOrganizationIDNotIn = data - case "parentOrganizationIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ParentOrganizationIDGT = data - case "parentOrganizationIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RemoveEntityIDs = data + case "clearEntities": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntities")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ParentOrganizationIDGTE = data - case "parentOrganizationIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearEntities = data + case "addFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ParentOrganizationIDLT = data - case "parentOrganizationIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AddFileIDs = data + case "removeFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ParentOrganizationIDLTE = data - case "parentOrganizationIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RemoveFileIDs = data + case "clearFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ParentOrganizationIDContains = data - case "parentOrganizationIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDHasPrefix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearFiles = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateControlInput(ctx context.Context, obj interface{}) (generated.UpdateControlInput, error) { + var it generated.UpdateControlInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "status", "clearStatus", "controlType", "clearControlType", "version", "clearVersion", "controlNumber", "clearControlNumber", "family", "clearFamily", "class", "clearClass", "source", "clearSource", "satisfies", "clearSatisfies", "mappedFrameworks", "clearMappedFrameworks", "details", "clearDetails", "addProcedureIDs", "removeProcedureIDs", "clearProcedures", "addSubcontrolIDs", "removeSubcontrolIDs", "clearSubcontrols", "addControlobjectiveIDs", "removeControlobjectiveIDs", "clearControlobjectives", "addStandardIDs", "removeStandardIDs", "clearStandard", "addNarrativeIDs", "removeNarrativeIDs", "clearNarratives", "addRiskIDs", "removeRiskIDs", "clearRisks", "addActionplanIDs", "removeActionplanIDs", "clearActionplans"} + 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.ParentOrganizationIDHasPrefix = data - case "parentOrganizationIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.ParentOrganizationIDHasSuffix = data - case "parentOrganizationIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDIsNil")) + 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.ParentOrganizationIDIsNil = data - case "parentOrganizationIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ParentOrganizationIDNotNil = data - case "parentOrganizationIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.ParentOrganizationIDEqualFold = data - case "parentOrganizationIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("parentOrganizationIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.ParentOrganizationIDContainsFold = data - case "personalOrg": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrg")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClearDescription = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PersonalOrg = data - case "personalOrgNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrgNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Status = data + case "clearStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStatus")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.PersonalOrgNEQ = data - case "personalOrgIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrgIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearStatus = data + case "controlType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PersonalOrgIsNil = data - case "personalOrgNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("personalOrgNotNil")) + it.ControlType = data + case "clearControlType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControlType")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.PersonalOrgNotNil = data - case "avatarRemoteURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) + it.ClearControlType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURL = data - case "avatarRemoteURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Version = data + case "clearVersion": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearVersion")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLNEQ = data - case "avatarRemoteURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClearVersion = data + case "controlNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLIn = data - case "avatarRemoteURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ControlNumber = data + case "clearControlNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControlNumber")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLNotIn = data - case "avatarRemoteURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLGT")) + it.ClearControlNumber = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLGT = data - case "avatarRemoteURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Family = data + case "clearFamily": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFamily")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLGTE = data - case "avatarRemoteURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLLT")) + it.ClearFamily = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLLT = data - case "avatarRemoteURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Class = data + case "clearClass": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearClass")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLLTE = data - case "avatarRemoteURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLContains")) + it.ClearClass = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLContains = data - case "avatarRemoteURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Source = data + case "clearSource": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSource")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLHasPrefix = data - case "avatarRemoteURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLHasSuffix")) + it.ClearSource = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLHasSuffix = data - case "avatarRemoteURLIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLIsNil")) + it.Satisfies = data + case "clearSatisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSatisfies")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLIsNil = data - case "avatarRemoteURLNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNotNil")) + it.ClearSatisfies = data + case "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.MappedFrameworks = data + case "clearMappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearMappedFrameworks")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLNotNil = data - case "avatarRemoteURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearMappedFrameworks = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLEqualFold = data - case "avatarRemoteURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Details = data + case "clearDetails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDetails")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURLContainsFold = data - case "hasParent": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasParent")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClearDetails = data + case "addProcedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addProcedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasParent = data - case "hasParentWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasParentWith")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.AddProcedureIDs = data + case "removeProcedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeProcedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasParentWith = data - case "hasChildren": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasChildren")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.RemoveProcedureIDs = data + case "clearProcedures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProcedures")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasChildren = data - case "hasChildrenWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasChildrenWith")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.ClearProcedures = data + case "addSubcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSubcontrolIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasChildrenWith = data - case "hasGroups": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroups")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AddSubcontrolIDs = data + case "removeSubcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSubcontrolIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasGroups = data - case "hasGroupsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupsWith")) - data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + it.RemoveSubcontrolIDs = data + case "clearSubcontrols": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubcontrols")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasGroupsWith = data - case "hasTemplates": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplates")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClearSubcontrols = data + case "addControlobjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlobjectiveIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasTemplates = data - case "hasTemplatesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTemplatesWith")) - data, err := ec.unmarshalOTemplateWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInputᚄ(ctx, v) + it.AddControlobjectiveIDs = data + case "removeControlobjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeControlobjectiveIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasTemplatesWith = data - case "hasIntegrations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrations")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.RemoveControlobjectiveIDs = data + case "clearControlobjectives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControlobjectives")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasIntegrations = data - case "hasIntegrationsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationsWith")) - data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) + it.ClearControlobjectives = data + case "addStandardIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addStandardIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasIntegrationsWith = data - case "hasSetting": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSetting")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AddStandardIDs = data + case "removeStandardIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeStandardIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasSetting = data - case "hasSettingWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSettingWith")) - data, err := ec.unmarshalOOrganizationSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInputᚄ(ctx, v) + it.RemoveStandardIDs = data + case "clearStandard": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStandard")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasSettingWith = data - case "hasDocumentdata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocumentdata")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClearStandard = data + case "addNarrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addNarrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasDocumentdata = data - case "hasDocumentdataWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocumentdataWith")) - data, err := ec.unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx, v) + it.AddNarrativeIDs = data + case "removeNarrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeNarrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasDocumentdataWith = data - case "hasEntitlements": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlements")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.RemoveNarrativeIDs = data + case "clearNarratives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNarratives")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasEntitlements = data - case "hasEntitlementsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementsWith")) - data, err := ec.unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx, v) + it.ClearNarratives = data + case "addRiskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addRiskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasEntitlementsWith = data - case "hasOrganizationEntitlement": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationEntitlement")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AddRiskIDs = data + case "removeRiskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeRiskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasOrganizationEntitlement = data - case "hasOrganizationEntitlementWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationEntitlementWith")) - data, err := ec.unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx, v) + it.RemoveRiskIDs = data + case "clearRisks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearRisks")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasOrganizationEntitlementWith = data - case "hasPersonalAccessTokens": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPersonalAccessTokens")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClearRisks = data + case "addActionplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addActionplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasPersonalAccessTokens = data - case "hasPersonalAccessTokensWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPersonalAccessTokensWith")) - data, err := ec.unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx, v) + it.AddActionplanIDs = data + case "removeActionplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeActionplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasPersonalAccessTokensWith = data - case "hasAPITokens": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAPITokens")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.RemoveActionplanIDs = data + case "clearActionplans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearActionplans")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasAPITokens = data - case "hasAPITokensWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAPITokensWith")) - data, err := ec.unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx, v) + it.ClearActionplans = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateControlObjectiveInput(ctx context.Context, obj interface{}) (generated.UpdateControlObjectiveInput, error) { + var it generated.UpdateControlObjectiveInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "status", "clearStatus", "controlObjectiveType", "clearControlObjectiveType", "version", "clearVersion", "controlNumber", "clearControlNumber", "family", "clearFamily", "class", "clearClass", "source", "clearSource", "mappedFrameworks", "clearMappedFrameworks", "details", "clearDetails", "addPolicyIDs", "removePolicyIDs", "clearPolicy", "addControlIDs", "removeControlIDs", "clearControls", "addProcedureIDs", "removeProcedureIDs", "clearProcedures", "addRiskIDs", "removeRiskIDs", "clearRisks", "addSubcontrolIDs", "removeSubcontrolIDs", "clearSubcontrols", "addStandardIDs", "removeStandardIDs", "clearStandard", "addNarrativeIDs", "removeNarrativeIDs", "clearNarratives"} + 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.HasAPITokensWith = data - case "hasOauthprovider": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOauthprovider")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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.HasOauthprovider = data - case "hasOauthproviderWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOauthproviderWith")) - data, err := ec.unmarshalOOauthProviderWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInputᚄ(ctx, v) + 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.HasOauthproviderWith = data - case "hasUsers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUsers")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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.HasUsers = data - case "hasUsersWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUsersWith")) - data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) + 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.HasUsersWith = data - case "hasInvites": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInvites")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + 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.HasInvites = data - case "hasInvitesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInvitesWith")) - data, err := ec.unmarshalOInviteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInputᚄ(ctx, v) + it.ClearDescription = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasInvitesWith = data - case "hasSubscribers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubscribers")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Status = data + case "clearStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStatus")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasSubscribers = data - case "hasSubscribersWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubscribersWith")) - data, err := ec.unmarshalOSubscriberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInputᚄ(ctx, v) + it.ClearStatus = data + case "controlObjectiveType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasSubscribersWith = data - case "hasWebhooks": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWebhooks")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ControlObjectiveType = data + case "clearControlObjectiveType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControlObjectiveType")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasWebhooks = data - case "hasWebhooksWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasWebhooksWith")) - data, err := ec.unmarshalOWebhookWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInputᚄ(ctx, v) + it.ClearControlObjectiveType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasWebhooksWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Version = data + case "clearVersion": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearVersion")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + it.ClearVersion = data + case "controlNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEventsWith = data - case "hasSecrets": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSecrets")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ControlNumber = data + case "clearControlNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControlNumber")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasSecrets = data - case "hasSecretsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSecretsWith")) - data, err := ec.unmarshalOHushWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInputᚄ(ctx, v) + it.ClearControlNumber = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasSecretsWith = data - case "hasFeatures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeatures")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Family = data + case "clearFamily": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFamily")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasFeatures = data - case "hasFeaturesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFeaturesWith")) - data, err := ec.unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInputᚄ(ctx, v) + it.ClearFamily = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasFeaturesWith = data - case "hasFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Class = data + case "clearClass": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearClass")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasFiles = data - case "hasFilesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + it.ClearClass = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasFilesWith = data - case "hasEntitlementplans": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplans")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Source = data + case "clearSource": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSource")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasEntitlementplans = data - case "hasEntitlementplansWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplansWith")) - data, err := ec.unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx, v) + it.ClearSource = data + case "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasEntitlementplansWith = data - case "hasEntitlementplanfeatures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplanfeatures")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.MappedFrameworks = data + case "clearMappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearMappedFrameworks")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasEntitlementplanfeatures = data - case "hasEntitlementplanfeaturesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitlementplanfeaturesWith")) - data, err := ec.unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx, v) + it.ClearMappedFrameworks = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { return it, err } - it.HasEntitlementplanfeaturesWith = data - case "hasEntities": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntities")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Details = data + case "clearDetails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDetails")) + data, err := ec.unmarshalOBoolean2bool(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ᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + it.ClearDetails = data + case "addPolicyIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPolicyIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasEntitiesWith = data - case "hasEntitytypes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitytypes")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AddPolicyIDs = data + case "removePolicyIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePolicyIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasEntitytypes = data - case "hasEntitytypesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitytypesWith")) - data, err := ec.unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInputᚄ(ctx, v) + it.RemovePolicyIDs = data + case "clearPolicy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPolicy")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasEntitytypesWith = data - case "hasContacts": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContacts")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClearPolicy = data + case "addControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasContacts = data - case "hasContactsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContactsWith")) - data, err := ec.unmarshalOContactWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(ctx, v) + it.AddControlIDs = data + case "removeControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasContactsWith = data - case "hasNotes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNotes")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.RemoveControlIDs = data + case "clearControls": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControls")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasNotes = data - case "hasNotesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasNotesWith")) - data, err := ec.unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInputᚄ(ctx, v) + it.ClearControls = data + case "addProcedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addProcedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasNotesWith = data - case "hasMembers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasMembers")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AddProcedureIDs = data + case "removeProcedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeProcedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasMembers = data - case "hasMembersWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasMembersWith")) - data, err := ec.unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInputᚄ(ctx, v) + it.RemoveProcedureIDs = data + case "clearProcedures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProcedures")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasMembersWith = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputPersonalAccessTokenWhereInput(ctx context.Context, obj interface{}) (generated.PersonalAccessTokenWhereInput, error) { - var it generated.PersonalAccessTokenWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "expiresAt", "expiresAtNEQ", "expiresAtIn", "expiresAtNotIn", "expiresAtGT", "expiresAtGTE", "expiresAtLT", "expiresAtLTE", "expiresAtIsNil", "expiresAtNotNil", "lastUsedAt", "lastUsedAtNEQ", "lastUsedAtIn", "lastUsedAtNotIn", "lastUsedAtGT", "lastUsedAtGTE", "lastUsedAtLT", "lastUsedAtLTE", "lastUsedAtIsNil", "lastUsedAtNotNil", "hasOwner", "hasOwnerWith", "hasOrganizations", "hasOrganizationsWith", "hasEvents", "hasEventsWith"} - 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.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) + it.ClearProcedures = data + case "addRiskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addRiskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx, v) + it.AddRiskIDs = data + case "removeRiskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeRiskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx, v) + it.RemoveRiskIDs = data + case "clearRisks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearRisks")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearRisks = data + case "addSubcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSubcontrolIDs")) + 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) + it.AddSubcontrolIDs = data + case "removeSubcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSubcontrolIDs")) + 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) + it.RemoveSubcontrolIDs = data + case "clearSubcontrols": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubcontrols")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IDIn = data - case "idNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + it.ClearSubcontrols = data + case "addStandardIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addStandardIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AddStandardIDs = data + case "removeStandardIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeStandardIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RemoveStandardIDs = data + case "clearStandard": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStandard")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearStandard = data + case "addNarrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addNarrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AddNarrativeIDs = data + case "removeNarrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeNarrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RemoveNarrativeIDs = data + case "clearNarratives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNarratives")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearNarratives = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateDocumentDataInput(ctx context.Context, obj interface{}) (generated.UpdateDocumentDataInput, error) { + var it generated.UpdateDocumentDataInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "data", "ownerID", "clearOwner", "templateID", "addEntityIDs", "removeEntityIDs", "clearEntity", "addFileIDs", "removeFileIDs", "clearFiles"} + 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.IDContainsFold = data - case "createdAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClearTags = data + case "data": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("data")) + data, err := ec.unmarshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, v) if err != nil { return it, err } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.Data = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.CreatedAtGT = data - case "createdAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearOwner = data + case "templateID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateID")) + data, err := ec.unmarshalOID2ᚖstring(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) + it.TemplateID = data + case "addEntityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntityIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddEntityIDs = data + case "removeEntityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntityIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedAtLTE = data - case "createdAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + it.RemoveEntityIDs = data + case "clearEntity": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntity")) 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) + it.ClearEntity = data + case "addFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddFileIDs = data + case "removeFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.RemoveFileIDs = data + case "clearFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClearFiles = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateEntitlementInput(ctx context.Context, obj interface{}) (generated.UpdateEntitlementInput, error) { + var it generated.UpdateEntitlementInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "externalCustomerID", "clearExternalCustomerID", "externalSubscriptionID", "clearExternalSubscriptionID", "expiresAt", "clearExpiresAt", "cancelled", "ownerID", "clearOwner", "addEventIDs", "removeEventIDs", "clearEvents"} + 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.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + 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.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.UpdatedAtGT = data - case "updatedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearTags = data + case "externalCustomerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerID")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.ExternalCustomerID = data + case "clearExternalCustomerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearExternalCustomerID")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearExternalCustomerID = data + case "externalSubscriptionID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtLTE = data - case "updatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + it.ExternalSubscriptionID = data + case "clearExternalSubscriptionID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearExternalSubscriptionID")) 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) + it.ClearExternalSubscriptionID = data + case "expiresAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.UpdatedAtNotNil = data - case "createdBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ExpiresAt = data + case "clearExpiresAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearExpiresAt")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearExpiresAt = data + case "cancelled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cancelled")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.Cancelled = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖ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) + 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.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearOwner = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearEvents = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateEntitlementPlanFeatureInput(ctx context.Context, obj interface{}) (generated.UpdateEntitlementPlanFeatureInput, error) { + var it generated.UpdateEntitlementPlanFeatureInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "metadata", "clearMetadata", "ownerID", "clearOwner", "addEventIDs", "removeEventIDs", "clearEvents"} + 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.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.CreatedByContains = data - case "createdByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.CreatedByHasPrefix = data - case "createdByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearTags = data + case "metadata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) + data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { return it, err } - it.CreatedByHasSuffix = data - case "createdByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + 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.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.CreatedByNotNil = data - case "createdByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.CreatedByEqualFold = data - case "createdByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearOwner = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByNEQ = data - case "updatedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + it.ClearEvents = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateEntitlementPlanInput(ctx context.Context, obj interface{}) (generated.UpdateEntitlementPlanInput, error) { + var it generated.UpdateEntitlementPlanInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "displayName", "clearDisplayName", "description", "clearDescription", "metadata", "clearMetadata", "ownerID", "clearOwner", "addEntitlementIDs", "removeEntitlementIDs", "clearEntitlements", "addBaseFeatureIDs", "removeBaseFeatureIDs", "clearBaseFeatures", "addEventIDs", "removeEventIDs", "clearEvents"} + 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.UpdatedByIn = data - case "updatedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + 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.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + it.ClearTags = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DisplayName = data + case "clearDisplayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDisplayName")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + it.ClearDisplayName = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.UpdatedByContains = data - case "updatedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearDescription = data + case "metadata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) + data, err := ec.unmarshalOMap2map(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) + 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.UpdatedByHasSuffix = data - case "updatedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + 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.UpdatedByNotNil = data - case "updatedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearOwner = data + case "addEntitlementIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntitlementIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddEntitlementIDs = data + case "removeEntitlementIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntitlementIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.RemoveEntitlementIDs = data + case "clearEntitlements": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntitlements")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearEntitlements = data + case "addBaseFeatureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addBaseFeatureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.AddBaseFeatureIDs = data + case "removeBaseFeatureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeBaseFeatureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.RemoveBaseFeatureIDs = data + case "clearBaseFeatures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBaseFeatures")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearBaseFeatures = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearEvents = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateEntityInput(ctx context.Context, obj interface{}) (generated.UpdateEntityInput, error) { + var it generated.UpdateEntityInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "clearName", "displayName", "clearDisplayName", "description", "clearDescription", "domains", "appendDomains", "clearDomains", "status", "clearStatus", "ownerID", "clearOwner", "addContactIDs", "removeContactIDs", "clearContacts", "addDocumentIDs", "removeDocumentIDs", "clearDocuments", "addNoteIDs", "removeNoteIDs", "clearNotes", "addFileIDs", "removeFileIDs", "clearFiles", "entityTypeID", "clearEntityType", "note"} + 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.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + 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.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + 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.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Name = data + case "clearName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearName")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClearName = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.DisplayName = data + case "clearDisplayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDisplayName")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + it.ClearDisplayName = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearDescription = data + case "domains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domains")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Domains = data + case "appendDomains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendDomains")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AppendDomains = data + case "clearDomains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDomains")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + it.ClearDomains = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Status = data + case "clearStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStatus")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearStatus = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + 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.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearOwner = data + case "addContactIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addContactIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddContactIDs = data + case "removeContactIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeContactIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveContactIDs = data + case "clearContacts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearContacts")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Name = data - case "nameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearContacts = data + case "addDocumentIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addDocumentIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameNEQ = data - case "nameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.AddDocumentIDs = data + case "removeDocumentIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeDocumentIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameIn = data - case "nameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.RemoveDocumentIDs = data + case "clearDocuments": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDocuments")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearDocuments = data + case "addNoteIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addNoteIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddNoteIDs = data + case "removeNoteIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeNoteIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveNoteIDs = data + case "clearNotes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNotes")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearNotes = data + case "addFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddFileIDs = data + case "removeFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemoveFileIDs = data + case "clearFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameHasPrefix = data - case "nameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearFiles = data + case "entityTypeID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeID")) + data, err := ec.unmarshalOID2ᚖ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) + it.EntityTypeID = data + case "clearEntityType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntityType")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameEqualFold = data - case "nameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearEntityType = data + case "note": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("note")) + data, err := ec.unmarshalOCreateNoteInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNoteInput(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - case "expiresAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err = ec.resolvers.UpdateEntityInput().Note(ctx, &it, data); err != nil { + return it, err + } + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateEntityTypeInput(ctx context.Context, obj interface{}) (generated.UpdateEntityTypeInput, error) { + var it generated.UpdateEntityTypeInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "ownerID", "clearOwner", "addEntityIDs", "removeEntityIDs", "clearEntities"} + 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.ExpiresAt = data - case "expiresAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.ExpiresAtNEQ = data - case "expiresAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + 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.ExpiresAtIn = data - case "expiresAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + 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.ExpiresAtNotIn = data - case "expiresAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.Name = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresAtGT = data - case "expiresAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.ExpiresAtGTE = data - case "expiresAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearOwner = data + case "addEntityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntityIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresAtLT = data - case "expiresAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.AddEntityIDs = data + case "removeEntityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntityIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresAtLTE = data - case "expiresAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtIsNil")) + it.RemoveEntityIDs = data + case "clearEntities": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntities")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ExpiresAtIsNil = data - case "expiresAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearEntities = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateEventInput(ctx context.Context, obj interface{}) (generated.UpdateEventInput, error) { + var it generated.UpdateEventInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "eventID", "clearEventID", "correlationID", "clearCorrelationID", "eventType", "metadata", "clearMetadata", "addUserIDs", "removeUserIDs", "clearUser", "addGroupIDs", "removeGroupIDs", "clearGroup", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegration", "addOrganizationIDs", "removeOrganizationIDs", "clearOrganization", "addInviteIDs", "removeInviteIDs", "clearInvite", "addFeatureIDs", "removeFeatureIDs", "clearFeature", "addEntitlementplanIDs", "removeEntitlementplanIDs", "clearEntitlementplan", "addPersonalAccessTokenIDs", "removePersonalAccessTokenIDs", "clearPersonalAccessToken", "addOauth2tokenIDs", "removeOauth2tokenIDs", "clearOauth2token", "addHushIDs", "removeHushIDs", "clearHush", "addEntitlementIDs", "removeEntitlementIDs", "clearEntitlement", "addWebhookIDs", "removeWebhookIDs", "clearWebhook", "addSubscriberIDs", "removeSubscriberIDs", "clearSubscriber", "addFileIDs", "removeFileIDs", "clearFile"} + 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.ExpiresAtNotNil = data - case "lastUsedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.LastUsedAt = data - case "lastUsedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.LastUsedAtNEQ = data - case "lastUsedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClearTags = data + case "eventID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedAtIn = data - case "lastUsedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.EventID = data + case "clearEventID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEventID")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.LastUsedAtNotIn = data - case "lastUsedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearEventID = data + case "correlationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedAtGT = data - case "lastUsedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.CorrelationID = data + case "clearCorrelationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearCorrelationID")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.LastUsedAtGTE = data - case "lastUsedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearCorrelationID = data + case "eventType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastUsedAtLT = data - case "lastUsedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.EventType = data + case "metadata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) + data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { return it, err } - it.LastUsedAtLTE = data - case "lastUsedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtIsNil")) + 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.LastUsedAtIsNil = data - case "lastUsedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearMetadata = data + case "addUserIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUserIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.LastUsedAtNotNil = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AddUserIDs = data + case "removeUserIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUserIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasOwner = data - case "hasOwnerWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) - data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) + it.RemoveUserIDs = data + case "clearUser": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUser")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasOwnerWith = data - case "hasOrganizations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizations")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClearUser = data + case "addGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasOrganizations = data - case "hasOrganizationsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationsWith")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.AddGroupIDs = data + case "removeGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasOrganizationsWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.RemoveGroupIDs = data + case "clearGroup": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGroup")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + it.ClearGroup = data + case "addIntegrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasEventsWith = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputSubscriberWhereInput(ctx context.Context, obj interface{}) (generated.SubscriberWhereInput, error) { - var it generated.SubscriberWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailGT", "emailGTE", "emailLT", "emailLTE", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "phoneNumber", "phoneNumberNEQ", "phoneNumberIn", "phoneNumberNotIn", "phoneNumberGT", "phoneNumberGTE", "phoneNumberLT", "phoneNumberLTE", "phoneNumberContains", "phoneNumberHasPrefix", "phoneNumberHasSuffix", "phoneNumberIsNil", "phoneNumberNotNil", "phoneNumberEqualFold", "phoneNumberContainsFold", "verifiedEmail", "verifiedEmailNEQ", "verifiedPhone", "verifiedPhoneNEQ", "active", "activeNEQ", "hasOwner", "hasOwnerWith", "hasEvents", "hasEventsWith"} - 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.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, v) + it.AddIntegrationIDs = data + case "removeIntegrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOSubscriberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInputᚄ(ctx, v) + it.RemoveIntegrationIDs = data + case "clearIntegration": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegration")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOSubscriberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInputᚄ(ctx, v) + it.ClearIntegration = data + case "addOrganizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddOrganizationIDs = data + case "removeOrganizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationIDs")) + 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) + it.RemoveOrganizationIDs = data + case "clearOrganization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganization")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IDNEQ = data - case "idIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + it.ClearOrganization = data + case "addInviteIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addInviteIDs")) 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")) + it.AddInviteIDs = data + case "removeInviteIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeInviteIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RemoveInviteIDs = data + case "clearInvite": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearInvite")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearInvite = data + case "addFeatureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFeatureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AddFeatureIDs = data + case "removeFeatureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFeatureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RemoveFeatureIDs = data + case "clearFeature": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFeature")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearFeature = data + case "addEntitlementplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntitlementplanIDs")) + 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) + it.AddEntitlementplanIDs = data + case "removeEntitlementplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntitlementplanIDs")) + 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) + it.RemoveEntitlementplanIDs = data + case "clearEntitlementplan": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntitlementplan")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearEntitlementplan = data + case "addPersonalAccessTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPersonalAccessTokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.AddPersonalAccessTokenIDs = data + case "removePersonalAccessTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePersonalAccessTokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.RemovePersonalAccessTokenIDs = data + case "clearPersonalAccessToken": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPersonalAccessToken")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearPersonalAccessToken = data + case "addOauth2tokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOauth2tokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddOauth2tokenIDs = data + case "removeOauth2tokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOauth2tokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.RemoveOauth2tokenIDs = data + case "clearOauth2token": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOauth2token")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearOauth2token = data + case "addHushIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addHushIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddHushIDs = data + case "removeHushIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeHushIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + it.RemoveHushIDs = data + case "clearHush": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearHush")) 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) + it.ClearHush = data + case "addEntitlementIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntitlementIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.AddEntitlementIDs = data + case "removeEntitlementIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntitlementIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.RemoveEntitlementIDs = data + case "clearEntitlement": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntitlement")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClearEntitlement = data + case "addWebhookIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWebhookIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.AddWebhookIDs = data + case "removeWebhookIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWebhookIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.RemoveWebhookIDs = data + case "clearWebhook": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWebhook")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearWebhook = data + case "addSubscriberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSubscriberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddSubscriberIDs = data + case "removeSubscriberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSubscriberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedAtLTE = data - case "updatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + it.RemoveSubscriberIDs = data + case "clearSubscriber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubscriber")) 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) + it.ClearSubscriber = data + case "addFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddFileIDs = data + case "removeFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemoveFileIDs = data + case "clearFile": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFile")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByNEQ = data - case "createdByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + it.ClearFile = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateFeatureInput(ctx context.Context, obj interface{}) (generated.UpdateFeatureInput, error) { + var it generated.UpdateFeatureInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "displayName", "clearDisplayName", "enabled", "description", "clearDescription", "metadata", "clearMetadata", "ownerID", "clearOwner", "addPlanIDs", "removePlanIDs", "clearPlans", "addEventIDs", "removeEventIDs", "clearEvents"} + 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.CreatedByIn = data - case "createdByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + 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.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + it.ClearTags = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DisplayName = data + case "clearDisplayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDisplayName")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearDisplayName = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + it.Enabled = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) 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) + 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.CreatedByHasPrefix = data - case "createdByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearDescription = data + case "metadata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) + data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { return it, err } - it.CreatedByHasSuffix = data - case "createdByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) + 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.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.CreatedByNotNil = data - case "createdByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.CreatedByEqualFold = data - case "createdByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearOwner = data + case "addPlanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPlanIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddPlanIDs = data + case "removePlanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePlanIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemovePlanIDs = data + case "clearPlans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPlans")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearPlans = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearEvents = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateFileInput(ctx context.Context, obj interface{}) (generated.UpdateFileInput, error) { + var it generated.UpdateFileInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "providedFileName", "providedFileExtension", "providedFileSize", "clearProvidedFileSize", "persistedFileSize", "clearPersistedFileSize", "detectedMimeType", "clearDetectedMimeType", "md5Hash", "clearMd5Hash", "detectedContentType", "storeKey", "clearStoreKey", "categoryType", "clearCategoryType", "uri", "clearURI", "storageScheme", "clearStorageScheme", "storageVolume", "clearStorageVolume", "storagePath", "clearStoragePath", "addUserIDs", "removeUserIDs", "clearUser", "addOrganizationIDs", "removeOrganizationIDs", "clearOrganization", "addGroupIDs", "removeGroupIDs", "clearGroup", "addContactIDs", "removeContactIDs", "clearContact", "addEntityIDs", "removeEntityIDs", "clearEntity", "addUsersettingIDs", "removeUsersettingIDs", "clearUsersetting", "addOrganizationsettingIDs", "removeOrganizationsettingIDs", "clearOrganizationsetting", "addTemplateIDs", "removeTemplateIDs", "clearTemplate", "addDocumentdatumIDs", "removeDocumentdatumIDs", "clearDocumentdata", "addEventIDs", "removeEventIDs", "clearEvents"} + 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.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + it.ClearTags = data + case "providedFileName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileName")) 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")) + it.ProvidedFileName = data + case "providedFileExtension": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtension")) 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) + it.ProvidedFileExtension = data + case "providedFileSize": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSize")) + data, err := ec.unmarshalOInt2ᚖint64(ctx, v) if err != nil { return it, err } - it.UpdatedByHasSuffix = data - case "updatedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) + it.ProvidedFileSize = data + case "clearProvidedFileSize": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProvidedFileSize")) 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) + it.ClearProvidedFileSize = data + case "persistedFileSize": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSize")) + data, err := ec.unmarshalOInt2ᚖint64(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) + it.PersistedFileSize = data + case "clearPersistedFileSize": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPersistedFileSize")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByEqualFold = data - case "updatedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContainsFold")) + it.ClearPersistedFileSize = data + case "detectedMimeType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeType")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.DetectedMimeType = data + case "clearDetectedMimeType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDetectedMimeType")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearDetectedMimeType = data + case "md5Hash": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5Hash")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.Md5Hash = data + case "clearMd5Hash": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearMd5Hash")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClearMd5Hash = data + case "detectedContentType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.DetectedContentType = data + case "storeKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKey")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.StoreKey = data + case "clearStoreKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStoreKey")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearStoreKey = data + case "categoryType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.CategoryType = data + case "clearCategoryType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearCategoryType")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearCategoryType = data + case "uri": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uri")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + it.URI = data + case "clearURI": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearURI")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + it.ClearURI = data + case "storageScheme": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageScheme")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.StorageScheme = data + case "clearStorageScheme": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStorageScheme")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClearStorageScheme = data + case "storageVolume": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolume")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.StorageVolume = data + case "clearStorageVolume": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStorageVolume")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + it.ClearStorageVolume = data + case "storagePath": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePath")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.StoragePath = data + case "clearStoragePath": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStoragePath")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearStoragePath = data + case "addUserIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUserIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddUserIDs = data + case "removeUserIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUserIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveUserIDs = data + case "clearUser": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUser")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearUser = data + case "addOrganizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddOrganizationIDs = data + case "removeOrganizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + it.RemoveOrganizationIDs = data + case "clearOrganization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganization")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearOrganization = data + case "addGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddGroupIDs = data + case "removeGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveGroupIDs = data + case "clearGroup": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGroup")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearGroup = data + case "addContactIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addContactIDs")) + 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) + it.AddContactIDs = data + case "removeContactIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeContactIDs")) + 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) + it.RemoveContactIDs = data + case "clearContact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearContact")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDIn = data - case "ownerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + it.ClearContact = data + case "addEntityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntityIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AddEntityIDs = data + case "removeEntityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntityIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RemoveEntityIDs = data + case "clearEntity": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntity")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearEntity = data + case "addUsersettingIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUsersettingIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AddUsersettingIDs = data + case "removeUsersettingIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUsersettingIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RemoveUsersettingIDs = data + case "clearUsersetting": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUsersetting")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearUsersetting = data + case "addOrganizationsettingIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationsettingIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AddOrganizationsettingIDs = data + case "removeOrganizationsettingIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationsettingIDs")) + 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")) + it.RemoveOrganizationsettingIDs = data + case "clearOrganizationsetting": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganizationsetting")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + it.ClearOrganizationsetting = data + case "addTemplateIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTemplateIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddTemplateIDs = data + case "removeTemplateIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTemplateIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveTemplateIDs = data + case "clearTemplate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTemplate")) 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) + it.ClearTemplate = data + case "addDocumentdatumIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addDocumentdatumIDs")) + 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) + it.AddDocumentdatumIDs = data + case "removeDocumentdatumIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeDocumentdatumIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDContainsFold = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveDocumentdatumIDs = data + case "clearDocumentdata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDocumentdata")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearDocumentdata = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EmailNotIn = data - case "emailGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearEvents = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateGroupInput(ctx context.Context, obj interface{}) (generated.UpdateGroupInput, error) { + var it generated.UpdateGroupInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "gravatarLogoURL", "clearGravatarLogoURL", "logoURL", "clearLogoURL", "displayName", "ownerID", "clearOwner", "settingID", "addUserIDs", "removeUserIDs", "clearUsers", "addEventIDs", "removeEventIDs", "clearEvents", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegrations", "addFileIDs", "removeFileIDs", "clearFiles", "addGroupMembers", "updateGroupSettings"} + 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.EmailGT = data - case "emailGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.EmailGTE = data - case "emailLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.EmailLT = data - case "emailLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLTE")) + 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.EmailLTE = data - case "emailContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailContains")) + 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.EmailContains = data - case "emailHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.EmailHasPrefix = data - case "emailHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailHasSuffix")) + it.ClearDescription = data + case "gravatarLogoURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gravatarLogoURL")) 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) + it.GravatarLogoURL = data + case "clearGravatarLogoURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGravatarLogoURL")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EmailEqualFold = data - case "emailContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailContainsFold")) + it.ClearGravatarLogoURL = data + case "logoURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoURL")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailContainsFold = data - case "phoneNumber": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.LogoURL = data + case "clearLogoURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLogoURL")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.PhoneNumber = data - case "phoneNumberNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNEQ")) + it.ClearLogoURL = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberNEQ = data - case "phoneNumberIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.DisplayName = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberIn = data - case "phoneNumberNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.PhoneNumberNotIn = data - case "phoneNumberGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearOwner = data + case "settingID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.PhoneNumberGT = data - case "phoneNumberGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.SettingID = data + case "addUserIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUserIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.PhoneNumberGTE = data - case "phoneNumberLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddUserIDs = data + case "removeUserIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUserIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.PhoneNumberLT = data - case "phoneNumberLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveUserIDs = data + case "clearUsers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUsers")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.PhoneNumberLTE = data - case "phoneNumberContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearUsers = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.PhoneNumberContains = data - case "phoneNumberHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.PhoneNumberHasPrefix = data - case "phoneNumberHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.PhoneNumberHasSuffix = data - case "phoneNumberIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearEvents = data + case "addIntegrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.PhoneNumberIsNil = data - case "phoneNumberNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AddIntegrationIDs = data + case "removeIntegrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.PhoneNumberNotNil = data - case "phoneNumberEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveIntegrationIDs = data + case "clearIntegrations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegrations")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.PhoneNumberEqualFold = data - case "phoneNumberContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumberContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearIntegrations = data + case "addFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.PhoneNumberContainsFold = data - case "verifiedEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verifiedEmail")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AddFileIDs = data + case "removeFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.VerifiedEmail = data - case "verifiedEmailNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verifiedEmailNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.RemoveFileIDs = data + case "clearFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.VerifiedEmailNEQ = data - case "verifiedPhone": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verifiedPhone")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClearFiles = data + case "addGroupMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupMembers")) + data, err := ec.unmarshalOCreateGroupMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInputᚄ(ctx, v) if err != nil { return it, err } - it.VerifiedPhone = data - case "verifiedPhoneNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verifiedPhoneNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { + if err = ec.resolvers.UpdateGroupInput().AddGroupMembers(ctx, &it, data); err != nil { return it, err } - it.VerifiedPhoneNEQ = data - case "active": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + case "updateGroupSettings": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updateGroupSettings")) + data, err := ec.unmarshalOUpdateGroupSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupSettingInput(ctx, v) if err != nil { return it, err } - it.Active = data - case "activeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("activeNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { + if err = ec.resolvers.UpdateGroupInput().UpdateGroupSettings(ctx, &it, data); err != nil { return it, err } - it.ActiveNEQ = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateGroupMembershipInput(ctx context.Context, obj interface{}) (generated.UpdateGroupMembershipInput, error) { + var it generated.UpdateGroupMembershipInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"role", "addEventIDs", "removeEventIDs", "clearEvents"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOGroupMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.Role = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasOwnerWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasEventsWith = data + it.ClearEvents = data } } return it, nil } -func (ec *executionContext) unmarshalInputTFASettingWhereInput(ctx context.Context, obj interface{}) (generated.TFASettingWhereInput, error) { - var it generated.TFASettingWhereInput +func (ec *executionContext) unmarshalInputUpdateGroupSettingInput(ctx context.Context, obj interface{}) (generated.UpdateGroupSettingInput, error) { + var it generated.UpdateGroupSettingInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "tfaSecret", "tfaSecretNEQ", "tfaSecretIn", "tfaSecretNotIn", "tfaSecretGT", "tfaSecretGTE", "tfaSecretLT", "tfaSecretLTE", "tfaSecretContains", "tfaSecretHasPrefix", "tfaSecretHasSuffix", "tfaSecretIsNil", "tfaSecretNotNil", "tfaSecretEqualFold", "tfaSecretContainsFold", "verified", "verifiedNEQ", "totpAllowed", "totpAllowedNEQ", "totpAllowedIsNil", "totpAllowedNotNil", "hasOwner", "hasOwnerWith"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "visibility", "joinPolicy", "syncToSlack", "clearSyncToSlack", "syncToGithub", "clearSyncToGithub", "groupID", "clearGroup"} 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.unmarshalOTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOTFASettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInputᚄ(ctx, v) + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOTFASettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInputᚄ(ctx, v) + 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.Or = data - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.ID = data - case "idNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearTags = data + case "visibility": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibility")) + data, err := ec.unmarshalOGroupSettingVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(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) + it.Visibility = data + case "joinPolicy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicy")) + data, err := ec.unmarshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(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) + it.JoinPolicy = data + case "syncToSlack": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlack")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.SyncToSlack = data + case "clearSyncToSlack": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSyncToSlack")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearSyncToSlack = data + case "syncToGithub": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithub")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.SyncToGithub = data + case "clearSyncToGithub": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSyncToGithub")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + it.ClearSyncToGithub = data + case "groupID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.IDEqualFold = data - case "idContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearGroup = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateHushInput(ctx context.Context, obj interface{}) (generated.UpdateHushInput, error) { + var it generated.UpdateHushInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"name", "description", "clearDescription", "kind", "clearKind", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegrations", "addOrganizationIDs", "removeOrganizationIDs", "clearOrganization", "addEventIDs", "removeEventIDs", "clearEvents"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖ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) + 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.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClearDescription = data + case "kind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.Kind = data + case "clearKind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearKind")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearKind = data + case "addIntegrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddIntegrationIDs = data + case "removeIntegrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.RemoveIntegrationIDs = data + case "clearIntegrations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegrations")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearIntegrations = data + case "addOrganizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddOrganizationIDs = data + case "removeOrganizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + it.RemoveOrganizationIDs = data + case "clearOrganization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganization")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedAtNotNil = data - case "updatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearOrganization = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearEvents = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateIntegrationInput(ctx context.Context, obj interface{}) (generated.UpdateIntegrationInput, error) { + var it generated.UpdateIntegrationInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "kind", "clearKind", "ownerID", "clearOwner", "addSecretIDs", "removeSecretIDs", "clearSecrets", "addOauth2tokenIDs", "removeOauth2tokenIDs", "clearOauth2tokens", "addEventIDs", "removeEventIDs", "clearEvents", "addWebhookIDs", "removeWebhookIDs", "clearWebhooks"} + 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.UpdatedAtGT = data - case "updatedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.UpdatedAtGTE = data - case "updatedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.UpdatedAtLT = data - case "updatedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.UpdatedAtLTE = data - case "updatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.UpdatedAtIsNil = data - case "updatedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + 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.UpdatedAtNotNil = data - case "createdBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + it.ClearDescription = data + case "kind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) 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) + it.Kind = data + case "clearKind": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearKind")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearKind = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖ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) + 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.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearOwner = data + case "addSecretIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSecretIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddSecretIDs = data + case "removeSecretIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSecretIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveSecretIDs = data + case "clearSecrets": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSecrets")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearSecrets = data + case "addOauth2tokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOauth2tokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddOauth2tokenIDs = data + case "removeOauth2tokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOauth2tokenIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemoveOauth2tokenIDs = data + case "clearOauth2tokens": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOauth2tokens")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearOauth2tokens = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) 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) + it.ClearEvents = data + case "addWebhookIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWebhookIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddWebhookIDs = data + case "removeWebhookIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWebhookIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemoveWebhookIDs = data + case "clearWebhooks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWebhooks")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByNEQ = data - case "updatedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIn")) + it.ClearWebhooks = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateInternalPolicyInput(ctx context.Context, obj interface{}) (generated.UpdateInternalPolicyInput, error) { + var it generated.UpdateInternalPolicyInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "status", "clearStatus", "policyType", "clearPolicyType", "version", "clearVersion", "purposeAndScope", "clearPurposeAndScope", "background", "clearBackground", "details", "clearDetails", "addControlobjectiveIDs", "removeControlobjectiveIDs", "clearControlobjectives", "addControlIDs", "removeControlIDs", "clearControls", "addProcedureIDs", "removeProcedureIDs", "clearProcedures", "addNarrativeIDs", "removeNarrativeIDs", "clearNarratives"} + 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.UpdatedByIn = data - case "updatedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotIn")) + 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.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + 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.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + 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.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + it.Description = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Status = data + case "clearStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStatus")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByContains = data - case "updatedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByHasPrefix")) + it.ClearStatus = data + case "policyType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("policyType")) 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) + it.PolicyType = data + case "clearPolicyType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPolicyType")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearPolicyType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + it.Version = data + case "clearVersion": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearVersion")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByNotNil = data - case "updatedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByEqualFold")) + it.ClearVersion = data + case "purposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScope")) 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) + it.PurposeAndScope = data + case "clearPurposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPurposeAndScope")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearPurposeAndScope = data + case "background": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("background")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.Background = data + case "clearBackground": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBackground")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClearBackground = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.Details = data + case "clearDetails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDetails")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearDetails = data + case "addControlobjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlobjectiveIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.AddControlobjectiveIDs = data + case "removeControlobjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeControlobjectiveIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.RemoveControlobjectiveIDs = data + case "clearControlobjectives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControlobjectives")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearControlobjectives = data + case "addControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AddControlIDs = data + case "removeControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + it.RemoveControlIDs = data + case "clearControls": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControls")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearControls = data + case "addProcedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addProcedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddProcedureIDs = data + case "removeProcedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeProcedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.RemoveProcedureIDs = data + case "clearProcedures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProcedures")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClearProcedures = data + case "addNarrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addNarrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddNarrativeIDs = data + case "removeNarrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeNarrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveNarrativeIDs = data + case "clearNarratives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNarratives")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearNarratives = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateInviteInput(ctx context.Context, obj interface{}) (generated.UpdateInviteInput, error) { + var it generated.UpdateInviteInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"expires", "clearExpires", "status", "role", "sendAttempts", "ownerID", "clearOwner", "addEventIDs", "removeEventIDs", "clearEvents"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "expires": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expires")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Expires = data + case "clearExpires": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearExpires")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearExpires = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOInviteInviteStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Status = data + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOInviteRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Role = data + case "sendAttempts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttempts")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SendAttempts = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + 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.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearOwner = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "tfaSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecret")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TfaSecret = data - case "tfaSecretNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearEvents = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateNarrativeInput(ctx context.Context, obj interface{}) (generated.UpdateNarrativeInput, error) { + var it generated.UpdateNarrativeInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "satisfies", "clearSatisfies", "details", "clearDetails", "addPolicyIDs", "removePolicyIDs", "clearPolicy", "addControlIDs", "removeControlIDs", "clearControl", "addProcedureIDs", "removeProcedureIDs", "clearProcedure", "addControlobjectiveIDs", "removeControlobjectiveIDs", "clearControlobjective"} + 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.TfaSecretNEQ = data - case "tfaSecretIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretIn")) + 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.TfaSecretIn = data - case "tfaSecretNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.TfaSecretNotIn = data - case "tfaSecretGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretGT")) + 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.TfaSecretGT = data - case "tfaSecretGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretGTE")) + 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.TfaSecretGTE = data - case "tfaSecretLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.TfaSecretLT = data - case "tfaSecretLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretLTE")) + it.ClearDescription = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TfaSecretLTE = data - case "tfaSecretContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Satisfies = data + case "clearSatisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSatisfies")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TfaSecretContains = data - case "tfaSecretHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearSatisfies = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { return it, err } - it.TfaSecretHasPrefix = data - case "tfaSecretHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Details = data + case "clearDetails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDetails")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TfaSecretHasSuffix = data - case "tfaSecretIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearDetails = data + case "addPolicyIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPolicyIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.TfaSecretIsNil = data - case "tfaSecretNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AddPolicyIDs = data + case "removePolicyIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePolicyIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.TfaSecretNotNil = data - case "tfaSecretEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemovePolicyIDs = data + case "clearPolicy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPolicy")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TfaSecretEqualFold = data - case "tfaSecretContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tfaSecretContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearPolicy = data + case "addControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.TfaSecretContainsFold = data - case "verified": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verified")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AddControlIDs = data + case "removeControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Verified = data - case "verifiedNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verifiedNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.RemoveControlIDs = data + case "clearControl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControl")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.VerifiedNEQ = data - case "totpAllowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totpAllowed")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClearControl = data + case "addProcedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addProcedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.TotpAllowed = data - case "totpAllowedNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totpAllowedNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AddProcedureIDs = data + case "removeProcedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeProcedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.TotpAllowedNEQ = data - case "totpAllowedIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totpAllowedIsNil")) + it.RemoveProcedureIDs = data + case "clearProcedure": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProcedure")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TotpAllowedIsNil = data - case "totpAllowedNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totpAllowedNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearProcedure = data + case "addControlobjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlobjectiveIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.TotpAllowedNotNil = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AddControlobjectiveIDs = data + case "removeControlobjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeControlobjectiveIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasOwner = data - case "hasOwnerWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) - data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) + it.RemoveControlobjectiveIDs = data + case "clearControlobjective": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControlobjective")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasOwnerWith = data + it.ClearControlobjective = data } } return it, nil } -func (ec *executionContext) unmarshalInputTemplateHistoryOrder(ctx context.Context, obj interface{}) (generated.TemplateHistoryOrder, error) { - var it generated.TemplateHistoryOrder +func (ec *executionContext) unmarshalInputUpdateNoteInput(ctx context.Context, obj interface{}) (generated.UpdateNoteInput, error) { + var it generated.UpdateNoteInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - if _, present := asMap["direction"]; !present { - asMap["direction"] = "ASC" - } - - fieldsInOrder := [...]string{"direction", "field"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "text", "ownerID", "clearOwner", "entityID", "clearEntity", "addSubcontrolIDs", "removeSubcontrolIDs", "clearSubcontrols"} 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) + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNTemplateHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryOrderField(ctx, v) + 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.Field = data + 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 "text": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Text = 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 "entityID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EntityID = data + case "clearEntity": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntity")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearEntity = data + case "addSubcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSubcontrolIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddSubcontrolIDs = data + case "removeSubcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSubcontrolIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveSubcontrolIDs = data + case "clearSubcontrols": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubcontrols")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearSubcontrols = data } } return it, nil } -func (ec *executionContext) unmarshalInputTemplateHistoryWhereInput(ctx context.Context, obj interface{}) (generated.TemplateHistoryWhereInput, error) { - var it generated.TemplateHistoryWhereInput +func (ec *executionContext) unmarshalInputUpdateOauthProviderInput(ctx context.Context, obj interface{}) (generated.UpdateOauthProviderInput, error) { + var it generated.UpdateOauthProviderInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "templateType", "templateTypeNEQ", "templateTypeIn", "templateTypeNotIn", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "clientID", "clientSecret", "redirectURL", "scopes", "authURL", "tokenURL", "authStyle", "infoURL", "ownerID", "clearOwner"} 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.unmarshalOTemplateHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryWhereInput(ctx, v) + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOTemplateHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryWhereInputᚄ(ctx, v) + 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.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOTemplateHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryWhereInputᚄ(ctx, v) + 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.Or = data - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.ID = data - case "idNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Name = data + case "clientID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) + data, err := ec.unmarshalOString2ᚖ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) + it.ClientID = data + case "clientSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) + data, err := ec.unmarshalOString2ᚖ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) + it.ClientSecret = data + case "redirectURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RedirectURL = data + case "scopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Scopes = data + case "authURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AuthURL = data + case "tokenURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.TokenURL = data + case "authStyle": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyle")) + data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) if err != nil { return it, err } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AuthStyle = data + case "infoURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDEqualFold = data - case "idContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + it.InfoURL = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) 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) + 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.HistoryTime = data - case "historyTimeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearOwner = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateOhAuthTooTokenInput(ctx context.Context, obj interface{}) (generated.UpdateOhAuthTooTokenInput, error) { + var it generated.UpdateOhAuthTooTokenInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "clientID", "scopes", "appendScopes", "clearScopes", "nonce", "claimsUserID", "claimsUsername", "claimsEmail", "claimsEmailVerified", "claimsGroups", "appendClaimsGroups", "clearClaimsGroups", "claimsPreferredUsername", "connectorID", "connectorData", "appendConnectorData", "clearConnectorData", "lastUsed", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegration", "addEventIDs", "removeEventIDs", "clearEvents"} + 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.HistoryTimeNEQ = data - case "historyTimeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + 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.HistoryTimeIn = data - case "historyTimeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + 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.HistoryTimeNotIn = data - case "historyTimeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearTags = data + case "clientID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.ClientID = data + case "scopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) + data, err := ec.unmarshalOString2ᚕstringᚄ(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) + it.Scopes = data + case "appendScopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendScopes")) + data, err := ec.unmarshalOString2ᚕstringᚄ(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) + it.AppendScopes = data + case "clearScopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearScopes")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HistoryTimeLTE = data - case "ref": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ref")) + it.ClearScopes = data + case "nonce": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonce")) 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")) + it.Nonce = data + case "claimsUserID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserID")) 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) + it.ClaimsUserID = data + case "claimsUsername": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsername")) + 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) + it.ClaimsUsername = data + case "claimsEmail": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmail")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RefNotIn = data - case "refGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClaimsEmail = data + case "claimsEmailVerified": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailVerified")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.RefGT = data - case "refGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClaimsEmailVerified = data + case "claimsGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsGroups")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RefGTE = data - case "refLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClaimsGroups = data + case "appendClaimsGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendClaimsGroups")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RefLT = data - case "refLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AppendClaimsGroups = data + case "clearClaimsGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearClaimsGroups")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.RefLTE = data - case "refContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContains")) + it.ClearClaimsGroups = data + case "claimsPreferredUsername": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsername")) 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")) + it.ClaimsPreferredUsername = data + case "connectorID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorID")) 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) + it.ConnectorID = data + case "connectorData": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorData")) + 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) + it.ConnectorData = data + case "appendConnectorData": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendConnectorData")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RefIsNil = data - case "refNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refNotNil")) + it.AppendConnectorData = data + case "clearConnectorData": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearConnectorData")) 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) + it.ClearConnectorData = data + case "lastUsed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsed")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(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) + it.LastUsed = data + case "addIntegrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RefContainsFold = data - case "operation": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOTemplateHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + it.AddIntegrationIDs = data + case "removeIntegrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Operation = data - case "operationNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNEQ")) - data, err := ec.unmarshalOTemplateHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + it.RemoveIntegrationIDs = data + case "clearIntegration": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegration")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OperationNEQ = data - case "operationIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationIn")) - data, err := ec.unmarshalOTemplateHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + it.ClearIntegration = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OperationIn = data - case "operationNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNotIn")) - data, err := ec.unmarshalOTemplateHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearEvents = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateOrgMembershipInput(ctx context.Context, obj interface{}) (generated.UpdateOrgMembershipInput, error) { + var it generated.UpdateOrgMembershipInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"role", "addEventIDs", "removeEventIDs", "clearEvents"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOOrgMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) if err != nil { return it, err } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.Role = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearEvents = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Context, obj interface{}) (generated.UpdateOrganizationInput, error) { + var it generated.UpdateOrganizationInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "displayName", "description", "clearDescription", "avatarRemoteURL", "clearAvatarRemoteURL", "addGroupIDs", "removeGroupIDs", "clearGroups", "addTemplateIDs", "removeTemplateIDs", "clearTemplates", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegrations", "settingID", "clearSetting", "addDocumentdatumIDs", "removeDocumentdatumIDs", "clearDocumentdata", "addEntitlementIDs", "removeEntitlementIDs", "clearEntitlements", "addOrganizationEntitlementIDs", "removeOrganizationEntitlementIDs", "clearOrganizationEntitlement", "addPersonalAccessTokenIDs", "removePersonalAccessTokenIDs", "clearPersonalAccessTokens", "addAPITokenIDs", "removeAPITokenIDs", "clearAPITokens", "addOauthproviderIDs", "removeOauthproviderIDs", "clearOauthprovider", "addUserIDs", "removeUserIDs", "clearUsers", "addInviteIDs", "removeInviteIDs", "clearInvites", "addSubscriberIDs", "removeSubscriberIDs", "clearSubscribers", "addWebhookIDs", "removeWebhookIDs", "clearWebhooks", "addEventIDs", "removeEventIDs", "clearEvents", "addSecretIDs", "removeSecretIDs", "clearSecrets", "addFeatureIDs", "removeFeatureIDs", "clearFeatures", "addFileIDs", "removeFileIDs", "clearFiles", "addEntitlementplanIDs", "removeEntitlementplanIDs", "clearEntitlementplans", "addEntityIDs", "removeEntityIDs", "clearEntities", "addEntitytypeIDs", "removeEntitytypeIDs", "clearEntitytypes", "addContactIDs", "removeContactIDs", "clearContacts", "addNoteIDs", "removeNoteIDs", "clearNotes", "addOrgMembers", "updateOrgSettings"} + 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.CreatedAtGTE = data - case "createdAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.CreatedAtLT = data - case "createdAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.CreatedAtLTE = data - case "createdAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.Name = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.DisplayName = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClearDescription = data + case "avatarRemoteURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.AvatarRemoteURL = data + case "clearAvatarRemoteURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAvatarRemoteURL")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearAvatarRemoteURL = data + case "addGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddGroupIDs = data + case "removeGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.RemoveGroupIDs = data + case "clearGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGroups")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearGroups = data + case "addTemplateIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTemplateIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddTemplateIDs = data + case "removeTemplateIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTemplateIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedAtIsNil = data - case "updatedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) + it.RemoveTemplateIDs = data + case "clearTemplates": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTemplates")) 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) + it.ClearTemplates = data + case "addIntegrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddIntegrationIDs = data + case "removeIntegrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemoveIntegrationIDs = data + case "clearIntegrations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegrations")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearIntegrations = data + case "settingID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.SettingID = data + case "clearSetting": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSetting")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearSetting = data + case "addDocumentdatumIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addDocumentdatumIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddDocumentdatumIDs = data + case "removeDocumentdatumIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeDocumentdatumIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveDocumentdatumIDs = data + case "clearDocumentdata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDocumentdata")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearDocumentdata = data + case "addEntitlementIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntitlementIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddEntitlementIDs = data + case "removeEntitlementIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntitlementIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemoveEntitlementIDs = data + case "clearEntitlements": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntitlements")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearEntitlements = data + case "addOrganizationEntitlementIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationEntitlementIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) + it.AddOrganizationEntitlementIDs = data + case "removeOrganizationEntitlementIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationEntitlementIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveOrganizationEntitlementIDs = data + case "clearOrganizationEntitlement": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganizationEntitlement")) 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) + it.ClearOrganizationEntitlement = data + case "addPersonalAccessTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPersonalAccessTokenIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddPersonalAccessTokenIDs = data + case "removePersonalAccessTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePersonalAccessTokenIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemovePersonalAccessTokenIDs = data + case "clearPersonalAccessTokens": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPersonalAccessTokens")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearPersonalAccessTokens = data + case "addAPITokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAPITokenIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddAPITokenIDs = data + case "removeAPITokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAPITokenIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemoveAPITokenIDs = data + case "clearAPITokens": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAPITokens")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearAPITokens = data + case "addOauthproviderIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOauthproviderIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddOauthproviderIDs = data + case "removeOauthproviderIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOauthproviderIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveOauthproviderIDs = data + case "clearOauthprovider": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOauthprovider")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearOauthprovider = data + case "addUserIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUserIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddUserIDs = data + case "removeUserIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUserIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemoveUserIDs = data + case "clearUsers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUsers")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearUsers = data + case "addInviteIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addInviteIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddInviteIDs = data + case "removeInviteIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeInviteIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + it.RemoveInviteIDs = data + case "clearInvites": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearInvites")) 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) + it.ClearInvites = data + case "addSubscriberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSubscriberIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddSubscriberIDs = data + case "removeSubscriberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSubscriberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.RemoveSubscriberIDs = data + case "clearSubscribers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubscribers")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearSubscribers = data + case "addWebhookIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWebhookIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.AddWebhookIDs = data + case "removeWebhookIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWebhookIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.RemoveWebhookIDs = data + case "clearWebhooks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWebhooks")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearWebhooks = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearEvents = data + case "addSecretIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSecretIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AddSecretIDs = data + case "removeSecretIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSecretIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + it.RemoveSecretIDs = data + case "clearSecrets": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSecrets")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearSecrets = data + case "addFeatureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFeatureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddFeatureIDs = data + case "removeFeatureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFeatureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.RemoveFeatureIDs = data + case "clearFeatures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFeatures")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClearFeatures = data + case "addFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddFileIDs = data + case "removeFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveFileIDs = data + case "clearFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearFiles = data + case "addEntitlementplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntitlementplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddEntitlementplanIDs = data + case "removeEntitlementplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntitlementplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveEntitlementplanIDs = data + case "clearEntitlementplans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntitlementplans")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearEntitlementplans = data + case "addEntityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntityIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddEntityIDs = data + case "removeEntityIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntityIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + it.RemoveEntityIDs = data + case "clearEntities": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntities")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearEntities = data + case "addEntitytypeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntitytypeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddEntitytypeIDs = data + case "removeEntitytypeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntitytypeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveEntitytypeIDs = data + case "clearEntitytypes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntitytypes")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearEntitytypes = data + case "addContactIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addContactIDs")) + 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.unmarshalOString2ᚖstring(ctx, v) + it.AddContactIDs = data + case "removeContactIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeContactIDs")) + 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.unmarshalOString2ᚕstringᚄ(ctx, v) + it.RemoveContactIDs = data + case "clearContacts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearContacts")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearContacts = data + case "addNoteIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addNoteIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AddNoteIDs = data + case "removeNoteIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeNoteIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveNoteIDs = data + case "clearNotes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNotes")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearNotes = data + case "addOrgMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrgMembers")) + data, err := ec.unmarshalOCreateOrgMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInputᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { + if err = ec.resolvers.UpdateOrganizationInput().AddOrgMembers(ctx, &it, data); err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + case "updateOrgSettings": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updateOrgSettings")) + data, err := ec.unmarshalOUpdateOrganizationSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationSettingInput(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 { + if err = ec.resolvers.UpdateOrganizationInput().UpdateOrgSettings(ctx, &it, data); err != nil { return it, err } - it.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateOrganizationSettingInput(ctx context.Context, obj interface{}) (generated.UpdateOrganizationSettingInput, error) { + var it generated.UpdateOrganizationSettingInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "domains", "appendDomains", "clearDomains", "billingContact", "clearBillingContact", "billingEmail", "clearBillingEmail", "billingPhone", "clearBillingPhone", "billingAddress", "clearBillingAddress", "taxIdentifier", "clearTaxIdentifier", "geoLocation", "clearGeoLocation", "organizationID", "clearOrganization", "addFileIDs", "removeFileIDs", "clearFiles"} + 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.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) + 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.OwnerIDNotNil = data - case "ownerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearTags = data + case "domains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domains")) + 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) + it.Domains = data + case "appendDomains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendDomains")) + 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) + it.AppendDomains = data + case "clearDomains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDomains")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Name = data - case "nameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + it.ClearDomains = data + case "billingContact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContact")) 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) + it.BillingContact = data + case "clearBillingContact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBillingContact")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameIn = data - case "nameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClearBillingContact = data + case "billingEmail": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmail")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.BillingEmail = data + case "clearBillingEmail": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBillingEmail")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + it.ClearBillingEmail = data + case "billingPhone": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhone")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.BillingPhone = data + case "clearBillingPhone": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBillingPhone")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + it.ClearBillingPhone = data + case "billingAddress": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddress")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.BillingAddress = data + case "clearBillingAddress": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBillingAddress")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameContains = data - case "nameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + it.ClearBillingAddress = data + case "taxIdentifier": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifier")) 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) + it.TaxIdentifier = data + case "clearTaxIdentifier": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTaxIdentifier")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameHasSuffix = data - case "nameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearTaxIdentifier = data + case "geoLocation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocation")) + data, err := ec.unmarshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, v) if err != nil { return it, err } - it.NameEqualFold = data - case "nameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.GeoLocation = data + case "clearGeoLocation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGeoLocation")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - case "templateType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateType")) - data, err := ec.unmarshalOTemplateHistoryDocumentType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, v) + it.ClearGeoLocation = data + case "organizationID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateType = data - case "templateTypeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateTypeNEQ")) - data, err := ec.unmarshalOTemplateHistoryDocumentType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, v) + it.OrganizationID = data + case "clearOrganization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganization")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TemplateTypeNEQ = data - case "templateTypeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateTypeIn")) - data, err := ec.unmarshalOTemplateHistoryDocumentType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentTypeᚄ(ctx, v) + it.ClearOrganization = data + case "addFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.TemplateTypeIn = data - case "templateTypeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateTypeNotIn")) - data, err := ec.unmarshalOTemplateHistoryDocumentType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentTypeᚄ(ctx, v) + it.AddFileIDs = data + case "removeFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.TemplateTypeNotIn = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RemoveFileIDs = data + case "clearFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearFiles = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdatePersonalAccessTokenInput(ctx context.Context, obj interface{}) (generated.UpdatePersonalAccessTokenInput, error) { + var it generated.UpdatePersonalAccessTokenInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "scopes", "appendScopes", "clearScopes", "lastUsedAt", "clearLastUsedAt", "addOrganizationIDs", "removeOrganizationIDs", "clearOrganizations", "addEventIDs", "removeEventIDs", "clearEvents"} + 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.DescriptionNEQ = data - case "descriptionIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionIn")) + 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.DescriptionIn = data - case "descriptionNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.DescriptionNotIn = data - case "descriptionGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + 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.DescriptionGT = data - case "descriptionGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) + 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.DescriptionGTE = data - case "descriptionLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.DescriptionLT = data - case "descriptionLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearDescription = data + case "scopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DescriptionLTE = data - case "descriptionContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Scopes = data + case "appendScopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendScopes")) + 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) + it.AppendScopes = data + case "clearScopes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearScopes")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearScopes = data + case "lastUsedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DescriptionHasSuffix = data - case "descriptionIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionIsNil")) + it.LastUsedAt = data + case "clearLastUsedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLastUsedAt")) 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) + it.ClearLastUsedAt = data + case "addOrganizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddOrganizationIDs = data + case "removeOrganizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemoveOrganizationIDs = data + case "clearOrganizations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganizations")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DescriptionContainsFold = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputTemplateOrder(ctx context.Context, obj interface{}) (generated.TemplateOrder, error) { - var it generated.TemplateOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - 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) + it.ClearOrganizations = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNTemplateOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrderField(ctx, v) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Field = data + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearEvents = data } } return it, nil } -func (ec *executionContext) unmarshalInputTemplateWhereInput(ctx context.Context, obj interface{}) (generated.TemplateWhereInput, error) { - var it generated.TemplateWhereInput +func (ec *executionContext) unmarshalInputUpdateProcedureInput(ctx context.Context, obj interface{}) (generated.UpdateProcedureInput, error) { + var it generated.UpdateProcedureInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "templateType", "templateTypeNEQ", "templateTypeIn", "templateTypeNotIn", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionGT", "descriptionGTE", "descriptionLT", "descriptionLTE", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "hasOwner", "hasOwnerWith", "hasDocuments", "hasDocumentsWith", "hasFiles", "hasFilesWith"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "status", "clearStatus", "procedureType", "clearProcedureType", "version", "clearVersion", "purposeAndScope", "clearPurposeAndScope", "background", "clearBackground", "satisfies", "clearSatisfies", "details", "clearDetails", "addControlIDs", "removeControlIDs", "clearControl", "addInternalpolicyIDs", "removeInternalpolicyIDs", "clearInternalpolicy", "addNarrativeIDs", "removeNarrativeIDs", "clearNarratives", "addRiskIDs", "removeRiskIDs", "clearRisks"} 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.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOTemplateWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOTemplateWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInputᚄ(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) + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕ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) + 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.IDNEQ = data - case "idIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.IDIn = data - case "idNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearDescription = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Status = data + case "clearStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStatus")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearStatus = data + case "procedureType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureType")) + data, err := ec.unmarshalOString2ᚖ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) + it.ProcedureType = data + case "clearProcedureType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProcedureType")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearProcedureType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.Version = data + case "clearVersion": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearVersion")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClearVersion = data + case "purposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScope")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.PurposeAndScope = data + case "clearPurposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPurposeAndScope")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearPurposeAndScope = data + case "background": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("background")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.Background = data + case "clearBackground": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBackground")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearBackground = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.Satisfies = data + case "clearSatisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSatisfies")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearSatisfies = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { return it, err } - it.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) + it.Details = data + case "clearDetails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDetails")) 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) + it.ClearDetails = data + case "addControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.AddControlIDs = data + case "removeControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.RemoveControlIDs = data + case "clearControl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControl")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.ClearControl = data + case "addInternalpolicyIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addInternalpolicyIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.AddInternalpolicyIDs = data + case "removeInternalpolicyIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeInternalpolicyIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.RemoveInternalpolicyIDs = data + case "clearInternalpolicy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearInternalpolicy")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearInternalpolicy = data + case "addNarrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addNarrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddNarrativeIDs = data + case "removeNarrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeNarrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedAtLTE = data - case "updatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) + it.RemoveNarrativeIDs = data + case "clearNarratives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNarratives")) 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) + it.ClearNarratives = data + case "addRiskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addRiskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(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) + it.AddRiskIDs = data + case "removeRiskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeRiskIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.RemoveRiskIDs = data + case "clearRisks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearRisks")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByNEQ = data - case "createdByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + it.ClearRisks = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateRiskInput(ctx context.Context, obj interface{}) (generated.UpdateRiskInput, error) { + var it generated.UpdateRiskInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "status", "clearStatus", "riskType", "clearRiskType", "businessCosts", "clearBusinessCosts", "impact", "clearImpact", "likelihood", "clearLikelihood", "mitigation", "clearMitigation", "satisfies", "clearSatisfies", "details", "clearDetails", "addControlIDs", "removeControlIDs", "clearControl", "addProcedureIDs", "removeProcedureIDs", "clearProcedure", "addActionplanIDs", "removeActionplanIDs", "clearActionplans"} + 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.CreatedByIn = data - case "createdByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + 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.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + 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.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + 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.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + it.ClearDescription = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) 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) + it.Status = data + case "clearStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStatus")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByHasPrefix = data - case "createdByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + it.ClearStatus = data + case "riskType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskType")) 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")) + it.RiskType = data + case "clearRiskType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearRiskType")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.CreatedByNotNil = data - case "createdByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByEqualFold")) + it.ClearRiskType = data + case "businessCosts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("businessCosts")) 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) + it.BusinessCosts = data + case "clearBusinessCosts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBusinessCosts")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearBusinessCosts = data + case "impact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("impact")) + data, err := ec.unmarshalORiskRiskImpact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(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) + it.Impact = data + case "clearImpact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearImpact")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearImpact = data + case "likelihood": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("likelihood")) + data, err := ec.unmarshalORiskRiskLikelihood2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(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) + it.Likelihood = data + case "clearLikelihood": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLikelihood")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + it.ClearLikelihood = data + case "mitigation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mitigation")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Mitigation = data + case "clearMitigation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearMitigation")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + it.ClearMitigation = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Satisfies = data + case "clearSatisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSatisfies")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearSatisfies = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(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) + it.Details = data + case "clearDetails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDetails")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearDetails = data + case "addControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddControlIDs = data + case "removeControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) + it.RemoveControlIDs = data + case "clearControl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControl")) 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) + it.ClearControl = data + case "addProcedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addProcedureIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddProcedureIDs = data + case "removeProcedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeProcedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.RemoveProcedureIDs = data + case "clearProcedure": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProcedure")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearProcedure = data + case "addActionplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addActionplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.AddActionplanIDs = data + case "removeActionplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeActionplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.RemoveActionplanIDs = data + case "clearActionplans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearActionplans")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearActionplans = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateStandardInput(ctx context.Context, obj interface{}) (generated.UpdateStandardInput, error) { + var it generated.UpdateStandardInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "family", "clearFamily", "status", "clearStatus", "standardType", "clearStandardType", "version", "clearVersion", "purposeAndScope", "clearPurposeAndScope", "background", "clearBackground", "satisfies", "clearSatisfies", "details", "clearDetails", "addControlobjectiveIDs", "removeControlobjectiveIDs", "clearControlobjectives", "addControlIDs", "removeControlIDs", "clearControls", "addProcedureIDs", "removeProcedureIDs", "clearProcedures", "addActionplanIDs", "removeActionplanIDs", "clearActionplans"} + 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.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + 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.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + it.ClearDescription = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Family = data + case "clearFamily": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFamily")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClearFamily = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.Status = data + case "clearStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStatus")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + it.ClearStatus = data + case "standardType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardType")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + it.StandardType = data + case "clearStandardType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStandardType")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearStandardType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Version = data + case "clearVersion": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearVersion")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + it.ClearVersion = data + case "purposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("purposeAndScope")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.PurposeAndScope = data + case "clearPurposeAndScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPurposeAndScope")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + it.ClearPurposeAndScope = data + case "background": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("background")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Background = data + case "clearBackground": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBackground")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearBackground = data + case "satisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("satisfies")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + it.Satisfies = data + case "clearSatisfies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSatisfies")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearSatisfies = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Details = data + case "clearDetails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDetails")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearDetails = data + case "addControlobjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlobjectiveIDs")) + 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) + it.AddControlobjectiveIDs = data + case "removeControlobjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeControlobjectiveIDs")) + 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) + it.RemoveControlobjectiveIDs = data + case "clearControlobjectives": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControlobjectives")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDIn = data - case "ownerIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + it.ClearControlobjectives = data + case "addControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AddControlIDs = data + case "removeControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RemoveControlIDs = data + case "clearControls": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControls")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearControls = data + case "addProcedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addProcedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AddProcedureIDs = data + case "removeProcedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeProcedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RemoveProcedureIDs = data + case "clearProcedures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProcedures")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearProcedures = data + case "addActionplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addActionplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.OwnerIDHasPrefix = data - case "ownerIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AddActionplanIDs = data + case "removeActionplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeActionplanIDs")) + 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")) + it.RemoveActionplanIDs = data + case "clearActionplans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearActionplans")) 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) + it.ClearActionplans = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateSubcontrolInput(ctx context.Context, obj interface{}) (generated.UpdateSubcontrolInput, error) { + var it generated.UpdateSubcontrolInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "status", "clearStatus", "subcontrolType", "clearSubcontrolType", "version", "clearVersion", "subcontrolNumber", "clearSubcontrolNumber", "family", "clearFamily", "class", "clearClass", "source", "clearSource", "mappedFrameworks", "clearMappedFrameworks", "implementationEvidence", "clearImplementationEvidence", "implementationStatus", "clearImplementationStatus", "implementationDate", "clearImplementationDate", "implementationVerification", "clearImplementationVerification", "implementationVerificationDate", "clearImplementationVerificationDate", "details", "clearDetails", "addControlIDs", "removeControlIDs", "clearControl", "addUserIDs", "removeUserIDs", "clearUser", "notesID", "clearNotes"} + 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.OwnerIDNotNil = data - case "ownerIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDEqualFold = data - case "ownerIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerIDContainsFold = data + it.ClearTags = data case "name": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) @@ -205894,279 +295886,286 @@ func (ec *executionContext) unmarshalInputTemplateWhereInput(ctx context.Context return it, err } it.Name = data - case "nameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) 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) + 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.NameIn = data - case "nameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClearDescription = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Status = data + case "clearStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStatus")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + it.ClearStatus = data + case "subcontrolType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolType")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.SubcontrolType = data + case "clearSubcontrolType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubcontrolType")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + it.ClearSubcontrolType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Version = data + case "clearVersion": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearVersion")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameContains = data - case "nameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + it.ClearVersion = data + case "subcontrolNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolNumber")) 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) + it.SubcontrolNumber = data + case "clearSubcontrolNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubcontrolNumber")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameHasSuffix = data - case "nameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + it.ClearSubcontrolNumber = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) 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) + it.Family = data + case "clearFamily": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFamily")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.NameContainsFold = data - case "templateType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateType")) - data, err := ec.unmarshalOTemplateDocumentType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, v) + it.ClearFamily = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateType = data - case "templateTypeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateTypeNEQ")) - data, err := ec.unmarshalOTemplateDocumentType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, v) + it.Class = data + case "clearClass": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearClass")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TemplateTypeNEQ = data - case "templateTypeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateTypeIn")) - data, err := ec.unmarshalOTemplateDocumentType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentTypeᚄ(ctx, v) + it.ClearClass = data + case "source": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateTypeIn = data - case "templateTypeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateTypeNotIn")) - data, err := ec.unmarshalOTemplateDocumentType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentTypeᚄ(ctx, v) + it.Source = data + case "clearSource": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSource")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.TemplateTypeNotIn = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + it.ClearSource = data + case "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) 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) + it.MappedFrameworks = data + case "clearMappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearMappedFrameworks")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearMappedFrameworks = data + case "implementationEvidence": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationEvidence")) + 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) + it.ImplementationEvidence = data + case "clearImplementationEvidence": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearImplementationEvidence")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DescriptionNotIn = data - case "descriptionGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGT")) + it.ClearImplementationEvidence = data + case "implementationStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationStatus")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DescriptionGT = data - case "descriptionGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationStatus = data + case "clearImplementationStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearImplementationStatus")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DescriptionGTE = data - case "descriptionLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearImplementationStatus = data + case "implementationDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationDate")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DescriptionLT = data - case "descriptionLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ImplementationDate = data + case "clearImplementationDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearImplementationDate")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DescriptionLTE = data - case "descriptionContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) + it.ClearImplementationDate = data + case "implementationVerification": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerification")) 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) + it.ImplementationVerification = data + case "clearImplementationVerification": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearImplementationVerification")) + data, err := ec.unmarshalOBoolean2bool(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) + it.ClearImplementationVerification = data + case "implementationVerificationDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("implementationVerificationDate")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.DescriptionHasSuffix = data - case "descriptionIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionIsNil")) + it.ImplementationVerificationDate = data + case "clearImplementationVerificationDate": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearImplementationVerificationDate")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DescriptionIsNil = data - case "descriptionNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNotNil")) + it.ClearImplementationVerificationDate = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Details = data + case "clearDetails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDetails")) 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) + it.ClearDetails = data + case "addControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlIDs")) + data, err := ec.unmarshalOID2ᚕ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) + it.AddControlIDs = data + case "removeControlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeControlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DescriptionContainsFold = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.RemoveControlIDs = data + case "clearControl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearControl")) + data, err := ec.unmarshalOBoolean2bool(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ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + it.ClearControl = data + case "addUserIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUserIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasOwnerWith = data - case "hasDocuments": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocuments")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AddUserIDs = data + case "removeUserIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUserIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.HasDocuments = data - case "hasDocumentsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDocumentsWith")) - data, err := ec.unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx, v) + it.RemoveUserIDs = data + case "clearUser": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUser")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasDocumentsWith = data - case "hasFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClearUser = data + case "notesID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("notesID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.HasFiles = data - case "hasFilesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + it.NotesID = data + case "clearNotes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNotes")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.HasFilesWith = data + it.ClearNotes = data } } return it, nil } -func (ec *executionContext) unmarshalInputUpdateAPITokenInput(ctx context.Context, obj interface{}) (generated.UpdateAPITokenInput, error) { - var it generated.UpdateAPITokenInput +func (ec *executionContext) unmarshalInputUpdateSubscriberInput(ctx context.Context, obj interface{}) (generated.UpdateSubscriberInput, error) { + var it generated.UpdateSubscriberInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "scopes", "appendScopes", "clearScopes", "lastUsedAt", "clearLastUsedAt", "ownerID", "clearOwner"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "email", "phoneNumber", "clearPhoneNumber", "ownerID", "clearOwner", "addEventIDs", "removeEventIDs", "clearEvents"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -206194,90 +296193,76 @@ func (ec *executionContext) unmarshalInputUpdateAPITokenInput(ctx context.Contex return it, err } it.ClearTags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + case "email": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) 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")) + it.Email = data + case "phoneNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) 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")) + it.PhoneNumber = data + case "clearPhoneNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPhoneNumber")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearDescription = data - case "scopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.Scopes = data - case "appendScopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendScopes")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.ClearPhoneNumber = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.AppendScopes = data - case "clearScopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearScopes")) + 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.ClearScopes = data - case "lastUsedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.LastUsedAt = data - case "clearLastUsedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLastUsedAt")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearOwner = data + case "addEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClearLastUsedAt = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AddEventIDs = data + case "removeEventIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + 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")) + it.RemoveEventIDs = data + case "clearEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearOwner = data + it.ClearEvents = data } } return it, nil } -func (ec *executionContext) unmarshalInputUpdateContactInput(ctx context.Context, obj interface{}) (generated.UpdateContactInput, error) { - var it generated.UpdateContactInput +func (ec *executionContext) unmarshalInputUpdateTFASettingInput(ctx context.Context, obj interface{}) (generated.UpdateTFASettingInput, error) { + var it generated.UpdateTFASettingInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "fullName", "title", "clearTitle", "company", "clearCompany", "email", "clearEmail", "phoneNumber", "clearPhoneNumber", "address", "clearAddress", "status", "ownerID", "clearOwner", "addEntityIDs", "removeEntityIDs", "clearEntities", "addFileIDs", "removeFileIDs", "clearFiles"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "verified", "totpAllowed", "clearTotpAllowed", "regenBackupCodes"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -206305,90 +296290,126 @@ func (ec *executionContext) unmarshalInputUpdateContactInput(ctx context.Context return it, err } it.ClearTags = data - case "fullName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + case "verified": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verified")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.FullName = data - case "title": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("title")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Verified = data + case "totpAllowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totpAllowed")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Title = data - case "clearTitle": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTitle")) + it.TotpAllowed = data + case "clearTotpAllowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTotpAllowed")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearTitle = data - case "company": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearTotpAllowed = data + case "regenBackupCodes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("regenBackupCodes")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Company = data - case "clearCompany": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearCompany")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err = ec.resolvers.UpdateTFASettingInput().RegenBackupCodes(ctx, &it, data); err != nil { + return it, err + } + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateTemplateInput(ctx context.Context, obj interface{}) (generated.UpdateTemplateInput, error) { + var it generated.UpdateTemplateInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "templateType", "description", "clearDescription", "jsonconfig", "uischema", "clearUischema", "ownerID", "clearOwner", "addDocumentIDs", "removeDocumentIDs", "clearDocuments", "addFileIDs", "removeFileIDs", "clearFiles"} + 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.ClearCompany = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.Email = data - case "clearEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEmail")) + 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.ClearEmail = data - case "phoneNumber": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) + 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.PhoneNumber = data - case "clearPhoneNumber": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPhoneNumber")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.Name = data + case "templateType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateType")) + data, err := ec.unmarshalOTemplateDocumentType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, v) if err != nil { return it, err } - it.ClearPhoneNumber = data - case "address": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("address")) + it.TemplateType = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Address = data - case "clearAddress": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAddress")) + 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.ClearAddress = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOContactUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + it.ClearDescription = data + case "jsonconfig": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jsonconfig")) + data, err := ec.unmarshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, v) if err != nil { return it, err } - it.Status = data + it.Jsonconfig = data + case "uischema": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uischema")) + data, err := ec.unmarshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, v) + if err != nil { + return it, err + } + it.Uischema = data + case "clearUischema": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUischema")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearUischema = data case "ownerID": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) @@ -206403,27 +296424,27 @@ func (ec *executionContext) unmarshalInputUpdateContactInput(ctx context.Context return it, err } it.ClearOwner = data - case "addEntityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntityIDs")) + case "addDocumentIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addDocumentIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddEntityIDs = data - case "removeEntityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntityIDs")) + it.AddDocumentIDs = data + case "removeDocumentIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeDocumentIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveEntityIDs = data - case "clearEntities": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntities")) + it.RemoveDocumentIDs = data + case "clearDocuments": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDocuments")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearEntities = data + it.ClearDocuments = data case "addFileIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -206451,14 +296472,14 @@ func (ec *executionContext) unmarshalInputUpdateContactInput(ctx context.Context return it, nil } -func (ec *executionContext) unmarshalInputUpdateDocumentDataInput(ctx context.Context, obj interface{}) (generated.UpdateDocumentDataInput, error) { - var it generated.UpdateDocumentDataInput +func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj interface{}) (generated.UpdateUserInput, error) { + var it generated.UpdateUserInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "data", "ownerID", "clearOwner", "templateID", "addEntityIDs", "removeEntityIDs", "clearEntity", "addFileIDs", "removeFileIDs", "clearFiles"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "email", "firstName", "clearFirstName", "lastName", "clearLastName", "displayName", "avatarRemoteURL", "clearAvatarRemoteURL", "avatarLocalFile", "clearAvatarLocalFile", "avatarUpdatedAt", "clearAvatarUpdatedAt", "lastSeen", "clearLastSeen", "password", "clearPassword", "sub", "clearSub", "authProvider", "role", "clearRole", "addPersonalAccessTokenIDs", "removePersonalAccessTokenIDs", "clearPersonalAccessTokens", "addTfaSettingIDs", "removeTfaSettingIDs", "clearTfaSettings", "settingID", "addEmailVerificationTokenIDs", "removeEmailVerificationTokenIDs", "clearEmailVerificationTokens", "addPasswordResetTokenIDs", "removePasswordResetTokenIDs", "clearPasswordResetTokens", "addGroupIDs", "removeGroupIDs", "clearGroups", "addOrganizationIDs", "removeOrganizationIDs", "clearOrganizations", "addWebauthnIDs", "removeWebauthnIDs", "clearWebauthn", "addFileIDs", "removeFileIDs", "clearFiles", "fileID", "clearFile", "addEventIDs", "removeEventIDs", "clearEvents", "addActionplanIDs", "removeActionplanIDs", "clearActionplans", "addSubcontrolIDs", "removeSubcontrolIDs", "clearSubcontrols"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -206486,180 +296507,342 @@ func (ec *executionContext) unmarshalInputUpdateDocumentDataInput(ctx context.Co return it, err } it.ClearTags = data - case "data": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("data")) - data, err := ec.unmarshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, v) + case "email": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Data = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.Email = data + case "firstName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "clearOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOwner")) + it.FirstName = data + case "clearFirstName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFirstName")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearOwner = data - case "templateID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.ClearFirstName = data + case "lastName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TemplateID = data - case "addEntityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntityIDs")) + it.LastName = data + case "clearLastName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLastName")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearLastName = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayName = data + case "avatarRemoteURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURL = data + case "clearAvatarRemoteURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAvatarRemoteURL")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAvatarRemoteURL = data + case "avatarLocalFile": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFile")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarLocalFile = data + case "clearAvatarLocalFile": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAvatarLocalFile")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAvatarLocalFile = data + case "avatarUpdatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.AvatarUpdatedAt = data + case "clearAvatarUpdatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAvatarUpdatedAt")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAvatarUpdatedAt = data + case "lastSeen": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeen")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.LastSeen = data + case "clearLastSeen": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLastSeen")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearLastSeen = data + case "password": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Password = data + case "clearPassword": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPassword")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearPassword = data + case "sub": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sub")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Sub = data + case "clearSub": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSub")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearSub = data + case "authProvider": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProvider")) + data, err := ec.unmarshalOUserAuthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, v) + if err != nil { + return it, err + } + it.AuthProvider = data + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOUserRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + if err != nil { + return it, err + } + it.Role = data + case "clearRole": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearRole")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearRole = data + case "addPersonalAccessTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPersonalAccessTokenIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddEntityIDs = data - case "removeEntityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntityIDs")) + it.AddPersonalAccessTokenIDs = data + case "removePersonalAccessTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePersonalAccessTokenIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveEntityIDs = data - case "clearEntity": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntity")) + it.RemovePersonalAccessTokenIDs = data + case "clearPersonalAccessTokens": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPersonalAccessTokens")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearEntity = data - case "addFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) + it.ClearPersonalAccessTokens = data + case "addTfaSettingIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTfaSettingIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddFileIDs = data - case "removeFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) + it.AddTfaSettingIDs = data + case "removeTfaSettingIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTfaSettingIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveFileIDs = data - case "clearFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) + it.RemoveTfaSettingIDs = data + case "clearTfaSettings": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTfaSettings")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearFiles = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateEntitlementInput(ctx context.Context, obj interface{}) (generated.UpdateEntitlementInput, error) { - var it generated.UpdateEntitlementInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "externalCustomerID", "clearExternalCustomerID", "externalSubscriptionID", "clearExternalSubscriptionID", "expiresAt", "clearExpiresAt", "cancelled", "ownerID", "clearOwner", "addEventIDs", "removeEventIDs", "clearEvents"} - 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) + it.ClearTfaSettings = data + case "settingID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) + data, err := ec.unmarshalOID2ᚖ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) + it.SettingID = data + case "addEmailVerificationTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEmailVerificationTokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) + it.AddEmailVerificationTokenIDs = data + case "removeEmailVerificationTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEmailVerificationTokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveEmailVerificationTokenIDs = data + case "clearEmailVerificationTokens": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEmailVerificationTokens")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearTags = data - case "externalCustomerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalCustomerID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearEmailVerificationTokens = data + case "addPasswordResetTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPasswordResetTokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExternalCustomerID = data - case "clearExternalCustomerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearExternalCustomerID")) + it.AddPasswordResetTokenIDs = data + case "removePasswordResetTokenIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePasswordResetTokenIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemovePasswordResetTokenIDs = data + case "clearPasswordResetTokens": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPasswordResetTokens")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearExternalCustomerID = data - case "externalSubscriptionID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("externalSubscriptionID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClearPasswordResetTokens = data + case "addGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExternalSubscriptionID = data - case "clearExternalSubscriptionID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearExternalSubscriptionID")) + it.AddGroupIDs = data + case "removeGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveGroupIDs = data + case "clearGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGroups")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearExternalSubscriptionID = data - case "expiresAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.ClearGroups = data + case "addOrganizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ExpiresAt = data - case "clearExpiresAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearExpiresAt")) + it.AddOrganizationIDs = data + case "removeOrganizationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveOrganizationIDs = data + case "clearOrganizations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganizations")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearExpiresAt = data - case "cancelled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cancelled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClearOrganizations = data + case "addWebauthnIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWebauthnIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Cancelled = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + it.AddWebauthnIDs = data + case "removeWebauthnIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWebauthnIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveWebauthnIDs = data + case "clearWebauthn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWebauthn")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearWebauthn = data + case "addFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddFileIDs = data + case "removeFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveFileIDs = data + case "clearFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearFiles = data + case "fileID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileID")) 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")) + it.FileID = data + case "clearFile": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFile")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearOwner = data + it.ClearFile = data case "addEventIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -206681,20 +296864,62 @@ func (ec *executionContext) unmarshalInputUpdateEntitlementInput(ctx context.Con return it, err } it.ClearEvents = data + case "addActionplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addActionplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddActionplanIDs = data + case "removeActionplanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeActionplanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveActionplanIDs = data + case "clearActionplans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearActionplans")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearActionplans = data + case "addSubcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSubcontrolIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddSubcontrolIDs = data + case "removeSubcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSubcontrolIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveSubcontrolIDs = data + case "clearSubcontrols": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubcontrols")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearSubcontrols = data } } return it, nil } -func (ec *executionContext) unmarshalInputUpdateEntitlementPlanFeatureInput(ctx context.Context, obj interface{}) (generated.UpdateEntitlementPlanFeatureInput, error) { - var it generated.UpdateEntitlementPlanFeatureInput +func (ec *executionContext) unmarshalInputUpdateUserSettingInput(ctx context.Context, obj interface{}) (generated.UpdateUserSettingInput, error) { + var it generated.UpdateUserSettingInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "metadata", "clearMetadata", "ownerID", "clearOwner", "addEventIDs", "removeEventIDs", "clearEvents"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "locked", "silencedAt", "clearSilencedAt", "suspendedAt", "clearSuspendedAt", "status", "emailConfirmed", "isWebauthnAllowed", "clearIsWebauthnAllowed", "isTfaEnabled", "clearIsTfaEnabled", "userID", "clearUser", "defaultOrgID", "clearDefaultOrg", "addFileIDs", "removeFileIDs", "clearFiles"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -206722,69 +296947,146 @@ func (ec *executionContext) unmarshalInputUpdateEntitlementPlanFeatureInput(ctx return it, err } it.ClearTags = data - case "metadata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) - data, err := ec.unmarshalOMap2map(ctx, v) + case "locked": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locked")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Locked = data + case "silencedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.SilencedAt = data + case "clearSilencedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSilencedAt")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearSilencedAt = data + case "suspendedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.SuspendedAt = data + case "clearSuspendedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSuspendedAt")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearSuspendedAt = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOUserSettingUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "emailConfirmed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailConfirmed")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.EmailConfirmed = data + case "isWebauthnAllowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowed")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.IsWebauthnAllowed = data + case "clearIsWebauthnAllowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIsWebauthnAllowed")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearIsWebauthnAllowed = data + case "isTfaEnabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.IsTfaEnabled = data + case "clearIsTfaEnabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIsTfaEnabled")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearIsTfaEnabled = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Metadata = data - case "clearMetadata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearMetadata")) + 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.ClearMetadata = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + it.ClearUser = data + case "defaultOrgID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultOrgID")) 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")) + it.DefaultOrgID = data + case "clearDefaultOrg": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDefaultOrg")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearOwner = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + it.ClearDefaultOrg = data + case "addFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + it.AddFileIDs = data + case "removeFileIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + it.RemoveFileIDs = data + case "clearFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearEvents = data + it.ClearFiles = data } } return it, nil } -func (ec *executionContext) unmarshalInputUpdateEntitlementPlanInput(ctx context.Context, obj interface{}) (generated.UpdateEntitlementPlanInput, error) { - var it generated.UpdateEntitlementPlanInput +func (ec *executionContext) unmarshalInputUpdateWebhookInput(ctx context.Context, obj interface{}) (generated.UpdateWebhookInput, error) { + var it generated.UpdateWebhookInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "displayName", "clearDisplayName", "description", "clearDescription", "metadata", "clearMetadata", "ownerID", "clearOwner", "addEntitlementIDs", "removeEntitlementIDs", "clearEntitlements", "addBaseFeatureIDs", "removeBaseFeatureIDs", "clearBaseFeatures", "addEventIDs", "removeEventIDs", "clearEvents"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "destinationURL", "enabled", "failures", "clearFailures", "lastError", "clearLastError", "lastResponse", "clearLastResponse", "ownerID", "clearOwner", "addEventIDs", "removeEventIDs", "clearEvents", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegrations"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -206812,20 +297114,13 @@ func (ec *executionContext) unmarshalInputUpdateEntitlementPlanInput(ctx context return it, err } it.ClearTags = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "clearDisplayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDisplayName")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.ClearDisplayName = data + it.Name = data case "description": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) @@ -206840,76 +297135,76 @@ func (ec *executionContext) unmarshalInputUpdateEntitlementPlanInput(ctx context return it, err } it.ClearDescription = data - case "metadata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) - data, err := ec.unmarshalOMap2map(ctx, v) + case "destinationURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURL")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.DestinationURL = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.Enabled = data + case "failures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failures")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "clearOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOwner")) + it.Failures = data + case "clearFailures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFailures")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearOwner = data - case "addEntitlementIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntitlementIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.ClearFailures = data + case "lastError": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastError")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddEntitlementIDs = data - case "removeEntitlementIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntitlementIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastError = data + case "clearLastError": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLastError")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.RemoveEntitlementIDs = data - case "clearEntitlements": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntitlements")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.ClearLastError = data + case "lastResponse": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponse")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearEntitlements = data - case "addBaseFeatureIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addBaseFeatureIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastResponse = data + case "clearLastResponse": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLastResponse")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AddBaseFeatureIDs = data - case "removeBaseFeatureIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeBaseFeatureIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.ClearLastResponse = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveBaseFeatureIDs = data - case "clearBaseFeatures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBaseFeatures")) + 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.ClearBaseFeatures = data + it.ClearOwner = data case "addEventIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -206931,4118 +297226,3873 @@ func (ec *executionContext) unmarshalInputUpdateEntitlementPlanInput(ctx context return it, err } it.ClearEvents = data + case "addIntegrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddIntegrationIDs = data + case "removeIntegrationIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveIntegrationIDs = data + case "clearIntegrations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegrations")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearIntegrations = data } } return it, nil } -func (ec *executionContext) unmarshalInputUpdateEntityInput(ctx context.Context, obj interface{}) (generated.UpdateEntityInput, error) { - var it generated.UpdateEntityInput +func (ec *executionContext) unmarshalInputUserHistoryOrder(ctx context.Context, obj interface{}) (generated.UserHistoryOrder, error) { + var it generated.UserHistoryOrder asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "clearName", "displayName", "clearDisplayName", "description", "clearDescription", "domains", "appendDomains", "clearDomains", "status", "clearStatus", "ownerID", "clearOwner", "addContactIDs", "removeContactIDs", "clearContacts", "addDocumentIDs", "removeDocumentIDs", "clearDocuments", "addNoteIDs", "removeNoteIDs", "clearNotes", "addFileIDs", "removeFileIDs", "clearFiles", "entityTypeID", "clearEntityType", "note"} + 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 "tags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.Tags = data - case "appendTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.Direction = data + case "field": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) + data, err := ec.unmarshalNUserHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryOrderField(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) + it.Field = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUserHistoryWhereInput(ctx context.Context, obj interface{}) (generated.UserHistoryWhereInput, error) { + var it generated.UserHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailGT", "emailGTE", "emailLT", "emailLTE", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "firstName", "firstNameNEQ", "firstNameIn", "firstNameNotIn", "firstNameGT", "firstNameGTE", "firstNameLT", "firstNameLTE", "firstNameContains", "firstNameHasPrefix", "firstNameHasSuffix", "firstNameIsNil", "firstNameNotNil", "firstNameEqualFold", "firstNameContainsFold", "lastName", "lastNameNEQ", "lastNameIn", "lastNameNotIn", "lastNameGT", "lastNameGTE", "lastNameLT", "lastNameLTE", "lastNameContains", "lastNameHasPrefix", "lastNameHasSuffix", "lastNameIsNil", "lastNameNotNil", "lastNameEqualFold", "lastNameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLGT", "avatarRemoteURLGTE", "avatarRemoteURLLT", "avatarRemoteURLLTE", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "avatarLocalFile", "avatarLocalFileNEQ", "avatarLocalFileIn", "avatarLocalFileNotIn", "avatarLocalFileGT", "avatarLocalFileGTE", "avatarLocalFileLT", "avatarLocalFileLTE", "avatarLocalFileContains", "avatarLocalFileHasPrefix", "avatarLocalFileHasSuffix", "avatarLocalFileIsNil", "avatarLocalFileNotNil", "avatarLocalFileEqualFold", "avatarLocalFileContainsFold", "avatarLocalFileID", "avatarLocalFileIDNEQ", "avatarLocalFileIDIn", "avatarLocalFileIDNotIn", "avatarLocalFileIDGT", "avatarLocalFileIDGTE", "avatarLocalFileIDLT", "avatarLocalFileIDLTE", "avatarLocalFileIDContains", "avatarLocalFileIDHasPrefix", "avatarLocalFileIDHasSuffix", "avatarLocalFileIDIsNil", "avatarLocalFileIDNotNil", "avatarLocalFileIDEqualFold", "avatarLocalFileIDContainsFold", "avatarUpdatedAt", "avatarUpdatedAtNEQ", "avatarUpdatedAtIn", "avatarUpdatedAtNotIn", "avatarUpdatedAtGT", "avatarUpdatedAtGTE", "avatarUpdatedAtLT", "avatarUpdatedAtLTE", "avatarUpdatedAtIsNil", "avatarUpdatedAtNotNil", "lastSeen", "lastSeenNEQ", "lastSeenIn", "lastSeenNotIn", "lastSeenGT", "lastSeenGTE", "lastSeenLT", "lastSeenLTE", "lastSeenIsNil", "lastSeenNotNil", "sub", "subNEQ", "subIn", "subNotIn", "subGT", "subGTE", "subLT", "subLTE", "subContains", "subHasPrefix", "subHasSuffix", "subIsNil", "subNotNil", "subEqualFold", "subContainsFold", "authProvider", "authProviderNEQ", "authProviderIn", "authProviderNotIn", "role", "roleNEQ", "roleIn", "roleNotIn", "roleIsNil", "roleNotNil"} + 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.unmarshalOUserHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryWhereInput(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) + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOUserHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.Name = data - case "clearName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearName")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOUserHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.ClearName = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.DisplayName = data - case "clearDisplayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDisplayName")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearDisplayName = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDNEQ = data + case "idIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Description = data - case "clearDescription": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDescription")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDIn = data + case "idNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClearDescription = data - case "domains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domains")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Domains = data - case "appendDomains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendDomains")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.AppendDomains = data - case "clearDomains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDomains")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearDomains = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Status = data - case "clearStatus": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStatus")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearStatus = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + 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.OwnerID = data - case "clearOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOwner")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearOwner = data - case "addContactIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addContactIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.HistoryTime = data + case "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddContactIDs = data - case "removeContactIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeContactIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.RemoveContactIDs = data - case "clearContacts": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearContacts")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearContacts = data - case "addDocumentIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addDocumentIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.HistoryTimeNotIn = 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.AddDocumentIDs = data - case "removeDocumentIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeDocumentIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveDocumentIDs = data - case "clearDocuments": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDocuments")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearDocuments = data - case "addNoteIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addNoteIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddNoteIDs = data - case "removeNoteIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeNoteIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveNoteIDs = data - case "clearNotes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNotes")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearNotes = data - case "addFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddFileIDs = data - case "removeFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveFileIDs = data - case "clearFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.RefNotIn = data + case "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearFiles = data - case "entityTypeID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityTypeID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EntityTypeID = data - case "clearEntityType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntityType")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearEntityType = data - case "note": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("note")) - data, err := ec.unmarshalOCreateNoteInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNoteInput(ctx, v) + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - if err = ec.resolvers.UpdateEntityInput().Note(ctx, &it, data); err != nil { + it.RefLTE = data + case "refContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { return it, err } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateEntityTypeInput(ctx context.Context, obj interface{}) (generated.UpdateEntityTypeInput, error) { - var it generated.UpdateEntityTypeInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "ownerID", "clearOwner", "addEntityIDs", "removeEntityIDs", "clearEntities"} - 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) + 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.Tags = data - case "appendTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) + 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.ClearTags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + 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.Name = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + 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.OwnerID = data - case "clearOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOwner")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.RefContainsFold = data + case "operation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) + data, err := ec.unmarshalOUserHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) if err != nil { return it, err } - it.ClearOwner = data - case "addEntityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntityIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.Operation = data + case "operationNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNEQ")) + data, err := ec.unmarshalOUserHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) if err != nil { return it, err } - it.AddEntityIDs = data - case "removeEntityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntityIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.OperationNEQ = data + case "operationIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationIn")) + data, err := ec.unmarshalOUserHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } - it.RemoveEntityIDs = data - case "clearEntities": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntities")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.OperationIn = data + case "operationNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNotIn")) + data, err := ec.unmarshalOUserHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } - it.ClearEntities = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateEventInput(ctx context.Context, obj interface{}) (generated.UpdateEventInput, error) { - var it generated.UpdateEventInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "eventID", "clearEventID", "correlationID", "clearCorrelationID", "eventType", "metadata", "clearMetadata", "addUserIDs", "removeUserIDs", "clearUser", "addGroupIDs", "removeGroupIDs", "clearGroup", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegration", "addOrganizationIDs", "removeOrganizationIDs", "clearOrganization", "addInviteIDs", "removeInviteIDs", "clearInvite", "addFeatureIDs", "removeFeatureIDs", "clearFeature", "addEntitlementplanIDs", "removeEntitlementplanIDs", "clearEntitlementplan", "addPersonalAccessTokenIDs", "removePersonalAccessTokenIDs", "clearPersonalAccessToken", "addOauth2tokenIDs", "removeOauth2tokenIDs", "clearOauth2token", "addHushIDs", "removeHushIDs", "clearHush", "addEntitlementIDs", "removeEntitlementIDs", "clearEntitlement", "addWebhookIDs", "removeWebhookIDs", "clearWebhook", "addSubscriberIDs", "removeSubscriberIDs", "clearSubscriber", "addFileIDs", "removeFileIDs", "clearFile"} - 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) + 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.Tags = data - case "appendTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearTags = data - case "eventID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.EventID = data - case "clearEventID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEventID")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearEventID = data - case "correlationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("correlationID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.CorrelationID = data - case "clearCorrelationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearCorrelationID")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearCorrelationID = data - case "eventType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("eventType")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EventType = data - case "metadata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) - data, err := ec.unmarshalOMap2map(ctx, v) + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Metadata = data - case "clearMetadata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearMetadata")) + 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.ClearMetadata = data - case "addUserIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUserIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddUserIDs = data - case "removeUserIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUserIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RemoveUserIDs = data - case "clearUser": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUser")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearUser = data - case "addGroupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.AddGroupIDs = data - case "removeGroupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeGroupIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RemoveGroupIDs = data - case "clearGroup": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGroup")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearGroup = data - case "addIntegrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddIntegrationIDs = data - case "removeIntegrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveIntegrationIDs = data - case "clearIntegration": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegration")) + 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.ClearIntegration = data - case "addOrganizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddOrganizationIDs = data - case "removeOrganizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveOrganizationIDs = data - case "clearOrganization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganization")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearOrganization = data - case "addInviteIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addInviteIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddInviteIDs = data - case "removeInviteIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeInviteIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveInviteIDs = data - case "clearInvite": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearInvite")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearInvite = data - case "addFeatureIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFeatureIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddFeatureIDs = data - case "removeFeatureIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFeatureIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveFeatureIDs = data - case "clearFeature": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFeature")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearFeature = data - case "addEntitlementplanIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntitlementplanIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddEntitlementplanIDs = data - case "removeEntitlementplanIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntitlementplanIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveEntitlementplanIDs = data - case "clearEntitlementplan": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntitlementplan")) + 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.ClearEntitlementplan = data - case "addPersonalAccessTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPersonalAccessTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddPersonalAccessTokenIDs = data - case "removePersonalAccessTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePersonalAccessTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemovePersonalAccessTokenIDs = data - case "clearPersonalAccessToken": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPersonalAccessToken")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearPersonalAccessToken = data - case "addOauth2tokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOauth2tokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddOauth2tokenIDs = data - case "removeOauth2tokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOauth2tokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveOauth2tokenIDs = data - case "clearOauth2token": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOauth2token")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearOauth2token = data - case "addHushIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addHushIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddHushIDs = data - case "removeHushIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeHushIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveHushIDs = data - case "clearHush": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearHush")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearHush = data - case "addEntitlementIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntitlementIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddEntitlementIDs = data - case "removeEntitlementIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntitlementIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveEntitlementIDs = data - case "clearEntitlement": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntitlement")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearEntitlement = data - case "addWebhookIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWebhookIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddWebhookIDs = data - case "removeWebhookIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWebhookIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveWebhookIDs = data - case "clearWebhook": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWebhook")) + 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.ClearWebhook = data - case "addSubscriberIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSubscriberIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddSubscriberIDs = data - case "removeSubscriberIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSubscriberIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveSubscriberIDs = data - case "clearSubscriber": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubscriber")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearSubscriber = data - case "addFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddFileIDs = data - case "removeFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RemoveFileIDs = data - case "clearFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFile")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearFile = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateFeatureInput(ctx context.Context, obj interface{}) (generated.UpdateFeatureInput, error) { - var it generated.UpdateFeatureInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "displayName", "clearDisplayName", "enabled", "description", "clearDescription", "metadata", "clearMetadata", "ownerID", "clearOwner", "addPlanIDs", "removePlanIDs", "clearPlans", "addEventIDs", "removeEventIDs", "clearEvents"} - 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) + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(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) + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearTags = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "clearDisplayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDisplayName")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearDisplayName = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Enabled = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) 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) + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearDescription = data - case "metadata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) - data, err := ec.unmarshalOMap2map(ctx, v) + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖ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) + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearOwner = data - case "addPlanIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPlanIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddPlanIDs = data - case "removePlanIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePlanIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.RemovePlanIDs = data - case "clearPlans": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPlans")) + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearPlans = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedByContainsFold = data + case "email": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearEvents = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateFileInput(ctx context.Context, obj interface{}) (generated.UpdateFileInput, error) { - var it generated.UpdateFileInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "providedFileName", "providedFileExtension", "providedFileSize", "clearProvidedFileSize", "persistedFileSize", "clearPersistedFileSize", "detectedMimeType", "clearDetectedMimeType", "md5Hash", "clearMd5Hash", "detectedContentType", "storeKey", "clearStoreKey", "categoryType", "clearCategoryType", "uri", "clearURI", "storageScheme", "clearStorageScheme", "storageVolume", "clearStorageVolume", "storagePath", "clearStoragePath", "addUserIDs", "removeUserIDs", "clearUser", "addOrganizationIDs", "removeOrganizationIDs", "clearOrganization", "addGroupIDs", "removeGroupIDs", "clearGroup", "addContactIDs", "removeContactIDs", "clearContact", "addEntityIDs", "removeEntityIDs", "clearEntity", "addUsersettingIDs", "removeUsersettingIDs", "clearUsersetting", "addOrganizationsettingIDs", "removeOrganizationsettingIDs", "clearOrganizationsetting", "addTemplateIDs", "removeTemplateIDs", "clearTemplate", "addDocumentdatumIDs", "removeDocumentdatumIDs", "clearDocumentdata", "addEventIDs", "removeEventIDs", "clearEvents"} - 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) + 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.Tags = data - case "appendTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) + 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.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearTags = data - case "providedFileName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileName")) + it.EmailNotIn = data + case "emailGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileName = data - case "providedFileExtension": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileExtension")) + it.EmailGT = data + case "emailGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileExtension = data - case "providedFileSize": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("providedFileSize")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.EmailGTE = data + case "emailLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ProvidedFileSize = data - case "clearProvidedFileSize": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearProvidedFileSize")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.EmailLT = data + case "emailLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearProvidedFileSize = data - case "persistedFileSize": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("persistedFileSize")) - data, err := ec.unmarshalOInt2ᚖint64(ctx, v) + it.EmailLTE = data + case "emailContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PersistedFileSize = data - case "clearPersistedFileSize": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPersistedFileSize")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearPersistedFileSize = data - case "detectedMimeType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedMimeType")) + 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.DetectedMimeType = data - case "clearDetectedMimeType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDetectedMimeType")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearDetectedMimeType = data - case "md5Hash": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("md5Hash")) + 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.Md5Hash = data - case "clearMd5Hash": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearMd5Hash")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.EmailContainsFold = data + case "firstName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearMd5Hash = data - case "detectedContentType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("detectedContentType")) + it.FirstName = data + case "firstNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DetectedContentType = data - case "storeKey": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storeKey")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.FirstNameNEQ = data + case "firstNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.StoreKey = data - case "clearStoreKey": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStoreKey")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.FirstNameIn = data + case "firstNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClearStoreKey = data - case "categoryType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoryType")) + it.FirstNameNotIn = data + case "firstNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CategoryType = data - case "clearCategoryType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearCategoryType")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.FirstNameGT = data + case "firstNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearCategoryType = data - case "uri": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uri")) + it.FirstNameGTE = data + case "firstNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.URI = data - case "clearURI": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearURI")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.FirstNameLT = data + case "firstNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearURI = data - case "storageScheme": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageScheme")) + it.FirstNameLTE = data + case "firstNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageScheme = data - case "clearStorageScheme": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStorageScheme")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.FirstNameContains = data + case "firstNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearStorageScheme = data - case "storageVolume": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storageVolume")) + it.FirstNameHasPrefix = data + case "firstNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StorageVolume = data - case "clearStorageVolume": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStorageVolume")) + it.FirstNameHasSuffix = data + case "firstNameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearStorageVolume = data - case "storagePath": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storagePath")) + it.FirstNameIsNil = data + case "firstNameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FirstNameNotNil = data + case "firstNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StoragePath = data - case "clearStoragePath": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearStoragePath")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.FirstNameEqualFold = data + case "firstNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearStoragePath = data - case "addUserIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUserIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.FirstNameContainsFold = data + case "lastName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddUserIDs = data - case "removeUserIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUserIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastName = data + case "lastNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveUserIDs = data - case "clearUser": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUser")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LastNameNEQ = data + case "lastNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClearUser = data - case "addOrganizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastNameIn = data + case "lastNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddOrganizationIDs = data - case "removeOrganizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastNameNotIn = data + case "lastNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveOrganizationIDs = data - case "clearOrganization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganization")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LastNameGT = data + case "lastNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearOrganization = data - case "addGroupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastNameGTE = data + case "lastNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddGroupIDs = data - case "removeGroupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeGroupIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastNameLT = data + case "lastNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveGroupIDs = data - case "clearGroup": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGroup")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LastNameLTE = data + case "lastNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearGroup = data - case "addContactIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addContactIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastNameContains = data + case "lastNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddContactIDs = data - case "removeContactIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeContactIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastNameHasPrefix = data + case "lastNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveContactIDs = data - case "clearContact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearContact")) + it.LastNameHasSuffix = data + case "lastNameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearContact = data - case "addEntityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntityIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastNameIsNil = data + case "lastNameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AddEntityIDs = data - case "removeEntityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntityIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastNameNotNil = data + case "lastNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveEntityIDs = data - case "clearEntity": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntity")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LastNameEqualFold = data + case "lastNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearEntity = data - case "addUsersettingIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUsersettingIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastNameContainsFold = data + case "displayName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddUsersettingIDs = data - case "removeUsersettingIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUsersettingIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayName = data + case "displayNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveUsersettingIDs = data - case "clearUsersetting": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUsersetting")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DisplayNameNEQ = data + case "displayNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClearUsersetting = data - case "addOrganizationsettingIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationsettingIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameIn = data + case "displayNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddOrganizationsettingIDs = data - case "removeOrganizationsettingIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationsettingIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameNotIn = data + case "displayNameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveOrganizationsettingIDs = data - case "clearOrganizationsetting": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganizationsetting")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DisplayNameGT = data + case "displayNameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearOrganizationsetting = data - case "addTemplateIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTemplateIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameGTE = data + case "displayNameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddTemplateIDs = data - case "removeTemplateIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTemplateIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameLT = data + case "displayNameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveTemplateIDs = data - case "clearTemplate": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTemplate")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DisplayNameLTE = data + case "displayNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearTemplate = data - case "addDocumentdatumIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addDocumentdatumIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameContains = data + case "displayNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddDocumentdatumIDs = data - case "removeDocumentdatumIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeDocumentdatumIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameHasPrefix = data + case "displayNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveDocumentdatumIDs = data - case "clearDocumentdata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDocumentdata")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DisplayNameHasSuffix = data + case "displayNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearDocumentdata = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameEqualFold = data + case "displayNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DisplayNameContainsFold = data + case "avatarRemoteURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AvatarRemoteURL = data + case "avatarRemoteURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearEvents = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateGroupInput(ctx context.Context, obj interface{}) (generated.UpdateGroupInput, error) { - var it generated.UpdateGroupInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "gravatarLogoURL", "clearGravatarLogoURL", "logoURL", "clearLogoURL", "displayName", "ownerID", "clearOwner", "settingID", "addUserIDs", "removeUserIDs", "clearUsers", "addEventIDs", "removeEventIDs", "clearEvents", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegrations", "addFileIDs", "removeFileIDs", "clearFiles", "addGroupMembers", "updateGroupSettings"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "tags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + it.AvatarRemoteURLNEQ = data + case "avatarRemoteURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLIn")) 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")) + it.AvatarRemoteURLIn = data + case "avatarRemoteURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNotIn")) 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) + it.AvatarRemoteURLNotIn = data + case "avatarRemoteURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearTags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + it.AvatarRemoteURLGT = data + case "avatarRemoteURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLGTE")) 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")) + it.AvatarRemoteURLGTE = data + case "avatarRemoteURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLLT")) 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) + it.AvatarRemoteURLLT = data + case "avatarRemoteURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearDescription = data - case "gravatarLogoURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gravatarLogoURL")) + it.AvatarRemoteURLLTE = data + case "avatarRemoteURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.GravatarLogoURL = data - case "clearGravatarLogoURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGravatarLogoURL")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AvatarRemoteURLContains = data + case "avatarRemoteURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearGravatarLogoURL = data - case "logoURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("logoURL")) + it.AvatarRemoteURLHasPrefix = data + case "avatarRemoteURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LogoURL = data - case "clearLogoURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLogoURL")) + it.AvatarRemoteURLHasSuffix = data + case "avatarRemoteURLIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearLogoURL = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + it.AvatarRemoteURLIsNil = data + case "avatarRemoteURLNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.AvatarRemoteURLNotNil = data + case "avatarRemoteURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AvatarRemoteURLEqualFold = data + case "avatarRemoteURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLContainsFold")) + data, err := ec.unmarshalOString2ᚖ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) + it.AvatarRemoteURLContainsFold = data + case "avatarLocalFile": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFile")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearOwner = data - case "settingID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AvatarLocalFile = data + case "avatarLocalFileNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SettingID = data - case "addUserIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUserIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AvatarLocalFileNEQ = data + case "avatarLocalFileIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddUserIDs = data - case "removeUserIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUserIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AvatarLocalFileIn = data + case "avatarLocalFileNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveUserIDs = data - case "clearUsers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUsers")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AvatarLocalFileNotIn = data + case "avatarLocalFileGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearUsers = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AvatarLocalFileGT = data + case "avatarLocalFileGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AvatarLocalFileGTE = data + case "avatarLocalFileLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AvatarLocalFileLT = data + case "avatarLocalFileLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearEvents = data - case "addIntegrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AvatarLocalFileLTE = data + case "avatarLocalFileContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddIntegrationIDs = data - case "removeIntegrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AvatarLocalFileContains = data + case "avatarLocalFileHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveIntegrationIDs = data - case "clearIntegrations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegrations")) + it.AvatarLocalFileHasPrefix = data + case "avatarLocalFileHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarLocalFileHasSuffix = data + case "avatarLocalFileIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearIntegrations = data - case "addFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AvatarLocalFileIsNil = data + case "avatarLocalFileNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AddFileIDs = data - case "removeFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AvatarLocalFileNotNil = data + case "avatarLocalFileEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveFileIDs = data - case "clearFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AvatarLocalFileEqualFold = data + case "avatarLocalFileContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearFiles = data - case "addGroupMembers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupMembers")) - data, err := ec.unmarshalOCreateGroupMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInputᚄ(ctx, v) + it.AvatarLocalFileContainsFold = data + case "avatarLocalFileID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - if err = ec.resolvers.UpdateGroupInput().AddGroupMembers(ctx, &it, data); err != nil { + it.AvatarLocalFileID = data + case "avatarLocalFileIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { return it, err } - case "updateGroupSettings": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updateGroupSettings")) - data, err := ec.unmarshalOUpdateGroupSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupSettingInput(ctx, v) + it.AvatarLocalFileIDNEQ = data + case "avatarLocalFileIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - if err = ec.resolvers.UpdateGroupInput().UpdateGroupSettings(ctx, &it, data); err != nil { + it.AvatarLocalFileIDIn = data + case "avatarLocalFileIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { return it, err } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateGroupMembershipInput(ctx context.Context, obj interface{}) (generated.UpdateGroupMembershipInput, error) { - var it generated.UpdateGroupMembershipInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"role", "addEventIDs", "removeEventIDs", "clearEvents"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOGroupMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + it.AvatarLocalFileIDNotIn = data + case "avatarLocalFileIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Role = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AvatarLocalFileIDGT = data + case "avatarLocalFileIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AvatarLocalFileIDGTE = data + case "avatarLocalFileIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AvatarLocalFileIDLT = data + case "avatarLocalFileIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearEvents = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateGroupSettingInput(ctx context.Context, obj interface{}) (generated.UpdateGroupSettingInput, error) { - var it generated.UpdateGroupSettingInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "visibility", "joinPolicy", "syncToSlack", "clearSyncToSlack", "syncToGithub", "clearSyncToGithub", "groupID", "clearGroup"} - 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) + it.AvatarLocalFileIDLTE = data + case "avatarLocalFileIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDContains")) + 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) + it.AvatarLocalFileIDContains = data + case "avatarLocalFileIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDHasPrefix")) + 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")) + it.AvatarLocalFileIDHasPrefix = data + case "avatarLocalFileIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AvatarLocalFileIDHasSuffix = data + case "avatarLocalFileIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearTags = data - case "visibility": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("visibility")) - data, err := ec.unmarshalOGroupSettingVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, v) + it.AvatarLocalFileIDIsNil = data + case "avatarLocalFileIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Visibility = data - case "joinPolicy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("joinPolicy")) - data, err := ec.unmarshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, v) + it.AvatarLocalFileIDNotNil = data + case "avatarLocalFileIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.JoinPolicy = data - case "syncToSlack": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToSlack")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AvatarLocalFileIDEqualFold = data + case "avatarLocalFileIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SyncToSlack = data - case "clearSyncToSlack": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSyncToSlack")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AvatarLocalFileIDContainsFold = data + case "avatarUpdatedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearSyncToSlack = data - case "syncToGithub": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("syncToGithub")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.AvatarUpdatedAt = data + case "avatarUpdatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.SyncToGithub = data - case "clearSyncToGithub": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSyncToGithub")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AvatarUpdatedAtNEQ = data + case "avatarUpdatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearSyncToGithub = data - case "groupID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.AvatarUpdatedAtIn = data + case "avatarUpdatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(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) + it.AvatarUpdatedAtNotIn = data + case "avatarUpdatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearGroup = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateHushInput(ctx context.Context, obj interface{}) (generated.UpdateHushInput, error) { - var it generated.UpdateHushInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"name", "description", "clearDescription", "kind", "clearKind", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegrations", "addOrganizationIDs", "removeOrganizationIDs", "clearOrganization", "addEventIDs", "removeEventIDs", "clearEvents"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AvatarUpdatedAtGT = data + case "avatarUpdatedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(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) + it.AvatarUpdatedAtGTE = data + case "avatarUpdatedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(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) + it.AvatarUpdatedAtLT = data + case "avatarUpdatedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearDescription = data - case "kind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.AvatarUpdatedAtLTE = data + case "avatarUpdatedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.Kind = data - case "clearKind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearKind")) + it.AvatarUpdatedAtIsNil = data + case "avatarUpdatedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearKind = data - case "addIntegrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AvatarUpdatedAtNotNil = data + case "lastSeen": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeen")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddIntegrationIDs = data - case "removeIntegrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastSeen = data + case "lastSeenNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RemoveIntegrationIDs = data - case "clearIntegrations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegrations")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LastSeenNEQ = data + case "lastSeenIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearIntegrations = data - case "addOrganizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastSeenIn = data + case "lastSeenNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.AddOrganizationIDs = data - case "removeOrganizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastSeenNotIn = data + case "lastSeenGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RemoveOrganizationIDs = data - case "clearOrganization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganization")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LastSeenGT = data + case "lastSeenGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearOrganization = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastSeenGTE = data + case "lastSeenLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.LastSeenLT = data + case "lastSeenLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + it.LastSeenLTE = data + case "lastSeenIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearEvents = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateIntegrationInput(ctx context.Context, obj interface{}) (generated.UpdateIntegrationInput, error) { - var it generated.UpdateIntegrationInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "kind", "clearKind", "ownerID", "clearOwner", "addSecretIDs", "removeSecretIDs", "clearSecrets", "addOauth2tokenIDs", "removeOauth2tokenIDs", "clearOauth2tokens", "addEventIDs", "removeEventIDs", "clearEvents", "addWebhookIDs", "removeWebhookIDs", "clearWebhooks"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "tags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + it.LastSeenIsNil = data + case "lastSeenNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.LastSeenNotNil = data + case "sub": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sub")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Sub = data + case "subNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubNEQ = data + case "subIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subIn")) 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")) + it.SubIn = data + case "subNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subNotIn")) 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) + it.SubNotIn = data + case "subGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearTags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + it.SubGT = data + case "subGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subGTE")) 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")) + it.SubGTE = data + case "subLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subLT")) 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) + it.SubLT = data + case "subLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearDescription = data - case "kind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind")) + it.SubLTE = data + case "subContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Kind = data - case "clearKind": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearKind")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SubContains = data + case "subHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearKind = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.SubHasPrefix = data + case "subHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "clearOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOwner")) + it.SubHasSuffix = data + case "subIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearOwner = data - case "addSecretIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSecretIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.SubIsNil = data + case "subNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AddSecretIDs = data - case "removeSecretIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSecretIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.SubNotNil = data + case "subEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveSecretIDs = data - case "clearSecrets": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSecrets")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SubEqualFold = data + case "subContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearSecrets = data - case "addOauth2tokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOauth2tokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.SubContainsFold = data + case "authProvider": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProvider")) + data, err := ec.unmarshalOUserHistoryAuthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, v) if err != nil { return it, err } - it.AddOauth2tokenIDs = data - case "removeOauth2tokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOauth2tokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AuthProvider = data + case "authProviderNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProviderNEQ")) + data, err := ec.unmarshalOUserHistoryAuthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, v) if err != nil { return it, err } - it.RemoveOauth2tokenIDs = data - case "clearOauth2tokens": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOauth2tokens")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.AuthProviderNEQ = data + case "authProviderIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProviderIn")) + data, err := ec.unmarshalOUserHistoryAuthProvider2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProviderᚄ(ctx, v) if err != nil { return it, err } - it.ClearOauth2tokens = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AuthProviderIn = data + case "authProviderNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProviderNotIn")) + data, err := ec.unmarshalOUserHistoryAuthProvider2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProviderᚄ(ctx, v) if err != nil { return it, err } - it.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.AuthProviderNotIn = data + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOUserHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) if err != nil { return it, err } - it.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.Role = data + case "roleNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) + data, err := ec.unmarshalOUserHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) if err != nil { return it, err } - it.ClearEvents = data - case "addWebhookIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWebhookIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.RoleNEQ = data + case "roleIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) + data, err := ec.unmarshalOUserHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) if err != nil { return it, err } - it.AddWebhookIDs = data - case "removeWebhookIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWebhookIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.RoleIn = data + case "roleNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) + data, err := ec.unmarshalOUserHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) if err != nil { return it, err } - it.RemoveWebhookIDs = data - case "clearWebhooks": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWebhooks")) + it.RoleNotIn = data + case "roleIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearWebhooks = data + it.RoleIsNil = data + case "roleNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.RoleNotNil = data } } return it, nil } -func (ec *executionContext) unmarshalInputUpdateInviteInput(ctx context.Context, obj interface{}) (generated.UpdateInviteInput, error) { - var it generated.UpdateInviteInput +func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj interface{}) (generated.UserOrder, error) { + var it generated.UserOrder asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"expires", "clearExpires", "status", "role", "sendAttempts", "ownerID", "clearOwner", "addEventIDs", "removeEventIDs", "clearEvents"} + 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 "expires": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expires")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.Expires = data - case "clearExpires": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearExpires")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.Direction = data + case "field": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) + data, err := ec.unmarshalNUserOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrderField(ctx, v) if err != nil { return it, err } - it.ClearExpires = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOInviteInviteStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, v) + it.Field = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputUserSettingHistoryWhereInput(ctx context.Context, obj interface{}) (generated.UserSettingHistoryWhereInput, error) { + var it generated.UserSettingHistoryWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDGT", "userIDGTE", "userIDLT", "userIDLTE", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDIsNil", "userIDNotNil", "userIDEqualFold", "userIDContainsFold", "locked", "lockedNEQ", "silencedAt", "silencedAtNEQ", "silencedAtIn", "silencedAtNotIn", "silencedAtGT", "silencedAtGTE", "silencedAtLT", "silencedAtLTE", "silencedAtIsNil", "silencedAtNotNil", "suspendedAt", "suspendedAtNEQ", "suspendedAtIn", "suspendedAtNotIn", "suspendedAtGT", "suspendedAtGTE", "suspendedAtLT", "suspendedAtLTE", "suspendedAtIsNil", "suspendedAtNotNil", "status", "statusNEQ", "statusIn", "statusNotIn", "emailConfirmed", "emailConfirmedNEQ", "isWebauthnAllowed", "isWebauthnAllowedNEQ", "isWebauthnAllowedIsNil", "isWebauthnAllowedNotNil", "isTfaEnabled", "isTfaEnabledNEQ", "isTfaEnabledIsNil", "isTfaEnabledNotNil"} + 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.unmarshalOUserSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryWhereInput(ctx, v) if err != nil { return it, err } - it.Status = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOInviteRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOUserSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.Role = data - case "sendAttempts": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sendAttempts")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOUserSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.SendAttempts = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + 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.OwnerID = data - case "clearOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOwner")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearOwner = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) + 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.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) + 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.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearEvents = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateNoteInput(ctx context.Context, obj interface{}) (generated.UpdateNoteInput, error) { - var it generated.UpdateNoteInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "text", "ownerID", "clearOwner", "entityID", "clearEntity"} - 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) + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Tags = data - case "appendTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearTags = data - case "text": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("text")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Text = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + 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.OwnerID = data - case "clearOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOwner")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearOwner = data - case "entityID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("entityID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.HistoryTime = data + case "historyTimeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EntityID = data - case "clearEntity": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntity")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.HistoryTimeNEQ = data + case "historyTimeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearEntity = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateOauthProviderInput(ctx context.Context, obj interface{}) (generated.UpdateOauthProviderInput, error) { - var it generated.UpdateOauthProviderInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "clientID", "clientSecret", "redirectURL", "scopes", "authURL", "tokenURL", "authStyle", "infoURL", "ownerID", "clearOwner"} - 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) + it.HistoryTimeIn = data + case "historyTimeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(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) + it.HistoryTimeNotIn = 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.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearTags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.Name = data - case "clientID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.ClientID = data - case "clientSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) + 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.ClientSecret = data - case "redirectURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirectURL")) + 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.RedirectURL = data - case "scopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.Scopes = data - case "authURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.AuthURL = data - case "tokenURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tokenURL")) + it.RefNotIn = data + case "refGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.TokenURL = data - case "authStyle": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authStyle")) - data, err := ec.unmarshalOUint2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx, v) + it.RefGT = data + case "refGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AuthStyle = data - case "infoURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("infoURL")) + it.RefGTE = data + case "refLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.InfoURL = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.RefLT = data + case "refLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) + data, err := ec.unmarshalOString2ᚖ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) + it.RefLTE = data + case "refContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearOwner = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateOhAuthTooTokenInput(ctx context.Context, obj interface{}) (generated.UpdateOhAuthTooTokenInput, error) { - var it generated.UpdateOhAuthTooTokenInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "clientID", "scopes", "appendScopes", "clearScopes", "nonce", "claimsUserID", "claimsUsername", "claimsEmail", "claimsEmailVerified", "claimsGroups", "appendClaimsGroups", "clearClaimsGroups", "claimsPreferredUsername", "connectorID", "connectorData", "appendConnectorData", "clearConnectorData", "lastUsed", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegration", "addEventIDs", "removeEventIDs", "clearEvents"} - 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) + 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.Tags = data - case "appendTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) + 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.ClearTags = data - case "clientID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.ClientID = data - case "scopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.Scopes = data - case "appendScopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendScopes")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.AppendScopes = data - case "clearScopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearScopes")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.RefContainsFold = data + case "operation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) + data, err := ec.unmarshalOUserSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) if err != nil { return it, err } - it.ClearScopes = data - case "nonce": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nonce")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Operation = data + case "operationNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNEQ")) + data, err := ec.unmarshalOUserSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) if err != nil { return it, err } - it.Nonce = data - case "claimsUserID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUserID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OperationNEQ = data + case "operationIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationIn")) + data, err := ec.unmarshalOUserSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } - it.ClaimsUserID = data - case "claimsUsername": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsUsername")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.OperationIn = data + case "operationNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNotIn")) + data, err := ec.unmarshalOUserSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } - it.ClaimsUsername = data - case "claimsEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmail")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.ClaimsEmail = data - case "claimsEmailVerified": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsEmailVerified")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClaimsEmailVerified = data - case "claimsGroups": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsGroups")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClaimsGroups = data - case "appendClaimsGroups": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendClaimsGroups")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.AppendClaimsGroups = data - case "clearClaimsGroups": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearClaimsGroups")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearClaimsGroups = data - case "claimsPreferredUsername": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claimsPreferredUsername")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClaimsPreferredUsername = data - case "connectorID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ConnectorID = data - case "connectorData": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connectorData")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ConnectorData = data - case "appendConnectorData": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendConnectorData")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.CreatedAtLTE = data + case "createdAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AppendConnectorData = data - case "clearConnectorData": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearConnectorData")) + 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.ClearConnectorData = data - case "lastUsed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsed")) + 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.LastUsed = data - case "addIntegrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddIntegrationIDs = data - case "removeIntegrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.RemoveIntegrationIDs = data - case "clearIntegration": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegration")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearIntegration = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearEvents = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateOrgMembershipInput(ctx context.Context, obj interface{}) (generated.UpdateOrgMembershipInput, error) { - var it generated.UpdateOrgMembershipInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"role", "addEventIDs", "removeEventIDs", "clearEvents"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOOrgMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + 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.Role = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearEvents = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Context, obj interface{}) (generated.UpdateOrganizationInput, error) { - var it generated.UpdateOrganizationInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "displayName", "description", "clearDescription", "avatarRemoteURL", "clearAvatarRemoteURL", "addGroupIDs", "removeGroupIDs", "clearGroups", "addTemplateIDs", "removeTemplateIDs", "clearTemplates", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegrations", "settingID", "clearSetting", "addDocumentdatumIDs", "removeDocumentdatumIDs", "clearDocumentdata", "addEntitlementIDs", "removeEntitlementIDs", "clearEntitlements", "addOrganizationEntitlementIDs", "removeOrganizationEntitlementIDs", "clearOrganizationEntitlement", "addPersonalAccessTokenIDs", "removePersonalAccessTokenIDs", "clearPersonalAccessTokens", "addAPITokenIDs", "removeAPITokenIDs", "clearAPITokens", "addOauthproviderIDs", "removeOauthproviderIDs", "clearOauthprovider", "addUserIDs", "removeUserIDs", "clearUsers", "addInviteIDs", "removeInviteIDs", "clearInvites", "addSubscriberIDs", "removeSubscriberIDs", "clearSubscribers", "addWebhookIDs", "removeWebhookIDs", "clearWebhooks", "addEventIDs", "removeEventIDs", "clearEvents", "addSecretIDs", "removeSecretIDs", "clearSecrets", "addFeatureIDs", "removeFeatureIDs", "clearFeatures", "addFileIDs", "removeFileIDs", "clearFiles", "addEntitlementplanIDs", "removeEntitlementplanIDs", "clearEntitlementplans", "addEntityIDs", "removeEntityIDs", "clearEntities", "addEntitytypeIDs", "removeEntitytypeIDs", "clearEntitytypes", "addContactIDs", "removeContactIDs", "clearContacts", "addNoteIDs", "removeNoteIDs", "clearNotes", "addOrgMembers", "updateOrgSettings"} - 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) + 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.Tags = data - case "appendTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) + 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.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearTags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Name = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Description = data - case "clearDescription": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDescription")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearDescription = data - case "avatarRemoteURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURL = data - case "clearAvatarRemoteURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAvatarRemoteURL")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearAvatarRemoteURL = data - case "addGroupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddGroupIDs = data - case "removeGroupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeGroupIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveGroupIDs = data - case "clearGroups": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGroups")) + 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.ClearGroups = data - case "addTemplateIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTemplateIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddTemplateIDs = data - case "removeTemplateIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTemplateIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveTemplateIDs = data - case "clearTemplates": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTemplates")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearTemplates = data - case "addIntegrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddIntegrationIDs = data - case "removeIntegrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveIntegrationIDs = data - case "clearIntegrations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegrations")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearIntegrations = data - case "settingID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SettingID = data - case "clearSetting": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSetting")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearSetting = data - case "addDocumentdatumIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addDocumentdatumIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddDocumentdatumIDs = data - case "removeDocumentdatumIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeDocumentdatumIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveDocumentdatumIDs = data - case "clearDocumentdata": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDocumentdata")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearDocumentdata = data - case "addEntitlementIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntitlementIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddEntitlementIDs = data - case "removeEntitlementIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntitlementIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveEntitlementIDs = data - case "clearEntitlements": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntitlements")) + 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.ClearEntitlements = data - case "addOrganizationEntitlementIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationEntitlementIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddOrganizationEntitlementIDs = data - case "removeOrganizationEntitlementIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationEntitlementIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveOrganizationEntitlementIDs = data - case "clearOrganizationEntitlement": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganizationEntitlement")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearOrganizationEntitlement = data - case "addPersonalAccessTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPersonalAccessTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddPersonalAccessTokenIDs = data - case "removePersonalAccessTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePersonalAccessTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RemovePersonalAccessTokenIDs = data - case "clearPersonalAccessTokens": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPersonalAccessTokens")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearPersonalAccessTokens = data - case "addAPITokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAPITokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.AddAPITokenIDs = data - case "removeAPITokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAPITokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RemoveAPITokenIDs = data - case "clearAPITokens": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAPITokens")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearAPITokens = data - case "addOauthproviderIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOauthproviderIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddOauthproviderIDs = data - case "removeOauthproviderIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOauthproviderIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RemoveOauthproviderIDs = data - case "clearOauthprovider": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOauthprovider")) + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearOauthprovider = data - case "addUserIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addUserIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AddUserIDs = data - case "removeUserIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeUserIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveUserIDs = data - case "clearUsers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUsers")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearUsers = data - case "addInviteIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addInviteIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AddInviteIDs = data - case "removeInviteIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeInviteIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RemoveInviteIDs = data - case "clearInvites": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearInvites")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearInvites = data - case "addSubscriberIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSubscriberIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddSubscriberIDs = data - case "removeSubscriberIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSubscriberIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveSubscriberIDs = data - case "clearSubscribers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubscribers")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearSubscribers = data - case "addWebhookIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWebhookIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddWebhookIDs = data - case "removeWebhookIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWebhookIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveWebhookIDs = data - case "clearWebhooks": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWebhooks")) + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearWebhooks = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearEvents = data - case "addSecretIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSecretIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByContainsFold = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddSecretIDs = data - case "removeSecretIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeSecretIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveSecretIDs = data - case "clearSecrets": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSecrets")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearSecrets = data - case "addFeatureIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFeatureIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddFeatureIDs = data - case "removeFeatureIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFeatureIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserIDNotIn = data + case "userIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveFeatureIDs = data - case "clearFeatures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFeatures")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UserIDGT = data + case "userIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearFeatures = data - case "addFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserIDGTE = data + case "userIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddFileIDs = data - case "removeFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserIDLT = data + case "userIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveFileIDs = data - case "clearFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UserIDLTE = data + case "userIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearFiles = data - case "addEntitlementplanIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntitlementplanIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddEntitlementplanIDs = data - case "removeEntitlementplanIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntitlementplanIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveEntitlementplanIDs = data - case "clearEntitlementplans": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntitlementplans")) + 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.ClearEntitlementplans = data - case "addEntityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntityIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddEntityIDs = data - case "removeEntityIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntityIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveEntityIDs = data - case "clearEntities": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntities")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearEntities = data - case "addEntitytypeIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEntitytypeIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserIDContainsFold = data + case "locked": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locked")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.AddEntitytypeIDs = data - case "removeEntitytypeIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEntitytypeIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.Locked = data + case "lockedNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lockedNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.RemoveEntitytypeIDs = data - case "clearEntitytypes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEntitytypes")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LockedNEQ = data + case "silencedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearEntitytypes = data - case "addContactIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addContactIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.SilencedAt = data + case "silencedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddContactIDs = data - case "removeContactIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeContactIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.SilencedAtNEQ = data + case "silencedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.RemoveContactIDs = data - case "clearContacts": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearContacts")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SilencedAtIn = data + case "silencedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearContacts = data - case "addNoteIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addNoteIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.SilencedAtNotIn = data + case "silencedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddNoteIDs = data - case "removeNoteIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeNoteIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.SilencedAtGT = data + case "silencedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RemoveNoteIDs = data - case "clearNotes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNotes")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SilencedAtGTE = data + case "silencedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearNotes = data - case "addOrgMembers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrgMembers")) - data, err := ec.unmarshalOCreateOrgMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInputᚄ(ctx, v) + it.SilencedAtLT = data + case "silencedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - if err = ec.resolvers.UpdateOrganizationInput().AddOrgMembers(ctx, &it, data); err != nil { + it.SilencedAtLTE = data + case "silencedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { return it, err } - case "updateOrgSettings": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updateOrgSettings")) - data, err := ec.unmarshalOUpdateOrganizationSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationSettingInput(ctx, v) + it.SilencedAtIsNil = data + case "silencedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - if err = ec.resolvers.UpdateOrganizationInput().UpdateOrgSettings(ctx, &it, data); err != nil { + it.SilencedAtNotNil = data + case "suspendedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { return it, err } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateOrganizationSettingInput(ctx context.Context, obj interface{}) (generated.UpdateOrganizationSettingInput, error) { - var it generated.UpdateOrganizationSettingInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "domains", "appendDomains", "clearDomains", "billingContact", "clearBillingContact", "billingEmail", "clearBillingEmail", "billingPhone", "clearBillingPhone", "billingAddress", "clearBillingAddress", "taxIdentifier", "clearTaxIdentifier", "geoLocation", "clearGeoLocation", "organizationID", "clearOrganization", "addFileIDs", "removeFileIDs", "clearFiles"} - 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) + it.SuspendedAt = data + case "suspendedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(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) + it.SuspendedAtNEQ = data + case "suspendedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(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) + it.SuspendedAtIn = data + case "suspendedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearTags = data - case "domains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("domains")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.SuspendedAtNotIn = data + case "suspendedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.Domains = data - case "appendDomains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendDomains")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.SuspendedAtGT = data + case "suspendedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AppendDomains = data - case "clearDomains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDomains")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SuspendedAtGTE = data + case "suspendedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearDomains = data - case "billingContact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingContact")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.SuspendedAtLT = data + case "suspendedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.BillingContact = data - case "clearBillingContact": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBillingContact")) + it.SuspendedAtLTE = data + case "suspendedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearBillingContact = data - case "billingEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingEmail")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.SuspendedAtIsNil = data + case "suspendedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.BillingEmail = data - case "clearBillingEmail": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBillingEmail")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SuspendedAtNotNil = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOUserSettingHistoryUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) if err != nil { return it, err } - it.ClearBillingEmail = data - case "billingPhone": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingPhone")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOUserSettingHistoryUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) if err != nil { return it, err } - it.BillingPhone = data - case "clearBillingPhone": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBillingPhone")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOUserSettingHistoryUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) if err != nil { return it, err } - it.ClearBillingPhone = data - case "billingAddress": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("billingAddress")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOUserSettingHistoryUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) if err != nil { return it, err } - it.BillingAddress = data - case "clearBillingAddress": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBillingAddress")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.StatusNotIn = data + case "emailConfirmed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailConfirmed")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ClearBillingAddress = data - case "taxIdentifier": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taxIdentifier")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.EmailConfirmed = data + case "emailConfirmedNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailConfirmedNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.TaxIdentifier = data - case "clearTaxIdentifier": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTaxIdentifier")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.EmailConfirmedNEQ = data + case "isWebauthnAllowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowed")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ClearTaxIdentifier = data - case "geoLocation": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("geoLocation")) - data, err := ec.unmarshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, v) + it.IsWebauthnAllowed = data + case "isWebauthnAllowedNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowedNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.GeoLocation = data - case "clearGeoLocation": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGeoLocation")) + it.IsWebauthnAllowedNEQ = data + case "isWebauthnAllowedIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowedIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearGeoLocation = data - case "organizationID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organizationID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.IsWebauthnAllowedIsNil = data + case "isWebauthnAllowedNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowedNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.OrganizationID = data - case "clearOrganization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganization")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IsWebauthnAllowedNotNil = data + case "isTfaEnabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ClearOrganization = data - case "addFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IsTfaEnabled = data + case "isTfaEnabledNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabledNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.AddFileIDs = data - case "removeFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IsTfaEnabledNEQ = data + case "isTfaEnabledIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabledIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.RemoveFileIDs = data - case "clearFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) + it.IsTfaEnabledIsNil = data + case "isTfaEnabledNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabledNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearFiles = data + it.IsTfaEnabledNotNil = data } } return it, nil } -func (ec *executionContext) unmarshalInputUpdatePersonalAccessTokenInput(ctx context.Context, obj interface{}) (generated.UpdatePersonalAccessTokenInput, error) { - var it generated.UpdatePersonalAccessTokenInput +func (ec *executionContext) unmarshalInputUserSettingWhereInput(ctx context.Context, obj interface{}) (generated.UserSettingWhereInput, error) { + var it generated.UserSettingWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "scopes", "appendScopes", "clearScopes", "lastUsedAt", "clearLastUsedAt", "addOrganizationIDs", "removeOrganizationIDs", "clearOrganizations", "addEventIDs", "removeEventIDs", "clearEvents"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDGT", "userIDGTE", "userIDLT", "userIDLTE", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDIsNil", "userIDNotNil", "userIDEqualFold", "userIDContainsFold", "locked", "lockedNEQ", "silencedAt", "silencedAtNEQ", "silencedAtIn", "silencedAtNotIn", "silencedAtGT", "silencedAtGTE", "silencedAtLT", "silencedAtLTE", "silencedAtIsNil", "silencedAtNotNil", "suspendedAt", "suspendedAtNEQ", "suspendedAtIn", "suspendedAtNotIn", "suspendedAtGT", "suspendedAtGTE", "suspendedAtLT", "suspendedAtLTE", "suspendedAtIsNil", "suspendedAtNotNil", "status", "statusNEQ", "statusIn", "statusNotIn", "emailConfirmed", "emailConfirmedNEQ", "isWebauthnAllowed", "isWebauthnAllowedNEQ", "isWebauthnAllowedIsNil", "isWebauthnAllowedNotNil", "isTfaEnabled", "isTfaEnabledNEQ", "isTfaEnabledIsNil", "isTfaEnabledNotNil", "hasUser", "hasUserWith", "hasDefaultOrg", "hasDefaultOrgWith", "hasFiles", "hasFilesWith"} 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 "scopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scopes")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + case "not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) + data, err := ec.unmarshalOUserSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInput(ctx, v) if err != nil { return it, err } - it.Scopes = data - case "appendScopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendScopes")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOUserSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.AppendScopes = data - case "clearScopes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearScopes")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOUserSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.ClearScopes = data - case "lastUsedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastUsedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.LastUsedAt = data - case "clearLastUsedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLastUsedAt")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearLastUsedAt = data - case "addOrganizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationIDs")) + 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.AddOrganizationIDs = data - case "removeOrganizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationIDs")) + 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.RemoveOrganizationIDs = data - case "clearOrganizations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganizations")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDNotIn = data + case "idGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearOrganizations = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDGT = data + case "idGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IDGTE = data + case "idLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDLT = data + case "idLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearEvents = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateSubscriberInput(ctx context.Context, obj interface{}) (generated.UpdateSubscriberInput, error) { - var it generated.UpdateSubscriberInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "email", "phoneNumber", "clearPhoneNumber", "ownerID", "clearOwner", "addEventIDs", "removeEventIDs", "clearEvents"} - 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) + it.IDLTE = data + case "idEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.Tags = data - case "appendTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.IDEqualFold = data + case "idContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IDContainsFold = data + case "createdAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearTags = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAt = data + case "createdAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.Email = data - case "phoneNumber": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("phoneNumber")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.CreatedAtNEQ = data + case "createdAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.PhoneNumber = data - case "clearPhoneNumber": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPhoneNumber")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedAtIn = data + case "createdAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearPhoneNumber = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.CreatedAtNotIn = data + case "createdAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "clearOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOwner")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedAtGT = data + case "createdAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearOwner = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedAtGTE = data + case "createdAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedAtLT = data + case "createdAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + 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.ClearEvents = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateTFASettingInput(ctx context.Context, obj interface{}) (generated.UpdateTFASettingInput, error) { - var it generated.UpdateTFASettingInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "verified", "totpAllowed", "clearTotpAllowed", "regenBackupCodes"} - 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) + 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.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearTags = data - case "verified": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("verified")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.UpdatedAt = data + case "updatedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.Verified = data - case "totpAllowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totpAllowed")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.UpdatedAtNEQ = data + case "updatedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.TotpAllowed = data - case "clearTotpAllowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTotpAllowed")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UpdatedAtIn = data + case "updatedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearTotpAllowed = data - case "regenBackupCodes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("regenBackupCodes")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.UpdatedAtNotIn = data + case "updatedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - if err = ec.resolvers.UpdateTFASettingInput().RegenBackupCodes(ctx, &it, data); err != nil { - return it, err - } - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateTemplateInput(ctx context.Context, obj interface{}) (generated.UpdateTemplateInput, error) { - var it generated.UpdateTemplateInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "templateType", "description", "clearDescription", "jsonconfig", "uischema", "clearUischema", "ownerID", "clearOwner", "addDocumentIDs", "removeDocumentIDs", "clearDocuments", "addFileIDs", "removeFileIDs", "clearFiles"} - 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) + 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.Tags = data - case "appendTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearTags = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.Name = data - case "templateType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("templateType")) - data, err := ec.unmarshalOTemplateDocumentType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, v) + 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.TemplateType = data - case "description": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + 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.Description = data - case "clearDescription": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDescription")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearDescription = data - case "jsonconfig": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jsonconfig")) - data, err := ec.unmarshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, v) + 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.Jsonconfig = data - case "uischema": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("uischema")) - data, err := ec.unmarshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, v) + 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.Uischema = data - case "clearUischema": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUischema")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedByNotIn = data + case "createdByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearUischema = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.CreatedByGT = data + case "createdByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.OwnerID = data - case "clearOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOwner")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.CreatedByGTE = data + case "createdByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearOwner = data - case "addDocumentIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addDocumentIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedByLT = data + case "createdByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddDocumentIDs = data - case "removeDocumentIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeDocumentIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.CreatedByLTE = data + case "createdByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveDocumentIDs = data - case "clearDocuments": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDocuments")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearDocuments = data - case "addFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddFileIDs = data - case "removeFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveFileIDs = data - case "clearFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) + 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.ClearFiles = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, obj interface{}) (generated.UpdateUserInput, error) { - var it generated.UpdateUserInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "email", "firstName", "clearFirstName", "lastName", "clearLastName", "displayName", "avatarRemoteURL", "clearAvatarRemoteURL", "avatarLocalFile", "clearAvatarLocalFile", "avatarUpdatedAt", "clearAvatarUpdatedAt", "lastSeen", "clearLastSeen", "password", "clearPassword", "sub", "clearSub", "authProvider", "role", "clearRole", "addPersonalAccessTokenIDs", "removePersonalAccessTokenIDs", "clearPersonalAccessTokens", "addTfaSettingIDs", "removeTfaSettingIDs", "clearTfaSettings", "settingID", "addEmailVerificationTokenIDs", "removeEmailVerificationTokenIDs", "clearEmailVerificationTokens", "addPasswordResetTokenIDs", "removePasswordResetTokenIDs", "clearPasswordResetTokens", "addGroupIDs", "removeGroupIDs", "clearGroups", "addOrganizationIDs", "removeOrganizationIDs", "clearOrganizations", "addWebauthnIDs", "removeWebauthnIDs", "clearWebauthn", "addFileIDs", "removeFileIDs", "clearFiles", "fileID", "clearFile", "addEventIDs", "removeEventIDs", "clearEvents"} - 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) + 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.Tags = data - case "appendTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearTags = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + 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.Email = data - case "firstName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + 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.FirstName = data - case "clearFirstName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFirstName")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearFirstName = data - case "lastName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastName")) + it.UpdatedByNotIn = data + case "updatedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.LastName = data - case "clearLastName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLastName")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UpdatedByGT = data + case "updatedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearLastName = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) + it.UpdatedByGTE = data + case "updatedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DisplayName = data - case "avatarRemoteURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) + it.UpdatedByLT = data + case "updatedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AvatarRemoteURL = data - case "clearAvatarRemoteURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAvatarRemoteURL")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UpdatedByLTE = data + case "updatedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearAvatarRemoteURL = data - case "avatarLocalFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFile")) + 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.AvatarLocalFile = data - case "clearAvatarLocalFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAvatarLocalFile")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearAvatarLocalFile = data - case "avatarUpdatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.AvatarUpdatedAt = data - case "clearAvatarUpdatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAvatarUpdatedAt")) + 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.ClearAvatarUpdatedAt = data - case "lastSeen": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeen")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + 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.LastSeen = data - case "clearLastSeen": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLastSeen")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearLastSeen = data - case "password": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.UpdatedByContainsFold = data + case "deletedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.Password = data - case "clearPassword": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPassword")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedAt = data + case "deletedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearPassword = data - case "sub": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sub")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.DeletedAtNEQ = data + case "deletedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.Sub = data - case "clearSub": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSub")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedAtIn = data + case "deletedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearSub = data - case "authProvider": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProvider")) - data, err := ec.unmarshalOUserAuthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, v) + it.DeletedAtNotIn = data + case "deletedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AuthProvider = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOUserRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + it.DeletedAtGT = data + case "deletedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.Role = data - case "clearRole": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearRole")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedAtGTE = data + case "deletedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearRole = data - case "addPersonalAccessTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPersonalAccessTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtLT = data + case "deletedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddPersonalAccessTokenIDs = data - case "removePersonalAccessTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePersonalAccessTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtLTE = data + case "deletedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.RemovePersonalAccessTokenIDs = data - case "clearPersonalAccessTokens": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPersonalAccessTokens")) + it.DeletedAtIsNil = data + case "deletedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearPersonalAccessTokens = data - case "addTfaSettingIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTfaSettingIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedAtNotNil = data + case "deletedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddTfaSettingIDs = data - case "removeTfaSettingIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeTfaSettingIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedBy = data + case "deletedByNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveTfaSettingIDs = data - case "clearTfaSettings": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTfaSettings")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedByNEQ = data + case "deletedByIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClearTfaSettings = data - case "settingID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("settingID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.DeletedByIn = data + case "deletedByNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.SettingID = data - case "addEmailVerificationTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEmailVerificationTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByNotIn = data + case "deletedByGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddEmailVerificationTokenIDs = data - case "removeEmailVerificationTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEmailVerificationTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByGT = data + case "deletedByGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveEmailVerificationTokenIDs = data - case "clearEmailVerificationTokens": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEmailVerificationTokens")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedByGTE = data + case "deletedByLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearEmailVerificationTokens = data - case "addPasswordResetTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addPasswordResetTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByLT = data + case "deletedByLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddPasswordResetTokenIDs = data - case "removePasswordResetTokenIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removePasswordResetTokenIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByLTE = data + case "deletedByContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemovePasswordResetTokenIDs = data - case "clearPasswordResetTokens": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearPasswordResetTokens")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedByContains = data + case "deletedByHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearPasswordResetTokens = data - case "addGroupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByHasPrefix = data + case "deletedByHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddGroupIDs = data - case "removeGroupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeGroupIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByHasSuffix = data + case "deletedByIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.RemoveGroupIDs = data - case "clearGroups": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGroups")) + it.DeletedByIsNil = data + case "deletedByNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearGroups = data - case "addOrganizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addOrganizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByNotNil = data + case "deletedByEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddOrganizationIDs = data - case "removeOrganizationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeOrganizationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.DeletedByEqualFold = data + case "deletedByContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveOrganizationIDs = data - case "clearOrganizations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearOrganizations")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.DeletedByContainsFold = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearOrganizations = data - case "addWebauthnIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addWebauthnIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddWebauthnIDs = data - case "removeWebauthnIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeWebauthnIDs")) + 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.RemoveWebauthnIDs = data - case "clearWebauthn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearWebauthn")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearWebauthn = data - case "addFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserIDNotIn = data + case "userIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.AddFileIDs = data - case "removeFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.UserIDGT = data + case "userIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGTE")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.RemoveFileIDs = data - case "clearFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UserIDGTE = data + case "userIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLT")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearFiles = data - case "fileID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileID")) + it.UserIDLT = data + case "userIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLTE")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.FileID = data - case "clearFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFile")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.UserIDLTE = data + case "userIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClearFile = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + 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.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) + 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.ClearEvents = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateUserSettingInput(ctx context.Context, obj interface{}) (generated.UpdateUserSettingInput, error) { - var it generated.UpdateUserSettingInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "locked", "silencedAt", "clearSilencedAt", "suspendedAt", "clearSuspendedAt", "status", "emailConfirmed", "isWebauthnAllowed", "clearIsWebauthnAllowed", "isTfaEnabled", "clearIsTfaEnabled", "userID", "clearUser", "defaultOrgID", "clearDefaultOrg", "addFileIDs", "removeFileIDs", "clearFiles"} - 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) + 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.Tags = data - case "appendTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + 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.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + 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.ClearTags = data + it.UserIDContainsFold = data case "locked": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locked")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -211050,6 +301100,13 @@ func (ec *executionContext) unmarshalInputUpdateUserSettingInput(ctx context.Con return it, err } it.Locked = data + case "lockedNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lockedNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.LockedNEQ = data case "silencedAt": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAt")) data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) @@ -211057,344 +301114,293 @@ func (ec *executionContext) unmarshalInputUpdateUserSettingInput(ctx context.Con return it, err } it.SilencedAt = data - case "clearSilencedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSilencedAt")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + case "silencedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearSilencedAt = data - case "suspendedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.SilencedAtNEQ = data + case "silencedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.SuspendedAt = data - case "clearSuspendedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSuspendedAt")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SilencedAtIn = data + case "silencedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearSuspendedAt = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOUserSettingUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + it.SilencedAtNotIn = data + case "silencedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.Status = data - case "emailConfirmed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailConfirmed")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.SilencedAtGT = data + case "silencedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.EmailConfirmed = data - case "isWebauthnAllowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowed")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.SilencedAtGTE = data + case "silencedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.IsWebauthnAllowed = data - case "clearIsWebauthnAllowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIsWebauthnAllowed")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SilencedAtLT = data + case "silencedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearIsWebauthnAllowed = data - case "isTfaEnabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.SilencedAtLTE = data + case "silencedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IsTfaEnabled = data - case "clearIsTfaEnabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIsTfaEnabled")) + it.SilencedAtIsNil = data + case "silencedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearIsTfaEnabled = data - case "userID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.SilencedAtNotNil = data + case "suspendedAt": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAt")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(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) + it.SuspendedAt = data + case "suspendedAtNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtNEQ")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearUser = data - case "defaultOrgID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("defaultOrgID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.SuspendedAtNEQ = data + case "suspendedAtIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.DefaultOrgID = data - case "clearDefaultOrg": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDefaultOrg")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SuspendedAtIn = data + case "suspendedAtNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtNotIn")) + data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) if err != nil { return it, err } - it.ClearDefaultOrg = data - case "addFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.SuspendedAtNotIn = data + case "suspendedAtGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.AddFileIDs = data - case "removeFileIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeFileIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.SuspendedAtGT = data + case "suspendedAtGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.RemoveFileIDs = data - case "clearFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFiles")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.SuspendedAtGTE = data + case "suspendedAtLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) if err != nil { return it, err } - it.ClearFiles = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUpdateWebhookInput(ctx context.Context, obj interface{}) (generated.UpdateWebhookInput, error) { - var it generated.UpdateWebhookInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "destinationURL", "enabled", "failures", "clearFailures", "lastError", "clearLastError", "lastResponse", "clearLastResponse", "ownerID", "clearOwner", "addEventIDs", "removeEventIDs", "clearEvents", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegrations"} - 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) + it.SuspendedAtLT = data + case "suspendedAtLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(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) + it.SuspendedAtLTE = data + case "suspendedAtIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AppendTags = data - case "clearTags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) + it.SuspendedAtIsNil = data + case "suspendedAtNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtNotNil")) 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) + it.SuspendedAtNotNil = data + case "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOUserSettingUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(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) + it.Status = data + case "statusNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) + data, err := ec.unmarshalOUserSettingUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(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) + it.StatusNEQ = data + case "statusIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) + data, err := ec.unmarshalOUserSettingUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) if err != nil { return it, err } - it.ClearDescription = data - case "destinationURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.StatusIn = data + case "statusNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) + data, err := ec.unmarshalOUserSettingUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) if err != nil { return it, err } - it.DestinationURL = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + it.StatusNotIn = data + case "emailConfirmed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailConfirmed")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Enabled = data - case "failures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failures")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.EmailConfirmed = data + case "emailConfirmedNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailConfirmedNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Failures = data - case "clearFailures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFailures")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.EmailConfirmedNEQ = data + case "isWebauthnAllowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowed")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ClearFailures = data - case "lastError": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastError")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.IsWebauthnAllowed = data + case "isWebauthnAllowedNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowedNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.LastError = data - case "clearLastError": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLastError")) + it.IsWebauthnAllowedNEQ = data + case "isWebauthnAllowedIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowedIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearLastError = data - case "lastResponse": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponse")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.LastResponse = data - case "clearLastResponse": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearLastResponse")) + it.IsWebauthnAllowedIsNil = data + case "isWebauthnAllowedNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowedNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.ClearLastResponse = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) + it.IsWebauthnAllowedNotNil = data + case "isTfaEnabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.IsTfaEnabled = data + case "isTfaEnabledNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabledNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ClearOwner = data - case "addEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IsTfaEnabledNEQ = data + case "isTfaEnabledIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabledIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.AddEventIDs = data - case "removeEventIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEventIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.IsTfaEnabledIsNil = data + case "isTfaEnabledNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabledNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.RemoveEventIDs = data - case "clearEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEvents")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.IsTfaEnabledNotNil = data + case "hasUser": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUser")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ClearEvents = data - case "addIntegrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addIntegrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.HasUser = data + case "hasUserWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUserWith")) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.AddIntegrationIDs = data - case "removeIntegrationIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeIntegrationIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + it.HasUserWith = data + case "hasDefaultOrg": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDefaultOrg")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.RemoveIntegrationIDs = data - case "clearIntegrations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIntegrations")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.HasDefaultOrg = data + case "hasDefaultOrgWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDefaultOrgWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.ClearIntegrations = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUserHistoryOrder(ctx context.Context, obj interface{}) (generated.UserHistoryOrder, error) { - var it generated.UserHistoryOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - 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) + it.HasDefaultOrgWith = data + case "hasFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Direction = data - case "field": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNUserHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryOrderField(ctx, v) + it.HasFiles = data + case "hasFilesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.Field = data + it.HasFilesWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputUserHistoryWhereInput(ctx context.Context, obj interface{}) (generated.UserHistoryWhereInput, error) { - var it generated.UserHistoryWhereInput +func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, obj interface{}) (generated.UserWhereInput, error) { + var it generated.UserWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailGT", "emailGTE", "emailLT", "emailLTE", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "firstName", "firstNameNEQ", "firstNameIn", "firstNameNotIn", "firstNameGT", "firstNameGTE", "firstNameLT", "firstNameLTE", "firstNameContains", "firstNameHasPrefix", "firstNameHasSuffix", "firstNameIsNil", "firstNameNotNil", "firstNameEqualFold", "firstNameContainsFold", "lastName", "lastNameNEQ", "lastNameIn", "lastNameNotIn", "lastNameGT", "lastNameGTE", "lastNameLT", "lastNameLTE", "lastNameContains", "lastNameHasPrefix", "lastNameHasSuffix", "lastNameIsNil", "lastNameNotNil", "lastNameEqualFold", "lastNameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLGT", "avatarRemoteURLGTE", "avatarRemoteURLLT", "avatarRemoteURLLTE", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "avatarLocalFile", "avatarLocalFileNEQ", "avatarLocalFileIn", "avatarLocalFileNotIn", "avatarLocalFileGT", "avatarLocalFileGTE", "avatarLocalFileLT", "avatarLocalFileLTE", "avatarLocalFileContains", "avatarLocalFileHasPrefix", "avatarLocalFileHasSuffix", "avatarLocalFileIsNil", "avatarLocalFileNotNil", "avatarLocalFileEqualFold", "avatarLocalFileContainsFold", "avatarLocalFileID", "avatarLocalFileIDNEQ", "avatarLocalFileIDIn", "avatarLocalFileIDNotIn", "avatarLocalFileIDGT", "avatarLocalFileIDGTE", "avatarLocalFileIDLT", "avatarLocalFileIDLTE", "avatarLocalFileIDContains", "avatarLocalFileIDHasPrefix", "avatarLocalFileIDHasSuffix", "avatarLocalFileIDIsNil", "avatarLocalFileIDNotNil", "avatarLocalFileIDEqualFold", "avatarLocalFileIDContainsFold", "avatarUpdatedAt", "avatarUpdatedAtNEQ", "avatarUpdatedAtIn", "avatarUpdatedAtNotIn", "avatarUpdatedAtGT", "avatarUpdatedAtGTE", "avatarUpdatedAtLT", "avatarUpdatedAtLTE", "avatarUpdatedAtIsNil", "avatarUpdatedAtNotNil", "lastSeen", "lastSeenNEQ", "lastSeenIn", "lastSeenNotIn", "lastSeenGT", "lastSeenGTE", "lastSeenLT", "lastSeenLTE", "lastSeenIsNil", "lastSeenNotNil", "sub", "subNEQ", "subIn", "subNotIn", "subGT", "subGTE", "subLT", "subLTE", "subContains", "subHasPrefix", "subHasSuffix", "subIsNil", "subNotNil", "subEqualFold", "subContainsFold", "authProvider", "authProviderNEQ", "authProviderIn", "authProviderNotIn", "role", "roleNEQ", "roleIn", "roleNotIn", "roleIsNil", "roleNotNil"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailGT", "emailGTE", "emailLT", "emailLTE", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "firstName", "firstNameNEQ", "firstNameIn", "firstNameNotIn", "firstNameGT", "firstNameGTE", "firstNameLT", "firstNameLTE", "firstNameContains", "firstNameHasPrefix", "firstNameHasSuffix", "firstNameIsNil", "firstNameNotNil", "firstNameEqualFold", "firstNameContainsFold", "lastName", "lastNameNEQ", "lastNameIn", "lastNameNotIn", "lastNameGT", "lastNameGTE", "lastNameLT", "lastNameLTE", "lastNameContains", "lastNameHasPrefix", "lastNameHasSuffix", "lastNameIsNil", "lastNameNotNil", "lastNameEqualFold", "lastNameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLGT", "avatarRemoteURLGTE", "avatarRemoteURLLT", "avatarRemoteURLLTE", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "avatarLocalFile", "avatarLocalFileNEQ", "avatarLocalFileIn", "avatarLocalFileNotIn", "avatarLocalFileGT", "avatarLocalFileGTE", "avatarLocalFileLT", "avatarLocalFileLTE", "avatarLocalFileContains", "avatarLocalFileHasPrefix", "avatarLocalFileHasSuffix", "avatarLocalFileIsNil", "avatarLocalFileNotNil", "avatarLocalFileEqualFold", "avatarLocalFileContainsFold", "avatarLocalFileID", "avatarLocalFileIDNEQ", "avatarLocalFileIDIn", "avatarLocalFileIDNotIn", "avatarLocalFileIDGT", "avatarLocalFileIDGTE", "avatarLocalFileIDLT", "avatarLocalFileIDLTE", "avatarLocalFileIDContains", "avatarLocalFileIDHasPrefix", "avatarLocalFileIDHasSuffix", "avatarLocalFileIDIsNil", "avatarLocalFileIDNotNil", "avatarLocalFileIDEqualFold", "avatarLocalFileIDContainsFold", "avatarUpdatedAt", "avatarUpdatedAtNEQ", "avatarUpdatedAtIn", "avatarUpdatedAtNotIn", "avatarUpdatedAtGT", "avatarUpdatedAtGTE", "avatarUpdatedAtLT", "avatarUpdatedAtLTE", "avatarUpdatedAtIsNil", "avatarUpdatedAtNotNil", "lastSeen", "lastSeenNEQ", "lastSeenIn", "lastSeenNotIn", "lastSeenGT", "lastSeenGTE", "lastSeenLT", "lastSeenLTE", "lastSeenIsNil", "lastSeenNotNil", "sub", "subNEQ", "subIn", "subNotIn", "subGT", "subGTE", "subLT", "subLTE", "subContains", "subHasPrefix", "subHasSuffix", "subIsNil", "subNotNil", "subEqualFold", "subContainsFold", "authProvider", "authProviderNEQ", "authProviderIn", "authProviderNotIn", "role", "roleNEQ", "roleIn", "roleNotIn", "roleIsNil", "roleNotNil", "hasPersonalAccessTokens", "hasPersonalAccessTokensWith", "hasTfaSettings", "hasTfaSettingsWith", "hasSetting", "hasSettingWith", "hasGroups", "hasGroupsWith", "hasOrganizations", "hasOrganizationsWith", "hasFiles", "hasFilesWith", "hasFile", "hasFileWith", "hasEvents", "hasEventsWith", "hasActionplans", "hasActionplansWith", "hasSubcontrols", "hasSubcontrolsWith", "hasGroupMemberships", "hasGroupMembershipsWith", "hasOrgMemberships", "hasOrgMembershipsWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -211403,21 +301409,21 @@ func (ec *executionContext) unmarshalInputUserHistoryWhereInput(ctx context.Cont switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOUserHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOUserHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOUserHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -211492,195 +301498,6 @@ func (ec *executionContext) unmarshalInputUserHistoryWhereInput(ctx context.Cont 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 "historyTimeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNEQ = data - case "historyTimeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeIn = data - case "historyTimeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNotIn = 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 "refGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGT = data - case "refGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefGTE = data - case "refLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLT = data - case "refLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefLTE = 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.unmarshalOUserHistoryOpType2ᚖ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.unmarshalOUserHistoryOpType2ᚖ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.unmarshalOUserHistoryOpType2ᚕ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.unmarshalOUserHistoryOpType2ᚕ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) @@ -212810,77 +302627,77 @@ func (ec *executionContext) unmarshalInputUserHistoryWhereInput(ctx context.Cont it.AvatarLocalFileContainsFold = data case "avatarLocalFileID": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.AvatarLocalFileID = data case "avatarLocalFileIDNEQ": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.AvatarLocalFileIDNEQ = data case "avatarLocalFileIDIn": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } it.AvatarLocalFileIDIn = data case "avatarLocalFileIDNotIn": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } it.AvatarLocalFileIDNotIn = data case "avatarLocalFileIDGT": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.AvatarLocalFileIDGT = data case "avatarLocalFileIDGTE": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.AvatarLocalFileIDGTE = data case "avatarLocalFileIDLT": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.AvatarLocalFileIDLT = data case "avatarLocalFileIDLTE": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.AvatarLocalFileIDLTE = data case "avatarLocalFileIDContains": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.AvatarLocalFileIDContains = data case "avatarLocalFileIDHasPrefix": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.AvatarLocalFileIDHasPrefix = data case "avatarLocalFileIDHasSuffix": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } @@ -212901,14 +302718,14 @@ func (ec *executionContext) unmarshalInputUserHistoryWhereInput(ctx context.Cont it.AvatarLocalFileIDNotNil = data case "avatarLocalFileIDEqualFold": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } it.AvatarLocalFileIDEqualFold = data case "avatarLocalFileIDContainsFold": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } @@ -213160,56 +302977,56 @@ func (ec *executionContext) unmarshalInputUserHistoryWhereInput(ctx context.Cont it.SubContainsFold = data case "authProvider": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProvider")) - data, err := ec.unmarshalOUserHistoryAuthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, v) + data, err := ec.unmarshalOUserAuthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, v) if err != nil { return it, err } it.AuthProvider = data case "authProviderNEQ": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProviderNEQ")) - data, err := ec.unmarshalOUserHistoryAuthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, v) + data, err := ec.unmarshalOUserAuthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, v) if err != nil { return it, err } it.AuthProviderNEQ = data case "authProviderIn": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProviderIn")) - data, err := ec.unmarshalOUserHistoryAuthProvider2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProviderᚄ(ctx, v) + data, err := ec.unmarshalOUserAuthProvider2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProviderᚄ(ctx, v) if err != nil { return it, err } it.AuthProviderIn = data case "authProviderNotIn": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProviderNotIn")) - data, err := ec.unmarshalOUserHistoryAuthProvider2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProviderᚄ(ctx, v) + data, err := ec.unmarshalOUserAuthProvider2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProviderᚄ(ctx, v) if err != nil { return it, err } it.AuthProviderNotIn = data case "role": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOUserHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + data, err := ec.unmarshalOUserRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) if err != nil { return it, err } it.Role = data case "roleNEQ": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) - data, err := ec.unmarshalOUserHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + data, err := ec.unmarshalOUserRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) if err != nil { return it, err } it.RoleNEQ = data case "roleIn": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) - data, err := ec.unmarshalOUserHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + data, err := ec.unmarshalOUserRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) if err != nil { return it, err } it.RoleIn = data case "roleNotIn": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) - data, err := ec.unmarshalOUserHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) + data, err := ec.unmarshalOUserRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) if err != nil { return it, err } @@ -213228,14 +303045,182 @@ func (ec *executionContext) unmarshalInputUserHistoryWhereInput(ctx context.Cont return it, err } it.RoleNotNil = data + case "hasPersonalAccessTokens": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPersonalAccessTokens")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasPersonalAccessTokens = data + case "hasPersonalAccessTokensWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPersonalAccessTokensWith")) + data, err := ec.unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasPersonalAccessTokensWith = data + case "hasTfaSettings": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTfaSettings")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasTfaSettings = data + case "hasTfaSettingsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTfaSettingsWith")) + data, err := ec.unmarshalOTFASettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasTfaSettingsWith = data + case "hasSetting": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSetting")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasSetting = data + case "hasSettingWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSettingWith")) + data, err := ec.unmarshalOUserSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSettingWith = data + case "hasGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroups")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasGroups = data + case "hasGroupsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasGroupsWith = data + case "hasOrganizations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizations")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOrganizations = data + case "hasOrganizationsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationsWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOrganizationsWith = data + case "hasFiles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasFiles = data + case "hasFilesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasFilesWith = data + case "hasFile": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFile")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasFile = data + case "hasFileWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFileWith")) + data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasFileWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEventsWith = data + case "hasActionplans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasActionplans")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasActionplans = data + case "hasActionplansWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasActionplansWith")) + data, err := ec.unmarshalOActionPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasActionplansWith = 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ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSubcontrolsWith = data + case "hasGroupMemberships": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupMemberships")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasGroupMemberships = data + case "hasGroupMembershipsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupMembershipsWith")) + data, err := ec.unmarshalOGroupMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasGroupMembershipsWith = data + case "hasOrgMemberships": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrgMemberships")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOrgMemberships = data + case "hasOrgMembershipsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrgMembershipsWith")) + data, err := ec.unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOrgMembershipsWith = data } } return it, nil } -func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj interface{}) (generated.UserOrder, error) { - var it generated.UserOrder +func (ec *executionContext) unmarshalInputWebhookHistoryOrder(ctx context.Context, obj interface{}) (generated.WebhookHistoryOrder, error) { + var it generated.WebhookHistoryOrder asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v @@ -213261,7 +303246,7 @@ func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj int it.Direction = data case "field": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) - data, err := ec.unmarshalNUserOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrderField(ctx, v) + data, err := ec.unmarshalNWebhookHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryOrderField(ctx, v) if err != nil { return it, err } @@ -213272,14 +303257,14 @@ func (ec *executionContext) unmarshalInputUserOrder(ctx context.Context, obj int return it, nil } -func (ec *executionContext) unmarshalInputUserSettingHistoryWhereInput(ctx context.Context, obj interface{}) (generated.UserSettingHistoryWhereInput, error) { - var it generated.UserSettingHistoryWhereInput +func (ec *executionContext) unmarshalInputWebhookHistoryWhereInput(ctx context.Context, obj interface{}) (generated.WebhookHistoryWhereInput, error) { + var it generated.WebhookHistoryWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDGT", "userIDGTE", "userIDLT", "userIDLTE", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDIsNil", "userIDNotNil", "userIDEqualFold", "userIDContainsFold", "locked", "lockedNEQ", "silencedAt", "silencedAtNEQ", "silencedAtIn", "silencedAtNotIn", "silencedAtGT", "silencedAtGTE", "silencedAtLT", "silencedAtLTE", "silencedAtIsNil", "silencedAtNotNil", "suspendedAt", "suspendedAtNEQ", "suspendedAtIn", "suspendedAtNotIn", "suspendedAtGT", "suspendedAtGTE", "suspendedAtLT", "suspendedAtLTE", "suspendedAtIsNil", "suspendedAtNotNil", "status", "statusNEQ", "statusIn", "statusNotIn", "emailConfirmed", "emailConfirmedNEQ", "isWebauthnAllowed", "isWebauthnAllowedNEQ", "isWebauthnAllowedIsNil", "isWebauthnAllowedNotNil", "isTfaEnabled", "isTfaEnabledNEQ", "isTfaEnabledIsNil", "isTfaEnabledNotNil"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "destinationURL", "destinationURLNEQ", "destinationURLIn", "destinationURLNotIn", "destinationURLGT", "destinationURLGTE", "destinationURLLT", "destinationURLLTE", "destinationURLContains", "destinationURLHasPrefix", "destinationURLHasSuffix", "destinationURLEqualFold", "destinationURLContainsFold", "enabled", "enabledNEQ", "failures", "failuresNEQ", "failuresIn", "failuresNotIn", "failuresGT", "failuresGTE", "failuresLT", "failuresLTE", "failuresIsNil", "failuresNotNil", "lastError", "lastErrorNEQ", "lastErrorIn", "lastErrorNotIn", "lastErrorGT", "lastErrorGTE", "lastErrorLT", "lastErrorLTE", "lastErrorContains", "lastErrorHasPrefix", "lastErrorHasSuffix", "lastErrorIsNil", "lastErrorNotNil", "lastErrorEqualFold", "lastErrorContainsFold", "lastResponse", "lastResponseNEQ", "lastResponseIn", "lastResponseNotIn", "lastResponseGT", "lastResponseGTE", "lastResponseLT", "lastResponseLTE", "lastResponseContains", "lastResponseHasPrefix", "lastResponseHasSuffix", "lastResponseIsNil", "lastResponseNotNil", "lastResponseEqualFold", "lastResponseContainsFold"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -213288,21 +303273,21 @@ func (ec *executionContext) unmarshalInputUserSettingHistoryWhereInput(ctx conte switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOUserSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryWhereInput(ctx, v) + data, err := ec.unmarshalOWebhookHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOUserSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOWebhookHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOUserSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOWebhookHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -213540,28 +303525,28 @@ func (ec *executionContext) unmarshalInputUserSettingHistoryWhereInput(ctx conte it.RefContainsFold = data case "operation": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOUserSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOWebhookHistoryOpType2ᚖ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.unmarshalOUserSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + data, err := ec.unmarshalOWebhookHistoryOpType2ᚖ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.unmarshalOUserSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOWebhookHistoryOpType2ᚕ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.unmarshalOUserSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + data, err := ec.unmarshalOWebhookHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) if err != nil { return it, err } @@ -214091,377 +304076,639 @@ func (ec *executionContext) unmarshalInputUserSettingHistoryWhereInput(ctx conte return it, err } it.DeletedByContainsFold = data - case "userID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) 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")) + 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.UserIDNEQ = data - case "userIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDIn")) + 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.UserIDIn = data - case "userIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDNotIn")) + 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.UserIDNotIn = data - case "userIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGT")) + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDGT = data - case "userIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGTE")) + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDGTE = data - case "userIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLT")) + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDLT = data - case "userIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLTE")) + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDLTE = data - case "userIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContains")) + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) 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")) + 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.UserIDHasPrefix = data - case "userIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDHasSuffix")) + 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.UserIDHasSuffix = data - case "userIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDIsNil")) + 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.UserIDIsNil = data - case "userIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDNotNil")) + 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.UserIDNotNil = data - case "userIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDEqualFold")) + 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.UserIDEqualFold = data - case "userIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContainsFold")) + 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.UserIDContainsFold = data - case "locked": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locked")) + it.OwnerIDContainsFold = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "nameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameNEQ = data + case "nameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameIn = data + case "nameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContains = data + case "nameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasPrefix = data + case "nameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameHasSuffix = data + case "nameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameEqualFold = data + case "nameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.NameContainsFold = data + case "destinationURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURL")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DestinationURL = data + case "destinationURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DestinationURLNEQ = data + case "destinationURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DestinationURLIn = data + case "destinationURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DestinationURLNotIn = data + case "destinationURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DestinationURLGT = data + case "destinationURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DestinationURLGTE = data + case "destinationURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DestinationURLLT = data + case "destinationURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DestinationURLLTE = data + case "destinationURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DestinationURLContains = data + case "destinationURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DestinationURLHasPrefix = data + case "destinationURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DestinationURLHasSuffix = data + case "destinationURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DestinationURLEqualFold = data + case "destinationURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DestinationURLContainsFold = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Locked = data - case "lockedNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lockedNEQ")) + it.Enabled = data + case "enabledNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabledNEQ")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.LockedNEQ = data - case "silencedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.EnabledNEQ = data + case "failures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failures")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.SilencedAt = data - case "silencedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.Failures = data + case "failuresNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresNEQ")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.SilencedAtNEQ = data - case "silencedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.FailuresNEQ = data + case "failuresIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresIn")) + data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) if err != nil { return it, err } - it.SilencedAtIn = data - case "silencedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.FailuresIn = data + case "failuresNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresNotIn")) + data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) if err != nil { return it, err } - it.SilencedAtNotIn = data - case "silencedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FailuresNotIn = data + case "failuresGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresGT")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.SilencedAtGT = data - case "silencedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FailuresGT = data + case "failuresGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresGTE")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.SilencedAtGTE = data - case "silencedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FailuresGTE = data + case "failuresLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresLT")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.SilencedAtLT = data - case "silencedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FailuresLT = data + case "failuresLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresLTE")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) + if err != nil { + return it, err + } + it.FailuresLTE = data + case "failuresIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FailuresIsNil = data + case "failuresNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FailuresNotNil = data + case "lastError": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastError")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.LastError = data + case "lastErrorNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.LastErrorNEQ = data + case "lastErrorIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.LastErrorIn = data + case "lastErrorNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.LastErrorNotIn = data + case "lastErrorGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.LastErrorGT = data + case "lastErrorGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SilencedAtLTE = data - case "silencedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LastErrorGTE = data + case "lastErrorLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SilencedAtIsNil = data - case "silencedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LastErrorLT = data + case "lastErrorLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SilencedAtNotNil = data - case "suspendedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.LastErrorLTE = data + case "lastErrorContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SuspendedAt = data - case "suspendedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.LastErrorContains = data + case "lastErrorHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SuspendedAtNEQ = data - case "suspendedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.LastErrorHasPrefix = data + case "lastErrorHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SuspendedAtIn = data - case "suspendedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.LastErrorHasSuffix = data + case "lastErrorIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.SuspendedAtNotIn = data - case "suspendedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.LastErrorIsNil = data + case "lastErrorNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.SuspendedAtGT = data - case "suspendedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.LastErrorNotNil = data + case "lastErrorEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SuspendedAtGTE = data - case "suspendedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.LastErrorEqualFold = data + case "lastErrorContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SuspendedAtLT = data - case "suspendedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.LastErrorContainsFold = data + case "lastResponse": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponse")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SuspendedAtLTE = data - case "suspendedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LastResponse = data + case "lastResponseNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.SuspendedAtIsNil = data - case "suspendedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LastResponseNEQ = data + case "lastResponseIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.SuspendedAtNotNil = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOUserSettingHistoryUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + it.LastResponseIn = data + case "lastResponseNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Status = data - case "statusNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) - data, err := ec.unmarshalOUserSettingHistoryUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) + it.LastResponseNotIn = data + case "lastResponseGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseGT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusNEQ = data - case "statusIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) - data, err := ec.unmarshalOUserSettingHistoryUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) + it.LastResponseGT = data + case "lastResponseGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseGTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusIn = data - case "statusNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) - data, err := ec.unmarshalOUserSettingHistoryUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) + it.LastResponseGTE = data + case "lastResponseLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseLT")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.StatusNotIn = data - case "emailConfirmed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailConfirmed")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.LastResponseLT = data + case "lastResponseLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseLTE")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailConfirmed = data - case "emailConfirmedNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailConfirmedNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.LastResponseLTE = data + case "lastResponseContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailConfirmedNEQ = data - case "isWebauthnAllowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowed")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.LastResponseContains = data + case "lastResponseHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IsWebauthnAllowed = data - case "isWebauthnAllowedNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowedNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.LastResponseHasPrefix = data + case "lastResponseHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IsWebauthnAllowedNEQ = data - case "isWebauthnAllowedIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowedIsNil")) + it.LastResponseHasSuffix = data + case "lastResponseIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IsWebauthnAllowedIsNil = data - case "isWebauthnAllowedNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowedNotNil")) + it.LastResponseIsNil = data + case "lastResponseNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.IsWebauthnAllowedNotNil = data - case "isTfaEnabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.LastResponseNotNil = data + case "lastResponseEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IsTfaEnabled = data - case "isTfaEnabledNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabledNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.LastResponseEqualFold = data + case "lastResponseContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.IsTfaEnabledNEQ = data - case "isTfaEnabledIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabledIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.LastResponseContainsFold = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputWebhookOrder(ctx context.Context, obj interface{}) (generated.WebhookOrder, error) { + var it generated.WebhookOrder + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + 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.IsTfaEnabledIsNil = data - case "isTfaEnabledNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabledNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) + it.Direction = data + case "field": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) + data, err := ec.unmarshalNWebhookOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookOrderField(ctx, v) if err != nil { return it, err } - it.IsTfaEnabledNotNil = data + it.Field = data } } return it, nil } -func (ec *executionContext) unmarshalInputUserSettingWhereInput(ctx context.Context, obj interface{}) (generated.UserSettingWhereInput, error) { - var it generated.UserSettingWhereInput +func (ec *executionContext) unmarshalInputWebhookWhereInput(ctx context.Context, obj interface{}) (generated.WebhookWhereInput, error) { + var it generated.WebhookWhereInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDGT", "userIDGTE", "userIDLT", "userIDLTE", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDIsNil", "userIDNotNil", "userIDEqualFold", "userIDContainsFold", "locked", "lockedNEQ", "silencedAt", "silencedAtNEQ", "silencedAtIn", "silencedAtNotIn", "silencedAtGT", "silencedAtGTE", "silencedAtLT", "silencedAtLTE", "silencedAtIsNil", "silencedAtNotNil", "suspendedAt", "suspendedAtNEQ", "suspendedAtIn", "suspendedAtNotIn", "suspendedAtGT", "suspendedAtGTE", "suspendedAtLT", "suspendedAtLTE", "suspendedAtIsNil", "suspendedAtNotNil", "status", "statusNEQ", "statusIn", "statusNotIn", "emailConfirmed", "emailConfirmedNEQ", "isWebauthnAllowed", "isWebauthnAllowedNEQ", "isWebauthnAllowedIsNil", "isWebauthnAllowedNotNil", "isTfaEnabled", "isTfaEnabledNEQ", "isTfaEnabledIsNil", "isTfaEnabledNotNil", "hasUser", "hasUserWith", "hasDefaultOrg", "hasDefaultOrgWith", "hasFiles", "hasFilesWith"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "destinationURL", "destinationURLNEQ", "destinationURLIn", "destinationURLNotIn", "destinationURLGT", "destinationURLGTE", "destinationURLLT", "destinationURLLTE", "destinationURLContains", "destinationURLHasPrefix", "destinationURLHasSuffix", "destinationURLEqualFold", "destinationURLContainsFold", "enabled", "enabledNEQ", "failures", "failuresNEQ", "failuresIn", "failuresNotIn", "failuresGT", "failuresGTE", "failuresLT", "failuresLTE", "failuresIsNil", "failuresNotNil", "lastError", "lastErrorNEQ", "lastErrorIn", "lastErrorNotIn", "lastErrorGT", "lastErrorGTE", "lastErrorLT", "lastErrorLTE", "lastErrorContains", "lastErrorHasPrefix", "lastErrorHasSuffix", "lastErrorIsNil", "lastErrorNotNil", "lastErrorEqualFold", "lastErrorContainsFold", "lastResponse", "lastResponseNEQ", "lastResponseIn", "lastResponseNotIn", "lastResponseGT", "lastResponseGTE", "lastResponseLT", "lastResponseLTE", "lastResponseContains", "lastResponseHasPrefix", "lastResponseHasSuffix", "lastResponseIsNil", "lastResponseNotNil", "lastResponseEqualFold", "lastResponseContainsFold", "hasOwner", "hasOwnerWith", "hasEvents", "hasEventsWith", "hasIntegrations", "hasIntegrationsWith"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -214470,21 +304717,21 @@ func (ec *executionContext) unmarshalInputUserSettingWhereInput(ctx context.Cont switch k { case "not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("not")) - data, err := ec.unmarshalOUserSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInput(ctx, v) + data, err := ec.unmarshalOWebhookWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInput(ctx, v) if err != nil { return it, err } it.Not = data case "and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOUserSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOWebhookWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInputᚄ(ctx, v) if err != nil { return it, err } it.And = data case "or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOUserSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInputᚄ(ctx, v) + data, err := ec.unmarshalOWebhookWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInputᚄ(ctx, v) if err != nil { return it, err } @@ -215084,5479 +305331,12880 @@ func (ec *executionContext) unmarshalInputUserSettingWhereInput(ctx context.Cont return it, err } it.DeletedByContainsFold = data - case "userID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) 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")) + 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.UserIDNEQ = data - case "userIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDIn")) + 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.UserIDIn = data - case "userIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDNotIn")) + 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.UserIDNotIn = data - case "userIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UserIDGT = data - case "userIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UserIDGTE = data - case "userIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLT")) + it.OwnerIDNotIn = data + case "ownerIDGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDLT = data - case "userIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDLTE")) + it.OwnerIDGT = data + case "ownerIDGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDLTE = data - case "userIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContains")) + it.OwnerIDGTE = data + case "ownerIDLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDContains = data - case "userIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDHasPrefix")) + it.OwnerIDLT = data + case "ownerIDLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.UserIDHasPrefix = data - case "userIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDHasSuffix")) + it.OwnerIDLTE = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) data, err := ec.unmarshalOID2ᚖstring(ctx, v) if err != nil { return it, err } - it.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")) + 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.UserIDEqualFold = data - case "userIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContainsFold")) + 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.UserIDContainsFold = data - case "locked": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locked")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.Locked = data - case "lockedNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lockedNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.LockedNEQ = data - case "silencedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.SilencedAt = data - case "silencedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.SilencedAtNEQ = data - case "silencedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.SilencedAtIn = data - case "silencedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.SilencedAtNotIn = data - case "silencedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.SilencedAtGT = data - case "silencedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.SilencedAtGTE = data - case "silencedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.SilencedAtLT = data - case "silencedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.SilencedAtLTE = data - case "silencedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.SilencedAtIsNil = data - case "silencedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("silencedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.SilencedAtNotNil = data - case "suspendedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.SuspendedAt = data - case "suspendedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.SuspendedAtNEQ = data - case "suspendedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.SuspendedAtIn = data - case "suspendedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.SuspendedAtNotIn = data - case "suspendedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.SuspendedAtGT = data - case "suspendedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.SuspendedAtGTE = data - case "suspendedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.SuspendedAtLT = data - case "suspendedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.SuspendedAtLTE = data - case "suspendedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.SuspendedAtIsNil = data - case "suspendedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("suspendedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.SuspendedAtNotNil = data - case "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOUserSettingUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) - if err != nil { - return it, err - } - it.Status = data - case "statusNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNEQ")) - data, err := ec.unmarshalOUserSettingUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, v) - if err != nil { - return it, err - } - it.StatusNEQ = data - case "statusIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusIn")) - data, err := ec.unmarshalOUserSettingUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) - if err != nil { - return it, err - } - it.StatusIn = data - case "statusNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("statusNotIn")) - data, err := ec.unmarshalOUserSettingUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx, v) - if err != nil { - return it, err - } - it.StatusNotIn = data - case "emailConfirmed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailConfirmed")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.EmailConfirmed = data - case "emailConfirmedNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailConfirmedNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.EmailConfirmedNEQ = data - case "isWebauthnAllowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowed")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.IsWebauthnAllowed = data - case "isWebauthnAllowedNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowedNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.IsWebauthnAllowedNEQ = data - case "isWebauthnAllowedIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowedIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.IsWebauthnAllowedIsNil = data - case "isWebauthnAllowedNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isWebauthnAllowedNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.IsWebauthnAllowedNotNil = data - case "isTfaEnabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.IsTfaEnabled = data - case "isTfaEnabledNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabledNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.IsTfaEnabledNEQ = data - case "isTfaEnabledIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabledIsNil")) + 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.IsTfaEnabledIsNil = data - case "isTfaEnabledNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("isTfaEnabledNotNil")) + 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.IsTfaEnabledNotNil = 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ᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasUserWith = data - case "hasDefaultOrg": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDefaultOrg")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasDefaultOrg = data - case "hasDefaultOrgWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasDefaultOrgWith")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasDefaultOrgWith = data - case "hasFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasFiles = data - case "hasFilesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasFilesWith = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, obj interface{}) (generated.UserWhereInput, error) { - var it generated.UserWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailGT", "emailGTE", "emailLT", "emailLTE", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "firstName", "firstNameNEQ", "firstNameIn", "firstNameNotIn", "firstNameGT", "firstNameGTE", "firstNameLT", "firstNameLTE", "firstNameContains", "firstNameHasPrefix", "firstNameHasSuffix", "firstNameIsNil", "firstNameNotNil", "firstNameEqualFold", "firstNameContainsFold", "lastName", "lastNameNEQ", "lastNameIn", "lastNameNotIn", "lastNameGT", "lastNameGTE", "lastNameLT", "lastNameLTE", "lastNameContains", "lastNameHasPrefix", "lastNameHasSuffix", "lastNameIsNil", "lastNameNotNil", "lastNameEqualFold", "lastNameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameGT", "displayNameGTE", "displayNameLT", "displayNameLTE", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLGT", "avatarRemoteURLGTE", "avatarRemoteURLLT", "avatarRemoteURLLTE", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "avatarLocalFile", "avatarLocalFileNEQ", "avatarLocalFileIn", "avatarLocalFileNotIn", "avatarLocalFileGT", "avatarLocalFileGTE", "avatarLocalFileLT", "avatarLocalFileLTE", "avatarLocalFileContains", "avatarLocalFileHasPrefix", "avatarLocalFileHasSuffix", "avatarLocalFileIsNil", "avatarLocalFileNotNil", "avatarLocalFileEqualFold", "avatarLocalFileContainsFold", "avatarLocalFileID", "avatarLocalFileIDNEQ", "avatarLocalFileIDIn", "avatarLocalFileIDNotIn", "avatarLocalFileIDGT", "avatarLocalFileIDGTE", "avatarLocalFileIDLT", "avatarLocalFileIDLTE", "avatarLocalFileIDContains", "avatarLocalFileIDHasPrefix", "avatarLocalFileIDHasSuffix", "avatarLocalFileIDIsNil", "avatarLocalFileIDNotNil", "avatarLocalFileIDEqualFold", "avatarLocalFileIDContainsFold", "avatarUpdatedAt", "avatarUpdatedAtNEQ", "avatarUpdatedAtIn", "avatarUpdatedAtNotIn", "avatarUpdatedAtGT", "avatarUpdatedAtGTE", "avatarUpdatedAtLT", "avatarUpdatedAtLTE", "avatarUpdatedAtIsNil", "avatarUpdatedAtNotNil", "lastSeen", "lastSeenNEQ", "lastSeenIn", "lastSeenNotIn", "lastSeenGT", "lastSeenGTE", "lastSeenLT", "lastSeenLTE", "lastSeenIsNil", "lastSeenNotNil", "sub", "subNEQ", "subIn", "subNotIn", "subGT", "subGTE", "subLT", "subLTE", "subContains", "subHasPrefix", "subHasSuffix", "subIsNil", "subNotNil", "subEqualFold", "subContainsFold", "authProvider", "authProviderNEQ", "authProviderIn", "authProviderNotIn", "role", "roleNEQ", "roleIn", "roleNotIn", "roleIsNil", "roleNotNil", "hasPersonalAccessTokens", "hasPersonalAccessTokensWith", "hasTfaSettings", "hasTfaSettingsWith", "hasSetting", "hasSettingWith", "hasGroups", "hasGroupsWith", "hasOrganizations", "hasOrganizationsWith", "hasFiles", "hasFilesWith", "hasFile", "hasFileWith", "hasEvents", "hasEventsWith", "hasGroupMemberships", "hasGroupMembershipsWith", "hasOrgMemberships", "hasOrgMembershipsWith"} - 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.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Or = data - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "idNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDNEQ = data - case "idIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDIn = data - case "idNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) + 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.IDEqualFold = data - case "idContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) + 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.IDContainsFold = data - case "createdAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGT = data - case "createdAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGTE = data - case "createdAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLT = data - case "createdAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLTE = data - case "createdAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotNil = data - case "updatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGT = data - case "updatedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGTE = data - case "updatedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLT = data - case "updatedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLTE = data - case "updatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIsNil = data - case "updatedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotNil = data - case "createdBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) + 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.CreatedBy = data - case "createdByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) + 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.CreatedByNEQ = data - case "createdByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) + 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.CreatedByIn = data - case "createdByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) + 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.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) + it.NameNotIn = data + case "nameGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) + it.NameGT = data + case "nameGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) + it.NameGTE = data + case "nameLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) + it.NameLT = data + case "nameLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) + it.NameLTE = data + case "nameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.CreatedByContains = data - case "createdByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) + 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.CreatedByHasPrefix = data - case "createdByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasSuffix")) + 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.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")) + 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.CreatedByEqualFold = data - case "createdByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContainsFold")) + 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.CreatedByContainsFold = data - case "updatedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + it.NameContainsFold = data + case "destinationURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURL")) 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")) + it.DestinationURL = data + case "destinationURLNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLNEQ")) 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")) + it.DestinationURLNEQ = data + case "destinationURLIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLIn")) 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")) + it.DestinationURLIn = data + case "destinationURLNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) + it.DestinationURLNotIn = data + case "destinationURLGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) + it.DestinationURLGT = data + case "destinationURLGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) + it.DestinationURLGTE = data + case "destinationURLLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) + it.DestinationURLLT = data + case "destinationURLLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err - } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) + } + it.DestinationURLLTE = data + case "destinationURLContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLContains")) 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")) + it.DestinationURLContains = data + case "destinationURLHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLHasPrefix")) 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")) + it.DestinationURLHasPrefix = data + case "destinationURLHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLHasSuffix")) 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) + it.DestinationURLHasSuffix = data + case "destinationURLEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.DestinationURLEqualFold = data + case "destinationURLContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(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) + it.DestinationURLContainsFold = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(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) + it.Enabled = data + case "enabledNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabledNEQ")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.EnabledNEQ = data + case "failures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failures")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.Failures = data + case "failuresNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresNEQ")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.FailuresNEQ = data + case "failuresIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresIn")) + data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) + it.FailuresIn = data + case "failuresNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresNotIn")) + data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) if err != nil { return it, err } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FailuresNotIn = data + case "failuresGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresGT")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FailuresGT = data + case "failuresGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresGTE")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FailuresGTE = data + case "failuresLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresLT")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + it.FailuresLT = data + case "failuresLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresLTE")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) + it.FailuresLTE = data + case "failuresIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) + it.FailuresIsNil = data + case "failuresNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedAtNotNil = data - case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) + it.FailuresNotNil = data + case "lastError": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastError")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) + it.LastError = data + case "lastErrorNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorNEQ")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) + it.LastErrorNEQ = data + case "lastErrorIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) + it.LastErrorIn = data + case "lastErrorNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) + it.LastErrorNotIn = data + case "lastErrorGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) + it.LastErrorGT = data + case "lastErrorGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) + it.LastErrorGTE = data + case "lastErrorLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) + it.LastErrorLT = data + case "lastErrorLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorLTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) + it.LastErrorLTE = data + case "lastErrorContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorContains")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) + it.LastErrorContains = data + case "lastErrorHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorHasPrefix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) + it.LastErrorHasPrefix = data + case "lastErrorHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorHasSuffix")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) + it.LastErrorHasSuffix = data + case "lastErrorIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorIsNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) + it.LastErrorIsNil = data + case "lastErrorNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorNotNil")) data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) + it.LastErrorNotNil = data + case "lastErrorEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) + it.LastErrorEqualFold = data + case "lastErrorContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.DeletedByContainsFold = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + it.LastErrorContainsFold = data + case "lastResponse": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponse")) 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")) + it.LastResponse = data + case "lastResponseNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseNEQ")) 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")) + it.LastResponseNEQ = data + case "lastResponseIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseIn")) 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")) + it.LastResponseIn = data + case "lastResponseNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseNotIn")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.EmailNotIn = data - case "emailGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.EmailGT = data - case "emailGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailGTE")) + it.LastResponseNotIn = data + case "lastResponseGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseGT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailGTE = data - case "emailLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLT")) + it.LastResponseGT = data + case "lastResponseGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseGTE")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailLT = data - case "emailLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailLTE")) + it.LastResponseGTE = data + case "lastResponseLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseLT")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailLTE = data - case "emailContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailContains")) + it.LastResponseLT = data + case "lastResponseLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseLTE")) 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")) + it.LastResponseLTE = data + case "lastResponseContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseContains")) 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")) + it.LastResponseContains = data + case "lastResponseHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseHasPrefix")) 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")) + it.LastResponseHasPrefix = data + case "lastResponseHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseHasSuffix")) 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) + it.LastResponseHasSuffix = data + case "lastResponseIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.EmailContainsFold = data - case "firstName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.LastResponseIsNil = data + case "lastResponseNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) if err != nil { return it, err } - it.FirstName = data - case "firstNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameNEQ")) + it.LastResponseNotNil = data + case "lastResponseEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseEqualFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FirstNameNEQ = data - case "firstNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.FirstNameIn = data - case "firstNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.FirstNameNotIn = data - case "firstNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameGT")) + it.LastResponseEqualFold = data + case "lastResponseContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseContainsFold")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.FirstNameGT = data - case "firstNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.LastResponseContainsFold = data + case "hasOwner": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.FirstNameGTE = data - case "firstNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasOwner = data + case "hasOwnerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.FirstNameLT = data - case "firstNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasOwnerWith = data + case "hasEvents": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.FirstNameLTE = data - case "firstNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasEvents = data + case "hasEventsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) + data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.FirstNameContains = data - case "firstNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasEventsWith = data + case "hasIntegrations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrations")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.FirstNameHasPrefix = data - case "firstNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.HasIntegrations = data + case "hasIntegrationsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationsWith")) + data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.FirstNameHasSuffix = data - case "firstNameIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + it.HasIntegrationsWith = data + } + } + + return it, nil +} + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj generated.Noder) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case AuditLog: + return ec._AuditLog(ctx, sel, &obj) + case *AuditLog: + if obj == nil { + return graphql.Null + } + return ec._AuditLog(ctx, sel, obj) + case *generated.APIToken: + if obj == nil { + return graphql.Null + } + return ec._APIToken(ctx, sel, obj) + case *generated.ActionPlan: + if obj == nil { + return graphql.Null + } + return ec._ActionPlan(ctx, sel, obj) + case *generated.ActionPlanHistory: + if obj == nil { + return graphql.Null + } + return ec._ActionPlanHistory(ctx, sel, obj) + case *generated.Contact: + if obj == nil { + return graphql.Null + } + return ec._Contact(ctx, sel, obj) + case *generated.ContactHistory: + if obj == nil { + return graphql.Null + } + return ec._ContactHistory(ctx, sel, obj) + case *generated.Control: + if obj == nil { + return graphql.Null + } + return ec._Control(ctx, sel, obj) + case *generated.ControlHistory: + if obj == nil { + return graphql.Null + } + return ec._ControlHistory(ctx, sel, obj) + case *generated.ControlObjective: + if obj == nil { + return graphql.Null + } + return ec._ControlObjective(ctx, sel, obj) + case *generated.ControlObjectiveHistory: + if obj == nil { + return graphql.Null + } + return ec._ControlObjectiveHistory(ctx, sel, obj) + case *generated.DocumentData: + if obj == nil { + return graphql.Null + } + return ec._DocumentData(ctx, sel, obj) + case *generated.DocumentDataHistory: + if obj == nil { + return graphql.Null + } + return ec._DocumentDataHistory(ctx, sel, obj) + case *generated.Entitlement: + if obj == nil { + return graphql.Null + } + return ec._Entitlement(ctx, sel, obj) + case *generated.EntitlementHistory: + if obj == nil { + return graphql.Null + } + return ec._EntitlementHistory(ctx, sel, obj) + case *generated.EntitlementPlan: + if obj == nil { + return graphql.Null + } + return ec._EntitlementPlan(ctx, sel, obj) + case *generated.EntitlementPlanFeature: + if obj == nil { + return graphql.Null + } + return ec._EntitlementPlanFeature(ctx, sel, obj) + case *generated.EntitlementPlanFeatureHistory: + if obj == nil { + return graphql.Null + } + return ec._EntitlementPlanFeatureHistory(ctx, sel, obj) + case *generated.EntitlementPlanHistory: + if obj == nil { + return graphql.Null + } + return ec._EntitlementPlanHistory(ctx, sel, obj) + case *generated.Entity: + if obj == nil { + return graphql.Null + } + return ec._Entity(ctx, sel, obj) + case *generated.EntityHistory: + if obj == nil { + return graphql.Null + } + return ec._EntityHistory(ctx, sel, obj) + case *generated.EntityType: + if obj == nil { + return graphql.Null + } + return ec._EntityType(ctx, sel, obj) + case *generated.EntityTypeHistory: + if obj == nil { + return graphql.Null + } + return ec._EntityTypeHistory(ctx, sel, obj) + case *generated.Event: + if obj == nil { + return graphql.Null + } + return ec._Event(ctx, sel, obj) + case *generated.EventHistory: + if obj == nil { + return graphql.Null + } + return ec._EventHistory(ctx, sel, obj) + case *generated.Feature: + if obj == nil { + return graphql.Null + } + return ec._Feature(ctx, sel, obj) + case *generated.FeatureHistory: + if obj == nil { + return graphql.Null + } + return ec._FeatureHistory(ctx, sel, obj) + case *generated.File: + if obj == nil { + return graphql.Null + } + return ec._File(ctx, sel, obj) + case *generated.FileHistory: + if obj == nil { + return graphql.Null + } + return ec._FileHistory(ctx, sel, obj) + case *generated.Group: + if obj == nil { + return graphql.Null + } + return ec._Group(ctx, sel, obj) + case *generated.GroupHistory: + if obj == nil { + return graphql.Null + } + return ec._GroupHistory(ctx, sel, obj) + case *generated.GroupMembership: + if obj == nil { + return graphql.Null + } + return ec._GroupMembership(ctx, sel, obj) + case *generated.GroupMembershipHistory: + if obj == nil { + return graphql.Null + } + return ec._GroupMembershipHistory(ctx, sel, obj) + case *generated.GroupSetting: + if obj == nil { + return graphql.Null + } + return ec._GroupSetting(ctx, sel, obj) + case *generated.GroupSettingHistory: + if obj == nil { + return graphql.Null + } + return ec._GroupSettingHistory(ctx, sel, obj) + case *generated.Hush: + if obj == nil { + return graphql.Null + } + return ec._Hush(ctx, sel, obj) + case *generated.HushHistory: + if obj == nil { + return graphql.Null + } + return ec._HushHistory(ctx, sel, obj) + case *generated.Integration: + if obj == nil { + return graphql.Null + } + return ec._Integration(ctx, sel, obj) + case *generated.IntegrationHistory: + if obj == nil { + return graphql.Null + } + return ec._IntegrationHistory(ctx, sel, obj) + case *generated.InternalPolicy: + if obj == nil { + return graphql.Null + } + return ec._InternalPolicy(ctx, sel, obj) + case *generated.InternalPolicyHistory: + if obj == nil { + return graphql.Null + } + return ec._InternalPolicyHistory(ctx, sel, obj) + case *generated.Invite: + if obj == nil { + return graphql.Null + } + return ec._Invite(ctx, sel, obj) + case *generated.Narrative: + if obj == nil { + return graphql.Null + } + return ec._Narrative(ctx, sel, obj) + case *generated.NarrativeHistory: + if obj == nil { + return graphql.Null + } + return ec._NarrativeHistory(ctx, sel, obj) + case *generated.Note: + if obj == nil { + return graphql.Null + } + return ec._Note(ctx, sel, obj) + case *generated.NoteHistory: + if obj == nil { + return graphql.Null + } + return ec._NoteHistory(ctx, sel, obj) + case *generated.OauthProvider: + if obj == nil { + return graphql.Null + } + return ec._OauthProvider(ctx, sel, obj) + case *generated.OauthProviderHistory: + if obj == nil { + return graphql.Null + } + return ec._OauthProviderHistory(ctx, sel, obj) + case *generated.OhAuthTooToken: + if obj == nil { + return graphql.Null + } + return ec._OhAuthTooToken(ctx, sel, obj) + case *generated.OrgMembership: + if obj == nil { + return graphql.Null + } + return ec._OrgMembership(ctx, sel, obj) + case *generated.OrgMembershipHistory: + if obj == nil { + return graphql.Null + } + return ec._OrgMembershipHistory(ctx, sel, obj) + case *generated.Organization: + if obj == nil { + return graphql.Null + } + return ec._Organization(ctx, sel, obj) + case *generated.OrganizationHistory: + if obj == nil { + return graphql.Null + } + return ec._OrganizationHistory(ctx, sel, obj) + case *generated.OrganizationSetting: + if obj == nil { + return graphql.Null + } + return ec._OrganizationSetting(ctx, sel, obj) + case *generated.OrganizationSettingHistory: + if obj == nil { + return graphql.Null + } + return ec._OrganizationSettingHistory(ctx, sel, obj) + case *generated.PersonalAccessToken: + if obj == nil { + return graphql.Null + } + return ec._PersonalAccessToken(ctx, sel, obj) + case *generated.Procedure: + if obj == nil { + return graphql.Null + } + return ec._Procedure(ctx, sel, obj) + case *generated.ProcedureHistory: + if obj == nil { + return graphql.Null + } + return ec._ProcedureHistory(ctx, sel, obj) + case *generated.Risk: + if obj == nil { + return graphql.Null + } + return ec._Risk(ctx, sel, obj) + case *generated.RiskHistory: + if obj == nil { + return graphql.Null + } + return ec._RiskHistory(ctx, sel, obj) + case *generated.Standard: + if obj == nil { + return graphql.Null + } + return ec._Standard(ctx, sel, obj) + case *generated.StandardHistory: + if obj == nil { + return graphql.Null + } + return ec._StandardHistory(ctx, sel, obj) + case *generated.Subcontrol: + if obj == nil { + return graphql.Null + } + return ec._Subcontrol(ctx, sel, obj) + case *generated.SubcontrolHistory: + if obj == nil { + return graphql.Null + } + return ec._SubcontrolHistory(ctx, sel, obj) + case *generated.Subscriber: + if obj == nil { + return graphql.Null + } + return ec._Subscriber(ctx, sel, obj) + case *generated.TFASetting: + if obj == nil { + return graphql.Null + } + return ec._TFASetting(ctx, sel, obj) + case *generated.Template: + if obj == nil { + return graphql.Null + } + return ec._Template(ctx, sel, obj) + case *generated.TemplateHistory: + if obj == nil { + return graphql.Null + } + return ec._TemplateHistory(ctx, sel, obj) + case *generated.User: + if obj == nil { + return graphql.Null + } + return ec._User(ctx, sel, obj) + case *generated.UserHistory: + if obj == nil { + return graphql.Null + } + return ec._UserHistory(ctx, sel, obj) + case *generated.UserSetting: + if obj == nil { + return graphql.Null + } + return ec._UserSetting(ctx, sel, obj) + case *generated.UserSettingHistory: + if obj == nil { + return graphql.Null + } + return ec._UserSettingHistory(ctx, sel, obj) + case *generated.Webhook: + if obj == nil { + return graphql.Null + } + return ec._Webhook(ctx, sel, obj) + case *generated.WebhookHistory: + if obj == nil { + return graphql.Null + } + return ec._WebhookHistory(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +func (ec *executionContext) _SearchResult(ctx context.Context, sel ast.SelectionSet, obj SearchResult) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case APITokenSearchResult: + return ec._APITokenSearchResult(ctx, sel, &obj) + case *APITokenSearchResult: + if obj == nil { + return graphql.Null + } + return ec._APITokenSearchResult(ctx, sel, obj) + case ActionPlanSearchResult: + return ec._ActionPlanSearchResult(ctx, sel, &obj) + case *ActionPlanSearchResult: + if obj == nil { + return graphql.Null + } + return ec._ActionPlanSearchResult(ctx, sel, obj) + case ContactSearchResult: + return ec._ContactSearchResult(ctx, sel, &obj) + case *ContactSearchResult: + if obj == nil { + return graphql.Null + } + return ec._ContactSearchResult(ctx, sel, obj) + case ControlSearchResult: + return ec._ControlSearchResult(ctx, sel, &obj) + case *ControlSearchResult: + if obj == nil { + return graphql.Null + } + return ec._ControlSearchResult(ctx, sel, obj) + case ControlObjectiveSearchResult: + return ec._ControlObjectiveSearchResult(ctx, sel, &obj) + case *ControlObjectiveSearchResult: + if obj == nil { + return graphql.Null + } + return ec._ControlObjectiveSearchResult(ctx, sel, obj) + case DocumentDataSearchResult: + return ec._DocumentDataSearchResult(ctx, sel, &obj) + case *DocumentDataSearchResult: + if obj == nil { + return graphql.Null + } + return ec._DocumentDataSearchResult(ctx, sel, obj) + case EntitlementSearchResult: + return ec._EntitlementSearchResult(ctx, sel, &obj) + case *EntitlementSearchResult: + if obj == nil { + return graphql.Null + } + return ec._EntitlementSearchResult(ctx, sel, obj) + case EntitlementPlanSearchResult: + return ec._EntitlementPlanSearchResult(ctx, sel, &obj) + case *EntitlementPlanSearchResult: + if obj == nil { + return graphql.Null + } + return ec._EntitlementPlanSearchResult(ctx, sel, obj) + case EntitlementPlanFeatureSearchResult: + return ec._EntitlementPlanFeatureSearchResult(ctx, sel, &obj) + case *EntitlementPlanFeatureSearchResult: + if obj == nil { + return graphql.Null + } + return ec._EntitlementPlanFeatureSearchResult(ctx, sel, obj) + case EntitySearchResult: + return ec._EntitySearchResult(ctx, sel, &obj) + case *EntitySearchResult: + if obj == nil { + return graphql.Null + } + return ec._EntitySearchResult(ctx, sel, obj) + case EntityTypeSearchResult: + return ec._EntityTypeSearchResult(ctx, sel, &obj) + case *EntityTypeSearchResult: + if obj == nil { + return graphql.Null + } + return ec._EntityTypeSearchResult(ctx, sel, obj) + case EventSearchResult: + return ec._EventSearchResult(ctx, sel, &obj) + case *EventSearchResult: + if obj == nil { + return graphql.Null + } + return ec._EventSearchResult(ctx, sel, obj) + case FeatureSearchResult: + return ec._FeatureSearchResult(ctx, sel, &obj) + case *FeatureSearchResult: + if obj == nil { + return graphql.Null + } + return ec._FeatureSearchResult(ctx, sel, obj) + case FileSearchResult: + return ec._FileSearchResult(ctx, sel, &obj) + case *FileSearchResult: + if obj == nil { + return graphql.Null + } + return ec._FileSearchResult(ctx, sel, obj) + case GroupSearchResult: + return ec._GroupSearchResult(ctx, sel, &obj) + case *GroupSearchResult: + if obj == nil { + return graphql.Null + } + return ec._GroupSearchResult(ctx, sel, obj) + case GroupSettingSearchResult: + return ec._GroupSettingSearchResult(ctx, sel, &obj) + case *GroupSettingSearchResult: + if obj == nil { + return graphql.Null + } + return ec._GroupSettingSearchResult(ctx, sel, obj) + case IntegrationSearchResult: + return ec._IntegrationSearchResult(ctx, sel, &obj) + case *IntegrationSearchResult: + if obj == nil { + return graphql.Null + } + return ec._IntegrationSearchResult(ctx, sel, obj) + case InternalPolicySearchResult: + return ec._InternalPolicySearchResult(ctx, sel, &obj) + case *InternalPolicySearchResult: + if obj == nil { + return graphql.Null + } + return ec._InternalPolicySearchResult(ctx, sel, obj) + case NarrativeSearchResult: + return ec._NarrativeSearchResult(ctx, sel, &obj) + case *NarrativeSearchResult: + if obj == nil { + return graphql.Null + } + return ec._NarrativeSearchResult(ctx, sel, obj) + case OauthProviderSearchResult: + return ec._OauthProviderSearchResult(ctx, sel, &obj) + case *OauthProviderSearchResult: + if obj == nil { + return graphql.Null + } + return ec._OauthProviderSearchResult(ctx, sel, obj) + case OhAuthTooTokenSearchResult: + return ec._OhAuthTooTokenSearchResult(ctx, sel, &obj) + case *OhAuthTooTokenSearchResult: + if obj == nil { + return graphql.Null + } + return ec._OhAuthTooTokenSearchResult(ctx, sel, obj) + case OrganizationSearchResult: + return ec._OrganizationSearchResult(ctx, sel, &obj) + case *OrganizationSearchResult: + if obj == nil { + return graphql.Null + } + return ec._OrganizationSearchResult(ctx, sel, obj) + case OrganizationSettingSearchResult: + return ec._OrganizationSettingSearchResult(ctx, sel, &obj) + case *OrganizationSettingSearchResult: + if obj == nil { + return graphql.Null + } + return ec._OrganizationSettingSearchResult(ctx, sel, obj) + case PersonalAccessTokenSearchResult: + return ec._PersonalAccessTokenSearchResult(ctx, sel, &obj) + case *PersonalAccessTokenSearchResult: + if obj == nil { + return graphql.Null + } + return ec._PersonalAccessTokenSearchResult(ctx, sel, obj) + case ProcedureSearchResult: + return ec._ProcedureSearchResult(ctx, sel, &obj) + case *ProcedureSearchResult: + if obj == nil { + return graphql.Null + } + return ec._ProcedureSearchResult(ctx, sel, obj) + case RiskSearchResult: + return ec._RiskSearchResult(ctx, sel, &obj) + case *RiskSearchResult: + if obj == nil { + return graphql.Null + } + return ec._RiskSearchResult(ctx, sel, obj) + case StandardSearchResult: + return ec._StandardSearchResult(ctx, sel, &obj) + case *StandardSearchResult: + if obj == nil { + return graphql.Null + } + return ec._StandardSearchResult(ctx, sel, obj) + case SubcontrolSearchResult: + return ec._SubcontrolSearchResult(ctx, sel, &obj) + case *SubcontrolSearchResult: + if obj == nil { + return graphql.Null + } + return ec._SubcontrolSearchResult(ctx, sel, obj) + case SubscriberSearchResult: + return ec._SubscriberSearchResult(ctx, sel, &obj) + case *SubscriberSearchResult: + if obj == nil { + return graphql.Null + } + return ec._SubscriberSearchResult(ctx, sel, obj) + case TFASettingSearchResult: + return ec._TFASettingSearchResult(ctx, sel, &obj) + case *TFASettingSearchResult: + if obj == nil { + return graphql.Null + } + return ec._TFASettingSearchResult(ctx, sel, obj) + case TemplateSearchResult: + return ec._TemplateSearchResult(ctx, sel, &obj) + case *TemplateSearchResult: + if obj == nil { + return graphql.Null + } + return ec._TemplateSearchResult(ctx, sel, obj) + case UserSearchResult: + return ec._UserSearchResult(ctx, sel, &obj) + case *UserSearchResult: + if obj == nil { + return graphql.Null + } + return ec._UserSearchResult(ctx, sel, obj) + case UserSettingSearchResult: + return ec._UserSettingSearchResult(ctx, sel, &obj) + case *UserSettingSearchResult: + if obj == nil { + return graphql.Null + } + return ec._UserSettingSearchResult(ctx, sel, obj) + case WebhookSearchResult: + return ec._WebhookSearchResult(ctx, sel, &obj) + case *WebhookSearchResult: + if obj == nil { + return graphql.Null + } + return ec._WebhookSearchResult(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var aPITokenImplementors = []string{"APIToken", "Node"} + +func (ec *executionContext) _APIToken(ctx context.Context, sel ast.SelectionSet, obj *generated.APIToken) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APIToken") + case "id": + out.Values[i] = ec._APIToken_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.FirstNameIsNil = data - case "firstNameNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._APIToken_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._APIToken_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._APIToken_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._APIToken_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._APIToken_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._APIToken_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._APIToken_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._APIToken_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._APIToken_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.FirstNameNotNil = data - case "firstNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "token": + out.Values[i] = ec._APIToken_token(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.FirstNameEqualFold = data - case "firstNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("firstNameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "expiresAt": + out.Values[i] = ec._APIToken_expiresAt(ctx, field, obj) + case "description": + out.Values[i] = ec._APIToken_description(ctx, field, obj) + case "scopes": + out.Values[i] = ec._APIToken_scopes(ctx, field, obj) + case "lastUsedAt": + out.Values[i] = ec._APIToken_lastUsedAt(ctx, field, obj) + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._APIToken_owner(ctx, field, obj) + return res } - it.FirstNameContainsFold = data - case "lastName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastName = data - case "lastNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var aPITokenBulkCreatePayloadImplementors = []string{"APITokenBulkCreatePayload"} + +func (ec *executionContext) _APITokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *APITokenBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenBulkCreatePayload") + case "apiTokens": + out.Values[i] = ec._APITokenBulkCreatePayload_apiTokens(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var aPITokenConnectionImplementors = []string{"APITokenConnection"} + +func (ec *executionContext) _APITokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.APITokenConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenConnection") + case "edges": + out.Values[i] = ec._APITokenConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._APITokenConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastNameNEQ = data - case "lastNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._APITokenConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastNameIn = data - case "lastNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var aPITokenCreatePayloadImplementors = []string{"APITokenCreatePayload"} + +func (ec *executionContext) _APITokenCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *APITokenCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenCreatePayload") + case "apiToken": + out.Values[i] = ec._APITokenCreatePayload_apiToken(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastNameNotIn = data - case "lastNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var aPITokenDeletePayloadImplementors = []string{"APITokenDeletePayload"} + +func (ec *executionContext) _APITokenDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *APITokenDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenDeletePayload") + case "deletedID": + out.Values[i] = ec._APITokenDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastNameGT = data - case "lastNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var aPITokenEdgeImplementors = []string{"APITokenEdge"} + +func (ec *executionContext) _APITokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.APITokenEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenEdge") + case "node": + out.Values[i] = ec._APITokenEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._APITokenEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastNameGTE = data - case "lastNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var aPITokenSearchResultImplementors = []string{"APITokenSearchResult", "SearchResult"} + +func (ec *executionContext) _APITokenSearchResult(ctx context.Context, sel ast.SelectionSet, obj *APITokenSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenSearchResult") + case "apiTokens": + out.Values[i] = ec._APITokenSearchResult_apiTokens(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var aPITokenUpdatePayloadImplementors = []string{"APITokenUpdatePayload"} + +func (ec *executionContext) _APITokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *APITokenUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenUpdatePayload") + case "apiToken": + out.Values[i] = ec._APITokenUpdatePayload_apiToken(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastNameLT = data - case "lastNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var actionPlanImplementors = []string{"ActionPlan", "Node"} + +func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlan) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlan") + case "id": + out.Values[i] = ec._ActionPlan_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.LastNameLTE = data - case "lastNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._ActionPlan_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._ActionPlan_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._ActionPlan_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._ActionPlan_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._ActionPlan_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._ActionPlan_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._ActionPlan_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._ActionPlan_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.LastNameContains = data - case "lastNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "description": + out.Values[i] = ec._ActionPlan_description(ctx, field, obj) + case "status": + out.Values[i] = ec._ActionPlan_status(ctx, field, obj) + case "dueDate": + out.Values[i] = ec._ActionPlan_dueDate(ctx, field, obj) + case "priority": + out.Values[i] = ec._ActionPlan_priority(ctx, field, obj) + case "source": + out.Values[i] = ec._ActionPlan_source(ctx, field, obj) + case "details": + out.Values[i] = ec._ActionPlan_details(ctx, field, obj) + case "standard": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ActionPlan_standard(ctx, field, obj) + return res } - it.LastNameHasPrefix = data - case "lastNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastNameHasSuffix = data - case "lastNameIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "risk": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ActionPlan_risk(ctx, field, obj) + return res } - it.LastNameIsNil = data - case "lastNameNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastNameNotNil = data - case "lastNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "control": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ActionPlan_control(ctx, field, obj) + return res } - it.LastNameEqualFold = data - case "lastNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastNameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastNameContainsFold = data - case "displayName": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayName")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "user": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ActionPlan_user(ctx, field, obj) + return res } - it.DisplayName = data - case "displayNameNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DisplayNameNEQ = data - case "displayNameIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var actionPlanBulkCreatePayloadImplementors = []string{"ActionPlanBulkCreatePayload"} + +func (ec *executionContext) _ActionPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ActionPlanBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanBulkCreatePayload") + case "actionPlans": + out.Values[i] = ec._ActionPlanBulkCreatePayload_actionPlans(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var actionPlanConnectionImplementors = []string{"ActionPlanConnection"} + +func (ec *executionContext) _ActionPlanConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlanConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanConnection") + case "edges": + out.Values[i] = ec._ActionPlanConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._ActionPlanConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DisplayNameIn = data - case "displayNameNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._ActionPlanConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DisplayNameNotIn = data - case "displayNameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var actionPlanCreatePayloadImplementors = []string{"ActionPlanCreatePayload"} + +func (ec *executionContext) _ActionPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ActionPlanCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanCreatePayload") + case "actionPlan": + out.Values[i] = ec._ActionPlanCreatePayload_actionPlan(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DisplayNameGT = data - case "displayNameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var actionPlanDeletePayloadImplementors = []string{"ActionPlanDeletePayload"} + +func (ec *executionContext) _ActionPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ActionPlanDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanDeletePayload") + case "deletedID": + out.Values[i] = ec._ActionPlanDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DisplayNameGTE = data - case "displayNameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var actionPlanEdgeImplementors = []string{"ActionPlanEdge"} + +func (ec *executionContext) _ActionPlanEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlanEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanEdge") + case "node": + out.Values[i] = ec._ActionPlanEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._ActionPlanEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DisplayNameLT = data - case "displayNameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var actionPlanHistoryImplementors = []string{"ActionPlanHistory", "Node"} + +func (ec *executionContext) _ActionPlanHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlanHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanHistory") + case "id": + out.Values[i] = ec._ActionPlanHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DisplayNameLTE = data - case "displayNameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._ActionPlanHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DisplayNameContains = data - case "displayNameHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._ActionPlanHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._ActionPlanHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DisplayNameHasPrefix = data - case "displayNameHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._ActionPlanHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._ActionPlanHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._ActionPlanHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._ActionPlanHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._ActionPlanHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._ActionPlanHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._ActionPlanHistory_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._ActionPlanHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DisplayNameHasSuffix = data - case "displayNameEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "description": + out.Values[i] = ec._ActionPlanHistory_description(ctx, field, obj) + case "status": + out.Values[i] = ec._ActionPlanHistory_status(ctx, field, obj) + case "dueDate": + out.Values[i] = ec._ActionPlanHistory_dueDate(ctx, field, obj) + case "priority": + out.Values[i] = ec._ActionPlanHistory_priority(ctx, field, obj) + case "source": + out.Values[i] = ec._ActionPlanHistory_source(ctx, field, obj) + case "details": + out.Values[i] = ec._ActionPlanHistory_details(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var actionPlanHistoryConnectionImplementors = []string{"ActionPlanHistoryConnection"} + +func (ec *executionContext) _ActionPlanHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlanHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanHistoryConnection") + case "edges": + out.Values[i] = ec._ActionPlanHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._ActionPlanHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DisplayNameEqualFold = data - case "displayNameContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayNameContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._ActionPlanHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DisplayNameContainsFold = data - case "avatarRemoteURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var actionPlanHistoryEdgeImplementors = []string{"ActionPlanHistoryEdge"} + +func (ec *executionContext) _ActionPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlanHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanHistoryEdge") + case "node": + out.Values[i] = ec._ActionPlanHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._ActionPlanHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarRemoteURL = data - case "avatarRemoteURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var actionPlanSearchResultImplementors = []string{"ActionPlanSearchResult", "SearchResult"} + +func (ec *executionContext) _ActionPlanSearchResult(ctx context.Context, sel ast.SelectionSet, obj *ActionPlanSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanSearchResult") + case "actionPlans": + out.Values[i] = ec._ActionPlanSearchResult_actionPlans(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var actionPlanUpdatePayloadImplementors = []string{"ActionPlanUpdatePayload"} + +func (ec *executionContext) _ActionPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ActionPlanUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanUpdatePayload") + case "actionPlan": + out.Values[i] = ec._ActionPlanUpdatePayload_actionPlan(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var auditLogImplementors = []string{"AuditLog", "Node"} + +func (ec *executionContext) _AuditLog(ctx context.Context, sel ast.SelectionSet, obj *AuditLog) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, auditLogImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AuditLog") + case "table": + out.Values[i] = ec._AuditLog_table(ctx, field, obj) + case "time": + out.Values[i] = ec._AuditLog_time(ctx, field, obj) + case "id": + out.Values[i] = ec._AuditLog_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarRemoteURLNEQ = data - case "avatarRemoteURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + case "operation": + out.Values[i] = ec._AuditLog_operation(ctx, field, obj) + case "changes": + out.Values[i] = ec._AuditLog_changes(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._AuditLog_updatedBy(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var auditLogConnectionImplementors = []string{"AuditLogConnection"} + +func (ec *executionContext) _AuditLogConnection(ctx context.Context, sel ast.SelectionSet, obj *AuditLogConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, auditLogConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AuditLogConnection") + case "edges": + out.Values[i] = ec._AuditLogConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._AuditLogConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarRemoteURLIn = data - case "avatarRemoteURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._AuditLogConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarRemoteURLNotIn = data - case "avatarRemoteURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var auditLogEdgeImplementors = []string{"AuditLogEdge"} + +func (ec *executionContext) _AuditLogEdge(ctx context.Context, sel ast.SelectionSet, obj *AuditLogEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, auditLogEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AuditLogEdge") + case "node": + out.Values[i] = ec._AuditLogEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._AuditLogEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarRemoteURLGT = data - case "avatarRemoteURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var contactImplementors = []string{"Contact", "Node"} + +func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, obj *generated.Contact) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Contact") + case "id": + out.Values[i] = ec._Contact_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.AvatarRemoteURLGTE = data - case "avatarRemoteURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._Contact_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Contact_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Contact_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Contact_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._Contact_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._Contact_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Contact_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Contact_ownerID(ctx, field, obj) + case "fullName": + out.Values[i] = ec._Contact_fullName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.AvatarRemoteURLLT = data - case "avatarRemoteURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "title": + out.Values[i] = ec._Contact_title(ctx, field, obj) + case "company": + out.Values[i] = ec._Contact_company(ctx, field, obj) + case "email": + out.Values[i] = ec._Contact_email(ctx, field, obj) + case "phoneNumber": + out.Values[i] = ec._Contact_phoneNumber(ctx, field, obj) + case "address": + out.Values[i] = ec._Contact_address(ctx, field, obj) + case "status": + out.Values[i] = ec._Contact_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.AvatarRemoteURLLTE = data - case "avatarRemoteURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Contact_owner(ctx, field, obj) + return res } - it.AvatarRemoteURLContains = data - case "avatarRemoteURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.AvatarRemoteURLHasPrefix = data - case "avatarRemoteURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "entities": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Contact_entities(ctx, field, obj) + return res } - it.AvatarRemoteURLHasSuffix = data - case "avatarRemoteURLIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.AvatarRemoteURLIsNil = data - case "avatarRemoteURLNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "files": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Contact_files(ctx, field, obj) + return res } - it.AvatarRemoteURLNotNil = data - case "avatarRemoteURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.AvatarRemoteURLEqualFold = data - case "avatarRemoteURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarRemoteURLContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var contactBulkCreatePayloadImplementors = []string{"ContactBulkCreatePayload"} + +func (ec *executionContext) _ContactBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ContactBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactBulkCreatePayload") + case "contacts": + out.Values[i] = ec._ContactBulkCreatePayload_contacts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var contactConnectionImplementors = []string{"ContactConnection"} + +func (ec *executionContext) _ContactConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactConnection") + case "edges": + out.Values[i] = ec._ContactConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._ContactConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarRemoteURLContainsFold = data - case "avatarLocalFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFile")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._ContactConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFile = data - case "avatarLocalFileNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var contactCreatePayloadImplementors = []string{"ContactCreatePayload"} + +func (ec *executionContext) _ContactCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ContactCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactCreatePayload") + case "contact": + out.Values[i] = ec._ContactCreatePayload_contact(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileNEQ = data - case "avatarLocalFileIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var contactDeletePayloadImplementors = []string{"ContactDeletePayload"} + +func (ec *executionContext) _ContactDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ContactDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactDeletePayload") + case "deletedID": + out.Values[i] = ec._ContactDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileIn = data - case "avatarLocalFileNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var contactEdgeImplementors = []string{"ContactEdge"} + +func (ec *executionContext) _ContactEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactEdge") + case "node": + out.Values[i] = ec._ContactEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._ContactEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileNotIn = data - case "avatarLocalFileGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var contactHistoryImplementors = []string{"ContactHistory", "Node"} + +func (ec *executionContext) _ContactHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactHistory") + case "id": + out.Values[i] = ec._ContactHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileGT = data - case "avatarLocalFileGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._ContactHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileGTE = data - case "avatarLocalFileLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._ContactHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._ContactHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileLT = data - case "avatarLocalFileLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._ContactHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._ContactHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._ContactHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._ContactHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._ContactHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._ContactHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._ContactHistory_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._ContactHistory_ownerID(ctx, field, obj) + case "fullName": + out.Values[i] = ec._ContactHistory_fullName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileLTE = data - case "avatarLocalFileContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "title": + out.Values[i] = ec._ContactHistory_title(ctx, field, obj) + case "company": + out.Values[i] = ec._ContactHistory_company(ctx, field, obj) + case "email": + out.Values[i] = ec._ContactHistory_email(ctx, field, obj) + case "phoneNumber": + out.Values[i] = ec._ContactHistory_phoneNumber(ctx, field, obj) + case "address": + out.Values[i] = ec._ContactHistory_address(ctx, field, obj) + case "status": + out.Values[i] = ec._ContactHistory_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileContains = data - case "avatarLocalFileHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var contactHistoryConnectionImplementors = []string{"ContactHistoryConnection"} + +func (ec *executionContext) _ContactHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactHistoryConnection") + case "edges": + out.Values[i] = ec._ContactHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._ContactHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileHasPrefix = data - case "avatarLocalFileHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._ContactHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileHasSuffix = data - case "avatarLocalFileIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var contactHistoryEdgeImplementors = []string{"ContactHistoryEdge"} + +func (ec *executionContext) _ContactHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactHistoryEdge") + case "node": + out.Values[i] = ec._ContactHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._ContactHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileIsNil = data - case "avatarLocalFileNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var contactSearchResultImplementors = []string{"ContactSearchResult", "SearchResult"} + +func (ec *executionContext) _ContactSearchResult(ctx context.Context, sel ast.SelectionSet, obj *ContactSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactSearchResult") + case "contacts": + out.Values[i] = ec._ContactSearchResult_contacts(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var contactUpdatePayloadImplementors = []string{"ContactUpdatePayload"} + +func (ec *executionContext) _ContactUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ContactUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactUpdatePayload") + case "contact": + out.Values[i] = ec._ContactUpdatePayload_contact(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileNotNil = data - case "avatarLocalFileEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlImplementors = []string{"Control", "Node"} + +func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, obj *generated.Control) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Control") + case "id": + out.Values[i] = ec._Control_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.AvatarLocalFileEqualFold = data - case "avatarLocalFileContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._Control_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Control_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Control_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Control_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._Control_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._Control_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Control_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._Control_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.AvatarLocalFileContainsFold = data - case "avatarLocalFileID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + case "description": + out.Values[i] = ec._Control_description(ctx, field, obj) + case "status": + out.Values[i] = ec._Control_status(ctx, field, obj) + case "controlType": + out.Values[i] = ec._Control_controlType(ctx, field, obj) + case "version": + out.Values[i] = ec._Control_version(ctx, field, obj) + case "controlNumber": + out.Values[i] = ec._Control_controlNumber(ctx, field, obj) + case "family": + out.Values[i] = ec._Control_family(ctx, field, obj) + case "class": + out.Values[i] = ec._Control_class(ctx, field, obj) + case "source": + out.Values[i] = ec._Control_source(ctx, field, obj) + case "satisfies": + out.Values[i] = ec._Control_satisfies(ctx, field, obj) + case "mappedFrameworks": + out.Values[i] = ec._Control_mappedFrameworks(ctx, field, obj) + case "details": + out.Values[i] = ec._Control_details(ctx, field, obj) + case "procedures": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Control_procedures(ctx, field, obj) + return res } - it.AvatarLocalFileID = data - case "avatarLocalFileIDNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.AvatarLocalFileIDNEQ = data - case "avatarLocalFileIDIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "subcontrols": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Control_subcontrols(ctx, field, obj) + return res } - it.AvatarLocalFileIDIn = data - case "avatarLocalFileIDNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.AvatarLocalFileIDNotIn = data - case "avatarLocalFileIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "controlobjectives": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Control_controlobjectives(ctx, field, obj) + return res } - it.AvatarLocalFileIDGT = data - case "avatarLocalFileIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.AvatarLocalFileIDGTE = data - case "avatarLocalFileIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "standard": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Control_standard(ctx, field, obj) + return res } - it.AvatarLocalFileIDLT = data - case "avatarLocalFileIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.AvatarLocalFileIDLTE = data - case "avatarLocalFileIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "narratives": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Control_narratives(ctx, field, obj) + return res } - it.AvatarLocalFileIDContains = data - case "avatarLocalFileIDHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDHasPrefix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.AvatarLocalFileIDHasPrefix = data - case "avatarLocalFileIDHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDHasSuffix")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "risks": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Control_risks(ctx, field, obj) + return res } - it.AvatarLocalFileIDHasSuffix = data - case "avatarLocalFileIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.AvatarLocalFileIDIsNil = data - case "avatarLocalFileIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "actionplans": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Control_actionplans(ctx, field, obj) + return res } - it.AvatarLocalFileIDNotNil = data - case "avatarLocalFileIDEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.AvatarLocalFileIDEqualFold = data - case "avatarLocalFileIDContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarLocalFileIDContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlBulkCreatePayloadImplementors = []string{"ControlBulkCreatePayload"} + +func (ec *executionContext) _ControlBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlBulkCreatePayload") + case "controls": + out.Values[i] = ec._ControlBulkCreatePayload_controls(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlConnectionImplementors = []string{"ControlConnection"} + +func (ec *executionContext) _ControlConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlConnection") + case "edges": + out.Values[i] = ec._ControlConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._ControlConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarLocalFileIDContainsFold = data - case "avatarUpdatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._ControlConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarUpdatedAt = data - case "avatarUpdatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlCreatePayloadImplementors = []string{"ControlCreatePayload"} + +func (ec *executionContext) _ControlCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlCreatePayload") + case "control": + out.Values[i] = ec._ControlCreatePayload_control(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarUpdatedAtNEQ = data - case "avatarUpdatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlDeletePayloadImplementors = []string{"ControlDeletePayload"} + +func (ec *executionContext) _ControlDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlDeletePayload") + case "deletedID": + out.Values[i] = ec._ControlDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarUpdatedAtIn = data - case "avatarUpdatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlEdgeImplementors = []string{"ControlEdge"} + +func (ec *executionContext) _ControlEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlEdge") + case "node": + out.Values[i] = ec._ControlEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._ControlEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarUpdatedAtNotIn = data - case "avatarUpdatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlHistoryImplementors = []string{"ControlHistory", "Node"} + +func (ec *executionContext) _ControlHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlHistory") + case "id": + out.Values[i] = ec._ControlHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarUpdatedAtGT = data - case "avatarUpdatedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._ControlHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarUpdatedAtGTE = data - case "avatarUpdatedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._ControlHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._ControlHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarUpdatedAtLT = data - case "avatarUpdatedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._ControlHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._ControlHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._ControlHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._ControlHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._ControlHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._ControlHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._ControlHistory_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._ControlHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarUpdatedAtLTE = data - case "avatarUpdatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "description": + out.Values[i] = ec._ControlHistory_description(ctx, field, obj) + case "status": + out.Values[i] = ec._ControlHistory_status(ctx, field, obj) + case "controlType": + out.Values[i] = ec._ControlHistory_controlType(ctx, field, obj) + case "version": + out.Values[i] = ec._ControlHistory_version(ctx, field, obj) + case "controlNumber": + out.Values[i] = ec._ControlHistory_controlNumber(ctx, field, obj) + case "family": + out.Values[i] = ec._ControlHistory_family(ctx, field, obj) + case "class": + out.Values[i] = ec._ControlHistory_class(ctx, field, obj) + case "source": + out.Values[i] = ec._ControlHistory_source(ctx, field, obj) + case "satisfies": + out.Values[i] = ec._ControlHistory_satisfies(ctx, field, obj) + case "mappedFrameworks": + out.Values[i] = ec._ControlHistory_mappedFrameworks(ctx, field, obj) + case "details": + out.Values[i] = ec._ControlHistory_details(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlHistoryConnectionImplementors = []string{"ControlHistoryConnection"} + +func (ec *executionContext) _ControlHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlHistoryConnection") + case "edges": + out.Values[i] = ec._ControlHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._ControlHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarUpdatedAtIsNil = data - case "avatarUpdatedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUpdatedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._ControlHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AvatarUpdatedAtNotNil = data - case "lastSeen": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeen")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlHistoryEdgeImplementors = []string{"ControlHistoryEdge"} + +func (ec *executionContext) _ControlHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlHistoryEdge") + case "node": + out.Values[i] = ec._ControlHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._ControlHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastSeen = data - case "lastSeenNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlObjectiveImplementors = []string{"ControlObjective", "Node"} + +func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlObjective) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjective") + case "id": + out.Values[i] = ec._ControlObjective_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.LastSeenNEQ = data - case "lastSeenIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._ControlObjective_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._ControlObjective_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._ControlObjective_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._ControlObjective_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._ControlObjective_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._ControlObjective_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._ControlObjective_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._ControlObjective_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.LastSeenIn = data - case "lastSeenNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err + case "description": + out.Values[i] = ec._ControlObjective_description(ctx, field, obj) + case "status": + out.Values[i] = ec._ControlObjective_status(ctx, field, obj) + case "controlObjectiveType": + out.Values[i] = ec._ControlObjective_controlObjectiveType(ctx, field, obj) + case "version": + out.Values[i] = ec._ControlObjective_version(ctx, field, obj) + case "controlNumber": + out.Values[i] = ec._ControlObjective_controlNumber(ctx, field, obj) + case "family": + out.Values[i] = ec._ControlObjective_family(ctx, field, obj) + case "class": + out.Values[i] = ec._ControlObjective_class(ctx, field, obj) + case "source": + out.Values[i] = ec._ControlObjective_source(ctx, field, obj) + case "mappedFrameworks": + out.Values[i] = ec._ControlObjective_mappedFrameworks(ctx, field, obj) + case "details": + out.Values[i] = ec._ControlObjective_details(ctx, field, obj) + case "policy": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ControlObjective_policy(ctx, field, obj) + return res } - it.LastSeenNotIn = data - case "lastSeenGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastSeenGT = data - case "lastSeenGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "controls": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ControlObjective_controls(ctx, field, obj) + return res } - it.LastSeenGTE = data - case "lastSeenLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastSeenLT = data - case "lastSeenLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "procedures": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ControlObjective_procedures(ctx, field, obj) + return res } - it.LastSeenLTE = data - case "lastSeenIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastSeenIsNil = data - case "lastSeenNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastSeenNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "risks": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ControlObjective_risks(ctx, field, obj) + return res } - it.LastSeenNotNil = data - case "sub": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sub")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.Sub = data - case "subNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "subcontrols": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ControlObjective_subcontrols(ctx, field, obj) + return res } - it.SubNEQ = data - case "subIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.SubIn = data - case "subNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "standard": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ControlObjective_standard(ctx, field, obj) + return res } - it.SubNotIn = data - case "subGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.SubGT = data - case "subGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "narratives": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._ControlObjective_narratives(ctx, field, obj) + return res } - it.SubGTE = data - case "subLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.SubLT = data - case "subLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlObjectiveBulkCreatePayloadImplementors = []string{"ControlObjectiveBulkCreatePayload"} + +func (ec *executionContext) _ControlObjectiveBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlObjectiveBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveBulkCreatePayload") + case "controlObjectives": + out.Values[i] = ec._ControlObjectiveBulkCreatePayload_controlObjectives(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlObjectiveConnectionImplementors = []string{"ControlObjectiveConnection"} + +func (ec *executionContext) _ControlObjectiveConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlObjectiveConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveConnection") + case "edges": + out.Values[i] = ec._ControlObjectiveConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._ControlObjectiveConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.SubLTE = data - case "subContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._ControlObjectiveConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.SubContains = data - case "subHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlObjectiveCreatePayloadImplementors = []string{"ControlObjectiveCreatePayload"} + +func (ec *executionContext) _ControlObjectiveCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlObjectiveCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveCreatePayload") + case "controlObjective": + out.Values[i] = ec._ControlObjectiveCreatePayload_controlObjective(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.SubHasPrefix = data - case "subHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlObjectiveDeletePayloadImplementors = []string{"ControlObjectiveDeletePayload"} + +func (ec *executionContext) _ControlObjectiveDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlObjectiveDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveDeletePayload") + case "deletedID": + out.Values[i] = ec._ControlObjectiveDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.SubHasSuffix = data - case "subIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlObjectiveEdgeImplementors = []string{"ControlObjectiveEdge"} + +func (ec *executionContext) _ControlObjectiveEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlObjectiveEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveEdge") + case "node": + out.Values[i] = ec._ControlObjectiveEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._ControlObjectiveEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.SubIsNil = data - case "subNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlObjectiveHistoryImplementors = []string{"ControlObjectiveHistory", "Node"} + +func (ec *executionContext) _ControlObjectiveHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlObjectiveHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveHistory") + case "id": + out.Values[i] = ec._ControlObjectiveHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.SubNotNil = data - case "subEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._ControlObjectiveHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.SubEqualFold = data - case "subContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._ControlObjectiveHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._ControlObjectiveHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.SubContainsFold = data - case "authProvider": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProvider")) - data, err := ec.unmarshalOUserAuthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._ControlObjectiveHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._ControlObjectiveHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._ControlObjectiveHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._ControlObjectiveHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._ControlObjectiveHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._ControlObjectiveHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._ControlObjectiveHistory_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._ControlObjectiveHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AuthProvider = data - case "authProviderNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProviderNEQ")) - data, err := ec.unmarshalOUserAuthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, v) - if err != nil { - return it, err + case "description": + out.Values[i] = ec._ControlObjectiveHistory_description(ctx, field, obj) + case "status": + out.Values[i] = ec._ControlObjectiveHistory_status(ctx, field, obj) + case "controlObjectiveType": + out.Values[i] = ec._ControlObjectiveHistory_controlObjectiveType(ctx, field, obj) + case "version": + out.Values[i] = ec._ControlObjectiveHistory_version(ctx, field, obj) + case "controlNumber": + out.Values[i] = ec._ControlObjectiveHistory_controlNumber(ctx, field, obj) + case "family": + out.Values[i] = ec._ControlObjectiveHistory_family(ctx, field, obj) + case "class": + out.Values[i] = ec._ControlObjectiveHistory_class(ctx, field, obj) + case "source": + out.Values[i] = ec._ControlObjectiveHistory_source(ctx, field, obj) + case "mappedFrameworks": + out.Values[i] = ec._ControlObjectiveHistory_mappedFrameworks(ctx, field, obj) + case "details": + out.Values[i] = ec._ControlObjectiveHistory_details(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlObjectiveHistoryConnectionImplementors = []string{"ControlObjectiveHistoryConnection"} + +func (ec *executionContext) _ControlObjectiveHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlObjectiveHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveHistoryConnection") + case "edges": + out.Values[i] = ec._ControlObjectiveHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._ControlObjectiveHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AuthProviderNEQ = data - case "authProviderIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProviderIn")) - data, err := ec.unmarshalOUserAuthProvider2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProviderᚄ(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._ControlObjectiveHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AuthProviderIn = data - case "authProviderNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authProviderNotIn")) - data, err := ec.unmarshalOUserAuthProvider2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProviderᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlObjectiveHistoryEdgeImplementors = []string{"ControlObjectiveHistoryEdge"} + +func (ec *executionContext) _ControlObjectiveHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlObjectiveHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveHistoryEdge") + case "node": + out.Values[i] = ec._ControlObjectiveHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._ControlObjectiveHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.AuthProviderNotIn = data - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOUserRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlObjectiveSearchResultImplementors = []string{"ControlObjectiveSearchResult", "SearchResult"} + +func (ec *executionContext) _ControlObjectiveSearchResult(ctx context.Context, sel ast.SelectionSet, obj *ControlObjectiveSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveSearchResult") + case "controlObjectives": + out.Values[i] = ec._ControlObjectiveSearchResult_controlObjectives(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlObjectiveUpdatePayloadImplementors = []string{"ControlObjectiveUpdatePayload"} + +func (ec *executionContext) _ControlObjectiveUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlObjectiveUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveUpdatePayload") + case "controlObjective": + out.Values[i] = ec._ControlObjectiveUpdatePayload_controlObjective(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.Role = data - case "roleNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNEQ")) - data, err := ec.unmarshalOUserRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlSearchResultImplementors = []string{"ControlSearchResult", "SearchResult"} + +func (ec *executionContext) _ControlSearchResult(ctx context.Context, sel ast.SelectionSet, obj *ControlSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlSearchResult") + case "controls": + out.Values[i] = ec._ControlSearchResult_controls(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var controlUpdatePayloadImplementors = []string{"ControlUpdatePayload"} + +func (ec *executionContext) _ControlUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlUpdatePayload") + case "control": + out.Values[i] = ec._ControlUpdatePayload_control(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.RoleNEQ = data - case "roleIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIn")) - data, err := ec.unmarshalOUserRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var documentDataImplementors = []string{"DocumentData", "Node"} + +func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentData) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentData") + case "id": + out.Values[i] = ec._DocumentData_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.RoleIn = data - case "roleNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotIn")) - data, err := ec.unmarshalOUserRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._DocumentData_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._DocumentData_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._DocumentData_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._DocumentData_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._DocumentData_tags(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._DocumentData_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._DocumentData_deletedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._DocumentData_ownerID(ctx, field, obj) + case "templateID": + out.Values[i] = ec._DocumentData_templateID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.RoleNotIn = data - case "roleIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "data": + out.Values[i] = ec._DocumentData_data(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.RoleIsNil = data - case "roleNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roleNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._DocumentData_owner(ctx, field, obj) + return res } - it.RoleNotNil = data - case "hasPersonalAccessTokens": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPersonalAccessTokens")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.HasPersonalAccessTokens = data - case "hasPersonalAccessTokensWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPersonalAccessTokensWith")) - data, err := ec.unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "template": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._DocumentData_template(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - it.HasPersonalAccessTokensWith = data - case "hasTfaSettings": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTfaSettings")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.HasTfaSettings = data - case "hasTfaSettingsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTfaSettingsWith")) - data, err := ec.unmarshalOTFASettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInputᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "entity": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._DocumentData_entity(ctx, field, obj) + return res } - it.HasTfaSettingsWith = data - case "hasSetting": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSetting")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.HasSetting = data - case "hasSettingWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSettingWith")) - data, err := ec.unmarshalOUserSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInputᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "files": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._DocumentData_files(ctx, field, obj) + return res } - it.HasSettingWith = data - case "hasGroups": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroups")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.HasGroups = data - case "hasGroupsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupsWith")) - data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var documentDataBulkCreatePayloadImplementors = []string{"DocumentDataBulkCreatePayload"} + +func (ec *executionContext) _DocumentDataBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataBulkCreatePayload") + case "documentData": + out.Values[i] = ec._DocumentDataBulkCreatePayload_documentData(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var documentDataConnectionImplementors = []string{"DocumentDataConnection"} + +func (ec *executionContext) _DocumentDataConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataConnection") + case "edges": + out.Values[i] = ec._DocumentDataConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._DocumentDataConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasGroupsWith = data - case "hasOrganizations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizations")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._DocumentDataConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasOrganizations = data - case "hasOrganizationsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrganizationsWith")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var documentDataCreatePayloadImplementors = []string{"DocumentDataCreatePayload"} + +func (ec *executionContext) _DocumentDataCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataCreatePayload") + case "documentData": + out.Values[i] = ec._DocumentDataCreatePayload_documentData(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasOrganizationsWith = data - case "hasFiles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var documentDataDeletePayloadImplementors = []string{"DocumentDataDeletePayload"} + +func (ec *executionContext) _DocumentDataDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataDeletePayload") + case "deletedID": + out.Values[i] = ec._DocumentDataDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasFiles = data - case "hasFilesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFilesWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var documentDataEdgeImplementors = []string{"DocumentDataEdge"} + +func (ec *executionContext) _DocumentDataEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataEdge") + case "node": + out.Values[i] = ec._DocumentDataEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._DocumentDataEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasFilesWith = data - case "hasFile": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFile")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var documentDataHistoryImplementors = []string{"DocumentDataHistory", "Node"} + +func (ec *executionContext) _DocumentDataHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataHistory") + case "id": + out.Values[i] = ec._DocumentDataHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasFile = data - case "hasFileWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFileWith")) - data, err := ec.unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._DocumentDataHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasFileWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._DocumentDataHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._DocumentDataHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._DocumentDataHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._DocumentDataHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._DocumentDataHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._DocumentDataHistory_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._DocumentDataHistory_tags(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._DocumentDataHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._DocumentDataHistory_deletedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._DocumentDataHistory_ownerID(ctx, field, obj) + case "templateID": + out.Values[i] = ec._DocumentDataHistory_templateID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasEventsWith = data - case "hasGroupMemberships": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupMemberships")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + case "data": + out.Values[i] = ec._DocumentDataHistory_data(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasGroupMemberships = data - case "hasGroupMembershipsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupMembershipsWith")) - data, err := ec.unmarshalOGroupMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInputᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var documentDataHistoryConnectionImplementors = []string{"DocumentDataHistoryConnection"} + +func (ec *executionContext) _DocumentDataHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataHistoryConnection") + case "edges": + out.Values[i] = ec._DocumentDataHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._DocumentDataHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasGroupMembershipsWith = data - case "hasOrgMemberships": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrgMemberships")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._DocumentDataHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasOrgMemberships = data - case "hasOrgMembershipsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOrgMembershipsWith")) - data, err := ec.unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInputᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var documentDataHistoryEdgeImplementors = []string{"DocumentDataHistoryEdge"} + +func (ec *executionContext) _DocumentDataHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataHistoryEdge") + case "node": + out.Values[i] = ec._DocumentDataHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._DocumentDataHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasOrgMembershipsWith = data + default: + panic("unknown field " + strconv.Quote(field.Name)) } } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - return it, nil + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out } -func (ec *executionContext) unmarshalInputWebhookHistoryOrder(ctx context.Context, obj interface{}) (generated.WebhookHistoryOrder, error) { - var it generated.WebhookHistoryOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v +var documentDataSearchResultImplementors = []string{"DocumentDataSearchResult", "SearchResult"} + +func (ec *executionContext) _DocumentDataSearchResult(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataSearchResult") + case "documentData": + out.Values[i] = ec._DocumentDataSearchResult_documentData(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null } - if _, present := asMap["direction"]; !present { - asMap["direction"] = "ASC" + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) } - 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.unmarshalNWebhookHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryOrderField(ctx, v) - if err != nil { - return it, err + return out +} + +var documentDataUpdatePayloadImplementors = []string{"DocumentDataUpdatePayload"} + +func (ec *executionContext) _DocumentDataUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataUpdatePayload") + case "documentData": + out.Values[i] = ec._DocumentDataUpdatePayload_documentData(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.Field = data + default: + panic("unknown field " + strconv.Quote(field.Name)) } } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - return it, nil -} + atomic.AddInt32(&ec.deferred, int32(len(deferred))) -func (ec *executionContext) unmarshalInputWebhookHistoryWhereInput(ctx context.Context, obj interface{}) (generated.WebhookHistoryWhereInput, error) { - var it generated.WebhookHistoryWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "historyTime", "historyTimeNEQ", "historyTimeIn", "historyTimeNotIn", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refGT", "refGTE", "refLT", "refLTE", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "destinationURL", "destinationURLNEQ", "destinationURLIn", "destinationURLNotIn", "destinationURLGT", "destinationURLGTE", "destinationURLLT", "destinationURLLTE", "destinationURLContains", "destinationURLHasPrefix", "destinationURLHasSuffix", "destinationURLEqualFold", "destinationURLContainsFold", "enabled", "enabledNEQ", "failures", "failuresNEQ", "failuresIn", "failuresNotIn", "failuresGT", "failuresGTE", "failuresLT", "failuresLTE", "failuresIsNil", "failuresNotNil", "lastError", "lastErrorNEQ", "lastErrorIn", "lastErrorNotIn", "lastErrorGT", "lastErrorGTE", "lastErrorLT", "lastErrorLTE", "lastErrorContains", "lastErrorHasPrefix", "lastErrorHasSuffix", "lastErrorIsNil", "lastErrorNotNil", "lastErrorEqualFold", "lastErrorContainsFold", "lastResponse", "lastResponseNEQ", "lastResponseIn", "lastResponseNotIn", "lastResponseGT", "lastResponseGTE", "lastResponseLT", "lastResponseLTE", "lastResponseContains", "lastResponseHasPrefix", "lastResponseHasSuffix", "lastResponseIsNil", "lastResponseNotNil", "lastResponseEqualFold", "lastResponseContainsFold"} - 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.unmarshalOWebhookHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryWhereInput(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOWebhookHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOWebhookHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Or = data + return out +} + +var entitlementImplementors = []string{"Entitlement", "Node"} + +func (ec *executionContext) _Entitlement(ctx context.Context, sel ast.SelectionSet, obj *generated.Entitlement) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Entitlement") case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "idNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDNEQ = data - case "idIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDIn = data - case "idNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDEqualFold = data - case "idContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idContainsFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDContainsFold = data - case "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 "historyTimeNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeNEQ = data - case "historyTimeIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.HistoryTimeIn = data - case "historyTimeNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err + out.Values[i] = ec._Entitlement_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.HistoryTimeNotIn = data - case "historyTimeGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._Entitlement_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Entitlement_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Entitlement_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Entitlement_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Entitlement_tags(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._Entitlement_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._Entitlement_deletedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Entitlement_ownerID(ctx, field, obj) + case "planID": + out.Values[i] = ec._Entitlement_planID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - 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 + case "organizationID": + out.Values[i] = ec._Entitlement_organizationID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - 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 + case "externalCustomerID": + out.Values[i] = ec._Entitlement_externalCustomerID(ctx, field, obj) + case "externalSubscriptionID": + out.Values[i] = ec._Entitlement_externalSubscriptionID(ctx, field, obj) + case "expires": + out.Values[i] = ec._Entitlement_expires(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - 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 + case "expiresAt": + out.Values[i] = ec._Entitlement_expiresAt(ctx, field, obj) + case "cancelled": + out.Values[i] = ec._Entitlement_cancelled(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - 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 + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Entitlement_owner(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - 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 + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "plan": + 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._Entitlement_plan(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.RefNotIn = data - case "refGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "organization": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Entitlement_organization(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - it.RefGT = data - case "refGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.RefGTE = data - case "refLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Entitlement_events(ctx, field, obj) + return res } - it.RefLT = data - case "refLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.RefLTE = data - case "refContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementBulkCreatePayloadImplementors = []string{"EntitlementBulkCreatePayload"} + +func (ec *executionContext) _EntitlementBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementBulkCreatePayload") + case "entitlements": + out.Values[i] = ec._EntitlementBulkCreatePayload_entitlements(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementConnectionImplementors = []string{"EntitlementConnection"} + +func (ec *executionContext) _EntitlementConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementConnection") + case "edges": + out.Values[i] = ec._EntitlementConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EntitlementConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "totalCount": + out.Values[i] = ec._EntitlementConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementCreatePayloadImplementors = []string{"EntitlementCreatePayload"} + +func (ec *executionContext) _EntitlementCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementCreatePayload") + case "entitlement": + out.Values[i] = ec._EntitlementCreatePayload_entitlement(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.RefHasSuffix = data - case "refIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementDeletePayloadImplementors = []string{"EntitlementDeletePayload"} + +func (ec *executionContext) _EntitlementDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementDeletePayload") + case "deletedID": + out.Values[i] = ec._EntitlementDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.RefIsNil = data - case "refNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementEdgeImplementors = []string{"EntitlementEdge"} + +func (ec *executionContext) _EntitlementEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementEdge") + case "node": + out.Values[i] = ec._EntitlementEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EntitlementEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementHistoryImplementors = []string{"EntitlementHistory", "Node"} + +func (ec *executionContext) _EntitlementHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementHistory") + case "id": + out.Values[i] = ec._EntitlementHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "historyTime": + out.Values[i] = ec._EntitlementHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.RefContainsFold = data + case "ref": + out.Values[i] = ec._EntitlementHistory_ref(ctx, field, obj) case "operation": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOWebhookHistoryOpType2ᚖ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.unmarshalOWebhookHistoryOpType2ᚖ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.unmarshalOWebhookHistoryOpType2ᚕ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.unmarshalOWebhookHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) - if err != nil { - return it, err + out.Values[i] = ec._EntitlementHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGT = data - case "createdAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGTE = data - case "createdAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLT = data - case "createdAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLTE = data - case "createdAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotNil = data + out.Values[i] = ec._EntitlementHistory_createdAt(ctx, field, obj) case "updatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGT = data - case "updatedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGTE = data - case "updatedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + out.Values[i] = ec._EntitlementHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._EntitlementHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._EntitlementHistory_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._EntitlementHistory_tags(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._EntitlementHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._EntitlementHistory_deletedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._EntitlementHistory_ownerID(ctx, field, obj) + case "planID": + out.Values[i] = ec._EntitlementHistory_planID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "organizationID": + out.Values[i] = ec._EntitlementHistory_organizationID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.UpdatedAtLTE = data - case "updatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "externalCustomerID": + out.Values[i] = ec._EntitlementHistory_externalCustomerID(ctx, field, obj) + case "externalSubscriptionID": + out.Values[i] = ec._EntitlementHistory_externalSubscriptionID(ctx, field, obj) + case "expires": + out.Values[i] = ec._EntitlementHistory_expires(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.UpdatedAtIsNil = data - case "updatedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "expiresAt": + out.Values[i] = ec._EntitlementHistory_expiresAt(ctx, field, obj) + case "cancelled": + out.Values[i] = ec._EntitlementHistory_cancelled(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementHistoryConnectionImplementors = []string{"EntitlementHistoryConnection"} + +func (ec *executionContext) _EntitlementHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementHistoryConnection") + case "edges": + out.Values[i] = ec._EntitlementHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EntitlementHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "totalCount": + out.Values[i] = ec._EntitlementHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementHistoryEdgeImplementors = []string{"EntitlementHistoryEdge"} + +func (ec *executionContext) _EntitlementHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementHistoryEdge") + case "node": + out.Values[i] = ec._EntitlementHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EntitlementHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanImplementors = []string{"EntitlementPlan", "Node"} + +func (ec *executionContext) _EntitlementPlan(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlan) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlan") + case "id": + out.Values[i] = ec._EntitlementPlan_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._EntitlementPlan_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._EntitlementPlan_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._EntitlementPlan_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._EntitlementPlan_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._EntitlementPlan_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._EntitlementPlan_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._EntitlementPlan_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._EntitlementPlan_ownerID(ctx, field, obj) + case "displayName": + out.Values[i] = ec._EntitlementPlan_displayName(ctx, field, obj) + case "name": + out.Values[i] = ec._EntitlementPlan_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "description": + out.Values[i] = ec._EntitlementPlan_description(ctx, field, obj) + case "version": + out.Values[i] = ec._EntitlementPlan_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "metadata": + out.Values[i] = ec._EntitlementPlan_metadata(ctx, field, obj) + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._EntitlementPlan_owner(ctx, field, obj) + return res } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "entitlements": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._EntitlementPlan_entitlements(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - 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 + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "baseFeatures": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._EntitlementPlan_baseFeatures(ctx, field, obj) + return res } - it.CreatedByHasSuffix = data - case "createdByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._EntitlementPlan_events(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - 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 + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "features": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._EntitlementPlan_features(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - 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 + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanBulkCreatePayloadImplementors = []string{"EntitlementPlanBulkCreatePayload"} + +func (ec *executionContext) _EntitlementPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanBulkCreatePayload") + case "entitlementPlans": + out.Values[i] = ec._EntitlementPlanBulkCreatePayload_entitlementPlans(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanConnectionImplementors = []string{"EntitlementPlanConnection"} + +func (ec *executionContext) _EntitlementPlanConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanConnection") + case "edges": + out.Values[i] = ec._EntitlementPlanConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EntitlementPlanConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "totalCount": + out.Values[i] = ec._EntitlementPlanConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanCreatePayloadImplementors = []string{"EntitlementPlanCreatePayload"} + +func (ec *executionContext) _EntitlementPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanCreatePayload") + case "entitlementPlan": + out.Values[i] = ec._EntitlementPlanCreatePayload_entitlementPlan(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanDeletePayloadImplementors = []string{"EntitlementPlanDeletePayload"} + +func (ec *executionContext) _EntitlementPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanDeletePayload") + case "deletedID": + out.Values[i] = ec._EntitlementPlanDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanEdgeImplementors = []string{"EntitlementPlanEdge"} + +func (ec *executionContext) _EntitlementPlanEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanEdge") + case "node": + out.Values[i] = ec._EntitlementPlanEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EntitlementPlanEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanFeatureImplementors = []string{"EntitlementPlanFeature", "Node"} + +func (ec *executionContext) _EntitlementPlanFeature(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanFeature) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanFeature") + case "id": + out.Values[i] = ec._EntitlementPlanFeature_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._EntitlementPlanFeature_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._EntitlementPlanFeature_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._EntitlementPlanFeature_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._EntitlementPlanFeature_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._EntitlementPlanFeature_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._EntitlementPlanFeature_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._EntitlementPlanFeature_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._EntitlementPlanFeature_ownerID(ctx, field, obj) + case "metadata": + out.Values[i] = ec._EntitlementPlanFeature_metadata(ctx, field, obj) + case "planID": + out.Values[i] = ec._EntitlementPlanFeature_planID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "featureID": + out.Values[i] = ec._EntitlementPlanFeature_featureID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - 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 + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._EntitlementPlanFeature_owner(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.UpdatedByHasSuffix = data - case "updatedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "plan": + 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._EntitlementPlanFeature_plan(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - it.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - 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 + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "feature": + 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._EntitlementPlanFeature_feature(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._EntitlementPlanFeature_events(ctx, field, obj) + return res } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanFeatureBulkCreatePayloadImplementors = []string{"EntitlementPlanFeatureBulkCreatePayload"} + +func (ec *executionContext) _EntitlementPlanFeatureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanFeatureBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureBulkCreatePayload") + case "entitlementPlanFeatures": + out.Values[i] = ec._EntitlementPlanFeatureBulkCreatePayload_entitlementPlanFeatures(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanFeatureConnectionImplementors = []string{"EntitlementPlanFeatureConnection"} + +func (ec *executionContext) _EntitlementPlanFeatureConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanFeatureConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureConnection") + case "edges": + out.Values[i] = ec._EntitlementPlanFeatureConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EntitlementPlanFeatureConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._EntitlementPlanFeatureConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanFeatureCreatePayloadImplementors = []string{"EntitlementPlanFeatureCreatePayload"} + +func (ec *executionContext) _EntitlementPlanFeatureCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanFeatureCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureCreatePayload") + case "entitlementPlanFeature": + out.Values[i] = ec._EntitlementPlanFeatureCreatePayload_entitlementPlanFeature(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanFeatureDeletePayloadImplementors = []string{"EntitlementPlanFeatureDeletePayload"} + +func (ec *executionContext) _EntitlementPlanFeatureDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanFeatureDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureDeletePayload") + case "deletedID": + out.Values[i] = ec._EntitlementPlanFeatureDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanFeatureEdgeImplementors = []string{"EntitlementPlanFeatureEdge"} + +func (ec *executionContext) _EntitlementPlanFeatureEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanFeatureEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureEdge") + case "node": + out.Values[i] = ec._EntitlementPlanFeatureEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EntitlementPlanFeatureEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanFeatureHistoryImplementors = []string{"EntitlementPlanFeatureHistory", "Node"} + +func (ec *executionContext) _EntitlementPlanFeatureHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanFeatureHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureHistory") + case "id": + out.Values[i] = ec._EntitlementPlanFeatureHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._EntitlementPlanFeatureHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._EntitlementPlanFeatureHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._EntitlementPlanFeatureHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtNotNil = data + case "createdAt": + out.Values[i] = ec._EntitlementPlanFeatureHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._EntitlementPlanFeatureHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._EntitlementPlanFeatureHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._EntitlementPlanFeatureHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._EntitlementPlanFeatureHistory_deletedAt(ctx, field, obj) case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + out.Values[i] = ec._EntitlementPlanFeatureHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._EntitlementPlanFeatureHistory_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._EntitlementPlanFeatureHistory_ownerID(ctx, field, obj) + case "metadata": + out.Values[i] = ec._EntitlementPlanFeatureHistory_metadata(ctx, field, obj) + case "planID": + out.Values[i] = ec._EntitlementPlanFeatureHistory_planID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "featureID": + out.Values[i] = ec._EntitlementPlanFeatureHistory_featureID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanFeatureHistoryConnectionImplementors = []string{"EntitlementPlanFeatureHistoryConnection"} + +func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanFeatureHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureHistoryConnection") + case "edges": + out.Values[i] = ec._EntitlementPlanFeatureHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EntitlementPlanFeatureHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._EntitlementPlanFeatureHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanFeatureHistoryEdgeImplementors = []string{"EntitlementPlanFeatureHistoryEdge"} + +func (ec *executionContext) _EntitlementPlanFeatureHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanFeatureHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureHistoryEdge") + case "node": + out.Values[i] = ec._EntitlementPlanFeatureHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EntitlementPlanFeatureHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanFeatureSearchResultImplementors = []string{"EntitlementPlanFeatureSearchResult", "SearchResult"} + +func (ec *executionContext) _EntitlementPlanFeatureSearchResult(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanFeatureSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureSearchResult") + case "entitlementPlanFeatures": + out.Values[i] = ec._EntitlementPlanFeatureSearchResult_entitlementPlanFeatures(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanFeatureUpdatePayloadImplementors = []string{"EntitlementPlanFeatureUpdatePayload"} + +func (ec *executionContext) _EntitlementPlanFeatureUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanFeatureUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureUpdatePayload") + case "entitlementPlanFeature": + out.Values[i] = ec._EntitlementPlanFeatureUpdatePayload_entitlementPlanFeature(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanHistoryImplementors = []string{"EntitlementPlanHistory", "Node"} + +func (ec *executionContext) _EntitlementPlanHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanHistory") + case "id": + out.Values[i] = ec._EntitlementPlanHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._EntitlementPlanHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._EntitlementPlanHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._EntitlementPlanHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._EntitlementPlanHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._EntitlementPlanHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._EntitlementPlanHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._EntitlementPlanHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._EntitlementPlanHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._EntitlementPlanHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._EntitlementPlanHistory_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._EntitlementPlanHistory_ownerID(ctx, field, obj) + case "displayName": + out.Values[i] = ec._EntitlementPlanHistory_displayName(ctx, field, obj) + case "name": + out.Values[i] = ec._EntitlementPlanHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "description": + out.Values[i] = ec._EntitlementPlanHistory_description(ctx, field, obj) + case "version": + out.Values[i] = ec._EntitlementPlanHistory_version(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "metadata": + out.Values[i] = ec._EntitlementPlanHistory_metadata(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanHistoryConnectionImplementors = []string{"EntitlementPlanHistoryConnection"} + +func (ec *executionContext) _EntitlementPlanHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanHistoryConnection") + case "edges": + out.Values[i] = ec._EntitlementPlanHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EntitlementPlanHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._EntitlementPlanHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanHistoryEdgeImplementors = []string{"EntitlementPlanHistoryEdge"} + +func (ec *executionContext) _EntitlementPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanHistoryEdge") + case "node": + out.Values[i] = ec._EntitlementPlanHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EntitlementPlanHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanSearchResultImplementors = []string{"EntitlementPlanSearchResult", "SearchResult"} + +func (ec *executionContext) _EntitlementPlanSearchResult(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanSearchResult") + case "entitlementPlans": + out.Values[i] = ec._EntitlementPlanSearchResult_entitlementPlans(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementPlanUpdatePayloadImplementors = []string{"EntitlementPlanUpdatePayload"} + +func (ec *executionContext) _EntitlementPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementPlanUpdatePayload") + case "entitlementPlan": + out.Values[i] = ec._EntitlementPlanUpdatePayload_entitlementPlan(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementSearchResultImplementors = []string{"EntitlementSearchResult", "SearchResult"} + +func (ec *executionContext) _EntitlementSearchResult(ctx context.Context, sel ast.SelectionSet, obj *EntitlementSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementSearchResult") + case "entitlements": + out.Values[i] = ec._EntitlementSearchResult_entitlements(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitlementUpdatePayloadImplementors = []string{"EntitlementUpdatePayload"} + +func (ec *executionContext) _EntitlementUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitlementUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitlementUpdatePayload") + case "entitlement": + out.Values[i] = ec._EntitlementUpdatePayload_entitlement(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityImplementors = []string{"Entity", "Node"} + +func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, obj *generated.Entity) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Entity") + case "id": + out.Values[i] = ec._Entity_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - 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 + case "createdAt": + out.Values[i] = ec._Entity_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Entity_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Entity_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Entity_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._Entity_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._Entity_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Entity_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Entity_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._Entity_name(ctx, field, obj) + case "displayName": + out.Values[i] = ec._Entity_displayName(ctx, field, obj) + case "description": + out.Values[i] = ec._Entity_description(ctx, field, obj) + case "domains": + out.Values[i] = ec._Entity_domains(ctx, field, obj) + case "entityTypeID": + out.Values[i] = ec._Entity_entityTypeID(ctx, field, obj) + case "status": + out.Values[i] = ec._Entity_status(ctx, field, obj) + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Entity_owner(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "contacts": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Entity_contacts(ctx, field, obj) + return res } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "documents": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Entity_documents(ctx, field, obj) + return res } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "notes": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Entity_notes(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - 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 + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "files": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Entity_files(ctx, field, obj) + return res } - it.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "entityType": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Entity_entityType(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - 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 + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityBulkCreatePayloadImplementors = []string{"EntityBulkCreatePayload"} + +func (ec *executionContext) _EntityBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityBulkCreatePayload") + case "entities": + out.Values[i] = ec._EntityBulkCreatePayload_entities(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityConnectionImplementors = []string{"EntityConnection"} + +func (ec *executionContext) _EntityConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityConnection") + case "edges": + out.Values[i] = ec._EntityConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EntityConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "totalCount": + out.Values[i] = ec._EntityConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityCreatePayloadImplementors = []string{"EntityCreatePayload"} + +func (ec *executionContext) _EntityCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityCreatePayload") + case "entity": + out.Values[i] = ec._EntityCreatePayload_entity(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityDeletePayloadImplementors = []string{"EntityDeletePayload"} + +func (ec *executionContext) _EntityDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityDeletePayload") + case "deletedID": + out.Values[i] = ec._EntityDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityEdgeImplementors = []string{"EntityEdge"} + +func (ec *executionContext) _EntityEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityEdge") + case "node": + out.Values[i] = ec._EntityEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EntityEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityHistoryImplementors = []string{"EntityHistory", "Node"} + +func (ec *executionContext) _EntityHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityHistory") + case "id": + out.Values[i] = ec._EntityHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._EntityHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._EntityHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._EntityHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._EntityHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._EntityHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._EntityHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._EntityHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._EntityHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._EntityHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._EntityHistory_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._EntityHistory_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._EntityHistory_name(ctx, field, obj) + case "displayName": + out.Values[i] = ec._EntityHistory_displayName(ctx, field, obj) + case "description": + out.Values[i] = ec._EntityHistory_description(ctx, field, obj) + case "domains": + out.Values[i] = ec._EntityHistory_domains(ctx, field, obj) + case "entityTypeID": + out.Values[i] = ec._EntityHistory_entityTypeID(ctx, field, obj) + case "status": + out.Values[i] = ec._EntityHistory_status(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityHistoryConnectionImplementors = []string{"EntityHistoryConnection"} + +func (ec *executionContext) _EntityHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityHistoryConnection") + case "edges": + out.Values[i] = ec._EntityHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EntityHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._EntityHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityHistoryEdgeImplementors = []string{"EntityHistoryEdge"} + +func (ec *executionContext) _EntityHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityHistoryEdge") + case "node": + out.Values[i] = ec._EntityHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EntityHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entitySearchResultImplementors = []string{"EntitySearchResult", "SearchResult"} + +func (ec *executionContext) _EntitySearchResult(ctx context.Context, sel ast.SelectionSet, obj *EntitySearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitySearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitySearchResult") + case "entities": + out.Values[i] = ec._EntitySearchResult_entities(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityTypeImplementors = []string{"EntityType", "Node"} + +func (ec *executionContext) _EntityType(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityType) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityType") + case "id": + out.Values[i] = ec._EntityType_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - 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 + case "createdAt": + out.Values[i] = ec._EntityType_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._EntityType_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._EntityType_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._EntityType_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._EntityType_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._EntityType_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._EntityType_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._EntityType_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._EntityType_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - 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 + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._EntityType_owner(ctx, field, obj) + return res } - it.NameContainsFold = data - case "destinationURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DestinationURL = data - case "destinationURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "entities": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._EntityType_entities(ctx, field, obj) + return res } - it.DestinationURLNEQ = data - case "destinationURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DestinationURLIn = data - case "destinationURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityTypeBulkCreatePayloadImplementors = []string{"EntityTypeBulkCreatePayload"} + +func (ec *executionContext) _EntityTypeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeBulkCreatePayload") + case "entityTypes": + out.Values[i] = ec._EntityTypeBulkCreatePayload_entityTypes(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityTypeConnectionImplementors = []string{"EntityTypeConnection"} + +func (ec *executionContext) _EntityTypeConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeConnection") + case "edges": + out.Values[i] = ec._EntityTypeConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EntityTypeConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLNotIn = data - case "destinationURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._EntityTypeConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLGT = data - case "destinationURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityTypeCreatePayloadImplementors = []string{"EntityTypeCreatePayload"} + +func (ec *executionContext) _EntityTypeCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeCreatePayload") + case "entityType": + out.Values[i] = ec._EntityTypeCreatePayload_entityType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLGTE = data - case "destinationURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityTypeDeletePayloadImplementors = []string{"EntityTypeDeletePayload"} + +func (ec *executionContext) _EntityTypeDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeDeletePayload") + case "deletedID": + out.Values[i] = ec._EntityTypeDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLLT = data - case "destinationURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityTypeEdgeImplementors = []string{"EntityTypeEdge"} + +func (ec *executionContext) _EntityTypeEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeEdge") + case "node": + out.Values[i] = ec._EntityTypeEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EntityTypeEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLLTE = data - case "destinationURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityTypeHistoryImplementors = []string{"EntityTypeHistory", "Node"} + +func (ec *executionContext) _EntityTypeHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeHistory") + case "id": + out.Values[i] = ec._EntityTypeHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLContains = data - case "destinationURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._EntityTypeHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLHasPrefix = data - case "destinationURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._EntityTypeHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._EntityTypeHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLHasSuffix = data - case "destinationURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._EntityTypeHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._EntityTypeHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._EntityTypeHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._EntityTypeHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._EntityTypeHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._EntityTypeHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._EntityTypeHistory_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._EntityTypeHistory_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._EntityTypeHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLEqualFold = data - case "destinationURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityTypeHistoryConnectionImplementors = []string{"EntityTypeHistoryConnection"} + +func (ec *executionContext) _EntityTypeHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeHistoryConnection") + case "edges": + out.Values[i] = ec._EntityTypeHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EntityTypeHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLContainsFold = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._EntityTypeHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.Enabled = data - case "enabledNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabledNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityTypeHistoryEdgeImplementors = []string{"EntityTypeHistoryEdge"} + +func (ec *executionContext) _EntityTypeHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeHistoryEdge") + case "node": + out.Values[i] = ec._EntityTypeHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EntityTypeHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.EnabledNEQ = data - case "failures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failures")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityTypeSearchResultImplementors = []string{"EntityTypeSearchResult", "SearchResult"} + +func (ec *executionContext) _EntityTypeSearchResult(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeSearchResult") + case "entityTypes": + out.Values[i] = ec._EntityTypeSearchResult_entityTypes(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityTypeUpdatePayloadImplementors = []string{"EntityTypeUpdatePayload"} + +func (ec *executionContext) _EntityTypeUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeUpdatePayload") + case "entityType": + out.Values[i] = ec._EntityTypeUpdatePayload_entityType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.Failures = data - case "failuresNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresNEQ")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var entityUpdatePayloadImplementors = []string{"EntityUpdatePayload"} + +func (ec *executionContext) _EntityUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityUpdatePayload") + case "entity": + out.Values[i] = ec._EntityUpdatePayload_entity(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.FailuresNEQ = data - case "failuresIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresIn")) - data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var eventImplementors = []string{"Event", "Node"} + +func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, obj *generated.Event) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Event") + case "id": + out.Values[i] = ec._Event_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.FailuresIn = data - case "failuresNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresNotIn")) - data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._Event_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Event_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Event_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Event_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Event_tags(ctx, field, obj) + case "eventID": + out.Values[i] = ec._Event_eventID(ctx, field, obj) + case "correlationID": + out.Values[i] = ec._Event_correlationID(ctx, field, obj) + case "eventType": + out.Values[i] = ec._Event_eventType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.FailuresNotIn = data - case "failuresGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresGT")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err + case "metadata": + out.Values[i] = ec._Event_metadata(ctx, field, obj) + case "user": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_user(ctx, field, obj) + return res } - it.FailuresGT = data - case "failuresGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresGTE")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.FailuresGTE = data - case "failuresLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresLT")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "group": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_group(ctx, field, obj) + return res } - it.FailuresLT = data - case "failuresLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresLTE")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.FailuresLTE = data - case "failuresIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "integration": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_integration(ctx, field, obj) + return res } - it.FailuresIsNil = data - case "failuresNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.FailuresNotNil = data - case "lastError": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastError")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "organization": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_organization(ctx, field, obj) + return res } - it.LastError = data - case "lastErrorNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastErrorNEQ = data - case "lastErrorIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "invite": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_invite(ctx, field, obj) + return res } - it.LastErrorIn = data - case "lastErrorNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastErrorNotIn = data - case "lastErrorGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "feature": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_feature(ctx, field, obj) + return res } - it.LastErrorGT = data - case "lastErrorGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastErrorGTE = data - case "lastErrorLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "entitlementplan": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_entitlementplan(ctx, field, obj) + return res } - it.LastErrorLT = data - case "lastErrorLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastErrorLTE = data - case "lastErrorContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "entitlementplanfeature": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_entitlementplanfeature(ctx, field, obj) + return res } - it.LastErrorContains = data - case "lastErrorHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastErrorHasPrefix = data - case "lastErrorHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "personalAccessToken": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_personalAccessToken(ctx, field, obj) + return res } - it.LastErrorHasSuffix = data - case "lastErrorIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastErrorIsNil = data - case "lastErrorNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "oauth2token": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_oauth2token(ctx, field, obj) + return res } - it.LastErrorNotNil = data - case "lastErrorEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastErrorEqualFold = data - case "lastErrorContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "hush": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_hush(ctx, field, obj) + return res } - it.LastErrorContainsFold = data - case "lastResponse": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponse")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastResponse = data - case "lastResponseNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "orgmembership": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_orgmembership(ctx, field, obj) + return res } - it.LastResponseNEQ = data - case "lastResponseIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastResponseIn = data - case "lastResponseNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "groupmembership": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_groupmembership(ctx, field, obj) + return res } - it.LastResponseNotIn = data - case "lastResponseGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastResponseGT = data - case "lastResponseGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "entitlement": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_entitlement(ctx, field, obj) + return res } - it.LastResponseGTE = data - case "lastResponseLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastResponseLT = data - case "lastResponseLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "webhook": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_webhook(ctx, field, obj) + return res } - it.LastResponseLTE = data - case "lastResponseContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastResponseContains = data - case "lastResponseHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "subscriber": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_subscriber(ctx, field, obj) + return res } - it.LastResponseHasPrefix = data - case "lastResponseHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastResponseHasSuffix = data - case "lastResponseIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "file": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Event_file(ctx, field, obj) + return res } - it.LastResponseIsNil = data - case "lastResponseNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastResponseNotNil = data - case "lastResponseEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var eventBulkCreatePayloadImplementors = []string{"EventBulkCreatePayload"} + +func (ec *executionContext) _EventBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EventBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventBulkCreatePayload") + case "events": + out.Values[i] = ec._EventBulkCreatePayload_events(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var eventConnectionImplementors = []string{"EventConnection"} + +func (ec *executionContext) _EventConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EventConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventConnection") + case "edges": + out.Values[i] = ec._EventConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EventConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastResponseEqualFold = data - case "lastResponseContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._EventConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastResponseContainsFold = data + default: + panic("unknown field " + strconv.Quote(field.Name)) } } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - return it, nil + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out } -func (ec *executionContext) unmarshalInputWebhookOrder(ctx context.Context, obj interface{}) (generated.WebhookOrder, error) { - var it generated.WebhookOrder - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v +var eventCreatePayloadImplementors = []string{"EventCreatePayload"} + +func (ec *executionContext) _EventCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EventCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventCreatePayload") + case "event": + out.Values[i] = ec._EventCreatePayload_event(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null } - if _, present := asMap["direction"]; !present { - asMap["direction"] = "ASC" + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) } - 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.unmarshalNWebhookOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookOrderField(ctx, v) - if err != nil { - return it, err + return out +} + +var eventDeletePayloadImplementors = []string{"EventDeletePayload"} + +func (ec *executionContext) _EventDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EventDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventDeletePayload") + case "deletedID": + out.Values[i] = ec._EventDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.Field = data + default: + panic("unknown field " + strconv.Quote(field.Name)) } } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - return it, nil -} + atomic.AddInt32(&ec.deferred, int32(len(deferred))) -func (ec *executionContext) unmarshalInputWebhookWhereInput(ctx context.Context, obj interface{}) (generated.WebhookWhereInput, error) { - var it generated.WebhookWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idGT", "idGTE", "idLT", "idLTE", "idEqualFold", "idContainsFold", "createdAt", "createdAtNEQ", "createdAtIn", "createdAtNotIn", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtNEQ", "updatedAtIn", "updatedAtNotIn", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByGT", "createdByGTE", "createdByLT", "createdByLTE", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByGT", "updatedByGTE", "updatedByLT", "updatedByLTE", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "deletedAt", "deletedAtNEQ", "deletedAtIn", "deletedAtNotIn", "deletedAtGT", "deletedAtGTE", "deletedAtLT", "deletedAtLTE", "deletedAtIsNil", "deletedAtNotNil", "deletedBy", "deletedByNEQ", "deletedByIn", "deletedByNotIn", "deletedByGT", "deletedByGTE", "deletedByLT", "deletedByLTE", "deletedByContains", "deletedByHasPrefix", "deletedByHasSuffix", "deletedByIsNil", "deletedByNotNil", "deletedByEqualFold", "deletedByContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDGT", "ownerIDGTE", "ownerIDLT", "ownerIDLTE", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameGT", "nameGTE", "nameLT", "nameLTE", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "destinationURL", "destinationURLNEQ", "destinationURLIn", "destinationURLNotIn", "destinationURLGT", "destinationURLGTE", "destinationURLLT", "destinationURLLTE", "destinationURLContains", "destinationURLHasPrefix", "destinationURLHasSuffix", "destinationURLEqualFold", "destinationURLContainsFold", "enabled", "enabledNEQ", "failures", "failuresNEQ", "failuresIn", "failuresNotIn", "failuresGT", "failuresGTE", "failuresLT", "failuresLTE", "failuresIsNil", "failuresNotNil", "lastError", "lastErrorNEQ", "lastErrorIn", "lastErrorNotIn", "lastErrorGT", "lastErrorGTE", "lastErrorLT", "lastErrorLTE", "lastErrorContains", "lastErrorHasPrefix", "lastErrorHasSuffix", "lastErrorIsNil", "lastErrorNotNil", "lastErrorEqualFold", "lastErrorContainsFold", "lastResponse", "lastResponseNEQ", "lastResponseIn", "lastResponseNotIn", "lastResponseGT", "lastResponseGTE", "lastResponseLT", "lastResponseLTE", "lastResponseContains", "lastResponseHasPrefix", "lastResponseHasSuffix", "lastResponseIsNil", "lastResponseNotNil", "lastResponseEqualFold", "lastResponseContainsFold", "hasOwner", "hasOwnerWith", "hasEvents", "hasEventsWith", "hasIntegrations", "hasIntegrationsWith"} - 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.unmarshalOWebhookWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInput(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) - data, err := ec.unmarshalOWebhookWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) - data, err := ec.unmarshalOWebhookWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInputᚄ(ctx, v) - if err != nil { - return it, err + return out +} + +var eventEdgeImplementors = []string{"EventEdge"} + +func (ec *executionContext) _EventEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EventEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventEdge") + case "node": + out.Values[i] = ec._EventEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EventEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.Or = data + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var eventHistoryImplementors = []string{"EventHistory", "Node"} + +func (ec *executionContext) _EventHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.EventHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventHistory") case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ID = data - case "idNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNEQ")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDNEQ = data - case "idIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDIn = data - case "idNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idNotIn")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.IDNotIn = data - case "idGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGT = data - case "idGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDGTE = data - case "idLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.IDLT = data - case "idLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + out.Values[i] = ec._EventHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.IDLTE = data - case "idEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("idEqualFold")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._EventHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "ref": + out.Values[i] = ec._EventHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._EventHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.IDContainsFold = data case "createdAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAt = data - case "createdAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNEQ = data - case "createdAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIn = data - case "createdAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotIn = data - case "createdAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGT = data - case "createdAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtGTE = data - case "createdAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLT = data - case "createdAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtLTE = data - case "createdAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtIsNil = data - case "createdAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.CreatedAtNotNil = data + out.Values[i] = ec._EventHistory_createdAt(ctx, field, obj) case "updatedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAt = data - case "updatedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNEQ = data - case "updatedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIn = data - case "updatedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotIn = data - case "updatedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGT = data - case "updatedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtGTE = data - case "updatedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLT = data - case "updatedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtLTE = data - case "updatedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtIsNil = data - case "updatedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err - } - it.UpdatedAtNotNil = data + out.Values[i] = ec._EventHistory_updatedAt(ctx, field, obj) case "createdBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdBy")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedBy = data - case "createdByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByNEQ = data - case "createdByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedByIn = data - case "createdByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.CreatedByNotIn = data - case "createdByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByGT = data - case "createdByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByGTE = data - case "createdByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByLT = data - case "createdByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByLTE = data - case "createdByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CreatedByContains = data - case "createdByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + out.Values[i] = ec._EventHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._EventHistory_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._EventHistory_tags(ctx, field, obj) + case "eventID": + out.Values[i] = ec._EventHistory_eventID(ctx, field, obj) + case "correlationID": + out.Values[i] = ec._EventHistory_correlationID(ctx, field, obj) + case "eventType": + out.Values[i] = ec._EventHistory_eventType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "metadata": + out.Values[i] = ec._EventHistory_metadata(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var eventHistoryConnectionImplementors = []string{"EventHistoryConnection"} + +func (ec *executionContext) _EventHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EventHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventHistoryConnection") + case "edges": + out.Values[i] = ec._EventHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EventHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.CreatedByHasSuffix = data - case "createdByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._EventHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.CreatedByIsNil = data - case "createdByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createdByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var eventHistoryEdgeImplementors = []string{"EventHistoryEdge"} + +func (ec *executionContext) _EventHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EventHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventHistoryEdge") + case "node": + out.Values[i] = ec._EventHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EventHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var eventSearchResultImplementors = []string{"EventSearchResult", "SearchResult"} + +func (ec *executionContext) _EventSearchResult(ctx context.Context, sel ast.SelectionSet, obj *EventSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventSearchResult") + case "events": + out.Values[i] = ec._EventSearchResult_events(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var eventUpdatePayloadImplementors = []string{"EventUpdatePayload"} + +func (ec *executionContext) _EventUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EventUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventUpdatePayload") + case "event": + out.Values[i] = ec._EventUpdatePayload_event(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var featureImplementors = []string{"Feature", "Node"} + +func (ec *executionContext) _Feature(ctx context.Context, sel ast.SelectionSet, obj *generated.Feature) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, featureImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Feature") + case "id": + out.Values[i] = ec._Feature_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.CreatedByContainsFold = data + case "createdAt": + out.Values[i] = ec._Feature_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Feature_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Feature_createdBy(ctx, field, obj) case "updatedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + out.Values[i] = ec._Feature_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._Feature_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._Feature_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Feature_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Feature_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._Feature_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - 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 + case "displayName": + out.Values[i] = ec._Feature_displayName(ctx, field, obj) + case "enabled": + out.Values[i] = ec._Feature_enabled(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - 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 + case "description": + out.Values[i] = ec._Feature_description(ctx, field, obj) + case "metadata": + out.Values[i] = ec._Feature_metadata(ctx, field, obj) + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Feature_owner(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.UpdatedByNotIn = data - case "updatedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "plans": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Feature_plans(ctx, field, obj) + return res } - it.UpdatedByGT = data - case "updatedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.UpdatedByGTE = data - case "updatedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Feature_events(ctx, field, obj) + return res } - it.UpdatedByLT = data - case "updatedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.UpdatedByLTE = data - case "updatedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "features": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Feature_features(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - 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 + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var featureBulkCreatePayloadImplementors = []string{"FeatureBulkCreatePayload"} + +func (ec *executionContext) _FeatureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *FeatureBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, featureBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FeatureBulkCreatePayload") + case "features": + out.Values[i] = ec._FeatureBulkCreatePayload_features(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var featureConnectionImplementors = []string{"FeatureConnection"} + +func (ec *executionContext) _FeatureConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FeatureConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, featureConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FeatureConnection") + case "edges": + out.Values[i] = ec._FeatureConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._FeatureConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.UpdatedByHasSuffix = data - case "updatedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._FeatureConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.UpdatedByIsNil = data - case "updatedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var featureCreatePayloadImplementors = []string{"FeatureCreatePayload"} + +func (ec *executionContext) _FeatureCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *FeatureCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, featureCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FeatureCreatePayload") + case "feature": + out.Values[i] = ec._FeatureCreatePayload_feature(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var featureDeletePayloadImplementors = []string{"FeatureDeletePayload"} + +func (ec *executionContext) _FeatureDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *FeatureDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, featureDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FeatureDeletePayload") + case "deletedID": + out.Values[i] = ec._FeatureDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var featureEdgeImplementors = []string{"FeatureEdge"} + +func (ec *executionContext) _FeatureEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FeatureEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, featureEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FeatureEdge") + case "node": + out.Values[i] = ec._FeatureEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._FeatureEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.UpdatedByContainsFold = data - case "deletedAt": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAt")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var featureHistoryImplementors = []string{"FeatureHistory", "Node"} + +func (ec *executionContext) _FeatureHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.FeatureHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, featureHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FeatureHistory") + case "id": + out.Values[i] = ec._FeatureHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAt = data - case "deletedAtNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNEQ")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._FeatureHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtNEQ = data - case "deletedAtIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._FeatureHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._FeatureHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtIn = data - case "deletedAtNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotIn")) - data, err := ec.unmarshalOTime2ᚕtimeᚐTimeᚄ(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._FeatureHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._FeatureHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._FeatureHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._FeatureHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._FeatureHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._FeatureHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._FeatureHistory_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._FeatureHistory_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._FeatureHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtNotIn = data - case "deletedAtGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + case "displayName": + out.Values[i] = ec._FeatureHistory_displayName(ctx, field, obj) + case "enabled": + out.Values[i] = ec._FeatureHistory_enabled(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtGT = data - case "deletedAtGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtGTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + case "description": + out.Values[i] = ec._FeatureHistory_description(ctx, field, obj) + case "metadata": + out.Values[i] = ec._FeatureHistory_metadata(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var featureHistoryConnectionImplementors = []string{"FeatureHistoryConnection"} + +func (ec *executionContext) _FeatureHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FeatureHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, featureHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FeatureHistoryConnection") + case "edges": + out.Values[i] = ec._FeatureHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._FeatureHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtGTE = data - case "deletedAtLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLT")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._FeatureHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtLT = data - case "deletedAtLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtLTE")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var featureHistoryEdgeImplementors = []string{"FeatureHistoryEdge"} + +func (ec *executionContext) _FeatureHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FeatureHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, featureHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FeatureHistoryEdge") + case "node": + out.Values[i] = ec._FeatureHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._FeatureHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtLTE = data - case "deletedAtIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var featureSearchResultImplementors = []string{"FeatureSearchResult", "SearchResult"} + +func (ec *executionContext) _FeatureSearchResult(ctx context.Context, sel ast.SelectionSet, obj *FeatureSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, featureSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FeatureSearchResult") + case "features": + out.Values[i] = ec._FeatureSearchResult_features(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var featureUpdatePayloadImplementors = []string{"FeatureUpdatePayload"} + +func (ec *executionContext) _FeatureUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *FeatureUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, featureUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FeatureUpdatePayload") + case "feature": + out.Values[i] = ec._FeatureUpdatePayload_feature(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DeletedAtIsNil = data - case "deletedAtNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedAtNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var fileImplementors = []string{"File", "Node"} + +func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj *generated.File) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fileImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("File") + case "id": + out.Values[i] = ec._File_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.DeletedAtNotNil = data + case "createdAt": + out.Values[i] = ec._File_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._File_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._File_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._File_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._File_deletedAt(ctx, field, obj) case "deletedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedBy")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + out.Values[i] = ec._File_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._File_tags(ctx, field, obj) + case "providedFileName": + out.Values[i] = ec._File_providedFileName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.DeletedBy = data - case "deletedByNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "providedFileExtension": + out.Values[i] = ec._File_providedFileExtension(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.DeletedByNEQ = data - case "deletedByIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + case "providedFileSize": + out.Values[i] = ec._File_providedFileSize(ctx, field, obj) + case "persistedFileSize": + out.Values[i] = ec._File_persistedFileSize(ctx, field, obj) + case "detectedMimeType": + out.Values[i] = ec._File_detectedMimeType(ctx, field, obj) + case "md5Hash": + out.Values[i] = ec._File_md5Hash(ctx, field, obj) + case "detectedContentType": + out.Values[i] = ec._File_detectedContentType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.DeletedByIn = data - case "deletedByNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + case "storeKey": + out.Values[i] = ec._File_storeKey(ctx, field, obj) + case "categoryType": + out.Values[i] = ec._File_categoryType(ctx, field, obj) + case "uri": + out.Values[i] = ec._File_uri(ctx, field, obj) + case "storageScheme": + out.Values[i] = ec._File_storageScheme(ctx, field, obj) + case "storageVolume": + out.Values[i] = ec._File_storageVolume(ctx, field, obj) + case "storagePath": + out.Values[i] = ec._File_storagePath(ctx, field, obj) + case "user": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._File_user(ctx, field, obj) + return res } - it.DeletedByNotIn = data - case "deletedByGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DeletedByGT = data - case "deletedByGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "organization": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._File_organization(ctx, field, obj) + return res } - it.DeletedByGTE = data - case "deletedByLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DeletedByLT = data - case "deletedByLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "group": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._File_group(ctx, field, obj) + return res } - it.DeletedByLTE = data - case "deletedByContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DeletedByContains = data - case "deletedByHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "contact": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._File_contact(ctx, field, obj) + return res } - it.DeletedByHasPrefix = data - case "deletedByHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DeletedByHasSuffix = data - case "deletedByIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "entity": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._File_entity(ctx, field, obj) + return res } - it.DeletedByIsNil = data - case "deletedByNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DeletedByNotNil = data - case "deletedByEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "usersetting": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._File_usersetting(ctx, field, obj) + return res } - it.DeletedByEqualFold = data - case "deletedByContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("deletedByContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DeletedByContainsFold = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "organizationsetting": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._File_organizationsetting(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - 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 + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "template": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._File_template(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.OwnerIDNotIn = data - case "ownerIDGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "documentdata": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._File_documentdata(ctx, field, obj) + return res } - it.OwnerIDGT = data - case "ownerIDGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDGTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.OwnerIDGTE = data - case "ownerIDLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLT")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._File_events(ctx, field, obj) + return res } - it.OwnerIDLT = data - case "ownerIDLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDLTE")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var fileConnectionImplementors = []string{"FileConnection"} + +func (ec *executionContext) _FileConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FileConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fileConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FileConnection") + case "edges": + out.Values[i] = ec._FileConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._FileConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.OwnerIDLTE = data - case "ownerIDContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._FileConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var fileDeletePayloadImplementors = []string{"FileDeletePayload"} + +func (ec *executionContext) _FileDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *FileDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fileDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FileDeletePayload") + case "deletedID": + out.Values[i] = ec._FileDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var fileEdgeImplementors = []string{"FileEdge"} + +func (ec *executionContext) _FileEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FileEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fileEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FileEdge") + case "node": + out.Values[i] = ec._FileEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._FileEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.OwnerIDHasSuffix = data - case "ownerIDIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var fileHistoryImplementors = []string{"FileHistory", "Node"} + +func (ec *executionContext) _FileHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.FileHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fileHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FileHistory") + case "id": + out.Values[i] = ec._FileHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.OwnerIDIsNil = data - case "ownerIDNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._FileHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "ref": + out.Values[i] = ec._FileHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._FileHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "createdAt": + out.Values[i] = ec._FileHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._FileHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._FileHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._FileHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._FileHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._FileHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._FileHistory_tags(ctx, field, obj) + case "providedFileName": + out.Values[i] = ec._FileHistory_providedFileName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "providedFileExtension": + out.Values[i] = ec._FileHistory_providedFileExtension(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "providedFileSize": + out.Values[i] = ec._FileHistory_providedFileSize(ctx, field, obj) + case "persistedFileSize": + out.Values[i] = ec._FileHistory_persistedFileSize(ctx, field, obj) + case "detectedMimeType": + out.Values[i] = ec._FileHistory_detectedMimeType(ctx, field, obj) + case "md5Hash": + out.Values[i] = ec._FileHistory_md5Hash(ctx, field, obj) + case "detectedContentType": + out.Values[i] = ec._FileHistory_detectedContentType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "storeKey": + out.Values[i] = ec._FileHistory_storeKey(ctx, field, obj) + case "categoryType": + out.Values[i] = ec._FileHistory_categoryType(ctx, field, obj) + case "uri": + out.Values[i] = ec._FileHistory_uri(ctx, field, obj) + case "storageScheme": + out.Values[i] = ec._FileHistory_storageScheme(ctx, field, obj) + case "storageVolume": + out.Values[i] = ec._FileHistory_storageVolume(ctx, field, obj) + case "storagePath": + out.Values[i] = ec._FileHistory_storagePath(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var fileHistoryConnectionImplementors = []string{"FileHistoryConnection"} + +func (ec *executionContext) _FileHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FileHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fileHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FileHistoryConnection") + case "edges": + out.Values[i] = ec._FileHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._FileHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - 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 + case "totalCount": + out.Values[i] = ec._FileHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.NameNotIn = data - case "nameGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var fileHistoryEdgeImplementors = []string{"FileHistoryEdge"} + +func (ec *executionContext) _FileHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FileHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fileHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FileHistoryEdge") + case "node": + out.Values[i] = ec._FileHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._FileHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.NameGT = data - case "nameGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var fileSearchResultImplementors = []string{"FileSearchResult", "SearchResult"} + +func (ec *executionContext) _FileSearchResult(ctx context.Context, sel ast.SelectionSet, obj *FileSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fileSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FileSearchResult") + case "files": + out.Values[i] = ec._FileSearchResult_files(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupImplementors = []string{"Group", "Node"} + +func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, obj *generated.Group) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Group") + case "id": + out.Values[i] = ec._Group_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.NameGTE = data - case "nameLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._Group_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Group_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Group_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Group_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._Group_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._Group_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Group_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Group_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._Group_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.NameLT = data - case "nameLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "description": + out.Values[i] = ec._Group_description(ctx, field, obj) + case "gravatarLogoURL": + out.Values[i] = ec._Group_gravatarLogoURL(ctx, field, obj) + case "logoURL": + out.Values[i] = ec._Group_logoURL(ctx, field, obj) + case "displayName": + out.Values[i] = ec._Group_displayName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.NameLTE = data - case "nameContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nameContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Group_owner(ctx, field, obj) + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - 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 + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "setting": + 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_setting(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - 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 + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - 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 + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "users": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Group_users(ctx, field, obj) + return res } - it.NameContainsFold = data - case "destinationURL": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURL")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DestinationURL = data - case "destinationURLNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Group_events(ctx, field, obj) + return res } - it.DestinationURLNEQ = data - case "destinationURLIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DestinationURLIn = data - case "destinationURLNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "integrations": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Group_integrations(ctx, field, obj) + return res } - it.DestinationURLNotIn = data - case "destinationURLGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DestinationURLGT = data - case "destinationURLGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "files": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Group_files(ctx, field, obj) + return res } - it.DestinationURLGTE = data - case "destinationURLLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DestinationURLLT = data - case "destinationURLLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "members": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Group_members(ctx, field, obj) + return res } - it.DestinationURLLTE = data - case "destinationURLContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.DestinationURLContains = data - case "destinationURLHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupBulkCreatePayloadImplementors = []string{"GroupBulkCreatePayload"} + +func (ec *executionContext) _GroupBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupBulkCreatePayload") + case "groups": + out.Values[i] = ec._GroupBulkCreatePayload_groups(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupConnectionImplementors = []string{"GroupConnection"} + +func (ec *executionContext) _GroupConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupConnection") + case "edges": + out.Values[i] = ec._GroupConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._GroupConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLHasPrefix = data - case "destinationURLHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._GroupConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLHasSuffix = data - case "destinationURLEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupCreatePayloadImplementors = []string{"GroupCreatePayload"} + +func (ec *executionContext) _GroupCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupCreatePayload") + case "group": + out.Values[i] = ec._GroupCreatePayload_group(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLEqualFold = data - case "destinationURLContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("destinationURLContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupDeletePayloadImplementors = []string{"GroupDeletePayload"} + +func (ec *executionContext) _GroupDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupDeletePayload") + case "deletedID": + out.Values[i] = ec._GroupDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.DestinationURLContainsFold = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupEdgeImplementors = []string{"GroupEdge"} + +func (ec *executionContext) _GroupEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupEdge") + case "node": + out.Values[i] = ec._GroupEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._GroupEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupHistoryImplementors = []string{"GroupHistory", "Node"} + +func (ec *executionContext) _GroupHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupHistory") + case "id": + out.Values[i] = ec._GroupHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.Enabled = data - case "enabledNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabledNEQ")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._GroupHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.EnabledNEQ = data - case "failures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failures")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._GroupHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._GroupHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.Failures = data - case "failuresNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresNEQ")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._GroupHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._GroupHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._GroupHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._GroupHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._GroupHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._GroupHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._GroupHistory_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._GroupHistory_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._GroupHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.FailuresNEQ = data - case "failuresIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresIn")) - data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) - if err != nil { - return it, err + case "description": + out.Values[i] = ec._GroupHistory_description(ctx, field, obj) + case "gravatarLogoURL": + out.Values[i] = ec._GroupHistory_gravatarLogoURL(ctx, field, obj) + case "logoURL": + out.Values[i] = ec._GroupHistory_logoURL(ctx, field, obj) + case "displayName": + out.Values[i] = ec._GroupHistory_displayName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.FailuresIn = data - case "failuresNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresNotIn")) - data, err := ec.unmarshalOInt2ᚕintᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupHistoryConnectionImplementors = []string{"GroupHistoryConnection"} + +func (ec *executionContext) _GroupHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupHistoryConnection") + case "edges": + out.Values[i] = ec._GroupHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._GroupHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.FailuresNotIn = data - case "failuresGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresGT")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._GroupHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.FailuresGT = data - case "failuresGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresGTE")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupHistoryEdgeImplementors = []string{"GroupHistoryEdge"} + +func (ec *executionContext) _GroupHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupHistoryEdge") + case "node": + out.Values[i] = ec._GroupHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._GroupHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.FailuresGTE = data - case "failuresLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresLT")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupMembershipImplementors = []string{"GroupMembership", "Node"} + +func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembership) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembership") + case "id": + out.Values[i] = ec._GroupMembership_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.FailuresLT = data - case "failuresLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresLTE")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._GroupMembership_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._GroupMembership_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._GroupMembership_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._GroupMembership_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._GroupMembership_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._GroupMembership_deletedBy(ctx, field, obj) + case "role": + out.Values[i] = ec._GroupMembership_role(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.FailuresLTE = data - case "failuresIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "groupID": + out.Values[i] = ec._GroupMembership_groupID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.FailuresIsNil = data - case "failuresNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("failuresNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "userID": + out.Values[i] = ec._GroupMembership_userID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.FailuresNotNil = data - case "lastError": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastError")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "group": + 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._GroupMembership_group(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - it.LastError = data - case "lastErrorNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastErrorNEQ = data - case "lastErrorIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "user": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._GroupMembership_user(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - it.LastErrorIn = data - case "lastErrorNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastErrorNotIn = data - case "lastErrorGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._GroupMembership_events(ctx, field, obj) + return res } - it.LastErrorGT = data - case "lastErrorGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastErrorGTE = data - case "lastErrorLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupMembershipBulkCreatePayloadImplementors = []string{"GroupMembershipBulkCreatePayload"} + +func (ec *executionContext) _GroupMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupMembershipBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipBulkCreatePayload") + case "groupMemberships": + out.Values[i] = ec._GroupMembershipBulkCreatePayload_groupMemberships(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupMembershipConnectionImplementors = []string{"GroupMembershipConnection"} + +func (ec *executionContext) _GroupMembershipConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipConnection") + case "edges": + out.Values[i] = ec._GroupMembershipConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._GroupMembershipConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastErrorLT = data - case "lastErrorLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._GroupMembershipConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastErrorLTE = data - case "lastErrorContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupMembershipCreatePayloadImplementors = []string{"GroupMembershipCreatePayload"} + +func (ec *executionContext) _GroupMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupMembershipCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipCreatePayload") + case "groupMembership": + out.Values[i] = ec._GroupMembershipCreatePayload_groupMembership(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastErrorContains = data - case "lastErrorHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupMembershipDeletePayloadImplementors = []string{"GroupMembershipDeletePayload"} + +func (ec *executionContext) _GroupMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupMembershipDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipDeletePayload") + case "deletedID": + out.Values[i] = ec._GroupMembershipDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastErrorHasPrefix = data - case "lastErrorHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupMembershipEdgeImplementors = []string{"GroupMembershipEdge"} + +func (ec *executionContext) _GroupMembershipEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipEdge") + case "node": + out.Values[i] = ec._GroupMembershipEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._GroupMembershipEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastErrorHasSuffix = data - case "lastErrorIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupMembershipHistoryImplementors = []string{"GroupMembershipHistory", "Node"} + +func (ec *executionContext) _GroupMembershipHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipHistory") + case "id": + out.Values[i] = ec._GroupMembershipHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastErrorIsNil = data - case "lastErrorNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._GroupMembershipHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastErrorNotNil = data - case "lastErrorEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._GroupMembershipHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._GroupMembershipHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastErrorEqualFold = data - case "lastErrorContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastErrorContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._GroupMembershipHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._GroupMembershipHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._GroupMembershipHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._GroupMembershipHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._GroupMembershipHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._GroupMembershipHistory_deletedBy(ctx, field, obj) + case "role": + out.Values[i] = ec._GroupMembershipHistory_role(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastErrorContainsFold = data - case "lastResponse": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponse")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "groupID": + out.Values[i] = ec._GroupMembershipHistory_groupID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastResponse = data - case "lastResponseNEQ": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseNEQ")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "userID": + out.Values[i] = ec._GroupMembershipHistory_userID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastResponseNEQ = data - case "lastResponseIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupMembershipHistoryConnectionImplementors = []string{"GroupMembershipHistoryConnection"} + +func (ec *executionContext) _GroupMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipHistoryConnection") + case "edges": + out.Values[i] = ec._GroupMembershipHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._GroupMembershipHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastResponseIn = data - case "lastResponseNotIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseNotIn")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._GroupMembershipHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastResponseNotIn = data - case "lastResponseGT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseGT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupMembershipHistoryEdgeImplementors = []string{"GroupMembershipHistoryEdge"} + +func (ec *executionContext) _GroupMembershipHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipHistoryEdge") + case "node": + out.Values[i] = ec._GroupMembershipHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._GroupMembershipHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastResponseGT = data - case "lastResponseGTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseGTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupMembershipUpdatePayloadImplementors = []string{"GroupMembershipUpdatePayload"} + +func (ec *executionContext) _GroupMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupMembershipUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipUpdatePayload") + case "groupMembership": + out.Values[i] = ec._GroupMembershipUpdatePayload_groupMembership(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastResponseGTE = data - case "lastResponseLT": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseLT")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupSearchResultImplementors = []string{"GroupSearchResult", "SearchResult"} + +func (ec *executionContext) _GroupSearchResult(ctx context.Context, sel ast.SelectionSet, obj *GroupSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSearchResult") + case "groups": + out.Values[i] = ec._GroupSearchResult_groups(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupSettingImplementors = []string{"GroupSetting", "Node"} + +func (ec *executionContext) _GroupSetting(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSetting) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSetting") + case "id": + out.Values[i] = ec._GroupSetting_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.LastResponseLT = data - case "lastResponseLTE": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseLTE")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._GroupSetting_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._GroupSetting_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._GroupSetting_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._GroupSetting_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._GroupSetting_tags(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._GroupSetting_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._GroupSetting_deletedBy(ctx, field, obj) + case "visibility": + out.Values[i] = ec._GroupSetting_visibility(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.LastResponseLTE = data - case "lastResponseContains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseContains")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "joinPolicy": + out.Values[i] = ec._GroupSetting_joinPolicy(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - it.LastResponseContains = data - case "lastResponseHasPrefix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseHasPrefix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + case "syncToSlack": + out.Values[i] = ec._GroupSetting_syncToSlack(ctx, field, obj) + case "syncToGithub": + out.Values[i] = ec._GroupSetting_syncToGithub(ctx, field, obj) + case "groupID": + out.Values[i] = ec._GroupSetting_groupID(ctx, field, obj) + case "group": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._GroupSetting_group(ctx, field, obj) + return res } - it.LastResponseHasPrefix = data - case "lastResponseHasSuffix": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseHasSuffix")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - it.LastResponseHasSuffix = data - case "lastResponseIsNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseIsNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupSettingBulkCreatePayloadImplementors = []string{"GroupSettingBulkCreatePayload"} + +func (ec *executionContext) _GroupSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingBulkCreatePayload") + case "groupSettings": + out.Values[i] = ec._GroupSettingBulkCreatePayload_groupSettings(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupSettingConnectionImplementors = []string{"GroupSettingConnection"} + +func (ec *executionContext) _GroupSettingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingConnection") + case "edges": + out.Values[i] = ec._GroupSettingConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._GroupSettingConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastResponseIsNil = data - case "lastResponseNotNil": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseNotNil")) - data, err := ec.unmarshalOBoolean2bool(ctx, v) - if err != nil { - return it, err + case "totalCount": + out.Values[i] = ec._GroupSettingConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastResponseNotNil = data - case "lastResponseEqualFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseEqualFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupSettingCreatePayloadImplementors = []string{"GroupSettingCreatePayload"} + +func (ec *executionContext) _GroupSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingCreatePayload") + case "groupSetting": + out.Values[i] = ec._GroupSettingCreatePayload_groupSetting(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastResponseEqualFold = data - case "lastResponseContainsFold": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastResponseContainsFold")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupSettingDeletePayloadImplementors = []string{"GroupSettingDeletePayload"} + +func (ec *executionContext) _GroupSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingDeletePayload") + case "deletedID": + out.Values[i] = ec._GroupSettingDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.LastResponseContainsFold = data - case "hasOwner": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupSettingEdgeImplementors = []string{"GroupSettingEdge"} + +func (ec *executionContext) _GroupSettingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingEdge") + case "node": + out.Values[i] = ec._GroupSettingEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._GroupSettingEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasOwner = data - case "hasOwnerWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) - data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) - if err != nil { - return it, err + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupSettingHistoryImplementors = []string{"GroupSettingHistory", "Node"} + +func (ec *executionContext) _GroupSettingHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingHistory") + case "id": + out.Values[i] = ec._GroupSettingHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasOwnerWith = data - case "hasEvents": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEvents")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + case "historyTime": + out.Values[i] = ec._GroupSettingHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasEvents = data - case "hasEventsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEventsWith")) - data, err := ec.unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx, v) - if err != nil { - return it, err + case "ref": + out.Values[i] = ec._GroupSettingHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._GroupSettingHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasEventsWith = data - case "hasIntegrations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrations")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err + case "createdAt": + out.Values[i] = ec._GroupSettingHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._GroupSettingHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._GroupSettingHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._GroupSettingHistory_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._GroupSettingHistory_tags(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._GroupSettingHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._GroupSettingHistory_deletedBy(ctx, field, obj) + case "visibility": + out.Values[i] = ec._GroupSettingHistory_visibility(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasIntegrations = data - case "hasIntegrationsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationsWith")) - data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) - if err != nil { - return it, err + case "joinPolicy": + out.Values[i] = ec._GroupSettingHistory_joinPolicy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - it.HasIntegrationsWith = data + case "syncToSlack": + out.Values[i] = ec._GroupSettingHistory_syncToSlack(ctx, field, obj) + case "syncToGithub": + out.Values[i] = ec._GroupSettingHistory_syncToGithub(ctx, field, obj) + case "groupID": + out.Values[i] = ec._GroupSettingHistory_groupID(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) } } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - return it, nil + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out } -// endregion **************************** input.gotpl ***************************** +var groupSettingHistoryConnectionImplementors = []string{"GroupSettingHistoryConnection"} -// region ************************** interface.gotpl *************************** +func (ec *executionContext) _GroupSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingHistoryConnectionImplementors) -func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj generated.Noder) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case AuditLog: - return ec._AuditLog(ctx, sel, &obj) - case *AuditLog: - if obj == nil { - return graphql.Null - } - return ec._AuditLog(ctx, sel, obj) - case *generated.APIToken: - if obj == nil { - return graphql.Null - } - return ec._APIToken(ctx, sel, obj) - case *generated.Contact: - if obj == nil { - return graphql.Null - } - return ec._Contact(ctx, sel, obj) - case *generated.ContactHistory: - if obj == nil { - return graphql.Null - } - return ec._ContactHistory(ctx, sel, obj) - case *generated.DocumentData: - if obj == nil { - return graphql.Null - } - return ec._DocumentData(ctx, sel, obj) - case *generated.DocumentDataHistory: - if obj == nil { - return graphql.Null - } - return ec._DocumentDataHistory(ctx, sel, obj) - case *generated.Entitlement: - if obj == nil { - return graphql.Null - } - return ec._Entitlement(ctx, sel, obj) - case *generated.EntitlementHistory: - if obj == nil { - return graphql.Null - } - return ec._EntitlementHistory(ctx, sel, obj) - case *generated.EntitlementPlan: - if obj == nil { - return graphql.Null - } - return ec._EntitlementPlan(ctx, sel, obj) - case *generated.EntitlementPlanFeature: - if obj == nil { - return graphql.Null - } - return ec._EntitlementPlanFeature(ctx, sel, obj) - case *generated.EntitlementPlanFeatureHistory: - if obj == nil { - return graphql.Null - } - return ec._EntitlementPlanFeatureHistory(ctx, sel, obj) - case *generated.EntitlementPlanHistory: - if obj == nil { - return graphql.Null - } - return ec._EntitlementPlanHistory(ctx, sel, obj) - case *generated.Entity: - if obj == nil { - return graphql.Null - } - return ec._Entity(ctx, sel, obj) - case *generated.EntityHistory: - if obj == nil { - return graphql.Null - } - return ec._EntityHistory(ctx, sel, obj) - case *generated.EntityType: - if obj == nil { - return graphql.Null - } - return ec._EntityType(ctx, sel, obj) - case *generated.EntityTypeHistory: - if obj == nil { - return graphql.Null - } - return ec._EntityTypeHistory(ctx, sel, obj) - case *generated.Event: - if obj == nil { - return graphql.Null - } - return ec._Event(ctx, sel, obj) - case *generated.EventHistory: - if obj == nil { - return graphql.Null - } - return ec._EventHistory(ctx, sel, obj) - case *generated.Feature: - if obj == nil { - return graphql.Null - } - return ec._Feature(ctx, sel, obj) - case *generated.FeatureHistory: - if obj == nil { - return graphql.Null - } - return ec._FeatureHistory(ctx, sel, obj) - case *generated.File: - if obj == nil { - return graphql.Null - } - return ec._File(ctx, sel, obj) - case *generated.FileHistory: - if obj == nil { - return graphql.Null - } - return ec._FileHistory(ctx, sel, obj) - case *generated.Group: - if obj == nil { - return graphql.Null - } - return ec._Group(ctx, sel, obj) - case *generated.GroupHistory: - if obj == nil { - return graphql.Null - } - return ec._GroupHistory(ctx, sel, obj) - case *generated.GroupMembership: - if obj == nil { - return graphql.Null - } - return ec._GroupMembership(ctx, sel, obj) - case *generated.GroupMembershipHistory: - if obj == nil { - return graphql.Null - } - return ec._GroupMembershipHistory(ctx, sel, obj) - case *generated.GroupSetting: - if obj == nil { - return graphql.Null - } - return ec._GroupSetting(ctx, sel, obj) - case *generated.GroupSettingHistory: - if obj == nil { - return graphql.Null - } - return ec._GroupSettingHistory(ctx, sel, obj) - case *generated.Hush: - if obj == nil { - return graphql.Null - } - return ec._Hush(ctx, sel, obj) - case *generated.HushHistory: - if obj == nil { - return graphql.Null - } - return ec._HushHistory(ctx, sel, obj) - case *generated.Integration: - if obj == nil { - return graphql.Null - } - return ec._Integration(ctx, sel, obj) - case *generated.IntegrationHistory: - if obj == nil { - return graphql.Null - } - return ec._IntegrationHistory(ctx, sel, obj) - case *generated.Invite: - if obj == nil { - return graphql.Null - } - return ec._Invite(ctx, sel, obj) - case *generated.Note: - if obj == nil { - return graphql.Null - } - return ec._Note(ctx, sel, obj) - case *generated.NoteHistory: - if obj == nil { - return graphql.Null - } - return ec._NoteHistory(ctx, sel, obj) - case *generated.OauthProvider: - if obj == nil { - return graphql.Null - } - return ec._OauthProvider(ctx, sel, obj) - case *generated.OauthProviderHistory: - if obj == nil { - return graphql.Null - } - return ec._OauthProviderHistory(ctx, sel, obj) - case *generated.OhAuthTooToken: - if obj == nil { - return graphql.Null - } - return ec._OhAuthTooToken(ctx, sel, obj) - case *generated.OrgMembership: - if obj == nil { - return graphql.Null - } - return ec._OrgMembership(ctx, sel, obj) - case *generated.OrgMembershipHistory: - if obj == nil { - return graphql.Null - } - return ec._OrgMembershipHistory(ctx, sel, obj) - case *generated.Organization: - if obj == nil { - return graphql.Null - } - return ec._Organization(ctx, sel, obj) - case *generated.OrganizationHistory: - if obj == nil { - return graphql.Null - } - return ec._OrganizationHistory(ctx, sel, obj) - case *generated.OrganizationSetting: - if obj == nil { - return graphql.Null - } - return ec._OrganizationSetting(ctx, sel, obj) - case *generated.OrganizationSettingHistory: - if obj == nil { - return graphql.Null - } - return ec._OrganizationSettingHistory(ctx, sel, obj) - case *generated.PersonalAccessToken: - if obj == nil { - return graphql.Null - } - return ec._PersonalAccessToken(ctx, sel, obj) - case *generated.Subscriber: - if obj == nil { - return graphql.Null - } - return ec._Subscriber(ctx, sel, obj) - case *generated.TFASetting: - if obj == nil { - return graphql.Null - } - return ec._TFASetting(ctx, sel, obj) - case *generated.Template: - if obj == nil { - return graphql.Null - } - return ec._Template(ctx, sel, obj) - case *generated.TemplateHistory: - if obj == nil { - return graphql.Null - } - return ec._TemplateHistory(ctx, sel, obj) - case *generated.User: - if obj == nil { - return graphql.Null - } - return ec._User(ctx, sel, obj) - case *generated.UserHistory: - if obj == nil { - return graphql.Null - } - return ec._UserHistory(ctx, sel, obj) - case *generated.UserSetting: - if obj == nil { - return graphql.Null - } - return ec._UserSetting(ctx, sel, obj) - case *generated.UserSettingHistory: - if obj == nil { - return graphql.Null - } - return ec._UserSettingHistory(ctx, sel, obj) - case *generated.Webhook: - if obj == nil { - return graphql.Null - } - return ec._Webhook(ctx, sel, obj) - case *generated.WebhookHistory: - if obj == nil { - return graphql.Null + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingHistoryConnection") + case "edges": + out.Values[i] = ec._GroupSettingHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._GroupSettingHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._GroupSettingHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) } - return ec._WebhookHistory(ctx, sel, obj) - default: - panic(fmt.Errorf("unexpected type %T", obj)) } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out } -func (ec *executionContext) _SearchResult(ctx context.Context, sel ast.SelectionSet, obj SearchResult) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case APITokenSearchResult: - return ec._APITokenSearchResult(ctx, sel, &obj) - case *APITokenSearchResult: - if obj == nil { - return graphql.Null - } - return ec._APITokenSearchResult(ctx, sel, obj) - case ContactSearchResult: - return ec._ContactSearchResult(ctx, sel, &obj) - case *ContactSearchResult: - if obj == nil { - return graphql.Null - } - return ec._ContactSearchResult(ctx, sel, obj) - case DocumentDataSearchResult: - return ec._DocumentDataSearchResult(ctx, sel, &obj) - case *DocumentDataSearchResult: - if obj == nil { - return graphql.Null - } - return ec._DocumentDataSearchResult(ctx, sel, obj) - case EntitlementSearchResult: - return ec._EntitlementSearchResult(ctx, sel, &obj) - case *EntitlementSearchResult: - if obj == nil { - return graphql.Null - } - return ec._EntitlementSearchResult(ctx, sel, obj) - case EntitlementPlanSearchResult: - return ec._EntitlementPlanSearchResult(ctx, sel, &obj) - case *EntitlementPlanSearchResult: - if obj == nil { - return graphql.Null - } - return ec._EntitlementPlanSearchResult(ctx, sel, obj) - case EntitlementPlanFeatureSearchResult: - return ec._EntitlementPlanFeatureSearchResult(ctx, sel, &obj) - case *EntitlementPlanFeatureSearchResult: - if obj == nil { - return graphql.Null - } - return ec._EntitlementPlanFeatureSearchResult(ctx, sel, obj) - case EntitySearchResult: - return ec._EntitySearchResult(ctx, sel, &obj) - case *EntitySearchResult: - if obj == nil { - return graphql.Null - } - return ec._EntitySearchResult(ctx, sel, obj) - case EntityTypeSearchResult: - return ec._EntityTypeSearchResult(ctx, sel, &obj) - case *EntityTypeSearchResult: - if obj == nil { - return graphql.Null - } - return ec._EntityTypeSearchResult(ctx, sel, obj) - case EventSearchResult: - return ec._EventSearchResult(ctx, sel, &obj) - case *EventSearchResult: - if obj == nil { - return graphql.Null - } - return ec._EventSearchResult(ctx, sel, obj) - case FeatureSearchResult: - return ec._FeatureSearchResult(ctx, sel, &obj) - case *FeatureSearchResult: - if obj == nil { - return graphql.Null - } - return ec._FeatureSearchResult(ctx, sel, obj) - case FileSearchResult: - return ec._FileSearchResult(ctx, sel, &obj) - case *FileSearchResult: - if obj == nil { - return graphql.Null - } - return ec._FileSearchResult(ctx, sel, obj) - case GroupSearchResult: - return ec._GroupSearchResult(ctx, sel, &obj) - case *GroupSearchResult: - if obj == nil { - return graphql.Null - } - return ec._GroupSearchResult(ctx, sel, obj) - case GroupSettingSearchResult: - return ec._GroupSettingSearchResult(ctx, sel, &obj) - case *GroupSettingSearchResult: - if obj == nil { - return graphql.Null - } - return ec._GroupSettingSearchResult(ctx, sel, obj) - case IntegrationSearchResult: - return ec._IntegrationSearchResult(ctx, sel, &obj) - case *IntegrationSearchResult: - if obj == nil { - return graphql.Null - } - return ec._IntegrationSearchResult(ctx, sel, obj) - case OauthProviderSearchResult: - return ec._OauthProviderSearchResult(ctx, sel, &obj) - case *OauthProviderSearchResult: - if obj == nil { - return graphql.Null - } - return ec._OauthProviderSearchResult(ctx, sel, obj) - case OhAuthTooTokenSearchResult: - return ec._OhAuthTooTokenSearchResult(ctx, sel, &obj) - case *OhAuthTooTokenSearchResult: - if obj == nil { - return graphql.Null - } - return ec._OhAuthTooTokenSearchResult(ctx, sel, obj) - case OrganizationSearchResult: - return ec._OrganizationSearchResult(ctx, sel, &obj) - case *OrganizationSearchResult: - if obj == nil { - return graphql.Null - } - return ec._OrganizationSearchResult(ctx, sel, obj) - case OrganizationSettingSearchResult: - return ec._OrganizationSettingSearchResult(ctx, sel, &obj) - case *OrganizationSettingSearchResult: - if obj == nil { - return graphql.Null - } - return ec._OrganizationSettingSearchResult(ctx, sel, obj) - case PersonalAccessTokenSearchResult: - return ec._PersonalAccessTokenSearchResult(ctx, sel, &obj) - case *PersonalAccessTokenSearchResult: - if obj == nil { - return graphql.Null - } - return ec._PersonalAccessTokenSearchResult(ctx, sel, obj) - case SubscriberSearchResult: - return ec._SubscriberSearchResult(ctx, sel, &obj) - case *SubscriberSearchResult: - if obj == nil { - return graphql.Null - } - return ec._SubscriberSearchResult(ctx, sel, obj) - case TFASettingSearchResult: - return ec._TFASettingSearchResult(ctx, sel, &obj) - case *TFASettingSearchResult: - if obj == nil { - return graphql.Null - } - return ec._TFASettingSearchResult(ctx, sel, obj) - case TemplateSearchResult: - return ec._TemplateSearchResult(ctx, sel, &obj) - case *TemplateSearchResult: - if obj == nil { - return graphql.Null - } - return ec._TemplateSearchResult(ctx, sel, obj) - case UserSearchResult: - return ec._UserSearchResult(ctx, sel, &obj) - case *UserSearchResult: - if obj == nil { - return graphql.Null +var groupSettingHistoryEdgeImplementors = []string{"GroupSettingHistoryEdge"} + +func (ec *executionContext) _GroupSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingHistoryEdge") + case "node": + out.Values[i] = ec._GroupSettingHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._GroupSettingHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) } - return ec._UserSearchResult(ctx, sel, obj) - case UserSettingSearchResult: - return ec._UserSettingSearchResult(ctx, sel, &obj) - case *UserSettingSearchResult: - if obj == nil { - return graphql.Null + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupSettingSearchResultImplementors = []string{"GroupSettingSearchResult", "SearchResult"} + +func (ec *executionContext) _GroupSettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingSearchResult") + case "groupSettings": + out.Values[i] = ec._GroupSettingSearchResult_groupSettings(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) } - return ec._UserSettingSearchResult(ctx, sel, obj) - case WebhookSearchResult: - return ec._WebhookSearchResult(ctx, sel, &obj) - case *WebhookSearchResult: - if obj == nil { - return graphql.Null + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var groupSettingUpdatePayloadImplementors = []string{"GroupSettingUpdatePayload"} + +func (ec *executionContext) _GroupSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingUpdatePayload") + case "groupSetting": + out.Values[i] = ec._GroupSettingUpdatePayload_groupSetting(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) } - return ec._WebhookSearchResult(ctx, sel, obj) - default: - panic(fmt.Errorf("unexpected type %T", obj)) } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out } -// endregion ************************** interface.gotpl *************************** +var groupUpdatePayloadImplementors = []string{"GroupUpdatePayload"} -// region **************************** object.gotpl **************************** +func (ec *executionContext) _GroupUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupUpdatePayloadImplementors) -var aPITokenImplementors = []string{"APIToken", "Node"} + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupUpdatePayload") + case "group": + out.Values[i] = ec._GroupUpdatePayload_group(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } -func (ec *executionContext) _APIToken(ctx context.Context, sel ast.SelectionSet, obj *generated.APIToken) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenImplementors) + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var hushImplementors = []string{"Hush", "Node"} + +func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj *generated.Hush) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("APIToken") + out.Values[i] = graphql.MarshalString("Hush") case "id": - out.Values[i] = ec._APIToken_id(ctx, field, obj) + out.Values[i] = ec._Hush_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._APIToken_createdAt(ctx, field, obj) + out.Values[i] = ec._Hush_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._APIToken_updatedAt(ctx, field, obj) + out.Values[i] = ec._Hush_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._APIToken_createdBy(ctx, field, obj) + out.Values[i] = ec._Hush_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._APIToken_updatedBy(ctx, field, obj) + out.Values[i] = ec._Hush_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._APIToken_deletedAt(ctx, field, obj) + out.Values[i] = ec._Hush_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._APIToken_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._APIToken_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._APIToken_ownerID(ctx, field, obj) + out.Values[i] = ec._Hush_deletedBy(ctx, field, obj) case "name": - out.Values[i] = ec._APIToken_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "token": - out.Values[i] = ec._APIToken_token(ctx, field, obj) + out.Values[i] = ec._Hush_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "expiresAt": - out.Values[i] = ec._APIToken_expiresAt(ctx, field, obj) case "description": - out.Values[i] = ec._APIToken_description(ctx, field, obj) - case "scopes": - out.Values[i] = ec._APIToken_scopes(ctx, field, obj) - case "lastUsedAt": - out.Values[i] = ec._APIToken_lastUsedAt(ctx, field, obj) - case "owner": + out.Values[i] = ec._Hush_description(ctx, field, obj) + case "kind": + out.Values[i] = ec._Hush_kind(ctx, field, obj) + case "secretName": + out.Values[i] = ec._Hush_secretName(ctx, field, obj) + case "integrations": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -220565,7 +318213,73 @@ func (ec *executionContext) _APIToken(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._APIToken_owner(ctx, field, obj) + res = ec._Hush_integrations(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "organization": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Hush_organization(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Hush_events(ctx, field, obj) return res } @@ -220612,19 +318326,19 @@ func (ec *executionContext) _APIToken(ctx context.Context, sel ast.SelectionSet, return out } -var aPITokenBulkCreatePayloadImplementors = []string{"APITokenBulkCreatePayload"} +var hushBulkCreatePayloadImplementors = []string{"HushBulkCreatePayload"} -func (ec *executionContext) _APITokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *APITokenBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenBulkCreatePayloadImplementors) +func (ec *executionContext) _HushBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *HushBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("APITokenBulkCreatePayload") - case "apiTokens": - out.Values[i] = ec._APITokenBulkCreatePayload_apiTokens(ctx, field, obj) + out.Values[i] = graphql.MarshalString("HushBulkCreatePayload") + case "hushes": + out.Values[i] = ec._HushBulkCreatePayload_hushes(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -220648,26 +318362,26 @@ func (ec *executionContext) _APITokenBulkCreatePayload(ctx context.Context, sel return out } -var aPITokenConnectionImplementors = []string{"APITokenConnection"} +var hushConnectionImplementors = []string{"HushConnection"} -func (ec *executionContext) _APITokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.APITokenConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenConnectionImplementors) +func (ec *executionContext) _HushConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.HushConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("APITokenConnection") + out.Values[i] = graphql.MarshalString("HushConnection") case "edges": - out.Values[i] = ec._APITokenConnection_edges(ctx, field, obj) + out.Values[i] = ec._HushConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._APITokenConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._HushConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._APITokenConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._HushConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -220694,19 +318408,19 @@ func (ec *executionContext) _APITokenConnection(ctx context.Context, sel ast.Sel return out } -var aPITokenCreatePayloadImplementors = []string{"APITokenCreatePayload"} +var hushCreatePayloadImplementors = []string{"HushCreatePayload"} -func (ec *executionContext) _APITokenCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *APITokenCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenCreatePayloadImplementors) +func (ec *executionContext) _HushCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *HushCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("APITokenCreatePayload") - case "apiToken": - out.Values[i] = ec._APITokenCreatePayload_apiToken(ctx, field, obj) + out.Values[i] = graphql.MarshalString("HushCreatePayload") + case "hush": + out.Values[i] = ec._HushCreatePayload_hush(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -220733,19 +318447,19 @@ func (ec *executionContext) _APITokenCreatePayload(ctx context.Context, sel ast. return out } -var aPITokenDeletePayloadImplementors = []string{"APITokenDeletePayload"} +var hushDeletePayloadImplementors = []string{"HushDeletePayload"} -func (ec *executionContext) _APITokenDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *APITokenDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenDeletePayloadImplementors) +func (ec *executionContext) _HushDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *HushDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("APITokenDeletePayload") + out.Values[i] = graphql.MarshalString("HushDeletePayload") case "deletedID": - out.Values[i] = ec._APITokenDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = ec._HushDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -220772,21 +318486,21 @@ func (ec *executionContext) _APITokenDeletePayload(ctx context.Context, sel ast. return out } -var aPITokenEdgeImplementors = []string{"APITokenEdge"} +var hushEdgeImplementors = []string{"HushEdge"} -func (ec *executionContext) _APITokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.APITokenEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenEdgeImplementors) +func (ec *executionContext) _HushEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.HushEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("APITokenEdge") + out.Values[i] = graphql.MarshalString("HushEdge") case "node": - out.Values[i] = ec._APITokenEdge_node(ctx, field, obj) + out.Values[i] = ec._HushEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._APITokenEdge_cursor(ctx, field, obj) + out.Values[i] = ec._HushEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -220813,58 +318527,57 @@ func (ec *executionContext) _APITokenEdge(ctx context.Context, sel ast.Selection return out } -var aPITokenSearchResultImplementors = []string{"APITokenSearchResult", "SearchResult"} - -func (ec *executionContext) _APITokenSearchResult(ctx context.Context, sel ast.SelectionSet, obj *APITokenSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("APITokenSearchResult") - case "apiTokens": - out.Values[i] = ec._APITokenSearchResult_apiTokens(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var aPITokenUpdatePayloadImplementors = []string{"APITokenUpdatePayload"} +var hushHistoryImplementors = []string{"HushHistory", "Node"} -func (ec *executionContext) _APITokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *APITokenUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenUpdatePayloadImplementors) +func (ec *executionContext) _HushHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.HushHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushHistoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("APITokenUpdatePayload") - case "apiToken": - out.Values[i] = ec._APITokenUpdatePayload_apiToken(ctx, field, obj) + out.Values[i] = graphql.MarshalString("HushHistory") + case "id": + out.Values[i] = ec._HushHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "historyTime": + out.Values[i] = ec._HushHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "ref": + out.Values[i] = ec._HushHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._HushHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createdAt": + out.Values[i] = ec._HushHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._HushHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._HushHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._HushHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._HushHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._HushHistory_deletedBy(ctx, field, obj) + case "name": + out.Values[i] = ec._HushHistory_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } + case "description": + out.Values[i] = ec._HushHistory_description(ctx, field, obj) + case "kind": + out.Values[i] = ec._HushHistory_kind(ctx, field, obj) + case "secretName": + out.Values[i] = ec._HushHistory_secretName(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -220888,32 +318601,29 @@ func (ec *executionContext) _APITokenUpdatePayload(ctx context.Context, sel ast. return out } -var auditLogImplementors = []string{"AuditLog", "Node"} +var hushHistoryConnectionImplementors = []string{"HushHistoryConnection"} -func (ec *executionContext) _AuditLog(ctx context.Context, sel ast.SelectionSet, obj *AuditLog) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditLogImplementors) +func (ec *executionContext) _HushHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.HushHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("AuditLog") - case "table": - out.Values[i] = ec._AuditLog_table(ctx, field, obj) - case "time": - out.Values[i] = ec._AuditLog_time(ctx, field, obj) - case "id": - out.Values[i] = ec._AuditLog_id(ctx, field, obj) + out.Values[i] = graphql.MarshalString("HushHistoryConnection") + case "edges": + out.Values[i] = ec._HushHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._HushHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._HushHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "operation": - out.Values[i] = ec._AuditLog_operation(ctx, field, obj) - case "changes": - out.Values[i] = ec._AuditLog_changes(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._AuditLog_updatedBy(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -220937,26 +318647,21 @@ func (ec *executionContext) _AuditLog(ctx context.Context, sel ast.SelectionSet, return out } -var auditLogConnectionImplementors = []string{"AuditLogConnection"} +var hushHistoryEdgeImplementors = []string{"HushHistoryEdge"} -func (ec *executionContext) _AuditLogConnection(ctx context.Context, sel ast.SelectionSet, obj *AuditLogConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditLogConnectionImplementors) +func (ec *executionContext) _HushHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.HushHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("AuditLogConnection") - case "edges": - out.Values[i] = ec._AuditLogConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._AuditLogConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._AuditLogConnection_totalCount(ctx, field, obj) + out.Values[i] = graphql.MarshalString("HushHistoryEdge") + case "node": + out.Values[i] = ec._HushHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._HushHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -220983,21 +318688,19 @@ func (ec *executionContext) _AuditLogConnection(ctx context.Context, sel ast.Sel return out } -var auditLogEdgeImplementors = []string{"AuditLogEdge"} +var hushUpdatePayloadImplementors = []string{"HushUpdatePayload"} -func (ec *executionContext) _AuditLogEdge(ctx context.Context, sel ast.SelectionSet, obj *AuditLogEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditLogEdgeImplementors) +func (ec *executionContext) _HushUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *HushUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("AuditLogEdge") - case "node": - out.Values[i] = ec._AuditLogEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._AuditLogEdge_cursor(ctx, field, obj) + out.Values[i] = graphql.MarshalString("HushUpdatePayload") + case "hush": + out.Values[i] = ec._HushUpdatePayload_hush(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -221024,58 +318727,47 @@ func (ec *executionContext) _AuditLogEdge(ctx context.Context, sel ast.Selection return out } -var contactImplementors = []string{"Contact", "Node"} +var integrationImplementors = []string{"Integration", "Node"} -func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, obj *generated.Contact) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactImplementors) +func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionSet, obj *generated.Integration) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Contact") + out.Values[i] = graphql.MarshalString("Integration") case "id": - out.Values[i] = ec._Contact_id(ctx, field, obj) + out.Values[i] = ec._Integration_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Contact_createdAt(ctx, field, obj) + out.Values[i] = ec._Integration_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Contact_updatedAt(ctx, field, obj) + out.Values[i] = ec._Integration_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Contact_createdBy(ctx, field, obj) + out.Values[i] = ec._Integration_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Contact_updatedBy(ctx, field, obj) + out.Values[i] = ec._Integration_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Integration_tags(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._Contact_deletedAt(ctx, field, obj) + out.Values[i] = ec._Integration_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._Contact_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Contact_tags(ctx, field, obj) + out.Values[i] = ec._Integration_deletedBy(ctx, field, obj) case "ownerID": - out.Values[i] = ec._Contact_ownerID(ctx, field, obj) - case "fullName": - out.Values[i] = ec._Contact_fullName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "title": - out.Values[i] = ec._Contact_title(ctx, field, obj) - case "company": - out.Values[i] = ec._Contact_company(ctx, field, obj) - case "email": - out.Values[i] = ec._Contact_email(ctx, field, obj) - case "phoneNumber": - out.Values[i] = ec._Contact_phoneNumber(ctx, field, obj) - case "address": - out.Values[i] = ec._Contact_address(ctx, field, obj) - case "status": - out.Values[i] = ec._Contact_status(ctx, field, obj) + out.Values[i] = ec._Integration_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._Integration_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } + case "description": + out.Values[i] = ec._Integration_description(ctx, field, obj) + case "kind": + out.Values[i] = ec._Integration_kind(ctx, field, obj) case "owner": field := field @@ -221085,7 +318777,7 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Contact_owner(ctx, field, obj) + res = ec._Integration_owner(ctx, field, obj) return res } @@ -221109,7 +318801,7 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entities": + case "secrets": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -221118,7 +318810,7 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Contact_entities(ctx, field, obj) + res = ec._Integration_secrets(ctx, field, obj) return res } @@ -221142,7 +318834,7 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "oauth2tokens": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -221151,7 +318843,73 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Contact_files(ctx, field, obj) + res = ec._Integration_oauth2tokens(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Integration_events(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "webhooks": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Integration_webhooks(ctx, field, obj) return res } @@ -221198,19 +318956,19 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, return out } -var contactBulkCreatePayloadImplementors = []string{"ContactBulkCreatePayload"} +var integrationBulkCreatePayloadImplementors = []string{"IntegrationBulkCreatePayload"} -func (ec *executionContext) _ContactBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ContactBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactBulkCreatePayloadImplementors) +func (ec *executionContext) _IntegrationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *IntegrationBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ContactBulkCreatePayload") - case "contacts": - out.Values[i] = ec._ContactBulkCreatePayload_contacts(ctx, field, obj) + out.Values[i] = graphql.MarshalString("IntegrationBulkCreatePayload") + case "integrations": + out.Values[i] = ec._IntegrationBulkCreatePayload_integrations(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -221234,26 +318992,26 @@ func (ec *executionContext) _ContactBulkCreatePayload(ctx context.Context, sel a return out } -var contactConnectionImplementors = []string{"ContactConnection"} +var integrationConnectionImplementors = []string{"IntegrationConnection"} -func (ec *executionContext) _ContactConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactConnectionImplementors) +func (ec *executionContext) _IntegrationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ContactConnection") + out.Values[i] = graphql.MarshalString("IntegrationConnection") case "edges": - out.Values[i] = ec._ContactConnection_edges(ctx, field, obj) + out.Values[i] = ec._IntegrationConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._ContactConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._IntegrationConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._ContactConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._IntegrationConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -221280,19 +319038,19 @@ func (ec *executionContext) _ContactConnection(ctx context.Context, sel ast.Sele return out } -var contactCreatePayloadImplementors = []string{"ContactCreatePayload"} +var integrationCreatePayloadImplementors = []string{"IntegrationCreatePayload"} -func (ec *executionContext) _ContactCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ContactCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactCreatePayloadImplementors) +func (ec *executionContext) _IntegrationCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *IntegrationCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ContactCreatePayload") - case "contact": - out.Values[i] = ec._ContactCreatePayload_contact(ctx, field, obj) + out.Values[i] = graphql.MarshalString("IntegrationCreatePayload") + case "integration": + out.Values[i] = ec._IntegrationCreatePayload_integration(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -221319,19 +319077,19 @@ func (ec *executionContext) _ContactCreatePayload(ctx context.Context, sel ast.S return out } -var contactDeletePayloadImplementors = []string{"ContactDeletePayload"} +var integrationDeletePayloadImplementors = []string{"IntegrationDeletePayload"} -func (ec *executionContext) _ContactDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ContactDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactDeletePayloadImplementors) +func (ec *executionContext) _IntegrationDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *IntegrationDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ContactDeletePayload") + out.Values[i] = graphql.MarshalString("IntegrationDeletePayload") case "deletedID": - out.Values[i] = ec._ContactDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = ec._IntegrationDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -221358,21 +319116,21 @@ func (ec *executionContext) _ContactDeletePayload(ctx context.Context, sel ast.S return out } -var contactEdgeImplementors = []string{"ContactEdge"} +var integrationEdgeImplementors = []string{"IntegrationEdge"} -func (ec *executionContext) _ContactEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactEdgeImplementors) +func (ec *executionContext) _IntegrationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ContactEdge") + out.Values[i] = graphql.MarshalString("IntegrationEdge") case "node": - out.Values[i] = ec._ContactEdge_node(ctx, field, obj) + out.Values[i] = ec._IntegrationEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._ContactEdge_cursor(ctx, field, obj) + out.Values[i] = ec._IntegrationEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -221399,70 +319157,59 @@ func (ec *executionContext) _ContactEdge(ctx context.Context, sel ast.SelectionS return out } -var contactHistoryImplementors = []string{"ContactHistory", "Node"} +var integrationHistoryImplementors = []string{"IntegrationHistory", "Node"} -func (ec *executionContext) _ContactHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactHistoryImplementors) +func (ec *executionContext) _IntegrationHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationHistoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ContactHistory") + out.Values[i] = graphql.MarshalString("IntegrationHistory") case "id": - out.Values[i] = ec._ContactHistory_id(ctx, field, obj) + out.Values[i] = ec._IntegrationHistory_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "historyTime": - out.Values[i] = ec._ContactHistory_historyTime(ctx, field, obj) + out.Values[i] = ec._IntegrationHistory_historyTime(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "ref": - out.Values[i] = ec._ContactHistory_ref(ctx, field, obj) + out.Values[i] = ec._IntegrationHistory_ref(ctx, field, obj) case "operation": - out.Values[i] = ec._ContactHistory_operation(ctx, field, obj) + out.Values[i] = ec._IntegrationHistory_operation(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "createdAt": - out.Values[i] = ec._ContactHistory_createdAt(ctx, field, obj) + out.Values[i] = ec._IntegrationHistory_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._ContactHistory_updatedAt(ctx, field, obj) + out.Values[i] = ec._IntegrationHistory_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._ContactHistory_createdBy(ctx, field, obj) + out.Values[i] = ec._IntegrationHistory_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._ContactHistory_updatedBy(ctx, field, obj) + out.Values[i] = ec._IntegrationHistory_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._IntegrationHistory_tags(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._ContactHistory_deletedAt(ctx, field, obj) + out.Values[i] = ec._IntegrationHistory_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._ContactHistory_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._ContactHistory_tags(ctx, field, obj) + out.Values[i] = ec._IntegrationHistory_deletedBy(ctx, field, obj) case "ownerID": - out.Values[i] = ec._ContactHistory_ownerID(ctx, field, obj) - case "fullName": - out.Values[i] = ec._ContactHistory_fullName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "title": - out.Values[i] = ec._ContactHistory_title(ctx, field, obj) - case "company": - out.Values[i] = ec._ContactHistory_company(ctx, field, obj) - case "email": - out.Values[i] = ec._ContactHistory_email(ctx, field, obj) - case "phoneNumber": - out.Values[i] = ec._ContactHistory_phoneNumber(ctx, field, obj) - case "address": - out.Values[i] = ec._ContactHistory_address(ctx, field, obj) - case "status": - out.Values[i] = ec._ContactHistory_status(ctx, field, obj) + out.Values[i] = ec._IntegrationHistory_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._IntegrationHistory_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } + case "description": + out.Values[i] = ec._IntegrationHistory_description(ctx, field, obj) + case "kind": + out.Values[i] = ec._IntegrationHistory_kind(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -221486,26 +319233,26 @@ func (ec *executionContext) _ContactHistory(ctx context.Context, sel ast.Selecti return out } -var contactHistoryConnectionImplementors = []string{"ContactHistoryConnection"} +var integrationHistoryConnectionImplementors = []string{"IntegrationHistoryConnection"} -func (ec *executionContext) _ContactHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactHistoryConnectionImplementors) +func (ec *executionContext) _IntegrationHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ContactHistoryConnection") + out.Values[i] = graphql.MarshalString("IntegrationHistoryConnection") case "edges": - out.Values[i] = ec._ContactHistoryConnection_edges(ctx, field, obj) + out.Values[i] = ec._IntegrationHistoryConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._ContactHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._IntegrationHistoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._ContactHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._IntegrationHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -221532,21 +319279,21 @@ func (ec *executionContext) _ContactHistoryConnection(ctx context.Context, sel a return out } -var contactHistoryEdgeImplementors = []string{"ContactHistoryEdge"} +var integrationHistoryEdgeImplementors = []string{"IntegrationHistoryEdge"} -func (ec *executionContext) _ContactHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactHistoryEdgeImplementors) +func (ec *executionContext) _IntegrationHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ContactHistoryEdge") + out.Values[i] = graphql.MarshalString("IntegrationHistoryEdge") case "node": - out.Values[i] = ec._ContactHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._IntegrationHistoryEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._ContactHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = ec._IntegrationHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -221573,19 +319320,19 @@ func (ec *executionContext) _ContactHistoryEdge(ctx context.Context, sel ast.Sel return out } -var contactSearchResultImplementors = []string{"ContactSearchResult", "SearchResult"} +var integrationSearchResultImplementors = []string{"IntegrationSearchResult", "SearchResult"} -func (ec *executionContext) _ContactSearchResult(ctx context.Context, sel ast.SelectionSet, obj *ContactSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactSearchResultImplementors) +func (ec *executionContext) _IntegrationSearchResult(ctx context.Context, sel ast.SelectionSet, obj *IntegrationSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ContactSearchResult") - case "contacts": - out.Values[i] = ec._ContactSearchResult_contacts(ctx, field, obj) + out.Values[i] = graphql.MarshalString("IntegrationSearchResult") + case "integrations": + out.Values[i] = ec._IntegrationSearchResult_integrations(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -221609,19 +319356,19 @@ func (ec *executionContext) _ContactSearchResult(ctx context.Context, sel ast.Se return out } -var contactUpdatePayloadImplementors = []string{"ContactUpdatePayload"} +var integrationUpdatePayloadImplementors = []string{"IntegrationUpdatePayload"} -func (ec *executionContext) _ContactUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ContactUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactUpdatePayloadImplementors) +func (ec *executionContext) _IntegrationUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *IntegrationUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ContactUpdatePayload") - case "contact": - out.Values[i] = ec._ContactUpdatePayload_contact(ctx, field, obj) + out.Values[i] = graphql.MarshalString("IntegrationUpdatePayload") + case "integration": + out.Values[i] = ec._IntegrationUpdatePayload_integration(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -221648,49 +319395,59 @@ func (ec *executionContext) _ContactUpdatePayload(ctx context.Context, sel ast.S return out } -var documentDataImplementors = []string{"DocumentData", "Node"} +var internalPolicyImplementors = []string{"InternalPolicy", "Node"} -func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentData) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataImplementors) +func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicy) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentData") + out.Values[i] = graphql.MarshalString("InternalPolicy") case "id": - out.Values[i] = ec._DocumentData_id(ctx, field, obj) + out.Values[i] = ec._InternalPolicy_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._DocumentData_createdAt(ctx, field, obj) + out.Values[i] = ec._InternalPolicy_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._DocumentData_updatedAt(ctx, field, obj) + out.Values[i] = ec._InternalPolicy_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._DocumentData_createdBy(ctx, field, obj) + out.Values[i] = ec._InternalPolicy_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._DocumentData_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._DocumentData_tags(ctx, field, obj) + out.Values[i] = ec._InternalPolicy_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._DocumentData_deletedAt(ctx, field, obj) + out.Values[i] = ec._InternalPolicy_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._DocumentData_deletedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._DocumentData_ownerID(ctx, field, obj) - case "templateID": - out.Values[i] = ec._DocumentData_templateID(ctx, field, obj) + out.Values[i] = ec._InternalPolicy_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._InternalPolicy_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._InternalPolicy_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "data": - out.Values[i] = ec._DocumentData_data(ctx, field, obj) + case "description": + out.Values[i] = ec._InternalPolicy_description(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "owner": + case "status": + out.Values[i] = ec._InternalPolicy_status(ctx, field, obj) + case "policyType": + out.Values[i] = ec._InternalPolicy_policyType(ctx, field, obj) + case "version": + out.Values[i] = ec._InternalPolicy_version(ctx, field, obj) + case "purposeAndScope": + out.Values[i] = ec._InternalPolicy_purposeAndScope(ctx, field, obj) + case "background": + out.Values[i] = ec._InternalPolicy_background(ctx, field, obj) + case "details": + out.Values[i] = ec._InternalPolicy_details(ctx, field, obj) + case "controlobjectives": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -221699,7 +319456,7 @@ func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DocumentData_owner(ctx, field, obj) + res = ec._InternalPolicy_controlobjectives(ctx, field, obj) return res } @@ -221723,19 +319480,16 @@ func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "template": + case "controls": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DocumentData_template(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._InternalPolicy_controls(ctx, field, obj) return res } @@ -221759,7 +319513,7 @@ func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entity": + case "procedures": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -221768,7 +319522,7 @@ func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DocumentData_entity(ctx, field, obj) + res = ec._InternalPolicy_procedures(ctx, field, obj) return res } @@ -221792,7 +319546,7 @@ func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "narratives": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -221801,7 +319555,7 @@ func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._DocumentData_files(ctx, field, obj) + res = ec._InternalPolicy_narratives(ctx, field, obj) return res } @@ -221848,19 +319602,19 @@ func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.Selection return out } -var documentDataBulkCreatePayloadImplementors = []string{"DocumentDataBulkCreatePayload"} +var internalPolicyBulkCreatePayloadImplementors = []string{"InternalPolicyBulkCreatePayload"} -func (ec *executionContext) _DocumentDataBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataBulkCreatePayloadImplementors) +func (ec *executionContext) _InternalPolicyBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *InternalPolicyBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataBulkCreatePayload") - case "documentData": - out.Values[i] = ec._DocumentDataBulkCreatePayload_documentData(ctx, field, obj) + out.Values[i] = graphql.MarshalString("InternalPolicyBulkCreatePayload") + case "internalPolicies": + out.Values[i] = ec._InternalPolicyBulkCreatePayload_internalPolicies(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -221884,26 +319638,26 @@ func (ec *executionContext) _DocumentDataBulkCreatePayload(ctx context.Context, return out } -var documentDataConnectionImplementors = []string{"DocumentDataConnection"} +var internalPolicyConnectionImplementors = []string{"InternalPolicyConnection"} -func (ec *executionContext) _DocumentDataConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataConnectionImplementors) +func (ec *executionContext) _InternalPolicyConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataConnection") + out.Values[i] = graphql.MarshalString("InternalPolicyConnection") case "edges": - out.Values[i] = ec._DocumentDataConnection_edges(ctx, field, obj) + out.Values[i] = ec._InternalPolicyConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._DocumentDataConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._InternalPolicyConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._DocumentDataConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._InternalPolicyConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -221930,19 +319684,19 @@ func (ec *executionContext) _DocumentDataConnection(ctx context.Context, sel ast return out } -var documentDataCreatePayloadImplementors = []string{"DocumentDataCreatePayload"} +var internalPolicyCreatePayloadImplementors = []string{"InternalPolicyCreatePayload"} -func (ec *executionContext) _DocumentDataCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataCreatePayloadImplementors) +func (ec *executionContext) _InternalPolicyCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *InternalPolicyCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataCreatePayload") - case "documentData": - out.Values[i] = ec._DocumentDataCreatePayload_documentData(ctx, field, obj) + out.Values[i] = graphql.MarshalString("InternalPolicyCreatePayload") + case "internalPolicy": + out.Values[i] = ec._InternalPolicyCreatePayload_internalPolicy(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -221969,19 +319723,234 @@ func (ec *executionContext) _DocumentDataCreatePayload(ctx context.Context, sel return out } -var documentDataDeletePayloadImplementors = []string{"DocumentDataDeletePayload"} +var internalPolicyDeletePayloadImplementors = []string{"InternalPolicyDeletePayload"} -func (ec *executionContext) _DocumentDataDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataDeletePayloadImplementors) +func (ec *executionContext) _InternalPolicyDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *InternalPolicyDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataDeletePayload") + out.Values[i] = graphql.MarshalString("InternalPolicyDeletePayload") case "deletedID": - out.Values[i] = ec._DocumentDataDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = ec._InternalPolicyDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var internalPolicyEdgeImplementors = []string{"InternalPolicyEdge"} + +func (ec *executionContext) _InternalPolicyEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InternalPolicyEdge") + case "node": + out.Values[i] = ec._InternalPolicyEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._InternalPolicyEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var internalPolicyHistoryImplementors = []string{"InternalPolicyHistory", "Node"} + +func (ec *executionContext) _InternalPolicyHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InternalPolicyHistory") + case "id": + out.Values[i] = ec._InternalPolicyHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "historyTime": + out.Values[i] = ec._InternalPolicyHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "ref": + out.Values[i] = ec._InternalPolicyHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._InternalPolicyHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createdAt": + out.Values[i] = ec._InternalPolicyHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._InternalPolicyHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._InternalPolicyHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._InternalPolicyHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._InternalPolicyHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._InternalPolicyHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._InternalPolicyHistory_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._InternalPolicyHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec._InternalPolicyHistory_description(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "status": + out.Values[i] = ec._InternalPolicyHistory_status(ctx, field, obj) + case "policyType": + out.Values[i] = ec._InternalPolicyHistory_policyType(ctx, field, obj) + case "version": + out.Values[i] = ec._InternalPolicyHistory_version(ctx, field, obj) + case "purposeAndScope": + out.Values[i] = ec._InternalPolicyHistory_purposeAndScope(ctx, field, obj) + case "background": + out.Values[i] = ec._InternalPolicyHistory_background(ctx, field, obj) + case "details": + out.Values[i] = ec._InternalPolicyHistory_details(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var internalPolicyHistoryConnectionImplementors = []string{"InternalPolicyHistoryConnection"} + +func (ec *executionContext) _InternalPolicyHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InternalPolicyHistoryConnection") + case "edges": + out.Values[i] = ec._InternalPolicyHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._InternalPolicyHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._InternalPolicyHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var internalPolicyHistoryEdgeImplementors = []string{"InternalPolicyHistoryEdge"} + +func (ec *executionContext) _InternalPolicyHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InternalPolicyHistoryEdge") + case "node": + out.Values[i] = ec._InternalPolicyHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._InternalPolicyHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -222008,24 +319977,237 @@ func (ec *executionContext) _DocumentDataDeletePayload(ctx context.Context, sel return out } -var documentDataEdgeImplementors = []string{"DocumentDataEdge"} +var internalPolicySearchResultImplementors = []string{"InternalPolicySearchResult", "SearchResult"} + +func (ec *executionContext) _InternalPolicySearchResult(ctx context.Context, sel ast.SelectionSet, obj *InternalPolicySearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicySearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InternalPolicySearchResult") + case "internalPolicies": + out.Values[i] = ec._InternalPolicySearchResult_internalPolicies(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var internalPolicyUpdatePayloadImplementors = []string{"InternalPolicyUpdatePayload"} + +func (ec *executionContext) _InternalPolicyUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *InternalPolicyUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InternalPolicyUpdatePayload") + case "internalPolicy": + out.Values[i] = ec._InternalPolicyUpdatePayload_internalPolicy(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var inviteImplementors = []string{"Invite", "Node"} + +func (ec *executionContext) _Invite(ctx context.Context, sel ast.SelectionSet, obj *generated.Invite) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Invite") + case "id": + out.Values[i] = ec._Invite_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._Invite_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Invite_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Invite_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Invite_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._Invite_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._Invite_deletedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Invite_ownerID(ctx, field, obj) + case "expires": + out.Values[i] = ec._Invite_expires(ctx, field, obj) + case "recipient": + out.Values[i] = ec._Invite_recipient(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "status": + out.Values[i] = ec._Invite_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "role": + out.Values[i] = ec._Invite_role(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "sendAttempts": + out.Values[i] = ec._Invite_sendAttempts(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "requestorID": + out.Values[i] = ec._Invite_requestorID(ctx, field, obj) + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Invite_owner(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Invite_events(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var inviteBulkCreatePayloadImplementors = []string{"InviteBulkCreatePayload"} -func (ec *executionContext) _DocumentDataEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataEdgeImplementors) +func (ec *executionContext) _InviteBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *InviteBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataEdge") - case "node": - out.Values[i] = ec._DocumentDataEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._DocumentDataEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = graphql.MarshalString("InviteBulkCreatePayload") + case "invites": + out.Values[i] = ec._InviteBulkCreatePayload_invites(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -222049,57 +320231,26 @@ func (ec *executionContext) _DocumentDataEdge(ctx context.Context, sel ast.Selec return out } -var documentDataHistoryImplementors = []string{"DocumentDataHistory", "Node"} +var inviteConnectionImplementors = []string{"InviteConnection"} -func (ec *executionContext) _DocumentDataHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataHistoryImplementors) +func (ec *executionContext) _InviteConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.InviteConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataHistory") - case "id": - out.Values[i] = ec._DocumentDataHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._DocumentDataHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._DocumentDataHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._DocumentDataHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._DocumentDataHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._DocumentDataHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._DocumentDataHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._DocumentDataHistory_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._DocumentDataHistory_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._DocumentDataHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._DocumentDataHistory_deletedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._DocumentDataHistory_ownerID(ctx, field, obj) - case "templateID": - out.Values[i] = ec._DocumentDataHistory_templateID(ctx, field, obj) + out.Values[i] = graphql.MarshalString("InviteConnection") + case "edges": + out.Values[i] = ec._InviteConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._InviteConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "data": - out.Values[i] = ec._DocumentDataHistory_data(ctx, field, obj) + case "totalCount": + out.Values[i] = ec._InviteConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -222126,26 +320277,19 @@ func (ec *executionContext) _DocumentDataHistory(ctx context.Context, sel ast.Se return out } -var documentDataHistoryConnectionImplementors = []string{"DocumentDataHistoryConnection"} +var inviteCreatePayloadImplementors = []string{"InviteCreatePayload"} -func (ec *executionContext) _DocumentDataHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataHistoryConnectionImplementors) +func (ec *executionContext) _InviteCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *InviteCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataHistoryConnection") - case "edges": - out.Values[i] = ec._DocumentDataHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._DocumentDataHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._DocumentDataHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = graphql.MarshalString("InviteCreatePayload") + case "invite": + out.Values[i] = ec._InviteCreatePayload_invite(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -222172,21 +320316,19 @@ func (ec *executionContext) _DocumentDataHistoryConnection(ctx context.Context, return out } -var documentDataHistoryEdgeImplementors = []string{"DocumentDataHistoryEdge"} +var inviteDeletePayloadImplementors = []string{"InviteDeletePayload"} -func (ec *executionContext) _DocumentDataHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataHistoryEdgeImplementors) +func (ec *executionContext) _InviteDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *InviteDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataHistoryEdge") - case "node": - out.Values[i] = ec._DocumentDataHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._DocumentDataHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = graphql.MarshalString("InviteDeletePayload") + case "deletedID": + out.Values[i] = ec._InviteDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -222213,19 +320355,24 @@ func (ec *executionContext) _DocumentDataHistoryEdge(ctx context.Context, sel as return out } -var documentDataSearchResultImplementors = []string{"DocumentDataSearchResult", "SearchResult"} +var inviteEdgeImplementors = []string{"InviteEdge"} -func (ec *executionContext) _DocumentDataSearchResult(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataSearchResultImplementors) +func (ec *executionContext) _InviteEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.InviteEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataSearchResult") - case "documentData": - out.Values[i] = ec._DocumentDataSearchResult_documentData(ctx, field, obj) + out.Values[i] = graphql.MarshalString("InviteEdge") + case "node": + out.Values[i] = ec._InviteEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._InviteEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -222249,19 +320396,19 @@ func (ec *executionContext) _DocumentDataSearchResult(ctx context.Context, sel a return out } -var documentDataUpdatePayloadImplementors = []string{"DocumentDataUpdatePayload"} +var inviteUpdatePayloadImplementors = []string{"InviteUpdatePayload"} -func (ec *executionContext) _DocumentDataUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataUpdatePayloadImplementors) +func (ec *executionContext) _InviteUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *InviteUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataUpdatePayload") - case "documentData": - out.Values[i] = ec._DocumentDataUpdatePayload_documentData(ctx, field, obj) + out.Values[i] = graphql.MarshalString("InviteUpdatePayload") + case "invite": + out.Values[i] = ec._InviteUpdatePayload_invite(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -222288,1017 +320435,1282 @@ func (ec *executionContext) _DocumentDataUpdatePayload(ctx context.Context, sel return out } -var entitlementImplementors = []string{"Entitlement", "Node"} +var mutationImplementors = []string{"Mutation"} -func (ec *executionContext) _Entitlement(ctx context.Context, sel ast.SelectionSet, obj *generated.Entitlement) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementImplementors) +func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors) + ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ + Object: "Mutation", + }) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { + innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ + Object: field.Name, + Field: field, + }) + switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Entitlement") - case "id": - out.Values[i] = ec._Entitlement_id(ctx, field, obj) + out.Values[i] = graphql.MarshalString("Mutation") + case "createActionPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createActionPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkActionPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkActionPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVActionPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVActionPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateActionPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateActionPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteActionPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteActionPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createAPIToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createAPIToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkAPIToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkAPIToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVAPIToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVAPIToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateAPIToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateAPIToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteAPIToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteAPIToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createContact": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createContact(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkContact": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkContact(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVContact": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVContact(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateContact": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateContact(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteContact": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteContact(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createControl": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createControl(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkControl": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkControl(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVControl": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVControl(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateControl": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateControl(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteControl": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteControl(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createControlObjective": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createControlObjective(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkControlObjective": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkControlObjective(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVControlObjective": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVControlObjective(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateControlObjective": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateControlObjective(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteControlObjective": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteControlObjective(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createDocumentData": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createDocumentData(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkDocumentData": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkDocumentData(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVDocumentData": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVDocumentData(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateDocumentData": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateDocumentData(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteDocumentData": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteDocumentData(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createEntitlement": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createEntitlement(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkEntitlement": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkEntitlement(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVEntitlement": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVEntitlement(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateEntitlement": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateEntitlement(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteEntitlement": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteEntitlement(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createEntitlementPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createEntitlementPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkEntitlementPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkEntitlementPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVEntitlementPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVEntitlementPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateEntitlementPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateEntitlementPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteEntitlementPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteEntitlementPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createEntitlementPlanFeature": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createEntitlementPlanFeature(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkEntitlementPlanFeature": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkEntitlementPlanFeature(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVEntitlementPlanFeature": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVEntitlementPlanFeature(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateEntitlementPlanFeature": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateEntitlementPlanFeature(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteEntitlementPlanFeature": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteEntitlementPlanFeature(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createEntity": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createEntity(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkEntity": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkEntity(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVEntity": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVEntity(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateEntity": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateEntity(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteEntity": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteEntity(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createEntityType": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createEntityType(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkEntityType": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkEntityType(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVEntityType": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVEntityType(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateEntityType": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateEntityType(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteEntityType": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteEntityType(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createEvent": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createEvent(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkEvent": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkEvent(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVEvent": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVEvent(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateEvent": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateEvent(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteEvent": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteEvent(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createFeature": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createFeature(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkFeature": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkFeature(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVFeature": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVFeature(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateFeature": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateFeature(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteFeature": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteFeature(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteFile": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteFile(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createGroup": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createGroup(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkGroup": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkGroup(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVGroup": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVGroup(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateGroup": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateGroup(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteGroup": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteGroup(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createGroupMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createGroupMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkGroupMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkGroupMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVGroupMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVGroupMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateGroupMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateGroupMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteGroupMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteGroupMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createGroupSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createGroupSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkGroupSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkGroupSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVGroupSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVGroupSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateGroupSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateGroupSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteGroupSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteGroupSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createHush": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createHush(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkHush": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkHush(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVHush": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVHush(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateHush": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateHush(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteHush": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteHush(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createIntegration": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createIntegration(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkIntegration": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkIntegration(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVIntegration": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVIntegration(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateIntegration": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateIntegration(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteIntegration": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteIntegration(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createInternalPolicy": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createInternalPolicy(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkInternalPolicy": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkInternalPolicy(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVInternalPolicy": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVInternalPolicy(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateInternalPolicy": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateInternalPolicy(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteInternalPolicy": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteInternalPolicy(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createInvite": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createInvite(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkInvite": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkInvite(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVInvite": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVInvite(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateInvite": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateInvite(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteInvite": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteInvite(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createNarrative": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createNarrative(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkNarrative": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkNarrative(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVNarrative": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVNarrative(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateNarrative": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateNarrative(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteNarrative": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteNarrative(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createOauthProvider": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createOauthProvider(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkOauthProvider": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkOauthProvider(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVOauthProvider": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVOauthProvider(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateOauthProvider": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateOauthProvider(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteOauthProvider": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteOauthProvider(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createOhAuthTooToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createOhAuthTooToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkOhAuthTooToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkOhAuthTooToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVOhAuthTooToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVOhAuthTooToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateOhAuthTooToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateOhAuthTooToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteOhAuthTooToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteOhAuthTooToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createOrganization": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createOrganization(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkOrganization": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkOrganization(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVOrganization": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVOrganization(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateOrganization": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateOrganization(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteOrganization": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteOrganization(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createOrganizationSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createOrganizationSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkOrganizationSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkOrganizationSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVOrganizationSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVOrganizationSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateOrganizationSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateOrganizationSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteOrganizationSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteOrganizationSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createOrgMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createOrgMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkOrgMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkOrgMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVOrgMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVOrgMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateOrgMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateOrgMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteOrgMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteOrgMembership(ctx, field) + }) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "createdAt": - out.Values[i] = ec._Entitlement_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Entitlement_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Entitlement_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Entitlement_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Entitlement_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._Entitlement_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._Entitlement_deletedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Entitlement_ownerID(ctx, field, obj) - case "planID": - out.Values[i] = ec._Entitlement_planID(ctx, field, obj) + case "createPersonalAccessToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createPersonalAccessToken(ctx, field) + }) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "organizationID": - out.Values[i] = ec._Entitlement_organizationID(ctx, field, obj) + case "createBulkPersonalAccessToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkPersonalAccessToken(ctx, field) + }) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "externalCustomerID": - out.Values[i] = ec._Entitlement_externalCustomerID(ctx, field, obj) - case "externalSubscriptionID": - out.Values[i] = ec._Entitlement_externalSubscriptionID(ctx, field, obj) - case "expires": - out.Values[i] = ec._Entitlement_expires(ctx, field, obj) + case "createBulkCSVPersonalAccessToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVPersonalAccessToken(ctx, field) + }) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "expiresAt": - out.Values[i] = ec._Entitlement_expiresAt(ctx, field, obj) - case "cancelled": - out.Values[i] = ec._Entitlement_cancelled(ctx, field, obj) + case "updatePersonalAccessToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updatePersonalAccessToken(ctx, field) + }) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "owner": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Entitlement_owner(ctx, field, obj) - return res + case "deletePersonalAccessToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deletePersonalAccessToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "createProcedure": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createProcedure(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "plan": - 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._Entitlement_plan(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + case "createBulkProcedure": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkProcedure(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "createBulkCSVProcedure": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVProcedure(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organization": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Entitlement_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + case "updateProcedure": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateProcedure(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "deleteProcedure": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteProcedure(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Entitlement_events(ctx, field, obj) - return res + case "createRisk": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createRisk(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "createBulkRisk": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkRisk(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementBulkCreatePayloadImplementors = []string{"EntitlementBulkCreatePayload"} - -func (ec *executionContext) _EntitlementBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementBulkCreatePayload") - case "entitlements": - out.Values[i] = ec._EntitlementBulkCreatePayload_entitlements(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementConnectionImplementors = []string{"EntitlementConnection"} - -func (ec *executionContext) _EntitlementConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementConnection") - case "edges": - out.Values[i] = ec._EntitlementConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._EntitlementConnection_pageInfo(ctx, field, obj) + case "createBulkCSVRisk": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVRisk(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - case "totalCount": - out.Values[i] = ec._EntitlementConnection_totalCount(ctx, field, obj) + case "updateRisk": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateRisk(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementCreatePayloadImplementors = []string{"EntitlementCreatePayload"} - -func (ec *executionContext) _EntitlementCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementCreatePayload") - case "entitlement": - out.Values[i] = ec._EntitlementCreatePayload_entitlement(ctx, field, obj) + case "deleteRisk": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteRisk(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementDeletePayloadImplementors = []string{"EntitlementDeletePayload"} - -func (ec *executionContext) _EntitlementDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementDeletePayload") - case "deletedID": - out.Values[i] = ec._EntitlementDeletePayload_deletedID(ctx, field, obj) + case "createStandard": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createStandard(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementEdgeImplementors = []string{"EntitlementEdge"} - -func (ec *executionContext) _EntitlementEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementEdge") - case "node": - out.Values[i] = ec._EntitlementEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._EntitlementEdge_cursor(ctx, field, obj) + case "createBulkStandard": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkStandard(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementHistoryImplementors = []string{"EntitlementHistory", "Node"} - -func (ec *executionContext) _EntitlementHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementHistoryImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementHistory") - case "id": - out.Values[i] = ec._EntitlementHistory_id(ctx, field, obj) + case "createBulkCSVStandard": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVStandard(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - case "historyTime": - out.Values[i] = ec._EntitlementHistory_historyTime(ctx, field, obj) + case "updateStandard": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateStandard(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - case "ref": - out.Values[i] = ec._EntitlementHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._EntitlementHistory_operation(ctx, field, obj) + case "deleteStandard": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteStandard(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - case "createdAt": - out.Values[i] = ec._EntitlementHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._EntitlementHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._EntitlementHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._EntitlementHistory_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._EntitlementHistory_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._EntitlementHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._EntitlementHistory_deletedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._EntitlementHistory_ownerID(ctx, field, obj) - case "planID": - out.Values[i] = ec._EntitlementHistory_planID(ctx, field, obj) + case "createSubcontrol": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createSubcontrol(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - case "organizationID": - out.Values[i] = ec._EntitlementHistory_organizationID(ctx, field, obj) + case "createBulkSubcontrol": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkSubcontrol(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - case "externalCustomerID": - out.Values[i] = ec._EntitlementHistory_externalCustomerID(ctx, field, obj) - case "externalSubscriptionID": - out.Values[i] = ec._EntitlementHistory_externalSubscriptionID(ctx, field, obj) - case "expires": - out.Values[i] = ec._EntitlementHistory_expires(ctx, field, obj) + case "createBulkCSVSubcontrol": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVSubcontrol(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - case "expiresAt": - out.Values[i] = ec._EntitlementHistory_expiresAt(ctx, field, obj) - case "cancelled": - out.Values[i] = ec._EntitlementHistory_cancelled(ctx, field, obj) + case "updateSubcontrol": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateSubcontrol(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementHistoryConnectionImplementors = []string{"EntitlementHistoryConnection"} - -func (ec *executionContext) _EntitlementHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementHistoryConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementHistoryConnection") - case "edges": - out.Values[i] = ec._EntitlementHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._EntitlementHistoryConnection_pageInfo(ctx, field, obj) + case "deleteSubcontrol": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteSubcontrol(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - case "totalCount": - out.Values[i] = ec._EntitlementHistoryConnection_totalCount(ctx, field, obj) + case "createSubscriber": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createSubscriber(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementHistoryEdgeImplementors = []string{"EntitlementHistoryEdge"} - -func (ec *executionContext) _EntitlementHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementHistoryEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementHistoryEdge") - case "node": - out.Values[i] = ec._EntitlementHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._EntitlementHistoryEdge_cursor(ctx, field, obj) + case "createBulkSubscriber": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkSubscriber(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanImplementors = []string{"EntitlementPlan", "Node"} - -func (ec *executionContext) _EntitlementPlan(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlan) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlan") - case "id": - out.Values[i] = ec._EntitlementPlan_id(ctx, field, obj) + case "createBulkCSVSubscriber": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVSubscriber(ctx, field) + }) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "createdAt": - out.Values[i] = ec._EntitlementPlan_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._EntitlementPlan_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._EntitlementPlan_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._EntitlementPlan_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._EntitlementPlan_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._EntitlementPlan_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._EntitlementPlan_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._EntitlementPlan_ownerID(ctx, field, obj) - case "displayName": - out.Values[i] = ec._EntitlementPlan_displayName(ctx, field, obj) - case "name": - out.Values[i] = ec._EntitlementPlan_name(ctx, field, obj) + case "updateSubscriber": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateSubscriber(ctx, field) + }) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "description": - out.Values[i] = ec._EntitlementPlan_description(ctx, field, obj) - case "version": - out.Values[i] = ec._EntitlementPlan_version(ctx, field, obj) + case "deleteSubscriber": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteSubscriber(ctx, field) + }) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "metadata": - out.Values[i] = ec._EntitlementPlan_metadata(ctx, field, obj) - case "owner": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._EntitlementPlan_owner(ctx, field, obj) - return res + case "createTemplate": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createTemplate(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "createBulkTemplate": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkTemplate(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entitlements": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._EntitlementPlan_entitlements(ctx, field, obj) - return res + case "createBulkCSVTemplate": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVTemplate(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "updateTemplate": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateTemplate(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "baseFeatures": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._EntitlementPlan_baseFeatures(ctx, field, obj) - return res + case "deleteTemplate": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteTemplate(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "createTFASetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createTFASetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._EntitlementPlan_events(ctx, field, obj) - return res + case "updateTFASetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateTFASetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "createUser": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createUser(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "features": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._EntitlementPlan_features(ctx, field, obj) - return res + case "updateUser": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateUser(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "deleteUser": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteUser(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanBulkCreatePayloadImplementors = []string{"EntitlementPlanBulkCreatePayload"} - -func (ec *executionContext) _EntitlementPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanBulkCreatePayload") - case "entitlementPlans": - out.Values[i] = ec._EntitlementPlanBulkCreatePayload_entitlementPlans(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanConnectionImplementors = []string{"EntitlementPlanConnection"} - -func (ec *executionContext) _EntitlementPlanConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanConnection") - case "edges": - out.Values[i] = ec._EntitlementPlanConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._EntitlementPlanConnection_pageInfo(ctx, field, obj) + case "createUserSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createUserSetting(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - case "totalCount": - out.Values[i] = ec._EntitlementPlanConnection_totalCount(ctx, field, obj) + case "createBulkUserSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkUserSetting(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanCreatePayloadImplementors = []string{"EntitlementPlanCreatePayload"} - -func (ec *executionContext) _EntitlementPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanCreatePayload") - case "entitlementPlan": - out.Values[i] = ec._EntitlementPlanCreatePayload_entitlementPlan(ctx, field, obj) + case "createBulkCSVUserSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVUserSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateUserSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateUserSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createWebhook": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createWebhook(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanDeletePayloadImplementors = []string{"EntitlementPlanDeletePayload"} - -func (ec *executionContext) _EntitlementPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanDeletePayload") - case "deletedID": - out.Values[i] = ec._EntitlementPlanDeletePayload_deletedID(ctx, field, obj) + case "createBulkWebhook": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkWebhook(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanEdgeImplementors = []string{"EntitlementPlanEdge"} - -func (ec *executionContext) _EntitlementPlanEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanEdge") - case "node": - out.Values[i] = ec._EntitlementPlanEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._EntitlementPlanEdge_cursor(ctx, field, obj) + case "createBulkCSVWebhook": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVWebhook(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateWebhook": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateWebhook(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteWebhook": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteWebhook(ctx, field) + }) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -223325,51 +321737,48 @@ func (ec *executionContext) _EntitlementPlanEdge(ctx context.Context, sel ast.Se return out } -var entitlementPlanFeatureImplementors = []string{"EntitlementPlanFeature", "Node"} +var narrativeImplementors = []string{"Narrative", "Node"} -func (ec *executionContext) _EntitlementPlanFeature(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanFeature) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureImplementors) +func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet, obj *generated.Narrative) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanFeature") + out.Values[i] = graphql.MarshalString("Narrative") case "id": - out.Values[i] = ec._EntitlementPlanFeature_id(ctx, field, obj) + out.Values[i] = ec._Narrative_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._EntitlementPlanFeature_createdAt(ctx, field, obj) + out.Values[i] = ec._Narrative_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._EntitlementPlanFeature_updatedAt(ctx, field, obj) + out.Values[i] = ec._Narrative_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._EntitlementPlanFeature_createdBy(ctx, field, obj) + out.Values[i] = ec._Narrative_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._EntitlementPlanFeature_updatedBy(ctx, field, obj) + out.Values[i] = ec._Narrative_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._EntitlementPlanFeature_deletedAt(ctx, field, obj) + out.Values[i] = ec._Narrative_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._EntitlementPlanFeature_deletedBy(ctx, field, obj) + out.Values[i] = ec._Narrative_deletedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._EntitlementPlanFeature_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._EntitlementPlanFeature_ownerID(ctx, field, obj) - case "metadata": - out.Values[i] = ec._EntitlementPlanFeature_metadata(ctx, field, obj) - case "planID": - out.Values[i] = ec._EntitlementPlanFeature_planID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "featureID": - out.Values[i] = ec._EntitlementPlanFeature_featureID(ctx, field, obj) + out.Values[i] = ec._Narrative_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._Narrative_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "owner": + case "description": + out.Values[i] = ec._Narrative_description(ctx, field, obj) + case "satisfies": + out.Values[i] = ec._Narrative_satisfies(ctx, field, obj) + case "details": + out.Values[i] = ec._Narrative_details(ctx, field, obj) + case "policy": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -223378,7 +321787,7 @@ func (ec *executionContext) _EntitlementPlanFeature(ctx context.Context, sel ast ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._EntitlementPlanFeature_owner(ctx, field, obj) + res = ec._Narrative_policy(ctx, field, obj) return res } @@ -223402,19 +321811,16 @@ func (ec *executionContext) _EntitlementPlanFeature(ctx context.Context, sel ast } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "plan": + case "control": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._EntitlementPlanFeature_plan(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Narrative_control(ctx, field, obj) return res } @@ -223438,19 +321844,16 @@ func (ec *executionContext) _EntitlementPlanFeature(ctx context.Context, sel ast } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "feature": + case "procedure": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._EntitlementPlanFeature_feature(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Narrative_procedure(ctx, field, obj) return res } @@ -223474,7 +321877,7 @@ func (ec *executionContext) _EntitlementPlanFeature(ctx context.Context, sel ast } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "controlobjective": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -223483,7 +321886,7 @@ func (ec *executionContext) _EntitlementPlanFeature(ctx context.Context, sel ast ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._EntitlementPlanFeature_events(ctx, field, obj) + res = ec._Narrative_controlobjective(ctx, field, obj) return res } @@ -223530,19 +321933,19 @@ func (ec *executionContext) _EntitlementPlanFeature(ctx context.Context, sel ast return out } -var entitlementPlanFeatureBulkCreatePayloadImplementors = []string{"EntitlementPlanFeatureBulkCreatePayload"} +var narrativeBulkCreatePayloadImplementors = []string{"NarrativeBulkCreatePayload"} -func (ec *executionContext) _EntitlementPlanFeatureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanFeatureBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureBulkCreatePayloadImplementors) +func (ec *executionContext) _NarrativeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *NarrativeBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureBulkCreatePayload") - case "entitlementPlanFeatures": - out.Values[i] = ec._EntitlementPlanFeatureBulkCreatePayload_entitlementPlanFeatures(ctx, field, obj) + out.Values[i] = graphql.MarshalString("NarrativeBulkCreatePayload") + case "narratives": + out.Values[i] = ec._NarrativeBulkCreatePayload_narratives(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -223566,26 +321969,26 @@ func (ec *executionContext) _EntitlementPlanFeatureBulkCreatePayload(ctx context return out } -var entitlementPlanFeatureConnectionImplementors = []string{"EntitlementPlanFeatureConnection"} +var narrativeConnectionImplementors = []string{"NarrativeConnection"} -func (ec *executionContext) _EntitlementPlanFeatureConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanFeatureConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureConnectionImplementors) +func (ec *executionContext) _NarrativeConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NarrativeConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureConnection") + out.Values[i] = graphql.MarshalString("NarrativeConnection") case "edges": - out.Values[i] = ec._EntitlementPlanFeatureConnection_edges(ctx, field, obj) + out.Values[i] = ec._NarrativeConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._EntitlementPlanFeatureConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._NarrativeConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._EntitlementPlanFeatureConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._NarrativeConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -223612,19 +322015,19 @@ func (ec *executionContext) _EntitlementPlanFeatureConnection(ctx context.Contex return out } -var entitlementPlanFeatureCreatePayloadImplementors = []string{"EntitlementPlanFeatureCreatePayload"} +var narrativeCreatePayloadImplementors = []string{"NarrativeCreatePayload"} -func (ec *executionContext) _EntitlementPlanFeatureCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanFeatureCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureCreatePayloadImplementors) +func (ec *executionContext) _NarrativeCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *NarrativeCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureCreatePayload") - case "entitlementPlanFeature": - out.Values[i] = ec._EntitlementPlanFeatureCreatePayload_entitlementPlanFeature(ctx, field, obj) + out.Values[i] = graphql.MarshalString("NarrativeCreatePayload") + case "narrative": + out.Values[i] = ec._NarrativeCreatePayload_narrative(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -223651,185 +322054,19 @@ func (ec *executionContext) _EntitlementPlanFeatureCreatePayload(ctx context.Con return out } -var entitlementPlanFeatureDeletePayloadImplementors = []string{"EntitlementPlanFeatureDeletePayload"} +var narrativeDeletePayloadImplementors = []string{"NarrativeDeletePayload"} -func (ec *executionContext) _EntitlementPlanFeatureDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanFeatureDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureDeletePayloadImplementors) +func (ec *executionContext) _NarrativeDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *NarrativeDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureDeletePayload") + out.Values[i] = graphql.MarshalString("NarrativeDeletePayload") case "deletedID": - out.Values[i] = ec._EntitlementPlanFeatureDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanFeatureEdgeImplementors = []string{"EntitlementPlanFeatureEdge"} - -func (ec *executionContext) _EntitlementPlanFeatureEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanFeatureEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureEdge") - case "node": - out.Values[i] = ec._EntitlementPlanFeatureEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._EntitlementPlanFeatureEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanFeatureHistoryImplementors = []string{"EntitlementPlanFeatureHistory", "Node"} - -func (ec *executionContext) _EntitlementPlanFeatureHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanFeatureHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureHistoryImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureHistory") - case "id": - out.Values[i] = ec._EntitlementPlanFeatureHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._EntitlementPlanFeatureHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._EntitlementPlanFeatureHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._EntitlementPlanFeatureHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._EntitlementPlanFeatureHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._EntitlementPlanFeatureHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._EntitlementPlanFeatureHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._EntitlementPlanFeatureHistory_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._EntitlementPlanFeatureHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._EntitlementPlanFeatureHistory_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._EntitlementPlanFeatureHistory_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._EntitlementPlanFeatureHistory_ownerID(ctx, field, obj) - case "metadata": - out.Values[i] = ec._EntitlementPlanFeatureHistory_metadata(ctx, field, obj) - case "planID": - out.Values[i] = ec._EntitlementPlanFeatureHistory_planID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "featureID": - out.Values[i] = ec._EntitlementPlanFeatureHistory_featureID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanFeatureHistoryConnectionImplementors = []string{"EntitlementPlanFeatureHistoryConnection"} - -func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanFeatureHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureHistoryConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureHistoryConnection") - case "edges": - out.Values[i] = ec._EntitlementPlanFeatureHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._EntitlementPlanFeatureHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._EntitlementPlanFeatureHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._NarrativeDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -223856,96 +322093,21 @@ func (ec *executionContext) _EntitlementPlanFeatureHistoryConnection(ctx context return out } -var entitlementPlanFeatureHistoryEdgeImplementors = []string{"EntitlementPlanFeatureHistoryEdge"} +var narrativeEdgeImplementors = []string{"NarrativeEdge"} -func (ec *executionContext) _EntitlementPlanFeatureHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanFeatureHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureHistoryEdgeImplementors) +func (ec *executionContext) _NarrativeEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NarrativeEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureHistoryEdge") + out.Values[i] = graphql.MarshalString("NarrativeEdge") case "node": - out.Values[i] = ec._EntitlementPlanFeatureHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._NarrativeEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._EntitlementPlanFeatureHistoryEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanFeatureSearchResultImplementors = []string{"EntitlementPlanFeatureSearchResult", "SearchResult"} - -func (ec *executionContext) _EntitlementPlanFeatureSearchResult(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanFeatureSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureSearchResult") - case "entitlementPlanFeatures": - out.Values[i] = ec._EntitlementPlanFeatureSearchResult_entitlementPlanFeatures(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanFeatureUpdatePayloadImplementors = []string{"EntitlementPlanFeatureUpdatePayload"} - -func (ec *executionContext) _EntitlementPlanFeatureUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanFeatureUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanFeatureUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanFeatureUpdatePayload") - case "entitlementPlanFeature": - out.Values[i] = ec._EntitlementPlanFeatureUpdatePayload_entitlementPlanFeature(ctx, field, obj) + out.Values[i] = ec._NarrativeEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -223972,66 +322134,59 @@ func (ec *executionContext) _EntitlementPlanFeatureUpdatePayload(ctx context.Con return out } -var entitlementPlanHistoryImplementors = []string{"EntitlementPlanHistory", "Node"} +var narrativeHistoryImplementors = []string{"NarrativeHistory", "Node"} -func (ec *executionContext) _EntitlementPlanHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanHistoryImplementors) +func (ec *executionContext) _NarrativeHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.NarrativeHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeHistoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanHistory") + out.Values[i] = graphql.MarshalString("NarrativeHistory") case "id": - out.Values[i] = ec._EntitlementPlanHistory_id(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "historyTime": - out.Values[i] = ec._EntitlementPlanHistory_historyTime(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_historyTime(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "ref": - out.Values[i] = ec._EntitlementPlanHistory_ref(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_ref(ctx, field, obj) case "operation": - out.Values[i] = ec._EntitlementPlanHistory_operation(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_operation(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "createdAt": - out.Values[i] = ec._EntitlementPlanHistory_createdAt(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._EntitlementPlanHistory_updatedAt(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._EntitlementPlanHistory_createdBy(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._EntitlementPlanHistory_updatedBy(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._EntitlementPlanHistory_deletedAt(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._EntitlementPlanHistory_deletedBy(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_deletedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._EntitlementPlanHistory_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._EntitlementPlanHistory_ownerID(ctx, field, obj) - case "displayName": - out.Values[i] = ec._EntitlementPlanHistory_displayName(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_tags(ctx, field, obj) case "name": - out.Values[i] = ec._EntitlementPlanHistory_name(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - out.Values[i] = ec._EntitlementPlanHistory_description(ctx, field, obj) - case "version": - out.Values[i] = ec._EntitlementPlanHistory_version(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "metadata": - out.Values[i] = ec._EntitlementPlanHistory_metadata(ctx, field, obj) + out.Values[i] = ec._NarrativeHistory_description(ctx, field, obj) + case "satisfies": + out.Values[i] = ec._NarrativeHistory_satisfies(ctx, field, obj) + case "details": + out.Values[i] = ec._NarrativeHistory_details(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -224055,26 +322210,26 @@ func (ec *executionContext) _EntitlementPlanHistory(ctx context.Context, sel ast return out } -var entitlementPlanHistoryConnectionImplementors = []string{"EntitlementPlanHistoryConnection"} +var narrativeHistoryConnectionImplementors = []string{"NarrativeHistoryConnection"} -func (ec *executionContext) _EntitlementPlanHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanHistoryConnectionImplementors) +func (ec *executionContext) _NarrativeHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NarrativeHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanHistoryConnection") + out.Values[i] = graphql.MarshalString("NarrativeHistoryConnection") case "edges": - out.Values[i] = ec._EntitlementPlanHistoryConnection_edges(ctx, field, obj) + out.Values[i] = ec._NarrativeHistoryConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._EntitlementPlanHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._NarrativeHistoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._EntitlementPlanHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._NarrativeHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -224101,96 +322256,21 @@ func (ec *executionContext) _EntitlementPlanHistoryConnection(ctx context.Contex return out } -var entitlementPlanHistoryEdgeImplementors = []string{"EntitlementPlanHistoryEdge"} +var narrativeHistoryEdgeImplementors = []string{"NarrativeHistoryEdge"} -func (ec *executionContext) _EntitlementPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntitlementPlanHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanHistoryEdgeImplementors) +func (ec *executionContext) _NarrativeHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NarrativeHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanHistoryEdge") + out.Values[i] = graphql.MarshalString("NarrativeHistoryEdge") case "node": - out.Values[i] = ec._EntitlementPlanHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._NarrativeHistoryEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._EntitlementPlanHistoryEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanSearchResultImplementors = []string{"EntitlementPlanSearchResult", "SearchResult"} - -func (ec *executionContext) _EntitlementPlanSearchResult(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanSearchResult") - case "entitlementPlans": - out.Values[i] = ec._EntitlementPlanSearchResult_entitlementPlans(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entitlementPlanUpdatePayloadImplementors = []string{"EntitlementPlanUpdatePayload"} - -func (ec *executionContext) _EntitlementPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementPlanUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementPlanUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementPlanUpdatePayload") - case "entitlementPlan": - out.Values[i] = ec._EntitlementPlanUpdatePayload_entitlementPlan(ctx, field, obj) + out.Values[i] = ec._NarrativeHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -224217,19 +322297,19 @@ func (ec *executionContext) _EntitlementPlanUpdatePayload(ctx context.Context, s return out } -var entitlementSearchResultImplementors = []string{"EntitlementSearchResult", "SearchResult"} +var narrativeSearchResultImplementors = []string{"NarrativeSearchResult", "SearchResult"} -func (ec *executionContext) _EntitlementSearchResult(ctx context.Context, sel ast.SelectionSet, obj *EntitlementSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementSearchResultImplementors) +func (ec *executionContext) _NarrativeSearchResult(ctx context.Context, sel ast.SelectionSet, obj *NarrativeSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementSearchResult") - case "entitlements": - out.Values[i] = ec._EntitlementSearchResult_entitlements(ctx, field, obj) + out.Values[i] = graphql.MarshalString("NarrativeSearchResult") + case "narratives": + out.Values[i] = ec._NarrativeSearchResult_narratives(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -224253,19 +322333,19 @@ func (ec *executionContext) _EntitlementSearchResult(ctx context.Context, sel as return out } -var entitlementUpdatePayloadImplementors = []string{"EntitlementUpdatePayload"} +var narrativeUpdatePayloadImplementors = []string{"NarrativeUpdatePayload"} -func (ec *executionContext) _EntitlementUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntitlementUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitlementUpdatePayloadImplementors) +func (ec *executionContext) _NarrativeUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *NarrativeUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntitlementUpdatePayload") - case "entitlement": - out.Values[i] = ec._EntitlementUpdatePayload_entitlement(ctx, field, obj) + out.Values[i] = graphql.MarshalString("NarrativeUpdatePayload") + case "narrative": + out.Values[i] = ec._NarrativeUpdatePayload_narrative(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -224292,150 +322372,44 @@ func (ec *executionContext) _EntitlementUpdatePayload(ctx context.Context, sel a return out } -var entityImplementors = []string{"Entity", "Node"} +var noteImplementors = []string{"Note", "Node"} -func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, obj *generated.Entity) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityImplementors) +func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj *generated.Note) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, noteImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Entity") + out.Values[i] = graphql.MarshalString("Note") case "id": - out.Values[i] = ec._Entity_id(ctx, field, obj) + out.Values[i] = ec._Note_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Entity_createdAt(ctx, field, obj) + out.Values[i] = ec._Note_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Entity_updatedAt(ctx, field, obj) + out.Values[i] = ec._Note_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Entity_createdBy(ctx, field, obj) + out.Values[i] = ec._Note_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Entity_updatedBy(ctx, field, obj) + out.Values[i] = ec._Note_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._Entity_deletedAt(ctx, field, obj) + out.Values[i] = ec._Note_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._Entity_deletedBy(ctx, field, obj) + out.Values[i] = ec._Note_deletedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._Entity_tags(ctx, field, obj) + out.Values[i] = ec._Note_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._Entity_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._Entity_name(ctx, field, obj) - case "displayName": - out.Values[i] = ec._Entity_displayName(ctx, field, obj) - case "description": - out.Values[i] = ec._Entity_description(ctx, field, obj) - case "domains": - out.Values[i] = ec._Entity_domains(ctx, field, obj) - case "entityTypeID": - out.Values[i] = ec._Entity_entityTypeID(ctx, field, obj) - case "status": - out.Values[i] = ec._Entity_status(ctx, field, obj) - case "owner": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Entity_owner(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "contacts": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Entity_contacts(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "documents": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Entity_documents(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + out.Values[i] = ec._Note_ownerID(ctx, field, obj) + case "text": + out.Values[i] = ec._Note_text(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "notes": + case "owner": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -224444,7 +322418,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Entity_notes(ctx, field, obj) + res = ec._Note_owner(ctx, field, obj) return res } @@ -224468,7 +322442,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "entity": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -224477,7 +322451,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Entity_files(ctx, field, obj) + res = ec._Note_entity(ctx, field, obj) return res } @@ -224501,7 +322475,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entityType": + case "subcontrols": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -224510,7 +322484,7 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Entity_entityType(ctx, field, obj) + res = ec._Note_subcontrols(ctx, field, obj) return res } @@ -224557,140 +322531,26 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o return out } -var entityBulkCreatePayloadImplementors = []string{"EntityBulkCreatePayload"} - -func (ec *executionContext) _EntityBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityBulkCreatePayload") - case "entities": - out.Values[i] = ec._EntityBulkCreatePayload_entities(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entityConnectionImplementors = []string{"EntityConnection"} +var noteConnectionImplementors = []string{"NoteConnection"} -func (ec *executionContext) _EntityConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityConnectionImplementors) +func (ec *executionContext) _NoteConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, noteConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityConnection") + out.Values[i] = graphql.MarshalString("NoteConnection") case "edges": - out.Values[i] = ec._EntityConnection_edges(ctx, field, obj) + out.Values[i] = ec._NoteConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._EntityConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._NoteConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._EntityConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entityCreatePayloadImplementors = []string{"EntityCreatePayload"} - -func (ec *executionContext) _EntityCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityCreatePayload") - case "entity": - out.Values[i] = ec._EntityCreatePayload_entity(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entityDeletePayloadImplementors = []string{"EntityDeletePayload"} - -func (ec *executionContext) _EntityDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityDeletePayload") - case "deletedID": - out.Values[i] = ec._EntityDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = ec._NoteConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -224717,21 +322577,21 @@ func (ec *executionContext) _EntityDeletePayload(ctx context.Context, sel ast.Se return out } -var entityEdgeImplementors = []string{"EntityEdge"} +var noteEdgeImplementors = []string{"NoteEdge"} -func (ec *executionContext) _EntityEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityEdgeImplementors) +func (ec *executionContext) _NoteEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, noteEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityEdge") + out.Values[i] = graphql.MarshalString("NoteEdge") case "node": - out.Values[i] = ec._EntityEdge_node(ctx, field, obj) + out.Values[i] = ec._NoteEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._EntityEdge_cursor(ctx, field, obj) + out.Values[i] = ec._NoteEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -224758,62 +322618,55 @@ func (ec *executionContext) _EntityEdge(ctx context.Context, sel ast.SelectionSe return out } -var entityHistoryImplementors = []string{"EntityHistory", "Node"} +var noteHistoryImplementors = []string{"NoteHistory", "Node"} -func (ec *executionContext) _EntityHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityHistoryImplementors) +func (ec *executionContext) _NoteHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, noteHistoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityHistory") + out.Values[i] = graphql.MarshalString("NoteHistory") case "id": - out.Values[i] = ec._EntityHistory_id(ctx, field, obj) + out.Values[i] = ec._NoteHistory_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "historyTime": - out.Values[i] = ec._EntityHistory_historyTime(ctx, field, obj) + out.Values[i] = ec._NoteHistory_historyTime(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "ref": - out.Values[i] = ec._EntityHistory_ref(ctx, field, obj) + out.Values[i] = ec._NoteHistory_ref(ctx, field, obj) case "operation": - out.Values[i] = ec._EntityHistory_operation(ctx, field, obj) + out.Values[i] = ec._NoteHistory_operation(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "createdAt": - out.Values[i] = ec._EntityHistory_createdAt(ctx, field, obj) + out.Values[i] = ec._NoteHistory_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._EntityHistory_updatedAt(ctx, field, obj) + out.Values[i] = ec._NoteHistory_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._EntityHistory_createdBy(ctx, field, obj) + out.Values[i] = ec._NoteHistory_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._EntityHistory_updatedBy(ctx, field, obj) + out.Values[i] = ec._NoteHistory_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._EntityHistory_deletedAt(ctx, field, obj) + out.Values[i] = ec._NoteHistory_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._EntityHistory_deletedBy(ctx, field, obj) + out.Values[i] = ec._NoteHistory_deletedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._EntityHistory_tags(ctx, field, obj) + out.Values[i] = ec._NoteHistory_tags(ctx, field, obj) case "ownerID": - out.Values[i] = ec._EntityHistory_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._EntityHistory_name(ctx, field, obj) - case "displayName": - out.Values[i] = ec._EntityHistory_displayName(ctx, field, obj) - case "description": - out.Values[i] = ec._EntityHistory_description(ctx, field, obj) - case "domains": - out.Values[i] = ec._EntityHistory_domains(ctx, field, obj) - case "entityTypeID": - out.Values[i] = ec._EntityHistory_entityTypeID(ctx, field, obj) - case "status": - out.Values[i] = ec._EntityHistory_status(ctx, field, obj) + out.Values[i] = ec._NoteHistory_ownerID(ctx, field, obj) + case "text": + out.Values[i] = ec._NoteHistory_text(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -224837,26 +322690,26 @@ func (ec *executionContext) _EntityHistory(ctx context.Context, sel ast.Selectio return out } -var entityHistoryConnectionImplementors = []string{"EntityHistoryConnection"} +var noteHistoryConnectionImplementors = []string{"NoteHistoryConnection"} -func (ec *executionContext) _EntityHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityHistoryConnectionImplementors) +func (ec *executionContext) _NoteHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, noteHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityHistoryConnection") + out.Values[i] = graphql.MarshalString("NoteHistoryConnection") case "edges": - out.Values[i] = ec._EntityHistoryConnection_edges(ctx, field, obj) + out.Values[i] = ec._NoteHistoryConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._EntityHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._NoteHistoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._EntityHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._NoteHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -224883,21 +322736,21 @@ func (ec *executionContext) _EntityHistoryConnection(ctx context.Context, sel as return out } -var entityHistoryEdgeImplementors = []string{"EntityHistoryEdge"} +var noteHistoryEdgeImplementors = []string{"NoteHistoryEdge"} -func (ec *executionContext) _EntityHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityHistoryEdgeImplementors) +func (ec *executionContext) _NoteHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, noteHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityHistoryEdge") + out.Values[i] = graphql.MarshalString("NoteHistoryEdge") case "node": - out.Values[i] = ec._EntityHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._NoteHistoryEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._EntityHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = ec._NoteHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -224924,113 +322777,84 @@ func (ec *executionContext) _EntityHistoryEdge(ctx context.Context, sel ast.Sele return out } -var entitySearchResultImplementors = []string{"EntitySearchResult", "SearchResult"} - -func (ec *executionContext) _EntitySearchResult(ctx context.Context, sel ast.SelectionSet, obj *EntitySearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitySearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitySearchResult") - case "entities": - out.Values[i] = ec._EntitySearchResult_entities(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entityTypeImplementors = []string{"EntityType", "Node"} +var oauthProviderImplementors = []string{"OauthProvider", "Node"} -func (ec *executionContext) _EntityType(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityType) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeImplementors) +func (ec *executionContext) _OauthProvider(ctx context.Context, sel ast.SelectionSet, obj *generated.OauthProvider) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityType") + out.Values[i] = graphql.MarshalString("OauthProvider") case "id": - out.Values[i] = ec._EntityType_id(ctx, field, obj) + out.Values[i] = ec._OauthProvider_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._EntityType_createdAt(ctx, field, obj) + out.Values[i] = ec._OauthProvider_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._EntityType_updatedAt(ctx, field, obj) + out.Values[i] = ec._OauthProvider_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._EntityType_createdBy(ctx, field, obj) + out.Values[i] = ec._OauthProvider_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._EntityType_updatedBy(ctx, field, obj) + out.Values[i] = ec._OauthProvider_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._OauthProvider_tags(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._EntityType_deletedAt(ctx, field, obj) + out.Values[i] = ec._OauthProvider_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._EntityType_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._EntityType_tags(ctx, field, obj) + out.Values[i] = ec._OauthProvider_deletedBy(ctx, field, obj) case "ownerID": - out.Values[i] = ec._EntityType_ownerID(ctx, field, obj) + out.Values[i] = ec._OauthProvider_ownerID(ctx, field, obj) case "name": - out.Values[i] = ec._EntityType_name(ctx, field, obj) + out.Values[i] = ec._OauthProvider_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "owner": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._EntityType_owner(ctx, field, obj) - return res + case "clientID": + out.Values[i] = ec._OauthProvider_clientID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "clientSecret": + out.Values[i] = ec._OauthProvider_clientSecret(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "redirectURL": + out.Values[i] = ec._OauthProvider_redirectURL(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "scopes": + out.Values[i] = ec._OauthProvider_scopes(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "authURL": + out.Values[i] = ec._OauthProvider_authURL(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "tokenURL": + out.Values[i] = ec._OauthProvider_tokenURL(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entities": + case "authStyle": + out.Values[i] = ec._OauthProvider_authStyle(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "infoURL": + out.Values[i] = ec._OauthProvider_infoURL(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "owner": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -225039,7 +322863,7 @@ func (ec *executionContext) _EntityType(ctx context.Context, sel ast.SelectionSe ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._EntityType_entities(ctx, field, obj) + res = ec._OauthProvider_owner(ctx, field, obj) return res } @@ -225086,19 +322910,19 @@ func (ec *executionContext) _EntityType(ctx context.Context, sel ast.SelectionSe return out } -var entityTypeBulkCreatePayloadImplementors = []string{"EntityTypeBulkCreatePayload"} +var oauthProviderBulkCreatePayloadImplementors = []string{"OauthProviderBulkCreatePayload"} -func (ec *executionContext) _EntityTypeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeBulkCreatePayloadImplementors) +func (ec *executionContext) _OauthProviderBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OauthProviderBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeBulkCreatePayload") - case "entityTypes": - out.Values[i] = ec._EntityTypeBulkCreatePayload_entityTypes(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OauthProviderBulkCreatePayload") + case "oauthProviders": + out.Values[i] = ec._OauthProviderBulkCreatePayload_oauthProviders(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -225122,26 +322946,26 @@ func (ec *executionContext) _EntityTypeBulkCreatePayload(ctx context.Context, se return out } -var entityTypeConnectionImplementors = []string{"EntityTypeConnection"} +var oauthProviderConnectionImplementors = []string{"OauthProviderConnection"} -func (ec *executionContext) _EntityTypeConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeConnectionImplementors) +func (ec *executionContext) _OauthProviderConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OauthProviderConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeConnection") + out.Values[i] = graphql.MarshalString("OauthProviderConnection") case "edges": - out.Values[i] = ec._EntityTypeConnection_edges(ctx, field, obj) + out.Values[i] = ec._OauthProviderConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._EntityTypeConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._OauthProviderConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._EntityTypeConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._OauthProviderConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -225168,19 +322992,19 @@ func (ec *executionContext) _EntityTypeConnection(ctx context.Context, sel ast.S return out } -var entityTypeCreatePayloadImplementors = []string{"EntityTypeCreatePayload"} +var oauthProviderCreatePayloadImplementors = []string{"OauthProviderCreatePayload"} -func (ec *executionContext) _EntityTypeCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeCreatePayloadImplementors) +func (ec *executionContext) _OauthProviderCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OauthProviderCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeCreatePayload") - case "entityType": - out.Values[i] = ec._EntityTypeCreatePayload_entityType(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OauthProviderCreatePayload") + case "oauthProvider": + out.Values[i] = ec._OauthProviderCreatePayload_oauthProvider(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -225207,19 +323031,19 @@ func (ec *executionContext) _EntityTypeCreatePayload(ctx context.Context, sel as return out } -var entityTypeDeletePayloadImplementors = []string{"EntityTypeDeletePayload"} +var oauthProviderDeletePayloadImplementors = []string{"OauthProviderDeletePayload"} -func (ec *executionContext) _EntityTypeDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeDeletePayloadImplementors) +func (ec *executionContext) _OauthProviderDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OauthProviderDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeDeletePayload") + out.Values[i] = graphql.MarshalString("OauthProviderDeletePayload") case "deletedID": - out.Values[i] = ec._EntityTypeDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = ec._OauthProviderDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -225246,21 +323070,21 @@ func (ec *executionContext) _EntityTypeDeletePayload(ctx context.Context, sel as return out } -var entityTypeEdgeImplementors = []string{"EntityTypeEdge"} +var oauthProviderEdgeImplementors = []string{"OauthProviderEdge"} -func (ec *executionContext) _EntityTypeEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeEdgeImplementors) +func (ec *executionContext) _OauthProviderEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OauthProviderEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeEdge") + out.Values[i] = graphql.MarshalString("OauthProviderEdge") case "node": - out.Values[i] = ec._EntityTypeEdge_node(ctx, field, obj) + out.Values[i] = ec._OauthProviderEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._EntityTypeEdge_cursor(ctx, field, obj) + out.Values[i] = ec._OauthProviderEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -225287,52 +323111,92 @@ func (ec *executionContext) _EntityTypeEdge(ctx context.Context, sel ast.Selecti return out } -var entityTypeHistoryImplementors = []string{"EntityTypeHistory", "Node"} +var oauthProviderHistoryImplementors = []string{"OauthProviderHistory", "Node"} -func (ec *executionContext) _EntityTypeHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeHistoryImplementors) +func (ec *executionContext) _OauthProviderHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.OauthProviderHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderHistoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeHistory") + out.Values[i] = graphql.MarshalString("OauthProviderHistory") case "id": - out.Values[i] = ec._EntityTypeHistory_id(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistory_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "historyTime": - out.Values[i] = ec._EntityTypeHistory_historyTime(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistory_historyTime(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "ref": - out.Values[i] = ec._EntityTypeHistory_ref(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistory_ref(ctx, field, obj) case "operation": - out.Values[i] = ec._EntityTypeHistory_operation(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistory_operation(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "createdAt": - out.Values[i] = ec._EntityTypeHistory_createdAt(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistory_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._EntityTypeHistory_updatedAt(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistory_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._EntityTypeHistory_createdBy(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistory_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._EntityTypeHistory_updatedBy(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistory_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._OauthProviderHistory_tags(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._EntityTypeHistory_deletedAt(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistory_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._EntityTypeHistory_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._EntityTypeHistory_tags(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistory_deletedBy(ctx, field, obj) case "ownerID": - out.Values[i] = ec._EntityTypeHistory_ownerID(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistory_ownerID(ctx, field, obj) case "name": - out.Values[i] = ec._EntityTypeHistory_name(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "clientID": + out.Values[i] = ec._OauthProviderHistory_clientID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "clientSecret": + out.Values[i] = ec._OauthProviderHistory_clientSecret(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "redirectURL": + out.Values[i] = ec._OauthProviderHistory_redirectURL(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "scopes": + out.Values[i] = ec._OauthProviderHistory_scopes(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "authURL": + out.Values[i] = ec._OauthProviderHistory_authURL(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "tokenURL": + out.Values[i] = ec._OauthProviderHistory_tokenURL(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "authStyle": + out.Values[i] = ec._OauthProviderHistory_authStyle(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "infoURL": + out.Values[i] = ec._OauthProviderHistory_infoURL(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -225359,26 +323223,26 @@ func (ec *executionContext) _EntityTypeHistory(ctx context.Context, sel ast.Sele return out } -var entityTypeHistoryConnectionImplementors = []string{"EntityTypeHistoryConnection"} +var oauthProviderHistoryConnectionImplementors = []string{"OauthProviderHistoryConnection"} -func (ec *executionContext) _EntityTypeHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeHistoryConnectionImplementors) +func (ec *executionContext) _OauthProviderHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OauthProviderHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeHistoryConnection") + out.Values[i] = graphql.MarshalString("OauthProviderHistoryConnection") case "edges": - out.Values[i] = ec._EntityTypeHistoryConnection_edges(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistoryConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._EntityTypeHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._EntityTypeHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -225405,21 +323269,21 @@ func (ec *executionContext) _EntityTypeHistoryConnection(ctx context.Context, se return out } -var entityTypeHistoryEdgeImplementors = []string{"EntityTypeHistoryEdge"} +var oauthProviderHistoryEdgeImplementors = []string{"OauthProviderHistoryEdge"} -func (ec *executionContext) _EntityTypeHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeHistoryEdgeImplementors) +func (ec *executionContext) _OauthProviderHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OauthProviderHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeHistoryEdge") + out.Values[i] = graphql.MarshalString("OauthProviderHistoryEdge") case "node": - out.Values[i] = ec._EntityTypeHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistoryEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._EntityTypeHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = ec._OauthProviderHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -225446,58 +323310,19 @@ func (ec *executionContext) _EntityTypeHistoryEdge(ctx context.Context, sel ast. return out } -var entityTypeSearchResultImplementors = []string{"EntityTypeSearchResult", "SearchResult"} - -func (ec *executionContext) _EntityTypeSearchResult(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeSearchResult") - case "entityTypes": - out.Values[i] = ec._EntityTypeSearchResult_entityTypes(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var entityTypeUpdatePayloadImplementors = []string{"EntityTypeUpdatePayload"} +var oauthProviderSearchResultImplementors = []string{"OauthProviderSearchResult", "SearchResult"} -func (ec *executionContext) _EntityTypeUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeUpdatePayloadImplementors) +func (ec *executionContext) _OauthProviderSearchResult(ctx context.Context, sel ast.SelectionSet, obj *OauthProviderSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeUpdatePayload") - case "entityType": - out.Values[i] = ec._EntityTypeUpdatePayload_entityType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = graphql.MarshalString("OauthProviderSearchResult") + case "oauthProviders": + out.Values[i] = ec._OauthProviderSearchResult_oauthProviders(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -225521,19 +323346,19 @@ func (ec *executionContext) _EntityTypeUpdatePayload(ctx context.Context, sel as return out } -var entityUpdatePayloadImplementors = []string{"EntityUpdatePayload"} +var oauthProviderUpdatePayloadImplementors = []string{"OauthProviderUpdatePayload"} -func (ec *executionContext) _EntityUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityUpdatePayloadImplementors) +func (ec *executionContext) _OauthProviderUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OauthProviderUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityUpdatePayload") - case "entity": - out.Values[i] = ec._EntityUpdatePayload_entity(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OauthProviderUpdatePayload") + case "oauthProvider": + out.Values[i] = ec._OauthProviderUpdatePayload_oauthProvider(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -225560,539 +323385,76 @@ func (ec *executionContext) _EntityUpdatePayload(ctx context.Context, sel ast.Se return out } -var eventImplementors = []string{"Event", "Node"} +var ohAuthTooTokenImplementors = []string{"OhAuthTooToken", "Node"} -func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, obj *generated.Event) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventImplementors) +func (ec *executionContext) _OhAuthTooToken(ctx context.Context, sel ast.SelectionSet, obj *generated.OhAuthTooToken) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Event") + out.Values[i] = graphql.MarshalString("OhAuthTooToken") case "id": - out.Values[i] = ec._Event_id(ctx, field, obj) + out.Values[i] = ec._OhAuthTooToken_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "createdAt": - out.Values[i] = ec._Event_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Event_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Event_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Event_updatedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._Event_tags(ctx, field, obj) - case "eventID": - out.Values[i] = ec._Event_eventID(ctx, field, obj) - case "correlationID": - out.Values[i] = ec._Event_correlationID(ctx, field, obj) - case "eventType": - out.Values[i] = ec._Event_eventType(ctx, field, obj) + out.Values[i] = ec._OhAuthTooToken_tags(ctx, field, obj) + case "clientID": + out.Values[i] = ec._OhAuthTooToken_clientID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "metadata": - out.Values[i] = ec._Event_metadata(ctx, field, obj) - case "user": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_user(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "group": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_group(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integration": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_integration(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organization": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_organization(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "invite": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_invite(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "feature": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_feature(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entitlementplan": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_entitlementplan(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entitlementplanfeature": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_entitlementplanfeature(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "personalAccessToken": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_personalAccessToken(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "oauth2token": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_oauth2token(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "hush": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_hush(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "orgmembership": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_orgmembership(ctx, field, obj) - return res + case "scopes": + out.Values[i] = ec._OhAuthTooToken_scopes(ctx, field, obj) + case "nonce": + out.Values[i] = ec._OhAuthTooToken_nonce(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "claimsUserID": + out.Values[i] = ec._OhAuthTooToken_claimsUserID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "groupmembership": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_groupmembership(ctx, field, obj) - return res + case "claimsUsername": + out.Values[i] = ec._OhAuthTooToken_claimsUsername(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "claimsEmail": + out.Values[i] = ec._OhAuthTooToken_claimsEmail(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entitlement": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_entitlement(ctx, field, obj) - return res + case "claimsEmailVerified": + out.Values[i] = ec._OhAuthTooToken_claimsEmailVerified(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "claimsGroups": + out.Values[i] = ec._OhAuthTooToken_claimsGroups(ctx, field, obj) + case "claimsPreferredUsername": + out.Values[i] = ec._OhAuthTooToken_claimsPreferredUsername(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "webhook": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Event_webhook(ctx, field, obj) - return res + case "connectorID": + out.Values[i] = ec._OhAuthTooToken_connectorID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "connectorData": + out.Values[i] = ec._OhAuthTooToken_connectorData(ctx, field, obj) + case "lastUsed": + out.Values[i] = ec._OhAuthTooToken_lastUsed(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subscriber": + case "integration": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -226101,7 +323463,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Event_subscriber(ctx, field, obj) + res = ec._OhAuthTooToken_integration(ctx, field, obj) return res } @@ -226125,7 +323487,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "file": + case "events": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -226134,7 +323496,7 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Event_file(ctx, field, obj) + res = ec._OhAuthTooToken_events(ctx, field, obj) return res } @@ -226181,19 +323543,19 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob return out } -var eventBulkCreatePayloadImplementors = []string{"EventBulkCreatePayload"} +var ohAuthTooTokenBulkCreatePayloadImplementors = []string{"OhAuthTooTokenBulkCreatePayload"} -func (ec *executionContext) _EventBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EventBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventBulkCreatePayloadImplementors) +func (ec *executionContext) _OhAuthTooTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OhAuthTooTokenBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EventBulkCreatePayload") - case "events": - out.Values[i] = ec._EventBulkCreatePayload_events(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OhAuthTooTokenBulkCreatePayload") + case "ohAuthTooTokens": + out.Values[i] = ec._OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -226217,220 +323579,29 @@ func (ec *executionContext) _EventBulkCreatePayload(ctx context.Context, sel ast return out } -var eventConnectionImplementors = []string{"EventConnection"} +var ohAuthTooTokenConnectionImplementors = []string{"OhAuthTooTokenConnection"} -func (ec *executionContext) _EventConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EventConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventConnectionImplementors) +func (ec *executionContext) _OhAuthTooTokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OhAuthTooTokenConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EventConnection") + out.Values[i] = graphql.MarshalString("OhAuthTooTokenConnection") case "edges": - out.Values[i] = ec._EventConnection_edges(ctx, field, obj) + out.Values[i] = ec._OhAuthTooTokenConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._EventConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._OhAuthTooTokenConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._EventConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var eventCreatePayloadImplementors = []string{"EventCreatePayload"} - -func (ec *executionContext) _EventCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EventCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EventCreatePayload") - case "event": - out.Values[i] = ec._EventCreatePayload_event(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var eventDeletePayloadImplementors = []string{"EventDeletePayload"} - -func (ec *executionContext) _EventDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EventDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EventDeletePayload") - case "deletedID": - out.Values[i] = ec._EventDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var eventEdgeImplementors = []string{"EventEdge"} - -func (ec *executionContext) _EventEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EventEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EventEdge") - case "node": - out.Values[i] = ec._EventEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._EventEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var eventHistoryImplementors = []string{"EventHistory", "Node"} - -func (ec *executionContext) _EventHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.EventHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventHistoryImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EventHistory") - case "id": - out.Values[i] = ec._EventHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._EventHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._EventHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._EventHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._EventHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._EventHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._EventHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._EventHistory_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._EventHistory_tags(ctx, field, obj) - case "eventID": - out.Values[i] = ec._EventHistory_eventID(ctx, field, obj) - case "correlationID": - out.Values[i] = ec._EventHistory_correlationID(ctx, field, obj) - case "eventType": - out.Values[i] = ec._EventHistory_eventType(ctx, field, obj) + out.Values[i] = ec._OhAuthTooTokenConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "metadata": - out.Values[i] = ec._EventHistory_metadata(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -226454,26 +323625,58 @@ func (ec *executionContext) _EventHistory(ctx context.Context, sel ast.Selection return out } -var eventHistoryConnectionImplementors = []string{"EventHistoryConnection"} +var ohAuthTooTokenCreatePayloadImplementors = []string{"OhAuthTooTokenCreatePayload"} -func (ec *executionContext) _EventHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EventHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventHistoryConnectionImplementors) +func (ec *executionContext) _OhAuthTooTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OhAuthTooTokenCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EventHistoryConnection") - case "edges": - out.Values[i] = ec._EventHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._EventHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OhAuthTooTokenCreatePayload") + case "ohAuthTooToken": + out.Values[i] = ec._OhAuthTooTokenCreatePayload_ohAuthTooToken(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "totalCount": - out.Values[i] = ec._EventHistoryConnection_totalCount(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var ohAuthTooTokenDeletePayloadImplementors = []string{"OhAuthTooTokenDeletePayload"} + +func (ec *executionContext) _OhAuthTooTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OhAuthTooTokenDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OhAuthTooTokenDeletePayload") + case "deletedID": + out.Values[i] = ec._OhAuthTooTokenDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -226500,21 +323703,21 @@ func (ec *executionContext) _EventHistoryConnection(ctx context.Context, sel ast return out } -var eventHistoryEdgeImplementors = []string{"EventHistoryEdge"} +var ohAuthTooTokenEdgeImplementors = []string{"OhAuthTooTokenEdge"} -func (ec *executionContext) _EventHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EventHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventHistoryEdgeImplementors) +func (ec *executionContext) _OhAuthTooTokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OhAuthTooTokenEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EventHistoryEdge") + out.Values[i] = graphql.MarshalString("OhAuthTooTokenEdge") case "node": - out.Values[i] = ec._EventHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._OhAuthTooTokenEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._EventHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = ec._OhAuthTooTokenEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -226541,19 +323744,19 @@ func (ec *executionContext) _EventHistoryEdge(ctx context.Context, sel ast.Selec return out } -var eventSearchResultImplementors = []string{"EventSearchResult", "SearchResult"} +var ohAuthTooTokenSearchResultImplementors = []string{"OhAuthTooTokenSearchResult", "SearchResult"} -func (ec *executionContext) _EventSearchResult(ctx context.Context, sel ast.SelectionSet, obj *EventSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventSearchResultImplementors) +func (ec *executionContext) _OhAuthTooTokenSearchResult(ctx context.Context, sel ast.SelectionSet, obj *OhAuthTooTokenSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EventSearchResult") - case "events": - out.Values[i] = ec._EventSearchResult_events(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OhAuthTooTokenSearchResult") + case "ohAuthTooTokens": + out.Values[i] = ec._OhAuthTooTokenSearchResult_ohAuthTooTokens(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -226577,19 +323780,19 @@ func (ec *executionContext) _EventSearchResult(ctx context.Context, sel ast.Sele return out } -var eventUpdatePayloadImplementors = []string{"EventUpdatePayload"} +var ohAuthTooTokenUpdatePayloadImplementors = []string{"OhAuthTooTokenUpdatePayload"} -func (ec *executionContext) _EventUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EventUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventUpdatePayloadImplementors) +func (ec *executionContext) _OhAuthTooTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OhAuthTooTokenUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EventUpdatePayload") - case "event": - out.Values[i] = ec._EventUpdatePayload_event(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OhAuthTooTokenUpdatePayload") + case "ohAuthTooToken": + out.Values[i] = ec._OhAuthTooTokenUpdatePayload_ohAuthTooToken(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -226616,97 +323819,62 @@ func (ec *executionContext) _EventUpdatePayload(ctx context.Context, sel ast.Sel return out } -var featureImplementors = []string{"Feature", "Node"} +var orgMembershipImplementors = []string{"OrgMembership", "Node"} -func (ec *executionContext) _Feature(ctx context.Context, sel ast.SelectionSet, obj *generated.Feature) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, featureImplementors) +func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembership) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Feature") + out.Values[i] = graphql.MarshalString("OrgMembership") case "id": - out.Values[i] = ec._Feature_id(ctx, field, obj) + out.Values[i] = ec._OrgMembership_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Feature_createdAt(ctx, field, obj) + out.Values[i] = ec._OrgMembership_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Feature_updatedAt(ctx, field, obj) + out.Values[i] = ec._OrgMembership_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Feature_createdBy(ctx, field, obj) + out.Values[i] = ec._OrgMembership_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Feature_updatedBy(ctx, field, obj) + out.Values[i] = ec._OrgMembership_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._Feature_deletedAt(ctx, field, obj) + out.Values[i] = ec._OrgMembership_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._Feature_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Feature_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Feature_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._Feature_name(ctx, field, obj) + out.Values[i] = ec._OrgMembership_deletedBy(ctx, field, obj) + case "role": + out.Values[i] = ec._OrgMembership_role(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "displayName": - out.Values[i] = ec._Feature_displayName(ctx, field, obj) - case "enabled": - out.Values[i] = ec._Feature_enabled(ctx, field, obj) + case "organizationID": + out.Values[i] = ec._OrgMembership_organizationID(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "description": - out.Values[i] = ec._Feature_description(ctx, field, obj) - case "metadata": - out.Values[i] = ec._Feature_metadata(ctx, field, obj) - case "owner": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Feature_owner(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "userID": + out.Values[i] = ec._OrgMembership_userID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "plans": + case "organization": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Feature_plans(ctx, field, obj) + res = ec._OrgMembership_organization(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -226730,16 +323898,19 @@ func (ec *executionContext) _Feature(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "user": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Feature_events(ctx, field, obj) + res = ec._OrgMembership_user(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -226763,7 +323934,7 @@ func (ec *executionContext) _Feature(ctx context.Context, sel ast.SelectionSet, } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "features": + case "events": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -226772,7 +323943,7 @@ func (ec *executionContext) _Feature(ctx context.Context, sel ast.SelectionSet, ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Feature_features(ctx, field, obj) + res = ec._OrgMembership_events(ctx, field, obj) return res } @@ -226819,19 +323990,19 @@ func (ec *executionContext) _Feature(ctx context.Context, sel ast.SelectionSet, return out } -var featureBulkCreatePayloadImplementors = []string{"FeatureBulkCreatePayload"} +var orgMembershipBulkCreatePayloadImplementors = []string{"OrgMembershipBulkCreatePayload"} -func (ec *executionContext) _FeatureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *FeatureBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, featureBulkCreatePayloadImplementors) +func (ec *executionContext) _OrgMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgMembershipBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FeatureBulkCreatePayload") - case "features": - out.Values[i] = ec._FeatureBulkCreatePayload_features(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OrgMembershipBulkCreatePayload") + case "orgMemberships": + out.Values[i] = ec._OrgMembershipBulkCreatePayload_orgMemberships(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -226855,26 +324026,26 @@ func (ec *executionContext) _FeatureBulkCreatePayload(ctx context.Context, sel a return out } -var featureConnectionImplementors = []string{"FeatureConnection"} +var orgMembershipConnectionImplementors = []string{"OrgMembershipConnection"} -func (ec *executionContext) _FeatureConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FeatureConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, featureConnectionImplementors) +func (ec *executionContext) _OrgMembershipConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FeatureConnection") + out.Values[i] = graphql.MarshalString("OrgMembershipConnection") case "edges": - out.Values[i] = ec._FeatureConnection_edges(ctx, field, obj) + out.Values[i] = ec._OrgMembershipConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._FeatureConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._OrgMembershipConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._FeatureConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._OrgMembershipConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -226901,19 +324072,19 @@ func (ec *executionContext) _FeatureConnection(ctx context.Context, sel ast.Sele return out } -var featureCreatePayloadImplementors = []string{"FeatureCreatePayload"} +var orgMembershipCreatePayloadImplementors = []string{"OrgMembershipCreatePayload"} -func (ec *executionContext) _FeatureCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *FeatureCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, featureCreatePayloadImplementors) +func (ec *executionContext) _OrgMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgMembershipCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FeatureCreatePayload") - case "feature": - out.Values[i] = ec._FeatureCreatePayload_feature(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OrgMembershipCreatePayload") + case "orgMembership": + out.Values[i] = ec._OrgMembershipCreatePayload_orgMembership(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -226940,19 +324111,19 @@ func (ec *executionContext) _FeatureCreatePayload(ctx context.Context, sel ast.S return out } -var featureDeletePayloadImplementors = []string{"FeatureDeletePayload"} +var orgMembershipDeletePayloadImplementors = []string{"OrgMembershipDeletePayload"} -func (ec *executionContext) _FeatureDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *FeatureDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, featureDeletePayloadImplementors) +func (ec *executionContext) _OrgMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgMembershipDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FeatureDeletePayload") + out.Values[i] = graphql.MarshalString("OrgMembershipDeletePayload") case "deletedID": - out.Values[i] = ec._FeatureDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = ec._OrgMembershipDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -226979,21 +324150,21 @@ func (ec *executionContext) _FeatureDeletePayload(ctx context.Context, sel ast.S return out } -var featureEdgeImplementors = []string{"FeatureEdge"} +var orgMembershipEdgeImplementors = []string{"OrgMembershipEdge"} -func (ec *executionContext) _FeatureEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FeatureEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, featureEdgeImplementors) +func (ec *executionContext) _OrgMembershipEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FeatureEdge") + out.Values[i] = graphql.MarshalString("OrgMembershipEdge") case "node": - out.Values[i] = ec._FeatureEdge_node(ctx, field, obj) + out.Values[i] = ec._OrgMembershipEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._FeatureEdge_cursor(ctx, field, obj) + out.Values[i] = ec._OrgMembershipEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -227020,66 +324191,61 @@ func (ec *executionContext) _FeatureEdge(ctx context.Context, sel ast.SelectionS return out } -var featureHistoryImplementors = []string{"FeatureHistory", "Node"} +var orgMembershipHistoryImplementors = []string{"OrgMembershipHistory", "Node"} -func (ec *executionContext) _FeatureHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.FeatureHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, featureHistoryImplementors) +func (ec *executionContext) _OrgMembershipHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipHistoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FeatureHistory") + out.Values[i] = graphql.MarshalString("OrgMembershipHistory") case "id": - out.Values[i] = ec._FeatureHistory_id(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistory_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "historyTime": - out.Values[i] = ec._FeatureHistory_historyTime(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistory_historyTime(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "ref": - out.Values[i] = ec._FeatureHistory_ref(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistory_ref(ctx, field, obj) case "operation": - out.Values[i] = ec._FeatureHistory_operation(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistory_operation(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "createdAt": - out.Values[i] = ec._FeatureHistory_createdAt(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistory_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._FeatureHistory_updatedAt(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistory_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._FeatureHistory_createdBy(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistory_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._FeatureHistory_updatedBy(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistory_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._FeatureHistory_deletedAt(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistory_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._FeatureHistory_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._FeatureHistory_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._FeatureHistory_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._FeatureHistory_name(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistory_deletedBy(ctx, field, obj) + case "role": + out.Values[i] = ec._OrgMembershipHistory_role(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "displayName": - out.Values[i] = ec._FeatureHistory_displayName(ctx, field, obj) - case "enabled": - out.Values[i] = ec._FeatureHistory_enabled(ctx, field, obj) + case "organizationID": + out.Values[i] = ec._OrgMembershipHistory_organizationID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "userID": + out.Values[i] = ec._OrgMembershipHistory_userID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "description": - out.Values[i] = ec._FeatureHistory_description(ctx, field, obj) - case "metadata": - out.Values[i] = ec._FeatureHistory_metadata(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -227103,26 +324269,26 @@ func (ec *executionContext) _FeatureHistory(ctx context.Context, sel ast.Selecti return out } -var featureHistoryConnectionImplementors = []string{"FeatureHistoryConnection"} +var orgMembershipHistoryConnectionImplementors = []string{"OrgMembershipHistoryConnection"} -func (ec *executionContext) _FeatureHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FeatureHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, featureHistoryConnectionImplementors) +func (ec *executionContext) _OrgMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FeatureHistoryConnection") + out.Values[i] = graphql.MarshalString("OrgMembershipHistoryConnection") case "edges": - out.Values[i] = ec._FeatureHistoryConnection_edges(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistoryConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._FeatureHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._FeatureHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -227149,21 +324315,21 @@ func (ec *executionContext) _FeatureHistoryConnection(ctx context.Context, sel a return out } -var featureHistoryEdgeImplementors = []string{"FeatureHistoryEdge"} +var orgMembershipHistoryEdgeImplementors = []string{"OrgMembershipHistoryEdge"} -func (ec *executionContext) _FeatureHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FeatureHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, featureHistoryEdgeImplementors) +func (ec *executionContext) _OrgMembershipHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FeatureHistoryEdge") + out.Values[i] = graphql.MarshalString("OrgMembershipHistoryEdge") case "node": - out.Values[i] = ec._FeatureHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistoryEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._FeatureHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = ec._OrgMembershipHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -227190,55 +324356,19 @@ func (ec *executionContext) _FeatureHistoryEdge(ctx context.Context, sel ast.Sel return out } -var featureSearchResultImplementors = []string{"FeatureSearchResult", "SearchResult"} - -func (ec *executionContext) _FeatureSearchResult(ctx context.Context, sel ast.SelectionSet, obj *FeatureSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, featureSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FeatureSearchResult") - case "features": - out.Values[i] = ec._FeatureSearchResult_features(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var featureUpdatePayloadImplementors = []string{"FeatureUpdatePayload"} +var orgMembershipUpdatePayloadImplementors = []string{"OrgMembershipUpdatePayload"} -func (ec *executionContext) _FeatureUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *FeatureUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, featureUpdatePayloadImplementors) +func (ec *executionContext) _OrgMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgMembershipUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("FeatureUpdatePayload") - case "feature": - out.Values[i] = ec._FeatureUpdatePayload_feature(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OrgMembershipUpdatePayload") + case "orgMembership": + out.Values[i] = ec._OrgMembershipUpdatePayload_orgMembership(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -227265,72 +324395,58 @@ func (ec *executionContext) _FeatureUpdatePayload(ctx context.Context, sel ast.S return out } -var fileImplementors = []string{"File", "Node"} +var organizationImplementors = []string{"Organization", "Node"} -func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj *generated.File) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileImplementors) +func (ec *executionContext) _Organization(ctx context.Context, sel ast.SelectionSet, obj *generated.Organization) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("File") + out.Values[i] = graphql.MarshalString("Organization") case "id": - out.Values[i] = ec._File_id(ctx, field, obj) + out.Values[i] = ec._Organization_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._File_createdAt(ctx, field, obj) + out.Values[i] = ec._Organization_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._File_updatedAt(ctx, field, obj) + out.Values[i] = ec._Organization_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._File_createdBy(ctx, field, obj) + out.Values[i] = ec._Organization_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._File_updatedBy(ctx, field, obj) + out.Values[i] = ec._Organization_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Organization_tags(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._File_deletedAt(ctx, field, obj) + out.Values[i] = ec._Organization_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._File_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._File_tags(ctx, field, obj) - case "providedFileName": - out.Values[i] = ec._File_providedFileName(ctx, field, obj) + out.Values[i] = ec._Organization_deletedBy(ctx, field, obj) + case "name": + out.Values[i] = ec._Organization_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "providedFileExtension": - out.Values[i] = ec._File_providedFileExtension(ctx, field, obj) + case "displayName": + out.Values[i] = ec._Organization_displayName(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "providedFileSize": - out.Values[i] = ec._File_providedFileSize(ctx, field, obj) - case "persistedFileSize": - out.Values[i] = ec._File_persistedFileSize(ctx, field, obj) - case "detectedMimeType": - out.Values[i] = ec._File_detectedMimeType(ctx, field, obj) - case "md5Hash": - out.Values[i] = ec._File_md5Hash(ctx, field, obj) - case "detectedContentType": - out.Values[i] = ec._File_detectedContentType(ctx, field, obj) + case "description": + out.Values[i] = ec._Organization_description(ctx, field, obj) + case "personalOrg": + out.Values[i] = ec._Organization_personalOrg(ctx, field, obj) + case "avatarRemoteURL": + out.Values[i] = ec._Organization_avatarRemoteURL(ctx, field, obj) + case "dedicatedDb": + out.Values[i] = ec._Organization_dedicatedDb(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "storeKey": - out.Values[i] = ec._File_storeKey(ctx, field, obj) - case "categoryType": - out.Values[i] = ec._File_categoryType(ctx, field, obj) - case "uri": - out.Values[i] = ec._File_uri(ctx, field, obj) - case "storageScheme": - out.Values[i] = ec._File_storageScheme(ctx, field, obj) - case "storageVolume": - out.Values[i] = ec._File_storageVolume(ctx, field, obj) - case "storagePath": - out.Values[i] = ec._File_storagePath(ctx, field, obj) - case "user": + case "parent": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -227339,7 +324455,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_user(ctx, field, obj) + res = ec._Organization_parent(ctx, field, obj) return res } @@ -227363,16 +324479,19 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organization": + case "children": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_organization(ctx, field, obj) + res = ec._Organization_children(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } @@ -227396,7 +324515,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "group": + case "groups": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -227405,7 +324524,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_group(ctx, field, obj) + res = ec._Organization_groups(ctx, field, obj) return res } @@ -227429,7 +324548,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "contact": + case "templates": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -227438,7 +324557,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_contact(ctx, field, obj) + res = ec._Organization_templates(ctx, field, obj) return res } @@ -227462,7 +324581,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entity": + case "integrations": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -227471,7 +324590,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_entity(ctx, field, obj) + res = ec._Organization_integrations(ctx, field, obj) return res } @@ -227495,7 +324614,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "usersetting": + case "setting": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -227504,7 +324623,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_usersetting(ctx, field, obj) + res = ec._Organization_setting(ctx, field, obj) return res } @@ -227528,7 +324647,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organizationsetting": + case "documentdata": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -227537,7 +324656,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_organizationsetting(ctx, field, obj) + res = ec._Organization_documentdata(ctx, field, obj) return res } @@ -227561,7 +324680,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "template": + case "entitlements": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -227570,7 +324689,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_template(ctx, field, obj) + res = ec._Organization_entitlements(ctx, field, obj) return res } @@ -227594,7 +324713,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "documentdata": + case "organizationEntitlement": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -227603,7 +324722,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_documentdata(ctx, field, obj) + res = ec._Organization_organizationEntitlement(ctx, field, obj) return res } @@ -227627,7 +324746,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "personalAccessTokens": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -227636,7 +324755,7 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._File_events(ctx, field, obj) + res = ec._Organization_personalAccessTokens(ctx, field, obj) return res } @@ -227660,427 +324779,337 @@ func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var fileConnectionImplementors = []string{"FileConnection"} - -func (ec *executionContext) _FileConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FileConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileConnectionImplementors) + case "apiTokens": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FileConnection") - case "edges": - out.Values[i] = ec._FileConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._FileConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._FileConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_apiTokens(ctx, field, obj) + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - -var fileDeletePayloadImplementors = []string{"FileDeletePayload"} - -func (ec *executionContext) _FileDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *FileDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileDeletePayloadImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FileDeletePayload") - case "deletedID": - out.Values[i] = ec._FileDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - return out -} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "oauthprovider": + field := field -var fileEdgeImplementors = []string{"FileEdge"} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_oauthprovider(ctx, field, obj) + return res + } -func (ec *executionContext) _FileEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FileEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileEdgeImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FileEdge") - case "node": - out.Values[i] = ec._FileEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._FileEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "users": + field := field - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_users(ctx, field, obj) + return res + } - return out -} + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) -var fileHistoryImplementors = []string{"FileHistory", "Node"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } -func (ec *executionContext) _FileHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.FileHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileHistoryImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "invites": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FileHistory") - case "id": - out.Values[i] = ec._FileHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._FileHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._FileHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._FileHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._FileHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._FileHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._FileHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._FileHistory_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._FileHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._FileHistory_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._FileHistory_tags(ctx, field, obj) - case "providedFileName": - out.Values[i] = ec._FileHistory_providedFileName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providedFileExtension": - out.Values[i] = ec._FileHistory_providedFileExtension(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "providedFileSize": - out.Values[i] = ec._FileHistory_providedFileSize(ctx, field, obj) - case "persistedFileSize": - out.Values[i] = ec._FileHistory_persistedFileSize(ctx, field, obj) - case "detectedMimeType": - out.Values[i] = ec._FileHistory_detectedMimeType(ctx, field, obj) - case "md5Hash": - out.Values[i] = ec._FileHistory_md5Hash(ctx, field, obj) - case "detectedContentType": - out.Values[i] = ec._FileHistory_detectedContentType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_invites(ctx, field, obj) + return res } - case "storeKey": - out.Values[i] = ec._FileHistory_storeKey(ctx, field, obj) - case "categoryType": - out.Values[i] = ec._FileHistory_categoryType(ctx, field, obj) - case "uri": - out.Values[i] = ec._FileHistory_uri(ctx, field, obj) - case "storageScheme": - out.Values[i] = ec._FileHistory_storageScheme(ctx, field, obj) - case "storageVolume": - out.Values[i] = ec._FileHistory_storageVolume(ctx, field, obj) - case "storagePath": - out.Values[i] = ec._FileHistory_storagePath(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } - return out -} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "subscribers": + field := field -var fileHistoryConnectionImplementors = []string{"FileHistoryConnection"} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_subscribers(ctx, field, obj) + return res + } -func (ec *executionContext) _FileHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.FileHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileHistoryConnectionImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FileHistoryConnection") - case "edges": - out.Values[i] = ec._FileHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._FileHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._FileHistoryConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "webhooks": + field := field - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_webhooks(ctx, field, obj) + return res + } - return out -} + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) -var fileHistoryEdgeImplementors = []string{"FileHistoryEdge"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } -func (ec *executionContext) _FileHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FileHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileHistoryEdgeImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FileHistoryEdge") - case "node": - out.Values[i] = ec._FileHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._FileHistoryEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_events(ctx, field, obj) + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } - return out -} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "secrets": + field := field -var fileSearchResultImplementors = []string{"FileSearchResult", "SearchResult"} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_secrets(ctx, field, obj) + return res + } -func (ec *executionContext) _FileSearchResult(ctx context.Context, sel ast.SelectionSet, obj *FileSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileSearchResultImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FileSearchResult") - case "files": - out.Values[i] = ec._FileSearchResult_files(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "features": + field := field - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_features(ctx, field, obj) + return res + } - return out -} + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) -var groupImplementors = []string{"Group", "Node"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } -func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, obj *generated.Group) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "files": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Group") - case "id": - out.Values[i] = ec._Group_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Group_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Group_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Group_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Group_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._Group_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._Group_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Group_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Group_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._Group_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_files(ctx, field, obj) + return res } - case "description": - out.Values[i] = ec._Group_description(ctx, field, obj) - case "gravatarLogoURL": - out.Values[i] = ec._Group_gravatarLogoURL(ctx, field, obj) - case "logoURL": - out.Values[i] = ec._Group_logoURL(ctx, field, obj) - case "displayName": - out.Values[i] = ec._Group_displayName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - case "owner": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "entitlementplans": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -228089,7 +325118,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_owner(ctx, field, obj) + res = ec._Organization_entitlementplans(ctx, field, obj) return res } @@ -228113,19 +325142,16 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "setting": + case "entitlementplanfeatures": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_setting(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Organization_entitlementplanfeatures(ctx, field, obj) return res } @@ -228149,7 +325175,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "users": + case "entities": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -228158,7 +325184,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_users(ctx, field, obj) + res = ec._Organization_entities(ctx, field, obj) return res } @@ -228182,7 +325208,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "entitytypes": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -228191,7 +325217,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_events(ctx, field, obj) + res = ec._Organization_entitytypes(ctx, field, obj) return res } @@ -228215,7 +325241,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integrations": + case "contacts": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -228224,7 +325250,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_integrations(ctx, field, obj) + res = ec._Organization_contacts(ctx, field, obj) return res } @@ -228248,7 +325274,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "notes": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -228257,7 +325283,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_files(ctx, field, obj) + res = ec._Organization_notes(ctx, field, obj) return res } @@ -228290,7 +325316,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_members(ctx, field, obj) + res = ec._Organization_members(ctx, field, obj) return res } @@ -228337,19 +325363,19 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob return out } -var groupBulkCreatePayloadImplementors = []string{"GroupBulkCreatePayload"} +var organizationBulkCreatePayloadImplementors = []string{"OrganizationBulkCreatePayload"} -func (ec *executionContext) _GroupBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupBulkCreatePayloadImplementors) +func (ec *executionContext) _OrganizationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupBulkCreatePayload") - case "groups": - out.Values[i] = ec._GroupBulkCreatePayload_groups(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OrganizationBulkCreatePayload") + case "organizations": + out.Values[i] = ec._OrganizationBulkCreatePayload_organizations(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -228373,26 +325399,26 @@ func (ec *executionContext) _GroupBulkCreatePayload(ctx context.Context, sel ast return out } -var groupConnectionImplementors = []string{"GroupConnection"} +var organizationConnectionImplementors = []string{"OrganizationConnection"} -func (ec *executionContext) _GroupConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupConnectionImplementors) +func (ec *executionContext) _OrganizationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupConnection") + out.Values[i] = graphql.MarshalString("OrganizationConnection") case "edges": - out.Values[i] = ec._GroupConnection_edges(ctx, field, obj) + out.Values[i] = ec._OrganizationConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._GroupConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._OrganizationConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._GroupConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._OrganizationConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -228419,19 +325445,19 @@ func (ec *executionContext) _GroupConnection(ctx context.Context, sel ast.Select return out } -var groupCreatePayloadImplementors = []string{"GroupCreatePayload"} +var organizationCreatePayloadImplementors = []string{"OrganizationCreatePayload"} -func (ec *executionContext) _GroupCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupCreatePayloadImplementors) +func (ec *executionContext) _OrganizationCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupCreatePayload") - case "group": - out.Values[i] = ec._GroupCreatePayload_group(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OrganizationCreatePayload") + case "organization": + out.Values[i] = ec._OrganizationCreatePayload_organization(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -228458,19 +325484,19 @@ func (ec *executionContext) _GroupCreatePayload(ctx context.Context, sel ast.Sel return out } -var groupDeletePayloadImplementors = []string{"GroupDeletePayload"} +var organizationDeletePayloadImplementors = []string{"OrganizationDeletePayload"} -func (ec *executionContext) _GroupDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupDeletePayloadImplementors) +func (ec *executionContext) _OrganizationDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupDeletePayload") + out.Values[i] = graphql.MarshalString("OrganizationDeletePayload") case "deletedID": - out.Values[i] = ec._GroupDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = ec._OrganizationDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -228497,21 +325523,21 @@ func (ec *executionContext) _GroupDeletePayload(ctx context.Context, sel ast.Sel return out } -var groupEdgeImplementors = []string{"GroupEdge"} +var organizationEdgeImplementors = []string{"OrganizationEdge"} -func (ec *executionContext) _GroupEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupEdgeImplementors) +func (ec *executionContext) _OrganizationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupEdge") + out.Values[i] = graphql.MarshalString("OrganizationEdge") case "node": - out.Values[i] = ec._GroupEdge_node(ctx, field, obj) + out.Values[i] = ec._OrganizationEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._GroupEdge_cursor(ctx, field, obj) + out.Values[i] = ec._OrganizationEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -228538,63 +325564,66 @@ func (ec *executionContext) _GroupEdge(ctx context.Context, sel ast.SelectionSet return out } -var groupHistoryImplementors = []string{"GroupHistory", "Node"} +var organizationHistoryImplementors = []string{"OrganizationHistory", "Node"} -func (ec *executionContext) _GroupHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupHistoryImplementors) +func (ec *executionContext) _OrganizationHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationHistoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupHistory") + out.Values[i] = graphql.MarshalString("OrganizationHistory") case "id": - out.Values[i] = ec._GroupHistory_id(ctx, field, obj) + out.Values[i] = ec._OrganizationHistory_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "historyTime": - out.Values[i] = ec._GroupHistory_historyTime(ctx, field, obj) + out.Values[i] = ec._OrganizationHistory_historyTime(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "ref": - out.Values[i] = ec._GroupHistory_ref(ctx, field, obj) + out.Values[i] = ec._OrganizationHistory_ref(ctx, field, obj) case "operation": - out.Values[i] = ec._GroupHistory_operation(ctx, field, obj) + out.Values[i] = ec._OrganizationHistory_operation(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "createdAt": - out.Values[i] = ec._GroupHistory_createdAt(ctx, field, obj) + out.Values[i] = ec._OrganizationHistory_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._GroupHistory_updatedAt(ctx, field, obj) + out.Values[i] = ec._OrganizationHistory_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._GroupHistory_createdBy(ctx, field, obj) + out.Values[i] = ec._OrganizationHistory_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._GroupHistory_updatedBy(ctx, field, obj) + out.Values[i] = ec._OrganizationHistory_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._OrganizationHistory_tags(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._GroupHistory_deletedAt(ctx, field, obj) + out.Values[i] = ec._OrganizationHistory_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._GroupHistory_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._GroupHistory_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._GroupHistory_ownerID(ctx, field, obj) + out.Values[i] = ec._OrganizationHistory_deletedBy(ctx, field, obj) case "name": - out.Values[i] = ec._GroupHistory_name(ctx, field, obj) + out.Values[i] = ec._OrganizationHistory_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "description": - out.Values[i] = ec._GroupHistory_description(ctx, field, obj) - case "gravatarLogoURL": - out.Values[i] = ec._GroupHistory_gravatarLogoURL(ctx, field, obj) - case "logoURL": - out.Values[i] = ec._GroupHistory_logoURL(ctx, field, obj) case "displayName": - out.Values[i] = ec._GroupHistory_displayName(ctx, field, obj) + out.Values[i] = ec._OrganizationHistory_displayName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec._OrganizationHistory_description(ctx, field, obj) + case "personalOrg": + out.Values[i] = ec._OrganizationHistory_personalOrg(ctx, field, obj) + case "avatarRemoteURL": + out.Values[i] = ec._OrganizationHistory_avatarRemoteURL(ctx, field, obj) + case "dedicatedDb": + out.Values[i] = ec._OrganizationHistory_dedicatedDb(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -228621,26 +325650,26 @@ func (ec *executionContext) _GroupHistory(ctx context.Context, sel ast.Selection return out } -var groupHistoryConnectionImplementors = []string{"GroupHistoryConnection"} +var organizationHistoryConnectionImplementors = []string{"OrganizationHistoryConnection"} -func (ec *executionContext) _GroupHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupHistoryConnectionImplementors) +func (ec *executionContext) _OrganizationHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupHistoryConnection") + out.Values[i] = graphql.MarshalString("OrganizationHistoryConnection") case "edges": - out.Values[i] = ec._GroupHistoryConnection_edges(ctx, field, obj) + out.Values[i] = ec._OrganizationHistoryConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._GroupHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._OrganizationHistoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._GroupHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._OrganizationHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -228667,21 +325696,21 @@ func (ec *executionContext) _GroupHistoryConnection(ctx context.Context, sel ast return out } -var groupHistoryEdgeImplementors = []string{"GroupHistoryEdge"} +var organizationHistoryEdgeImplementors = []string{"OrganizationHistoryEdge"} -func (ec *executionContext) _GroupHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupHistoryEdgeImplementors) +func (ec *executionContext) _OrganizationHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupHistoryEdge") + out.Values[i] = graphql.MarshalString("OrganizationHistoryEdge") case "node": - out.Values[i] = ec._GroupHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._OrganizationHistoryEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._GroupHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = ec._OrganizationHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -228708,98 +325737,98 @@ func (ec *executionContext) _GroupHistoryEdge(ctx context.Context, sel ast.Selec return out } -var groupMembershipImplementors = []string{"GroupMembership", "Node"} +var organizationSearchResultImplementors = []string{"OrganizationSearchResult", "SearchResult"} -func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembership) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipImplementors) +func (ec *executionContext) _OrganizationSearchResult(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembership") + out.Values[i] = graphql.MarshalString("OrganizationSearchResult") + case "organizations": + out.Values[i] = ec._OrganizationSearchResult_organizations(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var organizationSettingImplementors = []string{"OrganizationSetting", "Node"} + +func (ec *executionContext) _OrganizationSetting(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSetting) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrganizationSetting") case "id": - out.Values[i] = ec._GroupMembership_id(ctx, field, obj) + out.Values[i] = ec._OrganizationSetting_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._GroupMembership_createdAt(ctx, field, obj) + out.Values[i] = ec._OrganizationSetting_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._GroupMembership_updatedAt(ctx, field, obj) + out.Values[i] = ec._OrganizationSetting_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._GroupMembership_createdBy(ctx, field, obj) + out.Values[i] = ec._OrganizationSetting_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._GroupMembership_updatedBy(ctx, field, obj) + out.Values[i] = ec._OrganizationSetting_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._OrganizationSetting_tags(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._GroupMembership_deletedAt(ctx, field, obj) + out.Values[i] = ec._OrganizationSetting_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._GroupMembership_deletedBy(ctx, field, obj) - case "role": - out.Values[i] = ec._GroupMembership_role(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "groupID": - out.Values[i] = ec._GroupMembership_groupID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userID": - out.Values[i] = ec._GroupMembership_userID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "group": - 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._GroupMembership_group(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "user": + out.Values[i] = ec._OrganizationSetting_deletedBy(ctx, field, obj) + case "domains": + out.Values[i] = ec._OrganizationSetting_domains(ctx, field, obj) + case "billingContact": + out.Values[i] = ec._OrganizationSetting_billingContact(ctx, field, obj) + case "billingEmail": + out.Values[i] = ec._OrganizationSetting_billingEmail(ctx, field, obj) + case "billingPhone": + out.Values[i] = ec._OrganizationSetting_billingPhone(ctx, field, obj) + case "billingAddress": + out.Values[i] = ec._OrganizationSetting_billingAddress(ctx, field, obj) + case "taxIdentifier": + out.Values[i] = ec._OrganizationSetting_taxIdentifier(ctx, field, obj) + case "geoLocation": + out.Values[i] = ec._OrganizationSetting_geoLocation(ctx, field, obj) + case "organizationID": + out.Values[i] = ec._OrganizationSetting_organizationID(ctx, field, obj) + case "organization": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._GroupMembership_user(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._OrganizationSetting_organization(ctx, field, obj) return res } @@ -228823,7 +325852,7 @@ func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.Select } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "files": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -228832,7 +325861,7 @@ func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.Select ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._GroupMembership_events(ctx, field, obj) + res = ec._OrganizationSetting_files(ctx, field, obj) return res } @@ -228879,19 +325908,19 @@ func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.Select return out } -var groupMembershipBulkCreatePayloadImplementors = []string{"GroupMembershipBulkCreatePayload"} +var organizationSettingBulkCreatePayloadImplementors = []string{"OrganizationSettingBulkCreatePayload"} -func (ec *executionContext) _GroupMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupMembershipBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipBulkCreatePayloadImplementors) +func (ec *executionContext) _OrganizationSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipBulkCreatePayload") - case "groupMemberships": - out.Values[i] = ec._GroupMembershipBulkCreatePayload_groupMemberships(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OrganizationSettingBulkCreatePayload") + case "organizationSettings": + out.Values[i] = ec._OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -228915,26 +325944,26 @@ func (ec *executionContext) _GroupMembershipBulkCreatePayload(ctx context.Contex return out } -var groupMembershipConnectionImplementors = []string{"GroupMembershipConnection"} +var organizationSettingConnectionImplementors = []string{"OrganizationSettingConnection"} -func (ec *executionContext) _GroupMembershipConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipConnectionImplementors) +func (ec *executionContext) _OrganizationSettingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSettingConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipConnection") + out.Values[i] = graphql.MarshalString("OrganizationSettingConnection") case "edges": - out.Values[i] = ec._GroupMembershipConnection_edges(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._GroupMembershipConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._GroupMembershipConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -228961,19 +325990,19 @@ func (ec *executionContext) _GroupMembershipConnection(ctx context.Context, sel return out } -var groupMembershipCreatePayloadImplementors = []string{"GroupMembershipCreatePayload"} +var organizationSettingCreatePayloadImplementors = []string{"OrganizationSettingCreatePayload"} -func (ec *executionContext) _GroupMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupMembershipCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipCreatePayloadImplementors) +func (ec *executionContext) _OrganizationSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipCreatePayload") - case "groupMembership": - out.Values[i] = ec._GroupMembershipCreatePayload_groupMembership(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OrganizationSettingCreatePayload") + case "organizationSetting": + out.Values[i] = ec._OrganizationSettingCreatePayload_organizationSetting(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -229000,19 +326029,19 @@ func (ec *executionContext) _GroupMembershipCreatePayload(ctx context.Context, s return out } -var groupMembershipDeletePayloadImplementors = []string{"GroupMembershipDeletePayload"} +var organizationSettingDeletePayloadImplementors = []string{"OrganizationSettingDeletePayload"} -func (ec *executionContext) _GroupMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupMembershipDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipDeletePayloadImplementors) +func (ec *executionContext) _OrganizationSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipDeletePayload") + out.Values[i] = graphql.MarshalString("OrganizationSettingDeletePayload") case "deletedID": - out.Values[i] = ec._GroupMembershipDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -229039,21 +326068,21 @@ func (ec *executionContext) _GroupMembershipDeletePayload(ctx context.Context, s return out } -var groupMembershipEdgeImplementors = []string{"GroupMembershipEdge"} +var organizationSettingEdgeImplementors = []string{"OrganizationSettingEdge"} -func (ec *executionContext) _GroupMembershipEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipEdgeImplementors) +func (ec *executionContext) _OrganizationSettingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSettingEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipEdge") + out.Values[i] = graphql.MarshalString("OrganizationSettingEdge") case "node": - out.Values[i] = ec._GroupMembershipEdge_node(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._GroupMembershipEdge_cursor(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -229080,61 +326109,64 @@ func (ec *executionContext) _GroupMembershipEdge(ctx context.Context, sel ast.Se return out } -var groupMembershipHistoryImplementors = []string{"GroupMembershipHistory", "Node"} +var organizationSettingHistoryImplementors = []string{"OrganizationSettingHistory", "Node"} -func (ec *executionContext) _GroupMembershipHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipHistoryImplementors) +func (ec *executionContext) _OrganizationSettingHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSettingHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingHistoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipHistory") + out.Values[i] = graphql.MarshalString("OrganizationSettingHistory") case "id": - out.Values[i] = ec._GroupMembershipHistory_id(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistory_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "historyTime": - out.Values[i] = ec._GroupMembershipHistory_historyTime(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistory_historyTime(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "ref": - out.Values[i] = ec._GroupMembershipHistory_ref(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistory_ref(ctx, field, obj) case "operation": - out.Values[i] = ec._GroupMembershipHistory_operation(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistory_operation(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "createdAt": - out.Values[i] = ec._GroupMembershipHistory_createdAt(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistory_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._GroupMembershipHistory_updatedAt(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistory_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._GroupMembershipHistory_createdBy(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistory_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._GroupMembershipHistory_updatedBy(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistory_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._OrganizationSettingHistory_tags(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._GroupMembershipHistory_deletedAt(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistory_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._GroupMembershipHistory_deletedBy(ctx, field, obj) - case "role": - out.Values[i] = ec._GroupMembershipHistory_role(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "groupID": - out.Values[i] = ec._GroupMembershipHistory_groupID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "userID": - out.Values[i] = ec._GroupMembershipHistory_userID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = ec._OrganizationSettingHistory_deletedBy(ctx, field, obj) + case "domains": + out.Values[i] = ec._OrganizationSettingHistory_domains(ctx, field, obj) + case "billingContact": + out.Values[i] = ec._OrganizationSettingHistory_billingContact(ctx, field, obj) + case "billingEmail": + out.Values[i] = ec._OrganizationSettingHistory_billingEmail(ctx, field, obj) + case "billingPhone": + out.Values[i] = ec._OrganizationSettingHistory_billingPhone(ctx, field, obj) + case "billingAddress": + out.Values[i] = ec._OrganizationSettingHistory_billingAddress(ctx, field, obj) + case "taxIdentifier": + out.Values[i] = ec._OrganizationSettingHistory_taxIdentifier(ctx, field, obj) + case "geoLocation": + out.Values[i] = ec._OrganizationSettingHistory_geoLocation(ctx, field, obj) + case "organizationID": + out.Values[i] = ec._OrganizationSettingHistory_organizationID(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -229158,26 +326190,26 @@ func (ec *executionContext) _GroupMembershipHistory(ctx context.Context, sel ast return out } -var groupMembershipHistoryConnectionImplementors = []string{"GroupMembershipHistoryConnection"} +var organizationSettingHistoryConnectionImplementors = []string{"OrganizationSettingHistoryConnection"} -func (ec *executionContext) _GroupMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipHistoryConnectionImplementors) +func (ec *executionContext) _OrganizationSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSettingHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipHistoryConnection") + out.Values[i] = graphql.MarshalString("OrganizationSettingHistoryConnection") case "edges": - out.Values[i] = ec._GroupMembershipHistoryConnection_edges(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistoryConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._GroupMembershipHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._GroupMembershipHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -229204,21 +326236,21 @@ func (ec *executionContext) _GroupMembershipHistoryConnection(ctx context.Contex return out } -var groupMembershipHistoryEdgeImplementors = []string{"GroupMembershipHistoryEdge"} +var organizationSettingHistoryEdgeImplementors = []string{"OrganizationSettingHistoryEdge"} -func (ec *executionContext) _GroupMembershipHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipHistoryEdgeImplementors) +func (ec *executionContext) _OrganizationSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSettingHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipHistoryEdge") + out.Values[i] = graphql.MarshalString("OrganizationSettingHistoryEdge") case "node": - out.Values[i] = ec._GroupMembershipHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistoryEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._GroupMembershipHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = ec._OrganizationSettingHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -229245,22 +326277,19 @@ func (ec *executionContext) _GroupMembershipHistoryEdge(ctx context.Context, sel return out } -var groupMembershipUpdatePayloadImplementors = []string{"GroupMembershipUpdatePayload"} +var organizationSettingSearchResultImplementors = []string{"OrganizationSettingSearchResult", "SearchResult"} -func (ec *executionContext) _GroupMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupMembershipUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipUpdatePayloadImplementors) +func (ec *executionContext) _OrganizationSettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipUpdatePayload") - case "groupMembership": - out.Values[i] = ec._GroupMembershipUpdatePayload_groupMembership(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = graphql.MarshalString("OrganizationSettingSearchResult") + case "organizationSettings": + out.Values[i] = ec._OrganizationSettingSearchResult_organizationSettings(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -229284,19 +326313,22 @@ func (ec *executionContext) _GroupMembershipUpdatePayload(ctx context.Context, s return out } -var groupSearchResultImplementors = []string{"GroupSearchResult", "SearchResult"} +var organizationSettingUpdatePayloadImplementors = []string{"OrganizationSettingUpdatePayload"} -func (ec *executionContext) _GroupSearchResult(ctx context.Context, sel ast.SelectionSet, obj *GroupSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSearchResultImplementors) +func (ec *executionContext) _OrganizationSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupSearchResult") - case "groups": - out.Values[i] = ec._GroupSearchResult_groups(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OrganizationSettingUpdatePayload") + case "organizationSetting": + out.Values[i] = ec._OrganizationSettingUpdatePayload_organizationSetting(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -229320,85 +326352,22 @@ func (ec *executionContext) _GroupSearchResult(ctx context.Context, sel ast.Sele return out } -var groupSettingImplementors = []string{"GroupSetting", "Node"} +var organizationUpdatePayloadImplementors = []string{"OrganizationUpdatePayload"} -func (ec *executionContext) _GroupSetting(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSetting) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingImplementors) +func (ec *executionContext) _OrganizationUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupSetting") - case "id": - out.Values[i] = ec._GroupSetting_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._GroupSetting_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._GroupSetting_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._GroupSetting_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._GroupSetting_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._GroupSetting_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._GroupSetting_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._GroupSetting_deletedBy(ctx, field, obj) - case "visibility": - out.Values[i] = ec._GroupSetting_visibility(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "joinPolicy": - out.Values[i] = ec._GroupSetting_joinPolicy(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OrganizationUpdatePayload") + case "organization": + out.Values[i] = ec._OrganizationUpdatePayload_organization(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "syncToSlack": - out.Values[i] = ec._GroupSetting_syncToSlack(ctx, field, obj) - case "syncToGithub": - out.Values[i] = ec._GroupSetting_syncToGithub(ctx, field, obj) - case "groupID": - out.Values[i] = ec._GroupSetting_groupID(ctx, field, obj) - case "group": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._GroupSetting_group(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -229422,19 +326391,31 @@ func (ec *executionContext) _GroupSetting(ctx context.Context, sel ast.Selection return out } -var groupSettingBulkCreatePayloadImplementors = []string{"GroupSettingBulkCreatePayload"} +var pageInfoImplementors = []string{"PageInfo"} -func (ec *executionContext) _GroupSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingBulkCreatePayloadImplementors) +func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *entgql.PageInfo[string]) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingBulkCreatePayload") - case "groupSettings": - out.Values[i] = ec._GroupSettingBulkCreatePayload_groupSettings(ctx, field, obj) + out.Values[i] = graphql.MarshalString("PageInfo") + case "hasNextPage": + out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "hasPreviousPage": + out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "startCursor": + out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj) + case "endCursor": + out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -229458,107 +326439,156 @@ func (ec *executionContext) _GroupSettingBulkCreatePayload(ctx context.Context, return out } -var groupSettingConnectionImplementors = []string{"GroupSettingConnection"} +var personalAccessTokenImplementors = []string{"PersonalAccessToken", "Node"} -func (ec *executionContext) _GroupSettingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingConnectionImplementors) +func (ec *executionContext) _PersonalAccessToken(ctx context.Context, sel ast.SelectionSet, obj *generated.PersonalAccessToken) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingConnection") - case "edges": - out.Values[i] = ec._GroupSettingConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._GroupSettingConnection_pageInfo(ctx, field, obj) + out.Values[i] = graphql.MarshalString("PersonalAccessToken") + case "id": + out.Values[i] = ec._PersonalAccessToken_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } - case "totalCount": - out.Values[i] = ec._GroupSettingConnection_totalCount(ctx, field, obj) + case "createdAt": + out.Values[i] = ec._PersonalAccessToken_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._PersonalAccessToken_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._PersonalAccessToken_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._PersonalAccessToken_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._PersonalAccessToken_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._PersonalAccessToken_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._PersonalAccessToken_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._PersonalAccessToken_name(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + case "token": + out.Values[i] = ec._PersonalAccessToken_token(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "expiresAt": + out.Values[i] = ec._PersonalAccessToken_expiresAt(ctx, field, obj) + case "description": + out.Values[i] = ec._PersonalAccessToken_description(ctx, field, obj) + case "scopes": + out.Values[i] = ec._PersonalAccessToken_scopes(ctx, field, obj) + case "lastUsedAt": + out.Values[i] = ec._PersonalAccessToken_lastUsedAt(ctx, field, obj) + case "owner": + field := field - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PersonalAccessToken_owner(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - return out -} + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) -var groupSettingCreatePayloadImplementors = []string{"GroupSettingCreatePayload"} + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } -func (ec *executionContext) _GroupSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingCreatePayloadImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "organizations": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingCreatePayload") - case "groupSetting": - out.Values[i] = ec._GroupSettingCreatePayload_groupSetting(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PersonalAccessToken_organizations(ctx, field, obj) + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } - return out -} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": + field := field -var groupSettingDeletePayloadImplementors = []string{"GroupSettingDeletePayload"} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._PersonalAccessToken_events(ctx, field, obj) + return res + } -func (ec *executionContext) _GroupSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingDeletePayloadImplementors) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingDeletePayload") - case "deletedID": - out.Values[i] = ec._GroupSettingDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -229582,24 +326612,19 @@ func (ec *executionContext) _GroupSettingDeletePayload(ctx context.Context, sel return out } -var groupSettingEdgeImplementors = []string{"GroupSettingEdge"} +var personalAccessTokenBulkCreatePayloadImplementors = []string{"PersonalAccessTokenBulkCreatePayload"} -func (ec *executionContext) _GroupSettingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingEdgeImplementors) +func (ec *executionContext) _PersonalAccessTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingEdge") - case "node": - out.Values[i] = ec._GroupSettingEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._GroupSettingEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = graphql.MarshalString("PersonalAccessTokenBulkCreatePayload") + case "personalAccessTokens": + out.Values[i] = ec._PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -229623,64 +326648,29 @@ func (ec *executionContext) _GroupSettingEdge(ctx context.Context, sel ast.Selec return out } -var groupSettingHistoryImplementors = []string{"GroupSettingHistory", "Node"} +var personalAccessTokenConnectionImplementors = []string{"PersonalAccessTokenConnection"} -func (ec *executionContext) _GroupSettingHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingHistoryImplementors) +func (ec *executionContext) _PersonalAccessTokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.PersonalAccessTokenConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingHistory") - case "id": - out.Values[i] = ec._GroupSettingHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._GroupSettingHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._GroupSettingHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._GroupSettingHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._GroupSettingHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._GroupSettingHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._GroupSettingHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._GroupSettingHistory_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._GroupSettingHistory_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._GroupSettingHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._GroupSettingHistory_deletedBy(ctx, field, obj) - case "visibility": - out.Values[i] = ec._GroupSettingHistory_visibility(ctx, field, obj) + out.Values[i] = graphql.MarshalString("PersonalAccessTokenConnection") + case "edges": + out.Values[i] = ec._PersonalAccessTokenConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._PersonalAccessTokenConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "joinPolicy": - out.Values[i] = ec._GroupSettingHistory_joinPolicy(ctx, field, obj) + case "totalCount": + out.Values[i] = ec._PersonalAccessTokenConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "syncToSlack": - out.Values[i] = ec._GroupSettingHistory_syncToSlack(ctx, field, obj) - case "syncToGithub": - out.Values[i] = ec._GroupSettingHistory_syncToGithub(ctx, field, obj) - case "groupID": - out.Values[i] = ec._GroupSettingHistory_groupID(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -229704,26 +326694,19 @@ func (ec *executionContext) _GroupSettingHistory(ctx context.Context, sel ast.Se return out } -var groupSettingHistoryConnectionImplementors = []string{"GroupSettingHistoryConnection"} +var personalAccessTokenCreatePayloadImplementors = []string{"PersonalAccessTokenCreatePayload"} -func (ec *executionContext) _GroupSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingHistoryConnectionImplementors) +func (ec *executionContext) _PersonalAccessTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingHistoryConnection") - case "edges": - out.Values[i] = ec._GroupSettingHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._GroupSettingHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._GroupSettingHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = graphql.MarshalString("PersonalAccessTokenCreatePayload") + case "personalAccessToken": + out.Values[i] = ec._PersonalAccessTokenCreatePayload_personalAccessToken(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -229750,21 +326733,19 @@ func (ec *executionContext) _GroupSettingHistoryConnection(ctx context.Context, return out } -var groupSettingHistoryEdgeImplementors = []string{"GroupSettingHistoryEdge"} +var personalAccessTokenDeletePayloadImplementors = []string{"PersonalAccessTokenDeletePayload"} -func (ec *executionContext) _GroupSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingHistoryEdgeImplementors) +func (ec *executionContext) _PersonalAccessTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingHistoryEdge") - case "node": - out.Values[i] = ec._GroupSettingHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._GroupSettingHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = graphql.MarshalString("PersonalAccessTokenDeletePayload") + case "deletedID": + out.Values[i] = ec._PersonalAccessTokenDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -229791,19 +326772,24 @@ func (ec *executionContext) _GroupSettingHistoryEdge(ctx context.Context, sel as return out } -var groupSettingSearchResultImplementors = []string{"GroupSettingSearchResult", "SearchResult"} +var personalAccessTokenEdgeImplementors = []string{"PersonalAccessTokenEdge"} -func (ec *executionContext) _GroupSettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingSearchResultImplementors) +func (ec *executionContext) _PersonalAccessTokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.PersonalAccessTokenEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingSearchResult") - case "groupSettings": - out.Values[i] = ec._GroupSettingSearchResult_groupSettings(ctx, field, obj) + case "__typename": + out.Values[i] = graphql.MarshalString("PersonalAccessTokenEdge") + case "node": + out.Values[i] = ec._PersonalAccessTokenEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._PersonalAccessTokenEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -229827,22 +326813,19 @@ func (ec *executionContext) _GroupSettingSearchResult(ctx context.Context, sel a return out } -var groupSettingUpdatePayloadImplementors = []string{"GroupSettingUpdatePayload"} +var personalAccessTokenSearchResultImplementors = []string{"PersonalAccessTokenSearchResult", "SearchResult"} -func (ec *executionContext) _GroupSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingUpdatePayloadImplementors) +func (ec *executionContext) _PersonalAccessTokenSearchResult(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingUpdatePayload") - case "groupSetting": - out.Values[i] = ec._GroupSettingUpdatePayload_groupSetting(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = graphql.MarshalString("PersonalAccessTokenSearchResult") + case "personalAccessTokens": + out.Values[i] = ec._PersonalAccessTokenSearchResult_personalAccessTokens(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -229866,19 +326849,19 @@ func (ec *executionContext) _GroupSettingUpdatePayload(ctx context.Context, sel return out } -var groupUpdatePayloadImplementors = []string{"GroupUpdatePayload"} +var personalAccessTokenUpdatePayloadImplementors = []string{"PersonalAccessTokenUpdatePayload"} -func (ec *executionContext) _GroupUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupUpdatePayloadImplementors) +func (ec *executionContext) _PersonalAccessTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("GroupUpdatePayload") - case "group": - out.Values[i] = ec._GroupUpdatePayload_group(ctx, field, obj) + out.Values[i] = graphql.MarshalString("PersonalAccessTokenUpdatePayload") + case "personalAccessToken": + out.Values[i] = ec._PersonalAccessTokenUpdatePayload_personalAccessToken(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -229905,46 +326888,58 @@ func (ec *executionContext) _GroupUpdatePayload(ctx context.Context, sel ast.Sel return out } -var hushImplementors = []string{"Hush", "Node"} +var procedureImplementors = []string{"Procedure", "Node"} -func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj *generated.Hush) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushImplementors) +func (ec *executionContext) _Procedure(ctx context.Context, sel ast.SelectionSet, obj *generated.Procedure) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Hush") + out.Values[i] = graphql.MarshalString("Procedure") case "id": - out.Values[i] = ec._Hush_id(ctx, field, obj) + out.Values[i] = ec._Procedure_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Hush_createdAt(ctx, field, obj) + out.Values[i] = ec._Procedure_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Hush_updatedAt(ctx, field, obj) + out.Values[i] = ec._Procedure_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Hush_createdBy(ctx, field, obj) + out.Values[i] = ec._Procedure_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Hush_updatedBy(ctx, field, obj) + out.Values[i] = ec._Procedure_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._Hush_deletedAt(ctx, field, obj) + out.Values[i] = ec._Procedure_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._Hush_deletedBy(ctx, field, obj) + out.Values[i] = ec._Procedure_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Procedure_tags(ctx, field, obj) case "name": - out.Values[i] = ec._Hush_name(ctx, field, obj) + out.Values[i] = ec._Procedure_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "description": - out.Values[i] = ec._Hush_description(ctx, field, obj) - case "kind": - out.Values[i] = ec._Hush_kind(ctx, field, obj) - case "secretName": - out.Values[i] = ec._Hush_secretName(ctx, field, obj) - case "integrations": + out.Values[i] = ec._Procedure_description(ctx, field, obj) + case "status": + out.Values[i] = ec._Procedure_status(ctx, field, obj) + case "procedureType": + out.Values[i] = ec._Procedure_procedureType(ctx, field, obj) + case "version": + out.Values[i] = ec._Procedure_version(ctx, field, obj) + case "purposeAndScope": + out.Values[i] = ec._Procedure_purposeAndScope(ctx, field, obj) + case "background": + out.Values[i] = ec._Procedure_background(ctx, field, obj) + case "satisfies": + out.Values[i] = ec._Procedure_satisfies(ctx, field, obj) + case "details": + out.Values[i] = ec._Procedure_details(ctx, field, obj) + case "control": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -229953,7 +326948,7 @@ func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Hush_integrations(ctx, field, obj) + res = ec._Procedure_control(ctx, field, obj) return res } @@ -229977,7 +326972,7 @@ func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organization": + case "internalpolicy": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -229986,7 +326981,7 @@ func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Hush_organization(ctx, field, obj) + res = ec._Procedure_internalpolicy(ctx, field, obj) return res } @@ -230010,7 +327005,7 @@ func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "narratives": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -230019,7 +327014,40 @@ func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Hush_events(ctx, field, obj) + res = ec._Procedure_narratives(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "risks": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Procedure_risks(ctx, field, obj) return res } @@ -230066,19 +327094,19 @@ func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj return out } -var hushBulkCreatePayloadImplementors = []string{"HushBulkCreatePayload"} +var procedureBulkCreatePayloadImplementors = []string{"ProcedureBulkCreatePayload"} -func (ec *executionContext) _HushBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *HushBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushBulkCreatePayloadImplementors) +func (ec *executionContext) _ProcedureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ProcedureBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushBulkCreatePayload") - case "hushes": - out.Values[i] = ec._HushBulkCreatePayload_hushes(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ProcedureBulkCreatePayload") + case "procedures": + out.Values[i] = ec._ProcedureBulkCreatePayload_procedures(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -230102,26 +327130,26 @@ func (ec *executionContext) _HushBulkCreatePayload(ctx context.Context, sel ast. return out } -var hushConnectionImplementors = []string{"HushConnection"} +var procedureConnectionImplementors = []string{"ProcedureConnection"} -func (ec *executionContext) _HushConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.HushConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushConnectionImplementors) +func (ec *executionContext) _ProcedureConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ProcedureConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushConnection") + out.Values[i] = graphql.MarshalString("ProcedureConnection") case "edges": - out.Values[i] = ec._HushConnection_edges(ctx, field, obj) + out.Values[i] = ec._ProcedureConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._HushConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._ProcedureConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._HushConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._ProcedureConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -230148,19 +327176,19 @@ func (ec *executionContext) _HushConnection(ctx context.Context, sel ast.Selecti return out } -var hushCreatePayloadImplementors = []string{"HushCreatePayload"} +var procedureCreatePayloadImplementors = []string{"ProcedureCreatePayload"} -func (ec *executionContext) _HushCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *HushCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushCreatePayloadImplementors) +func (ec *executionContext) _ProcedureCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ProcedureCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushCreatePayload") - case "hush": - out.Values[i] = ec._HushCreatePayload_hush(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ProcedureCreatePayload") + case "procedure": + out.Values[i] = ec._ProcedureCreatePayload_procedure(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -230187,19 +327215,19 @@ func (ec *executionContext) _HushCreatePayload(ctx context.Context, sel ast.Sele return out } -var hushDeletePayloadImplementors = []string{"HushDeletePayload"} +var procedureDeletePayloadImplementors = []string{"ProcedureDeletePayload"} -func (ec *executionContext) _HushDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *HushDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushDeletePayloadImplementors) +func (ec *executionContext) _ProcedureDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ProcedureDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushDeletePayload") + out.Values[i] = graphql.MarshalString("ProcedureDeletePayload") case "deletedID": - out.Values[i] = ec._HushDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = ec._ProcedureDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -230226,21 +327254,21 @@ func (ec *executionContext) _HushDeletePayload(ctx context.Context, sel ast.Sele return out } -var hushEdgeImplementors = []string{"HushEdge"} +var procedureEdgeImplementors = []string{"ProcedureEdge"} -func (ec *executionContext) _HushEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.HushEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushEdgeImplementors) +func (ec *executionContext) _ProcedureEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ProcedureEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushEdge") + out.Values[i] = graphql.MarshalString("ProcedureEdge") case "node": - out.Values[i] = ec._HushEdge_node(ctx, field, obj) + out.Values[i] = ec._ProcedureEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._HushEdge_cursor(ctx, field, obj) + out.Values[i] = ec._ProcedureEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -230267,57 +327295,69 @@ func (ec *executionContext) _HushEdge(ctx context.Context, sel ast.SelectionSet, return out } -var hushHistoryImplementors = []string{"HushHistory", "Node"} +var procedureHistoryImplementors = []string{"ProcedureHistory", "Node"} -func (ec *executionContext) _HushHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.HushHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushHistoryImplementors) +func (ec *executionContext) _ProcedureHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.ProcedureHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureHistoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushHistory") + out.Values[i] = graphql.MarshalString("ProcedureHistory") case "id": - out.Values[i] = ec._HushHistory_id(ctx, field, obj) + out.Values[i] = ec._ProcedureHistory_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "historyTime": - out.Values[i] = ec._HushHistory_historyTime(ctx, field, obj) + out.Values[i] = ec._ProcedureHistory_historyTime(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "ref": - out.Values[i] = ec._HushHistory_ref(ctx, field, obj) + out.Values[i] = ec._ProcedureHistory_ref(ctx, field, obj) case "operation": - out.Values[i] = ec._HushHistory_operation(ctx, field, obj) + out.Values[i] = ec._ProcedureHistory_operation(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "createdAt": - out.Values[i] = ec._HushHistory_createdAt(ctx, field, obj) + out.Values[i] = ec._ProcedureHistory_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._HushHistory_updatedAt(ctx, field, obj) + out.Values[i] = ec._ProcedureHistory_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._HushHistory_createdBy(ctx, field, obj) + out.Values[i] = ec._ProcedureHistory_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._HushHistory_updatedBy(ctx, field, obj) + out.Values[i] = ec._ProcedureHistory_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._HushHistory_deletedAt(ctx, field, obj) + out.Values[i] = ec._ProcedureHistory_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._HushHistory_deletedBy(ctx, field, obj) + out.Values[i] = ec._ProcedureHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._ProcedureHistory_tags(ctx, field, obj) case "name": - out.Values[i] = ec._HushHistory_name(ctx, field, obj) + out.Values[i] = ec._ProcedureHistory_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - out.Values[i] = ec._HushHistory_description(ctx, field, obj) - case "kind": - out.Values[i] = ec._HushHistory_kind(ctx, field, obj) - case "secretName": - out.Values[i] = ec._HushHistory_secretName(ctx, field, obj) + out.Values[i] = ec._ProcedureHistory_description(ctx, field, obj) + case "status": + out.Values[i] = ec._ProcedureHistory_status(ctx, field, obj) + case "procedureType": + out.Values[i] = ec._ProcedureHistory_procedureType(ctx, field, obj) + case "version": + out.Values[i] = ec._ProcedureHistory_version(ctx, field, obj) + case "purposeAndScope": + out.Values[i] = ec._ProcedureHistory_purposeAndScope(ctx, field, obj) + case "background": + out.Values[i] = ec._ProcedureHistory_background(ctx, field, obj) + case "satisfies": + out.Values[i] = ec._ProcedureHistory_satisfies(ctx, field, obj) + case "details": + out.Values[i] = ec._ProcedureHistory_details(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -230341,26 +327381,26 @@ func (ec *executionContext) _HushHistory(ctx context.Context, sel ast.SelectionS return out } -var hushHistoryConnectionImplementors = []string{"HushHistoryConnection"} +var procedureHistoryConnectionImplementors = []string{"ProcedureHistoryConnection"} -func (ec *executionContext) _HushHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.HushHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushHistoryConnectionImplementors) +func (ec *executionContext) _ProcedureHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ProcedureHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushHistoryConnection") + out.Values[i] = graphql.MarshalString("ProcedureHistoryConnection") case "edges": - out.Values[i] = ec._HushHistoryConnection_edges(ctx, field, obj) + out.Values[i] = ec._ProcedureHistoryConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._HushHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._ProcedureHistoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._HushHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._ProcedureHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -230387,21 +327427,21 @@ func (ec *executionContext) _HushHistoryConnection(ctx context.Context, sel ast. return out } -var hushHistoryEdgeImplementors = []string{"HushHistoryEdge"} +var procedureHistoryEdgeImplementors = []string{"ProcedureHistoryEdge"} -func (ec *executionContext) _HushHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.HushHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushHistoryEdgeImplementors) +func (ec *executionContext) _ProcedureHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ProcedureHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushHistoryEdge") + out.Values[i] = graphql.MarshalString("ProcedureHistoryEdge") case "node": - out.Values[i] = ec._HushHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._ProcedureHistoryEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._HushHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = ec._ProcedureHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -230428,19 +327468,55 @@ func (ec *executionContext) _HushHistoryEdge(ctx context.Context, sel ast.Select return out } -var hushUpdatePayloadImplementors = []string{"HushUpdatePayload"} +var procedureSearchResultImplementors = []string{"ProcedureSearchResult", "SearchResult"} -func (ec *executionContext) _HushUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *HushUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushUpdatePayloadImplementors) +func (ec *executionContext) _ProcedureSearchResult(ctx context.Context, sel ast.SelectionSet, obj *ProcedureSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushUpdatePayload") - case "hush": - out.Values[i] = ec._HushUpdatePayload_hush(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ProcedureSearchResult") + case "procedures": + out.Values[i] = ec._ProcedureSearchResult_procedures(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var procedureUpdatePayloadImplementors = []string{"ProcedureUpdatePayload"} + +func (ec *executionContext) _ProcedureUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ProcedureUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProcedureUpdatePayload") + case "procedure": + out.Values[i] = ec._ProcedureUpdatePayload_procedure(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -230467,3094 +327543,3492 @@ func (ec *executionContext) _HushUpdatePayload(ctx context.Context, sel ast.Sele return out } -var integrationImplementors = []string{"Integration", "Node"} +var queryImplementors = []string{"Query"} -func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionSet, obj *generated.Integration) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationImplementors) +func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) + ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ + Object: "Query", + }) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { + innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ + Object: field.Name, + Field: field, + }) + switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Integration") - case "id": - out.Values[i] = ec._Integration_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Values[i] = graphql.MarshalString("Query") + case "node": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_node(ctx, field) + return res } - case "createdAt": - out.Values[i] = ec._Integration_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Integration_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Integration_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Integration_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Integration_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._Integration_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._Integration_deletedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Integration_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._Integration_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + 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 "nodes": + 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_nodes(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 "apiTokens": + 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_apiTokens(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 "actionPlans": + 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_actionPlans(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 "actionPlanHistories": + 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_actionPlanHistories(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 "contacts": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_contacts(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 "contactHistories": + 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_contactHistories(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 "controls": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_controls(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 "controlHistories": + 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_controlHistories(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 "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._Query_controlObjectives(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 "controlObjectiveHistories": + 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_controlObjectiveHistories(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 "documentDataSlice": + 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_documentDataSlice(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 "documentDataHistories": + 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_documentDataHistories(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 "entitlements": + 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_entitlements(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 "entitlementHistories": + 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_entitlementHistories(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 "entitlementPlans": + 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_entitlementPlans(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 "entitlementPlanFeatures": + 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_entitlementPlanFeatures(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 "entitlementPlanFeatureHistories": + 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_entitlementPlanFeatureHistories(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 "entitlementPlanHistories": + 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_entitlementPlanHistories(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 "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._Query_entities(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 "entityHistories": + 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_entityHistories(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 "entityTypes": + 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_entityTypes(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 "entityTypeHistories": + 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_entityTypeHistories(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 "events": + 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_events(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 "eventHistories": + 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_eventHistories(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 "features": + 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_features(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 "featureHistories": + 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_featureHistories(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 "files": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_files(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 "fileHistories": + 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_fileHistories(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 "groups": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_groups(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 "groupHistories": + 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_groupHistories(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 "groupMemberships": + 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_groupMemberships(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 "groupMembershipHistories": + 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_groupMembershipHistories(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 "groupSettings": + 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_groupSettings(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 "groupSettingHistories": + 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_groupSettingHistories(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 "hushes": + 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_hushes(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 "hushHistories": + 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_hushHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "description": - out.Values[i] = ec._Integration_description(ctx, field, obj) - case "kind": - out.Values[i] = ec._Integration_kind(ctx, field, obj) - case "owner": + + 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 "integrations": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_owner(ctx, field, obj) + res = ec._Query_integrations(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 innerFunc(ctx, out) }) - case "secrets": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "integrationHistories": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_secrets(ctx, field, obj) + res = ec._Query_integrationHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 innerFunc(ctx, out) }) - case "oauth2tokens": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "internalPolicies": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_oauth2tokens(ctx, field, obj) + res = ec._Query_internalPolicies(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 innerFunc(ctx, out) }) - case "events": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "internalPolicyHistories": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_events(ctx, field, obj) + res = ec._Query_internalPolicyHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 innerFunc(ctx, out) }) - case "webhooks": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "invites": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Integration_webhooks(ctx, field, obj) + res = ec._Query_invites(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "narratives": + field := field - return out -} + innerFunc := func(ctx 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_narratives(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var integrationBulkCreatePayloadImplementors = []string{"IntegrationBulkCreatePayload"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _IntegrationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *IntegrationBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationBulkCreatePayloadImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "narrativeHistories": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationBulkCreatePayload") - case "integrations": - out.Values[i] = ec._IntegrationBulkCreatePayload_integrations(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + innerFunc := func(ctx 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_narrativeHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "notes": + field := field - return out -} + innerFunc := func(ctx 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_notes(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var integrationConnectionImplementors = []string{"IntegrationConnection"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _IntegrationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationConnectionImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "noteHistories": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationConnection") - case "edges": - out.Values[i] = ec._IntegrationConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._IntegrationConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._IntegrationConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_noteHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "oauthProviders": + field := field - return out -} + innerFunc := func(ctx 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_oauthProviders(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var integrationCreatePayloadImplementors = []string{"IntegrationCreatePayload"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _IntegrationCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *IntegrationCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationCreatePayloadImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "oauthProviderHistories": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationCreatePayload") - case "integration": - out.Values[i] = ec._IntegrationCreatePayload_integration(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_oauthProviderHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "ohAuthTooTokens": + field := field - return out -} + innerFunc := func(ctx 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_ohAuthTooTokens(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var integrationDeletePayloadImplementors = []string{"IntegrationDeletePayload"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _IntegrationDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *IntegrationDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationDeletePayloadImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "orgMemberships": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationDeletePayload") - case "deletedID": - out.Values[i] = ec._IntegrationDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_orgMemberships(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "orgMembershipHistories": + field := field - return out -} + innerFunc := func(ctx 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_orgMembershipHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var integrationEdgeImplementors = []string{"IntegrationEdge"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _IntegrationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationEdgeImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "organizations": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationEdge") - case "node": - out.Values[i] = ec._IntegrationEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._IntegrationEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_organizations(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "organizationHistories": + field := field - return out -} + innerFunc := func(ctx 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_organizationHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var integrationHistoryImplementors = []string{"IntegrationHistory", "Node"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _IntegrationHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationHistoryImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "organizationSettings": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationHistory") - case "id": - out.Values[i] = ec._IntegrationHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._IntegrationHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._IntegrationHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._IntegrationHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._IntegrationHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._IntegrationHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._IntegrationHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._IntegrationHistory_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._IntegrationHistory_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._IntegrationHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._IntegrationHistory_deletedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._IntegrationHistory_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._IntegrationHistory_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_organizationSettings(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "description": - out.Values[i] = ec._IntegrationHistory_description(ctx, field, obj) - case "kind": - out.Values[i] = ec._IntegrationHistory_kind(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "organizationSettingHistories": + field := field - return out -} + innerFunc := func(ctx 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_organizationSettingHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var integrationHistoryConnectionImplementors = []string{"IntegrationHistoryConnection"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _IntegrationHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationHistoryConnectionImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "personalAccessTokens": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationHistoryConnection") - case "edges": - out.Values[i] = ec._IntegrationHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._IntegrationHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._IntegrationHistoryConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_personalAccessTokens(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "procedures": + field := field - return out -} + innerFunc := func(ctx 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_procedures(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var integrationHistoryEdgeImplementors = []string{"IntegrationHistoryEdge"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _IntegrationHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationHistoryEdgeImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "procedureHistories": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationHistoryEdge") - case "node": - out.Values[i] = ec._IntegrationHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._IntegrationHistoryEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_procedureHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "risks": + field := field - return out -} + innerFunc := func(ctx 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_risks(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var integrationSearchResultImplementors = []string{"IntegrationSearchResult", "SearchResult"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _IntegrationSearchResult(ctx context.Context, sel ast.SelectionSet, obj *IntegrationSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationSearchResultImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "riskHistories": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationSearchResult") - case "integrations": - out.Values[i] = ec._IntegrationSearchResult_integrations(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + innerFunc := func(ctx 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_riskHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "standards": + field := field - return out -} + innerFunc := func(ctx 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_standards(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var integrationUpdatePayloadImplementors = []string{"IntegrationUpdatePayload"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _IntegrationUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *IntegrationUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationUpdatePayloadImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "standardHistories": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationUpdatePayload") - case "integration": - out.Values[i] = ec._IntegrationUpdatePayload_integration(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_standardHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "subcontrols": + field := field - return out -} + innerFunc := func(ctx 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_subcontrols(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var inviteImplementors = []string{"Invite", "Node"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _Invite(ctx context.Context, sel ast.SelectionSet, obj *generated.Invite) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "subcontrolHistories": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Invite") - case "id": - out.Values[i] = ec._Invite_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + innerFunc := func(ctx 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_subcontrolHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "createdAt": - out.Values[i] = ec._Invite_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Invite_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Invite_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Invite_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._Invite_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._Invite_deletedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Invite_ownerID(ctx, field, obj) - case "expires": - out.Values[i] = ec._Invite_expires(ctx, field, obj) - case "recipient": - out.Values[i] = ec._Invite_recipient(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "status": - out.Values[i] = ec._Invite_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "subscribers": + 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_subscribers(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "role": - out.Values[i] = ec._Invite_role(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "sendAttempts": - out.Values[i] = ec._Invite_sendAttempts(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "tfaSettings": + 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_tfaSettings(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "requestorID": - out.Values[i] = ec._Invite_requestorID(ctx, field, obj) - case "owner": + + 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 "templates": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Invite_owner(ctx, field, obj) + res = ec._Query_templates(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 innerFunc(ctx, out) }) - case "events": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "templateHistories": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Invite_events(ctx, field, obj) + res = ec._Query_templateHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "users": + field := field - return out -} + innerFunc := func(ctx 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_users(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var inviteBulkCreatePayloadImplementors = []string{"InviteBulkCreatePayload"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _InviteBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *InviteBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteBulkCreatePayloadImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "userHistories": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InviteBulkCreatePayload") - case "invites": - out.Values[i] = ec._InviteBulkCreatePayload_invites(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + innerFunc := func(ctx 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_userHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "userSettings": + field := field - return out -} + innerFunc := func(ctx 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_userSettings(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var inviteConnectionImplementors = []string{"InviteConnection"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _InviteConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.InviteConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteConnectionImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "userSettingHistories": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InviteConnection") - case "edges": - out.Values[i] = ec._InviteConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._InviteConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._InviteConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx 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_userSettingHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "webhooks": + field := field - return out -} + innerFunc := func(ctx 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_webhooks(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var inviteCreatePayloadImplementors = []string{"InviteCreatePayload"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _InviteCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *InviteCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteCreatePayloadImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "webhookHistories": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InviteCreatePayload") - case "invite": - out.Values[i] = ec._InviteCreatePayload_invite(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_webhookHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "actionPlan": + field := field - return out -} + innerFunc := func(ctx 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_actionPlan(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var inviteDeletePayloadImplementors = []string{"InviteDeletePayload"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _InviteDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *InviteDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteDeletePayloadImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminAPITokenSearch": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InviteDeletePayload") - case "deletedID": - out.Values[i] = ec._InviteDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminAPITokenSearch(ctx, field) + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminActionPlanSearch": + field := field - return out -} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminActionPlanSearch(ctx, field) + return res + } -var inviteEdgeImplementors = []string{"InviteEdge"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _InviteEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.InviteEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteEdgeImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminContactSearch": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InviteEdge") - case "node": - out.Values[i] = ec._InviteEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._InviteEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminContactSearch(ctx, field) + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminControlSearch": + field := field - return out -} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminControlSearch(ctx, field) + return res + } -var inviteUpdatePayloadImplementors = []string{"InviteUpdatePayload"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _InviteUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *InviteUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteUpdatePayloadImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminControlObjectiveSearch": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InviteUpdatePayload") - case "invite": - out.Values[i] = ec._InviteUpdatePayload_invite(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminControlObjectiveSearch(ctx, field) + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - return out -} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminDocumentDataSearch": + field := field -var mutationImplementors = []string{"Mutation"} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminDocumentDataSearch(ctx, field) + return res + } -func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors) - ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ - Object: "Mutation", - }) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ - Object: field.Name, - Field: field, - }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminEntitlementSearch": + field := field - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Mutation") - case "createAPIToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createAPIToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkAPIToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkAPIToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVAPIToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVAPIToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateAPIToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateAPIToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteAPIToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteAPIToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createContact(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkContact(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVContact(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateContact(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteContact(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createDocumentData": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createDocumentData(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkDocumentData": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkDocumentData(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVDocumentData": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVDocumentData(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateDocumentData": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateDocumentData(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteDocumentData": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteDocumentData(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createEntitlement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createEntitlement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkEntitlement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkEntitlement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVEntitlement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVEntitlement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateEntitlement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateEntitlement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteEntitlement": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteEntitlement(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createEntitlementPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createEntitlementPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkEntitlementPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkEntitlementPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVEntitlementPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVEntitlementPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateEntitlementPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateEntitlementPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteEntitlementPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteEntitlementPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createEntitlementPlanFeature": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createEntitlementPlanFeature(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkEntitlementPlanFeature": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkEntitlementPlanFeature(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVEntitlementPlanFeature": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVEntitlementPlanFeature(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateEntitlementPlanFeature": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateEntitlementPlanFeature(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteEntitlementPlanFeature": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteEntitlementPlanFeature(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createEntity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createEntity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkEntity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkEntity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVEntity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVEntity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateEntity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateEntity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteEntity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteEntity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createEntityType": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createEntityType(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkEntityType": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkEntityType(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVEntityType": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVEntityType(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateEntityType": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateEntityType(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteEntityType": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteEntityType(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createEvent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createEvent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkEvent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkEvent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVEvent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVEvent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateEvent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateEvent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteEvent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteEvent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createFeature": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createFeature(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkFeature": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkFeature(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVFeature": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVFeature(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateFeature": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateFeature(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteFeature": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteFeature(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteFile": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteFile(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createGroupMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createGroupMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkGroupMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkGroupMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVGroupMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVGroupMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateGroupMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateGroupMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteGroupMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteGroupMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createGroupSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createGroupSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkGroupSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkGroupSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVGroupSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVGroupSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateGroupSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateGroupSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteGroupSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteGroupSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createHush": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createHush(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkHush": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkHush(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVHush": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVHush(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateHush": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateHush(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteHush": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteHush(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminEntitlementSearch(ctx, field) + return res } - case "createIntegration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createIntegration(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createBulkIntegration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkIntegration(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminEntitlementPlanSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminEntitlementPlanSearch(ctx, field) + return res } - case "createBulkCSVIntegration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVIntegration(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "updateIntegration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateIntegration(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminEntitlementPlanFeatureSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminEntitlementPlanFeatureSearch(ctx, field) + return res } - case "deleteIntegration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteIntegration(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createInvite": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createInvite(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminEntitySearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminEntitySearch(ctx, field) + return res } - case "createBulkInvite": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkInvite(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createBulkCSVInvite": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVInvite(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminEntityTypeSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminEntityTypeSearch(ctx, field) + return res } - case "updateInvite": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateInvite(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "deleteInvite": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteInvite(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminEventSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminEventSearch(ctx, field) + return res } - case "createOauthProvider": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createOauthProvider(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createBulkOauthProvider": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkOauthProvider(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminFeatureSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminFeatureSearch(ctx, field) + return res } - case "createBulkCSVOauthProvider": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVOauthProvider(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "updateOauthProvider": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateOauthProvider(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminFileSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminFileSearch(ctx, field) + return res } - case "deleteOauthProvider": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteOauthProvider(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createOhAuthTooToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createOhAuthTooToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminGroupSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminGroupSearch(ctx, field) + return res } - case "createBulkOhAuthTooToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkOhAuthTooToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createBulkCSVOhAuthTooToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVOhAuthTooToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminGroupSettingSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminGroupSettingSearch(ctx, field) + return res } - case "updateOhAuthTooToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateOhAuthTooToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "deleteOhAuthTooToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteOhAuthTooToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminIntegrationSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminIntegrationSearch(ctx, field) + return res } - case "createOrganization": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createOrganization(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createBulkOrganization": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkOrganization(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminInternalPolicySearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminInternalPolicySearch(ctx, field) + return res } - case "createBulkCSVOrganization": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVOrganization(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "updateOrganization": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateOrganization(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminNarrativeSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminNarrativeSearch(ctx, field) + return res } - case "deleteOrganization": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteOrganization(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createOrganizationSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createOrganizationSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminOauthProviderSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminOauthProviderSearch(ctx, field) + return res } - case "createBulkOrganizationSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkOrganizationSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createBulkCSVOrganizationSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVOrganizationSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminOhAuthTooTokenSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminOhAuthTooTokenSearch(ctx, field) + return res } - case "updateOrganizationSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateOrganizationSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "deleteOrganizationSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteOrganizationSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminOrganizationSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminOrganizationSearch(ctx, field) + return res } - case "createOrgMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createOrgMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createBulkOrgMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkOrgMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminOrganizationSettingSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminOrganizationSettingSearch(ctx, field) + return res } - case "createBulkCSVOrgMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVOrgMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "updateOrgMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateOrgMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminPersonalAccessTokenSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminPersonalAccessTokenSearch(ctx, field) + return res } - case "deleteOrgMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteOrgMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createPersonalAccessToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createPersonalAccessToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminProcedureSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminProcedureSearch(ctx, field) + return res } - case "createBulkPersonalAccessToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkPersonalAccessToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createBulkCSVPersonalAccessToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVPersonalAccessToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminRiskSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminRiskSearch(ctx, field) + return res } - case "updatePersonalAccessToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updatePersonalAccessToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "deletePersonalAccessToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deletePersonalAccessToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminStandardSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminStandardSearch(ctx, field) + return res } - case "createSubscriber": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createSubscriber(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createBulkSubscriber": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkSubscriber(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminSubcontrolSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminSubcontrolSearch(ctx, field) + return res } - case "createBulkCSVSubscriber": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVSubscriber(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "updateSubscriber": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateSubscriber(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminSubscriberSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminSubscriberSearch(ctx, field) + return res } - case "deleteSubscriber": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteSubscriber(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createTemplate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createTemplate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminTFASettingSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminTFASettingSearch(ctx, field) + return res } - case "createBulkTemplate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkTemplate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createBulkCSVTemplate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVTemplate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminTemplateSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminTemplateSearch(ctx, field) + return res } - case "updateTemplate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateTemplate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "deleteTemplate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteTemplate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminUserSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminUserSearch(ctx, field) + return res } - case "createTFASetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createTFASetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "updateTFASetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateTFASetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminUserSettingSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminUserSettingSearch(ctx, field) + return res } - case "createUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createUser(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "updateUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateUser(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminWebhookSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminWebhookSearch(ctx, field) + return res } - case "deleteUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteUser(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createUserSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createUserSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "apiToken": + 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_apiToken(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "createBulkUserSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkUserSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createBulkCSVUserSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVUserSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "auditLogs": + 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_auditLogs(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "updateUserSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateUserSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createWebhook": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createWebhook(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "contact": + 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_contact(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "createBulkWebhook": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkWebhook(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "createBulkCSVWebhook": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVWebhook(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "control": + 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_control(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "updateWebhook": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateWebhook(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "deleteWebhook": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteWebhook(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "controlObjective": + 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_controlObjective(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "documentData": + field := field - return out -} + innerFunc := func(ctx 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_documentData(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var noteImplementors = []string{"Note", "Node"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj *generated.Note) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, noteImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "entitlement": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Note") - case "id": - out.Values[i] = ec._Note_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + innerFunc := func(ctx 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_entitlement(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "createdAt": - out.Values[i] = ec._Note_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Note_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Note_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Note_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._Note_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._Note_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Note_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Note_ownerID(ctx, field, obj) - case "text": - out.Values[i] = ec._Note_text(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "owner": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "entitlementPlan": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Note_owner(ctx, field, obj) + res = ec._Query_entitlementPlan(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs + 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 "entitlementPlanFeature": + 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_entitlementPlanFeature(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + return res + } - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 innerFunc(ctx, out) }) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "entity": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Note_entity(ctx, field, obj) + res = ec._Query_entity(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "entityType": + field := field - return out -} + innerFunc := func(ctx 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_entityType(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var noteConnectionImplementors = []string{"NoteConnection"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _NoteConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, noteConnectionImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "event": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NoteConnection") - case "edges": - out.Values[i] = ec._NoteConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._NoteConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._NoteConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx 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_event(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "feature": + field := field - return out -} + innerFunc := func(ctx 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_feature(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var noteEdgeImplementors = []string{"NoteEdge"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _NoteEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, noteEdgeImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "file": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NoteEdge") - case "node": - out.Values[i] = ec._NoteEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._NoteEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_file(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "group": + field := field - return out -} + innerFunc := func(ctx 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_group(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var noteHistoryImplementors = []string{"NoteHistory", "Node"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _NoteHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, noteHistoryImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "groupMembership": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NoteHistory") - case "id": - out.Values[i] = ec._NoteHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._NoteHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._NoteHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._NoteHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._NoteHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._NoteHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._NoteHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._NoteHistory_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._NoteHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._NoteHistory_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._NoteHistory_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._NoteHistory_ownerID(ctx, field, obj) - case "text": - out.Values[i] = ec._NoteHistory_text(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_groupMembership(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "groupSetting": + field := field - return out -} + innerFunc := func(ctx 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_groupSetting(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var noteHistoryConnectionImplementors = []string{"NoteHistoryConnection"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _NoteHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, noteHistoryConnectionImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "hush": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NoteHistoryConnection") - case "edges": - out.Values[i] = ec._NoteHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._NoteHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._NoteHistoryConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx 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_hush(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "integration": + field := field - return out -} + innerFunc := func(ctx 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_integration(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var noteHistoryEdgeImplementors = []string{"NoteHistoryEdge"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _NoteHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, noteHistoryEdgeImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "internalPolicy": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NoteHistoryEdge") - case "node": - out.Values[i] = ec._NoteHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._NoteHistoryEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx 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_internalPolicy(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "invite": + field := field - return out -} + innerFunc := func(ctx 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_invite(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var oauthProviderImplementors = []string{"OauthProvider", "Node"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _OauthProvider(ctx context.Context, sel ast.SelectionSet, obj *generated.OauthProvider) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "narrative": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OauthProvider") - case "id": - out.Values[i] = ec._OauthProvider_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._OauthProvider_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._OauthProvider_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._OauthProvider_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._OauthProvider_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._OauthProvider_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._OauthProvider_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._OauthProvider_deletedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._OauthProvider_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._OauthProvider_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "clientID": - out.Values[i] = ec._OauthProvider_clientID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "clientSecret": - out.Values[i] = ec._OauthProvider_clientSecret(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "redirectURL": - out.Values[i] = ec._OauthProvider_redirectURL(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "scopes": - out.Values[i] = ec._OauthProvider_scopes(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "authURL": - out.Values[i] = ec._OauthProvider_authURL(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "tokenURL": - out.Values[i] = ec._OauthProvider_tokenURL(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "authStyle": - out.Values[i] = ec._OauthProvider_authStyle(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + innerFunc := func(ctx 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_narrative(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - case "infoURL": - out.Values[i] = ec._OauthProvider_infoURL(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "owner": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "oauthProvider": field := field - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._OauthProvider_owner(ctx, field, obj) + res = ec._Query_oauthProvider(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "ohAuthTooToken": + 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_ohAuthTooToken(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "organization": + field := field - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + innerFunc := func(ctx 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_organization(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - return out -} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -var oauthProviderBulkCreatePayloadImplementors = []string{"OauthProviderBulkCreatePayload"} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "organizationSetting": + field := field -func (ec *executionContext) _OauthProviderBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OauthProviderBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderBulkCreatePayloadImplementors) + innerFunc := func(ctx 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_organizationSetting(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OauthProviderBulkCreatePayload") - case "oauthProviders": - out.Values[i] = ec._OauthProviderBulkCreatePayload_oauthProviders(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "orgMembership": + field := field - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + innerFunc := func(ctx 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_orgMembership(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - return out -} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -var oauthProviderConnectionImplementors = []string{"OauthProviderConnection"} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "personalAccessToken": + field := field -func (ec *executionContext) _OauthProviderConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OauthProviderConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderConnectionImplementors) + innerFunc := func(ctx 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_personalAccessToken(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OauthProviderConnection") - case "edges": - out.Values[i] = ec._OauthProviderConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._OauthProviderConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "totalCount": - out.Values[i] = ec._OauthProviderConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "procedure": + 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_procedure(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "risk": + field := field - return out -} + innerFunc := func(ctx 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_risk(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } -var oauthProviderCreatePayloadImplementors = []string{"OauthProviderCreatePayload"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _OauthProviderCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OauthProviderCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderCreatePayloadImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "apiTokenSearch": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OauthProviderCreatePayload") - case "oauthProvider": - out.Values[i] = ec._OauthProviderCreatePayload_oauthProvider(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_apiTokenSearch(ctx, field) + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "actionPlanSearch": + field := field - return out -} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_actionPlanSearch(ctx, field) + return res + } -var oauthProviderDeletePayloadImplementors = []string{"OauthProviderDeletePayload"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _OauthProviderDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OauthProviderDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderDeletePayloadImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "contactSearch": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OauthProviderDeletePayload") - case "deletedID": - out.Values[i] = ec._OauthProviderDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_contactSearch(ctx, field) + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "controlSearch": + field := field - return out -} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_controlSearch(ctx, field) + return res + } -var oauthProviderEdgeImplementors = []string{"OauthProviderEdge"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _OauthProviderEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OauthProviderEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderEdgeImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "controlObjectiveSearch": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OauthProviderEdge") - case "node": - out.Values[i] = ec._OauthProviderEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._OauthProviderEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_controlObjectiveSearch(ctx, field) + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "documentDataSearch": + field := field - return out -} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_documentDataSearch(ctx, field) + return res + } -var oauthProviderHistoryImplementors = []string{"OauthProviderHistory", "Node"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _OauthProviderHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.OauthProviderHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderHistoryImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "entitlementSearch": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OauthProviderHistory") - case "id": - out.Values[i] = ec._OauthProviderHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_entitlementSearch(ctx, field) + return res } - case "historyTime": - out.Values[i] = ec._OauthProviderHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "ref": - out.Values[i] = ec._OauthProviderHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._OauthProviderHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "entitlementPlanSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_entitlementPlanSearch(ctx, field) + return res } - case "createdAt": - out.Values[i] = ec._OauthProviderHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._OauthProviderHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._OauthProviderHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._OauthProviderHistory_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._OauthProviderHistory_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._OauthProviderHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._OauthProviderHistory_deletedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._OauthProviderHistory_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._OauthProviderHistory_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "clientID": - out.Values[i] = ec._OauthProviderHistory_clientID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "entitlementPlanFeatureSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_entitlementPlanFeatureSearch(ctx, field) + return res } - case "clientSecret": - out.Values[i] = ec._OauthProviderHistory_clientSecret(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "redirectURL": - out.Values[i] = ec._OauthProviderHistory_redirectURL(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "entitySearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_entitySearch(ctx, field) + return res } - case "scopes": - out.Values[i] = ec._OauthProviderHistory_scopes(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "authURL": - out.Values[i] = ec._OauthProviderHistory_authURL(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "entityTypeSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_entityTypeSearch(ctx, field) + return res } - case "tokenURL": - out.Values[i] = ec._OauthProviderHistory_tokenURL(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "authStyle": - out.Values[i] = ec._OauthProviderHistory_authStyle(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "eventSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_eventSearch(ctx, field) + return res } - case "infoURL": - out.Values[i] = ec._OauthProviderHistory_infoURL(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "featureSearch": + field := field - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_featureSearch(ctx, field) + return res + } - return out -} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -var oauthProviderHistoryConnectionImplementors = []string{"OauthProviderHistoryConnection"} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "fileSearch": + field := field -func (ec *executionContext) _OauthProviderHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OauthProviderHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderHistoryConnectionImplementors) + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_fileSearch(ctx, field) + return res + } - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OauthProviderHistoryConnection") - case "edges": - out.Values[i] = ec._OauthProviderHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._OauthProviderHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "totalCount": - out.Values[i] = ec._OauthProviderHistoryConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "groupSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_groupSearch(ctx, field) + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "groupSettingSearch": + field := field - return out -} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_groupSettingSearch(ctx, field) + return res + } -var oauthProviderHistoryEdgeImplementors = []string{"OauthProviderHistoryEdge"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _OauthProviderHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OauthProviderHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderHistoryEdgeImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "integrationSearch": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OauthProviderHistoryEdge") - case "node": - out.Values[i] = ec._OauthProviderHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._OauthProviderHistoryEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_integrationSearch(ctx, field) + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "internalPolicySearch": + field := field - return out -} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_internalPolicySearch(ctx, field) + return res + } -var oauthProviderSearchResultImplementors = []string{"OauthProviderSearchResult", "SearchResult"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _OauthProviderSearchResult(ctx context.Context, sel ast.SelectionSet, obj *OauthProviderSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderSearchResultImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "narrativeSearch": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OauthProviderSearchResult") - case "oauthProviders": - out.Values[i] = ec._OauthProviderSearchResult_oauthProviders(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_narrativeSearch(ctx, field) + return res + } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "oauthProviderSearch": + field := field - return out -} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_oauthProviderSearch(ctx, field) + return res + } -var oauthProviderUpdatePayloadImplementors = []string{"OauthProviderUpdatePayload"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _OauthProviderUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OauthProviderUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, oauthProviderUpdatePayloadImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "ohAuthTooTokenSearch": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OauthProviderUpdatePayload") - case "oauthProvider": - out.Values[i] = ec._OauthProviderUpdatePayload_oauthProvider(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_ohAuthTooTokenSearch(ctx, field) + return res } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "organizationSearch": + field := field - return out -} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_organizationSearch(ctx, field) + return res + } -var ohAuthTooTokenImplementors = []string{"OhAuthTooToken", "Node"} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -func (ec *executionContext) _OhAuthTooToken(ctx context.Context, sel ast.SelectionSet, obj *generated.OhAuthTooToken) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenImplementors) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "organizationSettingSearch": + field := field - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OhAuthTooToken") - case "id": - out.Values[i] = ec._OhAuthTooToken_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_organizationSettingSearch(ctx, field) + return res } - case "tags": - out.Values[i] = ec._OhAuthTooToken_tags(ctx, field, obj) - case "clientID": - out.Values[i] = ec._OhAuthTooToken_clientID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "scopes": - out.Values[i] = ec._OhAuthTooToken_scopes(ctx, field, obj) - case "nonce": - out.Values[i] = ec._OhAuthTooToken_nonce(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "personalAccessTokenSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_personalAccessTokenSearch(ctx, field) + return res } - case "claimsUserID": - out.Values[i] = ec._OhAuthTooToken_claimsUserID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "claimsUsername": - out.Values[i] = ec._OhAuthTooToken_claimsUsername(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "procedureSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_procedureSearch(ctx, field) + return res } - case "claimsEmail": - out.Values[i] = ec._OhAuthTooToken_claimsEmail(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "claimsEmailVerified": - out.Values[i] = ec._OhAuthTooToken_claimsEmailVerified(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "riskSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_riskSearch(ctx, field) + return res } - case "claimsGroups": - out.Values[i] = ec._OhAuthTooToken_claimsGroups(ctx, field, obj) - case "claimsPreferredUsername": - out.Values[i] = ec._OhAuthTooToken_claimsPreferredUsername(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "connectorID": - out.Values[i] = ec._OhAuthTooToken_connectorID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "standardSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_standardSearch(ctx, field) + return res } - case "connectorData": - out.Values[i] = ec._OhAuthTooToken_connectorData(ctx, field, obj) - case "lastUsed": - out.Values[i] = ec._OhAuthTooToken_lastUsed(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - case "integration": + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "subcontrolSearch": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -233563,31 +331037,17 @@ func (ec *executionContext) _OhAuthTooToken(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._OhAuthTooToken_integration(ctx, field, obj) + res = ec._Query_subcontrolSearch(ctx, field) return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 innerFunc(ctx, out) }) - case "events": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "subscriberSearch": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -233596,306 +331056,333 @@ func (ec *executionContext) _OhAuthTooToken(ctx context.Context, sel ast.Selecti ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._OhAuthTooToken_events(ctx, field, obj) + res = ec._Query_subscriberSearch(ctx, field) return res } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + 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 innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "tFASettingSearch": + field := field - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_tFASettingSearch(ctx, field) + return res + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - return out -} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "templateSearch": + field := field -var ohAuthTooTokenBulkCreatePayloadImplementors = []string{"OhAuthTooTokenBulkCreatePayload"} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_templateSearch(ctx, field) + return res + } -func (ec *executionContext) _OhAuthTooTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OhAuthTooTokenBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenBulkCreatePayloadImplementors) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OhAuthTooTokenBulkCreatePayload") - case "ohAuthTooTokens": - out.Values[i] = ec._OhAuthTooTokenBulkCreatePayload_ohAuthTooTokens(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "userSearch": + field := field - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_userSearch(ctx, field) + return res + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - return out -} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "userSettingSearch": + field := field -var ohAuthTooTokenConnectionImplementors = []string{"OhAuthTooTokenConnection"} + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_userSettingSearch(ctx, field) + return res + } -func (ec *executionContext) _OhAuthTooTokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OhAuthTooTokenConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenConnectionImplementors) + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OhAuthTooTokenConnection") - case "edges": - out.Values[i] = ec._OhAuthTooTokenConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._OhAuthTooTokenConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "webhookSearch": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_webhookSearch(ctx, field) + return res } - case "totalCount": - out.Values[i] = ec._OhAuthTooTokenConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "search": + field := field - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_search(ctx, field) + return res + } - return out -} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -var ohAuthTooTokenCreatePayloadImplementors = []string{"OhAuthTooTokenCreatePayload"} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "adminSearch": + field := field -func (ec *executionContext) _OhAuthTooTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OhAuthTooTokenCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenCreatePayloadImplementors) + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_adminSearch(ctx, field) + return res + } - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OhAuthTooTokenCreatePayload") - case "ohAuthTooToken": - out.Values[i] = ec._OhAuthTooTokenCreatePayload_ohAuthTooToken(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "standard": + field := field - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + innerFunc := func(ctx 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_standard(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - return out -} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -var ohAuthTooTokenDeletePayloadImplementors = []string{"OhAuthTooTokenDeletePayload"} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "subcontrol": + field := field -func (ec *executionContext) _OhAuthTooTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OhAuthTooTokenDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenDeletePayloadImplementors) + innerFunc := func(ctx 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_subcontrol(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OhAuthTooTokenDeletePayload") - case "deletedID": - out.Values[i] = ec._OhAuthTooTokenDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "subscriber": + field := field - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + innerFunc := func(ctx 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_subscriber(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - return out -} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -var ohAuthTooTokenEdgeImplementors = []string{"OhAuthTooTokenEdge"} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "template": + field := field -func (ec *executionContext) _OhAuthTooTokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OhAuthTooTokenEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenEdgeImplementors) + innerFunc := func(ctx 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_template(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OhAuthTooTokenEdge") - case "node": - out.Values[i] = ec._OhAuthTooTokenEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._OhAuthTooTokenEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "tfaSetting": + field := field - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + innerFunc := func(ctx 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_tfaSetting(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - return out -} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -var ohAuthTooTokenSearchResultImplementors = []string{"OhAuthTooTokenSearchResult", "SearchResult"} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "user": + field := field -func (ec *executionContext) _OhAuthTooTokenSearchResult(ctx context.Context, sel ast.SelectionSet, obj *OhAuthTooTokenSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenSearchResultImplementors) + innerFunc := func(ctx 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_user(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OhAuthTooTokenSearchResult") - case "ohAuthTooTokens": - out.Values[i] = ec._OhAuthTooTokenSearchResult_ohAuthTooTokens(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } - atomic.AddInt32(&ec.deferred, int32(len(deferred))) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "userSetting": + field := field - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } + innerFunc := func(ctx 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_userSetting(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - return out -} + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } -var ohAuthTooTokenUpdatePayloadImplementors = []string{"OhAuthTooTokenUpdatePayload"} + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "webhook": + field := field -func (ec *executionContext) _OhAuthTooTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OhAuthTooTokenUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, ohAuthTooTokenUpdatePayloadImplementors) + innerFunc := func(ctx 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_webhook(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OhAuthTooTokenUpdatePayload") - case "ohAuthTooToken": - out.Values[i] = ec._OhAuthTooTokenUpdatePayload_ohAuthTooToken(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "__type": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query___type(ctx, field) + }) + case "__schema": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Query___schema(ctx, field) + }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -233919,62 +331406,69 @@ func (ec *executionContext) _OhAuthTooTokenUpdatePayload(ctx context.Context, se return out } -var orgMembershipImplementors = []string{"OrgMembership", "Node"} +var riskImplementors = []string{"Risk", "Node"} -func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembership) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipImplementors) +func (ec *executionContext) _Risk(ctx context.Context, sel ast.SelectionSet, obj *generated.Risk) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembership") + out.Values[i] = graphql.MarshalString("Risk") case "id": - out.Values[i] = ec._OrgMembership_id(ctx, field, obj) + out.Values[i] = ec._Risk_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._OrgMembership_createdAt(ctx, field, obj) + out.Values[i] = ec._Risk_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._OrgMembership_updatedAt(ctx, field, obj) + out.Values[i] = ec._Risk_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._OrgMembership_createdBy(ctx, field, obj) + out.Values[i] = ec._Risk_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._OrgMembership_updatedBy(ctx, field, obj) + out.Values[i] = ec._Risk_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._OrgMembership_deletedAt(ctx, field, obj) + out.Values[i] = ec._Risk_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._OrgMembership_deletedBy(ctx, field, obj) - case "role": - out.Values[i] = ec._OrgMembership_role(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "organizationID": - out.Values[i] = ec._OrgMembership_organizationID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userID": - out.Values[i] = ec._OrgMembership_userID(ctx, field, obj) + out.Values[i] = ec._Risk_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Risk_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._Risk_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "organization": + case "description": + out.Values[i] = ec._Risk_description(ctx, field, obj) + case "status": + out.Values[i] = ec._Risk_status(ctx, field, obj) + case "riskType": + out.Values[i] = ec._Risk_riskType(ctx, field, obj) + case "businessCosts": + out.Values[i] = ec._Risk_businessCosts(ctx, field, obj) + case "impact": + out.Values[i] = ec._Risk_impact(ctx, field, obj) + case "likelihood": + out.Values[i] = ec._Risk_likelihood(ctx, field, obj) + case "mitigation": + out.Values[i] = ec._Risk_mitigation(ctx, field, obj) + case "satisfies": + out.Values[i] = ec._Risk_satisfies(ctx, field, obj) + case "details": + out.Values[i] = ec._Risk_details(ctx, field, obj) + case "control": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._OrgMembership_organization(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Risk_control(ctx, field, obj) return res } @@ -233998,19 +331492,16 @@ func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "user": + case "procedure": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._OrgMembership_user(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Risk_procedure(ctx, field, obj) return res } @@ -234034,7 +331525,7 @@ func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.Selectio } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "actionplans": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -234043,7 +331534,7 @@ func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.Selectio ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._OrgMembership_events(ctx, field, obj) + res = ec._Risk_actionplans(ctx, field, obj) return res } @@ -234090,19 +331581,19 @@ func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.Selectio return out } -var orgMembershipBulkCreatePayloadImplementors = []string{"OrgMembershipBulkCreatePayload"} +var riskBulkCreatePayloadImplementors = []string{"RiskBulkCreatePayload"} -func (ec *executionContext) _OrgMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgMembershipBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipBulkCreatePayloadImplementors) +func (ec *executionContext) _RiskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *RiskBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipBulkCreatePayload") - case "orgMemberships": - out.Values[i] = ec._OrgMembershipBulkCreatePayload_orgMemberships(ctx, field, obj) + out.Values[i] = graphql.MarshalString("RiskBulkCreatePayload") + case "risks": + out.Values[i] = ec._RiskBulkCreatePayload_risks(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -234126,26 +331617,26 @@ func (ec *executionContext) _OrgMembershipBulkCreatePayload(ctx context.Context, return out } -var orgMembershipConnectionImplementors = []string{"OrgMembershipConnection"} +var riskConnectionImplementors = []string{"RiskConnection"} -func (ec *executionContext) _OrgMembershipConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipConnectionImplementors) +func (ec *executionContext) _RiskConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipConnection") + out.Values[i] = graphql.MarshalString("RiskConnection") case "edges": - out.Values[i] = ec._OrgMembershipConnection_edges(ctx, field, obj) + out.Values[i] = ec._RiskConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._OrgMembershipConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._RiskConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._OrgMembershipConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._RiskConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -234172,19 +331663,19 @@ func (ec *executionContext) _OrgMembershipConnection(ctx context.Context, sel as return out } -var orgMembershipCreatePayloadImplementors = []string{"OrgMembershipCreatePayload"} +var riskCreatePayloadImplementors = []string{"RiskCreatePayload"} -func (ec *executionContext) _OrgMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgMembershipCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipCreatePayloadImplementors) +func (ec *executionContext) _RiskCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *RiskCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipCreatePayload") - case "orgMembership": - out.Values[i] = ec._OrgMembershipCreatePayload_orgMembership(ctx, field, obj) + out.Values[i] = graphql.MarshalString("RiskCreatePayload") + case "risk": + out.Values[i] = ec._RiskCreatePayload_risk(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -234211,19 +331702,19 @@ func (ec *executionContext) _OrgMembershipCreatePayload(ctx context.Context, sel return out } -var orgMembershipDeletePayloadImplementors = []string{"OrgMembershipDeletePayload"} +var riskDeletePayloadImplementors = []string{"RiskDeletePayload"} -func (ec *executionContext) _OrgMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgMembershipDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipDeletePayloadImplementors) +func (ec *executionContext) _RiskDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *RiskDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipDeletePayload") + out.Values[i] = graphql.MarshalString("RiskDeletePayload") case "deletedID": - out.Values[i] = ec._OrgMembershipDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = ec._RiskDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -234250,21 +331741,21 @@ func (ec *executionContext) _OrgMembershipDeletePayload(ctx context.Context, sel return out } -var orgMembershipEdgeImplementors = []string{"OrgMembershipEdge"} +var riskEdgeImplementors = []string{"RiskEdge"} -func (ec *executionContext) _OrgMembershipEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipEdgeImplementors) +func (ec *executionContext) _RiskEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipEdge") + out.Values[i] = graphql.MarshalString("RiskEdge") case "node": - out.Values[i] = ec._OrgMembershipEdge_node(ctx, field, obj) + out.Values[i] = ec._RiskEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._OrgMembershipEdge_cursor(ctx, field, obj) + out.Values[i] = ec._RiskEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -234291,61 +331782,71 @@ func (ec *executionContext) _OrgMembershipEdge(ctx context.Context, sel ast.Sele return out } -var orgMembershipHistoryImplementors = []string{"OrgMembershipHistory", "Node"} +var riskHistoryImplementors = []string{"RiskHistory", "Node"} -func (ec *executionContext) _OrgMembershipHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipHistoryImplementors) +func (ec *executionContext) _RiskHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskHistoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipHistory") + out.Values[i] = graphql.MarshalString("RiskHistory") case "id": - out.Values[i] = ec._OrgMembershipHistory_id(ctx, field, obj) + out.Values[i] = ec._RiskHistory_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "historyTime": - out.Values[i] = ec._OrgMembershipHistory_historyTime(ctx, field, obj) + out.Values[i] = ec._RiskHistory_historyTime(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "ref": - out.Values[i] = ec._OrgMembershipHistory_ref(ctx, field, obj) + out.Values[i] = ec._RiskHistory_ref(ctx, field, obj) case "operation": - out.Values[i] = ec._OrgMembershipHistory_operation(ctx, field, obj) + out.Values[i] = ec._RiskHistory_operation(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "createdAt": - out.Values[i] = ec._OrgMembershipHistory_createdAt(ctx, field, obj) + out.Values[i] = ec._RiskHistory_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._OrgMembershipHistory_updatedAt(ctx, field, obj) + out.Values[i] = ec._RiskHistory_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._OrgMembershipHistory_createdBy(ctx, field, obj) + out.Values[i] = ec._RiskHistory_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._OrgMembershipHistory_updatedBy(ctx, field, obj) + out.Values[i] = ec._RiskHistory_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._OrgMembershipHistory_deletedAt(ctx, field, obj) + out.Values[i] = ec._RiskHistory_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._OrgMembershipHistory_deletedBy(ctx, field, obj) - case "role": - out.Values[i] = ec._OrgMembershipHistory_role(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "organizationID": - out.Values[i] = ec._OrgMembershipHistory_organizationID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "userID": - out.Values[i] = ec._OrgMembershipHistory_userID(ctx, field, obj) + out.Values[i] = ec._RiskHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._RiskHistory_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._RiskHistory_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } + case "description": + out.Values[i] = ec._RiskHistory_description(ctx, field, obj) + case "status": + out.Values[i] = ec._RiskHistory_status(ctx, field, obj) + case "riskType": + out.Values[i] = ec._RiskHistory_riskType(ctx, field, obj) + case "businessCosts": + out.Values[i] = ec._RiskHistory_businessCosts(ctx, field, obj) + case "impact": + out.Values[i] = ec._RiskHistory_impact(ctx, field, obj) + case "likelihood": + out.Values[i] = ec._RiskHistory_likelihood(ctx, field, obj) + case "mitigation": + out.Values[i] = ec._RiskHistory_mitigation(ctx, field, obj) + case "satisfies": + out.Values[i] = ec._RiskHistory_satisfies(ctx, field, obj) + case "details": + out.Values[i] = ec._RiskHistory_details(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -234369,26 +331870,26 @@ func (ec *executionContext) _OrgMembershipHistory(ctx context.Context, sel ast.S return out } -var orgMembershipHistoryConnectionImplementors = []string{"OrgMembershipHistoryConnection"} +var riskHistoryConnectionImplementors = []string{"RiskHistoryConnection"} -func (ec *executionContext) _OrgMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipHistoryConnectionImplementors) +func (ec *executionContext) _RiskHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipHistoryConnection") + out.Values[i] = graphql.MarshalString("RiskHistoryConnection") case "edges": - out.Values[i] = ec._OrgMembershipHistoryConnection_edges(ctx, field, obj) + out.Values[i] = ec._RiskHistoryConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._OrgMembershipHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._RiskHistoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._OrgMembershipHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._RiskHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -234415,21 +331916,21 @@ func (ec *executionContext) _OrgMembershipHistoryConnection(ctx context.Context, return out } -var orgMembershipHistoryEdgeImplementors = []string{"OrgMembershipHistoryEdge"} +var riskHistoryEdgeImplementors = []string{"RiskHistoryEdge"} -func (ec *executionContext) _OrgMembershipHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipHistoryEdgeImplementors) +func (ec *executionContext) _RiskHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipHistoryEdge") + out.Values[i] = graphql.MarshalString("RiskHistoryEdge") case "node": - out.Values[i] = ec._OrgMembershipHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._RiskHistoryEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._OrgMembershipHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = ec._RiskHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -234456,19 +331957,55 @@ func (ec *executionContext) _OrgMembershipHistoryEdge(ctx context.Context, sel a return out } -var orgMembershipUpdatePayloadImplementors = []string{"OrgMembershipUpdatePayload"} +var riskSearchResultImplementors = []string{"RiskSearchResult", "SearchResult"} -func (ec *executionContext) _OrgMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgMembershipUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipUpdatePayloadImplementors) +func (ec *executionContext) _RiskSearchResult(ctx context.Context, sel ast.SelectionSet, obj *RiskSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipUpdatePayload") - case "orgMembership": - out.Values[i] = ec._OrgMembershipUpdatePayload_orgMembership(ctx, field, obj) + out.Values[i] = graphql.MarshalString("RiskSearchResult") + case "risks": + out.Values[i] = ec._RiskSearchResult_risks(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var riskUpdatePayloadImplementors = []string{"RiskUpdatePayload"} + +func (ec *executionContext) _RiskUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *RiskUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("RiskUpdatePayload") + case "risk": + out.Values[i] = ec._RiskUpdatePayload_risk(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -234495,58 +332032,104 @@ func (ec *executionContext) _OrgMembershipUpdatePayload(ctx context.Context, sel return out } -var organizationImplementors = []string{"Organization", "Node"} +var searchResultConnectionImplementors = []string{"SearchResultConnection"} -func (ec *executionContext) _Organization(ctx context.Context, sel ast.SelectionSet, obj *generated.Organization) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationImplementors) +func (ec *executionContext) _SearchResultConnection(ctx context.Context, sel ast.SelectionSet, obj *SearchResultConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, searchResultConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Organization") + out.Values[i] = graphql.MarshalString("SearchResultConnection") + case "page": + out.Values[i] = ec._SearchResultConnection_page(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "nodes": + out.Values[i] = ec._SearchResultConnection_nodes(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var standardImplementors = []string{"Standard", "Node"} + +func (ec *executionContext) _Standard(ctx context.Context, sel ast.SelectionSet, obj *generated.Standard) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Standard") case "id": - out.Values[i] = ec._Organization_id(ctx, field, obj) + out.Values[i] = ec._Standard_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._Organization_createdAt(ctx, field, obj) + out.Values[i] = ec._Standard_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._Organization_updatedAt(ctx, field, obj) + out.Values[i] = ec._Standard_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._Organization_createdBy(ctx, field, obj) + out.Values[i] = ec._Standard_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._Organization_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Organization_tags(ctx, field, obj) + out.Values[i] = ec._Standard_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._Organization_deletedAt(ctx, field, obj) + out.Values[i] = ec._Standard_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._Organization_deletedBy(ctx, field, obj) + out.Values[i] = ec._Standard_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Standard_tags(ctx, field, obj) case "name": - out.Values[i] = ec._Organization_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "displayName": - out.Values[i] = ec._Organization_displayName(ctx, field, obj) + out.Values[i] = ec._Standard_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "description": - out.Values[i] = ec._Organization_description(ctx, field, obj) - case "personalOrg": - out.Values[i] = ec._Organization_personalOrg(ctx, field, obj) - case "avatarRemoteURL": - out.Values[i] = ec._Organization_avatarRemoteURL(ctx, field, obj) - case "dedicatedDb": - out.Values[i] = ec._Organization_dedicatedDb(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "parent": + out.Values[i] = ec._Standard_description(ctx, field, obj) + case "family": + out.Values[i] = ec._Standard_family(ctx, field, obj) + case "status": + out.Values[i] = ec._Standard_status(ctx, field, obj) + case "standardType": + out.Values[i] = ec._Standard_standardType(ctx, field, obj) + case "version": + out.Values[i] = ec._Standard_version(ctx, field, obj) + case "purposeAndScope": + out.Values[i] = ec._Standard_purposeAndScope(ctx, field, obj) + case "background": + out.Values[i] = ec._Standard_background(ctx, field, obj) + case "satisfies": + out.Values[i] = ec._Standard_satisfies(ctx, field, obj) + case "details": + out.Values[i] = ec._Standard_details(ctx, field, obj) + case "controlobjectives": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -234555,7 +332138,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_parent(ctx, field, obj) + res = ec._Standard_controlobjectives(ctx, field, obj) return res } @@ -234579,19 +332162,16 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "children": + case "controls": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_children(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Standard_controls(ctx, field, obj) return res } @@ -234615,7 +332195,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 "groups": + case "procedures": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -234624,7 +332204,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_groups(ctx, field, obj) + res = ec._Standard_procedures(ctx, field, obj) return res } @@ -234648,7 +332228,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 "templates": + case "actionplans": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -234657,7 +332237,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_templates(ctx, field, obj) + res = ec._Standard_actionplans(ctx, field, obj) return res } @@ -234681,667 +332261,546 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integrations": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_integrations(ctx, field, obj) - return res - } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "setting": - field := field + return out +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_setting(ctx, field, obj) - return res - } +var standardBulkCreatePayloadImplementors = []string{"StandardBulkCreatePayload"} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) _StandardBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *StandardBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardBulkCreatePayloadImplementors) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardBulkCreatePayload") + case "standards": + out.Values[i] = ec._StandardBulkCreatePayload_standards(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "documentdata": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_documentdata(ctx, field, obj) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + return out +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +var standardConnectionImplementors = []string{"StandardConnection"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entitlements": - field := field +func (ec *executionContext) _StandardConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.StandardConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardConnectionImplementors) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_entitlements(ctx, field, obj) - return res + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardConnection") + case "edges": + out.Values[i] = ec._StandardConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._StandardConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "totalCount": + out.Values[i] = ec._StandardConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organizationEntitlement": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_organizationEntitlement(ctx, field, obj) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + return out +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +var standardCreatePayloadImplementors = []string{"StandardCreatePayload"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "personalAccessTokens": - field := field +func (ec *executionContext) _StandardCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *StandardCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardCreatePayloadImplementors) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_personalAccessTokens(ctx, field, obj) - return res + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardCreatePayload") + case "standard": + out.Values[i] = ec._StandardCreatePayload_standard(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "apiTokens": - field := field + return out +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_apiTokens(ctx, field, obj) - return res - } +var standardDeletePayloadImplementors = []string{"StandardDeletePayload"} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) _StandardDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *StandardDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardDeletePayloadImplementors) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardDeletePayload") + case "deletedID": + out.Values[i] = ec._StandardDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "oauthprovider": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_oauthprovider(ctx, field, obj) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + return out +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +var standardEdgeImplementors = []string{"StandardEdge"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "users": - field := field +func (ec *executionContext) _StandardEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.StandardEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardEdgeImplementors) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_users(ctx, field, obj) - return res + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardEdge") + case "node": + out.Values[i] = ec._StandardEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._StandardEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "invites": - field := field + return out +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_invites(ctx, field, obj) - return res - } +var standardHistoryImplementors = []string{"StandardHistory", "Node"} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) _StandardHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.StandardHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardHistoryImplementors) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardHistory") + case "id": + out.Values[i] = ec._StandardHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "subscribers": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_subscribers(ctx, field, obj) - return res + case "historyTime": + out.Values[i] = ec._StandardHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "ref": + out.Values[i] = ec._StandardHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._StandardHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "webhooks": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_webhooks(ctx, field, obj) - return res + case "createdAt": + out.Values[i] = ec._StandardHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._StandardHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._StandardHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._StandardHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._StandardHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._StandardHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._StandardHistory_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._StandardHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "description": + out.Values[i] = ec._StandardHistory_description(ctx, field, obj) + case "family": + out.Values[i] = ec._StandardHistory_family(ctx, field, obj) + case "status": + out.Values[i] = ec._StandardHistory_status(ctx, field, obj) + case "standardType": + out.Values[i] = ec._StandardHistory_standardType(ctx, field, obj) + case "version": + out.Values[i] = ec._StandardHistory_version(ctx, field, obj) + case "purposeAndScope": + out.Values[i] = ec._StandardHistory_purposeAndScope(ctx, field, obj) + case "background": + out.Values[i] = ec._StandardHistory_background(ctx, field, obj) + case "satisfies": + out.Values[i] = ec._StandardHistory_satisfies(ctx, field, obj) + case "details": + out.Values[i] = ec._StandardHistory_details(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": - field := field + return out +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_events(ctx, field, obj) - return res - } +var standardHistoryConnectionImplementors = []string{"StandardHistoryConnection"} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) _StandardHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.StandardHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardHistoryConnectionImplementors) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardHistoryConnection") + case "edges": + out.Values[i] = ec._StandardHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._StandardHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "secrets": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_secrets(ctx, field, obj) - return res + case "totalCount": + out.Values[i] = ec._StandardHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "features": - field := field + return out +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_features(ctx, field, obj) - return res - } +var standardHistoryEdgeImplementors = []string{"StandardHistoryEdge"} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) _StandardHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.StandardHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardHistoryEdgeImplementors) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardHistoryEdge") + case "node": + out.Values[i] = ec._StandardHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._StandardHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_files(ctx, field, obj) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + return out +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +var standardSearchResultImplementors = []string{"StandardSearchResult", "SearchResult"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entitlementplans": - field := field +func (ec *executionContext) _StandardSearchResult(ctx context.Context, sel ast.SelectionSet, obj *StandardSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardSearchResultImplementors) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_entitlementplans(ctx, field, obj) - return res - } + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardSearchResult") + case "standards": + out.Values[i] = ec._StandardSearchResult_standards(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entitlementplanfeatures": - field := field + return out +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_entitlementplanfeatures(ctx, field, obj) - return res - } +var standardUpdatePayloadImplementors = []string{"StandardUpdatePayload"} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) _StandardUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *StandardUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardUpdatePayloadImplementors) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardUpdatePayload") + case "standard": + out.Values[i] = ec._StandardUpdatePayload_standard(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entities": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_entities(ctx, field, obj) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + return out +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +var subcontrolImplementors = []string{"Subcontrol", "Node"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "entitytypes": - field := field +func (ec *executionContext) _Subcontrol(ctx context.Context, sel ast.SelectionSet, obj *generated.Subcontrol) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolImplementors) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Organization_entitytypes(ctx, field, obj) - return res + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Subcontrol") + case "id": + out.Values[i] = ec._Subcontrol_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + case "createdAt": + out.Values[i] = ec._Subcontrol_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Subcontrol_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Subcontrol_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Subcontrol_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._Subcontrol_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._Subcontrol_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Subcontrol_tags(ctx, field, obj) + case "name": + out.Values[i] = ec._Subcontrol_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "contacts": + case "description": + out.Values[i] = ec._Subcontrol_description(ctx, field, obj) + case "status": + out.Values[i] = ec._Subcontrol_status(ctx, field, obj) + case "subcontrolType": + out.Values[i] = ec._Subcontrol_subcontrolType(ctx, field, obj) + case "version": + out.Values[i] = ec._Subcontrol_version(ctx, field, obj) + case "subcontrolNumber": + out.Values[i] = ec._Subcontrol_subcontrolNumber(ctx, field, obj) + case "family": + out.Values[i] = ec._Subcontrol_family(ctx, field, obj) + case "class": + out.Values[i] = ec._Subcontrol_class(ctx, field, obj) + case "source": + out.Values[i] = ec._Subcontrol_source(ctx, field, obj) + case "mappedFrameworks": + out.Values[i] = ec._Subcontrol_mappedFrameworks(ctx, field, obj) + case "implementationEvidence": + out.Values[i] = ec._Subcontrol_implementationEvidence(ctx, field, obj) + case "implementationStatus": + out.Values[i] = ec._Subcontrol_implementationStatus(ctx, field, obj) + case "implementationDate": + out.Values[i] = ec._Subcontrol_implementationDate(ctx, field, obj) + case "implementationVerification": + out.Values[i] = ec._Subcontrol_implementationVerification(ctx, field, obj) + case "implementationVerificationDate": + out.Values[i] = ec._Subcontrol_implementationVerificationDate(ctx, field, obj) + case "details": + out.Values[i] = ec._Subcontrol_details(ctx, field, obj) + case "control": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -235350,7 +332809,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_contacts(ctx, field, obj) + res = ec._Subcontrol_control(ctx, field, obj) return res } @@ -235374,7 +332833,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 "notes": + case "user": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -235383,7 +332842,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_notes(ctx, field, obj) + res = ec._Subcontrol_user(ctx, field, obj) return res } @@ -235407,7 +332866,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 "members": + case "notes": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -235416,7 +332875,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_members(ctx, field, obj) + res = ec._Subcontrol_notes(ctx, field, obj) return res } @@ -235463,19 +332922,19 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection return out } -var organizationBulkCreatePayloadImplementors = []string{"OrganizationBulkCreatePayload"} +var subcontrolBulkCreatePayloadImplementors = []string{"SubcontrolBulkCreatePayload"} -func (ec *executionContext) _OrganizationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationBulkCreatePayloadImplementors) +func (ec *executionContext) _SubcontrolBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubcontrolBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationBulkCreatePayload") - case "organizations": - out.Values[i] = ec._OrganizationBulkCreatePayload_organizations(ctx, field, obj) + out.Values[i] = graphql.MarshalString("SubcontrolBulkCreatePayload") + case "subcontrols": + out.Values[i] = ec._SubcontrolBulkCreatePayload_subcontrols(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -235499,26 +332958,26 @@ func (ec *executionContext) _OrganizationBulkCreatePayload(ctx context.Context, return out } -var organizationConnectionImplementors = []string{"OrganizationConnection"} +var subcontrolConnectionImplementors = []string{"SubcontrolConnection"} -func (ec *executionContext) _OrganizationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationConnectionImplementors) +func (ec *executionContext) _SubcontrolConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.SubcontrolConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationConnection") + out.Values[i] = graphql.MarshalString("SubcontrolConnection") case "edges": - out.Values[i] = ec._OrganizationConnection_edges(ctx, field, obj) + out.Values[i] = ec._SubcontrolConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._OrganizationConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._SubcontrolConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._OrganizationConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._SubcontrolConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -235545,19 +333004,19 @@ func (ec *executionContext) _OrganizationConnection(ctx context.Context, sel ast return out } -var organizationCreatePayloadImplementors = []string{"OrganizationCreatePayload"} +var subcontrolCreatePayloadImplementors = []string{"SubcontrolCreatePayload"} -func (ec *executionContext) _OrganizationCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationCreatePayloadImplementors) +func (ec *executionContext) _SubcontrolCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubcontrolCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationCreatePayload") - case "organization": - out.Values[i] = ec._OrganizationCreatePayload_organization(ctx, field, obj) + out.Values[i] = graphql.MarshalString("SubcontrolCreatePayload") + case "subcontrol": + out.Values[i] = ec._SubcontrolCreatePayload_subcontrol(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -235584,19 +333043,19 @@ func (ec *executionContext) _OrganizationCreatePayload(ctx context.Context, sel return out } -var organizationDeletePayloadImplementors = []string{"OrganizationDeletePayload"} +var subcontrolDeletePayloadImplementors = []string{"SubcontrolDeletePayload"} -func (ec *executionContext) _OrganizationDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationDeletePayloadImplementors) +func (ec *executionContext) _SubcontrolDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *SubcontrolDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationDeletePayload") + out.Values[i] = graphql.MarshalString("SubcontrolDeletePayload") case "deletedID": - out.Values[i] = ec._OrganizationDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = ec._SubcontrolDeletePayload_deletedID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -235623,21 +333082,21 @@ func (ec *executionContext) _OrganizationDeletePayload(ctx context.Context, sel return out } -var organizationEdgeImplementors = []string{"OrganizationEdge"} +var subcontrolEdgeImplementors = []string{"SubcontrolEdge"} -func (ec *executionContext) _OrganizationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationEdgeImplementors) +func (ec *executionContext) _SubcontrolEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.SubcontrolEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationEdge") + out.Values[i] = graphql.MarshalString("SubcontrolEdge") case "node": - out.Values[i] = ec._OrganizationEdge_node(ctx, field, obj) + out.Values[i] = ec._SubcontrolEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._OrganizationEdge_cursor(ctx, field, obj) + out.Values[i] = ec._SubcontrolEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -235664,69 +333123,83 @@ func (ec *executionContext) _OrganizationEdge(ctx context.Context, sel ast.Selec return out } -var organizationHistoryImplementors = []string{"OrganizationHistory", "Node"} +var subcontrolHistoryImplementors = []string{"SubcontrolHistory", "Node"} -func (ec *executionContext) _OrganizationHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationHistoryImplementors) +func (ec *executionContext) _SubcontrolHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.SubcontrolHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolHistoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationHistory") + out.Values[i] = graphql.MarshalString("SubcontrolHistory") case "id": - out.Values[i] = ec._OrganizationHistory_id(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistory_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "historyTime": - out.Values[i] = ec._OrganizationHistory_historyTime(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistory_historyTime(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "ref": - out.Values[i] = ec._OrganizationHistory_ref(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistory_ref(ctx, field, obj) case "operation": - out.Values[i] = ec._OrganizationHistory_operation(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistory_operation(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "createdAt": - out.Values[i] = ec._OrganizationHistory_createdAt(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistory_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._OrganizationHistory_updatedAt(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistory_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._OrganizationHistory_createdBy(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistory_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._OrganizationHistory_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._OrganizationHistory_tags(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistory_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._OrganizationHistory_deletedAt(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistory_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._OrganizationHistory_deletedBy(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._SubcontrolHistory_tags(ctx, field, obj) case "name": - out.Values[i] = ec._OrganizationHistory_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "displayName": - out.Values[i] = ec._OrganizationHistory_displayName(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistory_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "description": - out.Values[i] = ec._OrganizationHistory_description(ctx, field, obj) - case "personalOrg": - out.Values[i] = ec._OrganizationHistory_personalOrg(ctx, field, obj) - case "avatarRemoteURL": - out.Values[i] = ec._OrganizationHistory_avatarRemoteURL(ctx, field, obj) - case "dedicatedDb": - out.Values[i] = ec._OrganizationHistory_dedicatedDb(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = ec._SubcontrolHistory_description(ctx, field, obj) + case "status": + out.Values[i] = ec._SubcontrolHistory_status(ctx, field, obj) + case "subcontrolType": + out.Values[i] = ec._SubcontrolHistory_subcontrolType(ctx, field, obj) + case "version": + out.Values[i] = ec._SubcontrolHistory_version(ctx, field, obj) + case "subcontrolNumber": + out.Values[i] = ec._SubcontrolHistory_subcontrolNumber(ctx, field, obj) + case "family": + out.Values[i] = ec._SubcontrolHistory_family(ctx, field, obj) + case "class": + out.Values[i] = ec._SubcontrolHistory_class(ctx, field, obj) + case "source": + out.Values[i] = ec._SubcontrolHistory_source(ctx, field, obj) + case "mappedFrameworks": + out.Values[i] = ec._SubcontrolHistory_mappedFrameworks(ctx, field, obj) + case "implementationEvidence": + out.Values[i] = ec._SubcontrolHistory_implementationEvidence(ctx, field, obj) + case "implementationStatus": + out.Values[i] = ec._SubcontrolHistory_implementationStatus(ctx, field, obj) + case "implementationDate": + out.Values[i] = ec._SubcontrolHistory_implementationDate(ctx, field, obj) + case "implementationVerification": + out.Values[i] = ec._SubcontrolHistory_implementationVerification(ctx, field, obj) + case "implementationVerificationDate": + out.Values[i] = ec._SubcontrolHistory_implementationVerificationDate(ctx, field, obj) + case "details": + out.Values[i] = ec._SubcontrolHistory_details(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -235750,26 +333223,26 @@ func (ec *executionContext) _OrganizationHistory(ctx context.Context, sel ast.Se return out } -var organizationHistoryConnectionImplementors = []string{"OrganizationHistoryConnection"} +var subcontrolHistoryConnectionImplementors = []string{"SubcontrolHistoryConnection"} -func (ec *executionContext) _OrganizationHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationHistoryConnectionImplementors) +func (ec *executionContext) _SubcontrolHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.SubcontrolHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationHistoryConnection") + out.Values[i] = graphql.MarshalString("SubcontrolHistoryConnection") case "edges": - out.Values[i] = ec._OrganizationHistoryConnection_edges(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistoryConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._OrganizationHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._OrganizationHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -235796,21 +333269,21 @@ func (ec *executionContext) _OrganizationHistoryConnection(ctx context.Context, return out } -var organizationHistoryEdgeImplementors = []string{"OrganizationHistoryEdge"} +var subcontrolHistoryEdgeImplementors = []string{"SubcontrolHistoryEdge"} -func (ec *executionContext) _OrganizationHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationHistoryEdgeImplementors) +func (ec *executionContext) _SubcontrolHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.SubcontrolHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationHistoryEdge") + out.Values[i] = graphql.MarshalString("SubcontrolHistoryEdge") case "node": - out.Values[i] = ec._OrganizationHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistoryEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._OrganizationHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = ec._SubcontrolHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -235837,19 +333310,19 @@ func (ec *executionContext) _OrganizationHistoryEdge(ctx context.Context, sel as return out } -var organizationSearchResultImplementors = []string{"OrganizationSearchResult", "SearchResult"} +var subcontrolSearchResultImplementors = []string{"SubcontrolSearchResult", "SearchResult"} -func (ec *executionContext) _OrganizationSearchResult(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSearchResultImplementors) +func (ec *executionContext) _SubcontrolSearchResult(ctx context.Context, sel ast.SelectionSet, obj *SubcontrolSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSearchResult") - case "organizations": - out.Values[i] = ec._OrganizationSearchResult_organizations(ctx, field, obj) + out.Values[i] = graphql.MarshalString("SubcontrolSearchResult") + case "subcontrols": + out.Values[i] = ec._SubcontrolSearchResult_subcontrols(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -235873,53 +333346,100 @@ func (ec *executionContext) _OrganizationSearchResult(ctx context.Context, sel a return out } -var organizationSettingImplementors = []string{"OrganizationSetting", "Node"} +var subcontrolUpdatePayloadImplementors = []string{"SubcontrolUpdatePayload"} -func (ec *executionContext) _OrganizationSetting(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSetting) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingImplementors) +func (ec *executionContext) _SubcontrolUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubcontrolUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSetting") + out.Values[i] = graphql.MarshalString("SubcontrolUpdatePayload") + case "subcontrol": + out.Values[i] = ec._SubcontrolUpdatePayload_subcontrol(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var subscriberImplementors = []string{"Subscriber", "Node"} + +func (ec *executionContext) _Subscriber(ctx context.Context, sel ast.SelectionSet, obj *generated.Subscriber) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Subscriber") case "id": - out.Values[i] = ec._OrganizationSetting_id(ctx, field, obj) + out.Values[i] = ec._Subscriber_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._OrganizationSetting_createdAt(ctx, field, obj) + out.Values[i] = ec._Subscriber_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._OrganizationSetting_updatedAt(ctx, field, obj) + out.Values[i] = ec._Subscriber_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._OrganizationSetting_createdBy(ctx, field, obj) + out.Values[i] = ec._Subscriber_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._OrganizationSetting_updatedBy(ctx, field, obj) + out.Values[i] = ec._Subscriber_updatedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._OrganizationSetting_tags(ctx, field, obj) + out.Values[i] = ec._Subscriber_tags(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._OrganizationSetting_deletedAt(ctx, field, obj) + out.Values[i] = ec._Subscriber_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._OrganizationSetting_deletedBy(ctx, field, obj) - case "domains": - out.Values[i] = ec._OrganizationSetting_domains(ctx, field, obj) - case "billingContact": - out.Values[i] = ec._OrganizationSetting_billingContact(ctx, field, obj) - case "billingEmail": - out.Values[i] = ec._OrganizationSetting_billingEmail(ctx, field, obj) - case "billingPhone": - out.Values[i] = ec._OrganizationSetting_billingPhone(ctx, field, obj) - case "billingAddress": - out.Values[i] = ec._OrganizationSetting_billingAddress(ctx, field, obj) - case "taxIdentifier": - out.Values[i] = ec._OrganizationSetting_taxIdentifier(ctx, field, obj) - case "geoLocation": - out.Values[i] = ec._OrganizationSetting_geoLocation(ctx, field, obj) - case "organizationID": - out.Values[i] = ec._OrganizationSetting_organizationID(ctx, field, obj) - case "organization": + out.Values[i] = ec._Subscriber_deletedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Subscriber_ownerID(ctx, field, obj) + case "email": + out.Values[i] = ec._Subscriber_email(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "phoneNumber": + out.Values[i] = ec._Subscriber_phoneNumber(ctx, field, obj) + case "verifiedEmail": + out.Values[i] = ec._Subscriber_verifiedEmail(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "verifiedPhone": + out.Values[i] = ec._Subscriber_verifiedPhone(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "active": + out.Values[i] = ec._Subscriber_active(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "owner": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -235928,7 +333448,7 @@ func (ec *executionContext) _OrganizationSetting(ctx context.Context, sel ast.Se ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._OrganizationSetting_organization(ctx, field, obj) + res = ec._Subscriber_owner(ctx, field, obj) return res } @@ -235952,7 +333472,7 @@ func (ec *executionContext) _OrganizationSetting(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": + case "events": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -235961,7 +333481,7 @@ func (ec *executionContext) _OrganizationSetting(ctx context.Context, sel ast.Se ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._OrganizationSetting_files(ctx, field, obj) + res = ec._Subscriber_events(ctx, field, obj) return res } @@ -236008,19 +333528,19 @@ func (ec *executionContext) _OrganizationSetting(ctx context.Context, sel ast.Se return out } -var organizationSettingBulkCreatePayloadImplementors = []string{"OrganizationSettingBulkCreatePayload"} +var subscriberBulkCreatePayloadImplementors = []string{"SubscriberBulkCreatePayload"} -func (ec *executionContext) _OrganizationSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingBulkCreatePayloadImplementors) +func (ec *executionContext) _SubscriberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubscriberBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingBulkCreatePayload") - case "organizationSettings": - out.Values[i] = ec._OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field, obj) + out.Values[i] = graphql.MarshalString("SubscriberBulkCreatePayload") + case "subscribers": + out.Values[i] = ec._SubscriberBulkCreatePayload_subscribers(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -236044,26 +333564,26 @@ func (ec *executionContext) _OrganizationSettingBulkCreatePayload(ctx context.Co return out } -var organizationSettingConnectionImplementors = []string{"OrganizationSettingConnection"} +var subscriberConnectionImplementors = []string{"SubscriberConnection"} -func (ec *executionContext) _OrganizationSettingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSettingConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingConnectionImplementors) +func (ec *executionContext) _SubscriberConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.SubscriberConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingConnection") + out.Values[i] = graphql.MarshalString("SubscriberConnection") case "edges": - out.Values[i] = ec._OrganizationSettingConnection_edges(ctx, field, obj) + out.Values[i] = ec._SubscriberConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._OrganizationSettingConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._SubscriberConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._OrganizationSettingConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._SubscriberConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -236090,19 +333610,19 @@ func (ec *executionContext) _OrganizationSettingConnection(ctx context.Context, return out } -var organizationSettingCreatePayloadImplementors = []string{"OrganizationSettingCreatePayload"} +var subscriberCreatePayloadImplementors = []string{"SubscriberCreatePayload"} -func (ec *executionContext) _OrganizationSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingCreatePayloadImplementors) +func (ec *executionContext) _SubscriberCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubscriberCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingCreatePayload") - case "organizationSetting": - out.Values[i] = ec._OrganizationSettingCreatePayload_organizationSetting(ctx, field, obj) + out.Values[i] = graphql.MarshalString("SubscriberCreatePayload") + case "subscriber": + out.Values[i] = ec._SubscriberCreatePayload_subscriber(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -236129,19 +333649,19 @@ func (ec *executionContext) _OrganizationSettingCreatePayload(ctx context.Contex return out } -var organizationSettingDeletePayloadImplementors = []string{"OrganizationSettingDeletePayload"} +var subscriberDeletePayloadImplementors = []string{"SubscriberDeletePayload"} -func (ec *executionContext) _OrganizationSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingDeletePayloadImplementors) +func (ec *executionContext) _SubscriberDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *SubscriberDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberDeletePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingDeletePayload") - case "deletedID": - out.Values[i] = ec._OrganizationSettingDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = graphql.MarshalString("SubscriberDeletePayload") + case "email": + out.Values[i] = ec._SubscriberDeletePayload_email(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -236168,21 +333688,21 @@ func (ec *executionContext) _OrganizationSettingDeletePayload(ctx context.Contex return out } -var organizationSettingEdgeImplementors = []string{"OrganizationSettingEdge"} +var subscriberEdgeImplementors = []string{"SubscriberEdge"} -func (ec *executionContext) _OrganizationSettingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSettingEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingEdgeImplementors) +func (ec *executionContext) _SubscriberEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.SubscriberEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingEdge") + out.Values[i] = graphql.MarshalString("SubscriberEdge") case "node": - out.Values[i] = ec._OrganizationSettingEdge_node(ctx, field, obj) + out.Values[i] = ec._SubscriberEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._OrganizationSettingEdge_cursor(ctx, field, obj) + out.Values[i] = ec._SubscriberEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -236209,64 +333729,58 @@ func (ec *executionContext) _OrganizationSettingEdge(ctx context.Context, sel as return out } -var organizationSettingHistoryImplementors = []string{"OrganizationSettingHistory", "Node"} +var subscriberSearchResultImplementors = []string{"SubscriberSearchResult", "SearchResult"} -func (ec *executionContext) _OrganizationSettingHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSettingHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingHistoryImplementors) +func (ec *executionContext) _SubscriberSearchResult(ctx context.Context, sel ast.SelectionSet, obj *SubscriberSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingHistory") - case "id": - out.Values[i] = ec._OrganizationSettingHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._OrganizationSettingHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._OrganizationSettingHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._OrganizationSettingHistory_operation(ctx, field, obj) + out.Values[i] = graphql.MarshalString("SubscriberSearchResult") + case "subscribers": + out.Values[i] = ec._SubscriberSearchResult_subscribers(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var subscriberUpdatePayloadImplementors = []string{"SubscriberUpdatePayload"} + +func (ec *executionContext) _SubscriberUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubscriberUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("SubscriberUpdatePayload") + case "subscriber": + out.Values[i] = ec._SubscriberUpdatePayload_subscriber(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "createdAt": - out.Values[i] = ec._OrganizationSettingHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._OrganizationSettingHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._OrganizationSettingHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._OrganizationSettingHistory_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._OrganizationSettingHistory_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._OrganizationSettingHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._OrganizationSettingHistory_deletedBy(ctx, field, obj) - case "domains": - out.Values[i] = ec._OrganizationSettingHistory_domains(ctx, field, obj) - case "billingContact": - out.Values[i] = ec._OrganizationSettingHistory_billingContact(ctx, field, obj) - case "billingEmail": - out.Values[i] = ec._OrganizationSettingHistory_billingEmail(ctx, field, obj) - case "billingPhone": - out.Values[i] = ec._OrganizationSettingHistory_billingPhone(ctx, field, obj) - case "billingAddress": - out.Values[i] = ec._OrganizationSettingHistory_billingAddress(ctx, field, obj) - case "taxIdentifier": - out.Values[i] = ec._OrganizationSettingHistory_taxIdentifier(ctx, field, obj) - case "geoLocation": - out.Values[i] = ec._OrganizationSettingHistory_geoLocation(ctx, field, obj) - case "organizationID": - out.Values[i] = ec._OrganizationSettingHistory_organizationID(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -236290,29 +333804,80 @@ func (ec *executionContext) _OrganizationSettingHistory(ctx context.Context, sel return out } -var organizationSettingHistoryConnectionImplementors = []string{"OrganizationSettingHistoryConnection"} +var tFASettingImplementors = []string{"TFASetting", "Node"} -func (ec *executionContext) _OrganizationSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSettingHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingHistoryConnectionImplementors) +func (ec *executionContext) _TFASetting(ctx context.Context, sel ast.SelectionSet, obj *generated.TFASetting) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingHistoryConnection") - case "edges": - out.Values[i] = ec._OrganizationSettingHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._OrganizationSettingHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = graphql.MarshalString("TFASetting") + case "id": + out.Values[i] = ec._TFASetting_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) } - case "totalCount": - out.Values[i] = ec._OrganizationSettingHistoryConnection_totalCount(ctx, field, obj) + case "createdAt": + out.Values[i] = ec._TFASetting_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._TFASetting_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._TFASetting_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._TFASetting_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._TFASetting_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._TFASetting_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._TFASetting_tags(ctx, field, obj) + case "tfaSecret": + out.Values[i] = ec._TFASetting_tfaSecret(ctx, field, obj) + case "verified": + out.Values[i] = ec._TFASetting_verified(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) + } + case "recoveryCodes": + out.Values[i] = ec._TFASetting_recoveryCodes(ctx, field, obj) + case "totpAllowed": + out.Values[i] = ec._TFASetting_totpAllowed(ctx, field, obj) + case "owner": + field := field + + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._TFASetting_owner(ctx, field, obj) + return res + } + + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -236336,21 +333901,26 @@ func (ec *executionContext) _OrganizationSettingHistoryConnection(ctx context.Co return out } -var organizationSettingHistoryEdgeImplementors = []string{"OrganizationSettingHistoryEdge"} +var tFASettingConnectionImplementors = []string{"TFASettingConnection"} -func (ec *executionContext) _OrganizationSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSettingHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingHistoryEdgeImplementors) +func (ec *executionContext) _TFASettingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.TFASettingConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingHistoryEdge") - case "node": - out.Values[i] = ec._OrganizationSettingHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._OrganizationSettingHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = graphql.MarshalString("TFASettingConnection") + case "edges": + out.Values[i] = ec._TFASettingConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._TFASettingConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._TFASettingConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -236377,19 +333947,22 @@ func (ec *executionContext) _OrganizationSettingHistoryEdge(ctx context.Context, return out } -var organizationSettingSearchResultImplementors = []string{"OrganizationSettingSearchResult", "SearchResult"} +var tFASettingCreatePayloadImplementors = []string{"TFASettingCreatePayload"} -func (ec *executionContext) _OrganizationSettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingSearchResultImplementors) +func (ec *executionContext) _TFASettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *TFASettingCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingSearchResult") - case "organizationSettings": - out.Values[i] = ec._OrganizationSettingSearchResult_organizationSettings(ctx, field, obj) + out.Values[i] = graphql.MarshalString("TFASettingCreatePayload") + case "tfaSetting": + out.Values[i] = ec._TFASettingCreatePayload_tfaSetting(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -236413,19 +333986,21 @@ func (ec *executionContext) _OrganizationSettingSearchResult(ctx context.Context return out } -var organizationSettingUpdatePayloadImplementors = []string{"OrganizationSettingUpdatePayload"} +var tFASettingEdgeImplementors = []string{"TFASettingEdge"} -func (ec *executionContext) _OrganizationSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingUpdatePayloadImplementors) +func (ec *executionContext) _TFASettingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.TFASettingEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingUpdatePayload") - case "organizationSetting": - out.Values[i] = ec._OrganizationSettingUpdatePayload_organizationSetting(ctx, field, obj) + out.Values[i] = graphql.MarshalString("TFASettingEdge") + case "node": + out.Values[i] = ec._TFASettingEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._TFASettingEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -236452,22 +334027,19 @@ func (ec *executionContext) _OrganizationSettingUpdatePayload(ctx context.Contex return out } -var organizationUpdatePayloadImplementors = []string{"OrganizationUpdatePayload"} +var tFASettingSearchResultImplementors = []string{"TFASettingSearchResult", "SearchResult"} -func (ec *executionContext) _OrganizationUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationUpdatePayloadImplementors) +func (ec *executionContext) _TFASettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *TFASettingSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationUpdatePayload") - case "organization": - out.Values[i] = ec._OrganizationUpdatePayload_organization(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = graphql.MarshalString("TFASettingSearchResult") + case "tFASettings": + out.Values[i] = ec._TFASettingSearchResult_tFASettings(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -236491,31 +334063,22 @@ func (ec *executionContext) _OrganizationUpdatePayload(ctx context.Context, sel return out } -var pageInfoImplementors = []string{"PageInfo"} +var tFASettingUpdatePayloadImplementors = []string{"TFASettingUpdatePayload"} -func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *entgql.PageInfo[string]) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, pageInfoImplementors) +func (ec *executionContext) _TFASettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *TFASettingUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("PageInfo") - case "hasNextPage": - out.Values[i] = ec._PageInfo_hasNextPage(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "hasPreviousPage": - out.Values[i] = ec._PageInfo_hasPreviousPage(ctx, field, obj) + out.Values[i] = graphql.MarshalString("TFASettingUpdatePayload") + case "tfaSetting": + out.Values[i] = ec._TFASettingUpdatePayload_tfaSetting(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "startCursor": - out.Values[i] = ec._PageInfo_startCursor(ctx, field, obj) - case "endCursor": - out.Values[i] = ec._PageInfo_endCursor(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -236539,67 +334102,67 @@ func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, return out } -var personalAccessTokenImplementors = []string{"PersonalAccessToken", "Node"} +var templateImplementors = []string{"Template", "Node"} -func (ec *executionContext) _PersonalAccessToken(ctx context.Context, sel ast.SelectionSet, obj *generated.PersonalAccessToken) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenImplementors) +func (ec *executionContext) _Template(ctx context.Context, sel ast.SelectionSet, obj *generated.Template) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessToken") + out.Values[i] = graphql.MarshalString("Template") case "id": - out.Values[i] = ec._PersonalAccessToken_id(ctx, field, obj) + out.Values[i] = ec._Template_id(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } case "createdAt": - out.Values[i] = ec._PersonalAccessToken_createdAt(ctx, field, obj) + out.Values[i] = ec._Template_createdAt(ctx, field, obj) case "updatedAt": - out.Values[i] = ec._PersonalAccessToken_updatedAt(ctx, field, obj) + out.Values[i] = ec._Template_updatedAt(ctx, field, obj) case "createdBy": - out.Values[i] = ec._PersonalAccessToken_createdBy(ctx, field, obj) + out.Values[i] = ec._Template_createdBy(ctx, field, obj) case "updatedBy": - out.Values[i] = ec._PersonalAccessToken_updatedBy(ctx, field, obj) + out.Values[i] = ec._Template_updatedBy(ctx, field, obj) case "deletedAt": - out.Values[i] = ec._PersonalAccessToken_deletedAt(ctx, field, obj) + out.Values[i] = ec._Template_deletedAt(ctx, field, obj) case "deletedBy": - out.Values[i] = ec._PersonalAccessToken_deletedBy(ctx, field, obj) + out.Values[i] = ec._Template_deletedBy(ctx, field, obj) case "tags": - out.Values[i] = ec._PersonalAccessToken_tags(ctx, field, obj) + out.Values[i] = ec._Template_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Template_ownerID(ctx, field, obj) case "name": - out.Values[i] = ec._PersonalAccessToken_name(ctx, field, obj) + out.Values[i] = ec._Template_name(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "token": - out.Values[i] = ec._PersonalAccessToken_token(ctx, field, obj) + case "templateType": + out.Values[i] = ec._Template_templateType(ctx, field, obj) if out.Values[i] == graphql.Null { atomic.AddUint32(&out.Invalids, 1) } - case "expiresAt": - out.Values[i] = ec._PersonalAccessToken_expiresAt(ctx, field, obj) case "description": - out.Values[i] = ec._PersonalAccessToken_description(ctx, field, obj) - case "scopes": - out.Values[i] = ec._PersonalAccessToken_scopes(ctx, field, obj) - case "lastUsedAt": - out.Values[i] = ec._PersonalAccessToken_lastUsedAt(ctx, field, obj) + out.Values[i] = ec._Template_description(ctx, field, obj) + case "jsonconfig": + out.Values[i] = ec._Template_jsonconfig(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "uischema": + out.Values[i] = ec._Template_uischema(ctx, field, obj) case "owner": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._PersonalAccessToken_owner(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._Template_owner(ctx, field, obj) return res } @@ -236623,7 +334186,7 @@ func (ec *executionContext) _PersonalAccessToken(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organizations": + case "documents": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -236632,7 +334195,7 @@ func (ec *executionContext) _PersonalAccessToken(ctx context.Context, sel ast.Se ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._PersonalAccessToken_organizations(ctx, field, obj) + res = ec._Template_documents(ctx, field, obj) return res } @@ -236656,7 +334219,7 @@ func (ec *executionContext) _PersonalAccessToken(ctx context.Context, sel ast.Se } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": + case "files": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -236665,7 +334228,7 @@ func (ec *executionContext) _PersonalAccessToken(ctx context.Context, sel ast.Se ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._PersonalAccessToken_events(ctx, field, obj) + res = ec._Template_files(ctx, field, obj) return res } @@ -236712,19 +334275,19 @@ func (ec *executionContext) _PersonalAccessToken(ctx context.Context, sel ast.Se return out } -var personalAccessTokenBulkCreatePayloadImplementors = []string{"PersonalAccessTokenBulkCreatePayload"} +var templateBulkCreatePayloadImplementors = []string{"TemplateBulkCreatePayload"} -func (ec *executionContext) _PersonalAccessTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenBulkCreatePayloadImplementors) +func (ec *executionContext) _TemplateBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *TemplateBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateBulkCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessTokenBulkCreatePayload") - case "personalAccessTokens": - out.Values[i] = ec._PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field, obj) + out.Values[i] = graphql.MarshalString("TemplateBulkCreatePayload") + case "templates": + out.Values[i] = ec._TemplateBulkCreatePayload_templates(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -236748,26 +334311,26 @@ func (ec *executionContext) _PersonalAccessTokenBulkCreatePayload(ctx context.Co return out } -var personalAccessTokenConnectionImplementors = []string{"PersonalAccessTokenConnection"} +var templateConnectionImplementors = []string{"TemplateConnection"} -func (ec *executionContext) _PersonalAccessTokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.PersonalAccessTokenConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenConnectionImplementors) +func (ec *executionContext) _TemplateConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.TemplateConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessTokenConnection") + out.Values[i] = graphql.MarshalString("TemplateConnection") case "edges": - out.Values[i] = ec._PersonalAccessTokenConnection_edges(ctx, field, obj) + out.Values[i] = ec._TemplateConnection_edges(ctx, field, obj) case "pageInfo": - out.Values[i] = ec._PersonalAccessTokenConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._TemplateConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._PersonalAccessTokenConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._TemplateConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -236794,22 +334357,188 @@ func (ec *executionContext) _PersonalAccessTokenConnection(ctx context.Context, return out } -var personalAccessTokenCreatePayloadImplementors = []string{"PersonalAccessTokenCreatePayload"} +var templateCreatePayloadImplementors = []string{"TemplateCreatePayload"} -func (ec *executionContext) _PersonalAccessTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenCreatePayloadImplementors) +func (ec *executionContext) _TemplateCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *TemplateCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateCreatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessTokenCreatePayload") - case "personalAccessToken": - out.Values[i] = ec._PersonalAccessTokenCreatePayload_personalAccessToken(ctx, field, obj) + out.Values[i] = graphql.MarshalString("TemplateCreatePayload") + case "template": + out.Values[i] = ec._TemplateCreatePayload_template(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var templateDeletePayloadImplementors = []string{"TemplateDeletePayload"} + +func (ec *executionContext) _TemplateDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *TemplateDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TemplateDeletePayload") + case "deletedID": + out.Values[i] = ec._TemplateDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var templateEdgeImplementors = []string{"TemplateEdge"} + +func (ec *executionContext) _TemplateEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.TemplateEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TemplateEdge") + case "node": + out.Values[i] = ec._TemplateEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._TemplateEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var templateHistoryImplementors = []string{"TemplateHistory", "Node"} + +func (ec *executionContext) _TemplateHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.TemplateHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TemplateHistory") + case "id": + out.Values[i] = ec._TemplateHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "historyTime": + out.Values[i] = ec._TemplateHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "ref": + out.Values[i] = ec._TemplateHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._TemplateHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createdAt": + out.Values[i] = ec._TemplateHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._TemplateHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._TemplateHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._TemplateHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._TemplateHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._TemplateHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._TemplateHistory_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._TemplateHistory_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._TemplateHistory_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } + case "templateType": + out.Values[i] = ec._TemplateHistory_templateType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec._TemplateHistory_description(ctx, field, obj) + case "jsonconfig": + out.Values[i] = ec._TemplateHistory_jsonconfig(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "uischema": + out.Values[i] = ec._TemplateHistory_uischema(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -236833,19 +334562,26 @@ func (ec *executionContext) _PersonalAccessTokenCreatePayload(ctx context.Contex return out } -var personalAccessTokenDeletePayloadImplementors = []string{"PersonalAccessTokenDeletePayload"} +var templateHistoryConnectionImplementors = []string{"TemplateHistoryConnection"} -func (ec *executionContext) _PersonalAccessTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenDeletePayloadImplementors) +func (ec *executionContext) _TemplateHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.TemplateHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessTokenDeletePayload") - case "deletedID": - out.Values[i] = ec._PersonalAccessTokenDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = graphql.MarshalString("TemplateHistoryConnection") + case "edges": + out.Values[i] = ec._TemplateHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._TemplateHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._TemplateHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -236872,21 +334608,21 @@ func (ec *executionContext) _PersonalAccessTokenDeletePayload(ctx context.Contex return out } -var personalAccessTokenEdgeImplementors = []string{"PersonalAccessTokenEdge"} +var templateHistoryEdgeImplementors = []string{"TemplateHistoryEdge"} -func (ec *executionContext) _PersonalAccessTokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.PersonalAccessTokenEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenEdgeImplementors) +func (ec *executionContext) _TemplateHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.TemplateHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessTokenEdge") + out.Values[i] = graphql.MarshalString("TemplateHistoryEdge") case "node": - out.Values[i] = ec._PersonalAccessTokenEdge_node(ctx, field, obj) + out.Values[i] = ec._TemplateHistoryEdge_node(ctx, field, obj) case "cursor": - out.Values[i] = ec._PersonalAccessTokenEdge_cursor(ctx, field, obj) + out.Values[i] = ec._TemplateHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -236913,19 +334649,19 @@ func (ec *executionContext) _PersonalAccessTokenEdge(ctx context.Context, sel as return out } -var personalAccessTokenSearchResultImplementors = []string{"PersonalAccessTokenSearchResult", "SearchResult"} +var templateSearchResultImplementors = []string{"TemplateSearchResult", "SearchResult"} -func (ec *executionContext) _PersonalAccessTokenSearchResult(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenSearchResultImplementors) +func (ec *executionContext) _TemplateSearchResult(ctx context.Context, sel ast.SelectionSet, obj *TemplateSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateSearchResultImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessTokenSearchResult") - case "personalAccessTokens": - out.Values[i] = ec._PersonalAccessTokenSearchResult_personalAccessTokens(ctx, field, obj) + out.Values[i] = graphql.MarshalString("TemplateSearchResult") + case "templates": + out.Values[i] = ec._TemplateSearchResult_templates(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -236949,19 +334685,19 @@ func (ec *executionContext) _PersonalAccessTokenSearchResult(ctx context.Context return out } -var personalAccessTokenUpdatePayloadImplementors = []string{"PersonalAccessTokenUpdatePayload"} +var templateUpdatePayloadImplementors = []string{"TemplateUpdatePayload"} -func (ec *executionContext) _PersonalAccessTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenUpdatePayloadImplementors) +func (ec *executionContext) _TemplateUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *TemplateUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateUpdatePayloadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessTokenUpdatePayload") - case "personalAccessToken": - out.Values[i] = ec._PersonalAccessTokenUpdatePayload_personalAccessToken(ctx, field, obj) + out.Values[i] = graphql.MarshalString("TemplateUpdatePayload") + case "template": + out.Values[i] = ec._TemplateUpdatePayload_template(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -236988,991 +334724,136 @@ func (ec *executionContext) _PersonalAccessTokenUpdatePayload(ctx context.Contex return out } -var queryImplementors = []string{"Query"} +var userImplementors = []string{"User", "Node"} -func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors) - ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{ - Object: "Query", - }) +func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *generated.User) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { - innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{ - Object: field.Name, - Field: field, - }) - switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Query") - case "node": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_node(ctx, field) - 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 "nodes": - 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_nodes(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 "apiTokens": - 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_apiTokens(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 "contacts": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_contacts(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 "contactHistories": - 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_contactHistories(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 "documentDataSlice": - 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_documentDataSlice(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 "documentDataHistories": - 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_documentDataHistories(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 "entitlements": - 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_entitlements(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 "entitlementHistories": - 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_entitlementHistories(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 "entitlementPlans": - 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_entitlementPlans(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 "entitlementPlanFeatures": - 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_entitlementPlanFeatures(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 "entitlementPlanFeatureHistories": - 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_entitlementPlanFeatureHistories(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 "entitlementPlanHistories": - 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_entitlementPlanHistories(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 "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._Query_entities(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 "entityHistories": - 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_entityHistories(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 "entityTypes": - 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_entityTypes(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 "entityTypeHistories": - 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_entityTypeHistories(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 "events": - 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_events(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 "eventHistories": - 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_eventHistories(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 "features": - 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_features(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 "featureHistories": - 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_featureHistories(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 "files": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_files(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 "fileHistories": - 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_fileHistories(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 "groups": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_groups(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 "groupHistories": - 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_groupHistories(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 "groupMemberships": - 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_groupMemberships(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 "groupMembershipHistories": - 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_groupMembershipHistories(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 "groupSettings": - 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_groupSettings(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 "groupSettingHistories": - 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_groupSettingHistories(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 "hushes": - 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_hushes(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 "hushHistories": - 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_hushHistories(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 "integrations": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_integrations(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 "integrationHistories": - 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_integrationHistories(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 "invites": - 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_invites(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 "notes": - 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_notes(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 "noteHistories": - 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_noteHistories(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 "oauthProviders": - 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_oauthProviders(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 "oauthProviderHistories": - 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_oauthProviderHistories(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 "ohAuthTooTokens": - 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_ohAuthTooTokens(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + out.Values[i] = graphql.MarshalString("User") + case "id": + out.Values[i] = ec._User_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdAt": + out.Values[i] = ec._User_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._User_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._User_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._User_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._User_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._User_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._User_tags(ctx, field, obj) + case "email": + out.Values[i] = ec._User_email(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "orgMemberships": - 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_orgMemberships(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + case "firstName": + out.Values[i] = ec._User_firstName(ctx, field, obj) + case "lastName": + out.Values[i] = ec._User_lastName(ctx, field, obj) + case "displayName": + out.Values[i] = ec._User_displayName(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "avatarRemoteURL": + out.Values[i] = ec._User_avatarRemoteURL(ctx, field, obj) + case "avatarLocalFile": + out.Values[i] = ec._User_avatarLocalFile(ctx, field, obj) + case "avatarLocalFileID": + out.Values[i] = ec._User_avatarLocalFileID(ctx, field, obj) + case "avatarUpdatedAt": + out.Values[i] = ec._User_avatarUpdatedAt(ctx, field, obj) + case "lastSeen": + out.Values[i] = ec._User_lastSeen(ctx, field, obj) + case "sub": + out.Values[i] = ec._User_sub(ctx, field, obj) + case "authProvider": + out.Values[i] = ec._User_authProvider(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "orgMembershipHistories": + case "role": + out.Values[i] = ec._User_role(ctx, field, obj) + case "personalAccessTokens": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_orgMembershipHistories(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._User_personalAccessTokens(ctx, field, obj) 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 "organizations": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_organizations(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs } - return res - } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "organizationHistories": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "tfaSettings": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_organizationHistories(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._User_tfaSettings(ctx, field, obj) 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 "organizationSettings": - 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_organizationSettings(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs } - return res - } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "organizationSettingHistories": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "setting": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -237981,262 +334862,199 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_organizationSettingHistories(ctx, field) + res = ec._User_setting(ctx, field, obj) 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 "personalAccessTokens": - 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_personalAccessTokens(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs } - return res - } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "subscribers": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "groups": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_subscribers(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._User_groups(ctx, field, obj) 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 "tfaSettings": - 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_tfaSettings(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs } - return res - } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "templates": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "organizations": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_templates(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._User_organizations(ctx, field, obj) 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 "templateHistories": - 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_templateHistories(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs } - return res - } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "users": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "files": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_users(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._User_files(ctx, field, obj) 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 "userHistories": - 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_userHistories(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs } - return res - } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "userSettings": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "file": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_userSettings(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._User_file(ctx, field, obj) 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 "userSettingHistories": - 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_userSettingHistories(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs } - return res - } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "webhooks": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": field := field - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { defer func() { if r := recover(); r != nil { ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_webhooks(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } + res = ec._User_events(ctx, field, obj) 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 "webhookHistories": - 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_webhookHistories(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs } - return res - } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminAPITokenSearch": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "actionplans": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -238245,17 +335063,31 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_adminAPITokenSearch(ctx, field) + res = ec._User_actionplans(ctx, field, obj) return res } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminContactSearch": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "subcontrols": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -238264,17 +335096,31 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_adminContactSearch(ctx, field) + res = ec._User_subcontrols(ctx, field, obj) return res } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminDocumentDataSearch": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "groupMemberships": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -238283,17 +335129,31 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_adminDocumentDataSearch(ctx, field) + res = ec._User_groupMemberships(ctx, field, obj) return res } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminEntitlementSearch": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "orgMemberships": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -238302,359 +335162,531 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_adminEntitlementSearch(ctx, field) + res = ec._User_orgMemberships(ctx, field, obj) return res } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminEntitlementPlanSearch": - field := field + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminEntitlementPlanSearch(ctx, field) - return res - } + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminEntitlementPlanFeatureSearch": - field := field + return out +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminEntitlementPlanFeatureSearch(ctx, field) - return res - } +var userBulkCreatePayloadImplementors = []string{"UserBulkCreatePayload"} - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } +func (ec *executionContext) _UserBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userBulkCreatePayloadImplementors) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminEntitySearch": - field := field + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserBulkCreatePayload") + case "users": + out.Values[i] = ec._UserBulkCreatePayload_users(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminEntitySearch(ctx, field) - return res - } + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminEntityTypeSearch": - field := field + return out +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminEntityTypeSearch(ctx, field) - return res - } +var userConnectionImplementors = []string{"UserConnection"} - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) +func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.UserConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserConnection") + case "edges": + out.Values[i] = ec._UserConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._UserConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._UserConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminEventSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminEventSearch(ctx, field) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminFeatureSearch": - field := field +var userCreatePayloadImplementors = []string{"UserCreatePayload"} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminFeatureSearch(ctx, field) - return res - } +func (ec *executionContext) _UserCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userCreatePayloadImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserCreatePayload") + case "user": + out.Values[i] = ec._UserCreatePayload_user(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminFileSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminFileSearch(ctx, field) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminGroupSearch": - field := field +var userDeletePayloadImplementors = []string{"UserDeletePayload"} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminGroupSearch(ctx, field) - return res - } +func (ec *executionContext) _UserDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *UserDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userDeletePayloadImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserDeletePayload") + case "deletedID": + out.Values[i] = ec._UserDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminGroupSettingSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminGroupSettingSearch(ctx, field) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminIntegrationSearch": - field := field +var userEdgeImplementors = []string{"UserEdge"} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminIntegrationSearch(ctx, field) - return res - } +func (ec *executionContext) _UserEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.UserEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userEdgeImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserEdge") + case "node": + out.Values[i] = ec._UserEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._UserEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminOauthProviderSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminOauthProviderSearch(ctx, field) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminOhAuthTooTokenSearch": - field := field +var userHistoryImplementors = []string{"UserHistory", "Node"} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminOhAuthTooTokenSearch(ctx, field) - return res - } +func (ec *executionContext) _UserHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.UserHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userHistoryImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserHistory") + case "id": + out.Values[i] = ec._UserHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "historyTime": + out.Values[i] = ec._UserHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "ref": + out.Values[i] = ec._UserHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._UserHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createdAt": + out.Values[i] = ec._UserHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._UserHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._UserHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._UserHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._UserHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._UserHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._UserHistory_tags(ctx, field, obj) + case "email": + out.Values[i] = ec._UserHistory_email(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "firstName": + out.Values[i] = ec._UserHistory_firstName(ctx, field, obj) + case "lastName": + out.Values[i] = ec._UserHistory_lastName(ctx, field, obj) + case "displayName": + out.Values[i] = ec._UserHistory_displayName(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "avatarRemoteURL": + out.Values[i] = ec._UserHistory_avatarRemoteURL(ctx, field, obj) + case "avatarLocalFile": + out.Values[i] = ec._UserHistory_avatarLocalFile(ctx, field, obj) + case "avatarLocalFileID": + out.Values[i] = ec._UserHistory_avatarLocalFileID(ctx, field, obj) + case "avatarUpdatedAt": + out.Values[i] = ec._UserHistory_avatarUpdatedAt(ctx, field, obj) + case "lastSeen": + out.Values[i] = ec._UserHistory_lastSeen(ctx, field, obj) + case "sub": + out.Values[i] = ec._UserHistory_sub(ctx, field, obj) + case "authProvider": + out.Values[i] = ec._UserHistory_authProvider(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "role": + out.Values[i] = ec._UserHistory_role(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminOrganizationSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminOrganizationSearch(ctx, field) - return res + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var userHistoryConnectionImplementors = []string{"UserHistoryConnection"} + +func (ec *executionContext) _UserHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.UserHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserHistoryConnection") + case "edges": + out.Values[i] = ec._UserHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._UserHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._UserHistoryConnection_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 + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var userHistoryEdgeImplementors = []string{"UserHistoryEdge"} + +func (ec *executionContext) _UserHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.UserHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserHistoryEdge") + case "node": + out.Values[i] = ec._UserHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._UserHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminOrganizationSettingSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminOrganizationSettingSearch(ctx, field) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminPersonalAccessTokenSearch": - field := field +var userSearchResultImplementors = []string{"UserSearchResult", "SearchResult"} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminPersonalAccessTokenSearch(ctx, field) - return res - } +func (ec *executionContext) _UserSearchResult(ctx context.Context, sel ast.SelectionSet, obj *UserSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSearchResultImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSearchResult") + case "users": + out.Values[i] = ec._UserSearchResult_users(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminSubscriberSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminSubscriberSearch(ctx, field) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminTFASettingSearch": - field := field +var userSettingImplementors = []string{"UserSetting", "Node"} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminTFASettingSearch(ctx, field) - return res - } +func (ec *executionContext) _UserSetting(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSetting) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSetting") + case "id": + out.Values[i] = ec._UserSetting_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminTemplateSearch": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminTemplateSearch(ctx, field) - return res + case "createdAt": + out.Values[i] = ec._UserSetting_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._UserSetting_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._UserSetting_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._UserSetting_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._UserSetting_tags(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._UserSetting_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._UserSetting_deletedBy(ctx, field, obj) + case "userID": + out.Values[i] = ec._UserSetting_userID(ctx, field, obj) + case "locked": + out.Values[i] = ec._UserSetting_locked(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "silencedAt": + out.Values[i] = ec._UserSetting_silencedAt(ctx, field, obj) + case "suspendedAt": + out.Values[i] = ec._UserSetting_suspendedAt(ctx, field, obj) + case "status": + out.Values[i] = ec._UserSetting_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminUserSearch": + case "emailConfirmed": + out.Values[i] = ec._UserSetting_emailConfirmed(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "isWebauthnAllowed": + out.Values[i] = ec._UserSetting_isWebauthnAllowed(ctx, field, obj) + case "isTfaEnabled": + out.Values[i] = ec._UserSetting_isTfaEnabled(ctx, field, obj) + case "user": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -238663,17 +335695,31 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_adminUserSearch(ctx, field) + res = ec._UserSetting_user(ctx, field, obj) return res } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminUserSettingSearch": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "defaultOrg": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -238682,17 +335728,31 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_adminUserSettingSearch(ctx, field) + res = ec._UserSetting_defaultOrg(ctx, field, obj) return res } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminWebhookSearch": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "files": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -238701,602 +335761,562 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_adminWebhookSearch(ctx, field) + res = ec._UserSetting_files(ctx, field, obj) 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 "apiToken": - 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_apiToken(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs } - return res - } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "auditLogs": - 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_auditLogs(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "contact": - field := field + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - innerFunc := func(ctx 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_contact(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + return out +} - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } +var userSettingBulkCreatePayloadImplementors = []string{"UserSettingBulkCreatePayload"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "documentData": - field := field +func (ec *executionContext) _UserSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserSettingBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingBulkCreatePayloadImplementors) - innerFunc := func(ctx 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_documentData(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingBulkCreatePayload") + case "userSettings": + out.Values[i] = ec._UserSettingBulkCreatePayload_userSettings(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "entitlement": - field := field + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - innerFunc := func(ctx 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_entitlement(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + return out +} - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } +var userSettingConnectionImplementors = []string{"UserSettingConnection"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "entitlementPlan": - field := field +func (ec *executionContext) _UserSettingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingConnectionImplementors) - innerFunc := func(ctx 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_entitlementPlan(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingConnection") + case "edges": + out.Values[i] = ec._UserSettingConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._UserSettingConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "totalCount": + out.Values[i] = ec._UserSettingConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "entitlementPlanFeature": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx 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_entitlementPlanFeature(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "entity": - field := field +var userSettingCreatePayloadImplementors = []string{"UserSettingCreatePayload"} - innerFunc := func(ctx 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_entity(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } +func (ec *executionContext) _UserSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserSettingCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingCreatePayloadImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingCreatePayload") + case "userSetting": + out.Values[i] = ec._UserSettingCreatePayload_userSetting(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "entityType": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx 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_entityType(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "event": - field := field +var userSettingEdgeImplementors = []string{"UserSettingEdge"} - innerFunc := func(ctx 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_event(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } +func (ec *executionContext) _UserSettingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingEdgeImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingEdge") + case "node": + out.Values[i] = ec._UserSettingEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._UserSettingEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "feature": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx 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_feature(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "file": - field := field +var userSettingHistoryImplementors = []string{"UserSettingHistory", "Node"} - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_file(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } +func (ec *executionContext) _UserSettingHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingHistoryImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingHistory") + case "id": + out.Values[i] = ec._UserSettingHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "group": - 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_group(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + case "historyTime": + out.Values[i] = ec._UserSettingHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "ref": + out.Values[i] = ec._UserSettingHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._UserSettingHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "groupMembership": - 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_groupMembership(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + case "createdAt": + out.Values[i] = ec._UserSettingHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._UserSettingHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._UserSettingHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._UserSettingHistory_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._UserSettingHistory_tags(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._UserSettingHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._UserSettingHistory_deletedBy(ctx, field, obj) + case "userID": + out.Values[i] = ec._UserSettingHistory_userID(ctx, field, obj) + case "locked": + out.Values[i] = ec._UserSettingHistory_locked(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "silencedAt": + out.Values[i] = ec._UserSettingHistory_silencedAt(ctx, field, obj) + case "suspendedAt": + out.Values[i] = ec._UserSettingHistory_suspendedAt(ctx, field, obj) + case "status": + out.Values[i] = ec._UserSettingHistory_status(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "emailConfirmed": + out.Values[i] = ec._UserSettingHistory_emailConfirmed(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isWebauthnAllowed": + out.Values[i] = ec._UserSettingHistory_isWebauthnAllowed(ctx, field, obj) + case "isTfaEnabled": + out.Values[i] = ec._UserSettingHistory_isTfaEnabled(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "groupSetting": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx 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_groupSetting(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "hush": - field := field +var userSettingHistoryConnectionImplementors = []string{"UserSettingHistoryConnection"} - innerFunc := func(ctx 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_hush(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } +func (ec *executionContext) _UserSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingHistoryConnectionImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingHistoryConnection") + case "edges": + out.Values[i] = ec._UserSettingHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._UserSettingHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "totalCount": + out.Values[i] = ec._UserSettingHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "integration": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx 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_integration(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "invite": - field := field +var userSettingHistoryEdgeImplementors = []string{"UserSettingHistoryEdge"} - innerFunc := func(ctx 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_invite(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } +func (ec *executionContext) _UserSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingHistoryEdgeImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingHistoryEdge") + case "node": + out.Values[i] = ec._UserSettingHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._UserSettingHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "oauthProvider": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx 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_oauthProvider(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "ohAuthTooToken": - field := field +var userSettingSearchResultImplementors = []string{"UserSettingSearchResult", "SearchResult"} - innerFunc := func(ctx 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_ohAuthTooToken(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } +func (ec *executionContext) _UserSettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *UserSettingSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingSearchResultImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingSearchResult") + case "userSettings": + out.Values[i] = ec._UserSettingSearchResult_userSettings(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "organization": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx 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_organization(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "organizationSetting": - field := field +var userSettingUpdatePayloadImplementors = []string{"UserSettingUpdatePayload"} - innerFunc := func(ctx 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_organizationSetting(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res +func (ec *executionContext) _UserSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserSettingUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingUpdatePayload") + case "userSetting": + out.Values[i] = ec._UserSettingUpdatePayload_userSetting(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "orgMembership": - field := field + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - innerFunc := func(ctx 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_orgMembership(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + return out +} - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } +var userUpdatePayloadImplementors = []string{"UserUpdatePayload"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "personalAccessToken": - field := field +func (ec *executionContext) _UserUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userUpdatePayloadImplementors) - innerFunc := func(ctx 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_personalAccessToken(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserUpdatePayload") + case "user": + out.Values[i] = ec._UserUpdatePayload_user(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "apiTokenSearch": - field := field + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_apiTokenSearch(ctx, field) - return res - } + return out +} - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } +var webhookImplementors = []string{"Webhook", "Node"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "contactSearch": - field := field +func (ec *executionContext) _Webhook(ctx context.Context, sel ast.SelectionSet, obj *generated.Webhook) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, webhookImplementors) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_contactSearch(ctx, field) - return res + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Webhook") + case "id": + out.Values[i] = ec._Webhook_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "createdAt": + out.Values[i] = ec._Webhook_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Webhook_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Webhook_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Webhook_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._Webhook_tags(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._Webhook_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._Webhook_deletedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._Webhook_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._Webhook_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "documentDataSearch": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_documentDataSearch(ctx, field) - return res + case "description": + out.Values[i] = ec._Webhook_description(ctx, field, obj) + case "destinationURL": + out.Values[i] = ec._Webhook_destinationURL(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "enabled": + out.Values[i] = ec._Webhook_enabled(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "entitlementSearch": + case "failures": + out.Values[i] = ec._Webhook_failures(ctx, field, obj) + case "lastError": + out.Values[i] = ec._Webhook_lastError(ctx, field, obj) + case "lastResponse": + out.Values[i] = ec._Webhook_lastResponse(ctx, field, obj) + case "owner": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -239305,17 +336325,31 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_entitlementSearch(ctx, field) + res = ec._Webhook_owner(ctx, field, obj) return res } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "entitlementPlanSearch": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "events": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -239324,17 +336358,31 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_entitlementPlanSearch(ctx, field) + res = ec._Webhook_events(ctx, field, obj) return res } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) + + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "entitlementPlanFeatureSearch": + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "integrations": field := field innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { @@ -239343,555 +336391,587 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Query_entitlementPlanFeatureSearch(ctx, field) + res = ec._Webhook_integrations(ctx, field, obj) 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 "entitySearch": - field := field + if field.Deferrable != nil { + dfs, ok := deferred[field.Deferrable.Label] + di := 0 + if ok { + dfs.AddField(field) + di = len(dfs.Values) - 1 + } else { + dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) + deferred[field.Deferrable.Label] = dfs + } + dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, dfs) + }) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_entitySearch(ctx, field) - return res + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue } - 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 innerFunc(ctx, out) }) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "entityTypeSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_entityTypeSearch(ctx, field) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "eventSearch": - field := field +var webhookBulkCreatePayloadImplementors = []string{"WebhookBulkCreatePayload"} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_eventSearch(ctx, field) - return res - } +func (ec *executionContext) _WebhookBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *WebhookBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, webhookBulkCreatePayloadImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("WebhookBulkCreatePayload") + case "webhooks": + out.Values[i] = ec._WebhookBulkCreatePayload_webhooks(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "featureSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_featureSearch(ctx, field) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "fileSearch": - field := field +var webhookConnectionImplementors = []string{"WebhookConnection"} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_fileSearch(ctx, field) - return res - } +func (ec *executionContext) _WebhookConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.WebhookConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, webhookConnectionImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("WebhookConnection") + case "edges": + out.Values[i] = ec._WebhookConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._WebhookConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "groupSearch": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_groupSearch(ctx, field) - return res + case "totalCount": + out.Values[i] = ec._WebhookConnection_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 + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "groupSettingSearch": - field := field + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_groupSettingSearch(ctx, field) - return res - } + return out +} - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } +var webhookCreatePayloadImplementors = []string{"WebhookCreatePayload"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "integrationSearch": - field := field +func (ec *executionContext) _WebhookCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *WebhookCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, webhookCreatePayloadImplementors) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_integrationSearch(ctx, field) - return res + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("WebhookCreatePayload") + case "webhook": + out.Values[i] = ec._WebhookCreatePayload_webhook(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "oauthProviderSearch": - field := field + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_oauthProviderSearch(ctx, field) - return res - } + return out +} - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } +var webhookDeletePayloadImplementors = []string{"WebhookDeletePayload"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "ohAuthTooTokenSearch": - field := field +func (ec *executionContext) _WebhookDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *WebhookDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, webhookDeletePayloadImplementors) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_ohAuthTooTokenSearch(ctx, field) - return res + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("WebhookDeletePayload") + case "deletedID": + out.Values[i] = ec._WebhookDeletePayload_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 + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "organizationSearch": - field := field + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_organizationSearch(ctx, field) - return res - } + return out +} - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } +var webhookEdgeImplementors = []string{"WebhookEdge"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "organizationSettingSearch": - field := field +func (ec *executionContext) _WebhookEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.WebhookEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, webhookEdgeImplementors) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_organizationSettingSearch(ctx, field) - return res + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("WebhookEdge") + case "node": + out.Values[i] = ec._WebhookEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._WebhookEdge_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 + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "personalAccessTokenSearch": - field := field + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_personalAccessTokenSearch(ctx, field) - return res - } + return out +} - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } +var webhookHistoryImplementors = []string{"WebhookHistory", "Node"} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "subscriberSearch": - field := field +func (ec *executionContext) _WebhookHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.WebhookHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, webhookHistoryImplementors) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_subscriberSearch(ctx, field) - return res + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("WebhookHistory") + case "id": + out.Values[i] = ec._WebhookHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "historyTime": + out.Values[i] = ec._WebhookHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "ref": + out.Values[i] = ec._WebhookHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._WebhookHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createdAt": + out.Values[i] = ec._WebhookHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._WebhookHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._WebhookHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._WebhookHistory_updatedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._WebhookHistory_tags(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._WebhookHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._WebhookHistory_deletedBy(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._WebhookHistory_ownerID(ctx, field, obj) + case "name": + out.Values[i] = ec._WebhookHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec._WebhookHistory_description(ctx, field, obj) + case "destinationURL": + out.Values[i] = ec._WebhookHistory_destinationURL(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "enabled": + out.Values[i] = ec._WebhookHistory_enabled(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + case "failures": + out.Values[i] = ec._WebhookHistory_failures(ctx, field, obj) + case "lastError": + out.Values[i] = ec._WebhookHistory_lastError(ctx, field, obj) + case "lastResponse": + out.Values[i] = ec._WebhookHistory_lastResponse(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "tFASettingSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_tFASettingSearch(ctx, field) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "templateSearch": - field := field +var webhookHistoryConnectionImplementors = []string{"WebhookHistoryConnection"} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_templateSearch(ctx, field) - return res - } +func (ec *executionContext) _WebhookHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.WebhookHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, webhookHistoryConnectionImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("WebhookHistoryConnection") + case "edges": + out.Values[i] = ec._WebhookHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._WebhookHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._WebhookHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "userSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_userSearch(ctx, field) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "userSettingSearch": - field := field +var webhookHistoryEdgeImplementors = []string{"WebhookHistoryEdge"} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_userSettingSearch(ctx, field) - return res - } +func (ec *executionContext) _WebhookHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.WebhookHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, webhookHistoryEdgeImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("WebhookHistoryEdge") + case "node": + out.Values[i] = ec._WebhookHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._WebhookHistoryEdge_cursor(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "webhookSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_webhookSearch(ctx, field) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "search": - field := field +var webhookSearchResultImplementors = []string{"WebhookSearchResult", "SearchResult"} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_search(ctx, field) - return res - } +func (ec *executionContext) _WebhookSearchResult(ctx context.Context, sel ast.SelectionSet, obj *WebhookSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, webhookSearchResultImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("WebhookSearchResult") + case "webhooks": + out.Values[i] = ec._WebhookSearchResult_webhooks(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "adminSearch": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_adminSearch(ctx, field) - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "subscriber": - field := field +var webhookUpdatePayloadImplementors = []string{"WebhookUpdatePayload"} - innerFunc := func(ctx 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_subscriber(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } +func (ec *executionContext) _WebhookUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *WebhookUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, webhookUpdatePayloadImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("WebhookUpdatePayload") + case "webhook": + out.Values[i] = ec._WebhookUpdatePayload_webhook(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "template": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx 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_template(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "tfaSetting": - field := field +var __DirectiveImplementors = []string{"__Directive"} - innerFunc := func(ctx 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_tfaSetting(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } +func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__Directive") + case "name": + out.Values[i] = ec.___Directive_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "user": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Query_user(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res + case "description": + out.Values[i] = ec.___Directive_description(ctx, field, obj) + case "locations": + out.Values[i] = ec.___Directive_locations(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "args": + out.Values[i] = ec.___Directive_args(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "userSetting": - field := field + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - innerFunc := func(ctx 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_userSetting(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - } + return out +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "webhook": - field := field +var __EnumValueImplementors = []string{"__EnumValue"} - innerFunc := func(ctx 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_webhook(ctx, field) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } +func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) - rrm := func(ctx context.Context) graphql.Marshaler { - return ec.OperationContext.RootResolverMiddleware(ctx, - func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__EnumValue") + case "name": + out.Values[i] = ec.___EnumValue_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) - case "__type": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query___type(ctx, field) - }) - case "__schema": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Query___schema(ctx, field) - }) + case "description": + out.Values[i] = ec.___EnumValue_description(ctx, field, obj) + case "isDeprecated": + out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deprecationReason": + out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -239915,27 +336995,41 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr return out } -var searchResultConnectionImplementors = []string{"SearchResultConnection"} +var __FieldImplementors = []string{"__Field"} -func (ec *executionContext) _SearchResultConnection(ctx context.Context, sel ast.SelectionSet, obj *SearchResultConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, searchResultConnectionImplementors) +func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("SearchResultConnection") - case "page": - out.Values[i] = ec._SearchResultConnection_page(ctx, field, obj) + out.Values[i] = graphql.MarshalString("__Field") + case "name": + out.Values[i] = ec.___Field_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "nodes": - out.Values[i] = ec._SearchResultConnection_nodes(ctx, field, obj) + case "description": + out.Values[i] = ec.___Field_description(ctx, field, obj) + case "args": + out.Values[i] = ec.___Field_args(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "type": + out.Values[i] = ec.___Field_type(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } + case "isDeprecated": + out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deprecationReason": + out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -239959,126 +337053,143 @@ func (ec *executionContext) _SearchResultConnection(ctx context.Context, sel ast return out } -var subscriberImplementors = []string{"Subscriber", "Node"} +var __InputValueImplementors = []string{"__InputValue"} -func (ec *executionContext) _Subscriber(ctx context.Context, sel ast.SelectionSet, obj *generated.Subscriber) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberImplementors) +func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("Subscriber") - case "id": - out.Values[i] = ec._Subscriber_id(ctx, field, obj) + out.Values[i] = graphql.MarshalString("__InputValue") + case "name": + out.Values[i] = ec.___InputValue_name(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "createdAt": - out.Values[i] = ec._Subscriber_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Subscriber_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Subscriber_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Subscriber_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Subscriber_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._Subscriber_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._Subscriber_deletedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Subscriber_ownerID(ctx, field, obj) - case "email": - out.Values[i] = ec._Subscriber_email(ctx, field, obj) + case "description": + out.Values[i] = ec.___InputValue_description(ctx, field, obj) + case "type": + out.Values[i] = ec.___InputValue_type(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "phoneNumber": - out.Values[i] = ec._Subscriber_phoneNumber(ctx, field, obj) - case "verifiedEmail": - out.Values[i] = ec._Subscriber_verifiedEmail(ctx, field, obj) + case "defaultValue": + out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var __SchemaImplementors = []string{"__Schema"} + +func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__Schema") + case "description": + out.Values[i] = ec.___Schema_description(ctx, field, obj) + case "types": + out.Values[i] = ec.___Schema_types(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "verifiedPhone": - out.Values[i] = ec._Subscriber_verifiedPhone(ctx, field, obj) + case "queryType": + out.Values[i] = ec.___Schema_queryType(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) + out.Invalids++ } - case "active": - out.Values[i] = ec._Subscriber_active(ctx, field, obj) + case "mutationType": + out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) + case "subscriptionType": + out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) + case "directives": + out.Values[i] = ec.___Schema_directives(ctx, field, obj) if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "owner": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Subscriber_owner(ctx, field, obj) - return res + out.Invalids++ } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) + atomic.AddInt32(&ec.deferred, int32(len(deferred))) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": - field := field + return out +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Subscriber_events(ctx, field, obj) - return res - } +var __TypeImplementors = []string{"__Type"} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("__Type") + case "kind": + out.Values[i] = ec.___Type_kind(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "name": + out.Values[i] = ec.___Type_name(ctx, field, obj) + case "description": + out.Values[i] = ec.___Type_description(ctx, field, obj) + case "fields": + out.Values[i] = ec.___Type_fields(ctx, field, obj) + case "interfaces": + out.Values[i] = ec.___Type_interfaces(ctx, field, obj) + case "possibleTypes": + out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) + case "enumValues": + out.Values[i] = ec.___Type_enumValues(ctx, field, obj) + case "inputFields": + out.Values[i] = ec.___Type_inputFields(ctx, field, obj) + case "ofType": + out.Values[i] = ec.___Type_ofType(ctx, field, obj) + case "specifiedByURL": + out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -240099,4741 +337210,5336 @@ func (ec *executionContext) _Subscriber(ctx context.Context, sel ast.SelectionSe }) } - return out + return out +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNAPIToken2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx context.Context, sel ast.SelectionSet, v generated.APIToken) graphql.Marshaler { + return ec._APIToken(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx context.Context, sel ast.SelectionSet, v *generated.APIToken) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._APIToken(ctx, sel, v) +} + +func (ec *executionContext) marshalNAPITokenBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v APITokenBulkCreatePayload) graphql.Marshaler { + return ec._APITokenBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAPITokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *APITokenBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._APITokenBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAPITokenConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx context.Context, sel ast.SelectionSet, v generated.APITokenConnection) graphql.Marshaler { + return ec._APITokenConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAPITokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx context.Context, sel ast.SelectionSet, v *generated.APITokenConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._APITokenConnection(ctx, sel, v) +} + +func (ec *executionContext) marshalNAPITokenCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v APITokenCreatePayload) graphql.Marshaler { + return ec._APITokenCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAPITokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v *APITokenCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._APITokenCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAPITokenDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v APITokenDeletePayload) graphql.Marshaler { + return ec._APITokenDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAPITokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v *APITokenDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._APITokenDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAPITokenUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v APITokenUpdatePayload) graphql.Marshaler { + return ec._APITokenUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAPITokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *APITokenUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._APITokenUpdatePayload(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx context.Context, v interface{}) (*generated.APITokenWhereInput, error) { + res, err := ec.unmarshalInputAPITokenWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNActionPlan2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx context.Context, sel ast.SelectionSet, v generated.ActionPlan) graphql.Marshaler { + return ec._ActionPlan(ctx, sel, &v) +} + +func (ec *executionContext) marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlan) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ActionPlan(ctx, sel, v) +} + +func (ec *executionContext) marshalNActionPlanBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ActionPlanBulkCreatePayload) graphql.Marshaler { + return ec._ActionPlanBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNActionPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ActionPlanBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ActionPlanBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNActionPlanConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx context.Context, sel ast.SelectionSet, v generated.ActionPlanConnection) graphql.Marshaler { + return ec._ActionPlanConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ActionPlanConnection(ctx, sel, v) +} + +func (ec *executionContext) marshalNActionPlanCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, v ActionPlanCreatePayload) graphql.Marshaler { + return ec._ActionPlanCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNActionPlanCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ActionPlanCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ActionPlanCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNActionPlanDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, v ActionPlanDeletePayload) graphql.Marshaler { + return ec._ActionPlanDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNActionPlanDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ActionPlanDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ActionPlanDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNActionPlanHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ActionPlanHistoryConnection) graphql.Marshaler { + return ec._ActionPlanHistoryConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNActionPlanHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlanHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ActionPlanHistoryConnection(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNActionPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNActionPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNActionPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ActionPlanHistoryWhereInput, error) { + res, err := ec.unmarshalInputActionPlanHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNActionPlanUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ActionPlanUpdatePayload) graphql.Marshaler { + return ec._ActionPlanUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNActionPlanUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ActionPlanUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ActionPlanUpdatePayload(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx context.Context, v interface{}) (*generated.ActionPlanWhereInput, error) { + res, err := ec.unmarshalInputActionPlanWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAuditLogConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogConnection(ctx context.Context, sel ast.SelectionSet, v AuditLogConnection) graphql.Marshaler { + return ec._AuditLogConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAuditLogConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogConnection(ctx context.Context, sel ast.SelectionSet, v *AuditLogConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AuditLogConnection(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { + res, err := graphql.UnmarshalBoolean(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { + res := graphql.MarshalBoolean(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) marshalNContact2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx context.Context, sel ast.SelectionSet, v generated.Contact) graphql.Marshaler { + return ec._Contact(ctx, sel, &v) +} + +func (ec *executionContext) marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx context.Context, sel ast.SelectionSet, v *generated.Contact) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Contact(ctx, sel, v) +} + +func (ec *executionContext) marshalNContactBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ContactBulkCreatePayload) graphql.Marshaler { + return ec._ContactBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNContactBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ContactBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ContactBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNContactConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx context.Context, sel ast.SelectionSet, v generated.ContactConnection) graphql.Marshaler { + return ec._ContactConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx context.Context, sel ast.SelectionSet, v *generated.ContactConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ContactConnection(ctx, sel, v) +} + +func (ec *executionContext) marshalNContactCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactCreatePayload(ctx context.Context, sel ast.SelectionSet, v ContactCreatePayload) graphql.Marshaler { + return ec._ContactCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNContactCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ContactCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ContactCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNContactDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactDeletePayload(ctx context.Context, sel ast.SelectionSet, v ContactDeletePayload) graphql.Marshaler { + return ec._ContactDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNContactDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ContactDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ContactDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNContactHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ContactHistoryConnection) graphql.Marshaler { + return ec._ContactHistoryConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNContactHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.ContactHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ContactHistoryConnection(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (enums.UserStatus, error) { + var res enums.UserStatus + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, sel ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNContactHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ContactHistoryWhereInput, error) { + res, err := ec.unmarshalInputContactHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNContactUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ContactUpdatePayload) graphql.Marshaler { + return ec._ContactUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNContactUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ContactUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ContactUpdatePayload(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (enums.UserStatus, error) { + var res enums.UserStatus + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, sel ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx context.Context, v interface{}) (*generated.ContactWhereInput, error) { + res, err := ec.unmarshalInputContactWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNControl2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx context.Context, sel ast.SelectionSet, v generated.Control) graphql.Marshaler { + return ec._Control(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx context.Context, sel ast.SelectionSet, v *generated.Control) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Control(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ControlBulkCreatePayload) graphql.Marshaler { + return ec._ControlBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ControlBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx context.Context, sel ast.SelectionSet, v generated.ControlConnection) graphql.Marshaler { + return ec._ControlConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx context.Context, sel ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlConnection(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlCreatePayload(ctx context.Context, sel ast.SelectionSet, v ControlCreatePayload) graphql.Marshaler { + return ec._ControlCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ControlCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlDeletePayload(ctx context.Context, sel ast.SelectionSet, v ControlDeletePayload) graphql.Marshaler { + return ec._ControlDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ControlDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ControlHistoryConnection) graphql.Marshaler { + return ec._ControlHistoryConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.ControlHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlHistoryConnection(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNControlHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ControlHistoryWhereInput, error) { + res, err := ec.unmarshalInputControlHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNControlObjective2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx context.Context, sel ast.SelectionSet, v generated.ControlObjective) graphql.Marshaler { + return ec._ControlObjective(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx context.Context, sel ast.SelectionSet, v *generated.ControlObjective) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlObjective(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlObjectiveBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ControlObjectiveBulkCreatePayload) graphql.Marshaler { + return ec._ControlObjectiveBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlObjectiveBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ControlObjectiveBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlObjectiveBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlObjectiveConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx context.Context, sel ast.SelectionSet, v generated.ControlObjectiveConnection) graphql.Marshaler { + return ec._ControlObjectiveConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx context.Context, sel ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlObjectiveConnection(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlObjectiveCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveCreatePayload(ctx context.Context, sel ast.SelectionSet, v ControlObjectiveCreatePayload) graphql.Marshaler { + return ec._ControlObjectiveCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlObjectiveCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ControlObjectiveCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlObjectiveCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlObjectiveDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveDeletePayload(ctx context.Context, sel ast.SelectionSet, v ControlObjectiveDeletePayload) graphql.Marshaler { + return ec._ControlObjectiveDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlObjectiveDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ControlObjectiveDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlObjectiveDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlObjectiveHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ControlObjectiveHistoryConnection) graphql.Marshaler { + return ec._ControlObjectiveHistoryConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlObjectiveHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.ControlObjectiveHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlObjectiveHistoryConnection(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNControlObjectiveHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNControlObjectiveHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNControlObjectiveHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ControlObjectiveHistoryWhereInput, error) { + res, err := ec.unmarshalInputControlObjectiveHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNControlObjectiveUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ControlObjectiveUpdatePayload) graphql.Marshaler { + return ec._ControlObjectiveUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlObjectiveUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ControlObjectiveUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlObjectiveUpdatePayload(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx context.Context, v interface{}) (*generated.ControlObjectiveWhereInput, error) { + res, err := ec.unmarshalInputControlObjectiveWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNControlUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ControlUpdatePayload) graphql.Marshaler { + return ec._ControlUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ControlUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlUpdatePayload(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx context.Context, v interface{}) (*generated.ControlWhereInput, error) { + res, err := ec.unmarshalInputControlWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateAPITokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInput(ctx context.Context, v interface{}) (generated.CreateAPITokenInput, error) { + res, err := ec.unmarshalInputCreateAPITokenInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateAPITokenInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInput(ctx context.Context, v interface{}) (*generated.CreateAPITokenInput, error) { + res, err := ec.unmarshalInputCreateAPITokenInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateActionPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateActionPlanInput(ctx context.Context, v interface{}) (generated.CreateActionPlanInput, error) { + res, err := ec.unmarshalInputCreateActionPlanInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateActionPlanInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateActionPlanInput(ctx context.Context, v interface{}) (*generated.CreateActionPlanInput, error) { + res, err := ec.unmarshalInputCreateActionPlanInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateContactInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInput(ctx context.Context, v interface{}) (generated.CreateContactInput, error) { + res, err := ec.unmarshalInputCreateContactInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateContactInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInput(ctx context.Context, v interface{}) (*generated.CreateContactInput, error) { + res, err := ec.unmarshalInputCreateContactInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateControlInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlInput(ctx context.Context, v interface{}) (generated.CreateControlInput, error) { + res, err := ec.unmarshalInputCreateControlInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateControlInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlInput(ctx context.Context, v interface{}) (*generated.CreateControlInput, error) { + res, err := ec.unmarshalInputCreateControlInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateControlObjectiveInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlObjectiveInput(ctx context.Context, v interface{}) (generated.CreateControlObjectiveInput, error) { + res, err := ec.unmarshalInputCreateControlObjectiveInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateControlObjectiveInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlObjectiveInput(ctx context.Context, v interface{}) (*generated.CreateControlObjectiveInput, error) { + res, err := ec.unmarshalInputCreateControlObjectiveInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInput(ctx context.Context, v interface{}) (generated.CreateDocumentDataInput, error) { + res, err := ec.unmarshalInputCreateDocumentDataInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateDocumentDataInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInput(ctx context.Context, v interface{}) (*generated.CreateDocumentDataInput, error) { + res, err := ec.unmarshalInputCreateDocumentDataInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateEntitlementInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementInput(ctx context.Context, v interface{}) (generated.CreateEntitlementInput, error) { + res, err := ec.unmarshalInputCreateEntitlementInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateEntitlementInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementInput(ctx context.Context, v interface{}) (*generated.CreateEntitlementInput, error) { + res, err := ec.unmarshalInputCreateEntitlementInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateEntitlementPlanFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanFeatureInput(ctx context.Context, v interface{}) (generated.CreateEntitlementPlanFeatureInput, error) { + res, err := ec.unmarshalInputCreateEntitlementPlanFeatureInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateEntitlementPlanFeatureInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanFeatureInput(ctx context.Context, v interface{}) (*generated.CreateEntitlementPlanFeatureInput, error) { + res, err := ec.unmarshalInputCreateEntitlementPlanFeatureInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateEntitlementPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanInput(ctx context.Context, v interface{}) (generated.CreateEntitlementPlanInput, error) { + res, err := ec.unmarshalInputCreateEntitlementPlanInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateEntitlementPlanInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanInput(ctx context.Context, v interface{}) (*generated.CreateEntitlementPlanInput, error) { + res, err := ec.unmarshalInputCreateEntitlementPlanInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateEntityInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInput(ctx context.Context, v interface{}) (generated.CreateEntityInput, error) { + res, err := ec.unmarshalInputCreateEntityInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateEntityInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInput(ctx context.Context, v interface{}) (*generated.CreateEntityInput, error) { + res, err := ec.unmarshalInputCreateEntityInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateEntityTypeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInput(ctx context.Context, v interface{}) (generated.CreateEntityTypeInput, error) { + res, err := ec.unmarshalInputCreateEntityTypeInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateEntityTypeInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInput(ctx context.Context, v interface{}) (*generated.CreateEntityTypeInput, error) { + res, err := ec.unmarshalInputCreateEntityTypeInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateEventInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInput(ctx context.Context, v interface{}) (generated.CreateEventInput, error) { + res, err := ec.unmarshalInputCreateEventInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateEventInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInput(ctx context.Context, v interface{}) (*generated.CreateEventInput, error) { + res, err := ec.unmarshalInputCreateEventInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateFeatureInput(ctx context.Context, v interface{}) (generated.CreateFeatureInput, error) { + res, err := ec.unmarshalInputCreateFeatureInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateFeatureInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateFeatureInput(ctx context.Context, v interface{}) (*generated.CreateFeatureInput, error) { + res, err := ec.unmarshalInputCreateFeatureInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -var subscriberBulkCreatePayloadImplementors = []string{"SubscriberBulkCreatePayload"} +func (ec *executionContext) unmarshalNCreateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInput(ctx context.Context, v interface{}) (generated.CreateGroupInput, error) { + res, err := ec.unmarshalInputCreateGroupInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _SubscriberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubscriberBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberBulkCreatePayloadImplementors) +func (ec *executionContext) unmarshalNCreateGroupInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInput(ctx context.Context, v interface{}) (*generated.CreateGroupInput, error) { + res, err := ec.unmarshalInputCreateGroupInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberBulkCreatePayload") - case "subscribers": - out.Values[i] = ec._SubscriberBulkCreatePayload_subscribers(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } +func (ec *executionContext) unmarshalNCreateGroupMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInput(ctx context.Context, v interface{}) (generated.CreateGroupMembershipInput, error) { + res, err := ec.unmarshalInputCreateGroupMembershipInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNCreateGroupMembershipInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInput(ctx context.Context, v interface{}) (*generated.CreateGroupMembershipInput, error) { + res, err := ec.unmarshalInputCreateGroupMembershipInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } +func (ec *executionContext) unmarshalNCreateGroupSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx context.Context, v interface{}) (generated.CreateGroupSettingInput, error) { + res, err := ec.unmarshalInputCreateGroupSettingInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - return out +func (ec *executionContext) unmarshalNCreateGroupSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx context.Context, v interface{}) (*generated.CreateGroupSettingInput, error) { + res, err := ec.unmarshalInputCreateGroupSettingInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -var subscriberConnectionImplementors = []string{"SubscriberConnection"} +func (ec *executionContext) unmarshalNCreateHushInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInput(ctx context.Context, v interface{}) (generated.CreateHushInput, error) { + res, err := ec.unmarshalInputCreateHushInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _SubscriberConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.SubscriberConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberConnectionImplementors) +func (ec *executionContext) unmarshalNCreateHushInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInput(ctx context.Context, v interface{}) (*generated.CreateHushInput, error) { + res, err := ec.unmarshalInputCreateHushInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberConnection") - case "edges": - out.Values[i] = ec._SubscriberConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._SubscriberConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._SubscriberConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } +func (ec *executionContext) unmarshalNCreateIntegrationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInput(ctx context.Context, v interface{}) (generated.CreateIntegrationInput, error) { + res, err := ec.unmarshalInputCreateIntegrationInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNCreateIntegrationInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInput(ctx context.Context, v interface{}) (*generated.CreateIntegrationInput, error) { + res, err := ec.unmarshalInputCreateIntegrationInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } +func (ec *executionContext) unmarshalNCreateInternalPolicyInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInternalPolicyInput(ctx context.Context, v interface{}) (generated.CreateInternalPolicyInput, error) { + res, err := ec.unmarshalInputCreateInternalPolicyInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - return out +func (ec *executionContext) unmarshalNCreateInternalPolicyInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInternalPolicyInput(ctx context.Context, v interface{}) (*generated.CreateInternalPolicyInput, error) { + res, err := ec.unmarshalInputCreateInternalPolicyInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -var subscriberCreatePayloadImplementors = []string{"SubscriberCreatePayload"} +func (ec *executionContext) unmarshalNCreateInviteInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInput(ctx context.Context, v interface{}) (generated.CreateInviteInput, error) { + res, err := ec.unmarshalInputCreateInviteInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _SubscriberCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubscriberCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberCreatePayloadImplementors) +func (ec *executionContext) unmarshalNCreateInviteInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInput(ctx context.Context, v interface{}) (*generated.CreateInviteInput, error) { + res, err := ec.unmarshalInputCreateInviteInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberCreatePayload") - case "subscriber": - out.Values[i] = ec._SubscriberCreatePayload_subscriber(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } +func (ec *executionContext) unmarshalNCreateNarrativeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNarrativeInput(ctx context.Context, v interface{}) (generated.CreateNarrativeInput, error) { + res, err := ec.unmarshalInputCreateNarrativeInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNCreateNarrativeInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNarrativeInput(ctx context.Context, v interface{}) (*generated.CreateNarrativeInput, error) { + res, err := ec.unmarshalInputCreateNarrativeInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } +func (ec *executionContext) unmarshalNCreateOauthProviderInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOauthProviderInput(ctx context.Context, v interface{}) (generated.CreateOauthProviderInput, error) { + res, err := ec.unmarshalInputCreateOauthProviderInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - return out +func (ec *executionContext) unmarshalNCreateOauthProviderInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOauthProviderInput(ctx context.Context, v interface{}) (*generated.CreateOauthProviderInput, error) { + res, err := ec.unmarshalInputCreateOauthProviderInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -var subscriberDeletePayloadImplementors = []string{"SubscriberDeletePayload"} +func (ec *executionContext) unmarshalNCreateOhAuthTooTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOhAuthTooTokenInput(ctx context.Context, v interface{}) (generated.CreateOhAuthTooTokenInput, error) { + res, err := ec.unmarshalInputCreateOhAuthTooTokenInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _SubscriberDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *SubscriberDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberDeletePayloadImplementors) +func (ec *executionContext) unmarshalNCreateOhAuthTooTokenInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOhAuthTooTokenInput(ctx context.Context, v interface{}) (*generated.CreateOhAuthTooTokenInput, error) { + res, err := ec.unmarshalInputCreateOhAuthTooTokenInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberDeletePayload") - case "email": - out.Values[i] = ec._SubscriberDeletePayload_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } +func (ec *executionContext) unmarshalNCreateOrgMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInput(ctx context.Context, v interface{}) (generated.CreateOrgMembershipInput, error) { + res, err := ec.unmarshalInputCreateOrgMembershipInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNCreateOrgMembershipInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInput(ctx context.Context, v interface{}) (*generated.CreateOrgMembershipInput, error) { + res, err := ec.unmarshalInputCreateOrgMembershipInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } +func (ec *executionContext) unmarshalNCreateOrganizationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInput(ctx context.Context, v interface{}) (generated.CreateOrganizationInput, error) { + res, err := ec.unmarshalInputCreateOrganizationInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - return out +func (ec *executionContext) unmarshalNCreateOrganizationInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInput(ctx context.Context, v interface{}) (*generated.CreateOrganizationInput, error) { + res, err := ec.unmarshalInputCreateOrganizationInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -var subscriberEdgeImplementors = []string{"SubscriberEdge"} +func (ec *executionContext) unmarshalNCreateOrganizationSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx context.Context, v interface{}) (generated.CreateOrganizationSettingInput, error) { + res, err := ec.unmarshalInputCreateOrganizationSettingInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _SubscriberEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.SubscriberEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberEdgeImplementors) +func (ec *executionContext) unmarshalNCreateOrganizationSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx context.Context, v interface{}) (*generated.CreateOrganizationSettingInput, error) { + res, err := ec.unmarshalInputCreateOrganizationSettingInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberEdge") - case "node": - out.Values[i] = ec._SubscriberEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._SubscriberEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } +func (ec *executionContext) unmarshalNCreatePersonalAccessTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInput(ctx context.Context, v interface{}) (generated.CreatePersonalAccessTokenInput, error) { + res, err := ec.unmarshalInputCreatePersonalAccessTokenInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNCreatePersonalAccessTokenInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInput(ctx context.Context, v interface{}) (*generated.CreatePersonalAccessTokenInput, error) { + res, err := ec.unmarshalInputCreatePersonalAccessTokenInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } +func (ec *executionContext) unmarshalNCreateProcedureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProcedureInput(ctx context.Context, v interface{}) (generated.CreateProcedureInput, error) { + res, err := ec.unmarshalInputCreateProcedureInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - return out +func (ec *executionContext) unmarshalNCreateProcedureInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProcedureInput(ctx context.Context, v interface{}) (*generated.CreateProcedureInput, error) { + res, err := ec.unmarshalInputCreateProcedureInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -var subscriberSearchResultImplementors = []string{"SubscriberSearchResult", "SearchResult"} +func (ec *executionContext) unmarshalNCreateRiskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInput(ctx context.Context, v interface{}) (generated.CreateRiskInput, error) { + res, err := ec.unmarshalInputCreateRiskInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _SubscriberSearchResult(ctx context.Context, sel ast.SelectionSet, obj *SubscriberSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberSearchResultImplementors) +func (ec *executionContext) unmarshalNCreateRiskInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInput(ctx context.Context, v interface{}) (*generated.CreateRiskInput, error) { + res, err := ec.unmarshalInputCreateRiskInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberSearchResult") - case "subscribers": - out.Values[i] = ec._SubscriberSearchResult_subscribers(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } +func (ec *executionContext) unmarshalNCreateStandardInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateStandardInput(ctx context.Context, v interface{}) (generated.CreateStandardInput, error) { + res, err := ec.unmarshalInputCreateStandardInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNCreateStandardInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateStandardInput(ctx context.Context, v interface{}) (*generated.CreateStandardInput, error) { + res, err := ec.unmarshalInputCreateStandardInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } +func (ec *executionContext) unmarshalNCreateSubcontrolInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubcontrolInput(ctx context.Context, v interface{}) (generated.CreateSubcontrolInput, error) { + res, err := ec.unmarshalInputCreateSubcontrolInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - return out +func (ec *executionContext) unmarshalNCreateSubcontrolInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubcontrolInput(ctx context.Context, v interface{}) (*generated.CreateSubcontrolInput, error) { + res, err := ec.unmarshalInputCreateSubcontrolInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -var subscriberUpdatePayloadImplementors = []string{"SubscriberUpdatePayload"} +func (ec *executionContext) unmarshalNCreateSubscriberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInput(ctx context.Context, v interface{}) (generated.CreateSubscriberInput, error) { + res, err := ec.unmarshalInputCreateSubscriberInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _SubscriberUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubscriberUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberUpdatePayloadImplementors) +func (ec *executionContext) unmarshalNCreateSubscriberInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInput(ctx context.Context, v interface{}) (*generated.CreateSubscriberInput, error) { + res, err := ec.unmarshalInputCreateSubscriberInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberUpdatePayload") - case "subscriber": - out.Values[i] = ec._SubscriberUpdatePayload_subscriber(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } +func (ec *executionContext) unmarshalNCreateTFASettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTFASettingInput(ctx context.Context, v interface{}) (generated.CreateTFASettingInput, error) { + res, err := ec.unmarshalInputCreateTFASettingInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNCreateTemplateInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInput(ctx context.Context, v interface{}) (generated.CreateTemplateInput, error) { + res, err := ec.unmarshalInputCreateTemplateInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } +func (ec *executionContext) unmarshalNCreateTemplateInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInput(ctx context.Context, v interface{}) (*generated.CreateTemplateInput, error) { + res, err := ec.unmarshalInputCreateTemplateInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - return out +func (ec *executionContext) unmarshalNCreateUserInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserInput(ctx context.Context, v interface{}) (generated.CreateUserInput, error) { + res, err := ec.unmarshalInputCreateUserInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -var tFASettingImplementors = []string{"TFASetting", "Node"} +func (ec *executionContext) unmarshalNCreateUserSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInput(ctx context.Context, v interface{}) (generated.CreateUserSettingInput, error) { + res, err := ec.unmarshalInputCreateUserSettingInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _TFASetting(ctx context.Context, sel ast.SelectionSet, obj *generated.TFASetting) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingImplementors) +func (ec *executionContext) unmarshalNCreateUserSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInput(ctx context.Context, v interface{}) (*generated.CreateUserSettingInput, error) { + res, err := ec.unmarshalInputCreateUserSettingInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TFASetting") - case "id": - out.Values[i] = ec._TFASetting_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._TFASetting_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._TFASetting_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._TFASetting_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._TFASetting_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._TFASetting_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._TFASetting_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._TFASetting_tags(ctx, field, obj) - case "tfaSecret": - out.Values[i] = ec._TFASetting_tfaSecret(ctx, field, obj) - case "verified": - out.Values[i] = ec._TFASetting_verified(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "recoveryCodes": - out.Values[i] = ec._TFASetting_recoveryCodes(ctx, field, obj) - case "totpAllowed": - out.Values[i] = ec._TFASetting_totpAllowed(ctx, field, obj) - case "owner": - field := field +func (ec *executionContext) unmarshalNCreateWebhookInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateWebhookInput(ctx context.Context, v interface{}) (generated.CreateWebhookInput, error) { + res, err := ec.unmarshalInputCreateWebhookInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._TFASetting_owner(ctx, field, obj) - return res - } +func (ec *executionContext) unmarshalNCreateWebhookInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateWebhookInput(ctx context.Context, v interface{}) (*generated.CreateWebhookInput, error) { + res, err := ec.unmarshalInputCreateWebhookInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (entgql.Cursor[string], error) { + var res entgql.Cursor[string] + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, sel ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { + return v +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNDocumentData2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx context.Context, sel ast.SelectionSet, v generated.DocumentData) graphql.Marshaler { + return ec._DocumentData(ctx, sel, &v) +} + +func (ec *executionContext) marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentData) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._DocumentData(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNDocumentDataBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v DocumentDataBulkCreatePayload) graphql.Marshaler { + return ec._DocumentDataBulkCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNDocumentDataBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *DocumentDataBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - - return out + return ec._DocumentDataBulkCreatePayload(ctx, sel, v) } -var tFASettingConnectionImplementors = []string{"TFASettingConnection"} - -func (ec *executionContext) _TFASettingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.TFASettingConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingConnectionImplementors) +func (ec *executionContext) marshalNDocumentDataConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx context.Context, sel ast.SelectionSet, v generated.DocumentDataConnection) graphql.Marshaler { + return ec._DocumentDataConnection(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TFASettingConnection") - case "edges": - out.Values[i] = ec._TFASettingConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._TFASettingConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._TFASettingConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNDocumentDataConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentDataConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._DocumentDataConnection(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNDocumentDataCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataCreatePayload(ctx context.Context, sel ast.SelectionSet, v DocumentDataCreatePayload) graphql.Marshaler { + return ec._DocumentDataCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNDocumentDataCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataCreatePayload(ctx context.Context, sel ast.SelectionSet, v *DocumentDataCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - - return out + return ec._DocumentDataCreatePayload(ctx, sel, v) } -var tFASettingCreatePayloadImplementors = []string{"TFASettingCreatePayload"} - -func (ec *executionContext) _TFASettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *TFASettingCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingCreatePayloadImplementors) +func (ec *executionContext) marshalNDocumentDataDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataDeletePayload(ctx context.Context, sel ast.SelectionSet, v DocumentDataDeletePayload) graphql.Marshaler { + return ec._DocumentDataDeletePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TFASettingCreatePayload") - case "tfaSetting": - out.Values[i] = ec._TFASettingCreatePayload_tfaSetting(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNDocumentDataDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataDeletePayload(ctx context.Context, sel ast.SelectionSet, v *DocumentDataDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._DocumentDataDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNDocumentDataHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.DocumentDataHistoryConnection) graphql.Marshaler { + return ec._DocumentDataHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNDocumentDataHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentDataHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._DocumentDataHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var tFASettingEdgeImplementors = []string{"TFASettingEdge"} +func (ec *executionContext) marshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _TFASettingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.TFASettingEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingEdgeImplementors) +func (ec *executionContext) unmarshalNDocumentDataHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInput(ctx context.Context, v interface{}) (*generated.DocumentDataHistoryWhereInput, error) { + res, err := ec.unmarshalInputDocumentDataHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TFASettingEdge") - case "node": - out.Values[i] = ec._TFASettingEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._TFASettingEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNDocumentDataUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataUpdatePayload(ctx context.Context, sel ast.SelectionSet, v DocumentDataUpdatePayload) graphql.Marshaler { + return ec._DocumentDataUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNDocumentDataUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *DocumentDataUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out + return ec._DocumentDataUpdatePayload(ctx, sel, v) } -var tFASettingSearchResultImplementors = []string{"TFASettingSearchResult", "SearchResult"} +func (ec *executionContext) unmarshalNDocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx context.Context, v interface{}) (*generated.DocumentDataWhereInput, error) { + res, err := ec.unmarshalInputDocumentDataWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _TFASettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *TFASettingSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingSearchResultImplementors) +func (ec *executionContext) marshalNEntitlement2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx context.Context, sel ast.SelectionSet, v generated.Entitlement) graphql.Marshaler { + return ec._Entitlement(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TFASettingSearchResult") - case "tFASettings": - out.Values[i] = ec._TFASettingSearchResult_tFASettings(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx context.Context, sel ast.SelectionSet, v *generated.Entitlement) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._Entitlement(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNEntitlementBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementBulkCreatePayload) graphql.Marshaler { + return ec._EntitlementBulkCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNEntitlementBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - - return out + return ec._EntitlementBulkCreatePayload(ctx, sel, v) } -var tFASettingUpdatePayloadImplementors = []string{"TFASettingUpdatePayload"} - -func (ec *executionContext) _TFASettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *TFASettingUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingUpdatePayloadImplementors) +func (ec *executionContext) marshalNEntitlementConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementConnection) graphql.Marshaler { + return ec._EntitlementConnection(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TFASettingUpdatePayload") - case "tfaSetting": - out.Values[i] = ec._TFASettingUpdatePayload_tfaSetting(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntitlementConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._EntitlementConnection(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNEntitlementCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementCreatePayload) graphql.Marshaler { + return ec._EntitlementCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNEntitlementCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - - return out + return ec._EntitlementCreatePayload(ctx, sel, v) } -var templateImplementors = []string{"Template", "Node"} - -func (ec *executionContext) _Template(ctx context.Context, sel ast.SelectionSet, obj *generated.Template) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Template") - case "id": - out.Values[i] = ec._Template_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Template_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Template_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Template_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Template_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._Template_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._Template_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Template_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Template_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._Template_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "templateType": - out.Values[i] = ec._Template_templateType(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Template_description(ctx, field, obj) - case "jsonconfig": - out.Values[i] = ec._Template_jsonconfig(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "uischema": - out.Values[i] = ec._Template_uischema(ctx, field, obj) - case "owner": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Template_owner(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "documents": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Template_documents(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } - - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": - field := field - - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Template_files(ctx, field, obj) - return res - } - - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) - - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNEntitlementDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementDeletePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementDeletePayload) graphql.Marshaler { + return ec._EntitlementDeletePayload(ctx, sel, &v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntitlementDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._EntitlementDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNEntitlementHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementHistoryConnection) graphql.Marshaler { + return ec._EntitlementHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNEntitlementHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._EntitlementHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNEntitlementHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var templateBulkCreatePayloadImplementors = []string{"TemplateBulkCreatePayload"} +func (ec *executionContext) marshalNEntitlementHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _TemplateBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *TemplateBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateBulkCreatePayloadImplementors) +func (ec *executionContext) unmarshalNEntitlementHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementHistoryWhereInput, error) { + res, err := ec.unmarshalInputEntitlementHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateBulkCreatePayload") - case "templates": - out.Values[i] = ec._TemplateBulkCreatePayload_templates(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntitlementPlan2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementPlan) graphql.Marshaler { + return ec._EntitlementPlan(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlan) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._EntitlementPlan(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNEntitlementPlanBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanBulkCreatePayload) graphql.Marshaler { + return ec._EntitlementPlanBulkCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNEntitlementPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - - return out + return ec._EntitlementPlanBulkCreatePayload(ctx, sel, v) } -var templateConnectionImplementors = []string{"TemplateConnection"} - -func (ec *executionContext) _TemplateConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.TemplateConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateConnectionImplementors) +func (ec *executionContext) marshalNEntitlementPlanConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementPlanConnection) graphql.Marshaler { + return ec._EntitlementPlanConnection(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateConnection") - case "edges": - out.Values[i] = ec._TemplateConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._TemplateConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._TemplateConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntitlementPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._EntitlementPlanConnection(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNEntitlementPlanCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanCreatePayload) graphql.Marshaler { + return ec._EntitlementPlanCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNEntitlementPlanCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - - return out + return ec._EntitlementPlanCreatePayload(ctx, sel, v) } -var templateCreatePayloadImplementors = []string{"TemplateCreatePayload"} - -func (ec *executionContext) _TemplateCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *TemplateCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateCreatePayloadImplementors) +func (ec *executionContext) marshalNEntitlementPlanDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanDeletePayload) graphql.Marshaler { + return ec._EntitlementPlanDeletePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateCreatePayload") - case "template": - out.Values[i] = ec._TemplateCreatePayload_template(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntitlementPlanDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._EntitlementPlanDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNEntitlementPlanFeature2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementPlanFeature) graphql.Marshaler { + return ec._EntitlementPlanFeature(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeature) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - - return out + return ec._EntitlementPlanFeature(ctx, sel, v) } -var templateDeletePayloadImplementors = []string{"TemplateDeletePayload"} - -func (ec *executionContext) _TemplateDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *TemplateDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateDeletePayloadImplementors) +func (ec *executionContext) marshalNEntitlementPlanFeatureBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanFeatureBulkCreatePayload) graphql.Marshaler { + return ec._EntitlementPlanFeatureBulkCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateDeletePayload") - case "deletedID": - out.Values[i] = ec._TemplateDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntitlementPlanFeatureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanFeatureBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._EntitlementPlanFeatureBulkCreatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNEntitlementPlanFeatureConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementPlanFeatureConnection) graphql.Marshaler { + return ec._EntitlementPlanFeatureConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNEntitlementPlanFeatureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeatureConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._EntitlementPlanFeatureConnection(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNEntitlementPlanFeatureCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanFeatureCreatePayload) graphql.Marshaler { + return ec._EntitlementPlanFeatureCreatePayload(ctx, sel, &v) } -var templateEdgeImplementors = []string{"TemplateEdge"} +func (ec *executionContext) marshalNEntitlementPlanFeatureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanFeatureCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntitlementPlanFeatureCreatePayload(ctx, sel, v) +} -func (ec *executionContext) _TemplateEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.TemplateEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateEdgeImplementors) +func (ec *executionContext) marshalNEntitlementPlanFeatureDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureDeletePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanFeatureDeletePayload) graphql.Marshaler { + return ec._EntitlementPlanFeatureDeletePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateEdge") - case "node": - out.Values[i] = ec._TemplateEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._TemplateEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntitlementPlanFeatureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanFeatureDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._EntitlementPlanFeatureDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNEntitlementPlanFeatureHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementPlanFeatureHistoryConnection) graphql.Marshaler { + return ec._EntitlementPlanFeatureHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNEntitlementPlanFeatureHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeatureHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._EntitlementPlanFeatureHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNEntitlementPlanFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var templateHistoryImplementors = []string{"TemplateHistory", "Node"} +func (ec *executionContext) marshalNEntitlementPlanFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _TemplateHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.TemplateHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateHistoryImplementors) +func (ec *executionContext) unmarshalNEntitlementPlanFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanFeatureHistoryWhereInput, error) { + res, err := ec.unmarshalInputEntitlementPlanFeatureHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateHistory") - case "id": - out.Values[i] = ec._TemplateHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._TemplateHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._TemplateHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._TemplateHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._TemplateHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._TemplateHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._TemplateHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._TemplateHistory_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._TemplateHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._TemplateHistory_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._TemplateHistory_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._TemplateHistory_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._TemplateHistory_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "templateType": - out.Values[i] = ec._TemplateHistory_templateType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec._TemplateHistory_description(ctx, field, obj) - case "jsonconfig": - out.Values[i] = ec._TemplateHistory_jsonconfig(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "uischema": - out.Values[i] = ec._TemplateHistory_uischema(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntitlementPlanFeatureUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanFeatureUpdatePayload) graphql.Marshaler { + return ec._EntitlementPlanFeatureUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEntitlementPlanFeatureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanFeatureUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._EntitlementPlanFeatureUpdatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNEntitlementPlanFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanFeatureWhereInput, error) { + res, err := ec.unmarshalInputEntitlementPlanFeatureWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNEntitlementPlanHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementPlanHistoryConnection) graphql.Marshaler { + return ec._EntitlementPlanHistoryConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEntitlementPlanHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._EntitlementPlanHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNEntitlementPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var templateHistoryConnectionImplementors = []string{"TemplateHistoryConnection"} +func (ec *executionContext) marshalNEntitlementPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _TemplateHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.TemplateHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateHistoryConnectionImplementors) +func (ec *executionContext) unmarshalNEntitlementPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanHistoryWhereInput, error) { + res, err := ec.unmarshalInputEntitlementPlanHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateHistoryConnection") - case "edges": - out.Values[i] = ec._TemplateHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._TemplateHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._TemplateHistoryConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntitlementPlanUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanUpdatePayload) graphql.Marshaler { + return ec._EntitlementPlanUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEntitlementPlanUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._EntitlementPlanUpdatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNEntitlementPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanWhereInput, error) { + res, err := ec.unmarshalInputEntitlementPlanWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } +func (ec *executionContext) marshalNEntitlementUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementUpdatePayload) graphql.Marshaler { + return ec._EntitlementUpdatePayload(ctx, sel, &v) +} - return out +func (ec *executionContext) marshalNEntitlementUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntitlementUpdatePayload(ctx, sel, v) } -var templateHistoryEdgeImplementors = []string{"TemplateHistoryEdge"} +func (ec *executionContext) unmarshalNEntitlementWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementWhereInput, error) { + res, err := ec.unmarshalInputEntitlementWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _TemplateHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.TemplateHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateHistoryEdgeImplementors) +func (ec *executionContext) marshalNEntity2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx context.Context, sel ast.SelectionSet, v generated.Entity) graphql.Marshaler { + return ec._Entity(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateHistoryEdge") - case "node": - out.Values[i] = ec._TemplateHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._TemplateHistoryEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx context.Context, sel ast.SelectionSet, v *generated.Entity) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._Entity(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNEntityBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntityBulkCreatePayload) graphql.Marshaler { + return ec._EntityBulkCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNEntityBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } - - return out + return ec._EntityBulkCreatePayload(ctx, sel, v) } -var templateSearchResultImplementors = []string{"TemplateSearchResult", "SearchResult"} - -func (ec *executionContext) _TemplateSearchResult(ctx context.Context, sel ast.SelectionSet, obj *TemplateSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateSearchResultImplementors) +func (ec *executionContext) marshalNEntityConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntityConnection) graphql.Marshaler { + return ec._EntityConnection(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateSearchResult") - case "templates": - out.Values[i] = ec._TemplateSearchResult_templates(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._EntityConnection(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNEntityCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntityCreatePayload) graphql.Marshaler { + return ec._EntityCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNEntityCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._EntityCreatePayload(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNEntityDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityDeletePayload(ctx context.Context, sel ast.SelectionSet, v EntityDeletePayload) graphql.Marshaler { + return ec._EntityDeletePayload(ctx, sel, &v) } -var templateUpdatePayloadImplementors = []string{"TemplateUpdatePayload"} +func (ec *executionContext) marshalNEntityDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EntityDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityDeletePayload(ctx, sel, v) +} -func (ec *executionContext) _TemplateUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *TemplateUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateUpdatePayloadImplementors) +func (ec *executionContext) marshalNEntityHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntityHistoryConnection) graphql.Marshaler { + return ec._EntityHistoryConnection(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateUpdatePayload") - case "template": - out.Values[i] = ec._TemplateUpdatePayload_template(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEntityHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntityHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._EntityHistoryConnection(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNEntityHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryOrderField(ctx context.Context, v interface{}) (*generated.EntityHistoryOrderField, error) { + var res = new(generated.EntityHistoryOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNEntityHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.EntityHistoryOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return v +} - return out +func (ec *executionContext) unmarshalNEntityHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntityHistoryWhereInput, error) { + res, err := ec.unmarshalInputEntityHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -var userImplementors = []string{"User", "Node"} +func (ec *executionContext) unmarshalNEntityOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderField(ctx context.Context, v interface{}) (*generated.EntityOrderField, error) { + var res = new(generated.EntityOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *generated.User) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userImplementors) +func (ec *executionContext) marshalNEntityOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.EntityOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return v +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("User") - case "id": - out.Values[i] = ec._User_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._User_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._User_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._User_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._User_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._User_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._User_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._User_tags(ctx, field, obj) - case "email": - out.Values[i] = ec._User_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "firstName": - out.Values[i] = ec._User_firstName(ctx, field, obj) - case "lastName": - out.Values[i] = ec._User_lastName(ctx, field, obj) - case "displayName": - out.Values[i] = ec._User_displayName(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "avatarRemoteURL": - out.Values[i] = ec._User_avatarRemoteURL(ctx, field, obj) - case "avatarLocalFile": - out.Values[i] = ec._User_avatarLocalFile(ctx, field, obj) - case "avatarLocalFileID": - out.Values[i] = ec._User_avatarLocalFileID(ctx, field, obj) - case "avatarUpdatedAt": - out.Values[i] = ec._User_avatarUpdatedAt(ctx, field, obj) - case "lastSeen": - out.Values[i] = ec._User_lastSeen(ctx, field, obj) - case "sub": - out.Values[i] = ec._User_sub(ctx, field, obj) - case "authProvider": - out.Values[i] = ec._User_authProvider(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "role": - out.Values[i] = ec._User_role(ctx, field, obj) - case "personalAccessTokens": - field := field +func (ec *executionContext) marshalNEntityType2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx context.Context, sel ast.SelectionSet, v generated.EntityType) graphql.Marshaler { + return ec._EntityType(ctx, sel, &v) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_personalAccessTokens(ctx, field, obj) - return res - } +func (ec *executionContext) marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx context.Context, sel ast.SelectionSet, v *generated.EntityType) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityType(ctx, sel, v) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNEntityTypeBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntityTypeBulkCreatePayload) graphql.Marshaler { + return ec._EntityTypeBulkCreatePayload(ctx, sel, &v) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNEntityTypeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityTypeBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityTypeBulkCreatePayload(ctx, sel, v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "tfaSettings": - field := field +func (ec *executionContext) marshalNEntityTypeConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntityTypeConnection) graphql.Marshaler { + return ec._EntityTypeConnection(ctx, sel, &v) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_tfaSettings(ctx, field, obj) - return res - } +func (ec *executionContext) marshalNEntityTypeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityTypeConnection(ctx, sel, v) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNEntityTypeCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntityTypeCreatePayload) graphql.Marshaler { + return ec._EntityTypeCreatePayload(ctx, sel, &v) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNEntityTypeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityTypeCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityTypeCreatePayload(ctx, sel, v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "setting": - field := field +func (ec *executionContext) marshalNEntityTypeDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeDeletePayload(ctx context.Context, sel ast.SelectionSet, v EntityTypeDeletePayload) graphql.Marshaler { + return ec._EntityTypeDeletePayload(ctx, sel, &v) +} - innerFunc := func(ctx 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_setting(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } +func (ec *executionContext) marshalNEntityTypeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EntityTypeDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityTypeDeletePayload(ctx, sel, v) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNEntityTypeHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntityTypeHistoryConnection) graphql.Marshaler { + return ec._EntityTypeHistoryConnection(ctx, sel, &v) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNEntityTypeHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityTypeHistoryConnection(ctx, sel, v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "groups": - field := field +func (ec *executionContext) unmarshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_groups(ctx, field, obj) - return res - } +func (ec *executionContext) marshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) unmarshalNEntityTypeHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryOrderField(ctx context.Context, v interface{}) (*generated.EntityTypeHistoryOrderField, error) { + var res = new(generated.EntityTypeHistoryOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNEntityTypeHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeHistoryOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return v +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "organizations": - field := field +func (ec *executionContext) unmarshalNEntityTypeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntityTypeHistoryWhereInput, error) { + res, err := ec.unmarshalInputEntityTypeHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_organizations(ctx, field, obj) - return res - } +func (ec *executionContext) unmarshalNEntityTypeOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrderField(ctx context.Context, v interface{}) (*generated.EntityTypeOrderField, error) { + var res = new(generated.EntityTypeOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNEntityTypeOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return v +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNEntityTypeUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EntityTypeUpdatePayload) graphql.Marshaler { + return ec._EntityTypeUpdatePayload(ctx, sel, &v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": - field := field +func (ec *executionContext) marshalNEntityTypeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityTypeUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityTypeUpdatePayload(ctx, sel, v) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_files(ctx, field, obj) - return res - } +func (ec *executionContext) unmarshalNEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx context.Context, v interface{}) (*generated.EntityTypeWhereInput, error) { + res, err := ec.unmarshalInputEntityTypeWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNEntityUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EntityUpdatePayload) graphql.Marshaler { + return ec._EntityUpdatePayload(ctx, sel, &v) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNEntityUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityUpdatePayload(ctx, sel, v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "file": - field := field +func (ec *executionContext) unmarshalNEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx context.Context, v interface{}) (*generated.EntityWhereInput, error) { + res, err := ec.unmarshalInputEntityWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_file(ctx, field, obj) - return res - } +func (ec *executionContext) marshalNEvent2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx context.Context, sel ast.SelectionSet, v generated.Event) graphql.Marshaler { + return ec._Event(ctx, sel, &v) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx context.Context, sel ast.SelectionSet, v *generated.Event) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Event(ctx, sel, v) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNEventBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EventBulkCreatePayload) graphql.Marshaler { + return ec._EventBulkCreatePayload(ctx, sel, &v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": - field := field +func (ec *executionContext) marshalNEventBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EventBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EventBulkCreatePayload(ctx, sel, v) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_events(ctx, field, obj) - return res - } +func (ec *executionContext) marshalNEventConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx context.Context, sel ast.SelectionSet, v generated.EventConnection) graphql.Marshaler { + return ec._EventConnection(ctx, sel, &v) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EventConnection(ctx, sel, v) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNEventCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventCreatePayload(ctx context.Context, sel ast.SelectionSet, v EventCreatePayload) graphql.Marshaler { + return ec._EventCreatePayload(ctx, sel, &v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "groupMemberships": - field := field +func (ec *executionContext) marshalNEventCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EventCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EventCreatePayload(ctx, sel, v) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_groupMemberships(ctx, field, obj) - return res - } +func (ec *executionContext) marshalNEventDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventDeletePayload(ctx context.Context, sel ast.SelectionSet, v EventDeletePayload) graphql.Marshaler { + return ec._EventDeletePayload(ctx, sel, &v) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNEventDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EventDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EventDeletePayload(ctx, sel, v) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNEventHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EventHistoryConnection) graphql.Marshaler { + return ec._EventHistoryConnection(ctx, sel, &v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "orgMemberships": - field := field +func (ec *executionContext) marshalNEventHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EventHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EventHistoryConnection(ctx, sel, v) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._User_orgMemberships(ctx, field, obj) - return res - } +func (ec *executionContext) unmarshalNEventHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNEventHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) unmarshalNEventHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EventHistoryWhereInput, error) { + res, err := ec.unmarshalInputEventHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNEventUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EventUpdatePayload) graphql.Marshaler { + return ec._EventUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEventUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EventUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - out.Dispatch(ctx) - if out.Invalids > 0 { + return ec._EventUpdatePayload(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx context.Context, v interface{}) (*generated.EventWhereInput, error) { + res, err := ec.unmarshalInputEventWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNFeature2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx context.Context, sel ast.SelectionSet, v generated.Feature) graphql.Marshaler { + return ec._Feature(ctx, sel, &v) +} + +func (ec *executionContext) marshalNFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx context.Context, sel ast.SelectionSet, v *generated.Feature) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._Feature(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNFeatureBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v FeatureBulkCreatePayload) graphql.Marshaler { + return ec._FeatureBulkCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNFeatureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *FeatureBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._FeatureBulkCreatePayload(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNFeatureConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureConnection(ctx context.Context, sel ast.SelectionSet, v generated.FeatureConnection) graphql.Marshaler { + return ec._FeatureConnection(ctx, sel, &v) } -var userBulkCreatePayloadImplementors = []string{"UserBulkCreatePayload"} +func (ec *executionContext) marshalNFeatureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureConnection(ctx context.Context, sel ast.SelectionSet, v *generated.FeatureConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._FeatureConnection(ctx, sel, v) +} -func (ec *executionContext) _UserBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userBulkCreatePayloadImplementors) +func (ec *executionContext) marshalNFeatureCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureCreatePayload(ctx context.Context, sel ast.SelectionSet, v FeatureCreatePayload) graphql.Marshaler { + return ec._FeatureCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserBulkCreatePayload") - case "users": - out.Values[i] = ec._UserBulkCreatePayload_users(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNFeatureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureCreatePayload(ctx context.Context, sel ast.SelectionSet, v *FeatureCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - out.Dispatch(ctx) - if out.Invalids > 0 { + return ec._FeatureCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNFeatureDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureDeletePayload(ctx context.Context, sel ast.SelectionSet, v FeatureDeletePayload) graphql.Marshaler { + return ec._FeatureDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNFeatureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureDeletePayload(ctx context.Context, sel ast.SelectionSet, v *FeatureDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._FeatureDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNFeatureHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.FeatureHistoryConnection) graphql.Marshaler { + return ec._FeatureHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNFeatureHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.FeatureHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._FeatureHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var userConnectionImplementors = []string{"UserConnection"} +func (ec *executionContext) marshalNFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.UserConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userConnectionImplementors) +func (ec *executionContext) unmarshalNFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInput(ctx context.Context, v interface{}) (*generated.FeatureHistoryWhereInput, error) { + res, err := ec.unmarshalInputFeatureHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserConnection") - case "edges": - out.Values[i] = ec._UserConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._UserConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._UserConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNFeatureUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v FeatureUpdatePayload) graphql.Marshaler { + return ec._FeatureUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNFeatureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *FeatureUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._FeatureUpdatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInput(ctx context.Context, v interface{}) (*generated.FeatureWhereInput, error) { + res, err := ec.unmarshalInputFeatureWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNFile2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx context.Context, sel ast.SelectionSet, v generated.File) graphql.Marshaler { + return ec._File(ctx, sel, &v) +} + +func (ec *executionContext) marshalNFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx context.Context, sel ast.SelectionSet, v *generated.File) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._File(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNFileConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx context.Context, sel ast.SelectionSet, v generated.FileConnection) graphql.Marshaler { + return ec._FileConnection(ctx, sel, &v) } -var userCreatePayloadImplementors = []string{"UserCreatePayload"} +func (ec *executionContext) marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx context.Context, sel ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._FileConnection(ctx, sel, v) +} -func (ec *executionContext) _UserCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userCreatePayloadImplementors) +func (ec *executionContext) marshalNFileDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileDeletePayload(ctx context.Context, sel ast.SelectionSet, v FileDeletePayload) graphql.Marshaler { + return ec._FileDeletePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserCreatePayload") - case "user": - out.Values[i] = ec._UserCreatePayload_user(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNFileDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileDeletePayload(ctx context.Context, sel ast.SelectionSet, v *FileDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._FileDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNFileHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.FileHistoryConnection) graphql.Marshaler { + return ec._FileHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNFileHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.FileHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._FileHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var userDeletePayloadImplementors = []string{"UserDeletePayload"} +func (ec *executionContext) marshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _UserDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *UserDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userDeletePayloadImplementors) +func (ec *executionContext) unmarshalNFileHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInput(ctx context.Context, v interface{}) (*generated.FileHistoryWhereInput, error) { + res, err := ec.unmarshalInputFileHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserDeletePayload") - case "deletedID": - out.Values[i] = ec._UserDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) unmarshalNFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx context.Context, v interface{}) (*generated.FileWhereInput, error) { + res, err := ec.unmarshalInputFileWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNGroup2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx context.Context, sel ast.SelectionSet, v generated.Group) graphql.Marshaler { + return ec._Group(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx context.Context, sel ast.SelectionSet, v *generated.Group) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._Group(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNGroupBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupBulkCreatePayload) graphql.Marshaler { + return ec._GroupBulkCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNGroupBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._GroupBulkCreatePayload(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNGroupConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupConnection) graphql.Marshaler { + return ec._GroupConnection(ctx, sel, &v) } -var userEdgeImplementors = []string{"UserEdge"} +func (ec *executionContext) marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx context.Context, sel ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupConnection(ctx, sel, v) +} -func (ec *executionContext) _UserEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.UserEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userEdgeImplementors) +func (ec *executionContext) marshalNGroupCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupCreatePayload) graphql.Marshaler { + return ec._GroupCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserEdge") - case "node": - out.Values[i] = ec._UserEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._UserEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNGroupCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - out.Dispatch(ctx) - if out.Invalids > 0 { + return ec._GroupCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNGroupDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupDeletePayload(ctx context.Context, sel ast.SelectionSet, v GroupDeletePayload) graphql.Marshaler { + return ec._GroupDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupDeletePayload(ctx context.Context, sel ast.SelectionSet, v *GroupDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._GroupDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNGroupHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupHistoryConnection) graphql.Marshaler { + return ec._GroupHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNGroupHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.GroupHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._GroupHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var userHistoryImplementors = []string{"UserHistory", "Node"} +func (ec *executionContext) marshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _UserHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.UserHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userHistoryImplementors) +func (ec *executionContext) unmarshalNGroupHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryOrderField(ctx context.Context, v interface{}) (*generated.GroupHistoryOrderField, error) { + var res = new(generated.GroupHistoryOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserHistory") - case "id": - out.Values[i] = ec._UserHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._UserHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._UserHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._UserHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._UserHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._UserHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._UserHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._UserHistory_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._UserHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._UserHistory_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._UserHistory_tags(ctx, field, obj) - case "email": - out.Values[i] = ec._UserHistory_email(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "firstName": - out.Values[i] = ec._UserHistory_firstName(ctx, field, obj) - case "lastName": - out.Values[i] = ec._UserHistory_lastName(ctx, field, obj) - case "displayName": - out.Values[i] = ec._UserHistory_displayName(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "avatarRemoteURL": - out.Values[i] = ec._UserHistory_avatarRemoteURL(ctx, field, obj) - case "avatarLocalFile": - out.Values[i] = ec._UserHistory_avatarLocalFile(ctx, field, obj) - case "avatarLocalFileID": - out.Values[i] = ec._UserHistory_avatarLocalFileID(ctx, field, obj) - case "avatarUpdatedAt": - out.Values[i] = ec._UserHistory_avatarUpdatedAt(ctx, field, obj) - case "lastSeen": - out.Values[i] = ec._UserHistory_lastSeen(ctx, field, obj) - case "sub": - out.Values[i] = ec._UserHistory_sub(ctx, field, obj) - case "authProvider": - out.Values[i] = ec._UserHistory_authProvider(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "role": - out.Values[i] = ec._UserHistory_role(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNGroupHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.GroupHistoryOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - out.Dispatch(ctx) - if out.Invalids > 0 { + return v +} + +func (ec *executionContext) unmarshalNGroupHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInput(ctx context.Context, v interface{}) (*generated.GroupHistoryWhereInput, error) { + res, err := ec.unmarshalInputGroupHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNGroupMembership2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx context.Context, sel ast.SelectionSet, v generated.GroupMembership) graphql.Marshaler { + return ec._GroupMembership(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembership) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._GroupMembership(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNGroupMembershipBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupMembershipBulkCreatePayload) graphql.Marshaler { + return ec._GroupMembershipBulkCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNGroupMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupMembershipBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._GroupMembershipBulkCreatePayload(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNGroupMembershipConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupMembershipConnection) graphql.Marshaler { + return ec._GroupMembershipConnection(ctx, sel, &v) } -var userHistoryConnectionImplementors = []string{"UserHistoryConnection"} +func (ec *executionContext) marshalNGroupMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembershipConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupMembershipConnection(ctx, sel, v) +} -func (ec *executionContext) _UserHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.UserHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userHistoryConnectionImplementors) +func (ec *executionContext) marshalNGroupMembershipCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupMembershipCreatePayload) graphql.Marshaler { + return ec._GroupMembershipCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserHistoryConnection") - case "edges": - out.Values[i] = ec._UserHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._UserHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._UserHistoryConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNGroupMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupMembershipCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - out.Dispatch(ctx) - if out.Invalids > 0 { + return ec._GroupMembershipCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNGroupMembershipDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v GroupMembershipDeletePayload) graphql.Marshaler { + return ec._GroupMembershipDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v *GroupMembershipDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._GroupMembershipDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNGroupMembershipHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupMembershipHistoryConnection) graphql.Marshaler { + return ec._GroupMembershipHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNGroupMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembershipHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._GroupMembershipHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var userHistoryEdgeImplementors = []string{"UserHistoryEdge"} +func (ec *executionContext) marshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _UserHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.UserHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userHistoryEdgeImplementors) +func (ec *executionContext) unmarshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { + var res enums.Role + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserHistoryEdge") - case "node": - out.Values[i] = ec._UserHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._UserHistoryEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNGroupMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInput(ctx context.Context, v interface{}) (*generated.GroupMembershipHistoryWhereInput, error) { + res, err := ec.unmarshalInputGroupMembershipHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNGroupMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { + var res enums.Role + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNGroupMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { + return v +} + +func (ec *executionContext) marshalNGroupMembershipUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v GroupMembershipUpdatePayload) graphql.Marshaler { + return ec._GroupMembershipUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupMembershipUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._GroupMembershipUpdatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx context.Context, v interface{}) (*generated.GroupMembershipWhereInput, error) { + res, err := ec.unmarshalInputGroupMembershipWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) unmarshalNGroupOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderField(ctx context.Context, v interface{}) (*generated.GroupOrderField, error) { + var res = new(generated.GroupOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNGroupOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.GroupOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return v +} - return out +func (ec *executionContext) marshalNGroupSetting2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx context.Context, sel ast.SelectionSet, v generated.GroupSetting) graphql.Marshaler { + return ec._GroupSetting(ctx, sel, &v) } -var userSearchResultImplementors = []string{"UserSearchResult", "SearchResult"} +func (ec *executionContext) marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSetting) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupSetting(ctx, sel, v) +} -func (ec *executionContext) _UserSearchResult(ctx context.Context, sel ast.SelectionSet, obj *UserSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSearchResultImplementors) +func (ec *executionContext) marshalNGroupSettingBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupSettingBulkCreatePayload) graphql.Marshaler { + return ec._GroupSettingBulkCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSearchResult") - case "users": - out.Values[i] = ec._UserSearchResult_users(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNGroupSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupSettingBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._GroupSettingBulkCreatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNGroupSettingConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupSettingConnection) graphql.Marshaler { + return ec._GroupSettingConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNGroupSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingConnection(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSettingConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._GroupSettingConnection(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNGroupSettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupSettingCreatePayload) graphql.Marshaler { + return ec._GroupSettingCreatePayload(ctx, sel, &v) } -var userSettingImplementors = []string{"UserSetting", "Node"} +func (ec *executionContext) marshalNGroupSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupSettingCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupSettingCreatePayload(ctx, sel, v) +} -func (ec *executionContext) _UserSetting(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSetting) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingImplementors) +func (ec *executionContext) marshalNGroupSettingDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v GroupSettingDeletePayload) graphql.Marshaler { + return ec._GroupSettingDeletePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSetting") - case "id": - out.Values[i] = ec._UserSetting_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._UserSetting_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._UserSetting_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._UserSetting_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._UserSetting_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._UserSetting_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._UserSetting_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._UserSetting_deletedBy(ctx, field, obj) - case "userID": - out.Values[i] = ec._UserSetting_userID(ctx, field, obj) - case "locked": - out.Values[i] = ec._UserSetting_locked(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "silencedAt": - out.Values[i] = ec._UserSetting_silencedAt(ctx, field, obj) - case "suspendedAt": - out.Values[i] = ec._UserSetting_suspendedAt(ctx, field, obj) - case "status": - out.Values[i] = ec._UserSetting_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "emailConfirmed": - out.Values[i] = ec._UserSetting_emailConfirmed(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "isWebauthnAllowed": - out.Values[i] = ec._UserSetting_isWebauthnAllowed(ctx, field, obj) - case "isTfaEnabled": - out.Values[i] = ec._UserSetting_isTfaEnabled(ctx, field, obj) - case "user": - field := field +func (ec *executionContext) marshalNGroupSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v *GroupSettingDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupSettingDeletePayload(ctx, sel, v) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserSetting_user(ctx, field, obj) - return res - } +func (ec *executionContext) marshalNGroupSettingHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupSettingHistoryConnection) graphql.Marshaler { + return ec._GroupSettingHistoryConnection(ctx, sel, &v) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNGroupSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSettingHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupSettingHistoryConnection(ctx, sel, v) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) unmarshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, v interface{}) (enums.JoinPolicy, error) { + var res enums.JoinPolicy + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "defaultOrg": - field := field +func (ec *executionContext) marshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, sel ast.SelectionSet, v enums.JoinPolicy) graphql.Marshaler { + return v +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserSetting_defaultOrg(ctx, field, obj) - return res - } +func (ec *executionContext) unmarshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, v interface{}) (enums.Visibility, error) { + var res enums.Visibility + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, sel ast.SelectionSet, v enums.Visibility) graphql.Marshaler { + return v +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": - field := field +func (ec *executionContext) unmarshalNGroupSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInput(ctx context.Context, v interface{}) (*generated.GroupSettingHistoryWhereInput, error) { + res, err := ec.unmarshalInputGroupSettingHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._UserSetting_files(ctx, field, obj) - return res - } +func (ec *executionContext) unmarshalNGroupSettingJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, v interface{}) (enums.JoinPolicy, error) { + var res enums.JoinPolicy + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNGroupSettingJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, sel ast.SelectionSet, v enums.JoinPolicy) graphql.Marshaler { + return v +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNGroupSettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v GroupSettingUpdatePayload) graphql.Marshaler { + return ec._GroupSettingUpdatePayload(ctx, sel, &v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNGroupSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupSettingUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._GroupSettingUpdatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } +func (ec *executionContext) unmarshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, v interface{}) (enums.Visibility, error) { + var res enums.Visibility + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - return out +func (ec *executionContext) marshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, sel ast.SelectionSet, v enums.Visibility) graphql.Marshaler { + return v } -var userSettingBulkCreatePayloadImplementors = []string{"UserSettingBulkCreatePayload"} +func (ec *executionContext) unmarshalNGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx context.Context, v interface{}) (*generated.GroupSettingWhereInput, error) { + res, err := ec.unmarshalInputGroupSettingWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _UserSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserSettingBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingBulkCreatePayloadImplementors) +func (ec *executionContext) marshalNGroupUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupUpdatePayload(ctx context.Context, sel ast.SelectionSet, v GroupUpdatePayload) graphql.Marshaler { + return ec._GroupUpdatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingBulkCreatePayload") - case "userSettings": - out.Values[i] = ec._UserSettingBulkCreatePayload_userSettings(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNGroupUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._GroupUpdatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } +func (ec *executionContext) unmarshalNGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx context.Context, v interface{}) (*generated.GroupWhereInput, error) { + res, err := ec.unmarshalInputGroupWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - return out +func (ec *executionContext) marshalNHush2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx context.Context, sel ast.SelectionSet, v generated.Hush) graphql.Marshaler { + return ec._Hush(ctx, sel, &v) } -var userSettingConnectionImplementors = []string{"UserSettingConnection"} +func (ec *executionContext) marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx context.Context, sel ast.SelectionSet, v *generated.Hush) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Hush(ctx, sel, v) +} -func (ec *executionContext) _UserSettingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingConnectionImplementors) +func (ec *executionContext) marshalNHushBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v HushBulkCreatePayload) graphql.Marshaler { + return ec._HushBulkCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingConnection") - case "edges": - out.Values[i] = ec._UserSettingConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._UserSettingConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._UserSettingConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNHushBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *HushBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._HushBulkCreatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNHushConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx context.Context, sel ast.SelectionSet, v generated.HushConnection) graphql.Marshaler { + return ec._HushConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNHushConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx context.Context, sel ast.SelectionSet, v *generated.HushConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._HushConnection(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNHushCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushCreatePayload(ctx context.Context, sel ast.SelectionSet, v HushCreatePayload) graphql.Marshaler { + return ec._HushCreatePayload(ctx, sel, &v) } -var userSettingCreatePayloadImplementors = []string{"UserSettingCreatePayload"} +func (ec *executionContext) marshalNHushCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushCreatePayload(ctx context.Context, sel ast.SelectionSet, v *HushCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._HushCreatePayload(ctx, sel, v) +} -func (ec *executionContext) _UserSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserSettingCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingCreatePayloadImplementors) +func (ec *executionContext) marshalNHushDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushDeletePayload(ctx context.Context, sel ast.SelectionSet, v HushDeletePayload) graphql.Marshaler { + return ec._HushDeletePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingCreatePayload") - case "userSetting": - out.Values[i] = ec._UserSettingCreatePayload_userSetting(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNHushDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushDeletePayload(ctx context.Context, sel ast.SelectionSet, v *HushDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._HushDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNHushHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.HushHistoryConnection) graphql.Marshaler { + return ec._HushHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNHushHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.HushHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._HushHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var userSettingEdgeImplementors = []string{"UserSettingEdge"} +func (ec *executionContext) marshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _UserSettingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingEdgeImplementors) +func (ec *executionContext) unmarshalNHushHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryOrderField(ctx context.Context, v interface{}) (*generated.HushHistoryOrderField, error) { + var res = new(generated.HushHistoryOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingEdge") - case "node": - out.Values[i] = ec._UserSettingEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._UserSettingEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNHushHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.HushHistoryOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return v +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNHushHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInput(ctx context.Context, v interface{}) (*generated.HushHistoryWhereInput, error) { + res, err := ec.unmarshalInputHushHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) unmarshalNHushOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrderField(ctx context.Context, v interface{}) (*generated.HushOrderField, error) { + var res = new(generated.HushOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNHushOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.HushOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return v +} - return out +func (ec *executionContext) marshalNHushUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushUpdatePayload(ctx context.Context, sel ast.SelectionSet, v HushUpdatePayload) graphql.Marshaler { + return ec._HushUpdatePayload(ctx, sel, &v) } -var userSettingHistoryImplementors = []string{"UserSettingHistory", "Node"} +func (ec *executionContext) marshalNHushUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *HushUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._HushUpdatePayload(ctx, sel, v) +} -func (ec *executionContext) _UserSettingHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingHistoryImplementors) +func (ec *executionContext) unmarshalNHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx context.Context, v interface{}) (*generated.HushWhereInput, error) { + res, err := ec.unmarshalInputHushWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingHistory") - case "id": - out.Values[i] = ec._UserSettingHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._UserSettingHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._UserSettingHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._UserSettingHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._UserSettingHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._UserSettingHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._UserSettingHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._UserSettingHistory_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._UserSettingHistory_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._UserSettingHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._UserSettingHistory_deletedBy(ctx, field, obj) - case "userID": - out.Values[i] = ec._UserSettingHistory_userID(ctx, field, obj) - case "locked": - out.Values[i] = ec._UserSettingHistory_locked(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "silencedAt": - out.Values[i] = ec._UserSettingHistory_silencedAt(ctx, field, obj) - case "suspendedAt": - out.Values[i] = ec._UserSettingHistory_suspendedAt(ctx, field, obj) - case "status": - out.Values[i] = ec._UserSettingHistory_status(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "emailConfirmed": - out.Values[i] = ec._UserSettingHistory_emailConfirmed(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isWebauthnAllowed": - out.Values[i] = ec._UserSettingHistory_isWebauthnAllowed(ctx, field, obj) - case "isTfaEnabled": - out.Values[i] = ec._UserSettingHistory_isTfaEnabled(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null + return res +} + +func (ec *executionContext) unmarshalNID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]string, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNID2string(ctx, vSlice[i]) + if err != nil { + return nil, err + } } + return res, nil +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNID2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNID2string(ctx, sel, v[i]) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } } - return out + return ret } -var userSettingHistoryConnectionImplementors = []string{"UserSettingHistoryConnection"} +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { + res, err := graphql.UnmarshalInt(v) + return res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _UserSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingHistoryConnectionImplementors) +func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { + res := graphql.MarshalInt(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingHistoryConnection") - case "edges": - out.Values[i] = ec._UserSettingHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._UserSettingHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._UserSettingHistoryConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v interface{}) (int64, error) { + res, err := graphql.UnmarshalInt64(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler { + res := graphql.MarshalInt64(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } } - out.Dispatch(ctx) - if out.Invalids > 0 { + return res +} + +func (ec *executionContext) marshalNIntegration2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx context.Context, sel ast.SelectionSet, v generated.Integration) graphql.Marshaler { + return ec._Integration(ctx, sel, &v) +} + +func (ec *executionContext) marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx context.Context, sel ast.SelectionSet, v *generated.Integration) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._Integration(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNIntegrationBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v IntegrationBulkCreatePayload) graphql.Marshaler { + return ec._IntegrationBulkCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNIntegrationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *IntegrationBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._IntegrationBulkCreatePayload(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNIntegrationConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx context.Context, sel ast.SelectionSet, v generated.IntegrationConnection) graphql.Marshaler { + return ec._IntegrationConnection(ctx, sel, &v) } -var userSettingHistoryEdgeImplementors = []string{"UserSettingHistoryEdge"} +func (ec *executionContext) marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._IntegrationConnection(ctx, sel, v) +} -func (ec *executionContext) _UserSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingHistoryEdgeImplementors) +func (ec *executionContext) marshalNIntegrationCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationCreatePayload(ctx context.Context, sel ast.SelectionSet, v IntegrationCreatePayload) graphql.Marshaler { + return ec._IntegrationCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingHistoryEdge") - case "node": - out.Values[i] = ec._UserSettingHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._UserSettingHistoryEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNIntegrationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationCreatePayload(ctx context.Context, sel ast.SelectionSet, v *IntegrationCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - out.Dispatch(ctx) - if out.Invalids > 0 { + return ec._IntegrationCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNIntegrationDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationDeletePayload(ctx context.Context, sel ast.SelectionSet, v IntegrationDeletePayload) graphql.Marshaler { + return ec._IntegrationDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNIntegrationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationDeletePayload(ctx context.Context, sel ast.SelectionSet, v *IntegrationDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._IntegrationDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNIntegrationHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.IntegrationHistoryConnection) graphql.Marshaler { + return ec._IntegrationHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNIntegrationHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._IntegrationHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNIntegrationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var userSettingSearchResultImplementors = []string{"UserSettingSearchResult", "SearchResult"} +func (ec *executionContext) marshalNIntegrationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _UserSettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *UserSettingSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingSearchResultImplementors) +func (ec *executionContext) unmarshalNIntegrationHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryOrderField(ctx context.Context, v interface{}) (*generated.IntegrationHistoryOrderField, error) { + var res = new(generated.IntegrationHistoryOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingSearchResult") - case "userSettings": - out.Values[i] = ec._UserSettingSearchResult_userSettings(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNIntegrationHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationHistoryOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return v +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNIntegrationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInput(ctx context.Context, v interface{}) (*generated.IntegrationHistoryWhereInput, error) { + res, err := ec.unmarshalInputIntegrationHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) unmarshalNIntegrationOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderField(ctx context.Context, v interface{}) (*generated.IntegrationOrderField, error) { + var res = new(generated.IntegrationOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNIntegrationOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return v +} - return out +func (ec *executionContext) marshalNIntegrationUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v IntegrationUpdatePayload) graphql.Marshaler { + return ec._IntegrationUpdatePayload(ctx, sel, &v) } -var userSettingUpdatePayloadImplementors = []string{"UserSettingUpdatePayload"} +func (ec *executionContext) marshalNIntegrationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *IntegrationUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._IntegrationUpdatePayload(ctx, sel, v) +} -func (ec *executionContext) _UserSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserSettingUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingUpdatePayloadImplementors) +func (ec *executionContext) unmarshalNIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx context.Context, v interface{}) (*generated.IntegrationWhereInput, error) { + res, err := ec.unmarshalInputIntegrationWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingUpdatePayload") - case "userSetting": - out.Values[i] = ec._UserSettingUpdatePayload_userSetting(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNInternalPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx context.Context, sel ast.SelectionSet, v generated.InternalPolicy) graphql.Marshaler { + return ec._InternalPolicy(ctx, sel, &v) +} + +func (ec *executionContext) marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx context.Context, sel ast.SelectionSet, v *generated.InternalPolicy) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._InternalPolicy(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNInternalPolicyBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v InternalPolicyBulkCreatePayload) graphql.Marshaler { + return ec._InternalPolicyBulkCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNInternalPolicyBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *InternalPolicyBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._InternalPolicyBulkCreatePayload(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNInternalPolicyConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx context.Context, sel ast.SelectionSet, v generated.InternalPolicyConnection) graphql.Marshaler { + return ec._InternalPolicyConnection(ctx, sel, &v) } -var userUpdatePayloadImplementors = []string{"UserUpdatePayload"} +func (ec *executionContext) marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx context.Context, sel ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InternalPolicyConnection(ctx, sel, v) +} -func (ec *executionContext) _UserUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userUpdatePayloadImplementors) +func (ec *executionContext) marshalNInternalPolicyCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyCreatePayload(ctx context.Context, sel ast.SelectionSet, v InternalPolicyCreatePayload) graphql.Marshaler { + return ec._InternalPolicyCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserUpdatePayload") - case "user": - out.Values[i] = ec._UserUpdatePayload_user(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNInternalPolicyCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyCreatePayload(ctx context.Context, sel ast.SelectionSet, v *InternalPolicyCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - out.Dispatch(ctx) - if out.Invalids > 0 { + return ec._InternalPolicyCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNInternalPolicyDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyDeletePayload(ctx context.Context, sel ast.SelectionSet, v InternalPolicyDeletePayload) graphql.Marshaler { + return ec._InternalPolicyDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNInternalPolicyDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyDeletePayload(ctx context.Context, sel ast.SelectionSet, v *InternalPolicyDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._InternalPolicyDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNInternalPolicyHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.InternalPolicyHistoryConnection) graphql.Marshaler { + return ec._InternalPolicyHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNInternalPolicyHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.InternalPolicyHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._InternalPolicyHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNInternalPolicyHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var webhookImplementors = []string{"Webhook", "Node"} +func (ec *executionContext) marshalNInternalPolicyHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _Webhook(ctx context.Context, sel ast.SelectionSet, obj *generated.Webhook) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookImplementors) +func (ec *executionContext) unmarshalNInternalPolicyHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryWhereInput(ctx context.Context, v interface{}) (*generated.InternalPolicyHistoryWhereInput, error) { + res, err := ec.unmarshalInputInternalPolicyHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Webhook") - case "id": - out.Values[i] = ec._Webhook_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Webhook_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Webhook_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Webhook_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Webhook_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._Webhook_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._Webhook_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._Webhook_deletedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._Webhook_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._Webhook_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Webhook_description(ctx, field, obj) - case "destinationURL": - out.Values[i] = ec._Webhook_destinationURL(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "enabled": - out.Values[i] = ec._Webhook_enabled(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "failures": - out.Values[i] = ec._Webhook_failures(ctx, field, obj) - case "lastError": - out.Values[i] = ec._Webhook_lastError(ctx, field, obj) - case "lastResponse": - out.Values[i] = ec._Webhook_lastResponse(ctx, field, obj) - case "owner": - field := field +func (ec *executionContext) marshalNInternalPolicyUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyUpdatePayload(ctx context.Context, sel ast.SelectionSet, v InternalPolicyUpdatePayload) graphql.Marshaler { + return ec._InternalPolicyUpdatePayload(ctx, sel, &v) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Webhook_owner(ctx, field, obj) - return res - } +func (ec *executionContext) marshalNInternalPolicyUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *InternalPolicyUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InternalPolicyUpdatePayload(ctx, sel, v) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) unmarshalNInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx context.Context, v interface{}) (*generated.InternalPolicyWhereInput, error) { + res, err := ec.unmarshalInputInternalPolicyWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNInvite2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx context.Context, sel ast.SelectionSet, v generated.Invite) graphql.Marshaler { + return ec._Invite(ctx, sel, &v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "events": - field := field +func (ec *executionContext) marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx context.Context, sel ast.SelectionSet, v *generated.Invite) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Invite(ctx, sel, v) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Webhook_events(ctx, field, obj) - return res - } +func (ec *executionContext) marshalNInviteBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v InviteBulkCreatePayload) graphql.Marshaler { + return ec._InviteBulkCreatePayload(ctx, sel, &v) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNInviteBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *InviteBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InviteBulkCreatePayload(ctx, sel, v) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNInviteConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx context.Context, sel ast.SelectionSet, v generated.InviteConnection) graphql.Marshaler { + return ec._InviteConnection(ctx, sel, &v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "integrations": - field := field +func (ec *executionContext) marshalNInviteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx context.Context, sel ast.SelectionSet, v *generated.InviteConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InviteConnection(ctx, sel, v) +} - innerFunc := func(ctx context.Context, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Webhook_integrations(ctx, field, obj) - return res - } +func (ec *executionContext) marshalNInviteCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteCreatePayload(ctx context.Context, sel ast.SelectionSet, v InviteCreatePayload) graphql.Marshaler { + return ec._InviteCreatePayload(ctx, sel, &v) +} - if field.Deferrable != nil { - dfs, ok := deferred[field.Deferrable.Label] - di := 0 - if ok { - dfs.AddField(field) - di = len(dfs.Values) - 1 - } else { - dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) - deferred[field.Deferrable.Label] = dfs - } - dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, dfs) - }) +func (ec *executionContext) marshalNInviteCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteCreatePayload(ctx context.Context, sel ast.SelectionSet, v *InviteCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InviteCreatePayload(ctx, sel, v) +} - // don't run the out.Concurrently() call below - out.Values[i] = graphql.Null - continue - } +func (ec *executionContext) marshalNInviteDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteDeletePayload(ctx context.Context, sel ast.SelectionSet, v InviteDeletePayload) graphql.Marshaler { + return ec._InviteDeletePayload(ctx, sel, &v) +} - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNInviteDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteDeletePayload(ctx context.Context, sel ast.SelectionSet, v *InviteDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - out.Dispatch(ctx) - if out.Invalids > 0 { + return ec._InviteDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx context.Context, v interface{}) (enums.InviteStatus, error) { + var res enums.InviteStatus + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx context.Context, sel ast.SelectionSet, v enums.InviteStatus) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { + var res enums.Role + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { + return v +} + +func (ec *executionContext) marshalNInviteUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteUpdatePayload(ctx context.Context, sel ast.SelectionSet, v InviteUpdatePayload) graphql.Marshaler { + return ec._InviteUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNInviteUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *InviteUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._InviteUpdatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx context.Context, v interface{}) (*generated.InviteWhereInput, error) { + res, err := ec.unmarshalInputInviteWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) unmarshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx context.Context, v interface{}) (customtypes.JSONObject, error) { + var res customtypes.JSONObject + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx context.Context, sel ast.SelectionSet, v customtypes.JSONObject) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return v +} - return out +func (ec *executionContext) marshalNNarrative2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx context.Context, sel ast.SelectionSet, v generated.Narrative) graphql.Marshaler { + return ec._Narrative(ctx, sel, &v) } -var webhookBulkCreatePayloadImplementors = []string{"WebhookBulkCreatePayload"} +func (ec *executionContext) marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx context.Context, sel ast.SelectionSet, v *generated.Narrative) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Narrative(ctx, sel, v) +} -func (ec *executionContext) _WebhookBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *WebhookBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookBulkCreatePayloadImplementors) +func (ec *executionContext) marshalNNarrativeBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v NarrativeBulkCreatePayload) graphql.Marshaler { + return ec._NarrativeBulkCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("WebhookBulkCreatePayload") - case "webhooks": - out.Values[i] = ec._WebhookBulkCreatePayload_webhooks(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNNarrativeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *NarrativeBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._NarrativeBulkCreatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNNarrativeConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx context.Context, sel ast.SelectionSet, v generated.NarrativeConnection) graphql.Marshaler { + return ec._NarrativeConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx context.Context, sel ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._NarrativeConnection(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNNarrativeCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeCreatePayload(ctx context.Context, sel ast.SelectionSet, v NarrativeCreatePayload) graphql.Marshaler { + return ec._NarrativeCreatePayload(ctx, sel, &v) } -var webhookConnectionImplementors = []string{"WebhookConnection"} +func (ec *executionContext) marshalNNarrativeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeCreatePayload(ctx context.Context, sel ast.SelectionSet, v *NarrativeCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._NarrativeCreatePayload(ctx, sel, v) +} -func (ec *executionContext) _WebhookConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.WebhookConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookConnectionImplementors) +func (ec *executionContext) marshalNNarrativeDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeDeletePayload(ctx context.Context, sel ast.SelectionSet, v NarrativeDeletePayload) graphql.Marshaler { + return ec._NarrativeDeletePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("WebhookConnection") - case "edges": - out.Values[i] = ec._WebhookConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._WebhookConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._WebhookConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNNarrativeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeDeletePayload(ctx context.Context, sel ast.SelectionSet, v *NarrativeDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._NarrativeDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNNarrativeHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.NarrativeHistoryConnection) graphql.Marshaler { + return ec._NarrativeHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNNarrativeHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.NarrativeHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._NarrativeHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNNarrativeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var webhookCreatePayloadImplementors = []string{"WebhookCreatePayload"} +func (ec *executionContext) marshalNNarrativeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _WebhookCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *WebhookCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookCreatePayloadImplementors) +func (ec *executionContext) unmarshalNNarrativeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryWhereInput(ctx context.Context, v interface{}) (*generated.NarrativeHistoryWhereInput, error) { + res, err := ec.unmarshalInputNarrativeHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("WebhookCreatePayload") - case "webhook": - out.Values[i] = ec._WebhookCreatePayload_webhook(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNNarrativeUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v NarrativeUpdatePayload) graphql.Marshaler { + return ec._NarrativeUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNNarrativeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *NarrativeUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._NarrativeUpdatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNNarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx context.Context, v interface{}) (*generated.NarrativeWhereInput, error) { + res, err := ec.unmarshalInputNarrativeWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNNode2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx context.Context, sel ast.SelectionSet, v []generated.Noder) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalONode2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) } + wg.Wait() - return out + return ret } -var webhookDeletePayloadImplementors = []string{"WebhookDeletePayload"} +func (ec *executionContext) marshalNNote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx context.Context, sel ast.SelectionSet, v *generated.Note) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Note(ctx, sel, v) +} -func (ec *executionContext) _WebhookDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *WebhookDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookDeletePayloadImplementors) +func (ec *executionContext) marshalNNoteConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx context.Context, sel ast.SelectionSet, v generated.NoteConnection) graphql.Marshaler { + return ec._NoteConnection(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("WebhookDeletePayload") - case "deletedID": - out.Values[i] = ec._WebhookDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx context.Context, sel ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._NoteConnection(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNNoteHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.NoteHistoryConnection) graphql.Marshaler { + return ec._NoteHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNNoteHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.NoteHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._NoteHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var webhookEdgeImplementors = []string{"WebhookEdge"} +func (ec *executionContext) marshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _WebhookEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.WebhookEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookEdgeImplementors) +func (ec *executionContext) unmarshalNNoteHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInput(ctx context.Context, v interface{}) (*generated.NoteHistoryWhereInput, error) { + res, err := ec.unmarshalInputNoteHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("WebhookEdge") - case "node": - out.Values[i] = ec._WebhookEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._WebhookEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) unmarshalNNoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx context.Context, v interface{}) (*generated.NoteWhereInput, error) { + res, err := ec.unmarshalInputNoteWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNOauthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx context.Context, sel ast.SelectionSet, v generated.OauthProvider) graphql.Marshaler { + return ec._OauthProvider(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProvider) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._OauthProvider(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNOauthProviderBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OauthProviderBulkCreatePayload) graphql.Marshaler { + return ec._OauthProviderBulkCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNOauthProviderBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OauthProviderBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._OauthProviderBulkCreatePayload(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNOauthProviderConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderConnection(ctx context.Context, sel ast.SelectionSet, v generated.OauthProviderConnection) graphql.Marshaler { + return ec._OauthProviderConnection(ctx, sel, &v) } -var webhookHistoryImplementors = []string{"WebhookHistory", "Node"} +func (ec *executionContext) marshalNOauthProviderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProviderConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OauthProviderConnection(ctx, sel, v) +} -func (ec *executionContext) _WebhookHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.WebhookHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookHistoryImplementors) +func (ec *executionContext) marshalNOauthProviderCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderCreatePayload(ctx context.Context, sel ast.SelectionSet, v OauthProviderCreatePayload) graphql.Marshaler { + return ec._OauthProviderCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("WebhookHistory") - case "id": - out.Values[i] = ec._WebhookHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._WebhookHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._WebhookHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._WebhookHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._WebhookHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._WebhookHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._WebhookHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._WebhookHistory_updatedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._WebhookHistory_tags(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._WebhookHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._WebhookHistory_deletedBy(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._WebhookHistory_ownerID(ctx, field, obj) - case "name": - out.Values[i] = ec._WebhookHistory_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec._WebhookHistory_description(ctx, field, obj) - case "destinationURL": - out.Values[i] = ec._WebhookHistory_destinationURL(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "enabled": - out.Values[i] = ec._WebhookHistory_enabled(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "failures": - out.Values[i] = ec._WebhookHistory_failures(ctx, field, obj) - case "lastError": - out.Values[i] = ec._WebhookHistory_lastError(ctx, field, obj) - case "lastResponse": - out.Values[i] = ec._WebhookHistory_lastResponse(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNOauthProviderCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OauthProviderCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - out.Dispatch(ctx) - if out.Invalids > 0 { + return ec._OauthProviderCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOauthProviderDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderDeletePayload(ctx context.Context, sel ast.SelectionSet, v OauthProviderDeletePayload) graphql.Marshaler { + return ec._OauthProviderDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOauthProviderDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OauthProviderDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._OauthProviderDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNOauthProviderHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.OauthProviderHistoryConnection) graphql.Marshaler { + return ec._OauthProviderHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNOauthProviderHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProviderHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._OauthProviderHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNOauthProviderHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var webhookHistoryConnectionImplementors = []string{"WebhookHistoryConnection"} +func (ec *executionContext) marshalNOauthProviderHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) _WebhookHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.WebhookHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookHistoryConnectionImplementors) +func (ec *executionContext) unmarshalNOauthProviderHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OauthProviderHistoryWhereInput, error) { + res, err := ec.unmarshalInputOauthProviderHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("WebhookHistoryConnection") - case "edges": - out.Values[i] = ec._WebhookHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._WebhookHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._WebhookHistoryConnection_totalCount(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNOauthProviderUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OauthProviderUpdatePayload) graphql.Marshaler { + return ec._OauthProviderUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOauthProviderUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OauthProviderUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._OauthProviderUpdatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } +func (ec *executionContext) unmarshalNOauthProviderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInput(ctx context.Context, v interface{}) (*generated.OauthProviderWhereInput, error) { + res, err := ec.unmarshalInputOauthProviderWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - return out +func (ec *executionContext) marshalNOhAuthTooToken2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx context.Context, sel ast.SelectionSet, v generated.OhAuthTooToken) graphql.Marshaler { + return ec._OhAuthTooToken(ctx, sel, &v) } -var webhookHistoryEdgeImplementors = []string{"WebhookHistoryEdge"} +func (ec *executionContext) marshalNOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx context.Context, sel ast.SelectionSet, v *generated.OhAuthTooToken) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OhAuthTooToken(ctx, sel, v) +} -func (ec *executionContext) _WebhookHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.WebhookHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookHistoryEdgeImplementors) +func (ec *executionContext) marshalNOhAuthTooTokenBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OhAuthTooTokenBulkCreatePayload) graphql.Marshaler { + return ec._OhAuthTooTokenBulkCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("WebhookHistoryEdge") - case "node": - out.Values[i] = ec._WebhookHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._WebhookHistoryEdge_cursor(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNOhAuthTooTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OhAuthTooTokenBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._OhAuthTooTokenBulkCreatePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNOhAuthTooTokenConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenConnection(ctx context.Context, sel ast.SelectionSet, v generated.OhAuthTooTokenConnection) graphql.Marshaler { + return ec._OhAuthTooTokenConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNOhAuthTooTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OhAuthTooTokenConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._OhAuthTooTokenConnection(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNOhAuthTooTokenCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v OhAuthTooTokenCreatePayload) graphql.Marshaler { + return ec._OhAuthTooTokenCreatePayload(ctx, sel, &v) } -var webhookSearchResultImplementors = []string{"WebhookSearchResult", "SearchResult"} +func (ec *executionContext) marshalNOhAuthTooTokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OhAuthTooTokenCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OhAuthTooTokenCreatePayload(ctx, sel, v) +} -func (ec *executionContext) _WebhookSearchResult(ctx context.Context, sel ast.SelectionSet, obj *WebhookSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookSearchResultImplementors) +func (ec *executionContext) marshalNOhAuthTooTokenDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v OhAuthTooTokenDeletePayload) graphql.Marshaler { + return ec._OhAuthTooTokenDeletePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("WebhookSearchResult") - case "webhooks": - out.Values[i] = ec._WebhookSearchResult_webhooks(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNOhAuthTooTokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OhAuthTooTokenDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._OhAuthTooTokenDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNOhAuthTooTokenUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OhAuthTooTokenUpdatePayload) graphql.Marshaler { + return ec._OhAuthTooTokenUpdatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNOhAuthTooTokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OhAuthTooTokenUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._OhAuthTooTokenUpdatePayload(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNOhAuthTooTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInput(ctx context.Context, v interface{}) (*generated.OhAuthTooTokenWhereInput, error) { + res, err := ec.unmarshalInputOhAuthTooTokenWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -var webhookUpdatePayloadImplementors = []string{"WebhookUpdatePayload"} +func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v interface{}) (entgql.OrderDirection, error) { + var res entgql.OrderDirection + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) _WebhookUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *WebhookUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, webhookUpdatePayloadImplementors) +func (ec *executionContext) marshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, sel ast.SelectionSet, v entgql.OrderDirection) graphql.Marshaler { + return v +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("WebhookUpdatePayload") - case "webhook": - out.Values[i] = ec._WebhookUpdatePayload_webhook(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNOrgMembership2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx context.Context, sel ast.SelectionSet, v generated.OrgMembership) graphql.Marshaler { + return ec._OrgMembership(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembership) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._OrgMembership(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNOrgMembershipBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrgMembershipBulkCreatePayload) graphql.Marshaler { + return ec._OrgMembershipBulkCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNOrgMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrgMembershipBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._OrgMembershipBulkCreatePayload(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNOrgMembershipConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrgMembershipConnection) graphql.Marshaler { + return ec._OrgMembershipConnection(ctx, sel, &v) } -var __DirectiveImplementors = []string{"__Directive"} +func (ec *executionContext) marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembershipConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrgMembershipConnection(ctx, sel, v) +} -func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors) +func (ec *executionContext) marshalNOrgMembershipCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrgMembershipCreatePayload) graphql.Marshaler { + return ec._OrgMembershipCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Directive") - case "name": - out.Values[i] = ec.___Directive_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec.___Directive_description(ctx, field, obj) - case "locations": - out.Values[i] = ec.___Directive_locations(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "args": - out.Values[i] = ec.___Directive_args(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isRepeatable": - out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNOrgMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrgMembershipCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - out.Dispatch(ctx) - if out.Invalids > 0 { + return ec._OrgMembershipCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrgMembershipDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v OrgMembershipDeletePayload) graphql.Marshaler { + return ec._OrgMembershipDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrgMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OrgMembershipDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._OrgMembershipDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNOrgMembershipHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrgMembershipHistoryConnection) graphql.Marshaler { + return ec._OrgMembershipHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNOrgMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembershipHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._OrgMembershipHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var __EnumValueImplementors = []string{"__EnumValue"} +func (ec *executionContext) marshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors) +func (ec *executionContext) unmarshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { + var res enums.Role + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__EnumValue") - case "name": - out.Values[i] = ec.___EnumValue_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec.___EnumValue_description(ctx, field, obj) - case "isDeprecated": - out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deprecationReason": - out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNOrgMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrgMembershipHistoryWhereInput, error) { + res, err := ec.unmarshalInputOrgMembershipHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNOrgMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { + var res enums.Role + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNOrgMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { + return v +} + +func (ec *executionContext) marshalNOrgMembershipUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OrgMembershipUpdatePayload) graphql.Marshaler { + return ec._OrgMembershipUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrgMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OrgMembershipUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - out.Dispatch(ctx) - if out.Invalids > 0 { + return ec._OrgMembershipUpdatePayload(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx context.Context, v interface{}) (*generated.OrgMembershipWhereInput, error) { + res, err := ec.unmarshalInputOrgMembershipWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNOrganization2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx context.Context, sel ast.SelectionSet, v generated.Organization) graphql.Marshaler { + return ec._Organization(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._Organization(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNOrganizationBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationBulkCreatePayload) graphql.Marshaler { + return ec._OrganizationBulkCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNOrganizationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._OrganizationBulkCreatePayload(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNOrganizationConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationConnection) graphql.Marshaler { + return ec._OrganizationConnection(ctx, sel, &v) } -var __FieldImplementors = []string{"__Field"} +func (ec *executionContext) marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrganizationConnection(ctx, sel, v) +} -func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors) +func (ec *executionContext) marshalNOrganizationCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationCreatePayload) graphql.Marshaler { + return ec._OrganizationCreatePayload(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Field") - case "name": - out.Values[i] = ec.___Field_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec.___Field_description(ctx, field, obj) - case "args": - out.Values[i] = ec.___Field_args(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "type": - out.Values[i] = ec.___Field_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "isDeprecated": - out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deprecationReason": - out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNOrganizationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - out.Dispatch(ctx) - if out.Invalids > 0 { + return ec._OrganizationCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrganizationDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationDeletePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationDeletePayload) graphql.Marshaler { + return ec._OrganizationDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganizationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } return graphql.Null } + return ec._OrganizationDeletePayload(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNOrganizationHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationHistoryConnection) graphql.Marshaler { + return ec._OrganizationHistoryConnection(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNOrganizationHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._OrganizationHistoryConnection(ctx, sel, v) +} - return out +func (ec *executionContext) unmarshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -var __InputValueImplementors = []string{"__InputValue"} +func (ec *executionContext) marshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} -func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors) +func (ec *executionContext) unmarshalNOrganizationHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryOrderField(ctx context.Context, v interface{}) (*generated.OrganizationHistoryOrderField, error) { + var res = new(generated.OrganizationHistoryOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__InputValue") - case "name": - out.Values[i] = ec.___InputValue_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec.___InputValue_description(ctx, field, obj) - case "type": - out.Values[i] = ec.___InputValue_type(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "defaultValue": - out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNOrganizationHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationHistoryOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return v +} + +func (ec *executionContext) unmarshalNOrganizationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationHistoryWhereInput, error) { + res, err := ec.unmarshalInputOrganizationHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNOrganizationOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderField(ctx context.Context, v interface{}) (*generated.OrganizationOrderField, error) { + var res = new(generated.OrganizationOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNOrganizationOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return v +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNOrganizationSetting2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationSetting) graphql.Marshaler { + return ec._OrganizationSetting(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSetting) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._OrganizationSetting(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNOrganizationSettingBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationSettingBulkCreatePayload) graphql.Marshaler { + return ec._OrganizationSettingBulkCreatePayload(ctx, sel, &v) } -var __SchemaImplementors = []string{"__Schema"} +func (ec *executionContext) marshalNOrganizationSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrganizationSettingBulkCreatePayload(ctx, sel, v) +} -func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) +func (ec *executionContext) marshalNOrganizationSettingConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationSettingConnection) graphql.Marshaler { + return ec._OrganizationSettingConnection(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Schema") - case "description": - out.Values[i] = ec.___Schema_description(ctx, field, obj) - case "types": - out.Values[i] = ec.___Schema_types(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "queryType": - out.Values[i] = ec.___Schema_queryType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "mutationType": - out.Values[i] = ec.___Schema_mutationType(ctx, field, obj) - case "subscriptionType": - out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj) - case "directives": - out.Values[i] = ec.___Schema_directives(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNOrganizationSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSettingConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._OrganizationSettingConnection(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) marshalNOrganizationSettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationSettingCreatePayload) graphql.Marshaler { + return ec._OrganizationSettingCreatePayload(ctx, sel, &v) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) +func (ec *executionContext) marshalNOrganizationSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null } + return ec._OrganizationSettingCreatePayload(ctx, sel, v) +} - return out +func (ec *executionContext) marshalNOrganizationSettingDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationSettingDeletePayload) graphql.Marshaler { + return ec._OrganizationSettingDeletePayload(ctx, sel, &v) } -var __TypeImplementors = []string{"__Type"} +func (ec *executionContext) marshalNOrganizationSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrganizationSettingDeletePayload(ctx, sel, v) +} -func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) +func (ec *executionContext) marshalNOrganizationSettingHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationSettingHistoryConnection) graphql.Marshaler { + return ec._OrganizationSettingHistoryConnection(ctx, sel, &v) +} - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("__Type") - case "kind": - out.Values[i] = ec.___Type_kind(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - out.Values[i] = ec.___Type_name(ctx, field, obj) - case "description": - out.Values[i] = ec.___Type_description(ctx, field, obj) - case "fields": - out.Values[i] = ec.___Type_fields(ctx, field, obj) - case "interfaces": - out.Values[i] = ec.___Type_interfaces(ctx, field, obj) - case "possibleTypes": - out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj) - case "enumValues": - out.Values[i] = ec.___Type_enumValues(ctx, field, obj) - case "inputFields": - out.Values[i] = ec.___Type_inputFields(ctx, field, obj) - case "ofType": - out.Values[i] = ec.___Type_ofType(ctx, field, obj) - case "specifiedByURL": - out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) - default: - panic("unknown field " + strconv.Quote(field.Name)) +func (ec *executionContext) marshalNOrganizationSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSettingHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - } - out.Dispatch(ctx) - if out.Invalids > 0 { return graphql.Null } + return ec._OrganizationSettingHistoryConnection(ctx, sel, v) +} - atomic.AddInt32(&ec.deferred, int32(len(deferred))) +func (ec *executionContext) unmarshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } +func (ec *executionContext) marshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} - return out +func (ec *executionContext) unmarshalNOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (enums.Region, error) { + var res enums.Region + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -// endregion **************************** object.gotpl **************************** +func (ec *executionContext) marshalNOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v enums.Region) graphql.Marshaler { + return v +} -// region ***************************** type.gotpl ***************************** +func (ec *executionContext) unmarshalNOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationSettingHistoryWhereInput, error) { + res, err := ec.unmarshalInputOrganizationSettingHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} -func (ec *executionContext) marshalNAPIToken2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx context.Context, sel ast.SelectionSet, v generated.APIToken) graphql.Marshaler { - return ec._APIToken(ctx, sel, &v) +func (ec *executionContext) unmarshalNOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (enums.Region, error) { + var res enums.Region + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx context.Context, sel ast.SelectionSet, v *generated.APIToken) graphql.Marshaler { +func (ec *executionContext) marshalNOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v enums.Region) graphql.Marshaler { + return v +} + +func (ec *executionContext) marshalNOrganizationSettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationSettingUpdatePayload) graphql.Marshaler { + return ec._OrganizationSettingUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganizationSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingUpdatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._APIToken(ctx, sel, v) + return ec._OrganizationSettingUpdatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNAPITokenBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v APITokenBulkCreatePayload) graphql.Marshaler { - return ec._APITokenBulkCreatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationSettingWhereInput, error) { + res, err := ec.unmarshalInputOrganizationSettingWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNAPITokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *APITokenBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNOrganizationUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationUpdatePayload) graphql.Marshaler { + return ec._OrganizationUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganizationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationUpdatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._APITokenBulkCreatePayload(ctx, sel, v) + return ec._OrganizationUpdatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNAPITokenConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx context.Context, sel ast.SelectionSet, v generated.APITokenConnection) graphql.Marshaler { - return ec._APITokenConnection(ctx, sel, &v) +func (ec *executionContext) unmarshalNOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationWhereInput, error) { + res, err := ec.unmarshalInputOrganizationWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNAPITokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx context.Context, sel ast.SelectionSet, v *generated.APITokenConnection) graphql.Marshaler { +func (ec *executionContext) marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { + return ec._PageInfo(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v *entgql.PageInfo[string]) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._APITokenConnection(ctx, sel, v) + return ec._PageInfo(ctx, sel, v) } -func (ec *executionContext) marshalNAPITokenCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v APITokenCreatePayload) graphql.Marshaler { - return ec._APITokenCreatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNPersonalAccessToken2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx context.Context, sel ast.SelectionSet, v generated.PersonalAccessToken) graphql.Marshaler { + return ec._PersonalAccessToken(ctx, sel, &v) } -func (ec *executionContext) marshalNAPITokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v *APITokenCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx context.Context, sel ast.SelectionSet, v *generated.PersonalAccessToken) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._APITokenCreatePayload(ctx, sel, v) + return ec._PersonalAccessToken(ctx, sel, v) } -func (ec *executionContext) marshalNAPITokenDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v APITokenDeletePayload) graphql.Marshaler { - return ec._APITokenDeletePayload(ctx, sel, &v) +func (ec *executionContext) marshalNPersonalAccessTokenBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v PersonalAccessTokenBulkCreatePayload) graphql.Marshaler { + return ec._PersonalAccessTokenBulkCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNAPITokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v *APITokenDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalNPersonalAccessTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenBulkCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._APITokenDeletePayload(ctx, sel, v) + return ec._PersonalAccessTokenBulkCreatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNAPITokenUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v APITokenUpdatePayload) graphql.Marshaler { - return ec._APITokenUpdatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNPersonalAccessTokenConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx context.Context, sel ast.SelectionSet, v generated.PersonalAccessTokenConnection) graphql.Marshaler { + return ec._PersonalAccessTokenConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNAPITokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *APITokenUpdatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNPersonalAccessTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx context.Context, sel ast.SelectionSet, v *generated.PersonalAccessTokenConnection) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._APITokenUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx context.Context, v interface{}) (*generated.APITokenWhereInput, error) { - res, err := ec.unmarshalInputAPITokenWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._PersonalAccessTokenConnection(ctx, sel, v) } -func (ec *executionContext) marshalNAuditLogConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogConnection(ctx context.Context, sel ast.SelectionSet, v AuditLogConnection) graphql.Marshaler { - return ec._AuditLogConnection(ctx, sel, &v) +func (ec *executionContext) marshalNPersonalAccessTokenCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v PersonalAccessTokenCreatePayload) graphql.Marshaler { + return ec._PersonalAccessTokenCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNAuditLogConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogConnection(ctx context.Context, sel ast.SelectionSet, v *AuditLogConnection) graphql.Marshaler { +func (ec *executionContext) marshalNPersonalAccessTokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._AuditLogConnection(ctx, sel, v) + return ec._PersonalAccessTokenCreatePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - res, err := graphql.UnmarshalBoolean(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNPersonalAccessTokenDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v PersonalAccessTokenDeletePayload) graphql.Marshaler { + return ec._PersonalAccessTokenDeletePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { - res := graphql.MarshalBoolean(v) - if res == graphql.Null { +func (ec *executionContext) marshalNPersonalAccessTokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenDeletePayload) graphql.Marshaler { + if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } + return graphql.Null } - return res + return ec._PersonalAccessTokenDeletePayload(ctx, sel, v) } -func (ec *executionContext) marshalNContact2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx context.Context, sel ast.SelectionSet, v generated.Contact) graphql.Marshaler { - return ec._Contact(ctx, sel, &v) +func (ec *executionContext) marshalNPersonalAccessTokenUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v PersonalAccessTokenUpdatePayload) graphql.Marshaler { + return ec._PersonalAccessTokenUpdatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx context.Context, sel ast.SelectionSet, v *generated.Contact) graphql.Marshaler { +func (ec *executionContext) marshalNPersonalAccessTokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenUpdatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._Contact(ctx, sel, v) + return ec._PersonalAccessTokenUpdatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNContactBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ContactBulkCreatePayload) graphql.Marshaler { - return ec._ContactBulkCreatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx context.Context, v interface{}) (*generated.PersonalAccessTokenWhereInput, error) { + res, err := ec.unmarshalInputPersonalAccessTokenWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNContactBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ContactBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNProcedure2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx context.Context, sel ast.SelectionSet, v generated.Procedure) graphql.Marshaler { + return ec._Procedure(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx context.Context, sel ast.SelectionSet, v *generated.Procedure) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._ContactBulkCreatePayload(ctx, sel, v) + return ec._Procedure(ctx, sel, v) } -func (ec *executionContext) marshalNContactConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx context.Context, sel ast.SelectionSet, v generated.ContactConnection) graphql.Marshaler { - return ec._ContactConnection(ctx, sel, &v) +func (ec *executionContext) marshalNProcedureBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ProcedureBulkCreatePayload) graphql.Marshaler { + return ec._ProcedureBulkCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx context.Context, sel ast.SelectionSet, v *generated.ContactConnection) graphql.Marshaler { +func (ec *executionContext) marshalNProcedureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ProcedureBulkCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._ContactConnection(ctx, sel, v) + return ec._ProcedureBulkCreatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNContactCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactCreatePayload(ctx context.Context, sel ast.SelectionSet, v ContactCreatePayload) graphql.Marshaler { - return ec._ContactCreatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNProcedureConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx context.Context, sel ast.SelectionSet, v generated.ProcedureConnection) graphql.Marshaler { + return ec._ProcedureConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNContactCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ContactCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx context.Context, sel ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._ContactCreatePayload(ctx, sel, v) + return ec._ProcedureConnection(ctx, sel, v) } -func (ec *executionContext) marshalNContactDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactDeletePayload(ctx context.Context, sel ast.SelectionSet, v ContactDeletePayload) graphql.Marshaler { - return ec._ContactDeletePayload(ctx, sel, &v) +func (ec *executionContext) marshalNProcedureCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureCreatePayload(ctx context.Context, sel ast.SelectionSet, v ProcedureCreatePayload) graphql.Marshaler { + return ec._ProcedureCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNContactDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ContactDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalNProcedureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ProcedureCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._ContactDeletePayload(ctx, sel, v) + return ec._ProcedureCreatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNContactHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ContactHistoryConnection) graphql.Marshaler { - return ec._ContactHistoryConnection(ctx, sel, &v) +func (ec *executionContext) marshalNProcedureDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureDeletePayload(ctx context.Context, sel ast.SelectionSet, v ProcedureDeletePayload) graphql.Marshaler { + return ec._ProcedureDeletePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNContactHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.ContactHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalNProcedureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ProcedureDeletePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._ContactHistoryConnection(ctx, sel, v) + return ec._ProcedureDeletePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNProcedureHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ProcedureHistoryConnection) graphql.Marshaler { + return ec._ProcedureHistoryConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v +func (ec *executionContext) marshalNProcedureHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.ProcedureHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProcedureHistoryConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (enums.UserStatus, error) { - var res enums.UserStatus +func (ec *executionContext) unmarshalNProcedureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, sel ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { +func (ec *executionContext) marshalNProcedureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { return v } -func (ec *executionContext) unmarshalNContactHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ContactHistoryWhereInput, error) { - res, err := ec.unmarshalInputContactHistoryWhereInput(ctx, v) +func (ec *executionContext) unmarshalNProcedureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ProcedureHistoryWhereInput, error) { + res, err := ec.unmarshalInputProcedureHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNContactUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ContactUpdatePayload) graphql.Marshaler { - return ec._ContactUpdatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNProcedureUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ProcedureUpdatePayload) graphql.Marshaler { + return ec._ProcedureUpdatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNContactUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ContactUpdatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNProcedureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ProcedureUpdatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._ContactUpdatePayload(ctx, sel, v) + return ec._ProcedureUpdatePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (enums.UserStatus, error) { - var res enums.UserStatus - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) unmarshalNProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx context.Context, v interface{}) (*generated.ProcedureWhereInput, error) { + res, err := ec.unmarshalInputProcedureWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, sel ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { - return v +func (ec *executionContext) marshalNRisk2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx context.Context, sel ast.SelectionSet, v generated.Risk) graphql.Marshaler { + return ec._Risk(ctx, sel, &v) } -func (ec *executionContext) unmarshalNContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx context.Context, v interface{}) (*generated.ContactWhereInput, error) { - res, err := ec.unmarshalInputContactWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx context.Context, sel ast.SelectionSet, v *generated.Risk) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Risk(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateAPITokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInput(ctx context.Context, v interface{}) (generated.CreateAPITokenInput, error) { - res, err := ec.unmarshalInputCreateAPITokenInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v RiskBulkCreatePayload) graphql.Marshaler { + return ec._RiskBulkCreatePayload(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateAPITokenInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInput(ctx context.Context, v interface{}) (*generated.CreateAPITokenInput, error) { - res, err := ec.unmarshalInputCreateAPITokenInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *RiskBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._RiskBulkCreatePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateContactInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInput(ctx context.Context, v interface{}) (generated.CreateContactInput, error) { - res, err := ec.unmarshalInputCreateContactInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx context.Context, sel ast.SelectionSet, v generated.RiskConnection) graphql.Marshaler { + return ec._RiskConnection(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateContactInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInput(ctx context.Context, v interface{}) (*generated.CreateContactInput, error) { - res, err := ec.unmarshalInputCreateContactInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx context.Context, sel ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._RiskConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInput(ctx context.Context, v interface{}) (generated.CreateDocumentDataInput, error) { - res, err := ec.unmarshalInputCreateDocumentDataInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskCreatePayload(ctx context.Context, sel ast.SelectionSet, v RiskCreatePayload) graphql.Marshaler { + return ec._RiskCreatePayload(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateDocumentDataInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInput(ctx context.Context, v interface{}) (*generated.CreateDocumentDataInput, error) { - res, err := ec.unmarshalInputCreateDocumentDataInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskCreatePayload(ctx context.Context, sel ast.SelectionSet, v *RiskCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._RiskCreatePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateEntitlementInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementInput(ctx context.Context, v interface{}) (generated.CreateEntitlementInput, error) { - res, err := ec.unmarshalInputCreateEntitlementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskDeletePayload(ctx context.Context, sel ast.SelectionSet, v RiskDeletePayload) graphql.Marshaler { + return ec._RiskDeletePayload(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateEntitlementInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementInput(ctx context.Context, v interface{}) (*generated.CreateEntitlementInput, error) { - res, err := ec.unmarshalInputCreateEntitlementInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskDeletePayload(ctx context.Context, sel ast.SelectionSet, v *RiskDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._RiskDeletePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateEntitlementPlanFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanFeatureInput(ctx context.Context, v interface{}) (generated.CreateEntitlementPlanFeatureInput, error) { - res, err := ec.unmarshalInputCreateEntitlementPlanFeatureInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.RiskHistoryConnection) graphql.Marshaler { + return ec._RiskHistoryConnection(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateEntitlementPlanFeatureInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanFeatureInput(ctx context.Context, v interface{}) (*generated.CreateEntitlementPlanFeatureInput, error) { - res, err := ec.unmarshalInputCreateEntitlementPlanFeatureInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.RiskHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._RiskHistoryConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateEntitlementPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanInput(ctx context.Context, v interface{}) (generated.CreateEntitlementPlanInput, error) { - res, err := ec.unmarshalInputCreateEntitlementPlanInput(ctx, v) +func (ec *executionContext) unmarshalNRiskHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateEntitlementPlanInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanInput(ctx context.Context, v interface{}) (*generated.CreateEntitlementPlanInput, error) { - res, err := ec.unmarshalInputCreateEntitlementPlanInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v } -func (ec *executionContext) unmarshalNCreateEntityInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInput(ctx context.Context, v interface{}) (generated.CreateEntityInput, error) { - res, err := ec.unmarshalInputCreateEntityInput(ctx, v) +func (ec *executionContext) unmarshalNRiskHistoryRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx context.Context, v interface{}) (enums.RiskImpact, error) { + var res enums.RiskImpact + err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateEntityInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInput(ctx context.Context, v interface{}) (*generated.CreateEntityInput, error) { - res, err := ec.unmarshalInputCreateEntityInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskHistoryRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx context.Context, sel ast.SelectionSet, v enums.RiskImpact) graphql.Marshaler { + return v } -func (ec *executionContext) unmarshalNCreateEntityTypeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInput(ctx context.Context, v interface{}) (generated.CreateEntityTypeInput, error) { - res, err := ec.unmarshalInputCreateEntityTypeInput(ctx, v) +func (ec *executionContext) unmarshalNRiskHistoryRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx context.Context, v interface{}) (enums.RiskLikelihood, error) { + var res enums.RiskLikelihood + err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateEntityTypeInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInput(ctx context.Context, v interface{}) (*generated.CreateEntityTypeInput, error) { - res, err := ec.unmarshalInputCreateEntityTypeInput(ctx, v) +func (ec *executionContext) marshalNRiskHistoryRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx context.Context, sel ast.SelectionSet, v enums.RiskLikelihood) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNRiskHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryWhereInput(ctx context.Context, v interface{}) (*generated.RiskHistoryWhereInput, error) { + res, err := ec.unmarshalInputRiskHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateEventInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInput(ctx context.Context, v interface{}) (generated.CreateEventInput, error) { - res, err := ec.unmarshalInputCreateEventInput(ctx, v) +func (ec *executionContext) unmarshalNRiskRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx context.Context, v interface{}) (enums.RiskImpact, error) { + var res enums.RiskImpact + err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateEventInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInput(ctx context.Context, v interface{}) (*generated.CreateEventInput, error) { - res, err := ec.unmarshalInputCreateEventInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx context.Context, sel ast.SelectionSet, v enums.RiskImpact) graphql.Marshaler { + return v } -func (ec *executionContext) unmarshalNCreateFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateFeatureInput(ctx context.Context, v interface{}) (generated.CreateFeatureInput, error) { - res, err := ec.unmarshalInputCreateFeatureInput(ctx, v) +func (ec *executionContext) unmarshalNRiskRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx context.Context, v interface{}) (enums.RiskLikelihood, error) { + var res enums.RiskLikelihood + err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateFeatureInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateFeatureInput(ctx context.Context, v interface{}) (*generated.CreateFeatureInput, error) { - res, err := ec.unmarshalInputCreateFeatureInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx context.Context, sel ast.SelectionSet, v enums.RiskLikelihood) graphql.Marshaler { + return v } -func (ec *executionContext) unmarshalNCreateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInput(ctx context.Context, v interface{}) (generated.CreateGroupInput, error) { - res, err := ec.unmarshalInputCreateGroupInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNRiskUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskUpdatePayload(ctx context.Context, sel ast.SelectionSet, v RiskUpdatePayload) graphql.Marshaler { + return ec._RiskUpdatePayload(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateGroupInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInput(ctx context.Context, v interface{}) (*generated.CreateGroupInput, error) { - res, err := ec.unmarshalInputCreateGroupInput(ctx, v) +func (ec *executionContext) marshalNRiskUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *RiskUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._RiskUpdatePayload(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNRiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx context.Context, v interface{}) (*generated.RiskWhereInput, error) { + res, err := ec.unmarshalInputRiskWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateGroupMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInput(ctx context.Context, v interface{}) (generated.CreateGroupMembershipInput, error) { - res, err := ec.unmarshalInputCreateGroupMembershipInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSearchResult2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResult(ctx context.Context, sel ast.SelectionSet, v SearchResult) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateGroupMembershipInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInput(ctx context.Context, v interface{}) (*generated.CreateGroupMembershipInput, error) { - res, err := ec.unmarshalInputCreateGroupMembershipInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSearchResult2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultᚄ(ctx context.Context, sel ast.SelectionSet, v []SearchResult) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNSearchResult2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResult(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret } -func (ec *executionContext) unmarshalNCreateGroupSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx context.Context, v interface{}) (generated.CreateGroupSettingInput, error) { - res, err := ec.unmarshalInputCreateGroupSettingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandard2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx context.Context, sel ast.SelectionSet, v generated.Standard) graphql.Marshaler { + return ec._Standard(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateGroupSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx context.Context, v interface{}) (*generated.CreateGroupSettingInput, error) { - res, err := ec.unmarshalInputCreateGroupSettingInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx context.Context, sel ast.SelectionSet, v *generated.Standard) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Standard(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateHushInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInput(ctx context.Context, v interface{}) (generated.CreateHushInput, error) { - res, err := ec.unmarshalInputCreateHushInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandardBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v StandardBulkCreatePayload) graphql.Marshaler { + return ec._StandardBulkCreatePayload(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateHushInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInput(ctx context.Context, v interface{}) (*generated.CreateHushInput, error) { - res, err := ec.unmarshalInputCreateHushInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandardBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *StandardBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._StandardBulkCreatePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateIntegrationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInput(ctx context.Context, v interface{}) (generated.CreateIntegrationInput, error) { - res, err := ec.unmarshalInputCreateIntegrationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandardConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx context.Context, sel ast.SelectionSet, v generated.StandardConnection) graphql.Marshaler { + return ec._StandardConnection(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateIntegrationInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInput(ctx context.Context, v interface{}) (*generated.CreateIntegrationInput, error) { - res, err := ec.unmarshalInputCreateIntegrationInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandardConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx context.Context, sel ast.SelectionSet, v *generated.StandardConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._StandardConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateInviteInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInput(ctx context.Context, v interface{}) (generated.CreateInviteInput, error) { - res, err := ec.unmarshalInputCreateInviteInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandardCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardCreatePayload(ctx context.Context, sel ast.SelectionSet, v StandardCreatePayload) graphql.Marshaler { + return ec._StandardCreatePayload(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateInviteInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInput(ctx context.Context, v interface{}) (*generated.CreateInviteInput, error) { - res, err := ec.unmarshalInputCreateInviteInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandardCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardCreatePayload(ctx context.Context, sel ast.SelectionSet, v *StandardCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._StandardCreatePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateOauthProviderInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOauthProviderInput(ctx context.Context, v interface{}) (generated.CreateOauthProviderInput, error) { - res, err := ec.unmarshalInputCreateOauthProviderInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandardDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardDeletePayload(ctx context.Context, sel ast.SelectionSet, v StandardDeletePayload) graphql.Marshaler { + return ec._StandardDeletePayload(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateOauthProviderInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOauthProviderInput(ctx context.Context, v interface{}) (*generated.CreateOauthProviderInput, error) { - res, err := ec.unmarshalInputCreateOauthProviderInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandardDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardDeletePayload(ctx context.Context, sel ast.SelectionSet, v *StandardDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._StandardDeletePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateOhAuthTooTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOhAuthTooTokenInput(ctx context.Context, v interface{}) (generated.CreateOhAuthTooTokenInput, error) { - res, err := ec.unmarshalInputCreateOhAuthTooTokenInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandardHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.StandardHistoryConnection) graphql.Marshaler { + return ec._StandardHistoryConnection(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateOhAuthTooTokenInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOhAuthTooTokenInput(ctx context.Context, v interface{}) (*generated.CreateOhAuthTooTokenInput, error) { - res, err := ec.unmarshalInputCreateOhAuthTooTokenInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandardHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.StandardHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._StandardHistoryConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateOrgMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInput(ctx context.Context, v interface{}) (generated.CreateOrgMembershipInput, error) { - res, err := ec.unmarshalInputCreateOrgMembershipInput(ctx, v) +func (ec *executionContext) unmarshalNStandardHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateOrgMembershipInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInput(ctx context.Context, v interface{}) (*generated.CreateOrgMembershipInput, error) { - res, err := ec.unmarshalInputCreateOrgMembershipInput(ctx, v) +func (ec *executionContext) marshalNStandardHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNStandardHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryWhereInput(ctx context.Context, v interface{}) (*generated.StandardHistoryWhereInput, error) { + res, err := ec.unmarshalInputStandardHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateOrganizationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInput(ctx context.Context, v interface{}) (generated.CreateOrganizationInput, error) { - res, err := ec.unmarshalInputCreateOrganizationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNStandardUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardUpdatePayload(ctx context.Context, sel ast.SelectionSet, v StandardUpdatePayload) graphql.Marshaler { + return ec._StandardUpdatePayload(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateOrganizationInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInput(ctx context.Context, v interface{}) (*generated.CreateOrganizationInput, error) { - res, err := ec.unmarshalInputCreateOrganizationInput(ctx, v) +func (ec *executionContext) marshalNStandardUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *StandardUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._StandardUpdatePayload(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx context.Context, v interface{}) (*generated.StandardWhereInput, error) { + res, err := ec.unmarshalInputStandardWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateOrganizationSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx context.Context, v interface{}) (generated.CreateOrganizationSettingInput, error) { - res, err := ec.unmarshalInputCreateOrganizationSettingInput(ctx, v) +func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateOrganizationSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx context.Context, v interface{}) (*generated.CreateOrganizationSettingInput, error) { - res, err := ec.unmarshalInputCreateOrganizationSettingInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res } -func (ec *executionContext) unmarshalNCreatePersonalAccessTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInput(ctx context.Context, v interface{}) (generated.CreatePersonalAccessTokenInput, error) { - res, err := ec.unmarshalInputCreatePersonalAccessTokenInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubcontrol2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx context.Context, sel ast.SelectionSet, v generated.Subcontrol) graphql.Marshaler { + return ec._Subcontrol(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreatePersonalAccessTokenInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInput(ctx context.Context, v interface{}) (*generated.CreatePersonalAccessTokenInput, error) { - res, err := ec.unmarshalInputCreatePersonalAccessTokenInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx context.Context, sel ast.SelectionSet, v *generated.Subcontrol) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Subcontrol(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateSubscriberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInput(ctx context.Context, v interface{}) (generated.CreateSubscriberInput, error) { - res, err := ec.unmarshalInputCreateSubscriberInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubcontrolBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v SubcontrolBulkCreatePayload) graphql.Marshaler { + return ec._SubcontrolBulkCreatePayload(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateSubscriberInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInput(ctx context.Context, v interface{}) (*generated.CreateSubscriberInput, error) { - res, err := ec.unmarshalInputCreateSubscriberInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubcontrolBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *SubcontrolBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubcontrolBulkCreatePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateTFASettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTFASettingInput(ctx context.Context, v interface{}) (generated.CreateTFASettingInput, error) { - res, err := ec.unmarshalInputCreateTFASettingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubcontrolConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx context.Context, sel ast.SelectionSet, v generated.SubcontrolConnection) graphql.Marshaler { + return ec._SubcontrolConnection(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateTemplateInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInput(ctx context.Context, v interface{}) (generated.CreateTemplateInput, error) { - res, err := ec.unmarshalInputCreateTemplateInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx context.Context, sel ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubcontrolConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateTemplateInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInput(ctx context.Context, v interface{}) (*generated.CreateTemplateInput, error) { - res, err := ec.unmarshalInputCreateTemplateInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubcontrolCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolCreatePayload(ctx context.Context, sel ast.SelectionSet, v SubcontrolCreatePayload) graphql.Marshaler { + return ec._SubcontrolCreatePayload(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateUserInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserInput(ctx context.Context, v interface{}) (generated.CreateUserInput, error) { - res, err := ec.unmarshalInputCreateUserInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubcontrolCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolCreatePayload(ctx context.Context, sel ast.SelectionSet, v *SubcontrolCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubcontrolCreatePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateUserSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInput(ctx context.Context, v interface{}) (generated.CreateUserSettingInput, error) { - res, err := ec.unmarshalInputCreateUserSettingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubcontrolDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolDeletePayload(ctx context.Context, sel ast.SelectionSet, v SubcontrolDeletePayload) graphql.Marshaler { + return ec._SubcontrolDeletePayload(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateUserSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInput(ctx context.Context, v interface{}) (*generated.CreateUserSettingInput, error) { - res, err := ec.unmarshalInputCreateUserSettingInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubcontrolDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolDeletePayload(ctx context.Context, sel ast.SelectionSet, v *SubcontrolDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubcontrolDeletePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNCreateWebhookInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateWebhookInput(ctx context.Context, v interface{}) (generated.CreateWebhookInput, error) { - res, err := ec.unmarshalInputCreateWebhookInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubcontrolHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.SubcontrolHistoryConnection) graphql.Marshaler { + return ec._SubcontrolHistoryConnection(ctx, sel, &v) } -func (ec *executionContext) unmarshalNCreateWebhookInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateWebhookInput(ctx context.Context, v interface{}) (*generated.CreateWebhookInput, error) { - res, err := ec.unmarshalInputCreateWebhookInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubcontrolHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.SubcontrolHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubcontrolHistoryConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (entgql.Cursor[string], error) { - var res entgql.Cursor[string] +func (ec *executionContext) unmarshalNSubcontrolHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, sel ast.SelectionSet, v entgql.Cursor[string]) graphql.Marshaler { +func (ec *executionContext) marshalNSubcontrolHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { return v } -func (ec *executionContext) marshalNDocumentData2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx context.Context, sel ast.SelectionSet, v generated.DocumentData) graphql.Marshaler { - return ec._DocumentData(ctx, sel, &v) +func (ec *executionContext) unmarshalNSubcontrolHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryWhereInput(ctx context.Context, v interface{}) (*generated.SubcontrolHistoryWhereInput, error) { + res, err := ec.unmarshalInputSubcontrolHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentData) graphql.Marshaler { +func (ec *executionContext) marshalNSubcontrolUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolUpdatePayload(ctx context.Context, sel ast.SelectionSet, v SubcontrolUpdatePayload) graphql.Marshaler { + return ec._SubcontrolUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSubcontrolUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *SubcontrolUpdatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._DocumentData(ctx, sel, v) + return ec._SubcontrolUpdatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNDocumentDataBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v DocumentDataBulkCreatePayload) graphql.Marshaler { - return ec._DocumentDataBulkCreatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx context.Context, v interface{}) (*generated.SubcontrolWhereInput, error) { + res, err := ec.unmarshalInputSubcontrolWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNDocumentDataBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *DocumentDataBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNSubscriber2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx context.Context, sel ast.SelectionSet, v generated.Subscriber) graphql.Marshaler { + return ec._Subscriber(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx context.Context, sel ast.SelectionSet, v *generated.Subscriber) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._DocumentDataBulkCreatePayload(ctx, sel, v) + return ec._Subscriber(ctx, sel, v) } -func (ec *executionContext) marshalNDocumentDataConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx context.Context, sel ast.SelectionSet, v generated.DocumentDataConnection) graphql.Marshaler { - return ec._DocumentDataConnection(ctx, sel, &v) +func (ec *executionContext) marshalNSubscriberBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v SubscriberBulkCreatePayload) graphql.Marshaler { + return ec._SubscriberBulkCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNDocumentDataConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentDataConnection) graphql.Marshaler { +func (ec *executionContext) marshalNSubscriberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *SubscriberBulkCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._DocumentDataConnection(ctx, sel, v) + return ec._SubscriberBulkCreatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNDocumentDataCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataCreatePayload(ctx context.Context, sel ast.SelectionSet, v DocumentDataCreatePayload) graphql.Marshaler { - return ec._DocumentDataCreatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNSubscriberConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx context.Context, sel ast.SelectionSet, v generated.SubscriberConnection) graphql.Marshaler { + return ec._SubscriberConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNDocumentDataCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataCreatePayload(ctx context.Context, sel ast.SelectionSet, v *DocumentDataCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx context.Context, sel ast.SelectionSet, v *generated.SubscriberConnection) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._DocumentDataCreatePayload(ctx, sel, v) + return ec._SubscriberConnection(ctx, sel, v) } -func (ec *executionContext) marshalNDocumentDataDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataDeletePayload(ctx context.Context, sel ast.SelectionSet, v DocumentDataDeletePayload) graphql.Marshaler { - return ec._DocumentDataDeletePayload(ctx, sel, &v) +func (ec *executionContext) marshalNSubscriberCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberCreatePayload(ctx context.Context, sel ast.SelectionSet, v SubscriberCreatePayload) graphql.Marshaler { + return ec._SubscriberCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNDocumentDataDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataDeletePayload(ctx context.Context, sel ast.SelectionSet, v *DocumentDataDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalNSubscriberCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberCreatePayload(ctx context.Context, sel ast.SelectionSet, v *SubscriberCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._DocumentDataDeletePayload(ctx, sel, v) + return ec._SubscriberCreatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNDocumentDataHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.DocumentDataHistoryConnection) graphql.Marshaler { - return ec._DocumentDataHistoryConnection(ctx, sel, &v) +func (ec *executionContext) marshalNSubscriberDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberDeletePayload(ctx context.Context, sel ast.SelectionSet, v SubscriberDeletePayload) graphql.Marshaler { + return ec._SubscriberDeletePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNDocumentDataHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentDataHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalNSubscriberDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberDeletePayload(ctx context.Context, sel ast.SelectionSet, v *SubscriberDeletePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._DocumentDataHistoryConnection(ctx, sel, v) + return ec._SubscriberDeletePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNSubscriberUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberUpdatePayload(ctx context.Context, sel ast.SelectionSet, v SubscriberUpdatePayload) graphql.Marshaler { + return ec._SubscriberUpdatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v +func (ec *executionContext) marshalNSubscriberUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *SubscriberUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubscriberUpdatePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNDocumentDataHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInput(ctx context.Context, v interface{}) (*generated.DocumentDataHistoryWhereInput, error) { - res, err := ec.unmarshalInputDocumentDataHistoryWhereInput(ctx, v) +func (ec *executionContext) unmarshalNSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx context.Context, v interface{}) (*generated.SubscriberWhereInput, error) { + res, err := ec.unmarshalInputSubscriberWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNDocumentDataUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataUpdatePayload(ctx context.Context, sel ast.SelectionSet, v DocumentDataUpdatePayload) graphql.Marshaler { - return ec._DocumentDataUpdatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNTFASetting2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx context.Context, sel ast.SelectionSet, v generated.TFASetting) graphql.Marshaler { + return ec._TFASetting(ctx, sel, &v) } -func (ec *executionContext) marshalNDocumentDataUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *DocumentDataUpdatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx context.Context, sel ast.SelectionSet, v *generated.TFASetting) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._DocumentDataUpdatePayload(ctx, sel, v) + return ec._TFASetting(ctx, sel, v) } -func (ec *executionContext) unmarshalNDocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx context.Context, v interface{}) (*generated.DocumentDataWhereInput, error) { - res, err := ec.unmarshalInputDocumentDataWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNTFASettingConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingConnection(ctx context.Context, sel ast.SelectionSet, v generated.TFASettingConnection) graphql.Marshaler { + return ec._TFASettingConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNEntitlement2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx context.Context, sel ast.SelectionSet, v generated.Entitlement) graphql.Marshaler { - return ec._Entitlement(ctx, sel, &v) +func (ec *executionContext) marshalNTFASettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingConnection(ctx context.Context, sel ast.SelectionSet, v *generated.TFASettingConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TFASettingConnection(ctx, sel, v) } -func (ec *executionContext) marshalNEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx context.Context, sel ast.SelectionSet, v *generated.Entitlement) graphql.Marshaler { +func (ec *executionContext) marshalNTFASettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v TFASettingCreatePayload) graphql.Marshaler { + return ec._TFASettingCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTFASettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *TFASettingCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._Entitlement(ctx, sel, v) + return ec._TFASettingCreatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNEntitlementBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementBulkCreatePayload) graphql.Marshaler { - return ec._EntitlementBulkCreatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNTFASettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v TFASettingUpdatePayload) graphql.Marshaler { + return ec._TFASettingUpdatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEntitlementBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNTFASettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *TFASettingUpdatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntitlementBulkCreatePayload(ctx, sel, v) + return ec._TFASettingUpdatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNEntitlementConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementConnection) graphql.Marshaler { - return ec._EntitlementConnection(ctx, sel, &v) +func (ec *executionContext) unmarshalNTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx context.Context, v interface{}) (*generated.TFASettingWhereInput, error) { + res, err := ec.unmarshalInputTFASettingWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementConnection) graphql.Marshaler { +func (ec *executionContext) marshalNTemplate2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx context.Context, sel ast.SelectionSet, v generated.Template) graphql.Marshaler { + return ec._Template(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx context.Context, sel ast.SelectionSet, v *generated.Template) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntitlementConnection(ctx, sel, v) + return ec._Template(ctx, sel, v) } -func (ec *executionContext) marshalNEntitlementCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementCreatePayload) graphql.Marshaler { - return ec._EntitlementCreatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNTemplateBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v TemplateBulkCreatePayload) graphql.Marshaler { + return ec._TemplateBulkCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEntitlementCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNTemplateBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *TemplateBulkCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntitlementCreatePayload(ctx, sel, v) + return ec._TemplateBulkCreatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNEntitlementDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementDeletePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementDeletePayload) graphql.Marshaler { - return ec._EntitlementDeletePayload(ctx, sel, &v) +func (ec *executionContext) marshalNTemplateConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx context.Context, sel ast.SelectionSet, v generated.TemplateConnection) graphql.Marshaler { + return ec._TemplateConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNEntitlementDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx context.Context, sel ast.SelectionSet, v *generated.TemplateConnection) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntitlementDeletePayload(ctx, sel, v) + return ec._TemplateConnection(ctx, sel, v) } -func (ec *executionContext) marshalNEntitlementHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementHistoryConnection) graphql.Marshaler { - return ec._EntitlementHistoryConnection(ctx, sel, &v) +func (ec *executionContext) marshalNTemplateCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateCreatePayload(ctx context.Context, sel ast.SelectionSet, v TemplateCreatePayload) graphql.Marshaler { + return ec._TemplateCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEntitlementHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalNTemplateCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateCreatePayload(ctx context.Context, sel ast.SelectionSet, v *TemplateCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntitlementHistoryConnection(ctx, sel, v) + return ec._TemplateCreatePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNEntitlementHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType +func (ec *executionContext) marshalNTemplateDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateDeletePayload(ctx context.Context, sel ast.SelectionSet, v TemplateDeletePayload) graphql.Marshaler { + return ec._TemplateDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTemplateDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateDeletePayload(ctx context.Context, sel ast.SelectionSet, v *TemplateDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TemplateDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNTemplateDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx context.Context, v interface{}) (enums.DocumentType, error) { + var res enums.DocumentType err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalNTemplateDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx context.Context, sel ast.SelectionSet, v enums.DocumentType) graphql.Marshaler { return v } -func (ec *executionContext) unmarshalNEntitlementHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementHistoryWhereInput, error) { - res, err := ec.unmarshalInputEntitlementHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNEntitlementPlan2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementPlan) graphql.Marshaler { - return ec._EntitlementPlan(ctx, sel, &v) +func (ec *executionContext) marshalNTemplateHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.TemplateHistoryConnection) graphql.Marshaler { + return ec._TemplateHistoryConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlan) graphql.Marshaler { +func (ec *executionContext) marshalNTemplateHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.TemplateHistoryConnection) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntitlementPlan(ctx, sel, v) + return ec._TemplateHistoryConnection(ctx, sel, v) } -func (ec *executionContext) marshalNEntitlementPlanBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanBulkCreatePayload) graphql.Marshaler { - return ec._EntitlementPlanBulkCreatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNTemplateHistoryDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx context.Context, v interface{}) (enums.DocumentType, error) { + var res enums.DocumentType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNTemplateHistoryDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx context.Context, sel ast.SelectionSet, v enums.DocumentType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNTemplateHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTemplateHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNTemplateHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryOrderField(ctx context.Context, v interface{}) (*generated.TemplateHistoryOrderField, error) { + var res = new(generated.TemplateHistoryOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTemplateHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.TemplateHistoryOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntitlementPlanBulkCreatePayload(ctx, sel, v) + return v } -func (ec *executionContext) marshalNEntitlementPlanConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementPlanConnection) graphql.Marshaler { - return ec._EntitlementPlanConnection(ctx, sel, &v) +func (ec *executionContext) unmarshalNTemplateHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryWhereInput(ctx context.Context, v interface{}) (*generated.TemplateHistoryWhereInput, error) { + res, err := ec.unmarshalInputTemplateHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanConnection) graphql.Marshaler { +func (ec *executionContext) unmarshalNTemplateOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrderField(ctx context.Context, v interface{}) (*generated.TemplateOrderField, error) { + var res = new(generated.TemplateOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTemplateOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.TemplateOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntitlementPlanConnection(ctx, sel, v) + return v } -func (ec *executionContext) marshalNEntitlementPlanCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanCreatePayload) graphql.Marshaler { - return ec._EntitlementPlanCreatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNTemplateUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateUpdatePayload(ctx context.Context, sel ast.SelectionSet, v TemplateUpdatePayload) graphql.Marshaler { + return ec._TemplateUpdatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEntitlementPlanCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNTemplateUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *TemplateUpdatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntitlementPlanCreatePayload(ctx, sel, v) + return ec._TemplateUpdatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNEntitlementPlanDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanDeletePayload) graphql.Marshaler { - return ec._EntitlementPlanDeletePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx context.Context, v interface{}) (*generated.TemplateWhereInput, error) { + res, err := ec.unmarshalInputTemplateWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanDeletePayload) graphql.Marshaler { - if v == nil { +func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { + res, err := graphql.UnmarshalTime(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { + res := graphql.MarshalTime(v) + if res == graphql.Null { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - return graphql.Null } - return ec._EntitlementPlanDeletePayload(ctx, sel, v) + return res +} + +func (ec *executionContext) unmarshalNUint2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx context.Context, v interface{}) (customtypes.Uint8, error) { + var res customtypes.Uint8 + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNUint2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx context.Context, sel ast.SelectionSet, v customtypes.Uint8) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNUpdateAPITokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateAPITokenInput(ctx context.Context, v interface{}) (generated.UpdateAPITokenInput, error) { + res, err := ec.unmarshalInputUpdateAPITokenInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNUpdateActionPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateActionPlanInput(ctx context.Context, v interface{}) (generated.UpdateActionPlanInput, error) { + res, err := ec.unmarshalInputUpdateActionPlanInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNUpdateContactInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateContactInput(ctx context.Context, v interface{}) (generated.UpdateContactInput, error) { + res, err := ec.unmarshalInputUpdateContactInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNUpdateControlInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateControlInput(ctx context.Context, v interface{}) (generated.UpdateControlInput, error) { + res, err := ec.unmarshalInputUpdateControlInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNUpdateControlObjectiveInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateControlObjectiveInput(ctx context.Context, v interface{}) (generated.UpdateControlObjectiveInput, error) { + res, err := ec.unmarshalInputUpdateControlObjectiveInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNUpdateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateDocumentDataInput(ctx context.Context, v interface{}) (generated.UpdateDocumentDataInput, error) { + res, err := ec.unmarshalInputUpdateDocumentDataInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNUpdateEntitlementInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntitlementInput(ctx context.Context, v interface{}) (generated.UpdateEntitlementInput, error) { + res, err := ec.unmarshalInputUpdateEntitlementInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNUpdateEntitlementPlanFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntitlementPlanFeatureInput(ctx context.Context, v interface{}) (generated.UpdateEntitlementPlanFeatureInput, error) { + res, err := ec.unmarshalInputUpdateEntitlementPlanFeatureInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNUpdateEntitlementPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntitlementPlanInput(ctx context.Context, v interface{}) (generated.UpdateEntitlementPlanInput, error) { + res, err := ec.unmarshalInputUpdateEntitlementPlanInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNUpdateEntityInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntityInput(ctx context.Context, v interface{}) (generated.UpdateEntityInput, error) { + res, err := ec.unmarshalInputUpdateEntityInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNUpdateEntityTypeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntityTypeInput(ctx context.Context, v interface{}) (generated.UpdateEntityTypeInput, error) { + res, err := ec.unmarshalInputUpdateEntityTypeInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeature2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementPlanFeature) graphql.Marshaler { - return ec._EntitlementPlanFeature(ctx, sel, &v) +func (ec *executionContext) unmarshalNUpdateEventInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEventInput(ctx context.Context, v interface{}) (generated.UpdateEventInput, error) { + res, err := ec.unmarshalInputUpdateEventInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeature) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntitlementPlanFeature(ctx, sel, v) +func (ec *executionContext) unmarshalNUpdateFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateFeatureInput(ctx context.Context, v interface{}) (generated.UpdateFeatureInput, error) { + res, err := ec.unmarshalInputUpdateFeatureInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanFeatureBulkCreatePayload) graphql.Marshaler { - return ec._EntitlementPlanFeatureBulkCreatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNUpdateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupInput(ctx context.Context, v interface{}) (generated.UpdateGroupInput, error) { + res, err := ec.unmarshalInputUpdateGroupInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanFeatureBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntitlementPlanFeatureBulkCreatePayload(ctx, sel, v) +func (ec *executionContext) unmarshalNUpdateGroupMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupMembershipInput(ctx context.Context, v interface{}) (generated.UpdateGroupMembershipInput, error) { + res, err := ec.unmarshalInputUpdateGroupMembershipInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementPlanFeatureConnection) graphql.Marshaler { - return ec._EntitlementPlanFeatureConnection(ctx, sel, &v) +func (ec *executionContext) unmarshalNUpdateGroupSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupSettingInput(ctx context.Context, v interface{}) (generated.UpdateGroupSettingInput, error) { + res, err := ec.unmarshalInputUpdateGroupSettingInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeatureConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntitlementPlanFeatureConnection(ctx, sel, v) +func (ec *executionContext) unmarshalNUpdateHushInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateHushInput(ctx context.Context, v interface{}) (generated.UpdateHushInput, error) { + res, err := ec.unmarshalInputUpdateHushInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanFeatureCreatePayload) graphql.Marshaler { - return ec._EntitlementPlanFeatureCreatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNUpdateIntegrationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateIntegrationInput(ctx context.Context, v interface{}) (generated.UpdateIntegrationInput, error) { + res, err := ec.unmarshalInputUpdateIntegrationInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanFeatureCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntitlementPlanFeatureCreatePayload(ctx, sel, v) +func (ec *executionContext) unmarshalNUpdateInternalPolicyInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateInternalPolicyInput(ctx context.Context, v interface{}) (generated.UpdateInternalPolicyInput, error) { + res, err := ec.unmarshalInputUpdateInternalPolicyInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureDeletePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanFeatureDeletePayload) graphql.Marshaler { - return ec._EntitlementPlanFeatureDeletePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNUpdateInviteInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateInviteInput(ctx context.Context, v interface{}) (generated.UpdateInviteInput, error) { + res, err := ec.unmarshalInputUpdateInviteInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanFeatureDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntitlementPlanFeatureDeletePayload(ctx, sel, v) +func (ec *executionContext) unmarshalNUpdateNarrativeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateNarrativeInput(ctx context.Context, v interface{}) (generated.UpdateNarrativeInput, error) { + res, err := ec.unmarshalInputUpdateNarrativeInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementPlanFeatureHistoryConnection) graphql.Marshaler { - return ec._EntitlementPlanFeatureHistoryConnection(ctx, sel, &v) +func (ec *executionContext) unmarshalNUpdateOauthProviderInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOauthProviderInput(ctx context.Context, v interface{}) (generated.UpdateOauthProviderInput, error) { + res, err := ec.unmarshalInputUpdateOauthProviderInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeatureHistoryConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntitlementPlanFeatureHistoryConnection(ctx, sel, v) +func (ec *executionContext) unmarshalNUpdateOhAuthTooTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOhAuthTooTokenInput(ctx context.Context, v interface{}) (generated.UpdateOhAuthTooTokenInput, error) { + res, err := ec.unmarshalInputUpdateOhAuthTooTokenInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNEntitlementPlanFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) +func (ec *executionContext) unmarshalNUpdateOrgMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrgMembershipInput(ctx context.Context, v interface{}) (generated.UpdateOrgMembershipInput, error) { + res, err := ec.unmarshalInputUpdateOrgMembershipInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v +func (ec *executionContext) unmarshalNUpdateOrganizationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationInput(ctx context.Context, v interface{}) (generated.UpdateOrganizationInput, error) { + res, err := ec.unmarshalInputUpdateOrganizationInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNEntitlementPlanFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanFeatureHistoryWhereInput, error) { - res, err := ec.unmarshalInputEntitlementPlanFeatureHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) unmarshalNUpdateOrganizationSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationSettingInput(ctx context.Context, v interface{}) (generated.UpdateOrganizationSettingInput, error) { + res, err := ec.unmarshalInputUpdateOrganizationSettingInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanFeatureUpdatePayload) graphql.Marshaler { - return ec._EntitlementPlanFeatureUpdatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNUpdatePersonalAccessTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdatePersonalAccessTokenInput(ctx context.Context, v interface{}) (generated.UpdatePersonalAccessTokenInput, error) { + res, err := ec.unmarshalInputUpdatePersonalAccessTokenInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanFeatureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanFeatureUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntitlementPlanFeatureUpdatePayload(ctx, sel, v) +func (ec *executionContext) unmarshalNUpdateProcedureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateProcedureInput(ctx context.Context, v interface{}) (generated.UpdateProcedureInput, error) { + res, err := ec.unmarshalInputUpdateProcedureInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNEntitlementPlanFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanFeatureWhereInput, error) { - res, err := ec.unmarshalInputEntitlementPlanFeatureWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) unmarshalNUpdateRiskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateRiskInput(ctx context.Context, v interface{}) (generated.UpdateRiskInput, error) { + res, err := ec.unmarshalInputUpdateRiskInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntitlementPlanHistoryConnection) graphql.Marshaler { - return ec._EntitlementPlanHistoryConnection(ctx, sel, &v) +func (ec *executionContext) unmarshalNUpdateStandardInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateStandardInput(ctx context.Context, v interface{}) (generated.UpdateStandardInput, error) { + res, err := ec.unmarshalInputUpdateStandardInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanHistoryConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntitlementPlanHistoryConnection(ctx, sel, v) +func (ec *executionContext) unmarshalNUpdateSubcontrolInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateSubcontrolInput(ctx context.Context, v interface{}) (generated.UpdateSubcontrolInput, error) { + res, err := ec.unmarshalInputUpdateSubcontrolInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNEntitlementPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) +func (ec *executionContext) unmarshalNUpdateSubscriberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateSubscriberInput(ctx context.Context, v interface{}) (generated.UpdateSubscriberInput, error) { + res, err := ec.unmarshalInputUpdateSubscriberInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v +func (ec *executionContext) unmarshalNUpdateTFASettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTFASettingInput(ctx context.Context, v interface{}) (generated.UpdateTFASettingInput, error) { + res, err := ec.unmarshalInputUpdateTFASettingInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNEntitlementPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanHistoryWhereInput, error) { - res, err := ec.unmarshalInputEntitlementPlanHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) unmarshalNUpdateTemplateInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTemplateInput(ctx context.Context, v interface{}) (generated.UpdateTemplateInput, error) { + res, err := ec.unmarshalInputUpdateTemplateInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementPlanUpdatePayload) graphql.Marshaler { - return ec._EntitlementPlanUpdatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNUpdateUserInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateUserInput(ctx context.Context, v interface{}) (generated.UpdateUserInput, error) { + res, err := ec.unmarshalInputUpdateUserInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementPlanUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntitlementPlanUpdatePayload(ctx, sel, v) +func (ec *executionContext) unmarshalNUpdateUserSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateUserSettingInput(ctx context.Context, v interface{}) (generated.UpdateUserSettingInput, error) { + res, err := ec.unmarshalInputUpdateUserSettingInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNEntitlementPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanWhereInput, error) { - res, err := ec.unmarshalInputEntitlementPlanWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) unmarshalNUpdateWebhookInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateWebhookInput(ctx context.Context, v interface{}) (generated.UpdateWebhookInput, error) { + res, err := ec.unmarshalInputUpdateWebhookInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EntitlementUpdatePayload) graphql.Marshaler { - return ec._EntitlementUpdatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v interface{}) (graphql.Upload, error) { + res, err := graphql.UnmarshalUpload(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntitlementUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EntitlementUpdatePayload) graphql.Marshaler { - if v == nil { +func (ec *executionContext) marshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v graphql.Upload) graphql.Marshaler { + res := graphql.MarshalUpload(v) + if res == graphql.Null { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - return graphql.Null } - return ec._EntitlementUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNEntitlementWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementWhereInput, error) { - res, err := ec.unmarshalInputEntitlementWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return res } -func (ec *executionContext) marshalNEntity2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx context.Context, sel ast.SelectionSet, v generated.Entity) graphql.Marshaler { - return ec._Entity(ctx, sel, &v) +func (ec *executionContext) marshalNUser2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx context.Context, sel ast.SelectionSet, v generated.User) graphql.Marshaler { + return ec._User(ctx, sel, &v) } -func (ec *executionContext) marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx context.Context, sel ast.SelectionSet, v *generated.Entity) graphql.Marshaler { +func (ec *executionContext) marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx context.Context, sel ast.SelectionSet, v *generated.User) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._Entity(ctx, sel, v) + return ec._User(ctx, sel, v) } -func (ec *executionContext) marshalNEntityBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntityBulkCreatePayload) graphql.Marshaler { - return ec._EntityBulkCreatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNUserAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx context.Context, v interface{}) (enums.AuthProvider, error) { + var res enums.AuthProvider + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntityBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntityBulkCreatePayload(ctx, sel, v) +func (ec *executionContext) marshalNUserAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx context.Context, sel ast.SelectionSet, v enums.AuthProvider) graphql.Marshaler { + return v } -func (ec *executionContext) marshalNEntityConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntityConnection) graphql.Marshaler { - return ec._EntityConnection(ctx, sel, &v) +func (ec *executionContext) marshalNUserConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx context.Context, sel ast.SelectionSet, v generated.UserConnection) graphql.Marshaler { + return ec._UserConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { +func (ec *executionContext) marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx context.Context, sel ast.SelectionSet, v *generated.UserConnection) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntityConnection(ctx, sel, v) + return ec._UserConnection(ctx, sel, v) } -func (ec *executionContext) marshalNEntityCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntityCreatePayload) graphql.Marshaler { - return ec._EntityCreatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNUserCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserCreatePayload(ctx context.Context, sel ast.SelectionSet, v UserCreatePayload) graphql.Marshaler { + return ec._UserCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEntityCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNUserCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserCreatePayload(ctx context.Context, sel ast.SelectionSet, v *UserCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntityCreatePayload(ctx, sel, v) + return ec._UserCreatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNEntityDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityDeletePayload(ctx context.Context, sel ast.SelectionSet, v EntityDeletePayload) graphql.Marshaler { - return ec._EntityDeletePayload(ctx, sel, &v) +func (ec *executionContext) marshalNUserDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserDeletePayload(ctx context.Context, sel ast.SelectionSet, v UserDeletePayload) graphql.Marshaler { + return ec._UserDeletePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEntityDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EntityDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalNUserDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserDeletePayload(ctx context.Context, sel ast.SelectionSet, v *UserDeletePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntityDeletePayload(ctx, sel, v) + return ec._UserDeletePayload(ctx, sel, v) } -func (ec *executionContext) marshalNEntityHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntityHistoryConnection) graphql.Marshaler { - return ec._EntityHistoryConnection(ctx, sel, &v) +func (ec *executionContext) unmarshalNUserHistoryAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx context.Context, v interface{}) (enums.AuthProvider, error) { + var res enums.AuthProvider + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntityHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntityHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalNUserHistoryAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx context.Context, sel ast.SelectionSet, v enums.AuthProvider) graphql.Marshaler { + return v +} + +func (ec *executionContext) marshalNUserHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.UserHistoryConnection) graphql.Marshaler { + return ec._UserHistoryConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNUserHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.UserHistoryConnection) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntityHistoryConnection(ctx, sel, v) + return ec._UserHistoryConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { +func (ec *executionContext) unmarshalNUserHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { var res history.OpType err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalNUserHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { return v } -func (ec *executionContext) unmarshalNEntityHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryOrderField(ctx context.Context, v interface{}) (*generated.EntityHistoryOrderField, error) { - var res = new(generated.EntityHistoryOrderField) +func (ec *executionContext) unmarshalNUserHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryOrderField(ctx context.Context, v interface{}) (*generated.UserHistoryOrderField, error) { + var res = new(generated.UserHistoryOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntityHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.EntityHistoryOrderField) graphql.Marshaler { +func (ec *executionContext) marshalNUserHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.UserHistoryOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -244843,18 +342549,28 @@ func (ec *executionContext) marshalNEntityHistoryOrderField2ᚖgithubᚗcomᚋth return v } -func (ec *executionContext) unmarshalNEntityHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntityHistoryWhereInput, error) { - res, err := ec.unmarshalInputEntityHistoryWhereInput(ctx, v) +func (ec *executionContext) unmarshalNUserHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { + var res enums.Role + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNUserHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNUserHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryWhereInput(ctx context.Context, v interface{}) (*generated.UserHistoryWhereInput, error) { + res, err := ec.unmarshalInputUserHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNEntityOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderField(ctx context.Context, v interface{}) (*generated.EntityOrderField, error) { - var res = new(generated.EntityOrderField) +func (ec *executionContext) unmarshalNUserOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrderField(ctx context.Context, v interface{}) (*generated.UserOrderField, error) { + var res = new(generated.UserOrderField) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntityOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.EntityOrderField) graphql.Marshaler { +func (ec *executionContext) marshalNUserOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.UserOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") @@ -244864,1108 +342580,1462 @@ func (ec *executionContext) marshalNEntityOrderField2ᚖgithubᚗcomᚋtheopenla return v } -func (ec *executionContext) marshalNEntityType2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx context.Context, sel ast.SelectionSet, v generated.EntityType) graphql.Marshaler { - return ec._EntityType(ctx, sel, &v) +func (ec *executionContext) unmarshalNUserRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { + var res enums.Role + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx context.Context, sel ast.SelectionSet, v *generated.EntityType) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntityType(ctx, sel, v) +func (ec *executionContext) marshalNUserRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { + return v } -func (ec *executionContext) marshalNEntityTypeBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntityTypeBulkCreatePayload) graphql.Marshaler { - return ec._EntityTypeBulkCreatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNUserSetting2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx context.Context, sel ast.SelectionSet, v generated.UserSetting) graphql.Marshaler { + return ec._UserSetting(ctx, sel, &v) } -func (ec *executionContext) marshalNEntityTypeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityTypeBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx context.Context, sel ast.SelectionSet, v *generated.UserSetting) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntityTypeBulkCreatePayload(ctx, sel, v) + return ec._UserSetting(ctx, sel, v) } -func (ec *executionContext) marshalNEntityTypeConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntityTypeConnection) graphql.Marshaler { - return ec._EntityTypeConnection(ctx, sel, &v) +func (ec *executionContext) marshalNUserSettingBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v UserSettingBulkCreatePayload) graphql.Marshaler { + return ec._UserSettingBulkCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEntityTypeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeConnection) graphql.Marshaler { +func (ec *executionContext) marshalNUserSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *UserSettingBulkCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntityTypeConnection(ctx, sel, v) + return ec._UserSettingBulkCreatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNEntityTypeCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntityTypeCreatePayload) graphql.Marshaler { - return ec._EntityTypeCreatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNUserSettingConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingConnection(ctx context.Context, sel ast.SelectionSet, v generated.UserSettingConnection) graphql.Marshaler { + return ec._UserSettingConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNEntityTypeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityTypeCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNUserSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingConnection(ctx context.Context, sel ast.SelectionSet, v *generated.UserSettingConnection) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntityTypeCreatePayload(ctx, sel, v) + return ec._UserSettingConnection(ctx, sel, v) } -func (ec *executionContext) marshalNEntityTypeDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeDeletePayload(ctx context.Context, sel ast.SelectionSet, v EntityTypeDeletePayload) graphql.Marshaler { - return ec._EntityTypeDeletePayload(ctx, sel, &v) +func (ec *executionContext) marshalNUserSettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v UserSettingCreatePayload) graphql.Marshaler { + return ec._UserSettingCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEntityTypeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EntityTypeDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalNUserSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *UserSettingCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntityTypeDeletePayload(ctx, sel, v) + return ec._UserSettingCreatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNEntityTypeHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntityTypeHistoryConnection) graphql.Marshaler { - return ec._EntityTypeHistoryConnection(ctx, sel, &v) +func (ec *executionContext) marshalNUserSettingHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.UserSettingHistoryConnection) graphql.Marshaler { + return ec._UserSettingHistoryConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNEntityTypeHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalNUserSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.UserSettingHistoryConnection) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntityTypeHistoryConnection(ctx, sel, v) + return ec._UserSettingHistoryConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { +func (ec *executionContext) unmarshalNUserSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { var res history.OpType err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalNUserSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { return v } -func (ec *executionContext) unmarshalNEntityTypeHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryOrderField(ctx context.Context, v interface{}) (*generated.EntityTypeHistoryOrderField, error) { - var res = new(generated.EntityTypeHistoryOrderField) +func (ec *executionContext) unmarshalNUserSettingHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (enums.UserStatus, error) { + var res enums.UserStatus err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntityTypeHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeHistoryOrderField) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } +func (ec *executionContext) marshalNUserSettingHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, sel ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { return v } -func (ec *executionContext) unmarshalNEntityTypeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntityTypeHistoryWhereInput, error) { - res, err := ec.unmarshalInputEntityTypeHistoryWhereInput(ctx, v) +func (ec *executionContext) unmarshalNUserSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryWhereInput(ctx context.Context, v interface{}) (*generated.UserSettingHistoryWhereInput, error) { + res, err := ec.unmarshalInputUserSettingHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNEntityTypeOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrderField(ctx context.Context, v interface{}) (*generated.EntityTypeOrderField, error) { - var res = new(generated.EntityTypeOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalNUserSettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v UserSettingUpdatePayload) graphql.Marshaler { + return ec._UserSettingUpdatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEntityTypeOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeOrderField) graphql.Marshaler { +func (ec *executionContext) marshalNUserSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *UserSettingUpdatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return v + return ec._UserSettingUpdatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNEntityTypeUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EntityTypeUpdatePayload) graphql.Marshaler { - return ec._EntityTypeUpdatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNUserSettingUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (enums.UserStatus, error) { + var res enums.UserStatus + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntityTypeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityTypeUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntityTypeUpdatePayload(ctx, sel, v) +func (ec *executionContext) marshalNUserSettingUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, sel ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { + return v } -func (ec *executionContext) unmarshalNEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx context.Context, v interface{}) (*generated.EntityTypeWhereInput, error) { - res, err := ec.unmarshalInputEntityTypeWhereInput(ctx, v) +func (ec *executionContext) unmarshalNUserSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInput(ctx context.Context, v interface{}) (*generated.UserSettingWhereInput, error) { + res, err := ec.unmarshalInputUserSettingWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntityUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EntityUpdatePayload) graphql.Marshaler { - return ec._EntityUpdatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNUserUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserUpdatePayload(ctx context.Context, sel ast.SelectionSet, v UserUpdatePayload) graphql.Marshaler { + return ec._UserUpdatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEntityUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityUpdatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNUserUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *UserUpdatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EntityUpdatePayload(ctx, sel, v) + return ec._UserUpdatePayload(ctx, sel, v) } -func (ec *executionContext) unmarshalNEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx context.Context, v interface{}) (*generated.EntityWhereInput, error) { - res, err := ec.unmarshalInputEntityWhereInput(ctx, v) +func (ec *executionContext) unmarshalNUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx context.Context, v interface{}) (*generated.UserWhereInput, error) { + res, err := ec.unmarshalInputUserWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEvent2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx context.Context, sel ast.SelectionSet, v generated.Event) graphql.Marshaler { - return ec._Event(ctx, sel, &v) +func (ec *executionContext) marshalNWebhook2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhook(ctx context.Context, sel ast.SelectionSet, v generated.Webhook) graphql.Marshaler { + return ec._Webhook(ctx, sel, &v) } -func (ec *executionContext) marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx context.Context, sel ast.SelectionSet, v *generated.Event) graphql.Marshaler { +func (ec *executionContext) marshalNWebhook2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhook(ctx context.Context, sel ast.SelectionSet, v *generated.Webhook) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._Event(ctx, sel, v) + return ec._Webhook(ctx, sel, v) } -func (ec *executionContext) marshalNEventBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EventBulkCreatePayload) graphql.Marshaler { - return ec._EventBulkCreatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNWebhookBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v WebhookBulkCreatePayload) graphql.Marshaler { + return ec._WebhookBulkCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEventBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EventBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNWebhookBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *WebhookBulkCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EventBulkCreatePayload(ctx, sel, v) + return ec._WebhookBulkCreatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNEventConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx context.Context, sel ast.SelectionSet, v generated.EventConnection) graphql.Marshaler { - return ec._EventConnection(ctx, sel, &v) +func (ec *executionContext) marshalNWebhookConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookConnection(ctx context.Context, sel ast.SelectionSet, v generated.WebhookConnection) graphql.Marshaler { + return ec._WebhookConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { +func (ec *executionContext) marshalNWebhookConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookConnection(ctx context.Context, sel ast.SelectionSet, v *generated.WebhookConnection) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EventConnection(ctx, sel, v) + return ec._WebhookConnection(ctx, sel, v) } -func (ec *executionContext) marshalNEventCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventCreatePayload(ctx context.Context, sel ast.SelectionSet, v EventCreatePayload) graphql.Marshaler { - return ec._EventCreatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNWebhookCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookCreatePayload(ctx context.Context, sel ast.SelectionSet, v WebhookCreatePayload) graphql.Marshaler { + return ec._WebhookCreatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEventCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EventCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNWebhookCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookCreatePayload(ctx context.Context, sel ast.SelectionSet, v *WebhookCreatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EventCreatePayload(ctx, sel, v) + return ec._WebhookCreatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNEventDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventDeletePayload(ctx context.Context, sel ast.SelectionSet, v EventDeletePayload) graphql.Marshaler { - return ec._EventDeletePayload(ctx, sel, &v) +func (ec *executionContext) marshalNWebhookDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookDeletePayload(ctx context.Context, sel ast.SelectionSet, v WebhookDeletePayload) graphql.Marshaler { + return ec._WebhookDeletePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNEventDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EventDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalNWebhookDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookDeletePayload(ctx context.Context, sel ast.SelectionSet, v *WebhookDeletePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EventDeletePayload(ctx, sel, v) + return ec._WebhookDeletePayload(ctx, sel, v) } -func (ec *executionContext) marshalNEventHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EventHistoryConnection) graphql.Marshaler { - return ec._EventHistoryConnection(ctx, sel, &v) +func (ec *executionContext) marshalNWebhookHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.WebhookHistoryConnection) graphql.Marshaler { + return ec._WebhookHistoryConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNEventHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.EventHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalNWebhookHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.WebhookHistoryConnection) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EventHistoryConnection(ctx, sel, v) + return ec._WebhookHistoryConnection(ctx, sel, v) } -func (ec *executionContext) unmarshalNEventHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { +func (ec *executionContext) unmarshalNWebhookHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { var res history.OpType err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEventHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalNWebhookHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { return v } -func (ec *executionContext) unmarshalNEventHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EventHistoryWhereInput, error) { - res, err := ec.unmarshalInputEventHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNEventUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EventUpdatePayload) graphql.Marshaler { - return ec._EventUpdatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNWebhookHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryOrderField(ctx context.Context, v interface{}) (*generated.WebhookHistoryOrderField, error) { + var res = new(generated.WebhookHistoryOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEventUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EventUpdatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNWebhookHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.WebhookHistoryOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._EventUpdatePayload(ctx, sel, v) + return v } -func (ec *executionContext) unmarshalNEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx context.Context, v interface{}) (*generated.EventWhereInput, error) { - res, err := ec.unmarshalInputEventWhereInput(ctx, v) +func (ec *executionContext) unmarshalNWebhookHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryWhereInput(ctx context.Context, v interface{}) (*generated.WebhookHistoryWhereInput, error) { + res, err := ec.unmarshalInputWebhookHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNFeature2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx context.Context, sel ast.SelectionSet, v generated.Feature) graphql.Marshaler { - return ec._Feature(ctx, sel, &v) +func (ec *executionContext) unmarshalNWebhookOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookOrderField(ctx context.Context, v interface{}) (*generated.WebhookOrderField, error) { + var res = new(generated.WebhookOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx context.Context, sel ast.SelectionSet, v *generated.Feature) graphql.Marshaler { +func (ec *executionContext) marshalNWebhookOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.WebhookOrderField) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._Feature(ctx, sel, v) + return v } -func (ec *executionContext) marshalNFeatureBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v FeatureBulkCreatePayload) graphql.Marshaler { - return ec._FeatureBulkCreatePayload(ctx, sel, &v) +func (ec *executionContext) marshalNWebhookUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookUpdatePayload(ctx context.Context, sel ast.SelectionSet, v WebhookUpdatePayload) graphql.Marshaler { + return ec._WebhookUpdatePayload(ctx, sel, &v) } -func (ec *executionContext) marshalNFeatureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *FeatureBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNWebhookUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *WebhookUpdatePayload) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._FeatureBulkCreatePayload(ctx, sel, v) + return ec._WebhookUpdatePayload(ctx, sel, v) } -func (ec *executionContext) marshalNFeatureConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureConnection(ctx context.Context, sel ast.SelectionSet, v generated.FeatureConnection) graphql.Marshaler { - return ec._FeatureConnection(ctx, sel, &v) +func (ec *executionContext) unmarshalNWebhookWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInput(ctx context.Context, v interface{}) (*generated.WebhookWhereInput, error) { + res, err := ec.unmarshalInputWebhookWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNFeatureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureConnection(ctx context.Context, sel ast.SelectionSet, v *generated.FeatureConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._FeatureConnection(ctx, sel, v) +func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { + return ec.___Directive(ctx, sel, &v) } -func (ec *executionContext) marshalNFeatureCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureCreatePayload(ctx context.Context, sel ast.SelectionSet, v FeatureCreatePayload) graphql.Marshaler { - return ec._FeatureCreatePayload(ctx, sel, &v) -} +func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNFeatureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureCreatePayload(ctx context.Context, sel ast.SelectionSet, v *FeatureCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._FeatureCreatePayload(ctx, sel, v) + + return ret } -func (ec *executionContext) marshalNFeatureDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureDeletePayload(ctx context.Context, sel ast.SelectionSet, v FeatureDeletePayload) graphql.Marshaler { - return ec._FeatureDeletePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNFeatureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureDeletePayload(ctx context.Context, sel ast.SelectionSet, v *FeatureDeletePayload) graphql.Marshaler { - if v == nil { +func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - return graphql.Null } - return ec._FeatureDeletePayload(ctx, sel, v) + return res } -func (ec *executionContext) marshalNFeatureHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.FeatureHistoryConnection) graphql.Marshaler { - return ec._FeatureHistoryConnection(ctx, sel, &v) +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]string, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalNFeatureHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.FeatureHistoryConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") +func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], } - return graphql.Null + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + } - return ec._FeatureHistoryConnection(ctx, sel, v) -} + wg.Wait() -func (ec *executionContext) unmarshalNFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } -func (ec *executionContext) marshalNFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v + return ret } -func (ec *executionContext) unmarshalNFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInput(ctx context.Context, v interface{}) (*generated.FeatureHistoryWhereInput, error) { - res, err := ec.unmarshalInputFeatureHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { + return ec.___EnumValue(ctx, sel, &v) } -func (ec *executionContext) marshalNFeatureUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v FeatureUpdatePayload) graphql.Marshaler { - return ec._FeatureUpdatePayload(ctx, sel, &v) +func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { + return ec.___Field(ctx, sel, &v) } -func (ec *executionContext) marshalNFeatureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *FeatureUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._FeatureUpdatePayload(ctx, sel, v) +func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { + return ec.___InputValue(ctx, sel, &v) } -func (ec *executionContext) unmarshalNFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInput(ctx context.Context, v interface{}) (*generated.FeatureWhereInput, error) { - res, err := ec.unmarshalInputFeatureWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} +func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNFile2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx context.Context, sel ast.SelectionSet, v generated.File) graphql.Marshaler { - return ec._File(ctx, sel, &v) -} + } + wg.Wait() -func (ec *executionContext) marshalNFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx context.Context, sel ast.SelectionSet, v *generated.File) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._File(ctx, sel, v) + + return ret } -func (ec *executionContext) marshalNFileConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx context.Context, sel ast.SelectionSet, v generated.FileConnection) graphql.Marshaler { - return ec._FileConnection(ctx, sel, &v) +func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { + return ec.___Type(ctx, sel, &v) } -func (ec *executionContext) marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx context.Context, sel ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null +func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - return ec._FileConnection(ctx, sel, v) -} + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNFileDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileDeletePayload(ctx context.Context, sel ast.SelectionSet, v FileDeletePayload) graphql.Marshaler { - return ec._FileDeletePayload(ctx, sel, &v) -} + } + wg.Wait() -func (ec *executionContext) marshalNFileDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileDeletePayload(ctx context.Context, sel ast.SelectionSet, v *FileDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._FileDeletePayload(ctx, sel, v) -} -func (ec *executionContext) marshalNFileHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.FileHistoryConnection) graphql.Marshaler { - return ec._FileHistoryConnection(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNFileHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.FileHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { if v == nil { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } return graphql.Null } - return ec._FileHistoryConnection(ctx, sel, v) + return ec.___Type(ctx, sel, v) } -func (ec *executionContext) unmarshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) +func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNFileHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInput(ctx context.Context, v interface{}) (*generated.FileHistoryWhereInput, error) { - res, err := ec.unmarshalInputFileHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx context.Context, v interface{}) (*generated.FileWhereInput, error) { - res, err := ec.unmarshalInputFileWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNGroup2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx context.Context, sel ast.SelectionSet, v generated.Group) graphql.Marshaler { - return ec._Group(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx context.Context, sel ast.SelectionSet, v *generated.Group) graphql.Marshaler { - if v == nil { +func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { ec.Errorf(ctx, "the requested element is null which the schema does not allow") } - return graphql.Null } - return ec._Group(ctx, sel, v) -} - -func (ec *executionContext) marshalNGroupBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupBulkCreatePayload) graphql.Marshaler { - return ec._GroupBulkCreatePayload(ctx, sel, &v) + return res } -func (ec *executionContext) marshalNGroupBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.APIToken) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupBulkCreatePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNGroupConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupConnection) graphql.Marshaler { - return ec._GroupConnection(ctx, sel, &v) -} + } + wg.Wait() -func (ec *executionContext) marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx context.Context, sel ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._GroupConnection(ctx, sel, v) -} -func (ec *executionContext) marshalNGroupCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupCreatePayload) graphql.Marshaler { - return ec._GroupCreatePayload(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNGroupCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx context.Context, sel ast.SelectionSet, v *generated.APIToken) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNGroupDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupDeletePayload(ctx context.Context, sel ast.SelectionSet, v GroupDeletePayload) graphql.Marshaler { - return ec._GroupDeletePayload(ctx, sel, &v) + return ec._APIToken(ctx, sel, v) } -func (ec *executionContext) marshalNGroupDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupDeletePayload(ctx context.Context, sel ast.SelectionSet, v *GroupDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalOAPITokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.APITokenEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupDeletePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOAPITokenEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNGroupHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupHistoryConnection) graphql.Marshaler { - return ec._GroupHistoryConnection(ctx, sel, &v) + } + wg.Wait() + + return ret } -func (ec *executionContext) marshalNGroupHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.GroupHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalOAPITokenEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenEdge(ctx context.Context, sel ast.SelectionSet, v *generated.APITokenEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupHistoryConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v + return ec._APITokenEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalNGroupHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryOrderField(ctx context.Context, v interface{}) (*generated.GroupHistoryOrderField, error) { - var res = new(generated.GroupHistoryOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalOAPITokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenSearchResult(ctx context.Context, sel ast.SelectionSet, v *APITokenSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._APITokenSearchResult(ctx, sel, v) } -func (ec *executionContext) marshalNGroupHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.GroupHistoryOrderField) graphql.Marshaler { +func (ec *executionContext) unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.APITokenWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.APITokenWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return v + return res, nil } -func (ec *executionContext) unmarshalNGroupHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInput(ctx context.Context, v interface{}) (*generated.GroupHistoryWhereInput, error) { - res, err := ec.unmarshalInputGroupHistoryWhereInput(ctx, v) +func (ec *executionContext) unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx context.Context, v interface{}) (*generated.APITokenWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputAPITokenWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNGroupMembership2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx context.Context, sel ast.SelectionSet, v generated.GroupMembership) graphql.Marshaler { - return ec._GroupMembership(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembership) graphql.Marshaler { +func (ec *executionContext) marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.ActionPlan) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupMembership(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNGroupMembershipBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupMembershipBulkCreatePayload) graphql.Marshaler { - return ec._GroupMembershipBulkCreatePayload(ctx, sel, &v) -} + } + wg.Wait() -func (ec *executionContext) marshalNGroupMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupMembershipBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._GroupMembershipBulkCreatePayload(ctx, sel, v) -} -func (ec *executionContext) marshalNGroupMembershipConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupMembershipConnection) graphql.Marshaler { - return ec._GroupMembershipConnection(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNGroupMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembershipConnection) graphql.Marshaler { +func (ec *executionContext) marshalOActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlan) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupMembershipConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNGroupMembershipCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupMembershipCreatePayload) graphql.Marshaler { - return ec._GroupMembershipCreatePayload(ctx, sel, &v) + return ec._ActionPlan(ctx, sel, v) } -func (ec *executionContext) marshalNGroupMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupMembershipCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOActionPlanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ActionPlanEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupMembershipCreatePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOActionPlanEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNGroupMembershipDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v GroupMembershipDeletePayload) graphql.Marshaler { - return ec._GroupMembershipDeletePayload(ctx, sel, &v) + } + wg.Wait() + + return ret } -func (ec *executionContext) marshalNGroupMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v *GroupMembershipDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalOActionPlanEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlanEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupMembershipDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNGroupMembershipHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupMembershipHistoryConnection) graphql.Marshaler { - return ec._GroupMembershipHistoryConnection(ctx, sel, &v) + return ec._ActionPlanEdge(ctx, sel, v) } -func (ec *executionContext) marshalNGroupMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembershipHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalOActionPlanHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistory(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlanHistory) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupMembershipHistoryConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) + return ec._ActionPlanHistory(ctx, sel, v) } -func (ec *executionContext) marshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v -} +func (ec *executionContext) marshalOActionPlanHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ActionPlanHistoryEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOActionPlanHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) unmarshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { - var res enums.Role - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} + } + wg.Wait() -func (ec *executionContext) marshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { - return v + return ret } -func (ec *executionContext) unmarshalNGroupMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInput(ctx context.Context, v interface{}) (*generated.GroupMembershipHistoryWhereInput, error) { - res, err := ec.unmarshalInputGroupMembershipHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalOActionPlanHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlanHistoryEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ActionPlanHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalNGroupMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { - var res enums.Role - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) unmarshalOActionPlanHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNActionPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalNGroupMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { - return v -} +func (ec *executionContext) marshalOActionPlanHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNActionPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNGroupMembershipUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v GroupMembershipUpdatePayload) graphql.Marshaler { - return ec._GroupMembershipUpdatePayload(ctx, sel, &v) -} + } + wg.Wait() -func (ec *executionContext) marshalNGroupMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupMembershipUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._GroupMembershipUpdatePayload(ctx, sel, v) -} -func (ec *executionContext) unmarshalNGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx context.Context, v interface{}) (*generated.GroupMembershipWhereInput, error) { - res, err := ec.unmarshalInputGroupMembershipWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ret } -func (ec *executionContext) unmarshalNGroupOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderField(ctx context.Context, v interface{}) (*generated.GroupOrderField, error) { - var res = new(generated.GroupOrderField) +func (ec *executionContext) unmarshalOActionPlanHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { + if v == nil { + return nil, nil + } + var res = new(history.OpType) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNGroupOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.GroupOrderField) graphql.Marshaler { +func (ec *executionContext) marshalOActionPlanHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } return v } -func (ec *executionContext) marshalNGroupSetting2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx context.Context, sel ast.SelectionSet, v generated.GroupSetting) graphql.Marshaler { - return ec._GroupSetting(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSetting) graphql.Marshaler { +func (ec *executionContext) unmarshalOActionPlanHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ActionPlanHistoryWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.ActionPlanHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNActionPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._GroupSetting(ctx, sel, v) -} - -func (ec *executionContext) marshalNGroupSettingBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupSettingBulkCreatePayload) graphql.Marshaler { - return ec._GroupSettingBulkCreatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNGroupSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupSettingBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOActionPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ActionPlanHistoryWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null + return nil, nil } - return ec._GroupSettingBulkCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNGroupSettingConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupSettingConnection) graphql.Marshaler { - return ec._GroupSettingConnection(ctx, sel, &v) + res, err := ec.unmarshalInputActionPlanHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNGroupSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingConnection(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSettingConnection) graphql.Marshaler { +func (ec *executionContext) marshalOActionPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanSearchResult(ctx context.Context, sel ast.SelectionSet, v *ActionPlanSearchResult) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupSettingConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNGroupSettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupSettingCreatePayload) graphql.Marshaler { - return ec._GroupSettingCreatePayload(ctx, sel, &v) + return ec._ActionPlanSearchResult(ctx, sel, v) } -func (ec *executionContext) marshalNGroupSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupSettingCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOActionPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ActionPlanWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.ActionPlanWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._GroupSettingCreatePayload(ctx, sel, v) + return res, nil } -func (ec *executionContext) marshalNGroupSettingDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v GroupSettingDeletePayload) graphql.Marshaler { - return ec._GroupSettingDeletePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx context.Context, v interface{}) (*generated.ActionPlanWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputActionPlanWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNGroupSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v *GroupSettingDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalOAuditLog2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLog(ctx context.Context, sel ast.SelectionSet, v *AuditLog) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupSettingDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNGroupSettingHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupSettingHistoryConnection) graphql.Marshaler { - return ec._GroupSettingHistoryConnection(ctx, sel, &v) + return ec._AuditLog(ctx, sel, v) } -func (ec *executionContext) marshalNGroupSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSettingHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalOAuditLogEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogEdge(ctx context.Context, sel ast.SelectionSet, v []*AuditLogEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupSettingHistoryConnection(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOAuditLogEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) unmarshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, v interface{}) (enums.JoinPolicy, error) { - var res enums.JoinPolicy - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} + } + wg.Wait() -func (ec *executionContext) marshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, sel ast.SelectionSet, v enums.JoinPolicy) graphql.Marshaler { - return v + return ret } -func (ec *executionContext) unmarshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalOAuditLogEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogEdge(ctx context.Context, sel ast.SelectionSet, v *AuditLogEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AuditLogEdge(ctx, sel, v) } -func (ec *executionContext) marshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v +func (ec *executionContext) unmarshalOAuditLogWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogWhereInput(ctx context.Context, v interface{}) (*AuditLogWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputAuditLogWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, v interface{}) (enums.Visibility, error) { - var res enums.Visibility - err := res.UnmarshalGQL(v) +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { + res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, sel ast.SelectionSet, v enums.Visibility) graphql.Marshaler { - return v +func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { + res := graphql.MarshalBoolean(v) + return res } -func (ec *executionContext) unmarshalNGroupSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInput(ctx context.Context, v interface{}) (*generated.GroupSettingHistoryWhereInput, error) { - res, err := ec.unmarshalInputGroupSettingHistoryWhereInput(ctx, v) +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalBoolean(v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNGroupSettingJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, v interface{}) (enums.JoinPolicy, error) { - var res enums.JoinPolicy - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNGroupSettingJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, sel ast.SelectionSet, v enums.JoinPolicy) graphql.Marshaler { - return v -} - -func (ec *executionContext) marshalNGroupSettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v GroupSettingUpdatePayload) graphql.Marshaler { - return ec._GroupSettingUpdatePayload(ctx, sel, &v) +func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalBoolean(*v) + return res } -func (ec *executionContext) marshalNGroupSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupSettingUpdatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Contact) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupSettingUpdatePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) unmarshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, v interface{}) (enums.Visibility, error) { - var res enums.Visibility - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} + } + wg.Wait() -func (ec *executionContext) marshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, sel ast.SelectionSet, v enums.Visibility) graphql.Marshaler { - return v -} + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } -func (ec *executionContext) unmarshalNGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx context.Context, v interface{}) (*generated.GroupSettingWhereInput, error) { - res, err := ec.unmarshalInputGroupSettingWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ret } -func (ec *executionContext) marshalNGroupUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupUpdatePayload(ctx context.Context, sel ast.SelectionSet, v GroupUpdatePayload) graphql.Marshaler { - return ec._GroupUpdatePayload(ctx, sel, &v) +func (ec *executionContext) marshalOContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx context.Context, sel ast.SelectionSet, v *generated.Contact) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Contact(ctx, sel, v) } -func (ec *executionContext) marshalNGroupUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupUpdatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOContactEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ContactEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._GroupUpdatePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOContactEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) unmarshalNGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx context.Context, v interface{}) (*generated.GroupWhereInput, error) { - res, err := ec.unmarshalInputGroupWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} + } + wg.Wait() -func (ec *executionContext) marshalNHush2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx context.Context, sel ast.SelectionSet, v generated.Hush) graphql.Marshaler { - return ec._Hush(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx context.Context, sel ast.SelectionSet, v *generated.Hush) graphql.Marshaler { +func (ec *executionContext) marshalOContactEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ContactEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._Hush(ctx, sel, v) -} - -func (ec *executionContext) marshalNHushBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v HushBulkCreatePayload) graphql.Marshaler { - return ec._HushBulkCreatePayload(ctx, sel, &v) + return ec._ContactEdge(ctx, sel, v) } -func (ec *executionContext) marshalNHushBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *HushBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOContactHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistory(ctx context.Context, sel ast.SelectionSet, v *generated.ContactHistory) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._HushBulkCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNHushConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx context.Context, sel ast.SelectionSet, v generated.HushConnection) graphql.Marshaler { - return ec._HushConnection(ctx, sel, &v) + return ec._ContactHistory(ctx, sel, v) } -func (ec *executionContext) marshalNHushConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx context.Context, sel ast.SelectionSet, v *generated.HushConnection) graphql.Marshaler { +func (ec *executionContext) marshalOContactHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ContactHistoryEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._HushConnection(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOContactHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNHushCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushCreatePayload(ctx context.Context, sel ast.SelectionSet, v HushCreatePayload) graphql.Marshaler { - return ec._HushCreatePayload(ctx, sel, &v) + } + wg.Wait() + + return ret } -func (ec *executionContext) marshalNHushCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushCreatePayload(ctx context.Context, sel ast.SelectionSet, v *HushCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOContactHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ContactHistoryEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._HushCreatePayload(ctx, sel, v) + return ec._ContactHistoryEdge(ctx, sel, v) } -func (ec *executionContext) marshalNHushDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushDeletePayload(ctx context.Context, sel ast.SelectionSet, v HushDeletePayload) graphql.Marshaler { - return ec._HushDeletePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalOContactHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalNHushDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushDeletePayload(ctx context.Context, sel ast.SelectionSet, v *HushDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalOContactHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._HushDeletePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNHushHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.HushHistoryConnection) graphql.Marshaler { - return ec._HushHistoryConnection(ctx, sel, &v) -} + } + wg.Wait() -func (ec *executionContext) marshalNHushHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.HushHistoryConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._HushHistoryConnection(ctx, sel, v) + + return ret } -func (ec *executionContext) unmarshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType +func (ec *executionContext) unmarshalOContactHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOContactHistoryOpType2ᚖ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) unmarshalNHushHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryOrderField(ctx context.Context, v interface{}) (*generated.HushHistoryOrderField, error) { - var res = new(generated.HushHistoryOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) unmarshalOContactHistoryUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx context.Context, v interface{}) ([]enums.UserStatus, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]enums.UserStatus, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalNHushHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.HushHistoryOrderField) graphql.Marshaler { +func (ec *executionContext) marshalOContactHistoryUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.UserStatus) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return v -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) unmarshalNHushHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInput(ctx context.Context, v interface{}) (*generated.HushHistoryWhereInput, error) { - res, err := ec.unmarshalInputHushHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret } -func (ec *executionContext) unmarshalNHushOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrderField(ctx context.Context, v interface{}) (*generated.HushOrderField, error) { - var res = new(generated.HushOrderField) +func (ec *executionContext) unmarshalOContactHistoryUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (*enums.UserStatus, error) { + if v == nil { + return nil, nil + } + var res = new(enums.UserStatus) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNHushOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.HushOrderField) graphql.Marshaler { +func (ec *executionContext) marshalOContactHistoryUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, sel ast.SelectionSet, v *enums.UserStatus) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } return v } -func (ec *executionContext) marshalNHushUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushUpdatePayload(ctx context.Context, sel ast.SelectionSet, v HushUpdatePayload) graphql.Marshaler { - return ec._HushUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNHushUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *HushUpdatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOContactHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ContactHistoryWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.ContactHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNContactHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._HushUpdatePayload(ctx, sel, v) + return res, nil } -func (ec *executionContext) unmarshalNHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx context.Context, v interface{}) (*generated.HushWhereInput, error) { - res, err := ec.unmarshalInputHushWhereInput(ctx, v) +func (ec *executionContext) unmarshalOContactHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ContactHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputContactHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } +func (ec *executionContext) marshalOContactSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactSearchResult(ctx context.Context, sel ast.SelectionSet, v *ContactSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null } - return res + return ec._ContactSearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalNID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOContactUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx context.Context, v interface{}) ([]enums.UserStatus, error) { + if v == nil { + return nil, nil + } var vSlice []interface{} if v != nil { vSlice = graphql.CoerceList(v) } var err error - res := make([]string, len(vSlice)) + res := make([]enums.UserStatus, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNID2string(ctx, vSlice[i]) + res[i], err = ec.unmarshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, vSlice[i]) if err != nil { return nil, err } @@ -245973,11 +344043,43 @@ func (ec *executionContext) unmarshalNID2ᚕstringᚄ(ctx context.Context, v int return res, nil } -func (ec *executionContext) marshalNID2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { +func (ec *executionContext) marshalOContactUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.UserStatus) graphql.Marshaler { + if v == nil { + return graphql.Null + } ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } for i := range v { - ret[i] = ec.marshalNID2string(ctx, sel, v[i]) + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + } + wg.Wait() for _, e := range ret { if e == graphql.Null { @@ -245988,312 +344090,322 @@ func (ec *executionContext) marshalNID2ᚕstringᚄ(ctx context.Context, sel ast return ret } -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { - res, err := graphql.UnmarshalInt(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { - res := graphql.MarshalInt(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } +func (ec *executionContext) unmarshalOContactUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (*enums.UserStatus, error) { + if v == nil { + return nil, nil } - return res -} - -func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v interface{}) (int64, error) { - res, err := graphql.UnmarshalInt64(v) + var res = new(enums.UserStatus) + err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler { - res := graphql.MarshalInt64(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNIntegration2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx context.Context, sel ast.SelectionSet, v generated.Integration) graphql.Marshaler { - return ec._Integration(ctx, sel, &v) -} - -func (ec *executionContext) marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx context.Context, sel ast.SelectionSet, v *generated.Integration) graphql.Marshaler { +func (ec *executionContext) marshalOContactUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, sel ast.SelectionSet, v *enums.UserStatus) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._Integration(ctx, sel, v) -} - -func (ec *executionContext) marshalNIntegrationBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v IntegrationBulkCreatePayload) graphql.Marshaler { - return ec._IntegrationBulkCreatePayload(ctx, sel, &v) + return v } -func (ec *executionContext) marshalNIntegrationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *IntegrationBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOContactWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ContactWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.ContactWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._IntegrationBulkCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNIntegrationConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx context.Context, sel ast.SelectionSet, v generated.IntegrationConnection) graphql.Marshaler { - return ec._IntegrationConnection(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationConnection) graphql.Marshaler { +func (ec *executionContext) unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx context.Context, v interface{}) (*generated.ContactWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null + return nil, nil } - return ec._IntegrationConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNIntegrationCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationCreatePayload(ctx context.Context, sel ast.SelectionSet, v IntegrationCreatePayload) graphql.Marshaler { - return ec._IntegrationCreatePayload(ctx, sel, &v) + res, err := ec.unmarshalInputContactWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNIntegrationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationCreatePayload(ctx context.Context, sel ast.SelectionSet, v *IntegrationCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Control) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._IntegrationCreatePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNIntegrationDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationDeletePayload(ctx context.Context, sel ast.SelectionSet, v IntegrationDeletePayload) graphql.Marshaler { - return ec._IntegrationDeletePayload(ctx, sel, &v) -} + } + wg.Wait() -func (ec *executionContext) marshalNIntegrationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationDeletePayload(ctx context.Context, sel ast.SelectionSet, v *IntegrationDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._IntegrationDeletePayload(ctx, sel, v) -} -func (ec *executionContext) marshalNIntegrationHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.IntegrationHistoryConnection) graphql.Marshaler { - return ec._IntegrationHistoryConnection(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNIntegrationHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalOControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx context.Context, sel ast.SelectionSet, v *generated.Control) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._IntegrationHistoryConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNIntegrationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNIntegrationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNIntegrationHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryOrderField(ctx context.Context, v interface{}) (*generated.IntegrationHistoryOrderField, error) { - var res = new(generated.IntegrationHistoryOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) + return ec._Control(ctx, sel, v) } -func (ec *executionContext) marshalNIntegrationHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationHistoryOrderField) graphql.Marshaler { +func (ec *executionContext) marshalOControlEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ControlEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return v -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOControlEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) unmarshalNIntegrationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInput(ctx context.Context, v interface{}) (*generated.IntegrationHistoryWhereInput, error) { - res, err := ec.unmarshalInputIntegrationHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} + } + wg.Wait() -func (ec *executionContext) unmarshalNIntegrationOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderField(ctx context.Context, v interface{}) (*generated.IntegrationOrderField, error) { - var res = new(generated.IntegrationOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) + return ret } -func (ec *executionContext) marshalNIntegrationOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationOrderField) graphql.Marshaler { +func (ec *executionContext) marshalOControlEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ControlEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return v -} - -func (ec *executionContext) marshalNIntegrationUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v IntegrationUpdatePayload) graphql.Marshaler { - return ec._IntegrationUpdatePayload(ctx, sel, &v) + return ec._ControlEdge(ctx, sel, v) } -func (ec *executionContext) marshalNIntegrationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *IntegrationUpdatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOControlHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistory(ctx context.Context, sel ast.SelectionSet, v *generated.ControlHistory) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._IntegrationUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx context.Context, v interface{}) (*generated.IntegrationWhereInput, error) { - res, err := ec.unmarshalInputIntegrationWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._ControlHistory(ctx, sel, v) } -func (ec *executionContext) marshalNInvite2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx context.Context, sel ast.SelectionSet, v generated.Invite) graphql.Marshaler { - return ec._Invite(ctx, sel, &v) -} - -func (ec *executionContext) marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx context.Context, sel ast.SelectionSet, v *generated.Invite) graphql.Marshaler { +func (ec *executionContext) marshalOControlHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ControlHistoryEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._Invite(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOControlHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNInviteBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v InviteBulkCreatePayload) graphql.Marshaler { - return ec._InviteBulkCreatePayload(ctx, sel, &v) + } + wg.Wait() + + return ret } -func (ec *executionContext) marshalNInviteBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *InviteBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOControlHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ControlHistoryEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._InviteBulkCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNInviteConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx context.Context, sel ast.SelectionSet, v generated.InviteConnection) graphql.Marshaler { - return ec._InviteConnection(ctx, sel, &v) + return ec._ControlHistoryEdge(ctx, sel, v) } -func (ec *executionContext) marshalNInviteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx context.Context, sel ast.SelectionSet, v *generated.InviteConnection) graphql.Marshaler { +func (ec *executionContext) unmarshalOControlHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._InviteConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNInviteCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteCreatePayload(ctx context.Context, sel ast.SelectionSet, v InviteCreatePayload) graphql.Marshaler { - return ec._InviteCreatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNInviteCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteCreatePayload(ctx context.Context, sel ast.SelectionSet, v *InviteCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOControlHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._InviteCreatePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNInviteDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteDeletePayload(ctx context.Context, sel ast.SelectionSet, v InviteDeletePayload) graphql.Marshaler { - return ec._InviteDeletePayload(ctx, sel, &v) -} + } + wg.Wait() -func (ec *executionContext) marshalNInviteDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteDeletePayload(ctx context.Context, sel ast.SelectionSet, v *InviteDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._InviteDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx context.Context, v interface{}) (enums.InviteStatus, error) { - var res enums.InviteStatus - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} -func (ec *executionContext) marshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx context.Context, sel ast.SelectionSet, v enums.InviteStatus) graphql.Marshaler { - return v + return ret } -func (ec *executionContext) unmarshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { - var res enums.Role +func (ec *executionContext) unmarshalOControlHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { +func (ec *executionContext) marshalOControlHistoryOpType2ᚖ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) marshalNInviteUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteUpdatePayload(ctx context.Context, sel ast.SelectionSet, v InviteUpdatePayload) graphql.Marshaler { - return ec._InviteUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNInviteUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *InviteUpdatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOControlHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ControlHistoryWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.ControlHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNControlHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._InviteUpdatePayload(ctx, sel, v) + return res, nil } -func (ec *executionContext) unmarshalNInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx context.Context, v interface{}) (*generated.InviteWhereInput, error) { - res, err := ec.unmarshalInputInviteWhereInput(ctx, v) +func (ec *executionContext) unmarshalOControlHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ControlHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputControlHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx context.Context, v interface{}) (customtypes.JSONObject, error) { - var res customtypes.JSONObject - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx context.Context, sel ast.SelectionSet, v customtypes.JSONObject) graphql.Marshaler { +func (ec *executionContext) marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.ControlObjective) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return v -} - -func (ec *executionContext) marshalNNode2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx context.Context, sel ast.SelectionSet, v []generated.Noder) graphql.Marshaler { ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -246317,7 +344429,7 @@ func (ec *executionContext) marshalNNode2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalONode2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, sel, v[i]) + ret[i] = ec.marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, sel, v[i]) } if isLen1 { f(i) @@ -246328,824 +344440,1050 @@ func (ec *executionContext) marshalNNode2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋ } wg.Wait() - return ret -} - -func (ec *executionContext) marshalNNote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx context.Context, sel ast.SelectionSet, v *generated.Note) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._Note(ctx, sel, v) -} -func (ec *executionContext) marshalNNoteConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx context.Context, sel ast.SelectionSet, v generated.NoteConnection) graphql.Marshaler { - return ec._NoteConnection(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx context.Context, sel ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { +func (ec *executionContext) marshalOControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx context.Context, sel ast.SelectionSet, v *generated.ControlObjective) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._NoteConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNNoteHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.NoteHistoryConnection) graphql.Marshaler { - return ec._NoteHistoryConnection(ctx, sel, &v) + return ec._ControlObjective(ctx, sel, v) } -func (ec *executionContext) marshalNNoteHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.NoteHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalOControlObjectiveEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ControlObjectiveEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._NoteHistoryConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNNoteHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInput(ctx context.Context, v interface{}) (*generated.NoteHistoryWhereInput, error) { - res, err := ec.unmarshalInputNoteHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOControlObjectiveEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) unmarshalNNoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx context.Context, v interface{}) (*generated.NoteWhereInput, error) { - res, err := ec.unmarshalInputNoteWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} + } + wg.Wait() -func (ec *executionContext) marshalNOauthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx context.Context, sel ast.SelectionSet, v generated.OauthProvider) graphql.Marshaler { - return ec._OauthProvider(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProvider) graphql.Marshaler { +func (ec *executionContext) marshalOControlObjectiveEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ControlObjectiveEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._OauthProvider(ctx, sel, v) -} - -func (ec *executionContext) marshalNOauthProviderBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OauthProviderBulkCreatePayload) graphql.Marshaler { - return ec._OauthProviderBulkCreatePayload(ctx, sel, &v) + return ec._ControlObjectiveEdge(ctx, sel, v) } -func (ec *executionContext) marshalNOauthProviderBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OauthProviderBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOControlObjectiveHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistory(ctx context.Context, sel ast.SelectionSet, v *generated.ControlObjectiveHistory) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._OauthProviderBulkCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOauthProviderConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderConnection(ctx context.Context, sel ast.SelectionSet, v generated.OauthProviderConnection) graphql.Marshaler { - return ec._OauthProviderConnection(ctx, sel, &v) + return ec._ControlObjectiveHistory(ctx, sel, v) } -func (ec *executionContext) marshalNOauthProviderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProviderConnection) graphql.Marshaler { +func (ec *executionContext) marshalOControlObjectiveHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ControlObjectiveHistoryEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._OauthProviderConnection(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOControlObjectiveHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNOauthProviderCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderCreatePayload(ctx context.Context, sel ast.SelectionSet, v OauthProviderCreatePayload) graphql.Marshaler { - return ec._OauthProviderCreatePayload(ctx, sel, &v) + } + wg.Wait() + + return ret } -func (ec *executionContext) marshalNOauthProviderCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OauthProviderCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOControlObjectiveHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ControlObjectiveHistoryEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._OauthProviderCreatePayload(ctx, sel, v) + return ec._ControlObjectiveHistoryEdge(ctx, sel, v) } -func (ec *executionContext) marshalNOauthProviderDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderDeletePayload(ctx context.Context, sel ast.SelectionSet, v OauthProviderDeletePayload) graphql.Marshaler { - return ec._OauthProviderDeletePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalOControlObjectiveHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNControlObjectiveHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalNOauthProviderDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OauthProviderDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalOControlObjectiveHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._OauthProviderDeletePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNControlObjectiveHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNOauthProviderHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.OauthProviderHistoryConnection) graphql.Marshaler { - return ec._OauthProviderHistoryConnection(ctx, sel, &v) -} + } + wg.Wait() -func (ec *executionContext) marshalNOauthProviderHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProviderHistoryConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._OauthProviderHistoryConnection(ctx, sel, v) + + return ret } -func (ec *executionContext) unmarshalNOauthProviderHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType +func (ec *executionContext) unmarshalOControlObjectiveHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalNOauthProviderHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOControlObjectiveHistoryOpType2ᚖ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) unmarshalNOauthProviderHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OauthProviderHistoryWhereInput, error) { - res, err := ec.unmarshalInputOauthProviderHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOauthProviderUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OauthProviderUpdatePayload) graphql.Marshaler { - return ec._OauthProviderUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOauthProviderUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OauthProviderUpdatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOControlObjectiveHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ControlObjectiveHistoryWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.ControlObjectiveHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNControlObjectiveHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OauthProviderUpdatePayload(ctx, sel, v) + return res, nil } -func (ec *executionContext) unmarshalNOauthProviderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInput(ctx context.Context, v interface{}) (*generated.OauthProviderWhereInput, error) { - res, err := ec.unmarshalInputOauthProviderWhereInput(ctx, v) +func (ec *executionContext) unmarshalOControlObjectiveHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ControlObjectiveHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputControlObjectiveHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNOhAuthTooToken2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx context.Context, sel ast.SelectionSet, v generated.OhAuthTooToken) graphql.Marshaler { - return ec._OhAuthTooToken(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx context.Context, sel ast.SelectionSet, v *generated.OhAuthTooToken) graphql.Marshaler { +func (ec *executionContext) marshalOControlObjectiveSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveSearchResult(ctx context.Context, sel ast.SelectionSet, v *ControlObjectiveSearchResult) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._OhAuthTooToken(ctx, sel, v) -} - -func (ec *executionContext) marshalNOhAuthTooTokenBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OhAuthTooTokenBulkCreatePayload) graphql.Marshaler { - return ec._OhAuthTooTokenBulkCreatePayload(ctx, sel, &v) + return ec._ControlObjectiveSearchResult(ctx, sel, v) } -func (ec *executionContext) marshalNOhAuthTooTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OhAuthTooTokenBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOControlObjectiveWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ControlObjectiveWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.ControlObjectiveWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OhAuthTooTokenBulkCreatePayload(ctx, sel, v) + return res, nil } -func (ec *executionContext) marshalNOhAuthTooTokenConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenConnection(ctx context.Context, sel ast.SelectionSet, v generated.OhAuthTooTokenConnection) graphql.Marshaler { - return ec._OhAuthTooTokenConnection(ctx, sel, &v) +func (ec *executionContext) unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx context.Context, v interface{}) (*generated.ControlObjectiveWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputControlObjectiveWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNOhAuthTooTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OhAuthTooTokenConnection) graphql.Marshaler { +func (ec *executionContext) marshalOControlSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlSearchResult(ctx context.Context, sel ast.SelectionSet, v *ControlSearchResult) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._OhAuthTooTokenConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNOhAuthTooTokenCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v OhAuthTooTokenCreatePayload) graphql.Marshaler { - return ec._OhAuthTooTokenCreatePayload(ctx, sel, &v) + return ec._ControlSearchResult(ctx, sel, v) } -func (ec *executionContext) marshalNOhAuthTooTokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OhAuthTooTokenCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ControlWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.ControlWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OhAuthTooTokenCreatePayload(ctx, sel, v) + return res, nil } -func (ec *executionContext) marshalNOhAuthTooTokenDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v OhAuthTooTokenDeletePayload) graphql.Marshaler { - return ec._OhAuthTooTokenDeletePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx context.Context, v interface{}) (*generated.ControlWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputControlWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNOhAuthTooTokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OhAuthTooTokenDeletePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateAPITokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateAPITokenInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateAPITokenInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateAPITokenInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OhAuthTooTokenDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOhAuthTooTokenUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OhAuthTooTokenUpdatePayload) graphql.Marshaler { - return ec._OhAuthTooTokenUpdatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOhAuthTooTokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OhAuthTooTokenUpdatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateActionPlanInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateActionPlanInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateActionPlanInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateActionPlanInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateActionPlanInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateActionPlanInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OhAuthTooTokenUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNOhAuthTooTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInput(ctx context.Context, v interface{}) (*generated.OhAuthTooTokenWhereInput, error) { - res, err := ec.unmarshalInputOhAuthTooTokenWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, v interface{}) (entgql.OrderDirection, error) { - var res entgql.OrderDirection - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOrderDirection2entgoᚗioᚋcontribᚋentgqlᚐOrderDirection(ctx context.Context, sel ast.SelectionSet, v entgql.OrderDirection) graphql.Marshaler { - return v -} - -func (ec *executionContext) marshalNOrgMembership2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx context.Context, sel ast.SelectionSet, v generated.OrgMembership) graphql.Marshaler { - return ec._OrgMembership(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembership) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateContactInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateContactInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateContactInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateContactInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrgMembership(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrgMembershipBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrgMembershipBulkCreatePayload) graphql.Marshaler { - return ec._OrgMembershipBulkCreatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrgMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrgMembershipBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateControlInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateControlInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateControlInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateControlInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrgMembershipBulkCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrgMembershipConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrgMembershipConnection) graphql.Marshaler { - return ec._OrgMembershipConnection(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembershipConnection) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateControlObjectiveInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlObjectiveInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateControlObjectiveInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateControlObjectiveInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateControlObjectiveInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlObjectiveInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrgMembershipConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrgMembershipCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrgMembershipCreatePayload) graphql.Marshaler { - return ec._OrgMembershipCreatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrgMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrgMembershipCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateDocumentDataInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateDocumentDataInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateDocumentDataInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateDocumentDataInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrgMembershipCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrgMembershipDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v OrgMembershipDeletePayload) graphql.Marshaler { - return ec._OrgMembershipDeletePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrgMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OrgMembershipDeletePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateEntitlementInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateEntitlementInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateEntitlementInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateEntitlementInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrgMembershipDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrgMembershipHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrgMembershipHistoryConnection) graphql.Marshaler { - return ec._OrgMembershipHistoryConnection(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrgMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembershipHistoryConnection) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateEntitlementPlanFeatureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanFeatureInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateEntitlementPlanFeatureInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateEntitlementPlanFeatureInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateEntitlementPlanFeatureInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanFeatureInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrgMembershipHistoryConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { - var res enums.Role - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNOrgMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrgMembershipHistoryWhereInput, error) { - res, err := ec.unmarshalInputOrgMembershipHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNOrgMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { - var res enums.Role - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOrgMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { - return v -} - -func (ec *executionContext) marshalNOrgMembershipUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OrgMembershipUpdatePayload) graphql.Marshaler { - return ec._OrgMembershipUpdatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrgMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OrgMembershipUpdatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateEntitlementPlanInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateEntitlementPlanInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateEntitlementPlanInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateEntitlementPlanInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrgMembershipUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx context.Context, v interface{}) (*generated.OrgMembershipWhereInput, error) { - res, err := ec.unmarshalInputOrgMembershipWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOrganization2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx context.Context, sel ast.SelectionSet, v generated.Organization) graphql.Marshaler { - return ec._Organization(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *generated.Organization) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateEntityInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateEntityInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateEntityInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateEntityInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._Organization(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganizationBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationBulkCreatePayload) graphql.Marshaler { - return ec._OrganizationBulkCreatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrganizationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateEntityTypeInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateEntityTypeInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateEntityTypeInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateEntityTypeInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationBulkCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganizationConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationConnection) graphql.Marshaler { - return ec._OrganizationConnection(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationConnection) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateEventInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateEventInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateEventInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateEventInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganizationCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationCreatePayload) graphql.Marshaler { - return ec._OrganizationCreatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrganizationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateFeatureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateFeatureInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateFeatureInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateFeatureInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateFeatureInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateFeatureInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganizationDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationDeletePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationDeletePayload) graphql.Marshaler { - return ec._OrganizationDeletePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrganizationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationDeletePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateGroupInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateGroupInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateGroupInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateGroupInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganizationHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationHistoryConnection) graphql.Marshaler { - return ec._OrganizationHistoryConnection(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrganizationHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationHistoryConnection) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateGroupMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateGroupMembershipInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateGroupMembershipInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateGroupMembershipInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationHistoryConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) + return res, nil } -func (ec *executionContext) marshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v +func (ec *executionContext) unmarshalOCreateGroupSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateGroupSettingInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateGroupSettingInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateGroupSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) unmarshalNOrganizationHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryOrderField(ctx context.Context, v interface{}) (*generated.OrganizationHistoryOrderField, error) { - var res = new(generated.OrganizationHistoryOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) unmarshalOCreateGroupSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx context.Context, v interface{}) (*generated.CreateGroupSettingInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputCreateGroupSettingInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNOrganizationHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationHistoryOrderField) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateHushInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateHushInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateHushInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateHushInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return v -} - -func (ec *executionContext) unmarshalNOrganizationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationHistoryWhereInput, error) { - res, err := ec.unmarshalInputOrganizationHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return res, nil } -func (ec *executionContext) unmarshalNOrganizationOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderField(ctx context.Context, v interface{}) (*generated.OrganizationOrderField, error) { - var res = new(generated.OrganizationOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) unmarshalOCreateIntegrationInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateIntegrationInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateIntegrationInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateIntegrationInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalNOrganizationOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationOrderField) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateInternalPolicyInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInternalPolicyInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateInternalPolicyInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateInternalPolicyInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateInternalPolicyInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInternalPolicyInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return v -} - -func (ec *executionContext) marshalNOrganizationSetting2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationSetting) graphql.Marshaler { - return ec._OrganizationSetting(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSetting) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateInviteInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateInviteInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateInviteInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateInviteInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationSetting(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganizationSettingBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationSettingBulkCreatePayload) graphql.Marshaler { - return ec._OrganizationSettingBulkCreatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrganizationSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateNarrativeInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNarrativeInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateNarrativeInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateNarrativeInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateNarrativeInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNarrativeInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationSettingBulkCreatePayload(ctx, sel, v) + return res, nil } -func (ec *executionContext) marshalNOrganizationSettingConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationSettingConnection) graphql.Marshaler { - return ec._OrganizationSettingConnection(ctx, sel, &v) +func (ec *executionContext) unmarshalOCreateNoteInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNoteInput(ctx context.Context, v interface{}) (*generated.CreateNoteInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputCreateNoteInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNOrganizationSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSettingConnection) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateOauthProviderInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOauthProviderInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateOauthProviderInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateOauthProviderInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateOauthProviderInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOauthProviderInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationSettingConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganizationSettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationSettingCreatePayload) graphql.Marshaler { - return ec._OrganizationSettingCreatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrganizationSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateOhAuthTooTokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOhAuthTooTokenInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateOhAuthTooTokenInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateOhAuthTooTokenInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateOhAuthTooTokenInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOhAuthTooTokenInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationSettingCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganizationSettingDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationSettingDeletePayload) graphql.Marshaler { - return ec._OrganizationSettingDeletePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrganizationSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingDeletePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateOrgMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateOrgMembershipInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateOrgMembershipInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateOrgMembershipInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationSettingDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganizationSettingHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationSettingHistoryConnection) graphql.Marshaler { - return ec._OrganizationSettingHistoryConnection(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrganizationSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSettingHistoryConnection) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateOrganizationInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateOrganizationInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateOrganizationInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateOrganizationInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationSettingHistoryConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (enums.Region, error) { - var res enums.Region - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v enums.Region) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationSettingHistoryWhereInput, error) { - res, err := ec.unmarshalInputOrganizationSettingHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (enums.Region, error) { - var res enums.Region - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v enums.Region) graphql.Marshaler { - return v -} - -func (ec *executionContext) marshalNOrganizationSettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationSettingUpdatePayload) graphql.Marshaler { - return ec._OrganizationSettingUpdatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNOrganizationSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingUpdatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateOrganizationSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateOrganizationSettingInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateOrganizationSettingInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateOrganizationSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationSettingUpdatePayload(ctx, sel, v) + return res, nil } -func (ec *executionContext) unmarshalNOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationSettingWhereInput, error) { - res, err := ec.unmarshalInputOrganizationSettingWhereInput(ctx, v) +func (ec *executionContext) unmarshalOCreateOrganizationSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx context.Context, v interface{}) (*generated.CreateOrganizationSettingInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputCreateOrganizationSettingInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNOrganizationUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationUpdatePayload) graphql.Marshaler { - return ec._OrganizationUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrganizationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationUpdatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreatePersonalAccessTokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreatePersonalAccessTokenInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreatePersonalAccessTokenInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreatePersonalAccessTokenInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._OrganizationUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationWhereInput, error) { - res, err := ec.unmarshalInputOrganizationWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v entgql.PageInfo[string]) graphql.Marshaler { - return ec._PageInfo(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx context.Context, sel ast.SelectionSet, v *entgql.PageInfo[string]) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateProcedureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProcedureInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateProcedureInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateProcedureInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateProcedureInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProcedureInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._PageInfo(ctx, sel, v) -} - -func (ec *executionContext) marshalNPersonalAccessToken2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx context.Context, sel ast.SelectionSet, v generated.PersonalAccessToken) graphql.Marshaler { - return ec._PersonalAccessToken(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx context.Context, sel ast.SelectionSet, v *generated.PersonalAccessToken) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateRiskInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateRiskInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateRiskInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateRiskInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._PersonalAccessToken(ctx, sel, v) -} - -func (ec *executionContext) marshalNPersonalAccessTokenBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v PersonalAccessTokenBulkCreatePayload) graphql.Marshaler { - return ec._PersonalAccessTokenBulkCreatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNPersonalAccessTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateStandardInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateStandardInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateStandardInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateStandardInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateStandardInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateStandardInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._PersonalAccessTokenBulkCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNPersonalAccessTokenConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx context.Context, sel ast.SelectionSet, v generated.PersonalAccessTokenConnection) graphql.Marshaler { - return ec._PersonalAccessTokenConnection(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNPersonalAccessTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx context.Context, sel ast.SelectionSet, v *generated.PersonalAccessTokenConnection) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateSubcontrolInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubcontrolInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateSubcontrolInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateSubcontrolInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateSubcontrolInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubcontrolInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._PersonalAccessTokenConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNPersonalAccessTokenCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v PersonalAccessTokenCreatePayload) graphql.Marshaler { - return ec._PersonalAccessTokenCreatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNPersonalAccessTokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateSubscriberInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateSubscriberInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateSubscriberInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateSubscriberInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._PersonalAccessTokenCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNPersonalAccessTokenDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v PersonalAccessTokenDeletePayload) graphql.Marshaler { - return ec._PersonalAccessTokenDeletePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNPersonalAccessTokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenDeletePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateTemplateInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateTemplateInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateTemplateInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateTemplateInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._PersonalAccessTokenDeletePayload(ctx, sel, v) + return res, nil } -func (ec *executionContext) marshalNPersonalAccessTokenUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v PersonalAccessTokenUpdatePayload) graphql.Marshaler { - return ec._PersonalAccessTokenUpdatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalOCreateUserSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateUserSettingInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateUserSettingInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateUserSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalNPersonalAccessTokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenUpdatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOCreateWebhookInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateWebhookInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateWebhookInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.CreateWebhookInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateWebhookInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateWebhookInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._PersonalAccessTokenUpdatePayload(ctx, sel, v) + return res, nil } -func (ec *executionContext) unmarshalNPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx context.Context, v interface{}) (*generated.PersonalAccessTokenWhereInput, error) { - res, err := ec.unmarshalInputPersonalAccessTokenWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (*entgql.Cursor[string], error) { + if v == nil { + return nil, nil + } + var res = new(entgql.Cursor[string]) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNSearchResult2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResult(ctx context.Context, sel ast.SelectionSet, v SearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, sel ast.SelectionSet, v *entgql.Cursor[string]) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._SearchResult(ctx, sel, v) + return v } -func (ec *executionContext) marshalNSearchResult2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultᚄ(ctx context.Context, sel ast.SelectionSet, v []SearchResult) graphql.Marshaler { +func (ec *executionContext) marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.DocumentData) graphql.Marshaler { + if v == nil { + return graphql.Null + } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -247169,7 +345507,7 @@ func (ec *executionContext) marshalNSearchResult2ᚕgithubᚗcomᚋtheopenlane if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNSearchResult2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResult(ctx, sel, v[i]) + ret[i] = ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, sel, v[i]) } if isLen1 { f(i) @@ -247189,976 +345527,813 @@ func (ec *executionContext) marshalNSearchResult2ᚕgithubᚗcomᚋtheopenlane return ret } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) marshalNSubscriber2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx context.Context, sel ast.SelectionSet, v generated.Subscriber) graphql.Marshaler { - return ec._Subscriber(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx context.Context, sel ast.SelectionSet, v *generated.Subscriber) graphql.Marshaler { +func (ec *executionContext) marshalODocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentData) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._Subscriber(ctx, sel, v) -} - -func (ec *executionContext) marshalNSubscriberBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v SubscriberBulkCreatePayload) graphql.Marshaler { - return ec._SubscriberBulkCreatePayload(ctx, sel, &v) + return ec._DocumentData(ctx, sel, v) } -func (ec *executionContext) marshalNSubscriberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *SubscriberBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalODocumentDataEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.DocumentDataEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._SubscriberBulkCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNSubscriberConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx context.Context, sel ast.SelectionSet, v generated.SubscriberConnection) graphql.Marshaler { - return ec._SubscriberConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx context.Context, sel ast.SelectionSet, v *generated.SubscriberConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - return ec._SubscriberConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNSubscriberCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberCreatePayload(ctx context.Context, sel ast.SelectionSet, v SubscriberCreatePayload) graphql.Marshaler { - return ec._SubscriberCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubscriberCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberCreatePayload(ctx context.Context, sel ast.SelectionSet, v *SubscriberCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], } - return graphql.Null - } - return ec._SubscriberCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNSubscriberDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberDeletePayload(ctx context.Context, sel ast.SelectionSet, v SubscriberDeletePayload) graphql.Marshaler { - return ec._SubscriberDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubscriberDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberDeletePayload(ctx context.Context, sel ast.SelectionSet, v *SubscriberDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalODocumentDataEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataEdge(ctx, sel, v[i]) } - return graphql.Null - } - return ec._SubscriberDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNSubscriberUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberUpdatePayload(ctx context.Context, sel ast.SelectionSet, v SubscriberUpdatePayload) graphql.Marshaler { - return ec._SubscriberUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubscriberUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *SubscriberUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + if isLen1 { + f(i) + } else { + go f(i) } - return graphql.Null - } - return ec._SubscriberUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx context.Context, v interface{}) (*generated.SubscriberWhereInput, error) { - res, err := ec.unmarshalInputSubscriberWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTFASetting2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx context.Context, sel ast.SelectionSet, v generated.TFASetting) graphql.Marshaler { - return ec._TFASetting(ctx, sel, &v) -} -func (ec *executionContext) marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx context.Context, sel ast.SelectionSet, v *generated.TFASetting) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null } - return ec._TFASetting(ctx, sel, v) -} + wg.Wait() -func (ec *executionContext) marshalNTFASettingConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingConnection(ctx context.Context, sel ast.SelectionSet, v generated.TFASettingConnection) graphql.Marshaler { - return ec._TFASettingConnection(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNTFASettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingConnection(ctx context.Context, sel ast.SelectionSet, v *generated.TFASettingConnection) graphql.Marshaler { +func (ec *executionContext) marshalODocumentDataEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataEdge(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentDataEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._TFASettingConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNTFASettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v TFASettingCreatePayload) graphql.Marshaler { - return ec._TFASettingCreatePayload(ctx, sel, &v) + return ec._DocumentDataEdge(ctx, sel, v) } -func (ec *executionContext) marshalNTFASettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *TFASettingCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalODocumentDataHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistory(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentDataHistory) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._TFASettingCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNTFASettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v TFASettingUpdatePayload) graphql.Marshaler { - return ec._TFASettingUpdatePayload(ctx, sel, &v) + return ec._DocumentDataHistory(ctx, sel, v) } -func (ec *executionContext) marshalNTFASettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *TFASettingUpdatePayload) graphql.Marshaler { +func (ec *executionContext) marshalODocumentDataHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.DocumentDataHistoryEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._TFASettingUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx context.Context, v interface{}) (*generated.TFASettingWhereInput, error) { - res, err := ec.unmarshalInputTFASettingWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTemplate2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx context.Context, sel ast.SelectionSet, v generated.Template) graphql.Marshaler { - return ec._Template(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx context.Context, sel ast.SelectionSet, v *generated.Template) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - return ec._Template(ctx, sel, v) -} - -func (ec *executionContext) marshalNTemplateBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v TemplateBulkCreatePayload) graphql.Marshaler { - return ec._TemplateBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTemplateBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *TemplateBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], } - return graphql.Null - } - return ec._TemplateBulkCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNTemplateConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx context.Context, sel ast.SelectionSet, v generated.TemplateConnection) graphql.Marshaler { - return ec._TemplateConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx context.Context, sel ast.SelectionSet, v *generated.TemplateConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalODocumentDataHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryEdge(ctx, sel, v[i]) } - return graphql.Null - } - return ec._TemplateConnection(ctx, sel, v) -} - -func (ec *executionContext) marshalNTemplateCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateCreatePayload(ctx context.Context, sel ast.SelectionSet, v TemplateCreatePayload) graphql.Marshaler { - return ec._TemplateCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTemplateCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateCreatePayload(ctx context.Context, sel ast.SelectionSet, v *TemplateCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + if isLen1 { + f(i) + } else { + go f(i) } - return graphql.Null - } - return ec._TemplateCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNTemplateDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateDeletePayload(ctx context.Context, sel ast.SelectionSet, v TemplateDeletePayload) graphql.Marshaler { - return ec._TemplateDeletePayload(ctx, sel, &v) -} -func (ec *executionContext) marshalNTemplateDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateDeletePayload(ctx context.Context, sel ast.SelectionSet, v *TemplateDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null } - return ec._TemplateDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTemplateDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx context.Context, v interface{}) (enums.DocumentType, error) { - var res enums.DocumentType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTemplateDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx context.Context, sel ast.SelectionSet, v enums.DocumentType) graphql.Marshaler { - return v -} + wg.Wait() -func (ec *executionContext) marshalNTemplateHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.TemplateHistoryConnection) graphql.Marshaler { - return ec._TemplateHistoryConnection(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNTemplateHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.TemplateHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalODocumentDataHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentDataHistoryEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._TemplateHistoryConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTemplateHistoryDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx context.Context, v interface{}) (enums.DocumentType, error) { - var res enums.DocumentType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTemplateHistoryDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx context.Context, sel ast.SelectionSet, v enums.DocumentType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNTemplateHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTemplateHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNTemplateHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryOrderField(ctx context.Context, v interface{}) (*generated.TemplateHistoryOrderField, error) { - var res = new(generated.TemplateHistoryOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) + return ec._DocumentDataHistoryEdge(ctx, sel, v) } -func (ec *executionContext) marshalNTemplateHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.TemplateHistoryOrderField) graphql.Marshaler { +func (ec *executionContext) unmarshalODocumentDataHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null + return nil, nil } - return v -} - -func (ec *executionContext) unmarshalNTemplateHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryWhereInput(ctx context.Context, v interface{}) (*generated.TemplateHistoryWhereInput, error) { - res, err := ec.unmarshalInputTemplateHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNTemplateOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrderField(ctx context.Context, v interface{}) (*generated.TemplateOrderField, error) { - var res = new(generated.TemplateOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTemplateOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.TemplateOrderField) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return v -} - -func (ec *executionContext) marshalNTemplateUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateUpdatePayload(ctx context.Context, sel ast.SelectionSet, v TemplateUpdatePayload) graphql.Marshaler { - return ec._TemplateUpdatePayload(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNTemplateUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *TemplateUpdatePayload) graphql.Marshaler { +func (ec *executionContext) marshalODocumentDataHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._TemplateUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx context.Context, v interface{}) (*generated.TemplateWhereInput, error) { - res, err := ec.unmarshalInputTemplateWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) { - res, err := graphql.UnmarshalTime(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler { - res := graphql.MarshalTime(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - return res -} - -func (ec *executionContext) unmarshalNUint2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx context.Context, v interface{}) (customtypes.Uint8, error) { - var res customtypes.Uint8 - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUint2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐUint8(ctx context.Context, sel ast.SelectionSet, v customtypes.Uint8) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalNUpdateAPITokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateAPITokenInput(ctx context.Context, v interface{}) (generated.UpdateAPITokenInput, error) { - res, err := ec.unmarshalInputUpdateAPITokenInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateContactInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateContactInput(ctx context.Context, v interface{}) (generated.UpdateContactInput, error) { - res, err := ec.unmarshalInputUpdateContactInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateDocumentDataInput(ctx context.Context, v interface{}) (generated.UpdateDocumentDataInput, error) { - res, err := ec.unmarshalInputUpdateDocumentDataInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateEntitlementInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntitlementInput(ctx context.Context, v interface{}) (generated.UpdateEntitlementInput, error) { - res, err := ec.unmarshalInputUpdateEntitlementInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateEntitlementPlanFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntitlementPlanFeatureInput(ctx context.Context, v interface{}) (generated.UpdateEntitlementPlanFeatureInput, error) { - res, err := ec.unmarshalInputUpdateEntitlementPlanFeatureInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateEntitlementPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntitlementPlanInput(ctx context.Context, v interface{}) (generated.UpdateEntitlementPlanInput, error) { - res, err := ec.unmarshalInputUpdateEntitlementPlanInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateEntityInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntityInput(ctx context.Context, v interface{}) (generated.UpdateEntityInput, error) { - res, err := ec.unmarshalInputUpdateEntityInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateEntityTypeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntityTypeInput(ctx context.Context, v interface{}) (generated.UpdateEntityTypeInput, error) { - res, err := ec.unmarshalInputUpdateEntityTypeInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateEventInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEventInput(ctx context.Context, v interface{}) (generated.UpdateEventInput, error) { - res, err := ec.unmarshalInputUpdateEventInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateFeatureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateFeatureInput(ctx context.Context, v interface{}) (generated.UpdateFeatureInput, error) { - res, err := ec.unmarshalInputUpdateFeatureInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupInput(ctx context.Context, v interface{}) (generated.UpdateGroupInput, error) { - res, err := ec.unmarshalInputUpdateGroupInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateGroupMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupMembershipInput(ctx context.Context, v interface{}) (generated.UpdateGroupMembershipInput, error) { - res, err := ec.unmarshalInputUpdateGroupMembershipInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateGroupSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupSettingInput(ctx context.Context, v interface{}) (generated.UpdateGroupSettingInput, error) { - res, err := ec.unmarshalInputUpdateGroupSettingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateHushInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateHushInput(ctx context.Context, v interface{}) (generated.UpdateHushInput, error) { - res, err := ec.unmarshalInputUpdateHushInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateIntegrationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateIntegrationInput(ctx context.Context, v interface{}) (generated.UpdateIntegrationInput, error) { - res, err := ec.unmarshalInputUpdateIntegrationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateInviteInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateInviteInput(ctx context.Context, v interface{}) (generated.UpdateInviteInput, error) { - res, err := ec.unmarshalInputUpdateInviteInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateOauthProviderInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOauthProviderInput(ctx context.Context, v interface{}) (generated.UpdateOauthProviderInput, error) { - res, err := ec.unmarshalInputUpdateOauthProviderInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateOhAuthTooTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOhAuthTooTokenInput(ctx context.Context, v interface{}) (generated.UpdateOhAuthTooTokenInput, error) { - res, err := ec.unmarshalInputUpdateOhAuthTooTokenInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateOrgMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrgMembershipInput(ctx context.Context, v interface{}) (generated.UpdateOrgMembershipInput, error) { - res, err := ec.unmarshalInputUpdateOrgMembershipInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateOrganizationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationInput(ctx context.Context, v interface{}) (generated.UpdateOrganizationInput, error) { - res, err := ec.unmarshalInputUpdateOrganizationInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateOrganizationSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationSettingInput(ctx context.Context, v interface{}) (generated.UpdateOrganizationSettingInput, error) { - res, err := ec.unmarshalInputUpdateOrganizationSettingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdatePersonalAccessTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdatePersonalAccessTokenInput(ctx context.Context, v interface{}) (generated.UpdatePersonalAccessTokenInput, error) { - res, err := ec.unmarshalInputUpdatePersonalAccessTokenInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateSubscriberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateSubscriberInput(ctx context.Context, v interface{}) (generated.UpdateSubscriberInput, error) { - res, err := ec.unmarshalInputUpdateSubscriberInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateTFASettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTFASettingInput(ctx context.Context, v interface{}) (generated.UpdateTFASettingInput, error) { - res, err := ec.unmarshalInputUpdateTFASettingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateTemplateInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTemplateInput(ctx context.Context, v interface{}) (generated.UpdateTemplateInput, error) { - res, err := ec.unmarshalInputUpdateTemplateInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateUserInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateUserInput(ctx context.Context, v interface{}) (generated.UpdateUserInput, error) { - res, err := ec.unmarshalInputUpdateUserInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateUserSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateUserSettingInput(ctx context.Context, v interface{}) (generated.UpdateUserSettingInput, error) { - res, err := ec.unmarshalInputUpdateUserSettingInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpdateWebhookInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateWebhookInput(ctx context.Context, v interface{}) (generated.UpdateWebhookInput, error) { - res, err := ec.unmarshalInputUpdateWebhookInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v interface{}) (graphql.Upload, error) { - res, err := graphql.UnmarshalUpload(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v graphql.Upload) graphql.Marshaler { - res := graphql.MarshalUpload(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } } - return res -} -func (ec *executionContext) marshalNUser2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx context.Context, sel ast.SelectionSet, v generated.User) graphql.Marshaler { - return ec._User(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx context.Context, sel ast.SelectionSet, v *generated.User) graphql.Marshaler { +func (ec *executionContext) unmarshalODocumentDataHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null + return nil, nil } - return ec._User(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUserAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx context.Context, v interface{}) (enums.AuthProvider, error) { - var res enums.AuthProvider + var res = new(history.OpType) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNUserAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx context.Context, sel ast.SelectionSet, v enums.AuthProvider) graphql.Marshaler { +func (ec *executionContext) marshalODocumentDataHistoryOpType2ᚖ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) marshalNUserConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx context.Context, sel ast.SelectionSet, v generated.UserConnection) graphql.Marshaler { - return ec._UserConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx context.Context, sel ast.SelectionSet, v *generated.UserConnection) graphql.Marshaler { +func (ec *executionContext) unmarshalODocumentDataHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.DocumentDataHistoryWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.DocumentDataHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNDocumentDataHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._UserConnection(ctx, sel, v) + return res, nil } -func (ec *executionContext) marshalNUserCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserCreatePayload(ctx context.Context, sel ast.SelectionSet, v UserCreatePayload) graphql.Marshaler { - return ec._UserCreatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalODocumentDataHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInput(ctx context.Context, v interface{}) (*generated.DocumentDataHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputDocumentDataHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNUserCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserCreatePayload(ctx context.Context, sel ast.SelectionSet, v *UserCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalODocumentDataSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataSearchResult(ctx context.Context, sel ast.SelectionSet, v *DocumentDataSearchResult) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._UserCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNUserDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserDeletePayload(ctx context.Context, sel ast.SelectionSet, v UserDeletePayload) graphql.Marshaler { - return ec._UserDeletePayload(ctx, sel, &v) + return ec._DocumentDataSearchResult(ctx, sel, v) } -func (ec *executionContext) marshalNUserDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserDeletePayload(ctx context.Context, sel ast.SelectionSet, v *UserDeletePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.DocumentDataWhereInput, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.DocumentDataWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNDocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._UserDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUserHistoryAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx context.Context, v interface{}) (enums.AuthProvider, error) { - var res enums.AuthProvider - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUserHistoryAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx context.Context, sel ast.SelectionSet, v enums.AuthProvider) graphql.Marshaler { - return v + return res, nil } -func (ec *executionContext) marshalNUserHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.UserHistoryConnection) graphql.Marshaler { - return ec._UserHistoryConnection(ctx, sel, &v) +func (ec *executionContext) unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx context.Context, v interface{}) (*generated.DocumentDataWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputDocumentDataWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNUserHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.UserHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Entitlement) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._UserHistoryConnection(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) unmarshalNUserHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} + } + wg.Wait() -func (ec *executionContext) marshalNUserHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v -} + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } -func (ec *executionContext) unmarshalNUserHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryOrderField(ctx context.Context, v interface{}) (*generated.UserHistoryOrderField, error) { - var res = new(generated.UserHistoryOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) + return ret } -func (ec *executionContext) marshalNUserHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.UserHistoryOrderField) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx context.Context, sel ast.SelectionSet, v *generated.Entitlement) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return v + return ec._Entitlement(ctx, sel, v) } -func (ec *executionContext) unmarshalNUserHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { - var res enums.Role - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} +func (ec *executionContext) marshalOEntitlementEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOEntitlementEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNUserHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { - return v -} + } + wg.Wait() -func (ec *executionContext) unmarshalNUserHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryWhereInput(ctx context.Context, v interface{}) (*generated.UserHistoryWhereInput, error) { - res, err := ec.unmarshalInputUserHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ret } -func (ec *executionContext) unmarshalNUserOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrderField(ctx context.Context, v interface{}) (*generated.UserOrderField, error) { - var res = new(generated.UserOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalOEntitlementEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EntitlementEdge(ctx, sel, v) } -func (ec *executionContext) marshalNUserOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.UserOrderField) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistory(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementHistory) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return v + return ec._EntitlementHistory(ctx, sel, v) } -func (ec *executionContext) unmarshalNUserRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (enums.Role, error) { - var res enums.Role - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} +func (ec *executionContext) marshalOEntitlementHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementHistoryEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOEntitlementHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNUserRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v enums.Role) graphql.Marshaler { - return v -} + } + wg.Wait() -func (ec *executionContext) marshalNUserSetting2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx context.Context, sel ast.SelectionSet, v generated.UserSetting) graphql.Marshaler { - return ec._UserSetting(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx context.Context, sel ast.SelectionSet, v *generated.UserSetting) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementHistoryEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._UserSetting(ctx, sel, v) -} - -func (ec *executionContext) marshalNUserSettingBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v UserSettingBulkCreatePayload) graphql.Marshaler { - return ec._UserSettingBulkCreatePayload(ctx, sel, &v) + return ec._EntitlementHistoryEdge(ctx, sel, v) } -func (ec *executionContext) marshalNUserSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *UserSettingBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOEntitlementHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNEntitlementHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._UserSettingBulkCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNUserSettingConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingConnection(ctx context.Context, sel ast.SelectionSet, v generated.UserSettingConnection) graphql.Marshaler { - return ec._UserSettingConnection(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalNUserSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingConnection(ctx context.Context, sel ast.SelectionSet, v *generated.UserSettingConnection) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._UserSettingConnection(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNEntitlementHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNUserSettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v UserSettingCreatePayload) graphql.Marshaler { - return ec._UserSettingCreatePayload(ctx, sel, &v) -} + } + wg.Wait() -func (ec *executionContext) marshalNUserSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *UserSettingCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._UserSettingCreatePayload(ctx, sel, v) -} -func (ec *executionContext) marshalNUserSettingHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.UserSettingHistoryConnection) graphql.Marshaler { - return ec._UserSettingHistoryConnection(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNUserSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.UserSettingHistoryConnection) graphql.Marshaler { +func (ec *executionContext) unmarshalOEntitlementHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null + return nil, nil } - return ec._UserSettingHistoryConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNUserSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType + var res = new(history.OpType) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNUserSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementHistoryOpType2ᚖ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) unmarshalNUserSettingHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (enums.UserStatus, error) { - var res enums.UserStatus - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUserSettingHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, sel ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { - return v +func (ec *executionContext) unmarshalOEntitlementHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntitlementHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.EntitlementHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNEntitlementHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) unmarshalNUserSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryWhereInput(ctx context.Context, v interface{}) (*generated.UserSettingHistoryWhereInput, error) { - res, err := ec.unmarshalInputUserSettingHistoryWhereInput(ctx, v) +func (ec *executionContext) unmarshalOEntitlementHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputEntitlementHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNUserSettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v UserSettingUpdatePayload) graphql.Marshaler { - return ec._UserSettingUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *UserSettingUpdatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementPlan) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._UserSettingUpdatePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) unmarshalNUserSettingUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (enums.UserStatus, error) { - var res enums.UserStatus - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} + } + wg.Wait() -func (ec *executionContext) marshalNUserSettingUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, sel ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { - return v -} + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } -func (ec *executionContext) unmarshalNUserSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInput(ctx context.Context, v interface{}) (*generated.UserSettingWhereInput, error) { - res, err := ec.unmarshalInputUserSettingWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ret } -func (ec *executionContext) marshalNUserUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserUpdatePayload(ctx context.Context, sel ast.SelectionSet, v UserUpdatePayload) graphql.Marshaler { - return ec._UserUpdatePayload(ctx, sel, &v) +func (ec *executionContext) marshalOEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlan) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EntitlementPlan(ctx, sel, v) } -func (ec *executionContext) marshalNUserUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *UserUpdatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementPlanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementPlanEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._UserUpdatePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOEntitlementPlanEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) unmarshalNUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx context.Context, v interface{}) (*generated.UserWhereInput, error) { - res, err := ec.unmarshalInputUserWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} + } + wg.Wait() -func (ec *executionContext) marshalNWebhook2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhook(ctx context.Context, sel ast.SelectionSet, v generated.Webhook) graphql.Marshaler { - return ec._Webhook(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNWebhook2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhook(ctx context.Context, sel ast.SelectionSet, v *generated.Webhook) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementPlanEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._Webhook(ctx, sel, v) -} - -func (ec *executionContext) marshalNWebhookBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v WebhookBulkCreatePayload) graphql.Marshaler { - return ec._WebhookBulkCreatePayload(ctx, sel, &v) + return ec._EntitlementPlanEdge(ctx, sel, v) } -func (ec *executionContext) marshalNWebhookBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *WebhookBulkCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementPlanFeature) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._WebhookBulkCreatePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNWebhookConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookConnection(ctx context.Context, sel ast.SelectionSet, v generated.WebhookConnection) graphql.Marshaler { - return ec._WebhookConnection(ctx, sel, &v) -} + } + wg.Wait() -func (ec *executionContext) marshalNWebhookConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookConnection(ctx context.Context, sel ast.SelectionSet, v *generated.WebhookConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } - return graphql.Null } - return ec._WebhookConnection(ctx, sel, v) -} -func (ec *executionContext) marshalNWebhookCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookCreatePayload(ctx context.Context, sel ast.SelectionSet, v WebhookCreatePayload) graphql.Marshaler { - return ec._WebhookCreatePayload(ctx, sel, &v) + return ret } -func (ec *executionContext) marshalNWebhookCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookCreatePayload(ctx context.Context, sel ast.SelectionSet, v *WebhookCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeature) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._WebhookCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNWebhookDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookDeletePayload(ctx context.Context, sel ast.SelectionSet, v WebhookDeletePayload) graphql.Marshaler { - return ec._WebhookDeletePayload(ctx, sel, &v) + return ec._EntitlementPlanFeature(ctx, sel, v) } -func (ec *executionContext) marshalNWebhookDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookDeletePayload(ctx context.Context, sel ast.SelectionSet, v *WebhookDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementPlanFeatureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementPlanFeatureEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._WebhookDeletePayload(ctx, sel, v) -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOEntitlementPlanFeatureEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) marshalNWebhookHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.WebhookHistoryConnection) graphql.Marshaler { - return ec._WebhookHistoryConnection(ctx, sel, &v) + } + wg.Wait() + + return ret } -func (ec *executionContext) marshalNWebhookHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *generated.WebhookHistoryConnection) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementPlanFeatureEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeatureEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec._WebhookHistoryConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNWebhookHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (history.OpType, error) { - var res history.OpType - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNWebhookHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { - return v + return ec._EntitlementPlanFeatureEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalNWebhookHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryOrderField(ctx context.Context, v interface{}) (*generated.WebhookHistoryOrderField, error) { - var res = new(generated.WebhookHistoryOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalOEntitlementPlanFeatureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistory(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeatureHistory) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EntitlementPlanFeatureHistory(ctx, sel, v) } -func (ec *executionContext) marshalNWebhookHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.WebhookHistoryOrderField) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementPlanFeatureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementPlanFeatureHistoryEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return v -} + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOEntitlementPlanFeatureHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } -func (ec *executionContext) unmarshalNWebhookHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookHistoryWhereInput(ctx context.Context, v interface{}) (*generated.WebhookHistoryWhereInput, error) { - res, err := ec.unmarshalInputWebhookHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} + } + wg.Wait() -func (ec *executionContext) unmarshalNWebhookOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookOrderField(ctx context.Context, v interface{}) (*generated.WebhookOrderField, error) { - var res = new(generated.WebhookOrderField) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) + return ret } -func (ec *executionContext) marshalNWebhookOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.WebhookOrderField) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementPlanFeatureHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeatureHistoryEdge) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return v -} - -func (ec *executionContext) marshalNWebhookUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookUpdatePayload(ctx context.Context, sel ast.SelectionSet, v WebhookUpdatePayload) graphql.Marshaler { - return ec._WebhookUpdatePayload(ctx, sel, &v) + return ec._EntitlementPlanFeatureHistoryEdge(ctx, sel, v) } -func (ec *executionContext) marshalNWebhookUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐWebhookUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *WebhookUpdatePayload) graphql.Marshaler { +func (ec *executionContext) unmarshalOEntitlementPlanFeatureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNEntitlementPlanFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err } - return graphql.Null } - return ec._WebhookUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNWebhookWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐWebhookWhereInput(ctx context.Context, v interface{}) (*generated.WebhookWhereInput, error) { - res, err := ec.unmarshalInputWebhookWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { - return ec.___Directive(ctx, sel, &v) + return res, nil } -func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementPlanFeatureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { + if v == nil { + return graphql.Null + } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -248182,7 +346357,7 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i]) + ret[i] = ec.marshalNEntitlementPlanFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -248202,31 +346377,70 @@ func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgq return ret } -func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) +func (ec *executionContext) unmarshalOEntitlementPlanFeatureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") +func (ec *executionContext) marshalOEntitlementPlanFeatureHistoryOpType2ᚖ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) unmarshalOEntitlementPlanFeatureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntitlementPlanFeatureHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.EntitlementPlanFeatureHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNEntitlementPlanFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } } - return res + return res, nil } -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOEntitlementPlanFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanFeatureHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputEntitlementPlanFeatureHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOEntitlementPlanFeatureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureSearchResult(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanFeatureSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EntitlementPlanFeatureSearchResult(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntitlementPlanFeatureWhereInput, error) { + if v == nil { + return nil, nil + } var vSlice []interface{} if v != nil { vSlice = graphql.CoerceList(v) } var err error - res := make([]string, len(vSlice)) + res := make([]*generated.EntitlementPlanFeatureWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i]) + res[i], err = ec.unmarshalNEntitlementPlanFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -248234,7 +346448,25 @@ func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx conte return res, nil } -func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { +func (ec *executionContext) unmarshalOEntitlementPlanFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanFeatureWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputEntitlementPlanFeatureWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOEntitlementPlanHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistory(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanHistory) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EntitlementPlanHistory(ctx, sel, v) +} + +func (ec *executionContext) marshalOEntitlementPlanHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementPlanHistoryEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -248258,7 +346490,7 @@ func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i]) + ret[i] = ec.marshalOEntitlementPlanHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -248269,28 +346501,40 @@ func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context } wg.Wait() - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - return ret } -func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler { - return ec.___EnumValue(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler { - return ec.___Field(ctx, sel, &v) +func (ec *executionContext) marshalOEntitlementPlanHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanHistoryEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EntitlementPlanHistoryEdge(ctx, sel, v) } -func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler { - return ec.___InputValue(ctx, sel, &v) +func (ec *executionContext) unmarshalOEntitlementPlanHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNEntitlementPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementPlanHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { + if v == nil { + return graphql.Null + } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -248314,7 +346558,7 @@ func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋg if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i]) + ret[i] = ec.marshalNEntitlementPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -248334,11 +346578,124 @@ func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋg return ret } -func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler { - return ec.___Type(ctx, sel, &v) +func (ec *executionContext) unmarshalOEntitlementPlanHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler { +func (ec *executionContext) marshalOEntitlementPlanHistoryOpType2ᚖ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) unmarshalOEntitlementPlanHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntitlementPlanHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.EntitlementPlanHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNEntitlementPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOEntitlementPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputEntitlementPlanHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOEntitlementPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanSearchResult(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EntitlementPlanSearchResult(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntitlementPlanWhereInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.EntitlementPlanWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNEntitlementPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOEntitlementPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputEntitlementPlanWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOEntitlementSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementSearchResult(ctx context.Context, sel ast.SelectionSet, v *EntitlementSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EntitlementSearchResult(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntitlementWhereInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.EntitlementWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNEntitlementWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOEntitlementWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputEntitlementWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Entity) graphql.Marshaler { + if v == nil { + return graphql.Null + } ret := make(graphql.Array, len(v)) var wg sync.WaitGroup isLen1 := len(v) == 1 @@ -248362,7 +346719,7 @@ func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i]) + ret[i] = ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, sel, v[i]) } if isLen1 { f(i) @@ -248382,32 +346739,14 @@ func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgen return ret } -func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler { +func (ec *executionContext) marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx context.Context, sel ast.SelectionSet, v *generated.Entity) graphql.Marshaler { if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } return graphql.Null } - return ec.___Type(ctx, sel, v) -} - -func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res + return ec._Entity(ctx, sel, v) } -func (ec *executionContext) marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.APIToken) graphql.Marshaler { +func (ec *executionContext) marshalOEntityEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntityEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -248434,7 +346773,7 @@ func (ec *executionContext) marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, sel, v[i]) + ret[i] = ec.marshalOEntityEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -248445,23 +346784,24 @@ func (ec *executionContext) marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋ } wg.Wait() - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - return ret } -func (ec *executionContext) marshalOAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx context.Context, sel ast.SelectionSet, v *generated.APIToken) graphql.Marshaler { +func (ec *executionContext) marshalOEntityEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntityEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._APIToken(ctx, sel, v) + return ec._EntityEdge(ctx, sel, v) } -func (ec *executionContext) marshalOAPITokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.APITokenEdge) graphql.Marshaler { +func (ec *executionContext) marshalOEntityHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistory(ctx context.Context, sel ast.SelectionSet, v *generated.EntityHistory) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EntityHistory(ctx, sel, v) +} + +func (ec *executionContext) marshalOEntityHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntityHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -248488,7 +346828,7 @@ func (ec *executionContext) marshalOAPITokenEdge2ᚕᚖgithubᚗcomᚋtheopenlan if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOAPITokenEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOEntityHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -248502,21 +346842,14 @@ func (ec *executionContext) marshalOAPITokenEdge2ᚕᚖgithubᚗcomᚋtheopenlan return ret } -func (ec *executionContext) marshalOAPITokenEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenEdge(ctx context.Context, sel ast.SelectionSet, v *generated.APITokenEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._APITokenEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalOAPITokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenSearchResult(ctx context.Context, sel ast.SelectionSet, v *APITokenSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOEntityHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntityHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._APITokenSearchResult(ctx, sel, v) + return ec._EntityHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.APITokenWhereInput, error) { +func (ec *executionContext) unmarshalOEntityHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -248525,10 +346858,10 @@ func (ec *executionContext) unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋth vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.APITokenWhereInput, len(vSlice)) + res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -248536,22 +346869,7 @@ func (ec *executionContext) unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋth return res, nil } -func (ec *executionContext) unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx context.Context, v interface{}) (*generated.APITokenWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputAPITokenWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOAuditLog2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLog(ctx context.Context, sel ast.SelectionSet, v *AuditLog) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AuditLog(ctx, sel, v) -} - -func (ec *executionContext) marshalOAuditLogEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogEdge(ctx context.Context, sel ast.SelectionSet, v []*AuditLogEdge) graphql.Marshaler { +func (ec *executionContext) marshalOEntityHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -248578,7 +346896,7 @@ func (ec *executionContext) marshalOAuditLogEdge2ᚕᚖgithubᚗcomᚋtheopenlan if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOAuditLogEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -248589,51 +346907,83 @@ func (ec *executionContext) marshalOAuditLogEdge2ᚕᚖgithubᚗcomᚋtheopenlan } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOAuditLogEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogEdge(ctx context.Context, sel ast.SelectionSet, v *AuditLogEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOEntityHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalOEntityHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._AuditLogEdge(ctx, sel, v) + return v } -func (ec *executionContext) unmarshalOAuditLogWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogWhereInput(ctx context.Context, v interface{}) (*AuditLogWhereInput, error) { +func (ec *executionContext) unmarshalOEntityHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryOrder(ctx context.Context, v interface{}) (*generated.EntityHistoryOrder, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputAuditLogWhereInput(ctx, v) + res, err := ec.unmarshalInputEntityHistoryOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - res, err := graphql.UnmarshalBoolean(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) unmarshalOEntityHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntityHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.EntityHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNEntityHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { - res := graphql.MarshalBoolean(v) - return res +func (ec *executionContext) unmarshalOEntityHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntityHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputEntityHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOEntityOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrder(ctx context.Context, v interface{}) (*generated.EntityOrder, error) { if v == nil { return nil, nil } - res, err := graphql.UnmarshalBoolean(v) + res, err := ec.unmarshalInputEntityOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { +func (ec *executionContext) marshalOEntitySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitySearchResult(ctx context.Context, sel ast.SelectionSet, v *EntitySearchResult) graphql.Marshaler { if v == nil { return graphql.Null } - res := graphql.MarshalBoolean(*v) - return res + return ec._EntitySearchResult(ctx, sel, v) } -func (ec *executionContext) marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Contact) graphql.Marshaler { +func (ec *executionContext) marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.EntityType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -248660,7 +347010,7 @@ func (ec *executionContext) marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋc if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, sel, v[i]) + ret[i] = ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -248680,14 +347030,14 @@ func (ec *executionContext) marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋc return ret } -func (ec *executionContext) marshalOContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx context.Context, sel ast.SelectionSet, v *generated.Contact) graphql.Marshaler { +func (ec *executionContext) marshalOEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx context.Context, sel ast.SelectionSet, v *generated.EntityType) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._Contact(ctx, sel, v) + return ec._EntityType(ctx, sel, v) } -func (ec *executionContext) marshalOContactEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ContactEdge) graphql.Marshaler { +func (ec *executionContext) marshalOEntityTypeEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntityTypeEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -248714,7 +347064,7 @@ func (ec *executionContext) marshalOContactEdge2ᚕᚖgithubᚗcomᚋtheopenlane if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOContactEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOEntityTypeEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -248728,21 +347078,21 @@ func (ec *executionContext) marshalOContactEdge2ᚕᚖgithubᚗcomᚋtheopenlane return ret } -func (ec *executionContext) marshalOContactEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ContactEdge) graphql.Marshaler { +func (ec *executionContext) marshalOEntityTypeEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ContactEdge(ctx, sel, v) + return ec._EntityTypeEdge(ctx, sel, v) } -func (ec *executionContext) marshalOContactHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistory(ctx context.Context, sel ast.SelectionSet, v *generated.ContactHistory) graphql.Marshaler { +func (ec *executionContext) marshalOEntityTypeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistory(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ContactHistory(ctx, sel, v) + return ec._EntityTypeHistory(ctx, sel, v) } -func (ec *executionContext) marshalOContactHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ContactHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOEntityTypeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntityTypeHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -248769,7 +347119,7 @@ func (ec *executionContext) marshalOContactHistoryEdge2ᚕᚖgithubᚗcomᚋtheo if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOContactHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOEntityTypeHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -248783,14 +347133,14 @@ func (ec *executionContext) marshalOContactHistoryEdge2ᚕᚖgithubᚗcomᚋtheo return ret } -func (ec *executionContext) marshalOContactHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ContactHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOEntityTypeHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ContactHistoryEdge(ctx, sel, v) + return ec._EntityTypeHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOContactHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOEntityTypeHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -248802,7 +347152,7 @@ func (ec *executionContext) unmarshalOContactHistoryOpType2ᚕgithubᚗcomᚋthe res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -248810,7 +347160,7 @@ func (ec *executionContext) unmarshalOContactHistoryOpType2ᚕgithubᚗcomᚋthe return res, nil } -func (ec *executionContext) marshalOContactHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOEntityTypeHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -248837,7 +347187,7 @@ func (ec *executionContext) marshalOContactHistoryOpType2ᚕgithubᚗcomᚋtheop if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -248857,7 +347207,7 @@ func (ec *executionContext) marshalOContactHistoryOpType2ᚕgithubᚗcomᚋtheop return ret } -func (ec *executionContext) unmarshalOContactHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOEntityTypeHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } @@ -248866,14 +347216,22 @@ func (ec *executionContext) unmarshalOContactHistoryOpType2ᚖgithubᚗcomᚋthe return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOContactHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOEntityTypeHistoryOpType2ᚖ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) unmarshalOContactHistoryUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx context.Context, v interface{}) ([]enums.UserStatus, error) { +func (ec *executionContext) unmarshalOEntityTypeHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryOrder(ctx context.Context, v interface{}) (*generated.EntityTypeHistoryOrder, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputEntityTypeHistoryOrder(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOEntityTypeHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntityTypeHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -248882,10 +347240,10 @@ func (ec *executionContext) unmarshalOContactHistoryUserStatus2ᚕgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]enums.UserStatus, len(vSlice)) + res := make([]*generated.EntityTypeHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, vSlice[i]) + res[i], err = ec.unmarshalNEntityTypeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -248893,70 +347251,30 @@ func (ec *executionContext) unmarshalOContactHistoryUserStatus2ᚕgithubᚗcom return res, nil } -func (ec *executionContext) marshalOContactHistoryUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.UserStatus) graphql.Marshaler { +func (ec *executionContext) unmarshalOEntityTypeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntityTypeHistoryWhereInput, error) { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } + return nil, nil } - - return ret + res, err := ec.unmarshalInputEntityTypeHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOContactHistoryUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (*enums.UserStatus, error) { +func (ec *executionContext) unmarshalOEntityTypeOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrder(ctx context.Context, v interface{}) (*generated.EntityTypeOrder, error) { if v == nil { return nil, nil } - var res = new(enums.UserStatus) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) + res, err := ec.unmarshalInputEntityTypeOrder(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOContactHistoryUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, sel ast.SelectionSet, v *enums.UserStatus) graphql.Marshaler { +func (ec *executionContext) marshalOEntityTypeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeSearchResult(ctx context.Context, sel ast.SelectionSet, v *EntityTypeSearchResult) graphql.Marshaler { if v == nil { return graphql.Null } - return v + return ec._EntityTypeSearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalOContactHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ContactHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntityTypeWhereInput, error) { if v == nil { return nil, nil } @@ -248965,10 +347283,10 @@ func (ec *executionContext) unmarshalOContactHistoryWhereInput2ᚕᚖgithubᚗco vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.ContactHistoryWhereInput, len(vSlice)) + res := make([]*generated.EntityTypeWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNContactHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -248976,22 +347294,15 @@ func (ec *executionContext) unmarshalOContactHistoryWhereInput2ᚕᚖgithubᚗco return res, nil } -func (ec *executionContext) unmarshalOContactHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ContactHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx context.Context, v interface{}) (*generated.EntityTypeWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputContactHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputEntityTypeWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOContactSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactSearchResult(ctx context.Context, sel ast.SelectionSet, v *ContactSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ContactSearchResult(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOContactUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx context.Context, v interface{}) ([]enums.UserStatus, error) { +func (ec *executionContext) unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntityWhereInput, error) { if v == nil { return nil, nil } @@ -249000,10 +347311,10 @@ func (ec *executionContext) unmarshalOContactUserStatus2ᚕgithubᚗcomᚋtheope vSlice = graphql.CoerceList(v) } var err error - res := make([]enums.UserStatus, len(vSlice)) + res := make([]*generated.EntityWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, vSlice[i]) + res[i], err = ec.unmarshalNEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -249011,7 +347322,15 @@ func (ec *executionContext) unmarshalOContactUserStatus2ᚕgithubᚗcomᚋtheope return res, nil } -func (ec *executionContext) marshalOContactUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.UserStatus) graphql.Marshaler { +func (ec *executionContext) unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx context.Context, v interface{}) (*generated.EntityWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputEntityWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Event) graphql.Marshaler { if v == nil { return graphql.Null } @@ -249038,7 +347357,7 @@ func (ec *executionContext) marshalOContactUserStatus2ᚕgithubᚗcomᚋtheopenl if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, sel, v[i]) + ret[i] = ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, sel, v[i]) } if isLen1 { f(i) @@ -249058,131 +347377,117 @@ func (ec *executionContext) marshalOContactUserStatus2ᚕgithubᚗcomᚋtheopenl return ret } -func (ec *executionContext) unmarshalOContactUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (*enums.UserStatus, error) { - if v == nil { - return nil, nil - } - var res = new(enums.UserStatus) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOContactUserStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, sel ast.SelectionSet, v *enums.UserStatus) graphql.Marshaler { +func (ec *executionContext) marshalOEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx context.Context, sel ast.SelectionSet, v *generated.Event) graphql.Marshaler { if v == nil { return graphql.Null } - return v + return ec._Event(ctx, sel, v) } -func (ec *executionContext) unmarshalOContactWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ContactWhereInput, error) { +func (ec *executionContext) marshalOEventEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EventEdge) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - var err error - res := make([]*generated.ContactWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOEventEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) } - } - return res, nil -} -func (ec *executionContext) unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx context.Context, v interface{}) (*generated.ContactWhereInput, error) { - if v == nil { - return nil, nil } - res, err := ec.unmarshalInputContactWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + wg.Wait() + + return ret } -func (ec *executionContext) unmarshalOCreateAPITokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateAPITokenInput, error) { +func (ec *executionContext) marshalOEventEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EventEdge) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreateAPITokenInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateAPITokenInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return ec._EventEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOCreateContactInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateContactInput, error) { +func (ec *executionContext) marshalOEventHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistory(ctx context.Context, sel ast.SelectionSet, v *generated.EventHistory) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreateContactInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateContactInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return ec._EventHistory(ctx, sel, v) } -func (ec *executionContext) unmarshalOCreateDocumentDataInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateDocumentDataInput, error) { +func (ec *executionContext) marshalOEventHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EventHistoryEdge) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - var err error - res := make([]*generated.CreateDocumentDataInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateDocumentDataInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInput(ctx, vSlice[i]) - if err != nil { - return nil, err + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOEventHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) } + } - return res, nil + wg.Wait() + + return ret } -func (ec *executionContext) unmarshalOCreateEntitlementInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateEntitlementInput, error) { +func (ec *executionContext) marshalOEventHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EventHistoryEdge) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreateEntitlementInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateEntitlementInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return ec._EventHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOCreateEntitlementPlanFeatureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanFeatureInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateEntitlementPlanFeatureInput, error) { +func (ec *executionContext) unmarshalOEventHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -249191,10 +347496,10 @@ func (ec *executionContext) unmarshalOCreateEntitlementPlanFeatureInput2ᚕᚖgi vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.CreateEntitlementPlanFeatureInput, len(vSlice)) + res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateEntitlementPlanFeatureInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanFeatureInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNEventHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -249202,87 +347507,70 @@ func (ec *executionContext) unmarshalOCreateEntitlementPlanFeatureInput2ᚕᚖgi return res, nil } -func (ec *executionContext) unmarshalOCreateEntitlementPlanInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateEntitlementPlanInput, error) { +func (ec *executionContext) marshalOEventHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - var err error - res := make([]*generated.CreateEntitlementPlanInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateEntitlementPlanInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntitlementPlanInput(ctx, vSlice[i]) - if err != nil { - return nil, err + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNEventHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) } - } - return res, nil -} -func (ec *executionContext) unmarshalOCreateEntityInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateEntityInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) } - var err error - res := make([]*generated.CreateEntityInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateEntityInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInput(ctx, vSlice[i]) - if err != nil { - return nil, err + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null } } - return res, nil + + return ret } -func (ec *executionContext) unmarshalOCreateEntityTypeInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateEntityTypeInput, error) { +func (ec *executionContext) unmarshalOEventHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreateEntityTypeInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateEntityTypeInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil + var res = new(history.OpType) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCreateEventInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateEventInput, error) { +func (ec *executionContext) marshalOEventHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreateEventInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateEventInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return v } -func (ec *executionContext) unmarshalOCreateFeatureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateFeatureInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateFeatureInput, error) { +func (ec *executionContext) unmarshalOEventHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EventHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -249291,10 +347579,10 @@ func (ec *executionContext) unmarshalOCreateFeatureInput2ᚕᚖgithubᚗcomᚋth vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.CreateFeatureInput, len(vSlice)) + res := make([]*generated.EventHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateFeatureInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateFeatureInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNEventHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -249302,47 +347590,22 @@ func (ec *executionContext) unmarshalOCreateFeatureInput2ᚕᚖgithubᚗcomᚋth return res, nil } -func (ec *executionContext) unmarshalOCreateGroupInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateGroupInput, error) { +func (ec *executionContext) unmarshalOEventHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EventHistoryWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreateGroupInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateGroupInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil + res, err := ec.unmarshalInputEventHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCreateGroupMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateGroupMembershipInput, error) { +func (ec *executionContext) marshalOEventSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventSearchResult(ctx context.Context, sel ast.SelectionSet, v *EventSearchResult) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreateGroupMembershipInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateGroupMembershipInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return ec._EventSearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalOCreateGroupSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateGroupSettingInput, error) { +func (ec *executionContext) unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EventWhereInput, error) { if v == nil { return nil, nil } @@ -249351,10 +347614,10 @@ func (ec *executionContext) unmarshalOCreateGroupSettingInput2ᚕᚖgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.CreateGroupSettingInput, len(vSlice)) + res := make([]*generated.EventWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateGroupSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -249362,143 +347625,172 @@ func (ec *executionContext) unmarshalOCreateGroupSettingInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalOCreateGroupSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx context.Context, v interface{}) (*generated.CreateGroupSettingInput, error) { +func (ec *executionContext) unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx context.Context, v interface{}) (*generated.EventWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputCreateGroupSettingInput(ctx, v) + res, err := ec.unmarshalInputEventWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCreateHushInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateHushInput, error) { +func (ec *executionContext) marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Feature) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - var err error - res := make([]*generated.CreateHushInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateHushInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInput(ctx, vSlice[i]) - if err != nil { - return nil, err + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) } + } - return res, nil + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret } -func (ec *executionContext) unmarshalOCreateIntegrationInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateIntegrationInput, error) { +func (ec *executionContext) marshalOFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx context.Context, sel ast.SelectionSet, v *generated.Feature) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreateIntegrationInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateIntegrationInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return ec._Feature(ctx, sel, v) } -func (ec *executionContext) unmarshalOCreateInviteInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateInviteInput, error) { +func (ec *executionContext) marshalOFeatureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.FeatureEdge) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - var err error - res := make([]*generated.CreateInviteInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateInviteInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInput(ctx, vSlice[i]) - if err != nil { - return nil, err + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOFeatureEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) } + } - return res, nil + wg.Wait() + + return ret } -func (ec *executionContext) unmarshalOCreateNoteInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNoteInput(ctx context.Context, v interface{}) (*generated.CreateNoteInput, error) { +func (ec *executionContext) marshalOFeatureEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureEdge(ctx context.Context, sel ast.SelectionSet, v *generated.FeatureEdge) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - res, err := ec.unmarshalInputCreateNoteInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._FeatureEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOCreateOauthProviderInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOauthProviderInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateOauthProviderInput, error) { +func (ec *executionContext) marshalOFeatureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistory(ctx context.Context, sel ast.SelectionSet, v *generated.FeatureHistory) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreateOauthProviderInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateOauthProviderInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOauthProviderInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return ec._FeatureHistory(ctx, sel, v) } -func (ec *executionContext) unmarshalOCreateOhAuthTooTokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOhAuthTooTokenInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateOhAuthTooTokenInput, error) { +func (ec *executionContext) marshalOFeatureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.FeatureHistoryEdge) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - var err error - res := make([]*generated.CreateOhAuthTooTokenInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateOhAuthTooTokenInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOhAuthTooTokenInput(ctx, vSlice[i]) - if err != nil { - return nil, err + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOFeatureHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + } - return res, nil + wg.Wait() + + return ret } -func (ec *executionContext) unmarshalOCreateOrgMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateOrgMembershipInput, error) { +func (ec *executionContext) marshalOFeatureHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.FeatureHistoryEdge) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreateOrgMembershipInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateOrgMembershipInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return ec._FeatureHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOCreateOrganizationInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateOrganizationInput, error) { +func (ec *executionContext) unmarshalOFeatureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -249507,10 +347799,10 @@ func (ec *executionContext) unmarshalOCreateOrganizationInput2ᚕᚖgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.CreateOrganizationInput, len(vSlice)) + res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateOrganizationInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -249518,55 +347810,70 @@ func (ec *executionContext) unmarshalOCreateOrganizationInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalOCreateOrganizationSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateOrganizationSettingInput, error) { +func (ec *executionContext) marshalOFeatureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - var err error - res := make([]*generated.CreateOrganizationSettingInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateOrganizationSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx, vSlice[i]) - if err != nil { - return nil, err + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) } + } - return res, nil + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret } -func (ec *executionContext) unmarshalOCreateOrganizationSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx context.Context, v interface{}) (*generated.CreateOrganizationSettingInput, error) { +func (ec *executionContext) unmarshalOFeatureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputCreateOrganizationSettingInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + var res = new(history.OpType) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCreatePersonalAccessTokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreatePersonalAccessTokenInput, error) { +func (ec *executionContext) marshalOFeatureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreatePersonalAccessTokenInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreatePersonalAccessTokenInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return v } -func (ec *executionContext) unmarshalOCreateSubscriberInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateSubscriberInput, error) { +func (ec *executionContext) unmarshalOFeatureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.FeatureHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -249575,10 +347882,10 @@ func (ec *executionContext) unmarshalOCreateSubscriberInput2ᚕᚖgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.CreateSubscriberInput, len(vSlice)) + res := make([]*generated.FeatureHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateSubscriberInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -249586,47 +347893,22 @@ func (ec *executionContext) unmarshalOCreateSubscriberInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalOCreateTemplateInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateTemplateInput, error) { +func (ec *executionContext) unmarshalOFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInput(ctx context.Context, v interface{}) (*generated.FeatureHistoryWhereInput, error) { if v == nil { return nil, nil } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreateTemplateInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateTemplateInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil + res, err := ec.unmarshalInputFeatureHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOCreateUserSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateUserSettingInput, error) { +func (ec *executionContext) marshalOFeatureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureSearchResult(ctx context.Context, sel ast.SelectionSet, v *FeatureSearchResult) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.CreateUserSettingInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateUserSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return ec._FeatureSearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalOCreateWebhookInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateWebhookInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateWebhookInput, error) { +func (ec *executionContext) unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.FeatureWhereInput, error) { if v == nil { return nil, nil } @@ -249635,10 +347917,10 @@ func (ec *executionContext) unmarshalOCreateWebhookInput2ᚕᚖgithubᚗcomᚋth vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.CreateWebhookInput, len(vSlice)) + res := make([]*generated.FeatureWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateWebhookInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateWebhookInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -249646,23 +347928,15 @@ func (ec *executionContext) unmarshalOCreateWebhookInput2ᚕᚖgithubᚗcomᚋth return res, nil } -func (ec *executionContext) unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, v interface{}) (*entgql.Cursor[string], error) { +func (ec *executionContext) unmarshalOFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInput(ctx context.Context, v interface{}) (*generated.FeatureWhereInput, error) { if v == nil { return nil, nil } - var res = new(entgql.Cursor[string]) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx context.Context, sel ast.SelectionSet, v *entgql.Cursor[string]) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v + res, err := ec.unmarshalInputFeatureWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.DocumentData) graphql.Marshaler { +func (ec *executionContext) marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.File) graphql.Marshaler { if v == nil { return graphql.Null } @@ -249689,7 +347963,7 @@ func (ec *executionContext) marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlan if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, sel, v[i]) + ret[i] = ec.marshalNFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, sel, v[i]) } if isLen1 { f(i) @@ -249709,14 +347983,14 @@ func (ec *executionContext) marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlan return ret } -func (ec *executionContext) marshalODocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentData) graphql.Marshaler { +func (ec *executionContext) marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx context.Context, sel ast.SelectionSet, v *generated.File) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._DocumentData(ctx, sel, v) + return ec._File(ctx, sel, v) } -func (ec *executionContext) marshalODocumentDataEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.DocumentDataEdge) graphql.Marshaler { +func (ec *executionContext) marshalOFileEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.FileEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -249743,7 +348017,7 @@ func (ec *executionContext) marshalODocumentDataEdge2ᚕᚖgithubᚗcomᚋtheope if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalODocumentDataEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOFileEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -249757,21 +348031,21 @@ func (ec *executionContext) marshalODocumentDataEdge2ᚕᚖgithubᚗcomᚋtheope return ret } -func (ec *executionContext) marshalODocumentDataEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataEdge(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentDataEdge) graphql.Marshaler { +func (ec *executionContext) marshalOFileEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileEdge(ctx context.Context, sel ast.SelectionSet, v *generated.FileEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._DocumentDataEdge(ctx, sel, v) + return ec._FileEdge(ctx, sel, v) } -func (ec *executionContext) marshalODocumentDataHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistory(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentDataHistory) graphql.Marshaler { +func (ec *executionContext) marshalOFileHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistory(ctx context.Context, sel ast.SelectionSet, v *generated.FileHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._DocumentDataHistory(ctx, sel, v) + return ec._FileHistory(ctx, sel, v) } -func (ec *executionContext) marshalODocumentDataHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.DocumentDataHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOFileHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.FileHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -249798,7 +348072,7 @@ func (ec *executionContext) marshalODocumentDataHistoryEdge2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalODocumentDataHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOFileHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -249812,14 +348086,14 @@ func (ec *executionContext) marshalODocumentDataHistoryEdge2ᚕᚖgithubᚗcom return ret } -func (ec *executionContext) marshalODocumentDataHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.DocumentDataHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOFileHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.FileHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._DocumentDataHistoryEdge(ctx, sel, v) + return ec._FileHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalODocumentDataHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOFileHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -249831,7 +348105,7 @@ func (ec *executionContext) unmarshalODocumentDataHistoryOpType2ᚕgithubᚗcom res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -249839,7 +348113,7 @@ func (ec *executionContext) unmarshalODocumentDataHistoryOpType2ᚕgithubᚗcom return res, nil } -func (ec *executionContext) marshalODocumentDataHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOFileHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -249866,7 +348140,7 @@ func (ec *executionContext) marshalODocumentDataHistoryOpType2ᚕgithubᚗcomᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -249886,7 +348160,7 @@ func (ec *executionContext) marshalODocumentDataHistoryOpType2ᚕgithubᚗcomᚋ return ret } -func (ec *executionContext) unmarshalODocumentDataHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOFileHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } @@ -249895,14 +348169,14 @@ func (ec *executionContext) unmarshalODocumentDataHistoryOpType2ᚖgithubᚗcom return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalODocumentDataHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOFileHistoryOpType2ᚖ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) unmarshalODocumentDataHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.DocumentDataHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOFileHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.FileHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -249911,10 +348185,10 @@ func (ec *executionContext) unmarshalODocumentDataHistoryWhereInput2ᚕᚖgithub vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.DocumentDataHistoryWhereInput, len(vSlice)) + res := make([]*generated.FileHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNDocumentDataHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNFileHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -249922,22 +348196,22 @@ func (ec *executionContext) unmarshalODocumentDataHistoryWhereInput2ᚕᚖgithub return res, nil } -func (ec *executionContext) unmarshalODocumentDataHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInput(ctx context.Context, v interface{}) (*generated.DocumentDataHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOFileHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInput(ctx context.Context, v interface{}) (*generated.FileHistoryWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputDocumentDataHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputFileHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalODocumentDataSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataSearchResult(ctx context.Context, sel ast.SelectionSet, v *DocumentDataSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOFileSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileSearchResult(ctx context.Context, sel ast.SelectionSet, v *FileSearchResult) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._DocumentDataSearchResult(ctx, sel, v) + return ec._FileSearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.DocumentDataWhereInput, error) { +func (ec *executionContext) unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.FileWhereInput, error) { if v == nil { return nil, nil } @@ -249946,10 +348220,10 @@ func (ec *executionContext) unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.DocumentDataWhereInput, len(vSlice)) + res := make([]*generated.FileWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNDocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -249957,15 +348231,15 @@ func (ec *executionContext) unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx context.Context, v interface{}) (*generated.DocumentDataWhereInput, error) { +func (ec *executionContext) unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx context.Context, v interface{}) (*generated.FileWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputDocumentDataWhereInput(ctx, v) + res, err := ec.unmarshalInputFileWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Entitlement) graphql.Marshaler { +func (ec *executionContext) marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Group) graphql.Marshaler { if v == nil { return graphql.Null } @@ -249992,7 +348266,7 @@ func (ec *executionContext) marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlane if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx, sel, v[i]) + ret[i] = ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, sel, v[i]) } if isLen1 { f(i) @@ -250012,14 +348286,14 @@ func (ec *executionContext) marshalOEntitlement2ᚕᚖgithubᚗcomᚋtheopenlane return ret } -func (ec *executionContext) marshalOEntitlement2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlement(ctx context.Context, sel ast.SelectionSet, v *generated.Entitlement) graphql.Marshaler { +func (ec *executionContext) marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx context.Context, sel ast.SelectionSet, v *generated.Group) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._Entitlement(ctx, sel, v) + return ec._Group(ctx, sel, v) } -func (ec *executionContext) marshalOEntitlementEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementEdge) graphql.Marshaler { +func (ec *executionContext) marshalOGroupEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -250046,7 +348320,7 @@ func (ec *executionContext) marshalOEntitlementEdge2ᚕᚖgithubᚗcomᚋtheopen if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOEntitlementEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOGroupEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -250060,21 +348334,21 @@ func (ec *executionContext) marshalOEntitlementEdge2ᚕᚖgithubᚗcomᚋtheopen return ret } -func (ec *executionContext) marshalOEntitlementEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementEdge) graphql.Marshaler { +func (ec *executionContext) marshalOGroupEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupEdge(ctx context.Context, sel ast.SelectionSet, v *generated.GroupEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntitlementEdge(ctx, sel, v) + return ec._GroupEdge(ctx, sel, v) } -func (ec *executionContext) marshalOEntitlementHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistory(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementHistory) graphql.Marshaler { +func (ec *executionContext) marshalOGroupHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistory(ctx context.Context, sel ast.SelectionSet, v *generated.GroupHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntitlementHistory(ctx, sel, v) + return ec._GroupHistory(ctx, sel, v) } -func (ec *executionContext) marshalOEntitlementHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOGroupHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -250101,7 +348375,7 @@ func (ec *executionContext) marshalOEntitlementHistoryEdge2ᚕᚖgithubᚗcomᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOEntitlementHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOGroupHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -250115,14 +348389,14 @@ func (ec *executionContext) marshalOEntitlementHistoryEdge2ᚕᚖgithubᚗcomᚋ return ret } -func (ec *executionContext) marshalOEntitlementHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOGroupHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.GroupHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntitlementHistoryEdge(ctx, sel, v) + return ec._GroupHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOEntitlementHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOGroupHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -250134,7 +348408,7 @@ func (ec *executionContext) unmarshalOEntitlementHistoryOpType2ᚕgithubᚗcom res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntitlementHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -250142,7 +348416,7 @@ func (ec *executionContext) unmarshalOEntitlementHistoryOpType2ᚕgithubᚗcom return res, nil } -func (ec *executionContext) marshalOEntitlementHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOGroupHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -250169,7 +348443,7 @@ func (ec *executionContext) marshalOEntitlementHistoryOpType2ᚕgithubᚗcomᚋt if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNEntitlementHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -250189,7 +348463,7 @@ func (ec *executionContext) marshalOEntitlementHistoryOpType2ᚕgithubᚗcomᚋt return ret } -func (ec *executionContext) unmarshalOEntitlementHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOGroupHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } @@ -250198,14 +348472,22 @@ func (ec *executionContext) unmarshalOEntitlementHistoryOpType2ᚖgithubᚗcom return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntitlementHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOGroupHistoryOpType2ᚖ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) unmarshalOEntitlementHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntitlementHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOGroupHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryOrder(ctx context.Context, v interface{}) (*generated.GroupHistoryOrder, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputGroupHistoryOrder(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOGroupHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.GroupHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -250214,10 +348496,10 @@ func (ec *executionContext) unmarshalOEntitlementHistoryWhereInput2ᚕᚖgithub vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.EntitlementHistoryWhereInput, len(vSlice)) + res := make([]*generated.GroupHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntitlementHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNGroupHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -250225,15 +348507,15 @@ func (ec *executionContext) unmarshalOEntitlementHistoryWhereInput2ᚕᚖgithub return res, nil } -func (ec *executionContext) unmarshalOEntitlementHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOGroupHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInput(ctx context.Context, v interface{}) (*generated.GroupHistoryWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputEntitlementHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputGroupHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementPlan) graphql.Marshaler { +func (ec *executionContext) marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupMembership) graphql.Marshaler { if v == nil { return graphql.Null } @@ -250260,7 +348542,7 @@ func (ec *executionContext) marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopen if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx, sel, v[i]) + ret[i] = ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, sel, v[i]) } if isLen1 { f(i) @@ -250280,14 +348562,14 @@ func (ec *executionContext) marshalOEntitlementPlan2ᚕᚖgithubᚗcomᚋtheopen return ret } -func (ec *executionContext) marshalOEntitlementPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlan(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlan) graphql.Marshaler { +func (ec *executionContext) marshalOGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembership) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntitlementPlan(ctx, sel, v) + return ec._GroupMembership(ctx, sel, v) } -func (ec *executionContext) marshalOEntitlementPlanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementPlanEdge) graphql.Marshaler { +func (ec *executionContext) marshalOGroupMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupMembershipEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -250314,7 +348596,7 @@ func (ec *executionContext) marshalOEntitlementPlanEdge2ᚕᚖgithubᚗcomᚋthe if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOEntitlementPlanEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOGroupMembershipEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -250328,68 +348610,21 @@ func (ec *executionContext) marshalOEntitlementPlanEdge2ᚕᚖgithubᚗcomᚋthe return ret } -func (ec *executionContext) marshalOEntitlementPlanEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EntitlementPlanEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalOEntitlementPlanFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementPlanFeature) graphql.Marshaler { +func (ec *executionContext) marshalOGroupMembershipEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipEdge(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembershipEdge) graphql.Marshaler { if v == nil { return graphql.Null } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret + return ec._GroupMembershipEdge(ctx, sel, v) } -func (ec *executionContext) marshalOEntitlementPlanFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeature(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeature) graphql.Marshaler { +func (ec *executionContext) marshalOGroupMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistory(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembershipHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntitlementPlanFeature(ctx, sel, v) + return ec._GroupMembershipHistory(ctx, sel, v) } -func (ec *executionContext) marshalOEntitlementPlanFeatureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementPlanFeatureEdge) graphql.Marshaler { +func (ec *executionContext) marshalOGroupMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupMembershipHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -250416,7 +348651,7 @@ func (ec *executionContext) marshalOEntitlementPlanFeatureEdge2ᚕᚖgithubᚗco if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOEntitlementPlanFeatureEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOGroupMembershipHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -250430,21 +348665,34 @@ func (ec *executionContext) marshalOEntitlementPlanFeatureEdge2ᚕᚖgithubᚗco return ret } -func (ec *executionContext) marshalOEntitlementPlanFeatureEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeatureEdge) graphql.Marshaler { +func (ec *executionContext) marshalOGroupMembershipHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembershipHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntitlementPlanFeatureEdge(ctx, sel, v) + return ec._GroupMembershipHistoryEdge(ctx, sel, v) } -func (ec *executionContext) marshalOEntitlementPlanFeatureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistory(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeatureHistory) graphql.Marshaler { +func (ec *executionContext) unmarshalOGroupMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { - return graphql.Null + return nil, nil } - return ec._EntitlementPlanFeatureHistory(ctx, sel, v) + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalOEntitlementPlanFeatureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementPlanFeatureHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOGroupMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -250471,7 +348719,7 @@ func (ec *executionContext) marshalOEntitlementPlanFeatureHistoryEdge2ᚕᚖgith if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOEntitlementPlanFeatureHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -250482,17 +348730,32 @@ func (ec *executionContext) marshalOEntitlementPlanFeatureHistoryEdge2ᚕᚖgith } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOEntitlementPlanFeatureHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanFeatureHistoryEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOGroupMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalOGroupMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntitlementPlanFeatureHistoryEdge(ctx, sel, v) + return v } -func (ec *executionContext) unmarshalOEntitlementPlanFeatureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOGroupMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, v interface{}) ([]enums.Role, error) { if v == nil { return nil, nil } @@ -250501,10 +348764,10 @@ func (ec *executionContext) unmarshalOEntitlementPlanFeatureHistoryOpType2ᚕgit vSlice = graphql.CoerceList(v) } var err error - res := make([]history.OpType, len(vSlice)) + res := make([]enums.Role, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntitlementPlanFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, vSlice[i]) if err != nil { return nil, err } @@ -250512,7 +348775,7 @@ func (ec *executionContext) unmarshalOEntitlementPlanFeatureHistoryOpType2ᚕgit return res, nil } -func (ec *executionContext) marshalOEntitlementPlanFeatureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOGroupMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Role) graphql.Marshaler { if v == nil { return graphql.Null } @@ -250539,7 +348802,7 @@ func (ec *executionContext) marshalOEntitlementPlanFeatureHistoryOpType2ᚕgithu if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNEntitlementPlanFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, sel, v[i]) } if isLen1 { f(i) @@ -250559,58 +348822,23 @@ func (ec *executionContext) marshalOEntitlementPlanFeatureHistoryOpType2ᚕgithu return ret } -func (ec *executionContext) unmarshalOEntitlementPlanFeatureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOGroupMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (*enums.Role, error) { if v == nil { return nil, nil } - var res = new(history.OpType) + var res = new(enums.Role) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntitlementPlanFeatureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOGroupMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v *enums.Role) graphql.Marshaler { if v == nil { return graphql.Null } return v } -func (ec *executionContext) unmarshalOEntitlementPlanFeatureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntitlementPlanFeatureHistoryWhereInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.EntitlementPlanFeatureHistoryWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntitlementPlanFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) unmarshalOEntitlementPlanFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanFeatureHistoryWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputEntitlementPlanFeatureHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOEntitlementPlanFeatureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanFeatureSearchResult(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanFeatureSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EntitlementPlanFeatureSearchResult(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntitlementPlanFeatureWhereInput, error) { +func (ec *executionContext) unmarshalOGroupMembershipHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.GroupMembershipHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -250619,10 +348847,10 @@ func (ec *executionContext) unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgit vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.EntitlementPlanFeatureWhereInput, len(vSlice)) + res := make([]*generated.GroupMembershipHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntitlementPlanFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNGroupMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -250630,70 +348858,15 @@ func (ec *executionContext) unmarshalOEntitlementPlanFeatureWhereInput2ᚕᚖgit return res, nil } -func (ec *executionContext) unmarshalOEntitlementPlanFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanFeatureWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanFeatureWhereInput, error) { +func (ec *executionContext) unmarshalOGroupMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInput(ctx context.Context, v interface{}) (*generated.GroupMembershipHistoryWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputEntitlementPlanFeatureWhereInput(ctx, v) + res, err := ec.unmarshalInputGroupMembershipHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntitlementPlanHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistory(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanHistory) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EntitlementPlanHistory(ctx, sel, v) -} - -func (ec *executionContext) marshalOEntitlementPlanHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntitlementPlanHistoryEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOEntitlementPlanHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOEntitlementPlanHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntitlementPlanHistoryEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EntitlementPlanHistoryEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOEntitlementPlanHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOGroupMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, v interface{}) ([]enums.Role, error) { if v == nil { return nil, nil } @@ -250702,10 +348875,10 @@ func (ec *executionContext) unmarshalOEntitlementPlanHistoryOpType2ᚕgithubᚗc vSlice = graphql.CoerceList(v) } var err error - res := make([]history.OpType, len(vSlice)) + res := make([]enums.Role, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntitlementPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNGroupMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, vSlice[i]) if err != nil { return nil, err } @@ -250713,7 +348886,7 @@ func (ec *executionContext) unmarshalOEntitlementPlanHistoryOpType2ᚕgithubᚗc return res, nil } -func (ec *executionContext) marshalOEntitlementPlanHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOGroupMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Role) graphql.Marshaler { if v == nil { return graphql.Null } @@ -250740,7 +348913,7 @@ func (ec *executionContext) marshalOEntitlementPlanHistoryOpType2ᚕgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNEntitlementPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNGroupMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, sel, v[i]) } if isLen1 { f(i) @@ -250760,23 +348933,23 @@ func (ec *executionContext) marshalOEntitlementPlanHistoryOpType2ᚕgithubᚗcom return ret } -func (ec *executionContext) unmarshalOEntitlementPlanHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOGroupMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (*enums.Role, error) { if v == nil { return nil, nil } - var res = new(history.OpType) + var res = new(enums.Role) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntitlementPlanHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOGroupMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v *enums.Role) graphql.Marshaler { if v == nil { return graphql.Null } return v } -func (ec *executionContext) unmarshalOEntitlementPlanHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntitlementPlanHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOGroupMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.GroupMembershipWhereInput, error) { if v == nil { return nil, nil } @@ -250785,10 +348958,10 @@ func (ec *executionContext) unmarshalOEntitlementPlanHistoryWhereInput2ᚕᚖgit vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.EntitlementPlanHistoryWhereInput, len(vSlice)) + res := make([]*generated.GroupMembershipWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntitlementPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -250796,85 +348969,30 @@ func (ec *executionContext) unmarshalOEntitlementPlanHistoryWhereInput2ᚕᚖgit return res, nil } -func (ec *executionContext) unmarshalOEntitlementPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx context.Context, v interface{}) (*generated.GroupMembershipWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputEntitlementPlanHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputGroupMembershipWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntitlementPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementPlanSearchResult(ctx context.Context, sel ast.SelectionSet, v *EntitlementPlanSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EntitlementPlanSearchResult(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOEntitlementPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntitlementPlanWhereInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.EntitlementPlanWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntitlementPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) unmarshalOEntitlementPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementPlanWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementPlanWhereInput, error) { +func (ec *executionContext) unmarshalOGroupOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrder(ctx context.Context, v interface{}) (*generated.GroupOrder, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputEntitlementPlanWhereInput(ctx, v) + res, err := ec.unmarshalInputGroupOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntitlementSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitlementSearchResult(ctx context.Context, sel ast.SelectionSet, v *EntitlementSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSearchResult(ctx context.Context, sel ast.SelectionSet, v *GroupSearchResult) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntitlementSearchResult(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOEntitlementWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntitlementWhereInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.EntitlementWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntitlementWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) unmarshalOEntitlementWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntitlementWhereInput(ctx context.Context, v interface{}) (*generated.EntitlementWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputEntitlementWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._GroupSearchResult(ctx, sel, v) } -func (ec *executionContext) marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Entity) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupSetting) graphql.Marshaler { if v == nil { return graphql.Null } @@ -250901,7 +349019,7 @@ func (ec *executionContext) marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋco if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, sel, v[i]) + ret[i] = ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, sel, v[i]) } if isLen1 { f(i) @@ -250921,14 +349039,14 @@ func (ec *executionContext) marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋco return ret } -func (ec *executionContext) marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx context.Context, sel ast.SelectionSet, v *generated.Entity) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSetting) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._Entity(ctx, sel, v) + return ec._GroupSetting(ctx, sel, v) } -func (ec *executionContext) marshalOEntityEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntityEdge) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupSettingEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -250955,7 +349073,7 @@ func (ec *executionContext) marshalOEntityEdge2ᚕᚖgithubᚗcomᚋtheopenlane if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOEntityEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOGroupSettingEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -250969,21 +349087,21 @@ func (ec *executionContext) marshalOEntityEdge2ᚕᚖgithubᚗcomᚋtheopenlane return ret } -func (ec *executionContext) marshalOEntityEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntityEdge) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSettingEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingEdge(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSettingEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntityEdge(ctx, sel, v) + return ec._GroupSettingEdge(ctx, sel, v) } -func (ec *executionContext) marshalOEntityHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistory(ctx context.Context, sel ast.SelectionSet, v *generated.EntityHistory) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistory(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSettingHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntityHistory(ctx, sel, v) + return ec._GroupSettingHistory(ctx, sel, v) } -func (ec *executionContext) marshalOEntityHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntityHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupSettingHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -251010,7 +349128,7 @@ func (ec *executionContext) marshalOEntityHistoryEdge2ᚕᚖgithubᚗcomᚋtheop if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOEntityHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOGroupSettingHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -251024,14 +349142,14 @@ func (ec *executionContext) marshalOEntityHistoryEdge2ᚕᚖgithubᚗcomᚋtheop return ret } -func (ec *executionContext) marshalOEntityHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntityHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSettingHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSettingHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntityHistoryEdge(ctx, sel, v) + return ec._GroupSettingHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOEntityHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOGroupSettingHistoryJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx context.Context, v interface{}) ([]enums.JoinPolicy, error) { if v == nil { return nil, nil } @@ -251040,10 +349158,10 @@ func (ec *executionContext) unmarshalOEntityHistoryOpType2ᚕgithubᚗcomᚋtheo vSlice = graphql.CoerceList(v) } var err error - res := make([]history.OpType, len(vSlice)) + res := make([]enums.JoinPolicy, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, vSlice[i]) if err != nil { return nil, err } @@ -251051,7 +349169,7 @@ func (ec *executionContext) unmarshalOEntityHistoryOpType2ᚕgithubᚗcomᚋtheo return res, nil } -func (ec *executionContext) marshalOEntityHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSettingHistoryJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.JoinPolicy) graphql.Marshaler { if v == nil { return graphql.Null } @@ -251078,7 +349196,7 @@ func (ec *executionContext) marshalOEntityHistoryOpType2ᚕgithubᚗcomᚋtheope if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, sel, v[i]) } if isLen1 { f(i) @@ -251098,31 +349216,23 @@ func (ec *executionContext) marshalOEntityHistoryOpType2ᚕgithubᚗcomᚋtheope return ret } -func (ec *executionContext) unmarshalOEntityHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOGroupSettingHistoryJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, v interface{}) (*enums.JoinPolicy, error) { if v == nil { return nil, nil } - var res = new(history.OpType) + var res = new(enums.JoinPolicy) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntityHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSettingHistoryJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, sel ast.SelectionSet, v *enums.JoinPolicy) graphql.Marshaler { if v == nil { return graphql.Null } return v } -func (ec *executionContext) unmarshalOEntityHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryOrder(ctx context.Context, v interface{}) (*generated.EntityHistoryOrder, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputEntityHistoryOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOEntityHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntityHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOGroupSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -251131,10 +349241,10 @@ func (ec *executionContext) unmarshalOEntityHistoryWhereInput2ᚕᚖgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.EntityHistoryWhereInput, len(vSlice)) + res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntityHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -251142,30 +349252,7 @@ func (ec *executionContext) unmarshalOEntityHistoryWhereInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalOEntityHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntityHistoryWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputEntityHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOEntityOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrder(ctx context.Context, v interface{}) (*generated.EntityOrder, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputEntityOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOEntitySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitySearchResult(ctx context.Context, sel ast.SelectionSet, v *EntitySearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EntitySearchResult(ctx, sel, v) -} - -func (ec *executionContext) marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.EntityType) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -251192,7 +349279,7 @@ func (ec *executionContext) marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlane if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, sel, v[i]) + ret[i] = ec.marshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -251212,14 +349299,43 @@ func (ec *executionContext) marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlane return ret } -func (ec *executionContext) marshalOEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx context.Context, sel ast.SelectionSet, v *generated.EntityType) graphql.Marshaler { +func (ec *executionContext) unmarshalOGroupSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalOGroupSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntityType(ctx, sel, v) + return v } -func (ec *executionContext) marshalOEntityTypeEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntityTypeEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOGroupSettingHistoryVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx context.Context, v interface{}) ([]enums.Visibility, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]enums.Visibility, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOGroupSettingHistoryVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Visibility) graphql.Marshaler { if v == nil { return graphql.Null } @@ -251246,7 +349362,7 @@ func (ec *executionContext) marshalOEntityTypeEdge2ᚕᚖgithubᚗcomᚋtheopenl if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOEntityTypeEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, sel, v[i]) } if isLen1 { f(i) @@ -251257,72 +349373,60 @@ func (ec *executionContext) marshalOEntityTypeEdge2ᚕᚖgithubᚗcomᚋtheopenl } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOEntityTypeEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOGroupSettingHistoryVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, v interface{}) (*enums.Visibility, error) { if v == nil { - return graphql.Null + return nil, nil } - return ec._EntityTypeEdge(ctx, sel, v) + var res = new(enums.Visibility) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntityTypeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistory(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeHistory) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSettingHistoryVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, sel ast.SelectionSet, v *enums.Visibility) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntityTypeHistory(ctx, sel, v) + return v } -func (ec *executionContext) marshalOEntityTypeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EntityTypeHistoryEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOGroupSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.GroupSettingHistoryWhereInput, error) { if v == nil { - return graphql.Null + return nil, nil } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOEntityTypeHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + var err error + res := make([]*generated.GroupSettingHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNGroupSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err } - } - wg.Wait() - - return ret + return res, nil } -func (ec *executionContext) marshalOEntityTypeHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EntityTypeHistoryEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOGroupSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInput(ctx context.Context, v interface{}) (*generated.GroupSettingHistoryWhereInput, error) { if v == nil { - return graphql.Null + return nil, nil } - return ec._EntityTypeHistoryEdge(ctx, sel, v) + res, err := ec.unmarshalInputGroupSettingHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOEntityTypeHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOGroupSettingJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx context.Context, v interface{}) ([]enums.JoinPolicy, error) { if v == nil { return nil, nil } @@ -251331,10 +349435,10 @@ func (ec *executionContext) unmarshalOEntityTypeHistoryOpType2ᚕgithubᚗcomᚋ vSlice = graphql.CoerceList(v) } var err error - res := make([]history.OpType, len(vSlice)) + res := make([]enums.JoinPolicy, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNGroupSettingJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, vSlice[i]) if err != nil { return nil, err } @@ -251342,7 +349446,7 @@ func (ec *executionContext) unmarshalOEntityTypeHistoryOpType2ᚕgithubᚗcomᚋ return res, nil } -func (ec *executionContext) marshalOEntityTypeHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSettingJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.JoinPolicy) graphql.Marshaler { if v == nil { return graphql.Null } @@ -251369,7 +349473,7 @@ func (ec *executionContext) marshalOEntityTypeHistoryOpType2ᚕgithubᚗcomᚋth if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNGroupSettingJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, sel, v[i]) } if isLen1 { f(i) @@ -251389,31 +349493,30 @@ func (ec *executionContext) marshalOEntityTypeHistoryOpType2ᚕgithubᚗcomᚋth return ret } -func (ec *executionContext) unmarshalOEntityTypeHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, v interface{}) (*enums.JoinPolicy, error) { if v == nil { return nil, nil } - var res = new(history.OpType) + var res = new(enums.JoinPolicy) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntityTypeHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, sel ast.SelectionSet, v *enums.JoinPolicy) graphql.Marshaler { if v == nil { return graphql.Null } return v } -func (ec *executionContext) unmarshalOEntityTypeHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryOrder(ctx context.Context, v interface{}) (*generated.EntityTypeHistoryOrder, error) { +func (ec *executionContext) marshalOGroupSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingSearchResult(ctx context.Context, sel ast.SelectionSet, v *GroupSettingSearchResult) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - res, err := ec.unmarshalInputEntityTypeHistoryOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._GroupSettingSearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalOEntityTypeHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntityTypeHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOGroupSettingVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx context.Context, v interface{}) ([]enums.Visibility, error) { if v == nil { return nil, nil } @@ -251422,10 +349525,10 @@ func (ec *executionContext) unmarshalOEntityTypeHistoryWhereInput2ᚕᚖgithub vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.EntityTypeHistoryWhereInput, len(vSlice)) + res := make([]enums.Visibility, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntityTypeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, vSlice[i]) if err != nil { return nil, err } @@ -251433,30 +349536,70 @@ func (ec *executionContext) unmarshalOEntityTypeHistoryWhereInput2ᚕᚖgithub return res, nil } -func (ec *executionContext) unmarshalOEntityTypeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EntityTypeHistoryWhereInput, error) { +func (ec *executionContext) marshalOGroupSettingVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Visibility) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - res, err := ec.unmarshalInputEntityTypeHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret } -func (ec *executionContext) unmarshalOEntityTypeOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrder(ctx context.Context, v interface{}) (*generated.EntityTypeOrder, error) { +func (ec *executionContext) unmarshalOGroupSettingVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, v interface{}) (*enums.Visibility, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputEntityTypeOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + var res = new(enums.Visibility) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntityTypeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeSearchResult(ctx context.Context, sel ast.SelectionSet, v *EntityTypeSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOGroupSettingVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, sel ast.SelectionSet, v *enums.Visibility) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EntityTypeSearchResult(ctx, sel, v) + return v } -func (ec *executionContext) unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntityTypeWhereInput, error) { +func (ec *executionContext) unmarshalOGroupSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.GroupSettingWhereInput, error) { if v == nil { return nil, nil } @@ -251465,10 +349608,10 @@ func (ec *executionContext) unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋ vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.EntityTypeWhereInput, len(vSlice)) + res := make([]*generated.GroupSettingWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -251476,15 +349619,15 @@ func (ec *executionContext) unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋ return res, nil } -func (ec *executionContext) unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx context.Context, v interface{}) (*generated.EntityTypeWhereInput, error) { +func (ec *executionContext) unmarshalOGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx context.Context, v interface{}) (*generated.GroupSettingWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputEntityTypeWhereInput(ctx, v) + res, err := ec.unmarshalInputGroupSettingWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntityWhereInput, error) { +func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.GroupWhereInput, error) { if v == nil { return nil, nil } @@ -251493,10 +349636,10 @@ func (ec *executionContext) unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheo vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.EntityWhereInput, len(vSlice)) + res := make([]*generated.GroupWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -251504,15 +349647,15 @@ func (ec *executionContext) unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheo return res, nil } -func (ec *executionContext) unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx context.Context, v interface{}) (*generated.EntityWhereInput, error) { +func (ec *executionContext) unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx context.Context, v interface{}) (*generated.GroupWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputEntityWhereInput(ctx, v) + res, err := ec.unmarshalInputGroupWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Event) graphql.Marshaler { +func (ec *executionContext) marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Hush) graphql.Marshaler { if v == nil { return graphql.Null } @@ -251539,7 +349682,7 @@ func (ec *executionContext) marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcor if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, sel, v[i]) + ret[i] = ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, sel, v[i]) } if isLen1 { f(i) @@ -251559,14 +349702,14 @@ func (ec *executionContext) marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcor return ret } -func (ec *executionContext) marshalOEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx context.Context, sel ast.SelectionSet, v *generated.Event) graphql.Marshaler { +func (ec *executionContext) marshalOHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx context.Context, sel ast.SelectionSet, v *generated.Hush) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._Event(ctx, sel, v) + return ec._Hush(ctx, sel, v) } -func (ec *executionContext) marshalOEventEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EventEdge) graphql.Marshaler { +func (ec *executionContext) marshalOHushEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.HushEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -251593,7 +349736,7 @@ func (ec *executionContext) marshalOEventEdge2ᚕᚖgithubᚗcomᚋtheopenlane if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOEventEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOHushEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -251607,21 +349750,21 @@ func (ec *executionContext) marshalOEventEdge2ᚕᚖgithubᚗcomᚋtheopenlane return ret } -func (ec *executionContext) marshalOEventEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EventEdge) graphql.Marshaler { +func (ec *executionContext) marshalOHushEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushEdge(ctx context.Context, sel ast.SelectionSet, v *generated.HushEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EventEdge(ctx, sel, v) + return ec._HushEdge(ctx, sel, v) } -func (ec *executionContext) marshalOEventHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistory(ctx context.Context, sel ast.SelectionSet, v *generated.EventHistory) graphql.Marshaler { +func (ec *executionContext) marshalOHushHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistory(ctx context.Context, sel ast.SelectionSet, v *generated.HushHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EventHistory(ctx, sel, v) + return ec._HushHistory(ctx, sel, v) } -func (ec *executionContext) marshalOEventHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.EventHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOHushHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.HushHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -251648,7 +349791,7 @@ func (ec *executionContext) marshalOEventHistoryEdge2ᚕᚖgithubᚗcomᚋtheope if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOEventHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOHushHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -251662,14 +349805,14 @@ func (ec *executionContext) marshalOEventHistoryEdge2ᚕᚖgithubᚗcomᚋtheope return ret } -func (ec *executionContext) marshalOEventHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.EventHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOHushHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.HushHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EventHistoryEdge(ctx, sel, v) + return ec._HushHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOEventHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOHushHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -251681,7 +349824,7 @@ func (ec *executionContext) unmarshalOEventHistoryOpType2ᚕgithubᚗcomᚋtheop res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEventHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -251689,7 +349832,7 @@ func (ec *executionContext) unmarshalOEventHistoryOpType2ᚕgithubᚗcomᚋtheop return res, nil } -func (ec *executionContext) marshalOEventHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOHushHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -251716,7 +349859,7 @@ func (ec *executionContext) marshalOEventHistoryOpType2ᚕgithubᚗcomᚋtheopen if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNEventHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -251736,7 +349879,7 @@ func (ec *executionContext) marshalOEventHistoryOpType2ᚕgithubᚗcomᚋtheopen return ret } -func (ec *executionContext) unmarshalOEventHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOHushHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } @@ -251745,14 +349888,22 @@ func (ec *executionContext) unmarshalOEventHistoryOpType2ᚖgithubᚗcomᚋtheop return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEventHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOHushHistoryOpType2ᚖ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) unmarshalOEventHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EventHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOHushHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryOrder(ctx context.Context, v interface{}) (*generated.HushHistoryOrder, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputHushHistoryOrder(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOHushHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.HushHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -251761,10 +349912,10 @@ func (ec *executionContext) unmarshalOEventHistoryWhereInput2ᚕᚖgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.EventHistoryWhereInput, len(vSlice)) + res := make([]*generated.HushHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEventHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNHushHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -251772,22 +349923,135 @@ func (ec *executionContext) unmarshalOEventHistoryWhereInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalOEventHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInput(ctx context.Context, v interface{}) (*generated.EventHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOHushHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInput(ctx context.Context, v interface{}) (*generated.HushHistoryWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputEventHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputHushHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEventSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventSearchResult(ctx context.Context, sel ast.SelectionSet, v *EventSearchResult) graphql.Marshaler { +func (ec *executionContext) unmarshalOHushOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrder(ctx context.Context, v interface{}) (*generated.HushOrder, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputHushOrder(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOHushWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.HushWhereInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.HushWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx context.Context, v interface{}) (*generated.HushWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputHushWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOID2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + return res +} + +func (ec *executionContext) unmarshalOID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]string, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNID2string(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOID2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._EventSearchResult(ctx, sel, v) + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNID2string(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret } -func (ec *executionContext) unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EventWhereInput, error) { +func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalString(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(*v) + return res +} + +func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { + res, err := graphql.UnmarshalInt(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { + res := graphql.MarshalInt(v) + return res +} + +func (ec *executionContext) unmarshalOInt2int64(ctx context.Context, v interface{}) (int64, error) { + res, err := graphql.UnmarshalInt64(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler { + res := graphql.MarshalInt64(v) + return res +} + +func (ec *executionContext) unmarshalOInt2ᚕint64ᚄ(ctx context.Context, v interface{}) ([]int64, error) { if v == nil { return nil, nil } @@ -251796,10 +350060,10 @@ func (ec *executionContext) unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheop vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.EventWhereInput, len(vSlice)) + res := make([]int64, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNInt2int64(ctx, vSlice[i]) if err != nil { return nil, err } @@ -251807,15 +350071,95 @@ func (ec *executionContext) unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheop return res, nil } -func (ec *executionContext) unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx context.Context, v interface{}) (*generated.EventWhereInput, error) { +func (ec *executionContext) marshalOInt2ᚕint64ᚄ(ctx context.Context, sel ast.SelectionSet, v []int64) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNInt2int64(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputEventWhereInput(ctx, v) + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]int, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNInt2int(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOInt2ᚕintᚄ(ctx context.Context, sel ast.SelectionSet, v []int) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNInt2int(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalInt(v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Feature) graphql.Marshaler { +func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalInt(*v) + return res +} + +func (ec *executionContext) unmarshalOInt2ᚖint64(ctx context.Context, v interface{}) (*int64, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalInt64(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOInt2ᚖint64(ctx context.Context, sel ast.SelectionSet, v *int64) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalInt64(*v) + return res +} + +func (ec *executionContext) marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Integration) graphql.Marshaler { if v == nil { return graphql.Null } @@ -251842,7 +350186,7 @@ func (ec *executionContext) marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋc if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx, sel, v[i]) + ret[i] = ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, sel, v[i]) } if isLen1 { f(i) @@ -251862,14 +350206,14 @@ func (ec *executionContext) marshalOFeature2ᚕᚖgithubᚗcomᚋtheopenlaneᚋc return ret } -func (ec *executionContext) marshalOFeature2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeature(ctx context.Context, sel ast.SelectionSet, v *generated.Feature) graphql.Marshaler { +func (ec *executionContext) marshalOIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx context.Context, sel ast.SelectionSet, v *generated.Integration) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._Feature(ctx, sel, v) + return ec._Integration(ctx, sel, v) } -func (ec *executionContext) marshalOFeatureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.FeatureEdge) graphql.Marshaler { +func (ec *executionContext) marshalOIntegrationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.IntegrationEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -251896,7 +350240,7 @@ func (ec *executionContext) marshalOFeatureEdge2ᚕᚖgithubᚗcomᚋtheopenlane if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOFeatureEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOIntegrationEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -251910,21 +350254,21 @@ func (ec *executionContext) marshalOFeatureEdge2ᚕᚖgithubᚗcomᚋtheopenlane return ret } -func (ec *executionContext) marshalOFeatureEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureEdge(ctx context.Context, sel ast.SelectionSet, v *generated.FeatureEdge) graphql.Marshaler { +func (ec *executionContext) marshalOIntegrationEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationEdge(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._FeatureEdge(ctx, sel, v) + return ec._IntegrationEdge(ctx, sel, v) } -func (ec *executionContext) marshalOFeatureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistory(ctx context.Context, sel ast.SelectionSet, v *generated.FeatureHistory) graphql.Marshaler { +func (ec *executionContext) marshalOIntegrationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistory(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._FeatureHistory(ctx, sel, v) + return ec._IntegrationHistory(ctx, sel, v) } -func (ec *executionContext) marshalOFeatureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.FeatureHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOIntegrationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.IntegrationHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -251951,7 +350295,7 @@ func (ec *executionContext) marshalOFeatureHistoryEdge2ᚕᚖgithubᚗcomᚋtheo if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOFeatureHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOIntegrationHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -251965,14 +350309,14 @@ func (ec *executionContext) marshalOFeatureHistoryEdge2ᚕᚖgithubᚗcomᚋtheo return ret } -func (ec *executionContext) marshalOFeatureHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.FeatureHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOIntegrationHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._FeatureHistoryEdge(ctx, sel, v) + return ec._IntegrationHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOFeatureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOIntegrationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -251984,7 +350328,7 @@ func (ec *executionContext) unmarshalOFeatureHistoryOpType2ᚕgithubᚗcomᚋthe res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNIntegrationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -251992,7 +350336,7 @@ func (ec *executionContext) unmarshalOFeatureHistoryOpType2ᚕgithubᚗcomᚋthe return res, nil } -func (ec *executionContext) marshalOFeatureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOIntegrationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252019,7 +350363,7 @@ func (ec *executionContext) marshalOFeatureHistoryOpType2ᚕgithubᚗcomᚋtheop if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNFeatureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNIntegrationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -252039,7 +350383,7 @@ func (ec *executionContext) marshalOFeatureHistoryOpType2ᚕgithubᚗcomᚋtheop return ret } -func (ec *executionContext) unmarshalOFeatureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOIntegrationHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } @@ -252048,14 +350392,22 @@ func (ec *executionContext) unmarshalOFeatureHistoryOpType2ᚖgithubᚗcomᚋthe return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOFeatureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOIntegrationHistoryOpType2ᚖ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) unmarshalOFeatureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.FeatureHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOIntegrationHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryOrder(ctx context.Context, v interface{}) (*generated.IntegrationHistoryOrder, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputIntegrationHistoryOrder(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOIntegrationHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.IntegrationHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -252064,10 +350416,10 @@ func (ec *executionContext) unmarshalOFeatureHistoryWhereInput2ᚕᚖgithubᚗco vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.FeatureHistoryWhereInput, len(vSlice)) + res := make([]*generated.IntegrationHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNIntegrationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -252075,22 +350427,30 @@ func (ec *executionContext) unmarshalOFeatureHistoryWhereInput2ᚕᚖgithubᚗco return res, nil } -func (ec *executionContext) unmarshalOFeatureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureHistoryWhereInput(ctx context.Context, v interface{}) (*generated.FeatureHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOIntegrationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInput(ctx context.Context, v interface{}) (*generated.IntegrationHistoryWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputFeatureHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputIntegrationHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOFeatureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFeatureSearchResult(ctx context.Context, sel ast.SelectionSet, v *FeatureSearchResult) graphql.Marshaler { +func (ec *executionContext) unmarshalOIntegrationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrder(ctx context.Context, v interface{}) (*generated.IntegrationOrder, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputIntegrationOrder(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOIntegrationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationSearchResult(ctx context.Context, sel ast.SelectionSet, v *IntegrationSearchResult) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._FeatureSearchResult(ctx, sel, v) + return ec._IntegrationSearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.FeatureWhereInput, error) { +func (ec *executionContext) unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.IntegrationWhereInput, error) { if v == nil { return nil, nil } @@ -252099,10 +350459,10 @@ func (ec *executionContext) unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋthe vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.FeatureWhereInput, len(vSlice)) + res := make([]*generated.IntegrationWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -252110,15 +350470,15 @@ func (ec *executionContext) unmarshalOFeatureWhereInput2ᚕᚖgithubᚗcomᚋthe return res, nil } -func (ec *executionContext) unmarshalOFeatureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFeatureWhereInput(ctx context.Context, v interface{}) (*generated.FeatureWhereInput, error) { +func (ec *executionContext) unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx context.Context, v interface{}) (*generated.IntegrationWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputFeatureWhereInput(ctx, v) + res, err := ec.unmarshalInputIntegrationWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.File) graphql.Marshaler { +func (ec *executionContext) marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.InternalPolicy) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252145,7 +350505,7 @@ func (ec *executionContext) marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcore if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, sel, v[i]) + ret[i] = ec.marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, sel, v[i]) } if isLen1 { f(i) @@ -252165,14 +350525,14 @@ func (ec *executionContext) marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcore return ret } -func (ec *executionContext) marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx context.Context, sel ast.SelectionSet, v *generated.File) graphql.Marshaler { +func (ec *executionContext) marshalOInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx context.Context, sel ast.SelectionSet, v *generated.InternalPolicy) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._File(ctx, sel, v) + return ec._InternalPolicy(ctx, sel, v) } -func (ec *executionContext) marshalOFileEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.FileEdge) graphql.Marshaler { +func (ec *executionContext) marshalOInternalPolicyEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.InternalPolicyEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252199,7 +350559,7 @@ func (ec *executionContext) marshalOFileEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOFileEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOInternalPolicyEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -252213,21 +350573,21 @@ func (ec *executionContext) marshalOFileEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋ return ret } -func (ec *executionContext) marshalOFileEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileEdge(ctx context.Context, sel ast.SelectionSet, v *generated.FileEdge) graphql.Marshaler { +func (ec *executionContext) marshalOInternalPolicyEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyEdge(ctx context.Context, sel ast.SelectionSet, v *generated.InternalPolicyEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._FileEdge(ctx, sel, v) + return ec._InternalPolicyEdge(ctx, sel, v) } -func (ec *executionContext) marshalOFileHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistory(ctx context.Context, sel ast.SelectionSet, v *generated.FileHistory) graphql.Marshaler { +func (ec *executionContext) marshalOInternalPolicyHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistory(ctx context.Context, sel ast.SelectionSet, v *generated.InternalPolicyHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._FileHistory(ctx, sel, v) + return ec._InternalPolicyHistory(ctx, sel, v) } -func (ec *executionContext) marshalOFileHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.FileHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOInternalPolicyHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.InternalPolicyHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252254,7 +350614,7 @@ func (ec *executionContext) marshalOFileHistoryEdge2ᚕᚖgithubᚗcomᚋtheopen if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOFileHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOInternalPolicyHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -252268,14 +350628,14 @@ func (ec *executionContext) marshalOFileHistoryEdge2ᚕᚖgithubᚗcomᚋtheopen return ret } -func (ec *executionContext) marshalOFileHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.FileHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOInternalPolicyHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.InternalPolicyHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._FileHistoryEdge(ctx, sel, v) + return ec._InternalPolicyHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOFileHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOInternalPolicyHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -252287,7 +350647,7 @@ func (ec *executionContext) unmarshalOFileHistoryOpType2ᚕgithubᚗcomᚋtheope res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNInternalPolicyHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -252295,7 +350655,7 @@ func (ec *executionContext) unmarshalOFileHistoryOpType2ᚕgithubᚗcomᚋtheope return res, nil } -func (ec *executionContext) marshalOFileHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOInternalPolicyHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252322,7 +350682,7 @@ func (ec *executionContext) marshalOFileHistoryOpType2ᚕgithubᚗcomᚋtheopenl if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNInternalPolicyHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -252342,7 +350702,7 @@ func (ec *executionContext) marshalOFileHistoryOpType2ᚕgithubᚗcomᚋtheopenl return ret } -func (ec *executionContext) unmarshalOFileHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOInternalPolicyHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } @@ -252351,14 +350711,14 @@ func (ec *executionContext) unmarshalOFileHistoryOpType2ᚖgithubᚗcomᚋtheope return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOFileHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOInternalPolicyHistoryOpType2ᚖ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) unmarshalOFileHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.FileHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOInternalPolicyHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.InternalPolicyHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -252367,10 +350727,10 @@ func (ec *executionContext) unmarshalOFileHistoryWhereInput2ᚕᚖgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.FileHistoryWhereInput, len(vSlice)) + res := make([]*generated.InternalPolicyHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNFileHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNInternalPolicyHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -252378,22 +350738,22 @@ func (ec *executionContext) unmarshalOFileHistoryWhereInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalOFileHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInput(ctx context.Context, v interface{}) (*generated.FileHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOInternalPolicyHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryWhereInput(ctx context.Context, v interface{}) (*generated.InternalPolicyHistoryWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputFileHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputInternalPolicyHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOFileSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileSearchResult(ctx context.Context, sel ast.SelectionSet, v *FileSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOInternalPolicySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicySearchResult(ctx context.Context, sel ast.SelectionSet, v *InternalPolicySearchResult) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._FileSearchResult(ctx, sel, v) + return ec._InternalPolicySearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.FileWhereInput, error) { +func (ec *executionContext) unmarshalOInternalPolicyWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.InternalPolicyWhereInput, error) { if v == nil { return nil, nil } @@ -252402,10 +350762,10 @@ func (ec *executionContext) unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheope vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.FileWhereInput, len(vSlice)) + res := make([]*generated.InternalPolicyWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -252413,15 +350773,15 @@ func (ec *executionContext) unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheope return res, nil } -func (ec *executionContext) unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx context.Context, v interface{}) (*generated.FileWhereInput, error) { +func (ec *executionContext) unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx context.Context, v interface{}) (*generated.InternalPolicyWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputFileWhereInput(ctx, v) + res, err := ec.unmarshalInputInternalPolicyWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Group) graphql.Marshaler { +func (ec *executionContext) marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Invite) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252448,7 +350808,7 @@ func (ec *executionContext) marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcor if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, sel, v[i]) + ret[i] = ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, sel, v[i]) } if isLen1 { f(i) @@ -252468,14 +350828,14 @@ func (ec *executionContext) marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcor return ret } -func (ec *executionContext) marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx context.Context, sel ast.SelectionSet, v *generated.Group) graphql.Marshaler { +func (ec *executionContext) marshalOInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx context.Context, sel ast.SelectionSet, v *generated.Invite) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._Group(ctx, sel, v) + return ec._Invite(ctx, sel, v) } -func (ec *executionContext) marshalOGroupEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupEdge) graphql.Marshaler { +func (ec *executionContext) marshalOInviteEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.InviteEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252502,7 +350862,7 @@ func (ec *executionContext) marshalOGroupEdge2ᚕᚖgithubᚗcomᚋtheopenlane if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOGroupEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOInviteEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -252516,21 +350876,34 @@ func (ec *executionContext) marshalOGroupEdge2ᚕᚖgithubᚗcomᚋtheopenlane return ret } -func (ec *executionContext) marshalOGroupEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupEdge(ctx context.Context, sel ast.SelectionSet, v *generated.GroupEdge) graphql.Marshaler { +func (ec *executionContext) marshalOInviteEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteEdge(ctx context.Context, sel ast.SelectionSet, v *generated.InviteEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._GroupEdge(ctx, sel, v) + return ec._InviteEdge(ctx, sel, v) } -func (ec *executionContext) marshalOGroupHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistory(ctx context.Context, sel ast.SelectionSet, v *generated.GroupHistory) graphql.Marshaler { +func (ec *executionContext) unmarshalOInviteInviteStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatusᚄ(ctx context.Context, v interface{}) ([]enums.InviteStatus, error) { if v == nil { - return graphql.Null + return nil, nil } - return ec._GroupHistory(ctx, sel, v) + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]enums.InviteStatus, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalOGroupHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOInviteInviteStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.InviteStatus) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252557,7 +350930,7 @@ func (ec *executionContext) marshalOGroupHistoryEdge2ᚕᚖgithubᚗcomᚋtheope if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOGroupHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, sel, v[i]) } if isLen1 { f(i) @@ -252568,17 +350941,32 @@ func (ec *executionContext) marshalOGroupHistoryEdge2ᚕᚖgithubᚗcomᚋtheope } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOGroupHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.GroupHistoryEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOInviteInviteStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx context.Context, v interface{}) (*enums.InviteStatus, error) { + if v == nil { + return nil, nil + } + var res = new(enums.InviteStatus) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOInviteInviteStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx context.Context, sel ast.SelectionSet, v *enums.InviteStatus) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._GroupHistoryEdge(ctx, sel, v) + return v } -func (ec *executionContext) unmarshalOGroupHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOInviteRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, v interface{}) ([]enums.Role, error) { if v == nil { return nil, nil } @@ -252587,10 +350975,10 @@ func (ec *executionContext) unmarshalOGroupHistoryOpType2ᚕgithubᚗcomᚋtheop vSlice = graphql.CoerceList(v) } var err error - res := make([]history.OpType, len(vSlice)) + res := make([]enums.Role, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, vSlice[i]) if err != nil { return nil, err } @@ -252598,7 +350986,7 @@ func (ec *executionContext) unmarshalOGroupHistoryOpType2ᚕgithubᚗcomᚋtheop return res, nil } -func (ec *executionContext) marshalOGroupHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOInviteRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Role) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252625,7 +351013,7 @@ func (ec *executionContext) marshalOGroupHistoryOpType2ᚕgithubᚗcomᚋtheopen if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, sel, v[i]) } if isLen1 { f(i) @@ -252645,31 +351033,23 @@ func (ec *executionContext) marshalOGroupHistoryOpType2ᚕgithubᚗcomᚋtheopen return ret } -func (ec *executionContext) unmarshalOGroupHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOInviteRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (*enums.Role, error) { if v == nil { return nil, nil } - var res = new(history.OpType) + var res = new(enums.Role) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOGroupHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOInviteRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v *enums.Role) graphql.Marshaler { if v == nil { return graphql.Null } return v } -func (ec *executionContext) unmarshalOGroupHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryOrder(ctx context.Context, v interface{}) (*generated.GroupHistoryOrder, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputGroupHistoryOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOGroupHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.GroupHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOInviteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.InviteWhereInput, error) { if v == nil { return nil, nil } @@ -252678,10 +351058,10 @@ func (ec *executionContext) unmarshalOGroupHistoryWhereInput2ᚕᚖgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.GroupHistoryWhereInput, len(vSlice)) + res := make([]*generated.InviteWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -252689,69 +351069,47 @@ func (ec *executionContext) unmarshalOGroupHistoryWhereInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalOGroupHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInput(ctx context.Context, v interface{}) (*generated.GroupHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx context.Context, v interface{}) (*generated.InviteWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputGroupHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputInviteWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupMembership) graphql.Marshaler { +func (ec *executionContext) unmarshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx context.Context, v interface{}) (customtypes.JSONObject, error) { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) + return nil, nil } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } + var res customtypes.JSONObject + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} +func (ec *executionContext) marshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx context.Context, sel ast.SelectionSet, v customtypes.JSONObject) graphql.Marshaler { + if v == nil { + return graphql.Null } - wg.Wait() + return v +} - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } +func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { + if v == nil { + return nil, nil } - - return ret + res, err := graphql.UnmarshalMap(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembership) graphql.Marshaler { +func (ec *executionContext) marshalOMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._GroupMembership(ctx, sel, v) + res := graphql.MarshalMap(v) + return res } -func (ec *executionContext) marshalOGroupMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupMembershipEdge) graphql.Marshaler { +func (ec *executionContext) marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Narrative) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252778,7 +351136,7 @@ func (ec *executionContext) marshalOGroupMembershipEdge2ᚕᚖgithubᚗcomᚋthe if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOGroupMembershipEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, sel, v[i]) } if isLen1 { f(i) @@ -252789,24 +351147,23 @@ func (ec *executionContext) marshalOGroupMembershipEdge2ᚕᚖgithubᚗcomᚋthe } wg.Wait() - return ret -} - -func (ec *executionContext) marshalOGroupMembershipEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipEdge(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembershipEdge) graphql.Marshaler { - if v == nil { - return graphql.Null + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } } - return ec._GroupMembershipEdge(ctx, sel, v) + + return ret } -func (ec *executionContext) marshalOGroupMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistory(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembershipHistory) graphql.Marshaler { +func (ec *executionContext) marshalONarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx context.Context, sel ast.SelectionSet, v *generated.Narrative) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._GroupMembershipHistory(ctx, sel, v) + return ec._Narrative(ctx, sel, v) } -func (ec *executionContext) marshalOGroupMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupMembershipHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalONarrativeEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.NarrativeEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252833,7 +351190,7 @@ func (ec *executionContext) marshalOGroupMembershipHistoryEdge2ᚕᚖgithubᚗco if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOGroupMembershipHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalONarrativeEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -252847,34 +351204,21 @@ func (ec *executionContext) marshalOGroupMembershipHistoryEdge2ᚕᚖgithubᚗco return ret } -func (ec *executionContext) marshalOGroupMembershipHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.GroupMembershipHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalONarrativeEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeEdge(ctx context.Context, sel ast.SelectionSet, v *generated.NarrativeEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._GroupMembershipHistoryEdge(ctx, sel, v) + return ec._NarrativeEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOGroupMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) marshalONarrativeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistory(ctx context.Context, sel ast.SelectionSet, v *generated.NarrativeHistory) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]history.OpType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return ec._NarrativeHistory(ctx, sel, v) } -func (ec *executionContext) marshalOGroupMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalONarrativeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.NarrativeHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252901,7 +351245,7 @@ func (ec *executionContext) marshalOGroupMembershipHistoryOpType2ᚕgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalONarrativeHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -252912,32 +351256,17 @@ func (ec *executionContext) marshalOGroupMembershipHistoryOpType2ᚕgithubᚗcom } wg.Wait() - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - return ret } -func (ec *executionContext) unmarshalOGroupMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalOGroupMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalONarrativeHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.NarrativeHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return v + return ec._NarrativeHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOGroupMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, v interface{}) ([]enums.Role, error) { +func (ec *executionContext) unmarshalONarrativeHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -252946,10 +351275,10 @@ func (ec *executionContext) unmarshalOGroupMembershipHistoryRole2ᚕgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]enums.Role, len(vSlice)) + res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, vSlice[i]) + res[i], err = ec.unmarshalNNarrativeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -252957,7 +351286,7 @@ func (ec *executionContext) unmarshalOGroupMembershipHistoryRole2ᚕgithubᚗcom return res, nil } -func (ec *executionContext) marshalOGroupMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Role) graphql.Marshaler { +func (ec *executionContext) marshalONarrativeHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -252984,7 +351313,7 @@ func (ec *executionContext) marshalOGroupMembershipHistoryRole2ᚕgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, sel, v[i]) + ret[i] = ec.marshalNNarrativeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253004,23 +351333,23 @@ func (ec *executionContext) marshalOGroupMembershipHistoryRole2ᚕgithubᚗcom return ret } -func (ec *executionContext) unmarshalOGroupMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (*enums.Role, error) { +func (ec *executionContext) unmarshalONarrativeHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } - var res = new(enums.Role) + var res = new(history.OpType) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOGroupMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v *enums.Role) graphql.Marshaler { +func (ec *executionContext) marshalONarrativeHistoryOpType2ᚖ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) unmarshalOGroupMembershipHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.GroupMembershipHistoryWhereInput, error) { +func (ec *executionContext) unmarshalONarrativeHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.NarrativeHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -253029,10 +351358,10 @@ func (ec *executionContext) unmarshalOGroupMembershipHistoryWhereInput2ᚕᚖgit vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.GroupMembershipHistoryWhereInput, len(vSlice)) + res := make([]*generated.NarrativeHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNNarrativeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -253040,15 +351369,22 @@ func (ec *executionContext) unmarshalOGroupMembershipHistoryWhereInput2ᚕᚖgit return res, nil } -func (ec *executionContext) unmarshalOGroupMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInput(ctx context.Context, v interface{}) (*generated.GroupMembershipHistoryWhereInput, error) { +func (ec *executionContext) unmarshalONarrativeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryWhereInput(ctx context.Context, v interface{}) (*generated.NarrativeHistoryWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputGroupMembershipHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputNarrativeHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOGroupMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, v interface{}) ([]enums.Role, error) { +func (ec *executionContext) marshalONarrativeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeSearchResult(ctx context.Context, sel ast.SelectionSet, v *NarrativeSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._NarrativeSearchResult(ctx, sel, v) +} + +func (ec *executionContext) unmarshalONarrativeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.NarrativeWhereInput, error) { if v == nil { return nil, nil } @@ -253057,10 +351393,10 @@ func (ec *executionContext) unmarshalOGroupMembershipRole2ᚕgithubᚗcomᚋtheo vSlice = graphql.CoerceList(v) } var err error - res := make([]enums.Role, len(vSlice)) + res := make([]*generated.NarrativeWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, vSlice[i]) + res[i], err = ec.unmarshalNNarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -253068,7 +351404,22 @@ func (ec *executionContext) unmarshalOGroupMembershipRole2ᚕgithubᚗcomᚋtheo return res, nil } -func (ec *executionContext) marshalOGroupMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Role) graphql.Marshaler { +func (ec *executionContext) unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx context.Context, v interface{}) (*generated.NarrativeWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputNarrativeWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalONode2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx context.Context, sel ast.SelectionSet, v generated.Noder) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Node(ctx, sel, v) +} + +func (ec *executionContext) marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Note) graphql.Marshaler { if v == nil { return graphql.Null } @@ -253095,7 +351446,7 @@ func (ec *executionContext) marshalOGroupMembershipRole2ᚕgithubᚗcomᚋtheope if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNGroupMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, sel, v[i]) + ret[i] = ec.marshalNNote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253115,66 +351466,14 @@ func (ec *executionContext) marshalOGroupMembershipRole2ᚕgithubᚗcomᚋtheope return ret } -func (ec *executionContext) unmarshalOGroupMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (*enums.Role, error) { - if v == nil { - return nil, nil - } - var res = new(enums.Role) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOGroupMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v *enums.Role) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) unmarshalOGroupMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.GroupMembershipWhereInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.GroupMembershipWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx context.Context, v interface{}) (*generated.GroupMembershipWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputGroupMembershipWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOGroupOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrder(ctx context.Context, v interface{}) (*generated.GroupOrder, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputGroupOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOGroupSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSearchResult(ctx context.Context, sel ast.SelectionSet, v *GroupSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalONote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx context.Context, sel ast.SelectionSet, v *generated.Note) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._GroupSearchResult(ctx, sel, v) + return ec._Note(ctx, sel, v) } -func (ec *executionContext) marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupSetting) graphql.Marshaler { +func (ec *executionContext) marshalONoteEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.NoteEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -253201,7 +351500,7 @@ func (ec *executionContext) marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlan if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, sel, v[i]) + ret[i] = ec.marshalONoteEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253212,23 +351511,24 @@ func (ec *executionContext) marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlan } wg.Wait() - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - return ret } -func (ec *executionContext) marshalOGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSetting) graphql.Marshaler { +func (ec *executionContext) marshalONoteEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteEdge(ctx context.Context, sel ast.SelectionSet, v *generated.NoteEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._GroupSetting(ctx, sel, v) + return ec._NoteEdge(ctx, sel, v) } -func (ec *executionContext) marshalOGroupSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupSettingEdge) graphql.Marshaler { +func (ec *executionContext) marshalONoteHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistory(ctx context.Context, sel ast.SelectionSet, v *generated.NoteHistory) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._NoteHistory(ctx, sel, v) +} + +func (ec *executionContext) marshalONoteHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.NoteHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -253255,7 +351555,7 @@ func (ec *executionContext) marshalOGroupSettingEdge2ᚕᚖgithubᚗcomᚋtheope if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOGroupSettingEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingEdge(ctx, sel, v[i]) + ret[i] = ec.marshalONoteHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253269,21 +351569,34 @@ func (ec *executionContext) marshalOGroupSettingEdge2ᚕᚖgithubᚗcomᚋtheope return ret } -func (ec *executionContext) marshalOGroupSettingEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingEdge(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSettingEdge) graphql.Marshaler { +func (ec *executionContext) marshalONoteHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.NoteHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._GroupSettingEdge(ctx, sel, v) + return ec._NoteHistoryEdge(ctx, sel, v) } -func (ec *executionContext) marshalOGroupSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistory(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSettingHistory) graphql.Marshaler { +func (ec *executionContext) unmarshalONoteHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { - return graphql.Null + return nil, nil } - return ec._GroupSettingHistory(ctx, sel, v) + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalOGroupSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupSettingHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalONoteHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -253310,7 +351623,7 @@ func (ec *executionContext) marshalOGroupSettingHistoryEdge2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOGroupSettingHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253321,17 +351634,32 @@ func (ec *executionContext) marshalOGroupSettingHistoryEdge2ᚕᚖgithubᚗcom } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOGroupSettingHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.GroupSettingHistoryEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalONoteHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalONoteHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._GroupSettingHistoryEdge(ctx, sel, v) + return v } -func (ec *executionContext) unmarshalOGroupSettingHistoryJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx context.Context, v interface{}) ([]enums.JoinPolicy, error) { +func (ec *executionContext) unmarshalONoteHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.NoteHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -253340,10 +351668,10 @@ func (ec *executionContext) unmarshalOGroupSettingHistoryJoinPolicy2ᚕgithubᚗ vSlice = graphql.CoerceList(v) } var err error - res := make([]enums.JoinPolicy, len(vSlice)) + res := make([]*generated.NoteHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, vSlice[i]) + res[i], err = ec.unmarshalNNoteHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -253351,7 +351679,43 @@ func (ec *executionContext) unmarshalOGroupSettingHistoryJoinPolicy2ᚕgithubᚗ return res, nil } -func (ec *executionContext) marshalOGroupSettingHistoryJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.JoinPolicy) graphql.Marshaler { +func (ec *executionContext) unmarshalONoteHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInput(ctx context.Context, v interface{}) (*generated.NoteHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputNoteHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.NoteWhereInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.NoteWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNNoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx context.Context, v interface{}) (*generated.NoteWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputNoteWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOOauthProvider2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.OauthProvider) graphql.Marshaler { if v == nil { return graphql.Null } @@ -253378,7 +351742,7 @@ func (ec *executionContext) marshalOGroupSettingHistoryJoinPolicy2ᚕgithubᚗco if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, sel, v[i]) + ret[i] = ec.marshalNOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253398,43 +351762,69 @@ func (ec *executionContext) marshalOGroupSettingHistoryJoinPolicy2ᚕgithubᚗco return ret } -func (ec *executionContext) unmarshalOGroupSettingHistoryJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, v interface{}) (*enums.JoinPolicy, error) { +func (ec *executionContext) marshalOOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProvider) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - var res = new(enums.JoinPolicy) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) + return ec._OauthProvider(ctx, sel, v) } -func (ec *executionContext) marshalOGroupSettingHistoryJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, sel ast.SelectionSet, v *enums.JoinPolicy) graphql.Marshaler { +func (ec *executionContext) marshalOOauthProviderEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OauthProviderEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return v + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOOauthProviderEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret } -func (ec *executionContext) unmarshalOGroupSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) marshalOOauthProviderEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProviderEdge) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) + return graphql.Null } - var err error - res := make([]history.OpType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return ec._OauthProviderEdge(ctx, sel, v) +} + +func (ec *executionContext) marshalOOauthProviderHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistory(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProviderHistory) graphql.Marshaler { + if v == nil { + return graphql.Null } - return res, nil + return ec._OauthProviderHistory(ctx, sel, v) } -func (ec *executionContext) marshalOGroupSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOOauthProviderHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OauthProviderHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -253461,7 +351851,7 @@ func (ec *executionContext) marshalOGroupSettingHistoryOpType2ᚕgithubᚗcomᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalOOauthProviderHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253472,32 +351862,17 @@ func (ec *executionContext) marshalOGroupSettingHistoryOpType2ᚕgithubᚗcomᚋ } wg.Wait() - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - return ret } -func (ec *executionContext) unmarshalOGroupSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalOGroupSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOOauthProviderHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProviderHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return v + return ec._OauthProviderHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOGroupSettingHistoryVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx context.Context, v interface{}) ([]enums.Visibility, error) { +func (ec *executionContext) unmarshalOOauthProviderHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -253506,10 +351881,10 @@ func (ec *executionContext) unmarshalOGroupSettingHistoryVisibility2ᚕgithubᚗ vSlice = graphql.CoerceList(v) } var err error - res := make([]enums.Visibility, len(vSlice)) + res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOauthProviderHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -253517,7 +351892,7 @@ func (ec *executionContext) unmarshalOGroupSettingHistoryVisibility2ᚕgithubᚗ return res, nil } -func (ec *executionContext) marshalOGroupSettingHistoryVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Visibility) graphql.Marshaler { +func (ec *executionContext) marshalOOauthProviderHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -253544,7 +351919,7 @@ func (ec *executionContext) marshalOGroupSettingHistoryVisibility2ᚕgithubᚗco if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, sel, v[i]) + ret[i] = ec.marshalNOauthProviderHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253564,23 +351939,23 @@ func (ec *executionContext) marshalOGroupSettingHistoryVisibility2ᚕgithubᚗco return ret } -func (ec *executionContext) unmarshalOGroupSettingHistoryVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, v interface{}) (*enums.Visibility, error) { +func (ec *executionContext) unmarshalOOauthProviderHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } - var res = new(enums.Visibility) + var res = new(history.OpType) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOGroupSettingHistoryVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, sel ast.SelectionSet, v *enums.Visibility) graphql.Marshaler { +func (ec *executionContext) marshalOOauthProviderHistoryOpType2ᚖ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) unmarshalOGroupSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.GroupSettingHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOOauthProviderHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OauthProviderHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -253589,10 +351964,10 @@ func (ec *executionContext) unmarshalOGroupSettingHistoryWhereInput2ᚕᚖgithub vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.GroupSettingHistoryWhereInput, len(vSlice)) + res := make([]*generated.OauthProviderHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOauthProviderHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -253600,15 +351975,22 @@ func (ec *executionContext) unmarshalOGroupSettingHistoryWhereInput2ᚕᚖgithub return res, nil } -func (ec *executionContext) unmarshalOGroupSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInput(ctx context.Context, v interface{}) (*generated.GroupSettingHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOOauthProviderHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OauthProviderHistoryWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputGroupSettingHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputOauthProviderHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOGroupSettingJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx context.Context, v interface{}) ([]enums.JoinPolicy, error) { +func (ec *executionContext) marshalOOauthProviderSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderSearchResult(ctx context.Context, sel ast.SelectionSet, v *OauthProviderSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._OauthProviderSearchResult(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOOauthProviderWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OauthProviderWhereInput, error) { if v == nil { return nil, nil } @@ -253617,10 +351999,10 @@ func (ec *executionContext) unmarshalOGroupSettingJoinPolicy2ᚕgithubᚗcomᚋt vSlice = graphql.CoerceList(v) } var err error - res := make([]enums.JoinPolicy, len(vSlice)) + res := make([]*generated.OauthProviderWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupSettingJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOauthProviderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -253628,7 +352010,15 @@ func (ec *executionContext) unmarshalOGroupSettingJoinPolicy2ᚕgithubᚗcomᚋt return res, nil } -func (ec *executionContext) marshalOGroupSettingJoinPolicy2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicyᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.JoinPolicy) graphql.Marshaler { +func (ec *executionContext) unmarshalOOauthProviderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInput(ctx context.Context, v interface{}) (*generated.OauthProviderWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputOauthProviderWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOOhAuthTooToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.OhAuthTooToken) graphql.Marshaler { if v == nil { return graphql.Null } @@ -253655,7 +352045,7 @@ func (ec *executionContext) marshalOGroupSettingJoinPolicy2ᚕgithubᚗcomᚋthe if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNGroupSettingJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, sel, v[i]) + ret[i] = ec.marshalNOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253675,50 +352065,14 @@ func (ec *executionContext) marshalOGroupSettingJoinPolicy2ᚕgithubᚗcomᚋthe return ret } -func (ec *executionContext) unmarshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, v interface{}) (*enums.JoinPolicy, error) { - if v == nil { - return nil, nil - } - var res = new(enums.JoinPolicy) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx context.Context, sel ast.SelectionSet, v *enums.JoinPolicy) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) marshalOGroupSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingSearchResult(ctx context.Context, sel ast.SelectionSet, v *GroupSettingSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx context.Context, sel ast.SelectionSet, v *generated.OhAuthTooToken) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._GroupSettingSearchResult(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOGroupSettingVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx context.Context, v interface{}) ([]enums.Visibility, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]enums.Visibility, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil + return ec._OhAuthTooToken(ctx, sel, v) } -func (ec *executionContext) marshalOGroupSettingVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Visibility) graphql.Marshaler { +func (ec *executionContext) marshalOOhAuthTooTokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OhAuthTooTokenEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -253745,7 +352099,7 @@ func (ec *executionContext) marshalOGroupSettingVisibility2ᚕgithubᚗcomᚋthe if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, sel, v[i]) + ret[i] = ec.marshalOOhAuthTooTokenEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253756,60 +352110,24 @@ func (ec *executionContext) marshalOGroupSettingVisibility2ᚕgithubᚗcomᚋthe } wg.Wait() - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - return ret } -func (ec *executionContext) unmarshalOGroupSettingVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, v interface{}) (*enums.Visibility, error) { - if v == nil { - return nil, nil - } - var res = new(enums.Visibility) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOGroupSettingVisibility2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, sel ast.SelectionSet, v *enums.Visibility) graphql.Marshaler { +func (ec *executionContext) marshalOOhAuthTooTokenEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OhAuthTooTokenEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return v -} - -func (ec *executionContext) unmarshalOGroupSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.GroupSettingWhereInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.GroupSettingWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil + return ec._OhAuthTooTokenEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx context.Context, v interface{}) (*generated.GroupSettingWhereInput, error) { +func (ec *executionContext) marshalOOhAuthTooTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenSearchResult(ctx context.Context, sel ast.SelectionSet, v *OhAuthTooTokenSearchResult) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - res, err := ec.unmarshalInputGroupSettingWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._OhAuthTooTokenSearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.GroupWhereInput, error) { +func (ec *executionContext) unmarshalOOhAuthTooTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OhAuthTooTokenWhereInput, error) { if v == nil { return nil, nil } @@ -253818,10 +352136,10 @@ func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheop vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.GroupWhereInput, len(vSlice)) + res := make([]*generated.OhAuthTooTokenWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOhAuthTooTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -253829,15 +352147,15 @@ func (ec *executionContext) unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheop return res, nil } -func (ec *executionContext) unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx context.Context, v interface{}) (*generated.GroupWhereInput, error) { +func (ec *executionContext) unmarshalOOhAuthTooTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInput(ctx context.Context, v interface{}) (*generated.OhAuthTooTokenWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputGroupWhereInput(ctx, v) + res, err := ec.unmarshalInputOhAuthTooTokenWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Hush) graphql.Marshaler { +func (ec *executionContext) marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.OrgMembership) graphql.Marshaler { if v == nil { return graphql.Null } @@ -253864,7 +352182,7 @@ func (ec *executionContext) marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcore if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, sel, v[i]) + ret[i] = ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253884,14 +352202,14 @@ func (ec *executionContext) marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcore return ret } -func (ec *executionContext) marshalOHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx context.Context, sel ast.SelectionSet, v *generated.Hush) graphql.Marshaler { +func (ec *executionContext) marshalOOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembership) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._Hush(ctx, sel, v) + return ec._OrgMembership(ctx, sel, v) } -func (ec *executionContext) marshalOHushEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.HushEdge) graphql.Marshaler { +func (ec *executionContext) marshalOOrgMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OrgMembershipEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -253918,7 +352236,7 @@ func (ec *executionContext) marshalOHushEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOHushEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOOrgMembershipEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253932,21 +352250,21 @@ func (ec *executionContext) marshalOHushEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋ return ret } -func (ec *executionContext) marshalOHushEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushEdge(ctx context.Context, sel ast.SelectionSet, v *generated.HushEdge) graphql.Marshaler { +func (ec *executionContext) marshalOOrgMembershipEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembershipEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._HushEdge(ctx, sel, v) + return ec._OrgMembershipEdge(ctx, sel, v) } -func (ec *executionContext) marshalOHushHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistory(ctx context.Context, sel ast.SelectionSet, v *generated.HushHistory) graphql.Marshaler { +func (ec *executionContext) marshalOOrgMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistory(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembershipHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._HushHistory(ctx, sel, v) + return ec._OrgMembershipHistory(ctx, sel, v) } -func (ec *executionContext) marshalOHushHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.HushHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOOrgMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OrgMembershipHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -253973,7 +352291,7 @@ func (ec *executionContext) marshalOHushHistoryEdge2ᚕᚖgithubᚗcomᚋtheopen if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOHushHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOOrgMembershipHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -253987,14 +352305,14 @@ func (ec *executionContext) marshalOHushHistoryEdge2ᚕᚖgithubᚗcomᚋtheopen return ret } -func (ec *executionContext) marshalOHushHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.HushHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOOrgMembershipHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembershipHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._HushHistoryEdge(ctx, sel, v) + return ec._OrgMembershipHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOHushHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOOrgMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -254006,7 +352324,7 @@ func (ec *executionContext) unmarshalOHushHistoryOpType2ᚕgithubᚗcomᚋtheope res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -254014,7 +352332,7 @@ func (ec *executionContext) unmarshalOHushHistoryOpType2ᚕgithubᚗcomᚋtheope return res, nil } -func (ec *executionContext) marshalOHushHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOOrgMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -254041,7 +352359,7 @@ func (ec *executionContext) marshalOHushHistoryOpType2ᚕgithubᚗcomᚋtheopenl if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -254061,7 +352379,7 @@ func (ec *executionContext) marshalOHushHistoryOpType2ᚕgithubᚗcomᚋtheopenl return ret } -func (ec *executionContext) unmarshalOHushHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOOrgMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } @@ -254070,22 +352388,14 @@ func (ec *executionContext) unmarshalOHushHistoryOpType2ᚖgithubᚗcomᚋtheope return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOHushHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOOrgMembershipHistoryOpType2ᚖ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) unmarshalOHushHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryOrder(ctx context.Context, v interface{}) (*generated.HushHistoryOrder, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputHushHistoryOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOHushHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.HushHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOOrgMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, v interface{}) ([]enums.Role, error) { if v == nil { return nil, nil } @@ -254094,10 +352404,10 @@ func (ec *executionContext) unmarshalOHushHistoryWhereInput2ᚕᚖgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.HushHistoryWhereInput, len(vSlice)) + res := make([]enums.Role, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNHushHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, vSlice[i]) if err != nil { return nil, err } @@ -254105,88 +352415,43 @@ func (ec *executionContext) unmarshalOHushHistoryWhereInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalOHushHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInput(ctx context.Context, v interface{}) (*generated.HushHistoryWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputHushHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOHushOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrder(ctx context.Context, v interface{}) (*generated.HushOrder, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputHushOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOHushWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.HushWhereInput, error) { +func (ec *executionContext) marshalOOrgMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Role) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - var err error - res := make([]*generated.HushWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], } - } - return res, nil -} - -func (ec *executionContext) unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx context.Context, v interface{}) (*generated.HushWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputHushWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOID2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - return res -} - -func (ec *executionContext) unmarshalOID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]string, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNID2string(ctx, vSlice[i]) - if err != nil { - return nil, err + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) } - } - return res, nil -} -func (ec *executionContext) marshalOID2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNID2string(ctx, sel, v[i]) } + wg.Wait() for _, e := range ret { if e == graphql.Null { @@ -254197,43 +352462,23 @@ func (ec *executionContext) marshalOID2ᚕstringᚄ(ctx context.Context, sel ast return ret } -func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOOrgMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (*enums.Role, error) { if v == nil { return nil, nil } - res, err := graphql.UnmarshalString(v) - return &res, graphql.ErrorOnPath(ctx, err) + var res = new(enums.Role) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { +func (ec *executionContext) marshalOOrgMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v *enums.Role) graphql.Marshaler { if v == nil { return graphql.Null } - res := graphql.MarshalString(*v) - return res -} - -func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) { - res, err := graphql.UnmarshalInt(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { - res := graphql.MarshalInt(v) - return res -} - -func (ec *executionContext) unmarshalOInt2int64(ctx context.Context, v interface{}) (int64, error) { - res, err := graphql.UnmarshalInt64(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler { - res := graphql.MarshalInt64(v) - return res + return v } -func (ec *executionContext) unmarshalOInt2ᚕint64ᚄ(ctx context.Context, v interface{}) ([]int64, error) { +func (ec *executionContext) unmarshalOOrgMembershipHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrgMembershipHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -254242,10 +352487,10 @@ func (ec *executionContext) unmarshalOInt2ᚕint64ᚄ(ctx context.Context, v int vSlice = graphql.CoerceList(v) } var err error - res := make([]int64, len(vSlice)) + res := make([]*generated.OrgMembershipHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNInt2int64(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOrgMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -254253,25 +352498,15 @@ func (ec *executionContext) unmarshalOInt2ᚕint64ᚄ(ctx context.Context, v int return res, nil } -func (ec *executionContext) marshalOInt2ᚕint64ᚄ(ctx context.Context, sel ast.SelectionSet, v []int64) graphql.Marshaler { +func (ec *executionContext) unmarshalOOrgMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrgMembershipHistoryWhereInput, error) { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNInt2int64(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } + return nil, nil } - - return ret + res, err := ec.unmarshalInputOrgMembershipHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { +func (ec *executionContext) unmarshalOOrgMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, v interface{}) ([]enums.Role, error) { if v == nil { return nil, nil } @@ -254280,10 +352515,10 @@ func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v inter vSlice = graphql.CoerceList(v) } var err error - res := make([]int, len(vSlice)) + res := make([]enums.Role, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNInt2int(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOrgMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, vSlice[i]) if err != nil { return nil, err } @@ -254291,14 +352526,43 @@ func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v inter return res, nil } -func (ec *executionContext) marshalOInt2ᚕintᚄ(ctx context.Context, sel ast.SelectionSet, v []int) graphql.Marshaler { +func (ec *executionContext) marshalOOrgMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Role) graphql.Marshaler { if v == nil { return graphql.Null } ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } for i := range v { - ret[i] = ec.marshalNInt2int(ctx, sel, v[i]) + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNOrgMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + } + wg.Wait() for _, e := range ret { if e == graphql.Null { @@ -254309,39 +352573,51 @@ func (ec *executionContext) marshalOInt2ᚕintᚄ(ctx context.Context, sel ast.S return ret } -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { +func (ec *executionContext) unmarshalOOrgMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (*enums.Role, error) { if v == nil { return nil, nil } - res, err := graphql.UnmarshalInt(v) - return &res, graphql.ErrorOnPath(ctx, err) + var res = new(enums.Role) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { +func (ec *executionContext) marshalOOrgMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v *enums.Role) graphql.Marshaler { if v == nil { return graphql.Null } - res := graphql.MarshalInt(*v) - return res + return v } -func (ec *executionContext) unmarshalOInt2ᚖint64(ctx context.Context, v interface{}) (*int64, error) { +func (ec *executionContext) unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrgMembershipWhereInput, error) { if v == nil { return nil, nil } - res, err := graphql.UnmarshalInt64(v) - return &res, graphql.ErrorOnPath(ctx, err) + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.OrgMembershipWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalOInt2ᚖint64(ctx context.Context, sel ast.SelectionSet, v *int64) graphql.Marshaler { +func (ec *executionContext) unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx context.Context, v interface{}) (*generated.OrgMembershipWhereInput, error) { if v == nil { - return graphql.Null + return nil, nil } - res := graphql.MarshalInt64(*v) - return res + res, err := ec.unmarshalInputOrgMembershipWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Integration) graphql.Marshaler { +func (ec *executionContext) marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Organization) graphql.Marshaler { if v == nil { return graphql.Null } @@ -254368,7 +352644,7 @@ func (ec *executionContext) marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlane if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, sel, v[i]) + ret[i] = ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, sel, v[i]) } if isLen1 { f(i) @@ -254388,14 +352664,14 @@ func (ec *executionContext) marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlane return ret } -func (ec *executionContext) marshalOIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx context.Context, sel ast.SelectionSet, v *generated.Integration) graphql.Marshaler { +func (ec *executionContext) marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *generated.Organization) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._Integration(ctx, sel, v) + return ec._Organization(ctx, sel, v) } -func (ec *executionContext) marshalOIntegrationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.IntegrationEdge) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OrganizationEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -254422,7 +352698,7 @@ func (ec *executionContext) marshalOIntegrationEdge2ᚕᚖgithubᚗcomᚋtheopen if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOIntegrationEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOOrganizationEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -254436,21 +352712,21 @@ func (ec *executionContext) marshalOIntegrationEdge2ᚕᚖgithubᚗcomᚋtheopen return ret } -func (ec *executionContext) marshalOIntegrationEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationEdge(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationEdge) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._IntegrationEdge(ctx, sel, v) + return ec._OrganizationEdge(ctx, sel, v) } -func (ec *executionContext) marshalOIntegrationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistory(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationHistory) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistory(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._IntegrationHistory(ctx, sel, v) + return ec._OrganizationHistory(ctx, sel, v) } -func (ec *executionContext) marshalOIntegrationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.IntegrationHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OrganizationHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -254477,7 +352753,7 @@ func (ec *executionContext) marshalOIntegrationHistoryEdge2ᚕᚖgithubᚗcomᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOIntegrationHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOOrganizationHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -254491,14 +352767,14 @@ func (ec *executionContext) marshalOIntegrationHistoryEdge2ᚕᚖgithubᚗcomᚋ return ret } -func (ec *executionContext) marshalOIntegrationHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.IntegrationHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._IntegrationHistoryEdge(ctx, sel, v) + return ec._OrganizationHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOIntegrationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOOrganizationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -254510,7 +352786,7 @@ func (ec *executionContext) unmarshalOIntegrationHistoryOpType2ᚕgithubᚗcom res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNIntegrationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -254518,7 +352794,7 @@ func (ec *executionContext) unmarshalOIntegrationHistoryOpType2ᚕgithubᚗcom return res, nil } -func (ec *executionContext) marshalOIntegrationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -254545,7 +352821,7 @@ func (ec *executionContext) marshalOIntegrationHistoryOpType2ᚕgithubᚗcomᚋt if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNIntegrationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -254565,7 +352841,7 @@ func (ec *executionContext) marshalOIntegrationHistoryOpType2ᚕgithubᚗcomᚋt return ret } -func (ec *executionContext) unmarshalOIntegrationHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOOrganizationHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } @@ -254574,22 +352850,22 @@ func (ec *executionContext) unmarshalOIntegrationHistoryOpType2ᚖgithubᚗcom return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOIntegrationHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationHistoryOpType2ᚖ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) unmarshalOIntegrationHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryOrder(ctx context.Context, v interface{}) (*generated.IntegrationHistoryOrder, error) { +func (ec *executionContext) unmarshalOOrganizationHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryOrder(ctx context.Context, v interface{}) (*generated.OrganizationHistoryOrder, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputIntegrationHistoryOrder(ctx, v) + res, err := ec.unmarshalInputOrganizationHistoryOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOIntegrationHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.IntegrationHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrganizationHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -254598,10 +352874,10 @@ func (ec *executionContext) unmarshalOIntegrationHistoryWhereInput2ᚕᚖgithub vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.IntegrationHistoryWhereInput, len(vSlice)) + res := make([]*generated.OrganizationHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNIntegrationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOrganizationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -254609,58 +352885,30 @@ func (ec *executionContext) unmarshalOIntegrationHistoryWhereInput2ᚕᚖgithub return res, nil } -func (ec *executionContext) unmarshalOIntegrationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInput(ctx context.Context, v interface{}) (*generated.IntegrationHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationHistoryWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputIntegrationHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputOrganizationHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOIntegrationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrder(ctx context.Context, v interface{}) (*generated.IntegrationOrder, error) { +func (ec *executionContext) unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrder(ctx context.Context, v interface{}) (*generated.OrganizationOrder, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputIntegrationOrder(ctx, v) + res, err := ec.unmarshalInputOrganizationOrder(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOIntegrationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationSearchResult(ctx context.Context, sel ast.SelectionSet, v *IntegrationSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSearchResult(ctx context.Context, sel ast.SelectionSet, v *OrganizationSearchResult) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._IntegrationSearchResult(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.IntegrationWhereInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.IntegrationWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx context.Context, v interface{}) (*generated.IntegrationWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputIntegrationWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._OrganizationSearchResult(ctx, sel, v) } -func (ec *executionContext) marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Invite) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.OrganizationSetting) graphql.Marshaler { if v == nil { return graphql.Null } @@ -254687,7 +352935,7 @@ func (ec *executionContext) marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋco if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, sel, v[i]) + ret[i] = ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, sel, v[i]) } if isLen1 { f(i) @@ -254707,14 +352955,14 @@ func (ec *executionContext) marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋco return ret } -func (ec *executionContext) marshalOInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx context.Context, sel ast.SelectionSet, v *generated.Invite) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSetting) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._Invite(ctx, sel, v) + return ec._OrganizationSetting(ctx, sel, v) } -func (ec *executionContext) marshalOInviteEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.InviteEdge) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OrganizationSettingEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -254741,7 +352989,7 @@ func (ec *executionContext) marshalOInviteEdge2ᚕᚖgithubᚗcomᚋtheopenlane if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOInviteEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOOrganizationSettingEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -254755,34 +353003,21 @@ func (ec *executionContext) marshalOInviteEdge2ᚕᚖgithubᚗcomᚋtheopenlane return ret } -func (ec *executionContext) marshalOInviteEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteEdge(ctx context.Context, sel ast.SelectionSet, v *generated.InviteEdge) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSettingEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSettingEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._InviteEdge(ctx, sel, v) + return ec._OrganizationSettingEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOInviteInviteStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatusᚄ(ctx context.Context, v interface{}) ([]enums.InviteStatus, error) { +func (ec *executionContext) marshalOOrganizationSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistory(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSettingHistory) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]enums.InviteStatus, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return ec._OrganizationSettingHistory(ctx, sel, v) } -func (ec *executionContext) marshalOInviteInviteStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.InviteStatus) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OrganizationSettingHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -254809,7 +353044,7 @@ func (ec *executionContext) marshalOInviteInviteStatus2ᚕgithubᚗcomᚋtheopen if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, sel, v[i]) + ret[i] = ec.marshalOOrganizationSettingHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -254820,32 +353055,17 @@ func (ec *executionContext) marshalOInviteInviteStatus2ᚕgithubᚗcomᚋtheopen } wg.Wait() - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - return ret } -func (ec *executionContext) unmarshalOInviteInviteStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx context.Context, v interface{}) (*enums.InviteStatus, error) { - if v == nil { - return nil, nil - } - var res = new(enums.InviteStatus) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOInviteInviteStatus2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx context.Context, sel ast.SelectionSet, v *enums.InviteStatus) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSettingHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSettingHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return v + return ec._OrganizationSettingHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOInviteRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, v interface{}) ([]enums.Role, error) { +func (ec *executionContext) unmarshalOOrganizationSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -254854,10 +353074,10 @@ func (ec *executionContext) unmarshalOInviteRole2ᚕgithubᚗcomᚋtheopenlane vSlice = graphql.CoerceList(v) } var err error - res := make([]enums.Role, len(vSlice)) + res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -254865,7 +353085,7 @@ func (ec *executionContext) unmarshalOInviteRole2ᚕgithubᚗcomᚋtheopenlane return res, nil } -func (ec *executionContext) marshalOInviteRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Role) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -254892,7 +353112,7 @@ func (ec *executionContext) marshalOInviteRole2ᚕgithubᚗcomᚋtheopenlaneᚋc if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, sel, v[i]) + ret[i] = ec.marshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -254912,23 +353132,33 @@ func (ec *executionContext) marshalOInviteRole2ᚕgithubᚗcomᚋtheopenlaneᚋc return ret } -func (ec *executionContext) unmarshalOInviteRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (*enums.Role, error) { +func (ec *executionContext) unmarshalOOrganizationSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } - var res = new(enums.Role) + var res = new(history.OpType) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOInviteRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v *enums.Role) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSettingHistoryOpType2ᚖ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) unmarshalOInviteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.InviteWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (enums.Region, error) { + var res enums.Region + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v enums.Region) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalOOrganizationSettingHistoryRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx context.Context, v interface{}) ([]enums.Region, error) { if v == nil { return nil, nil } @@ -254937,10 +353167,10 @@ func (ec *executionContext) unmarshalOInviteWhereInput2ᚕᚖgithubᚗcomᚋtheo vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.InviteWhereInput, len(vSlice)) + res := make([]enums.Region, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, vSlice[i]) if err != nil { return nil, err } @@ -254948,54 +353178,7 @@ func (ec *executionContext) unmarshalOInviteWhereInput2ᚕᚖgithubᚗcomᚋtheo return res, nil } -func (ec *executionContext) unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx context.Context, v interface{}) (*generated.InviteWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputInviteWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx context.Context, v interface{}) (customtypes.JSONObject, error) { - if v == nil { - return nil, nil - } - var res customtypes.JSONObject - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx context.Context, sel ast.SelectionSet, v customtypes.JSONObject) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalMap(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalMap(v) - return res -} - -func (ec *executionContext) marshalONode2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx context.Context, sel ast.SelectionSet, v generated.Noder) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Node(ctx, sel, v) -} - -func (ec *executionContext) marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Note) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSettingHistoryRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Region) graphql.Marshaler { if v == nil { return graphql.Null } @@ -255022,7 +353205,7 @@ func (ec *executionContext) marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcore if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNNote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, sel, v[i]) + ret[i] = ec.marshalNOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, sel, v[i]) } if isLen1 { f(i) @@ -255042,117 +353225,61 @@ func (ec *executionContext) marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcore return ret } -func (ec *executionContext) marshalONote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx context.Context, sel ast.SelectionSet, v *generated.Note) graphql.Marshaler { +func (ec *executionContext) unmarshalOOrganizationSettingHistoryRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (*enums.Region, error) { if v == nil { - return graphql.Null + return nil, nil } - return ec._Note(ctx, sel, v) + var res = new(enums.Region) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalONoteEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.NoteEdge) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSettingHistoryRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v *enums.Region) graphql.Marshaler { if v == nil { return graphql.Null } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalONoteEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret + return v } -func (ec *executionContext) marshalONoteEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteEdge(ctx context.Context, sel ast.SelectionSet, v *generated.NoteEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOOrganizationSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrganizationSettingHistoryWhereInput, error) { if v == nil { - return graphql.Null + return nil, nil } - return ec._NoteEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalONoteHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistory(ctx context.Context, sel ast.SelectionSet, v *generated.NoteHistory) graphql.Marshaler { - if v == nil { - return graphql.Null + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) } - return ec._NoteHistory(ctx, sel, v) + var err error + res := make([]*generated.OrganizationSettingHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalONoteHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.NoteHistoryEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationSettingHistoryWhereInput, error) { if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalONoteHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - + return nil, nil } - wg.Wait() + res, err := ec.unmarshalInputOrganizationSettingHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} - return ret +func (ec *executionContext) unmarshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (enums.Region, error) { + var res enums.Region + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalONoteHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.NoteHistoryEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._NoteHistoryEdge(ctx, sel, v) +func (ec *executionContext) marshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v enums.Region) graphql.Marshaler { + return v } -func (ec *executionContext) unmarshalONoteHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx context.Context, v interface{}) ([]enums.Region, error) { if v == nil { return nil, nil } @@ -255161,10 +353288,10 @@ func (ec *executionContext) unmarshalONoteHistoryOpType2ᚕgithubᚗcomᚋtheope vSlice = graphql.CoerceList(v) } var err error - res := make([]history.OpType, len(vSlice)) + res := make([]enums.Region, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, vSlice[i]) if err != nil { return nil, err } @@ -255172,7 +353299,7 @@ func (ec *executionContext) unmarshalONoteHistoryOpType2ᚕgithubᚗcomᚋtheope return res, nil } -func (ec *executionContext) marshalONoteHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Region) graphql.Marshaler { if v == nil { return graphql.Null } @@ -255199,7 +353326,7 @@ func (ec *executionContext) marshalONoteHistoryOpType2ᚕgithubᚗcomᚋtheopenl if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, sel, v[i]) } if isLen1 { f(i) @@ -255219,23 +353346,30 @@ func (ec *executionContext) marshalONoteHistoryOpType2ᚕgithubᚗcomᚋtheopenl return ret } -func (ec *executionContext) unmarshalONoteHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (*enums.Region, error) { if v == nil { return nil, nil } - var res = new(history.OpType) + var res = new(enums.Region) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalONoteHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v *enums.Region) graphql.Marshaler { if v == nil { return graphql.Null } return v } -func (ec *executionContext) unmarshalONoteHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.NoteHistoryWhereInput, error) { +func (ec *executionContext) marshalOOrganizationSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingSearchResult(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._OrganizationSettingSearchResult(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOOrganizationSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrganizationSettingWhereInput, error) { if v == nil { return nil, nil } @@ -255244,10 +353378,10 @@ func (ec *executionContext) unmarshalONoteHistoryWhereInput2ᚕᚖgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.NoteHistoryWhereInput, len(vSlice)) + res := make([]*generated.OrganizationSettingWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNNoteHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -255255,15 +353389,15 @@ func (ec *executionContext) unmarshalONoteHistoryWhereInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalONoteHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInput(ctx context.Context, v interface{}) (*generated.NoteHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationSettingWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputNoteHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputOrganizationSettingWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.NoteWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrganizationWhereInput, error) { if v == nil { return nil, nil } @@ -255272,10 +353406,10 @@ func (ec *executionContext) unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheope vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.NoteWhereInput, len(vSlice)) + res := make([]*generated.OrganizationWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNNoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -255283,15 +353417,15 @@ func (ec *executionContext) unmarshalONoteWhereInput2ᚕᚖgithubᚗcomᚋtheope return res, nil } -func (ec *executionContext) unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx context.Context, v interface{}) (*generated.NoteWhereInput, error) { +func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputNoteWhereInput(ctx, v) + res, err := ec.unmarshalInputOrganizationWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOauthProvider2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.OauthProvider) graphql.Marshaler { +func (ec *executionContext) marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.PersonalAccessToken) graphql.Marshaler { if v == nil { return graphql.Null } @@ -255318,7 +353452,7 @@ func (ec *executionContext) marshalOOauthProvider2ᚕᚖgithubᚗcomᚋtheopenla if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx, sel, v[i]) + ret[i] = ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, sel, v[i]) } if isLen1 { f(i) @@ -255338,14 +353472,14 @@ func (ec *executionContext) marshalOOauthProvider2ᚕᚖgithubᚗcomᚋtheopenla return ret } -func (ec *executionContext) marshalOOauthProvider2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProvider(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProvider) graphql.Marshaler { +func (ec *executionContext) marshalOPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx context.Context, sel ast.SelectionSet, v *generated.PersonalAccessToken) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OauthProvider(ctx, sel, v) + return ec._PersonalAccessToken(ctx, sel, v) } -func (ec *executionContext) marshalOOauthProviderEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OauthProviderEdge) graphql.Marshaler { +func (ec *executionContext) marshalOPersonalAccessTokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.PersonalAccessTokenEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -255372,7 +353506,7 @@ func (ec *executionContext) marshalOOauthProviderEdge2ᚕᚖgithubᚗcomᚋtheop if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOOauthProviderEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOPersonalAccessTokenEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -255386,21 +353520,49 @@ func (ec *executionContext) marshalOOauthProviderEdge2ᚕᚖgithubᚗcomᚋtheop return ret } -func (ec *executionContext) marshalOOauthProviderEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProviderEdge) graphql.Marshaler { +func (ec *executionContext) marshalOPersonalAccessTokenEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenEdge(ctx context.Context, sel ast.SelectionSet, v *generated.PersonalAccessTokenEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OauthProviderEdge(ctx, sel, v) + return ec._PersonalAccessTokenEdge(ctx, sel, v) } -func (ec *executionContext) marshalOOauthProviderHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistory(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProviderHistory) graphql.Marshaler { +func (ec *executionContext) marshalOPersonalAccessTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenSearchResult(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenSearchResult) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OauthProviderHistory(ctx, sel, v) + return ec._PersonalAccessTokenSearchResult(ctx, sel, v) } -func (ec *executionContext) marshalOOauthProviderHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OauthProviderHistoryEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.PersonalAccessTokenWhereInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.PersonalAccessTokenWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx context.Context, v interface{}) (*generated.PersonalAccessTokenWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputPersonalAccessTokenWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Procedure) graphql.Marshaler { if v == nil { return graphql.Null } @@ -255427,7 +353589,7 @@ func (ec *executionContext) marshalOOauthProviderHistoryEdge2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOOauthProviderHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, sel, v[i]) } if isLen1 { f(i) @@ -255438,37 +353600,23 @@ func (ec *executionContext) marshalOOauthProviderHistoryEdge2ᚕᚖgithubᚗcom } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOOauthProviderHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OauthProviderHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx context.Context, sel ast.SelectionSet, v *generated.Procedure) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OauthProviderHistoryEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOOauthProviderHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]history.OpType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOauthProviderHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil + return ec._Procedure(ctx, sel, v) } -func (ec *executionContext) marshalOOauthProviderHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOProcedureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ProcedureEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -255495,7 +353643,7 @@ func (ec *executionContext) marshalOOauthProviderHistoryOpType2ᚕgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNOauthProviderHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalOProcedureEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -255506,95 +353654,24 @@ func (ec *executionContext) marshalOOauthProviderHistoryOpType2ᚕgithubᚗcom } wg.Wait() - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - return ret } -func (ec *executionContext) unmarshalOOauthProviderHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalOOauthProviderHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOProcedureEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ProcedureEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return v -} - -func (ec *executionContext) unmarshalOOauthProviderHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OauthProviderHistoryWhereInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.OauthProviderHistoryWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOauthProviderHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) unmarshalOOauthProviderHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OauthProviderHistoryWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputOauthProviderHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._ProcedureEdge(ctx, sel, v) } -func (ec *executionContext) marshalOOauthProviderSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOauthProviderSearchResult(ctx context.Context, sel ast.SelectionSet, v *OauthProviderSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOProcedureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistory(ctx context.Context, sel ast.SelectionSet, v *generated.ProcedureHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OauthProviderSearchResult(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOOauthProviderWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OauthProviderWhereInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.OauthProviderWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOauthProviderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) unmarshalOOauthProviderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOauthProviderWhereInput(ctx context.Context, v interface{}) (*generated.OauthProviderWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputOauthProviderWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._ProcedureHistory(ctx, sel, v) } -func (ec *executionContext) marshalOOhAuthTooToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.OhAuthTooToken) graphql.Marshaler { +func (ec *executionContext) marshalOProcedureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ProcedureHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -255621,7 +353698,7 @@ func (ec *executionContext) marshalOOhAuthTooToken2ᚕᚖgithubᚗcomᚋtheopenl if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx, sel, v[i]) + ret[i] = ec.marshalOProcedureHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -255632,23 +353709,37 @@ func (ec *executionContext) marshalOOhAuthTooToken2ᚕᚖgithubᚗcomᚋtheopenl } wg.Wait() - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - return ret } -func (ec *executionContext) marshalOOhAuthTooToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooToken(ctx context.Context, sel ast.SelectionSet, v *generated.OhAuthTooToken) graphql.Marshaler { +func (ec *executionContext) marshalOProcedureHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ProcedureHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OhAuthTooToken(ctx, sel, v) + return ec._ProcedureHistoryEdge(ctx, sel, v) } -func (ec *executionContext) marshalOOhAuthTooTokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OhAuthTooTokenEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOProcedureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNProcedureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOProcedureHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -255675,7 +353766,7 @@ func (ec *executionContext) marshalOOhAuthTooTokenEdge2ᚕᚖgithubᚗcomᚋtheo if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOOhAuthTooTokenEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNProcedureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -255686,24 +353777,67 @@ func (ec *executionContext) marshalOOhAuthTooTokenEdge2ᚕᚖgithubᚗcomᚋtheo } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOOhAuthTooTokenEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OhAuthTooTokenEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOProcedureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*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) marshalOProcedureHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OhAuthTooTokenEdge(ctx, sel, v) + return v } -func (ec *executionContext) marshalOOhAuthTooTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOhAuthTooTokenSearchResult(ctx context.Context, sel ast.SelectionSet, v *OhAuthTooTokenSearchResult) graphql.Marshaler { +func (ec *executionContext) unmarshalOProcedureHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ProcedureHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.ProcedureHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNProcedureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOProcedureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ProcedureHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputProcedureHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOProcedureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureSearchResult(ctx context.Context, sel ast.SelectionSet, v *ProcedureSearchResult) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OhAuthTooTokenSearchResult(ctx, sel, v) + return ec._ProcedureSearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalOOhAuthTooTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OhAuthTooTokenWhereInput, error) { +func (ec *executionContext) unmarshalOProcedureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ProcedureWhereInput, error) { if v == nil { return nil, nil } @@ -255712,10 +353846,10 @@ func (ec *executionContext) unmarshalOOhAuthTooTokenWhereInput2ᚕᚖgithubᚗco vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.OhAuthTooTokenWhereInput, len(vSlice)) + res := make([]*generated.ProcedureWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOhAuthTooTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -255723,15 +353857,15 @@ func (ec *executionContext) unmarshalOOhAuthTooTokenWhereInput2ᚕᚖgithubᚗco return res, nil } -func (ec *executionContext) unmarshalOOhAuthTooTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOhAuthTooTokenWhereInput(ctx context.Context, v interface{}) (*generated.OhAuthTooTokenWhereInput, error) { +func (ec *executionContext) unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx context.Context, v interface{}) (*generated.ProcedureWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputOhAuthTooTokenWhereInput(ctx, v) + res, err := ec.unmarshalInputProcedureWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.OrgMembership) graphql.Marshaler { +func (ec *executionContext) marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Risk) graphql.Marshaler { if v == nil { return graphql.Null } @@ -255758,7 +353892,7 @@ func (ec *executionContext) marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenla if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, sel, v[i]) + ret[i] = ec.marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, sel, v[i]) } if isLen1 { f(i) @@ -255778,14 +353912,14 @@ func (ec *executionContext) marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenla return ret } -func (ec *executionContext) marshalOOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembership) graphql.Marshaler { +func (ec *executionContext) marshalORisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx context.Context, sel ast.SelectionSet, v *generated.Risk) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OrgMembership(ctx, sel, v) + return ec._Risk(ctx, sel, v) } -func (ec *executionContext) marshalOOrgMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OrgMembershipEdge) graphql.Marshaler { +func (ec *executionContext) marshalORiskEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.RiskEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -255812,7 +353946,7 @@ func (ec *executionContext) marshalOOrgMembershipEdge2ᚕᚖgithubᚗcomᚋtheop if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOOrgMembershipEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipEdge(ctx, sel, v[i]) + ret[i] = ec.marshalORiskEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -255826,21 +353960,21 @@ func (ec *executionContext) marshalOOrgMembershipEdge2ᚕᚖgithubᚗcomᚋtheop return ret } -func (ec *executionContext) marshalOOrgMembershipEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembershipEdge) graphql.Marshaler { +func (ec *executionContext) marshalORiskEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskEdge(ctx context.Context, sel ast.SelectionSet, v *generated.RiskEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OrgMembershipEdge(ctx, sel, v) + return ec._RiskEdge(ctx, sel, v) } -func (ec *executionContext) marshalOOrgMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistory(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembershipHistory) graphql.Marshaler { +func (ec *executionContext) marshalORiskHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistory(ctx context.Context, sel ast.SelectionSet, v *generated.RiskHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OrgMembershipHistory(ctx, sel, v) + return ec._RiskHistory(ctx, sel, v) } -func (ec *executionContext) marshalOOrgMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OrgMembershipHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalORiskHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.RiskHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -255867,7 +354001,7 @@ func (ec *executionContext) marshalOOrgMembershipHistoryEdge2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOOrgMembershipHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalORiskHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -255881,14 +354015,14 @@ func (ec *executionContext) marshalOOrgMembershipHistoryEdge2ᚕᚖgithubᚗcom return ret } -func (ec *executionContext) marshalOOrgMembershipHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OrgMembershipHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalORiskHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.RiskHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OrgMembershipHistoryEdge(ctx, sel, v) + return ec._RiskHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOOrgMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalORiskHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -255900,7 +354034,7 @@ func (ec *executionContext) unmarshalOOrgMembershipHistoryOpType2ᚕgithubᚗcom res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNRiskHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -255908,7 +354042,7 @@ func (ec *executionContext) unmarshalOOrgMembershipHistoryOpType2ᚕgithubᚗcom return res, nil } -func (ec *executionContext) marshalOOrgMembershipHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalORiskHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -255935,7 +354069,7 @@ func (ec *executionContext) marshalOOrgMembershipHistoryOpType2ᚕgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNRiskHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -255955,7 +354089,7 @@ func (ec *executionContext) marshalOOrgMembershipHistoryOpType2ᚕgithubᚗcom return ret } -func (ec *executionContext) unmarshalOOrgMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalORiskHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } @@ -255964,14 +354098,24 @@ func (ec *executionContext) unmarshalOOrgMembershipHistoryOpType2ᚖgithubᚗcom return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrgMembershipHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalORiskHistoryOpType2ᚖ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) unmarshalOOrgMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, v interface{}) ([]enums.Role, error) { +func (ec *executionContext) unmarshalORiskHistoryRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx context.Context, v interface{}) (enums.RiskImpact, error) { + var res enums.RiskImpact + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalORiskHistoryRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx context.Context, sel ast.SelectionSet, v enums.RiskImpact) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalORiskHistoryRiskImpact2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpactᚄ(ctx context.Context, v interface{}) ([]enums.RiskImpact, error) { if v == nil { return nil, nil } @@ -255980,10 +354124,10 @@ func (ec *executionContext) unmarshalOOrgMembershipHistoryRole2ᚕgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]enums.Role, len(vSlice)) + res := make([]enums.RiskImpact, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, vSlice[i]) + res[i], err = ec.unmarshalNRiskHistoryRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, vSlice[i]) if err != nil { return nil, err } @@ -255991,7 +354135,7 @@ func (ec *executionContext) unmarshalOOrgMembershipHistoryRole2ᚕgithubᚗcom return res, nil } -func (ec *executionContext) marshalOOrgMembershipHistoryRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Role) graphql.Marshaler { +func (ec *executionContext) marshalORiskHistoryRiskImpact2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpactᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.RiskImpact) graphql.Marshaler { if v == nil { return graphql.Null } @@ -256018,7 +354162,7 @@ func (ec *executionContext) marshalOOrgMembershipHistoryRole2ᚕgithubᚗcomᚋt if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, sel, v[i]) + ret[i] = ec.marshalNRiskHistoryRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, sel, v[i]) } if isLen1 { f(i) @@ -256038,51 +354182,33 @@ func (ec *executionContext) marshalOOrgMembershipHistoryRole2ᚕgithubᚗcomᚋt return ret } -func (ec *executionContext) unmarshalOOrgMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (*enums.Role, error) { +func (ec *executionContext) unmarshalORiskHistoryRiskImpact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx context.Context, v interface{}) (*enums.RiskImpact, error) { if v == nil { return nil, nil } - var res = new(enums.Role) + var res = new(enums.RiskImpact) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrgMembershipHistoryRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v *enums.Role) graphql.Marshaler { +func (ec *executionContext) marshalORiskHistoryRiskImpact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx context.Context, sel ast.SelectionSet, v *enums.RiskImpact) graphql.Marshaler { if v == nil { return graphql.Null } return v } -func (ec *executionContext) unmarshalOOrgMembershipHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrgMembershipHistoryWhereInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.OrgMembershipHistoryWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrgMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil +func (ec *executionContext) unmarshalORiskHistoryRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx context.Context, v interface{}) (enums.RiskLikelihood, error) { + var res enums.RiskLikelihood + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOOrgMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrgMembershipHistoryWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputOrgMembershipHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) marshalORiskHistoryRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx context.Context, sel ast.SelectionSet, v enums.RiskLikelihood) graphql.Marshaler { + return v } -func (ec *executionContext) unmarshalOOrgMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, v interface{}) ([]enums.Role, error) { +func (ec *executionContext) unmarshalORiskHistoryRiskLikelihood2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihoodᚄ(ctx context.Context, v interface{}) ([]enums.RiskLikelihood, error) { if v == nil { return nil, nil } @@ -256091,10 +354217,10 @@ func (ec *executionContext) unmarshalOOrgMembershipRole2ᚕgithubᚗcomᚋtheope vSlice = graphql.CoerceList(v) } var err error - res := make([]enums.Role, len(vSlice)) + res := make([]enums.RiskLikelihood, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrgMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, vSlice[i]) + res[i], err = ec.unmarshalNRiskHistoryRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, vSlice[i]) if err != nil { return nil, err } @@ -256102,7 +354228,7 @@ func (ec *executionContext) unmarshalOOrgMembershipRole2ᚕgithubᚗcomᚋtheope return res, nil } -func (ec *executionContext) marshalOOrgMembershipRole2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRoleᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Role) graphql.Marshaler { +func (ec *executionContext) marshalORiskHistoryRiskLikelihood2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihoodᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.RiskLikelihood) graphql.Marshaler { if v == nil { return graphql.Null } @@ -256129,7 +354255,7 @@ func (ec *executionContext) marshalOOrgMembershipRole2ᚕgithubᚗcomᚋtheopenl if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNOrgMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, sel, v[i]) + ret[i] = ec.marshalNRiskHistoryRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, sel, v[i]) } if isLen1 { f(i) @@ -256149,23 +354275,23 @@ func (ec *executionContext) marshalOOrgMembershipRole2ᚕgithubᚗcomᚋtheopenl return ret } -func (ec *executionContext) unmarshalOOrgMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, v interface{}) (*enums.Role, error) { +func (ec *executionContext) unmarshalORiskHistoryRiskLikelihood2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx context.Context, v interface{}) (*enums.RiskLikelihood, error) { if v == nil { return nil, nil } - var res = new(enums.Role) + var res = new(enums.RiskLikelihood) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrgMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx context.Context, sel ast.SelectionSet, v *enums.Role) graphql.Marshaler { +func (ec *executionContext) marshalORiskHistoryRiskLikelihood2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx context.Context, sel ast.SelectionSet, v *enums.RiskLikelihood) graphql.Marshaler { if v == nil { return graphql.Null } return v } -func (ec *executionContext) unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrgMembershipWhereInput, error) { +func (ec *executionContext) unmarshalORiskHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.RiskHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -256174,10 +354300,10 @@ func (ec *executionContext) unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.OrgMembershipWhereInput, len(vSlice)) + res := make([]*generated.RiskHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNRiskHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -256185,124 +354311,45 @@ func (ec *executionContext) unmarshalOOrgMembershipWhereInput2ᚕᚖgithubᚗcom return res, nil } -func (ec *executionContext) unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx context.Context, v interface{}) (*generated.OrgMembershipWhereInput, error) { +func (ec *executionContext) unmarshalORiskHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryWhereInput(ctx context.Context, v interface{}) (*generated.RiskHistoryWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputOrgMembershipWhereInput(ctx, v) + res, err := ec.unmarshalInputRiskHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Organization) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret +func (ec *executionContext) unmarshalORiskRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx context.Context, v interface{}) (enums.RiskImpact, error) { + var res enums.RiskImpact + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._Organization(ctx, sel, v) +func (ec *executionContext) marshalORiskRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx context.Context, sel ast.SelectionSet, v enums.RiskImpact) graphql.Marshaler { + return v } -func (ec *executionContext) marshalOOrganizationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OrganizationEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalORiskRiskImpact2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpactᚄ(ctx context.Context, v interface{}) ([]enums.RiskImpact, error) { if v == nil { - return graphql.Null + return nil, nil } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalOOrganizationEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) + var err error + res := make([]enums.RiskImpact, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNRiskRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, vSlice[i]) + if err != nil { + return nil, err } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOOrganizationEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._OrganizationEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalOOrganizationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistory(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationHistory) graphql.Marshaler { - if v == nil { - return graphql.Null } - return ec._OrganizationHistory(ctx, sel, v) + return res, nil } -func (ec *executionContext) marshalOOrganizationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OrganizationHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalORiskRiskImpact2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpactᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.RiskImpact) graphql.Marshaler { if v == nil { return graphql.Null } @@ -256329,7 +354376,7 @@ func (ec *executionContext) marshalOOrganizationHistoryEdge2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOOrganizationHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNRiskRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, sel, v[i]) } if isLen1 { f(i) @@ -256340,17 +354387,42 @@ func (ec *executionContext) marshalOOrganizationHistoryEdge2ᚕᚖgithubᚗcom } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOOrganizationHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationHistoryEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalORiskRiskImpact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx context.Context, v interface{}) (*enums.RiskImpact, error) { + if v == nil { + return nil, nil + } + var res = new(enums.RiskImpact) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalORiskRiskImpact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx context.Context, sel ast.SelectionSet, v *enums.RiskImpact) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OrganizationHistoryEdge(ctx, sel, v) + return v } -func (ec *executionContext) unmarshalOOrganizationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalORiskRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx context.Context, v interface{}) (enums.RiskLikelihood, error) { + var res enums.RiskLikelihood + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalORiskRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx context.Context, sel ast.SelectionSet, v enums.RiskLikelihood) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalORiskRiskLikelihood2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihoodᚄ(ctx context.Context, v interface{}) ([]enums.RiskLikelihood, error) { if v == nil { return nil, nil } @@ -256359,10 +354431,10 @@ func (ec *executionContext) unmarshalOOrganizationHistoryOpType2ᚕgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]history.OpType, len(vSlice)) + res := make([]enums.RiskLikelihood, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNRiskRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, vSlice[i]) if err != nil { return nil, err } @@ -256370,7 +354442,7 @@ func (ec *executionContext) unmarshalOOrganizationHistoryOpType2ᚕgithubᚗcom return res, nil } -func (ec *executionContext) marshalOOrganizationHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalORiskRiskLikelihood2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihoodᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.RiskLikelihood) graphql.Marshaler { if v == nil { return graphql.Null } @@ -256397,7 +354469,7 @@ func (ec *executionContext) marshalOOrganizationHistoryOpType2ᚕgithubᚗcomᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNRiskRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, sel, v[i]) } if isLen1 { f(i) @@ -256417,31 +354489,30 @@ func (ec *executionContext) marshalOOrganizationHistoryOpType2ᚕgithubᚗcomᚋ return ret } -func (ec *executionContext) unmarshalOOrganizationHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalORiskRiskLikelihood2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx context.Context, v interface{}) (*enums.RiskLikelihood, error) { if v == nil { return nil, nil } - var res = new(history.OpType) + var res = new(enums.RiskLikelihood) err := res.UnmarshalGQL(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrganizationHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalORiskRiskLikelihood2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx context.Context, sel ast.SelectionSet, v *enums.RiskLikelihood) graphql.Marshaler { if v == nil { return graphql.Null } return v } -func (ec *executionContext) unmarshalOOrganizationHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryOrder(ctx context.Context, v interface{}) (*generated.OrganizationHistoryOrder, error) { +func (ec *executionContext) marshalORiskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskSearchResult(ctx context.Context, sel ast.SelectionSet, v *RiskSearchResult) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - res, err := ec.unmarshalInputOrganizationHistoryOrder(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._RiskSearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalOOrganizationHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrganizationHistoryWhereInput, error) { +func (ec *executionContext) unmarshalORiskWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.RiskWhereInput, error) { if v == nil { return nil, nil } @@ -256450,10 +354521,10 @@ func (ec *executionContext) unmarshalOOrganizationHistoryWhereInput2ᚕᚖgithub vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.OrganizationHistoryWhereInput, len(vSlice)) + res := make([]*generated.RiskWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrganizationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNRiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -256461,30 +354532,22 @@ func (ec *executionContext) unmarshalOOrganizationHistoryWhereInput2ᚕᚖgithub return res, nil } -func (ec *executionContext) unmarshalOOrganizationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationHistoryWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputOrganizationHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrder(ctx context.Context, v interface{}) (*generated.OrganizationOrder, error) { +func (ec *executionContext) unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx context.Context, v interface{}) (*generated.RiskWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputOrganizationOrder(ctx, v) + res, err := ec.unmarshalInputRiskWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrganizationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSearchResult(ctx context.Context, sel ast.SelectionSet, v *OrganizationSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOSearchResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultConnection(ctx context.Context, sel ast.SelectionSet, v *SearchResultConnection) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OrganizationSearchResult(ctx, sel, v) + return ec._SearchResultConnection(ctx, sel, v) } -func (ec *executionContext) marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.OrganizationSetting) graphql.Marshaler { +func (ec *executionContext) marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Standard) graphql.Marshaler { if v == nil { return graphql.Null } @@ -256511,7 +354574,7 @@ func (ec *executionContext) marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋthe if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, sel, v[i]) + ret[i] = ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, sel, v[i]) } if isLen1 { f(i) @@ -256531,14 +354594,14 @@ func (ec *executionContext) marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋthe return ret } -func (ec *executionContext) marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSetting) graphql.Marshaler { +func (ec *executionContext) marshalOStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx context.Context, sel ast.SelectionSet, v *generated.Standard) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OrganizationSetting(ctx, sel, v) + return ec._Standard(ctx, sel, v) } -func (ec *executionContext) marshalOOrganizationSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OrganizationSettingEdge) graphql.Marshaler { +func (ec *executionContext) marshalOStandardEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.StandardEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -256565,7 +354628,7 @@ func (ec *executionContext) marshalOOrganizationSettingEdge2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOOrganizationSettingEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOStandardEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -256579,21 +354642,21 @@ func (ec *executionContext) marshalOOrganizationSettingEdge2ᚕᚖgithubᚗcom return ret } -func (ec *executionContext) marshalOOrganizationSettingEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSettingEdge) graphql.Marshaler { +func (ec *executionContext) marshalOStandardEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardEdge(ctx context.Context, sel ast.SelectionSet, v *generated.StandardEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OrganizationSettingEdge(ctx, sel, v) + return ec._StandardEdge(ctx, sel, v) } -func (ec *executionContext) marshalOOrganizationSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistory(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSettingHistory) graphql.Marshaler { +func (ec *executionContext) marshalOStandardHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistory(ctx context.Context, sel ast.SelectionSet, v *generated.StandardHistory) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OrganizationSettingHistory(ctx, sel, v) + return ec._StandardHistory(ctx, sel, v) } -func (ec *executionContext) marshalOOrganizationSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.OrganizationSettingHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOStandardHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.StandardHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -256620,7 +354683,7 @@ func (ec *executionContext) marshalOOrganizationSettingHistoryEdge2ᚕᚖgithub if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOOrganizationSettingHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryEdge(ctx, sel, v[i]) + ret[i] = ec.marshalOStandardHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -256634,14 +354697,14 @@ func (ec *executionContext) marshalOOrganizationSettingHistoryEdge2ᚕᚖgithub return ret } -func (ec *executionContext) marshalOOrganizationSettingHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.OrganizationSettingHistoryEdge) graphql.Marshaler { +func (ec *executionContext) marshalOStandardHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.StandardHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OrganizationSettingHistoryEdge(ctx, sel, v) + return ec._StandardHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOOrganizationSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { +func (ec *executionContext) unmarshalOStandardHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -256653,7 +354716,7 @@ func (ec *executionContext) unmarshalOOrganizationSettingHistoryOpType2ᚕgithub res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + res[i], err = ec.unmarshalNStandardHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -256661,7 +354724,7 @@ func (ec *executionContext) unmarshalOOrganizationSettingHistoryOpType2ᚕgithub return res, nil } -func (ec *executionContext) marshalOOrganizationSettingHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOStandardHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -256688,7 +354751,7 @@ func (ec *executionContext) marshalOOrganizationSettingHistoryOpType2ᚕgithub if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNStandardHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -256708,7 +354771,7 @@ func (ec *executionContext) marshalOOrganizationSettingHistoryOpType2ᚕgithub return ret } -func (ec *executionContext) unmarshalOOrganizationSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) unmarshalOStandardHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { return nil, nil } @@ -256717,24 +354780,14 @@ func (ec *executionContext) unmarshalOOrganizationSettingHistoryOpType2ᚖgithub return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrganizationSettingHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOStandardHistoryOpType2ᚖ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) unmarshalOOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (enums.Region, error) { - var res enums.Region - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v enums.Region) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalOOrganizationSettingHistoryRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx context.Context, v interface{}) ([]enums.Region, error) { +func (ec *executionContext) unmarshalOStandardHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.StandardHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -256743,10 +354796,10 @@ func (ec *executionContext) unmarshalOOrganizationSettingHistoryRegion2ᚕgithub vSlice = graphql.CoerceList(v) } var err error - res := make([]enums.Region, len(vSlice)) + res := make([]*generated.StandardHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, vSlice[i]) + res[i], err = ec.unmarshalNStandardHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -256754,70 +354807,22 @@ func (ec *executionContext) unmarshalOOrganizationSettingHistoryRegion2ᚕgithub return res, nil } -func (ec *executionContext) marshalOOrganizationSettingHistoryRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Region) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - var wg sync.WaitGroup - isLen1 := len(v) == 1 - if !isLen1 { - wg.Add(len(v)) - } - for i := range v { - i := i - fc := &graphql.FieldContext{ - Index: &i, - Result: &v[i], - } - ctx := graphql.WithFieldContext(ctx, fc) - f := func(i int) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = nil - } - }() - if !isLen1 { - defer wg.Done() - } - ret[i] = ec.marshalNOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOOrganizationSettingHistoryRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (*enums.Region, error) { +func (ec *executionContext) unmarshalOStandardHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryWhereInput(ctx context.Context, v interface{}) (*generated.StandardHistoryWhereInput, error) { if v == nil { return nil, nil } - var res = new(enums.Region) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) + res, err := ec.unmarshalInputStandardHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrganizationSettingHistoryRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v *enums.Region) graphql.Marshaler { +func (ec *executionContext) marshalOStandardSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardSearchResult(ctx context.Context, sel ast.SelectionSet, v *StandardSearchResult) graphql.Marshaler { if v == nil { return graphql.Null } - return v + return ec._StandardSearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalOOrganizationSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrganizationSettingHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOStandardWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.StandardWhereInput, error) { if v == nil { return nil, nil } @@ -256826,10 +354831,10 @@ func (ec *executionContext) unmarshalOOrganizationSettingHistoryWhereInput2ᚕ vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.OrganizationSettingHistoryWhereInput, len(vSlice)) + res := make([]*generated.StandardWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -256837,25 +354842,25 @@ func (ec *executionContext) unmarshalOOrganizationSettingHistoryWhereInput2ᚕ return res, nil } -func (ec *executionContext) unmarshalOOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationSettingHistoryWhereInput, error) { +func (ec *executionContext) unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx context.Context, v interface{}) (*generated.StandardWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputOrganizationSettingHistoryWhereInput(ctx, v) + res, err := ec.unmarshalInputStandardWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (enums.Region, error) { - var res enums.Region - err := res.UnmarshalGQL(v) +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v enums.Region) graphql.Marshaler { - return v +func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + return res } -func (ec *executionContext) unmarshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx context.Context, v interface{}) ([]enums.Region, error) { +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { if v == nil { return nil, nil } @@ -256864,10 +354869,10 @@ func (ec *executionContext) unmarshalOOrganizationSettingRegion2ᚕgithubᚗcom vSlice = graphql.CoerceList(v) } var err error - res := make([]enums.Region, len(vSlice)) + res := make([]string, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, vSlice[i]) + res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) if err != nil { return nil, err } @@ -256875,7 +354880,41 @@ func (ec *executionContext) unmarshalOOrganizationSettingRegion2ᚕgithubᚗcom return res, nil } -func (ec *executionContext) marshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Region) graphql.Marshaler { +func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNString2string(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalString(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(*v) + return res +} + +func (ec *executionContext) marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Subcontrol) graphql.Marshaler { if v == nil { return graphql.Null } @@ -256902,7 +354941,7 @@ func (ec *executionContext) marshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋ if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, sel, v[i]) + ret[i] = ec.marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, sel, v[i]) } if isLen1 { f(i) @@ -256922,86 +354961,69 @@ func (ec *executionContext) marshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋ return ret } -func (ec *executionContext) unmarshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (*enums.Region, error) { - if v == nil { - return nil, nil - } - var res = new(enums.Region) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v *enums.Region) graphql.Marshaler { +func (ec *executionContext) marshalOSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx context.Context, sel ast.SelectionSet, v *generated.Subcontrol) graphql.Marshaler { if v == nil { return graphql.Null } - return v + return ec._Subcontrol(ctx, sel, v) } -func (ec *executionContext) marshalOOrganizationSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingSearchResult(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOSubcontrolEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.SubcontrolEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OrganizationSettingSearchResult(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOOrganizationSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrganizationSettingWhereInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) } - var err error - res := make([]*generated.OrganizationSettingWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalOSubcontrolEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) } - } - return res, nil -} -func (ec *executionContext) unmarshalOOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationSettingWhereInput, error) { - if v == nil { - return nil, nil } - res, err := ec.unmarshalInputOrganizationSettingWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + wg.Wait() + + return ret } -func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrganizationWhereInput, error) { +func (ec *executionContext) marshalOSubcontrolEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolEdge(ctx context.Context, sel ast.SelectionSet, v *generated.SubcontrolEdge) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.OrganizationWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return graphql.Null } - return res, nil + return ec._SubcontrolEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationWhereInput, error) { +func (ec *executionContext) marshalOSubcontrolHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistory(ctx context.Context, sel ast.SelectionSet, v *generated.SubcontrolHistory) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - res, err := ec.unmarshalInputOrganizationWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return ec._SubcontrolHistory(ctx, sel, v) } -func (ec *executionContext) marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.PersonalAccessToken) graphql.Marshaler { +func (ec *executionContext) marshalOSubcontrolHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.SubcontrolHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } @@ -257028,7 +355050,7 @@ func (ec *executionContext) marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋthe if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, sel, v[i]) + ret[i] = ec.marshalOSubcontrolHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryEdge(ctx, sel, v[i]) } if isLen1 { f(i) @@ -257039,23 +355061,37 @@ func (ec *executionContext) marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋthe } wg.Wait() - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - return ret } -func (ec *executionContext) marshalOPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx context.Context, sel ast.SelectionSet, v *generated.PersonalAccessToken) graphql.Marshaler { +func (ec *executionContext) marshalOSubcontrolHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.SubcontrolHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._PersonalAccessToken(ctx, sel, v) + return ec._SubcontrolHistoryEdge(ctx, sel, v) } -func (ec *executionContext) marshalOPersonalAccessTokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.PersonalAccessTokenEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOSubcontrolHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNSubcontrolHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOSubcontrolHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -257082,7 +355118,7 @@ func (ec *executionContext) marshalOPersonalAccessTokenEdge2ᚕᚖgithubᚗcom if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOPersonalAccessTokenEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNSubcontrolHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -257093,24 +355129,32 @@ func (ec *executionContext) marshalOPersonalAccessTokenEdge2ᚕᚖgithubᚗcom } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOPersonalAccessTokenEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenEdge(ctx context.Context, sel ast.SelectionSet, v *generated.PersonalAccessTokenEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOSubcontrolHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { - return graphql.Null + return nil, nil } - return ec._PersonalAccessTokenEdge(ctx, sel, v) + var res = new(history.OpType) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOPersonalAccessTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenSearchResult(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOSubcontrolHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._PersonalAccessTokenSearchResult(ctx, sel, v) + return v } -func (ec *executionContext) unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.PersonalAccessTokenWhereInput, error) { +func (ec *executionContext) unmarshalOSubcontrolHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.SubcontrolHistoryWhereInput, error) { if v == nil { return nil, nil } @@ -257119,10 +355163,10 @@ func (ec *executionContext) unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithub vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.PersonalAccessTokenWhereInput, len(vSlice)) + res := make([]*generated.SubcontrolHistoryWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNSubcontrolHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -257130,32 +355174,22 @@ func (ec *executionContext) unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithub return res, nil } -func (ec *executionContext) unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx context.Context, v interface{}) (*generated.PersonalAccessTokenWhereInput, error) { +func (ec *executionContext) unmarshalOSubcontrolHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryWhereInput(ctx context.Context, v interface{}) (*generated.SubcontrolHistoryWhereInput, error) { if v == nil { return nil, nil } - res, err := ec.unmarshalInputPersonalAccessTokenWhereInput(ctx, v) + res, err := ec.unmarshalInputSubcontrolHistoryWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOSearchResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultConnection(ctx context.Context, sel ast.SelectionSet, v *SearchResultConnection) graphql.Marshaler { +func (ec *executionContext) marshalOSubcontrolSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolSearchResult(ctx context.Context, sel ast.SelectionSet, v *SubcontrolSearchResult) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._SearchResultConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - return res + return ec._SubcontrolSearchResult(ctx, sel, v) } -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { +func (ec *executionContext) unmarshalOSubcontrolWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.SubcontrolWhereInput, error) { if v == nil { return nil, nil } @@ -257164,10 +355198,10 @@ func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v vSlice = graphql.CoerceList(v) } var err error - res := make([]string, len(vSlice)) + res := make([]*generated.SubcontrolWhereInput, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) + res[i], err = ec.unmarshalNSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, vSlice[i]) if err != nil { return nil, err } @@ -257175,40 +355209,14 @@ func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v return res, nil } -func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNString2string(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) { +func (ec *executionContext) unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx context.Context, v interface{}) (*generated.SubcontrolWhereInput, error) { if v == nil { return nil, nil } - res, err := graphql.UnmarshalString(v) + res, err := ec.unmarshalInputSubcontrolWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(*v) - return res -} - func (ec *executionContext) marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Subscriber) graphql.Marshaler { if v == nil { return graphql.Null diff --git a/internal/graphapi/internalpolicy.resolvers.go b/internal/graphapi/internalpolicy.resolvers.go new file mode 100644 index 00000000..978a9033 --- /dev/null +++ b/internal/graphapi/internalpolicy.resolvers.go @@ -0,0 +1,87 @@ +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/rs/zerolog/log" + "github.com/theopenlane/core/internal/ent/generated" +) + +// CreateInternalPolicy is the resolver for the createInternalPolicy field. +func (r *mutationResolver) CreateInternalPolicy(ctx context.Context, input generated.CreateInternalPolicyInput) (*InternalPolicyCreatePayload, error) { + res, err := withTransactionalMutation(ctx).InternalPolicy.Create().SetInput(input).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "internalpolicy"}) + } + + return &InternalPolicyCreatePayload{ + InternalPolicy: res, + }, nil +} + +// CreateBulkInternalPolicy is the resolver for the createBulkInternalPolicy field. +func (r *mutationResolver) CreateBulkInternalPolicy(ctx context.Context, input []*generated.CreateInternalPolicyInput) (*InternalPolicyBulkCreatePayload, error) { + return r.bulkCreateInternalPolicy(ctx, input) +} + +// CreateBulkCSVInternalPolicy is the resolver for the createBulkCSVInternalPolicy field. +func (r *mutationResolver) CreateBulkCSVInternalPolicy(ctx context.Context, input graphql.Upload) (*InternalPolicyBulkCreatePayload, error) { + data, err := unmarshalBulkData[generated.CreateInternalPolicyInput](input) + if err != nil { + log.Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, err + } + + return r.bulkCreateInternalPolicy(ctx, data) +} + +// UpdateInternalPolicy is the resolver for the updateInternalPolicy field. +func (r *mutationResolver) UpdateInternalPolicy(ctx context.Context, id string, input generated.UpdateInternalPolicyInput) (*InternalPolicyUpdatePayload, error) { + res, err := withTransactionalMutation(ctx).InternalPolicy.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "internalpolicy"}) + } + + // setup update request + req := res.Update().SetInput(input).AppendTags(input.AppendTags) + + res, err = req.Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "internalpolicy"}) + } + + return &InternalPolicyUpdatePayload{ + InternalPolicy: res, + }, nil +} + +// DeleteInternalPolicy is the resolver for the deleteInternalPolicy field. +func (r *mutationResolver) DeleteInternalPolicy(ctx context.Context, id string) (*InternalPolicyDeletePayload, error) { + if err := withTransactionalMutation(ctx).InternalPolicy.DeleteOneID(id).Exec(ctx); err != nil { + return nil, parseRequestError(err, action{action: ActionDelete, object: "internalpolicy"}) + } + + if err := generated.InternalPolicyEdgeCleanup(ctx, id); err != nil { + return nil, newCascadeDeleteError(err) + } + + return &InternalPolicyDeletePayload{ + DeletedID: id, + }, nil +} + +// InternalPolicy is the resolver for the internalPolicy field. +func (r *queryResolver) InternalPolicy(ctx context.Context, id string) (*generated.InternalPolicy, error) { + res, err := withTransactionalMutation(ctx).InternalPolicy.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionGet, object: "internalpolicy"}) + } + + return res, nil +} diff --git a/internal/graphapi/narrative.resolvers.go b/internal/graphapi/narrative.resolvers.go new file mode 100644 index 00000000..5c7d4d5a --- /dev/null +++ b/internal/graphapi/narrative.resolvers.go @@ -0,0 +1,87 @@ +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/rs/zerolog/log" + "github.com/theopenlane/core/internal/ent/generated" +) + +// CreateNarrative is the resolver for the createNarrative field. +func (r *mutationResolver) CreateNarrative(ctx context.Context, input generated.CreateNarrativeInput) (*NarrativeCreatePayload, error) { + res, err := withTransactionalMutation(ctx).Narrative.Create().SetInput(input).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "narrative"}) + } + + return &NarrativeCreatePayload{ + Narrative: res, + }, nil +} + +// CreateBulkNarrative is the resolver for the createBulkNarrative field. +func (r *mutationResolver) CreateBulkNarrative(ctx context.Context, input []*generated.CreateNarrativeInput) (*NarrativeBulkCreatePayload, error) { + return r.bulkCreateNarrative(ctx, input) +} + +// CreateBulkCSVNarrative is the resolver for the createBulkCSVNarrative field. +func (r *mutationResolver) CreateBulkCSVNarrative(ctx context.Context, input graphql.Upload) (*NarrativeBulkCreatePayload, error) { + data, err := unmarshalBulkData[generated.CreateNarrativeInput](input) + if err != nil { + log.Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, err + } + + return r.bulkCreateNarrative(ctx, data) +} + +// UpdateNarrative is the resolver for the updateNarrative field. +func (r *mutationResolver) UpdateNarrative(ctx context.Context, id string, input generated.UpdateNarrativeInput) (*NarrativeUpdatePayload, error) { + res, err := withTransactionalMutation(ctx).Narrative.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "narrative"}) + } + + // setup update request + req := res.Update().SetInput(input).AppendTags(input.AppendTags) + + res, err = req.Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "narrative"}) + } + + return &NarrativeUpdatePayload{ + Narrative: res, + }, nil +} + +// DeleteNarrative is the resolver for the deleteNarrative field. +func (r *mutationResolver) DeleteNarrative(ctx context.Context, id string) (*NarrativeDeletePayload, error) { + if err := withTransactionalMutation(ctx).Narrative.DeleteOneID(id).Exec(ctx); err != nil { + return nil, parseRequestError(err, action{action: ActionDelete, object: "narrative"}) + } + + if err := generated.NarrativeEdgeCleanup(ctx, id); err != nil { + return nil, newCascadeDeleteError(err) + } + + return &NarrativeDeletePayload{ + DeletedID: id, + }, nil +} + +// Narrative is the resolver for the narrative field. +func (r *queryResolver) Narrative(ctx context.Context, id string) (*generated.Narrative, error) { + res, err := withTransactionalMutation(ctx).Narrative.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionGet, object: "narrative"}) + } + + return res, nil +} diff --git a/internal/graphapi/procedure.resolvers.go b/internal/graphapi/procedure.resolvers.go new file mode 100644 index 00000000..6de2c068 --- /dev/null +++ b/internal/graphapi/procedure.resolvers.go @@ -0,0 +1,87 @@ +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/rs/zerolog/log" + "github.com/theopenlane/core/internal/ent/generated" +) + +// CreateProcedure is the resolver for the createProcedure field. +func (r *mutationResolver) CreateProcedure(ctx context.Context, input generated.CreateProcedureInput) (*ProcedureCreatePayload, error) { + res, err := withTransactionalMutation(ctx).Procedure.Create().SetInput(input).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "procedure"}) + } + + return &ProcedureCreatePayload{ + Procedure: res, + }, nil +} + +// CreateBulkProcedure is the resolver for the createBulkProcedure field. +func (r *mutationResolver) CreateBulkProcedure(ctx context.Context, input []*generated.CreateProcedureInput) (*ProcedureBulkCreatePayload, error) { + return r.bulkCreateProcedure(ctx, input) +} + +// CreateBulkCSVProcedure is the resolver for the createBulkCSVProcedure field. +func (r *mutationResolver) CreateBulkCSVProcedure(ctx context.Context, input graphql.Upload) (*ProcedureBulkCreatePayload, error) { + data, err := unmarshalBulkData[generated.CreateProcedureInput](input) + if err != nil { + log.Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, err + } + + return r.bulkCreateProcedure(ctx, data) +} + +// UpdateProcedure is the resolver for the updateProcedure field. +func (r *mutationResolver) UpdateProcedure(ctx context.Context, id string, input generated.UpdateProcedureInput) (*ProcedureUpdatePayload, error) { + res, err := withTransactionalMutation(ctx).Procedure.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "procedure"}) + } + + // setup update request + req := res.Update().SetInput(input).AppendTags(input.AppendTags) + + res, err = req.Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "procedure"}) + } + + return &ProcedureUpdatePayload{ + Procedure: res, + }, nil +} + +// DeleteProcedure is the resolver for the deleteProcedure field. +func (r *mutationResolver) DeleteProcedure(ctx context.Context, id string) (*ProcedureDeletePayload, error) { + if err := withTransactionalMutation(ctx).Procedure.DeleteOneID(id).Exec(ctx); err != nil { + return nil, parseRequestError(err, action{action: ActionDelete, object: "procedure"}) + } + + if err := generated.ProcedureEdgeCleanup(ctx, id); err != nil { + return nil, newCascadeDeleteError(err) + } + + return &ProcedureDeletePayload{ + DeletedID: id, + }, nil +} + +// Procedure is the resolver for the procedure field. +func (r *queryResolver) Procedure(ctx context.Context, id string) (*generated.Procedure, error) { + res, err := withTransactionalMutation(ctx).Procedure.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionGet, object: "procedure"}) + } + + return res, nil +} diff --git a/internal/graphapi/risk.resolvers.go b/internal/graphapi/risk.resolvers.go new file mode 100644 index 00000000..f213dbde --- /dev/null +++ b/internal/graphapi/risk.resolvers.go @@ -0,0 +1,87 @@ +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/rs/zerolog/log" + "github.com/theopenlane/core/internal/ent/generated" +) + +// CreateRisk is the resolver for the createRisk field. +func (r *mutationResolver) CreateRisk(ctx context.Context, input generated.CreateRiskInput) (*RiskCreatePayload, error) { + res, err := withTransactionalMutation(ctx).Risk.Create().SetInput(input).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "risk"}) + } + + return &RiskCreatePayload{ + Risk: res, + }, nil +} + +// CreateBulkRisk is the resolver for the createBulkRisk field. +func (r *mutationResolver) CreateBulkRisk(ctx context.Context, input []*generated.CreateRiskInput) (*RiskBulkCreatePayload, error) { + return r.bulkCreateRisk(ctx, input) +} + +// CreateBulkCSVRisk is the resolver for the createBulkCSVRisk field. +func (r *mutationResolver) CreateBulkCSVRisk(ctx context.Context, input graphql.Upload) (*RiskBulkCreatePayload, error) { + data, err := unmarshalBulkData[generated.CreateRiskInput](input) + if err != nil { + log.Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, err + } + + return r.bulkCreateRisk(ctx, data) +} + +// UpdateRisk is the resolver for the updateRisk field. +func (r *mutationResolver) UpdateRisk(ctx context.Context, id string, input generated.UpdateRiskInput) (*RiskUpdatePayload, error) { + res, err := withTransactionalMutation(ctx).Risk.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "risk"}) + } + + // setup update request + req := res.Update().SetInput(input).AppendTags(input.AppendTags) + + res, err = req.Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "risk"}) + } + + return &RiskUpdatePayload{ + Risk: res, + }, nil +} + +// DeleteRisk is the resolver for the deleteRisk field. +func (r *mutationResolver) DeleteRisk(ctx context.Context, id string) (*RiskDeletePayload, error) { + if err := withTransactionalMutation(ctx).Risk.DeleteOneID(id).Exec(ctx); err != nil { + return nil, parseRequestError(err, action{action: ActionDelete, object: "risk"}) + } + + if err := generated.RiskEdgeCleanup(ctx, id); err != nil { + return nil, newCascadeDeleteError(err) + } + + return &RiskDeletePayload{ + DeletedID: id, + }, nil +} + +// Risk is the resolver for the risk field. +func (r *queryResolver) Risk(ctx context.Context, id string) (*generated.Risk, error) { + res, err := withTransactionalMutation(ctx).Risk.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionGet, object: "risk"}) + } + + return res, nil +} diff --git a/internal/graphapi/search.go b/internal/graphapi/search.go index 8be4ef72..833c7d89 100644 --- a/internal/graphapi/search.go +++ b/internal/graphapi/search.go @@ -9,8 +9,11 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqljson" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/ent/generated/actionplan" "github.com/theopenlane/core/internal/ent/generated/apitoken" "github.com/theopenlane/core/internal/ent/generated/contact" + "github.com/theopenlane/core/internal/ent/generated/control" + "github.com/theopenlane/core/internal/ent/generated/controlobjective" "github.com/theopenlane/core/internal/ent/generated/documentdata" "github.com/theopenlane/core/internal/ent/generated/entitlement" "github.com/theopenlane/core/internal/ent/generated/entitlementplan" @@ -23,11 +26,17 @@ import ( "github.com/theopenlane/core/internal/ent/generated/group" "github.com/theopenlane/core/internal/ent/generated/groupsetting" "github.com/theopenlane/core/internal/ent/generated/integration" + "github.com/theopenlane/core/internal/ent/generated/internalpolicy" + "github.com/theopenlane/core/internal/ent/generated/narrative" "github.com/theopenlane/core/internal/ent/generated/oauthprovider" "github.com/theopenlane/core/internal/ent/generated/ohauthtootoken" "github.com/theopenlane/core/internal/ent/generated/organization" "github.com/theopenlane/core/internal/ent/generated/organizationsetting" "github.com/theopenlane/core/internal/ent/generated/personalaccesstoken" + "github.com/theopenlane/core/internal/ent/generated/procedure" + "github.com/theopenlane/core/internal/ent/generated/risk" + "github.com/theopenlane/core/internal/ent/generated/standard" + "github.com/theopenlane/core/internal/ent/generated/subcontrol" "github.com/theopenlane/core/internal/ent/generated/subscriber" "github.com/theopenlane/core/internal/ent/generated/template" "github.com/theopenlane/core/internal/ent/generated/tfasetting" @@ -79,6 +88,42 @@ func adminSearchAPITokens(ctx context.Context, query string) ([]*generated.APITo ).All(ctx) } +// searchActionPlan searches for ActionPlan based on the query string looking for matches +func searchActionPlans(ctx context.Context, query string) ([]*generated.ActionPlan, error) { + return withTransactionalMutation(ctx).ActionPlan.Query().Where( + actionplan.Or( + actionplan.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $2", likeQuery)) // search by Tags + }, + ), + ).All(ctx) +} + +// searchActionPlan searches for ActionPlan based on the query string looking for matches +func adminSearchActionPlans(ctx context.Context, query string) ([]*generated.ActionPlan, error) { + return withTransactionalMutation(ctx).ActionPlan.Query().Where( + actionplan.Or( + actionplan.DeletedByContainsFold(query), // search by DeletedBy + actionplan.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $3", likeQuery)) // search by Tags + }, + actionplan.NameContainsFold(query), // search by Name + actionplan.DescriptionContainsFold(query), // search by Description + actionplan.StatusContainsFold(query), // search by Status + actionplan.PriorityContainsFold(query), // search by Priority + actionplan.SourceContainsFold(query), // search by Source + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(details)::text LIKE $9", likeQuery)) // search by Details + }, + ), + ).All(ctx) +} + // searchContact searches for Contact based on the query string looking for matches func searchContacts(ctx context.Context, query string) ([]*generated.Contact, error) { return withTransactionalMutation(ctx).Contact.Query().Where( @@ -114,6 +159,89 @@ func adminSearchContacts(ctx context.Context, query string) ([]*generated.Contac ).All(ctx) } +// searchControl searches for Control based on the query string looking for matches +func searchControls(ctx context.Context, query string) ([]*generated.Control, error) { + return withTransactionalMutation(ctx).Control.Query().Where( + control.Or( + control.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $2", likeQuery)) // search by Tags + }, + ), + ).All(ctx) +} + +// searchControl searches for Control based on the query string looking for matches +func adminSearchControls(ctx context.Context, query string) ([]*generated.Control, error) { + return withTransactionalMutation(ctx).Control.Query().Where( + control.Or( + control.DeletedByContainsFold(query), // search by DeletedBy + control.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $3", likeQuery)) // search by Tags + }, + control.NameContainsFold(query), // search by Name + control.DescriptionContainsFold(query), // search by Description + control.StatusContainsFold(query), // search by Status + control.ControlTypeContainsFold(query), // search by ControlType + control.VersionContainsFold(query), // search by Version + control.ControlNumberContainsFold(query), // search by ControlNumber + control.FamilyContainsFold(query), // search by Family + control.ClassContainsFold(query), // search by Class + control.SourceContainsFold(query), // search by Source + control.SatisfiesContainsFold(query), // search by Satisfies + control.MappedFrameworksContainsFold(query), // search by MappedFrameworks + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(details)::text LIKE $15", likeQuery)) // search by Details + }, + ), + ).All(ctx) +} + +// searchControlObjective searches for ControlObjective based on the query string looking for matches +func searchControlObjectives(ctx context.Context, query string) ([]*generated.ControlObjective, error) { + return withTransactionalMutation(ctx).ControlObjective.Query().Where( + controlobjective.Or( + controlobjective.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $2", likeQuery)) // search by Tags + }, + ), + ).All(ctx) +} + +// searchControlObjective searches for ControlObjective based on the query string looking for matches +func adminSearchControlObjectives(ctx context.Context, query string) ([]*generated.ControlObjective, error) { + return withTransactionalMutation(ctx).ControlObjective.Query().Where( + controlobjective.Or( + controlobjective.DeletedByContainsFold(query), // search by DeletedBy + controlobjective.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $3", likeQuery)) // search by Tags + }, + controlobjective.NameContainsFold(query), // search by Name + controlobjective.DescriptionContainsFold(query), // search by Description + controlobjective.StatusContainsFold(query), // search by Status + controlobjective.ControlObjectiveTypeContainsFold(query), // search by ControlObjectiveType + controlobjective.VersionContainsFold(query), // search by Version + controlobjective.ControlNumberContainsFold(query), // search by ControlNumber + controlobjective.FamilyContainsFold(query), // search by Family + controlobjective.ClassContainsFold(query), // search by Class + controlobjective.SourceContainsFold(query), // search by Source + controlobjective.MappedFrameworksContainsFold(query), // search by MappedFrameworks + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(details)::text LIKE $14", likeQuery)) // search by Details + }, + ), + ).All(ctx) +} + // searchDocumentData searches for DocumentData based on the query string looking for matches func searchDocumentData(ctx context.Context, query string) ([]*generated.DocumentData, error) { return withTransactionalMutation(ctx).DocumentData.Query().Where( @@ -514,6 +642,78 @@ func adminSearchIntegrations(ctx context.Context, query string) ([]*generated.In ).All(ctx) } +// searchInternalPolicy searches for InternalPolicy based on the query string looking for matches +func searchInternalPolicies(ctx context.Context, query string) ([]*generated.InternalPolicy, error) { + return withTransactionalMutation(ctx).InternalPolicy.Query().Where( + internalpolicy.Or( + internalpolicy.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $2", likeQuery)) // search by Tags + }, + ), + ).All(ctx) +} + +// searchInternalPolicy searches for InternalPolicy based on the query string looking for matches +func adminSearchInternalPolicies(ctx context.Context, query string) ([]*generated.InternalPolicy, error) { + return withTransactionalMutation(ctx).InternalPolicy.Query().Where( + internalpolicy.Or( + internalpolicy.DeletedByContainsFold(query), // search by DeletedBy + internalpolicy.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $3", likeQuery)) // search by Tags + }, + internalpolicy.NameContainsFold(query), // search by Name + internalpolicy.DescriptionContainsFold(query), // search by Description + internalpolicy.StatusContainsFold(query), // search by Status + internalpolicy.PolicyTypeContainsFold(query), // search by PolicyType + internalpolicy.VersionContainsFold(query), // search by Version + internalpolicy.PurposeAndScopeContainsFold(query), // search by PurposeAndScope + internalpolicy.BackgroundContainsFold(query), // search by Background + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(details)::text LIKE $11", likeQuery)) // search by Details + }, + ), + ).All(ctx) +} + +// searchNarrative searches for Narrative based on the query string looking for matches +func searchNarratives(ctx context.Context, query string) ([]*generated.Narrative, error) { + return withTransactionalMutation(ctx).Narrative.Query().Where( + narrative.Or( + narrative.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $2", likeQuery)) // search by Tags + }, + ), + ).All(ctx) +} + +// searchNarrative searches for Narrative based on the query string looking for matches +func adminSearchNarratives(ctx context.Context, query string) ([]*generated.Narrative, error) { + return withTransactionalMutation(ctx).Narrative.Query().Where( + narrative.Or( + narrative.DeletedByContainsFold(query), // search by DeletedBy + narrative.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $3", likeQuery)) // search by Tags + }, + narrative.NameContainsFold(query), // search by Name + narrative.DescriptionContainsFold(query), // search by Description + narrative.SatisfiesContainsFold(query), // search by Satisfies + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(details)::text LIKE $7", likeQuery)) // search by Details + }, + ), + ).All(ctx) +} + // searchOauthProvider searches for OauthProvider based on the query string looking for matches func searchOauthProviders(ctx context.Context, query string) ([]*generated.OauthProvider, error) { return withTransactionalMutation(ctx).OauthProvider.Query().Where( @@ -696,6 +896,167 @@ func adminSearchPersonalAccessTokens(ctx context.Context, query string) ([]*gene ).All(ctx) } +// searchProcedure searches for Procedure based on the query string looking for matches +func searchProcedures(ctx context.Context, query string) ([]*generated.Procedure, error) { + return withTransactionalMutation(ctx).Procedure.Query().Where( + procedure.Or( + procedure.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $2", likeQuery)) // search by Tags + }, + ), + ).All(ctx) +} + +// searchProcedure searches for Procedure based on the query string looking for matches +func adminSearchProcedures(ctx context.Context, query string) ([]*generated.Procedure, error) { + return withTransactionalMutation(ctx).Procedure.Query().Where( + procedure.Or( + procedure.DeletedByContainsFold(query), // search by DeletedBy + procedure.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $3", likeQuery)) // search by Tags + }, + procedure.NameContainsFold(query), // search by Name + procedure.DescriptionContainsFold(query), // search by Description + procedure.StatusContainsFold(query), // search by Status + procedure.ProcedureTypeContainsFold(query), // search by ProcedureType + procedure.VersionContainsFold(query), // search by Version + procedure.PurposeAndScopeContainsFold(query), // search by PurposeAndScope + procedure.BackgroundContainsFold(query), // search by Background + procedure.SatisfiesContainsFold(query), // search by Satisfies + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(details)::text LIKE $12", likeQuery)) // search by Details + }, + ), + ).All(ctx) +} + +// searchRisk searches for Risk based on the query string looking for matches +func searchRisks(ctx context.Context, query string) ([]*generated.Risk, error) { + return withTransactionalMutation(ctx).Risk.Query().Where( + risk.Or( + risk.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $2", likeQuery)) // search by Tags + }, + ), + ).All(ctx) +} + +// searchRisk searches for Risk based on the query string looking for matches +func adminSearchRisks(ctx context.Context, query string) ([]*generated.Risk, error) { + return withTransactionalMutation(ctx).Risk.Query().Where( + risk.Or( + risk.DeletedByContainsFold(query), // search by DeletedBy + risk.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $3", likeQuery)) // search by Tags + }, + risk.NameContainsFold(query), // search by Name + risk.DescriptionContainsFold(query), // search by Description + risk.StatusContainsFold(query), // search by Status + risk.RiskTypeContainsFold(query), // search by RiskType + risk.BusinessCostsContainsFold(query), // search by BusinessCosts + risk.MitigationContainsFold(query), // search by Mitigation + risk.SatisfiesContainsFold(query), // search by Satisfies + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(details)::text LIKE $11", likeQuery)) // search by Details + }, + ), + ).All(ctx) +} + +// searchStandard searches for Standard based on the query string looking for matches +func searchStandards(ctx context.Context, query string) ([]*generated.Standard, error) { + return withTransactionalMutation(ctx).Standard.Query().Where( + standard.Or( + standard.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $2", likeQuery)) // search by Tags + }, + ), + ).All(ctx) +} + +// searchStandard searches for Standard based on the query string looking for matches +func adminSearchStandards(ctx context.Context, query string) ([]*generated.Standard, error) { + return withTransactionalMutation(ctx).Standard.Query().Where( + standard.Or( + standard.DeletedByContainsFold(query), // search by DeletedBy + standard.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $3", likeQuery)) // search by Tags + }, + standard.NameContainsFold(query), // search by Name + standard.DescriptionContainsFold(query), // search by Description + standard.FamilyContainsFold(query), // search by Family + standard.StatusContainsFold(query), // search by Status + standard.StandardTypeContainsFold(query), // search by StandardType + standard.VersionContainsFold(query), // search by Version + standard.PurposeAndScopeContainsFold(query), // search by PurposeAndScope + standard.BackgroundContainsFold(query), // search by Background + standard.SatisfiesContainsFold(query), // search by Satisfies + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(details)::text LIKE $13", likeQuery)) // search by Details + }, + ), + ).All(ctx) +} + +// searchSubcontrol searches for Subcontrol based on the query string looking for matches +func searchSubcontrols(ctx context.Context, query string) ([]*generated.Subcontrol, error) { + return withTransactionalMutation(ctx).Subcontrol.Query().Where( + subcontrol.Or( + subcontrol.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $2", likeQuery)) // search by Tags + }, + ), + ).All(ctx) +} + +// searchSubcontrol searches for Subcontrol based on the query string looking for matches +func adminSearchSubcontrols(ctx context.Context, query string) ([]*generated.Subcontrol, error) { + return withTransactionalMutation(ctx).Subcontrol.Query().Where( + subcontrol.Or( + subcontrol.DeletedByContainsFold(query), // search by DeletedBy + subcontrol.IDContainsFold(query), // search by ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $3", likeQuery)) // search by Tags + }, + subcontrol.NameContainsFold(query), // search by Name + subcontrol.DescriptionContainsFold(query), // search by Description + subcontrol.StatusContainsFold(query), // search by Status + subcontrol.SubcontrolTypeContainsFold(query), // search by SubcontrolType + subcontrol.VersionContainsFold(query), // search by Version + subcontrol.SubcontrolNumberContainsFold(query), // search by SubcontrolNumber + subcontrol.FamilyContainsFold(query), // search by Family + subcontrol.ClassContainsFold(query), // search by Class + subcontrol.SourceContainsFold(query), // search by Source + subcontrol.MappedFrameworksContainsFold(query), // search by MappedFrameworks + subcontrol.ImplementationEvidenceContainsFold(query), // search by ImplementationEvidence + subcontrol.ImplementationStatusContainsFold(query), // search by ImplementationStatus + subcontrol.ImplementationVerificationContainsFold(query), // search by ImplementationVerification + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(details)::text LIKE $17", likeQuery)) // search by Details + }, + ), + ).All(ctx) +} + // searchSubscriber searches for Subscriber based on the query string looking for matches func searchSubscribers(ctx context.Context, query string) ([]*generated.Subscriber, error) { return withTransactionalMutation(ctx).Subscriber.Query().Where( diff --git a/internal/graphapi/search.resolvers.go b/internal/graphapi/search.resolvers.go index 30b7aeaa..a730c94d 100644 --- a/internal/graphapi/search.resolvers.go +++ b/internal/graphapi/search.resolvers.go @@ -18,7 +18,10 @@ func (r *queryResolver) Search(ctx context.Context, query string) (*SearchResult var ( errors []error apitokenResults []*generated.APIToken + actionplanResults []*generated.ActionPlan contactResults []*generated.Contact + controlResults []*generated.Control + controlobjectiveResults []*generated.ControlObjective documentdataResults []*generated.DocumentData entitlementResults []*generated.Entitlement entitlementplanResults []*generated.EntitlementPlan @@ -31,11 +34,17 @@ func (r *queryResolver) Search(ctx context.Context, query string) (*SearchResult groupResults []*generated.Group groupsettingResults []*generated.GroupSetting integrationResults []*generated.Integration + internalpolicyResults []*generated.InternalPolicy + narrativeResults []*generated.Narrative oauthproviderResults []*generated.OauthProvider ohauthtootokenResults []*generated.OhAuthTooToken organizationResults []*generated.Organization organizationsettingResults []*generated.OrganizationSetting personalaccesstokenResults []*generated.PersonalAccessToken + procedureResults []*generated.Procedure + riskResults []*generated.Risk + standardResults []*generated.Standard + subcontrolResults []*generated.Subcontrol subscriberResults []*generated.Subscriber tfasettingResults []*generated.TFASetting templateResults []*generated.Template @@ -52,6 +61,13 @@ func (r *queryResolver) Search(ctx context.Context, query string) (*SearchResult errors = append(errors, err) } }, + func() { + var err error + actionplanResults, err = searchActionPlans(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, func() { var err error contactResults, err = searchContacts(ctx, query) @@ -59,6 +75,20 @@ func (r *queryResolver) Search(ctx context.Context, query string) (*SearchResult errors = append(errors, err) } }, + func() { + var err error + controlResults, err = searchControls(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, + func() { + var err error + controlobjectiveResults, err = searchControlObjectives(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, func() { var err error documentdataResults, err = searchDocumentData(ctx, query) @@ -143,6 +173,20 @@ func (r *queryResolver) Search(ctx context.Context, query string) (*SearchResult errors = append(errors, err) } }, + func() { + var err error + internalpolicyResults, err = searchInternalPolicies(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, + func() { + var err error + narrativeResults, err = searchNarratives(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, func() { var err error oauthproviderResults, err = searchOauthProviders(ctx, query) @@ -178,6 +222,34 @@ func (r *queryResolver) Search(ctx context.Context, query string) (*SearchResult errors = append(errors, err) } }, + func() { + var err error + procedureResults, err = searchProcedures(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, + func() { + var err error + riskResults, err = searchRisks(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, + func() { + var err error + standardResults, err = searchStandards(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, + func() { + var err error + subcontrolResults, err = searchSubcontrols(ctx, query) + if err != nil { + errors = append(errors, err) + } + }, func() { var err error subscriberResults, err = searchSubscribers(ctx, query) @@ -235,9 +307,18 @@ func (r *queryResolver) Search(ctx context.Context, query string) (*SearchResult APITokenSearchResult{ APITokens: apitokenResults, }, + ActionPlanSearchResult{ + ActionPlans: actionplanResults, + }, ContactSearchResult{ Contacts: contactResults, }, + ControlSearchResult{ + Controls: controlResults, + }, + ControlObjectiveSearchResult{ + ControlObjectives: controlobjectiveResults, + }, DocumentDataSearchResult{ DocumentData: documentdataResults, }, @@ -274,6 +355,12 @@ func (r *queryResolver) Search(ctx context.Context, query string) (*SearchResult IntegrationSearchResult{ Integrations: integrationResults, }, + InternalPolicySearchResult{ + InternalPolicies: internalpolicyResults, + }, + NarrativeSearchResult{ + Narratives: narrativeResults, + }, OauthProviderSearchResult{ OauthProviders: oauthproviderResults, }, @@ -289,6 +376,18 @@ func (r *queryResolver) Search(ctx context.Context, query string) (*SearchResult PersonalAccessTokenSearchResult{ PersonalAccessTokens: personalaccesstokenResults, }, + ProcedureSearchResult{ + Procedures: procedureResults, + }, + RiskSearchResult{ + Risks: riskResults, + }, + StandardSearchResult{ + Standards: standardResults, + }, + SubcontrolSearchResult{ + Subcontrols: subcontrolResults, + }, SubscriberSearchResult{ Subscribers: subscriberResults, }, @@ -322,6 +421,18 @@ func (r *queryResolver) APITokenSearch(ctx context.Context, query string) (*APIT APITokens: apitokenResults, }, nil } +func (r *queryResolver) ActionPlanSearch(ctx context.Context, query string) (*ActionPlanSearchResult, error) { + actionplanResults, err := searchActionPlans(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &ActionPlanSearchResult{ + ActionPlans: actionplanResults, + }, nil +} func (r *queryResolver) ContactSearch(ctx context.Context, query string) (*ContactSearchResult, error) { contactResults, err := searchContacts(ctx, query) @@ -334,6 +445,30 @@ func (r *queryResolver) ContactSearch(ctx context.Context, query string) (*Conta Contacts: contactResults, }, nil } +func (r *queryResolver) ControlSearch(ctx context.Context, query string) (*ControlSearchResult, error) { + controlResults, err := searchControls(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &ControlSearchResult{ + Controls: controlResults, + }, nil +} +func (r *queryResolver) ControlObjectiveSearch(ctx context.Context, query string) (*ControlObjectiveSearchResult, error) { + controlobjectiveResults, err := searchControlObjectives(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &ControlObjectiveSearchResult{ + ControlObjectives: controlobjectiveResults, + }, nil +} func (r *queryResolver) DocumentDataSearch(ctx context.Context, query string) (*DocumentDataSearchResult, error) { documentdataResults, err := searchDocumentData(ctx, query) @@ -478,6 +613,30 @@ func (r *queryResolver) IntegrationSearch(ctx context.Context, query string) (*I Integrations: integrationResults, }, nil } +func (r *queryResolver) InternalPolicySearch(ctx context.Context, query string) (*InternalPolicySearchResult, error) { + internalpolicyResults, err := searchInternalPolicies(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &InternalPolicySearchResult{ + InternalPolicies: internalpolicyResults, + }, nil +} +func (r *queryResolver) NarrativeSearch(ctx context.Context, query string) (*NarrativeSearchResult, error) { + narrativeResults, err := searchNarratives(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &NarrativeSearchResult{ + Narratives: narrativeResults, + }, nil +} func (r *queryResolver) OauthProviderSearch(ctx context.Context, query string) (*OauthProviderSearchResult, error) { oauthproviderResults, err := searchOauthProviders(ctx, query) @@ -538,6 +697,54 @@ func (r *queryResolver) PersonalAccessTokenSearch(ctx context.Context, query str PersonalAccessTokens: personalaccesstokenResults, }, nil } +func (r *queryResolver) ProcedureSearch(ctx context.Context, query string) (*ProcedureSearchResult, error) { + procedureResults, err := searchProcedures(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &ProcedureSearchResult{ + Procedures: procedureResults, + }, nil +} +func (r *queryResolver) RiskSearch(ctx context.Context, query string) (*RiskSearchResult, error) { + riskResults, err := searchRisks(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &RiskSearchResult{ + Risks: riskResults, + }, nil +} +func (r *queryResolver) StandardSearch(ctx context.Context, query string) (*StandardSearchResult, error) { + standardResults, err := searchStandards(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &StandardSearchResult{ + Standards: standardResults, + }, nil +} +func (r *queryResolver) SubcontrolSearch(ctx context.Context, query string) (*SubcontrolSearchResult, error) { + subcontrolResults, err := searchSubcontrols(ctx, query) + + if err != nil { + return nil, ErrSearchFailed + } + + // return the results + return &SubcontrolSearchResult{ + Subcontrols: subcontrolResults, + }, nil +} func (r *queryResolver) SubscriberSearch(ctx context.Context, query string) (*SubscriberSearchResult, error) { subscriberResults, err := searchSubscribers(ctx, query) diff --git a/internal/graphapi/standard.resolvers.go b/internal/graphapi/standard.resolvers.go new file mode 100644 index 00000000..610fea70 --- /dev/null +++ b/internal/graphapi/standard.resolvers.go @@ -0,0 +1,87 @@ +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/rs/zerolog/log" + "github.com/theopenlane/core/internal/ent/generated" +) + +// CreateStandard is the resolver for the createStandard field. +func (r *mutationResolver) CreateStandard(ctx context.Context, input generated.CreateStandardInput) (*StandardCreatePayload, error) { + res, err := withTransactionalMutation(ctx).Standard.Create().SetInput(input).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "standard"}) + } + + return &StandardCreatePayload{ + Standard: res, + }, nil +} + +// CreateBulkStandard is the resolver for the createBulkStandard field. +func (r *mutationResolver) CreateBulkStandard(ctx context.Context, input []*generated.CreateStandardInput) (*StandardBulkCreatePayload, error) { + return r.bulkCreateStandard(ctx, input) +} + +// CreateBulkCSVStandard is the resolver for the createBulkCSVStandard field. +func (r *mutationResolver) CreateBulkCSVStandard(ctx context.Context, input graphql.Upload) (*StandardBulkCreatePayload, error) { + data, err := unmarshalBulkData[generated.CreateStandardInput](input) + if err != nil { + log.Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, err + } + + return r.bulkCreateStandard(ctx, data) +} + +// UpdateStandard is the resolver for the updateStandard field. +func (r *mutationResolver) UpdateStandard(ctx context.Context, id string, input generated.UpdateStandardInput) (*StandardUpdatePayload, error) { + res, err := withTransactionalMutation(ctx).Standard.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "standard"}) + } + + // setup update request + req := res.Update().SetInput(input).AppendTags(input.AppendTags) + + res, err = req.Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "standard"}) + } + + return &StandardUpdatePayload{ + Standard: res, + }, nil +} + +// DeleteStandard is the resolver for the deleteStandard field. +func (r *mutationResolver) DeleteStandard(ctx context.Context, id string) (*StandardDeletePayload, error) { + if err := withTransactionalMutation(ctx).Standard.DeleteOneID(id).Exec(ctx); err != nil { + return nil, parseRequestError(err, action{action: ActionDelete, object: "standard"}) + } + + if err := generated.StandardEdgeCleanup(ctx, id); err != nil { + return nil, newCascadeDeleteError(err) + } + + return &StandardDeletePayload{ + DeletedID: id, + }, nil +} + +// Standard is the resolver for the standard field. +func (r *queryResolver) Standard(ctx context.Context, id string) (*generated.Standard, error) { + res, err := withTransactionalMutation(ctx).Standard.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionGet, object: "standard"}) + } + + return res, nil +} diff --git a/internal/graphapi/subcontrol.resolvers.go b/internal/graphapi/subcontrol.resolvers.go new file mode 100644 index 00000000..4e4ed85f --- /dev/null +++ b/internal/graphapi/subcontrol.resolvers.go @@ -0,0 +1,87 @@ +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/rs/zerolog/log" + "github.com/theopenlane/core/internal/ent/generated" +) + +// CreateSubcontrol is the resolver for the createSubcontrol field. +func (r *mutationResolver) CreateSubcontrol(ctx context.Context, input generated.CreateSubcontrolInput) (*SubcontrolCreatePayload, error) { + res, err := withTransactionalMutation(ctx).Subcontrol.Create().SetInput(input).Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionCreate, object: "subcontrol"}) + } + + return &SubcontrolCreatePayload{ + Subcontrol: res, + }, nil +} + +// CreateBulkSubcontrol is the resolver for the createBulkSubcontrol field. +func (r *mutationResolver) CreateBulkSubcontrol(ctx context.Context, input []*generated.CreateSubcontrolInput) (*SubcontrolBulkCreatePayload, error) { + return r.bulkCreateSubcontrol(ctx, input) +} + +// CreateBulkCSVSubcontrol is the resolver for the createBulkCSVSubcontrol field. +func (r *mutationResolver) CreateBulkCSVSubcontrol(ctx context.Context, input graphql.Upload) (*SubcontrolBulkCreatePayload, error) { + data, err := unmarshalBulkData[generated.CreateSubcontrolInput](input) + if err != nil { + log.Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, err + } + + return r.bulkCreateSubcontrol(ctx, data) +} + +// UpdateSubcontrol is the resolver for the updateSubcontrol field. +func (r *mutationResolver) UpdateSubcontrol(ctx context.Context, id string, input generated.UpdateSubcontrolInput) (*SubcontrolUpdatePayload, error) { + res, err := withTransactionalMutation(ctx).Subcontrol.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "subcontrol"}) + } + + // setup update request + req := res.Update().SetInput(input).AppendTags(input.AppendTags) + + res, err = req.Save(ctx) + if err != nil { + return nil, parseRequestError(err, action{action: ActionUpdate, object: "subcontrol"}) + } + + return &SubcontrolUpdatePayload{ + Subcontrol: res, + }, nil +} + +// DeleteSubcontrol is the resolver for the deleteSubcontrol field. +func (r *mutationResolver) DeleteSubcontrol(ctx context.Context, id string) (*SubcontrolDeletePayload, error) { + if err := withTransactionalMutation(ctx).Subcontrol.DeleteOneID(id).Exec(ctx); err != nil { + return nil, parseRequestError(err, action{action: ActionDelete, object: "subcontrol"}) + } + + if err := generated.SubcontrolEdgeCleanup(ctx, id); err != nil { + return nil, newCascadeDeleteError(err) + } + + return &SubcontrolDeletePayload{ + DeletedID: id, + }, nil +} + +// Subcontrol is the resolver for the subcontrol field. +func (r *queryResolver) Subcontrol(ctx context.Context, id string) (*generated.Subcontrol, error) { + res, err := withTransactionalMutation(ctx).Subcontrol.Get(ctx, id) + if err != nil { + return nil, parseRequestError(err, action{action: ActionGet, object: "subcontrol"}) + } + + return res, nil +} diff --git a/pkg/enums/riskimpact.go b/pkg/enums/riskimpact.go new file mode 100644 index 00000000..4b776229 --- /dev/null +++ b/pkg/enums/riskimpact.go @@ -0,0 +1,62 @@ +package enums + +import ( + "fmt" + "io" + "strings" +) + +type RiskImpact string + +var ( + RiskImpactLow RiskImpact = "LOW" + RiskImpactModerate RiskImpact = "MODERATE" + RiskImpactHigh RiskImpact = "HIGH" + RiskImpactInvalid RiskImpact = "INVALID" +) + +// Values returns a slice of strings that represents all the possible values of the RiskImpact enum. +// Possible default values are "LOW", "MODERATE", and "HIGH". +func (RiskImpact) Values() (kinds []string) { + for _, s := range []RiskImpact{RiskImpactLow, RiskImpactModerate, RiskImpactHigh} { + kinds = append(kinds, string(s)) + } + + return +} + +// String returns the RiskImpact as a string +func (r RiskImpact) String() string { + return string(r) +} + +// ToRiskImpact returns the user status enum based on string input +func ToRiskImpact(r string) *RiskImpact { + switch r := strings.ToUpper(r); r { + case RiskImpactLow.String(): + return &RiskImpactLow + case RiskImpactModerate.String(): + return &RiskImpactModerate + case RiskImpactHigh.String(): + return &RiskImpactHigh + default: + return &RiskImpactInvalid + } +} + +// MarshalGQL implement the Marshaler interface for gqlgen +func (r RiskImpact) MarshalGQL(w io.Writer) { + _, _ = w.Write([]byte(`"` + r.String() + `"`)) +} + +// UnmarshalGQL implement the Unmarshaler interface for gqlgen +func (r *RiskImpact) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("wrong type for Risk Impact, got: %T", v) //nolint:err113 + } + + *r = RiskImpact(str) + + return nil +} diff --git a/pkg/enums/risklikelihood.go b/pkg/enums/risklikelihood.go new file mode 100644 index 00000000..4d4bfe34 --- /dev/null +++ b/pkg/enums/risklikelihood.go @@ -0,0 +1,62 @@ +package enums + +import ( + "fmt" + "io" + "strings" +) + +type RiskLikelihood string + +var ( + RiskLikelihoodLow RiskLikelihood = "UNLIKELY" + RiskLikelihoodMid RiskLikelihood = "LIKELY" + RiskLikelihoodHigh RiskLikelihood = "HIGHLY_LIKELY" + RiskLikelihoodInvalid RiskLikelihood = "INVALID" +) + +// Values returns a slice of strings that represents all the possible values of the RiskLikelihood enum. +// Possible default values are "UNLIKELY", "LIKELY", and "HIGHLY_LIKELY". +func (RiskLikelihood) Values() (kinds []string) { + for _, s := range []RiskLikelihood{RiskLikelihoodLow, RiskLikelihoodMid, RiskLikelihoodHigh} { + kinds = append(kinds, string(s)) + } + + return +} + +// String returns the RiskLikelihood as a string +func (r RiskLikelihood) String() string { + return string(r) +} + +// ToRiskLikelihood returns the user status enum based on string input +func ToRiskLikelihood(r string) *RiskLikelihood { + switch r := strings.ToUpper(r); r { + case RiskLikelihoodLow.String(): + return &RiskLikelihoodLow + case RiskLikelihoodMid.String(): + return &RiskLikelihoodMid + case RiskLikelihoodHigh.String(): + return &RiskLikelihoodHigh + default: + return &RiskLikelihoodInvalid + } +} + +// MarshalGQL implement the Marshaler interface for gqlgen +func (r RiskLikelihood) MarshalGQL(w io.Writer) { + _, _ = w.Write([]byte(`"` + r.String() + `"`)) +} + +// UnmarshalGQL implement the Unmarshaler interface for gqlgen +func (r *RiskLikelihood) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("wrong type for Risk Likelihood, got: %T", v) //nolint:err113 + } + + *r = RiskLikelihood(str) + + return nil +} diff --git a/pkg/openlaneclient/graphclient.go b/pkg/openlaneclient/graphclient.go index e021c1f6..33526b42 100644 --- a/pkg/openlaneclient/graphclient.go +++ b/pkg/openlaneclient/graphclient.go @@ -15,6 +15,16 @@ import ( ) type OpenlaneGraphClient interface { + CreateBulkCSVActionPlan(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVActionPlan, error) + CreateBulkActionPlan(ctx context.Context, input []*CreateActionPlanInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkActionPlan, error) + CreateActionPlan(ctx context.Context, input CreateActionPlanInput, interceptors ...clientv2.RequestInterceptor) (*CreateActionPlan, error) + DeleteActionPlan(ctx context.Context, deleteActionPlanID string, interceptors ...clientv2.RequestInterceptor) (*DeleteActionPlan, error) + GetAllActionPlans(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllActionPlans, error) + GetActionPlanByID(ctx context.Context, actionPlanID string, interceptors ...clientv2.RequestInterceptor) (*GetActionPlanByID, error) + GetActionPlans(ctx context.Context, where *ActionPlanWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetActionPlans, error) + UpdateActionPlan(ctx context.Context, updateActionPlanID string, input UpdateActionPlanInput, interceptors ...clientv2.RequestInterceptor) (*UpdateActionPlan, error) + GetAllActionPlanHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllActionPlanHistories, error) + GetActionPlanHistories(ctx context.Context, where *ActionPlanHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetActionPlanHistories, error) AdminSearch(ctx context.Context, query string, interceptors ...clientv2.RequestInterceptor) (*AdminSearch, error) CreateAPIToken(ctx context.Context, input CreateAPITokenInput, interceptors ...clientv2.RequestInterceptor) (*CreateAPIToken, error) UpdateAPIToken(ctx context.Context, updateAPITokenID string, input UpdateAPITokenInput, interceptors ...clientv2.RequestInterceptor) (*UpdateAPIToken, error) @@ -31,6 +41,26 @@ type OpenlaneGraphClient interface { UpdateContact(ctx context.Context, updateContactID string, input UpdateContactInput, interceptors ...clientv2.RequestInterceptor) (*UpdateContact, error) GetAllContactHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllContactHistories, error) GetContactHistories(ctx context.Context, where *ContactHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetContactHistories, error) + CreateBulkCSVControl(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVControl, error) + CreateBulkControl(ctx context.Context, input []*CreateControlInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkControl, error) + CreateControl(ctx context.Context, input CreateControlInput, interceptors ...clientv2.RequestInterceptor) (*CreateControl, error) + DeleteControl(ctx context.Context, deleteControlID string, interceptors ...clientv2.RequestInterceptor) (*DeleteControl, error) + GetAllControls(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllControls, error) + GetControlByID(ctx context.Context, controlID string, interceptors ...clientv2.RequestInterceptor) (*GetControlByID, error) + GetControls(ctx context.Context, where *ControlWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetControls, error) + UpdateControl(ctx context.Context, updateControlID string, input UpdateControlInput, interceptors ...clientv2.RequestInterceptor) (*UpdateControl, error) + GetAllControlHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllControlHistories, error) + GetControlHistories(ctx context.Context, where *ControlHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetControlHistories, error) + CreateBulkCSVControlObjective(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVControlObjective, error) + CreateBulkControlObjective(ctx context.Context, input []*CreateControlObjectiveInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkControlObjective, error) + CreateControlObjective(ctx context.Context, input CreateControlObjectiveInput, interceptors ...clientv2.RequestInterceptor) (*CreateControlObjective, error) + DeleteControlObjective(ctx context.Context, deleteControlObjectiveID string, interceptors ...clientv2.RequestInterceptor) (*DeleteControlObjective, error) + GetAllControlObjectives(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllControlObjectives, error) + GetControlObjectiveByID(ctx context.Context, controlObjectiveID string, interceptors ...clientv2.RequestInterceptor) (*GetControlObjectiveByID, error) + GetControlObjectives(ctx context.Context, where *ControlObjectiveWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetControlObjectives, error) + UpdateControlObjective(ctx context.Context, updateControlObjectiveID string, input UpdateControlObjectiveInput, interceptors ...clientv2.RequestInterceptor) (*UpdateControlObjective, error) + GetAllControlObjectiveHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllControlObjectiveHistories, error) + GetControlObjectiveHistories(ctx context.Context, where *ControlObjectiveHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetControlObjectiveHistories, error) CreateDocumentData(ctx context.Context, input CreateDocumentDataInput, interceptors ...clientv2.RequestInterceptor) (*CreateDocumentData, error) DeleteDocumentData(ctx context.Context, deleteDocumentDataID string, interceptors ...clientv2.RequestInterceptor) (*DeleteDocumentData, error) GetDocumentDataByID(ctx context.Context, documentDataID string, interceptors ...clientv2.RequestInterceptor) (*GetDocumentDataByID, error) @@ -156,6 +186,16 @@ type OpenlaneGraphClient interface { UpdateIntegration(ctx context.Context, updateIntegrationID string, input UpdateIntegrationInput, interceptors ...clientv2.RequestInterceptor) (*UpdateIntegration, error) GetAllIntegrationHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllIntegrationHistories, error) GetIntegrationHistories(ctx context.Context, where *IntegrationHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetIntegrationHistories, error) + CreateBulkCSVInternalPolicy(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVInternalPolicy, error) + CreateBulkInternalPolicy(ctx context.Context, input []*CreateInternalPolicyInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkInternalPolicy, error) + CreateInternalPolicy(ctx context.Context, input CreateInternalPolicyInput, interceptors ...clientv2.RequestInterceptor) (*CreateInternalPolicy, error) + DeleteInternalPolicy(ctx context.Context, deleteInternalPolicyID string, interceptors ...clientv2.RequestInterceptor) (*DeleteInternalPolicy, error) + GetAllInternalPolicies(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllInternalPolicies, error) + GetInternalPolicyByID(ctx context.Context, internalPolicyID string, interceptors ...clientv2.RequestInterceptor) (*GetInternalPolicyByID, error) + GetInternalPolicies(ctx context.Context, where *InternalPolicyWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetInternalPolicies, error) + UpdateInternalPolicy(ctx context.Context, updateInternalPolicyID string, input UpdateInternalPolicyInput, interceptors ...clientv2.RequestInterceptor) (*UpdateInternalPolicy, error) + GetAllInternalPolicyHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllInternalPolicyHistories, error) + GetInternalPolicyHistories(ctx context.Context, where *InternalPolicyHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetInternalPolicyHistories, error) CreateBulkCSVInvite(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVInvite, error) CreateBulkInvite(ctx context.Context, input []*CreateInviteInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkInvite, error) CreateInvite(ctx context.Context, input CreateInviteInput, interceptors ...clientv2.RequestInterceptor) (*CreateInvite, error) @@ -163,6 +203,16 @@ type OpenlaneGraphClient interface { GetInviteByID(ctx context.Context, inviteID string, interceptors ...clientv2.RequestInterceptor) (*GetInviteByID, error) GetAllInvites(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllInvites, error) InvitesByOrgID(ctx context.Context, where *InviteWhereInput, interceptors ...clientv2.RequestInterceptor) (*InvitesByOrgID, error) + CreateBulkCSVNarrative(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVNarrative, error) + CreateBulkNarrative(ctx context.Context, input []*CreateNarrativeInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkNarrative, error) + CreateNarrative(ctx context.Context, input CreateNarrativeInput, interceptors ...clientv2.RequestInterceptor) (*CreateNarrative, error) + DeleteNarrative(ctx context.Context, deleteNarrativeID string, interceptors ...clientv2.RequestInterceptor) (*DeleteNarrative, error) + GetAllNarratives(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllNarratives, error) + GetNarrativeByID(ctx context.Context, narrativeID string, interceptors ...clientv2.RequestInterceptor) (*GetNarrativeByID, error) + GetNarratives(ctx context.Context, where *NarrativeWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetNarratives, error) + UpdateNarrative(ctx context.Context, updateNarrativeID string, input UpdateNarrativeInput, interceptors ...clientv2.RequestInterceptor) (*UpdateNarrative, error) + GetAllNarrativeHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllNarrativeHistories, error) + GetNarrativeHistories(ctx context.Context, where *NarrativeHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetNarrativeHistories, error) GetAllNoteHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllNoteHistories, error) GetNoteHistories(ctx context.Context, where *NoteHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetNoteHistories, error) GetAllOauthProviderHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOauthProviderHistories, error) @@ -204,7 +254,47 @@ type OpenlaneGraphClient interface { GetAllPersonalAccessTokens(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllPersonalAccessTokens, error) GetPersonalAccessTokenByID(ctx context.Context, personalAccessTokenID string, interceptors ...clientv2.RequestInterceptor) (*GetPersonalAccessTokenByID, error) UpdatePersonalAccessToken(ctx context.Context, updatePersonalAccessTokenID string, input UpdatePersonalAccessTokenInput, interceptors ...clientv2.RequestInterceptor) (*UpdatePersonalAccessToken, error) + CreateBulkCSVProcedure(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVProcedure, error) + CreateBulkProcedure(ctx context.Context, input []*CreateProcedureInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkProcedure, error) + CreateProcedure(ctx context.Context, input CreateProcedureInput, interceptors ...clientv2.RequestInterceptor) (*CreateProcedure, error) + DeleteProcedure(ctx context.Context, deleteProcedureID string, interceptors ...clientv2.RequestInterceptor) (*DeleteProcedure, error) + GetAllProcedures(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllProcedures, error) + GetProcedureByID(ctx context.Context, procedureID string, interceptors ...clientv2.RequestInterceptor) (*GetProcedureByID, error) + GetProcedures(ctx context.Context, where *ProcedureWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetProcedures, error) + UpdateProcedure(ctx context.Context, updateProcedureID string, input UpdateProcedureInput, interceptors ...clientv2.RequestInterceptor) (*UpdateProcedure, error) + GetAllProcedureHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllProcedureHistories, error) + GetProcedureHistories(ctx context.Context, where *ProcedureHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetProcedureHistories, error) + CreateBulkCSVRisk(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVRisk, error) + CreateBulkRisk(ctx context.Context, input []*CreateRiskInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkRisk, error) + CreateRisk(ctx context.Context, input CreateRiskInput, interceptors ...clientv2.RequestInterceptor) (*CreateRisk, error) + DeleteRisk(ctx context.Context, deleteRiskID string, interceptors ...clientv2.RequestInterceptor) (*DeleteRisk, error) + GetAllRisks(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllRisks, error) + GetRiskByID(ctx context.Context, riskID string, interceptors ...clientv2.RequestInterceptor) (*GetRiskByID, error) + GetRisks(ctx context.Context, where *RiskWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetRisks, error) + UpdateRisk(ctx context.Context, updateRiskID string, input UpdateRiskInput, interceptors ...clientv2.RequestInterceptor) (*UpdateRisk, error) + GetAllRiskHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllRiskHistories, error) + GetRiskHistories(ctx context.Context, where *RiskHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetRiskHistories, error) GlobalSearch(ctx context.Context, query string, interceptors ...clientv2.RequestInterceptor) (*GlobalSearch, error) + CreateBulkCSVStandard(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVStandard, error) + CreateBulkStandard(ctx context.Context, input []*CreateStandardInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkStandard, error) + CreateStandard(ctx context.Context, input CreateStandardInput, interceptors ...clientv2.RequestInterceptor) (*CreateStandard, error) + DeleteStandard(ctx context.Context, deleteStandardID string, interceptors ...clientv2.RequestInterceptor) (*DeleteStandard, error) + GetAllStandards(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllStandards, error) + GetStandardByID(ctx context.Context, standardID string, interceptors ...clientv2.RequestInterceptor) (*GetStandardByID, error) + GetStandards(ctx context.Context, where *StandardWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetStandards, error) + UpdateStandard(ctx context.Context, updateStandardID string, input UpdateStandardInput, interceptors ...clientv2.RequestInterceptor) (*UpdateStandard, error) + GetAllStandardHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllStandardHistories, error) + GetStandardHistories(ctx context.Context, where *StandardHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetStandardHistories, error) + CreateBulkCSVSubcontrol(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVSubcontrol, error) + CreateBulkSubcontrol(ctx context.Context, input []*CreateSubcontrolInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkSubcontrol, error) + CreateSubcontrol(ctx context.Context, input CreateSubcontrolInput, interceptors ...clientv2.RequestInterceptor) (*CreateSubcontrol, error) + DeleteSubcontrol(ctx context.Context, deleteSubcontrolID string, interceptors ...clientv2.RequestInterceptor) (*DeleteSubcontrol, error) + GetAllSubcontrols(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllSubcontrols, error) + GetSubcontrolByID(ctx context.Context, subcontrolID string, interceptors ...clientv2.RequestInterceptor) (*GetSubcontrolByID, error) + GetSubcontrols(ctx context.Context, where *SubcontrolWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetSubcontrols, error) + UpdateSubcontrol(ctx context.Context, updateSubcontrolID string, input UpdateSubcontrolInput, interceptors ...clientv2.RequestInterceptor) (*UpdateSubcontrol, error) + GetAllSubcontrolHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllSubcontrolHistories, error) + GetSubcontrolHistories(ctx context.Context, where *SubcontrolHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetSubcontrolHistories, error) CreateBulkCSVSubscriber(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVSubscriber, error) CreateBulkSubscriber(ctx context.Context, input []*CreateSubscriberInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkSubscriber, error) CreateSubscriber(ctx context.Context, input CreateSubscriberInput, interceptors ...clientv2.RequestInterceptor) (*CreateSubscriber, error) @@ -258,32453 +348,48951 @@ func NewClient(cli *http.Client, baseURL string, options *clientv2.Options, inte return &Client{Client: clientv2.NewClient(cli, baseURL, options, interceptors...)} } -type AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens struct { - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Name string "json:\"name\" graphql:\"name\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" +type CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + DueDate *time.Time "json:\"dueDate,omitempty\" graphql:\"dueDate\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Priority *string "json:\"priority,omitempty\" graphql:\"priority\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens) GetDeletedBy() *string { +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetCreatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} } - return t.DeletedBy + return t.CreatedAt } -func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens) GetID() string { +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetCreatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} } - return t.ID + return t.CreatedBy } -func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens) GetTags() []string { +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} } - return t.Tags + return t.Description } -func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens) GetOwnerID() *string { +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetDetails() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} } - return t.OwnerID + return t.Details } -func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens) GetName() string { +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetDueDate() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} } - return t.Name + return t.DueDate } -func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens) GetScopes() []string { +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} } - return t.Scopes -} - -type AdminSearch_AdminSearch_Nodes_APITokenSearchResult struct { - APITokens []*AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens "json:\"apiTokens,omitempty\" graphql:\"apiTokens\"" + return t.ID } - -func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult) GetAPITokens() []*AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens { +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetName() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} } - return t.APITokens + return t.Name } - -type AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts struct { - ID string "json:\"id\" graphql:\"id\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - FullName string "json:\"fullName\" graphql:\"fullName\"" - Title *string "json:\"title,omitempty\" graphql:\"title\"" - Company *string "json:\"company,omitempty\" graphql:\"company\"" - Email *string "json:\"email,omitempty\" graphql:\"email\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" - Address *string "json:\"address,omitempty\" graphql:\"address\"" +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetPriority() *string { + if t == nil { + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} + } + return t.Priority } - -func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetID() string { +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetSource() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} } - return t.ID + return t.Source } -func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetDeletedBy() *string { +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} } - return t.DeletedBy + return t.Status } -func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetTags() []string { +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} } return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetOwnerID() *string { +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetUpdatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} } - return t.OwnerID + return t.UpdatedAt } -func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetFullName() string { +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans) GetUpdatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans{} } - return t.FullName + return t.UpdatedBy } -func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetTitle() *string { + +type CreateBulkCSVActionPlan_CreateBulkCSVActionPlan struct { + ActionPlans []*CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans "json:\"actionPlans,omitempty\" graphql:\"actionPlans\"" +} + +func (t *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan) GetActionPlans() []*CreateBulkCSVActionPlan_CreateBulkCSVActionPlan_ActionPlans { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + t = &CreateBulkCSVActionPlan_CreateBulkCSVActionPlan{} } - return t.Title + return t.ActionPlans } -func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetCompany() *string { + +type CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + DueDate *time.Time "json:\"dueDate,omitempty\" graphql:\"dueDate\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Priority *string "json:\"priority,omitempty\" graphql:\"priority\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetCreatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} } - return t.Company + return t.CreatedAt } -func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetEmail() *string { +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetCreatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} } - return t.Email + return t.CreatedBy } -func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetPhoneNumber() *string { +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} } - return t.PhoneNumber + return t.Description } -func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetAddress() *string { +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetDetails() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} } - return t.Address + return t.Details } - -type AdminSearch_AdminSearch_Nodes_ContactSearchResult struct { - Contacts []*AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts "json:\"contacts,omitempty\" graphql:\"contacts\"" +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetDueDate() *time.Time { + if t == nil { + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} + } + return t.DueDate } - -func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult) GetContacts() []*AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts { +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult{} + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} } - return t.Contacts + return t.ID } - -type AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - TemplateID string "json:\"templateID\" graphql:\"templateID\"" - Data json.RawMessage "json:\"data\" graphql:\"data\"" +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetName() string { + if t == nil { + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} + } + return t.Name } - -func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData) GetID() string { +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetPriority() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData{} + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} } - return t.ID + return t.Priority } -func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData) GetTags() []string { +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetSource() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData{} + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} } - return t.Tags + return t.Source } -func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData) GetDeletedBy() *string { +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData{} + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} } - return t.DeletedBy + return t.Status } -func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData) GetOwnerID() *string { +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData{} + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} } - return t.OwnerID + return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData) GetTemplateID() string { +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetUpdatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData{} + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} } - return t.TemplateID + return t.UpdatedAt } -func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData) GetData() *json.RawMessage { +func (t *CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans) GetUpdatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData{} + t = &CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans{} } - return &t.Data + return t.UpdatedBy } -type AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult struct { - DocumentData []*AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData "json:\"documentData,omitempty\" graphql:\"documentData\"" +type CreateBulkActionPlan_CreateBulkActionPlan struct { + ActionPlans []*CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans "json:\"actionPlans,omitempty\" graphql:\"actionPlans\"" } -func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult) GetDocumentData() []*AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData { +func (t *CreateBulkActionPlan_CreateBulkActionPlan) GetActionPlans() []*CreateBulkActionPlan_CreateBulkActionPlan_ActionPlans { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult{} + t = &CreateBulkActionPlan_CreateBulkActionPlan{} } - return t.DocumentData + return t.ActionPlans } -type AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PlanID string "json:\"planID\" graphql:\"planID\"" - OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" - ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" - ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" +type CreateActionPlan_CreateActionPlan_ActionPlan struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + DueDate *time.Time "json:\"dueDate,omitempty\" graphql:\"dueDate\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Priority *string "json:\"priority,omitempty\" graphql:\"priority\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetID() string { +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetCreatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} } - return t.ID + return t.CreatedAt } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetTags() []string { +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetCreatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} } - return t.Tags + return t.CreatedBy } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetDeletedBy() *string { +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} } - return t.DeletedBy + return t.Description } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetOwnerID() *string { +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetDetails() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} } - return t.OwnerID + return t.Details } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetPlanID() string { +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetDueDate() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} } - return t.PlanID + return t.DueDate } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetOrganizationID() string { +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} } - return t.OrganizationID + return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetExternalCustomerID() *string { +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetName() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} } - return t.ExternalCustomerID + return t.Name } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetExternalSubscriptionID() *string { +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetPriority() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} } - return t.ExternalSubscriptionID + return t.Priority } - -type AdminSearch_AdminSearch_Nodes_EntitlementSearchResult struct { - Entitlements []*AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements "json:\"entitlements,omitempty\" graphql:\"entitlements\"" +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetSource() *string { + if t == nil { + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} + } + return t.Source } - -func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult) GetEntitlements() []*AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements { +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult{} + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} } - return t.Entitlements + return t.Status } - -type AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans struct { - ID string "json:\"id\" graphql:\"id\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Name string "json:\"name\" graphql:\"name\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Version string "json:\"version\" graphql:\"version\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetTags() []string { + if t == nil { + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} + } + return t.Tags } - -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetID() string { +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetUpdatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} } - return t.ID + return t.UpdatedAt } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetDeletedBy() *string { +func (t *CreateActionPlan_CreateActionPlan_ActionPlan) GetUpdatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + t = &CreateActionPlan_CreateActionPlan_ActionPlan{} } - return t.DeletedBy + return t.UpdatedBy } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetTags() []string { + +type CreateActionPlan_CreateActionPlan struct { + ActionPlan CreateActionPlan_CreateActionPlan_ActionPlan "json:\"actionPlan\" graphql:\"actionPlan\"" +} + +func (t *CreateActionPlan_CreateActionPlan) GetActionPlan() *CreateActionPlan_CreateActionPlan_ActionPlan { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + t = &CreateActionPlan_CreateActionPlan{} } - return t.Tags + return &t.ActionPlan } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetOwnerID() *string { + +type DeleteActionPlan_DeleteActionPlan struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +} + +func (t *DeleteActionPlan_DeleteActionPlan) GetDeletedID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + t = &DeleteActionPlan_DeleteActionPlan{} } - return t.OwnerID + return t.DeletedID } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetDisplayName() *string { + +type GetAllActionPlans_ActionPlans_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + DueDate *time.Time "json:\"dueDate,omitempty\" graphql:\"dueDate\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Priority *string "json:\"priority,omitempty\" graphql:\"priority\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + t = &GetAllActionPlans_ActionPlans_Edges_Node{} } - return t.DisplayName + return t.CreatedAt } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetName() string { +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + t = &GetAllActionPlans_ActionPlans_Edges_Node{} } - return t.Name + return t.CreatedBy } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetDescription() *string { +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + t = &GetAllActionPlans_ActionPlans_Edges_Node{} } return t.Description } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetVersion() string { +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + t = &GetAllActionPlans_ActionPlans_Edges_Node{} } - return t.Version + return t.Details } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetMetadata() map[string]interface{} { +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetDueDate() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + t = &GetAllActionPlans_ActionPlans_Edges_Node{} } - return t.Metadata -} - -type AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult struct { - EntitlementPlans []*AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans "json:\"entitlementPlans,omitempty\" graphql:\"entitlementPlans\"" + return t.DueDate } - -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult) GetEntitlementPlans() []*AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans { +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult{} + t = &GetAllActionPlans_ActionPlans_Edges_Node{} } - return t.EntitlementPlans + return t.ID } - -type AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures struct { - ID string "json:\"id\" graphql:\"id\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - PlanID string "json:\"planID\" graphql:\"planID\"" - FeatureID string "json:\"featureID\" graphql:\"featureID\"" +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetName() string { + if t == nil { + t = &GetAllActionPlans_ActionPlans_Edges_Node{} + } + return t.Name } - -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetID() string { +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetPriority() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} + t = &GetAllActionPlans_ActionPlans_Edges_Node{} } - return t.ID + return t.Priority } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetDeletedBy() *string { +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetSource() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} + t = &GetAllActionPlans_ActionPlans_Edges_Node{} } - return t.DeletedBy + return t.Source } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetTags() []string { +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} + t = &GetAllActionPlans_ActionPlans_Edges_Node{} } - return t.Tags + return t.Status } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetOwnerID() *string { +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} + t = &GetAllActionPlans_ActionPlans_Edges_Node{} } - return t.OwnerID + return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetMetadata() map[string]interface{} { +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} + t = &GetAllActionPlans_ActionPlans_Edges_Node{} } - return t.Metadata + return t.UpdatedAt } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetPlanID() string { +func (t *GetAllActionPlans_ActionPlans_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} + t = &GetAllActionPlans_ActionPlans_Edges_Node{} } - return t.PlanID + return t.UpdatedBy } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetFeatureID() string { + +type GetAllActionPlans_ActionPlans_Edges struct { + Node *GetAllActionPlans_ActionPlans_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllActionPlans_ActionPlans_Edges) GetNode() *GetAllActionPlans_ActionPlans_Edges_Node { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} + t = &GetAllActionPlans_ActionPlans_Edges{} } - return t.FeatureID + return t.Node } -type AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult struct { - EntitlementPlanFeatures []*AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures "json:\"entitlementPlanFeatures,omitempty\" graphql:\"entitlementPlanFeatures\"" +type GetAllActionPlans_ActionPlans struct { + Edges []*GetAllActionPlans_ActionPlans_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult) GetEntitlementPlanFeatures() []*AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures { +func (t *GetAllActionPlans_ActionPlans) GetEdges() []*GetAllActionPlans_ActionPlans_Edges { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult{} + t = &GetAllActionPlans_ActionPlans{} } - return t.EntitlementPlanFeatures + return t.Edges } -type AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities struct { - ID string "json:\"id\" graphql:\"id\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Name *string "json:\"name,omitempty\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - EntityTypeID *string "json:\"entityTypeID,omitempty\" graphql:\"entityTypeID\"" - Status *string "json:\"status,omitempty\" graphql:\"status\"" +type GetActionPlanByID_ActionPlan struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + DueDate *time.Time "json:\"dueDate,omitempty\" graphql:\"dueDate\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Priority *string "json:\"priority,omitempty\" graphql:\"priority\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetID() string { +func (t *GetActionPlanByID_ActionPlan) GetCreatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} + t = &GetActionPlanByID_ActionPlan{} } - return t.ID + return t.CreatedAt } -func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetDeletedBy() *string { +func (t *GetActionPlanByID_ActionPlan) GetCreatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} + t = &GetActionPlanByID_ActionPlan{} } - return t.DeletedBy + return t.CreatedBy } -func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetTags() []string { +func (t *GetActionPlanByID_ActionPlan) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} + t = &GetActionPlanByID_ActionPlan{} } - return t.Tags + return t.Description } -func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetOwnerID() *string { +func (t *GetActionPlanByID_ActionPlan) GetDetails() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} + t = &GetActionPlanByID_ActionPlan{} } - return t.OwnerID + return t.Details } -func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetName() *string { +func (t *GetActionPlanByID_ActionPlan) GetDueDate() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} + t = &GetActionPlanByID_ActionPlan{} } - return t.Name + return t.DueDate } -func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetDisplayName() *string { +func (t *GetActionPlanByID_ActionPlan) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} + t = &GetActionPlanByID_ActionPlan{} } - return t.DisplayName + return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetDescription() *string { +func (t *GetActionPlanByID_ActionPlan) GetName() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} + t = &GetActionPlanByID_ActionPlan{} } - return t.Description + return t.Name } -func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetDomains() []string { +func (t *GetActionPlanByID_ActionPlan) GetPriority() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} + t = &GetActionPlanByID_ActionPlan{} } - return t.Domains + return t.Priority } -func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetEntityTypeID() *string { +func (t *GetActionPlanByID_ActionPlan) GetSource() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} + t = &GetActionPlanByID_ActionPlan{} } - return t.EntityTypeID + return t.Source } -func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetStatus() *string { +func (t *GetActionPlanByID_ActionPlan) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} + t = &GetActionPlanByID_ActionPlan{} } return t.Status } - -type AdminSearch_AdminSearch_Nodes_EntitySearchResult struct { - Entities []*AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities "json:\"entities,omitempty\" graphql:\"entities\"" +func (t *GetActionPlanByID_ActionPlan) GetTags() []string { + if t == nil { + t = &GetActionPlanByID_ActionPlan{} + } + return t.Tags } - -func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult) GetEntities() []*AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities { +func (t *GetActionPlanByID_ActionPlan) GetUpdatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult{} + t = &GetActionPlanByID_ActionPlan{} } - return t.Entities + return t.UpdatedAt +} +func (t *GetActionPlanByID_ActionPlan) GetUpdatedBy() *string { + if t == nil { + t = &GetActionPlanByID_ActionPlan{} + } + return t.UpdatedBy } -type AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes struct { - ID string "json:\"id\" graphql:\"id\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Name string "json:\"name\" graphql:\"name\"" +type GetActionPlans_ActionPlans_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + DueDate *time.Time "json:\"dueDate,omitempty\" graphql:\"dueDate\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Priority *string "json:\"priority,omitempty\" graphql:\"priority\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes) GetID() string { +func (t *GetActionPlans_ActionPlans_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes{} + t = &GetActionPlans_ActionPlans_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes) GetDeletedBy() *string { +func (t *GetActionPlans_ActionPlans_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes{} + t = &GetActionPlans_ActionPlans_Edges_Node{} } - return t.DeletedBy + return t.CreatedBy } -func (t *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes) GetTags() []string { +func (t *GetActionPlans_ActionPlans_Edges_Node) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes{} + t = &GetActionPlans_ActionPlans_Edges_Node{} } - return t.Tags + return t.Description } -func (t *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes) GetOwnerID() *string { +func (t *GetActionPlans_ActionPlans_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes{} + t = &GetActionPlans_ActionPlans_Edges_Node{} } - return t.OwnerID + return t.Details } -func (t *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes) GetName() string { +func (t *GetActionPlans_ActionPlans_Edges_Node) GetDueDate() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes{} + t = &GetActionPlans_ActionPlans_Edges_Node{} } - return t.Name + return t.DueDate } - -type AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult struct { - EntityTypes []*AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes "json:\"entityTypes,omitempty\" graphql:\"entityTypes\"" +func (t *GetActionPlans_ActionPlans_Edges_Node) GetID() string { + if t == nil { + t = &GetActionPlans_ActionPlans_Edges_Node{} + } + return t.ID } - -func (t *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult) GetEntityTypes() []*AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes { +func (t *GetActionPlans_ActionPlans_Edges_Node) GetName() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult{} + t = &GetActionPlans_ActionPlans_Edges_Node{} } - return t.EntityTypes + return t.Name } - -type AdminSearch_AdminSearch_Nodes_EventSearchResult_Events struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" - CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" - EventType string "json:\"eventType\" graphql:\"eventType\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" +func (t *GetActionPlans_ActionPlans_Edges_Node) GetPriority() *string { + if t == nil { + t = &GetActionPlans_ActionPlans_Edges_Node{} + } + return t.Priority } - -func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult_Events) GetID() string { +func (t *GetActionPlans_ActionPlans_Edges_Node) GetSource() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EventSearchResult_Events{} + t = &GetActionPlans_ActionPlans_Edges_Node{} } - return t.ID + return t.Source } -func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult_Events) GetTags() []string { +func (t *GetActionPlans_ActionPlans_Edges_Node) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EventSearchResult_Events{} + t = &GetActionPlans_ActionPlans_Edges_Node{} } - return t.Tags + return t.Status } -func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult_Events) GetEventID() *string { +func (t *GetActionPlans_ActionPlans_Edges_Node) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EventSearchResult_Events{} + t = &GetActionPlans_ActionPlans_Edges_Node{} } - return t.EventID + return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult_Events) GetCorrelationID() *string { +func (t *GetActionPlans_ActionPlans_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EventSearchResult_Events{} + t = &GetActionPlans_ActionPlans_Edges_Node{} } - return t.CorrelationID + return t.UpdatedAt } -func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult_Events) GetEventType() string { +func (t *GetActionPlans_ActionPlans_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EventSearchResult_Events{} + t = &GetActionPlans_ActionPlans_Edges_Node{} } - return t.EventType + return t.UpdatedBy } -func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult_Events) GetMetadata() map[string]interface{} { + +type GetActionPlans_ActionPlans_Edges struct { + Node *GetActionPlans_ActionPlans_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetActionPlans_ActionPlans_Edges) GetNode() *GetActionPlans_ActionPlans_Edges_Node { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EventSearchResult_Events{} + t = &GetActionPlans_ActionPlans_Edges{} } - return t.Metadata + return t.Node } -type AdminSearch_AdminSearch_Nodes_EventSearchResult struct { - Events []*AdminSearch_AdminSearch_Nodes_EventSearchResult_Events "json:\"events,omitempty\" graphql:\"events\"" +type GetActionPlans_ActionPlans struct { + Edges []*GetActionPlans_ActionPlans_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult) GetEvents() []*AdminSearch_AdminSearch_Nodes_EventSearchResult_Events { +func (t *GetActionPlans_ActionPlans) GetEdges() []*GetActionPlans_ActionPlans_Edges { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_EventSearchResult{} + t = &GetActionPlans_ActionPlans{} } - return t.Events + return t.Edges } -type AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features struct { - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" +type UpdateActionPlan_UpdateActionPlan_ActionPlan struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + DueDate *time.Time "json:\"dueDate,omitempty\" graphql:\"dueDate\"" ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Priority *string "json:\"priority,omitempty\" graphql:\"priority\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetDeletedBy() *string { +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetCreatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} } - return t.DeletedBy + return t.CreatedAt } -func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetID() string { +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetCreatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} } - return t.ID + return t.CreatedBy } -func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetTags() []string { +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} } - return t.Tags + return t.Description } -func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetOwnerID() *string { +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetDetails() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} } - return t.OwnerID + return t.Details } -func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetName() string { +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetDueDate() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} + } + return t.DueDate +} +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetID() string { + if t == nil { + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} + } + return t.ID +} +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetName() string { + if t == nil { + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} } return t.Name } -func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetDisplayName() *string { +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetPriority() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} } - return t.DisplayName + return t.Priority } -func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetDescription() *string { +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetSource() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} } - return t.Description + return t.Source } -func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetMetadata() map[string]interface{} { +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} } - return t.Metadata + return t.Status +} +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetTags() []string { + if t == nil { + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} + } + return t.Tags +} +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} + } + return t.UpdatedAt +} +func (t *UpdateActionPlan_UpdateActionPlan_ActionPlan) GetUpdatedBy() *string { + if t == nil { + t = &UpdateActionPlan_UpdateActionPlan_ActionPlan{} + } + return t.UpdatedBy } -type AdminSearch_AdminSearch_Nodes_FeatureSearchResult struct { - Features []*AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features "json:\"features,omitempty\" graphql:\"features\"" +type UpdateActionPlan_UpdateActionPlan struct { + ActionPlan UpdateActionPlan_UpdateActionPlan_ActionPlan "json:\"actionPlan\" graphql:\"actionPlan\"" } -func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult) GetFeatures() []*AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features { +func (t *UpdateActionPlan_UpdateActionPlan) GetActionPlan() *UpdateActionPlan_UpdateActionPlan_ActionPlan { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult{} + t = &UpdateActionPlan_UpdateActionPlan{} } - return t.Features + return &t.ActionPlan } -type AdminSearch_AdminSearch_Nodes_FileSearchResult_Files struct { - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - ProvidedFileName string "json:\"providedFileName\" graphql:\"providedFileName\"" - ProvidedFileExtension string "json:\"providedFileExtension\" graphql:\"providedFileExtension\"" - DetectedMimeType *string "json:\"detectedMimeType,omitempty\" graphql:\"detectedMimeType\"" - Md5Hash *string "json:\"md5Hash,omitempty\" graphql:\"md5Hash\"" - DetectedContentType string "json:\"detectedContentType\" graphql:\"detectedContentType\"" - StoreKey *string "json:\"storeKey,omitempty\" graphql:\"storeKey\"" - CategoryType *string "json:\"categoryType,omitempty\" graphql:\"categoryType\"" - URI *string "json:\"uri,omitempty\" graphql:\"uri\"" - StorageScheme *string "json:\"storageScheme,omitempty\" graphql:\"storageScheme\"" - StorageVolume *string "json:\"storageVolume,omitempty\" graphql:\"storageVolume\"" - StoragePath *string "json:\"storagePath,omitempty\" graphql:\"storagePath\"" +type GetAllActionPlanHistories_ActionPlanHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + DueDate *time.Time "json:\"dueDate,omitempty\" graphql:\"dueDate\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Priority *string "json:\"priority,omitempty\" graphql:\"priority\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetDeletedBy() *string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.DeletedBy + return t.CreatedAt } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetID() string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.ID + return t.CreatedBy } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetTags() []string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.Tags + return t.Description } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetProvidedFileName() string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.ProvidedFileName + return t.Details } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetProvidedFileExtension() string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetDueDate() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.ProvidedFileExtension + return t.DueDate } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetDetectedMimeType() *string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.DetectedMimeType + return &t.HistoryTime } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetMd5Hash() *string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.Md5Hash + return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetDetectedContentType() string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetName() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.DetectedContentType + return t.Name } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetStoreKey() *string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.StoreKey + return &t.Operation } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetCategoryType() *string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetPriority() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.CategoryType + return t.Priority } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetURI() *string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetRef() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.URI + return t.Ref } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetStorageScheme() *string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetSource() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.StorageScheme + return t.Source } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetStorageVolume() *string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.StorageVolume + return t.Status } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetStoragePath() *string { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.StoragePath + return t.Tags +} +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges_Node{} + } + return t.UpdatedBy } -type AdminSearch_AdminSearch_Nodes_FileSearchResult struct { - Files []*AdminSearch_AdminSearch_Nodes_FileSearchResult_Files "json:\"files,omitempty\" graphql:\"files\"" +type GetAllActionPlanHistories_ActionPlanHistories_Edges struct { + Node *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult) GetFiles() []*AdminSearch_AdminSearch_Nodes_FileSearchResult_Files { +func (t *GetAllActionPlanHistories_ActionPlanHistories_Edges) GetNode() *GetAllActionPlanHistories_ActionPlanHistories_Edges_Node { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_FileSearchResult{} + t = &GetAllActionPlanHistories_ActionPlanHistories_Edges{} } - return t.Files + return t.Node } -type AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups struct { - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" +type GetAllActionPlanHistories_ActionPlanHistories struct { + Edges []*GetAllActionPlanHistories_ActionPlanHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups) GetDeletedBy() *string { +func (t *GetAllActionPlanHistories_ActionPlanHistories) GetEdges() []*GetAllActionPlanHistories_ActionPlanHistories_Edges { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups{} + t = &GetAllActionPlanHistories_ActionPlanHistories{} } - return t.DeletedBy + return t.Edges } -func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups) GetID() string { + +type GetActionPlanHistories_ActionPlanHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + DueDate *time.Time "json:\"dueDate,omitempty\" graphql:\"dueDate\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Priority *string "json:\"priority,omitempty\" graphql:\"priority\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups{} + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups) GetTags() []string { +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups{} + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.Tags + return t.CreatedBy } -func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups) GetOwnerID() *string { +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups{} + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.OwnerID + return t.Description } -func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups) GetName() string { +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups{} + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} + } + return t.Details +} +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetDueDate() *time.Time { + if t == nil { + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} + } + return t.DueDate +} +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} + } + return t.ID +} +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetName() string { + if t == nil { + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} } return t.Name } -func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups) GetDisplayName() string { +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups{} + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.DisplayName + return &t.Operation } - -type AdminSearch_AdminSearch_Nodes_GroupSearchResult struct { - Groups []*AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups "json:\"groups,omitempty\" graphql:\"groups\"" +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetPriority() *string { + if t == nil { + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} + } + return t.Priority } - -func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult) GetGroups() []*AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups { +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetRef() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult{} + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.Groups + return t.Ref } - -type AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetSource() *string { + if t == nil { + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} + } + return t.Source } - -func (t *AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings) GetID() string { +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings{} + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.ID + return t.Status } -func (t *AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings) GetTags() []string { +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings{} + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} } return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings) GetDeletedBy() *string { +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings{} + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.DeletedBy + return t.UpdatedAt } -func (t *AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings) GetGroupID() *string { +func (t *GetActionPlanHistories_ActionPlanHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings{} + t = &GetActionPlanHistories_ActionPlanHistories_Edges_Node{} } - return t.GroupID + return t.UpdatedBy } -type AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult struct { - GroupSettings []*AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings "json:\"groupSettings,omitempty\" graphql:\"groupSettings\"" +type GetActionPlanHistories_ActionPlanHistories_Edges struct { + Node *GetActionPlanHistories_ActionPlanHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult) GetGroupSettings() []*AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings { +func (t *GetActionPlanHistories_ActionPlanHistories_Edges) GetNode() *GetActionPlanHistories_ActionPlanHistories_Edges_Node { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult{} + t = &GetActionPlanHistories_ActionPlanHistories_Edges{} } - return t.GroupSettings + return t.Node } -type AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations struct { +type GetActionPlanHistories_ActionPlanHistories struct { + Edges []*GetActionPlanHistories_ActionPlanHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetActionPlanHistories_ActionPlanHistories) GetEdges() []*GetActionPlanHistories_ActionPlanHistories_Edges { + if t == nil { + t = &GetActionPlanHistories_ActionPlanHistories{} + } + return t.Edges +} + +type AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" ID string "json:\"id\" graphql:\"id\"" Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" Name string "json:\"name\" graphql:\"name\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" } -func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations{} + t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens{} } - return t.ID + return t.DeletedBy } -func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations{} + t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens{} } - return t.Tags + return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations) GetDeletedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations{} + t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens{} } - return t.DeletedBy + return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens) GetOwnerID() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations{} + t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens{} } return t.OwnerID } -func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations) GetName() string { +func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens) GetName() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations{} + t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens{} } return t.Name } -func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations) GetKind() *string { +func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens) GetScopes() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations{} + t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens{} } - return t.Kind + return t.Scopes } -type AdminSearch_AdminSearch_Nodes_IntegrationSearchResult struct { - Integrations []*AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" +type AdminSearch_AdminSearch_Nodes_APITokenSearchResult struct { + APITokens []*AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens "json:\"apiTokens,omitempty\" graphql:\"apiTokens\"" } -func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult) GetIntegrations() []*AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations { +func (t *AdminSearch_AdminSearch_Nodes_APITokenSearchResult) GetAPITokens() []*AdminSearch_AdminSearch_Nodes_APITokenSearchResult_APITokens { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult{} + t = &AdminSearch_AdminSearch_Nodes_APITokenSearchResult{} } - return t.Integrations + return t.APITokens } -type AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Name string "json:\"name\" graphql:\"name\"" - ClientID string "json:\"clientID\" graphql:\"clientID\"" - ClientSecret string "json:\"clientSecret\" graphql:\"clientSecret\"" - RedirectURL string "json:\"redirectURL\" graphql:\"redirectURL\"" - Scopes string "json:\"scopes\" graphql:\"scopes\"" - AuthURL string "json:\"authURL\" graphql:\"authURL\"" - TokenURL string "json:\"tokenURL\" graphql:\"tokenURL\"" - InfoURL string "json:\"infoURL\" graphql:\"infoURL\"" +type AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Name string "json:\"name\" graphql:\"name\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Priority *string "json:\"priority,omitempty\" graphql:\"priority\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans{} + } + return t.DeletedBy +} +func (t *AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans) GetID() string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans{} } return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans{} } return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetDeletedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans) GetName() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans{} } - return t.DeletedBy + return t.Name } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans{} } - return t.OwnerID + return t.Description } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetName() string { +func (t *AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans{} } - return t.Name + return t.Status } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetClientID() string { +func (t *AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans) GetPriority() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans{} } - return t.ClientID + return t.Priority } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetClientSecret() string { +func (t *AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans) GetSource() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans{} } - return t.ClientSecret + return t.Source } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetRedirectURL() string { +func (t *AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans) GetDetails() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans{} } - return t.RedirectURL + return t.Details } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetScopes() string { + +type AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult struct { + ActionPlans []*AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans "json:\"actionPlans,omitempty\" graphql:\"actionPlans\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult) GetActionPlans() []*AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult_ActionPlans { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult{} } - return t.Scopes + return t.ActionPlans } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetAuthURL() string { + +type AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts struct { + ID string "json:\"id\" graphql:\"id\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + FullName string "json:\"fullName\" graphql:\"fullName\"" + Title *string "json:\"title,omitempty\" graphql:\"title\"" + Company *string "json:\"company,omitempty\" graphql:\"company\"" + Email *string "json:\"email,omitempty\" graphql:\"email\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" + Address *string "json:\"address,omitempty\" graphql:\"address\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} } - return t.AuthURL + return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetTokenURL() string { +func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} } - return t.TokenURL + return t.DeletedBy } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetInfoURL() string { +func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} } - return t.InfoURL + return t.Tags +} +func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetOwnerID() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + } + return t.OwnerID +} +func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetFullName() string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + } + return t.FullName +} +func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetTitle() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + } + return t.Title +} +func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetCompany() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + } + return t.Company +} +func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetEmail() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + } + return t.Email +} +func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetPhoneNumber() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + } + return t.PhoneNumber +} +func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts) GetAddress() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts{} + } + return t.Address } -type AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult struct { - OauthProviders []*AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders "json:\"oauthProviders,omitempty\" graphql:\"oauthProviders\"" +type AdminSearch_AdminSearch_Nodes_ContactSearchResult struct { + Contacts []*AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts "json:\"contacts,omitempty\" graphql:\"contacts\"" } -func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult) GetOauthProviders() []*AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders { +func (t *AdminSearch_AdminSearch_Nodes_ContactSearchResult) GetContacts() []*AdminSearch_AdminSearch_Nodes_ContactSearchResult_Contacts { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult{} + t = &AdminSearch_AdminSearch_Nodes_ContactSearchResult{} } - return t.OauthProviders + return t.Contacts } -type AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - ClientID string "json:\"clientID\" graphql:\"clientID\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Nonce string "json:\"nonce\" graphql:\"nonce\"" - ClaimsUserID string "json:\"claimsUserID\" graphql:\"claimsUserID\"" - ClaimsUsername string "json:\"claimsUsername\" graphql:\"claimsUsername\"" - ClaimsEmail string "json:\"claimsEmail\" graphql:\"claimsEmail\"" - ClaimsGroups []string "json:\"claimsGroups,omitempty\" graphql:\"claimsGroups\"" - ClaimsPreferredUsername string "json:\"claimsPreferredUsername\" graphql:\"claimsPreferredUsername\"" - ConnectorID string "json:\"connectorID\" graphql:\"connectorID\"" - ConnectorData []string "json:\"connectorData,omitempty\" graphql:\"connectorData\"" +type AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Name string "json:\"name\" graphql:\"name\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + ControlType *string "json:\"controlType,omitempty\" graphql:\"controlType\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + Class *string "json:\"class,omitempty\" graphql:\"class\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} + } + return t.DeletedBy +} +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetID() string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} } return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} } return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetClientID() string { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetName() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} } - return t.ClientID + return t.Name } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetScopes() []string { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} } - return t.Scopes + return t.Description } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetNonce() string { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} } - return t.Nonce + return t.Status } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetClaimsUserID() string { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetControlType() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} } - return t.ClaimsUserID + return t.ControlType } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetClaimsUsername() string { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetVersion() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} } - return t.ClaimsUsername + return t.Version } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetClaimsEmail() string { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetControlNumber() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} } - return t.ClaimsEmail + return t.ControlNumber } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetClaimsGroups() []string { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetFamily() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} } - return t.ClaimsGroups + return t.Family } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetClaimsPreferredUsername() string { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetClass() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} } - return t.ClaimsPreferredUsername + return t.Class } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetConnectorID() string { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetSource() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} } - return t.ConnectorID + return t.Source } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetConnectorData() []string { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetSatisfies() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} } - return t.ConnectorData + return t.Satisfies +} +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetMappedFrameworks() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} + } + return t.MappedFrameworks +} +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls) GetDetails() map[string]interface{} { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls{} + } + return t.Details } -type AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult struct { - OhAuthTooTokens []*AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens "json:\"ohAuthTooTokens,omitempty\" graphql:\"ohAuthTooTokens\"" +type AdminSearch_AdminSearch_Nodes_ControlSearchResult struct { + Controls []*AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls "json:\"controls,omitempty\" graphql:\"controls\"" } -func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult) GetOhAuthTooTokens() []*AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens { +func (t *AdminSearch_AdminSearch_Nodes_ControlSearchResult) GetControls() []*AdminSearch_AdminSearch_Nodes_ControlSearchResult_Controls { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult{} + t = &AdminSearch_AdminSearch_Nodes_ControlSearchResult{} } - return t.OhAuthTooTokens + return t.Controls } -type AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" +type AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Name string "json:\"name\" graphql:\"name\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + ControlObjectiveType *string "json:\"controlObjectiveType,omitempty\" graphql:\"controlObjectiveType\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + Class *string "json:\"class,omitempty\" graphql:\"class\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.ID + return t.DeletedBy } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.Tags + return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations) GetDeletedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.DeletedBy + return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations) GetName() string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetName() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } return t.Name } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations) GetDisplayName() string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.DisplayName -} -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations) GetAvatarRemoteURL() *string { - if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations{} - } - return t.AvatarRemoteURL -} - -type AdminSearch_AdminSearch_Nodes_OrganizationSearchResult struct { - Organizations []*AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" + return t.Description } - -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult) GetOrganizations() []*AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.Organizations -} - -type AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" - BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" - BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" - BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" - TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" - OrganizationID *string "json:\"organizationID,omitempty\" graphql:\"organizationID\"" + return t.Status } - -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetControlObjectiveType() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.ID + return t.ControlObjectiveType } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetVersion() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.Tags + return t.Version } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetDeletedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetControlNumber() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.DeletedBy + return t.ControlNumber } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetDomains() []string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetFamily() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.Domains + return t.Family } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetBillingContact() *string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetClass() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.BillingContact + return t.Class } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetBillingEmail() *string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetSource() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.BillingEmail + return t.Source } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetBillingPhone() *string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetMappedFrameworks() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.BillingPhone + return t.MappedFrameworks } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetBillingAddress() *string { +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetDetails() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return t.BillingAddress + return t.Details } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetTaxIdentifier() *string { - if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} - } - return t.TaxIdentifier + +type AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult struct { + ControlObjectives []*AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives "json:\"controlObjectives,omitempty\" graphql:\"controlObjectives\"" } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetOrganizationID() *string { + +func (t *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult) GetControlObjectives() []*AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult_ControlObjectives { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + t = &AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult{} } - return t.OrganizationID + return t.ControlObjectives } -type AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult struct { - OrganizationSettings []*AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings "json:\"organizationSettings,omitempty\" graphql:\"organizationSettings\"" +type AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + TemplateID string "json:\"templateID\" graphql:\"templateID\"" + Data json.RawMessage "json:\"data\" graphql:\"data\"" } -func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult) GetOrganizationSettings() []*AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings { +func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult{} + t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData{} } - return t.OrganizationSettings -} - -type AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens struct { - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Name string "json:\"name\" graphql:\"name\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + return t.ID } - -func (t *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetDeletedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} + t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData{} } - return t.DeletedBy + return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} + t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData{} } - return t.ID + return t.DeletedBy } -func (t *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData) GetOwnerID() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} + t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData{} } - return t.Tags + return t.OwnerID } -func (t *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetName() string { +func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData) GetTemplateID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} + t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData{} } - return t.Name + return t.TemplateID } -func (t *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetScopes() []string { +func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData) GetData() *json.RawMessage { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} + t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData{} } - return t.Scopes + return &t.Data } -type AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult struct { - PersonalAccessTokens []*AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens "json:\"personalAccessTokens,omitempty\" graphql:\"personalAccessTokens\"" +type AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult struct { + DocumentData []*AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData "json:\"documentData,omitempty\" graphql:\"documentData\"" } -func (t *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult) GetPersonalAccessTokens() []*AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens { +func (t *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult) GetDocumentData() []*AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult_DocumentData { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult{} + t = &AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult{} } - return t.PersonalAccessTokens + return t.DocumentData } -type AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Email string "json:\"email\" graphql:\"email\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" +type AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PlanID string "json:\"planID\" graphql:\"planID\"" + OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" + ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" + ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" } -func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} } return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} } return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers) GetDeletedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} } return t.DeletedBy } -func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetOwnerID() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} } return t.OwnerID } -func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers) GetEmail() string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetPlanID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} } - return t.Email + return t.PlanID } -func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers) GetPhoneNumber() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetOrganizationID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} } - return t.PhoneNumber + return t.OrganizationID +} +func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetExternalCustomerID() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} + } + return t.ExternalCustomerID +} +func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements) GetExternalSubscriptionID() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements{} + } + return t.ExternalSubscriptionID } -type AdminSearch_AdminSearch_Nodes_SubscriberSearchResult struct { - Subscribers []*AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers "json:\"subscribers,omitempty\" graphql:\"subscribers\"" +type AdminSearch_AdminSearch_Nodes_EntitlementSearchResult struct { + Entitlements []*AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements "json:\"entitlements,omitempty\" graphql:\"entitlements\"" } -func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult) GetSubscribers() []*AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult) GetEntitlements() []*AdminSearch_AdminSearch_Nodes_EntitlementSearchResult_Entitlements { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementSearchResult{} } - return t.Subscribers + return t.Entitlements } -type AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings struct { - ID string "json:\"id\" graphql:\"id\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TfaSecret *string "json:\"tfaSecret,omitempty\" graphql:\"tfaSecret\"" - RecoveryCodes []string "json:\"recoveryCodes,omitempty\" graphql:\"recoveryCodes\"" +type AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans struct { + ID string "json:\"id\" graphql:\"id\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Name string "json:\"name\" graphql:\"name\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Version string "json:\"version\" graphql:\"version\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" } -func (t *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} } return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings) GetDeletedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} } return t.DeletedBy } -func (t *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} } return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings) GetTfaSecret() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetOwnerID() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} } - return t.TfaSecret + return t.OwnerID } -func (t *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings) GetRecoveryCodes() []string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetDisplayName() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} } - return t.RecoveryCodes + return t.DisplayName } - -type AdminSearch_AdminSearch_Nodes_TFASettingSearchResult struct { - TFASettings []*AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings "json:\"tFASettings,omitempty\" graphql:\"tFASettings\"" +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetName() string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + } + return t.Name } - -func (t *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult) GetTFASettings() []*AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TFASettingSearchResult{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} } - return t.TFASettings + return t.Description +} +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetVersion() string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + } + return t.Version +} +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetMetadata() map[string]interface{} { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + } + return t.Metadata } -type AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates struct { - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Name string "json:\"name\" graphql:\"name\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" - Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" +type AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult struct { + EntitlementPlans []*AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans "json:\"entitlementPlans,omitempty\" graphql:\"entitlementPlans\"" } -func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetDeletedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult) GetEntitlementPlans() []*AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult_EntitlementPlans { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult{} } - return t.DeletedBy + return t.EntitlementPlans } -func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetID() string { + +type AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures struct { + ID string "json:\"id\" graphql:\"id\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + PlanID string "json:\"planID\" graphql:\"planID\"" + FeatureID string "json:\"featureID\" graphql:\"featureID\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} } return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} } - return t.Tags + return t.DeletedBy } -func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} } - return t.OwnerID + return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetName() string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetOwnerID() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} } - return t.Name + return t.OwnerID } -func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetDescription() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetMetadata() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} } - return t.Description + return t.Metadata } -func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetJsonconfig() *json.RawMessage { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetPlanID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} } - return &t.Jsonconfig + return t.PlanID } -func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetUischema() *json.RawMessage { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetFeatureID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} } - return &t.Uischema + return t.FeatureID } -type AdminSearch_AdminSearch_Nodes_TemplateSearchResult struct { - Templates []*AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates "json:\"templates,omitempty\" graphql:\"templates\"" +type AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult struct { + EntitlementPlanFeatures []*AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures "json:\"entitlementPlanFeatures,omitempty\" graphql:\"entitlementPlanFeatures\"" } -func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult) GetTemplates() []*AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates { +func (t *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult) GetEntitlementPlanFeatures() []*AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult{} + t = &AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult{} } - return t.Templates + return t.EntitlementPlanFeatures } -type AdminSearch_AdminSearch_Nodes_UserSearchResult_Users struct { - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" - AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" - AvatarLocalFileID *string "json:\"avatarLocalFileID,omitempty\" graphql:\"avatarLocalFileID\"" - Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" +type AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities struct { + ID string "json:\"id\" graphql:\"id\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Name *string "json:\"name,omitempty\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + EntityTypeID *string "json:\"entityTypeID,omitempty\" graphql:\"entityTypeID\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" } -func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetDeletedBy() *string { - if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} - } - return t.DeletedBy -} -func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} + t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} } return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} + t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} } - return t.Tags + return t.DeletedBy } -func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetEmail() string { +func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} + t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} } - return t.Email + return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetFirstName() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetOwnerID() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} + t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} } - return t.FirstName + return t.OwnerID } -func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetLastName() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetName() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} + t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} } - return t.LastName + return t.Name } -func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetDisplayName() string { +func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetDisplayName() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} + t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} } return t.DisplayName } -func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetAvatarRemoteURL() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} + t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} } - return t.AvatarRemoteURL + return t.Description } -func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetAvatarLocalFile() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetDomains() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} + t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} } - return t.AvatarLocalFile + return t.Domains } -func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetAvatarLocalFileID() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetEntityTypeID() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} + t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} } - return t.AvatarLocalFileID + return t.EntityTypeID } -func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetSub() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities) GetStatus() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} + t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities{} } - return t.Sub + return t.Status } -type AdminSearch_AdminSearch_Nodes_UserSearchResult struct { - Users []*AdminSearch_AdminSearch_Nodes_UserSearchResult_Users "json:\"users,omitempty\" graphql:\"users\"" +type AdminSearch_AdminSearch_Nodes_EntitySearchResult struct { + Entities []*AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities "json:\"entities,omitempty\" graphql:\"entities\"" } -func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult) GetUsers() []*AdminSearch_AdminSearch_Nodes_UserSearchResult_Users { +func (t *AdminSearch_AdminSearch_Nodes_EntitySearchResult) GetEntities() []*AdminSearch_AdminSearch_Nodes_EntitySearchResult_Entities { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSearchResult{} + t = &AdminSearch_AdminSearch_Nodes_EntitySearchResult{} } - return t.Users + return t.Entities } -type AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings struct { +type AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes struct { ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings{} + t = &AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes{} } return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings{} + t = &AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes{} + } + return t.DeletedBy +} +func (t *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes) GetTags() []string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes{} } return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings) GetDeletedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes) GetOwnerID() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings{} + t = &AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes{} } - return t.DeletedBy + return t.OwnerID } -func (t *AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings) GetUserID() *string { +func (t *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes) GetName() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings{} + t = &AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes{} } - return t.UserID + return t.Name } -type AdminSearch_AdminSearch_Nodes_UserSettingSearchResult struct { - UserSettings []*AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings "json:\"userSettings,omitempty\" graphql:\"userSettings\"" +type AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult struct { + EntityTypes []*AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes "json:\"entityTypes,omitempty\" graphql:\"entityTypes\"" } -func (t *AdminSearch_AdminSearch_Nodes_UserSettingSearchResult) GetUserSettings() []*AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings { +func (t *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult) GetEntityTypes() []*AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult_EntityTypes { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_UserSettingSearchResult{} + t = &AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult{} } - return t.UserSettings + return t.EntityTypes } -type AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Name string "json:\"name\" graphql:\"name\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" - LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" +type AdminSearch_AdminSearch_Nodes_EventSearchResult_Events struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" + CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" + EventType string "json:\"eventType\" graphql:\"eventType\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" } -func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult_Events) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} + t = &AdminSearch_AdminSearch_Nodes_EventSearchResult_Events{} } return t.ID } -func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult_Events) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} + t = &AdminSearch_AdminSearch_Nodes_EventSearchResult_Events{} } return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetDeletedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult_Events) GetEventID() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} + t = &AdminSearch_AdminSearch_Nodes_EventSearchResult_Events{} } - return t.DeletedBy + return t.EventID } -func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult_Events) GetCorrelationID() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} + t = &AdminSearch_AdminSearch_Nodes_EventSearchResult_Events{} } - return t.OwnerID + return t.CorrelationID } -func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetName() string { +func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult_Events) GetEventType() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} + t = &AdminSearch_AdminSearch_Nodes_EventSearchResult_Events{} } - return t.Name + return t.EventType } -func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetDestinationURL() string { +func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult_Events) GetMetadata() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} + t = &AdminSearch_AdminSearch_Nodes_EventSearchResult_Events{} } - return t.DestinationURL + return t.Metadata } -func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetLastError() *string { - if t == nil { - t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} - } - return t.LastError + +type AdminSearch_AdminSearch_Nodes_EventSearchResult struct { + Events []*AdminSearch_AdminSearch_Nodes_EventSearchResult_Events "json:\"events,omitempty\" graphql:\"events\"" } -func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetLastResponse() *string { + +func (t *AdminSearch_AdminSearch_Nodes_EventSearchResult) GetEvents() []*AdminSearch_AdminSearch_Nodes_EventSearchResult_Events { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} + t = &AdminSearch_AdminSearch_Nodes_EventSearchResult{} } - return t.LastResponse + return t.Events } -type AdminSearch_AdminSearch_Nodes_WebhookSearchResult struct { - Webhooks []*AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" +type AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" } -func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult) GetWebhooks() []*AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks { +func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult{} + t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} } - return t.Webhooks + return t.DeletedBy } - -type AdminSearch_AdminSearch_Nodes struct { - APITokenSearchResult AdminSearch_AdminSearch_Nodes_APITokenSearchResult "graphql:\"... on APITokenSearchResult\"" - ContactSearchResult AdminSearch_AdminSearch_Nodes_ContactSearchResult "graphql:\"... on ContactSearchResult\"" - DocumentDataSearchResult AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult "graphql:\"... on DocumentDataSearchResult\"" - EntitlementSearchResult AdminSearch_AdminSearch_Nodes_EntitlementSearchResult "graphql:\"... on EntitlementSearchResult\"" - EntitlementPlanSearchResult AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult "graphql:\"... on EntitlementPlanSearchResult\"" - EntitlementPlanFeatureSearchResult AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult "graphql:\"... on EntitlementPlanFeatureSearchResult\"" - EntitySearchResult AdminSearch_AdminSearch_Nodes_EntitySearchResult "graphql:\"... on EntitySearchResult\"" - EntityTypeSearchResult AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult "graphql:\"... on EntityTypeSearchResult\"" - EventSearchResult AdminSearch_AdminSearch_Nodes_EventSearchResult "graphql:\"... on EventSearchResult\"" - FeatureSearchResult AdminSearch_AdminSearch_Nodes_FeatureSearchResult "graphql:\"... on FeatureSearchResult\"" - FileSearchResult AdminSearch_AdminSearch_Nodes_FileSearchResult "graphql:\"... on FileSearchResult\"" - GroupSearchResult AdminSearch_AdminSearch_Nodes_GroupSearchResult "graphql:\"... on GroupSearchResult\"" - GroupSettingSearchResult AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult "graphql:\"... on GroupSettingSearchResult\"" - IntegrationSearchResult AdminSearch_AdminSearch_Nodes_IntegrationSearchResult "graphql:\"... on IntegrationSearchResult\"" - OauthProviderSearchResult AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult "graphql:\"... on OauthProviderSearchResult\"" - OhAuthTooTokenSearchResult AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult "graphql:\"... on OhAuthTooTokenSearchResult\"" - OrganizationSearchResult AdminSearch_AdminSearch_Nodes_OrganizationSearchResult "graphql:\"... on OrganizationSearchResult\"" - OrganizationSettingSearchResult AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult "graphql:\"... on OrganizationSettingSearchResult\"" - PersonalAccessTokenSearchResult AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult "graphql:\"... on PersonalAccessTokenSearchResult\"" - SubscriberSearchResult AdminSearch_AdminSearch_Nodes_SubscriberSearchResult "graphql:\"... on SubscriberSearchResult\"" - TFASettingSearchResult AdminSearch_AdminSearch_Nodes_TFASettingSearchResult "graphql:\"... on TFASettingSearchResult\"" - TemplateSearchResult AdminSearch_AdminSearch_Nodes_TemplateSearchResult "graphql:\"... on TemplateSearchResult\"" - UserSearchResult AdminSearch_AdminSearch_Nodes_UserSearchResult "graphql:\"... on UserSearchResult\"" - UserSettingSearchResult AdminSearch_AdminSearch_Nodes_UserSettingSearchResult "graphql:\"... on UserSettingSearchResult\"" - WebhookSearchResult AdminSearch_AdminSearch_Nodes_WebhookSearchResult "graphql:\"... on WebhookSearchResult\"" +func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetID() string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} + } + return t.ID } - -func (t *AdminSearch_AdminSearch_Nodes) GetAPITokenSearchResult() *AdminSearch_AdminSearch_Nodes_APITokenSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} } - return &t.APITokenSearchResult + return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes) GetContactSearchResult() *AdminSearch_AdminSearch_Nodes_ContactSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetOwnerID() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} } - return &t.ContactSearchResult + return t.OwnerID } -func (t *AdminSearch_AdminSearch_Nodes) GetDocumentDataSearchResult() *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetName() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} } - return &t.DocumentDataSearchResult + return t.Name } -func (t *AdminSearch_AdminSearch_Nodes) GetEntitlementSearchResult() *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetDisplayName() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} } - return &t.EntitlementSearchResult + return t.DisplayName } -func (t *AdminSearch_AdminSearch_Nodes) GetEntitlementPlanSearchResult() *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetDescription() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} } - return &t.EntitlementPlanSearchResult + return t.Description } -func (t *AdminSearch_AdminSearch_Nodes) GetEntitlementPlanFeatureSearchResult() *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features) GetMetadata() map[string]interface{} { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features{} } - return &t.EntitlementPlanFeatureSearchResult + return t.Metadata } -func (t *AdminSearch_AdminSearch_Nodes) GetEntitySearchResult() *AdminSearch_AdminSearch_Nodes_EntitySearchResult { + +type AdminSearch_AdminSearch_Nodes_FeatureSearchResult struct { + Features []*AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features "json:\"features,omitempty\" graphql:\"features\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_FeatureSearchResult) GetFeatures() []*AdminSearch_AdminSearch_Nodes_FeatureSearchResult_Features { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FeatureSearchResult{} } - return &t.EntitySearchResult + return t.Features } -func (t *AdminSearch_AdminSearch_Nodes) GetEntityTypeSearchResult() *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult { + +type AdminSearch_AdminSearch_Nodes_FileSearchResult_Files struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + ProvidedFileName string "json:\"providedFileName\" graphql:\"providedFileName\"" + ProvidedFileExtension string "json:\"providedFileExtension\" graphql:\"providedFileExtension\"" + DetectedMimeType *string "json:\"detectedMimeType,omitempty\" graphql:\"detectedMimeType\"" + Md5Hash *string "json:\"md5Hash,omitempty\" graphql:\"md5Hash\"" + DetectedContentType string "json:\"detectedContentType\" graphql:\"detectedContentType\"" + StoreKey *string "json:\"storeKey,omitempty\" graphql:\"storeKey\"" + CategoryType *string "json:\"categoryType,omitempty\" graphql:\"categoryType\"" + URI *string "json:\"uri,omitempty\" graphql:\"uri\"" + StorageScheme *string "json:\"storageScheme,omitempty\" graphql:\"storageScheme\"" + StorageVolume *string "json:\"storageVolume,omitempty\" graphql:\"storageVolume\"" + StoragePath *string "json:\"storagePath,omitempty\" graphql:\"storagePath\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.EntityTypeSearchResult + return t.DeletedBy } -func (t *AdminSearch_AdminSearch_Nodes) GetEventSearchResult() *AdminSearch_AdminSearch_Nodes_EventSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.EventSearchResult + return t.ID } -func (t *AdminSearch_AdminSearch_Nodes) GetFeatureSearchResult() *AdminSearch_AdminSearch_Nodes_FeatureSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.FeatureSearchResult + return t.Tags } -func (t *AdminSearch_AdminSearch_Nodes) GetFileSearchResult() *AdminSearch_AdminSearch_Nodes_FileSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetProvidedFileName() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.FileSearchResult + return t.ProvidedFileName } -func (t *AdminSearch_AdminSearch_Nodes) GetGroupSearchResult() *AdminSearch_AdminSearch_Nodes_GroupSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetProvidedFileExtension() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.GroupSearchResult + return t.ProvidedFileExtension } -func (t *AdminSearch_AdminSearch_Nodes) GetGroupSettingSearchResult() *AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetDetectedMimeType() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.GroupSettingSearchResult + return t.DetectedMimeType } -func (t *AdminSearch_AdminSearch_Nodes) GetIntegrationSearchResult() *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetMd5Hash() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.IntegrationSearchResult + return t.Md5Hash } -func (t *AdminSearch_AdminSearch_Nodes) GetOauthProviderSearchResult() *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetDetectedContentType() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.OauthProviderSearchResult + return t.DetectedContentType } -func (t *AdminSearch_AdminSearch_Nodes) GetOhAuthTooTokenSearchResult() *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetStoreKey() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.OhAuthTooTokenSearchResult + return t.StoreKey } -func (t *AdminSearch_AdminSearch_Nodes) GetOrganizationSearchResult() *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetCategoryType() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.OrganizationSearchResult + return t.CategoryType } -func (t *AdminSearch_AdminSearch_Nodes) GetOrganizationSettingSearchResult() *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetURI() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.OrganizationSettingSearchResult + return t.URI } -func (t *AdminSearch_AdminSearch_Nodes) GetPersonalAccessTokenSearchResult() *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetStorageScheme() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.PersonalAccessTokenSearchResult + return t.StorageScheme } -func (t *AdminSearch_AdminSearch_Nodes) GetSubscriberSearchResult() *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetStorageVolume() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.SubscriberSearchResult + return t.StorageVolume } -func (t *AdminSearch_AdminSearch_Nodes) GetTFASettingSearchResult() *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult_Files) GetStoragePath() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult_Files{} } - return &t.TFASettingSearchResult + return t.StoragePath } -func (t *AdminSearch_AdminSearch_Nodes) GetTemplateSearchResult() *AdminSearch_AdminSearch_Nodes_TemplateSearchResult { + +type AdminSearch_AdminSearch_Nodes_FileSearchResult struct { + Files []*AdminSearch_AdminSearch_Nodes_FileSearchResult_Files "json:\"files,omitempty\" graphql:\"files\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_FileSearchResult) GetFiles() []*AdminSearch_AdminSearch_Nodes_FileSearchResult_Files { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_FileSearchResult{} } - return &t.TemplateSearchResult + return t.Files } -func (t *AdminSearch_AdminSearch_Nodes) GetUserSearchResult() *AdminSearch_AdminSearch_Nodes_UserSearchResult { + +type AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups) GetDeletedBy() *string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups{} } - return &t.UserSearchResult + return t.DeletedBy } -func (t *AdminSearch_AdminSearch_Nodes) GetUserSettingSearchResult() *AdminSearch_AdminSearch_Nodes_UserSettingSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups) GetID() string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups{} } - return &t.UserSettingSearchResult + return t.ID } -func (t *AdminSearch_AdminSearch_Nodes) GetWebhookSearchResult() *AdminSearch_AdminSearch_Nodes_WebhookSearchResult { +func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups) GetTags() []string { if t == nil { - t = &AdminSearch_AdminSearch_Nodes{} + t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups{} } - return &t.WebhookSearchResult + return t.Tags } - -type AdminSearch_AdminSearch struct { - Nodes []*AdminSearch_AdminSearch_Nodes "json:\"nodes\" graphql:\"nodes\"" +func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups) GetOwnerID() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups{} + } + return t.OwnerID } - -func (t *AdminSearch_AdminSearch) GetNodes() []*AdminSearch_AdminSearch_Nodes { +func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups) GetName() string { if t == nil { - t = &AdminSearch_AdminSearch{} + t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups{} } - return t.Nodes + return t.Name +} +func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups) GetDisplayName() string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups{} + } + return t.DisplayName } -type CreateAPIToken_CreateAPIToken_APIToken_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type AdminSearch_AdminSearch_Nodes_GroupSearchResult struct { + Groups []*AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups "json:\"groups,omitempty\" graphql:\"groups\"" } -func (t *CreateAPIToken_CreateAPIToken_APIToken_Owner) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_GroupSearchResult) GetGroups() []*AdminSearch_AdminSearch_Nodes_GroupSearchResult_Groups { if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken_Owner{} + t = &AdminSearch_AdminSearch_Nodes_GroupSearchResult{} } - return t.ID + return t.Groups } -type CreateAPIToken_CreateAPIToken_APIToken struct { - ID string "json:\"id\" graphql:\"id\"" - Token string "json:\"token\" graphql:\"token\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Owner *CreateAPIToken_CreateAPIToken_APIToken_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Name string "json:\"name\" graphql:\"name\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" +type AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" } -func (t *CreateAPIToken_CreateAPIToken_APIToken) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings) GetID() string { if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings{} } return t.ID } -func (t *CreateAPIToken_CreateAPIToken_APIToken) GetToken() string { +func (t *AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings) GetTags() []string { if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings{} } - return t.Token + return t.Tags } -func (t *CreateAPIToken_CreateAPIToken_APIToken) GetScopes() []string { +func (t *AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings) GetDeletedBy() *string { if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings{} } - return t.Scopes + return t.DeletedBy } -func (t *CreateAPIToken_CreateAPIToken_APIToken) GetOwner() *CreateAPIToken_CreateAPIToken_APIToken_Owner { +func (t *AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings) GetGroupID() *string { if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings{} } - return t.Owner + return t.GroupID } -func (t *CreateAPIToken_CreateAPIToken_APIToken) GetCreatedAt() *time.Time { - if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken{} - } - return t.CreatedAt + +type AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult struct { + GroupSettings []*AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings "json:\"groupSettings,omitempty\" graphql:\"groupSettings\"" } -func (t *CreateAPIToken_CreateAPIToken_APIToken) GetUpdatedAt() *time.Time { + +func (t *AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult) GetGroupSettings() []*AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult_GroupSettings { if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult{} } - return t.UpdatedAt + return t.GroupSettings } -func (t *CreateAPIToken_CreateAPIToken_APIToken) GetCreatedBy() *string { + +type AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Name string "json:\"name\" graphql:\"name\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations) GetID() string { if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations{} } - return t.CreatedBy + return t.ID } -func (t *CreateAPIToken_CreateAPIToken_APIToken) GetUpdatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations) GetTags() []string { if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations{} } - return t.UpdatedBy + return t.Tags } -func (t *CreateAPIToken_CreateAPIToken_APIToken) GetName() string { +func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations) GetDeletedBy() *string { if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations{} } - return t.Name + return t.DeletedBy } -func (t *CreateAPIToken_CreateAPIToken_APIToken) GetExpiresAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations) GetOwnerID() *string { if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations{} } - return t.ExpiresAt + return t.OwnerID } -func (t *CreateAPIToken_CreateAPIToken_APIToken) GetDescription() *string { +func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations) GetName() string { if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations{} } - return t.Description + return t.Name } -func (t *CreateAPIToken_CreateAPIToken_APIToken) GetLastUsedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations) GetKind() *string { if t == nil { - t = &CreateAPIToken_CreateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations{} } - return t.LastUsedAt + return t.Kind } -type CreateAPIToken_CreateAPIToken struct { - APIToken CreateAPIToken_CreateAPIToken_APIToken "json:\"apiToken\" graphql:\"apiToken\"" +type AdminSearch_AdminSearch_Nodes_IntegrationSearchResult struct { + Integrations []*AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" } -func (t *CreateAPIToken_CreateAPIToken) GetAPIToken() *CreateAPIToken_CreateAPIToken_APIToken { +func (t *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult) GetIntegrations() []*AdminSearch_AdminSearch_Nodes_IntegrationSearchResult_Integrations { if t == nil { - t = &CreateAPIToken_CreateAPIToken{} + t = &AdminSearch_AdminSearch_Nodes_IntegrationSearchResult{} } - return &t.APIToken + return t.Integrations } -type UpdateAPIToken_UpdateAPIToken_APIToken_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Name string "json:\"name\" graphql:\"name\"" + Description string "json:\"description\" graphql:\"description\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + PolicyType *string "json:\"policyType,omitempty\" graphql:\"policyType\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Background *string "json:\"background,omitempty\" graphql:\"background\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" } -func (t *UpdateAPIToken_UpdateAPIToken_APIToken_Owner) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies) GetDeletedBy() *string { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken_Owner{} + t = &AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies{} + } + return t.DeletedBy +} +func (t *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies) GetID() string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies{} } return t.ID } - -type UpdateAPIToken_UpdateAPIToken_APIToken struct { - ID string "json:\"id\" graphql:\"id\"" - Token string "json:\"token\" graphql:\"token\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Owner *UpdateAPIToken_UpdateAPIToken_APIToken_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Name string "json:\"name\" graphql:\"name\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" +func (t *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies) GetTags() []string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies{} + } + return t.Tags } - -func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies) GetName() string { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies{} } - return t.ID + return t.Name } -func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetToken() string { +func (t *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies) GetDescription() string { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies{} } - return t.Token + return t.Description } -func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetScopes() []string { +func (t *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies) GetStatus() *string { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies{} } - return t.Scopes + return t.Status } -func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetOwner() *UpdateAPIToken_UpdateAPIToken_APIToken_Owner { +func (t *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies) GetPolicyType() *string { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies{} } - return t.Owner + return t.PolicyType } -func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetCreatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies) GetVersion() *string { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies{} } - return t.CreatedAt + return t.Version } -func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetUpdatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies) GetPurposeAndScope() *string { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies{} } - return t.UpdatedAt + return t.PurposeAndScope } -func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetCreatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies) GetBackground() *string { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies{} } - return t.CreatedBy + return t.Background } -func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetUpdatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies) GetDetails() map[string]interface{} { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies{} } - return t.UpdatedBy + return t.Details } -func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetName() string { + +type AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult struct { + InternalPolicies []*AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies "json:\"internalPolicies,omitempty\" graphql:\"internalPolicies\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult) GetInternalPolicies() []*AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult_InternalPolicies { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult{} } - return t.Name + return t.InternalPolicies } -func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetExpiresAt() *time.Time { + +type AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Name string "json:\"name\" graphql:\"name\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives) GetDeletedBy() *string { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives{} } - return t.ExpiresAt + return t.DeletedBy } -func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetDescription() *string { +func (t *AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives) GetID() string { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives{} } - return t.Description + return t.ID } -func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetLastUsedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives) GetTags() []string { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives{} } - return t.LastUsedAt + return t.Tags } - -type UpdateAPIToken_UpdateAPIToken struct { - APIToken UpdateAPIToken_UpdateAPIToken_APIToken "json:\"apiToken\" graphql:\"apiToken\"" +func (t *AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives) GetName() string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives{} + } + return t.Name } - -func (t *UpdateAPIToken_UpdateAPIToken) GetAPIToken() *UpdateAPIToken_UpdateAPIToken_APIToken { +func (t *AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives) GetDescription() *string { if t == nil { - t = &UpdateAPIToken_UpdateAPIToken{} + t = &AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives{} } - return &t.APIToken + return t.Description +} +func (t *AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives) GetSatisfies() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives{} + } + return t.Satisfies +} +func (t *AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives) GetDetails() map[string]interface{} { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives{} + } + return t.Details } -type GetAllAPITokens_APITokens_Edges_Node_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type AdminSearch_AdminSearch_Nodes_NarrativeSearchResult struct { + Narratives []*AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives "json:\"narratives,omitempty\" graphql:\"narratives\"" } -func (t *GetAllAPITokens_APITokens_Edges_Node_Owner) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_NarrativeSearchResult) GetNarratives() []*AdminSearch_AdminSearch_Nodes_NarrativeSearchResult_Narratives { if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node_Owner{} + t = &AdminSearch_AdminSearch_Nodes_NarrativeSearchResult{} } - return t.ID + return t.Narratives } -type GetAllAPITokens_APITokens_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Token string "json:\"token\" graphql:\"token\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Owner *GetAllAPITokens_APITokens_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Name string "json:\"name\" graphql:\"name\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" +type AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Name string "json:\"name\" graphql:\"name\"" + ClientID string "json:\"clientID\" graphql:\"clientID\"" + ClientSecret string "json:\"clientSecret\" graphql:\"clientSecret\"" + RedirectURL string "json:\"redirectURL\" graphql:\"redirectURL\"" + Scopes string "json:\"scopes\" graphql:\"scopes\"" + AuthURL string "json:\"authURL\" graphql:\"authURL\"" + TokenURL string "json:\"tokenURL\" graphql:\"tokenURL\"" + InfoURL string "json:\"infoURL\" graphql:\"infoURL\"" } -func (t *GetAllAPITokens_APITokens_Edges_Node) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetID() string { if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} } return t.ID } -func (t *GetAllAPITokens_APITokens_Edges_Node) GetToken() string { - if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node{} - } - return t.Token -} -func (t *GetAllAPITokens_APITokens_Edges_Node) GetScopes() []string { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetTags() []string { if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} } - return t.Scopes + return t.Tags } -func (t *GetAllAPITokens_APITokens_Edges_Node) GetOwner() *GetAllAPITokens_APITokens_Edges_Node_Owner { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetDeletedBy() *string { if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} } - return t.Owner + return t.DeletedBy } -func (t *GetAllAPITokens_APITokens_Edges_Node) GetCreatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetOwnerID() *string { if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} } - return t.CreatedAt + return t.OwnerID } -func (t *GetAllAPITokens_APITokens_Edges_Node) GetUpdatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetName() string { if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} } - return t.UpdatedAt + return t.Name } -func (t *GetAllAPITokens_APITokens_Edges_Node) GetCreatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetClientID() string { if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} } - return t.CreatedBy + return t.ClientID } -func (t *GetAllAPITokens_APITokens_Edges_Node) GetUpdatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetClientSecret() string { if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} } - return t.UpdatedBy + return t.ClientSecret } -func (t *GetAllAPITokens_APITokens_Edges_Node) GetName() string { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetRedirectURL() string { if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} } - return t.Name + return t.RedirectURL } -func (t *GetAllAPITokens_APITokens_Edges_Node) GetExpiresAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetScopes() string { if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} } - return t.ExpiresAt + return t.Scopes } -func (t *GetAllAPITokens_APITokens_Edges_Node) GetDescription() *string { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetAuthURL() string { if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} } - return t.Description + return t.AuthURL } -func (t *GetAllAPITokens_APITokens_Edges_Node) GetLastUsedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetTokenURL() string { if t == nil { - t = &GetAllAPITokens_APITokens_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} } - return t.LastUsedAt -} - -type GetAllAPITokens_APITokens_Edges struct { - Node *GetAllAPITokens_APITokens_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return t.TokenURL } - -func (t *GetAllAPITokens_APITokens_Edges) GetNode() *GetAllAPITokens_APITokens_Edges_Node { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders) GetInfoURL() string { if t == nil { - t = &GetAllAPITokens_APITokens_Edges{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders{} } - return t.Node + return t.InfoURL } -type GetAllAPITokens_APITokens struct { - Edges []*GetAllAPITokens_APITokens_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult struct { + OauthProviders []*AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders "json:\"oauthProviders,omitempty\" graphql:\"oauthProviders\"" } -func (t *GetAllAPITokens_APITokens) GetEdges() []*GetAllAPITokens_APITokens_Edges { +func (t *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult) GetOauthProviders() []*AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult_OauthProviders { if t == nil { - t = &GetAllAPITokens_APITokens{} + t = &AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult{} } - return t.Edges + return t.OauthProviders } -type GetAPITokenByID_APIToken_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + ClientID string "json:\"clientID\" graphql:\"clientID\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Nonce string "json:\"nonce\" graphql:\"nonce\"" + ClaimsUserID string "json:\"claimsUserID\" graphql:\"claimsUserID\"" + ClaimsUsername string "json:\"claimsUsername\" graphql:\"claimsUsername\"" + ClaimsEmail string "json:\"claimsEmail\" graphql:\"claimsEmail\"" + ClaimsGroups []string "json:\"claimsGroups,omitempty\" graphql:\"claimsGroups\"" + ClaimsPreferredUsername string "json:\"claimsPreferredUsername\" graphql:\"claimsPreferredUsername\"" + ConnectorID string "json:\"connectorID\" graphql:\"connectorID\"" + ConnectorData []string "json:\"connectorData,omitempty\" graphql:\"connectorData\"" } -func (t *GetAPITokenByID_APIToken_Owner) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetID() string { if t == nil { - t = &GetAPITokenByID_APIToken_Owner{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} } return t.ID } - -type GetAPITokenByID_APIToken struct { - ID string "json:\"id\" graphql:\"id\"" - Token string "json:\"token\" graphql:\"token\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Owner *GetAPITokenByID_APIToken_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Name string "json:\"name\" graphql:\"name\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" -} - -func (t *GetAPITokenByID_APIToken) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetTags() []string { if t == nil { - t = &GetAPITokenByID_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} } - return t.ID + return t.Tags } -func (t *GetAPITokenByID_APIToken) GetToken() string { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetClientID() string { if t == nil { - t = &GetAPITokenByID_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} } - return t.Token + return t.ClientID } -func (t *GetAPITokenByID_APIToken) GetScopes() []string { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetScopes() []string { if t == nil { - t = &GetAPITokenByID_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} } return t.Scopes } -func (t *GetAPITokenByID_APIToken) GetOwner() *GetAPITokenByID_APIToken_Owner { - if t == nil { - t = &GetAPITokenByID_APIToken{} - } - return t.Owner -} -func (t *GetAPITokenByID_APIToken) GetCreatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetNonce() string { if t == nil { - t = &GetAPITokenByID_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} } - return t.CreatedAt + return t.Nonce } -func (t *GetAPITokenByID_APIToken) GetUpdatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetClaimsUserID() string { if t == nil { - t = &GetAPITokenByID_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} } - return t.UpdatedAt + return t.ClaimsUserID } -func (t *GetAPITokenByID_APIToken) GetCreatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetClaimsUsername() string { if t == nil { - t = &GetAPITokenByID_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} } - return t.CreatedBy + return t.ClaimsUsername } -func (t *GetAPITokenByID_APIToken) GetUpdatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetClaimsEmail() string { if t == nil { - t = &GetAPITokenByID_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} } - return t.UpdatedBy + return t.ClaimsEmail } -func (t *GetAPITokenByID_APIToken) GetName() string { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetClaimsGroups() []string { if t == nil { - t = &GetAPITokenByID_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} } - return t.Name + return t.ClaimsGroups } -func (t *GetAPITokenByID_APIToken) GetExpiresAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetClaimsPreferredUsername() string { if t == nil { - t = &GetAPITokenByID_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} } - return t.ExpiresAt + return t.ClaimsPreferredUsername } -func (t *GetAPITokenByID_APIToken) GetDescription() *string { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetConnectorID() string { if t == nil { - t = &GetAPITokenByID_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} } - return t.Description + return t.ConnectorID } -func (t *GetAPITokenByID_APIToken) GetLastUsedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetConnectorData() []string { if t == nil { - t = &GetAPITokenByID_APIToken{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} } - return t.LastUsedAt + return t.ConnectorData } -type DeleteAPIToken_DeleteAPIToken struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult struct { + OhAuthTooTokens []*AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens "json:\"ohAuthTooTokens,omitempty\" graphql:\"ohAuthTooTokens\"" } -func (t *DeleteAPIToken_DeleteAPIToken) GetDeletedID() string { +func (t *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult) GetOhAuthTooTokens() []*AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens { if t == nil { - t = &DeleteAPIToken_DeleteAPIToken{} + t = &AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult{} } - return t.DeletedID + return t.OhAuthTooTokens } -type CreateBulkContact_CreateBulkContact_Contacts struct { - Address *string "json:\"address,omitempty\" graphql:\"address\"" - Company *string "json:\"company,omitempty\" graphql:\"company\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Email *string "json:\"email,omitempty\" graphql:\"email\"" - FullName string "json:\"fullName\" graphql:\"fullName\"" - ID string "json:\"id\" graphql:\"id\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Title *string "json:\"title,omitempty\" graphql:\"title\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetAddress() *string { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations) GetID() string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations{} } - return t.Address + return t.ID } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetCompany() *string { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations) GetTags() []string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations{} } - return t.Company + return t.Tags } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetCreatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations) GetDeletedBy() *string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations{} } - return t.CreatedAt + return t.DeletedBy } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetCreatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations) GetName() string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations{} } - return t.CreatedBy + return t.Name } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetEmail() *string { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations) GetDisplayName() string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations{} } - return t.Email + return t.DisplayName } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetFullName() string { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations) GetAvatarRemoteURL() *string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations{} } - return t.FullName + return t.AvatarRemoteURL } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetID() string { + +type AdminSearch_AdminSearch_Nodes_OrganizationSearchResult struct { + Organizations []*AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult) GetOrganizations() []*AdminSearch_AdminSearch_Nodes_OrganizationSearchResult_Organizations { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSearchResult{} + } + return t.Organizations +} + +type AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" + BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" + BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" + BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" + TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" + OrganizationID *string "json:\"organizationID,omitempty\" graphql:\"organizationID\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetID() string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} } return t.ID } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetTags() []string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} } - return t.OwnerID + return t.Tags } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetPhoneNumber() *string { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetDeletedBy() *string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} } - return t.PhoneNumber + return t.DeletedBy } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetStatus() *enums.UserStatus { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetDomains() []string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} } - return &t.Status + return t.Domains } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetBillingContact() *string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} } - return t.Tags + return t.BillingContact } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetTitle() *string { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetBillingEmail() *string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} } - return t.Title + return t.BillingEmail } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetUpdatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetBillingPhone() *string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} } - return t.UpdatedAt + return t.BillingPhone } -func (t *CreateBulkContact_CreateBulkContact_Contacts) GetUpdatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetBillingAddress() *string { if t == nil { - t = &CreateBulkContact_CreateBulkContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} } - return t.UpdatedBy + return t.BillingAddress +} +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetTaxIdentifier() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + } + return t.TaxIdentifier +} +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetOrganizationID() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + } + return t.OrganizationID } -type CreateBulkContact_CreateBulkContact struct { - Contacts []*CreateBulkContact_CreateBulkContact_Contacts "json:\"contacts,omitempty\" graphql:\"contacts\"" +type AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult struct { + OrganizationSettings []*AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings "json:\"organizationSettings,omitempty\" graphql:\"organizationSettings\"" } -func (t *CreateBulkContact_CreateBulkContact) GetContacts() []*CreateBulkContact_CreateBulkContact_Contacts { +func (t *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult) GetOrganizationSettings() []*AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult_OrganizationSettings { if t == nil { - t = &CreateBulkContact_CreateBulkContact{} + t = &AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult{} } - return t.Contacts + return t.OrganizationSettings } -type CreateBulkCSVContact_CreateBulkCSVContact_Contacts struct { - Address *string "json:\"address,omitempty\" graphql:\"address\"" - Company *string "json:\"company,omitempty\" graphql:\"company\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Email *string "json:\"email,omitempty\" graphql:\"email\"" - FullName string "json:\"fullName\" graphql:\"fullName\"" - ID string "json:\"id\" graphql:\"id\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Title *string "json:\"title,omitempty\" graphql:\"title\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Name string "json:\"name\" graphql:\"name\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetAddress() *string { +func (t *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetDeletedBy() *string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} } - return t.Address + return t.DeletedBy } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetCompany() *string { +func (t *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetID() string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} } - return t.Company + return t.ID } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetCreatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetTags() []string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} } - return t.CreatedAt + return t.Tags } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetCreatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetName() string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} } - return t.CreatedBy + return t.Name } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetEmail() *string { +func (t *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetScopes() []string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} } - return t.Email + return t.Scopes } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetFullName() string { + +type AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult struct { + PersonalAccessTokens []*AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens "json:\"personalAccessTokens,omitempty\" graphql:\"personalAccessTokens\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult) GetPersonalAccessTokens() []*AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult{} } - return t.FullName + return t.PersonalAccessTokens } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetID() string { + +type AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Name string "json:\"name\" graphql:\"name\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + ProcedureType *string "json:\"procedureType,omitempty\" graphql:\"procedureType\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Background *string "json:\"background,omitempty\" graphql:\"background\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures) GetDeletedBy() *string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures{} + } + return t.DeletedBy +} +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures) GetID() string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures{} } return t.ID } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures) GetTags() []string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures{} } - return t.OwnerID + return t.Tags } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetPhoneNumber() *string { +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures) GetName() string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures{} } - return t.PhoneNumber + return t.Name } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetStatus() *enums.UserStatus { +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures) GetDescription() *string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures{} } - return &t.Status + return t.Description } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures) GetStatus() *string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures{} } - return t.Tags + return t.Status } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetTitle() *string { +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures) GetProcedureType() *string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures{} } - return t.Title + return t.ProcedureType } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetUpdatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures) GetVersion() *string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures{} } - return t.UpdatedAt + return t.Version } -func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetUpdatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures) GetPurposeAndScope() *string { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures{} } - return t.UpdatedBy + return t.PurposeAndScope +} +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures) GetBackground() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures{} + } + return t.Background +} +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures) GetSatisfies() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures{} + } + return t.Satisfies +} +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures) GetDetails() map[string]interface{} { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures{} + } + return t.Details } -type CreateBulkCSVContact_CreateBulkCSVContact struct { - Contacts []*CreateBulkCSVContact_CreateBulkCSVContact_Contacts "json:\"contacts,omitempty\" graphql:\"contacts\"" +type AdminSearch_AdminSearch_Nodes_ProcedureSearchResult struct { + Procedures []*AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures "json:\"procedures,omitempty\" graphql:\"procedures\"" } -func (t *CreateBulkCSVContact_CreateBulkCSVContact) GetContacts() []*CreateBulkCSVContact_CreateBulkCSVContact_Contacts { +func (t *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult) GetProcedures() []*AdminSearch_AdminSearch_Nodes_ProcedureSearchResult_Procedures { if t == nil { - t = &CreateBulkCSVContact_CreateBulkCSVContact{} + t = &AdminSearch_AdminSearch_Nodes_ProcedureSearchResult{} } - return t.Contacts + return t.Procedures } -type CreateContact_CreateContact_Contact struct { - Address *string "json:\"address,omitempty\" graphql:\"address\"" - Company *string "json:\"company,omitempty\" graphql:\"company\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Email *string "json:\"email,omitempty\" graphql:\"email\"" - FullName string "json:\"fullName\" graphql:\"fullName\"" - ID string "json:\"id\" graphql:\"id\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Title *string "json:\"title,omitempty\" graphql:\"title\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Name string "json:\"name\" graphql:\"name\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + RiskType *string "json:\"riskType,omitempty\" graphql:\"riskType\"" + BusinessCosts *string "json:\"businessCosts,omitempty\" graphql:\"businessCosts\"" + Mitigation *string "json:\"mitigation,omitempty\" graphql:\"mitigation\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" } -func (t *CreateContact_CreateContact_Contact) GetAddress() *string { +func (t *AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks) GetDeletedBy() *string { if t == nil { - t = &CreateContact_CreateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks{} } - return t.Address -} -func (t *CreateContact_CreateContact_Contact) GetCompany() *string { - if t == nil { - t = &CreateContact_CreateContact_Contact{} - } - return t.Company -} -func (t *CreateContact_CreateContact_Contact) GetCreatedAt() *time.Time { - if t == nil { - t = &CreateContact_CreateContact_Contact{} - } - return t.CreatedAt -} -func (t *CreateContact_CreateContact_Contact) GetCreatedBy() *string { - if t == nil { - t = &CreateContact_CreateContact_Contact{} - } - return t.CreatedBy + return t.DeletedBy } -func (t *CreateContact_CreateContact_Contact) GetEmail() *string { +func (t *AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks) GetID() string { if t == nil { - t = &CreateContact_CreateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks{} } - return t.Email + return t.ID } -func (t *CreateContact_CreateContact_Contact) GetFullName() string { +func (t *AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks) GetTags() []string { if t == nil { - t = &CreateContact_CreateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks{} } - return t.FullName + return t.Tags } -func (t *CreateContact_CreateContact_Contact) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks) GetName() string { if t == nil { - t = &CreateContact_CreateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks{} } - return t.ID + return t.Name } -func (t *CreateContact_CreateContact_Contact) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks) GetDescription() *string { if t == nil { - t = &CreateContact_CreateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks{} } - return t.OwnerID + return t.Description } -func (t *CreateContact_CreateContact_Contact) GetPhoneNumber() *string { +func (t *AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks) GetStatus() *string { if t == nil { - t = &CreateContact_CreateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks{} } - return t.PhoneNumber + return t.Status } -func (t *CreateContact_CreateContact_Contact) GetStatus() *enums.UserStatus { +func (t *AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks) GetRiskType() *string { if t == nil { - t = &CreateContact_CreateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks{} } - return &t.Status + return t.RiskType } -func (t *CreateContact_CreateContact_Contact) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks) GetBusinessCosts() *string { if t == nil { - t = &CreateContact_CreateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks{} } - return t.Tags + return t.BusinessCosts } -func (t *CreateContact_CreateContact_Contact) GetTitle() *string { +func (t *AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks) GetMitigation() *string { if t == nil { - t = &CreateContact_CreateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks{} } - return t.Title + return t.Mitigation } -func (t *CreateContact_CreateContact_Contact) GetUpdatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks) GetSatisfies() *string { if t == nil { - t = &CreateContact_CreateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks{} } - return t.UpdatedAt + return t.Satisfies } -func (t *CreateContact_CreateContact_Contact) GetUpdatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks) GetDetails() map[string]interface{} { if t == nil { - t = &CreateContact_CreateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks{} } - return t.UpdatedBy + return t.Details } -type CreateContact_CreateContact struct { - Contact CreateContact_CreateContact_Contact "json:\"contact\" graphql:\"contact\"" +type AdminSearch_AdminSearch_Nodes_RiskSearchResult struct { + Risks []*AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks "json:\"risks,omitempty\" graphql:\"risks\"" } -func (t *CreateContact_CreateContact) GetContact() *CreateContact_CreateContact_Contact { +func (t *AdminSearch_AdminSearch_Nodes_RiskSearchResult) GetRisks() []*AdminSearch_AdminSearch_Nodes_RiskSearchResult_Risks { if t == nil { - t = &CreateContact_CreateContact{} + t = &AdminSearch_AdminSearch_Nodes_RiskSearchResult{} } - return &t.Contact + return t.Risks } -type DeleteContact_DeleteContact struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Name string "json:\"name\" graphql:\"name\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + StandardType *string "json:\"standardType,omitempty\" graphql:\"standardType\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Background *string "json:\"background,omitempty\" graphql:\"background\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" } -func (t *DeleteContact_DeleteContact) GetDeletedID() string { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetDeletedBy() *string { if t == nil { - t = &DeleteContact_DeleteContact{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return t.DeletedID -} - -type GetAllContacts_Contacts_Edges_Node struct { - Address *string "json:\"address,omitempty\" graphql:\"address\"" - Company *string "json:\"company,omitempty\" graphql:\"company\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Email *string "json:\"email,omitempty\" graphql:\"email\"" - FullName string "json:\"fullName\" graphql:\"fullName\"" - ID string "json:\"id\" graphql:\"id\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Title *string "json:\"title,omitempty\" graphql:\"title\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.DeletedBy } - -func (t *GetAllContacts_Contacts_Edges_Node) GetAddress() *string { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetID() string { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return t.Address + return t.ID } -func (t *GetAllContacts_Contacts_Edges_Node) GetCompany() *string { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetTags() []string { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return t.Company + return t.Tags } -func (t *GetAllContacts_Contacts_Edges_Node) GetCreatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetName() string { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return t.CreatedAt + return t.Name } -func (t *GetAllContacts_Contacts_Edges_Node) GetCreatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetDescription() *string { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return t.CreatedBy + return t.Description } -func (t *GetAllContacts_Contacts_Edges_Node) GetEmail() *string { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetFamily() *string { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return t.Email + return t.Family } -func (t *GetAllContacts_Contacts_Edges_Node) GetFullName() string { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetStatus() *string { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return t.FullName + return t.Status } -func (t *GetAllContacts_Contacts_Edges_Node) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetStandardType() *string { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return t.ID + return t.StandardType } -func (t *GetAllContacts_Contacts_Edges_Node) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetVersion() *string { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return t.OwnerID + return t.Version } -func (t *GetAllContacts_Contacts_Edges_Node) GetPhoneNumber() *string { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetPurposeAndScope() *string { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return t.PhoneNumber + return t.PurposeAndScope } -func (t *GetAllContacts_Contacts_Edges_Node) GetStatus() *enums.UserStatus { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetBackground() *string { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return &t.Status + return t.Background } -func (t *GetAllContacts_Contacts_Edges_Node) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetSatisfies() *string { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return t.Tags + return t.Satisfies } -func (t *GetAllContacts_Contacts_Edges_Node) GetTitle() *string { +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards) GetDetails() map[string]interface{} { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards{} } - return t.Title + return t.Details } -func (t *GetAllContacts_Contacts_Edges_Node) GetUpdatedAt() *time.Time { - if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} - } - return t.UpdatedAt + +type AdminSearch_AdminSearch_Nodes_StandardSearchResult struct { + Standards []*AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards "json:\"standards,omitempty\" graphql:\"standards\"" } -func (t *GetAllContacts_Contacts_Edges_Node) GetUpdatedBy() *string { + +func (t *AdminSearch_AdminSearch_Nodes_StandardSearchResult) GetStandards() []*AdminSearch_AdminSearch_Nodes_StandardSearchResult_Standards { if t == nil { - t = &GetAllContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_StandardSearchResult{} } - return t.UpdatedBy + return t.Standards } -type GetAllContacts_Contacts_Edges struct { - Node *GetAllContacts_Contacts_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Name string "json:\"name\" graphql:\"name\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + SubcontrolType *string "json:\"subcontrolType,omitempty\" graphql:\"subcontrolType\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" + SubcontrolNumber *string "json:\"subcontrolNumber,omitempty\" graphql:\"subcontrolNumber\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + Class *string "json:\"class,omitempty\" graphql:\"class\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + ImplementationEvidence *string "json:\"implementationEvidence,omitempty\" graphql:\"implementationEvidence\"" + ImplementationStatus *string "json:\"implementationStatus,omitempty\" graphql:\"implementationStatus\"" + ImplementationVerification *string "json:\"implementationVerification,omitempty\" graphql:\"implementationVerification\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" } -func (t *GetAllContacts_Contacts_Edges) GetNode() *GetAllContacts_Contacts_Edges_Node { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetDeletedBy() *string { if t == nil { - t = &GetAllContacts_Contacts_Edges{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.Node -} - -type GetAllContacts_Contacts struct { - Edges []*GetAllContacts_Contacts_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.DeletedBy } - -func (t *GetAllContacts_Contacts) GetEdges() []*GetAllContacts_Contacts_Edges { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetID() string { if t == nil { - t = &GetAllContacts_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.Edges + return t.ID } - -type GetContactByID_Contact struct { - Address *string "json:\"address,omitempty\" graphql:\"address\"" - Company *string "json:\"company,omitempty\" graphql:\"company\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Email *string "json:\"email,omitempty\" graphql:\"email\"" - FullName string "json:\"fullName\" graphql:\"fullName\"" - ID string "json:\"id\" graphql:\"id\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Title *string "json:\"title,omitempty\" graphql:\"title\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetTags() []string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} + } + return t.Tags } - -func (t *GetContactByID_Contact) GetAddress() *string { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetName() string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.Address + return t.Name } -func (t *GetContactByID_Contact) GetCompany() *string { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetDescription() *string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.Company + return t.Description } -func (t *GetContactByID_Contact) GetCreatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetStatus() *string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.CreatedAt + return t.Status } -func (t *GetContactByID_Contact) GetCreatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetSubcontrolType() *string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.CreatedBy + return t.SubcontrolType } -func (t *GetContactByID_Contact) GetEmail() *string { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetVersion() *string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.Email + return t.Version } -func (t *GetContactByID_Contact) GetFullName() string { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetSubcontrolNumber() *string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.FullName + return t.SubcontrolNumber } -func (t *GetContactByID_Contact) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetFamily() *string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.ID + return t.Family } -func (t *GetContactByID_Contact) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetClass() *string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.OwnerID + return t.Class } -func (t *GetContactByID_Contact) GetPhoneNumber() *string { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetSource() *string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.PhoneNumber + return t.Source } -func (t *GetContactByID_Contact) GetStatus() *enums.UserStatus { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetMappedFrameworks() *string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return &t.Status + return t.MappedFrameworks } -func (t *GetContactByID_Contact) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetImplementationEvidence() *string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.Tags + return t.ImplementationEvidence } -func (t *GetContactByID_Contact) GetTitle() *string { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetImplementationStatus() *string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.Title + return t.ImplementationStatus } -func (t *GetContactByID_Contact) GetUpdatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetImplementationVerification() *string { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.UpdatedAt + return t.ImplementationVerification } -func (t *GetContactByID_Contact) GetUpdatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols) GetDetails() map[string]interface{} { if t == nil { - t = &GetContactByID_Contact{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols{} } - return t.UpdatedBy + return t.Details } -type GetContacts_Contacts_Edges_Node struct { - Address *string "json:\"address,omitempty\" graphql:\"address\"" - Company *string "json:\"company,omitempty\" graphql:\"company\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Email *string "json:\"email,omitempty\" graphql:\"email\"" - FullName string "json:\"fullName\" graphql:\"fullName\"" - ID string "json:\"id\" graphql:\"id\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Title *string "json:\"title,omitempty\" graphql:\"title\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult struct { + Subcontrols []*AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols "json:\"subcontrols,omitempty\" graphql:\"subcontrols\"" } -func (t *GetContacts_Contacts_Edges_Node) GetAddress() *string { +func (t *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult) GetSubcontrols() []*AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult_Subcontrols { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult{} } - return t.Address + return t.Subcontrols } -func (t *GetContacts_Contacts_Edges_Node) GetCompany() *string { + +type AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Email string "json:\"email\" graphql:\"email\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers) GetID() string { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers{} } - return t.Company + return t.ID } -func (t *GetContacts_Contacts_Edges_Node) GetCreatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers) GetTags() []string { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers{} } - return t.CreatedAt + return t.Tags } -func (t *GetContacts_Contacts_Edges_Node) GetCreatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers) GetDeletedBy() *string { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers{} } - return t.CreatedBy + return t.DeletedBy } -func (t *GetContacts_Contacts_Edges_Node) GetEmail() *string { +func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers) GetOwnerID() *string { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers{} } - return t.Email + return t.OwnerID } -func (t *GetContacts_Contacts_Edges_Node) GetFullName() string { +func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers) GetEmail() string { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers{} } - return t.FullName + return t.Email } -func (t *GetContacts_Contacts_Edges_Node) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers) GetPhoneNumber() *string { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers{} } - return t.ID + return t.PhoneNumber } -func (t *GetContacts_Contacts_Edges_Node) GetOwnerID() *string { + +type AdminSearch_AdminSearch_Nodes_SubscriberSearchResult struct { + Subscribers []*AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers "json:\"subscribers,omitempty\" graphql:\"subscribers\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult) GetSubscribers() []*AdminSearch_AdminSearch_Nodes_SubscriberSearchResult_Subscribers { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_SubscriberSearchResult{} } - return t.OwnerID + return t.Subscribers } -func (t *GetContacts_Contacts_Edges_Node) GetPhoneNumber() *string { + +type AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings struct { + ID string "json:\"id\" graphql:\"id\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TfaSecret *string "json:\"tfaSecret,omitempty\" graphql:\"tfaSecret\"" + RecoveryCodes []string "json:\"recoveryCodes,omitempty\" graphql:\"recoveryCodes\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings) GetID() string { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings{} } - return t.PhoneNumber + return t.ID } -func (t *GetContacts_Contacts_Edges_Node) GetStatus() *enums.UserStatus { +func (t *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings) GetDeletedBy() *string { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings{} } - return &t.Status + return t.DeletedBy } -func (t *GetContacts_Contacts_Edges_Node) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings) GetTags() []string { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings{} } return t.Tags } -func (t *GetContacts_Contacts_Edges_Node) GetTitle() *string { +func (t *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings) GetTfaSecret() *string { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings{} } - return t.Title + return t.TfaSecret } -func (t *GetContacts_Contacts_Edges_Node) GetUpdatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings) GetRecoveryCodes() []string { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings{} } - return t.UpdatedAt + return t.RecoveryCodes } -func (t *GetContacts_Contacts_Edges_Node) GetUpdatedBy() *string { + +type AdminSearch_AdminSearch_Nodes_TFASettingSearchResult struct { + TFASettings []*AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings "json:\"tFASettings,omitempty\" graphql:\"tFASettings\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult) GetTFASettings() []*AdminSearch_AdminSearch_Nodes_TFASettingSearchResult_TFASettings { if t == nil { - t = &GetContacts_Contacts_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_TFASettingSearchResult{} } - return t.UpdatedBy + return t.TFASettings } -type GetContacts_Contacts_Edges struct { - Node *GetContacts_Contacts_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Name string "json:\"name\" graphql:\"name\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" + Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" } -func (t *GetContacts_Contacts_Edges) GetNode() *GetContacts_Contacts_Edges_Node { +func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetDeletedBy() *string { if t == nil { - t = &GetContacts_Contacts_Edges{} + t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} } - return t.Node + return t.DeletedBy } - -type GetContacts_Contacts struct { - Edges []*GetContacts_Contacts_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetID() string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} + } + return t.ID } - -func (t *GetContacts_Contacts) GetEdges() []*GetContacts_Contacts_Edges { +func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetTags() []string { if t == nil { - t = &GetContacts_Contacts{} + t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} } - return t.Edges + return t.Tags } - -type UpdateContact_UpdateContact_Contact struct { - Address *string "json:\"address,omitempty\" graphql:\"address\"" - Company *string "json:\"company,omitempty\" graphql:\"company\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Email *string "json:\"email,omitempty\" graphql:\"email\"" - FullName string "json:\"fullName\" graphql:\"fullName\"" - ID string "json:\"id\" graphql:\"id\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Title *string "json:\"title,omitempty\" graphql:\"title\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetOwnerID() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} + } + return t.OwnerID } - -func (t *UpdateContact_UpdateContact_Contact) GetAddress() *string { +func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetName() string { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} } - return t.Address + return t.Name } -func (t *UpdateContact_UpdateContact_Contact) GetCompany() *string { +func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetDescription() *string { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} } - return t.Company + return t.Description } -func (t *UpdateContact_UpdateContact_Contact) GetCreatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetJsonconfig() *json.RawMessage { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} } - return t.CreatedAt + return &t.Jsonconfig } -func (t *UpdateContact_UpdateContact_Contact) GetCreatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates) GetUischema() *json.RawMessage { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates{} } - return t.CreatedBy + return &t.Uischema } -func (t *UpdateContact_UpdateContact_Contact) GetEmail() *string { + +type AdminSearch_AdminSearch_Nodes_TemplateSearchResult struct { + Templates []*AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates "json:\"templates,omitempty\" graphql:\"templates\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_TemplateSearchResult) GetTemplates() []*AdminSearch_AdminSearch_Nodes_TemplateSearchResult_Templates { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_TemplateSearchResult{} } - return t.Email + return t.Templates } -func (t *UpdateContact_UpdateContact_Contact) GetFullName() string { + +type AdminSearch_AdminSearch_Nodes_UserSearchResult_Users struct { + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" + AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" + AvatarLocalFileID *string "json:\"avatarLocalFileID,omitempty\" graphql:\"avatarLocalFileID\"" + Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetDeletedBy() *string { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} } - return t.FullName + return t.DeletedBy } -func (t *UpdateContact_UpdateContact_Contact) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetID() string { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} } return t.ID } -func (t *UpdateContact_UpdateContact_Contact) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetTags() []string { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} } - return t.OwnerID + return t.Tags } -func (t *UpdateContact_UpdateContact_Contact) GetPhoneNumber() *string { +func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetEmail() string { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} } - return t.PhoneNumber + return t.Email } -func (t *UpdateContact_UpdateContact_Contact) GetStatus() *enums.UserStatus { +func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetFirstName() *string { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} } - return &t.Status + return t.FirstName } -func (t *UpdateContact_UpdateContact_Contact) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetLastName() *string { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} } - return t.Tags + return t.LastName } -func (t *UpdateContact_UpdateContact_Contact) GetTitle() *string { +func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetDisplayName() string { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} } - return t.Title + return t.DisplayName } -func (t *UpdateContact_UpdateContact_Contact) GetUpdatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetAvatarRemoteURL() *string { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} } - return t.UpdatedAt + return t.AvatarRemoteURL } -func (t *UpdateContact_UpdateContact_Contact) GetUpdatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetAvatarLocalFile() *string { if t == nil { - t = &UpdateContact_UpdateContact_Contact{} + t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} } - return t.UpdatedBy + return t.AvatarLocalFile } - -type UpdateContact_UpdateContact struct { - Contact UpdateContact_UpdateContact_Contact "json:\"contact\" graphql:\"contact\"" +func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetAvatarLocalFileID() *string { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} + } + return t.AvatarLocalFileID } - -func (t *UpdateContact_UpdateContact) GetContact() *UpdateContact_UpdateContact_Contact { +func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult_Users) GetSub() *string { if t == nil { - t = &UpdateContact_UpdateContact{} + t = &AdminSearch_AdminSearch_Nodes_UserSearchResult_Users{} } - return &t.Contact + return t.Sub } -type GetAllContactHistories_ContactHistories_Edges_Node struct { - Address *string "json:\"address,omitempty\" graphql:\"address\"" - Company *string "json:\"company,omitempty\" graphql:\"company\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Email *string "json:\"email,omitempty\" graphql:\"email\"" - FullName string "json:\"fullName\" graphql:\"fullName\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Title *string "json:\"title,omitempty\" graphql:\"title\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type AdminSearch_AdminSearch_Nodes_UserSearchResult struct { + Users []*AdminSearch_AdminSearch_Nodes_UserSearchResult_Users "json:\"users,omitempty\" graphql:\"users\"" } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetAddress() *string { +func (t *AdminSearch_AdminSearch_Nodes_UserSearchResult) GetUsers() []*AdminSearch_AdminSearch_Nodes_UserSearchResult_Users { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_UserSearchResult{} } - return t.Address + return t.Users } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetCompany() *string { - if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} - } - return t.Company + +type AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetCreatedAt() *time.Time { + +func (t *AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings) GetID() string { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings{} } - return t.CreatedAt + return t.ID } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetCreatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings) GetTags() []string { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings{} } - return t.CreatedBy + return t.Tags } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetEmail() *string { +func (t *AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings) GetDeletedBy() *string { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings{} } - return t.Email + return t.DeletedBy } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetFullName() string { +func (t *AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings) GetUserID() *string { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings{} } - return t.FullName + return t.UserID } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetHistoryTime() *time.Time { + +type AdminSearch_AdminSearch_Nodes_UserSettingSearchResult struct { + UserSettings []*AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings "json:\"userSettings,omitempty\" graphql:\"userSettings\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_UserSettingSearchResult) GetUserSettings() []*AdminSearch_AdminSearch_Nodes_UserSettingSearchResult_UserSettings { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_UserSettingSearchResult{} } - return &t.HistoryTime + return t.UserSettings } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetID() string { + +type AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Name string "json:\"name\" graphql:\"name\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" + LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" +} + +func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetID() string { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} } return t.ID } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetOperation() *history.OpType { +func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetTags() []string { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} } - return &t.Operation + return t.Tags } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetDeletedBy() *string { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} } - return t.OwnerID + return t.DeletedBy } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetPhoneNumber() *string { +func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetOwnerID() *string { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} } - return t.PhoneNumber + return t.OwnerID } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetRef() *string { +func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetName() string { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} } - return t.Ref + return t.Name } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetStatus() *enums.UserStatus { +func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetDestinationURL() string { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} } - return &t.Status + return t.DestinationURL } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetLastError() *string { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} } - return t.Tags + return t.LastError } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetTitle() *string { +func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks) GetLastResponse() *string { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks{} } - return t.Title + return t.LastResponse } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetUpdatedAt() *time.Time { - if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} - } - return t.UpdatedAt + +type AdminSearch_AdminSearch_Nodes_WebhookSearchResult struct { + Webhooks []*AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" } -func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetUpdatedBy() *string { + +func (t *AdminSearch_AdminSearch_Nodes_WebhookSearchResult) GetWebhooks() []*AdminSearch_AdminSearch_Nodes_WebhookSearchResult_Webhooks { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes_WebhookSearchResult{} } - return t.UpdatedBy + return t.Webhooks } -type GetAllContactHistories_ContactHistories_Edges struct { - Node *GetAllContactHistories_ContactHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type AdminSearch_AdminSearch_Nodes struct { + APITokenSearchResult AdminSearch_AdminSearch_Nodes_APITokenSearchResult "graphql:\"... on APITokenSearchResult\"" + ActionPlanSearchResult AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult "graphql:\"... on ActionPlanSearchResult\"" + ContactSearchResult AdminSearch_AdminSearch_Nodes_ContactSearchResult "graphql:\"... on ContactSearchResult\"" + ControlSearchResult AdminSearch_AdminSearch_Nodes_ControlSearchResult "graphql:\"... on ControlSearchResult\"" + ControlObjectiveSearchResult AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult "graphql:\"... on ControlObjectiveSearchResult\"" + DocumentDataSearchResult AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult "graphql:\"... on DocumentDataSearchResult\"" + EntitlementSearchResult AdminSearch_AdminSearch_Nodes_EntitlementSearchResult "graphql:\"... on EntitlementSearchResult\"" + EntitlementPlanSearchResult AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult "graphql:\"... on EntitlementPlanSearchResult\"" + EntitlementPlanFeatureSearchResult AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult "graphql:\"... on EntitlementPlanFeatureSearchResult\"" + EntitySearchResult AdminSearch_AdminSearch_Nodes_EntitySearchResult "graphql:\"... on EntitySearchResult\"" + EntityTypeSearchResult AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult "graphql:\"... on EntityTypeSearchResult\"" + EventSearchResult AdminSearch_AdminSearch_Nodes_EventSearchResult "graphql:\"... on EventSearchResult\"" + FeatureSearchResult AdminSearch_AdminSearch_Nodes_FeatureSearchResult "graphql:\"... on FeatureSearchResult\"" + FileSearchResult AdminSearch_AdminSearch_Nodes_FileSearchResult "graphql:\"... on FileSearchResult\"" + GroupSearchResult AdminSearch_AdminSearch_Nodes_GroupSearchResult "graphql:\"... on GroupSearchResult\"" + GroupSettingSearchResult AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult "graphql:\"... on GroupSettingSearchResult\"" + IntegrationSearchResult AdminSearch_AdminSearch_Nodes_IntegrationSearchResult "graphql:\"... on IntegrationSearchResult\"" + InternalPolicySearchResult AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult "graphql:\"... on InternalPolicySearchResult\"" + NarrativeSearchResult AdminSearch_AdminSearch_Nodes_NarrativeSearchResult "graphql:\"... on NarrativeSearchResult\"" + OauthProviderSearchResult AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult "graphql:\"... on OauthProviderSearchResult\"" + OhAuthTooTokenSearchResult AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult "graphql:\"... on OhAuthTooTokenSearchResult\"" + OrganizationSearchResult AdminSearch_AdminSearch_Nodes_OrganizationSearchResult "graphql:\"... on OrganizationSearchResult\"" + OrganizationSettingSearchResult AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult "graphql:\"... on OrganizationSettingSearchResult\"" + PersonalAccessTokenSearchResult AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult "graphql:\"... on PersonalAccessTokenSearchResult\"" + ProcedureSearchResult AdminSearch_AdminSearch_Nodes_ProcedureSearchResult "graphql:\"... on ProcedureSearchResult\"" + RiskSearchResult AdminSearch_AdminSearch_Nodes_RiskSearchResult "graphql:\"... on RiskSearchResult\"" + StandardSearchResult AdminSearch_AdminSearch_Nodes_StandardSearchResult "graphql:\"... on StandardSearchResult\"" + SubcontrolSearchResult AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult "graphql:\"... on SubcontrolSearchResult\"" + SubscriberSearchResult AdminSearch_AdminSearch_Nodes_SubscriberSearchResult "graphql:\"... on SubscriberSearchResult\"" + TFASettingSearchResult AdminSearch_AdminSearch_Nodes_TFASettingSearchResult "graphql:\"... on TFASettingSearchResult\"" + TemplateSearchResult AdminSearch_AdminSearch_Nodes_TemplateSearchResult "graphql:\"... on TemplateSearchResult\"" + UserSearchResult AdminSearch_AdminSearch_Nodes_UserSearchResult "graphql:\"... on UserSearchResult\"" + UserSettingSearchResult AdminSearch_AdminSearch_Nodes_UserSettingSearchResult "graphql:\"... on UserSettingSearchResult\"" + WebhookSearchResult AdminSearch_AdminSearch_Nodes_WebhookSearchResult "graphql:\"... on WebhookSearchResult\"" } -func (t *GetAllContactHistories_ContactHistories_Edges) GetNode() *GetAllContactHistories_ContactHistories_Edges_Node { +func (t *AdminSearch_AdminSearch_Nodes) GetAPITokenSearchResult() *AdminSearch_AdminSearch_Nodes_APITokenSearchResult { if t == nil { - t = &GetAllContactHistories_ContactHistories_Edges{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.Node + return &t.APITokenSearchResult } - -type GetAllContactHistories_ContactHistories struct { - Edges []*GetAllContactHistories_ContactHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +func (t *AdminSearch_AdminSearch_Nodes) GetActionPlanSearchResult() *AdminSearch_AdminSearch_Nodes_ActionPlanSearchResult { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes{} + } + return &t.ActionPlanSearchResult } - -func (t *GetAllContactHistories_ContactHistories) GetEdges() []*GetAllContactHistories_ContactHistories_Edges { +func (t *AdminSearch_AdminSearch_Nodes) GetContactSearchResult() *AdminSearch_AdminSearch_Nodes_ContactSearchResult { if t == nil { - t = &GetAllContactHistories_ContactHistories{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.Edges + return &t.ContactSearchResult } - -type GetContactHistories_ContactHistories_Edges_Node struct { - Address *string "json:\"address,omitempty\" graphql:\"address\"" - Company *string "json:\"company,omitempty\" graphql:\"company\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Email *string "json:\"email,omitempty\" graphql:\"email\"" - FullName string "json:\"fullName\" graphql:\"fullName\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Title *string "json:\"title,omitempty\" graphql:\"title\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +func (t *AdminSearch_AdminSearch_Nodes) GetControlSearchResult() *AdminSearch_AdminSearch_Nodes_ControlSearchResult { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes{} + } + return &t.ControlSearchResult } - -func (t *GetContactHistories_ContactHistories_Edges_Node) GetAddress() *string { +func (t *AdminSearch_AdminSearch_Nodes) GetControlObjectiveSearchResult() *AdminSearch_AdminSearch_Nodes_ControlObjectiveSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.Address + return &t.ControlObjectiveSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetCompany() *string { +func (t *AdminSearch_AdminSearch_Nodes) GetDocumentDataSearchResult() *AdminSearch_AdminSearch_Nodes_DocumentDataSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.Company + return &t.DocumentDataSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes) GetEntitlementSearchResult() *AdminSearch_AdminSearch_Nodes_EntitlementSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.CreatedAt + return &t.EntitlementSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetCreatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes) GetEntitlementPlanSearchResult() *AdminSearch_AdminSearch_Nodes_EntitlementPlanSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.CreatedBy + return &t.EntitlementPlanSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetEmail() *string { +func (t *AdminSearch_AdminSearch_Nodes) GetEntitlementPlanFeatureSearchResult() *AdminSearch_AdminSearch_Nodes_EntitlementPlanFeatureSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.Email + return &t.EntitlementPlanFeatureSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetFullName() string { +func (t *AdminSearch_AdminSearch_Nodes) GetEntitySearchResult() *AdminSearch_AdminSearch_Nodes_EntitySearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.FullName + return &t.EntitySearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes) GetEntityTypeSearchResult() *AdminSearch_AdminSearch_Nodes_EntityTypeSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return &t.HistoryTime + return &t.EntityTypeSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes) GetEventSearchResult() *AdminSearch_AdminSearch_Nodes_EventSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.ID + return &t.EventSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetOperation() *history.OpType { +func (t *AdminSearch_AdminSearch_Nodes) GetFeatureSearchResult() *AdminSearch_AdminSearch_Nodes_FeatureSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return &t.Operation + return &t.FeatureSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetOwnerID() *string { +func (t *AdminSearch_AdminSearch_Nodes) GetFileSearchResult() *AdminSearch_AdminSearch_Nodes_FileSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.OwnerID + return &t.FileSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetPhoneNumber() *string { +func (t *AdminSearch_AdminSearch_Nodes) GetGroupSearchResult() *AdminSearch_AdminSearch_Nodes_GroupSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.PhoneNumber + return &t.GroupSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetRef() *string { +func (t *AdminSearch_AdminSearch_Nodes) GetGroupSettingSearchResult() *AdminSearch_AdminSearch_Nodes_GroupSettingSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.Ref + return &t.GroupSettingSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetStatus() *enums.UserStatus { +func (t *AdminSearch_AdminSearch_Nodes) GetIntegrationSearchResult() *AdminSearch_AdminSearch_Nodes_IntegrationSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return &t.Status + return &t.IntegrationSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetTags() []string { +func (t *AdminSearch_AdminSearch_Nodes) GetInternalPolicySearchResult() *AdminSearch_AdminSearch_Nodes_InternalPolicySearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.Tags + return &t.InternalPolicySearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetTitle() *string { +func (t *AdminSearch_AdminSearch_Nodes) GetNarrativeSearchResult() *AdminSearch_AdminSearch_Nodes_NarrativeSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.Title + return &t.NarrativeSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes) GetOauthProviderSearchResult() *AdminSearch_AdminSearch_Nodes_OauthProviderSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.UpdatedAt + return &t.OauthProviderSearchResult } -func (t *GetContactHistories_ContactHistories_Edges_Node) GetUpdatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes) GetOhAuthTooTokenSearchResult() *AdminSearch_AdminSearch_Nodes_OhAuthTooTokenSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges_Node{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.UpdatedBy + return &t.OhAuthTooTokenSearchResult } - -type GetContactHistories_ContactHistories_Edges struct { - Node *GetContactHistories_ContactHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +func (t *AdminSearch_AdminSearch_Nodes) GetOrganizationSearchResult() *AdminSearch_AdminSearch_Nodes_OrganizationSearchResult { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes{} + } + return &t.OrganizationSearchResult } - -func (t *GetContactHistories_ContactHistories_Edges) GetNode() *GetContactHistories_ContactHistories_Edges_Node { +func (t *AdminSearch_AdminSearch_Nodes) GetOrganizationSettingSearchResult() *AdminSearch_AdminSearch_Nodes_OrganizationSettingSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories_Edges{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.Node + return &t.OrganizationSettingSearchResult } - -type GetContactHistories_ContactHistories struct { - Edges []*GetContactHistories_ContactHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +func (t *AdminSearch_AdminSearch_Nodes) GetPersonalAccessTokenSearchResult() *AdminSearch_AdminSearch_Nodes_PersonalAccessTokenSearchResult { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes{} + } + return &t.PersonalAccessTokenSearchResult } - -func (t *GetContactHistories_ContactHistories) GetEdges() []*GetContactHistories_ContactHistories_Edges { +func (t *AdminSearch_AdminSearch_Nodes) GetProcedureSearchResult() *AdminSearch_AdminSearch_Nodes_ProcedureSearchResult { if t == nil { - t = &GetContactHistories_ContactHistories{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.Edges + return &t.ProcedureSearchResult } - -type CreateDocumentData_CreateDocumentData_DocumentData struct { - ID string "json:\"id\" graphql:\"id\"" - TemplateID string "json:\"templateID\" graphql:\"templateID\"" - Data json.RawMessage "json:\"data\" graphql:\"data\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +func (t *AdminSearch_AdminSearch_Nodes) GetRiskSearchResult() *AdminSearch_AdminSearch_Nodes_RiskSearchResult { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes{} + } + return &t.RiskSearchResult } - -func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetID() string { +func (t *AdminSearch_AdminSearch_Nodes) GetStandardSearchResult() *AdminSearch_AdminSearch_Nodes_StandardSearchResult { if t == nil { - t = &CreateDocumentData_CreateDocumentData_DocumentData{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.ID + return &t.StandardSearchResult } -func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetTemplateID() string { +func (t *AdminSearch_AdminSearch_Nodes) GetSubcontrolSearchResult() *AdminSearch_AdminSearch_Nodes_SubcontrolSearchResult { if t == nil { - t = &CreateDocumentData_CreateDocumentData_DocumentData{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.TemplateID + return &t.SubcontrolSearchResult } -func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetData() *json.RawMessage { +func (t *AdminSearch_AdminSearch_Nodes) GetSubscriberSearchResult() *AdminSearch_AdminSearch_Nodes_SubscriberSearchResult { if t == nil { - t = &CreateDocumentData_CreateDocumentData_DocumentData{} + t = &AdminSearch_AdminSearch_Nodes{} } - return &t.Data + return &t.SubscriberSearchResult } -func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetCreatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes) GetTFASettingSearchResult() *AdminSearch_AdminSearch_Nodes_TFASettingSearchResult { if t == nil { - t = &CreateDocumentData_CreateDocumentData_DocumentData{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.CreatedAt + return &t.TFASettingSearchResult } -func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetCreatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes) GetTemplateSearchResult() *AdminSearch_AdminSearch_Nodes_TemplateSearchResult { if t == nil { - t = &CreateDocumentData_CreateDocumentData_DocumentData{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.CreatedBy + return &t.TemplateSearchResult } -func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetUpdatedAt() *time.Time { +func (t *AdminSearch_AdminSearch_Nodes) GetUserSearchResult() *AdminSearch_AdminSearch_Nodes_UserSearchResult { if t == nil { - t = &CreateDocumentData_CreateDocumentData_DocumentData{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.UpdatedAt + return &t.UserSearchResult } -func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetUpdatedBy() *string { +func (t *AdminSearch_AdminSearch_Nodes) GetUserSettingSearchResult() *AdminSearch_AdminSearch_Nodes_UserSettingSearchResult { if t == nil { - t = &CreateDocumentData_CreateDocumentData_DocumentData{} + t = &AdminSearch_AdminSearch_Nodes{} } - return t.UpdatedBy + return &t.UserSettingSearchResult +} +func (t *AdminSearch_AdminSearch_Nodes) GetWebhookSearchResult() *AdminSearch_AdminSearch_Nodes_WebhookSearchResult { + if t == nil { + t = &AdminSearch_AdminSearch_Nodes{} + } + return &t.WebhookSearchResult } -type CreateDocumentData_CreateDocumentData struct { - DocumentData CreateDocumentData_CreateDocumentData_DocumentData "json:\"documentData\" graphql:\"documentData\"" +type AdminSearch_AdminSearch struct { + Nodes []*AdminSearch_AdminSearch_Nodes "json:\"nodes\" graphql:\"nodes\"" } -func (t *CreateDocumentData_CreateDocumentData) GetDocumentData() *CreateDocumentData_CreateDocumentData_DocumentData { +func (t *AdminSearch_AdminSearch) GetNodes() []*AdminSearch_AdminSearch_Nodes { if t == nil { - t = &CreateDocumentData_CreateDocumentData{} + t = &AdminSearch_AdminSearch{} } - return &t.DocumentData + return t.Nodes } -type DeleteDocumentData_DeleteDocumentData struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type CreateAPIToken_CreateAPIToken_APIToken_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *DeleteDocumentData_DeleteDocumentData) GetDeletedID() string { +func (t *CreateAPIToken_CreateAPIToken_APIToken_Owner) GetID() string { if t == nil { - t = &DeleteDocumentData_DeleteDocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken_Owner{} } - return t.DeletedID + return t.ID } -type GetDocumentDataByID_DocumentData struct { - ID string "json:\"id\" graphql:\"id\"" - TemplateID string "json:\"templateID\" graphql:\"templateID\"" - Data json.RawMessage "json:\"data\" graphql:\"data\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateAPIToken_CreateAPIToken_APIToken struct { + ID string "json:\"id\" graphql:\"id\"" + Token string "json:\"token\" graphql:\"token\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Owner *CreateAPIToken_CreateAPIToken_APIToken_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Name string "json:\"name\" graphql:\"name\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" } -func (t *GetDocumentDataByID_DocumentData) GetID() string { +func (t *CreateAPIToken_CreateAPIToken_APIToken) GetID() string { if t == nil { - t = &GetDocumentDataByID_DocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken{} } return t.ID } -func (t *GetDocumentDataByID_DocumentData) GetTemplateID() string { +func (t *CreateAPIToken_CreateAPIToken_APIToken) GetToken() string { if t == nil { - t = &GetDocumentDataByID_DocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken{} } - return t.TemplateID + return t.Token } -func (t *GetDocumentDataByID_DocumentData) GetData() *json.RawMessage { +func (t *CreateAPIToken_CreateAPIToken_APIToken) GetScopes() []string { if t == nil { - t = &GetDocumentDataByID_DocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken{} } - return &t.Data + return t.Scopes } -func (t *GetDocumentDataByID_DocumentData) GetCreatedAt() *time.Time { +func (t *CreateAPIToken_CreateAPIToken_APIToken) GetOwner() *CreateAPIToken_CreateAPIToken_APIToken_Owner { if t == nil { - t = &GetDocumentDataByID_DocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken{} } - return t.CreatedAt + return t.Owner } -func (t *GetDocumentDataByID_DocumentData) GetCreatedBy() *string { +func (t *CreateAPIToken_CreateAPIToken_APIToken) GetCreatedAt() *time.Time { if t == nil { - t = &GetDocumentDataByID_DocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken{} } - return t.CreatedBy + return t.CreatedAt } -func (t *GetDocumentDataByID_DocumentData) GetUpdatedAt() *time.Time { +func (t *CreateAPIToken_CreateAPIToken_APIToken) GetUpdatedAt() *time.Time { if t == nil { - t = &GetDocumentDataByID_DocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken{} } return t.UpdatedAt } -func (t *GetDocumentDataByID_DocumentData) GetUpdatedBy() *string { +func (t *CreateAPIToken_CreateAPIToken_APIToken) GetCreatedBy() *string { if t == nil { - t = &GetDocumentDataByID_DocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken{} } - return t.UpdatedBy -} - -type UpdateDocumentData_UpdateDocumentData_DocumentData struct { - ID string "json:\"id\" graphql:\"id\"" - TemplateID string "json:\"templateID\" graphql:\"templateID\"" - Data json.RawMessage "json:\"data\" graphql:\"data\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.CreatedBy } - -func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetID() string { +func (t *CreateAPIToken_CreateAPIToken_APIToken) GetUpdatedBy() *string { if t == nil { - t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken{} } - return t.ID + return t.UpdatedBy } -func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetTemplateID() string { +func (t *CreateAPIToken_CreateAPIToken_APIToken) GetName() string { if t == nil { - t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken{} } - return t.TemplateID + return t.Name } -func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetData() *json.RawMessage { +func (t *CreateAPIToken_CreateAPIToken_APIToken) GetExpiresAt() *time.Time { if t == nil { - t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken{} } - return &t.Data + return t.ExpiresAt } -func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetCreatedAt() *time.Time { +func (t *CreateAPIToken_CreateAPIToken_APIToken) GetDescription() *string { if t == nil { - t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken{} } - return t.CreatedAt + return t.Description } -func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetCreatedBy() *string { +func (t *CreateAPIToken_CreateAPIToken_APIToken) GetLastUsedAt() *time.Time { if t == nil { - t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} + t = &CreateAPIToken_CreateAPIToken_APIToken{} } - return t.CreatedBy + return t.LastUsedAt } -func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetUpdatedAt() *time.Time { - if t == nil { - t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} - } - return t.UpdatedAt + +type CreateAPIToken_CreateAPIToken struct { + APIToken CreateAPIToken_CreateAPIToken_APIToken "json:\"apiToken\" graphql:\"apiToken\"" } -func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetUpdatedBy() *string { + +func (t *CreateAPIToken_CreateAPIToken) GetAPIToken() *CreateAPIToken_CreateAPIToken_APIToken { if t == nil { - t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} + t = &CreateAPIToken_CreateAPIToken{} } - return t.UpdatedBy + return &t.APIToken } -type UpdateDocumentData_UpdateDocumentData struct { - DocumentData UpdateDocumentData_UpdateDocumentData_DocumentData "json:\"documentData\" graphql:\"documentData\"" +type UpdateAPIToken_UpdateAPIToken_APIToken_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateDocumentData_UpdateDocumentData) GetDocumentData() *UpdateDocumentData_UpdateDocumentData_DocumentData { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken_Owner) GetID() string { if t == nil { - t = &UpdateDocumentData_UpdateDocumentData{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken_Owner{} } - return &t.DocumentData + return t.ID } -type GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Data json.RawMessage "json:\"data\" graphql:\"data\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TemplateID string "json:\"templateID\" graphql:\"templateID\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type UpdateAPIToken_UpdateAPIToken_APIToken struct { + ID string "json:\"id\" graphql:\"id\"" + Token string "json:\"token\" graphql:\"token\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Owner *UpdateAPIToken_UpdateAPIToken_APIToken_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Name string "json:\"name\" graphql:\"name\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetID() string { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken{} } - return t.CreatedAt + return t.ID } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetCreatedBy() *string { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetToken() string { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken{} } - return t.CreatedBy + return t.Token } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetData() *json.RawMessage { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetScopes() []string { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken{} } - return &t.Data + return t.Scopes } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetOwner() *UpdateAPIToken_UpdateAPIToken_APIToken_Owner { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken{} } - return &t.HistoryTime + return t.Owner } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetID() string { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken{} } - return t.ID + return t.CreatedAt } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetOperation() *history.OpType { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken{} } - return &t.Operation + return t.UpdatedAt } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetOwnerID() *string { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetCreatedBy() *string { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken{} } - return t.OwnerID + return t.CreatedBy } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetRef() *string { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetUpdatedBy() *string { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken{} } - return t.Ref + return t.UpdatedBy } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetTags() []string { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetName() string { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken{} } - return t.Tags + return t.Name } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetTemplateID() string { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetExpiresAt() *time.Time { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken{} } - return t.TemplateID + return t.ExpiresAt } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetDescription() *string { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken{} } - return t.UpdatedAt + return t.Description } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetUpdatedBy() *string { +func (t *UpdateAPIToken_UpdateAPIToken_APIToken) GetLastUsedAt() *time.Time { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &UpdateAPIToken_UpdateAPIToken_APIToken{} } - return t.UpdatedBy + return t.LastUsedAt } -type GetAllDocumentDataHistories_DocumentDataHistories_Edges struct { - Node *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type UpdateAPIToken_UpdateAPIToken struct { + APIToken UpdateAPIToken_UpdateAPIToken_APIToken "json:\"apiToken\" graphql:\"apiToken\"" } -func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges) GetNode() *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node { +func (t *UpdateAPIToken_UpdateAPIToken) GetAPIToken() *UpdateAPIToken_UpdateAPIToken_APIToken { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges{} + t = &UpdateAPIToken_UpdateAPIToken{} } - return t.Node + return &t.APIToken } -type GetAllDocumentDataHistories_DocumentDataHistories struct { - Edges []*GetAllDocumentDataHistories_DocumentDataHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllAPITokens_APITokens_Edges_Node_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllDocumentDataHistories_DocumentDataHistories) GetEdges() []*GetAllDocumentDataHistories_DocumentDataHistories_Edges { +func (t *GetAllAPITokens_APITokens_Edges_Node_Owner) GetID() string { if t == nil { - t = &GetAllDocumentDataHistories_DocumentDataHistories{} + t = &GetAllAPITokens_APITokens_Edges_Node_Owner{} } - return t.Edges + return t.ID } -type GetDocumentDataHistories_DocumentDataHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Data json.RawMessage "json:\"data\" graphql:\"data\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TemplateID string "json:\"templateID\" graphql:\"templateID\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetAllAPITokens_APITokens_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Token string "json:\"token\" graphql:\"token\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Owner *GetAllAPITokens_APITokens_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Name string "json:\"name\" graphql:\"name\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllAPITokens_APITokens_Edges_Node) GetID() string { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &GetAllAPITokens_APITokens_Edges_Node{} } - return t.CreatedAt + return t.ID } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetAllAPITokens_APITokens_Edges_Node) GetToken() string { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &GetAllAPITokens_APITokens_Edges_Node{} } - return t.CreatedBy + return t.Token } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetData() *json.RawMessage { +func (t *GetAllAPITokens_APITokens_Edges_Node) GetScopes() []string { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &GetAllAPITokens_APITokens_Edges_Node{} } - return &t.Data + return t.Scopes } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetAllAPITokens_APITokens_Edges_Node) GetOwner() *GetAllAPITokens_APITokens_Edges_Node_Owner { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &GetAllAPITokens_APITokens_Edges_Node{} } - return &t.HistoryTime + return t.Owner } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetID() string { +func (t *GetAllAPITokens_APITokens_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &GetAllAPITokens_APITokens_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetAllAPITokens_APITokens_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &GetAllAPITokens_APITokens_Edges_Node{} } - return &t.Operation + return t.UpdatedAt } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetOwnerID() *string { +func (t *GetAllAPITokens_APITokens_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &GetAllAPITokens_APITokens_Edges_Node{} } - return t.OwnerID + return t.CreatedBy } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetRef() *string { +func (t *GetAllAPITokens_APITokens_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &GetAllAPITokens_APITokens_Edges_Node{} } - return t.Ref + return t.UpdatedBy } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetTags() []string { +func (t *GetAllAPITokens_APITokens_Edges_Node) GetName() string { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &GetAllAPITokens_APITokens_Edges_Node{} } - return t.Tags + return t.Name } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetTemplateID() string { +func (t *GetAllAPITokens_APITokens_Edges_Node) GetExpiresAt() *time.Time { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &GetAllAPITokens_APITokens_Edges_Node{} } - return t.TemplateID + return t.ExpiresAt } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllAPITokens_APITokens_Edges_Node) GetDescription() *string { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &GetAllAPITokens_APITokens_Edges_Node{} } - return t.UpdatedAt + return t.Description } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllAPITokens_APITokens_Edges_Node) GetLastUsedAt() *time.Time { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} + t = &GetAllAPITokens_APITokens_Edges_Node{} } - return t.UpdatedBy + return t.LastUsedAt } -type GetDocumentDataHistories_DocumentDataHistories_Edges struct { - Node *GetDocumentDataHistories_DocumentDataHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllAPITokens_APITokens_Edges struct { + Node *GetAllAPITokens_APITokens_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetDocumentDataHistories_DocumentDataHistories_Edges) GetNode() *GetDocumentDataHistories_DocumentDataHistories_Edges_Node { +func (t *GetAllAPITokens_APITokens_Edges) GetNode() *GetAllAPITokens_APITokens_Edges_Node { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories_Edges{} + t = &GetAllAPITokens_APITokens_Edges{} } return t.Node } -type GetDocumentDataHistories_DocumentDataHistories struct { - Edges []*GetDocumentDataHistories_DocumentDataHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllAPITokens_APITokens struct { + Edges []*GetAllAPITokens_APITokens_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetDocumentDataHistories_DocumentDataHistories) GetEdges() []*GetDocumentDataHistories_DocumentDataHistories_Edges { +func (t *GetAllAPITokens_APITokens) GetEdges() []*GetAllAPITokens_APITokens_Edges { if t == nil { - t = &GetDocumentDataHistories_DocumentDataHistories{} + t = &GetAllAPITokens_APITokens{} } return t.Edges } -type CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetAPITokenByID_APIToken_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan) GetID() string { +func (t *GetAPITokenByID_APIToken_Owner) GetID() string { if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan{} + t = &GetAPITokenByID_APIToken_Owner{} } return t.ID } -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan) GetName() string { - if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan{} - } - return t.Name -} -type CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetAPITokenByID_APIToken struct { + ID string "json:\"id\" graphql:\"id\"" + Token string "json:\"token\" graphql:\"token\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Owner *GetAPITokenByID_APIToken_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Name string "json:\"name\" graphql:\"name\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" } -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization) GetID() string { +func (t *GetAPITokenByID_APIToken) GetID() string { if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization{} + t = &GetAPITokenByID_APIToken{} } return t.ID } -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization) GetName() string { +func (t *GetAPITokenByID_APIToken) GetToken() string { if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization{} + t = &GetAPITokenByID_APIToken{} } - return t.Name + return t.Token } - -type CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements struct { - ID string "json:\"id\" graphql:\"id\"" - Plan CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan "json:\"plan\" graphql:\"plan\"" - Expires bool "json:\"expires\" graphql:\"expires\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" - ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" - ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" - Organization CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization "json:\"organization\" graphql:\"organization\"" +func (t *GetAPITokenByID_APIToken) GetScopes() []string { + if t == nil { + t = &GetAPITokenByID_APIToken{} + } + return t.Scopes } - -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetID() string { +func (t *GetAPITokenByID_APIToken) GetOwner() *GetAPITokenByID_APIToken_Owner { if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} + t = &GetAPITokenByID_APIToken{} } - return t.ID + return t.Owner } -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetPlan() *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan { +func (t *GetAPITokenByID_APIToken) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} + t = &GetAPITokenByID_APIToken{} } - return &t.Plan + return t.CreatedAt } -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetExpires() bool { +func (t *GetAPITokenByID_APIToken) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} + t = &GetAPITokenByID_APIToken{} } - return t.Expires + return t.UpdatedAt } -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetExpiresAt() *time.Time { +func (t *GetAPITokenByID_APIToken) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} + t = &GetAPITokenByID_APIToken{} } - return t.ExpiresAt + return t.CreatedBy } -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetCancelled() bool { +func (t *GetAPITokenByID_APIToken) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} + t = &GetAPITokenByID_APIToken{} } - return t.Cancelled + return t.UpdatedBy } -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetExternalCustomerID() *string { +func (t *GetAPITokenByID_APIToken) GetName() string { if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} + t = &GetAPITokenByID_APIToken{} } - return t.ExternalCustomerID + return t.Name } -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetExternalSubscriptionID() *string { +func (t *GetAPITokenByID_APIToken) GetExpiresAt() *time.Time { if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} + t = &GetAPITokenByID_APIToken{} } - return t.ExternalSubscriptionID + return t.ExpiresAt } -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetOrganization() *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization { +func (t *GetAPITokenByID_APIToken) GetDescription() *string { if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} + t = &GetAPITokenByID_APIToken{} } - return &t.Organization + return t.Description +} +func (t *GetAPITokenByID_APIToken) GetLastUsedAt() *time.Time { + if t == nil { + t = &GetAPITokenByID_APIToken{} + } + return t.LastUsedAt } -type CreateBulkCSVEntitlement_CreateBulkCSVEntitlement struct { - Entitlements []*CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements "json:\"entitlements,omitempty\" graphql:\"entitlements\"" +type DeleteAPIToken_DeleteAPIToken struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement) GetEntitlements() []*CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements { +func (t *DeleteAPIToken_DeleteAPIToken) GetDeletedID() string { if t == nil { - t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement{} + t = &DeleteAPIToken_DeleteAPIToken{} } - return t.Entitlements + return t.DeletedID } -type CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type CreateBulkContact_CreateBulkContact_Contacts struct { + Address *string "json:\"address,omitempty\" graphql:\"address\"" + Company *string "json:\"company,omitempty\" graphql:\"company\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Email *string "json:\"email,omitempty\" graphql:\"email\"" + FullName string "json:\"fullName\" graphql:\"fullName\"" + ID string "json:\"id\" graphql:\"id\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Title *string "json:\"title,omitempty\" graphql:\"title\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan) GetID() string { +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetAddress() *string { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan{} + t = &CreateBulkContact_CreateBulkContact_Contacts{} } - return t.ID + return t.Address } -func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan) GetName() string { +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetCompany() *string { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan{} + t = &CreateBulkContact_CreateBulkContact_Contacts{} } - return t.Name + return t.Company } - -type CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkContact_CreateBulkContact_Contacts{} + } + return t.CreatedAt } - -func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization) GetID() string { +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetCreatedBy() *string { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization{} + t = &CreateBulkContact_CreateBulkContact_Contacts{} } - return t.ID + return t.CreatedBy } -func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization) GetName() string { +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetEmail() *string { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization{} + t = &CreateBulkContact_CreateBulkContact_Contacts{} } - return t.Name + return t.Email } - -type CreateBulkEntitlement_CreateBulkEntitlement_Entitlements struct { - ID string "json:\"id\" graphql:\"id\"" - Plan CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan "json:\"plan\" graphql:\"plan\"" - Organization CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization "json:\"organization\" graphql:\"organization\"" - Expires bool "json:\"expires\" graphql:\"expires\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" - ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" - ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetFullName() string { + if t == nil { + t = &CreateBulkContact_CreateBulkContact_Contacts{} + } + return t.FullName } - -func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetID() string { +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetID() string { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} + t = &CreateBulkContact_CreateBulkContact_Contacts{} } return t.ID } -func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetPlan() *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan { +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetOwnerID() *string { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} + t = &CreateBulkContact_CreateBulkContact_Contacts{} } - return &t.Plan + return t.OwnerID } -func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetOrganization() *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization { +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetPhoneNumber() *string { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} + t = &CreateBulkContact_CreateBulkContact_Contacts{} } - return &t.Organization + return t.PhoneNumber } -func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetExpires() bool { +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetStatus() *enums.UserStatus { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} + t = &CreateBulkContact_CreateBulkContact_Contacts{} } - return t.Expires + return &t.Status } -func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetExpiresAt() *time.Time { +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetTags() []string { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} + t = &CreateBulkContact_CreateBulkContact_Contacts{} } - return t.ExpiresAt + return t.Tags } -func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetCancelled() bool { +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetTitle() *string { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} + t = &CreateBulkContact_CreateBulkContact_Contacts{} } - return t.Cancelled + return t.Title } -func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetExternalCustomerID() *string { +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} + t = &CreateBulkContact_CreateBulkContact_Contacts{} } - return t.ExternalCustomerID + return t.UpdatedAt } -func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetExternalSubscriptionID() *string { +func (t *CreateBulkContact_CreateBulkContact_Contacts) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} + t = &CreateBulkContact_CreateBulkContact_Contacts{} } - return t.ExternalSubscriptionID + return t.UpdatedBy } -type CreateBulkEntitlement_CreateBulkEntitlement struct { - Entitlements []*CreateBulkEntitlement_CreateBulkEntitlement_Entitlements "json:\"entitlements,omitempty\" graphql:\"entitlements\"" +type CreateBulkContact_CreateBulkContact struct { + Contacts []*CreateBulkContact_CreateBulkContact_Contacts "json:\"contacts,omitempty\" graphql:\"contacts\"" } -func (t *CreateBulkEntitlement_CreateBulkEntitlement) GetEntitlements() []*CreateBulkEntitlement_CreateBulkEntitlement_Entitlements { +func (t *CreateBulkContact_CreateBulkContact) GetContacts() []*CreateBulkContact_CreateBulkContact_Contacts { if t == nil { - t = &CreateBulkEntitlement_CreateBulkEntitlement{} + t = &CreateBulkContact_CreateBulkContact{} } - return t.Entitlements -} - -type CreateEntitlement_CreateEntitlement_Entitlement_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.Contacts } -func (t *CreateEntitlement_CreateEntitlement_Entitlement_Plan) GetID() string { - if t == nil { - t = &CreateEntitlement_CreateEntitlement_Entitlement_Plan{} - } - return t.ID -} -func (t *CreateEntitlement_CreateEntitlement_Entitlement_Plan) GetName() string { - if t == nil { - t = &CreateEntitlement_CreateEntitlement_Entitlement_Plan{} - } - return t.Name -} - -type CreateEntitlement_CreateEntitlement_Entitlement_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type CreateBulkCSVContact_CreateBulkCSVContact_Contacts struct { + Address *string "json:\"address,omitempty\" graphql:\"address\"" + Company *string "json:\"company,omitempty\" graphql:\"company\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Email *string "json:\"email,omitempty\" graphql:\"email\"" + FullName string "json:\"fullName\" graphql:\"fullName\"" + ID string "json:\"id\" graphql:\"id\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Title *string "json:\"title,omitempty\" graphql:\"title\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateEntitlement_CreateEntitlement_Entitlement_Organization) GetID() string { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetAddress() *string { if t == nil { - t = &CreateEntitlement_CreateEntitlement_Entitlement_Organization{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return t.ID + return t.Address } -func (t *CreateEntitlement_CreateEntitlement_Entitlement_Organization) GetName() string { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetCompany() *string { if t == nil { - t = &CreateEntitlement_CreateEntitlement_Entitlement_Organization{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return t.Name -} - -type CreateEntitlement_CreateEntitlement_Entitlement struct { - ID string "json:\"id\" graphql:\"id\"" - Plan CreateEntitlement_CreateEntitlement_Entitlement_Plan "json:\"plan\" graphql:\"plan\"" - Organization CreateEntitlement_CreateEntitlement_Entitlement_Organization "json:\"organization\" graphql:\"organization\"" - Expires bool "json:\"expires\" graphql:\"expires\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" - ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" - ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" + return t.Company } - -func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetID() string { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetCreatedAt() *time.Time { if t == nil { - t = &CreateEntitlement_CreateEntitlement_Entitlement{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return t.ID + return t.CreatedAt } -func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetPlan() *CreateEntitlement_CreateEntitlement_Entitlement_Plan { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetCreatedBy() *string { if t == nil { - t = &CreateEntitlement_CreateEntitlement_Entitlement{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return &t.Plan + return t.CreatedBy } -func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetOrganization() *CreateEntitlement_CreateEntitlement_Entitlement_Organization { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetEmail() *string { if t == nil { - t = &CreateEntitlement_CreateEntitlement_Entitlement{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return &t.Organization + return t.Email } -func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetExpires() bool { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetFullName() string { if t == nil { - t = &CreateEntitlement_CreateEntitlement_Entitlement{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return t.Expires + return t.FullName } -func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetExpiresAt() *time.Time { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetID() string { if t == nil { - t = &CreateEntitlement_CreateEntitlement_Entitlement{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return t.ExpiresAt + return t.ID } -func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetCancelled() bool { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetOwnerID() *string { if t == nil { - t = &CreateEntitlement_CreateEntitlement_Entitlement{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return t.Cancelled + return t.OwnerID } -func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetExternalCustomerID() *string { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetPhoneNumber() *string { if t == nil { - t = &CreateEntitlement_CreateEntitlement_Entitlement{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return t.ExternalCustomerID + return t.PhoneNumber } -func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetExternalSubscriptionID() *string { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetStatus() *enums.UserStatus { if t == nil { - t = &CreateEntitlement_CreateEntitlement_Entitlement{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return t.ExternalSubscriptionID -} - -type CreateEntitlement_CreateEntitlement struct { - Entitlement CreateEntitlement_CreateEntitlement_Entitlement "json:\"entitlement\" graphql:\"entitlement\"" + return &t.Status } - -func (t *CreateEntitlement_CreateEntitlement) GetEntitlement() *CreateEntitlement_CreateEntitlement_Entitlement { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetTags() []string { if t == nil { - t = &CreateEntitlement_CreateEntitlement{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return &t.Entitlement -} - -type DeleteEntitlement_DeleteEntitlement struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" + return t.Tags } - -func (t *DeleteEntitlement_DeleteEntitlement) GetDeletedID() string { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetTitle() *string { if t == nil { - t = &DeleteEntitlement_DeleteEntitlement{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return t.DeletedID -} - -type GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.Title } - -func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature) GetID() string { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return t.ID + return t.UpdatedAt } -func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature) GetName() string { +func (t *CreateBulkCSVContact_CreateBulkCSVContact_Contacts) GetUpdatedBy() *string { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature{} + t = &CreateBulkCSVContact_CreateBulkCSVContact_Contacts{} } - return t.Name + return t.UpdatedBy } -type GetAllEntitlements_Entitlements_Edges_Node_Plan_Features struct { - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Feature GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature "json:\"feature\" graphql:\"feature\"" +type CreateBulkCSVContact_CreateBulkCSVContact struct { + Contacts []*CreateBulkCSVContact_CreateBulkCSVContact_Contacts "json:\"contacts,omitempty\" graphql:\"contacts\"" } -func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan_Features) GetMetadata() map[string]interface{} { - if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node_Plan_Features{} - } - return t.Metadata -} -func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan_Features) GetFeature() *GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature { +func (t *CreateBulkCSVContact_CreateBulkCSVContact) GetContacts() []*CreateBulkCSVContact_CreateBulkCSVContact_Contacts { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node_Plan_Features{} + t = &CreateBulkCSVContact_CreateBulkCSVContact{} } - return &t.Feature + return t.Contacts } -type GetAllEntitlements_Entitlements_Edges_Node_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Features []*GetAllEntitlements_Entitlements_Edges_Node_Plan_Features "json:\"features,omitempty\" graphql:\"features\"" +type CreateContact_CreateContact_Contact struct { + Address *string "json:\"address,omitempty\" graphql:\"address\"" + Company *string "json:\"company,omitempty\" graphql:\"company\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Email *string "json:\"email,omitempty\" graphql:\"email\"" + FullName string "json:\"fullName\" graphql:\"fullName\"" + ID string "json:\"id\" graphql:\"id\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Title *string "json:\"title,omitempty\" graphql:\"title\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan) GetID() string { +func (t *CreateContact_CreateContact_Contact) GetAddress() *string { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node_Plan{} + t = &CreateContact_CreateContact_Contact{} } - return t.ID + return t.Address } -func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan) GetName() string { +func (t *CreateContact_CreateContact_Contact) GetCompany() *string { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node_Plan{} + t = &CreateContact_CreateContact_Contact{} } - return t.Name + return t.Company } -func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan) GetFeatures() []*GetAllEntitlements_Entitlements_Edges_Node_Plan_Features { +func (t *CreateContact_CreateContact_Contact) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node_Plan{} + t = &CreateContact_CreateContact_Contact{} } - return t.Features -} - -type GetAllEntitlements_Entitlements_Edges_Node_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.CreatedAt } - -func (t *GetAllEntitlements_Entitlements_Edges_Node_Organization) GetID() string { +func (t *CreateContact_CreateContact_Contact) GetCreatedBy() *string { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node_Organization{} + t = &CreateContact_CreateContact_Contact{} } - return t.ID + return t.CreatedBy } -func (t *GetAllEntitlements_Entitlements_Edges_Node_Organization) GetName() string { +func (t *CreateContact_CreateContact_Contact) GetEmail() *string { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node_Organization{} + t = &CreateContact_CreateContact_Contact{} } - return t.Name -} - -type GetAllEntitlements_Entitlements_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Plan GetAllEntitlements_Entitlements_Edges_Node_Plan "json:\"plan\" graphql:\"plan\"" - Organization GetAllEntitlements_Entitlements_Edges_Node_Organization "json:\"organization\" graphql:\"organization\"" - Expires bool "json:\"expires\" graphql:\"expires\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" - ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" - ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" + return t.Email } - -func (t *GetAllEntitlements_Entitlements_Edges_Node) GetID() string { +func (t *CreateContact_CreateContact_Contact) GetFullName() string { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node{} + t = &CreateContact_CreateContact_Contact{} } - return t.ID + return t.FullName } -func (t *GetAllEntitlements_Entitlements_Edges_Node) GetPlan() *GetAllEntitlements_Entitlements_Edges_Node_Plan { +func (t *CreateContact_CreateContact_Contact) GetID() string { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node{} + t = &CreateContact_CreateContact_Contact{} } - return &t.Plan + return t.ID } -func (t *GetAllEntitlements_Entitlements_Edges_Node) GetOrganization() *GetAllEntitlements_Entitlements_Edges_Node_Organization { +func (t *CreateContact_CreateContact_Contact) GetOwnerID() *string { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node{} + t = &CreateContact_CreateContact_Contact{} } - return &t.Organization + return t.OwnerID } -func (t *GetAllEntitlements_Entitlements_Edges_Node) GetExpires() bool { +func (t *CreateContact_CreateContact_Contact) GetPhoneNumber() *string { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node{} + t = &CreateContact_CreateContact_Contact{} } - return t.Expires + return t.PhoneNumber } -func (t *GetAllEntitlements_Entitlements_Edges_Node) GetExpiresAt() *time.Time { +func (t *CreateContact_CreateContact_Contact) GetStatus() *enums.UserStatus { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node{} + t = &CreateContact_CreateContact_Contact{} } - return t.ExpiresAt + return &t.Status } -func (t *GetAllEntitlements_Entitlements_Edges_Node) GetCancelled() bool { +func (t *CreateContact_CreateContact_Contact) GetTags() []string { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node{} + t = &CreateContact_CreateContact_Contact{} } - return t.Cancelled + return t.Tags } -func (t *GetAllEntitlements_Entitlements_Edges_Node) GetExternalCustomerID() *string { +func (t *CreateContact_CreateContact_Contact) GetTitle() *string { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node{} + t = &CreateContact_CreateContact_Contact{} } - return t.ExternalCustomerID + return t.Title } -func (t *GetAllEntitlements_Entitlements_Edges_Node) GetExternalSubscriptionID() *string { +func (t *CreateContact_CreateContact_Contact) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges_Node{} + t = &CreateContact_CreateContact_Contact{} } - return t.ExternalSubscriptionID -} - -type GetAllEntitlements_Entitlements_Edges struct { - Node *GetAllEntitlements_Entitlements_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return t.UpdatedAt } - -func (t *GetAllEntitlements_Entitlements_Edges) GetNode() *GetAllEntitlements_Entitlements_Edges_Node { +func (t *CreateContact_CreateContact_Contact) GetUpdatedBy() *string { if t == nil { - t = &GetAllEntitlements_Entitlements_Edges{} + t = &CreateContact_CreateContact_Contact{} } - return t.Node + return t.UpdatedBy } -type GetAllEntitlements_Entitlements struct { - Edges []*GetAllEntitlements_Entitlements_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateContact_CreateContact struct { + Contact CreateContact_CreateContact_Contact "json:\"contact\" graphql:\"contact\"" } -func (t *GetAllEntitlements_Entitlements) GetEdges() []*GetAllEntitlements_Entitlements_Edges { +func (t *CreateContact_CreateContact) GetContact() *CreateContact_CreateContact_Contact { if t == nil { - t = &GetAllEntitlements_Entitlements{} + t = &CreateContact_CreateContact{} } - return t.Edges + return &t.Contact } -type GetEntitlementByID_Entitlement_Plan_Features_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type DeleteContact_DeleteContact struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetEntitlementByID_Entitlement_Plan_Features_Feature) GetID() string { - if t == nil { - t = &GetEntitlementByID_Entitlement_Plan_Features_Feature{} - } - return t.ID -} -func (t *GetEntitlementByID_Entitlement_Plan_Features_Feature) GetName() string { +func (t *DeleteContact_DeleteContact) GetDeletedID() string { if t == nil { - t = &GetEntitlementByID_Entitlement_Plan_Features_Feature{} + t = &DeleteContact_DeleteContact{} } - return t.Name + return t.DeletedID } -type GetEntitlementByID_Entitlement_Plan_Features struct { - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Feature GetEntitlementByID_Entitlement_Plan_Features_Feature "json:\"feature\" graphql:\"feature\"" +type GetAllContacts_Contacts_Edges_Node struct { + Address *string "json:\"address,omitempty\" graphql:\"address\"" + Company *string "json:\"company,omitempty\" graphql:\"company\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Email *string "json:\"email,omitempty\" graphql:\"email\"" + FullName string "json:\"fullName\" graphql:\"fullName\"" + ID string "json:\"id\" graphql:\"id\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Title *string "json:\"title,omitempty\" graphql:\"title\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetEntitlementByID_Entitlement_Plan_Features) GetMetadata() map[string]interface{} { - if t == nil { - t = &GetEntitlementByID_Entitlement_Plan_Features{} - } - return t.Metadata -} -func (t *GetEntitlementByID_Entitlement_Plan_Features) GetFeature() *GetEntitlementByID_Entitlement_Plan_Features_Feature { +func (t *GetAllContacts_Contacts_Edges_Node) GetAddress() *string { if t == nil { - t = &GetEntitlementByID_Entitlement_Plan_Features{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return &t.Feature -} - -type GetEntitlementByID_Entitlement_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Features []*GetEntitlementByID_Entitlement_Plan_Features "json:\"features,omitempty\" graphql:\"features\"" + return t.Address } - -func (t *GetEntitlementByID_Entitlement_Plan) GetID() string { +func (t *GetAllContacts_Contacts_Edges_Node) GetCompany() *string { if t == nil { - t = &GetEntitlementByID_Entitlement_Plan{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return t.ID + return t.Company } -func (t *GetEntitlementByID_Entitlement_Plan) GetName() string { +func (t *GetAllContacts_Contacts_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetEntitlementByID_Entitlement_Plan{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return t.Name + return t.CreatedAt } -func (t *GetEntitlementByID_Entitlement_Plan) GetFeatures() []*GetEntitlementByID_Entitlement_Plan_Features { +func (t *GetAllContacts_Contacts_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetEntitlementByID_Entitlement_Plan{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return t.Features -} - -type GetEntitlementByID_Entitlement_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.CreatedBy } - -func (t *GetEntitlementByID_Entitlement_Organization) GetID() string { +func (t *GetAllContacts_Contacts_Edges_Node) GetEmail() *string { if t == nil { - t = &GetEntitlementByID_Entitlement_Organization{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return t.ID + return t.Email } -func (t *GetEntitlementByID_Entitlement_Organization) GetName() string { +func (t *GetAllContacts_Contacts_Edges_Node) GetFullName() string { if t == nil { - t = &GetEntitlementByID_Entitlement_Organization{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return t.Name -} - -type GetEntitlementByID_Entitlement struct { - ID string "json:\"id\" graphql:\"id\"" - Plan GetEntitlementByID_Entitlement_Plan "json:\"plan\" graphql:\"plan\"" - Organization GetEntitlementByID_Entitlement_Organization "json:\"organization\" graphql:\"organization\"" - Expires bool "json:\"expires\" graphql:\"expires\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" - ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" - ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" + return t.FullName } - -func (t *GetEntitlementByID_Entitlement) GetID() string { +func (t *GetAllContacts_Contacts_Edges_Node) GetID() string { if t == nil { - t = &GetEntitlementByID_Entitlement{} + t = &GetAllContacts_Contacts_Edges_Node{} } return t.ID } -func (t *GetEntitlementByID_Entitlement) GetPlan() *GetEntitlementByID_Entitlement_Plan { +func (t *GetAllContacts_Contacts_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetEntitlementByID_Entitlement{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return &t.Plan + return t.OwnerID } -func (t *GetEntitlementByID_Entitlement) GetOrganization() *GetEntitlementByID_Entitlement_Organization { +func (t *GetAllContacts_Contacts_Edges_Node) GetPhoneNumber() *string { if t == nil { - t = &GetEntitlementByID_Entitlement{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return &t.Organization + return t.PhoneNumber } -func (t *GetEntitlementByID_Entitlement) GetExpires() bool { +func (t *GetAllContacts_Contacts_Edges_Node) GetStatus() *enums.UserStatus { if t == nil { - t = &GetEntitlementByID_Entitlement{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return t.Expires + return &t.Status } -func (t *GetEntitlementByID_Entitlement) GetExpiresAt() *time.Time { +func (t *GetAllContacts_Contacts_Edges_Node) GetTags() []string { if t == nil { - t = &GetEntitlementByID_Entitlement{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return t.ExpiresAt + return t.Tags } -func (t *GetEntitlementByID_Entitlement) GetCancelled() bool { +func (t *GetAllContacts_Contacts_Edges_Node) GetTitle() *string { if t == nil { - t = &GetEntitlementByID_Entitlement{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return t.Cancelled + return t.Title } -func (t *GetEntitlementByID_Entitlement) GetExternalCustomerID() *string { +func (t *GetAllContacts_Contacts_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetEntitlementByID_Entitlement{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return t.ExternalCustomerID + return t.UpdatedAt } -func (t *GetEntitlementByID_Entitlement) GetExternalSubscriptionID() *string { +func (t *GetAllContacts_Contacts_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetEntitlementByID_Entitlement{} + t = &GetAllContacts_Contacts_Edges_Node{} } - return t.ExternalSubscriptionID + return t.UpdatedBy } -type GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetAllContacts_Contacts_Edges struct { + Node *GetAllContacts_Contacts_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature) GetID() string { - if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature{} - } - return t.ID -} -func (t *GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature) GetName() string { +func (t *GetAllContacts_Contacts_Edges) GetNode() *GetAllContacts_Contacts_Edges_Node { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature{} + t = &GetAllContacts_Contacts_Edges{} } - return t.Name + return t.Node } -type GetEntitlements_Entitlements_Edges_Node_Plan_Features struct { - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Feature GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature "json:\"feature\" graphql:\"feature\"" +type GetAllContacts_Contacts struct { + Edges []*GetAllContacts_Contacts_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetEntitlements_Entitlements_Edges_Node_Plan_Features) GetMetadata() map[string]interface{} { - if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node_Plan_Features{} - } - return t.Metadata -} -func (t *GetEntitlements_Entitlements_Edges_Node_Plan_Features) GetFeature() *GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature { +func (t *GetAllContacts_Contacts) GetEdges() []*GetAllContacts_Contacts_Edges { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node_Plan_Features{} + t = &GetAllContacts_Contacts{} } - return &t.Feature + return t.Edges } -type GetEntitlements_Entitlements_Edges_Node_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Features []*GetEntitlements_Entitlements_Edges_Node_Plan_Features "json:\"features,omitempty\" graphql:\"features\"" +type GetContactByID_Contact struct { + Address *string "json:\"address,omitempty\" graphql:\"address\"" + Company *string "json:\"company,omitempty\" graphql:\"company\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Email *string "json:\"email,omitempty\" graphql:\"email\"" + FullName string "json:\"fullName\" graphql:\"fullName\"" + ID string "json:\"id\" graphql:\"id\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Title *string "json:\"title,omitempty\" graphql:\"title\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetEntitlements_Entitlements_Edges_Node_Plan) GetID() string { +func (t *GetContactByID_Contact) GetAddress() *string { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node_Plan{} + t = &GetContactByID_Contact{} } - return t.ID + return t.Address } -func (t *GetEntitlements_Entitlements_Edges_Node_Plan) GetName() string { +func (t *GetContactByID_Contact) GetCompany() *string { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node_Plan{} + t = &GetContactByID_Contact{} } - return t.Name + return t.Company } -func (t *GetEntitlements_Entitlements_Edges_Node_Plan) GetFeatures() []*GetEntitlements_Entitlements_Edges_Node_Plan_Features { +func (t *GetContactByID_Contact) GetCreatedAt() *time.Time { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node_Plan{} + t = &GetContactByID_Contact{} } - return t.Features -} - -type GetEntitlements_Entitlements_Edges_Node_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.CreatedAt } - -func (t *GetEntitlements_Entitlements_Edges_Node_Organization) GetID() string { +func (t *GetContactByID_Contact) GetCreatedBy() *string { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node_Organization{} + t = &GetContactByID_Contact{} } - return t.ID + return t.CreatedBy } -func (t *GetEntitlements_Entitlements_Edges_Node_Organization) GetName() string { +func (t *GetContactByID_Contact) GetEmail() *string { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node_Organization{} + t = &GetContactByID_Contact{} } - return t.Name + return t.Email } - -type GetEntitlements_Entitlements_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Plan GetEntitlements_Entitlements_Edges_Node_Plan "json:\"plan\" graphql:\"plan\"" - Organization GetEntitlements_Entitlements_Edges_Node_Organization "json:\"organization\" graphql:\"organization\"" - Expires bool "json:\"expires\" graphql:\"expires\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" - ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" - ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" +func (t *GetContactByID_Contact) GetFullName() string { + if t == nil { + t = &GetContactByID_Contact{} + } + return t.FullName } - -func (t *GetEntitlements_Entitlements_Edges_Node) GetID() string { +func (t *GetContactByID_Contact) GetID() string { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node{} + t = &GetContactByID_Contact{} } return t.ID } -func (t *GetEntitlements_Entitlements_Edges_Node) GetPlan() *GetEntitlements_Entitlements_Edges_Node_Plan { +func (t *GetContactByID_Contact) GetOwnerID() *string { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node{} + t = &GetContactByID_Contact{} } - return &t.Plan + return t.OwnerID } -func (t *GetEntitlements_Entitlements_Edges_Node) GetOrganization() *GetEntitlements_Entitlements_Edges_Node_Organization { +func (t *GetContactByID_Contact) GetPhoneNumber() *string { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node{} + t = &GetContactByID_Contact{} } - return &t.Organization + return t.PhoneNumber } -func (t *GetEntitlements_Entitlements_Edges_Node) GetExpires() bool { +func (t *GetContactByID_Contact) GetStatus() *enums.UserStatus { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node{} + t = &GetContactByID_Contact{} } - return t.Expires + return &t.Status } -func (t *GetEntitlements_Entitlements_Edges_Node) GetExpiresAt() *time.Time { +func (t *GetContactByID_Contact) GetTags() []string { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node{} + t = &GetContactByID_Contact{} } - return t.ExpiresAt + return t.Tags } -func (t *GetEntitlements_Entitlements_Edges_Node) GetCancelled() bool { +func (t *GetContactByID_Contact) GetTitle() *string { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node{} + t = &GetContactByID_Contact{} } - return t.Cancelled + return t.Title } -func (t *GetEntitlements_Entitlements_Edges_Node) GetExternalCustomerID() *string { +func (t *GetContactByID_Contact) GetUpdatedAt() *time.Time { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node{} + t = &GetContactByID_Contact{} } - return t.ExternalCustomerID + return t.UpdatedAt } -func (t *GetEntitlements_Entitlements_Edges_Node) GetExternalSubscriptionID() *string { +func (t *GetContactByID_Contact) GetUpdatedBy() *string { if t == nil { - t = &GetEntitlements_Entitlements_Edges_Node{} + t = &GetContactByID_Contact{} } - return t.ExternalSubscriptionID + return t.UpdatedBy } -type GetEntitlements_Entitlements_Edges struct { - Node *GetEntitlements_Entitlements_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetContacts_Contacts_Edges_Node struct { + Address *string "json:\"address,omitempty\" graphql:\"address\"" + Company *string "json:\"company,omitempty\" graphql:\"company\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Email *string "json:\"email,omitempty\" graphql:\"email\"" + FullName string "json:\"fullName\" graphql:\"fullName\"" + ID string "json:\"id\" graphql:\"id\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Title *string "json:\"title,omitempty\" graphql:\"title\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetEntitlements_Entitlements_Edges) GetNode() *GetEntitlements_Entitlements_Edges_Node { +func (t *GetContacts_Contacts_Edges_Node) GetAddress() *string { if t == nil { - t = &GetEntitlements_Entitlements_Edges{} + t = &GetContacts_Contacts_Edges_Node{} } - return t.Node -} - -type GetEntitlements_Entitlements struct { - Edges []*GetEntitlements_Entitlements_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.Address } - -func (t *GetEntitlements_Entitlements) GetEdges() []*GetEntitlements_Entitlements_Edges { +func (t *GetContacts_Contacts_Edges_Node) GetCompany() *string { if t == nil { - t = &GetEntitlements_Entitlements{} + t = &GetContacts_Contacts_Edges_Node{} } - return t.Edges + return t.Company } - -type UpdateEntitlement_UpdateEntitlement_Entitlement_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +func (t *GetContacts_Contacts_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetContacts_Contacts_Edges_Node{} + } + return t.CreatedAt } - -func (t *UpdateEntitlement_UpdateEntitlement_Entitlement_Plan) GetID() string { +func (t *GetContacts_Contacts_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &UpdateEntitlement_UpdateEntitlement_Entitlement_Plan{} + t = &GetContacts_Contacts_Edges_Node{} } - return t.ID + return t.CreatedBy } -func (t *UpdateEntitlement_UpdateEntitlement_Entitlement_Plan) GetName() string { +func (t *GetContacts_Contacts_Edges_Node) GetEmail() *string { if t == nil { - t = &UpdateEntitlement_UpdateEntitlement_Entitlement_Plan{} + t = &GetContacts_Contacts_Edges_Node{} } - return t.Name + return t.Email } - -type UpdateEntitlement_UpdateEntitlement_Entitlement struct { - ID string "json:\"id\" graphql:\"id\"" - Plan UpdateEntitlement_UpdateEntitlement_Entitlement_Plan "json:\"plan\" graphql:\"plan\"" - Expires bool "json:\"expires\" graphql:\"expires\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" - ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" - ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" +func (t *GetContacts_Contacts_Edges_Node) GetFullName() string { + if t == nil { + t = &GetContacts_Contacts_Edges_Node{} + } + return t.FullName } - -func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetID() string { +func (t *GetContacts_Contacts_Edges_Node) GetID() string { if t == nil { - t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} + t = &GetContacts_Contacts_Edges_Node{} } return t.ID } -func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetPlan() *UpdateEntitlement_UpdateEntitlement_Entitlement_Plan { +func (t *GetContacts_Contacts_Edges_Node) GetOwnerID() *string { if t == nil { - t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} + t = &GetContacts_Contacts_Edges_Node{} } - return &t.Plan + return t.OwnerID } -func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetExpires() bool { +func (t *GetContacts_Contacts_Edges_Node) GetPhoneNumber() *string { if t == nil { - t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} + t = &GetContacts_Contacts_Edges_Node{} } - return t.Expires + return t.PhoneNumber } -func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetExpiresAt() *time.Time { +func (t *GetContacts_Contacts_Edges_Node) GetStatus() *enums.UserStatus { if t == nil { - t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} + t = &GetContacts_Contacts_Edges_Node{} } - return t.ExpiresAt + return &t.Status } -func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetCancelled() bool { +func (t *GetContacts_Contacts_Edges_Node) GetTags() []string { if t == nil { - t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} + t = &GetContacts_Contacts_Edges_Node{} } - return t.Cancelled + return t.Tags } -func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetExternalCustomerID() *string { +func (t *GetContacts_Contacts_Edges_Node) GetTitle() *string { if t == nil { - t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} + t = &GetContacts_Contacts_Edges_Node{} } - return t.ExternalCustomerID + return t.Title } -func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetExternalSubscriptionID() *string { +func (t *GetContacts_Contacts_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} + t = &GetContacts_Contacts_Edges_Node{} } - return t.ExternalSubscriptionID + return t.UpdatedAt +} +func (t *GetContacts_Contacts_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetContacts_Contacts_Edges_Node{} + } + return t.UpdatedBy } -type UpdateEntitlement_UpdateEntitlement struct { - Entitlement UpdateEntitlement_UpdateEntitlement_Entitlement "json:\"entitlement\" graphql:\"entitlement\"" +type GetContacts_Contacts_Edges struct { + Node *GetContacts_Contacts_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *UpdateEntitlement_UpdateEntitlement) GetEntitlement() *UpdateEntitlement_UpdateEntitlement_Entitlement { +func (t *GetContacts_Contacts_Edges) GetNode() *GetContacts_Contacts_Edges_Node { if t == nil { - t = &UpdateEntitlement_UpdateEntitlement{} + t = &GetContacts_Contacts_Edges{} } - return &t.Entitlement + return t.Node } -type GetAllEntitlementHistories_EntitlementHistories_Edges_Node struct { - Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Expires bool "json:\"expires\" graphql:\"expires\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" - ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PlanID string "json:\"planID\" graphql:\"planID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetContacts_Contacts struct { + Edges []*GetContacts_Contacts_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetCancelled() bool { +func (t *GetContacts_Contacts) GetEdges() []*GetContacts_Contacts_Edges { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetContacts_Contacts{} } - return t.Cancelled + return t.Edges } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetCreatedAt() *time.Time { - if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} - } - return t.CreatedAt + +type UpdateContact_UpdateContact_Contact struct { + Address *string "json:\"address,omitempty\" graphql:\"address\"" + Company *string "json:\"company,omitempty\" graphql:\"company\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Email *string "json:\"email,omitempty\" graphql:\"email\"" + FullName string "json:\"fullName\" graphql:\"fullName\"" + ID string "json:\"id\" graphql:\"id\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Title *string "json:\"title,omitempty\" graphql:\"title\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetCreatedBy() *string { + +func (t *UpdateContact_UpdateContact_Contact) GetAddress() *string { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } - return t.CreatedBy + return t.Address } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetExpires() bool { +func (t *UpdateContact_UpdateContact_Contact) GetCompany() *string { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } - return t.Expires + return t.Company } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetExpiresAt() *time.Time { +func (t *UpdateContact_UpdateContact_Contact) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } - return t.ExpiresAt + return t.CreatedAt } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetExternalCustomerID() *string { +func (t *UpdateContact_UpdateContact_Contact) GetCreatedBy() *string { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } - return t.ExternalCustomerID + return t.CreatedBy } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetExternalSubscriptionID() *string { +func (t *UpdateContact_UpdateContact_Contact) GetEmail() *string { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } - return t.ExternalSubscriptionID + return t.Email } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *UpdateContact_UpdateContact_Contact) GetFullName() string { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } - return &t.HistoryTime + return t.FullName } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetID() string { +func (t *UpdateContact_UpdateContact_Contact) GetID() string { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } return t.ID } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetOperation() *history.OpType { - if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} - } - return &t.Operation -} -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetOrganizationID() string { +func (t *UpdateContact_UpdateContact_Contact) GetOwnerID() *string { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } - return t.OrganizationID + return t.OwnerID } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetOwnerID() *string { +func (t *UpdateContact_UpdateContact_Contact) GetPhoneNumber() *string { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } - return t.OwnerID + return t.PhoneNumber } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetPlanID() string { +func (t *UpdateContact_UpdateContact_Contact) GetStatus() *enums.UserStatus { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } - return t.PlanID + return &t.Status } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetRef() *string { +func (t *UpdateContact_UpdateContact_Contact) GetTags() []string { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } - return t.Ref + return t.Tags } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetTags() []string { +func (t *UpdateContact_UpdateContact_Contact) GetTitle() *string { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } - return t.Tags + return t.Title } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *UpdateContact_UpdateContact_Contact) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } return t.UpdatedAt } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetUpdatedBy() *string { +func (t *UpdateContact_UpdateContact_Contact) GetUpdatedBy() *string { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &UpdateContact_UpdateContact_Contact{} } return t.UpdatedBy } -type GetAllEntitlementHistories_EntitlementHistories_Edges struct { - Node *GetAllEntitlementHistories_EntitlementHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type UpdateContact_UpdateContact struct { + Contact UpdateContact_UpdateContact_Contact "json:\"contact\" graphql:\"contact\"" } -func (t *GetAllEntitlementHistories_EntitlementHistories_Edges) GetNode() *GetAllEntitlementHistories_EntitlementHistories_Edges_Node { +func (t *UpdateContact_UpdateContact) GetContact() *UpdateContact_UpdateContact_Contact { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories_Edges{} + t = &UpdateContact_UpdateContact{} } - return t.Node + return &t.Contact } -type GetAllEntitlementHistories_EntitlementHistories struct { - Edges []*GetAllEntitlementHistories_EntitlementHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllContactHistories_ContactHistories_Edges_Node struct { + Address *string "json:\"address,omitempty\" graphql:\"address\"" + Company *string "json:\"company,omitempty\" graphql:\"company\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Email *string "json:\"email,omitempty\" graphql:\"email\"" + FullName string "json:\"fullName\" graphql:\"fullName\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Title *string "json:\"title,omitempty\" graphql:\"title\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllEntitlementHistories_EntitlementHistories) GetEdges() []*GetAllEntitlementHistories_EntitlementHistories_Edges { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetAddress() *string { if t == nil { - t = &GetAllEntitlementHistories_EntitlementHistories{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } - return t.Edges -} - -type GetEntitlementHistories_EntitlementHistories_Edges_Node struct { - Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Expires bool "json:\"expires\" graphql:\"expires\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" - ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PlanID string "json:\"planID\" graphql:\"planID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.Address } - -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetCancelled() bool { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetCompany() *string { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } - return t.Cancelled + return t.Company } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } return t.CreatedAt } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } return t.CreatedBy } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetExpires() bool { - if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} - } - return t.Expires -} -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetExpiresAt() *time.Time { - if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} - } - return t.ExpiresAt -} -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetExternalCustomerID() *string { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetEmail() *string { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } - return t.ExternalCustomerID + return t.Email } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetExternalSubscriptionID() *string { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetFullName() string { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } - return t.ExternalSubscriptionID + return t.FullName } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } return &t.HistoryTime } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetID() string { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetID() string { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } return t.ID } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } return &t.Operation } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetOrganizationID() string { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } - return t.OrganizationID + return t.OwnerID } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetOwnerID() *string { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetPhoneNumber() *string { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } - return t.OwnerID + return t.PhoneNumber } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetPlanID() string { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } - return t.PlanID + return t.Ref } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetRef() *string { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetStatus() *enums.UserStatus { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } - return t.Ref + return &t.Status } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetTags() []string { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } return t.Tags } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetTitle() *string { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} + } + return t.Title +} +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllContactHistories_ContactHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} + t = &GetAllContactHistories_ContactHistories_Edges_Node{} } return t.UpdatedBy } -type GetEntitlementHistories_EntitlementHistories_Edges struct { - Node *GetEntitlementHistories_EntitlementHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllContactHistories_ContactHistories_Edges struct { + Node *GetAllContactHistories_ContactHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetEntitlementHistories_EntitlementHistories_Edges) GetNode() *GetEntitlementHistories_EntitlementHistories_Edges_Node { +func (t *GetAllContactHistories_ContactHistories_Edges) GetNode() *GetAllContactHistories_ContactHistories_Edges_Node { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories_Edges{} + t = &GetAllContactHistories_ContactHistories_Edges{} } return t.Node } -type GetEntitlementHistories_EntitlementHistories struct { - Edges []*GetEntitlementHistories_EntitlementHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllContactHistories_ContactHistories struct { + Edges []*GetAllContactHistories_ContactHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetEntitlementHistories_EntitlementHistories) GetEdges() []*GetEntitlementHistories_EntitlementHistories_Edges { +func (t *GetAllContactHistories_ContactHistories) GetEdges() []*GetAllContactHistories_ContactHistories_Edges { if t == nil { - t = &GetEntitlementHistories_EntitlementHistories{} + t = &GetAllContactHistories_ContactHistories{} } return t.Edges } -type CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Version string "json:\"version\" graphql:\"version\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" +type GetContactHistories_ContactHistories_Edges_Node struct { + Address *string "json:\"address,omitempty\" graphql:\"address\"" + Company *string "json:\"company,omitempty\" graphql:\"company\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Email *string "json:\"email,omitempty\" graphql:\"email\"" + FullName string "json:\"fullName\" graphql:\"fullName\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Title *string "json:\"title,omitempty\" graphql:\"title\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetID() string { +func (t *GetContactHistories_ContactHistories_Edges_Node) GetAddress() *string { if t == nil { - t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} + t = &GetContactHistories_ContactHistories_Edges_Node{} + } + return t.Address +} +func (t *GetContactHistories_ContactHistories_Edges_Node) GetCompany() *string { + if t == nil { + t = &GetContactHistories_ContactHistories_Edges_Node{} + } + return t.Company +} +func (t *GetContactHistories_ContactHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetContactHistories_ContactHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetContactHistories_ContactHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetContactHistories_ContactHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetContactHistories_ContactHistories_Edges_Node) GetEmail() *string { + if t == nil { + t = &GetContactHistories_ContactHistories_Edges_Node{} + } + return t.Email +} +func (t *GetContactHistories_ContactHistories_Edges_Node) GetFullName() string { + if t == nil { + t = &GetContactHistories_ContactHistories_Edges_Node{} + } + return t.FullName +} +func (t *GetContactHistories_ContactHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetContactHistories_ContactHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetContactHistories_ContactHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetContactHistories_ContactHistories_Edges_Node{} } return t.ID } -func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetName() string { +func (t *GetContactHistories_ContactHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} + t = &GetContactHistories_ContactHistories_Edges_Node{} } - return t.Name + return &t.Operation } -func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetDisplayName() *string { +func (t *GetContactHistories_ContactHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} + t = &GetContactHistories_ContactHistories_Edges_Node{} } - return t.DisplayName + return t.OwnerID } -func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetMetadata() map[string]interface{} { +func (t *GetContactHistories_ContactHistories_Edges_Node) GetPhoneNumber() *string { if t == nil { - t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} + t = &GetContactHistories_ContactHistories_Edges_Node{} } - return t.Metadata + return t.PhoneNumber } -func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetTags() []string { +func (t *GetContactHistories_ContactHistories_Edges_Node) GetRef() *string { if t == nil { - t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} + t = &GetContactHistories_ContactHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetContactHistories_ContactHistories_Edges_Node) GetStatus() *enums.UserStatus { + if t == nil { + t = &GetContactHistories_ContactHistories_Edges_Node{} + } + return &t.Status +} +func (t *GetContactHistories_ContactHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetContactHistories_ContactHistories_Edges_Node{} } return t.Tags } -func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetVersion() string { +func (t *GetContactHistories_ContactHistories_Edges_Node) GetTitle() *string { if t == nil { - t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} + t = &GetContactHistories_ContactHistories_Edges_Node{} } - return t.Version + return t.Title } -func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetDescription() *string { +func (t *GetContactHistories_ContactHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} + t = &GetContactHistories_ContactHistories_Edges_Node{} } - return t.Description + return t.UpdatedAt +} +func (t *GetContactHistories_ContactHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetContactHistories_ContactHistories_Edges_Node{} + } + return t.UpdatedBy } -type CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan struct { - EntitlementPlans []*CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans "json:\"entitlementPlans,omitempty\" graphql:\"entitlementPlans\"" +type GetContactHistories_ContactHistories_Edges struct { + Node *GetContactHistories_ContactHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan) GetEntitlementPlans() []*CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans { +func (t *GetContactHistories_ContactHistories_Edges) GetNode() *GetContactHistories_ContactHistories_Edges_Node { if t == nil { - t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan{} + t = &GetContactHistories_ContactHistories_Edges{} } - return t.EntitlementPlans + return t.Node } -type CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Version string "json:\"version\" graphql:\"version\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" +type GetContactHistories_ContactHistories struct { + Edges []*GetContactHistories_ContactHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetID() string { +func (t *GetContactHistories_ContactHistories) GetEdges() []*GetContactHistories_ContactHistories_Edges { if t == nil { - t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} + t = &GetContactHistories_ContactHistories{} } - return t.ID + return t.Edges } -func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetName() string { + +type CreateBulkCSVControl_CreateBulkCSVControl_Controls struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlType *string "json:\"controlType,omitempty\" graphql:\"controlType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetClass() *string { if t == nil { - t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } - return t.Name + return t.Class } -func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetDisplayName() *string { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetControlNumber() *string { if t == nil { - t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } - return t.DisplayName + return t.ControlNumber } -func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetMetadata() map[string]interface{} { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetControlType() *string { if t == nil { - t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } - return t.Metadata + return t.ControlType } -func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetTags() []string { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } - return t.Tags + return t.CreatedAt } -func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetVersion() string { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetCreatedBy() *string { if t == nil { - t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } - return t.Version + return t.CreatedBy } -func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetDescription() *string { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetDescription() *string { if t == nil { - t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } return t.Description } - -type CreateBulkEntitlementPlan_CreateBulkEntitlementPlan struct { - EntitlementPlans []*CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans "json:\"entitlementPlans,omitempty\" graphql:\"entitlementPlans\"" -} - -func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan) GetEntitlementPlans() []*CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetDetails() map[string]interface{} { if t == nil { - t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } - return t.EntitlementPlans + return t.Details } - -type CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Version string "json:\"version\" graphql:\"version\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetFamily() *string { + if t == nil { + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} + } + return t.Family } - -func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetID() string { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetID() string { if t == nil { - t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } return t.ID } -func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetName() string { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetMappedFrameworks() *string { if t == nil { - t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} + } + return t.MappedFrameworks +} +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetName() string { + if t == nil { + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } return t.Name } -func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetDisplayName() *string { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetSatisfies() *string { if t == nil { - t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } - return t.DisplayName + return t.Satisfies } -func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetMetadata() map[string]interface{} { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetSource() *string { if t == nil { - t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } - return t.Metadata + return t.Source } -func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetTags() []string { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetStatus() *string { if t == nil { - t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } - return t.Tags + return t.Status } -func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetVersion() string { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetTags() []string { if t == nil { - t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } - return t.Version + return t.Tags } -func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetDescription() *string { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } - return t.Description + return t.UpdatedAt } - -type CreateEntitlementPlan_CreateEntitlementPlan struct { - EntitlementPlan CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan "json:\"entitlementPlan\" graphql:\"entitlementPlan\"" +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} + } + return t.UpdatedBy } - -func (t *CreateEntitlementPlan_CreateEntitlementPlan) GetEntitlementPlan() *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan { +func (t *CreateBulkCSVControl_CreateBulkCSVControl_Controls) GetVersion() *string { if t == nil { - t = &CreateEntitlementPlan_CreateEntitlementPlan{} + t = &CreateBulkCSVControl_CreateBulkCSVControl_Controls{} } - return &t.EntitlementPlan + return t.Version } -type DeleteEntitlementPlan_DeleteEntitlementPlan struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type CreateBulkCSVControl_CreateBulkCSVControl struct { + Controls []*CreateBulkCSVControl_CreateBulkCSVControl_Controls "json:\"controls,omitempty\" graphql:\"controls\"" } -func (t *DeleteEntitlementPlan_DeleteEntitlementPlan) GetDeletedID() string { +func (t *CreateBulkCSVControl_CreateBulkCSVControl) GetControls() []*CreateBulkCSVControl_CreateBulkCSVControl_Controls { if t == nil { - t = &DeleteEntitlementPlan_DeleteEntitlementPlan{} + t = &CreateBulkCSVControl_CreateBulkCSVControl{} } - return t.DeletedID + return t.Controls } -type GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Name string "json:\"name\" graphql:\"name\"" +type CreateBulkControl_CreateBulkControl_Controls struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlType *string "json:\"controlType,omitempty\" graphql:\"controlType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature) GetID() string { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetClass() *string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.ID + return t.Class } -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature) GetMetadata() map[string]interface{} { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetControlNumber() *string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.Metadata + return t.ControlNumber } -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature) GetName() string { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetControlType() *string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.Name + return t.ControlType } - -type GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features struct { - Feature GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature "json:\"feature\" graphql:\"feature\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *CreateBulkControl_CreateBulkControl_Controls) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkControl_CreateBulkControl_Controls{} + } + return t.CreatedAt } - -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features) GetFeature() *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetCreatedBy() *string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return &t.Feature + return t.CreatedBy } -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features) GetMetadata() map[string]interface{} { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetDescription() *string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.Metadata + return t.Description } -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features) GetTags() []string { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetDetails() map[string]interface{} { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.Tags + return t.Details } - -type GetAllEntitlementPlans_EntitlementPlans_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Version string "json:\"version\" graphql:\"version\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Features []*GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features "json:\"features,omitempty\" graphql:\"features\"" +func (t *CreateBulkControl_CreateBulkControl_Controls) GetFamily() *string { + if t == nil { + t = &CreateBulkControl_CreateBulkControl_Controls{} + } + return t.Family } - -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetID() string { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetID() string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } return t.ID } -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetName() string { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetMappedFrameworks() *string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.Name + return t.MappedFrameworks } -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetDisplayName() *string { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetName() string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.DisplayName + return t.Name } -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetMetadata() map[string]interface{} { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetSatisfies() *string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.Metadata + return t.Satisfies } -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetTags() []string { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetSource() *string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.Tags + return t.Source } -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetVersion() string { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetStatus() *string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.Version + return t.Status } -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetDescription() *string { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetTags() []string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.Description + return t.Tags } -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetFeatures() []*GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.Features + return t.UpdatedAt } - -type GetAllEntitlementPlans_EntitlementPlans_Edges struct { - Node *GetAllEntitlementPlans_EntitlementPlans_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +func (t *CreateBulkControl_CreateBulkControl_Controls) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkControl_CreateBulkControl_Controls{} + } + return t.UpdatedBy } - -func (t *GetAllEntitlementPlans_EntitlementPlans_Edges) GetNode() *GetAllEntitlementPlans_EntitlementPlans_Edges_Node { +func (t *CreateBulkControl_CreateBulkControl_Controls) GetVersion() *string { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans_Edges{} + t = &CreateBulkControl_CreateBulkControl_Controls{} } - return t.Node + return t.Version } -type GetAllEntitlementPlans_EntitlementPlans struct { - Edges []*GetAllEntitlementPlans_EntitlementPlans_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateBulkControl_CreateBulkControl struct { + Controls []*CreateBulkControl_CreateBulkControl_Controls "json:\"controls,omitempty\" graphql:\"controls\"" } -func (t *GetAllEntitlementPlans_EntitlementPlans) GetEdges() []*GetAllEntitlementPlans_EntitlementPlans_Edges { +func (t *CreateBulkControl_CreateBulkControl) GetControls() []*CreateBulkControl_CreateBulkControl_Controls { if t == nil { - t = &GetAllEntitlementPlans_EntitlementPlans{} + t = &CreateBulkControl_CreateBulkControl{} } - return t.Edges + return t.Controls } -type GetEntitlementPlanByID_EntitlementPlan_Features_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Name string "json:\"name\" graphql:\"name\"" +type CreateControl_CreateControl_Control struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlType *string "json:\"controlType,omitempty\" graphql:\"controlType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetEntitlementPlanByID_EntitlementPlan_Features_Feature) GetID() string { +func (t *CreateControl_CreateControl_Control) GetClass() *string { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan_Features_Feature{} + t = &CreateControl_CreateControl_Control{} } - return t.ID + return t.Class } -func (t *GetEntitlementPlanByID_EntitlementPlan_Features_Feature) GetMetadata() map[string]interface{} { +func (t *CreateControl_CreateControl_Control) GetControlNumber() *string { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan_Features_Feature{} + t = &CreateControl_CreateControl_Control{} } - return t.Metadata + return t.ControlNumber } -func (t *GetEntitlementPlanByID_EntitlementPlan_Features_Feature) GetName() string { +func (t *CreateControl_CreateControl_Control) GetControlType() *string { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan_Features_Feature{} + t = &CreateControl_CreateControl_Control{} } - return t.Name + return t.ControlType } - -type GetEntitlementPlanByID_EntitlementPlan_Features struct { - Feature GetEntitlementPlanByID_EntitlementPlan_Features_Feature "json:\"feature\" graphql:\"feature\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *CreateControl_CreateControl_Control) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateControl_CreateControl_Control{} + } + return t.CreatedAt } - -func (t *GetEntitlementPlanByID_EntitlementPlan_Features) GetFeature() *GetEntitlementPlanByID_EntitlementPlan_Features_Feature { +func (t *CreateControl_CreateControl_Control) GetCreatedBy() *string { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan_Features{} + t = &CreateControl_CreateControl_Control{} } - return &t.Feature + return t.CreatedBy } -func (t *GetEntitlementPlanByID_EntitlementPlan_Features) GetMetadata() map[string]interface{} { +func (t *CreateControl_CreateControl_Control) GetDescription() *string { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan_Features{} + t = &CreateControl_CreateControl_Control{} } - return t.Metadata + return t.Description } -func (t *GetEntitlementPlanByID_EntitlementPlan_Features) GetTags() []string { +func (t *CreateControl_CreateControl_Control) GetDetails() map[string]interface{} { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan_Features{} + t = &CreateControl_CreateControl_Control{} } - return t.Tags + return t.Details } - -type GetEntitlementPlanByID_EntitlementPlan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Version string "json:\"version\" graphql:\"version\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Features []*GetEntitlementPlanByID_EntitlementPlan_Features "json:\"features,omitempty\" graphql:\"features\"" +func (t *CreateControl_CreateControl_Control) GetFamily() *string { + if t == nil { + t = &CreateControl_CreateControl_Control{} + } + return t.Family } - -func (t *GetEntitlementPlanByID_EntitlementPlan) GetID() string { +func (t *CreateControl_CreateControl_Control) GetID() string { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan{} + t = &CreateControl_CreateControl_Control{} } return t.ID } -func (t *GetEntitlementPlanByID_EntitlementPlan) GetName() string { +func (t *CreateControl_CreateControl_Control) GetMappedFrameworks() *string { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan{} + t = &CreateControl_CreateControl_Control{} + } + return t.MappedFrameworks +} +func (t *CreateControl_CreateControl_Control) GetName() string { + if t == nil { + t = &CreateControl_CreateControl_Control{} } return t.Name } -func (t *GetEntitlementPlanByID_EntitlementPlan) GetDisplayName() *string { +func (t *CreateControl_CreateControl_Control) GetSatisfies() *string { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan{} + t = &CreateControl_CreateControl_Control{} } - return t.DisplayName + return t.Satisfies } -func (t *GetEntitlementPlanByID_EntitlementPlan) GetMetadata() map[string]interface{} { +func (t *CreateControl_CreateControl_Control) GetSource() *string { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan{} + t = &CreateControl_CreateControl_Control{} } - return t.Metadata + return t.Source } -func (t *GetEntitlementPlanByID_EntitlementPlan) GetTags() []string { +func (t *CreateControl_CreateControl_Control) GetStatus() *string { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan{} + t = &CreateControl_CreateControl_Control{} + } + return t.Status +} +func (t *CreateControl_CreateControl_Control) GetTags() []string { + if t == nil { + t = &CreateControl_CreateControl_Control{} } return t.Tags } -func (t *GetEntitlementPlanByID_EntitlementPlan) GetVersion() string { +func (t *CreateControl_CreateControl_Control) GetUpdatedAt() *time.Time { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan{} + t = &CreateControl_CreateControl_Control{} + } + return t.UpdatedAt +} +func (t *CreateControl_CreateControl_Control) GetUpdatedBy() *string { + if t == nil { + t = &CreateControl_CreateControl_Control{} + } + return t.UpdatedBy +} +func (t *CreateControl_CreateControl_Control) GetVersion() *string { + if t == nil { + t = &CreateControl_CreateControl_Control{} } return t.Version } -func (t *GetEntitlementPlanByID_EntitlementPlan) GetDescription() *string { + +type CreateControl_CreateControl struct { + Control CreateControl_CreateControl_Control "json:\"control\" graphql:\"control\"" +} + +func (t *CreateControl_CreateControl) GetControl() *CreateControl_CreateControl_Control { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan{} + t = &CreateControl_CreateControl{} } - return t.Description + return &t.Control } -func (t *GetEntitlementPlanByID_EntitlementPlan) GetFeatures() []*GetEntitlementPlanByID_EntitlementPlan_Features { + +type DeleteControl_DeleteControl struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +} + +func (t *DeleteControl_DeleteControl) GetDeletedID() string { if t == nil { - t = &GetEntitlementPlanByID_EntitlementPlan{} + t = &DeleteControl_DeleteControl{} } - return t.Features + return t.DeletedID } -type GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Name string "json:\"name\" graphql:\"name\"" +type GetAllControls_Controls_Edges_Node struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlType *string "json:\"controlType,omitempty\" graphql:\"controlType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature) GetID() string { +func (t *GetAllControls_Controls_Edges_Node) GetClass() *string { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature{} + t = &GetAllControls_Controls_Edges_Node{} } - return t.ID + return t.Class } -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature) GetMetadata() map[string]interface{} { +func (t *GetAllControls_Controls_Edges_Node) GetControlNumber() *string { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature{} + t = &GetAllControls_Controls_Edges_Node{} } - return t.Metadata + return t.ControlNumber } -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature) GetName() string { +func (t *GetAllControls_Controls_Edges_Node) GetControlType() *string { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature{} + t = &GetAllControls_Controls_Edges_Node{} } - return t.Name + return t.ControlType } - -type GetEntitlementPlans_EntitlementPlans_Edges_Node_Features struct { - Feature GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature "json:\"feature\" graphql:\"feature\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *GetAllControls_Controls_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllControls_Controls_Edges_Node{} + } + return t.CreatedAt } - -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features) GetFeature() *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature { +func (t *GetAllControls_Controls_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node_Features{} + t = &GetAllControls_Controls_Edges_Node{} } - return &t.Feature + return t.CreatedBy } -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features) GetMetadata() map[string]interface{} { +func (t *GetAllControls_Controls_Edges_Node) GetDescription() *string { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node_Features{} + t = &GetAllControls_Controls_Edges_Node{} } - return t.Metadata + return t.Description } -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features) GetTags() []string { +func (t *GetAllControls_Controls_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node_Features{} + t = &GetAllControls_Controls_Edges_Node{} } - return t.Tags + return t.Details } - -type GetEntitlementPlans_EntitlementPlans_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Version string "json:\"version\" graphql:\"version\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Features []*GetEntitlementPlans_EntitlementPlans_Edges_Node_Features "json:\"features,omitempty\" graphql:\"features\"" +func (t *GetAllControls_Controls_Edges_Node) GetFamily() *string { + if t == nil { + t = &GetAllControls_Controls_Edges_Node{} + } + return t.Family } - -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetID() string { +func (t *GetAllControls_Controls_Edges_Node) GetID() string { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &GetAllControls_Controls_Edges_Node{} } return t.ID } -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetName() string { +func (t *GetAllControls_Controls_Edges_Node) GetMappedFrameworks() *string { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &GetAllControls_Controls_Edges_Node{} + } + return t.MappedFrameworks +} +func (t *GetAllControls_Controls_Edges_Node) GetName() string { + if t == nil { + t = &GetAllControls_Controls_Edges_Node{} } return t.Name } -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetDisplayName() *string { +func (t *GetAllControls_Controls_Edges_Node) GetSatisfies() *string { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &GetAllControls_Controls_Edges_Node{} } - return t.DisplayName + return t.Satisfies } -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetMetadata() map[string]interface{} { +func (t *GetAllControls_Controls_Edges_Node) GetSource() *string { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &GetAllControls_Controls_Edges_Node{} } - return t.Metadata + return t.Source } -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetTags() []string { +func (t *GetAllControls_Controls_Edges_Node) GetStatus() *string { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &GetAllControls_Controls_Edges_Node{} + } + return t.Status +} +func (t *GetAllControls_Controls_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllControls_Controls_Edges_Node{} } return t.Tags } -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetVersion() string { +func (t *GetAllControls_Controls_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &GetAllControls_Controls_Edges_Node{} } - return t.Version + return t.UpdatedAt } -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetDescription() *string { +func (t *GetAllControls_Controls_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &GetAllControls_Controls_Edges_Node{} } - return t.Description + return t.UpdatedBy } -func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetFeatures() []*GetEntitlementPlans_EntitlementPlans_Edges_Node_Features { +func (t *GetAllControls_Controls_Edges_Node) GetVersion() *string { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} + t = &GetAllControls_Controls_Edges_Node{} } - return t.Features + return t.Version } -type GetEntitlementPlans_EntitlementPlans_Edges struct { - Node *GetEntitlementPlans_EntitlementPlans_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllControls_Controls_Edges struct { + Node *GetAllControls_Controls_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetEntitlementPlans_EntitlementPlans_Edges) GetNode() *GetEntitlementPlans_EntitlementPlans_Edges_Node { +func (t *GetAllControls_Controls_Edges) GetNode() *GetAllControls_Controls_Edges_Node { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans_Edges{} + t = &GetAllControls_Controls_Edges{} } return t.Node } -type GetEntitlementPlans_EntitlementPlans struct { - Edges []*GetEntitlementPlans_EntitlementPlans_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllControls_Controls struct { + Edges []*GetAllControls_Controls_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetEntitlementPlans_EntitlementPlans) GetEdges() []*GetEntitlementPlans_EntitlementPlans_Edges { +func (t *GetAllControls_Controls) GetEdges() []*GetAllControls_Controls_Edges { if t == nil { - t = &GetEntitlementPlans_EntitlementPlans{} + t = &GetAllControls_Controls{} } return t.Edges } -type UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Version string "json:\"version\" graphql:\"version\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" +type GetControlByID_Control struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlType *string "json:\"controlType,omitempty\" graphql:\"controlType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetID() string { +func (t *GetControlByID_Control) GetClass() *string { if t == nil { - t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} + t = &GetControlByID_Control{} } - return t.ID + return t.Class } -func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetName() string { +func (t *GetControlByID_Control) GetControlNumber() *string { if t == nil { - t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} + t = &GetControlByID_Control{} } - return t.Name + return t.ControlNumber } -func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetDisplayName() *string { +func (t *GetControlByID_Control) GetControlType() *string { if t == nil { - t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} + t = &GetControlByID_Control{} } - return t.DisplayName + return t.ControlType } -func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetMetadata() map[string]interface{} { +func (t *GetControlByID_Control) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} + t = &GetControlByID_Control{} } - return t.Metadata + return t.CreatedAt } -func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetTags() []string { +func (t *GetControlByID_Control) GetCreatedBy() *string { if t == nil { - t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} + t = &GetControlByID_Control{} } - return t.Tags + return t.CreatedBy } -func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetVersion() string { +func (t *GetControlByID_Control) GetDescription() *string { if t == nil { - t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} + t = &GetControlByID_Control{} } - return t.Version + return t.Description } -func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetDescription() *string { +func (t *GetControlByID_Control) GetDetails() map[string]interface{} { if t == nil { - t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} + t = &GetControlByID_Control{} } - return t.Description -} - -type UpdateEntitlementPlan_UpdateEntitlementPlan struct { - EntitlementPlan UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan "json:\"entitlementPlan\" graphql:\"entitlementPlan\"" + return t.Details } - -func (t *UpdateEntitlementPlan_UpdateEntitlementPlan) GetEntitlementPlan() *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan { +func (t *GetControlByID_Control) GetFamily() *string { if t == nil { - t = &UpdateEntitlementPlan_UpdateEntitlementPlan{} + t = &GetControlByID_Control{} } - return &t.EntitlementPlan -} - -type CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.Family } - -func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan) GetID() string { +func (t *GetControlByID_Control) GetID() string { if t == nil { - t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan{} + t = &GetControlByID_Control{} } return t.ID } -func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan) GetName() string { +func (t *GetControlByID_Control) GetMappedFrameworks() *string { if t == nil { - t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan{} + t = &GetControlByID_Control{} } - return t.Name + return t.MappedFrameworks } - -type CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +func (t *GetControlByID_Control) GetName() string { + if t == nil { + t = &GetControlByID_Control{} + } + return t.Name } - -func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature) GetID() string { +func (t *GetControlByID_Control) GetSatisfies() *string { if t == nil { - t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature{} + t = &GetControlByID_Control{} } - return t.ID + return t.Satisfies } -func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature) GetName() string { +func (t *GetControlByID_Control) GetSource() *string { if t == nil { - t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature{} + t = &GetControlByID_Control{} } - return t.Name + return t.Source } - -type CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures struct { - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Plan CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan "json:\"plan\" graphql:\"plan\"" - Feature CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature "json:\"feature\" graphql:\"feature\"" +func (t *GetControlByID_Control) GetStatus() *string { + if t == nil { + t = &GetControlByID_Control{} + } + return t.Status } - -func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures) GetID() string { +func (t *GetControlByID_Control) GetTags() []string { if t == nil { - t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures{} + t = &GetControlByID_Control{} } - return t.ID + return t.Tags } -func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures) GetMetadata() map[string]interface{} { +func (t *GetControlByID_Control) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures{} + t = &GetControlByID_Control{} } - return t.Metadata + return t.UpdatedAt } -func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures) GetPlan() *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan { +func (t *GetControlByID_Control) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures{} + t = &GetControlByID_Control{} } - return &t.Plan + return t.UpdatedBy } -func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures) GetFeature() *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature { +func (t *GetControlByID_Control) GetVersion() *string { if t == nil { - t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures{} + t = &GetControlByID_Control{} } - return &t.Feature + return t.Version } -type CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature struct { - EntitlementPlanFeatures []*CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures "json:\"entitlementPlanFeatures,omitempty\" graphql:\"entitlementPlanFeatures\"" +type GetControls_Controls_Edges_Node struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlType *string "json:\"controlType,omitempty\" graphql:\"controlType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature) GetEntitlementPlanFeatures() []*CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures { +func (t *GetControls_Controls_Edges_Node) GetClass() *string { if t == nil { - t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature{} + t = &GetControls_Controls_Edges_Node{} } - return t.EntitlementPlanFeatures + return t.Class } - -type CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +func (t *GetControls_Controls_Edges_Node) GetControlNumber() *string { + if t == nil { + t = &GetControls_Controls_Edges_Node{} + } + return t.ControlNumber } - -func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan) GetID() string { +func (t *GetControls_Controls_Edges_Node) GetControlType() *string { if t == nil { - t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan{} + t = &GetControls_Controls_Edges_Node{} } - return t.ID + return t.ControlType } -func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan) GetName() string { +func (t *GetControls_Controls_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan{} + t = &GetControls_Controls_Edges_Node{} } - return t.Name + return t.CreatedAt } - -type CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +func (t *GetControls_Controls_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetControls_Controls_Edges_Node{} + } + return t.CreatedBy } - -func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature) GetID() string { +func (t *GetControls_Controls_Edges_Node) GetDescription() *string { if t == nil { - t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature{} + t = &GetControls_Controls_Edges_Node{} } - return t.ID + return t.Description } -func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature) GetName() string { +func (t *GetControls_Controls_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature{} + t = &GetControls_Controls_Edges_Node{} } - return t.Name + return t.Details } - -type CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures struct { - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Plan CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan "json:\"plan\" graphql:\"plan\"" - Feature CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature "json:\"feature\" graphql:\"feature\"" +func (t *GetControls_Controls_Edges_Node) GetFamily() *string { + if t == nil { + t = &GetControls_Controls_Edges_Node{} + } + return t.Family } - -func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures) GetID() string { +func (t *GetControls_Controls_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures{} + t = &GetControls_Controls_Edges_Node{} } return t.ID } -func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures) GetMetadata() map[string]interface{} { +func (t *GetControls_Controls_Edges_Node) GetMappedFrameworks() *string { if t == nil { - t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures{} + t = &GetControls_Controls_Edges_Node{} } - return t.Metadata + return t.MappedFrameworks } -func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures) GetPlan() *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan { +func (t *GetControls_Controls_Edges_Node) GetName() string { if t == nil { - t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures{} + t = &GetControls_Controls_Edges_Node{} } - return &t.Plan + return t.Name } -func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures) GetFeature() *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature { +func (t *GetControls_Controls_Edges_Node) GetSatisfies() *string { if t == nil { - t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures{} + t = &GetControls_Controls_Edges_Node{} } - return &t.Feature + return t.Satisfies } - -type CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature struct { - EntitlementPlanFeatures []*CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures "json:\"entitlementPlanFeatures,omitempty\" graphql:\"entitlementPlanFeatures\"" +func (t *GetControls_Controls_Edges_Node) GetSource() *string { + if t == nil { + t = &GetControls_Controls_Edges_Node{} + } + return t.Source } - -func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature) GetEntitlementPlanFeatures() []*CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures { +func (t *GetControls_Controls_Edges_Node) GetStatus() *string { if t == nil { - t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature{} + t = &GetControls_Controls_Edges_Node{} } - return t.EntitlementPlanFeatures + return t.Status } - -type CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +func (t *GetControls_Controls_Edges_Node) GetTags() []string { + if t == nil { + t = &GetControls_Controls_Edges_Node{} + } + return t.Tags } - -func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan) GetID() string { +func (t *GetControls_Controls_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan{} + t = &GetControls_Controls_Edges_Node{} } - return t.ID + return t.UpdatedAt } -func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan) GetName() string { +func (t *GetControls_Controls_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan{} + t = &GetControls_Controls_Edges_Node{} } - return t.Name + return t.UpdatedBy +} +func (t *GetControls_Controls_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetControls_Controls_Edges_Node{} + } + return t.Version } -type CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetControls_Controls_Edges struct { + Node *GetControls_Controls_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature) GetID() string { +func (t *GetControls_Controls_Edges) GetNode() *GetControls_Controls_Edges_Node { if t == nil { - t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature{} + t = &GetControls_Controls_Edges{} } - return t.ID + return t.Node } -func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature) GetName() string { + +type GetControls_Controls struct { + Edges []*GetControls_Controls_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetControls_Controls) GetEdges() []*GetControls_Controls_Edges { if t == nil { - t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature{} + t = &GetControls_Controls{} } - return t.Name + return t.Edges } -type CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature struct { - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Plan CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan "json:\"plan\" graphql:\"plan\"" - Feature CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature "json:\"feature\" graphql:\"feature\"" +type UpdateControl_UpdateControl_Control struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlType *string "json:\"controlType,omitempty\" graphql:\"controlType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature) GetID() string { +func (t *UpdateControl_UpdateControl_Control) GetClass() *string { if t == nil { - t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature{} + t = &UpdateControl_UpdateControl_Control{} } - return t.ID + return t.Class } -func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature) GetMetadata() map[string]interface{} { +func (t *UpdateControl_UpdateControl_Control) GetControlNumber() *string { if t == nil { - t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature{} + t = &UpdateControl_UpdateControl_Control{} } - return t.Metadata + return t.ControlNumber } -func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature) GetPlan() *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan { +func (t *UpdateControl_UpdateControl_Control) GetControlType() *string { if t == nil { - t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature{} + t = &UpdateControl_UpdateControl_Control{} } - return &t.Plan + return t.ControlType } -func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature) GetFeature() *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature { +func (t *UpdateControl_UpdateControl_Control) GetCreatedAt() *time.Time { if t == nil { - t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature{} + t = &UpdateControl_UpdateControl_Control{} } - return &t.Feature -} - -type CreateEntitlementPlanFeature_CreateEntitlementPlanFeature struct { - EntitlementPlanFeature CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature "json:\"entitlementPlanFeature\" graphql:\"entitlementPlanFeature\"" + return t.CreatedAt } - -func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature) GetEntitlementPlanFeature() *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature { +func (t *UpdateControl_UpdateControl_Control) GetCreatedBy() *string { if t == nil { - t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature{} + t = &UpdateControl_UpdateControl_Control{} } - return &t.EntitlementPlanFeature -} - -type DeleteEntitlementPlanFeature_DeleteEntitlementPlanFeature struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" + return t.CreatedBy } - -func (t *DeleteEntitlementPlanFeature_DeleteEntitlementPlanFeature) GetDeletedID() string { +func (t *UpdateControl_UpdateControl_Control) GetDescription() *string { if t == nil { - t = &DeleteEntitlementPlanFeature_DeleteEntitlementPlanFeature{} + t = &UpdateControl_UpdateControl_Control{} } - return t.DeletedID -} - -type GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.Description } - -func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature) GetID() string { +func (t *UpdateControl_UpdateControl_Control) GetDetails() map[string]interface{} { if t == nil { - t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature{} + t = &UpdateControl_UpdateControl_Control{} } - return t.ID + return t.Details } -func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature) GetName() string { +func (t *UpdateControl_UpdateControl_Control) GetFamily() *string { if t == nil { - t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature{} + t = &UpdateControl_UpdateControl_Control{} } - return t.Name + return t.Family } - -type GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" -} - -func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan) GetID() string { +func (t *UpdateControl_UpdateControl_Control) GetID() string { if t == nil { - t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan{} + t = &UpdateControl_UpdateControl_Control{} } return t.ID } -func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan) GetName() string { +func (t *UpdateControl_UpdateControl_Control) GetMappedFrameworks() *string { if t == nil { - t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan{} + t = &UpdateControl_UpdateControl_Control{} + } + return t.MappedFrameworks +} +func (t *UpdateControl_UpdateControl_Control) GetName() string { + if t == nil { + t = &UpdateControl_UpdateControl_Control{} } return t.Name } - -type GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Feature GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature "json:\"feature\" graphql:\"feature\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Plan GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan "json:\"plan\" graphql:\"plan\"" +func (t *UpdateControl_UpdateControl_Control) GetSatisfies() *string { + if t == nil { + t = &UpdateControl_UpdateControl_Control{} + } + return t.Satisfies } - -func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetID() string { +func (t *UpdateControl_UpdateControl_Control) GetSource() *string { if t == nil { - t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} + t = &UpdateControl_UpdateControl_Control{} } - return t.ID + return t.Source } -func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetFeature() *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature { +func (t *UpdateControl_UpdateControl_Control) GetStatus() *string { if t == nil { - t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} + t = &UpdateControl_UpdateControl_Control{} } - return &t.Feature + return t.Status } -func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetMetadata() map[string]interface{} { +func (t *UpdateControl_UpdateControl_Control) GetTags() []string { if t == nil { - t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} + t = &UpdateControl_UpdateControl_Control{} } - return t.Metadata + return t.Tags } -func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetPlan() *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan { +func (t *UpdateControl_UpdateControl_Control) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} + t = &UpdateControl_UpdateControl_Control{} } - return &t.Plan + return t.UpdatedAt } - -type GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges struct { - Node *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +func (t *UpdateControl_UpdateControl_Control) GetUpdatedBy() *string { + if t == nil { + t = &UpdateControl_UpdateControl_Control{} + } + return t.UpdatedBy } - -func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges) GetNode() *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node { +func (t *UpdateControl_UpdateControl_Control) GetVersion() *string { if t == nil { - t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges{} + t = &UpdateControl_UpdateControl_Control{} } - return t.Node + return t.Version } -type GetAllEntitlementPlanFeatures_EntitlementPlanFeatures struct { - Edges []*GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type UpdateControl_UpdateControl struct { + Control UpdateControl_UpdateControl_Control "json:\"control\" graphql:\"control\"" } -func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures) GetEdges() []*GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges { +func (t *UpdateControl_UpdateControl) GetControl() *UpdateControl_UpdateControl_Control { if t == nil { - t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures{} + t = &UpdateControl_UpdateControl{} } - return t.Edges + return &t.Control } -type GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetAllControlHistories_ControlHistories_Edges_Node struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlType *string "json:\"controlType,omitempty\" graphql:\"controlType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan) GetID() string { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetClass() *string { if t == nil { - t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.ID + return t.Class } -func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan) GetName() string { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetControlNumber() *string { if t == nil { - t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.Name -} - -type GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.ControlNumber } - -func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature) GetID() string { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetControlType() *string { if t == nil { - t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.ID + return t.ControlType } -func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature) GetName() string { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.Name -} - -type GetEntitlementPlanFeatureByID_EntitlementPlanFeature struct { - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Plan GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan "json:\"plan\" graphql:\"plan\"" - Feature GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature "json:\"feature\" graphql:\"feature\"" + return t.CreatedAt } - -func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature) GetID() string { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.ID + return t.CreatedBy } -func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature) GetMetadata() map[string]interface{} { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.Metadata + return t.Description } -func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature) GetPlan() *GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return &t.Plan + return t.Details } -func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature) GetFeature() *GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetFamily() *string { if t == nil { - t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return &t.Feature -} - -type GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.Family } - -func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan) GetID() string { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.ID + return &t.HistoryTime } -func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan) GetName() string { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetID() string { if t == nil { - t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.Name -} - -type GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.ID } - -func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature) GetID() string { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetMappedFrameworks() *string { if t == nil { - t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.ID + return t.MappedFrameworks } -func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature) GetName() string { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetName() string { if t == nil { - t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } return t.Name } - -type GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Plan GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan "json:\"plan\" graphql:\"plan\"" - Feature GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature "json:\"feature\" graphql:\"feature\"" -} - -func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetID() string { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.ID + return &t.Operation } -func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetMetadata() map[string]interface{} { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.Metadata + return t.Ref } -func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetPlan() *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetSatisfies() *string { if t == nil { - t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return &t.Plan + return t.Satisfies } -func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetFeature() *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetSource() *string { if t == nil { - t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return &t.Feature + return t.Source } - -type GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges struct { - Node *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" -} - -func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges) GetNode() *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetStatus() *string { if t == nil { - t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.Node -} - -type GetEntitlementPlanFeatures_EntitlementPlanFeatures struct { - Edges []*GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.Status } - -func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures) GetEdges() []*GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.Edges + return t.Tags } - -type UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllControlHistories_ControlHistories_Edges_Node{} + } + return t.UpdatedAt } - -func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan) GetID() string { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.ID + return t.UpdatedBy } -func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan) GetName() string { +func (t *GetAllControlHistories_ControlHistories_Edges_Node) GetVersion() *string { if t == nil { - t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan{} + t = &GetAllControlHistories_ControlHistories_Edges_Node{} } - return t.Name + return t.Version } -type UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetAllControlHistories_ControlHistories_Edges struct { + Node *GetAllControlHistories_ControlHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature) GetID() string { +func (t *GetAllControlHistories_ControlHistories_Edges) GetNode() *GetAllControlHistories_ControlHistories_Edges_Node { if t == nil { - t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature{} + t = &GetAllControlHistories_ControlHistories_Edges{} } - return t.ID + return t.Node } -func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature) GetName() string { + +type GetAllControlHistories_ControlHistories struct { + Edges []*GetAllControlHistories_ControlHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllControlHistories_ControlHistories) GetEdges() []*GetAllControlHistories_ControlHistories_Edges { if t == nil { - t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature{} + t = &GetAllControlHistories_ControlHistories{} } - return t.Name + return t.Edges } -type UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature struct { - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Plan UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan "json:\"plan\" graphql:\"plan\"" - Feature UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature "json:\"feature\" graphql:\"feature\"" +type GetControlHistories_ControlHistories_Edges_Node struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlType *string "json:\"controlType,omitempty\" graphql:\"controlType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature) GetID() string { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetClass() *string { if t == nil { - t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } - return t.ID + return t.Class } -func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature) GetMetadata() map[string]interface{} { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetControlNumber() *string { if t == nil { - t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } - return t.Metadata + return t.ControlNumber } -func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature) GetPlan() *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetControlType() *string { if t == nil { - t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } - return &t.Plan + return t.ControlType } -func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature) GetFeature() *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } - return &t.Feature -} - -type UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature struct { - EntitlementPlanFeature UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature "json:\"entitlementPlanFeature\" graphql:\"entitlementPlanFeature\"" + return t.CreatedAt } - -func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature) GetEntitlementPlanFeature() *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } - return &t.EntitlementPlanFeature -} - -type GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - FeatureID string "json:\"featureID\" graphql:\"featureID\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PlanID string "json:\"planID\" graphql:\"planID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.CreatedBy } - -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } - return t.CreatedAt + return t.Description } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } - return t.CreatedBy + return t.Details } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetFeatureID() string { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetFamily() *string { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } - return t.FeatureID + return t.Family } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } return &t.HistoryTime } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetID() string { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetID() string { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } return t.ID } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetMetadata() map[string]interface{} { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetMappedFrameworks() *string { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } - return t.Metadata + return t.MappedFrameworks } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetName() string { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} + } + return t.Name +} +func (t *GetControlHistories_ControlHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetControlHistories_ControlHistories_Edges_Node{} } return &t.Operation } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetOwnerID() *string { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } - return t.OwnerID + return t.Ref } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetPlanID() string { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetSatisfies() *string { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } - return t.PlanID + return t.Satisfies } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetRef() *string { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetSource() *string { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } - return t.Ref + return t.Source } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetTags() []string { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetStatus() *string { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} + } + return t.Status +} +func (t *GetControlHistories_ControlHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetControlHistories_ControlHistories_Edges_Node{} } return t.Tags } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetControlHistories_ControlHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &GetControlHistories_ControlHistories_Edges_Node{} } return t.UpdatedBy } +func (t *GetControlHistories_ControlHistories_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetControlHistories_ControlHistories_Edges_Node{} + } + return t.Version +} -type GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges struct { - Node *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetControlHistories_ControlHistories_Edges struct { + Node *GetControlHistories_ControlHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges) GetNode() *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node { +func (t *GetControlHistories_ControlHistories_Edges) GetNode() *GetControlHistories_ControlHistories_Edges_Node { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges{} + t = &GetControlHistories_ControlHistories_Edges{} } return t.Node } -type GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories struct { - Edges []*GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetControlHistories_ControlHistories struct { + Edges []*GetControlHistories_ControlHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories) GetEdges() []*GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges { +func (t *GetControlHistories_ControlHistories) GetEdges() []*GetControlHistories_ControlHistories_Edges { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories{} + t = &GetControlHistories_ControlHistories{} } return t.Edges } -type GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - FeatureID string "json:\"featureID\" graphql:\"featureID\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - PlanID string "json:\"planID\" graphql:\"planID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlObjectiveType *string "json:\"controlObjectiveType,omitempty\" graphql:\"controlObjectiveType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetClass() *string { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} + } + return t.Class +} +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetControlNumber() *string { + if t == nil { + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} + } + return t.ControlNumber +} +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetControlObjectiveType() *string { + if t == nil { + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} + } + return t.ControlObjectiveType +} +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } return t.CreatedAt } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetCreatedBy() *string { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetCreatedBy() *string { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } return t.CreatedBy } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetFeatureID() string { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetDescription() *string { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } - return t.FeatureID + return t.Description } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetDetails() map[string]interface{} { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } - return &t.HistoryTime + return t.Details } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetID() string { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetFamily() *string { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } - return t.ID + return t.Family } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetMetadata() map[string]interface{} { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetID() string { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } - return t.Metadata + return t.ID } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetOperation() *history.OpType { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetMappedFrameworks() *string { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } - return &t.Operation + return t.MappedFrameworks } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetOwnerID() *string { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetName() string { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } - return t.OwnerID + return t.Name } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetPlanID() string { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetSource() *string { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } - return t.PlanID + return t.Source } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetRef() *string { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetStatus() *string { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } - return t.Ref + return t.Status } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetTags() []string { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetTags() []string { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } return t.Tags } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetUpdatedAt() *time.Time { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } return t.UpdatedAt } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetUpdatedBy() *string { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} } return t.UpdatedBy } +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives) GetVersion() *string { + if t == nil { + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives{} + } + return t.Version +} -type GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges struct { - Node *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateBulkCSVControlObjective_CreateBulkCSVControlObjective struct { + ControlObjectives []*CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives "json:\"controlObjectives,omitempty\" graphql:\"controlObjectives\"" } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges) GetNode() *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node { +func (t *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective) GetControlObjectives() []*CreateBulkCSVControlObjective_CreateBulkCSVControlObjective_ControlObjectives { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges{} + t = &CreateBulkCSVControlObjective_CreateBulkCSVControlObjective{} } - return t.Node + return t.ControlObjectives } -type GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories struct { - Edges []*GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlObjectiveType *string "json:\"controlObjectiveType,omitempty\" graphql:\"controlObjectiveType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories) GetEdges() []*GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetClass() *string { if t == nil { - t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } - return t.Edges + return t.Class } - -type GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Version string "json:\"version\" graphql:\"version\"" +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetControlNumber() *string { + if t == nil { + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} + } + return t.ControlNumber } - -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetControlObjectiveType() *string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} + } + return t.ControlObjectiveType +} +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } return t.CreatedAt } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetCreatedBy() *string { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetCreatedBy() *string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } return t.CreatedBy } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetDescription() *string { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetDescription() *string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } return t.Description } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetDisplayName() *string { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetDetails() map[string]interface{} { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } - return t.DisplayName + return t.Details } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetFamily() *string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } - return &t.HistoryTime + return t.Family } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetID() string { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetID() string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } return t.ID } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetMetadata() map[string]interface{} { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetMappedFrameworks() *string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } - return t.Metadata + return t.MappedFrameworks } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetName() string { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetName() string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } return t.Name } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetOperation() *history.OpType { - if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} - } - return &t.Operation -} -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetOwnerID() *string { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetSource() *string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } - return t.OwnerID + return t.Source } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetRef() *string { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetStatus() *string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } - return t.Ref + return t.Status } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetTags() []string { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetTags() []string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } return t.Tags } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } return t.UpdatedAt } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetUpdatedBy() *string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } return t.UpdatedBy } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetVersion() string { +func (t *CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives) GetVersion() *string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives{} } return t.Version } -type GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges struct { - Node *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateBulkControlObjective_CreateBulkControlObjective struct { + ControlObjectives []*CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives "json:\"controlObjectives,omitempty\" graphql:\"controlObjectives\"" } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges) GetNode() *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node { +func (t *CreateBulkControlObjective_CreateBulkControlObjective) GetControlObjectives() []*CreateBulkControlObjective_CreateBulkControlObjective_ControlObjectives { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges{} + t = &CreateBulkControlObjective_CreateBulkControlObjective{} } - return t.Node + return t.ControlObjectives } -type GetAllEntitlementPlanHistories_EntitlementPlanHistories struct { - Edges []*GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateControlObjective_CreateControlObjective_ControlObjective struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlObjectiveType *string "json:\"controlObjectiveType,omitempty\" graphql:\"controlObjectiveType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories) GetEdges() []*GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetClass() *string { if t == nil { - t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } - return t.Edges + return t.Class } - -type GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Version string "json:\"version\" graphql:\"version\"" +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetControlNumber() *string { + if t == nil { + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} + } + return t.ControlNumber } - -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetControlObjectiveType() *string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} + } + return t.ControlObjectiveType +} +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } return t.CreatedAt } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetCreatedBy() *string { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetCreatedBy() *string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } return t.CreatedBy } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetDescription() *string { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetDescription() *string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } return t.Description } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetDisplayName() *string { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetDetails() map[string]interface{} { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } - return t.DisplayName + return t.Details } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetFamily() *string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } - return &t.HistoryTime + return t.Family } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetID() string { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetID() string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } return t.ID } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetMetadata() map[string]interface{} { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetMappedFrameworks() *string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } - return t.Metadata + return t.MappedFrameworks } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetName() string { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetName() string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } return t.Name } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetOperation() *history.OpType { - if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} - } - return &t.Operation -} -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetOwnerID() *string { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetSource() *string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } - return t.OwnerID + return t.Source } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetRef() *string { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetStatus() *string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } - return t.Ref + return t.Status } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetTags() []string { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetTags() []string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } return t.Tags } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetUpdatedAt() *time.Time { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } return t.UpdatedAt } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetUpdatedBy() *string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } return t.UpdatedBy } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetVersion() string { +func (t *CreateControlObjective_CreateControlObjective_ControlObjective) GetVersion() *string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + t = &CreateControlObjective_CreateControlObjective_ControlObjective{} } return t.Version } -type GetEntitlementPlanHistories_EntitlementPlanHistories_Edges struct { - Node *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateControlObjective_CreateControlObjective struct { + ControlObjective CreateControlObjective_CreateControlObjective_ControlObjective "json:\"controlObjective\" graphql:\"controlObjective\"" } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges) GetNode() *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node { +func (t *CreateControlObjective_CreateControlObjective) GetControlObjective() *CreateControlObjective_CreateControlObjective_ControlObjective { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges{} + t = &CreateControlObjective_CreateControlObjective{} } - return t.Node + return &t.ControlObjective } -type GetEntitlementPlanHistories_EntitlementPlanHistories struct { - Edges []*GetEntitlementPlanHistories_EntitlementPlanHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type DeleteControlObjective_DeleteControlObjective struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetEntitlementPlanHistories_EntitlementPlanHistories) GetEdges() []*GetEntitlementPlanHistories_EntitlementPlanHistories_Edges { +func (t *DeleteControlObjective_DeleteControlObjective) GetDeletedID() string { if t == nil { - t = &GetEntitlementPlanHistories_EntitlementPlanHistories{} + t = &DeleteControlObjective_DeleteControlObjective{} } - return t.Edges + return t.DeletedID } -type CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes struct { - Text string "json:\"text\" graphql:\"text\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetAllControlObjectives_ControlObjectives_Edges_Node struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlObjectiveType *string "json:\"controlObjectiveType,omitempty\" graphql:\"controlObjectiveType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes) GetText() string { - if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes{} - } - return t.Text -} -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes) GetUpdatedAt() *time.Time { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetClass() *string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } - return t.UpdatedAt + return t.Class } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes) GetUpdatedBy() *string { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetControlNumber() *string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } - return t.UpdatedBy -} - -type CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_EntityType struct { - Name string "json:\"name\" graphql:\"name\"" + return t.ControlNumber } - -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_EntityType) GetName() string { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetControlObjectiveType() *string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_EntityType{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } - return t.Name -} - -type CreateBulkCSVEntity_CreateBulkCSVEntity_Entities struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Status *string "json:\"status,omitempty\" graphql:\"status\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - Notes []*CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes "json:\"notes,omitempty\" graphql:\"notes\"" - EntityType *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" - ID string "json:\"id\" graphql:\"id\"" - Name *string "json:\"name,omitempty\" 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\"" + return t.ControlObjectiveType } - -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetCreatedAt() *time.Time { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } return t.CreatedAt } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetCreatedBy() *string { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } return t.CreatedBy } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetDescription() *string { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetDescription() *string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } return t.Description } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetDisplayName() *string { - if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} - } - return t.DisplayName -} -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetStatus() *string { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } - return t.Status + return t.Details } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetDomains() []string { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetFamily() *string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } - return t.Domains + return t.Family } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetNotes() []*CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } - return t.Notes + return t.ID } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetEntityType() *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_EntityType { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetMappedFrameworks() *string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } - return t.EntityType + return t.MappedFrameworks } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetID() string { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetName() string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } - return t.ID + return t.Name } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetName() *string { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetSource() *string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } - return t.Name + return t.Source } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetOwnerID() *string { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetStatus() *string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } - return t.OwnerID + return t.Status } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetTags() []string { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetTags() []string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } return t.Tags } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetUpdatedAt() *time.Time { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } return t.UpdatedAt } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetUpdatedBy() *string { +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} } return t.UpdatedBy } +func (t *GetAllControlObjectives_ControlObjectives_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetAllControlObjectives_ControlObjectives_Edges_Node{} + } + return t.Version +} -type CreateBulkCSVEntity_CreateBulkCSVEntity struct { - Entities []*CreateBulkCSVEntity_CreateBulkCSVEntity_Entities "json:\"entities,omitempty\" graphql:\"entities\"" +type GetAllControlObjectives_ControlObjectives_Edges struct { + Node *GetAllControlObjectives_ControlObjectives_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkCSVEntity_CreateBulkCSVEntity) GetEntities() []*CreateBulkCSVEntity_CreateBulkCSVEntity_Entities { +func (t *GetAllControlObjectives_ControlObjectives_Edges) GetNode() *GetAllControlObjectives_ControlObjectives_Edges_Node { if t == nil { - t = &CreateBulkCSVEntity_CreateBulkCSVEntity{} + t = &GetAllControlObjectives_ControlObjectives_Edges{} } - return t.Entities + return t.Node } -type CreateBulkEntity_CreateBulkEntity_Entities_Notes struct { - Text string "json:\"text\" graphql:\"text\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetAllControlObjectives_ControlObjectives struct { + Edges []*GetAllControlObjectives_ControlObjectives_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkEntity_CreateBulkEntity_Entities_Notes) GetText() string { +func (t *GetAllControlObjectives_ControlObjectives) GetEdges() []*GetAllControlObjectives_ControlObjectives_Edges { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities_Notes{} + t = &GetAllControlObjectives_ControlObjectives{} } - return t.Text + return t.Edges } -func (t *CreateBulkEntity_CreateBulkEntity_Entities_Notes) GetUpdatedAt() *time.Time { + +type GetControlObjectiveByID_ControlObjective struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlObjectiveType *string "json:\"controlObjectiveType,omitempty\" graphql:\"controlObjectiveType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetControlObjectiveByID_ControlObjective) GetClass() *string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities_Notes{} + t = &GetControlObjectiveByID_ControlObjective{} } - return t.UpdatedAt + return t.Class } -func (t *CreateBulkEntity_CreateBulkEntity_Entities_Notes) GetUpdatedBy() *string { +func (t *GetControlObjectiveByID_ControlObjective) GetControlNumber() *string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities_Notes{} + t = &GetControlObjectiveByID_ControlObjective{} } - return t.UpdatedBy -} - -type CreateBulkEntity_CreateBulkEntity_Entities_EntityType struct { - Name string "json:\"name\" graphql:\"name\"" + return t.ControlNumber } - -func (t *CreateBulkEntity_CreateBulkEntity_Entities_EntityType) GetName() string { +func (t *GetControlObjectiveByID_ControlObjective) GetControlObjectiveType() *string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities_EntityType{} + t = &GetControlObjectiveByID_ControlObjective{} } - return t.Name -} - -type CreateBulkEntity_CreateBulkEntity_Entities struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Status *string "json:\"status,omitempty\" graphql:\"status\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - Notes []*CreateBulkEntity_CreateBulkEntity_Entities_Notes "json:\"notes,omitempty\" graphql:\"notes\"" - EntityType *CreateBulkEntity_CreateBulkEntity_Entities_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" - ID string "json:\"id\" graphql:\"id\"" - Name *string "json:\"name,omitempty\" 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\"" + return t.ControlObjectiveType } - -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetCreatedAt() *time.Time { +func (t *GetControlObjectiveByID_ControlObjective) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } return t.CreatedAt } -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetCreatedBy() *string { +func (t *GetControlObjectiveByID_ControlObjective) GetCreatedBy() *string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } return t.CreatedBy } -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetDescription() *string { +func (t *GetControlObjectiveByID_ControlObjective) GetDescription() *string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } return t.Description } -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetDisplayName() *string { - if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} - } - return t.DisplayName -} -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetStatus() *string { +func (t *GetControlObjectiveByID_ControlObjective) GetDetails() map[string]interface{} { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } - return t.Status + return t.Details } -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetDomains() []string { +func (t *GetControlObjectiveByID_ControlObjective) GetFamily() *string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } - return t.Domains + return t.Family } -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetNotes() []*CreateBulkEntity_CreateBulkEntity_Entities_Notes { +func (t *GetControlObjectiveByID_ControlObjective) GetID() string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } - return t.Notes + return t.ID } -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetEntityType() *CreateBulkEntity_CreateBulkEntity_Entities_EntityType { +func (t *GetControlObjectiveByID_ControlObjective) GetMappedFrameworks() *string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } - return t.EntityType + return t.MappedFrameworks } -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetID() string { +func (t *GetControlObjectiveByID_ControlObjective) GetName() string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } - return t.ID + return t.Name } -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetName() *string { +func (t *GetControlObjectiveByID_ControlObjective) GetSource() *string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } - return t.Name + return t.Source } -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetOwnerID() *string { +func (t *GetControlObjectiveByID_ControlObjective) GetStatus() *string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } - return t.OwnerID + return t.Status } -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetTags() []string { +func (t *GetControlObjectiveByID_ControlObjective) GetTags() []string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } return t.Tags } -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetUpdatedAt() *time.Time { +func (t *GetControlObjectiveByID_ControlObjective) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } return t.UpdatedAt } -func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetUpdatedBy() *string { +func (t *GetControlObjectiveByID_ControlObjective) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity_Entities{} + t = &GetControlObjectiveByID_ControlObjective{} } return t.UpdatedBy } - -type CreateBulkEntity_CreateBulkEntity struct { - Entities []*CreateBulkEntity_CreateBulkEntity_Entities "json:\"entities,omitempty\" graphql:\"entities\"" -} - -func (t *CreateBulkEntity_CreateBulkEntity) GetEntities() []*CreateBulkEntity_CreateBulkEntity_Entities { +func (t *GetControlObjectiveByID_ControlObjective) GetVersion() *string { if t == nil { - t = &CreateBulkEntity_CreateBulkEntity{} + t = &GetControlObjectiveByID_ControlObjective{} } - return t.Entities + return t.Version } -type CreateEntity_CreateEntity_Entity_Notes struct { - Text string "json:\"text\" graphql:\"text\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetControlObjectives_ControlObjectives_Edges_Node struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlObjectiveType *string "json:\"controlObjectiveType,omitempty\" graphql:\"controlObjectiveType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *CreateEntity_CreateEntity_Entity_Notes) GetText() string { - if t == nil { - t = &CreateEntity_CreateEntity_Entity_Notes{} - } - return t.Text -} -func (t *CreateEntity_CreateEntity_Entity_Notes) GetUpdatedAt() *time.Time { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetClass() *string { if t == nil { - t = &CreateEntity_CreateEntity_Entity_Notes{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } - return t.UpdatedAt + return t.Class } -func (t *CreateEntity_CreateEntity_Entity_Notes) GetUpdatedBy() *string { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetControlNumber() *string { if t == nil { - t = &CreateEntity_CreateEntity_Entity_Notes{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } - return t.UpdatedBy -} - -type CreateEntity_CreateEntity_Entity_EntityType struct { - Name string "json:\"name\" graphql:\"name\"" + return t.ControlNumber } - -func (t *CreateEntity_CreateEntity_Entity_EntityType) GetName() string { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetControlObjectiveType() *string { if t == nil { - t = &CreateEntity_CreateEntity_Entity_EntityType{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } - return t.Name -} - -type CreateEntity_CreateEntity_Entity struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Status *string "json:\"status,omitempty\" graphql:\"status\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - Notes []*CreateEntity_CreateEntity_Entity_Notes "json:\"notes,omitempty\" graphql:\"notes\"" - EntityType *CreateEntity_CreateEntity_Entity_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" - ID string "json:\"id\" graphql:\"id\"" - Name *string "json:\"name,omitempty\" 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\"" + return t.ControlObjectiveType } - -func (t *CreateEntity_CreateEntity_Entity) GetCreatedAt() *time.Time { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } return t.CreatedAt } -func (t *CreateEntity_CreateEntity_Entity) GetCreatedBy() *string { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } return t.CreatedBy } -func (t *CreateEntity_CreateEntity_Entity) GetDescription() *string { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetDescription() *string { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } return t.Description } -func (t *CreateEntity_CreateEntity_Entity) GetDisplayName() *string { - if t == nil { - t = &CreateEntity_CreateEntity_Entity{} - } - return t.DisplayName -} -func (t *CreateEntity_CreateEntity_Entity) GetStatus() *string { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } - return t.Status + return t.Details } -func (t *CreateEntity_CreateEntity_Entity) GetDomains() []string { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetFamily() *string { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } - return t.Domains + return t.Family } -func (t *CreateEntity_CreateEntity_Entity) GetNotes() []*CreateEntity_CreateEntity_Entity_Notes { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetID() string { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } - return t.Notes + return t.ID } -func (t *CreateEntity_CreateEntity_Entity) GetEntityType() *CreateEntity_CreateEntity_Entity_EntityType { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetMappedFrameworks() *string { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } - return t.EntityType + return t.MappedFrameworks } -func (t *CreateEntity_CreateEntity_Entity) GetID() string { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetName() string { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } - return t.ID + return t.Name } -func (t *CreateEntity_CreateEntity_Entity) GetName() *string { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetSource() *string { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } - return t.Name + return t.Source } -func (t *CreateEntity_CreateEntity_Entity) GetOwnerID() *string { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetStatus() *string { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } - return t.OwnerID + return t.Status } -func (t *CreateEntity_CreateEntity_Entity) GetTags() []string { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetTags() []string { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } return t.Tags } -func (t *CreateEntity_CreateEntity_Entity) GetUpdatedAt() *time.Time { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } return t.UpdatedAt } -func (t *CreateEntity_CreateEntity_Entity) GetUpdatedBy() *string { +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateEntity_CreateEntity_Entity{} + t = &GetControlObjectives_ControlObjectives_Edges_Node{} } return t.UpdatedBy } +func (t *GetControlObjectives_ControlObjectives_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetControlObjectives_ControlObjectives_Edges_Node{} + } + return t.Version +} -type CreateEntity_CreateEntity struct { - Entity CreateEntity_CreateEntity_Entity "json:\"entity\" graphql:\"entity\"" +type GetControlObjectives_ControlObjectives_Edges struct { + Node *GetControlObjectives_ControlObjectives_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateEntity_CreateEntity) GetEntity() *CreateEntity_CreateEntity_Entity { +func (t *GetControlObjectives_ControlObjectives_Edges) GetNode() *GetControlObjectives_ControlObjectives_Edges_Node { if t == nil { - t = &CreateEntity_CreateEntity{} + t = &GetControlObjectives_ControlObjectives_Edges{} } - return &t.Entity + return t.Node } -type DeleteEntity_DeleteEntity struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type GetControlObjectives_ControlObjectives struct { + Edges []*GetControlObjectives_ControlObjectives_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *DeleteEntity_DeleteEntity) GetDeletedID() string { +func (t *GetControlObjectives_ControlObjectives) GetEdges() []*GetControlObjectives_ControlObjectives_Edges { if t == nil { - t = &DeleteEntity_DeleteEntity{} + t = &GetControlObjectives_ControlObjectives{} } - return t.DeletedID + return t.Edges } -type GetAllEntities_Entities_Edges_Node_Notes struct { - Text string "json:\"text\" graphql:\"text\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type UpdateControlObjective_UpdateControlObjective_ControlObjective struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlObjectiveType *string "json:\"controlObjectiveType,omitempty\" graphql:\"controlObjectiveType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetAllEntities_Entities_Edges_Node_Notes) GetText() string { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetClass() *string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node_Notes{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } - return t.Text -} -func (t *GetAllEntities_Entities_Edges_Node_Notes) GetUpdatedAt() *time.Time { - if t == nil { - t = &GetAllEntities_Entities_Edges_Node_Notes{} - } - return t.UpdatedAt + return t.Class } -func (t *GetAllEntities_Entities_Edges_Node_Notes) GetUpdatedBy() *string { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetControlNumber() *string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node_Notes{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } - return t.UpdatedBy -} - -type GetAllEntities_Entities_Edges_Node_EntityType struct { - Name string "json:\"name\" graphql:\"name\"" + return t.ControlNumber } - -func (t *GetAllEntities_Entities_Edges_Node_EntityType) GetName() string { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetControlObjectiveType() *string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node_EntityType{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } - return t.Name -} - -type GetAllEntities_Entities_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Status *string "json:\"status,omitempty\" graphql:\"status\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - Notes []*GetAllEntities_Entities_Edges_Node_Notes "json:\"notes,omitempty\" graphql:\"notes\"" - EntityType *GetAllEntities_Entities_Edges_Node_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" - ID string "json:\"id\" graphql:\"id\"" - Name *string "json:\"name,omitempty\" 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\"" + return t.ControlObjectiveType } - -func (t *GetAllEntities_Entities_Edges_Node) GetCreatedAt() *time.Time { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } return t.CreatedAt } -func (t *GetAllEntities_Entities_Edges_Node) GetCreatedBy() *string { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetCreatedBy() *string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } return t.CreatedBy } -func (t *GetAllEntities_Entities_Edges_Node) GetDescription() *string { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetDescription() *string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } return t.Description } -func (t *GetAllEntities_Entities_Edges_Node) GetDisplayName() *string { - if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} - } - return t.DisplayName -} -func (t *GetAllEntities_Entities_Edges_Node) GetStatus() *string { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetDetails() map[string]interface{} { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } - return t.Status + return t.Details } -func (t *GetAllEntities_Entities_Edges_Node) GetDomains() []string { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetFamily() *string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } - return t.Domains + return t.Family } -func (t *GetAllEntities_Entities_Edges_Node) GetNotes() []*GetAllEntities_Entities_Edges_Node_Notes { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetID() string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } - return t.Notes + return t.ID } -func (t *GetAllEntities_Entities_Edges_Node) GetEntityType() *GetAllEntities_Entities_Edges_Node_EntityType { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetMappedFrameworks() *string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } - return t.EntityType + return t.MappedFrameworks } -func (t *GetAllEntities_Entities_Edges_Node) GetID() string { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetName() string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } - return t.ID + return t.Name } -func (t *GetAllEntities_Entities_Edges_Node) GetName() *string { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetSource() *string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } - return t.Name + return t.Source } -func (t *GetAllEntities_Entities_Edges_Node) GetOwnerID() *string { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetStatus() *string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } - return t.OwnerID + return t.Status } -func (t *GetAllEntities_Entities_Edges_Node) GetTags() []string { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetTags() []string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } return t.Tags } -func (t *GetAllEntities_Entities_Edges_Node) GetUpdatedAt() *time.Time { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } return t.UpdatedAt } -func (t *GetAllEntities_Entities_Edges_Node) GetUpdatedBy() *string { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetUpdatedBy() *string { if t == nil { - t = &GetAllEntities_Entities_Edges_Node{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } return t.UpdatedBy } - -type GetAllEntities_Entities_Edges struct { - Node *GetAllEntities_Entities_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" -} - -func (t *GetAllEntities_Entities_Edges) GetNode() *GetAllEntities_Entities_Edges_Node { +func (t *UpdateControlObjective_UpdateControlObjective_ControlObjective) GetVersion() *string { if t == nil { - t = &GetAllEntities_Entities_Edges{} + t = &UpdateControlObjective_UpdateControlObjective_ControlObjective{} } - return t.Node + return t.Version } -type GetAllEntities_Entities struct { - Edges []*GetAllEntities_Entities_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type UpdateControlObjective_UpdateControlObjective struct { + ControlObjective UpdateControlObjective_UpdateControlObjective_ControlObjective "json:\"controlObjective\" graphql:\"controlObjective\"" } -func (t *GetAllEntities_Entities) GetEdges() []*GetAllEntities_Entities_Edges { +func (t *UpdateControlObjective_UpdateControlObjective) GetControlObjective() *UpdateControlObjective_UpdateControlObjective_ControlObjective { if t == nil { - t = &GetAllEntities_Entities{} + t = &UpdateControlObjective_UpdateControlObjective{} } - return t.Edges + return &t.ControlObjective } -type GetEntities_Entities_Edges_Node_Notes struct { - Text string "json:\"text\" graphql:\"text\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlObjectiveType *string "json:\"controlObjectiveType,omitempty\" graphql:\"controlObjectiveType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetEntities_Entities_Edges_Node_Notes) GetText() string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetClass() *string { if t == nil { - t = &GetEntities_Entities_Edges_Node_Notes{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Text + return t.Class } -func (t *GetEntities_Entities_Edges_Node_Notes) GetUpdatedAt() *time.Time { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetControlNumber() *string { if t == nil { - t = &GetEntities_Entities_Edges_Node_Notes{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.UpdatedAt + return t.ControlNumber } -func (t *GetEntities_Entities_Edges_Node_Notes) GetUpdatedBy() *string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetControlObjectiveType() *string { if t == nil { - t = &GetEntities_Entities_Edges_Node_Notes{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.UpdatedBy -} - -type GetEntities_Entities_Edges_Node_EntityType struct { - Name string "json:\"name\" graphql:\"name\"" + return t.ControlObjectiveType } - -func (t *GetEntities_Entities_Edges_Node_EntityType) GetName() string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetEntities_Entities_Edges_Node_EntityType{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Name + return t.CreatedAt } - -type GetEntities_Entities_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Status *string "json:\"status,omitempty\" graphql:\"status\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - Notes []*GetEntities_Entities_Edges_Node_Notes "json:\"notes,omitempty\" graphql:\"notes\"" - EntityType *GetEntities_Entities_Edges_Node_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" - ID string "json:\"id\" graphql:\"id\"" - Name *string "json:\"name,omitempty\" 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\"" +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} + } + return t.CreatedBy } - -func (t *GetEntities_Entities_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.CreatedAt + return t.Description } -func (t *GetEntities_Entities_Edges_Node) GetCreatedBy() *string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.CreatedBy + return t.Details } -func (t *GetEntities_Entities_Edges_Node) GetDescription() *string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetFamily() *string { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Description + return t.Family } -func (t *GetEntities_Entities_Edges_Node) GetDisplayName() *string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.DisplayName + return &t.HistoryTime } -func (t *GetEntities_Entities_Edges_Node) GetStatus() *string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetID() string { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Status + return t.ID } -func (t *GetEntities_Entities_Edges_Node) GetDomains() []string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetMappedFrameworks() *string { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Domains + return t.MappedFrameworks } -func (t *GetEntities_Entities_Edges_Node) GetNotes() []*GetEntities_Entities_Edges_Node_Notes { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetName() string { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Notes + return t.Name } -func (t *GetEntities_Entities_Edges_Node) GetEntityType() *GetEntities_Entities_Edges_Node_EntityType { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.EntityType + return &t.Operation } -func (t *GetEntities_Entities_Edges_Node) GetID() string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.ID + return t.Ref } -func (t *GetEntities_Entities_Edges_Node) GetName() *string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetSource() *string { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Name + return t.Source } -func (t *GetEntities_Entities_Edges_Node) GetOwnerID() *string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetStatus() *string { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.OwnerID + return t.Status } -func (t *GetEntities_Entities_Edges_Node) GetTags() []string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } return t.Tags } -func (t *GetEntities_Entities_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetEntities_Entities_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetEntities_Entities_Edges_Node{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } return t.UpdatedBy } +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} + } + return t.Version +} -type GetEntities_Entities_Edges struct { - Node *GetEntities_Entities_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges struct { + Node *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetEntities_Entities_Edges) GetNode() *GetEntities_Entities_Edges_Node { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges) GetNode() *GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges_Node { if t == nil { - t = &GetEntities_Entities_Edges{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges{} } return t.Node } -type GetEntities_Entities struct { - Edges []*GetEntities_Entities_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllControlObjectiveHistories_ControlObjectiveHistories struct { + Edges []*GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetEntities_Entities) GetEdges() []*GetEntities_Entities_Edges { +func (t *GetAllControlObjectiveHistories_ControlObjectiveHistories) GetEdges() []*GetAllControlObjectiveHistories_ControlObjectiveHistories_Edges { if t == nil { - t = &GetEntities_Entities{} + t = &GetAllControlObjectiveHistories_ControlObjectiveHistories{} } return t.Edges } -type GetEntityByID_Entity_Notes struct { - Text string "json:\"text\" graphql:\"text\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + ControlNumber *string "json:\"controlNumber,omitempty\" graphql:\"controlNumber\"" + ControlObjectiveType *string "json:\"controlObjectiveType,omitempty\" graphql:\"controlObjectiveType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetEntityByID_Entity_Notes) GetText() string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetClass() *string { if t == nil { - t = &GetEntityByID_Entity_Notes{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Text + return t.Class } -func (t *GetEntityByID_Entity_Notes) GetUpdatedAt() *time.Time { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetControlNumber() *string { if t == nil { - t = &GetEntityByID_Entity_Notes{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.UpdatedAt + return t.ControlNumber } -func (t *GetEntityByID_Entity_Notes) GetUpdatedBy() *string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetControlObjectiveType() *string { if t == nil { - t = &GetEntityByID_Entity_Notes{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.UpdatedBy -} - -type GetEntityByID_Entity_EntityType struct { - Name string "json:\"name\" graphql:\"name\"" + return t.ControlObjectiveType } - -func (t *GetEntityByID_Entity_EntityType) GetName() string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetEntityByID_Entity_EntityType{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Name -} - -type GetEntityByID_Entity_Contacts struct { - ID string "json:\"id\" graphql:\"id\"" - FullName string "json:\"fullName\" graphql:\"fullName\"" - Email *string "json:\"email,omitempty\" graphql:\"email\"" - Title *string "json:\"title,omitempty\" graphql:\"title\"" - Company *string "json:\"company,omitempty\" graphql:\"company\"" - Address *string "json:\"address,omitempty\" graphql:\"address\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" + return t.CreatedAt } - -func (t *GetEntityByID_Entity_Contacts) GetID() string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetEntityByID_Entity_Contacts{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.ID + return t.CreatedBy } -func (t *GetEntityByID_Entity_Contacts) GetFullName() string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetEntityByID_Entity_Contacts{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.FullName + return t.Description } -func (t *GetEntityByID_Entity_Contacts) GetEmail() *string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &GetEntityByID_Entity_Contacts{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Email + return t.Details } -func (t *GetEntityByID_Entity_Contacts) GetTitle() *string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetFamily() *string { if t == nil { - t = &GetEntityByID_Entity_Contacts{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Title + return t.Family } -func (t *GetEntityByID_Entity_Contacts) GetCompany() *string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetEntityByID_Entity_Contacts{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Company + return &t.HistoryTime } -func (t *GetEntityByID_Entity_Contacts) GetAddress() *string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetID() string { if t == nil { - t = &GetEntityByID_Entity_Contacts{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Address + return t.ID } -func (t *GetEntityByID_Entity_Contacts) GetPhoneNumber() *string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetMappedFrameworks() *string { if t == nil { - t = &GetEntityByID_Entity_Contacts{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.PhoneNumber -} - -type GetEntityByID_Entity struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Status *string "json:\"status,omitempty\" graphql:\"status\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - Notes []*GetEntityByID_Entity_Notes "json:\"notes,omitempty\" graphql:\"notes\"" - EntityType *GetEntityByID_Entity_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" - ID string "json:\"id\" graphql:\"id\"" - Name *string "json:\"name,omitempty\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Contacts []*GetEntityByID_Entity_Contacts "json:\"contacts,omitempty\" graphql:\"contacts\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.MappedFrameworks } - -func (t *GetEntityByID_Entity) GetCreatedAt() *time.Time { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetName() string { if t == nil { - t = &GetEntityByID_Entity{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.CreatedAt + return t.Name } -func (t *GetEntityByID_Entity) GetCreatedBy() *string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetEntityByID_Entity{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.CreatedBy + return &t.Operation } -func (t *GetEntityByID_Entity) GetDescription() *string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetEntityByID_Entity{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Description + return t.Ref } -func (t *GetEntityByID_Entity) GetDisplayName() *string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetSource() *string { if t == nil { - t = &GetEntityByID_Entity{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.DisplayName + return t.Source } -func (t *GetEntityByID_Entity) GetStatus() *string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetStatus() *string { if t == nil { - t = &GetEntityByID_Entity{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } return t.Status } -func (t *GetEntityByID_Entity) GetDomains() []string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetEntityByID_Entity{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Domains + return t.Tags } -func (t *GetEntityByID_Entity) GetNotes() []*GetEntityByID_Entity_Notes { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetEntityByID_Entity{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.Notes + return t.UpdatedAt } -func (t *GetEntityByID_Entity) GetEntityType() *GetEntityByID_Entity_EntityType { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetEntityByID_Entity{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.EntityType + return t.UpdatedBy } -func (t *GetEntityByID_Entity) GetID() string { +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node) GetVersion() *string { if t == nil { - t = &GetEntityByID_Entity{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node{} } - return t.ID + return t.Version } -func (t *GetEntityByID_Entity) GetName() *string { + +type GetControlObjectiveHistories_ControlObjectiveHistories_Edges struct { + Node *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetControlObjectiveHistories_ControlObjectiveHistories_Edges) GetNode() *GetControlObjectiveHistories_ControlObjectiveHistories_Edges_Node { if t == nil { - t = &GetEntityByID_Entity{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories_Edges{} } - return t.Name + return t.Node } -func (t *GetEntityByID_Entity) GetOwnerID() *string { + +type GetControlObjectiveHistories_ControlObjectiveHistories struct { + Edges []*GetControlObjectiveHistories_ControlObjectiveHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetControlObjectiveHistories_ControlObjectiveHistories) GetEdges() []*GetControlObjectiveHistories_ControlObjectiveHistories_Edges { if t == nil { - t = &GetEntityByID_Entity{} + t = &GetControlObjectiveHistories_ControlObjectiveHistories{} } - return t.OwnerID + return t.Edges } -func (t *GetEntityByID_Entity) GetContacts() []*GetEntityByID_Entity_Contacts { + +type CreateDocumentData_CreateDocumentData_DocumentData struct { + ID string "json:\"id\" graphql:\"id\"" + TemplateID string "json:\"templateID\" graphql:\"templateID\"" + Data json.RawMessage "json:\"data\" graphql:\"data\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetID() string { if t == nil { - t = &GetEntityByID_Entity{} + t = &CreateDocumentData_CreateDocumentData_DocumentData{} } - return t.Contacts + return t.ID } -func (t *GetEntityByID_Entity) GetTags() []string { +func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetTemplateID() string { if t == nil { - t = &GetEntityByID_Entity{} + t = &CreateDocumentData_CreateDocumentData_DocumentData{} } - return t.Tags + return t.TemplateID } -func (t *GetEntityByID_Entity) GetUpdatedAt() *time.Time { +func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetData() *json.RawMessage { if t == nil { - t = &GetEntityByID_Entity{} + t = &CreateDocumentData_CreateDocumentData_DocumentData{} } - return t.UpdatedAt + return &t.Data } -func (t *GetEntityByID_Entity) GetUpdatedBy() *string { +func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetCreatedAt() *time.Time { if t == nil { - t = &GetEntityByID_Entity{} + t = &CreateDocumentData_CreateDocumentData_DocumentData{} } - return t.UpdatedBy -} - -type UpdateEntity_UpdateEntity_Entity_Notes struct { - Text string "json:\"text\" graphql:\"text\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.CreatedAt } - -func (t *UpdateEntity_UpdateEntity_Entity_Notes) GetText() string { +func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetCreatedBy() *string { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity_Notes{} + t = &CreateDocumentData_CreateDocumentData_DocumentData{} } - return t.Text + return t.CreatedBy } -func (t *UpdateEntity_UpdateEntity_Entity_Notes) GetUpdatedAt() *time.Time { +func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity_Notes{} + t = &CreateDocumentData_CreateDocumentData_DocumentData{} } return t.UpdatedAt } -func (t *UpdateEntity_UpdateEntity_Entity_Notes) GetUpdatedBy() *string { +func (t *CreateDocumentData_CreateDocumentData_DocumentData) GetUpdatedBy() *string { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity_Notes{} + t = &CreateDocumentData_CreateDocumentData_DocumentData{} } return t.UpdatedBy } -type UpdateEntity_UpdateEntity_Entity_EntityType struct { - Name string "json:\"name\" graphql:\"name\"" +type CreateDocumentData_CreateDocumentData struct { + DocumentData CreateDocumentData_CreateDocumentData_DocumentData "json:\"documentData\" graphql:\"documentData\"" } -func (t *UpdateEntity_UpdateEntity_Entity_EntityType) GetName() string { +func (t *CreateDocumentData_CreateDocumentData) GetDocumentData() *CreateDocumentData_CreateDocumentData_DocumentData { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity_EntityType{} + t = &CreateDocumentData_CreateDocumentData{} } - return t.Name + return &t.DocumentData } -type UpdateEntity_UpdateEntity_Entity struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Status *string "json:\"status,omitempty\" graphql:\"status\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - Notes []*UpdateEntity_UpdateEntity_Entity_Notes "json:\"notes,omitempty\" graphql:\"notes\"" - EntityType *UpdateEntity_UpdateEntity_Entity_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" - ID string "json:\"id\" graphql:\"id\"" - Name *string "json:\"name,omitempty\" 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\"" +type DeleteDocumentData_DeleteDocumentData struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *UpdateEntity_UpdateEntity_Entity) GetCreatedAt() *time.Time { +func (t *DeleteDocumentData_DeleteDocumentData) GetDeletedID() string { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &DeleteDocumentData_DeleteDocumentData{} } - return t.CreatedAt + return t.DeletedID } -func (t *UpdateEntity_UpdateEntity_Entity) GetCreatedBy() *string { + +type GetDocumentDataByID_DocumentData struct { + ID string "json:\"id\" graphql:\"id\"" + TemplateID string "json:\"templateID\" graphql:\"templateID\"" + Data json.RawMessage "json:\"data\" graphql:\"data\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetDocumentDataByID_DocumentData) GetID() string { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &GetDocumentDataByID_DocumentData{} } - return t.CreatedBy + return t.ID } -func (t *UpdateEntity_UpdateEntity_Entity) GetDescription() *string { +func (t *GetDocumentDataByID_DocumentData) GetTemplateID() string { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &GetDocumentDataByID_DocumentData{} } - return t.Description + return t.TemplateID } -func (t *UpdateEntity_UpdateEntity_Entity) GetDisplayName() *string { +func (t *GetDocumentDataByID_DocumentData) GetData() *json.RawMessage { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &GetDocumentDataByID_DocumentData{} } - return t.DisplayName + return &t.Data } -func (t *UpdateEntity_UpdateEntity_Entity) GetStatus() *string { +func (t *GetDocumentDataByID_DocumentData) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &GetDocumentDataByID_DocumentData{} } - return t.Status + return t.CreatedAt } -func (t *UpdateEntity_UpdateEntity_Entity) GetDomains() []string { +func (t *GetDocumentDataByID_DocumentData) GetCreatedBy() *string { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &GetDocumentDataByID_DocumentData{} } - return t.Domains + return t.CreatedBy } -func (t *UpdateEntity_UpdateEntity_Entity) GetNotes() []*UpdateEntity_UpdateEntity_Entity_Notes { +func (t *GetDocumentDataByID_DocumentData) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &GetDocumentDataByID_DocumentData{} } - return t.Notes + return t.UpdatedAt } -func (t *UpdateEntity_UpdateEntity_Entity) GetEntityType() *UpdateEntity_UpdateEntity_Entity_EntityType { +func (t *GetDocumentDataByID_DocumentData) GetUpdatedBy() *string { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &GetDocumentDataByID_DocumentData{} } - return t.EntityType + return t.UpdatedBy } -func (t *UpdateEntity_UpdateEntity_Entity) GetID() string { + +type UpdateDocumentData_UpdateDocumentData_DocumentData struct { + ID string "json:\"id\" graphql:\"id\"" + TemplateID string "json:\"templateID\" graphql:\"templateID\"" + Data json.RawMessage "json:\"data\" graphql:\"data\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetID() string { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} } return t.ID } -func (t *UpdateEntity_UpdateEntity_Entity) GetName() *string { +func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetTemplateID() string { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} } - return t.Name + return t.TemplateID } -func (t *UpdateEntity_UpdateEntity_Entity) GetOwnerID() *string { +func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetData() *json.RawMessage { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} } - return t.OwnerID + return &t.Data } -func (t *UpdateEntity_UpdateEntity_Entity) GetTags() []string { +func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} } - return t.Tags + return t.CreatedAt } -func (t *UpdateEntity_UpdateEntity_Entity) GetUpdatedAt() *time.Time { +func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetCreatedBy() *string { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} + } + return t.CreatedBy +} +func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} } return t.UpdatedAt } -func (t *UpdateEntity_UpdateEntity_Entity) GetUpdatedBy() *string { +func (t *UpdateDocumentData_UpdateDocumentData_DocumentData) GetUpdatedBy() *string { if t == nil { - t = &UpdateEntity_UpdateEntity_Entity{} + t = &UpdateDocumentData_UpdateDocumentData_DocumentData{} } return t.UpdatedBy } -type UpdateEntity_UpdateEntity struct { - Entity UpdateEntity_UpdateEntity_Entity "json:\"entity\" graphql:\"entity\"" +type UpdateDocumentData_UpdateDocumentData struct { + DocumentData UpdateDocumentData_UpdateDocumentData_DocumentData "json:\"documentData\" graphql:\"documentData\"" } -func (t *UpdateEntity_UpdateEntity) GetEntity() *UpdateEntity_UpdateEntity_Entity { +func (t *UpdateDocumentData_UpdateDocumentData) GetDocumentData() *UpdateDocumentData_UpdateDocumentData_DocumentData { if t == nil { - t = &UpdateEntity_UpdateEntity{} + t = &UpdateDocumentData_UpdateDocumentData{} } - return &t.Entity + return &t.DocumentData } -type GetAllEntityHistories_EntityHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - EntityTypeID *string "json:\"entityTypeID,omitempty\" graphql:\"entityTypeID\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Name *string "json:\"name,omitempty\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Status *string "json:\"status,omitempty\" graphql:\"status\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Data json.RawMessage "json:\"data\" graphql:\"data\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TemplateID string "json:\"templateID\" graphql:\"templateID\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.CreatedAt } -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.CreatedBy } -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetDescription() *string { - if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} - } - return t.Description -} -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetDisplayName() *string { - if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} - } - return t.DisplayName -} -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetDomains() []string { - if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} - } - return t.Domains -} -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetEntityTypeID() *string { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetData() *json.RawMessage { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} } - return t.EntityTypeID + return &t.Data } -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return &t.HistoryTime } -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetID() string { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetID() string { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.ID } -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetName() *string { - if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} - } - return t.Name -} -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return &t.Operation } -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetOwnerID() *string { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.OwnerID } -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetRef() *string { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.Ref } -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetStatus() *string { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} } - return t.Status + return t.Tags } -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetTags() []string { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetTemplateID() string { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} } - return t.Tags + return t.TemplateID } -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges_Node{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.UpdatedBy } -type GetAllEntityHistories_EntityHistories_Edges struct { - Node *GetAllEntityHistories_EntityHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllDocumentDataHistories_DocumentDataHistories_Edges struct { + Node *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllEntityHistories_EntityHistories_Edges) GetNode() *GetAllEntityHistories_EntityHistories_Edges_Node { +func (t *GetAllDocumentDataHistories_DocumentDataHistories_Edges) GetNode() *GetAllDocumentDataHistories_DocumentDataHistories_Edges_Node { if t == nil { - t = &GetAllEntityHistories_EntityHistories_Edges{} + t = &GetAllDocumentDataHistories_DocumentDataHistories_Edges{} } return t.Node } -type GetAllEntityHistories_EntityHistories struct { - Edges []*GetAllEntityHistories_EntityHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllDocumentDataHistories_DocumentDataHistories struct { + Edges []*GetAllDocumentDataHistories_DocumentDataHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllEntityHistories_EntityHistories) GetEdges() []*GetAllEntityHistories_EntityHistories_Edges { +func (t *GetAllDocumentDataHistories_DocumentDataHistories) GetEdges() []*GetAllDocumentDataHistories_DocumentDataHistories_Edges { if t == nil { - t = &GetAllEntityHistories_EntityHistories{} + t = &GetAllDocumentDataHistories_DocumentDataHistories{} } return t.Edges } -type GetEntityHistories_EntityHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - EntityTypeID *string "json:\"entityTypeID,omitempty\" graphql:\"entityTypeID\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Name *string "json:\"name,omitempty\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Status *string "json:\"status,omitempty\" graphql:\"status\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetDocumentDataHistories_DocumentDataHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Data json.RawMessage "json:\"data\" graphql:\"data\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TemplateID string "json:\"templateID\" graphql:\"templateID\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.CreatedAt } -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.CreatedBy } -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetDescription() *string { - if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} - } - return t.Description -} -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetDisplayName() *string { - if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} - } - return t.DisplayName -} -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetDomains() []string { - if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} - } - return t.Domains -} -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetEntityTypeID() *string { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetData() *json.RawMessage { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} } - return t.EntityTypeID + return &t.Data } -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return &t.HistoryTime } -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetID() string { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetID() string { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.ID } -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetName() *string { - if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} - } - return t.Name -} -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return &t.Operation } -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetOwnerID() *string { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.OwnerID } -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetRef() *string { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.Ref } -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetStatus() *string { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} } - return t.Status + return t.Tags } -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetTags() []string { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetTemplateID() string { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} } - return t.Tags + return t.TemplateID } -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetEntityHistories_EntityHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges_Node{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges_Node{} } return t.UpdatedBy } -type GetEntityHistories_EntityHistories_Edges struct { - Node *GetEntityHistories_EntityHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetDocumentDataHistories_DocumentDataHistories_Edges struct { + Node *GetDocumentDataHistories_DocumentDataHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetEntityHistories_EntityHistories_Edges) GetNode() *GetEntityHistories_EntityHistories_Edges_Node { +func (t *GetDocumentDataHistories_DocumentDataHistories_Edges) GetNode() *GetDocumentDataHistories_DocumentDataHistories_Edges_Node { if t == nil { - t = &GetEntityHistories_EntityHistories_Edges{} + t = &GetDocumentDataHistories_DocumentDataHistories_Edges{} } return t.Node } -type GetEntityHistories_EntityHistories struct { - Edges []*GetEntityHistories_EntityHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetDocumentDataHistories_DocumentDataHistories struct { + Edges []*GetDocumentDataHistories_DocumentDataHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetEntityHistories_EntityHistories) GetEdges() []*GetEntityHistories_EntityHistories_Edges { +func (t *GetDocumentDataHistories_DocumentDataHistories) GetEdges() []*GetDocumentDataHistories_DocumentDataHistories_Edges { if t == nil { - t = &GetEntityHistories_EntityHistories{} + t = &GetDocumentDataHistories_DocumentDataHistories{} } return t.Edges } -type CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - ID string "json:\"id\" graphql:\"id\"" - 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\"" +type CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetCreatedAt() *time.Time { +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan) GetID() string { if t == nil { - t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan{} } - return t.CreatedAt + return t.ID } -func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetCreatedBy() *string { +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan) GetName() string { if t == nil { - t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan{} } - return t.CreatedBy + return t.Name } -func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetID() string { + +type CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" +} + +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization) GetID() string { if t == nil { - t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization{} } return t.ID } -func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetName() string { +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization) GetName() string { if t == nil { - t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization{} } return t.Name } -func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetOwnerID() *string { - if t == nil { - t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} - } - return t.OwnerID + +type CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements struct { + ID string "json:\"id\" graphql:\"id\"" + Plan CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan "json:\"plan\" graphql:\"plan\"" + Expires bool "json:\"expires\" graphql:\"expires\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" + ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" + ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" + Organization CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization "json:\"organization\" graphql:\"organization\"" } -func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetTags() []string { + +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetID() string { if t == nil { - t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} } - return t.Tags + return t.ID } -func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetUpdatedAt() *time.Time { +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetPlan() *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Plan { if t == nil { - t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} } - return t.UpdatedAt + return &t.Plan } -func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetUpdatedBy() *string { +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetExpires() bool { if t == nil { - t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} } - return t.UpdatedBy -} - -type CreateBulkCSVEntityType_CreateBulkCSVEntityType struct { - EntityTypes []*CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes "json:\"entityTypes,omitempty\" graphql:\"entityTypes\"" + return t.Expires } - -func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType) GetEntityTypes() []*CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes { +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetExpiresAt() *time.Time { if t == nil { - t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} } - return t.EntityTypes -} - -type CreateBulkEntityType_CreateBulkEntityType_EntityTypes struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - ID string "json:\"id\" graphql:\"id\"" - 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\"" + return t.ExpiresAt } - -func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetCreatedAt() *time.Time { +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetCancelled() bool { if t == nil { - t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} } - return t.CreatedAt + return t.Cancelled } -func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetCreatedBy() *string { +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetExternalCustomerID() *string { if t == nil { - t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} } - return t.CreatedBy + return t.ExternalCustomerID } -func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetID() string { +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetExternalSubscriptionID() *string { if t == nil { - t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} } - return t.ID + return t.ExternalSubscriptionID } -func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetName() string { +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements) GetOrganization() *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements_Organization { if t == nil { - t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements{} } - return t.Name + return &t.Organization } -func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetOwnerID() *string { - if t == nil { - t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} - } - return t.OwnerID + +type CreateBulkCSVEntitlement_CreateBulkCSVEntitlement struct { + Entitlements []*CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements "json:\"entitlements,omitempty\" graphql:\"entitlements\"" } -func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetTags() []string { + +func (t *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement) GetEntitlements() []*CreateBulkCSVEntitlement_CreateBulkCSVEntitlement_Entitlements { if t == nil { - t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} + t = &CreateBulkCSVEntitlement_CreateBulkCSVEntitlement{} } - return t.Tags + return t.Entitlements } -func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetUpdatedAt() *time.Time { + +type CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" +} + +func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan) GetID() string { if t == nil { - t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} + t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan{} } - return t.UpdatedAt + return t.ID } -func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetUpdatedBy() *string { +func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan) GetName() string { if t == nil { - t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} + t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan{} } - return t.UpdatedBy + return t.Name } -type CreateBulkEntityType_CreateBulkEntityType struct { - EntityTypes []*CreateBulkEntityType_CreateBulkEntityType_EntityTypes "json:\"entityTypes,omitempty\" graphql:\"entityTypes\"" +type CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *CreateBulkEntityType_CreateBulkEntityType) GetEntityTypes() []*CreateBulkEntityType_CreateBulkEntityType_EntityTypes { +func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization) GetID() string { if t == nil { - t = &CreateBulkEntityType_CreateBulkEntityType{} + t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization{} } - return t.EntityTypes + return t.ID +} +func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization) GetName() string { + if t == nil { + t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization{} + } + return t.Name } -type CreateEntityType_CreateEntityType_EntityType struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - ID string "json:\"id\" graphql:\"id\"" - 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\"" +type CreateBulkEntitlement_CreateBulkEntitlement_Entitlements struct { + ID string "json:\"id\" graphql:\"id\"" + Plan CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan "json:\"plan\" graphql:\"plan\"" + Organization CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization "json:\"organization\" graphql:\"organization\"" + Expires bool "json:\"expires\" graphql:\"expires\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" + ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" + ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" } -func (t *CreateEntityType_CreateEntityType_EntityType) GetCreatedAt() *time.Time { +func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetID() string { if t == nil { - t = &CreateEntityType_CreateEntityType_EntityType{} + t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} } - return t.CreatedAt + return t.ID } -func (t *CreateEntityType_CreateEntityType_EntityType) GetCreatedBy() *string { +func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetPlan() *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Plan { if t == nil { - t = &CreateEntityType_CreateEntityType_EntityType{} + t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} } - return t.CreatedBy + return &t.Plan } -func (t *CreateEntityType_CreateEntityType_EntityType) GetID() string { +func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetOrganization() *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements_Organization { if t == nil { - t = &CreateEntityType_CreateEntityType_EntityType{} + t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} } - return t.ID + return &t.Organization } -func (t *CreateEntityType_CreateEntityType_EntityType) GetName() string { +func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetExpires() bool { if t == nil { - t = &CreateEntityType_CreateEntityType_EntityType{} + t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} } - return t.Name + return t.Expires } -func (t *CreateEntityType_CreateEntityType_EntityType) GetOwnerID() *string { +func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetExpiresAt() *time.Time { if t == nil { - t = &CreateEntityType_CreateEntityType_EntityType{} + t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} } - return t.OwnerID + return t.ExpiresAt } -func (t *CreateEntityType_CreateEntityType_EntityType) GetTags() []string { +func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetCancelled() bool { if t == nil { - t = &CreateEntityType_CreateEntityType_EntityType{} + t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} } - return t.Tags + return t.Cancelled } -func (t *CreateEntityType_CreateEntityType_EntityType) GetUpdatedAt() *time.Time { +func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetExternalCustomerID() *string { if t == nil { - t = &CreateEntityType_CreateEntityType_EntityType{} + t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} } - return t.UpdatedAt + return t.ExternalCustomerID } -func (t *CreateEntityType_CreateEntityType_EntityType) GetUpdatedBy() *string { +func (t *CreateBulkEntitlement_CreateBulkEntitlement_Entitlements) GetExternalSubscriptionID() *string { if t == nil { - t = &CreateEntityType_CreateEntityType_EntityType{} + t = &CreateBulkEntitlement_CreateBulkEntitlement_Entitlements{} } - return t.UpdatedBy + return t.ExternalSubscriptionID } -type CreateEntityType_CreateEntityType struct { - EntityType CreateEntityType_CreateEntityType_EntityType "json:\"entityType\" graphql:\"entityType\"" +type CreateBulkEntitlement_CreateBulkEntitlement struct { + Entitlements []*CreateBulkEntitlement_CreateBulkEntitlement_Entitlements "json:\"entitlements,omitempty\" graphql:\"entitlements\"" } -func (t *CreateEntityType_CreateEntityType) GetEntityType() *CreateEntityType_CreateEntityType_EntityType { +func (t *CreateBulkEntitlement_CreateBulkEntitlement) GetEntitlements() []*CreateBulkEntitlement_CreateBulkEntitlement_Entitlements { if t == nil { - t = &CreateEntityType_CreateEntityType{} + t = &CreateBulkEntitlement_CreateBulkEntitlement{} } - return &t.EntityType + return t.Entitlements } -type DeleteEntityType_DeleteEntityType struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type CreateEntitlement_CreateEntitlement_Entitlement_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *DeleteEntityType_DeleteEntityType) GetDeletedID() string { +func (t *CreateEntitlement_CreateEntitlement_Entitlement_Plan) GetID() string { if t == nil { - t = &DeleteEntityType_DeleteEntityType{} + t = &CreateEntitlement_CreateEntitlement_Entitlement_Plan{} } - return t.DeletedID + return t.ID } - -type GetAllEntityTypes_EntityTypes_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - ID string "json:\"id\" graphql:\"id\"" - 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\"" +func (t *CreateEntitlement_CreateEntitlement_Entitlement_Plan) GetName() string { + if t == nil { + t = &CreateEntitlement_CreateEntitlement_Entitlement_Plan{} + } + return t.Name } -func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetCreatedAt() *time.Time { +type CreateEntitlement_CreateEntitlement_Entitlement_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" +} + +func (t *CreateEntitlement_CreateEntitlement_Entitlement_Organization) GetID() string { if t == nil { - t = &GetAllEntityTypes_EntityTypes_Edges_Node{} + t = &CreateEntitlement_CreateEntitlement_Entitlement_Organization{} } - return t.CreatedAt + return t.ID } -func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetCreatedBy() *string { +func (t *CreateEntitlement_CreateEntitlement_Entitlement_Organization) GetName() string { if t == nil { - t = &GetAllEntityTypes_EntityTypes_Edges_Node{} + t = &CreateEntitlement_CreateEntitlement_Entitlement_Organization{} } - return t.CreatedBy + return t.Name } -func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetID() string { + +type CreateEntitlement_CreateEntitlement_Entitlement struct { + ID string "json:\"id\" graphql:\"id\"" + Plan CreateEntitlement_CreateEntitlement_Entitlement_Plan "json:\"plan\" graphql:\"plan\"" + Organization CreateEntitlement_CreateEntitlement_Entitlement_Organization "json:\"organization\" graphql:\"organization\"" + Expires bool "json:\"expires\" graphql:\"expires\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" + ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" + ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" +} + +func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetID() string { if t == nil { - t = &GetAllEntityTypes_EntityTypes_Edges_Node{} + t = &CreateEntitlement_CreateEntitlement_Entitlement{} } return t.ID } -func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetName() string { +func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetPlan() *CreateEntitlement_CreateEntitlement_Entitlement_Plan { if t == nil { - t = &GetAllEntityTypes_EntityTypes_Edges_Node{} + t = &CreateEntitlement_CreateEntitlement_Entitlement{} } - return t.Name + return &t.Plan } -func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetOwnerID() *string { +func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetOrganization() *CreateEntitlement_CreateEntitlement_Entitlement_Organization { if t == nil { - t = &GetAllEntityTypes_EntityTypes_Edges_Node{} + t = &CreateEntitlement_CreateEntitlement_Entitlement{} } - return t.OwnerID + return &t.Organization } -func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetTags() []string { +func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetExpires() bool { if t == nil { - t = &GetAllEntityTypes_EntityTypes_Edges_Node{} + t = &CreateEntitlement_CreateEntitlement_Entitlement{} } - return t.Tags + return t.Expires } -func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetExpiresAt() *time.Time { if t == nil { - t = &GetAllEntityTypes_EntityTypes_Edges_Node{} + t = &CreateEntitlement_CreateEntitlement_Entitlement{} } - return t.UpdatedAt + return t.ExpiresAt } -func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetUpdatedBy() *string { +func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetCancelled() bool { if t == nil { - t = &GetAllEntityTypes_EntityTypes_Edges_Node{} + t = &CreateEntitlement_CreateEntitlement_Entitlement{} } - return t.UpdatedBy + return t.Cancelled +} +func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetExternalCustomerID() *string { + if t == nil { + t = &CreateEntitlement_CreateEntitlement_Entitlement{} + } + return t.ExternalCustomerID +} +func (t *CreateEntitlement_CreateEntitlement_Entitlement) GetExternalSubscriptionID() *string { + if t == nil { + t = &CreateEntitlement_CreateEntitlement_Entitlement{} + } + return t.ExternalSubscriptionID } -type GetAllEntityTypes_EntityTypes_Edges struct { - Node *GetAllEntityTypes_EntityTypes_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateEntitlement_CreateEntitlement struct { + Entitlement CreateEntitlement_CreateEntitlement_Entitlement "json:\"entitlement\" graphql:\"entitlement\"" } -func (t *GetAllEntityTypes_EntityTypes_Edges) GetNode() *GetAllEntityTypes_EntityTypes_Edges_Node { +func (t *CreateEntitlement_CreateEntitlement) GetEntitlement() *CreateEntitlement_CreateEntitlement_Entitlement { if t == nil { - t = &GetAllEntityTypes_EntityTypes_Edges{} + t = &CreateEntitlement_CreateEntitlement{} } - return t.Node + return &t.Entitlement } -type GetAllEntityTypes_EntityTypes struct { - Edges []*GetAllEntityTypes_EntityTypes_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type DeleteEntitlement_DeleteEntitlement struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetAllEntityTypes_EntityTypes) GetEdges() []*GetAllEntityTypes_EntityTypes_Edges { +func (t *DeleteEntitlement_DeleteEntitlement) GetDeletedID() string { if t == nil { - t = &GetAllEntityTypes_EntityTypes{} + t = &DeleteEntitlement_DeleteEntitlement{} } - return t.Edges + return t.DeletedID } -type GetEntityTypeByID_EntityType struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - ID string "json:\"id\" graphql:\"id\"" - 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\"" +type GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetEntityTypeByID_EntityType) GetCreatedAt() *time.Time { +func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature) GetID() string { if t == nil { - t = &GetEntityTypeByID_EntityType{} + t = &GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature{} } - return t.CreatedAt + return t.ID } -func (t *GetEntityTypeByID_EntityType) GetCreatedBy() *string { +func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature) GetName() string { if t == nil { - t = &GetEntityTypeByID_EntityType{} + t = &GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature{} } - return t.CreatedBy + return t.Name } -func (t *GetEntityTypeByID_EntityType) GetID() string { + +type GetAllEntitlements_Entitlements_Edges_Node_Plan_Features struct { + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Feature GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature "json:\"feature\" graphql:\"feature\"" +} + +func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan_Features) GetMetadata() map[string]interface{} { if t == nil { - t = &GetEntityTypeByID_EntityType{} + t = &GetAllEntitlements_Entitlements_Edges_Node_Plan_Features{} } - return t.ID + return t.Metadata } -func (t *GetEntityTypeByID_EntityType) GetName() string { +func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan_Features) GetFeature() *GetAllEntitlements_Entitlements_Edges_Node_Plan_Features_Feature { if t == nil { - t = &GetEntityTypeByID_EntityType{} + t = &GetAllEntitlements_Entitlements_Edges_Node_Plan_Features{} } - return t.Name + return &t.Feature } -func (t *GetEntityTypeByID_EntityType) GetOwnerID() *string { + +type GetAllEntitlements_Entitlements_Edges_Node_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Features []*GetAllEntitlements_Entitlements_Edges_Node_Plan_Features "json:\"features,omitempty\" graphql:\"features\"" +} + +func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan) GetID() string { if t == nil { - t = &GetEntityTypeByID_EntityType{} + t = &GetAllEntitlements_Entitlements_Edges_Node_Plan{} } - return t.OwnerID + return t.ID } -func (t *GetEntityTypeByID_EntityType) GetTags() []string { +func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan) GetName() string { if t == nil { - t = &GetEntityTypeByID_EntityType{} + t = &GetAllEntitlements_Entitlements_Edges_Node_Plan{} } - return t.Tags + return t.Name } -func (t *GetEntityTypeByID_EntityType) GetUpdatedAt() *time.Time { +func (t *GetAllEntitlements_Entitlements_Edges_Node_Plan) GetFeatures() []*GetAllEntitlements_Entitlements_Edges_Node_Plan_Features { if t == nil { - t = &GetEntityTypeByID_EntityType{} + t = &GetAllEntitlements_Entitlements_Edges_Node_Plan{} } - return t.UpdatedAt + return t.Features } -func (t *GetEntityTypeByID_EntityType) GetUpdatedBy() *string { + +type GetAllEntitlements_Entitlements_Edges_Node_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" +} + +func (t *GetAllEntitlements_Entitlements_Edges_Node_Organization) GetID() string { if t == nil { - t = &GetEntityTypeByID_EntityType{} + t = &GetAllEntitlements_Entitlements_Edges_Node_Organization{} } - return t.UpdatedBy + return t.ID +} +func (t *GetAllEntitlements_Entitlements_Edges_Node_Organization) GetName() string { + if t == nil { + t = &GetAllEntitlements_Entitlements_Edges_Node_Organization{} + } + return t.Name } -type GetEntityTypes_EntityTypes_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - ID string "json:\"id\" graphql:\"id\"" - 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\"" +type GetAllEntitlements_Entitlements_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Plan GetAllEntitlements_Entitlements_Edges_Node_Plan "json:\"plan\" graphql:\"plan\"" + Organization GetAllEntitlements_Entitlements_Edges_Node_Organization "json:\"organization\" graphql:\"organization\"" + Expires bool "json:\"expires\" graphql:\"expires\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" + ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" + ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" } -func (t *GetEntityTypes_EntityTypes_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllEntitlements_Entitlements_Edges_Node) GetID() string { if t == nil { - t = &GetEntityTypes_EntityTypes_Edges_Node{} + t = &GetAllEntitlements_Entitlements_Edges_Node{} } - return t.CreatedAt + return t.ID } -func (t *GetEntityTypes_EntityTypes_Edges_Node) GetCreatedBy() *string { +func (t *GetAllEntitlements_Entitlements_Edges_Node) GetPlan() *GetAllEntitlements_Entitlements_Edges_Node_Plan { if t == nil { - t = &GetEntityTypes_EntityTypes_Edges_Node{} + t = &GetAllEntitlements_Entitlements_Edges_Node{} } - return t.CreatedBy + return &t.Plan } -func (t *GetEntityTypes_EntityTypes_Edges_Node) GetID() string { +func (t *GetAllEntitlements_Entitlements_Edges_Node) GetOrganization() *GetAllEntitlements_Entitlements_Edges_Node_Organization { if t == nil { - t = &GetEntityTypes_EntityTypes_Edges_Node{} + t = &GetAllEntitlements_Entitlements_Edges_Node{} } - return t.ID + return &t.Organization } -func (t *GetEntityTypes_EntityTypes_Edges_Node) GetName() string { +func (t *GetAllEntitlements_Entitlements_Edges_Node) GetExpires() bool { if t == nil { - t = &GetEntityTypes_EntityTypes_Edges_Node{} + t = &GetAllEntitlements_Entitlements_Edges_Node{} } - return t.Name + return t.Expires } -func (t *GetEntityTypes_EntityTypes_Edges_Node) GetOwnerID() *string { +func (t *GetAllEntitlements_Entitlements_Edges_Node) GetExpiresAt() *time.Time { if t == nil { - t = &GetEntityTypes_EntityTypes_Edges_Node{} + t = &GetAllEntitlements_Entitlements_Edges_Node{} } - return t.OwnerID + return t.ExpiresAt } -func (t *GetEntityTypes_EntityTypes_Edges_Node) GetTags() []string { +func (t *GetAllEntitlements_Entitlements_Edges_Node) GetCancelled() bool { if t == nil { - t = &GetEntityTypes_EntityTypes_Edges_Node{} + t = &GetAllEntitlements_Entitlements_Edges_Node{} } - return t.Tags + return t.Cancelled } -func (t *GetEntityTypes_EntityTypes_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllEntitlements_Entitlements_Edges_Node) GetExternalCustomerID() *string { if t == nil { - t = &GetEntityTypes_EntityTypes_Edges_Node{} + t = &GetAllEntitlements_Entitlements_Edges_Node{} } - return t.UpdatedAt + return t.ExternalCustomerID } -func (t *GetEntityTypes_EntityTypes_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllEntitlements_Entitlements_Edges_Node) GetExternalSubscriptionID() *string { if t == nil { - t = &GetEntityTypes_EntityTypes_Edges_Node{} + t = &GetAllEntitlements_Entitlements_Edges_Node{} } - return t.UpdatedBy + return t.ExternalSubscriptionID } -type GetEntityTypes_EntityTypes_Edges struct { - Node *GetEntityTypes_EntityTypes_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllEntitlements_Entitlements_Edges struct { + Node *GetAllEntitlements_Entitlements_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetEntityTypes_EntityTypes_Edges) GetNode() *GetEntityTypes_EntityTypes_Edges_Node { +func (t *GetAllEntitlements_Entitlements_Edges) GetNode() *GetAllEntitlements_Entitlements_Edges_Node { if t == nil { - t = &GetEntityTypes_EntityTypes_Edges{} + t = &GetAllEntitlements_Entitlements_Edges{} } return t.Node } -type GetEntityTypes_EntityTypes struct { - Edges []*GetEntityTypes_EntityTypes_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllEntitlements_Entitlements struct { + Edges []*GetAllEntitlements_Entitlements_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetEntityTypes_EntityTypes) GetEdges() []*GetEntityTypes_EntityTypes_Edges { +func (t *GetAllEntitlements_Entitlements) GetEdges() []*GetAllEntitlements_Entitlements_Edges { if t == nil { - t = &GetEntityTypes_EntityTypes{} + t = &GetAllEntitlements_Entitlements{} } return t.Edges } -type UpdateEntityType_UpdateEntityType_EntityType struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - ID string "json:\"id\" graphql:\"id\"" - 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\"" +type GetEntitlementByID_Entitlement_Plan_Features_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *UpdateEntityType_UpdateEntityType_EntityType) GetCreatedAt() *time.Time { - if t == nil { - t = &UpdateEntityType_UpdateEntityType_EntityType{} - } - return t.CreatedAt -} -func (t *UpdateEntityType_UpdateEntityType_EntityType) GetCreatedBy() *string { - if t == nil { - t = &UpdateEntityType_UpdateEntityType_EntityType{} - } - return t.CreatedBy -} -func (t *UpdateEntityType_UpdateEntityType_EntityType) GetID() string { +func (t *GetEntitlementByID_Entitlement_Plan_Features_Feature) GetID() string { if t == nil { - t = &UpdateEntityType_UpdateEntityType_EntityType{} + t = &GetEntitlementByID_Entitlement_Plan_Features_Feature{} } return t.ID } -func (t *UpdateEntityType_UpdateEntityType_EntityType) GetName() string { +func (t *GetEntitlementByID_Entitlement_Plan_Features_Feature) GetName() string { if t == nil { - t = &UpdateEntityType_UpdateEntityType_EntityType{} + t = &GetEntitlementByID_Entitlement_Plan_Features_Feature{} } return t.Name } -func (t *UpdateEntityType_UpdateEntityType_EntityType) GetOwnerID() *string { + +type GetEntitlementByID_Entitlement_Plan_Features struct { + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Feature GetEntitlementByID_Entitlement_Plan_Features_Feature "json:\"feature\" graphql:\"feature\"" +} + +func (t *GetEntitlementByID_Entitlement_Plan_Features) GetMetadata() map[string]interface{} { if t == nil { - t = &UpdateEntityType_UpdateEntityType_EntityType{} + t = &GetEntitlementByID_Entitlement_Plan_Features{} } - return t.OwnerID + return t.Metadata } -func (t *UpdateEntityType_UpdateEntityType_EntityType) GetTags() []string { +func (t *GetEntitlementByID_Entitlement_Plan_Features) GetFeature() *GetEntitlementByID_Entitlement_Plan_Features_Feature { if t == nil { - t = &UpdateEntityType_UpdateEntityType_EntityType{} + t = &GetEntitlementByID_Entitlement_Plan_Features{} } - return t.Tags + return &t.Feature } -func (t *UpdateEntityType_UpdateEntityType_EntityType) GetUpdatedAt() *time.Time { + +type GetEntitlementByID_Entitlement_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Features []*GetEntitlementByID_Entitlement_Plan_Features "json:\"features,omitempty\" graphql:\"features\"" +} + +func (t *GetEntitlementByID_Entitlement_Plan) GetID() string { if t == nil { - t = &UpdateEntityType_UpdateEntityType_EntityType{} + t = &GetEntitlementByID_Entitlement_Plan{} } - return t.UpdatedAt + return t.ID } -func (t *UpdateEntityType_UpdateEntityType_EntityType) GetUpdatedBy() *string { +func (t *GetEntitlementByID_Entitlement_Plan) GetName() string { if t == nil { - t = &UpdateEntityType_UpdateEntityType_EntityType{} + t = &GetEntitlementByID_Entitlement_Plan{} } - return t.UpdatedBy -} - -type UpdateEntityType_UpdateEntityType struct { - EntityType UpdateEntityType_UpdateEntityType_EntityType "json:\"entityType\" graphql:\"entityType\"" + return t.Name } - -func (t *UpdateEntityType_UpdateEntityType) GetEntityType() *UpdateEntityType_UpdateEntityType_EntityType { +func (t *GetEntitlementByID_Entitlement_Plan) GetFeatures() []*GetEntitlementByID_Entitlement_Plan_Features { if t == nil { - t = &UpdateEntityType_UpdateEntityType{} + t = &GetEntitlementByID_Entitlement_Plan{} } - return &t.EntityType + return t.Features } -type GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetEntitlementByID_Entitlement_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetEntitlementByID_Entitlement_Organization) GetID() string { if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlementByID_Entitlement_Organization{} } - return t.CreatedAt + return t.ID } -func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetEntitlementByID_Entitlement_Organization) GetName() string { if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlementByID_Entitlement_Organization{} } - return t.CreatedBy + return t.Name } -func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetHistoryTime() *time.Time { - if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} - } - return &t.HistoryTime + +type GetEntitlementByID_Entitlement struct { + ID string "json:\"id\" graphql:\"id\"" + Plan GetEntitlementByID_Entitlement_Plan "json:\"plan\" graphql:\"plan\"" + Organization GetEntitlementByID_Entitlement_Organization "json:\"organization\" graphql:\"organization\"" + Expires bool "json:\"expires\" graphql:\"expires\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" + ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" + ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" } -func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetID() string { + +func (t *GetEntitlementByID_Entitlement) GetID() string { if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlementByID_Entitlement{} } return t.ID } -func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetName() string { +func (t *GetEntitlementByID_Entitlement) GetPlan() *GetEntitlementByID_Entitlement_Plan { if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlementByID_Entitlement{} } - return t.Name + return &t.Plan } -func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetEntitlementByID_Entitlement) GetOrganization() *GetEntitlementByID_Entitlement_Organization { if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlementByID_Entitlement{} } - return &t.Operation + return &t.Organization } -func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetOwnerID() *string { +func (t *GetEntitlementByID_Entitlement) GetExpires() bool { if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlementByID_Entitlement{} } - return t.OwnerID + return t.Expires } -func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetRef() *string { +func (t *GetEntitlementByID_Entitlement) GetExpiresAt() *time.Time { if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlementByID_Entitlement{} } - return t.Ref + return t.ExpiresAt } -func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetTags() []string { +func (t *GetEntitlementByID_Entitlement) GetCancelled() bool { if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlementByID_Entitlement{} } - return t.Tags + return t.Cancelled } -func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetEntitlementByID_Entitlement) GetExternalCustomerID() *string { if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlementByID_Entitlement{} } - return t.UpdatedAt + return t.ExternalCustomerID } -func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetEntitlementByID_Entitlement) GetExternalSubscriptionID() *string { if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlementByID_Entitlement{} } - return t.UpdatedBy + return t.ExternalSubscriptionID } -type GetAllEntityTypeHistories_EntityTypeHistories_Edges struct { - Node *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges) GetNode() *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node { +func (t *GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature) GetID() string { if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges{} + t = &GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature{} } - return t.Node -} - -type GetAllEntityTypeHistories_EntityTypeHistories struct { - Edges []*GetAllEntityTypeHistories_EntityTypeHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.ID } - -func (t *GetAllEntityTypeHistories_EntityTypeHistories) GetEdges() []*GetAllEntityTypeHistories_EntityTypeHistories_Edges { +func (t *GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature) GetName() string { if t == nil { - t = &GetAllEntityTypeHistories_EntityTypeHistories{} + t = &GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature{} } - return t.Edges + return t.Name } -type GetEntityTypeHistories_EntityTypeHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetEntitlements_Entitlements_Edges_Node_Plan_Features struct { + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Feature GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature "json:\"feature\" graphql:\"feature\"" } -func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetEntitlements_Entitlements_Edges_Node_Plan_Features) GetMetadata() map[string]interface{} { if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlements_Entitlements_Edges_Node_Plan_Features{} } - return t.CreatedAt + return t.Metadata } -func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetEntitlements_Entitlements_Edges_Node_Plan_Features) GetFeature() *GetEntitlements_Entitlements_Edges_Node_Plan_Features_Feature { if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlements_Entitlements_Edges_Node_Plan_Features{} } - return t.CreatedBy + return &t.Feature } -func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetHistoryTime() *time.Time { - if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} - } - return &t.HistoryTime + +type GetEntitlements_Entitlements_Edges_Node_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Features []*GetEntitlements_Entitlements_Edges_Node_Plan_Features "json:\"features,omitempty\" graphql:\"features\"" } -func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetID() string { + +func (t *GetEntitlements_Entitlements_Edges_Node_Plan) GetID() string { if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlements_Entitlements_Edges_Node_Plan{} } return t.ID } -func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetName() string { +func (t *GetEntitlements_Entitlements_Edges_Node_Plan) GetName() string { if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlements_Entitlements_Edges_Node_Plan{} } return t.Name } -func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetEntitlements_Entitlements_Edges_Node_Plan) GetFeatures() []*GetEntitlements_Entitlements_Edges_Node_Plan_Features { if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlements_Entitlements_Edges_Node_Plan{} } - return &t.Operation + return t.Features } -func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetOwnerID() *string { + +type GetEntitlements_Entitlements_Edges_Node_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" +} + +func (t *GetEntitlements_Entitlements_Edges_Node_Organization) GetID() string { if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlements_Entitlements_Edges_Node_Organization{} } - return t.OwnerID + return t.ID } -func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetRef() *string { +func (t *GetEntitlements_Entitlements_Edges_Node_Organization) GetName() string { if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlements_Entitlements_Edges_Node_Organization{} } - return t.Ref + return t.Name } -func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetTags() []string { + +type GetEntitlements_Entitlements_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Plan GetEntitlements_Entitlements_Edges_Node_Plan "json:\"plan\" graphql:\"plan\"" + Organization GetEntitlements_Entitlements_Edges_Node_Organization "json:\"organization\" graphql:\"organization\"" + Expires bool "json:\"expires\" graphql:\"expires\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" + ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" + ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" +} + +func (t *GetEntitlements_Entitlements_Edges_Node) GetID() string { if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlements_Entitlements_Edges_Node{} } - return t.Tags + return t.ID } -func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetEntitlements_Entitlements_Edges_Node) GetPlan() *GetEntitlements_Entitlements_Edges_Node_Plan { if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlements_Entitlements_Edges_Node{} } - return t.UpdatedAt + return &t.Plan } -func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetEntitlements_Entitlements_Edges_Node) GetOrganization() *GetEntitlements_Entitlements_Edges_Node_Organization { if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} + t = &GetEntitlements_Entitlements_Edges_Node{} } - return t.UpdatedBy -} - -type GetEntityTypeHistories_EntityTypeHistories_Edges struct { - Node *GetEntityTypeHistories_EntityTypeHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return &t.Organization } - -func (t *GetEntityTypeHistories_EntityTypeHistories_Edges) GetNode() *GetEntityTypeHistories_EntityTypeHistories_Edges_Node { +func (t *GetEntitlements_Entitlements_Edges_Node) GetExpires() bool { if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories_Edges{} + t = &GetEntitlements_Entitlements_Edges_Node{} } - return t.Node -} - -type GetEntityTypeHistories_EntityTypeHistories struct { - Edges []*GetEntityTypeHistories_EntityTypeHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.Expires } - -func (t *GetEntityTypeHistories_EntityTypeHistories) GetEdges() []*GetEntityTypeHistories_EntityTypeHistories_Edges { +func (t *GetEntitlements_Entitlements_Edges_Node) GetExpiresAt() *time.Time { if t == nil { - t = &GetEntityTypeHistories_EntityTypeHistories{} + t = &GetEntitlements_Entitlements_Edges_Node{} } - return t.Edges -} - -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_User struct { - ID string "json:\"id\" graphql:\"id\"" + return t.ExpiresAt } - -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_User) GetID() string { +func (t *GetEntitlements_Entitlements_Edges_Node) GetCancelled() bool { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_User{} + t = &GetEntitlements_Entitlements_Edges_Node{} } - return t.ID -} - -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Group struct { - ID string "json:\"id\" graphql:\"id\"" + return t.Cancelled } - -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Group) GetID() string { +func (t *GetEntitlements_Entitlements_Edges_Node) GetExternalCustomerID() *string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Group{} + t = &GetEntitlements_Entitlements_Edges_Node{} } - return t.ID -} - -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Integration struct { - ID string "json:\"id\" graphql:\"id\"" + return t.ExternalCustomerID } - -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Integration) GetID() string { +func (t *GetEntitlements_Entitlements_Edges_Node) GetExternalSubscriptionID() *string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Integration{} + t = &GetEntitlements_Entitlements_Edges_Node{} } - return t.ID + return t.ExternalSubscriptionID } -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Organization struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlements_Entitlements_Edges struct { + Node *GetEntitlements_Entitlements_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Organization) GetID() string { +func (t *GetEntitlements_Entitlements_Edges) GetNode() *GetEntitlements_Entitlements_Edges_Node { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Organization{} + t = &GetEntitlements_Entitlements_Edges{} } - return t.ID + return t.Node } -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Invite struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlements_Entitlements struct { + Edges []*GetEntitlements_Entitlements_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Invite) GetID() string { +func (t *GetEntitlements_Entitlements) GetEdges() []*GetEntitlements_Entitlements_Edges { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Invite{} + t = &GetEntitlements_Entitlements{} } - return t.ID + return t.Edges } -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Feature struct { - ID string "json:\"id\" graphql:\"id\"" +type UpdateEntitlement_UpdateEntitlement_Entitlement_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Feature) GetID() string { +func (t *UpdateEntitlement_UpdateEntitlement_Entitlement_Plan) GetID() string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Feature{} + t = &UpdateEntitlement_UpdateEntitlement_Entitlement_Plan{} } return t.ID } - -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_PersonalAccessToken struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_PersonalAccessToken) GetID() string { +func (t *UpdateEntitlement_UpdateEntitlement_Entitlement_Plan) GetName() string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_PersonalAccessToken{} + t = &UpdateEntitlement_UpdateEntitlement_Entitlement_Plan{} } - return t.ID + return t.Name } -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Oauth2token struct { - ID string "json:\"id\" graphql:\"id\"" +type UpdateEntitlement_UpdateEntitlement_Entitlement struct { + ID string "json:\"id\" graphql:\"id\"" + Plan UpdateEntitlement_UpdateEntitlement_Entitlement_Plan "json:\"plan\" graphql:\"plan\"" + Expires bool "json:\"expires\" graphql:\"expires\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" + ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" + ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Oauth2token) GetID() string { +func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetID() string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Oauth2token{} + t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} } return t.ID } - -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Hush struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Hush) GetID() string { +func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetPlan() *UpdateEntitlement_UpdateEntitlement_Entitlement_Plan { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Hush{} + t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} } - return t.ID -} - -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Orgmembership struct { - ID string "json:\"id\" graphql:\"id\"" + return &t.Plan } - -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Orgmembership) GetID() string { +func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetExpires() bool { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Orgmembership{} + t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} } - return t.ID + return t.Expires } - -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Groupmembership struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetExpiresAt() *time.Time { + if t == nil { + t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} + } + return t.ExpiresAt } - -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Groupmembership) GetID() string { +func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetCancelled() bool { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Groupmembership{} + t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} } - return t.ID + return t.Cancelled } - -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Entitlement struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetExternalCustomerID() *string { + if t == nil { + t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} + } + return t.ExternalCustomerID } - -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Entitlement) GetID() string { +func (t *UpdateEntitlement_UpdateEntitlement_Entitlement) GetExternalSubscriptionID() *string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Entitlement{} + t = &UpdateEntitlement_UpdateEntitlement_Entitlement{} } - return t.ID + return t.ExternalSubscriptionID } -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Webhook struct { - ID string "json:\"id\" graphql:\"id\"" +type UpdateEntitlement_UpdateEntitlement struct { + Entitlement UpdateEntitlement_UpdateEntitlement_Entitlement "json:\"entitlement\" graphql:\"entitlement\"" } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Webhook) GetID() string { +func (t *UpdateEntitlement_UpdateEntitlement) GetEntitlement() *UpdateEntitlement_UpdateEntitlement_Entitlement { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Webhook{} + t = &UpdateEntitlement_UpdateEntitlement{} } - return t.ID + return &t.Entitlement } -type CreateBulkCSVEvent_CreateBulkCSVEvent_Events struct { - ID string "json:\"id\" graphql:\"id\"" - EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" - CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" - EventType string "json:\"eventType\" graphql:\"eventType\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - User []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_User "json:\"user,omitempty\" graphql:\"user\"" - Group []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Group "json:\"group,omitempty\" graphql:\"group\"" - Integration []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Integration "json:\"integration,omitempty\" graphql:\"integration\"" - Organization []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Invite []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Invite "json:\"invite,omitempty\" graphql:\"invite\"" - Feature []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Feature "json:\"feature,omitempty\" graphql:\"feature\"" - PersonalAccessToken []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_PersonalAccessToken "json:\"personalAccessToken,omitempty\" graphql:\"personalAccessToken\"" - Oauth2token []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Oauth2token "json:\"oauth2token,omitempty\" graphql:\"oauth2token\"" - Hush []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Hush "json:\"hush,omitempty\" graphql:\"hush\"" - Orgmembership []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Orgmembership "json:\"orgmembership,omitempty\" graphql:\"orgmembership\"" - Groupmembership []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Groupmembership "json:\"groupmembership,omitempty\" graphql:\"groupmembership\"" - Entitlement []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Entitlement "json:\"entitlement,omitempty\" graphql:\"entitlement\"" - Webhook []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Webhook "json:\"webhook,omitempty\" graphql:\"webhook\"" +type GetAllEntitlementHistories_EntitlementHistories_Edges_Node struct { + Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Expires bool "json:\"expires\" graphql:\"expires\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" + ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PlanID string "json:\"planID\" graphql:\"planID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetID() string { - if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} - } - return t.ID -} -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetEventID() *string { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetCancelled() bool { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.EventID + return t.Cancelled } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetCorrelationID() *string { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.CorrelationID + return t.CreatedAt } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetEventType() string { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.EventType + return t.CreatedBy } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetMetadata() map[string]interface{} { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetExpires() bool { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Metadata + return t.Expires } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetUser() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_User { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetExpiresAt() *time.Time { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.User + return t.ExpiresAt } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetGroup() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Group { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetExternalCustomerID() *string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Group + return t.ExternalCustomerID } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetIntegration() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Integration { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetExternalSubscriptionID() *string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Integration + return t.ExternalSubscriptionID } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetOrganization() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Organization { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Organization + return &t.HistoryTime } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetInvite() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Invite { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Invite + return t.ID } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetFeature() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Feature { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Feature + return &t.Operation } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetPersonalAccessToken() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_PersonalAccessToken { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetOrganizationID() string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.PersonalAccessToken + return t.OrganizationID } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetOauth2token() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Oauth2token { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Oauth2token + return t.OwnerID } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetHush() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Hush { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetPlanID() string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Hush + return t.PlanID } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetOrgmembership() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Orgmembership { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetRef() *string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Orgmembership + return t.Ref } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetGroupmembership() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Groupmembership { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetTags() []string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Groupmembership + return t.Tags } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetEntitlement() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Entitlement { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Entitlement + return t.UpdatedAt } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetWebhook() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Webhook { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Webhook + return t.UpdatedBy } -type CreateBulkCSVEvent_CreateBulkCSVEvent struct { - Events []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events "json:\"events,omitempty\" graphql:\"events\"" +type GetAllEntitlementHistories_EntitlementHistories_Edges struct { + Node *GetAllEntitlementHistories_EntitlementHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkCSVEvent_CreateBulkCSVEvent) GetEvents() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events { +func (t *GetAllEntitlementHistories_EntitlementHistories_Edges) GetNode() *GetAllEntitlementHistories_EntitlementHistories_Edges_Node { if t == nil { - t = &CreateBulkCSVEvent_CreateBulkCSVEvent{} + t = &GetAllEntitlementHistories_EntitlementHistories_Edges{} } - return t.Events + return t.Node } -type CreateBulkEvent_CreateBulkEvent_Events_User struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllEntitlementHistories_EntitlementHistories struct { + Edges []*GetAllEntitlementHistories_EntitlementHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkEvent_CreateBulkEvent_Events_User) GetID() string { +func (t *GetAllEntitlementHistories_EntitlementHistories) GetEdges() []*GetAllEntitlementHistories_EntitlementHistories_Edges { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_User{} + t = &GetAllEntitlementHistories_EntitlementHistories{} } - return t.ID + return t.Edges } -type CreateBulkEvent_CreateBulkEvent_Events_Group struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementHistories_EntitlementHistories_Edges_Node struct { + Cancelled bool "json:\"cancelled\" graphql:\"cancelled\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Expires bool "json:\"expires\" graphql:\"expires\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + ExternalCustomerID *string "json:\"externalCustomerID,omitempty\" graphql:\"externalCustomerID\"" + ExternalSubscriptionID *string "json:\"externalSubscriptionID,omitempty\" graphql:\"externalSubscriptionID\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PlanID string "json:\"planID\" graphql:\"planID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateBulkEvent_CreateBulkEvent_Events_Group) GetID() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetCancelled() bool { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_Group{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkEvent_CreateBulkEvent_Events_Integration struct { - ID string "json:\"id\" graphql:\"id\"" + return t.Cancelled } - -func (t *CreateBulkEvent_CreateBulkEvent_Events_Integration) GetID() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_Integration{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkEvent_CreateBulkEvent_Events_Organization struct { - ID string "json:\"id\" graphql:\"id\"" + return t.CreatedAt } - -func (t *CreateBulkEvent_CreateBulkEvent_Events_Organization) GetID() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_Organization{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkEvent_CreateBulkEvent_Events_Invite struct { - ID string "json:\"id\" graphql:\"id\"" + return t.CreatedBy } - -func (t *CreateBulkEvent_CreateBulkEvent_Events_Invite) GetID() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetExpires() bool { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_Invite{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkEvent_CreateBulkEvent_Events_Feature struct { - ID string "json:\"id\" graphql:\"id\"" + return t.Expires } - -func (t *CreateBulkEvent_CreateBulkEvent_Events_Feature) GetID() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetExpiresAt() *time.Time { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_Feature{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkEvent_CreateBulkEvent_Events_PersonalAccessToken struct { - ID string "json:\"id\" graphql:\"id\"" + return t.ExpiresAt } - -func (t *CreateBulkEvent_CreateBulkEvent_Events_PersonalAccessToken) GetID() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetExternalCustomerID() *string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_PersonalAccessToken{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkEvent_CreateBulkEvent_Events_Oauth2token struct { - ID string "json:\"id\" graphql:\"id\"" + return t.ExternalCustomerID } - -func (t *CreateBulkEvent_CreateBulkEvent_Events_Oauth2token) GetID() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetExternalSubscriptionID() *string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_Oauth2token{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkEvent_CreateBulkEvent_Events_Hush struct { - ID string "json:\"id\" graphql:\"id\"" + return t.ExternalSubscriptionID } - -func (t *CreateBulkEvent_CreateBulkEvent_Events_Hush) GetID() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_Hush{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkEvent_CreateBulkEvent_Events_Orgmembership struct { - ID string "json:\"id\" graphql:\"id\"" + return &t.HistoryTime } - -func (t *CreateBulkEvent_CreateBulkEvent_Events_Orgmembership) GetID() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_Orgmembership{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } return t.ID } - -type CreateBulkEvent_CreateBulkEvent_Events_Groupmembership struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *CreateBulkEvent_CreateBulkEvent_Events_Groupmembership) GetID() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_Groupmembership{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.ID + return &t.Operation } - -type CreateBulkEvent_CreateBulkEvent_Events_Entitlement struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *CreateBulkEvent_CreateBulkEvent_Events_Entitlement) GetID() string { - if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_Entitlement{} - } - return t.ID -} - -type CreateBulkEvent_CreateBulkEvent_Events_Webhook struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *CreateBulkEvent_CreateBulkEvent_Events_Webhook) GetID() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetOrganizationID() string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events_Webhook{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkEvent_CreateBulkEvent_Events struct { - ID string "json:\"id\" graphql:\"id\"" - EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" - CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" - EventType string "json:\"eventType\" graphql:\"eventType\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - User []*CreateBulkEvent_CreateBulkEvent_Events_User "json:\"user,omitempty\" graphql:\"user\"" - Group []*CreateBulkEvent_CreateBulkEvent_Events_Group "json:\"group,omitempty\" graphql:\"group\"" - Integration []*CreateBulkEvent_CreateBulkEvent_Events_Integration "json:\"integration,omitempty\" graphql:\"integration\"" - Organization []*CreateBulkEvent_CreateBulkEvent_Events_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Invite []*CreateBulkEvent_CreateBulkEvent_Events_Invite "json:\"invite,omitempty\" graphql:\"invite\"" - Feature []*CreateBulkEvent_CreateBulkEvent_Events_Feature "json:\"feature,omitempty\" graphql:\"feature\"" - PersonalAccessToken []*CreateBulkEvent_CreateBulkEvent_Events_PersonalAccessToken "json:\"personalAccessToken,omitempty\" graphql:\"personalAccessToken\"" - Oauth2token []*CreateBulkEvent_CreateBulkEvent_Events_Oauth2token "json:\"oauth2token,omitempty\" graphql:\"oauth2token\"" - Hush []*CreateBulkEvent_CreateBulkEvent_Events_Hush "json:\"hush,omitempty\" graphql:\"hush\"" - Orgmembership []*CreateBulkEvent_CreateBulkEvent_Events_Orgmembership "json:\"orgmembership,omitempty\" graphql:\"orgmembership\"" - Groupmembership []*CreateBulkEvent_CreateBulkEvent_Events_Groupmembership "json:\"groupmembership,omitempty\" graphql:\"groupmembership\"" - Entitlement []*CreateBulkEvent_CreateBulkEvent_Events_Entitlement "json:\"entitlement,omitempty\" graphql:\"entitlement\"" - Webhook []*CreateBulkEvent_CreateBulkEvent_Events_Webhook "json:\"webhook,omitempty\" graphql:\"webhook\"" + return t.OrganizationID } - -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetID() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.ID + return t.OwnerID } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetEventID() *string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetPlanID() string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.EventID + return t.PlanID } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetCorrelationID() *string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetRef() *string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.CorrelationID + return t.Ref } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetEventType() string { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetTags() []string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.EventType + return t.Tags } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetMetadata() map[string]interface{} { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.Metadata + return t.UpdatedAt } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetUser() []*CreateBulkEvent_CreateBulkEvent_Events_User { +func (t *GetEntitlementHistories_EntitlementHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &GetEntitlementHistories_EntitlementHistories_Edges_Node{} } - return t.User + return t.UpdatedBy } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetGroup() []*CreateBulkEvent_CreateBulkEvent_Events_Group { - if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} - } - return t.Group + +type GetEntitlementHistories_EntitlementHistories_Edges struct { + Node *GetEntitlementHistories_EntitlementHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetIntegration() []*CreateBulkEvent_CreateBulkEvent_Events_Integration { + +func (t *GetEntitlementHistories_EntitlementHistories_Edges) GetNode() *GetEntitlementHistories_EntitlementHistories_Edges_Node { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &GetEntitlementHistories_EntitlementHistories_Edges{} } - return t.Integration + return t.Node } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetOrganization() []*CreateBulkEvent_CreateBulkEvent_Events_Organization { - if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} - } - return t.Organization + +type GetEntitlementHistories_EntitlementHistories struct { + Edges []*GetEntitlementHistories_EntitlementHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetInvite() []*CreateBulkEvent_CreateBulkEvent_Events_Invite { + +func (t *GetEntitlementHistories_EntitlementHistories) GetEdges() []*GetEntitlementHistories_EntitlementHistories_Edges { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &GetEntitlementHistories_EntitlementHistories{} } - return t.Invite + return t.Edges } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetFeature() []*CreateBulkEvent_CreateBulkEvent_Events_Feature { - if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} - } - return t.Feature + +type CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Version string "json:\"version\" graphql:\"version\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetPersonalAccessToken() []*CreateBulkEvent_CreateBulkEvent_Events_PersonalAccessToken { + +func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetID() string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} } - return t.PersonalAccessToken + return t.ID } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetOauth2token() []*CreateBulkEvent_CreateBulkEvent_Events_Oauth2token { +func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetName() string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} } - return t.Oauth2token + return t.Name } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetHush() []*CreateBulkEvent_CreateBulkEvent_Events_Hush { +func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetDisplayName() *string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} } - return t.Hush + return t.DisplayName } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetOrgmembership() []*CreateBulkEvent_CreateBulkEvent_Events_Orgmembership { +func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetMetadata() map[string]interface{} { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} } - return t.Orgmembership + return t.Metadata } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetGroupmembership() []*CreateBulkEvent_CreateBulkEvent_Events_Groupmembership { +func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetTags() []string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} } - return t.Groupmembership + return t.Tags } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetEntitlement() []*CreateBulkEvent_CreateBulkEvent_Events_Entitlement { +func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetVersion() string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} } - return t.Entitlement + return t.Version } -func (t *CreateBulkEvent_CreateBulkEvent_Events) GetWebhook() []*CreateBulkEvent_CreateBulkEvent_Events_Webhook { +func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans) GetDescription() *string { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent_Events{} + t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans{} } - return t.Webhook + return t.Description } -type CreateBulkEvent_CreateBulkEvent struct { - Events []*CreateBulkEvent_CreateBulkEvent_Events "json:\"events,omitempty\" graphql:\"events\"" +type CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan struct { + EntitlementPlans []*CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans "json:\"entitlementPlans,omitempty\" graphql:\"entitlementPlans\"" } -func (t *CreateBulkEvent_CreateBulkEvent) GetEvents() []*CreateBulkEvent_CreateBulkEvent_Events { +func (t *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan) GetEntitlementPlans() []*CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan_EntitlementPlans { if t == nil { - t = &CreateBulkEvent_CreateBulkEvent{} + t = &CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan{} } - return t.Events + return t.EntitlementPlans } -type CreateEvent_CreateEvent_Event_User struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Version string "json:\"version\" graphql:\"version\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" } -func (t *CreateEvent_CreateEvent_Event_User) GetID() string { +func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetID() string { if t == nil { - t = &CreateEvent_CreateEvent_Event_User{} + t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} } return t.ID } - -type CreateEvent_CreateEvent_Event_Group struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *CreateEvent_CreateEvent_Event_Group) GetID() string { +func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetName() string { if t == nil { - t = &CreateEvent_CreateEvent_Event_Group{} + t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} } - return t.ID -} - -type CreateEvent_CreateEvent_Event_Integration struct { - ID string "json:\"id\" graphql:\"id\"" + return t.Name } - -func (t *CreateEvent_CreateEvent_Event_Integration) GetID() string { +func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetDisplayName() *string { if t == nil { - t = &CreateEvent_CreateEvent_Event_Integration{} + t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} } - return t.ID -} - -type CreateEvent_CreateEvent_Event_Organization struct { - ID string "json:\"id\" graphql:\"id\"" + return t.DisplayName } - -func (t *CreateEvent_CreateEvent_Event_Organization) GetID() string { +func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetMetadata() map[string]interface{} { if t == nil { - t = &CreateEvent_CreateEvent_Event_Organization{} + t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} } - return t.ID -} - -type CreateEvent_CreateEvent_Event_Invite struct { - ID string "json:\"id\" graphql:\"id\"" + return t.Metadata } - -func (t *CreateEvent_CreateEvent_Event_Invite) GetID() string { +func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetTags() []string { if t == nil { - t = &CreateEvent_CreateEvent_Event_Invite{} + t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} } - return t.ID + return t.Tags } - -type CreateEvent_CreateEvent_Event_Feature struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetVersion() string { + if t == nil { + t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} + } + return t.Version } - -func (t *CreateEvent_CreateEvent_Event_Feature) GetID() string { +func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans) GetDescription() *string { if t == nil { - t = &CreateEvent_CreateEvent_Event_Feature{} + t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans{} } - return t.ID + return t.Description } -type CreateEvent_CreateEvent_Event_PersonalAccessToken struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateBulkEntitlementPlan_CreateBulkEntitlementPlan struct { + EntitlementPlans []*CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans "json:\"entitlementPlans,omitempty\" graphql:\"entitlementPlans\"" } -func (t *CreateEvent_CreateEvent_Event_PersonalAccessToken) GetID() string { +func (t *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan) GetEntitlementPlans() []*CreateBulkEntitlementPlan_CreateBulkEntitlementPlan_EntitlementPlans { if t == nil { - t = &CreateEvent_CreateEvent_Event_PersonalAccessToken{} + t = &CreateBulkEntitlementPlan_CreateBulkEntitlementPlan{} } - return t.ID + return t.EntitlementPlans } -type CreateEvent_CreateEvent_Event_Oauth2token struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Version string "json:\"version\" graphql:\"version\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" } -func (t *CreateEvent_CreateEvent_Event_Oauth2token) GetID() string { +func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetID() string { if t == nil { - t = &CreateEvent_CreateEvent_Event_Oauth2token{} + t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} } return t.ID } - -type CreateEvent_CreateEvent_Event_Hush struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetName() string { + if t == nil { + t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} + } + return t.Name } - -func (t *CreateEvent_CreateEvent_Event_Hush) GetID() string { +func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetDisplayName() *string { if t == nil { - t = &CreateEvent_CreateEvent_Event_Hush{} + t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} } - return t.ID + return t.DisplayName } - -type CreateEvent_CreateEvent_Event_Orgmembership struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetMetadata() map[string]interface{} { + if t == nil { + t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} + } + return t.Metadata } - -func (t *CreateEvent_CreateEvent_Event_Orgmembership) GetID() string { +func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetTags() []string { if t == nil { - t = &CreateEvent_CreateEvent_Event_Orgmembership{} + t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} } - return t.ID + return t.Tags } - -type CreateEvent_CreateEvent_Event_Groupmembership struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetVersion() string { + if t == nil { + t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} + } + return t.Version } - -func (t *CreateEvent_CreateEvent_Event_Groupmembership) GetID() string { +func (t *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan) GetDescription() *string { if t == nil { - t = &CreateEvent_CreateEvent_Event_Groupmembership{} + t = &CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan{} } - return t.ID + return t.Description } -type CreateEvent_CreateEvent_Event_Entitlement struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateEntitlementPlan_CreateEntitlementPlan struct { + EntitlementPlan CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan "json:\"entitlementPlan\" graphql:\"entitlementPlan\"" } -func (t *CreateEvent_CreateEvent_Event_Entitlement) GetID() string { +func (t *CreateEntitlementPlan_CreateEntitlementPlan) GetEntitlementPlan() *CreateEntitlementPlan_CreateEntitlementPlan_EntitlementPlan { if t == nil { - t = &CreateEvent_CreateEvent_Event_Entitlement{} + t = &CreateEntitlementPlan_CreateEntitlementPlan{} } - return t.ID + return &t.EntitlementPlan } -type CreateEvent_CreateEvent_Event_Webhook struct { - ID string "json:\"id\" graphql:\"id\"" +type DeleteEntitlementPlan_DeleteEntitlementPlan struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *CreateEvent_CreateEvent_Event_Webhook) GetID() string { +func (t *DeleteEntitlementPlan_DeleteEntitlementPlan) GetDeletedID() string { if t == nil { - t = &CreateEvent_CreateEvent_Event_Webhook{} + t = &DeleteEntitlementPlan_DeleteEntitlementPlan{} } - return t.ID + return t.DeletedID } -type CreateEvent_CreateEvent_Event struct { - ID string "json:\"id\" graphql:\"id\"" - EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" - CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" - EventType string "json:\"eventType\" graphql:\"eventType\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - User []*CreateEvent_CreateEvent_Event_User "json:\"user,omitempty\" graphql:\"user\"" - Group []*CreateEvent_CreateEvent_Event_Group "json:\"group,omitempty\" graphql:\"group\"" - Integration []*CreateEvent_CreateEvent_Event_Integration "json:\"integration,omitempty\" graphql:\"integration\"" - Organization []*CreateEvent_CreateEvent_Event_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Invite []*CreateEvent_CreateEvent_Event_Invite "json:\"invite,omitempty\" graphql:\"invite\"" - Feature []*CreateEvent_CreateEvent_Event_Feature "json:\"feature,omitempty\" graphql:\"feature\"" - PersonalAccessToken []*CreateEvent_CreateEvent_Event_PersonalAccessToken "json:\"personalAccessToken,omitempty\" graphql:\"personalAccessToken\"" - Oauth2token []*CreateEvent_CreateEvent_Event_Oauth2token "json:\"oauth2token,omitempty\" graphql:\"oauth2token\"" - Hush []*CreateEvent_CreateEvent_Event_Hush "json:\"hush,omitempty\" graphql:\"hush\"" - Orgmembership []*CreateEvent_CreateEvent_Event_Orgmembership "json:\"orgmembership,omitempty\" graphql:\"orgmembership\"" - Groupmembership []*CreateEvent_CreateEvent_Event_Groupmembership "json:\"groupmembership,omitempty\" graphql:\"groupmembership\"" - Entitlement []*CreateEvent_CreateEvent_Event_Entitlement "json:\"entitlement,omitempty\" graphql:\"entitlement\"" - Webhook []*CreateEvent_CreateEvent_Event_Webhook "json:\"webhook,omitempty\" graphql:\"webhook\"" +type GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *CreateEvent_CreateEvent_Event) GetID() string { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature) GetID() string { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature{} } return t.ID } -func (t *CreateEvent_CreateEvent_Event) GetEventID() *string { - if t == nil { - t = &CreateEvent_CreateEvent_Event{} - } - return t.EventID -} -func (t *CreateEvent_CreateEvent_Event) GetCorrelationID() *string { - if t == nil { - t = &CreateEvent_CreateEvent_Event{} - } - return t.CorrelationID -} -func (t *CreateEvent_CreateEvent_Event) GetEventType() string { - if t == nil { - t = &CreateEvent_CreateEvent_Event{} - } - return t.EventType -} -func (t *CreateEvent_CreateEvent_Event) GetMetadata() map[string]interface{} { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature) GetMetadata() map[string]interface{} { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature{} } return t.Metadata } -func (t *CreateEvent_CreateEvent_Event) GetUser() []*CreateEvent_CreateEvent_Event_User { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature) GetName() string { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature{} } - return t.User + return t.Name } -func (t *CreateEvent_CreateEvent_Event) GetGroup() []*CreateEvent_CreateEvent_Event_Group { - if t == nil { - t = &CreateEvent_CreateEvent_Event{} - } - return t.Group + +type GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features struct { + Feature GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature "json:\"feature\" graphql:\"feature\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *CreateEvent_CreateEvent_Event) GetIntegration() []*CreateEvent_CreateEvent_Event_Integration { + +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features) GetFeature() *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features{} } - return t.Integration + return &t.Feature } -func (t *CreateEvent_CreateEvent_Event) GetOrganization() []*CreateEvent_CreateEvent_Event_Organization { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features) GetMetadata() map[string]interface{} { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features{} } - return t.Organization + return t.Metadata } -func (t *CreateEvent_CreateEvent_Event) GetInvite() []*CreateEvent_CreateEvent_Event_Invite { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features) GetTags() []string { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features{} } - return t.Invite + return t.Tags } -func (t *CreateEvent_CreateEvent_Event) GetFeature() []*CreateEvent_CreateEvent_Event_Feature { + +type GetAllEntitlementPlans_EntitlementPlans_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Version string "json:\"version\" graphql:\"version\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Features []*GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features "json:\"features,omitempty\" graphql:\"features\"" +} + +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetID() string { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.Feature + return t.ID } -func (t *CreateEvent_CreateEvent_Event) GetPersonalAccessToken() []*CreateEvent_CreateEvent_Event_PersonalAccessToken { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetName() string { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.PersonalAccessToken + return t.Name } -func (t *CreateEvent_CreateEvent_Event) GetOauth2token() []*CreateEvent_CreateEvent_Event_Oauth2token { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetDisplayName() *string { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.Oauth2token + return t.DisplayName } -func (t *CreateEvent_CreateEvent_Event) GetHush() []*CreateEvent_CreateEvent_Event_Hush { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetMetadata() map[string]interface{} { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.Hush + return t.Metadata } -func (t *CreateEvent_CreateEvent_Event) GetOrgmembership() []*CreateEvent_CreateEvent_Event_Orgmembership { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetTags() []string { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.Orgmembership + return t.Tags } -func (t *CreateEvent_CreateEvent_Event) GetGroupmembership() []*CreateEvent_CreateEvent_Event_Groupmembership { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetVersion() string { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.Groupmembership + return t.Version } -func (t *CreateEvent_CreateEvent_Event) GetEntitlement() []*CreateEvent_CreateEvent_Event_Entitlement { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetDescription() *string { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.Entitlement + return t.Description } -func (t *CreateEvent_CreateEvent_Event) GetWebhook() []*CreateEvent_CreateEvent_Event_Webhook { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges_Node) GetFeatures() []*GetAllEntitlementPlans_EntitlementPlans_Edges_Node_Features { if t == nil { - t = &CreateEvent_CreateEvent_Event{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.Webhook + return t.Features } -type CreateEvent_CreateEvent struct { - Event CreateEvent_CreateEvent_Event "json:\"event\" graphql:\"event\"" +type GetAllEntitlementPlans_EntitlementPlans_Edges struct { + Node *GetAllEntitlementPlans_EntitlementPlans_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateEvent_CreateEvent) GetEvent() *CreateEvent_CreateEvent_Event { +func (t *GetAllEntitlementPlans_EntitlementPlans_Edges) GetNode() *GetAllEntitlementPlans_EntitlementPlans_Edges_Node { if t == nil { - t = &CreateEvent_CreateEvent{} + t = &GetAllEntitlementPlans_EntitlementPlans_Edges{} } - return &t.Event + return t.Node } -type DeleteEvent_DeleteEvent struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type GetAllEntitlementPlans_EntitlementPlans struct { + Edges []*GetAllEntitlementPlans_EntitlementPlans_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *DeleteEvent_DeleteEvent) GetDeletedID() string { +func (t *GetAllEntitlementPlans_EntitlementPlans) GetEdges() []*GetAllEntitlementPlans_EntitlementPlans_Edges { if t == nil { - t = &DeleteEvent_DeleteEvent{} + t = &GetAllEntitlementPlans_EntitlementPlans{} } - return t.DeletedID + return t.Edges } -type GetAllEvents_Events_Edges_Node_User struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementPlanByID_EntitlementPlan_Features_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetAllEvents_Events_Edges_Node_User) GetID() string { +func (t *GetEntitlementPlanByID_EntitlementPlan_Features_Feature) GetID() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node_User{} + t = &GetEntitlementPlanByID_EntitlementPlan_Features_Feature{} } return t.ID } - -type GetAllEvents_Events_Edges_Node_Group struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *GetAllEvents_Events_Edges_Node_Group) GetID() string { +func (t *GetEntitlementPlanByID_EntitlementPlan_Features_Feature) GetMetadata() map[string]interface{} { if t == nil { - t = &GetAllEvents_Events_Edges_Node_Group{} + t = &GetEntitlementPlanByID_EntitlementPlan_Features_Feature{} } - return t.ID -} - -type GetAllEvents_Events_Edges_Node_Integration struct { - ID string "json:\"id\" graphql:\"id\"" + return t.Metadata } - -func (t *GetAllEvents_Events_Edges_Node_Integration) GetID() string { +func (t *GetEntitlementPlanByID_EntitlementPlan_Features_Feature) GetName() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node_Integration{} + t = &GetEntitlementPlanByID_EntitlementPlan_Features_Feature{} } - return t.ID + return t.Name } -type GetAllEvents_Events_Edges_Node_Organization struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementPlanByID_EntitlementPlan_Features struct { + Feature GetEntitlementPlanByID_EntitlementPlan_Features_Feature "json:\"feature\" graphql:\"feature\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *GetAllEvents_Events_Edges_Node_Organization) GetID() string { +func (t *GetEntitlementPlanByID_EntitlementPlan_Features) GetFeature() *GetEntitlementPlanByID_EntitlementPlan_Features_Feature { if t == nil { - t = &GetAllEvents_Events_Edges_Node_Organization{} + t = &GetEntitlementPlanByID_EntitlementPlan_Features{} } - return t.ID -} - -type GetAllEvents_Events_Edges_Node_Invite struct { - ID string "json:\"id\" graphql:\"id\"" + return &t.Feature } - -func (t *GetAllEvents_Events_Edges_Node_Invite) GetID() string { +func (t *GetEntitlementPlanByID_EntitlementPlan_Features) GetMetadata() map[string]interface{} { if t == nil { - t = &GetAllEvents_Events_Edges_Node_Invite{} + t = &GetEntitlementPlanByID_EntitlementPlan_Features{} } - return t.ID -} - -type GetAllEvents_Events_Edges_Node_Feature struct { - ID string "json:\"id\" graphql:\"id\"" + return t.Metadata } - -func (t *GetAllEvents_Events_Edges_Node_Feature) GetID() string { +func (t *GetEntitlementPlanByID_EntitlementPlan_Features) GetTags() []string { if t == nil { - t = &GetAllEvents_Events_Edges_Node_Feature{} + t = &GetEntitlementPlanByID_EntitlementPlan_Features{} } - return t.ID + return t.Tags } -type GetAllEvents_Events_Edges_Node_PersonalAccessToken struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementPlanByID_EntitlementPlan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Version string "json:\"version\" graphql:\"version\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Features []*GetEntitlementPlanByID_EntitlementPlan_Features "json:\"features,omitempty\" graphql:\"features\"" } -func (t *GetAllEvents_Events_Edges_Node_PersonalAccessToken) GetID() string { +func (t *GetEntitlementPlanByID_EntitlementPlan) GetID() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node_PersonalAccessToken{} + t = &GetEntitlementPlanByID_EntitlementPlan{} } return t.ID } - -type GetAllEvents_Events_Edges_Node_Oauth2token struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *GetAllEvents_Events_Edges_Node_Oauth2token) GetID() string { +func (t *GetEntitlementPlanByID_EntitlementPlan) GetName() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node_Oauth2token{} + t = &GetEntitlementPlanByID_EntitlementPlan{} } - return t.ID -} - -type GetAllEvents_Events_Edges_Node_Hush struct { - ID string "json:\"id\" graphql:\"id\"" + return t.Name } - -func (t *GetAllEvents_Events_Edges_Node_Hush) GetID() string { +func (t *GetEntitlementPlanByID_EntitlementPlan) GetDisplayName() *string { if t == nil { - t = &GetAllEvents_Events_Edges_Node_Hush{} + t = &GetEntitlementPlanByID_EntitlementPlan{} } - return t.ID -} - -type GetAllEvents_Events_Edges_Node_Orgmembership struct { - ID string "json:\"id\" graphql:\"id\"" + return t.DisplayName } - -func (t *GetAllEvents_Events_Edges_Node_Orgmembership) GetID() string { +func (t *GetEntitlementPlanByID_EntitlementPlan) GetMetadata() map[string]interface{} { if t == nil { - t = &GetAllEvents_Events_Edges_Node_Orgmembership{} + t = &GetEntitlementPlanByID_EntitlementPlan{} } - return t.ID + return t.Metadata } - -type GetAllEvents_Events_Edges_Node_Groupmembership struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetEntitlementPlanByID_EntitlementPlan) GetTags() []string { + if t == nil { + t = &GetEntitlementPlanByID_EntitlementPlan{} + } + return t.Tags } - -func (t *GetAllEvents_Events_Edges_Node_Groupmembership) GetID() string { +func (t *GetEntitlementPlanByID_EntitlementPlan) GetVersion() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node_Groupmembership{} + t = &GetEntitlementPlanByID_EntitlementPlan{} } - return t.ID + return t.Version } - -type GetAllEvents_Events_Edges_Node_Entitlement struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetEntitlementPlanByID_EntitlementPlan) GetDescription() *string { + if t == nil { + t = &GetEntitlementPlanByID_EntitlementPlan{} + } + return t.Description } - -func (t *GetAllEvents_Events_Edges_Node_Entitlement) GetID() string { +func (t *GetEntitlementPlanByID_EntitlementPlan) GetFeatures() []*GetEntitlementPlanByID_EntitlementPlan_Features { if t == nil { - t = &GetAllEvents_Events_Edges_Node_Entitlement{} + t = &GetEntitlementPlanByID_EntitlementPlan{} } - return t.ID + return t.Features } -type GetAllEvents_Events_Edges_Node_Webhook struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetAllEvents_Events_Edges_Node_Webhook) GetID() string { +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature) GetID() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node_Webhook{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature{} } return t.ID } - -type GetAllEvents_Events_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" - CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" - EventType string "json:\"eventType\" graphql:\"eventType\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - User []*GetAllEvents_Events_Edges_Node_User "json:\"user,omitempty\" graphql:\"user\"" - Group []*GetAllEvents_Events_Edges_Node_Group "json:\"group,omitempty\" graphql:\"group\"" - Integration []*GetAllEvents_Events_Edges_Node_Integration "json:\"integration,omitempty\" graphql:\"integration\"" - Organization []*GetAllEvents_Events_Edges_Node_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Invite []*GetAllEvents_Events_Edges_Node_Invite "json:\"invite,omitempty\" graphql:\"invite\"" - Feature []*GetAllEvents_Events_Edges_Node_Feature "json:\"feature,omitempty\" graphql:\"feature\"" - PersonalAccessToken []*GetAllEvents_Events_Edges_Node_PersonalAccessToken "json:\"personalAccessToken,omitempty\" graphql:\"personalAccessToken\"" - Oauth2token []*GetAllEvents_Events_Edges_Node_Oauth2token "json:\"oauth2token,omitempty\" graphql:\"oauth2token\"" - Hush []*GetAllEvents_Events_Edges_Node_Hush "json:\"hush,omitempty\" graphql:\"hush\"" - Orgmembership []*GetAllEvents_Events_Edges_Node_Orgmembership "json:\"orgmembership,omitempty\" graphql:\"orgmembership\"" - Groupmembership []*GetAllEvents_Events_Edges_Node_Groupmembership "json:\"groupmembership,omitempty\" graphql:\"groupmembership\"" - Entitlement []*GetAllEvents_Events_Edges_Node_Entitlement "json:\"entitlement,omitempty\" graphql:\"entitlement\"" - Webhook []*GetAllEvents_Events_Edges_Node_Webhook "json:\"webhook,omitempty\" graphql:\"webhook\"" -} - -func (t *GetAllEvents_Events_Edges_Node) GetID() string { +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature) GetMetadata() map[string]interface{} { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature{} } - return t.ID + return t.Metadata } -func (t *GetAllEvents_Events_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature) GetName() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature{} } - return t.CreatedAt + return t.Name } -func (t *GetAllEvents_Events_Edges_Node) GetUpdatedAt() *time.Time { + +type GetEntitlementPlans_EntitlementPlans_Edges_Node_Features struct { + Feature GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature "json:\"feature\" graphql:\"feature\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features) GetFeature() *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features_Feature { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node_Features{} } - return t.UpdatedAt + return &t.Feature } -func (t *GetAllEvents_Events_Edges_Node) GetCreatedBy() *string { +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features) GetMetadata() map[string]interface{} { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node_Features{} } - return t.CreatedBy + return t.Metadata } -func (t *GetAllEvents_Events_Edges_Node) GetUpdatedBy() *string { +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node_Features) GetTags() []string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node_Features{} } - return t.UpdatedBy + return t.Tags } -func (t *GetAllEvents_Events_Edges_Node) GetEventID() *string { + +type GetEntitlementPlans_EntitlementPlans_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Version string "json:\"version\" graphql:\"version\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Features []*GetEntitlementPlans_EntitlementPlans_Edges_Node_Features "json:\"features,omitempty\" graphql:\"features\"" +} + +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetID() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.EventID + return t.ID } -func (t *GetAllEvents_Events_Edges_Node) GetCorrelationID() *string { +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetName() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.CorrelationID + return t.Name } -func (t *GetAllEvents_Events_Edges_Node) GetEventType() string { +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetDisplayName() *string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.EventType + return t.DisplayName } -func (t *GetAllEvents_Events_Edges_Node) GetMetadata() map[string]interface{} { +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetMetadata() map[string]interface{} { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} } return t.Metadata } -func (t *GetAllEvents_Events_Edges_Node) GetUser() []*GetAllEvents_Events_Edges_Node_User { +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.User + return t.Tags } -func (t *GetAllEvents_Events_Edges_Node) GetGroup() []*GetAllEvents_Events_Edges_Node_Group { +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetVersion() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.Group + return t.Version } -func (t *GetAllEvents_Events_Edges_Node) GetIntegration() []*GetAllEvents_Events_Edges_Node_Integration { +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetDescription() *string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.Integration + return t.Description } -func (t *GetAllEvents_Events_Edges_Node) GetOrganization() []*GetAllEvents_Events_Edges_Node_Organization { +func (t *GetEntitlementPlans_EntitlementPlans_Edges_Node) GetFeatures() []*GetEntitlementPlans_EntitlementPlans_Edges_Node_Features { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges_Node{} } - return t.Organization + return t.Features } -func (t *GetAllEvents_Events_Edges_Node) GetInvite() []*GetAllEvents_Events_Edges_Node_Invite { + +type GetEntitlementPlans_EntitlementPlans_Edges struct { + Node *GetEntitlementPlans_EntitlementPlans_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetEntitlementPlans_EntitlementPlans_Edges) GetNode() *GetEntitlementPlans_EntitlementPlans_Edges_Node { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans_Edges{} } - return t.Invite + return t.Node } -func (t *GetAllEvents_Events_Edges_Node) GetFeature() []*GetAllEvents_Events_Edges_Node_Feature { + +type GetEntitlementPlans_EntitlementPlans struct { + Edges []*GetEntitlementPlans_EntitlementPlans_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetEntitlementPlans_EntitlementPlans) GetEdges() []*GetEntitlementPlans_EntitlementPlans_Edges { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &GetEntitlementPlans_EntitlementPlans{} } - return t.Feature + return t.Edges } -func (t *GetAllEvents_Events_Edges_Node) GetPersonalAccessToken() []*GetAllEvents_Events_Edges_Node_PersonalAccessToken { + +type UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Version string "json:\"version\" graphql:\"version\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" +} + +func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetID() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} } - return t.PersonalAccessToken + return t.ID } -func (t *GetAllEvents_Events_Edges_Node) GetOauth2token() []*GetAllEvents_Events_Edges_Node_Oauth2token { +func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetName() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} } - return t.Oauth2token + return t.Name } -func (t *GetAllEvents_Events_Edges_Node) GetHush() []*GetAllEvents_Events_Edges_Node_Hush { +func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetDisplayName() *string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} } - return t.Hush + return t.DisplayName } -func (t *GetAllEvents_Events_Edges_Node) GetOrgmembership() []*GetAllEvents_Events_Edges_Node_Orgmembership { +func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetMetadata() map[string]interface{} { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} } - return t.Orgmembership + return t.Metadata } -func (t *GetAllEvents_Events_Edges_Node) GetGroupmembership() []*GetAllEvents_Events_Edges_Node_Groupmembership { +func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetTags() []string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} } - return t.Groupmembership + return t.Tags } -func (t *GetAllEvents_Events_Edges_Node) GetEntitlement() []*GetAllEvents_Events_Edges_Node_Entitlement { +func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetVersion() string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} } - return t.Entitlement + return t.Version } -func (t *GetAllEvents_Events_Edges_Node) GetWebhook() []*GetAllEvents_Events_Edges_Node_Webhook { +func (t *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan) GetDescription() *string { if t == nil { - t = &GetAllEvents_Events_Edges_Node{} + t = &UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan{} } - return t.Webhook + return t.Description } -type GetAllEvents_Events_Edges struct { - Node *GetAllEvents_Events_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type UpdateEntitlementPlan_UpdateEntitlementPlan struct { + EntitlementPlan UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan "json:\"entitlementPlan\" graphql:\"entitlementPlan\"" } -func (t *GetAllEvents_Events_Edges) GetNode() *GetAllEvents_Events_Edges_Node { +func (t *UpdateEntitlementPlan_UpdateEntitlementPlan) GetEntitlementPlan() *UpdateEntitlementPlan_UpdateEntitlementPlan_EntitlementPlan { if t == nil { - t = &GetAllEvents_Events_Edges{} + t = &UpdateEntitlementPlan_UpdateEntitlementPlan{} } - return t.Node + return &t.EntitlementPlan } -type GetAllEvents_Events struct { - Edges []*GetAllEvents_Events_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetAllEvents_Events) GetEdges() []*GetAllEvents_Events_Edges { +func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan) GetID() string { if t == nil { - t = &GetAllEvents_Events{} + t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan{} } - return t.Edges -} - -type GetEventByID_Event_User struct { - ID string "json:\"id\" graphql:\"id\"" + return t.ID } - -func (t *GetEventByID_Event_User) GetID() string { +func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan) GetName() string { if t == nil { - t = &GetEventByID_Event_User{} + t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan{} } - return t.ID + return t.Name } -type GetEventByID_Event_Group struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetEventByID_Event_Group) GetID() string { +func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature) GetID() string { if t == nil { - t = &GetEventByID_Event_Group{} + t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature{} } return t.ID } - -type GetEventByID_Event_Integration struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *GetEventByID_Event_Integration) GetID() string { +func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature) GetName() string { if t == nil { - t = &GetEventByID_Event_Integration{} + t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature{} } - return t.ID + return t.Name } -type GetEventByID_Event_Organization struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures struct { + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Plan CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan "json:\"plan\" graphql:\"plan\"" + Feature CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature "json:\"feature\" graphql:\"feature\"" } -func (t *GetEventByID_Event_Organization) GetID() string { +func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures) GetID() string { if t == nil { - t = &GetEventByID_Event_Organization{} + t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures{} } return t.ID } - -type GetEventByID_Event_Invite struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *GetEventByID_Event_Invite) GetID() string { +func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures) GetMetadata() map[string]interface{} { if t == nil { - t = &GetEventByID_Event_Invite{} + t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures{} } - return t.ID + return t.Metadata } - -type GetEventByID_Event_Feature struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures) GetPlan() *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Plan { + if t == nil { + t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures{} + } + return &t.Plan } - -func (t *GetEventByID_Event_Feature) GetID() string { +func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures) GetFeature() *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures_Feature { if t == nil { - t = &GetEventByID_Event_Feature{} + t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures{} } - return t.ID + return &t.Feature } -type GetEventByID_Event_PersonalAccessToken struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature struct { + EntitlementPlanFeatures []*CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures "json:\"entitlementPlanFeatures,omitempty\" graphql:\"entitlementPlanFeatures\"" } -func (t *GetEventByID_Event_PersonalAccessToken) GetID() string { +func (t *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature) GetEntitlementPlanFeatures() []*CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature_EntitlementPlanFeatures { if t == nil { - t = &GetEventByID_Event_PersonalAccessToken{} + t = &CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature{} } - return t.ID + return t.EntitlementPlanFeatures } -type GetEventByID_Event_Oauth2token struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetEventByID_Event_Oauth2token) GetID() string { +func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan) GetID() string { if t == nil { - t = &GetEventByID_Event_Oauth2token{} + t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan{} } return t.ID } - -type GetEventByID_Event_Hush struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *GetEventByID_Event_Hush) GetID() string { +func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan) GetName() string { if t == nil { - t = &GetEventByID_Event_Hush{} + t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan{} } - return t.ID + return t.Name } -type GetEventByID_Event_Orgmembership struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetEventByID_Event_Orgmembership) GetID() string { +func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature) GetID() string { if t == nil { - t = &GetEventByID_Event_Orgmembership{} + t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature{} } return t.ID } - -type GetEventByID_Event_Groupmembership struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *GetEventByID_Event_Groupmembership) GetID() string { +func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature) GetName() string { if t == nil { - t = &GetEventByID_Event_Groupmembership{} + t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature{} } - return t.ID + return t.Name } -type GetEventByID_Event_Entitlement struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures struct { + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Plan CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan "json:\"plan\" graphql:\"plan\"" + Feature CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature "json:\"feature\" graphql:\"feature\"" } -func (t *GetEventByID_Event_Entitlement) GetID() string { +func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures) GetID() string { if t == nil { - t = &GetEventByID_Event_Entitlement{} + t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures{} } return t.ID } - -type GetEventByID_Event_Webhook struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures) GetMetadata() map[string]interface{} { + if t == nil { + t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures{} + } + return t.Metadata } - -func (t *GetEventByID_Event_Webhook) GetID() string { +func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures) GetPlan() *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Plan { if t == nil { - t = &GetEventByID_Event_Webhook{} + t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures{} } - return t.ID + return &t.Plan +} +func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures) GetFeature() *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures_Feature { + if t == nil { + t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures{} + } + return &t.Feature } -type GetEventByID_Event struct { - ID string "json:\"id\" graphql:\"id\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" - CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" - EventType string "json:\"eventType\" graphql:\"eventType\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - User []*GetEventByID_Event_User "json:\"user,omitempty\" graphql:\"user\"" - Group []*GetEventByID_Event_Group "json:\"group,omitempty\" graphql:\"group\"" - Integration []*GetEventByID_Event_Integration "json:\"integration,omitempty\" graphql:\"integration\"" - Organization []*GetEventByID_Event_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Invite []*GetEventByID_Event_Invite "json:\"invite,omitempty\" graphql:\"invite\"" - Feature []*GetEventByID_Event_Feature "json:\"feature,omitempty\" graphql:\"feature\"" - PersonalAccessToken []*GetEventByID_Event_PersonalAccessToken "json:\"personalAccessToken,omitempty\" graphql:\"personalAccessToken\"" - Oauth2token []*GetEventByID_Event_Oauth2token "json:\"oauth2token,omitempty\" graphql:\"oauth2token\"" - Hush []*GetEventByID_Event_Hush "json:\"hush,omitempty\" graphql:\"hush\"" - Orgmembership []*GetEventByID_Event_Orgmembership "json:\"orgmembership,omitempty\" graphql:\"orgmembership\"" - Groupmembership []*GetEventByID_Event_Groupmembership "json:\"groupmembership,omitempty\" graphql:\"groupmembership\"" - Entitlement []*GetEventByID_Event_Entitlement "json:\"entitlement,omitempty\" graphql:\"entitlement\"" - Webhook []*GetEventByID_Event_Webhook "json:\"webhook,omitempty\" graphql:\"webhook\"" +type CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature struct { + EntitlementPlanFeatures []*CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures "json:\"entitlementPlanFeatures,omitempty\" graphql:\"entitlementPlanFeatures\"" } -func (t *GetEventByID_Event) GetID() string { +func (t *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature) GetEntitlementPlanFeatures() []*CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature_EntitlementPlanFeatures { if t == nil { - t = &GetEventByID_Event{} + t = &CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature{} } - return t.ID + return t.EntitlementPlanFeatures } -func (t *GetEventByID_Event) GetCreatedAt() *time.Time { - if t == nil { - t = &GetEventByID_Event{} - } - return t.CreatedAt + +type CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetEventByID_Event) GetUpdatedAt() *time.Time { + +func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan) GetID() string { if t == nil { - t = &GetEventByID_Event{} + t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan{} } - return t.UpdatedAt + return t.ID } -func (t *GetEventByID_Event) GetCreatedBy() *string { +func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan) GetName() string { if t == nil { - t = &GetEventByID_Event{} + t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan{} } - return t.CreatedBy + return t.Name } -func (t *GetEventByID_Event) GetUpdatedBy() *string { - if t == nil { - t = &GetEventByID_Event{} - } - return t.UpdatedBy + +type CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetEventByID_Event) GetEventID() *string { + +func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature) GetID() string { if t == nil { - t = &GetEventByID_Event{} + t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature{} } - return t.EventID + return t.ID } -func (t *GetEventByID_Event) GetCorrelationID() *string { +func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature) GetName() string { if t == nil { - t = &GetEventByID_Event{} + t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature{} } - return t.CorrelationID + return t.Name } -func (t *GetEventByID_Event) GetEventType() string { - if t == nil { - t = &GetEventByID_Event{} - } - return t.EventType + +type CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature struct { + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Plan CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan "json:\"plan\" graphql:\"plan\"" + Feature CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature "json:\"feature\" graphql:\"feature\"" } -func (t *GetEventByID_Event) GetMetadata() map[string]interface{} { + +func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature) GetID() string { if t == nil { - t = &GetEventByID_Event{} + t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature{} } - return t.Metadata + return t.ID } -func (t *GetEventByID_Event) GetUser() []*GetEventByID_Event_User { +func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature) GetMetadata() map[string]interface{} { if t == nil { - t = &GetEventByID_Event{} + t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature{} } - return t.User + return t.Metadata } -func (t *GetEventByID_Event) GetGroup() []*GetEventByID_Event_Group { +func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature) GetPlan() *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Plan { if t == nil { - t = &GetEventByID_Event{} + t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature{} } - return t.Group + return &t.Plan } -func (t *GetEventByID_Event) GetIntegration() []*GetEventByID_Event_Integration { +func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature) GetFeature() *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature_Feature { if t == nil { - t = &GetEventByID_Event{} + t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature{} } - return t.Integration + return &t.Feature } -func (t *GetEventByID_Event) GetOrganization() []*GetEventByID_Event_Organization { - if t == nil { - t = &GetEventByID_Event{} - } - return t.Organization + +type CreateEntitlementPlanFeature_CreateEntitlementPlanFeature struct { + EntitlementPlanFeature CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature "json:\"entitlementPlanFeature\" graphql:\"entitlementPlanFeature\"" } -func (t *GetEventByID_Event) GetInvite() []*GetEventByID_Event_Invite { + +func (t *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature) GetEntitlementPlanFeature() *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature_EntitlementPlanFeature { if t == nil { - t = &GetEventByID_Event{} + t = &CreateEntitlementPlanFeature_CreateEntitlementPlanFeature{} } - return t.Invite + return &t.EntitlementPlanFeature } -func (t *GetEventByID_Event) GetFeature() []*GetEventByID_Event_Feature { - if t == nil { - t = &GetEventByID_Event{} - } - return t.Feature + +type DeleteEntitlementPlanFeature_DeleteEntitlementPlanFeature struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetEventByID_Event) GetPersonalAccessToken() []*GetEventByID_Event_PersonalAccessToken { + +func (t *DeleteEntitlementPlanFeature_DeleteEntitlementPlanFeature) GetDeletedID() string { if t == nil { - t = &GetEventByID_Event{} + t = &DeleteEntitlementPlanFeature_DeleteEntitlementPlanFeature{} } - return t.PersonalAccessToken + return t.DeletedID } -func (t *GetEventByID_Event) GetOauth2token() []*GetEventByID_Event_Oauth2token { - if t == nil { - t = &GetEventByID_Event{} - } - return t.Oauth2token + +type GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetEventByID_Event) GetHush() []*GetEventByID_Event_Hush { + +func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature) GetID() string { if t == nil { - t = &GetEventByID_Event{} + t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature{} } - return t.Hush + return t.ID } -func (t *GetEventByID_Event) GetOrgmembership() []*GetEventByID_Event_Orgmembership { +func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature) GetName() string { if t == nil { - t = &GetEventByID_Event{} + t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature{} } - return t.Orgmembership + return t.Name } -func (t *GetEventByID_Event) GetGroupmembership() []*GetEventByID_Event_Groupmembership { - if t == nil { - t = &GetEventByID_Event{} - } - return t.Groupmembership + +type GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetEventByID_Event) GetEntitlement() []*GetEventByID_Event_Entitlement { + +func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan) GetID() string { if t == nil { - t = &GetEventByID_Event{} + t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan{} } - return t.Entitlement + return t.ID } -func (t *GetEventByID_Event) GetWebhook() []*GetEventByID_Event_Webhook { +func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan) GetName() string { if t == nil { - t = &GetEventByID_Event{} + t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan{} } - return t.Webhook + return t.Name } -type GetEvents_Events_Edges_Node struct { - EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" - ID string "json:\"id\" graphql:\"id\"" - CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" - EventType string "json:\"eventType\" graphql:\"eventType\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" +type GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Feature GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature "json:\"feature\" graphql:\"feature\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Plan GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan "json:\"plan\" graphql:\"plan\"" } -func (t *GetEvents_Events_Edges_Node) GetEventID() *string { - if t == nil { - t = &GetEvents_Events_Edges_Node{} - } - return t.EventID -} -func (t *GetEvents_Events_Edges_Node) GetID() string { +func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetID() string { if t == nil { - t = &GetEvents_Events_Edges_Node{} + t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} } return t.ID } -func (t *GetEvents_Events_Edges_Node) GetCorrelationID() *string { +func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetFeature() *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature { if t == nil { - t = &GetEvents_Events_Edges_Node{} + t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} } - return t.CorrelationID + return &t.Feature } -func (t *GetEvents_Events_Edges_Node) GetEventType() string { +func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetMetadata() map[string]interface{} { if t == nil { - t = &GetEvents_Events_Edges_Node{} + t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} } - return t.EventType + return t.Metadata } -func (t *GetEvents_Events_Edges_Node) GetMetadata() map[string]interface{} { +func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetPlan() *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan { if t == nil { - t = &GetEvents_Events_Edges_Node{} + t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} } - return t.Metadata + return &t.Plan } -type GetEvents_Events_Edges struct { - Node *GetEvents_Events_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges struct { + Node *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetEvents_Events_Edges) GetNode() *GetEvents_Events_Edges_Node { +func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges) GetNode() *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node { if t == nil { - t = &GetEvents_Events_Edges{} + t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges{} } return t.Node } -type GetEvents_Events struct { - Edges []*GetEvents_Events_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllEntitlementPlanFeatures_EntitlementPlanFeatures struct { + Edges []*GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetEvents_Events) GetEdges() []*GetEvents_Events_Edges { +func (t *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures) GetEdges() []*GetAllEntitlementPlanFeatures_EntitlementPlanFeatures_Edges { if t == nil { - t = &GetEvents_Events{} + t = &GetAllEntitlementPlanFeatures_EntitlementPlanFeatures{} } return t.Edges } -type UpdateEvent_UpdateEvent_Event_User struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *UpdateEvent_UpdateEvent_Event_User) GetID() string { +func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan) GetID() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_User{} + t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan{} } return t.ID } - -type UpdateEvent_UpdateEvent_Event_Group struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *UpdateEvent_UpdateEvent_Event_Group) GetID() string { +func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan) GetName() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_Group{} + t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan{} } - return t.ID + return t.Name } -type UpdateEvent_UpdateEvent_Event_Integration struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *UpdateEvent_UpdateEvent_Event_Integration) GetID() string { +func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature) GetID() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_Integration{} + t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature{} } return t.ID } - -type UpdateEvent_UpdateEvent_Event_Organization struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *UpdateEvent_UpdateEvent_Event_Organization) GetID() string { +func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature) GetName() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_Organization{} + t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature{} } - return t.ID + return t.Name } -type UpdateEvent_UpdateEvent_Event_Invite struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementPlanFeatureByID_EntitlementPlanFeature struct { + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Plan GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan "json:\"plan\" graphql:\"plan\"" + Feature GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature "json:\"feature\" graphql:\"feature\"" } -func (t *UpdateEvent_UpdateEvent_Event_Invite) GetID() string { +func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature) GetID() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_Invite{} + t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature{} } return t.ID } - -type UpdateEvent_UpdateEvent_Event_Feature struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *UpdateEvent_UpdateEvent_Event_Feature) GetID() string { +func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature) GetMetadata() map[string]interface{} { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_Feature{} + t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature{} } - return t.ID + return t.Metadata } - -type UpdateEvent_UpdateEvent_Event_PersonalAccessToken struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature) GetPlan() *GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Plan { + if t == nil { + t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature{} + } + return &t.Plan } - -func (t *UpdateEvent_UpdateEvent_Event_PersonalAccessToken) GetID() string { +func (t *GetEntitlementPlanFeatureByID_EntitlementPlanFeature) GetFeature() *GetEntitlementPlanFeatureByID_EntitlementPlanFeature_Feature { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_PersonalAccessToken{} + t = &GetEntitlementPlanFeatureByID_EntitlementPlanFeature{} } - return t.ID + return &t.Feature } -type UpdateEvent_UpdateEvent_Event_Oauth2token struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *UpdateEvent_UpdateEvent_Event_Oauth2token) GetID() string { +func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan) GetID() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_Oauth2token{} + t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan{} } return t.ID } +func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan) GetName() string { + if t == nil { + t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan{} + } + return t.Name +} -type UpdateEvent_UpdateEvent_Event_Hush struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *UpdateEvent_UpdateEvent_Event_Hush) GetID() string { +func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature) GetID() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_Hush{} + t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature{} } return t.ID } +func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature) GetName() string { + if t == nil { + t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature{} + } + return t.Name +} -type UpdateEvent_UpdateEvent_Event_Orgmembership struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Plan GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan "json:\"plan\" graphql:\"plan\"" + Feature GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature "json:\"feature\" graphql:\"feature\"" } -func (t *UpdateEvent_UpdateEvent_Event_Orgmembership) GetID() string { +func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetID() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_Orgmembership{} + t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} } return t.ID } - -type UpdateEvent_UpdateEvent_Event_Groupmembership struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetMetadata() map[string]interface{} { + if t == nil { + t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} + } + return t.Metadata } - -func (t *UpdateEvent_UpdateEvent_Event_Groupmembership) GetID() string { +func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetPlan() *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Plan { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_Groupmembership{} + t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} } - return t.ID + return &t.Plan +} +func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node) GetFeature() *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node_Feature { + if t == nil { + t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node{} + } + return &t.Feature } -type UpdateEvent_UpdateEvent_Event_Entitlement struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges struct { + Node *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *UpdateEvent_UpdateEvent_Event_Entitlement) GetID() string { +func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges) GetNode() *GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges_Node { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_Entitlement{} + t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges{} } - return t.ID + return t.Node } -type UpdateEvent_UpdateEvent_Event_Webhook struct { - ID string "json:\"id\" graphql:\"id\"" +type GetEntitlementPlanFeatures_EntitlementPlanFeatures struct { + Edges []*GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *UpdateEvent_UpdateEvent_Event_Webhook) GetID() string { +func (t *GetEntitlementPlanFeatures_EntitlementPlanFeatures) GetEdges() []*GetEntitlementPlanFeatures_EntitlementPlanFeatures_Edges { if t == nil { - t = &UpdateEvent_UpdateEvent_Event_Webhook{} + t = &GetEntitlementPlanFeatures_EntitlementPlanFeatures{} } - return t.ID + return t.Edges } -type UpdateEvent_UpdateEvent_Event struct { - ID string "json:\"id\" graphql:\"id\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" - CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" - EventType string "json:\"eventType\" graphql:\"eventType\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - User []*UpdateEvent_UpdateEvent_Event_User "json:\"user,omitempty\" graphql:\"user\"" - Group []*UpdateEvent_UpdateEvent_Event_Group "json:\"group,omitempty\" graphql:\"group\"" - Integration []*UpdateEvent_UpdateEvent_Event_Integration "json:\"integration,omitempty\" graphql:\"integration\"" - Organization []*UpdateEvent_UpdateEvent_Event_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Invite []*UpdateEvent_UpdateEvent_Event_Invite "json:\"invite,omitempty\" graphql:\"invite\"" - Feature []*UpdateEvent_UpdateEvent_Event_Feature "json:\"feature,omitempty\" graphql:\"feature\"" - PersonalAccessToken []*UpdateEvent_UpdateEvent_Event_PersonalAccessToken "json:\"personalAccessToken,omitempty\" graphql:\"personalAccessToken\"" - Oauth2token []*UpdateEvent_UpdateEvent_Event_Oauth2token "json:\"oauth2token,omitempty\" graphql:\"oauth2token\"" - Hush []*UpdateEvent_UpdateEvent_Event_Hush "json:\"hush,omitempty\" graphql:\"hush\"" - Orgmembership []*UpdateEvent_UpdateEvent_Event_Orgmembership "json:\"orgmembership,omitempty\" graphql:\"orgmembership\"" - Groupmembership []*UpdateEvent_UpdateEvent_Event_Groupmembership "json:\"groupmembership,omitempty\" graphql:\"groupmembership\"" - Entitlement []*UpdateEvent_UpdateEvent_Event_Entitlement "json:\"entitlement,omitempty\" graphql:\"entitlement\"" - Webhook []*UpdateEvent_UpdateEvent_Event_Webhook "json:\"webhook,omitempty\" graphql:\"webhook\"" +type UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *UpdateEvent_UpdateEvent_Event) GetID() string { +func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan) GetID() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan{} } return t.ID } -func (t *UpdateEvent_UpdateEvent_Event) GetCreatedAt() *time.Time { - if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} - } - return t.CreatedAt -} -func (t *UpdateEvent_UpdateEvent_Event) GetUpdatedAt() *time.Time { +func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan) GetName() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan{} } - return t.UpdatedAt + return t.Name } -func (t *UpdateEvent_UpdateEvent_Event) GetCreatedBy() *string { - if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} - } - return t.CreatedBy + +type UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *UpdateEvent_UpdateEvent_Event) GetUpdatedBy() *string { + +func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature) GetID() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature{} } - return t.UpdatedBy + return t.ID } -func (t *UpdateEvent_UpdateEvent_Event) GetEventID() *string { +func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature) GetName() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature{} } - return t.EventID + return t.Name } -func (t *UpdateEvent_UpdateEvent_Event) GetCorrelationID() *string { - if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} - } - return t.CorrelationID + +type UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature struct { + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Plan UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan "json:\"plan\" graphql:\"plan\"" + Feature UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature "json:\"feature\" graphql:\"feature\"" } -func (t *UpdateEvent_UpdateEvent_Event) GetEventType() string { + +func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature) GetID() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature{} } - return t.EventType + return t.ID } -func (t *UpdateEvent_UpdateEvent_Event) GetMetadata() map[string]interface{} { +func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature) GetMetadata() map[string]interface{} { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature{} } return t.Metadata } -func (t *UpdateEvent_UpdateEvent_Event) GetUser() []*UpdateEvent_UpdateEvent_Event_User { +func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature) GetPlan() *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Plan { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature{} } - return t.User + return &t.Plan } -func (t *UpdateEvent_UpdateEvent_Event) GetGroup() []*UpdateEvent_UpdateEvent_Event_Group { +func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature) GetFeature() *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature_Feature { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature{} } - return t.Group + return &t.Feature } -func (t *UpdateEvent_UpdateEvent_Event) GetIntegration() []*UpdateEvent_UpdateEvent_Event_Integration { - if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} - } - return t.Integration + +type UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature struct { + EntitlementPlanFeature UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature "json:\"entitlementPlanFeature\" graphql:\"entitlementPlanFeature\"" } -func (t *UpdateEvent_UpdateEvent_Event) GetOrganization() []*UpdateEvent_UpdateEvent_Event_Organization { + +func (t *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature) GetEntitlementPlanFeature() *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature_EntitlementPlanFeature { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature{} } - return t.Organization + return &t.EntitlementPlanFeature } -func (t *UpdateEvent_UpdateEvent_Event) GetInvite() []*UpdateEvent_UpdateEvent_Event_Invite { - if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + +type GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + FeatureID string "json:\"featureID\" graphql:\"featureID\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PlanID string "json:\"planID\" graphql:\"planID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } - return t.Invite + return t.CreatedAt } -func (t *UpdateEvent_UpdateEvent_Event) GetFeature() []*UpdateEvent_UpdateEvent_Event_Feature { +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } - return t.Feature + return t.CreatedBy } -func (t *UpdateEvent_UpdateEvent_Event) GetPersonalAccessToken() []*UpdateEvent_UpdateEvent_Event_PersonalAccessToken { +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetFeatureID() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } - return t.PersonalAccessToken + return t.FeatureID } -func (t *UpdateEvent_UpdateEvent_Event) GetOauth2token() []*UpdateEvent_UpdateEvent_Event_Oauth2token { +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } - return t.Oauth2token + return &t.HistoryTime } -func (t *UpdateEvent_UpdateEvent_Event) GetHush() []*UpdateEvent_UpdateEvent_Event_Hush { +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetID() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } - return t.Hush + return t.ID } -func (t *UpdateEvent_UpdateEvent_Event) GetOrgmembership() []*UpdateEvent_UpdateEvent_Event_Orgmembership { +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetMetadata() map[string]interface{} { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } - return t.Orgmembership + return t.Metadata } -func (t *UpdateEvent_UpdateEvent_Event) GetGroupmembership() []*UpdateEvent_UpdateEvent_Event_Groupmembership { +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } - return t.Groupmembership + return &t.Operation } -func (t *UpdateEvent_UpdateEvent_Event) GetEntitlement() []*UpdateEvent_UpdateEvent_Event_Entitlement { +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } - return t.Entitlement + return t.OwnerID } -func (t *UpdateEvent_UpdateEvent_Event) GetWebhook() []*UpdateEvent_UpdateEvent_Event_Webhook { +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetPlanID() string { if t == nil { - t = &UpdateEvent_UpdateEvent_Event{} + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } - return t.Webhook + return t.PlanID +} +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + } + return t.UpdatedBy } -type UpdateEvent_UpdateEvent struct { - Event UpdateEvent_UpdateEvent_Event "json:\"event\" graphql:\"event\"" +type GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges struct { + Node *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *UpdateEvent_UpdateEvent) GetEvent() *UpdateEvent_UpdateEvent_Event { +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges) GetNode() *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node { if t == nil { - t = &UpdateEvent_UpdateEvent{} + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges{} } - return &t.Event + return t.Node } -type GetAllEventHistories_EventHistories_Edges_Node struct { - CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" - EventType string "json:\"eventType\" graphql:\"eventType\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories struct { + Edges []*GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetCorrelationID() *string { +func (t *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories) GetEdges() []*GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories{} } - return t.CorrelationID + return t.Edges } -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetCreatedAt() *time.Time { + +type GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + FeatureID string "json:\"featureID\" graphql:\"featureID\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + PlanID string "json:\"planID\" graphql:\"planID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } return t.CreatedAt } -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } return t.CreatedBy } -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetEventID() *string { - if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} - } - return t.EventID -} -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetEventType() string { +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetFeatureID() string { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } - return t.EventType + return t.FeatureID } -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } return &t.HistoryTime } -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetID() string { +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetID() string { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } return t.ID } -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetMetadata() map[string]interface{} { +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetMetadata() map[string]interface{} { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } return t.Metadata } -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } return &t.Operation } -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetRef() *string { +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + } + return t.OwnerID +} +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetPlanID() string { + if t == nil { + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} + } + return t.PlanID +} +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } return t.Ref } -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetTags() []string { +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } return t.Tags } -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetAllEventHistories_EventHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges_Node{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node{} } return t.UpdatedBy } -type GetAllEventHistories_EventHistories_Edges struct { - Node *GetAllEventHistories_EventHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges struct { + Node *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllEventHistories_EventHistories_Edges) GetNode() *GetAllEventHistories_EventHistories_Edges_Node { +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges) GetNode() *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges_Node { if t == nil { - t = &GetAllEventHistories_EventHistories_Edges{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges{} } return t.Node } -type GetAllEventHistories_EventHistories struct { - Edges []*GetAllEventHistories_EventHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories struct { + Edges []*GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllEventHistories_EventHistories) GetEdges() []*GetAllEventHistories_EventHistories_Edges { +func (t *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories) GetEdges() []*GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories_Edges { if t == nil { - t = &GetAllEventHistories_EventHistories{} + t = &GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories{} } return t.Edges } -type GetEventHistories_EventHistories_Edges_Node struct { - CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" - EventType string "json:\"eventType\" graphql:\"eventType\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version string "json:\"version\" graphql:\"version\"" } -func (t *GetEventHistories_EventHistories_Edges_Node) GetCorrelationID() *string { - if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} - } - return t.CorrelationID -} -func (t *GetEventHistories_EventHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } return t.CreatedAt } -func (t *GetEventHistories_EventHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } return t.CreatedBy } -func (t *GetEventHistories_EventHistories_Edges_Node) GetEventID() *string { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.EventID + return t.Description } -func (t *GetEventHistories_EventHistories_Edges_Node) GetEventType() string { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetDisplayName() *string { if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.EventType + return t.DisplayName } -func (t *GetEventHistories_EventHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } return &t.HistoryTime } -func (t *GetEventHistories_EventHistories_Edges_Node) GetID() string { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetID() string { if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } return t.ID } -func (t *GetEventHistories_EventHistories_Edges_Node) GetMetadata() map[string]interface{} { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetMetadata() map[string]interface{} { if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } return t.Metadata } -func (t *GetEventHistories_EventHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetName() string { if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + } + return t.Name +} +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } return &t.Operation } -func (t *GetEventHistories_EventHistories_Edges_Node) GetRef() *string { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + } + return t.OwnerID +} +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } return t.Ref } -func (t *GetEventHistories_EventHistories_Edges_Node) GetTags() []string { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } return t.Tags } -func (t *GetEventHistories_EventHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetEventHistories_EventHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetEventHistories_EventHistories_Edges_Node{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } return t.UpdatedBy } +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetVersion() string { + if t == nil { + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + } + return t.Version +} -type GetEventHistories_EventHistories_Edges struct { - Node *GetEventHistories_EventHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges struct { + Node *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetEventHistories_EventHistories_Edges) GetNode() *GetEventHistories_EventHistories_Edges_Node { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges) GetNode() *GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node { if t == nil { - t = &GetEventHistories_EventHistories_Edges{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges{} } return t.Node } -type GetEventHistories_EventHistories struct { - Edges []*GetEventHistories_EventHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllEntitlementPlanHistories_EntitlementPlanHistories struct { + Edges []*GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetEventHistories_EventHistories) GetEdges() []*GetEventHistories_EventHistories_Edges { +func (t *GetAllEntitlementPlanHistories_EntitlementPlanHistories) GetEdges() []*GetAllEntitlementPlanHistories_EntitlementPlanHistories_Edges { if t == nil { - t = &GetEventHistories_EventHistories{} + t = &GetAllEntitlementPlanHistories_EntitlementPlanHistories{} } return t.Edges } -type CreateBulkCSVFeature_CreateBulkCSVFeature_Features struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version string "json:\"version\" graphql:\"version\"" } -func (t *CreateBulkCSVFeature_CreateBulkCSVFeature_Features) GetDescription() *string { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVFeature_CreateBulkCSVFeature_Features{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.Description + return t.CreatedAt } -func (t *CreateBulkCSVFeature_CreateBulkCSVFeature_Features) GetEnabled() bool { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVFeature_CreateBulkCSVFeature_Features{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.Enabled + return t.CreatedBy } -func (t *CreateBulkCSVFeature_CreateBulkCSVFeature_Features) GetID() string { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &CreateBulkCSVFeature_CreateBulkCSVFeature_Features{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.ID + return t.Description } -func (t *CreateBulkCSVFeature_CreateBulkCSVFeature_Features) GetName() string { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetDisplayName() *string { if t == nil { - t = &CreateBulkCSVFeature_CreateBulkCSVFeature_Features{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.Name + return t.DisplayName } -func (t *CreateBulkCSVFeature_CreateBulkCSVFeature_Features) GetDisplayName() *string { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &CreateBulkCSVFeature_CreateBulkCSVFeature_Features{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.DisplayName + return &t.HistoryTime } -func (t *CreateBulkCSVFeature_CreateBulkCSVFeature_Features) GetTags() []string { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkCSVFeature_CreateBulkCSVFeature_Features{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.Tags + return t.ID } - -type CreateBulkCSVFeature_CreateBulkCSVFeature struct { - Features []*CreateBulkCSVFeature_CreateBulkCSVFeature_Features "json:\"features,omitempty\" graphql:\"features\"" +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetMetadata() map[string]interface{} { + if t == nil { + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + } + return t.Metadata } - -func (t *CreateBulkCSVFeature_CreateBulkCSVFeature) GetFeatures() []*CreateBulkCSVFeature_CreateBulkCSVFeature_Features { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetName() string { if t == nil { - t = &CreateBulkCSVFeature_CreateBulkCSVFeature{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.Features + return t.Name } - -type CreateBulkFeature_CreateBulkFeature_Features struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} + } + return &t.Operation } - -func (t *CreateBulkFeature_CreateBulkFeature_Features) GetDescription() *string { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &CreateBulkFeature_CreateBulkFeature_Features{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.Description + return t.OwnerID } -func (t *CreateBulkFeature_CreateBulkFeature_Features) GetEnabled() bool { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetRef() *string { if t == nil { - t = &CreateBulkFeature_CreateBulkFeature_Features{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.Enabled + return t.Ref } -func (t *CreateBulkFeature_CreateBulkFeature_Features) GetID() string { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetTags() []string { if t == nil { - t = &CreateBulkFeature_CreateBulkFeature_Features{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.ID + return t.Tags } -func (t *CreateBulkFeature_CreateBulkFeature_Features) GetName() string { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkFeature_CreateBulkFeature_Features{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.Name + return t.UpdatedAt } -func (t *CreateBulkFeature_CreateBulkFeature_Features) GetDisplayName() *string { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkFeature_CreateBulkFeature_Features{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.DisplayName + return t.UpdatedBy } -func (t *CreateBulkFeature_CreateBulkFeature_Features) GetTags() []string { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node) GetVersion() string { if t == nil { - t = &CreateBulkFeature_CreateBulkFeature_Features{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node{} } - return t.Tags + return t.Version } -type CreateBulkFeature_CreateBulkFeature struct { - Features []*CreateBulkFeature_CreateBulkFeature_Features "json:\"features,omitempty\" graphql:\"features\"" +type GetEntitlementPlanHistories_EntitlementPlanHistories_Edges struct { + Node *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkFeature_CreateBulkFeature) GetFeatures() []*CreateBulkFeature_CreateBulkFeature_Features { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges) GetNode() *GetEntitlementPlanHistories_EntitlementPlanHistories_Edges_Node { if t == nil { - t = &CreateBulkFeature_CreateBulkFeature{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories_Edges{} } - return t.Features + return t.Node } -type CreateFeature_CreateFeature_Feature struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type GetEntitlementPlanHistories_EntitlementPlanHistories struct { + Edges []*GetEntitlementPlanHistories_EntitlementPlanHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateFeature_CreateFeature_Feature) GetDescription() *string { +func (t *GetEntitlementPlanHistories_EntitlementPlanHistories) GetEdges() []*GetEntitlementPlanHistories_EntitlementPlanHistories_Edges { if t == nil { - t = &CreateFeature_CreateFeature_Feature{} + t = &GetEntitlementPlanHistories_EntitlementPlanHistories{} } - return t.Description + return t.Edges } -func (t *CreateFeature_CreateFeature_Feature) GetEnabled() bool { + +type CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes struct { + Text string "json:\"text\" graphql:\"text\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes) GetText() string { if t == nil { - t = &CreateFeature_CreateFeature_Feature{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes{} } - return t.Enabled + return t.Text } -func (t *CreateFeature_CreateFeature_Feature) GetID() string { +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateFeature_CreateFeature_Feature{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes{} } - return t.ID + return t.UpdatedAt } -func (t *CreateFeature_CreateFeature_Feature) GetName() string { +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes) GetUpdatedBy() *string { if t == nil { - t = &CreateFeature_CreateFeature_Feature{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes{} } - return t.Name + return t.UpdatedBy } -func (t *CreateFeature_CreateFeature_Feature) GetDisplayName() *string { - if t == nil { - t = &CreateFeature_CreateFeature_Feature{} - } - return t.DisplayName + +type CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_EntityType struct { + Name string "json:\"name\" graphql:\"name\"" } -func (t *CreateFeature_CreateFeature_Feature) GetTags() []string { + +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_EntityType) GetName() string { if t == nil { - t = &CreateFeature_CreateFeature_Feature{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_EntityType{} } - return t.Tags + return t.Name } -type CreateFeature_CreateFeature struct { - Feature CreateFeature_CreateFeature_Feature "json:\"feature\" graphql:\"feature\"" +type CreateBulkCSVEntity_CreateBulkCSVEntity_Entities struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + Notes []*CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes "json:\"notes,omitempty\" graphql:\"notes\"" + EntityType *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" + ID string "json:\"id\" graphql:\"id\"" + Name *string "json:\"name,omitempty\" 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\"" } -func (t *CreateFeature_CreateFeature) GetFeature() *CreateFeature_CreateFeature_Feature { +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetCreatedAt() *time.Time { if t == nil { - t = &CreateFeature_CreateFeature{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} } - return &t.Feature + return t.CreatedAt } - -type DeleteFeature_DeleteFeature struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetCreatedBy() *string { + if t == nil { + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + } + return t.CreatedBy } - -func (t *DeleteFeature_DeleteFeature) GetDeletedID() string { +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetDescription() *string { if t == nil { - t = &DeleteFeature_DeleteFeature{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} } - return t.DeletedID + return t.Description } - -type GetAllFeatures_Features_Edges_Node struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetDisplayName() *string { + if t == nil { + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + } + return t.DisplayName } - -func (t *GetAllFeatures_Features_Edges_Node) GetDescription() *string { +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetStatus() *string { if t == nil { - t = &GetAllFeatures_Features_Edges_Node{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} } - return t.Description + return t.Status } -func (t *GetAllFeatures_Features_Edges_Node) GetEnabled() bool { +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetDomains() []string { if t == nil { - t = &GetAllFeatures_Features_Edges_Node{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} } - return t.Enabled + return t.Domains } -func (t *GetAllFeatures_Features_Edges_Node) GetID() string { +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetNotes() []*CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_Notes { if t == nil { - t = &GetAllFeatures_Features_Edges_Node{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + } + return t.Notes +} +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetEntityType() *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities_EntityType { + if t == nil { + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + } + return t.EntityType +} +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetID() string { + if t == nil { + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} } return t.ID } -func (t *GetAllFeatures_Features_Edges_Node) GetName() string { +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetName() *string { if t == nil { - t = &GetAllFeatures_Features_Edges_Node{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} } return t.Name } -func (t *GetAllFeatures_Features_Edges_Node) GetDisplayName() *string { +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetOwnerID() *string { if t == nil { - t = &GetAllFeatures_Features_Edges_Node{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} } - return t.DisplayName + return t.OwnerID } -func (t *GetAllFeatures_Features_Edges_Node) GetTags() []string { +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetTags() []string { if t == nil { - t = &GetAllFeatures_Features_Edges_Node{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} } return t.Tags } +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + } + return t.UpdatedAt +} +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity_Entities) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkCSVEntity_CreateBulkCSVEntity_Entities{} + } + return t.UpdatedBy +} -type GetAllFeatures_Features_Edges struct { - Node *GetAllFeatures_Features_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateBulkCSVEntity_CreateBulkCSVEntity struct { + Entities []*CreateBulkCSVEntity_CreateBulkCSVEntity_Entities "json:\"entities,omitempty\" graphql:\"entities\"" } -func (t *GetAllFeatures_Features_Edges) GetNode() *GetAllFeatures_Features_Edges_Node { +func (t *CreateBulkCSVEntity_CreateBulkCSVEntity) GetEntities() []*CreateBulkCSVEntity_CreateBulkCSVEntity_Entities { if t == nil { - t = &GetAllFeatures_Features_Edges{} + t = &CreateBulkCSVEntity_CreateBulkCSVEntity{} } - return t.Node + return t.Entities } -type GetAllFeatures_Features struct { - Edges []*GetAllFeatures_Features_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateBulkEntity_CreateBulkEntity_Entities_Notes struct { + Text string "json:\"text\" graphql:\"text\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllFeatures_Features) GetEdges() []*GetAllFeatures_Features_Edges { +func (t *CreateBulkEntity_CreateBulkEntity_Entities_Notes) GetText() string { if t == nil { - t = &GetAllFeatures_Features{} + t = &CreateBulkEntity_CreateBulkEntity_Entities_Notes{} } - return t.Edges + return t.Text +} +func (t *CreateBulkEntity_CreateBulkEntity_Entities_Notes) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkEntity_CreateBulkEntity_Entities_Notes{} + } + return t.UpdatedAt +} +func (t *CreateBulkEntity_CreateBulkEntity_Entities_Notes) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkEntity_CreateBulkEntity_Entities_Notes{} + } + return t.UpdatedBy } -type GetFeatureByID_Feature struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type CreateBulkEntity_CreateBulkEntity_Entities_EntityType struct { + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetFeatureByID_Feature) GetDescription() *string { +func (t *CreateBulkEntity_CreateBulkEntity_Entities_EntityType) GetName() string { if t == nil { - t = &GetFeatureByID_Feature{} + t = &CreateBulkEntity_CreateBulkEntity_Entities_EntityType{} } - return t.Description + return t.Name } -func (t *GetFeatureByID_Feature) GetEnabled() bool { + +type CreateBulkEntity_CreateBulkEntity_Entities struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + Notes []*CreateBulkEntity_CreateBulkEntity_Entities_Notes "json:\"notes,omitempty\" graphql:\"notes\"" + EntityType *CreateBulkEntity_CreateBulkEntity_Entities_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" + ID string "json:\"id\" graphql:\"id\"" + Name *string "json:\"name,omitempty\" 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\"" +} + +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetCreatedAt() *time.Time { if t == nil { - t = &GetFeatureByID_Feature{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } - return t.Enabled + return t.CreatedAt } -func (t *GetFeatureByID_Feature) GetID() string { +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetCreatedBy() *string { if t == nil { - t = &GetFeatureByID_Feature{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } - return t.ID + return t.CreatedBy } -func (t *GetFeatureByID_Feature) GetName() string { +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetDescription() *string { if t == nil { - t = &GetFeatureByID_Feature{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } - return t.Name + return t.Description } -func (t *GetFeatureByID_Feature) GetDisplayName() *string { +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetDisplayName() *string { if t == nil { - t = &GetFeatureByID_Feature{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } return t.DisplayName } -func (t *GetFeatureByID_Feature) GetTags() []string { +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetStatus() *string { if t == nil { - t = &GetFeatureByID_Feature{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } - return t.Tags + return t.Status } - -type GetFeatures_Features_Edges_Node struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetDomains() []string { + if t == nil { + t = &CreateBulkEntity_CreateBulkEntity_Entities{} + } + return t.Domains } - -func (t *GetFeatures_Features_Edges_Node) GetDescription() *string { +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetNotes() []*CreateBulkEntity_CreateBulkEntity_Entities_Notes { if t == nil { - t = &GetFeatures_Features_Edges_Node{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } - return t.Description + return t.Notes } -func (t *GetFeatures_Features_Edges_Node) GetEnabled() bool { +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetEntityType() *CreateBulkEntity_CreateBulkEntity_Entities_EntityType { if t == nil { - t = &GetFeatures_Features_Edges_Node{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } - return t.Enabled + return t.EntityType } -func (t *GetFeatures_Features_Edges_Node) GetID() string { +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetID() string { if t == nil { - t = &GetFeatures_Features_Edges_Node{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } return t.ID } -func (t *GetFeatures_Features_Edges_Node) GetName() string { +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetName() *string { if t == nil { - t = &GetFeatures_Features_Edges_Node{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } return t.Name } -func (t *GetFeatures_Features_Edges_Node) GetDisplayName() *string { +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetOwnerID() *string { if t == nil { - t = &GetFeatures_Features_Edges_Node{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } - return t.DisplayName + return t.OwnerID } -func (t *GetFeatures_Features_Edges_Node) GetTags() []string { +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetTags() []string { if t == nil { - t = &GetFeatures_Features_Edges_Node{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } return t.Tags } - -type GetFeatures_Features_Edges struct { - Node *GetFeatures_Features_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" -} - -func (t *GetFeatures_Features_Edges) GetNode() *GetFeatures_Features_Edges_Node { +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetUpdatedAt() *time.Time { if t == nil { - t = &GetFeatures_Features_Edges{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } - return t.Node -} - -type GetFeatures_Features struct { - Edges []*GetFeatures_Features_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.UpdatedAt } - -func (t *GetFeatures_Features) GetEdges() []*GetFeatures_Features_Edges { +func (t *CreateBulkEntity_CreateBulkEntity_Entities) GetUpdatedBy() *string { if t == nil { - t = &GetFeatures_Features{} + t = &CreateBulkEntity_CreateBulkEntity_Entities{} } - return t.Edges + return t.UpdatedBy } -type UpdateFeature_UpdateFeature_Feature struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type CreateBulkEntity_CreateBulkEntity struct { + Entities []*CreateBulkEntity_CreateBulkEntity_Entities "json:\"entities,omitempty\" graphql:\"entities\"" } -func (t *UpdateFeature_UpdateFeature_Feature) GetDescription() *string { - if t == nil { - t = &UpdateFeature_UpdateFeature_Feature{} - } - return t.Description -} -func (t *UpdateFeature_UpdateFeature_Feature) GetEnabled() bool { +func (t *CreateBulkEntity_CreateBulkEntity) GetEntities() []*CreateBulkEntity_CreateBulkEntity_Entities { if t == nil { - t = &UpdateFeature_UpdateFeature_Feature{} + t = &CreateBulkEntity_CreateBulkEntity{} } - return t.Enabled + return t.Entities } -func (t *UpdateFeature_UpdateFeature_Feature) GetID() string { - if t == nil { - t = &UpdateFeature_UpdateFeature_Feature{} - } - return t.ID + +type CreateEntity_CreateEntity_Entity_Notes struct { + Text string "json:\"text\" graphql:\"text\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *UpdateFeature_UpdateFeature_Feature) GetName() string { + +func (t *CreateEntity_CreateEntity_Entity_Notes) GetText() string { if t == nil { - t = &UpdateFeature_UpdateFeature_Feature{} + t = &CreateEntity_CreateEntity_Entity_Notes{} } - return t.Name + return t.Text } -func (t *UpdateFeature_UpdateFeature_Feature) GetDisplayName() *string { +func (t *CreateEntity_CreateEntity_Entity_Notes) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateFeature_UpdateFeature_Feature{} + t = &CreateEntity_CreateEntity_Entity_Notes{} } - return t.DisplayName + return t.UpdatedAt } -func (t *UpdateFeature_UpdateFeature_Feature) GetTags() []string { +func (t *CreateEntity_CreateEntity_Entity_Notes) GetUpdatedBy() *string { if t == nil { - t = &UpdateFeature_UpdateFeature_Feature{} + t = &CreateEntity_CreateEntity_Entity_Notes{} } - return t.Tags + return t.UpdatedBy } -type UpdateFeature_UpdateFeature struct { - Feature UpdateFeature_UpdateFeature_Feature "json:\"feature\" graphql:\"feature\"" +type CreateEntity_CreateEntity_Entity_EntityType struct { + Name string "json:\"name\" graphql:\"name\"" } -func (t *UpdateFeature_UpdateFeature) GetFeature() *UpdateFeature_UpdateFeature_Feature { +func (t *CreateEntity_CreateEntity_Entity_EntityType) GetName() string { if t == nil { - t = &UpdateFeature_UpdateFeature{} + t = &CreateEntity_CreateEntity_Entity_EntityType{} } - return &t.Feature + return t.Name } -type GetAllFeatureHistories_FeatureHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateEntity_CreateEntity_Entity struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + Notes []*CreateEntity_CreateEntity_Entity_Notes "json:\"notes,omitempty\" graphql:\"notes\"" + EntityType *CreateEntity_CreateEntity_Entity_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" + ID string "json:\"id\" graphql:\"id\"" + Name *string "json:\"name,omitempty\" 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\"" } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateEntity_CreateEntity_Entity) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } return t.CreatedAt } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetCreatedBy() *string { +func (t *CreateEntity_CreateEntity_Entity) GetCreatedBy() *string { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } return t.CreatedBy } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetDescription() *string { +func (t *CreateEntity_CreateEntity_Entity) GetDescription() *string { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } return t.Description } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetDisplayName() *string { +func (t *CreateEntity_CreateEntity_Entity) GetDisplayName() *string { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } return t.DisplayName } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetEnabled() bool { +func (t *CreateEntity_CreateEntity_Entity) GetStatus() *string { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } - return t.Enabled + return t.Status } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateEntity_CreateEntity_Entity) GetDomains() []string { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } - return &t.HistoryTime + return t.Domains } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetID() string { +func (t *CreateEntity_CreateEntity_Entity) GetNotes() []*CreateEntity_CreateEntity_Entity_Notes { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } - return t.ID + return t.Notes } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetMetadata() map[string]interface{} { +func (t *CreateEntity_CreateEntity_Entity) GetEntityType() *CreateEntity_CreateEntity_Entity_EntityType { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } - return t.Metadata + return t.EntityType } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetName() string { +func (t *CreateEntity_CreateEntity_Entity) GetID() string { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } - return t.Name + return t.ID } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetOperation() *history.OpType { +func (t *CreateEntity_CreateEntity_Entity) GetName() *string { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } - return &t.Operation + return t.Name } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetOwnerID() *string { +func (t *CreateEntity_CreateEntity_Entity) GetOwnerID() *string { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } return t.OwnerID } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetRef() *string { - if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} - } - return t.Ref -} -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetTags() []string { +func (t *CreateEntity_CreateEntity_Entity) GetTags() []string { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } return t.Tags } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateEntity_CreateEntity_Entity) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } return t.UpdatedAt } -func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateEntity_CreateEntity_Entity) GetUpdatedBy() *string { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} + t = &CreateEntity_CreateEntity_Entity{} } return t.UpdatedBy } -type GetAllFeatureHistories_FeatureHistories_Edges struct { - Node *GetAllFeatureHistories_FeatureHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateEntity_CreateEntity struct { + Entity CreateEntity_CreateEntity_Entity "json:\"entity\" graphql:\"entity\"" } -func (t *GetAllFeatureHistories_FeatureHistories_Edges) GetNode() *GetAllFeatureHistories_FeatureHistories_Edges_Node { +func (t *CreateEntity_CreateEntity) GetEntity() *CreateEntity_CreateEntity_Entity { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories_Edges{} + t = &CreateEntity_CreateEntity{} } - return t.Node + return &t.Entity } -type GetAllFeatureHistories_FeatureHistories struct { - Edges []*GetAllFeatureHistories_FeatureHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type DeleteEntity_DeleteEntity struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetAllFeatureHistories_FeatureHistories) GetEdges() []*GetAllFeatureHistories_FeatureHistories_Edges { +func (t *DeleteEntity_DeleteEntity) GetDeletedID() string { if t == nil { - t = &GetAllFeatureHistories_FeatureHistories{} + t = &DeleteEntity_DeleteEntity{} } - return t.Edges + return t.DeletedID } -type GetFeatureHistories_FeatureHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetAllEntities_Entities_Edges_Node_Notes struct { + Text string "json:\"text\" graphql:\"text\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllEntities_Entities_Edges_Node_Notes) GetText() string { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node_Notes{} } - return t.CreatedAt + return t.Text } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetAllEntities_Entities_Edges_Node_Notes) GetUpdatedAt() *time.Time { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node_Notes{} } - return t.CreatedBy + return t.UpdatedAt } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetDescription() *string { +func (t *GetAllEntities_Entities_Edges_Node_Notes) GetUpdatedBy() *string { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node_Notes{} } - return t.Description + return t.UpdatedBy } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetDisplayName() *string { + +type GetAllEntities_Entities_Edges_Node_EntityType struct { + Name string "json:\"name\" graphql:\"name\"" +} + +func (t *GetAllEntities_Entities_Edges_Node_EntityType) GetName() string { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node_EntityType{} } - return t.DisplayName + return t.Name } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetEnabled() bool { + +type GetAllEntities_Entities_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + Notes []*GetAllEntities_Entities_Edges_Node_Notes "json:\"notes,omitempty\" graphql:\"notes\"" + EntityType *GetAllEntities_Entities_Edges_Node_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" + ID string "json:\"id\" graphql:\"id\"" + Name *string "json:\"name,omitempty\" 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\"" +} + +func (t *GetAllEntities_Entities_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node{} } - return t.Enabled + return t.CreatedAt } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetAllEntities_Entities_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node{} } - return &t.HistoryTime + return t.CreatedBy } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetID() string { +func (t *GetAllEntities_Entities_Edges_Node) GetDescription() *string { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node{} } - return t.ID + return t.Description } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetMetadata() map[string]interface{} { +func (t *GetAllEntities_Entities_Edges_Node) GetDisplayName() *string { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node{} } - return t.Metadata + return t.DisplayName } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetName() string { +func (t *GetAllEntities_Entities_Edges_Node) GetStatus() *string { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node{} } - return t.Name + return t.Status } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetAllEntities_Entities_Edges_Node) GetDomains() []string { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node{} } - return &t.Operation + return t.Domains } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetOwnerID() *string { +func (t *GetAllEntities_Entities_Edges_Node) GetNotes() []*GetAllEntities_Entities_Edges_Node_Notes { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node{} } - return t.OwnerID + return t.Notes } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetRef() *string { +func (t *GetAllEntities_Entities_Edges_Node) GetEntityType() *GetAllEntities_Entities_Edges_Node_EntityType { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node{} } - return t.Ref + return t.EntityType } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetTags() []string { +func (t *GetAllEntities_Entities_Edges_Node) GetID() string { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node{} + } + return t.ID +} +func (t *GetAllEntities_Entities_Edges_Node) GetName() *string { + if t == nil { + t = &GetAllEntities_Entities_Edges_Node{} + } + return t.Name +} +func (t *GetAllEntities_Entities_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetAllEntities_Entities_Edges_Node{} + } + return t.OwnerID +} +func (t *GetAllEntities_Entities_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllEntities_Entities_Edges_Node{} } return t.Tags } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllEntities_Entities_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node{} } return t.UpdatedAt } -func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllEntities_Entities_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges_Node{} + t = &GetAllEntities_Entities_Edges_Node{} } return t.UpdatedBy } -type GetFeatureHistories_FeatureHistories_Edges struct { - Node *GetFeatureHistories_FeatureHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllEntities_Entities_Edges struct { + Node *GetAllEntities_Entities_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetFeatureHistories_FeatureHistories_Edges) GetNode() *GetFeatureHistories_FeatureHistories_Edges_Node { +func (t *GetAllEntities_Entities_Edges) GetNode() *GetAllEntities_Entities_Edges_Node { if t == nil { - t = &GetFeatureHistories_FeatureHistories_Edges{} + t = &GetAllEntities_Entities_Edges{} } return t.Node } -type GetFeatureHistories_FeatureHistories struct { - Edges []*GetFeatureHistories_FeatureHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllEntities_Entities struct { + Edges []*GetAllEntities_Entities_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetFeatureHistories_FeatureHistories) GetEdges() []*GetFeatureHistories_FeatureHistories_Edges { +func (t *GetAllEntities_Entities) GetEdges() []*GetAllEntities_Entities_Edges { if t == nil { - t = &GetFeatureHistories_FeatureHistories{} + t = &GetAllEntities_Entities{} } return t.Edges } -type DeleteFile_DeleteFile struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type GetEntities_Entities_Edges_Node_Notes struct { + Text string "json:\"text\" graphql:\"text\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *DeleteFile_DeleteFile) GetDeletedID() string { +func (t *GetEntities_Entities_Edges_Node_Notes) GetText() string { if t == nil { - t = &DeleteFile_DeleteFile{} + t = &GetEntities_Entities_Edges_Node_Notes{} } - return t.DeletedID -} - -type GetAllFiles_Files_Edges_Node struct { - CategoryType *string "json:\"categoryType,omitempty\" graphql:\"categoryType\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DetectedContentType string "json:\"detectedContentType\" graphql:\"detectedContentType\"" - DetectedMimeType *string "json:\"detectedMimeType,omitempty\" graphql:\"detectedMimeType\"" - ID string "json:\"id\" graphql:\"id\"" - Md5Hash *string "json:\"md5Hash,omitempty\" graphql:\"md5Hash\"" - PersistedFileSize *int64 "json:\"persistedFileSize,omitempty\" graphql:\"persistedFileSize\"" - ProvidedFileExtension string "json:\"providedFileExtension\" graphql:\"providedFileExtension\"" - ProvidedFileName string "json:\"providedFileName\" graphql:\"providedFileName\"" - ProvidedFileSize *int64 "json:\"providedFileSize,omitempty\" graphql:\"providedFileSize\"" - StoragePath *string "json:\"storagePath,omitempty\" graphql:\"storagePath\"" - StorageScheme *string "json:\"storageScheme,omitempty\" graphql:\"storageScheme\"" - StorageVolume *string "json:\"storageVolume,omitempty\" graphql:\"storageVolume\"" - StoreKey *string "json:\"storeKey,omitempty\" graphql:\"storeKey\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - URI *string "json:\"uri,omitempty\" graphql:\"uri\"" + return t.Text } - -func (t *GetAllFiles_Files_Edges_Node) GetCategoryType() *string { +func (t *GetEntities_Entities_Edges_Node_Notes) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node_Notes{} } - return t.CategoryType + return t.UpdatedAt } -func (t *GetAllFiles_Files_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetEntities_Entities_Edges_Node_Notes) GetUpdatedBy() *string { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node_Notes{} } - return t.CreatedAt + return t.UpdatedBy } -func (t *GetAllFiles_Files_Edges_Node) GetCreatedBy() *string { - if t == nil { - t = &GetAllFiles_Files_Edges_Node{} - } - return t.CreatedBy + +type GetEntities_Entities_Edges_Node_EntityType struct { + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetAllFiles_Files_Edges_Node) GetDetectedContentType() string { + +func (t *GetEntities_Entities_Edges_Node_EntityType) GetName() string { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node_EntityType{} } - return t.DetectedContentType + return t.Name } -func (t *GetAllFiles_Files_Edges_Node) GetDetectedMimeType() *string { + +type GetEntities_Entities_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + Notes []*GetEntities_Entities_Edges_Node_Notes "json:\"notes,omitempty\" graphql:\"notes\"" + EntityType *GetEntities_Entities_Edges_Node_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" + ID string "json:\"id\" graphql:\"id\"" + Name *string "json:\"name,omitempty\" 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\"" +} + +func (t *GetEntities_Entities_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } - return t.DetectedMimeType + return t.CreatedAt } -func (t *GetAllFiles_Files_Edges_Node) GetID() string { +func (t *GetEntities_Entities_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } - return t.ID + return t.CreatedBy } -func (t *GetAllFiles_Files_Edges_Node) GetMd5Hash() *string { +func (t *GetEntities_Entities_Edges_Node) GetDescription() *string { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } - return t.Md5Hash + return t.Description } -func (t *GetAllFiles_Files_Edges_Node) GetPersistedFileSize() *int64 { +func (t *GetEntities_Entities_Edges_Node) GetDisplayName() *string { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } - return t.PersistedFileSize + return t.DisplayName } -func (t *GetAllFiles_Files_Edges_Node) GetProvidedFileExtension() string { +func (t *GetEntities_Entities_Edges_Node) GetStatus() *string { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } - return t.ProvidedFileExtension + return t.Status } -func (t *GetAllFiles_Files_Edges_Node) GetProvidedFileName() string { +func (t *GetEntities_Entities_Edges_Node) GetDomains() []string { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } - return t.ProvidedFileName + return t.Domains } -func (t *GetAllFiles_Files_Edges_Node) GetProvidedFileSize() *int64 { +func (t *GetEntities_Entities_Edges_Node) GetNotes() []*GetEntities_Entities_Edges_Node_Notes { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } - return t.ProvidedFileSize + return t.Notes } -func (t *GetAllFiles_Files_Edges_Node) GetStoragePath() *string { +func (t *GetEntities_Entities_Edges_Node) GetEntityType() *GetEntities_Entities_Edges_Node_EntityType { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } - return t.StoragePath + return t.EntityType } -func (t *GetAllFiles_Files_Edges_Node) GetStorageScheme() *string { +func (t *GetEntities_Entities_Edges_Node) GetID() string { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } - return t.StorageScheme + return t.ID } -func (t *GetAllFiles_Files_Edges_Node) GetStorageVolume() *string { +func (t *GetEntities_Entities_Edges_Node) GetName() *string { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } - return t.StorageVolume + return t.Name } -func (t *GetAllFiles_Files_Edges_Node) GetStoreKey() *string { +func (t *GetEntities_Entities_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } - return t.StoreKey + return t.OwnerID } -func (t *GetAllFiles_Files_Edges_Node) GetTags() []string { +func (t *GetEntities_Entities_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } return t.Tags } -func (t *GetAllFiles_Files_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetEntities_Entities_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } return t.UpdatedAt } -func (t *GetAllFiles_Files_Edges_Node) GetUpdatedBy() *string { +func (t *GetEntities_Entities_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllFiles_Files_Edges_Node{} + t = &GetEntities_Entities_Edges_Node{} } return t.UpdatedBy } -func (t *GetAllFiles_Files_Edges_Node) GetURI() *string { - if t == nil { - t = &GetAllFiles_Files_Edges_Node{} - } - return t.URI -} -type GetAllFiles_Files_Edges struct { - Node *GetAllFiles_Files_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetEntities_Entities_Edges struct { + Node *GetEntities_Entities_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllFiles_Files_Edges) GetNode() *GetAllFiles_Files_Edges_Node { +func (t *GetEntities_Entities_Edges) GetNode() *GetEntities_Entities_Edges_Node { if t == nil { - t = &GetAllFiles_Files_Edges{} + t = &GetEntities_Entities_Edges{} } return t.Node } -type GetAllFiles_Files struct { - Edges []*GetAllFiles_Files_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetEntities_Entities struct { + Edges []*GetEntities_Entities_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllFiles_Files) GetEdges() []*GetAllFiles_Files_Edges { +func (t *GetEntities_Entities) GetEdges() []*GetEntities_Entities_Edges { if t == nil { - t = &GetAllFiles_Files{} + t = &GetEntities_Entities{} } return t.Edges } -type GetFileByID_File struct { - CategoryType *string "json:\"categoryType,omitempty\" graphql:\"categoryType\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DetectedContentType string "json:\"detectedContentType\" graphql:\"detectedContentType\"" - DetectedMimeType *string "json:\"detectedMimeType,omitempty\" graphql:\"detectedMimeType\"" - ID string "json:\"id\" graphql:\"id\"" - Md5Hash *string "json:\"md5Hash,omitempty\" graphql:\"md5Hash\"" - PersistedFileSize *int64 "json:\"persistedFileSize,omitempty\" graphql:\"persistedFileSize\"" - ProvidedFileExtension string "json:\"providedFileExtension\" graphql:\"providedFileExtension\"" - ProvidedFileName string "json:\"providedFileName\" graphql:\"providedFileName\"" - ProvidedFileSize *int64 "json:\"providedFileSize,omitempty\" graphql:\"providedFileSize\"" - StoragePath *string "json:\"storagePath,omitempty\" graphql:\"storagePath\"" - StorageScheme *string "json:\"storageScheme,omitempty\" graphql:\"storageScheme\"" - StorageVolume *string "json:\"storageVolume,omitempty\" graphql:\"storageVolume\"" - StoreKey *string "json:\"storeKey,omitempty\" graphql:\"storeKey\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - URI *string "json:\"uri,omitempty\" graphql:\"uri\"" +type GetEntityByID_Entity_Notes struct { + Text string "json:\"text\" graphql:\"text\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetFileByID_File) GetCategoryType() *string { +func (t *GetEntityByID_Entity_Notes) GetText() string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity_Notes{} } - return t.CategoryType + return t.Text } -func (t *GetFileByID_File) GetCreatedAt() *time.Time { +func (t *GetEntityByID_Entity_Notes) GetUpdatedAt() *time.Time { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity_Notes{} } - return t.CreatedAt + return t.UpdatedAt } -func (t *GetFileByID_File) GetCreatedBy() *string { +func (t *GetEntityByID_Entity_Notes) GetUpdatedBy() *string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity_Notes{} } - return t.CreatedBy + return t.UpdatedBy } -func (t *GetFileByID_File) GetDetectedContentType() string { - if t == nil { - t = &GetFileByID_File{} - } - return t.DetectedContentType + +type GetEntityByID_Entity_EntityType struct { + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetFileByID_File) GetDetectedMimeType() *string { + +func (t *GetEntityByID_Entity_EntityType) GetName() string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity_EntityType{} } - return t.DetectedMimeType + return t.Name } -func (t *GetFileByID_File) GetID() string { + +type GetEntityByID_Entity_Contacts struct { + ID string "json:\"id\" graphql:\"id\"" + FullName string "json:\"fullName\" graphql:\"fullName\"" + Email *string "json:\"email,omitempty\" graphql:\"email\"" + Title *string "json:\"title,omitempty\" graphql:\"title\"" + Company *string "json:\"company,omitempty\" graphql:\"company\"" + Address *string "json:\"address,omitempty\" graphql:\"address\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" +} + +func (t *GetEntityByID_Entity_Contacts) GetID() string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity_Contacts{} } return t.ID } -func (t *GetFileByID_File) GetMd5Hash() *string { +func (t *GetEntityByID_Entity_Contacts) GetFullName() string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity_Contacts{} } - return t.Md5Hash + return t.FullName } -func (t *GetFileByID_File) GetPersistedFileSize() *int64 { +func (t *GetEntityByID_Entity_Contacts) GetEmail() *string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity_Contacts{} } - return t.PersistedFileSize + return t.Email } -func (t *GetFileByID_File) GetProvidedFileExtension() string { +func (t *GetEntityByID_Entity_Contacts) GetTitle() *string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity_Contacts{} } - return t.ProvidedFileExtension + return t.Title } -func (t *GetFileByID_File) GetProvidedFileName() string { +func (t *GetEntityByID_Entity_Contacts) GetCompany() *string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity_Contacts{} } - return t.ProvidedFileName + return t.Company } -func (t *GetFileByID_File) GetProvidedFileSize() *int64 { +func (t *GetEntityByID_Entity_Contacts) GetAddress() *string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity_Contacts{} } - return t.ProvidedFileSize + return t.Address } -func (t *GetFileByID_File) GetStoragePath() *string { +func (t *GetEntityByID_Entity_Contacts) GetPhoneNumber() *string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity_Contacts{} } - return t.StoragePath + return t.PhoneNumber } -func (t *GetFileByID_File) GetStorageScheme() *string { + +type GetEntityByID_Entity struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + Notes []*GetEntityByID_Entity_Notes "json:\"notes,omitempty\" graphql:\"notes\"" + EntityType *GetEntityByID_Entity_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" + ID string "json:\"id\" graphql:\"id\"" + Name *string "json:\"name,omitempty\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Contacts []*GetEntityByID_Entity_Contacts "json:\"contacts,omitempty\" graphql:\"contacts\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetEntityByID_Entity) GetCreatedAt() *time.Time { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity{} } - return t.StorageScheme + return t.CreatedAt } -func (t *GetFileByID_File) GetStorageVolume() *string { +func (t *GetEntityByID_Entity) GetCreatedBy() *string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity{} } - return t.StorageVolume + return t.CreatedBy } -func (t *GetFileByID_File) GetStoreKey() *string { +func (t *GetEntityByID_Entity) GetDescription() *string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity{} } - return t.StoreKey + return t.Description } -func (t *GetFileByID_File) GetTags() []string { +func (t *GetEntityByID_Entity) GetDisplayName() *string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity{} } - return t.Tags + return t.DisplayName } -func (t *GetFileByID_File) GetUpdatedAt() *time.Time { +func (t *GetEntityByID_Entity) GetStatus() *string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity{} } - return t.UpdatedAt + return t.Status } -func (t *GetFileByID_File) GetUpdatedBy() *string { +func (t *GetEntityByID_Entity) GetDomains() []string { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity{} } - return t.UpdatedBy + return t.Domains } -func (t *GetFileByID_File) GetURI() *string { +func (t *GetEntityByID_Entity) GetNotes() []*GetEntityByID_Entity_Notes { if t == nil { - t = &GetFileByID_File{} + t = &GetEntityByID_Entity{} } - return t.URI -} - -type GetFiles_Files_Edges_Node struct { - CategoryType *string "json:\"categoryType,omitempty\" graphql:\"categoryType\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DetectedContentType string "json:\"detectedContentType\" graphql:\"detectedContentType\"" - DetectedMimeType *string "json:\"detectedMimeType,omitempty\" graphql:\"detectedMimeType\"" - ID string "json:\"id\" graphql:\"id\"" - Md5Hash *string "json:\"md5Hash,omitempty\" graphql:\"md5Hash\"" - PersistedFileSize *int64 "json:\"persistedFileSize,omitempty\" graphql:\"persistedFileSize\"" - ProvidedFileExtension string "json:\"providedFileExtension\" graphql:\"providedFileExtension\"" - ProvidedFileName string "json:\"providedFileName\" graphql:\"providedFileName\"" - ProvidedFileSize *int64 "json:\"providedFileSize,omitempty\" graphql:\"providedFileSize\"" - StoragePath *string "json:\"storagePath,omitempty\" graphql:\"storagePath\"" - StorageScheme *string "json:\"storageScheme,omitempty\" graphql:\"storageScheme\"" - StorageVolume *string "json:\"storageVolume,omitempty\" graphql:\"storageVolume\"" - StoreKey *string "json:\"storeKey,omitempty\" graphql:\"storeKey\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - URI *string "json:\"uri,omitempty\" graphql:\"uri\"" + return t.Notes } - -func (t *GetFiles_Files_Edges_Node) GetCategoryType() *string { +func (t *GetEntityByID_Entity) GetEntityType() *GetEntityByID_Entity_EntityType { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &GetEntityByID_Entity{} } - return t.CategoryType + return t.EntityType } -func (t *GetFiles_Files_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetEntityByID_Entity) GetID() string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &GetEntityByID_Entity{} } - return t.CreatedAt + return t.ID } -func (t *GetFiles_Files_Edges_Node) GetCreatedBy() *string { +func (t *GetEntityByID_Entity) GetName() *string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &GetEntityByID_Entity{} } - return t.CreatedBy + return t.Name } -func (t *GetFiles_Files_Edges_Node) GetDetectedContentType() string { +func (t *GetEntityByID_Entity) GetOwnerID() *string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &GetEntityByID_Entity{} } - return t.DetectedContentType + return t.OwnerID } -func (t *GetFiles_Files_Edges_Node) GetDetectedMimeType() *string { +func (t *GetEntityByID_Entity) GetContacts() []*GetEntityByID_Entity_Contacts { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &GetEntityByID_Entity{} } - return t.DetectedMimeType + return t.Contacts } -func (t *GetFiles_Files_Edges_Node) GetID() string { +func (t *GetEntityByID_Entity) GetTags() []string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &GetEntityByID_Entity{} } - return t.ID + return t.Tags } -func (t *GetFiles_Files_Edges_Node) GetMd5Hash() *string { +func (t *GetEntityByID_Entity) GetUpdatedAt() *time.Time { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &GetEntityByID_Entity{} } - return t.Md5Hash + return t.UpdatedAt } -func (t *GetFiles_Files_Edges_Node) GetPersistedFileSize() *int64 { +func (t *GetEntityByID_Entity) GetUpdatedBy() *string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &GetEntityByID_Entity{} } - return t.PersistedFileSize + return t.UpdatedBy } -func (t *GetFiles_Files_Edges_Node) GetProvidedFileExtension() string { + +type UpdateEntity_UpdateEntity_Entity_Notes struct { + Text string "json:\"text\" graphql:\"text\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *UpdateEntity_UpdateEntity_Entity_Notes) GetText() string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity_Notes{} } - return t.ProvidedFileExtension + return t.Text } -func (t *GetFiles_Files_Edges_Node) GetProvidedFileName() string { +func (t *UpdateEntity_UpdateEntity_Entity_Notes) GetUpdatedAt() *time.Time { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity_Notes{} } - return t.ProvidedFileName + return t.UpdatedAt } -func (t *GetFiles_Files_Edges_Node) GetProvidedFileSize() *int64 { +func (t *UpdateEntity_UpdateEntity_Entity_Notes) GetUpdatedBy() *string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity_Notes{} } - return t.ProvidedFileSize + return t.UpdatedBy } -func (t *GetFiles_Files_Edges_Node) GetStoragePath() *string { + +type UpdateEntity_UpdateEntity_Entity_EntityType struct { + Name string "json:\"name\" graphql:\"name\"" +} + +func (t *UpdateEntity_UpdateEntity_Entity_EntityType) GetName() string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity_EntityType{} } - return t.StoragePath + return t.Name } -func (t *GetFiles_Files_Edges_Node) GetStorageScheme() *string { + +type UpdateEntity_UpdateEntity_Entity struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + Notes []*UpdateEntity_UpdateEntity_Entity_Notes "json:\"notes,omitempty\" graphql:\"notes\"" + EntityType *UpdateEntity_UpdateEntity_Entity_EntityType "json:\"entityType,omitempty\" graphql:\"entityType\"" + ID string "json:\"id\" graphql:\"id\"" + Name *string "json:\"name,omitempty\" 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\"" +} + +func (t *UpdateEntity_UpdateEntity_Entity) GetCreatedAt() *time.Time { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.StorageScheme + return t.CreatedAt } -func (t *GetFiles_Files_Edges_Node) GetStorageVolume() *string { +func (t *UpdateEntity_UpdateEntity_Entity) GetCreatedBy() *string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.StorageVolume + return t.CreatedBy } -func (t *GetFiles_Files_Edges_Node) GetStoreKey() *string { +func (t *UpdateEntity_UpdateEntity_Entity) GetDescription() *string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.StoreKey + return t.Description } -func (t *GetFiles_Files_Edges_Node) GetTags() []string { +func (t *UpdateEntity_UpdateEntity_Entity) GetDisplayName() *string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.Tags + return t.DisplayName } -func (t *GetFiles_Files_Edges_Node) GetUpdatedAt() *time.Time { +func (t *UpdateEntity_UpdateEntity_Entity) GetStatus() *string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.UpdatedAt + return t.Status } -func (t *GetFiles_Files_Edges_Node) GetUpdatedBy() *string { +func (t *UpdateEntity_UpdateEntity_Entity) GetDomains() []string { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.UpdatedBy + return t.Domains } -func (t *GetFiles_Files_Edges_Node) GetURI() *string { +func (t *UpdateEntity_UpdateEntity_Entity) GetNotes() []*UpdateEntity_UpdateEntity_Entity_Notes { if t == nil { - t = &GetFiles_Files_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.URI -} - -type GetFiles_Files_Edges struct { - Node *GetFiles_Files_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return t.Notes } - -func (t *GetFiles_Files_Edges) GetNode() *GetFiles_Files_Edges_Node { +func (t *UpdateEntity_UpdateEntity_Entity) GetEntityType() *UpdateEntity_UpdateEntity_Entity_EntityType { if t == nil { - t = &GetFiles_Files_Edges{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.Node -} - -type GetFiles_Files struct { - Edges []*GetFiles_Files_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.EntityType } - -func (t *GetFiles_Files) GetEdges() []*GetFiles_Files_Edges { +func (t *UpdateEntity_UpdateEntity_Entity) GetID() string { if t == nil { - t = &GetFiles_Files{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.Edges + return t.ID } - -type GetAllFileHistories_FileHistories_Edges_Node struct { - CategoryType *string "json:\"categoryType,omitempty\" graphql:\"categoryType\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DetectedContentType string "json:\"detectedContentType\" graphql:\"detectedContentType\"" - DetectedMimeType *string "json:\"detectedMimeType,omitempty\" graphql:\"detectedMimeType\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Md5Hash *string "json:\"md5Hash,omitempty\" graphql:\"md5Hash\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - PersistedFileSize *int64 "json:\"persistedFileSize,omitempty\" graphql:\"persistedFileSize\"" - ProvidedFileExtension string "json:\"providedFileExtension\" graphql:\"providedFileExtension\"" - ProvidedFileName string "json:\"providedFileName\" graphql:\"providedFileName\"" - ProvidedFileSize *int64 "json:\"providedFileSize,omitempty\" graphql:\"providedFileSize\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - StoragePath *string "json:\"storagePath,omitempty\" graphql:\"storagePath\"" - StorageScheme *string "json:\"storageScheme,omitempty\" graphql:\"storageScheme\"" - StorageVolume *string "json:\"storageVolume,omitempty\" graphql:\"storageVolume\"" - StoreKey *string "json:\"storeKey,omitempty\" graphql:\"storeKey\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - URI *string "json:\"uri,omitempty\" graphql:\"uri\"" +func (t *UpdateEntity_UpdateEntity_Entity) GetName() *string { + if t == nil { + t = &UpdateEntity_UpdateEntity_Entity{} + } + return t.Name } - -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetCategoryType() *string { +func (t *UpdateEntity_UpdateEntity_Entity) GetOwnerID() *string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.CategoryType + return t.OwnerID } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *UpdateEntity_UpdateEntity_Entity) GetTags() []string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.CreatedAt + return t.Tags } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetCreatedBy() *string { +func (t *UpdateEntity_UpdateEntity_Entity) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.CreatedBy + return t.UpdatedAt } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetDetectedContentType() string { +func (t *UpdateEntity_UpdateEntity_Entity) GetUpdatedBy() *string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &UpdateEntity_UpdateEntity_Entity{} } - return t.DetectedContentType + return t.UpdatedBy } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetDetectedMimeType() *string { + +type UpdateEntity_UpdateEntity struct { + Entity UpdateEntity_UpdateEntity_Entity "json:\"entity\" graphql:\"entity\"" +} + +func (t *UpdateEntity_UpdateEntity) GetEntity() *UpdateEntity_UpdateEntity_Entity { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &UpdateEntity_UpdateEntity{} } - return t.DetectedMimeType + return &t.Entity } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetHistoryTime() *time.Time { + +type GetAllEntityHistories_EntityHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + EntityTypeID *string "json:\"entityTypeID,omitempty\" graphql:\"entityTypeID\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name *string "json:\"name,omitempty\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return &t.HistoryTime + return t.CreatedAt } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetID() string { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return t.ID + return t.CreatedBy } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetMd5Hash() *string { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return t.Md5Hash + return t.Description } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetDisplayName() *string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return &t.Operation + return t.DisplayName } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetPersistedFileSize() *int64 { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetDomains() []string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return t.PersistedFileSize + return t.Domains } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetProvidedFileExtension() string { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetEntityTypeID() *string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return t.ProvidedFileExtension + return t.EntityTypeID } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetProvidedFileName() string { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return t.ProvidedFileName + return &t.HistoryTime } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetProvidedFileSize() *int64 { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetID() string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return t.ProvidedFileSize + return t.ID } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetRef() *string { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetName() *string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return t.Ref + return t.Name } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetStoragePath() *string { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return t.StoragePath + return &t.Operation } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetStorageScheme() *string { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return t.StorageScheme + return t.OwnerID } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetStorageVolume() *string { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return t.StorageVolume + return t.Ref } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetStoreKey() *string { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetStatus() *string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } - return t.StoreKey + return t.Status } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetTags() []string { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } return t.Tags } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllEntityHistories_EntityHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} + t = &GetAllEntityHistories_EntityHistories_Edges_Node{} } return t.UpdatedBy } -func (t *GetAllFileHistories_FileHistories_Edges_Node) GetURI() *string { - if t == nil { - t = &GetAllFileHistories_FileHistories_Edges_Node{} - } - return t.URI -} -type GetAllFileHistories_FileHistories_Edges struct { - Node *GetAllFileHistories_FileHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllEntityHistories_EntityHistories_Edges struct { + Node *GetAllEntityHistories_EntityHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllFileHistories_FileHistories_Edges) GetNode() *GetAllFileHistories_FileHistories_Edges_Node { +func (t *GetAllEntityHistories_EntityHistories_Edges) GetNode() *GetAllEntityHistories_EntityHistories_Edges_Node { if t == nil { - t = &GetAllFileHistories_FileHistories_Edges{} + t = &GetAllEntityHistories_EntityHistories_Edges{} } return t.Node } -type GetAllFileHistories_FileHistories struct { - Edges []*GetAllFileHistories_FileHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllEntityHistories_EntityHistories struct { + Edges []*GetAllEntityHistories_EntityHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllFileHistories_FileHistories) GetEdges() []*GetAllFileHistories_FileHistories_Edges { +func (t *GetAllEntityHistories_EntityHistories) GetEdges() []*GetAllEntityHistories_EntityHistories_Edges { if t == nil { - t = &GetAllFileHistories_FileHistories{} + t = &GetAllEntityHistories_EntityHistories{} } return t.Edges } -type GetFileHistories_FileHistories_Edges_Node struct { - CategoryType *string "json:\"categoryType,omitempty\" graphql:\"categoryType\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DetectedContentType string "json:\"detectedContentType\" graphql:\"detectedContentType\"" - DetectedMimeType *string "json:\"detectedMimeType,omitempty\" graphql:\"detectedMimeType\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Md5Hash *string "json:\"md5Hash,omitempty\" graphql:\"md5Hash\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - PersistedFileSize *int64 "json:\"persistedFileSize,omitempty\" graphql:\"persistedFileSize\"" - ProvidedFileExtension string "json:\"providedFileExtension\" graphql:\"providedFileExtension\"" - ProvidedFileName string "json:\"providedFileName\" graphql:\"providedFileName\"" - ProvidedFileSize *int64 "json:\"providedFileSize,omitempty\" graphql:\"providedFileSize\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - StoragePath *string "json:\"storagePath,omitempty\" graphql:\"storagePath\"" - StorageScheme *string "json:\"storageScheme,omitempty\" graphql:\"storageScheme\"" - StorageVolume *string "json:\"storageVolume,omitempty\" graphql:\"storageVolume\"" - StoreKey *string "json:\"storeKey,omitempty\" graphql:\"storeKey\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - URI *string "json:\"uri,omitempty\" graphql:\"uri\"" +type GetEntityHistories_EntityHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + EntityTypeID *string "json:\"entityTypeID,omitempty\" graphql:\"entityTypeID\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name *string "json:\"name,omitempty\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetFileHistories_FileHistories_Edges_Node) GetCategoryType() *string { - if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} - } - return t.CategoryType -} -func (t *GetFileHistories_FileHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } return t.CreatedAt } -func (t *GetFileHistories_FileHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } return t.CreatedBy } -func (t *GetFileHistories_FileHistories_Edges_Node) GetDetectedContentType() string { - if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} - } - return t.DetectedContentType -} -func (t *GetFileHistories_FileHistories_Edges_Node) GetDetectedMimeType() *string { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } - return t.DetectedMimeType + return t.Description } -func (t *GetFileHistories_FileHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetDisplayName() *string { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } - return &t.HistoryTime + return t.DisplayName } -func (t *GetFileHistories_FileHistories_Edges_Node) GetID() string { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetDomains() []string { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } - return t.ID + return t.Domains } -func (t *GetFileHistories_FileHistories_Edges_Node) GetMd5Hash() *string { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetEntityTypeID() *string { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } - return t.Md5Hash + return t.EntityTypeID } -func (t *GetFileHistories_FileHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } - return &t.Operation + return &t.HistoryTime } -func (t *GetFileHistories_FileHistories_Edges_Node) GetPersistedFileSize() *int64 { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetID() string { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } - return t.PersistedFileSize + return t.ID } -func (t *GetFileHistories_FileHistories_Edges_Node) GetProvidedFileExtension() string { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetName() *string { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } - return t.ProvidedFileExtension + return t.Name } -func (t *GetFileHistories_FileHistories_Edges_Node) GetProvidedFileName() string { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } - return t.ProvidedFileName + return &t.Operation } -func (t *GetFileHistories_FileHistories_Edges_Node) GetProvidedFileSize() *int64 { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } - return t.ProvidedFileSize + return t.OwnerID } -func (t *GetFileHistories_FileHistories_Edges_Node) GetRef() *string { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } return t.Ref } -func (t *GetFileHistories_FileHistories_Edges_Node) GetStoragePath() *string { - if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} - } - return t.StoragePath -} -func (t *GetFileHistories_FileHistories_Edges_Node) GetStorageScheme() *string { - if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} - } - return t.StorageScheme -} -func (t *GetFileHistories_FileHistories_Edges_Node) GetStorageVolume() *string { - if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} - } - return t.StorageVolume -} -func (t *GetFileHistories_FileHistories_Edges_Node) GetStoreKey() *string { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetStatus() *string { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } - return t.StoreKey + return t.Status } -func (t *GetFileHistories_FileHistories_Edges_Node) GetTags() []string { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } return t.Tags } -func (t *GetFileHistories_FileHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetFileHistories_FileHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetEntityHistories_EntityHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges_Node{} } return t.UpdatedBy } -func (t *GetFileHistories_FileHistories_Edges_Node) GetURI() *string { + +type GetEntityHistories_EntityHistories_Edges struct { + Node *GetEntityHistories_EntityHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetEntityHistories_EntityHistories_Edges) GetNode() *GetEntityHistories_EntityHistories_Edges_Node { if t == nil { - t = &GetFileHistories_FileHistories_Edges_Node{} + t = &GetEntityHistories_EntityHistories_Edges{} } - return t.URI + return t.Node } -type GetFileHistories_FileHistories_Edges struct { - Node *GetFileHistories_FileHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" -} - -func (t *GetFileHistories_FileHistories_Edges) GetNode() *GetFileHistories_FileHistories_Edges_Node { - if t == nil { - t = &GetFileHistories_FileHistories_Edges{} - } - return t.Node -} - -type GetFileHistories_FileHistories struct { - Edges []*GetFileHistories_FileHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetEntityHistories_EntityHistories struct { + Edges []*GetEntityHistories_EntityHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetFileHistories_FileHistories) GetEdges() []*GetFileHistories_FileHistories_Edges { +func (t *GetEntityHistories_EntityHistories) GetEdges() []*GetEntityHistories_EntityHistories_Edges { if t == nil { - t = &GetFileHistories_FileHistories{} + t = &GetEntityHistories_EntityHistories{} } return t.Edges } -type CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner struct { - ID string "json:\"id\" graphql:\"id\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" +type CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + ID string "json:\"id\" graphql:\"id\"" + 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\"" } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner) GetID() string { +func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner{} + t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} } - return t.ID + return t.CreatedAt } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner) GetDisplayName() string { +func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner{} + t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} } - return t.DisplayName -} - -type CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting struct { - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" + return t.CreatedBy } - -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting) GetID() string { +func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetID() string { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting{} + t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} } return t.ID } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting) GetJoinPolicy() *enums.JoinPolicy { - if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting{} - } - return &t.JoinPolicy -} -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting) GetSyncToGithub() *bool { +func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetName() string { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting{} + t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} } - return t.SyncToGithub + return t.Name } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting) GetSyncToSlack() *bool { +func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetOwnerID() *string { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting{} + t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} } - return t.SyncToSlack + return t.OwnerID } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting) GetTags() []string { +func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetTags() []string { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting{} + t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} } return t.Tags } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting) GetVisibility() *enums.Visibility { - if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting{} - } - return &t.Visibility -} - -type CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User struct { - ID string "json:\"id\" graphql:\"id\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" -} - -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User) GetID() string { - if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User{} - } - return t.ID -} -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User) GetFirstName() *string { +func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User{} + t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} } - return t.FirstName + return t.UpdatedAt } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User) GetLastName() *string { +func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User{} + t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes{} } - return t.LastName + return t.UpdatedBy } -type CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - User CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User "json:\"user\" graphql:\"user\"" +type CreateBulkCSVEntityType_CreateBulkCSVEntityType struct { + EntityTypes []*CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes "json:\"entityTypes,omitempty\" graphql:\"entityTypes\"" } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members) GetID() string { - if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members{} - } - return t.ID -} -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members) GetRole() *enums.Role { - if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members{} - } - return &t.Role -} -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members) GetUser() *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User { +func (t *CreateBulkCSVEntityType_CreateBulkCSVEntityType) GetEntityTypes() []*CreateBulkCSVEntityType_CreateBulkCSVEntityType_EntityTypes { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members{} + t = &CreateBulkCSVEntityType_CreateBulkCSVEntityType{} } - return &t.User + return t.EntityTypes } -type CreateBulkCSVGroup_CreateBulkCSVGroup_Groups struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - ID string "json:\"id\" graphql:\"id\"" - LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" - Name string "json:\"name\" graphql:\"name\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Owner *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Setting CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting "json:\"setting\" graphql:\"setting\"" - Members []*CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members "json:\"members,omitempty\" graphql:\"members\"" +type CreateBulkEntityType_CreateBulkEntityType_EntityTypes struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + ID string "json:\"id\" graphql:\"id\"" + 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\"" } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetDescription() *string { +func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} + t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} } - return t.Description + return t.CreatedAt } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetDisplayName() string { +func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} + t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} } - return t.DisplayName + return t.CreatedBy } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetID() string { +func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetID() string { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} + t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} } return t.ID } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetLogoURL() *string { - if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} - } - return t.LogoURL -} -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetName() string { +func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetName() string { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} + t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} } return t.Name } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetTags() []string { +func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetOwnerID() *string { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} + t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} } - return t.Tags + return t.OwnerID } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetOwner() *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner { +func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetTags() []string { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} + t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} } - return t.Owner + return t.Tags } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetSetting() *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting { +func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} + t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} } - return &t.Setting + return t.UpdatedAt } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetMembers() []*CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members { +func (t *CreateBulkEntityType_CreateBulkEntityType_EntityTypes) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} + t = &CreateBulkEntityType_CreateBulkEntityType_EntityTypes{} } - return t.Members + return t.UpdatedBy } -type CreateBulkCSVGroup_CreateBulkCSVGroup struct { - Groups []*CreateBulkCSVGroup_CreateBulkCSVGroup_Groups "json:\"groups,omitempty\" graphql:\"groups\"" +type CreateBulkEntityType_CreateBulkEntityType struct { + EntityTypes []*CreateBulkEntityType_CreateBulkEntityType_EntityTypes "json:\"entityTypes,omitempty\" graphql:\"entityTypes\"" } -func (t *CreateBulkCSVGroup_CreateBulkCSVGroup) GetGroups() []*CreateBulkCSVGroup_CreateBulkCSVGroup_Groups { +func (t *CreateBulkEntityType_CreateBulkEntityType) GetEntityTypes() []*CreateBulkEntityType_CreateBulkEntityType_EntityTypes { if t == nil { - t = &CreateBulkCSVGroup_CreateBulkCSVGroup{} + t = &CreateBulkEntityType_CreateBulkEntityType{} } - return t.Groups + return t.EntityTypes } -type CreateBulkGroup_CreateBulkGroup_Groups_Owner struct { - ID string "json:\"id\" graphql:\"id\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" +type CreateEntityType_CreateEntityType_EntityType struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + ID string "json:\"id\" graphql:\"id\"" + 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\"" } -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Owner) GetID() string { +func (t *CreateEntityType_CreateEntityType_EntityType) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Owner{} + t = &CreateEntityType_CreateEntityType_EntityType{} } - return t.ID + return t.CreatedAt } -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Owner) GetDisplayName() string { +func (t *CreateEntityType_CreateEntityType_EntityType) GetCreatedBy() *string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Owner{} + t = &CreateEntityType_CreateEntityType_EntityType{} } - return t.DisplayName -} - -type CreateBulkGroup_CreateBulkGroup_Groups_Setting struct { - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" + return t.CreatedBy } - -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Setting) GetID() string { +func (t *CreateEntityType_CreateEntityType_EntityType) GetID() string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Setting{} + t = &CreateEntityType_CreateEntityType_EntityType{} } return t.ID } -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Setting) GetJoinPolicy() *enums.JoinPolicy { +func (t *CreateEntityType_CreateEntityType_EntityType) GetName() string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Setting{} + t = &CreateEntityType_CreateEntityType_EntityType{} } - return &t.JoinPolicy + return t.Name } -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Setting) GetSyncToGithub() *bool { +func (t *CreateEntityType_CreateEntityType_EntityType) GetOwnerID() *string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Setting{} + t = &CreateEntityType_CreateEntityType_EntityType{} } - return t.SyncToGithub + return t.OwnerID } -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Setting) GetSyncToSlack() *bool { +func (t *CreateEntityType_CreateEntityType_EntityType) GetTags() []string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Setting{} + t = &CreateEntityType_CreateEntityType_EntityType{} } - return t.SyncToSlack + return t.Tags } -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Setting) GetTags() []string { +func (t *CreateEntityType_CreateEntityType_EntityType) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Setting{} + t = &CreateEntityType_CreateEntityType_EntityType{} } - return t.Tags + return t.UpdatedAt } -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Setting) GetVisibility() *enums.Visibility { +func (t *CreateEntityType_CreateEntityType_EntityType) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Setting{} + t = &CreateEntityType_CreateEntityType_EntityType{} } - return &t.Visibility + return t.UpdatedBy } -type CreateBulkGroup_CreateBulkGroup_Groups_Members_User struct { - ID string "json:\"id\" graphql:\"id\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +type CreateEntityType_CreateEntityType struct { + EntityType CreateEntityType_CreateEntityType_EntityType "json:\"entityType\" graphql:\"entityType\"" } -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Members_User) GetID() string { - if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Members_User{} - } - return t.ID -} -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Members_User) GetFirstName() *string { - if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Members_User{} - } - return t.FirstName -} -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Members_User) GetLastName() *string { +func (t *CreateEntityType_CreateEntityType) GetEntityType() *CreateEntityType_CreateEntityType_EntityType { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Members_User{} + t = &CreateEntityType_CreateEntityType{} } - return t.LastName + return &t.EntityType } -type CreateBulkGroup_CreateBulkGroup_Groups_Members struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - User CreateBulkGroup_CreateBulkGroup_Groups_Members_User "json:\"user\" graphql:\"user\"" +type DeleteEntityType_DeleteEntityType struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Members) GetID() string { - if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Members{} - } - return t.ID -} -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Members) GetRole() *enums.Role { - if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Members{} - } - return &t.Role -} -func (t *CreateBulkGroup_CreateBulkGroup_Groups_Members) GetUser() *CreateBulkGroup_CreateBulkGroup_Groups_Members_User { +func (t *DeleteEntityType_DeleteEntityType) GetDeletedID() string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups_Members{} + t = &DeleteEntityType_DeleteEntityType{} } - return &t.User + return t.DeletedID } -type CreateBulkGroup_CreateBulkGroup_Groups struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - ID string "json:\"id\" graphql:\"id\"" - LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" - Name string "json:\"name\" graphql:\"name\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Owner *CreateBulkGroup_CreateBulkGroup_Groups_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Setting CreateBulkGroup_CreateBulkGroup_Groups_Setting "json:\"setting\" graphql:\"setting\"" - Members []*CreateBulkGroup_CreateBulkGroup_Groups_Members "json:\"members,omitempty\" graphql:\"members\"" +type GetAllEntityTypes_EntityTypes_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + ID string "json:\"id\" graphql:\"id\"" + 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\"" } -func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetDescription() *string { +func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups{} + t = &GetAllEntityTypes_EntityTypes_Edges_Node{} } - return t.Description + return t.CreatedAt } -func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetDisplayName() string { +func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups{} + t = &GetAllEntityTypes_EntityTypes_Edges_Node{} } - return t.DisplayName + return t.CreatedBy } -func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetID() string { +func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups{} + t = &GetAllEntityTypes_EntityTypes_Edges_Node{} } return t.ID } -func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetLogoURL() *string { +func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetName() string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups{} + t = &GetAllEntityTypes_EntityTypes_Edges_Node{} } - return t.LogoURL + return t.Name } -func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetName() string { +func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetOwnerID() *string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups{} + t = &GetAllEntityTypes_EntityTypes_Edges_Node{} } - return t.Name + return t.OwnerID } -func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetTags() []string { +func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetTags() []string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups{} + t = &GetAllEntityTypes_EntityTypes_Edges_Node{} } return t.Tags } -func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetOwner() *CreateBulkGroup_CreateBulkGroup_Groups_Owner { +func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups{} + t = &GetAllEntityTypes_EntityTypes_Edges_Node{} } - return t.Owner + return t.UpdatedAt } -func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetSetting() *CreateBulkGroup_CreateBulkGroup_Groups_Setting { +func (t *GetAllEntityTypes_EntityTypes_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups{} + t = &GetAllEntityTypes_EntityTypes_Edges_Node{} } - return &t.Setting + return t.UpdatedBy } -func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetMembers() []*CreateBulkGroup_CreateBulkGroup_Groups_Members { + +type GetAllEntityTypes_EntityTypes_Edges struct { + Node *GetAllEntityTypes_EntityTypes_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllEntityTypes_EntityTypes_Edges) GetNode() *GetAllEntityTypes_EntityTypes_Edges_Node { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup_Groups{} + t = &GetAllEntityTypes_EntityTypes_Edges{} } - return t.Members + return t.Node } -type CreateBulkGroup_CreateBulkGroup struct { - Groups []*CreateBulkGroup_CreateBulkGroup_Groups "json:\"groups,omitempty\" graphql:\"groups\"" +type GetAllEntityTypes_EntityTypes struct { + Edges []*GetAllEntityTypes_EntityTypes_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkGroup_CreateBulkGroup) GetGroups() []*CreateBulkGroup_CreateBulkGroup_Groups { +func (t *GetAllEntityTypes_EntityTypes) GetEdges() []*GetAllEntityTypes_EntityTypes_Edges { if t == nil { - t = &CreateBulkGroup_CreateBulkGroup{} + t = &GetAllEntityTypes_EntityTypes{} } - return t.Groups + return t.Edges } -type CreateGroup_CreateGroup_Group_Owner struct { - ID string "json:\"id\" graphql:\"id\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" +type GetEntityTypeByID_EntityType struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + ID string "json:\"id\" graphql:\"id\"" + 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\"" } -func (t *CreateGroup_CreateGroup_Group_Owner) GetID() string { +func (t *GetEntityTypeByID_EntityType) GetCreatedAt() *time.Time { if t == nil { - t = &CreateGroup_CreateGroup_Group_Owner{} + t = &GetEntityTypeByID_EntityType{} } - return t.ID + return t.CreatedAt } -func (t *CreateGroup_CreateGroup_Group_Owner) GetDisplayName() string { +func (t *GetEntityTypeByID_EntityType) GetCreatedBy() *string { if t == nil { - t = &CreateGroup_CreateGroup_Group_Owner{} + t = &GetEntityTypeByID_EntityType{} } - return t.DisplayName -} - -type CreateGroup_CreateGroup_Group_Setting struct { - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" + return t.CreatedBy } - -func (t *CreateGroup_CreateGroup_Group_Setting) GetID() string { +func (t *GetEntityTypeByID_EntityType) GetID() string { if t == nil { - t = &CreateGroup_CreateGroup_Group_Setting{} + t = &GetEntityTypeByID_EntityType{} } return t.ID } -func (t *CreateGroup_CreateGroup_Group_Setting) GetJoinPolicy() *enums.JoinPolicy { +func (t *GetEntityTypeByID_EntityType) GetName() string { if t == nil { - t = &CreateGroup_CreateGroup_Group_Setting{} + t = &GetEntityTypeByID_EntityType{} } - return &t.JoinPolicy + return t.Name } -func (t *CreateGroup_CreateGroup_Group_Setting) GetSyncToGithub() *bool { +func (t *GetEntityTypeByID_EntityType) GetOwnerID() *string { if t == nil { - t = &CreateGroup_CreateGroup_Group_Setting{} + t = &GetEntityTypeByID_EntityType{} } - return t.SyncToGithub + return t.OwnerID } -func (t *CreateGroup_CreateGroup_Group_Setting) GetSyncToSlack() *bool { +func (t *GetEntityTypeByID_EntityType) GetTags() []string { if t == nil { - t = &CreateGroup_CreateGroup_Group_Setting{} + t = &GetEntityTypeByID_EntityType{} } - return t.SyncToSlack + return t.Tags } -func (t *CreateGroup_CreateGroup_Group_Setting) GetTags() []string { +func (t *GetEntityTypeByID_EntityType) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateGroup_CreateGroup_Group_Setting{} + t = &GetEntityTypeByID_EntityType{} } - return t.Tags + return t.UpdatedAt } -func (t *CreateGroup_CreateGroup_Group_Setting) GetVisibility() *enums.Visibility { +func (t *GetEntityTypeByID_EntityType) GetUpdatedBy() *string { if t == nil { - t = &CreateGroup_CreateGroup_Group_Setting{} + t = &GetEntityTypeByID_EntityType{} } - return &t.Visibility + return t.UpdatedBy } -type CreateGroup_CreateGroup_Group_Members_User struct { - ID string "json:\"id\" graphql:\"id\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +type GetEntityTypes_EntityTypes_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + ID string "json:\"id\" graphql:\"id\"" + 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\"" } -func (t *CreateGroup_CreateGroup_Group_Members_User) GetID() string { +func (t *GetEntityTypes_EntityTypes_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateGroup_CreateGroup_Group_Members_User{} + t = &GetEntityTypes_EntityTypes_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *CreateGroup_CreateGroup_Group_Members_User) GetFirstName() *string { +func (t *GetEntityTypes_EntityTypes_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateGroup_CreateGroup_Group_Members_User{} + t = &GetEntityTypes_EntityTypes_Edges_Node{} } - return t.FirstName + return t.CreatedBy } -func (t *CreateGroup_CreateGroup_Group_Members_User) GetLastName() *string { +func (t *GetEntityTypes_EntityTypes_Edges_Node) GetID() string { if t == nil { - t = &CreateGroup_CreateGroup_Group_Members_User{} + t = &GetEntityTypes_EntityTypes_Edges_Node{} } - return t.LastName + return t.ID } - -type CreateGroup_CreateGroup_Group_Members struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - User CreateGroup_CreateGroup_Group_Members_User "json:\"user\" graphql:\"user\"" +func (t *GetEntityTypes_EntityTypes_Edges_Node) GetName() string { + if t == nil { + t = &GetEntityTypes_EntityTypes_Edges_Node{} + } + return t.Name } - -func (t *CreateGroup_CreateGroup_Group_Members) GetID() string { +func (t *GetEntityTypes_EntityTypes_Edges_Node) GetOwnerID() *string { if t == nil { - t = &CreateGroup_CreateGroup_Group_Members{} + t = &GetEntityTypes_EntityTypes_Edges_Node{} } - return t.ID + return t.OwnerID } -func (t *CreateGroup_CreateGroup_Group_Members) GetRole() *enums.Role { +func (t *GetEntityTypes_EntityTypes_Edges_Node) GetTags() []string { if t == nil { - t = &CreateGroup_CreateGroup_Group_Members{} + t = &GetEntityTypes_EntityTypes_Edges_Node{} } - return &t.Role + return t.Tags } -func (t *CreateGroup_CreateGroup_Group_Members) GetUser() *CreateGroup_CreateGroup_Group_Members_User { +func (t *GetEntityTypes_EntityTypes_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateGroup_CreateGroup_Group_Members{} + t = &GetEntityTypes_EntityTypes_Edges_Node{} } - return &t.User + return t.UpdatedAt +} +func (t *GetEntityTypes_EntityTypes_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetEntityTypes_EntityTypes_Edges_Node{} + } + return t.UpdatedBy } -type CreateGroup_CreateGroup_Group struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - ID string "json:\"id\" graphql:\"id\"" - LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" - Name string "json:\"name\" graphql:\"name\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Owner *CreateGroup_CreateGroup_Group_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Setting CreateGroup_CreateGroup_Group_Setting "json:\"setting\" graphql:\"setting\"" - Members []*CreateGroup_CreateGroup_Group_Members "json:\"members,omitempty\" graphql:\"members\"" +type GetEntityTypes_EntityTypes_Edges struct { + Node *GetEntityTypes_EntityTypes_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateGroup_CreateGroup_Group) GetDescription() *string { +func (t *GetEntityTypes_EntityTypes_Edges) GetNode() *GetEntityTypes_EntityTypes_Edges_Node { if t == nil { - t = &CreateGroup_CreateGroup_Group{} + t = &GetEntityTypes_EntityTypes_Edges{} } - return t.Description + return t.Node } -func (t *CreateGroup_CreateGroup_Group) GetDisplayName() string { + +type GetEntityTypes_EntityTypes struct { + Edges []*GetEntityTypes_EntityTypes_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetEntityTypes_EntityTypes) GetEdges() []*GetEntityTypes_EntityTypes_Edges { if t == nil { - t = &CreateGroup_CreateGroup_Group{} + t = &GetEntityTypes_EntityTypes{} } - return t.DisplayName + return t.Edges } -func (t *CreateGroup_CreateGroup_Group) GetID() string { + +type UpdateEntityType_UpdateEntityType_EntityType struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + ID string "json:\"id\" graphql:\"id\"" + 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\"" +} + +func (t *UpdateEntityType_UpdateEntityType_EntityType) GetCreatedAt() *time.Time { if t == nil { - t = &CreateGroup_CreateGroup_Group{} + t = &UpdateEntityType_UpdateEntityType_EntityType{} } - return t.ID + return t.CreatedAt } -func (t *CreateGroup_CreateGroup_Group) GetLogoURL() *string { +func (t *UpdateEntityType_UpdateEntityType_EntityType) GetCreatedBy() *string { if t == nil { - t = &CreateGroup_CreateGroup_Group{} + t = &UpdateEntityType_UpdateEntityType_EntityType{} } - return t.LogoURL + return t.CreatedBy } -func (t *CreateGroup_CreateGroup_Group) GetName() string { +func (t *UpdateEntityType_UpdateEntityType_EntityType) GetID() string { if t == nil { - t = &CreateGroup_CreateGroup_Group{} + t = &UpdateEntityType_UpdateEntityType_EntityType{} } - return t.Name + return t.ID } -func (t *CreateGroup_CreateGroup_Group) GetTags() []string { +func (t *UpdateEntityType_UpdateEntityType_EntityType) GetName() string { if t == nil { - t = &CreateGroup_CreateGroup_Group{} + t = &UpdateEntityType_UpdateEntityType_EntityType{} } - return t.Tags + return t.Name } -func (t *CreateGroup_CreateGroup_Group) GetOwner() *CreateGroup_CreateGroup_Group_Owner { +func (t *UpdateEntityType_UpdateEntityType_EntityType) GetOwnerID() *string { if t == nil { - t = &CreateGroup_CreateGroup_Group{} + t = &UpdateEntityType_UpdateEntityType_EntityType{} } - return t.Owner + return t.OwnerID } -func (t *CreateGroup_CreateGroup_Group) GetSetting() *CreateGroup_CreateGroup_Group_Setting { +func (t *UpdateEntityType_UpdateEntityType_EntityType) GetTags() []string { if t == nil { - t = &CreateGroup_CreateGroup_Group{} + t = &UpdateEntityType_UpdateEntityType_EntityType{} } - return &t.Setting + return t.Tags } -func (t *CreateGroup_CreateGroup_Group) GetMembers() []*CreateGroup_CreateGroup_Group_Members { +func (t *UpdateEntityType_UpdateEntityType_EntityType) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateGroup_CreateGroup_Group{} + t = &UpdateEntityType_UpdateEntityType_EntityType{} } - return t.Members -} - -type CreateGroup_CreateGroup struct { - Group CreateGroup_CreateGroup_Group "json:\"group\" graphql:\"group\"" + return t.UpdatedAt } - -func (t *CreateGroup_CreateGroup) GetGroup() *CreateGroup_CreateGroup_Group { +func (t *UpdateEntityType_UpdateEntityType_EntityType) GetUpdatedBy() *string { if t == nil { - t = &CreateGroup_CreateGroup{} + t = &UpdateEntityType_UpdateEntityType_EntityType{} } - return &t.Group + return t.UpdatedBy } -type DeleteGroup_DeleteGroup struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type UpdateEntityType_UpdateEntityType struct { + EntityType UpdateEntityType_UpdateEntityType_EntityType "json:\"entityType\" graphql:\"entityType\"" } -func (t *DeleteGroup_DeleteGroup) GetDeletedID() string { +func (t *UpdateEntityType_UpdateEntityType) GetEntityType() *UpdateEntityType_UpdateEntityType_EntityType { if t == nil { - t = &DeleteGroup_DeleteGroup{} + t = &UpdateEntityType_UpdateEntityType{} } - return t.DeletedID + return &t.EntityType } -type GetAllGroups_Groups_Edges_Node_Owner struct { - ID string "json:\"id\" graphql:\"id\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" +type GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllGroups_Groups_Edges_Node_Owner) GetID() string { +func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Owner{} + t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *GetAllGroups_Groups_Edges_Node_Owner) GetDisplayName() string { +func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Owner{} + t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.DisplayName -} - -type GetAllGroups_Groups_Edges_Node_Setting struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" + return t.CreatedBy } - -func (t *GetAllGroups_Groups_Edges_Node_Setting) GetCreatedAt() *time.Time { +func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Setting{} + t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.CreatedAt + return &t.HistoryTime } -func (t *GetAllGroups_Groups_Edges_Node_Setting) GetCreatedBy() *string { +func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetID() string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Setting{} + t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.CreatedBy + return t.ID } -func (t *GetAllGroups_Groups_Edges_Node_Setting) GetID() string { +func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetName() string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Setting{} + t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.ID + return t.Name } -func (t *GetAllGroups_Groups_Edges_Node_Setting) GetJoinPolicy() *enums.JoinPolicy { +func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Setting{} + t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return &t.JoinPolicy + return &t.Operation } -func (t *GetAllGroups_Groups_Edges_Node_Setting) GetSyncToGithub() *bool { +func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Setting{} + t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.SyncToGithub + return t.OwnerID } -func (t *GetAllGroups_Groups_Edges_Node_Setting) GetSyncToSlack() *bool { +func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Setting{} + t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.SyncToSlack + return t.Ref } -func (t *GetAllGroups_Groups_Edges_Node_Setting) GetTags() []string { +func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Setting{} + t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} } return t.Tags } -func (t *GetAllGroups_Groups_Edges_Node_Setting) GetUpdatedAt() *time.Time { +func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Setting{} + t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetAllGroups_Groups_Edges_Node_Setting) GetUpdatedBy() *string { +func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Setting{} + t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node{} } return t.UpdatedBy } -func (t *GetAllGroups_Groups_Edges_Node_Setting) GetVisibility() *enums.Visibility { - if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Setting{} - } - return &t.Visibility -} -type GetAllGroups_Groups_Edges_Node_Members_User struct { - ID string "json:\"id\" graphql:\"id\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +type GetAllEntityTypeHistories_EntityTypeHistories_Edges struct { + Node *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllGroups_Groups_Edges_Node_Members_User) GetID() string { - if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Members_User{} - } - return t.ID -} -func (t *GetAllGroups_Groups_Edges_Node_Members_User) GetFirstName() *string { - if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Members_User{} - } - return t.FirstName -} -func (t *GetAllGroups_Groups_Edges_Node_Members_User) GetLastName() *string { +func (t *GetAllEntityTypeHistories_EntityTypeHistories_Edges) GetNode() *GetAllEntityTypeHistories_EntityTypeHistories_Edges_Node { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Members_User{} + t = &GetAllEntityTypeHistories_EntityTypeHistories_Edges{} } - return t.LastName + return t.Node } -type GetAllGroups_Groups_Edges_Node_Members struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - User GetAllGroups_Groups_Edges_Node_Members_User "json:\"user\" graphql:\"user\"" +type GetAllEntityTypeHistories_EntityTypeHistories struct { + Edges []*GetAllEntityTypeHistories_EntityTypeHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllGroups_Groups_Edges_Node_Members) GetID() string { - if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Members{} - } - return t.ID -} -func (t *GetAllGroups_Groups_Edges_Node_Members) GetRole() *enums.Role { - if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Members{} - } - return &t.Role -} -func (t *GetAllGroups_Groups_Edges_Node_Members) GetUser() *GetAllGroups_Groups_Edges_Node_Members_User { +func (t *GetAllEntityTypeHistories_EntityTypeHistories) GetEdges() []*GetAllEntityTypeHistories_EntityTypeHistories_Edges { if t == nil { - t = &GetAllGroups_Groups_Edges_Node_Members{} + t = &GetAllEntityTypeHistories_EntityTypeHistories{} } - return &t.User + return t.Edges } -type GetAllGroups_Groups_Edges_Node struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - ID string "json:\"id\" graphql:\"id\"" - LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" - Name string "json:\"name\" graphql:\"name\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Owner *GetAllGroups_Groups_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Setting GetAllGroups_Groups_Edges_Node_Setting "json:\"setting\" graphql:\"setting\"" - Members []*GetAllGroups_Groups_Edges_Node_Members "json:\"members,omitempty\" graphql:\"members\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetEntityTypeHistories_EntityTypeHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllGroups_Groups_Edges_Node) GetDescription() *string { +func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} + t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.Description + return t.CreatedAt } -func (t *GetAllGroups_Groups_Edges_Node) GetDisplayName() string { +func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} + t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.DisplayName + return t.CreatedBy } -func (t *GetAllGroups_Groups_Edges_Node) GetID() string { +func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} + t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.ID + return &t.HistoryTime } -func (t *GetAllGroups_Groups_Edges_Node) GetLogoURL() *string { +func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetID() string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} + t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.LogoURL + return t.ID } -func (t *GetAllGroups_Groups_Edges_Node) GetName() string { +func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetName() string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} + t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} } return t.Name } -func (t *GetAllGroups_Groups_Edges_Node) GetTags() []string { - if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} - } - return t.Tags -} -func (t *GetAllGroups_Groups_Edges_Node) GetOwner() *GetAllGroups_Groups_Edges_Node_Owner { - if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} - } - return t.Owner -} -func (t *GetAllGroups_Groups_Edges_Node) GetSetting() *GetAllGroups_Groups_Edges_Node_Setting { +func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} + t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return &t.Setting + return &t.Operation } -func (t *GetAllGroups_Groups_Edges_Node) GetMembers() []*GetAllGroups_Groups_Edges_Node_Members { +func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} + t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.Members + return t.OwnerID } -func (t *GetAllGroups_Groups_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} + t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.CreatedAt + return t.Ref } -func (t *GetAllGroups_Groups_Edges_Node) GetCreatedBy() *string { +func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} + t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} } - return t.CreatedBy + return t.Tags } -func (t *GetAllGroups_Groups_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} + t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetAllGroups_Groups_Edges_Node) GetUpdatedBy() *string { +func (t *GetEntityTypeHistories_EntityTypeHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllGroups_Groups_Edges_Node{} + t = &GetEntityTypeHistories_EntityTypeHistories_Edges_Node{} } return t.UpdatedBy } -type GetAllGroups_Groups_Edges struct { - Node *GetAllGroups_Groups_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetEntityTypeHistories_EntityTypeHistories_Edges struct { + Node *GetEntityTypeHistories_EntityTypeHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllGroups_Groups_Edges) GetNode() *GetAllGroups_Groups_Edges_Node { +func (t *GetEntityTypeHistories_EntityTypeHistories_Edges) GetNode() *GetEntityTypeHistories_EntityTypeHistories_Edges_Node { if t == nil { - t = &GetAllGroups_Groups_Edges{} + t = &GetEntityTypeHistories_EntityTypeHistories_Edges{} } return t.Node } -type GetAllGroups_Groups struct { - Edges []*GetAllGroups_Groups_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetEntityTypeHistories_EntityTypeHistories struct { + Edges []*GetEntityTypeHistories_EntityTypeHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllGroups_Groups) GetEdges() []*GetAllGroups_Groups_Edges { +func (t *GetEntityTypeHistories_EntityTypeHistories) GetEdges() []*GetEntityTypeHistories_EntityTypeHistories_Edges { if t == nil { - t = &GetAllGroups_Groups{} + t = &GetEntityTypeHistories_EntityTypeHistories{} } return t.Edges } -type GetGroupByID_Group_Owner struct { - ID string "json:\"id\" graphql:\"id\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_User struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupByID_Group_Owner) GetID() string { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_User) GetID() string { if t == nil { - t = &GetGroupByID_Group_Owner{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_User{} } return t.ID } -func (t *GetGroupByID_Group_Owner) GetDisplayName() string { - if t == nil { - t = &GetGroupByID_Group_Owner{} - } - return t.DisplayName -} -type GetGroupByID_Group_Setting struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Group struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupByID_Group_Setting) GetCreatedAt() *time.Time { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Group) GetID() string { if t == nil { - t = &GetGroupByID_Group_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Group{} } - return t.CreatedAt + return t.ID } -func (t *GetGroupByID_Group_Setting) GetCreatedBy() *string { - if t == nil { - t = &GetGroupByID_Group_Setting{} - } - return t.CreatedBy + +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Integration struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupByID_Group_Setting) GetID() string { + +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Integration) GetID() string { if t == nil { - t = &GetGroupByID_Group_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Integration{} } return t.ID } -func (t *GetGroupByID_Group_Setting) GetJoinPolicy() *enums.JoinPolicy { - if t == nil { - t = &GetGroupByID_Group_Setting{} - } - return &t.JoinPolicy + +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Organization struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupByID_Group_Setting) GetSyncToGithub() *bool { + +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Organization) GetID() string { if t == nil { - t = &GetGroupByID_Group_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Organization{} } - return t.SyncToGithub + return t.ID } -func (t *GetGroupByID_Group_Setting) GetSyncToSlack() *bool { - if t == nil { - t = &GetGroupByID_Group_Setting{} - } - return t.SyncToSlack + +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Invite struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupByID_Group_Setting) GetTags() []string { + +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Invite) GetID() string { if t == nil { - t = &GetGroupByID_Group_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Invite{} } - return t.Tags + return t.ID } -func (t *GetGroupByID_Group_Setting) GetUpdatedAt() *time.Time { - if t == nil { - t = &GetGroupByID_Group_Setting{} - } - return t.UpdatedAt + +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Feature struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupByID_Group_Setting) GetUpdatedBy() *string { + +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Feature) GetID() string { if t == nil { - t = &GetGroupByID_Group_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Feature{} } - return t.UpdatedBy + return t.ID } -func (t *GetGroupByID_Group_Setting) GetVisibility() *enums.Visibility { + +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_PersonalAccessToken struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_PersonalAccessToken) GetID() string { if t == nil { - t = &GetGroupByID_Group_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_PersonalAccessToken{} } - return &t.Visibility + return t.ID } -type GetGroupByID_Group_Members_User struct { - ID string "json:\"id\" graphql:\"id\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Oauth2token struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupByID_Group_Members_User) GetID() string { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Oauth2token) GetID() string { if t == nil { - t = &GetGroupByID_Group_Members_User{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Oauth2token{} } return t.ID } -func (t *GetGroupByID_Group_Members_User) GetFirstName() *string { - if t == nil { - t = &GetGroupByID_Group_Members_User{} - } - return t.FirstName + +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Hush struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupByID_Group_Members_User) GetLastName() *string { + +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Hush) GetID() string { if t == nil { - t = &GetGroupByID_Group_Members_User{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Hush{} } - return t.LastName + return t.ID } -type GetGroupByID_Group_Members struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - User GetGroupByID_Group_Members_User "json:\"user\" graphql:\"user\"" +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Orgmembership struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupByID_Group_Members) GetID() string { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Orgmembership) GetID() string { if t == nil { - t = &GetGroupByID_Group_Members{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Orgmembership{} } return t.ID } -func (t *GetGroupByID_Group_Members) GetRole() *enums.Role { - if t == nil { - t = &GetGroupByID_Group_Members{} - } - return &t.Role + +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Groupmembership struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupByID_Group_Members) GetUser() *GetGroupByID_Group_Members_User { + +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Groupmembership) GetID() string { if t == nil { - t = &GetGroupByID_Group_Members{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Groupmembership{} } - return &t.User + return t.ID } -type GetGroupByID_Group struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - ID string "json:\"id\" graphql:\"id\"" - LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" - Name string "json:\"name\" graphql:\"name\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Owner *GetGroupByID_Group_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Setting GetGroupByID_Group_Setting "json:\"setting\" graphql:\"setting\"" - Members []*GetGroupByID_Group_Members "json:\"members,omitempty\" graphql:\"members\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Entitlement struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupByID_Group) GetDescription() *string { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Entitlement) GetID() string { if t == nil { - t = &GetGroupByID_Group{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Entitlement{} } - return t.Description + return t.ID } -func (t *GetGroupByID_Group) GetDisplayName() string { - if t == nil { - t = &GetGroupByID_Group{} - } - return t.DisplayName + +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Webhook struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupByID_Group) GetID() string { + +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Webhook) GetID() string { if t == nil { - t = &GetGroupByID_Group{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Webhook{} } return t.ID } -func (t *GetGroupByID_Group) GetLogoURL() *string { - if t == nil { - t = &GetGroupByID_Group{} - } - return t.LogoURL -} -func (t *GetGroupByID_Group) GetName() string { - if t == nil { - t = &GetGroupByID_Group{} - } - return t.Name + +type CreateBulkCSVEvent_CreateBulkCSVEvent_Events struct { + ID string "json:\"id\" graphql:\"id\"" + EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" + CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" + EventType string "json:\"eventType\" graphql:\"eventType\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + User []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_User "json:\"user,omitempty\" graphql:\"user\"" + Group []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Group "json:\"group,omitempty\" graphql:\"group\"" + Integration []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Integration "json:\"integration,omitempty\" graphql:\"integration\"" + Organization []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Invite []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Invite "json:\"invite,omitempty\" graphql:\"invite\"" + Feature []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Feature "json:\"feature,omitempty\" graphql:\"feature\"" + PersonalAccessToken []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_PersonalAccessToken "json:\"personalAccessToken,omitempty\" graphql:\"personalAccessToken\"" + Oauth2token []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Oauth2token "json:\"oauth2token,omitempty\" graphql:\"oauth2token\"" + Hush []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Hush "json:\"hush,omitempty\" graphql:\"hush\"" + Orgmembership []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Orgmembership "json:\"orgmembership,omitempty\" graphql:\"orgmembership\"" + Groupmembership []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Groupmembership "json:\"groupmembership,omitempty\" graphql:\"groupmembership\"" + Entitlement []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Entitlement "json:\"entitlement,omitempty\" graphql:\"entitlement\"" + Webhook []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Webhook "json:\"webhook,omitempty\" graphql:\"webhook\"" } -func (t *GetGroupByID_Group) GetTags() []string { + +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetID() string { if t == nil { - t = &GetGroupByID_Group{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.Tags + return t.ID } -func (t *GetGroupByID_Group) GetOwner() *GetGroupByID_Group_Owner { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetEventID() *string { if t == nil { - t = &GetGroupByID_Group{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.Owner + return t.EventID } -func (t *GetGroupByID_Group) GetSetting() *GetGroupByID_Group_Setting { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetCorrelationID() *string { if t == nil { - t = &GetGroupByID_Group{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return &t.Setting + return t.CorrelationID } -func (t *GetGroupByID_Group) GetMembers() []*GetGroupByID_Group_Members { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetEventType() string { if t == nil { - t = &GetGroupByID_Group{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.Members + return t.EventType } -func (t *GetGroupByID_Group) GetCreatedAt() *time.Time { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetMetadata() map[string]interface{} { if t == nil { - t = &GetGroupByID_Group{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.CreatedAt + return t.Metadata } -func (t *GetGroupByID_Group) GetCreatedBy() *string { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetUser() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_User { if t == nil { - t = &GetGroupByID_Group{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.CreatedBy + return t.User } -func (t *GetGroupByID_Group) GetUpdatedAt() *time.Time { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetGroup() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Group { if t == nil { - t = &GetGroupByID_Group{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.UpdatedAt + return t.Group } -func (t *GetGroupByID_Group) GetUpdatedBy() *string { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetIntegration() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Integration { if t == nil { - t = &GetGroupByID_Group{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.UpdatedBy -} - -type GetGroups_Groups_Edges_Node_Owner struct { - ID string "json:\"id\" graphql:\"id\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" + return t.Integration } - -func (t *GetGroups_Groups_Edges_Node_Owner) GetID() string { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetOrganization() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Organization { if t == nil { - t = &GetGroups_Groups_Edges_Node_Owner{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.ID + return t.Organization } -func (t *GetGroups_Groups_Edges_Node_Owner) GetDisplayName() string { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetInvite() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Invite { if t == nil { - t = &GetGroups_Groups_Edges_Node_Owner{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.DisplayName -} - -type GetGroups_Groups_Edges_Node_Setting struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" + return t.Invite } - -func (t *GetGroups_Groups_Edges_Node_Setting) GetCreatedAt() *time.Time { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetFeature() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Feature { if t == nil { - t = &GetGroups_Groups_Edges_Node_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.CreatedAt + return t.Feature } -func (t *GetGroups_Groups_Edges_Node_Setting) GetCreatedBy() *string { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetPersonalAccessToken() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_PersonalAccessToken { if t == nil { - t = &GetGroups_Groups_Edges_Node_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.CreatedBy + return t.PersonalAccessToken } -func (t *GetGroups_Groups_Edges_Node_Setting) GetID() string { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetOauth2token() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Oauth2token { if t == nil { - t = &GetGroups_Groups_Edges_Node_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.ID + return t.Oauth2token } -func (t *GetGroups_Groups_Edges_Node_Setting) GetJoinPolicy() *enums.JoinPolicy { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetHush() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Hush { if t == nil { - t = &GetGroups_Groups_Edges_Node_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return &t.JoinPolicy + return t.Hush } -func (t *GetGroups_Groups_Edges_Node_Setting) GetSyncToGithub() *bool { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetOrgmembership() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Orgmembership { if t == nil { - t = &GetGroups_Groups_Edges_Node_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.SyncToGithub + return t.Orgmembership } -func (t *GetGroups_Groups_Edges_Node_Setting) GetSyncToSlack() *bool { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetGroupmembership() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Groupmembership { if t == nil { - t = &GetGroups_Groups_Edges_Node_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.SyncToSlack + return t.Groupmembership } -func (t *GetGroups_Groups_Edges_Node_Setting) GetTags() []string { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetEntitlement() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Entitlement { if t == nil { - t = &GetGroups_Groups_Edges_Node_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.Tags + return t.Entitlement } -func (t *GetGroups_Groups_Edges_Node_Setting) GetUpdatedAt() *time.Time { +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent_Events) GetWebhook() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events_Webhook { if t == nil { - t = &GetGroups_Groups_Edges_Node_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent_Events{} } - return t.UpdatedAt + return t.Webhook } -func (t *GetGroups_Groups_Edges_Node_Setting) GetUpdatedBy() *string { - if t == nil { - t = &GetGroups_Groups_Edges_Node_Setting{} - } - return t.UpdatedBy + +type CreateBulkCSVEvent_CreateBulkCSVEvent struct { + Events []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events "json:\"events,omitempty\" graphql:\"events\"" } -func (t *GetGroups_Groups_Edges_Node_Setting) GetVisibility() *enums.Visibility { + +func (t *CreateBulkCSVEvent_CreateBulkCSVEvent) GetEvents() []*CreateBulkCSVEvent_CreateBulkCSVEvent_Events { if t == nil { - t = &GetGroups_Groups_Edges_Node_Setting{} + t = &CreateBulkCSVEvent_CreateBulkCSVEvent{} } - return &t.Visibility + return t.Events } -type GetGroups_Groups_Edges_Node_Members_User struct { - ID string "json:\"id\" graphql:\"id\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +type CreateBulkEvent_CreateBulkEvent_Events_User struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups_Edges_Node_Members_User) GetID() string { +func (t *CreateBulkEvent_CreateBulkEvent_Events_User) GetID() string { if t == nil { - t = &GetGroups_Groups_Edges_Node_Members_User{} + t = &CreateBulkEvent_CreateBulkEvent_Events_User{} } return t.ID } -func (t *GetGroups_Groups_Edges_Node_Members_User) GetFirstName() *string { - if t == nil { - t = &GetGroups_Groups_Edges_Node_Members_User{} - } - return t.FirstName + +type CreateBulkEvent_CreateBulkEvent_Events_Group struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups_Edges_Node_Members_User) GetLastName() *string { + +func (t *CreateBulkEvent_CreateBulkEvent_Events_Group) GetID() string { if t == nil { - t = &GetGroups_Groups_Edges_Node_Members_User{} + t = &CreateBulkEvent_CreateBulkEvent_Events_Group{} } - return t.LastName + return t.ID } -type GetGroups_Groups_Edges_Node_Members struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - User GetGroups_Groups_Edges_Node_Members_User "json:\"user\" graphql:\"user\"" +type CreateBulkEvent_CreateBulkEvent_Events_Integration struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups_Edges_Node_Members) GetID() string { +func (t *CreateBulkEvent_CreateBulkEvent_Events_Integration) GetID() string { if t == nil { - t = &GetGroups_Groups_Edges_Node_Members{} + t = &CreateBulkEvent_CreateBulkEvent_Events_Integration{} } return t.ID } -func (t *GetGroups_Groups_Edges_Node_Members) GetRole() *enums.Role { - if t == nil { - t = &GetGroups_Groups_Edges_Node_Members{} - } - return &t.Role + +type CreateBulkEvent_CreateBulkEvent_Events_Organization struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups_Edges_Node_Members) GetUser() *GetGroups_Groups_Edges_Node_Members_User { + +func (t *CreateBulkEvent_CreateBulkEvent_Events_Organization) GetID() string { if t == nil { - t = &GetGroups_Groups_Edges_Node_Members{} + t = &CreateBulkEvent_CreateBulkEvent_Events_Organization{} } - return &t.User + return t.ID } -type GetGroups_Groups_Edges_Node struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - ID string "json:\"id\" graphql:\"id\"" - LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" - Name string "json:\"name\" graphql:\"name\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Owner *GetGroups_Groups_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Setting GetGroups_Groups_Edges_Node_Setting "json:\"setting\" graphql:\"setting\"" - Members []*GetGroups_Groups_Edges_Node_Members "json:\"members,omitempty\" graphql:\"members\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateBulkEvent_CreateBulkEvent_Events_Invite struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups_Edges_Node) GetDescription() *string { +func (t *CreateBulkEvent_CreateBulkEvent_Events_Invite) GetID() string { if t == nil { - t = &GetGroups_Groups_Edges_Node{} + t = &CreateBulkEvent_CreateBulkEvent_Events_Invite{} } - return t.Description + return t.ID } -func (t *GetGroups_Groups_Edges_Node) GetDisplayName() string { - if t == nil { - t = &GetGroups_Groups_Edges_Node{} - } - return t.DisplayName + +type CreateBulkEvent_CreateBulkEvent_Events_Feature struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups_Edges_Node) GetID() string { + +func (t *CreateBulkEvent_CreateBulkEvent_Events_Feature) GetID() string { if t == nil { - t = &GetGroups_Groups_Edges_Node{} + t = &CreateBulkEvent_CreateBulkEvent_Events_Feature{} } return t.ID } -func (t *GetGroups_Groups_Edges_Node) GetLogoURL() *string { - if t == nil { - t = &GetGroups_Groups_Edges_Node{} - } - return t.LogoURL + +type CreateBulkEvent_CreateBulkEvent_Events_PersonalAccessToken struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups_Edges_Node) GetName() string { + +func (t *CreateBulkEvent_CreateBulkEvent_Events_PersonalAccessToken) GetID() string { if t == nil { - t = &GetGroups_Groups_Edges_Node{} + t = &CreateBulkEvent_CreateBulkEvent_Events_PersonalAccessToken{} } - return t.Name + return t.ID } -func (t *GetGroups_Groups_Edges_Node) GetTags() []string { - if t == nil { - t = &GetGroups_Groups_Edges_Node{} - } - return t.Tags + +type CreateBulkEvent_CreateBulkEvent_Events_Oauth2token struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups_Edges_Node) GetOwner() *GetGroups_Groups_Edges_Node_Owner { + +func (t *CreateBulkEvent_CreateBulkEvent_Events_Oauth2token) GetID() string { if t == nil { - t = &GetGroups_Groups_Edges_Node{} + t = &CreateBulkEvent_CreateBulkEvent_Events_Oauth2token{} } - return t.Owner + return t.ID } -func (t *GetGroups_Groups_Edges_Node) GetSetting() *GetGroups_Groups_Edges_Node_Setting { - if t == nil { - t = &GetGroups_Groups_Edges_Node{} - } - return &t.Setting + +type CreateBulkEvent_CreateBulkEvent_Events_Hush struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups_Edges_Node) GetMembers() []*GetGroups_Groups_Edges_Node_Members { + +func (t *CreateBulkEvent_CreateBulkEvent_Events_Hush) GetID() string { if t == nil { - t = &GetGroups_Groups_Edges_Node{} + t = &CreateBulkEvent_CreateBulkEvent_Events_Hush{} } - return t.Members + return t.ID } -func (t *GetGroups_Groups_Edges_Node) GetCreatedAt() *time.Time { - if t == nil { - t = &GetGroups_Groups_Edges_Node{} - } - return t.CreatedAt + +type CreateBulkEvent_CreateBulkEvent_Events_Orgmembership struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups_Edges_Node) GetCreatedBy() *string { + +func (t *CreateBulkEvent_CreateBulkEvent_Events_Orgmembership) GetID() string { if t == nil { - t = &GetGroups_Groups_Edges_Node{} + t = &CreateBulkEvent_CreateBulkEvent_Events_Orgmembership{} } - return t.CreatedBy + return t.ID } -func (t *GetGroups_Groups_Edges_Node) GetUpdatedAt() *time.Time { - if t == nil { - t = &GetGroups_Groups_Edges_Node{} - } - return t.UpdatedAt + +type CreateBulkEvent_CreateBulkEvent_Events_Groupmembership struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups_Edges_Node) GetUpdatedBy() *string { + +func (t *CreateBulkEvent_CreateBulkEvent_Events_Groupmembership) GetID() string { if t == nil { - t = &GetGroups_Groups_Edges_Node{} + t = &CreateBulkEvent_CreateBulkEvent_Events_Groupmembership{} } - return t.UpdatedBy + return t.ID } -type GetGroups_Groups_Edges struct { - Node *GetGroups_Groups_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateBulkEvent_CreateBulkEvent_Events_Entitlement struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups_Edges) GetNode() *GetGroups_Groups_Edges_Node { +func (t *CreateBulkEvent_CreateBulkEvent_Events_Entitlement) GetID() string { if t == nil { - t = &GetGroups_Groups_Edges{} + t = &CreateBulkEvent_CreateBulkEvent_Events_Entitlement{} } - return t.Node + return t.ID } -type GetGroups_Groups struct { - Edges []*GetGroups_Groups_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateBulkEvent_CreateBulkEvent_Events_Webhook struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroups_Groups) GetEdges() []*GetGroups_Groups_Edges { +func (t *CreateBulkEvent_CreateBulkEvent_Events_Webhook) GetID() string { if t == nil { - t = &GetGroups_Groups{} + t = &CreateBulkEvent_CreateBulkEvent_Events_Webhook{} } - return t.Edges + return t.ID } -type UpdateGroup_UpdateGroup_Group_Owner struct { - ID string "json:\"id\" graphql:\"id\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" +type CreateBulkEvent_CreateBulkEvent_Events struct { + ID string "json:\"id\" graphql:\"id\"" + EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" + CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" + EventType string "json:\"eventType\" graphql:\"eventType\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + User []*CreateBulkEvent_CreateBulkEvent_Events_User "json:\"user,omitempty\" graphql:\"user\"" + Group []*CreateBulkEvent_CreateBulkEvent_Events_Group "json:\"group,omitempty\" graphql:\"group\"" + Integration []*CreateBulkEvent_CreateBulkEvent_Events_Integration "json:\"integration,omitempty\" graphql:\"integration\"" + Organization []*CreateBulkEvent_CreateBulkEvent_Events_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Invite []*CreateBulkEvent_CreateBulkEvent_Events_Invite "json:\"invite,omitempty\" graphql:\"invite\"" + Feature []*CreateBulkEvent_CreateBulkEvent_Events_Feature "json:\"feature,omitempty\" graphql:\"feature\"" + PersonalAccessToken []*CreateBulkEvent_CreateBulkEvent_Events_PersonalAccessToken "json:\"personalAccessToken,omitempty\" graphql:\"personalAccessToken\"" + Oauth2token []*CreateBulkEvent_CreateBulkEvent_Events_Oauth2token "json:\"oauth2token,omitempty\" graphql:\"oauth2token\"" + Hush []*CreateBulkEvent_CreateBulkEvent_Events_Hush "json:\"hush,omitempty\" graphql:\"hush\"" + Orgmembership []*CreateBulkEvent_CreateBulkEvent_Events_Orgmembership "json:\"orgmembership,omitempty\" graphql:\"orgmembership\"" + Groupmembership []*CreateBulkEvent_CreateBulkEvent_Events_Groupmembership "json:\"groupmembership,omitempty\" graphql:\"groupmembership\"" + Entitlement []*CreateBulkEvent_CreateBulkEvent_Events_Entitlement "json:\"entitlement,omitempty\" graphql:\"entitlement\"" + Webhook []*CreateBulkEvent_CreateBulkEvent_Events_Webhook "json:\"webhook,omitempty\" graphql:\"webhook\"" } -func (t *UpdateGroup_UpdateGroup_Group_Owner) GetID() string { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetID() string { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Owner{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } return t.ID } -func (t *UpdateGroup_UpdateGroup_Group_Owner) GetDisplayName() string { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetEventID() *string { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Owner{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.DisplayName -} - -type UpdateGroup_UpdateGroup_Group_Setting struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" + return t.EventID } - -func (t *UpdateGroup_UpdateGroup_Group_Setting) GetCreatedAt() *time.Time { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetCorrelationID() *string { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Setting{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.CreatedAt + return t.CorrelationID } -func (t *UpdateGroup_UpdateGroup_Group_Setting) GetCreatedBy() *string { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetEventType() string { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Setting{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.CreatedBy + return t.EventType } -func (t *UpdateGroup_UpdateGroup_Group_Setting) GetID() string { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetMetadata() map[string]interface{} { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Setting{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.ID + return t.Metadata } -func (t *UpdateGroup_UpdateGroup_Group_Setting) GetJoinPolicy() *enums.JoinPolicy { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetUser() []*CreateBulkEvent_CreateBulkEvent_Events_User { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Setting{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return &t.JoinPolicy + return t.User } -func (t *UpdateGroup_UpdateGroup_Group_Setting) GetSyncToGithub() *bool { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetGroup() []*CreateBulkEvent_CreateBulkEvent_Events_Group { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Setting{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.SyncToGithub + return t.Group } -func (t *UpdateGroup_UpdateGroup_Group_Setting) GetSyncToSlack() *bool { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetIntegration() []*CreateBulkEvent_CreateBulkEvent_Events_Integration { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Setting{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.SyncToSlack + return t.Integration } -func (t *UpdateGroup_UpdateGroup_Group_Setting) GetTags() []string { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetOrganization() []*CreateBulkEvent_CreateBulkEvent_Events_Organization { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Setting{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.Tags + return t.Organization } -func (t *UpdateGroup_UpdateGroup_Group_Setting) GetUpdatedAt() *time.Time { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetInvite() []*CreateBulkEvent_CreateBulkEvent_Events_Invite { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Setting{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.UpdatedAt + return t.Invite } -func (t *UpdateGroup_UpdateGroup_Group_Setting) GetUpdatedBy() *string { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetFeature() []*CreateBulkEvent_CreateBulkEvent_Events_Feature { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Setting{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.UpdatedBy + return t.Feature } -func (t *UpdateGroup_UpdateGroup_Group_Setting) GetVisibility() *enums.Visibility { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetPersonalAccessToken() []*CreateBulkEvent_CreateBulkEvent_Events_PersonalAccessToken { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Setting{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return &t.Visibility -} - -type UpdateGroup_UpdateGroup_Group_Members_User struct { - ID string "json:\"id\" graphql:\"id\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + return t.PersonalAccessToken } - -func (t *UpdateGroup_UpdateGroup_Group_Members_User) GetID() string { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetOauth2token() []*CreateBulkEvent_CreateBulkEvent_Events_Oauth2token { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Members_User{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.ID + return t.Oauth2token } -func (t *UpdateGroup_UpdateGroup_Group_Members_User) GetFirstName() *string { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetHush() []*CreateBulkEvent_CreateBulkEvent_Events_Hush { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Members_User{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.FirstName + return t.Hush } -func (t *UpdateGroup_UpdateGroup_Group_Members_User) GetLastName() *string { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetOrgmembership() []*CreateBulkEvent_CreateBulkEvent_Events_Orgmembership { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Members_User{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.LastName -} - -type UpdateGroup_UpdateGroup_Group_Members struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - User UpdateGroup_UpdateGroup_Group_Members_User "json:\"user\" graphql:\"user\"" + return t.Orgmembership } - -func (t *UpdateGroup_UpdateGroup_Group_Members) GetID() string { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetGroupmembership() []*CreateBulkEvent_CreateBulkEvent_Events_Groupmembership { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Members{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return t.ID + return t.Groupmembership } -func (t *UpdateGroup_UpdateGroup_Group_Members) GetRole() *enums.Role { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetEntitlement() []*CreateBulkEvent_CreateBulkEvent_Events_Entitlement { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Members{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return &t.Role + return t.Entitlement } -func (t *UpdateGroup_UpdateGroup_Group_Members) GetUser() *UpdateGroup_UpdateGroup_Group_Members_User { +func (t *CreateBulkEvent_CreateBulkEvent_Events) GetWebhook() []*CreateBulkEvent_CreateBulkEvent_Events_Webhook { if t == nil { - t = &UpdateGroup_UpdateGroup_Group_Members{} + t = &CreateBulkEvent_CreateBulkEvent_Events{} } - return &t.User + return t.Webhook } -type UpdateGroup_UpdateGroup_Group struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - ID string "json:\"id\" graphql:\"id\"" - LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" - Name string "json:\"name\" graphql:\"name\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Owner *UpdateGroup_UpdateGroup_Group_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Setting UpdateGroup_UpdateGroup_Group_Setting "json:\"setting\" graphql:\"setting\"" - Members []*UpdateGroup_UpdateGroup_Group_Members "json:\"members,omitempty\" graphql:\"members\"" +type CreateBulkEvent_CreateBulkEvent struct { + Events []*CreateBulkEvent_CreateBulkEvent_Events "json:\"events,omitempty\" graphql:\"events\"" } -func (t *UpdateGroup_UpdateGroup_Group) GetDescription() *string { +func (t *CreateBulkEvent_CreateBulkEvent) GetEvents() []*CreateBulkEvent_CreateBulkEvent_Events { if t == nil { - t = &UpdateGroup_UpdateGroup_Group{} + t = &CreateBulkEvent_CreateBulkEvent{} } - return t.Description + return t.Events } -func (t *UpdateGroup_UpdateGroup_Group) GetDisplayName() string { - if t == nil { - t = &UpdateGroup_UpdateGroup_Group{} - } - return t.DisplayName + +type CreateEvent_CreateEvent_Event_User struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateGroup_UpdateGroup_Group) GetID() string { + +func (t *CreateEvent_CreateEvent_Event_User) GetID() string { if t == nil { - t = &UpdateGroup_UpdateGroup_Group{} + t = &CreateEvent_CreateEvent_Event_User{} } return t.ID } -func (t *UpdateGroup_UpdateGroup_Group) GetLogoURL() *string { - if t == nil { - t = &UpdateGroup_UpdateGroup_Group{} - } - return t.LogoURL + +type CreateEvent_CreateEvent_Event_Group struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateGroup_UpdateGroup_Group) GetName() string { + +func (t *CreateEvent_CreateEvent_Event_Group) GetID() string { if t == nil { - t = &UpdateGroup_UpdateGroup_Group{} + t = &CreateEvent_CreateEvent_Event_Group{} } - return t.Name + return t.ID } -func (t *UpdateGroup_UpdateGroup_Group) GetTags() []string { - if t == nil { - t = &UpdateGroup_UpdateGroup_Group{} - } - return t.Tags + +type CreateEvent_CreateEvent_Event_Integration struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateGroup_UpdateGroup_Group) GetOwner() *UpdateGroup_UpdateGroup_Group_Owner { + +func (t *CreateEvent_CreateEvent_Event_Integration) GetID() string { if t == nil { - t = &UpdateGroup_UpdateGroup_Group{} + t = &CreateEvent_CreateEvent_Event_Integration{} } - return t.Owner + return t.ID } -func (t *UpdateGroup_UpdateGroup_Group) GetSetting() *UpdateGroup_UpdateGroup_Group_Setting { - if t == nil { - t = &UpdateGroup_UpdateGroup_Group{} - } - return &t.Setting + +type CreateEvent_CreateEvent_Event_Organization struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateGroup_UpdateGroup_Group) GetMembers() []*UpdateGroup_UpdateGroup_Group_Members { + +func (t *CreateEvent_CreateEvent_Event_Organization) GetID() string { if t == nil { - t = &UpdateGroup_UpdateGroup_Group{} + t = &CreateEvent_CreateEvent_Event_Organization{} } - return t.Members + return t.ID } -type UpdateGroup_UpdateGroup struct { - Group UpdateGroup_UpdateGroup_Group "json:\"group\" graphql:\"group\"" +type CreateEvent_CreateEvent_Event_Invite struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateGroup_UpdateGroup) GetGroup() *UpdateGroup_UpdateGroup_Group { +func (t *CreateEvent_CreateEvent_Event_Invite) GetID() string { if t == nil { - t = &UpdateGroup_UpdateGroup{} + t = &CreateEvent_CreateEvent_Event_Invite{} } - return &t.Group + return t.ID } -type GetAllGroupHistories_GroupHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - GravatarLogoURL *string "json:\"gravatarLogoURL,omitempty\" graphql:\"gravatarLogoURL\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateEvent_CreateEvent_Event_Feature struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateEvent_CreateEvent_Event_Feature) GetID() string { if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event_Feature{} } - return t.CreatedAt + return t.ID } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetCreatedBy() *string { - if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} - } - return t.CreatedBy + +type CreateEvent_CreateEvent_Event_PersonalAccessToken struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetDescription() *string { + +func (t *CreateEvent_CreateEvent_Event_PersonalAccessToken) GetID() string { if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event_PersonalAccessToken{} } - return t.Description + return t.ID } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetDisplayName() string { - if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} - } - return t.DisplayName + +type CreateEvent_CreateEvent_Event_Oauth2token struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetGravatarLogoURL() *string { + +func (t *CreateEvent_CreateEvent_Event_Oauth2token) GetID() string { if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event_Oauth2token{} } - return t.GravatarLogoURL + return t.ID } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetHistoryTime() *time.Time { - if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} - } - return &t.HistoryTime + +type CreateEvent_CreateEvent_Event_Hush struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetID() string { + +func (t *CreateEvent_CreateEvent_Event_Hush) GetID() string { if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event_Hush{} } return t.ID } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetLogoURL() *string { - if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} - } - return t.LogoURL + +type CreateEvent_CreateEvent_Event_Orgmembership struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetName() string { + +func (t *CreateEvent_CreateEvent_Event_Orgmembership) GetID() string { if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event_Orgmembership{} } - return t.Name + return t.ID } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetOperation() *history.OpType { - if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} - } - return &t.Operation + +type CreateEvent_CreateEvent_Event_Groupmembership struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetOwnerID() *string { + +func (t *CreateEvent_CreateEvent_Event_Groupmembership) GetID() string { if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event_Groupmembership{} } - return t.OwnerID + return t.ID } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetRef() *string { - if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} - } - return t.Ref + +type CreateEvent_CreateEvent_Event_Entitlement struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetTags() []string { + +func (t *CreateEvent_CreateEvent_Event_Entitlement) GetID() string { if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event_Entitlement{} } - return t.Tags + return t.ID } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetUpdatedAt() *time.Time { - if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} - } - return t.UpdatedAt + +type CreateEvent_CreateEvent_Event_Webhook struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetUpdatedBy() *string { + +func (t *CreateEvent_CreateEvent_Event_Webhook) GetID() string { if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event_Webhook{} } - return t.UpdatedBy + return t.ID } -type GetAllGroupHistories_GroupHistories_Edges struct { - Node *GetAllGroupHistories_GroupHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateEvent_CreateEvent_Event struct { + ID string "json:\"id\" graphql:\"id\"" + EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" + CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" + EventType string "json:\"eventType\" graphql:\"eventType\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + User []*CreateEvent_CreateEvent_Event_User "json:\"user,omitempty\" graphql:\"user\"" + Group []*CreateEvent_CreateEvent_Event_Group "json:\"group,omitempty\" graphql:\"group\"" + Integration []*CreateEvent_CreateEvent_Event_Integration "json:\"integration,omitempty\" graphql:\"integration\"" + Organization []*CreateEvent_CreateEvent_Event_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Invite []*CreateEvent_CreateEvent_Event_Invite "json:\"invite,omitempty\" graphql:\"invite\"" + Feature []*CreateEvent_CreateEvent_Event_Feature "json:\"feature,omitempty\" graphql:\"feature\"" + PersonalAccessToken []*CreateEvent_CreateEvent_Event_PersonalAccessToken "json:\"personalAccessToken,omitempty\" graphql:\"personalAccessToken\"" + Oauth2token []*CreateEvent_CreateEvent_Event_Oauth2token "json:\"oauth2token,omitempty\" graphql:\"oauth2token\"" + Hush []*CreateEvent_CreateEvent_Event_Hush "json:\"hush,omitempty\" graphql:\"hush\"" + Orgmembership []*CreateEvent_CreateEvent_Event_Orgmembership "json:\"orgmembership,omitempty\" graphql:\"orgmembership\"" + Groupmembership []*CreateEvent_CreateEvent_Event_Groupmembership "json:\"groupmembership,omitempty\" graphql:\"groupmembership\"" + Entitlement []*CreateEvent_CreateEvent_Event_Entitlement "json:\"entitlement,omitempty\" graphql:\"entitlement\"" + Webhook []*CreateEvent_CreateEvent_Event_Webhook "json:\"webhook,omitempty\" graphql:\"webhook\"" } -func (t *GetAllGroupHistories_GroupHistories_Edges) GetNode() *GetAllGroupHistories_GroupHistories_Edges_Node { +func (t *CreateEvent_CreateEvent_Event) GetID() string { if t == nil { - t = &GetAllGroupHistories_GroupHistories_Edges{} + t = &CreateEvent_CreateEvent_Event{} } - return t.Node -} - -type GetAllGroupHistories_GroupHistories struct { - Edges []*GetAllGroupHistories_GroupHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.ID } - -func (t *GetAllGroupHistories_GroupHistories) GetEdges() []*GetAllGroupHistories_GroupHistories_Edges { +func (t *CreateEvent_CreateEvent_Event) GetEventID() *string { if t == nil { - t = &GetAllGroupHistories_GroupHistories{} + t = &CreateEvent_CreateEvent_Event{} } - return t.Edges + return t.EventID } - -type GetGroupHistories_GroupHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - GravatarLogoURL *string "json:\"gravatarLogoURL,omitempty\" graphql:\"gravatarLogoURL\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +func (t *CreateEvent_CreateEvent_Event) GetCorrelationID() *string { + if t == nil { + t = &CreateEvent_CreateEvent_Event{} + } + return t.CorrelationID } - -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateEvent_CreateEvent_Event) GetEventType() string { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.CreatedAt + return t.EventType } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetCreatedBy() *string { +func (t *CreateEvent_CreateEvent_Event) GetMetadata() map[string]interface{} { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.CreatedBy + return t.Metadata } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetDescription() *string { +func (t *CreateEvent_CreateEvent_Event) GetUser() []*CreateEvent_CreateEvent_Event_User { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.Description + return t.User } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetDisplayName() string { +func (t *CreateEvent_CreateEvent_Event) GetGroup() []*CreateEvent_CreateEvent_Event_Group { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.DisplayName + return t.Group } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetGravatarLogoURL() *string { +func (t *CreateEvent_CreateEvent_Event) GetIntegration() []*CreateEvent_CreateEvent_Event_Integration { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.GravatarLogoURL + return t.Integration } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateEvent_CreateEvent_Event) GetOrganization() []*CreateEvent_CreateEvent_Event_Organization { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return &t.HistoryTime + return t.Organization } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetID() string { +func (t *CreateEvent_CreateEvent_Event) GetInvite() []*CreateEvent_CreateEvent_Event_Invite { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.ID + return t.Invite } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetLogoURL() *string { +func (t *CreateEvent_CreateEvent_Event) GetFeature() []*CreateEvent_CreateEvent_Event_Feature { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.LogoURL + return t.Feature } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetName() string { +func (t *CreateEvent_CreateEvent_Event) GetPersonalAccessToken() []*CreateEvent_CreateEvent_Event_PersonalAccessToken { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.Name + return t.PersonalAccessToken } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetOperation() *history.OpType { +func (t *CreateEvent_CreateEvent_Event) GetOauth2token() []*CreateEvent_CreateEvent_Event_Oauth2token { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return &t.Operation + return t.Oauth2token } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetOwnerID() *string { +func (t *CreateEvent_CreateEvent_Event) GetHush() []*CreateEvent_CreateEvent_Event_Hush { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.OwnerID + return t.Hush } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetRef() *string { +func (t *CreateEvent_CreateEvent_Event) GetOrgmembership() []*CreateEvent_CreateEvent_Event_Orgmembership { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.Ref + return t.Orgmembership } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetTags() []string { +func (t *CreateEvent_CreateEvent_Event) GetGroupmembership() []*CreateEvent_CreateEvent_Event_Groupmembership { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.Tags + return t.Groupmembership } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateEvent_CreateEvent_Event) GetEntitlement() []*CreateEvent_CreateEvent_Event_Entitlement { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.UpdatedAt + return t.Entitlement } -func (t *GetGroupHistories_GroupHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateEvent_CreateEvent_Event) GetWebhook() []*CreateEvent_CreateEvent_Event_Webhook { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges_Node{} + t = &CreateEvent_CreateEvent_Event{} } - return t.UpdatedBy + return t.Webhook } -type GetGroupHistories_GroupHistories_Edges struct { - Node *GetGroupHistories_GroupHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateEvent_CreateEvent struct { + Event CreateEvent_CreateEvent_Event "json:\"event\" graphql:\"event\"" } -func (t *GetGroupHistories_GroupHistories_Edges) GetNode() *GetGroupHistories_GroupHistories_Edges_Node { +func (t *CreateEvent_CreateEvent) GetEvent() *CreateEvent_CreateEvent_Event { if t == nil { - t = &GetGroupHistories_GroupHistories_Edges{} + t = &CreateEvent_CreateEvent{} } - return t.Node + return &t.Event } -type GetGroupHistories_GroupHistories struct { - Edges []*GetGroupHistories_GroupHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type DeleteEvent_DeleteEvent struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetGroupHistories_GroupHistories) GetEdges() []*GetGroupHistories_GroupHistories_Edges { +func (t *DeleteEvent_DeleteEvent) GetDeletedID() string { if t == nil { - t = &GetGroupHistories_GroupHistories{} + t = &DeleteEvent_DeleteEvent{} } - return t.Edges + return t.DeletedID } -type AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetAllEvents_Events_Edges_Node_User struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group) GetID() string { +func (t *GetAllEvents_Events_Edges_Node_User) GetID() string { if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group{} + t = &GetAllEvents_Events_Edges_Node_User{} } return t.ID } -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group) GetName() string { + +type GetAllEvents_Events_Edges_Node_Group struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetAllEvents_Events_Edges_Node_Group) GetID() string { if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group{} + t = &GetAllEvents_Events_Edges_Node_Group{} } - return t.Name + return t.ID } -type AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User struct { - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - ID string "json:\"id\" graphql:\"id\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +type GetAllEvents_Events_Edges_Node_Integration struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User) GetDisplayName() string { +func (t *GetAllEvents_Events_Edges_Node_Integration) GetID() string { if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User{} + t = &GetAllEvents_Events_Edges_Node_Integration{} } - return t.DisplayName + return t.ID } -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User) GetEmail() string { + +type GetAllEvents_Events_Edges_Node_Organization struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetAllEvents_Events_Edges_Node_Organization) GetID() string { if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User{} + t = &GetAllEvents_Events_Edges_Node_Organization{} } - return t.Email + return t.ID } -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User) GetFirstName() *string { + +type GetAllEvents_Events_Edges_Node_Invite struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetAllEvents_Events_Edges_Node_Invite) GetID() string { if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User{} + t = &GetAllEvents_Events_Edges_Node_Invite{} } - return t.FirstName + return t.ID } -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User) GetID() string { - if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User{} - } - return t.ID + +type GetAllEvents_Events_Edges_Node_Feature struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User) GetLastName() *string { + +func (t *GetAllEvents_Events_Edges_Node_Feature) GetID() string { if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User{} + t = &GetAllEvents_Events_Edges_Node_Feature{} } - return t.LastName + return t.ID } -type AddUserToGroupWithRole_CreateGroupMembership_GroupMembership struct { - GroupID string "json:\"groupID\" graphql:\"groupID\"" - Group AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group "json:\"group\" graphql:\"group\"" - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UserID string "json:\"userID\" graphql:\"userID\"" - User AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User "json:\"user\" graphql:\"user\"" +type GetAllEvents_Events_Edges_Node_PersonalAccessToken struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership) GetGroupID() string { +func (t *GetAllEvents_Events_Edges_Node_PersonalAccessToken) GetID() string { if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership{} + t = &GetAllEvents_Events_Edges_Node_PersonalAccessToken{} } - return t.GroupID + return t.ID } -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership) GetGroup() *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group { - if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership{} - } - return &t.Group + +type GetAllEvents_Events_Edges_Node_Oauth2token struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership) GetID() string { + +func (t *GetAllEvents_Events_Edges_Node_Oauth2token) GetID() string { if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership{} + t = &GetAllEvents_Events_Edges_Node_Oauth2token{} } return t.ID } -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership) GetRole() *enums.Role { - if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership{} - } - return &t.Role -} -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership) GetUserID() string { - if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership{} - } - return t.UserID + +type GetAllEvents_Events_Edges_Node_Hush struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership) GetUser() *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User { + +func (t *GetAllEvents_Events_Edges_Node_Hush) GetID() string { if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership{} + t = &GetAllEvents_Events_Edges_Node_Hush{} } - return &t.User + return t.ID } -type AddUserToGroupWithRole_CreateGroupMembership struct { - GroupMembership AddUserToGroupWithRole_CreateGroupMembership_GroupMembership "json:\"groupMembership\" graphql:\"groupMembership\"" +type GetAllEvents_Events_Edges_Node_Orgmembership struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *AddUserToGroupWithRole_CreateGroupMembership) GetGroupMembership() *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership { +func (t *GetAllEvents_Events_Edges_Node_Orgmembership) GetID() string { if t == nil { - t = &AddUserToGroupWithRole_CreateGroupMembership{} + t = &GetAllEvents_Events_Edges_Node_Orgmembership{} } - return &t.GroupMembership + return t.ID } -type CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetAllEvents_Events_Edges_Node_Groupmembership struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group) GetID() string { +func (t *GetAllEvents_Events_Edges_Node_Groupmembership) GetID() string { if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group{} + t = &GetAllEvents_Events_Edges_Node_Groupmembership{} } return t.ID } -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group) GetName() string { - if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group{} - } - return t.Name -} -type CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User struct { - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - ID string "json:\"id\" graphql:\"id\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +type GetAllEvents_Events_Edges_Node_Entitlement struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User) GetDisplayName() string { +func (t *GetAllEvents_Events_Edges_Node_Entitlement) GetID() string { if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User{} + t = &GetAllEvents_Events_Edges_Node_Entitlement{} } - return t.DisplayName + return t.ID } -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User) GetEmail() string { - if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User{} - } - return t.Email + +type GetAllEvents_Events_Edges_Node_Webhook struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User) GetFirstName() *string { + +func (t *GetAllEvents_Events_Edges_Node_Webhook) GetID() string { if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User{} + t = &GetAllEvents_Events_Edges_Node_Webhook{} } - return t.FirstName + return t.ID } -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User) GetID() string { + +type GetAllEvents_Events_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" + CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" + EventType string "json:\"eventType\" graphql:\"eventType\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + User []*GetAllEvents_Events_Edges_Node_User "json:\"user,omitempty\" graphql:\"user\"" + Group []*GetAllEvents_Events_Edges_Node_Group "json:\"group,omitempty\" graphql:\"group\"" + Integration []*GetAllEvents_Events_Edges_Node_Integration "json:\"integration,omitempty\" graphql:\"integration\"" + Organization []*GetAllEvents_Events_Edges_Node_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Invite []*GetAllEvents_Events_Edges_Node_Invite "json:\"invite,omitempty\" graphql:\"invite\"" + Feature []*GetAllEvents_Events_Edges_Node_Feature "json:\"feature,omitempty\" graphql:\"feature\"" + PersonalAccessToken []*GetAllEvents_Events_Edges_Node_PersonalAccessToken "json:\"personalAccessToken,omitempty\" graphql:\"personalAccessToken\"" + Oauth2token []*GetAllEvents_Events_Edges_Node_Oauth2token "json:\"oauth2token,omitempty\" graphql:\"oauth2token\"" + Hush []*GetAllEvents_Events_Edges_Node_Hush "json:\"hush,omitempty\" graphql:\"hush\"" + Orgmembership []*GetAllEvents_Events_Edges_Node_Orgmembership "json:\"orgmembership,omitempty\" graphql:\"orgmembership\"" + Groupmembership []*GetAllEvents_Events_Edges_Node_Groupmembership "json:\"groupmembership,omitempty\" graphql:\"groupmembership\"" + Entitlement []*GetAllEvents_Events_Edges_Node_Entitlement "json:\"entitlement,omitempty\" graphql:\"entitlement\"" + Webhook []*GetAllEvents_Events_Edges_Node_Webhook "json:\"webhook,omitempty\" graphql:\"webhook\"" +} + +func (t *GetAllEvents_Events_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User{} + t = &GetAllEvents_Events_Edges_Node{} } return t.ID } -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User) GetLastName() *string { +func (t *GetAllEvents_Events_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.LastName -} - -type CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships struct { - GroupID string "json:\"groupID\" graphql:\"groupID\"" - Group CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group "json:\"group\" graphql:\"group\"" - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UserID string "json:\"userID\" graphql:\"userID\"" - User CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User "json:\"user\" graphql:\"user\"" + return t.CreatedAt } - -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships) GetGroupID() string { +func (t *GetAllEvents_Events_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.GroupID + return t.UpdatedAt } -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships) GetGroup() *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group { +func (t *GetAllEvents_Events_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships{} + t = &GetAllEvents_Events_Edges_Node{} } - return &t.Group + return t.CreatedBy } -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships) GetID() string { +func (t *GetAllEvents_Events_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.ID + return t.UpdatedBy } -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships) GetRole() *enums.Role { +func (t *GetAllEvents_Events_Edges_Node) GetEventID() *string { if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships{} + t = &GetAllEvents_Events_Edges_Node{} } - return &t.Role + return t.EventID } -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships) GetUserID() string { +func (t *GetAllEvents_Events_Edges_Node) GetCorrelationID() *string { if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.UserID + return t.CorrelationID } -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships) GetUser() *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User { +func (t *GetAllEvents_Events_Edges_Node) GetEventType() string { if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships{} + t = &GetAllEvents_Events_Edges_Node{} } - return &t.User -} - -type CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership struct { - GroupMemberships []*CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships "json:\"groupMemberships,omitempty\" graphql:\"groupMemberships\"" + return t.EventType } - -func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership) GetGroupMemberships() []*CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships { +func (t *GetAllEvents_Events_Edges_Node) GetMetadata() map[string]interface{} { if t == nil { - t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.GroupMemberships -} - -type CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.Metadata } - -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group) GetID() string { +func (t *GetAllEvents_Events_Edges_Node) GetUser() []*GetAllEvents_Events_Edges_Node_User { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.ID + return t.User } -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group) GetName() string { +func (t *GetAllEvents_Events_Edges_Node) GetGroup() []*GetAllEvents_Events_Edges_Node_Group { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.Name -} - -type CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User struct { - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - ID string "json:\"id\" graphql:\"id\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + return t.Group } - -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User) GetDisplayName() string { +func (t *GetAllEvents_Events_Edges_Node) GetIntegration() []*GetAllEvents_Events_Edges_Node_Integration { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.DisplayName + return t.Integration } -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User) GetEmail() string { +func (t *GetAllEvents_Events_Edges_Node) GetOrganization() []*GetAllEvents_Events_Edges_Node_Organization { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.Email + return t.Organization } -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User) GetFirstName() *string { +func (t *GetAllEvents_Events_Edges_Node) GetInvite() []*GetAllEvents_Events_Edges_Node_Invite { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.FirstName + return t.Invite } -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User) GetID() string { +func (t *GetAllEvents_Events_Edges_Node) GetFeature() []*GetAllEvents_Events_Edges_Node_Feature { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.ID + return t.Feature } -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User) GetLastName() *string { +func (t *GetAllEvents_Events_Edges_Node) GetPersonalAccessToken() []*GetAllEvents_Events_Edges_Node_PersonalAccessToken { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.LastName -} - -type CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships struct { - GroupID string "json:\"groupID\" graphql:\"groupID\"" - Group CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group "json:\"group\" graphql:\"group\"" - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UserID string "json:\"userID\" graphql:\"userID\"" - User CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User "json:\"user\" graphql:\"user\"" + return t.PersonalAccessToken } - -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships) GetGroupID() string { +func (t *GetAllEvents_Events_Edges_Node) GetOauth2token() []*GetAllEvents_Events_Edges_Node_Oauth2token { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.GroupID + return t.Oauth2token } -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships) GetGroup() *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group { +func (t *GetAllEvents_Events_Edges_Node) GetHush() []*GetAllEvents_Events_Edges_Node_Hush { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships{} + t = &GetAllEvents_Events_Edges_Node{} } - return &t.Group + return t.Hush } -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships) GetID() string { +func (t *GetAllEvents_Events_Edges_Node) GetOrgmembership() []*GetAllEvents_Events_Edges_Node_Orgmembership { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.ID + return t.Orgmembership } -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships) GetRole() *enums.Role { +func (t *GetAllEvents_Events_Edges_Node) GetGroupmembership() []*GetAllEvents_Events_Edges_Node_Groupmembership { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships{} + t = &GetAllEvents_Events_Edges_Node{} } - return &t.Role + return t.Groupmembership } -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships) GetUserID() string { +func (t *GetAllEvents_Events_Edges_Node) GetEntitlement() []*GetAllEvents_Events_Edges_Node_Entitlement { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships{} + t = &GetAllEvents_Events_Edges_Node{} } - return t.UserID + return t.Entitlement } -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships) GetUser() *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User { +func (t *GetAllEvents_Events_Edges_Node) GetWebhook() []*GetAllEvents_Events_Edges_Node_Webhook { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships{} + t = &GetAllEvents_Events_Edges_Node{} } - return &t.User + return t.Webhook } -type CreateBulkGroupMembers_CreateBulkGroupMembership struct { - GroupMemberships []*CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships "json:\"groupMemberships,omitempty\" graphql:\"groupMemberships\"" +type GetAllEvents_Events_Edges struct { + Node *GetAllEvents_Events_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkGroupMembers_CreateBulkGroupMembership) GetGroupMemberships() []*CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships { +func (t *GetAllEvents_Events_Edges) GetNode() *GetAllEvents_Events_Edges_Node { if t == nil { - t = &CreateBulkGroupMembers_CreateBulkGroupMembership{} + t = &GetAllEvents_Events_Edges{} } - return t.GroupMemberships + return t.Node } -type GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetAllEvents_Events struct { + Edges []*GetAllEvents_Events_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group) GetID() string { - if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group{} - } - return t.ID -} -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group) GetName() string { +func (t *GetAllEvents_Events) GetEdges() []*GetAllEvents_Events_Edges { if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group{} + t = &GetAllEvents_Events{} } - return t.Name + return t.Edges } -type GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User struct { - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - ID string "json:\"id\" graphql:\"id\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +type GetEventByID_Event_User struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User) GetDisplayName() string { - if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User{} - } - return t.DisplayName -} -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User) GetEmail() string { +func (t *GetEventByID_Event_User) GetID() string { if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User{} + t = &GetEventByID_Event_User{} } - return t.Email + return t.ID } -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User) GetFirstName() *string { - if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User{} - } - return t.FirstName + +type GetEventByID_Event_Group struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User) GetID() string { + +func (t *GetEventByID_Event_Group) GetID() string { if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User{} + t = &GetEventByID_Event_Group{} } return t.ID } -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User) GetLastName() *string { - if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User{} - } - return t.LastName -} -type GetGroupMembersByGroupID_GroupMemberships_Edges_Node struct { - GroupID string "json:\"groupID\" graphql:\"groupID\"" - Group GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group "json:\"group\" graphql:\"group\"" - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UserID string "json:\"userID\" graphql:\"userID\"" - User GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User "json:\"user\" graphql:\"user\"" +type GetEventByID_Event_Integration struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node) GetGroupID() string { +func (t *GetEventByID_Event_Integration) GetID() string { if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node{} + t = &GetEventByID_Event_Integration{} } - return t.GroupID + return t.ID } -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node) GetGroup() *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group { - if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node{} - } - return &t.Group + +type GetEventByID_Event_Organization struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node) GetID() string { + +func (t *GetEventByID_Event_Organization) GetID() string { if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node{} + t = &GetEventByID_Event_Organization{} } return t.ID } -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node) GetRole() *enums.Role { - if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node{} - } - return &t.Role + +type GetEventByID_Event_Invite struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node) GetUserID() string { + +func (t *GetEventByID_Event_Invite) GetID() string { if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node{} + t = &GetEventByID_Event_Invite{} } - return t.UserID + return t.ID } -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node) GetUser() *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User { + +type GetEventByID_Event_Feature struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetEventByID_Event_Feature) GetID() string { if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node{} + t = &GetEventByID_Event_Feature{} } - return &t.User + return t.ID } -type GetGroupMembersByGroupID_GroupMemberships_Edges struct { - Node *GetGroupMembersByGroupID_GroupMemberships_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetEventByID_Event_PersonalAccessToken struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupMembersByGroupID_GroupMemberships_Edges) GetNode() *GetGroupMembersByGroupID_GroupMemberships_Edges_Node { +func (t *GetEventByID_Event_PersonalAccessToken) GetID() string { if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships_Edges{} + t = &GetEventByID_Event_PersonalAccessToken{} } - return t.Node + return t.ID } -type GetGroupMembersByGroupID_GroupMemberships struct { - Edges []*GetGroupMembersByGroupID_GroupMemberships_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetEventByID_Event_Oauth2token struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupMembersByGroupID_GroupMemberships) GetEdges() []*GetGroupMembersByGroupID_GroupMemberships_Edges { +func (t *GetEventByID_Event_Oauth2token) GetID() string { if t == nil { - t = &GetGroupMembersByGroupID_GroupMemberships{} + t = &GetEventByID_Event_Oauth2token{} } - return t.Edges + return t.ID } -type RemoveUserFromGroup_DeleteGroupMembership struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type GetEventByID_Event_Hush struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *RemoveUserFromGroup_DeleteGroupMembership) GetDeletedID() string { +func (t *GetEventByID_Event_Hush) GetID() string { if t == nil { - t = &RemoveUserFromGroup_DeleteGroupMembership{} + t = &GetEventByID_Event_Hush{} } - return t.DeletedID + return t.ID } -type UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetEventByID_Event_Orgmembership struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group) GetID() string { +func (t *GetEventByID_Event_Orgmembership) GetID() string { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group{} + t = &GetEventByID_Event_Orgmembership{} } return t.ID } -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group) GetName() string { + +type GetEventByID_Event_Groupmembership struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetEventByID_Event_Groupmembership) GetID() string { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group{} + t = &GetEventByID_Event_Groupmembership{} } - return t.Name + return t.ID } -type UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User struct { - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - ID string "json:\"id\" graphql:\"id\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +type GetEventByID_Event_Entitlement struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User) GetDisplayName() string { +func (t *GetEventByID_Event_Entitlement) GetID() string { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User{} + t = &GetEventByID_Event_Entitlement{} } - return t.DisplayName + return t.ID } -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User) GetEmail() string { - if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User{} - } - return t.Email + +type GetEventByID_Event_Webhook struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User) GetFirstName() *string { + +func (t *GetEventByID_Event_Webhook) GetID() string { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User{} + t = &GetEventByID_Event_Webhook{} } - return t.FirstName + return t.ID } -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User) GetID() string { + +type GetEventByID_Event struct { + ID string "json:\"id\" graphql:\"id\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" + CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" + EventType string "json:\"eventType\" graphql:\"eventType\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + User []*GetEventByID_Event_User "json:\"user,omitempty\" graphql:\"user\"" + Group []*GetEventByID_Event_Group "json:\"group,omitempty\" graphql:\"group\"" + Integration []*GetEventByID_Event_Integration "json:\"integration,omitempty\" graphql:\"integration\"" + Organization []*GetEventByID_Event_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Invite []*GetEventByID_Event_Invite "json:\"invite,omitempty\" graphql:\"invite\"" + Feature []*GetEventByID_Event_Feature "json:\"feature,omitempty\" graphql:\"feature\"" + PersonalAccessToken []*GetEventByID_Event_PersonalAccessToken "json:\"personalAccessToken,omitempty\" graphql:\"personalAccessToken\"" + Oauth2token []*GetEventByID_Event_Oauth2token "json:\"oauth2token,omitempty\" graphql:\"oauth2token\"" + Hush []*GetEventByID_Event_Hush "json:\"hush,omitempty\" graphql:\"hush\"" + Orgmembership []*GetEventByID_Event_Orgmembership "json:\"orgmembership,omitempty\" graphql:\"orgmembership\"" + Groupmembership []*GetEventByID_Event_Groupmembership "json:\"groupmembership,omitempty\" graphql:\"groupmembership\"" + Entitlement []*GetEventByID_Event_Entitlement "json:\"entitlement,omitempty\" graphql:\"entitlement\"" + Webhook []*GetEventByID_Event_Webhook "json:\"webhook,omitempty\" graphql:\"webhook\"" +} + +func (t *GetEventByID_Event) GetID() string { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User{} + t = &GetEventByID_Event{} } return t.ID } -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User) GetLastName() *string { +func (t *GetEventByID_Event) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User{} + t = &GetEventByID_Event{} } - return t.LastName -} - -type UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership struct { - GroupID string "json:\"groupID\" graphql:\"groupID\"" - Group UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group "json:\"group\" graphql:\"group\"" - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UserID string "json:\"userID\" graphql:\"userID\"" - User UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User "json:\"user\" graphql:\"user\"" + return t.CreatedAt } - -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership) GetGroupID() string { +func (t *GetEventByID_Event) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership{} + t = &GetEventByID_Event{} } - return t.GroupID + return t.UpdatedAt } -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership) GetGroup() *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group { +func (t *GetEventByID_Event) GetCreatedBy() *string { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership{} + t = &GetEventByID_Event{} } - return &t.Group + return t.CreatedBy } -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership) GetID() string { +func (t *GetEventByID_Event) GetUpdatedBy() *string { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership{} + t = &GetEventByID_Event{} } - return t.ID + return t.UpdatedBy } -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership) GetRole() *enums.Role { +func (t *GetEventByID_Event) GetEventID() *string { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership{} + t = &GetEventByID_Event{} } - return &t.Role + return t.EventID } -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership) GetUserID() string { +func (t *GetEventByID_Event) GetCorrelationID() *string { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership{} + t = &GetEventByID_Event{} } - return t.UserID + return t.CorrelationID } -func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership) GetUser() *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User { +func (t *GetEventByID_Event) GetEventType() string { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership{} + t = &GetEventByID_Event{} } - return &t.User -} - -type UpdateUserRoleInGroup_UpdateGroupMembership struct { - GroupMembership UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership "json:\"groupMembership\" graphql:\"groupMembership\"" + return t.EventType } - -func (t *UpdateUserRoleInGroup_UpdateGroupMembership) GetGroupMembership() *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership { +func (t *GetEventByID_Event) GetMetadata() map[string]interface{} { if t == nil { - t = &UpdateUserRoleInGroup_UpdateGroupMembership{} + t = &GetEventByID_Event{} } - return &t.GroupMembership -} - -type GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - GroupID string "json:\"groupID\" graphql:\"groupID\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - UserID string "json:\"userID\" graphql:\"userID\"" + return t.Metadata } - -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetEventByID_Event) GetUser() []*GetEventByID_Event_User { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEventByID_Event{} } - return t.CreatedAt + return t.User } -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetEventByID_Event) GetGroup() []*GetEventByID_Event_Group { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEventByID_Event{} } - return t.CreatedBy + return t.Group } -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetGroupID() string { +func (t *GetEventByID_Event) GetIntegration() []*GetEventByID_Event_Integration { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEventByID_Event{} } - return t.GroupID + return t.Integration } -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetEventByID_Event) GetOrganization() []*GetEventByID_Event_Organization { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEventByID_Event{} } - return &t.HistoryTime + return t.Organization } -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetID() string { +func (t *GetEventByID_Event) GetInvite() []*GetEventByID_Event_Invite { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEventByID_Event{} } - return t.ID + return t.Invite } -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetEventByID_Event) GetFeature() []*GetEventByID_Event_Feature { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEventByID_Event{} } - return &t.Operation + return t.Feature } -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetRef() *string { +func (t *GetEventByID_Event) GetPersonalAccessToken() []*GetEventByID_Event_PersonalAccessToken { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEventByID_Event{} } - return t.Ref + return t.PersonalAccessToken } -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetRole() *enums.Role { +func (t *GetEventByID_Event) GetOauth2token() []*GetEventByID_Event_Oauth2token { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEventByID_Event{} } - return &t.Role + return t.Oauth2token } -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetEventByID_Event) GetHush() []*GetEventByID_Event_Hush { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEventByID_Event{} } - return t.UpdatedAt + return t.Hush } -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetEventByID_Event) GetOrgmembership() []*GetEventByID_Event_Orgmembership { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEventByID_Event{} } - return t.UpdatedBy + return t.Orgmembership } -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetUserID() string { +func (t *GetEventByID_Event) GetGroupmembership() []*GetEventByID_Event_Groupmembership { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEventByID_Event{} } - return t.UserID -} - -type GetAllGroupMembershipHistories_GroupMembershipHistories_Edges struct { - Node *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return t.Groupmembership } - -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges) GetNode() *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node { +func (t *GetEventByID_Event) GetEntitlement() []*GetEventByID_Event_Entitlement { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges{} + t = &GetEventByID_Event{} } - return t.Node -} - -type GetAllGroupMembershipHistories_GroupMembershipHistories struct { - Edges []*GetAllGroupMembershipHistories_GroupMembershipHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.Entitlement } - -func (t *GetAllGroupMembershipHistories_GroupMembershipHistories) GetEdges() []*GetAllGroupMembershipHistories_GroupMembershipHistories_Edges { +func (t *GetEventByID_Event) GetWebhook() []*GetEventByID_Event_Webhook { if t == nil { - t = &GetAllGroupMembershipHistories_GroupMembershipHistories{} + t = &GetEventByID_Event{} } - return t.Edges + return t.Webhook } -type GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - GroupID string "json:\"groupID\" graphql:\"groupID\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - UserID string "json:\"userID\" graphql:\"userID\"" +type GetEvents_Events_Edges_Node struct { + EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" + ID string "json:\"id\" graphql:\"id\"" + CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" + EventType string "json:\"eventType\" graphql:\"eventType\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" } -func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetEvents_Events_Edges_Node) GetEventID() *string { if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEvents_Events_Edges_Node{} } - return t.CreatedAt + return t.EventID } -func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetEvents_Events_Edges_Node) GetID() string { if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEvents_Events_Edges_Node{} } - return t.CreatedBy + return t.ID } -func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetGroupID() string { +func (t *GetEvents_Events_Edges_Node) GetCorrelationID() *string { if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEvents_Events_Edges_Node{} } - return t.GroupID + return t.CorrelationID } -func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetEvents_Events_Edges_Node) GetEventType() string { if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEvents_Events_Edges_Node{} } - return &t.HistoryTime + return t.EventType } -func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetID() string { +func (t *GetEvents_Events_Edges_Node) GetMetadata() map[string]interface{} { if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEvents_Events_Edges_Node{} } - return t.ID + return t.Metadata } -func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetOperation() *history.OpType { - if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} - } - return &t.Operation + +type GetEvents_Events_Edges struct { + Node *GetEvents_Events_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetRef() *string { + +func (t *GetEvents_Events_Edges) GetNode() *GetEvents_Events_Edges_Node { if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEvents_Events_Edges{} } - return t.Ref + return t.Node } -func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetRole() *enums.Role { - if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} - } - return &t.Role + +type GetEvents_Events struct { + Edges []*GetEvents_Events_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetUpdatedAt() *time.Time { + +func (t *GetEvents_Events) GetEdges() []*GetEvents_Events_Edges { if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &GetEvents_Events{} } - return t.UpdatedAt + return t.Edges } -func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetUpdatedBy() *string { - if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} - } - return t.UpdatedBy + +type UpdateEvent_UpdateEvent_Event_User struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetUserID() string { + +func (t *UpdateEvent_UpdateEvent_Event_User) GetID() string { if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event_User{} } - return t.UserID + return t.ID } -type GetGroupMembershipHistories_GroupMembershipHistories_Edges struct { - Node *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type UpdateEvent_UpdateEvent_Event_Group struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges) GetNode() *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node { +func (t *UpdateEvent_UpdateEvent_Event_Group) GetID() string { if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges{} + t = &UpdateEvent_UpdateEvent_Event_Group{} } - return t.Node + return t.ID } -type GetGroupMembershipHistories_GroupMembershipHistories struct { - Edges []*GetGroupMembershipHistories_GroupMembershipHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type UpdateEvent_UpdateEvent_Event_Integration struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupMembershipHistories_GroupMembershipHistories) GetEdges() []*GetGroupMembershipHistories_GroupMembershipHistories_Edges { +func (t *UpdateEvent_UpdateEvent_Event_Integration) GetID() string { if t == nil { - t = &GetGroupMembershipHistories_GroupMembershipHistories{} + t = &UpdateEvent_UpdateEvent_Event_Integration{} } - return t.Edges + return t.ID } -type GetAllGroupSettings_GroupSettings_Edges_Node_Group struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type UpdateEvent_UpdateEvent_Event_Organization struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node_Group) GetID() string { +func (t *UpdateEvent_UpdateEvent_Event_Organization) GetID() string { if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node_Group{} + t = &UpdateEvent_UpdateEvent_Event_Organization{} } return t.ID } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node_Group) GetName() string { - if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node_Group{} - } - return t.Name -} -type GetAllGroupSettings_GroupSettings_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" - Group *GetAllGroupSettings_GroupSettings_Edges_Node_Group "json:\"group,omitempty\" graphql:\"group\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type UpdateEvent_UpdateEvent_Event_Invite struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetID() string { +func (t *UpdateEvent_UpdateEvent_Event_Invite) GetID() string { if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event_Invite{} } return t.ID } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetJoinPolicy() *enums.JoinPolicy { - if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node{} - } - return &t.JoinPolicy + +type UpdateEvent_UpdateEvent_Event_Feature struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetSyncToGithub() *bool { + +func (t *UpdateEvent_UpdateEvent_Event_Feature) GetID() string { if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event_Feature{} } - return t.SyncToGithub + return t.ID } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetSyncToSlack() *bool { - if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node{} - } - return t.SyncToSlack + +type UpdateEvent_UpdateEvent_Event_PersonalAccessToken struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetTags() []string { + +func (t *UpdateEvent_UpdateEvent_Event_PersonalAccessToken) GetID() string { if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event_PersonalAccessToken{} } - return t.Tags + return t.ID } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetVisibility() *enums.Visibility { - if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node{} - } - return &t.Visibility + +type UpdateEvent_UpdateEvent_Event_Oauth2token struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetGroup() *GetAllGroupSettings_GroupSettings_Edges_Node_Group { + +func (t *UpdateEvent_UpdateEvent_Event_Oauth2token) GetID() string { if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event_Oauth2token{} } - return t.Group + return t.ID } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetCreatedAt() *time.Time { - if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node{} - } - return t.CreatedAt + +type UpdateEvent_UpdateEvent_Event_Hush struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetCreatedBy() *string { + +func (t *UpdateEvent_UpdateEvent_Event_Hush) GetID() string { if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event_Hush{} } - return t.CreatedBy + return t.ID } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetUpdatedAt() *time.Time { - if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node{} - } - return t.UpdatedAt + +type UpdateEvent_UpdateEvent_Event_Orgmembership struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetUpdatedBy() *string { + +func (t *UpdateEvent_UpdateEvent_Event_Orgmembership) GetID() string { if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event_Orgmembership{} } - return t.UpdatedBy + return t.ID } -type GetAllGroupSettings_GroupSettings_Edges struct { - Node *GetAllGroupSettings_GroupSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type UpdateEvent_UpdateEvent_Event_Groupmembership struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupSettings_GroupSettings_Edges) GetNode() *GetAllGroupSettings_GroupSettings_Edges_Node { +func (t *UpdateEvent_UpdateEvent_Event_Groupmembership) GetID() string { if t == nil { - t = &GetAllGroupSettings_GroupSettings_Edges{} + t = &UpdateEvent_UpdateEvent_Event_Groupmembership{} } - return t.Node + return t.ID } -type GetAllGroupSettings_GroupSettings struct { - Edges []*GetAllGroupSettings_GroupSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type UpdateEvent_UpdateEvent_Event_Entitlement struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllGroupSettings_GroupSettings) GetEdges() []*GetAllGroupSettings_GroupSettings_Edges { +func (t *UpdateEvent_UpdateEvent_Event_Entitlement) GetID() string { if t == nil { - t = &GetAllGroupSettings_GroupSettings{} + t = &UpdateEvent_UpdateEvent_Event_Entitlement{} } - return t.Edges + return t.ID } -type GetGroupSettingByID_GroupSetting_Group struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type UpdateEvent_UpdateEvent_Event_Webhook struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetGroupSettingByID_GroupSetting_Group) GetID() string { +func (t *UpdateEvent_UpdateEvent_Event_Webhook) GetID() string { if t == nil { - t = &GetGroupSettingByID_GroupSetting_Group{} + t = &UpdateEvent_UpdateEvent_Event_Webhook{} } return t.ID } -func (t *GetGroupSettingByID_GroupSetting_Group) GetName() string { - if t == nil { - t = &GetGroupSettingByID_GroupSetting_Group{} - } - return t.Name -} -type GetGroupSettingByID_GroupSetting struct { - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" - Group *GetGroupSettingByID_GroupSetting_Group "json:\"group,omitempty\" graphql:\"group\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type UpdateEvent_UpdateEvent_Event struct { + ID string "json:\"id\" graphql:\"id\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" + CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" + EventType string "json:\"eventType\" graphql:\"eventType\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + User []*UpdateEvent_UpdateEvent_Event_User "json:\"user,omitempty\" graphql:\"user\"" + Group []*UpdateEvent_UpdateEvent_Event_Group "json:\"group,omitempty\" graphql:\"group\"" + Integration []*UpdateEvent_UpdateEvent_Event_Integration "json:\"integration,omitempty\" graphql:\"integration\"" + Organization []*UpdateEvent_UpdateEvent_Event_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Invite []*UpdateEvent_UpdateEvent_Event_Invite "json:\"invite,omitempty\" graphql:\"invite\"" + Feature []*UpdateEvent_UpdateEvent_Event_Feature "json:\"feature,omitempty\" graphql:\"feature\"" + PersonalAccessToken []*UpdateEvent_UpdateEvent_Event_PersonalAccessToken "json:\"personalAccessToken,omitempty\" graphql:\"personalAccessToken\"" + Oauth2token []*UpdateEvent_UpdateEvent_Event_Oauth2token "json:\"oauth2token,omitempty\" graphql:\"oauth2token\"" + Hush []*UpdateEvent_UpdateEvent_Event_Hush "json:\"hush,omitempty\" graphql:\"hush\"" + Orgmembership []*UpdateEvent_UpdateEvent_Event_Orgmembership "json:\"orgmembership,omitempty\" graphql:\"orgmembership\"" + Groupmembership []*UpdateEvent_UpdateEvent_Event_Groupmembership "json:\"groupmembership,omitempty\" graphql:\"groupmembership\"" + Entitlement []*UpdateEvent_UpdateEvent_Event_Entitlement "json:\"entitlement,omitempty\" graphql:\"entitlement\"" + Webhook []*UpdateEvent_UpdateEvent_Event_Webhook "json:\"webhook,omitempty\" graphql:\"webhook\"" } -func (t *GetGroupSettingByID_GroupSetting) GetID() string { +func (t *UpdateEvent_UpdateEvent_Event) GetID() string { if t == nil { - t = &GetGroupSettingByID_GroupSetting{} + t = &UpdateEvent_UpdateEvent_Event{} } return t.ID } -func (t *GetGroupSettingByID_GroupSetting) GetJoinPolicy() *enums.JoinPolicy { +func (t *UpdateEvent_UpdateEvent_Event) GetCreatedAt() *time.Time { if t == nil { - t = &GetGroupSettingByID_GroupSetting{} + t = &UpdateEvent_UpdateEvent_Event{} } - return &t.JoinPolicy + return t.CreatedAt } -func (t *GetGroupSettingByID_GroupSetting) GetSyncToGithub() *bool { +func (t *UpdateEvent_UpdateEvent_Event) GetUpdatedAt() *time.Time { if t == nil { - t = &GetGroupSettingByID_GroupSetting{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.SyncToGithub + return t.UpdatedAt } -func (t *GetGroupSettingByID_GroupSetting) GetSyncToSlack() *bool { +func (t *UpdateEvent_UpdateEvent_Event) GetCreatedBy() *string { if t == nil { - t = &GetGroupSettingByID_GroupSetting{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.SyncToSlack + return t.CreatedBy } -func (t *GetGroupSettingByID_GroupSetting) GetTags() []string { +func (t *UpdateEvent_UpdateEvent_Event) GetUpdatedBy() *string { if t == nil { - t = &GetGroupSettingByID_GroupSetting{} - } - return t.Tags -} -func (t *GetGroupSettingByID_GroupSetting) GetVisibility() *enums.Visibility { - if t == nil { - t = &GetGroupSettingByID_GroupSetting{} - } - return &t.Visibility -} -func (t *GetGroupSettingByID_GroupSetting) GetGroup() *GetGroupSettingByID_GroupSetting_Group { - if t == nil { - t = &GetGroupSettingByID_GroupSetting{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.Group + return t.UpdatedBy } -func (t *GetGroupSettingByID_GroupSetting) GetCreatedAt() *time.Time { +func (t *UpdateEvent_UpdateEvent_Event) GetEventID() *string { if t == nil { - t = &GetGroupSettingByID_GroupSetting{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.CreatedAt + return t.EventID } -func (t *GetGroupSettingByID_GroupSetting) GetCreatedBy() *string { +func (t *UpdateEvent_UpdateEvent_Event) GetCorrelationID() *string { if t == nil { - t = &GetGroupSettingByID_GroupSetting{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.CreatedBy + return t.CorrelationID } -func (t *GetGroupSettingByID_GroupSetting) GetUpdatedAt() *time.Time { +func (t *UpdateEvent_UpdateEvent_Event) GetEventType() string { if t == nil { - t = &GetGroupSettingByID_GroupSetting{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.UpdatedAt + return t.EventType } -func (t *GetGroupSettingByID_GroupSetting) GetUpdatedBy() *string { +func (t *UpdateEvent_UpdateEvent_Event) GetMetadata() map[string]interface{} { if t == nil { - t = &GetGroupSettingByID_GroupSetting{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.UpdatedBy -} - -type GetGroupSettings_GroupSettings_Edges_Node_Group struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.Metadata } - -func (t *GetGroupSettings_GroupSettings_Edges_Node_Group) GetID() string { +func (t *UpdateEvent_UpdateEvent_Event) GetUser() []*UpdateEvent_UpdateEvent_Event_User { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node_Group{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.ID + return t.User } -func (t *GetGroupSettings_GroupSettings_Edges_Node_Group) GetName() string { +func (t *UpdateEvent_UpdateEvent_Event) GetGroup() []*UpdateEvent_UpdateEvent_Event_Group { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node_Group{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.Name -} - -type GetGroupSettings_GroupSettings_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" - Group *GetGroupSettings_GroupSettings_Edges_Node_Group "json:\"group,omitempty\" graphql:\"group\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.Group } - -func (t *GetGroupSettings_GroupSettings_Edges_Node) GetID() string { +func (t *UpdateEvent_UpdateEvent_Event) GetIntegration() []*UpdateEvent_UpdateEvent_Event_Integration { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.ID + return t.Integration } -func (t *GetGroupSettings_GroupSettings_Edges_Node) GetJoinPolicy() *enums.JoinPolicy { +func (t *UpdateEvent_UpdateEvent_Event) GetOrganization() []*UpdateEvent_UpdateEvent_Event_Organization { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event{} } - return &t.JoinPolicy + return t.Organization } -func (t *GetGroupSettings_GroupSettings_Edges_Node) GetSyncToGithub() *bool { +func (t *UpdateEvent_UpdateEvent_Event) GetInvite() []*UpdateEvent_UpdateEvent_Event_Invite { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.SyncToGithub + return t.Invite } -func (t *GetGroupSettings_GroupSettings_Edges_Node) GetSyncToSlack() *bool { +func (t *UpdateEvent_UpdateEvent_Event) GetFeature() []*UpdateEvent_UpdateEvent_Event_Feature { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.SyncToSlack + return t.Feature } -func (t *GetGroupSettings_GroupSettings_Edges_Node) GetTags() []string { +func (t *UpdateEvent_UpdateEvent_Event) GetPersonalAccessToken() []*UpdateEvent_UpdateEvent_Event_PersonalAccessToken { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.Tags + return t.PersonalAccessToken } -func (t *GetGroupSettings_GroupSettings_Edges_Node) GetVisibility() *enums.Visibility { +func (t *UpdateEvent_UpdateEvent_Event) GetOauth2token() []*UpdateEvent_UpdateEvent_Event_Oauth2token { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event{} } - return &t.Visibility + return t.Oauth2token } -func (t *GetGroupSettings_GroupSettings_Edges_Node) GetGroup() *GetGroupSettings_GroupSettings_Edges_Node_Group { +func (t *UpdateEvent_UpdateEvent_Event) GetHush() []*UpdateEvent_UpdateEvent_Event_Hush { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.Group + return t.Hush } -func (t *GetGroupSettings_GroupSettings_Edges_Node) GetCreatedAt() *time.Time { +func (t *UpdateEvent_UpdateEvent_Event) GetOrgmembership() []*UpdateEvent_UpdateEvent_Event_Orgmembership { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.CreatedAt + return t.Orgmembership } -func (t *GetGroupSettings_GroupSettings_Edges_Node) GetCreatedBy() *string { +func (t *UpdateEvent_UpdateEvent_Event) GetGroupmembership() []*UpdateEvent_UpdateEvent_Event_Groupmembership { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.CreatedBy + return t.Groupmembership } -func (t *GetGroupSettings_GroupSettings_Edges_Node) GetUpdatedAt() *time.Time { +func (t *UpdateEvent_UpdateEvent_Event) GetEntitlement() []*UpdateEvent_UpdateEvent_Event_Entitlement { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.UpdatedAt + return t.Entitlement } -func (t *GetGroupSettings_GroupSettings_Edges_Node) GetUpdatedBy() *string { +func (t *UpdateEvent_UpdateEvent_Event) GetWebhook() []*UpdateEvent_UpdateEvent_Event_Webhook { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges_Node{} + t = &UpdateEvent_UpdateEvent_Event{} } - return t.UpdatedBy + return t.Webhook } -type GetGroupSettings_GroupSettings_Edges struct { - Node *GetGroupSettings_GroupSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type UpdateEvent_UpdateEvent struct { + Event UpdateEvent_UpdateEvent_Event "json:\"event\" graphql:\"event\"" } -func (t *GetGroupSettings_GroupSettings_Edges) GetNode() *GetGroupSettings_GroupSettings_Edges_Node { +func (t *UpdateEvent_UpdateEvent) GetEvent() *UpdateEvent_UpdateEvent_Event { if t == nil { - t = &GetGroupSettings_GroupSettings_Edges{} + t = &UpdateEvent_UpdateEvent{} } - return t.Node + return &t.Event } -type GetGroupSettings_GroupSettings struct { - Edges []*GetGroupSettings_GroupSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllEventHistories_EventHistories_Edges_Node struct { + CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" + EventType string "json:\"eventType\" graphql:\"eventType\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetGroupSettings_GroupSettings) GetEdges() []*GetGroupSettings_GroupSettings_Edges { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetCorrelationID() *string { if t == nil { - t = &GetGroupSettings_GroupSettings{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return t.Edges -} - -type UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" + return t.CorrelationID } - -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group) GetID() string { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group) GetName() string { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return t.Name -} - -type UpdateGroupSetting_UpdateGroupSetting_GroupSetting struct { - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" - Group *UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group "json:\"group,omitempty\" graphql:\"group\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.CreatedBy } - -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetID() string { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetEventID() *string { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return t.ID + return t.EventID } -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetJoinPolicy() *enums.JoinPolicy { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetEventType() string { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return &t.JoinPolicy + return t.EventType } -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetSyncToGithub() *bool { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return t.SyncToGithub + return &t.HistoryTime } -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetSyncToSlack() *bool { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetID() string { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return t.SyncToSlack + return t.ID } -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetTags() []string { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetMetadata() map[string]interface{} { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return t.Tags + return t.Metadata } -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetVisibility() *enums.Visibility { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return &t.Visibility + return &t.Operation } -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetGroup() *UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetRef() *string { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return t.Group + return t.Ref } -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetCreatedAt() *time.Time { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetTags() []string { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return t.CreatedAt + return t.Tags } -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetCreatedBy() *string { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return t.CreatedBy + return t.UpdatedAt } -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetUpdatedAt() *time.Time { +func (t *GetAllEventHistories_EventHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} + t = &GetAllEventHistories_EventHistories_Edges_Node{} } - return t.UpdatedAt + return t.UpdatedBy } -func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetUpdatedBy() *string { + +type GetAllEventHistories_EventHistories_Edges struct { + Node *GetAllEventHistories_EventHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllEventHistories_EventHistories_Edges) GetNode() *GetAllEventHistories_EventHistories_Edges_Node { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} + t = &GetAllEventHistories_EventHistories_Edges{} } - return t.UpdatedBy + return t.Node } -type UpdateGroupSetting_UpdateGroupSetting struct { - GroupSetting UpdateGroupSetting_UpdateGroupSetting_GroupSetting "json:\"groupSetting\" graphql:\"groupSetting\"" +type GetAllEventHistories_EventHistories struct { + Edges []*GetAllEventHistories_EventHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *UpdateGroupSetting_UpdateGroupSetting) GetGroupSetting() *UpdateGroupSetting_UpdateGroupSetting_GroupSetting { +func (t *GetAllEventHistories_EventHistories) GetEdges() []*GetAllEventHistories_EventHistories_Edges { if t == nil { - t = &UpdateGroupSetting_UpdateGroupSetting{} + t = &GetAllEventHistories_EventHistories{} } - return &t.GroupSetting + return t.Edges } -type GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" +type GetEventHistories_EventHistories_Edges_Node struct { + CorrelationID *string "json:\"correlationID,omitempty\" graphql:\"correlationID\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + EventID *string "json:\"eventID,omitempty\" graphql:\"eventID\"" + EventType string "json:\"eventType\" graphql:\"eventType\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetEventHistories_EventHistories_Edges_Node) GetCorrelationID() *string { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } - return t.CreatedAt + return t.CorrelationID } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetEventHistories_EventHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } - return t.CreatedBy + return t.CreatedAt } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetGroupID() *string { +func (t *GetEventHistories_EventHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } - return t.GroupID + return t.CreatedBy } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetEventHistories_EventHistories_Edges_Node) GetEventID() *string { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } - return &t.HistoryTime + return t.EventID } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetID() string { +func (t *GetEventHistories_EventHistories_Edges_Node) GetEventType() string { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } - return t.ID + return t.EventType } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetJoinPolicy() *enums.JoinPolicy { +func (t *GetEventHistories_EventHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } - return &t.JoinPolicy + return &t.HistoryTime } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetEventHistories_EventHistories_Edges_Node) GetID() string { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } - return &t.Operation + return t.ID } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetRef() *string { +func (t *GetEventHistories_EventHistories_Edges_Node) GetMetadata() map[string]interface{} { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } - return t.Ref + return t.Metadata } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetSyncToGithub() *bool { +func (t *GetEventHistories_EventHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } - return t.SyncToGithub + return &t.Operation } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetSyncToSlack() *bool { +func (t *GetEventHistories_EventHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } - return t.SyncToSlack + return t.Ref } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetTags() []string { +func (t *GetEventHistories_EventHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } return t.Tags } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetEventHistories_EventHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetEventHistories_EventHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &GetEventHistories_EventHistories_Edges_Node{} } return t.UpdatedBy } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetVisibility() *enums.Visibility { - if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} - } - return &t.Visibility -} -type GetAllGroupSettingHistories_GroupSettingHistories_Edges struct { - Node *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetEventHistories_EventHistories_Edges struct { + Node *GetEventHistories_EventHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges) GetNode() *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node { +func (t *GetEventHistories_EventHistories_Edges) GetNode() *GetEventHistories_EventHistories_Edges_Node { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges{} + t = &GetEventHistories_EventHistories_Edges{} } return t.Node } -type GetAllGroupSettingHistories_GroupSettingHistories struct { - Edges []*GetAllGroupSettingHistories_GroupSettingHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetEventHistories_EventHistories struct { + Edges []*GetEventHistories_EventHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllGroupSettingHistories_GroupSettingHistories) GetEdges() []*GetAllGroupSettingHistories_GroupSettingHistories_Edges { +func (t *GetEventHistories_EventHistories) GetEdges() []*GetEventHistories_EventHistories_Edges { if t == nil { - t = &GetAllGroupSettingHistories_GroupSettingHistories{} + t = &GetEventHistories_EventHistories{} } return t.Edges } -type GetGroupSettingHistories_GroupSettingHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" - SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" +type CreateBulkCSVFeature_CreateBulkCSVFeature_Features struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateBulkCSVFeature_CreateBulkCSVFeature_Features) GetDescription() *string { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkCSVFeature_CreateBulkCSVFeature_Features{} } - return t.CreatedAt + return t.Description } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetCreatedBy() *string { +func (t *CreateBulkCSVFeature_CreateBulkCSVFeature_Features) GetEnabled() bool { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkCSVFeature_CreateBulkCSVFeature_Features{} } - return t.CreatedBy + return t.Enabled } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetGroupID() *string { +func (t *CreateBulkCSVFeature_CreateBulkCSVFeature_Features) GetID() string { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkCSVFeature_CreateBulkCSVFeature_Features{} } - return t.GroupID + return t.ID } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateBulkCSVFeature_CreateBulkCSVFeature_Features) GetName() string { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkCSVFeature_CreateBulkCSVFeature_Features{} } - return &t.HistoryTime + return t.Name } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetID() string { +func (t *CreateBulkCSVFeature_CreateBulkCSVFeature_Features) GetDisplayName() *string { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkCSVFeature_CreateBulkCSVFeature_Features{} } - return t.ID + return t.DisplayName } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetJoinPolicy() *enums.JoinPolicy { +func (t *CreateBulkCSVFeature_CreateBulkCSVFeature_Features) GetTags() []string { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkCSVFeature_CreateBulkCSVFeature_Features{} } - return &t.JoinPolicy + return t.Tags } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetOperation() *history.OpType { + +type CreateBulkCSVFeature_CreateBulkCSVFeature struct { + Features []*CreateBulkCSVFeature_CreateBulkCSVFeature_Features "json:\"features,omitempty\" graphql:\"features\"" +} + +func (t *CreateBulkCSVFeature_CreateBulkCSVFeature) GetFeatures() []*CreateBulkCSVFeature_CreateBulkCSVFeature_Features { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkCSVFeature_CreateBulkCSVFeature{} } - return &t.Operation + return t.Features } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetRef() *string { + +type CreateBulkFeature_CreateBulkFeature_Features struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *CreateBulkFeature_CreateBulkFeature_Features) GetDescription() *string { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkFeature_CreateBulkFeature_Features{} } - return t.Ref + return t.Description } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetSyncToGithub() *bool { +func (t *CreateBulkFeature_CreateBulkFeature_Features) GetEnabled() bool { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkFeature_CreateBulkFeature_Features{} } - return t.SyncToGithub + return t.Enabled } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetSyncToSlack() *bool { +func (t *CreateBulkFeature_CreateBulkFeature_Features) GetID() string { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkFeature_CreateBulkFeature_Features{} } - return t.SyncToSlack + return t.ID } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetTags() []string { +func (t *CreateBulkFeature_CreateBulkFeature_Features) GetName() string { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkFeature_CreateBulkFeature_Features{} } - return t.Tags + return t.Name } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateBulkFeature_CreateBulkFeature_Features) GetDisplayName() *string { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} - } - return t.UpdatedAt -} -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetUpdatedBy() *string { - if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkFeature_CreateBulkFeature_Features{} } - return t.UpdatedBy + return t.DisplayName } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetVisibility() *enums.Visibility { +func (t *CreateBulkFeature_CreateBulkFeature_Features) GetTags() []string { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + t = &CreateBulkFeature_CreateBulkFeature_Features{} } - return &t.Visibility + return t.Tags } -type GetGroupSettingHistories_GroupSettingHistories_Edges struct { - Node *GetGroupSettingHistories_GroupSettingHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateBulkFeature_CreateBulkFeature struct { + Features []*CreateBulkFeature_CreateBulkFeature_Features "json:\"features,omitempty\" graphql:\"features\"" } -func (t *GetGroupSettingHistories_GroupSettingHistories_Edges) GetNode() *GetGroupSettingHistories_GroupSettingHistories_Edges_Node { +func (t *CreateBulkFeature_CreateBulkFeature) GetFeatures() []*CreateBulkFeature_CreateBulkFeature_Features { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories_Edges{} + t = &CreateBulkFeature_CreateBulkFeature{} } - return t.Node + return t.Features } -type GetGroupSettingHistories_GroupSettingHistories struct { - Edges []*GetGroupSettingHistories_GroupSettingHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateFeature_CreateFeature_Feature struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *GetGroupSettingHistories_GroupSettingHistories) GetEdges() []*GetGroupSettingHistories_GroupSettingHistories_Edges { +func (t *CreateFeature_CreateFeature_Feature) GetDescription() *string { if t == nil { - t = &GetGroupSettingHistories_GroupSettingHistories{} + t = &CreateFeature_CreateFeature_Feature{} } - return t.Edges + return t.Description } - -type CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Integrations struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *CreateFeature_CreateFeature_Feature) GetEnabled() bool { + if t == nil { + t = &CreateFeature_CreateFeature_Feature{} + } + return t.Enabled } - -func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Integrations) GetID() string { +func (t *CreateFeature_CreateFeature_Feature) GetID() string { if t == nil { - t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Integrations{} + t = &CreateFeature_CreateFeature_Feature{} } return t.ID } - -type CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Organization struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *CreateFeature_CreateFeature_Feature) GetName() string { + if t == nil { + t = &CreateFeature_CreateFeature_Feature{} + } + return t.Name } - -func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Organization) GetID() string { +func (t *CreateFeature_CreateFeature_Feature) GetDisplayName() *string { if t == nil { - t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Organization{} + t = &CreateFeature_CreateFeature_Feature{} } - return t.ID + return t.DisplayName +} +func (t *CreateFeature_CreateFeature_Feature) GetTags() []string { + if t == nil { + t = &CreateFeature_CreateFeature_Feature{} + } + return t.Tags } -type CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateFeature_CreateFeature struct { + Feature CreateFeature_CreateFeature_Feature "json:\"feature\" graphql:\"feature\"" } -func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Events) GetID() string { +func (t *CreateFeature_CreateFeature) GetFeature() *CreateFeature_CreateFeature_Feature { if t == nil { - t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Events{} + t = &CreateFeature_CreateFeature{} } - return t.ID + return &t.Feature } -type CreateBulkCSVHush_CreateBulkCSVHush_Hushes struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" - Integrations []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" - Organization []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Events []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Events "json:\"events,omitempty\" graphql:\"events\"" +type DeleteFeature_DeleteFeature struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetDescription() *string { +func (t *DeleteFeature_DeleteFeature) GetDeletedID() string { if t == nil { - t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} + t = &DeleteFeature_DeleteFeature{} } - return t.Description + return t.DeletedID } -func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetID() string { - if t == nil { - t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} - } - return t.ID + +type GetAllFeatures_Features_Edges_Node struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetKind() *string { + +func (t *GetAllFeatures_Features_Edges_Node) GetDescription() *string { if t == nil { - t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} + t = &GetAllFeatures_Features_Edges_Node{} } - return t.Kind + return t.Description } -func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetName() string { +func (t *GetAllFeatures_Features_Edges_Node) GetEnabled() bool { if t == nil { - t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} + t = &GetAllFeatures_Features_Edges_Node{} } - return t.Name + return t.Enabled } -func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetSecretName() *string { +func (t *GetAllFeatures_Features_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} + t = &GetAllFeatures_Features_Edges_Node{} } - return t.SecretName + return t.ID } -func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetIntegrations() []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Integrations { +func (t *GetAllFeatures_Features_Edges_Node) GetName() string { if t == nil { - t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} + t = &GetAllFeatures_Features_Edges_Node{} } - return t.Integrations + return t.Name } -func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetOrganization() []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Organization { +func (t *GetAllFeatures_Features_Edges_Node) GetDisplayName() *string { if t == nil { - t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} + t = &GetAllFeatures_Features_Edges_Node{} } - return t.Organization + return t.DisplayName } -func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetEvents() []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Events { +func (t *GetAllFeatures_Features_Edges_Node) GetTags() []string { if t == nil { - t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} + t = &GetAllFeatures_Features_Edges_Node{} } - return t.Events + return t.Tags } -type CreateBulkCSVHush_CreateBulkCSVHush struct { - Hushes []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes "json:\"hushes,omitempty\" graphql:\"hushes\"" +type GetAllFeatures_Features_Edges struct { + Node *GetAllFeatures_Features_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkCSVHush_CreateBulkCSVHush) GetHushes() []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes { +func (t *GetAllFeatures_Features_Edges) GetNode() *GetAllFeatures_Features_Edges_Node { if t == nil { - t = &CreateBulkCSVHush_CreateBulkCSVHush{} + t = &GetAllFeatures_Features_Edges{} } - return t.Hushes + return t.Node } -type CreateBulkHush_CreateBulkHush_Hushes_Integrations struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllFeatures_Features struct { + Edges []*GetAllFeatures_Features_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkHush_CreateBulkHush_Hushes_Integrations) GetID() string { +func (t *GetAllFeatures_Features) GetEdges() []*GetAllFeatures_Features_Edges { if t == nil { - t = &CreateBulkHush_CreateBulkHush_Hushes_Integrations{} + t = &GetAllFeatures_Features{} } - return t.ID + return t.Edges } -type CreateBulkHush_CreateBulkHush_Hushes_Organization struct { - ID string "json:\"id\" graphql:\"id\"" +type GetFeatureByID_Feature struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *CreateBulkHush_CreateBulkHush_Hushes_Organization) GetID() string { +func (t *GetFeatureByID_Feature) GetDescription() *string { if t == nil { - t = &CreateBulkHush_CreateBulkHush_Hushes_Organization{} + t = &GetFeatureByID_Feature{} } - return t.ID -} - -type CreateBulkHush_CreateBulkHush_Hushes_Events struct { - ID string "json:\"id\" graphql:\"id\"" + return t.Description } - -func (t *CreateBulkHush_CreateBulkHush_Hushes_Events) GetID() string { +func (t *GetFeatureByID_Feature) GetEnabled() bool { if t == nil { - t = &CreateBulkHush_CreateBulkHush_Hushes_Events{} + t = &GetFeatureByID_Feature{} } - return t.ID -} - -type CreateBulkHush_CreateBulkHush_Hushes struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" - Integrations []*CreateBulkHush_CreateBulkHush_Hushes_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" - Organization []*CreateBulkHush_CreateBulkHush_Hushes_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Events []*CreateBulkHush_CreateBulkHush_Hushes_Events "json:\"events,omitempty\" graphql:\"events\"" + return t.Enabled } - -func (t *CreateBulkHush_CreateBulkHush_Hushes) GetDescription() *string { +func (t *GetFeatureByID_Feature) GetID() string { if t == nil { - t = &CreateBulkHush_CreateBulkHush_Hushes{} + t = &GetFeatureByID_Feature{} } - return t.Description + return t.ID } -func (t *CreateBulkHush_CreateBulkHush_Hushes) GetID() string { +func (t *GetFeatureByID_Feature) GetName() string { if t == nil { - t = &CreateBulkHush_CreateBulkHush_Hushes{} + t = &GetFeatureByID_Feature{} } - return t.ID + return t.Name } -func (t *CreateBulkHush_CreateBulkHush_Hushes) GetKind() *string { +func (t *GetFeatureByID_Feature) GetDisplayName() *string { if t == nil { - t = &CreateBulkHush_CreateBulkHush_Hushes{} + t = &GetFeatureByID_Feature{} } - return t.Kind + return t.DisplayName } -func (t *CreateBulkHush_CreateBulkHush_Hushes) GetName() string { +func (t *GetFeatureByID_Feature) GetTags() []string { if t == nil { - t = &CreateBulkHush_CreateBulkHush_Hushes{} + t = &GetFeatureByID_Feature{} } - return t.Name + return t.Tags } -func (t *CreateBulkHush_CreateBulkHush_Hushes) GetSecretName() *string { + +type GetFeatures_Features_Edges_Node struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GetFeatures_Features_Edges_Node) GetDescription() *string { if t == nil { - t = &CreateBulkHush_CreateBulkHush_Hushes{} + t = &GetFeatures_Features_Edges_Node{} } - return t.SecretName + return t.Description } -func (t *CreateBulkHush_CreateBulkHush_Hushes) GetIntegrations() []*CreateBulkHush_CreateBulkHush_Hushes_Integrations { +func (t *GetFeatures_Features_Edges_Node) GetEnabled() bool { if t == nil { - t = &CreateBulkHush_CreateBulkHush_Hushes{} + t = &GetFeatures_Features_Edges_Node{} } - return t.Integrations + return t.Enabled } -func (t *CreateBulkHush_CreateBulkHush_Hushes) GetOrganization() []*CreateBulkHush_CreateBulkHush_Hushes_Organization { +func (t *GetFeatures_Features_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkHush_CreateBulkHush_Hushes{} + t = &GetFeatures_Features_Edges_Node{} } - return t.Organization + return t.ID } -func (t *CreateBulkHush_CreateBulkHush_Hushes) GetEvents() []*CreateBulkHush_CreateBulkHush_Hushes_Events { +func (t *GetFeatures_Features_Edges_Node) GetName() string { if t == nil { - t = &CreateBulkHush_CreateBulkHush_Hushes{} + t = &GetFeatures_Features_Edges_Node{} } - return t.Events -} - -type CreateBulkHush_CreateBulkHush struct { - Hushes []*CreateBulkHush_CreateBulkHush_Hushes "json:\"hushes,omitempty\" graphql:\"hushes\"" + return t.Name } - -func (t *CreateBulkHush_CreateBulkHush) GetHushes() []*CreateBulkHush_CreateBulkHush_Hushes { +func (t *GetFeatures_Features_Edges_Node) GetDisplayName() *string { if t == nil { - t = &CreateBulkHush_CreateBulkHush{} + t = &GetFeatures_Features_Edges_Node{} } - return t.Hushes -} - -type CreateHush_CreateHush_Hush_Integrations struct { - ID string "json:\"id\" graphql:\"id\"" + return t.DisplayName } - -func (t *CreateHush_CreateHush_Hush_Integrations) GetID() string { +func (t *GetFeatures_Features_Edges_Node) GetTags() []string { if t == nil { - t = &CreateHush_CreateHush_Hush_Integrations{} + t = &GetFeatures_Features_Edges_Node{} } - return t.ID + return t.Tags } -type CreateHush_CreateHush_Hush_Organization struct { - ID string "json:\"id\" graphql:\"id\"" +type GetFeatures_Features_Edges struct { + Node *GetFeatures_Features_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateHush_CreateHush_Hush_Organization) GetID() string { +func (t *GetFeatures_Features_Edges) GetNode() *GetFeatures_Features_Edges_Node { if t == nil { - t = &CreateHush_CreateHush_Hush_Organization{} + t = &GetFeatures_Features_Edges{} } - return t.ID + return t.Node } -type CreateHush_CreateHush_Hush_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type GetFeatures_Features struct { + Edges []*GetFeatures_Features_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateHush_CreateHush_Hush_Events) GetID() string { +func (t *GetFeatures_Features) GetEdges() []*GetFeatures_Features_Edges { if t == nil { - t = &CreateHush_CreateHush_Hush_Events{} + t = &GetFeatures_Features{} } - return t.ID + return t.Edges } -type CreateHush_CreateHush_Hush struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" - Integrations []*CreateHush_CreateHush_Hush_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" - Organization []*CreateHush_CreateHush_Hush_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Events []*CreateHush_CreateHush_Hush_Events "json:\"events,omitempty\" graphql:\"events\"" +type UpdateFeature_UpdateFeature_Feature struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *CreateHush_CreateHush_Hush) GetDescription() *string { +func (t *UpdateFeature_UpdateFeature_Feature) GetDescription() *string { if t == nil { - t = &CreateHush_CreateHush_Hush{} + t = &UpdateFeature_UpdateFeature_Feature{} } return t.Description } -func (t *CreateHush_CreateHush_Hush) GetID() string { +func (t *UpdateFeature_UpdateFeature_Feature) GetEnabled() bool { if t == nil { - t = &CreateHush_CreateHush_Hush{} + t = &UpdateFeature_UpdateFeature_Feature{} } - return t.ID + return t.Enabled } -func (t *CreateHush_CreateHush_Hush) GetKind() *string { +func (t *UpdateFeature_UpdateFeature_Feature) GetID() string { if t == nil { - t = &CreateHush_CreateHush_Hush{} + t = &UpdateFeature_UpdateFeature_Feature{} } - return t.Kind + return t.ID } -func (t *CreateHush_CreateHush_Hush) GetName() string { +func (t *UpdateFeature_UpdateFeature_Feature) GetName() string { if t == nil { - t = &CreateHush_CreateHush_Hush{} + t = &UpdateFeature_UpdateFeature_Feature{} } return t.Name } -func (t *CreateHush_CreateHush_Hush) GetSecretName() *string { - if t == nil { - t = &CreateHush_CreateHush_Hush{} - } - return t.SecretName -} -func (t *CreateHush_CreateHush_Hush) GetIntegrations() []*CreateHush_CreateHush_Hush_Integrations { - if t == nil { - t = &CreateHush_CreateHush_Hush{} - } - return t.Integrations -} -func (t *CreateHush_CreateHush_Hush) GetOrganization() []*CreateHush_CreateHush_Hush_Organization { +func (t *UpdateFeature_UpdateFeature_Feature) GetDisplayName() *string { if t == nil { - t = &CreateHush_CreateHush_Hush{} + t = &UpdateFeature_UpdateFeature_Feature{} } - return t.Organization + return t.DisplayName } -func (t *CreateHush_CreateHush_Hush) GetEvents() []*CreateHush_CreateHush_Hush_Events { +func (t *UpdateFeature_UpdateFeature_Feature) GetTags() []string { if t == nil { - t = &CreateHush_CreateHush_Hush{} + t = &UpdateFeature_UpdateFeature_Feature{} } - return t.Events + return t.Tags } -type CreateHush_CreateHush struct { - Hush CreateHush_CreateHush_Hush "json:\"hush\" graphql:\"hush\"" +type UpdateFeature_UpdateFeature struct { + Feature UpdateFeature_UpdateFeature_Feature "json:\"feature\" graphql:\"feature\"" } -func (t *CreateHush_CreateHush) GetHush() *CreateHush_CreateHush_Hush { +func (t *UpdateFeature_UpdateFeature) GetFeature() *UpdateFeature_UpdateFeature_Feature { if t == nil { - t = &CreateHush_CreateHush{} + t = &UpdateFeature_UpdateFeature{} } - return &t.Hush + return &t.Feature } -type GetAllHushes_Hushes_Edges_Node_Integrations struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllFeatureHistories_FeatureHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllHushes_Hushes_Edges_Node_Integrations) GetID() string { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node_Integrations{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.ID -} - -type GetAllHushes_Hushes_Edges_Node_Organization struct { - ID string "json:\"id\" graphql:\"id\"" + return t.CreatedAt } - -func (t *GetAllHushes_Hushes_Edges_Node_Organization) GetID() string { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node_Organization{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.ID -} - -type GetAllHushes_Hushes_Edges_Node_Events struct { - ID string "json:\"id\" graphql:\"id\"" + return t.CreatedBy } - -func (t *GetAllHushes_Hushes_Edges_Node_Events) GetID() string { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node_Events{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.ID -} - -type GetAllHushes_Hushes_Edges_Node struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" - Integrations []*GetAllHushes_Hushes_Edges_Node_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" - Organization []*GetAllHushes_Hushes_Edges_Node_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Events []*GetAllHushes_Hushes_Edges_Node_Events "json:\"events,omitempty\" graphql:\"events\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.Description } - -func (t *GetAllHushes_Hushes_Edges_Node) GetDescription() *string { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetDisplayName() *string { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.Description + return t.DisplayName } -func (t *GetAllHushes_Hushes_Edges_Node) GetID() string { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetEnabled() bool { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.ID + return t.Enabled } -func (t *GetAllHushes_Hushes_Edges_Node) GetKind() *string { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.Kind + return &t.HistoryTime } -func (t *GetAllHushes_Hushes_Edges_Node) GetName() string { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetID() string { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.Name + return t.ID } -func (t *GetAllHushes_Hushes_Edges_Node) GetSecretName() *string { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetMetadata() map[string]interface{} { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.SecretName + return t.Metadata } -func (t *GetAllHushes_Hushes_Edges_Node) GetIntegrations() []*GetAllHushes_Hushes_Edges_Node_Integrations { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetName() string { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.Integrations + return t.Name } -func (t *GetAllHushes_Hushes_Edges_Node) GetOrganization() []*GetAllHushes_Hushes_Edges_Node_Organization { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.Organization + return &t.Operation } -func (t *GetAllHushes_Hushes_Edges_Node) GetEvents() []*GetAllHushes_Hushes_Edges_Node_Events { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.Events + return t.OwnerID } -func (t *GetAllHushes_Hushes_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.CreatedAt + return t.Ref } -func (t *GetAllHushes_Hushes_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.UpdatedAt + return t.Tags } -func (t *GetAllHushes_Hushes_Edges_Node) GetCreatedBy() *string { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } - return t.CreatedBy + return t.UpdatedAt } -func (t *GetAllHushes_Hushes_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllFeatureHistories_FeatureHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllHushes_Hushes_Edges_Node{} + t = &GetAllFeatureHistories_FeatureHistories_Edges_Node{} } return t.UpdatedBy } -type GetAllHushes_Hushes_Edges struct { - Node *GetAllHushes_Hushes_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllFeatureHistories_FeatureHistories_Edges struct { + Node *GetAllFeatureHistories_FeatureHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllHushes_Hushes_Edges) GetNode() *GetAllHushes_Hushes_Edges_Node { +func (t *GetAllFeatureHistories_FeatureHistories_Edges) GetNode() *GetAllFeatureHistories_FeatureHistories_Edges_Node { if t == nil { - t = &GetAllHushes_Hushes_Edges{} + t = &GetAllFeatureHistories_FeatureHistories_Edges{} } return t.Node } -type GetAllHushes_Hushes struct { - Edges []*GetAllHushes_Hushes_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllFeatureHistories_FeatureHistories struct { + Edges []*GetAllFeatureHistories_FeatureHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllHushes_Hushes) GetEdges() []*GetAllHushes_Hushes_Edges { +func (t *GetAllFeatureHistories_FeatureHistories) GetEdges() []*GetAllFeatureHistories_FeatureHistories_Edges { if t == nil { - t = &GetAllHushes_Hushes{} + t = &GetAllFeatureHistories_FeatureHistories{} } return t.Edges } -type GetHushByID_Hush_Integrations struct { - ID string "json:\"id\" graphql:\"id\"" +type GetFeatureHistories_FeatureHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]interface{} "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetHushByID_Hush_Integrations) GetID() string { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetHushByID_Hush_Integrations{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.ID -} - -type GetHushByID_Hush_Organization struct { - ID string "json:\"id\" graphql:\"id\"" + return t.CreatedAt } - -func (t *GetHushByID_Hush_Organization) GetID() string { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetHushByID_Hush_Organization{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.ID -} - -type GetHushByID_Hush_Events struct { - ID string "json:\"id\" graphql:\"id\"" + return t.CreatedBy } - -func (t *GetHushByID_Hush_Events) GetID() string { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetHushByID_Hush_Events{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.ID -} - -type GetHushByID_Hush struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" - Integrations []*GetHushByID_Hush_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" - Organization []*GetHushByID_Hush_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Events []*GetHushByID_Hush_Events "json:\"events,omitempty\" graphql:\"events\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.Description } - -func (t *GetHushByID_Hush) GetDescription() *string { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetDisplayName() *string { if t == nil { - t = &GetHushByID_Hush{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.Description + return t.DisplayName } -func (t *GetHushByID_Hush) GetID() string { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetEnabled() bool { if t == nil { - t = &GetHushByID_Hush{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.ID + return t.Enabled } -func (t *GetHushByID_Hush) GetKind() *string { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetHushByID_Hush{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.Kind + return &t.HistoryTime } -func (t *GetHushByID_Hush) GetName() string { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetID() string { if t == nil { - t = &GetHushByID_Hush{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.Name + return t.ID } -func (t *GetHushByID_Hush) GetSecretName() *string { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetMetadata() map[string]interface{} { if t == nil { - t = &GetHushByID_Hush{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.SecretName + return t.Metadata } -func (t *GetHushByID_Hush) GetIntegrations() []*GetHushByID_Hush_Integrations { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetName() string { if t == nil { - t = &GetHushByID_Hush{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.Integrations + return t.Name } -func (t *GetHushByID_Hush) GetOrganization() []*GetHushByID_Hush_Organization { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetHushByID_Hush{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.Organization + return &t.Operation } -func (t *GetHushByID_Hush) GetEvents() []*GetHushByID_Hush_Events { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetHushByID_Hush{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.Events + return t.OwnerID } -func (t *GetHushByID_Hush) GetCreatedAt() *time.Time { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetHushByID_Hush{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.CreatedAt + return t.Ref } -func (t *GetHushByID_Hush) GetUpdatedAt() *time.Time { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetHushByID_Hush{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.UpdatedAt + return t.Tags } -func (t *GetHushByID_Hush) GetCreatedBy() *string { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetHushByID_Hush{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } - return t.CreatedBy + return t.UpdatedAt } -func (t *GetHushByID_Hush) GetUpdatedBy() *string { +func (t *GetFeatureHistories_FeatureHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetHushByID_Hush{} + t = &GetFeatureHistories_FeatureHistories_Edges_Node{} } return t.UpdatedBy } -type GetHushes_Hushes_Edges_Node_Integrations struct { - ID string "json:\"id\" graphql:\"id\"" +type GetFeatureHistories_FeatureHistories_Edges struct { + Node *GetFeatureHistories_FeatureHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetHushes_Hushes_Edges_Node_Integrations) GetID() string { +func (t *GetFeatureHistories_FeatureHistories_Edges) GetNode() *GetFeatureHistories_FeatureHistories_Edges_Node { if t == nil { - t = &GetHushes_Hushes_Edges_Node_Integrations{} + t = &GetFeatureHistories_FeatureHistories_Edges{} } - return t.ID + return t.Node } -type GetHushes_Hushes_Edges_Node_Organization struct { - ID string "json:\"id\" graphql:\"id\"" +type GetFeatureHistories_FeatureHistories struct { + Edges []*GetFeatureHistories_FeatureHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetHushes_Hushes_Edges_Node_Organization) GetID() string { +func (t *GetFeatureHistories_FeatureHistories) GetEdges() []*GetFeatureHistories_FeatureHistories_Edges { if t == nil { - t = &GetHushes_Hushes_Edges_Node_Organization{} + t = &GetFeatureHistories_FeatureHistories{} } - return t.ID + return t.Edges } -type GetHushes_Hushes_Edges_Node_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type DeleteFile_DeleteFile struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetHushes_Hushes_Edges_Node_Events) GetID() string { +func (t *DeleteFile_DeleteFile) GetDeletedID() string { if t == nil { - t = &GetHushes_Hushes_Edges_Node_Events{} + t = &DeleteFile_DeleteFile{} } - return t.ID + return t.DeletedID } -type GetHushes_Hushes_Edges_Node struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" - Integrations []*GetHushes_Hushes_Edges_Node_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" - Organization []*GetHushes_Hushes_Edges_Node_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Events []*GetHushes_Hushes_Edges_Node_Events "json:\"events,omitempty\" graphql:\"events\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetAllFiles_Files_Edges_Node struct { + CategoryType *string "json:\"categoryType,omitempty\" graphql:\"categoryType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DetectedContentType string "json:\"detectedContentType\" graphql:\"detectedContentType\"" + DetectedMimeType *string "json:\"detectedMimeType,omitempty\" graphql:\"detectedMimeType\"" + ID string "json:\"id\" graphql:\"id\"" + Md5Hash *string "json:\"md5Hash,omitempty\" graphql:\"md5Hash\"" + PersistedFileSize *int64 "json:\"persistedFileSize,omitempty\" graphql:\"persistedFileSize\"" + ProvidedFileExtension string "json:\"providedFileExtension\" graphql:\"providedFileExtension\"" + ProvidedFileName string "json:\"providedFileName\" graphql:\"providedFileName\"" + ProvidedFileSize *int64 "json:\"providedFileSize,omitempty\" graphql:\"providedFileSize\"" + StoragePath *string "json:\"storagePath,omitempty\" graphql:\"storagePath\"" + StorageScheme *string "json:\"storageScheme,omitempty\" graphql:\"storageScheme\"" + StorageVolume *string "json:\"storageVolume,omitempty\" graphql:\"storageVolume\"" + StoreKey *string "json:\"storeKey,omitempty\" graphql:\"storeKey\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + URI *string "json:\"uri,omitempty\" graphql:\"uri\"" } -func (t *GetHushes_Hushes_Edges_Node) GetDescription() *string { +func (t *GetAllFiles_Files_Edges_Node) GetCategoryType() *string { if t == nil { - t = &GetHushes_Hushes_Edges_Node{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.Description + return t.CategoryType } -func (t *GetHushes_Hushes_Edges_Node) GetID() string { +func (t *GetAllFiles_Files_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetHushes_Hushes_Edges_Node{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *GetHushes_Hushes_Edges_Node) GetKind() *string { +func (t *GetAllFiles_Files_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetHushes_Hushes_Edges_Node{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.Kind + return t.CreatedBy } -func (t *GetHushes_Hushes_Edges_Node) GetName() string { +func (t *GetAllFiles_Files_Edges_Node) GetDetectedContentType() string { if t == nil { - t = &GetHushes_Hushes_Edges_Node{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.Name + return t.DetectedContentType } -func (t *GetHushes_Hushes_Edges_Node) GetSecretName() *string { +func (t *GetAllFiles_Files_Edges_Node) GetDetectedMimeType() *string { if t == nil { - t = &GetHushes_Hushes_Edges_Node{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.SecretName + return t.DetectedMimeType } -func (t *GetHushes_Hushes_Edges_Node) GetIntegrations() []*GetHushes_Hushes_Edges_Node_Integrations { +func (t *GetAllFiles_Files_Edges_Node) GetID() string { if t == nil { - t = &GetHushes_Hushes_Edges_Node{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.Integrations + return t.ID } -func (t *GetHushes_Hushes_Edges_Node) GetOrganization() []*GetHushes_Hushes_Edges_Node_Organization { +func (t *GetAllFiles_Files_Edges_Node) GetMd5Hash() *string { if t == nil { - t = &GetHushes_Hushes_Edges_Node{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.Organization + return t.Md5Hash } -func (t *GetHushes_Hushes_Edges_Node) GetEvents() []*GetHushes_Hushes_Edges_Node_Events { +func (t *GetAllFiles_Files_Edges_Node) GetPersistedFileSize() *int64 { if t == nil { - t = &GetHushes_Hushes_Edges_Node{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.Events + return t.PersistedFileSize } -func (t *GetHushes_Hushes_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllFiles_Files_Edges_Node) GetProvidedFileExtension() string { if t == nil { - t = &GetHushes_Hushes_Edges_Node{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.CreatedAt + return t.ProvidedFileExtension } -func (t *GetHushes_Hushes_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllFiles_Files_Edges_Node) GetProvidedFileName() string { if t == nil { - t = &GetHushes_Hushes_Edges_Node{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.UpdatedAt + return t.ProvidedFileName } -func (t *GetHushes_Hushes_Edges_Node) GetCreatedBy() *string { +func (t *GetAllFiles_Files_Edges_Node) GetProvidedFileSize() *int64 { if t == nil { - t = &GetHushes_Hushes_Edges_Node{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.CreatedBy + return t.ProvidedFileSize } -func (t *GetHushes_Hushes_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllFiles_Files_Edges_Node) GetStoragePath() *string { if t == nil { - t = &GetHushes_Hushes_Edges_Node{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.UpdatedBy + return t.StoragePath } - -type GetHushes_Hushes_Edges struct { - Node *GetHushes_Hushes_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +func (t *GetAllFiles_Files_Edges_Node) GetStorageScheme() *string { + if t == nil { + t = &GetAllFiles_Files_Edges_Node{} + } + return t.StorageScheme } - -func (t *GetHushes_Hushes_Edges) GetNode() *GetHushes_Hushes_Edges_Node { +func (t *GetAllFiles_Files_Edges_Node) GetStorageVolume() *string { if t == nil { - t = &GetHushes_Hushes_Edges{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.Node + return t.StorageVolume } - -type GetHushes_Hushes struct { - Edges []*GetHushes_Hushes_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +func (t *GetAllFiles_Files_Edges_Node) GetStoreKey() *string { + if t == nil { + t = &GetAllFiles_Files_Edges_Node{} + } + return t.StoreKey } - -func (t *GetHushes_Hushes) GetEdges() []*GetHushes_Hushes_Edges { +func (t *GetAllFiles_Files_Edges_Node) GetTags() []string { if t == nil { - t = &GetHushes_Hushes{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.Edges + return t.Tags } - -type UpdateHush_UpdateHush_Hush_Integrations struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetAllFiles_Files_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllFiles_Files_Edges_Node{} + } + return t.UpdatedAt } - -func (t *UpdateHush_UpdateHush_Hush_Integrations) GetID() string { +func (t *GetAllFiles_Files_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &UpdateHush_UpdateHush_Hush_Integrations{} + t = &GetAllFiles_Files_Edges_Node{} } - return t.ID + return t.UpdatedBy +} +func (t *GetAllFiles_Files_Edges_Node) GetURI() *string { + if t == nil { + t = &GetAllFiles_Files_Edges_Node{} + } + return t.URI } -type UpdateHush_UpdateHush_Hush_Organization struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllFiles_Files_Edges struct { + Node *GetAllFiles_Files_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *UpdateHush_UpdateHush_Hush_Organization) GetID() string { +func (t *GetAllFiles_Files_Edges) GetNode() *GetAllFiles_Files_Edges_Node { if t == nil { - t = &UpdateHush_UpdateHush_Hush_Organization{} + t = &GetAllFiles_Files_Edges{} } - return t.ID + return t.Node } -type UpdateHush_UpdateHush_Hush_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllFiles_Files struct { + Edges []*GetAllFiles_Files_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *UpdateHush_UpdateHush_Hush_Events) GetID() string { +func (t *GetAllFiles_Files) GetEdges() []*GetAllFiles_Files_Edges { if t == nil { - t = &UpdateHush_UpdateHush_Hush_Events{} + t = &GetAllFiles_Files{} } - return t.ID + return t.Edges } -type UpdateHush_UpdateHush_Hush struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" - Integrations []*UpdateHush_UpdateHush_Hush_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" - Organization []*UpdateHush_UpdateHush_Hush_Organization "json:\"organization,omitempty\" graphql:\"organization\"" - Events []*UpdateHush_UpdateHush_Hush_Events "json:\"events,omitempty\" graphql:\"events\"" +type GetFileByID_File struct { + CategoryType *string "json:\"categoryType,omitempty\" graphql:\"categoryType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DetectedContentType string "json:\"detectedContentType\" graphql:\"detectedContentType\"" + DetectedMimeType *string "json:\"detectedMimeType,omitempty\" graphql:\"detectedMimeType\"" + ID string "json:\"id\" graphql:\"id\"" + Md5Hash *string "json:\"md5Hash,omitempty\" graphql:\"md5Hash\"" + PersistedFileSize *int64 "json:\"persistedFileSize,omitempty\" graphql:\"persistedFileSize\"" + ProvidedFileExtension string "json:\"providedFileExtension\" graphql:\"providedFileExtension\"" + ProvidedFileName string "json:\"providedFileName\" graphql:\"providedFileName\"" + ProvidedFileSize *int64 "json:\"providedFileSize,omitempty\" graphql:\"providedFileSize\"" + StoragePath *string "json:\"storagePath,omitempty\" graphql:\"storagePath\"" + StorageScheme *string "json:\"storageScheme,omitempty\" graphql:\"storageScheme\"" + StorageVolume *string "json:\"storageVolume,omitempty\" graphql:\"storageVolume\"" + StoreKey *string "json:\"storeKey,omitempty\" graphql:\"storeKey\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + URI *string "json:\"uri,omitempty\" graphql:\"uri\"" } -func (t *UpdateHush_UpdateHush_Hush) GetDescription() *string { +func (t *GetFileByID_File) GetCategoryType() *string { if t == nil { - t = &UpdateHush_UpdateHush_Hush{} + t = &GetFileByID_File{} } - return t.Description + return t.CategoryType } -func (t *UpdateHush_UpdateHush_Hush) GetID() string { +func (t *GetFileByID_File) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateHush_UpdateHush_Hush{} + t = &GetFileByID_File{} } - return t.ID + return t.CreatedAt } -func (t *UpdateHush_UpdateHush_Hush) GetKind() *string { +func (t *GetFileByID_File) GetCreatedBy() *string { if t == nil { - t = &UpdateHush_UpdateHush_Hush{} + t = &GetFileByID_File{} } - return t.Kind + return t.CreatedBy } -func (t *UpdateHush_UpdateHush_Hush) GetName() string { +func (t *GetFileByID_File) GetDetectedContentType() string { if t == nil { - t = &UpdateHush_UpdateHush_Hush{} + t = &GetFileByID_File{} } - return t.Name + return t.DetectedContentType } -func (t *UpdateHush_UpdateHush_Hush) GetSecretName() *string { +func (t *GetFileByID_File) GetDetectedMimeType() *string { if t == nil { - t = &UpdateHush_UpdateHush_Hush{} + t = &GetFileByID_File{} } - return t.SecretName + return t.DetectedMimeType } -func (t *UpdateHush_UpdateHush_Hush) GetIntegrations() []*UpdateHush_UpdateHush_Hush_Integrations { +func (t *GetFileByID_File) GetID() string { if t == nil { - t = &UpdateHush_UpdateHush_Hush{} + t = &GetFileByID_File{} } - return t.Integrations + return t.ID } -func (t *UpdateHush_UpdateHush_Hush) GetOrganization() []*UpdateHush_UpdateHush_Hush_Organization { +func (t *GetFileByID_File) GetMd5Hash() *string { if t == nil { - t = &UpdateHush_UpdateHush_Hush{} + t = &GetFileByID_File{} } - return t.Organization + return t.Md5Hash } -func (t *UpdateHush_UpdateHush_Hush) GetEvents() []*UpdateHush_UpdateHush_Hush_Events { +func (t *GetFileByID_File) GetPersistedFileSize() *int64 { if t == nil { - t = &UpdateHush_UpdateHush_Hush{} + t = &GetFileByID_File{} } - return t.Events -} - -type UpdateHush_UpdateHush struct { - Hush UpdateHush_UpdateHush_Hush "json:\"hush\" graphql:\"hush\"" + return t.PersistedFileSize } - -func (t *UpdateHush_UpdateHush) GetHush() *UpdateHush_UpdateHush_Hush { +func (t *GetFileByID_File) GetProvidedFileExtension() string { if t == nil { - t = &UpdateHush_UpdateHush{} + t = &GetFileByID_File{} } - return &t.Hush -} - -type GetAllHushHistories_HushHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.ProvidedFileExtension } - -func (t *GetAllHushHistories_HushHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetFileByID_File) GetProvidedFileName() string { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges_Node{} + t = &GetFileByID_File{} } - return t.CreatedAt + return t.ProvidedFileName } -func (t *GetAllHushHistories_HushHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetFileByID_File) GetProvidedFileSize() *int64 { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges_Node{} + t = &GetFileByID_File{} } - return t.CreatedBy + return t.ProvidedFileSize } -func (t *GetAllHushHistories_HushHistories_Edges_Node) GetDescription() *string { +func (t *GetFileByID_File) GetStoragePath() *string { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges_Node{} + t = &GetFileByID_File{} } - return t.Description + return t.StoragePath } -func (t *GetAllHushHistories_HushHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetFileByID_File) GetStorageScheme() *string { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges_Node{} + t = &GetFileByID_File{} } - return &t.HistoryTime + return t.StorageScheme } -func (t *GetAllHushHistories_HushHistories_Edges_Node) GetID() string { +func (t *GetFileByID_File) GetStorageVolume() *string { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges_Node{} + t = &GetFileByID_File{} } - return t.ID + return t.StorageVolume } -func (t *GetAllHushHistories_HushHistories_Edges_Node) GetKind() *string { +func (t *GetFileByID_File) GetStoreKey() *string { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges_Node{} + t = &GetFileByID_File{} } - return t.Kind + return t.StoreKey } -func (t *GetAllHushHistories_HushHistories_Edges_Node) GetName() string { +func (t *GetFileByID_File) GetTags() []string { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges_Node{} + t = &GetFileByID_File{} } - return t.Name + return t.Tags } -func (t *GetAllHushHistories_HushHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetFileByID_File) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges_Node{} + t = &GetFileByID_File{} } - return &t.Operation + return t.UpdatedAt } -func (t *GetAllHushHistories_HushHistories_Edges_Node) GetRef() *string { +func (t *GetFileByID_File) GetUpdatedBy() *string { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges_Node{} + t = &GetFileByID_File{} } - return t.Ref + return t.UpdatedBy } -func (t *GetAllHushHistories_HushHistories_Edges_Node) GetSecretName() *string { +func (t *GetFileByID_File) GetURI() *string { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges_Node{} + t = &GetFileByID_File{} } - return t.SecretName + return t.URI } -func (t *GetAllHushHistories_HushHistories_Edges_Node) GetUpdatedAt() *time.Time { + +type GetFiles_Files_Edges_Node struct { + CategoryType *string "json:\"categoryType,omitempty\" graphql:\"categoryType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DetectedContentType string "json:\"detectedContentType\" graphql:\"detectedContentType\"" + DetectedMimeType *string "json:\"detectedMimeType,omitempty\" graphql:\"detectedMimeType\"" + ID string "json:\"id\" graphql:\"id\"" + Md5Hash *string "json:\"md5Hash,omitempty\" graphql:\"md5Hash\"" + PersistedFileSize *int64 "json:\"persistedFileSize,omitempty\" graphql:\"persistedFileSize\"" + ProvidedFileExtension string "json:\"providedFileExtension\" graphql:\"providedFileExtension\"" + ProvidedFileName string "json:\"providedFileName\" graphql:\"providedFileName\"" + ProvidedFileSize *int64 "json:\"providedFileSize,omitempty\" graphql:\"providedFileSize\"" + StoragePath *string "json:\"storagePath,omitempty\" graphql:\"storagePath\"" + StorageScheme *string "json:\"storageScheme,omitempty\" graphql:\"storageScheme\"" + StorageVolume *string "json:\"storageVolume,omitempty\" graphql:\"storageVolume\"" + StoreKey *string "json:\"storeKey,omitempty\" graphql:\"storeKey\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + URI *string "json:\"uri,omitempty\" graphql:\"uri\"" +} + +func (t *GetFiles_Files_Edges_Node) GetCategoryType() *string { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } - return t.UpdatedAt + return t.CategoryType } -func (t *GetAllHushHistories_HushHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetFiles_Files_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } - return t.UpdatedBy -} - -type GetAllHushHistories_HushHistories_Edges struct { - Node *GetAllHushHistories_HushHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return t.CreatedAt } - -func (t *GetAllHushHistories_HushHistories_Edges) GetNode() *GetAllHushHistories_HushHistories_Edges_Node { +func (t *GetFiles_Files_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllHushHistories_HushHistories_Edges{} + t = &GetFiles_Files_Edges_Node{} } - return t.Node + return t.CreatedBy } - -type GetAllHushHistories_HushHistories struct { - Edges []*GetAllHushHistories_HushHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +func (t *GetFiles_Files_Edges_Node) GetDetectedContentType() string { + if t == nil { + t = &GetFiles_Files_Edges_Node{} + } + return t.DetectedContentType } - -func (t *GetAllHushHistories_HushHistories) GetEdges() []*GetAllHushHistories_HushHistories_Edges { +func (t *GetFiles_Files_Edges_Node) GetDetectedMimeType() *string { if t == nil { - t = &GetAllHushHistories_HushHistories{} + t = &GetFiles_Files_Edges_Node{} } - return t.Edges + return t.DetectedMimeType } - -type GetHushHistories_HushHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +func (t *GetFiles_Files_Edges_Node) GetID() string { + if t == nil { + t = &GetFiles_Files_Edges_Node{} + } + return t.ID } - -func (t *GetHushHistories_HushHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetFiles_Files_Edges_Node) GetMd5Hash() *string { if t == nil { - t = &GetHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } - return t.CreatedAt + return t.Md5Hash } -func (t *GetHushHistories_HushHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetFiles_Files_Edges_Node) GetPersistedFileSize() *int64 { if t == nil { - t = &GetHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } - return t.CreatedBy + return t.PersistedFileSize } -func (t *GetHushHistories_HushHistories_Edges_Node) GetDescription() *string { +func (t *GetFiles_Files_Edges_Node) GetProvidedFileExtension() string { if t == nil { - t = &GetHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } - return t.Description + return t.ProvidedFileExtension } -func (t *GetHushHistories_HushHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetFiles_Files_Edges_Node) GetProvidedFileName() string { if t == nil { - t = &GetHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } - return &t.HistoryTime + return t.ProvidedFileName } -func (t *GetHushHistories_HushHistories_Edges_Node) GetID() string { +func (t *GetFiles_Files_Edges_Node) GetProvidedFileSize() *int64 { if t == nil { - t = &GetHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } - return t.ID + return t.ProvidedFileSize } -func (t *GetHushHistories_HushHistories_Edges_Node) GetKind() *string { +func (t *GetFiles_Files_Edges_Node) GetStoragePath() *string { if t == nil { - t = &GetHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } - return t.Kind + return t.StoragePath } -func (t *GetHushHistories_HushHistories_Edges_Node) GetName() string { +func (t *GetFiles_Files_Edges_Node) GetStorageScheme() *string { if t == nil { - t = &GetHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } - return t.Name + return t.StorageScheme } -func (t *GetHushHistories_HushHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetFiles_Files_Edges_Node) GetStorageVolume() *string { if t == nil { - t = &GetHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } - return &t.Operation + return t.StorageVolume } -func (t *GetHushHistories_HushHistories_Edges_Node) GetRef() *string { +func (t *GetFiles_Files_Edges_Node) GetStoreKey() *string { if t == nil { - t = &GetHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } - return t.Ref + return t.StoreKey } -func (t *GetHushHistories_HushHistories_Edges_Node) GetSecretName() *string { +func (t *GetFiles_Files_Edges_Node) GetTags() []string { if t == nil { - t = &GetHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } - return t.SecretName + return t.Tags } -func (t *GetHushHistories_HushHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetFiles_Files_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } return t.UpdatedAt } -func (t *GetHushHistories_HushHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetFiles_Files_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetHushHistories_HushHistories_Edges_Node{} + t = &GetFiles_Files_Edges_Node{} } return t.UpdatedBy } +func (t *GetFiles_Files_Edges_Node) GetURI() *string { + if t == nil { + t = &GetFiles_Files_Edges_Node{} + } + return t.URI +} -type GetHushHistories_HushHistories_Edges struct { - Node *GetHushHistories_HushHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetFiles_Files_Edges struct { + Node *GetFiles_Files_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetHushHistories_HushHistories_Edges) GetNode() *GetHushHistories_HushHistories_Edges_Node { +func (t *GetFiles_Files_Edges) GetNode() *GetFiles_Files_Edges_Node { if t == nil { - t = &GetHushHistories_HushHistories_Edges{} + t = &GetFiles_Files_Edges{} } return t.Node } -type GetHushHistories_HushHistories struct { - Edges []*GetHushHistories_HushHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetFiles_Files struct { + Edges []*GetFiles_Files_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetHushHistories_HushHistories) GetEdges() []*GetHushHistories_HushHistories_Edges { +func (t *GetFiles_Files) GetEdges() []*GetFiles_Files_Edges { if t == nil { - t = &GetHushHistories_HushHistories{} + t = &GetFiles_Files{} } return t.Edges } -type CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllFileHistories_FileHistories_Edges_Node struct { + CategoryType *string "json:\"categoryType,omitempty\" graphql:\"categoryType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DetectedContentType string "json:\"detectedContentType\" graphql:\"detectedContentType\"" + DetectedMimeType *string "json:\"detectedMimeType,omitempty\" graphql:\"detectedMimeType\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Md5Hash *string "json:\"md5Hash,omitempty\" graphql:\"md5Hash\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + PersistedFileSize *int64 "json:\"persistedFileSize,omitempty\" graphql:\"persistedFileSize\"" + ProvidedFileExtension string "json:\"providedFileExtension\" graphql:\"providedFileExtension\"" + ProvidedFileName string "json:\"providedFileName\" graphql:\"providedFileName\"" + ProvidedFileSize *int64 "json:\"providedFileSize,omitempty\" graphql:\"providedFileSize\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + StoragePath *string "json:\"storagePath,omitempty\" graphql:\"storagePath\"" + StorageScheme *string "json:\"storageScheme,omitempty\" graphql:\"storageScheme\"" + StorageVolume *string "json:\"storageVolume,omitempty\" graphql:\"storageVolume\"" + StoreKey *string "json:\"storeKey,omitempty\" graphql:\"storeKey\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + URI *string "json:\"uri,omitempty\" graphql:\"uri\"" } -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Owner) GetID() string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetCategoryType() *string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Owner{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Secrets struct { - ID string "json:\"id\" graphql:\"id\"" + return t.CategoryType } - -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Secrets) GetID() string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Secrets{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Oauth2tokens struct { - ID string "json:\"id\" graphql:\"id\"" + return t.CreatedAt } - -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Oauth2tokens) GetID() string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Oauth2tokens{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.ID + return t.CreatedBy } - -type CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Events struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetDetectedContentType() string { + if t == nil { + t = &GetAllFileHistories_FileHistories_Edges_Node{} + } + return t.DetectedContentType } - -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Events) GetID() string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetDetectedMimeType() *string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Events{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.ID + return t.DetectedMimeType } - -type CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks struct { - ID string "json:\"id\" graphql:\"id\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetAllFileHistories_FileHistories_Edges_Node{} + } + return &t.HistoryTime } - -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks) GetID() string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } return t.ID } -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks) GetDestinationURL() string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetMd5Hash() *string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.DestinationURL + return t.Md5Hash } -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks) GetEnabled() bool { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.Enabled -} - -type CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Owner *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Secrets []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" - Oauth2tokens []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" - Events []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Events "json:\"events,omitempty\" graphql:\"events\"" - Webhooks []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" + return &t.Operation } - -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetDescription() *string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetPersistedFileSize() *int64 { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.Description + return t.PersistedFileSize } -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetID() string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetProvidedFileExtension() string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.ID + return t.ProvidedFileExtension } -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetKind() *string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetProvidedFileName() string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.Kind + return t.ProvidedFileName } -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetName() string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetProvidedFileSize() *int64 { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.Name + return t.ProvidedFileSize } -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetOwnerID() *string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetRef() *string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.OwnerID + return t.Ref } -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetOwner() *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Owner { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetStoragePath() *string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.Owner + return t.StoragePath } -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetSecrets() []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Secrets { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetStorageScheme() *string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.Secrets + return t.StorageScheme } -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetOauth2tokens() []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Oauth2tokens { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetStorageVolume() *string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.Oauth2tokens + return t.StorageVolume } -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetEvents() []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Events { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetStoreKey() *string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.Events + return t.StoreKey } -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetWebhooks() []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetTags() []string { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.Webhooks -} - -type CreateBulkCSVIntegration_CreateBulkCSVIntegration struct { - Integrations []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" + return t.Tags } - -func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration) GetIntegrations() []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.Integrations -} - -type CreateBulkIntegration_CreateBulkIntegration_Integrations_Owner struct { - ID string "json:\"id\" graphql:\"id\"" + return t.UpdatedAt } - -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Owner) GetID() string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Owner{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkIntegration_CreateBulkIntegration_Integrations_Secrets struct { - ID string "json:\"id\" graphql:\"id\"" + return t.UpdatedBy } - -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Secrets) GetID() string { +func (t *GetAllFileHistories_FileHistories_Edges_Node) GetURI() *string { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Secrets{} + t = &GetAllFileHistories_FileHistories_Edges_Node{} } - return t.ID + return t.URI } -type CreateBulkIntegration_CreateBulkIntegration_Integrations_Oauth2tokens struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllFileHistories_FileHistories_Edges struct { + Node *GetAllFileHistories_FileHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Oauth2tokens) GetID() string { +func (t *GetAllFileHistories_FileHistories_Edges) GetNode() *GetAllFileHistories_FileHistories_Edges_Node { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Oauth2tokens{} + t = &GetAllFileHistories_FileHistories_Edges{} } - return t.ID + return t.Node } -type CreateBulkIntegration_CreateBulkIntegration_Integrations_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllFileHistories_FileHistories struct { + Edges []*GetAllFileHistories_FileHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Events) GetID() string { +func (t *GetAllFileHistories_FileHistories) GetEdges() []*GetAllFileHistories_FileHistories_Edges { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Events{} + t = &GetAllFileHistories_FileHistories{} } - return t.ID + return t.Edges } -type CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks struct { - ID string "json:\"id\" graphql:\"id\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" +type GetFileHistories_FileHistories_Edges_Node struct { + CategoryType *string "json:\"categoryType,omitempty\" graphql:\"categoryType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DetectedContentType string "json:\"detectedContentType\" graphql:\"detectedContentType\"" + DetectedMimeType *string "json:\"detectedMimeType,omitempty\" graphql:\"detectedMimeType\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Md5Hash *string "json:\"md5Hash,omitempty\" graphql:\"md5Hash\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + PersistedFileSize *int64 "json:\"persistedFileSize,omitempty\" graphql:\"persistedFileSize\"" + ProvidedFileExtension string "json:\"providedFileExtension\" graphql:\"providedFileExtension\"" + ProvidedFileName string "json:\"providedFileName\" graphql:\"providedFileName\"" + ProvidedFileSize *int64 "json:\"providedFileSize,omitempty\" graphql:\"providedFileSize\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + StoragePath *string "json:\"storagePath,omitempty\" graphql:\"storagePath\"" + StorageScheme *string "json:\"storageScheme,omitempty\" graphql:\"storageScheme\"" + StorageVolume *string "json:\"storageVolume,omitempty\" graphql:\"storageVolume\"" + StoreKey *string "json:\"storeKey,omitempty\" graphql:\"storeKey\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + URI *string "json:\"uri,omitempty\" graphql:\"uri\"" } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks) GetID() string { +func (t *GetFileHistories_FileHistories_Edges_Node) GetCategoryType() *string { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.ID + return t.CategoryType } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks) GetDestinationURL() string { +func (t *GetFileHistories_FileHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.DestinationURL + return t.CreatedAt } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks) GetEnabled() bool { +func (t *GetFileHistories_FileHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.Enabled -} - -type CreateBulkIntegration_CreateBulkIntegration_Integrations struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Owner *CreateBulkIntegration_CreateBulkIntegration_Integrations_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Secrets []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" - Oauth2tokens []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" - Events []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Events "json:\"events,omitempty\" graphql:\"events\"" - Webhooks []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" + return t.CreatedBy } - -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetDescription() *string { +func (t *GetFileHistories_FileHistories_Edges_Node) GetDetectedContentType() string { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.Description + return t.DetectedContentType } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetID() string { +func (t *GetFileHistories_FileHistories_Edges_Node) GetDetectedMimeType() *string { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.ID + return t.DetectedMimeType } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetKind() *string { +func (t *GetFileHistories_FileHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.Kind + return &t.HistoryTime } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetName() string { +func (t *GetFileHistories_FileHistories_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.Name + return t.ID } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetOwnerID() *string { +func (t *GetFileHistories_FileHistories_Edges_Node) GetMd5Hash() *string { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.OwnerID + return t.Md5Hash } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetOwner() *CreateBulkIntegration_CreateBulkIntegration_Integrations_Owner { +func (t *GetFileHistories_FileHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.Owner + return &t.Operation } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetSecrets() []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Secrets { +func (t *GetFileHistories_FileHistories_Edges_Node) GetPersistedFileSize() *int64 { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.Secrets + return t.PersistedFileSize } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetOauth2tokens() []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Oauth2tokens { +func (t *GetFileHistories_FileHistories_Edges_Node) GetProvidedFileExtension() string { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.Oauth2tokens + return t.ProvidedFileExtension } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetEvents() []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Events { +func (t *GetFileHistories_FileHistories_Edges_Node) GetProvidedFileName() string { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.Events + return t.ProvidedFileName } -func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetWebhooks() []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks { +func (t *GetFileHistories_FileHistories_Edges_Node) GetProvidedFileSize() *int64 { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.Webhooks + return t.ProvidedFileSize } - -type CreateBulkIntegration_CreateBulkIntegration struct { - Integrations []*CreateBulkIntegration_CreateBulkIntegration_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" +func (t *GetFileHistories_FileHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetFileHistories_FileHistories_Edges_Node{} + } + return t.Ref } - -func (t *CreateBulkIntegration_CreateBulkIntegration) GetIntegrations() []*CreateBulkIntegration_CreateBulkIntegration_Integrations { +func (t *GetFileHistories_FileHistories_Edges_Node) GetStoragePath() *string { if t == nil { - t = &CreateBulkIntegration_CreateBulkIntegration{} + t = &GetFileHistories_FileHistories_Edges_Node{} } - return t.Integrations + return t.StoragePath +} +func (t *GetFileHistories_FileHistories_Edges_Node) GetStorageScheme() *string { + if t == nil { + t = &GetFileHistories_FileHistories_Edges_Node{} + } + return t.StorageScheme +} +func (t *GetFileHistories_FileHistories_Edges_Node) GetStorageVolume() *string { + if t == nil { + t = &GetFileHistories_FileHistories_Edges_Node{} + } + return t.StorageVolume +} +func (t *GetFileHistories_FileHistories_Edges_Node) GetStoreKey() *string { + if t == nil { + t = &GetFileHistories_FileHistories_Edges_Node{} + } + return t.StoreKey +} +func (t *GetFileHistories_FileHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetFileHistories_FileHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetFileHistories_FileHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetFileHistories_FileHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetFileHistories_FileHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetFileHistories_FileHistories_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetFileHistories_FileHistories_Edges_Node) GetURI() *string { + if t == nil { + t = &GetFileHistories_FileHistories_Edges_Node{} + } + return t.URI } -type CreateIntegration_CreateIntegration_Integration_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type GetFileHistories_FileHistories_Edges struct { + Node *GetFileHistories_FileHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateIntegration_CreateIntegration_Integration_Owner) GetID() string { +func (t *GetFileHistories_FileHistories_Edges) GetNode() *GetFileHistories_FileHistories_Edges_Node { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration_Owner{} + t = &GetFileHistories_FileHistories_Edges{} } - return t.ID + return t.Node } -type CreateIntegration_CreateIntegration_Integration_Secrets struct { - ID string "json:\"id\" graphql:\"id\"" +type GetFileHistories_FileHistories struct { + Edges []*GetFileHistories_FileHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateIntegration_CreateIntegration_Integration_Secrets) GetID() string { +func (t *GetFileHistories_FileHistories) GetEdges() []*GetFileHistories_FileHistories_Edges { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration_Secrets{} + t = &GetFileHistories_FileHistories{} } - return t.ID + return t.Edges } -type CreateIntegration_CreateIntegration_Integration_Oauth2tokens struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner struct { + ID string "json:\"id\" graphql:\"id\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" } -func (t *CreateIntegration_CreateIntegration_Integration_Oauth2tokens) GetID() string { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner) GetID() string { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration_Oauth2tokens{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner{} } return t.ID } +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner) GetDisplayName() string { + if t == nil { + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner{} + } + return t.DisplayName +} -type CreateIntegration_CreateIntegration_Integration_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting struct { + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" } -func (t *CreateIntegration_CreateIntegration_Integration_Events) GetID() string { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting) GetID() string { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration_Events{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting{} } return t.ID } +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting) GetJoinPolicy() *enums.JoinPolicy { + if t == nil { + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting{} + } + return &t.JoinPolicy +} +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting) GetSyncToGithub() *bool { + if t == nil { + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting{} + } + return t.SyncToGithub +} +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting) GetSyncToSlack() *bool { + if t == nil { + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting{} + } + return t.SyncToSlack +} +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting) GetTags() []string { + if t == nil { + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting{} + } + return t.Tags +} +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting) GetVisibility() *enums.Visibility { + if t == nil { + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting{} + } + return &t.Visibility +} -type CreateIntegration_CreateIntegration_Integration_Webhooks struct { - ID string "json:\"id\" graphql:\"id\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" +type CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User struct { + ID string "json:\"id\" graphql:\"id\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" } -func (t *CreateIntegration_CreateIntegration_Integration_Webhooks) GetID() string { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User) GetID() string { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration_Webhooks{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User{} } return t.ID } -func (t *CreateIntegration_CreateIntegration_Integration_Webhooks) GetDestinationURL() string { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User) GetFirstName() *string { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration_Webhooks{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User{} } - return t.DestinationURL + return t.FirstName } -func (t *CreateIntegration_CreateIntegration_Integration_Webhooks) GetEnabled() bool { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User) GetLastName() *string { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration_Webhooks{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User{} } - return t.Enabled + return t.LastName } -type CreateIntegration_CreateIntegration_Integration struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Owner *CreateIntegration_CreateIntegration_Integration_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Secrets []*CreateIntegration_CreateIntegration_Integration_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" - Oauth2tokens []*CreateIntegration_CreateIntegration_Integration_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" - Events []*CreateIntegration_CreateIntegration_Integration_Events "json:\"events,omitempty\" graphql:\"events\"" - Webhooks []*CreateIntegration_CreateIntegration_Integration_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" +type CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + User CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User "json:\"user\" graphql:\"user\"" } -func (t *CreateIntegration_CreateIntegration_Integration) GetDescription() *string { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members) GetID() string { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members{} } - return t.Description + return t.ID } -func (t *CreateIntegration_CreateIntegration_Integration) GetID() string { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members) GetRole() *enums.Role { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members{} } - return t.ID + return &t.Role } -func (t *CreateIntegration_CreateIntegration_Integration) GetKind() *string { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members) GetUser() *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members_User { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members{} } - return t.Kind + return &t.User } -func (t *CreateIntegration_CreateIntegration_Integration) GetName() string { + +type CreateBulkCSVGroup_CreateBulkCSVGroup_Groups struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + ID string "json:\"id\" graphql:\"id\"" + LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" + Name string "json:\"name\" graphql:\"name\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Owner *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Setting CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting "json:\"setting\" graphql:\"setting\"" + Members []*CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members "json:\"members,omitempty\" graphql:\"members\"" +} + +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetDescription() *string { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} } - return t.Name + return t.Description } -func (t *CreateIntegration_CreateIntegration_Integration) GetOwnerID() *string { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetDisplayName() string { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} } - return t.OwnerID + return t.DisplayName } -func (t *CreateIntegration_CreateIntegration_Integration) GetOwner() *CreateIntegration_CreateIntegration_Integration_Owner { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetID() string { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} } - return t.Owner + return t.ID } -func (t *CreateIntegration_CreateIntegration_Integration) GetSecrets() []*CreateIntegration_CreateIntegration_Integration_Secrets { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetLogoURL() *string { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} } - return t.Secrets + return t.LogoURL } -func (t *CreateIntegration_CreateIntegration_Integration) GetOauth2tokens() []*CreateIntegration_CreateIntegration_Integration_Oauth2tokens { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetName() string { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} } - return t.Oauth2tokens + return t.Name } -func (t *CreateIntegration_CreateIntegration_Integration) GetEvents() []*CreateIntegration_CreateIntegration_Integration_Events { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetTags() []string { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} } - return t.Events + return t.Tags } -func (t *CreateIntegration_CreateIntegration_Integration) GetWebhooks() []*CreateIntegration_CreateIntegration_Integration_Webhooks { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetOwner() *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Owner { if t == nil { - t = &CreateIntegration_CreateIntegration_Integration{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} } - return t.Webhooks + return t.Owner } - -type CreateIntegration_CreateIntegration struct { - Integration CreateIntegration_CreateIntegration_Integration "json:\"integration\" graphql:\"integration\"" +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetSetting() *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Setting { + if t == nil { + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} + } + return &t.Setting } - -func (t *CreateIntegration_CreateIntegration) GetIntegration() *CreateIntegration_CreateIntegration_Integration { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup_Groups) GetMembers() []*CreateBulkCSVGroup_CreateBulkCSVGroup_Groups_Members { if t == nil { - t = &CreateIntegration_CreateIntegration{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup_Groups{} } - return &t.Integration + return t.Members } -type DeleteIntegration_DeleteIntegration struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type CreateBulkCSVGroup_CreateBulkCSVGroup struct { + Groups []*CreateBulkCSVGroup_CreateBulkCSVGroup_Groups "json:\"groups,omitempty\" graphql:\"groups\"" } -func (t *DeleteIntegration_DeleteIntegration) GetDeletedID() string { +func (t *CreateBulkCSVGroup_CreateBulkCSVGroup) GetGroups() []*CreateBulkCSVGroup_CreateBulkCSVGroup_Groups { if t == nil { - t = &DeleteIntegration_DeleteIntegration{} + t = &CreateBulkCSVGroup_CreateBulkCSVGroup{} } - return t.DeletedID + return t.Groups } -type GetAllIntegrations_Integrations_Edges_Node_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateBulkGroup_CreateBulkGroup_Groups_Owner struct { + ID string "json:\"id\" graphql:\"id\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" } -func (t *GetAllIntegrations_Integrations_Edges_Node_Owner) GetID() string { +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Owner) GetID() string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node_Owner{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Owner{} } return t.ID } - -type GetAllIntegrations_Integrations_Edges_Node_Secrets struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *GetAllIntegrations_Integrations_Edges_Node_Secrets) GetID() string { +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Owner) GetDisplayName() string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node_Secrets{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Owner{} } - return t.ID + return t.DisplayName } -type GetAllIntegrations_Integrations_Edges_Node_Oauth2tokens struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateBulkGroup_CreateBulkGroup_Groups_Setting struct { + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" } -func (t *GetAllIntegrations_Integrations_Edges_Node_Oauth2tokens) GetID() string { +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Setting) GetID() string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node_Oauth2tokens{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Setting{} } return t.ID } - -type GetAllIntegrations_Integrations_Edges_Node_Events struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *GetAllIntegrations_Integrations_Edges_Node_Events) GetID() string { +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Setting) GetJoinPolicy() *enums.JoinPolicy { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node_Events{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Setting{} } - return t.ID + return &t.JoinPolicy } - -type GetAllIntegrations_Integrations_Edges_Node_Webhooks struct { - ID string "json:\"id\" graphql:\"id\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Setting) GetSyncToGithub() *bool { + if t == nil { + t = &CreateBulkGroup_CreateBulkGroup_Groups_Setting{} + } + return t.SyncToGithub } - -func (t *GetAllIntegrations_Integrations_Edges_Node_Webhooks) GetID() string { +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Setting) GetSyncToSlack() *bool { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node_Webhooks{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Setting{} } - return t.ID + return t.SyncToSlack } -func (t *GetAllIntegrations_Integrations_Edges_Node_Webhooks) GetDestinationURL() string { +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Setting) GetTags() []string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node_Webhooks{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Setting{} } - return t.DestinationURL + return t.Tags } -func (t *GetAllIntegrations_Integrations_Edges_Node_Webhooks) GetEnabled() bool { +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Setting) GetVisibility() *enums.Visibility { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node_Webhooks{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Setting{} } - return t.Enabled + return &t.Visibility } -type GetAllIntegrations_Integrations_Edges_Node struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Owner *GetAllIntegrations_Integrations_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Secrets []*GetAllIntegrations_Integrations_Edges_Node_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" - Oauth2tokens []*GetAllIntegrations_Integrations_Edges_Node_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" - Events []*GetAllIntegrations_Integrations_Edges_Node_Events "json:\"events,omitempty\" graphql:\"events\"" - Webhooks []*GetAllIntegrations_Integrations_Edges_Node_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateBulkGroup_CreateBulkGroup_Groups_Members_User struct { + ID string "json:\"id\" graphql:\"id\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetDescription() *string { +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Members_User) GetID() string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Members_User{} } - return t.Description + return t.ID } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetID() string { +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Members_User) GetFirstName() *string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Members_User{} } - return t.ID + return t.FirstName } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetKind() *string { +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Members_User) GetLastName() *string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Members_User{} } - return t.Kind + return t.LastName } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetName() string { + +type CreateBulkGroup_CreateBulkGroup_Groups_Members struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + User CreateBulkGroup_CreateBulkGroup_Groups_Members_User "json:\"user\" graphql:\"user\"" +} + +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Members) GetID() string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Members{} } - return t.Name + return t.ID } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetOwnerID() *string { +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Members) GetRole() *enums.Role { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Members{} } - return t.OwnerID + return &t.Role } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetOwner() *GetAllIntegrations_Integrations_Edges_Node_Owner { +func (t *CreateBulkGroup_CreateBulkGroup_Groups_Members) GetUser() *CreateBulkGroup_CreateBulkGroup_Groups_Members_User { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups_Members{} } - return t.Owner + return &t.User } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetSecrets() []*GetAllIntegrations_Integrations_Edges_Node_Secrets { + +type CreateBulkGroup_CreateBulkGroup_Groups struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + ID string "json:\"id\" graphql:\"id\"" + LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" + Name string "json:\"name\" graphql:\"name\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Owner *CreateBulkGroup_CreateBulkGroup_Groups_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Setting CreateBulkGroup_CreateBulkGroup_Groups_Setting "json:\"setting\" graphql:\"setting\"" + Members []*CreateBulkGroup_CreateBulkGroup_Groups_Members "json:\"members,omitempty\" graphql:\"members\"" +} + +func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetDescription() *string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups{} } - return t.Secrets + return t.Description } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetOauth2tokens() []*GetAllIntegrations_Integrations_Edges_Node_Oauth2tokens { +func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetDisplayName() string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups{} } - return t.Oauth2tokens + return t.DisplayName } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetEvents() []*GetAllIntegrations_Integrations_Edges_Node_Events { +func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetID() string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups{} } - return t.Events + return t.ID } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetWebhooks() []*GetAllIntegrations_Integrations_Edges_Node_Webhooks { +func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetLogoURL() *string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups{} } - return t.Webhooks + return t.LogoURL } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetName() string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups{} } - return t.CreatedAt + return t.Name } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetCreatedBy() *string { +func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetTags() []string { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups{} } - return t.CreatedBy + return t.Tags } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetOwner() *CreateBulkGroup_CreateBulkGroup_Groups_Owner { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups{} } - return t.UpdatedAt + return t.Owner } -func (t *GetAllIntegrations_Integrations_Edges_Node) GetUpdatedBy() *string { +func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetSetting() *CreateBulkGroup_CreateBulkGroup_Groups_Setting { if t == nil { - t = &GetAllIntegrations_Integrations_Edges_Node{} + t = &CreateBulkGroup_CreateBulkGroup_Groups{} } - return t.UpdatedBy -} - -type GetAllIntegrations_Integrations_Edges struct { - Node *GetAllIntegrations_Integrations_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return &t.Setting } - -func (t *GetAllIntegrations_Integrations_Edges) GetNode() *GetAllIntegrations_Integrations_Edges_Node { +func (t *CreateBulkGroup_CreateBulkGroup_Groups) GetMembers() []*CreateBulkGroup_CreateBulkGroup_Groups_Members { if t == nil { - t = &GetAllIntegrations_Integrations_Edges{} + t = &CreateBulkGroup_CreateBulkGroup_Groups{} } - return t.Node + return t.Members } -type GetAllIntegrations_Integrations struct { - Edges []*GetAllIntegrations_Integrations_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateBulkGroup_CreateBulkGroup struct { + Groups []*CreateBulkGroup_CreateBulkGroup_Groups "json:\"groups,omitempty\" graphql:\"groups\"" } -func (t *GetAllIntegrations_Integrations) GetEdges() []*GetAllIntegrations_Integrations_Edges { +func (t *CreateBulkGroup_CreateBulkGroup) GetGroups() []*CreateBulkGroup_CreateBulkGroup_Groups { if t == nil { - t = &GetAllIntegrations_Integrations{} + t = &CreateBulkGroup_CreateBulkGroup{} } - return t.Edges + return t.Groups } -type GetIntegrationByID_Integration_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateGroup_CreateGroup_Group_Owner struct { + ID string "json:\"id\" graphql:\"id\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" } -func (t *GetIntegrationByID_Integration_Owner) GetID() string { +func (t *CreateGroup_CreateGroup_Group_Owner) GetID() string { if t == nil { - t = &GetIntegrationByID_Integration_Owner{} + t = &CreateGroup_CreateGroup_Group_Owner{} } return t.ID } - -type GetIntegrationByID_Integration_Secrets struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *CreateGroup_CreateGroup_Group_Owner) GetDisplayName() string { + if t == nil { + t = &CreateGroup_CreateGroup_Group_Owner{} + } + return t.DisplayName } -func (t *GetIntegrationByID_Integration_Secrets) GetID() string { +type CreateGroup_CreateGroup_Group_Setting struct { + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" +} + +func (t *CreateGroup_CreateGroup_Group_Setting) GetID() string { if t == nil { - t = &GetIntegrationByID_Integration_Secrets{} + t = &CreateGroup_CreateGroup_Group_Setting{} } return t.ID } - -type GetIntegrationByID_Integration_Oauth2tokens struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *CreateGroup_CreateGroup_Group_Setting) GetJoinPolicy() *enums.JoinPolicy { + if t == nil { + t = &CreateGroup_CreateGroup_Group_Setting{} + } + return &t.JoinPolicy } - -func (t *GetIntegrationByID_Integration_Oauth2tokens) GetID() string { +func (t *CreateGroup_CreateGroup_Group_Setting) GetSyncToGithub() *bool { if t == nil { - t = &GetIntegrationByID_Integration_Oauth2tokens{} + t = &CreateGroup_CreateGroup_Group_Setting{} } - return t.ID + return t.SyncToGithub +} +func (t *CreateGroup_CreateGroup_Group_Setting) GetSyncToSlack() *bool { + if t == nil { + t = &CreateGroup_CreateGroup_Group_Setting{} + } + return t.SyncToSlack +} +func (t *CreateGroup_CreateGroup_Group_Setting) GetTags() []string { + if t == nil { + t = &CreateGroup_CreateGroup_Group_Setting{} + } + return t.Tags +} +func (t *CreateGroup_CreateGroup_Group_Setting) GetVisibility() *enums.Visibility { + if t == nil { + t = &CreateGroup_CreateGroup_Group_Setting{} + } + return &t.Visibility } -type GetIntegrationByID_Integration_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type CreateGroup_CreateGroup_Group_Members_User struct { + ID string "json:\"id\" graphql:\"id\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" } -func (t *GetIntegrationByID_Integration_Events) GetID() string { +func (t *CreateGroup_CreateGroup_Group_Members_User) GetID() string { if t == nil { - t = &GetIntegrationByID_Integration_Events{} + t = &CreateGroup_CreateGroup_Group_Members_User{} } return t.ID } +func (t *CreateGroup_CreateGroup_Group_Members_User) GetFirstName() *string { + if t == nil { + t = &CreateGroup_CreateGroup_Group_Members_User{} + } + return t.FirstName +} +func (t *CreateGroup_CreateGroup_Group_Members_User) GetLastName() *string { + if t == nil { + t = &CreateGroup_CreateGroup_Group_Members_User{} + } + return t.LastName +} -type GetIntegrationByID_Integration_Webhooks struct { - ID string "json:\"id\" graphql:\"id\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" +type CreateGroup_CreateGroup_Group_Members struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + User CreateGroup_CreateGroup_Group_Members_User "json:\"user\" graphql:\"user\"" } -func (t *GetIntegrationByID_Integration_Webhooks) GetID() string { +func (t *CreateGroup_CreateGroup_Group_Members) GetID() string { if t == nil { - t = &GetIntegrationByID_Integration_Webhooks{} + t = &CreateGroup_CreateGroup_Group_Members{} } return t.ID } -func (t *GetIntegrationByID_Integration_Webhooks) GetDestinationURL() string { +func (t *CreateGroup_CreateGroup_Group_Members) GetRole() *enums.Role { if t == nil { - t = &GetIntegrationByID_Integration_Webhooks{} + t = &CreateGroup_CreateGroup_Group_Members{} } - return t.DestinationURL + return &t.Role } -func (t *GetIntegrationByID_Integration_Webhooks) GetEnabled() bool { +func (t *CreateGroup_CreateGroup_Group_Members) GetUser() *CreateGroup_CreateGroup_Group_Members_User { if t == nil { - t = &GetIntegrationByID_Integration_Webhooks{} + t = &CreateGroup_CreateGroup_Group_Members{} } - return t.Enabled + return &t.User } -type GetIntegrationByID_Integration struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Owner *GetIntegrationByID_Integration_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Secrets []*GetIntegrationByID_Integration_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" - Oauth2tokens []*GetIntegrationByID_Integration_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" - Events []*GetIntegrationByID_Integration_Events "json:\"events,omitempty\" graphql:\"events\"" - Webhooks []*GetIntegrationByID_Integration_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateGroup_CreateGroup_Group struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + ID string "json:\"id\" graphql:\"id\"" + LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" + Name string "json:\"name\" graphql:\"name\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Owner *CreateGroup_CreateGroup_Group_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Setting CreateGroup_CreateGroup_Group_Setting "json:\"setting\" graphql:\"setting\"" + Members []*CreateGroup_CreateGroup_Group_Members "json:\"members,omitempty\" graphql:\"members\"" } -func (t *GetIntegrationByID_Integration) GetDescription() *string { +func (t *CreateGroup_CreateGroup_Group) GetDescription() *string { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &CreateGroup_CreateGroup_Group{} } return t.Description } -func (t *GetIntegrationByID_Integration) GetID() string { +func (t *CreateGroup_CreateGroup_Group) GetDisplayName() string { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &CreateGroup_CreateGroup_Group{} + } + return t.DisplayName +} +func (t *CreateGroup_CreateGroup_Group) GetID() string { + if t == nil { + t = &CreateGroup_CreateGroup_Group{} } return t.ID } -func (t *GetIntegrationByID_Integration) GetKind() *string { +func (t *CreateGroup_CreateGroup_Group) GetLogoURL() *string { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &CreateGroup_CreateGroup_Group{} } - return t.Kind + return t.LogoURL } -func (t *GetIntegrationByID_Integration) GetName() string { +func (t *CreateGroup_CreateGroup_Group) GetName() string { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &CreateGroup_CreateGroup_Group{} } return t.Name } -func (t *GetIntegrationByID_Integration) GetOwnerID() *string { +func (t *CreateGroup_CreateGroup_Group) GetTags() []string { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &CreateGroup_CreateGroup_Group{} } - return t.OwnerID + return t.Tags } -func (t *GetIntegrationByID_Integration) GetOwner() *GetIntegrationByID_Integration_Owner { +func (t *CreateGroup_CreateGroup_Group) GetOwner() *CreateGroup_CreateGroup_Group_Owner { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &CreateGroup_CreateGroup_Group{} } return t.Owner } -func (t *GetIntegrationByID_Integration) GetSecrets() []*GetIntegrationByID_Integration_Secrets { +func (t *CreateGroup_CreateGroup_Group) GetSetting() *CreateGroup_CreateGroup_Group_Setting { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &CreateGroup_CreateGroup_Group{} } - return t.Secrets + return &t.Setting } -func (t *GetIntegrationByID_Integration) GetOauth2tokens() []*GetIntegrationByID_Integration_Oauth2tokens { +func (t *CreateGroup_CreateGroup_Group) GetMembers() []*CreateGroup_CreateGroup_Group_Members { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &CreateGroup_CreateGroup_Group{} } - return t.Oauth2tokens + return t.Members } -func (t *GetIntegrationByID_Integration) GetEvents() []*GetIntegrationByID_Integration_Events { + +type CreateGroup_CreateGroup struct { + Group CreateGroup_CreateGroup_Group "json:\"group\" graphql:\"group\"" +} + +func (t *CreateGroup_CreateGroup) GetGroup() *CreateGroup_CreateGroup_Group { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &CreateGroup_CreateGroup{} } - return t.Events + return &t.Group } -func (t *GetIntegrationByID_Integration) GetWebhooks() []*GetIntegrationByID_Integration_Webhooks { + +type DeleteGroup_DeleteGroup struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +} + +func (t *DeleteGroup_DeleteGroup) GetDeletedID() string { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &DeleteGroup_DeleteGroup{} } - return t.Webhooks + return t.DeletedID } -func (t *GetIntegrationByID_Integration) GetCreatedAt() *time.Time { + +type GetAllGroups_Groups_Edges_Node_Owner struct { + ID string "json:\"id\" graphql:\"id\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" +} + +func (t *GetAllGroups_Groups_Edges_Node_Owner) GetID() string { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &GetAllGroups_Groups_Edges_Node_Owner{} + } + return t.ID +} +func (t *GetAllGroups_Groups_Edges_Node_Owner) GetDisplayName() string { + if t == nil { + t = &GetAllGroups_Groups_Edges_Node_Owner{} + } + return t.DisplayName +} + +type GetAllGroups_Groups_Edges_Node_Setting struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" +} + +func (t *GetAllGroups_Groups_Edges_Node_Setting) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllGroups_Groups_Edges_Node_Setting{} } return t.CreatedAt } -func (t *GetIntegrationByID_Integration) GetCreatedBy() *string { +func (t *GetAllGroups_Groups_Edges_Node_Setting) GetCreatedBy() *string { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &GetAllGroups_Groups_Edges_Node_Setting{} } return t.CreatedBy } -func (t *GetIntegrationByID_Integration) GetUpdatedAt() *time.Time { +func (t *GetAllGroups_Groups_Edges_Node_Setting) GetID() string { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &GetAllGroups_Groups_Edges_Node_Setting{} } - return t.UpdatedAt + return t.ID } -func (t *GetIntegrationByID_Integration) GetUpdatedBy() *string { +func (t *GetAllGroups_Groups_Edges_Node_Setting) GetJoinPolicy() *enums.JoinPolicy { if t == nil { - t = &GetIntegrationByID_Integration{} + t = &GetAllGroups_Groups_Edges_Node_Setting{} } - return t.UpdatedBy + return &t.JoinPolicy } - -type GetIntegrations_Integrations_Edges_Node_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetAllGroups_Groups_Edges_Node_Setting) GetSyncToGithub() *bool { + if t == nil { + t = &GetAllGroups_Groups_Edges_Node_Setting{} + } + return t.SyncToGithub } - -func (t *GetIntegrations_Integrations_Edges_Node_Owner) GetID() string { +func (t *GetAllGroups_Groups_Edges_Node_Setting) GetSyncToSlack() *bool { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node_Owner{} + t = &GetAllGroups_Groups_Edges_Node_Setting{} } - return t.ID + return t.SyncToSlack } - -type GetIntegrations_Integrations_Edges_Node_Secrets struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetAllGroups_Groups_Edges_Node_Setting) GetTags() []string { + if t == nil { + t = &GetAllGroups_Groups_Edges_Node_Setting{} + } + return t.Tags } - -func (t *GetIntegrations_Integrations_Edges_Node_Secrets) GetID() string { +func (t *GetAllGroups_Groups_Edges_Node_Setting) GetUpdatedAt() *time.Time { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node_Secrets{} + t = &GetAllGroups_Groups_Edges_Node_Setting{} } - return t.ID + return t.UpdatedAt } - -type GetIntegrations_Integrations_Edges_Node_Oauth2tokens struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetAllGroups_Groups_Edges_Node_Setting) GetUpdatedBy() *string { + if t == nil { + t = &GetAllGroups_Groups_Edges_Node_Setting{} + } + return t.UpdatedBy } - -func (t *GetIntegrations_Integrations_Edges_Node_Oauth2tokens) GetID() string { +func (t *GetAllGroups_Groups_Edges_Node_Setting) GetVisibility() *enums.Visibility { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node_Oauth2tokens{} + t = &GetAllGroups_Groups_Edges_Node_Setting{} } - return t.ID + return &t.Visibility } -type GetIntegrations_Integrations_Edges_Node_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllGroups_Groups_Edges_Node_Members_User struct { + ID string "json:\"id\" graphql:\"id\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" } -func (t *GetIntegrations_Integrations_Edges_Node_Events) GetID() string { +func (t *GetAllGroups_Groups_Edges_Node_Members_User) GetID() string { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node_Events{} + t = &GetAllGroups_Groups_Edges_Node_Members_User{} } return t.ID } +func (t *GetAllGroups_Groups_Edges_Node_Members_User) GetFirstName() *string { + if t == nil { + t = &GetAllGroups_Groups_Edges_Node_Members_User{} + } + return t.FirstName +} +func (t *GetAllGroups_Groups_Edges_Node_Members_User) GetLastName() *string { + if t == nil { + t = &GetAllGroups_Groups_Edges_Node_Members_User{} + } + return t.LastName +} -type GetIntegrations_Integrations_Edges_Node_Webhooks struct { - ID string "json:\"id\" graphql:\"id\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" +type GetAllGroups_Groups_Edges_Node_Members struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + User GetAllGroups_Groups_Edges_Node_Members_User "json:\"user\" graphql:\"user\"" } -func (t *GetIntegrations_Integrations_Edges_Node_Webhooks) GetID() string { +func (t *GetAllGroups_Groups_Edges_Node_Members) GetID() string { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node_Webhooks{} + t = &GetAllGroups_Groups_Edges_Node_Members{} } return t.ID } -func (t *GetIntegrations_Integrations_Edges_Node_Webhooks) GetDestinationURL() string { +func (t *GetAllGroups_Groups_Edges_Node_Members) GetRole() *enums.Role { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node_Webhooks{} + t = &GetAllGroups_Groups_Edges_Node_Members{} } - return t.DestinationURL + return &t.Role } -func (t *GetIntegrations_Integrations_Edges_Node_Webhooks) GetEnabled() bool { +func (t *GetAllGroups_Groups_Edges_Node_Members) GetUser() *GetAllGroups_Groups_Edges_Node_Members_User { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node_Webhooks{} + t = &GetAllGroups_Groups_Edges_Node_Members{} } - return t.Enabled + return &t.User } -type GetIntegrations_Integrations_Edges_Node struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Owner *GetIntegrations_Integrations_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Secrets []*GetIntegrations_Integrations_Edges_Node_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" - Oauth2tokens []*GetIntegrations_Integrations_Edges_Node_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" - Events []*GetIntegrations_Integrations_Edges_Node_Events "json:\"events,omitempty\" graphql:\"events\"" - Webhooks []*GetIntegrations_Integrations_Edges_Node_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetAllGroups_Groups_Edges_Node struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + ID string "json:\"id\" graphql:\"id\"" + LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" + Name string "json:\"name\" graphql:\"name\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Owner *GetAllGroups_Groups_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Setting GetAllGroups_Groups_Edges_Node_Setting "json:\"setting\" graphql:\"setting\"" + Members []*GetAllGroups_Groups_Edges_Node_Members "json:\"members,omitempty\" graphql:\"members\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetIntegrations_Integrations_Edges_Node) GetDescription() *string { +func (t *GetAllGroups_Groups_Edges_Node) GetDescription() *string { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } return t.Description } -func (t *GetIntegrations_Integrations_Edges_Node) GetID() string { - if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} - } - return t.ID -} -func (t *GetIntegrations_Integrations_Edges_Node) GetKind() *string { +func (t *GetAllGroups_Groups_Edges_Node) GetDisplayName() string { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } - return t.Kind + return t.DisplayName } -func (t *GetIntegrations_Integrations_Edges_Node) GetName() string { +func (t *GetAllGroups_Groups_Edges_Node) GetID() string { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } - return t.Name + return t.ID } -func (t *GetIntegrations_Integrations_Edges_Node) GetOwnerID() *string { +func (t *GetAllGroups_Groups_Edges_Node) GetLogoURL() *string { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } - return t.OwnerID + return t.LogoURL } -func (t *GetIntegrations_Integrations_Edges_Node) GetOwner() *GetIntegrations_Integrations_Edges_Node_Owner { +func (t *GetAllGroups_Groups_Edges_Node) GetName() string { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } - return t.Owner + return t.Name } -func (t *GetIntegrations_Integrations_Edges_Node) GetSecrets() []*GetIntegrations_Integrations_Edges_Node_Secrets { +func (t *GetAllGroups_Groups_Edges_Node) GetTags() []string { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } - return t.Secrets + return t.Tags } -func (t *GetIntegrations_Integrations_Edges_Node) GetOauth2tokens() []*GetIntegrations_Integrations_Edges_Node_Oauth2tokens { +func (t *GetAllGroups_Groups_Edges_Node) GetOwner() *GetAllGroups_Groups_Edges_Node_Owner { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } - return t.Oauth2tokens + return t.Owner } -func (t *GetIntegrations_Integrations_Edges_Node) GetEvents() []*GetIntegrations_Integrations_Edges_Node_Events { +func (t *GetAllGroups_Groups_Edges_Node) GetSetting() *GetAllGroups_Groups_Edges_Node_Setting { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } - return t.Events + return &t.Setting } -func (t *GetIntegrations_Integrations_Edges_Node) GetWebhooks() []*GetIntegrations_Integrations_Edges_Node_Webhooks { +func (t *GetAllGroups_Groups_Edges_Node) GetMembers() []*GetAllGroups_Groups_Edges_Node_Members { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } - return t.Webhooks + return t.Members } -func (t *GetIntegrations_Integrations_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllGroups_Groups_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } return t.CreatedAt } -func (t *GetIntegrations_Integrations_Edges_Node) GetCreatedBy() *string { +func (t *GetAllGroups_Groups_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } return t.CreatedBy } -func (t *GetIntegrations_Integrations_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllGroups_Groups_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } return t.UpdatedAt } -func (t *GetIntegrations_Integrations_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllGroups_Groups_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetIntegrations_Integrations_Edges_Node{} + t = &GetAllGroups_Groups_Edges_Node{} } return t.UpdatedBy } -type GetIntegrations_Integrations_Edges struct { - Node *GetIntegrations_Integrations_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllGroups_Groups_Edges struct { + Node *GetAllGroups_Groups_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetIntegrations_Integrations_Edges) GetNode() *GetIntegrations_Integrations_Edges_Node { +func (t *GetAllGroups_Groups_Edges) GetNode() *GetAllGroups_Groups_Edges_Node { if t == nil { - t = &GetIntegrations_Integrations_Edges{} + t = &GetAllGroups_Groups_Edges{} } return t.Node } -type GetIntegrations_Integrations struct { - Edges []*GetIntegrations_Integrations_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllGroups_Groups struct { + Edges []*GetAllGroups_Groups_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetIntegrations_Integrations) GetEdges() []*GetIntegrations_Integrations_Edges { +func (t *GetAllGroups_Groups) GetEdges() []*GetAllGroups_Groups_Edges { if t == nil { - t = &GetIntegrations_Integrations{} + t = &GetAllGroups_Groups{} } return t.Edges } -type UpdateIntegration_UpdateIntegration_Integration_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type GetGroupByID_Group_Owner struct { + ID string "json:\"id\" graphql:\"id\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" } -func (t *UpdateIntegration_UpdateIntegration_Integration_Owner) GetID() string { +func (t *GetGroupByID_Group_Owner) GetID() string { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration_Owner{} + t = &GetGroupByID_Group_Owner{} } return t.ID } - -type UpdateIntegration_UpdateIntegration_Integration_Secrets struct { - ID string "json:\"id\" graphql:\"id\"" -} - -func (t *UpdateIntegration_UpdateIntegration_Integration_Secrets) GetID() string { +func (t *GetGroupByID_Group_Owner) GetDisplayName() string { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration_Secrets{} + t = &GetGroupByID_Group_Owner{} } - return t.ID + return t.DisplayName } -type UpdateIntegration_UpdateIntegration_Integration_Oauth2tokens struct { - ID string "json:\"id\" graphql:\"id\"" +type GetGroupByID_Group_Setting struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" } -func (t *UpdateIntegration_UpdateIntegration_Integration_Oauth2tokens) GetID() string { +func (t *GetGroupByID_Group_Setting) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration_Oauth2tokens{} + t = &GetGroupByID_Group_Setting{} } - return t.ID -} - -type UpdateIntegration_UpdateIntegration_Integration_Events struct { - ID string "json:\"id\" graphql:\"id\"" + return t.CreatedAt } - -func (t *UpdateIntegration_UpdateIntegration_Integration_Events) GetID() string { +func (t *GetGroupByID_Group_Setting) GetCreatedBy() *string { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration_Events{} + t = &GetGroupByID_Group_Setting{} } - return t.ID -} - -type UpdateIntegration_UpdateIntegration_Integration_Webhooks struct { - ID string "json:\"id\" graphql:\"id\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" + return t.CreatedBy } - -func (t *UpdateIntegration_UpdateIntegration_Integration_Webhooks) GetID() string { +func (t *GetGroupByID_Group_Setting) GetID() string { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration_Webhooks{} + t = &GetGroupByID_Group_Setting{} } return t.ID } -func (t *UpdateIntegration_UpdateIntegration_Integration_Webhooks) GetDestinationURL() string { +func (t *GetGroupByID_Group_Setting) GetJoinPolicy() *enums.JoinPolicy { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration_Webhooks{} + t = &GetGroupByID_Group_Setting{} } - return t.DestinationURL + return &t.JoinPolicy } -func (t *UpdateIntegration_UpdateIntegration_Integration_Webhooks) GetEnabled() bool { +func (t *GetGroupByID_Group_Setting) GetSyncToGithub() *bool { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration_Webhooks{} + t = &GetGroupByID_Group_Setting{} } - return t.Enabled -} - -type UpdateIntegration_UpdateIntegration_Integration struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Owner *UpdateIntegration_UpdateIntegration_Integration_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - Secrets []*UpdateIntegration_UpdateIntegration_Integration_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" - Oauth2tokens []*UpdateIntegration_UpdateIntegration_Integration_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" - Events []*UpdateIntegration_UpdateIntegration_Integration_Events "json:\"events,omitempty\" graphql:\"events\"" - Webhooks []*UpdateIntegration_UpdateIntegration_Integration_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" + return t.SyncToGithub } - -func (t *UpdateIntegration_UpdateIntegration_Integration) GetDescription() *string { +func (t *GetGroupByID_Group_Setting) GetSyncToSlack() *bool { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration{} + t = &GetGroupByID_Group_Setting{} } - return t.Description + return t.SyncToSlack } -func (t *UpdateIntegration_UpdateIntegration_Integration) GetID() string { +func (t *GetGroupByID_Group_Setting) GetTags() []string { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration{} + t = &GetGroupByID_Group_Setting{} } - return t.ID + return t.Tags } -func (t *UpdateIntegration_UpdateIntegration_Integration) GetKind() *string { +func (t *GetGroupByID_Group_Setting) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration{} + t = &GetGroupByID_Group_Setting{} } - return t.Kind + return t.UpdatedAt } -func (t *UpdateIntegration_UpdateIntegration_Integration) GetName() string { +func (t *GetGroupByID_Group_Setting) GetUpdatedBy() *string { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration{} + t = &GetGroupByID_Group_Setting{} } - return t.Name + return t.UpdatedBy } -func (t *UpdateIntegration_UpdateIntegration_Integration) GetOwnerID() *string { +func (t *GetGroupByID_Group_Setting) GetVisibility() *enums.Visibility { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration{} + t = &GetGroupByID_Group_Setting{} } - return t.OwnerID + return &t.Visibility } -func (t *UpdateIntegration_UpdateIntegration_Integration) GetOwner() *UpdateIntegration_UpdateIntegration_Integration_Owner { + +type GetGroupByID_Group_Members_User struct { + ID string "json:\"id\" graphql:\"id\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +} + +func (t *GetGroupByID_Group_Members_User) GetID() string { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration{} + t = &GetGroupByID_Group_Members_User{} } - return t.Owner + return t.ID } -func (t *UpdateIntegration_UpdateIntegration_Integration) GetSecrets() []*UpdateIntegration_UpdateIntegration_Integration_Secrets { +func (t *GetGroupByID_Group_Members_User) GetFirstName() *string { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration{} + t = &GetGroupByID_Group_Members_User{} } - return t.Secrets + return t.FirstName } -func (t *UpdateIntegration_UpdateIntegration_Integration) GetOauth2tokens() []*UpdateIntegration_UpdateIntegration_Integration_Oauth2tokens { +func (t *GetGroupByID_Group_Members_User) GetLastName() *string { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration{} + t = &GetGroupByID_Group_Members_User{} } - return t.Oauth2tokens + return t.LastName } -func (t *UpdateIntegration_UpdateIntegration_Integration) GetEvents() []*UpdateIntegration_UpdateIntegration_Integration_Events { + +type GetGroupByID_Group_Members struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + User GetGroupByID_Group_Members_User "json:\"user\" graphql:\"user\"" +} + +func (t *GetGroupByID_Group_Members) GetID() string { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration{} + t = &GetGroupByID_Group_Members{} } - return t.Events + return t.ID } -func (t *UpdateIntegration_UpdateIntegration_Integration) GetWebhooks() []*UpdateIntegration_UpdateIntegration_Integration_Webhooks { +func (t *GetGroupByID_Group_Members) GetRole() *enums.Role { if t == nil { - t = &UpdateIntegration_UpdateIntegration_Integration{} + t = &GetGroupByID_Group_Members{} } - return t.Webhooks -} - -type UpdateIntegration_UpdateIntegration struct { - Integration UpdateIntegration_UpdateIntegration_Integration "json:\"integration\" graphql:\"integration\"" + return &t.Role } - -func (t *UpdateIntegration_UpdateIntegration) GetIntegration() *UpdateIntegration_UpdateIntegration_Integration { +func (t *GetGroupByID_Group_Members) GetUser() *GetGroupByID_Group_Members_User { if t == nil { - t = &UpdateIntegration_UpdateIntegration{} + t = &GetGroupByID_Group_Members{} } - return &t.Integration + return &t.User } -type GetAllIntegrationHistories_IntegrationHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetGroupByID_Group struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + ID string "json:\"id\" graphql:\"id\"" + LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" + Name string "json:\"name\" graphql:\"name\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Owner *GetGroupByID_Group_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Setting GetGroupByID_Group_Setting "json:\"setting\" graphql:\"setting\"" + Members []*GetGroupByID_Group_Members "json:\"members,omitempty\" graphql:\"members\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetGroupByID_Group) GetDescription() *string { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } - return t.CreatedAt + return t.Description } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetGroupByID_Group) GetDisplayName() string { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } - return t.CreatedBy + return t.DisplayName } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetDescription() *string { +func (t *GetGroupByID_Group) GetID() string { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } - return t.Description + return t.ID } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetGroupByID_Group) GetLogoURL() *string { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } - return &t.HistoryTime + return t.LogoURL } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetID() string { +func (t *GetGroupByID_Group) GetName() string { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } - return t.ID + return t.Name } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetKind() *string { +func (t *GetGroupByID_Group) GetTags() []string { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } - return t.Kind + return t.Tags } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetName() string { +func (t *GetGroupByID_Group) GetOwner() *GetGroupByID_Group_Owner { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } - return t.Name + return t.Owner } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetGroupByID_Group) GetSetting() *GetGroupByID_Group_Setting { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } - return &t.Operation + return &t.Setting } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetOwnerID() *string { +func (t *GetGroupByID_Group) GetMembers() []*GetGroupByID_Group_Members { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } - return t.OwnerID + return t.Members } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetRef() *string { +func (t *GetGroupByID_Group) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } - return t.Ref + return t.CreatedAt } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetTags() []string { +func (t *GetGroupByID_Group) GetCreatedBy() *string { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } - return t.Tags + return t.CreatedBy } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetGroupByID_Group) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } return t.UpdatedAt } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetGroupByID_Group) GetUpdatedBy() *string { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroupByID_Group{} } return t.UpdatedBy } -type GetAllIntegrationHistories_IntegrationHistories_Edges struct { - Node *GetAllIntegrationHistories_IntegrationHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetGroups_Groups_Edges_Node_Owner struct { + ID string "json:\"id\" graphql:\"id\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" } -func (t *GetAllIntegrationHistories_IntegrationHistories_Edges) GetNode() *GetAllIntegrationHistories_IntegrationHistories_Edges_Node { +func (t *GetGroups_Groups_Edges_Node_Owner) GetID() string { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories_Edges{} + t = &GetGroups_Groups_Edges_Node_Owner{} } - return t.Node -} - -type GetAllIntegrationHistories_IntegrationHistories struct { - Edges []*GetAllIntegrationHistories_IntegrationHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.ID } - -func (t *GetAllIntegrationHistories_IntegrationHistories) GetEdges() []*GetAllIntegrationHistories_IntegrationHistories_Edges { +func (t *GetGroups_Groups_Edges_Node_Owner) GetDisplayName() string { if t == nil { - t = &GetAllIntegrationHistories_IntegrationHistories{} + t = &GetGroups_Groups_Edges_Node_Owner{} } - return t.Edges + return t.DisplayName } -type GetIntegrationHistories_IntegrationHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetGroups_Groups_Edges_Node_Setting struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetGroups_Groups_Edges_Node_Setting) GetCreatedAt() *time.Time { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Setting{} } return t.CreatedAt } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetGroups_Groups_Edges_Node_Setting) GetCreatedBy() *string { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Setting{} } return t.CreatedBy } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetDescription() *string { +func (t *GetGroups_Groups_Edges_Node_Setting) GetID() string { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Setting{} } - return t.Description + return t.ID } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetGroups_Groups_Edges_Node_Setting) GetJoinPolicy() *enums.JoinPolicy { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Setting{} } - return &t.HistoryTime + return &t.JoinPolicy } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetID() string { +func (t *GetGroups_Groups_Edges_Node_Setting) GetSyncToGithub() *bool { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Setting{} } - return t.ID + return t.SyncToGithub } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetKind() *string { +func (t *GetGroups_Groups_Edges_Node_Setting) GetSyncToSlack() *bool { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Setting{} } - return t.Kind + return t.SyncToSlack } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetName() string { +func (t *GetGroups_Groups_Edges_Node_Setting) GetTags() []string { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Setting{} } - return t.Name + return t.Tags } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetGroups_Groups_Edges_Node_Setting) GetUpdatedAt() *time.Time { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Setting{} } - return &t.Operation + return t.UpdatedAt } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetOwnerID() *string { +func (t *GetGroups_Groups_Edges_Node_Setting) GetUpdatedBy() *string { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Setting{} } - return t.OwnerID + return t.UpdatedBy } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetRef() *string { +func (t *GetGroups_Groups_Edges_Node_Setting) GetVisibility() *enums.Visibility { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Setting{} } - return t.Ref + return &t.Visibility } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetTags() []string { + +type GetGroups_Groups_Edges_Node_Members_User struct { + ID string "json:\"id\" graphql:\"id\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +} + +func (t *GetGroups_Groups_Edges_Node_Members_User) GetID() string { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Members_User{} } - return t.Tags + return t.ID } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetGroups_Groups_Edges_Node_Members_User) GetFirstName() *string { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Members_User{} } - return t.UpdatedAt + return t.FirstName } -func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetGroups_Groups_Edges_Node_Members_User) GetLastName() *string { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} + t = &GetGroups_Groups_Edges_Node_Members_User{} } - return t.UpdatedBy + return t.LastName } -type GetIntegrationHistories_IntegrationHistories_Edges struct { - Node *GetIntegrationHistories_IntegrationHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetGroups_Groups_Edges_Node_Members struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + User GetGroups_Groups_Edges_Node_Members_User "json:\"user\" graphql:\"user\"" } -func (t *GetIntegrationHistories_IntegrationHistories_Edges) GetNode() *GetIntegrationHistories_IntegrationHistories_Edges_Node { +func (t *GetGroups_Groups_Edges_Node_Members) GetID() string { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories_Edges{} + t = &GetGroups_Groups_Edges_Node_Members{} } - return t.Node + return t.ID } - -type GetIntegrationHistories_IntegrationHistories struct { - Edges []*GetIntegrationHistories_IntegrationHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +func (t *GetGroups_Groups_Edges_Node_Members) GetRole() *enums.Role { + if t == nil { + t = &GetGroups_Groups_Edges_Node_Members{} + } + return &t.Role } - -func (t *GetIntegrationHistories_IntegrationHistories) GetEdges() []*GetIntegrationHistories_IntegrationHistories_Edges { +func (t *GetGroups_Groups_Edges_Node_Members) GetUser() *GetGroups_Groups_Edges_Node_Members_User { if t == nil { - t = &GetIntegrationHistories_IntegrationHistories{} + t = &GetGroups_Groups_Edges_Node_Members{} } - return t.Edges + return &t.User } -type CreateBulkCSVInvite_CreateBulkCSVInvite_Invites struct { - Expires *time.Time "json:\"expires,omitempty\" graphql:\"expires\"" - ID string "json:\"id\" graphql:\"id\"" - Recipient string "json:\"recipient\" graphql:\"recipient\"" - RequestorID *string "json:\"requestorID,omitempty\" graphql:\"requestorID\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - SendAttempts int64 "json:\"sendAttempts\" graphql:\"sendAttempts\"" - Status enums.InviteStatus "json:\"status\" graphql:\"status\"" +type GetGroups_Groups_Edges_Node struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + ID string "json:\"id\" graphql:\"id\"" + LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" + Name string "json:\"name\" graphql:\"name\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Owner *GetGroups_Groups_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Setting GetGroups_Groups_Edges_Node_Setting "json:\"setting\" graphql:\"setting\"" + Members []*GetGroups_Groups_Edges_Node_Members "json:\"members,omitempty\" graphql:\"members\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetExpires() *time.Time { +func (t *GetGroups_Groups_Edges_Node) GetDescription() *string { if t == nil { - t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} + t = &GetGroups_Groups_Edges_Node{} } - return t.Expires + return t.Description } -func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetID() string { +func (t *GetGroups_Groups_Edges_Node) GetDisplayName() string { if t == nil { - t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} + t = &GetGroups_Groups_Edges_Node{} } - return t.ID + return t.DisplayName } -func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetRecipient() string { +func (t *GetGroups_Groups_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} + t = &GetGroups_Groups_Edges_Node{} } - return t.Recipient + return t.ID } -func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetRequestorID() *string { +func (t *GetGroups_Groups_Edges_Node) GetLogoURL() *string { if t == nil { - t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} + t = &GetGroups_Groups_Edges_Node{} } - return t.RequestorID + return t.LogoURL } -func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetRole() *enums.Role { +func (t *GetGroups_Groups_Edges_Node) GetName() string { if t == nil { - t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} + t = &GetGroups_Groups_Edges_Node{} } - return &t.Role + return t.Name } -func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetSendAttempts() int64 { +func (t *GetGroups_Groups_Edges_Node) GetTags() []string { if t == nil { - t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} + t = &GetGroups_Groups_Edges_Node{} } - return t.SendAttempts + return t.Tags } -func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetStatus() *enums.InviteStatus { +func (t *GetGroups_Groups_Edges_Node) GetOwner() *GetGroups_Groups_Edges_Node_Owner { if t == nil { - t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} + t = &GetGroups_Groups_Edges_Node{} } - return &t.Status -} - -type CreateBulkCSVInvite_CreateBulkCSVInvite struct { - Invites []*CreateBulkCSVInvite_CreateBulkCSVInvite_Invites "json:\"invites,omitempty\" graphql:\"invites\"" + return t.Owner } - -func (t *CreateBulkCSVInvite_CreateBulkCSVInvite) GetInvites() []*CreateBulkCSVInvite_CreateBulkCSVInvite_Invites { +func (t *GetGroups_Groups_Edges_Node) GetSetting() *GetGroups_Groups_Edges_Node_Setting { if t == nil { - t = &CreateBulkCSVInvite_CreateBulkCSVInvite{} + t = &GetGroups_Groups_Edges_Node{} } - return t.Invites -} - -type CreateBulkInvite_CreateBulkInvite_Invites struct { - Expires *time.Time "json:\"expires,omitempty\" graphql:\"expires\"" - ID string "json:\"id\" graphql:\"id\"" - Recipient string "json:\"recipient\" graphql:\"recipient\"" - RequestorID *string "json:\"requestorID,omitempty\" graphql:\"requestorID\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - SendAttempts int64 "json:\"sendAttempts\" graphql:\"sendAttempts\"" - Status enums.InviteStatus "json:\"status\" graphql:\"status\"" + return &t.Setting } - -func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetExpires() *time.Time { +func (t *GetGroups_Groups_Edges_Node) GetMembers() []*GetGroups_Groups_Edges_Node_Members { if t == nil { - t = &CreateBulkInvite_CreateBulkInvite_Invites{} + t = &GetGroups_Groups_Edges_Node{} } - return t.Expires + return t.Members } -func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetID() string { +func (t *GetGroups_Groups_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkInvite_CreateBulkInvite_Invites{} + t = &GetGroups_Groups_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetRecipient() string { +func (t *GetGroups_Groups_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkInvite_CreateBulkInvite_Invites{} + t = &GetGroups_Groups_Edges_Node{} } - return t.Recipient + return t.CreatedBy } -func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetRequestorID() *string { +func (t *GetGroups_Groups_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkInvite_CreateBulkInvite_Invites{} + t = &GetGroups_Groups_Edges_Node{} } - return t.RequestorID + return t.UpdatedAt } -func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetRole() *enums.Role { +func (t *GetGroups_Groups_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkInvite_CreateBulkInvite_Invites{} + t = &GetGroups_Groups_Edges_Node{} } - return &t.Role + return t.UpdatedBy } -func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetSendAttempts() int64 { - if t == nil { - t = &CreateBulkInvite_CreateBulkInvite_Invites{} - } - return t.SendAttempts + +type GetGroups_Groups_Edges struct { + Node *GetGroups_Groups_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetStatus() *enums.InviteStatus { + +func (t *GetGroups_Groups_Edges) GetNode() *GetGroups_Groups_Edges_Node { if t == nil { - t = &CreateBulkInvite_CreateBulkInvite_Invites{} + t = &GetGroups_Groups_Edges{} } - return &t.Status + return t.Node } -type CreateBulkInvite_CreateBulkInvite struct { - Invites []*CreateBulkInvite_CreateBulkInvite_Invites "json:\"invites,omitempty\" graphql:\"invites\"" +type GetGroups_Groups struct { + Edges []*GetGroups_Groups_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkInvite_CreateBulkInvite) GetInvites() []*CreateBulkInvite_CreateBulkInvite_Invites { +func (t *GetGroups_Groups) GetEdges() []*GetGroups_Groups_Edges { if t == nil { - t = &CreateBulkInvite_CreateBulkInvite{} + t = &GetGroups_Groups{} } - return t.Invites + return t.Edges } -type CreateInvite_CreateInvite_Invite_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type UpdateGroup_UpdateGroup_Group_Owner struct { + ID string "json:\"id\" graphql:\"id\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" } -func (t *CreateInvite_CreateInvite_Invite_Owner) GetID() string { +func (t *UpdateGroup_UpdateGroup_Group_Owner) GetID() string { if t == nil { - t = &CreateInvite_CreateInvite_Invite_Owner{} + t = &UpdateGroup_UpdateGroup_Group_Owner{} } return t.ID } +func (t *UpdateGroup_UpdateGroup_Group_Owner) GetDisplayName() string { + if t == nil { + t = &UpdateGroup_UpdateGroup_Group_Owner{} + } + return t.DisplayName +} -type CreateInvite_CreateInvite_Invite struct { - Expires *time.Time "json:\"expires,omitempty\" graphql:\"expires\"" - ID string "json:\"id\" graphql:\"id\"" - Recipient string "json:\"recipient\" graphql:\"recipient\"" - RequestorID *string "json:\"requestorID,omitempty\" graphql:\"requestorID\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - SendAttempts int64 "json:\"sendAttempts\" graphql:\"sendAttempts\"" - Status enums.InviteStatus "json:\"status\" graphql:\"status\"" - Owner *CreateInvite_CreateInvite_Invite_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +type UpdateGroup_UpdateGroup_Group_Setting struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" } -func (t *CreateInvite_CreateInvite_Invite) GetExpires() *time.Time { +func (t *UpdateGroup_UpdateGroup_Group_Setting) GetCreatedAt() *time.Time { if t == nil { - t = &CreateInvite_CreateInvite_Invite{} + t = &UpdateGroup_UpdateGroup_Group_Setting{} } - return t.Expires + return t.CreatedAt } -func (t *CreateInvite_CreateInvite_Invite) GetID() string { +func (t *UpdateGroup_UpdateGroup_Group_Setting) GetCreatedBy() *string { if t == nil { - t = &CreateInvite_CreateInvite_Invite{} + t = &UpdateGroup_UpdateGroup_Group_Setting{} } - return t.ID + return t.CreatedBy } -func (t *CreateInvite_CreateInvite_Invite) GetRecipient() string { +func (t *UpdateGroup_UpdateGroup_Group_Setting) GetID() string { if t == nil { - t = &CreateInvite_CreateInvite_Invite{} + t = &UpdateGroup_UpdateGroup_Group_Setting{} } - return t.Recipient + return t.ID } -func (t *CreateInvite_CreateInvite_Invite) GetRequestorID() *string { +func (t *UpdateGroup_UpdateGroup_Group_Setting) GetJoinPolicy() *enums.JoinPolicy { if t == nil { - t = &CreateInvite_CreateInvite_Invite{} + t = &UpdateGroup_UpdateGroup_Group_Setting{} } - return t.RequestorID + return &t.JoinPolicy } -func (t *CreateInvite_CreateInvite_Invite) GetRole() *enums.Role { +func (t *UpdateGroup_UpdateGroup_Group_Setting) GetSyncToGithub() *bool { if t == nil { - t = &CreateInvite_CreateInvite_Invite{} + t = &UpdateGroup_UpdateGroup_Group_Setting{} } - return &t.Role + return t.SyncToGithub } -func (t *CreateInvite_CreateInvite_Invite) GetSendAttempts() int64 { +func (t *UpdateGroup_UpdateGroup_Group_Setting) GetSyncToSlack() *bool { if t == nil { - t = &CreateInvite_CreateInvite_Invite{} + t = &UpdateGroup_UpdateGroup_Group_Setting{} } - return t.SendAttempts + return t.SyncToSlack } -func (t *CreateInvite_CreateInvite_Invite) GetStatus() *enums.InviteStatus { +func (t *UpdateGroup_UpdateGroup_Group_Setting) GetTags() []string { if t == nil { - t = &CreateInvite_CreateInvite_Invite{} + t = &UpdateGroup_UpdateGroup_Group_Setting{} } - return &t.Status + return t.Tags } -func (t *CreateInvite_CreateInvite_Invite) GetOwner() *CreateInvite_CreateInvite_Invite_Owner { +func (t *UpdateGroup_UpdateGroup_Group_Setting) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateInvite_CreateInvite_Invite{} + t = &UpdateGroup_UpdateGroup_Group_Setting{} } - return t.Owner -} - -type CreateInvite_CreateInvite struct { - Invite CreateInvite_CreateInvite_Invite "json:\"invite\" graphql:\"invite\"" + return t.UpdatedAt } - -func (t *CreateInvite_CreateInvite) GetInvite() *CreateInvite_CreateInvite_Invite { +func (t *UpdateGroup_UpdateGroup_Group_Setting) GetUpdatedBy() *string { if t == nil { - t = &CreateInvite_CreateInvite{} + t = &UpdateGroup_UpdateGroup_Group_Setting{} } - return &t.Invite -} - -type DeleteInvite_DeleteInvite struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" + return t.UpdatedBy } - -func (t *DeleteInvite_DeleteInvite) GetDeletedID() string { +func (t *UpdateGroup_UpdateGroup_Group_Setting) GetVisibility() *enums.Visibility { if t == nil { - t = &DeleteInvite_DeleteInvite{} + t = &UpdateGroup_UpdateGroup_Group_Setting{} } - return t.DeletedID + return &t.Visibility } -type GetInviteByID_Invite_Owner struct { - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type UpdateGroup_UpdateGroup_Group_Members_User struct { + ID string "json:\"id\" graphql:\"id\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" } -func (t *GetInviteByID_Invite_Owner) GetDisplayName() string { +func (t *UpdateGroup_UpdateGroup_Group_Members_User) GetID() string { if t == nil { - t = &GetInviteByID_Invite_Owner{} + t = &UpdateGroup_UpdateGroup_Group_Members_User{} } - return t.DisplayName + return t.ID } -func (t *GetInviteByID_Invite_Owner) GetID() string { +func (t *UpdateGroup_UpdateGroup_Group_Members_User) GetFirstName() *string { if t == nil { - t = &GetInviteByID_Invite_Owner{} + t = &UpdateGroup_UpdateGroup_Group_Members_User{} } - return t.ID + return t.FirstName } -func (t *GetInviteByID_Invite_Owner) GetName() string { +func (t *UpdateGroup_UpdateGroup_Group_Members_User) GetLastName() *string { if t == nil { - t = &GetInviteByID_Invite_Owner{} + t = &UpdateGroup_UpdateGroup_Group_Members_User{} } - return t.Name + return t.LastName } -type GetInviteByID_Invite struct { - Expires *time.Time "json:\"expires,omitempty\" graphql:\"expires\"" - ID string "json:\"id\" graphql:\"id\"" - Recipient string "json:\"recipient\" graphql:\"recipient\"" - RequestorID *string "json:\"requestorID,omitempty\" graphql:\"requestorID\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - SendAttempts int64 "json:\"sendAttempts\" graphql:\"sendAttempts\"" - Status enums.InviteStatus "json:\"status\" graphql:\"status\"" - Owner *GetInviteByID_Invite_Owner "json:\"owner,omitempty\" graphql:\"owner\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type UpdateGroup_UpdateGroup_Group_Members struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + User UpdateGroup_UpdateGroup_Group_Members_User "json:\"user\" graphql:\"user\"" } -func (t *GetInviteByID_Invite) GetExpires() *time.Time { +func (t *UpdateGroup_UpdateGroup_Group_Members) GetID() string { if t == nil { - t = &GetInviteByID_Invite{} + t = &UpdateGroup_UpdateGroup_Group_Members{} } - return t.Expires + return t.ID } -func (t *GetInviteByID_Invite) GetID() string { +func (t *UpdateGroup_UpdateGroup_Group_Members) GetRole() *enums.Role { if t == nil { - t = &GetInviteByID_Invite{} + t = &UpdateGroup_UpdateGroup_Group_Members{} } - return t.ID + return &t.Role } -func (t *GetInviteByID_Invite) GetRecipient() string { +func (t *UpdateGroup_UpdateGroup_Group_Members) GetUser() *UpdateGroup_UpdateGroup_Group_Members_User { if t == nil { - t = &GetInviteByID_Invite{} + t = &UpdateGroup_UpdateGroup_Group_Members{} } - return t.Recipient + return &t.User } -func (t *GetInviteByID_Invite) GetRequestorID() *string { + +type UpdateGroup_UpdateGroup_Group struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + ID string "json:\"id\" graphql:\"id\"" + LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" + Name string "json:\"name\" graphql:\"name\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Owner *UpdateGroup_UpdateGroup_Group_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Setting UpdateGroup_UpdateGroup_Group_Setting "json:\"setting\" graphql:\"setting\"" + Members []*UpdateGroup_UpdateGroup_Group_Members "json:\"members,omitempty\" graphql:\"members\"" +} + +func (t *UpdateGroup_UpdateGroup_Group) GetDescription() *string { if t == nil { - t = &GetInviteByID_Invite{} + t = &UpdateGroup_UpdateGroup_Group{} } - return t.RequestorID + return t.Description } -func (t *GetInviteByID_Invite) GetRole() *enums.Role { +func (t *UpdateGroup_UpdateGroup_Group) GetDisplayName() string { if t == nil { - t = &GetInviteByID_Invite{} + t = &UpdateGroup_UpdateGroup_Group{} } - return &t.Role + return t.DisplayName } -func (t *GetInviteByID_Invite) GetSendAttempts() int64 { +func (t *UpdateGroup_UpdateGroup_Group) GetID() string { if t == nil { - t = &GetInviteByID_Invite{} + t = &UpdateGroup_UpdateGroup_Group{} } - return t.SendAttempts + return t.ID } -func (t *GetInviteByID_Invite) GetStatus() *enums.InviteStatus { +func (t *UpdateGroup_UpdateGroup_Group) GetLogoURL() *string { if t == nil { - t = &GetInviteByID_Invite{} + t = &UpdateGroup_UpdateGroup_Group{} } - return &t.Status + return t.LogoURL } -func (t *GetInviteByID_Invite) GetOwner() *GetInviteByID_Invite_Owner { +func (t *UpdateGroup_UpdateGroup_Group) GetName() string { if t == nil { - t = &GetInviteByID_Invite{} + t = &UpdateGroup_UpdateGroup_Group{} } - return t.Owner + return t.Name } -func (t *GetInviteByID_Invite) GetCreatedAt() *time.Time { +func (t *UpdateGroup_UpdateGroup_Group) GetTags() []string { if t == nil { - t = &GetInviteByID_Invite{} + t = &UpdateGroup_UpdateGroup_Group{} } - return t.CreatedAt + return t.Tags } -func (t *GetInviteByID_Invite) GetCreatedBy() *string { +func (t *UpdateGroup_UpdateGroup_Group) GetOwner() *UpdateGroup_UpdateGroup_Group_Owner { if t == nil { - t = &GetInviteByID_Invite{} + t = &UpdateGroup_UpdateGroup_Group{} } - return t.CreatedBy + return t.Owner } -func (t *GetInviteByID_Invite) GetUpdatedAt() *time.Time { +func (t *UpdateGroup_UpdateGroup_Group) GetSetting() *UpdateGroup_UpdateGroup_Group_Setting { if t == nil { - t = &GetInviteByID_Invite{} + t = &UpdateGroup_UpdateGroup_Group{} } - return t.UpdatedAt + return &t.Setting } -func (t *GetInviteByID_Invite) GetUpdatedBy() *string { +func (t *UpdateGroup_UpdateGroup_Group) GetMembers() []*UpdateGroup_UpdateGroup_Group_Members { if t == nil { - t = &GetInviteByID_Invite{} + t = &UpdateGroup_UpdateGroup_Group{} } - return t.UpdatedBy + return t.Members } -type GetAllInvites_Invites_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Recipient string "json:\"recipient\" graphql:\"recipient\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - Status enums.InviteStatus "json:\"status\" graphql:\"status\"" +type UpdateGroup_UpdateGroup struct { + Group UpdateGroup_UpdateGroup_Group "json:\"group\" graphql:\"group\"" } -func (t *GetAllInvites_Invites_Edges_Node) GetID() string { +func (t *UpdateGroup_UpdateGroup) GetGroup() *UpdateGroup_UpdateGroup_Group { if t == nil { - t = &GetAllInvites_Invites_Edges_Node{} + t = &UpdateGroup_UpdateGroup{} } - return t.ID + return &t.Group } -func (t *GetAllInvites_Invites_Edges_Node) GetRecipient() string { + +type GetAllGroupHistories_GroupHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + GravatarLogoURL *string "json:\"gravatarLogoURL,omitempty\" graphql:\"gravatarLogoURL\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllInvites_Invites_Edges_Node{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return t.Recipient + return t.CreatedAt } -func (t *GetAllInvites_Invites_Edges_Node) GetRole() *enums.Role { +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllInvites_Invites_Edges_Node{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return &t.Role + return t.CreatedBy } -func (t *GetAllInvites_Invites_Edges_Node) GetStatus() *enums.InviteStatus { +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetAllInvites_Invites_Edges_Node{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return &t.Status -} - -type GetAllInvites_Invites_Edges struct { - Node *GetAllInvites_Invites_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return t.Description } - -func (t *GetAllInvites_Invites_Edges) GetNode() *GetAllInvites_Invites_Edges_Node { +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetDisplayName() string { if t == nil { - t = &GetAllInvites_Invites_Edges{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return t.Node -} - -type GetAllInvites_Invites struct { - Edges []*GetAllInvites_Invites_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.DisplayName } - -func (t *GetAllInvites_Invites) GetEdges() []*GetAllInvites_Invites_Edges { +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetGravatarLogoURL() *string { if t == nil { - t = &GetAllInvites_Invites{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return t.Edges -} - -type InvitesByOrgID_Invites_Edges_Node_Owner_Invites struct { - Recipient string "json:\"recipient\" graphql:\"recipient\"" - RequestorID *string "json:\"requestorID,omitempty\" graphql:\"requestorID\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - SendAttempts int64 "json:\"sendAttempts\" graphql:\"sendAttempts\"" - Status enums.InviteStatus "json:\"status\" graphql:\"status\"" + return t.GravatarLogoURL } - -func (t *InvitesByOrgID_Invites_Edges_Node_Owner_Invites) GetRecipient() string { +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &InvitesByOrgID_Invites_Edges_Node_Owner_Invites{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return t.Recipient + return &t.HistoryTime } -func (t *InvitesByOrgID_Invites_Edges_Node_Owner_Invites) GetRequestorID() *string { +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetID() string { if t == nil { - t = &InvitesByOrgID_Invites_Edges_Node_Owner_Invites{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return t.RequestorID + return t.ID } -func (t *InvitesByOrgID_Invites_Edges_Node_Owner_Invites) GetRole() *enums.Role { +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetLogoURL() *string { if t == nil { - t = &InvitesByOrgID_Invites_Edges_Node_Owner_Invites{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return &t.Role + return t.LogoURL } -func (t *InvitesByOrgID_Invites_Edges_Node_Owner_Invites) GetSendAttempts() int64 { +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetName() string { if t == nil { - t = &InvitesByOrgID_Invites_Edges_Node_Owner_Invites{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return t.SendAttempts + return t.Name } -func (t *InvitesByOrgID_Invites_Edges_Node_Owner_Invites) GetStatus() *enums.InviteStatus { +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &InvitesByOrgID_Invites_Edges_Node_Owner_Invites{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return &t.Status + return &t.Operation } - -type InvitesByOrgID_Invites_Edges_Node_Owner struct { - ID string "json:\"id\" graphql:\"id\"" - Invites []*InvitesByOrgID_Invites_Edges_Node_Owner_Invites "json:\"invites,omitempty\" graphql:\"invites\"" +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} + } + return t.OwnerID } - -func (t *InvitesByOrgID_Invites_Edges_Node_Owner) GetID() string { +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetRef() *string { if t == nil { - t = &InvitesByOrgID_Invites_Edges_Node_Owner{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return t.ID + return t.Ref } -func (t *InvitesByOrgID_Invites_Edges_Node_Owner) GetInvites() []*InvitesByOrgID_Invites_Edges_Node_Owner_Invites { +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetTags() []string { if t == nil { - t = &InvitesByOrgID_Invites_Edges_Node_Owner{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return t.Invites + return t.Tags } - -type InvitesByOrgID_Invites_Edges_Node struct { - Owner *InvitesByOrgID_Invites_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} + } + return t.UpdatedAt } - -func (t *InvitesByOrgID_Invites_Edges_Node) GetOwner() *InvitesByOrgID_Invites_Edges_Node_Owner { +func (t *GetAllGroupHistories_GroupHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &InvitesByOrgID_Invites_Edges_Node{} + t = &GetAllGroupHistories_GroupHistories_Edges_Node{} } - return t.Owner + return t.UpdatedBy } -type InvitesByOrgID_Invites_Edges struct { - Node *InvitesByOrgID_Invites_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllGroupHistories_GroupHistories_Edges struct { + Node *GetAllGroupHistories_GroupHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *InvitesByOrgID_Invites_Edges) GetNode() *InvitesByOrgID_Invites_Edges_Node { +func (t *GetAllGroupHistories_GroupHistories_Edges) GetNode() *GetAllGroupHistories_GroupHistories_Edges_Node { if t == nil { - t = &InvitesByOrgID_Invites_Edges{} + t = &GetAllGroupHistories_GroupHistories_Edges{} } return t.Node } -type InvitesByOrgID_Invites struct { - Edges []*InvitesByOrgID_Invites_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllGroupHistories_GroupHistories struct { + Edges []*GetAllGroupHistories_GroupHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *InvitesByOrgID_Invites) GetEdges() []*InvitesByOrgID_Invites_Edges { +func (t *GetAllGroupHistories_GroupHistories) GetEdges() []*GetAllGroupHistories_GroupHistories_Edges { if t == nil { - t = &InvitesByOrgID_Invites{} + t = &GetAllGroupHistories_GroupHistories{} } return t.Edges } -type GetAllNoteHistories_NoteHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Text string "json:\"text\" graphql:\"text\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetGroupHistories_GroupHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + GravatarLogoURL *string "json:\"gravatarLogoURL,omitempty\" graphql:\"gravatarLogoURL\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + LogoURL *string "json:\"logoURL,omitempty\" graphql:\"logoURL\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllNoteHistories_NoteHistories_Edges_Node{} + t = &GetGroupHistories_GroupHistories_Edges_Node{} } return t.CreatedAt } -func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllNoteHistories_NoteHistories_Edges_Node{} + t = &GetGroupHistories_GroupHistories_Edges_Node{} } return t.CreatedBy } -func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetAllNoteHistories_NoteHistories_Edges_Node{} + t = &GetGroupHistories_GroupHistories_Edges_Node{} + } + return t.Description +} +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetDisplayName() string { + if t == nil { + t = &GetGroupHistories_GroupHistories_Edges_Node{} + } + return t.DisplayName +} +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetGravatarLogoURL() *string { + if t == nil { + t = &GetGroupHistories_GroupHistories_Edges_Node{} + } + return t.GravatarLogoURL +} +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetGroupHistories_GroupHistories_Edges_Node{} } return &t.HistoryTime } -func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetID() string { +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetID() string { if t == nil { - t = &GetAllNoteHistories_NoteHistories_Edges_Node{} + t = &GetGroupHistories_GroupHistories_Edges_Node{} } return t.ID } -func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetLogoURL() *string { if t == nil { - t = &GetAllNoteHistories_NoteHistories_Edges_Node{} + t = &GetGroupHistories_GroupHistories_Edges_Node{} + } + return t.LogoURL +} +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetName() string { + if t == nil { + t = &GetGroupHistories_GroupHistories_Edges_Node{} + } + return t.Name +} +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetGroupHistories_GroupHistories_Edges_Node{} } return &t.Operation } -func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetOwnerID() *string { +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetAllNoteHistories_NoteHistories_Edges_Node{} + t = &GetGroupHistories_GroupHistories_Edges_Node{} } return t.OwnerID } -func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetRef() *string { +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllNoteHistories_NoteHistories_Edges_Node{} + t = &GetGroupHistories_GroupHistories_Edges_Node{} } return t.Ref } -func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetTags() []string { +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllNoteHistories_NoteHistories_Edges_Node{} + t = &GetGroupHistories_GroupHistories_Edges_Node{} } return t.Tags } -func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetText() string { - if t == nil { - t = &GetAllNoteHistories_NoteHistories_Edges_Node{} - } - return t.Text -} -func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllNoteHistories_NoteHistories_Edges_Node{} + t = &GetGroupHistories_GroupHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetGroupHistories_GroupHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllNoteHistories_NoteHistories_Edges_Node{} + t = &GetGroupHistories_GroupHistories_Edges_Node{} } return t.UpdatedBy } -type GetAllNoteHistories_NoteHistories_Edges struct { - Node *GetAllNoteHistories_NoteHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetGroupHistories_GroupHistories_Edges struct { + Node *GetGroupHistories_GroupHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllNoteHistories_NoteHistories_Edges) GetNode() *GetAllNoteHistories_NoteHistories_Edges_Node { +func (t *GetGroupHistories_GroupHistories_Edges) GetNode() *GetGroupHistories_GroupHistories_Edges_Node { if t == nil { - t = &GetAllNoteHistories_NoteHistories_Edges{} + t = &GetGroupHistories_GroupHistories_Edges{} } return t.Node } -type GetAllNoteHistories_NoteHistories struct { - Edges []*GetAllNoteHistories_NoteHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetGroupHistories_GroupHistories struct { + Edges []*GetGroupHistories_GroupHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllNoteHistories_NoteHistories) GetEdges() []*GetAllNoteHistories_NoteHistories_Edges { +func (t *GetGroupHistories_GroupHistories) GetEdges() []*GetGroupHistories_GroupHistories_Edges { if t == nil { - t = &GetAllNoteHistories_NoteHistories{} + t = &GetGroupHistories_GroupHistories{} } return t.Edges } -type GetNoteHistories_NoteHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Text string "json:\"text\" graphql:\"text\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetNoteHistories_NoteHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group) GetID() string { if t == nil { - t = &GetNoteHistories_NoteHistories_Edges_Node{} + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group{} } - return t.CreatedAt + return t.ID } -func (t *GetNoteHistories_NoteHistories_Edges_Node) GetCreatedBy() *string { +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group) GetName() string { if t == nil { - t = &GetNoteHistories_NoteHistories_Edges_Node{} + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group{} } - return t.CreatedBy + return t.Name } -func (t *GetNoteHistories_NoteHistories_Edges_Node) GetHistoryTime() *time.Time { + +type AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User struct { + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + ID string "json:\"id\" graphql:\"id\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +} + +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User) GetDisplayName() string { if t == nil { - t = &GetNoteHistories_NoteHistories_Edges_Node{} + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User{} } - return &t.HistoryTime + return t.DisplayName } -func (t *GetNoteHistories_NoteHistories_Edges_Node) GetID() string { +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User) GetEmail() string { if t == nil { - t = &GetNoteHistories_NoteHistories_Edges_Node{} + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User{} + } + return t.Email +} +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User) GetFirstName() *string { + if t == nil { + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User{} + } + return t.FirstName +} +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User) GetID() string { + if t == nil { + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User{} } return t.ID } -func (t *GetNoteHistories_NoteHistories_Edges_Node) GetOperation() *history.OpType { +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User) GetLastName() *string { if t == nil { - t = &GetNoteHistories_NoteHistories_Edges_Node{} + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User{} } - return &t.Operation + return t.LastName } -func (t *GetNoteHistories_NoteHistories_Edges_Node) GetOwnerID() *string { + +type AddUserToGroupWithRole_CreateGroupMembership_GroupMembership struct { + GroupID string "json:\"groupID\" graphql:\"groupID\"" + Group AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group "json:\"group\" graphql:\"group\"" + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UserID string "json:\"userID\" graphql:\"userID\"" + User AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User "json:\"user\" graphql:\"user\"" +} + +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership) GetGroupID() string { if t == nil { - t = &GetNoteHistories_NoteHistories_Edges_Node{} + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership{} } - return t.OwnerID + return t.GroupID } -func (t *GetNoteHistories_NoteHistories_Edges_Node) GetRef() *string { +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership) GetGroup() *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_Group { if t == nil { - t = &GetNoteHistories_NoteHistories_Edges_Node{} + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership{} } - return t.Ref + return &t.Group } -func (t *GetNoteHistories_NoteHistories_Edges_Node) GetTags() []string { +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership) GetID() string { if t == nil { - t = &GetNoteHistories_NoteHistories_Edges_Node{} + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership{} } - return t.Tags + return t.ID } -func (t *GetNoteHistories_NoteHistories_Edges_Node) GetText() string { +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership) GetRole() *enums.Role { if t == nil { - t = &GetNoteHistories_NoteHistories_Edges_Node{} + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership{} } - return t.Text + return &t.Role } -func (t *GetNoteHistories_NoteHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership) GetUserID() string { if t == nil { - t = &GetNoteHistories_NoteHistories_Edges_Node{} + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership{} } - return t.UpdatedAt + return t.UserID } -func (t *GetNoteHistories_NoteHistories_Edges_Node) GetUpdatedBy() *string { +func (t *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership) GetUser() *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership_User { if t == nil { - t = &GetNoteHistories_NoteHistories_Edges_Node{} + t = &AddUserToGroupWithRole_CreateGroupMembership_GroupMembership{} } - return t.UpdatedBy + return &t.User } -type GetNoteHistories_NoteHistories_Edges struct { - Node *GetNoteHistories_NoteHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type AddUserToGroupWithRole_CreateGroupMembership struct { + GroupMembership AddUserToGroupWithRole_CreateGroupMembership_GroupMembership "json:\"groupMembership\" graphql:\"groupMembership\"" } -func (t *GetNoteHistories_NoteHistories_Edges) GetNode() *GetNoteHistories_NoteHistories_Edges_Node { +func (t *AddUserToGroupWithRole_CreateGroupMembership) GetGroupMembership() *AddUserToGroupWithRole_CreateGroupMembership_GroupMembership { if t == nil { - t = &GetNoteHistories_NoteHistories_Edges{} + t = &AddUserToGroupWithRole_CreateGroupMembership{} } - return t.Node + return &t.GroupMembership } -type GetNoteHistories_NoteHistories struct { - Edges []*GetNoteHistories_NoteHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetNoteHistories_NoteHistories) GetEdges() []*GetNoteHistories_NoteHistories_Edges { +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group) GetID() string { if t == nil { - t = &GetNoteHistories_NoteHistories{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group{} } - return t.Edges + return t.ID +} +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group) GetName() string { + if t == nil { + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group{} + } + return t.Name } -type GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node struct { - AuthStyle string "json:\"authStyle\" graphql:\"authStyle\"" - AuthURL string "json:\"authURL\" graphql:\"authURL\"" - ClientID string "json:\"clientID\" graphql:\"clientID\"" - ClientSecret string "json:\"clientSecret\" graphql:\"clientSecret\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - InfoURL string "json:\"infoURL\" graphql:\"infoURL\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - RedirectURL string "json:\"redirectURL\" graphql:\"redirectURL\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Scopes string "json:\"scopes\" graphql:\"scopes\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TokenURL string "json:\"tokenURL\" graphql:\"tokenURL\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User struct { + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + ID string "json:\"id\" graphql:\"id\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetAuthStyle() string { +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User) GetDisplayName() string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User{} } - return t.AuthStyle + return t.DisplayName } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetAuthURL() string { +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User) GetEmail() string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User{} } - return t.AuthURL + return t.Email } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetClientID() string { +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User) GetFirstName() *string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User{} } - return t.ClientID + return t.FirstName } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetClientSecret() string { +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User) GetID() string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User{} } - return t.ClientSecret + return t.ID } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User) GetLastName() *string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User{} } - return t.CreatedAt + return t.LastName } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetCreatedBy() *string { + +type CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships struct { + GroupID string "json:\"groupID\" graphql:\"groupID\"" + Group CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group "json:\"group\" graphql:\"group\"" + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UserID string "json:\"userID\" graphql:\"userID\"" + User CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User "json:\"user\" graphql:\"user\"" +} + +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships) GetGroupID() string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships{} } - return t.CreatedBy + return t.GroupID } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships) GetGroup() *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_Group { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships{} } - return &t.HistoryTime + return &t.Group } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetID() string { +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships) GetID() string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships{} } return t.ID } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetInfoURL() string { +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships) GetRole() *enums.Role { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships{} } - return t.InfoURL + return &t.Role } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetName() string { +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships) GetUserID() string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships{} } - return t.Name + return t.UserID } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetOperation() *history.OpType { +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships) GetUser() *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships_User { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships{} } - return &t.Operation + return &t.User } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetOwnerID() *string { - if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} - } - return t.OwnerID + +type CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership struct { + GroupMemberships []*CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships "json:\"groupMemberships,omitempty\" graphql:\"groupMemberships\"" } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetRedirectURL() string { + +func (t *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership) GetGroupMemberships() []*CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership_GroupMemberships { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership{} } - return t.RedirectURL + return t.GroupMemberships } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetRef() *string { + +type CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" +} + +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group) GetID() string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group{} } - return t.Ref + return t.ID } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetScopes() string { +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group) GetName() string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group{} } - return t.Scopes + return t.Name } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetTags() []string { + +type CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User struct { + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + ID string "json:\"id\" graphql:\"id\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +} + +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User) GetDisplayName() string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User{} } - return t.Tags + return t.DisplayName } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetTokenURL() string { +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User) GetEmail() string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User{} } - return t.TokenURL + return t.Email } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User) GetFirstName() *string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User{} } - return t.UpdatedAt + return t.FirstName } -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User) GetID() string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User{} } - return t.UpdatedBy -} - -type GetAllOauthProviderHistories_OauthProviderHistories_Edges struct { - Node *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return t.ID } - -func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges) GetNode() *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node { +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User) GetLastName() *string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User{} } - return t.Node + return t.LastName } -type GetAllOauthProviderHistories_OauthProviderHistories struct { - Edges []*GetAllOauthProviderHistories_OauthProviderHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships struct { + GroupID string "json:\"groupID\" graphql:\"groupID\"" + Group CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group "json:\"group\" graphql:\"group\"" + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UserID string "json:\"userID\" graphql:\"userID\"" + User CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User "json:\"user\" graphql:\"user\"" } -func (t *GetAllOauthProviderHistories_OauthProviderHistories) GetEdges() []*GetAllOauthProviderHistories_OauthProviderHistories_Edges { +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships) GetGroupID() string { if t == nil { - t = &GetAllOauthProviderHistories_OauthProviderHistories{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships{} } - return t.Edges -} - -type GetOauthProviderHistories_OauthProviderHistories_Edges_Node struct { - AuthStyle string "json:\"authStyle\" graphql:\"authStyle\"" - AuthURL string "json:\"authURL\" graphql:\"authURL\"" - ClientID string "json:\"clientID\" graphql:\"clientID\"" - ClientSecret string "json:\"clientSecret\" graphql:\"clientSecret\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - InfoURL string "json:\"infoURL\" graphql:\"infoURL\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - RedirectURL string "json:\"redirectURL\" graphql:\"redirectURL\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Scopes string "json:\"scopes\" graphql:\"scopes\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TokenURL string "json:\"tokenURL\" graphql:\"tokenURL\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.GroupID } - -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetAuthStyle() string { +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships) GetGroup() *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_Group { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships{} } - return t.AuthStyle + return &t.Group } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetAuthURL() string { +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships) GetID() string { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships{} } - return t.AuthURL + return t.ID } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetClientID() string { +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships) GetRole() *enums.Role { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships{} } - return t.ClientID + return &t.Role } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetClientSecret() string { +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships) GetUserID() string { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships{} } - return t.ClientSecret + return t.UserID } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships) GetUser() *CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships_User { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships{} } - return t.CreatedAt + return &t.User } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetCreatedBy() *string { + +type CreateBulkGroupMembers_CreateBulkGroupMembership struct { + GroupMemberships []*CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships "json:\"groupMemberships,omitempty\" graphql:\"groupMemberships\"" +} + +func (t *CreateBulkGroupMembers_CreateBulkGroupMembership) GetGroupMemberships() []*CreateBulkGroupMembers_CreateBulkGroupMembership_GroupMemberships { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &CreateBulkGroupMembers_CreateBulkGroupMembership{} } - return t.CreatedBy + return t.GroupMemberships } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetHistoryTime() *time.Time { + +type GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" +} + +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group) GetID() string { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group{} } - return &t.HistoryTime + return t.ID } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetID() string { +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group) GetName() string { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group{} } - return t.ID + return t.Name } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetInfoURL() string { + +type GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User struct { + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + ID string "json:\"id\" graphql:\"id\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +} + +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User) GetDisplayName() string { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User{} } - return t.InfoURL + return t.DisplayName } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetName() string { +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User) GetEmail() string { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User{} } - return t.Name + return t.Email } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User) GetFirstName() *string { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User{} } - return &t.Operation + return t.FirstName } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetOwnerID() *string { +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User) GetID() string { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User{} } - return t.OwnerID + return t.ID } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetRedirectURL() string { +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User) GetLastName() *string { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User{} } - return t.RedirectURL + return t.LastName } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetRef() *string { + +type GetGroupMembersByGroupID_GroupMemberships_Edges_Node struct { + GroupID string "json:\"groupID\" graphql:\"groupID\"" + Group GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group "json:\"group\" graphql:\"group\"" + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UserID string "json:\"userID\" graphql:\"userID\"" + User GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User "json:\"user\" graphql:\"user\"" +} + +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node) GetGroupID() string { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node{} } - return t.Ref + return t.GroupID } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetScopes() string { +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node) GetGroup() *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_Group { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node{} } - return t.Scopes + return &t.Group } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetTags() []string { +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node) GetID() string { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node{} } - return t.Tags + return t.ID } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetTokenURL() string { +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node) GetRole() *enums.Role { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node{} } - return t.TokenURL + return &t.Role } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node) GetUserID() string { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node{} } - return t.UpdatedAt + return t.UserID } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges_Node) GetUser() *GetGroupMembersByGroupID_GroupMemberships_Edges_Node_User { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges_Node{} } - return t.UpdatedBy + return &t.User } -type GetOauthProviderHistories_OauthProviderHistories_Edges struct { - Node *GetOauthProviderHistories_OauthProviderHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetGroupMembersByGroupID_GroupMemberships_Edges struct { + Node *GetGroupMembersByGroupID_GroupMemberships_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetOauthProviderHistories_OauthProviderHistories_Edges) GetNode() *GetOauthProviderHistories_OauthProviderHistories_Edges_Node { +func (t *GetGroupMembersByGroupID_GroupMemberships_Edges) GetNode() *GetGroupMembersByGroupID_GroupMemberships_Edges_Node { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories_Edges{} + t = &GetGroupMembersByGroupID_GroupMemberships_Edges{} } return t.Node } -type GetOauthProviderHistories_OauthProviderHistories struct { - Edges []*GetOauthProviderHistories_OauthProviderHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetGroupMembersByGroupID_GroupMemberships struct { + Edges []*GetGroupMembersByGroupID_GroupMemberships_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetOauthProviderHistories_OauthProviderHistories) GetEdges() []*GetOauthProviderHistories_OauthProviderHistories_Edges { +func (t *GetGroupMembersByGroupID_GroupMemberships) GetEdges() []*GetGroupMembersByGroupID_GroupMemberships_Edges { if t == nil { - t = &GetOauthProviderHistories_OauthProviderHistories{} + t = &GetGroupMembersByGroupID_GroupMemberships{} } return t.Edges } -type CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Integration struct { - ID string "json:\"id\" graphql:\"id\"" +type RemoveUserFromGroup_DeleteGroupMembership struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Integration) GetID() string { +func (t *RemoveUserFromGroup_DeleteGroupMembership) GetDeletedID() string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Integration{} + t = &RemoveUserFromGroup_DeleteGroupMembership{} } - return t.ID + return t.DeletedID } -type CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Events) GetID() string { +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group) GetID() string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Events{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group{} } return t.ID } +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group) GetName() string { + if t == nil { + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group{} + } + return t.Name +} -type CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens struct { - ClaimsEmail string "json:\"claimsEmail\" graphql:\"claimsEmail\"" - ClaimsEmailVerified bool "json:\"claimsEmailVerified\" graphql:\"claimsEmailVerified\"" - ClaimsGroups []string "json:\"claimsGroups,omitempty\" graphql:\"claimsGroups\"" - ClaimsPreferredUsername string "json:\"claimsPreferredUsername\" graphql:\"claimsPreferredUsername\"" - ClaimsUserID string "json:\"claimsUserID\" graphql:\"claimsUserID\"" - ClaimsUsername string "json:\"claimsUsername\" graphql:\"claimsUsername\"" - ClientID string "json:\"clientID\" graphql:\"clientID\"" - ConnectorData []string "json:\"connectorData,omitempty\" graphql:\"connectorData\"" - ConnectorID string "json:\"connectorID\" graphql:\"connectorID\"" - ID string "json:\"id\" graphql:\"id\"" - LastUsed time.Time "json:\"lastUsed\" graphql:\"lastUsed\"" - Nonce string "json:\"nonce\" graphql:\"nonce\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Integration []*CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Integration "json:\"integration,omitempty\" graphql:\"integration\"" - Events []*CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Events "json:\"events,omitempty\" graphql:\"events\"" +type UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User struct { + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + ID string "json:\"id\" graphql:\"id\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClaimsEmail() string { +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User) GetDisplayName() string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User{} } - return t.ClaimsEmail + return t.DisplayName } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClaimsEmailVerified() bool { +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User) GetEmail() string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User{} } - return t.ClaimsEmailVerified + return t.Email } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClaimsGroups() []string { +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User) GetFirstName() *string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User{} } - return t.ClaimsGroups + return t.FirstName } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClaimsPreferredUsername() string { +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User) GetID() string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User{} } - return t.ClaimsPreferredUsername + return t.ID } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClaimsUserID() string { +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User) GetLastName() *string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User{} } - return t.ClaimsUserID + return t.LastName } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClaimsUsername() string { + +type UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership struct { + GroupID string "json:\"groupID\" graphql:\"groupID\"" + Group UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group "json:\"group\" graphql:\"group\"" + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UserID string "json:\"userID\" graphql:\"userID\"" + User UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User "json:\"user\" graphql:\"user\"" +} + +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership) GetGroupID() string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership{} } - return t.ClaimsUsername + return t.GroupID } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClientID() string { +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership) GetGroup() *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_Group { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership{} } - return t.ClientID + return &t.Group } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetConnectorData() []string { +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership) GetID() string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership{} } - return t.ConnectorData + return t.ID } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetConnectorID() string { +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership) GetRole() *enums.Role { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership{} } - return t.ConnectorID + return &t.Role } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetID() string { +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership) GetUserID() string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership{} } - return t.ID + return t.UserID } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetLastUsed() *time.Time { +func (t *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership) GetUser() *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership_User { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership{} } - return &t.LastUsed + return &t.User } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetNonce() string { + +type UpdateUserRoleInGroup_UpdateGroupMembership struct { + GroupMembership UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership "json:\"groupMembership\" graphql:\"groupMembership\"" +} + +func (t *UpdateUserRoleInGroup_UpdateGroupMembership) GetGroupMembership() *UpdateUserRoleInGroup_UpdateGroupMembership_GroupMembership { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &UpdateUserRoleInGroup_UpdateGroupMembership{} } - return t.Nonce + return &t.GroupMembership } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetScopes() []string { + +type GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + GroupID string "json:\"groupID\" graphql:\"groupID\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UserID string "json:\"userID\" graphql:\"userID\"" +} + +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.Scopes + return t.CreatedAt } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetIntegration() []*CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Integration { +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.Integration + return t.CreatedBy } -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetEvents() []*CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Events { +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetGroupID() string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} + t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.Events -} - -type CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken struct { - OhAuthTooTokens []*CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens "json:\"ohAuthTooTokens,omitempty\" graphql:\"ohAuthTooTokens\"" + return t.GroupID } - -func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken) GetOhAuthTooTokens() []*CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens { +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken{} + t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.OhAuthTooTokens -} - -type CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Integration struct { - ID string "json:\"id\" graphql:\"id\"" + return &t.HistoryTime } - -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Integration) GetID() string { +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Integration{} + t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } return t.ID } - -type CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Events struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + } + return &t.Operation } - -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Events) GetID() string { +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetRef() *string { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Events{} + t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.ID + return t.Ref } - -type CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens struct { - ClaimsEmail string "json:\"claimsEmail\" graphql:\"claimsEmail\"" - ClaimsEmailVerified bool "json:\"claimsEmailVerified\" graphql:\"claimsEmailVerified\"" - ClaimsGroups []string "json:\"claimsGroups,omitempty\" graphql:\"claimsGroups\"" - ClaimsPreferredUsername string "json:\"claimsPreferredUsername\" graphql:\"claimsPreferredUsername\"" - ClaimsUserID string "json:\"claimsUserID\" graphql:\"claimsUserID\"" - ClaimsUsername string "json:\"claimsUsername\" graphql:\"claimsUsername\"" - ClientID string "json:\"clientID\" graphql:\"clientID\"" - ConnectorData []string "json:\"connectorData,omitempty\" graphql:\"connectorData\"" - ConnectorID string "json:\"connectorID\" graphql:\"connectorID\"" - ID string "json:\"id\" graphql:\"id\"" - LastUsed time.Time "json:\"lastUsed\" graphql:\"lastUsed\"" - Nonce string "json:\"nonce\" graphql:\"nonce\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Integration []*CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Integration "json:\"integration,omitempty\" graphql:\"integration\"" - Events []*CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Events "json:\"events,omitempty\" graphql:\"events\"" +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetRole() *enums.Role { + if t == nil { + t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} + } + return &t.Role } - -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClaimsEmail() string { +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.ClaimsEmail + return t.UpdatedAt } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClaimsEmailVerified() bool { +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.ClaimsEmailVerified + return t.UpdatedBy } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClaimsGroups() []string { +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetUserID() string { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.ClaimsGroups + return t.UserID } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClaimsPreferredUsername() string { + +type GetAllGroupMembershipHistories_GroupMembershipHistories_Edges struct { + Node *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges) GetNode() *GetAllGroupMembershipHistories_GroupMembershipHistories_Edges_Node { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetAllGroupMembershipHistories_GroupMembershipHistories_Edges{} } - return t.ClaimsPreferredUsername + return t.Node } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClaimsUserID() string { + +type GetAllGroupMembershipHistories_GroupMembershipHistories struct { + Edges []*GetAllGroupMembershipHistories_GroupMembershipHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllGroupMembershipHistories_GroupMembershipHistories) GetEdges() []*GetAllGroupMembershipHistories_GroupMembershipHistories_Edges { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetAllGroupMembershipHistories_GroupMembershipHistories{} } - return t.ClaimsUserID + return t.Edges } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClaimsUsername() string { + +type GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + GroupID string "json:\"groupID\" graphql:\"groupID\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UserID string "json:\"userID\" graphql:\"userID\"" +} + +func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.ClaimsUsername + return t.CreatedAt } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClientID() string { +func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.ClientID + return t.CreatedBy } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetConnectorData() []string { +func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetGroupID() string { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.ConnectorData + return t.GroupID } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetConnectorID() string { +func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.ConnectorID + return &t.HistoryTime } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetID() string { +func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } return t.ID } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetLastUsed() *time.Time { +func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return &t.LastUsed + return &t.Operation } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetNonce() string { +func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetRef() *string { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.Nonce + return t.Ref } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetScopes() []string { +func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetRole() *enums.Role { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.Scopes + return &t.Role } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetIntegration() []*CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Integration { +func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.Integration + return t.UpdatedAt } -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetEvents() []*CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Events { +func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.Events -} - -type CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken struct { - OhAuthTooTokens []*CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens "json:\"ohAuthTooTokens,omitempty\" graphql:\"ohAuthTooTokens\"" + return t.UpdatedBy } - -func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken) GetOhAuthTooTokens() []*CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens { +func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node) GetUserID() string { if t == nil { - t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken{} + t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node{} } - return t.OhAuthTooTokens + return t.UserID } -type CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Integration struct { - ID string "json:\"id\" graphql:\"id\"" +type GetGroupMembershipHistories_GroupMembershipHistories_Edges struct { + Node *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Integration) GetID() string { +func (t *GetGroupMembershipHistories_GroupMembershipHistories_Edges) GetNode() *GetGroupMembershipHistories_GroupMembershipHistories_Edges_Node { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Integration{} + t = &GetGroupMembershipHistories_GroupMembershipHistories_Edges{} } - return t.ID + return t.Node } -type CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type GetGroupMembershipHistories_GroupMembershipHistories struct { + Edges []*GetGroupMembershipHistories_GroupMembershipHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Events) GetID() string { +func (t *GetGroupMembershipHistories_GroupMembershipHistories) GetEdges() []*GetGroupMembershipHistories_GroupMembershipHistories_Edges { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Events{} + t = &GetGroupMembershipHistories_GroupMembershipHistories{} } - return t.ID + return t.Edges } -type CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken struct { - ClaimsEmail string "json:\"claimsEmail\" graphql:\"claimsEmail\"" - ClaimsEmailVerified bool "json:\"claimsEmailVerified\" graphql:\"claimsEmailVerified\"" - ClaimsGroups []string "json:\"claimsGroups,omitempty\" graphql:\"claimsGroups\"" - ClaimsPreferredUsername string "json:\"claimsPreferredUsername\" graphql:\"claimsPreferredUsername\"" - ClaimsUserID string "json:\"claimsUserID\" graphql:\"claimsUserID\"" - ClaimsUsername string "json:\"claimsUsername\" graphql:\"claimsUsername\"" - ClientID string "json:\"clientID\" graphql:\"clientID\"" - ConnectorData []string "json:\"connectorData,omitempty\" graphql:\"connectorData\"" - ConnectorID string "json:\"connectorID\" graphql:\"connectorID\"" - ID string "json:\"id\" graphql:\"id\"" - LastUsed time.Time "json:\"lastUsed\" graphql:\"lastUsed\"" - Nonce string "json:\"nonce\" graphql:\"nonce\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Integration []*CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Integration "json:\"integration,omitempty\" graphql:\"integration\"" - Events []*CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Events "json:\"events,omitempty\" graphql:\"events\"" +type GetAllGroupSettings_GroupSettings_Edges_Node_Group struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClaimsEmail() string { - if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} - } - return t.ClaimsEmail -} -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClaimsEmailVerified() bool { +func (t *GetAllGroupSettings_GroupSettings_Edges_Node_Group) GetID() string { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node_Group{} } - return t.ClaimsEmailVerified + return t.ID } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClaimsGroups() []string { +func (t *GetAllGroupSettings_GroupSettings_Edges_Node_Group) GetName() string { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node_Group{} } - return t.ClaimsGroups + return t.Name } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClaimsPreferredUsername() string { - if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} - } - return t.ClaimsPreferredUsername + +type GetAllGroupSettings_GroupSettings_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" + Group *GetAllGroupSettings_GroupSettings_Edges_Node_Group "json:\"group,omitempty\" graphql:\"group\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClaimsUserID() string { + +func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetID() string { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node{} } - return t.ClaimsUserID + return t.ID } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClaimsUsername() string { +func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetJoinPolicy() *enums.JoinPolicy { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node{} } - return t.ClaimsUsername + return &t.JoinPolicy } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClientID() string { +func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetSyncToGithub() *bool { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node{} } - return t.ClientID + return t.SyncToGithub } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetConnectorData() []string { +func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetSyncToSlack() *bool { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node{} } - return t.ConnectorData + return t.SyncToSlack } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetConnectorID() string { +func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetTags() []string { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node{} } - return t.ConnectorID + return t.Tags } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetID() string { +func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetVisibility() *enums.Visibility { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node{} } - return t.ID + return &t.Visibility } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetLastUsed() *time.Time { +func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetGroup() *GetAllGroupSettings_GroupSettings_Edges_Node_Group { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node{} } - return &t.LastUsed + return t.Group } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetNonce() string { +func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node{} } - return t.Nonce + return t.CreatedAt } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetScopes() []string { +func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node{} } - return t.Scopes + return t.CreatedBy } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetIntegration() []*CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Integration { +func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node{} } - return t.Integration + return t.UpdatedAt } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetEvents() []*CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Events { +func (t *GetAllGroupSettings_GroupSettings_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges_Node{} } - return t.Events + return t.UpdatedBy } -type CreateOhAuthTooToken_CreateOhAuthTooToken struct { - OhAuthTooToken CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken "json:\"ohAuthTooToken\" graphql:\"ohAuthTooToken\"" +type GetAllGroupSettings_GroupSettings_Edges struct { + Node *GetAllGroupSettings_GroupSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateOhAuthTooToken_CreateOhAuthTooToken) GetOhAuthTooToken() *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken { +func (t *GetAllGroupSettings_GroupSettings_Edges) GetNode() *GetAllGroupSettings_GroupSettings_Edges_Node { if t == nil { - t = &CreateOhAuthTooToken_CreateOhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings_Edges{} } - return &t.OhAuthTooToken + return t.Node } -type DeleteOhAuthTooToken_DeleteOhAuthTooToken struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type GetAllGroupSettings_GroupSettings struct { + Edges []*GetAllGroupSettings_GroupSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *DeleteOhAuthTooToken_DeleteOhAuthTooToken) GetDeletedID() string { +func (t *GetAllGroupSettings_GroupSettings) GetEdges() []*GetAllGroupSettings_GroupSettings_Edges { if t == nil { - t = &DeleteOhAuthTooToken_DeleteOhAuthTooToken{} + t = &GetAllGroupSettings_GroupSettings{} } - return t.DeletedID + return t.Edges } -type GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Integration struct { - ID string "json:\"id\" graphql:\"id\"" -} +type GetGroupSettingByID_GroupSetting_Group struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" +} -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Integration) GetID() string { +func (t *GetGroupSettingByID_GroupSetting_Group) GetID() string { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Integration{} + t = &GetGroupSettingByID_GroupSetting_Group{} } return t.ID } +func (t *GetGroupSettingByID_GroupSetting_Group) GetName() string { + if t == nil { + t = &GetGroupSettingByID_GroupSetting_Group{} + } + return t.Name +} -type GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type GetGroupSettingByID_GroupSetting struct { + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" + Group *GetGroupSettingByID_GroupSetting_Group "json:\"group,omitempty\" graphql:\"group\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Events) GetID() string { +func (t *GetGroupSettingByID_GroupSetting) GetID() string { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Events{} + t = &GetGroupSettingByID_GroupSetting{} } return t.ID } - -type GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node struct { - ClaimsEmail string "json:\"claimsEmail\" graphql:\"claimsEmail\"" - ClaimsEmailVerified bool "json:\"claimsEmailVerified\" graphql:\"claimsEmailVerified\"" - ClaimsGroups []string "json:\"claimsGroups,omitempty\" graphql:\"claimsGroups\"" - ClaimsPreferredUsername string "json:\"claimsPreferredUsername\" graphql:\"claimsPreferredUsername\"" - ClaimsUserID string "json:\"claimsUserID\" graphql:\"claimsUserID\"" - ClaimsUsername string "json:\"claimsUsername\" graphql:\"claimsUsername\"" - ClientID string "json:\"clientID\" graphql:\"clientID\"" - ConnectorData []string "json:\"connectorData,omitempty\" graphql:\"connectorData\"" - ConnectorID string "json:\"connectorID\" graphql:\"connectorID\"" - ID string "json:\"id\" graphql:\"id\"" - LastUsed time.Time "json:\"lastUsed\" graphql:\"lastUsed\"" - Nonce string "json:\"nonce\" graphql:\"nonce\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Integration []*GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Integration "json:\"integration,omitempty\" graphql:\"integration\"" - Events []*GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Events "json:\"events,omitempty\" graphql:\"events\"" +func (t *GetGroupSettingByID_GroupSetting) GetJoinPolicy() *enums.JoinPolicy { + if t == nil { + t = &GetGroupSettingByID_GroupSetting{} + } + return &t.JoinPolicy } - -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClaimsEmail() string { +func (t *GetGroupSettingByID_GroupSetting) GetSyncToGithub() *bool { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettingByID_GroupSetting{} } - return t.ClaimsEmail + return t.SyncToGithub } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClaimsEmailVerified() bool { +func (t *GetGroupSettingByID_GroupSetting) GetSyncToSlack() *bool { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettingByID_GroupSetting{} } - return t.ClaimsEmailVerified + return t.SyncToSlack } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClaimsGroups() []string { +func (t *GetGroupSettingByID_GroupSetting) GetTags() []string { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettingByID_GroupSetting{} } - return t.ClaimsGroups + return t.Tags } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClaimsPreferredUsername() string { +func (t *GetGroupSettingByID_GroupSetting) GetVisibility() *enums.Visibility { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettingByID_GroupSetting{} } - return t.ClaimsPreferredUsername + return &t.Visibility } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClaimsUserID() string { +func (t *GetGroupSettingByID_GroupSetting) GetGroup() *GetGroupSettingByID_GroupSetting_Group { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettingByID_GroupSetting{} } - return t.ClaimsUserID + return t.Group } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClaimsUsername() string { +func (t *GetGroupSettingByID_GroupSetting) GetCreatedAt() *time.Time { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettingByID_GroupSetting{} } - return t.ClaimsUsername + return t.CreatedAt } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClientID() string { +func (t *GetGroupSettingByID_GroupSetting) GetCreatedBy() *string { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettingByID_GroupSetting{} } - return t.ClientID + return t.CreatedBy } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetConnectorData() []string { +func (t *GetGroupSettingByID_GroupSetting) GetUpdatedAt() *time.Time { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettingByID_GroupSetting{} } - return t.ConnectorData + return t.UpdatedAt } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetConnectorID() string { +func (t *GetGroupSettingByID_GroupSetting) GetUpdatedBy() *string { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettingByID_GroupSetting{} } - return t.ConnectorID + return t.UpdatedBy } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetID() string { + +type GetGroupSettings_GroupSettings_Edges_Node_Group struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" +} + +func (t *GetGroupSettings_GroupSettings_Edges_Node_Group) GetID() string { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettings_GroupSettings_Edges_Node_Group{} } return t.ID } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetLastUsed() *time.Time { +func (t *GetGroupSettings_GroupSettings_Edges_Node_Group) GetName() string { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettings_GroupSettings_Edges_Node_Group{} } - return &t.LastUsed + return t.Name } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetNonce() string { + +type GetGroupSettings_GroupSettings_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" + Group *GetGroupSettings_GroupSettings_Edges_Node_Group "json:\"group,omitempty\" graphql:\"group\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetGroupSettings_GroupSettings_Edges_Node) GetID() string { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettings_GroupSettings_Edges_Node{} } - return t.Nonce + return t.ID } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetScopes() []string { +func (t *GetGroupSettings_GroupSettings_Edges_Node) GetJoinPolicy() *enums.JoinPolicy { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettings_GroupSettings_Edges_Node{} } - return t.Scopes + return &t.JoinPolicy } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetIntegration() []*GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Integration { +func (t *GetGroupSettings_GroupSettings_Edges_Node) GetSyncToGithub() *bool { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettings_GroupSettings_Edges_Node{} } - return t.Integration + return t.SyncToGithub } -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetEvents() []*GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Events { +func (t *GetGroupSettings_GroupSettings_Edges_Node) GetSyncToSlack() *bool { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + t = &GetGroupSettings_GroupSettings_Edges_Node{} } - return t.Events + return t.SyncToSlack } - -type GetOhAuthTooTokens_OhAuthTooTokens_Edges struct { - Node *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +func (t *GetGroupSettings_GroupSettings_Edges_Node) GetTags() []string { + if t == nil { + t = &GetGroupSettings_GroupSettings_Edges_Node{} + } + return t.Tags } - -func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges) GetNode() *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node { +func (t *GetGroupSettings_GroupSettings_Edges_Node) GetVisibility() *enums.Visibility { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges{} + t = &GetGroupSettings_GroupSettings_Edges_Node{} } - return t.Node + return &t.Visibility } - -type GetOhAuthTooTokens_OhAuthTooTokens struct { - Edges []*GetOhAuthTooTokens_OhAuthTooTokens_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +func (t *GetGroupSettings_GroupSettings_Edges_Node) GetGroup() *GetGroupSettings_GroupSettings_Edges_Node_Group { + if t == nil { + t = &GetGroupSettings_GroupSettings_Edges_Node{} + } + return t.Group } - -func (t *GetOhAuthTooTokens_OhAuthTooTokens) GetEdges() []*GetOhAuthTooTokens_OhAuthTooTokens_Edges { +func (t *GetGroupSettings_GroupSettings_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetOhAuthTooTokens_OhAuthTooTokens{} + t = &GetGroupSettings_GroupSettings_Edges_Node{} } - return t.Edges + return t.CreatedAt } - -type UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Integration struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetGroupSettings_GroupSettings_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetGroupSettings_GroupSettings_Edges_Node{} + } + return t.CreatedBy } - -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Integration) GetID() string { +func (t *GetGroupSettings_GroupSettings_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Integration{} + t = &GetGroupSettings_GroupSettings_Edges_Node{} } - return t.ID + return t.UpdatedAt +} +func (t *GetGroupSettings_GroupSettings_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetGroupSettings_GroupSettings_Edges_Node{} + } + return t.UpdatedBy } -type UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type GetGroupSettings_GroupSettings_Edges struct { + Node *GetGroupSettings_GroupSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Events) GetID() string { +func (t *GetGroupSettings_GroupSettings_Edges) GetNode() *GetGroupSettings_GroupSettings_Edges_Node { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Events{} + t = &GetGroupSettings_GroupSettings_Edges{} } - return t.ID + return t.Node } -type UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken struct { - ClaimsEmail string "json:\"claimsEmail\" graphql:\"claimsEmail\"" - ClaimsEmailVerified bool "json:\"claimsEmailVerified\" graphql:\"claimsEmailVerified\"" - ClaimsGroups []string "json:\"claimsGroups,omitempty\" graphql:\"claimsGroups\"" - ClaimsPreferredUsername string "json:\"claimsPreferredUsername\" graphql:\"claimsPreferredUsername\"" - ClaimsUserID string "json:\"claimsUserID\" graphql:\"claimsUserID\"" - ClaimsUsername string "json:\"claimsUsername\" graphql:\"claimsUsername\"" - ClientID string "json:\"clientID\" graphql:\"clientID\"" - ConnectorData []string "json:\"connectorData,omitempty\" graphql:\"connectorData\"" - ConnectorID string "json:\"connectorID\" graphql:\"connectorID\"" - ID string "json:\"id\" graphql:\"id\"" - LastUsed time.Time "json:\"lastUsed\" graphql:\"lastUsed\"" - Nonce string "json:\"nonce\" graphql:\"nonce\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Integration []*UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Integration "json:\"integration,omitempty\" graphql:\"integration\"" - Events []*UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Events "json:\"events,omitempty\" graphql:\"events\"" +type GetGroupSettings_GroupSettings struct { + Edges []*GetGroupSettings_GroupSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClaimsEmail() string { +func (t *GetGroupSettings_GroupSettings) GetEdges() []*GetGroupSettings_GroupSettings_Edges { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &GetGroupSettings_GroupSettings{} } - return t.ClaimsEmail + return t.Edges } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClaimsEmailVerified() bool { - if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} - } - return t.ClaimsEmailVerified + +type UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClaimsGroups() []string { + +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group) GetID() string { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group{} } - return t.ClaimsGroups + return t.ID } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClaimsPreferredUsername() string { +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group) GetName() string { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group{} } - return t.ClaimsPreferredUsername + return t.Name } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClaimsUserID() string { + +type UpdateGroupSetting_UpdateGroupSetting_GroupSetting struct { + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" + Group *UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group "json:\"group,omitempty\" graphql:\"group\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetID() string { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} } - return t.ClaimsUserID + return t.ID } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClaimsUsername() string { +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetJoinPolicy() *enums.JoinPolicy { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} } - return t.ClaimsUsername + return &t.JoinPolicy } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClientID() string { +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetSyncToGithub() *bool { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} } - return t.ClientID + return t.SyncToGithub } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetConnectorData() []string { +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetSyncToSlack() *bool { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} } - return t.ConnectorData + return t.SyncToSlack } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetConnectorID() string { +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetTags() []string { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} } - return t.ConnectorID + return t.Tags } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetID() string { +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetVisibility() *enums.Visibility { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} } - return t.ID + return &t.Visibility } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetLastUsed() *time.Time { +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetGroup() *UpdateGroupSetting_UpdateGroupSetting_GroupSetting_Group { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} } - return &t.LastUsed + return t.Group } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetNonce() string { +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} } - return t.Nonce + return t.CreatedAt } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetScopes() []string { +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetCreatedBy() *string { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} } - return t.Scopes + return t.CreatedBy } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetIntegration() []*UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Integration { +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} } - return t.Integration + return t.UpdatedAt } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetEvents() []*UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Events { +func (t *UpdateGroupSetting_UpdateGroupSetting_GroupSetting) GetUpdatedBy() *string { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting_GroupSetting{} } - return t.Events + return t.UpdatedBy } -type UpdateOhAuthTooToken_UpdateOhAuthTooToken struct { - OhAuthTooToken UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken "json:\"ohAuthTooToken\" graphql:\"ohAuthTooToken\"" +type UpdateGroupSetting_UpdateGroupSetting struct { + GroupSetting UpdateGroupSetting_UpdateGroupSetting_GroupSetting "json:\"groupSetting\" graphql:\"groupSetting\"" } -func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken) GetOhAuthTooToken() *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken { +func (t *UpdateGroupSetting_UpdateGroupSetting) GetGroupSetting() *UpdateGroupSetting_UpdateGroupSetting_GroupSetting { if t == nil { - t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken{} + t = &UpdateGroupSetting_UpdateGroupSetting{} } - return &t.OhAuthTooToken + return &t.GroupSetting } -type CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" } -func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations) GetID() string { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations) GetName() string { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.Name + return t.CreatedBy } -func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations) GetDisplayName() string { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetGroupID() *string { if t == nil { - t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.DisplayName + return t.GroupID } -func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations) GetDescription() *string { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.Description + return &t.HistoryTime } -func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations) GetPersonalOrg() *bool { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.PersonalOrg + return t.ID } -func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations) GetTags() []string { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetJoinPolicy() *enums.JoinPolicy { if t == nil { - t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.Tags -} - -type CreateBulkCSVOrganization_CreateBulkCSVOrganization struct { - Organizations []*CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" + return &t.JoinPolicy } - -func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization) GetOrganizations() []*CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.Organizations + return &t.Operation } - -type CreateBulkOrganization_CreateBulkOrganization_Organizations struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} + } + return t.Ref } - -func (t *CreateBulkOrganization_CreateBulkOrganization_Organizations) GetID() string { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetSyncToGithub() *bool { if t == nil { - t = &CreateBulkOrganization_CreateBulkOrganization_Organizations{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.ID + return t.SyncToGithub } -func (t *CreateBulkOrganization_CreateBulkOrganization_Organizations) GetName() string { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetSyncToSlack() *bool { if t == nil { - t = &CreateBulkOrganization_CreateBulkOrganization_Organizations{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.Name + return t.SyncToSlack } -func (t *CreateBulkOrganization_CreateBulkOrganization_Organizations) GetDisplayName() string { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetTags() []string { if t == nil { - t = &CreateBulkOrganization_CreateBulkOrganization_Organizations{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.DisplayName + return t.Tags } -func (t *CreateBulkOrganization_CreateBulkOrganization_Organizations) GetDescription() *string { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkOrganization_CreateBulkOrganization_Organizations{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.Description + return t.UpdatedAt } -func (t *CreateBulkOrganization_CreateBulkOrganization_Organizations) GetPersonalOrg() *bool { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkOrganization_CreateBulkOrganization_Organizations{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.PersonalOrg + return t.UpdatedBy } -func (t *CreateBulkOrganization_CreateBulkOrganization_Organizations) GetTags() []string { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node) GetVisibility() *enums.Visibility { if t == nil { - t = &CreateBulkOrganization_CreateBulkOrganization_Organizations{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.Tags + return &t.Visibility } -type CreateBulkOrganization_CreateBulkOrganization struct { - Organizations []*CreateBulkOrganization_CreateBulkOrganization_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" +type GetAllGroupSettingHistories_GroupSettingHistories_Edges struct { + Node *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkOrganization_CreateBulkOrganization) GetOrganizations() []*CreateBulkOrganization_CreateBulkOrganization_Organizations { +func (t *GetAllGroupSettingHistories_GroupSettingHistories_Edges) GetNode() *GetAllGroupSettingHistories_GroupSettingHistories_Edges_Node { if t == nil { - t = &CreateBulkOrganization_CreateBulkOrganization{} + t = &GetAllGroupSettingHistories_GroupSettingHistories_Edges{} } - return t.Organizations + return t.Node } -type CreateOrganization_CreateOrganization_Organization_Setting struct { - ID string "json:\"id\" graphql:\"id\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" - BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" - BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" - BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" - TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" - GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type GetAllGroupSettingHistories_GroupSettingHistories struct { + Edges []*GetAllGroupSettingHistories_GroupSettingHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetID() string { +func (t *GetAllGroupSettingHistories_GroupSettingHistories) GetEdges() []*GetAllGroupSettingHistories_GroupSettingHistories_Edges { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} + t = &GetAllGroupSettingHistories_GroupSettingHistories{} } - return t.ID + return t.Edges } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetCreatedAt() *time.Time { - if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} - } - return t.CreatedAt + +type GetGroupSettingHistories_GroupSettingHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + JoinPolicy enums.JoinPolicy "json:\"joinPolicy\" graphql:\"joinPolicy\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + SyncToGithub *bool "json:\"syncToGithub,omitempty\" graphql:\"syncToGithub\"" + SyncToSlack *bool "json:\"syncToSlack,omitempty\" graphql:\"syncToSlack\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Visibility enums.Visibility "json:\"visibility\" graphql:\"visibility\"" } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetUpdatedAt() *time.Time { + +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.UpdatedAt + return t.CreatedAt } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetCreatedBy() *string { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } return t.CreatedBy } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetUpdatedBy() *string { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetGroupID() *string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.UpdatedBy + return t.GroupID } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetDomains() []string { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.Domains + return &t.HistoryTime } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetBillingContact() *string { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetID() string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.BillingContact + return t.ID } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetBillingEmail() *string { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetJoinPolicy() *enums.JoinPolicy { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.BillingEmail + return &t.JoinPolicy } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetBillingPhone() *string { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.BillingPhone + return &t.Operation } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetBillingAddress() *string { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetRef() *string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.BillingAddress + return t.Ref } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetTaxIdentifier() *string { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetSyncToGithub() *bool { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.TaxIdentifier + return t.SyncToGithub } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetGeoLocation() *enums.Region { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetSyncToSlack() *bool { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.GeoLocation + return t.SyncToSlack } -func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetTags() []string { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetTags() []string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Setting{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } return t.Tags } - -type CreateOrganization_CreateOrganization_Organization_Parent struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} + } + return t.UpdatedAt } - -func (t *CreateOrganization_CreateOrganization_Organization_Parent) GetID() string { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Parent{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.ID + return t.UpdatedBy } -func (t *CreateOrganization_CreateOrganization_Organization_Parent) GetName() string { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges_Node) GetVisibility() *enums.Visibility { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Parent{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges_Node{} } - return t.Name + return &t.Visibility } -type CreateOrganization_CreateOrganization_Organization_Children_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" +type GetGroupSettingHistories_GroupSettingHistories_Edges struct { + Node *GetGroupSettingHistories_GroupSettingHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateOrganization_CreateOrganization_Organization_Children_Edges_Node) GetID() string { - if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Children_Edges_Node{} - } - return t.ID -} -func (t *CreateOrganization_CreateOrganization_Organization_Children_Edges_Node) GetName() string { +func (t *GetGroupSettingHistories_GroupSettingHistories_Edges) GetNode() *GetGroupSettingHistories_GroupSettingHistories_Edges_Node { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Children_Edges_Node{} + t = &GetGroupSettingHistories_GroupSettingHistories_Edges{} } - return t.Name + return t.Node } -func (t *CreateOrganization_CreateOrganization_Organization_Children_Edges_Node) GetDisplayName() string { - if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Children_Edges_Node{} - } - return t.DisplayName + +type GetGroupSettingHistories_GroupSettingHistories struct { + Edges []*GetGroupSettingHistories_GroupSettingHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateOrganization_CreateOrganization_Organization_Children_Edges_Node) GetDescription() *string { + +func (t *GetGroupSettingHistories_GroupSettingHistories) GetEdges() []*GetGroupSettingHistories_GroupSettingHistories_Edges { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Children_Edges_Node{} + t = &GetGroupSettingHistories_GroupSettingHistories{} } - return t.Description + return t.Edges } -type CreateOrganization_CreateOrganization_Organization_Children_Edges struct { - Node *CreateOrganization_CreateOrganization_Organization_Children_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Integrations struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *CreateOrganization_CreateOrganization_Organization_Children_Edges) GetNode() *CreateOrganization_CreateOrganization_Organization_Children_Edges_Node { +func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Integrations) GetID() string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Children_Edges{} + t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Integrations{} } - return t.Node + return t.ID } -type CreateOrganization_CreateOrganization_Organization_Children struct { - Edges []*CreateOrganization_CreateOrganization_Organization_Children_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Organization struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *CreateOrganization_CreateOrganization_Organization_Children) GetEdges() []*CreateOrganization_CreateOrganization_Organization_Children_Edges { +func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Organization) GetID() string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization_Children{} + t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Organization{} } - return t.Edges + return t.ID } -type CreateOrganization_CreateOrganization_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - Setting *CreateOrganization_CreateOrganization_Organization_Setting "json:\"setting,omitempty\" graphql:\"setting\"" - Parent *CreateOrganization_CreateOrganization_Organization_Parent "json:\"parent,omitempty\" graphql:\"parent\"" - Children CreateOrganization_CreateOrganization_Organization_Children "json:\"children\" graphql:\"children\"" +type CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *CreateOrganization_CreateOrganization_Organization) GetID() string { +func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Events) GetID() string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization{} + t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Events{} } return t.ID } -func (t *CreateOrganization_CreateOrganization_Organization) GetName() string { - if t == nil { - t = &CreateOrganization_CreateOrganization_Organization{} - } - return t.Name -} -func (t *CreateOrganization_CreateOrganization_Organization) GetDisplayName() string { - if t == nil { - t = &CreateOrganization_CreateOrganization_Organization{} - } - return t.DisplayName + +type CreateBulkCSVHush_CreateBulkCSVHush_Hushes struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" + Integrations []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" + Organization []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Events []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Events "json:\"events,omitempty\" graphql:\"events\"" } -func (t *CreateOrganization_CreateOrganization_Organization) GetDescription() *string { + +func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetDescription() *string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization{} + t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} } return t.Description } -func (t *CreateOrganization_CreateOrganization_Organization) GetPersonalOrg() *bool { +func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetID() string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization{} + t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} } - return t.PersonalOrg + return t.ID } -func (t *CreateOrganization_CreateOrganization_Organization) GetTags() []string { +func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetKind() *string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization{} + t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} } - return t.Tags + return t.Kind } -func (t *CreateOrganization_CreateOrganization_Organization) GetCreatedAt() *time.Time { +func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetName() string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization{} + t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} } - return t.CreatedAt + return t.Name } -func (t *CreateOrganization_CreateOrganization_Organization) GetUpdatedAt() *time.Time { +func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetSecretName() *string { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization{} + t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} } - return t.UpdatedAt + return t.SecretName } -func (t *CreateOrganization_CreateOrganization_Organization) GetSetting() *CreateOrganization_CreateOrganization_Organization_Setting { +func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetIntegrations() []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Integrations { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization{} + t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} } - return t.Setting + return t.Integrations } -func (t *CreateOrganization_CreateOrganization_Organization) GetParent() *CreateOrganization_CreateOrganization_Organization_Parent { +func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetOrganization() []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Organization { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization{} + t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} } - return t.Parent + return t.Organization } -func (t *CreateOrganization_CreateOrganization_Organization) GetChildren() *CreateOrganization_CreateOrganization_Organization_Children { +func (t *CreateBulkCSVHush_CreateBulkCSVHush_Hushes) GetEvents() []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes_Events { if t == nil { - t = &CreateOrganization_CreateOrganization_Organization{} + t = &CreateBulkCSVHush_CreateBulkCSVHush_Hushes{} } - return &t.Children + return t.Events } -type CreateOrganization_CreateOrganization struct { - Organization CreateOrganization_CreateOrganization_Organization "json:\"organization\" graphql:\"organization\"" +type CreateBulkCSVHush_CreateBulkCSVHush struct { + Hushes []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes "json:\"hushes,omitempty\" graphql:\"hushes\"" } -func (t *CreateOrganization_CreateOrganization) GetOrganization() *CreateOrganization_CreateOrganization_Organization { +func (t *CreateBulkCSVHush_CreateBulkCSVHush) GetHushes() []*CreateBulkCSVHush_CreateBulkCSVHush_Hushes { if t == nil { - t = &CreateOrganization_CreateOrganization{} + t = &CreateBulkCSVHush_CreateBulkCSVHush{} } - return &t.Organization + return t.Hushes } -type DeleteOrganization_DeleteOrganization struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type CreateBulkHush_CreateBulkHush_Hushes_Integrations struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *DeleteOrganization_DeleteOrganization) GetDeletedID() string { +func (t *CreateBulkHush_CreateBulkHush_Hushes_Integrations) GetID() string { if t == nil { - t = &DeleteOrganization_DeleteOrganization{} + t = &CreateBulkHush_CreateBulkHush_Hushes_Integrations{} } - return t.DeletedID + return t.ID } -type GetAllOrganizations_Organizations_Edges_Node_Parent struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type CreateBulkHush_CreateBulkHush_Hushes_Organization struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllOrganizations_Organizations_Edges_Node_Parent) GetID() string { +func (t *CreateBulkHush_CreateBulkHush_Hushes_Organization) GetID() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Parent{} + t = &CreateBulkHush_CreateBulkHush_Hushes_Organization{} } return t.ID } -func (t *GetAllOrganizations_Organizations_Edges_Node_Parent) GetName() string { + +type CreateBulkHush_CreateBulkHush_Hushes_Events struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *CreateBulkHush_CreateBulkHush_Hushes_Events) GetID() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Parent{} + t = &CreateBulkHush_CreateBulkHush_Hushes_Events{} } - return t.Name + return t.ID } -type GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" +type CreateBulkHush_CreateBulkHush_Hushes struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" + Integrations []*CreateBulkHush_CreateBulkHush_Hushes_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" + Organization []*CreateBulkHush_CreateBulkHush_Hushes_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Events []*CreateBulkHush_CreateBulkHush_Hushes_Events "json:\"events,omitempty\" graphql:\"events\"" } -func (t *GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetID() string { +func (t *CreateBulkHush_CreateBulkHush_Hushes) GetDescription() *string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node{} + t = &CreateBulkHush_CreateBulkHush_Hushes{} } - return t.ID + return t.Description } -func (t *GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetName() string { +func (t *CreateBulkHush_CreateBulkHush_Hushes) GetID() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node{} + t = &CreateBulkHush_CreateBulkHush_Hushes{} } - return t.Name + return t.ID } -func (t *GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetDisplayName() string { +func (t *CreateBulkHush_CreateBulkHush_Hushes) GetKind() *string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node{} + t = &CreateBulkHush_CreateBulkHush_Hushes{} } - return t.DisplayName + return t.Kind } -func (t *GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetDescription() *string { +func (t *CreateBulkHush_CreateBulkHush_Hushes) GetName() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node{} + t = &CreateBulkHush_CreateBulkHush_Hushes{} } - return t.Description -} - -type GetAllOrganizations_Organizations_Edges_Node_Children_Edges struct { - Node *GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return t.Name } - -func (t *GetAllOrganizations_Organizations_Edges_Node_Children_Edges) GetNode() *GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node { +func (t *CreateBulkHush_CreateBulkHush_Hushes) GetSecretName() *string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Children_Edges{} + t = &CreateBulkHush_CreateBulkHush_Hushes{} } - return t.Node -} - -type GetAllOrganizations_Organizations_Edges_Node_Children struct { - Edges []*GetAllOrganizations_Organizations_Edges_Node_Children_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.SecretName } - -func (t *GetAllOrganizations_Organizations_Edges_Node_Children) GetEdges() []*GetAllOrganizations_Organizations_Edges_Node_Children_Edges { +func (t *CreateBulkHush_CreateBulkHush_Hushes) GetIntegrations() []*CreateBulkHush_CreateBulkHush_Hushes_Integrations { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Children{} + t = &CreateBulkHush_CreateBulkHush_Hushes{} } - return t.Edges -} - -type GetAllOrganizations_Organizations_Edges_Node_Members_User struct { - ID string "json:\"id\" graphql:\"id\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + return t.Integrations } - -func (t *GetAllOrganizations_Organizations_Edges_Node_Members_User) GetID() string { +func (t *CreateBulkHush_CreateBulkHush_Hushes) GetOrganization() []*CreateBulkHush_CreateBulkHush_Hushes_Organization { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Members_User{} + t = &CreateBulkHush_CreateBulkHush_Hushes{} } - return t.ID + return t.Organization } -func (t *GetAllOrganizations_Organizations_Edges_Node_Members_User) GetFirstName() *string { +func (t *CreateBulkHush_CreateBulkHush_Hushes) GetEvents() []*CreateBulkHush_CreateBulkHush_Hushes_Events { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Members_User{} + t = &CreateBulkHush_CreateBulkHush_Hushes{} } - return t.FirstName + return t.Events } -func (t *GetAllOrganizations_Organizations_Edges_Node_Members_User) GetLastName() *string { + +type CreateBulkHush_CreateBulkHush struct { + Hushes []*CreateBulkHush_CreateBulkHush_Hushes "json:\"hushes,omitempty\" graphql:\"hushes\"" +} + +func (t *CreateBulkHush_CreateBulkHush) GetHushes() []*CreateBulkHush_CreateBulkHush_Hushes { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Members_User{} + t = &CreateBulkHush_CreateBulkHush{} } - return t.LastName + return t.Hushes } -type GetAllOrganizations_Organizations_Edges_Node_Members struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - User GetAllOrganizations_Organizations_Edges_Node_Members_User "json:\"user\" graphql:\"user\"" +type CreateHush_CreateHush_Hush_Integrations struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllOrganizations_Organizations_Edges_Node_Members) GetID() string { +func (t *CreateHush_CreateHush_Hush_Integrations) GetID() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Members{} + t = &CreateHush_CreateHush_Hush_Integrations{} } return t.ID } -func (t *GetAllOrganizations_Organizations_Edges_Node_Members) GetRole() *enums.Role { - if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Members{} - } - return &t.Role + +type CreateHush_CreateHush_Hush_Organization struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllOrganizations_Organizations_Edges_Node_Members) GetUser() *GetAllOrganizations_Organizations_Edges_Node_Members_User { + +func (t *CreateHush_CreateHush_Hush_Organization) GetID() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Members{} + t = &CreateHush_CreateHush_Hush_Organization{} } - return &t.User + return t.ID } -type GetAllOrganizations_Organizations_Edges_Node_Setting struct { - ID string "json:\"id\" graphql:\"id\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" - BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" - BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" - BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" - TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" - GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type CreateHush_CreateHush_Hush_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetID() string { +func (t *CreateHush_CreateHush_Hush_Events) GetID() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + t = &CreateHush_CreateHush_Hush_Events{} } return t.ID } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetCreatedAt() *time.Time { - if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} - } - return t.CreatedAt + +type CreateHush_CreateHush_Hush struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" + Integrations []*CreateHush_CreateHush_Hush_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" + Organization []*CreateHush_CreateHush_Hush_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Events []*CreateHush_CreateHush_Hush_Events "json:\"events,omitempty\" graphql:\"events\"" } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetUpdatedAt() *time.Time { + +func (t *CreateHush_CreateHush_Hush) GetDescription() *string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + t = &CreateHush_CreateHush_Hush{} } - return t.UpdatedAt + return t.Description } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetCreatedBy() *string { +func (t *CreateHush_CreateHush_Hush) GetID() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + t = &CreateHush_CreateHush_Hush{} } - return t.CreatedBy + return t.ID } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetUpdatedBy() *string { +func (t *CreateHush_CreateHush_Hush) GetKind() *string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + t = &CreateHush_CreateHush_Hush{} } - return t.UpdatedBy + return t.Kind } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetDomains() []string { +func (t *CreateHush_CreateHush_Hush) GetName() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + t = &CreateHush_CreateHush_Hush{} } - return t.Domains + return t.Name } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetBillingContact() *string { +func (t *CreateHush_CreateHush_Hush) GetSecretName() *string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + t = &CreateHush_CreateHush_Hush{} } - return t.BillingContact + return t.SecretName } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetBillingEmail() *string { +func (t *CreateHush_CreateHush_Hush) GetIntegrations() []*CreateHush_CreateHush_Hush_Integrations { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + t = &CreateHush_CreateHush_Hush{} } - return t.BillingEmail + return t.Integrations } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetBillingPhone() *string { +func (t *CreateHush_CreateHush_Hush) GetOrganization() []*CreateHush_CreateHush_Hush_Organization { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + t = &CreateHush_CreateHush_Hush{} } - return t.BillingPhone + return t.Organization } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetBillingAddress() *string { +func (t *CreateHush_CreateHush_Hush) GetEvents() []*CreateHush_CreateHush_Hush_Events { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + t = &CreateHush_CreateHush_Hush{} } - return t.BillingAddress + return t.Events } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetTaxIdentifier() *string { - if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} - } - return t.TaxIdentifier + +type CreateHush_CreateHush struct { + Hush CreateHush_CreateHush_Hush "json:\"hush\" graphql:\"hush\"" } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetGeoLocation() *enums.Region { + +func (t *CreateHush_CreateHush) GetHush() *CreateHush_CreateHush_Hush { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + t = &CreateHush_CreateHush{} } - return t.GeoLocation + return &t.Hush } -func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetTags() []string { + +type GetAllHushes_Hushes_Edges_Node_Integrations struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetAllHushes_Hushes_Edges_Node_Integrations) GetID() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushes_Hushes_Edges_Node_Integrations{} } - return t.Tags + return t.ID } -type GetAllOrganizations_Organizations_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Parent *GetAllOrganizations_Organizations_Edges_Node_Parent "json:\"parent,omitempty\" graphql:\"parent\"" - Children GetAllOrganizations_Organizations_Edges_Node_Children "json:\"children\" graphql:\"children\"" - Members []*GetAllOrganizations_Organizations_Edges_Node_Members "json:\"members,omitempty\" graphql:\"members\"" - Setting *GetAllOrganizations_Organizations_Edges_Node_Setting "json:\"setting,omitempty\" graphql:\"setting\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" +type GetAllHushes_Hushes_Edges_Node_Organization struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllOrganizations_Organizations_Edges_Node) GetID() string { +func (t *GetAllHushes_Hushes_Edges_Node_Organization) GetID() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node{} + t = &GetAllHushes_Hushes_Edges_Node_Organization{} } return t.ID } -func (t *GetAllOrganizations_Organizations_Edges_Node) GetName() string { + +type GetAllHushes_Hushes_Edges_Node_Events struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetAllHushes_Hushes_Edges_Node_Events) GetID() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node{} + t = &GetAllHushes_Hushes_Edges_Node_Events{} } - return t.Name + return t.ID } -func (t *GetAllOrganizations_Organizations_Edges_Node) GetDisplayName() string { + +type GetAllHushes_Hushes_Edges_Node struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" + Integrations []*GetAllHushes_Hushes_Edges_Node_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" + Organization []*GetAllHushes_Hushes_Edges_Node_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Events []*GetAllHushes_Hushes_Edges_Node_Events "json:\"events,omitempty\" graphql:\"events\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllHushes_Hushes_Edges_Node) GetDescription() *string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node{} + t = &GetAllHushes_Hushes_Edges_Node{} } - return t.DisplayName + return t.Description } -func (t *GetAllOrganizations_Organizations_Edges_Node) GetDescription() *string { +func (t *GetAllHushes_Hushes_Edges_Node) GetID() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node{} + t = &GetAllHushes_Hushes_Edges_Node{} } - return t.Description + return t.ID } -func (t *GetAllOrganizations_Organizations_Edges_Node) GetPersonalOrg() *bool { +func (t *GetAllHushes_Hushes_Edges_Node) GetKind() *string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node{} + t = &GetAllHushes_Hushes_Edges_Node{} } - return t.PersonalOrg + return t.Kind } -func (t *GetAllOrganizations_Organizations_Edges_Node) GetTags() []string { +func (t *GetAllHushes_Hushes_Edges_Node) GetName() string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node{} + t = &GetAllHushes_Hushes_Edges_Node{} } - return t.Tags + return t.Name } -func (t *GetAllOrganizations_Organizations_Edges_Node) GetParent() *GetAllOrganizations_Organizations_Edges_Node_Parent { +func (t *GetAllHushes_Hushes_Edges_Node) GetSecretName() *string { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node{} + t = &GetAllHushes_Hushes_Edges_Node{} } - return t.Parent + return t.SecretName } -func (t *GetAllOrganizations_Organizations_Edges_Node) GetChildren() *GetAllOrganizations_Organizations_Edges_Node_Children { +func (t *GetAllHushes_Hushes_Edges_Node) GetIntegrations() []*GetAllHushes_Hushes_Edges_Node_Integrations { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node{} + t = &GetAllHushes_Hushes_Edges_Node{} } - return &t.Children + return t.Integrations } -func (t *GetAllOrganizations_Organizations_Edges_Node) GetMembers() []*GetAllOrganizations_Organizations_Edges_Node_Members { +func (t *GetAllHushes_Hushes_Edges_Node) GetOrganization() []*GetAllHushes_Hushes_Edges_Node_Organization { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node{} + t = &GetAllHushes_Hushes_Edges_Node{} } - return t.Members + return t.Organization } -func (t *GetAllOrganizations_Organizations_Edges_Node) GetSetting() *GetAllOrganizations_Organizations_Edges_Node_Setting { +func (t *GetAllHushes_Hushes_Edges_Node) GetEvents() []*GetAllHushes_Hushes_Edges_Node_Events { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node{} + t = &GetAllHushes_Hushes_Edges_Node{} } - return t.Setting + return t.Events } -func (t *GetAllOrganizations_Organizations_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllHushes_Hushes_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node{} + t = &GetAllHushes_Hushes_Edges_Node{} } return t.CreatedAt } -func (t *GetAllOrganizations_Organizations_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllHushes_Hushes_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllOrganizations_Organizations_Edges_Node{} + t = &GetAllHushes_Hushes_Edges_Node{} } return t.UpdatedAt } +func (t *GetAllHushes_Hushes_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllHushes_Hushes_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllHushes_Hushes_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllHushes_Hushes_Edges_Node{} + } + return t.UpdatedBy +} -type GetAllOrganizations_Organizations_Edges struct { - Node *GetAllOrganizations_Organizations_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllHushes_Hushes_Edges struct { + Node *GetAllHushes_Hushes_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllOrganizations_Organizations_Edges) GetNode() *GetAllOrganizations_Organizations_Edges_Node { +func (t *GetAllHushes_Hushes_Edges) GetNode() *GetAllHushes_Hushes_Edges_Node { if t == nil { - t = &GetAllOrganizations_Organizations_Edges{} + t = &GetAllHushes_Hushes_Edges{} } return t.Node } -type GetAllOrganizations_Organizations struct { - Edges []*GetAllOrganizations_Organizations_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllHushes_Hushes struct { + Edges []*GetAllHushes_Hushes_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllOrganizations_Organizations) GetEdges() []*GetAllOrganizations_Organizations_Edges { +func (t *GetAllHushes_Hushes) GetEdges() []*GetAllHushes_Hushes_Edges { if t == nil { - t = &GetAllOrganizations_Organizations{} + t = &GetAllHushes_Hushes{} } return t.Edges } -type GetOrganizationByID_Organization_Parent struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetHushByID_Hush_Integrations struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationByID_Organization_Parent) GetID() string { +func (t *GetHushByID_Hush_Integrations) GetID() string { if t == nil { - t = &GetOrganizationByID_Organization_Parent{} + t = &GetHushByID_Hush_Integrations{} } return t.ID } -func (t *GetOrganizationByID_Organization_Parent) GetName() string { - if t == nil { - t = &GetOrganizationByID_Organization_Parent{} - } - return t.Name -} -type GetOrganizationByID_Organization_Children_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" +type GetHushByID_Hush_Organization struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationByID_Organization_Children_Edges_Node) GetID() string { +func (t *GetHushByID_Hush_Organization) GetID() string { if t == nil { - t = &GetOrganizationByID_Organization_Children_Edges_Node{} + t = &GetHushByID_Hush_Organization{} } return t.ID } -func (t *GetOrganizationByID_Organization_Children_Edges_Node) GetName() string { - if t == nil { - t = &GetOrganizationByID_Organization_Children_Edges_Node{} - } - return t.Name -} -func (t *GetOrganizationByID_Organization_Children_Edges_Node) GetDisplayName() string { - if t == nil { - t = &GetOrganizationByID_Organization_Children_Edges_Node{} - } - return t.DisplayName -} -func (t *GetOrganizationByID_Organization_Children_Edges_Node) GetDescription() *string { - if t == nil { - t = &GetOrganizationByID_Organization_Children_Edges_Node{} - } - return t.Description -} -type GetOrganizationByID_Organization_Children_Edges struct { - Node *GetOrganizationByID_Organization_Children_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetHushByID_Hush_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationByID_Organization_Children_Edges) GetNode() *GetOrganizationByID_Organization_Children_Edges_Node { +func (t *GetHushByID_Hush_Events) GetID() string { if t == nil { - t = &GetOrganizationByID_Organization_Children_Edges{} + t = &GetHushByID_Hush_Events{} } - return t.Node + return t.ID } -type GetOrganizationByID_Organization_Children struct { - Edges []*GetOrganizationByID_Organization_Children_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetHushByID_Hush struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" + Integrations []*GetHushByID_Hush_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" + Organization []*GetHushByID_Hush_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Events []*GetHushByID_Hush_Events "json:\"events,omitempty\" graphql:\"events\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetOrganizationByID_Organization_Children) GetEdges() []*GetOrganizationByID_Organization_Children_Edges { +func (t *GetHushByID_Hush) GetDescription() *string { if t == nil { - t = &GetOrganizationByID_Organization_Children{} + t = &GetHushByID_Hush{} } - return t.Edges -} - -type GetOrganizationByID_Organization_Members_User struct { - ID string "json:\"id\" graphql:\"id\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + return t.Description } - -func (t *GetOrganizationByID_Organization_Members_User) GetID() string { +func (t *GetHushByID_Hush) GetID() string { if t == nil { - t = &GetOrganizationByID_Organization_Members_User{} + t = &GetHushByID_Hush{} } return t.ID } -func (t *GetOrganizationByID_Organization_Members_User) GetFirstName() *string { +func (t *GetHushByID_Hush) GetKind() *string { if t == nil { - t = &GetOrganizationByID_Organization_Members_User{} + t = &GetHushByID_Hush{} } - return t.FirstName + return t.Kind } -func (t *GetOrganizationByID_Organization_Members_User) GetLastName() *string { +func (t *GetHushByID_Hush) GetName() string { if t == nil { - t = &GetOrganizationByID_Organization_Members_User{} + t = &GetHushByID_Hush{} } - return t.LastName -} - -type GetOrganizationByID_Organization_Members struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - User GetOrganizationByID_Organization_Members_User "json:\"user\" graphql:\"user\"" + return t.Name } - -func (t *GetOrganizationByID_Organization_Members) GetID() string { +func (t *GetHushByID_Hush) GetSecretName() *string { if t == nil { - t = &GetOrganizationByID_Organization_Members{} + t = &GetHushByID_Hush{} } - return t.ID + return t.SecretName } -func (t *GetOrganizationByID_Organization_Members) GetRole() *enums.Role { +func (t *GetHushByID_Hush) GetIntegrations() []*GetHushByID_Hush_Integrations { if t == nil { - t = &GetOrganizationByID_Organization_Members{} + t = &GetHushByID_Hush{} } - return &t.Role + return t.Integrations } -func (t *GetOrganizationByID_Organization_Members) GetUser() *GetOrganizationByID_Organization_Members_User { +func (t *GetHushByID_Hush) GetOrganization() []*GetHushByID_Hush_Organization { if t == nil { - t = &GetOrganizationByID_Organization_Members{} + t = &GetHushByID_Hush{} } - return &t.User -} - -type GetOrganizationByID_Organization_Setting struct { - ID string "json:\"id\" graphql:\"id\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" - BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" - BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" - BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" - TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" - GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + return t.Organization } - -func (t *GetOrganizationByID_Organization_Setting) GetID() string { +func (t *GetHushByID_Hush) GetEvents() []*GetHushByID_Hush_Events { if t == nil { - t = &GetOrganizationByID_Organization_Setting{} + t = &GetHushByID_Hush{} } - return t.ID + return t.Events } -func (t *GetOrganizationByID_Organization_Setting) GetCreatedAt() *time.Time { +func (t *GetHushByID_Hush) GetCreatedAt() *time.Time { if t == nil { - t = &GetOrganizationByID_Organization_Setting{} + t = &GetHushByID_Hush{} } return t.CreatedAt } -func (t *GetOrganizationByID_Organization_Setting) GetUpdatedAt() *time.Time { +func (t *GetHushByID_Hush) GetUpdatedAt() *time.Time { if t == nil { - t = &GetOrganizationByID_Organization_Setting{} + t = &GetHushByID_Hush{} } return t.UpdatedAt } -func (t *GetOrganizationByID_Organization_Setting) GetCreatedBy() *string { +func (t *GetHushByID_Hush) GetCreatedBy() *string { if t == nil { - t = &GetOrganizationByID_Organization_Setting{} + t = &GetHushByID_Hush{} } return t.CreatedBy } -func (t *GetOrganizationByID_Organization_Setting) GetUpdatedBy() *string { +func (t *GetHushByID_Hush) GetUpdatedBy() *string { if t == nil { - t = &GetOrganizationByID_Organization_Setting{} + t = &GetHushByID_Hush{} } return t.UpdatedBy } -func (t *GetOrganizationByID_Organization_Setting) GetDomains() []string { - if t == nil { - t = &GetOrganizationByID_Organization_Setting{} - } - return t.Domains -} -func (t *GetOrganizationByID_Organization_Setting) GetBillingContact() *string { - if t == nil { - t = &GetOrganizationByID_Organization_Setting{} - } - return t.BillingContact -} -func (t *GetOrganizationByID_Organization_Setting) GetBillingEmail() *string { - if t == nil { - t = &GetOrganizationByID_Organization_Setting{} - } - return t.BillingEmail -} -func (t *GetOrganizationByID_Organization_Setting) GetBillingPhone() *string { - if t == nil { - t = &GetOrganizationByID_Organization_Setting{} - } - return t.BillingPhone -} -func (t *GetOrganizationByID_Organization_Setting) GetBillingAddress() *string { - if t == nil { - t = &GetOrganizationByID_Organization_Setting{} - } - return t.BillingAddress + +type GetHushes_Hushes_Edges_Node_Integrations struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationByID_Organization_Setting) GetTaxIdentifier() *string { + +func (t *GetHushes_Hushes_Edges_Node_Integrations) GetID() string { if t == nil { - t = &GetOrganizationByID_Organization_Setting{} + t = &GetHushes_Hushes_Edges_Node_Integrations{} } - return t.TaxIdentifier + return t.ID } -func (t *GetOrganizationByID_Organization_Setting) GetGeoLocation() *enums.Region { - if t == nil { - t = &GetOrganizationByID_Organization_Setting{} - } - return t.GeoLocation + +type GetHushes_Hushes_Edges_Node_Organization struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationByID_Organization_Setting) GetTags() []string { + +func (t *GetHushes_Hushes_Edges_Node_Organization) GetID() string { if t == nil { - t = &GetOrganizationByID_Organization_Setting{} + t = &GetHushes_Hushes_Edges_Node_Organization{} } - return t.Tags + return t.ID } -type GetOrganizationByID_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Parent *GetOrganizationByID_Organization_Parent "json:\"parent,omitempty\" graphql:\"parent\"" - Children GetOrganizationByID_Organization_Children "json:\"children\" graphql:\"children\"" - Members []*GetOrganizationByID_Organization_Members "json:\"members,omitempty\" graphql:\"members\"" - Setting *GetOrganizationByID_Organization_Setting "json:\"setting,omitempty\" graphql:\"setting\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetHushes_Hushes_Edges_Node_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationByID_Organization) GetID() string { +func (t *GetHushes_Hushes_Edges_Node_Events) GetID() string { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node_Events{} } return t.ID } -func (t *GetOrganizationByID_Organization) GetName() string { - if t == nil { - t = &GetOrganizationByID_Organization{} - } - return t.Name + +type GetHushes_Hushes_Edges_Node struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" + Integrations []*GetHushes_Hushes_Edges_Node_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" + Organization []*GetHushes_Hushes_Edges_Node_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Events []*GetHushes_Hushes_Edges_Node_Events "json:\"events,omitempty\" graphql:\"events\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetOrganizationByID_Organization) GetDisplayName() string { + +func (t *GetHushes_Hushes_Edges_Node) GetDescription() *string { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node{} } - return t.DisplayName + return t.Description } -func (t *GetOrganizationByID_Organization) GetDescription() *string { +func (t *GetHushes_Hushes_Edges_Node) GetID() string { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node{} } - return t.Description + return t.ID } -func (t *GetOrganizationByID_Organization) GetPersonalOrg() *bool { +func (t *GetHushes_Hushes_Edges_Node) GetKind() *string { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node{} } - return t.PersonalOrg + return t.Kind } -func (t *GetOrganizationByID_Organization) GetTags() []string { +func (t *GetHushes_Hushes_Edges_Node) GetName() string { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node{} } - return t.Tags + return t.Name } -func (t *GetOrganizationByID_Organization) GetParent() *GetOrganizationByID_Organization_Parent { +func (t *GetHushes_Hushes_Edges_Node) GetSecretName() *string { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node{} } - return t.Parent + return t.SecretName } -func (t *GetOrganizationByID_Organization) GetChildren() *GetOrganizationByID_Organization_Children { +func (t *GetHushes_Hushes_Edges_Node) GetIntegrations() []*GetHushes_Hushes_Edges_Node_Integrations { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node{} } - return &t.Children + return t.Integrations } -func (t *GetOrganizationByID_Organization) GetMembers() []*GetOrganizationByID_Organization_Members { +func (t *GetHushes_Hushes_Edges_Node) GetOrganization() []*GetHushes_Hushes_Edges_Node_Organization { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node{} } - return t.Members + return t.Organization } -func (t *GetOrganizationByID_Organization) GetSetting() *GetOrganizationByID_Organization_Setting { +func (t *GetHushes_Hushes_Edges_Node) GetEvents() []*GetHushes_Hushes_Edges_Node_Events { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node{} } - return t.Setting + return t.Events } -func (t *GetOrganizationByID_Organization) GetCreatedAt() *time.Time { +func (t *GetHushes_Hushes_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node{} } return t.CreatedAt } -func (t *GetOrganizationByID_Organization) GetCreatedBy() *string { +func (t *GetHushes_Hushes_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node{} } - return t.CreatedBy + return t.UpdatedAt } -func (t *GetOrganizationByID_Organization) GetUpdatedAt() *time.Time { +func (t *GetHushes_Hushes_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node{} } - return t.UpdatedAt + return t.CreatedBy } -func (t *GetOrganizationByID_Organization) GetUpdatedBy() *string { +func (t *GetHushes_Hushes_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetOrganizationByID_Organization{} + t = &GetHushes_Hushes_Edges_Node{} } return t.UpdatedBy } -type GetOrganizations_Organizations_Edges_Node_Parent struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetHushes_Hushes_Edges struct { + Node *GetHushes_Hushes_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetOrganizations_Organizations_Edges_Node_Parent) GetID() string { +func (t *GetHushes_Hushes_Edges) GetNode() *GetHushes_Hushes_Edges_Node { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Parent{} + t = &GetHushes_Hushes_Edges{} } - return t.ID + return t.Node } -func (t *GetOrganizations_Organizations_Edges_Node_Parent) GetName() string { + +type GetHushes_Hushes struct { + Edges []*GetHushes_Hushes_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetHushes_Hushes) GetEdges() []*GetHushes_Hushes_Edges { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Parent{} + t = &GetHushes_Hushes{} } - return t.Name + return t.Edges } -type GetOrganizations_Organizations_Edges_Node_Children_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" +type UpdateHush_UpdateHush_Hush_Integrations struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetID() string { +func (t *UpdateHush_UpdateHush_Hush_Integrations) GetID() string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Children_Edges_Node{} + t = &UpdateHush_UpdateHush_Hush_Integrations{} } return t.ID } -func (t *GetOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetName() string { - if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Children_Edges_Node{} - } - return t.Name + +type UpdateHush_UpdateHush_Hush_Organization struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetDisplayName() string { + +func (t *UpdateHush_UpdateHush_Hush_Organization) GetID() string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Children_Edges_Node{} + t = &UpdateHush_UpdateHush_Hush_Organization{} } - return t.DisplayName + return t.ID } -func (t *GetOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetDescription() *string { - if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Children_Edges_Node{} - } - return t.Description + +type UpdateHush_UpdateHush_Hush_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -type GetOrganizations_Organizations_Edges_Node_Children_Edges struct { - Node *GetOrganizations_Organizations_Edges_Node_Children_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" -} - -func (t *GetOrganizations_Organizations_Edges_Node_Children_Edges) GetNode() *GetOrganizations_Organizations_Edges_Node_Children_Edges_Node { +func (t *UpdateHush_UpdateHush_Hush_Events) GetID() string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Children_Edges{} + t = &UpdateHush_UpdateHush_Hush_Events{} } - return t.Node + return t.ID } -type GetOrganizations_Organizations_Edges_Node_Children struct { - Edges []*GetOrganizations_Organizations_Edges_Node_Children_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type UpdateHush_UpdateHush_Hush struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" + Integrations []*UpdateHush_UpdateHush_Hush_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" + Organization []*UpdateHush_UpdateHush_Hush_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + Events []*UpdateHush_UpdateHush_Hush_Events "json:\"events,omitempty\" graphql:\"events\"" } -func (t *GetOrganizations_Organizations_Edges_Node_Children) GetEdges() []*GetOrganizations_Organizations_Edges_Node_Children_Edges { +func (t *UpdateHush_UpdateHush_Hush) GetDescription() *string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Children{} + t = &UpdateHush_UpdateHush_Hush{} } - return t.Edges -} - -type GetOrganizations_Organizations_Edges_Node_Members_User struct { - ID string "json:\"id\" graphql:\"id\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + return t.Description } - -func (t *GetOrganizations_Organizations_Edges_Node_Members_User) GetID() string { +func (t *UpdateHush_UpdateHush_Hush) GetID() string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Members_User{} + t = &UpdateHush_UpdateHush_Hush{} } return t.ID } -func (t *GetOrganizations_Organizations_Edges_Node_Members_User) GetFirstName() *string { +func (t *UpdateHush_UpdateHush_Hush) GetKind() *string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Members_User{} + t = &UpdateHush_UpdateHush_Hush{} } - return t.FirstName + return t.Kind } -func (t *GetOrganizations_Organizations_Edges_Node_Members_User) GetLastName() *string { +func (t *UpdateHush_UpdateHush_Hush) GetName() string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Members_User{} + t = &UpdateHush_UpdateHush_Hush{} } - return t.LastName + return t.Name } - -type GetOrganizations_Organizations_Edges_Node_Members struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - User GetOrganizations_Organizations_Edges_Node_Members_User "json:\"user\" graphql:\"user\"" +func (t *UpdateHush_UpdateHush_Hush) GetSecretName() *string { + if t == nil { + t = &UpdateHush_UpdateHush_Hush{} + } + return t.SecretName } - -func (t *GetOrganizations_Organizations_Edges_Node_Members) GetID() string { +func (t *UpdateHush_UpdateHush_Hush) GetIntegrations() []*UpdateHush_UpdateHush_Hush_Integrations { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Members{} + t = &UpdateHush_UpdateHush_Hush{} } - return t.ID + return t.Integrations } -func (t *GetOrganizations_Organizations_Edges_Node_Members) GetRole() *enums.Role { +func (t *UpdateHush_UpdateHush_Hush) GetOrganization() []*UpdateHush_UpdateHush_Hush_Organization { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Members{} + t = &UpdateHush_UpdateHush_Hush{} } - return &t.Role + return t.Organization } -func (t *GetOrganizations_Organizations_Edges_Node_Members) GetUser() *GetOrganizations_Organizations_Edges_Node_Members_User { +func (t *UpdateHush_UpdateHush_Hush) GetEvents() []*UpdateHush_UpdateHush_Hush_Events { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Members{} + t = &UpdateHush_UpdateHush_Hush{} } - return &t.User + return t.Events } -type GetOrganizations_Organizations_Edges_Node_Setting struct { - ID string "json:\"id\" graphql:\"id\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" - BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" - BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" - BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" - TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" - GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type UpdateHush_UpdateHush struct { + Hush UpdateHush_UpdateHush_Hush "json:\"hush\" graphql:\"hush\"" } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetID() string { +func (t *UpdateHush_UpdateHush) GetHush() *UpdateHush_UpdateHush_Hush { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &UpdateHush_UpdateHush{} } - return t.ID + return &t.Hush } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetCreatedAt() *time.Time { + +type GetAllHushHistories_HushHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllHushHistories_HushHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushHistories_HushHistories_Edges_Node{} } return t.CreatedAt } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetUpdatedAt() *time.Time { +func (t *GetAllHushHistories_HushHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushHistories_HushHistories_Edges_Node{} } - return t.UpdatedAt + return t.CreatedBy } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetCreatedBy() *string { +func (t *GetAllHushHistories_HushHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushHistories_HushHistories_Edges_Node{} } - return t.CreatedBy + return t.Description } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetUpdatedBy() *string { +func (t *GetAllHushHistories_HushHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushHistories_HushHistories_Edges_Node{} } - return t.UpdatedBy + return &t.HistoryTime } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetDomains() []string { +func (t *GetAllHushHistories_HushHistories_Edges_Node) GetID() string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushHistories_HushHistories_Edges_Node{} } - return t.Domains + return t.ID } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetBillingContact() *string { +func (t *GetAllHushHistories_HushHistories_Edges_Node) GetKind() *string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushHistories_HushHistories_Edges_Node{} } - return t.BillingContact + return t.Kind } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetBillingEmail() *string { +func (t *GetAllHushHistories_HushHistories_Edges_Node) GetName() string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushHistories_HushHistories_Edges_Node{} } - return t.BillingEmail + return t.Name } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetBillingPhone() *string { +func (t *GetAllHushHistories_HushHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushHistories_HushHistories_Edges_Node{} } - return t.BillingPhone + return &t.Operation } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetBillingAddress() *string { +func (t *GetAllHushHistories_HushHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushHistories_HushHistories_Edges_Node{} } - return t.BillingAddress + return t.Ref } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetTaxIdentifier() *string { +func (t *GetAllHushHistories_HushHistories_Edges_Node) GetSecretName() *string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushHistories_HushHistories_Edges_Node{} } - return t.TaxIdentifier + return t.SecretName } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetGeoLocation() *enums.Region { +func (t *GetAllHushHistories_HushHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushHistories_HushHistories_Edges_Node{} } - return t.GeoLocation + return t.UpdatedAt } -func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetTags() []string { +func (t *GetAllHushHistories_HushHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node_Setting{} + t = &GetAllHushHistories_HushHistories_Edges_Node{} } - return t.Tags + return t.UpdatedBy } -type GetOrganizations_Organizations_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Parent *GetOrganizations_Organizations_Edges_Node_Parent "json:\"parent,omitempty\" graphql:\"parent\"" - Children GetOrganizations_Organizations_Edges_Node_Children "json:\"children\" graphql:\"children\"" - Members []*GetOrganizations_Organizations_Edges_Node_Members "json:\"members,omitempty\" graphql:\"members\"" - Setting *GetOrganizations_Organizations_Edges_Node_Setting "json:\"setting,omitempty\" graphql:\"setting\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" +type GetAllHushHistories_HushHistories_Edges struct { + Node *GetAllHushHistories_HushHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetOrganizations_Organizations_Edges_Node) GetID() string { +func (t *GetAllHushHistories_HushHistories_Edges) GetNode() *GetAllHushHistories_HushHistories_Edges_Node { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node{} + t = &GetAllHushHistories_HushHistories_Edges{} } - return t.ID + return t.Node } -func (t *GetOrganizations_Organizations_Edges_Node) GetName() string { + +type GetAllHushHistories_HushHistories struct { + Edges []*GetAllHushHistories_HushHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllHushHistories_HushHistories) GetEdges() []*GetAllHushHistories_HushHistories_Edges { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node{} + t = &GetAllHushHistories_HushHistories{} } - return t.Name + return t.Edges } -func (t *GetOrganizations_Organizations_Edges_Node) GetDisplayName() string { + +type GetHushHistories_HushHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + SecretName *string "json:\"secretName,omitempty\" graphql:\"secretName\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetHushHistories_HushHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node{} + t = &GetHushHistories_HushHistories_Edges_Node{} } - return t.DisplayName + return t.CreatedAt } -func (t *GetOrganizations_Organizations_Edges_Node) GetDescription() *string { +func (t *GetHushHistories_HushHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node{} + t = &GetHushHistories_HushHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetHushHistories_HushHistories_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetHushHistories_HushHistories_Edges_Node{} } return t.Description } -func (t *GetOrganizations_Organizations_Edges_Node) GetPersonalOrg() *bool { +func (t *GetHushHistories_HushHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node{} + t = &GetHushHistories_HushHistories_Edges_Node{} } - return t.PersonalOrg + return &t.HistoryTime } -func (t *GetOrganizations_Organizations_Edges_Node) GetTags() []string { +func (t *GetHushHistories_HushHistories_Edges_Node) GetID() string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node{} + t = &GetHushHistories_HushHistories_Edges_Node{} } - return t.Tags + return t.ID } -func (t *GetOrganizations_Organizations_Edges_Node) GetParent() *GetOrganizations_Organizations_Edges_Node_Parent { +func (t *GetHushHistories_HushHistories_Edges_Node) GetKind() *string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node{} + t = &GetHushHistories_HushHistories_Edges_Node{} } - return t.Parent + return t.Kind } -func (t *GetOrganizations_Organizations_Edges_Node) GetChildren() *GetOrganizations_Organizations_Edges_Node_Children { +func (t *GetHushHistories_HushHistories_Edges_Node) GetName() string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node{} + t = &GetHushHistories_HushHistories_Edges_Node{} } - return &t.Children + return t.Name } -func (t *GetOrganizations_Organizations_Edges_Node) GetMembers() []*GetOrganizations_Organizations_Edges_Node_Members { +func (t *GetHushHistories_HushHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node{} + t = &GetHushHistories_HushHistories_Edges_Node{} } - return t.Members + return &t.Operation } -func (t *GetOrganizations_Organizations_Edges_Node) GetSetting() *GetOrganizations_Organizations_Edges_Node_Setting { +func (t *GetHushHistories_HushHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node{} + t = &GetHushHistories_HushHistories_Edges_Node{} } - return t.Setting + return t.Ref } -func (t *GetOrganizations_Organizations_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetHushHistories_HushHistories_Edges_Node) GetSecretName() *string { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node{} + t = &GetHushHistories_HushHistories_Edges_Node{} } - return t.CreatedAt + return t.SecretName } -func (t *GetOrganizations_Organizations_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetHushHistories_HushHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetOrganizations_Organizations_Edges_Node{} + t = &GetHushHistories_HushHistories_Edges_Node{} } return t.UpdatedAt } +func (t *GetHushHistories_HushHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetHushHistories_HushHistories_Edges_Node{} + } + return t.UpdatedBy +} -type GetOrganizations_Organizations_Edges struct { - Node *GetOrganizations_Organizations_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetHushHistories_HushHistories_Edges struct { + Node *GetHushHistories_HushHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetOrganizations_Organizations_Edges) GetNode() *GetOrganizations_Organizations_Edges_Node { +func (t *GetHushHistories_HushHistories_Edges) GetNode() *GetHushHistories_HushHistories_Edges_Node { if t == nil { - t = &GetOrganizations_Organizations_Edges{} + t = &GetHushHistories_HushHistories_Edges{} } return t.Node } -type GetOrganizations_Organizations struct { - Edges []*GetOrganizations_Organizations_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetHushHistories_HushHistories struct { + Edges []*GetHushHistories_HushHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetOrganizations_Organizations) GetEdges() []*GetOrganizations_Organizations_Edges { +func (t *GetHushHistories_HushHistories) GetEdges() []*GetHushHistories_HushHistories_Edges { if t == nil { - t = &GetOrganizations_Organizations{} + t = &GetHushHistories_HushHistories{} } return t.Edges } -type UpdateOrganization_UpdateOrganization_Organization_Members struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UserID string "json:\"userID\" graphql:\"userID\"" +type CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateOrganization_UpdateOrganization_Organization_Members) GetID() string { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Owner) GetID() string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Members{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Owner{} } return t.ID } -func (t *UpdateOrganization_UpdateOrganization_Organization_Members) GetRole() *enums.Role { + +type CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Secrets struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Secrets) GetID() string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Members{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Secrets{} } - return &t.Role + return t.ID } -func (t *UpdateOrganization_UpdateOrganization_Organization_Members) GetUserID() string { + +type CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Oauth2tokens struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Oauth2tokens) GetID() string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Members{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Oauth2tokens{} } - return t.UserID + return t.ID } -type UpdateOrganization_UpdateOrganization_Organization_Setting struct { - ID string "json:\"id\" graphql:\"id\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" - BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" - BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" - BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" - TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" - GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetID() string { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Events) GetID() string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Events{} } return t.ID } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetCreatedAt() *time.Time { + +type CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks struct { + ID string "json:\"id\" graphql:\"id\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" +} + +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks) GetID() string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks{} } - return t.CreatedAt + return t.ID } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetUpdatedAt() *time.Time { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks) GetDestinationURL() string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks{} } - return t.UpdatedAt + return t.DestinationURL } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetCreatedBy() *string { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks) GetEnabled() bool { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks{} } - return t.CreatedBy + return t.Enabled } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetUpdatedBy() *string { + +type CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Owner *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Secrets []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" + Oauth2tokens []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" + Events []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Events "json:\"events,omitempty\" graphql:\"events\"" + Webhooks []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" +} + +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetDescription() *string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} } - return t.UpdatedBy + return t.Description } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetDomains() []string { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetID() string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} } - return t.Domains + return t.ID } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetBillingContact() *string { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetKind() *string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} } - return t.BillingContact + return t.Kind } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetBillingEmail() *string { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetName() string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} } - return t.BillingEmail + return t.Name } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetBillingPhone() *string { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetOwnerID() *string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} } - return t.BillingPhone + return t.OwnerID } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetBillingAddress() *string { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetOwner() *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Owner { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} } - return t.BillingAddress + return t.Owner } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetTaxIdentifier() *string { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetSecrets() []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Secrets { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} } - return t.TaxIdentifier + return t.Secrets } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetGeoLocation() *enums.Region { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetOauth2tokens() []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Oauth2tokens { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} } - return t.GeoLocation + return t.Oauth2tokens } -func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetTags() []string { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetEvents() []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Events { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} } - return t.Tags + return t.Events +} +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations) GetWebhooks() []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations_Webhooks { + if t == nil { + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations{} + } + return t.Webhooks } -type UpdateOrganization_UpdateOrganization_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Members []*UpdateOrganization_UpdateOrganization_Organization_Members "json:\"members,omitempty\" graphql:\"members\"" - Setting *UpdateOrganization_UpdateOrganization_Organization_Setting "json:\"setting,omitempty\" graphql:\"setting\"" +type CreateBulkCSVIntegration_CreateBulkCSVIntegration struct { + Integrations []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" } -func (t *UpdateOrganization_UpdateOrganization_Organization) GetID() string { +func (t *CreateBulkCSVIntegration_CreateBulkCSVIntegration) GetIntegrations() []*CreateBulkCSVIntegration_CreateBulkCSVIntegration_Integrations { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization{} + t = &CreateBulkCSVIntegration_CreateBulkCSVIntegration{} } - return t.ID + return t.Integrations } -func (t *UpdateOrganization_UpdateOrganization_Organization) GetName() string { - if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization{} - } - return t.Name + +type CreateBulkIntegration_CreateBulkIntegration_Integrations_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateOrganization_UpdateOrganization_Organization) GetDisplayName() string { + +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Owner) GetID() string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Owner{} } - return t.DisplayName + return t.ID } -func (t *UpdateOrganization_UpdateOrganization_Organization) GetDescription() *string { + +type CreateBulkIntegration_CreateBulkIntegration_Integrations_Secrets struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Secrets) GetID() string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Secrets{} } - return t.Description + return t.ID } -func (t *UpdateOrganization_UpdateOrganization_Organization) GetPersonalOrg() *bool { - if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization{} - } - return t.PersonalOrg -} -func (t *UpdateOrganization_UpdateOrganization_Organization) GetTags() []string { - if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization{} - } - return t.Tags -} -func (t *UpdateOrganization_UpdateOrganization_Organization) GetMembers() []*UpdateOrganization_UpdateOrganization_Organization_Members { - if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization{} - } - return t.Members + +type CreateBulkIntegration_CreateBulkIntegration_Integrations_Oauth2tokens struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateOrganization_UpdateOrganization_Organization) GetSetting() *UpdateOrganization_UpdateOrganization_Organization_Setting { + +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Oauth2tokens) GetID() string { if t == nil { - t = &UpdateOrganization_UpdateOrganization_Organization{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Oauth2tokens{} } - return t.Setting + return t.ID } -type UpdateOrganization_UpdateOrganization struct { - Organization UpdateOrganization_UpdateOrganization_Organization "json:\"organization\" graphql:\"organization\"" +type CreateBulkIntegration_CreateBulkIntegration_Integrations_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateOrganization_UpdateOrganization) GetOrganization() *UpdateOrganization_UpdateOrganization_Organization { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Events) GetID() string { if t == nil { - t = &UpdateOrganization_UpdateOrganization{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Events{} } - return &t.Organization + return t.ID } -type GetAllOrganizationHistories_OrganizationHistories_Edges_Node struct { - AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DedicatedDb bool "json:\"dedicatedDb\" graphql:\"dedicatedDb\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks struct { + ID string "json:\"id\" graphql:\"id\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetAvatarRemoteURL() *string { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks) GetID() string { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks{} } - return t.AvatarRemoteURL + return t.ID } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks) GetDestinationURL() string { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks{} } - return t.CreatedAt + return t.DestinationURL } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetCreatedBy() *string { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks) GetEnabled() bool { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks{} } - return t.CreatedBy + return t.Enabled } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetDedicatedDb() bool { - if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} - } - return t.DedicatedDb + +type CreateBulkIntegration_CreateBulkIntegration_Integrations struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Owner *CreateBulkIntegration_CreateBulkIntegration_Integrations_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Secrets []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" + Oauth2tokens []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" + Events []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Events "json:\"events,omitempty\" graphql:\"events\"" + Webhooks []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetDescription() *string { + +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetDescription() *string { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} } return t.Description } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetDisplayName() string { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetID() string { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} } - return t.DisplayName + return t.ID } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetKind() *string { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} } - return &t.HistoryTime + return t.Kind } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetID() string { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetName() string { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} } - return t.ID + return t.Name } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetName() string { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetOwnerID() *string { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} } - return t.Name + return t.OwnerID } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetOperation() *history.OpType { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetOwner() *CreateBulkIntegration_CreateBulkIntegration_Integrations_Owner { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} } - return &t.Operation + return t.Owner } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetPersonalOrg() *bool { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetSecrets() []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Secrets { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} } - return t.PersonalOrg + return t.Secrets } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetRef() *string { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetOauth2tokens() []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Oauth2tokens { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} } - return t.Ref + return t.Oauth2tokens } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetTags() []string { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetEvents() []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Events { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} } - return t.Tags + return t.Events } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateBulkIntegration_CreateBulkIntegration_Integrations) GetWebhooks() []*CreateBulkIntegration_CreateBulkIntegration_Integrations_Webhooks { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration_Integrations{} } - return t.UpdatedAt + return t.Webhooks } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetUpdatedBy() *string { + +type CreateBulkIntegration_CreateBulkIntegration struct { + Integrations []*CreateBulkIntegration_CreateBulkIntegration_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" +} + +func (t *CreateBulkIntegration_CreateBulkIntegration) GetIntegrations() []*CreateBulkIntegration_CreateBulkIntegration_Integrations { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateBulkIntegration_CreateBulkIntegration{} } - return t.UpdatedBy + return t.Integrations } -type GetAllOrganizationHistories_OrganizationHistories_Edges struct { - Node *GetAllOrganizationHistories_OrganizationHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateIntegration_CreateIntegration_Integration_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllOrganizationHistories_OrganizationHistories_Edges) GetNode() *GetAllOrganizationHistories_OrganizationHistories_Edges_Node { +func (t *CreateIntegration_CreateIntegration_Integration_Owner) GetID() string { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories_Edges{} + t = &CreateIntegration_CreateIntegration_Integration_Owner{} } - return t.Node + return t.ID } -type GetAllOrganizationHistories_OrganizationHistories struct { - Edges []*GetAllOrganizationHistories_OrganizationHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateIntegration_CreateIntegration_Integration_Secrets struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllOrganizationHistories_OrganizationHistories) GetEdges() []*GetAllOrganizationHistories_OrganizationHistories_Edges { +func (t *CreateIntegration_CreateIntegration_Integration_Secrets) GetID() string { if t == nil { - t = &GetAllOrganizationHistories_OrganizationHistories{} + t = &CreateIntegration_CreateIntegration_Integration_Secrets{} } - return t.Edges + return t.ID } -type GetOrganizationHistories_OrganizationHistories_Edges_Node struct { - AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DedicatedDb bool "json:\"dedicatedDb\" graphql:\"dedicatedDb\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateIntegration_CreateIntegration_Integration_Oauth2tokens struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetAvatarRemoteURL() *string { +func (t *CreateIntegration_CreateIntegration_Integration_Oauth2tokens) GetID() string { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration_Oauth2tokens{} } - return t.AvatarRemoteURL + return t.ID } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetCreatedAt() *time.Time { + +type CreateIntegration_CreateIntegration_Integration_Events struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *CreateIntegration_CreateIntegration_Integration_Events) GetID() string { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration_Events{} } - return t.CreatedAt + return t.ID } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetCreatedBy() *string { + +type CreateIntegration_CreateIntegration_Integration_Webhooks struct { + ID string "json:\"id\" graphql:\"id\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" +} + +func (t *CreateIntegration_CreateIntegration_Integration_Webhooks) GetID() string { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration_Webhooks{} } - return t.CreatedBy + return t.ID } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetDedicatedDb() bool { +func (t *CreateIntegration_CreateIntegration_Integration_Webhooks) GetDestinationURL() string { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration_Webhooks{} } - return t.DedicatedDb + return t.DestinationURL } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetDescription() *string { +func (t *CreateIntegration_CreateIntegration_Integration_Webhooks) GetEnabled() bool { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration_Webhooks{} } - return t.Description + return t.Enabled } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetDisplayName() string { + +type CreateIntegration_CreateIntegration_Integration struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Owner *CreateIntegration_CreateIntegration_Integration_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Secrets []*CreateIntegration_CreateIntegration_Integration_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" + Oauth2tokens []*CreateIntegration_CreateIntegration_Integration_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" + Events []*CreateIntegration_CreateIntegration_Integration_Events "json:\"events,omitempty\" graphql:\"events\"" + Webhooks []*CreateIntegration_CreateIntegration_Integration_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" +} + +func (t *CreateIntegration_CreateIntegration_Integration) GetDescription() *string { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration{} } - return t.DisplayName + return t.Description } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateIntegration_CreateIntegration_Integration) GetID() string { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration{} } - return &t.HistoryTime + return t.ID } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetID() string { +func (t *CreateIntegration_CreateIntegration_Integration) GetKind() *string { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration{} } - return t.ID + return t.Kind } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetName() string { +func (t *CreateIntegration_CreateIntegration_Integration) GetName() string { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration{} } return t.Name } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetOperation() *history.OpType { +func (t *CreateIntegration_CreateIntegration_Integration) GetOwnerID() *string { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration{} } - return &t.Operation + return t.OwnerID } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetPersonalOrg() *bool { +func (t *CreateIntegration_CreateIntegration_Integration) GetOwner() *CreateIntegration_CreateIntegration_Integration_Owner { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration{} } - return t.PersonalOrg + return t.Owner } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetRef() *string { +func (t *CreateIntegration_CreateIntegration_Integration) GetSecrets() []*CreateIntegration_CreateIntegration_Integration_Secrets { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration{} } - return t.Ref + return t.Secrets } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetTags() []string { +func (t *CreateIntegration_CreateIntegration_Integration) GetOauth2tokens() []*CreateIntegration_CreateIntegration_Integration_Oauth2tokens { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration{} } - return t.Tags + return t.Oauth2tokens } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateIntegration_CreateIntegration_Integration) GetEvents() []*CreateIntegration_CreateIntegration_Integration_Events { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration{} } - return t.UpdatedAt + return t.Events } -func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateIntegration_CreateIntegration_Integration) GetWebhooks() []*CreateIntegration_CreateIntegration_Integration_Webhooks { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} + t = &CreateIntegration_CreateIntegration_Integration{} } - return t.UpdatedBy + return t.Webhooks } -type GetOrganizationHistories_OrganizationHistories_Edges struct { - Node *GetOrganizationHistories_OrganizationHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateIntegration_CreateIntegration struct { + Integration CreateIntegration_CreateIntegration_Integration "json:\"integration\" graphql:\"integration\"" } -func (t *GetOrganizationHistories_OrganizationHistories_Edges) GetNode() *GetOrganizationHistories_OrganizationHistories_Edges_Node { +func (t *CreateIntegration_CreateIntegration) GetIntegration() *CreateIntegration_CreateIntegration_Integration { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories_Edges{} + t = &CreateIntegration_CreateIntegration{} } - return t.Node + return &t.Integration } -type GetOrganizationHistories_OrganizationHistories struct { - Edges []*GetOrganizationHistories_OrganizationHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type DeleteIntegration_DeleteIntegration struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetOrganizationHistories_OrganizationHistories) GetEdges() []*GetOrganizationHistories_OrganizationHistories_Edges { +func (t *DeleteIntegration_DeleteIntegration) GetDeletedID() string { if t == nil { - t = &GetOrganizationHistories_OrganizationHistories{} + t = &DeleteIntegration_DeleteIntegration{} } - return t.Edges + return t.DeletedID } -type GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetAllIntegrations_Integrations_Edges_Node_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization) GetID() string { +func (t *GetAllIntegrations_Integrations_Edges_Node_Owner) GetID() string { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization{} + t = &GetAllIntegrations_Integrations_Edges_Node_Owner{} } return t.ID } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization) GetName() string { + +type GetAllIntegrations_Integrations_Edges_Node_Secrets struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetAllIntegrations_Integrations_Edges_Node_Secrets) GetID() string { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization{} + t = &GetAllIntegrations_Integrations_Edges_Node_Secrets{} } - return t.Name + return t.ID } -type GetAllOrganizationSettings_OrganizationSettings_Edges_Node struct { - BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" - BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" - BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" - BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Organization *GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization "json:\"organization,omitempty\" graphql:\"organization\"" +type GetAllIntegrations_Integrations_Edges_Node_Oauth2tokens struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingAddress() *string { +func (t *GetAllIntegrations_Integrations_Edges_Node_Oauth2tokens) GetID() string { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node_Oauth2tokens{} } - return t.BillingAddress + return t.ID } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingContact() *string { + +type GetAllIntegrations_Integrations_Edges_Node_Events struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetAllIntegrations_Integrations_Edges_Node_Events) GetID() string { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node_Events{} } - return t.BillingContact + return t.ID } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingEmail() *string { + +type GetAllIntegrations_Integrations_Edges_Node_Webhooks struct { + ID string "json:\"id\" graphql:\"id\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" +} + +func (t *GetAllIntegrations_Integrations_Edges_Node_Webhooks) GetID() string { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node_Webhooks{} } - return t.BillingEmail + return t.ID } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingPhone() *string { +func (t *GetAllIntegrations_Integrations_Edges_Node_Webhooks) GetDestinationURL() string { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node_Webhooks{} } - return t.BillingPhone + return t.DestinationURL } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllIntegrations_Integrations_Edges_Node_Webhooks) GetEnabled() bool { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node_Webhooks{} } - return t.CreatedAt + return t.Enabled } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetCreatedBy() *string { + +type GetAllIntegrations_Integrations_Edges_Node struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Owner *GetAllIntegrations_Integrations_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Secrets []*GetAllIntegrations_Integrations_Edges_Node_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" + Oauth2tokens []*GetAllIntegrations_Integrations_Edges_Node_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" + Events []*GetAllIntegrations_Integrations_Edges_Node_Events "json:\"events,omitempty\" graphql:\"events\"" + Webhooks []*GetAllIntegrations_Integrations_Edges_Node_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllIntegrations_Integrations_Edges_Node) GetDescription() *string { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.CreatedBy + return t.Description } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetDomains() []string { +func (t *GetAllIntegrations_Integrations_Edges_Node) GetID() string { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.Domains + return t.ID } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetGeoLocation() *enums.Region { +func (t *GetAllIntegrations_Integrations_Edges_Node) GetKind() *string { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.GeoLocation + return t.Kind } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetID() string { +func (t *GetAllIntegrations_Integrations_Edges_Node) GetName() string { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.ID + return t.Name } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetTags() []string { +func (t *GetAllIntegrations_Integrations_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.Tags + return t.OwnerID } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetTaxIdentifier() *string { +func (t *GetAllIntegrations_Integrations_Edges_Node) GetOwner() *GetAllIntegrations_Integrations_Edges_Node_Owner { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.TaxIdentifier + return t.Owner } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllIntegrations_Integrations_Edges_Node) GetSecrets() []*GetAllIntegrations_Integrations_Edges_Node_Secrets { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.UpdatedAt + return t.Secrets } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllIntegrations_Integrations_Edges_Node) GetOauth2tokens() []*GetAllIntegrations_Integrations_Edges_Node_Oauth2tokens { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.UpdatedBy + return t.Oauth2tokens } -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetOrganization() *GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization { +func (t *GetAllIntegrations_Integrations_Edges_Node) GetEvents() []*GetAllIntegrations_Integrations_Edges_Node_Events { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.Organization -} - -type GetAllOrganizationSettings_OrganizationSettings_Edges struct { - Node *GetAllOrganizationSettings_OrganizationSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return t.Events } - -func (t *GetAllOrganizationSettings_OrganizationSettings_Edges) GetNode() *GetAllOrganizationSettings_OrganizationSettings_Edges_Node { +func (t *GetAllIntegrations_Integrations_Edges_Node) GetWebhooks() []*GetAllIntegrations_Integrations_Edges_Node_Webhooks { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings_Edges{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.Node + return t.Webhooks } - -type GetAllOrganizationSettings_OrganizationSettings struct { - Edges []*GetAllOrganizationSettings_OrganizationSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +func (t *GetAllIntegrations_Integrations_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllIntegrations_Integrations_Edges_Node{} + } + return t.CreatedAt } - -func (t *GetAllOrganizationSettings_OrganizationSettings) GetEdges() []*GetAllOrganizationSettings_OrganizationSettings_Edges { +func (t *GetAllIntegrations_Integrations_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllOrganizationSettings_OrganizationSettings{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.Edges + return t.CreatedBy } - -type GetOrganizationSettingByID_OrganizationSetting_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" -} - -func (t *GetOrganizationSettingByID_OrganizationSetting_Organization) GetID() string { +func (t *GetAllIntegrations_Integrations_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting_Organization{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.ID + return t.UpdatedAt } -func (t *GetOrganizationSettingByID_OrganizationSetting_Organization) GetName() string { +func (t *GetAllIntegrations_Integrations_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting_Organization{} + t = &GetAllIntegrations_Integrations_Edges_Node{} } - return t.Name + return t.UpdatedBy } -type GetOrganizationSettingByID_OrganizationSetting struct { - BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" - BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" - BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" - BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Organization *GetOrganizationSettingByID_OrganizationSetting_Organization "json:\"organization,omitempty\" graphql:\"organization\"" +type GetAllIntegrations_Integrations_Edges struct { + Node *GetAllIntegrations_Integrations_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetBillingAddress() *string { +func (t *GetAllIntegrations_Integrations_Edges) GetNode() *GetAllIntegrations_Integrations_Edges_Node { if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} + t = &GetAllIntegrations_Integrations_Edges{} } - return t.BillingAddress + return t.Node } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetBillingContact() *string { - if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} - } - return t.BillingContact + +type GetAllIntegrations_Integrations struct { + Edges []*GetAllIntegrations_Integrations_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetBillingEmail() *string { + +func (t *GetAllIntegrations_Integrations) GetEdges() []*GetAllIntegrations_Integrations_Edges { if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} + t = &GetAllIntegrations_Integrations{} } - return t.BillingEmail + return t.Edges } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetBillingPhone() *string { - if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} - } - return t.BillingPhone + +type GetIntegrationByID_Integration_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetCreatedAt() *time.Time { + +func (t *GetIntegrationByID_Integration_Owner) GetID() string { if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} + t = &GetIntegrationByID_Integration_Owner{} } - return t.CreatedAt + return t.ID } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetCreatedBy() *string { - if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} - } - return t.CreatedBy + +type GetIntegrationByID_Integration_Secrets struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetDomains() []string { + +func (t *GetIntegrationByID_Integration_Secrets) GetID() string { if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} + t = &GetIntegrationByID_Integration_Secrets{} } - return t.Domains + return t.ID } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetGeoLocation() *enums.Region { - if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} - } - return t.GeoLocation + +type GetIntegrationByID_Integration_Oauth2tokens struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetID() string { + +func (t *GetIntegrationByID_Integration_Oauth2tokens) GetID() string { if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} + t = &GetIntegrationByID_Integration_Oauth2tokens{} } return t.ID } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetTags() []string { - if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} - } - return t.Tags + +type GetIntegrationByID_Integration_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetTaxIdentifier() *string { + +func (t *GetIntegrationByID_Integration_Events) GetID() string { if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} + t = &GetIntegrationByID_Integration_Events{} } - return t.TaxIdentifier + return t.ID } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetUpdatedAt() *time.Time { + +type GetIntegrationByID_Integration_Webhooks struct { + ID string "json:\"id\" graphql:\"id\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" +} + +func (t *GetIntegrationByID_Integration_Webhooks) GetID() string { if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} + t = &GetIntegrationByID_Integration_Webhooks{} } - return t.UpdatedAt + return t.ID } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetUpdatedBy() *string { +func (t *GetIntegrationByID_Integration_Webhooks) GetDestinationURL() string { if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} + t = &GetIntegrationByID_Integration_Webhooks{} } - return t.UpdatedBy + return t.DestinationURL } -func (t *GetOrganizationSettingByID_OrganizationSetting) GetOrganization() *GetOrganizationSettingByID_OrganizationSetting_Organization { +func (t *GetIntegrationByID_Integration_Webhooks) GetEnabled() bool { if t == nil { - t = &GetOrganizationSettingByID_OrganizationSetting{} + t = &GetIntegrationByID_Integration_Webhooks{} } - return t.Organization + return t.Enabled } -type GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetIntegrationByID_Integration struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Owner *GetIntegrationByID_Integration_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Secrets []*GetIntegrationByID_Integration_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" + Oauth2tokens []*GetIntegrationByID_Integration_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" + Events []*GetIntegrationByID_Integration_Events "json:\"events,omitempty\" graphql:\"events\"" + Webhooks []*GetIntegrationByID_Integration_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization) GetID() string { +func (t *GetIntegrationByID_Integration) GetDescription() *string { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization{} + t = &GetIntegrationByID_Integration{} } - return t.ID + return t.Description } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization) GetName() string { +func (t *GetIntegrationByID_Integration) GetID() string { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization{} + t = &GetIntegrationByID_Integration{} } - return t.Name -} - -type GetOrganizationSettings_OrganizationSettings_Edges_Node struct { - BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" - BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" - BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" - BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Organization *GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization "json:\"organization,omitempty\" graphql:\"organization\"" + return t.ID } - -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingAddress() *string { +func (t *GetIntegrationByID_Integration) GetKind() *string { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrationByID_Integration{} } - return t.BillingAddress + return t.Kind } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingContact() *string { +func (t *GetIntegrationByID_Integration) GetName() string { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrationByID_Integration{} } - return t.BillingContact + return t.Name } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingEmail() *string { +func (t *GetIntegrationByID_Integration) GetOwnerID() *string { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrationByID_Integration{} } - return t.BillingEmail + return t.OwnerID } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingPhone() *string { +func (t *GetIntegrationByID_Integration) GetOwner() *GetIntegrationByID_Integration_Owner { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrationByID_Integration{} } - return t.BillingPhone + return t.Owner } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetIntegrationByID_Integration) GetSecrets() []*GetIntegrationByID_Integration_Secrets { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrationByID_Integration{} } - return t.CreatedAt + return t.Secrets } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetCreatedBy() *string { +func (t *GetIntegrationByID_Integration) GetOauth2tokens() []*GetIntegrationByID_Integration_Oauth2tokens { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrationByID_Integration{} } - return t.CreatedBy + return t.Oauth2tokens } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetDomains() []string { +func (t *GetIntegrationByID_Integration) GetEvents() []*GetIntegrationByID_Integration_Events { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrationByID_Integration{} } - return t.Domains + return t.Events } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetGeoLocation() *enums.Region { +func (t *GetIntegrationByID_Integration) GetWebhooks() []*GetIntegrationByID_Integration_Webhooks { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrationByID_Integration{} } - return t.GeoLocation + return t.Webhooks } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetID() string { +func (t *GetIntegrationByID_Integration) GetCreatedAt() *time.Time { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrationByID_Integration{} } - return t.ID + return t.CreatedAt } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetTags() []string { +func (t *GetIntegrationByID_Integration) GetCreatedBy() *string { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrationByID_Integration{} } - return t.Tags + return t.CreatedBy } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetTaxIdentifier() *string { +func (t *GetIntegrationByID_Integration) GetUpdatedAt() *time.Time { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrationByID_Integration{} } - return t.TaxIdentifier + return t.UpdatedAt } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetIntegrationByID_Integration) GetUpdatedBy() *string { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrationByID_Integration{} } - return t.UpdatedAt + return t.UpdatedBy } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetUpdatedBy() *string { + +type GetIntegrations_Integrations_Edges_Node_Owner struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetIntegrations_Integrations_Edges_Node_Owner) GetID() string { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrations_Integrations_Edges_Node_Owner{} } - return t.UpdatedBy + return t.ID } -func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetOrganization() *GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization { + +type GetIntegrations_Integrations_Edges_Node_Secrets struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetIntegrations_Integrations_Edges_Node_Secrets) GetID() string { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} + t = &GetIntegrations_Integrations_Edges_Node_Secrets{} } - return t.Organization + return t.ID } -type GetOrganizationSettings_OrganizationSettings_Edges struct { - Node *GetOrganizationSettings_OrganizationSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetIntegrations_Integrations_Edges_Node_Oauth2tokens struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationSettings_OrganizationSettings_Edges) GetNode() *GetOrganizationSettings_OrganizationSettings_Edges_Node { +func (t *GetIntegrations_Integrations_Edges_Node_Oauth2tokens) GetID() string { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings_Edges{} + t = &GetIntegrations_Integrations_Edges_Node_Oauth2tokens{} } - return t.Node + return t.ID } -type GetOrganizationSettings_OrganizationSettings struct { - Edges []*GetOrganizationSettings_OrganizationSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetIntegrations_Integrations_Edges_Node_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetOrganizationSettings_OrganizationSettings) GetEdges() []*GetOrganizationSettings_OrganizationSettings_Edges { +func (t *GetIntegrations_Integrations_Edges_Node_Events) GetID() string { if t == nil { - t = &GetOrganizationSettings_OrganizationSettings{} + t = &GetIntegrations_Integrations_Edges_Node_Events{} } - return t.Edges + return t.ID } -type UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetIntegrations_Integrations_Edges_Node_Webhooks struct { + ID string "json:\"id\" graphql:\"id\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization) GetID() string { +func (t *GetIntegrations_Integrations_Edges_Node_Webhooks) GetID() string { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization{} + t = &GetIntegrations_Integrations_Edges_Node_Webhooks{} } return t.ID } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization) GetName() string { +func (t *GetIntegrations_Integrations_Edges_Node_Webhooks) GetDestinationURL() string { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization{} + t = &GetIntegrations_Integrations_Edges_Node_Webhooks{} } - return t.Name + return t.DestinationURL +} +func (t *GetIntegrations_Integrations_Edges_Node_Webhooks) GetEnabled() bool { + if t == nil { + t = &GetIntegrations_Integrations_Edges_Node_Webhooks{} + } + return t.Enabled } -type UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting struct { - BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" - BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" - BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" - BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Organization *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization "json:\"organization,omitempty\" graphql:\"organization\"" +type GetIntegrations_Integrations_Edges_Node struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Owner *GetIntegrations_Integrations_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Secrets []*GetIntegrations_Integrations_Edges_Node_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" + Oauth2tokens []*GetIntegrations_Integrations_Edges_Node_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" + Events []*GetIntegrations_Integrations_Edges_Node_Events "json:\"events,omitempty\" graphql:\"events\"" + Webhooks []*GetIntegrations_Integrations_Edges_Node_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetBillingAddress() *string { +func (t *GetIntegrations_Integrations_Edges_Node) GetDescription() *string { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.BillingAddress + return t.Description } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetBillingContact() *string { +func (t *GetIntegrations_Integrations_Edges_Node) GetID() string { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.BillingContact + return t.ID } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetBillingEmail() *string { +func (t *GetIntegrations_Integrations_Edges_Node) GetKind() *string { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.BillingEmail + return t.Kind } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetBillingPhone() *string { +func (t *GetIntegrations_Integrations_Edges_Node) GetName() string { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.BillingPhone + return t.Name } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetCreatedAt() *time.Time { +func (t *GetIntegrations_Integrations_Edges_Node) GetOwnerID() *string { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.CreatedAt + return t.OwnerID } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetCreatedBy() *string { +func (t *GetIntegrations_Integrations_Edges_Node) GetOwner() *GetIntegrations_Integrations_Edges_Node_Owner { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.CreatedBy + return t.Owner } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetDomains() []string { +func (t *GetIntegrations_Integrations_Edges_Node) GetSecrets() []*GetIntegrations_Integrations_Edges_Node_Secrets { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.Domains + return t.Secrets } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetGeoLocation() *enums.Region { +func (t *GetIntegrations_Integrations_Edges_Node) GetOauth2tokens() []*GetIntegrations_Integrations_Edges_Node_Oauth2tokens { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.GeoLocation + return t.Oauth2tokens } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetID() string { +func (t *GetIntegrations_Integrations_Edges_Node) GetEvents() []*GetIntegrations_Integrations_Edges_Node_Events { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.ID + return t.Events } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetTags() []string { +func (t *GetIntegrations_Integrations_Edges_Node) GetWebhooks() []*GetIntegrations_Integrations_Edges_Node_Webhooks { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.Tags + return t.Webhooks } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetTaxIdentifier() *string { +func (t *GetIntegrations_Integrations_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.TaxIdentifier + return t.CreatedAt } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetUpdatedAt() *time.Time { +func (t *GetIntegrations_Integrations_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.UpdatedAt + return t.CreatedBy } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetUpdatedBy() *string { +func (t *GetIntegrations_Integrations_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.UpdatedBy + return t.UpdatedAt } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetOrganization() *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization { +func (t *GetIntegrations_Integrations_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} + t = &GetIntegrations_Integrations_Edges_Node{} } - return t.Organization + return t.UpdatedBy } -type UpdateOrganizationSetting_UpdateOrganizationSetting struct { - OrganizationSetting UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting "json:\"organizationSetting\" graphql:\"organizationSetting\"" +type GetIntegrations_Integrations_Edges struct { + Node *GetIntegrations_Integrations_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *UpdateOrganizationSetting_UpdateOrganizationSetting) GetOrganizationSetting() *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting { +func (t *GetIntegrations_Integrations_Edges) GetNode() *GetIntegrations_Integrations_Edges_Node { if t == nil { - t = &UpdateOrganizationSetting_UpdateOrganizationSetting{} + t = &GetIntegrations_Integrations_Edges{} } - return &t.OrganizationSetting + return t.Node } -type GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node struct { - BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" - BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" - BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" - BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OrganizationID *string "json:\"organizationID,omitempty\" graphql:\"organizationID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetIntegrations_Integrations struct { + Edges []*GetIntegrations_Integrations_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingAddress() *string { +func (t *GetIntegrations_Integrations) GetEdges() []*GetIntegrations_Integrations_Edges { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetIntegrations_Integrations{} } - return t.BillingAddress + return t.Edges } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingContact() *string { - if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} - } - return t.BillingContact + +type UpdateIntegration_UpdateIntegration_Integration_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingEmail() *string { + +func (t *UpdateIntegration_UpdateIntegration_Integration_Owner) GetID() string { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration_Owner{} } - return t.BillingEmail + return t.ID } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingPhone() *string { - if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} - } - return t.BillingPhone + +type UpdateIntegration_UpdateIntegration_Integration_Secrets struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetCreatedAt() *time.Time { + +func (t *UpdateIntegration_UpdateIntegration_Integration_Secrets) GetID() string { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration_Secrets{} } - return t.CreatedAt + return t.ID } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetCreatedBy() *string { + +type UpdateIntegration_UpdateIntegration_Integration_Oauth2tokens struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *UpdateIntegration_UpdateIntegration_Integration_Oauth2tokens) GetID() string { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration_Oauth2tokens{} } - return t.CreatedBy + return t.ID } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetDomains() []string { - if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} - } - return t.Domains + +type UpdateIntegration_UpdateIntegration_Integration_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetGeoLocation() *enums.Region { + +func (t *UpdateIntegration_UpdateIntegration_Integration_Events) GetID() string { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration_Events{} } - return t.GeoLocation + return t.ID } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetHistoryTime() *time.Time { - if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} - } - return &t.HistoryTime + +type UpdateIntegration_UpdateIntegration_Integration_Webhooks struct { + ID string "json:\"id\" graphql:\"id\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetID() string { + +func (t *UpdateIntegration_UpdateIntegration_Integration_Webhooks) GetID() string { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration_Webhooks{} } return t.ID } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetOperation() *history.OpType { +func (t *UpdateIntegration_UpdateIntegration_Integration_Webhooks) GetDestinationURL() string { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration_Webhooks{} } - return &t.Operation + return t.DestinationURL } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetOrganizationID() *string { +func (t *UpdateIntegration_UpdateIntegration_Integration_Webhooks) GetEnabled() bool { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration_Webhooks{} } - return t.OrganizationID + return t.Enabled } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetRef() *string { + +type UpdateIntegration_UpdateIntegration_Integration struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Owner *UpdateIntegration_UpdateIntegration_Integration_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + Secrets []*UpdateIntegration_UpdateIntegration_Integration_Secrets "json:\"secrets,omitempty\" graphql:\"secrets\"" + Oauth2tokens []*UpdateIntegration_UpdateIntegration_Integration_Oauth2tokens "json:\"oauth2tokens,omitempty\" graphql:\"oauth2tokens\"" + Events []*UpdateIntegration_UpdateIntegration_Integration_Events "json:\"events,omitempty\" graphql:\"events\"" + Webhooks []*UpdateIntegration_UpdateIntegration_Integration_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" +} + +func (t *UpdateIntegration_UpdateIntegration_Integration) GetDescription() *string { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration{} } - return t.Ref + return t.Description } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetTags() []string { +func (t *UpdateIntegration_UpdateIntegration_Integration) GetID() string { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration{} } - return t.Tags + return t.ID } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetTaxIdentifier() *string { +func (t *UpdateIntegration_UpdateIntegration_Integration) GetKind() *string { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration{} } - return t.TaxIdentifier + return t.Kind } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *UpdateIntegration_UpdateIntegration_Integration) GetName() string { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration{} } - return t.UpdatedAt + return t.Name } -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetUpdatedBy() *string { +func (t *UpdateIntegration_UpdateIntegration_Integration) GetOwnerID() *string { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration{} } - return t.UpdatedBy -} - -type GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges struct { - Node *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return t.OwnerID } - -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges) GetNode() *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node { +func (t *UpdateIntegration_UpdateIntegration_Integration) GetOwner() *UpdateIntegration_UpdateIntegration_Integration_Owner { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges{} + t = &UpdateIntegration_UpdateIntegration_Integration{} } - return t.Node -} - -type GetAllOrganizationSettingHistories_OrganizationSettingHistories struct { - Edges []*GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.Owner } - -func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories) GetEdges() []*GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges { +func (t *UpdateIntegration_UpdateIntegration_Integration) GetSecrets() []*UpdateIntegration_UpdateIntegration_Integration_Secrets { if t == nil { - t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories{} + t = &UpdateIntegration_UpdateIntegration_Integration{} } - return t.Edges -} - -type GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node struct { - BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" - BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" - BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" - BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" - GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OrganizationID *string "json:\"organizationID,omitempty\" graphql:\"organizationID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.Secrets } - -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingAddress() *string { +func (t *UpdateIntegration_UpdateIntegration_Integration) GetOauth2tokens() []*UpdateIntegration_UpdateIntegration_Integration_Oauth2tokens { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration{} } - return t.BillingAddress + return t.Oauth2tokens } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingContact() *string { +func (t *UpdateIntegration_UpdateIntegration_Integration) GetEvents() []*UpdateIntegration_UpdateIntegration_Integration_Events { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration{} } - return t.BillingContact + return t.Events } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingEmail() *string { +func (t *UpdateIntegration_UpdateIntegration_Integration) GetWebhooks() []*UpdateIntegration_UpdateIntegration_Integration_Webhooks { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration_Integration{} } - return t.BillingEmail + return t.Webhooks } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingPhone() *string { + +type UpdateIntegration_UpdateIntegration struct { + Integration UpdateIntegration_UpdateIntegration_Integration "json:\"integration\" graphql:\"integration\"" +} + +func (t *UpdateIntegration_UpdateIntegration) GetIntegration() *UpdateIntegration_UpdateIntegration_Integration { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &UpdateIntegration_UpdateIntegration{} } - return t.BillingPhone + return &t.Integration } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetCreatedAt() *time.Time { + +type GetAllIntegrationHistories_IntegrationHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } return t.CreatedAt } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } return t.CreatedBy } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetDomains() []string { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.Domains + return t.Description } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetGeoLocation() *enums.Region { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.GeoLocation + return &t.HistoryTime } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetID() string { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } - return &t.HistoryTime + return t.ID } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetID() string { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetKind() *string { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.ID + return t.Kind } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetName() string { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } - return &t.Operation + return t.Name } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetOrganizationID() *string { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.OrganizationID + return &t.Operation } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetRef() *string { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.Ref + return t.OwnerID } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetTags() []string { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.Tags + return t.Ref } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetTaxIdentifier() *string { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.TaxIdentifier + return t.Tags } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges_Node{} } return t.UpdatedBy } -type GetOrganizationSettingHistories_OrganizationSettingHistories_Edges struct { - Node *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllIntegrationHistories_IntegrationHistories_Edges struct { + Node *GetAllIntegrationHistories_IntegrationHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges) GetNode() *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node { +func (t *GetAllIntegrationHistories_IntegrationHistories_Edges) GetNode() *GetAllIntegrationHistories_IntegrationHistories_Edges_Node { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges{} + t = &GetAllIntegrationHistories_IntegrationHistories_Edges{} } return t.Node } -type GetOrganizationSettingHistories_OrganizationSettingHistories struct { - Edges []*GetOrganizationSettingHistories_OrganizationSettingHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllIntegrationHistories_IntegrationHistories struct { + Edges []*GetAllIntegrationHistories_IntegrationHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetOrganizationSettingHistories_OrganizationSettingHistories) GetEdges() []*GetOrganizationSettingHistories_OrganizationSettingHistories_Edges { +func (t *GetAllIntegrationHistories_IntegrationHistories) GetEdges() []*GetAllIntegrationHistories_IntegrationHistories_Edges { if t == nil { - t = &GetOrganizationSettingHistories_OrganizationSettingHistories{} + t = &GetAllIntegrationHistories_IntegrationHistories{} } return t.Edges } -type AddUserToOrgWithRole_CreateOrgMembership_OrgMembership struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UserID string "json:\"userID\" graphql:\"userID\"" - OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" +type GetIntegrationHistories_IntegrationHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Kind *string "json:\"kind,omitempty\" graphql:\"kind\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *AddUserToOrgWithRole_CreateOrgMembership_OrgMembership) GetID() string { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &AddUserToOrgWithRole_CreateOrgMembership_OrgMembership{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *AddUserToOrgWithRole_CreateOrgMembership_OrgMembership) GetRole() *enums.Role { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &AddUserToOrgWithRole_CreateOrgMembership_OrgMembership{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return &t.Role + return t.CreatedBy } -func (t *AddUserToOrgWithRole_CreateOrgMembership_OrgMembership) GetUserID() string { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &AddUserToOrgWithRole_CreateOrgMembership_OrgMembership{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.UserID + return t.Description } -func (t *AddUserToOrgWithRole_CreateOrgMembership_OrgMembership) GetOrganizationID() string { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &AddUserToOrgWithRole_CreateOrgMembership_OrgMembership{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.OrganizationID -} - -type AddUserToOrgWithRole_CreateOrgMembership struct { - OrgMembership AddUserToOrgWithRole_CreateOrgMembership_OrgMembership "json:\"orgMembership\" graphql:\"orgMembership\"" + return &t.HistoryTime } - -func (t *AddUserToOrgWithRole_CreateOrgMembership) GetOrgMembership() *AddUserToOrgWithRole_CreateOrgMembership_OrgMembership { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetID() string { if t == nil { - t = &AddUserToOrgWithRole_CreateOrgMembership{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return &t.OrgMembership -} - -type CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships struct { - ID string "json:\"id\" graphql:\"id\"" - OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UserID string "json:\"userID\" graphql:\"userID\"" + return t.ID } - -func (t *CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships) GetID() string { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetKind() *string { if t == nil { - t = &CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.ID + return t.Kind } -func (t *CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships) GetOrganizationID() string { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetName() string { if t == nil { - t = &CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.OrganizationID + return t.Name } -func (t *CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships) GetRole() *enums.Role { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return &t.Role + return &t.Operation } -func (t *CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships) GetUserID() string { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.UserID -} - -type CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership struct { - OrgMemberships []*CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships "json:\"orgMemberships,omitempty\" graphql:\"orgMemberships\"" + return t.OwnerID } - -func (t *CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership) GetOrgMemberships() []*CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetRef() *string { if t == nil { - t = &CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.OrgMemberships -} - -type CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships struct { - ID string "json:\"id\" graphql:\"id\"" - OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UserID string "json:\"userID\" graphql:\"userID\"" + return t.Ref } - -func (t *CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships) GetID() string { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetTags() []string { if t == nil { - t = &CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.ID + return t.Tags } -func (t *CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships) GetOrganizationID() string { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return t.OrganizationID + return t.UpdatedAt } -func (t *CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships) GetRole() *enums.Role { +func (t *GetIntegrationHistories_IntegrationHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships{} + t = &GetIntegrationHistories_IntegrationHistories_Edges_Node{} } - return &t.Role + return t.UpdatedBy } -func (t *CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships) GetUserID() string { + +type GetIntegrationHistories_IntegrationHistories_Edges struct { + Node *GetIntegrationHistories_IntegrationHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetIntegrationHistories_IntegrationHistories_Edges) GetNode() *GetIntegrationHistories_IntegrationHistories_Edges_Node { if t == nil { - t = &CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships{} + t = &GetIntegrationHistories_IntegrationHistories_Edges{} } - return t.UserID + return t.Node } -type CreateBulkOrgMembers_CreateBulkOrgMembership struct { - OrgMemberships []*CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships "json:\"orgMemberships,omitempty\" graphql:\"orgMemberships\"" +type GetIntegrationHistories_IntegrationHistories struct { + Edges []*GetIntegrationHistories_IntegrationHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkOrgMembers_CreateBulkOrgMembership) GetOrgMemberships() []*CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships { +func (t *GetIntegrationHistories_IntegrationHistories) GetEdges() []*GetIntegrationHistories_IntegrationHistories_Edges { if t == nil { - t = &CreateBulkOrgMembers_CreateBulkOrgMembership{} + t = &GetIntegrationHistories_IntegrationHistories{} } - return t.OrgMemberships + return t.Edges } -type GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User struct { - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" - ID string "json:\"id\" graphql:\"id\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" +type CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description string "json:\"description\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PolicyType *string "json:\"policyType,omitempty\" graphql:\"policyType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User) GetFirstName() *string { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetBackground() *string { if t == nil { - t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} } - return t.FirstName + return t.Background } -func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User) GetLastName() *string { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetCreatedAt() *time.Time { if t == nil { - t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} } - return t.LastName + return t.CreatedAt } -func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User) GetID() string { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetCreatedBy() *string { if t == nil { - t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} } - return t.ID + return t.CreatedBy } -func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User) GetDisplayName() string { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetDescription() string { if t == nil { - t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} } - return t.DisplayName + return t.Description } -func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User) GetEmail() string { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetDetails() map[string]interface{} { if t == nil { - t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} } - return t.Email -} - -type GetOrgMembersByOrgID_OrgMemberships_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" - UserID string "json:\"userID\" graphql:\"userID\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - User GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User "json:\"user\" graphql:\"user\"" + return t.Details } - -func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node) GetID() string { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetID() string { if t == nil { - t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} } return t.ID } -func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node) GetOrganizationID() string { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetName() string { if t == nil { - t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} } - return t.OrganizationID + return t.Name } -func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node) GetUserID() string { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetPolicyType() *string { if t == nil { - t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} } - return t.UserID + return t.PolicyType } -func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node) GetRole() *enums.Role { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetPurposeAndScope() *string { if t == nil { - t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} } - return &t.Role + return t.PurposeAndScope } -func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node) GetUser() *GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetStatus() *string { if t == nil { - t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} } - return &t.User + return t.Status } - -type GetOrgMembersByOrgID_OrgMemberships_Edges struct { - Node *GetOrgMembersByOrgID_OrgMemberships_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetTags() []string { + if t == nil { + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} + } + return t.Tags } - -func (t *GetOrgMembersByOrgID_OrgMemberships_Edges) GetNode() *GetOrgMembersByOrgID_OrgMemberships_Edges_Node { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetUpdatedAt() *time.Time { if t == nil { - t = &GetOrgMembersByOrgID_OrgMemberships_Edges{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} } - return t.Node + return t.UpdatedAt } - -type GetOrgMembersByOrgID_OrgMemberships struct { - Edges []*GetOrgMembersByOrgID_OrgMemberships_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} + } + return t.UpdatedBy } - -func (t *GetOrgMembersByOrgID_OrgMemberships) GetEdges() []*GetOrgMembersByOrgID_OrgMemberships_Edges { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies) GetVersion() *string { if t == nil { - t = &GetOrgMembersByOrgID_OrgMemberships{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies{} } - return t.Edges + return t.Version } -type RemoveUserFromOrg_DeleteOrgMembership struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy struct { + InternalPolicies []*CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies "json:\"internalPolicies,omitempty\" graphql:\"internalPolicies\"" } -func (t *RemoveUserFromOrg_DeleteOrgMembership) GetDeletedID() string { +func (t *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy) GetInternalPolicies() []*CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy_InternalPolicies { if t == nil { - t = &RemoveUserFromOrg_DeleteOrgMembership{} + t = &CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy{} } - return t.DeletedID + return t.InternalPolicies } -type UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UserID string "json:\"userID\" graphql:\"userID\"" - OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" +type CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description string "json:\"description\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PolicyType *string "json:\"policyType,omitempty\" graphql:\"policyType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership) GetID() string { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetBackground() *string { if t == nil { - t = &UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } - return t.ID + return t.Background } -func (t *UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership) GetRole() *enums.Role { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } - return &t.Role + return t.CreatedAt } -func (t *UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership) GetUserID() string { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetCreatedBy() *string { if t == nil { - t = &UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } - return t.UserID + return t.CreatedBy } -func (t *UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership) GetOrganizationID() string { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetDescription() string { if t == nil { - t = &UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } - return t.OrganizationID -} - -type UpdateUserRoleInOrg_UpdateOrgMembership struct { - OrgMembership UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership "json:\"orgMembership\" graphql:\"orgMembership\"" + return t.Description } - -func (t *UpdateUserRoleInOrg_UpdateOrgMembership) GetOrgMembership() *UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetDetails() map[string]interface{} { if t == nil { - t = &UpdateUserRoleInOrg_UpdateOrgMembership{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } - return &t.OrgMembership + return t.Details } - -type GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - UserID string "json:\"userID\" graphql:\"userID\"" -} - -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetCreatedAt() *time.Time { - if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} - } - return t.CreatedAt -} -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetCreatedBy() *string { - if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} - } - return t.CreatedBy -} -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetID() string { if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } - return &t.HistoryTime + return t.ID } -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetID() string { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetName() string { if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } - return t.ID + return t.Name } -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetOperation() *history.OpType { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetPolicyType() *string { if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } - return &t.Operation + return t.PolicyType } -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetOrganizationID() string { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetPurposeAndScope() *string { if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } - return t.OrganizationID + return t.PurposeAndScope } -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetRef() *string { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetStatus() *string { if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } - return t.Ref + return t.Status } -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetRole() *enums.Role { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetTags() []string { if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } - return &t.Role + return t.Tags } -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } return t.UpdatedAt } -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetUpdatedBy() *string { if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } return t.UpdatedBy } -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetUserID() string { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies) GetVersion() *string { if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies{} } - return t.UserID + return t.Version } -type GetAllOrgMembershipHistories_OrgMembershipHistories_Edges struct { - Node *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateBulkInternalPolicy_CreateBulkInternalPolicy struct { + InternalPolicies []*CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies "json:\"internalPolicies,omitempty\" graphql:\"internalPolicies\"" } -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges) GetNode() *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node { +func (t *CreateBulkInternalPolicy_CreateBulkInternalPolicy) GetInternalPolicies() []*CreateBulkInternalPolicy_CreateBulkInternalPolicy_InternalPolicies { if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges{} + t = &CreateBulkInternalPolicy_CreateBulkInternalPolicy{} } - return t.Node + return t.InternalPolicies } -type GetAllOrgMembershipHistories_OrgMembershipHistories struct { - Edges []*GetAllOrgMembershipHistories_OrgMembershipHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateInternalPolicy_CreateInternalPolicy_InternalPolicy struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description string "json:\"description\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PolicyType *string "json:\"policyType,omitempty\" graphql:\"policyType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetAllOrgMembershipHistories_OrgMembershipHistories) GetEdges() []*GetAllOrgMembershipHistories_OrgMembershipHistories_Edges { +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetBackground() *string { if t == nil { - t = &GetAllOrgMembershipHistories_OrgMembershipHistories{} + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} } - return t.Edges -} - -type GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - UserID string "json:\"userID\" graphql:\"userID\"" + return t.Background } - -func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetCreatedAt() *time.Time { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} } return t.CreatedAt } -func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetCreatedBy() *string { +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetCreatedBy() *string { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} } return t.CreatedBy } -func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetDescription() string { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} } - return &t.HistoryTime + return t.Description } -func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetID() string { +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetDetails() map[string]interface{} { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} + } + return t.Details +} +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetID() string { + if t == nil { + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} } return t.ID } -func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetOperation() *history.OpType { +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetName() string { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} } - return &t.Operation + return t.Name } -func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetOrganizationID() string { +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetPolicyType() *string { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} } - return t.OrganizationID + return t.PolicyType } -func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetRef() *string { +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetPurposeAndScope() *string { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} } - return t.Ref + return t.PurposeAndScope } -func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetRole() *enums.Role { +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetStatus() *string { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} } - return &t.Role + return t.Status } -func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetTags() []string { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} + } + return t.Tags +} +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} } return t.UpdatedAt } -func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetUpdatedBy() *string { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} } return t.UpdatedBy } -func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetUserID() string { +func (t *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy) GetVersion() *string { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} + t = &CreateInternalPolicy_CreateInternalPolicy_InternalPolicy{} } - return t.UserID + return t.Version } -type GetOrgMembershipHistories_OrgMembershipHistories_Edges struct { - Node *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateInternalPolicy_CreateInternalPolicy struct { + InternalPolicy CreateInternalPolicy_CreateInternalPolicy_InternalPolicy "json:\"internalPolicy\" graphql:\"internalPolicy\"" } -func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges) GetNode() *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node { +func (t *CreateInternalPolicy_CreateInternalPolicy) GetInternalPolicy() *CreateInternalPolicy_CreateInternalPolicy_InternalPolicy { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges{} + t = &CreateInternalPolicy_CreateInternalPolicy{} } - return t.Node + return &t.InternalPolicy } -type GetOrgMembershipHistories_OrgMembershipHistories struct { - Edges []*GetOrgMembershipHistories_OrgMembershipHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type DeleteInternalPolicy_DeleteInternalPolicy struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetOrgMembershipHistories_OrgMembershipHistories) GetEdges() []*GetOrgMembershipHistories_OrgMembershipHistories_Edges { +func (t *DeleteInternalPolicy_DeleteInternalPolicy) GetDeletedID() string { if t == nil { - t = &GetOrgMembershipHistories_OrgMembershipHistories{} + t = &DeleteInternalPolicy_DeleteInternalPolicy{} } - return t.Edges + return t.DeletedID } -type CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetAllInternalPolicies_InternalPolicies_Edges_Node struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description string "json:\"description\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PolicyType *string "json:\"policyType,omitempty\" graphql:\"policyType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations) GetID() string { +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetBackground() *string { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations{} + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} } - return t.ID + return t.Background } -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations) GetName() string { +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations{} + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} } - return t.Name + return t.CreatedAt } - -type CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - ID string "json:\"id\" graphql:\"id\"" - LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" - Name string "json:\"name\" graphql:\"name\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Token string "json:\"token\" graphql:\"token\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Organizations []*CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} + } + return t.CreatedBy } - -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetDescription() *string { +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetDescription() string { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} } return t.Description } -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetExpiresAt() *time.Time { +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} } - return t.ExpiresAt + return t.Details } -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetID() string { +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} } return t.ID } -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetLastUsedAt() *time.Time { +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetName() string { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} } - return t.LastUsedAt + return t.Name } -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetName() string { +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetPolicyType() *string { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} } - return t.Name + return t.PolicyType } -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetScopes() []string { +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetPurposeAndScope() *string { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} } - return t.Scopes + return t.PurposeAndScope } -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetToken() string { +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetStatus() *string { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} } - return t.Token + return t.Status } -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetUpdatedAt() *time.Time { +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetTags() []string { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} + } + return t.Tags +} +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} } return t.UpdatedAt } -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetUpdatedBy() *string { +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} } return t.UpdatedBy } -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetOrganizations() []*CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations { +func (t *GetAllInternalPolicies_InternalPolicies_Edges_Node) GetVersion() *string { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} + t = &GetAllInternalPolicies_InternalPolicies_Edges_Node{} } - return t.Organizations + return t.Version } -type CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken struct { - PersonalAccessTokens []*CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens "json:\"personalAccessTokens,omitempty\" graphql:\"personalAccessTokens\"" +type GetAllInternalPolicies_InternalPolicies_Edges struct { + Node *GetAllInternalPolicies_InternalPolicies_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken) GetPersonalAccessTokens() []*CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens { +func (t *GetAllInternalPolicies_InternalPolicies_Edges) GetNode() *GetAllInternalPolicies_InternalPolicies_Edges_Node { if t == nil { - t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken{} + t = &GetAllInternalPolicies_InternalPolicies_Edges{} } - return t.PersonalAccessTokens + return t.Node } -type CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetAllInternalPolicies_InternalPolicies struct { + Edges []*GetAllInternalPolicies_InternalPolicies_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations) GetID() string { +func (t *GetAllInternalPolicies_InternalPolicies) GetEdges() []*GetAllInternalPolicies_InternalPolicies_Edges { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations{} + t = &GetAllInternalPolicies_InternalPolicies{} } - return t.ID + return t.Edges } -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations) GetName() string { + +type GetInternalPolicyByID_InternalPolicy struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description string "json:\"description\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PolicyType *string "json:\"policyType,omitempty\" graphql:\"policyType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetInternalPolicyByID_InternalPolicy) GetBackground() *string { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations{} + t = &GetInternalPolicyByID_InternalPolicy{} } - return t.Name + return t.Background } - -type CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - ID string "json:\"id\" graphql:\"id\"" - LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" - Name string "json:\"name\" graphql:\"name\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Token string "json:\"token\" graphql:\"token\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Organizations []*CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" +func (t *GetInternalPolicyByID_InternalPolicy) GetCreatedAt() *time.Time { + if t == nil { + t = &GetInternalPolicyByID_InternalPolicy{} + } + return t.CreatedAt } - -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetDescription() *string { +func (t *GetInternalPolicyByID_InternalPolicy) GetCreatedBy() *string { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} + t = &GetInternalPolicyByID_InternalPolicy{} } - return t.Description + return t.CreatedBy } -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetExpiresAt() *time.Time { +func (t *GetInternalPolicyByID_InternalPolicy) GetDescription() string { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} + t = &GetInternalPolicyByID_InternalPolicy{} } - return t.ExpiresAt + return t.Description } -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetID() string { +func (t *GetInternalPolicyByID_InternalPolicy) GetDetails() map[string]interface{} { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} + t = &GetInternalPolicyByID_InternalPolicy{} } - return t.ID + return t.Details } -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetLastUsedAt() *time.Time { +func (t *GetInternalPolicyByID_InternalPolicy) GetID() string { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} + t = &GetInternalPolicyByID_InternalPolicy{} } - return t.LastUsedAt + return t.ID } -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetName() string { +func (t *GetInternalPolicyByID_InternalPolicy) GetName() string { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} + t = &GetInternalPolicyByID_InternalPolicy{} } return t.Name } -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetScopes() []string { +func (t *GetInternalPolicyByID_InternalPolicy) GetPolicyType() *string { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} + t = &GetInternalPolicyByID_InternalPolicy{} } - return t.Scopes + return t.PolicyType } -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetToken() string { +func (t *GetInternalPolicyByID_InternalPolicy) GetPurposeAndScope() *string { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} + t = &GetInternalPolicyByID_InternalPolicy{} } - return t.Token + return t.PurposeAndScope } -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetUpdatedAt() *time.Time { +func (t *GetInternalPolicyByID_InternalPolicy) GetStatus() *string { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} + t = &GetInternalPolicyByID_InternalPolicy{} } - return t.UpdatedAt + return t.Status } -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetUpdatedBy() *string { +func (t *GetInternalPolicyByID_InternalPolicy) GetTags() []string { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} + t = &GetInternalPolicyByID_InternalPolicy{} } - return t.UpdatedBy + return t.Tags } -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetOrganizations() []*CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations { +func (t *GetInternalPolicyByID_InternalPolicy) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} + t = &GetInternalPolicyByID_InternalPolicy{} } - return t.Organizations + return t.UpdatedAt } - -type CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken struct { - PersonalAccessTokens []*CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens "json:\"personalAccessTokens,omitempty\" graphql:\"personalAccessTokens\"" +func (t *GetInternalPolicyByID_InternalPolicy) GetUpdatedBy() *string { + if t == nil { + t = &GetInternalPolicyByID_InternalPolicy{} + } + return t.UpdatedBy } - -func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken) GetPersonalAccessTokens() []*CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens { +func (t *GetInternalPolicyByID_InternalPolicy) GetVersion() *string { if t == nil { - t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken{} + t = &GetInternalPolicyByID_InternalPolicy{} } - return t.PersonalAccessTokens + return t.Version } -type CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type GetInternalPolicies_InternalPolicies_Edges_Node struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description string "json:\"description\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PolicyType *string "json:\"policyType,omitempty\" graphql:\"policyType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations) GetID() string { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetBackground() *string { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } - return t.ID + return t.Background } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations) GetName() string { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } - return t.Name -} - -type CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Owner struct { - ID string "json:\"id\" graphql:\"id\"" + return t.CreatedAt } - -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Owner) GetID() string { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Owner{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } - return t.ID -} - -type CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - ID string "json:\"id\" graphql:\"id\"" - LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" - Name string "json:\"name\" graphql:\"name\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Token string "json:\"token\" graphql:\"token\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Organizations []*CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" - Owner CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Owner "json:\"owner\" graphql:\"owner\"" + return t.CreatedBy } - -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetDescription() *string { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetDescription() string { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } return t.Description } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetExpiresAt() *time.Time { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } - return t.ExpiresAt + return t.Details } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetID() string { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetID() string { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } return t.ID } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetLastUsedAt() *time.Time { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetName() string { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } - return t.LastUsedAt + return t.Name } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetName() string { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetPolicyType() *string { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } - return t.Name + return t.PolicyType } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetScopes() []string { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetPurposeAndScope() *string { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } - return t.Scopes + return t.PurposeAndScope } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetToken() string { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetStatus() *string { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } - return t.Token + return t.Status } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetUpdatedAt() *time.Time { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetTags() []string { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } - return t.UpdatedAt + return t.Tags } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetUpdatedBy() *string { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } - return t.UpdatedBy + return t.UpdatedAt } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetOrganizations() []*CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } - return t.Organizations + return t.UpdatedBy } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetOwner() *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Owner { +func (t *GetInternalPolicies_InternalPolicies_Edges_Node) GetVersion() *string { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies_Edges_Node{} } - return &t.Owner + return t.Version } -type CreatePersonalAccessToken_CreatePersonalAccessToken struct { - PersonalAccessToken CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken "json:\"personalAccessToken\" graphql:\"personalAccessToken\"" +type GetInternalPolicies_InternalPolicies_Edges struct { + Node *GetInternalPolicies_InternalPolicies_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreatePersonalAccessToken_CreatePersonalAccessToken) GetPersonalAccessToken() *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken { +func (t *GetInternalPolicies_InternalPolicies_Edges) GetNode() *GetInternalPolicies_InternalPolicies_Edges_Node { if t == nil { - t = &CreatePersonalAccessToken_CreatePersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies_Edges{} } - return &t.PersonalAccessToken + return t.Node } -type DeletePersonalAccessToken_DeletePersonalAccessToken struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type GetInternalPolicies_InternalPolicies struct { + Edges []*GetInternalPolicies_InternalPolicies_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *DeletePersonalAccessToken_DeletePersonalAccessToken) GetDeletedID() string { +func (t *GetInternalPolicies_InternalPolicies) GetEdges() []*GetInternalPolicies_InternalPolicies_Edges { if t == nil { - t = &DeletePersonalAccessToken_DeletePersonalAccessToken{} + t = &GetInternalPolicies_InternalPolicies{} } - return t.DeletedID + return t.Edges } -type GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +type UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description string "json:\"description\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PolicyType *string "json:\"policyType,omitempty\" graphql:\"policyType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations) GetID() string { +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetBackground() *string { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations{} + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} } - return t.ID + return t.Background } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations) GetName() string { +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations{} + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} } - return t.Name + return t.CreatedAt } - -type GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - ID string "json:\"id\" graphql:\"id\"" - LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" - Name string "json:\"name\" graphql:\"name\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Token string "json:\"token\" graphql:\"token\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Organizations []*GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetCreatedBy() *string { + if t == nil { + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} + } + return t.CreatedBy } - -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetDescription() *string { +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetDescription() string { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} } return t.Description } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetExpiresAt() *time.Time { +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetDetails() map[string]interface{} { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} } - return t.ExpiresAt + return t.Details } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetID() string { +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetID() string { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} } return t.ID } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetLastUsedAt() *time.Time { +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetName() string { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} } - return t.LastUsedAt + return t.Name } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetName() string { +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetPolicyType() *string { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} } - return t.Name + return t.PolicyType } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetScopes() []string { +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetPurposeAndScope() *string { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} } - return t.Scopes + return t.PurposeAndScope } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetToken() string { +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetStatus() *string { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} } - return t.Token + return t.Status } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetUpdatedAt() *time.Time { +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetTags() []string { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} + } + return t.Tags +} +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} } return t.UpdatedAt } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetUpdatedBy() *string { +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetUpdatedBy() *string { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} } return t.UpdatedBy } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetOrganizations() []*GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations { +func (t *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy) GetVersion() *string { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + t = &UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy{} } - return t.Organizations + return t.Version } -type GetAllPersonalAccessTokens_PersonalAccessTokens_Edges struct { - Node *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type UpdateInternalPolicy_UpdateInternalPolicy struct { + InternalPolicy UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy "json:\"internalPolicy\" graphql:\"internalPolicy\"" } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges) GetNode() *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node { +func (t *UpdateInternalPolicy_UpdateInternalPolicy) GetInternalPolicy() *UpdateInternalPolicy_UpdateInternalPolicy_InternalPolicy { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges{} + t = &UpdateInternalPolicy_UpdateInternalPolicy{} } - return t.Node + return &t.InternalPolicy } -type GetAllPersonalAccessTokens_PersonalAccessTokens struct { - Edges []*GetAllPersonalAccessTokens_PersonalAccessTokens_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description string "json:\"description\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + PolicyType *string "json:\"policyType,omitempty\" graphql:\"policyType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetAllPersonalAccessTokens_PersonalAccessTokens) GetEdges() []*GetAllPersonalAccessTokens_PersonalAccessTokens_Edges { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetBackground() *string { if t == nil { - t = &GetAllPersonalAccessTokens_PersonalAccessTokens{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.Edges + return t.Background } - -type GetPersonalAccessTokenByID_PersonalAccessToken_Organizations struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" -} - -func (t *GetPersonalAccessTokenByID_PersonalAccessToken_Organizations) GetID() string { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetPersonalAccessTokenByID_PersonalAccessToken_Organizations{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *GetPersonalAccessTokenByID_PersonalAccessToken_Organizations) GetName() string { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetPersonalAccessTokenByID_PersonalAccessToken_Organizations{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.Name -} - -type GetPersonalAccessTokenByID_PersonalAccessToken struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - ID string "json:\"id\" graphql:\"id\"" - LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" - Name string "json:\"name\" graphql:\"name\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Token string "json:\"token\" graphql:\"token\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Organizations []*GetPersonalAccessTokenByID_PersonalAccessToken_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" + return t.CreatedBy } - -func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetDescription() *string { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetDescription() string { if t == nil { - t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } return t.Description } -func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetExpiresAt() *time.Time { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.ExpiresAt + return t.Details } -func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetID() string { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.ID + return &t.HistoryTime } -func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetLastUsedAt() *time.Time { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetID() string { if t == nil { - t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.LastUsedAt + return t.ID } -func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetName() string { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetName() string { if t == nil { - t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } return t.Name } -func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetScopes() []string { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.Scopes + return &t.Operation } -func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetToken() string { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetPolicyType() *string { if t == nil { - t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.Token + return t.PolicyType } -func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetUpdatedAt() *time.Time { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetPurposeAndScope() *string { if t == nil { - t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.UpdatedAt + return t.PurposeAndScope } -func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetUpdatedBy() *string { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.UpdatedBy + return t.Ref } -func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetOrganizations() []*GetPersonalAccessTokenByID_PersonalAccessToken_Organizations { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetStatus() *string { if t == nil { - t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.Organizations + return t.Status } - -type UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} + } + return t.Tags } - -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations) GetID() string { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.ID + return t.UpdatedAt } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations) GetName() string { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.Name + return t.UpdatedBy +} +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} + } + return t.Version } -type UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllInternalPolicyHistories_InternalPolicyHistories_Edges struct { + Node *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Owner) GetID() string { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges) GetNode() *GetAllInternalPolicyHistories_InternalPolicyHistories_Edges_Node { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Owner{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories_Edges{} } - return t.ID + return t.Node } -type UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" - ID string "json:\"id\" graphql:\"id\"" - LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" - Name string "json:\"name\" graphql:\"name\"" - Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" - Token string "json:\"token\" graphql:\"token\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Organizations []*UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" - Owner UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Owner "json:\"owner\" graphql:\"owner\"" +type GetAllInternalPolicyHistories_InternalPolicyHistories struct { + Edges []*GetAllInternalPolicyHistories_InternalPolicyHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetDescription() *string { +func (t *GetAllInternalPolicyHistories_InternalPolicyHistories) GetEdges() []*GetAllInternalPolicyHistories_InternalPolicyHistories_Edges { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + t = &GetAllInternalPolicyHistories_InternalPolicyHistories{} } - return t.Description + return t.Edges } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetExpiresAt() *time.Time { + +type GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description string "json:\"description\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + PolicyType *string "json:\"policyType,omitempty\" graphql:\"policyType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetBackground() *string { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.ExpiresAt + return t.Background } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetID() string { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetLastUsedAt() *time.Time { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.LastUsedAt + return t.CreatedBy } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetName() string { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetDescription() string { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.Name + return t.Description } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetScopes() []string { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.Scopes + return t.Details } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetToken() string { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.Token + return &t.HistoryTime } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetUpdatedAt() *time.Time { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetID() string { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.UpdatedAt + return t.ID } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetUpdatedBy() *string { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetName() string { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.UpdatedBy + return t.Name } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetOrganizations() []*UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.Organizations + return &t.Operation } -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetOwner() *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Owner { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetPolicyType() *string { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return &t.Owner -} - -type UpdatePersonalAccessToken_UpdatePersonalAccessToken struct { - PersonalAccessToken UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken "json:\"personalAccessToken\" graphql:\"personalAccessToken\"" + return t.PolicyType } - -func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken) GetPersonalAccessToken() *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetPurposeAndScope() *string { if t == nil { - t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return &t.PersonalAccessToken + return t.PurposeAndScope } - -type GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} + } + return t.Ref } - -func (t *GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens) GetID() string { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetStatus() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.ID + return t.Status } -func (t *GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens) GetTags() []string { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } return t.Tags } - -type GlobalSearch_Search_Nodes_APITokenSearchResult struct { - APITokens []*GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens "json:\"apiTokens,omitempty\" graphql:\"apiTokens\"" -} - -func (t *GlobalSearch_Search_Nodes_APITokenSearchResult) GetAPITokens() []*GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes_APITokenSearchResult{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.APITokens -} - -type GlobalSearch_Search_Nodes_ContactSearchResult_Contacts struct { - FullName string "json:\"fullName\" graphql:\"fullName\"" - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + return t.UpdatedAt } - -func (t *GlobalSearch_Search_Nodes_ContactSearchResult_Contacts) GetFullName() string { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_ContactSearchResult_Contacts{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.FullName + return t.UpdatedBy } -func (t *GlobalSearch_Search_Nodes_ContactSearchResult_Contacts) GetID() string { +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node) GetVersion() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_ContactSearchResult_Contacts{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node{} } - return t.ID + return t.Version } -func (t *GlobalSearch_Search_Nodes_ContactSearchResult_Contacts) GetTags() []string { + +type GetInternalPolicyHistories_InternalPolicyHistories_Edges struct { + Node *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetInternalPolicyHistories_InternalPolicyHistories_Edges) GetNode() *GetInternalPolicyHistories_InternalPolicyHistories_Edges_Node { if t == nil { - t = &GlobalSearch_Search_Nodes_ContactSearchResult_Contacts{} + t = &GetInternalPolicyHistories_InternalPolicyHistories_Edges{} } - return t.Tags + return t.Node } -type GlobalSearch_Search_Nodes_ContactSearchResult struct { - Contacts []*GlobalSearch_Search_Nodes_ContactSearchResult_Contacts "json:\"contacts,omitempty\" graphql:\"contacts\"" +type GetInternalPolicyHistories_InternalPolicyHistories struct { + Edges []*GetInternalPolicyHistories_InternalPolicyHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GlobalSearch_Search_Nodes_ContactSearchResult) GetContacts() []*GlobalSearch_Search_Nodes_ContactSearchResult_Contacts { +func (t *GetInternalPolicyHistories_InternalPolicyHistories) GetEdges() []*GetInternalPolicyHistories_InternalPolicyHistories_Edges { if t == nil { - t = &GlobalSearch_Search_Nodes_ContactSearchResult{} + t = &GetInternalPolicyHistories_InternalPolicyHistories{} } - return t.Contacts + return t.Edges } -type GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type CreateBulkCSVInvite_CreateBulkCSVInvite_Invites struct { + Expires *time.Time "json:\"expires,omitempty\" graphql:\"expires\"" + ID string "json:\"id\" graphql:\"id\"" + Recipient string "json:\"recipient\" graphql:\"recipient\"" + RequestorID *string "json:\"requestorID,omitempty\" graphql:\"requestorID\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + SendAttempts int64 "json:\"sendAttempts\" graphql:\"sendAttempts\"" + Status enums.InviteStatus "json:\"status\" graphql:\"status\"" } -func (t *GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData) GetID() string { +func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetExpires() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData{} + t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} } - return t.ID + return t.Expires } -func (t *GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData) GetTags() []string { +func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetID() string { if t == nil { - t = &GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData{} + t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} } - return t.Tags + return t.ID } - -type GlobalSearch_Search_Nodes_DocumentDataSearchResult struct { - DocumentData []*GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData "json:\"documentData,omitempty\" graphql:\"documentData\"" +func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetRecipient() string { + if t == nil { + t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} + } + return t.Recipient } - -func (t *GlobalSearch_Search_Nodes_DocumentDataSearchResult) GetDocumentData() []*GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData { +func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetRequestorID() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_DocumentDataSearchResult{} + t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} } - return t.DocumentData + return t.RequestorID } - -type GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetRole() *enums.Role { + if t == nil { + t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} + } + return &t.Role } - -func (t *GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements) GetID() string { +func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetSendAttempts() int64 { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements{} + t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} } - return t.ID + return t.SendAttempts } -func (t *GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements) GetTags() []string { +func (t *CreateBulkCSVInvite_CreateBulkCSVInvite_Invites) GetStatus() *enums.InviteStatus { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements{} + t = &CreateBulkCSVInvite_CreateBulkCSVInvite_Invites{} } - return t.Tags + return &t.Status } -type GlobalSearch_Search_Nodes_EntitlementSearchResult struct { - Entitlements []*GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements "json:\"entitlements,omitempty\" graphql:\"entitlements\"" +type CreateBulkCSVInvite_CreateBulkCSVInvite struct { + Invites []*CreateBulkCSVInvite_CreateBulkCSVInvite_Invites "json:\"invites,omitempty\" graphql:\"invites\"" } -func (t *GlobalSearch_Search_Nodes_EntitlementSearchResult) GetEntitlements() []*GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements { +func (t *CreateBulkCSVInvite_CreateBulkCSVInvite) GetInvites() []*CreateBulkCSVInvite_CreateBulkCSVInvite_Invites { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitlementSearchResult{} + t = &CreateBulkCSVInvite_CreateBulkCSVInvite{} } - return t.Entitlements + return t.Invites } -type GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type CreateBulkInvite_CreateBulkInvite_Invites struct { + Expires *time.Time "json:\"expires,omitempty\" graphql:\"expires\"" + ID string "json:\"id\" graphql:\"id\"" + Recipient string "json:\"recipient\" graphql:\"recipient\"" + RequestorID *string "json:\"requestorID,omitempty\" graphql:\"requestorID\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + SendAttempts int64 "json:\"sendAttempts\" graphql:\"sendAttempts\"" + Status enums.InviteStatus "json:\"status\" graphql:\"status\"" } -func (t *GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetID() string { +func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetExpires() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + t = &CreateBulkInvite_CreateBulkInvite_Invites{} } - return t.ID + return t.Expires } -func (t *GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetTags() []string { +func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetID() string { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + t = &CreateBulkInvite_CreateBulkInvite_Invites{} } - return t.Tags + return t.ID } - -type GlobalSearch_Search_Nodes_EntitlementPlanSearchResult struct { - EntitlementPlans []*GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans "json:\"entitlementPlans,omitempty\" graphql:\"entitlementPlans\"" +func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetRecipient() string { + if t == nil { + t = &CreateBulkInvite_CreateBulkInvite_Invites{} + } + return t.Recipient } - -func (t *GlobalSearch_Search_Nodes_EntitlementPlanSearchResult) GetEntitlementPlans() []*GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans { +func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetRequestorID() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitlementPlanSearchResult{} + t = &CreateBulkInvite_CreateBulkInvite_Invites{} } - return t.EntitlementPlans + return t.RequestorID } - -type GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetRole() *enums.Role { + if t == nil { + t = &CreateBulkInvite_CreateBulkInvite_Invites{} + } + return &t.Role } - -func (t *GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetID() string { +func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetSendAttempts() int64 { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} + t = &CreateBulkInvite_CreateBulkInvite_Invites{} } - return t.ID + return t.SendAttempts } -func (t *GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetTags() []string { +func (t *CreateBulkInvite_CreateBulkInvite_Invites) GetStatus() *enums.InviteStatus { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} + t = &CreateBulkInvite_CreateBulkInvite_Invites{} } - return t.Tags + return &t.Status } -type GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult struct { - EntitlementPlanFeatures []*GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures "json:\"entitlementPlanFeatures,omitempty\" graphql:\"entitlementPlanFeatures\"" +type CreateBulkInvite_CreateBulkInvite struct { + Invites []*CreateBulkInvite_CreateBulkInvite_Invites "json:\"invites,omitempty\" graphql:\"invites\"" } -func (t *GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult) GetEntitlementPlanFeatures() []*GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures { +func (t *CreateBulkInvite_CreateBulkInvite) GetInvites() []*CreateBulkInvite_CreateBulkInvite_Invites { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult{} + t = &CreateBulkInvite_CreateBulkInvite{} } - return t.EntitlementPlanFeatures + return t.Invites } -type GlobalSearch_Search_Nodes_EntitySearchResult_Entities struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" - ID string "json:\"id\" graphql:\"id\"" - Name *string "json:\"name,omitempty\" graphql:\"name\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type CreateInvite_CreateInvite_Invite_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GlobalSearch_Search_Nodes_EntitySearchResult_Entities) GetDescription() *string { +func (t *CreateInvite_CreateInvite_Invite_Owner) GetID() string { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitySearchResult_Entities{} + t = &CreateInvite_CreateInvite_Invite_Owner{} } - return t.Description + return t.ID } -func (t *GlobalSearch_Search_Nodes_EntitySearchResult_Entities) GetDisplayName() *string { + +type CreateInvite_CreateInvite_Invite struct { + Expires *time.Time "json:\"expires,omitempty\" graphql:\"expires\"" + ID string "json:\"id\" graphql:\"id\"" + Recipient string "json:\"recipient\" graphql:\"recipient\"" + RequestorID *string "json:\"requestorID,omitempty\" graphql:\"requestorID\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + SendAttempts int64 "json:\"sendAttempts\" graphql:\"sendAttempts\"" + Status enums.InviteStatus "json:\"status\" graphql:\"status\"" + Owner *CreateInvite_CreateInvite_Invite_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +} + +func (t *CreateInvite_CreateInvite_Invite) GetExpires() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitySearchResult_Entities{} + t = &CreateInvite_CreateInvite_Invite{} } - return t.DisplayName + return t.Expires } -func (t *GlobalSearch_Search_Nodes_EntitySearchResult_Entities) GetID() string { +func (t *CreateInvite_CreateInvite_Invite) GetID() string { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitySearchResult_Entities{} + t = &CreateInvite_CreateInvite_Invite{} } return t.ID } -func (t *GlobalSearch_Search_Nodes_EntitySearchResult_Entities) GetName() *string { +func (t *CreateInvite_CreateInvite_Invite) GetRecipient() string { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitySearchResult_Entities{} + t = &CreateInvite_CreateInvite_Invite{} } - return t.Name + return t.Recipient } -func (t *GlobalSearch_Search_Nodes_EntitySearchResult_Entities) GetTags() []string { +func (t *CreateInvite_CreateInvite_Invite) GetRequestorID() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitySearchResult_Entities{} + t = &CreateInvite_CreateInvite_Invite{} } - return t.Tags -} - -type GlobalSearch_Search_Nodes_EntitySearchResult struct { - Entities []*GlobalSearch_Search_Nodes_EntitySearchResult_Entities "json:\"entities,omitempty\" graphql:\"entities\"" + return t.RequestorID } - -func (t *GlobalSearch_Search_Nodes_EntitySearchResult) GetEntities() []*GlobalSearch_Search_Nodes_EntitySearchResult_Entities { +func (t *CreateInvite_CreateInvite_Invite) GetRole() *enums.Role { if t == nil { - t = &GlobalSearch_Search_Nodes_EntitySearchResult{} + t = &CreateInvite_CreateInvite_Invite{} } - return t.Entities + return &t.Role } - -type GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *CreateInvite_CreateInvite_Invite) GetSendAttempts() int64 { + if t == nil { + t = &CreateInvite_CreateInvite_Invite{} + } + return t.SendAttempts } - -func (t *GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes) GetID() string { +func (t *CreateInvite_CreateInvite_Invite) GetStatus() *enums.InviteStatus { if t == nil { - t = &GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes{} + t = &CreateInvite_CreateInvite_Invite{} } - return t.ID + return &t.Status } -func (t *GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes) GetTags() []string { +func (t *CreateInvite_CreateInvite_Invite) GetOwner() *CreateInvite_CreateInvite_Invite_Owner { if t == nil { - t = &GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes{} + t = &CreateInvite_CreateInvite_Invite{} } - return t.Tags + return t.Owner } -type GlobalSearch_Search_Nodes_EntityTypeSearchResult struct { - EntityTypes []*GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes "json:\"entityTypes,omitempty\" graphql:\"entityTypes\"" +type CreateInvite_CreateInvite struct { + Invite CreateInvite_CreateInvite_Invite "json:\"invite\" graphql:\"invite\"" } -func (t *GlobalSearch_Search_Nodes_EntityTypeSearchResult) GetEntityTypes() []*GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes { +func (t *CreateInvite_CreateInvite) GetInvite() *CreateInvite_CreateInvite_Invite { if t == nil { - t = &GlobalSearch_Search_Nodes_EntityTypeSearchResult{} + t = &CreateInvite_CreateInvite{} } - return t.EntityTypes + return &t.Invite } -type GlobalSearch_Search_Nodes_EventSearchResult_Events struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type DeleteInvite_DeleteInvite struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GlobalSearch_Search_Nodes_EventSearchResult_Events) GetID() string { - if t == nil { - t = &GlobalSearch_Search_Nodes_EventSearchResult_Events{} - } - return t.ID -} -func (t *GlobalSearch_Search_Nodes_EventSearchResult_Events) GetTags() []string { +func (t *DeleteInvite_DeleteInvite) GetDeletedID() string { if t == nil { - t = &GlobalSearch_Search_Nodes_EventSearchResult_Events{} + t = &DeleteInvite_DeleteInvite{} } - return t.Tags + return t.DeletedID } -type GlobalSearch_Search_Nodes_EventSearchResult struct { - Events []*GlobalSearch_Search_Nodes_EventSearchResult_Events "json:\"events,omitempty\" graphql:\"events\"" +type GetInviteByID_Invite_Owner struct { + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GlobalSearch_Search_Nodes_EventSearchResult) GetEvents() []*GlobalSearch_Search_Nodes_EventSearchResult_Events { +func (t *GetInviteByID_Invite_Owner) GetDisplayName() string { if t == nil { - t = &GlobalSearch_Search_Nodes_EventSearchResult{} + t = &GetInviteByID_Invite_Owner{} } - return t.Events -} - -type GlobalSearch_Search_Nodes_FeatureSearchResult_Features struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + return t.DisplayName } - -func (t *GlobalSearch_Search_Nodes_FeatureSearchResult_Features) GetID() string { +func (t *GetInviteByID_Invite_Owner) GetID() string { if t == nil { - t = &GlobalSearch_Search_Nodes_FeatureSearchResult_Features{} + t = &GetInviteByID_Invite_Owner{} } return t.ID } -func (t *GlobalSearch_Search_Nodes_FeatureSearchResult_Features) GetTags() []string { +func (t *GetInviteByID_Invite_Owner) GetName() string { if t == nil { - t = &GlobalSearch_Search_Nodes_FeatureSearchResult_Features{} + t = &GetInviteByID_Invite_Owner{} } - return t.Tags + return t.Name } -type GlobalSearch_Search_Nodes_FeatureSearchResult struct { - Features []*GlobalSearch_Search_Nodes_FeatureSearchResult_Features "json:\"features,omitempty\" graphql:\"features\"" +type GetInviteByID_Invite struct { + Expires *time.Time "json:\"expires,omitempty\" graphql:\"expires\"" + ID string "json:\"id\" graphql:\"id\"" + Recipient string "json:\"recipient\" graphql:\"recipient\"" + RequestorID *string "json:\"requestorID,omitempty\" graphql:\"requestorID\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + SendAttempts int64 "json:\"sendAttempts\" graphql:\"sendAttempts\"" + Status enums.InviteStatus "json:\"status\" graphql:\"status\"" + Owner *GetInviteByID_Invite_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GlobalSearch_Search_Nodes_FeatureSearchResult) GetFeatures() []*GlobalSearch_Search_Nodes_FeatureSearchResult_Features { +func (t *GetInviteByID_Invite) GetExpires() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes_FeatureSearchResult{} + t = &GetInviteByID_Invite{} } - return t.Features -} - -type GlobalSearch_Search_Nodes_FileSearchResult_Files struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + return t.Expires } - -func (t *GlobalSearch_Search_Nodes_FileSearchResult_Files) GetID() string { +func (t *GetInviteByID_Invite) GetID() string { if t == nil { - t = &GlobalSearch_Search_Nodes_FileSearchResult_Files{} + t = &GetInviteByID_Invite{} } return t.ID } -func (t *GlobalSearch_Search_Nodes_FileSearchResult_Files) GetTags() []string { +func (t *GetInviteByID_Invite) GetRecipient() string { if t == nil { - t = &GlobalSearch_Search_Nodes_FileSearchResult_Files{} + t = &GetInviteByID_Invite{} } - return t.Tags + return t.Recipient } - -type GlobalSearch_Search_Nodes_FileSearchResult struct { - Files []*GlobalSearch_Search_Nodes_FileSearchResult_Files "json:\"files,omitempty\" graphql:\"files\"" +func (t *GetInviteByID_Invite) GetRequestorID() *string { + if t == nil { + t = &GetInviteByID_Invite{} + } + return t.RequestorID } - -func (t *GlobalSearch_Search_Nodes_FileSearchResult) GetFiles() []*GlobalSearch_Search_Nodes_FileSearchResult_Files { +func (t *GetInviteByID_Invite) GetRole() *enums.Role { if t == nil { - t = &GlobalSearch_Search_Nodes_FileSearchResult{} + t = &GetInviteByID_Invite{} } - return t.Files + return &t.Role } - -type GlobalSearch_Search_Nodes_GroupSearchResult_Groups struct { - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *GetInviteByID_Invite) GetSendAttempts() int64 { + if t == nil { + t = &GetInviteByID_Invite{} + } + return t.SendAttempts } - -func (t *GlobalSearch_Search_Nodes_GroupSearchResult_Groups) GetDisplayName() string { +func (t *GetInviteByID_Invite) GetStatus() *enums.InviteStatus { if t == nil { - t = &GlobalSearch_Search_Nodes_GroupSearchResult_Groups{} + t = &GetInviteByID_Invite{} } - return t.DisplayName + return &t.Status } -func (t *GlobalSearch_Search_Nodes_GroupSearchResult_Groups) GetID() string { +func (t *GetInviteByID_Invite) GetOwner() *GetInviteByID_Invite_Owner { if t == nil { - t = &GlobalSearch_Search_Nodes_GroupSearchResult_Groups{} + t = &GetInviteByID_Invite{} } - return t.ID + return t.Owner } -func (t *GlobalSearch_Search_Nodes_GroupSearchResult_Groups) GetName() string { +func (t *GetInviteByID_Invite) GetCreatedAt() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes_GroupSearchResult_Groups{} + t = &GetInviteByID_Invite{} } - return t.Name + return t.CreatedAt } -func (t *GlobalSearch_Search_Nodes_GroupSearchResult_Groups) GetTags() []string { +func (t *GetInviteByID_Invite) GetCreatedBy() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_GroupSearchResult_Groups{} + t = &GetInviteByID_Invite{} } - return t.Tags + return t.CreatedBy } - -type GlobalSearch_Search_Nodes_GroupSearchResult struct { - Groups []*GlobalSearch_Search_Nodes_GroupSearchResult_Groups "json:\"groups,omitempty\" graphql:\"groups\"" +func (t *GetInviteByID_Invite) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetInviteByID_Invite{} + } + return t.UpdatedAt } - -func (t *GlobalSearch_Search_Nodes_GroupSearchResult) GetGroups() []*GlobalSearch_Search_Nodes_GroupSearchResult_Groups { +func (t *GetInviteByID_Invite) GetUpdatedBy() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_GroupSearchResult{} + t = &GetInviteByID_Invite{} } - return t.Groups + return t.UpdatedBy } -type GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type GetAllInvites_Invites_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Recipient string "json:\"recipient\" graphql:\"recipient\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + Status enums.InviteStatus "json:\"status\" graphql:\"status\"" } -func (t *GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings) GetID() string { +func (t *GetAllInvites_Invites_Edges_Node) GetID() string { if t == nil { - t = &GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings{} + t = &GetAllInvites_Invites_Edges_Node{} } return t.ID } -func (t *GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings) GetTags() []string { +func (t *GetAllInvites_Invites_Edges_Node) GetRecipient() string { if t == nil { - t = &GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings{} + t = &GetAllInvites_Invites_Edges_Node{} } - return t.Tags + return t.Recipient } - -type GlobalSearch_Search_Nodes_GroupSettingSearchResult struct { - GroupSettings []*GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings "json:\"groupSettings,omitempty\" graphql:\"groupSettings\"" +func (t *GetAllInvites_Invites_Edges_Node) GetRole() *enums.Role { + if t == nil { + t = &GetAllInvites_Invites_Edges_Node{} + } + return &t.Role } - -func (t *GlobalSearch_Search_Nodes_GroupSettingSearchResult) GetGroupSettings() []*GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings { +func (t *GetAllInvites_Invites_Edges_Node) GetStatus() *enums.InviteStatus { if t == nil { - t = &GlobalSearch_Search_Nodes_GroupSettingSearchResult{} + t = &GetAllInvites_Invites_Edges_Node{} } - return t.GroupSettings + return &t.Status } -type GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type GetAllInvites_Invites_Edges struct { + Node *GetAllInvites_Invites_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations) GetID() string { +func (t *GetAllInvites_Invites_Edges) GetNode() *GetAllInvites_Invites_Edges_Node { if t == nil { - t = &GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations{} + t = &GetAllInvites_Invites_Edges{} } - return t.ID + return t.Node } -func (t *GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations) GetTags() []string { + +type GetAllInvites_Invites struct { + Edges []*GetAllInvites_Invites_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllInvites_Invites) GetEdges() []*GetAllInvites_Invites_Edges { if t == nil { - t = &GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations{} + t = &GetAllInvites_Invites{} } - return t.Tags + return t.Edges } -type GlobalSearch_Search_Nodes_IntegrationSearchResult struct { - Integrations []*GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" +type InvitesByOrgID_Invites_Edges_Node_Owner_Invites struct { + Recipient string "json:\"recipient\" graphql:\"recipient\"" + RequestorID *string "json:\"requestorID,omitempty\" graphql:\"requestorID\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + SendAttempts int64 "json:\"sendAttempts\" graphql:\"sendAttempts\"" + Status enums.InviteStatus "json:\"status\" graphql:\"status\"" } -func (t *GlobalSearch_Search_Nodes_IntegrationSearchResult) GetIntegrations() []*GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations { +func (t *InvitesByOrgID_Invites_Edges_Node_Owner_Invites) GetRecipient() string { if t == nil { - t = &GlobalSearch_Search_Nodes_IntegrationSearchResult{} + t = &InvitesByOrgID_Invites_Edges_Node_Owner_Invites{} } - return t.Integrations + return t.Recipient +} +func (t *InvitesByOrgID_Invites_Edges_Node_Owner_Invites) GetRequestorID() *string { + if t == nil { + t = &InvitesByOrgID_Invites_Edges_Node_Owner_Invites{} + } + return t.RequestorID +} +func (t *InvitesByOrgID_Invites_Edges_Node_Owner_Invites) GetRole() *enums.Role { + if t == nil { + t = &InvitesByOrgID_Invites_Edges_Node_Owner_Invites{} + } + return &t.Role +} +func (t *InvitesByOrgID_Invites_Edges_Node_Owner_Invites) GetSendAttempts() int64 { + if t == nil { + t = &InvitesByOrgID_Invites_Edges_Node_Owner_Invites{} + } + return t.SendAttempts +} +func (t *InvitesByOrgID_Invites_Edges_Node_Owner_Invites) GetStatus() *enums.InviteStatus { + if t == nil { + t = &InvitesByOrgID_Invites_Edges_Node_Owner_Invites{} + } + return &t.Status } -type GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type InvitesByOrgID_Invites_Edges_Node_Owner struct { + ID string "json:\"id\" graphql:\"id\"" + Invites []*InvitesByOrgID_Invites_Edges_Node_Owner_Invites "json:\"invites,omitempty\" graphql:\"invites\"" } -func (t *GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders) GetID() string { +func (t *InvitesByOrgID_Invites_Edges_Node_Owner) GetID() string { if t == nil { - t = &GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &InvitesByOrgID_Invites_Edges_Node_Owner{} } return t.ID } -func (t *GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders) GetTags() []string { +func (t *InvitesByOrgID_Invites_Edges_Node_Owner) GetInvites() []*InvitesByOrgID_Invites_Edges_Node_Owner_Invites { if t == nil { - t = &GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders{} + t = &InvitesByOrgID_Invites_Edges_Node_Owner{} } - return t.Tags + return t.Invites } -type GlobalSearch_Search_Nodes_OauthProviderSearchResult struct { - OauthProviders []*GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders "json:\"oauthProviders,omitempty\" graphql:\"oauthProviders\"" +type InvitesByOrgID_Invites_Edges_Node struct { + Owner *InvitesByOrgID_Invites_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" } -func (t *GlobalSearch_Search_Nodes_OauthProviderSearchResult) GetOauthProviders() []*GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders { +func (t *InvitesByOrgID_Invites_Edges_Node) GetOwner() *InvitesByOrgID_Invites_Edges_Node_Owner { if t == nil { - t = &GlobalSearch_Search_Nodes_OauthProviderSearchResult{} + t = &InvitesByOrgID_Invites_Edges_Node{} } - return t.OauthProviders + return t.Owner } -type GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type InvitesByOrgID_Invites_Edges struct { + Node *InvitesByOrgID_Invites_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetID() string { +func (t *InvitesByOrgID_Invites_Edges) GetNode() *InvitesByOrgID_Invites_Edges_Node { if t == nil { - t = &GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &InvitesByOrgID_Invites_Edges{} } - return t.ID + return t.Node } -func (t *GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetTags() []string { + +type InvitesByOrgID_Invites struct { + Edges []*InvitesByOrgID_Invites_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *InvitesByOrgID_Invites) GetEdges() []*InvitesByOrgID_Invites_Edges { if t == nil { - t = &GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + t = &InvitesByOrgID_Invites{} } - return t.Tags + return t.Edges } -type GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult struct { - OhAuthTooTokens []*GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens "json:\"ohAuthTooTokens,omitempty\" graphql:\"ohAuthTooTokens\"" +type CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult) GetOhAuthTooTokens() []*GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens { +func (t *CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives) GetCreatedAt() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult{} + t = &CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives{} } - return t.OhAuthTooTokens + return t.CreatedAt } - -type GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations struct { - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives) GetCreatedBy() *string { + if t == nil { + t = &CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives{} + } + return t.CreatedBy } - -func (t *GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations) GetDisplayName() string { +func (t *CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives) GetDescription() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations{} + t = &CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives{} } - return t.DisplayName + return t.Description } -func (t *GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations) GetID() string { +func (t *CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives) GetDetails() map[string]interface{} { if t == nil { - t = &GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations{} + t = &CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives{} + } + return t.Details +} +func (t *CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives) GetID() string { + if t == nil { + t = &CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives{} } return t.ID } -func (t *GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations) GetName() string { +func (t *CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives) GetName() string { if t == nil { - t = &GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations{} + t = &CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives{} } return t.Name } -func (t *GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations) GetTags() []string { +func (t *CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives) GetSatisfies() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations{} + t = &CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives{} } - return t.Tags + return t.Satisfies } - -type GlobalSearch_Search_Nodes_OrganizationSearchResult struct { - Organizations []*GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" -} - -func (t *GlobalSearch_Search_Nodes_OrganizationSearchResult) GetOrganizations() []*GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations { +func (t *CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives) GetTags() []string { if t == nil { - t = &GlobalSearch_Search_Nodes_OrganizationSearchResult{} + t = &CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives{} } - return t.Organizations -} - -type GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + return t.Tags } - -func (t *GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetID() string { +func (t *CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives) GetUpdatedAt() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + t = &CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives{} } - return t.ID + return t.UpdatedAt } -func (t *GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetTags() []string { +func (t *CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives) GetUpdatedBy() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + t = &CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives{} } - return t.Tags + return t.UpdatedBy } -type GlobalSearch_Search_Nodes_OrganizationSettingSearchResult struct { - OrganizationSettings []*GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings "json:\"organizationSettings,omitempty\" graphql:\"organizationSettings\"" +type CreateBulkCSVNarrative_CreateBulkCSVNarrative struct { + Narratives []*CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives "json:\"narratives,omitempty\" graphql:\"narratives\"" } -func (t *GlobalSearch_Search_Nodes_OrganizationSettingSearchResult) GetOrganizationSettings() []*GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings { +func (t *CreateBulkCSVNarrative_CreateBulkCSVNarrative) GetNarratives() []*CreateBulkCSVNarrative_CreateBulkCSVNarrative_Narratives { if t == nil { - t = &GlobalSearch_Search_Nodes_OrganizationSettingSearchResult{} + t = &CreateBulkCSVNarrative_CreateBulkCSVNarrative{} } - return t.OrganizationSettings + return t.Narratives } -type GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type CreateBulkNarrative_CreateBulkNarrative_Narratives struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetID() string { +func (t *CreateBulkNarrative_CreateBulkNarrative_Narratives) GetCreatedAt() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} + t = &CreateBulkNarrative_CreateBulkNarrative_Narratives{} } - return t.ID + return t.CreatedAt } -func (t *GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetTags() []string { +func (t *CreateBulkNarrative_CreateBulkNarrative_Narratives) GetCreatedBy() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} + t = &CreateBulkNarrative_CreateBulkNarrative_Narratives{} } - return t.Tags + return t.CreatedBy } - -type GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult struct { - PersonalAccessTokens []*GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens "json:\"personalAccessTokens,omitempty\" graphql:\"personalAccessTokens\"" +func (t *CreateBulkNarrative_CreateBulkNarrative_Narratives) GetDescription() *string { + if t == nil { + t = &CreateBulkNarrative_CreateBulkNarrative_Narratives{} + } + return t.Description } - -func (t *GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult) GetPersonalAccessTokens() []*GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens { +func (t *CreateBulkNarrative_CreateBulkNarrative_Narratives) GetDetails() map[string]interface{} { if t == nil { - t = &GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult{} + t = &CreateBulkNarrative_CreateBulkNarrative_Narratives{} } - return t.PersonalAccessTokens + return t.Details } - -type GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers struct { - Email string "json:\"email\" graphql:\"email\"" - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *CreateBulkNarrative_CreateBulkNarrative_Narratives) GetID() string { + if t == nil { + t = &CreateBulkNarrative_CreateBulkNarrative_Narratives{} + } + return t.ID } - -func (t *GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers) GetEmail() string { +func (t *CreateBulkNarrative_CreateBulkNarrative_Narratives) GetName() string { if t == nil { - t = &GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers{} + t = &CreateBulkNarrative_CreateBulkNarrative_Narratives{} } - return t.Email + return t.Name } -func (t *GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers) GetID() string { +func (t *CreateBulkNarrative_CreateBulkNarrative_Narratives) GetSatisfies() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers{} + t = &CreateBulkNarrative_CreateBulkNarrative_Narratives{} } - return t.ID + return t.Satisfies } -func (t *GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers) GetTags() []string { +func (t *CreateBulkNarrative_CreateBulkNarrative_Narratives) GetTags() []string { if t == nil { - t = &GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers{} + t = &CreateBulkNarrative_CreateBulkNarrative_Narratives{} } return t.Tags } +func (t *CreateBulkNarrative_CreateBulkNarrative_Narratives) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkNarrative_CreateBulkNarrative_Narratives{} + } + return t.UpdatedAt +} +func (t *CreateBulkNarrative_CreateBulkNarrative_Narratives) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkNarrative_CreateBulkNarrative_Narratives{} + } + return t.UpdatedBy +} -type GlobalSearch_Search_Nodes_SubscriberSearchResult struct { - Subscribers []*GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers "json:\"subscribers,omitempty\" graphql:\"subscribers\"" +type CreateBulkNarrative_CreateBulkNarrative struct { + Narratives []*CreateBulkNarrative_CreateBulkNarrative_Narratives "json:\"narratives,omitempty\" graphql:\"narratives\"" } -func (t *GlobalSearch_Search_Nodes_SubscriberSearchResult) GetSubscribers() []*GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers { +func (t *CreateBulkNarrative_CreateBulkNarrative) GetNarratives() []*CreateBulkNarrative_CreateBulkNarrative_Narratives { if t == nil { - t = &GlobalSearch_Search_Nodes_SubscriberSearchResult{} + t = &CreateBulkNarrative_CreateBulkNarrative{} } - return t.Subscribers + return t.Narratives } -type GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type CreateNarrative_CreateNarrative_Narrative struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings) GetID() string { +func (t *CreateNarrative_CreateNarrative_Narrative) GetCreatedAt() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings{} + t = &CreateNarrative_CreateNarrative_Narrative{} } - return t.ID + return t.CreatedAt } -func (t *GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings) GetTags() []string { +func (t *CreateNarrative_CreateNarrative_Narrative) GetCreatedBy() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings{} + t = &CreateNarrative_CreateNarrative_Narrative{} } - return t.Tags -} - -type GlobalSearch_Search_Nodes_TFASettingSearchResult struct { - TFASettings []*GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings "json:\"tFASettings,omitempty\" graphql:\"tFASettings\"" + return t.CreatedBy } - -func (t *GlobalSearch_Search_Nodes_TFASettingSearchResult) GetTFASettings() []*GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings { +func (t *CreateNarrative_CreateNarrative_Narrative) GetDescription() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_TFASettingSearchResult{} + t = &CreateNarrative_CreateNarrative_Narrative{} } - return t.TFASettings + return t.Description } - -type GlobalSearch_Search_Nodes_TemplateSearchResult_Templates struct { - ID string "json:\"id\" graphql:\"id\"" - Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" - Name string "json:\"name\" graphql:\"name\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *CreateNarrative_CreateNarrative_Narrative) GetDetails() map[string]interface{} { + if t == nil { + t = &CreateNarrative_CreateNarrative_Narrative{} + } + return t.Details } - -func (t *GlobalSearch_Search_Nodes_TemplateSearchResult_Templates) GetID() string { +func (t *CreateNarrative_CreateNarrative_Narrative) GetID() string { if t == nil { - t = &GlobalSearch_Search_Nodes_TemplateSearchResult_Templates{} + t = &CreateNarrative_CreateNarrative_Narrative{} } return t.ID } -func (t *GlobalSearch_Search_Nodes_TemplateSearchResult_Templates) GetJsonconfig() *json.RawMessage { +func (t *CreateNarrative_CreateNarrative_Narrative) GetName() string { if t == nil { - t = &GlobalSearch_Search_Nodes_TemplateSearchResult_Templates{} + t = &CreateNarrative_CreateNarrative_Narrative{} } - return &t.Jsonconfig + return t.Name } -func (t *GlobalSearch_Search_Nodes_TemplateSearchResult_Templates) GetName() string { +func (t *CreateNarrative_CreateNarrative_Narrative) GetSatisfies() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_TemplateSearchResult_Templates{} + t = &CreateNarrative_CreateNarrative_Narrative{} } - return t.Name + return t.Satisfies } -func (t *GlobalSearch_Search_Nodes_TemplateSearchResult_Templates) GetTags() []string { +func (t *CreateNarrative_CreateNarrative_Narrative) GetTags() []string { if t == nil { - t = &GlobalSearch_Search_Nodes_TemplateSearchResult_Templates{} + t = &CreateNarrative_CreateNarrative_Narrative{} } return t.Tags } - -type GlobalSearch_Search_Nodes_TemplateSearchResult struct { - Templates []*GlobalSearch_Search_Nodes_TemplateSearchResult_Templates "json:\"templates,omitempty\" graphql:\"templates\"" +func (t *CreateNarrative_CreateNarrative_Narrative) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateNarrative_CreateNarrative_Narrative{} + } + return t.UpdatedAt } - -func (t *GlobalSearch_Search_Nodes_TemplateSearchResult) GetTemplates() []*GlobalSearch_Search_Nodes_TemplateSearchResult_Templates { +func (t *CreateNarrative_CreateNarrative_Narrative) GetUpdatedBy() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_TemplateSearchResult{} + t = &CreateNarrative_CreateNarrative_Narrative{} } - return t.Templates + return t.UpdatedBy } -type GlobalSearch_Search_Nodes_UserSearchResult_Users struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type CreateNarrative_CreateNarrative struct { + Narrative CreateNarrative_CreateNarrative_Narrative "json:\"narrative\" graphql:\"narrative\"" } -func (t *GlobalSearch_Search_Nodes_UserSearchResult_Users) GetID() string { - if t == nil { - t = &GlobalSearch_Search_Nodes_UserSearchResult_Users{} - } - return t.ID -} -func (t *GlobalSearch_Search_Nodes_UserSearchResult_Users) GetTags() []string { +func (t *CreateNarrative_CreateNarrative) GetNarrative() *CreateNarrative_CreateNarrative_Narrative { if t == nil { - t = &GlobalSearch_Search_Nodes_UserSearchResult_Users{} + t = &CreateNarrative_CreateNarrative{} } - return t.Tags + return &t.Narrative } -type GlobalSearch_Search_Nodes_UserSearchResult struct { - Users []*GlobalSearch_Search_Nodes_UserSearchResult_Users "json:\"users,omitempty\" graphql:\"users\"" +type DeleteNarrative_DeleteNarrative struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GlobalSearch_Search_Nodes_UserSearchResult) GetUsers() []*GlobalSearch_Search_Nodes_UserSearchResult_Users { +func (t *DeleteNarrative_DeleteNarrative) GetDeletedID() string { if t == nil { - t = &GlobalSearch_Search_Nodes_UserSearchResult{} + t = &DeleteNarrative_DeleteNarrative{} } - return t.Users + return t.DeletedID } -type GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +type GetAllNarratives_Narratives_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings) GetID() string { +func (t *GetAllNarratives_Narratives_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings{} + t = &GetAllNarratives_Narratives_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings) GetTags() []string { +func (t *GetAllNarratives_Narratives_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings{} + t = &GetAllNarratives_Narratives_Edges_Node{} } - return t.Tags -} - -type GlobalSearch_Search_Nodes_UserSettingSearchResult struct { - UserSettings []*GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings "json:\"userSettings,omitempty\" graphql:\"userSettings\"" + return t.CreatedBy } - -func (t *GlobalSearch_Search_Nodes_UserSettingSearchResult) GetUserSettings() []*GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings { +func (t *GetAllNarratives_Narratives_Edges_Node) GetDescription() *string { if t == nil { - t = &GlobalSearch_Search_Nodes_UserSettingSearchResult{} + t = &GetAllNarratives_Narratives_Edges_Node{} } - return t.UserSettings + return t.Description } - -type GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks struct { - ID string "json:\"id\" graphql:\"id\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +func (t *GetAllNarratives_Narratives_Edges_Node) GetDetails() map[string]interface{} { + if t == nil { + t = &GetAllNarratives_Narratives_Edges_Node{} + } + return t.Details } - -func (t *GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks) GetID() string { +func (t *GetAllNarratives_Narratives_Edges_Node) GetID() string { if t == nil { - t = &GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks{} + t = &GetAllNarratives_Narratives_Edges_Node{} } return t.ID } -func (t *GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks) GetTags() []string { +func (t *GetAllNarratives_Narratives_Edges_Node) GetName() string { if t == nil { - t = &GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks{} + t = &GetAllNarratives_Narratives_Edges_Node{} + } + return t.Name +} +func (t *GetAllNarratives_Narratives_Edges_Node) GetSatisfies() *string { + if t == nil { + t = &GetAllNarratives_Narratives_Edges_Node{} + } + return t.Satisfies +} +func (t *GetAllNarratives_Narratives_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllNarratives_Narratives_Edges_Node{} } return t.Tags } +func (t *GetAllNarratives_Narratives_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllNarratives_Narratives_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllNarratives_Narratives_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllNarratives_Narratives_Edges_Node{} + } + return t.UpdatedBy +} -type GlobalSearch_Search_Nodes_WebhookSearchResult struct { - Webhooks []*GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" +type GetAllNarratives_Narratives_Edges struct { + Node *GetAllNarratives_Narratives_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GlobalSearch_Search_Nodes_WebhookSearchResult) GetWebhooks() []*GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks { +func (t *GetAllNarratives_Narratives_Edges) GetNode() *GetAllNarratives_Narratives_Edges_Node { if t == nil { - t = &GlobalSearch_Search_Nodes_WebhookSearchResult{} + t = &GetAllNarratives_Narratives_Edges{} } - return t.Webhooks + return t.Node } -type GlobalSearch_Search_Nodes struct { - APITokenSearchResult GlobalSearch_Search_Nodes_APITokenSearchResult "graphql:\"... on APITokenSearchResult\"" - ContactSearchResult GlobalSearch_Search_Nodes_ContactSearchResult "graphql:\"... on ContactSearchResult\"" - DocumentDataSearchResult GlobalSearch_Search_Nodes_DocumentDataSearchResult "graphql:\"... on DocumentDataSearchResult\"" - EntitlementSearchResult GlobalSearch_Search_Nodes_EntitlementSearchResult "graphql:\"... on EntitlementSearchResult\"" - EntitlementPlanSearchResult GlobalSearch_Search_Nodes_EntitlementPlanSearchResult "graphql:\"... on EntitlementPlanSearchResult\"" - EntitlementPlanFeatureSearchResult GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult "graphql:\"... on EntitlementPlanFeatureSearchResult\"" - EntitySearchResult GlobalSearch_Search_Nodes_EntitySearchResult "graphql:\"... on EntitySearchResult\"" - EntityTypeSearchResult GlobalSearch_Search_Nodes_EntityTypeSearchResult "graphql:\"... on EntityTypeSearchResult\"" - EventSearchResult GlobalSearch_Search_Nodes_EventSearchResult "graphql:\"... on EventSearchResult\"" - FeatureSearchResult GlobalSearch_Search_Nodes_FeatureSearchResult "graphql:\"... on FeatureSearchResult\"" - FileSearchResult GlobalSearch_Search_Nodes_FileSearchResult "graphql:\"... on FileSearchResult\"" - GroupSearchResult GlobalSearch_Search_Nodes_GroupSearchResult "graphql:\"... on GroupSearchResult\"" - GroupSettingSearchResult GlobalSearch_Search_Nodes_GroupSettingSearchResult "graphql:\"... on GroupSettingSearchResult\"" - IntegrationSearchResult GlobalSearch_Search_Nodes_IntegrationSearchResult "graphql:\"... on IntegrationSearchResult\"" - OauthProviderSearchResult GlobalSearch_Search_Nodes_OauthProviderSearchResult "graphql:\"... on OauthProviderSearchResult\"" - OhAuthTooTokenSearchResult GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult "graphql:\"... on OhAuthTooTokenSearchResult\"" - OrganizationSearchResult GlobalSearch_Search_Nodes_OrganizationSearchResult "graphql:\"... on OrganizationSearchResult\"" - OrganizationSettingSearchResult GlobalSearch_Search_Nodes_OrganizationSettingSearchResult "graphql:\"... on OrganizationSettingSearchResult\"" - PersonalAccessTokenSearchResult GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult "graphql:\"... on PersonalAccessTokenSearchResult\"" - SubscriberSearchResult GlobalSearch_Search_Nodes_SubscriberSearchResult "graphql:\"... on SubscriberSearchResult\"" - TFASettingSearchResult GlobalSearch_Search_Nodes_TFASettingSearchResult "graphql:\"... on TFASettingSearchResult\"" - TemplateSearchResult GlobalSearch_Search_Nodes_TemplateSearchResult "graphql:\"... on TemplateSearchResult\"" - UserSearchResult GlobalSearch_Search_Nodes_UserSearchResult "graphql:\"... on UserSearchResult\"" - UserSettingSearchResult GlobalSearch_Search_Nodes_UserSettingSearchResult "graphql:\"... on UserSettingSearchResult\"" - WebhookSearchResult GlobalSearch_Search_Nodes_WebhookSearchResult "graphql:\"... on WebhookSearchResult\"" +type GetAllNarratives_Narratives struct { + Edges []*GetAllNarratives_Narratives_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GlobalSearch_Search_Nodes) GetAPITokenSearchResult() *GlobalSearch_Search_Nodes_APITokenSearchResult { +func (t *GetAllNarratives_Narratives) GetEdges() []*GetAllNarratives_Narratives_Edges { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetAllNarratives_Narratives{} } - return &t.APITokenSearchResult + return t.Edges } -func (t *GlobalSearch_Search_Nodes) GetContactSearchResult() *GlobalSearch_Search_Nodes_ContactSearchResult { + +type GetNarrativeByID_Narrative struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetNarrativeByID_Narrative) GetCreatedAt() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarrativeByID_Narrative{} } - return &t.ContactSearchResult + return t.CreatedAt } -func (t *GlobalSearch_Search_Nodes) GetDocumentDataSearchResult() *GlobalSearch_Search_Nodes_DocumentDataSearchResult { +func (t *GetNarrativeByID_Narrative) GetCreatedBy() *string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarrativeByID_Narrative{} } - return &t.DocumentDataSearchResult + return t.CreatedBy } -func (t *GlobalSearch_Search_Nodes) GetEntitlementSearchResult() *GlobalSearch_Search_Nodes_EntitlementSearchResult { +func (t *GetNarrativeByID_Narrative) GetDescription() *string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarrativeByID_Narrative{} } - return &t.EntitlementSearchResult + return t.Description } -func (t *GlobalSearch_Search_Nodes) GetEntitlementPlanSearchResult() *GlobalSearch_Search_Nodes_EntitlementPlanSearchResult { +func (t *GetNarrativeByID_Narrative) GetDetails() map[string]interface{} { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarrativeByID_Narrative{} } - return &t.EntitlementPlanSearchResult + return t.Details } -func (t *GlobalSearch_Search_Nodes) GetEntitlementPlanFeatureSearchResult() *GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult { +func (t *GetNarrativeByID_Narrative) GetID() string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarrativeByID_Narrative{} } - return &t.EntitlementPlanFeatureSearchResult + return t.ID } -func (t *GlobalSearch_Search_Nodes) GetEntitySearchResult() *GlobalSearch_Search_Nodes_EntitySearchResult { +func (t *GetNarrativeByID_Narrative) GetName() string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarrativeByID_Narrative{} } - return &t.EntitySearchResult + return t.Name } -func (t *GlobalSearch_Search_Nodes) GetEntityTypeSearchResult() *GlobalSearch_Search_Nodes_EntityTypeSearchResult { +func (t *GetNarrativeByID_Narrative) GetSatisfies() *string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarrativeByID_Narrative{} } - return &t.EntityTypeSearchResult + return t.Satisfies } -func (t *GlobalSearch_Search_Nodes) GetEventSearchResult() *GlobalSearch_Search_Nodes_EventSearchResult { +func (t *GetNarrativeByID_Narrative) GetTags() []string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarrativeByID_Narrative{} } - return &t.EventSearchResult + return t.Tags } -func (t *GlobalSearch_Search_Nodes) GetFeatureSearchResult() *GlobalSearch_Search_Nodes_FeatureSearchResult { +func (t *GetNarrativeByID_Narrative) GetUpdatedAt() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarrativeByID_Narrative{} } - return &t.FeatureSearchResult + return t.UpdatedAt } -func (t *GlobalSearch_Search_Nodes) GetFileSearchResult() *GlobalSearch_Search_Nodes_FileSearchResult { +func (t *GetNarrativeByID_Narrative) GetUpdatedBy() *string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarrativeByID_Narrative{} } - return &t.FileSearchResult + return t.UpdatedBy } -func (t *GlobalSearch_Search_Nodes) GetGroupSearchResult() *GlobalSearch_Search_Nodes_GroupSearchResult { + +type GetNarratives_Narratives_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetNarratives_Narratives_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarratives_Narratives_Edges_Node{} } - return &t.GroupSearchResult + return t.CreatedAt } -func (t *GlobalSearch_Search_Nodes) GetGroupSettingSearchResult() *GlobalSearch_Search_Nodes_GroupSettingSearchResult { +func (t *GetNarratives_Narratives_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarratives_Narratives_Edges_Node{} } - return &t.GroupSettingSearchResult + return t.CreatedBy } -func (t *GlobalSearch_Search_Nodes) GetIntegrationSearchResult() *GlobalSearch_Search_Nodes_IntegrationSearchResult { +func (t *GetNarratives_Narratives_Edges_Node) GetDescription() *string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarratives_Narratives_Edges_Node{} } - return &t.IntegrationSearchResult + return t.Description } -func (t *GlobalSearch_Search_Nodes) GetOauthProviderSearchResult() *GlobalSearch_Search_Nodes_OauthProviderSearchResult { +func (t *GetNarratives_Narratives_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarratives_Narratives_Edges_Node{} } - return &t.OauthProviderSearchResult + return t.Details } -func (t *GlobalSearch_Search_Nodes) GetOhAuthTooTokenSearchResult() *GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult { +func (t *GetNarratives_Narratives_Edges_Node) GetID() string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarratives_Narratives_Edges_Node{} } - return &t.OhAuthTooTokenSearchResult + return t.ID } -func (t *GlobalSearch_Search_Nodes) GetOrganizationSearchResult() *GlobalSearch_Search_Nodes_OrganizationSearchResult { +func (t *GetNarratives_Narratives_Edges_Node) GetName() string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarratives_Narratives_Edges_Node{} } - return &t.OrganizationSearchResult + return t.Name } -func (t *GlobalSearch_Search_Nodes) GetOrganizationSettingSearchResult() *GlobalSearch_Search_Nodes_OrganizationSettingSearchResult { +func (t *GetNarratives_Narratives_Edges_Node) GetSatisfies() *string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarratives_Narratives_Edges_Node{} } - return &t.OrganizationSettingSearchResult + return t.Satisfies } -func (t *GlobalSearch_Search_Nodes) GetPersonalAccessTokenSearchResult() *GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult { +func (t *GetNarratives_Narratives_Edges_Node) GetTags() []string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarratives_Narratives_Edges_Node{} } - return &t.PersonalAccessTokenSearchResult + return t.Tags } -func (t *GlobalSearch_Search_Nodes) GetSubscriberSearchResult() *GlobalSearch_Search_Nodes_SubscriberSearchResult { +func (t *GetNarratives_Narratives_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarratives_Narratives_Edges_Node{} } - return &t.SubscriberSearchResult + return t.UpdatedAt } -func (t *GlobalSearch_Search_Nodes) GetTFASettingSearchResult() *GlobalSearch_Search_Nodes_TFASettingSearchResult { +func (t *GetNarratives_Narratives_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarratives_Narratives_Edges_Node{} } - return &t.TFASettingSearchResult -} -func (t *GlobalSearch_Search_Nodes) GetTemplateSearchResult() *GlobalSearch_Search_Nodes_TemplateSearchResult { - if t == nil { - t = &GlobalSearch_Search_Nodes{} - } - return &t.TemplateSearchResult -} -func (t *GlobalSearch_Search_Nodes) GetUserSearchResult() *GlobalSearch_Search_Nodes_UserSearchResult { - if t == nil { - t = &GlobalSearch_Search_Nodes{} - } - return &t.UserSearchResult + return t.UpdatedBy } -func (t *GlobalSearch_Search_Nodes) GetUserSettingSearchResult() *GlobalSearch_Search_Nodes_UserSettingSearchResult { - if t == nil { - t = &GlobalSearch_Search_Nodes{} - } - return &t.UserSettingSearchResult + +type GetNarratives_Narratives_Edges struct { + Node *GetNarratives_Narratives_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GlobalSearch_Search_Nodes) GetWebhookSearchResult() *GlobalSearch_Search_Nodes_WebhookSearchResult { + +func (t *GetNarratives_Narratives_Edges) GetNode() *GetNarratives_Narratives_Edges_Node { if t == nil { - t = &GlobalSearch_Search_Nodes{} + t = &GetNarratives_Narratives_Edges{} } - return &t.WebhookSearchResult + return t.Node } -type GlobalSearch_Search struct { - Nodes []*GlobalSearch_Search_Nodes "json:\"nodes\" graphql:\"nodes\"" +type GetNarratives_Narratives struct { + Edges []*GetNarratives_Narratives_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GlobalSearch_Search) GetNodes() []*GlobalSearch_Search_Nodes { +func (t *GetNarratives_Narratives) GetEdges() []*GetNarratives_Narratives_Edges { if t == nil { - t = &GlobalSearch_Search{} + t = &GetNarratives_Narratives{} } - return t.Nodes + return t.Edges } -type CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers struct { - Active bool "json:\"active\" graphql:\"active\"" - Email string "json:\"email\" graphql:\"email\"" - ID string "json:\"id\" graphql:\"id\"" - VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" +type UpdateNarrative_UpdateNarrative_Narrative struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers) GetActive() bool { +func (t *UpdateNarrative_UpdateNarrative_Narrative) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers{} + t = &UpdateNarrative_UpdateNarrative_Narrative{} } - return t.Active + return t.CreatedAt } -func (t *CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers) GetEmail() string { +func (t *UpdateNarrative_UpdateNarrative_Narrative) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers{} + t = &UpdateNarrative_UpdateNarrative_Narrative{} } - return t.Email + return t.CreatedBy } -func (t *CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers) GetID() string { +func (t *UpdateNarrative_UpdateNarrative_Narrative) GetDescription() *string { if t == nil { - t = &CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers{} + t = &UpdateNarrative_UpdateNarrative_Narrative{} } - return t.ID + return t.Description } -func (t *CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers) GetVerifiedEmail() bool { +func (t *UpdateNarrative_UpdateNarrative_Narrative) GetDetails() map[string]interface{} { if t == nil { - t = &CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers{} + t = &UpdateNarrative_UpdateNarrative_Narrative{} } - return t.VerifiedEmail -} - -type CreateBulkCSVSubscriber_CreateBulkCSVSubscriber struct { - Subscribers []*CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers "json:\"subscribers,omitempty\" graphql:\"subscribers\"" + return t.Details } - -func (t *CreateBulkCSVSubscriber_CreateBulkCSVSubscriber) GetSubscribers() []*CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers { +func (t *UpdateNarrative_UpdateNarrative_Narrative) GetID() string { if t == nil { - t = &CreateBulkCSVSubscriber_CreateBulkCSVSubscriber{} + t = &UpdateNarrative_UpdateNarrative_Narrative{} } - return t.Subscribers + return t.ID } - -type CreateBulkSubscriber_CreateBulkSubscriber_Subscribers struct { - Active bool "json:\"active\" graphql:\"active\"" - Email string "json:\"email\" graphql:\"email\"" - ID string "json:\"id\" graphql:\"id\"" - VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" +func (t *UpdateNarrative_UpdateNarrative_Narrative) GetName() string { + if t == nil { + t = &UpdateNarrative_UpdateNarrative_Narrative{} + } + return t.Name } - -func (t *CreateBulkSubscriber_CreateBulkSubscriber_Subscribers) GetActive() bool { +func (t *UpdateNarrative_UpdateNarrative_Narrative) GetSatisfies() *string { if t == nil { - t = &CreateBulkSubscriber_CreateBulkSubscriber_Subscribers{} + t = &UpdateNarrative_UpdateNarrative_Narrative{} } - return t.Active + return t.Satisfies } -func (t *CreateBulkSubscriber_CreateBulkSubscriber_Subscribers) GetEmail() string { +func (t *UpdateNarrative_UpdateNarrative_Narrative) GetTags() []string { if t == nil { - t = &CreateBulkSubscriber_CreateBulkSubscriber_Subscribers{} + t = &UpdateNarrative_UpdateNarrative_Narrative{} } - return t.Email + return t.Tags } -func (t *CreateBulkSubscriber_CreateBulkSubscriber_Subscribers) GetID() string { +func (t *UpdateNarrative_UpdateNarrative_Narrative) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkSubscriber_CreateBulkSubscriber_Subscribers{} + t = &UpdateNarrative_UpdateNarrative_Narrative{} } - return t.ID + return t.UpdatedAt } -func (t *CreateBulkSubscriber_CreateBulkSubscriber_Subscribers) GetVerifiedEmail() bool { +func (t *UpdateNarrative_UpdateNarrative_Narrative) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkSubscriber_CreateBulkSubscriber_Subscribers{} + t = &UpdateNarrative_UpdateNarrative_Narrative{} } - return t.VerifiedEmail + return t.UpdatedBy } -type CreateBulkSubscriber_CreateBulkSubscriber struct { - Subscribers []*CreateBulkSubscriber_CreateBulkSubscriber_Subscribers "json:\"subscribers,omitempty\" graphql:\"subscribers\"" +type UpdateNarrative_UpdateNarrative struct { + Narrative UpdateNarrative_UpdateNarrative_Narrative "json:\"narrative\" graphql:\"narrative\"" } -func (t *CreateBulkSubscriber_CreateBulkSubscriber) GetSubscribers() []*CreateBulkSubscriber_CreateBulkSubscriber_Subscribers { +func (t *UpdateNarrative_UpdateNarrative) GetNarrative() *UpdateNarrative_UpdateNarrative_Narrative { if t == nil { - t = &CreateBulkSubscriber_CreateBulkSubscriber{} + t = &UpdateNarrative_UpdateNarrative{} } - return t.Subscribers + return &t.Narrative } -type CreateSubscriber_CreateSubscriber_Subscriber struct { - Active bool "json:\"active\" graphql:\"active\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Email string "json:\"email\" graphql:\"email\"" - ID string "json:\"id\" graphql:\"id\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" +type GetAllNarrativeHistories_NarrativeHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetActive() bool { - if t == nil { - t = &CreateSubscriber_CreateSubscriber_Subscriber{} - } - return t.Active -} -func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetCreatedAt() *time.Time { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateSubscriber_CreateSubscriber_Subscriber{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } return t.CreatedAt } -func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetCreatedBy() *string { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateSubscriber_CreateSubscriber_Subscriber{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } return t.CreatedBy } -func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetEmail() string { - if t == nil { - t = &CreateSubscriber_CreateSubscriber_Subscriber{} - } - return t.Email -} -func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetID() string { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &CreateSubscriber_CreateSubscriber_Subscriber{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.ID + return t.Description } -func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetUpdatedAt() *time.Time { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &CreateSubscriber_CreateSubscriber_Subscriber{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.UpdatedAt + return t.Details } -func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetUpdatedBy() *string { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &CreateSubscriber_CreateSubscriber_Subscriber{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.UpdatedBy + return &t.HistoryTime } -func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetVerifiedEmail() bool { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetID() string { if t == nil { - t = &CreateSubscriber_CreateSubscriber_Subscriber{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.VerifiedEmail -} - -type CreateSubscriber_CreateSubscriber struct { - Subscriber CreateSubscriber_CreateSubscriber_Subscriber "json:\"subscriber\" graphql:\"subscriber\"" + return t.ID } - -func (t *CreateSubscriber_CreateSubscriber) GetSubscriber() *CreateSubscriber_CreateSubscriber_Subscriber { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetName() string { if t == nil { - t = &CreateSubscriber_CreateSubscriber{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } - return &t.Subscriber -} - -type DeleteSubscriber_DeleteSubscriber struct { - Email string "json:\"email\" graphql:\"email\"" + return t.Name } - -func (t *DeleteSubscriber_DeleteSubscriber) GetEmail() string { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &DeleteSubscriber_DeleteSubscriber{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.Email -} - -type GetAllSubscribers_Subscribers_Edges_Node struct { - Active bool "json:\"active\" graphql:\"active\"" - Email string "json:\"email\" graphql:\"email\"" - ID string "json:\"id\" graphql:\"id\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" + return &t.Operation } - -func (t *GetAllSubscribers_Subscribers_Edges_Node) GetActive() bool { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllSubscribers_Subscribers_Edges_Node{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.Active + return t.Ref } -func (t *GetAllSubscribers_Subscribers_Edges_Node) GetEmail() string { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetSatisfies() *string { if t == nil { - t = &GetAllSubscribers_Subscribers_Edges_Node{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.Email + return t.Satisfies } -func (t *GetAllSubscribers_Subscribers_Edges_Node) GetID() string { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllSubscribers_Subscribers_Edges_Node{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.ID + return t.Tags } -func (t *GetAllSubscribers_Subscribers_Edges_Node) GetOwnerID() *string { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllSubscribers_Subscribers_Edges_Node{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.OwnerID + return t.UpdatedAt } -func (t *GetAllSubscribers_Subscribers_Edges_Node) GetVerifiedEmail() bool { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllSubscribers_Subscribers_Edges_Node{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.VerifiedEmail + return t.UpdatedBy } -type GetAllSubscribers_Subscribers_Edges struct { - Node *GetAllSubscribers_Subscribers_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllNarrativeHistories_NarrativeHistories_Edges struct { + Node *GetAllNarrativeHistories_NarrativeHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllSubscribers_Subscribers_Edges) GetNode() *GetAllSubscribers_Subscribers_Edges_Node { +func (t *GetAllNarrativeHistories_NarrativeHistories_Edges) GetNode() *GetAllNarrativeHistories_NarrativeHistories_Edges_Node { if t == nil { - t = &GetAllSubscribers_Subscribers_Edges{} + t = &GetAllNarrativeHistories_NarrativeHistories_Edges{} } return t.Node } -type GetAllSubscribers_Subscribers struct { - Edges []*GetAllSubscribers_Subscribers_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllNarrativeHistories_NarrativeHistories struct { + Edges []*GetAllNarrativeHistories_NarrativeHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllSubscribers_Subscribers) GetEdges() []*GetAllSubscribers_Subscribers_Edges { +func (t *GetAllNarrativeHistories_NarrativeHistories) GetEdges() []*GetAllNarrativeHistories_NarrativeHistories_Edges { if t == nil { - t = &GetAllSubscribers_Subscribers{} + t = &GetAllNarrativeHistories_NarrativeHistories{} } return t.Edges } -type GetSubscriberByEmail_Subscriber struct { - Active bool "json:\"active\" graphql:\"active\"" - Email string "json:\"email\" graphql:\"email\"" - ID string "json:\"id\" graphql:\"id\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" +type GetNarrativeHistories_NarrativeHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetSubscriberByEmail_Subscriber) GetActive() bool { +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetSubscriberByEmail_Subscriber{} + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.Active + return t.CreatedAt } -func (t *GetSubscriberByEmail_Subscriber) GetEmail() string { +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetSubscriberByEmail_Subscriber{} + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.Email + return t.CreatedBy } -func (t *GetSubscriberByEmail_Subscriber) GetID() string { +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetSubscriberByEmail_Subscriber{} + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.ID + return t.Description } -func (t *GetSubscriberByEmail_Subscriber) GetOwnerID() *string { +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &GetSubscriberByEmail_Subscriber{} + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.OwnerID + return t.Details } -func (t *GetSubscriberByEmail_Subscriber) GetVerifiedEmail() bool { +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetSubscriberByEmail_Subscriber{} + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.VerifiedEmail + return &t.HistoryTime } - -type GetSubscribers_Subscribers_Edges_Node struct { - Active bool "json:\"active\" graphql:\"active\"" - Email string "json:\"email\" graphql:\"email\"" - ID string "json:\"id\" graphql:\"id\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} + } + return t.ID } - -func (t *GetSubscribers_Subscribers_Edges_Node) GetActive() bool { +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetName() string { if t == nil { - t = &GetSubscribers_Subscribers_Edges_Node{} + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.Active + return t.Name } -func (t *GetSubscribers_Subscribers_Edges_Node) GetEmail() string { +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetSubscribers_Subscribers_Edges_Node{} + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.Email + return &t.Operation } -func (t *GetSubscribers_Subscribers_Edges_Node) GetID() string { +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetSubscribers_Subscribers_Edges_Node{} + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.ID + return t.Ref } -func (t *GetSubscribers_Subscribers_Edges_Node) GetOwnerID() *string { +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetSatisfies() *string { if t == nil { - t = &GetSubscribers_Subscribers_Edges_Node{} + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.OwnerID + return t.Satisfies } -func (t *GetSubscribers_Subscribers_Edges_Node) GetVerifiedEmail() bool { +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetSubscribers_Subscribers_Edges_Node{} + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} } - return t.VerifiedEmail + return t.Tags +} +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetNarrativeHistories_NarrativeHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetNarrativeHistories_NarrativeHistories_Edges_Node{} + } + return t.UpdatedBy } -type GetSubscribers_Subscribers_Edges struct { - Node *GetSubscribers_Subscribers_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetNarrativeHistories_NarrativeHistories_Edges struct { + Node *GetNarrativeHistories_NarrativeHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetSubscribers_Subscribers_Edges) GetNode() *GetSubscribers_Subscribers_Edges_Node { +func (t *GetNarrativeHistories_NarrativeHistories_Edges) GetNode() *GetNarrativeHistories_NarrativeHistories_Edges_Node { if t == nil { - t = &GetSubscribers_Subscribers_Edges{} + t = &GetNarrativeHistories_NarrativeHistories_Edges{} } return t.Node } -type GetSubscribers_Subscribers struct { - Edges []*GetSubscribers_Subscribers_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetNarrativeHistories_NarrativeHistories struct { + Edges []*GetNarrativeHistories_NarrativeHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetSubscribers_Subscribers) GetEdges() []*GetSubscribers_Subscribers_Edges { +func (t *GetNarrativeHistories_NarrativeHistories) GetEdges() []*GetNarrativeHistories_NarrativeHistories_Edges { if t == nil { - t = &GetSubscribers_Subscribers{} + t = &GetNarrativeHistories_NarrativeHistories{} } return t.Edges } -type UpdateSubscriber_UpdateSubscriber_Subscriber struct { - Active bool "json:\"active\" graphql:\"active\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Email string "json:\"email\" graphql:\"email\"" - ID string "json:\"id\" graphql:\"id\"" - PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" - VerifiedPhone bool "json:\"verifiedPhone\" graphql:\"verifiedPhone\"" +type GetAllNoteHistories_NoteHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Text string "json:\"text\" graphql:\"text\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetActive() bool { - if t == nil { - t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} - } - return t.Active -} -func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetCreatedAt() *time.Time { +func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + t = &GetAllNoteHistories_NoteHistories_Edges_Node{} } return t.CreatedAt } -func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetCreatedBy() *string { +func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + t = &GetAllNoteHistories_NoteHistories_Edges_Node{} } return t.CreatedBy } -func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetEmail() string { +func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + t = &GetAllNoteHistories_NoteHistories_Edges_Node{} } - return t.Email + return &t.HistoryTime } -func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetID() string { +func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetID() string { if t == nil { - t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + t = &GetAllNoteHistories_NoteHistories_Edges_Node{} } return t.ID } -func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetPhoneNumber() *string { +func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + t = &GetAllNoteHistories_NoteHistories_Edges_Node{} } - return t.PhoneNumber + return &t.Operation } -func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetUpdatedAt() *time.Time { +func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + t = &GetAllNoteHistories_NoteHistories_Edges_Node{} } - return t.UpdatedAt + return t.OwnerID } -func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetUpdatedBy() *string { +func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetRef() *string { if t == nil { - t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + t = &GetAllNoteHistories_NoteHistories_Edges_Node{} } - return t.UpdatedBy + return t.Ref } -func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetVerifiedEmail() bool { +func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetTags() []string { if t == nil { - t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + t = &GetAllNoteHistories_NoteHistories_Edges_Node{} } - return t.VerifiedEmail + return t.Tags } -func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetVerifiedPhone() bool { +func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetText() string { if t == nil { - t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + t = &GetAllNoteHistories_NoteHistories_Edges_Node{} } - return t.VerifiedPhone + return t.Text } - -type UpdateSubscriber_UpdateSubscriber struct { - Subscriber UpdateSubscriber_UpdateSubscriber_Subscriber "json:\"subscriber\" graphql:\"subscriber\"" +func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllNoteHistories_NoteHistories_Edges_Node{} + } + return t.UpdatedAt } - -func (t *UpdateSubscriber_UpdateSubscriber) GetSubscriber() *UpdateSubscriber_UpdateSubscriber_Subscriber { +func (t *GetAllNoteHistories_NoteHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &UpdateSubscriber_UpdateSubscriber{} + t = &GetAllNoteHistories_NoteHistories_Edges_Node{} } - return &t.Subscriber + return t.UpdatedBy } -type CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllNoteHistories_NoteHistories_Edges struct { + Node *GetAllNoteHistories_NoteHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates_Owner) GetID() string { +func (t *GetAllNoteHistories_NoteHistories_Edges) GetNode() *GetAllNoteHistories_NoteHistories_Edges_Node { if t == nil { - t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates_Owner{} + t = &GetAllNoteHistories_NoteHistories_Edges{} } - return t.ID + return t.Node } -type CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" - Name string "json:\"name\" graphql:\"name\"" - Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" - Owner *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +type GetAllNoteHistories_NoteHistories struct { + Edges []*GetAllNoteHistories_NoteHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates) GetDescription() *string { +func (t *GetAllNoteHistories_NoteHistories) GetEdges() []*GetAllNoteHistories_NoteHistories_Edges { if t == nil { - t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates{} + t = &GetAllNoteHistories_NoteHistories{} } - return t.Description + return t.Edges } -func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates) GetID() string { + +type GetNoteHistories_NoteHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Text string "json:\"text\" graphql:\"text\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetNoteHistories_NoteHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates{} + t = &GetNoteHistories_NoteHistories_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates) GetJsonconfig() *json.RawMessage { +func (t *GetNoteHistories_NoteHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates{} + t = &GetNoteHistories_NoteHistories_Edges_Node{} } - return &t.Jsonconfig + return t.CreatedBy } -func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates) GetName() string { +func (t *GetNoteHistories_NoteHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates{} + t = &GetNoteHistories_NoteHistories_Edges_Node{} } - return t.Name + return &t.HistoryTime } -func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates) GetUischema() *json.RawMessage { +func (t *GetNoteHistories_NoteHistories_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates{} + t = &GetNoteHistories_NoteHistories_Edges_Node{} } - return &t.Uischema + return t.ID } -func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates) GetOwner() *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates_Owner { +func (t *GetNoteHistories_NoteHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates{} + t = &GetNoteHistories_NoteHistories_Edges_Node{} } - return t.Owner -} - -type CreateBulkCSVTemplate_CreateBulkCSVTemplate struct { - Templates []*CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates "json:\"templates,omitempty\" graphql:\"templates\"" + return &t.Operation } - -func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate) GetTemplates() []*CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates { +func (t *GetNoteHistories_NoteHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate{} + t = &GetNoteHistories_NoteHistories_Edges_Node{} } - return t.Templates -} - -type CreateBulkTemplate_CreateBulkTemplate_Templates_Owner struct { - ID string "json:\"id\" graphql:\"id\"" + return t.OwnerID } - -func (t *CreateBulkTemplate_CreateBulkTemplate_Templates_Owner) GetID() string { +func (t *GetNoteHistories_NoteHistories_Edges_Node) GetRef() *string { if t == nil { - t = &CreateBulkTemplate_CreateBulkTemplate_Templates_Owner{} + t = &GetNoteHistories_NoteHistories_Edges_Node{} } - return t.ID -} - -type CreateBulkTemplate_CreateBulkTemplate_Templates struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" - Name string "json:\"name\" graphql:\"name\"" - Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" - Owner *CreateBulkTemplate_CreateBulkTemplate_Templates_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + return t.Ref } - -func (t *CreateBulkTemplate_CreateBulkTemplate_Templates) GetDescription() *string { +func (t *GetNoteHistories_NoteHistories_Edges_Node) GetTags() []string { if t == nil { - t = &CreateBulkTemplate_CreateBulkTemplate_Templates{} + t = &GetNoteHistories_NoteHistories_Edges_Node{} } - return t.Description + return t.Tags } -func (t *CreateBulkTemplate_CreateBulkTemplate_Templates) GetID() string { +func (t *GetNoteHistories_NoteHistories_Edges_Node) GetText() string { if t == nil { - t = &CreateBulkTemplate_CreateBulkTemplate_Templates{} + t = &GetNoteHistories_NoteHistories_Edges_Node{} } - return t.ID + return t.Text } -func (t *CreateBulkTemplate_CreateBulkTemplate_Templates) GetJsonconfig() *json.RawMessage { +func (t *GetNoteHistories_NoteHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkTemplate_CreateBulkTemplate_Templates{} + t = &GetNoteHistories_NoteHistories_Edges_Node{} } - return &t.Jsonconfig + return t.UpdatedAt } -func (t *CreateBulkTemplate_CreateBulkTemplate_Templates) GetName() string { +func (t *GetNoteHistories_NoteHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkTemplate_CreateBulkTemplate_Templates{} + t = &GetNoteHistories_NoteHistories_Edges_Node{} } - return t.Name + return t.UpdatedBy } -func (t *CreateBulkTemplate_CreateBulkTemplate_Templates) GetUischema() *json.RawMessage { + +type GetNoteHistories_NoteHistories_Edges struct { + Node *GetNoteHistories_NoteHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetNoteHistories_NoteHistories_Edges) GetNode() *GetNoteHistories_NoteHistories_Edges_Node { if t == nil { - t = &CreateBulkTemplate_CreateBulkTemplate_Templates{} + t = &GetNoteHistories_NoteHistories_Edges{} } - return &t.Uischema -} -func (t *CreateBulkTemplate_CreateBulkTemplate_Templates) GetOwner() *CreateBulkTemplate_CreateBulkTemplate_Templates_Owner { - if t == nil { - t = &CreateBulkTemplate_CreateBulkTemplate_Templates{} - } - return t.Owner + return t.Node } -type CreateBulkTemplate_CreateBulkTemplate struct { - Templates []*CreateBulkTemplate_CreateBulkTemplate_Templates "json:\"templates,omitempty\" graphql:\"templates\"" +type GetNoteHistories_NoteHistories struct { + Edges []*GetNoteHistories_NoteHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkTemplate_CreateBulkTemplate) GetTemplates() []*CreateBulkTemplate_CreateBulkTemplate_Templates { +func (t *GetNoteHistories_NoteHistories) GetEdges() []*GetNoteHistories_NoteHistories_Edges { if t == nil { - t = &CreateBulkTemplate_CreateBulkTemplate{} + t = &GetNoteHistories_NoteHistories{} } - return t.Templates + return t.Edges } -type CreateTemplate_CreateTemplate_Template_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node struct { + AuthStyle string "json:\"authStyle\" graphql:\"authStyle\"" + AuthURL string "json:\"authURL\" graphql:\"authURL\"" + ClientID string "json:\"clientID\" graphql:\"clientID\"" + ClientSecret string "json:\"clientSecret\" graphql:\"clientSecret\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + InfoURL string "json:\"infoURL\" graphql:\"infoURL\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + RedirectURL string "json:\"redirectURL\" graphql:\"redirectURL\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Scopes string "json:\"scopes\" graphql:\"scopes\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TokenURL string "json:\"tokenURL\" graphql:\"tokenURL\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateTemplate_CreateTemplate_Template_Owner) GetID() string { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetAuthStyle() string { if t == nil { - t = &CreateTemplate_CreateTemplate_Template_Owner{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.ID -} - -type CreateTemplate_CreateTemplate_Template struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" - Name string "json:\"name\" graphql:\"name\"" - Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" - Owner *CreateTemplate_CreateTemplate_Template_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + return t.AuthStyle } - -func (t *CreateTemplate_CreateTemplate_Template) GetDescription() *string { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetAuthURL() string { if t == nil { - t = &CreateTemplate_CreateTemplate_Template{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.Description + return t.AuthURL } -func (t *CreateTemplate_CreateTemplate_Template) GetID() string { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetClientID() string { if t == nil { - t = &CreateTemplate_CreateTemplate_Template{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.ID + return t.ClientID } -func (t *CreateTemplate_CreateTemplate_Template) GetJsonconfig() *json.RawMessage { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetClientSecret() string { if t == nil { - t = &CreateTemplate_CreateTemplate_Template{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return &t.Jsonconfig + return t.ClientSecret } -func (t *CreateTemplate_CreateTemplate_Template) GetName() string { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &CreateTemplate_CreateTemplate_Template{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.Name + return t.CreatedAt } -func (t *CreateTemplate_CreateTemplate_Template) GetUischema() *json.RawMessage { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateTemplate_CreateTemplate_Template{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return &t.Uischema + return t.CreatedBy } -func (t *CreateTemplate_CreateTemplate_Template) GetOwner() *CreateTemplate_CreateTemplate_Template_Owner { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &CreateTemplate_CreateTemplate_Template{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.Owner -} - -type CreateTemplate_CreateTemplate struct { - Template CreateTemplate_CreateTemplate_Template "json:\"template\" graphql:\"template\"" + return &t.HistoryTime } - -func (t *CreateTemplate_CreateTemplate) GetTemplate() *CreateTemplate_CreateTemplate_Template { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetID() string { if t == nil { - t = &CreateTemplate_CreateTemplate{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return &t.Template -} - -type GetAllTemplates_Templates_Edges_Node_Owner struct { - ID string "json:\"id\" graphql:\"id\"" + return t.ID } - -func (t *GetAllTemplates_Templates_Edges_Node_Owner) GetID() string { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetInfoURL() string { if t == nil { - t = &GetAllTemplates_Templates_Edges_Node_Owner{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.ID -} - -type GetAllTemplates_Templates_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" - Name string "json:\"name\" graphql:\"name\"" - Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Owner *GetAllTemplates_Templates_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + return t.InfoURL } - -func (t *GetAllTemplates_Templates_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetName() string { if t == nil { - t = &GetAllTemplates_Templates_Edges_Node{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.CreatedAt + return t.Name } -func (t *GetAllTemplates_Templates_Edges_Node) GetCreatedBy() *string { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetAllTemplates_Templates_Edges_Node{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.CreatedBy + return &t.Operation } -func (t *GetAllTemplates_Templates_Edges_Node) GetDescription() *string { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &GetAllTemplates_Templates_Edges_Node{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.Description + return t.OwnerID } -func (t *GetAllTemplates_Templates_Edges_Node) GetID() string { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetRedirectURL() string { if t == nil { - t = &GetAllTemplates_Templates_Edges_Node{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.ID + return t.RedirectURL } -func (t *GetAllTemplates_Templates_Edges_Node) GetJsonconfig() *json.RawMessage { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllTemplates_Templates_Edges_Node{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return &t.Jsonconfig + return t.Ref } -func (t *GetAllTemplates_Templates_Edges_Node) GetName() string { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetScopes() string { if t == nil { - t = &GetAllTemplates_Templates_Edges_Node{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.Name + return t.Scopes } -func (t *GetAllTemplates_Templates_Edges_Node) GetUischema() *json.RawMessage { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllTemplates_Templates_Edges_Node{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return &t.Uischema + return t.Tags } -func (t *GetAllTemplates_Templates_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetTokenURL() string { if t == nil { - t = &GetAllTemplates_Templates_Edges_Node{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.UpdatedAt + return t.TokenURL } -func (t *GetAllTemplates_Templates_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllTemplates_Templates_Edges_Node{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.UpdatedBy + return t.UpdatedAt } -func (t *GetAllTemplates_Templates_Edges_Node) GetOwner() *GetAllTemplates_Templates_Edges_Node_Owner { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllTemplates_Templates_Edges_Node{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.Owner + return t.UpdatedBy } -type GetAllTemplates_Templates_Edges struct { - Node *GetAllTemplates_Templates_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllOauthProviderHistories_OauthProviderHistories_Edges struct { + Node *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllTemplates_Templates_Edges) GetNode() *GetAllTemplates_Templates_Edges_Node { +func (t *GetAllOauthProviderHistories_OauthProviderHistories_Edges) GetNode() *GetAllOauthProviderHistories_OauthProviderHistories_Edges_Node { if t == nil { - t = &GetAllTemplates_Templates_Edges{} + t = &GetAllOauthProviderHistories_OauthProviderHistories_Edges{} } return t.Node } -type GetAllTemplates_Templates struct { - Edges []*GetAllTemplates_Templates_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllOauthProviderHistories_OauthProviderHistories struct { + Edges []*GetAllOauthProviderHistories_OauthProviderHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllTemplates_Templates) GetEdges() []*GetAllTemplates_Templates_Edges { +func (t *GetAllOauthProviderHistories_OauthProviderHistories) GetEdges() []*GetAllOauthProviderHistories_OauthProviderHistories_Edges { if t == nil { - t = &GetAllTemplates_Templates{} + t = &GetAllOauthProviderHistories_OauthProviderHistories{} } return t.Edges } -type GetTemplateByID_Template_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +type GetOauthProviderHistories_OauthProviderHistories_Edges_Node struct { + AuthStyle string "json:\"authStyle\" graphql:\"authStyle\"" + AuthURL string "json:\"authURL\" graphql:\"authURL\"" + ClientID string "json:\"clientID\" graphql:\"clientID\"" + ClientSecret string "json:\"clientSecret\" graphql:\"clientSecret\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + InfoURL string "json:\"infoURL\" graphql:\"infoURL\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + RedirectURL string "json:\"redirectURL\" graphql:\"redirectURL\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Scopes string "json:\"scopes\" graphql:\"scopes\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TokenURL string "json:\"tokenURL\" graphql:\"tokenURL\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetTemplateByID_Template_Owner) GetID() string { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetAuthStyle() string { if t == nil { - t = &GetTemplateByID_Template_Owner{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.ID -} - -type GetTemplateByID_Template struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" - Name string "json:\"name\" graphql:\"name\"" - Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Owner *GetTemplateByID_Template_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + return t.AuthStyle } - -func (t *GetTemplateByID_Template) GetCreatedAt() *time.Time { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetAuthURL() string { if t == nil { - t = &GetTemplateByID_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.CreatedAt + return t.AuthURL } -func (t *GetTemplateByID_Template) GetCreatedBy() *string { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetClientID() string { if t == nil { - t = &GetTemplateByID_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.CreatedBy + return t.ClientID } -func (t *GetTemplateByID_Template) GetDescription() *string { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetClientSecret() string { if t == nil { - t = &GetTemplateByID_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.Description + return t.ClientSecret } -func (t *GetTemplateByID_Template) GetID() string { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetTemplateByID_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.ID + return t.CreatedAt } -func (t *GetTemplateByID_Template) GetJsonconfig() *json.RawMessage { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetTemplateByID_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return &t.Jsonconfig + return t.CreatedBy } -func (t *GetTemplateByID_Template) GetName() string { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetTemplateByID_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.Name + return &t.HistoryTime } -func (t *GetTemplateByID_Template) GetUischema() *json.RawMessage { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetID() string { if t == nil { - t = &GetTemplateByID_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return &t.Uischema + return t.ID } -func (t *GetTemplateByID_Template) GetUpdatedAt() *time.Time { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetInfoURL() string { if t == nil { - t = &GetTemplateByID_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.UpdatedAt + return t.InfoURL } -func (t *GetTemplateByID_Template) GetUpdatedBy() *string { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetName() string { if t == nil { - t = &GetTemplateByID_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.UpdatedBy + return t.Name } -func (t *GetTemplateByID_Template) GetOwner() *GetTemplateByID_Template_Owner { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetTemplateByID_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.Owner -} - -type UpdateTemplate_UpdateTemplate_Template_Owner struct { - ID string "json:\"id\" graphql:\"id\"" + return &t.Operation } - -func (t *UpdateTemplate_UpdateTemplate_Template_Owner) GetID() string { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetOwnerID() *string { if t == nil { - t = &UpdateTemplate_UpdateTemplate_Template_Owner{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.ID -} - -type UpdateTemplate_UpdateTemplate_Template struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - ID string "json:\"id\" graphql:\"id\"" - Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" - Name string "json:\"name\" graphql:\"name\"" - Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Owner *UpdateTemplate_UpdateTemplate_Template_Owner "json:\"owner,omitempty\" graphql:\"owner\"" + return t.OwnerID } - -func (t *UpdateTemplate_UpdateTemplate_Template) GetCreatedAt() *time.Time { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetRedirectURL() string { if t == nil { - t = &UpdateTemplate_UpdateTemplate_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.CreatedAt + return t.RedirectURL } -func (t *UpdateTemplate_UpdateTemplate_Template) GetCreatedBy() *string { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetRef() *string { if t == nil { - t = &UpdateTemplate_UpdateTemplate_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.CreatedBy + return t.Ref } -func (t *UpdateTemplate_UpdateTemplate_Template) GetDescription() *string { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetScopes() string { if t == nil { - t = &UpdateTemplate_UpdateTemplate_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.Description + return t.Scopes } -func (t *UpdateTemplate_UpdateTemplate_Template) GetID() string { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetTags() []string { if t == nil { - t = &UpdateTemplate_UpdateTemplate_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.ID + return t.Tags } -func (t *UpdateTemplate_UpdateTemplate_Template) GetJsonconfig() *json.RawMessage { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetTokenURL() string { if t == nil { - t = &UpdateTemplate_UpdateTemplate_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return &t.Jsonconfig + return t.TokenURL } -func (t *UpdateTemplate_UpdateTemplate_Template) GetName() string { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateTemplate_UpdateTemplate_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return t.Name + return t.UpdatedAt } -func (t *UpdateTemplate_UpdateTemplate_Template) GetUischema() *json.RawMessage { +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &UpdateTemplate_UpdateTemplate_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges_Node{} } - return &t.Uischema + return t.UpdatedBy } -func (t *UpdateTemplate_UpdateTemplate_Template) GetUpdatedAt() *time.Time { + +type GetOauthProviderHistories_OauthProviderHistories_Edges struct { + Node *GetOauthProviderHistories_OauthProviderHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetOauthProviderHistories_OauthProviderHistories_Edges) GetNode() *GetOauthProviderHistories_OauthProviderHistories_Edges_Node { if t == nil { - t = &UpdateTemplate_UpdateTemplate_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories_Edges{} } - return t.UpdatedAt + return t.Node } -func (t *UpdateTemplate_UpdateTemplate_Template) GetUpdatedBy() *string { + +type GetOauthProviderHistories_OauthProviderHistories struct { + Edges []*GetOauthProviderHistories_OauthProviderHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetOauthProviderHistories_OauthProviderHistories) GetEdges() []*GetOauthProviderHistories_OauthProviderHistories_Edges { if t == nil { - t = &UpdateTemplate_UpdateTemplate_Template{} + t = &GetOauthProviderHistories_OauthProviderHistories{} } - return t.UpdatedBy + return t.Edges } -func (t *UpdateTemplate_UpdateTemplate_Template) GetOwner() *UpdateTemplate_UpdateTemplate_Template_Owner { + +type CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Integration struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Integration) GetID() string { if t == nil { - t = &UpdateTemplate_UpdateTemplate_Template{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Integration{} } - return t.Owner + return t.ID } -type UpdateTemplate_UpdateTemplate struct { - Template UpdateTemplate_UpdateTemplate_Template "json:\"template\" graphql:\"template\"" +type CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateTemplate_UpdateTemplate) GetTemplate() *UpdateTemplate_UpdateTemplate_Template { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Events) GetID() string { if t == nil { - t = &UpdateTemplate_UpdateTemplate{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Events{} } - return &t.Template + return t.ID } -type GetAllTemplateHistories_TemplateHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TemplateType enums.DocumentType "json:\"templateType\" graphql:\"templateType\"" - Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens struct { + ClaimsEmail string "json:\"claimsEmail\" graphql:\"claimsEmail\"" + ClaimsEmailVerified bool "json:\"claimsEmailVerified\" graphql:\"claimsEmailVerified\"" + ClaimsGroups []string "json:\"claimsGroups,omitempty\" graphql:\"claimsGroups\"" + ClaimsPreferredUsername string "json:\"claimsPreferredUsername\" graphql:\"claimsPreferredUsername\"" + ClaimsUserID string "json:\"claimsUserID\" graphql:\"claimsUserID\"" + ClaimsUsername string "json:\"claimsUsername\" graphql:\"claimsUsername\"" + ClientID string "json:\"clientID\" graphql:\"clientID\"" + ConnectorData []string "json:\"connectorData,omitempty\" graphql:\"connectorData\"" + ConnectorID string "json:\"connectorID\" graphql:\"connectorID\"" + ID string "json:\"id\" graphql:\"id\"" + LastUsed time.Time "json:\"lastUsed\" graphql:\"lastUsed\"" + Nonce string "json:\"nonce\" graphql:\"nonce\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Integration []*CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Integration "json:\"integration,omitempty\" graphql:\"integration\"" + Events []*CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Events "json:\"events,omitempty\" graphql:\"events\"" } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClaimsEmail() string { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return t.CreatedAt + return t.ClaimsEmail } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetCreatedBy() *string { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClaimsEmailVerified() bool { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return t.CreatedBy + return t.ClaimsEmailVerified } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetDescription() *string { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClaimsGroups() []string { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return t.Description + return t.ClaimsGroups } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClaimsPreferredUsername() string { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return &t.HistoryTime + return t.ClaimsPreferredUsername } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetID() string { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClaimsUserID() string { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return t.ID + return t.ClaimsUserID } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetJsonconfig() *json.RawMessage { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClaimsUsername() string { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return &t.Jsonconfig + return t.ClaimsUsername } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetName() string { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetClientID() string { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return t.Name + return t.ClientID } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetOperation() *history.OpType { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetConnectorData() []string { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return &t.Operation + return t.ConnectorData } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetOwnerID() *string { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetConnectorID() string { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return t.OwnerID + return t.ConnectorID } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetRef() *string { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetID() string { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return t.Ref + return t.ID } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetTags() []string { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetLastUsed() *time.Time { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return t.Tags + return &t.LastUsed } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetTemplateType() *enums.DocumentType { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetNonce() string { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return &t.TemplateType + return t.Nonce } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetUischema() *json.RawMessage { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetScopes() []string { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return &t.Uischema + return t.Scopes } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetIntegration() []*CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Integration { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return t.UpdatedAt + return t.Integration } -func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens) GetEvents() []*CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens_Events { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens{} } - return t.UpdatedBy + return t.Events } -type GetAllTemplateHistories_TemplateHistories_Edges struct { - Node *GetAllTemplateHistories_TemplateHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken struct { + OhAuthTooTokens []*CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens "json:\"ohAuthTooTokens,omitempty\" graphql:\"ohAuthTooTokens\"" } -func (t *GetAllTemplateHistories_TemplateHistories_Edges) GetNode() *GetAllTemplateHistories_TemplateHistories_Edges_Node { +func (t *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken) GetOhAuthTooTokens() []*CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken_OhAuthTooTokens { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories_Edges{} + t = &CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken{} } - return t.Node + return t.OhAuthTooTokens } -type GetAllTemplateHistories_TemplateHistories struct { - Edges []*GetAllTemplateHistories_TemplateHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Integration struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllTemplateHistories_TemplateHistories) GetEdges() []*GetAllTemplateHistories_TemplateHistories_Edges { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Integration) GetID() string { if t == nil { - t = &GetAllTemplateHistories_TemplateHistories{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Integration{} } - return t.Edges + return t.ID } -type GetTemplateHistories_TemplateHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - TemplateType enums.DocumentType "json:\"templateType\" graphql:\"templateType\"" - Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Events) GetID() string { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Events{} } - return t.CreatedAt + return t.ID } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetCreatedBy() *string { + +type CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens struct { + ClaimsEmail string "json:\"claimsEmail\" graphql:\"claimsEmail\"" + ClaimsEmailVerified bool "json:\"claimsEmailVerified\" graphql:\"claimsEmailVerified\"" + ClaimsGroups []string "json:\"claimsGroups,omitempty\" graphql:\"claimsGroups\"" + ClaimsPreferredUsername string "json:\"claimsPreferredUsername\" graphql:\"claimsPreferredUsername\"" + ClaimsUserID string "json:\"claimsUserID\" graphql:\"claimsUserID\"" + ClaimsUsername string "json:\"claimsUsername\" graphql:\"claimsUsername\"" + ClientID string "json:\"clientID\" graphql:\"clientID\"" + ConnectorData []string "json:\"connectorData,omitempty\" graphql:\"connectorData\"" + ConnectorID string "json:\"connectorID\" graphql:\"connectorID\"" + ID string "json:\"id\" graphql:\"id\"" + LastUsed time.Time "json:\"lastUsed\" graphql:\"lastUsed\"" + Nonce string "json:\"nonce\" graphql:\"nonce\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Integration []*CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Integration "json:\"integration,omitempty\" graphql:\"integration\"" + Events []*CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Events "json:\"events,omitempty\" graphql:\"events\"" +} + +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClaimsEmail() string { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return t.CreatedBy + return t.ClaimsEmail } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetDescription() *string { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClaimsEmailVerified() bool { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return t.Description + return t.ClaimsEmailVerified } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClaimsGroups() []string { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return &t.HistoryTime + return t.ClaimsGroups } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetID() string { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClaimsPreferredUsername() string { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return t.ID + return t.ClaimsPreferredUsername } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetJsonconfig() *json.RawMessage { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClaimsUserID() string { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return &t.Jsonconfig + return t.ClaimsUserID } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetName() string { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClaimsUsername() string { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return t.Name + return t.ClaimsUsername } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetOperation() *history.OpType { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetClientID() string { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return &t.Operation + return t.ClientID } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetOwnerID() *string { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetConnectorData() []string { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return t.OwnerID + return t.ConnectorData } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetRef() *string { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetConnectorID() string { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return t.Ref + return t.ConnectorID } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetTags() []string { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetID() string { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return t.Tags + return t.ID } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetTemplateType() *enums.DocumentType { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetLastUsed() *time.Time { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return &t.TemplateType + return &t.LastUsed } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetUischema() *json.RawMessage { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetNonce() string { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return &t.Uischema + return t.Nonce } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetScopes() []string { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return t.UpdatedAt + return t.Scopes } -func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetIntegration() []*CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Integration { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} } - return t.UpdatedBy + return t.Integration +} +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens) GetEvents() []*CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens_Events { + if t == nil { + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens{} + } + return t.Events } -type GetTemplateHistories_TemplateHistories_Edges struct { - Node *GetTemplateHistories_TemplateHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken struct { + OhAuthTooTokens []*CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens "json:\"ohAuthTooTokens,omitempty\" graphql:\"ohAuthTooTokens\"" } -func (t *GetTemplateHistories_TemplateHistories_Edges) GetNode() *GetTemplateHistories_TemplateHistories_Edges_Node { +func (t *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken) GetOhAuthTooTokens() []*CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken_OhAuthTooTokens { if t == nil { - t = &GetTemplateHistories_TemplateHistories_Edges{} + t = &CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken{} } - return t.Node + return t.OhAuthTooTokens } -type GetTemplateHistories_TemplateHistories struct { - Edges []*GetTemplateHistories_TemplateHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Integration struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetTemplateHistories_TemplateHistories) GetEdges() []*GetTemplateHistories_TemplateHistories_Edges { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Integration) GetID() string { if t == nil { - t = &GetTemplateHistories_TemplateHistories{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Integration{} } - return t.Edges + return t.ID } -type CreateTFASetting_CreateTFASetting_TfaSetting_Owner struct { +type CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Events struct { ID string "json:\"id\" graphql:\"id\"" } -func (t *CreateTFASetting_CreateTFASetting_TfaSetting_Owner) GetID() string { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Events) GetID() string { if t == nil { - t = &CreateTFASetting_CreateTFASetting_TfaSetting_Owner{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Events{} } return t.ID } -type CreateTFASetting_CreateTFASetting_TfaSetting struct { - RecoveryCodes []string "json:\"recoveryCodes,omitempty\" graphql:\"recoveryCodes\"" - TotpAllowed *bool "json:\"totpAllowed,omitempty\" graphql:\"totpAllowed\"" - Verified bool "json:\"verified\" graphql:\"verified\"" - Owner *CreateTFASetting_CreateTFASetting_TfaSetting_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +type CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken struct { + ClaimsEmail string "json:\"claimsEmail\" graphql:\"claimsEmail\"" + ClaimsEmailVerified bool "json:\"claimsEmailVerified\" graphql:\"claimsEmailVerified\"" + ClaimsGroups []string "json:\"claimsGroups,omitempty\" graphql:\"claimsGroups\"" + ClaimsPreferredUsername string "json:\"claimsPreferredUsername\" graphql:\"claimsPreferredUsername\"" + ClaimsUserID string "json:\"claimsUserID\" graphql:\"claimsUserID\"" + ClaimsUsername string "json:\"claimsUsername\" graphql:\"claimsUsername\"" + ClientID string "json:\"clientID\" graphql:\"clientID\"" + ConnectorData []string "json:\"connectorData,omitempty\" graphql:\"connectorData\"" + ConnectorID string "json:\"connectorID\" graphql:\"connectorID\"" + ID string "json:\"id\" graphql:\"id\"" + LastUsed time.Time "json:\"lastUsed\" graphql:\"lastUsed\"" + Nonce string "json:\"nonce\" graphql:\"nonce\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Integration []*CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Integration "json:\"integration,omitempty\" graphql:\"integration\"" + Events []*CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Events "json:\"events,omitempty\" graphql:\"events\"" } -func (t *CreateTFASetting_CreateTFASetting_TfaSetting) GetRecoveryCodes() []string { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClaimsEmail() string { if t == nil { - t = &CreateTFASetting_CreateTFASetting_TfaSetting{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} } - return t.RecoveryCodes + return t.ClaimsEmail } -func (t *CreateTFASetting_CreateTFASetting_TfaSetting) GetTotpAllowed() *bool { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClaimsEmailVerified() bool { if t == nil { - t = &CreateTFASetting_CreateTFASetting_TfaSetting{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} } - return t.TotpAllowed + return t.ClaimsEmailVerified } -func (t *CreateTFASetting_CreateTFASetting_TfaSetting) GetVerified() bool { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClaimsGroups() []string { if t == nil { - t = &CreateTFASetting_CreateTFASetting_TfaSetting{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} } - return t.Verified + return t.ClaimsGroups } -func (t *CreateTFASetting_CreateTFASetting_TfaSetting) GetOwner() *CreateTFASetting_CreateTFASetting_TfaSetting_Owner { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClaimsPreferredUsername() string { if t == nil { - t = &CreateTFASetting_CreateTFASetting_TfaSetting{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} } - return t.Owner + return t.ClaimsPreferredUsername } - -type CreateTFASetting_CreateTFASetting struct { - TfaSetting CreateTFASetting_CreateTFASetting_TfaSetting "json:\"tfaSetting\" graphql:\"tfaSetting\"" +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClaimsUserID() string { + if t == nil { + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + } + return t.ClaimsUserID } - -func (t *CreateTFASetting_CreateTFASetting) GetTfaSetting() *CreateTFASetting_CreateTFASetting_TfaSetting { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClaimsUsername() string { if t == nil { - t = &CreateTFASetting_CreateTFASetting{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} } - return &t.TfaSetting + return t.ClaimsUsername } - -type GetAllTFASettings_TfaSettings_Edges_Node_Owner struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetClientID() string { + if t == nil { + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + } + return t.ClientID } - -func (t *GetAllTFASettings_TfaSettings_Edges_Node_Owner) GetID() string { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetConnectorData() []string { if t == nil { - t = &GetAllTFASettings_TfaSettings_Edges_Node_Owner{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + } + return t.ConnectorData +} +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetConnectorID() string { + if t == nil { + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + } + return t.ConnectorID +} +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetID() string { + if t == nil { + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} } return t.ID } - -type GetAllTFASettings_TfaSettings_Edges_Node struct { - RecoveryCodes []string "json:\"recoveryCodes,omitempty\" graphql:\"recoveryCodes\"" - TotpAllowed *bool "json:\"totpAllowed,omitempty\" graphql:\"totpAllowed\"" - Verified bool "json:\"verified\" graphql:\"verified\"" - Owner *GetAllTFASettings_TfaSettings_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetLastUsed() *time.Time { + if t == nil { + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} + } + return &t.LastUsed } - -func (t *GetAllTFASettings_TfaSettings_Edges_Node) GetRecoveryCodes() []string { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetNonce() string { if t == nil { - t = &GetAllTFASettings_TfaSettings_Edges_Node{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} } - return t.RecoveryCodes + return t.Nonce } -func (t *GetAllTFASettings_TfaSettings_Edges_Node) GetTotpAllowed() *bool { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetScopes() []string { if t == nil { - t = &GetAllTFASettings_TfaSettings_Edges_Node{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} } - return t.TotpAllowed + return t.Scopes } -func (t *GetAllTFASettings_TfaSettings_Edges_Node) GetVerified() bool { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetIntegration() []*CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Integration { if t == nil { - t = &GetAllTFASettings_TfaSettings_Edges_Node{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} } - return t.Verified + return t.Integration } -func (t *GetAllTFASettings_TfaSettings_Edges_Node) GetOwner() *GetAllTFASettings_TfaSettings_Edges_Node_Owner { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken) GetEvents() []*CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken_Events { if t == nil { - t = &GetAllTFASettings_TfaSettings_Edges_Node{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken{} } - return t.Owner + return t.Events } -type GetAllTFASettings_TfaSettings_Edges struct { - Node *GetAllTFASettings_TfaSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateOhAuthTooToken_CreateOhAuthTooToken struct { + OhAuthTooToken CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken "json:\"ohAuthTooToken\" graphql:\"ohAuthTooToken\"" } -func (t *GetAllTFASettings_TfaSettings_Edges) GetNode() *GetAllTFASettings_TfaSettings_Edges_Node { +func (t *CreateOhAuthTooToken_CreateOhAuthTooToken) GetOhAuthTooToken() *CreateOhAuthTooToken_CreateOhAuthTooToken_OhAuthTooToken { if t == nil { - t = &GetAllTFASettings_TfaSettings_Edges{} + t = &CreateOhAuthTooToken_CreateOhAuthTooToken{} } - return t.Node + return &t.OhAuthTooToken } -type GetAllTFASettings_TfaSettings struct { - Edges []*GetAllTFASettings_TfaSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type DeleteOhAuthTooToken_DeleteOhAuthTooToken struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetAllTFASettings_TfaSettings) GetEdges() []*GetAllTFASettings_TfaSettings_Edges { +func (t *DeleteOhAuthTooToken_DeleteOhAuthTooToken) GetDeletedID() string { if t == nil { - t = &GetAllTFASettings_TfaSettings{} + t = &DeleteOhAuthTooToken_DeleteOhAuthTooToken{} } - return t.Edges + return t.DeletedID } -type GetTFASetting_TfaSetting_Owner struct { +type GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Integration struct { ID string "json:\"id\" graphql:\"id\"" } -func (t *GetTFASetting_TfaSetting_Owner) GetID() string { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Integration) GetID() string { if t == nil { - t = &GetTFASetting_TfaSetting_Owner{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Integration{} } return t.ID } -type GetTFASetting_TfaSetting struct { - RecoveryCodes []string "json:\"recoveryCodes,omitempty\" graphql:\"recoveryCodes\"" - TotpAllowed *bool "json:\"totpAllowed,omitempty\" graphql:\"totpAllowed\"" - Verified bool "json:\"verified\" graphql:\"verified\"" - Owner *GetTFASetting_TfaSetting_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +type GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Events struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetTFASetting_TfaSetting) GetRecoveryCodes() []string { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Events) GetID() string { if t == nil { - t = &GetTFASetting_TfaSetting{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Events{} } - return t.RecoveryCodes + return t.ID } -func (t *GetTFASetting_TfaSetting) GetTotpAllowed() *bool { + +type GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node struct { + ClaimsEmail string "json:\"claimsEmail\" graphql:\"claimsEmail\"" + ClaimsEmailVerified bool "json:\"claimsEmailVerified\" graphql:\"claimsEmailVerified\"" + ClaimsGroups []string "json:\"claimsGroups,omitempty\" graphql:\"claimsGroups\"" + ClaimsPreferredUsername string "json:\"claimsPreferredUsername\" graphql:\"claimsPreferredUsername\"" + ClaimsUserID string "json:\"claimsUserID\" graphql:\"claimsUserID\"" + ClaimsUsername string "json:\"claimsUsername\" graphql:\"claimsUsername\"" + ClientID string "json:\"clientID\" graphql:\"clientID\"" + ConnectorData []string "json:\"connectorData,omitempty\" graphql:\"connectorData\"" + ConnectorID string "json:\"connectorID\" graphql:\"connectorID\"" + ID string "json:\"id\" graphql:\"id\"" + LastUsed time.Time "json:\"lastUsed\" graphql:\"lastUsed\"" + Nonce string "json:\"nonce\" graphql:\"nonce\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Integration []*GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Integration "json:\"integration,omitempty\" graphql:\"integration\"" + Events []*GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Events "json:\"events,omitempty\" graphql:\"events\"" +} + +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClaimsEmail() string { if t == nil { - t = &GetTFASetting_TfaSetting{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } - return t.TotpAllowed + return t.ClaimsEmail } -func (t *GetTFASetting_TfaSetting) GetVerified() bool { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClaimsEmailVerified() bool { if t == nil { - t = &GetTFASetting_TfaSetting{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } - return t.Verified + return t.ClaimsEmailVerified } -func (t *GetTFASetting_TfaSetting) GetOwner() *GetTFASetting_TfaSetting_Owner { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClaimsGroups() []string { if t == nil { - t = &GetTFASetting_TfaSetting{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } - return t.Owner -} - -type UpdateTFASetting_UpdateTFASetting_TfaSetting struct { - RecoveryCodes []string "json:\"recoveryCodes,omitempty\" graphql:\"recoveryCodes\"" - TotpAllowed *bool "json:\"totpAllowed,omitempty\" graphql:\"totpAllowed\"" - Verified bool "json:\"verified\" graphql:\"verified\"" + return t.ClaimsGroups } - -func (t *UpdateTFASetting_UpdateTFASetting_TfaSetting) GetRecoveryCodes() []string { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClaimsPreferredUsername() string { if t == nil { - t = &UpdateTFASetting_UpdateTFASetting_TfaSetting{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } - return t.RecoveryCodes + return t.ClaimsPreferredUsername } -func (t *UpdateTFASetting_UpdateTFASetting_TfaSetting) GetTotpAllowed() *bool { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClaimsUserID() string { if t == nil { - t = &UpdateTFASetting_UpdateTFASetting_TfaSetting{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } - return t.TotpAllowed + return t.ClaimsUserID } -func (t *UpdateTFASetting_UpdateTFASetting_TfaSetting) GetVerified() bool { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClaimsUsername() string { if t == nil { - t = &UpdateTFASetting_UpdateTFASetting_TfaSetting{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } - return t.Verified + return t.ClaimsUsername } - -type UpdateTFASetting_UpdateTFASetting struct { - TfaSetting UpdateTFASetting_UpdateTFASetting_TfaSetting "json:\"tfaSetting\" graphql:\"tfaSetting\"" +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetClientID() string { + if t == nil { + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + } + return t.ClientID } - -func (t *UpdateTFASetting_UpdateTFASetting) GetTfaSetting() *UpdateTFASetting_UpdateTFASetting_TfaSetting { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetConnectorData() []string { if t == nil { - t = &UpdateTFASetting_UpdateTFASetting{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } - return &t.TfaSetting + return t.ConnectorData } - -type CreateUser_CreateUser_User_OrgMemberships struct { - ID string "json:\"id\" graphql:\"id\"" - OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetConnectorID() string { + if t == nil { + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} + } + return t.ConnectorID } - -func (t *CreateUser_CreateUser_User_OrgMemberships) GetID() string { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetID() string { if t == nil { - t = &CreateUser_CreateUser_User_OrgMemberships{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } return t.ID } -func (t *CreateUser_CreateUser_User_OrgMemberships) GetOrganizationID() string { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetLastUsed() *time.Time { if t == nil { - t = &CreateUser_CreateUser_User_OrgMemberships{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } - return t.OrganizationID -} - -type CreateUser_CreateUser_User_GroupMemberships struct { - ID string "json:\"id\" graphql:\"id\"" - GroupID string "json:\"groupID\" graphql:\"groupID\"" + return &t.LastUsed } - -func (t *CreateUser_CreateUser_User_GroupMemberships) GetID() string { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetNonce() string { if t == nil { - t = &CreateUser_CreateUser_User_GroupMemberships{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } - return t.ID + return t.Nonce } -func (t *CreateUser_CreateUser_User_GroupMemberships) GetGroupID() string { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetScopes() []string { if t == nil { - t = &CreateUser_CreateUser_User_GroupMemberships{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } - return t.GroupID -} - -type CreateUser_CreateUser_User_Setting_DefaultOrg struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" + return t.Scopes } - -func (t *CreateUser_CreateUser_User_Setting_DefaultOrg) GetID() string { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetIntegration() []*GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Integration { if t == nil { - t = &CreateUser_CreateUser_User_Setting_DefaultOrg{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } - return t.ID + return t.Integration } -func (t *CreateUser_CreateUser_User_Setting_DefaultOrg) GetName() string { +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node) GetEvents() []*GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node_Events { if t == nil { - t = &CreateUser_CreateUser_User_Setting_DefaultOrg{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node{} } - return t.Name + return t.Events } -func (t *CreateUser_CreateUser_User_Setting_DefaultOrg) GetPersonalOrg() *bool { + +type GetOhAuthTooTokens_OhAuthTooTokens_Edges struct { + Node *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetOhAuthTooTokens_OhAuthTooTokens_Edges) GetNode() *GetOhAuthTooTokens_OhAuthTooTokens_Edges_Node { if t == nil { - t = &CreateUser_CreateUser_User_Setting_DefaultOrg{} + t = &GetOhAuthTooTokens_OhAuthTooTokens_Edges{} } - return t.PersonalOrg + return t.Node } -type CreateUser_CreateUser_User_Setting struct { - DefaultOrg *CreateUser_CreateUser_User_Setting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" - Locked bool "json:\"locked\" graphql:\"locked\"" - SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetOhAuthTooTokens_OhAuthTooTokens struct { + Edges []*GetOhAuthTooTokens_OhAuthTooTokens_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateUser_CreateUser_User_Setting) GetDefaultOrg() *CreateUser_CreateUser_User_Setting_DefaultOrg { +func (t *GetOhAuthTooTokens_OhAuthTooTokens) GetEdges() []*GetOhAuthTooTokens_OhAuthTooTokens_Edges { if t == nil { - t = &CreateUser_CreateUser_User_Setting{} + t = &GetOhAuthTooTokens_OhAuthTooTokens{} } - return t.DefaultOrg + return t.Edges } -func (t *CreateUser_CreateUser_User_Setting) GetCreatedAt() *time.Time { - if t == nil { - t = &CreateUser_CreateUser_User_Setting{} - } - return t.CreatedAt + +type UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Integration struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *CreateUser_CreateUser_User_Setting) GetCreatedBy() *string { + +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Integration) GetID() string { if t == nil { - t = &CreateUser_CreateUser_User_Setting{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Integration{} } - return t.CreatedBy + return t.ID } -func (t *CreateUser_CreateUser_User_Setting) GetEmailConfirmed() bool { + +type UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Events struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Events) GetID() string { if t == nil { - t = &CreateUser_CreateUser_User_Setting{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Events{} } - return t.EmailConfirmed + return t.ID } -func (t *CreateUser_CreateUser_User_Setting) GetLocked() bool { + +type UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken struct { + ClaimsEmail string "json:\"claimsEmail\" graphql:\"claimsEmail\"" + ClaimsEmailVerified bool "json:\"claimsEmailVerified\" graphql:\"claimsEmailVerified\"" + ClaimsGroups []string "json:\"claimsGroups,omitempty\" graphql:\"claimsGroups\"" + ClaimsPreferredUsername string "json:\"claimsPreferredUsername\" graphql:\"claimsPreferredUsername\"" + ClaimsUserID string "json:\"claimsUserID\" graphql:\"claimsUserID\"" + ClaimsUsername string "json:\"claimsUsername\" graphql:\"claimsUsername\"" + ClientID string "json:\"clientID\" graphql:\"clientID\"" + ConnectorData []string "json:\"connectorData,omitempty\" graphql:\"connectorData\"" + ConnectorID string "json:\"connectorID\" graphql:\"connectorID\"" + ID string "json:\"id\" graphql:\"id\"" + LastUsed time.Time "json:\"lastUsed\" graphql:\"lastUsed\"" + Nonce string "json:\"nonce\" graphql:\"nonce\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Integration []*UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Integration "json:\"integration,omitempty\" graphql:\"integration\"" + Events []*UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Events "json:\"events,omitempty\" graphql:\"events\"" +} + +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClaimsEmail() string { if t == nil { - t = &CreateUser_CreateUser_User_Setting{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.Locked + return t.ClaimsEmail } -func (t *CreateUser_CreateUser_User_Setting) GetSilencedAt() *time.Time { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClaimsEmailVerified() bool { if t == nil { - t = &CreateUser_CreateUser_User_Setting{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.SilencedAt + return t.ClaimsEmailVerified } -func (t *CreateUser_CreateUser_User_Setting) GetStatus() *enums.UserStatus { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClaimsGroups() []string { if t == nil { - t = &CreateUser_CreateUser_User_Setting{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return &t.Status + return t.ClaimsGroups } -func (t *CreateUser_CreateUser_User_Setting) GetSuspendedAt() *time.Time { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClaimsPreferredUsername() string { if t == nil { - t = &CreateUser_CreateUser_User_Setting{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.SuspendedAt + return t.ClaimsPreferredUsername } -func (t *CreateUser_CreateUser_User_Setting) GetTags() []string { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClaimsUserID() string { if t == nil { - t = &CreateUser_CreateUser_User_Setting{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.Tags + return t.ClaimsUserID } -func (t *CreateUser_CreateUser_User_Setting) GetUpdatedAt() *time.Time { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClaimsUsername() string { if t == nil { - t = &CreateUser_CreateUser_User_Setting{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.UpdatedAt + return t.ClaimsUsername } -func (t *CreateUser_CreateUser_User_Setting) GetUpdatedBy() *string { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetClientID() string { if t == nil { - t = &CreateUser_CreateUser_User_Setting{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.UpdatedBy -} - -type CreateUser_CreateUser_User struct { - AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" - AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" - AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" - AvatarLocalFileID *string "json:\"avatarLocalFileID,omitempty\" graphql:\"avatarLocalFileID\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - ID string "json:\"id\" graphql:\"id\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" - Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - OrgMemberships []*CreateUser_CreateUser_User_OrgMemberships "json:\"orgMemberships,omitempty\" graphql:\"orgMemberships\"" - GroupMemberships []*CreateUser_CreateUser_User_GroupMemberships "json:\"groupMemberships,omitempty\" graphql:\"groupMemberships\"" - Setting CreateUser_CreateUser_User_Setting "json:\"setting\" graphql:\"setting\"" + return t.ClientID } - -func (t *CreateUser_CreateUser_User) GetAuthProvider() *enums.AuthProvider { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetConnectorData() []string { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return &t.AuthProvider + return t.ConnectorData } -func (t *CreateUser_CreateUser_User) GetAvatarLocalFile() *string { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetConnectorID() string { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.AvatarLocalFile + return t.ConnectorID } -func (t *CreateUser_CreateUser_User) GetAvatarRemoteURL() *string { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetID() string { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.AvatarRemoteURL + return t.ID } -func (t *CreateUser_CreateUser_User) GetAvatarLocalFileID() *string { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetLastUsed() *time.Time { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.AvatarLocalFileID + return &t.LastUsed } -func (t *CreateUser_CreateUser_User) GetDisplayName() string { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetNonce() string { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.DisplayName + return t.Nonce } -func (t *CreateUser_CreateUser_User) GetEmail() string { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetScopes() []string { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.Email + return t.Scopes } -func (t *CreateUser_CreateUser_User) GetFirstName() *string { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetIntegration() []*UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Integration { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.FirstName + return t.Integration } -func (t *CreateUser_CreateUser_User) GetID() string { +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken) GetEvents() []*UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken_Events { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken{} } - return t.ID + return t.Events } -func (t *CreateUser_CreateUser_User) GetLastName() *string { + +type UpdateOhAuthTooToken_UpdateOhAuthTooToken struct { + OhAuthTooToken UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken "json:\"ohAuthTooToken\" graphql:\"ohAuthTooToken\"" +} + +func (t *UpdateOhAuthTooToken_UpdateOhAuthTooToken) GetOhAuthTooToken() *UpdateOhAuthTooToken_UpdateOhAuthTooToken_OhAuthTooToken { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &UpdateOhAuthTooToken_UpdateOhAuthTooToken{} } - return t.LastName + return &t.OhAuthTooToken } -func (t *CreateUser_CreateUser_User) GetSub() *string { + +type CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations) GetID() string { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations{} } - return t.Sub + return t.ID } -func (t *CreateUser_CreateUser_User) GetTags() []string { +func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations) GetName() string { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations{} } - return t.Tags + return t.Name } -func (t *CreateUser_CreateUser_User) GetOrgMemberships() []*CreateUser_CreateUser_User_OrgMemberships { +func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations) GetDisplayName() string { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations{} } - return t.OrgMemberships + return t.DisplayName } -func (t *CreateUser_CreateUser_User) GetGroupMemberships() []*CreateUser_CreateUser_User_GroupMemberships { +func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations) GetDescription() *string { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations{} } - return t.GroupMemberships + return t.Description } -func (t *CreateUser_CreateUser_User) GetSetting() *CreateUser_CreateUser_User_Setting { +func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations) GetPersonalOrg() *bool { if t == nil { - t = &CreateUser_CreateUser_User{} + t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations{} } - return &t.Setting -} - -type CreateUser_CreateUser struct { - User CreateUser_CreateUser_User "json:\"user\" graphql:\"user\"" + return t.PersonalOrg } - -func (t *CreateUser_CreateUser) GetUser() *CreateUser_CreateUser_User { +func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations) GetTags() []string { if t == nil { - t = &CreateUser_CreateUser{} + t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations{} } - return &t.User + return t.Tags } -type DeleteUser_DeleteUser struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type CreateBulkCSVOrganization_CreateBulkCSVOrganization struct { + Organizations []*CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" } -func (t *DeleteUser_DeleteUser) GetDeletedID() string { +func (t *CreateBulkCSVOrganization_CreateBulkCSVOrganization) GetOrganizations() []*CreateBulkCSVOrganization_CreateBulkCSVOrganization_Organizations { if t == nil { - t = &DeleteUser_DeleteUser{} + t = &CreateBulkCSVOrganization_CreateBulkCSVOrganization{} } - return t.DeletedID + return t.Organizations } -type GetAllUsers_Users_Edges_Node_Setting_DefaultOrg struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +type CreateBulkOrganization_CreateBulkOrganization_Organizations struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *GetAllUsers_Users_Edges_Node_Setting_DefaultOrg) GetID() string { +func (t *CreateBulkOrganization_CreateBulkOrganization_Organizations) GetID() string { if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting_DefaultOrg{} + t = &CreateBulkOrganization_CreateBulkOrganization_Organizations{} } return t.ID } -func (t *GetAllUsers_Users_Edges_Node_Setting_DefaultOrg) GetName() string { +func (t *CreateBulkOrganization_CreateBulkOrganization_Organizations) GetName() string { if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting_DefaultOrg{} + t = &CreateBulkOrganization_CreateBulkOrganization_Organizations{} } return t.Name } -func (t *GetAllUsers_Users_Edges_Node_Setting_DefaultOrg) GetPersonalOrg() *bool { - if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting_DefaultOrg{} - } - return t.PersonalOrg -} - -type GetAllUsers_Users_Edges_Node_Setting struct { - DefaultOrg *GetAllUsers_Users_Edges_Node_Setting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" - Locked bool "json:\"locked\" graphql:\"locked\"" - SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" -} - -func (t *GetAllUsers_Users_Edges_Node_Setting) GetDefaultOrg() *GetAllUsers_Users_Edges_Node_Setting_DefaultOrg { +func (t *CreateBulkOrganization_CreateBulkOrganization_Organizations) GetDisplayName() string { if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting{} + t = &CreateBulkOrganization_CreateBulkOrganization_Organizations{} } - return t.DefaultOrg + return t.DisplayName } -func (t *GetAllUsers_Users_Edges_Node_Setting) GetCreatedAt() *time.Time { +func (t *CreateBulkOrganization_CreateBulkOrganization_Organizations) GetDescription() *string { if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting{} + t = &CreateBulkOrganization_CreateBulkOrganization_Organizations{} } - return t.CreatedAt + return t.Description } -func (t *GetAllUsers_Users_Edges_Node_Setting) GetCreatedBy() *string { +func (t *CreateBulkOrganization_CreateBulkOrganization_Organizations) GetPersonalOrg() *bool { if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting{} + t = &CreateBulkOrganization_CreateBulkOrganization_Organizations{} } - return t.CreatedBy + return t.PersonalOrg } -func (t *GetAllUsers_Users_Edges_Node_Setting) GetEmailConfirmed() bool { +func (t *CreateBulkOrganization_CreateBulkOrganization_Organizations) GetTags() []string { if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting{} + t = &CreateBulkOrganization_CreateBulkOrganization_Organizations{} } - return t.EmailConfirmed + return t.Tags } -func (t *GetAllUsers_Users_Edges_Node_Setting) GetLocked() bool { - if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting{} - } - return t.Locked + +type CreateBulkOrganization_CreateBulkOrganization struct { + Organizations []*CreateBulkOrganization_CreateBulkOrganization_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" } -func (t *GetAllUsers_Users_Edges_Node_Setting) GetSilencedAt() *time.Time { + +func (t *CreateBulkOrganization_CreateBulkOrganization) GetOrganizations() []*CreateBulkOrganization_CreateBulkOrganization_Organizations { if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting{} + t = &CreateBulkOrganization_CreateBulkOrganization{} } - return t.SilencedAt + return t.Organizations } -func (t *GetAllUsers_Users_Edges_Node_Setting) GetStatus() *enums.UserStatus { - if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting{} - } - return &t.Status + +type CreateOrganization_CreateOrganization_Organization_Setting struct { + ID string "json:\"id\" graphql:\"id\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" + BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" + BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" + BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" + TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" + GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *GetAllUsers_Users_Edges_Node_Setting) GetSuspendedAt() *time.Time { + +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetID() string { if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } - return t.SuspendedAt + return t.ID } -func (t *GetAllUsers_Users_Edges_Node_Setting) GetTags() []string { +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } - return t.Tags + return t.CreatedAt } -func (t *GetAllUsers_Users_Edges_Node_Setting) GetUpdatedAt() *time.Time { +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } return t.UpdatedAt } -func (t *GetAllUsers_Users_Edges_Node_Setting) GetUpdatedBy() *string { +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetCreatedBy() *string { if t == nil { - t = &GetAllUsers_Users_Edges_Node_Setting{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } - return t.UpdatedBy -} - -type GetAllUsers_Users_Edges_Node struct { - AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" - AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" - AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" - AvatarLocalFileID *string "json:\"avatarLocalFileID,omitempty\" graphql:\"avatarLocalFileID\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - ID string "json:\"id\" graphql:\"id\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" - LastSeen *time.Time "json:\"lastSeen,omitempty\" graphql:\"lastSeen\"" - Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Setting GetAllUsers_Users_Edges_Node_Setting "json:\"setting\" graphql:\"setting\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.CreatedBy } - -func (t *GetAllUsers_Users_Edges_Node) GetAuthProvider() *enums.AuthProvider { +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetUpdatedBy() *string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } - return &t.AuthProvider + return t.UpdatedBy } -func (t *GetAllUsers_Users_Edges_Node) GetAvatarLocalFile() *string { +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetDomains() []string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } - return t.AvatarLocalFile + return t.Domains } -func (t *GetAllUsers_Users_Edges_Node) GetAvatarRemoteURL() *string { +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetBillingContact() *string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } - return t.AvatarRemoteURL + return t.BillingContact } -func (t *GetAllUsers_Users_Edges_Node) GetAvatarLocalFileID() *string { +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetBillingEmail() *string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } - return t.AvatarLocalFileID + return t.BillingEmail } -func (t *GetAllUsers_Users_Edges_Node) GetDisplayName() string { +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetBillingPhone() *string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } - return t.DisplayName + return t.BillingPhone } -func (t *GetAllUsers_Users_Edges_Node) GetEmail() string { +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetBillingAddress() *string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } - return t.Email + return t.BillingAddress } -func (t *GetAllUsers_Users_Edges_Node) GetFirstName() *string { +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetTaxIdentifier() *string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } - return t.FirstName + return t.TaxIdentifier } -func (t *GetAllUsers_Users_Edges_Node) GetID() string { +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetGeoLocation() *enums.Region { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } - return t.ID + return t.GeoLocation } -func (t *GetAllUsers_Users_Edges_Node) GetLastName() *string { +func (t *CreateOrganization_CreateOrganization_Organization_Setting) GetTags() []string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Setting{} } - return t.LastName + return t.Tags } -func (t *GetAllUsers_Users_Edges_Node) GetLastSeen() *time.Time { - if t == nil { - t = &GetAllUsers_Users_Edges_Node{} - } - return t.LastSeen + +type CreateOrganization_CreateOrganization_Organization_Parent struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetAllUsers_Users_Edges_Node) GetSub() *string { + +func (t *CreateOrganization_CreateOrganization_Organization_Parent) GetID() string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Parent{} } - return t.Sub + return t.ID } -func (t *GetAllUsers_Users_Edges_Node) GetTags() []string { +func (t *CreateOrganization_CreateOrganization_Organization_Parent) GetName() string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Parent{} } - return t.Tags + return t.Name } -func (t *GetAllUsers_Users_Edges_Node) GetSetting() *GetAllUsers_Users_Edges_Node_Setting { - if t == nil { - t = &GetAllUsers_Users_Edges_Node{} - } - return &t.Setting + +type CreateOrganization_CreateOrganization_Organization_Children_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" } -func (t *GetAllUsers_Users_Edges_Node) GetCreatedAt() *time.Time { + +func (t *CreateOrganization_CreateOrganization_Organization_Children_Edges_Node) GetID() string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Children_Edges_Node{} } - return t.CreatedAt + return t.ID } -func (t *GetAllUsers_Users_Edges_Node) GetCreatedBy() *string { +func (t *CreateOrganization_CreateOrganization_Organization_Children_Edges_Node) GetName() string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Children_Edges_Node{} } - return t.CreatedBy + return t.Name } -func (t *GetAllUsers_Users_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateOrganization_CreateOrganization_Organization_Children_Edges_Node) GetDisplayName() string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Children_Edges_Node{} } - return t.UpdatedAt + return t.DisplayName } -func (t *GetAllUsers_Users_Edges_Node) GetUpdatedBy() *string { +func (t *CreateOrganization_CreateOrganization_Organization_Children_Edges_Node) GetDescription() *string { if t == nil { - t = &GetAllUsers_Users_Edges_Node{} + t = &CreateOrganization_CreateOrganization_Organization_Children_Edges_Node{} } - return t.UpdatedBy + return t.Description } -type GetAllUsers_Users_Edges struct { - Node *GetAllUsers_Users_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateOrganization_CreateOrganization_Organization_Children_Edges struct { + Node *CreateOrganization_CreateOrganization_Organization_Children_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllUsers_Users_Edges) GetNode() *GetAllUsers_Users_Edges_Node { +func (t *CreateOrganization_CreateOrganization_Organization_Children_Edges) GetNode() *CreateOrganization_CreateOrganization_Organization_Children_Edges_Node { if t == nil { - t = &GetAllUsers_Users_Edges{} + t = &CreateOrganization_CreateOrganization_Organization_Children_Edges{} } return t.Node } -type GetAllUsers_Users struct { - Edges []*GetAllUsers_Users_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateOrganization_CreateOrganization_Organization_Children struct { + Edges []*CreateOrganization_CreateOrganization_Organization_Children_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllUsers_Users) GetEdges() []*GetAllUsers_Users_Edges { +func (t *CreateOrganization_CreateOrganization_Organization_Children) GetEdges() []*CreateOrganization_CreateOrganization_Organization_Children_Edges { if t == nil { - t = &GetAllUsers_Users{} + t = &CreateOrganization_CreateOrganization_Organization_Children{} } return t.Edges } -type GetUserByID_User_Setting_DefaultOrg struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +type CreateOrganization_CreateOrganization_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + Setting *CreateOrganization_CreateOrganization_Organization_Setting "json:\"setting,omitempty\" graphql:\"setting\"" + Parent *CreateOrganization_CreateOrganization_Organization_Parent "json:\"parent,omitempty\" graphql:\"parent\"" + Children CreateOrganization_CreateOrganization_Organization_Children "json:\"children\" graphql:\"children\"" } -func (t *GetUserByID_User_Setting_DefaultOrg) GetID() string { +func (t *CreateOrganization_CreateOrganization_Organization) GetID() string { if t == nil { - t = &GetUserByID_User_Setting_DefaultOrg{} + t = &CreateOrganization_CreateOrganization_Organization{} } return t.ID } -func (t *GetUserByID_User_Setting_DefaultOrg) GetName() string { +func (t *CreateOrganization_CreateOrganization_Organization) GetName() string { if t == nil { - t = &GetUserByID_User_Setting_DefaultOrg{} + t = &CreateOrganization_CreateOrganization_Organization{} } return t.Name } -func (t *GetUserByID_User_Setting_DefaultOrg) GetPersonalOrg() *bool { +func (t *CreateOrganization_CreateOrganization_Organization) GetDisplayName() string { if t == nil { - t = &GetUserByID_User_Setting_DefaultOrg{} + t = &CreateOrganization_CreateOrganization_Organization{} } - return t.PersonalOrg -} - -type GetUserByID_User_Setting struct { - DefaultOrg *GetUserByID_User_Setting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" - Locked bool "json:\"locked\" graphql:\"locked\"" - SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.DisplayName } - -func (t *GetUserByID_User_Setting) GetDefaultOrg() *GetUserByID_User_Setting_DefaultOrg { +func (t *CreateOrganization_CreateOrganization_Organization) GetDescription() *string { if t == nil { - t = &GetUserByID_User_Setting{} + t = &CreateOrganization_CreateOrganization_Organization{} } - return t.DefaultOrg + return t.Description } -func (t *GetUserByID_User_Setting) GetCreatedAt() *time.Time { +func (t *CreateOrganization_CreateOrganization_Organization) GetPersonalOrg() *bool { if t == nil { - t = &GetUserByID_User_Setting{} + t = &CreateOrganization_CreateOrganization_Organization{} } - return t.CreatedAt + return t.PersonalOrg } -func (t *GetUserByID_User_Setting) GetCreatedBy() *string { +func (t *CreateOrganization_CreateOrganization_Organization) GetTags() []string { if t == nil { - t = &GetUserByID_User_Setting{} + t = &CreateOrganization_CreateOrganization_Organization{} } - return t.CreatedBy + return t.Tags } -func (t *GetUserByID_User_Setting) GetEmailConfirmed() bool { +func (t *CreateOrganization_CreateOrganization_Organization) GetCreatedAt() *time.Time { if t == nil { - t = &GetUserByID_User_Setting{} + t = &CreateOrganization_CreateOrganization_Organization{} } - return t.EmailConfirmed + return t.CreatedAt } -func (t *GetUserByID_User_Setting) GetLocked() bool { +func (t *CreateOrganization_CreateOrganization_Organization) GetUpdatedAt() *time.Time { if t == nil { - t = &GetUserByID_User_Setting{} + t = &CreateOrganization_CreateOrganization_Organization{} } - return t.Locked + return t.UpdatedAt } -func (t *GetUserByID_User_Setting) GetSilencedAt() *time.Time { +func (t *CreateOrganization_CreateOrganization_Organization) GetSetting() *CreateOrganization_CreateOrganization_Organization_Setting { if t == nil { - t = &GetUserByID_User_Setting{} + t = &CreateOrganization_CreateOrganization_Organization{} } - return t.SilencedAt + return t.Setting } -func (t *GetUserByID_User_Setting) GetStatus() *enums.UserStatus { +func (t *CreateOrganization_CreateOrganization_Organization) GetParent() *CreateOrganization_CreateOrganization_Organization_Parent { if t == nil { - t = &GetUserByID_User_Setting{} + t = &CreateOrganization_CreateOrganization_Organization{} } - return &t.Status + return t.Parent } -func (t *GetUserByID_User_Setting) GetSuspendedAt() *time.Time { +func (t *CreateOrganization_CreateOrganization_Organization) GetChildren() *CreateOrganization_CreateOrganization_Organization_Children { if t == nil { - t = &GetUserByID_User_Setting{} + t = &CreateOrganization_CreateOrganization_Organization{} } - return t.SuspendedAt + return &t.Children } -func (t *GetUserByID_User_Setting) GetTags() []string { - if t == nil { - t = &GetUserByID_User_Setting{} - } - return t.Tags + +type CreateOrganization_CreateOrganization struct { + Organization CreateOrganization_CreateOrganization_Organization "json:\"organization\" graphql:\"organization\"" } -func (t *GetUserByID_User_Setting) GetUpdatedAt() *time.Time { + +func (t *CreateOrganization_CreateOrganization) GetOrganization() *CreateOrganization_CreateOrganization_Organization { if t == nil { - t = &GetUserByID_User_Setting{} + t = &CreateOrganization_CreateOrganization{} } - return t.UpdatedAt + return &t.Organization } -func (t *GetUserByID_User_Setting) GetUpdatedBy() *string { + +type DeleteOrganization_DeleteOrganization struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +} + +func (t *DeleteOrganization_DeleteOrganization) GetDeletedID() string { if t == nil { - t = &GetUserByID_User_Setting{} + t = &DeleteOrganization_DeleteOrganization{} } - return t.UpdatedBy + return t.DeletedID } -type GetUserByID_User_Organizations_Members struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" +type GetAllOrganizations_Organizations_Edges_Node_Parent struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetUserByID_User_Organizations_Members) GetID() string { +func (t *GetAllOrganizations_Organizations_Edges_Node_Parent) GetID() string { if t == nil { - t = &GetUserByID_User_Organizations_Members{} + t = &GetAllOrganizations_Organizations_Edges_Node_Parent{} } return t.ID } -func (t *GetUserByID_User_Organizations_Members) GetRole() *enums.Role { +func (t *GetAllOrganizations_Organizations_Edges_Node_Parent) GetName() string { if t == nil { - t = &GetUserByID_User_Organizations_Members{} + t = &GetAllOrganizations_Organizations_Edges_Node_Parent{} } - return &t.Role + return t.Name } -type GetUserByID_User_Organizations struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" - Members []*GetUserByID_User_Organizations_Members "json:\"members,omitempty\" graphql:\"members\"" +type GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" } -func (t *GetUserByID_User_Organizations) GetID() string { +func (t *GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetID() string { if t == nil { - t = &GetUserByID_User_Organizations{} + t = &GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node{} } return t.ID } -func (t *GetUserByID_User_Organizations) GetName() string { +func (t *GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetName() string { if t == nil { - t = &GetUserByID_User_Organizations{} + t = &GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node{} } return t.Name } -func (t *GetUserByID_User_Organizations) GetPersonalOrg() *bool { +func (t *GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetDisplayName() string { if t == nil { - t = &GetUserByID_User_Organizations{} + t = &GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node{} } - return t.PersonalOrg + return t.DisplayName } -func (t *GetUserByID_User_Organizations) GetMembers() []*GetUserByID_User_Organizations_Members { +func (t *GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetDescription() *string { if t == nil { - t = &GetUserByID_User_Organizations{} + t = &GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node{} } - return t.Members + return t.Description } -type GetUserByID_User struct { - AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" - AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" - AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" - AvatarLocalFileID *string "json:\"avatarLocalFileID,omitempty\" graphql:\"avatarLocalFileID\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - ID string "json:\"id\" graphql:\"id\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" - LastSeen *time.Time "json:\"lastSeen,omitempty\" graphql:\"lastSeen\"" - Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Setting GetUserByID_User_Setting "json:\"setting\" graphql:\"setting\"" - Organizations []*GetUserByID_User_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" +type GetAllOrganizations_Organizations_Edges_Node_Children_Edges struct { + Node *GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetUserByID_User) GetAuthProvider() *enums.AuthProvider { +func (t *GetAllOrganizations_Organizations_Edges_Node_Children_Edges) GetNode() *GetAllOrganizations_Organizations_Edges_Node_Children_Edges_Node { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Children_Edges{} } - return &t.AuthProvider + return t.Node } -func (t *GetUserByID_User) GetAvatarLocalFile() *string { + +type GetAllOrganizations_Organizations_Edges_Node_Children struct { + Edges []*GetAllOrganizations_Organizations_Edges_Node_Children_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllOrganizations_Organizations_Edges_Node_Children) GetEdges() []*GetAllOrganizations_Organizations_Edges_Node_Children_Edges { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Children{} } - return t.AvatarLocalFile + return t.Edges } -func (t *GetUserByID_User) GetAvatarRemoteURL() *string { + +type GetAllOrganizations_Organizations_Edges_Node_Members_User struct { + ID string "json:\"id\" graphql:\"id\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +} + +func (t *GetAllOrganizations_Organizations_Edges_Node_Members_User) GetID() string { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Members_User{} } - return t.AvatarRemoteURL + return t.ID } -func (t *GetUserByID_User) GetAvatarLocalFileID() *string { +func (t *GetAllOrganizations_Organizations_Edges_Node_Members_User) GetFirstName() *string { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Members_User{} } - return t.AvatarLocalFileID + return t.FirstName } -func (t *GetUserByID_User) GetDisplayName() string { +func (t *GetAllOrganizations_Organizations_Edges_Node_Members_User) GetLastName() *string { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Members_User{} } - return t.DisplayName + return t.LastName } -func (t *GetUserByID_User) GetEmail() string { + +type GetAllOrganizations_Organizations_Edges_Node_Members struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + User GetAllOrganizations_Organizations_Edges_Node_Members_User "json:\"user\" graphql:\"user\"" +} + +func (t *GetAllOrganizations_Organizations_Edges_Node_Members) GetID() string { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Members{} } - return t.Email + return t.ID } -func (t *GetUserByID_User) GetFirstName() *string { +func (t *GetAllOrganizations_Organizations_Edges_Node_Members) GetRole() *enums.Role { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Members{} } - return t.FirstName + return &t.Role } -func (t *GetUserByID_User) GetID() string { +func (t *GetAllOrganizations_Organizations_Edges_Node_Members) GetUser() *GetAllOrganizations_Organizations_Edges_Node_Members_User { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Members{} + } + return &t.User +} + +type GetAllOrganizations_Organizations_Edges_Node_Setting struct { + ID string "json:\"id\" graphql:\"id\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" + BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" + BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" + BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" + TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" + GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetID() string { + if t == nil { + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} } return t.ID } -func (t *GetUserByID_User) GetLastName() *string { +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetCreatedAt() *time.Time { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} } - return t.LastName + return t.CreatedAt } -func (t *GetUserByID_User) GetLastSeen() *time.Time { +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetUpdatedAt() *time.Time { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} } - return t.LastSeen + return t.UpdatedAt } -func (t *GetUserByID_User) GetSub() *string { +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetCreatedBy() *string { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} } - return t.Sub + return t.CreatedBy } -func (t *GetUserByID_User) GetTags() []string { +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetUpdatedBy() *string { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} } - return t.Tags + return t.UpdatedBy } -func (t *GetUserByID_User) GetSetting() *GetUserByID_User_Setting { +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetDomains() []string { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} } - return &t.Setting + return t.Domains } -func (t *GetUserByID_User) GetOrganizations() []*GetUserByID_User_Organizations { +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetBillingContact() *string { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} } - return t.Organizations + return t.BillingContact } -func (t *GetUserByID_User) GetUpdatedAt() *time.Time { +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetBillingEmail() *string { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} } - return t.UpdatedAt + return t.BillingEmail } -func (t *GetUserByID_User) GetUpdatedBy() *string { +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetBillingPhone() *string { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} } - return t.UpdatedBy + return t.BillingPhone } -func (t *GetUserByID_User) GetCreatedAt() *time.Time { +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetBillingAddress() *string { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} } - return t.CreatedAt + return t.BillingAddress } -func (t *GetUserByID_User) GetCreatedBy() *string { +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetTaxIdentifier() *string { if t == nil { - t = &GetUserByID_User{} + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} } - return t.CreatedBy + return t.TaxIdentifier +} +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetGeoLocation() *enums.Region { + if t == nil { + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + } + return t.GeoLocation +} +func (t *GetAllOrganizations_Organizations_Edges_Node_Setting) GetTags() []string { + if t == nil { + t = &GetAllOrganizations_Organizations_Edges_Node_Setting{} + } + return t.Tags } -type GetUserByIDWithOrgs_User_Setting_DefaultOrg struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +type GetAllOrganizations_Organizations_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Parent *GetAllOrganizations_Organizations_Edges_Node_Parent "json:\"parent,omitempty\" graphql:\"parent\"" + Children GetAllOrganizations_Organizations_Edges_Node_Children "json:\"children\" graphql:\"children\"" + Members []*GetAllOrganizations_Organizations_Edges_Node_Members "json:\"members,omitempty\" graphql:\"members\"" + Setting *GetAllOrganizations_Organizations_Edges_Node_Setting "json:\"setting,omitempty\" graphql:\"setting\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" } -func (t *GetUserByIDWithOrgs_User_Setting_DefaultOrg) GetID() string { +func (t *GetAllOrganizations_Organizations_Edges_Node) GetID() string { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting_DefaultOrg{} + t = &GetAllOrganizations_Organizations_Edges_Node{} } return t.ID } -func (t *GetUserByIDWithOrgs_User_Setting_DefaultOrg) GetName() string { +func (t *GetAllOrganizations_Organizations_Edges_Node) GetName() string { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting_DefaultOrg{} + t = &GetAllOrganizations_Organizations_Edges_Node{} } return t.Name } -func (t *GetUserByIDWithOrgs_User_Setting_DefaultOrg) GetPersonalOrg() *bool { +func (t *GetAllOrganizations_Organizations_Edges_Node) GetDisplayName() string { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting_DefaultOrg{} + t = &GetAllOrganizations_Organizations_Edges_Node{} } - return t.PersonalOrg -} - -type GetUserByIDWithOrgs_User_Setting struct { - DefaultOrg *GetUserByIDWithOrgs_User_Setting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" - Locked bool "json:\"locked\" graphql:\"locked\"" - SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.DisplayName } - -func (t *GetUserByIDWithOrgs_User_Setting) GetDefaultOrg() *GetUserByIDWithOrgs_User_Setting_DefaultOrg { +func (t *GetAllOrganizations_Organizations_Edges_Node) GetDescription() *string { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting{} + t = &GetAllOrganizations_Organizations_Edges_Node{} } - return t.DefaultOrg + return t.Description } -func (t *GetUserByIDWithOrgs_User_Setting) GetCreatedAt() *time.Time { +func (t *GetAllOrganizations_Organizations_Edges_Node) GetPersonalOrg() *bool { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting{} + t = &GetAllOrganizations_Organizations_Edges_Node{} } - return t.CreatedAt + return t.PersonalOrg } -func (t *GetUserByIDWithOrgs_User_Setting) GetCreatedBy() *string { +func (t *GetAllOrganizations_Organizations_Edges_Node) GetTags() []string { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting{} + t = &GetAllOrganizations_Organizations_Edges_Node{} } - return t.CreatedBy + return t.Tags } -func (t *GetUserByIDWithOrgs_User_Setting) GetEmailConfirmed() bool { +func (t *GetAllOrganizations_Organizations_Edges_Node) GetParent() *GetAllOrganizations_Organizations_Edges_Node_Parent { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting{} + t = &GetAllOrganizations_Organizations_Edges_Node{} } - return t.EmailConfirmed + return t.Parent } -func (t *GetUserByIDWithOrgs_User_Setting) GetLocked() bool { +func (t *GetAllOrganizations_Organizations_Edges_Node) GetChildren() *GetAllOrganizations_Organizations_Edges_Node_Children { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting{} + t = &GetAllOrganizations_Organizations_Edges_Node{} } - return t.Locked + return &t.Children } -func (t *GetUserByIDWithOrgs_User_Setting) GetSilencedAt() *time.Time { +func (t *GetAllOrganizations_Organizations_Edges_Node) GetMembers() []*GetAllOrganizations_Organizations_Edges_Node_Members { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting{} + t = &GetAllOrganizations_Organizations_Edges_Node{} } - return t.SilencedAt + return t.Members } -func (t *GetUserByIDWithOrgs_User_Setting) GetStatus() *enums.UserStatus { +func (t *GetAllOrganizations_Organizations_Edges_Node) GetSetting() *GetAllOrganizations_Organizations_Edges_Node_Setting { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting{} + t = &GetAllOrganizations_Organizations_Edges_Node{} } - return &t.Status + return t.Setting } -func (t *GetUserByIDWithOrgs_User_Setting) GetSuspendedAt() *time.Time { +func (t *GetAllOrganizations_Organizations_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting{} + t = &GetAllOrganizations_Organizations_Edges_Node{} } - return t.SuspendedAt + return t.CreatedAt } -func (t *GetUserByIDWithOrgs_User_Setting) GetTags() []string { +func (t *GetAllOrganizations_Organizations_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting{} + t = &GetAllOrganizations_Organizations_Edges_Node{} } - return t.Tags + return t.UpdatedAt } -func (t *GetUserByIDWithOrgs_User_Setting) GetUpdatedAt() *time.Time { + +type GetAllOrganizations_Organizations_Edges struct { + Node *GetAllOrganizations_Organizations_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllOrganizations_Organizations_Edges) GetNode() *GetAllOrganizations_Organizations_Edges_Node { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting{} + t = &GetAllOrganizations_Organizations_Edges{} } - return t.UpdatedAt + return t.Node } -func (t *GetUserByIDWithOrgs_User_Setting) GetUpdatedBy() *string { + +type GetAllOrganizations_Organizations struct { + Edges []*GetAllOrganizations_Organizations_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllOrganizations_Organizations) GetEdges() []*GetAllOrganizations_Organizations_Edges { if t == nil { - t = &GetUserByIDWithOrgs_User_Setting{} + t = &GetAllOrganizations_Organizations{} } - return t.UpdatedBy + return t.Edges } -type GetUserByIDWithOrgs_User_OrgMemberships_User struct { - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +type GetOrganizationByID_Organization_Parent struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetUserByIDWithOrgs_User_OrgMemberships_User) GetFirstName() *string { +func (t *GetOrganizationByID_Organization_Parent) GetID() string { if t == nil { - t = &GetUserByIDWithOrgs_User_OrgMemberships_User{} + t = &GetOrganizationByID_Organization_Parent{} } - return t.FirstName + return t.ID } -func (t *GetUserByIDWithOrgs_User_OrgMemberships_User) GetLastName() *string { +func (t *GetOrganizationByID_Organization_Parent) GetName() string { if t == nil { - t = &GetUserByIDWithOrgs_User_OrgMemberships_User{} + t = &GetOrganizationByID_Organization_Parent{} } - return t.LastName + return t.Name } -type GetUserByIDWithOrgs_User_OrgMemberships struct { - ID string "json:\"id\" graphql:\"id\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - User GetUserByIDWithOrgs_User_OrgMemberships_User "json:\"user\" graphql:\"user\"" +type GetOrganizationByID_Organization_Children_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" } -func (t *GetUserByIDWithOrgs_User_OrgMemberships) GetID() string { +func (t *GetOrganizationByID_Organization_Children_Edges_Node) GetID() string { if t == nil { - t = &GetUserByIDWithOrgs_User_OrgMemberships{} + t = &GetOrganizationByID_Organization_Children_Edges_Node{} } return t.ID } -func (t *GetUserByIDWithOrgs_User_OrgMemberships) GetRole() *enums.Role { +func (t *GetOrganizationByID_Organization_Children_Edges_Node) GetName() string { if t == nil { - t = &GetUserByIDWithOrgs_User_OrgMemberships{} + t = &GetOrganizationByID_Organization_Children_Edges_Node{} } - return &t.Role + return t.Name } -func (t *GetUserByIDWithOrgs_User_OrgMemberships) GetUser() *GetUserByIDWithOrgs_User_OrgMemberships_User { +func (t *GetOrganizationByID_Organization_Children_Edges_Node) GetDisplayName() string { if t == nil { - t = &GetUserByIDWithOrgs_User_OrgMemberships{} + t = &GetOrganizationByID_Organization_Children_Edges_Node{} } - return &t.User + return t.DisplayName +} +func (t *GetOrganizationByID_Organization_Children_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetOrganizationByID_Organization_Children_Edges_Node{} + } + return t.Description } -type GetUserByIDWithOrgs_User struct { - AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" - AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" - AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" - AvatarLocalFileID *string "json:\"avatarLocalFileID,omitempty\" graphql:\"avatarLocalFileID\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - ID string "json:\"id\" graphql:\"id\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" - LastSeen *time.Time "json:\"lastSeen,omitempty\" graphql:\"lastSeen\"" - Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Setting GetUserByIDWithOrgs_User_Setting "json:\"setting\" graphql:\"setting\"" - OrgMemberships []*GetUserByIDWithOrgs_User_OrgMemberships "json:\"orgMemberships,omitempty\" graphql:\"orgMemberships\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetOrganizationByID_Organization_Children_Edges struct { + Node *GetOrganizationByID_Organization_Children_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetUserByIDWithOrgs_User) GetAuthProvider() *enums.AuthProvider { +func (t *GetOrganizationByID_Organization_Children_Edges) GetNode() *GetOrganizationByID_Organization_Children_Edges_Node { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Children_Edges{} } - return &t.AuthProvider + return t.Node } -func (t *GetUserByIDWithOrgs_User) GetAvatarLocalFile() *string { + +type GetOrganizationByID_Organization_Children struct { + Edges []*GetOrganizationByID_Organization_Children_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetOrganizationByID_Organization_Children) GetEdges() []*GetOrganizationByID_Organization_Children_Edges { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Children{} } - return t.AvatarLocalFile + return t.Edges } -func (t *GetUserByIDWithOrgs_User) GetAvatarRemoteURL() *string { + +type GetOrganizationByID_Organization_Members_User struct { + ID string "json:\"id\" graphql:\"id\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +} + +func (t *GetOrganizationByID_Organization_Members_User) GetID() string { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Members_User{} } - return t.AvatarRemoteURL + return t.ID } -func (t *GetUserByIDWithOrgs_User) GetAvatarLocalFileID() *string { +func (t *GetOrganizationByID_Organization_Members_User) GetFirstName() *string { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Members_User{} } - return t.AvatarLocalFileID + return t.FirstName } -func (t *GetUserByIDWithOrgs_User) GetDisplayName() string { +func (t *GetOrganizationByID_Organization_Members_User) GetLastName() *string { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Members_User{} } - return t.DisplayName + return t.LastName } -func (t *GetUserByIDWithOrgs_User) GetEmail() string { + +type GetOrganizationByID_Organization_Members struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + User GetOrganizationByID_Organization_Members_User "json:\"user\" graphql:\"user\"" +} + +func (t *GetOrganizationByID_Organization_Members) GetID() string { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Members{} } - return t.Email + return t.ID } -func (t *GetUserByIDWithOrgs_User) GetFirstName() *string { +func (t *GetOrganizationByID_Organization_Members) GetRole() *enums.Role { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Members{} } - return t.FirstName + return &t.Role } -func (t *GetUserByIDWithOrgs_User) GetID() string { +func (t *GetOrganizationByID_Organization_Members) GetUser() *GetOrganizationByID_Organization_Members_User { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Members{} } - return t.ID + return &t.User } -func (t *GetUserByIDWithOrgs_User) GetLastName() *string { + +type GetOrganizationByID_Organization_Setting struct { + ID string "json:\"id\" graphql:\"id\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" + BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" + BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" + BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" + TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" + GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GetOrganizationByID_Organization_Setting) GetID() string { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Setting{} } - return t.LastName + return t.ID } -func (t *GetUserByIDWithOrgs_User) GetLastSeen() *time.Time { +func (t *GetOrganizationByID_Organization_Setting) GetCreatedAt() *time.Time { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Setting{} } - return t.LastSeen + return t.CreatedAt } -func (t *GetUserByIDWithOrgs_User) GetSub() *string { +func (t *GetOrganizationByID_Organization_Setting) GetUpdatedAt() *time.Time { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Setting{} } - return t.Sub + return t.UpdatedAt } -func (t *GetUserByIDWithOrgs_User) GetTags() []string { +func (t *GetOrganizationByID_Organization_Setting) GetCreatedBy() *string { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Setting{} } - return t.Tags + return t.CreatedBy } -func (t *GetUserByIDWithOrgs_User) GetSetting() *GetUserByIDWithOrgs_User_Setting { +func (t *GetOrganizationByID_Organization_Setting) GetUpdatedBy() *string { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Setting{} } - return &t.Setting + return t.UpdatedBy } -func (t *GetUserByIDWithOrgs_User) GetOrgMemberships() []*GetUserByIDWithOrgs_User_OrgMemberships { +func (t *GetOrganizationByID_Organization_Setting) GetDomains() []string { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Setting{} } - return t.OrgMemberships + return t.Domains } -func (t *GetUserByIDWithOrgs_User) GetCreatedAt() *time.Time { +func (t *GetOrganizationByID_Organization_Setting) GetBillingContact() *string { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Setting{} } - return t.CreatedAt + return t.BillingContact } -func (t *GetUserByIDWithOrgs_User) GetCreatedBy() *string { +func (t *GetOrganizationByID_Organization_Setting) GetBillingEmail() *string { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Setting{} } - return t.CreatedBy + return t.BillingEmail } -func (t *GetUserByIDWithOrgs_User) GetUpdatedAt() *time.Time { +func (t *GetOrganizationByID_Organization_Setting) GetBillingPhone() *string { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Setting{} } - return t.UpdatedAt + return t.BillingPhone } -func (t *GetUserByIDWithOrgs_User) GetUpdatedBy() *string { +func (t *GetOrganizationByID_Organization_Setting) GetBillingAddress() *string { if t == nil { - t = &GetUserByIDWithOrgs_User{} + t = &GetOrganizationByID_Organization_Setting{} } - return t.UpdatedBy -} - -type UpdateUser_UpdateUser_User_GroupMemberships struct { - ID string "json:\"id\" graphql:\"id\"" + return t.BillingAddress } - -func (t *UpdateUser_UpdateUser_User_GroupMemberships) GetID() string { +func (t *GetOrganizationByID_Organization_Setting) GetTaxIdentifier() *string { if t == nil { - t = &UpdateUser_UpdateUser_User_GroupMemberships{} + t = &GetOrganizationByID_Organization_Setting{} } - return t.ID + return t.TaxIdentifier } - -type UpdateUser_UpdateUser_User_OrgMemberships struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetOrganizationByID_Organization_Setting) GetGeoLocation() *enums.Region { + if t == nil { + t = &GetOrganizationByID_Organization_Setting{} + } + return t.GeoLocation } - -func (t *UpdateUser_UpdateUser_User_OrgMemberships) GetID() string { +func (t *GetOrganizationByID_Organization_Setting) GetTags() []string { if t == nil { - t = &UpdateUser_UpdateUser_User_OrgMemberships{} + t = &GetOrganizationByID_Organization_Setting{} } - return t.ID + return t.Tags } -type UpdateUser_UpdateUser_User_Setting_DefaultOrg struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +type GetOrganizationByID_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Parent *GetOrganizationByID_Organization_Parent "json:\"parent,omitempty\" graphql:\"parent\"" + Children GetOrganizationByID_Organization_Children "json:\"children\" graphql:\"children\"" + Members []*GetOrganizationByID_Organization_Members "json:\"members,omitempty\" graphql:\"members\"" + Setting *GetOrganizationByID_Organization_Setting "json:\"setting,omitempty\" graphql:\"setting\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *UpdateUser_UpdateUser_User_Setting_DefaultOrg) GetID() string { +func (t *GetOrganizationByID_Organization) GetID() string { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting_DefaultOrg{} + t = &GetOrganizationByID_Organization{} } return t.ID } -func (t *UpdateUser_UpdateUser_User_Setting_DefaultOrg) GetName() string { +func (t *GetOrganizationByID_Organization) GetName() string { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting_DefaultOrg{} + t = &GetOrganizationByID_Organization{} } return t.Name } -func (t *UpdateUser_UpdateUser_User_Setting_DefaultOrg) GetPersonalOrg() *bool { +func (t *GetOrganizationByID_Organization) GetDisplayName() string { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting_DefaultOrg{} + t = &GetOrganizationByID_Organization{} } - return t.PersonalOrg -} - -type UpdateUser_UpdateUser_User_Setting struct { - DefaultOrg *UpdateUser_UpdateUser_User_Setting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" - Locked bool "json:\"locked\" graphql:\"locked\"" - SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.DisplayName } - -func (t *UpdateUser_UpdateUser_User_Setting) GetDefaultOrg() *UpdateUser_UpdateUser_User_Setting_DefaultOrg { +func (t *GetOrganizationByID_Organization) GetDescription() *string { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting{} + t = &GetOrganizationByID_Organization{} } - return t.DefaultOrg + return t.Description } -func (t *UpdateUser_UpdateUser_User_Setting) GetCreatedAt() *time.Time { +func (t *GetOrganizationByID_Organization) GetPersonalOrg() *bool { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting{} + t = &GetOrganizationByID_Organization{} } - return t.CreatedAt + return t.PersonalOrg } -func (t *UpdateUser_UpdateUser_User_Setting) GetCreatedBy() *string { +func (t *GetOrganizationByID_Organization) GetTags() []string { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting{} + t = &GetOrganizationByID_Organization{} } - return t.CreatedBy + return t.Tags } -func (t *UpdateUser_UpdateUser_User_Setting) GetEmailConfirmed() bool { +func (t *GetOrganizationByID_Organization) GetParent() *GetOrganizationByID_Organization_Parent { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting{} + t = &GetOrganizationByID_Organization{} } - return t.EmailConfirmed + return t.Parent } -func (t *UpdateUser_UpdateUser_User_Setting) GetLocked() bool { +func (t *GetOrganizationByID_Organization) GetChildren() *GetOrganizationByID_Organization_Children { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting{} + t = &GetOrganizationByID_Organization{} } - return t.Locked + return &t.Children } -func (t *UpdateUser_UpdateUser_User_Setting) GetSilencedAt() *time.Time { +func (t *GetOrganizationByID_Organization) GetMembers() []*GetOrganizationByID_Organization_Members { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting{} + t = &GetOrganizationByID_Organization{} } - return t.SilencedAt + return t.Members } -func (t *UpdateUser_UpdateUser_User_Setting) GetStatus() *enums.UserStatus { +func (t *GetOrganizationByID_Organization) GetSetting() *GetOrganizationByID_Organization_Setting { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting{} + t = &GetOrganizationByID_Organization{} } - return &t.Status + return t.Setting } -func (t *UpdateUser_UpdateUser_User_Setting) GetSuspendedAt() *time.Time { +func (t *GetOrganizationByID_Organization) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting{} + t = &GetOrganizationByID_Organization{} } - return t.SuspendedAt + return t.CreatedAt } -func (t *UpdateUser_UpdateUser_User_Setting) GetTags() []string { +func (t *GetOrganizationByID_Organization) GetCreatedBy() *string { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting{} + t = &GetOrganizationByID_Organization{} } - return t.Tags + return t.CreatedBy } -func (t *UpdateUser_UpdateUser_User_Setting) GetUpdatedAt() *time.Time { +func (t *GetOrganizationByID_Organization) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting{} + t = &GetOrganizationByID_Organization{} } return t.UpdatedAt } -func (t *UpdateUser_UpdateUser_User_Setting) GetUpdatedBy() *string { +func (t *GetOrganizationByID_Organization) GetUpdatedBy() *string { if t == nil { - t = &UpdateUser_UpdateUser_User_Setting{} + t = &GetOrganizationByID_Organization{} } return t.UpdatedBy } -type UpdateUser_UpdateUser_User struct { - AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" - AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" - AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" - AvatarLocalFileID *string "json:\"avatarLocalFileID,omitempty\" graphql:\"avatarLocalFileID\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - ID string "json:\"id\" graphql:\"id\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" - Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - GroupMemberships []*UpdateUser_UpdateUser_User_GroupMemberships "json:\"groupMemberships,omitempty\" graphql:\"groupMemberships\"" - OrgMemberships []*UpdateUser_UpdateUser_User_OrgMemberships "json:\"orgMemberships,omitempty\" graphql:\"orgMemberships\"" - Setting UpdateUser_UpdateUser_User_Setting "json:\"setting\" graphql:\"setting\"" +type GetOrganizations_Organizations_Edges_Node_Parent struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *UpdateUser_UpdateUser_User) GetAuthProvider() *enums.AuthProvider { +func (t *GetOrganizations_Organizations_Edges_Node_Parent) GetID() string { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Parent{} } - return &t.AuthProvider + return t.ID } -func (t *UpdateUser_UpdateUser_User) GetAvatarLocalFile() *string { +func (t *GetOrganizations_Organizations_Edges_Node_Parent) GetName() string { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Parent{} } - return t.AvatarLocalFile + return t.Name } -func (t *UpdateUser_UpdateUser_User) GetAvatarRemoteURL() *string { + +type GetOrganizations_Organizations_Edges_Node_Children_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" +} + +func (t *GetOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetID() string { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Children_Edges_Node{} } - return t.AvatarRemoteURL + return t.ID } -func (t *UpdateUser_UpdateUser_User) GetAvatarLocalFileID() *string { +func (t *GetOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetName() string { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Children_Edges_Node{} } - return t.AvatarLocalFileID + return t.Name } -func (t *UpdateUser_UpdateUser_User) GetDisplayName() string { +func (t *GetOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetDisplayName() string { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Children_Edges_Node{} } return t.DisplayName } -func (t *UpdateUser_UpdateUser_User) GetEmail() string { +func (t *GetOrganizations_Organizations_Edges_Node_Children_Edges_Node) GetDescription() *string { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Children_Edges_Node{} } - return t.Email + return t.Description } -func (t *UpdateUser_UpdateUser_User) GetFirstName() *string { - if t == nil { - t = &UpdateUser_UpdateUser_User{} - } - return t.FirstName + +type GetOrganizations_Organizations_Edges_Node_Children_Edges struct { + Node *GetOrganizations_Organizations_Edges_Node_Children_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *UpdateUser_UpdateUser_User) GetID() string { + +func (t *GetOrganizations_Organizations_Edges_Node_Children_Edges) GetNode() *GetOrganizations_Organizations_Edges_Node_Children_Edges_Node { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Children_Edges{} } - return t.ID + return t.Node } -func (t *UpdateUser_UpdateUser_User) GetLastName() *string { + +type GetOrganizations_Organizations_Edges_Node_Children struct { + Edges []*GetOrganizations_Organizations_Edges_Node_Children_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetOrganizations_Organizations_Edges_Node_Children) GetEdges() []*GetOrganizations_Organizations_Edges_Node_Children_Edges { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Children{} } - return t.LastName + return t.Edges } -func (t *UpdateUser_UpdateUser_User) GetSub() *string { + +type GetOrganizations_Organizations_Edges_Node_Members_User struct { + ID string "json:\"id\" graphql:\"id\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +} + +func (t *GetOrganizations_Organizations_Edges_Node_Members_User) GetID() string { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Members_User{} } - return t.Sub + return t.ID } -func (t *UpdateUser_UpdateUser_User) GetTags() []string { +func (t *GetOrganizations_Organizations_Edges_Node_Members_User) GetFirstName() *string { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Members_User{} } - return t.Tags + return t.FirstName } -func (t *UpdateUser_UpdateUser_User) GetGroupMemberships() []*UpdateUser_UpdateUser_User_GroupMemberships { +func (t *GetOrganizations_Organizations_Edges_Node_Members_User) GetLastName() *string { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Members_User{} } - return t.GroupMemberships + return t.LastName } -func (t *UpdateUser_UpdateUser_User) GetOrgMemberships() []*UpdateUser_UpdateUser_User_OrgMemberships { + +type GetOrganizations_Organizations_Edges_Node_Members struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + User GetOrganizations_Organizations_Edges_Node_Members_User "json:\"user\" graphql:\"user\"" +} + +func (t *GetOrganizations_Organizations_Edges_Node_Members) GetID() string { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Members{} } - return t.OrgMemberships + return t.ID } -func (t *UpdateUser_UpdateUser_User) GetSetting() *UpdateUser_UpdateUser_User_Setting { +func (t *GetOrganizations_Organizations_Edges_Node_Members) GetRole() *enums.Role { if t == nil { - t = &UpdateUser_UpdateUser_User{} + t = &GetOrganizations_Organizations_Edges_Node_Members{} } - return &t.Setting -} - -type UpdateUser_UpdateUser struct { - User UpdateUser_UpdateUser_User "json:\"user\" graphql:\"user\"" + return &t.Role } - -func (t *UpdateUser_UpdateUser) GetUser() *UpdateUser_UpdateUser_User { +func (t *GetOrganizations_Organizations_Edges_Node_Members) GetUser() *GetOrganizations_Organizations_Edges_Node_Members_User { if t == nil { - t = &UpdateUser_UpdateUser{} + t = &GetOrganizations_Organizations_Edges_Node_Members{} } return &t.User } -type GetAllUserHistories_UserHistories_Edges_Node struct { - AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" - AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" - AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" - AvatarUpdatedAt *time.Time "json:\"avatarUpdatedAt,omitempty\" graphql:\"avatarUpdatedAt\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" - LastSeen *time.Time "json:\"lastSeen,omitempty\" graphql:\"lastSeen\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Role *enums.Role "json:\"role,omitempty\" graphql:\"role\"" - Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetOrganizations_Organizations_Edges_Node_Setting struct { + ID string "json:\"id\" graphql:\"id\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" + BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" + BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" + BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" + TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" + GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetAuthProvider() *enums.AuthProvider { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetID() string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return &t.AuthProvider + return t.ID } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetAvatarLocalFile() *string { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return t.AvatarLocalFile + return t.CreatedAt } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetAvatarRemoteURL() *string { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return t.AvatarRemoteURL + return t.UpdatedAt } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetAvatarUpdatedAt() *time.Time { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetCreatedBy() *string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return t.AvatarUpdatedAt + return t.CreatedBy } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetUpdatedBy() *string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return t.CreatedAt + return t.UpdatedBy } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetDomains() []string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return t.CreatedBy + return t.Domains } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetDisplayName() string { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetBillingContact() *string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return t.DisplayName + return t.BillingContact } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetEmail() string { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetBillingEmail() *string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return t.Email + return t.BillingEmail } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetFirstName() *string { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetBillingPhone() *string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return t.FirstName + return t.BillingPhone } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetBillingAddress() *string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return &t.HistoryTime + return t.BillingAddress } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetID() string { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetTaxIdentifier() *string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return t.ID + return t.TaxIdentifier } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetLastName() *string { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetGeoLocation() *enums.Region { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return t.LastName + return t.GeoLocation } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetLastSeen() *time.Time { +func (t *GetOrganizations_Organizations_Edges_Node_Setting) GetTags() []string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node_Setting{} } - return t.LastSeen + return t.Tags } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetOperation() *history.OpType { + +type GetOrganizations_Organizations_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Parent *GetOrganizations_Organizations_Edges_Node_Parent "json:\"parent,omitempty\" graphql:\"parent\"" + Children GetOrganizations_Organizations_Edges_Node_Children "json:\"children\" graphql:\"children\"" + Members []*GetOrganizations_Organizations_Edges_Node_Members "json:\"members,omitempty\" graphql:\"members\"" + Setting *GetOrganizations_Organizations_Edges_Node_Setting "json:\"setting,omitempty\" graphql:\"setting\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" +} + +func (t *GetOrganizations_Organizations_Edges_Node) GetID() string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node{} } - return &t.Operation + return t.ID } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetRef() *string { +func (t *GetOrganizations_Organizations_Edges_Node) GetName() string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node{} } - return t.Ref + return t.Name } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetRole() *enums.Role { +func (t *GetOrganizations_Organizations_Edges_Node) GetDisplayName() string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node{} } - return t.Role + return t.DisplayName } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetSub() *string { +func (t *GetOrganizations_Organizations_Edges_Node) GetDescription() *string { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node{} } - return t.Sub + return t.Description } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetTags() []string { +func (t *GetOrganizations_Organizations_Edges_Node) GetPersonalOrg() *bool { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node{} + } + return t.PersonalOrg +} +func (t *GetOrganizations_Organizations_Edges_Node) GetTags() []string { + if t == nil { + t = &GetOrganizations_Organizations_Edges_Node{} } return t.Tags } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetOrganizations_Organizations_Edges_Node) GetParent() *GetOrganizations_Organizations_Edges_Node_Parent { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node{} } - return t.UpdatedAt + return t.Parent } -func (t *GetAllUserHistories_UserHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetOrganizations_Organizations_Edges_Node) GetChildren() *GetOrganizations_Organizations_Edges_Node_Children { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges_Node{} + t = &GetOrganizations_Organizations_Edges_Node{} } - return t.UpdatedBy + return &t.Children +} +func (t *GetOrganizations_Organizations_Edges_Node) GetMembers() []*GetOrganizations_Organizations_Edges_Node_Members { + if t == nil { + t = &GetOrganizations_Organizations_Edges_Node{} + } + return t.Members +} +func (t *GetOrganizations_Organizations_Edges_Node) GetSetting() *GetOrganizations_Organizations_Edges_Node_Setting { + if t == nil { + t = &GetOrganizations_Organizations_Edges_Node{} + } + return t.Setting +} +func (t *GetOrganizations_Organizations_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetOrganizations_Organizations_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetOrganizations_Organizations_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetOrganizations_Organizations_Edges_Node{} + } + return t.UpdatedAt } -type GetAllUserHistories_UserHistories_Edges struct { - Node *GetAllUserHistories_UserHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetOrganizations_Organizations_Edges struct { + Node *GetOrganizations_Organizations_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllUserHistories_UserHistories_Edges) GetNode() *GetAllUserHistories_UserHistories_Edges_Node { +func (t *GetOrganizations_Organizations_Edges) GetNode() *GetOrganizations_Organizations_Edges_Node { if t == nil { - t = &GetAllUserHistories_UserHistories_Edges{} + t = &GetOrganizations_Organizations_Edges{} } return t.Node } -type GetAllUserHistories_UserHistories struct { - Edges []*GetAllUserHistories_UserHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetOrganizations_Organizations struct { + Edges []*GetOrganizations_Organizations_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllUserHistories_UserHistories) GetEdges() []*GetAllUserHistories_UserHistories_Edges { +func (t *GetOrganizations_Organizations) GetEdges() []*GetOrganizations_Organizations_Edges { if t == nil { - t = &GetAllUserHistories_UserHistories{} + t = &GetOrganizations_Organizations{} } return t.Edges } -type GetUserHistories_UserHistories_Edges_Node struct { - AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" - AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" - AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" - AvatarUpdatedAt *time.Time "json:\"avatarUpdatedAt,omitempty\" graphql:\"avatarUpdatedAt\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DisplayName string "json:\"displayName\" graphql:\"displayName\"" - Email string "json:\"email\" graphql:\"email\"" - FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" - LastSeen *time.Time "json:\"lastSeen,omitempty\" graphql:\"lastSeen\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Role *enums.Role "json:\"role,omitempty\" graphql:\"role\"" - Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type UpdateOrganization_UpdateOrganization_Organization_Members struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UserID string "json:\"userID\" graphql:\"userID\"" } -func (t *GetUserHistories_UserHistories_Edges_Node) GetAuthProvider() *enums.AuthProvider { +func (t *UpdateOrganization_UpdateOrganization_Organization_Members) GetID() string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Members{} } - return &t.AuthProvider + return t.ID } -func (t *GetUserHistories_UserHistories_Edges_Node) GetAvatarLocalFile() *string { +func (t *UpdateOrganization_UpdateOrganization_Organization_Members) GetRole() *enums.Role { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Members{} } - return t.AvatarLocalFile + return &t.Role } -func (t *GetUserHistories_UserHistories_Edges_Node) GetAvatarRemoteURL() *string { +func (t *UpdateOrganization_UpdateOrganization_Organization_Members) GetUserID() string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Members{} } - return t.AvatarRemoteURL + return t.UserID } -func (t *GetUserHistories_UserHistories_Edges_Node) GetAvatarUpdatedAt() *time.Time { + +type UpdateOrganization_UpdateOrganization_Organization_Setting struct { + ID string "json:\"id\" graphql:\"id\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" + BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" + BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" + BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" + TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" + GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetID() string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } - return t.AvatarUpdatedAt + return t.ID } -func (t *GetUserHistories_UserHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetCreatedAt() *time.Time { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } return t.CreatedAt } -func (t *GetUserHistories_UserHistories_Edges_Node) GetCreatedBy() *string { +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetUpdatedAt() *time.Time { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } - return t.CreatedBy + return t.UpdatedAt } -func (t *GetUserHistories_UserHistories_Edges_Node) GetDisplayName() string { +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetCreatedBy() *string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } - return t.DisplayName + return t.CreatedBy } -func (t *GetUserHistories_UserHistories_Edges_Node) GetEmail() string { +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetUpdatedBy() *string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } - return t.Email + return t.UpdatedBy } -func (t *GetUserHistories_UserHistories_Edges_Node) GetFirstName() *string { +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetDomains() []string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } - return t.FirstName + return t.Domains } -func (t *GetUserHistories_UserHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetBillingContact() *string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } - return &t.HistoryTime + return t.BillingContact } -func (t *GetUserHistories_UserHistories_Edges_Node) GetID() string { +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetBillingEmail() *string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } - return t.ID + return t.BillingEmail } -func (t *GetUserHistories_UserHistories_Edges_Node) GetLastName() *string { +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetBillingPhone() *string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } - return t.LastName + return t.BillingPhone } -func (t *GetUserHistories_UserHistories_Edges_Node) GetLastSeen() *time.Time { +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetBillingAddress() *string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } - return t.LastSeen + return t.BillingAddress } -func (t *GetUserHistories_UserHistories_Edges_Node) GetOperation() *history.OpType { +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetTaxIdentifier() *string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } - return &t.Operation + return t.TaxIdentifier } -func (t *GetUserHistories_UserHistories_Edges_Node) GetRef() *string { +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetGeoLocation() *enums.Region { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } - return t.Ref + return t.GeoLocation } -func (t *GetUserHistories_UserHistories_Edges_Node) GetRole() *enums.Role { +func (t *UpdateOrganization_UpdateOrganization_Organization_Setting) GetTags() []string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization_Setting{} } - return t.Role + return t.Tags } -func (t *GetUserHistories_UserHistories_Edges_Node) GetSub() *string { + +type UpdateOrganization_UpdateOrganization_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Members []*UpdateOrganization_UpdateOrganization_Organization_Members "json:\"members,omitempty\" graphql:\"members\"" + Setting *UpdateOrganization_UpdateOrganization_Organization_Setting "json:\"setting,omitempty\" graphql:\"setting\"" +} + +func (t *UpdateOrganization_UpdateOrganization_Organization) GetID() string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization{} } - return t.Sub + return t.ID } -func (t *GetUserHistories_UserHistories_Edges_Node) GetTags() []string { +func (t *UpdateOrganization_UpdateOrganization_Organization) GetName() string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization{} } - return t.Tags + return t.Name } -func (t *GetUserHistories_UserHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *UpdateOrganization_UpdateOrganization_Organization) GetDisplayName() string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization{} } - return t.UpdatedAt + return t.DisplayName } -func (t *GetUserHistories_UserHistories_Edges_Node) GetUpdatedBy() *string { +func (t *UpdateOrganization_UpdateOrganization_Organization) GetDescription() *string { if t == nil { - t = &GetUserHistories_UserHistories_Edges_Node{} + t = &UpdateOrganization_UpdateOrganization_Organization{} } - return t.UpdatedBy -} - -type GetUserHistories_UserHistories_Edges struct { - Node *GetUserHistories_UserHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return t.Description } - -func (t *GetUserHistories_UserHistories_Edges) GetNode() *GetUserHistories_UserHistories_Edges_Node { +func (t *UpdateOrganization_UpdateOrganization_Organization) GetPersonalOrg() *bool { if t == nil { - t = &GetUserHistories_UserHistories_Edges{} + t = &UpdateOrganization_UpdateOrganization_Organization{} } - return t.Node -} - -type GetUserHistories_UserHistories struct { - Edges []*GetUserHistories_UserHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + return t.PersonalOrg } - -func (t *GetUserHistories_UserHistories) GetEdges() []*GetUserHistories_UserHistories_Edges { +func (t *UpdateOrganization_UpdateOrganization_Organization) GetTags() []string { if t == nil { - t = &GetUserHistories_UserHistories{} + t = &UpdateOrganization_UpdateOrganization_Organization{} } - return t.Edges -} - -type GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" + return t.Tags } - -func (t *GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg) GetID() string { +func (t *UpdateOrganization_UpdateOrganization_Organization) GetMembers() []*UpdateOrganization_UpdateOrganization_Organization_Members { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg{} + t = &UpdateOrganization_UpdateOrganization_Organization{} } - return t.ID + return t.Members } -func (t *GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg) GetName() string { +func (t *UpdateOrganization_UpdateOrganization_Organization) GetSetting() *UpdateOrganization_UpdateOrganization_Organization_Setting { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg{} + t = &UpdateOrganization_UpdateOrganization_Organization{} } - return t.Name + return t.Setting } -func (t *GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg) GetPersonalOrg() *bool { + +type UpdateOrganization_UpdateOrganization struct { + Organization UpdateOrganization_UpdateOrganization_Organization "json:\"organization\" graphql:\"organization\"" +} + +func (t *UpdateOrganization_UpdateOrganization) GetOrganization() *UpdateOrganization_UpdateOrganization_Organization { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg{} + t = &UpdateOrganization_UpdateOrganization{} } - return t.PersonalOrg + return &t.Organization } -type GetAllUserSettings_UserSettings_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - DefaultOrg *GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Locked bool "json:\"locked\" graphql:\"locked\"" - IsTfaEnabled *bool "json:\"isTfaEnabled,omitempty\" graphql:\"isTfaEnabled\"" - EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DeletedAt *time.Time "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetAllOrganizationHistories_OrganizationHistories_Edges_Node struct { + AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DedicatedDb bool "json:\"dedicatedDb\" graphql:\"dedicatedDb\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetID() string { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetAvatarRemoteURL() *string { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.ID + return t.AvatarRemoteURL } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetSilencedAt() *time.Time { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.SilencedAt + return t.CreatedAt } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetStatus() *enums.UserStatus { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } - return &t.Status + return t.CreatedBy } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetDefaultOrg() *GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetDedicatedDb() bool { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.DefaultOrg + return t.DedicatedDb } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetTags() []string { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.Tags + return t.Description } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetLocked() bool { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetDisplayName() string { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.Locked + return t.DisplayName } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetIsTfaEnabled() *bool { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.IsTfaEnabled + return &t.HistoryTime } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetEmailConfirmed() bool { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetID() string { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.EmailConfirmed + return t.ID } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetName() string { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.CreatedAt + return t.Name } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetCreatedBy() *string { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.CreatedBy + return &t.Operation } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetDeletedAt() *time.Time { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetPersonalOrg() *bool { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.DeletedAt + return t.PersonalOrg } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetDeletedBy() *string { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.DeletedBy + return t.Ref } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetAllUserSettings_UserSettings_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges_Node{} } return t.UpdatedBy } -type GetAllUserSettings_UserSettings_Edges struct { - Node *GetAllUserSettings_UserSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllOrganizationHistories_OrganizationHistories_Edges struct { + Node *GetAllOrganizationHistories_OrganizationHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllUserSettings_UserSettings_Edges) GetNode() *GetAllUserSettings_UserSettings_Edges_Node { +func (t *GetAllOrganizationHistories_OrganizationHistories_Edges) GetNode() *GetAllOrganizationHistories_OrganizationHistories_Edges_Node { if t == nil { - t = &GetAllUserSettings_UserSettings_Edges{} + t = &GetAllOrganizationHistories_OrganizationHistories_Edges{} } return t.Node } -type GetAllUserSettings_UserSettings struct { - Edges []*GetAllUserSettings_UserSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllOrganizationHistories_OrganizationHistories struct { + Edges []*GetAllOrganizationHistories_OrganizationHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllUserSettings_UserSettings) GetEdges() []*GetAllUserSettings_UserSettings_Edges { +func (t *GetAllOrganizationHistories_OrganizationHistories) GetEdges() []*GetAllOrganizationHistories_OrganizationHistories_Edges { if t == nil { - t = &GetAllUserSettings_UserSettings{} + t = &GetAllOrganizationHistories_OrganizationHistories{} } return t.Edges } -type GetUserSettingByID_UserSetting_DefaultOrg struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" -} +type GetOrganizationHistories_OrganizationHistories_Edges_Node struct { + AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DedicatedDb bool "json:\"dedicatedDb\" graphql:\"dedicatedDb\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} -func (t *GetUserSettingByID_UserSetting_DefaultOrg) GetID() string { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetAvatarRemoteURL() *string { if t == nil { - t = &GetUserSettingByID_UserSetting_DefaultOrg{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.ID + return t.AvatarRemoteURL } -func (t *GetUserSettingByID_UserSetting_DefaultOrg) GetName() string { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetUserSettingByID_UserSetting_DefaultOrg{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.Name + return t.CreatedAt } -func (t *GetUserSettingByID_UserSetting_DefaultOrg) GetPersonalOrg() *bool { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetUserSettingByID_UserSetting_DefaultOrg{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.PersonalOrg -} - -type GetUserSettingByID_UserSetting struct { - ID string "json:\"id\" graphql:\"id\"" - SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - DefaultOrg *GetUserSettingByID_UserSetting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Locked bool "json:\"locked\" graphql:\"locked\"" - IsTfaEnabled *bool "json:\"isTfaEnabled,omitempty\" graphql:\"isTfaEnabled\"" - EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DeletedAt *time.Time "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + return t.CreatedBy } - -func (t *GetUserSettingByID_UserSetting) GetID() string { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetDedicatedDb() bool { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.ID + return t.DedicatedDb } -func (t *GetUserSettingByID_UserSetting) GetSilencedAt() *time.Time { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.SilencedAt + return t.Description } -func (t *GetUserSettingByID_UserSetting) GetStatus() *enums.UserStatus { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetDisplayName() string { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return &t.Status + return t.DisplayName } -func (t *GetUserSettingByID_UserSetting) GetDefaultOrg() *GetUserSettingByID_UserSetting_DefaultOrg { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.DefaultOrg + return &t.HistoryTime } -func (t *GetUserSettingByID_UserSetting) GetTags() []string { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetID() string { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.Tags + return t.ID } -func (t *GetUserSettingByID_UserSetting) GetLocked() bool { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetName() string { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.Locked + return t.Name } -func (t *GetUserSettingByID_UserSetting) GetIsTfaEnabled() *bool { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.IsTfaEnabled + return &t.Operation } -func (t *GetUserSettingByID_UserSetting) GetEmailConfirmed() bool { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetPersonalOrg() *bool { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.EmailConfirmed + return t.PersonalOrg } -func (t *GetUserSettingByID_UserSetting) GetCreatedAt() *time.Time { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.CreatedAt + return t.Ref } -func (t *GetUserSettingByID_UserSetting) GetCreatedBy() *string { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.CreatedBy + return t.Tags } -func (t *GetUserSettingByID_UserSetting) GetDeletedAt() *time.Time { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.DeletedAt + return t.UpdatedAt } -func (t *GetUserSettingByID_UserSetting) GetDeletedBy() *string { +func (t *GetOrganizationHistories_OrganizationHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges_Node{} } - return t.DeletedBy + return t.UpdatedBy } -func (t *GetUserSettingByID_UserSetting) GetUpdatedAt() *time.Time { + +type GetOrganizationHistories_OrganizationHistories_Edges struct { + Node *GetOrganizationHistories_OrganizationHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetOrganizationHistories_OrganizationHistories_Edges) GetNode() *GetOrganizationHistories_OrganizationHistories_Edges_Node { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories_Edges{} } - return t.UpdatedAt + return t.Node } -func (t *GetUserSettingByID_UserSetting) GetUpdatedBy() *string { + +type GetOrganizationHistories_OrganizationHistories struct { + Edges []*GetOrganizationHistories_OrganizationHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetOrganizationHistories_OrganizationHistories) GetEdges() []*GetOrganizationHistories_OrganizationHistories_Edges { if t == nil { - t = &GetUserSettingByID_UserSetting{} + t = &GetOrganizationHistories_OrganizationHistories{} } - return t.UpdatedBy + return t.Edges } -type GetUserSettings_UserSettings_Edges_Node_DefaultOrg struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +type GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetUserSettings_UserSettings_Edges_Node_DefaultOrg) GetID() string { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization) GetID() string { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node_DefaultOrg{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization{} } return t.ID } -func (t *GetUserSettings_UserSettings_Edges_Node_DefaultOrg) GetName() string { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization) GetName() string { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node_DefaultOrg{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization{} } return t.Name } -func (t *GetUserSettings_UserSettings_Edges_Node_DefaultOrg) GetPersonalOrg() *bool { - if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node_DefaultOrg{} - } - return t.PersonalOrg -} -type GetUserSettings_UserSettings_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - DefaultOrg *GetUserSettings_UserSettings_Edges_Node_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Locked bool "json:\"locked\" graphql:\"locked\"" - IsTfaEnabled *bool "json:\"isTfaEnabled,omitempty\" graphql:\"isTfaEnabled\"" - EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DeletedAt *time.Time "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetAllOrganizationSettings_OrganizationSettings_Edges_Node struct { + BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" + BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" + BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" + BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Organization *GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization "json:\"organization,omitempty\" graphql:\"organization\"" } -func (t *GetUserSettings_UserSettings_Edges_Node) GetID() string { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingAddress() *string { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.ID + return t.BillingAddress } -func (t *GetUserSettings_UserSettings_Edges_Node) GetSilencedAt() *time.Time { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingContact() *string { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.SilencedAt + return t.BillingContact } -func (t *GetUserSettings_UserSettings_Edges_Node) GetStatus() *enums.UserStatus { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingEmail() *string { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return &t.Status + return t.BillingEmail } -func (t *GetUserSettings_UserSettings_Edges_Node) GetDefaultOrg() *GetUserSettings_UserSettings_Edges_Node_DefaultOrg { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingPhone() *string { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.DefaultOrg + return t.BillingPhone } -func (t *GetUserSettings_UserSettings_Edges_Node) GetTags() []string { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.Tags + return t.CreatedAt } -func (t *GetUserSettings_UserSettings_Edges_Node) GetLocked() bool { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.Locked + return t.CreatedBy } -func (t *GetUserSettings_UserSettings_Edges_Node) GetIsTfaEnabled() *bool { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetDomains() []string { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.IsTfaEnabled + return t.Domains } -func (t *GetUserSettings_UserSettings_Edges_Node) GetEmailConfirmed() bool { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetGeoLocation() *enums.Region { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.EmailConfirmed + return t.GeoLocation } -func (t *GetUserSettings_UserSettings_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetID() string { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.CreatedAt + return t.ID } -func (t *GetUserSettings_UserSettings_Edges_Node) GetCreatedBy() *string { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetTags() []string { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.CreatedBy + return t.Tags } -func (t *GetUserSettings_UserSettings_Edges_Node) GetDeletedAt() *time.Time { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetTaxIdentifier() *string { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.DeletedAt + return t.TaxIdentifier } -func (t *GetUserSettings_UserSettings_Edges_Node) GetDeletedBy() *string { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.DeletedBy + return t.UpdatedAt } -func (t *GetUserSettings_UserSettings_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.UpdatedAt + return t.UpdatedBy } -func (t *GetUserSettings_UserSettings_Edges_Node) GetUpdatedBy() *string { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges_Node) GetOrganization() *GetAllOrganizationSettings_OrganizationSettings_Edges_Node_Organization { if t == nil { - t = &GetUserSettings_UserSettings_Edges_Node{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.UpdatedBy + return t.Organization } -type GetUserSettings_UserSettings_Edges struct { - Node *GetUserSettings_UserSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetAllOrganizationSettings_OrganizationSettings_Edges struct { + Node *GetAllOrganizationSettings_OrganizationSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetUserSettings_UserSettings_Edges) GetNode() *GetUserSettings_UserSettings_Edges_Node { +func (t *GetAllOrganizationSettings_OrganizationSettings_Edges) GetNode() *GetAllOrganizationSettings_OrganizationSettings_Edges_Node { if t == nil { - t = &GetUserSettings_UserSettings_Edges{} + t = &GetAllOrganizationSettings_OrganizationSettings_Edges{} } return t.Node } -type GetUserSettings_UserSettings struct { - Edges []*GetUserSettings_UserSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllOrganizationSettings_OrganizationSettings struct { + Edges []*GetAllOrganizationSettings_OrganizationSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetUserSettings_UserSettings) GetEdges() []*GetUserSettings_UserSettings_Edges { +func (t *GetAllOrganizationSettings_OrganizationSettings) GetEdges() []*GetAllOrganizationSettings_OrganizationSettings_Edges { if t == nil { - t = &GetUserSettings_UserSettings{} + t = &GetAllOrganizationSettings_OrganizationSettings{} } return t.Edges } -type UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg struct { - ID string "json:\"id\" graphql:\"id\"" - Name string "json:\"name\" graphql:\"name\"" - PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +type GetOrganizationSettingByID_OrganizationSetting_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg) GetID() string { +func (t *GetOrganizationSettingByID_OrganizationSetting_Organization) GetID() string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg{} + t = &GetOrganizationSettingByID_OrganizationSetting_Organization{} } return t.ID } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg) GetName() string { +func (t *GetOrganizationSettingByID_OrganizationSetting_Organization) GetName() string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg{} + t = &GetOrganizationSettingByID_OrganizationSetting_Organization{} } return t.Name } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg) GetPersonalOrg() *bool { - if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg{} - } - return t.PersonalOrg -} -type UpdateUserSetting_UpdateUserSetting_UserSetting struct { - ID string "json:\"id\" graphql:\"id\"" - SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - DefaultOrg *UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - Locked bool "json:\"locked\" graphql:\"locked\"" - IsTfaEnabled *bool "json:\"isTfaEnabled,omitempty\" graphql:\"isTfaEnabled\"" - EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - DeletedAt *time.Time "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" - DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +type GetOrganizationSettingByID_OrganizationSetting struct { + BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" + BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" + BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" + BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Organization *GetOrganizationSettingByID_OrganizationSetting_Organization "json:\"organization,omitempty\" graphql:\"organization\"" } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetID() string { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetBillingAddress() *string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.ID + return t.BillingAddress } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetSilencedAt() *time.Time { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetBillingContact() *string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.SilencedAt + return t.BillingContact } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetStatus() *enums.UserStatus { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetBillingEmail() *string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return &t.Status + return t.BillingEmail } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetDefaultOrg() *UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetBillingPhone() *string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.DefaultOrg + return t.BillingPhone } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetTags() []string { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.Tags + return t.CreatedAt } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetLocked() bool { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetCreatedBy() *string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.Locked + return t.CreatedBy } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetIsTfaEnabled() *bool { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetDomains() []string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.IsTfaEnabled + return t.Domains } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetEmailConfirmed() bool { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetGeoLocation() *enums.Region { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.EmailConfirmed + return t.GeoLocation } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetCreatedAt() *time.Time { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetID() string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.CreatedAt + return t.ID } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetCreatedBy() *string { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetTags() []string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.CreatedBy + return t.Tags } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetDeletedAt() *time.Time { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetTaxIdentifier() *string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.DeletedAt + return t.TaxIdentifier } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetDeletedBy() *string { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.DeletedBy + return t.UpdatedAt } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetUpdatedAt() *time.Time { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetUpdatedBy() *string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.UpdatedAt + return t.UpdatedBy } -func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetUpdatedBy() *string { +func (t *GetOrganizationSettingByID_OrganizationSetting) GetOrganization() *GetOrganizationSettingByID_OrganizationSetting_Organization { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + t = &GetOrganizationSettingByID_OrganizationSetting{} } - return t.UpdatedBy + return t.Organization } -type UpdateUserSetting_UpdateUserSetting struct { - UserSetting UpdateUserSetting_UpdateUserSetting_UserSetting "json:\"userSetting\" graphql:\"userSetting\"" +type GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *UpdateUserSetting_UpdateUserSetting) GetUserSetting() *UpdateUserSetting_UpdateUserSetting_UserSetting { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization) GetID() string { if t == nil { - t = &UpdateUserSetting_UpdateUserSetting{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization{} } - return &t.UserSetting + return t.ID +} +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization) GetName() string { + if t == nil { + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization{} + } + return t.Name } -type GetAllUserSettingHistories_UserSettingHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - IsTfaEnabled *bool "json:\"isTfaEnabled,omitempty\" graphql:\"isTfaEnabled\"" - IsWebauthnAllowed *bool "json:\"isWebauthnAllowed,omitempty\" graphql:\"isWebauthnAllowed\"" - Locked bool "json:\"locked\" graphql:\"locked\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +type GetOrganizationSettings_OrganizationSettings_Edges_Node struct { + BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" + BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" + BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" + BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Organization *GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization "json:\"organization,omitempty\" graphql:\"organization\"" } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingAddress() *string { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.CreatedAt + return t.BillingAddress } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingContact() *string { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.CreatedBy + return t.BillingContact } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetEmailConfirmed() bool { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingEmail() *string { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.EmailConfirmed + return t.BillingEmail } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetBillingPhone() *string { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } - return &t.HistoryTime + return t.BillingPhone } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetID() string { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.ID -} -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetIsTfaEnabled() *bool { - if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} - } - return t.IsTfaEnabled -} -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetIsWebauthnAllowed() *bool { - if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} - } - return t.IsWebauthnAllowed -} -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetLocked() bool { - if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} - } - return t.Locked + return t.CreatedAt } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetOperation() *history.OpType { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } - return &t.Operation + return t.CreatedBy } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetRef() *string { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetDomains() []string { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.Ref + return t.Domains } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetSilencedAt() *time.Time { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetGeoLocation() *enums.Region { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.SilencedAt + return t.GeoLocation } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetStatus() *enums.UserStatus { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetID() string { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } - return &t.Status + return t.ID } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetSuspendedAt() *time.Time { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.SuspendedAt + return t.Tags } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetTags() []string { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetTaxIdentifier() *string { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.Tags + return t.TaxIdentifier } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } return t.UpdatedAt } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetUpdatedBy() *string { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } return t.UpdatedBy } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetUserID() *string { +func (t *GetOrganizationSettings_OrganizationSettings_Edges_Node) GetOrganization() *GetOrganizationSettings_OrganizationSettings_Edges_Node_Organization { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &GetOrganizationSettings_OrganizationSettings_Edges_Node{} } - return t.UserID + return t.Organization } -type GetAllUserSettingHistories_UserSettingHistories_Edges struct { - Node *GetAllUserSettingHistories_UserSettingHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type GetOrganizationSettings_OrganizationSettings_Edges struct { + Node *GetOrganizationSettings_OrganizationSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllUserSettingHistories_UserSettingHistories_Edges) GetNode() *GetAllUserSettingHistories_UserSettingHistories_Edges_Node { +func (t *GetOrganizationSettings_OrganizationSettings_Edges) GetNode() *GetOrganizationSettings_OrganizationSettings_Edges_Node { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories_Edges{} + t = &GetOrganizationSettings_OrganizationSettings_Edges{} } return t.Node } -type GetAllUserSettingHistories_UserSettingHistories struct { - Edges []*GetAllUserSettingHistories_UserSettingHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetOrganizationSettings_OrganizationSettings struct { + Edges []*GetOrganizationSettings_OrganizationSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllUserSettingHistories_UserSettingHistories) GetEdges() []*GetAllUserSettingHistories_UserSettingHistories_Edges { +func (t *GetOrganizationSettings_OrganizationSettings) GetEdges() []*GetOrganizationSettings_OrganizationSettings_Edges { if t == nil { - t = &GetAllUserSettingHistories_UserSettingHistories{} + t = &GetOrganizationSettings_OrganizationSettings{} } return t.Edges } -type GetUserSettingHistories_UserSettingHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - IsTfaEnabled *bool "json:\"isTfaEnabled,omitempty\" graphql:\"isTfaEnabled\"" - IsWebauthnAllowed *bool "json:\"isWebauthnAllowed,omitempty\" graphql:\"isWebauthnAllowed\"" - Locked bool "json:\"locked\" graphql:\"locked\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" - Status enums.UserStatus "json:\"status\" graphql:\"status\"" - SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +type UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization) GetID() string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization{} } - return t.CreatedAt + return t.ID } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetCreatedBy() *string { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization) GetName() string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization{} } - return t.CreatedBy + return t.Name } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetEmailConfirmed() bool { - if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} - } - return t.EmailConfirmed + +type UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting struct { + BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" + BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" + BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" + BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Organization *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization "json:\"organization,omitempty\" graphql:\"organization\"" } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetHistoryTime() *time.Time { + +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetBillingAddress() *string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } - return &t.HistoryTime + return t.BillingAddress } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetID() string { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetBillingContact() *string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } - return t.ID + return t.BillingContact } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetIsTfaEnabled() *bool { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetBillingEmail() *string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } - return t.IsTfaEnabled + return t.BillingEmail } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetIsWebauthnAllowed() *bool { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetBillingPhone() *string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } - return t.IsWebauthnAllowed + return t.BillingPhone } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetLocked() bool { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetCreatedAt() *time.Time { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } - return t.Locked + return t.CreatedAt } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetOperation() *history.OpType { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetCreatedBy() *string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } - return &t.Operation + return t.CreatedBy } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetRef() *string { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetDomains() []string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } - return t.Ref + return t.Domains } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetSilencedAt() *time.Time { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetGeoLocation() *enums.Region { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } - return t.SilencedAt + return t.GeoLocation } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetStatus() *enums.UserStatus { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetID() string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } - return &t.Status + return t.ID } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetSuspendedAt() *time.Time { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetTags() []string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } - return t.SuspendedAt + return t.Tags } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetTags() []string { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetTaxIdentifier() *string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } - return t.Tags + return t.TaxIdentifier } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetUpdatedAt() *time.Time { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } return t.UpdatedAt } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetUpdatedBy() *string { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetUpdatedBy() *string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } return t.UpdatedBy } -func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetUserID() *string { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting) GetOrganization() *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting_Organization { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting{} } - return t.UserID + return t.Organization } -type GetUserSettingHistories_UserSettingHistories_Edges struct { - Node *GetUserSettingHistories_UserSettingHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type UpdateOrganizationSetting_UpdateOrganizationSetting struct { + OrganizationSetting UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting "json:\"organizationSetting\" graphql:\"organizationSetting\"" } -func (t *GetUserSettingHistories_UserSettingHistories_Edges) GetNode() *GetUserSettingHistories_UserSettingHistories_Edges_Node { +func (t *UpdateOrganizationSetting_UpdateOrganizationSetting) GetOrganizationSetting() *UpdateOrganizationSetting_UpdateOrganizationSetting_OrganizationSetting { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories_Edges{} + t = &UpdateOrganizationSetting_UpdateOrganizationSetting{} } - return t.Node + return &t.OrganizationSetting } -type GetUserSettingHistories_UserSettingHistories struct { - Edges []*GetUserSettingHistories_UserSettingHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node struct { + BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" + BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" + BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" + BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OrganizationID *string "json:\"organizationID,omitempty\" graphql:\"organizationID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetUserSettingHistories_UserSettingHistories) GetEdges() []*GetUserSettingHistories_UserSettingHistories_Edges { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingAddress() *string { if t == nil { - t = &GetUserSettingHistories_UserSettingHistories{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.Edges + return t.BillingAddress } - -type GetWebhookByID_Webhook_Events struct { - ID string "json:\"id\" graphql:\"id\"" +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingContact() *string { + if t == nil { + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + } + return t.BillingContact } - -func (t *GetWebhookByID_Webhook_Events) GetID() string { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingEmail() *string { if t == nil { - t = &GetWebhookByID_Webhook_Events{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.ID + return t.BillingEmail } - -type GetWebhookByID_Webhook struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" - ID string "json:\"id\" graphql:\"id\"" - LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" - LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Events []*GetWebhookByID_Webhook_Events "json:\"events,omitempty\" graphql:\"events\"" +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingPhone() *string { + if t == nil { + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + } + return t.BillingPhone } - -func (t *GetWebhookByID_Webhook) GetCreatedAt() *time.Time { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } return t.CreatedAt } -func (t *GetWebhookByID_Webhook) GetCreatedBy() *string { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } return t.CreatedBy } -func (t *GetWebhookByID_Webhook) GetDescription() *string { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetDomains() []string { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.Description + return t.Domains } -func (t *GetWebhookByID_Webhook) GetDestinationURL() string { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetGeoLocation() *enums.Region { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.DestinationURL + return t.GeoLocation } -func (t *GetWebhookByID_Webhook) GetEnabled() bool { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.Enabled + return &t.HistoryTime } -func (t *GetWebhookByID_Webhook) GetFailures() *int64 { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetID() string { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.Failures + return t.ID } -func (t *GetWebhookByID_Webhook) GetID() string { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.ID + return &t.Operation } -func (t *GetWebhookByID_Webhook) GetLastError() *string { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetOrganizationID() *string { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.LastError + return t.OrganizationID } -func (t *GetWebhookByID_Webhook) GetLastResponse() *string { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.LastResponse + return t.Ref } -func (t *GetWebhookByID_Webhook) GetName() string { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.Name + return t.Tags } -func (t *GetWebhookByID_Webhook) GetOwnerID() *string { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetTaxIdentifier() *string { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.OwnerID + return t.TaxIdentifier } -func (t *GetWebhookByID_Webhook) GetUpdatedAt() *time.Time { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } return t.UpdatedAt } -func (t *GetWebhookByID_Webhook) GetUpdatedBy() *string { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } return t.UpdatedBy } -func (t *GetWebhookByID_Webhook) GetEvents() []*GetWebhookByID_Webhook_Events { + +type GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges struct { + Node *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges) GetNode() *GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node { if t == nil { - t = &GetWebhookByID_Webhook{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges{} } - return t.Events + return t.Node } -type GetAllWebhooks_Webhooks_Edges_Node_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type GetAllOrganizationSettingHistories_OrganizationSettingHistories struct { + Edges []*GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllWebhooks_Webhooks_Edges_Node_Events) GetID() string { +func (t *GetAllOrganizationSettingHistories_OrganizationSettingHistories) GetEdges() []*GetAllOrganizationSettingHistories_OrganizationSettingHistories_Edges { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node_Events{} + t = &GetAllOrganizationSettingHistories_OrganizationSettingHistories{} } - return t.ID + return t.Edges } -type GetAllWebhooks_Webhooks_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" - ID string "json:\"id\" graphql:\"id\"" - LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" - LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Events []*GetAllWebhooks_Webhooks_Edges_Node_Events "json:\"events,omitempty\" graphql:\"events\"" +type GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node struct { + BillingAddress *string "json:\"billingAddress,omitempty\" graphql:\"billingAddress\"" + BillingContact *string "json:\"billingContact,omitempty\" graphql:\"billingContact\"" + BillingEmail *string "json:\"billingEmail,omitempty\" graphql:\"billingEmail\"" + BillingPhone *string "json:\"billingPhone,omitempty\" graphql:\"billingPhone\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Domains []string "json:\"domains,omitempty\" graphql:\"domains\"" + GeoLocation *enums.Region "json:\"geoLocation,omitempty\" graphql:\"geoLocation\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OrganizationID *string "json:\"organizationID,omitempty\" graphql:\"organizationID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TaxIdentifier *string "json:\"taxIdentifier,omitempty\" graphql:\"taxIdentifier\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingAddress() *string { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.CreatedAt + return t.BillingAddress } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetCreatedBy() *string { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingContact() *string { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.CreatedBy + return t.BillingContact } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetDescription() *string { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingEmail() *string { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.Description + return t.BillingEmail } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetDestinationURL() string { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetBillingPhone() *string { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.DestinationURL + return t.BillingPhone } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetEnabled() bool { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.Enabled + return t.CreatedAt } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetFailures() *int64 { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.Failures + return t.CreatedBy } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetID() string { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetDomains() []string { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.ID + return t.Domains } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetLastError() *string { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetGeoLocation() *enums.Region { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.LastError + return t.GeoLocation } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetLastResponse() *string { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.LastResponse + return &t.HistoryTime } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetName() string { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetID() string { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.Name + return t.ID } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetOwnerID() *string { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.OwnerID + return &t.Operation } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetUpdatedAt() *time.Time { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetOrganizationID() *string { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.UpdatedAt + return t.OrganizationID } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetUpdatedBy() *string { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.UpdatedBy + return t.Ref } -func (t *GetAllWebhooks_Webhooks_Edges_Node) GetEvents() []*GetAllWebhooks_Webhooks_Edges_Node_Events { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges_Node{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.Events -} - -type GetAllWebhooks_Webhooks_Edges struct { - Node *GetAllWebhooks_Webhooks_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" + return t.Tags } - -func (t *GetAllWebhooks_Webhooks_Edges) GetNode() *GetAllWebhooks_Webhooks_Edges_Node { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetTaxIdentifier() *string { if t == nil { - t = &GetAllWebhooks_Webhooks_Edges{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.Node + return t.TaxIdentifier } - -type GetAllWebhooks_Webhooks struct { - Edges []*GetAllWebhooks_Webhooks_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} + } + return t.UpdatedAt } - -func (t *GetAllWebhooks_Webhooks) GetEdges() []*GetAllWebhooks_Webhooks_Edges { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllWebhooks_Webhooks{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node{} } - return t.Edges + return t.UpdatedBy } -type CreateWebhook_CreateWebhook_Webhook_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type GetOrganizationSettingHistories_OrganizationSettingHistories_Edges struct { + Node *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateWebhook_CreateWebhook_Webhook_Events) GetID() string { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges) GetNode() *GetOrganizationSettingHistories_OrganizationSettingHistories_Edges_Node { if t == nil { - t = &CreateWebhook_CreateWebhook_Webhook_Events{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories_Edges{} } - return t.ID + return t.Node } -type CreateWebhook_CreateWebhook_Webhook struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" - ID string "json:\"id\" graphql:\"id\"" - LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" - LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Events []*CreateWebhook_CreateWebhook_Webhook_Events "json:\"events,omitempty\" graphql:\"events\"" +type GetOrganizationSettingHistories_OrganizationSettingHistories struct { + Edges []*GetOrganizationSettingHistories_OrganizationSettingHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateWebhook_CreateWebhook_Webhook) GetDescription() *string { +func (t *GetOrganizationSettingHistories_OrganizationSettingHistories) GetEdges() []*GetOrganizationSettingHistories_OrganizationSettingHistories_Edges { if t == nil { - t = &CreateWebhook_CreateWebhook_Webhook{} + t = &GetOrganizationSettingHistories_OrganizationSettingHistories{} } - return t.Description + return t.Edges } -func (t *CreateWebhook_CreateWebhook_Webhook) GetDestinationURL() string { + +type AddUserToOrgWithRole_CreateOrgMembership_OrgMembership struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UserID string "json:\"userID\" graphql:\"userID\"" + OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" +} + +func (t *AddUserToOrgWithRole_CreateOrgMembership_OrgMembership) GetID() string { if t == nil { - t = &CreateWebhook_CreateWebhook_Webhook{} + t = &AddUserToOrgWithRole_CreateOrgMembership_OrgMembership{} } - return t.DestinationURL + return t.ID } -func (t *CreateWebhook_CreateWebhook_Webhook) GetEnabled() bool { +func (t *AddUserToOrgWithRole_CreateOrgMembership_OrgMembership) GetRole() *enums.Role { if t == nil { - t = &CreateWebhook_CreateWebhook_Webhook{} + t = &AddUserToOrgWithRole_CreateOrgMembership_OrgMembership{} } - return t.Enabled + return &t.Role } -func (t *CreateWebhook_CreateWebhook_Webhook) GetFailures() *int64 { +func (t *AddUserToOrgWithRole_CreateOrgMembership_OrgMembership) GetUserID() string { if t == nil { - t = &CreateWebhook_CreateWebhook_Webhook{} + t = &AddUserToOrgWithRole_CreateOrgMembership_OrgMembership{} } - return t.Failures + return t.UserID } -func (t *CreateWebhook_CreateWebhook_Webhook) GetID() string { +func (t *AddUserToOrgWithRole_CreateOrgMembership_OrgMembership) GetOrganizationID() string { if t == nil { - t = &CreateWebhook_CreateWebhook_Webhook{} + t = &AddUserToOrgWithRole_CreateOrgMembership_OrgMembership{} } - return t.ID + return t.OrganizationID } -func (t *CreateWebhook_CreateWebhook_Webhook) GetLastError() *string { + +type AddUserToOrgWithRole_CreateOrgMembership struct { + OrgMembership AddUserToOrgWithRole_CreateOrgMembership_OrgMembership "json:\"orgMembership\" graphql:\"orgMembership\"" +} + +func (t *AddUserToOrgWithRole_CreateOrgMembership) GetOrgMembership() *AddUserToOrgWithRole_CreateOrgMembership_OrgMembership { if t == nil { - t = &CreateWebhook_CreateWebhook_Webhook{} + t = &AddUserToOrgWithRole_CreateOrgMembership{} } - return t.LastError + return &t.OrgMembership } -func (t *CreateWebhook_CreateWebhook_Webhook) GetLastResponse() *string { + +type CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships struct { + ID string "json:\"id\" graphql:\"id\"" + OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UserID string "json:\"userID\" graphql:\"userID\"" +} + +func (t *CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships) GetID() string { if t == nil { - t = &CreateWebhook_CreateWebhook_Webhook{} + t = &CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships{} } - return t.LastResponse + return t.ID } -func (t *CreateWebhook_CreateWebhook_Webhook) GetName() string { +func (t *CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships) GetOrganizationID() string { if t == nil { - t = &CreateWebhook_CreateWebhook_Webhook{} + t = &CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships{} } - return t.Name + return t.OrganizationID } -func (t *CreateWebhook_CreateWebhook_Webhook) GetOwnerID() *string { +func (t *CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships) GetRole() *enums.Role { if t == nil { - t = &CreateWebhook_CreateWebhook_Webhook{} + t = &CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships{} } - return t.OwnerID + return &t.Role } -func (t *CreateWebhook_CreateWebhook_Webhook) GetEvents() []*CreateWebhook_CreateWebhook_Webhook_Events { +func (t *CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships) GetUserID() string { if t == nil { - t = &CreateWebhook_CreateWebhook_Webhook{} + t = &CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships{} } - return t.Events + return t.UserID } -type CreateWebhook_CreateWebhook struct { - Webhook CreateWebhook_CreateWebhook_Webhook "json:\"webhook\" graphql:\"webhook\"" +type CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership struct { + OrgMemberships []*CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships "json:\"orgMemberships,omitempty\" graphql:\"orgMemberships\"" } -func (t *CreateWebhook_CreateWebhook) GetWebhook() *CreateWebhook_CreateWebhook_Webhook { +func (t *CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership) GetOrgMemberships() []*CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership_OrgMemberships { if t == nil { - t = &CreateWebhook_CreateWebhook{} + t = &CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership{} } - return &t.Webhook + return t.OrgMemberships } -type CreateBulkWebhook_CreateBulkWebhook_Webhooks struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" - ID string "json:\"id\" graphql:\"id\"" - LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" - LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" +type CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships struct { + ID string "json:\"id\" graphql:\"id\"" + OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UserID string "json:\"userID\" graphql:\"userID\"" } -func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetDescription() *string { +func (t *CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships) GetID() string { if t == nil { - t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + t = &CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships{} } - return t.Description + return t.ID } -func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetDestinationURL() string { +func (t *CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships) GetOrganizationID() string { if t == nil { - t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + t = &CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships{} } - return t.DestinationURL + return t.OrganizationID } -func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetEnabled() bool { +func (t *CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships) GetRole() *enums.Role { if t == nil { - t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + t = &CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships{} } - return t.Enabled + return &t.Role } -func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetFailures() *int64 { +func (t *CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships) GetUserID() string { if t == nil { - t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + t = &CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships{} } - return t.Failures + return t.UserID } -func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetID() string { + +type CreateBulkOrgMembers_CreateBulkOrgMembership struct { + OrgMemberships []*CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships "json:\"orgMemberships,omitempty\" graphql:\"orgMemberships\"" +} + +func (t *CreateBulkOrgMembers_CreateBulkOrgMembership) GetOrgMemberships() []*CreateBulkOrgMembers_CreateBulkOrgMembership_OrgMemberships { if t == nil { - t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + t = &CreateBulkOrgMembers_CreateBulkOrgMembership{} } - return t.ID + return t.OrgMemberships } -func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetLastError() *string { + +type GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User struct { + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + ID string "json:\"id\" graphql:\"id\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" +} + +func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User) GetFirstName() *string { if t == nil { - t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User{} } - return t.LastError + return t.FirstName } -func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetLastResponse() *string { +func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User) GetLastName() *string { if t == nil { - t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User{} } - return t.LastResponse + return t.LastName } -func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetName() string { +func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User) GetID() string { if t == nil { - t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User{} } - return t.Name + return t.ID } -func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetOwnerID() *string { +func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User) GetDisplayName() string { if t == nil { - t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User{} } - return t.OwnerID -} - -type CreateBulkWebhook_CreateBulkWebhook struct { - Webhooks []*CreateBulkWebhook_CreateBulkWebhook_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" + return t.DisplayName } - -func (t *CreateBulkWebhook_CreateBulkWebhook) GetWebhooks() []*CreateBulkWebhook_CreateBulkWebhook_Webhooks { +func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User) GetEmail() string { if t == nil { - t = &CreateBulkWebhook_CreateBulkWebhook{} + t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User{} } - return t.Webhooks + return t.Email } -type CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks struct { - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" - ID string "json:\"id\" graphql:\"id\"" - LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" - LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" +type GetOrgMembersByOrgID_OrgMemberships_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" + UserID string "json:\"userID\" graphql:\"userID\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + User GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User "json:\"user\" graphql:\"user\"" } -func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetDescription() *string { +func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node) GetID() string { if t == nil { - t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node{} } - return t.Description + return t.ID } -func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetDestinationURL() string { +func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node) GetOrganizationID() string { if t == nil { - t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node{} } - return t.DestinationURL + return t.OrganizationID } -func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetEnabled() bool { +func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node) GetUserID() string { if t == nil { - t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node{} } - return t.Enabled + return t.UserID } -func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetFailures() *int64 { +func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node) GetRole() *enums.Role { if t == nil { - t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node{} } - return t.Failures + return &t.Role } -func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetID() string { +func (t *GetOrgMembersByOrgID_OrgMemberships_Edges_Node) GetUser() *GetOrgMembersByOrgID_OrgMemberships_Edges_Node_User { if t == nil { - t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + t = &GetOrgMembersByOrgID_OrgMemberships_Edges_Node{} } - return t.ID + return &t.User } -func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetLastError() *string { - if t == nil { - t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} - } - return t.LastError + +type GetOrgMembersByOrgID_OrgMemberships_Edges struct { + Node *GetOrgMembersByOrgID_OrgMemberships_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetLastResponse() *string { + +func (t *GetOrgMembersByOrgID_OrgMemberships_Edges) GetNode() *GetOrgMembersByOrgID_OrgMemberships_Edges_Node { if t == nil { - t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + t = &GetOrgMembersByOrgID_OrgMemberships_Edges{} } - return t.LastResponse + return t.Node } -func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetName() string { - if t == nil { - t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} - } - return t.Name + +type GetOrgMembersByOrgID_OrgMemberships struct { + Edges []*GetOrgMembersByOrgID_OrgMemberships_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetOwnerID() *string { + +func (t *GetOrgMembersByOrgID_OrgMemberships) GetEdges() []*GetOrgMembersByOrgID_OrgMemberships_Edges { if t == nil { - t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + t = &GetOrgMembersByOrgID_OrgMemberships{} } - return t.OwnerID + return t.Edges } -type CreateBulkCSVWebhook_CreateBulkCSVWebhook struct { - Webhooks []*CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" +type RemoveUserFromOrg_DeleteOrgMembership struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook) GetWebhooks() []*CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks { +func (t *RemoveUserFromOrg_DeleteOrgMembership) GetDeletedID() string { if t == nil { - t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook{} + t = &RemoveUserFromOrg_DeleteOrgMembership{} } - return t.Webhooks + return t.DeletedID } -type UpdateWebhook_UpdateWebhook_Webhook_Events struct { - ID string "json:\"id\" graphql:\"id\"" +type UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UserID string "json:\"userID\" graphql:\"userID\"" + OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" } -func (t *UpdateWebhook_UpdateWebhook_Webhook_Events) GetID() string { +func (t *UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership) GetID() string { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook_Events{} + t = &UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership{} } return t.ID } - -type UpdateWebhook_UpdateWebhook_Webhook struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" - ID string "json:\"id\" graphql:\"id\"" - LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" - LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" - Name string "json:\"name\" graphql:\"name\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" - Events []*UpdateWebhook_UpdateWebhook_Webhook_Events "json:\"events,omitempty\" graphql:\"events\"" +func (t *UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership) GetRole() *enums.Role { + if t == nil { + t = &UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership{} + } + return &t.Role } - -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetCreatedAt() *time.Time { +func (t *UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership) GetUserID() string { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership{} } - return t.CreatedAt + return t.UserID } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetCreatedBy() *string { +func (t *UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership) GetOrganizationID() string { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership{} } - return t.CreatedBy + return t.OrganizationID } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetDescription() *string { + +type UpdateUserRoleInOrg_UpdateOrgMembership struct { + OrgMembership UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership "json:\"orgMembership\" graphql:\"orgMembership\"" +} + +func (t *UpdateUserRoleInOrg_UpdateOrgMembership) GetOrgMembership() *UpdateUserRoleInOrg_UpdateOrgMembership_OrgMembership { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &UpdateUserRoleInOrg_UpdateOrgMembership{} } - return t.Description + return &t.OrgMembership } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetDestinationURL() string { + +type GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UserID string "json:\"userID\" graphql:\"userID\"" +} + +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.DestinationURL + return t.CreatedAt } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetEnabled() bool { +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.Enabled + return t.CreatedBy } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetFailures() *int64 { +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.Failures + return &t.HistoryTime } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetID() string { +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetID() string { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } return t.ID } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetLastError() *string { +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.LastError + return &t.Operation } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetLastResponse() *string { +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetOrganizationID() string { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.LastResponse + return t.OrganizationID } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetName() string { +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetRef() *string { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.Name + return t.Ref } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetOwnerID() *string { +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetRole() *enums.Role { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.OwnerID + return &t.Role } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetUpdatedAt() *time.Time { +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } return t.UpdatedAt } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetUpdatedBy() *string { +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } return t.UpdatedBy } -func (t *UpdateWebhook_UpdateWebhook_Webhook) GetEvents() []*UpdateWebhook_UpdateWebhook_Webhook_Events { +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetUserID() string { if t == nil { - t = &UpdateWebhook_UpdateWebhook_Webhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.Events + return t.UserID } -type UpdateWebhook_UpdateWebhook struct { - Webhook UpdateWebhook_UpdateWebhook_Webhook "json:\"webhook\" graphql:\"webhook\"" +type GetAllOrgMembershipHistories_OrgMembershipHistories_Edges struct { + Node *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *UpdateWebhook_UpdateWebhook) GetWebhook() *UpdateWebhook_UpdateWebhook_Webhook { +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges) GetNode() *GetAllOrgMembershipHistories_OrgMembershipHistories_Edges_Node { if t == nil { - t = &UpdateWebhook_UpdateWebhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories_Edges{} } - return &t.Webhook + return t.Node } -type DeleteWebhook_DeleteWebhook struct { - DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +type GetAllOrgMembershipHistories_OrgMembershipHistories struct { + Edges []*GetAllOrgMembershipHistories_OrgMembershipHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *DeleteWebhook_DeleteWebhook) GetDeletedID() string { +func (t *GetAllOrgMembershipHistories_OrgMembershipHistories) GetEdges() []*GetAllOrgMembershipHistories_OrgMembershipHistories_Edges { if t == nil { - t = &DeleteWebhook_DeleteWebhook{} + t = &GetAllOrgMembershipHistories_OrgMembershipHistories{} } - return t.DeletedID + return t.Edges } -type GetAllWebhookHistories_WebhookHistories_Edges_Node struct { +type GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node struct { CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" ID string "json:\"id\" graphql:\"id\"" - LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" - LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" - Name string "json:\"name\" graphql:\"name\"" Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Role enums.Role "json:\"role\" graphql:\"role\"" UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UserID string "json:\"userID\" graphql:\"userID\"" } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } return t.CreatedAt } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetCreatedBy() *string { +func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } return t.CreatedBy } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetDescription() *string { +func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.Description + return &t.HistoryTime } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetDestinationURL() string { +func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetID() string { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.DestinationURL + return t.ID } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetEnabled() bool { +func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.Enabled + return &t.Operation } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetFailures() *int64 { +func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetOrganizationID() string { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.Failures + return t.OrganizationID } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetHistoryTime() *time.Time { +func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return &t.HistoryTime + return t.Ref } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetID() string { +func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetRole() *enums.Role { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.ID + return &t.Role } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetLastError() *string { +func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.LastError + return t.UpdatedAt } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetLastResponse() *string { +func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.LastResponse + return t.UpdatedBy } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetName() string { +func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node) GetUserID() string { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node{} } - return t.Name + return t.UserID } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetOperation() *history.OpType { - if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} - } - return &t.Operation + +type GetOrgMembershipHistories_OrgMembershipHistories_Edges struct { + Node *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetOwnerID() *string { + +func (t *GetOrgMembershipHistories_OrgMembershipHistories_Edges) GetNode() *GetOrgMembershipHistories_OrgMembershipHistories_Edges_Node { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories_Edges{} } - return t.OwnerID + return t.Node } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetRef() *string { - if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} - } - return t.Ref + +type GetOrgMembershipHistories_OrgMembershipHistories struct { + Edges []*GetOrgMembershipHistories_OrgMembershipHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetTags() []string { + +func (t *GetOrgMembershipHistories_OrgMembershipHistories) GetEdges() []*GetOrgMembershipHistories_OrgMembershipHistories_Edges { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &GetOrgMembershipHistories_OrgMembershipHistories{} } - return t.Tags + return t.Edges } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetUpdatedAt() *time.Time { + +type CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" +} + +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations) GetID() string { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations{} } - return t.UpdatedAt + return t.ID } -func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations) GetName() string { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations{} } - return t.UpdatedBy + return t.Name } -type GetAllWebhookHistories_WebhookHistories_Edges struct { - Node *GetAllWebhookHistories_WebhookHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +type CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + ID string "json:\"id\" graphql:\"id\"" + LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" + Name string "json:\"name\" graphql:\"name\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Token string "json:\"token\" graphql:\"token\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Organizations []*CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" } -func (t *GetAllWebhookHistories_WebhookHistories_Edges) GetNode() *GetAllWebhookHistories_WebhookHistories_Edges_Node { +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetDescription() *string { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories_Edges{} + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} } - return t.Node + return t.Description } - -type GetAllWebhookHistories_WebhookHistories struct { - Edges []*GetAllWebhookHistories_WebhookHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetExpiresAt() *time.Time { + if t == nil { + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} + } + return t.ExpiresAt } - -func (t *GetAllWebhookHistories_WebhookHistories) GetEdges() []*GetAllWebhookHistories_WebhookHistories_Edges { +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetID() string { if t == nil { - t = &GetAllWebhookHistories_WebhookHistories{} + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} } - return t.Edges + return t.ID } - -type GetWebhookHistories_WebhookHistories_Edges_Node struct { - CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" - CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" - Description *string "json:\"description,omitempty\" graphql:\"description\"" - DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" - Enabled bool "json:\"enabled\" graphql:\"enabled\"" - Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" - HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" - ID string "json:\"id\" graphql:\"id\"" - LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" - LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" - Name string "json:\"name\" graphql:\"name\"" - Operation history.OpType "json:\"operation\" graphql:\"operation\"" - OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" - Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" - Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" - UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" - UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetLastUsedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} + } + return t.LastUsedAt } - -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetCreatedAt() *time.Time { +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetName() string { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} } - return t.CreatedAt + return t.Name } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetCreatedBy() *string { +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetScopes() []string { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} } - return t.CreatedBy + return t.Scopes } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetDescription() *string { +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetToken() string { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} } - return t.Description + return t.Token } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetDestinationURL() string { +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetUpdatedAt() *time.Time { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} } - return t.DestinationURL + return t.UpdatedAt } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetEnabled() bool { +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetUpdatedBy() *string { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} } - return t.Enabled + return t.UpdatedBy } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetFailures() *int64 { +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens) GetOrganizations() []*CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens_Organizations { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens{} } - return t.Failures + return t.Organizations } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetHistoryTime() *time.Time { + +type CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken struct { + PersonalAccessTokens []*CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens "json:\"personalAccessTokens,omitempty\" graphql:\"personalAccessTokens\"" +} + +func (t *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken) GetPersonalAccessTokens() []*CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken_PersonalAccessTokens { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken{} } - return &t.HistoryTime + return t.PersonalAccessTokens } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetID() string { + +type CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" +} + +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations) GetID() string { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations{} } return t.ID } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetLastError() *string { +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations) GetName() string { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations{} } - return t.LastError + return t.Name } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetLastResponse() *string { + +type CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + ID string "json:\"id\" graphql:\"id\"" + LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" + Name string "json:\"name\" graphql:\"name\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Token string "json:\"token\" graphql:\"token\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Organizations []*CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" +} + +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetDescription() *string { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} } - return t.LastResponse + return t.Description } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetName() string { +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetExpiresAt() *time.Time { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} } - return t.Name + return t.ExpiresAt } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetOperation() *history.OpType { +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetID() string { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} } - return &t.Operation + return t.ID } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetOwnerID() *string { +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetLastUsedAt() *time.Time { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} } - return t.OwnerID + return t.LastUsedAt } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetRef() *string { +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetName() string { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} } - return t.Ref + return t.Name } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetTags() []string { +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetScopes() []string { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} } - return t.Tags + return t.Scopes } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetUpdatedAt() *time.Time { +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetToken() string { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} + } + return t.Token +} +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} } return t.UpdatedAt } -func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetUpdatedBy() *string { +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetUpdatedBy() *string { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} } return t.UpdatedBy } - -type GetWebhookHistories_WebhookHistories_Edges struct { - Node *GetWebhookHistories_WebhookHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" -} - -func (t *GetWebhookHistories_WebhookHistories_Edges) GetNode() *GetWebhookHistories_WebhookHistories_Edges_Node { +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens) GetOrganizations() []*CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens_Organizations { if t == nil { - t = &GetWebhookHistories_WebhookHistories_Edges{} + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens{} } - return t.Node + return t.Organizations } -type GetWebhookHistories_WebhookHistories struct { - Edges []*GetWebhookHistories_WebhookHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +type CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken struct { + PersonalAccessTokens []*CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens "json:\"personalAccessTokens,omitempty\" graphql:\"personalAccessTokens\"" } -func (t *GetWebhookHistories_WebhookHistories) GetEdges() []*GetWebhookHistories_WebhookHistories_Edges { +func (t *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken) GetPersonalAccessTokens() []*CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken_PersonalAccessTokens { if t == nil { - t = &GetWebhookHistories_WebhookHistories{} + t = &CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken{} } - return t.Edges + return t.PersonalAccessTokens } -type AdminSearch struct { - AdminSearch *AdminSearch_AdminSearch "json:\"adminSearch,omitempty\" graphql:\"adminSearch\"" +type CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *AdminSearch) GetAdminSearch() *AdminSearch_AdminSearch { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations) GetID() string { if t == nil { - t = &AdminSearch{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations{} } - return t.AdminSearch -} - -type CreateAPIToken struct { - CreateAPIToken CreateAPIToken_CreateAPIToken "json:\"createAPIToken\" graphql:\"createAPIToken\"" + return t.ID } - -func (t *CreateAPIToken) GetCreateAPIToken() *CreateAPIToken_CreateAPIToken { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations) GetName() string { if t == nil { - t = &CreateAPIToken{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations{} } - return &t.CreateAPIToken + return t.Name } -type UpdateAPIToken struct { - UpdateAPIToken UpdateAPIToken_UpdateAPIToken "json:\"updateAPIToken\" graphql:\"updateAPIToken\"" +type CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *UpdateAPIToken) GetUpdateAPIToken() *UpdateAPIToken_UpdateAPIToken { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Owner) GetID() string { if t == nil { - t = &UpdateAPIToken{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Owner{} } - return &t.UpdateAPIToken + return t.ID } -type GetAllAPITokens struct { - APITokens GetAllAPITokens_APITokens "json:\"apiTokens\" graphql:\"apiTokens\"" +type CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + ID string "json:\"id\" graphql:\"id\"" + LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" + Name string "json:\"name\" graphql:\"name\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Token string "json:\"token\" graphql:\"token\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Organizations []*CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" + Owner CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Owner "json:\"owner\" graphql:\"owner\"" } -func (t *GetAllAPITokens) GetAPITokens() *GetAllAPITokens_APITokens { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetDescription() *string { if t == nil { - t = &GetAllAPITokens{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} } - return &t.APITokens -} - -type GetAPITokenByID struct { - APIToken GetAPITokenByID_APIToken "json:\"apiToken\" graphql:\"apiToken\"" + return t.Description } - -func (t *GetAPITokenByID) GetAPIToken() *GetAPITokenByID_APIToken { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetExpiresAt() *time.Time { if t == nil { - t = &GetAPITokenByID{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} } - return &t.APIToken -} - -type DeleteAPIToken struct { - DeleteAPIToken DeleteAPIToken_DeleteAPIToken "json:\"deleteAPIToken\" graphql:\"deleteAPIToken\"" + return t.ExpiresAt } - -func (t *DeleteAPIToken) GetDeleteAPIToken() *DeleteAPIToken_DeleteAPIToken { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetID() string { if t == nil { - t = &DeleteAPIToken{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} } - return &t.DeleteAPIToken -} - -type CreateBulkContact struct { - CreateBulkContact CreateBulkContact_CreateBulkContact "json:\"createBulkContact\" graphql:\"createBulkContact\"" + return t.ID } - -func (t *CreateBulkContact) GetCreateBulkContact() *CreateBulkContact_CreateBulkContact { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetLastUsedAt() *time.Time { if t == nil { - t = &CreateBulkContact{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} } - return &t.CreateBulkContact -} - -type CreateBulkCSVContact struct { - CreateBulkCSVContact CreateBulkCSVContact_CreateBulkCSVContact "json:\"createBulkCSVContact\" graphql:\"createBulkCSVContact\"" + return t.LastUsedAt } - -func (t *CreateBulkCSVContact) GetCreateBulkCSVContact() *CreateBulkCSVContact_CreateBulkCSVContact { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetName() string { if t == nil { - t = &CreateBulkCSVContact{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} } - return &t.CreateBulkCSVContact -} - -type CreateContact struct { - CreateContact CreateContact_CreateContact "json:\"createContact\" graphql:\"createContact\"" + return t.Name } - -func (t *CreateContact) GetCreateContact() *CreateContact_CreateContact { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetScopes() []string { if t == nil { - t = &CreateContact{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} } - return &t.CreateContact -} - -type DeleteContact struct { - DeleteContact DeleteContact_DeleteContact "json:\"deleteContact\" graphql:\"deleteContact\"" + return t.Scopes } - -func (t *DeleteContact) GetDeleteContact() *DeleteContact_DeleteContact { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetToken() string { if t == nil { - t = &DeleteContact{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} } - return &t.DeleteContact -} - -type GetAllContacts struct { - Contacts GetAllContacts_Contacts "json:\"contacts\" graphql:\"contacts\"" + return t.Token } - -func (t *GetAllContacts) GetContacts() *GetAllContacts_Contacts { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllContacts{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} } - return &t.Contacts -} - -type GetContactByID struct { - Contact GetContactByID_Contact "json:\"contact\" graphql:\"contact\"" + return t.UpdatedAt } - -func (t *GetContactByID) GetContact() *GetContactByID_Contact { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetUpdatedBy() *string { if t == nil { - t = &GetContactByID{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} } - return &t.Contact -} - -type GetContacts struct { - Contacts GetContacts_Contacts "json:\"contacts\" graphql:\"contacts\"" + return t.UpdatedBy } - -func (t *GetContacts) GetContacts() *GetContacts_Contacts { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetOrganizations() []*CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Organizations { if t == nil { - t = &GetContacts{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} } - return &t.Contacts -} - -type UpdateContact struct { - UpdateContact UpdateContact_UpdateContact "json:\"updateContact\" graphql:\"updateContact\"" + return t.Organizations } - -func (t *UpdateContact) GetUpdateContact() *UpdateContact_UpdateContact { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken) GetOwner() *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken_Owner { if t == nil { - t = &UpdateContact{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken{} } - return &t.UpdateContact + return &t.Owner } -type GetAllContactHistories struct { - ContactHistories GetAllContactHistories_ContactHistories "json:\"contactHistories\" graphql:\"contactHistories\"" +type CreatePersonalAccessToken_CreatePersonalAccessToken struct { + PersonalAccessToken CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken "json:\"personalAccessToken\" graphql:\"personalAccessToken\"" } -func (t *GetAllContactHistories) GetContactHistories() *GetAllContactHistories_ContactHistories { +func (t *CreatePersonalAccessToken_CreatePersonalAccessToken) GetPersonalAccessToken() *CreatePersonalAccessToken_CreatePersonalAccessToken_PersonalAccessToken { if t == nil { - t = &GetAllContactHistories{} + t = &CreatePersonalAccessToken_CreatePersonalAccessToken{} } - return &t.ContactHistories + return &t.PersonalAccessToken } -type GetContactHistories struct { - ContactHistories GetContactHistories_ContactHistories "json:\"contactHistories\" graphql:\"contactHistories\"" +type DeletePersonalAccessToken_DeletePersonalAccessToken struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetContactHistories) GetContactHistories() *GetContactHistories_ContactHistories { +func (t *DeletePersonalAccessToken_DeletePersonalAccessToken) GetDeletedID() string { if t == nil { - t = &GetContactHistories{} + t = &DeletePersonalAccessToken_DeletePersonalAccessToken{} } - return &t.ContactHistories + return t.DeletedID } -type CreateDocumentData struct { - CreateDocumentData CreateDocumentData_CreateDocumentData "json:\"createDocumentData\" graphql:\"createDocumentData\"" +type GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *CreateDocumentData) GetCreateDocumentData() *CreateDocumentData_CreateDocumentData { +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations) GetID() string { if t == nil { - t = &CreateDocumentData{} + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations{} } - return &t.CreateDocumentData -} - -type DeleteDocumentData struct { - DeleteDocumentData DeleteDocumentData_DeleteDocumentData "json:\"deleteDocumentData\" graphql:\"deleteDocumentData\"" + return t.ID } - -func (t *DeleteDocumentData) GetDeleteDocumentData() *DeleteDocumentData_DeleteDocumentData { +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations) GetName() string { if t == nil { - t = &DeleteDocumentData{} + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations{} } - return &t.DeleteDocumentData + return t.Name } -type GetDocumentDataByID struct { - DocumentData GetDocumentDataByID_DocumentData "json:\"documentData\" graphql:\"documentData\"" +type GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + ID string "json:\"id\" graphql:\"id\"" + LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" + Name string "json:\"name\" graphql:\"name\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Token string "json:\"token\" graphql:\"token\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Organizations []*GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" } -func (t *GetDocumentDataByID) GetDocumentData() *GetDocumentDataByID_DocumentData { +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetDescription() *string { if t == nil { - t = &GetDocumentDataByID{} + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} } - return &t.DocumentData -} - -type UpdateDocumentData struct { - UpdateDocumentData UpdateDocumentData_UpdateDocumentData "json:\"updateDocumentData\" graphql:\"updateDocumentData\"" + return t.Description } - -func (t *UpdateDocumentData) GetUpdateDocumentData() *UpdateDocumentData_UpdateDocumentData { +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetExpiresAt() *time.Time { if t == nil { - t = &UpdateDocumentData{} + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} } - return &t.UpdateDocumentData + return t.ExpiresAt } - -type GetAllDocumentDataHistories struct { - DocumentDataHistories GetAllDocumentDataHistories_DocumentDataHistories "json:\"documentDataHistories\" graphql:\"documentDataHistories\"" +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetID() string { + if t == nil { + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + } + return t.ID } - -func (t *GetAllDocumentDataHistories) GetDocumentDataHistories() *GetAllDocumentDataHistories_DocumentDataHistories { +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetLastUsedAt() *time.Time { if t == nil { - t = &GetAllDocumentDataHistories{} + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} } - return &t.DocumentDataHistories + return t.LastUsedAt } - -type GetDocumentDataHistories struct { - DocumentDataHistories GetDocumentDataHistories_DocumentDataHistories "json:\"documentDataHistories\" graphql:\"documentDataHistories\"" +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetName() string { + if t == nil { + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + } + return t.Name } - -func (t *GetDocumentDataHistories) GetDocumentDataHistories() *GetDocumentDataHistories_DocumentDataHistories { +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetScopes() []string { if t == nil { - t = &GetDocumentDataHistories{} + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} } - return &t.DocumentDataHistories + return t.Scopes } - -type CreateBulkCSVEntitlement struct { - CreateBulkCSVEntitlement CreateBulkCSVEntitlement_CreateBulkCSVEntitlement "json:\"createBulkCSVEntitlement\" graphql:\"createBulkCSVEntitlement\"" +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetToken() string { + if t == nil { + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + } + return t.Token } - -func (t *CreateBulkCSVEntitlement) GetCreateBulkCSVEntitlement() *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement { +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVEntitlement{} + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} } - return &t.CreateBulkCSVEntitlement + return t.UpdatedAt } - -type CreateBulkEntitlement struct { - CreateBulkEntitlement CreateBulkEntitlement_CreateBulkEntitlement "json:\"createBulkEntitlement\" graphql:\"createBulkEntitlement\"" +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} + } + return t.UpdatedBy } - -func (t *CreateBulkEntitlement) GetCreateBulkEntitlement() *CreateBulkEntitlement_CreateBulkEntitlement { +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node) GetOrganizations() []*GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node_Organizations { if t == nil { - t = &CreateBulkEntitlement{} + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node{} } - return &t.CreateBulkEntitlement + return t.Organizations } -type CreateEntitlement struct { - CreateEntitlement CreateEntitlement_CreateEntitlement "json:\"createEntitlement\" graphql:\"createEntitlement\"" +type GetAllPersonalAccessTokens_PersonalAccessTokens_Edges struct { + Node *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateEntitlement) GetCreateEntitlement() *CreateEntitlement_CreateEntitlement { +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges) GetNode() *GetAllPersonalAccessTokens_PersonalAccessTokens_Edges_Node { if t == nil { - t = &CreateEntitlement{} + t = &GetAllPersonalAccessTokens_PersonalAccessTokens_Edges{} } - return &t.CreateEntitlement + return t.Node } -type DeleteEntitlement struct { - DeleteEntitlement DeleteEntitlement_DeleteEntitlement "json:\"deleteEntitlement\" graphql:\"deleteEntitlement\"" +type GetAllPersonalAccessTokens_PersonalAccessTokens struct { + Edges []*GetAllPersonalAccessTokens_PersonalAccessTokens_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *DeleteEntitlement) GetDeleteEntitlement() *DeleteEntitlement_DeleteEntitlement { +func (t *GetAllPersonalAccessTokens_PersonalAccessTokens) GetEdges() []*GetAllPersonalAccessTokens_PersonalAccessTokens_Edges { if t == nil { - t = &DeleteEntitlement{} + t = &GetAllPersonalAccessTokens_PersonalAccessTokens{} } - return &t.DeleteEntitlement + return t.Edges } -type GetAllEntitlements struct { - Entitlements GetAllEntitlements_Entitlements "json:\"entitlements\" graphql:\"entitlements\"" +type GetPersonalAccessTokenByID_PersonalAccessToken_Organizations struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *GetAllEntitlements) GetEntitlements() *GetAllEntitlements_Entitlements { +func (t *GetPersonalAccessTokenByID_PersonalAccessToken_Organizations) GetID() string { if t == nil { - t = &GetAllEntitlements{} + t = &GetPersonalAccessTokenByID_PersonalAccessToken_Organizations{} } - return &t.Entitlements -} - -type GetEntitlementByID struct { - Entitlement GetEntitlementByID_Entitlement "json:\"entitlement\" graphql:\"entitlement\"" + return t.ID } - -func (t *GetEntitlementByID) GetEntitlement() *GetEntitlementByID_Entitlement { +func (t *GetPersonalAccessTokenByID_PersonalAccessToken_Organizations) GetName() string { if t == nil { - t = &GetEntitlementByID{} + t = &GetPersonalAccessTokenByID_PersonalAccessToken_Organizations{} } - return &t.Entitlement + return t.Name } -type GetEntitlements struct { - Entitlements GetEntitlements_Entitlements "json:\"entitlements\" graphql:\"entitlements\"" +type GetPersonalAccessTokenByID_PersonalAccessToken struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + ID string "json:\"id\" graphql:\"id\"" + LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" + Name string "json:\"name\" graphql:\"name\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Token string "json:\"token\" graphql:\"token\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Organizations []*GetPersonalAccessTokenByID_PersonalAccessToken_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" } -func (t *GetEntitlements) GetEntitlements() *GetEntitlements_Entitlements { +func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetDescription() *string { if t == nil { - t = &GetEntitlements{} + t = &GetPersonalAccessTokenByID_PersonalAccessToken{} } - return &t.Entitlements -} - -type UpdateEntitlement struct { - UpdateEntitlement UpdateEntitlement_UpdateEntitlement "json:\"updateEntitlement\" graphql:\"updateEntitlement\"" + return t.Description } - -func (t *UpdateEntitlement) GetUpdateEntitlement() *UpdateEntitlement_UpdateEntitlement { +func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetExpiresAt() *time.Time { if t == nil { - t = &UpdateEntitlement{} + t = &GetPersonalAccessTokenByID_PersonalAccessToken{} } - return &t.UpdateEntitlement + return t.ExpiresAt } - -type GetAllEntitlementHistories struct { - EntitlementHistories GetAllEntitlementHistories_EntitlementHistories "json:\"entitlementHistories\" graphql:\"entitlementHistories\"" +func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetID() string { + if t == nil { + t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + } + return t.ID } - -func (t *GetAllEntitlementHistories) GetEntitlementHistories() *GetAllEntitlementHistories_EntitlementHistories { +func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetLastUsedAt() *time.Time { if t == nil { - t = &GetAllEntitlementHistories{} + t = &GetPersonalAccessTokenByID_PersonalAccessToken{} } - return &t.EntitlementHistories + return t.LastUsedAt } - -type GetEntitlementHistories struct { - EntitlementHistories GetEntitlementHistories_EntitlementHistories "json:\"entitlementHistories\" graphql:\"entitlementHistories\"" +func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetName() string { + if t == nil { + t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + } + return t.Name } - -func (t *GetEntitlementHistories) GetEntitlementHistories() *GetEntitlementHistories_EntitlementHistories { +func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetScopes() []string { if t == nil { - t = &GetEntitlementHistories{} + t = &GetPersonalAccessTokenByID_PersonalAccessToken{} } - return &t.EntitlementHistories + return t.Scopes } - -type CreateBulkCSVEntitlementPlan struct { - CreateBulkCSVEntitlementPlan CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan "json:\"createBulkCSVEntitlementPlan\" graphql:\"createBulkCSVEntitlementPlan\"" +func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetToken() string { + if t == nil { + t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + } + return t.Token } - -func (t *CreateBulkCSVEntitlementPlan) GetCreateBulkCSVEntitlementPlan() *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan { +func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVEntitlementPlan{} + t = &GetPersonalAccessTokenByID_PersonalAccessToken{} } - return &t.CreateBulkCSVEntitlementPlan + return t.UpdatedAt } - -type CreateBulkEntitlementPlan struct { - CreateBulkEntitlementPlan CreateBulkEntitlementPlan_CreateBulkEntitlementPlan "json:\"createBulkEntitlementPlan\" graphql:\"createBulkEntitlementPlan\"" +func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetUpdatedBy() *string { + if t == nil { + t = &GetPersonalAccessTokenByID_PersonalAccessToken{} + } + return t.UpdatedBy } - -func (t *CreateBulkEntitlementPlan) GetCreateBulkEntitlementPlan() *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan { +func (t *GetPersonalAccessTokenByID_PersonalAccessToken) GetOrganizations() []*GetPersonalAccessTokenByID_PersonalAccessToken_Organizations { if t == nil { - t = &CreateBulkEntitlementPlan{} + t = &GetPersonalAccessTokenByID_PersonalAccessToken{} } - return &t.CreateBulkEntitlementPlan + return t.Organizations } -type CreateEntitlementPlan struct { - CreateEntitlementPlan CreateEntitlementPlan_CreateEntitlementPlan "json:\"createEntitlementPlan\" graphql:\"createEntitlementPlan\"" +type UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" } -func (t *CreateEntitlementPlan) GetCreateEntitlementPlan() *CreateEntitlementPlan_CreateEntitlementPlan { +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations) GetID() string { if t == nil { - t = &CreateEntitlementPlan{} + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations{} } - return &t.CreateEntitlementPlan -} - -type DeleteEntitlementPlan struct { - DeleteEntitlementPlan DeleteEntitlementPlan_DeleteEntitlementPlan "json:\"deleteEntitlementPlan\" graphql:\"deleteEntitlementPlan\"" + return t.ID } - -func (t *DeleteEntitlementPlan) GetDeleteEntitlementPlan() *DeleteEntitlementPlan_DeleteEntitlementPlan { +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations) GetName() string { if t == nil { - t = &DeleteEntitlementPlan{} + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations{} } - return &t.DeleteEntitlementPlan + return t.Name } -type GetAllEntitlementPlans struct { - EntitlementPlans GetAllEntitlementPlans_EntitlementPlans "json:\"entitlementPlans\" graphql:\"entitlementPlans\"" +type UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Owner struct { + ID string "json:\"id\" graphql:\"id\"" } -func (t *GetAllEntitlementPlans) GetEntitlementPlans() *GetAllEntitlementPlans_EntitlementPlans { +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Owner) GetID() string { if t == nil { - t = &GetAllEntitlementPlans{} + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Owner{} } - return &t.EntitlementPlans + return t.ID } -type GetEntitlementPlanByID struct { - EntitlementPlan GetEntitlementPlanByID_EntitlementPlan "json:\"entitlementPlan\" graphql:\"entitlementPlan\"" +type UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ExpiresAt *time.Time "json:\"expiresAt,omitempty\" graphql:\"expiresAt\"" + ID string "json:\"id\" graphql:\"id\"" + LastUsedAt *time.Time "json:\"lastUsedAt,omitempty\" graphql:\"lastUsedAt\"" + Name string "json:\"name\" graphql:\"name\"" + Scopes []string "json:\"scopes,omitempty\" graphql:\"scopes\"" + Token string "json:\"token\" graphql:\"token\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Organizations []*UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" + Owner UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Owner "json:\"owner\" graphql:\"owner\"" } -func (t *GetEntitlementPlanByID) GetEntitlementPlan() *GetEntitlementPlanByID_EntitlementPlan { +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetDescription() *string { if t == nil { - t = &GetEntitlementPlanByID{} + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} } - return &t.EntitlementPlan + return t.Description } - -type GetEntitlementPlans struct { - EntitlementPlans GetEntitlementPlans_EntitlementPlans "json:\"entitlementPlans\" graphql:\"entitlementPlans\"" +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetExpiresAt() *time.Time { + if t == nil { + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + } + return t.ExpiresAt } - -func (t *GetEntitlementPlans) GetEntitlementPlans() *GetEntitlementPlans_EntitlementPlans { +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetID() string { if t == nil { - t = &GetEntitlementPlans{} + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} } - return &t.EntitlementPlans + return t.ID } - -type UpdateEntitlementPlan struct { - UpdateEntitlementPlan UpdateEntitlementPlan_UpdateEntitlementPlan "json:\"updateEntitlementPlan\" graphql:\"updateEntitlementPlan\"" +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetLastUsedAt() *time.Time { + if t == nil { + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + } + return t.LastUsedAt } - -func (t *UpdateEntitlementPlan) GetUpdateEntitlementPlan() *UpdateEntitlementPlan_UpdateEntitlementPlan { +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetName() string { if t == nil { - t = &UpdateEntitlementPlan{} + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} } - return &t.UpdateEntitlementPlan + return t.Name } - -type CreateBulkCSVEntitlementPlanFeature struct { - CreateBulkCSVEntitlementPlanFeature CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature "json:\"createBulkCSVEntitlementPlanFeature\" graphql:\"createBulkCSVEntitlementPlanFeature\"" +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetScopes() []string { + if t == nil { + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + } + return t.Scopes } - -func (t *CreateBulkCSVEntitlementPlanFeature) GetCreateBulkCSVEntitlementPlanFeature() *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature { +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetToken() string { if t == nil { - t = &CreateBulkCSVEntitlementPlanFeature{} + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} } - return &t.CreateBulkCSVEntitlementPlanFeature + return t.Token } - -type CreateBulkEntitlementPlanFeature struct { - CreateBulkEntitlementPlanFeature CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature "json:\"createBulkEntitlementPlanFeature\" graphql:\"createBulkEntitlementPlanFeature\"" +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + } + return t.UpdatedAt } - -func (t *CreateBulkEntitlementPlanFeature) GetCreateBulkEntitlementPlanFeature() *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature { +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetUpdatedBy() *string { if t == nil { - t = &CreateBulkEntitlementPlanFeature{} + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} } - return &t.CreateBulkEntitlementPlanFeature + return t.UpdatedBy } - -type CreateEntitlementPlanFeature struct { - CreateEntitlementPlanFeature CreateEntitlementPlanFeature_CreateEntitlementPlanFeature "json:\"createEntitlementPlanFeature\" graphql:\"createEntitlementPlanFeature\"" +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetOrganizations() []*UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Organizations { + if t == nil { + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} + } + return t.Organizations } - -func (t *CreateEntitlementPlanFeature) GetCreateEntitlementPlanFeature() *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature { +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken) GetOwner() *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken_Owner { if t == nil { - t = &CreateEntitlementPlanFeature{} + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken{} } - return &t.CreateEntitlementPlanFeature + return &t.Owner } -type DeleteEntitlementPlanFeature struct { - DeleteEntitlementPlanFeature DeleteEntitlementPlanFeature_DeleteEntitlementPlanFeature "json:\"deleteEntitlementPlanFeature\" graphql:\"deleteEntitlementPlanFeature\"" +type UpdatePersonalAccessToken_UpdatePersonalAccessToken struct { + PersonalAccessToken UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken "json:\"personalAccessToken\" graphql:\"personalAccessToken\"" } -func (t *DeleteEntitlementPlanFeature) GetDeleteEntitlementPlanFeature() *DeleteEntitlementPlanFeature_DeleteEntitlementPlanFeature { +func (t *UpdatePersonalAccessToken_UpdatePersonalAccessToken) GetPersonalAccessToken() *UpdatePersonalAccessToken_UpdatePersonalAccessToken_PersonalAccessToken { if t == nil { - t = &DeleteEntitlementPlanFeature{} + t = &UpdatePersonalAccessToken_UpdatePersonalAccessToken{} } - return &t.DeleteEntitlementPlanFeature + return &t.PersonalAccessToken } -type GetAllEntitlementPlanFeatures struct { - EntitlementPlanFeatures GetAllEntitlementPlanFeatures_EntitlementPlanFeatures "json:\"entitlementPlanFeatures\" graphql:\"entitlementPlanFeatures\"" +type CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + ProcedureType *string "json:\"procedureType,omitempty\" graphql:\"procedureType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetAllEntitlementPlanFeatures) GetEntitlementPlanFeatures() *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures { +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetBackground() *string { if t == nil { - t = &GetAllEntitlementPlanFeatures{} + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} } - return &t.EntitlementPlanFeatures + return t.Background } - -type GetEntitlementPlanFeatureByID struct { - EntitlementPlanFeature GetEntitlementPlanFeatureByID_EntitlementPlanFeature "json:\"entitlementPlanFeature\" graphql:\"entitlementPlanFeature\"" +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} + } + return t.CreatedAt } - -func (t *GetEntitlementPlanFeatureByID) GetEntitlementPlanFeature() *GetEntitlementPlanFeatureByID_EntitlementPlanFeature { +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetCreatedBy() *string { if t == nil { - t = &GetEntitlementPlanFeatureByID{} + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} } - return &t.EntitlementPlanFeature + return t.CreatedBy } - -type GetEntitlementPlanFeatures struct { - EntitlementPlanFeatures GetEntitlementPlanFeatures_EntitlementPlanFeatures "json:\"entitlementPlanFeatures\" graphql:\"entitlementPlanFeatures\"" +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetDescription() *string { + if t == nil { + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} + } + return t.Description } - -func (t *GetEntitlementPlanFeatures) GetEntitlementPlanFeatures() *GetEntitlementPlanFeatures_EntitlementPlanFeatures { +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetDetails() map[string]interface{} { if t == nil { - t = &GetEntitlementPlanFeatures{} + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} } - return &t.EntitlementPlanFeatures + return t.Details } - -type UpdateEntitlementPlanFeature struct { - UpdateEntitlementPlanFeature UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature "json:\"updateEntitlementPlanFeature\" graphql:\"updateEntitlementPlanFeature\"" +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetID() string { + if t == nil { + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} + } + return t.ID } - -func (t *UpdateEntitlementPlanFeature) GetUpdateEntitlementPlanFeature() *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature { +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetName() string { if t == nil { - t = &UpdateEntitlementPlanFeature{} + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} } - return &t.UpdateEntitlementPlanFeature + return t.Name } - -type GetAllEntitlementPlanFeatureHistories struct { - EntitlementPlanFeatureHistories GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories "json:\"entitlementPlanFeatureHistories\" graphql:\"entitlementPlanFeatureHistories\"" +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetProcedureType() *string { + if t == nil { + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} + } + return t.ProcedureType } - -func (t *GetAllEntitlementPlanFeatureHistories) GetEntitlementPlanFeatureHistories() *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories { +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetPurposeAndScope() *string { if t == nil { - t = &GetAllEntitlementPlanFeatureHistories{} + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} } - return &t.EntitlementPlanFeatureHistories + return t.PurposeAndScope } - -type GetEntitlementPlanFeatureHistories struct { - EntitlementPlanFeatureHistories GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories "json:\"entitlementPlanFeatureHistories\" graphql:\"entitlementPlanFeatureHistories\"" +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetSatisfies() *string { + if t == nil { + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} + } + return t.Satisfies } - -func (t *GetEntitlementPlanFeatureHistories) GetEntitlementPlanFeatureHistories() *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories { +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetStatus() *string { if t == nil { - t = &GetEntitlementPlanFeatureHistories{} + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} } - return &t.EntitlementPlanFeatureHistories + return t.Status } - -type GetAllEntitlementPlanHistories struct { - EntitlementPlanHistories GetAllEntitlementPlanHistories_EntitlementPlanHistories "json:\"entitlementPlanHistories\" graphql:\"entitlementPlanHistories\"" +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetTags() []string { + if t == nil { + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} + } + return t.Tags } - -func (t *GetAllEntitlementPlanHistories) GetEntitlementPlanHistories() *GetAllEntitlementPlanHistories_EntitlementPlanHistories { +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllEntitlementPlanHistories{} + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} } - return &t.EntitlementPlanHistories + return t.UpdatedAt } - -type GetEntitlementPlanHistories struct { - EntitlementPlanHistories GetEntitlementPlanHistories_EntitlementPlanHistories "json:\"entitlementPlanHistories\" graphql:\"entitlementPlanHistories\"" +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} + } + return t.UpdatedBy } - -func (t *GetEntitlementPlanHistories) GetEntitlementPlanHistories() *GetEntitlementPlanHistories_EntitlementPlanHistories { +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures) GetVersion() *string { if t == nil { - t = &GetEntitlementPlanHistories{} + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures{} } - return &t.EntitlementPlanHistories + return t.Version } -type CreateBulkCSVEntity struct { - CreateBulkCSVEntity CreateBulkCSVEntity_CreateBulkCSVEntity "json:\"createBulkCSVEntity\" graphql:\"createBulkCSVEntity\"" +type CreateBulkCSVProcedure_CreateBulkCSVProcedure struct { + Procedures []*CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures "json:\"procedures,omitempty\" graphql:\"procedures\"" } -func (t *CreateBulkCSVEntity) GetCreateBulkCSVEntity() *CreateBulkCSVEntity_CreateBulkCSVEntity { +func (t *CreateBulkCSVProcedure_CreateBulkCSVProcedure) GetProcedures() []*CreateBulkCSVProcedure_CreateBulkCSVProcedure_Procedures { if t == nil { - t = &CreateBulkCSVEntity{} + t = &CreateBulkCSVProcedure_CreateBulkCSVProcedure{} } - return &t.CreateBulkCSVEntity + return t.Procedures } -type CreateBulkEntity struct { - CreateBulkEntity CreateBulkEntity_CreateBulkEntity "json:\"createBulkEntity\" graphql:\"createBulkEntity\"" +type CreateBulkProcedure_CreateBulkProcedure_Procedures struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + ProcedureType *string "json:\"procedureType,omitempty\" graphql:\"procedureType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *CreateBulkEntity) GetCreateBulkEntity() *CreateBulkEntity_CreateBulkEntity { +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetBackground() *string { if t == nil { - t = &CreateBulkEntity{} + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} } - return &t.CreateBulkEntity + return t.Background } - -type CreateEntity struct { - CreateEntity CreateEntity_CreateEntity "json:\"createEntity\" graphql:\"createEntity\"" +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} + } + return t.CreatedAt } - -func (t *CreateEntity) GetCreateEntity() *CreateEntity_CreateEntity { +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetCreatedBy() *string { if t == nil { - t = &CreateEntity{} + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} } - return &t.CreateEntity + return t.CreatedBy } - -type DeleteEntity struct { - DeleteEntity DeleteEntity_DeleteEntity "json:\"deleteEntity\" graphql:\"deleteEntity\"" +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetDescription() *string { + if t == nil { + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} + } + return t.Description } - -func (t *DeleteEntity) GetDeleteEntity() *DeleteEntity_DeleteEntity { +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetDetails() map[string]interface{} { if t == nil { - t = &DeleteEntity{} + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} } - return &t.DeleteEntity + return t.Details } - -type GetAllEntities struct { - Entities GetAllEntities_Entities "json:\"entities\" graphql:\"entities\"" +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetID() string { + if t == nil { + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} + } + return t.ID } - -func (t *GetAllEntities) GetEntities() *GetAllEntities_Entities { +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetName() string { if t == nil { - t = &GetAllEntities{} + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} } - return &t.Entities + return t.Name } - -type GetEntities struct { - Entities GetEntities_Entities "json:\"entities\" graphql:\"entities\"" +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetProcedureType() *string { + if t == nil { + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} + } + return t.ProcedureType } - -func (t *GetEntities) GetEntities() *GetEntities_Entities { +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetPurposeAndScope() *string { if t == nil { - t = &GetEntities{} + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} } - return &t.Entities + return t.PurposeAndScope } - -type GetEntityByID struct { - Entity GetEntityByID_Entity "json:\"entity\" graphql:\"entity\"" +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetSatisfies() *string { + if t == nil { + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} + } + return t.Satisfies } - -func (t *GetEntityByID) GetEntity() *GetEntityByID_Entity { +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetStatus() *string { if t == nil { - t = &GetEntityByID{} + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} } - return &t.Entity + return t.Status } - -type UpdateEntity struct { - UpdateEntity UpdateEntity_UpdateEntity "json:\"updateEntity\" graphql:\"updateEntity\"" +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetTags() []string { + if t == nil { + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} + } + return t.Tags } - -func (t *UpdateEntity) GetUpdateEntity() *UpdateEntity_UpdateEntity { +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateEntity{} + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} } - return &t.UpdateEntity + return t.UpdatedAt } - -type GetAllEntityHistories struct { - EntityHistories GetAllEntityHistories_EntityHistories "json:\"entityHistories\" graphql:\"entityHistories\"" +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} + } + return t.UpdatedBy } - -func (t *GetAllEntityHistories) GetEntityHistories() *GetAllEntityHistories_EntityHistories { +func (t *CreateBulkProcedure_CreateBulkProcedure_Procedures) GetVersion() *string { if t == nil { - t = &GetAllEntityHistories{} + t = &CreateBulkProcedure_CreateBulkProcedure_Procedures{} } - return &t.EntityHistories + return t.Version } -type GetEntityHistories struct { - EntityHistories GetEntityHistories_EntityHistories "json:\"entityHistories\" graphql:\"entityHistories\"" +type CreateBulkProcedure_CreateBulkProcedure struct { + Procedures []*CreateBulkProcedure_CreateBulkProcedure_Procedures "json:\"procedures,omitempty\" graphql:\"procedures\"" } -func (t *GetEntityHistories) GetEntityHistories() *GetEntityHistories_EntityHistories { +func (t *CreateBulkProcedure_CreateBulkProcedure) GetProcedures() []*CreateBulkProcedure_CreateBulkProcedure_Procedures { if t == nil { - t = &GetEntityHistories{} + t = &CreateBulkProcedure_CreateBulkProcedure{} } - return &t.EntityHistories + return t.Procedures } -type CreateBulkCSVEntityType struct { - CreateBulkCSVEntityType CreateBulkCSVEntityType_CreateBulkCSVEntityType "json:\"createBulkCSVEntityType\" graphql:\"createBulkCSVEntityType\"" +type CreateProcedure_CreateProcedure_Procedure struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + ProcedureType *string "json:\"procedureType,omitempty\" graphql:\"procedureType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *CreateBulkCSVEntityType) GetCreateBulkCSVEntityType() *CreateBulkCSVEntityType_CreateBulkCSVEntityType { +func (t *CreateProcedure_CreateProcedure_Procedure) GetBackground() *string { if t == nil { - t = &CreateBulkCSVEntityType{} + t = &CreateProcedure_CreateProcedure_Procedure{} } - return &t.CreateBulkCSVEntityType + return t.Background } - -type CreateBulkEntityType struct { - CreateBulkEntityType CreateBulkEntityType_CreateBulkEntityType "json:\"createBulkEntityType\" graphql:\"createBulkEntityType\"" +func (t *CreateProcedure_CreateProcedure_Procedure) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateProcedure_CreateProcedure_Procedure{} + } + return t.CreatedAt } - -func (t *CreateBulkEntityType) GetCreateBulkEntityType() *CreateBulkEntityType_CreateBulkEntityType { +func (t *CreateProcedure_CreateProcedure_Procedure) GetCreatedBy() *string { if t == nil { - t = &CreateBulkEntityType{} + t = &CreateProcedure_CreateProcedure_Procedure{} } - return &t.CreateBulkEntityType + return t.CreatedBy } - -type CreateEntityType struct { - CreateEntityType CreateEntityType_CreateEntityType "json:\"createEntityType\" graphql:\"createEntityType\"" +func (t *CreateProcedure_CreateProcedure_Procedure) GetDescription() *string { + if t == nil { + t = &CreateProcedure_CreateProcedure_Procedure{} + } + return t.Description } - -func (t *CreateEntityType) GetCreateEntityType() *CreateEntityType_CreateEntityType { +func (t *CreateProcedure_CreateProcedure_Procedure) GetDetails() map[string]interface{} { if t == nil { - t = &CreateEntityType{} + t = &CreateProcedure_CreateProcedure_Procedure{} } - return &t.CreateEntityType + return t.Details } - -type DeleteEntityType struct { - DeleteEntityType DeleteEntityType_DeleteEntityType "json:\"deleteEntityType\" graphql:\"deleteEntityType\"" +func (t *CreateProcedure_CreateProcedure_Procedure) GetID() string { + if t == nil { + t = &CreateProcedure_CreateProcedure_Procedure{} + } + return t.ID } - -func (t *DeleteEntityType) GetDeleteEntityType() *DeleteEntityType_DeleteEntityType { +func (t *CreateProcedure_CreateProcedure_Procedure) GetName() string { if t == nil { - t = &DeleteEntityType{} + t = &CreateProcedure_CreateProcedure_Procedure{} } - return &t.DeleteEntityType + return t.Name } - -type GetAllEntityTypes struct { - EntityTypes GetAllEntityTypes_EntityTypes "json:\"entityTypes\" graphql:\"entityTypes\"" +func (t *CreateProcedure_CreateProcedure_Procedure) GetProcedureType() *string { + if t == nil { + t = &CreateProcedure_CreateProcedure_Procedure{} + } + return t.ProcedureType } - -func (t *GetAllEntityTypes) GetEntityTypes() *GetAllEntityTypes_EntityTypes { +func (t *CreateProcedure_CreateProcedure_Procedure) GetPurposeAndScope() *string { if t == nil { - t = &GetAllEntityTypes{} + t = &CreateProcedure_CreateProcedure_Procedure{} } - return &t.EntityTypes + return t.PurposeAndScope } - -type GetEntityTypeByID struct { - EntityType GetEntityTypeByID_EntityType "json:\"entityType\" graphql:\"entityType\"" +func (t *CreateProcedure_CreateProcedure_Procedure) GetSatisfies() *string { + if t == nil { + t = &CreateProcedure_CreateProcedure_Procedure{} + } + return t.Satisfies } - -func (t *GetEntityTypeByID) GetEntityType() *GetEntityTypeByID_EntityType { +func (t *CreateProcedure_CreateProcedure_Procedure) GetStatus() *string { if t == nil { - t = &GetEntityTypeByID{} + t = &CreateProcedure_CreateProcedure_Procedure{} } - return &t.EntityType + return t.Status } - -type GetEntityTypes struct { - EntityTypes GetEntityTypes_EntityTypes "json:\"entityTypes\" graphql:\"entityTypes\"" +func (t *CreateProcedure_CreateProcedure_Procedure) GetTags() []string { + if t == nil { + t = &CreateProcedure_CreateProcedure_Procedure{} + } + return t.Tags } - -func (t *GetEntityTypes) GetEntityTypes() *GetEntityTypes_EntityTypes { +func (t *CreateProcedure_CreateProcedure_Procedure) GetUpdatedAt() *time.Time { if t == nil { - t = &GetEntityTypes{} + t = &CreateProcedure_CreateProcedure_Procedure{} } - return &t.EntityTypes + return t.UpdatedAt } - -type UpdateEntityType struct { - UpdateEntityType UpdateEntityType_UpdateEntityType "json:\"updateEntityType\" graphql:\"updateEntityType\"" +func (t *CreateProcedure_CreateProcedure_Procedure) GetUpdatedBy() *string { + if t == nil { + t = &CreateProcedure_CreateProcedure_Procedure{} + } + return t.UpdatedBy } - -func (t *UpdateEntityType) GetUpdateEntityType() *UpdateEntityType_UpdateEntityType { +func (t *CreateProcedure_CreateProcedure_Procedure) GetVersion() *string { if t == nil { - t = &UpdateEntityType{} + t = &CreateProcedure_CreateProcedure_Procedure{} } - return &t.UpdateEntityType + return t.Version } -type GetAllEntityTypeHistories struct { - EntityTypeHistories GetAllEntityTypeHistories_EntityTypeHistories "json:\"entityTypeHistories\" graphql:\"entityTypeHistories\"" +type CreateProcedure_CreateProcedure struct { + Procedure CreateProcedure_CreateProcedure_Procedure "json:\"procedure\" graphql:\"procedure\"" } -func (t *GetAllEntityTypeHistories) GetEntityTypeHistories() *GetAllEntityTypeHistories_EntityTypeHistories { +func (t *CreateProcedure_CreateProcedure) GetProcedure() *CreateProcedure_CreateProcedure_Procedure { if t == nil { - t = &GetAllEntityTypeHistories{} + t = &CreateProcedure_CreateProcedure{} } - return &t.EntityTypeHistories + return &t.Procedure } -type GetEntityTypeHistories struct { - EntityTypeHistories GetEntityTypeHistories_EntityTypeHistories "json:\"entityTypeHistories\" graphql:\"entityTypeHistories\"" +type DeleteProcedure_DeleteProcedure struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetEntityTypeHistories) GetEntityTypeHistories() *GetEntityTypeHistories_EntityTypeHistories { +func (t *DeleteProcedure_DeleteProcedure) GetDeletedID() string { if t == nil { - t = &GetEntityTypeHistories{} + t = &DeleteProcedure_DeleteProcedure{} } - return &t.EntityTypeHistories + return t.DeletedID } -type CreateBulkCSVEvent struct { - CreateBulkCSVEvent CreateBulkCSVEvent_CreateBulkCSVEvent "json:\"createBulkCSVEvent\" graphql:\"createBulkCSVEvent\"" +type GetAllProcedures_Procedures_Edges_Node struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + ProcedureType *string "json:\"procedureType,omitempty\" graphql:\"procedureType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *CreateBulkCSVEvent) GetCreateBulkCSVEvent() *CreateBulkCSVEvent_CreateBulkCSVEvent { +func (t *GetAllProcedures_Procedures_Edges_Node) GetBackground() *string { if t == nil { - t = &CreateBulkCSVEvent{} + t = &GetAllProcedures_Procedures_Edges_Node{} } - return &t.CreateBulkCSVEvent + return t.Background } - -type CreateBulkEvent struct { - CreateBulkEvent CreateBulkEvent_CreateBulkEvent "json:\"createBulkEvent\" graphql:\"createBulkEvent\"" +func (t *GetAllProcedures_Procedures_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllProcedures_Procedures_Edges_Node{} + } + return t.CreatedAt } - -func (t *CreateBulkEvent) GetCreateBulkEvent() *CreateBulkEvent_CreateBulkEvent { +func (t *GetAllProcedures_Procedures_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkEvent{} + t = &GetAllProcedures_Procedures_Edges_Node{} } - return &t.CreateBulkEvent + return t.CreatedBy } - -type CreateEvent struct { - CreateEvent CreateEvent_CreateEvent "json:\"createEvent\" graphql:\"createEvent\"" +func (t *GetAllProcedures_Procedures_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllProcedures_Procedures_Edges_Node{} + } + return t.Description } - -func (t *CreateEvent) GetCreateEvent() *CreateEvent_CreateEvent { +func (t *GetAllProcedures_Procedures_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &CreateEvent{} + t = &GetAllProcedures_Procedures_Edges_Node{} } - return &t.CreateEvent + return t.Details } - -type DeleteEvent struct { - DeleteEvent DeleteEvent_DeleteEvent "json:\"deleteEvent\" graphql:\"deleteEvent\"" +func (t *GetAllProcedures_Procedures_Edges_Node) GetID() string { + if t == nil { + t = &GetAllProcedures_Procedures_Edges_Node{} + } + return t.ID } - -func (t *DeleteEvent) GetDeleteEvent() *DeleteEvent_DeleteEvent { +func (t *GetAllProcedures_Procedures_Edges_Node) GetName() string { if t == nil { - t = &DeleteEvent{} + t = &GetAllProcedures_Procedures_Edges_Node{} } - return &t.DeleteEvent + return t.Name } - -type GetAllEvents struct { - Events GetAllEvents_Events "json:\"events\" graphql:\"events\"" +func (t *GetAllProcedures_Procedures_Edges_Node) GetProcedureType() *string { + if t == nil { + t = &GetAllProcedures_Procedures_Edges_Node{} + } + return t.ProcedureType } - -func (t *GetAllEvents) GetEvents() *GetAllEvents_Events { +func (t *GetAllProcedures_Procedures_Edges_Node) GetPurposeAndScope() *string { if t == nil { - t = &GetAllEvents{} + t = &GetAllProcedures_Procedures_Edges_Node{} } - return &t.Events + return t.PurposeAndScope } - -type GetEventByID struct { - Event GetEventByID_Event "json:\"event\" graphql:\"event\"" +func (t *GetAllProcedures_Procedures_Edges_Node) GetSatisfies() *string { + if t == nil { + t = &GetAllProcedures_Procedures_Edges_Node{} + } + return t.Satisfies } - -func (t *GetEventByID) GetEvent() *GetEventByID_Event { +func (t *GetAllProcedures_Procedures_Edges_Node) GetStatus() *string { if t == nil { - t = &GetEventByID{} + t = &GetAllProcedures_Procedures_Edges_Node{} } - return &t.Event + return t.Status } - -type GetEvents struct { - Events GetEvents_Events "json:\"events\" graphql:\"events\"" +func (t *GetAllProcedures_Procedures_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllProcedures_Procedures_Edges_Node{} + } + return t.Tags } - -func (t *GetEvents) GetEvents() *GetEvents_Events { +func (t *GetAllProcedures_Procedures_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetEvents{} + t = &GetAllProcedures_Procedures_Edges_Node{} } - return &t.Events + return t.UpdatedAt } - -type UpdateEvent struct { - UpdateEvent UpdateEvent_UpdateEvent "json:\"updateEvent\" graphql:\"updateEvent\"" +func (t *GetAllProcedures_Procedures_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllProcedures_Procedures_Edges_Node{} + } + return t.UpdatedBy } - -func (t *UpdateEvent) GetUpdateEvent() *UpdateEvent_UpdateEvent { +func (t *GetAllProcedures_Procedures_Edges_Node) GetVersion() *string { if t == nil { - t = &UpdateEvent{} + t = &GetAllProcedures_Procedures_Edges_Node{} } - return &t.UpdateEvent + return t.Version } -type GetAllEventHistories struct { - EventHistories GetAllEventHistories_EventHistories "json:\"eventHistories\" graphql:\"eventHistories\"" +type GetAllProcedures_Procedures_Edges struct { + Node *GetAllProcedures_Procedures_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllEventHistories) GetEventHistories() *GetAllEventHistories_EventHistories { +func (t *GetAllProcedures_Procedures_Edges) GetNode() *GetAllProcedures_Procedures_Edges_Node { if t == nil { - t = &GetAllEventHistories{} + t = &GetAllProcedures_Procedures_Edges{} } - return &t.EventHistories + return t.Node } -type GetEventHistories struct { - EventHistories GetEventHistories_EventHistories "json:\"eventHistories\" graphql:\"eventHistories\"" +type GetAllProcedures_Procedures struct { + Edges []*GetAllProcedures_Procedures_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetEventHistories) GetEventHistories() *GetEventHistories_EventHistories { +func (t *GetAllProcedures_Procedures) GetEdges() []*GetAllProcedures_Procedures_Edges { if t == nil { - t = &GetEventHistories{} + t = &GetAllProcedures_Procedures{} } - return &t.EventHistories + return t.Edges } -type CreateBulkCSVFeature struct { - CreateBulkCSVFeature CreateBulkCSVFeature_CreateBulkCSVFeature "json:\"createBulkCSVFeature\" graphql:\"createBulkCSVFeature\"" +type GetProcedureByID_Procedure struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + ProcedureType *string "json:\"procedureType,omitempty\" graphql:\"procedureType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *CreateBulkCSVFeature) GetCreateBulkCSVFeature() *CreateBulkCSVFeature_CreateBulkCSVFeature { +func (t *GetProcedureByID_Procedure) GetBackground() *string { if t == nil { - t = &CreateBulkCSVFeature{} + t = &GetProcedureByID_Procedure{} } - return &t.CreateBulkCSVFeature + return t.Background } - -type CreateBulkFeature struct { - CreateBulkFeature CreateBulkFeature_CreateBulkFeature "json:\"createBulkFeature\" graphql:\"createBulkFeature\"" +func (t *GetProcedureByID_Procedure) GetCreatedAt() *time.Time { + if t == nil { + t = &GetProcedureByID_Procedure{} + } + return t.CreatedAt } - -func (t *CreateBulkFeature) GetCreateBulkFeature() *CreateBulkFeature_CreateBulkFeature { +func (t *GetProcedureByID_Procedure) GetCreatedBy() *string { if t == nil { - t = &CreateBulkFeature{} + t = &GetProcedureByID_Procedure{} } - return &t.CreateBulkFeature + return t.CreatedBy } - -type CreateFeature struct { - CreateFeature CreateFeature_CreateFeature "json:\"createFeature\" graphql:\"createFeature\"" +func (t *GetProcedureByID_Procedure) GetDescription() *string { + if t == nil { + t = &GetProcedureByID_Procedure{} + } + return t.Description } - -func (t *CreateFeature) GetCreateFeature() *CreateFeature_CreateFeature { +func (t *GetProcedureByID_Procedure) GetDetails() map[string]interface{} { if t == nil { - t = &CreateFeature{} + t = &GetProcedureByID_Procedure{} } - return &t.CreateFeature + return t.Details } - -type DeleteFeature struct { - DeleteFeature DeleteFeature_DeleteFeature "json:\"deleteFeature\" graphql:\"deleteFeature\"" +func (t *GetProcedureByID_Procedure) GetID() string { + if t == nil { + t = &GetProcedureByID_Procedure{} + } + return t.ID } - -func (t *DeleteFeature) GetDeleteFeature() *DeleteFeature_DeleteFeature { +func (t *GetProcedureByID_Procedure) GetName() string { if t == nil { - t = &DeleteFeature{} + t = &GetProcedureByID_Procedure{} } - return &t.DeleteFeature + return t.Name } - -type GetAllFeatures struct { - Features GetAllFeatures_Features "json:\"features\" graphql:\"features\"" +func (t *GetProcedureByID_Procedure) GetProcedureType() *string { + if t == nil { + t = &GetProcedureByID_Procedure{} + } + return t.ProcedureType } - -func (t *GetAllFeatures) GetFeatures() *GetAllFeatures_Features { +func (t *GetProcedureByID_Procedure) GetPurposeAndScope() *string { if t == nil { - t = &GetAllFeatures{} + t = &GetProcedureByID_Procedure{} } - return &t.Features + return t.PurposeAndScope } - -type GetFeatureByID struct { - Feature GetFeatureByID_Feature "json:\"feature\" graphql:\"feature\"" +func (t *GetProcedureByID_Procedure) GetSatisfies() *string { + if t == nil { + t = &GetProcedureByID_Procedure{} + } + return t.Satisfies } - -func (t *GetFeatureByID) GetFeature() *GetFeatureByID_Feature { +func (t *GetProcedureByID_Procedure) GetStatus() *string { if t == nil { - t = &GetFeatureByID{} + t = &GetProcedureByID_Procedure{} } - return &t.Feature + return t.Status } - -type GetFeatures struct { - Features GetFeatures_Features "json:\"features\" graphql:\"features\"" +func (t *GetProcedureByID_Procedure) GetTags() []string { + if t == nil { + t = &GetProcedureByID_Procedure{} + } + return t.Tags } - -func (t *GetFeatures) GetFeatures() *GetFeatures_Features { +func (t *GetProcedureByID_Procedure) GetUpdatedAt() *time.Time { if t == nil { - t = &GetFeatures{} + t = &GetProcedureByID_Procedure{} } - return &t.Features + return t.UpdatedAt } - -type UpdateFeature struct { - UpdateFeature UpdateFeature_UpdateFeature "json:\"updateFeature\" graphql:\"updateFeature\"" +func (t *GetProcedureByID_Procedure) GetUpdatedBy() *string { + if t == nil { + t = &GetProcedureByID_Procedure{} + } + return t.UpdatedBy } - -func (t *UpdateFeature) GetUpdateFeature() *UpdateFeature_UpdateFeature { +func (t *GetProcedureByID_Procedure) GetVersion() *string { if t == nil { - t = &UpdateFeature{} + t = &GetProcedureByID_Procedure{} } - return &t.UpdateFeature + return t.Version } -type GetAllFeatureHistories struct { - FeatureHistories GetAllFeatureHistories_FeatureHistories "json:\"featureHistories\" graphql:\"featureHistories\"" +type GetProcedures_Procedures_Edges_Node struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + ProcedureType *string "json:\"procedureType,omitempty\" graphql:\"procedureType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetAllFeatureHistories) GetFeatureHistories() *GetAllFeatureHistories_FeatureHistories { +func (t *GetProcedures_Procedures_Edges_Node) GetBackground() *string { if t == nil { - t = &GetAllFeatureHistories{} + t = &GetProcedures_Procedures_Edges_Node{} } - return &t.FeatureHistories + return t.Background } - -type GetFeatureHistories struct { - FeatureHistories GetFeatureHistories_FeatureHistories "json:\"featureHistories\" graphql:\"featureHistories\"" +func (t *GetProcedures_Procedures_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetProcedures_Procedures_Edges_Node{} + } + return t.CreatedAt } - -func (t *GetFeatureHistories) GetFeatureHistories() *GetFeatureHistories_FeatureHistories { +func (t *GetProcedures_Procedures_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetFeatureHistories{} + t = &GetProcedures_Procedures_Edges_Node{} } - return &t.FeatureHistories + return t.CreatedBy } - -type DeleteFile struct { - DeleteFile DeleteFile_DeleteFile "json:\"deleteFile\" graphql:\"deleteFile\"" +func (t *GetProcedures_Procedures_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetProcedures_Procedures_Edges_Node{} + } + return t.Description } - -func (t *DeleteFile) GetDeleteFile() *DeleteFile_DeleteFile { +func (t *GetProcedures_Procedures_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &DeleteFile{} + t = &GetProcedures_Procedures_Edges_Node{} } - return &t.DeleteFile + return t.Details } - -type GetAllFiles struct { - Files GetAllFiles_Files "json:\"files\" graphql:\"files\"" +func (t *GetProcedures_Procedures_Edges_Node) GetID() string { + if t == nil { + t = &GetProcedures_Procedures_Edges_Node{} + } + return t.ID } - -func (t *GetAllFiles) GetFiles() *GetAllFiles_Files { +func (t *GetProcedures_Procedures_Edges_Node) GetName() string { if t == nil { - t = &GetAllFiles{} + t = &GetProcedures_Procedures_Edges_Node{} } - return &t.Files + return t.Name } - -type GetFileByID struct { - File GetFileByID_File "json:\"file\" graphql:\"file\"" +func (t *GetProcedures_Procedures_Edges_Node) GetProcedureType() *string { + if t == nil { + t = &GetProcedures_Procedures_Edges_Node{} + } + return t.ProcedureType } - -func (t *GetFileByID) GetFile() *GetFileByID_File { +func (t *GetProcedures_Procedures_Edges_Node) GetPurposeAndScope() *string { if t == nil { - t = &GetFileByID{} + t = &GetProcedures_Procedures_Edges_Node{} } - return &t.File + return t.PurposeAndScope } - -type GetFiles struct { - Files GetFiles_Files "json:\"files\" graphql:\"files\"" +func (t *GetProcedures_Procedures_Edges_Node) GetSatisfies() *string { + if t == nil { + t = &GetProcedures_Procedures_Edges_Node{} + } + return t.Satisfies } - -func (t *GetFiles) GetFiles() *GetFiles_Files { +func (t *GetProcedures_Procedures_Edges_Node) GetStatus() *string { if t == nil { - t = &GetFiles{} + t = &GetProcedures_Procedures_Edges_Node{} } - return &t.Files + return t.Status } - -type GetAllFileHistories struct { - FileHistories GetAllFileHistories_FileHistories "json:\"fileHistories\" graphql:\"fileHistories\"" +func (t *GetProcedures_Procedures_Edges_Node) GetTags() []string { + if t == nil { + t = &GetProcedures_Procedures_Edges_Node{} + } + return t.Tags } - -func (t *GetAllFileHistories) GetFileHistories() *GetAllFileHistories_FileHistories { +func (t *GetProcedures_Procedures_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllFileHistories{} + t = &GetProcedures_Procedures_Edges_Node{} } - return &t.FileHistories + return t.UpdatedAt } - -type GetFileHistories struct { - FileHistories GetFileHistories_FileHistories "json:\"fileHistories\" graphql:\"fileHistories\"" +func (t *GetProcedures_Procedures_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetProcedures_Procedures_Edges_Node{} + } + return t.UpdatedBy } - -func (t *GetFileHistories) GetFileHistories() *GetFileHistories_FileHistories { +func (t *GetProcedures_Procedures_Edges_Node) GetVersion() *string { if t == nil { - t = &GetFileHistories{} + t = &GetProcedures_Procedures_Edges_Node{} } - return &t.FileHistories + return t.Version } -type CreateBulkCSVGroup struct { - CreateBulkCSVGroup CreateBulkCSVGroup_CreateBulkCSVGroup "json:\"createBulkCSVGroup\" graphql:\"createBulkCSVGroup\"" +type GetProcedures_Procedures_Edges struct { + Node *GetProcedures_Procedures_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateBulkCSVGroup) GetCreateBulkCSVGroup() *CreateBulkCSVGroup_CreateBulkCSVGroup { +func (t *GetProcedures_Procedures_Edges) GetNode() *GetProcedures_Procedures_Edges_Node { if t == nil { - t = &CreateBulkCSVGroup{} + t = &GetProcedures_Procedures_Edges{} } - return &t.CreateBulkCSVGroup + return t.Node } -type CreateBulkGroup struct { - CreateBulkGroup CreateBulkGroup_CreateBulkGroup "json:\"createBulkGroup\" graphql:\"createBulkGroup\"" +type GetProcedures_Procedures struct { + Edges []*GetProcedures_Procedures_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkGroup) GetCreateBulkGroup() *CreateBulkGroup_CreateBulkGroup { +func (t *GetProcedures_Procedures) GetEdges() []*GetProcedures_Procedures_Edges { if t == nil { - t = &CreateBulkGroup{} + t = &GetProcedures_Procedures{} } - return &t.CreateBulkGroup + return t.Edges } -type CreateGroup struct { - CreateGroup CreateGroup_CreateGroup "json:\"createGroup\" graphql:\"createGroup\"" +type UpdateProcedure_UpdateProcedure_Procedure struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + ProcedureType *string "json:\"procedureType,omitempty\" graphql:\"procedureType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *CreateGroup) GetCreateGroup() *CreateGroup_CreateGroup { +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetBackground() *string { if t == nil { - t = &CreateGroup{} + t = &UpdateProcedure_UpdateProcedure_Procedure{} } - return &t.CreateGroup + return t.Background } - -type DeleteGroup struct { - DeleteGroup DeleteGroup_DeleteGroup "json:\"deleteGroup\" graphql:\"deleteGroup\"" +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateProcedure_UpdateProcedure_Procedure{} + } + return t.CreatedAt } - -func (t *DeleteGroup) GetDeleteGroup() *DeleteGroup_DeleteGroup { +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetCreatedBy() *string { if t == nil { - t = &DeleteGroup{} + t = &UpdateProcedure_UpdateProcedure_Procedure{} } - return &t.DeleteGroup + return t.CreatedBy } - -type GetAllGroups struct { - Groups GetAllGroups_Groups "json:\"groups\" graphql:\"groups\"" +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetDescription() *string { + if t == nil { + t = &UpdateProcedure_UpdateProcedure_Procedure{} + } + return t.Description } - -func (t *GetAllGroups) GetGroups() *GetAllGroups_Groups { +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetDetails() map[string]interface{} { if t == nil { - t = &GetAllGroups{} + t = &UpdateProcedure_UpdateProcedure_Procedure{} } - return &t.Groups + return t.Details } - -type GetGroupByID struct { - Group GetGroupByID_Group "json:\"group\" graphql:\"group\"" +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetID() string { + if t == nil { + t = &UpdateProcedure_UpdateProcedure_Procedure{} + } + return t.ID } - -func (t *GetGroupByID) GetGroup() *GetGroupByID_Group { +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetName() string { if t == nil { - t = &GetGroupByID{} + t = &UpdateProcedure_UpdateProcedure_Procedure{} } - return &t.Group + return t.Name } - -type GetGroups struct { - Groups GetGroups_Groups "json:\"groups\" graphql:\"groups\"" +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetProcedureType() *string { + if t == nil { + t = &UpdateProcedure_UpdateProcedure_Procedure{} + } + return t.ProcedureType } - -func (t *GetGroups) GetGroups() *GetGroups_Groups { +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetPurposeAndScope() *string { if t == nil { - t = &GetGroups{} + t = &UpdateProcedure_UpdateProcedure_Procedure{} } - return &t.Groups + return t.PurposeAndScope } - -type UpdateGroup struct { - UpdateGroup UpdateGroup_UpdateGroup "json:\"updateGroup\" graphql:\"updateGroup\"" +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetSatisfies() *string { + if t == nil { + t = &UpdateProcedure_UpdateProcedure_Procedure{} + } + return t.Satisfies } - -func (t *UpdateGroup) GetUpdateGroup() *UpdateGroup_UpdateGroup { +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetStatus() *string { if t == nil { - t = &UpdateGroup{} + t = &UpdateProcedure_UpdateProcedure_Procedure{} } - return &t.UpdateGroup + return t.Status } - -type GetAllGroupHistories struct { - GroupHistories GetAllGroupHistories_GroupHistories "json:\"groupHistories\" graphql:\"groupHistories\"" +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetTags() []string { + if t == nil { + t = &UpdateProcedure_UpdateProcedure_Procedure{} + } + return t.Tags } - -func (t *GetAllGroupHistories) GetGroupHistories() *GetAllGroupHistories_GroupHistories { +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllGroupHistories{} + t = &UpdateProcedure_UpdateProcedure_Procedure{} } - return &t.GroupHistories + return t.UpdatedAt } - -type GetGroupHistories struct { - GroupHistories GetGroupHistories_GroupHistories "json:\"groupHistories\" graphql:\"groupHistories\"" +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetUpdatedBy() *string { + if t == nil { + t = &UpdateProcedure_UpdateProcedure_Procedure{} + } + return t.UpdatedBy } - -func (t *GetGroupHistories) GetGroupHistories() *GetGroupHistories_GroupHistories { +func (t *UpdateProcedure_UpdateProcedure_Procedure) GetVersion() *string { if t == nil { - t = &GetGroupHistories{} + t = &UpdateProcedure_UpdateProcedure_Procedure{} } - return &t.GroupHistories + return t.Version } -type AddUserToGroupWithRole struct { - CreateGroupMembership AddUserToGroupWithRole_CreateGroupMembership "json:\"createGroupMembership\" graphql:\"createGroupMembership\"" +type UpdateProcedure_UpdateProcedure struct { + Procedure UpdateProcedure_UpdateProcedure_Procedure "json:\"procedure\" graphql:\"procedure\"" } -func (t *AddUserToGroupWithRole) GetCreateGroupMembership() *AddUserToGroupWithRole_CreateGroupMembership { +func (t *UpdateProcedure_UpdateProcedure) GetProcedure() *UpdateProcedure_UpdateProcedure_Procedure { if t == nil { - t = &AddUserToGroupWithRole{} + t = &UpdateProcedure_UpdateProcedure{} } - return &t.CreateGroupMembership + return &t.Procedure } -type CreateBulkCSVGroupMembers struct { - CreateBulkCSVGroupMembership CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership "json:\"createBulkCSVGroupMembership\" graphql:\"createBulkCSVGroupMembership\"" +type GetAllProcedureHistories_ProcedureHistories_Edges_Node struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + ProcedureType *string "json:\"procedureType,omitempty\" graphql:\"procedureType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *CreateBulkCSVGroupMembers) GetCreateBulkCSVGroupMembership() *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership { +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetBackground() *string { if t == nil { - t = &CreateBulkCSVGroupMembers{} + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.CreateBulkCSVGroupMembership + return t.Background } - -type CreateBulkGroupMembers struct { - CreateBulkGroupMembership CreateBulkGroupMembers_CreateBulkGroupMembership "json:\"createBulkGroupMembership\" graphql:\"createBulkGroupMembership\"" +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.CreatedAt } - -func (t *CreateBulkGroupMembers) GetCreateBulkGroupMembership() *CreateBulkGroupMembers_CreateBulkGroupMembership { +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkGroupMembers{} + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.CreateBulkGroupMembership + return t.CreatedBy } - -type GetGroupMembersByGroupID struct { - GroupMemberships GetGroupMembersByGroupID_GroupMemberships "json:\"groupMemberships\" graphql:\"groupMemberships\"" +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.Description } - -func (t *GetGroupMembersByGroupID) GetGroupMemberships() *GetGroupMembersByGroupID_GroupMemberships { +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &GetGroupMembersByGroupID{} + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.GroupMemberships + return t.Details } - -type RemoveUserFromGroup struct { - DeleteGroupMembership RemoveUserFromGroup_DeleteGroupMembership "json:\"deleteGroupMembership\" graphql:\"deleteGroupMembership\"" +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} + } + return &t.HistoryTime } - -func (t *RemoveUserFromGroup) GetDeleteGroupMembership() *RemoveUserFromGroup_DeleteGroupMembership { +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetID() string { if t == nil { - t = &RemoveUserFromGroup{} + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.DeleteGroupMembership + return t.ID } - -type UpdateUserRoleInGroup struct { - UpdateGroupMembership UpdateUserRoleInGroup_UpdateGroupMembership "json:\"updateGroupMembership\" graphql:\"updateGroupMembership\"" +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetName() string { + if t == nil { + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.Name } - -func (t *UpdateUserRoleInGroup) GetUpdateGroupMembership() *UpdateUserRoleInGroup_UpdateGroupMembership { +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetOperation() *history.OpType { if t == nil { - t = &UpdateUserRoleInGroup{} + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.UpdateGroupMembership + return &t.Operation } - -type GetAllGroupMembershipHistories struct { - GroupMembershipHistories GetAllGroupMembershipHistories_GroupMembershipHistories "json:\"groupMembershipHistories\" graphql:\"groupMembershipHistories\"" +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetProcedureType() *string { + if t == nil { + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.ProcedureType } - -func (t *GetAllGroupMembershipHistories) GetGroupMembershipHistories() *GetAllGroupMembershipHistories_GroupMembershipHistories { +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetPurposeAndScope() *string { if t == nil { - t = &GetAllGroupMembershipHistories{} + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.GroupMembershipHistories + return t.PurposeAndScope } - -type GetGroupMembershipHistories struct { - GroupMembershipHistories GetGroupMembershipHistories_GroupMembershipHistories "json:\"groupMembershipHistories\" graphql:\"groupMembershipHistories\"" +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.Ref } - -func (t *GetGroupMembershipHistories) GetGroupMembershipHistories() *GetGroupMembershipHistories_GroupMembershipHistories { +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetSatisfies() *string { if t == nil { - t = &GetGroupMembershipHistories{} + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.GroupMembershipHistories + return t.Satisfies } - -type GetAllGroupSettings struct { - GroupSettings GetAllGroupSettings_GroupSettings "json:\"groupSettings\" graphql:\"groupSettings\"" +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetStatus() *string { + if t == nil { + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.Status } - -func (t *GetAllGroupSettings) GetGroupSettings() *GetAllGroupSettings_GroupSettings { +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetAllGroupSettings{} + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.GroupSettings + return t.Tags } - -type GetGroupSettingByID struct { - GroupSetting GetGroupSettingByID_GroupSetting "json:\"groupSetting\" graphql:\"groupSetting\"" +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.UpdatedAt } - -func (t *GetGroupSettingByID) GetGroupSetting() *GetGroupSettingByID_GroupSetting { +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &GetGroupSettingByID{} + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.GroupSetting + return t.UpdatedBy +} +func (t *GetAllProcedureHistories_ProcedureHistories_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetAllProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.Version } -type GetGroupSettings struct { - GroupSettings GetGroupSettings_GroupSettings "json:\"groupSettings\" graphql:\"groupSettings\"" +type GetAllProcedureHistories_ProcedureHistories_Edges struct { + Node *GetAllProcedureHistories_ProcedureHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetGroupSettings) GetGroupSettings() *GetGroupSettings_GroupSettings { +func (t *GetAllProcedureHistories_ProcedureHistories_Edges) GetNode() *GetAllProcedureHistories_ProcedureHistories_Edges_Node { if t == nil { - t = &GetGroupSettings{} + t = &GetAllProcedureHistories_ProcedureHistories_Edges{} } - return &t.GroupSettings + return t.Node } -type UpdateGroupSetting struct { - UpdateGroupSetting UpdateGroupSetting_UpdateGroupSetting "json:\"updateGroupSetting\" graphql:\"updateGroupSetting\"" +type GetAllProcedureHistories_ProcedureHistories struct { + Edges []*GetAllProcedureHistories_ProcedureHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *UpdateGroupSetting) GetUpdateGroupSetting() *UpdateGroupSetting_UpdateGroupSetting { +func (t *GetAllProcedureHistories_ProcedureHistories) GetEdges() []*GetAllProcedureHistories_ProcedureHistories_Edges { if t == nil { - t = &UpdateGroupSetting{} + t = &GetAllProcedureHistories_ProcedureHistories{} } - return &t.UpdateGroupSetting + return t.Edges } -type GetAllGroupSettingHistories struct { - GroupSettingHistories GetAllGroupSettingHistories_GroupSettingHistories "json:\"groupSettingHistories\" graphql:\"groupSettingHistories\"" +type GetProcedureHistories_ProcedureHistories_Edges_Node struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + ProcedureType *string "json:\"procedureType,omitempty\" graphql:\"procedureType\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" } -func (t *GetAllGroupSettingHistories) GetGroupSettingHistories() *GetAllGroupSettingHistories_GroupSettingHistories { +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetBackground() *string { if t == nil { - t = &GetAllGroupSettingHistories{} + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.GroupSettingHistories -} - -type GetGroupSettingHistories struct { - GroupSettingHistories GetGroupSettingHistories_GroupSettingHistories "json:\"groupSettingHistories\" graphql:\"groupSettingHistories\"" + return t.Background } - -func (t *GetGroupSettingHistories) GetGroupSettingHistories() *GetGroupSettingHistories_GroupSettingHistories { +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetCreatedAt() *time.Time { if t == nil { - t = &GetGroupSettingHistories{} + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.GroupSettingHistories + return t.CreatedAt } - -type CreateBulkCSVHush struct { - CreateBulkCSVHush CreateBulkCSVHush_CreateBulkCSVHush "json:\"createBulkCSVHush\" graphql:\"createBulkCSVHush\"" +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.CreatedBy } - -func (t *CreateBulkCSVHush) GetCreateBulkCSVHush() *CreateBulkCSVHush_CreateBulkCSVHush { +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetDescription() *string { if t == nil { - t = &CreateBulkCSVHush{} + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.CreateBulkCSVHush + return t.Description } - -type CreateBulkHush struct { - CreateBulkHush CreateBulkHush_CreateBulkHush "json:\"createBulkHush\" graphql:\"createBulkHush\"" +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetDetails() map[string]interface{} { + if t == nil { + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.Details } - -func (t *CreateBulkHush) GetCreateBulkHush() *CreateBulkHush_CreateBulkHush { +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetHistoryTime() *time.Time { if t == nil { - t = &CreateBulkHush{} + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.CreateBulkHush + return &t.HistoryTime } - -type CreateHush struct { - CreateHush CreateHush_CreateHush "json:\"createHush\" graphql:\"createHush\"" +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.ID } - -func (t *CreateHush) GetCreateHush() *CreateHush_CreateHush { +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetName() string { if t == nil { - t = &CreateHush{} + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.CreateHush + return t.Name } - -type GetAllHushes struct { - Hushes GetAllHushes_Hushes "json:\"hushes\" graphql:\"hushes\"" +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} + } + return &t.Operation } - -func (t *GetAllHushes) GetHushes() *GetAllHushes_Hushes { +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetProcedureType() *string { if t == nil { - t = &GetAllHushes{} + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.Hushes + return t.ProcedureType } - -type GetHushByID struct { - Hush GetHushByID_Hush "json:\"hush\" graphql:\"hush\"" +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetPurposeAndScope() *string { + if t == nil { + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.PurposeAndScope } - -func (t *GetHushByID) GetHush() *GetHushByID_Hush { +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetHushByID{} + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.Hush + return t.Ref } - -type GetHushes struct { - Hushes GetHushes_Hushes "json:\"hushes\" graphql:\"hushes\"" +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetSatisfies() *string { + if t == nil { + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.Satisfies } - -func (t *GetHushes) GetHushes() *GetHushes_Hushes { +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetStatus() *string { if t == nil { - t = &GetHushes{} + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.Hushes + return t.Status } - -type UpdateHush struct { - UpdateHush UpdateHush_UpdateHush "json:\"updateHush\" graphql:\"updateHush\"" +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.Tags } - -func (t *UpdateHush) GetUpdateHush() *UpdateHush_UpdateHush { +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdateHush{} + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.UpdateHush + return t.UpdatedAt } - -type GetAllHushHistories struct { - HushHistories GetAllHushHistories_HushHistories "json:\"hushHistories\" graphql:\"hushHistories\"" +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} + } + return t.UpdatedBy } - -func (t *GetAllHushHistories) GetHushHistories() *GetAllHushHistories_HushHistories { +func (t *GetProcedureHistories_ProcedureHistories_Edges_Node) GetVersion() *string { if t == nil { - t = &GetAllHushHistories{} + t = &GetProcedureHistories_ProcedureHistories_Edges_Node{} } - return &t.HushHistories + return t.Version } -type GetHushHistories struct { - HushHistories GetHushHistories_HushHistories "json:\"hushHistories\" graphql:\"hushHistories\"" +type GetProcedureHistories_ProcedureHistories_Edges struct { + Node *GetProcedureHistories_ProcedureHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetHushHistories) GetHushHistories() *GetHushHistories_HushHistories { +func (t *GetProcedureHistories_ProcedureHistories_Edges) GetNode() *GetProcedureHistories_ProcedureHistories_Edges_Node { if t == nil { - t = &GetHushHistories{} + t = &GetProcedureHistories_ProcedureHistories_Edges{} } - return &t.HushHistories + return t.Node } -type CreateBulkCSVIntegration struct { - CreateBulkCSVIntegration CreateBulkCSVIntegration_CreateBulkCSVIntegration "json:\"createBulkCSVIntegration\" graphql:\"createBulkCSVIntegration\"" +type GetProcedureHistories_ProcedureHistories struct { + Edges []*GetProcedureHistories_ProcedureHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkCSVIntegration) GetCreateBulkCSVIntegration() *CreateBulkCSVIntegration_CreateBulkCSVIntegration { +func (t *GetProcedureHistories_ProcedureHistories) GetEdges() []*GetProcedureHistories_ProcedureHistories_Edges { if t == nil { - t = &CreateBulkCSVIntegration{} + t = &GetProcedureHistories_ProcedureHistories{} } - return &t.CreateBulkCSVIntegration + return t.Edges } -type CreateBulkIntegration struct { - CreateBulkIntegration CreateBulkIntegration_CreateBulkIntegration "json:\"createBulkIntegration\" graphql:\"createBulkIntegration\"" +type CreateBulkCSVRisk_CreateBulkCSVRisk_Risks struct { + BusinessCosts *string "json:\"businessCosts,omitempty\" graphql:\"businessCosts\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Impact *enums.RiskImpact "json:\"impact,omitempty\" graphql:\"impact\"" + Likelihood *enums.RiskLikelihood "json:\"likelihood,omitempty\" graphql:\"likelihood\"" + Mitigation *string "json:\"mitigation,omitempty\" graphql:\"mitigation\"" + Name string "json:\"name\" graphql:\"name\"" + RiskType *string "json:\"riskType,omitempty\" graphql:\"riskType\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateBulkIntegration) GetCreateBulkIntegration() *CreateBulkIntegration_CreateBulkIntegration { +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetBusinessCosts() *string { if t == nil { - t = &CreateBulkIntegration{} + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} } - return &t.CreateBulkIntegration -} - -type CreateIntegration struct { - CreateIntegration CreateIntegration_CreateIntegration "json:\"createIntegration\" graphql:\"createIntegration\"" + return t.BusinessCosts } - -func (t *CreateIntegration) GetCreateIntegration() *CreateIntegration_CreateIntegration { +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetCreatedAt() *time.Time { if t == nil { - t = &CreateIntegration{} + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} } - return &t.CreateIntegration + return t.CreatedAt } - -type DeleteIntegration struct { - DeleteIntegration DeleteIntegration_DeleteIntegration "json:\"deleteIntegration\" graphql:\"deleteIntegration\"" +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetCreatedBy() *string { + if t == nil { + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} + } + return t.CreatedBy } - -func (t *DeleteIntegration) GetDeleteIntegration() *DeleteIntegration_DeleteIntegration { +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetDescription() *string { if t == nil { - t = &DeleteIntegration{} + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} } - return &t.DeleteIntegration + return t.Description } - -type GetAllIntegrations struct { - Integrations GetAllIntegrations_Integrations "json:\"integrations\" graphql:\"integrations\"" +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetDetails() map[string]interface{} { + if t == nil { + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} + } + return t.Details } - -func (t *GetAllIntegrations) GetIntegrations() *GetAllIntegrations_Integrations { +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetID() string { if t == nil { - t = &GetAllIntegrations{} + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} } - return &t.Integrations + return t.ID } - -type GetIntegrationByID struct { - Integration GetIntegrationByID_Integration "json:\"integration\" graphql:\"integration\"" +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetImpact() *enums.RiskImpact { + if t == nil { + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} + } + return t.Impact } - -func (t *GetIntegrationByID) GetIntegration() *GetIntegrationByID_Integration { +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetLikelihood() *enums.RiskLikelihood { if t == nil { - t = &GetIntegrationByID{} + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} } - return &t.Integration + return t.Likelihood } - -type GetIntegrations struct { - Integrations GetIntegrations_Integrations "json:\"integrations\" graphql:\"integrations\"" +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetMitigation() *string { + if t == nil { + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} + } + return t.Mitigation } - -func (t *GetIntegrations) GetIntegrations() *GetIntegrations_Integrations { +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetName() string { if t == nil { - t = &GetIntegrations{} + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} } - return &t.Integrations + return t.Name } - -type UpdateIntegration struct { - UpdateIntegration UpdateIntegration_UpdateIntegration "json:\"updateIntegration\" graphql:\"updateIntegration\"" +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetRiskType() *string { + if t == nil { + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} + } + return t.RiskType } - -func (t *UpdateIntegration) GetUpdateIntegration() *UpdateIntegration_UpdateIntegration { +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetSatisfies() *string { if t == nil { - t = &UpdateIntegration{} + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} } - return &t.UpdateIntegration + return t.Satisfies } - -type GetAllIntegrationHistories struct { - IntegrationHistories GetAllIntegrationHistories_IntegrationHistories "json:\"integrationHistories\" graphql:\"integrationHistories\"" +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetStatus() *string { + if t == nil { + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} + } + return t.Status } - -func (t *GetAllIntegrationHistories) GetIntegrationHistories() *GetAllIntegrationHistories_IntegrationHistories { +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetTags() []string { if t == nil { - t = &GetAllIntegrationHistories{} + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} } - return &t.IntegrationHistories + return t.Tags } - -type GetIntegrationHistories struct { - IntegrationHistories GetIntegrationHistories_IntegrationHistories "json:\"integrationHistories\" graphql:\"integrationHistories\"" +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} + } + return t.UpdatedAt } - -func (t *GetIntegrationHistories) GetIntegrationHistories() *GetIntegrationHistories_IntegrationHistories { +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk_Risks) GetUpdatedBy() *string { if t == nil { - t = &GetIntegrationHistories{} + t = &CreateBulkCSVRisk_CreateBulkCSVRisk_Risks{} } - return &t.IntegrationHistories + return t.UpdatedBy } -type CreateBulkCSVInvite struct { - CreateBulkCSVInvite CreateBulkCSVInvite_CreateBulkCSVInvite "json:\"createBulkCSVInvite\" graphql:\"createBulkCSVInvite\"" +type CreateBulkCSVRisk_CreateBulkCSVRisk struct { + Risks []*CreateBulkCSVRisk_CreateBulkCSVRisk_Risks "json:\"risks,omitempty\" graphql:\"risks\"" } -func (t *CreateBulkCSVInvite) GetCreateBulkCSVInvite() *CreateBulkCSVInvite_CreateBulkCSVInvite { +func (t *CreateBulkCSVRisk_CreateBulkCSVRisk) GetRisks() []*CreateBulkCSVRisk_CreateBulkCSVRisk_Risks { if t == nil { - t = &CreateBulkCSVInvite{} + t = &CreateBulkCSVRisk_CreateBulkCSVRisk{} } - return &t.CreateBulkCSVInvite + return t.Risks } -type CreateBulkInvite struct { - CreateBulkInvite CreateBulkInvite_CreateBulkInvite "json:\"createBulkInvite\" graphql:\"createBulkInvite\"" +type CreateBulkRisk_CreateBulkRisk_Risks struct { + BusinessCosts *string "json:\"businessCosts,omitempty\" graphql:\"businessCosts\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Impact *enums.RiskImpact "json:\"impact,omitempty\" graphql:\"impact\"" + Likelihood *enums.RiskLikelihood "json:\"likelihood,omitempty\" graphql:\"likelihood\"" + Mitigation *string "json:\"mitigation,omitempty\" graphql:\"mitigation\"" + Name string "json:\"name\" graphql:\"name\"" + RiskType *string "json:\"riskType,omitempty\" graphql:\"riskType\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateBulkInvite) GetCreateBulkInvite() *CreateBulkInvite_CreateBulkInvite { +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetBusinessCosts() *string { if t == nil { - t = &CreateBulkInvite{} + t = &CreateBulkRisk_CreateBulkRisk_Risks{} } - return &t.CreateBulkInvite -} - -type CreateInvite struct { - CreateInvite CreateInvite_CreateInvite "json:\"createInvite\" graphql:\"createInvite\"" + return t.BusinessCosts } - -func (t *CreateInvite) GetCreateInvite() *CreateInvite_CreateInvite { +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetCreatedAt() *time.Time { if t == nil { - t = &CreateInvite{} + t = &CreateBulkRisk_CreateBulkRisk_Risks{} } - return &t.CreateInvite + return t.CreatedAt } - -type DeleteInvite struct { - DeleteInvite DeleteInvite_DeleteInvite "json:\"deleteInvite\" graphql:\"deleteInvite\"" +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetCreatedBy() *string { + if t == nil { + t = &CreateBulkRisk_CreateBulkRisk_Risks{} + } + return t.CreatedBy } - -func (t *DeleteInvite) GetDeleteInvite() *DeleteInvite_DeleteInvite { +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetDescription() *string { if t == nil { - t = &DeleteInvite{} + t = &CreateBulkRisk_CreateBulkRisk_Risks{} } - return &t.DeleteInvite + return t.Description } - -type GetInviteByID struct { - Invite GetInviteByID_Invite "json:\"invite\" graphql:\"invite\"" +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetDetails() map[string]interface{} { + if t == nil { + t = &CreateBulkRisk_CreateBulkRisk_Risks{} + } + return t.Details } - -func (t *GetInviteByID) GetInvite() *GetInviteByID_Invite { +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetID() string { if t == nil { - t = &GetInviteByID{} + t = &CreateBulkRisk_CreateBulkRisk_Risks{} } - return &t.Invite + return t.ID } - -type GetAllInvites struct { - Invites GetAllInvites_Invites "json:\"invites\" graphql:\"invites\"" +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetImpact() *enums.RiskImpact { + if t == nil { + t = &CreateBulkRisk_CreateBulkRisk_Risks{} + } + return t.Impact } - -func (t *GetAllInvites) GetInvites() *GetAllInvites_Invites { +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetLikelihood() *enums.RiskLikelihood { if t == nil { - t = &GetAllInvites{} + t = &CreateBulkRisk_CreateBulkRisk_Risks{} } - return &t.Invites + return t.Likelihood } - -type InvitesByOrgID struct { - Invites InvitesByOrgID_Invites "json:\"invites\" graphql:\"invites\"" +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetMitigation() *string { + if t == nil { + t = &CreateBulkRisk_CreateBulkRisk_Risks{} + } + return t.Mitigation } - -func (t *InvitesByOrgID) GetInvites() *InvitesByOrgID_Invites { +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetName() string { if t == nil { - t = &InvitesByOrgID{} + t = &CreateBulkRisk_CreateBulkRisk_Risks{} } - return &t.Invites + return t.Name } - -type GetAllNoteHistories struct { - NoteHistories GetAllNoteHistories_NoteHistories "json:\"noteHistories\" graphql:\"noteHistories\"" +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetRiskType() *string { + if t == nil { + t = &CreateBulkRisk_CreateBulkRisk_Risks{} + } + return t.RiskType } - -func (t *GetAllNoteHistories) GetNoteHistories() *GetAllNoteHistories_NoteHistories { +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetSatisfies() *string { if t == nil { - t = &GetAllNoteHistories{} + t = &CreateBulkRisk_CreateBulkRisk_Risks{} } - return &t.NoteHistories + return t.Satisfies } - -type GetNoteHistories struct { - NoteHistories GetNoteHistories_NoteHistories "json:\"noteHistories\" graphql:\"noteHistories\"" +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetStatus() *string { + if t == nil { + t = &CreateBulkRisk_CreateBulkRisk_Risks{} + } + return t.Status } - -func (t *GetNoteHistories) GetNoteHistories() *GetNoteHistories_NoteHistories { +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetTags() []string { if t == nil { - t = &GetNoteHistories{} + t = &CreateBulkRisk_CreateBulkRisk_Risks{} } - return &t.NoteHistories + return t.Tags } - -type GetAllOauthProviderHistories struct { - OauthProviderHistories GetAllOauthProviderHistories_OauthProviderHistories "json:\"oauthProviderHistories\" graphql:\"oauthProviderHistories\"" +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkRisk_CreateBulkRisk_Risks{} + } + return t.UpdatedAt } - -func (t *GetAllOauthProviderHistories) GetOauthProviderHistories() *GetAllOauthProviderHistories_OauthProviderHistories { +func (t *CreateBulkRisk_CreateBulkRisk_Risks) GetUpdatedBy() *string { if t == nil { - t = &GetAllOauthProviderHistories{} + t = &CreateBulkRisk_CreateBulkRisk_Risks{} } - return &t.OauthProviderHistories + return t.UpdatedBy } -type GetOauthProviderHistories struct { - OauthProviderHistories GetOauthProviderHistories_OauthProviderHistories "json:\"oauthProviderHistories\" graphql:\"oauthProviderHistories\"" +type CreateBulkRisk_CreateBulkRisk struct { + Risks []*CreateBulkRisk_CreateBulkRisk_Risks "json:\"risks,omitempty\" graphql:\"risks\"" } -func (t *GetOauthProviderHistories) GetOauthProviderHistories() *GetOauthProviderHistories_OauthProviderHistories { +func (t *CreateBulkRisk_CreateBulkRisk) GetRisks() []*CreateBulkRisk_CreateBulkRisk_Risks { if t == nil { - t = &GetOauthProviderHistories{} + t = &CreateBulkRisk_CreateBulkRisk{} } - return &t.OauthProviderHistories + return t.Risks } -type CreateBulkCSVOhAuthTooToken struct { - CreateBulkCSVOhAuthTooToken CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken "json:\"createBulkCSVOhAuthTooToken\" graphql:\"createBulkCSVOhAuthTooToken\"" +type CreateRisk_CreateRisk_Risk struct { + BusinessCosts *string "json:\"businessCosts,omitempty\" graphql:\"businessCosts\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Impact *enums.RiskImpact "json:\"impact,omitempty\" graphql:\"impact\"" + Likelihood *enums.RiskLikelihood "json:\"likelihood,omitempty\" graphql:\"likelihood\"" + Mitigation *string "json:\"mitigation,omitempty\" graphql:\"mitigation\"" + Name string "json:\"name\" graphql:\"name\"" + RiskType *string "json:\"riskType,omitempty\" graphql:\"riskType\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateBulkCSVOhAuthTooToken) GetCreateBulkCSVOhAuthTooToken() *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken { +func (t *CreateRisk_CreateRisk_Risk) GetBusinessCosts() *string { if t == nil { - t = &CreateBulkCSVOhAuthTooToken{} + t = &CreateRisk_CreateRisk_Risk{} } - return &t.CreateBulkCSVOhAuthTooToken -} - -type CreateBulkOhAuthTooToken struct { - CreateBulkOhAuthTooToken CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken "json:\"createBulkOhAuthTooToken\" graphql:\"createBulkOhAuthTooToken\"" + return t.BusinessCosts } - -func (t *CreateBulkOhAuthTooToken) GetCreateBulkOhAuthTooToken() *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken { +func (t *CreateRisk_CreateRisk_Risk) GetCreatedAt() *time.Time { if t == nil { - t = &CreateBulkOhAuthTooToken{} + t = &CreateRisk_CreateRisk_Risk{} } - return &t.CreateBulkOhAuthTooToken + return t.CreatedAt } - -type CreateOhAuthTooToken struct { - CreateOhAuthTooToken CreateOhAuthTooToken_CreateOhAuthTooToken "json:\"createOhAuthTooToken\" graphql:\"createOhAuthTooToken\"" +func (t *CreateRisk_CreateRisk_Risk) GetCreatedBy() *string { + if t == nil { + t = &CreateRisk_CreateRisk_Risk{} + } + return t.CreatedBy } - -func (t *CreateOhAuthTooToken) GetCreateOhAuthTooToken() *CreateOhAuthTooToken_CreateOhAuthTooToken { +func (t *CreateRisk_CreateRisk_Risk) GetDescription() *string { if t == nil { - t = &CreateOhAuthTooToken{} + t = &CreateRisk_CreateRisk_Risk{} } - return &t.CreateOhAuthTooToken + return t.Description } - -type DeleteOhAuthTooToken struct { - DeleteOhAuthTooToken DeleteOhAuthTooToken_DeleteOhAuthTooToken "json:\"deleteOhAuthTooToken\" graphql:\"deleteOhAuthTooToken\"" +func (t *CreateRisk_CreateRisk_Risk) GetDetails() map[string]interface{} { + if t == nil { + t = &CreateRisk_CreateRisk_Risk{} + } + return t.Details } - -func (t *DeleteOhAuthTooToken) GetDeleteOhAuthTooToken() *DeleteOhAuthTooToken_DeleteOhAuthTooToken { +func (t *CreateRisk_CreateRisk_Risk) GetID() string { if t == nil { - t = &DeleteOhAuthTooToken{} + t = &CreateRisk_CreateRisk_Risk{} } - return &t.DeleteOhAuthTooToken + return t.ID } - -type GetOhAuthTooTokens struct { - OhAuthTooTokens GetOhAuthTooTokens_OhAuthTooTokens "json:\"ohAuthTooTokens\" graphql:\"ohAuthTooTokens\"" +func (t *CreateRisk_CreateRisk_Risk) GetImpact() *enums.RiskImpact { + if t == nil { + t = &CreateRisk_CreateRisk_Risk{} + } + return t.Impact } - -func (t *GetOhAuthTooTokens) GetOhAuthTooTokens() *GetOhAuthTooTokens_OhAuthTooTokens { +func (t *CreateRisk_CreateRisk_Risk) GetLikelihood() *enums.RiskLikelihood { if t == nil { - t = &GetOhAuthTooTokens{} + t = &CreateRisk_CreateRisk_Risk{} } - return &t.OhAuthTooTokens + return t.Likelihood } - -type UpdateOhAuthTooToken struct { - UpdateOhAuthTooToken UpdateOhAuthTooToken_UpdateOhAuthTooToken "json:\"updateOhAuthTooToken\" graphql:\"updateOhAuthTooToken\"" +func (t *CreateRisk_CreateRisk_Risk) GetMitigation() *string { + if t == nil { + t = &CreateRisk_CreateRisk_Risk{} + } + return t.Mitigation } - -func (t *UpdateOhAuthTooToken) GetUpdateOhAuthTooToken() *UpdateOhAuthTooToken_UpdateOhAuthTooToken { +func (t *CreateRisk_CreateRisk_Risk) GetName() string { if t == nil { - t = &UpdateOhAuthTooToken{} + t = &CreateRisk_CreateRisk_Risk{} } - return &t.UpdateOhAuthTooToken + return t.Name } - -type CreateBulkCSVOrganization struct { - CreateBulkCSVOrganization CreateBulkCSVOrganization_CreateBulkCSVOrganization "json:\"createBulkCSVOrganization\" graphql:\"createBulkCSVOrganization\"" +func (t *CreateRisk_CreateRisk_Risk) GetRiskType() *string { + if t == nil { + t = &CreateRisk_CreateRisk_Risk{} + } + return t.RiskType } - -func (t *CreateBulkCSVOrganization) GetCreateBulkCSVOrganization() *CreateBulkCSVOrganization_CreateBulkCSVOrganization { +func (t *CreateRisk_CreateRisk_Risk) GetSatisfies() *string { if t == nil { - t = &CreateBulkCSVOrganization{} + t = &CreateRisk_CreateRisk_Risk{} } - return &t.CreateBulkCSVOrganization + return t.Satisfies } - -type CreateBulkOrganization struct { - CreateBulkOrganization CreateBulkOrganization_CreateBulkOrganization "json:\"createBulkOrganization\" graphql:\"createBulkOrganization\"" +func (t *CreateRisk_CreateRisk_Risk) GetStatus() *string { + if t == nil { + t = &CreateRisk_CreateRisk_Risk{} + } + return t.Status } - -func (t *CreateBulkOrganization) GetCreateBulkOrganization() *CreateBulkOrganization_CreateBulkOrganization { +func (t *CreateRisk_CreateRisk_Risk) GetTags() []string { if t == nil { - t = &CreateBulkOrganization{} + t = &CreateRisk_CreateRisk_Risk{} } - return &t.CreateBulkOrganization + return t.Tags } - -type CreateOrganization struct { - CreateOrganization CreateOrganization_CreateOrganization "json:\"createOrganization\" graphql:\"createOrganization\"" +func (t *CreateRisk_CreateRisk_Risk) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateRisk_CreateRisk_Risk{} + } + return t.UpdatedAt } - -func (t *CreateOrganization) GetCreateOrganization() *CreateOrganization_CreateOrganization { +func (t *CreateRisk_CreateRisk_Risk) GetUpdatedBy() *string { if t == nil { - t = &CreateOrganization{} + t = &CreateRisk_CreateRisk_Risk{} } - return &t.CreateOrganization + return t.UpdatedBy } -type DeleteOrganization struct { - DeleteOrganization DeleteOrganization_DeleteOrganization "json:\"deleteOrganization\" graphql:\"deleteOrganization\"" +type CreateRisk_CreateRisk struct { + Risk CreateRisk_CreateRisk_Risk "json:\"risk\" graphql:\"risk\"" } -func (t *DeleteOrganization) GetDeleteOrganization() *DeleteOrganization_DeleteOrganization { +func (t *CreateRisk_CreateRisk) GetRisk() *CreateRisk_CreateRisk_Risk { if t == nil { - t = &DeleteOrganization{} + t = &CreateRisk_CreateRisk{} } - return &t.DeleteOrganization + return &t.Risk } -type GetAllOrganizations struct { - Organizations GetAllOrganizations_Organizations "json:\"organizations\" graphql:\"organizations\"" +type DeleteRisk_DeleteRisk struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" } -func (t *GetAllOrganizations) GetOrganizations() *GetAllOrganizations_Organizations { +func (t *DeleteRisk_DeleteRisk) GetDeletedID() string { if t == nil { - t = &GetAllOrganizations{} + t = &DeleteRisk_DeleteRisk{} } - return &t.Organizations + return t.DeletedID } -type GetOrganizationByID struct { - Organization GetOrganizationByID_Organization "json:\"organization\" graphql:\"organization\"" +type GetAllRisks_Risks_Edges_Node struct { + BusinessCosts *string "json:\"businessCosts,omitempty\" graphql:\"businessCosts\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Impact *enums.RiskImpact "json:\"impact,omitempty\" graphql:\"impact\"" + Likelihood *enums.RiskLikelihood "json:\"likelihood,omitempty\" graphql:\"likelihood\"" + Mitigation *string "json:\"mitigation,omitempty\" graphql:\"mitigation\"" + Name string "json:\"name\" graphql:\"name\"" + RiskType *string "json:\"riskType,omitempty\" graphql:\"riskType\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetOrganizationByID) GetOrganization() *GetOrganizationByID_Organization { +func (t *GetAllRisks_Risks_Edges_Node) GetBusinessCosts() *string { if t == nil { - t = &GetOrganizationByID{} + t = &GetAllRisks_Risks_Edges_Node{} } - return &t.Organization + return t.BusinessCosts } - -type GetOrganizations struct { - Organizations GetOrganizations_Organizations "json:\"organizations\" graphql:\"organizations\"" +func (t *GetAllRisks_Risks_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllRisks_Risks_Edges_Node{} + } + return t.CreatedAt } - -func (t *GetOrganizations) GetOrganizations() *GetOrganizations_Organizations { +func (t *GetAllRisks_Risks_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetOrganizations{} + t = &GetAllRisks_Risks_Edges_Node{} } - return &t.Organizations + return t.CreatedBy } - -type UpdateOrganization struct { - UpdateOrganization UpdateOrganization_UpdateOrganization "json:\"updateOrganization\" graphql:\"updateOrganization\"" +func (t *GetAllRisks_Risks_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllRisks_Risks_Edges_Node{} + } + return t.Description } - -func (t *UpdateOrganization) GetUpdateOrganization() *UpdateOrganization_UpdateOrganization { +func (t *GetAllRisks_Risks_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &UpdateOrganization{} + t = &GetAllRisks_Risks_Edges_Node{} } - return &t.UpdateOrganization + return t.Details } - -type GetAllOrganizationHistories struct { - OrganizationHistories GetAllOrganizationHistories_OrganizationHistories "json:\"organizationHistories\" graphql:\"organizationHistories\"" +func (t *GetAllRisks_Risks_Edges_Node) GetID() string { + if t == nil { + t = &GetAllRisks_Risks_Edges_Node{} + } + return t.ID } - -func (t *GetAllOrganizationHistories) GetOrganizationHistories() *GetAllOrganizationHistories_OrganizationHistories { +func (t *GetAllRisks_Risks_Edges_Node) GetImpact() *enums.RiskImpact { if t == nil { - t = &GetAllOrganizationHistories{} + t = &GetAllRisks_Risks_Edges_Node{} } - return &t.OrganizationHistories + return t.Impact } - -type GetOrganizationHistories struct { - OrganizationHistories GetOrganizationHistories_OrganizationHistories "json:\"organizationHistories\" graphql:\"organizationHistories\"" +func (t *GetAllRisks_Risks_Edges_Node) GetLikelihood() *enums.RiskLikelihood { + if t == nil { + t = &GetAllRisks_Risks_Edges_Node{} + } + return t.Likelihood } - -func (t *GetOrganizationHistories) GetOrganizationHistories() *GetOrganizationHistories_OrganizationHistories { +func (t *GetAllRisks_Risks_Edges_Node) GetMitigation() *string { if t == nil { - t = &GetOrganizationHistories{} + t = &GetAllRisks_Risks_Edges_Node{} } - return &t.OrganizationHistories + return t.Mitigation } - -type GetAllOrganizationSettings struct { - OrganizationSettings GetAllOrganizationSettings_OrganizationSettings "json:\"organizationSettings\" graphql:\"organizationSettings\"" +func (t *GetAllRisks_Risks_Edges_Node) GetName() string { + if t == nil { + t = &GetAllRisks_Risks_Edges_Node{} + } + return t.Name } - -func (t *GetAllOrganizationSettings) GetOrganizationSettings() *GetAllOrganizationSettings_OrganizationSettings { +func (t *GetAllRisks_Risks_Edges_Node) GetRiskType() *string { if t == nil { - t = &GetAllOrganizationSettings{} + t = &GetAllRisks_Risks_Edges_Node{} } - return &t.OrganizationSettings + return t.RiskType } - -type GetOrganizationSettingByID struct { - OrganizationSetting GetOrganizationSettingByID_OrganizationSetting "json:\"organizationSetting\" graphql:\"organizationSetting\"" +func (t *GetAllRisks_Risks_Edges_Node) GetSatisfies() *string { + if t == nil { + t = &GetAllRisks_Risks_Edges_Node{} + } + return t.Satisfies } - -func (t *GetOrganizationSettingByID) GetOrganizationSetting() *GetOrganizationSettingByID_OrganizationSetting { +func (t *GetAllRisks_Risks_Edges_Node) GetStatus() *string { if t == nil { - t = &GetOrganizationSettingByID{} + t = &GetAllRisks_Risks_Edges_Node{} } - return &t.OrganizationSetting + return t.Status } - -type GetOrganizationSettings struct { - OrganizationSettings GetOrganizationSettings_OrganizationSettings "json:\"organizationSettings\" graphql:\"organizationSettings\"" +func (t *GetAllRisks_Risks_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllRisks_Risks_Edges_Node{} + } + return t.Tags } - -func (t *GetOrganizationSettings) GetOrganizationSettings() *GetOrganizationSettings_OrganizationSettings { +func (t *GetAllRisks_Risks_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &GetOrganizationSettings{} + t = &GetAllRisks_Risks_Edges_Node{} } - return &t.OrganizationSettings + return t.UpdatedAt +} +func (t *GetAllRisks_Risks_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllRisks_Risks_Edges_Node{} + } + return t.UpdatedBy } -type UpdateOrganizationSetting struct { - UpdateOrganizationSetting UpdateOrganizationSetting_UpdateOrganizationSetting "json:\"updateOrganizationSetting\" graphql:\"updateOrganizationSetting\"" +type GetAllRisks_Risks_Edges struct { + Node *GetAllRisks_Risks_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *UpdateOrganizationSetting) GetUpdateOrganizationSetting() *UpdateOrganizationSetting_UpdateOrganizationSetting { +func (t *GetAllRisks_Risks_Edges) GetNode() *GetAllRisks_Risks_Edges_Node { if t == nil { - t = &UpdateOrganizationSetting{} + t = &GetAllRisks_Risks_Edges{} } - return &t.UpdateOrganizationSetting + return t.Node } -type GetAllOrganizationSettingHistories struct { - OrganizationSettingHistories GetAllOrganizationSettingHistories_OrganizationSettingHistories "json:\"organizationSettingHistories\" graphql:\"organizationSettingHistories\"" +type GetAllRisks_Risks struct { + Edges []*GetAllRisks_Risks_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetAllOrganizationSettingHistories) GetOrganizationSettingHistories() *GetAllOrganizationSettingHistories_OrganizationSettingHistories { +func (t *GetAllRisks_Risks) GetEdges() []*GetAllRisks_Risks_Edges { if t == nil { - t = &GetAllOrganizationSettingHistories{} + t = &GetAllRisks_Risks{} } - return &t.OrganizationSettingHistories + return t.Edges } -type GetOrganizationSettingHistories struct { - OrganizationSettingHistories GetOrganizationSettingHistories_OrganizationSettingHistories "json:\"organizationSettingHistories\" graphql:\"organizationSettingHistories\"" +type GetRiskByID_Risk struct { + BusinessCosts *string "json:\"businessCosts,omitempty\" graphql:\"businessCosts\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Impact *enums.RiskImpact "json:\"impact,omitempty\" graphql:\"impact\"" + Likelihood *enums.RiskLikelihood "json:\"likelihood,omitempty\" graphql:\"likelihood\"" + Mitigation *string "json:\"mitigation,omitempty\" graphql:\"mitigation\"" + Name string "json:\"name\" graphql:\"name\"" + RiskType *string "json:\"riskType,omitempty\" graphql:\"riskType\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetOrganizationSettingHistories) GetOrganizationSettingHistories() *GetOrganizationSettingHistories_OrganizationSettingHistories { +func (t *GetRiskByID_Risk) GetBusinessCosts() *string { if t == nil { - t = &GetOrganizationSettingHistories{} + t = &GetRiskByID_Risk{} } - return &t.OrganizationSettingHistories + return t.BusinessCosts } - -type AddUserToOrgWithRole struct { - CreateOrgMembership AddUserToOrgWithRole_CreateOrgMembership "json:\"createOrgMembership\" graphql:\"createOrgMembership\"" +func (t *GetRiskByID_Risk) GetCreatedAt() *time.Time { + if t == nil { + t = &GetRiskByID_Risk{} + } + return t.CreatedAt } - -func (t *AddUserToOrgWithRole) GetCreateOrgMembership() *AddUserToOrgWithRole_CreateOrgMembership { +func (t *GetRiskByID_Risk) GetCreatedBy() *string { if t == nil { - t = &AddUserToOrgWithRole{} + t = &GetRiskByID_Risk{} } - return &t.CreateOrgMembership + return t.CreatedBy } - -type CreateBulkCSVOrgMembers struct { - CreateBulkCSVOrgMembership CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership "json:\"createBulkCSVOrgMembership\" graphql:\"createBulkCSVOrgMembership\"" +func (t *GetRiskByID_Risk) GetDescription() *string { + if t == nil { + t = &GetRiskByID_Risk{} + } + return t.Description } - -func (t *CreateBulkCSVOrgMembers) GetCreateBulkCSVOrgMembership() *CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership { +func (t *GetRiskByID_Risk) GetDetails() map[string]interface{} { if t == nil { - t = &CreateBulkCSVOrgMembers{} + t = &GetRiskByID_Risk{} } - return &t.CreateBulkCSVOrgMembership + return t.Details } - -type CreateBulkOrgMembers struct { - CreateBulkOrgMembership CreateBulkOrgMembers_CreateBulkOrgMembership "json:\"createBulkOrgMembership\" graphql:\"createBulkOrgMembership\"" +func (t *GetRiskByID_Risk) GetID() string { + if t == nil { + t = &GetRiskByID_Risk{} + } + return t.ID } - -func (t *CreateBulkOrgMembers) GetCreateBulkOrgMembership() *CreateBulkOrgMembers_CreateBulkOrgMembership { +func (t *GetRiskByID_Risk) GetImpact() *enums.RiskImpact { if t == nil { - t = &CreateBulkOrgMembers{} + t = &GetRiskByID_Risk{} } - return &t.CreateBulkOrgMembership + return t.Impact } - -type GetOrgMembersByOrgID struct { - OrgMemberships GetOrgMembersByOrgID_OrgMemberships "json:\"orgMemberships\" graphql:\"orgMemberships\"" +func (t *GetRiskByID_Risk) GetLikelihood() *enums.RiskLikelihood { + if t == nil { + t = &GetRiskByID_Risk{} + } + return t.Likelihood } - -func (t *GetOrgMembersByOrgID) GetOrgMemberships() *GetOrgMembersByOrgID_OrgMemberships { +func (t *GetRiskByID_Risk) GetMitigation() *string { if t == nil { - t = &GetOrgMembersByOrgID{} + t = &GetRiskByID_Risk{} } - return &t.OrgMemberships + return t.Mitigation } - -type RemoveUserFromOrg struct { - DeleteOrgMembership RemoveUserFromOrg_DeleteOrgMembership "json:\"deleteOrgMembership\" graphql:\"deleteOrgMembership\"" +func (t *GetRiskByID_Risk) GetName() string { + if t == nil { + t = &GetRiskByID_Risk{} + } + return t.Name } - -func (t *RemoveUserFromOrg) GetDeleteOrgMembership() *RemoveUserFromOrg_DeleteOrgMembership { +func (t *GetRiskByID_Risk) GetRiskType() *string { if t == nil { - t = &RemoveUserFromOrg{} + t = &GetRiskByID_Risk{} } - return &t.DeleteOrgMembership + return t.RiskType } - -type UpdateUserRoleInOrg struct { - UpdateOrgMembership UpdateUserRoleInOrg_UpdateOrgMembership "json:\"updateOrgMembership\" graphql:\"updateOrgMembership\"" +func (t *GetRiskByID_Risk) GetSatisfies() *string { + if t == nil { + t = &GetRiskByID_Risk{} + } + return t.Satisfies } - -func (t *UpdateUserRoleInOrg) GetUpdateOrgMembership() *UpdateUserRoleInOrg_UpdateOrgMembership { +func (t *GetRiskByID_Risk) GetStatus() *string { if t == nil { - t = &UpdateUserRoleInOrg{} + t = &GetRiskByID_Risk{} } - return &t.UpdateOrgMembership + return t.Status } - -type GetAllOrgMembershipHistories struct { - OrgMembershipHistories GetAllOrgMembershipHistories_OrgMembershipHistories "json:\"orgMembershipHistories\" graphql:\"orgMembershipHistories\"" +func (t *GetRiskByID_Risk) GetTags() []string { + if t == nil { + t = &GetRiskByID_Risk{} + } + return t.Tags } - -func (t *GetAllOrgMembershipHistories) GetOrgMembershipHistories() *GetAllOrgMembershipHistories_OrgMembershipHistories { +func (t *GetRiskByID_Risk) GetUpdatedAt() *time.Time { if t == nil { - t = &GetAllOrgMembershipHistories{} + t = &GetRiskByID_Risk{} } - return &t.OrgMembershipHistories + return t.UpdatedAt +} +func (t *GetRiskByID_Risk) GetUpdatedBy() *string { + if t == nil { + t = &GetRiskByID_Risk{} + } + return t.UpdatedBy } -type GetOrgMembershipHistories struct { - OrgMembershipHistories GetOrgMembershipHistories_OrgMembershipHistories "json:\"orgMembershipHistories\" graphql:\"orgMembershipHistories\"" +type GetRisks_Risks_Edges_Node struct { + BusinessCosts *string "json:\"businessCosts,omitempty\" graphql:\"businessCosts\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Impact *enums.RiskImpact "json:\"impact,omitempty\" graphql:\"impact\"" + Likelihood *enums.RiskLikelihood "json:\"likelihood,omitempty\" graphql:\"likelihood\"" + Mitigation *string "json:\"mitigation,omitempty\" graphql:\"mitigation\"" + Name string "json:\"name\" graphql:\"name\"" + RiskType *string "json:\"riskType,omitempty\" graphql:\"riskType\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetOrgMembershipHistories) GetOrgMembershipHistories() *GetOrgMembershipHistories_OrgMembershipHistories { +func (t *GetRisks_Risks_Edges_Node) GetBusinessCosts() *string { if t == nil { - t = &GetOrgMembershipHistories{} + t = &GetRisks_Risks_Edges_Node{} } - return &t.OrgMembershipHistories + return t.BusinessCosts } - -type CreateBulkCSVPersonalAccessToken struct { - CreateBulkCSVPersonalAccessToken CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken "json:\"createBulkCSVPersonalAccessToken\" graphql:\"createBulkCSVPersonalAccessToken\"" +func (t *GetRisks_Risks_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetRisks_Risks_Edges_Node{} + } + return t.CreatedAt } - -func (t *CreateBulkCSVPersonalAccessToken) GetCreateBulkCSVPersonalAccessToken() *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken { +func (t *GetRisks_Risks_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &CreateBulkCSVPersonalAccessToken{} + t = &GetRisks_Risks_Edges_Node{} } - return &t.CreateBulkCSVPersonalAccessToken + return t.CreatedBy } - -type CreateBulkPersonalAccessToken struct { - CreateBulkPersonalAccessToken CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken "json:\"createBulkPersonalAccessToken\" graphql:\"createBulkPersonalAccessToken\"" +func (t *GetRisks_Risks_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetRisks_Risks_Edges_Node{} + } + return t.Description } - -func (t *CreateBulkPersonalAccessToken) GetCreateBulkPersonalAccessToken() *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken { +func (t *GetRisks_Risks_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &CreateBulkPersonalAccessToken{} + t = &GetRisks_Risks_Edges_Node{} } - return &t.CreateBulkPersonalAccessToken + return t.Details } - -type CreatePersonalAccessToken struct { - CreatePersonalAccessToken CreatePersonalAccessToken_CreatePersonalAccessToken "json:\"createPersonalAccessToken\" graphql:\"createPersonalAccessToken\"" +func (t *GetRisks_Risks_Edges_Node) GetID() string { + if t == nil { + t = &GetRisks_Risks_Edges_Node{} + } + return t.ID } - -func (t *CreatePersonalAccessToken) GetCreatePersonalAccessToken() *CreatePersonalAccessToken_CreatePersonalAccessToken { +func (t *GetRisks_Risks_Edges_Node) GetImpact() *enums.RiskImpact { if t == nil { - t = &CreatePersonalAccessToken{} + t = &GetRisks_Risks_Edges_Node{} } - return &t.CreatePersonalAccessToken + return t.Impact } - -type DeletePersonalAccessToken struct { - DeletePersonalAccessToken DeletePersonalAccessToken_DeletePersonalAccessToken "json:\"deletePersonalAccessToken\" graphql:\"deletePersonalAccessToken\"" +func (t *GetRisks_Risks_Edges_Node) GetLikelihood() *enums.RiskLikelihood { + if t == nil { + t = &GetRisks_Risks_Edges_Node{} + } + return t.Likelihood } - -func (t *DeletePersonalAccessToken) GetDeletePersonalAccessToken() *DeletePersonalAccessToken_DeletePersonalAccessToken { +func (t *GetRisks_Risks_Edges_Node) GetMitigation() *string { if t == nil { - t = &DeletePersonalAccessToken{} + t = &GetRisks_Risks_Edges_Node{} } - return &t.DeletePersonalAccessToken + return t.Mitigation } - -type GetAllPersonalAccessTokens struct { - PersonalAccessTokens GetAllPersonalAccessTokens_PersonalAccessTokens "json:\"personalAccessTokens\" graphql:\"personalAccessTokens\"" +func (t *GetRisks_Risks_Edges_Node) GetName() string { + if t == nil { + t = &GetRisks_Risks_Edges_Node{} + } + return t.Name } - -func (t *GetAllPersonalAccessTokens) GetPersonalAccessTokens() *GetAllPersonalAccessTokens_PersonalAccessTokens { +func (t *GetRisks_Risks_Edges_Node) GetRiskType() *string { if t == nil { - t = &GetAllPersonalAccessTokens{} + t = &GetRisks_Risks_Edges_Node{} } - return &t.PersonalAccessTokens + return t.RiskType } - -type GetPersonalAccessTokenByID struct { - PersonalAccessToken GetPersonalAccessTokenByID_PersonalAccessToken "json:\"personalAccessToken\" graphql:\"personalAccessToken\"" +func (t *GetRisks_Risks_Edges_Node) GetSatisfies() *string { + if t == nil { + t = &GetRisks_Risks_Edges_Node{} + } + return t.Satisfies } - -func (t *GetPersonalAccessTokenByID) GetPersonalAccessToken() *GetPersonalAccessTokenByID_PersonalAccessToken { +func (t *GetRisks_Risks_Edges_Node) GetStatus() *string { if t == nil { - t = &GetPersonalAccessTokenByID{} + t = &GetRisks_Risks_Edges_Node{} } - return &t.PersonalAccessToken + return t.Status } - -type UpdatePersonalAccessToken struct { - UpdatePersonalAccessToken UpdatePersonalAccessToken_UpdatePersonalAccessToken "json:\"updatePersonalAccessToken\" graphql:\"updatePersonalAccessToken\"" +func (t *GetRisks_Risks_Edges_Node) GetTags() []string { + if t == nil { + t = &GetRisks_Risks_Edges_Node{} + } + return t.Tags } - -func (t *UpdatePersonalAccessToken) GetUpdatePersonalAccessToken() *UpdatePersonalAccessToken_UpdatePersonalAccessToken { +func (t *GetRisks_Risks_Edges_Node) GetUpdatedAt() *time.Time { if t == nil { - t = &UpdatePersonalAccessToken{} + t = &GetRisks_Risks_Edges_Node{} } - return &t.UpdatePersonalAccessToken + return t.UpdatedAt +} +func (t *GetRisks_Risks_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetRisks_Risks_Edges_Node{} + } + return t.UpdatedBy } -type GlobalSearch struct { - Search *GlobalSearch_Search "json:\"search,omitempty\" graphql:\"search\"" +type GetRisks_Risks_Edges struct { + Node *GetRisks_Risks_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GlobalSearch) GetSearch() *GlobalSearch_Search { +func (t *GetRisks_Risks_Edges) GetNode() *GetRisks_Risks_Edges_Node { if t == nil { - t = &GlobalSearch{} + t = &GetRisks_Risks_Edges{} } - return t.Search + return t.Node } -type CreateBulkCSVSubscriber struct { - CreateBulkCSVSubscriber CreateBulkCSVSubscriber_CreateBulkCSVSubscriber "json:\"createBulkCSVSubscriber\" graphql:\"createBulkCSVSubscriber\"" +type GetRisks_Risks struct { + Edges []*GetRisks_Risks_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *CreateBulkCSVSubscriber) GetCreateBulkCSVSubscriber() *CreateBulkCSVSubscriber_CreateBulkCSVSubscriber { +func (t *GetRisks_Risks) GetEdges() []*GetRisks_Risks_Edges { if t == nil { - t = &CreateBulkCSVSubscriber{} + t = &GetRisks_Risks{} } - return &t.CreateBulkCSVSubscriber + return t.Edges } -type CreateBulkSubscriber struct { - CreateBulkSubscriber CreateBulkSubscriber_CreateBulkSubscriber "json:\"createBulkSubscriber\" graphql:\"createBulkSubscriber\"" +type UpdateRisk_UpdateRisk_Risk struct { + BusinessCosts *string "json:\"businessCosts,omitempty\" graphql:\"businessCosts\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + ID string "json:\"id\" graphql:\"id\"" + Impact *enums.RiskImpact "json:\"impact,omitempty\" graphql:\"impact\"" + Likelihood *enums.RiskLikelihood "json:\"likelihood,omitempty\" graphql:\"likelihood\"" + Mitigation *string "json:\"mitigation,omitempty\" graphql:\"mitigation\"" + Name string "json:\"name\" graphql:\"name\"" + RiskType *string "json:\"riskType,omitempty\" graphql:\"riskType\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateBulkSubscriber) GetCreateBulkSubscriber() *CreateBulkSubscriber_CreateBulkSubscriber { +func (t *UpdateRisk_UpdateRisk_Risk) GetBusinessCosts() *string { if t == nil { - t = &CreateBulkSubscriber{} + t = &UpdateRisk_UpdateRisk_Risk{} } - return &t.CreateBulkSubscriber + return t.BusinessCosts } - -type CreateSubscriber struct { - CreateSubscriber CreateSubscriber_CreateSubscriber "json:\"createSubscriber\" graphql:\"createSubscriber\"" +func (t *UpdateRisk_UpdateRisk_Risk) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateRisk_UpdateRisk_Risk{} + } + return t.CreatedAt } - -func (t *CreateSubscriber) GetCreateSubscriber() *CreateSubscriber_CreateSubscriber { +func (t *UpdateRisk_UpdateRisk_Risk) GetCreatedBy() *string { if t == nil { - t = &CreateSubscriber{} + t = &UpdateRisk_UpdateRisk_Risk{} } - return &t.CreateSubscriber + return t.CreatedBy } - -type DeleteSubscriber struct { - DeleteSubscriber DeleteSubscriber_DeleteSubscriber "json:\"deleteSubscriber\" graphql:\"deleteSubscriber\"" +func (t *UpdateRisk_UpdateRisk_Risk) GetDescription() *string { + if t == nil { + t = &UpdateRisk_UpdateRisk_Risk{} + } + return t.Description } - -func (t *DeleteSubscriber) GetDeleteSubscriber() *DeleteSubscriber_DeleteSubscriber { +func (t *UpdateRisk_UpdateRisk_Risk) GetDetails() map[string]interface{} { if t == nil { - t = &DeleteSubscriber{} + t = &UpdateRisk_UpdateRisk_Risk{} } - return &t.DeleteSubscriber + return t.Details } - -type GetAllSubscribers struct { - Subscribers GetAllSubscribers_Subscribers "json:\"subscribers\" graphql:\"subscribers\"" +func (t *UpdateRisk_UpdateRisk_Risk) GetID() string { + if t == nil { + t = &UpdateRisk_UpdateRisk_Risk{} + } + return t.ID } - -func (t *GetAllSubscribers) GetSubscribers() *GetAllSubscribers_Subscribers { +func (t *UpdateRisk_UpdateRisk_Risk) GetImpact() *enums.RiskImpact { if t == nil { - t = &GetAllSubscribers{} + t = &UpdateRisk_UpdateRisk_Risk{} } - return &t.Subscribers + return t.Impact } - -type GetSubscriberByEmail struct { - Subscriber GetSubscriberByEmail_Subscriber "json:\"subscriber\" graphql:\"subscriber\"" +func (t *UpdateRisk_UpdateRisk_Risk) GetLikelihood() *enums.RiskLikelihood { + if t == nil { + t = &UpdateRisk_UpdateRisk_Risk{} + } + return t.Likelihood } - -func (t *GetSubscriberByEmail) GetSubscriber() *GetSubscriberByEmail_Subscriber { +func (t *UpdateRisk_UpdateRisk_Risk) GetMitigation() *string { if t == nil { - t = &GetSubscriberByEmail{} + t = &UpdateRisk_UpdateRisk_Risk{} } - return &t.Subscriber + return t.Mitigation } - -type GetSubscribers struct { - Subscribers GetSubscribers_Subscribers "json:\"subscribers\" graphql:\"subscribers\"" +func (t *UpdateRisk_UpdateRisk_Risk) GetName() string { + if t == nil { + t = &UpdateRisk_UpdateRisk_Risk{} + } + return t.Name } - -func (t *GetSubscribers) GetSubscribers() *GetSubscribers_Subscribers { +func (t *UpdateRisk_UpdateRisk_Risk) GetRiskType() *string { if t == nil { - t = &GetSubscribers{} + t = &UpdateRisk_UpdateRisk_Risk{} } - return &t.Subscribers + return t.RiskType } - -type UpdateSubscriber struct { - UpdateSubscriber UpdateSubscriber_UpdateSubscriber "json:\"updateSubscriber\" graphql:\"updateSubscriber\"" +func (t *UpdateRisk_UpdateRisk_Risk) GetSatisfies() *string { + if t == nil { + t = &UpdateRisk_UpdateRisk_Risk{} + } + return t.Satisfies } - -func (t *UpdateSubscriber) GetUpdateSubscriber() *UpdateSubscriber_UpdateSubscriber { +func (t *UpdateRisk_UpdateRisk_Risk) GetStatus() *string { if t == nil { - t = &UpdateSubscriber{} + t = &UpdateRisk_UpdateRisk_Risk{} } - return &t.UpdateSubscriber + return t.Status } - -type CreateBulkCSVTemplate struct { - CreateBulkCSVTemplate CreateBulkCSVTemplate_CreateBulkCSVTemplate "json:\"createBulkCSVTemplate\" graphql:\"createBulkCSVTemplate\"" +func (t *UpdateRisk_UpdateRisk_Risk) GetTags() []string { + if t == nil { + t = &UpdateRisk_UpdateRisk_Risk{} + } + return t.Tags } - -func (t *CreateBulkCSVTemplate) GetCreateBulkCSVTemplate() *CreateBulkCSVTemplate_CreateBulkCSVTemplate { +func (t *UpdateRisk_UpdateRisk_Risk) GetUpdatedAt() *time.Time { if t == nil { - t = &CreateBulkCSVTemplate{} + t = &UpdateRisk_UpdateRisk_Risk{} } - return &t.CreateBulkCSVTemplate + return t.UpdatedAt +} +func (t *UpdateRisk_UpdateRisk_Risk) GetUpdatedBy() *string { + if t == nil { + t = &UpdateRisk_UpdateRisk_Risk{} + } + return t.UpdatedBy } -type CreateBulkTemplate struct { - CreateBulkTemplate CreateBulkTemplate_CreateBulkTemplate "json:\"createBulkTemplate\" graphql:\"createBulkTemplate\"" +type UpdateRisk_UpdateRisk struct { + Risk UpdateRisk_UpdateRisk_Risk "json:\"risk\" graphql:\"risk\"" } -func (t *CreateBulkTemplate) GetCreateBulkTemplate() *CreateBulkTemplate_CreateBulkTemplate { +func (t *UpdateRisk_UpdateRisk) GetRisk() *UpdateRisk_UpdateRisk_Risk { if t == nil { - t = &CreateBulkTemplate{} + t = &UpdateRisk_UpdateRisk{} } - return &t.CreateBulkTemplate + return &t.Risk } -type CreateTemplate struct { - CreateTemplate CreateTemplate_CreateTemplate "json:\"createTemplate\" graphql:\"createTemplate\"" +type GetAllRiskHistories_RiskHistories_Edges_Node struct { + BusinessCosts *string "json:\"businessCosts,omitempty\" graphql:\"businessCosts\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Impact *enums.RiskImpact "json:\"impact,omitempty\" graphql:\"impact\"" + Likelihood *enums.RiskLikelihood "json:\"likelihood,omitempty\" graphql:\"likelihood\"" + Mitigation *string "json:\"mitigation,omitempty\" graphql:\"mitigation\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + RiskType *string "json:\"riskType,omitempty\" graphql:\"riskType\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *CreateTemplate) GetCreateTemplate() *CreateTemplate_CreateTemplate { +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetBusinessCosts() *string { if t == nil { - t = &CreateTemplate{} + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} } - return &t.CreateTemplate + return t.BusinessCosts } - -type GetAllTemplates struct { - Templates GetAllTemplates_Templates "json:\"templates\" graphql:\"templates\"" +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} + } + return t.CreatedAt } - -func (t *GetAllTemplates) GetTemplates() *GetAllTemplates_Templates { +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetAllTemplates{} + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} } - return &t.Templates + return t.CreatedBy } - -type GetTemplateByID struct { - Template GetTemplateByID_Template "json:\"template\" graphql:\"template\"" +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} + } + return t.Description } - -func (t *GetTemplateByID) GetTemplate() *GetTemplateByID_Template { +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &GetTemplateByID{} + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} } - return &t.Template + return t.Details } - -type UpdateTemplate struct { - UpdateTemplate UpdateTemplate_UpdateTemplate "json:\"updateTemplate\" graphql:\"updateTemplate\"" +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} + } + return &t.HistoryTime } - -func (t *UpdateTemplate) GetUpdateTemplate() *UpdateTemplate_UpdateTemplate { +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetID() string { if t == nil { - t = &UpdateTemplate{} + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} } - return &t.UpdateTemplate + return t.ID } - -type GetAllTemplateHistories struct { - TemplateHistories GetAllTemplateHistories_TemplateHistories "json:\"templateHistories\" graphql:\"templateHistories\"" +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetImpact() *enums.RiskImpact { + if t == nil { + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} + } + return t.Impact } - -func (t *GetAllTemplateHistories) GetTemplateHistories() *GetAllTemplateHistories_TemplateHistories { +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetLikelihood() *enums.RiskLikelihood { if t == nil { - t = &GetAllTemplateHistories{} + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} } - return &t.TemplateHistories + return t.Likelihood } - -type GetTemplateHistories struct { - TemplateHistories GetTemplateHistories_TemplateHistories "json:\"templateHistories\" graphql:\"templateHistories\"" +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetMitigation() *string { + if t == nil { + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} + } + return t.Mitigation } - -func (t *GetTemplateHistories) GetTemplateHistories() *GetTemplateHistories_TemplateHistories { +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetName() string { if t == nil { - t = &GetTemplateHistories{} + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} } - return &t.TemplateHistories + return t.Name } - -type CreateTFASetting struct { - CreateTFASetting CreateTFASetting_CreateTFASetting "json:\"createTFASetting\" graphql:\"createTFASetting\"" +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} + } + return &t.Operation } - -func (t *CreateTFASetting) GetCreateTFASetting() *CreateTFASetting_CreateTFASetting { +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetRef() *string { if t == nil { - t = &CreateTFASetting{} + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} } - return &t.CreateTFASetting + return t.Ref } - -type GetAllTFASettings struct { - TfaSettings GetAllTFASettings_TfaSettings "json:\"tfaSettings\" graphql:\"tfaSettings\"" +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetRiskType() *string { + if t == nil { + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} + } + return t.RiskType } - -func (t *GetAllTFASettings) GetTfaSettings() *GetAllTFASettings_TfaSettings { +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetSatisfies() *string { if t == nil { - t = &GetAllTFASettings{} + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} } - return &t.TfaSettings + return t.Satisfies } - -type GetTFASetting struct { - TfaSetting GetTFASetting_TfaSetting "json:\"tfaSetting\" graphql:\"tfaSetting\"" +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetStatus() *string { + if t == nil { + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} + } + return t.Status } - -func (t *GetTFASetting) GetTfaSetting() *GetTFASetting_TfaSetting { +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetTFASetting{} + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} } - return &t.TfaSetting + return t.Tags } - -type UpdateTFASetting struct { - UpdateTFASetting UpdateTFASetting_UpdateTFASetting "json:\"updateTFASetting\" graphql:\"updateTFASetting\"" +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} + } + return t.UpdatedAt } - -func (t *UpdateTFASetting) GetUpdateTFASetting() *UpdateTFASetting_UpdateTFASetting { +func (t *GetAllRiskHistories_RiskHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &UpdateTFASetting{} + t = &GetAllRiskHistories_RiskHistories_Edges_Node{} } - return &t.UpdateTFASetting + return t.UpdatedBy } -type CreateUser struct { - CreateUser CreateUser_CreateUser "json:\"createUser\" graphql:\"createUser\"" +type GetAllRiskHistories_RiskHistories_Edges struct { + Node *GetAllRiskHistories_RiskHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *CreateUser) GetCreateUser() *CreateUser_CreateUser { +func (t *GetAllRiskHistories_RiskHistories_Edges) GetNode() *GetAllRiskHistories_RiskHistories_Edges_Node { if t == nil { - t = &CreateUser{} + t = &GetAllRiskHistories_RiskHistories_Edges{} } - return &t.CreateUser + return t.Node } -type DeleteUser struct { - DeleteUser DeleteUser_DeleteUser "json:\"deleteUser\" graphql:\"deleteUser\"" +type GetAllRiskHistories_RiskHistories struct { + Edges []*GetAllRiskHistories_RiskHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *DeleteUser) GetDeleteUser() *DeleteUser_DeleteUser { +func (t *GetAllRiskHistories_RiskHistories) GetEdges() []*GetAllRiskHistories_RiskHistories_Edges { if t == nil { - t = &DeleteUser{} + t = &GetAllRiskHistories_RiskHistories{} } - return &t.DeleteUser + return t.Edges } -type GetAllUsers struct { - Users GetAllUsers_Users "json:\"users\" graphql:\"users\"" +type GetRiskHistories_RiskHistories_Edges_Node struct { + BusinessCosts *string "json:\"businessCosts,omitempty\" graphql:\"businessCosts\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Impact *enums.RiskImpact "json:\"impact,omitempty\" graphql:\"impact\"" + Likelihood *enums.RiskLikelihood "json:\"likelihood,omitempty\" graphql:\"likelihood\"" + Mitigation *string "json:\"mitigation,omitempty\" graphql:\"mitigation\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + RiskType *string "json:\"riskType,omitempty\" graphql:\"riskType\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" } -func (t *GetAllUsers) GetUsers() *GetAllUsers_Users { +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetBusinessCosts() *string { if t == nil { - t = &GetAllUsers{} + t = &GetRiskHistories_RiskHistories_Edges_Node{} } - return &t.Users + return t.BusinessCosts } - -type GetUserByID struct { - User GetUserByID_User "json:\"user\" graphql:\"user\"" +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetRiskHistories_RiskHistories_Edges_Node{} + } + return t.CreatedAt } - -func (t *GetUserByID) GetUser() *GetUserByID_User { +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetCreatedBy() *string { if t == nil { - t = &GetUserByID{} + t = &GetRiskHistories_RiskHistories_Edges_Node{} } - return &t.User + return t.CreatedBy } - -type GetUserByIDWithOrgs struct { - User GetUserByIDWithOrgs_User "json:\"user\" graphql:\"user\"" +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetRiskHistories_RiskHistories_Edges_Node{} + } + return t.Description } - -func (t *GetUserByIDWithOrgs) GetUser() *GetUserByIDWithOrgs_User { +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetDetails() map[string]interface{} { if t == nil { - t = &GetUserByIDWithOrgs{} + t = &GetRiskHistories_RiskHistories_Edges_Node{} } - return &t.User + return t.Details } - -type UpdateUser struct { - UpdateUser UpdateUser_UpdateUser "json:\"updateUser\" graphql:\"updateUser\"" +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetRiskHistories_RiskHistories_Edges_Node{} + } + return &t.HistoryTime } - -func (t *UpdateUser) GetUpdateUser() *UpdateUser_UpdateUser { +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetID() string { if t == nil { - t = &UpdateUser{} + t = &GetRiskHistories_RiskHistories_Edges_Node{} } - return &t.UpdateUser + return t.ID } - -type GetAllUserHistories struct { - UserHistories GetAllUserHistories_UserHistories "json:\"userHistories\" graphql:\"userHistories\"" +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetImpact() *enums.RiskImpact { + if t == nil { + t = &GetRiskHistories_RiskHistories_Edges_Node{} + } + return t.Impact } - -func (t *GetAllUserHistories) GetUserHistories() *GetAllUserHistories_UserHistories { +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetLikelihood() *enums.RiskLikelihood { if t == nil { - t = &GetAllUserHistories{} + t = &GetRiskHistories_RiskHistories_Edges_Node{} } - return &t.UserHistories + return t.Likelihood } - -type GetUserHistories struct { - UserHistories GetUserHistories_UserHistories "json:\"userHistories\" graphql:\"userHistories\"" +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetMitigation() *string { + if t == nil { + t = &GetRiskHistories_RiskHistories_Edges_Node{} + } + return t.Mitigation } - -func (t *GetUserHistories) GetUserHistories() *GetUserHistories_UserHistories { +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetName() string { if t == nil { - t = &GetUserHistories{} + t = &GetRiskHistories_RiskHistories_Edges_Node{} } - return &t.UserHistories + return t.Name } - -type GetAllUserSettings struct { - UserSettings GetAllUserSettings_UserSettings "json:\"userSettings\" graphql:\"userSettings\"" +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetRiskHistories_RiskHistories_Edges_Node{} + } + return &t.Operation } - -func (t *GetAllUserSettings) GetUserSettings() *GetAllUserSettings_UserSettings { +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetRef() *string { if t == nil { - t = &GetAllUserSettings{} + t = &GetRiskHistories_RiskHistories_Edges_Node{} } - return &t.UserSettings + return t.Ref } - -type GetUserSettingByID struct { - UserSetting GetUserSettingByID_UserSetting "json:\"userSetting\" graphql:\"userSetting\"" +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetRiskType() *string { + if t == nil { + t = &GetRiskHistories_RiskHistories_Edges_Node{} + } + return t.RiskType } - -func (t *GetUserSettingByID) GetUserSetting() *GetUserSettingByID_UserSetting { +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetSatisfies() *string { if t == nil { - t = &GetUserSettingByID{} + t = &GetRiskHistories_RiskHistories_Edges_Node{} } - return &t.UserSetting + return t.Satisfies } - -type GetUserSettings struct { - UserSettings GetUserSettings_UserSettings "json:\"userSettings\" graphql:\"userSettings\"" +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetStatus() *string { + if t == nil { + t = &GetRiskHistories_RiskHistories_Edges_Node{} + } + return t.Status } - -func (t *GetUserSettings) GetUserSettings() *GetUserSettings_UserSettings { +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetTags() []string { if t == nil { - t = &GetUserSettings{} + t = &GetRiskHistories_RiskHistories_Edges_Node{} } - return &t.UserSettings + return t.Tags } - -type UpdateUserSetting struct { - UpdateUserSetting UpdateUserSetting_UpdateUserSetting "json:\"updateUserSetting\" graphql:\"updateUserSetting\"" +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetRiskHistories_RiskHistories_Edges_Node{} + } + return t.UpdatedAt } - -func (t *UpdateUserSetting) GetUpdateUserSetting() *UpdateUserSetting_UpdateUserSetting { +func (t *GetRiskHistories_RiskHistories_Edges_Node) GetUpdatedBy() *string { if t == nil { - t = &UpdateUserSetting{} + t = &GetRiskHistories_RiskHistories_Edges_Node{} } - return &t.UpdateUserSetting + return t.UpdatedBy } -type GetAllUserSettingHistories struct { - UserSettingHistories GetAllUserSettingHistories_UserSettingHistories "json:\"userSettingHistories\" graphql:\"userSettingHistories\"" +type GetRiskHistories_RiskHistories_Edges struct { + Node *GetRiskHistories_RiskHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" } -func (t *GetAllUserSettingHistories) GetUserSettingHistories() *GetAllUserSettingHistories_UserSettingHistories { +func (t *GetRiskHistories_RiskHistories_Edges) GetNode() *GetRiskHistories_RiskHistories_Edges_Node { if t == nil { - t = &GetAllUserSettingHistories{} + t = &GetRiskHistories_RiskHistories_Edges{} } - return &t.UserSettingHistories + return t.Node } -type GetUserSettingHistories struct { - UserSettingHistories GetUserSettingHistories_UserSettingHistories "json:\"userSettingHistories\" graphql:\"userSettingHistories\"" +type GetRiskHistories_RiskHistories struct { + Edges []*GetRiskHistories_RiskHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" } -func (t *GetUserSettingHistories) GetUserSettingHistories() *GetUserSettingHistories_UserSettingHistories { +func (t *GetRiskHistories_RiskHistories) GetEdges() []*GetRiskHistories_RiskHistories_Edges { if t == nil { - t = &GetUserSettingHistories{} + t = &GetRiskHistories_RiskHistories{} } - return &t.UserSettingHistories + return t.Edges } -type GetWebhookByID struct { - Webhook GetWebhookByID_Webhook "json:\"webhook\" graphql:\"webhook\"" +type GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *GetWebhookByID) GetWebhook() *GetWebhookByID_Webhook { +func (t *GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens) GetID() string { if t == nil { - t = &GetWebhookByID{} + t = &GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens{} } - return &t.Webhook + return t.ID +} +func (t *GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens{} + } + return t.Tags } -type GetAllWebhooks struct { - Webhooks GetAllWebhooks_Webhooks "json:\"webhooks\" graphql:\"webhooks\"" +type GlobalSearch_Search_Nodes_APITokenSearchResult struct { + APITokens []*GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens "json:\"apiTokens,omitempty\" graphql:\"apiTokens\"" } -func (t *GetAllWebhooks) GetWebhooks() *GetAllWebhooks_Webhooks { +func (t *GlobalSearch_Search_Nodes_APITokenSearchResult) GetAPITokens() []*GlobalSearch_Search_Nodes_APITokenSearchResult_APITokens { if t == nil { - t = &GetAllWebhooks{} + t = &GlobalSearch_Search_Nodes_APITokenSearchResult{} } - return &t.Webhooks + return t.APITokens } -type CreateWebhook struct { - CreateWebhook CreateWebhook_CreateWebhook "json:\"createWebhook\" graphql:\"createWebhook\"" +type GlobalSearch_Search_Nodes_ActionPlanSearchResult_ActionPlans struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *CreateWebhook) GetCreateWebhook() *CreateWebhook_CreateWebhook { +func (t *GlobalSearch_Search_Nodes_ActionPlanSearchResult_ActionPlans) GetID() string { if t == nil { - t = &CreateWebhook{} + t = &GlobalSearch_Search_Nodes_ActionPlanSearchResult_ActionPlans{} } - return &t.CreateWebhook + return t.ID +} +func (t *GlobalSearch_Search_Nodes_ActionPlanSearchResult_ActionPlans) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_ActionPlanSearchResult_ActionPlans{} + } + return t.Tags } -type CreateBulkWebhook struct { - CreateBulkWebhook CreateBulkWebhook_CreateBulkWebhook "json:\"createBulkWebhook\" graphql:\"createBulkWebhook\"" +type GlobalSearch_Search_Nodes_ActionPlanSearchResult struct { + ActionPlans []*GlobalSearch_Search_Nodes_ActionPlanSearchResult_ActionPlans "json:\"actionPlans,omitempty\" graphql:\"actionPlans\"" } -func (t *CreateBulkWebhook) GetCreateBulkWebhook() *CreateBulkWebhook_CreateBulkWebhook { +func (t *GlobalSearch_Search_Nodes_ActionPlanSearchResult) GetActionPlans() []*GlobalSearch_Search_Nodes_ActionPlanSearchResult_ActionPlans { if t == nil { - t = &CreateBulkWebhook{} + t = &GlobalSearch_Search_Nodes_ActionPlanSearchResult{} } - return &t.CreateBulkWebhook + return t.ActionPlans } -type CreateBulkCSVWebhook struct { - CreateBulkCSVWebhook CreateBulkCSVWebhook_CreateBulkCSVWebhook "json:\"createBulkCSVWebhook\" graphql:\"createBulkCSVWebhook\"" +type GlobalSearch_Search_Nodes_ContactSearchResult_Contacts struct { + FullName string "json:\"fullName\" graphql:\"fullName\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *CreateBulkCSVWebhook) GetCreateBulkCSVWebhook() *CreateBulkCSVWebhook_CreateBulkCSVWebhook { +func (t *GlobalSearch_Search_Nodes_ContactSearchResult_Contacts) GetFullName() string { if t == nil { - t = &CreateBulkCSVWebhook{} + t = &GlobalSearch_Search_Nodes_ContactSearchResult_Contacts{} } - return &t.CreateBulkCSVWebhook + return t.FullName +} +func (t *GlobalSearch_Search_Nodes_ContactSearchResult_Contacts) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_ContactSearchResult_Contacts{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_ContactSearchResult_Contacts) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_ContactSearchResult_Contacts{} + } + return t.Tags } -type UpdateWebhook struct { - UpdateWebhook UpdateWebhook_UpdateWebhook "json:\"updateWebhook\" graphql:\"updateWebhook\"" +type GlobalSearch_Search_Nodes_ContactSearchResult struct { + Contacts []*GlobalSearch_Search_Nodes_ContactSearchResult_Contacts "json:\"contacts,omitempty\" graphql:\"contacts\"" } -func (t *UpdateWebhook) GetUpdateWebhook() *UpdateWebhook_UpdateWebhook { +func (t *GlobalSearch_Search_Nodes_ContactSearchResult) GetContacts() []*GlobalSearch_Search_Nodes_ContactSearchResult_Contacts { if t == nil { - t = &UpdateWebhook{} + t = &GlobalSearch_Search_Nodes_ContactSearchResult{} } - return &t.UpdateWebhook + return t.Contacts } -type DeleteWebhook struct { - DeleteWebhook DeleteWebhook_DeleteWebhook "json:\"deleteWebhook\" graphql:\"deleteWebhook\"" +type GlobalSearch_Search_Nodes_ControlSearchResult_Controls struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *DeleteWebhook) GetDeleteWebhook() *DeleteWebhook_DeleteWebhook { +func (t *GlobalSearch_Search_Nodes_ControlSearchResult_Controls) GetID() string { if t == nil { - t = &DeleteWebhook{} + t = &GlobalSearch_Search_Nodes_ControlSearchResult_Controls{} } - return &t.DeleteWebhook + return t.ID +} +func (t *GlobalSearch_Search_Nodes_ControlSearchResult_Controls) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_ControlSearchResult_Controls{} + } + return t.Tags } -type GetAllWebhookHistories struct { - WebhookHistories GetAllWebhookHistories_WebhookHistories "json:\"webhookHistories\" graphql:\"webhookHistories\"" +type GlobalSearch_Search_Nodes_ControlSearchResult struct { + Controls []*GlobalSearch_Search_Nodes_ControlSearchResult_Controls "json:\"controls,omitempty\" graphql:\"controls\"" } -func (t *GetAllWebhookHistories) GetWebhookHistories() *GetAllWebhookHistories_WebhookHistories { +func (t *GlobalSearch_Search_Nodes_ControlSearchResult) GetControls() []*GlobalSearch_Search_Nodes_ControlSearchResult_Controls { if t == nil { - t = &GetAllWebhookHistories{} + t = &GlobalSearch_Search_Nodes_ControlSearchResult{} } - return &t.WebhookHistories + return t.Controls } -type GetWebhookHistories struct { - WebhookHistories GetWebhookHistories_WebhookHistories "json:\"webhookHistories\" graphql:\"webhookHistories\"" +type GlobalSearch_Search_Nodes_ControlObjectiveSearchResult_ControlObjectives struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" } -func (t *GetWebhookHistories) GetWebhookHistories() *GetWebhookHistories_WebhookHistories { +func (t *GlobalSearch_Search_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetID() string { if t == nil { - t = &GetWebhookHistories{} + t = &GlobalSearch_Search_Nodes_ControlObjectiveSearchResult_ControlObjectives{} } - return &t.WebhookHistories + return t.ID +} +func (t *GlobalSearch_Search_Nodes_ControlObjectiveSearchResult_ControlObjectives) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_ControlObjectiveSearchResult_ControlObjectives{} + } + return t.Tags } -const AdminSearchDocument = `query AdminSearch ($query: String!) { - adminSearch(query: $query) { - nodes { - ... on APITokenSearchResult { - apiTokens { - deletedBy - id - tags - ownerID - name - scopes - } - } - ... on ContactSearchResult { - contacts { - id - deletedBy - tags - ownerID - fullName - title - company - email - phoneNumber - address - } - } - ... on DocumentDataSearchResult { - documentData { - id - tags - deletedBy - ownerID - templateID - data - } - } - ... on EntitlementSearchResult { - entitlements { - id - tags - deletedBy - ownerID - planID - organizationID - externalCustomerID - externalSubscriptionID - } - } - ... on EntitlementPlanSearchResult { - entitlementPlans { - id - deletedBy - tags - ownerID - displayName - name - description - version - metadata - } - } - ... on EntitlementPlanFeatureSearchResult { - entitlementPlanFeatures { - id - deletedBy - tags - ownerID - metadata - planID - featureID - } - } - ... on EntitySearchResult { - entities { - id - deletedBy - tags - ownerID - name - displayName - description - domains - entityTypeID - status - } - } - ... on EntityTypeSearchResult { - entityTypes { - id - deletedBy - tags - ownerID - name - } - } - ... on EventSearchResult { - events { - id - tags - eventID - correlationID - eventType - metadata - } - } - ... on FeatureSearchResult { - features { - deletedBy - id - tags - ownerID - name - displayName - description - metadata - } - } - ... on FileSearchResult { - files { - deletedBy - id - tags - providedFileName - providedFileExtension - detectedMimeType - md5Hash - detectedContentType - storeKey - categoryType - uri - storageScheme - storageVolume - storagePath - } - } - ... on GroupSearchResult { - groups { - deletedBy - id - tags - ownerID - name - displayName - } - } - ... on GroupSettingSearchResult { - groupSettings { - id - tags - deletedBy - groupID - } - } - ... on IntegrationSearchResult { - integrations { - id - tags - deletedBy - ownerID - name - kind - } - } - ... on OauthProviderSearchResult { - oauthProviders { - id - tags - deletedBy - ownerID - name - clientID - clientSecret - redirectURL - scopes - authURL - tokenURL - infoURL - } - } - ... on OhAuthTooTokenSearchResult { - ohAuthTooTokens { - id - tags - clientID - scopes - nonce - claimsUserID - claimsUsername - claimsEmail - claimsGroups - claimsPreferredUsername - connectorID - connectorData - } - } - ... on OrganizationSearchResult { - organizations { - id - tags - deletedBy - name - displayName - avatarRemoteURL - } - } - ... on OrganizationSettingSearchResult { - organizationSettings { - id - tags - deletedBy - domains - billingContact - billingEmail - billingPhone - billingAddress - taxIdentifier - organizationID - } - } - ... on PersonalAccessTokenSearchResult { - personalAccessTokens { - deletedBy - id - tags - name - scopes - } - } - ... on SubscriberSearchResult { - subscribers { - id - tags - deletedBy - ownerID - email - phoneNumber - } - } - ... on TFASettingSearchResult { - tFASettings { - id - deletedBy - tags - tfaSecret - recoveryCodes - } - } - ... on TemplateSearchResult { - templates { - deletedBy - id - tags - ownerID - name - description - jsonconfig - uischema - } - } - ... on UserSearchResult { - users { - deletedBy - id - tags - email - firstName - lastName - displayName - avatarRemoteURL - avatarLocalFile - avatarLocalFileID - sub - } - } - ... on UserSettingSearchResult { - userSettings { - id - tags - deletedBy - userID - } - } - ... on WebhookSearchResult { - webhooks { - id - tags - deletedBy - ownerID - name - destinationURL - lastError - lastResponse - } +type GlobalSearch_Search_Nodes_ControlObjectiveSearchResult struct { + ControlObjectives []*GlobalSearch_Search_Nodes_ControlObjectiveSearchResult_ControlObjectives "json:\"controlObjectives,omitempty\" graphql:\"controlObjectives\"" +} + +func (t *GlobalSearch_Search_Nodes_ControlObjectiveSearchResult) GetControlObjectives() []*GlobalSearch_Search_Nodes_ControlObjectiveSearchResult_ControlObjectives { + if t == nil { + t = &GlobalSearch_Search_Nodes_ControlObjectiveSearchResult{} + } + return t.ControlObjectives +} + +type GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_DocumentDataSearchResult struct { + DocumentData []*GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData "json:\"documentData,omitempty\" graphql:\"documentData\"" +} + +func (t *GlobalSearch_Search_Nodes_DocumentDataSearchResult) GetDocumentData() []*GlobalSearch_Search_Nodes_DocumentDataSearchResult_DocumentData { + if t == nil { + t = &GlobalSearch_Search_Nodes_DocumentDataSearchResult{} + } + return t.DocumentData +} + +type GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_EntitlementSearchResult struct { + Entitlements []*GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements "json:\"entitlements,omitempty\" graphql:\"entitlements\"" +} + +func (t *GlobalSearch_Search_Nodes_EntitlementSearchResult) GetEntitlements() []*GlobalSearch_Search_Nodes_EntitlementSearchResult_Entitlements { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitlementSearchResult{} + } + return t.Entitlements +} + +type GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_EntitlementPlanSearchResult struct { + EntitlementPlans []*GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans "json:\"entitlementPlans,omitempty\" graphql:\"entitlementPlans\"" +} + +func (t *GlobalSearch_Search_Nodes_EntitlementPlanSearchResult) GetEntitlementPlans() []*GlobalSearch_Search_Nodes_EntitlementPlanSearchResult_EntitlementPlans { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitlementPlanSearchResult{} + } + return t.EntitlementPlans +} + +type GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult struct { + EntitlementPlanFeatures []*GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures "json:\"entitlementPlanFeatures,omitempty\" graphql:\"entitlementPlanFeatures\"" +} + +func (t *GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult) GetEntitlementPlanFeatures() []*GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult_EntitlementPlanFeatures { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult{} + } + return t.EntitlementPlanFeatures +} + +type GlobalSearch_Search_Nodes_EntitySearchResult_Entities struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayName *string "json:\"displayName,omitempty\" graphql:\"displayName\"" + ID string "json:\"id\" graphql:\"id\"" + Name *string "json:\"name,omitempty\" graphql:\"name\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_EntitySearchResult_Entities) GetDescription() *string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitySearchResult_Entities{} + } + return t.Description +} +func (t *GlobalSearch_Search_Nodes_EntitySearchResult_Entities) GetDisplayName() *string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitySearchResult_Entities{} + } + return t.DisplayName +} +func (t *GlobalSearch_Search_Nodes_EntitySearchResult_Entities) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitySearchResult_Entities{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_EntitySearchResult_Entities) GetName() *string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitySearchResult_Entities{} + } + return t.Name +} +func (t *GlobalSearch_Search_Nodes_EntitySearchResult_Entities) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitySearchResult_Entities{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_EntitySearchResult struct { + Entities []*GlobalSearch_Search_Nodes_EntitySearchResult_Entities "json:\"entities,omitempty\" graphql:\"entities\"" +} + +func (t *GlobalSearch_Search_Nodes_EntitySearchResult) GetEntities() []*GlobalSearch_Search_Nodes_EntitySearchResult_Entities { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntitySearchResult{} + } + return t.Entities +} + +type GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_EntityTypeSearchResult struct { + EntityTypes []*GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes "json:\"entityTypes,omitempty\" graphql:\"entityTypes\"" +} + +func (t *GlobalSearch_Search_Nodes_EntityTypeSearchResult) GetEntityTypes() []*GlobalSearch_Search_Nodes_EntityTypeSearchResult_EntityTypes { + if t == nil { + t = &GlobalSearch_Search_Nodes_EntityTypeSearchResult{} + } + return t.EntityTypes +} + +type GlobalSearch_Search_Nodes_EventSearchResult_Events struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_EventSearchResult_Events) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EventSearchResult_Events{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_EventSearchResult_Events) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_EventSearchResult_Events{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_EventSearchResult struct { + Events []*GlobalSearch_Search_Nodes_EventSearchResult_Events "json:\"events,omitempty\" graphql:\"events\"" +} + +func (t *GlobalSearch_Search_Nodes_EventSearchResult) GetEvents() []*GlobalSearch_Search_Nodes_EventSearchResult_Events { + if t == nil { + t = &GlobalSearch_Search_Nodes_EventSearchResult{} + } + return t.Events +} + +type GlobalSearch_Search_Nodes_FeatureSearchResult_Features struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_FeatureSearchResult_Features) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_FeatureSearchResult_Features{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_FeatureSearchResult_Features) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_FeatureSearchResult_Features{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_FeatureSearchResult struct { + Features []*GlobalSearch_Search_Nodes_FeatureSearchResult_Features "json:\"features,omitempty\" graphql:\"features\"" +} + +func (t *GlobalSearch_Search_Nodes_FeatureSearchResult) GetFeatures() []*GlobalSearch_Search_Nodes_FeatureSearchResult_Features { + if t == nil { + t = &GlobalSearch_Search_Nodes_FeatureSearchResult{} + } + return t.Features +} + +type GlobalSearch_Search_Nodes_FileSearchResult_Files struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_FileSearchResult_Files) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_FileSearchResult_Files{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_FileSearchResult_Files) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_FileSearchResult_Files{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_FileSearchResult struct { + Files []*GlobalSearch_Search_Nodes_FileSearchResult_Files "json:\"files,omitempty\" graphql:\"files\"" +} + +func (t *GlobalSearch_Search_Nodes_FileSearchResult) GetFiles() []*GlobalSearch_Search_Nodes_FileSearchResult_Files { + if t == nil { + t = &GlobalSearch_Search_Nodes_FileSearchResult{} + } + return t.Files +} + +type GlobalSearch_Search_Nodes_GroupSearchResult_Groups struct { + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_GroupSearchResult_Groups) GetDisplayName() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_GroupSearchResult_Groups{} + } + return t.DisplayName +} +func (t *GlobalSearch_Search_Nodes_GroupSearchResult_Groups) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_GroupSearchResult_Groups{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_GroupSearchResult_Groups) GetName() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_GroupSearchResult_Groups{} + } + return t.Name +} +func (t *GlobalSearch_Search_Nodes_GroupSearchResult_Groups) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_GroupSearchResult_Groups{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_GroupSearchResult struct { + Groups []*GlobalSearch_Search_Nodes_GroupSearchResult_Groups "json:\"groups,omitempty\" graphql:\"groups\"" +} + +func (t *GlobalSearch_Search_Nodes_GroupSearchResult) GetGroups() []*GlobalSearch_Search_Nodes_GroupSearchResult_Groups { + if t == nil { + t = &GlobalSearch_Search_Nodes_GroupSearchResult{} + } + return t.Groups +} + +type GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_GroupSettingSearchResult struct { + GroupSettings []*GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings "json:\"groupSettings,omitempty\" graphql:\"groupSettings\"" +} + +func (t *GlobalSearch_Search_Nodes_GroupSettingSearchResult) GetGroupSettings() []*GlobalSearch_Search_Nodes_GroupSettingSearchResult_GroupSettings { + if t == nil { + t = &GlobalSearch_Search_Nodes_GroupSettingSearchResult{} + } + return t.GroupSettings +} + +type GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_IntegrationSearchResult struct { + Integrations []*GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations "json:\"integrations,omitempty\" graphql:\"integrations\"" +} + +func (t *GlobalSearch_Search_Nodes_IntegrationSearchResult) GetIntegrations() []*GlobalSearch_Search_Nodes_IntegrationSearchResult_Integrations { + if t == nil { + t = &GlobalSearch_Search_Nodes_IntegrationSearchResult{} + } + return t.Integrations +} + +type GlobalSearch_Search_Nodes_InternalPolicySearchResult_InternalPolicies struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_InternalPolicySearchResult_InternalPolicies) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_InternalPolicySearchResult_InternalPolicies{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_InternalPolicySearchResult_InternalPolicies) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_InternalPolicySearchResult_InternalPolicies{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_InternalPolicySearchResult struct { + InternalPolicies []*GlobalSearch_Search_Nodes_InternalPolicySearchResult_InternalPolicies "json:\"internalPolicies,omitempty\" graphql:\"internalPolicies\"" +} + +func (t *GlobalSearch_Search_Nodes_InternalPolicySearchResult) GetInternalPolicies() []*GlobalSearch_Search_Nodes_InternalPolicySearchResult_InternalPolicies { + if t == nil { + t = &GlobalSearch_Search_Nodes_InternalPolicySearchResult{} + } + return t.InternalPolicies +} + +type GlobalSearch_Search_Nodes_NarrativeSearchResult_Narratives struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_NarrativeSearchResult_Narratives) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_NarrativeSearchResult_Narratives{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_NarrativeSearchResult_Narratives) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_NarrativeSearchResult_Narratives{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_NarrativeSearchResult struct { + Narratives []*GlobalSearch_Search_Nodes_NarrativeSearchResult_Narratives "json:\"narratives,omitempty\" graphql:\"narratives\"" +} + +func (t *GlobalSearch_Search_Nodes_NarrativeSearchResult) GetNarratives() []*GlobalSearch_Search_Nodes_NarrativeSearchResult_Narratives { + if t == nil { + t = &GlobalSearch_Search_Nodes_NarrativeSearchResult{} + } + return t.Narratives +} + +type GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_OauthProviderSearchResult struct { + OauthProviders []*GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders "json:\"oauthProviders,omitempty\" graphql:\"oauthProviders\"" +} + +func (t *GlobalSearch_Search_Nodes_OauthProviderSearchResult) GetOauthProviders() []*GlobalSearch_Search_Nodes_OauthProviderSearchResult_OauthProviders { + if t == nil { + t = &GlobalSearch_Search_Nodes_OauthProviderSearchResult{} + } + return t.OauthProviders +} + +type GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult struct { + OhAuthTooTokens []*GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens "json:\"ohAuthTooTokens,omitempty\" graphql:\"ohAuthTooTokens\"" +} + +func (t *GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult) GetOhAuthTooTokens() []*GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult_OhAuthTooTokens { + if t == nil { + t = &GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult{} + } + return t.OhAuthTooTokens +} + +type GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations struct { + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations) GetDisplayName() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations{} + } + return t.DisplayName +} +func (t *GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations) GetName() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations{} + } + return t.Name +} +func (t *GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_OrganizationSearchResult struct { + Organizations []*GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" +} + +func (t *GlobalSearch_Search_Nodes_OrganizationSearchResult) GetOrganizations() []*GlobalSearch_Search_Nodes_OrganizationSearchResult_Organizations { + if t == nil { + t = &GlobalSearch_Search_Nodes_OrganizationSearchResult{} + } + return t.Organizations +} + +type GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_OrganizationSettingSearchResult struct { + OrganizationSettings []*GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings "json:\"organizationSettings,omitempty\" graphql:\"organizationSettings\"" +} + +func (t *GlobalSearch_Search_Nodes_OrganizationSettingSearchResult) GetOrganizationSettings() []*GlobalSearch_Search_Nodes_OrganizationSettingSearchResult_OrganizationSettings { + if t == nil { + t = &GlobalSearch_Search_Nodes_OrganizationSettingSearchResult{} + } + return t.OrganizationSettings +} + +type GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult struct { + PersonalAccessTokens []*GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens "json:\"personalAccessTokens,omitempty\" graphql:\"personalAccessTokens\"" +} + +func (t *GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult) GetPersonalAccessTokens() []*GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult_PersonalAccessTokens { + if t == nil { + t = &GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult{} + } + return t.PersonalAccessTokens +} + +type GlobalSearch_Search_Nodes_ProcedureSearchResult_Procedures struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_ProcedureSearchResult_Procedures) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_ProcedureSearchResult_Procedures{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_ProcedureSearchResult_Procedures) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_ProcedureSearchResult_Procedures{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_ProcedureSearchResult struct { + Procedures []*GlobalSearch_Search_Nodes_ProcedureSearchResult_Procedures "json:\"procedures,omitempty\" graphql:\"procedures\"" +} + +func (t *GlobalSearch_Search_Nodes_ProcedureSearchResult) GetProcedures() []*GlobalSearch_Search_Nodes_ProcedureSearchResult_Procedures { + if t == nil { + t = &GlobalSearch_Search_Nodes_ProcedureSearchResult{} + } + return t.Procedures +} + +type GlobalSearch_Search_Nodes_RiskSearchResult_Risks struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_RiskSearchResult_Risks) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_RiskSearchResult_Risks{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_RiskSearchResult_Risks) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_RiskSearchResult_Risks{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_RiskSearchResult struct { + Risks []*GlobalSearch_Search_Nodes_RiskSearchResult_Risks "json:\"risks,omitempty\" graphql:\"risks\"" +} + +func (t *GlobalSearch_Search_Nodes_RiskSearchResult) GetRisks() []*GlobalSearch_Search_Nodes_RiskSearchResult_Risks { + if t == nil { + t = &GlobalSearch_Search_Nodes_RiskSearchResult{} + } + return t.Risks +} + +type GlobalSearch_Search_Nodes_StandardSearchResult_Standards struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_StandardSearchResult_Standards) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_StandardSearchResult_Standards{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_StandardSearchResult_Standards) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_StandardSearchResult_Standards{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_StandardSearchResult struct { + Standards []*GlobalSearch_Search_Nodes_StandardSearchResult_Standards "json:\"standards,omitempty\" graphql:\"standards\"" +} + +func (t *GlobalSearch_Search_Nodes_StandardSearchResult) GetStandards() []*GlobalSearch_Search_Nodes_StandardSearchResult_Standards { + if t == nil { + t = &GlobalSearch_Search_Nodes_StandardSearchResult{} + } + return t.Standards +} + +type GlobalSearch_Search_Nodes_SubcontrolSearchResult_Subcontrols struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_SubcontrolSearchResult_Subcontrols) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_SubcontrolSearchResult_Subcontrols{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_SubcontrolSearchResult_Subcontrols) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_SubcontrolSearchResult_Subcontrols{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_SubcontrolSearchResult struct { + Subcontrols []*GlobalSearch_Search_Nodes_SubcontrolSearchResult_Subcontrols "json:\"subcontrols,omitempty\" graphql:\"subcontrols\"" +} + +func (t *GlobalSearch_Search_Nodes_SubcontrolSearchResult) GetSubcontrols() []*GlobalSearch_Search_Nodes_SubcontrolSearchResult_Subcontrols { + if t == nil { + t = &GlobalSearch_Search_Nodes_SubcontrolSearchResult{} + } + return t.Subcontrols +} + +type GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers struct { + Email string "json:\"email\" graphql:\"email\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers) GetEmail() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers{} + } + return t.Email +} +func (t *GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_SubscriberSearchResult struct { + Subscribers []*GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers "json:\"subscribers,omitempty\" graphql:\"subscribers\"" +} + +func (t *GlobalSearch_Search_Nodes_SubscriberSearchResult) GetSubscribers() []*GlobalSearch_Search_Nodes_SubscriberSearchResult_Subscribers { + if t == nil { + t = &GlobalSearch_Search_Nodes_SubscriberSearchResult{} + } + return t.Subscribers +} + +type GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_TFASettingSearchResult struct { + TFASettings []*GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings "json:\"tFASettings,omitempty\" graphql:\"tFASettings\"" +} + +func (t *GlobalSearch_Search_Nodes_TFASettingSearchResult) GetTFASettings() []*GlobalSearch_Search_Nodes_TFASettingSearchResult_TFASettings { + if t == nil { + t = &GlobalSearch_Search_Nodes_TFASettingSearchResult{} + } + return t.TFASettings +} + +type GlobalSearch_Search_Nodes_TemplateSearchResult_Templates struct { + ID string "json:\"id\" graphql:\"id\"" + Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" + Name string "json:\"name\" graphql:\"name\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_TemplateSearchResult_Templates) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_TemplateSearchResult_Templates{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_TemplateSearchResult_Templates) GetJsonconfig() *json.RawMessage { + if t == nil { + t = &GlobalSearch_Search_Nodes_TemplateSearchResult_Templates{} + } + return &t.Jsonconfig +} +func (t *GlobalSearch_Search_Nodes_TemplateSearchResult_Templates) GetName() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_TemplateSearchResult_Templates{} + } + return t.Name +} +func (t *GlobalSearch_Search_Nodes_TemplateSearchResult_Templates) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_TemplateSearchResult_Templates{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_TemplateSearchResult struct { + Templates []*GlobalSearch_Search_Nodes_TemplateSearchResult_Templates "json:\"templates,omitempty\" graphql:\"templates\"" +} + +func (t *GlobalSearch_Search_Nodes_TemplateSearchResult) GetTemplates() []*GlobalSearch_Search_Nodes_TemplateSearchResult_Templates { + if t == nil { + t = &GlobalSearch_Search_Nodes_TemplateSearchResult{} + } + return t.Templates +} + +type GlobalSearch_Search_Nodes_UserSearchResult_Users struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_UserSearchResult_Users) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_UserSearchResult_Users{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_UserSearchResult_Users) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_UserSearchResult_Users{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_UserSearchResult struct { + Users []*GlobalSearch_Search_Nodes_UserSearchResult_Users "json:\"users,omitempty\" graphql:\"users\"" +} + +func (t *GlobalSearch_Search_Nodes_UserSearchResult) GetUsers() []*GlobalSearch_Search_Nodes_UserSearchResult_Users { + if t == nil { + t = &GlobalSearch_Search_Nodes_UserSearchResult{} + } + return t.Users +} + +type GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_UserSettingSearchResult struct { + UserSettings []*GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings "json:\"userSettings,omitempty\" graphql:\"userSettings\"" +} + +func (t *GlobalSearch_Search_Nodes_UserSettingSearchResult) GetUserSettings() []*GlobalSearch_Search_Nodes_UserSettingSearchResult_UserSettings { + if t == nil { + t = &GlobalSearch_Search_Nodes_UserSettingSearchResult{} + } + return t.UserSettings +} + +type GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks struct { + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks{} + } + return t.ID +} +func (t *GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks{} + } + return t.Tags +} + +type GlobalSearch_Search_Nodes_WebhookSearchResult struct { + Webhooks []*GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" +} + +func (t *GlobalSearch_Search_Nodes_WebhookSearchResult) GetWebhooks() []*GlobalSearch_Search_Nodes_WebhookSearchResult_Webhooks { + if t == nil { + t = &GlobalSearch_Search_Nodes_WebhookSearchResult{} + } + return t.Webhooks +} + +type GlobalSearch_Search_Nodes struct { + APITokenSearchResult GlobalSearch_Search_Nodes_APITokenSearchResult "graphql:\"... on APITokenSearchResult\"" + ActionPlanSearchResult GlobalSearch_Search_Nodes_ActionPlanSearchResult "graphql:\"... on ActionPlanSearchResult\"" + ContactSearchResult GlobalSearch_Search_Nodes_ContactSearchResult "graphql:\"... on ContactSearchResult\"" + ControlSearchResult GlobalSearch_Search_Nodes_ControlSearchResult "graphql:\"... on ControlSearchResult\"" + ControlObjectiveSearchResult GlobalSearch_Search_Nodes_ControlObjectiveSearchResult "graphql:\"... on ControlObjectiveSearchResult\"" + DocumentDataSearchResult GlobalSearch_Search_Nodes_DocumentDataSearchResult "graphql:\"... on DocumentDataSearchResult\"" + EntitlementSearchResult GlobalSearch_Search_Nodes_EntitlementSearchResult "graphql:\"... on EntitlementSearchResult\"" + EntitlementPlanSearchResult GlobalSearch_Search_Nodes_EntitlementPlanSearchResult "graphql:\"... on EntitlementPlanSearchResult\"" + EntitlementPlanFeatureSearchResult GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult "graphql:\"... on EntitlementPlanFeatureSearchResult\"" + EntitySearchResult GlobalSearch_Search_Nodes_EntitySearchResult "graphql:\"... on EntitySearchResult\"" + EntityTypeSearchResult GlobalSearch_Search_Nodes_EntityTypeSearchResult "graphql:\"... on EntityTypeSearchResult\"" + EventSearchResult GlobalSearch_Search_Nodes_EventSearchResult "graphql:\"... on EventSearchResult\"" + FeatureSearchResult GlobalSearch_Search_Nodes_FeatureSearchResult "graphql:\"... on FeatureSearchResult\"" + FileSearchResult GlobalSearch_Search_Nodes_FileSearchResult "graphql:\"... on FileSearchResult\"" + GroupSearchResult GlobalSearch_Search_Nodes_GroupSearchResult "graphql:\"... on GroupSearchResult\"" + GroupSettingSearchResult GlobalSearch_Search_Nodes_GroupSettingSearchResult "graphql:\"... on GroupSettingSearchResult\"" + IntegrationSearchResult GlobalSearch_Search_Nodes_IntegrationSearchResult "graphql:\"... on IntegrationSearchResult\"" + InternalPolicySearchResult GlobalSearch_Search_Nodes_InternalPolicySearchResult "graphql:\"... on InternalPolicySearchResult\"" + NarrativeSearchResult GlobalSearch_Search_Nodes_NarrativeSearchResult "graphql:\"... on NarrativeSearchResult\"" + OauthProviderSearchResult GlobalSearch_Search_Nodes_OauthProviderSearchResult "graphql:\"... on OauthProviderSearchResult\"" + OhAuthTooTokenSearchResult GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult "graphql:\"... on OhAuthTooTokenSearchResult\"" + OrganizationSearchResult GlobalSearch_Search_Nodes_OrganizationSearchResult "graphql:\"... on OrganizationSearchResult\"" + OrganizationSettingSearchResult GlobalSearch_Search_Nodes_OrganizationSettingSearchResult "graphql:\"... on OrganizationSettingSearchResult\"" + PersonalAccessTokenSearchResult GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult "graphql:\"... on PersonalAccessTokenSearchResult\"" + ProcedureSearchResult GlobalSearch_Search_Nodes_ProcedureSearchResult "graphql:\"... on ProcedureSearchResult\"" + RiskSearchResult GlobalSearch_Search_Nodes_RiskSearchResult "graphql:\"... on RiskSearchResult\"" + StandardSearchResult GlobalSearch_Search_Nodes_StandardSearchResult "graphql:\"... on StandardSearchResult\"" + SubcontrolSearchResult GlobalSearch_Search_Nodes_SubcontrolSearchResult "graphql:\"... on SubcontrolSearchResult\"" + SubscriberSearchResult GlobalSearch_Search_Nodes_SubscriberSearchResult "graphql:\"... on SubscriberSearchResult\"" + TFASettingSearchResult GlobalSearch_Search_Nodes_TFASettingSearchResult "graphql:\"... on TFASettingSearchResult\"" + TemplateSearchResult GlobalSearch_Search_Nodes_TemplateSearchResult "graphql:\"... on TemplateSearchResult\"" + UserSearchResult GlobalSearch_Search_Nodes_UserSearchResult "graphql:\"... on UserSearchResult\"" + UserSettingSearchResult GlobalSearch_Search_Nodes_UserSettingSearchResult "graphql:\"... on UserSettingSearchResult\"" + WebhookSearchResult GlobalSearch_Search_Nodes_WebhookSearchResult "graphql:\"... on WebhookSearchResult\"" +} + +func (t *GlobalSearch_Search_Nodes) GetAPITokenSearchResult() *GlobalSearch_Search_Nodes_APITokenSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.APITokenSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetActionPlanSearchResult() *GlobalSearch_Search_Nodes_ActionPlanSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.ActionPlanSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetContactSearchResult() *GlobalSearch_Search_Nodes_ContactSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.ContactSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetControlSearchResult() *GlobalSearch_Search_Nodes_ControlSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.ControlSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetControlObjectiveSearchResult() *GlobalSearch_Search_Nodes_ControlObjectiveSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.ControlObjectiveSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetDocumentDataSearchResult() *GlobalSearch_Search_Nodes_DocumentDataSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.DocumentDataSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetEntitlementSearchResult() *GlobalSearch_Search_Nodes_EntitlementSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.EntitlementSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetEntitlementPlanSearchResult() *GlobalSearch_Search_Nodes_EntitlementPlanSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.EntitlementPlanSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetEntitlementPlanFeatureSearchResult() *GlobalSearch_Search_Nodes_EntitlementPlanFeatureSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.EntitlementPlanFeatureSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetEntitySearchResult() *GlobalSearch_Search_Nodes_EntitySearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.EntitySearchResult +} +func (t *GlobalSearch_Search_Nodes) GetEntityTypeSearchResult() *GlobalSearch_Search_Nodes_EntityTypeSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.EntityTypeSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetEventSearchResult() *GlobalSearch_Search_Nodes_EventSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.EventSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetFeatureSearchResult() *GlobalSearch_Search_Nodes_FeatureSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.FeatureSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetFileSearchResult() *GlobalSearch_Search_Nodes_FileSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.FileSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetGroupSearchResult() *GlobalSearch_Search_Nodes_GroupSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.GroupSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetGroupSettingSearchResult() *GlobalSearch_Search_Nodes_GroupSettingSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.GroupSettingSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetIntegrationSearchResult() *GlobalSearch_Search_Nodes_IntegrationSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.IntegrationSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetInternalPolicySearchResult() *GlobalSearch_Search_Nodes_InternalPolicySearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.InternalPolicySearchResult +} +func (t *GlobalSearch_Search_Nodes) GetNarrativeSearchResult() *GlobalSearch_Search_Nodes_NarrativeSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.NarrativeSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetOauthProviderSearchResult() *GlobalSearch_Search_Nodes_OauthProviderSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.OauthProviderSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetOhAuthTooTokenSearchResult() *GlobalSearch_Search_Nodes_OhAuthTooTokenSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.OhAuthTooTokenSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetOrganizationSearchResult() *GlobalSearch_Search_Nodes_OrganizationSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.OrganizationSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetOrganizationSettingSearchResult() *GlobalSearch_Search_Nodes_OrganizationSettingSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.OrganizationSettingSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetPersonalAccessTokenSearchResult() *GlobalSearch_Search_Nodes_PersonalAccessTokenSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.PersonalAccessTokenSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetProcedureSearchResult() *GlobalSearch_Search_Nodes_ProcedureSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.ProcedureSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetRiskSearchResult() *GlobalSearch_Search_Nodes_RiskSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.RiskSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetStandardSearchResult() *GlobalSearch_Search_Nodes_StandardSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.StandardSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetSubcontrolSearchResult() *GlobalSearch_Search_Nodes_SubcontrolSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.SubcontrolSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetSubscriberSearchResult() *GlobalSearch_Search_Nodes_SubscriberSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.SubscriberSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetTFASettingSearchResult() *GlobalSearch_Search_Nodes_TFASettingSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.TFASettingSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetTemplateSearchResult() *GlobalSearch_Search_Nodes_TemplateSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.TemplateSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetUserSearchResult() *GlobalSearch_Search_Nodes_UserSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.UserSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetUserSettingSearchResult() *GlobalSearch_Search_Nodes_UserSettingSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.UserSettingSearchResult +} +func (t *GlobalSearch_Search_Nodes) GetWebhookSearchResult() *GlobalSearch_Search_Nodes_WebhookSearchResult { + if t == nil { + t = &GlobalSearch_Search_Nodes{} + } + return &t.WebhookSearchResult +} + +type GlobalSearch_Search struct { + Nodes []*GlobalSearch_Search_Nodes "json:\"nodes\" graphql:\"nodes\"" +} + +func (t *GlobalSearch_Search) GetNodes() []*GlobalSearch_Search_Nodes { + if t == nil { + t = &GlobalSearch_Search{} + } + return t.Nodes +} + +type CreateBulkCSVStandard_CreateBulkCSVStandard_Standards struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + StandardType *string "json:\"standardType,omitempty\" graphql:\"standardType\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetBackground() *string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.Background +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.CreatedAt +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetCreatedBy() *string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.CreatedBy +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetDescription() *string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.Description +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetDetails() map[string]interface{} { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.Details +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetFamily() *string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.Family +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetID() string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.ID +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetName() string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.Name +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetPurposeAndScope() *string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.PurposeAndScope +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetSatisfies() *string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.Satisfies +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetStandardType() *string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.StandardType +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetStatus() *string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.Status +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetTags() []string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.Tags +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.UpdatedAt +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.UpdatedBy +} +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard_Standards) GetVersion() *string { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard_Standards{} + } + return t.Version +} + +type CreateBulkCSVStandard_CreateBulkCSVStandard struct { + Standards []*CreateBulkCSVStandard_CreateBulkCSVStandard_Standards "json:\"standards,omitempty\" graphql:\"standards\"" +} + +func (t *CreateBulkCSVStandard_CreateBulkCSVStandard) GetStandards() []*CreateBulkCSVStandard_CreateBulkCSVStandard_Standards { + if t == nil { + t = &CreateBulkCSVStandard_CreateBulkCSVStandard{} + } + return t.Standards +} + +type CreateBulkStandard_CreateBulkStandard_Standards struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + StandardType *string "json:\"standardType,omitempty\" graphql:\"standardType\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetBackground() *string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.Background +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.CreatedAt +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetCreatedBy() *string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.CreatedBy +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetDescription() *string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.Description +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetDetails() map[string]interface{} { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.Details +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetFamily() *string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.Family +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetID() string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.ID +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetName() string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.Name +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetPurposeAndScope() *string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.PurposeAndScope +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetSatisfies() *string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.Satisfies +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetStandardType() *string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.StandardType +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetStatus() *string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.Status +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetTags() []string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.Tags +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.UpdatedAt +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.UpdatedBy +} +func (t *CreateBulkStandard_CreateBulkStandard_Standards) GetVersion() *string { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard_Standards{} + } + return t.Version +} + +type CreateBulkStandard_CreateBulkStandard struct { + Standards []*CreateBulkStandard_CreateBulkStandard_Standards "json:\"standards,omitempty\" graphql:\"standards\"" +} + +func (t *CreateBulkStandard_CreateBulkStandard) GetStandards() []*CreateBulkStandard_CreateBulkStandard_Standards { + if t == nil { + t = &CreateBulkStandard_CreateBulkStandard{} + } + return t.Standards +} + +type CreateStandard_CreateStandard_Standard struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + StandardType *string "json:\"standardType,omitempty\" graphql:\"standardType\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *CreateStandard_CreateStandard_Standard) GetBackground() *string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.Background +} +func (t *CreateStandard_CreateStandard_Standard) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.CreatedAt +} +func (t *CreateStandard_CreateStandard_Standard) GetCreatedBy() *string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.CreatedBy +} +func (t *CreateStandard_CreateStandard_Standard) GetDescription() *string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.Description +} +func (t *CreateStandard_CreateStandard_Standard) GetDetails() map[string]interface{} { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.Details +} +func (t *CreateStandard_CreateStandard_Standard) GetFamily() *string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.Family +} +func (t *CreateStandard_CreateStandard_Standard) GetID() string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.ID +} +func (t *CreateStandard_CreateStandard_Standard) GetName() string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.Name +} +func (t *CreateStandard_CreateStandard_Standard) GetPurposeAndScope() *string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.PurposeAndScope +} +func (t *CreateStandard_CreateStandard_Standard) GetSatisfies() *string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.Satisfies +} +func (t *CreateStandard_CreateStandard_Standard) GetStandardType() *string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.StandardType +} +func (t *CreateStandard_CreateStandard_Standard) GetStatus() *string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.Status +} +func (t *CreateStandard_CreateStandard_Standard) GetTags() []string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.Tags +} +func (t *CreateStandard_CreateStandard_Standard) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.UpdatedAt +} +func (t *CreateStandard_CreateStandard_Standard) GetUpdatedBy() *string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.UpdatedBy +} +func (t *CreateStandard_CreateStandard_Standard) GetVersion() *string { + if t == nil { + t = &CreateStandard_CreateStandard_Standard{} + } + return t.Version +} + +type CreateStandard_CreateStandard struct { + Standard CreateStandard_CreateStandard_Standard "json:\"standard\" graphql:\"standard\"" +} + +func (t *CreateStandard_CreateStandard) GetStandard() *CreateStandard_CreateStandard_Standard { + if t == nil { + t = &CreateStandard_CreateStandard{} + } + return &t.Standard +} + +type DeleteStandard_DeleteStandard struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +} + +func (t *DeleteStandard_DeleteStandard) GetDeletedID() string { + if t == nil { + t = &DeleteStandard_DeleteStandard{} + } + return t.DeletedID +} + +type GetAllStandards_Standards_Edges_Node struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + StandardType *string "json:\"standardType,omitempty\" graphql:\"standardType\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetAllStandards_Standards_Edges_Node) GetBackground() *string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.Background +} +func (t *GetAllStandards_Standards_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllStandards_Standards_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllStandards_Standards_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.Description +} +func (t *GetAllStandards_Standards_Edges_Node) GetDetails() map[string]interface{} { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.Details +} +func (t *GetAllStandards_Standards_Edges_Node) GetFamily() *string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.Family +} +func (t *GetAllStandards_Standards_Edges_Node) GetID() string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.ID +} +func (t *GetAllStandards_Standards_Edges_Node) GetName() string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.Name +} +func (t *GetAllStandards_Standards_Edges_Node) GetPurposeAndScope() *string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.PurposeAndScope +} +func (t *GetAllStandards_Standards_Edges_Node) GetSatisfies() *string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.Satisfies +} +func (t *GetAllStandards_Standards_Edges_Node) GetStandardType() *string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.StandardType +} +func (t *GetAllStandards_Standards_Edges_Node) GetStatus() *string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.Status +} +func (t *GetAllStandards_Standards_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.Tags +} +func (t *GetAllStandards_Standards_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllStandards_Standards_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetAllStandards_Standards_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetAllStandards_Standards_Edges_Node{} + } + return t.Version +} + +type GetAllStandards_Standards_Edges struct { + Node *GetAllStandards_Standards_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllStandards_Standards_Edges) GetNode() *GetAllStandards_Standards_Edges_Node { + if t == nil { + t = &GetAllStandards_Standards_Edges{} + } + return t.Node +} + +type GetAllStandards_Standards struct { + Edges []*GetAllStandards_Standards_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllStandards_Standards) GetEdges() []*GetAllStandards_Standards_Edges { + if t == nil { + t = &GetAllStandards_Standards{} + } + return t.Edges +} + +type GetStandardByID_Standard struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + StandardType *string "json:\"standardType,omitempty\" graphql:\"standardType\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetStandardByID_Standard) GetBackground() *string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.Background +} +func (t *GetStandardByID_Standard) GetCreatedAt() *time.Time { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.CreatedAt +} +func (t *GetStandardByID_Standard) GetCreatedBy() *string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.CreatedBy +} +func (t *GetStandardByID_Standard) GetDescription() *string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.Description +} +func (t *GetStandardByID_Standard) GetDetails() map[string]interface{} { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.Details +} +func (t *GetStandardByID_Standard) GetFamily() *string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.Family +} +func (t *GetStandardByID_Standard) GetID() string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.ID +} +func (t *GetStandardByID_Standard) GetName() string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.Name +} +func (t *GetStandardByID_Standard) GetPurposeAndScope() *string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.PurposeAndScope +} +func (t *GetStandardByID_Standard) GetSatisfies() *string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.Satisfies +} +func (t *GetStandardByID_Standard) GetStandardType() *string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.StandardType +} +func (t *GetStandardByID_Standard) GetStatus() *string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.Status +} +func (t *GetStandardByID_Standard) GetTags() []string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.Tags +} +func (t *GetStandardByID_Standard) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.UpdatedAt +} +func (t *GetStandardByID_Standard) GetUpdatedBy() *string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.UpdatedBy +} +func (t *GetStandardByID_Standard) GetVersion() *string { + if t == nil { + t = &GetStandardByID_Standard{} + } + return t.Version +} + +type GetStandards_Standards_Edges_Node struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + StandardType *string "json:\"standardType,omitempty\" graphql:\"standardType\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetStandards_Standards_Edges_Node) GetBackground() *string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.Background +} +func (t *GetStandards_Standards_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetStandards_Standards_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetStandards_Standards_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.Description +} +func (t *GetStandards_Standards_Edges_Node) GetDetails() map[string]interface{} { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.Details +} +func (t *GetStandards_Standards_Edges_Node) GetFamily() *string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.Family +} +func (t *GetStandards_Standards_Edges_Node) GetID() string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.ID +} +func (t *GetStandards_Standards_Edges_Node) GetName() string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.Name +} +func (t *GetStandards_Standards_Edges_Node) GetPurposeAndScope() *string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.PurposeAndScope +} +func (t *GetStandards_Standards_Edges_Node) GetSatisfies() *string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.Satisfies +} +func (t *GetStandards_Standards_Edges_Node) GetStandardType() *string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.StandardType +} +func (t *GetStandards_Standards_Edges_Node) GetStatus() *string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.Status +} +func (t *GetStandards_Standards_Edges_Node) GetTags() []string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.Tags +} +func (t *GetStandards_Standards_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetStandards_Standards_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetStandards_Standards_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetStandards_Standards_Edges_Node{} + } + return t.Version +} + +type GetStandards_Standards_Edges struct { + Node *GetStandards_Standards_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetStandards_Standards_Edges) GetNode() *GetStandards_Standards_Edges_Node { + if t == nil { + t = &GetStandards_Standards_Edges{} + } + return t.Node +} + +type GetStandards_Standards struct { + Edges []*GetStandards_Standards_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetStandards_Standards) GetEdges() []*GetStandards_Standards_Edges { + if t == nil { + t = &GetStandards_Standards{} + } + return t.Edges +} + +type UpdateStandard_UpdateStandard_Standard struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + StandardType *string "json:\"standardType,omitempty\" graphql:\"standardType\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *UpdateStandard_UpdateStandard_Standard) GetBackground() *string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.Background +} +func (t *UpdateStandard_UpdateStandard_Standard) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.CreatedAt +} +func (t *UpdateStandard_UpdateStandard_Standard) GetCreatedBy() *string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.CreatedBy +} +func (t *UpdateStandard_UpdateStandard_Standard) GetDescription() *string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.Description +} +func (t *UpdateStandard_UpdateStandard_Standard) GetDetails() map[string]interface{} { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.Details +} +func (t *UpdateStandard_UpdateStandard_Standard) GetFamily() *string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.Family +} +func (t *UpdateStandard_UpdateStandard_Standard) GetID() string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.ID +} +func (t *UpdateStandard_UpdateStandard_Standard) GetName() string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.Name +} +func (t *UpdateStandard_UpdateStandard_Standard) GetPurposeAndScope() *string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.PurposeAndScope +} +func (t *UpdateStandard_UpdateStandard_Standard) GetSatisfies() *string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.Satisfies +} +func (t *UpdateStandard_UpdateStandard_Standard) GetStandardType() *string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.StandardType +} +func (t *UpdateStandard_UpdateStandard_Standard) GetStatus() *string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.Status +} +func (t *UpdateStandard_UpdateStandard_Standard) GetTags() []string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.Tags +} +func (t *UpdateStandard_UpdateStandard_Standard) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.UpdatedAt +} +func (t *UpdateStandard_UpdateStandard_Standard) GetUpdatedBy() *string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.UpdatedBy +} +func (t *UpdateStandard_UpdateStandard_Standard) GetVersion() *string { + if t == nil { + t = &UpdateStandard_UpdateStandard_Standard{} + } + return t.Version +} + +type UpdateStandard_UpdateStandard struct { + Standard UpdateStandard_UpdateStandard_Standard "json:\"standard\" graphql:\"standard\"" +} + +func (t *UpdateStandard_UpdateStandard) GetStandard() *UpdateStandard_UpdateStandard_Standard { + if t == nil { + t = &UpdateStandard_UpdateStandard{} + } + return &t.Standard +} + +type GetAllStandardHistories_StandardHistories_Edges_Node struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + StandardType *string "json:\"standardType,omitempty\" graphql:\"standardType\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetBackground() *string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.Background +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.Description +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetDetails() map[string]interface{} { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.Details +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetFamily() *string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.Family +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.ID +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetName() string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.Name +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return &t.Operation +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetPurposeAndScope() *string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.PurposeAndScope +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetSatisfies() *string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.Satisfies +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetStandardType() *string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.StandardType +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetStatus() *string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.Status +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetAllStandardHistories_StandardHistories_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges_Node{} + } + return t.Version +} + +type GetAllStandardHistories_StandardHistories_Edges struct { + Node *GetAllStandardHistories_StandardHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllStandardHistories_StandardHistories_Edges) GetNode() *GetAllStandardHistories_StandardHistories_Edges_Node { + if t == nil { + t = &GetAllStandardHistories_StandardHistories_Edges{} + } + return t.Node +} + +type GetAllStandardHistories_StandardHistories struct { + Edges []*GetAllStandardHistories_StandardHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllStandardHistories_StandardHistories) GetEdges() []*GetAllStandardHistories_StandardHistories_Edges { + if t == nil { + t = &GetAllStandardHistories_StandardHistories{} + } + return t.Edges +} + +type GetStandardHistories_StandardHistories_Edges_Node struct { + Background *string "json:\"background,omitempty\" graphql:\"background\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + PurposeAndScope *string "json:\"purposeAndScope,omitempty\" graphql:\"purposeAndScope\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Satisfies *string "json:\"satisfies,omitempty\" graphql:\"satisfies\"" + StandardType *string "json:\"standardType,omitempty\" graphql:\"standardType\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetBackground() *string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.Background +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.Description +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetDetails() map[string]interface{} { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.Details +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetFamily() *string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.Family +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.ID +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetName() string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.Name +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return &t.Operation +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetPurposeAndScope() *string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.PurposeAndScope +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetSatisfies() *string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.Satisfies +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetStandardType() *string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.StandardType +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetStatus() *string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.Status +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetStandardHistories_StandardHistories_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges_Node{} + } + return t.Version +} + +type GetStandardHistories_StandardHistories_Edges struct { + Node *GetStandardHistories_StandardHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetStandardHistories_StandardHistories_Edges) GetNode() *GetStandardHistories_StandardHistories_Edges_Node { + if t == nil { + t = &GetStandardHistories_StandardHistories_Edges{} + } + return t.Node +} + +type GetStandardHistories_StandardHistories struct { + Edges []*GetStandardHistories_StandardHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetStandardHistories_StandardHistories) GetEdges() []*GetStandardHistories_StandardHistories_Edges { + if t == nil { + t = &GetStandardHistories_StandardHistories{} + } + return t.Edges +} + +type CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + ImplementationDate *time.Time "json:\"implementationDate,omitempty\" graphql:\"implementationDate\"" + ImplementationEvidence *string "json:\"implementationEvidence,omitempty\" graphql:\"implementationEvidence\"" + ImplementationStatus *string "json:\"implementationStatus,omitempty\" graphql:\"implementationStatus\"" + ImplementationVerification *string "json:\"implementationVerification,omitempty\" graphql:\"implementationVerification\"" + ImplementationVerificationDate *time.Time "json:\"implementationVerificationDate,omitempty\" graphql:\"implementationVerificationDate\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + SubcontrolNumber *string "json:\"subcontrolNumber,omitempty\" graphql:\"subcontrolNumber\"" + SubcontrolType *string "json:\"subcontrolType,omitempty\" graphql:\"subcontrolType\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetClass() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.Class +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.CreatedAt +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetCreatedBy() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.CreatedBy +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetDescription() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.Description +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetDetails() map[string]interface{} { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.Details +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetFamily() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.Family +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetID() string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.ID +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetImplementationDate() *time.Time { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.ImplementationDate +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetImplementationEvidence() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.ImplementationEvidence +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetImplementationStatus() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.ImplementationStatus +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetImplementationVerification() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.ImplementationVerification +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetImplementationVerificationDate() *time.Time { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.ImplementationVerificationDate +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetMappedFrameworks() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.MappedFrameworks +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetName() string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.Name +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetSource() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.Source +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetStatus() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.Status +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetSubcontrolNumber() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.SubcontrolNumber +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetSubcontrolType() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.SubcontrolType +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetTags() []string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.Tags +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.UpdatedAt +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.UpdatedBy +} +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols) GetVersion() *string { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols{} + } + return t.Version +} + +type CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol struct { + Subcontrols []*CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols "json:\"subcontrols,omitempty\" graphql:\"subcontrols\"" +} + +func (t *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol) GetSubcontrols() []*CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol_Subcontrols { + if t == nil { + t = &CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol{} + } + return t.Subcontrols +} + +type CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + ImplementationDate *time.Time "json:\"implementationDate,omitempty\" graphql:\"implementationDate\"" + ImplementationEvidence *string "json:\"implementationEvidence,omitempty\" graphql:\"implementationEvidence\"" + ImplementationStatus *string "json:\"implementationStatus,omitempty\" graphql:\"implementationStatus\"" + ImplementationVerification *string "json:\"implementationVerification,omitempty\" graphql:\"implementationVerification\"" + ImplementationVerificationDate *time.Time "json:\"implementationVerificationDate,omitempty\" graphql:\"implementationVerificationDate\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + SubcontrolNumber *string "json:\"subcontrolNumber,omitempty\" graphql:\"subcontrolNumber\"" + SubcontrolType *string "json:\"subcontrolType,omitempty\" graphql:\"subcontrolType\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetClass() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.Class +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.CreatedAt +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetCreatedBy() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.CreatedBy +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetDescription() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.Description +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetDetails() map[string]interface{} { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.Details +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetFamily() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.Family +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetID() string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.ID +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetImplementationDate() *time.Time { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.ImplementationDate +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetImplementationEvidence() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.ImplementationEvidence +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetImplementationStatus() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.ImplementationStatus +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetImplementationVerification() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.ImplementationVerification +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetImplementationVerificationDate() *time.Time { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.ImplementationVerificationDate +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetMappedFrameworks() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.MappedFrameworks +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetName() string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.Name +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetSource() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.Source +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetStatus() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.Status +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetSubcontrolNumber() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.SubcontrolNumber +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetSubcontrolType() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.SubcontrolType +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetTags() []string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.Tags +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.UpdatedAt +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.UpdatedBy +} +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols) GetVersion() *string { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols{} + } + return t.Version +} + +type CreateBulkSubcontrol_CreateBulkSubcontrol struct { + Subcontrols []*CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols "json:\"subcontrols,omitempty\" graphql:\"subcontrols\"" +} + +func (t *CreateBulkSubcontrol_CreateBulkSubcontrol) GetSubcontrols() []*CreateBulkSubcontrol_CreateBulkSubcontrol_Subcontrols { + if t == nil { + t = &CreateBulkSubcontrol_CreateBulkSubcontrol{} + } + return t.Subcontrols +} + +type CreateSubcontrol_CreateSubcontrol_Subcontrol struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + ImplementationDate *time.Time "json:\"implementationDate,omitempty\" graphql:\"implementationDate\"" + ImplementationEvidence *string "json:\"implementationEvidence,omitempty\" graphql:\"implementationEvidence\"" + ImplementationStatus *string "json:\"implementationStatus,omitempty\" graphql:\"implementationStatus\"" + ImplementationVerification *string "json:\"implementationVerification,omitempty\" graphql:\"implementationVerification\"" + ImplementationVerificationDate *time.Time "json:\"implementationVerificationDate,omitempty\" graphql:\"implementationVerificationDate\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + SubcontrolNumber *string "json:\"subcontrolNumber,omitempty\" graphql:\"subcontrolNumber\"" + SubcontrolType *string "json:\"subcontrolType,omitempty\" graphql:\"subcontrolType\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetClass() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.Class +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.CreatedAt +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetCreatedBy() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.CreatedBy +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetDescription() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.Description +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetDetails() map[string]interface{} { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.Details +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetFamily() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.Family +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetID() string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.ID +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetImplementationDate() *time.Time { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.ImplementationDate +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetImplementationEvidence() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.ImplementationEvidence +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetImplementationStatus() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.ImplementationStatus +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetImplementationVerification() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.ImplementationVerification +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetImplementationVerificationDate() *time.Time { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.ImplementationVerificationDate +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetMappedFrameworks() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.MappedFrameworks +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetName() string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.Name +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetSource() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.Source +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetStatus() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.Status +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetSubcontrolNumber() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.SubcontrolNumber +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetSubcontrolType() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.SubcontrolType +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetTags() []string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.Tags +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.UpdatedAt +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetUpdatedBy() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.UpdatedBy +} +func (t *CreateSubcontrol_CreateSubcontrol_Subcontrol) GetVersion() *string { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol_Subcontrol{} + } + return t.Version +} + +type CreateSubcontrol_CreateSubcontrol struct { + Subcontrol CreateSubcontrol_CreateSubcontrol_Subcontrol "json:\"subcontrol\" graphql:\"subcontrol\"" +} + +func (t *CreateSubcontrol_CreateSubcontrol) GetSubcontrol() *CreateSubcontrol_CreateSubcontrol_Subcontrol { + if t == nil { + t = &CreateSubcontrol_CreateSubcontrol{} + } + return &t.Subcontrol +} + +type DeleteSubcontrol_DeleteSubcontrol struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +} + +func (t *DeleteSubcontrol_DeleteSubcontrol) GetDeletedID() string { + if t == nil { + t = &DeleteSubcontrol_DeleteSubcontrol{} + } + return t.DeletedID +} + +type GetAllSubcontrols_Subcontrols_Edges_Node struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + ImplementationDate *time.Time "json:\"implementationDate,omitempty\" graphql:\"implementationDate\"" + ImplementationEvidence *string "json:\"implementationEvidence,omitempty\" graphql:\"implementationEvidence\"" + ImplementationStatus *string "json:\"implementationStatus,omitempty\" graphql:\"implementationStatus\"" + ImplementationVerification *string "json:\"implementationVerification,omitempty\" graphql:\"implementationVerification\"" + ImplementationVerificationDate *time.Time "json:\"implementationVerificationDate,omitempty\" graphql:\"implementationVerificationDate\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + SubcontrolNumber *string "json:\"subcontrolNumber,omitempty\" graphql:\"subcontrolNumber\"" + SubcontrolType *string "json:\"subcontrolType,omitempty\" graphql:\"subcontrolType\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetClass() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.Class +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.Description +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetDetails() map[string]interface{} { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.Details +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetFamily() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.Family +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetID() string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.ID +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetImplementationDate() *time.Time { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.ImplementationDate +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetImplementationEvidence() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.ImplementationEvidence +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetImplementationStatus() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.ImplementationStatus +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetImplementationVerification() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.ImplementationVerification +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetImplementationVerificationDate() *time.Time { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.ImplementationVerificationDate +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetMappedFrameworks() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.MappedFrameworks +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetName() string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.Name +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetSource() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.Source +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetStatus() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.Status +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetSubcontrolNumber() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.SubcontrolNumber +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetSubcontrolType() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.SubcontrolType +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.Tags +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetAllSubcontrols_Subcontrols_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges_Node{} + } + return t.Version +} + +type GetAllSubcontrols_Subcontrols_Edges struct { + Node *GetAllSubcontrols_Subcontrols_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllSubcontrols_Subcontrols_Edges) GetNode() *GetAllSubcontrols_Subcontrols_Edges_Node { + if t == nil { + t = &GetAllSubcontrols_Subcontrols_Edges{} + } + return t.Node +} + +type GetAllSubcontrols_Subcontrols struct { + Edges []*GetAllSubcontrols_Subcontrols_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllSubcontrols_Subcontrols) GetEdges() []*GetAllSubcontrols_Subcontrols_Edges { + if t == nil { + t = &GetAllSubcontrols_Subcontrols{} + } + return t.Edges +} + +type GetSubcontrolByID_Subcontrol struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + ImplementationDate *time.Time "json:\"implementationDate,omitempty\" graphql:\"implementationDate\"" + ImplementationEvidence *string "json:\"implementationEvidence,omitempty\" graphql:\"implementationEvidence\"" + ImplementationStatus *string "json:\"implementationStatus,omitempty\" graphql:\"implementationStatus\"" + ImplementationVerification *string "json:\"implementationVerification,omitempty\" graphql:\"implementationVerification\"" + ImplementationVerificationDate *time.Time "json:\"implementationVerificationDate,omitempty\" graphql:\"implementationVerificationDate\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + SubcontrolNumber *string "json:\"subcontrolNumber,omitempty\" graphql:\"subcontrolNumber\"" + SubcontrolType *string "json:\"subcontrolType,omitempty\" graphql:\"subcontrolType\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetSubcontrolByID_Subcontrol) GetClass() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.Class +} +func (t *GetSubcontrolByID_Subcontrol) GetCreatedAt() *time.Time { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.CreatedAt +} +func (t *GetSubcontrolByID_Subcontrol) GetCreatedBy() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.CreatedBy +} +func (t *GetSubcontrolByID_Subcontrol) GetDescription() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.Description +} +func (t *GetSubcontrolByID_Subcontrol) GetDetails() map[string]interface{} { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.Details +} +func (t *GetSubcontrolByID_Subcontrol) GetFamily() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.Family +} +func (t *GetSubcontrolByID_Subcontrol) GetID() string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.ID +} +func (t *GetSubcontrolByID_Subcontrol) GetImplementationDate() *time.Time { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.ImplementationDate +} +func (t *GetSubcontrolByID_Subcontrol) GetImplementationEvidence() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.ImplementationEvidence +} +func (t *GetSubcontrolByID_Subcontrol) GetImplementationStatus() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.ImplementationStatus +} +func (t *GetSubcontrolByID_Subcontrol) GetImplementationVerification() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.ImplementationVerification +} +func (t *GetSubcontrolByID_Subcontrol) GetImplementationVerificationDate() *time.Time { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.ImplementationVerificationDate +} +func (t *GetSubcontrolByID_Subcontrol) GetMappedFrameworks() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.MappedFrameworks +} +func (t *GetSubcontrolByID_Subcontrol) GetName() string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.Name +} +func (t *GetSubcontrolByID_Subcontrol) GetSource() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.Source +} +func (t *GetSubcontrolByID_Subcontrol) GetStatus() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.Status +} +func (t *GetSubcontrolByID_Subcontrol) GetSubcontrolNumber() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.SubcontrolNumber +} +func (t *GetSubcontrolByID_Subcontrol) GetSubcontrolType() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.SubcontrolType +} +func (t *GetSubcontrolByID_Subcontrol) GetTags() []string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.Tags +} +func (t *GetSubcontrolByID_Subcontrol) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.UpdatedAt +} +func (t *GetSubcontrolByID_Subcontrol) GetUpdatedBy() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.UpdatedBy +} +func (t *GetSubcontrolByID_Subcontrol) GetVersion() *string { + if t == nil { + t = &GetSubcontrolByID_Subcontrol{} + } + return t.Version +} + +type GetSubcontrols_Subcontrols_Edges_Node struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + ImplementationDate *time.Time "json:\"implementationDate,omitempty\" graphql:\"implementationDate\"" + ImplementationEvidence *string "json:\"implementationEvidence,omitempty\" graphql:\"implementationEvidence\"" + ImplementationStatus *string "json:\"implementationStatus,omitempty\" graphql:\"implementationStatus\"" + ImplementationVerification *string "json:\"implementationVerification,omitempty\" graphql:\"implementationVerification\"" + ImplementationVerificationDate *time.Time "json:\"implementationVerificationDate,omitempty\" graphql:\"implementationVerificationDate\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + SubcontrolNumber *string "json:\"subcontrolNumber,omitempty\" graphql:\"subcontrolNumber\"" + SubcontrolType *string "json:\"subcontrolType,omitempty\" graphql:\"subcontrolType\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetClass() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.Class +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.Description +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetDetails() map[string]interface{} { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.Details +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetFamily() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.Family +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetID() string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.ID +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetImplementationDate() *time.Time { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.ImplementationDate +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetImplementationEvidence() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.ImplementationEvidence +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetImplementationStatus() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.ImplementationStatus +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetImplementationVerification() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.ImplementationVerification +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetImplementationVerificationDate() *time.Time { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.ImplementationVerificationDate +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetMappedFrameworks() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.MappedFrameworks +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetName() string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.Name +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetSource() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.Source +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetStatus() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.Status +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetSubcontrolNumber() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.SubcontrolNumber +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetSubcontrolType() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.SubcontrolType +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetTags() []string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.Tags +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetSubcontrols_Subcontrols_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges_Node{} + } + return t.Version +} + +type GetSubcontrols_Subcontrols_Edges struct { + Node *GetSubcontrols_Subcontrols_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetSubcontrols_Subcontrols_Edges) GetNode() *GetSubcontrols_Subcontrols_Edges_Node { + if t == nil { + t = &GetSubcontrols_Subcontrols_Edges{} + } + return t.Node +} + +type GetSubcontrols_Subcontrols struct { + Edges []*GetSubcontrols_Subcontrols_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetSubcontrols_Subcontrols) GetEdges() []*GetSubcontrols_Subcontrols_Edges { + if t == nil { + t = &GetSubcontrols_Subcontrols{} + } + return t.Edges +} + +type UpdateSubcontrol_UpdateSubcontrol_Subcontrol struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + ID string "json:\"id\" graphql:\"id\"" + ImplementationDate *time.Time "json:\"implementationDate,omitempty\" graphql:\"implementationDate\"" + ImplementationEvidence *string "json:\"implementationEvidence,omitempty\" graphql:\"implementationEvidence\"" + ImplementationStatus *string "json:\"implementationStatus,omitempty\" graphql:\"implementationStatus\"" + ImplementationVerification *string "json:\"implementationVerification,omitempty\" graphql:\"implementationVerification\"" + ImplementationVerificationDate *time.Time "json:\"implementationVerificationDate,omitempty\" graphql:\"implementationVerificationDate\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + SubcontrolNumber *string "json:\"subcontrolNumber,omitempty\" graphql:\"subcontrolNumber\"" + SubcontrolType *string "json:\"subcontrolType,omitempty\" graphql:\"subcontrolType\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetClass() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.Class +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.CreatedAt +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetCreatedBy() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.CreatedBy +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetDescription() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.Description +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetDetails() map[string]interface{} { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.Details +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetFamily() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.Family +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetID() string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.ID +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetImplementationDate() *time.Time { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.ImplementationDate +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetImplementationEvidence() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.ImplementationEvidence +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetImplementationStatus() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.ImplementationStatus +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetImplementationVerification() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.ImplementationVerification +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetImplementationVerificationDate() *time.Time { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.ImplementationVerificationDate +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetMappedFrameworks() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.MappedFrameworks +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetName() string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.Name +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetSource() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.Source +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetStatus() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.Status +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetSubcontrolNumber() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.SubcontrolNumber +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetSubcontrolType() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.SubcontrolType +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetTags() []string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.Tags +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.UpdatedAt +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetUpdatedBy() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.UpdatedBy +} +func (t *UpdateSubcontrol_UpdateSubcontrol_Subcontrol) GetVersion() *string { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol_Subcontrol{} + } + return t.Version +} + +type UpdateSubcontrol_UpdateSubcontrol struct { + Subcontrol UpdateSubcontrol_UpdateSubcontrol_Subcontrol "json:\"subcontrol\" graphql:\"subcontrol\"" +} + +func (t *UpdateSubcontrol_UpdateSubcontrol) GetSubcontrol() *UpdateSubcontrol_UpdateSubcontrol_Subcontrol { + if t == nil { + t = &UpdateSubcontrol_UpdateSubcontrol{} + } + return &t.Subcontrol +} + +type GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + ImplementationDate *time.Time "json:\"implementationDate,omitempty\" graphql:\"implementationDate\"" + ImplementationEvidence *string "json:\"implementationEvidence,omitempty\" graphql:\"implementationEvidence\"" + ImplementationStatus *string "json:\"implementationStatus,omitempty\" graphql:\"implementationStatus\"" + ImplementationVerification *string "json:\"implementationVerification,omitempty\" graphql:\"implementationVerification\"" + ImplementationVerificationDate *time.Time "json:\"implementationVerificationDate,omitempty\" graphql:\"implementationVerificationDate\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + SubcontrolNumber *string "json:\"subcontrolNumber,omitempty\" graphql:\"subcontrolNumber\"" + SubcontrolType *string "json:\"subcontrolType,omitempty\" graphql:\"subcontrolType\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetClass() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Class +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Description +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetDetails() map[string]interface{} { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Details +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetFamily() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Family +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.ID +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetImplementationDate() *time.Time { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.ImplementationDate +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetImplementationEvidence() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.ImplementationEvidence +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetImplementationStatus() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.ImplementationStatus +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetImplementationVerification() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.ImplementationVerification +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetImplementationVerificationDate() *time.Time { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.ImplementationVerificationDate +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetMappedFrameworks() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.MappedFrameworks +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetName() string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Name +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return &t.Operation +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetSource() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Source +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetStatus() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Status +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetSubcontrolNumber() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.SubcontrolNumber +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetSubcontrolType() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.SubcontrolType +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Version +} + +type GetAllSubcontrolHistories_SubcontrolHistories_Edges struct { + Node *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllSubcontrolHistories_SubcontrolHistories_Edges) GetNode() *GetAllSubcontrolHistories_SubcontrolHistories_Edges_Node { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories_Edges{} + } + return t.Node +} + +type GetAllSubcontrolHistories_SubcontrolHistories struct { + Edges []*GetAllSubcontrolHistories_SubcontrolHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllSubcontrolHistories_SubcontrolHistories) GetEdges() []*GetAllSubcontrolHistories_SubcontrolHistories_Edges { + if t == nil { + t = &GetAllSubcontrolHistories_SubcontrolHistories{} + } + return t.Edges +} + +type GetSubcontrolHistories_SubcontrolHistories_Edges_Node struct { + Class *string "json:\"class,omitempty\" graphql:\"class\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + Details map[string]interface{} "json:\"details,omitempty\" graphql:\"details\"" + Family *string "json:\"family,omitempty\" graphql:\"family\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + ImplementationDate *time.Time "json:\"implementationDate,omitempty\" graphql:\"implementationDate\"" + ImplementationEvidence *string "json:\"implementationEvidence,omitempty\" graphql:\"implementationEvidence\"" + ImplementationStatus *string "json:\"implementationStatus,omitempty\" graphql:\"implementationStatus\"" + ImplementationVerification *string "json:\"implementationVerification,omitempty\" graphql:\"implementationVerification\"" + ImplementationVerificationDate *time.Time "json:\"implementationVerificationDate,omitempty\" graphql:\"implementationVerificationDate\"" + MappedFrameworks *string "json:\"mappedFrameworks,omitempty\" graphql:\"mappedFrameworks\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Source *string "json:\"source,omitempty\" graphql:\"source\"" + Status *string "json:\"status,omitempty\" graphql:\"status\"" + SubcontrolNumber *string "json:\"subcontrolNumber,omitempty\" graphql:\"subcontrolNumber\"" + SubcontrolType *string "json:\"subcontrolType,omitempty\" graphql:\"subcontrolType\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Version *string "json:\"version,omitempty\" graphql:\"version\"" +} + +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetClass() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Class +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Description +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetDetails() map[string]interface{} { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Details +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetFamily() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Family +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.ID +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetImplementationDate() *time.Time { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.ImplementationDate +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetImplementationEvidence() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.ImplementationEvidence +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetImplementationStatus() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.ImplementationStatus +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetImplementationVerification() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.ImplementationVerification +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetImplementationVerificationDate() *time.Time { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.ImplementationVerificationDate +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetMappedFrameworks() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.MappedFrameworks +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetName() string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Name +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return &t.Operation +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetSource() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Source +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetStatus() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Status +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetSubcontrolNumber() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.SubcontrolNumber +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetSubcontrolType() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.SubcontrolType +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges_Node) GetVersion() *string { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges_Node{} + } + return t.Version +} + +type GetSubcontrolHistories_SubcontrolHistories_Edges struct { + Node *GetSubcontrolHistories_SubcontrolHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetSubcontrolHistories_SubcontrolHistories_Edges) GetNode() *GetSubcontrolHistories_SubcontrolHistories_Edges_Node { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories_Edges{} + } + return t.Node +} + +type GetSubcontrolHistories_SubcontrolHistories struct { + Edges []*GetSubcontrolHistories_SubcontrolHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetSubcontrolHistories_SubcontrolHistories) GetEdges() []*GetSubcontrolHistories_SubcontrolHistories_Edges { + if t == nil { + t = &GetSubcontrolHistories_SubcontrolHistories{} + } + return t.Edges +} + +type CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers struct { + Active bool "json:\"active\" graphql:\"active\"" + Email string "json:\"email\" graphql:\"email\"" + ID string "json:\"id\" graphql:\"id\"" + VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" +} + +func (t *CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers) GetActive() bool { + if t == nil { + t = &CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers{} + } + return t.Active +} +func (t *CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers) GetEmail() string { + if t == nil { + t = &CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers{} + } + return t.Email +} +func (t *CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers) GetID() string { + if t == nil { + t = &CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers{} + } + return t.ID +} +func (t *CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers) GetVerifiedEmail() bool { + if t == nil { + t = &CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers{} + } + return t.VerifiedEmail +} + +type CreateBulkCSVSubscriber_CreateBulkCSVSubscriber struct { + Subscribers []*CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers "json:\"subscribers,omitempty\" graphql:\"subscribers\"" +} + +func (t *CreateBulkCSVSubscriber_CreateBulkCSVSubscriber) GetSubscribers() []*CreateBulkCSVSubscriber_CreateBulkCSVSubscriber_Subscribers { + if t == nil { + t = &CreateBulkCSVSubscriber_CreateBulkCSVSubscriber{} + } + return t.Subscribers +} + +type CreateBulkSubscriber_CreateBulkSubscriber_Subscribers struct { + Active bool "json:\"active\" graphql:\"active\"" + Email string "json:\"email\" graphql:\"email\"" + ID string "json:\"id\" graphql:\"id\"" + VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" +} + +func (t *CreateBulkSubscriber_CreateBulkSubscriber_Subscribers) GetActive() bool { + if t == nil { + t = &CreateBulkSubscriber_CreateBulkSubscriber_Subscribers{} + } + return t.Active +} +func (t *CreateBulkSubscriber_CreateBulkSubscriber_Subscribers) GetEmail() string { + if t == nil { + t = &CreateBulkSubscriber_CreateBulkSubscriber_Subscribers{} + } + return t.Email +} +func (t *CreateBulkSubscriber_CreateBulkSubscriber_Subscribers) GetID() string { + if t == nil { + t = &CreateBulkSubscriber_CreateBulkSubscriber_Subscribers{} + } + return t.ID +} +func (t *CreateBulkSubscriber_CreateBulkSubscriber_Subscribers) GetVerifiedEmail() bool { + if t == nil { + t = &CreateBulkSubscriber_CreateBulkSubscriber_Subscribers{} + } + return t.VerifiedEmail +} + +type CreateBulkSubscriber_CreateBulkSubscriber struct { + Subscribers []*CreateBulkSubscriber_CreateBulkSubscriber_Subscribers "json:\"subscribers,omitempty\" graphql:\"subscribers\"" +} + +func (t *CreateBulkSubscriber_CreateBulkSubscriber) GetSubscribers() []*CreateBulkSubscriber_CreateBulkSubscriber_Subscribers { + if t == nil { + t = &CreateBulkSubscriber_CreateBulkSubscriber{} + } + return t.Subscribers +} + +type CreateSubscriber_CreateSubscriber_Subscriber struct { + Active bool "json:\"active\" graphql:\"active\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Email string "json:\"email\" graphql:\"email\"" + ID string "json:\"id\" graphql:\"id\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" +} + +func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetActive() bool { + if t == nil { + t = &CreateSubscriber_CreateSubscriber_Subscriber{} + } + return t.Active +} +func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateSubscriber_CreateSubscriber_Subscriber{} + } + return t.CreatedAt +} +func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetCreatedBy() *string { + if t == nil { + t = &CreateSubscriber_CreateSubscriber_Subscriber{} + } + return t.CreatedBy +} +func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetEmail() string { + if t == nil { + t = &CreateSubscriber_CreateSubscriber_Subscriber{} + } + return t.Email +} +func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetID() string { + if t == nil { + t = &CreateSubscriber_CreateSubscriber_Subscriber{} + } + return t.ID +} +func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateSubscriber_CreateSubscriber_Subscriber{} + } + return t.UpdatedAt +} +func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetUpdatedBy() *string { + if t == nil { + t = &CreateSubscriber_CreateSubscriber_Subscriber{} + } + return t.UpdatedBy +} +func (t *CreateSubscriber_CreateSubscriber_Subscriber) GetVerifiedEmail() bool { + if t == nil { + t = &CreateSubscriber_CreateSubscriber_Subscriber{} + } + return t.VerifiedEmail +} + +type CreateSubscriber_CreateSubscriber struct { + Subscriber CreateSubscriber_CreateSubscriber_Subscriber "json:\"subscriber\" graphql:\"subscriber\"" +} + +func (t *CreateSubscriber_CreateSubscriber) GetSubscriber() *CreateSubscriber_CreateSubscriber_Subscriber { + if t == nil { + t = &CreateSubscriber_CreateSubscriber{} + } + return &t.Subscriber +} + +type DeleteSubscriber_DeleteSubscriber struct { + Email string "json:\"email\" graphql:\"email\"" +} + +func (t *DeleteSubscriber_DeleteSubscriber) GetEmail() string { + if t == nil { + t = &DeleteSubscriber_DeleteSubscriber{} + } + return t.Email +} + +type GetAllSubscribers_Subscribers_Edges_Node struct { + Active bool "json:\"active\" graphql:\"active\"" + Email string "json:\"email\" graphql:\"email\"" + ID string "json:\"id\" graphql:\"id\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" +} + +func (t *GetAllSubscribers_Subscribers_Edges_Node) GetActive() bool { + if t == nil { + t = &GetAllSubscribers_Subscribers_Edges_Node{} + } + return t.Active +} +func (t *GetAllSubscribers_Subscribers_Edges_Node) GetEmail() string { + if t == nil { + t = &GetAllSubscribers_Subscribers_Edges_Node{} + } + return t.Email +} +func (t *GetAllSubscribers_Subscribers_Edges_Node) GetID() string { + if t == nil { + t = &GetAllSubscribers_Subscribers_Edges_Node{} + } + return t.ID +} +func (t *GetAllSubscribers_Subscribers_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetAllSubscribers_Subscribers_Edges_Node{} + } + return t.OwnerID +} +func (t *GetAllSubscribers_Subscribers_Edges_Node) GetVerifiedEmail() bool { + if t == nil { + t = &GetAllSubscribers_Subscribers_Edges_Node{} + } + return t.VerifiedEmail +} + +type GetAllSubscribers_Subscribers_Edges struct { + Node *GetAllSubscribers_Subscribers_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllSubscribers_Subscribers_Edges) GetNode() *GetAllSubscribers_Subscribers_Edges_Node { + if t == nil { + t = &GetAllSubscribers_Subscribers_Edges{} + } + return t.Node +} + +type GetAllSubscribers_Subscribers struct { + Edges []*GetAllSubscribers_Subscribers_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllSubscribers_Subscribers) GetEdges() []*GetAllSubscribers_Subscribers_Edges { + if t == nil { + t = &GetAllSubscribers_Subscribers{} + } + return t.Edges +} + +type GetSubscriberByEmail_Subscriber struct { + Active bool "json:\"active\" graphql:\"active\"" + Email string "json:\"email\" graphql:\"email\"" + ID string "json:\"id\" graphql:\"id\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" +} + +func (t *GetSubscriberByEmail_Subscriber) GetActive() bool { + if t == nil { + t = &GetSubscriberByEmail_Subscriber{} + } + return t.Active +} +func (t *GetSubscriberByEmail_Subscriber) GetEmail() string { + if t == nil { + t = &GetSubscriberByEmail_Subscriber{} + } + return t.Email +} +func (t *GetSubscriberByEmail_Subscriber) GetID() string { + if t == nil { + t = &GetSubscriberByEmail_Subscriber{} + } + return t.ID +} +func (t *GetSubscriberByEmail_Subscriber) GetOwnerID() *string { + if t == nil { + t = &GetSubscriberByEmail_Subscriber{} + } + return t.OwnerID +} +func (t *GetSubscriberByEmail_Subscriber) GetVerifiedEmail() bool { + if t == nil { + t = &GetSubscriberByEmail_Subscriber{} + } + return t.VerifiedEmail +} + +type GetSubscribers_Subscribers_Edges_Node struct { + Active bool "json:\"active\" graphql:\"active\"" + Email string "json:\"email\" graphql:\"email\"" + ID string "json:\"id\" graphql:\"id\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" +} + +func (t *GetSubscribers_Subscribers_Edges_Node) GetActive() bool { + if t == nil { + t = &GetSubscribers_Subscribers_Edges_Node{} + } + return t.Active +} +func (t *GetSubscribers_Subscribers_Edges_Node) GetEmail() string { + if t == nil { + t = &GetSubscribers_Subscribers_Edges_Node{} + } + return t.Email +} +func (t *GetSubscribers_Subscribers_Edges_Node) GetID() string { + if t == nil { + t = &GetSubscribers_Subscribers_Edges_Node{} + } + return t.ID +} +func (t *GetSubscribers_Subscribers_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetSubscribers_Subscribers_Edges_Node{} + } + return t.OwnerID +} +func (t *GetSubscribers_Subscribers_Edges_Node) GetVerifiedEmail() bool { + if t == nil { + t = &GetSubscribers_Subscribers_Edges_Node{} + } + return t.VerifiedEmail +} + +type GetSubscribers_Subscribers_Edges struct { + Node *GetSubscribers_Subscribers_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetSubscribers_Subscribers_Edges) GetNode() *GetSubscribers_Subscribers_Edges_Node { + if t == nil { + t = &GetSubscribers_Subscribers_Edges{} + } + return t.Node +} + +type GetSubscribers_Subscribers struct { + Edges []*GetSubscribers_Subscribers_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetSubscribers_Subscribers) GetEdges() []*GetSubscribers_Subscribers_Edges { + if t == nil { + t = &GetSubscribers_Subscribers{} + } + return t.Edges +} + +type UpdateSubscriber_UpdateSubscriber_Subscriber struct { + Active bool "json:\"active\" graphql:\"active\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Email string "json:\"email\" graphql:\"email\"" + ID string "json:\"id\" graphql:\"id\"" + PhoneNumber *string "json:\"phoneNumber,omitempty\" graphql:\"phoneNumber\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + VerifiedEmail bool "json:\"verifiedEmail\" graphql:\"verifiedEmail\"" + VerifiedPhone bool "json:\"verifiedPhone\" graphql:\"verifiedPhone\"" +} + +func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetActive() bool { + if t == nil { + t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + } + return t.Active +} +func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + } + return t.CreatedAt +} +func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetCreatedBy() *string { + if t == nil { + t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + } + return t.CreatedBy +} +func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetEmail() string { + if t == nil { + t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + } + return t.Email +} +func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetID() string { + if t == nil { + t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + } + return t.ID +} +func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetPhoneNumber() *string { + if t == nil { + t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + } + return t.PhoneNumber +} +func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + } + return t.UpdatedAt +} +func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetUpdatedBy() *string { + if t == nil { + t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + } + return t.UpdatedBy +} +func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetVerifiedEmail() bool { + if t == nil { + t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + } + return t.VerifiedEmail +} +func (t *UpdateSubscriber_UpdateSubscriber_Subscriber) GetVerifiedPhone() bool { + if t == nil { + t = &UpdateSubscriber_UpdateSubscriber_Subscriber{} + } + return t.VerifiedPhone +} + +type UpdateSubscriber_UpdateSubscriber struct { + Subscriber UpdateSubscriber_UpdateSubscriber_Subscriber "json:\"subscriber\" graphql:\"subscriber\"" +} + +func (t *UpdateSubscriber_UpdateSubscriber) GetSubscriber() *UpdateSubscriber_UpdateSubscriber_Subscriber { + if t == nil { + t = &UpdateSubscriber_UpdateSubscriber{} + } + return &t.Subscriber +} + +type CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates_Owner struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates_Owner) GetID() string { + if t == nil { + t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates_Owner{} + } + return t.ID +} + +type CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" + Name string "json:\"name\" graphql:\"name\"" + Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" + Owner *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +} + +func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates) GetDescription() *string { + if t == nil { + t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates{} + } + return t.Description +} +func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates) GetID() string { + if t == nil { + t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates{} + } + return t.ID +} +func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates) GetJsonconfig() *json.RawMessage { + if t == nil { + t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates{} + } + return &t.Jsonconfig +} +func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates) GetName() string { + if t == nil { + t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates{} + } + return t.Name +} +func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates) GetUischema() *json.RawMessage { + if t == nil { + t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates{} + } + return &t.Uischema +} +func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates) GetOwner() *CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates_Owner { + if t == nil { + t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates{} + } + return t.Owner +} + +type CreateBulkCSVTemplate_CreateBulkCSVTemplate struct { + Templates []*CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates "json:\"templates,omitempty\" graphql:\"templates\"" +} + +func (t *CreateBulkCSVTemplate_CreateBulkCSVTemplate) GetTemplates() []*CreateBulkCSVTemplate_CreateBulkCSVTemplate_Templates { + if t == nil { + t = &CreateBulkCSVTemplate_CreateBulkCSVTemplate{} + } + return t.Templates +} + +type CreateBulkTemplate_CreateBulkTemplate_Templates_Owner struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *CreateBulkTemplate_CreateBulkTemplate_Templates_Owner) GetID() string { + if t == nil { + t = &CreateBulkTemplate_CreateBulkTemplate_Templates_Owner{} + } + return t.ID +} + +type CreateBulkTemplate_CreateBulkTemplate_Templates struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" + Name string "json:\"name\" graphql:\"name\"" + Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" + Owner *CreateBulkTemplate_CreateBulkTemplate_Templates_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +} + +func (t *CreateBulkTemplate_CreateBulkTemplate_Templates) GetDescription() *string { + if t == nil { + t = &CreateBulkTemplate_CreateBulkTemplate_Templates{} + } + return t.Description +} +func (t *CreateBulkTemplate_CreateBulkTemplate_Templates) GetID() string { + if t == nil { + t = &CreateBulkTemplate_CreateBulkTemplate_Templates{} + } + return t.ID +} +func (t *CreateBulkTemplate_CreateBulkTemplate_Templates) GetJsonconfig() *json.RawMessage { + if t == nil { + t = &CreateBulkTemplate_CreateBulkTemplate_Templates{} + } + return &t.Jsonconfig +} +func (t *CreateBulkTemplate_CreateBulkTemplate_Templates) GetName() string { + if t == nil { + t = &CreateBulkTemplate_CreateBulkTemplate_Templates{} + } + return t.Name +} +func (t *CreateBulkTemplate_CreateBulkTemplate_Templates) GetUischema() *json.RawMessage { + if t == nil { + t = &CreateBulkTemplate_CreateBulkTemplate_Templates{} + } + return &t.Uischema +} +func (t *CreateBulkTemplate_CreateBulkTemplate_Templates) GetOwner() *CreateBulkTemplate_CreateBulkTemplate_Templates_Owner { + if t == nil { + t = &CreateBulkTemplate_CreateBulkTemplate_Templates{} + } + return t.Owner +} + +type CreateBulkTemplate_CreateBulkTemplate struct { + Templates []*CreateBulkTemplate_CreateBulkTemplate_Templates "json:\"templates,omitempty\" graphql:\"templates\"" +} + +func (t *CreateBulkTemplate_CreateBulkTemplate) GetTemplates() []*CreateBulkTemplate_CreateBulkTemplate_Templates { + if t == nil { + t = &CreateBulkTemplate_CreateBulkTemplate{} + } + return t.Templates +} + +type CreateTemplate_CreateTemplate_Template_Owner struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *CreateTemplate_CreateTemplate_Template_Owner) GetID() string { + if t == nil { + t = &CreateTemplate_CreateTemplate_Template_Owner{} + } + return t.ID +} + +type CreateTemplate_CreateTemplate_Template struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" + Name string "json:\"name\" graphql:\"name\"" + Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" + Owner *CreateTemplate_CreateTemplate_Template_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +} + +func (t *CreateTemplate_CreateTemplate_Template) GetDescription() *string { + if t == nil { + t = &CreateTemplate_CreateTemplate_Template{} + } + return t.Description +} +func (t *CreateTemplate_CreateTemplate_Template) GetID() string { + if t == nil { + t = &CreateTemplate_CreateTemplate_Template{} + } + return t.ID +} +func (t *CreateTemplate_CreateTemplate_Template) GetJsonconfig() *json.RawMessage { + if t == nil { + t = &CreateTemplate_CreateTemplate_Template{} + } + return &t.Jsonconfig +} +func (t *CreateTemplate_CreateTemplate_Template) GetName() string { + if t == nil { + t = &CreateTemplate_CreateTemplate_Template{} + } + return t.Name +} +func (t *CreateTemplate_CreateTemplate_Template) GetUischema() *json.RawMessage { + if t == nil { + t = &CreateTemplate_CreateTemplate_Template{} + } + return &t.Uischema +} +func (t *CreateTemplate_CreateTemplate_Template) GetOwner() *CreateTemplate_CreateTemplate_Template_Owner { + if t == nil { + t = &CreateTemplate_CreateTemplate_Template{} + } + return t.Owner +} + +type CreateTemplate_CreateTemplate struct { + Template CreateTemplate_CreateTemplate_Template "json:\"template\" graphql:\"template\"" +} + +func (t *CreateTemplate_CreateTemplate) GetTemplate() *CreateTemplate_CreateTemplate_Template { + if t == nil { + t = &CreateTemplate_CreateTemplate{} + } + return &t.Template +} + +type GetAllTemplates_Templates_Edges_Node_Owner struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetAllTemplates_Templates_Edges_Node_Owner) GetID() string { + if t == nil { + t = &GetAllTemplates_Templates_Edges_Node_Owner{} + } + return t.ID +} + +type GetAllTemplates_Templates_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" + Name string "json:\"name\" graphql:\"name\"" + Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Owner *GetAllTemplates_Templates_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +} + +func (t *GetAllTemplates_Templates_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllTemplates_Templates_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllTemplates_Templates_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllTemplates_Templates_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllTemplates_Templates_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllTemplates_Templates_Edges_Node{} + } + return t.Description +} +func (t *GetAllTemplates_Templates_Edges_Node) GetID() string { + if t == nil { + t = &GetAllTemplates_Templates_Edges_Node{} + } + return t.ID +} +func (t *GetAllTemplates_Templates_Edges_Node) GetJsonconfig() *json.RawMessage { + if t == nil { + t = &GetAllTemplates_Templates_Edges_Node{} + } + return &t.Jsonconfig +} +func (t *GetAllTemplates_Templates_Edges_Node) GetName() string { + if t == nil { + t = &GetAllTemplates_Templates_Edges_Node{} + } + return t.Name +} +func (t *GetAllTemplates_Templates_Edges_Node) GetUischema() *json.RawMessage { + if t == nil { + t = &GetAllTemplates_Templates_Edges_Node{} + } + return &t.Uischema +} +func (t *GetAllTemplates_Templates_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllTemplates_Templates_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllTemplates_Templates_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllTemplates_Templates_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetAllTemplates_Templates_Edges_Node) GetOwner() *GetAllTemplates_Templates_Edges_Node_Owner { + if t == nil { + t = &GetAllTemplates_Templates_Edges_Node{} + } + return t.Owner +} + +type GetAllTemplates_Templates_Edges struct { + Node *GetAllTemplates_Templates_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllTemplates_Templates_Edges) GetNode() *GetAllTemplates_Templates_Edges_Node { + if t == nil { + t = &GetAllTemplates_Templates_Edges{} + } + return t.Node +} + +type GetAllTemplates_Templates struct { + Edges []*GetAllTemplates_Templates_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllTemplates_Templates) GetEdges() []*GetAllTemplates_Templates_Edges { + if t == nil { + t = &GetAllTemplates_Templates{} + } + return t.Edges +} + +type GetTemplateByID_Template_Owner struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetTemplateByID_Template_Owner) GetID() string { + if t == nil { + t = &GetTemplateByID_Template_Owner{} + } + return t.ID +} + +type GetTemplateByID_Template struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" + Name string "json:\"name\" graphql:\"name\"" + Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Owner *GetTemplateByID_Template_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +} + +func (t *GetTemplateByID_Template) GetCreatedAt() *time.Time { + if t == nil { + t = &GetTemplateByID_Template{} + } + return t.CreatedAt +} +func (t *GetTemplateByID_Template) GetCreatedBy() *string { + if t == nil { + t = &GetTemplateByID_Template{} + } + return t.CreatedBy +} +func (t *GetTemplateByID_Template) GetDescription() *string { + if t == nil { + t = &GetTemplateByID_Template{} + } + return t.Description +} +func (t *GetTemplateByID_Template) GetID() string { + if t == nil { + t = &GetTemplateByID_Template{} + } + return t.ID +} +func (t *GetTemplateByID_Template) GetJsonconfig() *json.RawMessage { + if t == nil { + t = &GetTemplateByID_Template{} + } + return &t.Jsonconfig +} +func (t *GetTemplateByID_Template) GetName() string { + if t == nil { + t = &GetTemplateByID_Template{} + } + return t.Name +} +func (t *GetTemplateByID_Template) GetUischema() *json.RawMessage { + if t == nil { + t = &GetTemplateByID_Template{} + } + return &t.Uischema +} +func (t *GetTemplateByID_Template) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetTemplateByID_Template{} + } + return t.UpdatedAt +} +func (t *GetTemplateByID_Template) GetUpdatedBy() *string { + if t == nil { + t = &GetTemplateByID_Template{} + } + return t.UpdatedBy +} +func (t *GetTemplateByID_Template) GetOwner() *GetTemplateByID_Template_Owner { + if t == nil { + t = &GetTemplateByID_Template{} + } + return t.Owner +} + +type UpdateTemplate_UpdateTemplate_Template_Owner struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *UpdateTemplate_UpdateTemplate_Template_Owner) GetID() string { + if t == nil { + t = &UpdateTemplate_UpdateTemplate_Template_Owner{} + } + return t.ID +} + +type UpdateTemplate_UpdateTemplate_Template struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + ID string "json:\"id\" graphql:\"id\"" + Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" + Name string "json:\"name\" graphql:\"name\"" + Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Owner *UpdateTemplate_UpdateTemplate_Template_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +} + +func (t *UpdateTemplate_UpdateTemplate_Template) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateTemplate_UpdateTemplate_Template{} + } + return t.CreatedAt +} +func (t *UpdateTemplate_UpdateTemplate_Template) GetCreatedBy() *string { + if t == nil { + t = &UpdateTemplate_UpdateTemplate_Template{} + } + return t.CreatedBy +} +func (t *UpdateTemplate_UpdateTemplate_Template) GetDescription() *string { + if t == nil { + t = &UpdateTemplate_UpdateTemplate_Template{} + } + return t.Description +} +func (t *UpdateTemplate_UpdateTemplate_Template) GetID() string { + if t == nil { + t = &UpdateTemplate_UpdateTemplate_Template{} + } + return t.ID +} +func (t *UpdateTemplate_UpdateTemplate_Template) GetJsonconfig() *json.RawMessage { + if t == nil { + t = &UpdateTemplate_UpdateTemplate_Template{} + } + return &t.Jsonconfig +} +func (t *UpdateTemplate_UpdateTemplate_Template) GetName() string { + if t == nil { + t = &UpdateTemplate_UpdateTemplate_Template{} + } + return t.Name +} +func (t *UpdateTemplate_UpdateTemplate_Template) GetUischema() *json.RawMessage { + if t == nil { + t = &UpdateTemplate_UpdateTemplate_Template{} + } + return &t.Uischema +} +func (t *UpdateTemplate_UpdateTemplate_Template) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateTemplate_UpdateTemplate_Template{} + } + return t.UpdatedAt +} +func (t *UpdateTemplate_UpdateTemplate_Template) GetUpdatedBy() *string { + if t == nil { + t = &UpdateTemplate_UpdateTemplate_Template{} + } + return t.UpdatedBy +} +func (t *UpdateTemplate_UpdateTemplate_Template) GetOwner() *UpdateTemplate_UpdateTemplate_Template_Owner { + if t == nil { + t = &UpdateTemplate_UpdateTemplate_Template{} + } + return t.Owner +} + +type UpdateTemplate_UpdateTemplate struct { + Template UpdateTemplate_UpdateTemplate_Template "json:\"template\" graphql:\"template\"" +} + +func (t *UpdateTemplate_UpdateTemplate) GetTemplate() *UpdateTemplate_UpdateTemplate_Template { + if t == nil { + t = &UpdateTemplate_UpdateTemplate{} + } + return &t.Template +} + +type GetAllTemplateHistories_TemplateHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TemplateType enums.DocumentType "json:\"templateType\" graphql:\"templateType\"" + Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.Description +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.ID +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetJsonconfig() *json.RawMessage { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return &t.Jsonconfig +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetName() string { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.Name +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return &t.Operation +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.OwnerID +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetTemplateType() *enums.DocumentType { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return &t.TemplateType +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetUischema() *json.RawMessage { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return &t.Uischema +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllTemplateHistories_TemplateHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.UpdatedBy +} + +type GetAllTemplateHistories_TemplateHistories_Edges struct { + Node *GetAllTemplateHistories_TemplateHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllTemplateHistories_TemplateHistories_Edges) GetNode() *GetAllTemplateHistories_TemplateHistories_Edges_Node { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories_Edges{} + } + return t.Node +} + +type GetAllTemplateHistories_TemplateHistories struct { + Edges []*GetAllTemplateHistories_TemplateHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllTemplateHistories_TemplateHistories) GetEdges() []*GetAllTemplateHistories_TemplateHistories_Edges { + if t == nil { + t = &GetAllTemplateHistories_TemplateHistories{} + } + return t.Edges +} + +type GetTemplateHistories_TemplateHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + Jsonconfig json.RawMessage "json:\"jsonconfig\" graphql:\"jsonconfig\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + TemplateType enums.DocumentType "json:\"templateType\" graphql:\"templateType\"" + Uischema json.RawMessage "json:\"uischema,omitempty\" graphql:\"uischema\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.Description +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.ID +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetJsonconfig() *json.RawMessage { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return &t.Jsonconfig +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetName() string { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.Name +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return &t.Operation +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.OwnerID +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetTemplateType() *enums.DocumentType { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return &t.TemplateType +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetUischema() *json.RawMessage { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return &t.Uischema +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetTemplateHistories_TemplateHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges_Node{} + } + return t.UpdatedBy +} + +type GetTemplateHistories_TemplateHistories_Edges struct { + Node *GetTemplateHistories_TemplateHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetTemplateHistories_TemplateHistories_Edges) GetNode() *GetTemplateHistories_TemplateHistories_Edges_Node { + if t == nil { + t = &GetTemplateHistories_TemplateHistories_Edges{} + } + return t.Node +} + +type GetTemplateHistories_TemplateHistories struct { + Edges []*GetTemplateHistories_TemplateHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetTemplateHistories_TemplateHistories) GetEdges() []*GetTemplateHistories_TemplateHistories_Edges { + if t == nil { + t = &GetTemplateHistories_TemplateHistories{} + } + return t.Edges +} + +type CreateTFASetting_CreateTFASetting_TfaSetting_Owner struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *CreateTFASetting_CreateTFASetting_TfaSetting_Owner) GetID() string { + if t == nil { + t = &CreateTFASetting_CreateTFASetting_TfaSetting_Owner{} + } + return t.ID +} + +type CreateTFASetting_CreateTFASetting_TfaSetting struct { + RecoveryCodes []string "json:\"recoveryCodes,omitempty\" graphql:\"recoveryCodes\"" + TotpAllowed *bool "json:\"totpAllowed,omitempty\" graphql:\"totpAllowed\"" + Verified bool "json:\"verified\" graphql:\"verified\"" + Owner *CreateTFASetting_CreateTFASetting_TfaSetting_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +} + +func (t *CreateTFASetting_CreateTFASetting_TfaSetting) GetRecoveryCodes() []string { + if t == nil { + t = &CreateTFASetting_CreateTFASetting_TfaSetting{} + } + return t.RecoveryCodes +} +func (t *CreateTFASetting_CreateTFASetting_TfaSetting) GetTotpAllowed() *bool { + if t == nil { + t = &CreateTFASetting_CreateTFASetting_TfaSetting{} + } + return t.TotpAllowed +} +func (t *CreateTFASetting_CreateTFASetting_TfaSetting) GetVerified() bool { + if t == nil { + t = &CreateTFASetting_CreateTFASetting_TfaSetting{} + } + return t.Verified +} +func (t *CreateTFASetting_CreateTFASetting_TfaSetting) GetOwner() *CreateTFASetting_CreateTFASetting_TfaSetting_Owner { + if t == nil { + t = &CreateTFASetting_CreateTFASetting_TfaSetting{} + } + return t.Owner +} + +type CreateTFASetting_CreateTFASetting struct { + TfaSetting CreateTFASetting_CreateTFASetting_TfaSetting "json:\"tfaSetting\" graphql:\"tfaSetting\"" +} + +func (t *CreateTFASetting_CreateTFASetting) GetTfaSetting() *CreateTFASetting_CreateTFASetting_TfaSetting { + if t == nil { + t = &CreateTFASetting_CreateTFASetting{} + } + return &t.TfaSetting +} + +type GetAllTFASettings_TfaSettings_Edges_Node_Owner struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetAllTFASettings_TfaSettings_Edges_Node_Owner) GetID() string { + if t == nil { + t = &GetAllTFASettings_TfaSettings_Edges_Node_Owner{} + } + return t.ID +} + +type GetAllTFASettings_TfaSettings_Edges_Node struct { + RecoveryCodes []string "json:\"recoveryCodes,omitempty\" graphql:\"recoveryCodes\"" + TotpAllowed *bool "json:\"totpAllowed,omitempty\" graphql:\"totpAllowed\"" + Verified bool "json:\"verified\" graphql:\"verified\"" + Owner *GetAllTFASettings_TfaSettings_Edges_Node_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +} + +func (t *GetAllTFASettings_TfaSettings_Edges_Node) GetRecoveryCodes() []string { + if t == nil { + t = &GetAllTFASettings_TfaSettings_Edges_Node{} + } + return t.RecoveryCodes +} +func (t *GetAllTFASettings_TfaSettings_Edges_Node) GetTotpAllowed() *bool { + if t == nil { + t = &GetAllTFASettings_TfaSettings_Edges_Node{} + } + return t.TotpAllowed +} +func (t *GetAllTFASettings_TfaSettings_Edges_Node) GetVerified() bool { + if t == nil { + t = &GetAllTFASettings_TfaSettings_Edges_Node{} + } + return t.Verified +} +func (t *GetAllTFASettings_TfaSettings_Edges_Node) GetOwner() *GetAllTFASettings_TfaSettings_Edges_Node_Owner { + if t == nil { + t = &GetAllTFASettings_TfaSettings_Edges_Node{} + } + return t.Owner +} + +type GetAllTFASettings_TfaSettings_Edges struct { + Node *GetAllTFASettings_TfaSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllTFASettings_TfaSettings_Edges) GetNode() *GetAllTFASettings_TfaSettings_Edges_Node { + if t == nil { + t = &GetAllTFASettings_TfaSettings_Edges{} + } + return t.Node +} + +type GetAllTFASettings_TfaSettings struct { + Edges []*GetAllTFASettings_TfaSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllTFASettings_TfaSettings) GetEdges() []*GetAllTFASettings_TfaSettings_Edges { + if t == nil { + t = &GetAllTFASettings_TfaSettings{} + } + return t.Edges +} + +type GetTFASetting_TfaSetting_Owner struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetTFASetting_TfaSetting_Owner) GetID() string { + if t == nil { + t = &GetTFASetting_TfaSetting_Owner{} + } + return t.ID +} + +type GetTFASetting_TfaSetting struct { + RecoveryCodes []string "json:\"recoveryCodes,omitempty\" graphql:\"recoveryCodes\"" + TotpAllowed *bool "json:\"totpAllowed,omitempty\" graphql:\"totpAllowed\"" + Verified bool "json:\"verified\" graphql:\"verified\"" + Owner *GetTFASetting_TfaSetting_Owner "json:\"owner,omitempty\" graphql:\"owner\"" +} + +func (t *GetTFASetting_TfaSetting) GetRecoveryCodes() []string { + if t == nil { + t = &GetTFASetting_TfaSetting{} + } + return t.RecoveryCodes +} +func (t *GetTFASetting_TfaSetting) GetTotpAllowed() *bool { + if t == nil { + t = &GetTFASetting_TfaSetting{} + } + return t.TotpAllowed +} +func (t *GetTFASetting_TfaSetting) GetVerified() bool { + if t == nil { + t = &GetTFASetting_TfaSetting{} + } + return t.Verified +} +func (t *GetTFASetting_TfaSetting) GetOwner() *GetTFASetting_TfaSetting_Owner { + if t == nil { + t = &GetTFASetting_TfaSetting{} + } + return t.Owner +} + +type UpdateTFASetting_UpdateTFASetting_TfaSetting struct { + RecoveryCodes []string "json:\"recoveryCodes,omitempty\" graphql:\"recoveryCodes\"" + TotpAllowed *bool "json:\"totpAllowed,omitempty\" graphql:\"totpAllowed\"" + Verified bool "json:\"verified\" graphql:\"verified\"" +} + +func (t *UpdateTFASetting_UpdateTFASetting_TfaSetting) GetRecoveryCodes() []string { + if t == nil { + t = &UpdateTFASetting_UpdateTFASetting_TfaSetting{} + } + return t.RecoveryCodes +} +func (t *UpdateTFASetting_UpdateTFASetting_TfaSetting) GetTotpAllowed() *bool { + if t == nil { + t = &UpdateTFASetting_UpdateTFASetting_TfaSetting{} + } + return t.TotpAllowed +} +func (t *UpdateTFASetting_UpdateTFASetting_TfaSetting) GetVerified() bool { + if t == nil { + t = &UpdateTFASetting_UpdateTFASetting_TfaSetting{} + } + return t.Verified +} + +type UpdateTFASetting_UpdateTFASetting struct { + TfaSetting UpdateTFASetting_UpdateTFASetting_TfaSetting "json:\"tfaSetting\" graphql:\"tfaSetting\"" +} + +func (t *UpdateTFASetting_UpdateTFASetting) GetTfaSetting() *UpdateTFASetting_UpdateTFASetting_TfaSetting { + if t == nil { + t = &UpdateTFASetting_UpdateTFASetting{} + } + return &t.TfaSetting +} + +type CreateUser_CreateUser_User_OrgMemberships struct { + ID string "json:\"id\" graphql:\"id\"" + OrganizationID string "json:\"organizationID\" graphql:\"organizationID\"" +} + +func (t *CreateUser_CreateUser_User_OrgMemberships) GetID() string { + if t == nil { + t = &CreateUser_CreateUser_User_OrgMemberships{} + } + return t.ID +} +func (t *CreateUser_CreateUser_User_OrgMemberships) GetOrganizationID() string { + if t == nil { + t = &CreateUser_CreateUser_User_OrgMemberships{} + } + return t.OrganizationID +} + +type CreateUser_CreateUser_User_GroupMemberships struct { + ID string "json:\"id\" graphql:\"id\"" + GroupID string "json:\"groupID\" graphql:\"groupID\"" +} + +func (t *CreateUser_CreateUser_User_GroupMemberships) GetID() string { + if t == nil { + t = &CreateUser_CreateUser_User_GroupMemberships{} + } + return t.ID +} +func (t *CreateUser_CreateUser_User_GroupMemberships) GetGroupID() string { + if t == nil { + t = &CreateUser_CreateUser_User_GroupMemberships{} + } + return t.GroupID +} + +type CreateUser_CreateUser_User_Setting_DefaultOrg struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +} + +func (t *CreateUser_CreateUser_User_Setting_DefaultOrg) GetID() string { + if t == nil { + t = &CreateUser_CreateUser_User_Setting_DefaultOrg{} + } + return t.ID +} +func (t *CreateUser_CreateUser_User_Setting_DefaultOrg) GetName() string { + if t == nil { + t = &CreateUser_CreateUser_User_Setting_DefaultOrg{} + } + return t.Name +} +func (t *CreateUser_CreateUser_User_Setting_DefaultOrg) GetPersonalOrg() *bool { + if t == nil { + t = &CreateUser_CreateUser_User_Setting_DefaultOrg{} + } + return t.PersonalOrg +} + +type CreateUser_CreateUser_User_Setting struct { + DefaultOrg *CreateUser_CreateUser_User_Setting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" + Locked bool "json:\"locked\" graphql:\"locked\"" + SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *CreateUser_CreateUser_User_Setting) GetDefaultOrg() *CreateUser_CreateUser_User_Setting_DefaultOrg { + if t == nil { + t = &CreateUser_CreateUser_User_Setting{} + } + return t.DefaultOrg +} +func (t *CreateUser_CreateUser_User_Setting) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateUser_CreateUser_User_Setting{} + } + return t.CreatedAt +} +func (t *CreateUser_CreateUser_User_Setting) GetCreatedBy() *string { + if t == nil { + t = &CreateUser_CreateUser_User_Setting{} + } + return t.CreatedBy +} +func (t *CreateUser_CreateUser_User_Setting) GetEmailConfirmed() bool { + if t == nil { + t = &CreateUser_CreateUser_User_Setting{} + } + return t.EmailConfirmed +} +func (t *CreateUser_CreateUser_User_Setting) GetLocked() bool { + if t == nil { + t = &CreateUser_CreateUser_User_Setting{} + } + return t.Locked +} +func (t *CreateUser_CreateUser_User_Setting) GetSilencedAt() *time.Time { + if t == nil { + t = &CreateUser_CreateUser_User_Setting{} + } + return t.SilencedAt +} +func (t *CreateUser_CreateUser_User_Setting) GetStatus() *enums.UserStatus { + if t == nil { + t = &CreateUser_CreateUser_User_Setting{} + } + return &t.Status +} +func (t *CreateUser_CreateUser_User_Setting) GetSuspendedAt() *time.Time { + if t == nil { + t = &CreateUser_CreateUser_User_Setting{} + } + return t.SuspendedAt +} +func (t *CreateUser_CreateUser_User_Setting) GetTags() []string { + if t == nil { + t = &CreateUser_CreateUser_User_Setting{} + } + return t.Tags +} +func (t *CreateUser_CreateUser_User_Setting) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateUser_CreateUser_User_Setting{} + } + return t.UpdatedAt +} +func (t *CreateUser_CreateUser_User_Setting) GetUpdatedBy() *string { + if t == nil { + t = &CreateUser_CreateUser_User_Setting{} + } + return t.UpdatedBy +} + +type CreateUser_CreateUser_User struct { + AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" + AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" + AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" + AvatarLocalFileID *string "json:\"avatarLocalFileID,omitempty\" graphql:\"avatarLocalFileID\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + ID string "json:\"id\" graphql:\"id\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + OrgMemberships []*CreateUser_CreateUser_User_OrgMemberships "json:\"orgMemberships,omitempty\" graphql:\"orgMemberships\"" + GroupMemberships []*CreateUser_CreateUser_User_GroupMemberships "json:\"groupMemberships,omitempty\" graphql:\"groupMemberships\"" + Setting CreateUser_CreateUser_User_Setting "json:\"setting\" graphql:\"setting\"" +} + +func (t *CreateUser_CreateUser_User) GetAuthProvider() *enums.AuthProvider { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return &t.AuthProvider +} +func (t *CreateUser_CreateUser_User) GetAvatarLocalFile() *string { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return t.AvatarLocalFile +} +func (t *CreateUser_CreateUser_User) GetAvatarRemoteURL() *string { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return t.AvatarRemoteURL +} +func (t *CreateUser_CreateUser_User) GetAvatarLocalFileID() *string { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return t.AvatarLocalFileID +} +func (t *CreateUser_CreateUser_User) GetDisplayName() string { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return t.DisplayName +} +func (t *CreateUser_CreateUser_User) GetEmail() string { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return t.Email +} +func (t *CreateUser_CreateUser_User) GetFirstName() *string { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return t.FirstName +} +func (t *CreateUser_CreateUser_User) GetID() string { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return t.ID +} +func (t *CreateUser_CreateUser_User) GetLastName() *string { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return t.LastName +} +func (t *CreateUser_CreateUser_User) GetSub() *string { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return t.Sub +} +func (t *CreateUser_CreateUser_User) GetTags() []string { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return t.Tags +} +func (t *CreateUser_CreateUser_User) GetOrgMemberships() []*CreateUser_CreateUser_User_OrgMemberships { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return t.OrgMemberships +} +func (t *CreateUser_CreateUser_User) GetGroupMemberships() []*CreateUser_CreateUser_User_GroupMemberships { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return t.GroupMemberships +} +func (t *CreateUser_CreateUser_User) GetSetting() *CreateUser_CreateUser_User_Setting { + if t == nil { + t = &CreateUser_CreateUser_User{} + } + return &t.Setting +} + +type CreateUser_CreateUser struct { + User CreateUser_CreateUser_User "json:\"user\" graphql:\"user\"" +} + +func (t *CreateUser_CreateUser) GetUser() *CreateUser_CreateUser_User { + if t == nil { + t = &CreateUser_CreateUser{} + } + return &t.User +} + +type DeleteUser_DeleteUser struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +} + +func (t *DeleteUser_DeleteUser) GetDeletedID() string { + if t == nil { + t = &DeleteUser_DeleteUser{} + } + return t.DeletedID +} + +type GetAllUsers_Users_Edges_Node_Setting_DefaultOrg struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +} + +func (t *GetAllUsers_Users_Edges_Node_Setting_DefaultOrg) GetID() string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting_DefaultOrg{} + } + return t.ID +} +func (t *GetAllUsers_Users_Edges_Node_Setting_DefaultOrg) GetName() string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting_DefaultOrg{} + } + return t.Name +} +func (t *GetAllUsers_Users_Edges_Node_Setting_DefaultOrg) GetPersonalOrg() *bool { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting_DefaultOrg{} + } + return t.PersonalOrg +} + +type GetAllUsers_Users_Edges_Node_Setting struct { + DefaultOrg *GetAllUsers_Users_Edges_Node_Setting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" + Locked bool "json:\"locked\" graphql:\"locked\"" + SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllUsers_Users_Edges_Node_Setting) GetDefaultOrg() *GetAllUsers_Users_Edges_Node_Setting_DefaultOrg { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting{} + } + return t.DefaultOrg +} +func (t *GetAllUsers_Users_Edges_Node_Setting) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting{} + } + return t.CreatedAt +} +func (t *GetAllUsers_Users_Edges_Node_Setting) GetCreatedBy() *string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting{} + } + return t.CreatedBy +} +func (t *GetAllUsers_Users_Edges_Node_Setting) GetEmailConfirmed() bool { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting{} + } + return t.EmailConfirmed +} +func (t *GetAllUsers_Users_Edges_Node_Setting) GetLocked() bool { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting{} + } + return t.Locked +} +func (t *GetAllUsers_Users_Edges_Node_Setting) GetSilencedAt() *time.Time { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting{} + } + return t.SilencedAt +} +func (t *GetAllUsers_Users_Edges_Node_Setting) GetStatus() *enums.UserStatus { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting{} + } + return &t.Status +} +func (t *GetAllUsers_Users_Edges_Node_Setting) GetSuspendedAt() *time.Time { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting{} + } + return t.SuspendedAt +} +func (t *GetAllUsers_Users_Edges_Node_Setting) GetTags() []string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting{} + } + return t.Tags +} +func (t *GetAllUsers_Users_Edges_Node_Setting) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting{} + } + return t.UpdatedAt +} +func (t *GetAllUsers_Users_Edges_Node_Setting) GetUpdatedBy() *string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node_Setting{} + } + return t.UpdatedBy +} + +type GetAllUsers_Users_Edges_Node struct { + AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" + AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" + AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" + AvatarLocalFileID *string "json:\"avatarLocalFileID,omitempty\" graphql:\"avatarLocalFileID\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + ID string "json:\"id\" graphql:\"id\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + LastSeen *time.Time "json:\"lastSeen,omitempty\" graphql:\"lastSeen\"" + Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Setting GetAllUsers_Users_Edges_Node_Setting "json:\"setting\" graphql:\"setting\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllUsers_Users_Edges_Node) GetAuthProvider() *enums.AuthProvider { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return &t.AuthProvider +} +func (t *GetAllUsers_Users_Edges_Node) GetAvatarLocalFile() *string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.AvatarLocalFile +} +func (t *GetAllUsers_Users_Edges_Node) GetAvatarRemoteURL() *string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.AvatarRemoteURL +} +func (t *GetAllUsers_Users_Edges_Node) GetAvatarLocalFileID() *string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.AvatarLocalFileID +} +func (t *GetAllUsers_Users_Edges_Node) GetDisplayName() string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.DisplayName +} +func (t *GetAllUsers_Users_Edges_Node) GetEmail() string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.Email +} +func (t *GetAllUsers_Users_Edges_Node) GetFirstName() *string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.FirstName +} +func (t *GetAllUsers_Users_Edges_Node) GetID() string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.ID +} +func (t *GetAllUsers_Users_Edges_Node) GetLastName() *string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.LastName +} +func (t *GetAllUsers_Users_Edges_Node) GetLastSeen() *time.Time { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.LastSeen +} +func (t *GetAllUsers_Users_Edges_Node) GetSub() *string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.Sub +} +func (t *GetAllUsers_Users_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.Tags +} +func (t *GetAllUsers_Users_Edges_Node) GetSetting() *GetAllUsers_Users_Edges_Node_Setting { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return &t.Setting +} +func (t *GetAllUsers_Users_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllUsers_Users_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllUsers_Users_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllUsers_Users_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllUsers_Users_Edges_Node{} + } + return t.UpdatedBy +} + +type GetAllUsers_Users_Edges struct { + Node *GetAllUsers_Users_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllUsers_Users_Edges) GetNode() *GetAllUsers_Users_Edges_Node { + if t == nil { + t = &GetAllUsers_Users_Edges{} + } + return t.Node +} + +type GetAllUsers_Users struct { + Edges []*GetAllUsers_Users_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllUsers_Users) GetEdges() []*GetAllUsers_Users_Edges { + if t == nil { + t = &GetAllUsers_Users{} + } + return t.Edges +} + +type GetUserByID_User_Setting_DefaultOrg struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +} + +func (t *GetUserByID_User_Setting_DefaultOrg) GetID() string { + if t == nil { + t = &GetUserByID_User_Setting_DefaultOrg{} + } + return t.ID +} +func (t *GetUserByID_User_Setting_DefaultOrg) GetName() string { + if t == nil { + t = &GetUserByID_User_Setting_DefaultOrg{} + } + return t.Name +} +func (t *GetUserByID_User_Setting_DefaultOrg) GetPersonalOrg() *bool { + if t == nil { + t = &GetUserByID_User_Setting_DefaultOrg{} + } + return t.PersonalOrg +} + +type GetUserByID_User_Setting struct { + DefaultOrg *GetUserByID_User_Setting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" + Locked bool "json:\"locked\" graphql:\"locked\"" + SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetUserByID_User_Setting) GetDefaultOrg() *GetUserByID_User_Setting_DefaultOrg { + if t == nil { + t = &GetUserByID_User_Setting{} + } + return t.DefaultOrg +} +func (t *GetUserByID_User_Setting) GetCreatedAt() *time.Time { + if t == nil { + t = &GetUserByID_User_Setting{} + } + return t.CreatedAt +} +func (t *GetUserByID_User_Setting) GetCreatedBy() *string { + if t == nil { + t = &GetUserByID_User_Setting{} + } + return t.CreatedBy +} +func (t *GetUserByID_User_Setting) GetEmailConfirmed() bool { + if t == nil { + t = &GetUserByID_User_Setting{} + } + return t.EmailConfirmed +} +func (t *GetUserByID_User_Setting) GetLocked() bool { + if t == nil { + t = &GetUserByID_User_Setting{} + } + return t.Locked +} +func (t *GetUserByID_User_Setting) GetSilencedAt() *time.Time { + if t == nil { + t = &GetUserByID_User_Setting{} + } + return t.SilencedAt +} +func (t *GetUserByID_User_Setting) GetStatus() *enums.UserStatus { + if t == nil { + t = &GetUserByID_User_Setting{} + } + return &t.Status +} +func (t *GetUserByID_User_Setting) GetSuspendedAt() *time.Time { + if t == nil { + t = &GetUserByID_User_Setting{} + } + return t.SuspendedAt +} +func (t *GetUserByID_User_Setting) GetTags() []string { + if t == nil { + t = &GetUserByID_User_Setting{} + } + return t.Tags +} +func (t *GetUserByID_User_Setting) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetUserByID_User_Setting{} + } + return t.UpdatedAt +} +func (t *GetUserByID_User_Setting) GetUpdatedBy() *string { + if t == nil { + t = &GetUserByID_User_Setting{} + } + return t.UpdatedBy +} + +type GetUserByID_User_Organizations_Members struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" +} + +func (t *GetUserByID_User_Organizations_Members) GetID() string { + if t == nil { + t = &GetUserByID_User_Organizations_Members{} + } + return t.ID +} +func (t *GetUserByID_User_Organizations_Members) GetRole() *enums.Role { + if t == nil { + t = &GetUserByID_User_Organizations_Members{} + } + return &t.Role +} + +type GetUserByID_User_Organizations struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" + Members []*GetUserByID_User_Organizations_Members "json:\"members,omitempty\" graphql:\"members\"" +} + +func (t *GetUserByID_User_Organizations) GetID() string { + if t == nil { + t = &GetUserByID_User_Organizations{} + } + return t.ID +} +func (t *GetUserByID_User_Organizations) GetName() string { + if t == nil { + t = &GetUserByID_User_Organizations{} + } + return t.Name +} +func (t *GetUserByID_User_Organizations) GetPersonalOrg() *bool { + if t == nil { + t = &GetUserByID_User_Organizations{} + } + return t.PersonalOrg +} +func (t *GetUserByID_User_Organizations) GetMembers() []*GetUserByID_User_Organizations_Members { + if t == nil { + t = &GetUserByID_User_Organizations{} + } + return t.Members +} + +type GetUserByID_User struct { + AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" + AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" + AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" + AvatarLocalFileID *string "json:\"avatarLocalFileID,omitempty\" graphql:\"avatarLocalFileID\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + ID string "json:\"id\" graphql:\"id\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + LastSeen *time.Time "json:\"lastSeen,omitempty\" graphql:\"lastSeen\"" + Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Setting GetUserByID_User_Setting "json:\"setting\" graphql:\"setting\"" + Organizations []*GetUserByID_User_Organizations "json:\"organizations,omitempty\" graphql:\"organizations\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" +} + +func (t *GetUserByID_User) GetAuthProvider() *enums.AuthProvider { + if t == nil { + t = &GetUserByID_User{} + } + return &t.AuthProvider +} +func (t *GetUserByID_User) GetAvatarLocalFile() *string { + if t == nil { + t = &GetUserByID_User{} + } + return t.AvatarLocalFile +} +func (t *GetUserByID_User) GetAvatarRemoteURL() *string { + if t == nil { + t = &GetUserByID_User{} + } + return t.AvatarRemoteURL +} +func (t *GetUserByID_User) GetAvatarLocalFileID() *string { + if t == nil { + t = &GetUserByID_User{} + } + return t.AvatarLocalFileID +} +func (t *GetUserByID_User) GetDisplayName() string { + if t == nil { + t = &GetUserByID_User{} + } + return t.DisplayName +} +func (t *GetUserByID_User) GetEmail() string { + if t == nil { + t = &GetUserByID_User{} + } + return t.Email +} +func (t *GetUserByID_User) GetFirstName() *string { + if t == nil { + t = &GetUserByID_User{} + } + return t.FirstName +} +func (t *GetUserByID_User) GetID() string { + if t == nil { + t = &GetUserByID_User{} + } + return t.ID +} +func (t *GetUserByID_User) GetLastName() *string { + if t == nil { + t = &GetUserByID_User{} + } + return t.LastName +} +func (t *GetUserByID_User) GetLastSeen() *time.Time { + if t == nil { + t = &GetUserByID_User{} + } + return t.LastSeen +} +func (t *GetUserByID_User) GetSub() *string { + if t == nil { + t = &GetUserByID_User{} + } + return t.Sub +} +func (t *GetUserByID_User) GetTags() []string { + if t == nil { + t = &GetUserByID_User{} + } + return t.Tags +} +func (t *GetUserByID_User) GetSetting() *GetUserByID_User_Setting { + if t == nil { + t = &GetUserByID_User{} + } + return &t.Setting +} +func (t *GetUserByID_User) GetOrganizations() []*GetUserByID_User_Organizations { + if t == nil { + t = &GetUserByID_User{} + } + return t.Organizations +} +func (t *GetUserByID_User) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetUserByID_User{} + } + return t.UpdatedAt +} +func (t *GetUserByID_User) GetUpdatedBy() *string { + if t == nil { + t = &GetUserByID_User{} + } + return t.UpdatedBy +} +func (t *GetUserByID_User) GetCreatedAt() *time.Time { + if t == nil { + t = &GetUserByID_User{} + } + return t.CreatedAt +} +func (t *GetUserByID_User) GetCreatedBy() *string { + if t == nil { + t = &GetUserByID_User{} + } + return t.CreatedBy +} + +type GetUserByIDWithOrgs_User_Setting_DefaultOrg struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +} + +func (t *GetUserByIDWithOrgs_User_Setting_DefaultOrg) GetID() string { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting_DefaultOrg{} + } + return t.ID +} +func (t *GetUserByIDWithOrgs_User_Setting_DefaultOrg) GetName() string { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting_DefaultOrg{} + } + return t.Name +} +func (t *GetUserByIDWithOrgs_User_Setting_DefaultOrg) GetPersonalOrg() *bool { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting_DefaultOrg{} + } + return t.PersonalOrg +} + +type GetUserByIDWithOrgs_User_Setting struct { + DefaultOrg *GetUserByIDWithOrgs_User_Setting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" + Locked bool "json:\"locked\" graphql:\"locked\"" + SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetUserByIDWithOrgs_User_Setting) GetDefaultOrg() *GetUserByIDWithOrgs_User_Setting_DefaultOrg { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting{} + } + return t.DefaultOrg +} +func (t *GetUserByIDWithOrgs_User_Setting) GetCreatedAt() *time.Time { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting{} + } + return t.CreatedAt +} +func (t *GetUserByIDWithOrgs_User_Setting) GetCreatedBy() *string { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting{} + } + return t.CreatedBy +} +func (t *GetUserByIDWithOrgs_User_Setting) GetEmailConfirmed() bool { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting{} + } + return t.EmailConfirmed +} +func (t *GetUserByIDWithOrgs_User_Setting) GetLocked() bool { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting{} + } + return t.Locked +} +func (t *GetUserByIDWithOrgs_User_Setting) GetSilencedAt() *time.Time { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting{} + } + return t.SilencedAt +} +func (t *GetUserByIDWithOrgs_User_Setting) GetStatus() *enums.UserStatus { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting{} + } + return &t.Status +} +func (t *GetUserByIDWithOrgs_User_Setting) GetSuspendedAt() *time.Time { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting{} + } + return t.SuspendedAt +} +func (t *GetUserByIDWithOrgs_User_Setting) GetTags() []string { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting{} + } + return t.Tags +} +func (t *GetUserByIDWithOrgs_User_Setting) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting{} + } + return t.UpdatedAt +} +func (t *GetUserByIDWithOrgs_User_Setting) GetUpdatedBy() *string { + if t == nil { + t = &GetUserByIDWithOrgs_User_Setting{} + } + return t.UpdatedBy +} + +type GetUserByIDWithOrgs_User_OrgMemberships_User struct { + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" +} + +func (t *GetUserByIDWithOrgs_User_OrgMemberships_User) GetFirstName() *string { + if t == nil { + t = &GetUserByIDWithOrgs_User_OrgMemberships_User{} + } + return t.FirstName +} +func (t *GetUserByIDWithOrgs_User_OrgMemberships_User) GetLastName() *string { + if t == nil { + t = &GetUserByIDWithOrgs_User_OrgMemberships_User{} + } + return t.LastName +} + +type GetUserByIDWithOrgs_User_OrgMemberships struct { + ID string "json:\"id\" graphql:\"id\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + User GetUserByIDWithOrgs_User_OrgMemberships_User "json:\"user\" graphql:\"user\"" +} + +func (t *GetUserByIDWithOrgs_User_OrgMemberships) GetID() string { + if t == nil { + t = &GetUserByIDWithOrgs_User_OrgMemberships{} + } + return t.ID +} +func (t *GetUserByIDWithOrgs_User_OrgMemberships) GetRole() *enums.Role { + if t == nil { + t = &GetUserByIDWithOrgs_User_OrgMemberships{} + } + return &t.Role +} +func (t *GetUserByIDWithOrgs_User_OrgMemberships) GetUser() *GetUserByIDWithOrgs_User_OrgMemberships_User { + if t == nil { + t = &GetUserByIDWithOrgs_User_OrgMemberships{} + } + return &t.User +} + +type GetUserByIDWithOrgs_User struct { + AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" + AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" + AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" + AvatarLocalFileID *string "json:\"avatarLocalFileID,omitempty\" graphql:\"avatarLocalFileID\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + ID string "json:\"id\" graphql:\"id\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + LastSeen *time.Time "json:\"lastSeen,omitempty\" graphql:\"lastSeen\"" + Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Setting GetUserByIDWithOrgs_User_Setting "json:\"setting\" graphql:\"setting\"" + OrgMemberships []*GetUserByIDWithOrgs_User_OrgMemberships "json:\"orgMemberships,omitempty\" graphql:\"orgMemberships\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetUserByIDWithOrgs_User) GetAuthProvider() *enums.AuthProvider { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return &t.AuthProvider +} +func (t *GetUserByIDWithOrgs_User) GetAvatarLocalFile() *string { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.AvatarLocalFile +} +func (t *GetUserByIDWithOrgs_User) GetAvatarRemoteURL() *string { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.AvatarRemoteURL +} +func (t *GetUserByIDWithOrgs_User) GetAvatarLocalFileID() *string { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.AvatarLocalFileID +} +func (t *GetUserByIDWithOrgs_User) GetDisplayName() string { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.DisplayName +} +func (t *GetUserByIDWithOrgs_User) GetEmail() string { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.Email +} +func (t *GetUserByIDWithOrgs_User) GetFirstName() *string { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.FirstName +} +func (t *GetUserByIDWithOrgs_User) GetID() string { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.ID +} +func (t *GetUserByIDWithOrgs_User) GetLastName() *string { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.LastName +} +func (t *GetUserByIDWithOrgs_User) GetLastSeen() *time.Time { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.LastSeen +} +func (t *GetUserByIDWithOrgs_User) GetSub() *string { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.Sub +} +func (t *GetUserByIDWithOrgs_User) GetTags() []string { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.Tags +} +func (t *GetUserByIDWithOrgs_User) GetSetting() *GetUserByIDWithOrgs_User_Setting { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return &t.Setting +} +func (t *GetUserByIDWithOrgs_User) GetOrgMemberships() []*GetUserByIDWithOrgs_User_OrgMemberships { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.OrgMemberships +} +func (t *GetUserByIDWithOrgs_User) GetCreatedAt() *time.Time { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.CreatedAt +} +func (t *GetUserByIDWithOrgs_User) GetCreatedBy() *string { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.CreatedBy +} +func (t *GetUserByIDWithOrgs_User) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.UpdatedAt +} +func (t *GetUserByIDWithOrgs_User) GetUpdatedBy() *string { + if t == nil { + t = &GetUserByIDWithOrgs_User{} + } + return t.UpdatedBy +} + +type UpdateUser_UpdateUser_User_GroupMemberships struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *UpdateUser_UpdateUser_User_GroupMemberships) GetID() string { + if t == nil { + t = &UpdateUser_UpdateUser_User_GroupMemberships{} + } + return t.ID +} + +type UpdateUser_UpdateUser_User_OrgMemberships struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *UpdateUser_UpdateUser_User_OrgMemberships) GetID() string { + if t == nil { + t = &UpdateUser_UpdateUser_User_OrgMemberships{} + } + return t.ID +} + +type UpdateUser_UpdateUser_User_Setting_DefaultOrg struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +} + +func (t *UpdateUser_UpdateUser_User_Setting_DefaultOrg) GetID() string { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting_DefaultOrg{} + } + return t.ID +} +func (t *UpdateUser_UpdateUser_User_Setting_DefaultOrg) GetName() string { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting_DefaultOrg{} + } + return t.Name +} +func (t *UpdateUser_UpdateUser_User_Setting_DefaultOrg) GetPersonalOrg() *bool { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting_DefaultOrg{} + } + return t.PersonalOrg +} + +type UpdateUser_UpdateUser_User_Setting struct { + DefaultOrg *UpdateUser_UpdateUser_User_Setting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" + Locked bool "json:\"locked\" graphql:\"locked\"" + SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *UpdateUser_UpdateUser_User_Setting) GetDefaultOrg() *UpdateUser_UpdateUser_User_Setting_DefaultOrg { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting{} + } + return t.DefaultOrg +} +func (t *UpdateUser_UpdateUser_User_Setting) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting{} + } + return t.CreatedAt +} +func (t *UpdateUser_UpdateUser_User_Setting) GetCreatedBy() *string { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting{} + } + return t.CreatedBy +} +func (t *UpdateUser_UpdateUser_User_Setting) GetEmailConfirmed() bool { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting{} + } + return t.EmailConfirmed +} +func (t *UpdateUser_UpdateUser_User_Setting) GetLocked() bool { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting{} + } + return t.Locked +} +func (t *UpdateUser_UpdateUser_User_Setting) GetSilencedAt() *time.Time { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting{} + } + return t.SilencedAt +} +func (t *UpdateUser_UpdateUser_User_Setting) GetStatus() *enums.UserStatus { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting{} + } + return &t.Status +} +func (t *UpdateUser_UpdateUser_User_Setting) GetSuspendedAt() *time.Time { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting{} + } + return t.SuspendedAt +} +func (t *UpdateUser_UpdateUser_User_Setting) GetTags() []string { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting{} + } + return t.Tags +} +func (t *UpdateUser_UpdateUser_User_Setting) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting{} + } + return t.UpdatedAt +} +func (t *UpdateUser_UpdateUser_User_Setting) GetUpdatedBy() *string { + if t == nil { + t = &UpdateUser_UpdateUser_User_Setting{} + } + return t.UpdatedBy +} + +type UpdateUser_UpdateUser_User struct { + AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" + AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" + AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" + AvatarLocalFileID *string "json:\"avatarLocalFileID,omitempty\" graphql:\"avatarLocalFileID\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + ID string "json:\"id\" graphql:\"id\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + GroupMemberships []*UpdateUser_UpdateUser_User_GroupMemberships "json:\"groupMemberships,omitempty\" graphql:\"groupMemberships\"" + OrgMemberships []*UpdateUser_UpdateUser_User_OrgMemberships "json:\"orgMemberships,omitempty\" graphql:\"orgMemberships\"" + Setting UpdateUser_UpdateUser_User_Setting "json:\"setting\" graphql:\"setting\"" +} + +func (t *UpdateUser_UpdateUser_User) GetAuthProvider() *enums.AuthProvider { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return &t.AuthProvider +} +func (t *UpdateUser_UpdateUser_User) GetAvatarLocalFile() *string { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return t.AvatarLocalFile +} +func (t *UpdateUser_UpdateUser_User) GetAvatarRemoteURL() *string { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return t.AvatarRemoteURL +} +func (t *UpdateUser_UpdateUser_User) GetAvatarLocalFileID() *string { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return t.AvatarLocalFileID +} +func (t *UpdateUser_UpdateUser_User) GetDisplayName() string { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return t.DisplayName +} +func (t *UpdateUser_UpdateUser_User) GetEmail() string { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return t.Email +} +func (t *UpdateUser_UpdateUser_User) GetFirstName() *string { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return t.FirstName +} +func (t *UpdateUser_UpdateUser_User) GetID() string { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return t.ID +} +func (t *UpdateUser_UpdateUser_User) GetLastName() *string { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return t.LastName +} +func (t *UpdateUser_UpdateUser_User) GetSub() *string { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return t.Sub +} +func (t *UpdateUser_UpdateUser_User) GetTags() []string { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return t.Tags +} +func (t *UpdateUser_UpdateUser_User) GetGroupMemberships() []*UpdateUser_UpdateUser_User_GroupMemberships { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return t.GroupMemberships +} +func (t *UpdateUser_UpdateUser_User) GetOrgMemberships() []*UpdateUser_UpdateUser_User_OrgMemberships { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return t.OrgMemberships +} +func (t *UpdateUser_UpdateUser_User) GetSetting() *UpdateUser_UpdateUser_User_Setting { + if t == nil { + t = &UpdateUser_UpdateUser_User{} + } + return &t.Setting +} + +type UpdateUser_UpdateUser struct { + User UpdateUser_UpdateUser_User "json:\"user\" graphql:\"user\"" +} + +func (t *UpdateUser_UpdateUser) GetUser() *UpdateUser_UpdateUser_User { + if t == nil { + t = &UpdateUser_UpdateUser{} + } + return &t.User +} + +type GetAllUserHistories_UserHistories_Edges_Node struct { + AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" + AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" + AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" + AvatarUpdatedAt *time.Time "json:\"avatarUpdatedAt,omitempty\" graphql:\"avatarUpdatedAt\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + LastSeen *time.Time "json:\"lastSeen,omitempty\" graphql:\"lastSeen\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Role *enums.Role "json:\"role,omitempty\" graphql:\"role\"" + Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetAuthProvider() *enums.AuthProvider { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return &t.AuthProvider +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetAvatarLocalFile() *string { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.AvatarLocalFile +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetAvatarRemoteURL() *string { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.AvatarRemoteURL +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetAvatarUpdatedAt() *time.Time { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.AvatarUpdatedAt +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetDisplayName() string { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.DisplayName +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetEmail() string { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.Email +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetFirstName() *string { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.FirstName +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.ID +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetLastName() *string { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.LastName +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetLastSeen() *time.Time { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.LastSeen +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return &t.Operation +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetRole() *enums.Role { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.Role +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetSub() *string { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.Sub +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllUserHistories_UserHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges_Node{} + } + return t.UpdatedBy +} + +type GetAllUserHistories_UserHistories_Edges struct { + Node *GetAllUserHistories_UserHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllUserHistories_UserHistories_Edges) GetNode() *GetAllUserHistories_UserHistories_Edges_Node { + if t == nil { + t = &GetAllUserHistories_UserHistories_Edges{} + } + return t.Node +} + +type GetAllUserHistories_UserHistories struct { + Edges []*GetAllUserHistories_UserHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllUserHistories_UserHistories) GetEdges() []*GetAllUserHistories_UserHistories_Edges { + if t == nil { + t = &GetAllUserHistories_UserHistories{} + } + return t.Edges +} + +type GetUserHistories_UserHistories_Edges_Node struct { + AuthProvider enums.AuthProvider "json:\"authProvider\" graphql:\"authProvider\"" + AvatarLocalFile *string "json:\"avatarLocalFile,omitempty\" graphql:\"avatarLocalFile\"" + AvatarRemoteURL *string "json:\"avatarRemoteURL,omitempty\" graphql:\"avatarRemoteURL\"" + AvatarUpdatedAt *time.Time "json:\"avatarUpdatedAt,omitempty\" graphql:\"avatarUpdatedAt\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DisplayName string "json:\"displayName\" graphql:\"displayName\"" + Email string "json:\"email\" graphql:\"email\"" + FirstName *string "json:\"firstName,omitempty\" graphql:\"firstName\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + LastName *string "json:\"lastName,omitempty\" graphql:\"lastName\"" + LastSeen *time.Time "json:\"lastSeen,omitempty\" graphql:\"lastSeen\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Role *enums.Role "json:\"role,omitempty\" graphql:\"role\"" + Sub *string "json:\"sub,omitempty\" graphql:\"sub\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetUserHistories_UserHistories_Edges_Node) GetAuthProvider() *enums.AuthProvider { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return &t.AuthProvider +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetAvatarLocalFile() *string { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.AvatarLocalFile +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetAvatarRemoteURL() *string { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.AvatarRemoteURL +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetAvatarUpdatedAt() *time.Time { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.AvatarUpdatedAt +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetDisplayName() string { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.DisplayName +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetEmail() string { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.Email +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetFirstName() *string { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.FirstName +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.ID +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetLastName() *string { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.LastName +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetLastSeen() *time.Time { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.LastSeen +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return &t.Operation +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetRole() *enums.Role { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.Role +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetSub() *string { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.Sub +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetUserHistories_UserHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetUserHistories_UserHistories_Edges_Node{} + } + return t.UpdatedBy +} + +type GetUserHistories_UserHistories_Edges struct { + Node *GetUserHistories_UserHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetUserHistories_UserHistories_Edges) GetNode() *GetUserHistories_UserHistories_Edges_Node { + if t == nil { + t = &GetUserHistories_UserHistories_Edges{} + } + return t.Node +} + +type GetUserHistories_UserHistories struct { + Edges []*GetUserHistories_UserHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetUserHistories_UserHistories) GetEdges() []*GetUserHistories_UserHistories_Edges { + if t == nil { + t = &GetUserHistories_UserHistories{} + } + return t.Edges +} + +type GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +} + +func (t *GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg) GetID() string { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg{} + } + return t.ID +} +func (t *GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg) GetName() string { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg{} + } + return t.Name +} +func (t *GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg) GetPersonalOrg() *bool { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg{} + } + return t.PersonalOrg +} + +type GetAllUserSettings_UserSettings_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + DefaultOrg *GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Locked bool "json:\"locked\" graphql:\"locked\"" + IsTfaEnabled *bool "json:\"isTfaEnabled,omitempty\" graphql:\"isTfaEnabled\"" + EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DeletedAt *time.Time "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetID() string { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.ID +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetSilencedAt() *time.Time { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.SilencedAt +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetStatus() *enums.UserStatus { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return &t.Status +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetDefaultOrg() *GetAllUserSettings_UserSettings_Edges_Node_DefaultOrg { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.DefaultOrg +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.Tags +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetLocked() bool { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.Locked +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetIsTfaEnabled() *bool { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.IsTfaEnabled +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetEmailConfirmed() bool { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.EmailConfirmed +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetDeletedAt() *time.Time { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.DeletedAt +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetDeletedBy() *string { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.DeletedBy +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllUserSettings_UserSettings_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges_Node{} + } + return t.UpdatedBy +} + +type GetAllUserSettings_UserSettings_Edges struct { + Node *GetAllUserSettings_UserSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllUserSettings_UserSettings_Edges) GetNode() *GetAllUserSettings_UserSettings_Edges_Node { + if t == nil { + t = &GetAllUserSettings_UserSettings_Edges{} + } + return t.Node +} + +type GetAllUserSettings_UserSettings struct { + Edges []*GetAllUserSettings_UserSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllUserSettings_UserSettings) GetEdges() []*GetAllUserSettings_UserSettings_Edges { + if t == nil { + t = &GetAllUserSettings_UserSettings{} + } + return t.Edges +} + +type GetUserSettingByID_UserSetting_DefaultOrg struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +} + +func (t *GetUserSettingByID_UserSetting_DefaultOrg) GetID() string { + if t == nil { + t = &GetUserSettingByID_UserSetting_DefaultOrg{} + } + return t.ID +} +func (t *GetUserSettingByID_UserSetting_DefaultOrg) GetName() string { + if t == nil { + t = &GetUserSettingByID_UserSetting_DefaultOrg{} + } + return t.Name +} +func (t *GetUserSettingByID_UserSetting_DefaultOrg) GetPersonalOrg() *bool { + if t == nil { + t = &GetUserSettingByID_UserSetting_DefaultOrg{} + } + return t.PersonalOrg +} + +type GetUserSettingByID_UserSetting struct { + ID string "json:\"id\" graphql:\"id\"" + SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + DefaultOrg *GetUserSettingByID_UserSetting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Locked bool "json:\"locked\" graphql:\"locked\"" + IsTfaEnabled *bool "json:\"isTfaEnabled,omitempty\" graphql:\"isTfaEnabled\"" + EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DeletedAt *time.Time "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetUserSettingByID_UserSetting) GetID() string { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.ID +} +func (t *GetUserSettingByID_UserSetting) GetSilencedAt() *time.Time { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.SilencedAt +} +func (t *GetUserSettingByID_UserSetting) GetStatus() *enums.UserStatus { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return &t.Status +} +func (t *GetUserSettingByID_UserSetting) GetDefaultOrg() *GetUserSettingByID_UserSetting_DefaultOrg { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.DefaultOrg +} +func (t *GetUserSettingByID_UserSetting) GetTags() []string { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.Tags +} +func (t *GetUserSettingByID_UserSetting) GetLocked() bool { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.Locked +} +func (t *GetUserSettingByID_UserSetting) GetIsTfaEnabled() *bool { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.IsTfaEnabled +} +func (t *GetUserSettingByID_UserSetting) GetEmailConfirmed() bool { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.EmailConfirmed +} +func (t *GetUserSettingByID_UserSetting) GetCreatedAt() *time.Time { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.CreatedAt +} +func (t *GetUserSettingByID_UserSetting) GetCreatedBy() *string { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.CreatedBy +} +func (t *GetUserSettingByID_UserSetting) GetDeletedAt() *time.Time { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.DeletedAt +} +func (t *GetUserSettingByID_UserSetting) GetDeletedBy() *string { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.DeletedBy +} +func (t *GetUserSettingByID_UserSetting) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.UpdatedAt +} +func (t *GetUserSettingByID_UserSetting) GetUpdatedBy() *string { + if t == nil { + t = &GetUserSettingByID_UserSetting{} + } + return t.UpdatedBy +} + +type GetUserSettings_UserSettings_Edges_Node_DefaultOrg struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +} + +func (t *GetUserSettings_UserSettings_Edges_Node_DefaultOrg) GetID() string { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node_DefaultOrg{} + } + return t.ID +} +func (t *GetUserSettings_UserSettings_Edges_Node_DefaultOrg) GetName() string { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node_DefaultOrg{} + } + return t.Name +} +func (t *GetUserSettings_UserSettings_Edges_Node_DefaultOrg) GetPersonalOrg() *bool { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node_DefaultOrg{} + } + return t.PersonalOrg +} + +type GetUserSettings_UserSettings_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + DefaultOrg *GetUserSettings_UserSettings_Edges_Node_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Locked bool "json:\"locked\" graphql:\"locked\"" + IsTfaEnabled *bool "json:\"isTfaEnabled,omitempty\" graphql:\"isTfaEnabled\"" + EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DeletedAt *time.Time "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetUserSettings_UserSettings_Edges_Node) GetID() string { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.ID +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetSilencedAt() *time.Time { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.SilencedAt +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetStatus() *enums.UserStatus { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return &t.Status +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetDefaultOrg() *GetUserSettings_UserSettings_Edges_Node_DefaultOrg { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.DefaultOrg +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetTags() []string { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.Tags +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetLocked() bool { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.Locked +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetIsTfaEnabled() *bool { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.IsTfaEnabled +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetEmailConfirmed() bool { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.EmailConfirmed +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetDeletedAt() *time.Time { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.DeletedAt +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetDeletedBy() *string { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.DeletedBy +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetUserSettings_UserSettings_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetUserSettings_UserSettings_Edges_Node{} + } + return t.UpdatedBy +} + +type GetUserSettings_UserSettings_Edges struct { + Node *GetUserSettings_UserSettings_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetUserSettings_UserSettings_Edges) GetNode() *GetUserSettings_UserSettings_Edges_Node { + if t == nil { + t = &GetUserSettings_UserSettings_Edges{} + } + return t.Node +} + +type GetUserSettings_UserSettings struct { + Edges []*GetUserSettings_UserSettings_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetUserSettings_UserSettings) GetEdges() []*GetUserSettings_UserSettings_Edges { + if t == nil { + t = &GetUserSettings_UserSettings{} + } + return t.Edges +} + +type UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg struct { + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + PersonalOrg *bool "json:\"personalOrg,omitempty\" graphql:\"personalOrg\"" +} + +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg) GetID() string { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg{} + } + return t.ID +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg) GetName() string { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg{} + } + return t.Name +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg) GetPersonalOrg() *bool { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg{} + } + return t.PersonalOrg +} + +type UpdateUserSetting_UpdateUserSetting_UserSetting struct { + ID string "json:\"id\" graphql:\"id\"" + SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + DefaultOrg *UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg "json:\"defaultOrg,omitempty\" graphql:\"defaultOrg\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + Locked bool "json:\"locked\" graphql:\"locked\"" + IsTfaEnabled *bool "json:\"isTfaEnabled,omitempty\" graphql:\"isTfaEnabled\"" + EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DeletedAt *time.Time "json:\"deletedAt,omitempty\" graphql:\"deletedAt\"" + DeletedBy *string "json:\"deletedBy,omitempty\" graphql:\"deletedBy\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetID() string { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.ID +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetSilencedAt() *time.Time { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.SilencedAt +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetStatus() *enums.UserStatus { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return &t.Status +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetDefaultOrg() *UpdateUserSetting_UpdateUserSetting_UserSetting_DefaultOrg { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.DefaultOrg +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetTags() []string { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.Tags +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetLocked() bool { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.Locked +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetIsTfaEnabled() *bool { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.IsTfaEnabled +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetEmailConfirmed() bool { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.EmailConfirmed +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.CreatedAt +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetCreatedBy() *string { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.CreatedBy +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetDeletedAt() *time.Time { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.DeletedAt +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetDeletedBy() *string { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.DeletedBy +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.UpdatedAt +} +func (t *UpdateUserSetting_UpdateUserSetting_UserSetting) GetUpdatedBy() *string { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting_UserSetting{} + } + return t.UpdatedBy +} + +type UpdateUserSetting_UpdateUserSetting struct { + UserSetting UpdateUserSetting_UpdateUserSetting_UserSetting "json:\"userSetting\" graphql:\"userSetting\"" +} + +func (t *UpdateUserSetting_UpdateUserSetting) GetUserSetting() *UpdateUserSetting_UpdateUserSetting_UserSetting { + if t == nil { + t = &UpdateUserSetting_UpdateUserSetting{} + } + return &t.UserSetting +} + +type GetAllUserSettingHistories_UserSettingHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + IsTfaEnabled *bool "json:\"isTfaEnabled,omitempty\" graphql:\"isTfaEnabled\"" + IsWebauthnAllowed *bool "json:\"isWebauthnAllowed,omitempty\" graphql:\"isWebauthnAllowed\"" + Locked bool "json:\"locked\" graphql:\"locked\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +} + +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetEmailConfirmed() bool { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.EmailConfirmed +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.ID +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetIsTfaEnabled() *bool { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.IsTfaEnabled +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetIsWebauthnAllowed() *bool { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.IsWebauthnAllowed +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetLocked() bool { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.Locked +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return &t.Operation +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetSilencedAt() *time.Time { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.SilencedAt +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetStatus() *enums.UserStatus { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return &t.Status +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetSuspendedAt() *time.Time { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.SuspendedAt +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges_Node) GetUserID() *string { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.UserID +} + +type GetAllUserSettingHistories_UserSettingHistories_Edges struct { + Node *GetAllUserSettingHistories_UserSettingHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllUserSettingHistories_UserSettingHistories_Edges) GetNode() *GetAllUserSettingHistories_UserSettingHistories_Edges_Node { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories_Edges{} + } + return t.Node +} + +type GetAllUserSettingHistories_UserSettingHistories struct { + Edges []*GetAllUserSettingHistories_UserSettingHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllUserSettingHistories_UserSettingHistories) GetEdges() []*GetAllUserSettingHistories_UserSettingHistories_Edges { + if t == nil { + t = &GetAllUserSettingHistories_UserSettingHistories{} + } + return t.Edges +} + +type GetUserSettingHistories_UserSettingHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + EmailConfirmed bool "json:\"emailConfirmed\" graphql:\"emailConfirmed\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + IsTfaEnabled *bool "json:\"isTfaEnabled,omitempty\" graphql:\"isTfaEnabled\"" + IsWebauthnAllowed *bool "json:\"isWebauthnAllowed,omitempty\" graphql:\"isWebauthnAllowed\"" + Locked bool "json:\"locked\" graphql:\"locked\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + SilencedAt *time.Time "json:\"silencedAt,omitempty\" graphql:\"silencedAt\"" + Status enums.UserStatus "json:\"status\" graphql:\"status\"" + SuspendedAt *time.Time "json:\"suspendedAt,omitempty\" graphql:\"suspendedAt\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +} + +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetEmailConfirmed() bool { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.EmailConfirmed +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.ID +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetIsTfaEnabled() *bool { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.IsTfaEnabled +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetIsWebauthnAllowed() *bool { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.IsWebauthnAllowed +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetLocked() bool { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.Locked +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return &t.Operation +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetSilencedAt() *time.Time { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.SilencedAt +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetStatus() *enums.UserStatus { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return &t.Status +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetSuspendedAt() *time.Time { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.SuspendedAt +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetUserSettingHistories_UserSettingHistories_Edges_Node) GetUserID() *string { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges_Node{} + } + return t.UserID +} + +type GetUserSettingHistories_UserSettingHistories_Edges struct { + Node *GetUserSettingHistories_UserSettingHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetUserSettingHistories_UserSettingHistories_Edges) GetNode() *GetUserSettingHistories_UserSettingHistories_Edges_Node { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories_Edges{} + } + return t.Node +} + +type GetUserSettingHistories_UserSettingHistories struct { + Edges []*GetUserSettingHistories_UserSettingHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetUserSettingHistories_UserSettingHistories) GetEdges() []*GetUserSettingHistories_UserSettingHistories_Edges { + if t == nil { + t = &GetUserSettingHistories_UserSettingHistories{} + } + return t.Edges +} + +type GetWebhookByID_Webhook_Events struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetWebhookByID_Webhook_Events) GetID() string { + if t == nil { + t = &GetWebhookByID_Webhook_Events{} + } + return t.ID +} + +type GetWebhookByID_Webhook struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" + ID string "json:\"id\" graphql:\"id\"" + LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" + LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Events []*GetWebhookByID_Webhook_Events "json:\"events,omitempty\" graphql:\"events\"" +} + +func (t *GetWebhookByID_Webhook) GetCreatedAt() *time.Time { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.CreatedAt +} +func (t *GetWebhookByID_Webhook) GetCreatedBy() *string { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.CreatedBy +} +func (t *GetWebhookByID_Webhook) GetDescription() *string { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.Description +} +func (t *GetWebhookByID_Webhook) GetDestinationURL() string { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.DestinationURL +} +func (t *GetWebhookByID_Webhook) GetEnabled() bool { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.Enabled +} +func (t *GetWebhookByID_Webhook) GetFailures() *int64 { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.Failures +} +func (t *GetWebhookByID_Webhook) GetID() string { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.ID +} +func (t *GetWebhookByID_Webhook) GetLastError() *string { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.LastError +} +func (t *GetWebhookByID_Webhook) GetLastResponse() *string { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.LastResponse +} +func (t *GetWebhookByID_Webhook) GetName() string { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.Name +} +func (t *GetWebhookByID_Webhook) GetOwnerID() *string { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.OwnerID +} +func (t *GetWebhookByID_Webhook) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.UpdatedAt +} +func (t *GetWebhookByID_Webhook) GetUpdatedBy() *string { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.UpdatedBy +} +func (t *GetWebhookByID_Webhook) GetEvents() []*GetWebhookByID_Webhook_Events { + if t == nil { + t = &GetWebhookByID_Webhook{} + } + return t.Events +} + +type GetAllWebhooks_Webhooks_Edges_Node_Events struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *GetAllWebhooks_Webhooks_Edges_Node_Events) GetID() string { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node_Events{} + } + return t.ID +} + +type GetAllWebhooks_Webhooks_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" + ID string "json:\"id\" graphql:\"id\"" + LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" + LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Events []*GetAllWebhooks_Webhooks_Edges_Node_Events "json:\"events,omitempty\" graphql:\"events\"" +} + +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.Description +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetDestinationURL() string { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.DestinationURL +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetEnabled() bool { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.Enabled +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetFailures() *int64 { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.Failures +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetID() string { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.ID +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetLastError() *string { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.LastError +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetLastResponse() *string { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.LastResponse +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetName() string { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.Name +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.OwnerID +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetAllWebhooks_Webhooks_Edges_Node) GetEvents() []*GetAllWebhooks_Webhooks_Edges_Node_Events { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges_Node{} + } + return t.Events +} + +type GetAllWebhooks_Webhooks_Edges struct { + Node *GetAllWebhooks_Webhooks_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllWebhooks_Webhooks_Edges) GetNode() *GetAllWebhooks_Webhooks_Edges_Node { + if t == nil { + t = &GetAllWebhooks_Webhooks_Edges{} + } + return t.Node +} + +type GetAllWebhooks_Webhooks struct { + Edges []*GetAllWebhooks_Webhooks_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllWebhooks_Webhooks) GetEdges() []*GetAllWebhooks_Webhooks_Edges { + if t == nil { + t = &GetAllWebhooks_Webhooks{} + } + return t.Edges +} + +type CreateWebhook_CreateWebhook_Webhook_Events struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *CreateWebhook_CreateWebhook_Webhook_Events) GetID() string { + if t == nil { + t = &CreateWebhook_CreateWebhook_Webhook_Events{} + } + return t.ID +} + +type CreateWebhook_CreateWebhook_Webhook struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" + ID string "json:\"id\" graphql:\"id\"" + LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" + LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Events []*CreateWebhook_CreateWebhook_Webhook_Events "json:\"events,omitempty\" graphql:\"events\"" +} + +func (t *CreateWebhook_CreateWebhook_Webhook) GetDescription() *string { + if t == nil { + t = &CreateWebhook_CreateWebhook_Webhook{} + } + return t.Description +} +func (t *CreateWebhook_CreateWebhook_Webhook) GetDestinationURL() string { + if t == nil { + t = &CreateWebhook_CreateWebhook_Webhook{} + } + return t.DestinationURL +} +func (t *CreateWebhook_CreateWebhook_Webhook) GetEnabled() bool { + if t == nil { + t = &CreateWebhook_CreateWebhook_Webhook{} + } + return t.Enabled +} +func (t *CreateWebhook_CreateWebhook_Webhook) GetFailures() *int64 { + if t == nil { + t = &CreateWebhook_CreateWebhook_Webhook{} + } + return t.Failures +} +func (t *CreateWebhook_CreateWebhook_Webhook) GetID() string { + if t == nil { + t = &CreateWebhook_CreateWebhook_Webhook{} + } + return t.ID +} +func (t *CreateWebhook_CreateWebhook_Webhook) GetLastError() *string { + if t == nil { + t = &CreateWebhook_CreateWebhook_Webhook{} + } + return t.LastError +} +func (t *CreateWebhook_CreateWebhook_Webhook) GetLastResponse() *string { + if t == nil { + t = &CreateWebhook_CreateWebhook_Webhook{} + } + return t.LastResponse +} +func (t *CreateWebhook_CreateWebhook_Webhook) GetName() string { + if t == nil { + t = &CreateWebhook_CreateWebhook_Webhook{} + } + return t.Name +} +func (t *CreateWebhook_CreateWebhook_Webhook) GetOwnerID() *string { + if t == nil { + t = &CreateWebhook_CreateWebhook_Webhook{} + } + return t.OwnerID +} +func (t *CreateWebhook_CreateWebhook_Webhook) GetEvents() []*CreateWebhook_CreateWebhook_Webhook_Events { + if t == nil { + t = &CreateWebhook_CreateWebhook_Webhook{} + } + return t.Events +} + +type CreateWebhook_CreateWebhook struct { + Webhook CreateWebhook_CreateWebhook_Webhook "json:\"webhook\" graphql:\"webhook\"" +} + +func (t *CreateWebhook_CreateWebhook) GetWebhook() *CreateWebhook_CreateWebhook_Webhook { + if t == nil { + t = &CreateWebhook_CreateWebhook{} + } + return &t.Webhook +} + +type CreateBulkWebhook_CreateBulkWebhook_Webhooks struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" + ID string "json:\"id\" graphql:\"id\"" + LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" + LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" +} + +func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetDescription() *string { + if t == nil { + t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + } + return t.Description +} +func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetDestinationURL() string { + if t == nil { + t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + } + return t.DestinationURL +} +func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetEnabled() bool { + if t == nil { + t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + } + return t.Enabled +} +func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetFailures() *int64 { + if t == nil { + t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + } + return t.Failures +} +func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetID() string { + if t == nil { + t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + } + return t.ID +} +func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetLastError() *string { + if t == nil { + t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + } + return t.LastError +} +func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetLastResponse() *string { + if t == nil { + t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + } + return t.LastResponse +} +func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetName() string { + if t == nil { + t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + } + return t.Name +} +func (t *CreateBulkWebhook_CreateBulkWebhook_Webhooks) GetOwnerID() *string { + if t == nil { + t = &CreateBulkWebhook_CreateBulkWebhook_Webhooks{} + } + return t.OwnerID +} + +type CreateBulkWebhook_CreateBulkWebhook struct { + Webhooks []*CreateBulkWebhook_CreateBulkWebhook_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" +} + +func (t *CreateBulkWebhook_CreateBulkWebhook) GetWebhooks() []*CreateBulkWebhook_CreateBulkWebhook_Webhooks { + if t == nil { + t = &CreateBulkWebhook_CreateBulkWebhook{} + } + return t.Webhooks +} + +type CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks struct { + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" + ID string "json:\"id\" graphql:\"id\"" + LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" + LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" +} + +func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetDescription() *string { + if t == nil { + t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + } + return t.Description +} +func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetDestinationURL() string { + if t == nil { + t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + } + return t.DestinationURL +} +func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetEnabled() bool { + if t == nil { + t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + } + return t.Enabled +} +func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetFailures() *int64 { + if t == nil { + t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + } + return t.Failures +} +func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetID() string { + if t == nil { + t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + } + return t.ID +} +func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetLastError() *string { + if t == nil { + t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + } + return t.LastError +} +func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetLastResponse() *string { + if t == nil { + t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + } + return t.LastResponse +} +func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetName() string { + if t == nil { + t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + } + return t.Name +} +func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks) GetOwnerID() *string { + if t == nil { + t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks{} + } + return t.OwnerID +} + +type CreateBulkCSVWebhook_CreateBulkCSVWebhook struct { + Webhooks []*CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks "json:\"webhooks,omitempty\" graphql:\"webhooks\"" +} + +func (t *CreateBulkCSVWebhook_CreateBulkCSVWebhook) GetWebhooks() []*CreateBulkCSVWebhook_CreateBulkCSVWebhook_Webhooks { + if t == nil { + t = &CreateBulkCSVWebhook_CreateBulkCSVWebhook{} + } + return t.Webhooks +} + +type UpdateWebhook_UpdateWebhook_Webhook_Events struct { + ID string "json:\"id\" graphql:\"id\"" +} + +func (t *UpdateWebhook_UpdateWebhook_Webhook_Events) GetID() string { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook_Events{} + } + return t.ID +} + +type UpdateWebhook_UpdateWebhook_Webhook struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" + ID string "json:\"id\" graphql:\"id\"" + LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" + LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + Events []*UpdateWebhook_UpdateWebhook_Webhook_Events "json:\"events,omitempty\" graphql:\"events\"" +} + +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.CreatedAt +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetCreatedBy() *string { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.CreatedBy +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetDescription() *string { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.Description +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetDestinationURL() string { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.DestinationURL +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetEnabled() bool { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.Enabled +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetFailures() *int64 { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.Failures +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetID() string { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.ID +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetLastError() *string { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.LastError +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetLastResponse() *string { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.LastResponse +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetName() string { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.Name +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetOwnerID() *string { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.OwnerID +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.UpdatedAt +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetUpdatedBy() *string { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.UpdatedBy +} +func (t *UpdateWebhook_UpdateWebhook_Webhook) GetEvents() []*UpdateWebhook_UpdateWebhook_Webhook_Events { + if t == nil { + t = &UpdateWebhook_UpdateWebhook_Webhook{} + } + return t.Events +} + +type UpdateWebhook_UpdateWebhook struct { + Webhook UpdateWebhook_UpdateWebhook_Webhook "json:\"webhook\" graphql:\"webhook\"" +} + +func (t *UpdateWebhook_UpdateWebhook) GetWebhook() *UpdateWebhook_UpdateWebhook_Webhook { + if t == nil { + t = &UpdateWebhook_UpdateWebhook{} + } + return &t.Webhook +} + +type DeleteWebhook_DeleteWebhook struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +} + +func (t *DeleteWebhook_DeleteWebhook) GetDeletedID() string { + if t == nil { + t = &DeleteWebhook_DeleteWebhook{} + } + return t.DeletedID +} + +type GetAllWebhookHistories_WebhookHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" + LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.Description +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetDestinationURL() string { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.DestinationURL +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetEnabled() bool { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.Enabled +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetFailures() *int64 { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.Failures +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.ID +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetLastError() *string { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.LastError +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetLastResponse() *string { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.LastResponse +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetName() string { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.Name +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return &t.Operation +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.OwnerID +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllWebhookHistories_WebhookHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.UpdatedBy +} + +type GetAllWebhookHistories_WebhookHistories_Edges struct { + Node *GetAllWebhookHistories_WebhookHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllWebhookHistories_WebhookHistories_Edges) GetNode() *GetAllWebhookHistories_WebhookHistories_Edges_Node { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories_Edges{} + } + return t.Node +} + +type GetAllWebhookHistories_WebhookHistories struct { + Edges []*GetAllWebhookHistories_WebhookHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllWebhookHistories_WebhookHistories) GetEdges() []*GetAllWebhookHistories_WebhookHistories_Edges { + if t == nil { + t = &GetAllWebhookHistories_WebhookHistories{} + } + return t.Edges +} + +type GetWebhookHistories_WebhookHistories_Edges_Node struct { + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DestinationURL string "json:\"destinationURL\" graphql:\"destinationURL\"" + Enabled bool "json:\"enabled\" graphql:\"enabled\"" + Failures *int64 "json:\"failures,omitempty\" graphql:\"failures\"" + HistoryTime time.Time "json:\"historyTime\" graphql:\"historyTime\"" + ID string "json:\"id\" graphql:\"id\"" + LastError *string "json:\"lastError,omitempty\" graphql:\"lastError\"" + LastResponse *string "json:\"lastResponse,omitempty\" graphql:\"lastResponse\"" + Name string "json:\"name\" graphql:\"name\"" + Operation history.OpType "json:\"operation\" graphql:\"operation\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Ref *string "json:\"ref,omitempty\" graphql:\"ref\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" +} + +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.Description +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetDestinationURL() string { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.DestinationURL +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetEnabled() bool { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.Enabled +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetFailures() *int64 { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.Failures +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetHistoryTime() *time.Time { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return &t.HistoryTime +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetID() string { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.ID +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetLastError() *string { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.LastError +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetLastResponse() *string { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.LastResponse +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetName() string { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.Name +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetOperation() *history.OpType { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return &t.Operation +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.OwnerID +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetRef() *string { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.Ref +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetTags() []string { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.Tags +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetWebhookHistories_WebhookHistories_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges_Node{} + } + return t.UpdatedBy +} + +type GetWebhookHistories_WebhookHistories_Edges struct { + Node *GetWebhookHistories_WebhookHistories_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetWebhookHistories_WebhookHistories_Edges) GetNode() *GetWebhookHistories_WebhookHistories_Edges_Node { + if t == nil { + t = &GetWebhookHistories_WebhookHistories_Edges{} + } + return t.Node +} + +type GetWebhookHistories_WebhookHistories struct { + Edges []*GetWebhookHistories_WebhookHistories_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetWebhookHistories_WebhookHistories) GetEdges() []*GetWebhookHistories_WebhookHistories_Edges { + if t == nil { + t = &GetWebhookHistories_WebhookHistories{} + } + return t.Edges +} + +type CreateBulkCSVActionPlan struct { + CreateBulkCSVActionPlan CreateBulkCSVActionPlan_CreateBulkCSVActionPlan "json:\"createBulkCSVActionPlan\" graphql:\"createBulkCSVActionPlan\"" +} + +func (t *CreateBulkCSVActionPlan) GetCreateBulkCSVActionPlan() *CreateBulkCSVActionPlan_CreateBulkCSVActionPlan { + if t == nil { + t = &CreateBulkCSVActionPlan{} + } + return &t.CreateBulkCSVActionPlan +} + +type CreateBulkActionPlan struct { + CreateBulkActionPlan CreateBulkActionPlan_CreateBulkActionPlan "json:\"createBulkActionPlan\" graphql:\"createBulkActionPlan\"" +} + +func (t *CreateBulkActionPlan) GetCreateBulkActionPlan() *CreateBulkActionPlan_CreateBulkActionPlan { + if t == nil { + t = &CreateBulkActionPlan{} + } + return &t.CreateBulkActionPlan +} + +type CreateActionPlan struct { + CreateActionPlan CreateActionPlan_CreateActionPlan "json:\"createActionPlan\" graphql:\"createActionPlan\"" +} + +func (t *CreateActionPlan) GetCreateActionPlan() *CreateActionPlan_CreateActionPlan { + if t == nil { + t = &CreateActionPlan{} + } + return &t.CreateActionPlan +} + +type DeleteActionPlan struct { + DeleteActionPlan DeleteActionPlan_DeleteActionPlan "json:\"deleteActionPlan\" graphql:\"deleteActionPlan\"" +} + +func (t *DeleteActionPlan) GetDeleteActionPlan() *DeleteActionPlan_DeleteActionPlan { + if t == nil { + t = &DeleteActionPlan{} + } + return &t.DeleteActionPlan +} + +type GetAllActionPlans struct { + ActionPlans GetAllActionPlans_ActionPlans "json:\"actionPlans\" graphql:\"actionPlans\"" +} + +func (t *GetAllActionPlans) GetActionPlans() *GetAllActionPlans_ActionPlans { + if t == nil { + t = &GetAllActionPlans{} + } + return &t.ActionPlans +} + +type GetActionPlanByID struct { + ActionPlan GetActionPlanByID_ActionPlan "json:\"actionPlan\" graphql:\"actionPlan\"" +} + +func (t *GetActionPlanByID) GetActionPlan() *GetActionPlanByID_ActionPlan { + if t == nil { + t = &GetActionPlanByID{} + } + return &t.ActionPlan +} + +type GetActionPlans struct { + ActionPlans GetActionPlans_ActionPlans "json:\"actionPlans\" graphql:\"actionPlans\"" +} + +func (t *GetActionPlans) GetActionPlans() *GetActionPlans_ActionPlans { + if t == nil { + t = &GetActionPlans{} + } + return &t.ActionPlans +} + +type UpdateActionPlan struct { + UpdateActionPlan UpdateActionPlan_UpdateActionPlan "json:\"updateActionPlan\" graphql:\"updateActionPlan\"" +} + +func (t *UpdateActionPlan) GetUpdateActionPlan() *UpdateActionPlan_UpdateActionPlan { + if t == nil { + t = &UpdateActionPlan{} + } + return &t.UpdateActionPlan +} + +type GetAllActionPlanHistories struct { + ActionPlanHistories GetAllActionPlanHistories_ActionPlanHistories "json:\"actionPlanHistories\" graphql:\"actionPlanHistories\"" +} + +func (t *GetAllActionPlanHistories) GetActionPlanHistories() *GetAllActionPlanHistories_ActionPlanHistories { + if t == nil { + t = &GetAllActionPlanHistories{} + } + return &t.ActionPlanHistories +} + +type GetActionPlanHistories struct { + ActionPlanHistories GetActionPlanHistories_ActionPlanHistories "json:\"actionPlanHistories\" graphql:\"actionPlanHistories\"" +} + +func (t *GetActionPlanHistories) GetActionPlanHistories() *GetActionPlanHistories_ActionPlanHistories { + if t == nil { + t = &GetActionPlanHistories{} + } + return &t.ActionPlanHistories +} + +type AdminSearch struct { + AdminSearch *AdminSearch_AdminSearch "json:\"adminSearch,omitempty\" graphql:\"adminSearch\"" +} + +func (t *AdminSearch) GetAdminSearch() *AdminSearch_AdminSearch { + if t == nil { + t = &AdminSearch{} + } + return t.AdminSearch +} + +type CreateAPIToken struct { + CreateAPIToken CreateAPIToken_CreateAPIToken "json:\"createAPIToken\" graphql:\"createAPIToken\"" +} + +func (t *CreateAPIToken) GetCreateAPIToken() *CreateAPIToken_CreateAPIToken { + if t == nil { + t = &CreateAPIToken{} + } + return &t.CreateAPIToken +} + +type UpdateAPIToken struct { + UpdateAPIToken UpdateAPIToken_UpdateAPIToken "json:\"updateAPIToken\" graphql:\"updateAPIToken\"" +} + +func (t *UpdateAPIToken) GetUpdateAPIToken() *UpdateAPIToken_UpdateAPIToken { + if t == nil { + t = &UpdateAPIToken{} + } + return &t.UpdateAPIToken +} + +type GetAllAPITokens struct { + APITokens GetAllAPITokens_APITokens "json:\"apiTokens\" graphql:\"apiTokens\"" +} + +func (t *GetAllAPITokens) GetAPITokens() *GetAllAPITokens_APITokens { + if t == nil { + t = &GetAllAPITokens{} + } + return &t.APITokens +} + +type GetAPITokenByID struct { + APIToken GetAPITokenByID_APIToken "json:\"apiToken\" graphql:\"apiToken\"" +} + +func (t *GetAPITokenByID) GetAPIToken() *GetAPITokenByID_APIToken { + if t == nil { + t = &GetAPITokenByID{} + } + return &t.APIToken +} + +type DeleteAPIToken struct { + DeleteAPIToken DeleteAPIToken_DeleteAPIToken "json:\"deleteAPIToken\" graphql:\"deleteAPIToken\"" +} + +func (t *DeleteAPIToken) GetDeleteAPIToken() *DeleteAPIToken_DeleteAPIToken { + if t == nil { + t = &DeleteAPIToken{} + } + return &t.DeleteAPIToken +} + +type CreateBulkContact struct { + CreateBulkContact CreateBulkContact_CreateBulkContact "json:\"createBulkContact\" graphql:\"createBulkContact\"" +} + +func (t *CreateBulkContact) GetCreateBulkContact() *CreateBulkContact_CreateBulkContact { + if t == nil { + t = &CreateBulkContact{} + } + return &t.CreateBulkContact +} + +type CreateBulkCSVContact struct { + CreateBulkCSVContact CreateBulkCSVContact_CreateBulkCSVContact "json:\"createBulkCSVContact\" graphql:\"createBulkCSVContact\"" +} + +func (t *CreateBulkCSVContact) GetCreateBulkCSVContact() *CreateBulkCSVContact_CreateBulkCSVContact { + if t == nil { + t = &CreateBulkCSVContact{} + } + return &t.CreateBulkCSVContact +} + +type CreateContact struct { + CreateContact CreateContact_CreateContact "json:\"createContact\" graphql:\"createContact\"" +} + +func (t *CreateContact) GetCreateContact() *CreateContact_CreateContact { + if t == nil { + t = &CreateContact{} + } + return &t.CreateContact +} + +type DeleteContact struct { + DeleteContact DeleteContact_DeleteContact "json:\"deleteContact\" graphql:\"deleteContact\"" +} + +func (t *DeleteContact) GetDeleteContact() *DeleteContact_DeleteContact { + if t == nil { + t = &DeleteContact{} + } + return &t.DeleteContact +} + +type GetAllContacts struct { + Contacts GetAllContacts_Contacts "json:\"contacts\" graphql:\"contacts\"" +} + +func (t *GetAllContacts) GetContacts() *GetAllContacts_Contacts { + if t == nil { + t = &GetAllContacts{} + } + return &t.Contacts +} + +type GetContactByID struct { + Contact GetContactByID_Contact "json:\"contact\" graphql:\"contact\"" +} + +func (t *GetContactByID) GetContact() *GetContactByID_Contact { + if t == nil { + t = &GetContactByID{} + } + return &t.Contact +} + +type GetContacts struct { + Contacts GetContacts_Contacts "json:\"contacts\" graphql:\"contacts\"" +} + +func (t *GetContacts) GetContacts() *GetContacts_Contacts { + if t == nil { + t = &GetContacts{} + } + return &t.Contacts +} + +type UpdateContact struct { + UpdateContact UpdateContact_UpdateContact "json:\"updateContact\" graphql:\"updateContact\"" +} + +func (t *UpdateContact) GetUpdateContact() *UpdateContact_UpdateContact { + if t == nil { + t = &UpdateContact{} + } + return &t.UpdateContact +} + +type GetAllContactHistories struct { + ContactHistories GetAllContactHistories_ContactHistories "json:\"contactHistories\" graphql:\"contactHistories\"" +} + +func (t *GetAllContactHistories) GetContactHistories() *GetAllContactHistories_ContactHistories { + if t == nil { + t = &GetAllContactHistories{} + } + return &t.ContactHistories +} + +type GetContactHistories struct { + ContactHistories GetContactHistories_ContactHistories "json:\"contactHistories\" graphql:\"contactHistories\"" +} + +func (t *GetContactHistories) GetContactHistories() *GetContactHistories_ContactHistories { + if t == nil { + t = &GetContactHistories{} + } + return &t.ContactHistories +} + +type CreateBulkCSVControl struct { + CreateBulkCSVControl CreateBulkCSVControl_CreateBulkCSVControl "json:\"createBulkCSVControl\" graphql:\"createBulkCSVControl\"" +} + +func (t *CreateBulkCSVControl) GetCreateBulkCSVControl() *CreateBulkCSVControl_CreateBulkCSVControl { + if t == nil { + t = &CreateBulkCSVControl{} + } + return &t.CreateBulkCSVControl +} + +type CreateBulkControl struct { + CreateBulkControl CreateBulkControl_CreateBulkControl "json:\"createBulkControl\" graphql:\"createBulkControl\"" +} + +func (t *CreateBulkControl) GetCreateBulkControl() *CreateBulkControl_CreateBulkControl { + if t == nil { + t = &CreateBulkControl{} + } + return &t.CreateBulkControl +} + +type CreateControl struct { + CreateControl CreateControl_CreateControl "json:\"createControl\" graphql:\"createControl\"" +} + +func (t *CreateControl) GetCreateControl() *CreateControl_CreateControl { + if t == nil { + t = &CreateControl{} + } + return &t.CreateControl +} + +type DeleteControl struct { + DeleteControl DeleteControl_DeleteControl "json:\"deleteControl\" graphql:\"deleteControl\"" +} + +func (t *DeleteControl) GetDeleteControl() *DeleteControl_DeleteControl { + if t == nil { + t = &DeleteControl{} + } + return &t.DeleteControl +} + +type GetAllControls struct { + Controls GetAllControls_Controls "json:\"controls\" graphql:\"controls\"" +} + +func (t *GetAllControls) GetControls() *GetAllControls_Controls { + if t == nil { + t = &GetAllControls{} + } + return &t.Controls +} + +type GetControlByID struct { + Control GetControlByID_Control "json:\"control\" graphql:\"control\"" +} + +func (t *GetControlByID) GetControl() *GetControlByID_Control { + if t == nil { + t = &GetControlByID{} + } + return &t.Control +} + +type GetControls struct { + Controls GetControls_Controls "json:\"controls\" graphql:\"controls\"" +} + +func (t *GetControls) GetControls() *GetControls_Controls { + if t == nil { + t = &GetControls{} + } + return &t.Controls +} + +type UpdateControl struct { + UpdateControl UpdateControl_UpdateControl "json:\"updateControl\" graphql:\"updateControl\"" +} + +func (t *UpdateControl) GetUpdateControl() *UpdateControl_UpdateControl { + if t == nil { + t = &UpdateControl{} + } + return &t.UpdateControl +} + +type GetAllControlHistories struct { + ControlHistories GetAllControlHistories_ControlHistories "json:\"controlHistories\" graphql:\"controlHistories\"" +} + +func (t *GetAllControlHistories) GetControlHistories() *GetAllControlHistories_ControlHistories { + if t == nil { + t = &GetAllControlHistories{} + } + return &t.ControlHistories +} + +type GetControlHistories struct { + ControlHistories GetControlHistories_ControlHistories "json:\"controlHistories\" graphql:\"controlHistories\"" +} + +func (t *GetControlHistories) GetControlHistories() *GetControlHistories_ControlHistories { + if t == nil { + t = &GetControlHistories{} + } + return &t.ControlHistories +} + +type CreateBulkCSVControlObjective struct { + CreateBulkCSVControlObjective CreateBulkCSVControlObjective_CreateBulkCSVControlObjective "json:\"createBulkCSVControlObjective\" graphql:\"createBulkCSVControlObjective\"" +} + +func (t *CreateBulkCSVControlObjective) GetCreateBulkCSVControlObjective() *CreateBulkCSVControlObjective_CreateBulkCSVControlObjective { + if t == nil { + t = &CreateBulkCSVControlObjective{} + } + return &t.CreateBulkCSVControlObjective +} + +type CreateBulkControlObjective struct { + CreateBulkControlObjective CreateBulkControlObjective_CreateBulkControlObjective "json:\"createBulkControlObjective\" graphql:\"createBulkControlObjective\"" +} + +func (t *CreateBulkControlObjective) GetCreateBulkControlObjective() *CreateBulkControlObjective_CreateBulkControlObjective { + if t == nil { + t = &CreateBulkControlObjective{} + } + return &t.CreateBulkControlObjective +} + +type CreateControlObjective struct { + CreateControlObjective CreateControlObjective_CreateControlObjective "json:\"createControlObjective\" graphql:\"createControlObjective\"" +} + +func (t *CreateControlObjective) GetCreateControlObjective() *CreateControlObjective_CreateControlObjective { + if t == nil { + t = &CreateControlObjective{} + } + return &t.CreateControlObjective +} + +type DeleteControlObjective struct { + DeleteControlObjective DeleteControlObjective_DeleteControlObjective "json:\"deleteControlObjective\" graphql:\"deleteControlObjective\"" +} + +func (t *DeleteControlObjective) GetDeleteControlObjective() *DeleteControlObjective_DeleteControlObjective { + if t == nil { + t = &DeleteControlObjective{} + } + return &t.DeleteControlObjective +} + +type GetAllControlObjectives struct { + ControlObjectives GetAllControlObjectives_ControlObjectives "json:\"controlObjectives\" graphql:\"controlObjectives\"" +} + +func (t *GetAllControlObjectives) GetControlObjectives() *GetAllControlObjectives_ControlObjectives { + if t == nil { + t = &GetAllControlObjectives{} + } + return &t.ControlObjectives +} + +type GetControlObjectiveByID struct { + ControlObjective GetControlObjectiveByID_ControlObjective "json:\"controlObjective\" graphql:\"controlObjective\"" +} + +func (t *GetControlObjectiveByID) GetControlObjective() *GetControlObjectiveByID_ControlObjective { + if t == nil { + t = &GetControlObjectiveByID{} + } + return &t.ControlObjective +} + +type GetControlObjectives struct { + ControlObjectives GetControlObjectives_ControlObjectives "json:\"controlObjectives\" graphql:\"controlObjectives\"" +} + +func (t *GetControlObjectives) GetControlObjectives() *GetControlObjectives_ControlObjectives { + if t == nil { + t = &GetControlObjectives{} + } + return &t.ControlObjectives +} + +type UpdateControlObjective struct { + UpdateControlObjective UpdateControlObjective_UpdateControlObjective "json:\"updateControlObjective\" graphql:\"updateControlObjective\"" +} + +func (t *UpdateControlObjective) GetUpdateControlObjective() *UpdateControlObjective_UpdateControlObjective { + if t == nil { + t = &UpdateControlObjective{} + } + return &t.UpdateControlObjective +} + +type GetAllControlObjectiveHistories struct { + ControlObjectiveHistories GetAllControlObjectiveHistories_ControlObjectiveHistories "json:\"controlObjectiveHistories\" graphql:\"controlObjectiveHistories\"" +} + +func (t *GetAllControlObjectiveHistories) GetControlObjectiveHistories() *GetAllControlObjectiveHistories_ControlObjectiveHistories { + if t == nil { + t = &GetAllControlObjectiveHistories{} + } + return &t.ControlObjectiveHistories +} + +type GetControlObjectiveHistories struct { + ControlObjectiveHistories GetControlObjectiveHistories_ControlObjectiveHistories "json:\"controlObjectiveHistories\" graphql:\"controlObjectiveHistories\"" +} + +func (t *GetControlObjectiveHistories) GetControlObjectiveHistories() *GetControlObjectiveHistories_ControlObjectiveHistories { + if t == nil { + t = &GetControlObjectiveHistories{} + } + return &t.ControlObjectiveHistories +} + +type CreateDocumentData struct { + CreateDocumentData CreateDocumentData_CreateDocumentData "json:\"createDocumentData\" graphql:\"createDocumentData\"" +} + +func (t *CreateDocumentData) GetCreateDocumentData() *CreateDocumentData_CreateDocumentData { + if t == nil { + t = &CreateDocumentData{} + } + return &t.CreateDocumentData +} + +type DeleteDocumentData struct { + DeleteDocumentData DeleteDocumentData_DeleteDocumentData "json:\"deleteDocumentData\" graphql:\"deleteDocumentData\"" +} + +func (t *DeleteDocumentData) GetDeleteDocumentData() *DeleteDocumentData_DeleteDocumentData { + if t == nil { + t = &DeleteDocumentData{} + } + return &t.DeleteDocumentData +} + +type GetDocumentDataByID struct { + DocumentData GetDocumentDataByID_DocumentData "json:\"documentData\" graphql:\"documentData\"" +} + +func (t *GetDocumentDataByID) GetDocumentData() *GetDocumentDataByID_DocumentData { + if t == nil { + t = &GetDocumentDataByID{} + } + return &t.DocumentData +} + +type UpdateDocumentData struct { + UpdateDocumentData UpdateDocumentData_UpdateDocumentData "json:\"updateDocumentData\" graphql:\"updateDocumentData\"" +} + +func (t *UpdateDocumentData) GetUpdateDocumentData() *UpdateDocumentData_UpdateDocumentData { + if t == nil { + t = &UpdateDocumentData{} + } + return &t.UpdateDocumentData +} + +type GetAllDocumentDataHistories struct { + DocumentDataHistories GetAllDocumentDataHistories_DocumentDataHistories "json:\"documentDataHistories\" graphql:\"documentDataHistories\"" +} + +func (t *GetAllDocumentDataHistories) GetDocumentDataHistories() *GetAllDocumentDataHistories_DocumentDataHistories { + if t == nil { + t = &GetAllDocumentDataHistories{} + } + return &t.DocumentDataHistories +} + +type GetDocumentDataHistories struct { + DocumentDataHistories GetDocumentDataHistories_DocumentDataHistories "json:\"documentDataHistories\" graphql:\"documentDataHistories\"" +} + +func (t *GetDocumentDataHistories) GetDocumentDataHistories() *GetDocumentDataHistories_DocumentDataHistories { + if t == nil { + t = &GetDocumentDataHistories{} + } + return &t.DocumentDataHistories +} + +type CreateBulkCSVEntitlement struct { + CreateBulkCSVEntitlement CreateBulkCSVEntitlement_CreateBulkCSVEntitlement "json:\"createBulkCSVEntitlement\" graphql:\"createBulkCSVEntitlement\"" +} + +func (t *CreateBulkCSVEntitlement) GetCreateBulkCSVEntitlement() *CreateBulkCSVEntitlement_CreateBulkCSVEntitlement { + if t == nil { + t = &CreateBulkCSVEntitlement{} + } + return &t.CreateBulkCSVEntitlement +} + +type CreateBulkEntitlement struct { + CreateBulkEntitlement CreateBulkEntitlement_CreateBulkEntitlement "json:\"createBulkEntitlement\" graphql:\"createBulkEntitlement\"" +} + +func (t *CreateBulkEntitlement) GetCreateBulkEntitlement() *CreateBulkEntitlement_CreateBulkEntitlement { + if t == nil { + t = &CreateBulkEntitlement{} + } + return &t.CreateBulkEntitlement +} + +type CreateEntitlement struct { + CreateEntitlement CreateEntitlement_CreateEntitlement "json:\"createEntitlement\" graphql:\"createEntitlement\"" +} + +func (t *CreateEntitlement) GetCreateEntitlement() *CreateEntitlement_CreateEntitlement { + if t == nil { + t = &CreateEntitlement{} + } + return &t.CreateEntitlement +} + +type DeleteEntitlement struct { + DeleteEntitlement DeleteEntitlement_DeleteEntitlement "json:\"deleteEntitlement\" graphql:\"deleteEntitlement\"" +} + +func (t *DeleteEntitlement) GetDeleteEntitlement() *DeleteEntitlement_DeleteEntitlement { + if t == nil { + t = &DeleteEntitlement{} + } + return &t.DeleteEntitlement +} + +type GetAllEntitlements struct { + Entitlements GetAllEntitlements_Entitlements "json:\"entitlements\" graphql:\"entitlements\"" +} + +func (t *GetAllEntitlements) GetEntitlements() *GetAllEntitlements_Entitlements { + if t == nil { + t = &GetAllEntitlements{} + } + return &t.Entitlements +} + +type GetEntitlementByID struct { + Entitlement GetEntitlementByID_Entitlement "json:\"entitlement\" graphql:\"entitlement\"" +} + +func (t *GetEntitlementByID) GetEntitlement() *GetEntitlementByID_Entitlement { + if t == nil { + t = &GetEntitlementByID{} + } + return &t.Entitlement +} + +type GetEntitlements struct { + Entitlements GetEntitlements_Entitlements "json:\"entitlements\" graphql:\"entitlements\"" +} + +func (t *GetEntitlements) GetEntitlements() *GetEntitlements_Entitlements { + if t == nil { + t = &GetEntitlements{} + } + return &t.Entitlements +} + +type UpdateEntitlement struct { + UpdateEntitlement UpdateEntitlement_UpdateEntitlement "json:\"updateEntitlement\" graphql:\"updateEntitlement\"" +} + +func (t *UpdateEntitlement) GetUpdateEntitlement() *UpdateEntitlement_UpdateEntitlement { + if t == nil { + t = &UpdateEntitlement{} + } + return &t.UpdateEntitlement +} + +type GetAllEntitlementHistories struct { + EntitlementHistories GetAllEntitlementHistories_EntitlementHistories "json:\"entitlementHistories\" graphql:\"entitlementHistories\"" +} + +func (t *GetAllEntitlementHistories) GetEntitlementHistories() *GetAllEntitlementHistories_EntitlementHistories { + if t == nil { + t = &GetAllEntitlementHistories{} + } + return &t.EntitlementHistories +} + +type GetEntitlementHistories struct { + EntitlementHistories GetEntitlementHistories_EntitlementHistories "json:\"entitlementHistories\" graphql:\"entitlementHistories\"" +} + +func (t *GetEntitlementHistories) GetEntitlementHistories() *GetEntitlementHistories_EntitlementHistories { + if t == nil { + t = &GetEntitlementHistories{} + } + return &t.EntitlementHistories +} + +type CreateBulkCSVEntitlementPlan struct { + CreateBulkCSVEntitlementPlan CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan "json:\"createBulkCSVEntitlementPlan\" graphql:\"createBulkCSVEntitlementPlan\"" +} + +func (t *CreateBulkCSVEntitlementPlan) GetCreateBulkCSVEntitlementPlan() *CreateBulkCSVEntitlementPlan_CreateBulkCSVEntitlementPlan { + if t == nil { + t = &CreateBulkCSVEntitlementPlan{} + } + return &t.CreateBulkCSVEntitlementPlan +} + +type CreateBulkEntitlementPlan struct { + CreateBulkEntitlementPlan CreateBulkEntitlementPlan_CreateBulkEntitlementPlan "json:\"createBulkEntitlementPlan\" graphql:\"createBulkEntitlementPlan\"" +} + +func (t *CreateBulkEntitlementPlan) GetCreateBulkEntitlementPlan() *CreateBulkEntitlementPlan_CreateBulkEntitlementPlan { + if t == nil { + t = &CreateBulkEntitlementPlan{} + } + return &t.CreateBulkEntitlementPlan +} + +type CreateEntitlementPlan struct { + CreateEntitlementPlan CreateEntitlementPlan_CreateEntitlementPlan "json:\"createEntitlementPlan\" graphql:\"createEntitlementPlan\"" +} + +func (t *CreateEntitlementPlan) GetCreateEntitlementPlan() *CreateEntitlementPlan_CreateEntitlementPlan { + if t == nil { + t = &CreateEntitlementPlan{} + } + return &t.CreateEntitlementPlan +} + +type DeleteEntitlementPlan struct { + DeleteEntitlementPlan DeleteEntitlementPlan_DeleteEntitlementPlan "json:\"deleteEntitlementPlan\" graphql:\"deleteEntitlementPlan\"" +} + +func (t *DeleteEntitlementPlan) GetDeleteEntitlementPlan() *DeleteEntitlementPlan_DeleteEntitlementPlan { + if t == nil { + t = &DeleteEntitlementPlan{} + } + return &t.DeleteEntitlementPlan +} + +type GetAllEntitlementPlans struct { + EntitlementPlans GetAllEntitlementPlans_EntitlementPlans "json:\"entitlementPlans\" graphql:\"entitlementPlans\"" +} + +func (t *GetAllEntitlementPlans) GetEntitlementPlans() *GetAllEntitlementPlans_EntitlementPlans { + if t == nil { + t = &GetAllEntitlementPlans{} + } + return &t.EntitlementPlans +} + +type GetEntitlementPlanByID struct { + EntitlementPlan GetEntitlementPlanByID_EntitlementPlan "json:\"entitlementPlan\" graphql:\"entitlementPlan\"" +} + +func (t *GetEntitlementPlanByID) GetEntitlementPlan() *GetEntitlementPlanByID_EntitlementPlan { + if t == nil { + t = &GetEntitlementPlanByID{} + } + return &t.EntitlementPlan +} + +type GetEntitlementPlans struct { + EntitlementPlans GetEntitlementPlans_EntitlementPlans "json:\"entitlementPlans\" graphql:\"entitlementPlans\"" +} + +func (t *GetEntitlementPlans) GetEntitlementPlans() *GetEntitlementPlans_EntitlementPlans { + if t == nil { + t = &GetEntitlementPlans{} + } + return &t.EntitlementPlans +} + +type UpdateEntitlementPlan struct { + UpdateEntitlementPlan UpdateEntitlementPlan_UpdateEntitlementPlan "json:\"updateEntitlementPlan\" graphql:\"updateEntitlementPlan\"" +} + +func (t *UpdateEntitlementPlan) GetUpdateEntitlementPlan() *UpdateEntitlementPlan_UpdateEntitlementPlan { + if t == nil { + t = &UpdateEntitlementPlan{} + } + return &t.UpdateEntitlementPlan +} + +type CreateBulkCSVEntitlementPlanFeature struct { + CreateBulkCSVEntitlementPlanFeature CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature "json:\"createBulkCSVEntitlementPlanFeature\" graphql:\"createBulkCSVEntitlementPlanFeature\"" +} + +func (t *CreateBulkCSVEntitlementPlanFeature) GetCreateBulkCSVEntitlementPlanFeature() *CreateBulkCSVEntitlementPlanFeature_CreateBulkCSVEntitlementPlanFeature { + if t == nil { + t = &CreateBulkCSVEntitlementPlanFeature{} + } + return &t.CreateBulkCSVEntitlementPlanFeature +} + +type CreateBulkEntitlementPlanFeature struct { + CreateBulkEntitlementPlanFeature CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature "json:\"createBulkEntitlementPlanFeature\" graphql:\"createBulkEntitlementPlanFeature\"" +} + +func (t *CreateBulkEntitlementPlanFeature) GetCreateBulkEntitlementPlanFeature() *CreateBulkEntitlementPlanFeature_CreateBulkEntitlementPlanFeature { + if t == nil { + t = &CreateBulkEntitlementPlanFeature{} + } + return &t.CreateBulkEntitlementPlanFeature +} + +type CreateEntitlementPlanFeature struct { + CreateEntitlementPlanFeature CreateEntitlementPlanFeature_CreateEntitlementPlanFeature "json:\"createEntitlementPlanFeature\" graphql:\"createEntitlementPlanFeature\"" +} + +func (t *CreateEntitlementPlanFeature) GetCreateEntitlementPlanFeature() *CreateEntitlementPlanFeature_CreateEntitlementPlanFeature { + if t == nil { + t = &CreateEntitlementPlanFeature{} + } + return &t.CreateEntitlementPlanFeature +} + +type DeleteEntitlementPlanFeature struct { + DeleteEntitlementPlanFeature DeleteEntitlementPlanFeature_DeleteEntitlementPlanFeature "json:\"deleteEntitlementPlanFeature\" graphql:\"deleteEntitlementPlanFeature\"" +} + +func (t *DeleteEntitlementPlanFeature) GetDeleteEntitlementPlanFeature() *DeleteEntitlementPlanFeature_DeleteEntitlementPlanFeature { + if t == nil { + t = &DeleteEntitlementPlanFeature{} + } + return &t.DeleteEntitlementPlanFeature +} + +type GetAllEntitlementPlanFeatures struct { + EntitlementPlanFeatures GetAllEntitlementPlanFeatures_EntitlementPlanFeatures "json:\"entitlementPlanFeatures\" graphql:\"entitlementPlanFeatures\"" +} + +func (t *GetAllEntitlementPlanFeatures) GetEntitlementPlanFeatures() *GetAllEntitlementPlanFeatures_EntitlementPlanFeatures { + if t == nil { + t = &GetAllEntitlementPlanFeatures{} + } + return &t.EntitlementPlanFeatures +} + +type GetEntitlementPlanFeatureByID struct { + EntitlementPlanFeature GetEntitlementPlanFeatureByID_EntitlementPlanFeature "json:\"entitlementPlanFeature\" graphql:\"entitlementPlanFeature\"" +} + +func (t *GetEntitlementPlanFeatureByID) GetEntitlementPlanFeature() *GetEntitlementPlanFeatureByID_EntitlementPlanFeature { + if t == nil { + t = &GetEntitlementPlanFeatureByID{} + } + return &t.EntitlementPlanFeature +} + +type GetEntitlementPlanFeatures struct { + EntitlementPlanFeatures GetEntitlementPlanFeatures_EntitlementPlanFeatures "json:\"entitlementPlanFeatures\" graphql:\"entitlementPlanFeatures\"" +} + +func (t *GetEntitlementPlanFeatures) GetEntitlementPlanFeatures() *GetEntitlementPlanFeatures_EntitlementPlanFeatures { + if t == nil { + t = &GetEntitlementPlanFeatures{} + } + return &t.EntitlementPlanFeatures +} + +type UpdateEntitlementPlanFeature struct { + UpdateEntitlementPlanFeature UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature "json:\"updateEntitlementPlanFeature\" graphql:\"updateEntitlementPlanFeature\"" +} + +func (t *UpdateEntitlementPlanFeature) GetUpdateEntitlementPlanFeature() *UpdateEntitlementPlanFeature_UpdateEntitlementPlanFeature { + if t == nil { + t = &UpdateEntitlementPlanFeature{} + } + return &t.UpdateEntitlementPlanFeature +} + +type GetAllEntitlementPlanFeatureHistories struct { + EntitlementPlanFeatureHistories GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories "json:\"entitlementPlanFeatureHistories\" graphql:\"entitlementPlanFeatureHistories\"" +} + +func (t *GetAllEntitlementPlanFeatureHistories) GetEntitlementPlanFeatureHistories() *GetAllEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories { + if t == nil { + t = &GetAllEntitlementPlanFeatureHistories{} + } + return &t.EntitlementPlanFeatureHistories +} + +type GetEntitlementPlanFeatureHistories struct { + EntitlementPlanFeatureHistories GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories "json:\"entitlementPlanFeatureHistories\" graphql:\"entitlementPlanFeatureHistories\"" +} + +func (t *GetEntitlementPlanFeatureHistories) GetEntitlementPlanFeatureHistories() *GetEntitlementPlanFeatureHistories_EntitlementPlanFeatureHistories { + if t == nil { + t = &GetEntitlementPlanFeatureHistories{} + } + return &t.EntitlementPlanFeatureHistories +} + +type GetAllEntitlementPlanHistories struct { + EntitlementPlanHistories GetAllEntitlementPlanHistories_EntitlementPlanHistories "json:\"entitlementPlanHistories\" graphql:\"entitlementPlanHistories\"" +} + +func (t *GetAllEntitlementPlanHistories) GetEntitlementPlanHistories() *GetAllEntitlementPlanHistories_EntitlementPlanHistories { + if t == nil { + t = &GetAllEntitlementPlanHistories{} + } + return &t.EntitlementPlanHistories +} + +type GetEntitlementPlanHistories struct { + EntitlementPlanHistories GetEntitlementPlanHistories_EntitlementPlanHistories "json:\"entitlementPlanHistories\" graphql:\"entitlementPlanHistories\"" +} + +func (t *GetEntitlementPlanHistories) GetEntitlementPlanHistories() *GetEntitlementPlanHistories_EntitlementPlanHistories { + if t == nil { + t = &GetEntitlementPlanHistories{} + } + return &t.EntitlementPlanHistories +} + +type CreateBulkCSVEntity struct { + CreateBulkCSVEntity CreateBulkCSVEntity_CreateBulkCSVEntity "json:\"createBulkCSVEntity\" graphql:\"createBulkCSVEntity\"" +} + +func (t *CreateBulkCSVEntity) GetCreateBulkCSVEntity() *CreateBulkCSVEntity_CreateBulkCSVEntity { + if t == nil { + t = &CreateBulkCSVEntity{} + } + return &t.CreateBulkCSVEntity +} + +type CreateBulkEntity struct { + CreateBulkEntity CreateBulkEntity_CreateBulkEntity "json:\"createBulkEntity\" graphql:\"createBulkEntity\"" +} + +func (t *CreateBulkEntity) GetCreateBulkEntity() *CreateBulkEntity_CreateBulkEntity { + if t == nil { + t = &CreateBulkEntity{} + } + return &t.CreateBulkEntity +} + +type CreateEntity struct { + CreateEntity CreateEntity_CreateEntity "json:\"createEntity\" graphql:\"createEntity\"" +} + +func (t *CreateEntity) GetCreateEntity() *CreateEntity_CreateEntity { + if t == nil { + t = &CreateEntity{} + } + return &t.CreateEntity +} + +type DeleteEntity struct { + DeleteEntity DeleteEntity_DeleteEntity "json:\"deleteEntity\" graphql:\"deleteEntity\"" +} + +func (t *DeleteEntity) GetDeleteEntity() *DeleteEntity_DeleteEntity { + if t == nil { + t = &DeleteEntity{} + } + return &t.DeleteEntity +} + +type GetAllEntities struct { + Entities GetAllEntities_Entities "json:\"entities\" graphql:\"entities\"" +} + +func (t *GetAllEntities) GetEntities() *GetAllEntities_Entities { + if t == nil { + t = &GetAllEntities{} + } + return &t.Entities +} + +type GetEntities struct { + Entities GetEntities_Entities "json:\"entities\" graphql:\"entities\"" +} + +func (t *GetEntities) GetEntities() *GetEntities_Entities { + if t == nil { + t = &GetEntities{} + } + return &t.Entities +} + +type GetEntityByID struct { + Entity GetEntityByID_Entity "json:\"entity\" graphql:\"entity\"" +} + +func (t *GetEntityByID) GetEntity() *GetEntityByID_Entity { + if t == nil { + t = &GetEntityByID{} + } + return &t.Entity +} + +type UpdateEntity struct { + UpdateEntity UpdateEntity_UpdateEntity "json:\"updateEntity\" graphql:\"updateEntity\"" +} + +func (t *UpdateEntity) GetUpdateEntity() *UpdateEntity_UpdateEntity { + if t == nil { + t = &UpdateEntity{} + } + return &t.UpdateEntity +} + +type GetAllEntityHistories struct { + EntityHistories GetAllEntityHistories_EntityHistories "json:\"entityHistories\" graphql:\"entityHistories\"" +} + +func (t *GetAllEntityHistories) GetEntityHistories() *GetAllEntityHistories_EntityHistories { + if t == nil { + t = &GetAllEntityHistories{} + } + return &t.EntityHistories +} + +type GetEntityHistories struct { + EntityHistories GetEntityHistories_EntityHistories "json:\"entityHistories\" graphql:\"entityHistories\"" +} + +func (t *GetEntityHistories) GetEntityHistories() *GetEntityHistories_EntityHistories { + if t == nil { + t = &GetEntityHistories{} + } + return &t.EntityHistories +} + +type CreateBulkCSVEntityType struct { + CreateBulkCSVEntityType CreateBulkCSVEntityType_CreateBulkCSVEntityType "json:\"createBulkCSVEntityType\" graphql:\"createBulkCSVEntityType\"" +} + +func (t *CreateBulkCSVEntityType) GetCreateBulkCSVEntityType() *CreateBulkCSVEntityType_CreateBulkCSVEntityType { + if t == nil { + t = &CreateBulkCSVEntityType{} + } + return &t.CreateBulkCSVEntityType +} + +type CreateBulkEntityType struct { + CreateBulkEntityType CreateBulkEntityType_CreateBulkEntityType "json:\"createBulkEntityType\" graphql:\"createBulkEntityType\"" +} + +func (t *CreateBulkEntityType) GetCreateBulkEntityType() *CreateBulkEntityType_CreateBulkEntityType { + if t == nil { + t = &CreateBulkEntityType{} + } + return &t.CreateBulkEntityType +} + +type CreateEntityType struct { + CreateEntityType CreateEntityType_CreateEntityType "json:\"createEntityType\" graphql:\"createEntityType\"" +} + +func (t *CreateEntityType) GetCreateEntityType() *CreateEntityType_CreateEntityType { + if t == nil { + t = &CreateEntityType{} + } + return &t.CreateEntityType +} + +type DeleteEntityType struct { + DeleteEntityType DeleteEntityType_DeleteEntityType "json:\"deleteEntityType\" graphql:\"deleteEntityType\"" +} + +func (t *DeleteEntityType) GetDeleteEntityType() *DeleteEntityType_DeleteEntityType { + if t == nil { + t = &DeleteEntityType{} + } + return &t.DeleteEntityType +} + +type GetAllEntityTypes struct { + EntityTypes GetAllEntityTypes_EntityTypes "json:\"entityTypes\" graphql:\"entityTypes\"" +} + +func (t *GetAllEntityTypes) GetEntityTypes() *GetAllEntityTypes_EntityTypes { + if t == nil { + t = &GetAllEntityTypes{} + } + return &t.EntityTypes +} + +type GetEntityTypeByID struct { + EntityType GetEntityTypeByID_EntityType "json:\"entityType\" graphql:\"entityType\"" +} + +func (t *GetEntityTypeByID) GetEntityType() *GetEntityTypeByID_EntityType { + if t == nil { + t = &GetEntityTypeByID{} + } + return &t.EntityType +} + +type GetEntityTypes struct { + EntityTypes GetEntityTypes_EntityTypes "json:\"entityTypes\" graphql:\"entityTypes\"" +} + +func (t *GetEntityTypes) GetEntityTypes() *GetEntityTypes_EntityTypes { + if t == nil { + t = &GetEntityTypes{} + } + return &t.EntityTypes +} + +type UpdateEntityType struct { + UpdateEntityType UpdateEntityType_UpdateEntityType "json:\"updateEntityType\" graphql:\"updateEntityType\"" +} + +func (t *UpdateEntityType) GetUpdateEntityType() *UpdateEntityType_UpdateEntityType { + if t == nil { + t = &UpdateEntityType{} + } + return &t.UpdateEntityType +} + +type GetAllEntityTypeHistories struct { + EntityTypeHistories GetAllEntityTypeHistories_EntityTypeHistories "json:\"entityTypeHistories\" graphql:\"entityTypeHistories\"" +} + +func (t *GetAllEntityTypeHistories) GetEntityTypeHistories() *GetAllEntityTypeHistories_EntityTypeHistories { + if t == nil { + t = &GetAllEntityTypeHistories{} + } + return &t.EntityTypeHistories +} + +type GetEntityTypeHistories struct { + EntityTypeHistories GetEntityTypeHistories_EntityTypeHistories "json:\"entityTypeHistories\" graphql:\"entityTypeHistories\"" +} + +func (t *GetEntityTypeHistories) GetEntityTypeHistories() *GetEntityTypeHistories_EntityTypeHistories { + if t == nil { + t = &GetEntityTypeHistories{} + } + return &t.EntityTypeHistories +} + +type CreateBulkCSVEvent struct { + CreateBulkCSVEvent CreateBulkCSVEvent_CreateBulkCSVEvent "json:\"createBulkCSVEvent\" graphql:\"createBulkCSVEvent\"" +} + +func (t *CreateBulkCSVEvent) GetCreateBulkCSVEvent() *CreateBulkCSVEvent_CreateBulkCSVEvent { + if t == nil { + t = &CreateBulkCSVEvent{} + } + return &t.CreateBulkCSVEvent +} + +type CreateBulkEvent struct { + CreateBulkEvent CreateBulkEvent_CreateBulkEvent "json:\"createBulkEvent\" graphql:\"createBulkEvent\"" +} + +func (t *CreateBulkEvent) GetCreateBulkEvent() *CreateBulkEvent_CreateBulkEvent { + if t == nil { + t = &CreateBulkEvent{} + } + return &t.CreateBulkEvent +} + +type CreateEvent struct { + CreateEvent CreateEvent_CreateEvent "json:\"createEvent\" graphql:\"createEvent\"" +} + +func (t *CreateEvent) GetCreateEvent() *CreateEvent_CreateEvent { + if t == nil { + t = &CreateEvent{} + } + return &t.CreateEvent +} + +type DeleteEvent struct { + DeleteEvent DeleteEvent_DeleteEvent "json:\"deleteEvent\" graphql:\"deleteEvent\"" +} + +func (t *DeleteEvent) GetDeleteEvent() *DeleteEvent_DeleteEvent { + if t == nil { + t = &DeleteEvent{} + } + return &t.DeleteEvent +} + +type GetAllEvents struct { + Events GetAllEvents_Events "json:\"events\" graphql:\"events\"" +} + +func (t *GetAllEvents) GetEvents() *GetAllEvents_Events { + if t == nil { + t = &GetAllEvents{} + } + return &t.Events +} + +type GetEventByID struct { + Event GetEventByID_Event "json:\"event\" graphql:\"event\"" +} + +func (t *GetEventByID) GetEvent() *GetEventByID_Event { + if t == nil { + t = &GetEventByID{} + } + return &t.Event +} + +type GetEvents struct { + Events GetEvents_Events "json:\"events\" graphql:\"events\"" +} + +func (t *GetEvents) GetEvents() *GetEvents_Events { + if t == nil { + t = &GetEvents{} + } + return &t.Events +} + +type UpdateEvent struct { + UpdateEvent UpdateEvent_UpdateEvent "json:\"updateEvent\" graphql:\"updateEvent\"" +} + +func (t *UpdateEvent) GetUpdateEvent() *UpdateEvent_UpdateEvent { + if t == nil { + t = &UpdateEvent{} + } + return &t.UpdateEvent +} + +type GetAllEventHistories struct { + EventHistories GetAllEventHistories_EventHistories "json:\"eventHistories\" graphql:\"eventHistories\"" +} + +func (t *GetAllEventHistories) GetEventHistories() *GetAllEventHistories_EventHistories { + if t == nil { + t = &GetAllEventHistories{} + } + return &t.EventHistories +} + +type GetEventHistories struct { + EventHistories GetEventHistories_EventHistories "json:\"eventHistories\" graphql:\"eventHistories\"" +} + +func (t *GetEventHistories) GetEventHistories() *GetEventHistories_EventHistories { + if t == nil { + t = &GetEventHistories{} + } + return &t.EventHistories +} + +type CreateBulkCSVFeature struct { + CreateBulkCSVFeature CreateBulkCSVFeature_CreateBulkCSVFeature "json:\"createBulkCSVFeature\" graphql:\"createBulkCSVFeature\"" +} + +func (t *CreateBulkCSVFeature) GetCreateBulkCSVFeature() *CreateBulkCSVFeature_CreateBulkCSVFeature { + if t == nil { + t = &CreateBulkCSVFeature{} + } + return &t.CreateBulkCSVFeature +} + +type CreateBulkFeature struct { + CreateBulkFeature CreateBulkFeature_CreateBulkFeature "json:\"createBulkFeature\" graphql:\"createBulkFeature\"" +} + +func (t *CreateBulkFeature) GetCreateBulkFeature() *CreateBulkFeature_CreateBulkFeature { + if t == nil { + t = &CreateBulkFeature{} + } + return &t.CreateBulkFeature +} + +type CreateFeature struct { + CreateFeature CreateFeature_CreateFeature "json:\"createFeature\" graphql:\"createFeature\"" +} + +func (t *CreateFeature) GetCreateFeature() *CreateFeature_CreateFeature { + if t == nil { + t = &CreateFeature{} + } + return &t.CreateFeature +} + +type DeleteFeature struct { + DeleteFeature DeleteFeature_DeleteFeature "json:\"deleteFeature\" graphql:\"deleteFeature\"" +} + +func (t *DeleteFeature) GetDeleteFeature() *DeleteFeature_DeleteFeature { + if t == nil { + t = &DeleteFeature{} + } + return &t.DeleteFeature +} + +type GetAllFeatures struct { + Features GetAllFeatures_Features "json:\"features\" graphql:\"features\"" +} + +func (t *GetAllFeatures) GetFeatures() *GetAllFeatures_Features { + if t == nil { + t = &GetAllFeatures{} + } + return &t.Features +} + +type GetFeatureByID struct { + Feature GetFeatureByID_Feature "json:\"feature\" graphql:\"feature\"" +} + +func (t *GetFeatureByID) GetFeature() *GetFeatureByID_Feature { + if t == nil { + t = &GetFeatureByID{} + } + return &t.Feature +} + +type GetFeatures struct { + Features GetFeatures_Features "json:\"features\" graphql:\"features\"" +} + +func (t *GetFeatures) GetFeatures() *GetFeatures_Features { + if t == nil { + t = &GetFeatures{} + } + return &t.Features +} + +type UpdateFeature struct { + UpdateFeature UpdateFeature_UpdateFeature "json:\"updateFeature\" graphql:\"updateFeature\"" +} + +func (t *UpdateFeature) GetUpdateFeature() *UpdateFeature_UpdateFeature { + if t == nil { + t = &UpdateFeature{} + } + return &t.UpdateFeature +} + +type GetAllFeatureHistories struct { + FeatureHistories GetAllFeatureHistories_FeatureHistories "json:\"featureHistories\" graphql:\"featureHistories\"" +} + +func (t *GetAllFeatureHistories) GetFeatureHistories() *GetAllFeatureHistories_FeatureHistories { + if t == nil { + t = &GetAllFeatureHistories{} + } + return &t.FeatureHistories +} + +type GetFeatureHistories struct { + FeatureHistories GetFeatureHistories_FeatureHistories "json:\"featureHistories\" graphql:\"featureHistories\"" +} + +func (t *GetFeatureHistories) GetFeatureHistories() *GetFeatureHistories_FeatureHistories { + if t == nil { + t = &GetFeatureHistories{} + } + return &t.FeatureHistories +} + +type DeleteFile struct { + DeleteFile DeleteFile_DeleteFile "json:\"deleteFile\" graphql:\"deleteFile\"" +} + +func (t *DeleteFile) GetDeleteFile() *DeleteFile_DeleteFile { + if t == nil { + t = &DeleteFile{} + } + return &t.DeleteFile +} + +type GetAllFiles struct { + Files GetAllFiles_Files "json:\"files\" graphql:\"files\"" +} + +func (t *GetAllFiles) GetFiles() *GetAllFiles_Files { + if t == nil { + t = &GetAllFiles{} + } + return &t.Files +} + +type GetFileByID struct { + File GetFileByID_File "json:\"file\" graphql:\"file\"" +} + +func (t *GetFileByID) GetFile() *GetFileByID_File { + if t == nil { + t = &GetFileByID{} + } + return &t.File +} + +type GetFiles struct { + Files GetFiles_Files "json:\"files\" graphql:\"files\"" +} + +func (t *GetFiles) GetFiles() *GetFiles_Files { + if t == nil { + t = &GetFiles{} + } + return &t.Files +} + +type GetAllFileHistories struct { + FileHistories GetAllFileHistories_FileHistories "json:\"fileHistories\" graphql:\"fileHistories\"" +} + +func (t *GetAllFileHistories) GetFileHistories() *GetAllFileHistories_FileHistories { + if t == nil { + t = &GetAllFileHistories{} + } + return &t.FileHistories +} + +type GetFileHistories struct { + FileHistories GetFileHistories_FileHistories "json:\"fileHistories\" graphql:\"fileHistories\"" +} + +func (t *GetFileHistories) GetFileHistories() *GetFileHistories_FileHistories { + if t == nil { + t = &GetFileHistories{} + } + return &t.FileHistories +} + +type CreateBulkCSVGroup struct { + CreateBulkCSVGroup CreateBulkCSVGroup_CreateBulkCSVGroup "json:\"createBulkCSVGroup\" graphql:\"createBulkCSVGroup\"" +} + +func (t *CreateBulkCSVGroup) GetCreateBulkCSVGroup() *CreateBulkCSVGroup_CreateBulkCSVGroup { + if t == nil { + t = &CreateBulkCSVGroup{} + } + return &t.CreateBulkCSVGroup +} + +type CreateBulkGroup struct { + CreateBulkGroup CreateBulkGroup_CreateBulkGroup "json:\"createBulkGroup\" graphql:\"createBulkGroup\"" +} + +func (t *CreateBulkGroup) GetCreateBulkGroup() *CreateBulkGroup_CreateBulkGroup { + if t == nil { + t = &CreateBulkGroup{} + } + return &t.CreateBulkGroup +} + +type CreateGroup struct { + CreateGroup CreateGroup_CreateGroup "json:\"createGroup\" graphql:\"createGroup\"" +} + +func (t *CreateGroup) GetCreateGroup() *CreateGroup_CreateGroup { + if t == nil { + t = &CreateGroup{} + } + return &t.CreateGroup +} + +type DeleteGroup struct { + DeleteGroup DeleteGroup_DeleteGroup "json:\"deleteGroup\" graphql:\"deleteGroup\"" +} + +func (t *DeleteGroup) GetDeleteGroup() *DeleteGroup_DeleteGroup { + if t == nil { + t = &DeleteGroup{} + } + return &t.DeleteGroup +} + +type GetAllGroups struct { + Groups GetAllGroups_Groups "json:\"groups\" graphql:\"groups\"" +} + +func (t *GetAllGroups) GetGroups() *GetAllGroups_Groups { + if t == nil { + t = &GetAllGroups{} + } + return &t.Groups +} + +type GetGroupByID struct { + Group GetGroupByID_Group "json:\"group\" graphql:\"group\"" +} + +func (t *GetGroupByID) GetGroup() *GetGroupByID_Group { + if t == nil { + t = &GetGroupByID{} + } + return &t.Group +} + +type GetGroups struct { + Groups GetGroups_Groups "json:\"groups\" graphql:\"groups\"" +} + +func (t *GetGroups) GetGroups() *GetGroups_Groups { + if t == nil { + t = &GetGroups{} + } + return &t.Groups +} + +type UpdateGroup struct { + UpdateGroup UpdateGroup_UpdateGroup "json:\"updateGroup\" graphql:\"updateGroup\"" +} + +func (t *UpdateGroup) GetUpdateGroup() *UpdateGroup_UpdateGroup { + if t == nil { + t = &UpdateGroup{} + } + return &t.UpdateGroup +} + +type GetAllGroupHistories struct { + GroupHistories GetAllGroupHistories_GroupHistories "json:\"groupHistories\" graphql:\"groupHistories\"" +} + +func (t *GetAllGroupHistories) GetGroupHistories() *GetAllGroupHistories_GroupHistories { + if t == nil { + t = &GetAllGroupHistories{} + } + return &t.GroupHistories +} + +type GetGroupHistories struct { + GroupHistories GetGroupHistories_GroupHistories "json:\"groupHistories\" graphql:\"groupHistories\"" +} + +func (t *GetGroupHistories) GetGroupHistories() *GetGroupHistories_GroupHistories { + if t == nil { + t = &GetGroupHistories{} + } + return &t.GroupHistories +} + +type AddUserToGroupWithRole struct { + CreateGroupMembership AddUserToGroupWithRole_CreateGroupMembership "json:\"createGroupMembership\" graphql:\"createGroupMembership\"" +} + +func (t *AddUserToGroupWithRole) GetCreateGroupMembership() *AddUserToGroupWithRole_CreateGroupMembership { + if t == nil { + t = &AddUserToGroupWithRole{} + } + return &t.CreateGroupMembership +} + +type CreateBulkCSVGroupMembers struct { + CreateBulkCSVGroupMembership CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership "json:\"createBulkCSVGroupMembership\" graphql:\"createBulkCSVGroupMembership\"" +} + +func (t *CreateBulkCSVGroupMembers) GetCreateBulkCSVGroupMembership() *CreateBulkCSVGroupMembers_CreateBulkCSVGroupMembership { + if t == nil { + t = &CreateBulkCSVGroupMembers{} + } + return &t.CreateBulkCSVGroupMembership +} + +type CreateBulkGroupMembers struct { + CreateBulkGroupMembership CreateBulkGroupMembers_CreateBulkGroupMembership "json:\"createBulkGroupMembership\" graphql:\"createBulkGroupMembership\"" +} + +func (t *CreateBulkGroupMembers) GetCreateBulkGroupMembership() *CreateBulkGroupMembers_CreateBulkGroupMembership { + if t == nil { + t = &CreateBulkGroupMembers{} + } + return &t.CreateBulkGroupMembership +} + +type GetGroupMembersByGroupID struct { + GroupMemberships GetGroupMembersByGroupID_GroupMemberships "json:\"groupMemberships\" graphql:\"groupMemberships\"" +} + +func (t *GetGroupMembersByGroupID) GetGroupMemberships() *GetGroupMembersByGroupID_GroupMemberships { + if t == nil { + t = &GetGroupMembersByGroupID{} + } + return &t.GroupMemberships +} + +type RemoveUserFromGroup struct { + DeleteGroupMembership RemoveUserFromGroup_DeleteGroupMembership "json:\"deleteGroupMembership\" graphql:\"deleteGroupMembership\"" +} + +func (t *RemoveUserFromGroup) GetDeleteGroupMembership() *RemoveUserFromGroup_DeleteGroupMembership { + if t == nil { + t = &RemoveUserFromGroup{} + } + return &t.DeleteGroupMembership +} + +type UpdateUserRoleInGroup struct { + UpdateGroupMembership UpdateUserRoleInGroup_UpdateGroupMembership "json:\"updateGroupMembership\" graphql:\"updateGroupMembership\"" +} + +func (t *UpdateUserRoleInGroup) GetUpdateGroupMembership() *UpdateUserRoleInGroup_UpdateGroupMembership { + if t == nil { + t = &UpdateUserRoleInGroup{} + } + return &t.UpdateGroupMembership +} + +type GetAllGroupMembershipHistories struct { + GroupMembershipHistories GetAllGroupMembershipHistories_GroupMembershipHistories "json:\"groupMembershipHistories\" graphql:\"groupMembershipHistories\"" +} + +func (t *GetAllGroupMembershipHistories) GetGroupMembershipHistories() *GetAllGroupMembershipHistories_GroupMembershipHistories { + if t == nil { + t = &GetAllGroupMembershipHistories{} + } + return &t.GroupMembershipHistories +} + +type GetGroupMembershipHistories struct { + GroupMembershipHistories GetGroupMembershipHistories_GroupMembershipHistories "json:\"groupMembershipHistories\" graphql:\"groupMembershipHistories\"" +} + +func (t *GetGroupMembershipHistories) GetGroupMembershipHistories() *GetGroupMembershipHistories_GroupMembershipHistories { + if t == nil { + t = &GetGroupMembershipHistories{} + } + return &t.GroupMembershipHistories +} + +type GetAllGroupSettings struct { + GroupSettings GetAllGroupSettings_GroupSettings "json:\"groupSettings\" graphql:\"groupSettings\"" +} + +func (t *GetAllGroupSettings) GetGroupSettings() *GetAllGroupSettings_GroupSettings { + if t == nil { + t = &GetAllGroupSettings{} + } + return &t.GroupSettings +} + +type GetGroupSettingByID struct { + GroupSetting GetGroupSettingByID_GroupSetting "json:\"groupSetting\" graphql:\"groupSetting\"" +} + +func (t *GetGroupSettingByID) GetGroupSetting() *GetGroupSettingByID_GroupSetting { + if t == nil { + t = &GetGroupSettingByID{} + } + return &t.GroupSetting +} + +type GetGroupSettings struct { + GroupSettings GetGroupSettings_GroupSettings "json:\"groupSettings\" graphql:\"groupSettings\"" +} + +func (t *GetGroupSettings) GetGroupSettings() *GetGroupSettings_GroupSettings { + if t == nil { + t = &GetGroupSettings{} + } + return &t.GroupSettings +} + +type UpdateGroupSetting struct { + UpdateGroupSetting UpdateGroupSetting_UpdateGroupSetting "json:\"updateGroupSetting\" graphql:\"updateGroupSetting\"" +} + +func (t *UpdateGroupSetting) GetUpdateGroupSetting() *UpdateGroupSetting_UpdateGroupSetting { + if t == nil { + t = &UpdateGroupSetting{} + } + return &t.UpdateGroupSetting +} + +type GetAllGroupSettingHistories struct { + GroupSettingHistories GetAllGroupSettingHistories_GroupSettingHistories "json:\"groupSettingHistories\" graphql:\"groupSettingHistories\"" +} + +func (t *GetAllGroupSettingHistories) GetGroupSettingHistories() *GetAllGroupSettingHistories_GroupSettingHistories { + if t == nil { + t = &GetAllGroupSettingHistories{} + } + return &t.GroupSettingHistories +} + +type GetGroupSettingHistories struct { + GroupSettingHistories GetGroupSettingHistories_GroupSettingHistories "json:\"groupSettingHistories\" graphql:\"groupSettingHistories\"" +} + +func (t *GetGroupSettingHistories) GetGroupSettingHistories() *GetGroupSettingHistories_GroupSettingHistories { + if t == nil { + t = &GetGroupSettingHistories{} + } + return &t.GroupSettingHistories +} + +type CreateBulkCSVHush struct { + CreateBulkCSVHush CreateBulkCSVHush_CreateBulkCSVHush "json:\"createBulkCSVHush\" graphql:\"createBulkCSVHush\"" +} + +func (t *CreateBulkCSVHush) GetCreateBulkCSVHush() *CreateBulkCSVHush_CreateBulkCSVHush { + if t == nil { + t = &CreateBulkCSVHush{} + } + return &t.CreateBulkCSVHush +} + +type CreateBulkHush struct { + CreateBulkHush CreateBulkHush_CreateBulkHush "json:\"createBulkHush\" graphql:\"createBulkHush\"" +} + +func (t *CreateBulkHush) GetCreateBulkHush() *CreateBulkHush_CreateBulkHush { + if t == nil { + t = &CreateBulkHush{} + } + return &t.CreateBulkHush +} + +type CreateHush struct { + CreateHush CreateHush_CreateHush "json:\"createHush\" graphql:\"createHush\"" +} + +func (t *CreateHush) GetCreateHush() *CreateHush_CreateHush { + if t == nil { + t = &CreateHush{} + } + return &t.CreateHush +} + +type GetAllHushes struct { + Hushes GetAllHushes_Hushes "json:\"hushes\" graphql:\"hushes\"" +} + +func (t *GetAllHushes) GetHushes() *GetAllHushes_Hushes { + if t == nil { + t = &GetAllHushes{} + } + return &t.Hushes +} + +type GetHushByID struct { + Hush GetHushByID_Hush "json:\"hush\" graphql:\"hush\"" +} + +func (t *GetHushByID) GetHush() *GetHushByID_Hush { + if t == nil { + t = &GetHushByID{} + } + return &t.Hush +} + +type GetHushes struct { + Hushes GetHushes_Hushes "json:\"hushes\" graphql:\"hushes\"" +} + +func (t *GetHushes) GetHushes() *GetHushes_Hushes { + if t == nil { + t = &GetHushes{} + } + return &t.Hushes +} + +type UpdateHush struct { + UpdateHush UpdateHush_UpdateHush "json:\"updateHush\" graphql:\"updateHush\"" +} + +func (t *UpdateHush) GetUpdateHush() *UpdateHush_UpdateHush { + if t == nil { + t = &UpdateHush{} + } + return &t.UpdateHush +} + +type GetAllHushHistories struct { + HushHistories GetAllHushHistories_HushHistories "json:\"hushHistories\" graphql:\"hushHistories\"" +} + +func (t *GetAllHushHistories) GetHushHistories() *GetAllHushHistories_HushHistories { + if t == nil { + t = &GetAllHushHistories{} + } + return &t.HushHistories +} + +type GetHushHistories struct { + HushHistories GetHushHistories_HushHistories "json:\"hushHistories\" graphql:\"hushHistories\"" +} + +func (t *GetHushHistories) GetHushHistories() *GetHushHistories_HushHistories { + if t == nil { + t = &GetHushHistories{} + } + return &t.HushHistories +} + +type CreateBulkCSVIntegration struct { + CreateBulkCSVIntegration CreateBulkCSVIntegration_CreateBulkCSVIntegration "json:\"createBulkCSVIntegration\" graphql:\"createBulkCSVIntegration\"" +} + +func (t *CreateBulkCSVIntegration) GetCreateBulkCSVIntegration() *CreateBulkCSVIntegration_CreateBulkCSVIntegration { + if t == nil { + t = &CreateBulkCSVIntegration{} + } + return &t.CreateBulkCSVIntegration +} + +type CreateBulkIntegration struct { + CreateBulkIntegration CreateBulkIntegration_CreateBulkIntegration "json:\"createBulkIntegration\" graphql:\"createBulkIntegration\"" +} + +func (t *CreateBulkIntegration) GetCreateBulkIntegration() *CreateBulkIntegration_CreateBulkIntegration { + if t == nil { + t = &CreateBulkIntegration{} + } + return &t.CreateBulkIntegration +} + +type CreateIntegration struct { + CreateIntegration CreateIntegration_CreateIntegration "json:\"createIntegration\" graphql:\"createIntegration\"" +} + +func (t *CreateIntegration) GetCreateIntegration() *CreateIntegration_CreateIntegration { + if t == nil { + t = &CreateIntegration{} + } + return &t.CreateIntegration +} + +type DeleteIntegration struct { + DeleteIntegration DeleteIntegration_DeleteIntegration "json:\"deleteIntegration\" graphql:\"deleteIntegration\"" +} + +func (t *DeleteIntegration) GetDeleteIntegration() *DeleteIntegration_DeleteIntegration { + if t == nil { + t = &DeleteIntegration{} + } + return &t.DeleteIntegration +} + +type GetAllIntegrations struct { + Integrations GetAllIntegrations_Integrations "json:\"integrations\" graphql:\"integrations\"" +} + +func (t *GetAllIntegrations) GetIntegrations() *GetAllIntegrations_Integrations { + if t == nil { + t = &GetAllIntegrations{} + } + return &t.Integrations +} + +type GetIntegrationByID struct { + Integration GetIntegrationByID_Integration "json:\"integration\" graphql:\"integration\"" +} + +func (t *GetIntegrationByID) GetIntegration() *GetIntegrationByID_Integration { + if t == nil { + t = &GetIntegrationByID{} + } + return &t.Integration +} + +type GetIntegrations struct { + Integrations GetIntegrations_Integrations "json:\"integrations\" graphql:\"integrations\"" +} + +func (t *GetIntegrations) GetIntegrations() *GetIntegrations_Integrations { + if t == nil { + t = &GetIntegrations{} + } + return &t.Integrations +} + +type UpdateIntegration struct { + UpdateIntegration UpdateIntegration_UpdateIntegration "json:\"updateIntegration\" graphql:\"updateIntegration\"" +} + +func (t *UpdateIntegration) GetUpdateIntegration() *UpdateIntegration_UpdateIntegration { + if t == nil { + t = &UpdateIntegration{} + } + return &t.UpdateIntegration +} + +type GetAllIntegrationHistories struct { + IntegrationHistories GetAllIntegrationHistories_IntegrationHistories "json:\"integrationHistories\" graphql:\"integrationHistories\"" +} + +func (t *GetAllIntegrationHistories) GetIntegrationHistories() *GetAllIntegrationHistories_IntegrationHistories { + if t == nil { + t = &GetAllIntegrationHistories{} + } + return &t.IntegrationHistories +} + +type GetIntegrationHistories struct { + IntegrationHistories GetIntegrationHistories_IntegrationHistories "json:\"integrationHistories\" graphql:\"integrationHistories\"" +} + +func (t *GetIntegrationHistories) GetIntegrationHistories() *GetIntegrationHistories_IntegrationHistories { + if t == nil { + t = &GetIntegrationHistories{} + } + return &t.IntegrationHistories +} + +type CreateBulkCSVInternalPolicy struct { + CreateBulkCSVInternalPolicy CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy "json:\"createBulkCSVInternalPolicy\" graphql:\"createBulkCSVInternalPolicy\"" +} + +func (t *CreateBulkCSVInternalPolicy) GetCreateBulkCSVInternalPolicy() *CreateBulkCSVInternalPolicy_CreateBulkCSVInternalPolicy { + if t == nil { + t = &CreateBulkCSVInternalPolicy{} + } + return &t.CreateBulkCSVInternalPolicy +} + +type CreateBulkInternalPolicy struct { + CreateBulkInternalPolicy CreateBulkInternalPolicy_CreateBulkInternalPolicy "json:\"createBulkInternalPolicy\" graphql:\"createBulkInternalPolicy\"" +} + +func (t *CreateBulkInternalPolicy) GetCreateBulkInternalPolicy() *CreateBulkInternalPolicy_CreateBulkInternalPolicy { + if t == nil { + t = &CreateBulkInternalPolicy{} + } + return &t.CreateBulkInternalPolicy +} + +type CreateInternalPolicy struct { + CreateInternalPolicy CreateInternalPolicy_CreateInternalPolicy "json:\"createInternalPolicy\" graphql:\"createInternalPolicy\"" +} + +func (t *CreateInternalPolicy) GetCreateInternalPolicy() *CreateInternalPolicy_CreateInternalPolicy { + if t == nil { + t = &CreateInternalPolicy{} + } + return &t.CreateInternalPolicy +} + +type DeleteInternalPolicy struct { + DeleteInternalPolicy DeleteInternalPolicy_DeleteInternalPolicy "json:\"deleteInternalPolicy\" graphql:\"deleteInternalPolicy\"" +} + +func (t *DeleteInternalPolicy) GetDeleteInternalPolicy() *DeleteInternalPolicy_DeleteInternalPolicy { + if t == nil { + t = &DeleteInternalPolicy{} + } + return &t.DeleteInternalPolicy +} + +type GetAllInternalPolicies struct { + InternalPolicies GetAllInternalPolicies_InternalPolicies "json:\"internalPolicies\" graphql:\"internalPolicies\"" +} + +func (t *GetAllInternalPolicies) GetInternalPolicies() *GetAllInternalPolicies_InternalPolicies { + if t == nil { + t = &GetAllInternalPolicies{} + } + return &t.InternalPolicies +} + +type GetInternalPolicyByID struct { + InternalPolicy GetInternalPolicyByID_InternalPolicy "json:\"internalPolicy\" graphql:\"internalPolicy\"" +} + +func (t *GetInternalPolicyByID) GetInternalPolicy() *GetInternalPolicyByID_InternalPolicy { + if t == nil { + t = &GetInternalPolicyByID{} + } + return &t.InternalPolicy +} + +type GetInternalPolicies struct { + InternalPolicies GetInternalPolicies_InternalPolicies "json:\"internalPolicies\" graphql:\"internalPolicies\"" +} + +func (t *GetInternalPolicies) GetInternalPolicies() *GetInternalPolicies_InternalPolicies { + if t == nil { + t = &GetInternalPolicies{} + } + return &t.InternalPolicies +} + +type UpdateInternalPolicy struct { + UpdateInternalPolicy UpdateInternalPolicy_UpdateInternalPolicy "json:\"updateInternalPolicy\" graphql:\"updateInternalPolicy\"" +} + +func (t *UpdateInternalPolicy) GetUpdateInternalPolicy() *UpdateInternalPolicy_UpdateInternalPolicy { + if t == nil { + t = &UpdateInternalPolicy{} + } + return &t.UpdateInternalPolicy +} + +type GetAllInternalPolicyHistories struct { + InternalPolicyHistories GetAllInternalPolicyHistories_InternalPolicyHistories "json:\"internalPolicyHistories\" graphql:\"internalPolicyHistories\"" +} + +func (t *GetAllInternalPolicyHistories) GetInternalPolicyHistories() *GetAllInternalPolicyHistories_InternalPolicyHistories { + if t == nil { + t = &GetAllInternalPolicyHistories{} + } + return &t.InternalPolicyHistories +} + +type GetInternalPolicyHistories struct { + InternalPolicyHistories GetInternalPolicyHistories_InternalPolicyHistories "json:\"internalPolicyHistories\" graphql:\"internalPolicyHistories\"" +} + +func (t *GetInternalPolicyHistories) GetInternalPolicyHistories() *GetInternalPolicyHistories_InternalPolicyHistories { + if t == nil { + t = &GetInternalPolicyHistories{} + } + return &t.InternalPolicyHistories +} + +type CreateBulkCSVInvite struct { + CreateBulkCSVInvite CreateBulkCSVInvite_CreateBulkCSVInvite "json:\"createBulkCSVInvite\" graphql:\"createBulkCSVInvite\"" +} + +func (t *CreateBulkCSVInvite) GetCreateBulkCSVInvite() *CreateBulkCSVInvite_CreateBulkCSVInvite { + if t == nil { + t = &CreateBulkCSVInvite{} + } + return &t.CreateBulkCSVInvite +} + +type CreateBulkInvite struct { + CreateBulkInvite CreateBulkInvite_CreateBulkInvite "json:\"createBulkInvite\" graphql:\"createBulkInvite\"" +} + +func (t *CreateBulkInvite) GetCreateBulkInvite() *CreateBulkInvite_CreateBulkInvite { + if t == nil { + t = &CreateBulkInvite{} + } + return &t.CreateBulkInvite +} + +type CreateInvite struct { + CreateInvite CreateInvite_CreateInvite "json:\"createInvite\" graphql:\"createInvite\"" +} + +func (t *CreateInvite) GetCreateInvite() *CreateInvite_CreateInvite { + if t == nil { + t = &CreateInvite{} + } + return &t.CreateInvite +} + +type DeleteInvite struct { + DeleteInvite DeleteInvite_DeleteInvite "json:\"deleteInvite\" graphql:\"deleteInvite\"" +} + +func (t *DeleteInvite) GetDeleteInvite() *DeleteInvite_DeleteInvite { + if t == nil { + t = &DeleteInvite{} + } + return &t.DeleteInvite +} + +type GetInviteByID struct { + Invite GetInviteByID_Invite "json:\"invite\" graphql:\"invite\"" +} + +func (t *GetInviteByID) GetInvite() *GetInviteByID_Invite { + if t == nil { + t = &GetInviteByID{} + } + return &t.Invite +} + +type GetAllInvites struct { + Invites GetAllInvites_Invites "json:\"invites\" graphql:\"invites\"" +} + +func (t *GetAllInvites) GetInvites() *GetAllInvites_Invites { + if t == nil { + t = &GetAllInvites{} + } + return &t.Invites +} + +type InvitesByOrgID struct { + Invites InvitesByOrgID_Invites "json:\"invites\" graphql:\"invites\"" +} + +func (t *InvitesByOrgID) GetInvites() *InvitesByOrgID_Invites { + if t == nil { + t = &InvitesByOrgID{} + } + return &t.Invites +} + +type CreateBulkCSVNarrative struct { + CreateBulkCSVNarrative CreateBulkCSVNarrative_CreateBulkCSVNarrative "json:\"createBulkCSVNarrative\" graphql:\"createBulkCSVNarrative\"" +} + +func (t *CreateBulkCSVNarrative) GetCreateBulkCSVNarrative() *CreateBulkCSVNarrative_CreateBulkCSVNarrative { + if t == nil { + t = &CreateBulkCSVNarrative{} + } + return &t.CreateBulkCSVNarrative +} + +type CreateBulkNarrative struct { + CreateBulkNarrative CreateBulkNarrative_CreateBulkNarrative "json:\"createBulkNarrative\" graphql:\"createBulkNarrative\"" +} + +func (t *CreateBulkNarrative) GetCreateBulkNarrative() *CreateBulkNarrative_CreateBulkNarrative { + if t == nil { + t = &CreateBulkNarrative{} + } + return &t.CreateBulkNarrative +} + +type CreateNarrative struct { + CreateNarrative CreateNarrative_CreateNarrative "json:\"createNarrative\" graphql:\"createNarrative\"" +} + +func (t *CreateNarrative) GetCreateNarrative() *CreateNarrative_CreateNarrative { + if t == nil { + t = &CreateNarrative{} + } + return &t.CreateNarrative +} + +type DeleteNarrative struct { + DeleteNarrative DeleteNarrative_DeleteNarrative "json:\"deleteNarrative\" graphql:\"deleteNarrative\"" +} + +func (t *DeleteNarrative) GetDeleteNarrative() *DeleteNarrative_DeleteNarrative { + if t == nil { + t = &DeleteNarrative{} + } + return &t.DeleteNarrative +} + +type GetAllNarratives struct { + Narratives GetAllNarratives_Narratives "json:\"narratives\" graphql:\"narratives\"" +} + +func (t *GetAllNarratives) GetNarratives() *GetAllNarratives_Narratives { + if t == nil { + t = &GetAllNarratives{} + } + return &t.Narratives +} + +type GetNarrativeByID struct { + Narrative GetNarrativeByID_Narrative "json:\"narrative\" graphql:\"narrative\"" +} + +func (t *GetNarrativeByID) GetNarrative() *GetNarrativeByID_Narrative { + if t == nil { + t = &GetNarrativeByID{} + } + return &t.Narrative +} + +type GetNarratives struct { + Narratives GetNarratives_Narratives "json:\"narratives\" graphql:\"narratives\"" +} + +func (t *GetNarratives) GetNarratives() *GetNarratives_Narratives { + if t == nil { + t = &GetNarratives{} + } + return &t.Narratives +} + +type UpdateNarrative struct { + UpdateNarrative UpdateNarrative_UpdateNarrative "json:\"updateNarrative\" graphql:\"updateNarrative\"" +} + +func (t *UpdateNarrative) GetUpdateNarrative() *UpdateNarrative_UpdateNarrative { + if t == nil { + t = &UpdateNarrative{} + } + return &t.UpdateNarrative +} + +type GetAllNarrativeHistories struct { + NarrativeHistories GetAllNarrativeHistories_NarrativeHistories "json:\"narrativeHistories\" graphql:\"narrativeHistories\"" +} + +func (t *GetAllNarrativeHistories) GetNarrativeHistories() *GetAllNarrativeHistories_NarrativeHistories { + if t == nil { + t = &GetAllNarrativeHistories{} + } + return &t.NarrativeHistories +} + +type GetNarrativeHistories struct { + NarrativeHistories GetNarrativeHistories_NarrativeHistories "json:\"narrativeHistories\" graphql:\"narrativeHistories\"" +} + +func (t *GetNarrativeHistories) GetNarrativeHistories() *GetNarrativeHistories_NarrativeHistories { + if t == nil { + t = &GetNarrativeHistories{} + } + return &t.NarrativeHistories +} + +type GetAllNoteHistories struct { + NoteHistories GetAllNoteHistories_NoteHistories "json:\"noteHistories\" graphql:\"noteHistories\"" +} + +func (t *GetAllNoteHistories) GetNoteHistories() *GetAllNoteHistories_NoteHistories { + if t == nil { + t = &GetAllNoteHistories{} + } + return &t.NoteHistories +} + +type GetNoteHistories struct { + NoteHistories GetNoteHistories_NoteHistories "json:\"noteHistories\" graphql:\"noteHistories\"" +} + +func (t *GetNoteHistories) GetNoteHistories() *GetNoteHistories_NoteHistories { + if t == nil { + t = &GetNoteHistories{} + } + return &t.NoteHistories +} + +type GetAllOauthProviderHistories struct { + OauthProviderHistories GetAllOauthProviderHistories_OauthProviderHistories "json:\"oauthProviderHistories\" graphql:\"oauthProviderHistories\"" +} + +func (t *GetAllOauthProviderHistories) GetOauthProviderHistories() *GetAllOauthProviderHistories_OauthProviderHistories { + if t == nil { + t = &GetAllOauthProviderHistories{} + } + return &t.OauthProviderHistories +} + +type GetOauthProviderHistories struct { + OauthProviderHistories GetOauthProviderHistories_OauthProviderHistories "json:\"oauthProviderHistories\" graphql:\"oauthProviderHistories\"" +} + +func (t *GetOauthProviderHistories) GetOauthProviderHistories() *GetOauthProviderHistories_OauthProviderHistories { + if t == nil { + t = &GetOauthProviderHistories{} + } + return &t.OauthProviderHistories +} + +type CreateBulkCSVOhAuthTooToken struct { + CreateBulkCSVOhAuthTooToken CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken "json:\"createBulkCSVOhAuthTooToken\" graphql:\"createBulkCSVOhAuthTooToken\"" +} + +func (t *CreateBulkCSVOhAuthTooToken) GetCreateBulkCSVOhAuthTooToken() *CreateBulkCSVOhAuthTooToken_CreateBulkCSVOhAuthTooToken { + if t == nil { + t = &CreateBulkCSVOhAuthTooToken{} + } + return &t.CreateBulkCSVOhAuthTooToken +} + +type CreateBulkOhAuthTooToken struct { + CreateBulkOhAuthTooToken CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken "json:\"createBulkOhAuthTooToken\" graphql:\"createBulkOhAuthTooToken\"" +} + +func (t *CreateBulkOhAuthTooToken) GetCreateBulkOhAuthTooToken() *CreateBulkOhAuthTooToken_CreateBulkOhAuthTooToken { + if t == nil { + t = &CreateBulkOhAuthTooToken{} + } + return &t.CreateBulkOhAuthTooToken +} + +type CreateOhAuthTooToken struct { + CreateOhAuthTooToken CreateOhAuthTooToken_CreateOhAuthTooToken "json:\"createOhAuthTooToken\" graphql:\"createOhAuthTooToken\"" +} + +func (t *CreateOhAuthTooToken) GetCreateOhAuthTooToken() *CreateOhAuthTooToken_CreateOhAuthTooToken { + if t == nil { + t = &CreateOhAuthTooToken{} + } + return &t.CreateOhAuthTooToken +} + +type DeleteOhAuthTooToken struct { + DeleteOhAuthTooToken DeleteOhAuthTooToken_DeleteOhAuthTooToken "json:\"deleteOhAuthTooToken\" graphql:\"deleteOhAuthTooToken\"" +} + +func (t *DeleteOhAuthTooToken) GetDeleteOhAuthTooToken() *DeleteOhAuthTooToken_DeleteOhAuthTooToken { + if t == nil { + t = &DeleteOhAuthTooToken{} + } + return &t.DeleteOhAuthTooToken +} + +type GetOhAuthTooTokens struct { + OhAuthTooTokens GetOhAuthTooTokens_OhAuthTooTokens "json:\"ohAuthTooTokens\" graphql:\"ohAuthTooTokens\"" +} + +func (t *GetOhAuthTooTokens) GetOhAuthTooTokens() *GetOhAuthTooTokens_OhAuthTooTokens { + if t == nil { + t = &GetOhAuthTooTokens{} + } + return &t.OhAuthTooTokens +} + +type UpdateOhAuthTooToken struct { + UpdateOhAuthTooToken UpdateOhAuthTooToken_UpdateOhAuthTooToken "json:\"updateOhAuthTooToken\" graphql:\"updateOhAuthTooToken\"" +} + +func (t *UpdateOhAuthTooToken) GetUpdateOhAuthTooToken() *UpdateOhAuthTooToken_UpdateOhAuthTooToken { + if t == nil { + t = &UpdateOhAuthTooToken{} + } + return &t.UpdateOhAuthTooToken +} + +type CreateBulkCSVOrganization struct { + CreateBulkCSVOrganization CreateBulkCSVOrganization_CreateBulkCSVOrganization "json:\"createBulkCSVOrganization\" graphql:\"createBulkCSVOrganization\"" +} + +func (t *CreateBulkCSVOrganization) GetCreateBulkCSVOrganization() *CreateBulkCSVOrganization_CreateBulkCSVOrganization { + if t == nil { + t = &CreateBulkCSVOrganization{} + } + return &t.CreateBulkCSVOrganization +} + +type CreateBulkOrganization struct { + CreateBulkOrganization CreateBulkOrganization_CreateBulkOrganization "json:\"createBulkOrganization\" graphql:\"createBulkOrganization\"" +} + +func (t *CreateBulkOrganization) GetCreateBulkOrganization() *CreateBulkOrganization_CreateBulkOrganization { + if t == nil { + t = &CreateBulkOrganization{} + } + return &t.CreateBulkOrganization +} + +type CreateOrganization struct { + CreateOrganization CreateOrganization_CreateOrganization "json:\"createOrganization\" graphql:\"createOrganization\"" +} + +func (t *CreateOrganization) GetCreateOrganization() *CreateOrganization_CreateOrganization { + if t == nil { + t = &CreateOrganization{} + } + return &t.CreateOrganization +} + +type DeleteOrganization struct { + DeleteOrganization DeleteOrganization_DeleteOrganization "json:\"deleteOrganization\" graphql:\"deleteOrganization\"" +} + +func (t *DeleteOrganization) GetDeleteOrganization() *DeleteOrganization_DeleteOrganization { + if t == nil { + t = &DeleteOrganization{} + } + return &t.DeleteOrganization +} + +type GetAllOrganizations struct { + Organizations GetAllOrganizations_Organizations "json:\"organizations\" graphql:\"organizations\"" +} + +func (t *GetAllOrganizations) GetOrganizations() *GetAllOrganizations_Organizations { + if t == nil { + t = &GetAllOrganizations{} + } + return &t.Organizations +} + +type GetOrganizationByID struct { + Organization GetOrganizationByID_Organization "json:\"organization\" graphql:\"organization\"" +} + +func (t *GetOrganizationByID) GetOrganization() *GetOrganizationByID_Organization { + if t == nil { + t = &GetOrganizationByID{} + } + return &t.Organization +} + +type GetOrganizations struct { + Organizations GetOrganizations_Organizations "json:\"organizations\" graphql:\"organizations\"" +} + +func (t *GetOrganizations) GetOrganizations() *GetOrganizations_Organizations { + if t == nil { + t = &GetOrganizations{} + } + return &t.Organizations +} + +type UpdateOrganization struct { + UpdateOrganization UpdateOrganization_UpdateOrganization "json:\"updateOrganization\" graphql:\"updateOrganization\"" +} + +func (t *UpdateOrganization) GetUpdateOrganization() *UpdateOrganization_UpdateOrganization { + if t == nil { + t = &UpdateOrganization{} + } + return &t.UpdateOrganization +} + +type GetAllOrganizationHistories struct { + OrganizationHistories GetAllOrganizationHistories_OrganizationHistories "json:\"organizationHistories\" graphql:\"organizationHistories\"" +} + +func (t *GetAllOrganizationHistories) GetOrganizationHistories() *GetAllOrganizationHistories_OrganizationHistories { + if t == nil { + t = &GetAllOrganizationHistories{} + } + return &t.OrganizationHistories +} + +type GetOrganizationHistories struct { + OrganizationHistories GetOrganizationHistories_OrganizationHistories "json:\"organizationHistories\" graphql:\"organizationHistories\"" +} + +func (t *GetOrganizationHistories) GetOrganizationHistories() *GetOrganizationHistories_OrganizationHistories { + if t == nil { + t = &GetOrganizationHistories{} + } + return &t.OrganizationHistories +} + +type GetAllOrganizationSettings struct { + OrganizationSettings GetAllOrganizationSettings_OrganizationSettings "json:\"organizationSettings\" graphql:\"organizationSettings\"" +} + +func (t *GetAllOrganizationSettings) GetOrganizationSettings() *GetAllOrganizationSettings_OrganizationSettings { + if t == nil { + t = &GetAllOrganizationSettings{} + } + return &t.OrganizationSettings +} + +type GetOrganizationSettingByID struct { + OrganizationSetting GetOrganizationSettingByID_OrganizationSetting "json:\"organizationSetting\" graphql:\"organizationSetting\"" +} + +func (t *GetOrganizationSettingByID) GetOrganizationSetting() *GetOrganizationSettingByID_OrganizationSetting { + if t == nil { + t = &GetOrganizationSettingByID{} + } + return &t.OrganizationSetting +} + +type GetOrganizationSettings struct { + OrganizationSettings GetOrganizationSettings_OrganizationSettings "json:\"organizationSettings\" graphql:\"organizationSettings\"" +} + +func (t *GetOrganizationSettings) GetOrganizationSettings() *GetOrganizationSettings_OrganizationSettings { + if t == nil { + t = &GetOrganizationSettings{} + } + return &t.OrganizationSettings +} + +type UpdateOrganizationSetting struct { + UpdateOrganizationSetting UpdateOrganizationSetting_UpdateOrganizationSetting "json:\"updateOrganizationSetting\" graphql:\"updateOrganizationSetting\"" +} + +func (t *UpdateOrganizationSetting) GetUpdateOrganizationSetting() *UpdateOrganizationSetting_UpdateOrganizationSetting { + if t == nil { + t = &UpdateOrganizationSetting{} + } + return &t.UpdateOrganizationSetting +} + +type GetAllOrganizationSettingHistories struct { + OrganizationSettingHistories GetAllOrganizationSettingHistories_OrganizationSettingHistories "json:\"organizationSettingHistories\" graphql:\"organizationSettingHistories\"" +} + +func (t *GetAllOrganizationSettingHistories) GetOrganizationSettingHistories() *GetAllOrganizationSettingHistories_OrganizationSettingHistories { + if t == nil { + t = &GetAllOrganizationSettingHistories{} + } + return &t.OrganizationSettingHistories +} + +type GetOrganizationSettingHistories struct { + OrganizationSettingHistories GetOrganizationSettingHistories_OrganizationSettingHistories "json:\"organizationSettingHistories\" graphql:\"organizationSettingHistories\"" +} + +func (t *GetOrganizationSettingHistories) GetOrganizationSettingHistories() *GetOrganizationSettingHistories_OrganizationSettingHistories { + if t == nil { + t = &GetOrganizationSettingHistories{} + } + return &t.OrganizationSettingHistories +} + +type AddUserToOrgWithRole struct { + CreateOrgMembership AddUserToOrgWithRole_CreateOrgMembership "json:\"createOrgMembership\" graphql:\"createOrgMembership\"" +} + +func (t *AddUserToOrgWithRole) GetCreateOrgMembership() *AddUserToOrgWithRole_CreateOrgMembership { + if t == nil { + t = &AddUserToOrgWithRole{} + } + return &t.CreateOrgMembership +} + +type CreateBulkCSVOrgMembers struct { + CreateBulkCSVOrgMembership CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership "json:\"createBulkCSVOrgMembership\" graphql:\"createBulkCSVOrgMembership\"" +} + +func (t *CreateBulkCSVOrgMembers) GetCreateBulkCSVOrgMembership() *CreateBulkCSVOrgMembers_CreateBulkCSVOrgMembership { + if t == nil { + t = &CreateBulkCSVOrgMembers{} + } + return &t.CreateBulkCSVOrgMembership +} + +type CreateBulkOrgMembers struct { + CreateBulkOrgMembership CreateBulkOrgMembers_CreateBulkOrgMembership "json:\"createBulkOrgMembership\" graphql:\"createBulkOrgMembership\"" +} + +func (t *CreateBulkOrgMembers) GetCreateBulkOrgMembership() *CreateBulkOrgMembers_CreateBulkOrgMembership { + if t == nil { + t = &CreateBulkOrgMembers{} + } + return &t.CreateBulkOrgMembership +} + +type GetOrgMembersByOrgID struct { + OrgMemberships GetOrgMembersByOrgID_OrgMemberships "json:\"orgMemberships\" graphql:\"orgMemberships\"" +} + +func (t *GetOrgMembersByOrgID) GetOrgMemberships() *GetOrgMembersByOrgID_OrgMemberships { + if t == nil { + t = &GetOrgMembersByOrgID{} + } + return &t.OrgMemberships +} + +type RemoveUserFromOrg struct { + DeleteOrgMembership RemoveUserFromOrg_DeleteOrgMembership "json:\"deleteOrgMembership\" graphql:\"deleteOrgMembership\"" +} + +func (t *RemoveUserFromOrg) GetDeleteOrgMembership() *RemoveUserFromOrg_DeleteOrgMembership { + if t == nil { + t = &RemoveUserFromOrg{} + } + return &t.DeleteOrgMembership +} + +type UpdateUserRoleInOrg struct { + UpdateOrgMembership UpdateUserRoleInOrg_UpdateOrgMembership "json:\"updateOrgMembership\" graphql:\"updateOrgMembership\"" +} + +func (t *UpdateUserRoleInOrg) GetUpdateOrgMembership() *UpdateUserRoleInOrg_UpdateOrgMembership { + if t == nil { + t = &UpdateUserRoleInOrg{} + } + return &t.UpdateOrgMembership +} + +type GetAllOrgMembershipHistories struct { + OrgMembershipHistories GetAllOrgMembershipHistories_OrgMembershipHistories "json:\"orgMembershipHistories\" graphql:\"orgMembershipHistories\"" +} + +func (t *GetAllOrgMembershipHistories) GetOrgMembershipHistories() *GetAllOrgMembershipHistories_OrgMembershipHistories { + if t == nil { + t = &GetAllOrgMembershipHistories{} + } + return &t.OrgMembershipHistories +} + +type GetOrgMembershipHistories struct { + OrgMembershipHistories GetOrgMembershipHistories_OrgMembershipHistories "json:\"orgMembershipHistories\" graphql:\"orgMembershipHistories\"" +} + +func (t *GetOrgMembershipHistories) GetOrgMembershipHistories() *GetOrgMembershipHistories_OrgMembershipHistories { + if t == nil { + t = &GetOrgMembershipHistories{} + } + return &t.OrgMembershipHistories +} + +type CreateBulkCSVPersonalAccessToken struct { + CreateBulkCSVPersonalAccessToken CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken "json:\"createBulkCSVPersonalAccessToken\" graphql:\"createBulkCSVPersonalAccessToken\"" +} + +func (t *CreateBulkCSVPersonalAccessToken) GetCreateBulkCSVPersonalAccessToken() *CreateBulkCSVPersonalAccessToken_CreateBulkCSVPersonalAccessToken { + if t == nil { + t = &CreateBulkCSVPersonalAccessToken{} + } + return &t.CreateBulkCSVPersonalAccessToken +} + +type CreateBulkPersonalAccessToken struct { + CreateBulkPersonalAccessToken CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken "json:\"createBulkPersonalAccessToken\" graphql:\"createBulkPersonalAccessToken\"" +} + +func (t *CreateBulkPersonalAccessToken) GetCreateBulkPersonalAccessToken() *CreateBulkPersonalAccessToken_CreateBulkPersonalAccessToken { + if t == nil { + t = &CreateBulkPersonalAccessToken{} + } + return &t.CreateBulkPersonalAccessToken +} + +type CreatePersonalAccessToken struct { + CreatePersonalAccessToken CreatePersonalAccessToken_CreatePersonalAccessToken "json:\"createPersonalAccessToken\" graphql:\"createPersonalAccessToken\"" +} + +func (t *CreatePersonalAccessToken) GetCreatePersonalAccessToken() *CreatePersonalAccessToken_CreatePersonalAccessToken { + if t == nil { + t = &CreatePersonalAccessToken{} + } + return &t.CreatePersonalAccessToken +} + +type DeletePersonalAccessToken struct { + DeletePersonalAccessToken DeletePersonalAccessToken_DeletePersonalAccessToken "json:\"deletePersonalAccessToken\" graphql:\"deletePersonalAccessToken\"" +} + +func (t *DeletePersonalAccessToken) GetDeletePersonalAccessToken() *DeletePersonalAccessToken_DeletePersonalAccessToken { + if t == nil { + t = &DeletePersonalAccessToken{} + } + return &t.DeletePersonalAccessToken +} + +type GetAllPersonalAccessTokens struct { + PersonalAccessTokens GetAllPersonalAccessTokens_PersonalAccessTokens "json:\"personalAccessTokens\" graphql:\"personalAccessTokens\"" +} + +func (t *GetAllPersonalAccessTokens) GetPersonalAccessTokens() *GetAllPersonalAccessTokens_PersonalAccessTokens { + if t == nil { + t = &GetAllPersonalAccessTokens{} + } + return &t.PersonalAccessTokens +} + +type GetPersonalAccessTokenByID struct { + PersonalAccessToken GetPersonalAccessTokenByID_PersonalAccessToken "json:\"personalAccessToken\" graphql:\"personalAccessToken\"" +} + +func (t *GetPersonalAccessTokenByID) GetPersonalAccessToken() *GetPersonalAccessTokenByID_PersonalAccessToken { + if t == nil { + t = &GetPersonalAccessTokenByID{} + } + return &t.PersonalAccessToken +} + +type UpdatePersonalAccessToken struct { + UpdatePersonalAccessToken UpdatePersonalAccessToken_UpdatePersonalAccessToken "json:\"updatePersonalAccessToken\" graphql:\"updatePersonalAccessToken\"" +} + +func (t *UpdatePersonalAccessToken) GetUpdatePersonalAccessToken() *UpdatePersonalAccessToken_UpdatePersonalAccessToken { + if t == nil { + t = &UpdatePersonalAccessToken{} + } + return &t.UpdatePersonalAccessToken +} + +type CreateBulkCSVProcedure struct { + CreateBulkCSVProcedure CreateBulkCSVProcedure_CreateBulkCSVProcedure "json:\"createBulkCSVProcedure\" graphql:\"createBulkCSVProcedure\"" +} + +func (t *CreateBulkCSVProcedure) GetCreateBulkCSVProcedure() *CreateBulkCSVProcedure_CreateBulkCSVProcedure { + if t == nil { + t = &CreateBulkCSVProcedure{} + } + return &t.CreateBulkCSVProcedure +} + +type CreateBulkProcedure struct { + CreateBulkProcedure CreateBulkProcedure_CreateBulkProcedure "json:\"createBulkProcedure\" graphql:\"createBulkProcedure\"" +} + +func (t *CreateBulkProcedure) GetCreateBulkProcedure() *CreateBulkProcedure_CreateBulkProcedure { + if t == nil { + t = &CreateBulkProcedure{} + } + return &t.CreateBulkProcedure +} + +type CreateProcedure struct { + CreateProcedure CreateProcedure_CreateProcedure "json:\"createProcedure\" graphql:\"createProcedure\"" +} + +func (t *CreateProcedure) GetCreateProcedure() *CreateProcedure_CreateProcedure { + if t == nil { + t = &CreateProcedure{} + } + return &t.CreateProcedure +} + +type DeleteProcedure struct { + DeleteProcedure DeleteProcedure_DeleteProcedure "json:\"deleteProcedure\" graphql:\"deleteProcedure\"" +} + +func (t *DeleteProcedure) GetDeleteProcedure() *DeleteProcedure_DeleteProcedure { + if t == nil { + t = &DeleteProcedure{} + } + return &t.DeleteProcedure +} + +type GetAllProcedures struct { + Procedures GetAllProcedures_Procedures "json:\"procedures\" graphql:\"procedures\"" +} + +func (t *GetAllProcedures) GetProcedures() *GetAllProcedures_Procedures { + if t == nil { + t = &GetAllProcedures{} + } + return &t.Procedures +} + +type GetProcedureByID struct { + Procedure GetProcedureByID_Procedure "json:\"procedure\" graphql:\"procedure\"" +} + +func (t *GetProcedureByID) GetProcedure() *GetProcedureByID_Procedure { + if t == nil { + t = &GetProcedureByID{} + } + return &t.Procedure +} + +type GetProcedures struct { + Procedures GetProcedures_Procedures "json:\"procedures\" graphql:\"procedures\"" +} + +func (t *GetProcedures) GetProcedures() *GetProcedures_Procedures { + if t == nil { + t = &GetProcedures{} + } + return &t.Procedures +} + +type UpdateProcedure struct { + UpdateProcedure UpdateProcedure_UpdateProcedure "json:\"updateProcedure\" graphql:\"updateProcedure\"" +} + +func (t *UpdateProcedure) GetUpdateProcedure() *UpdateProcedure_UpdateProcedure { + if t == nil { + t = &UpdateProcedure{} + } + return &t.UpdateProcedure +} + +type GetAllProcedureHistories struct { + ProcedureHistories GetAllProcedureHistories_ProcedureHistories "json:\"procedureHistories\" graphql:\"procedureHistories\"" +} + +func (t *GetAllProcedureHistories) GetProcedureHistories() *GetAllProcedureHistories_ProcedureHistories { + if t == nil { + t = &GetAllProcedureHistories{} + } + return &t.ProcedureHistories +} + +type GetProcedureHistories struct { + ProcedureHistories GetProcedureHistories_ProcedureHistories "json:\"procedureHistories\" graphql:\"procedureHistories\"" +} + +func (t *GetProcedureHistories) GetProcedureHistories() *GetProcedureHistories_ProcedureHistories { + if t == nil { + t = &GetProcedureHistories{} + } + return &t.ProcedureHistories +} + +type CreateBulkCSVRisk struct { + CreateBulkCSVRisk CreateBulkCSVRisk_CreateBulkCSVRisk "json:\"createBulkCSVRisk\" graphql:\"createBulkCSVRisk\"" +} + +func (t *CreateBulkCSVRisk) GetCreateBulkCSVRisk() *CreateBulkCSVRisk_CreateBulkCSVRisk { + if t == nil { + t = &CreateBulkCSVRisk{} + } + return &t.CreateBulkCSVRisk +} + +type CreateBulkRisk struct { + CreateBulkRisk CreateBulkRisk_CreateBulkRisk "json:\"createBulkRisk\" graphql:\"createBulkRisk\"" +} + +func (t *CreateBulkRisk) GetCreateBulkRisk() *CreateBulkRisk_CreateBulkRisk { + if t == nil { + t = &CreateBulkRisk{} + } + return &t.CreateBulkRisk +} + +type CreateRisk struct { + CreateRisk CreateRisk_CreateRisk "json:\"createRisk\" graphql:\"createRisk\"" +} + +func (t *CreateRisk) GetCreateRisk() *CreateRisk_CreateRisk { + if t == nil { + t = &CreateRisk{} + } + return &t.CreateRisk +} + +type DeleteRisk struct { + DeleteRisk DeleteRisk_DeleteRisk "json:\"deleteRisk\" graphql:\"deleteRisk\"" +} + +func (t *DeleteRisk) GetDeleteRisk() *DeleteRisk_DeleteRisk { + if t == nil { + t = &DeleteRisk{} + } + return &t.DeleteRisk +} + +type GetAllRisks struct { + Risks GetAllRisks_Risks "json:\"risks\" graphql:\"risks\"" +} + +func (t *GetAllRisks) GetRisks() *GetAllRisks_Risks { + if t == nil { + t = &GetAllRisks{} + } + return &t.Risks +} + +type GetRiskByID struct { + Risk GetRiskByID_Risk "json:\"risk\" graphql:\"risk\"" +} + +func (t *GetRiskByID) GetRisk() *GetRiskByID_Risk { + if t == nil { + t = &GetRiskByID{} + } + return &t.Risk +} + +type GetRisks struct { + Risks GetRisks_Risks "json:\"risks\" graphql:\"risks\"" +} + +func (t *GetRisks) GetRisks() *GetRisks_Risks { + if t == nil { + t = &GetRisks{} + } + return &t.Risks +} + +type UpdateRisk struct { + UpdateRisk UpdateRisk_UpdateRisk "json:\"updateRisk\" graphql:\"updateRisk\"" +} + +func (t *UpdateRisk) GetUpdateRisk() *UpdateRisk_UpdateRisk { + if t == nil { + t = &UpdateRisk{} + } + return &t.UpdateRisk +} + +type GetAllRiskHistories struct { + RiskHistories GetAllRiskHistories_RiskHistories "json:\"riskHistories\" graphql:\"riskHistories\"" +} + +func (t *GetAllRiskHistories) GetRiskHistories() *GetAllRiskHistories_RiskHistories { + if t == nil { + t = &GetAllRiskHistories{} + } + return &t.RiskHistories +} + +type GetRiskHistories struct { + RiskHistories GetRiskHistories_RiskHistories "json:\"riskHistories\" graphql:\"riskHistories\"" +} + +func (t *GetRiskHistories) GetRiskHistories() *GetRiskHistories_RiskHistories { + if t == nil { + t = &GetRiskHistories{} + } + return &t.RiskHistories +} + +type GlobalSearch struct { + Search *GlobalSearch_Search "json:\"search,omitempty\" graphql:\"search\"" +} + +func (t *GlobalSearch) GetSearch() *GlobalSearch_Search { + if t == nil { + t = &GlobalSearch{} + } + return t.Search +} + +type CreateBulkCSVStandard struct { + CreateBulkCSVStandard CreateBulkCSVStandard_CreateBulkCSVStandard "json:\"createBulkCSVStandard\" graphql:\"createBulkCSVStandard\"" +} + +func (t *CreateBulkCSVStandard) GetCreateBulkCSVStandard() *CreateBulkCSVStandard_CreateBulkCSVStandard { + if t == nil { + t = &CreateBulkCSVStandard{} + } + return &t.CreateBulkCSVStandard +} + +type CreateBulkStandard struct { + CreateBulkStandard CreateBulkStandard_CreateBulkStandard "json:\"createBulkStandard\" graphql:\"createBulkStandard\"" +} + +func (t *CreateBulkStandard) GetCreateBulkStandard() *CreateBulkStandard_CreateBulkStandard { + if t == nil { + t = &CreateBulkStandard{} + } + return &t.CreateBulkStandard +} + +type CreateStandard struct { + CreateStandard CreateStandard_CreateStandard "json:\"createStandard\" graphql:\"createStandard\"" +} + +func (t *CreateStandard) GetCreateStandard() *CreateStandard_CreateStandard { + if t == nil { + t = &CreateStandard{} + } + return &t.CreateStandard +} + +type DeleteStandard struct { + DeleteStandard DeleteStandard_DeleteStandard "json:\"deleteStandard\" graphql:\"deleteStandard\"" +} + +func (t *DeleteStandard) GetDeleteStandard() *DeleteStandard_DeleteStandard { + if t == nil { + t = &DeleteStandard{} + } + return &t.DeleteStandard +} + +type GetAllStandards struct { + Standards GetAllStandards_Standards "json:\"standards\" graphql:\"standards\"" +} + +func (t *GetAllStandards) GetStandards() *GetAllStandards_Standards { + if t == nil { + t = &GetAllStandards{} + } + return &t.Standards +} + +type GetStandardByID struct { + Standard GetStandardByID_Standard "json:\"standard\" graphql:\"standard\"" +} + +func (t *GetStandardByID) GetStandard() *GetStandardByID_Standard { + if t == nil { + t = &GetStandardByID{} + } + return &t.Standard +} + +type GetStandards struct { + Standards GetStandards_Standards "json:\"standards\" graphql:\"standards\"" +} + +func (t *GetStandards) GetStandards() *GetStandards_Standards { + if t == nil { + t = &GetStandards{} + } + return &t.Standards +} + +type UpdateStandard struct { + UpdateStandard UpdateStandard_UpdateStandard "json:\"updateStandard\" graphql:\"updateStandard\"" +} + +func (t *UpdateStandard) GetUpdateStandard() *UpdateStandard_UpdateStandard { + if t == nil { + t = &UpdateStandard{} + } + return &t.UpdateStandard +} + +type GetAllStandardHistories struct { + StandardHistories GetAllStandardHistories_StandardHistories "json:\"standardHistories\" graphql:\"standardHistories\"" +} + +func (t *GetAllStandardHistories) GetStandardHistories() *GetAllStandardHistories_StandardHistories { + if t == nil { + t = &GetAllStandardHistories{} + } + return &t.StandardHistories +} + +type GetStandardHistories struct { + StandardHistories GetStandardHistories_StandardHistories "json:\"standardHistories\" graphql:\"standardHistories\"" +} + +func (t *GetStandardHistories) GetStandardHistories() *GetStandardHistories_StandardHistories { + if t == nil { + t = &GetStandardHistories{} + } + return &t.StandardHistories +} + +type CreateBulkCSVSubcontrol struct { + CreateBulkCSVSubcontrol CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol "json:\"createBulkCSVSubcontrol\" graphql:\"createBulkCSVSubcontrol\"" +} + +func (t *CreateBulkCSVSubcontrol) GetCreateBulkCSVSubcontrol() *CreateBulkCSVSubcontrol_CreateBulkCSVSubcontrol { + if t == nil { + t = &CreateBulkCSVSubcontrol{} + } + return &t.CreateBulkCSVSubcontrol +} + +type CreateBulkSubcontrol struct { + CreateBulkSubcontrol CreateBulkSubcontrol_CreateBulkSubcontrol "json:\"createBulkSubcontrol\" graphql:\"createBulkSubcontrol\"" +} + +func (t *CreateBulkSubcontrol) GetCreateBulkSubcontrol() *CreateBulkSubcontrol_CreateBulkSubcontrol { + if t == nil { + t = &CreateBulkSubcontrol{} + } + return &t.CreateBulkSubcontrol +} + +type CreateSubcontrol struct { + CreateSubcontrol CreateSubcontrol_CreateSubcontrol "json:\"createSubcontrol\" graphql:\"createSubcontrol\"" +} + +func (t *CreateSubcontrol) GetCreateSubcontrol() *CreateSubcontrol_CreateSubcontrol { + if t == nil { + t = &CreateSubcontrol{} + } + return &t.CreateSubcontrol +} + +type DeleteSubcontrol struct { + DeleteSubcontrol DeleteSubcontrol_DeleteSubcontrol "json:\"deleteSubcontrol\" graphql:\"deleteSubcontrol\"" +} + +func (t *DeleteSubcontrol) GetDeleteSubcontrol() *DeleteSubcontrol_DeleteSubcontrol { + if t == nil { + t = &DeleteSubcontrol{} + } + return &t.DeleteSubcontrol +} + +type GetAllSubcontrols struct { + Subcontrols GetAllSubcontrols_Subcontrols "json:\"subcontrols\" graphql:\"subcontrols\"" +} + +func (t *GetAllSubcontrols) GetSubcontrols() *GetAllSubcontrols_Subcontrols { + if t == nil { + t = &GetAllSubcontrols{} + } + return &t.Subcontrols +} + +type GetSubcontrolByID struct { + Subcontrol GetSubcontrolByID_Subcontrol "json:\"subcontrol\" graphql:\"subcontrol\"" +} + +func (t *GetSubcontrolByID) GetSubcontrol() *GetSubcontrolByID_Subcontrol { + if t == nil { + t = &GetSubcontrolByID{} + } + return &t.Subcontrol +} + +type GetSubcontrols struct { + Subcontrols GetSubcontrols_Subcontrols "json:\"subcontrols\" graphql:\"subcontrols\"" +} + +func (t *GetSubcontrols) GetSubcontrols() *GetSubcontrols_Subcontrols { + if t == nil { + t = &GetSubcontrols{} + } + return &t.Subcontrols +} + +type UpdateSubcontrol struct { + UpdateSubcontrol UpdateSubcontrol_UpdateSubcontrol "json:\"updateSubcontrol\" graphql:\"updateSubcontrol\"" +} + +func (t *UpdateSubcontrol) GetUpdateSubcontrol() *UpdateSubcontrol_UpdateSubcontrol { + if t == nil { + t = &UpdateSubcontrol{} + } + return &t.UpdateSubcontrol +} + +type GetAllSubcontrolHistories struct { + SubcontrolHistories GetAllSubcontrolHistories_SubcontrolHistories "json:\"subcontrolHistories\" graphql:\"subcontrolHistories\"" +} + +func (t *GetAllSubcontrolHistories) GetSubcontrolHistories() *GetAllSubcontrolHistories_SubcontrolHistories { + if t == nil { + t = &GetAllSubcontrolHistories{} + } + return &t.SubcontrolHistories +} + +type GetSubcontrolHistories struct { + SubcontrolHistories GetSubcontrolHistories_SubcontrolHistories "json:\"subcontrolHistories\" graphql:\"subcontrolHistories\"" +} + +func (t *GetSubcontrolHistories) GetSubcontrolHistories() *GetSubcontrolHistories_SubcontrolHistories { + if t == nil { + t = &GetSubcontrolHistories{} + } + return &t.SubcontrolHistories +} + +type CreateBulkCSVSubscriber struct { + CreateBulkCSVSubscriber CreateBulkCSVSubscriber_CreateBulkCSVSubscriber "json:\"createBulkCSVSubscriber\" graphql:\"createBulkCSVSubscriber\"" +} + +func (t *CreateBulkCSVSubscriber) GetCreateBulkCSVSubscriber() *CreateBulkCSVSubscriber_CreateBulkCSVSubscriber { + if t == nil { + t = &CreateBulkCSVSubscriber{} + } + return &t.CreateBulkCSVSubscriber +} + +type CreateBulkSubscriber struct { + CreateBulkSubscriber CreateBulkSubscriber_CreateBulkSubscriber "json:\"createBulkSubscriber\" graphql:\"createBulkSubscriber\"" +} + +func (t *CreateBulkSubscriber) GetCreateBulkSubscriber() *CreateBulkSubscriber_CreateBulkSubscriber { + if t == nil { + t = &CreateBulkSubscriber{} + } + return &t.CreateBulkSubscriber +} + +type CreateSubscriber struct { + CreateSubscriber CreateSubscriber_CreateSubscriber "json:\"createSubscriber\" graphql:\"createSubscriber\"" +} + +func (t *CreateSubscriber) GetCreateSubscriber() *CreateSubscriber_CreateSubscriber { + if t == nil { + t = &CreateSubscriber{} + } + return &t.CreateSubscriber +} + +type DeleteSubscriber struct { + DeleteSubscriber DeleteSubscriber_DeleteSubscriber "json:\"deleteSubscriber\" graphql:\"deleteSubscriber\"" +} + +func (t *DeleteSubscriber) GetDeleteSubscriber() *DeleteSubscriber_DeleteSubscriber { + if t == nil { + t = &DeleteSubscriber{} + } + return &t.DeleteSubscriber +} + +type GetAllSubscribers struct { + Subscribers GetAllSubscribers_Subscribers "json:\"subscribers\" graphql:\"subscribers\"" +} + +func (t *GetAllSubscribers) GetSubscribers() *GetAllSubscribers_Subscribers { + if t == nil { + t = &GetAllSubscribers{} + } + return &t.Subscribers +} + +type GetSubscriberByEmail struct { + Subscriber GetSubscriberByEmail_Subscriber "json:\"subscriber\" graphql:\"subscriber\"" +} + +func (t *GetSubscriberByEmail) GetSubscriber() *GetSubscriberByEmail_Subscriber { + if t == nil { + t = &GetSubscriberByEmail{} + } + return &t.Subscriber +} + +type GetSubscribers struct { + Subscribers GetSubscribers_Subscribers "json:\"subscribers\" graphql:\"subscribers\"" +} + +func (t *GetSubscribers) GetSubscribers() *GetSubscribers_Subscribers { + if t == nil { + t = &GetSubscribers{} + } + return &t.Subscribers +} + +type UpdateSubscriber struct { + UpdateSubscriber UpdateSubscriber_UpdateSubscriber "json:\"updateSubscriber\" graphql:\"updateSubscriber\"" +} + +func (t *UpdateSubscriber) GetUpdateSubscriber() *UpdateSubscriber_UpdateSubscriber { + if t == nil { + t = &UpdateSubscriber{} + } + return &t.UpdateSubscriber +} + +type CreateBulkCSVTemplate struct { + CreateBulkCSVTemplate CreateBulkCSVTemplate_CreateBulkCSVTemplate "json:\"createBulkCSVTemplate\" graphql:\"createBulkCSVTemplate\"" +} + +func (t *CreateBulkCSVTemplate) GetCreateBulkCSVTemplate() *CreateBulkCSVTemplate_CreateBulkCSVTemplate { + if t == nil { + t = &CreateBulkCSVTemplate{} + } + return &t.CreateBulkCSVTemplate +} + +type CreateBulkTemplate struct { + CreateBulkTemplate CreateBulkTemplate_CreateBulkTemplate "json:\"createBulkTemplate\" graphql:\"createBulkTemplate\"" +} + +func (t *CreateBulkTemplate) GetCreateBulkTemplate() *CreateBulkTemplate_CreateBulkTemplate { + if t == nil { + t = &CreateBulkTemplate{} + } + return &t.CreateBulkTemplate +} + +type CreateTemplate struct { + CreateTemplate CreateTemplate_CreateTemplate "json:\"createTemplate\" graphql:\"createTemplate\"" +} + +func (t *CreateTemplate) GetCreateTemplate() *CreateTemplate_CreateTemplate { + if t == nil { + t = &CreateTemplate{} + } + return &t.CreateTemplate +} + +type GetAllTemplates struct { + Templates GetAllTemplates_Templates "json:\"templates\" graphql:\"templates\"" +} + +func (t *GetAllTemplates) GetTemplates() *GetAllTemplates_Templates { + if t == nil { + t = &GetAllTemplates{} + } + return &t.Templates +} + +type GetTemplateByID struct { + Template GetTemplateByID_Template "json:\"template\" graphql:\"template\"" +} + +func (t *GetTemplateByID) GetTemplate() *GetTemplateByID_Template { + if t == nil { + t = &GetTemplateByID{} + } + return &t.Template +} + +type UpdateTemplate struct { + UpdateTemplate UpdateTemplate_UpdateTemplate "json:\"updateTemplate\" graphql:\"updateTemplate\"" +} + +func (t *UpdateTemplate) GetUpdateTemplate() *UpdateTemplate_UpdateTemplate { + if t == nil { + t = &UpdateTemplate{} + } + return &t.UpdateTemplate +} + +type GetAllTemplateHistories struct { + TemplateHistories GetAllTemplateHistories_TemplateHistories "json:\"templateHistories\" graphql:\"templateHistories\"" +} + +func (t *GetAllTemplateHistories) GetTemplateHistories() *GetAllTemplateHistories_TemplateHistories { + if t == nil { + t = &GetAllTemplateHistories{} + } + return &t.TemplateHistories +} + +type GetTemplateHistories struct { + TemplateHistories GetTemplateHistories_TemplateHistories "json:\"templateHistories\" graphql:\"templateHistories\"" +} + +func (t *GetTemplateHistories) GetTemplateHistories() *GetTemplateHistories_TemplateHistories { + if t == nil { + t = &GetTemplateHistories{} + } + return &t.TemplateHistories +} + +type CreateTFASetting struct { + CreateTFASetting CreateTFASetting_CreateTFASetting "json:\"createTFASetting\" graphql:\"createTFASetting\"" +} + +func (t *CreateTFASetting) GetCreateTFASetting() *CreateTFASetting_CreateTFASetting { + if t == nil { + t = &CreateTFASetting{} + } + return &t.CreateTFASetting +} + +type GetAllTFASettings struct { + TfaSettings GetAllTFASettings_TfaSettings "json:\"tfaSettings\" graphql:\"tfaSettings\"" +} + +func (t *GetAllTFASettings) GetTfaSettings() *GetAllTFASettings_TfaSettings { + if t == nil { + t = &GetAllTFASettings{} + } + return &t.TfaSettings +} + +type GetTFASetting struct { + TfaSetting GetTFASetting_TfaSetting "json:\"tfaSetting\" graphql:\"tfaSetting\"" +} + +func (t *GetTFASetting) GetTfaSetting() *GetTFASetting_TfaSetting { + if t == nil { + t = &GetTFASetting{} + } + return &t.TfaSetting +} + +type UpdateTFASetting struct { + UpdateTFASetting UpdateTFASetting_UpdateTFASetting "json:\"updateTFASetting\" graphql:\"updateTFASetting\"" +} + +func (t *UpdateTFASetting) GetUpdateTFASetting() *UpdateTFASetting_UpdateTFASetting { + if t == nil { + t = &UpdateTFASetting{} + } + return &t.UpdateTFASetting +} + +type CreateUser struct { + CreateUser CreateUser_CreateUser "json:\"createUser\" graphql:\"createUser\"" +} + +func (t *CreateUser) GetCreateUser() *CreateUser_CreateUser { + if t == nil { + t = &CreateUser{} + } + return &t.CreateUser +} + +type DeleteUser struct { + DeleteUser DeleteUser_DeleteUser "json:\"deleteUser\" graphql:\"deleteUser\"" +} + +func (t *DeleteUser) GetDeleteUser() *DeleteUser_DeleteUser { + if t == nil { + t = &DeleteUser{} + } + return &t.DeleteUser +} + +type GetAllUsers struct { + Users GetAllUsers_Users "json:\"users\" graphql:\"users\"" +} + +func (t *GetAllUsers) GetUsers() *GetAllUsers_Users { + if t == nil { + t = &GetAllUsers{} + } + return &t.Users +} + +type GetUserByID struct { + User GetUserByID_User "json:\"user\" graphql:\"user\"" +} + +func (t *GetUserByID) GetUser() *GetUserByID_User { + if t == nil { + t = &GetUserByID{} + } + return &t.User +} + +type GetUserByIDWithOrgs struct { + User GetUserByIDWithOrgs_User "json:\"user\" graphql:\"user\"" +} + +func (t *GetUserByIDWithOrgs) GetUser() *GetUserByIDWithOrgs_User { + if t == nil { + t = &GetUserByIDWithOrgs{} + } + return &t.User +} + +type UpdateUser struct { + UpdateUser UpdateUser_UpdateUser "json:\"updateUser\" graphql:\"updateUser\"" +} + +func (t *UpdateUser) GetUpdateUser() *UpdateUser_UpdateUser { + if t == nil { + t = &UpdateUser{} + } + return &t.UpdateUser +} + +type GetAllUserHistories struct { + UserHistories GetAllUserHistories_UserHistories "json:\"userHistories\" graphql:\"userHistories\"" +} + +func (t *GetAllUserHistories) GetUserHistories() *GetAllUserHistories_UserHistories { + if t == nil { + t = &GetAllUserHistories{} + } + return &t.UserHistories +} + +type GetUserHistories struct { + UserHistories GetUserHistories_UserHistories "json:\"userHistories\" graphql:\"userHistories\"" +} + +func (t *GetUserHistories) GetUserHistories() *GetUserHistories_UserHistories { + if t == nil { + t = &GetUserHistories{} + } + return &t.UserHistories +} + +type GetAllUserSettings struct { + UserSettings GetAllUserSettings_UserSettings "json:\"userSettings\" graphql:\"userSettings\"" +} + +func (t *GetAllUserSettings) GetUserSettings() *GetAllUserSettings_UserSettings { + if t == nil { + t = &GetAllUserSettings{} + } + return &t.UserSettings +} + +type GetUserSettingByID struct { + UserSetting GetUserSettingByID_UserSetting "json:\"userSetting\" graphql:\"userSetting\"" +} + +func (t *GetUserSettingByID) GetUserSetting() *GetUserSettingByID_UserSetting { + if t == nil { + t = &GetUserSettingByID{} + } + return &t.UserSetting +} + +type GetUserSettings struct { + UserSettings GetUserSettings_UserSettings "json:\"userSettings\" graphql:\"userSettings\"" +} + +func (t *GetUserSettings) GetUserSettings() *GetUserSettings_UserSettings { + if t == nil { + t = &GetUserSettings{} + } + return &t.UserSettings +} + +type UpdateUserSetting struct { + UpdateUserSetting UpdateUserSetting_UpdateUserSetting "json:\"updateUserSetting\" graphql:\"updateUserSetting\"" +} + +func (t *UpdateUserSetting) GetUpdateUserSetting() *UpdateUserSetting_UpdateUserSetting { + if t == nil { + t = &UpdateUserSetting{} + } + return &t.UpdateUserSetting +} + +type GetAllUserSettingHistories struct { + UserSettingHistories GetAllUserSettingHistories_UserSettingHistories "json:\"userSettingHistories\" graphql:\"userSettingHistories\"" +} + +func (t *GetAllUserSettingHistories) GetUserSettingHistories() *GetAllUserSettingHistories_UserSettingHistories { + if t == nil { + t = &GetAllUserSettingHistories{} + } + return &t.UserSettingHistories +} + +type GetUserSettingHistories struct { + UserSettingHistories GetUserSettingHistories_UserSettingHistories "json:\"userSettingHistories\" graphql:\"userSettingHistories\"" +} + +func (t *GetUserSettingHistories) GetUserSettingHistories() *GetUserSettingHistories_UserSettingHistories { + if t == nil { + t = &GetUserSettingHistories{} + } + return &t.UserSettingHistories +} + +type GetWebhookByID struct { + Webhook GetWebhookByID_Webhook "json:\"webhook\" graphql:\"webhook\"" +} + +func (t *GetWebhookByID) GetWebhook() *GetWebhookByID_Webhook { + if t == nil { + t = &GetWebhookByID{} + } + return &t.Webhook +} + +type GetAllWebhooks struct { + Webhooks GetAllWebhooks_Webhooks "json:\"webhooks\" graphql:\"webhooks\"" +} + +func (t *GetAllWebhooks) GetWebhooks() *GetAllWebhooks_Webhooks { + if t == nil { + t = &GetAllWebhooks{} + } + return &t.Webhooks +} + +type CreateWebhook struct { + CreateWebhook CreateWebhook_CreateWebhook "json:\"createWebhook\" graphql:\"createWebhook\"" +} + +func (t *CreateWebhook) GetCreateWebhook() *CreateWebhook_CreateWebhook { + if t == nil { + t = &CreateWebhook{} + } + return &t.CreateWebhook +} + +type CreateBulkWebhook struct { + CreateBulkWebhook CreateBulkWebhook_CreateBulkWebhook "json:\"createBulkWebhook\" graphql:\"createBulkWebhook\"" +} + +func (t *CreateBulkWebhook) GetCreateBulkWebhook() *CreateBulkWebhook_CreateBulkWebhook { + if t == nil { + t = &CreateBulkWebhook{} + } + return &t.CreateBulkWebhook +} + +type CreateBulkCSVWebhook struct { + CreateBulkCSVWebhook CreateBulkCSVWebhook_CreateBulkCSVWebhook "json:\"createBulkCSVWebhook\" graphql:\"createBulkCSVWebhook\"" +} + +func (t *CreateBulkCSVWebhook) GetCreateBulkCSVWebhook() *CreateBulkCSVWebhook_CreateBulkCSVWebhook { + if t == nil { + t = &CreateBulkCSVWebhook{} + } + return &t.CreateBulkCSVWebhook +} + +type UpdateWebhook struct { + UpdateWebhook UpdateWebhook_UpdateWebhook "json:\"updateWebhook\" graphql:\"updateWebhook\"" +} + +func (t *UpdateWebhook) GetUpdateWebhook() *UpdateWebhook_UpdateWebhook { + if t == nil { + t = &UpdateWebhook{} + } + return &t.UpdateWebhook +} + +type DeleteWebhook struct { + DeleteWebhook DeleteWebhook_DeleteWebhook "json:\"deleteWebhook\" graphql:\"deleteWebhook\"" +} + +func (t *DeleteWebhook) GetDeleteWebhook() *DeleteWebhook_DeleteWebhook { + if t == nil { + t = &DeleteWebhook{} + } + return &t.DeleteWebhook +} + +type GetAllWebhookHistories struct { + WebhookHistories GetAllWebhookHistories_WebhookHistories "json:\"webhookHistories\" graphql:\"webhookHistories\"" +} + +func (t *GetAllWebhookHistories) GetWebhookHistories() *GetAllWebhookHistories_WebhookHistories { + if t == nil { + t = &GetAllWebhookHistories{} + } + return &t.WebhookHistories +} + +type GetWebhookHistories struct { + WebhookHistories GetWebhookHistories_WebhookHistories "json:\"webhookHistories\" graphql:\"webhookHistories\"" +} + +func (t *GetWebhookHistories) GetWebhookHistories() *GetWebhookHistories_WebhookHistories { + if t == nil { + t = &GetWebhookHistories{} + } + return &t.WebhookHistories +} + +const CreateBulkCSVActionPlanDocument = `mutation CreateBulkCSVActionPlan ($input: Upload!) { + createBulkCSVActionPlan(input: $input) { + actionPlans { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } + } +} +` + +func (c *Client) CreateBulkCSVActionPlan(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVActionPlan, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkCSVActionPlan + if err := c.Client.Post(ctx, "CreateBulkCSVActionPlan", CreateBulkCSVActionPlanDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkActionPlanDocument = `mutation CreateBulkActionPlan ($input: [CreateActionPlanInput!]) { + createBulkActionPlan(input: $input) { + actionPlans { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } + } +} +` + +func (c *Client) CreateBulkActionPlan(ctx context.Context, input []*CreateActionPlanInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkActionPlan, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkActionPlan + if err := c.Client.Post(ctx, "CreateBulkActionPlan", CreateBulkActionPlanDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateActionPlanDocument = `mutation CreateActionPlan ($input: CreateActionPlanInput!) { + createActionPlan(input: $input) { + actionPlan { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } + } +} +` + +func (c *Client) CreateActionPlan(ctx context.Context, input CreateActionPlanInput, interceptors ...clientv2.RequestInterceptor) (*CreateActionPlan, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateActionPlan + if err := c.Client.Post(ctx, "CreateActionPlan", CreateActionPlanDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteActionPlanDocument = `mutation DeleteActionPlan ($deleteActionPlanId: ID!) { + deleteActionPlan(id: $deleteActionPlanId) { + deletedID + } +} +` + +func (c *Client) DeleteActionPlan(ctx context.Context, deleteActionPlanID string, interceptors ...clientv2.RequestInterceptor) (*DeleteActionPlan, error) { + vars := map[string]any{ + "deleteActionPlanId": deleteActionPlanID, + } + + var res DeleteActionPlan + if err := c.Client.Post(ctx, "DeleteActionPlan", DeleteActionPlanDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllActionPlansDocument = `query GetAllActionPlans { + actionPlans { + edges { + node { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetAllActionPlans(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllActionPlans, error) { + vars := map[string]any{} + + var res GetAllActionPlans + if err := c.Client.Post(ctx, "GetAllActionPlans", GetAllActionPlansDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetActionPlanByIDDocument = `query GetActionPlanByID ($actionPlanId: ID!) { + actionPlan(id: $actionPlanId) { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } +} +` + +func (c *Client) GetActionPlanByID(ctx context.Context, actionPlanID string, interceptors ...clientv2.RequestInterceptor) (*GetActionPlanByID, error) { + vars := map[string]any{ + "actionPlanId": actionPlanID, + } + + var res GetActionPlanByID + if err := c.Client.Post(ctx, "GetActionPlanByID", GetActionPlanByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetActionPlansDocument = `query GetActionPlans ($where: ActionPlanWhereInput) { + actionPlans(where: $where) { + edges { + node { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetActionPlans(ctx context.Context, where *ActionPlanWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetActionPlans, error) { + vars := map[string]any{ + "where": where, + } + + var res GetActionPlans + if err := c.Client.Post(ctx, "GetActionPlans", GetActionPlansDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateActionPlanDocument = `mutation UpdateActionPlan ($updateActionPlanId: ID!, $input: UpdateActionPlanInput!) { + updateActionPlan(id: $updateActionPlanId, input: $input) { + actionPlan { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } + } +} +` + +func (c *Client) UpdateActionPlan(ctx context.Context, updateActionPlanID string, input UpdateActionPlanInput, interceptors ...clientv2.RequestInterceptor) (*UpdateActionPlan, error) { + vars := map[string]any{ + "updateActionPlanId": updateActionPlanID, + "input": input, + } + + var res UpdateActionPlan + if err := c.Client.Post(ctx, "UpdateActionPlan", UpdateActionPlanDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllActionPlanHistoriesDocument = `query GetAllActionPlanHistories { + actionPlanHistories { + edges { + node { + createdAt + createdBy + description + details + dueDate + historyTime + id + name + operation + priority + ref + source + status + tags + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetAllActionPlanHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllActionPlanHistories, error) { + vars := map[string]any{} + + var res GetAllActionPlanHistories + if err := c.Client.Post(ctx, "GetAllActionPlanHistories", GetAllActionPlanHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetActionPlanHistoriesDocument = `query GetActionPlanHistories ($where: ActionPlanHistoryWhereInput) { + actionPlanHistories(where: $where) { + edges { + node { + createdAt + createdBy + description + details + dueDate + historyTime + id + name + operation + priority + ref + source + status + tags + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetActionPlanHistories(ctx context.Context, where *ActionPlanHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetActionPlanHistories, error) { + vars := map[string]any{ + "where": where, + } + + var res GetActionPlanHistories + if err := c.Client.Post(ctx, "GetActionPlanHistories", GetActionPlanHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const AdminSearchDocument = `query AdminSearch ($query: String!) { + adminSearch(query: $query) { + nodes { + ... on APITokenSearchResult { + apiTokens { + deletedBy + id + tags + ownerID + name + scopes + } + } + ... on ActionPlanSearchResult { + actionPlans { + deletedBy + id + tags + name + description + status + priority + source + details + } + } + ... on ContactSearchResult { + contacts { + id + deletedBy + tags + ownerID + fullName + title + company + email + phoneNumber + address + } + } + ... on ControlSearchResult { + controls { + deletedBy + id + tags + name + description + status + controlType + version + controlNumber + family + class + source + satisfies + mappedFrameworks + details + } + } + ... on ControlObjectiveSearchResult { + controlObjectives { + deletedBy + id + tags + name + description + status + controlObjectiveType + version + controlNumber + family + class + source + mappedFrameworks + details + } + } + ... on DocumentDataSearchResult { + documentData { + id + tags + deletedBy + ownerID + templateID + data + } + } + ... on EntitlementSearchResult { + entitlements { + id + tags + deletedBy + ownerID + planID + organizationID + externalCustomerID + externalSubscriptionID + } + } + ... on EntitlementPlanSearchResult { + entitlementPlans { + id + deletedBy + tags + ownerID + displayName + name + description + version + metadata + } + } + ... on EntitlementPlanFeatureSearchResult { + entitlementPlanFeatures { + id + deletedBy + tags + ownerID + metadata + planID + featureID + } + } + ... on EntitySearchResult { + entities { + id + deletedBy + tags + ownerID + name + displayName + description + domains + entityTypeID + status + } + } + ... on EntityTypeSearchResult { + entityTypes { + id + deletedBy + tags + ownerID + name + } + } + ... on EventSearchResult { + events { + id + tags + eventID + correlationID + eventType + metadata + } + } + ... on FeatureSearchResult { + features { + deletedBy + id + tags + ownerID + name + displayName + description + metadata + } + } + ... on FileSearchResult { + files { + deletedBy + id + tags + providedFileName + providedFileExtension + detectedMimeType + md5Hash + detectedContentType + storeKey + categoryType + uri + storageScheme + storageVolume + storagePath + } + } + ... on GroupSearchResult { + groups { + deletedBy + id + tags + ownerID + name + displayName + } + } + ... on GroupSettingSearchResult { + groupSettings { + id + tags + deletedBy + groupID + } + } + ... on IntegrationSearchResult { + integrations { + id + tags + deletedBy + ownerID + name + kind + } + } + ... on InternalPolicySearchResult { + internalPolicies { + deletedBy + id + tags + name + description + status + policyType + version + purposeAndScope + background + details + } + } + ... on NarrativeSearchResult { + narratives { + deletedBy + id + tags + name + description + satisfies + details + } + } + ... on OauthProviderSearchResult { + oauthProviders { + id + tags + deletedBy + ownerID + name + clientID + clientSecret + redirectURL + scopes + authURL + tokenURL + infoURL + } + } + ... on OhAuthTooTokenSearchResult { + ohAuthTooTokens { + id + tags + clientID + scopes + nonce + claimsUserID + claimsUsername + claimsEmail + claimsGroups + claimsPreferredUsername + connectorID + connectorData + } + } + ... on OrganizationSearchResult { + organizations { + id + tags + deletedBy + name + displayName + avatarRemoteURL + } + } + ... on OrganizationSettingSearchResult { + organizationSettings { + id + tags + deletedBy + domains + billingContact + billingEmail + billingPhone + billingAddress + taxIdentifier + organizationID + } + } + ... on PersonalAccessTokenSearchResult { + personalAccessTokens { + deletedBy + id + tags + name + scopes + } + } + ... on ProcedureSearchResult { + procedures { + deletedBy + id + tags + name + description + status + procedureType + version + purposeAndScope + background + satisfies + details + } + } + ... on RiskSearchResult { + risks { + deletedBy + id + tags + name + description + status + riskType + businessCosts + mitigation + satisfies + details + } + } + ... on StandardSearchResult { + standards { + deletedBy + id + tags + name + description + family + status + standardType + version + purposeAndScope + background + satisfies + details + } + } + ... on SubcontrolSearchResult { + subcontrols { + deletedBy + id + tags + name + description + status + subcontrolType + version + subcontrolNumber + family + class + source + mappedFrameworks + implementationEvidence + implementationStatus + implementationVerification + details + } + } + ... on SubscriberSearchResult { + subscribers { + id + tags + deletedBy + ownerID + email + phoneNumber + } + } + ... on TFASettingSearchResult { + tFASettings { + id + deletedBy + tags + tfaSecret + recoveryCodes + } + } + ... on TemplateSearchResult { + templates { + deletedBy + id + tags + ownerID + name + description + jsonconfig + uischema + } + } + ... on UserSearchResult { + users { + deletedBy + id + tags + email + firstName + lastName + displayName + avatarRemoteURL + avatarLocalFile + avatarLocalFileID + sub + } + } + ... on UserSettingSearchResult { + userSettings { + id + tags + deletedBy + userID + } + } + ... on WebhookSearchResult { + webhooks { + id + tags + deletedBy + ownerID + name + destinationURL + lastError + lastResponse + } + } + } + } +} +` + +func (c *Client) AdminSearch(ctx context.Context, query string, interceptors ...clientv2.RequestInterceptor) (*AdminSearch, error) { + vars := map[string]any{ + "query": query, + } + + var res AdminSearch + if err := c.Client.Post(ctx, "AdminSearch", AdminSearchDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateAPITokenDocument = `mutation CreateAPIToken ($input: CreateAPITokenInput!) { + createAPIToken(input: $input) { + apiToken { + id + token + scopes + owner { + id + } + createdAt + updatedAt + createdBy + updatedBy + name + expiresAt + description + lastUsedAt + } + } +} +` + +func (c *Client) CreateAPIToken(ctx context.Context, input CreateAPITokenInput, interceptors ...clientv2.RequestInterceptor) (*CreateAPIToken, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateAPIToken + if err := c.Client.Post(ctx, "CreateAPIToken", CreateAPITokenDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateAPITokenDocument = `mutation UpdateAPIToken ($updateAPITokenId: ID!, $input: UpdateAPITokenInput!) { + updateAPIToken(id: $updateAPITokenId, input: $input) { + apiToken { + id + token + scopes + owner { + id + } + createdAt + updatedAt + createdBy + updatedBy + name + expiresAt + description + lastUsedAt + } + } +} +` + +func (c *Client) UpdateAPIToken(ctx context.Context, updateAPITokenID string, input UpdateAPITokenInput, interceptors ...clientv2.RequestInterceptor) (*UpdateAPIToken, error) { + vars := map[string]any{ + "updateAPITokenId": updateAPITokenID, + "input": input, + } + + var res UpdateAPIToken + if err := c.Client.Post(ctx, "UpdateAPIToken", UpdateAPITokenDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllAPITokensDocument = `query GetAllAPITokens { + apiTokens { + edges { + node { + id + token + scopes + owner { + id + } + createdAt + updatedAt + createdBy + updatedBy + name + expiresAt + description + lastUsedAt + } + } + } +} +` + +func (c *Client) GetAllAPITokens(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllAPITokens, error) { + vars := map[string]any{} + + var res GetAllAPITokens + if err := c.Client.Post(ctx, "GetAllAPITokens", GetAllAPITokensDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAPITokenByIDDocument = `query GetAPITokenByID ($apiTokenId: ID!) { + apiToken(id: $apiTokenId) { + id + token + scopes + owner { + id + } + createdAt + updatedAt + createdBy + updatedBy + name + expiresAt + description + lastUsedAt + } +} +` + +func (c *Client) GetAPITokenByID(ctx context.Context, apiTokenID string, interceptors ...clientv2.RequestInterceptor) (*GetAPITokenByID, error) { + vars := map[string]any{ + "apiTokenId": apiTokenID, + } + + var res GetAPITokenByID + if err := c.Client.Post(ctx, "GetAPITokenByID", GetAPITokenByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteAPITokenDocument = `mutation DeleteAPIToken ($deleteAPITokenId: ID!) { + deleteAPIToken(id: $deleteAPITokenId) { + deletedID + } +} +` + +func (c *Client) DeleteAPIToken(ctx context.Context, deleteAPITokenID string, interceptors ...clientv2.RequestInterceptor) (*DeleteAPIToken, error) { + vars := map[string]any{ + "deleteAPITokenId": deleteAPITokenID, + } + + var res DeleteAPIToken + if err := c.Client.Post(ctx, "DeleteAPIToken", DeleteAPITokenDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkContactDocument = `mutation CreateBulkContact ($input: [CreateContactInput!]) { + createBulkContact(input: $input) { + contacts { + address + company + createdAt + createdBy + email + fullName + id + ownerID + phoneNumber + status + tags + title + updatedAt + updatedBy + } + } +} +` + +func (c *Client) CreateBulkContact(ctx context.Context, input []*CreateContactInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkContact, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkContact + if err := c.Client.Post(ctx, "CreateBulkContact", CreateBulkContactDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVContactDocument = `mutation CreateBulkCSVContact ($input: Upload!) { + createBulkCSVContact(input: $input) { + contacts { + address + company + createdAt + createdBy + email + fullName + id + ownerID + phoneNumber + status + tags + title + updatedAt + updatedBy + } + } +} +` + +func (c *Client) CreateBulkCSVContact(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVContact, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkCSVContact + if err := c.Client.Post(ctx, "CreateBulkCSVContact", CreateBulkCSVContactDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateContactDocument = `mutation CreateContact ($input: CreateContactInput!) { + createContact(input: $input) { + contact { + address + company + createdAt + createdBy + email + fullName + id + ownerID + phoneNumber + status + tags + title + updatedAt + updatedBy + } + } +} +` + +func (c *Client) CreateContact(ctx context.Context, input CreateContactInput, interceptors ...clientv2.RequestInterceptor) (*CreateContact, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateContact + if err := c.Client.Post(ctx, "CreateContact", CreateContactDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteContactDocument = `mutation DeleteContact ($deleteContactId: ID!) { + deleteContact(id: $deleteContactId) { + deletedID + } +} +` + +func (c *Client) DeleteContact(ctx context.Context, deleteContactID string, interceptors ...clientv2.RequestInterceptor) (*DeleteContact, error) { + vars := map[string]any{ + "deleteContactId": deleteContactID, + } + + var res DeleteContact + if err := c.Client.Post(ctx, "DeleteContact", DeleteContactDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllContactsDocument = `query GetAllContacts { + contacts { + edges { + node { + address + company + createdAt + createdBy + email + fullName + id + ownerID + phoneNumber + status + tags + title + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetAllContacts(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllContacts, error) { + vars := map[string]any{} + + var res GetAllContacts + if err := c.Client.Post(ctx, "GetAllContacts", GetAllContactsDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetContactByIDDocument = `query GetContactByID ($contactId: ID!) { + contact(id: $contactId) { + address + company + createdAt + createdBy + email + fullName + id + ownerID + phoneNumber + status + tags + title + updatedAt + updatedBy + } +} +` + +func (c *Client) GetContactByID(ctx context.Context, contactID string, interceptors ...clientv2.RequestInterceptor) (*GetContactByID, error) { + vars := map[string]any{ + "contactId": contactID, + } + + var res GetContactByID + if err := c.Client.Post(ctx, "GetContactByID", GetContactByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetContactsDocument = `query GetContacts ($where: ContactWhereInput) { + contacts(where: $where) { + edges { + node { + address + company + createdAt + createdBy + email + fullName + id + ownerID + phoneNumber + status + tags + title + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetContacts(ctx context.Context, where *ContactWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetContacts, error) { + vars := map[string]any{ + "where": where, + } + + var res GetContacts + if err := c.Client.Post(ctx, "GetContacts", GetContactsDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateContactDocument = `mutation UpdateContact ($updateContactId: ID!, $input: UpdateContactInput!) { + updateContact(id: $updateContactId, input: $input) { + contact { + address + company + createdAt + createdBy + email + fullName + id + ownerID + phoneNumber + status + tags + title + updatedAt + updatedBy + } + } +} +` + +func (c *Client) UpdateContact(ctx context.Context, updateContactID string, input UpdateContactInput, interceptors ...clientv2.RequestInterceptor) (*UpdateContact, error) { + vars := map[string]any{ + "updateContactId": updateContactID, + "input": input, + } + + var res UpdateContact + if err := c.Client.Post(ctx, "UpdateContact", UpdateContactDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllContactHistoriesDocument = `query GetAllContactHistories { + contactHistories { + edges { + node { + address + company + createdAt + createdBy + email + fullName + historyTime + id + operation + ownerID + phoneNumber + ref + status + tags + title + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetAllContactHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllContactHistories, error) { + vars := map[string]any{} + + var res GetAllContactHistories + if err := c.Client.Post(ctx, "GetAllContactHistories", GetAllContactHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetContactHistoriesDocument = `query GetContactHistories ($where: ContactHistoryWhereInput) { + contactHistories(where: $where) { + edges { + node { + address + company + createdAt + createdBy + email + fullName + historyTime + id + operation + ownerID + phoneNumber + ref + status + tags + title + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetContactHistories(ctx context.Context, where *ContactHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetContactHistories, error) { + vars := map[string]any{ + "where": where, + } + + var res GetContactHistories + if err := c.Client.Post(ctx, "GetContactHistories", GetContactHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVControlDocument = `mutation CreateBulkCSVControl ($input: Upload!) { + createBulkCSVControl(input: $input) { + controls { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } +} +` + +func (c *Client) CreateBulkCSVControl(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVControl, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkCSVControl + if err := c.Client.Post(ctx, "CreateBulkCSVControl", CreateBulkCSVControlDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkControlDocument = `mutation CreateBulkControl ($input: [CreateControlInput!]) { + createBulkControl(input: $input) { + controls { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } +} +` + +func (c *Client) CreateBulkControl(ctx context.Context, input []*CreateControlInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkControl, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkControl + if err := c.Client.Post(ctx, "CreateBulkControl", CreateBulkControlDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateControlDocument = `mutation CreateControl ($input: CreateControlInput!) { + createControl(input: $input) { + control { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } +} +` + +func (c *Client) CreateControl(ctx context.Context, input CreateControlInput, interceptors ...clientv2.RequestInterceptor) (*CreateControl, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateControl + if err := c.Client.Post(ctx, "CreateControl", CreateControlDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteControlDocument = `mutation DeleteControl ($deleteControlId: ID!) { + deleteControl(id: $deleteControlId) { + deletedID + } +} +` + +func (c *Client) DeleteControl(ctx context.Context, deleteControlID string, interceptors ...clientv2.RequestInterceptor) (*DeleteControl, error) { + vars := map[string]any{ + "deleteControlId": deleteControlID, + } + + var res DeleteControl + if err := c.Client.Post(ctx, "DeleteControl", DeleteControlDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllControlsDocument = `query GetAllControls { + controls { + edges { + node { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } + } +} +` + +func (c *Client) GetAllControls(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllControls, error) { + vars := map[string]any{} + + var res GetAllControls + if err := c.Client.Post(ctx, "GetAllControls", GetAllControlsDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetControlByIDDocument = `query GetControlByID ($controlId: ID!) { + control(id: $controlId) { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } +} +` + +func (c *Client) GetControlByID(ctx context.Context, controlID string, interceptors ...clientv2.RequestInterceptor) (*GetControlByID, error) { + vars := map[string]any{ + "controlId": controlID, + } + + var res GetControlByID + if err := c.Client.Post(ctx, "GetControlByID", GetControlByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetControlsDocument = `query GetControls ($where: ControlWhereInput) { + controls(where: $where) { + edges { + node { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } + } +} +` + +func (c *Client) GetControls(ctx context.Context, where *ControlWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetControls, error) { + vars := map[string]any{ + "where": where, + } + + var res GetControls + if err := c.Client.Post(ctx, "GetControls", GetControlsDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateControlDocument = `mutation UpdateControl ($updateControlId: ID!, $input: UpdateControlInput!) { + updateControl(id: $updateControlId, input: $input) { + control { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } +} +` + +func (c *Client) UpdateControl(ctx context.Context, updateControlID string, input UpdateControlInput, interceptors ...clientv2.RequestInterceptor) (*UpdateControl, error) { + vars := map[string]any{ + "updateControlId": updateControlID, + "input": input, + } + + var res UpdateControl + if err := c.Client.Post(ctx, "UpdateControl", UpdateControlDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllControlHistoriesDocument = `query GetAllControlHistories { + controlHistories { + edges { + node { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + historyTime + id + mappedFrameworks + name + operation + ref + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } + } +} +` + +func (c *Client) GetAllControlHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllControlHistories, error) { + vars := map[string]any{} + + var res GetAllControlHistories + if err := c.Client.Post(ctx, "GetAllControlHistories", GetAllControlHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetControlHistoriesDocument = `query GetControlHistories ($where: ControlHistoryWhereInput) { + controlHistories(where: $where) { + edges { + node { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + historyTime + id + mappedFrameworks + name + operation + ref + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } + } +} +` + +func (c *Client) GetControlHistories(ctx context.Context, where *ControlHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetControlHistories, error) { + vars := map[string]any{ + "where": where, + } + + var res GetControlHistories + if err := c.Client.Post(ctx, "GetControlHistories", GetControlHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVControlObjectiveDocument = `mutation CreateBulkCSVControlObjective ($input: Upload!) { + createBulkCSVControlObjective(input: $input) { + controlObjectives { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } + } +} +` + +func (c *Client) CreateBulkCSVControlObjective(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVControlObjective, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkCSVControlObjective + if err := c.Client.Post(ctx, "CreateBulkCSVControlObjective", CreateBulkCSVControlObjectiveDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkControlObjectiveDocument = `mutation CreateBulkControlObjective ($input: [CreateControlObjectiveInput!]) { + createBulkControlObjective(input: $input) { + controlObjectives { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } + } +} +` + +func (c *Client) CreateBulkControlObjective(ctx context.Context, input []*CreateControlObjectiveInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkControlObjective, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkControlObjective + if err := c.Client.Post(ctx, "CreateBulkControlObjective", CreateBulkControlObjectiveDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateControlObjectiveDocument = `mutation CreateControlObjective ($input: CreateControlObjectiveInput!) { + createControlObjective(input: $input) { + controlObjective { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } + } +} +` + +func (c *Client) CreateControlObjective(ctx context.Context, input CreateControlObjectiveInput, interceptors ...clientv2.RequestInterceptor) (*CreateControlObjective, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateControlObjective + if err := c.Client.Post(ctx, "CreateControlObjective", CreateControlObjectiveDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteControlObjectiveDocument = `mutation DeleteControlObjective ($deleteControlObjectiveId: ID!) { + deleteControlObjective(id: $deleteControlObjectiveId) { + deletedID + } +} +` + +func (c *Client) DeleteControlObjective(ctx context.Context, deleteControlObjectiveID string, interceptors ...clientv2.RequestInterceptor) (*DeleteControlObjective, error) { + vars := map[string]any{ + "deleteControlObjectiveId": deleteControlObjectiveID, + } + + var res DeleteControlObjective + if err := c.Client.Post(ctx, "DeleteControlObjective", DeleteControlObjectiveDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllControlObjectivesDocument = `query GetAllControlObjectives { + controlObjectives { + edges { + node { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } + } + } +} +` + +func (c *Client) GetAllControlObjectives(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllControlObjectives, error) { + vars := map[string]any{} + + var res GetAllControlObjectives + if err := c.Client.Post(ctx, "GetAllControlObjectives", GetAllControlObjectivesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetControlObjectiveByIDDocument = `query GetControlObjectiveByID ($controlObjectiveId: ID!) { + controlObjective(id: $controlObjectiveId) { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } +} +` + +func (c *Client) GetControlObjectiveByID(ctx context.Context, controlObjectiveID string, interceptors ...clientv2.RequestInterceptor) (*GetControlObjectiveByID, error) { + vars := map[string]any{ + "controlObjectiveId": controlObjectiveID, + } + + var res GetControlObjectiveByID + if err := c.Client.Post(ctx, "GetControlObjectiveByID", GetControlObjectiveByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetControlObjectivesDocument = `query GetControlObjectives ($where: ControlObjectiveWhereInput) { + controlObjectives(where: $where) { + edges { + node { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } + } + } +} +` + +func (c *Client) GetControlObjectives(ctx context.Context, where *ControlObjectiveWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetControlObjectives, error) { + vars := map[string]any{ + "where": where, + } + + var res GetControlObjectives + if err := c.Client.Post(ctx, "GetControlObjectives", GetControlObjectivesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateControlObjectiveDocument = `mutation UpdateControlObjective ($updateControlObjectiveId: ID!, $input: UpdateControlObjectiveInput!) { + updateControlObjective(id: $updateControlObjectiveId, input: $input) { + controlObjective { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } + } +} +` + +func (c *Client) UpdateControlObjective(ctx context.Context, updateControlObjectiveID string, input UpdateControlObjectiveInput, interceptors ...clientv2.RequestInterceptor) (*UpdateControlObjective, error) { + vars := map[string]any{ + "updateControlObjectiveId": updateControlObjectiveID, + "input": input, + } + + var res UpdateControlObjective + if err := c.Client.Post(ctx, "UpdateControlObjective", UpdateControlObjectiveDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllControlObjectiveHistoriesDocument = `query GetAllControlObjectiveHistories { + controlObjectiveHistories { + edges { + node { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + historyTime + id + mappedFrameworks + name + operation + ref + source + status + tags + updatedAt + updatedBy + version + } + } + } +} +` + +func (c *Client) GetAllControlObjectiveHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllControlObjectiveHistories, error) { + vars := map[string]any{} + + var res GetAllControlObjectiveHistories + if err := c.Client.Post(ctx, "GetAllControlObjectiveHistories", GetAllControlObjectiveHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetControlObjectiveHistoriesDocument = `query GetControlObjectiveHistories ($where: ControlObjectiveHistoryWhereInput) { + controlObjectiveHistories(where: $where) { + edges { + node { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + historyTime + id + mappedFrameworks + name + operation + ref + source + status + tags + updatedAt + updatedBy + version + } + } + } +} +` + +func (c *Client) GetControlObjectiveHistories(ctx context.Context, where *ControlObjectiveHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetControlObjectiveHistories, error) { + vars := map[string]any{ + "where": where, + } + + var res GetControlObjectiveHistories + if err := c.Client.Post(ctx, "GetControlObjectiveHistories", GetControlObjectiveHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateDocumentDataDocument = `mutation CreateDocumentData ($input: CreateDocumentDataInput!) { + createDocumentData(input: $input) { + documentData { + id + templateID + data + createdAt + createdBy + updatedAt + updatedBy + } + } +} +` + +func (c *Client) CreateDocumentData(ctx context.Context, input CreateDocumentDataInput, interceptors ...clientv2.RequestInterceptor) (*CreateDocumentData, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateDocumentData + if err := c.Client.Post(ctx, "CreateDocumentData", CreateDocumentDataDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteDocumentDataDocument = `mutation DeleteDocumentData ($deleteDocumentDataId: ID!) { + deleteDocumentData(id: $deleteDocumentDataId) { + deletedID + } +} +` + +func (c *Client) DeleteDocumentData(ctx context.Context, deleteDocumentDataID string, interceptors ...clientv2.RequestInterceptor) (*DeleteDocumentData, error) { + vars := map[string]any{ + "deleteDocumentDataId": deleteDocumentDataID, + } + + var res DeleteDocumentData + if err := c.Client.Post(ctx, "DeleteDocumentData", DeleteDocumentDataDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetDocumentDataByIDDocument = `query GetDocumentDataByID ($documentDataId: ID!) { + documentData(id: $documentDataId) { + id + templateID + data + createdAt + createdBy + updatedAt + updatedBy + } +} +` + +func (c *Client) GetDocumentDataByID(ctx context.Context, documentDataID string, interceptors ...clientv2.RequestInterceptor) (*GetDocumentDataByID, error) { + vars := map[string]any{ + "documentDataId": documentDataID, + } + + var res GetDocumentDataByID + if err := c.Client.Post(ctx, "GetDocumentDataByID", GetDocumentDataByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateDocumentDataDocument = `mutation UpdateDocumentData ($updateDocumentDataId: ID!, $input: UpdateDocumentDataInput!) { + updateDocumentData(id: $updateDocumentDataId, input: $input) { + documentData { + id + templateID + data + createdAt + createdBy + updatedAt + updatedBy + } + } +} +` + +func (c *Client) UpdateDocumentData(ctx context.Context, updateDocumentDataID string, input UpdateDocumentDataInput, interceptors ...clientv2.RequestInterceptor) (*UpdateDocumentData, error) { + vars := map[string]any{ + "updateDocumentDataId": updateDocumentDataID, + "input": input, + } + + var res UpdateDocumentData + if err := c.Client.Post(ctx, "UpdateDocumentData", UpdateDocumentDataDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllDocumentDataHistoriesDocument = `query GetAllDocumentDataHistories { + documentDataHistories { + edges { + node { + createdAt + createdBy + data + historyTime + id + operation + ownerID + ref + tags + templateID + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetAllDocumentDataHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllDocumentDataHistories, error) { + vars := map[string]any{} + + var res GetAllDocumentDataHistories + if err := c.Client.Post(ctx, "GetAllDocumentDataHistories", GetAllDocumentDataHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetDocumentDataHistoriesDocument = `query GetDocumentDataHistories ($where: DocumentDataHistoryWhereInput) { + documentDataHistories(where: $where) { + edges { + node { + createdAt + createdBy + data + historyTime + id + operation + ownerID + ref + tags + templateID + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetDocumentDataHistories(ctx context.Context, where *DocumentDataHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetDocumentDataHistories, error) { + vars := map[string]any{ + "where": where, + } + + var res GetDocumentDataHistories + if err := c.Client.Post(ctx, "GetDocumentDataHistories", GetDocumentDataHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVEntitlementDocument = `mutation CreateBulkCSVEntitlement ($input: Upload!) { + createBulkCSVEntitlement(input: $input) { + entitlements { + id + plan { + id + name + } + expires + expiresAt + cancelled + externalCustomerID + externalSubscriptionID + organization { + id + name + } + } + } +} +` + +func (c *Client) CreateBulkCSVEntitlement(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVEntitlement, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkCSVEntitlement + if err := c.Client.Post(ctx, "CreateBulkCSVEntitlement", CreateBulkCSVEntitlementDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkEntitlementDocument = `mutation CreateBulkEntitlement ($input: [CreateEntitlementInput!]) { + createBulkEntitlement(input: $input) { + entitlements { + id + plan { + id + name + } + organization { + id + name + } + expires + expiresAt + cancelled + externalCustomerID + externalSubscriptionID + } + } +} +` + +func (c *Client) CreateBulkEntitlement(ctx context.Context, input []*CreateEntitlementInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkEntitlement, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkEntitlement + if err := c.Client.Post(ctx, "CreateBulkEntitlement", CreateBulkEntitlementDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateEntitlementDocument = `mutation CreateEntitlement ($input: CreateEntitlementInput!) { + createEntitlement(input: $input) { + entitlement { + id + plan { + id + name + } + organization { + id + name + } + expires + expiresAt + cancelled + externalCustomerID + externalSubscriptionID + } + } +} +` + +func (c *Client) CreateEntitlement(ctx context.Context, input CreateEntitlementInput, interceptors ...clientv2.RequestInterceptor) (*CreateEntitlement, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateEntitlement + if err := c.Client.Post(ctx, "CreateEntitlement", CreateEntitlementDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteEntitlementDocument = `mutation DeleteEntitlement ($deleteEntitlementId: ID!) { + deleteEntitlement(id: $deleteEntitlementId) { + deletedID + } +} +` + +func (c *Client) DeleteEntitlement(ctx context.Context, deleteEntitlementID string, interceptors ...clientv2.RequestInterceptor) (*DeleteEntitlement, error) { + vars := map[string]any{ + "deleteEntitlementId": deleteEntitlementID, + } + + var res DeleteEntitlement + if err := c.Client.Post(ctx, "DeleteEntitlement", DeleteEntitlementDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllEntitlementsDocument = `query GetAllEntitlements { + entitlements { + edges { + node { + id + plan { + id + name + features { + metadata + feature { + id + name + } + } + } + organization { + id + name + } + expires + expiresAt + cancelled + externalCustomerID + externalSubscriptionID + } + } + } +} +` + +func (c *Client) GetAllEntitlements(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntitlements, error) { + vars := map[string]any{} + + var res GetAllEntitlements + if err := c.Client.Post(ctx, "GetAllEntitlements", GetAllEntitlementsDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetEntitlementByIDDocument = `query GetEntitlementByID ($entitlementId: ID!) { + entitlement(id: $entitlementId) { + id + plan { + id + name + features { + metadata + feature { + id + name + } + } + } + organization { + id + name + } + expires + expiresAt + cancelled + externalCustomerID + externalSubscriptionID + } +} +` + +func (c *Client) GetEntitlementByID(ctx context.Context, entitlementID string, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementByID, error) { + vars := map[string]any{ + "entitlementId": entitlementID, + } + + var res GetEntitlementByID + if err := c.Client.Post(ctx, "GetEntitlementByID", GetEntitlementByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetEntitlementsDocument = `query GetEntitlements ($where: EntitlementWhereInput) { + entitlements(where: $where) { + edges { + node { + id + plan { + id + name + features { + metadata + feature { + id + name + } + } + } + organization { + id + name + } + expires + expiresAt + cancelled + externalCustomerID + externalSubscriptionID + } + } + } +} +` + +func (c *Client) GetEntitlements(ctx context.Context, where *EntitlementWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntitlements, error) { + vars := map[string]any{ + "where": where, + } + + var res GetEntitlements + if err := c.Client.Post(ctx, "GetEntitlements", GetEntitlementsDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateEntitlementDocument = `mutation UpdateEntitlement ($updateEntitlementId: ID!, $input: UpdateEntitlementInput!) { + updateEntitlement(id: $updateEntitlementId, input: $input) { + entitlement { + id + plan { + id + name + } + expires + expiresAt + cancelled + externalCustomerID + externalSubscriptionID + } + } +} +` + +func (c *Client) UpdateEntitlement(ctx context.Context, updateEntitlementID string, input UpdateEntitlementInput, interceptors ...clientv2.RequestInterceptor) (*UpdateEntitlement, error) { + vars := map[string]any{ + "updateEntitlementId": updateEntitlementID, + "input": input, + } + + var res UpdateEntitlement + if err := c.Client.Post(ctx, "UpdateEntitlement", UpdateEntitlementDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllEntitlementHistoriesDocument = `query GetAllEntitlementHistories { + entitlementHistories { + edges { + node { + cancelled + createdAt + createdBy + expires + expiresAt + externalCustomerID + externalSubscriptionID + historyTime + id + operation + organizationID + ownerID + planID + ref + tags + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetAllEntitlementHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntitlementHistories, error) { + vars := map[string]any{} + + var res GetAllEntitlementHistories + if err := c.Client.Post(ctx, "GetAllEntitlementHistories", GetAllEntitlementHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetEntitlementHistoriesDocument = `query GetEntitlementHistories ($where: EntitlementHistoryWhereInput) { + entitlementHistories(where: $where) { + edges { + node { + cancelled + createdAt + createdBy + expires + expiresAt + externalCustomerID + externalSubscriptionID + historyTime + id + operation + organizationID + ownerID + planID + ref + tags + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetEntitlementHistories(ctx context.Context, where *EntitlementHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementHistories, error) { + vars := map[string]any{ + "where": where, + } + + var res GetEntitlementHistories + if err := c.Client.Post(ctx, "GetEntitlementHistories", GetEntitlementHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVEntitlementPlanDocument = `mutation CreateBulkCSVEntitlementPlan ($input: Upload!) { + createBulkCSVEntitlementPlan(input: $input) { + entitlementPlans { + id + name + displayName + metadata + tags + version + description + } + } +} +` + +func (c *Client) CreateBulkCSVEntitlementPlan(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVEntitlementPlan, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkCSVEntitlementPlan + if err := c.Client.Post(ctx, "CreateBulkCSVEntitlementPlan", CreateBulkCSVEntitlementPlanDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkEntitlementPlanDocument = `mutation CreateBulkEntitlementPlan ($input: [CreateEntitlementPlanInput!]) { + createBulkEntitlementPlan(input: $input) { + entitlementPlans { + id + name + displayName + metadata + tags + version + description + } + } +} +` + +func (c *Client) CreateBulkEntitlementPlan(ctx context.Context, input []*CreateEntitlementPlanInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkEntitlementPlan, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkEntitlementPlan + if err := c.Client.Post(ctx, "CreateBulkEntitlementPlan", CreateBulkEntitlementPlanDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateEntitlementPlanDocument = `mutation CreateEntitlementPlan ($input: CreateEntitlementPlanInput!) { + createEntitlementPlan(input: $input) { + entitlementPlan { + id + name + displayName + metadata + tags + version + description + } + } +} +` + +func (c *Client) CreateEntitlementPlan(ctx context.Context, input CreateEntitlementPlanInput, interceptors ...clientv2.RequestInterceptor) (*CreateEntitlementPlan, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateEntitlementPlan + if err := c.Client.Post(ctx, "CreateEntitlementPlan", CreateEntitlementPlanDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteEntitlementPlanDocument = `mutation DeleteEntitlementPlan ($deleteEntitlementPlanId: ID!) { + deleteEntitlementPlan(id: $deleteEntitlementPlanId) { + deletedID + } +} +` + +func (c *Client) DeleteEntitlementPlan(ctx context.Context, deleteEntitlementPlanID string, interceptors ...clientv2.RequestInterceptor) (*DeleteEntitlementPlan, error) { + vars := map[string]any{ + "deleteEntitlementPlanId": deleteEntitlementPlanID, + } + + var res DeleteEntitlementPlan + if err := c.Client.Post(ctx, "DeleteEntitlementPlan", DeleteEntitlementPlanDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllEntitlementPlansDocument = `query GetAllEntitlementPlans { + entitlementPlans { + edges { + node { + id + name + displayName + metadata + tags + version + description + features { + feature { + id + metadata + name + } + metadata + tags + } + } + } + } +} +` + +func (c *Client) GetAllEntitlementPlans(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntitlementPlans, error) { + vars := map[string]any{} + + var res GetAllEntitlementPlans + if err := c.Client.Post(ctx, "GetAllEntitlementPlans", GetAllEntitlementPlansDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetEntitlementPlanByIDDocument = `query GetEntitlementPlanByID ($entitlementPlanId: ID!) { + entitlementPlan(id: $entitlementPlanId) { + id + name + displayName + metadata + tags + version + description + features { + feature { + id + metadata + name + } + metadata + tags + } + } +} +` + +func (c *Client) GetEntitlementPlanByID(ctx context.Context, entitlementPlanID string, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementPlanByID, error) { + vars := map[string]any{ + "entitlementPlanId": entitlementPlanID, + } + + var res GetEntitlementPlanByID + if err := c.Client.Post(ctx, "GetEntitlementPlanByID", GetEntitlementPlanByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetEntitlementPlansDocument = `query GetEntitlementPlans ($where: EntitlementPlanWhereInput) { + entitlementPlans(where: $where) { + edges { + node { + id + name + displayName + metadata + tags + version + description + features { + feature { + id + metadata + name + } + metadata + tags + } + } + } + } +} +` + +func (c *Client) GetEntitlementPlans(ctx context.Context, where *EntitlementPlanWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementPlans, error) { + vars := map[string]any{ + "where": where, + } + + var res GetEntitlementPlans + if err := c.Client.Post(ctx, "GetEntitlementPlans", GetEntitlementPlansDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateEntitlementPlanDocument = `mutation UpdateEntitlementPlan ($updateEntitlementPlanId: ID!, $input: UpdateEntitlementPlanInput!) { + updateEntitlementPlan(id: $updateEntitlementPlanId, input: $input) { + entitlementPlan { + id + name + displayName + metadata + tags + version + description + } + } +} +` + +func (c *Client) UpdateEntitlementPlan(ctx context.Context, updateEntitlementPlanID string, input UpdateEntitlementPlanInput, interceptors ...clientv2.RequestInterceptor) (*UpdateEntitlementPlan, error) { + vars := map[string]any{ + "updateEntitlementPlanId": updateEntitlementPlanID, + "input": input, + } + + var res UpdateEntitlementPlan + if err := c.Client.Post(ctx, "UpdateEntitlementPlan", UpdateEntitlementPlanDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVEntitlementPlanFeatureDocument = `mutation CreateBulkCSVEntitlementPlanFeature ($input: Upload!) { + createBulkCSVEntitlementPlanFeature(input: $input) { + entitlementPlanFeatures { + id + metadata + plan { + id + name + } + feature { + id + name + } + } + } +} +` + +func (c *Client) CreateBulkCSVEntitlementPlanFeature(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVEntitlementPlanFeature, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkCSVEntitlementPlanFeature + if err := c.Client.Post(ctx, "CreateBulkCSVEntitlementPlanFeature", CreateBulkCSVEntitlementPlanFeatureDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkEntitlementPlanFeatureDocument = `mutation CreateBulkEntitlementPlanFeature ($input: [CreateEntitlementPlanFeatureInput!]) { + createBulkEntitlementPlanFeature(input: $input) { + entitlementPlanFeatures { + id + metadata + plan { + id + name + } + feature { + id + name + } + } + } +} +` + +func (c *Client) CreateBulkEntitlementPlanFeature(ctx context.Context, input []*CreateEntitlementPlanFeatureInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkEntitlementPlanFeature, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkEntitlementPlanFeature + if err := c.Client.Post(ctx, "CreateBulkEntitlementPlanFeature", CreateBulkEntitlementPlanFeatureDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateEntitlementPlanFeatureDocument = `mutation CreateEntitlementPlanFeature ($input: CreateEntitlementPlanFeatureInput!) { + createEntitlementPlanFeature(input: $input) { + entitlementPlanFeature { + id + metadata + plan { + id + name + } + feature { + id + name + } + } + } +} +` + +func (c *Client) CreateEntitlementPlanFeature(ctx context.Context, input CreateEntitlementPlanFeatureInput, interceptors ...clientv2.RequestInterceptor) (*CreateEntitlementPlanFeature, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateEntitlementPlanFeature + if err := c.Client.Post(ctx, "CreateEntitlementPlanFeature", CreateEntitlementPlanFeatureDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteEntitlementPlanFeatureDocument = `mutation DeleteEntitlementPlanFeature ($deleteEntitlementPlanFeatureId: ID!) { + deleteEntitlementPlanFeature(id: $deleteEntitlementPlanFeatureId) { + deletedID + } +} +` + +func (c *Client) DeleteEntitlementPlanFeature(ctx context.Context, deleteEntitlementPlanFeatureID string, interceptors ...clientv2.RequestInterceptor) (*DeleteEntitlementPlanFeature, error) { + vars := map[string]any{ + "deleteEntitlementPlanFeatureId": deleteEntitlementPlanFeatureID, + } + + var res DeleteEntitlementPlanFeature + if err := c.Client.Post(ctx, "DeleteEntitlementPlanFeature", DeleteEntitlementPlanFeatureDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllEntitlementPlanFeaturesDocument = `query GetAllEntitlementPlanFeatures { + entitlementPlanFeatures { + edges { + node { + id + feature { + id + name + } + metadata + plan { + id + name + } + } + } + } +} +` + +func (c *Client) GetAllEntitlementPlanFeatures(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntitlementPlanFeatures, error) { + vars := map[string]any{} + + var res GetAllEntitlementPlanFeatures + if err := c.Client.Post(ctx, "GetAllEntitlementPlanFeatures", GetAllEntitlementPlanFeaturesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetEntitlementPlanFeatureByIDDocument = `query GetEntitlementPlanFeatureByID ($entitlementPlanFeatureId: ID!) { + entitlementPlanFeature(id: $entitlementPlanFeatureId) { + id + metadata + plan { + id + name + } + feature { + id + name + } + } +} +` + +func (c *Client) GetEntitlementPlanFeatureByID(ctx context.Context, entitlementPlanFeatureID string, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementPlanFeatureByID, error) { + vars := map[string]any{ + "entitlementPlanFeatureId": entitlementPlanFeatureID, + } + + var res GetEntitlementPlanFeatureByID + if err := c.Client.Post(ctx, "GetEntitlementPlanFeatureByID", GetEntitlementPlanFeatureByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetEntitlementPlanFeaturesDocument = `query GetEntitlementPlanFeatures ($where: EntitlementPlanFeatureWhereInput) { + entitlementPlanFeatures(where: $where) { + edges { + node { + id + metadata + plan { + id + name + } + feature { + id + name + } + } + } + } +} +` + +func (c *Client) GetEntitlementPlanFeatures(ctx context.Context, where *EntitlementPlanFeatureWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementPlanFeatures, error) { + vars := map[string]any{ + "where": where, + } + + var res GetEntitlementPlanFeatures + if err := c.Client.Post(ctx, "GetEntitlementPlanFeatures", GetEntitlementPlanFeaturesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateEntitlementPlanFeatureDocument = `mutation UpdateEntitlementPlanFeature ($updateEntitlementPlanFeatureId: ID!, $input: UpdateEntitlementPlanFeatureInput!) { + updateEntitlementPlanFeature(id: $updateEntitlementPlanFeatureId, input: $input) { + entitlementPlanFeature { + id + metadata + plan { + id + name + } + feature { + id + name + } + } + } +} +` + +func (c *Client) UpdateEntitlementPlanFeature(ctx context.Context, updateEntitlementPlanFeatureID string, input UpdateEntitlementPlanFeatureInput, interceptors ...clientv2.RequestInterceptor) (*UpdateEntitlementPlanFeature, error) { + vars := map[string]any{ + "updateEntitlementPlanFeatureId": updateEntitlementPlanFeatureID, + "input": input, + } + + var res UpdateEntitlementPlanFeature + if err := c.Client.Post(ctx, "UpdateEntitlementPlanFeature", UpdateEntitlementPlanFeatureDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllEntitlementPlanFeatureHistoriesDocument = `query GetAllEntitlementPlanFeatureHistories { + entitlementPlanFeatureHistories { + edges { + node { + createdAt + createdBy + featureID + historyTime + id + metadata + operation + ownerID + planID + ref + tags + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetAllEntitlementPlanFeatureHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntitlementPlanFeatureHistories, error) { + vars := map[string]any{} + + var res GetAllEntitlementPlanFeatureHistories + if err := c.Client.Post(ctx, "GetAllEntitlementPlanFeatureHistories", GetAllEntitlementPlanFeatureHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetEntitlementPlanFeatureHistoriesDocument = `query GetEntitlementPlanFeatureHistories ($where: EntitlementPlanFeatureHistoryWhereInput) { + entitlementPlanFeatureHistories(where: $where) { + edges { + node { + createdAt + createdBy + featureID + historyTime + id + metadata + operation + ownerID + planID + ref + tags + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetEntitlementPlanFeatureHistories(ctx context.Context, where *EntitlementPlanFeatureHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementPlanFeatureHistories, error) { + vars := map[string]any{ + "where": where, + } + + var res GetEntitlementPlanFeatureHistories + if err := c.Client.Post(ctx, "GetEntitlementPlanFeatureHistories", GetEntitlementPlanFeatureHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllEntitlementPlanHistoriesDocument = `query GetAllEntitlementPlanHistories { + entitlementPlanHistories { + edges { + node { + createdAt + createdBy + description + displayName + historyTime + id + metadata + name + operation + ownerID + ref + tags + updatedAt + updatedBy + version + } + } + } +} +` + +func (c *Client) GetAllEntitlementPlanHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntitlementPlanHistories, error) { + vars := map[string]any{} + + var res GetAllEntitlementPlanHistories + if err := c.Client.Post(ctx, "GetAllEntitlementPlanHistories", GetAllEntitlementPlanHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetEntitlementPlanHistoriesDocument = `query GetEntitlementPlanHistories ($where: EntitlementPlanHistoryWhereInput) { + entitlementPlanHistories(where: $where) { + edges { + node { + createdAt + createdBy + description + displayName + historyTime + id + metadata + name + operation + ownerID + ref + tags + updatedAt + updatedBy + version + } + } + } +} +` + +func (c *Client) GetEntitlementPlanHistories(ctx context.Context, where *EntitlementPlanHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementPlanHistories, error) { + vars := map[string]any{ + "where": where, + } + + var res GetEntitlementPlanHistories + if err := c.Client.Post(ctx, "GetEntitlementPlanHistories", GetEntitlementPlanHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVEntityDocument = `mutation CreateBulkCSVEntity ($input: Upload!) { + createBulkCSVEntity(input: $input) { + entities { + createdAt + createdBy + description + displayName + status + domains + notes { + text + updatedAt + updatedBy + } + entityType { + name + } + id + name + ownerID + tags + updatedAt + updatedBy + } + } +} +` + +func (c *Client) CreateBulkCSVEntity(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVEntity, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkCSVEntity + if err := c.Client.Post(ctx, "CreateBulkCSVEntity", CreateBulkCSVEntityDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkEntityDocument = `mutation CreateBulkEntity ($input: [CreateEntityInput!]) { + createBulkEntity(input: $input) { + entities { + createdAt + createdBy + description + displayName + status + domains + notes { + text + updatedAt + updatedBy + } + entityType { + name + } + id + name + ownerID + tags + updatedAt + updatedBy + } + } +} +` + +func (c *Client) CreateBulkEntity(ctx context.Context, input []*CreateEntityInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkEntity, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkEntity + if err := c.Client.Post(ctx, "CreateBulkEntity", CreateBulkEntityDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateEntityDocument = `mutation CreateEntity ($input: CreateEntityInput!) { + createEntity(input: $input) { + entity { + createdAt + createdBy + description + displayName + status + domains + notes { + text + updatedAt + updatedBy } + entityType { + name + } + id + name + ownerID + tags + updatedAt + updatedBy } } } ` -func (c *Client) AdminSearch(ctx context.Context, query string, interceptors ...clientv2.RequestInterceptor) (*AdminSearch, error) { +func (c *Client) CreateEntity(ctx context.Context, input CreateEntityInput, interceptors ...clientv2.RequestInterceptor) (*CreateEntity, error) { vars := map[string]any{ - "query": query, + "input": input, } - var res AdminSearch - if err := c.Client.Post(ctx, "AdminSearch", AdminSearchDocument, &res, vars, interceptors...); err != nil { + var res CreateEntity + if err := c.Client.Post(ctx, "CreateEntity", CreateEntityDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -32715,35 +49303,20 @@ func (c *Client) AdminSearch(ctx context.Context, query string, interceptors ... return &res, nil } -const CreateAPITokenDocument = `mutation CreateAPIToken ($input: CreateAPITokenInput!) { - createAPIToken(input: $input) { - apiToken { - id - token - scopes - owner { - id - } - createdAt - updatedAt - createdBy - updatedBy - name - expiresAt - description - lastUsedAt - } +const DeleteEntityDocument = `mutation DeleteEntity ($deleteEntityId: ID!) { + deleteEntity(id: $deleteEntityId) { + deletedID } } ` -func (c *Client) CreateAPIToken(ctx context.Context, input CreateAPITokenInput, interceptors ...clientv2.RequestInterceptor) (*CreateAPIToken, error) { +func (c *Client) DeleteEntity(ctx context.Context, deleteEntityID string, interceptors ...clientv2.RequestInterceptor) (*DeleteEntity, error) { vars := map[string]any{ - "input": input, + "deleteEntityId": deleteEntityID, } - var res CreateAPIToken - if err := c.Client.Post(ctx, "CreateAPIToken", CreateAPITokenDocument, &res, vars, interceptors...); err != nil { + var res DeleteEntity + if err := c.Client.Post(ctx, "DeleteEntity", DeleteEntityDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -32754,36 +49327,41 @@ func (c *Client) CreateAPIToken(ctx context.Context, input CreateAPITokenInput, return &res, nil } -const UpdateAPITokenDocument = `mutation UpdateAPIToken ($updateAPITokenId: ID!, $input: UpdateAPITokenInput!) { - updateAPIToken(id: $updateAPITokenId, input: $input) { - apiToken { - id - token - scopes - owner { +const GetAllEntitiesDocument = `query GetAllEntities { + entities { + edges { + node { + createdAt + createdBy + description + displayName + status + domains + notes { + text + updatedAt + updatedBy + } + entityType { + name + } id + name + ownerID + tags + updatedAt + updatedBy } - createdAt - updatedAt - createdBy - updatedBy - name - expiresAt - description - lastUsedAt } } } ` -func (c *Client) UpdateAPIToken(ctx context.Context, updateAPITokenID string, input UpdateAPITokenInput, interceptors ...clientv2.RequestInterceptor) (*UpdateAPIToken, error) { - vars := map[string]any{ - "updateAPITokenId": updateAPITokenID, - "input": input, - } +func (c *Client) GetAllEntities(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntities, error) { + vars := map[string]any{} - var res UpdateAPIToken - if err := c.Client.Post(ctx, "UpdateAPIToken", UpdateAPITokenDocument, &res, vars, interceptors...); err != nil { + var res GetAllEntities + if err := c.Client.Post(ctx, "GetAllEntities", GetAllEntitiesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -32794,35 +49372,43 @@ func (c *Client) UpdateAPIToken(ctx context.Context, updateAPITokenID string, in return &res, nil } -const GetAllAPITokensDocument = `query GetAllAPITokens { - apiTokens { +const GetEntitiesDocument = `query GetEntities ($where: EntityWhereInput) { + entities(where: $where) { edges { node { - id - token - scopes - owner { - id - } createdAt - updatedAt createdBy - updatedBy - name - expiresAt description - lastUsedAt + displayName + status + domains + notes { + text + updatedAt + updatedBy + } + entityType { + name + } + id + name + ownerID + tags + updatedAt + updatedBy } } } } ` -func (c *Client) GetAllAPITokens(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllAPITokens, error) { - vars := map[string]any{} +func (c *Client) GetEntities(ctx context.Context, where *EntityWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntities, error) { + vars := map[string]any{ + "where": where, + } - var res GetAllAPITokens - if err := c.Client.Post(ctx, "GetAllAPITokens", GetAllAPITokensDocument, &res, vars, interceptors...); err != nil { + var res GetEntities + if err := c.Client.Post(ctx, "GetEntities", GetEntitiesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -32833,33 +49419,48 @@ func (c *Client) GetAllAPITokens(ctx context.Context, interceptors ...clientv2.R return &res, nil } -const GetAPITokenByIDDocument = `query GetAPITokenByID ($apiTokenId: ID!) { - apiToken(id: $apiTokenId) { +const GetEntityByIDDocument = `query GetEntityByID ($entityId: ID!) { + entity(id: $entityId) { + createdAt + createdBy + description + displayName + status + domains + notes { + text + updatedAt + updatedBy + } + entityType { + name + } id - token - scopes - owner { + name + ownerID + contacts { id + fullName + email + title + company + address + phoneNumber } - createdAt + tags updatedAt - createdBy updatedBy - name - expiresAt - description - lastUsedAt } } ` -func (c *Client) GetAPITokenByID(ctx context.Context, apiTokenID string, interceptors ...clientv2.RequestInterceptor) (*GetAPITokenByID, error) { +func (c *Client) GetEntityByID(ctx context.Context, entityID string, interceptors ...clientv2.RequestInterceptor) (*GetEntityByID, error) { vars := map[string]any{ - "apiTokenId": apiTokenID, + "entityId": entityID, } - var res GetAPITokenByID - if err := c.Client.Post(ctx, "GetAPITokenByID", GetAPITokenByIDDocument, &res, vars, interceptors...); err != nil { + var res GetEntityByID + if err := c.Client.Post(ctx, "GetEntityByID", GetEntityByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -32870,20 +49471,42 @@ func (c *Client) GetAPITokenByID(ctx context.Context, apiTokenID string, interce return &res, nil } -const DeleteAPITokenDocument = `mutation DeleteAPIToken ($deleteAPITokenId: ID!) { - deleteAPIToken(id: $deleteAPITokenId) { - deletedID +const UpdateEntityDocument = `mutation UpdateEntity ($updateEntityId: ID!, $input: UpdateEntityInput!) { + updateEntity(id: $updateEntityId, input: $input) { + entity { + createdAt + createdBy + description + displayName + status + domains + notes { + text + updatedAt + updatedBy + } + entityType { + name + } + id + name + ownerID + tags + updatedAt + updatedBy + } } } ` -func (c *Client) DeleteAPIToken(ctx context.Context, deleteAPITokenID string, interceptors ...clientv2.RequestInterceptor) (*DeleteAPIToken, error) { +func (c *Client) UpdateEntity(ctx context.Context, updateEntityID string, input UpdateEntityInput, interceptors ...clientv2.RequestInterceptor) (*UpdateEntity, error) { vars := map[string]any{ - "deleteAPITokenId": deleteAPITokenID, + "updateEntityId": updateEntityID, + "input": input, } - var res DeleteAPIToken - if err := c.Client.Post(ctx, "DeleteAPIToken", DeleteAPITokenDocument, &res, vars, interceptors...); err != nil { + var res UpdateEntity + if err := c.Client.Post(ctx, "UpdateEntity", UpdateEntityDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -32894,21 +49517,99 @@ func (c *Client) DeleteAPIToken(ctx context.Context, deleteAPITokenID string, in return &res, nil } -const CreateBulkContactDocument = `mutation CreateBulkContact ($input: [CreateContactInput!]) { - createBulkContact(input: $input) { - contacts { - address - company +const GetAllEntityHistoriesDocument = `query GetAllEntityHistories { + entityHistories { + edges { + node { + createdAt + createdBy + description + displayName + domains + entityTypeID + historyTime + id + name + operation + ownerID + ref + status + tags + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetAllEntityHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntityHistories, error) { + vars := map[string]any{} + + var res GetAllEntityHistories + if err := c.Client.Post(ctx, "GetAllEntityHistories", GetAllEntityHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetEntityHistoriesDocument = `query GetEntityHistories ($where: EntityHistoryWhereInput) { + entityHistories(where: $where) { + edges { + node { + createdAt + createdBy + description + displayName + domains + entityTypeID + historyTime + id + name + operation + ownerID + ref + status + tags + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetEntityHistories(ctx context.Context, where *EntityHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntityHistories, error) { + vars := map[string]any{ + "where": where, + } + + var res GetEntityHistories + if err := c.Client.Post(ctx, "GetEntityHistories", GetEntityHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVEntityTypeDocument = `mutation CreateBulkCSVEntityType ($input: Upload!) { + createBulkCSVEntityType(input: $input) { + entityTypes { createdAt createdBy - email - fullName id + name ownerID - phoneNumber - status tags - title updatedAt updatedBy } @@ -32916,13 +49617,13 @@ const CreateBulkContactDocument = `mutation CreateBulkContact ($input: [CreateCo } ` -func (c *Client) CreateBulkContact(ctx context.Context, input []*CreateContactInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkContact, error) { +func (c *Client) CreateBulkCSVEntityType(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVEntityType, error) { vars := map[string]any{ "input": input, } - var res CreateBulkContact - if err := c.Client.Post(ctx, "CreateBulkContact", CreateBulkContactDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVEntityType + if err := c.Client.Post(ctx, "CreateBulkCSVEntityType", CreateBulkCSVEntityTypeDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -32933,21 +49634,15 @@ func (c *Client) CreateBulkContact(ctx context.Context, input []*CreateContactIn return &res, nil } -const CreateBulkCSVContactDocument = `mutation CreateBulkCSVContact ($input: Upload!) { - createBulkCSVContact(input: $input) { - contacts { - address - company +const CreateBulkEntityTypeDocument = `mutation CreateBulkEntityType ($input: [CreateEntityTypeInput!]) { + createBulkEntityType(input: $input) { + entityTypes { createdAt createdBy - email - fullName id + name ownerID - phoneNumber - status tags - title updatedAt updatedBy } @@ -32955,13 +49650,13 @@ const CreateBulkCSVContactDocument = `mutation CreateBulkCSVContact ($input: Upl } ` -func (c *Client) CreateBulkCSVContact(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVContact, error) { +func (c *Client) CreateBulkEntityType(ctx context.Context, input []*CreateEntityTypeInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkEntityType, error) { vars := map[string]any{ "input": input, } - var res CreateBulkCSVContact - if err := c.Client.Post(ctx, "CreateBulkCSVContact", CreateBulkCSVContactDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkEntityType + if err := c.Client.Post(ctx, "CreateBulkEntityType", CreateBulkEntityTypeDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -32972,21 +49667,15 @@ func (c *Client) CreateBulkCSVContact(ctx context.Context, input graphql.Upload, return &res, nil } -const CreateContactDocument = `mutation CreateContact ($input: CreateContactInput!) { - createContact(input: $input) { - contact { - address - company +const CreateEntityTypeDocument = `mutation CreateEntityType ($input: CreateEntityTypeInput!) { + createEntityType(input: $input) { + entityType { createdAt createdBy - email - fullName id + name ownerID - phoneNumber - status tags - title updatedAt updatedBy } @@ -32994,13 +49683,13 @@ const CreateContactDocument = `mutation CreateContact ($input: CreateContactInpu } ` -func (c *Client) CreateContact(ctx context.Context, input CreateContactInput, interceptors ...clientv2.RequestInterceptor) (*CreateContact, error) { +func (c *Client) CreateEntityType(ctx context.Context, input CreateEntityTypeInput, interceptors ...clientv2.RequestInterceptor) (*CreateEntityType, error) { vars := map[string]any{ "input": input, } - var res CreateContact - if err := c.Client.Post(ctx, "CreateContact", CreateContactDocument, &res, vars, interceptors...); err != nil { + var res CreateEntityType + if err := c.Client.Post(ctx, "CreateEntityType", CreateEntityTypeDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33011,20 +49700,20 @@ func (c *Client) CreateContact(ctx context.Context, input CreateContactInput, in return &res, nil } -const DeleteContactDocument = `mutation DeleteContact ($deleteContactId: ID!) { - deleteContact(id: $deleteContactId) { +const DeleteEntityTypeDocument = `mutation DeleteEntityType ($deleteEntityTypeId: ID!) { + deleteEntityType(id: $deleteEntityTypeId) { deletedID } } ` -func (c *Client) DeleteContact(ctx context.Context, deleteContactID string, interceptors ...clientv2.RequestInterceptor) (*DeleteContact, error) { +func (c *Client) DeleteEntityType(ctx context.Context, deleteEntityTypeID string, interceptors ...clientv2.RequestInterceptor) (*DeleteEntityType, error) { vars := map[string]any{ - "deleteContactId": deleteContactID, + "deleteEntityTypeId": deleteEntityTypeID, } - var res DeleteContact - if err := c.Client.Post(ctx, "DeleteContact", DeleteContactDocument, &res, vars, interceptors...); err != nil { + var res DeleteEntityType + if err := c.Client.Post(ctx, "DeleteEntityType", DeleteEntityTypeDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33035,22 +49724,16 @@ func (c *Client) DeleteContact(ctx context.Context, deleteContactID string, inte return &res, nil } -const GetAllContactsDocument = `query GetAllContacts { - contacts { +const GetAllEntityTypesDocument = `query GetAllEntityTypes { + entityTypes { edges { node { - address - company createdAt createdBy - email - fullName id + name ownerID - phoneNumber - status tags - title updatedAt updatedBy } @@ -33059,11 +49742,11 @@ const GetAllContactsDocument = `query GetAllContacts { } ` -func (c *Client) GetAllContacts(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllContacts, error) { +func (c *Client) GetAllEntityTypes(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntityTypes, error) { vars := map[string]any{} - var res GetAllContacts - if err := c.Client.Post(ctx, "GetAllContacts", GetAllContactsDocument, &res, vars, interceptors...); err != nil { + var res GetAllEntityTypes + if err := c.Client.Post(ctx, "GetAllEntityTypes", GetAllEntityTypesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33074,33 +49757,132 @@ func (c *Client) GetAllContacts(ctx context.Context, interceptors ...clientv2.Re return &res, nil } -const GetContactByIDDocument = `query GetContactByID ($contactId: ID!) { - contact(id: $contactId) { - address - company +const GetEntityTypeByIDDocument = `query GetEntityTypeByID ($entityTypeId: ID!) { + entityType(id: $entityTypeId) { createdAt createdBy - email - fullName id + name ownerID - phoneNumber - status tags - title updatedAt updatedBy } } ` -func (c *Client) GetContactByID(ctx context.Context, contactID string, interceptors ...clientv2.RequestInterceptor) (*GetContactByID, error) { - vars := map[string]any{ - "contactId": contactID, - } +func (c *Client) GetEntityTypeByID(ctx context.Context, entityTypeID string, interceptors ...clientv2.RequestInterceptor) (*GetEntityTypeByID, error) { + vars := map[string]any{ + "entityTypeId": entityTypeID, + } + + var res GetEntityTypeByID + if err := c.Client.Post(ctx, "GetEntityTypeByID", GetEntityTypeByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetEntityTypesDocument = `query GetEntityTypes ($where: EntityTypeWhereInput) { + entityTypes(where: $where) { + edges { + node { + createdAt + createdBy + id + name + ownerID + tags + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetEntityTypes(ctx context.Context, where *EntityTypeWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntityTypes, error) { + vars := map[string]any{ + "where": where, + } + + var res GetEntityTypes + if err := c.Client.Post(ctx, "GetEntityTypes", GetEntityTypesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateEntityTypeDocument = `mutation UpdateEntityType ($updateEntityTypeId: ID!, $input: UpdateEntityTypeInput!) { + updateEntityType(id: $updateEntityTypeId, input: $input) { + entityType { + createdAt + createdBy + id + name + ownerID + tags + updatedAt + updatedBy + } + } +} +` + +func (c *Client) UpdateEntityType(ctx context.Context, updateEntityTypeID string, input UpdateEntityTypeInput, interceptors ...clientv2.RequestInterceptor) (*UpdateEntityType, error) { + vars := map[string]any{ + "updateEntityTypeId": updateEntityTypeID, + "input": input, + } + + var res UpdateEntityType + if err := c.Client.Post(ctx, "UpdateEntityType", UpdateEntityTypeDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllEntityTypeHistoriesDocument = `query GetAllEntityTypeHistories { + entityTypeHistories { + edges { + node { + createdAt + createdBy + historyTime + id + name + operation + ownerID + ref + tags + updatedAt + updatedBy + } + } + } +} +` + +func (c *Client) GetAllEntityTypeHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntityTypeHistories, error) { + vars := map[string]any{} - var res GetContactByID - if err := c.Client.Post(ctx, "GetContactByID", GetContactByIDDocument, &res, vars, interceptors...); err != nil { + var res GetAllEntityTypeHistories + if err := c.Client.Post(ctx, "GetAllEntityTypeHistories", GetAllEntityTypeHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33111,22 +49893,19 @@ func (c *Client) GetContactByID(ctx context.Context, contactID string, intercept return &res, nil } -const GetContactsDocument = `query GetContacts ($where: ContactWhereInput) { - contacts(where: $where) { +const GetEntityTypeHistoriesDocument = `query GetEntityTypeHistories ($where: EntityTypeHistoryWhereInput) { + entityTypeHistories(where: $where) { edges { node { - address - company createdAt createdBy - email - fullName + historyTime id + name + operation ownerID - phoneNumber - status + ref tags - title updatedAt updatedBy } @@ -33135,13 +49914,13 @@ const GetContactsDocument = `query GetContacts ($where: ContactWhereInput) { } ` -func (c *Client) GetContacts(ctx context.Context, where *ContactWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetContacts, error) { +func (c *Client) GetEntityTypeHistories(ctx context.Context, where *EntityTypeHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntityTypeHistories, error) { vars := map[string]any{ "where": where, } - var res GetContacts - if err := c.Client.Post(ctx, "GetContacts", GetContactsDocument, &res, vars, interceptors...); err != nil { + var res GetEntityTypeHistories + if err := c.Client.Post(ctx, "GetEntityTypeHistories", GetEntityTypeHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33152,36 +49931,65 @@ func (c *Client) GetContacts(ctx context.Context, where *ContactWhereInput, inte return &res, nil } -const UpdateContactDocument = `mutation UpdateContact ($updateContactId: ID!, $input: UpdateContactInput!) { - updateContact(id: $updateContactId, input: $input) { - contact { - address - company - createdAt - createdBy - email - fullName +const CreateBulkCSVEventDocument = `mutation CreateBulkCSVEvent ($input: Upload!) { + createBulkCSVEvent(input: $input) { + events { id - ownerID - phoneNumber - status - tags - title - updatedAt - updatedBy + eventID + correlationID + eventType + metadata + user { + id + } + group { + id + } + integration { + id + } + organization { + id + } + invite { + id + } + feature { + id + } + personalAccessToken { + id + } + oauth2token { + id + } + hush { + id + } + orgmembership { + id + } + groupmembership { + id + } + entitlement { + id + } + webhook { + id + } } } } ` -func (c *Client) UpdateContact(ctx context.Context, updateContactID string, input UpdateContactInput, interceptors ...clientv2.RequestInterceptor) (*UpdateContact, error) { +func (c *Client) CreateBulkCSVEvent(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVEvent, error) { vars := map[string]any{ - "updateContactId": updateContactID, - "input": input, + "input": input, } - var res UpdateContact - if err := c.Client.Post(ctx, "UpdateContact", UpdateContactDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVEvent + if err := c.Client.Post(ctx, "CreateBulkCSVEvent", CreateBulkCSVEventDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33192,38 +50000,65 @@ func (c *Client) UpdateContact(ctx context.Context, updateContactID string, inpu return &res, nil } -const GetAllContactHistoriesDocument = `query GetAllContactHistories { - contactHistories { - edges { - node { - address - company - createdAt - createdBy - email - fullName - historyTime +const CreateBulkEventDocument = `mutation CreateBulkEvent ($input: [CreateEventInput!]) { + createBulkEvent(input: $input) { + events { + id + eventID + correlationID + eventType + metadata + user { + id + } + group { + id + } + integration { + id + } + organization { + id + } + invite { + id + } + feature { + id + } + personalAccessToken { + id + } + oauth2token { + id + } + hush { + id + } + orgmembership { + id + } + groupmembership { + id + } + entitlement { + id + } + webhook { id - operation - ownerID - phoneNumber - ref - status - tags - title - updatedAt - updatedBy } } } } ` -func (c *Client) GetAllContactHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllContactHistories, error) { - vars := map[string]any{} +func (c *Client) CreateBulkEvent(ctx context.Context, input []*CreateEventInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkEvent, error) { + vars := map[string]any{ + "input": input, + } - var res GetAllContactHistories - if err := c.Client.Post(ctx, "GetAllContactHistories", GetAllContactHistoriesDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkEvent + if err := c.Client.Post(ctx, "CreateBulkEvent", CreateBulkEventDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33234,40 +50069,65 @@ func (c *Client) GetAllContactHistories(ctx context.Context, interceptors ...cli return &res, nil } -const GetContactHistoriesDocument = `query GetContactHistories ($where: ContactHistoryWhereInput) { - contactHistories(where: $where) { - edges { - node { - address - company - createdAt - createdBy - email - fullName - historyTime +const CreateEventDocument = `mutation CreateEvent ($input: CreateEventInput!) { + createEvent(input: $input) { + event { + id + eventID + correlationID + eventType + metadata + user { + id + } + group { + id + } + integration { + id + } + organization { + id + } + invite { + id + } + feature { + id + } + personalAccessToken { + id + } + oauth2token { + id + } + hush { + id + } + orgmembership { + id + } + groupmembership { + id + } + entitlement { + id + } + webhook { id - operation - ownerID - phoneNumber - ref - status - tags - title - updatedAt - updatedBy } } } } ` -func (c *Client) GetContactHistories(ctx context.Context, where *ContactHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetContactHistories, error) { +func (c *Client) CreateEvent(ctx context.Context, input CreateEventInput, interceptors ...clientv2.RequestInterceptor) (*CreateEvent, error) { vars := map[string]any{ - "where": where, + "input": input, } - var res GetContactHistories - if err := c.Client.Post(ctx, "GetContactHistories", GetContactHistoriesDocument, &res, vars, interceptors...); err != nil { + var res CreateEvent + if err := c.Client.Post(ctx, "CreateEvent", CreateEventDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33278,28 +50138,20 @@ func (c *Client) GetContactHistories(ctx context.Context, where *ContactHistoryW return &res, nil } -const CreateDocumentDataDocument = `mutation CreateDocumentData ($input: CreateDocumentDataInput!) { - createDocumentData(input: $input) { - documentData { - id - templateID - data - createdAt - createdBy - updatedAt - updatedBy - } +const DeleteEventDocument = `mutation DeleteEvent ($deleteEventId: ID!) { + deleteEvent(id: $deleteEventId) { + deletedID } } ` -func (c *Client) CreateDocumentData(ctx context.Context, input CreateDocumentDataInput, interceptors ...clientv2.RequestInterceptor) (*CreateDocumentData, error) { +func (c *Client) DeleteEvent(ctx context.Context, deleteEventID string, interceptors ...clientv2.RequestInterceptor) (*DeleteEvent, error) { vars := map[string]any{ - "input": input, + "deleteEventId": deleteEventID, } - var res CreateDocumentData - if err := c.Client.Post(ctx, "CreateDocumentData", CreateDocumentDataDocument, &res, vars, interceptors...); err != nil { + var res DeleteEvent + if err := c.Client.Post(ctx, "DeleteEvent", DeleteEventDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33310,20 +50162,69 @@ func (c *Client) CreateDocumentData(ctx context.Context, input CreateDocumentDat return &res, nil } -const DeleteDocumentDataDocument = `mutation DeleteDocumentData ($deleteDocumentDataId: ID!) { - deleteDocumentData(id: $deleteDocumentDataId) { - deletedID +const GetAllEventsDocument = `query GetAllEvents { + events { + edges { + node { + id + createdAt + updatedAt + createdBy + updatedBy + eventID + correlationID + eventType + metadata + user { + id + } + group { + id + } + integration { + id + } + organization { + id + } + invite { + id + } + feature { + id + } + personalAccessToken { + id + } + oauth2token { + id + } + hush { + id + } + orgmembership { + id + } + groupmembership { + id + } + entitlement { + id + } + webhook { + id + } + } + } } } ` -func (c *Client) DeleteDocumentData(ctx context.Context, deleteDocumentDataID string, interceptors ...clientv2.RequestInterceptor) (*DeleteDocumentData, error) { - vars := map[string]any{ - "deleteDocumentDataId": deleteDocumentDataID, - } +func (c *Client) GetAllEvents(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEvents, error) { + vars := map[string]any{} - var res DeleteDocumentData - if err := c.Client.Post(ctx, "DeleteDocumentData", DeleteDocumentDataDocument, &res, vars, interceptors...); err != nil { + var res GetAllEvents + if err := c.Client.Post(ctx, "GetAllEvents", GetAllEventsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33334,26 +50235,67 @@ func (c *Client) DeleteDocumentData(ctx context.Context, deleteDocumentDataID st return &res, nil } -const GetDocumentDataByIDDocument = `query GetDocumentDataByID ($documentDataId: ID!) { - documentData(id: $documentDataId) { +const GetEventByIDDocument = `query GetEventByID ($eventId: ID!) { + event(id: $eventId) { id - templateID - data createdAt - createdBy updatedAt + createdBy updatedBy + eventID + correlationID + eventType + metadata + user { + id + } + group { + id + } + integration { + id + } + organization { + id + } + invite { + id + } + feature { + id + } + personalAccessToken { + id + } + oauth2token { + id + } + hush { + id + } + orgmembership { + id + } + groupmembership { + id + } + entitlement { + id + } + webhook { + id + } } } ` -func (c *Client) GetDocumentDataByID(ctx context.Context, documentDataID string, interceptors ...clientv2.RequestInterceptor) (*GetDocumentDataByID, error) { +func (c *Client) GetEventByID(ctx context.Context, eventID string, interceptors ...clientv2.RequestInterceptor) (*GetEventByID, error) { vars := map[string]any{ - "documentDataId": documentDataID, + "eventId": eventID, } - var res GetDocumentDataByID - if err := c.Client.Post(ctx, "GetDocumentDataByID", GetDocumentDataByIDDocument, &res, vars, interceptors...); err != nil { + var res GetEventByID + if err := c.Client.Post(ctx, "GetEventByID", GetEventByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33364,29 +50306,102 @@ func (c *Client) GetDocumentDataByID(ctx context.Context, documentDataID string, return &res, nil } -const UpdateDocumentDataDocument = `mutation UpdateDocumentData ($updateDocumentDataId: ID!, $input: UpdateDocumentDataInput!) { - updateDocumentData(id: $updateDocumentDataId, input: $input) { - documentData { +const GetEventsDocument = `query GetEvents ($where: EventWhereInput) { + events(where: $where) { + edges { + node { + eventID + id + correlationID + eventType + metadata + } + } + } +} +` + +func (c *Client) GetEvents(ctx context.Context, where *EventWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEvents, error) { + vars := map[string]any{ + "where": where, + } + + var res GetEvents + if err := c.Client.Post(ctx, "GetEvents", GetEventsDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateEventDocument = `mutation UpdateEvent ($updateEventId: ID!, $input: UpdateEventInput!) { + updateEvent(id: $updateEventId, input: $input) { + event { id - templateID - data createdAt - createdBy updatedAt + createdBy updatedBy + eventID + correlationID + eventType + metadata + user { + id + } + group { + id + } + integration { + id + } + organization { + id + } + invite { + id + } + feature { + id + } + personalAccessToken { + id + } + oauth2token { + id + } + hush { + id + } + orgmembership { + id + } + groupmembership { + id + } + entitlement { + id + } + webhook { + id + } } } } ` -func (c *Client) UpdateDocumentData(ctx context.Context, updateDocumentDataID string, input UpdateDocumentDataInput, interceptors ...clientv2.RequestInterceptor) (*UpdateDocumentData, error) { +func (c *Client) UpdateEvent(ctx context.Context, updateEventID string, input UpdateEventInput, interceptors ...clientv2.RequestInterceptor) (*UpdateEvent, error) { vars := map[string]any{ - "updateDocumentDataId": updateDocumentDataID, - "input": input, + "updateEventId": updateEventID, + "input": input, } - var res UpdateDocumentData - if err := c.Client.Post(ctx, "UpdateDocumentData", UpdateDocumentDataDocument, &res, vars, interceptors...); err != nil { + var res UpdateEvent + if err := c.Client.Post(ctx, "UpdateEvent", UpdateEventDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33397,20 +50412,21 @@ func (c *Client) UpdateDocumentData(ctx context.Context, updateDocumentDataID st return &res, nil } -const GetAllDocumentDataHistoriesDocument = `query GetAllDocumentDataHistories { - documentDataHistories { +const GetAllEventHistoriesDocument = `query GetAllEventHistories { + eventHistories { edges { node { + correlationID createdAt createdBy - data + eventID + eventType historyTime id + metadata operation - ownerID ref tags - templateID updatedAt updatedBy } @@ -33419,11 +50435,11 @@ const GetAllDocumentDataHistoriesDocument = `query GetAllDocumentDataHistories { } ` -func (c *Client) GetAllDocumentDataHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllDocumentDataHistories, error) { +func (c *Client) GetAllEventHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEventHistories, error) { vars := map[string]any{} - var res GetAllDocumentDataHistories - if err := c.Client.Post(ctx, "GetAllDocumentDataHistories", GetAllDocumentDataHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllEventHistories + if err := c.Client.Post(ctx, "GetAllEventHistories", GetAllEventHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33434,20 +50450,21 @@ func (c *Client) GetAllDocumentDataHistories(ctx context.Context, interceptors . return &res, nil } -const GetDocumentDataHistoriesDocument = `query GetDocumentDataHistories ($where: DocumentDataHistoryWhereInput) { - documentDataHistories(where: $where) { +const GetEventHistoriesDocument = `query GetEventHistories ($where: EventHistoryWhereInput) { + eventHistories(where: $where) { edges { node { + correlationID createdAt createdBy - data + eventID + eventType historyTime id + metadata operation - ownerID ref tags - templateID updatedAt updatedBy } @@ -33456,13 +50473,13 @@ const GetDocumentDataHistoriesDocument = `query GetDocumentDataHistories ($where } ` -func (c *Client) GetDocumentDataHistories(ctx context.Context, where *DocumentDataHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetDocumentDataHistories, error) { +func (c *Client) GetEventHistories(ctx context.Context, where *EventHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEventHistories, error) { vars := map[string]any{ "where": where, } - var res GetDocumentDataHistories - if err := c.Client.Post(ctx, "GetDocumentDataHistories", GetDocumentDataHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetEventHistories + if err := c.Client.Post(ctx, "GetEventHistories", GetEventHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33473,35 +50490,27 @@ func (c *Client) GetDocumentDataHistories(ctx context.Context, where *DocumentDa return &res, nil } -const CreateBulkCSVEntitlementDocument = `mutation CreateBulkCSVEntitlement ($input: Upload!) { - createBulkCSVEntitlement(input: $input) { - entitlements { +const CreateBulkCSVFeatureDocument = `mutation CreateBulkCSVFeature ($input: Upload!) { + createBulkCSVFeature(input: $input) { + features { + description + enabled id - plan { - id - name - } - expires - expiresAt - cancelled - externalCustomerID - externalSubscriptionID - organization { - id - name - } + name + displayName + tags } } } ` -func (c *Client) CreateBulkCSVEntitlement(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVEntitlement, error) { +func (c *Client) CreateBulkCSVFeature(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVFeature, error) { vars := map[string]any{ "input": input, } - var res CreateBulkCSVEntitlement - if err := c.Client.Post(ctx, "CreateBulkCSVEntitlement", CreateBulkCSVEntitlementDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVFeature + if err := c.Client.Post(ctx, "CreateBulkCSVFeature", CreateBulkCSVFeatureDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33512,35 +50521,27 @@ func (c *Client) CreateBulkCSVEntitlement(ctx context.Context, input graphql.Upl return &res, nil } -const CreateBulkEntitlementDocument = `mutation CreateBulkEntitlement ($input: [CreateEntitlementInput!]) { - createBulkEntitlement(input: $input) { - entitlements { +const CreateBulkFeatureDocument = `mutation CreateBulkFeature ($input: [CreateFeatureInput!]) { + createBulkFeature(input: $input) { + features { + description + enabled id - plan { - id - name - } - organization { - id - name - } - expires - expiresAt - cancelled - externalCustomerID - externalSubscriptionID + name + displayName + tags } } } ` -func (c *Client) CreateBulkEntitlement(ctx context.Context, input []*CreateEntitlementInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkEntitlement, error) { +func (c *Client) CreateBulkFeature(ctx context.Context, input []*CreateFeatureInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkFeature, error) { vars := map[string]any{ "input": input, } - var res CreateBulkEntitlement - if err := c.Client.Post(ctx, "CreateBulkEntitlement", CreateBulkEntitlementDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkFeature + if err := c.Client.Post(ctx, "CreateBulkFeature", CreateBulkFeatureDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33551,35 +50552,27 @@ func (c *Client) CreateBulkEntitlement(ctx context.Context, input []*CreateEntit return &res, nil } -const CreateEntitlementDocument = `mutation CreateEntitlement ($input: CreateEntitlementInput!) { - createEntitlement(input: $input) { - entitlement { +const CreateFeatureDocument = `mutation CreateFeature ($input: CreateFeatureInput!) { + createFeature(input: $input) { + feature { + description + enabled id - plan { - id - name - } - organization { - id - name - } - expires - expiresAt - cancelled - externalCustomerID - externalSubscriptionID + name + displayName + tags } } } ` -func (c *Client) CreateEntitlement(ctx context.Context, input CreateEntitlementInput, interceptors ...clientv2.RequestInterceptor) (*CreateEntitlement, error) { +func (c *Client) CreateFeature(ctx context.Context, input CreateFeatureInput, interceptors ...clientv2.RequestInterceptor) (*CreateFeature, error) { vars := map[string]any{ "input": input, } - var res CreateEntitlement - if err := c.Client.Post(ctx, "CreateEntitlement", CreateEntitlementDocument, &res, vars, interceptors...); err != nil { + var res CreateFeature + if err := c.Client.Post(ctx, "CreateFeature", CreateFeatureDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33590,20 +50583,20 @@ func (c *Client) CreateEntitlement(ctx context.Context, input CreateEntitlementI return &res, nil } -const DeleteEntitlementDocument = `mutation DeleteEntitlement ($deleteEntitlementId: ID!) { - deleteEntitlement(id: $deleteEntitlementId) { +const DeleteFeatureDocument = `mutation DeleteFeature ($deleteFeatureId: ID!) { + deleteFeature(id: $deleteFeatureId) { deletedID } } ` -func (c *Client) DeleteEntitlement(ctx context.Context, deleteEntitlementID string, interceptors ...clientv2.RequestInterceptor) (*DeleteEntitlement, error) { +func (c *Client) DeleteFeature(ctx context.Context, deleteFeatureID string, interceptors ...clientv2.RequestInterceptor) (*DeleteFeature, error) { vars := map[string]any{ - "deleteEntitlementId": deleteEntitlementID, + "deleteFeatureId": deleteFeatureID, } - var res DeleteEntitlement - if err := c.Client.Post(ctx, "DeleteEntitlement", DeleteEntitlementDocument, &res, vars, interceptors...); err != nil { + var res DeleteFeature + if err := c.Client.Post(ctx, "DeleteFeature", DeleteFeatureDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33614,42 +50607,27 @@ func (c *Client) DeleteEntitlement(ctx context.Context, deleteEntitlementID stri return &res, nil } -const GetAllEntitlementsDocument = `query GetAllEntitlements { - entitlements { +const GetAllFeaturesDocument = `query GetAllFeatures { + features { edges { node { + description + enabled id - plan { - id - name - features { - metadata - feature { - id - name - } - } - } - organization { - id - name - } - expires - expiresAt - cancelled - externalCustomerID - externalSubscriptionID + name + displayName + tags } } } } ` -func (c *Client) GetAllEntitlements(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntitlements, error) { +func (c *Client) GetAllFeatures(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllFeatures, error) { vars := map[string]any{} - var res GetAllEntitlements - if err := c.Client.Post(ctx, "GetAllEntitlements", GetAllEntitlementsDocument, &res, vars, interceptors...); err != nil { + var res GetAllFeatures + if err := c.Client.Post(ctx, "GetAllFeatures", GetAllFeaturesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33660,40 +50638,25 @@ func (c *Client) GetAllEntitlements(ctx context.Context, interceptors ...clientv return &res, nil } -const GetEntitlementByIDDocument = `query GetEntitlementByID ($entitlementId: ID!) { - entitlement(id: $entitlementId) { +const GetFeatureByIDDocument = `query GetFeatureByID ($featureId: ID!) { + feature(id: $featureId) { + description + enabled id - plan { - id - name - features { - metadata - feature { - id - name - } - } - } - organization { - id - name - } - expires - expiresAt - cancelled - externalCustomerID - externalSubscriptionID + name + displayName + tags } } ` -func (c *Client) GetEntitlementByID(ctx context.Context, entitlementID string, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementByID, error) { +func (c *Client) GetFeatureByID(ctx context.Context, featureID string, interceptors ...clientv2.RequestInterceptor) (*GetFeatureByID, error) { vars := map[string]any{ - "entitlementId": entitlementID, + "featureId": featureID, } - var res GetEntitlementByID - if err := c.Client.Post(ctx, "GetEntitlementByID", GetEntitlementByIDDocument, &res, vars, interceptors...); err != nil { + var res GetFeatureByID + if err := c.Client.Post(ctx, "GetFeatureByID", GetFeatureByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33704,44 +50667,29 @@ func (c *Client) GetEntitlementByID(ctx context.Context, entitlementID string, i return &res, nil } -const GetEntitlementsDocument = `query GetEntitlements ($where: EntitlementWhereInput) { - entitlements(where: $where) { +const GetFeaturesDocument = `query GetFeatures ($where: FeatureWhereInput) { + features(where: $where) { edges { node { + description + enabled id - plan { - id - name - features { - metadata - feature { - id - name - } - } - } - organization { - id - name - } - expires - expiresAt - cancelled - externalCustomerID - externalSubscriptionID + name + displayName + tags } } } } ` -func (c *Client) GetEntitlements(ctx context.Context, where *EntitlementWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntitlements, error) { +func (c *Client) GetFeatures(ctx context.Context, where *FeatureWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetFeatures, error) { vars := map[string]any{ "where": where, } - var res GetEntitlements - if err := c.Client.Post(ctx, "GetEntitlements", GetEntitlementsDocument, &res, vars, interceptors...); err != nil { + var res GetFeatures + if err := c.Client.Post(ctx, "GetFeatures", GetFeaturesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33752,32 +50700,28 @@ func (c *Client) GetEntitlements(ctx context.Context, where *EntitlementWhereInp return &res, nil } -const UpdateEntitlementDocument = `mutation UpdateEntitlement ($updateEntitlementId: ID!, $input: UpdateEntitlementInput!) { - updateEntitlement(id: $updateEntitlementId, input: $input) { - entitlement { +const UpdateFeatureDocument = `mutation UpdateFeature ($updateFeatureId: ID!, $input: UpdateFeatureInput!) { + updateFeature(id: $updateFeatureId, input: $input) { + feature { + description + enabled id - plan { - id - name - } - expires - expiresAt - cancelled - externalCustomerID - externalSubscriptionID + name + displayName + tags } } } ` -func (c *Client) UpdateEntitlement(ctx context.Context, updateEntitlementID string, input UpdateEntitlementInput, interceptors ...clientv2.RequestInterceptor) (*UpdateEntitlement, error) { +func (c *Client) UpdateFeature(ctx context.Context, updateFeatureID string, input UpdateFeatureInput, interceptors ...clientv2.RequestInterceptor) (*UpdateFeature, error) { vars := map[string]any{ - "updateEntitlementId": updateEntitlementID, - "input": input, + "updateFeatureId": updateFeatureID, + "input": input, } - var res UpdateEntitlement - if err := c.Client.Post(ctx, "UpdateEntitlement", UpdateEntitlementDocument, &res, vars, interceptors...); err != nil { + var res UpdateFeature + if err := c.Client.Post(ctx, "UpdateFeature", UpdateFeatureDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33788,23 +50732,21 @@ func (c *Client) UpdateEntitlement(ctx context.Context, updateEntitlementID stri return &res, nil } -const GetAllEntitlementHistoriesDocument = `query GetAllEntitlementHistories { - entitlementHistories { +const GetAllFeatureHistoriesDocument = `query GetAllFeatureHistories { + featureHistories { edges { node { - cancelled createdAt createdBy - expires - expiresAt - externalCustomerID - externalSubscriptionID + description + displayName + enabled historyTime id + metadata + name operation - organizationID ownerID - planID ref tags updatedAt @@ -33815,11 +50757,11 @@ const GetAllEntitlementHistoriesDocument = `query GetAllEntitlementHistories { } ` -func (c *Client) GetAllEntitlementHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntitlementHistories, error) { +func (c *Client) GetAllFeatureHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllFeatureHistories, error) { vars := map[string]any{} - var res GetAllEntitlementHistories - if err := c.Client.Post(ctx, "GetAllEntitlementHistories", GetAllEntitlementHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllFeatureHistories + if err := c.Client.Post(ctx, "GetAllFeatureHistories", GetAllFeatureHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33830,23 +50772,21 @@ func (c *Client) GetAllEntitlementHistories(ctx context.Context, interceptors .. return &res, nil } -const GetEntitlementHistoriesDocument = `query GetEntitlementHistories ($where: EntitlementHistoryWhereInput) { - entitlementHistories(where: $where) { +const GetFeatureHistoriesDocument = `query GetFeatureHistories ($where: FeatureHistoryWhereInput) { + featureHistories(where: $where) { edges { node { - cancelled createdAt createdBy - expires - expiresAt - externalCustomerID - externalSubscriptionID + description + displayName + enabled historyTime id + metadata + name operation - organizationID ownerID - planID ref tags updatedAt @@ -33857,45 +50797,13 @@ const GetEntitlementHistoriesDocument = `query GetEntitlementHistories ($where: } ` -func (c *Client) GetEntitlementHistories(ctx context.Context, where *EntitlementHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementHistories, error) { +func (c *Client) GetFeatureHistories(ctx context.Context, where *FeatureHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetFeatureHistories, error) { vars := map[string]any{ "where": where, } - var res GetEntitlementHistories - if err := c.Client.Post(ctx, "GetEntitlementHistories", GetEntitlementHistoriesDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const CreateBulkCSVEntitlementPlanDocument = `mutation CreateBulkCSVEntitlementPlan ($input: Upload!) { - createBulkCSVEntitlementPlan(input: $input) { - entitlementPlans { - id - name - displayName - metadata - tags - version - description - } - } -} -` - -func (c *Client) CreateBulkCSVEntitlementPlan(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVEntitlementPlan, error) { - vars := map[string]any{ - "input": input, - } - - var res CreateBulkCSVEntitlementPlan - if err := c.Client.Post(ctx, "CreateBulkCSVEntitlementPlan", CreateBulkCSVEntitlementPlanDocument, &res, vars, interceptors...); err != nil { + var res GetFeatureHistories + if err := c.Client.Post(ctx, "GetFeatureHistories", GetFeatureHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33906,28 +50814,20 @@ func (c *Client) CreateBulkCSVEntitlementPlan(ctx context.Context, input graphql return &res, nil } -const CreateBulkEntitlementPlanDocument = `mutation CreateBulkEntitlementPlan ($input: [CreateEntitlementPlanInput!]) { - createBulkEntitlementPlan(input: $input) { - entitlementPlans { - id - name - displayName - metadata - tags - version - description - } +const DeleteFileDocument = `mutation DeleteFile ($deleteFileId: ID!) { + deleteFile(id: $deleteFileId) { + deletedID } } ` -func (c *Client) CreateBulkEntitlementPlan(ctx context.Context, input []*CreateEntitlementPlanInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkEntitlementPlan, error) { +func (c *Client) DeleteFile(ctx context.Context, deleteFileID string, interceptors ...clientv2.RequestInterceptor) (*DeleteFile, error) { vars := map[string]any{ - "input": input, + "deleteFileId": deleteFileID, } - var res CreateBulkEntitlementPlan - if err := c.Client.Post(ctx, "CreateBulkEntitlementPlan", CreateBulkEntitlementPlanDocument, &res, vars, interceptors...); err != nil { + var res DeleteFile + if err := c.Client.Post(ctx, "DeleteFile", DeleteFileDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33938,28 +50838,40 @@ func (c *Client) CreateBulkEntitlementPlan(ctx context.Context, input []*CreateE return &res, nil } -const CreateEntitlementPlanDocument = `mutation CreateEntitlementPlan ($input: CreateEntitlementPlanInput!) { - createEntitlementPlan(input: $input) { - entitlementPlan { - id - name - displayName - metadata - tags - version - description +const GetAllFilesDocument = `query GetAllFiles { + files { + edges { + node { + categoryType + createdAt + createdBy + detectedContentType + detectedMimeType + id + md5Hash + persistedFileSize + providedFileExtension + providedFileName + providedFileSize + storagePath + storageScheme + storageVolume + storeKey + tags + updatedAt + updatedBy + uri + } } } } ` -func (c *Client) CreateEntitlementPlan(ctx context.Context, input CreateEntitlementPlanInput, interceptors ...clientv2.RequestInterceptor) (*CreateEntitlementPlan, error) { - vars := map[string]any{ - "input": input, - } +func (c *Client) GetAllFiles(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllFiles, error) { + vars := map[string]any{} - var res CreateEntitlementPlan - if err := c.Client.Post(ctx, "CreateEntitlementPlan", CreateEntitlementPlanDocument, &res, vars, interceptors...); err != nil { + var res GetAllFiles + if err := c.Client.Post(ctx, "GetAllFiles", GetAllFilesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33970,20 +50882,38 @@ func (c *Client) CreateEntitlementPlan(ctx context.Context, input CreateEntitlem return &res, nil } -const DeleteEntitlementPlanDocument = `mutation DeleteEntitlementPlan ($deleteEntitlementPlanId: ID!) { - deleteEntitlementPlan(id: $deleteEntitlementPlanId) { - deletedID +const GetFileByIDDocument = `query GetFileByID ($fileId: ID!) { + file(id: $fileId) { + categoryType + createdAt + createdBy + detectedContentType + detectedMimeType + id + md5Hash + persistedFileSize + providedFileExtension + providedFileName + providedFileSize + storagePath + storageScheme + storageVolume + storeKey + tags + updatedAt + updatedBy + uri } } ` -func (c *Client) DeleteEntitlementPlan(ctx context.Context, deleteEntitlementPlanID string, interceptors ...clientv2.RequestInterceptor) (*DeleteEntitlementPlan, error) { +func (c *Client) GetFileByID(ctx context.Context, fileID string, interceptors ...clientv2.RequestInterceptor) (*GetFileByID, error) { vars := map[string]any{ - "deleteEntitlementPlanId": deleteEntitlementPlanID, + "fileId": fileID, } - var res DeleteEntitlementPlan - if err := c.Client.Post(ctx, "DeleteEntitlementPlan", DeleteEntitlementPlanDocument, &res, vars, interceptors...); err != nil { + var res GetFileByID + if err := c.Client.Post(ctx, "GetFileByID", GetFileByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -33994,37 +50924,42 @@ func (c *Client) DeleteEntitlementPlan(ctx context.Context, deleteEntitlementPla return &res, nil } -const GetAllEntitlementPlansDocument = `query GetAllEntitlementPlans { - entitlementPlans { +const GetFilesDocument = `query GetFiles ($where: FileWhereInput) { + files(where: $where) { edges { node { + categoryType + createdAt + createdBy + detectedContentType + detectedMimeType id - name - displayName - metadata + md5Hash + persistedFileSize + providedFileExtension + providedFileName + providedFileSize + storagePath + storageScheme + storageVolume + storeKey tags - version - description - features { - feature { - id - metadata - name - } - metadata - tags - } + updatedAt + updatedBy + uri } } } } ` -func (c *Client) GetAllEntitlementPlans(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntitlementPlans, error) { - vars := map[string]any{} +func (c *Client) GetFiles(ctx context.Context, where *FileWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetFiles, error) { + vars := map[string]any{ + "where": where, + } - var res GetAllEntitlementPlans - if err := c.Client.Post(ctx, "GetAllEntitlementPlans", GetAllEntitlementPlansDocument, &res, vars, interceptors...); err != nil { + var res GetFiles + if err := c.Client.Post(ctx, "GetFiles", GetFilesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34035,35 +50970,43 @@ func (c *Client) GetAllEntitlementPlans(ctx context.Context, interceptors ...cli return &res, nil } -const GetEntitlementPlanByIDDocument = `query GetEntitlementPlanByID ($entitlementPlanId: ID!) { - entitlementPlan(id: $entitlementPlanId) { - id - name - displayName - metadata - tags - version - description - features { - feature { +const GetAllFileHistoriesDocument = `query GetAllFileHistories { + fileHistories { + edges { + node { + categoryType + createdAt + createdBy + detectedContentType + detectedMimeType + historyTime id - metadata - name + md5Hash + operation + persistedFileSize + providedFileExtension + providedFileName + providedFileSize + ref + storagePath + storageScheme + storageVolume + storeKey + tags + updatedAt + updatedBy + uri } - metadata - tags } } } ` -func (c *Client) GetEntitlementPlanByID(ctx context.Context, entitlementPlanID string, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementPlanByID, error) { - vars := map[string]any{ - "entitlementPlanId": entitlementPlanID, - } +func (c *Client) GetAllFileHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllFileHistories, error) { + vars := map[string]any{} - var res GetEntitlementPlanByID - if err := c.Client.Post(ctx, "GetEntitlementPlanByID", GetEntitlementPlanByIDDocument, &res, vars, interceptors...); err != nil { + var res GetAllFileHistories + if err := c.Client.Post(ctx, "GetAllFileHistories", GetAllFileHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34074,39 +51017,45 @@ func (c *Client) GetEntitlementPlanByID(ctx context.Context, entitlementPlanID s return &res, nil } -const GetEntitlementPlansDocument = `query GetEntitlementPlans ($where: EntitlementPlanWhereInput) { - entitlementPlans(where: $where) { +const GetFileHistoriesDocument = `query GetFileHistories ($where: FileHistoryWhereInput) { + fileHistories(where: $where) { edges { node { + categoryType + createdAt + createdBy + detectedContentType + detectedMimeType + historyTime id - name - displayName - metadata + md5Hash + operation + persistedFileSize + providedFileExtension + providedFileName + providedFileSize + ref + storagePath + storageScheme + storageVolume + storeKey tags - version - description - features { - feature { - id - metadata - name - } - metadata - tags - } + updatedAt + updatedBy + uri } } } } ` -func (c *Client) GetEntitlementPlans(ctx context.Context, where *EntitlementPlanWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementPlans, error) { +func (c *Client) GetFileHistories(ctx context.Context, where *FileHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetFileHistories, error) { vars := map[string]any{ "where": where, } - var res GetEntitlementPlans - if err := c.Client.Post(ctx, "GetEntitlementPlans", GetEntitlementPlansDocument, &res, vars, interceptors...); err != nil { + var res GetFileHistories + if err := c.Client.Post(ctx, "GetFileHistories", GetFileHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34117,64 +51066,48 @@ func (c *Client) GetEntitlementPlans(ctx context.Context, where *EntitlementPlan return &res, nil } -const UpdateEntitlementPlanDocument = `mutation UpdateEntitlementPlan ($updateEntitlementPlanId: ID!, $input: UpdateEntitlementPlanInput!) { - updateEntitlementPlan(id: $updateEntitlementPlanId, input: $input) { - entitlementPlan { +const CreateBulkCSVGroupDocument = `mutation CreateBulkCSVGroup ($input: Upload!) { + createBulkCSVGroup(input: $input) { + groups { + description + displayName id + logoURL name - displayName - metadata tags - version - description - } - } -} -` - -func (c *Client) UpdateEntitlementPlan(ctx context.Context, updateEntitlementPlanID string, input UpdateEntitlementPlanInput, interceptors ...clientv2.RequestInterceptor) (*UpdateEntitlementPlan, error) { - vars := map[string]any{ - "updateEntitlementPlanId": updateEntitlementPlanID, - "input": input, - } - - var res UpdateEntitlementPlan - if err := c.Client.Post(ctx, "UpdateEntitlementPlan", UpdateEntitlementPlanDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const CreateBulkCSVEntitlementPlanFeatureDocument = `mutation CreateBulkCSVEntitlementPlanFeature ($input: Upload!) { - createBulkCSVEntitlementPlanFeature(input: $input) { - entitlementPlanFeatures { - id - metadata - plan { + owner { id - name + displayName } - feature { + setting { id - name + joinPolicy + syncToGithub + syncToSlack + tags + visibility + } + members { + id + role + user { + id + firstName + lastName + } } } } } ` -func (c *Client) CreateBulkCSVEntitlementPlanFeature(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVEntitlementPlanFeature, error) { +func (c *Client) CreateBulkCSVGroup(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVGroup, error) { vars := map[string]any{ "input": input, } - var res CreateBulkCSVEntitlementPlanFeature - if err := c.Client.Post(ctx, "CreateBulkCSVEntitlementPlanFeature", CreateBulkCSVEntitlementPlanFeatureDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVGroup + if err := c.Client.Post(ctx, "CreateBulkCSVGroup", CreateBulkCSVGroupDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34185,31 +51118,48 @@ func (c *Client) CreateBulkCSVEntitlementPlanFeature(ctx context.Context, input return &res, nil } -const CreateBulkEntitlementPlanFeatureDocument = `mutation CreateBulkEntitlementPlanFeature ($input: [CreateEntitlementPlanFeatureInput!]) { - createBulkEntitlementPlanFeature(input: $input) { - entitlementPlanFeatures { +const CreateBulkGroupDocument = `mutation CreateBulkGroup ($input: [CreateGroupInput!]) { + createBulkGroup(input: $input) { + groups { + description + displayName id - metadata - plan { + logoURL + name + tags + owner { id - name + displayName } - feature { + setting { id - name + joinPolicy + syncToGithub + syncToSlack + tags + visibility + } + members { + id + role + user { + id + firstName + lastName + } } } } } ` -func (c *Client) CreateBulkEntitlementPlanFeature(ctx context.Context, input []*CreateEntitlementPlanFeatureInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkEntitlementPlanFeature, error) { +func (c *Client) CreateBulkGroup(ctx context.Context, input []*CreateGroupInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkGroup, error) { vars := map[string]any{ "input": input, } - var res CreateBulkEntitlementPlanFeature - if err := c.Client.Post(ctx, "CreateBulkEntitlementPlanFeature", CreateBulkEntitlementPlanFeatureDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkGroup + if err := c.Client.Post(ctx, "CreateBulkGroup", CreateBulkGroupDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34220,31 +51170,48 @@ func (c *Client) CreateBulkEntitlementPlanFeature(ctx context.Context, input []* return &res, nil } -const CreateEntitlementPlanFeatureDocument = `mutation CreateEntitlementPlanFeature ($input: CreateEntitlementPlanFeatureInput!) { - createEntitlementPlanFeature(input: $input) { - entitlementPlanFeature { +const CreateGroupDocument = `mutation CreateGroup ($input: CreateGroupInput!) { + createGroup(input: $input) { + group { + description + displayName id - metadata - plan { + logoURL + name + tags + owner { id - name + displayName } - feature { + setting { id - name + joinPolicy + syncToGithub + syncToSlack + tags + visibility + } + members { + id + role + user { + id + firstName + lastName + } } } } } ` -func (c *Client) CreateEntitlementPlanFeature(ctx context.Context, input CreateEntitlementPlanFeatureInput, interceptors ...clientv2.RequestInterceptor) (*CreateEntitlementPlanFeature, error) { +func (c *Client) CreateGroup(ctx context.Context, input CreateGroupInput, interceptors ...clientv2.RequestInterceptor) (*CreateGroup, error) { vars := map[string]any{ "input": input, } - var res CreateEntitlementPlanFeature - if err := c.Client.Post(ctx, "CreateEntitlementPlanFeature", CreateEntitlementPlanFeatureDocument, &res, vars, interceptors...); err != nil { + var res CreateGroup + if err := c.Client.Post(ctx, "CreateGroup", CreateGroupDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34255,20 +51222,20 @@ func (c *Client) CreateEntitlementPlanFeature(ctx context.Context, input CreateE return &res, nil } -const DeleteEntitlementPlanFeatureDocument = `mutation DeleteEntitlementPlanFeature ($deleteEntitlementPlanFeatureId: ID!) { - deleteEntitlementPlanFeature(id: $deleteEntitlementPlanFeatureId) { +const DeleteGroupDocument = `mutation DeleteGroup ($deleteGroupId: ID!) { + deleteGroup(id: $deleteGroupId) { deletedID } } ` -func (c *Client) DeleteEntitlementPlanFeature(ctx context.Context, deleteEntitlementPlanFeatureID string, interceptors ...clientv2.RequestInterceptor) (*DeleteEntitlementPlanFeature, error) { +func (c *Client) DeleteGroup(ctx context.Context, deleteGroupID string, interceptors ...clientv2.RequestInterceptor) (*DeleteGroup, error) { vars := map[string]any{ - "deleteEntitlementPlanFeatureId": deleteEntitlementPlanFeatureID, + "deleteGroupId": deleteGroupID, } - var res DeleteEntitlementPlanFeature - if err := c.Client.Post(ctx, "DeleteEntitlementPlanFeature", DeleteEntitlementPlanFeatureDocument, &res, vars, interceptors...); err != nil { + var res DeleteGroup + if err := c.Client.Post(ctx, "DeleteGroup", DeleteGroupDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34279,31 +51246,56 @@ func (c *Client) DeleteEntitlementPlanFeature(ctx context.Context, deleteEntitle return &res, nil } -const GetAllEntitlementPlanFeaturesDocument = `query GetAllEntitlementPlanFeatures { - entitlementPlanFeatures { +const GetAllGroupsDocument = `query GetAllGroups { + groups { edges { node { + description + displayName id - feature { + logoURL + name + tags + owner { id - name + displayName } - metadata - plan { + setting { + createdAt + createdBy id - name + joinPolicy + syncToGithub + syncToSlack + tags + updatedAt + updatedBy + visibility + } + members { + id + role + user { + id + firstName + lastName + } } + createdAt + createdBy + updatedAt + updatedBy } } } } ` -func (c *Client) GetAllEntitlementPlanFeatures(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntitlementPlanFeatures, error) { +func (c *Client) GetAllGroups(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroups, error) { vars := map[string]any{} - var res GetAllEntitlementPlanFeatures - if err := c.Client.Post(ctx, "GetAllEntitlementPlanFeatures", GetAllEntitlementPlanFeaturesDocument, &res, vars, interceptors...); err != nil { + var res GetAllGroups + if err := c.Client.Post(ctx, "GetAllGroups", GetAllGroupsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34314,29 +51306,54 @@ func (c *Client) GetAllEntitlementPlanFeatures(ctx context.Context, interceptors return &res, nil } -const GetEntitlementPlanFeatureByIDDocument = `query GetEntitlementPlanFeatureByID ($entitlementPlanFeatureId: ID!) { - entitlementPlanFeature(id: $entitlementPlanFeatureId) { +const GetGroupByIDDocument = `query GetGroupByID ($groupId: ID!) { + group(id: $groupId) { + description + displayName id - metadata - plan { + logoURL + name + tags + owner { id - name + displayName } - feature { + setting { + createdAt + createdBy id - name + joinPolicy + syncToGithub + syncToSlack + tags + updatedAt + updatedBy + visibility + } + members { + id + role + user { + id + firstName + lastName + } } + createdAt + createdBy + updatedAt + updatedBy } } ` -func (c *Client) GetEntitlementPlanFeatureByID(ctx context.Context, entitlementPlanFeatureID string, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementPlanFeatureByID, error) { +func (c *Client) GetGroupByID(ctx context.Context, groupID string, interceptors ...clientv2.RequestInterceptor) (*GetGroupByID, error) { vars := map[string]any{ - "entitlementPlanFeatureId": entitlementPlanFeatureID, + "groupId": groupID, } - var res GetEntitlementPlanFeatureByID - if err := c.Client.Post(ctx, "GetEntitlementPlanFeatureByID", GetEntitlementPlanFeatureByIDDocument, &res, vars, interceptors...); err != nil { + var res GetGroupByID + if err := c.Client.Post(ctx, "GetGroupByID", GetGroupByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34347,33 +51364,58 @@ func (c *Client) GetEntitlementPlanFeatureByID(ctx context.Context, entitlementP return &res, nil } -const GetEntitlementPlanFeaturesDocument = `query GetEntitlementPlanFeatures ($where: EntitlementPlanFeatureWhereInput) { - entitlementPlanFeatures(where: $where) { +const GetGroupsDocument = `query GetGroups ($where: GroupWhereInput) { + groups(where: $where) { edges { node { + description + displayName id - metadata - plan { + logoURL + name + tags + owner { id - name + displayName } - feature { + setting { + createdAt + createdBy id - name + joinPolicy + syncToGithub + syncToSlack + tags + updatedAt + updatedBy + visibility + } + members { + id + role + user { + id + firstName + lastName + } } + createdAt + createdBy + updatedAt + updatedBy } } } } ` -func (c *Client) GetEntitlementPlanFeatures(ctx context.Context, where *EntitlementPlanFeatureWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementPlanFeatures, error) { +func (c *Client) GetGroups(ctx context.Context, where *GroupWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetGroups, error) { vars := map[string]any{ "where": where, } - var res GetEntitlementPlanFeatures - if err := c.Client.Post(ctx, "GetEntitlementPlanFeatures", GetEntitlementPlanFeaturesDocument, &res, vars, interceptors...); err != nil { + var res GetGroups + if err := c.Client.Post(ctx, "GetGroups", GetGroupsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34384,32 +51426,53 @@ func (c *Client) GetEntitlementPlanFeatures(ctx context.Context, where *Entitlem return &res, nil } -const UpdateEntitlementPlanFeatureDocument = `mutation UpdateEntitlementPlanFeature ($updateEntitlementPlanFeatureId: ID!, $input: UpdateEntitlementPlanFeatureInput!) { - updateEntitlementPlanFeature(id: $updateEntitlementPlanFeatureId, input: $input) { - entitlementPlanFeature { +const UpdateGroupDocument = `mutation UpdateGroup ($updateGroupId: ID!, $input: UpdateGroupInput!) { + updateGroup(id: $updateGroupId, input: $input) { + group { + description + displayName id - metadata - plan { + logoURL + name + tags + owner { id - name + displayName } - feature { + setting { + createdAt + createdBy id - name + joinPolicy + syncToGithub + syncToSlack + tags + updatedAt + updatedBy + visibility + } + members { + id + role + user { + id + firstName + lastName + } } } } } ` -func (c *Client) UpdateEntitlementPlanFeature(ctx context.Context, updateEntitlementPlanFeatureID string, input UpdateEntitlementPlanFeatureInput, interceptors ...clientv2.RequestInterceptor) (*UpdateEntitlementPlanFeature, error) { +func (c *Client) UpdateGroup(ctx context.Context, updateGroupID string, input UpdateGroupInput, interceptors ...clientv2.RequestInterceptor) (*UpdateGroup, error) { vars := map[string]any{ - "updateEntitlementPlanFeatureId": updateEntitlementPlanFeatureID, - "input": input, + "updateGroupId": updateGroupID, + "input": input, } - var res UpdateEntitlementPlanFeature - if err := c.Client.Post(ctx, "UpdateEntitlementPlanFeature", UpdateEntitlementPlanFeatureDocument, &res, vars, interceptors...); err != nil { + var res UpdateGroup + if err := c.Client.Post(ctx, "UpdateGroup", UpdateGroupDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34420,19 +51483,21 @@ func (c *Client) UpdateEntitlementPlanFeature(ctx context.Context, updateEntitle return &res, nil } -const GetAllEntitlementPlanFeatureHistoriesDocument = `query GetAllEntitlementPlanFeatureHistories { - entitlementPlanFeatureHistories { +const GetAllGroupHistoriesDocument = `query GetAllGroupHistories { + groupHistories { edges { node { createdAt createdBy - featureID + description + displayName + gravatarLogoURL historyTime id - metadata + logoURL + name operation ownerID - planID ref tags updatedAt @@ -34443,11 +51508,11 @@ const GetAllEntitlementPlanFeatureHistoriesDocument = `query GetAllEntitlementPl } ` -func (c *Client) GetAllEntitlementPlanFeatureHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntitlementPlanFeatureHistories, error) { +func (c *Client) GetAllGroupHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroupHistories, error) { vars := map[string]any{} - var res GetAllEntitlementPlanFeatureHistories - if err := c.Client.Post(ctx, "GetAllEntitlementPlanFeatureHistories", GetAllEntitlementPlanFeatureHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllGroupHistories + if err := c.Client.Post(ctx, "GetAllGroupHistories", GetAllGroupHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34458,19 +51523,21 @@ func (c *Client) GetAllEntitlementPlanFeatureHistories(ctx context.Context, inte return &res, nil } -const GetEntitlementPlanFeatureHistoriesDocument = `query GetEntitlementPlanFeatureHistories ($where: EntitlementPlanFeatureHistoryWhereInput) { - entitlementPlanFeatureHistories(where: $where) { +const GetGroupHistoriesDocument = `query GetGroupHistories ($where: GroupHistoryWhereInput) { + groupHistories(where: $where) { edges { node { createdAt createdBy - featureID + description + displayName + gravatarLogoURL historyTime id - metadata + logoURL + name operation ownerID - planID ref tags updatedAt @@ -34481,13 +51548,93 @@ const GetEntitlementPlanFeatureHistoriesDocument = `query GetEntitlementPlanFeat } ` -func (c *Client) GetEntitlementPlanFeatureHistories(ctx context.Context, where *EntitlementPlanFeatureHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementPlanFeatureHistories, error) { +func (c *Client) GetGroupHistories(ctx context.Context, where *GroupHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetGroupHistories, error) { vars := map[string]any{ "where": where, } - var res GetEntitlementPlanFeatureHistories - if err := c.Client.Post(ctx, "GetEntitlementPlanFeatureHistories", GetEntitlementPlanFeatureHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetGroupHistories + if err := c.Client.Post(ctx, "GetGroupHistories", GetGroupHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const AddUserToGroupWithRoleDocument = `mutation AddUserToGroupWithRole ($input: CreateGroupMembershipInput!) { + createGroupMembership(input: $input) { + groupMembership { + groupID + group { + id + name + } + id + role + userID + user { + displayName + email + firstName + id + lastName + } + } + } +} +` + +func (c *Client) AddUserToGroupWithRole(ctx context.Context, input CreateGroupMembershipInput, interceptors ...clientv2.RequestInterceptor) (*AddUserToGroupWithRole, error) { + vars := map[string]any{ + "input": input, + } + + var res AddUserToGroupWithRole + if err := c.Client.Post(ctx, "AddUserToGroupWithRole", AddUserToGroupWithRoleDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVGroupMembersDocument = `mutation CreateBulkCSVGroupMembers ($input: Upload!) { + createBulkCSVGroupMembership(input: $input) { + groupMemberships { + groupID + group { + id + name + } + id + role + userID + user { + displayName + email + firstName + id + lastName + } + } + } +} +` + +func (c *Client) CreateBulkCSVGroupMembers(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVGroupMembers, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkCSVGroupMembers + if err := c.Client.Post(ctx, "CreateBulkCSVGroupMembers", CreateBulkCSVGroupMembersDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34498,36 +51645,36 @@ func (c *Client) GetEntitlementPlanFeatureHistories(ctx context.Context, where * return &res, nil } -const GetAllEntitlementPlanHistoriesDocument = `query GetAllEntitlementPlanHistories { - entitlementPlanHistories { - edges { - node { - createdAt - createdBy - description - displayName - historyTime +const CreateBulkGroupMembersDocument = `mutation CreateBulkGroupMembers ($input: [CreateGroupMembershipInput!]) { + createBulkGroupMembership(input: $input) { + groupMemberships { + groupID + group { id - metadata name - operation - ownerID - ref - tags - updatedAt - updatedBy - version + } + id + role + userID + user { + displayName + email + firstName + id + lastName } } } } ` -func (c *Client) GetAllEntitlementPlanHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntitlementPlanHistories, error) { - vars := map[string]any{} +func (c *Client) CreateBulkGroupMembers(ctx context.Context, input []*CreateGroupMembershipInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkGroupMembers, error) { + vars := map[string]any{ + "input": input, + } - var res GetAllEntitlementPlanHistories - if err := c.Client.Post(ctx, "GetAllEntitlementPlanHistories", GetAllEntitlementPlanHistoriesDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkGroupMembers + if err := c.Client.Post(ctx, "CreateBulkGroupMembers", CreateBulkGroupMembersDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34538,38 +51685,38 @@ func (c *Client) GetAllEntitlementPlanHistories(ctx context.Context, interceptor return &res, nil } -const GetEntitlementPlanHistoriesDocument = `query GetEntitlementPlanHistories ($where: EntitlementPlanHistoryWhereInput) { - entitlementPlanHistories(where: $where) { +const GetGroupMembersByGroupIDDocument = `query GetGroupMembersByGroupID ($where: GroupMembershipWhereInput) { + groupMemberships(where: $where) { edges { node { - createdAt - createdBy - description - displayName - historyTime + groupID + group { + id + name + } id - metadata - name - operation - ownerID - ref - tags - updatedAt - updatedBy - version + role + userID + user { + displayName + email + firstName + id + lastName + } } } } } ` -func (c *Client) GetEntitlementPlanHistories(ctx context.Context, where *EntitlementPlanHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntitlementPlanHistories, error) { +func (c *Client) GetGroupMembersByGroupID(ctx context.Context, where *GroupMembershipWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetGroupMembersByGroupID, error) { vars := map[string]any{ "where": where, } - var res GetEntitlementPlanHistories - if err := c.Client.Post(ctx, "GetEntitlementPlanHistories", GetEntitlementPlanHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetGroupMembersByGroupID + if err := c.Client.Post(ctx, "GetGroupMembersByGroupID", GetGroupMembersByGroupIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34580,41 +51727,20 @@ func (c *Client) GetEntitlementPlanHistories(ctx context.Context, where *Entitle return &res, nil } -const CreateBulkCSVEntityDocument = `mutation CreateBulkCSVEntity ($input: Upload!) { - createBulkCSVEntity(input: $input) { - entities { - createdAt - createdBy - description - displayName - status - domains - notes { - text - updatedAt - updatedBy - } - entityType { - name - } - id - name - ownerID - tags - updatedAt - updatedBy - } +const RemoveUserFromGroupDocument = `mutation RemoveUserFromGroup ($deleteGroupMembershipId: ID!) { + deleteGroupMembership(id: $deleteGroupMembershipId) { + deletedID } } ` -func (c *Client) CreateBulkCSVEntity(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVEntity, error) { +func (c *Client) RemoveUserFromGroup(ctx context.Context, deleteGroupMembershipID string, interceptors ...clientv2.RequestInterceptor) (*RemoveUserFromGroup, error) { vars := map[string]any{ - "input": input, + "deleteGroupMembershipId": deleteGroupMembershipID, } - var res CreateBulkCSVEntity - if err := c.Client.Post(ctx, "CreateBulkCSVEntity", CreateBulkCSVEntityDocument, &res, vars, interceptors...); err != nil { + var res RemoveUserFromGroup + if err := c.Client.Post(ctx, "RemoveUserFromGroup", RemoveUserFromGroupDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34625,41 +51751,37 @@ func (c *Client) CreateBulkCSVEntity(ctx context.Context, input graphql.Upload, return &res, nil } -const CreateBulkEntityDocument = `mutation CreateBulkEntity ($input: [CreateEntityInput!]) { - createBulkEntity(input: $input) { - entities { - createdAt - createdBy - description - displayName - status - domains - notes { - text - updatedAt - updatedBy - } - entityType { +const UpdateUserRoleInGroupDocument = `mutation UpdateUserRoleInGroup ($updateGroupMemberId: ID!, $input: UpdateGroupMembershipInput!) { + updateGroupMembership(id: $updateGroupMemberId, input: $input) { + groupMembership { + groupID + group { + id name } id - name - ownerID - tags - updatedAt - updatedBy + role + userID + user { + displayName + email + firstName + id + lastName + } } } } ` -func (c *Client) CreateBulkEntity(ctx context.Context, input []*CreateEntityInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkEntity, error) { +func (c *Client) UpdateUserRoleInGroup(ctx context.Context, updateGroupMemberID string, input UpdateGroupMembershipInput, interceptors ...clientv2.RequestInterceptor) (*UpdateUserRoleInGroup, error) { vars := map[string]any{ - "input": input, + "updateGroupMemberId": updateGroupMemberID, + "input": input, } - var res CreateBulkEntity - if err := c.Client.Post(ctx, "CreateBulkEntity", CreateBulkEntityDocument, &res, vars, interceptors...); err != nil { + var res UpdateUserRoleInGroup + if err := c.Client.Post(ctx, "UpdateUserRoleInGroup", UpdateUserRoleInGroupDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34670,41 +51792,32 @@ func (c *Client) CreateBulkEntity(ctx context.Context, input []*CreateEntityInpu return &res, nil } -const CreateEntityDocument = `mutation CreateEntity ($input: CreateEntityInput!) { - createEntity(input: $input) { - entity { - createdAt - createdBy - description - displayName - status - domains - notes { - text +const GetAllGroupMembershipHistoriesDocument = `query GetAllGroupMembershipHistories { + groupMembershipHistories { + edges { + node { + createdAt + createdBy + groupID + historyTime + id + operation + ref + role updatedAt updatedBy + userID } - entityType { - name - } - id - name - ownerID - tags - updatedAt - updatedBy } } } ` -func (c *Client) CreateEntity(ctx context.Context, input CreateEntityInput, interceptors ...clientv2.RequestInterceptor) (*CreateEntity, error) { - vars := map[string]any{ - "input": input, - } +func (c *Client) GetAllGroupMembershipHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroupMembershipHistories, error) { + vars := map[string]any{} - var res CreateEntity - if err := c.Client.Post(ctx, "CreateEntity", CreateEntityDocument, &res, vars, interceptors...); err != nil { + var res GetAllGroupMembershipHistories + if err := c.Client.Post(ctx, "GetAllGroupMembershipHistories", GetAllGroupMembershipHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34715,20 +51828,34 @@ func (c *Client) CreateEntity(ctx context.Context, input CreateEntityInput, inte return &res, nil } -const DeleteEntityDocument = `mutation DeleteEntity ($deleteEntityId: ID!) { - deleteEntity(id: $deleteEntityId) { - deletedID +const GetGroupMembershipHistoriesDocument = `query GetGroupMembershipHistories ($where: GroupMembershipHistoryWhereInput) { + groupMembershipHistories(where: $where) { + edges { + node { + createdAt + createdBy + groupID + historyTime + id + operation + ref + role + updatedAt + updatedBy + userID + } + } } } ` -func (c *Client) DeleteEntity(ctx context.Context, deleteEntityID string, interceptors ...clientv2.RequestInterceptor) (*DeleteEntity, error) { +func (c *Client) GetGroupMembershipHistories(ctx context.Context, where *GroupMembershipHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetGroupMembershipHistories, error) { vars := map[string]any{ - "deleteEntityId": deleteEntityID, + "where": where, } - var res DeleteEntity - if err := c.Client.Post(ctx, "DeleteEntity", DeleteEntityDocument, &res, vars, interceptors...); err != nil { + var res GetGroupMembershipHistories + if err := c.Client.Post(ctx, "GetGroupMembershipHistories", GetGroupMembershipHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34739,28 +51866,22 @@ func (c *Client) DeleteEntity(ctx context.Context, deleteEntityID string, interc return &res, nil } -const GetAllEntitiesDocument = `query GetAllEntities { - entities { +const GetAllGroupSettingsDocument = `query GetAllGroupSettings { + groupSettings { edges { node { - createdAt - createdBy - description - displayName - status - domains - notes { - text - updatedAt - updatedBy - } - entityType { - name - } id - name - ownerID + joinPolicy + syncToGithub + syncToSlack tags + visibility + group { + id + name + } + createdAt + createdBy updatedAt updatedBy } @@ -34769,11 +51890,11 @@ const GetAllEntitiesDocument = `query GetAllEntities { } ` -func (c *Client) GetAllEntities(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntities, error) { +func (c *Client) GetAllGroupSettings(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroupSettings, error) { vars := map[string]any{} - var res GetAllEntities - if err := c.Client.Post(ctx, "GetAllEntities", GetAllEntitiesDocument, &res, vars, interceptors...); err != nil { + var res GetAllGroupSettings + if err := c.Client.Post(ctx, "GetAllGroupSettings", GetAllGroupSettingsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34784,43 +51905,33 @@ func (c *Client) GetAllEntities(ctx context.Context, interceptors ...clientv2.Re return &res, nil } -const GetEntitiesDocument = `query GetEntities ($where: EntityWhereInput) { - entities(where: $where) { - edges { - node { - createdAt - createdBy - description - displayName - status - domains - notes { - text - updatedAt - updatedBy - } - entityType { - name - } - id - name - ownerID - tags - updatedAt - updatedBy - } +const GetGroupSettingByIDDocument = `query GetGroupSettingByID ($groupSettingId: ID!) { + groupSetting(id: $groupSettingId) { + id + joinPolicy + syncToGithub + syncToSlack + tags + visibility + group { + id + name } + createdAt + createdBy + updatedAt + updatedBy } } ` -func (c *Client) GetEntities(ctx context.Context, where *EntityWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntities, error) { +func (c *Client) GetGroupSettingByID(ctx context.Context, groupSettingID string, interceptors ...clientv2.RequestInterceptor) (*GetGroupSettingByID, error) { vars := map[string]any{ - "where": where, + "groupSettingId": groupSettingID, } - var res GetEntities - if err := c.Client.Post(ctx, "GetEntities", GetEntitiesDocument, &res, vars, interceptors...); err != nil { + var res GetGroupSettingByID + if err := c.Client.Post(ctx, "GetGroupSettingByID", GetGroupSettingByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34831,48 +51942,37 @@ func (c *Client) GetEntities(ctx context.Context, where *EntityWhereInput, inter return &res, nil } -const GetEntityByIDDocument = `query GetEntityByID ($entityId: ID!) { - entity(id: $entityId) { - createdAt - createdBy - description - displayName - status - domains - notes { - text - updatedAt - updatedBy - } - entityType { - name - } - id - name - ownerID - contacts { - id - fullName - email - title - company - address - phoneNumber +const GetGroupSettingsDocument = `query GetGroupSettings ($where: GroupSettingWhereInput!) { + groupSettings(where: $where) { + edges { + node { + id + joinPolicy + syncToGithub + syncToSlack + tags + visibility + group { + id + name + } + createdAt + createdBy + updatedAt + updatedBy + } } - tags - updatedAt - updatedBy } } ` -func (c *Client) GetEntityByID(ctx context.Context, entityID string, interceptors ...clientv2.RequestInterceptor) (*GetEntityByID, error) { +func (c *Client) GetGroupSettings(ctx context.Context, where GroupSettingWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetGroupSettings, error) { vars := map[string]any{ - "entityId": entityID, + "where": where, } - var res GetEntityByID - if err := c.Client.Post(ctx, "GetEntityByID", GetEntityByIDDocument, &res, vars, interceptors...); err != nil { + var res GetGroupSettings + if err := c.Client.Post(ctx, "GetGroupSettings", GetGroupSettingsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34883,27 +51983,21 @@ func (c *Client) GetEntityByID(ctx context.Context, entityID string, interceptor return &res, nil } -const UpdateEntityDocument = `mutation UpdateEntity ($updateEntityId: ID!, $input: UpdateEntityInput!) { - updateEntity(id: $updateEntityId, input: $input) { - entity { - createdAt - createdBy - description - displayName - status - domains - notes { - text - updatedAt - updatedBy - } - entityType { - name - } +const UpdateGroupSettingDocument = `mutation UpdateGroupSetting ($updateGroupSettingId: ID!, $input: UpdateGroupSettingInput!) { + updateGroupSetting(id: $updateGroupSettingId, input: $input) { + groupSetting { id - name - ownerID + joinPolicy + syncToGithub + syncToSlack tags + visibility + group { + id + name + } + createdAt + createdBy updatedAt updatedBy } @@ -34911,14 +52005,14 @@ const UpdateEntityDocument = `mutation UpdateEntity ($updateEntityId: ID!, $inpu } ` -func (c *Client) UpdateEntity(ctx context.Context, updateEntityID string, input UpdateEntityInput, interceptors ...clientv2.RequestInterceptor) (*UpdateEntity, error) { +func (c *Client) UpdateGroupSetting(ctx context.Context, updateGroupSettingID string, input UpdateGroupSettingInput, interceptors ...clientv2.RequestInterceptor) (*UpdateGroupSetting, error) { vars := map[string]any{ - "updateEntityId": updateEntityID, - "input": input, + "updateGroupSettingId": updateGroupSettingID, + "input": input, } - var res UpdateEntity - if err := c.Client.Post(ctx, "UpdateEntity", UpdateEntityDocument, &res, vars, interceptors...); err != nil { + var res UpdateGroupSetting + if err := c.Client.Post(ctx, "UpdateGroupSetting", UpdateGroupSettingDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34929,37 +52023,35 @@ func (c *Client) UpdateEntity(ctx context.Context, updateEntityID string, input return &res, nil } -const GetAllEntityHistoriesDocument = `query GetAllEntityHistories { - entityHistories { +const GetAllGroupSettingHistoriesDocument = `query GetAllGroupSettingHistories { + groupSettingHistories { edges { node { createdAt createdBy - description - displayName - domains - entityTypeID + groupID historyTime id - name + joinPolicy operation - ownerID ref - status + syncToGithub + syncToSlack tags updatedAt updatedBy + visibility } } } } ` -func (c *Client) GetAllEntityHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntityHistories, error) { +func (c *Client) GetAllGroupSettingHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroupSettingHistories, error) { vars := map[string]any{} - var res GetAllEntityHistories - if err := c.Client.Post(ctx, "GetAllEntityHistories", GetAllEntityHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllGroupSettingHistories + if err := c.Client.Post(ctx, "GetAllGroupSettingHistories", GetAllGroupSettingHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -34970,72 +52062,37 @@ func (c *Client) GetAllEntityHistories(ctx context.Context, interceptors ...clie return &res, nil } -const GetEntityHistoriesDocument = `query GetEntityHistories ($where: EntityHistoryWhereInput) { - entityHistories(where: $where) { +const GetGroupSettingHistoriesDocument = `query GetGroupSettingHistories ($where: GroupSettingHistoryWhereInput) { + groupSettingHistories(where: $where) { edges { node { createdAt createdBy - description - displayName - domains - entityTypeID + groupID historyTime id - name + joinPolicy operation - ownerID ref - status + syncToGithub + syncToSlack tags updatedAt updatedBy + visibility } } } } ` -func (c *Client) GetEntityHistories(ctx context.Context, where *EntityHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntityHistories, error) { +func (c *Client) GetGroupSettingHistories(ctx context.Context, where *GroupSettingHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetGroupSettingHistories, error) { vars := map[string]any{ "where": where, } - var res GetEntityHistories - if err := c.Client.Post(ctx, "GetEntityHistories", GetEntityHistoriesDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const CreateBulkCSVEntityTypeDocument = `mutation CreateBulkCSVEntityType ($input: Upload!) { - createBulkCSVEntityType(input: $input) { - entityTypes { - createdAt - createdBy - id - name - ownerID - tags - updatedAt - updatedBy - } - } -} -` - -func (c *Client) CreateBulkCSVEntityType(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVEntityType, error) { - vars := map[string]any{ - "input": input, - } - - var res CreateBulkCSVEntityType - if err := c.Client.Post(ctx, "CreateBulkCSVEntityType", CreateBulkCSVEntityTypeDocument, &res, vars, interceptors...); err != nil { + var res GetGroupSettingHistories + if err := c.Client.Post(ctx, "GetGroupSettingHistories", GetGroupSettingHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35046,29 +52103,35 @@ func (c *Client) CreateBulkCSVEntityType(ctx context.Context, input graphql.Uplo return &res, nil } -const CreateBulkEntityTypeDocument = `mutation CreateBulkEntityType ($input: [CreateEntityTypeInput!]) { - createBulkEntityType(input: $input) { - entityTypes { - createdAt - createdBy +const CreateBulkCSVHushDocument = `mutation CreateBulkCSVHush ($input: Upload!) { + createBulkCSVHush(input: $input) { + hushes { + description id + kind name - ownerID - tags - updatedAt - updatedBy + secretName + integrations { + id + } + organization { + id + } + events { + id + } } } } ` -func (c *Client) CreateBulkEntityType(ctx context.Context, input []*CreateEntityTypeInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkEntityType, error) { +func (c *Client) CreateBulkCSVHush(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVHush, error) { vars := map[string]any{ "input": input, } - var res CreateBulkEntityType - if err := c.Client.Post(ctx, "CreateBulkEntityType", CreateBulkEntityTypeDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVHush + if err := c.Client.Post(ctx, "CreateBulkCSVHush", CreateBulkCSVHushDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35079,29 +52142,35 @@ func (c *Client) CreateBulkEntityType(ctx context.Context, input []*CreateEntity return &res, nil } -const CreateEntityTypeDocument = `mutation CreateEntityType ($input: CreateEntityTypeInput!) { - createEntityType(input: $input) { - entityType { - createdAt - createdBy +const CreateBulkHushDocument = `mutation CreateBulkHush ($input: [CreateHushInput!]) { + createBulkHush(input: $input) { + hushes { + description id + kind name - ownerID - tags - updatedAt - updatedBy + secretName + integrations { + id + } + organization { + id + } + events { + id + } } } } ` -func (c *Client) CreateEntityType(ctx context.Context, input CreateEntityTypeInput, interceptors ...clientv2.RequestInterceptor) (*CreateEntityType, error) { +func (c *Client) CreateBulkHush(ctx context.Context, input []*CreateHushInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkHush, error) { vars := map[string]any{ "input": input, } - var res CreateEntityType - if err := c.Client.Post(ctx, "CreateEntityType", CreateEntityTypeDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkHush + if err := c.Client.Post(ctx, "CreateBulkHush", CreateBulkHushDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35112,20 +52181,35 @@ func (c *Client) CreateEntityType(ctx context.Context, input CreateEntityTypeInp return &res, nil } -const DeleteEntityTypeDocument = `mutation DeleteEntityType ($deleteEntityTypeId: ID!) { - deleteEntityType(id: $deleteEntityTypeId) { - deletedID +const CreateHushDocument = `mutation CreateHush ($input: CreateHushInput!) { + createHush(input: $input) { + hush { + description + id + kind + name + secretName + integrations { + id + } + organization { + id + } + events { + id + } + } } } ` -func (c *Client) DeleteEntityType(ctx context.Context, deleteEntityTypeID string, interceptors ...clientv2.RequestInterceptor) (*DeleteEntityType, error) { +func (c *Client) CreateHush(ctx context.Context, input CreateHushInput, interceptors ...clientv2.RequestInterceptor) (*CreateHush, error) { vars := map[string]any{ - "deleteEntityTypeId": deleteEntityTypeID, + "input": input, } - var res DeleteEntityType - if err := c.Client.Post(ctx, "DeleteEntityType", DeleteEntityTypeDocument, &res, vars, interceptors...); err != nil { + var res CreateHush + if err := c.Client.Post(ctx, "CreateHush", CreateHushDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35136,17 +52220,27 @@ func (c *Client) DeleteEntityType(ctx context.Context, deleteEntityTypeID string return &res, nil } -const GetAllEntityTypesDocument = `query GetAllEntityTypes { - entityTypes { +const GetAllHushesDocument = `query GetAllHushes { + hushes { edges { node { - createdAt - createdBy + description id + kind name - ownerID - tags + secretName + integrations { + id + } + organization { + id + } + events { + id + } + createdAt updatedAt + createdBy updatedBy } } @@ -35154,11 +52248,11 @@ const GetAllEntityTypesDocument = `query GetAllEntityTypes { } ` -func (c *Client) GetAllEntityTypes(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntityTypes, error) { +func (c *Client) GetAllHushes(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllHushes, error) { vars := map[string]any{} - var res GetAllEntityTypes - if err := c.Client.Post(ctx, "GetAllEntityTypes", GetAllEntityTypesDocument, &res, vars, interceptors...); err != nil { + var res GetAllHushes + if err := c.Client.Post(ctx, "GetAllHushes", GetAllHushesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35169,27 +52263,37 @@ func (c *Client) GetAllEntityTypes(ctx context.Context, interceptors ...clientv2 return &res, nil } -const GetEntityTypeByIDDocument = `query GetEntityTypeByID ($entityTypeId: ID!) { - entityType(id: $entityTypeId) { - createdAt - createdBy +const GetHushByIDDocument = `query GetHushByID ($hushId: ID!) { + hush(id: $hushId) { + description id + kind name - ownerID - tags + secretName + integrations { + id + } + organization { + id + } + events { + id + } + createdAt updatedAt + createdBy updatedBy } } ` -func (c *Client) GetEntityTypeByID(ctx context.Context, entityTypeID string, interceptors ...clientv2.RequestInterceptor) (*GetEntityTypeByID, error) { +func (c *Client) GetHushByID(ctx context.Context, hushID string, interceptors ...clientv2.RequestInterceptor) (*GetHushByID, error) { vars := map[string]any{ - "entityTypeId": entityTypeID, + "hushId": hushID, } - var res GetEntityTypeByID - if err := c.Client.Post(ctx, "GetEntityTypeByID", GetEntityTypeByIDDocument, &res, vars, interceptors...); err != nil { + var res GetHushByID + if err := c.Client.Post(ctx, "GetHushByID", GetHushByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35200,17 +52304,27 @@ func (c *Client) GetEntityTypeByID(ctx context.Context, entityTypeID string, int return &res, nil } -const GetEntityTypesDocument = `query GetEntityTypes ($where: EntityTypeWhereInput) { - entityTypes(where: $where) { +const GetHushesDocument = `query GetHushes ($where: HushWhereInput) { + hushes(where: $where) { edges { node { - createdAt - createdBy + description id + kind name - ownerID - tags + secretName + integrations { + id + } + organization { + id + } + events { + id + } + createdAt updatedAt + createdBy updatedBy } } @@ -35218,13 +52332,13 @@ const GetEntityTypesDocument = `query GetEntityTypes ($where: EntityTypeWhereInp } ` -func (c *Client) GetEntityTypes(ctx context.Context, where *EntityTypeWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntityTypes, error) { +func (c *Client) GetHushes(ctx context.Context, where *HushWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetHushes, error) { vars := map[string]any{ "where": where, } - var res GetEntityTypes - if err := c.Client.Post(ctx, "GetEntityTypes", GetEntityTypesDocument, &res, vars, interceptors...); err != nil { + var res GetHushes + if err := c.Client.Post(ctx, "GetHushes", GetHushesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35235,30 +52349,36 @@ func (c *Client) GetEntityTypes(ctx context.Context, where *EntityTypeWhereInput return &res, nil } -const UpdateEntityTypeDocument = `mutation UpdateEntityType ($updateEntityTypeId: ID!, $input: UpdateEntityTypeInput!) { - updateEntityType(id: $updateEntityTypeId, input: $input) { - entityType { - createdAt - createdBy +const UpdateHushDocument = `mutation UpdateHush ($updateHushId: ID!, $input: UpdateHushInput!) { + updateHush(id: $updateHushId, input: $input) { + hush { + description id + kind name - ownerID - tags - updatedAt - updatedBy + secretName + integrations { + id + } + organization { + id + } + events { + id + } } } } ` -func (c *Client) UpdateEntityType(ctx context.Context, updateEntityTypeID string, input UpdateEntityTypeInput, interceptors ...clientv2.RequestInterceptor) (*UpdateEntityType, error) { +func (c *Client) UpdateHush(ctx context.Context, updateHushID string, input UpdateHushInput, interceptors ...clientv2.RequestInterceptor) (*UpdateHush, error) { vars := map[string]any{ - "updateEntityTypeId": updateEntityTypeID, - "input": input, + "updateHushId": updateHushID, + "input": input, } - var res UpdateEntityType - if err := c.Client.Post(ctx, "UpdateEntityType", UpdateEntityTypeDocument, &res, vars, interceptors...); err != nil { + var res UpdateHush + if err := c.Client.Post(ctx, "UpdateHush", UpdateHushDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35269,19 +52389,20 @@ func (c *Client) UpdateEntityType(ctx context.Context, updateEntityTypeID string return &res, nil } -const GetAllEntityTypeHistoriesDocument = `query GetAllEntityTypeHistories { - entityTypeHistories { +const GetAllHushHistoriesDocument = `query GetAllHushHistories { + hushHistories { edges { node { createdAt createdBy + description historyTime id + kind name operation - ownerID ref - tags + secretName updatedAt updatedBy } @@ -35290,11 +52411,11 @@ const GetAllEntityTypeHistoriesDocument = `query GetAllEntityTypeHistories { } ` -func (c *Client) GetAllEntityTypeHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEntityTypeHistories, error) { +func (c *Client) GetAllHushHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllHushHistories, error) { vars := map[string]any{} - var res GetAllEntityTypeHistories - if err := c.Client.Post(ctx, "GetAllEntityTypeHistories", GetAllEntityTypeHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllHushHistories + if err := c.Client.Post(ctx, "GetAllHushHistories", GetAllHushHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35305,19 +52426,20 @@ func (c *Client) GetAllEntityTypeHistories(ctx context.Context, interceptors ... return &res, nil } -const GetEntityTypeHistoriesDocument = `query GetEntityTypeHistories ($where: EntityTypeHistoryWhereInput) { - entityTypeHistories(where: $where) { +const GetHushHistoriesDocument = `query GetHushHistories ($where: HushHistoryWhereInput) { + hushHistories(where: $where) { edges { node { createdAt createdBy + description historyTime id + kind name operation - ownerID ref - tags + secretName updatedAt updatedBy } @@ -35326,13 +52448,13 @@ const GetEntityTypeHistoriesDocument = `query GetEntityTypeHistories ($where: En } ` -func (c *Client) GetEntityTypeHistories(ctx context.Context, where *EntityTypeHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEntityTypeHistories, error) { +func (c *Client) GetHushHistories(ctx context.Context, where *HushHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetHushHistories, error) { vars := map[string]any{ "where": where, } - var res GetEntityTypeHistories - if err := c.Client.Post(ctx, "GetEntityTypeHistories", GetEntityTypeHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetHushHistories + if err := c.Client.Post(ctx, "GetHushHistories", GetHushHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35343,65 +52465,43 @@ func (c *Client) GetEntityTypeHistories(ctx context.Context, where *EntityTypeHi return &res, nil } -const CreateBulkCSVEventDocument = `mutation CreateBulkCSVEvent ($input: Upload!) { - createBulkCSVEvent(input: $input) { - events { +const CreateBulkCSVIntegrationDocument = `mutation CreateBulkCSVIntegration ($input: Upload!) { + createBulkCSVIntegration(input: $input) { + integrations { + description id - eventID - correlationID - eventType - metadata - user { - id - } - group { - id - } - integration { - id - } - organization { - id - } - invite { - id - } - feature { - id - } - personalAccessToken { - id - } - oauth2token { - id - } - hush { + kind + name + ownerID + owner { id } - orgmembership { + secrets { id } - groupmembership { + oauth2tokens { id } - entitlement { + events { id } - webhook { + webhooks { id + destinationURL + enabled } } } } ` -func (c *Client) CreateBulkCSVEvent(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVEvent, error) { +func (c *Client) CreateBulkCSVIntegration(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVIntegration, error) { vars := map[string]any{ "input": input, } - var res CreateBulkCSVEvent - if err := c.Client.Post(ctx, "CreateBulkCSVEvent", CreateBulkCSVEventDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVIntegration + if err := c.Client.Post(ctx, "CreateBulkCSVIntegration", CreateBulkCSVIntegrationDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35412,65 +52512,43 @@ func (c *Client) CreateBulkCSVEvent(ctx context.Context, input graphql.Upload, i return &res, nil } -const CreateBulkEventDocument = `mutation CreateBulkEvent ($input: [CreateEventInput!]) { - createBulkEvent(input: $input) { - events { +const CreateBulkIntegrationDocument = `mutation CreateBulkIntegration ($input: [CreateIntegrationInput!]) { + createBulkIntegration(input: $input) { + integrations { + description id - eventID - correlationID - eventType - metadata - user { - id - } - group { - id - } - integration { - id - } - organization { - id - } - invite { - id - } - feature { - id - } - personalAccessToken { - id - } - oauth2token { - id - } - hush { + kind + name + ownerID + owner { id } - orgmembership { + secrets { id } - groupmembership { + oauth2tokens { id } - entitlement { + events { id } - webhook { + webhooks { id + destinationURL + enabled } } } } ` -func (c *Client) CreateBulkEvent(ctx context.Context, input []*CreateEventInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkEvent, error) { +func (c *Client) CreateBulkIntegration(ctx context.Context, input []*CreateIntegrationInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkIntegration, error) { vars := map[string]any{ "input": input, } - var res CreateBulkEvent - if err := c.Client.Post(ctx, "CreateBulkEvent", CreateBulkEventDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkIntegration + if err := c.Client.Post(ctx, "CreateBulkIntegration", CreateBulkIntegrationDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35481,65 +52559,43 @@ func (c *Client) CreateBulkEvent(ctx context.Context, input []*CreateEventInput, return &res, nil } -const CreateEventDocument = `mutation CreateEvent ($input: CreateEventInput!) { - createEvent(input: $input) { - event { +const CreateIntegrationDocument = `mutation CreateIntegration ($input: CreateIntegrationInput!) { + createIntegration(input: $input) { + integration { + description id - eventID - correlationID - eventType - metadata - user { - id - } - group { - id - } - integration { - id - } - organization { - id - } - invite { - id - } - feature { - id - } - personalAccessToken { - id - } - oauth2token { - id - } - hush { + kind + name + ownerID + owner { id } - orgmembership { + secrets { id } - groupmembership { + oauth2tokens { id } - entitlement { + events { id } - webhook { + webhooks { id + destinationURL + enabled } } } } ` -func (c *Client) CreateEvent(ctx context.Context, input CreateEventInput, interceptors ...clientv2.RequestInterceptor) (*CreateEvent, error) { +func (c *Client) CreateIntegration(ctx context.Context, input CreateIntegrationInput, interceptors ...clientv2.RequestInterceptor) (*CreateIntegration, error) { vars := map[string]any{ "input": input, } - var res CreateEvent - if err := c.Client.Post(ctx, "CreateEvent", CreateEventDocument, &res, vars, interceptors...); err != nil { + var res CreateIntegration + if err := c.Client.Post(ctx, "CreateIntegration", CreateIntegrationDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35550,20 +52606,20 @@ func (c *Client) CreateEvent(ctx context.Context, input CreateEventInput, interc return &res, nil } -const DeleteEventDocument = `mutation DeleteEvent ($deleteEventId: ID!) { - deleteEvent(id: $deleteEventId) { +const DeleteIntegrationDocument = `mutation DeleteIntegration ($deleteIntegrationId: ID!) { + deleteIntegration(id: $deleteIntegrationId) { deletedID } } ` -func (c *Client) DeleteEvent(ctx context.Context, deleteEventID string, interceptors ...clientv2.RequestInterceptor) (*DeleteEvent, error) { +func (c *Client) DeleteIntegration(ctx context.Context, deleteIntegrationID string, interceptors ...clientv2.RequestInterceptor) (*DeleteIntegration, error) { vars := map[string]any{ - "deleteEventId": deleteEventID, + "deleteIntegrationId": deleteIntegrationID, } - var res DeleteEvent - if err := c.Client.Post(ctx, "DeleteEvent", DeleteEventDocument, &res, vars, interceptors...); err != nil { + var res DeleteIntegration + if err := c.Client.Post(ctx, "DeleteIntegration", DeleteIntegrationDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35574,69 +52630,47 @@ func (c *Client) DeleteEvent(ctx context.Context, deleteEventID string, intercep return &res, nil } -const GetAllEventsDocument = `query GetAllEvents { - events { +const GetAllIntegrationsDocument = `query GetAllIntegrations { + integrations { edges { node { + description id - createdAt - updatedAt - createdBy - updatedBy - eventID - correlationID - eventType - metadata - user { - id - } - group { - id - } - integration { - id - } - organization { - id - } - invite { - id - } - feature { - id - } - personalAccessToken { - id - } - oauth2token { - id - } - hush { + kind + name + ownerID + owner { id } - orgmembership { + secrets { id } - groupmembership { + oauth2tokens { id } - entitlement { + events { id } - webhook { + webhooks { id + destinationURL + enabled } + createdAt + createdBy + updatedAt + updatedBy } } } } ` -func (c *Client) GetAllEvents(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEvents, error) { +func (c *Client) GetAllIntegrations(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllIntegrations, error) { vars := map[string]any{} - var res GetAllEvents - if err := c.Client.Post(ctx, "GetAllEvents", GetAllEventsDocument, &res, vars, interceptors...); err != nil { + var res GetAllIntegrations + if err := c.Client.Post(ctx, "GetAllIntegrations", GetAllIntegrationsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35647,67 +52681,45 @@ func (c *Client) GetAllEvents(ctx context.Context, interceptors ...clientv2.Requ return &res, nil } -const GetEventByIDDocument = `query GetEventByID ($eventId: ID!) { - event(id: $eventId) { +const GetIntegrationByIDDocument = `query GetIntegrationByID ($integrationId: ID!) { + integration(id: $integrationId) { + description id - createdAt - updatedAt - createdBy - updatedBy - eventID - correlationID - eventType - metadata - user { - id - } - group { - id - } - integration { - id - } - organization { - id - } - invite { - id - } - feature { - id - } - personalAccessToken { - id - } - oauth2token { - id - } - hush { + kind + name + ownerID + owner { id } - orgmembership { + secrets { id } - groupmembership { + oauth2tokens { id } - entitlement { + events { id } - webhook { + webhooks { id + destinationURL + enabled } + createdAt + createdBy + updatedAt + updatedBy } } ` -func (c *Client) GetEventByID(ctx context.Context, eventID string, interceptors ...clientv2.RequestInterceptor) (*GetEventByID, error) { +func (c *Client) GetIntegrationByID(ctx context.Context, integrationID string, interceptors ...clientv2.RequestInterceptor) (*GetIntegrationByID, error) { vars := map[string]any{ - "eventId": eventID, + "integrationId": integrationID, } - var res GetEventByID - if err := c.Client.Post(ctx, "GetEventByID", GetEventByIDDocument, &res, vars, interceptors...); err != nil { + var res GetIntegrationByID + if err := c.Client.Post(ctx, "GetIntegrationByID", GetIntegrationByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35718,28 +52730,49 @@ func (c *Client) GetEventByID(ctx context.Context, eventID string, interceptors return &res, nil } -const GetEventsDocument = `query GetEvents ($where: EventWhereInput) { - events(where: $where) { +const GetIntegrationsDocument = `query GetIntegrations ($where: IntegrationWhereInput) { + integrations(where: $where) { edges { node { - eventID + description id - correlationID - eventType - metadata + kind + name + ownerID + owner { + id + } + secrets { + id + } + oauth2tokens { + id + } + events { + id + } + webhooks { + id + destinationURL + enabled + } + createdAt + createdBy + updatedAt + updatedBy } } } } ` -func (c *Client) GetEvents(ctx context.Context, where *EventWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEvents, error) { +func (c *Client) GetIntegrations(ctx context.Context, where *IntegrationWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetIntegrations, error) { vars := map[string]any{ "where": where, } - var res GetEvents - if err := c.Client.Post(ctx, "GetEvents", GetEventsDocument, &res, vars, interceptors...); err != nil { + var res GetIntegrations + if err := c.Client.Post(ctx, "GetIntegrations", GetIntegrationsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35750,70 +52783,44 @@ func (c *Client) GetEvents(ctx context.Context, where *EventWhereInput, intercep return &res, nil } -const UpdateEventDocument = `mutation UpdateEvent ($updateEventId: ID!, $input: UpdateEventInput!) { - updateEvent(id: $updateEventId, input: $input) { - event { +const UpdateIntegrationDocument = `mutation UpdateIntegration ($updateIntegrationId: ID!, $input: UpdateIntegrationInput!) { + updateIntegration(id: $updateIntegrationId, input: $input) { + integration { + description id - createdAt - updatedAt - createdBy - updatedBy - eventID - correlationID - eventType - metadata - user { - id - } - group { - id - } - integration { - id - } - organization { - id - } - invite { - id - } - feature { - id - } - personalAccessToken { - id - } - oauth2token { - id - } - hush { + kind + name + ownerID + owner { id } - orgmembership { + secrets { id } - groupmembership { + oauth2tokens { id } - entitlement { + events { id } - webhook { + webhooks { id + destinationURL + enabled } } } } ` -func (c *Client) UpdateEvent(ctx context.Context, updateEventID string, input UpdateEventInput, interceptors ...clientv2.RequestInterceptor) (*UpdateEvent, error) { +func (c *Client) UpdateIntegration(ctx context.Context, updateIntegrationID string, input UpdateIntegrationInput, interceptors ...clientv2.RequestInterceptor) (*UpdateIntegration, error) { vars := map[string]any{ - "updateEventId": updateEventID, - "input": input, + "updateIntegrationId": updateIntegrationID, + "input": input, } - var res UpdateEvent - if err := c.Client.Post(ctx, "UpdateEvent", UpdateEventDocument, &res, vars, interceptors...); err != nil { + var res UpdateIntegration + if err := c.Client.Post(ctx, "UpdateIntegration", UpdateIntegrationDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35824,19 +52831,19 @@ func (c *Client) UpdateEvent(ctx context.Context, updateEventID string, input Up return &res, nil } -const GetAllEventHistoriesDocument = `query GetAllEventHistories { - eventHistories { +const GetAllIntegrationHistoriesDocument = `query GetAllIntegrationHistories { + integrationHistories { edges { node { - correlationID createdAt createdBy - eventID - eventType + description historyTime id - metadata + kind + name operation + ownerID ref tags updatedAt @@ -35847,11 +52854,11 @@ const GetAllEventHistoriesDocument = `query GetAllEventHistories { } ` -func (c *Client) GetAllEventHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllEventHistories, error) { +func (c *Client) GetAllIntegrationHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllIntegrationHistories, error) { vars := map[string]any{} - var res GetAllEventHistories - if err := c.Client.Post(ctx, "GetAllEventHistories", GetAllEventHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllIntegrationHistories + if err := c.Client.Post(ctx, "GetAllIntegrationHistories", GetAllIntegrationHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35862,19 +52869,19 @@ func (c *Client) GetAllEventHistories(ctx context.Context, interceptors ...clien return &res, nil } -const GetEventHistoriesDocument = `query GetEventHistories ($where: EventHistoryWhereInput) { - eventHistories(where: $where) { +const GetIntegrationHistoriesDocument = `query GetIntegrationHistories ($where: IntegrationHistoryWhereInput) { + integrationHistories(where: $where) { edges { node { - correlationID createdAt createdBy - eventID - eventType + description historyTime id - metadata + kind + name operation + ownerID ref tags updatedAt @@ -35885,13 +52892,13 @@ const GetEventHistoriesDocument = `query GetEventHistories ($where: EventHistory } ` -func (c *Client) GetEventHistories(ctx context.Context, where *EventHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetEventHistories, error) { +func (c *Client) GetIntegrationHistories(ctx context.Context, where *IntegrationHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetIntegrationHistories, error) { vars := map[string]any{ "where": where, } - var res GetEventHistories - if err := c.Client.Post(ctx, "GetEventHistories", GetEventHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetIntegrationHistories + if err := c.Client.Post(ctx, "GetIntegrationHistories", GetIntegrationHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35902,27 +52909,35 @@ func (c *Client) GetEventHistories(ctx context.Context, where *EventHistoryWhere return &res, nil } -const CreateBulkCSVFeatureDocument = `mutation CreateBulkCSVFeature ($input: Upload!) { - createBulkCSVFeature(input: $input) { - features { +const CreateBulkCSVInternalPolicyDocument = `mutation CreateBulkCSVInternalPolicy ($input: Upload!) { + createBulkCSVInternalPolicy(input: $input) { + internalPolicies { + background + createdAt + createdBy description - enabled + details id name - displayName + policyType + purposeAndScope + status tags + updatedAt + updatedBy + version } } } ` -func (c *Client) CreateBulkCSVFeature(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVFeature, error) { +func (c *Client) CreateBulkCSVInternalPolicy(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVInternalPolicy, error) { vars := map[string]any{ "input": input, } - var res CreateBulkCSVFeature - if err := c.Client.Post(ctx, "CreateBulkCSVFeature", CreateBulkCSVFeatureDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVInternalPolicy + if err := c.Client.Post(ctx, "CreateBulkCSVInternalPolicy", CreateBulkCSVInternalPolicyDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35933,27 +52948,35 @@ func (c *Client) CreateBulkCSVFeature(ctx context.Context, input graphql.Upload, return &res, nil } -const CreateBulkFeatureDocument = `mutation CreateBulkFeature ($input: [CreateFeatureInput!]) { - createBulkFeature(input: $input) { - features { +const CreateBulkInternalPolicyDocument = `mutation CreateBulkInternalPolicy ($input: [CreateInternalPolicyInput!]) { + createBulkInternalPolicy(input: $input) { + internalPolicies { + background + createdAt + createdBy description - enabled + details id name - displayName + policyType + purposeAndScope + status tags + updatedAt + updatedBy + version } } } ` -func (c *Client) CreateBulkFeature(ctx context.Context, input []*CreateFeatureInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkFeature, error) { +func (c *Client) CreateBulkInternalPolicy(ctx context.Context, input []*CreateInternalPolicyInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkInternalPolicy, error) { vars := map[string]any{ "input": input, } - var res CreateBulkFeature - if err := c.Client.Post(ctx, "CreateBulkFeature", CreateBulkFeatureDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkInternalPolicy + if err := c.Client.Post(ctx, "CreateBulkInternalPolicy", CreateBulkInternalPolicyDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35964,27 +52987,35 @@ func (c *Client) CreateBulkFeature(ctx context.Context, input []*CreateFeatureIn return &res, nil } -const CreateFeatureDocument = `mutation CreateFeature ($input: CreateFeatureInput!) { - createFeature(input: $input) { - feature { +const CreateInternalPolicyDocument = `mutation CreateInternalPolicy ($input: CreateInternalPolicyInput!) { + createInternalPolicy(input: $input) { + internalPolicy { + background + createdAt + createdBy description - enabled + details id name - displayName + policyType + purposeAndScope + status tags + updatedAt + updatedBy + version } } } ` -func (c *Client) CreateFeature(ctx context.Context, input CreateFeatureInput, interceptors ...clientv2.RequestInterceptor) (*CreateFeature, error) { +func (c *Client) CreateInternalPolicy(ctx context.Context, input CreateInternalPolicyInput, interceptors ...clientv2.RequestInterceptor) (*CreateInternalPolicy, error) { vars := map[string]any{ "input": input, } - var res CreateFeature - if err := c.Client.Post(ctx, "CreateFeature", CreateFeatureDocument, &res, vars, interceptors...); err != nil { + var res CreateInternalPolicy + if err := c.Client.Post(ctx, "CreateInternalPolicy", CreateInternalPolicyDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -35995,20 +53026,20 @@ func (c *Client) CreateFeature(ctx context.Context, input CreateFeatureInput, in return &res, nil } -const DeleteFeatureDocument = `mutation DeleteFeature ($deleteFeatureId: ID!) { - deleteFeature(id: $deleteFeatureId) { +const DeleteInternalPolicyDocument = `mutation DeleteInternalPolicy ($deleteInternalPolicyId: ID!) { + deleteInternalPolicy(id: $deleteInternalPolicyId) { deletedID } } ` -func (c *Client) DeleteFeature(ctx context.Context, deleteFeatureID string, interceptors ...clientv2.RequestInterceptor) (*DeleteFeature, error) { +func (c *Client) DeleteInternalPolicy(ctx context.Context, deleteInternalPolicyID string, interceptors ...clientv2.RequestInterceptor) (*DeleteInternalPolicy, error) { vars := map[string]any{ - "deleteFeatureId": deleteFeatureID, + "deleteInternalPolicyId": deleteInternalPolicyID, } - var res DeleteFeature - if err := c.Client.Post(ctx, "DeleteFeature", DeleteFeatureDocument, &res, vars, interceptors...); err != nil { + var res DeleteInternalPolicy + if err := c.Client.Post(ctx, "DeleteInternalPolicy", DeleteInternalPolicyDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36019,27 +53050,35 @@ func (c *Client) DeleteFeature(ctx context.Context, deleteFeatureID string, inte return &res, nil } -const GetAllFeaturesDocument = `query GetAllFeatures { - features { +const GetAllInternalPoliciesDocument = `query GetAllInternalPolicies { + internalPolicies { edges { node { + background + createdAt + createdBy description - enabled + details id name - displayName + policyType + purposeAndScope + status tags + updatedAt + updatedBy + version } } } } ` -func (c *Client) GetAllFeatures(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllFeatures, error) { +func (c *Client) GetAllInternalPolicies(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllInternalPolicies, error) { vars := map[string]any{} - var res GetAllFeatures - if err := c.Client.Post(ctx, "GetAllFeatures", GetAllFeaturesDocument, &res, vars, interceptors...); err != nil { + var res GetAllInternalPolicies + if err := c.Client.Post(ctx, "GetAllInternalPolicies", GetAllInternalPoliciesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36050,25 +53089,33 @@ func (c *Client) GetAllFeatures(ctx context.Context, interceptors ...clientv2.Re return &res, nil } -const GetFeatureByIDDocument = `query GetFeatureByID ($featureId: ID!) { - feature(id: $featureId) { +const GetInternalPolicyByIDDocument = `query GetInternalPolicyByID ($internalPolicyId: ID!) { + internalPolicy(id: $internalPolicyId) { + background + createdAt + createdBy description - enabled + details id name - displayName + policyType + purposeAndScope + status tags + updatedAt + updatedBy + version } } ` -func (c *Client) GetFeatureByID(ctx context.Context, featureID string, interceptors ...clientv2.RequestInterceptor) (*GetFeatureByID, error) { +func (c *Client) GetInternalPolicyByID(ctx context.Context, internalPolicyID string, interceptors ...clientv2.RequestInterceptor) (*GetInternalPolicyByID, error) { vars := map[string]any{ - "featureId": featureID, + "internalPolicyId": internalPolicyID, } - var res GetFeatureByID - if err := c.Client.Post(ctx, "GetFeatureByID", GetFeatureByIDDocument, &res, vars, interceptors...); err != nil { + var res GetInternalPolicyByID + if err := c.Client.Post(ctx, "GetInternalPolicyByID", GetInternalPolicyByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36079,29 +53126,37 @@ func (c *Client) GetFeatureByID(ctx context.Context, featureID string, intercept return &res, nil } -const GetFeaturesDocument = `query GetFeatures ($where: FeatureWhereInput) { - features(where: $where) { +const GetInternalPoliciesDocument = `query GetInternalPolicies ($where: InternalPolicyWhereInput) { + internalPolicies(where: $where) { edges { node { + background + createdAt + createdBy description - enabled + details id name - displayName + policyType + purposeAndScope + status tags + updatedAt + updatedBy + version } } } } ` -func (c *Client) GetFeatures(ctx context.Context, where *FeatureWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetFeatures, error) { +func (c *Client) GetInternalPolicies(ctx context.Context, where *InternalPolicyWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetInternalPolicies, error) { vars := map[string]any{ "where": where, } - var res GetFeatures - if err := c.Client.Post(ctx, "GetFeatures", GetFeaturesDocument, &res, vars, interceptors...); err != nil { + var res GetInternalPolicies + if err := c.Client.Post(ctx, "GetInternalPolicies", GetInternalPoliciesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36112,28 +53167,36 @@ func (c *Client) GetFeatures(ctx context.Context, where *FeatureWhereInput, inte return &res, nil } -const UpdateFeatureDocument = `mutation UpdateFeature ($updateFeatureId: ID!, $input: UpdateFeatureInput!) { - updateFeature(id: $updateFeatureId, input: $input) { - feature { +const UpdateInternalPolicyDocument = `mutation UpdateInternalPolicy ($updateInternalPolicyId: ID!, $input: UpdateInternalPolicyInput!) { + updateInternalPolicy(id: $updateInternalPolicyId, input: $input) { + internalPolicy { + background + createdAt + createdBy description - enabled + details id name - displayName + policyType + purposeAndScope + status tags + updatedAt + updatedBy + version } } } ` -func (c *Client) UpdateFeature(ctx context.Context, updateFeatureID string, input UpdateFeatureInput, interceptors ...clientv2.RequestInterceptor) (*UpdateFeature, error) { +func (c *Client) UpdateInternalPolicy(ctx context.Context, updateInternalPolicyID string, input UpdateInternalPolicyInput, interceptors ...clientv2.RequestInterceptor) (*UpdateInternalPolicy, error) { vars := map[string]any{ - "updateFeatureId": updateFeatureID, - "input": input, + "updateInternalPolicyId": updateInternalPolicyID, + "input": input, } - var res UpdateFeature - if err := c.Client.Post(ctx, "UpdateFeature", UpdateFeatureDocument, &res, vars, interceptors...); err != nil { + var res UpdateInternalPolicy + if err := c.Client.Post(ctx, "UpdateInternalPolicy", UpdateInternalPolicyDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36144,36 +53207,38 @@ func (c *Client) UpdateFeature(ctx context.Context, updateFeatureID string, inpu return &res, nil } -const GetAllFeatureHistoriesDocument = `query GetAllFeatureHistories { - featureHistories { +const GetAllInternalPolicyHistoriesDocument = `query GetAllInternalPolicyHistories { + internalPolicyHistories { edges { node { + background createdAt createdBy description - displayName - enabled + details historyTime id - metadata name operation - ownerID + policyType + purposeAndScope ref + status tags updatedAt updatedBy + version } } } } ` -func (c *Client) GetAllFeatureHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllFeatureHistories, error) { +func (c *Client) GetAllInternalPolicyHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllInternalPolicyHistories, error) { vars := map[string]any{} - var res GetAllFeatureHistories - if err := c.Client.Post(ctx, "GetAllFeatureHistories", GetAllFeatureHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllInternalPolicyHistories + if err := c.Client.Post(ctx, "GetAllInternalPolicyHistories", GetAllInternalPolicyHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36184,148 +53249,40 @@ func (c *Client) GetAllFeatureHistories(ctx context.Context, interceptors ...cli return &res, nil } -const GetFeatureHistoriesDocument = `query GetFeatureHistories ($where: FeatureHistoryWhereInput) { - featureHistories(where: $where) { +const GetInternalPolicyHistoriesDocument = `query GetInternalPolicyHistories ($where: InternalPolicyHistoryWhereInput) { + internalPolicyHistories(where: $where) { edges { node { + background createdAt createdBy description - displayName - enabled + details historyTime id - metadata name operation - ownerID + policyType + purposeAndScope ref + status tags updatedAt updatedBy + version } } } } ` -func (c *Client) GetFeatureHistories(ctx context.Context, where *FeatureHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetFeatureHistories, error) { +func (c *Client) GetInternalPolicyHistories(ctx context.Context, where *InternalPolicyHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetInternalPolicyHistories, error) { vars := map[string]any{ "where": where, } - var res GetFeatureHistories - if err := c.Client.Post(ctx, "GetFeatureHistories", GetFeatureHistoriesDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const DeleteFileDocument = `mutation DeleteFile ($deleteFileId: ID!) { - deleteFile(id: $deleteFileId) { - deletedID - } -} -` - -func (c *Client) DeleteFile(ctx context.Context, deleteFileID string, interceptors ...clientv2.RequestInterceptor) (*DeleteFile, error) { - vars := map[string]any{ - "deleteFileId": deleteFileID, - } - - var res DeleteFile - if err := c.Client.Post(ctx, "DeleteFile", DeleteFileDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const GetAllFilesDocument = `query GetAllFiles { - files { - edges { - node { - categoryType - createdAt - createdBy - detectedContentType - detectedMimeType - id - md5Hash - persistedFileSize - providedFileExtension - providedFileName - providedFileSize - storagePath - storageScheme - storageVolume - storeKey - tags - updatedAt - updatedBy - uri - } - } - } -} -` - -func (c *Client) GetAllFiles(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllFiles, error) { - vars := map[string]any{} - - var res GetAllFiles - if err := c.Client.Post(ctx, "GetAllFiles", GetAllFilesDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const GetFileByIDDocument = `query GetFileByID ($fileId: ID!) { - file(id: $fileId) { - categoryType - createdAt - createdBy - detectedContentType - detectedMimeType - id - md5Hash - persistedFileSize - providedFileExtension - providedFileName - providedFileSize - storagePath - storageScheme - storageVolume - storeKey - tags - updatedAt - updatedBy - uri - } -} -` - -func (c *Client) GetFileByID(ctx context.Context, fileID string, interceptors ...clientv2.RequestInterceptor) (*GetFileByID, error) { - vars := map[string]any{ - "fileId": fileID, - } - - var res GetFileByID - if err := c.Client.Post(ctx, "GetFileByID", GetFileByIDDocument, &res, vars, interceptors...); err != nil { + var res GetInternalPolicyHistories + if err := c.Client.Post(ctx, "GetInternalPolicyHistories", GetInternalPolicyHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36336,138 +53293,60 @@ func (c *Client) GetFileByID(ctx context.Context, fileID string, interceptors .. return &res, nil } -const GetFilesDocument = `query GetFiles ($where: FileWhereInput) { - files(where: $where) { - edges { - node { - categoryType - createdAt - createdBy - detectedContentType - detectedMimeType - id - md5Hash - persistedFileSize - providedFileExtension - providedFileName - providedFileSize - storagePath - storageScheme - storageVolume - storeKey - tags - updatedAt - updatedBy - uri - } +const CreateBulkCSVInviteDocument = `mutation CreateBulkCSVInvite ($input: Upload!) { + createBulkCSVInvite(input: $input) { + invites { + expires + id + recipient + requestorID + role + sendAttempts + status } } } ` -func (c *Client) GetFiles(ctx context.Context, where *FileWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetFiles, error) { +func (c *Client) CreateBulkCSVInvite(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVInvite, error) { vars := map[string]any{ - "where": where, - } - - var res GetFiles - if err := c.Client.Post(ctx, "GetFiles", GetFilesDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const GetAllFileHistoriesDocument = `query GetAllFileHistories { - fileHistories { - edges { - node { - categoryType - createdAt - createdBy - detectedContentType - detectedMimeType - historyTime - id - md5Hash - operation - persistedFileSize - providedFileExtension - providedFileName - providedFileSize - ref - storagePath - storageScheme - storageVolume - storeKey - tags - updatedAt - updatedBy - uri - } - } + "input": input, } -} -` - -func (c *Client) GetAllFileHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllFileHistories, error) { - vars := map[string]any{} - var res GetAllFileHistories - if err := c.Client.Post(ctx, "GetAllFileHistories", GetAllFileHistoriesDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVInvite + if err := c.Client.Post(ctx, "CreateBulkCSVInvite", CreateBulkCSVInviteDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } return nil, err - } - - return &res, nil -} - -const GetFileHistoriesDocument = `query GetFileHistories ($where: FileHistoryWhereInput) { - fileHistories(where: $where) { - edges { - node { - categoryType - createdAt - createdBy - detectedContentType - detectedMimeType - historyTime - id - md5Hash - operation - persistedFileSize - providedFileExtension - providedFileName - providedFileSize - ref - storagePath - storageScheme - storageVolume - storeKey - tags - updatedAt - updatedBy - uri - } + } + + return &res, nil +} + +const CreateBulkInviteDocument = `mutation CreateBulkInvite ($input: [CreateInviteInput!]) { + createBulkInvite(input: $input) { + invites { + expires + id + recipient + requestorID + role + sendAttempts + status } } } ` -func (c *Client) GetFileHistories(ctx context.Context, where *FileHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetFileHistories, error) { +func (c *Client) CreateBulkInvite(ctx context.Context, input []*CreateInviteInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkInvite, error) { vars := map[string]any{ - "where": where, + "input": input, } - var res GetFileHistories - if err := c.Client.Post(ctx, "GetFileHistories", GetFileHistoriesDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkInvite + if err := c.Client.Post(ctx, "CreateBulkInvite", CreateBulkInviteDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36478,48 +53357,31 @@ func (c *Client) GetFileHistories(ctx context.Context, where *FileHistoryWhereIn return &res, nil } -const CreateBulkCSVGroupDocument = `mutation CreateBulkCSVGroup ($input: Upload!) { - createBulkCSVGroup(input: $input) { - groups { - description - displayName +const CreateInviteDocument = `mutation CreateInvite ($input: CreateInviteInput!) { + createInvite(input: $input) { + invite { + expires id - logoURL - name - tags + recipient + requestorID + role + sendAttempts + status owner { id - displayName - } - setting { - id - joinPolicy - syncToGithub - syncToSlack - tags - visibility - } - members { - id - role - user { - id - firstName - lastName - } } } } } ` -func (c *Client) CreateBulkCSVGroup(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVGroup, error) { +func (c *Client) CreateInvite(ctx context.Context, input CreateInviteInput, interceptors ...clientv2.RequestInterceptor) (*CreateInvite, error) { vars := map[string]any{ "input": input, } - var res CreateBulkCSVGroup - if err := c.Client.Post(ctx, "CreateBulkCSVGroup", CreateBulkCSVGroupDocument, &res, vars, interceptors...); err != nil { + var res CreateInvite + if err := c.Client.Post(ctx, "CreateInvite", CreateInviteDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36530,48 +53392,20 @@ func (c *Client) CreateBulkCSVGroup(ctx context.Context, input graphql.Upload, i return &res, nil } -const CreateBulkGroupDocument = `mutation CreateBulkGroup ($input: [CreateGroupInput!]) { - createBulkGroup(input: $input) { - groups { - description - displayName - id - logoURL - name - tags - owner { - id - displayName - } - setting { - id - joinPolicy - syncToGithub - syncToSlack - tags - visibility - } - members { - id - role - user { - id - firstName - lastName - } - } - } +const DeleteInviteDocument = `mutation DeleteInvite ($deleteInviteId: ID!) { + deleteInvite(id: $deleteInviteId) { + deletedID } } ` -func (c *Client) CreateBulkGroup(ctx context.Context, input []*CreateGroupInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkGroup, error) { +func (c *Client) DeleteInvite(ctx context.Context, deleteInviteID string, interceptors ...clientv2.RequestInterceptor) (*DeleteInvite, error) { vars := map[string]any{ - "input": input, + "deleteInviteId": deleteInviteID, } - var res CreateBulkGroup - if err := c.Client.Post(ctx, "CreateBulkGroup", CreateBulkGroupDocument, &res, vars, interceptors...); err != nil { + var res DeleteInvite + if err := c.Client.Post(ctx, "DeleteInvite", DeleteInviteDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36582,48 +53416,35 @@ func (c *Client) CreateBulkGroup(ctx context.Context, input []*CreateGroupInput, return &res, nil } -const CreateGroupDocument = `mutation CreateGroup ($input: CreateGroupInput!) { - createGroup(input: $input) { - group { - description +const GetInviteByIDDocument = `query GetInviteByID ($inviteId: ID!) { + invite(id: $inviteId) { + expires + id + recipient + requestorID + role + sendAttempts + status + owner { displayName id - logoURL name - tags - owner { - id - displayName - } - setting { - id - joinPolicy - syncToGithub - syncToSlack - tags - visibility - } - members { - id - role - user { - id - firstName - lastName - } - } } + createdAt + createdBy + updatedAt + updatedBy } } ` -func (c *Client) CreateGroup(ctx context.Context, input CreateGroupInput, interceptors ...clientv2.RequestInterceptor) (*CreateGroup, error) { +func (c *Client) GetInviteByID(ctx context.Context, inviteID string, interceptors ...clientv2.RequestInterceptor) (*GetInviteByID, error) { vars := map[string]any{ - "input": input, + "inviteId": inviteID, } - var res CreateGroup - if err := c.Client.Post(ctx, "CreateGroup", CreateGroupDocument, &res, vars, interceptors...); err != nil { + var res GetInviteByID + if err := c.Client.Post(ctx, "GetInviteByID", GetInviteByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36634,20 +53455,25 @@ func (c *Client) CreateGroup(ctx context.Context, input CreateGroupInput, interc return &res, nil } -const DeleteGroupDocument = `mutation DeleteGroup ($deleteGroupId: ID!) { - deleteGroup(id: $deleteGroupId) { - deletedID +const GetAllInvitesDocument = `query GetAllInvites { + invites { + edges { + node { + id + recipient + role + status + } + } } } ` -func (c *Client) DeleteGroup(ctx context.Context, deleteGroupID string, interceptors ...clientv2.RequestInterceptor) (*DeleteGroup, error) { - vars := map[string]any{ - "deleteGroupId": deleteGroupID, - } +func (c *Client) GetAllInvites(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllInvites, error) { + vars := map[string]any{} - var res DeleteGroup - if err := c.Client.Post(ctx, "DeleteGroup", DeleteGroupDocument, &res, vars, interceptors...); err != nil { + var res GetAllInvites + if err := c.Client.Post(ctx, "GetAllInvites", GetAllInvitesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36658,56 +53484,33 @@ func (c *Client) DeleteGroup(ctx context.Context, deleteGroupID string, intercep return &res, nil } -const GetAllGroupsDocument = `query GetAllGroups { - groups { +const InvitesByOrgIDDocument = `query InvitesByOrgID ($where: InviteWhereInput) { + invites(where: $where) { edges { node { - description - displayName - id - logoURL - name - tags owner { id - displayName - } - setting { - createdAt - createdBy - id - joinPolicy - syncToGithub - syncToSlack - tags - updatedAt - updatedBy - visibility - } - members { - id - role - user { - id - firstName - lastName + invites { + recipient + requestorID + role + sendAttempts + status } } - createdAt - createdBy - updatedAt - updatedBy } } } } ` -func (c *Client) GetAllGroups(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroups, error) { - vars := map[string]any{} +func (c *Client) InvitesByOrgID(ctx context.Context, where *InviteWhereInput, interceptors ...clientv2.RequestInterceptor) (*InvitesByOrgID, error) { + vars := map[string]any{ + "where": where, + } - var res GetAllGroups - if err := c.Client.Post(ctx, "GetAllGroups", GetAllGroupsDocument, &res, vars, interceptors...); err != nil { + var res InvitesByOrgID + if err := c.Client.Post(ctx, "InvitesByOrgID", InvitesByOrgIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36718,54 +53521,31 @@ func (c *Client) GetAllGroups(ctx context.Context, interceptors ...clientv2.Requ return &res, nil } -const GetGroupByIDDocument = `query GetGroupByID ($groupId: ID!) { - group(id: $groupId) { - description - displayName - id - logoURL - name - tags - owner { - id - displayName - } - setting { +const CreateBulkCSVNarrativeDocument = `mutation CreateBulkCSVNarrative ($input: Upload!) { + createBulkCSVNarrative(input: $input) { + narratives { createdAt createdBy + description + details id - joinPolicy - syncToGithub - syncToSlack + name + satisfies tags updatedAt updatedBy - visibility - } - members { - id - role - user { - id - firstName - lastName - } } - createdAt - createdBy - updatedAt - updatedBy } } ` -func (c *Client) GetGroupByID(ctx context.Context, groupID string, interceptors ...clientv2.RequestInterceptor) (*GetGroupByID, error) { +func (c *Client) CreateBulkCSVNarrative(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVNarrative, error) { vars := map[string]any{ - "groupId": groupID, + "input": input, } - var res GetGroupByID - if err := c.Client.Post(ctx, "GetGroupByID", GetGroupByIDDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVNarrative + if err := c.Client.Post(ctx, "CreateBulkCSVNarrative", CreateBulkCSVNarrativeDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36776,58 +53556,31 @@ func (c *Client) GetGroupByID(ctx context.Context, groupID string, interceptors return &res, nil } -const GetGroupsDocument = `query GetGroups ($where: GroupWhereInput) { - groups(where: $where) { - edges { - node { - description - displayName - id - logoURL - name - tags - owner { - id - displayName - } - setting { - createdAt - createdBy - id - joinPolicy - syncToGithub - syncToSlack - tags - updatedAt - updatedBy - visibility - } - members { - id - role - user { - id - firstName - lastName - } - } - createdAt - createdBy - updatedAt - updatedBy - } +const CreateBulkNarrativeDocument = `mutation CreateBulkNarrative ($input: [CreateNarrativeInput!]) { + createBulkNarrative(input: $input) { + narratives { + createdAt + createdBy + description + details + id + name + satisfies + tags + updatedAt + updatedBy } } } ` -func (c *Client) GetGroups(ctx context.Context, where *GroupWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetGroups, error) { +func (c *Client) CreateBulkNarrative(ctx context.Context, input []*CreateNarrativeInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkNarrative, error) { vars := map[string]any{ - "where": where, + "input": input, } - var res GetGroups - if err := c.Client.Post(ctx, "GetGroups", GetGroupsDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkNarrative + if err := c.Client.Post(ctx, "CreateBulkNarrative", CreateBulkNarrativeDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36838,53 +53591,31 @@ func (c *Client) GetGroups(ctx context.Context, where *GroupWhereInput, intercep return &res, nil } -const UpdateGroupDocument = `mutation UpdateGroup ($updateGroupId: ID!, $input: UpdateGroupInput!) { - updateGroup(id: $updateGroupId, input: $input) { - group { +const CreateNarrativeDocument = `mutation CreateNarrative ($input: CreateNarrativeInput!) { + createNarrative(input: $input) { + narrative { + createdAt + createdBy description - displayName + details id - logoURL name + satisfies tags - owner { - id - displayName - } - setting { - createdAt - createdBy - id - joinPolicy - syncToGithub - syncToSlack - tags - updatedAt - updatedBy - visibility - } - members { - id - role - user { - id - firstName - lastName - } - } + updatedAt + updatedBy } } } ` -func (c *Client) UpdateGroup(ctx context.Context, updateGroupID string, input UpdateGroupInput, interceptors ...clientv2.RequestInterceptor) (*UpdateGroup, error) { +func (c *Client) CreateNarrative(ctx context.Context, input CreateNarrativeInput, interceptors ...clientv2.RequestInterceptor) (*CreateNarrative, error) { vars := map[string]any{ - "updateGroupId": updateGroupID, - "input": input, + "input": input, } - var res UpdateGroup - if err := c.Client.Post(ctx, "UpdateGroup", UpdateGroupDocument, &res, vars, interceptors...); err != nil { + var res CreateNarrative + if err := c.Client.Post(ctx, "CreateNarrative", CreateNarrativeDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36895,22 +53626,41 @@ func (c *Client) UpdateGroup(ctx context.Context, updateGroupID string, input Up return &res, nil } -const GetAllGroupHistoriesDocument = `query GetAllGroupHistories { - groupHistories { +const DeleteNarrativeDocument = `mutation DeleteNarrative ($deleteNarrativeId: ID!) { + deleteNarrative(id: $deleteNarrativeId) { + deletedID + } +} +` + +func (c *Client) DeleteNarrative(ctx context.Context, deleteNarrativeID string, interceptors ...clientv2.RequestInterceptor) (*DeleteNarrative, error) { + vars := map[string]any{ + "deleteNarrativeId": deleteNarrativeID, + } + + var res DeleteNarrative + if err := c.Client.Post(ctx, "DeleteNarrative", DeleteNarrativeDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllNarrativesDocument = `query GetAllNarratives { + narratives { edges { node { createdAt createdBy description - displayName - gravatarLogoURL - historyTime + details id - logoURL name - operation - ownerID - ref + satisfies tags updatedAt updatedBy @@ -36920,11 +53670,11 @@ const GetAllGroupHistoriesDocument = `query GetAllGroupHistories { } ` -func (c *Client) GetAllGroupHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroupHistories, error) { +func (c *Client) GetAllNarratives(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllNarratives, error) { vars := map[string]any{} - var res GetAllGroupHistories - if err := c.Client.Post(ctx, "GetAllGroupHistories", GetAllGroupHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllNarratives + if err := c.Client.Post(ctx, "GetAllNarratives", GetAllNarrativesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36935,38 +53685,29 @@ func (c *Client) GetAllGroupHistories(ctx context.Context, interceptors ...clien return &res, nil } -const GetGroupHistoriesDocument = `query GetGroupHistories ($where: GroupHistoryWhereInput) { - groupHistories(where: $where) { - edges { - node { - createdAt - createdBy - description - displayName - gravatarLogoURL - historyTime - id - logoURL - name - operation - ownerID - ref - tags - updatedAt - updatedBy - } - } +const GetNarrativeByIDDocument = `query GetNarrativeByID ($narrativeId: ID!) { + narrative(id: $narrativeId) { + createdAt + createdBy + description + details + id + name + satisfies + tags + updatedAt + updatedBy } } ` -func (c *Client) GetGroupHistories(ctx context.Context, where *GroupHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetGroupHistories, error) { +func (c *Client) GetNarrativeByID(ctx context.Context, narrativeID string, interceptors ...clientv2.RequestInterceptor) (*GetNarrativeByID, error) { vars := map[string]any{ - "where": where, + "narrativeId": narrativeID, } - var res GetGroupHistories - if err := c.Client.Post(ctx, "GetGroupHistories", GetGroupHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetNarrativeByID + if err := c.Client.Post(ctx, "GetNarrativeByID", GetNarrativeByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -36977,36 +53718,33 @@ func (c *Client) GetGroupHistories(ctx context.Context, where *GroupHistoryWhere return &res, nil } -const AddUserToGroupWithRoleDocument = `mutation AddUserToGroupWithRole ($input: CreateGroupMembershipInput!) { - createGroupMembership(input: $input) { - groupMembership { - groupID - group { +const GetNarrativesDocument = `query GetNarratives ($where: NarrativeWhereInput) { + narratives(where: $where) { + edges { + node { + createdAt + createdBy + description + details id name - } - id - role - userID - user { - displayName - email - firstName - id - lastName + satisfies + tags + updatedAt + updatedBy } } } } ` -func (c *Client) AddUserToGroupWithRole(ctx context.Context, input CreateGroupMembershipInput, interceptors ...clientv2.RequestInterceptor) (*AddUserToGroupWithRole, error) { +func (c *Client) GetNarratives(ctx context.Context, where *NarrativeWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetNarratives, error) { vars := map[string]any{ - "input": input, + "where": where, } - var res AddUserToGroupWithRole - if err := c.Client.Post(ctx, "AddUserToGroupWithRole", AddUserToGroupWithRoleDocument, &res, vars, interceptors...); err != nil { + var res GetNarratives + if err := c.Client.Post(ctx, "GetNarratives", GetNarrativesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37017,36 +53755,32 @@ func (c *Client) AddUserToGroupWithRole(ctx context.Context, input CreateGroupMe return &res, nil } -const CreateBulkCSVGroupMembersDocument = `mutation CreateBulkCSVGroupMembers ($input: Upload!) { - createBulkCSVGroupMembership(input: $input) { - groupMemberships { - groupID - group { - id - name - } +const UpdateNarrativeDocument = `mutation UpdateNarrative ($updateNarrativeId: ID!, $input: UpdateNarrativeInput!) { + updateNarrative(id: $updateNarrativeId, input: $input) { + narrative { + createdAt + createdBy + description + details id - role - userID - user { - displayName - email - firstName - id - lastName - } + name + satisfies + tags + updatedAt + updatedBy } } } ` -func (c *Client) CreateBulkCSVGroupMembers(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVGroupMembers, error) { +func (c *Client) UpdateNarrative(ctx context.Context, updateNarrativeID string, input UpdateNarrativeInput, interceptors ...clientv2.RequestInterceptor) (*UpdateNarrative, error) { vars := map[string]any{ - "input": input, + "updateNarrativeId": updateNarrativeID, + "input": input, } - var res CreateBulkCSVGroupMembers - if err := c.Client.Post(ctx, "CreateBulkCSVGroupMembers", CreateBulkCSVGroupMembersDocument, &res, vars, interceptors...); err != nil { + var res UpdateNarrative + if err := c.Client.Post(ctx, "UpdateNarrative", UpdateNarrativeDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37057,36 +53791,34 @@ func (c *Client) CreateBulkCSVGroupMembers(ctx context.Context, input graphql.Up return &res, nil } -const CreateBulkGroupMembersDocument = `mutation CreateBulkGroupMembers ($input: [CreateGroupMembershipInput!]) { - createBulkGroupMembership(input: $input) { - groupMemberships { - groupID - group { +const GetAllNarrativeHistoriesDocument = `query GetAllNarrativeHistories { + narrativeHistories { + edges { + node { + createdAt + createdBy + description + details + historyTime id name - } - id - role - userID - user { - displayName - email - firstName - id - lastName + operation + ref + satisfies + tags + updatedAt + updatedBy } } } -} -` - -func (c *Client) CreateBulkGroupMembers(ctx context.Context, input []*CreateGroupMembershipInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkGroupMembers, error) { - vars := map[string]any{ - "input": input, - } +} +` - var res CreateBulkGroupMembers - if err := c.Client.Post(ctx, "CreateBulkGroupMembers", CreateBulkGroupMembersDocument, &res, vars, interceptors...); err != nil { +func (c *Client) GetAllNarrativeHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllNarrativeHistories, error) { + vars := map[string]any{} + + var res GetAllNarrativeHistories + if err := c.Client.Post(ctx, "GetAllNarrativeHistories", GetAllNarrativeHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37097,38 +53829,36 @@ func (c *Client) CreateBulkGroupMembers(ctx context.Context, input []*CreateGrou return &res, nil } -const GetGroupMembersByGroupIDDocument = `query GetGroupMembersByGroupID ($where: GroupMembershipWhereInput) { - groupMemberships(where: $where) { +const GetNarrativeHistoriesDocument = `query GetNarrativeHistories ($where: NarrativeHistoryWhereInput) { + narrativeHistories(where: $where) { edges { node { - groupID - group { - id - name - } + createdAt + createdBy + description + details + historyTime id - role - userID - user { - displayName - email - firstName - id - lastName - } + name + operation + ref + satisfies + tags + updatedAt + updatedBy } } } } ` -func (c *Client) GetGroupMembersByGroupID(ctx context.Context, where *GroupMembershipWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetGroupMembersByGroupID, error) { +func (c *Client) GetNarrativeHistories(ctx context.Context, where *NarrativeHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetNarrativeHistories, error) { vars := map[string]any{ "where": where, } - var res GetGroupMembersByGroupID - if err := c.Client.Post(ctx, "GetGroupMembersByGroupID", GetGroupMembersByGroupIDDocument, &res, vars, interceptors...); err != nil { + var res GetNarrativeHistories + if err := c.Client.Post(ctx, "GetNarrativeHistories", GetNarrativeHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37139,20 +53869,32 @@ func (c *Client) GetGroupMembersByGroupID(ctx context.Context, where *GroupMembe return &res, nil } -const RemoveUserFromGroupDocument = `mutation RemoveUserFromGroup ($deleteGroupMembershipId: ID!) { - deleteGroupMembership(id: $deleteGroupMembershipId) { - deletedID +const GetAllNoteHistoriesDocument = `query GetAllNoteHistories { + noteHistories { + edges { + node { + createdAt + createdBy + historyTime + id + operation + ownerID + ref + tags + text + updatedAt + updatedBy + } + } } } ` -func (c *Client) RemoveUserFromGroup(ctx context.Context, deleteGroupMembershipID string, interceptors ...clientv2.RequestInterceptor) (*RemoveUserFromGroup, error) { - vars := map[string]any{ - "deleteGroupMembershipId": deleteGroupMembershipID, - } +func (c *Client) GetAllNoteHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllNoteHistories, error) { + vars := map[string]any{} - var res RemoveUserFromGroup - if err := c.Client.Post(ctx, "RemoveUserFromGroup", RemoveUserFromGroupDocument, &res, vars, interceptors...); err != nil { + var res GetAllNoteHistories + if err := c.Client.Post(ctx, "GetAllNoteHistories", GetAllNoteHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37163,37 +53905,34 @@ func (c *Client) RemoveUserFromGroup(ctx context.Context, deleteGroupMembershipI return &res, nil } -const UpdateUserRoleInGroupDocument = `mutation UpdateUserRoleInGroup ($updateGroupMemberId: ID!, $input: UpdateGroupMembershipInput!) { - updateGroupMembership(id: $updateGroupMemberId, input: $input) { - groupMembership { - groupID - group { - id - name - } - id - role - userID - user { - displayName - email - firstName +const GetNoteHistoriesDocument = `query GetNoteHistories ($where: NoteHistoryWhereInput) { + noteHistories(where: $where) { + edges { + node { + createdAt + createdBy + historyTime id - lastName + operation + ownerID + ref + tags + text + updatedAt + updatedBy } } } } ` -func (c *Client) UpdateUserRoleInGroup(ctx context.Context, updateGroupMemberID string, input UpdateGroupMembershipInput, interceptors ...clientv2.RequestInterceptor) (*UpdateUserRoleInGroup, error) { +func (c *Client) GetNoteHistories(ctx context.Context, where *NoteHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetNoteHistories, error) { vars := map[string]any{ - "updateGroupMemberId": updateGroupMemberID, - "input": input, + "where": where, } - var res UpdateUserRoleInGroup - if err := c.Client.Post(ctx, "UpdateUserRoleInGroup", UpdateUserRoleInGroupDocument, &res, vars, interceptors...); err != nil { + var res GetNoteHistories + if err := c.Client.Post(ctx, "GetNoteHistories", GetNoteHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37204,32 +53943,40 @@ func (c *Client) UpdateUserRoleInGroup(ctx context.Context, updateGroupMemberID return &res, nil } -const GetAllGroupMembershipHistoriesDocument = `query GetAllGroupMembershipHistories { - groupMembershipHistories { +const GetAllOauthProviderHistoriesDocument = `query GetAllOauthProviderHistories { + oauthProviderHistories { edges { node { + authStyle + authURL + clientID + clientSecret createdAt createdBy - groupID historyTime id + infoURL + name operation + ownerID + redirectURL ref - role + scopes + tags + tokenURL updatedAt updatedBy - userID } } } } ` -func (c *Client) GetAllGroupMembershipHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroupMembershipHistories, error) { +func (c *Client) GetAllOauthProviderHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOauthProviderHistories, error) { vars := map[string]any{} - var res GetAllGroupMembershipHistories - if err := c.Client.Post(ctx, "GetAllGroupMembershipHistories", GetAllGroupMembershipHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllOauthProviderHistories + if err := c.Client.Post(ctx, "GetAllOauthProviderHistories", GetAllOauthProviderHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37240,34 +53987,42 @@ func (c *Client) GetAllGroupMembershipHistories(ctx context.Context, interceptor return &res, nil } -const GetGroupMembershipHistoriesDocument = `query GetGroupMembershipHistories ($where: GroupMembershipHistoryWhereInput) { - groupMembershipHistories(where: $where) { +const GetOauthProviderHistoriesDocument = `query GetOauthProviderHistories ($where: OauthProviderHistoryWhereInput) { + oauthProviderHistories(where: $where) { edges { node { + authStyle + authURL + clientID + clientSecret createdAt createdBy - groupID historyTime id + infoURL + name operation + ownerID + redirectURL ref - role + scopes + tags + tokenURL updatedAt updatedBy - userID } } } } ` -func (c *Client) GetGroupMembershipHistories(ctx context.Context, where *GroupMembershipHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetGroupMembershipHistories, error) { +func (c *Client) GetOauthProviderHistories(ctx context.Context, where *OauthProviderHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOauthProviderHistories, error) { vars := map[string]any{ "where": where, } - var res GetGroupMembershipHistories - if err := c.Client.Post(ctx, "GetGroupMembershipHistories", GetGroupMembershipHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetOauthProviderHistories + if err := c.Client.Post(ctx, "GetOauthProviderHistories", GetOauthProviderHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37278,35 +54033,40 @@ func (c *Client) GetGroupMembershipHistories(ctx context.Context, where *GroupMe return &res, nil } -const GetAllGroupSettingsDocument = `query GetAllGroupSettings { - groupSettings { - edges { - node { +const CreateBulkCSVOhAuthTooTokenDocument = `mutation CreateBulkCSVOhAuthTooToken ($input: Upload!) { + createBulkCSVOhAuthTooToken(input: $input) { + ohAuthTooTokens { + claimsEmail + claimsEmailVerified + claimsGroups + claimsPreferredUsername + claimsUserID + claimsUsername + clientID + connectorData + connectorID + id + lastUsed + nonce + scopes + integration { + id + } + events { id - joinPolicy - syncToGithub - syncToSlack - tags - visibility - group { - id - name - } - createdAt - createdBy - updatedAt - updatedBy } } } } ` -func (c *Client) GetAllGroupSettings(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroupSettings, error) { - vars := map[string]any{} +func (c *Client) CreateBulkCSVOhAuthTooToken(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVOhAuthTooToken, error) { + vars := map[string]any{ + "input": input, + } - var res GetAllGroupSettings - if err := c.Client.Post(ctx, "GetAllGroupSettings", GetAllGroupSettingsDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVOhAuthTooToken + if err := c.Client.Post(ctx, "CreateBulkCSVOhAuthTooToken", CreateBulkCSVOhAuthTooTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37317,33 +54077,40 @@ func (c *Client) GetAllGroupSettings(ctx context.Context, interceptors ...client return &res, nil } -const GetGroupSettingByIDDocument = `query GetGroupSettingByID ($groupSettingId: ID!) { - groupSetting(id: $groupSettingId) { - id - joinPolicy - syncToGithub - syncToSlack - tags - visibility - group { +const CreateBulkOhAuthTooTokenDocument = `mutation CreateBulkOhAuthTooToken ($input: [CreateOhAuthTooTokenInput!]) { + createBulkOhAuthTooToken(input: $input) { + ohAuthTooTokens { + claimsEmail + claimsEmailVerified + claimsGroups + claimsPreferredUsername + claimsUserID + claimsUsername + clientID + connectorData + connectorID id - name + lastUsed + nonce + scopes + integration { + id + } + events { + id + } } - createdAt - createdBy - updatedAt - updatedBy } } ` -func (c *Client) GetGroupSettingByID(ctx context.Context, groupSettingID string, interceptors ...clientv2.RequestInterceptor) (*GetGroupSettingByID, error) { +func (c *Client) CreateBulkOhAuthTooToken(ctx context.Context, input []*CreateOhAuthTooTokenInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkOhAuthTooToken, error) { vars := map[string]any{ - "groupSettingId": groupSettingID, + "input": input, } - var res GetGroupSettingByID - if err := c.Client.Post(ctx, "GetGroupSettingByID", GetGroupSettingByIDDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkOhAuthTooToken + if err := c.Client.Post(ctx, "CreateBulkOhAuthTooToken", CreateBulkOhAuthTooTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37354,37 +54121,40 @@ func (c *Client) GetGroupSettingByID(ctx context.Context, groupSettingID string, return &res, nil } -const GetGroupSettingsDocument = `query GetGroupSettings ($where: GroupSettingWhereInput!) { - groupSettings(where: $where) { - edges { - node { +const CreateOhAuthTooTokenDocument = `mutation CreateOhAuthTooToken ($input: CreateOhAuthTooTokenInput!) { + createOhAuthTooToken(input: $input) { + ohAuthTooToken { + claimsEmail + claimsEmailVerified + claimsGroups + claimsPreferredUsername + claimsUserID + claimsUsername + clientID + connectorData + connectorID + id + lastUsed + nonce + scopes + integration { + id + } + events { id - joinPolicy - syncToGithub - syncToSlack - tags - visibility - group { - id - name - } - createdAt - createdBy - updatedAt - updatedBy } } } } ` -func (c *Client) GetGroupSettings(ctx context.Context, where GroupSettingWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetGroupSettings, error) { +func (c *Client) CreateOhAuthTooToken(ctx context.Context, input CreateOhAuthTooTokenInput, interceptors ...clientv2.RequestInterceptor) (*CreateOhAuthTooToken, error) { vars := map[string]any{ - "where": where, + "input": input, } - var res GetGroupSettings - if err := c.Client.Post(ctx, "GetGroupSettings", GetGroupSettingsDocument, &res, vars, interceptors...); err != nil { + var res CreateOhAuthTooToken + if err := c.Client.Post(ctx, "CreateOhAuthTooToken", CreateOhAuthTooTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37395,36 +54165,20 @@ func (c *Client) GetGroupSettings(ctx context.Context, where GroupSettingWhereIn return &res, nil } -const UpdateGroupSettingDocument = `mutation UpdateGroupSetting ($updateGroupSettingId: ID!, $input: UpdateGroupSettingInput!) { - updateGroupSetting(id: $updateGroupSettingId, input: $input) { - groupSetting { - id - joinPolicy - syncToGithub - syncToSlack - tags - visibility - group { - id - name - } - createdAt - createdBy - updatedAt - updatedBy - } +const DeleteOhAuthTooTokenDocument = `mutation DeleteOhAuthTooToken ($deleteOhAuthTooTokenId: ID!) { + deleteOhAuthTooToken(id: $deleteOhAuthTooTokenId) { + deletedID } } ` -func (c *Client) UpdateGroupSetting(ctx context.Context, updateGroupSettingID string, input UpdateGroupSettingInput, interceptors ...clientv2.RequestInterceptor) (*UpdateGroupSetting, error) { +func (c *Client) DeleteOhAuthTooToken(ctx context.Context, deleteOhAuthTooTokenID string, interceptors ...clientv2.RequestInterceptor) (*DeleteOhAuthTooToken, error) { vars := map[string]any{ - "updateGroupSettingId": updateGroupSettingID, - "input": input, + "deleteOhAuthTooTokenId": deleteOhAuthTooTokenID, } - var res UpdateGroupSetting - if err := c.Client.Post(ctx, "UpdateGroupSetting", UpdateGroupSettingDocument, &res, vars, interceptors...); err != nil { + var res DeleteOhAuthTooToken + if err := c.Client.Post(ctx, "DeleteOhAuthTooToken", DeleteOhAuthTooTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37435,35 +54189,42 @@ func (c *Client) UpdateGroupSetting(ctx context.Context, updateGroupSettingID st return &res, nil } -const GetAllGroupSettingHistoriesDocument = `query GetAllGroupSettingHistories { - groupSettingHistories { +const GetOhAuthTooTokensDocument = `query GetOhAuthTooTokens ($where: OhAuthTooTokenWhereInput) { + ohAuthTooTokens(where: $where) { edges { node { - createdAt - createdBy - groupID - historyTime + claimsEmail + claimsEmailVerified + claimsGroups + claimsPreferredUsername + claimsUserID + claimsUsername + clientID + connectorData + connectorID id - joinPolicy - operation - ref - syncToGithub - syncToSlack - tags - updatedAt - updatedBy - visibility + lastUsed + nonce + scopes + integration { + id + } + events { + id + } } } } } ` -func (c *Client) GetAllGroupSettingHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllGroupSettingHistories, error) { - vars := map[string]any{} +func (c *Client) GetOhAuthTooTokens(ctx context.Context, where *OhAuthTooTokenWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOhAuthTooTokens, error) { + vars := map[string]any{ + "where": where, + } - var res GetAllGroupSettingHistories - if err := c.Client.Post(ctx, "GetAllGroupSettingHistories", GetAllGroupSettingHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetOhAuthTooTokens + if err := c.Client.Post(ctx, "GetOhAuthTooTokens", GetOhAuthTooTokensDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37474,37 +54235,41 @@ func (c *Client) GetAllGroupSettingHistories(ctx context.Context, interceptors . return &res, nil } -const GetGroupSettingHistoriesDocument = `query GetGroupSettingHistories ($where: GroupSettingHistoryWhereInput) { - groupSettingHistories(where: $where) { - edges { - node { - createdAt - createdBy - groupID - historyTime +const UpdateOhAuthTooTokenDocument = `mutation UpdateOhAuthTooToken ($updateOhAuthTooTokenId: ID!, $input: UpdateOhAuthTooTokenInput!) { + updateOhAuthTooToken(id: $updateOhAuthTooTokenId, input: $input) { + ohAuthTooToken { + claimsEmail + claimsEmailVerified + claimsGroups + claimsPreferredUsername + claimsUserID + claimsUsername + clientID + connectorData + connectorID + id + lastUsed + nonce + scopes + integration { + id + } + events { id - joinPolicy - operation - ref - syncToGithub - syncToSlack - tags - updatedAt - updatedBy - visibility } } } } ` -func (c *Client) GetGroupSettingHistories(ctx context.Context, where *GroupSettingHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetGroupSettingHistories, error) { +func (c *Client) UpdateOhAuthTooToken(ctx context.Context, updateOhAuthTooTokenID string, input UpdateOhAuthTooTokenInput, interceptors ...clientv2.RequestInterceptor) (*UpdateOhAuthTooToken, error) { vars := map[string]any{ - "where": where, + "updateOhAuthTooTokenId": updateOhAuthTooTokenID, + "input": input, } - var res GetGroupSettingHistories - if err := c.Client.Post(ctx, "GetGroupSettingHistories", GetGroupSettingHistoriesDocument, &res, vars, interceptors...); err != nil { + var res UpdateOhAuthTooToken + if err := c.Client.Post(ctx, "UpdateOhAuthTooToken", UpdateOhAuthTooTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37515,35 +54280,27 @@ func (c *Client) GetGroupSettingHistories(ctx context.Context, where *GroupSetti return &res, nil } -const CreateBulkCSVHushDocument = `mutation CreateBulkCSVHush ($input: Upload!) { - createBulkCSVHush(input: $input) { - hushes { - description +const CreateBulkCSVOrganizationDocument = `mutation CreateBulkCSVOrganization ($input: Upload!) { + createBulkCSVOrganization(input: $input) { + organizations { id - kind name - secretName - integrations { - id - } - organization { - id - } - events { - id - } + displayName + description + personalOrg + tags } } } ` -func (c *Client) CreateBulkCSVHush(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVHush, error) { +func (c *Client) CreateBulkCSVOrganization(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVOrganization, error) { vars := map[string]any{ "input": input, } - var res CreateBulkCSVHush - if err := c.Client.Post(ctx, "CreateBulkCSVHush", CreateBulkCSVHushDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVOrganization + if err := c.Client.Post(ctx, "CreateBulkCSVOrganization", CreateBulkCSVOrganizationDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37554,35 +54311,89 @@ func (c *Client) CreateBulkCSVHush(ctx context.Context, input graphql.Upload, in return &res, nil } -const CreateBulkHushDocument = `mutation CreateBulkHush ($input: [CreateHushInput!]) { - createBulkHush(input: $input) { - hushes { +const CreateBulkOrganizationDocument = `mutation CreateBulkOrganization ($input: [CreateOrganizationInput!]) { + createBulkOrganization(input: $input) { + organizations { + id + name + displayName description + personalOrg + tags + } + } +} +` + +func (c *Client) CreateBulkOrganization(ctx context.Context, input []*CreateOrganizationInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkOrganization, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkOrganization + if err := c.Client.Post(ctx, "CreateBulkOrganization", CreateBulkOrganizationDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateOrganizationDocument = `mutation CreateOrganization ($input: CreateOrganizationInput!) { + createOrganization(input: $input) { + organization { id - kind name - secretName - integrations { + displayName + description + personalOrg + tags + createdAt + updatedAt + setting { id + createdAt + updatedAt + createdBy + updatedBy + domains + billingContact + billingEmail + billingPhone + billingAddress + taxIdentifier + geoLocation + tags } - organization { + parent { id + name } - events { - id + children { + edges { + node { + id + name + displayName + description + } + } } } } } ` -func (c *Client) CreateBulkHush(ctx context.Context, input []*CreateHushInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkHush, error) { +func (c *Client) CreateOrganization(ctx context.Context, input CreateOrganizationInput, interceptors ...clientv2.RequestInterceptor) (*CreateOrganization, error) { vars := map[string]any{ "input": input, } - var res CreateBulkHush - if err := c.Client.Post(ctx, "CreateBulkHush", CreateBulkHushDocument, &res, vars, interceptors...); err != nil { + var res CreateOrganization + if err := c.Client.Post(ctx, "CreateOrganization", CreateOrganizationDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37593,35 +54404,20 @@ func (c *Client) CreateBulkHush(ctx context.Context, input []*CreateHushInput, i return &res, nil } -const CreateHushDocument = `mutation CreateHush ($input: CreateHushInput!) { - createHush(input: $input) { - hush { - description - id - kind - name - secretName - integrations { - id - } - organization { - id - } - events { - id - } - } +const DeleteOrganizationDocument = `mutation DeleteOrganization ($deleteOrganizationId: ID!) { + deleteOrganization(id: $deleteOrganizationId) { + deletedID } } ` -func (c *Client) CreateHush(ctx context.Context, input CreateHushInput, interceptors ...clientv2.RequestInterceptor) (*CreateHush, error) { +func (c *Client) DeleteOrganization(ctx context.Context, deleteOrganizationID string, interceptors ...clientv2.RequestInterceptor) (*DeleteOrganization, error) { vars := map[string]any{ - "input": input, + "deleteOrganizationId": deleteOrganizationID, } - var res CreateHush - if err := c.Client.Post(ctx, "CreateHush", CreateHushDocument, &res, vars, interceptors...); err != nil { + var res DeleteOrganization + if err := c.Client.Post(ctx, "DeleteOrganization", DeleteOrganizationDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37632,39 +54428,67 @@ func (c *Client) CreateHush(ctx context.Context, input CreateHushInput, intercep return &res, nil } -const GetAllHushesDocument = `query GetAllHushes { - hushes { +const GetAllOrganizationsDocument = `query GetAllOrganizations { + organizations { edges { node { - description id - kind name - secretName - integrations { + displayName + description + personalOrg + tags + parent { id + name } - organization { + children { + edges { + node { + id + name + displayName + description + } + } + } + members { id + role + user { + id + firstName + lastName + } } - events { + setting { id + createdAt + updatedAt + createdBy + updatedBy + domains + billingContact + billingEmail + billingPhone + billingAddress + taxIdentifier + geoLocation + tags } createdAt updatedAt - createdBy - updatedBy } } } } ` -func (c *Client) GetAllHushes(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllHushes, error) { +func (c *Client) GetAllOrganizations(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOrganizations, error) { vars := map[string]any{} - var res GetAllHushes - if err := c.Client.Post(ctx, "GetAllHushes", GetAllHushesDocument, &res, vars, interceptors...); err != nil { + var res GetAllOrganizations + if err := c.Client.Post(ctx, "GetAllOrganizations", GetAllOrganizationsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37675,37 +54499,67 @@ func (c *Client) GetAllHushes(ctx context.Context, interceptors ...clientv2.Requ return &res, nil } -const GetHushByIDDocument = `query GetHushByID ($hushId: ID!) { - hush(id: $hushId) { - description +const GetOrganizationByIDDocument = `query GetOrganizationByID ($organizationId: ID!) { + organization(id: $organizationId) { id - kind name - secretName - integrations { + displayName + description + personalOrg + tags + parent { id + name } - organization { + children { + edges { + node { + id + name + displayName + description + } + } + } + members { id + role + user { + id + firstName + lastName + } } - events { + setting { id + createdAt + updatedAt + createdBy + updatedBy + domains + billingContact + billingEmail + billingPhone + billingAddress + taxIdentifier + geoLocation + tags } createdAt - updatedAt createdBy + updatedAt updatedBy } } ` -func (c *Client) GetHushByID(ctx context.Context, hushID string, interceptors ...clientv2.RequestInterceptor) (*GetHushByID, error) { +func (c *Client) GetOrganizationByID(ctx context.Context, organizationID string, interceptors ...clientv2.RequestInterceptor) (*GetOrganizationByID, error) { vars := map[string]any{ - "hushId": hushID, + "organizationId": organizationID, } - var res GetHushByID - if err := c.Client.Post(ctx, "GetHushByID", GetHushByIDDocument, &res, vars, interceptors...); err != nil { + var res GetOrganizationByID + if err := c.Client.Post(ctx, "GetOrganizationByID", GetOrganizationByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37716,41 +54570,69 @@ func (c *Client) GetHushByID(ctx context.Context, hushID string, interceptors .. return &res, nil } -const GetHushesDocument = `query GetHushes ($where: HushWhereInput) { - hushes(where: $where) { +const GetOrganizationsDocument = `query GetOrganizations ($where: OrganizationWhereInput) { + organizations(where: $where) { edges { node { - description id - kind name - secretName - integrations { + displayName + description + personalOrg + tags + parent { id + name } - organization { + children { + edges { + node { + id + name + displayName + description + } + } + } + members { id + role + user { + id + firstName + lastName + } } - events { + setting { id + createdAt + updatedAt + createdBy + updatedBy + domains + billingContact + billingEmail + billingPhone + billingAddress + taxIdentifier + geoLocation + tags } createdAt updatedAt - createdBy - updatedBy } } } } ` -func (c *Client) GetHushes(ctx context.Context, where *HushWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetHushes, error) { +func (c *Client) GetOrganizations(ctx context.Context, where *OrganizationWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOrganizations, error) { vars := map[string]any{ "where": where, } - var res GetHushes - if err := c.Client.Post(ctx, "GetHushes", GetHushesDocument, &res, vars, interceptors...); err != nil { + var res GetOrganizations + if err := c.Client.Post(ctx, "GetOrganizations", GetOrganizationsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37761,36 +54643,48 @@ func (c *Client) GetHushes(ctx context.Context, where *HushWhereInput, intercept return &res, nil } -const UpdateHushDocument = `mutation UpdateHush ($updateHushId: ID!, $input: UpdateHushInput!) { - updateHush(id: $updateHushId, input: $input) { - hush { - description +const UpdateOrganizationDocument = `mutation UpdateOrganization ($updateOrganizationId: ID!, $input: UpdateOrganizationInput!) { + updateOrganization(id: $updateOrganizationId, input: $input) { + organization { id - kind name - secretName - integrations { - id - } - organization { + displayName + description + personalOrg + tags + members { id + role + userID } - events { + setting { id + createdAt + updatedAt + createdBy + updatedBy + domains + billingContact + billingEmail + billingPhone + billingAddress + taxIdentifier + geoLocation + tags } } } } ` -func (c *Client) UpdateHush(ctx context.Context, updateHushID string, input UpdateHushInput, interceptors ...clientv2.RequestInterceptor) (*UpdateHush, error) { +func (c *Client) UpdateOrganization(ctx context.Context, updateOrganizationID string, input UpdateOrganizationInput, interceptors ...clientv2.RequestInterceptor) (*UpdateOrganization, error) { vars := map[string]any{ - "updateHushId": updateHushID, - "input": input, + "updateOrganizationId": updateOrganizationID, + "input": input, } - var res UpdateHush - if err := c.Client.Post(ctx, "UpdateHush", UpdateHushDocument, &res, vars, interceptors...); err != nil { + var res UpdateOrganization + if err := c.Client.Post(ctx, "UpdateOrganization", UpdateOrganizationDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37801,20 +54695,23 @@ func (c *Client) UpdateHush(ctx context.Context, updateHushID string, input Upda return &res, nil } -const GetAllHushHistoriesDocument = `query GetAllHushHistories { - hushHistories { +const GetAllOrganizationHistoriesDocument = `query GetAllOrganizationHistories { + organizationHistories { edges { node { + avatarRemoteURL createdAt createdBy + dedicatedDb description + displayName historyTime id - kind name operation + personalOrg ref - secretName + tags updatedAt updatedBy } @@ -37823,11 +54720,11 @@ const GetAllHushHistoriesDocument = `query GetAllHushHistories { } ` -func (c *Client) GetAllHushHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllHushHistories, error) { +func (c *Client) GetAllOrganizationHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOrganizationHistories, error) { vars := map[string]any{} - var res GetAllHushHistories - if err := c.Client.Post(ctx, "GetAllHushHistories", GetAllHushHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllOrganizationHistories + if err := c.Client.Post(ctx, "GetAllOrganizationHistories", GetAllOrganizationHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -37838,20 +54735,23 @@ func (c *Client) GetAllHushHistories(ctx context.Context, interceptors ...client return &res, nil } -const GetHushHistoriesDocument = `query GetHushHistories ($where: HushHistoryWhereInput) { - hushHistories(where: $where) { +const GetOrganizationHistoriesDocument = `query GetOrganizationHistories ($where: OrganizationHistoryWhereInput) { + organizationHistories(where: $where) { edges { node { + avatarRemoteURL createdAt createdBy + dedicatedDb description + displayName historyTime id - kind name operation + personalOrg ref - secretName + tags updatedAt updatedBy } @@ -37860,178 +54760,13 @@ const GetHushHistoriesDocument = `query GetHushHistories ($where: HushHistoryWhe } ` -func (c *Client) GetHushHistories(ctx context.Context, where *HushHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetHushHistories, error) { +func (c *Client) GetOrganizationHistories(ctx context.Context, where *OrganizationHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOrganizationHistories, error) { vars := map[string]any{ "where": where, } - var res GetHushHistories - if err := c.Client.Post(ctx, "GetHushHistories", GetHushHistoriesDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const CreateBulkCSVIntegrationDocument = `mutation CreateBulkCSVIntegration ($input: Upload!) { - createBulkCSVIntegration(input: $input) { - integrations { - description - id - kind - name - ownerID - owner { - id - } - secrets { - id - } - oauth2tokens { - id - } - events { - id - } - webhooks { - id - destinationURL - enabled - } - } - } -} -` - -func (c *Client) CreateBulkCSVIntegration(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVIntegration, error) { - vars := map[string]any{ - "input": input, - } - - var res CreateBulkCSVIntegration - if err := c.Client.Post(ctx, "CreateBulkCSVIntegration", CreateBulkCSVIntegrationDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const CreateBulkIntegrationDocument = `mutation CreateBulkIntegration ($input: [CreateIntegrationInput!]) { - createBulkIntegration(input: $input) { - integrations { - description - id - kind - name - ownerID - owner { - id - } - secrets { - id - } - oauth2tokens { - id - } - events { - id - } - webhooks { - id - destinationURL - enabled - } - } - } -} -` - -func (c *Client) CreateBulkIntegration(ctx context.Context, input []*CreateIntegrationInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkIntegration, error) { - vars := map[string]any{ - "input": input, - } - - var res CreateBulkIntegration - if err := c.Client.Post(ctx, "CreateBulkIntegration", CreateBulkIntegrationDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const CreateIntegrationDocument = `mutation CreateIntegration ($input: CreateIntegrationInput!) { - createIntegration(input: $input) { - integration { - description - id - kind - name - ownerID - owner { - id - } - secrets { - id - } - oauth2tokens { - id - } - events { - id - } - webhooks { - id - destinationURL - enabled - } - } - } -} -` - -func (c *Client) CreateIntegration(ctx context.Context, input CreateIntegrationInput, interceptors ...clientv2.RequestInterceptor) (*CreateIntegration, error) { - vars := map[string]any{ - "input": input, - } - - var res CreateIntegration - if err := c.Client.Post(ctx, "CreateIntegration", CreateIntegrationDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const DeleteIntegrationDocument = `mutation DeleteIntegration ($deleteIntegrationId: ID!) { - deleteIntegration(id: $deleteIntegrationId) { - deletedID - } -} -` - -func (c *Client) DeleteIntegration(ctx context.Context, deleteIntegrationID string, interceptors ...clientv2.RequestInterceptor) (*DeleteIntegration, error) { - vars := map[string]any{ - "deleteIntegrationId": deleteIntegrationID, - } - - var res DeleteIntegration - if err := c.Client.Post(ctx, "DeleteIntegration", DeleteIntegrationDocument, &res, vars, interceptors...); err != nil { + var res GetOrganizationHistories + if err := c.Client.Post(ctx, "GetOrganizationHistories", GetOrganizationHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38042,47 +54777,38 @@ func (c *Client) DeleteIntegration(ctx context.Context, deleteIntegrationID stri return &res, nil } -const GetAllIntegrationsDocument = `query GetAllIntegrations { - integrations { +const GetAllOrganizationSettingsDocument = `query GetAllOrganizationSettings { + organizationSettings { edges { node { - description - id - kind - name - ownerID - owner { - id - } - secrets { - id - } - oauth2tokens { - id - } - events { - id - } - webhooks { - id - destinationURL - enabled - } + billingAddress + billingContact + billingEmail + billingPhone createdAt createdBy + domains + geoLocation + id + tags + taxIdentifier updatedAt updatedBy + organization { + id + name + } } } } } ` -func (c *Client) GetAllIntegrations(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllIntegrations, error) { +func (c *Client) GetAllOrganizationSettings(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOrganizationSettings, error) { vars := map[string]any{} - var res GetAllIntegrations - if err := c.Client.Post(ctx, "GetAllIntegrations", GetAllIntegrationsDocument, &res, vars, interceptors...); err != nil { + var res GetAllOrganizationSettings + if err := c.Client.Post(ctx, "GetAllOrganizationSettings", GetAllOrganizationSettingsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38093,45 +54819,36 @@ func (c *Client) GetAllIntegrations(ctx context.Context, interceptors ...clientv return &res, nil } -const GetIntegrationByIDDocument = `query GetIntegrationByID ($integrationId: ID!) { - integration(id: $integrationId) { - description - id - kind - name - ownerID - owner { - id - } - secrets { - id - } - oauth2tokens { - id - } - events { - id - } - webhooks { - id - destinationURL - enabled - } +const GetOrganizationSettingByIDDocument = `query GetOrganizationSettingByID ($organizationSettingId: ID!) { + organizationSetting(id: $organizationSettingId) { + billingAddress + billingContact + billingEmail + billingPhone createdAt createdBy + domains + geoLocation + id + tags + taxIdentifier updatedAt updatedBy + organization { + id + name + } } } ` -func (c *Client) GetIntegrationByID(ctx context.Context, integrationID string, interceptors ...clientv2.RequestInterceptor) (*GetIntegrationByID, error) { +func (c *Client) GetOrganizationSettingByID(ctx context.Context, organizationSettingID string, interceptors ...clientv2.RequestInterceptor) (*GetOrganizationSettingByID, error) { vars := map[string]any{ - "integrationId": integrationID, + "organizationSettingId": organizationSettingID, } - var res GetIntegrationByID - if err := c.Client.Post(ctx, "GetIntegrationByID", GetIntegrationByIDDocument, &res, vars, interceptors...); err != nil { + var res GetOrganizationSettingByID + if err := c.Client.Post(ctx, "GetOrganizationSettingByID", GetOrganizationSettingByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38142,49 +54859,40 @@ func (c *Client) GetIntegrationByID(ctx context.Context, integrationID string, i return &res, nil } -const GetIntegrationsDocument = `query GetIntegrations ($where: IntegrationWhereInput) { - integrations(where: $where) { +const GetOrganizationSettingsDocument = `query GetOrganizationSettings ($where: OrganizationSettingWhereInput!) { + organizationSettings(where: $where) { edges { node { - description - id - kind - name - ownerID - owner { - id - } - secrets { - id - } - oauth2tokens { - id - } - events { - id - } - webhooks { - id - destinationURL - enabled - } + billingAddress + billingContact + billingEmail + billingPhone createdAt createdBy + domains + geoLocation + id + tags + taxIdentifier updatedAt updatedBy + organization { + id + name + } } } } } ` -func (c *Client) GetIntegrations(ctx context.Context, where *IntegrationWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetIntegrations, error) { +func (c *Client) GetOrganizationSettings(ctx context.Context, where OrganizationSettingWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOrganizationSettings, error) { vars := map[string]any{ "where": where, } - var res GetIntegrations - if err := c.Client.Post(ctx, "GetIntegrations", GetIntegrationsDocument, &res, vars, interceptors...); err != nil { + var res GetOrganizationSettings + if err := c.Client.Post(ctx, "GetOrganizationSettings", GetOrganizationSettingsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38195,44 +54903,39 @@ func (c *Client) GetIntegrations(ctx context.Context, where *IntegrationWhereInp return &res, nil } -const UpdateIntegrationDocument = `mutation UpdateIntegration ($updateIntegrationId: ID!, $input: UpdateIntegrationInput!) { - updateIntegration(id: $updateIntegrationId, input: $input) { - integration { - description +const UpdateOrganizationSettingDocument = `mutation UpdateOrganizationSetting ($updateOrganizationSettingId: ID!, $input: UpdateOrganizationSettingInput!) { + updateOrganizationSetting(id: $updateOrganizationSettingId, input: $input) { + organizationSetting { + billingAddress + billingContact + billingEmail + billingPhone + createdAt + createdBy + domains + geoLocation id - kind - name - ownerID - owner { - id - } - secrets { - id - } - oauth2tokens { - id - } - events { - id - } - webhooks { + tags + taxIdentifier + updatedAt + updatedBy + organization { id - destinationURL - enabled + name } } } } ` -func (c *Client) UpdateIntegration(ctx context.Context, updateIntegrationID string, input UpdateIntegrationInput, interceptors ...clientv2.RequestInterceptor) (*UpdateIntegration, error) { +func (c *Client) UpdateOrganizationSetting(ctx context.Context, updateOrganizationSettingID string, input UpdateOrganizationSettingInput, interceptors ...clientv2.RequestInterceptor) (*UpdateOrganizationSetting, error) { vars := map[string]any{ - "updateIntegrationId": updateIntegrationID, - "input": input, + "updateOrganizationSettingId": updateOrganizationSettingID, + "input": input, } - var res UpdateIntegration - if err := c.Client.Post(ctx, "UpdateIntegration", UpdateIntegrationDocument, &res, vars, interceptors...); err != nil { + var res UpdateOrganizationSetting + if err := c.Client.Post(ctx, "UpdateOrganizationSetting", UpdateOrganizationSettingDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38243,21 +54946,25 @@ func (c *Client) UpdateIntegration(ctx context.Context, updateIntegrationID stri return &res, nil } -const GetAllIntegrationHistoriesDocument = `query GetAllIntegrationHistories { - integrationHistories { +const GetAllOrganizationSettingHistoriesDocument = `query GetAllOrganizationSettingHistories { + organizationSettingHistories { edges { node { + billingAddress + billingContact + billingEmail + billingPhone createdAt createdBy - description + domains + geoLocation historyTime id - kind - name operation - ownerID + organizationID ref tags + taxIdentifier updatedAt updatedBy } @@ -38266,11 +54973,11 @@ const GetAllIntegrationHistoriesDocument = `query GetAllIntegrationHistories { } ` -func (c *Client) GetAllIntegrationHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllIntegrationHistories, error) { +func (c *Client) GetAllOrganizationSettingHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOrganizationSettingHistories, error) { vars := map[string]any{} - var res GetAllIntegrationHistories - if err := c.Client.Post(ctx, "GetAllIntegrationHistories", GetAllIntegrationHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllOrganizationSettingHistories + if err := c.Client.Post(ctx, "GetAllOrganizationSettingHistories", GetAllOrganizationSettingHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38281,21 +54988,25 @@ func (c *Client) GetAllIntegrationHistories(ctx context.Context, interceptors .. return &res, nil } -const GetIntegrationHistoriesDocument = `query GetIntegrationHistories ($where: IntegrationHistoryWhereInput) { - integrationHistories(where: $where) { +const GetOrganizationSettingHistoriesDocument = `query GetOrganizationSettingHistories ($where: OrganizationSettingHistoryWhereInput) { + organizationSettingHistories(where: $where) { edges { node { + billingAddress + billingContact + billingEmail + billingPhone createdAt createdBy - description + domains + geoLocation historyTime id - kind - name operation - ownerID + organizationID ref tags + taxIdentifier updatedAt updatedBy } @@ -38304,13 +55015,13 @@ const GetIntegrationHistoriesDocument = `query GetIntegrationHistories ($where: } ` -func (c *Client) GetIntegrationHistories(ctx context.Context, where *IntegrationHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetIntegrationHistories, error) { +func (c *Client) GetOrganizationSettingHistories(ctx context.Context, where *OrganizationSettingHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOrganizationSettingHistories, error) { vars := map[string]any{ "where": where, } - var res GetIntegrationHistories - if err := c.Client.Post(ctx, "GetIntegrationHistories", GetIntegrationHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetOrganizationSettingHistories + if err := c.Client.Post(ctx, "GetOrganizationSettingHistories", GetOrganizationSettingHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38321,28 +55032,25 @@ func (c *Client) GetIntegrationHistories(ctx context.Context, where *Integration return &res, nil } -const CreateBulkCSVInviteDocument = `mutation CreateBulkCSVInvite ($input: Upload!) { - createBulkCSVInvite(input: $input) { - invites { - expires +const AddUserToOrgWithRoleDocument = `mutation AddUserToOrgWithRole ($input: CreateOrgMembershipInput!) { + createOrgMembership(input: $input) { + orgMembership { id - recipient - requestorID role - sendAttempts - status + userID + organizationID } } } ` -func (c *Client) CreateBulkCSVInvite(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVInvite, error) { +func (c *Client) AddUserToOrgWithRole(ctx context.Context, input CreateOrgMembershipInput, interceptors ...clientv2.RequestInterceptor) (*AddUserToOrgWithRole, error) { vars := map[string]any{ "input": input, } - var res CreateBulkCSVInvite - if err := c.Client.Post(ctx, "CreateBulkCSVInvite", CreateBulkCSVInviteDocument, &res, vars, interceptors...); err != nil { + var res AddUserToOrgWithRole + if err := c.Client.Post(ctx, "AddUserToOrgWithRole", AddUserToOrgWithRoleDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38353,28 +55061,25 @@ func (c *Client) CreateBulkCSVInvite(ctx context.Context, input graphql.Upload, return &res, nil } -const CreateBulkInviteDocument = `mutation CreateBulkInvite ($input: [CreateInviteInput!]) { - createBulkInvite(input: $input) { - invites { - expires +const CreateBulkCSVOrgMembersDocument = `mutation CreateBulkCSVOrgMembers ($input: Upload!) { + createBulkCSVOrgMembership(input: $input) { + orgMemberships { id - recipient - requestorID + organizationID role - sendAttempts - status + userID } } } ` -func (c *Client) CreateBulkInvite(ctx context.Context, input []*CreateInviteInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkInvite, error) { +func (c *Client) CreateBulkCSVOrgMembers(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVOrgMembers, error) { vars := map[string]any{ "input": input, } - var res CreateBulkInvite - if err := c.Client.Post(ctx, "CreateBulkInvite", CreateBulkInviteDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVOrgMembers + if err := c.Client.Post(ctx, "CreateBulkCSVOrgMembers", CreateBulkCSVOrgMembersDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38385,94 +55090,25 @@ func (c *Client) CreateBulkInvite(ctx context.Context, input []*CreateInviteInpu return &res, nil } -const CreateInviteDocument = `mutation CreateInvite ($input: CreateInviteInput!) { - createInvite(input: $input) { - invite { - expires +const CreateBulkOrgMembersDocument = `mutation CreateBulkOrgMembers ($input: [CreateOrgMembershipInput!]) { + createBulkOrgMembership(input: $input) { + orgMemberships { id - recipient - requestorID + organizationID role - sendAttempts - status - owner { - id - } + userID } } } ` -func (c *Client) CreateInvite(ctx context.Context, input CreateInviteInput, interceptors ...clientv2.RequestInterceptor) (*CreateInvite, error) { +func (c *Client) CreateBulkOrgMembers(ctx context.Context, input []*CreateOrgMembershipInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkOrgMembers, error) { vars := map[string]any{ "input": input, } - var res CreateInvite - if err := c.Client.Post(ctx, "CreateInvite", CreateInviteDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const DeleteInviteDocument = `mutation DeleteInvite ($deleteInviteId: ID!) { - deleteInvite(id: $deleteInviteId) { - deletedID - } -} -` - -func (c *Client) DeleteInvite(ctx context.Context, deleteInviteID string, interceptors ...clientv2.RequestInterceptor) (*DeleteInvite, error) { - vars := map[string]any{ - "deleteInviteId": deleteInviteID, - } - - var res DeleteInvite - if err := c.Client.Post(ctx, "DeleteInvite", DeleteInviteDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const GetInviteByIDDocument = `query GetInviteByID ($inviteId: ID!) { - invite(id: $inviteId) { - expires - id - recipient - requestorID - role - sendAttempts - status - owner { - displayName - id - name - } - createdAt - createdBy - updatedAt - updatedBy - } -} -` - -func (c *Client) GetInviteByID(ctx context.Context, inviteID string, interceptors ...clientv2.RequestInterceptor) (*GetInviteByID, error) { - vars := map[string]any{ - "inviteId": inviteID, - } - - var res GetInviteByID - if err := c.Client.Post(ctx, "GetInviteByID", GetInviteByIDDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkOrgMembers + if err := c.Client.Post(ctx, "CreateBulkOrgMembers", CreateBulkOrgMembersDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38483,48 +55119,20 @@ func (c *Client) GetInviteByID(ctx context.Context, inviteID string, interceptor return &res, nil } -const GetAllInvitesDocument = `query GetAllInvites { - invites { +const GetOrgMembersByOrgIDDocument = `query GetOrgMembersByOrgID ($where: OrgMembershipWhereInput) { + orgMemberships(where: $where) { edges { node { id - recipient + organizationID + userID role - status - } - } - } -} -` - -func (c *Client) GetAllInvites(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllInvites, error) { - vars := map[string]any{} - - var res GetAllInvites - if err := c.Client.Post(ctx, "GetAllInvites", GetAllInvitesDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - -const InvitesByOrgIDDocument = `query InvitesByOrgID ($where: InviteWhereInput) { - invites(where: $where) { - edges { - node { - owner { + user { + firstName + lastName id - invites { - recipient - requestorID - role - sendAttempts - status - } + displayName + email } } } @@ -38532,13 +55140,13 @@ const InvitesByOrgIDDocument = `query InvitesByOrgID ($where: InviteWhereInput) } ` -func (c *Client) InvitesByOrgID(ctx context.Context, where *InviteWhereInput, interceptors ...clientv2.RequestInterceptor) (*InvitesByOrgID, error) { +func (c *Client) GetOrgMembersByOrgID(ctx context.Context, where *OrgMembershipWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOrgMembersByOrgID, error) { vars := map[string]any{ "where": where, } - var res InvitesByOrgID - if err := c.Client.Post(ctx, "InvitesByOrgID", InvitesByOrgIDDocument, &res, vars, interceptors...); err != nil { + var res GetOrgMembersByOrgID + if err := c.Client.Post(ctx, "GetOrgMembersByOrgID", GetOrgMembersByOrgIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38549,32 +55157,20 @@ func (c *Client) InvitesByOrgID(ctx context.Context, where *InviteWhereInput, in return &res, nil } -const GetAllNoteHistoriesDocument = `query GetAllNoteHistories { - noteHistories { - edges { - node { - createdAt - createdBy - historyTime - id - operation - ownerID - ref - tags - text - updatedAt - updatedBy - } - } +const RemoveUserFromOrgDocument = `mutation RemoveUserFromOrg ($deleteOrgMembershipId: ID!) { + deleteOrgMembership(id: $deleteOrgMembershipId) { + deletedID } } ` -func (c *Client) GetAllNoteHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllNoteHistories, error) { - vars := map[string]any{} +func (c *Client) RemoveUserFromOrg(ctx context.Context, deleteOrgMembershipID string, interceptors ...clientv2.RequestInterceptor) (*RemoveUserFromOrg, error) { + vars := map[string]any{ + "deleteOrgMembershipId": deleteOrgMembershipID, + } - var res GetAllNoteHistories - if err := c.Client.Post(ctx, "GetAllNoteHistories", GetAllNoteHistoriesDocument, &res, vars, interceptors...); err != nil { + var res RemoveUserFromOrg + if err := c.Client.Post(ctx, "RemoveUserFromOrg", RemoveUserFromOrgDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38585,34 +55181,26 @@ func (c *Client) GetAllNoteHistories(ctx context.Context, interceptors ...client return &res, nil } -const GetNoteHistoriesDocument = `query GetNoteHistories ($where: NoteHistoryWhereInput) { - noteHistories(where: $where) { - edges { - node { - createdAt - createdBy - historyTime - id - operation - ownerID - ref - tags - text - updatedAt - updatedBy - } +const UpdateUserRoleInOrgDocument = `mutation UpdateUserRoleInOrg ($updateOrgMemberId: ID!, $input: UpdateOrgMembershipInput!) { + updateOrgMembership(id: $updateOrgMemberId, input: $input) { + orgMembership { + id + role + userID + organizationID } } } ` -func (c *Client) GetNoteHistories(ctx context.Context, where *NoteHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetNoteHistories, error) { +func (c *Client) UpdateUserRoleInOrg(ctx context.Context, updateOrgMemberID string, input UpdateOrgMembershipInput, interceptors ...clientv2.RequestInterceptor) (*UpdateUserRoleInOrg, error) { vars := map[string]any{ - "where": where, + "updateOrgMemberId": updateOrgMemberID, + "input": input, } - var res GetNoteHistories - if err := c.Client.Post(ctx, "GetNoteHistories", GetNoteHistoriesDocument, &res, vars, interceptors...); err != nil { + var res UpdateUserRoleInOrg + if err := c.Client.Post(ctx, "UpdateUserRoleInOrg", UpdateUserRoleInOrgDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38623,40 +55211,32 @@ func (c *Client) GetNoteHistories(ctx context.Context, where *NoteHistoryWhereIn return &res, nil } -const GetAllOauthProviderHistoriesDocument = `query GetAllOauthProviderHistories { - oauthProviderHistories { +const GetAllOrgMembershipHistoriesDocument = `query GetAllOrgMembershipHistories { + orgMembershipHistories { edges { node { - authStyle - authURL - clientID - clientSecret createdAt createdBy historyTime id - infoURL - name operation - ownerID - redirectURL + organizationID ref - scopes - tags - tokenURL + role updatedAt updatedBy + userID } } } } ` -func (c *Client) GetAllOauthProviderHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOauthProviderHistories, error) { +func (c *Client) GetAllOrgMembershipHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOrgMembershipHistories, error) { vars := map[string]any{} - var res GetAllOauthProviderHistories - if err := c.Client.Post(ctx, "GetAllOauthProviderHistories", GetAllOauthProviderHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllOrgMembershipHistories + if err := c.Client.Post(ctx, "GetAllOrgMembershipHistories", GetAllOrgMembershipHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38667,42 +55247,34 @@ func (c *Client) GetAllOauthProviderHistories(ctx context.Context, interceptors return &res, nil } -const GetOauthProviderHistoriesDocument = `query GetOauthProviderHistories ($where: OauthProviderHistoryWhereInput) { - oauthProviderHistories(where: $where) { +const GetOrgMembershipHistoriesDocument = `query GetOrgMembershipHistories ($where: OrgMembershipHistoryWhereInput) { + orgMembershipHistories(where: $where) { edges { node { - authStyle - authURL - clientID - clientSecret createdAt createdBy historyTime id - infoURL - name operation - ownerID - redirectURL + organizationID ref - scopes - tags - tokenURL + role updatedAt updatedBy + userID } } } } ` -func (c *Client) GetOauthProviderHistories(ctx context.Context, where *OauthProviderHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOauthProviderHistories, error) { +func (c *Client) GetOrgMembershipHistories(ctx context.Context, where *OrgMembershipHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOrgMembershipHistories, error) { vars := map[string]any{ "where": where, } - var res GetOauthProviderHistories - if err := c.Client.Post(ctx, "GetOauthProviderHistories", GetOauthProviderHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetOrgMembershipHistories + if err := c.Client.Post(ctx, "GetOrgMembershipHistories", GetOrgMembershipHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38713,40 +55285,34 @@ func (c *Client) GetOauthProviderHistories(ctx context.Context, where *OauthProv return &res, nil } -const CreateBulkCSVOhAuthTooTokenDocument = `mutation CreateBulkCSVOhAuthTooToken ($input: Upload!) { - createBulkCSVOhAuthTooToken(input: $input) { - ohAuthTooTokens { - claimsEmail - claimsEmailVerified - claimsGroups - claimsPreferredUsername - claimsUserID - claimsUsername - clientID - connectorData - connectorID +const CreateBulkCSVPersonalAccessTokenDocument = `mutation CreateBulkCSVPersonalAccessToken ($input: Upload!) { + createBulkCSVPersonalAccessToken(input: $input) { + personalAccessTokens { + description + expiresAt id - lastUsed - nonce + lastUsedAt + name scopes - integration { - id - } - events { + token + updatedAt + updatedBy + organizations { id + name } } } } ` -func (c *Client) CreateBulkCSVOhAuthTooToken(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVOhAuthTooToken, error) { +func (c *Client) CreateBulkCSVPersonalAccessToken(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVPersonalAccessToken, error) { vars := map[string]any{ "input": input, } - var res CreateBulkCSVOhAuthTooToken - if err := c.Client.Post(ctx, "CreateBulkCSVOhAuthTooToken", CreateBulkCSVOhAuthTooTokenDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVPersonalAccessToken + if err := c.Client.Post(ctx, "CreateBulkCSVPersonalAccessToken", CreateBulkCSVPersonalAccessTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38757,40 +55323,34 @@ func (c *Client) CreateBulkCSVOhAuthTooToken(ctx context.Context, input graphql. return &res, nil } -const CreateBulkOhAuthTooTokenDocument = `mutation CreateBulkOhAuthTooToken ($input: [CreateOhAuthTooTokenInput!]) { - createBulkOhAuthTooToken(input: $input) { - ohAuthTooTokens { - claimsEmail - claimsEmailVerified - claimsGroups - claimsPreferredUsername - claimsUserID - claimsUsername - clientID - connectorData - connectorID +const CreateBulkPersonalAccessTokenDocument = `mutation CreateBulkPersonalAccessToken ($input: [CreatePersonalAccessTokenInput!]) { + createBulkPersonalAccessToken(input: $input) { + personalAccessTokens { + description + expiresAt id - lastUsed - nonce + lastUsedAt + name scopes - integration { - id - } - events { + token + updatedAt + updatedBy + organizations { id + name } } } } ` -func (c *Client) CreateBulkOhAuthTooToken(ctx context.Context, input []*CreateOhAuthTooTokenInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkOhAuthTooToken, error) { +func (c *Client) CreateBulkPersonalAccessToken(ctx context.Context, input []*CreatePersonalAccessTokenInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkPersonalAccessToken, error) { vars := map[string]any{ "input": input, } - - var res CreateBulkOhAuthTooToken - if err := c.Client.Post(ctx, "CreateBulkOhAuthTooToken", CreateBulkOhAuthTooTokenDocument, &res, vars, interceptors...); err != nil { + + var res CreateBulkPersonalAccessToken + if err := c.Client.Post(ctx, "CreateBulkPersonalAccessToken", CreateBulkPersonalAccessTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38801,26 +55361,23 @@ func (c *Client) CreateBulkOhAuthTooToken(ctx context.Context, input []*CreateOh return &res, nil } -const CreateOhAuthTooTokenDocument = `mutation CreateOhAuthTooToken ($input: CreateOhAuthTooTokenInput!) { - createOhAuthTooToken(input: $input) { - ohAuthTooToken { - claimsEmail - claimsEmailVerified - claimsGroups - claimsPreferredUsername - claimsUserID - claimsUsername - clientID - connectorData - connectorID +const CreatePersonalAccessTokenDocument = `mutation CreatePersonalAccessToken ($input: CreatePersonalAccessTokenInput!) { + createPersonalAccessToken(input: $input) { + personalAccessToken { + description + expiresAt id - lastUsed - nonce + lastUsedAt + name scopes - integration { + token + updatedAt + updatedBy + organizations { id + name } - events { + owner { id } } @@ -38828,13 +55385,13 @@ const CreateOhAuthTooTokenDocument = `mutation CreateOhAuthTooToken ($input: Cre } ` -func (c *Client) CreateOhAuthTooToken(ctx context.Context, input CreateOhAuthTooTokenInput, interceptors ...clientv2.RequestInterceptor) (*CreateOhAuthTooToken, error) { +func (c *Client) CreatePersonalAccessToken(ctx context.Context, input CreatePersonalAccessTokenInput, interceptors ...clientv2.RequestInterceptor) (*CreatePersonalAccessToken, error) { vars := map[string]any{ "input": input, } - var res CreateOhAuthTooToken - if err := c.Client.Post(ctx, "CreateOhAuthTooToken", CreateOhAuthTooTokenDocument, &res, vars, interceptors...); err != nil { + var res CreatePersonalAccessToken + if err := c.Client.Post(ctx, "CreatePersonalAccessToken", CreatePersonalAccessTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38845,20 +55402,20 @@ func (c *Client) CreateOhAuthTooToken(ctx context.Context, input CreateOhAuthToo return &res, nil } -const DeleteOhAuthTooTokenDocument = `mutation DeleteOhAuthTooToken ($deleteOhAuthTooTokenId: ID!) { - deleteOhAuthTooToken(id: $deleteOhAuthTooTokenId) { +const DeletePersonalAccessTokenDocument = `mutation DeletePersonalAccessToken ($deletePersonalAccessTokenId: ID!) { + deletePersonalAccessToken(id: $deletePersonalAccessTokenId) { deletedID } } ` -func (c *Client) DeleteOhAuthTooToken(ctx context.Context, deleteOhAuthTooTokenID string, interceptors ...clientv2.RequestInterceptor) (*DeleteOhAuthTooToken, error) { +func (c *Client) DeletePersonalAccessToken(ctx context.Context, deletePersonalAccessTokenID string, interceptors ...clientv2.RequestInterceptor) (*DeletePersonalAccessToken, error) { vars := map[string]any{ - "deleteOhAuthTooTokenId": deleteOhAuthTooTokenID, + "deletePersonalAccessTokenId": deletePersonalAccessTokenID, } - var res DeleteOhAuthTooToken - if err := c.Client.Post(ctx, "DeleteOhAuthTooToken", DeleteOhAuthTooTokenDocument, &res, vars, interceptors...); err != nil { + var res DeletePersonalAccessToken + if err := c.Client.Post(ctx, "DeletePersonalAccessToken", DeletePersonalAccessTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38869,28 +55426,22 @@ func (c *Client) DeleteOhAuthTooToken(ctx context.Context, deleteOhAuthTooTokenI return &res, nil } -const GetOhAuthTooTokensDocument = `query GetOhAuthTooTokens ($where: OhAuthTooTokenWhereInput) { - ohAuthTooTokens(where: $where) { +const GetAllPersonalAccessTokensDocument = `query GetAllPersonalAccessTokens { + personalAccessTokens { edges { node { - claimsEmail - claimsEmailVerified - claimsGroups - claimsPreferredUsername - claimsUserID - claimsUsername - clientID - connectorData - connectorID + description + expiresAt id - lastUsed - nonce + lastUsedAt + name scopes - integration { - id - } - events { + token + updatedAt + updatedBy + organizations { id + name } } } @@ -38898,13 +55449,47 @@ const GetOhAuthTooTokensDocument = `query GetOhAuthTooTokens ($where: OhAuthTooT } ` -func (c *Client) GetOhAuthTooTokens(ctx context.Context, where *OhAuthTooTokenWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOhAuthTooTokens, error) { +func (c *Client) GetAllPersonalAccessTokens(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllPersonalAccessTokens, error) { + vars := map[string]any{} + + var res GetAllPersonalAccessTokens + if err := c.Client.Post(ctx, "GetAllPersonalAccessTokens", GetAllPersonalAccessTokensDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetPersonalAccessTokenByIDDocument = `query GetPersonalAccessTokenByID ($personalAccessTokenId: ID!) { + personalAccessToken(id: $personalAccessTokenId) { + description + expiresAt + id + lastUsedAt + name + scopes + token + updatedAt + updatedBy + organizations { + id + name + } + } +} +` + +func (c *Client) GetPersonalAccessTokenByID(ctx context.Context, personalAccessTokenID string, interceptors ...clientv2.RequestInterceptor) (*GetPersonalAccessTokenByID, error) { vars := map[string]any{ - "where": where, + "personalAccessTokenId": personalAccessTokenID, } - var res GetOhAuthTooTokens - if err := c.Client.Post(ctx, "GetOhAuthTooTokens", GetOhAuthTooTokensDocument, &res, vars, interceptors...); err != nil { + var res GetPersonalAccessTokenByID + if err := c.Client.Post(ctx, "GetPersonalAccessTokenByID", GetPersonalAccessTokenByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38915,26 +55500,23 @@ func (c *Client) GetOhAuthTooTokens(ctx context.Context, where *OhAuthTooTokenWh return &res, nil } -const UpdateOhAuthTooTokenDocument = `mutation UpdateOhAuthTooToken ($updateOhAuthTooTokenId: ID!, $input: UpdateOhAuthTooTokenInput!) { - updateOhAuthTooToken(id: $updateOhAuthTooTokenId, input: $input) { - ohAuthTooToken { - claimsEmail - claimsEmailVerified - claimsGroups - claimsPreferredUsername - claimsUserID - claimsUsername - clientID - connectorData - connectorID +const UpdatePersonalAccessTokenDocument = `mutation UpdatePersonalAccessToken ($updatePersonalAccessTokenId: ID!, $input: UpdatePersonalAccessTokenInput!) { + updatePersonalAccessToken(id: $updatePersonalAccessTokenId, input: $input) { + personalAccessToken { + description + expiresAt id - lastUsed - nonce + lastUsedAt + name scopes - integration { + token + updatedAt + updatedBy + organizations { id + name } - events { + owner { id } } @@ -38942,14 +55524,14 @@ const UpdateOhAuthTooTokenDocument = `mutation UpdateOhAuthTooToken ($updateOhAu } ` -func (c *Client) UpdateOhAuthTooToken(ctx context.Context, updateOhAuthTooTokenID string, input UpdateOhAuthTooTokenInput, interceptors ...clientv2.RequestInterceptor) (*UpdateOhAuthTooToken, error) { +func (c *Client) UpdatePersonalAccessToken(ctx context.Context, updatePersonalAccessTokenID string, input UpdatePersonalAccessTokenInput, interceptors ...clientv2.RequestInterceptor) (*UpdatePersonalAccessToken, error) { vars := map[string]any{ - "updateOhAuthTooTokenId": updateOhAuthTooTokenID, - "input": input, + "updatePersonalAccessTokenId": updatePersonalAccessTokenID, + "input": input, } - var res UpdateOhAuthTooToken - if err := c.Client.Post(ctx, "UpdateOhAuthTooToken", UpdateOhAuthTooTokenDocument, &res, vars, interceptors...); err != nil { + var res UpdatePersonalAccessToken + if err := c.Client.Post(ctx, "UpdatePersonalAccessToken", UpdatePersonalAccessTokenDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38960,27 +55542,36 @@ func (c *Client) UpdateOhAuthTooToken(ctx context.Context, updateOhAuthTooTokenI return &res, nil } -const CreateBulkCSVOrganizationDocument = `mutation CreateBulkCSVOrganization ($input: Upload!) { - createBulkCSVOrganization(input: $input) { - organizations { +const CreateBulkCSVProcedureDocument = `mutation CreateBulkCSVProcedure ($input: Upload!) { + createBulkCSVProcedure(input: $input) { + procedures { + background + createdAt + createdBy + description + details id name - displayName - description - personalOrg + procedureType + purposeAndScope + satisfies + status tags + updatedAt + updatedBy + version } } } ` -func (c *Client) CreateBulkCSVOrganization(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVOrganization, error) { +func (c *Client) CreateBulkCSVProcedure(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVProcedure, error) { vars := map[string]any{ "input": input, } - var res CreateBulkCSVOrganization - if err := c.Client.Post(ctx, "CreateBulkCSVOrganization", CreateBulkCSVOrganizationDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVProcedure + if err := c.Client.Post(ctx, "CreateBulkCSVProcedure", CreateBulkCSVProcedureDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -38991,27 +55582,36 @@ func (c *Client) CreateBulkCSVOrganization(ctx context.Context, input graphql.Up return &res, nil } -const CreateBulkOrganizationDocument = `mutation CreateBulkOrganization ($input: [CreateOrganizationInput!]) { - createBulkOrganization(input: $input) { - organizations { +const CreateBulkProcedureDocument = `mutation CreateBulkProcedure ($input: [CreateProcedureInput!]) { + createBulkProcedure(input: $input) { + procedures { + background + createdAt + createdBy + description + details id name - displayName - description - personalOrg + procedureType + purposeAndScope + satisfies + status tags + updatedAt + updatedBy + version } } } ` -func (c *Client) CreateBulkOrganization(ctx context.Context, input []*CreateOrganizationInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkOrganization, error) { +func (c *Client) CreateBulkProcedure(ctx context.Context, input []*CreateProcedureInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkProcedure, error) { vars := map[string]any{ "input": input, } - var res CreateBulkOrganization - if err := c.Client.Post(ctx, "CreateBulkOrganization", CreateBulkOrganizationDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkProcedure + if err := c.Client.Post(ctx, "CreateBulkProcedure", CreateBulkProcedureDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39022,58 +55622,36 @@ func (c *Client) CreateBulkOrganization(ctx context.Context, input []*CreateOrga return &res, nil } -const CreateOrganizationDocument = `mutation CreateOrganization ($input: CreateOrganizationInput!) { - createOrganization(input: $input) { - organization { +const CreateProcedureDocument = `mutation CreateProcedure ($input: CreateProcedureInput!) { + createProcedure(input: $input) { + procedure { + background + createdAt + createdBy + description + details id name - displayName - description - personalOrg + procedureType + purposeAndScope + satisfies + status tags - createdAt updatedAt - setting { - id - createdAt - updatedAt - createdBy - updatedBy - domains - billingContact - billingEmail - billingPhone - billingAddress - taxIdentifier - geoLocation - tags - } - parent { - id - name - } - children { - edges { - node { - id - name - displayName - description - } - } - } + updatedBy + version } } } ` -func (c *Client) CreateOrganization(ctx context.Context, input CreateOrganizationInput, interceptors ...clientv2.RequestInterceptor) (*CreateOrganization, error) { +func (c *Client) CreateProcedure(ctx context.Context, input CreateProcedureInput, interceptors ...clientv2.RequestInterceptor) (*CreateProcedure, error) { vars := map[string]any{ "input": input, } - var res CreateOrganization - if err := c.Client.Post(ctx, "CreateOrganization", CreateOrganizationDocument, &res, vars, interceptors...); err != nil { + var res CreateProcedure + if err := c.Client.Post(ctx, "CreateProcedure", CreateProcedureDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39084,20 +55662,20 @@ func (c *Client) CreateOrganization(ctx context.Context, input CreateOrganizatio return &res, nil } -const DeleteOrganizationDocument = `mutation DeleteOrganization ($deleteOrganizationId: ID!) { - deleteOrganization(id: $deleteOrganizationId) { +const DeleteProcedureDocument = `mutation DeleteProcedure ($deleteProcedureId: ID!) { + deleteProcedure(id: $deleteProcedureId) { deletedID } } ` -func (c *Client) DeleteOrganization(ctx context.Context, deleteOrganizationID string, interceptors ...clientv2.RequestInterceptor) (*DeleteOrganization, error) { +func (c *Client) DeleteProcedure(ctx context.Context, deleteProcedureID string, interceptors ...clientv2.RequestInterceptor) (*DeleteProcedure, error) { vars := map[string]any{ - "deleteOrganizationId": deleteOrganizationID, + "deleteProcedureId": deleteProcedureID, } - var res DeleteOrganization - if err := c.Client.Post(ctx, "DeleteOrganization", DeleteOrganizationDocument, &res, vars, interceptors...); err != nil { + var res DeleteProcedure + if err := c.Client.Post(ctx, "DeleteProcedure", DeleteProcedureDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39108,67 +55686,36 @@ func (c *Client) DeleteOrganization(ctx context.Context, deleteOrganizationID st return &res, nil } -const GetAllOrganizationsDocument = `query GetAllOrganizations { - organizations { +const GetAllProceduresDocument = `query GetAllProcedures { + procedures { edges { node { + background + createdAt + createdBy + description + details id name - displayName - description - personalOrg + procedureType + purposeAndScope + satisfies + status tags - parent { - id - name - } - children { - edges { - node { - id - name - displayName - description - } - } - } - members { - id - role - user { - id - firstName - lastName - } - } - setting { - id - createdAt - updatedAt - createdBy - updatedBy - domains - billingContact - billingEmail - billingPhone - billingAddress - taxIdentifier - geoLocation - tags - } - createdAt updatedAt + updatedBy + version } } } } ` -func (c *Client) GetAllOrganizations(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOrganizations, error) { +func (c *Client) GetAllProcedures(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllProcedures, error) { vars := map[string]any{} - var res GetAllOrganizations - if err := c.Client.Post(ctx, "GetAllOrganizations", GetAllOrganizationsDocument, &res, vars, interceptors...); err != nil { + var res GetAllProcedures + if err := c.Client.Post(ctx, "GetAllProcedures", GetAllProceduresDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39179,67 +55726,117 @@ func (c *Client) GetAllOrganizations(ctx context.Context, interceptors ...client return &res, nil } -const GetOrganizationByIDDocument = `query GetOrganizationByID ($organizationId: ID!) { - organization(id: $organizationId) { +const GetProcedureByIDDocument = `query GetProcedureByID ($procedureId: ID!) { + procedure(id: $procedureId) { + background + createdAt + createdBy + description + details id name - displayName - description - personalOrg + procedureType + purposeAndScope + satisfies + status tags - parent { - id - name - } - children { - edges { - node { - id - name - displayName - description - } - } + updatedAt + updatedBy + version + } +} +` + +func (c *Client) GetProcedureByID(ctx context.Context, procedureID string, interceptors ...clientv2.RequestInterceptor) (*GetProcedureByID, error) { + vars := map[string]any{ + "procedureId": procedureID, + } + + var res GetProcedureByID + if err := c.Client.Post(ctx, "GetProcedureByID", GetProcedureByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err } - members { - id - role - user { + + return nil, err + } + + return &res, nil +} + +const GetProceduresDocument = `query GetProcedures ($where: ProcedureWhereInput) { + procedures(where: $where) { + edges { + node { + background + createdAt + createdBy + description + details id - firstName - lastName + name + procedureType + purposeAndScope + satisfies + status + tags + updatedAt + updatedBy + version } } - setting { - id + } +} +` + +func (c *Client) GetProcedures(ctx context.Context, where *ProcedureWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetProcedures, error) { + vars := map[string]any{ + "where": where, + } + + var res GetProcedures + if err := c.Client.Post(ctx, "GetProcedures", GetProceduresDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateProcedureDocument = `mutation UpdateProcedure ($updateProcedureId: ID!, $input: UpdateProcedureInput!) { + updateProcedure(id: $updateProcedureId, input: $input) { + procedure { + background createdAt - updatedAt createdBy - updatedBy - domains - billingContact - billingEmail - billingPhone - billingAddress - taxIdentifier - geoLocation + description + details + id + name + procedureType + purposeAndScope + satisfies + status tags + updatedAt + updatedBy + version } - createdAt - createdBy - updatedAt - updatedBy } } ` -func (c *Client) GetOrganizationByID(ctx context.Context, organizationID string, interceptors ...clientv2.RequestInterceptor) (*GetOrganizationByID, error) { +func (c *Client) UpdateProcedure(ctx context.Context, updateProcedureID string, input UpdateProcedureInput, interceptors ...clientv2.RequestInterceptor) (*UpdateProcedure, error) { vars := map[string]any{ - "organizationId": organizationID, + "updateProcedureId": updateProcedureID, + "input": input, } - var res GetOrganizationByID - if err := c.Client.Post(ctx, "GetOrganizationByID", GetOrganizationByIDDocument, &res, vars, interceptors...); err != nil { + var res UpdateProcedure + if err := c.Client.Post(ctx, "UpdateProcedure", UpdateProcedureDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39250,69 +55847,125 @@ func (c *Client) GetOrganizationByID(ctx context.Context, organizationID string, return &res, nil } -const GetOrganizationsDocument = `query GetOrganizations ($where: OrganizationWhereInput) { - organizations(where: $where) { +const GetAllProcedureHistoriesDocument = `query GetAllProcedureHistories { + procedureHistories { edges { node { + background + createdAt + createdBy + description + details + historyTime id name - displayName - description - personalOrg + operation + procedureType + purposeAndScope + ref + satisfies + status tags - parent { - id - name - } - children { - edges { - node { - id - name - displayName - description - } - } - } - members { - id - role - user { - id - firstName - lastName - } - } - setting { - id - createdAt - updatedAt - createdBy - updatedBy - domains - billingContact - billingEmail - billingPhone - billingAddress - taxIdentifier - geoLocation - tags - } + updatedAt + updatedBy + version + } + } + } +} +` + +func (c *Client) GetAllProcedureHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllProcedureHistories, error) { + vars := map[string]any{} + + var res GetAllProcedureHistories + if err := c.Client.Post(ctx, "GetAllProcedureHistories", GetAllProcedureHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetProcedureHistoriesDocument = `query GetProcedureHistories ($where: ProcedureHistoryWhereInput) { + procedureHistories(where: $where) { + edges { + node { + background createdAt + createdBy + description + details + historyTime + id + name + operation + procedureType + purposeAndScope + ref + satisfies + status + tags updatedAt + updatedBy + version } } } } ` -func (c *Client) GetOrganizations(ctx context.Context, where *OrganizationWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOrganizations, error) { +func (c *Client) GetProcedureHistories(ctx context.Context, where *ProcedureHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetProcedureHistories, error) { vars := map[string]any{ "where": where, } - var res GetOrganizations - if err := c.Client.Post(ctx, "GetOrganizations", GetOrganizationsDocument, &res, vars, interceptors...); err != nil { + var res GetProcedureHistories + if err := c.Client.Post(ctx, "GetProcedureHistories", GetProcedureHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVRiskDocument = `mutation CreateBulkCSVRisk ($input: Upload!) { + createBulkCSVRisk(input: $input) { + risks { + businessCosts + createdAt + createdBy + description + details + id + impact + likelihood + mitigation + name + riskType + satisfies + status + tags + updatedAt + updatedBy + } + } +} +` + +func (c *Client) CreateBulkCSVRisk(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVRisk, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkCSVRisk + if err := c.Client.Post(ctx, "CreateBulkCSVRisk", CreateBulkCSVRiskDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39323,48 +55976,37 @@ func (c *Client) GetOrganizations(ctx context.Context, where *OrganizationWhereI return &res, nil } -const UpdateOrganizationDocument = `mutation UpdateOrganization ($updateOrganizationId: ID!, $input: UpdateOrganizationInput!) { - updateOrganization(id: $updateOrganizationId, input: $input) { - organization { +const CreateBulkRiskDocument = `mutation CreateBulkRisk ($input: [CreateRiskInput!]) { + createBulkRisk(input: $input) { + risks { + businessCosts + createdAt + createdBy + description + details id + impact + likelihood + mitigation name - displayName - description - personalOrg + riskType + satisfies + status tags - members { - id - role - userID - } - setting { - id - createdAt - updatedAt - createdBy - updatedBy - domains - billingContact - billingEmail - billingPhone - billingAddress - taxIdentifier - geoLocation - tags - } + updatedAt + updatedBy } } } ` -func (c *Client) UpdateOrganization(ctx context.Context, updateOrganizationID string, input UpdateOrganizationInput, interceptors ...clientv2.RequestInterceptor) (*UpdateOrganization, error) { +func (c *Client) CreateBulkRisk(ctx context.Context, input []*CreateRiskInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkRisk, error) { vars := map[string]any{ - "updateOrganizationId": updateOrganizationID, - "input": input, + "input": input, } - var res UpdateOrganization - if err := c.Client.Post(ctx, "UpdateOrganization", UpdateOrganizationDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkRisk + if err := c.Client.Post(ctx, "CreateBulkRisk", CreateBulkRiskDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39375,36 +56017,37 @@ func (c *Client) UpdateOrganization(ctx context.Context, updateOrganizationID st return &res, nil } -const GetAllOrganizationHistoriesDocument = `query GetAllOrganizationHistories { - organizationHistories { - edges { - node { - avatarRemoteURL - createdAt - createdBy - dedicatedDb - description - displayName - historyTime - id - name - operation - personalOrg - ref - tags - updatedAt - updatedBy - } +const CreateRiskDocument = `mutation CreateRisk ($input: CreateRiskInput!) { + createRisk(input: $input) { + risk { + businessCosts + createdAt + createdBy + description + details + id + impact + likelihood + mitigation + name + riskType + satisfies + status + tags + updatedAt + updatedBy } } } ` -func (c *Client) GetAllOrganizationHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOrganizationHistories, error) { - vars := map[string]any{} +func (c *Client) CreateRisk(ctx context.Context, input CreateRiskInput, interceptors ...clientv2.RequestInterceptor) (*CreateRisk, error) { + vars := map[string]any{ + "input": input, + } - var res GetAllOrganizationHistories - if err := c.Client.Post(ctx, "GetAllOrganizationHistories", GetAllOrganizationHistoriesDocument, &res, vars, interceptors...); err != nil { + var res CreateRisk + if err := c.Client.Post(ctx, "CreateRisk", CreateRiskDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39415,38 +56058,20 @@ func (c *Client) GetAllOrganizationHistories(ctx context.Context, interceptors . return &res, nil } -const GetOrganizationHistoriesDocument = `query GetOrganizationHistories ($where: OrganizationHistoryWhereInput) { - organizationHistories(where: $where) { - edges { - node { - avatarRemoteURL - createdAt - createdBy - dedicatedDb - description - displayName - historyTime - id - name - operation - personalOrg - ref - tags - updatedAt - updatedBy - } - } +const DeleteRiskDocument = `mutation DeleteRisk ($deleteRiskId: ID!) { + deleteRisk(id: $deleteRiskId) { + deletedID } } ` -func (c *Client) GetOrganizationHistories(ctx context.Context, where *OrganizationHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOrganizationHistories, error) { +func (c *Client) DeleteRisk(ctx context.Context, deleteRiskID string, interceptors ...clientv2.RequestInterceptor) (*DeleteRisk, error) { vars := map[string]any{ - "where": where, + "deleteRiskId": deleteRiskID, } - var res GetOrganizationHistories - if err := c.Client.Post(ctx, "GetOrganizationHistories", GetOrganizationHistoriesDocument, &res, vars, interceptors...); err != nil { + var res DeleteRisk + if err := c.Client.Post(ctx, "DeleteRisk", DeleteRiskDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39457,38 +56082,37 @@ func (c *Client) GetOrganizationHistories(ctx context.Context, where *Organizati return &res, nil } -const GetAllOrganizationSettingsDocument = `query GetAllOrganizationSettings { - organizationSettings { +const GetAllRisksDocument = `query GetAllRisks { + risks { edges { node { - billingAddress - billingContact - billingEmail - billingPhone + businessCosts createdAt createdBy - domains - geoLocation + description + details id + impact + likelihood + mitigation + name + riskType + satisfies + status tags - taxIdentifier updatedAt updatedBy - organization { - id - name - } } } } } ` -func (c *Client) GetAllOrganizationSettings(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOrganizationSettings, error) { +func (c *Client) GetAllRisks(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllRisks, error) { vars := map[string]any{} - var res GetAllOrganizationSettings - if err := c.Client.Post(ctx, "GetAllOrganizationSettings", GetAllOrganizationSettingsDocument, &res, vars, interceptors...); err != nil { + var res GetAllRisks + if err := c.Client.Post(ctx, "GetAllRisks", GetAllRisksDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39499,36 +56123,35 @@ func (c *Client) GetAllOrganizationSettings(ctx context.Context, interceptors .. return &res, nil } -const GetOrganizationSettingByIDDocument = `query GetOrganizationSettingByID ($organizationSettingId: ID!) { - organizationSetting(id: $organizationSettingId) { - billingAddress - billingContact - billingEmail - billingPhone +const GetRiskByIDDocument = `query GetRiskByID ($riskId: ID!) { + risk(id: $riskId) { + businessCosts createdAt createdBy - domains - geoLocation + description + details id + impact + likelihood + mitigation + name + riskType + satisfies + status tags - taxIdentifier updatedAt updatedBy - organization { - id - name - } } } ` -func (c *Client) GetOrganizationSettingByID(ctx context.Context, organizationSettingID string, interceptors ...clientv2.RequestInterceptor) (*GetOrganizationSettingByID, error) { +func (c *Client) GetRiskByID(ctx context.Context, riskID string, interceptors ...clientv2.RequestInterceptor) (*GetRiskByID, error) { vars := map[string]any{ - "organizationSettingId": organizationSettingID, + "riskId": riskID, } - var res GetOrganizationSettingByID - if err := c.Client.Post(ctx, "GetOrganizationSettingByID", GetOrganizationSettingByIDDocument, &res, vars, interceptors...); err != nil { + var res GetRiskByID + if err := c.Client.Post(ctx, "GetRiskByID", GetRiskByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39539,40 +56162,39 @@ func (c *Client) GetOrganizationSettingByID(ctx context.Context, organizationSet return &res, nil } -const GetOrganizationSettingsDocument = `query GetOrganizationSettings ($where: OrganizationSettingWhereInput!) { - organizationSettings(where: $where) { +const GetRisksDocument = `query GetRisks ($where: RiskWhereInput) { + risks(where: $where) { edges { node { - billingAddress - billingContact - billingEmail - billingPhone + businessCosts createdAt createdBy - domains - geoLocation + description + details id + impact + likelihood + mitigation + name + riskType + satisfies + status tags - taxIdentifier updatedAt updatedBy - organization { - id - name - } } } } } ` -func (c *Client) GetOrganizationSettings(ctx context.Context, where OrganizationSettingWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOrganizationSettings, error) { +func (c *Client) GetRisks(ctx context.Context, where *RiskWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetRisks, error) { vars := map[string]any{ "where": where, } - var res GetOrganizationSettings - if err := c.Client.Post(ctx, "GetOrganizationSettings", GetOrganizationSettingsDocument, &res, vars, interceptors...); err != nil { + var res GetRisks + if err := c.Client.Post(ctx, "GetRisks", GetRisksDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39583,39 +56205,38 @@ func (c *Client) GetOrganizationSettings(ctx context.Context, where Organization return &res, nil } -const UpdateOrganizationSettingDocument = `mutation UpdateOrganizationSetting ($updateOrganizationSettingId: ID!, $input: UpdateOrganizationSettingInput!) { - updateOrganizationSetting(id: $updateOrganizationSettingId, input: $input) { - organizationSetting { - billingAddress - billingContact - billingEmail - billingPhone +const UpdateRiskDocument = `mutation UpdateRisk ($updateRiskId: ID!, $input: UpdateRiskInput!) { + updateRisk(id: $updateRiskId, input: $input) { + risk { + businessCosts createdAt createdBy - domains - geoLocation + description + details id + impact + likelihood + mitigation + name + riskType + satisfies + status tags - taxIdentifier updatedAt updatedBy - organization { - id - name - } } } } ` -func (c *Client) UpdateOrganizationSetting(ctx context.Context, updateOrganizationSettingID string, input UpdateOrganizationSettingInput, interceptors ...clientv2.RequestInterceptor) (*UpdateOrganizationSetting, error) { +func (c *Client) UpdateRisk(ctx context.Context, updateRiskID string, input UpdateRiskInput, interceptors ...clientv2.RequestInterceptor) (*UpdateRisk, error) { vars := map[string]any{ - "updateOrganizationSettingId": updateOrganizationSettingID, - "input": input, + "updateRiskId": updateRiskID, + "input": input, } - var res UpdateOrganizationSetting - if err := c.Client.Post(ctx, "UpdateOrganizationSetting", UpdateOrganizationSettingDocument, &res, vars, interceptors...); err != nil { + var res UpdateRisk + if err := c.Client.Post(ctx, "UpdateRisk", UpdateRiskDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39626,25 +56247,27 @@ func (c *Client) UpdateOrganizationSetting(ctx context.Context, updateOrganizati return &res, nil } -const GetAllOrganizationSettingHistoriesDocument = `query GetAllOrganizationSettingHistories { - organizationSettingHistories { +const GetAllRiskHistoriesDocument = `query GetAllRiskHistories { + riskHistories { edges { node { - billingAddress - billingContact - billingEmail - billingPhone + businessCosts createdAt createdBy - domains - geoLocation + description + details historyTime id + impact + likelihood + mitigation + name operation - organizationID ref + riskType + satisfies + status tags - taxIdentifier updatedAt updatedBy } @@ -39653,11 +56276,11 @@ const GetAllOrganizationSettingHistoriesDocument = `query GetAllOrganizationSett } ` -func (c *Client) GetAllOrganizationSettingHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOrganizationSettingHistories, error) { +func (c *Client) GetAllRiskHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllRiskHistories, error) { vars := map[string]any{} - var res GetAllOrganizationSettingHistories - if err := c.Client.Post(ctx, "GetAllOrganizationSettingHistories", GetAllOrganizationSettingHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllRiskHistories + if err := c.Client.Post(ctx, "GetAllRiskHistories", GetAllRiskHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39668,25 +56291,27 @@ func (c *Client) GetAllOrganizationSettingHistories(ctx context.Context, interce return &res, nil } -const GetOrganizationSettingHistoriesDocument = `query GetOrganizationSettingHistories ($where: OrganizationSettingHistoryWhereInput) { - organizationSettingHistories(where: $where) { +const GetRiskHistoriesDocument = `query GetRiskHistories ($where: RiskHistoryWhereInput) { + riskHistories(where: $where) { edges { node { - billingAddress - billingContact - billingEmail - billingPhone + businessCosts createdAt createdBy - domains - geoLocation + description + details historyTime id + impact + likelihood + mitigation + name operation - organizationID ref + riskType + satisfies + status tags - taxIdentifier updatedAt updatedBy } @@ -39695,13 +56320,13 @@ const GetOrganizationSettingHistoriesDocument = `query GetOrganizationSettingHis } ` -func (c *Client) GetOrganizationSettingHistories(ctx context.Context, where *OrganizationSettingHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOrganizationSettingHistories, error) { +func (c *Client) GetRiskHistories(ctx context.Context, where *RiskHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetRiskHistories, error) { vars := map[string]any{ "where": where, } - var res GetOrganizationSettingHistories - if err := c.Client.Post(ctx, "GetOrganizationSettingHistories", GetOrganizationSettingHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetRiskHistories + if err := c.Client.Post(ctx, "GetRiskHistories", GetRiskHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39712,25 +56337,359 @@ func (c *Client) GetOrganizationSettingHistories(ctx context.Context, where *Org return &res, nil } -const AddUserToOrgWithRoleDocument = `mutation AddUserToOrgWithRole ($input: CreateOrgMembershipInput!) { - createOrgMembership(input: $input) { - orgMembership { +const GlobalSearchDocument = `query GlobalSearch ($query: String!) { + search(query: $query) { + nodes { + ... on APITokenSearchResult { + apiTokens { + id + tags + } + } + ... on ActionPlanSearchResult { + actionPlans { + id + tags + } + } + ... on ContactSearchResult { + contacts { + fullName + id + tags + } + } + ... on ControlSearchResult { + controls { + id + tags + } + } + ... on ControlObjectiveSearchResult { + controlObjectives { + id + tags + } + } + ... on DocumentDataSearchResult { + documentData { + id + tags + } + } + ... on EntitlementSearchResult { + entitlements { + id + tags + } + } + ... on EntitlementPlanSearchResult { + entitlementPlans { + id + tags + } + } + ... on EntitlementPlanFeatureSearchResult { + entitlementPlanFeatures { + id + tags + } + } + ... on EntitySearchResult { + entities { + description + displayName + id + name + tags + } + } + ... on EntityTypeSearchResult { + entityTypes { + id + tags + } + } + ... on EventSearchResult { + events { + id + tags + } + } + ... on FeatureSearchResult { + features { + id + tags + } + } + ... on FileSearchResult { + files { + id + tags + } + } + ... on GroupSearchResult { + groups { + displayName + id + name + tags + } + } + ... on GroupSettingSearchResult { + groupSettings { + id + tags + } + } + ... on IntegrationSearchResult { + integrations { + id + tags + } + } + ... on InternalPolicySearchResult { + internalPolicies { + id + tags + } + } + ... on NarrativeSearchResult { + narratives { + id + tags + } + } + ... on OauthProviderSearchResult { + oauthProviders { + id + tags + } + } + ... on OhAuthTooTokenSearchResult { + ohAuthTooTokens { + id + tags + } + } + ... on OrganizationSearchResult { + organizations { + displayName + id + name + tags + } + } + ... on OrganizationSettingSearchResult { + organizationSettings { + id + tags + } + } + ... on PersonalAccessTokenSearchResult { + personalAccessTokens { + id + tags + } + } + ... on ProcedureSearchResult { + procedures { + id + tags + } + } + ... on RiskSearchResult { + risks { + id + tags + } + } + ... on StandardSearchResult { + standards { + id + tags + } + } + ... on SubcontrolSearchResult { + subcontrols { + id + tags + } + } + ... on SubscriberSearchResult { + subscribers { + email + id + tags + } + } + ... on TFASettingSearchResult { + tFASettings { + id + tags + } + } + ... on TemplateSearchResult { + templates { + id + jsonconfig + name + tags + } + } + ... on UserSearchResult { + users { + id + tags + } + } + ... on UserSettingSearchResult { + userSettings { + id + tags + } + } + ... on WebhookSearchResult { + webhooks { + id + tags + } + } + } + } +} +` + +func (c *Client) GlobalSearch(ctx context.Context, query string, interceptors ...clientv2.RequestInterceptor) (*GlobalSearch, error) { + vars := map[string]any{ + "query": query, + } + + var res GlobalSearch + if err := c.Client.Post(ctx, "GlobalSearch", GlobalSearchDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVStandardDocument = `mutation CreateBulkCSVStandard ($input: Upload!) { + createBulkCSVStandard(input: $input) { + standards { + background + createdAt + createdBy + description + details + family id - role - userID - organizationID + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version } } } ` -func (c *Client) AddUserToOrgWithRole(ctx context.Context, input CreateOrgMembershipInput, interceptors ...clientv2.RequestInterceptor) (*AddUserToOrgWithRole, error) { +func (c *Client) CreateBulkCSVStandard(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVStandard, error) { vars := map[string]any{ "input": input, } - var res AddUserToOrgWithRole - if err := c.Client.Post(ctx, "AddUserToOrgWithRole", AddUserToOrgWithRoleDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVStandard + if err := c.Client.Post(ctx, "CreateBulkCSVStandard", CreateBulkCSVStandardDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkStandardDocument = `mutation CreateBulkStandard ($input: [CreateStandardInput!]) { + createBulkStandard(input: $input) { + standards { + background + createdAt + createdBy + description + details + family + id + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } + } +} +` + +func (c *Client) CreateBulkStandard(ctx context.Context, input []*CreateStandardInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkStandard, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkStandard + if err := c.Client.Post(ctx, "CreateBulkStandard", CreateBulkStandardDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateStandardDocument = `mutation CreateStandard ($input: CreateStandardInput!) { + createStandard(input: $input) { + standard { + background + createdAt + createdBy + description + details + family + id + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } + } +} +` + +func (c *Client) CreateStandard(ctx context.Context, input CreateStandardInput, interceptors ...clientv2.RequestInterceptor) (*CreateStandard, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateStandard + if err := c.Client.Post(ctx, "CreateStandard", CreateStandardDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39741,25 +56700,20 @@ func (c *Client) AddUserToOrgWithRole(ctx context.Context, input CreateOrgMember return &res, nil } -const CreateBulkCSVOrgMembersDocument = `mutation CreateBulkCSVOrgMembers ($input: Upload!) { - createBulkCSVOrgMembership(input: $input) { - orgMemberships { - id - organizationID - role - userID - } +const DeleteStandardDocument = `mutation DeleteStandard ($deleteStandardId: ID!) { + deleteStandard(id: $deleteStandardId) { + deletedID } } ` -func (c *Client) CreateBulkCSVOrgMembers(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVOrgMembers, error) { +func (c *Client) DeleteStandard(ctx context.Context, deleteStandardID string, interceptors ...clientv2.RequestInterceptor) (*DeleteStandard, error) { vars := map[string]any{ - "input": input, + "deleteStandardId": deleteStandardID, } - var res CreateBulkCSVOrgMembers - if err := c.Client.Post(ctx, "CreateBulkCSVOrgMembers", CreateBulkCSVOrgMembersDocument, &res, vars, interceptors...); err != nil { + var res DeleteStandard + if err := c.Client.Post(ctx, "DeleteStandard", DeleteStandardDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39770,25 +56724,37 @@ func (c *Client) CreateBulkCSVOrgMembers(ctx context.Context, input graphql.Uplo return &res, nil } -const CreateBulkOrgMembersDocument = `mutation CreateBulkOrgMembers ($input: [CreateOrgMembershipInput!]) { - createBulkOrgMembership(input: $input) { - orgMemberships { - id - organizationID - role - userID +const GetAllStandardsDocument = `query GetAllStandards { + standards { + edges { + node { + background + createdAt + createdBy + description + details + family + id + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } } } } ` -func (c *Client) CreateBulkOrgMembers(ctx context.Context, input []*CreateOrgMembershipInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkOrgMembers, error) { - vars := map[string]any{ - "input": input, - } +func (c *Client) GetAllStandards(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllStandards, error) { + vars := map[string]any{} - var res CreateBulkOrgMembers - if err := c.Client.Post(ctx, "CreateBulkOrgMembers", CreateBulkOrgMembersDocument, &res, vars, interceptors...); err != nil { + var res GetAllStandards + if err := c.Client.Post(ctx, "GetAllStandards", GetAllStandardsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39799,34 +56765,35 @@ func (c *Client) CreateBulkOrgMembers(ctx context.Context, input []*CreateOrgMem return &res, nil } -const GetOrgMembersByOrgIDDocument = `query GetOrgMembersByOrgID ($where: OrgMembershipWhereInput) { - orgMemberships(where: $where) { - edges { - node { - id - organizationID - userID - role - user { - firstName - lastName - id - displayName - email - } - } - } +const GetStandardByIDDocument = `query GetStandardByID ($standardId: ID!) { + standard(id: $standardId) { + background + createdAt + createdBy + description + details + family + id + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version } } ` -func (c *Client) GetOrgMembersByOrgID(ctx context.Context, where *OrgMembershipWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOrgMembersByOrgID, error) { +func (c *Client) GetStandardByID(ctx context.Context, standardID string, interceptors ...clientv2.RequestInterceptor) (*GetStandardByID, error) { vars := map[string]any{ - "where": where, + "standardId": standardID, } - var res GetOrgMembersByOrgID - if err := c.Client.Post(ctx, "GetOrgMembersByOrgID", GetOrgMembersByOrgIDDocument, &res, vars, interceptors...); err != nil { + var res GetStandardByID + if err := c.Client.Post(ctx, "GetStandardByID", GetStandardByIDDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39837,20 +56804,39 @@ func (c *Client) GetOrgMembersByOrgID(ctx context.Context, where *OrgMembershipW return &res, nil } -const RemoveUserFromOrgDocument = `mutation RemoveUserFromOrg ($deleteOrgMembershipId: ID!) { - deleteOrgMembership(id: $deleteOrgMembershipId) { - deletedID +const GetStandardsDocument = `query GetStandards ($where: StandardWhereInput) { + standards(where: $where) { + edges { + node { + background + createdAt + createdBy + description + details + family + id + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } + } } } ` -func (c *Client) RemoveUserFromOrg(ctx context.Context, deleteOrgMembershipID string, interceptors ...clientv2.RequestInterceptor) (*RemoveUserFromOrg, error) { +func (c *Client) GetStandards(ctx context.Context, where *StandardWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetStandards, error) { vars := map[string]any{ - "deleteOrgMembershipId": deleteOrgMembershipID, + "where": where, } - var res RemoveUserFromOrg - if err := c.Client.Post(ctx, "RemoveUserFromOrg", RemoveUserFromOrgDocument, &res, vars, interceptors...); err != nil { + var res GetStandards + if err := c.Client.Post(ctx, "GetStandards", GetStandardsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39861,26 +56847,38 @@ func (c *Client) RemoveUserFromOrg(ctx context.Context, deleteOrgMembershipID st return &res, nil } -const UpdateUserRoleInOrgDocument = `mutation UpdateUserRoleInOrg ($updateOrgMemberId: ID!, $input: UpdateOrgMembershipInput!) { - updateOrgMembership(id: $updateOrgMemberId, input: $input) { - orgMembership { +const UpdateStandardDocument = `mutation UpdateStandard ($updateStandardId: ID!, $input: UpdateStandardInput!) { + updateStandard(id: $updateStandardId, input: $input) { + standard { + background + createdAt + createdBy + description + details + family id - role - userID - organizationID + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version } } } ` -func (c *Client) UpdateUserRoleInOrg(ctx context.Context, updateOrgMemberID string, input UpdateOrgMembershipInput, interceptors ...clientv2.RequestInterceptor) (*UpdateUserRoleInOrg, error) { +func (c *Client) UpdateStandard(ctx context.Context, updateStandardID string, input UpdateStandardInput, interceptors ...clientv2.RequestInterceptor) (*UpdateStandard, error) { vars := map[string]any{ - "updateOrgMemberId": updateOrgMemberID, - "input": input, + "updateStandardId": updateStandardID, + "input": input, } - var res UpdateUserRoleInOrg - if err := c.Client.Post(ctx, "UpdateUserRoleInOrg", UpdateUserRoleInOrgDocument, &res, vars, interceptors...); err != nil { + var res UpdateStandard + if err := c.Client.Post(ctx, "UpdateStandard", UpdateStandardDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39891,32 +56889,40 @@ func (c *Client) UpdateUserRoleInOrg(ctx context.Context, updateOrgMemberID stri return &res, nil } -const GetAllOrgMembershipHistoriesDocument = `query GetAllOrgMembershipHistories { - orgMembershipHistories { +const GetAllStandardHistoriesDocument = `query GetAllStandardHistories { + standardHistories { edges { node { + background createdAt createdBy + description + details + family historyTime id + name operation - organizationID + purposeAndScope ref - role + satisfies + standardType + status + tags updatedAt updatedBy - userID + version } } } } ` -func (c *Client) GetAllOrgMembershipHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllOrgMembershipHistories, error) { +func (c *Client) GetAllStandardHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllStandardHistories, error) { vars := map[string]any{} - var res GetAllOrgMembershipHistories - if err := c.Client.Post(ctx, "GetAllOrgMembershipHistories", GetAllOrgMembershipHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetAllStandardHistories + if err := c.Client.Post(ctx, "GetAllStandardHistories", GetAllStandardHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39927,34 +56933,42 @@ func (c *Client) GetAllOrgMembershipHistories(ctx context.Context, interceptors return &res, nil } -const GetOrgMembershipHistoriesDocument = `query GetOrgMembershipHistories ($where: OrgMembershipHistoryWhereInput) { - orgMembershipHistories(where: $where) { +const GetStandardHistoriesDocument = `query GetStandardHistories ($where: StandardHistoryWhereInput) { + standardHistories(where: $where) { edges { node { + background createdAt createdBy + description + details + family historyTime id + name operation - organizationID + purposeAndScope ref - role + satisfies + standardType + status + tags updatedAt updatedBy - userID + version } } } } ` -func (c *Client) GetOrgMembershipHistories(ctx context.Context, where *OrgMembershipHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetOrgMembershipHistories, error) { +func (c *Client) GetStandardHistories(ctx context.Context, where *StandardHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetStandardHistories, error) { vars := map[string]any{ "where": where, } - var res GetOrgMembershipHistories - if err := c.Client.Post(ctx, "GetOrgMembershipHistories", GetOrgMembershipHistoriesDocument, &res, vars, interceptors...); err != nil { + var res GetStandardHistories + if err := c.Client.Post(ctx, "GetStandardHistories", GetStandardHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -39965,34 +56979,43 @@ func (c *Client) GetOrgMembershipHistories(ctx context.Context, where *OrgMember return &res, nil } -const CreateBulkCSVPersonalAccessTokenDocument = `mutation CreateBulkCSVPersonalAccessToken ($input: Upload!) { - createBulkCSVPersonalAccessToken(input: $input) { - personalAccessTokens { +const CreateBulkCSVSubcontrolDocument = `mutation CreateBulkCSVSubcontrol ($input: Upload!) { + createBulkCSVSubcontrol(input: $input) { + subcontrols { + class + createdAt + createdBy description - expiresAt + details + family id - lastUsedAt + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks name - scopes - token + source + status + subcontrolNumber + subcontrolType + tags updatedAt updatedBy - organizations { - id - name - } + version } } } ` -func (c *Client) CreateBulkCSVPersonalAccessToken(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVPersonalAccessToken, error) { +func (c *Client) CreateBulkCSVSubcontrol(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVSubcontrol, error) { vars := map[string]any{ "input": input, } - var res CreateBulkCSVPersonalAccessToken - if err := c.Client.Post(ctx, "CreateBulkCSVPersonalAccessToken", CreateBulkCSVPersonalAccessTokenDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkCSVSubcontrol + if err := c.Client.Post(ctx, "CreateBulkCSVSubcontrol", CreateBulkCSVSubcontrolDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -40003,34 +57026,43 @@ func (c *Client) CreateBulkCSVPersonalAccessToken(ctx context.Context, input gra return &res, nil } -const CreateBulkPersonalAccessTokenDocument = `mutation CreateBulkPersonalAccessToken ($input: [CreatePersonalAccessTokenInput!]) { - createBulkPersonalAccessToken(input: $input) { - personalAccessTokens { +const CreateBulkSubcontrolDocument = `mutation CreateBulkSubcontrol ($input: [CreateSubcontrolInput!]) { + createBulkSubcontrol(input: $input) { + subcontrols { + class + createdAt + createdBy description - expiresAt + details + family id - lastUsedAt + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks name - scopes - token + source + status + subcontrolNumber + subcontrolType + tags updatedAt updatedBy - organizations { - id - name - } + version } } } ` -func (c *Client) CreateBulkPersonalAccessToken(ctx context.Context, input []*CreatePersonalAccessTokenInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkPersonalAccessToken, error) { +func (c *Client) CreateBulkSubcontrol(ctx context.Context, input []*CreateSubcontrolInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkSubcontrol, error) { vars := map[string]any{ "input": input, } - var res CreateBulkPersonalAccessToken - if err := c.Client.Post(ctx, "CreateBulkPersonalAccessToken", CreateBulkPersonalAccessTokenDocument, &res, vars, interceptors...); err != nil { + var res CreateBulkSubcontrol + if err := c.Client.Post(ctx, "CreateBulkSubcontrol", CreateBulkSubcontrolDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -40041,37 +57073,43 @@ func (c *Client) CreateBulkPersonalAccessToken(ctx context.Context, input []*Cre return &res, nil } -const CreatePersonalAccessTokenDocument = `mutation CreatePersonalAccessToken ($input: CreatePersonalAccessTokenInput!) { - createPersonalAccessToken(input: $input) { - personalAccessToken { +const CreateSubcontrolDocument = `mutation CreateSubcontrol ($input: CreateSubcontrolInput!) { + createSubcontrol(input: $input) { + subcontrol { + class + createdAt + createdBy description - expiresAt + details + family id - lastUsedAt + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks name - scopes - token + source + status + subcontrolNumber + subcontrolType + tags updatedAt updatedBy - organizations { - id - name - } - owner { - id - } + version } } } ` -func (c *Client) CreatePersonalAccessToken(ctx context.Context, input CreatePersonalAccessTokenInput, interceptors ...clientv2.RequestInterceptor) (*CreatePersonalAccessToken, error) { +func (c *Client) CreateSubcontrol(ctx context.Context, input CreateSubcontrolInput, interceptors ...clientv2.RequestInterceptor) (*CreateSubcontrol, error) { vars := map[string]any{ "input": input, } - var res CreatePersonalAccessToken - if err := c.Client.Post(ctx, "CreatePersonalAccessToken", CreatePersonalAccessTokenDocument, &res, vars, interceptors...); err != nil { + var res CreateSubcontrol + if err := c.Client.Post(ctx, "CreateSubcontrol", CreateSubcontrolDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -40082,20 +57120,20 @@ func (c *Client) CreatePersonalAccessToken(ctx context.Context, input CreatePers return &res, nil } -const DeletePersonalAccessTokenDocument = `mutation DeletePersonalAccessToken ($deletePersonalAccessTokenId: ID!) { - deletePersonalAccessToken(id: $deletePersonalAccessTokenId) { +const DeleteSubcontrolDocument = `mutation DeleteSubcontrol ($deleteSubcontrolId: ID!) { + deleteSubcontrol(id: $deleteSubcontrolId) { deletedID } } ` -func (c *Client) DeletePersonalAccessToken(ctx context.Context, deletePersonalAccessTokenID string, interceptors ...clientv2.RequestInterceptor) (*DeletePersonalAccessToken, error) { +func (c *Client) DeleteSubcontrol(ctx context.Context, deleteSubcontrolID string, interceptors ...clientv2.RequestInterceptor) (*DeleteSubcontrol, error) { vars := map[string]any{ - "deletePersonalAccessTokenId": deletePersonalAccessTokenID, + "deleteSubcontrolId": deleteSubcontrolID, } - var res DeletePersonalAccessToken - if err := c.Client.Post(ctx, "DeletePersonalAccessToken", DeletePersonalAccessTokenDocument, &res, vars, interceptors...); err != nil { + var res DeleteSubcontrol + if err := c.Client.Post(ctx, "DeleteSubcontrol", DeleteSubcontrolDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -40106,34 +57144,43 @@ func (c *Client) DeletePersonalAccessToken(ctx context.Context, deletePersonalAc return &res, nil } -const GetAllPersonalAccessTokensDocument = `query GetAllPersonalAccessTokens { - personalAccessTokens { +const GetAllSubcontrolsDocument = `query GetAllSubcontrols { + subcontrols { edges { node { + class + createdAt + createdBy description - expiresAt + details + family id - lastUsedAt + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks name - scopes - token + source + status + subcontrolNumber + subcontrolType + tags updatedAt updatedBy - organizations { - id - name - } + version } } } } ` -func (c *Client) GetAllPersonalAccessTokens(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllPersonalAccessTokens, error) { +func (c *Client) GetAllSubcontrols(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllSubcontrols, error) { vars := map[string]any{} - var res GetAllPersonalAccessTokens - if err := c.Client.Post(ctx, "GetAllPersonalAccessTokens", GetAllPersonalAccessTokensDocument, &res, vars, interceptors...); err != nil { + var res GetAllSubcontrols + if err := c.Client.Post(ctx, "GetAllSubcontrols", GetAllSubcontrolsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -40144,32 +57191,90 @@ func (c *Client) GetAllPersonalAccessTokens(ctx context.Context, interceptors .. return &res, nil } -const GetPersonalAccessTokenByIDDocument = `query GetPersonalAccessTokenByID ($personalAccessTokenId: ID!) { - personalAccessToken(id: $personalAccessTokenId) { +const GetSubcontrolByIDDocument = `query GetSubcontrolByID ($subcontrolId: ID!) { + subcontrol(id: $subcontrolId) { + class + createdAt + createdBy description - expiresAt + details + family id - lastUsedAt + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks name - scopes - token + source + status + subcontrolNumber + subcontrolType + tags updatedAt updatedBy - organizations { - id - name + version + } +} +` + +func (c *Client) GetSubcontrolByID(ctx context.Context, subcontrolID string, interceptors ...clientv2.RequestInterceptor) (*GetSubcontrolByID, error) { + vars := map[string]any{ + "subcontrolId": subcontrolID, + } + + var res GetSubcontrolByID + if err := c.Client.Post(ctx, "GetSubcontrolByID", GetSubcontrolByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetSubcontrolsDocument = `query GetSubcontrols ($where: SubcontrolWhereInput) { + subcontrols(where: $where) { + edges { + node { + class + createdAt + createdBy + description + details + family + id + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks + name + source + status + subcontrolNumber + subcontrolType + tags + updatedAt + updatedBy + version + } } } } ` -func (c *Client) GetPersonalAccessTokenByID(ctx context.Context, personalAccessTokenID string, interceptors ...clientv2.RequestInterceptor) (*GetPersonalAccessTokenByID, error) { +func (c *Client) GetSubcontrols(ctx context.Context, where *SubcontrolWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetSubcontrols, error) { vars := map[string]any{ - "personalAccessTokenId": personalAccessTokenID, + "where": where, } - var res GetPersonalAccessTokenByID - if err := c.Client.Post(ctx, "GetPersonalAccessTokenByID", GetPersonalAccessTokenByIDDocument, &res, vars, interceptors...); err != nil { + var res GetSubcontrols + if err := c.Client.Post(ctx, "GetSubcontrols", GetSubcontrolsDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -40180,38 +57285,44 @@ func (c *Client) GetPersonalAccessTokenByID(ctx context.Context, personalAccessT return &res, nil } -const UpdatePersonalAccessTokenDocument = `mutation UpdatePersonalAccessToken ($updatePersonalAccessTokenId: ID!, $input: UpdatePersonalAccessTokenInput!) { - updatePersonalAccessToken(id: $updatePersonalAccessTokenId, input: $input) { - personalAccessToken { +const UpdateSubcontrolDocument = `mutation UpdateSubcontrol ($updateSubcontrolId: ID!, $input: UpdateSubcontrolInput!) { + updateSubcontrol(id: $updateSubcontrolId, input: $input) { + subcontrol { + class + createdAt + createdBy description - expiresAt + details + family id - lastUsedAt + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks name - scopes - token + source + status + subcontrolNumber + subcontrolType + tags updatedAt updatedBy - organizations { - id - name - } - owner { - id - } + version } } } ` -func (c *Client) UpdatePersonalAccessToken(ctx context.Context, updatePersonalAccessTokenID string, input UpdatePersonalAccessTokenInput, interceptors ...clientv2.RequestInterceptor) (*UpdatePersonalAccessToken, error) { +func (c *Client) UpdateSubcontrol(ctx context.Context, updateSubcontrolID string, input UpdateSubcontrolInput, interceptors ...clientv2.RequestInterceptor) (*UpdateSubcontrol, error) { vars := map[string]any{ - "updatePersonalAccessTokenId": updatePersonalAccessTokenID, - "input": input, + "updateSubcontrolId": updateSubcontrolID, + "input": input, } - var res UpdatePersonalAccessToken - if err := c.Client.Post(ctx, "UpdatePersonalAccessToken", UpdatePersonalAccessTokenDocument, &res, vars, interceptors...); err != nil { + var res UpdateSubcontrol + if err := c.Client.Post(ctx, "UpdateSubcontrol", UpdateSubcontrolDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -40222,182 +57333,98 @@ func (c *Client) UpdatePersonalAccessToken(ctx context.Context, updatePersonalAc return &res, nil } -const GlobalSearchDocument = `query GlobalSearch ($query: String!) { - search(query: $query) { - nodes { - ... on APITokenSearchResult { - apiTokens { - id - tags - } - } - ... on ContactSearchResult { - contacts { - fullName - id - tags - } - } - ... on DocumentDataSearchResult { - documentData { - id - tags - } - } - ... on EntitlementSearchResult { - entitlements { - id - tags - } - } - ... on EntitlementPlanSearchResult { - entitlementPlans { - id - tags - } - } - ... on EntitlementPlanFeatureSearchResult { - entitlementPlanFeatures { - id - tags - } - } - ... on EntitySearchResult { - entities { - description - displayName - id - name - tags - } - } - ... on EntityTypeSearchResult { - entityTypes { - id - tags - } - } - ... on EventSearchResult { - events { - id - tags - } - } - ... on FeatureSearchResult { - features { - id - tags - } - } - ... on FileSearchResult { - files { - id - tags - } - } - ... on GroupSearchResult { - groups { - displayName - id - name - tags - } - } - ... on GroupSettingSearchResult { - groupSettings { - id - tags - } - } - ... on IntegrationSearchResult { - integrations { - id - tags - } - } - ... on OauthProviderSearchResult { - oauthProviders { - id - tags - } - } - ... on OhAuthTooTokenSearchResult { - ohAuthTooTokens { - id - tags - } - } - ... on OrganizationSearchResult { - organizations { - displayName - id - name - tags - } - } - ... on OrganizationSettingSearchResult { - organizationSettings { - id - tags - } - } - ... on PersonalAccessTokenSearchResult { - personalAccessTokens { - id - tags - } - } - ... on SubscriberSearchResult { - subscribers { - email - id - tags - } - } - ... on TFASettingSearchResult { - tFASettings { - id - tags - } - } - ... on TemplateSearchResult { - templates { - id - jsonconfig - name - tags - } - } - ... on UserSearchResult { - users { - id - tags - } - } - ... on UserSettingSearchResult { - userSettings { - id - tags - } +const GetAllSubcontrolHistoriesDocument = `query GetAllSubcontrolHistories { + subcontrolHistories { + edges { + node { + class + createdAt + createdBy + description + details + family + historyTime + id + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks + name + operation + ref + source + status + subcontrolNumber + subcontrolType + tags + updatedAt + updatedBy + version } - ... on WebhookSearchResult { - webhooks { - id - tags - } + } + } +} +` + +func (c *Client) GetAllSubcontrolHistories(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllSubcontrolHistories, error) { + vars := map[string]any{} + + var res GetAllSubcontrolHistories + if err := c.Client.Post(ctx, "GetAllSubcontrolHistories", GetAllSubcontrolHistoriesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetSubcontrolHistoriesDocument = `query GetSubcontrolHistories ($where: SubcontrolHistoryWhereInput) { + subcontrolHistories(where: $where) { + edges { + node { + class + createdAt + createdBy + description + details + family + historyTime + id + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks + name + operation + ref + source + status + subcontrolNumber + subcontrolType + tags + updatedAt + updatedBy + version } } } } ` -func (c *Client) GlobalSearch(ctx context.Context, query string, interceptors ...clientv2.RequestInterceptor) (*GlobalSearch, error) { +func (c *Client) GetSubcontrolHistories(ctx context.Context, where *SubcontrolHistoryWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetSubcontrolHistories, error) { vars := map[string]any{ - "query": query, + "where": where, } - var res GlobalSearch - if err := c.Client.Post(ctx, "GlobalSearch", GlobalSearchDocument, &res, vars, interceptors...); err != nil { + var res GetSubcontrolHistories + if err := c.Client.Post(ctx, "GetSubcontrolHistories", GetSubcontrolHistoriesDocument, &res, vars, interceptors...); err != nil { if c.Client.ParseDataWhenErrors { return &res, err } @@ -42081,6 +59108,16 @@ func (c *Client) GetWebhookHistories(ctx context.Context, where *WebhookHistoryW } var DocumentOperationNames = map[string]string{ + CreateBulkCSVActionPlanDocument: "CreateBulkCSVActionPlan", + CreateBulkActionPlanDocument: "CreateBulkActionPlan", + CreateActionPlanDocument: "CreateActionPlan", + DeleteActionPlanDocument: "DeleteActionPlan", + GetAllActionPlansDocument: "GetAllActionPlans", + GetActionPlanByIDDocument: "GetActionPlanByID", + GetActionPlansDocument: "GetActionPlans", + UpdateActionPlanDocument: "UpdateActionPlan", + GetAllActionPlanHistoriesDocument: "GetAllActionPlanHistories", + GetActionPlanHistoriesDocument: "GetActionPlanHistories", AdminSearchDocument: "AdminSearch", CreateAPITokenDocument: "CreateAPIToken", UpdateAPITokenDocument: "UpdateAPIToken", @@ -42097,6 +59134,26 @@ var DocumentOperationNames = map[string]string{ UpdateContactDocument: "UpdateContact", GetAllContactHistoriesDocument: "GetAllContactHistories", GetContactHistoriesDocument: "GetContactHistories", + CreateBulkCSVControlDocument: "CreateBulkCSVControl", + CreateBulkControlDocument: "CreateBulkControl", + CreateControlDocument: "CreateControl", + DeleteControlDocument: "DeleteControl", + GetAllControlsDocument: "GetAllControls", + GetControlByIDDocument: "GetControlByID", + GetControlsDocument: "GetControls", + UpdateControlDocument: "UpdateControl", + GetAllControlHistoriesDocument: "GetAllControlHistories", + GetControlHistoriesDocument: "GetControlHistories", + CreateBulkCSVControlObjectiveDocument: "CreateBulkCSVControlObjective", + CreateBulkControlObjectiveDocument: "CreateBulkControlObjective", + CreateControlObjectiveDocument: "CreateControlObjective", + DeleteControlObjectiveDocument: "DeleteControlObjective", + GetAllControlObjectivesDocument: "GetAllControlObjectives", + GetControlObjectiveByIDDocument: "GetControlObjectiveByID", + GetControlObjectivesDocument: "GetControlObjectives", + UpdateControlObjectiveDocument: "UpdateControlObjective", + GetAllControlObjectiveHistoriesDocument: "GetAllControlObjectiveHistories", + GetControlObjectiveHistoriesDocument: "GetControlObjectiveHistories", CreateDocumentDataDocument: "CreateDocumentData", DeleteDocumentDataDocument: "DeleteDocumentData", GetDocumentDataByIDDocument: "GetDocumentDataByID", @@ -42222,6 +59279,16 @@ var DocumentOperationNames = map[string]string{ UpdateIntegrationDocument: "UpdateIntegration", GetAllIntegrationHistoriesDocument: "GetAllIntegrationHistories", GetIntegrationHistoriesDocument: "GetIntegrationHistories", + CreateBulkCSVInternalPolicyDocument: "CreateBulkCSVInternalPolicy", + CreateBulkInternalPolicyDocument: "CreateBulkInternalPolicy", + CreateInternalPolicyDocument: "CreateInternalPolicy", + DeleteInternalPolicyDocument: "DeleteInternalPolicy", + GetAllInternalPoliciesDocument: "GetAllInternalPolicies", + GetInternalPolicyByIDDocument: "GetInternalPolicyByID", + GetInternalPoliciesDocument: "GetInternalPolicies", + UpdateInternalPolicyDocument: "UpdateInternalPolicy", + GetAllInternalPolicyHistoriesDocument: "GetAllInternalPolicyHistories", + GetInternalPolicyHistoriesDocument: "GetInternalPolicyHistories", CreateBulkCSVInviteDocument: "CreateBulkCSVInvite", CreateBulkInviteDocument: "CreateBulkInvite", CreateInviteDocument: "CreateInvite", @@ -42229,6 +59296,16 @@ var DocumentOperationNames = map[string]string{ GetInviteByIDDocument: "GetInviteByID", GetAllInvitesDocument: "GetAllInvites", InvitesByOrgIDDocument: "InvitesByOrgID", + CreateBulkCSVNarrativeDocument: "CreateBulkCSVNarrative", + CreateBulkNarrativeDocument: "CreateBulkNarrative", + CreateNarrativeDocument: "CreateNarrative", + DeleteNarrativeDocument: "DeleteNarrative", + GetAllNarrativesDocument: "GetAllNarratives", + GetNarrativeByIDDocument: "GetNarrativeByID", + GetNarrativesDocument: "GetNarratives", + UpdateNarrativeDocument: "UpdateNarrative", + GetAllNarrativeHistoriesDocument: "GetAllNarrativeHistories", + GetNarrativeHistoriesDocument: "GetNarrativeHistories", GetAllNoteHistoriesDocument: "GetAllNoteHistories", GetNoteHistoriesDocument: "GetNoteHistories", GetAllOauthProviderHistoriesDocument: "GetAllOauthProviderHistories", @@ -42270,7 +59347,47 @@ var DocumentOperationNames = map[string]string{ GetAllPersonalAccessTokensDocument: "GetAllPersonalAccessTokens", GetPersonalAccessTokenByIDDocument: "GetPersonalAccessTokenByID", UpdatePersonalAccessTokenDocument: "UpdatePersonalAccessToken", + CreateBulkCSVProcedureDocument: "CreateBulkCSVProcedure", + CreateBulkProcedureDocument: "CreateBulkProcedure", + CreateProcedureDocument: "CreateProcedure", + DeleteProcedureDocument: "DeleteProcedure", + GetAllProceduresDocument: "GetAllProcedures", + GetProcedureByIDDocument: "GetProcedureByID", + GetProceduresDocument: "GetProcedures", + UpdateProcedureDocument: "UpdateProcedure", + GetAllProcedureHistoriesDocument: "GetAllProcedureHistories", + GetProcedureHistoriesDocument: "GetProcedureHistories", + CreateBulkCSVRiskDocument: "CreateBulkCSVRisk", + CreateBulkRiskDocument: "CreateBulkRisk", + CreateRiskDocument: "CreateRisk", + DeleteRiskDocument: "DeleteRisk", + GetAllRisksDocument: "GetAllRisks", + GetRiskByIDDocument: "GetRiskByID", + GetRisksDocument: "GetRisks", + UpdateRiskDocument: "UpdateRisk", + GetAllRiskHistoriesDocument: "GetAllRiskHistories", + GetRiskHistoriesDocument: "GetRiskHistories", GlobalSearchDocument: "GlobalSearch", + CreateBulkCSVStandardDocument: "CreateBulkCSVStandard", + CreateBulkStandardDocument: "CreateBulkStandard", + CreateStandardDocument: "CreateStandard", + DeleteStandardDocument: "DeleteStandard", + GetAllStandardsDocument: "GetAllStandards", + GetStandardByIDDocument: "GetStandardByID", + GetStandardsDocument: "GetStandards", + UpdateStandardDocument: "UpdateStandard", + GetAllStandardHistoriesDocument: "GetAllStandardHistories", + GetStandardHistoriesDocument: "GetStandardHistories", + CreateBulkCSVSubcontrolDocument: "CreateBulkCSVSubcontrol", + CreateBulkSubcontrolDocument: "CreateBulkSubcontrol", + CreateSubcontrolDocument: "CreateSubcontrol", + DeleteSubcontrolDocument: "DeleteSubcontrol", + GetAllSubcontrolsDocument: "GetAllSubcontrols", + GetSubcontrolByIDDocument: "GetSubcontrolByID", + GetSubcontrolsDocument: "GetSubcontrols", + UpdateSubcontrolDocument: "UpdateSubcontrol", + GetAllSubcontrolHistoriesDocument: "GetAllSubcontrolHistories", + GetSubcontrolHistoriesDocument: "GetSubcontrolHistories", CreateBulkCSVSubscriberDocument: "CreateBulkCSVSubscriber", CreateBulkSubscriberDocument: "CreateBulkSubscriber", CreateSubscriberDocument: "CreateSubscriber", diff --git a/pkg/openlaneclient/models.go b/pkg/openlaneclient/models.go index 4af77265..cff3c5e9 100644 --- a/pkg/openlaneclient/models.go +++ b/pkg/openlaneclient/models.go @@ -246,45 +246,7 @@ type APITokenWhereInput struct { HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` } -type AuditLog struct { - Table *string `json:"table,omitempty"` - Time *time.Time `json:"time,omitempty"` - ID string `json:"id"` - Operation *string `json:"operation,omitempty"` - Changes []string `json:"changes,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty"` -} - -func (AuditLog) IsNode() {} - -// A connection to a list of items. -type AuditLogConnection struct { - // A list of edges. - Edges []*AuditLogEdge `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"` -} - -// An edge in a connection. -type AuditLogEdge struct { - // The item at the end of the edge. - Node *AuditLog `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` -} - -type AuditLogWhereInput struct { - RefID *string `json:"refID,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty"` - Operation *string `json:"operation,omitempty"` - Table *string `json:"table,omitempty"` - Before *time.Time `json:"before,omitempty"` - After *time.Time `json:"after,omitempty"` -} - -type Contact struct { +type ActionPlan struct { ID string `json:"id"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` @@ -294,66 +256,65 @@ type Contact struct { DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the full name of the contact - FullName string `json:"fullName"` - // the title of the contact - Title *string `json:"title,omitempty"` - // the company of the contact - Company *string `json:"company,omitempty"` - // the email of the contact - Email *string `json:"email,omitempty"` - // the phone number of the contact - PhoneNumber *string `json:"phoneNumber,omitempty"` - // the address of the contact - Address *string `json:"address,omitempty"` - // status of the contact - Status enums.UserStatus `json:"status"` - Owner *Organization `json:"owner,omitempty"` - Entities []*Entity `json:"entities,omitempty"` - Files []*File `json:"files,omitempty"` + // the name of the action plan + Name string `json:"name"` + // description of the action plan + Description *string `json:"description,omitempty"` + // status of the action plan + Status *string `json:"status,omitempty"` + // due date of the action plan + DueDate *time.Time `json:"dueDate,omitempty"` + // priority of the action plan + Priority *string `json:"priority,omitempty"` + // source of the action plan + Source *string `json:"source,omitempty"` + // json data including details of the action plan + Details map[string]interface{} `json:"details,omitempty"` + Standard []*Standard `json:"standard,omitempty"` + Risk []*Risk `json:"risk,omitempty"` + Control []*Control `json:"control,omitempty"` + User []*User `json:"user,omitempty"` } -func (Contact) IsNode() {} +func (ActionPlan) IsNode() {} -// Return response for createBulkContact mutation -type ContactBulkCreatePayload struct { - // Created contacts - Contacts []*Contact `json:"contacts,omitempty"` +// Return response for createBulkActionPlan mutation +type ActionPlanBulkCreatePayload struct { + // Created actionPlans + ActionPlans []*ActionPlan `json:"actionPlans,omitempty"` } // A connection to a list of items. -type ContactConnection struct { +type ActionPlanConnection struct { // A list of edges. - Edges []*ContactEdge `json:"edges,omitempty"` + Edges []*ActionPlanEdge `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 createContact mutation -type ContactCreatePayload struct { - // Created contact - Contact *Contact `json:"contact"` +// Return response for createActionPlan mutation +type ActionPlanCreatePayload struct { + // Created actionPlan + ActionPlan *ActionPlan `json:"actionPlan"` } -// Return response for deleteContact mutation -type ContactDeletePayload struct { - // Deleted contact ID +// Return response for deleteActionPlan mutation +type ActionPlanDeletePayload struct { + // Deleted actionPlan ID DeletedID string `json:"deletedID"` } // An edge in a connection. -type ContactEdge struct { +type ActionPlanEdge struct { // The item at the end of the edge. - Node *Contact `json:"node,omitempty"` + Node *ActionPlan `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -type ContactHistory struct { +type ActionPlanHistory struct { ID string `json:"id"` HistoryTime time.Time `json:"historyTime"` Ref *string `json:"ref,omitempty"` @@ -366,30 +327,28 @@ type ContactHistory struct { DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the full name of the contact - FullName string `json:"fullName"` - // the title of the contact - Title *string `json:"title,omitempty"` - // the company of the contact - Company *string `json:"company,omitempty"` - // the email of the contact - Email *string `json:"email,omitempty"` - // the phone number of the contact - PhoneNumber *string `json:"phoneNumber,omitempty"` - // the address of the contact - Address *string `json:"address,omitempty"` - // status of the contact - Status enums.UserStatus `json:"status"` + // the name of the action plan + Name string `json:"name"` + // description of the action plan + Description *string `json:"description,omitempty"` + // status of the action plan + Status *string `json:"status,omitempty"` + // due date of the action plan + DueDate *time.Time `json:"dueDate,omitempty"` + // priority of the action plan + Priority *string `json:"priority,omitempty"` + // source of the action plan + Source *string `json:"source,omitempty"` + // json data including details of the action plan + Details map[string]interface{} `json:"details,omitempty"` } -func (ContactHistory) IsNode() {} +func (ActionPlanHistory) IsNode() {} // A connection to a list of items. -type ContactHistoryConnection struct { +type ActionPlanHistoryConnection struct { // A list of edges. - Edges []*ContactHistoryEdge `json:"edges,omitempty"` + Edges []*ActionPlanHistoryEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. @@ -397,19 +356,19 @@ type ContactHistoryConnection struct { } // An edge in a connection. -type ContactHistoryEdge struct { +type ActionPlanHistoryEdge struct { // The item at the end of the edge. - Node *ContactHistory `json:"node,omitempty"` + Node *ActionPlanHistory `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -// ContactHistoryWhereInput is used for filtering ContactHistory objects. +// ActionPlanHistoryWhereInput is used for filtering ActionPlanHistory objects. // Input was generated by ent. -type ContactHistoryWhereInput struct { - Not *ContactHistoryWhereInput `json:"not,omitempty"` - And []*ContactHistoryWhereInput `json:"and,omitempty"` - Or []*ContactHistoryWhereInput `json:"or,omitempty"` +type ActionPlanHistoryWhereInput struct { + Not *ActionPlanHistoryWhereInput `json:"not,omitempty"` + And []*ActionPlanHistoryWhereInput `json:"and,omitempty"` + Or []*ActionPlanHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -532,141 +491,115 @@ type ContactHistoryWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - // full_name field predicates - FullName *string `json:"fullName,omitempty"` - FullNameNeq *string `json:"fullNameNEQ,omitempty"` - FullNameIn []string `json:"fullNameIn,omitempty"` - FullNameNotIn []string `json:"fullNameNotIn,omitempty"` - FullNameGt *string `json:"fullNameGT,omitempty"` - FullNameGte *string `json:"fullNameGTE,omitempty"` - FullNameLt *string `json:"fullNameLT,omitempty"` - FullNameLte *string `json:"fullNameLTE,omitempty"` - FullNameContains *string `json:"fullNameContains,omitempty"` - FullNameHasPrefix *string `json:"fullNameHasPrefix,omitempty"` - FullNameHasSuffix *string `json:"fullNameHasSuffix,omitempty"` - FullNameEqualFold *string `json:"fullNameEqualFold,omitempty"` - FullNameContainsFold *string `json:"fullNameContainsFold,omitempty"` - // title field predicates - Title *string `json:"title,omitempty"` - TitleNeq *string `json:"titleNEQ,omitempty"` - TitleIn []string `json:"titleIn,omitempty"` - TitleNotIn []string `json:"titleNotIn,omitempty"` - TitleGt *string `json:"titleGT,omitempty"` - TitleGte *string `json:"titleGTE,omitempty"` - TitleLt *string `json:"titleLT,omitempty"` - TitleLte *string `json:"titleLTE,omitempty"` - TitleContains *string `json:"titleContains,omitempty"` - TitleHasPrefix *string `json:"titleHasPrefix,omitempty"` - TitleHasSuffix *string `json:"titleHasSuffix,omitempty"` - TitleIsNil *bool `json:"titleIsNil,omitempty"` - TitleNotNil *bool `json:"titleNotNil,omitempty"` - TitleEqualFold *string `json:"titleEqualFold,omitempty"` - TitleContainsFold *string `json:"titleContainsFold,omitempty"` - // company field predicates - Company *string `json:"company,omitempty"` - CompanyNeq *string `json:"companyNEQ,omitempty"` - CompanyIn []string `json:"companyIn,omitempty"` - CompanyNotIn []string `json:"companyNotIn,omitempty"` - CompanyGt *string `json:"companyGT,omitempty"` - CompanyGte *string `json:"companyGTE,omitempty"` - CompanyLt *string `json:"companyLT,omitempty"` - CompanyLte *string `json:"companyLTE,omitempty"` - CompanyContains *string `json:"companyContains,omitempty"` - CompanyHasPrefix *string `json:"companyHasPrefix,omitempty"` - CompanyHasSuffix *string `json:"companyHasSuffix,omitempty"` - CompanyIsNil *bool `json:"companyIsNil,omitempty"` - CompanyNotNil *bool `json:"companyNotNil,omitempty"` - CompanyEqualFold *string `json:"companyEqualFold,omitempty"` - CompanyContainsFold *string `json:"companyContainsFold,omitempty"` - // email field predicates - Email *string `json:"email,omitempty"` - EmailNeq *string `json:"emailNEQ,omitempty"` - EmailIn []string `json:"emailIn,omitempty"` - EmailNotIn []string `json:"emailNotIn,omitempty"` - EmailGt *string `json:"emailGT,omitempty"` - EmailGte *string `json:"emailGTE,omitempty"` - EmailLt *string `json:"emailLT,omitempty"` - EmailLte *string `json:"emailLTE,omitempty"` - EmailContains *string `json:"emailContains,omitempty"` - EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` - EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` - EmailIsNil *bool `json:"emailIsNil,omitempty"` - EmailNotNil *bool `json:"emailNotNil,omitempty"` - EmailEqualFold *string `json:"emailEqualFold,omitempty"` - EmailContainsFold *string `json:"emailContainsFold,omitempty"` - // phone_number field predicates - PhoneNumber *string `json:"phoneNumber,omitempty"` - PhoneNumberNeq *string `json:"phoneNumberNEQ,omitempty"` - PhoneNumberIn []string `json:"phoneNumberIn,omitempty"` - PhoneNumberNotIn []string `json:"phoneNumberNotIn,omitempty"` - PhoneNumberGt *string `json:"phoneNumberGT,omitempty"` - PhoneNumberGte *string `json:"phoneNumberGTE,omitempty"` - PhoneNumberLt *string `json:"phoneNumberLT,omitempty"` - PhoneNumberLte *string `json:"phoneNumberLTE,omitempty"` - PhoneNumberContains *string `json:"phoneNumberContains,omitempty"` - PhoneNumberHasPrefix *string `json:"phoneNumberHasPrefix,omitempty"` - PhoneNumberHasSuffix *string `json:"phoneNumberHasSuffix,omitempty"` - PhoneNumberIsNil *bool `json:"phoneNumberIsNil,omitempty"` - PhoneNumberNotNil *bool `json:"phoneNumberNotNil,omitempty"` - PhoneNumberEqualFold *string `json:"phoneNumberEqualFold,omitempty"` - PhoneNumberContainsFold *string `json:"phoneNumberContainsFold,omitempty"` - // address field predicates - Address *string `json:"address,omitempty"` - AddressNeq *string `json:"addressNEQ,omitempty"` - AddressIn []string `json:"addressIn,omitempty"` - AddressNotIn []string `json:"addressNotIn,omitempty"` - AddressGt *string `json:"addressGT,omitempty"` - AddressGte *string `json:"addressGTE,omitempty"` - AddressLt *string `json:"addressLT,omitempty"` - AddressLte *string `json:"addressLTE,omitempty"` - AddressContains *string `json:"addressContains,omitempty"` - AddressHasPrefix *string `json:"addressHasPrefix,omitempty"` - AddressHasSuffix *string `json:"addressHasSuffix,omitempty"` - AddressIsNil *bool `json:"addressIsNil,omitempty"` - AddressNotNil *bool `json:"addressNotNil,omitempty"` - AddressEqualFold *string `json:"addressEqualFold,omitempty"` - AddressContainsFold *string `json:"addressContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` // status field predicates - Status *enums.UserStatus `json:"status,omitempty"` - StatusNeq *enums.UserStatus `json:"statusNEQ,omitempty"` - StatusIn []enums.UserStatus `json:"statusIn,omitempty"` - StatusNotIn []enums.UserStatus `json:"statusNotIn,omitempty"` -} - -type ContactSearchResult struct { - Contacts []*Contact `json:"contacts,omitempty"` -} - -func (ContactSearchResult) IsSearchResult() {} - -// Return response for updateContact mutation -type ContactUpdatePayload struct { - // Updated contact - Contact *Contact `json:"contact"` -} - -// ContactWhereInput is used for filtering Contact objects. + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // due_date field predicates + DueDate *time.Time `json:"dueDate,omitempty"` + DueDateNeq *time.Time `json:"dueDateNEQ,omitempty"` + DueDateIn []*time.Time `json:"dueDateIn,omitempty"` + DueDateNotIn []*time.Time `json:"dueDateNotIn,omitempty"` + DueDateGt *time.Time `json:"dueDateGT,omitempty"` + DueDateGte *time.Time `json:"dueDateGTE,omitempty"` + DueDateLt *time.Time `json:"dueDateLT,omitempty"` + DueDateLte *time.Time `json:"dueDateLTE,omitempty"` + DueDateIsNil *bool `json:"dueDateIsNil,omitempty"` + DueDateNotNil *bool `json:"dueDateNotNil,omitempty"` + // priority field predicates + Priority *string `json:"priority,omitempty"` + PriorityNeq *string `json:"priorityNEQ,omitempty"` + PriorityIn []string `json:"priorityIn,omitempty"` + PriorityNotIn []string `json:"priorityNotIn,omitempty"` + PriorityGt *string `json:"priorityGT,omitempty"` + PriorityGte *string `json:"priorityGTE,omitempty"` + PriorityLt *string `json:"priorityLT,omitempty"` + PriorityLte *string `json:"priorityLTE,omitempty"` + PriorityContains *string `json:"priorityContains,omitempty"` + PriorityHasPrefix *string `json:"priorityHasPrefix,omitempty"` + PriorityHasSuffix *string `json:"priorityHasSuffix,omitempty"` + PriorityIsNil *bool `json:"priorityIsNil,omitempty"` + PriorityNotNil *bool `json:"priorityNotNil,omitempty"` + PriorityEqualFold *string `json:"priorityEqualFold,omitempty"` + PriorityContainsFold *string `json:"priorityContainsFold,omitempty"` + // source field predicates + Source *string `json:"source,omitempty"` + SourceNeq *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGt *string `json:"sourceGT,omitempty"` + SourceGte *string `json:"sourceGTE,omitempty"` + SourceLt *string `json:"sourceLT,omitempty"` + SourceLte *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil *bool `json:"sourceIsNil,omitempty"` + SourceNotNil *bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` +} + +type ActionPlanSearchResult struct { + ActionPlans []*ActionPlan `json:"actionPlans,omitempty"` +} + +func (ActionPlanSearchResult) IsSearchResult() {} + +// Return response for updateActionPlan mutation +type ActionPlanUpdatePayload struct { + // Updated actionPlan + ActionPlan *ActionPlan `json:"actionPlan"` +} + +// ActionPlanWhereInput is used for filtering ActionPlan objects. // Input was generated by ent. -type ContactWhereInput struct { - Not *ContactWhereInput `json:"not,omitempty"` - And []*ContactWhereInput `json:"and,omitempty"` - Or []*ContactWhereInput `json:"or,omitempty"` +type ActionPlanWhereInput struct { + Not *ActionPlanWhereInput `json:"not,omitempty"` + And []*ActionPlanWhereInput `json:"and,omitempty"` + Or []*ActionPlanWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -759,851 +692,273 @@ type ContactWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - // full_name field predicates - FullName *string `json:"fullName,omitempty"` - FullNameNeq *string `json:"fullNameNEQ,omitempty"` - FullNameIn []string `json:"fullNameIn,omitempty"` - FullNameNotIn []string `json:"fullNameNotIn,omitempty"` - FullNameGt *string `json:"fullNameGT,omitempty"` - FullNameGte *string `json:"fullNameGTE,omitempty"` - FullNameLt *string `json:"fullNameLT,omitempty"` - FullNameLte *string `json:"fullNameLTE,omitempty"` - FullNameContains *string `json:"fullNameContains,omitempty"` - FullNameHasPrefix *string `json:"fullNameHasPrefix,omitempty"` - FullNameHasSuffix *string `json:"fullNameHasSuffix,omitempty"` - FullNameEqualFold *string `json:"fullNameEqualFold,omitempty"` - FullNameContainsFold *string `json:"fullNameContainsFold,omitempty"` - // title field predicates - Title *string `json:"title,omitempty"` - TitleNeq *string `json:"titleNEQ,omitempty"` - TitleIn []string `json:"titleIn,omitempty"` - TitleNotIn []string `json:"titleNotIn,omitempty"` - TitleGt *string `json:"titleGT,omitempty"` - TitleGte *string `json:"titleGTE,omitempty"` - TitleLt *string `json:"titleLT,omitempty"` - TitleLte *string `json:"titleLTE,omitempty"` - TitleContains *string `json:"titleContains,omitempty"` - TitleHasPrefix *string `json:"titleHasPrefix,omitempty"` - TitleHasSuffix *string `json:"titleHasSuffix,omitempty"` - TitleIsNil *bool `json:"titleIsNil,omitempty"` - TitleNotNil *bool `json:"titleNotNil,omitempty"` - TitleEqualFold *string `json:"titleEqualFold,omitempty"` - TitleContainsFold *string `json:"titleContainsFold,omitempty"` - // company field predicates - Company *string `json:"company,omitempty"` - CompanyNeq *string `json:"companyNEQ,omitempty"` - CompanyIn []string `json:"companyIn,omitempty"` - CompanyNotIn []string `json:"companyNotIn,omitempty"` - CompanyGt *string `json:"companyGT,omitempty"` - CompanyGte *string `json:"companyGTE,omitempty"` - CompanyLt *string `json:"companyLT,omitempty"` - CompanyLte *string `json:"companyLTE,omitempty"` - CompanyContains *string `json:"companyContains,omitempty"` - CompanyHasPrefix *string `json:"companyHasPrefix,omitempty"` - CompanyHasSuffix *string `json:"companyHasSuffix,omitempty"` - CompanyIsNil *bool `json:"companyIsNil,omitempty"` - CompanyNotNil *bool `json:"companyNotNil,omitempty"` - CompanyEqualFold *string `json:"companyEqualFold,omitempty"` - CompanyContainsFold *string `json:"companyContainsFold,omitempty"` - // email field predicates - Email *string `json:"email,omitempty"` - EmailNeq *string `json:"emailNEQ,omitempty"` - EmailIn []string `json:"emailIn,omitempty"` - EmailNotIn []string `json:"emailNotIn,omitempty"` - EmailGt *string `json:"emailGT,omitempty"` - EmailGte *string `json:"emailGTE,omitempty"` - EmailLt *string `json:"emailLT,omitempty"` - EmailLte *string `json:"emailLTE,omitempty"` - EmailContains *string `json:"emailContains,omitempty"` - EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` - EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` - EmailIsNil *bool `json:"emailIsNil,omitempty"` - EmailNotNil *bool `json:"emailNotNil,omitempty"` - EmailEqualFold *string `json:"emailEqualFold,omitempty"` - EmailContainsFold *string `json:"emailContainsFold,omitempty"` - // phone_number field predicates - PhoneNumber *string `json:"phoneNumber,omitempty"` - PhoneNumberNeq *string `json:"phoneNumberNEQ,omitempty"` - PhoneNumberIn []string `json:"phoneNumberIn,omitempty"` - PhoneNumberNotIn []string `json:"phoneNumberNotIn,omitempty"` - PhoneNumberGt *string `json:"phoneNumberGT,omitempty"` - PhoneNumberGte *string `json:"phoneNumberGTE,omitempty"` - PhoneNumberLt *string `json:"phoneNumberLT,omitempty"` - PhoneNumberLte *string `json:"phoneNumberLTE,omitempty"` - PhoneNumberContains *string `json:"phoneNumberContains,omitempty"` - PhoneNumberHasPrefix *string `json:"phoneNumberHasPrefix,omitempty"` - PhoneNumberHasSuffix *string `json:"phoneNumberHasSuffix,omitempty"` - PhoneNumberIsNil *bool `json:"phoneNumberIsNil,omitempty"` - PhoneNumberNotNil *bool `json:"phoneNumberNotNil,omitempty"` - PhoneNumberEqualFold *string `json:"phoneNumberEqualFold,omitempty"` - PhoneNumberContainsFold *string `json:"phoneNumberContainsFold,omitempty"` - // address field predicates - Address *string `json:"address,omitempty"` - AddressNeq *string `json:"addressNEQ,omitempty"` - AddressIn []string `json:"addressIn,omitempty"` - AddressNotIn []string `json:"addressNotIn,omitempty"` - AddressGt *string `json:"addressGT,omitempty"` - AddressGte *string `json:"addressGTE,omitempty"` - AddressLt *string `json:"addressLT,omitempty"` - AddressLte *string `json:"addressLTE,omitempty"` - AddressContains *string `json:"addressContains,omitempty"` - AddressHasPrefix *string `json:"addressHasPrefix,omitempty"` - AddressHasSuffix *string `json:"addressHasSuffix,omitempty"` - AddressIsNil *bool `json:"addressIsNil,omitempty"` - AddressNotNil *bool `json:"addressNotNil,omitempty"` - AddressEqualFold *string `json:"addressEqualFold,omitempty"` - AddressContainsFold *string `json:"addressContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` // status field predicates - Status *enums.UserStatus `json:"status,omitempty"` - StatusNeq *enums.UserStatus `json:"statusNEQ,omitempty"` - StatusIn []enums.UserStatus `json:"statusIn,omitempty"` - StatusNotIn []enums.UserStatus `json:"statusNotIn,omitempty"` - // owner edge predicates - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // entities edge predicates - HasEntities *bool `json:"hasEntities,omitempty"` - HasEntitiesWith []*EntityWhereInput `json:"hasEntitiesWith,omitempty"` - // files edge predicates - HasFiles *bool `json:"hasFiles,omitempty"` - HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // due_date field predicates + DueDate *time.Time `json:"dueDate,omitempty"` + DueDateNeq *time.Time `json:"dueDateNEQ,omitempty"` + DueDateIn []*time.Time `json:"dueDateIn,omitempty"` + DueDateNotIn []*time.Time `json:"dueDateNotIn,omitempty"` + DueDateGt *time.Time `json:"dueDateGT,omitempty"` + DueDateGte *time.Time `json:"dueDateGTE,omitempty"` + DueDateLt *time.Time `json:"dueDateLT,omitempty"` + DueDateLte *time.Time `json:"dueDateLTE,omitempty"` + DueDateIsNil *bool `json:"dueDateIsNil,omitempty"` + DueDateNotNil *bool `json:"dueDateNotNil,omitempty"` + // priority field predicates + Priority *string `json:"priority,omitempty"` + PriorityNeq *string `json:"priorityNEQ,omitempty"` + PriorityIn []string `json:"priorityIn,omitempty"` + PriorityNotIn []string `json:"priorityNotIn,omitempty"` + PriorityGt *string `json:"priorityGT,omitempty"` + PriorityGte *string `json:"priorityGTE,omitempty"` + PriorityLt *string `json:"priorityLT,omitempty"` + PriorityLte *string `json:"priorityLTE,omitempty"` + PriorityContains *string `json:"priorityContains,omitempty"` + PriorityHasPrefix *string `json:"priorityHasPrefix,omitempty"` + PriorityHasSuffix *string `json:"priorityHasSuffix,omitempty"` + PriorityIsNil *bool `json:"priorityIsNil,omitempty"` + PriorityNotNil *bool `json:"priorityNotNil,omitempty"` + PriorityEqualFold *string `json:"priorityEqualFold,omitempty"` + PriorityContainsFold *string `json:"priorityContainsFold,omitempty"` + // source field predicates + Source *string `json:"source,omitempty"` + SourceNeq *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGt *string `json:"sourceGT,omitempty"` + SourceGte *string `json:"sourceGTE,omitempty"` + SourceLt *string `json:"sourceLT,omitempty"` + SourceLte *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil *bool `json:"sourceIsNil,omitempty"` + SourceNotNil *bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + // standard edge predicates + HasStandard *bool `json:"hasStandard,omitempty"` + HasStandardWith []*StandardWhereInput `json:"hasStandardWith,omitempty"` + // risk edge predicates + HasRisk *bool `json:"hasRisk,omitempty"` + HasRiskWith []*RiskWhereInput `json:"hasRiskWith,omitempty"` + // control edge predicates + HasControl *bool `json:"hasControl,omitempty"` + HasControlWith []*ControlWhereInput `json:"hasControlWith,omitempty"` + // user edge predicates + HasUser *bool `json:"hasUser,omitempty"` + HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` } -// CreateAPITokenInput is used for create APIToken object. -// Input was generated by ent. -type CreateAPITokenInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the name associated with the token - Name string `json:"name"` - // when the token expires - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - // a description of the token's purpose - Description *string `json:"description,omitempty"` - Scopes []string `json:"scopes,omitempty"` - LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` +type AuditLog struct { + Table *string `json:"table,omitempty"` + Time *time.Time `json:"time,omitempty"` + ID string `json:"id"` + Operation *string `json:"operation,omitempty"` + Changes []string `json:"changes,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` } -// CreateContactInput is used for create Contact object. -// Input was generated by ent. -type CreateContactInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the full name of the contact - FullName string `json:"fullName"` - // the title of the contact - Title *string `json:"title,omitempty"` - // the company of the contact - Company *string `json:"company,omitempty"` - // the email of the contact - Email *string `json:"email,omitempty"` - // the phone number of the contact - PhoneNumber *string `json:"phoneNumber,omitempty"` - // the address of the contact - Address *string `json:"address,omitempty"` - // status of the contact - Status *enums.UserStatus `json:"status,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - EntityIDs []string `json:"entityIDs,omitempty"` - FileIDs []string `json:"fileIDs,omitempty"` +func (AuditLog) IsNode() {} + +// A connection to a list of items. +type AuditLogConnection struct { + // A list of edges. + Edges []*AuditLogEdge `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"` } -// CreateDocumentDataInput is used for create DocumentData object. -// Input was generated by ent. -type CreateDocumentDataInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the json data of the document - Data json.RawMessage `json:"data"` - OwnerID *string `json:"ownerID,omitempty"` - TemplateID string `json:"templateID"` - EntityIDs []string `json:"entityIDs,omitempty"` - FileIDs []string `json:"fileIDs,omitempty"` +// An edge in a connection. +type AuditLogEdge struct { + // The item at the end of the edge. + Node *AuditLog `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` } -// CreateEntitlementInput is used for create Entitlement object. -// Input was generated by ent. -type CreateEntitlementInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // used to store references to external systems, e.g. Stripe - ExternalCustomerID *string `json:"externalCustomerID,omitempty"` - // used to store references to external systems, e.g. Stripe - ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` - // the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - // whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at - Cancelled *bool `json:"cancelled,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - PlanID string `json:"planID"` - OrganizationID string `json:"organizationID"` - EventIDs []string `json:"eventIDs,omitempty"` +type AuditLogWhereInput struct { + RefID *string `json:"refID,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + Operation *string `json:"operation,omitempty"` + Table *string `json:"table,omitempty"` + Before *time.Time `json:"before,omitempty"` + After *time.Time `json:"after,omitempty"` } -// CreateEntitlementPlanFeatureInput is used for create EntitlementPlanFeature object. -// Input was generated by ent. -type CreateEntitlementPlanFeatureInput struct { +type Contact 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` - // metadata for the entitlement plan feature such as usage limits - Metadata map[string]interface{} `json:"metadata,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - PlanID string `json:"planID"` - FeatureID string `json:"featureID"` - EventIDs []string `json:"eventIDs,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the full name of the contact + FullName string `json:"fullName"` + // the title of the contact + Title *string `json:"title,omitempty"` + // the company of the contact + Company *string `json:"company,omitempty"` + // the email of the contact + Email *string `json:"email,omitempty"` + // the phone number of the contact + PhoneNumber *string `json:"phoneNumber,omitempty"` + // the address of the contact + Address *string `json:"address,omitempty"` + // status of the contact + Status enums.UserStatus `json:"status"` + Owner *Organization `json:"owner,omitempty"` + Entities []*Entity `json:"entities,omitempty"` + Files []*File `json:"files,omitempty"` } -// CreateEntitlementPlanInput is used for create EntitlementPlan object. -// Input was generated by ent. -type CreateEntitlementPlanInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the displayed 'friendly' name of the plan - DisplayName *string `json:"displayName,omitempty"` - // the unique name of the plan - Name string `json:"name"` - // a description of the plan - Description *string `json:"description,omitempty"` - // the version of the plan - Version string `json:"version"` - // metadata for the plan - Metadata map[string]interface{} `json:"metadata,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - EntitlementIDs []string `json:"entitlementIDs,omitempty"` - BaseFeatureIDs []string `json:"baseFeatureIDs,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` -} +func (Contact) IsNode() {} -// CreateEntityInput is used for create Entity object. -// Input was generated by ent. -type CreateEntityInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the name of the entity - Name *string `json:"name,omitempty"` - // The entity's displayed 'friendly' name - DisplayName *string `json:"displayName,omitempty"` - // An optional description of the entity - Description *string `json:"description,omitempty"` - // domains associated with the entity - Domains []string `json:"domains,omitempty"` - // status of the entity - Status *string `json:"status,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - ContactIDs []string `json:"contactIDs,omitempty"` - DocumentIDs []string `json:"documentIDs,omitempty"` - NoteIDs []string `json:"noteIDs,omitempty"` - FileIDs []string `json:"fileIDs,omitempty"` - EntityTypeID *string `json:"entityTypeID,omitempty"` - Note *CreateNoteInput `json:"note,omitempty"` +// Return response for createBulkContact mutation +type ContactBulkCreatePayload struct { + // Created contacts + Contacts []*Contact `json:"contacts,omitempty"` } -// CreateEntityTypeInput is used for create EntityType object. -// Input was generated by ent. -type CreateEntityTypeInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the name of the entity - Name string `json:"name"` - OwnerID *string `json:"ownerID,omitempty"` - EntityIDs []string `json:"entityIDs,omitempty"` +// A connection to a list of items. +type ContactConnection struct { + // A list of edges. + Edges []*ContactEdge `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"` } -// CreateEventInput is used for create Event object. -// Input was generated by ent. -type CreateEventInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - EventID *string `json:"eventID,omitempty"` - CorrelationID *string `json:"correlationID,omitempty"` - EventType string `json:"eventType"` - Metadata map[string]interface{} `json:"metadata,omitempty"` - UserIDs []string `json:"userIDs,omitempty"` - GroupIDs []string `json:"groupIDs,omitempty"` - IntegrationIDs []string `json:"integrationIDs,omitempty"` - OrganizationIDs []string `json:"organizationIDs,omitempty"` - InviteIDs []string `json:"inviteIDs,omitempty"` - FeatureIDs []string `json:"featureIDs,omitempty"` - EntitlementplanIDs []string `json:"entitlementplanIDs,omitempty"` - PersonalAccessTokenIDs []string `json:"personalAccessTokenIDs,omitempty"` - Oauth2tokenIDs []string `json:"oauth2tokenIDs,omitempty"` - HushIDs []string `json:"hushIDs,omitempty"` - EntitlementIDs []string `json:"entitlementIDs,omitempty"` - WebhookIDs []string `json:"webhookIDs,omitempty"` - SubscriberIDs []string `json:"subscriberIDs,omitempty"` - FileIDs []string `json:"fileIDs,omitempty"` +// Return response for createContact mutation +type ContactCreatePayload struct { + // Created contact + Contact *Contact `json:"contact"` } -// CreateFeatureInput is used for create Feature object. -// Input was generated by ent. -type CreateFeatureInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the unique name of the feature - Name string `json:"name"` - // the displayed 'friendly' name of the feature - DisplayName *string `json:"displayName,omitempty"` - // enabled features are available for use - Enabled *bool `json:"enabled,omitempty"` - // a description of the feature - Description *string `json:"description,omitempty"` - // metadata for the feature - Metadata map[string]interface{} `json:"metadata,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - PlanIDs []string `json:"planIDs,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` +// Return response for deleteContact mutation +type ContactDeletePayload struct { + // Deleted contact ID + DeletedID string `json:"deletedID"` } -// CreateFileInput is used for create File object. -// Input was generated by ent. -type CreateFileInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the name of the file provided in the payload key without the extension - ProvidedFileName string `json:"providedFileName"` - // the extension of the file provided - ProvidedFileExtension string `json:"providedFileExtension"` - // the computed size of the file in the original http request - ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` - PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` - // the mime type detected by the system - DetectedMimeType *string `json:"detectedMimeType,omitempty"` - // the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage - Md5Hash *string `json:"md5Hash,omitempty"` - // the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types - DetectedContentType string `json:"detectedContentType"` - // the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key - StoreKey *string `json:"storeKey,omitempty"` - // the category type of the file, if any (e.g. evidence, invoice, etc.) - CategoryType *string `json:"categoryType,omitempty"` - // the full URI of the file - URI *string `json:"uri,omitempty"` - // the storage scheme of the file, e.g. file://, s3://, etc. - StorageScheme *string `json:"storageScheme,omitempty"` - // the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping - StorageVolume *string `json:"storageVolume,omitempty"` - // the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty - StoragePath *string `json:"storagePath,omitempty"` - UserIDs []string `json:"userIDs,omitempty"` - OrganizationIDs []string `json:"organizationIDs,omitempty"` - GroupIDs []string `json:"groupIDs,omitempty"` - ContactIDs []string `json:"contactIDs,omitempty"` - EntityIDs []string `json:"entityIDs,omitempty"` - UsersettingIDs []string `json:"usersettingIDs,omitempty"` - OrganizationsettingIDs []string `json:"organizationsettingIDs,omitempty"` - TemplateIDs []string `json:"templateIDs,omitempty"` - DocumentdatumIDs []string `json:"documentdatumIDs,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` +// An edge in a connection. +type ContactEdge struct { + // The item at the end of the edge. + Node *Contact `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` } -// CreateGroupInput is used for create Group object. -// Input was generated by ent. -type CreateGroupInput struct { +type ContactHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` - // the name of the group - must be unique within the organization - Name string `json:"name"` - // the groups description - Description *string `json:"description,omitempty"` - // the URL to an auto generated gravatar image for the group - GravatarLogoURL *string `json:"gravatarLogoURL,omitempty"` - // the URL to an image uploaded by the customer for the groups avatar image - LogoURL *string `json:"logoURL,omitempty"` - // The group's displayed 'friendly' name - DisplayName *string `json:"displayName,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - SettingID string `json:"settingID"` - UserIDs []string `json:"userIDs,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` - IntegrationIDs []string `json:"integrationIDs,omitempty"` - FileIDs []string `json:"fileIDs,omitempty"` - CreateGroupSettings *CreateGroupSettingInput `json:"createGroupSettings,omitempty"` -} - -// CreateGroupMembershipInput is used for create GroupMembership object. -// Input was generated by ent. -type CreateGroupMembershipInput struct { - Role *enums.Role `json:"role,omitempty"` - GroupID string `json:"groupID"` - UserID string `json:"userID"` - EventIDs []string `json:"eventIDs,omitempty"` -} - -// CreateGroupSettingInput is used for create GroupSetting object. -// Input was generated by ent. -type CreateGroupSettingInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization - Visibility *enums.Visibility `json:"visibility,omitempty"` - // the policy governing ability to freely join a group, whether it requires an invitation, application, or either - JoinPolicy *enums.JoinPolicy `json:"joinPolicy,omitempty"` - // whether to sync group members to slack groups - SyncToSlack *bool `json:"syncToSlack,omitempty"` - // whether to sync group members to github groups - SyncToGithub *bool `json:"syncToGithub,omitempty"` - GroupID *string `json:"groupID,omitempty"` -} - -// CreateHushInput is used for create Hush object. -// Input was generated by ent. -type CreateHushInput struct { - // the logical name of the corresponding hush secret or it's general grouping - Name string `json:"name"` - // a description of the hush value or purpose, such as github PAT - Description *string `json:"description,omitempty"` - // the kind of secret, such as sshkey, certificate, api token, etc. - Kind *string `json:"kind,omitempty"` - // the generic name of a secret associated with the organization - SecretName *string `json:"secretName,omitempty"` - // the secret value - SecretValue *string `json:"secretValue,omitempty"` - IntegrationIDs []string `json:"integrationIDs,omitempty"` - OrganizationIDs []string `json:"organizationIDs,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` -} - -// CreateIntegrationInput is used for create Integration object. -// Input was generated by ent. -type CreateIntegrationInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the name of the integration - must be unique within the organization - Name string `json:"name"` - // a description of the integration - Description *string `json:"description,omitempty"` - Kind *string `json:"kind,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - SecretIDs []string `json:"secretIDs,omitempty"` - Oauth2tokenIDs []string `json:"oauth2tokenIDs,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` - WebhookIDs []string `json:"webhookIDs,omitempty"` -} - -// CreateInviteInput is used for create Invite object. -// Input was generated by ent. -type CreateInviteInput struct { - // the expiration date of the invitation token which defaults to 14 days in the future from creation - Expires *time.Time `json:"expires,omitempty"` - // the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization - Recipient string `json:"recipient"` - // the status of the invitation - Status *enums.InviteStatus `json:"status,omitempty"` - Role *enums.Role `json:"role,omitempty"` - // the number of attempts made to perform email send of the invitation, maximum of 5 - SendAttempts *int64 `json:"sendAttempts,omitempty"` - // the user who initiated the invitation - RequestorID *string `json:"requestorID,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` -} - -// CreateNoteInput is used for create Note object. -// Input was generated by ent. -type CreateNoteInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the text of the note - Text string `json:"text"` - OwnerID *string `json:"ownerID,omitempty"` - EntityID *string `json:"entityID,omitempty"` -} - -// CreateOauthProviderInput is used for create OauthProvider object. -// Input was generated by ent. -type CreateOauthProviderInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the oauth provider's name - Name string `json:"name"` - // the client id for the oauth provider - ClientID string `json:"clientID"` - // the client secret - ClientSecret string `json:"clientSecret"` - // the redirect url - RedirectURL string `json:"redirectURL"` - // the scopes - Scopes string `json:"scopes"` - // the auth url of the provider - AuthURL string `json:"authURL"` - // the token url of the provider - TokenURL string `json:"tokenURL"` - // the auth style, 0: auto detect 1: third party log in 2: log in with username and password - AuthStyle string `json:"authStyle"` - // the URL to request user information by token - InfoURL string `json:"infoURL"` + // the organization id that owns the object OwnerID *string `json:"ownerID,omitempty"` + // the full name of the contact + FullName string `json:"fullName"` + // the title of the contact + Title *string `json:"title,omitempty"` + // the company of the contact + Company *string `json:"company,omitempty"` + // the email of the contact + Email *string `json:"email,omitempty"` + // the phone number of the contact + PhoneNumber *string `json:"phoneNumber,omitempty"` + // the address of the contact + Address *string `json:"address,omitempty"` + // status of the contact + Status enums.UserStatus `json:"status"` } -// CreateOhAuthTooTokenInput is used for create OhAuthTooToken object. -// Input was generated by ent. -type CreateOhAuthTooTokenInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - ClientID string `json:"clientID"` - Scopes []string `json:"scopes,omitempty"` - Nonce string `json:"nonce"` - ClaimsUserID string `json:"claimsUserID"` - ClaimsUsername string `json:"claimsUsername"` - ClaimsEmail string `json:"claimsEmail"` - ClaimsEmailVerified bool `json:"claimsEmailVerified"` - ClaimsGroups []string `json:"claimsGroups,omitempty"` - ClaimsPreferredUsername string `json:"claimsPreferredUsername"` - ConnectorID string `json:"connectorID"` - ConnectorData []string `json:"connectorData,omitempty"` - LastUsed *time.Time `json:"lastUsed,omitempty"` - IntegrationIDs []string `json:"integrationIDs,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` -} - -// CreateOrgMembershipInput is used for create OrgMembership object. -// Input was generated by ent. -type CreateOrgMembershipInput struct { - Role *enums.Role `json:"role,omitempty"` - OrganizationID string `json:"organizationID"` - UserID string `json:"userID"` - EventIDs []string `json:"eventIDs,omitempty"` -} +func (ContactHistory) IsNode() {} -// CreateOrganizationInput is used for create Organization object. -// Input was generated by ent. -type CreateOrganizationInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the name of the organization - Name string `json:"name"` - // The organization's displayed 'friendly' name - DisplayName *string `json:"displayName,omitempty"` - // An optional description of the organization - Description *string `json:"description,omitempty"` - // orgs directly associated with a user - PersonalOrg *bool `json:"personalOrg,omitempty"` - // URL of the user's remote avatar - AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` - // Whether the organization has a dedicated database - DedicatedDb *bool `json:"dedicatedDb,omitempty"` - ParentID *string `json:"parentID,omitempty"` - GroupIDs []string `json:"groupIDs,omitempty"` - TemplateIDs []string `json:"templateIDs,omitempty"` - IntegrationIDs []string `json:"integrationIDs,omitempty"` - SettingID *string `json:"settingID,omitempty"` - DocumentdatumIDs []string `json:"documentdatumIDs,omitempty"` - EntitlementIDs []string `json:"entitlementIDs,omitempty"` - OrganizationEntitlementIDs []string `json:"organizationEntitlementIDs,omitempty"` - PersonalAccessTokenIDs []string `json:"personalAccessTokenIDs,omitempty"` - APITokenIDs []string `json:"apiTokenIDs,omitempty"` - OauthproviderIDs []string `json:"oauthproviderIDs,omitempty"` - UserIDs []string `json:"userIDs,omitempty"` - InviteIDs []string `json:"inviteIDs,omitempty"` - SubscriberIDs []string `json:"subscriberIDs,omitempty"` - WebhookIDs []string `json:"webhookIDs,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` - SecretIDs []string `json:"secretIDs,omitempty"` - FeatureIDs []string `json:"featureIDs,omitempty"` - FileIDs []string `json:"fileIDs,omitempty"` - EntitlementplanIDs []string `json:"entitlementplanIDs,omitempty"` - EntityIDs []string `json:"entityIDs,omitempty"` - EntitytypeIDs []string `json:"entitytypeIDs,omitempty"` - ContactIDs []string `json:"contactIDs,omitempty"` - NoteIDs []string `json:"noteIDs,omitempty"` - CreateOrgSettings *CreateOrganizationSettingInput `json:"createOrgSettings,omitempty"` +// A connection to a list of items. +type ContactHistoryConnection struct { + // A list of edges. + Edges []*ContactHistoryEdge `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"` } -// CreateOrganizationSettingInput is used for create OrganizationSetting object. -// Input was generated by ent. -type CreateOrganizationSettingInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // domains associated with the organization - Domains []string `json:"domains,omitempty"` - // Name of the person to contact for billing - BillingContact *string `json:"billingContact,omitempty"` - // Email address of the person to contact for billing - BillingEmail *string `json:"billingEmail,omitempty"` - // Phone number to contact for billing - BillingPhone *string `json:"billingPhone,omitempty"` - // Address to send billing information to - BillingAddress *string `json:"billingAddress,omitempty"` - // Usually government-issued tax ID or business ID such as ABN in Australia - TaxIdentifier *string `json:"taxIdentifier,omitempty"` - // geographical location of the organization - GeoLocation *enums.Region `json:"geoLocation,omitempty"` - OrganizationID *string `json:"organizationID,omitempty"` - FileIDs []string `json:"fileIDs,omitempty"` +// An edge in a connection. +type ContactHistoryEdge struct { + // The item at the end of the edge. + Node *ContactHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` } -// CreatePersonalAccessTokenInput is used for create PersonalAccessToken object. +// ContactHistoryWhereInput is used for filtering ContactHistory objects. // Input was generated by ent. -type CreatePersonalAccessTokenInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the name associated with the token - Name string `json:"name"` - // when the token expires - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - // a description of the token's purpose - Description *string `json:"description,omitempty"` - Scopes []string `json:"scopes,omitempty"` - LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` - OwnerID string `json:"ownerID"` - OrganizationIDs []string `json:"organizationIDs,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` -} - -// CreateSubscriberInput is used for create Subscriber object. -// Input was generated by ent. -type CreateSubscriberInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // email address of the subscriber - Email string `json:"email"` - // phone number of the subscriber - PhoneNumber *string `json:"phoneNumber,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` -} - -// CreateTFASettingInput is used for create TFASetting object. -// Input was generated by ent. -type CreateTFASettingInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app - TotpAllowed *bool `json:"totpAllowed,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` -} - -// CreateTemplateInput is used for create Template object. -// Input was generated by ent. -type CreateTemplateInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the name of the template - Name string `json:"name"` - // the type of the template, either a provided template or an implementation (document) - TemplateType *enums.DocumentType `json:"templateType,omitempty"` - // the description of the template - Description *string `json:"description,omitempty"` - // the jsonschema object of the template - Jsonconfig json.RawMessage `json:"jsonconfig"` - // the uischema for the template to render in the UI - Uischema json.RawMessage `json:"uischema,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - DocumentIDs []string `json:"documentIDs,omitempty"` - FileIDs []string `json:"fileIDs,omitempty"` -} - -// CreateUserInput is used for create User object. -// Input was generated by ent. -type CreateUserInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - Email string `json:"email"` - FirstName *string `json:"firstName,omitempty"` - LastName *string `json:"lastName,omitempty"` - // The user's displayed 'friendly' name - DisplayName string `json:"displayName"` - // URL of the user's remote avatar - AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` - // The user's local avatar file - AvatarLocalFile *string `json:"avatarLocalFile,omitempty"` - // The time the user's (local) avatar was last updated - AvatarUpdatedAt *time.Time `json:"avatarUpdatedAt,omitempty"` - // the time the user was last seen - LastSeen *time.Time `json:"lastSeen,omitempty"` - // user password hash - Password *string `json:"password,omitempty"` - // the Subject of the user JWT - Sub *string `json:"sub,omitempty"` - // auth provider used to register the account - AuthProvider *enums.AuthProvider `json:"authProvider,omitempty"` - // the user's role - Role *enums.Role `json:"role,omitempty"` - PersonalAccessTokenIDs []string `json:"personalAccessTokenIDs,omitempty"` - TfaSettingIDs []string `json:"tfaSettingIDs,omitempty"` - SettingID string `json:"settingID"` - EmailVerificationTokenIDs []string `json:"emailVerificationTokenIDs,omitempty"` - PasswordResetTokenIDs []string `json:"passwordResetTokenIDs,omitempty"` - GroupIDs []string `json:"groupIDs,omitempty"` - OrganizationIDs []string `json:"organizationIDs,omitempty"` - WebauthnIDs []string `json:"webauthnIDs,omitempty"` - FileIDs []string `json:"fileIDs,omitempty"` - FileID *string `json:"fileID,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` -} - -// CreateUserSettingInput is used for create UserSetting object. -// Input was generated by ent. -type CreateUserSettingInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // user account is locked if unconfirmed or explicitly locked - Locked *bool `json:"locked,omitempty"` - // The time notifications regarding the user were silenced - SilencedAt *time.Time `json:"silencedAt,omitempty"` - // The time the user was suspended - SuspendedAt *time.Time `json:"suspendedAt,omitempty"` - // status of the user account - Status *enums.UserStatus `json:"status,omitempty"` - // whether the user has confirmed their email address - EmailConfirmed *bool `json:"emailConfirmed,omitempty"` - // specifies a user may complete authentication by verifying a WebAuthn capable device - IsWebauthnAllowed *bool `json:"isWebauthnAllowed,omitempty"` - // whether the user has two factor authentication enabled - IsTfaEnabled *bool `json:"isTfaEnabled,omitempty"` - UserID *string `json:"userID,omitempty"` - DefaultOrgID *string `json:"defaultOrgID,omitempty"` - FileIDs []string `json:"fileIDs,omitempty"` -} - -// CreateWebhookInput is used for create Webhook object. -// Input was generated by ent. -type CreateWebhookInput struct { - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the name of the webhook - Name string `json:"name"` - // a description of the webhook - Description *string `json:"description,omitempty"` - // the url to send the webhook to - DestinationURL string `json:"destinationURL"` - // indicates if the webhook is active and enabled - Enabled *bool `json:"enabled,omitempty"` - // the number of failures - Failures *int64 `json:"failures,omitempty"` - // the last error message - LastError *string `json:"lastError,omitempty"` - // the last response - LastResponse *string `json:"lastResponse,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - EventIDs []string `json:"eventIDs,omitempty"` - IntegrationIDs []string `json:"integrationIDs,omitempty"` -} - -type DocumentData 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"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the template id of the document - TemplateID string `json:"templateID"` - // the json data of the document - Data json.RawMessage `json:"data"` - Owner *Organization `json:"owner,omitempty"` - Template *Template `json:"template"` - Entity []*Entity `json:"entity,omitempty"` - Files []*File `json:"files,omitempty"` -} - -func (DocumentData) IsNode() {} - -// Return response for createBulkDocumentData mutation -type DocumentDataBulkCreatePayload struct { - // Created documentData - DocumentData []*DocumentData `json:"documentData,omitempty"` -} - -// A connection to a list of items. -type DocumentDataConnection struct { - // A list of edges. - Edges []*DocumentDataEdge `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 createDocumentData mutation -type DocumentDataCreatePayload struct { - // Created documentData - DocumentData *DocumentData `json:"documentData"` -} - -// Return response for deleteDocumentData mutation -type DocumentDataDeletePayload struct { - // Deleted documentData ID - DeletedID string `json:"deletedID"` -} - -// An edge in a connection. -type DocumentDataEdge struct { - // The item at the end of the edge. - Node *DocumentData `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` -} - -type DocumentDataHistory struct { - ID string `json:"id"` - HistoryTime time.Time `json:"historyTime"` - Ref *string `json:"ref,omitempty"` - Operation history.OpType `json:"operation"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - CreatedBy *string `json:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the template id of the document - TemplateID string `json:"templateID"` - // the json data of the document - Data json.RawMessage `json:"data"` -} - -func (DocumentDataHistory) IsNode() {} - -// A connection to a list of items. -type DocumentDataHistoryConnection struct { - // A list of edges. - Edges []*DocumentDataHistoryEdge `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"` -} - -// An edge in a connection. -type DocumentDataHistoryEdge struct { - // The item at the end of the edge. - Node *DocumentDataHistory `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` -} - -// DocumentDataHistoryWhereInput is used for filtering DocumentDataHistory objects. -// Input was generated by ent. -type DocumentDataHistoryWhereInput struct { - Not *DocumentDataHistoryWhereInput `json:"not,omitempty"` - And []*DocumentDataHistoryWhereInput `json:"and,omitempty"` - Or []*DocumentDataHistoryWhereInput `json:"or,omitempty"` +type ContactHistoryWhereInput struct { + Not *ContactHistoryWhereInput `json:"not,omitempty"` + And []*ContactHistoryWhereInput `json:"and,omitempty"` + Or []*ContactHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -1742,40 +1097,125 @@ type DocumentDataHistoryWhereInput struct { OwnerIDNotNil *bool `json:"ownerIDNotNil,omitempty"` OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` - // template_id field predicates - TemplateID *string `json:"templateID,omitempty"` - TemplateIdneq *string `json:"templateIDNEQ,omitempty"` - TemplateIDIn []string `json:"templateIDIn,omitempty"` - TemplateIDNotIn []string `json:"templateIDNotIn,omitempty"` - TemplateIdgt *string `json:"templateIDGT,omitempty"` - TemplateIdgte *string `json:"templateIDGTE,omitempty"` - TemplateIdlt *string `json:"templateIDLT,omitempty"` - TemplateIdlte *string `json:"templateIDLTE,omitempty"` - TemplateIDContains *string `json:"templateIDContains,omitempty"` - TemplateIDHasPrefix *string `json:"templateIDHasPrefix,omitempty"` - TemplateIDHasSuffix *string `json:"templateIDHasSuffix,omitempty"` - TemplateIDEqualFold *string `json:"templateIDEqualFold,omitempty"` - TemplateIDContainsFold *string `json:"templateIDContainsFold,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"` + FullNameGt *string `json:"fullNameGT,omitempty"` + FullNameGte *string `json:"fullNameGTE,omitempty"` + FullNameLt *string `json:"fullNameLT,omitempty"` + FullNameLte *string `json:"fullNameLTE,omitempty"` + FullNameContains *string `json:"fullNameContains,omitempty"` + FullNameHasPrefix *string `json:"fullNameHasPrefix,omitempty"` + FullNameHasSuffix *string `json:"fullNameHasSuffix,omitempty"` + FullNameEqualFold *string `json:"fullNameEqualFold,omitempty"` + FullNameContainsFold *string `json:"fullNameContainsFold,omitempty"` + // title field predicates + Title *string `json:"title,omitempty"` + TitleNeq *string `json:"titleNEQ,omitempty"` + TitleIn []string `json:"titleIn,omitempty"` + TitleNotIn []string `json:"titleNotIn,omitempty"` + TitleGt *string `json:"titleGT,omitempty"` + TitleGte *string `json:"titleGTE,omitempty"` + TitleLt *string `json:"titleLT,omitempty"` + TitleLte *string `json:"titleLTE,omitempty"` + TitleContains *string `json:"titleContains,omitempty"` + TitleHasPrefix *string `json:"titleHasPrefix,omitempty"` + TitleHasSuffix *string `json:"titleHasSuffix,omitempty"` + TitleIsNil *bool `json:"titleIsNil,omitempty"` + TitleNotNil *bool `json:"titleNotNil,omitempty"` + TitleEqualFold *string `json:"titleEqualFold,omitempty"` + TitleContainsFold *string `json:"titleContainsFold,omitempty"` + // company field predicates + Company *string `json:"company,omitempty"` + CompanyNeq *string `json:"companyNEQ,omitempty"` + CompanyIn []string `json:"companyIn,omitempty"` + CompanyNotIn []string `json:"companyNotIn,omitempty"` + CompanyGt *string `json:"companyGT,omitempty"` + CompanyGte *string `json:"companyGTE,omitempty"` + CompanyLt *string `json:"companyLT,omitempty"` + CompanyLte *string `json:"companyLTE,omitempty"` + CompanyContains *string `json:"companyContains,omitempty"` + CompanyHasPrefix *string `json:"companyHasPrefix,omitempty"` + CompanyHasSuffix *string `json:"companyHasSuffix,omitempty"` + CompanyIsNil *bool `json:"companyIsNil,omitempty"` + CompanyNotNil *bool `json:"companyNotNil,omitempty"` + CompanyEqualFold *string `json:"companyEqualFold,omitempty"` + CompanyContainsFold *string `json:"companyContainsFold,omitempty"` + // email field predicates + Email *string `json:"email,omitempty"` + EmailNeq *string `json:"emailNEQ,omitempty"` + EmailIn []string `json:"emailIn,omitempty"` + EmailNotIn []string `json:"emailNotIn,omitempty"` + EmailGt *string `json:"emailGT,omitempty"` + EmailGte *string `json:"emailGTE,omitempty"` + EmailLt *string `json:"emailLT,omitempty"` + EmailLte *string `json:"emailLTE,omitempty"` + EmailContains *string `json:"emailContains,omitempty"` + EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` + EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` + EmailIsNil *bool `json:"emailIsNil,omitempty"` + EmailNotNil *bool `json:"emailNotNil,omitempty"` + EmailEqualFold *string `json:"emailEqualFold,omitempty"` + EmailContainsFold *string `json:"emailContainsFold,omitempty"` + // phone_number field predicates + PhoneNumber *string `json:"phoneNumber,omitempty"` + PhoneNumberNeq *string `json:"phoneNumberNEQ,omitempty"` + PhoneNumberIn []string `json:"phoneNumberIn,omitempty"` + PhoneNumberNotIn []string `json:"phoneNumberNotIn,omitempty"` + PhoneNumberGt *string `json:"phoneNumberGT,omitempty"` + PhoneNumberGte *string `json:"phoneNumberGTE,omitempty"` + PhoneNumberLt *string `json:"phoneNumberLT,omitempty"` + PhoneNumberLte *string `json:"phoneNumberLTE,omitempty"` + PhoneNumberContains *string `json:"phoneNumberContains,omitempty"` + PhoneNumberHasPrefix *string `json:"phoneNumberHasPrefix,omitempty"` + PhoneNumberHasSuffix *string `json:"phoneNumberHasSuffix,omitempty"` + PhoneNumberIsNil *bool `json:"phoneNumberIsNil,omitempty"` + PhoneNumberNotNil *bool `json:"phoneNumberNotNil,omitempty"` + PhoneNumberEqualFold *string `json:"phoneNumberEqualFold,omitempty"` + PhoneNumberContainsFold *string `json:"phoneNumberContainsFold,omitempty"` + // address field predicates + Address *string `json:"address,omitempty"` + AddressNeq *string `json:"addressNEQ,omitempty"` + AddressIn []string `json:"addressIn,omitempty"` + AddressNotIn []string `json:"addressNotIn,omitempty"` + AddressGt *string `json:"addressGT,omitempty"` + AddressGte *string `json:"addressGTE,omitempty"` + AddressLt *string `json:"addressLT,omitempty"` + AddressLte *string `json:"addressLTE,omitempty"` + AddressContains *string `json:"addressContains,omitempty"` + AddressHasPrefix *string `json:"addressHasPrefix,omitempty"` + AddressHasSuffix *string `json:"addressHasSuffix,omitempty"` + AddressIsNil *bool `json:"addressIsNil,omitempty"` + AddressNotNil *bool `json:"addressNotNil,omitempty"` + AddressEqualFold *string `json:"addressEqualFold,omitempty"` + AddressContainsFold *string `json:"addressContainsFold,omitempty"` + // status field predicates + Status *enums.UserStatus `json:"status,omitempty"` + StatusNeq *enums.UserStatus `json:"statusNEQ,omitempty"` + StatusIn []enums.UserStatus `json:"statusIn,omitempty"` + StatusNotIn []enums.UserStatus `json:"statusNotIn,omitempty"` } -type DocumentDataSearchResult struct { - DocumentData []*DocumentData `json:"documentData,omitempty"` +type ContactSearchResult struct { + Contacts []*Contact `json:"contacts,omitempty"` } -func (DocumentDataSearchResult) IsSearchResult() {} +func (ContactSearchResult) IsSearchResult() {} -// Return response for updateDocumentData mutation -type DocumentDataUpdatePayload struct { - // Updated documentData - DocumentData *DocumentData `json:"documentData"` +// Return response for updateContact mutation +type ContactUpdatePayload struct { + // Updated contact + Contact *Contact `json:"contact"` } -// DocumentDataWhereInput is used for filtering DocumentData objects. +// ContactWhereInput is used for filtering Contact objects. // Input was generated by ent. -type DocumentDataWhereInput struct { - Not *DocumentDataWhereInput `json:"not,omitempty"` - And []*DocumentDataWhereInput `json:"and,omitempty"` - Or []*DocumentDataWhereInput `json:"or,omitempty"` +type ContactWhereInput struct { + Not *ContactWhereInput `json:"not,omitempty"` + And []*ContactWhereInput `json:"and,omitempty"` + Or []*ContactWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -1884,105 +1324,198 @@ type DocumentDataWhereInput struct { OwnerIDNotNil *bool `json:"ownerIDNotNil,omitempty"` OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` - // template_id field predicates - TemplateID *string `json:"templateID,omitempty"` - TemplateIdneq *string `json:"templateIDNEQ,omitempty"` - TemplateIDIn []string `json:"templateIDIn,omitempty"` - TemplateIDNotIn []string `json:"templateIDNotIn,omitempty"` - TemplateIdgt *string `json:"templateIDGT,omitempty"` - TemplateIdgte *string `json:"templateIDGTE,omitempty"` - TemplateIdlt *string `json:"templateIDLT,omitempty"` - TemplateIdlte *string `json:"templateIDLTE,omitempty"` - TemplateIDContains *string `json:"templateIDContains,omitempty"` - TemplateIDHasPrefix *string `json:"templateIDHasPrefix,omitempty"` - TemplateIDHasSuffix *string `json:"templateIDHasSuffix,omitempty"` - TemplateIDEqualFold *string `json:"templateIDEqualFold,omitempty"` - TemplateIDContainsFold *string `json:"templateIDContainsFold,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"` + FullNameGt *string `json:"fullNameGT,omitempty"` + FullNameGte *string `json:"fullNameGTE,omitempty"` + FullNameLt *string `json:"fullNameLT,omitempty"` + FullNameLte *string `json:"fullNameLTE,omitempty"` + FullNameContains *string `json:"fullNameContains,omitempty"` + FullNameHasPrefix *string `json:"fullNameHasPrefix,omitempty"` + FullNameHasSuffix *string `json:"fullNameHasSuffix,omitempty"` + FullNameEqualFold *string `json:"fullNameEqualFold,omitempty"` + FullNameContainsFold *string `json:"fullNameContainsFold,omitempty"` + // title field predicates + Title *string `json:"title,omitempty"` + TitleNeq *string `json:"titleNEQ,omitempty"` + TitleIn []string `json:"titleIn,omitempty"` + TitleNotIn []string `json:"titleNotIn,omitempty"` + TitleGt *string `json:"titleGT,omitempty"` + TitleGte *string `json:"titleGTE,omitempty"` + TitleLt *string `json:"titleLT,omitempty"` + TitleLte *string `json:"titleLTE,omitempty"` + TitleContains *string `json:"titleContains,omitempty"` + TitleHasPrefix *string `json:"titleHasPrefix,omitempty"` + TitleHasSuffix *string `json:"titleHasSuffix,omitempty"` + TitleIsNil *bool `json:"titleIsNil,omitempty"` + TitleNotNil *bool `json:"titleNotNil,omitempty"` + TitleEqualFold *string `json:"titleEqualFold,omitempty"` + TitleContainsFold *string `json:"titleContainsFold,omitempty"` + // company field predicates + Company *string `json:"company,omitempty"` + CompanyNeq *string `json:"companyNEQ,omitempty"` + CompanyIn []string `json:"companyIn,omitempty"` + CompanyNotIn []string `json:"companyNotIn,omitempty"` + CompanyGt *string `json:"companyGT,omitempty"` + CompanyGte *string `json:"companyGTE,omitempty"` + CompanyLt *string `json:"companyLT,omitempty"` + CompanyLte *string `json:"companyLTE,omitempty"` + CompanyContains *string `json:"companyContains,omitempty"` + CompanyHasPrefix *string `json:"companyHasPrefix,omitempty"` + CompanyHasSuffix *string `json:"companyHasSuffix,omitempty"` + CompanyIsNil *bool `json:"companyIsNil,omitempty"` + CompanyNotNil *bool `json:"companyNotNil,omitempty"` + CompanyEqualFold *string `json:"companyEqualFold,omitempty"` + CompanyContainsFold *string `json:"companyContainsFold,omitempty"` + // email field predicates + Email *string `json:"email,omitempty"` + EmailNeq *string `json:"emailNEQ,omitempty"` + EmailIn []string `json:"emailIn,omitempty"` + EmailNotIn []string `json:"emailNotIn,omitempty"` + EmailGt *string `json:"emailGT,omitempty"` + EmailGte *string `json:"emailGTE,omitempty"` + EmailLt *string `json:"emailLT,omitempty"` + EmailLte *string `json:"emailLTE,omitempty"` + EmailContains *string `json:"emailContains,omitempty"` + EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` + EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` + EmailIsNil *bool `json:"emailIsNil,omitempty"` + EmailNotNil *bool `json:"emailNotNil,omitempty"` + EmailEqualFold *string `json:"emailEqualFold,omitempty"` + EmailContainsFold *string `json:"emailContainsFold,omitempty"` + // phone_number field predicates + PhoneNumber *string `json:"phoneNumber,omitempty"` + PhoneNumberNeq *string `json:"phoneNumberNEQ,omitempty"` + PhoneNumberIn []string `json:"phoneNumberIn,omitempty"` + PhoneNumberNotIn []string `json:"phoneNumberNotIn,omitempty"` + PhoneNumberGt *string `json:"phoneNumberGT,omitempty"` + PhoneNumberGte *string `json:"phoneNumberGTE,omitempty"` + PhoneNumberLt *string `json:"phoneNumberLT,omitempty"` + PhoneNumberLte *string `json:"phoneNumberLTE,omitempty"` + PhoneNumberContains *string `json:"phoneNumberContains,omitempty"` + PhoneNumberHasPrefix *string `json:"phoneNumberHasPrefix,omitempty"` + PhoneNumberHasSuffix *string `json:"phoneNumberHasSuffix,omitempty"` + PhoneNumberIsNil *bool `json:"phoneNumberIsNil,omitempty"` + PhoneNumberNotNil *bool `json:"phoneNumberNotNil,omitempty"` + PhoneNumberEqualFold *string `json:"phoneNumberEqualFold,omitempty"` + PhoneNumberContainsFold *string `json:"phoneNumberContainsFold,omitempty"` + // address field predicates + Address *string `json:"address,omitempty"` + AddressNeq *string `json:"addressNEQ,omitempty"` + AddressIn []string `json:"addressIn,omitempty"` + AddressNotIn []string `json:"addressNotIn,omitempty"` + AddressGt *string `json:"addressGT,omitempty"` + AddressGte *string `json:"addressGTE,omitempty"` + AddressLt *string `json:"addressLT,omitempty"` + AddressLte *string `json:"addressLTE,omitempty"` + AddressContains *string `json:"addressContains,omitempty"` + AddressHasPrefix *string `json:"addressHasPrefix,omitempty"` + AddressHasSuffix *string `json:"addressHasSuffix,omitempty"` + AddressIsNil *bool `json:"addressIsNil,omitempty"` + AddressNotNil *bool `json:"addressNotNil,omitempty"` + AddressEqualFold *string `json:"addressEqualFold,omitempty"` + AddressContainsFold *string `json:"addressContainsFold,omitempty"` + // status field predicates + Status *enums.UserStatus `json:"status,omitempty"` + StatusNeq *enums.UserStatus `json:"statusNEQ,omitempty"` + StatusIn []enums.UserStatus `json:"statusIn,omitempty"` + StatusNotIn []enums.UserStatus `json:"statusNotIn,omitempty"` // owner edge predicates HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // template edge predicates - HasTemplate *bool `json:"hasTemplate,omitempty"` - HasTemplateWith []*TemplateWhereInput `json:"hasTemplateWith,omitempty"` - // entity edge predicates - HasEntity *bool `json:"hasEntity,omitempty"` - HasEntityWith []*EntityWhereInput `json:"hasEntityWith,omitempty"` + // entities edge predicates + HasEntities *bool `json:"hasEntities,omitempty"` + HasEntitiesWith []*EntityWhereInput `json:"hasEntitiesWith,omitempty"` // files edge predicates HasFiles *bool `json:"hasFiles,omitempty"` HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` } -type Entitlement struct { +type Control 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"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy *string `json:"deletedBy,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the plan to which the entitlement belongs - PlanID string `json:"planID"` - // the organization to which the entitlement belongs - OrganizationID string `json:"organizationID"` - // used to store references to external systems, e.g. Stripe - ExternalCustomerID *string `json:"externalCustomerID,omitempty"` - // used to store references to external systems, e.g. Stripe - ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` - // whether or not the customers entitlement expires - expires_at will show the time - Expires bool `json:"expires"` - // the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - // whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at - Cancelled bool `json:"cancelled"` - Owner *Organization `json:"owner,omitempty"` - Plan *EntitlementPlan `json:"plan"` - Organization *Organization `json:"organization"` - Events []*Event `json:"events,omitempty"` -} - -func (Entitlement) IsNode() {} - -// Return response for createBulkEntitlement mutation -type EntitlementBulkCreatePayload struct { - // Created entitlements - Entitlements []*Entitlement `json:"entitlements,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the control + Name string `json:"name"` + // description of the control + Description *string `json:"description,omitempty"` + // status of the control + Status *string `json:"status,omitempty"` + // type of the control + ControlType *string `json:"controlType,omitempty"` + // version of the control + Version *string `json:"version,omitempty"` + // control number or identifier + ControlNumber *string `json:"controlNumber,omitempty"` + // family associated with the control + Family *string `json:"family,omitempty"` + // class associated with the control + Class *string `json:"class,omitempty"` + // source of the control, e.g. framework, template, custom, etc. + Source *string `json:"source,omitempty"` + // which control objectives are satisfied by the control + Satisfies *string `json:"satisfies,omitempty"` + // mapped frameworks + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + // json data including details of the control + Details map[string]interface{} `json:"details,omitempty"` + Procedures []*Procedure `json:"procedures,omitempty"` + Subcontrols []*Subcontrol `json:"subcontrols,omitempty"` + Controlobjectives []*ControlObjective `json:"controlobjectives,omitempty"` + Standard []*Standard `json:"standard,omitempty"` + Narratives []*Narrative `json:"narratives,omitempty"` + Risks []*Risk `json:"risks,omitempty"` + Actionplans []*ActionPlan `json:"actionplans,omitempty"` +} + +func (Control) IsNode() {} + +// Return response for createBulkControl mutation +type ControlBulkCreatePayload struct { + // Created controls + Controls []*Control `json:"controls,omitempty"` } // A connection to a list of items. -type EntitlementConnection struct { +type ControlConnection struct { // A list of edges. - Edges []*EntitlementEdge `json:"edges,omitempty"` + Edges []*ControlEdge `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 createEntitlement mutation -type EntitlementCreatePayload struct { - // Created entitlement - Entitlement *Entitlement `json:"entitlement"` +// Return response for createControl mutation +type ControlCreatePayload struct { + // Created control + Control *Control `json:"control"` } -// Return response for deleteEntitlement mutation -type EntitlementDeletePayload struct { - // Deleted entitlement ID +// Return response for deleteControl mutation +type ControlDeletePayload struct { + // Deleted control ID DeletedID string `json:"deletedID"` } // An edge in a connection. -type EntitlementEdge struct { +type ControlEdge struct { // The item at the end of the edge. - Node *Entitlement `json:"node,omitempty"` + Node *Control `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -type EntitlementHistory struct { +type ControlHistory struct { ID string `json:"id"` HistoryTime time.Time `json:"historyTime"` Ref *string `json:"ref,omitempty"` @@ -1991,34 +1524,42 @@ type EntitlementHistory struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object - Tags []string `json:"tags,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the plan to which the entitlement belongs - PlanID string `json:"planID"` - // the organization to which the entitlement belongs - OrganizationID string `json:"organizationID"` - // used to store references to external systems, e.g. Stripe - ExternalCustomerID *string `json:"externalCustomerID,omitempty"` - // used to store references to external systems, e.g. Stripe - ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` - // whether or not the customers entitlement expires - expires_at will show the time - Expires bool `json:"expires"` - // the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - // whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at - Cancelled bool `json:"cancelled"` -} - -func (EntitlementHistory) IsNode() {} + Tags []string `json:"tags,omitempty"` + // the name of the control + Name string `json:"name"` + // description of the control + Description *string `json:"description,omitempty"` + // status of the control + Status *string `json:"status,omitempty"` + // type of the control + ControlType *string `json:"controlType,omitempty"` + // version of the control + Version *string `json:"version,omitempty"` + // control number or identifier + ControlNumber *string `json:"controlNumber,omitempty"` + // family associated with the control + Family *string `json:"family,omitempty"` + // class associated with the control + Class *string `json:"class,omitempty"` + // source of the control, e.g. framework, template, custom, etc. + Source *string `json:"source,omitempty"` + // which control objectives are satisfied by the control + Satisfies *string `json:"satisfies,omitempty"` + // mapped frameworks + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + // json data including details of the control + Details map[string]interface{} `json:"details,omitempty"` +} + +func (ControlHistory) IsNode() {} // A connection to a list of items. -type EntitlementHistoryConnection struct { +type ControlHistoryConnection struct { // A list of edges. - Edges []*EntitlementHistoryEdge `json:"edges,omitempty"` + Edges []*ControlHistoryEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. @@ -2026,19 +1567,19 @@ type EntitlementHistoryConnection struct { } // An edge in a connection. -type EntitlementHistoryEdge struct { +type ControlHistoryEdge struct { // The item at the end of the edge. - Node *EntitlementHistory `json:"node,omitempty"` + Node *ControlHistory `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -// EntitlementHistoryWhereInput is used for filtering EntitlementHistory objects. +// ControlHistoryWhereInput is used for filtering ControlHistory objects. // Input was generated by ent. -type EntitlementHistoryWhereInput struct { - Not *EntitlementHistoryWhereInput `json:"not,omitempty"` - And []*EntitlementHistoryWhereInput `json:"and,omitempty"` - Or []*EntitlementHistoryWhereInput `json:"or,omitempty"` +type ControlHistoryWhereInput struct { + Not *ControlHistoryWhereInput `json:"not,omitempty"` + And []*ControlHistoryWhereInput `json:"and,omitempty"` + Or []*ControlHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -2161,102 +1702,183 @@ type EntitlementHistoryWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - // plan_id field predicates - PlanID *string `json:"planID,omitempty"` - PlanIdneq *string `json:"planIDNEQ,omitempty"` - PlanIDIn []string `json:"planIDIn,omitempty"` - PlanIDNotIn []string `json:"planIDNotIn,omitempty"` - PlanIdgt *string `json:"planIDGT,omitempty"` - PlanIdgte *string `json:"planIDGTE,omitempty"` - PlanIdlt *string `json:"planIDLT,omitempty"` - PlanIdlte *string `json:"planIDLTE,omitempty"` - PlanIDContains *string `json:"planIDContains,omitempty"` - PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` - PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` - PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` - PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` - // organization_id field predicates - OrganizationID *string `json:"organizationID,omitempty"` - OrganizationIdneq *string `json:"organizationIDNEQ,omitempty"` - OrganizationIDIn []string `json:"organizationIDIn,omitempty"` - OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` - OrganizationIdgt *string `json:"organizationIDGT,omitempty"` - OrganizationIdgte *string `json:"organizationIDGTE,omitempty"` - OrganizationIdlt *string `json:"organizationIDLT,omitempty"` - OrganizationIdlte *string `json:"organizationIDLTE,omitempty"` - OrganizationIDContains *string `json:"organizationIDContains,omitempty"` - OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` - OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` - OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` - OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` - // external_customer_id field predicates - ExternalCustomerID *string `json:"externalCustomerID,omitempty"` - ExternalCustomerIdneq *string `json:"externalCustomerIDNEQ,omitempty"` - ExternalCustomerIDIn []string `json:"externalCustomerIDIn,omitempty"` - ExternalCustomerIDNotIn []string `json:"externalCustomerIDNotIn,omitempty"` - ExternalCustomerIdgt *string `json:"externalCustomerIDGT,omitempty"` - ExternalCustomerIdgte *string `json:"externalCustomerIDGTE,omitempty"` - ExternalCustomerIdlt *string `json:"externalCustomerIDLT,omitempty"` - ExternalCustomerIdlte *string `json:"externalCustomerIDLTE,omitempty"` - ExternalCustomerIDContains *string `json:"externalCustomerIDContains,omitempty"` - ExternalCustomerIDHasPrefix *string `json:"externalCustomerIDHasPrefix,omitempty"` - ExternalCustomerIDHasSuffix *string `json:"externalCustomerIDHasSuffix,omitempty"` - ExternalCustomerIDIsNil *bool `json:"externalCustomerIDIsNil,omitempty"` - ExternalCustomerIDNotNil *bool `json:"externalCustomerIDNotNil,omitempty"` - ExternalCustomerIDEqualFold *string `json:"externalCustomerIDEqualFold,omitempty"` - ExternalCustomerIDContainsFold *string `json:"externalCustomerIDContainsFold,omitempty"` - // external_subscription_id field predicates - ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` - ExternalSubscriptionIdneq *string `json:"externalSubscriptionIDNEQ,omitempty"` - ExternalSubscriptionIDIn []string `json:"externalSubscriptionIDIn,omitempty"` - ExternalSubscriptionIDNotIn []string `json:"externalSubscriptionIDNotIn,omitempty"` - ExternalSubscriptionIdgt *string `json:"externalSubscriptionIDGT,omitempty"` - ExternalSubscriptionIdgte *string `json:"externalSubscriptionIDGTE,omitempty"` - ExternalSubscriptionIdlt *string `json:"externalSubscriptionIDLT,omitempty"` - ExternalSubscriptionIdlte *string `json:"externalSubscriptionIDLTE,omitempty"` - ExternalSubscriptionIDContains *string `json:"externalSubscriptionIDContains,omitempty"` - ExternalSubscriptionIDHasPrefix *string `json:"externalSubscriptionIDHasPrefix,omitempty"` - ExternalSubscriptionIDHasSuffix *string `json:"externalSubscriptionIDHasSuffix,omitempty"` - ExternalSubscriptionIDIsNil *bool `json:"externalSubscriptionIDIsNil,omitempty"` - ExternalSubscriptionIDNotNil *bool `json:"externalSubscriptionIDNotNil,omitempty"` - ExternalSubscriptionIDEqualFold *string `json:"externalSubscriptionIDEqualFold,omitempty"` - ExternalSubscriptionIDContainsFold *string `json:"externalSubscriptionIDContainsFold,omitempty"` - // expires field predicates - Expires *bool `json:"expires,omitempty"` - ExpiresNeq *bool `json:"expiresNEQ,omitempty"` - // expires_at field predicates - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - ExpiresAtNeq *time.Time `json:"expiresAtNEQ,omitempty"` - ExpiresAtIn []*time.Time `json:"expiresAtIn,omitempty"` - ExpiresAtNotIn []*time.Time `json:"expiresAtNotIn,omitempty"` - ExpiresAtGt *time.Time `json:"expiresAtGT,omitempty"` - ExpiresAtGte *time.Time `json:"expiresAtGTE,omitempty"` - ExpiresAtLt *time.Time `json:"expiresAtLT,omitempty"` - ExpiresAtLte *time.Time `json:"expiresAtLTE,omitempty"` - ExpiresAtIsNil *bool `json:"expiresAtIsNil,omitempty"` - ExpiresAtNotNil *bool `json:"expiresAtNotNil,omitempty"` - // cancelled field predicates - Cancelled *bool `json:"cancelled,omitempty"` - CancelledNeq *bool `json:"cancelledNEQ,omitempty"` -} - -type EntitlementPlan struct { + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // control_type field predicates + ControlType *string `json:"controlType,omitempty"` + ControlTypeNeq *string `json:"controlTypeNEQ,omitempty"` + ControlTypeIn []string `json:"controlTypeIn,omitempty"` + ControlTypeNotIn []string `json:"controlTypeNotIn,omitempty"` + ControlTypeGt *string `json:"controlTypeGT,omitempty"` + ControlTypeGte *string `json:"controlTypeGTE,omitempty"` + ControlTypeLt *string `json:"controlTypeLT,omitempty"` + ControlTypeLte *string `json:"controlTypeLTE,omitempty"` + ControlTypeContains *string `json:"controlTypeContains,omitempty"` + ControlTypeHasPrefix *string `json:"controlTypeHasPrefix,omitempty"` + ControlTypeHasSuffix *string `json:"controlTypeHasSuffix,omitempty"` + ControlTypeIsNil *bool `json:"controlTypeIsNil,omitempty"` + ControlTypeNotNil *bool `json:"controlTypeNotNil,omitempty"` + ControlTypeEqualFold *string `json:"controlTypeEqualFold,omitempty"` + ControlTypeContainsFold *string `json:"controlTypeContainsFold,omitempty"` + // version field predicates + Version *string `json:"version,omitempty"` + VersionNeq *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGt *string `json:"versionGT,omitempty"` + VersionGte *string `json:"versionGTE,omitempty"` + VersionLt *string `json:"versionLT,omitempty"` + VersionLte *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil *bool `json:"versionIsNil,omitempty"` + VersionNotNil *bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // control_number field predicates + ControlNumber *string `json:"controlNumber,omitempty"` + ControlNumberNeq *string `json:"controlNumberNEQ,omitempty"` + ControlNumberIn []string `json:"controlNumberIn,omitempty"` + ControlNumberNotIn []string `json:"controlNumberNotIn,omitempty"` + ControlNumberGt *string `json:"controlNumberGT,omitempty"` + ControlNumberGte *string `json:"controlNumberGTE,omitempty"` + ControlNumberLt *string `json:"controlNumberLT,omitempty"` + ControlNumberLte *string `json:"controlNumberLTE,omitempty"` + ControlNumberContains *string `json:"controlNumberContains,omitempty"` + ControlNumberHasPrefix *string `json:"controlNumberHasPrefix,omitempty"` + ControlNumberHasSuffix *string `json:"controlNumberHasSuffix,omitempty"` + ControlNumberIsNil *bool `json:"controlNumberIsNil,omitempty"` + ControlNumberNotNil *bool `json:"controlNumberNotNil,omitempty"` + ControlNumberEqualFold *string `json:"controlNumberEqualFold,omitempty"` + ControlNumberContainsFold *string `json:"controlNumberContainsFold,omitempty"` + // family field predicates + Family *string `json:"family,omitempty"` + FamilyNeq *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGt *string `json:"familyGT,omitempty"` + FamilyGte *string `json:"familyGTE,omitempty"` + FamilyLt *string `json:"familyLT,omitempty"` + FamilyLte *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil *bool `json:"familyIsNil,omitempty"` + FamilyNotNil *bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + // class field predicates + Class *string `json:"class,omitempty"` + ClassNeq *string `json:"classNEQ,omitempty"` + ClassIn []string `json:"classIn,omitempty"` + ClassNotIn []string `json:"classNotIn,omitempty"` + ClassGt *string `json:"classGT,omitempty"` + ClassGte *string `json:"classGTE,omitempty"` + ClassLt *string `json:"classLT,omitempty"` + ClassLte *string `json:"classLTE,omitempty"` + ClassContains *string `json:"classContains,omitempty"` + ClassHasPrefix *string `json:"classHasPrefix,omitempty"` + ClassHasSuffix *string `json:"classHasSuffix,omitempty"` + ClassIsNil *bool `json:"classIsNil,omitempty"` + ClassNotNil *bool `json:"classNotNil,omitempty"` + ClassEqualFold *string `json:"classEqualFold,omitempty"` + ClassContainsFold *string `json:"classContainsFold,omitempty"` + // source field predicates + Source *string `json:"source,omitempty"` + SourceNeq *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGt *string `json:"sourceGT,omitempty"` + SourceGte *string `json:"sourceGTE,omitempty"` + SourceLt *string `json:"sourceLT,omitempty"` + SourceLte *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil *bool `json:"sourceIsNil,omitempty"` + SourceNotNil *bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + // satisfies field predicates + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNeq *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGt *string `json:"satisfiesGT,omitempty"` + SatisfiesGte *string `json:"satisfiesGTE,omitempty"` + SatisfiesLt *string `json:"satisfiesLT,omitempty"` + SatisfiesLte *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil *bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil *bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` + // mapped_frameworks field predicates + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + MappedFrameworksNeq *string `json:"mappedFrameworksNEQ,omitempty"` + MappedFrameworksIn []string `json:"mappedFrameworksIn,omitempty"` + MappedFrameworksNotIn []string `json:"mappedFrameworksNotIn,omitempty"` + MappedFrameworksGt *string `json:"mappedFrameworksGT,omitempty"` + MappedFrameworksGte *string `json:"mappedFrameworksGTE,omitempty"` + MappedFrameworksLt *string `json:"mappedFrameworksLT,omitempty"` + MappedFrameworksLte *string `json:"mappedFrameworksLTE,omitempty"` + MappedFrameworksContains *string `json:"mappedFrameworksContains,omitempty"` + MappedFrameworksHasPrefix *string `json:"mappedFrameworksHasPrefix,omitempty"` + MappedFrameworksHasSuffix *string `json:"mappedFrameworksHasSuffix,omitempty"` + MappedFrameworksIsNil *bool `json:"mappedFrameworksIsNil,omitempty"` + MappedFrameworksNotNil *bool `json:"mappedFrameworksNotNil,omitempty"` + MappedFrameworksEqualFold *string `json:"mappedFrameworksEqualFold,omitempty"` + MappedFrameworksContainsFold *string `json:"mappedFrameworksContainsFold,omitempty"` +} + +type ControlObjective struct { ID string `json:"id"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` @@ -2266,124 +1888,76 @@ type EntitlementPlan struct { DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the displayed 'friendly' name of the plan - DisplayName *string `json:"displayName,omitempty"` - // the unique name of the plan + // the name of the control objective Name string `json:"name"` - // a description of the plan + // description of the control objective Description *string `json:"description,omitempty"` - // the version of the plan - Version string `json:"version"` - // metadata for the plan - Metadata map[string]interface{} `json:"metadata,omitempty"` - Owner *Organization `json:"owner,omitempty"` - Entitlements []*Entitlement `json:"entitlements,omitempty"` - BaseFeatures []*Feature `json:"baseFeatures,omitempty"` - Events []*Event `json:"events,omitempty"` - Features []*EntitlementPlanFeature `json:"features,omitempty"` -} - -func (EntitlementPlan) IsNode() {} - -// Return response for createBulkEntitlementPlan mutation -type EntitlementPlanBulkCreatePayload struct { - // Created entitlementPlans - EntitlementPlans []*EntitlementPlan `json:"entitlementPlans,omitempty"` + // status of the control objective + Status *string `json:"status,omitempty"` + // type of the control objective + ControlObjectiveType *string `json:"controlObjectiveType,omitempty"` + // version of the control objective + Version *string `json:"version,omitempty"` + // number of the control objective + ControlNumber *string `json:"controlNumber,omitempty"` + // family of the control objective + Family *string `json:"family,omitempty"` + // class associated with the control objective + Class *string `json:"class,omitempty"` + // source of the control objective, e.g. framework, template, user-defined, etc. + Source *string `json:"source,omitempty"` + // mapped frameworks + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + // json data including details of the control objective + Details map[string]interface{} `json:"details,omitempty"` + Policy []*InternalPolicy `json:"policy,omitempty"` + Controls []*Control `json:"controls,omitempty"` + Procedures []*Procedure `json:"procedures,omitempty"` + Risks []*Risk `json:"risks,omitempty"` + Subcontrols []*Subcontrol `json:"subcontrols,omitempty"` + Standard []*Standard `json:"standard,omitempty"` + Narratives []*Narrative `json:"narratives,omitempty"` +} + +func (ControlObjective) IsNode() {} + +// Return response for createBulkControlObjective mutation +type ControlObjectiveBulkCreatePayload struct { + // Created controlObjectives + ControlObjectives []*ControlObjective `json:"controlObjectives,omitempty"` } // A connection to a list of items. -type EntitlementPlanConnection struct { - // A list of edges. - Edges []*EntitlementPlanEdge `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 createEntitlementPlan mutation -type EntitlementPlanCreatePayload struct { - // Created entitlementPlan - EntitlementPlan *EntitlementPlan `json:"entitlementPlan"` -} - -// Return response for deleteEntitlementPlan mutation -type EntitlementPlanDeletePayload struct { - // Deleted entitlementPlan ID - DeletedID string `json:"deletedID"` -} - -// An edge in a connection. -type EntitlementPlanEdge struct { - // The item at the end of the edge. - Node *EntitlementPlan `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` -} - -type EntitlementPlanFeature 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"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // metadata for the entitlement plan feature such as usage limits - Metadata map[string]interface{} `json:"metadata,omitempty"` - PlanID string `json:"planID"` - FeatureID string `json:"featureID"` - Owner *Organization `json:"owner,omitempty"` - Plan *EntitlementPlan `json:"plan"` - Feature *Feature `json:"feature"` - Events []*Event `json:"events,omitempty"` -} - -func (EntitlementPlanFeature) IsNode() {} - -// Return response for createBulkEntitlementPlanFeature mutation -type EntitlementPlanFeatureBulkCreatePayload struct { - // Created entitlementPlanFeatures - EntitlementPlanFeatures []*EntitlementPlanFeature `json:"entitlementPlanFeatures,omitempty"` -} - -// A connection to a list of items. -type EntitlementPlanFeatureConnection struct { +type ControlObjectiveConnection struct { // A list of edges. - Edges []*EntitlementPlanFeatureEdge `json:"edges,omitempty"` + Edges []*ControlObjectiveEdge `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 createEntitlementPlanFeature mutation -type EntitlementPlanFeatureCreatePayload struct { - // Created entitlementPlanFeature - EntitlementPlanFeature *EntitlementPlanFeature `json:"entitlementPlanFeature"` +// Return response for createControlObjective mutation +type ControlObjectiveCreatePayload struct { + // Created controlObjective + ControlObjective *ControlObjective `json:"controlObjective"` } -// Return response for deleteEntitlementPlanFeature mutation -type EntitlementPlanFeatureDeletePayload struct { - // Deleted entitlementPlanFeature ID +// Return response for deleteControlObjective mutation +type ControlObjectiveDeletePayload struct { + // Deleted controlObjective ID DeletedID string `json:"deletedID"` } // An edge in a connection. -type EntitlementPlanFeatureEdge struct { +type ControlObjectiveEdge struct { // The item at the end of the edge. - Node *EntitlementPlanFeature `json:"node,omitempty"` + Node *ControlObjective `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -type EntitlementPlanFeatureHistory struct { +type ControlObjectiveHistory struct { ID string `json:"id"` HistoryTime time.Time `json:"historyTime"` Ref *string `json:"ref,omitempty"` @@ -2396,20 +1970,36 @@ type EntitlementPlanFeatureHistory struct { DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // metadata for the entitlement plan feature such as usage limits - Metadata map[string]interface{} `json:"metadata,omitempty"` - PlanID string `json:"planID"` - FeatureID string `json:"featureID"` -} - -func (EntitlementPlanFeatureHistory) IsNode() {} + // the name of the control objective + Name string `json:"name"` + // description of the control objective + Description *string `json:"description,omitempty"` + // status of the control objective + Status *string `json:"status,omitempty"` + // type of the control objective + ControlObjectiveType *string `json:"controlObjectiveType,omitempty"` + // version of the control objective + Version *string `json:"version,omitempty"` + // number of the control objective + ControlNumber *string `json:"controlNumber,omitempty"` + // family of the control objective + Family *string `json:"family,omitempty"` + // class associated with the control objective + Class *string `json:"class,omitempty"` + // source of the control objective, e.g. framework, template, user-defined, etc. + Source *string `json:"source,omitempty"` + // mapped frameworks + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + // json data including details of the control objective + Details map[string]interface{} `json:"details,omitempty"` +} + +func (ControlObjectiveHistory) IsNode() {} // A connection to a list of items. -type EntitlementPlanFeatureHistoryConnection struct { +type ControlObjectiveHistoryConnection struct { // A list of edges. - Edges []*EntitlementPlanFeatureHistoryEdge `json:"edges,omitempty"` + Edges []*ControlObjectiveHistoryEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. @@ -2417,19 +2007,19 @@ type EntitlementPlanFeatureHistoryConnection struct { } // An edge in a connection. -type EntitlementPlanFeatureHistoryEdge struct { +type ControlObjectiveHistoryEdge struct { // The item at the end of the edge. - Node *EntitlementPlanFeatureHistory `json:"node,omitempty"` + Node *ControlObjectiveHistory `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -// EntitlementPlanFeatureHistoryWhereInput is used for filtering EntitlementPlanFeatureHistory objects. +// ControlObjectiveHistoryWhereInput is used for filtering ControlObjectiveHistory objects. // Input was generated by ent. -type EntitlementPlanFeatureHistoryWhereInput struct { - Not *EntitlementPlanFeatureHistoryWhereInput `json:"not,omitempty"` - And []*EntitlementPlanFeatureHistoryWhereInput `json:"and,omitempty"` - Or []*EntitlementPlanFeatureHistoryWhereInput `json:"or,omitempty"` +type ControlObjectiveHistoryWhereInput struct { + Not *ControlObjectiveHistoryWhereInput `json:"not,omitempty"` + And []*ControlObjectiveHistoryWhereInput `json:"and,omitempty"` + Or []*ControlObjectiveHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -2552,70 +2142,184 @@ type EntitlementPlanFeatureHistoryWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - // plan_id field predicates - PlanID *string `json:"planID,omitempty"` - PlanIdneq *string `json:"planIDNEQ,omitempty"` - PlanIDIn []string `json:"planIDIn,omitempty"` - PlanIDNotIn []string `json:"planIDNotIn,omitempty"` - PlanIdgt *string `json:"planIDGT,omitempty"` - PlanIdgte *string `json:"planIDGTE,omitempty"` - PlanIdlt *string `json:"planIDLT,omitempty"` - PlanIdlte *string `json:"planIDLTE,omitempty"` - PlanIDContains *string `json:"planIDContains,omitempty"` - PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` - PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` - PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` - PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` - // feature_id field predicates - FeatureID *string `json:"featureID,omitempty"` - FeatureIdneq *string `json:"featureIDNEQ,omitempty"` - FeatureIDIn []string `json:"featureIDIn,omitempty"` - FeatureIDNotIn []string `json:"featureIDNotIn,omitempty"` - FeatureIdgt *string `json:"featureIDGT,omitempty"` - FeatureIdgte *string `json:"featureIDGTE,omitempty"` - FeatureIdlt *string `json:"featureIDLT,omitempty"` - FeatureIdlte *string `json:"featureIDLTE,omitempty"` - FeatureIDContains *string `json:"featureIDContains,omitempty"` - FeatureIDHasPrefix *string `json:"featureIDHasPrefix,omitempty"` - FeatureIDHasSuffix *string `json:"featureIDHasSuffix,omitempty"` - FeatureIDEqualFold *string `json:"featureIDEqualFold,omitempty"` - FeatureIDContainsFold *string `json:"featureIDContainsFold,omitempty"` -} - -type EntitlementPlanFeatureSearchResult struct { - EntitlementPlanFeatures []*EntitlementPlanFeature `json:"entitlementPlanFeatures,omitempty"` -} - -func (EntitlementPlanFeatureSearchResult) IsSearchResult() {} - -// Return response for updateEntitlementPlanFeature mutation -type EntitlementPlanFeatureUpdatePayload struct { - // Updated entitlementPlanFeature - EntitlementPlanFeature *EntitlementPlanFeature `json:"entitlementPlanFeature"` -} - -// EntitlementPlanFeatureWhereInput is used for filtering EntitlementPlanFeature objects. + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // control_objective_type field predicates + ControlObjectiveType *string `json:"controlObjectiveType,omitempty"` + ControlObjectiveTypeNeq *string `json:"controlObjectiveTypeNEQ,omitempty"` + ControlObjectiveTypeIn []string `json:"controlObjectiveTypeIn,omitempty"` + ControlObjectiveTypeNotIn []string `json:"controlObjectiveTypeNotIn,omitempty"` + ControlObjectiveTypeGt *string `json:"controlObjectiveTypeGT,omitempty"` + ControlObjectiveTypeGte *string `json:"controlObjectiveTypeGTE,omitempty"` + ControlObjectiveTypeLt *string `json:"controlObjectiveTypeLT,omitempty"` + ControlObjectiveTypeLte *string `json:"controlObjectiveTypeLTE,omitempty"` + ControlObjectiveTypeContains *string `json:"controlObjectiveTypeContains,omitempty"` + ControlObjectiveTypeHasPrefix *string `json:"controlObjectiveTypeHasPrefix,omitempty"` + ControlObjectiveTypeHasSuffix *string `json:"controlObjectiveTypeHasSuffix,omitempty"` + ControlObjectiveTypeIsNil *bool `json:"controlObjectiveTypeIsNil,omitempty"` + ControlObjectiveTypeNotNil *bool `json:"controlObjectiveTypeNotNil,omitempty"` + ControlObjectiveTypeEqualFold *string `json:"controlObjectiveTypeEqualFold,omitempty"` + ControlObjectiveTypeContainsFold *string `json:"controlObjectiveTypeContainsFold,omitempty"` + // version field predicates + Version *string `json:"version,omitempty"` + VersionNeq *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGt *string `json:"versionGT,omitempty"` + VersionGte *string `json:"versionGTE,omitempty"` + VersionLt *string `json:"versionLT,omitempty"` + VersionLte *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil *bool `json:"versionIsNil,omitempty"` + VersionNotNil *bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // control_number field predicates + ControlNumber *string `json:"controlNumber,omitempty"` + ControlNumberNeq *string `json:"controlNumberNEQ,omitempty"` + ControlNumberIn []string `json:"controlNumberIn,omitempty"` + ControlNumberNotIn []string `json:"controlNumberNotIn,omitempty"` + ControlNumberGt *string `json:"controlNumberGT,omitempty"` + ControlNumberGte *string `json:"controlNumberGTE,omitempty"` + ControlNumberLt *string `json:"controlNumberLT,omitempty"` + ControlNumberLte *string `json:"controlNumberLTE,omitempty"` + ControlNumberContains *string `json:"controlNumberContains,omitempty"` + ControlNumberHasPrefix *string `json:"controlNumberHasPrefix,omitempty"` + ControlNumberHasSuffix *string `json:"controlNumberHasSuffix,omitempty"` + ControlNumberIsNil *bool `json:"controlNumberIsNil,omitempty"` + ControlNumberNotNil *bool `json:"controlNumberNotNil,omitempty"` + ControlNumberEqualFold *string `json:"controlNumberEqualFold,omitempty"` + ControlNumberContainsFold *string `json:"controlNumberContainsFold,omitempty"` + // family field predicates + Family *string `json:"family,omitempty"` + FamilyNeq *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGt *string `json:"familyGT,omitempty"` + FamilyGte *string `json:"familyGTE,omitempty"` + FamilyLt *string `json:"familyLT,omitempty"` + FamilyLte *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil *bool `json:"familyIsNil,omitempty"` + FamilyNotNil *bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + // class field predicates + Class *string `json:"class,omitempty"` + ClassNeq *string `json:"classNEQ,omitempty"` + ClassIn []string `json:"classIn,omitempty"` + ClassNotIn []string `json:"classNotIn,omitempty"` + ClassGt *string `json:"classGT,omitempty"` + ClassGte *string `json:"classGTE,omitempty"` + ClassLt *string `json:"classLT,omitempty"` + ClassLte *string `json:"classLTE,omitempty"` + ClassContains *string `json:"classContains,omitempty"` + ClassHasPrefix *string `json:"classHasPrefix,omitempty"` + ClassHasSuffix *string `json:"classHasSuffix,omitempty"` + ClassIsNil *bool `json:"classIsNil,omitempty"` + ClassNotNil *bool `json:"classNotNil,omitempty"` + ClassEqualFold *string `json:"classEqualFold,omitempty"` + ClassContainsFold *string `json:"classContainsFold,omitempty"` + // source field predicates + Source *string `json:"source,omitempty"` + SourceNeq *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGt *string `json:"sourceGT,omitempty"` + SourceGte *string `json:"sourceGTE,omitempty"` + SourceLt *string `json:"sourceLT,omitempty"` + SourceLte *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil *bool `json:"sourceIsNil,omitempty"` + SourceNotNil *bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + // mapped_frameworks field predicates + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + MappedFrameworksNeq *string `json:"mappedFrameworksNEQ,omitempty"` + MappedFrameworksIn []string `json:"mappedFrameworksIn,omitempty"` + MappedFrameworksNotIn []string `json:"mappedFrameworksNotIn,omitempty"` + MappedFrameworksGt *string `json:"mappedFrameworksGT,omitempty"` + MappedFrameworksGte *string `json:"mappedFrameworksGTE,omitempty"` + MappedFrameworksLt *string `json:"mappedFrameworksLT,omitempty"` + MappedFrameworksLte *string `json:"mappedFrameworksLTE,omitempty"` + MappedFrameworksContains *string `json:"mappedFrameworksContains,omitempty"` + MappedFrameworksHasPrefix *string `json:"mappedFrameworksHasPrefix,omitempty"` + MappedFrameworksHasSuffix *string `json:"mappedFrameworksHasSuffix,omitempty"` + MappedFrameworksIsNil *bool `json:"mappedFrameworksIsNil,omitempty"` + MappedFrameworksNotNil *bool `json:"mappedFrameworksNotNil,omitempty"` + MappedFrameworksEqualFold *string `json:"mappedFrameworksEqualFold,omitempty"` + MappedFrameworksContainsFold *string `json:"mappedFrameworksContainsFold,omitempty"` +} + +type ControlObjectiveSearchResult struct { + ControlObjectives []*ControlObjective `json:"controlObjectives,omitempty"` +} + +func (ControlObjectiveSearchResult) IsSearchResult() {} + +// Return response for updateControlObjective mutation +type ControlObjectiveUpdatePayload struct { + // Updated controlObjective + ControlObjective *ControlObjective `json:"controlObjective"` +} + +// ControlObjectiveWhereInput is used for filtering ControlObjective objects. // Input was generated by ent. -type EntitlementPlanFeatureWhereInput struct { - Not *EntitlementPlanFeatureWhereInput `json:"not,omitempty"` - And []*EntitlementPlanFeatureWhereInput `json:"and,omitempty"` - Or []*EntitlementPlanFeatureWhereInput `json:"or,omitempty"` +type ControlObjectiveWhereInput struct { + Not *ControlObjectiveWhereInput `json:"not,omitempty"` + And []*ControlObjectiveWhereInput `json:"and,omitempty"` + Or []*ControlObjectiveWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -2708,215 +2412,6 @@ type EntitlementPlanFeatureWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` -} - -type EntitlementPlanHistory struct { - ID string `json:"id"` - HistoryTime time.Time `json:"historyTime"` - Ref *string `json:"ref,omitempty"` - Operation history.OpType `json:"operation"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - CreatedBy *string `json:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the displayed 'friendly' name of the plan - DisplayName *string `json:"displayName,omitempty"` - // the unique name of the plan - Name string `json:"name"` - // a description of the plan - Description *string `json:"description,omitempty"` - // the version of the plan - Version string `json:"version"` - // metadata for the plan - Metadata map[string]interface{} `json:"metadata,omitempty"` -} - -func (EntitlementPlanHistory) IsNode() {} - -// A connection to a list of items. -type EntitlementPlanHistoryConnection struct { - // A list of edges. - Edges []*EntitlementPlanHistoryEdge `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"` -} - -// An edge in a connection. -type EntitlementPlanHistoryEdge struct { - // The item at the end of the edge. - Node *EntitlementPlanHistory `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` -} - -// EntitlementPlanHistoryWhereInput is used for filtering EntitlementPlanHistory objects. -// Input was generated by ent. -type EntitlementPlanHistoryWhereInput struct { - Not *EntitlementPlanHistoryWhereInput `json:"not,omitempty"` - And []*EntitlementPlanHistoryWhereInput `json:"and,omitempty"` - Or []*EntitlementPlanHistoryWhereInput `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"` - IDGt *string `json:"idGT,omitempty"` - IDGte *string `json:"idGTE,omitempty"` - IDLt *string `json:"idLT,omitempty"` - IDLte *string `json:"idLTE,omitempty"` - IDEqualFold *string `json:"idEqualFold,omitempty"` - IDContainsFold *string `json:"idContainsFold,omitempty"` - // history_time field predicates - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` - RefGt *string `json:"refGT,omitempty"` - RefGte *string `json:"refGTE,omitempty"` - RefLt *string `json:"refLT,omitempty"` - RefLte *string `json:"refLTE,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"` - CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` - CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` - CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` - UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` - UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` - UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` - CreatedByGt *string `json:"createdByGT,omitempty"` - CreatedByGte *string `json:"createdByGTE,omitempty"` - CreatedByLt *string `json:"createdByLT,omitempty"` - CreatedByLte *string `json:"createdByLTE,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"` - UpdatedByGt *string `json:"updatedByGT,omitempty"` - UpdatedByGte *string `json:"updatedByGTE,omitempty"` - UpdatedByLt *string `json:"updatedByLT,omitempty"` - UpdatedByLte *string `json:"updatedByLTE,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"` - // deleted_at field predicates - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` - // deleted_by field predicates - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNeq *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGt *string `json:"deletedByGT,omitempty"` - DeletedByGte *string `json:"deletedByGTE,omitempty"` - DeletedByLt *string `json:"deletedByLT,omitempty"` - DeletedByLte *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - // display_name field predicates - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGt *string `json:"displayNameGT,omitempty"` - DisplayNameGte *string `json:"displayNameGTE,omitempty"` - DisplayNameLt *string `json:"displayNameLT,omitempty"` - DisplayNameLte *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameIsNil *bool `json:"displayNameIsNil,omitempty"` - DisplayNameNotNil *bool `json:"displayNameNotNil,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` // name field predicates Name *string `json:"name,omitempty"` NameNeq *string `json:"nameNEQ,omitempty"` @@ -2947,6 +2442,38 @@ type EntitlementPlanHistoryWhereInput struct { DescriptionNotNil *bool `json:"descriptionNotNil,omitempty"` DescriptionEqualFold *string `json:"descriptionEqualFold,omitempty"` DescriptionContainsFold *string `json:"descriptionContainsFold,omitempty"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // control_objective_type field predicates + ControlObjectiveType *string `json:"controlObjectiveType,omitempty"` + ControlObjectiveTypeNeq *string `json:"controlObjectiveTypeNEQ,omitempty"` + ControlObjectiveTypeIn []string `json:"controlObjectiveTypeIn,omitempty"` + ControlObjectiveTypeNotIn []string `json:"controlObjectiveTypeNotIn,omitempty"` + ControlObjectiveTypeGt *string `json:"controlObjectiveTypeGT,omitempty"` + ControlObjectiveTypeGte *string `json:"controlObjectiveTypeGTE,omitempty"` + ControlObjectiveTypeLt *string `json:"controlObjectiveTypeLT,omitempty"` + ControlObjectiveTypeLte *string `json:"controlObjectiveTypeLTE,omitempty"` + ControlObjectiveTypeContains *string `json:"controlObjectiveTypeContains,omitempty"` + ControlObjectiveTypeHasPrefix *string `json:"controlObjectiveTypeHasPrefix,omitempty"` + ControlObjectiveTypeHasSuffix *string `json:"controlObjectiveTypeHasSuffix,omitempty"` + ControlObjectiveTypeIsNil *bool `json:"controlObjectiveTypeIsNil,omitempty"` + ControlObjectiveTypeNotNil *bool `json:"controlObjectiveTypeNotNil,omitempty"` + ControlObjectiveTypeEqualFold *string `json:"controlObjectiveTypeEqualFold,omitempty"` + ControlObjectiveTypeContainsFold *string `json:"controlObjectiveTypeContainsFold,omitempty"` // version field predicates Version *string `json:"version,omitempty"` VersionNeq *string `json:"versionNEQ,omitempty"` @@ -2959,28 +2486,131 @@ type EntitlementPlanHistoryWhereInput struct { VersionContains *string `json:"versionContains,omitempty"` VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil *bool `json:"versionIsNil,omitempty"` + VersionNotNil *bool `json:"versionNotNil,omitempty"` VersionEqualFold *string `json:"versionEqualFold,omitempty"` VersionContainsFold *string `json:"versionContainsFold,omitempty"` -} - -type EntitlementPlanSearchResult struct { - EntitlementPlans []*EntitlementPlan `json:"entitlementPlans,omitempty"` -} - -func (EntitlementPlanSearchResult) IsSearchResult() {} - -// Return response for updateEntitlementPlan mutation -type EntitlementPlanUpdatePayload struct { - // Updated entitlementPlan - EntitlementPlan *EntitlementPlan `json:"entitlementPlan"` -} - -// EntitlementPlanWhereInput is used for filtering EntitlementPlan objects. + // control_number field predicates + ControlNumber *string `json:"controlNumber,omitempty"` + ControlNumberNeq *string `json:"controlNumberNEQ,omitempty"` + ControlNumberIn []string `json:"controlNumberIn,omitempty"` + ControlNumberNotIn []string `json:"controlNumberNotIn,omitempty"` + ControlNumberGt *string `json:"controlNumberGT,omitempty"` + ControlNumberGte *string `json:"controlNumberGTE,omitempty"` + ControlNumberLt *string `json:"controlNumberLT,omitempty"` + ControlNumberLte *string `json:"controlNumberLTE,omitempty"` + ControlNumberContains *string `json:"controlNumberContains,omitempty"` + ControlNumberHasPrefix *string `json:"controlNumberHasPrefix,omitempty"` + ControlNumberHasSuffix *string `json:"controlNumberHasSuffix,omitempty"` + ControlNumberIsNil *bool `json:"controlNumberIsNil,omitempty"` + ControlNumberNotNil *bool `json:"controlNumberNotNil,omitempty"` + ControlNumberEqualFold *string `json:"controlNumberEqualFold,omitempty"` + ControlNumberContainsFold *string `json:"controlNumberContainsFold,omitempty"` + // family field predicates + Family *string `json:"family,omitempty"` + FamilyNeq *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGt *string `json:"familyGT,omitempty"` + FamilyGte *string `json:"familyGTE,omitempty"` + FamilyLt *string `json:"familyLT,omitempty"` + FamilyLte *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil *bool `json:"familyIsNil,omitempty"` + FamilyNotNil *bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + // class field predicates + Class *string `json:"class,omitempty"` + ClassNeq *string `json:"classNEQ,omitempty"` + ClassIn []string `json:"classIn,omitempty"` + ClassNotIn []string `json:"classNotIn,omitempty"` + ClassGt *string `json:"classGT,omitempty"` + ClassGte *string `json:"classGTE,omitempty"` + ClassLt *string `json:"classLT,omitempty"` + ClassLte *string `json:"classLTE,omitempty"` + ClassContains *string `json:"classContains,omitempty"` + ClassHasPrefix *string `json:"classHasPrefix,omitempty"` + ClassHasSuffix *string `json:"classHasSuffix,omitempty"` + ClassIsNil *bool `json:"classIsNil,omitempty"` + ClassNotNil *bool `json:"classNotNil,omitempty"` + ClassEqualFold *string `json:"classEqualFold,omitempty"` + ClassContainsFold *string `json:"classContainsFold,omitempty"` + // source field predicates + Source *string `json:"source,omitempty"` + SourceNeq *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGt *string `json:"sourceGT,omitempty"` + SourceGte *string `json:"sourceGTE,omitempty"` + SourceLt *string `json:"sourceLT,omitempty"` + SourceLte *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil *bool `json:"sourceIsNil,omitempty"` + SourceNotNil *bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + // mapped_frameworks field predicates + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + MappedFrameworksNeq *string `json:"mappedFrameworksNEQ,omitempty"` + MappedFrameworksIn []string `json:"mappedFrameworksIn,omitempty"` + MappedFrameworksNotIn []string `json:"mappedFrameworksNotIn,omitempty"` + MappedFrameworksGt *string `json:"mappedFrameworksGT,omitempty"` + MappedFrameworksGte *string `json:"mappedFrameworksGTE,omitempty"` + MappedFrameworksLt *string `json:"mappedFrameworksLT,omitempty"` + MappedFrameworksLte *string `json:"mappedFrameworksLTE,omitempty"` + MappedFrameworksContains *string `json:"mappedFrameworksContains,omitempty"` + MappedFrameworksHasPrefix *string `json:"mappedFrameworksHasPrefix,omitempty"` + MappedFrameworksHasSuffix *string `json:"mappedFrameworksHasSuffix,omitempty"` + MappedFrameworksIsNil *bool `json:"mappedFrameworksIsNil,omitempty"` + MappedFrameworksNotNil *bool `json:"mappedFrameworksNotNil,omitempty"` + MappedFrameworksEqualFold *string `json:"mappedFrameworksEqualFold,omitempty"` + MappedFrameworksContainsFold *string `json:"mappedFrameworksContainsFold,omitempty"` + // policy edge predicates + HasPolicy *bool `json:"hasPolicy,omitempty"` + HasPolicyWith []*InternalPolicyWhereInput `json:"hasPolicyWith,omitempty"` + // controls edge predicates + HasControls *bool `json:"hasControls,omitempty"` + HasControlsWith []*ControlWhereInput `json:"hasControlsWith,omitempty"` + // procedures edge predicates + HasProcedures *bool `json:"hasProcedures,omitempty"` + HasProceduresWith []*ProcedureWhereInput `json:"hasProceduresWith,omitempty"` + // risks edge predicates + HasRisks *bool `json:"hasRisks,omitempty"` + HasRisksWith []*RiskWhereInput `json:"hasRisksWith,omitempty"` + // subcontrols edge predicates + HasSubcontrols *bool `json:"hasSubcontrols,omitempty"` + HasSubcontrolsWith []*SubcontrolWhereInput `json:"hasSubcontrolsWith,omitempty"` + // standard edge predicates + HasStandard *bool `json:"hasStandard,omitempty"` + HasStandardWith []*StandardWhereInput `json:"hasStandardWith,omitempty"` + // narratives edge predicates + HasNarratives *bool `json:"hasNarratives,omitempty"` + HasNarrativesWith []*NarrativeWhereInput `json:"hasNarrativesWith,omitempty"` +} + +type ControlSearchResult struct { + Controls []*Control `json:"controls,omitempty"` +} + +func (ControlSearchResult) IsSearchResult() {} + +// Return response for updateControl mutation +type ControlUpdatePayload struct { + // Updated control + Control *Control `json:"control"` +} + +// ControlWhereInput is used for filtering Control objects. // Input was generated by ent. -type EntitlementPlanWhereInput struct { - Not *EntitlementPlanWhereInput `json:"not,omitempty"` - And []*EntitlementPlanWhereInput `json:"and,omitempty"` - Or []*EntitlementPlanWhereInput `json:"or,omitempty"` +type ControlWhereInput struct { + Not *ControlWhereInput `json:"not,omitempty"` + And []*ControlWhereInput `json:"and,omitempty"` + Or []*ControlWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -3073,38 +2703,6 @@ type EntitlementPlanWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - // display_name field predicates - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGt *string `json:"displayNameGT,omitempty"` - DisplayNameGte *string `json:"displayNameGTE,omitempty"` - DisplayNameLt *string `json:"displayNameLT,omitempty"` - DisplayNameLte *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameIsNil *bool `json:"displayNameIsNil,omitempty"` - DisplayNameNotNil *bool `json:"displayNameNotNil,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` // name field predicates Name *string `json:"name,omitempty"` NameNeq *string `json:"nameNEQ,omitempty"` @@ -3135,6 +2733,38 @@ type EntitlementPlanWhereInput struct { DescriptionNotNil *bool `json:"descriptionNotNil,omitempty"` DescriptionEqualFold *string `json:"descriptionEqualFold,omitempty"` DescriptionContainsFold *string `json:"descriptionContainsFold,omitempty"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // control_type field predicates + ControlType *string `json:"controlType,omitempty"` + ControlTypeNeq *string `json:"controlTypeNEQ,omitempty"` + ControlTypeIn []string `json:"controlTypeIn,omitempty"` + ControlTypeNotIn []string `json:"controlTypeNotIn,omitempty"` + ControlTypeGt *string `json:"controlTypeGT,omitempty"` + ControlTypeGte *string `json:"controlTypeGTE,omitempty"` + ControlTypeLt *string `json:"controlTypeLT,omitempty"` + ControlTypeLte *string `json:"controlTypeLTE,omitempty"` + ControlTypeContains *string `json:"controlTypeContains,omitempty"` + ControlTypeHasPrefix *string `json:"controlTypeHasPrefix,omitempty"` + ControlTypeHasSuffix *string `json:"controlTypeHasSuffix,omitempty"` + ControlTypeIsNil *bool `json:"controlTypeIsNil,omitempty"` + ControlTypeNotNil *bool `json:"controlTypeNotNil,omitempty"` + ControlTypeEqualFold *string `json:"controlTypeEqualFold,omitempty"` + ControlTypeContainsFold *string `json:"controlTypeContainsFold,omitempty"` // version field predicates Version *string `json:"version,omitempty"` VersionNeq *string `json:"versionNEQ,omitempty"` @@ -3147,327 +2777,339 @@ type EntitlementPlanWhereInput struct { VersionContains *string `json:"versionContains,omitempty"` VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil *bool `json:"versionIsNil,omitempty"` + VersionNotNil *bool `json:"versionNotNil,omitempty"` VersionEqualFold *string `json:"versionEqualFold,omitempty"` VersionContainsFold *string `json:"versionContainsFold,omitempty"` - // owner edge predicates - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // entitlements edge predicates - HasEntitlements *bool `json:"hasEntitlements,omitempty"` - HasEntitlementsWith []*EntitlementWhereInput `json:"hasEntitlementsWith,omitempty"` - // base_features edge predicates - HasBaseFeatures *bool `json:"hasBaseFeatures,omitempty"` - HasBaseFeaturesWith []*FeatureWhereInput `json:"hasBaseFeaturesWith,omitempty"` - // events edge predicates - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` - // features edge predicates - HasFeatures *bool `json:"hasFeatures,omitempty"` - HasFeaturesWith []*EntitlementPlanFeatureWhereInput `json:"hasFeaturesWith,omitempty"` -} - -type EntitlementSearchResult struct { - Entitlements []*Entitlement `json:"entitlements,omitempty"` + // control_number field predicates + ControlNumber *string `json:"controlNumber,omitempty"` + ControlNumberNeq *string `json:"controlNumberNEQ,omitempty"` + ControlNumberIn []string `json:"controlNumberIn,omitempty"` + ControlNumberNotIn []string `json:"controlNumberNotIn,omitempty"` + ControlNumberGt *string `json:"controlNumberGT,omitempty"` + ControlNumberGte *string `json:"controlNumberGTE,omitempty"` + ControlNumberLt *string `json:"controlNumberLT,omitempty"` + ControlNumberLte *string `json:"controlNumberLTE,omitempty"` + ControlNumberContains *string `json:"controlNumberContains,omitempty"` + ControlNumberHasPrefix *string `json:"controlNumberHasPrefix,omitempty"` + ControlNumberHasSuffix *string `json:"controlNumberHasSuffix,omitempty"` + ControlNumberIsNil *bool `json:"controlNumberIsNil,omitempty"` + ControlNumberNotNil *bool `json:"controlNumberNotNil,omitempty"` + ControlNumberEqualFold *string `json:"controlNumberEqualFold,omitempty"` + ControlNumberContainsFold *string `json:"controlNumberContainsFold,omitempty"` + // family field predicates + Family *string `json:"family,omitempty"` + FamilyNeq *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGt *string `json:"familyGT,omitempty"` + FamilyGte *string `json:"familyGTE,omitempty"` + FamilyLt *string `json:"familyLT,omitempty"` + FamilyLte *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil *bool `json:"familyIsNil,omitempty"` + FamilyNotNil *bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + // class field predicates + Class *string `json:"class,omitempty"` + ClassNeq *string `json:"classNEQ,omitempty"` + ClassIn []string `json:"classIn,omitempty"` + ClassNotIn []string `json:"classNotIn,omitempty"` + ClassGt *string `json:"classGT,omitempty"` + ClassGte *string `json:"classGTE,omitempty"` + ClassLt *string `json:"classLT,omitempty"` + ClassLte *string `json:"classLTE,omitempty"` + ClassContains *string `json:"classContains,omitempty"` + ClassHasPrefix *string `json:"classHasPrefix,omitempty"` + ClassHasSuffix *string `json:"classHasSuffix,omitempty"` + ClassIsNil *bool `json:"classIsNil,omitempty"` + ClassNotNil *bool `json:"classNotNil,omitempty"` + ClassEqualFold *string `json:"classEqualFold,omitempty"` + ClassContainsFold *string `json:"classContainsFold,omitempty"` + // source field predicates + Source *string `json:"source,omitempty"` + SourceNeq *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGt *string `json:"sourceGT,omitempty"` + SourceGte *string `json:"sourceGTE,omitempty"` + SourceLt *string `json:"sourceLT,omitempty"` + SourceLte *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil *bool `json:"sourceIsNil,omitempty"` + SourceNotNil *bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + // satisfies field predicates + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNeq *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGt *string `json:"satisfiesGT,omitempty"` + SatisfiesGte *string `json:"satisfiesGTE,omitempty"` + SatisfiesLt *string `json:"satisfiesLT,omitempty"` + SatisfiesLte *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil *bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil *bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` + // mapped_frameworks field predicates + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + MappedFrameworksNeq *string `json:"mappedFrameworksNEQ,omitempty"` + MappedFrameworksIn []string `json:"mappedFrameworksIn,omitempty"` + MappedFrameworksNotIn []string `json:"mappedFrameworksNotIn,omitempty"` + MappedFrameworksGt *string `json:"mappedFrameworksGT,omitempty"` + MappedFrameworksGte *string `json:"mappedFrameworksGTE,omitempty"` + MappedFrameworksLt *string `json:"mappedFrameworksLT,omitempty"` + MappedFrameworksLte *string `json:"mappedFrameworksLTE,omitempty"` + MappedFrameworksContains *string `json:"mappedFrameworksContains,omitempty"` + MappedFrameworksHasPrefix *string `json:"mappedFrameworksHasPrefix,omitempty"` + MappedFrameworksHasSuffix *string `json:"mappedFrameworksHasSuffix,omitempty"` + MappedFrameworksIsNil *bool `json:"mappedFrameworksIsNil,omitempty"` + MappedFrameworksNotNil *bool `json:"mappedFrameworksNotNil,omitempty"` + MappedFrameworksEqualFold *string `json:"mappedFrameworksEqualFold,omitempty"` + MappedFrameworksContainsFold *string `json:"mappedFrameworksContainsFold,omitempty"` + // procedures edge predicates + HasProcedures *bool `json:"hasProcedures,omitempty"` + HasProceduresWith []*ProcedureWhereInput `json:"hasProceduresWith,omitempty"` + // subcontrols edge predicates + HasSubcontrols *bool `json:"hasSubcontrols,omitempty"` + HasSubcontrolsWith []*SubcontrolWhereInput `json:"hasSubcontrolsWith,omitempty"` + // controlobjectives edge predicates + HasControlobjectives *bool `json:"hasControlobjectives,omitempty"` + HasControlobjectivesWith []*ControlObjectiveWhereInput `json:"hasControlobjectivesWith,omitempty"` + // standard edge predicates + HasStandard *bool `json:"hasStandard,omitempty"` + HasStandardWith []*StandardWhereInput `json:"hasStandardWith,omitempty"` + // narratives edge predicates + HasNarratives *bool `json:"hasNarratives,omitempty"` + HasNarrativesWith []*NarrativeWhereInput `json:"hasNarrativesWith,omitempty"` + // risks edge predicates + HasRisks *bool `json:"hasRisks,omitempty"` + HasRisksWith []*RiskWhereInput `json:"hasRisksWith,omitempty"` + // actionplans edge predicates + HasActionplans *bool `json:"hasActionplans,omitempty"` + HasActionplansWith []*ActionPlanWhereInput `json:"hasActionplansWith,omitempty"` } -func (EntitlementSearchResult) IsSearchResult() {} - -// Return response for updateEntitlement mutation -type EntitlementUpdatePayload struct { - // Updated entitlement - Entitlement *Entitlement `json:"entitlement"` +// CreateAPITokenInput is used for create APIToken object. +// Input was generated by ent. +type CreateAPITokenInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name associated with the token + Name string `json:"name"` + // when the token expires + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + // a description of the token's purpose + Description *string `json:"description,omitempty"` + Scopes []string `json:"scopes,omitempty"` + LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` } -// EntitlementWhereInput is used for filtering Entitlement objects. +// CreateActionPlanInput is used for create ActionPlan object. // Input was generated by ent. -type EntitlementWhereInput struct { - Not *EntitlementWhereInput `json:"not,omitempty"` - And []*EntitlementWhereInput `json:"and,omitempty"` - Or []*EntitlementWhereInput `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"` - IDGt *string `json:"idGT,omitempty"` - IDGte *string `json:"idGTE,omitempty"` - IDLt *string `json:"idLT,omitempty"` - IDLte *string `json:"idLTE,omitempty"` - IDEqualFold *string `json:"idEqualFold,omitempty"` - IDContainsFold *string `json:"idContainsFold,omitempty"` - // created_at field predicates - CreatedAt *time.Time `json:"createdAt,omitempty"` - CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` - CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` - CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` - UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` - UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` - UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` - CreatedByGt *string `json:"createdByGT,omitempty"` - CreatedByGte *string `json:"createdByGTE,omitempty"` - CreatedByLt *string `json:"createdByLT,omitempty"` - CreatedByLte *string `json:"createdByLTE,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"` - UpdatedByGt *string `json:"updatedByGT,omitempty"` - UpdatedByGte *string `json:"updatedByGTE,omitempty"` - UpdatedByLt *string `json:"updatedByLT,omitempty"` - UpdatedByLte *string `json:"updatedByLTE,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"` - // deleted_at field predicates - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` - // deleted_by field predicates - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNeq *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGt *string `json:"deletedByGT,omitempty"` - DeletedByGte *string `json:"deletedByGTE,omitempty"` - DeletedByLt *string `json:"deletedByLT,omitempty"` - DeletedByLte *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - // plan_id field predicates - PlanID *string `json:"planID,omitempty"` - PlanIdneq *string `json:"planIDNEQ,omitempty"` - PlanIDIn []string `json:"planIDIn,omitempty"` - PlanIDNotIn []string `json:"planIDNotIn,omitempty"` - PlanIdgt *string `json:"planIDGT,omitempty"` - PlanIdgte *string `json:"planIDGTE,omitempty"` - PlanIdlt *string `json:"planIDLT,omitempty"` - PlanIdlte *string `json:"planIDLTE,omitempty"` - PlanIDContains *string `json:"planIDContains,omitempty"` - PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` - PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` - PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` - PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` - // organization_id field predicates - OrganizationID *string `json:"organizationID,omitempty"` - OrganizationIdneq *string `json:"organizationIDNEQ,omitempty"` - OrganizationIDIn []string `json:"organizationIDIn,omitempty"` - OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` - OrganizationIdgt *string `json:"organizationIDGT,omitempty"` - OrganizationIdgte *string `json:"organizationIDGTE,omitempty"` - OrganizationIdlt *string `json:"organizationIDLT,omitempty"` - OrganizationIdlte *string `json:"organizationIDLTE,omitempty"` - OrganizationIDContains *string `json:"organizationIDContains,omitempty"` - OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` - OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` - OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` - OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` - // external_customer_id field predicates - ExternalCustomerID *string `json:"externalCustomerID,omitempty"` - ExternalCustomerIdneq *string `json:"externalCustomerIDNEQ,omitempty"` - ExternalCustomerIDIn []string `json:"externalCustomerIDIn,omitempty"` - ExternalCustomerIDNotIn []string `json:"externalCustomerIDNotIn,omitempty"` - ExternalCustomerIdgt *string `json:"externalCustomerIDGT,omitempty"` - ExternalCustomerIdgte *string `json:"externalCustomerIDGTE,omitempty"` - ExternalCustomerIdlt *string `json:"externalCustomerIDLT,omitempty"` - ExternalCustomerIdlte *string `json:"externalCustomerIDLTE,omitempty"` - ExternalCustomerIDContains *string `json:"externalCustomerIDContains,omitempty"` - ExternalCustomerIDHasPrefix *string `json:"externalCustomerIDHasPrefix,omitempty"` - ExternalCustomerIDHasSuffix *string `json:"externalCustomerIDHasSuffix,omitempty"` - ExternalCustomerIDIsNil *bool `json:"externalCustomerIDIsNil,omitempty"` - ExternalCustomerIDNotNil *bool `json:"externalCustomerIDNotNil,omitempty"` - ExternalCustomerIDEqualFold *string `json:"externalCustomerIDEqualFold,omitempty"` - ExternalCustomerIDContainsFold *string `json:"externalCustomerIDContainsFold,omitempty"` - // external_subscription_id field predicates - ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` - ExternalSubscriptionIdneq *string `json:"externalSubscriptionIDNEQ,omitempty"` - ExternalSubscriptionIDIn []string `json:"externalSubscriptionIDIn,omitempty"` - ExternalSubscriptionIDNotIn []string `json:"externalSubscriptionIDNotIn,omitempty"` - ExternalSubscriptionIdgt *string `json:"externalSubscriptionIDGT,omitempty"` - ExternalSubscriptionIdgte *string `json:"externalSubscriptionIDGTE,omitempty"` - ExternalSubscriptionIdlt *string `json:"externalSubscriptionIDLT,omitempty"` - ExternalSubscriptionIdlte *string `json:"externalSubscriptionIDLTE,omitempty"` - ExternalSubscriptionIDContains *string `json:"externalSubscriptionIDContains,omitempty"` - ExternalSubscriptionIDHasPrefix *string `json:"externalSubscriptionIDHasPrefix,omitempty"` - ExternalSubscriptionIDHasSuffix *string `json:"externalSubscriptionIDHasSuffix,omitempty"` - ExternalSubscriptionIDIsNil *bool `json:"externalSubscriptionIDIsNil,omitempty"` - ExternalSubscriptionIDNotNil *bool `json:"externalSubscriptionIDNotNil,omitempty"` - ExternalSubscriptionIDEqualFold *string `json:"externalSubscriptionIDEqualFold,omitempty"` - ExternalSubscriptionIDContainsFold *string `json:"externalSubscriptionIDContainsFold,omitempty"` - // expires field predicates - Expires *bool `json:"expires,omitempty"` - ExpiresNeq *bool `json:"expiresNEQ,omitempty"` - // expires_at field predicates - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - ExpiresAtNeq *time.Time `json:"expiresAtNEQ,omitempty"` - ExpiresAtIn []*time.Time `json:"expiresAtIn,omitempty"` - ExpiresAtNotIn []*time.Time `json:"expiresAtNotIn,omitempty"` - ExpiresAtGt *time.Time `json:"expiresAtGT,omitempty"` - ExpiresAtGte *time.Time `json:"expiresAtGTE,omitempty"` - ExpiresAtLt *time.Time `json:"expiresAtLT,omitempty"` - ExpiresAtLte *time.Time `json:"expiresAtLTE,omitempty"` - ExpiresAtIsNil *bool `json:"expiresAtIsNil,omitempty"` - ExpiresAtNotNil *bool `json:"expiresAtNotNil,omitempty"` - // cancelled field predicates - Cancelled *bool `json:"cancelled,omitempty"` - CancelledNeq *bool `json:"cancelledNEQ,omitempty"` - // owner edge predicates - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // plan edge predicates - HasPlan *bool `json:"hasPlan,omitempty"` - HasPlanWith []*EntitlementPlanWhereInput `json:"hasPlanWith,omitempty"` - // organization edge predicates - HasOrganization *bool `json:"hasOrganization,omitempty"` - HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` - // events edge predicates - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` +type CreateActionPlanInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the action plan + Name string `json:"name"` + // description of the action plan + Description *string `json:"description,omitempty"` + // status of the action plan + Status *string `json:"status,omitempty"` + // due date of the action plan + DueDate *time.Time `json:"dueDate,omitempty"` + // priority of the action plan + Priority *string `json:"priority,omitempty"` + // source of the action plan + Source *string `json:"source,omitempty"` + // json data including details of the action plan + Details map[string]interface{} `json:"details,omitempty"` + StandardIDs []string `json:"standardIDs,omitempty"` + RiskIDs []string `json:"riskIDs,omitempty"` + ControlIDs []string `json:"controlIDs,omitempty"` + UserIDs []string `json:"userIDs,omitempty"` } -type Entity 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"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` +// CreateContactInput is used for create Contact object. +// Input was generated by ent. +type CreateContactInput struct { // 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 entity - Name *string `json:"name,omitempty"` - // The entity's displayed 'friendly' name - DisplayName *string `json:"displayName,omitempty"` - // An optional description of the entity - Description *string `json:"description,omitempty"` - // domains associated with the entity - Domains []string `json:"domains,omitempty"` - // The type of the entity - EntityTypeID *string `json:"entityTypeID,omitempty"` - // status of the entity - Status *string `json:"status,omitempty"` - Owner *Organization `json:"owner,omitempty"` - Contacts []*Contact `json:"contacts,omitempty"` - Documents []*DocumentData `json:"documents,omitempty"` - Notes []*Note `json:"notes,omitempty"` - Files []*File `json:"files,omitempty"` - EntityType *EntityType `json:"entityType,omitempty"` + // the full name of the contact + FullName string `json:"fullName"` + // the title of the contact + Title *string `json:"title,omitempty"` + // the company of the contact + Company *string `json:"company,omitempty"` + // the email of the contact + Email *string `json:"email,omitempty"` + // the phone number of the contact + PhoneNumber *string `json:"phoneNumber,omitempty"` + // the address of the contact + Address *string `json:"address,omitempty"` + // status of the contact + Status *enums.UserStatus `json:"status,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + EntityIDs []string `json:"entityIDs,omitempty"` + FileIDs []string `json:"fileIDs,omitempty"` } -func (Entity) IsNode() {} - -// Return response for createBulkEntity mutation -type EntityBulkCreatePayload struct { - // Created entities - Entities []*Entity `json:"entities,omitempty"` +// CreateControlInput is used for create Control object. +// Input was generated by ent. +type CreateControlInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the control + Name string `json:"name"` + // description of the control + Description *string `json:"description,omitempty"` + // status of the control + Status *string `json:"status,omitempty"` + // type of the control + ControlType *string `json:"controlType,omitempty"` + // version of the control + Version *string `json:"version,omitempty"` + // control number or identifier + ControlNumber *string `json:"controlNumber,omitempty"` + // family associated with the control + Family *string `json:"family,omitempty"` + // class associated with the control + Class *string `json:"class,omitempty"` + // source of the control, e.g. framework, template, custom, etc. + Source *string `json:"source,omitempty"` + // which control objectives are satisfied by the control + Satisfies *string `json:"satisfies,omitempty"` + // mapped frameworks + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + // json data including details of the control + Details map[string]interface{} `json:"details,omitempty"` + ProcedureIDs []string `json:"procedureIDs,omitempty"` + SubcontrolIDs []string `json:"subcontrolIDs,omitempty"` + ControlobjectiveIDs []string `json:"controlobjectiveIDs,omitempty"` + StandardIDs []string `json:"standardIDs,omitempty"` + NarrativeIDs []string `json:"narrativeIDs,omitempty"` + RiskIDs []string `json:"riskIDs,omitempty"` + ActionplanIDs []string `json:"actionplanIDs,omitempty"` +} + +// CreateControlObjectiveInput is used for create ControlObjective object. +// Input was generated by ent. +type CreateControlObjectiveInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the control objective + Name string `json:"name"` + // description of the control objective + Description *string `json:"description,omitempty"` + // status of the control objective + Status *string `json:"status,omitempty"` + // type of the control objective + ControlObjectiveType *string `json:"controlObjectiveType,omitempty"` + // version of the control objective + Version *string `json:"version,omitempty"` + // number of the control objective + ControlNumber *string `json:"controlNumber,omitempty"` + // family of the control objective + Family *string `json:"family,omitempty"` + // class associated with the control objective + Class *string `json:"class,omitempty"` + // source of the control objective, e.g. framework, template, user-defined, etc. + Source *string `json:"source,omitempty"` + // mapped frameworks + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + // json data including details of the control objective + Details map[string]interface{} `json:"details,omitempty"` + PolicyIDs []string `json:"policyIDs,omitempty"` + ControlIDs []string `json:"controlIDs,omitempty"` + ProcedureIDs []string `json:"procedureIDs,omitempty"` + RiskIDs []string `json:"riskIDs,omitempty"` + SubcontrolIDs []string `json:"subcontrolIDs,omitempty"` + StandardIDs []string `json:"standardIDs,omitempty"` + NarrativeIDs []string `json:"narrativeIDs,omitempty"` } -// A connection to a list of items. -type EntityConnection struct { - // A list of edges. - Edges []*EntityEdge `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"` +// CreateDocumentDataInput is used for create DocumentData object. +// Input was generated by ent. +type CreateDocumentDataInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the json data of the document + Data json.RawMessage `json:"data"` + OwnerID *string `json:"ownerID,omitempty"` + TemplateID string `json:"templateID"` + EntityIDs []string `json:"entityIDs,omitempty"` + FileIDs []string `json:"fileIDs,omitempty"` } -// Return response for createEntity mutation -type EntityCreatePayload struct { - // Created entity - Entity *Entity `json:"entity"` +// CreateEntitlementInput is used for create Entitlement object. +// Input was generated by ent. +type CreateEntitlementInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // used to store references to external systems, e.g. Stripe + ExternalCustomerID *string `json:"externalCustomerID,omitempty"` + // used to store references to external systems, e.g. Stripe + ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` + // the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + // whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + Cancelled *bool `json:"cancelled,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + PlanID string `json:"planID"` + OrganizationID string `json:"organizationID"` + EventIDs []string `json:"eventIDs,omitempty"` } -// Return response for deleteEntity mutation -type EntityDeletePayload struct { - // Deleted entity ID - DeletedID string `json:"deletedID"` +// CreateEntitlementPlanFeatureInput is used for create EntitlementPlanFeature object. +// Input was generated by ent. +type CreateEntitlementPlanFeatureInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // metadata for the entitlement plan feature such as usage limits + Metadata map[string]interface{} `json:"metadata,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + PlanID string `json:"planID"` + FeatureID string `json:"featureID"` + EventIDs []string `json:"eventIDs,omitempty"` } -// An edge in a connection. -type EntityEdge struct { - // The item at the end of the edge. - Node *Entity `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` +// CreateEntitlementPlanInput is used for create EntitlementPlan object. +// Input was generated by ent. +type CreateEntitlementPlanInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the displayed 'friendly' name of the plan + DisplayName *string `json:"displayName,omitempty"` + // the unique name of the plan + Name string `json:"name"` + // a description of the plan + Description *string `json:"description,omitempty"` + // the version of the plan + Version string `json:"version"` + // metadata for the plan + Metadata map[string]interface{} `json:"metadata,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + EntitlementIDs []string `json:"entitlementIDs,omitempty"` + BaseFeatureIDs []string `json:"baseFeatureIDs,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` } -type EntityHistory struct { - ID string `json:"id"` - HistoryTime time.Time `json:"historyTime"` - Ref *string `json:"ref,omitempty"` - Operation history.OpType `json:"operation"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - CreatedBy *string `json:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` +// CreateEntityInput is used for create Entity object. +// Input was generated by ent. +type CreateEntityInput struct { // 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 entity Name *string `json:"name,omitempty"` // The entity's displayed 'friendly' name @@ -3476,957 +3118,741 @@ type EntityHistory struct { Description *string `json:"description,omitempty"` // domains associated with the entity Domains []string `json:"domains,omitempty"` - // The type of the entity - EntityTypeID *string `json:"entityTypeID,omitempty"` // status of the entity - Status *string `json:"status,omitempty"` + Status *string `json:"status,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + ContactIDs []string `json:"contactIDs,omitempty"` + DocumentIDs []string `json:"documentIDs,omitempty"` + NoteIDs []string `json:"noteIDs,omitempty"` + FileIDs []string `json:"fileIDs,omitempty"` + EntityTypeID *string `json:"entityTypeID,omitempty"` + Note *CreateNoteInput `json:"note,omitempty"` } -func (EntityHistory) IsNode() {} - -// A connection to a list of items. -type EntityHistoryConnection struct { - // A list of edges. - Edges []*EntityHistoryEdge `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"` +// CreateEntityTypeInput is used for create EntityType object. +// Input was generated by ent. +type CreateEntityTypeInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the entity + Name string `json:"name"` + OwnerID *string `json:"ownerID,omitempty"` + EntityIDs []string `json:"entityIDs,omitempty"` } -// An edge in a connection. -type EntityHistoryEdge struct { - // The item at the end of the edge. - Node *EntityHistory `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` +// CreateEventInput is used for create Event object. +// Input was generated by ent. +type CreateEventInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + EventID *string `json:"eventID,omitempty"` + CorrelationID *string `json:"correlationID,omitempty"` + EventType string `json:"eventType"` + Metadata map[string]interface{} `json:"metadata,omitempty"` + UserIDs []string `json:"userIDs,omitempty"` + GroupIDs []string `json:"groupIDs,omitempty"` + IntegrationIDs []string `json:"integrationIDs,omitempty"` + OrganizationIDs []string `json:"organizationIDs,omitempty"` + InviteIDs []string `json:"inviteIDs,omitempty"` + FeatureIDs []string `json:"featureIDs,omitempty"` + EntitlementplanIDs []string `json:"entitlementplanIDs,omitempty"` + PersonalAccessTokenIDs []string `json:"personalAccessTokenIDs,omitempty"` + Oauth2tokenIDs []string `json:"oauth2tokenIDs,omitempty"` + HushIDs []string `json:"hushIDs,omitempty"` + EntitlementIDs []string `json:"entitlementIDs,omitempty"` + WebhookIDs []string `json:"webhookIDs,omitempty"` + SubscriberIDs []string `json:"subscriberIDs,omitempty"` + FileIDs []string `json:"fileIDs,omitempty"` } -// Ordering options for EntityHistory connections -type EntityHistoryOrder struct { - // The ordering direction. - Direction OrderDirection `json:"direction"` - // The field by which to order EntityHistories. - Field EntityHistoryOrderField `json:"field"` +// CreateFeatureInput is used for create Feature object. +// Input was generated by ent. +type CreateFeatureInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the unique name of the feature + Name string `json:"name"` + // the displayed 'friendly' name of the feature + DisplayName *string `json:"displayName,omitempty"` + // enabled features are available for use + Enabled *bool `json:"enabled,omitempty"` + // a description of the feature + Description *string `json:"description,omitempty"` + // metadata for the feature + Metadata map[string]interface{} `json:"metadata,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + PlanIDs []string `json:"planIDs,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` } -// EntityHistoryWhereInput is used for filtering EntityHistory objects. +// CreateFileInput is used for create File object. // Input was generated by ent. -type EntityHistoryWhereInput struct { - Not *EntityHistoryWhereInput `json:"not,omitempty"` - And []*EntityHistoryWhereInput `json:"and,omitempty"` - Or []*EntityHistoryWhereInput `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"` - IDGt *string `json:"idGT,omitempty"` - IDGte *string `json:"idGTE,omitempty"` - IDLt *string `json:"idLT,omitempty"` - IDLte *string `json:"idLTE,omitempty"` - IDEqualFold *string `json:"idEqualFold,omitempty"` - IDContainsFold *string `json:"idContainsFold,omitempty"` - // history_time field predicates - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` - RefGt *string `json:"refGT,omitempty"` - RefGte *string `json:"refGTE,omitempty"` - RefLt *string `json:"refLT,omitempty"` - RefLte *string `json:"refLTE,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"` - CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` - CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` - CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` - UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` - UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` - UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` - CreatedByGt *string `json:"createdByGT,omitempty"` - CreatedByGte *string `json:"createdByGTE,omitempty"` - CreatedByLt *string `json:"createdByLT,omitempty"` - CreatedByLte *string `json:"createdByLTE,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"` - UpdatedByGt *string `json:"updatedByGT,omitempty"` - UpdatedByGte *string `json:"updatedByGTE,omitempty"` - UpdatedByLt *string `json:"updatedByLT,omitempty"` - UpdatedByLte *string `json:"updatedByLTE,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"` - // deleted_at field predicates - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` - // deleted_by field predicates - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNeq *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGt *string `json:"deletedByGT,omitempty"` - DeletedByGte *string `json:"deletedByGTE,omitempty"` - DeletedByLt *string `json:"deletedByLT,omitempty"` - DeletedByLte *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - NameGt *string `json:"nameGT,omitempty"` - NameGte *string `json:"nameGTE,omitempty"` - NameLt *string `json:"nameLT,omitempty"` - NameLte *string `json:"nameLTE,omitempty"` - NameContains *string `json:"nameContains,omitempty"` - NameHasPrefix *string `json:"nameHasPrefix,omitempty"` - NameHasSuffix *string `json:"nameHasSuffix,omitempty"` - NameIsNil *bool `json:"nameIsNil,omitempty"` - NameNotNil *bool `json:"nameNotNil,omitempty"` - NameEqualFold *string `json:"nameEqualFold,omitempty"` - NameContainsFold *string `json:"nameContainsFold,omitempty"` - // display_name field predicates - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGt *string `json:"displayNameGT,omitempty"` - DisplayNameGte *string `json:"displayNameGTE,omitempty"` - DisplayNameLt *string `json:"displayNameLT,omitempty"` - DisplayNameLte *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameIsNil *bool `json:"displayNameIsNil,omitempty"` - DisplayNameNotNil *bool `json:"displayNameNotNil,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` - // entity_type_id field predicates - EntityTypeID *string `json:"entityTypeID,omitempty"` - EntityTypeIdneq *string `json:"entityTypeIDNEQ,omitempty"` - EntityTypeIDIn []string `json:"entityTypeIDIn,omitempty"` - EntityTypeIDNotIn []string `json:"entityTypeIDNotIn,omitempty"` - EntityTypeIdgt *string `json:"entityTypeIDGT,omitempty"` - EntityTypeIdgte *string `json:"entityTypeIDGTE,omitempty"` - EntityTypeIdlt *string `json:"entityTypeIDLT,omitempty"` - EntityTypeIdlte *string `json:"entityTypeIDLTE,omitempty"` - EntityTypeIDContains *string `json:"entityTypeIDContains,omitempty"` - EntityTypeIDHasPrefix *string `json:"entityTypeIDHasPrefix,omitempty"` - EntityTypeIDHasSuffix *string `json:"entityTypeIDHasSuffix,omitempty"` - EntityTypeIDIsNil *bool `json:"entityTypeIDIsNil,omitempty"` - EntityTypeIDNotNil *bool `json:"entityTypeIDNotNil,omitempty"` - EntityTypeIDEqualFold *string `json:"entityTypeIDEqualFold,omitempty"` - EntityTypeIDContainsFold *string `json:"entityTypeIDContainsFold,omitempty"` - // status field predicates - Status *string `json:"status,omitempty"` - StatusNeq *string `json:"statusNEQ,omitempty"` - StatusIn []string `json:"statusIn,omitempty"` - StatusNotIn []string `json:"statusNotIn,omitempty"` - StatusGt *string `json:"statusGT,omitempty"` - StatusGte *string `json:"statusGTE,omitempty"` - StatusLt *string `json:"statusLT,omitempty"` - StatusLte *string `json:"statusLTE,omitempty"` - StatusContains *string `json:"statusContains,omitempty"` - StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` - StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` - StatusIsNil *bool `json:"statusIsNil,omitempty"` - StatusNotNil *bool `json:"statusNotNil,omitempty"` - StatusEqualFold *string `json:"statusEqualFold,omitempty"` - StatusContainsFold *string `json:"statusContainsFold,omitempty"` -} - -// Ordering options for Entity connections -type EntityOrder struct { - // The ordering direction. - Direction OrderDirection `json:"direction"` - // The field by which to order Entities. - Field EntityOrderField `json:"field"` -} - -type EntitySearchResult struct { - Entities []*Entity `json:"entities,omitempty"` -} - -func (EntitySearchResult) IsSearchResult() {} - -type EntityType 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"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` +type CreateFileInput struct { // 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 entity - Name string `json:"name"` - Owner *Organization `json:"owner,omitempty"` - Entities []*Entity `json:"entities,omitempty"` + // the name of the file provided in the payload key without the extension + ProvidedFileName string `json:"providedFileName"` + // the extension of the file provided + ProvidedFileExtension string `json:"providedFileExtension"` + // the computed size of the file in the original http request + ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` + PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` + // the mime type detected by the system + DetectedMimeType *string `json:"detectedMimeType,omitempty"` + // the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + Md5Hash *string `json:"md5Hash,omitempty"` + // the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + DetectedContentType string `json:"detectedContentType"` + // the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + StoreKey *string `json:"storeKey,omitempty"` + // the category type of the file, if any (e.g. evidence, invoice, etc.) + CategoryType *string `json:"categoryType,omitempty"` + // the full URI of the file + URI *string `json:"uri,omitempty"` + // the storage scheme of the file, e.g. file://, s3://, etc. + StorageScheme *string `json:"storageScheme,omitempty"` + // the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + StorageVolume *string `json:"storageVolume,omitempty"` + // the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + StoragePath *string `json:"storagePath,omitempty"` + UserIDs []string `json:"userIDs,omitempty"` + OrganizationIDs []string `json:"organizationIDs,omitempty"` + GroupIDs []string `json:"groupIDs,omitempty"` + ContactIDs []string `json:"contactIDs,omitempty"` + EntityIDs []string `json:"entityIDs,omitempty"` + UsersettingIDs []string `json:"usersettingIDs,omitempty"` + OrganizationsettingIDs []string `json:"organizationsettingIDs,omitempty"` + TemplateIDs []string `json:"templateIDs,omitempty"` + DocumentdatumIDs []string `json:"documentdatumIDs,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` } -func (EntityType) IsNode() {} - -// Return response for createBulkEntityType mutation -type EntityTypeBulkCreatePayload struct { - // Created entityTypes - EntityTypes []*EntityType `json:"entityTypes,omitempty"` -} +// CreateGroupInput is used for create Group object. +// Input was generated by ent. +type CreateGroupInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the group - must be unique within the organization + Name string `json:"name"` + // the groups description + Description *string `json:"description,omitempty"` + // the URL to an auto generated gravatar image for the group + GravatarLogoURL *string `json:"gravatarLogoURL,omitempty"` + // the URL to an image uploaded by the customer for the groups avatar image + LogoURL *string `json:"logoURL,omitempty"` + // The group's displayed 'friendly' name + DisplayName *string `json:"displayName,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + SettingID string `json:"settingID"` + UserIDs []string `json:"userIDs,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` + IntegrationIDs []string `json:"integrationIDs,omitempty"` + FileIDs []string `json:"fileIDs,omitempty"` + CreateGroupSettings *CreateGroupSettingInput `json:"createGroupSettings,omitempty"` +} -// A connection to a list of items. -type EntityTypeConnection struct { - // A list of edges. - Edges []*EntityTypeEdge `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"` +// CreateGroupMembershipInput is used for create GroupMembership object. +// Input was generated by ent. +type CreateGroupMembershipInput struct { + Role *enums.Role `json:"role,omitempty"` + GroupID string `json:"groupID"` + UserID string `json:"userID"` + EventIDs []string `json:"eventIDs,omitempty"` } -// Return response for createEntityType mutation -type EntityTypeCreatePayload struct { - // Created entityType - EntityType *EntityType `json:"entityType"` +// CreateGroupSettingInput is used for create GroupSetting object. +// Input was generated by ent. +type CreateGroupSettingInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + Visibility *enums.Visibility `json:"visibility,omitempty"` + // the policy governing ability to freely join a group, whether it requires an invitation, application, or either + JoinPolicy *enums.JoinPolicy `json:"joinPolicy,omitempty"` + // whether to sync group members to slack groups + SyncToSlack *bool `json:"syncToSlack,omitempty"` + // whether to sync group members to github groups + SyncToGithub *bool `json:"syncToGithub,omitempty"` + GroupID *string `json:"groupID,omitempty"` } -// Return response for deleteEntityType mutation -type EntityTypeDeletePayload struct { - // Deleted entityType ID - DeletedID string `json:"deletedID"` +// CreateHushInput is used for create Hush object. +// Input was generated by ent. +type CreateHushInput struct { + // the logical name of the corresponding hush secret or it's general grouping + Name string `json:"name"` + // a description of the hush value or purpose, such as github PAT + Description *string `json:"description,omitempty"` + // the kind of secret, such as sshkey, certificate, api token, etc. + Kind *string `json:"kind,omitempty"` + // the generic name of a secret associated with the organization + SecretName *string `json:"secretName,omitempty"` + // the secret value + SecretValue *string `json:"secretValue,omitempty"` + IntegrationIDs []string `json:"integrationIDs,omitempty"` + OrganizationIDs []string `json:"organizationIDs,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` } -// An edge in a connection. -type EntityTypeEdge struct { - // The item at the end of the edge. - Node *EntityType `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` +// CreateIntegrationInput is used for create Integration object. +// Input was generated by ent. +type CreateIntegrationInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the integration - must be unique within the organization + Name string `json:"name"` + // a description of the integration + Description *string `json:"description,omitempty"` + Kind *string `json:"kind,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + SecretIDs []string `json:"secretIDs,omitempty"` + Oauth2tokenIDs []string `json:"oauth2tokenIDs,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` + WebhookIDs []string `json:"webhookIDs,omitempty"` } -type EntityTypeHistory struct { - ID string `json:"id"` - HistoryTime time.Time `json:"historyTime"` - Ref *string `json:"ref,omitempty"` - Operation history.OpType `json:"operation"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - CreatedBy *string `json:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` +// CreateInternalPolicyInput is used for create InternalPolicy object. +// Input was generated by ent. +type CreateInternalPolicyInput struct { // 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 entity + // the name of the policy Name string `json:"name"` + // description of the policy + Description string `json:"description"` + // status of the policy + Status *string `json:"status,omitempty"` + // type of the policy + PolicyType *string `json:"policyType,omitempty"` + // version of the policy + Version *string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + // background of the policy + Background *string `json:"background,omitempty"` + // json data for the policy document + Details map[string]interface{} `json:"details,omitempty"` + ControlobjectiveIDs []string `json:"controlobjectiveIDs,omitempty"` + ControlIDs []string `json:"controlIDs,omitempty"` + ProcedureIDs []string `json:"procedureIDs,omitempty"` + NarrativeIDs []string `json:"narrativeIDs,omitempty"` } -func (EntityTypeHistory) IsNode() {} +// CreateInviteInput is used for create Invite object. +// Input was generated by ent. +type CreateInviteInput struct { + // the expiration date of the invitation token which defaults to 14 days in the future from creation + Expires *time.Time `json:"expires,omitempty"` + // the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + Recipient string `json:"recipient"` + // the status of the invitation + Status *enums.InviteStatus `json:"status,omitempty"` + Role *enums.Role `json:"role,omitempty"` + // the number of attempts made to perform email send of the invitation, maximum of 5 + SendAttempts *int64 `json:"sendAttempts,omitempty"` + // the user who initiated the invitation + RequestorID *string `json:"requestorID,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` +} -// A connection to a list of items. -type EntityTypeHistoryConnection struct { - // A list of edges. - Edges []*EntityTypeHistoryEdge `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"` +// CreateNarrativeInput is used for create Narrative object. +// Input was generated by ent. +type CreateNarrativeInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the narrative + Name string `json:"name"` + // the description of the narrative + Description *string `json:"description,omitempty"` + // which controls are satisfied by the narrative + Satisfies *string `json:"satisfies,omitempty"` + // json data for the narrative document + Details map[string]interface{} `json:"details,omitempty"` + PolicyIDs []string `json:"policyIDs,omitempty"` + ControlIDs []string `json:"controlIDs,omitempty"` + ProcedureIDs []string `json:"procedureIDs,omitempty"` + ControlobjectiveIDs []string `json:"controlobjectiveIDs,omitempty"` } -// An edge in a connection. -type EntityTypeHistoryEdge struct { - // The item at the end of the edge. - Node *EntityTypeHistory `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` +// CreateNoteInput is used for create Note object. +// Input was generated by ent. +type CreateNoteInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the text of the note + Text string `json:"text"` + OwnerID *string `json:"ownerID,omitempty"` + EntityID *string `json:"entityID,omitempty"` + SubcontrolIDs []string `json:"subcontrolIDs,omitempty"` } -// Ordering options for EntityTypeHistory connections -type EntityTypeHistoryOrder struct { - // The ordering direction. - Direction OrderDirection `json:"direction"` - // The field by which to order EntityTypeHistories. - Field EntityTypeHistoryOrderField `json:"field"` +// CreateOauthProviderInput is used for create OauthProvider object. +// Input was generated by ent. +type CreateOauthProviderInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the oauth provider's name + Name string `json:"name"` + // the client id for the oauth provider + ClientID string `json:"clientID"` + // the client secret + ClientSecret string `json:"clientSecret"` + // the redirect url + RedirectURL string `json:"redirectURL"` + // the scopes + Scopes string `json:"scopes"` + // the auth url of the provider + AuthURL string `json:"authURL"` + // the token url of the provider + TokenURL string `json:"tokenURL"` + // the auth style, 0: auto detect 1: third party log in 2: log in with username and password + AuthStyle string `json:"authStyle"` + // the URL to request user information by token + InfoURL string `json:"infoURL"` + OwnerID *string `json:"ownerID,omitempty"` } -// EntityTypeHistoryWhereInput is used for filtering EntityTypeHistory objects. +// CreateOhAuthTooTokenInput is used for create OhAuthTooToken object. // Input was generated by ent. -type EntityTypeHistoryWhereInput struct { - Not *EntityTypeHistoryWhereInput `json:"not,omitempty"` - And []*EntityTypeHistoryWhereInput `json:"and,omitempty"` - Or []*EntityTypeHistoryWhereInput `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"` - IDGt *string `json:"idGT,omitempty"` - IDGte *string `json:"idGTE,omitempty"` - IDLt *string `json:"idLT,omitempty"` - IDLte *string `json:"idLTE,omitempty"` - IDEqualFold *string `json:"idEqualFold,omitempty"` - IDContainsFold *string `json:"idContainsFold,omitempty"` - // history_time field predicates - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` - RefGt *string `json:"refGT,omitempty"` - RefGte *string `json:"refGTE,omitempty"` - RefLt *string `json:"refLT,omitempty"` - RefLte *string `json:"refLTE,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"` - CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` - CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` - CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` - UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` - UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` - UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` - CreatedByGt *string `json:"createdByGT,omitempty"` - CreatedByGte *string `json:"createdByGTE,omitempty"` - CreatedByLt *string `json:"createdByLT,omitempty"` - CreatedByLte *string `json:"createdByLTE,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"` - UpdatedByGt *string `json:"updatedByGT,omitempty"` - UpdatedByGte *string `json:"updatedByGTE,omitempty"` - UpdatedByLt *string `json:"updatedByLT,omitempty"` - UpdatedByLte *string `json:"updatedByLTE,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"` - // deleted_at field predicates - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` - // deleted_by field predicates - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNeq *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGt *string `json:"deletedByGT,omitempty"` - DeletedByGte *string `json:"deletedByGTE,omitempty"` - DeletedByLt *string `json:"deletedByLT,omitempty"` - DeletedByLte *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - NameGt *string `json:"nameGT,omitempty"` - NameGte *string `json:"nameGTE,omitempty"` - NameLt *string `json:"nameLT,omitempty"` - NameLte *string `json:"nameLTE,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"` +type CreateOhAuthTooTokenInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + ClientID string `json:"clientID"` + Scopes []string `json:"scopes,omitempty"` + Nonce string `json:"nonce"` + ClaimsUserID string `json:"claimsUserID"` + ClaimsUsername string `json:"claimsUsername"` + ClaimsEmail string `json:"claimsEmail"` + ClaimsEmailVerified bool `json:"claimsEmailVerified"` + ClaimsGroups []string `json:"claimsGroups,omitempty"` + ClaimsPreferredUsername string `json:"claimsPreferredUsername"` + ConnectorID string `json:"connectorID"` + ConnectorData []string `json:"connectorData,omitempty"` + LastUsed *time.Time `json:"lastUsed,omitempty"` + IntegrationIDs []string `json:"integrationIDs,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` } -// Ordering options for EntityType connections -type EntityTypeOrder struct { - // The ordering direction. - Direction OrderDirection `json:"direction"` - // The field by which to order EntityTypes. - Field EntityTypeOrderField `json:"field"` +// CreateOrgMembershipInput is used for create OrgMembership object. +// Input was generated by ent. +type CreateOrgMembershipInput struct { + Role *enums.Role `json:"role,omitempty"` + OrganizationID string `json:"organizationID"` + UserID string `json:"userID"` + EventIDs []string `json:"eventIDs,omitempty"` } -type EntityTypeSearchResult struct { - EntityTypes []*EntityType `json:"entityTypes,omitempty"` +// CreateOrganizationInput is used for create Organization object. +// Input was generated by ent. +type CreateOrganizationInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the organization + Name string `json:"name"` + // The organization's displayed 'friendly' name + DisplayName *string `json:"displayName,omitempty"` + // An optional description of the organization + Description *string `json:"description,omitempty"` + // orgs directly associated with a user + PersonalOrg *bool `json:"personalOrg,omitempty"` + // URL of the user's remote avatar + AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` + // Whether the organization has a dedicated database + DedicatedDb *bool `json:"dedicatedDb,omitempty"` + ParentID *string `json:"parentID,omitempty"` + GroupIDs []string `json:"groupIDs,omitempty"` + TemplateIDs []string `json:"templateIDs,omitempty"` + IntegrationIDs []string `json:"integrationIDs,omitempty"` + SettingID *string `json:"settingID,omitempty"` + DocumentdatumIDs []string `json:"documentdatumIDs,omitempty"` + EntitlementIDs []string `json:"entitlementIDs,omitempty"` + OrganizationEntitlementIDs []string `json:"organizationEntitlementIDs,omitempty"` + PersonalAccessTokenIDs []string `json:"personalAccessTokenIDs,omitempty"` + APITokenIDs []string `json:"apiTokenIDs,omitempty"` + OauthproviderIDs []string `json:"oauthproviderIDs,omitempty"` + UserIDs []string `json:"userIDs,omitempty"` + InviteIDs []string `json:"inviteIDs,omitempty"` + SubscriberIDs []string `json:"subscriberIDs,omitempty"` + WebhookIDs []string `json:"webhookIDs,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` + SecretIDs []string `json:"secretIDs,omitempty"` + FeatureIDs []string `json:"featureIDs,omitempty"` + FileIDs []string `json:"fileIDs,omitempty"` + EntitlementplanIDs []string `json:"entitlementplanIDs,omitempty"` + EntityIDs []string `json:"entityIDs,omitempty"` + EntitytypeIDs []string `json:"entitytypeIDs,omitempty"` + ContactIDs []string `json:"contactIDs,omitempty"` + NoteIDs []string `json:"noteIDs,omitempty"` + CreateOrgSettings *CreateOrganizationSettingInput `json:"createOrgSettings,omitempty"` } -func (EntityTypeSearchResult) IsSearchResult() {} +// CreateOrganizationSettingInput is used for create OrganizationSetting object. +// Input was generated by ent. +type CreateOrganizationSettingInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // domains associated with the organization + Domains []string `json:"domains,omitempty"` + // Name of the person to contact for billing + BillingContact *string `json:"billingContact,omitempty"` + // Email address of the person to contact for billing + BillingEmail *string `json:"billingEmail,omitempty"` + // Phone number to contact for billing + BillingPhone *string `json:"billingPhone,omitempty"` + // Address to send billing information to + BillingAddress *string `json:"billingAddress,omitempty"` + // Usually government-issued tax ID or business ID such as ABN in Australia + TaxIdentifier *string `json:"taxIdentifier,omitempty"` + // geographical location of the organization + GeoLocation *enums.Region `json:"geoLocation,omitempty"` + OrganizationID *string `json:"organizationID,omitempty"` + FileIDs []string `json:"fileIDs,omitempty"` +} -// Return response for updateEntityType mutation -type EntityTypeUpdatePayload struct { - // Updated entityType - EntityType *EntityType `json:"entityType"` +// CreatePersonalAccessTokenInput is used for create PersonalAccessToken object. +// Input was generated by ent. +type CreatePersonalAccessTokenInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name associated with the token + Name string `json:"name"` + // when the token expires + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + // a description of the token's purpose + Description *string `json:"description,omitempty"` + Scopes []string `json:"scopes,omitempty"` + LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` + OwnerID string `json:"ownerID"` + OrganizationIDs []string `json:"organizationIDs,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` } -// EntityTypeWhereInput is used for filtering EntityType objects. +// CreateProcedureInput is used for create Procedure object. // Input was generated by ent. -type EntityTypeWhereInput struct { - Not *EntityTypeWhereInput `json:"not,omitempty"` - And []*EntityTypeWhereInput `json:"and,omitempty"` - Or []*EntityTypeWhereInput `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"` - IDGt *string `json:"idGT,omitempty"` - IDGte *string `json:"idGTE,omitempty"` - IDLt *string `json:"idLT,omitempty"` - IDLte *string `json:"idLTE,omitempty"` - IDEqualFold *string `json:"idEqualFold,omitempty"` - IDContainsFold *string `json:"idContainsFold,omitempty"` - // created_at field predicates - CreatedAt *time.Time `json:"createdAt,omitempty"` - CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` - CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` - CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` - UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` - UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` - UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` - CreatedByGt *string `json:"createdByGT,omitempty"` - CreatedByGte *string `json:"createdByGTE,omitempty"` - CreatedByLt *string `json:"createdByLT,omitempty"` - CreatedByLte *string `json:"createdByLTE,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"` - UpdatedByGt *string `json:"updatedByGT,omitempty"` - UpdatedByGte *string `json:"updatedByGTE,omitempty"` - UpdatedByLt *string `json:"updatedByLT,omitempty"` - UpdatedByLte *string `json:"updatedByLTE,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"` - // deleted_at field predicates - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` - // deleted_by field predicates - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNeq *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGt *string `json:"deletedByGT,omitempty"` - DeletedByGte *string `json:"deletedByGTE,omitempty"` - DeletedByLt *string `json:"deletedByLT,omitempty"` - DeletedByLte *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - NameGt *string `json:"nameGT,omitempty"` - NameGte *string `json:"nameGTE,omitempty"` - NameLt *string `json:"nameLT,omitempty"` - NameLte *string `json:"nameLTE,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"` - // owner edge predicates - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // entities edge predicates - HasEntities *bool `json:"hasEntities,omitempty"` - HasEntitiesWith []*EntityWhereInput `json:"hasEntitiesWith,omitempty"` +type CreateProcedureInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the procedure + Name string `json:"name"` + // description of the procedure + Description *string `json:"description,omitempty"` + // status of the procedure + Status *string `json:"status,omitempty"` + // type of the procedure + ProcedureType *string `json:"procedureType,omitempty"` + // version of the procedure + Version *string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + // background of the procedure + Background *string `json:"background,omitempty"` + // which controls are satisfied by the procedure + Satisfies *string `json:"satisfies,omitempty"` + // json data for the procedure document + Details map[string]interface{} `json:"details,omitempty"` + ControlIDs []string `json:"controlIDs,omitempty"` + InternalpolicyIDs []string `json:"internalpolicyIDs,omitempty"` + NarrativeIDs []string `json:"narrativeIDs,omitempty"` + RiskIDs []string `json:"riskIDs,omitempty"` +} + +// CreateRiskInput is used for create Risk object. +// Input was generated by ent. +type CreateRiskInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the risk + Name string `json:"name"` + // description of the risk + Description *string `json:"description,omitempty"` + // status of the risk - mitigated or not, inflight, etc. + Status *string `json:"status,omitempty"` + // type of the risk, e.g. strategic, operational, financial, external, etc. + RiskType *string `json:"riskType,omitempty"` + // business costs associated with the risk + BusinessCosts *string `json:"businessCosts,omitempty"` + // impact of the risk - high, medium, low + Impact *enums.RiskImpact `json:"impact,omitempty"` + // likelihood of the risk occurring; unlikely, likely, highly likely + Likelihood *enums.RiskLikelihood `json:"likelihood,omitempty"` + // mitigation for the risk + Mitigation *string `json:"mitigation,omitempty"` + // which controls are satisfied by the risk + Satisfies *string `json:"satisfies,omitempty"` + // json data for the risk document + Details map[string]interface{} `json:"details,omitempty"` + ControlIDs []string `json:"controlIDs,omitempty"` + ProcedureIDs []string `json:"procedureIDs,omitempty"` + ActionplanIDs []string `json:"actionplanIDs,omitempty"` +} + +// CreateStandardInput is used for create Standard object. +// Input was generated by ent. +type CreateStandardInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + Name string `json:"name"` + // description of the standard + Description *string `json:"description,omitempty"` + // family of the standard, e.g. 800-53, 800-171, 27001, etc. + Family *string `json:"family,omitempty"` + // status of the standard - active, deprecated, etc. + Status *string `json:"status,omitempty"` + // type of the standard - security, privacy, etc. + StandardType *string `json:"standardType,omitempty"` + // version of the standard + Version *string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + // background of the standard + Background *string `json:"background,omitempty"` + // which controls are satisfied by the standard + Satisfies *string `json:"satisfies,omitempty"` + // json data with details of the standard + Details map[string]interface{} `json:"details,omitempty"` + ControlobjectiveIDs []string `json:"controlobjectiveIDs,omitempty"` + ControlIDs []string `json:"controlIDs,omitempty"` + ProcedureIDs []string `json:"procedureIDs,omitempty"` + ActionplanIDs []string `json:"actionplanIDs,omitempty"` +} + +// CreateSubcontrolInput is used for create Subcontrol object. +// Input was generated by ent. +type CreateSubcontrolInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the subcontrol + Name string `json:"name"` + // description of the subcontrol + Description *string `json:"description,omitempty"` + // status of the subcontrol + Status *string `json:"status,omitempty"` + // type of the subcontrol + SubcontrolType *string `json:"subcontrolType,omitempty"` + // version of the control + Version *string `json:"version,omitempty"` + // number of the subcontrol + SubcontrolNumber *string `json:"subcontrolNumber,omitempty"` + // subcontrol family + Family *string `json:"family,omitempty"` + // subcontrol class + Class *string `json:"class,omitempty"` + // source of the control, e.g. framework, template, user-defined, etc. + Source *string `json:"source,omitempty"` + // mapped frameworks that the subcontrol is part of + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + // implementation evidence of the subcontrol + ImplementationEvidence *string `json:"implementationEvidence,omitempty"` + // implementation status + ImplementationStatus *string `json:"implementationStatus,omitempty"` + // date the subcontrol was implemented + ImplementationDate *time.Time `json:"implementationDate,omitempty"` + // implementation verification + ImplementationVerification *string `json:"implementationVerification,omitempty"` + // date the subcontrol implementation was verified + ImplementationVerificationDate *time.Time `json:"implementationVerificationDate,omitempty"` + // json data details of the subcontrol + Details map[string]interface{} `json:"details,omitempty"` + ControlIDs []string `json:"controlIDs,omitempty"` + UserIDs []string `json:"userIDs,omitempty"` + NotesID *string `json:"notesID,omitempty"` } -// Return response for updateEntity mutation -type EntityUpdatePayload struct { - // Updated entity - Entity *Entity `json:"entity"` +// CreateSubscriberInput is used for create Subscriber object. +// Input was generated by ent. +type CreateSubscriberInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // email address of the subscriber + Email string `json:"email"` + // phone number of the subscriber + PhoneNumber *string `json:"phoneNumber,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` } -// EntityWhereInput is used for filtering Entity objects. +// CreateTFASettingInput is used for create TFASetting object. // Input was generated by ent. -type EntityWhereInput struct { - Not *EntityWhereInput `json:"not,omitempty"` - And []*EntityWhereInput `json:"and,omitempty"` - Or []*EntityWhereInput `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"` - IDGt *string `json:"idGT,omitempty"` - IDGte *string `json:"idGTE,omitempty"` - IDLt *string `json:"idLT,omitempty"` - IDLte *string `json:"idLTE,omitempty"` - IDEqualFold *string `json:"idEqualFold,omitempty"` - IDContainsFold *string `json:"idContainsFold,omitempty"` - // created_at field predicates - CreatedAt *time.Time `json:"createdAt,omitempty"` - CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` - CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` - CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` - UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` - UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` - UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` - CreatedByGt *string `json:"createdByGT,omitempty"` - CreatedByGte *string `json:"createdByGTE,omitempty"` - CreatedByLt *string `json:"createdByLT,omitempty"` - CreatedByLte *string `json:"createdByLTE,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"` - UpdatedByGt *string `json:"updatedByGT,omitempty"` - UpdatedByGte *string `json:"updatedByGTE,omitempty"` - UpdatedByLt *string `json:"updatedByLT,omitempty"` - UpdatedByLte *string `json:"updatedByLTE,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"` - // deleted_at field predicates - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` - // deleted_by field predicates - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNeq *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGt *string `json:"deletedByGT,omitempty"` - DeletedByGte *string `json:"deletedByGTE,omitempty"` - DeletedByLt *string `json:"deletedByLT,omitempty"` - DeletedByLte *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - NameGt *string `json:"nameGT,omitempty"` - NameGte *string `json:"nameGTE,omitempty"` - NameLt *string `json:"nameLT,omitempty"` - NameLte *string `json:"nameLTE,omitempty"` - NameContains *string `json:"nameContains,omitempty"` - NameHasPrefix *string `json:"nameHasPrefix,omitempty"` - NameHasSuffix *string `json:"nameHasSuffix,omitempty"` - NameIsNil *bool `json:"nameIsNil,omitempty"` - NameNotNil *bool `json:"nameNotNil,omitempty"` - NameEqualFold *string `json:"nameEqualFold,omitempty"` - NameContainsFold *string `json:"nameContainsFold,omitempty"` - // display_name field predicates - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGt *string `json:"displayNameGT,omitempty"` - DisplayNameGte *string `json:"displayNameGTE,omitempty"` - DisplayNameLt *string `json:"displayNameLT,omitempty"` - DisplayNameLte *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameIsNil *bool `json:"displayNameIsNil,omitempty"` - DisplayNameNotNil *bool `json:"displayNameNotNil,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` - // entity_type_id field predicates - EntityTypeID *string `json:"entityTypeID,omitempty"` - EntityTypeIdneq *string `json:"entityTypeIDNEQ,omitempty"` - EntityTypeIDIn []string `json:"entityTypeIDIn,omitempty"` - EntityTypeIDNotIn []string `json:"entityTypeIDNotIn,omitempty"` - EntityTypeIdgt *string `json:"entityTypeIDGT,omitempty"` - EntityTypeIdgte *string `json:"entityTypeIDGTE,omitempty"` - EntityTypeIdlt *string `json:"entityTypeIDLT,omitempty"` - EntityTypeIdlte *string `json:"entityTypeIDLTE,omitempty"` - EntityTypeIDContains *string `json:"entityTypeIDContains,omitempty"` - EntityTypeIDHasPrefix *string `json:"entityTypeIDHasPrefix,omitempty"` - EntityTypeIDHasSuffix *string `json:"entityTypeIDHasSuffix,omitempty"` - EntityTypeIDIsNil *bool `json:"entityTypeIDIsNil,omitempty"` - EntityTypeIDNotNil *bool `json:"entityTypeIDNotNil,omitempty"` - EntityTypeIDEqualFold *string `json:"entityTypeIDEqualFold,omitempty"` - EntityTypeIDContainsFold *string `json:"entityTypeIDContainsFold,omitempty"` - // status field predicates - Status *string `json:"status,omitempty"` - StatusNeq *string `json:"statusNEQ,omitempty"` - StatusIn []string `json:"statusIn,omitempty"` - StatusNotIn []string `json:"statusNotIn,omitempty"` - StatusGt *string `json:"statusGT,omitempty"` - StatusGte *string `json:"statusGTE,omitempty"` - StatusLt *string `json:"statusLT,omitempty"` - StatusLte *string `json:"statusLTE,omitempty"` - StatusContains *string `json:"statusContains,omitempty"` - StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` - StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` - StatusIsNil *bool `json:"statusIsNil,omitempty"` - StatusNotNil *bool `json:"statusNotNil,omitempty"` - StatusEqualFold *string `json:"statusEqualFold,omitempty"` - StatusContainsFold *string `json:"statusContainsFold,omitempty"` - // owner edge predicates - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // contacts edge predicates - HasContacts *bool `json:"hasContacts,omitempty"` - HasContactsWith []*ContactWhereInput `json:"hasContactsWith,omitempty"` - // documents edge predicates - HasDocuments *bool `json:"hasDocuments,omitempty"` - HasDocumentsWith []*DocumentDataWhereInput `json:"hasDocumentsWith,omitempty"` - // notes edge predicates - HasNotes *bool `json:"hasNotes,omitempty"` - HasNotesWith []*NoteWhereInput `json:"hasNotesWith,omitempty"` - // files edge predicates - HasFiles *bool `json:"hasFiles,omitempty"` - HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` - // entity_type edge predicates - HasEntityType *bool `json:"hasEntityType,omitempty"` - HasEntityTypeWith []*EntityTypeWhereInput `json:"hasEntityTypeWith,omitempty"` +type CreateTFASettingInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + TotpAllowed *bool `json:"totpAllowed,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` } -type Event struct { +// CreateTemplateInput is used for create Template object. +// Input was generated by ent. +type CreateTemplateInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the template + Name string `json:"name"` + // the type of the template, either a provided template or an implementation (document) + TemplateType *enums.DocumentType `json:"templateType,omitempty"` + // the description of the template + Description *string `json:"description,omitempty"` + // the jsonschema object of the template + Jsonconfig json.RawMessage `json:"jsonconfig"` + // the uischema for the template to render in the UI + Uischema json.RawMessage `json:"uischema,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + DocumentIDs []string `json:"documentIDs,omitempty"` + FileIDs []string `json:"fileIDs,omitempty"` +} + +// CreateUserInput is used for create User object. +// Input was generated by ent. +type CreateUserInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + Email string `json:"email"` + FirstName *string `json:"firstName,omitempty"` + LastName *string `json:"lastName,omitempty"` + // The user's displayed 'friendly' name + DisplayName string `json:"displayName"` + // URL of the user's remote avatar + AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` + // The user's local avatar file + AvatarLocalFile *string `json:"avatarLocalFile,omitempty"` + // The time the user's (local) avatar was last updated + AvatarUpdatedAt *time.Time `json:"avatarUpdatedAt,omitempty"` + // the time the user was last seen + LastSeen *time.Time `json:"lastSeen,omitempty"` + // user password hash + Password *string `json:"password,omitempty"` + // the Subject of the user JWT + Sub *string `json:"sub,omitempty"` + // auth provider used to register the account + AuthProvider *enums.AuthProvider `json:"authProvider,omitempty"` + // the user's role + Role *enums.Role `json:"role,omitempty"` + PersonalAccessTokenIDs []string `json:"personalAccessTokenIDs,omitempty"` + TfaSettingIDs []string `json:"tfaSettingIDs,omitempty"` + SettingID string `json:"settingID"` + EmailVerificationTokenIDs []string `json:"emailVerificationTokenIDs,omitempty"` + PasswordResetTokenIDs []string `json:"passwordResetTokenIDs,omitempty"` + GroupIDs []string `json:"groupIDs,omitempty"` + OrganizationIDs []string `json:"organizationIDs,omitempty"` + WebauthnIDs []string `json:"webauthnIDs,omitempty"` + FileIDs []string `json:"fileIDs,omitempty"` + FileID *string `json:"fileID,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` + ActionplanIDs []string `json:"actionplanIDs,omitempty"` + SubcontrolIDs []string `json:"subcontrolIDs,omitempty"` +} + +// CreateUserSettingInput is used for create UserSetting object. +// Input was generated by ent. +type CreateUserSettingInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // user account is locked if unconfirmed or explicitly locked + Locked *bool `json:"locked,omitempty"` + // The time notifications regarding the user were silenced + SilencedAt *time.Time `json:"silencedAt,omitempty"` + // The time the user was suspended + SuspendedAt *time.Time `json:"suspendedAt,omitempty"` + // status of the user account + Status *enums.UserStatus `json:"status,omitempty"` + // whether the user has confirmed their email address + EmailConfirmed *bool `json:"emailConfirmed,omitempty"` + // specifies a user may complete authentication by verifying a WebAuthn capable device + IsWebauthnAllowed *bool `json:"isWebauthnAllowed,omitempty"` + // whether the user has two factor authentication enabled + IsTfaEnabled *bool `json:"isTfaEnabled,omitempty"` + UserID *string `json:"userID,omitempty"` + DefaultOrgID *string `json:"defaultOrgID,omitempty"` + FileIDs []string `json:"fileIDs,omitempty"` +} + +// CreateWebhookInput is used for create Webhook object. +// Input was generated by ent. +type CreateWebhookInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the webhook + Name string `json:"name"` + // a description of the webhook + Description *string `json:"description,omitempty"` + // the url to send the webhook to + DestinationURL string `json:"destinationURL"` + // indicates if the webhook is active and enabled + Enabled *bool `json:"enabled,omitempty"` + // the number of failures + Failures *int64 `json:"failures,omitempty"` + // the last error message + LastError *string `json:"lastError,omitempty"` + // the last response + LastResponse *string `json:"lastResponse,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + EventIDs []string `json:"eventIDs,omitempty"` + IntegrationIDs []string `json:"integrationIDs,omitempty"` +} + +type DocumentData 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"` // tags associated with the object - Tags []string `json:"tags,omitempty"` - EventID *string `json:"eventID,omitempty"` - CorrelationID *string `json:"correlationID,omitempty"` - EventType string `json:"eventType"` - Metadata map[string]interface{} `json:"metadata,omitempty"` - User []*User `json:"user,omitempty"` - Group []*Group `json:"group,omitempty"` - Integration []*Integration `json:"integration,omitempty"` - Organization []*Organization `json:"organization,omitempty"` - Invite []*Invite `json:"invite,omitempty"` - Feature []*Feature `json:"feature,omitempty"` - Entitlementplan []*EntitlementPlan `json:"entitlementplan,omitempty"` - Entitlementplanfeature []*EntitlementPlanFeature `json:"entitlementplanfeature,omitempty"` - PersonalAccessToken []*PersonalAccessToken `json:"personalAccessToken,omitempty"` - Oauth2token []*OhAuthTooToken `json:"oauth2token,omitempty"` - Hush []*Hush `json:"hush,omitempty"` - Orgmembership []*OrgMembership `json:"orgmembership,omitempty"` - Groupmembership []*GroupMembership `json:"groupmembership,omitempty"` - Entitlement []*Entitlement `json:"entitlement,omitempty"` - Webhook []*Webhook `json:"webhook,omitempty"` - Subscriber []*Subscriber `json:"subscriber,omitempty"` - File []*File `json:"file,omitempty"` + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the template id of the document + TemplateID string `json:"templateID"` + // the json data of the document + Data json.RawMessage `json:"data"` + Owner *Organization `json:"owner,omitempty"` + Template *Template `json:"template"` + Entity []*Entity `json:"entity,omitempty"` + Files []*File `json:"files,omitempty"` } -func (Event) IsNode() {} +func (DocumentData) IsNode() {} -// Return response for createBulkEvent mutation -type EventBulkCreatePayload struct { - // Created events - Events []*Event `json:"events,omitempty"` +// Return response for createBulkDocumentData mutation +type DocumentDataBulkCreatePayload struct { + // Created documentData + DocumentData []*DocumentData `json:"documentData,omitempty"` } // A connection to a list of items. -type EventConnection struct { +type DocumentDataConnection struct { // A list of edges. - Edges []*EventEdge `json:"edges,omitempty"` + Edges []*DocumentDataEdge `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 createEvent mutation -type EventCreatePayload struct { - // Created event - Event *Event `json:"event"` +// Return response for createDocumentData mutation +type DocumentDataCreatePayload struct { + // Created documentData + DocumentData *DocumentData `json:"documentData"` } -// Return response for deleteEvent mutation -type EventDeletePayload struct { - // Deleted event ID +// Return response for deleteDocumentData mutation +type DocumentDataDeletePayload struct { + // Deleted documentData ID DeletedID string `json:"deletedID"` } // An edge in a connection. -type EventEdge struct { +type DocumentDataEdge struct { // The item at the end of the edge. - Node *Event `json:"node,omitempty"` + Node *DocumentData `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -type EventHistory struct { +type DocumentDataHistory struct { ID string `json:"id"` HistoryTime time.Time `json:"historyTime"` Ref *string `json:"ref,omitempty"` @@ -4436,19 +3862,23 @@ type EventHistory struct { CreatedBy *string `json:"createdBy,omitempty"` UpdatedBy *string `json:"updatedBy,omitempty"` // tags associated with the object - Tags []string `json:"tags,omitempty"` - EventID *string `json:"eventID,omitempty"` - CorrelationID *string `json:"correlationID,omitempty"` - EventType string `json:"eventType"` - Metadata map[string]interface{} `json:"metadata,omitempty"` -} - -func (EventHistory) IsNode() {} - -// A connection to a list of items. -type EventHistoryConnection struct { - // A list of edges. - Edges []*EventHistoryEdge `json:"edges,omitempty"` + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the template id of the document + TemplateID string `json:"templateID"` + // the json data of the document + Data json.RawMessage `json:"data"` +} + +func (DocumentDataHistory) IsNode() {} + +// A connection to a list of items. +type DocumentDataHistoryConnection struct { + // A list of edges. + Edges []*DocumentDataHistoryEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. @@ -4456,19 +3886,19 @@ type EventHistoryConnection struct { } // An edge in a connection. -type EventHistoryEdge struct { +type DocumentDataHistoryEdge struct { // The item at the end of the edge. - Node *EventHistory `json:"node,omitempty"` + Node *DocumentDataHistory `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -// EventHistoryWhereInput is used for filtering EventHistory objects. +// DocumentDataHistoryWhereInput is used for filtering DocumentDataHistory objects. // Input was generated by ent. -type EventHistoryWhereInput struct { - Not *EventHistoryWhereInput `json:"not,omitempty"` - And []*EventHistoryWhereInput `json:"and,omitempty"` - Or []*EventHistoryWhereInput `json:"or,omitempty"` +type DocumentDataHistoryWhereInput struct { + Not *DocumentDataHistoryWhereInput `json:"not,omitempty"` + And []*DocumentDataHistoryWhereInput `json:"and,omitempty"` + Or []*DocumentDataHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -4564,72 +3994,83 @@ type EventHistoryWhereInput struct { UpdatedByNotNil *bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` - // event_id field predicates - EventID *string `json:"eventID,omitempty"` - EventIdneq *string `json:"eventIDNEQ,omitempty"` - EventIDIn []string `json:"eventIDIn,omitempty"` - EventIDNotIn []string `json:"eventIDNotIn,omitempty"` - EventIdgt *string `json:"eventIDGT,omitempty"` - EventIdgte *string `json:"eventIDGTE,omitempty"` - EventIdlt *string `json:"eventIDLT,omitempty"` - EventIdlte *string `json:"eventIDLTE,omitempty"` - EventIDContains *string `json:"eventIDContains,omitempty"` - EventIDHasPrefix *string `json:"eventIDHasPrefix,omitempty"` - EventIDHasSuffix *string `json:"eventIDHasSuffix,omitempty"` - EventIDIsNil *bool `json:"eventIDIsNil,omitempty"` - EventIDNotNil *bool `json:"eventIDNotNil,omitempty"` - EventIDEqualFold *string `json:"eventIDEqualFold,omitempty"` - EventIDContainsFold *string `json:"eventIDContainsFold,omitempty"` - // correlation_id field predicates - CorrelationID *string `json:"correlationID,omitempty"` - CorrelationIdneq *string `json:"correlationIDNEQ,omitempty"` - CorrelationIDIn []string `json:"correlationIDIn,omitempty"` - CorrelationIDNotIn []string `json:"correlationIDNotIn,omitempty"` - CorrelationIdgt *string `json:"correlationIDGT,omitempty"` - CorrelationIdgte *string `json:"correlationIDGTE,omitempty"` - CorrelationIdlt *string `json:"correlationIDLT,omitempty"` - CorrelationIdlte *string `json:"correlationIDLTE,omitempty"` - CorrelationIDContains *string `json:"correlationIDContains,omitempty"` - CorrelationIDHasPrefix *string `json:"correlationIDHasPrefix,omitempty"` - CorrelationIDHasSuffix *string `json:"correlationIDHasSuffix,omitempty"` - CorrelationIDIsNil *bool `json:"correlationIDIsNil,omitempty"` - CorrelationIDNotNil *bool `json:"correlationIDNotNil,omitempty"` - CorrelationIDEqualFold *string `json:"correlationIDEqualFold,omitempty"` - CorrelationIDContainsFold *string `json:"correlationIDContainsFold,omitempty"` - // event_type field predicates - EventType *string `json:"eventType,omitempty"` - EventTypeNeq *string `json:"eventTypeNEQ,omitempty"` - EventTypeIn []string `json:"eventTypeIn,omitempty"` - EventTypeNotIn []string `json:"eventTypeNotIn,omitempty"` - EventTypeGt *string `json:"eventTypeGT,omitempty"` - EventTypeGte *string `json:"eventTypeGTE,omitempty"` - EventTypeLt *string `json:"eventTypeLT,omitempty"` - EventTypeLte *string `json:"eventTypeLTE,omitempty"` - EventTypeContains *string `json:"eventTypeContains,omitempty"` - EventTypeHasPrefix *string `json:"eventTypeHasPrefix,omitempty"` - EventTypeHasSuffix *string `json:"eventTypeHasSuffix,omitempty"` - EventTypeEqualFold *string `json:"eventTypeEqualFold,omitempty"` - EventTypeContainsFold *string `json:"eventTypeContainsFold,omitempty"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + // template_id field predicates + TemplateID *string `json:"templateID,omitempty"` + TemplateIdneq *string `json:"templateIDNEQ,omitempty"` + TemplateIDIn []string `json:"templateIDIn,omitempty"` + TemplateIDNotIn []string `json:"templateIDNotIn,omitempty"` + TemplateIdgt *string `json:"templateIDGT,omitempty"` + TemplateIdgte *string `json:"templateIDGTE,omitempty"` + TemplateIdlt *string `json:"templateIDLT,omitempty"` + TemplateIdlte *string `json:"templateIDLTE,omitempty"` + TemplateIDContains *string `json:"templateIDContains,omitempty"` + TemplateIDHasPrefix *string `json:"templateIDHasPrefix,omitempty"` + TemplateIDHasSuffix *string `json:"templateIDHasSuffix,omitempty"` + TemplateIDEqualFold *string `json:"templateIDEqualFold,omitempty"` + TemplateIDContainsFold *string `json:"templateIDContainsFold,omitempty"` } -type EventSearchResult struct { - Events []*Event `json:"events,omitempty"` +type DocumentDataSearchResult struct { + DocumentData []*DocumentData `json:"documentData,omitempty"` } -func (EventSearchResult) IsSearchResult() {} +func (DocumentDataSearchResult) IsSearchResult() {} -// Return response for updateEvent mutation -type EventUpdatePayload struct { - // Updated event - Event *Event `json:"event"` +// Return response for updateDocumentData mutation +type DocumentDataUpdatePayload struct { + // Updated documentData + DocumentData *DocumentData `json:"documentData"` } -// EventWhereInput is used for filtering Event objects. +// DocumentDataWhereInput is used for filtering DocumentData objects. // Input was generated by ent. -type EventWhereInput struct { - Not *EventWhereInput `json:"not,omitempty"` - And []*EventWhereInput `json:"and,omitempty"` - Or []*EventWhereInput `json:"or,omitempty"` +type DocumentDataWhereInput struct { + Not *DocumentDataWhereInput `json:"not,omitempty"` + And []*DocumentDataWhereInput `json:"and,omitempty"` + Or []*DocumentDataWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -4695,172 +4136,148 @@ type EventWhereInput struct { UpdatedByNotNil *bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` - // event_id field predicates - EventID *string `json:"eventID,omitempty"` - EventIdneq *string `json:"eventIDNEQ,omitempty"` - EventIDIn []string `json:"eventIDIn,omitempty"` - EventIDNotIn []string `json:"eventIDNotIn,omitempty"` - EventIdgt *string `json:"eventIDGT,omitempty"` - EventIdgte *string `json:"eventIDGTE,omitempty"` - EventIdlt *string `json:"eventIDLT,omitempty"` - EventIdlte *string `json:"eventIDLTE,omitempty"` - EventIDContains *string `json:"eventIDContains,omitempty"` - EventIDHasPrefix *string `json:"eventIDHasPrefix,omitempty"` - EventIDHasSuffix *string `json:"eventIDHasSuffix,omitempty"` - EventIDIsNil *bool `json:"eventIDIsNil,omitempty"` - EventIDNotNil *bool `json:"eventIDNotNil,omitempty"` - EventIDEqualFold *string `json:"eventIDEqualFold,omitempty"` - EventIDContainsFold *string `json:"eventIDContainsFold,omitempty"` - // correlation_id field predicates - CorrelationID *string `json:"correlationID,omitempty"` - CorrelationIdneq *string `json:"correlationIDNEQ,omitempty"` - CorrelationIDIn []string `json:"correlationIDIn,omitempty"` - CorrelationIDNotIn []string `json:"correlationIDNotIn,omitempty"` - CorrelationIdgt *string `json:"correlationIDGT,omitempty"` - CorrelationIdgte *string `json:"correlationIDGTE,omitempty"` - CorrelationIdlt *string `json:"correlationIDLT,omitempty"` - CorrelationIdlte *string `json:"correlationIDLTE,omitempty"` - CorrelationIDContains *string `json:"correlationIDContains,omitempty"` - CorrelationIDHasPrefix *string `json:"correlationIDHasPrefix,omitempty"` - CorrelationIDHasSuffix *string `json:"correlationIDHasSuffix,omitempty"` - CorrelationIDIsNil *bool `json:"correlationIDIsNil,omitempty"` - CorrelationIDNotNil *bool `json:"correlationIDNotNil,omitempty"` - CorrelationIDEqualFold *string `json:"correlationIDEqualFold,omitempty"` - CorrelationIDContainsFold *string `json:"correlationIDContainsFold,omitempty"` - // event_type field predicates - EventType *string `json:"eventType,omitempty"` - EventTypeNeq *string `json:"eventTypeNEQ,omitempty"` - EventTypeIn []string `json:"eventTypeIn,omitempty"` - EventTypeNotIn []string `json:"eventTypeNotIn,omitempty"` - EventTypeGt *string `json:"eventTypeGT,omitempty"` - EventTypeGte *string `json:"eventTypeGTE,omitempty"` - EventTypeLt *string `json:"eventTypeLT,omitempty"` - EventTypeLte *string `json:"eventTypeLTE,omitempty"` - EventTypeContains *string `json:"eventTypeContains,omitempty"` - EventTypeHasPrefix *string `json:"eventTypeHasPrefix,omitempty"` - EventTypeHasSuffix *string `json:"eventTypeHasSuffix,omitempty"` - EventTypeEqualFold *string `json:"eventTypeEqualFold,omitempty"` - EventTypeContainsFold *string `json:"eventTypeContainsFold,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"` - // integration edge predicates - HasIntegration *bool `json:"hasIntegration,omitempty"` - HasIntegrationWith []*IntegrationWhereInput `json:"hasIntegrationWith,omitempty"` - // organization edge predicates - HasOrganization *bool `json:"hasOrganization,omitempty"` - HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` - // invite edge predicates - HasInvite *bool `json:"hasInvite,omitempty"` - HasInviteWith []*InviteWhereInput `json:"hasInviteWith,omitempty"` - // feature edge predicates - HasFeature *bool `json:"hasFeature,omitempty"` - HasFeatureWith []*FeatureWhereInput `json:"hasFeatureWith,omitempty"` - // entitlementplan edge predicates - HasEntitlementplan *bool `json:"hasEntitlementplan,omitempty"` - HasEntitlementplanWith []*EntitlementPlanWhereInput `json:"hasEntitlementplanWith,omitempty"` - // entitlementplanfeature edge predicates - HasEntitlementplanfeature *bool `json:"hasEntitlementplanfeature,omitempty"` - HasEntitlementplanfeatureWith []*EntitlementPlanFeatureWhereInput `json:"hasEntitlementplanfeatureWith,omitempty"` - // personal_access_token edge predicates - HasPersonalAccessToken *bool `json:"hasPersonalAccessToken,omitempty"` - HasPersonalAccessTokenWith []*PersonalAccessTokenWhereInput `json:"hasPersonalAccessTokenWith,omitempty"` - // oauth2token edge predicates - HasOauth2token *bool `json:"hasOauth2token,omitempty"` - HasOauth2tokenWith []*OhAuthTooTokenWhereInput `json:"hasOauth2tokenWith,omitempty"` - // hush edge predicates - HasHush *bool `json:"hasHush,omitempty"` - HasHushWith []*HushWhereInput `json:"hasHushWith,omitempty"` - // orgmembership edge predicates - HasOrgmembership *bool `json:"hasOrgmembership,omitempty"` - HasOrgmembershipWith []*OrgMembershipWhereInput `json:"hasOrgmembershipWith,omitempty"` - // groupmembership edge predicates - HasGroupmembership *bool `json:"hasGroupmembership,omitempty"` - HasGroupmembershipWith []*GroupMembershipWhereInput `json:"hasGroupmembershipWith,omitempty"` - // entitlement edge predicates - HasEntitlement *bool `json:"hasEntitlement,omitempty"` - HasEntitlementWith []*EntitlementWhereInput `json:"hasEntitlementWith,omitempty"` - // webhook edge predicates - HasWebhook *bool `json:"hasWebhook,omitempty"` - HasWebhookWith []*WebhookWhereInput `json:"hasWebhookWith,omitempty"` - // subscriber edge predicates - HasSubscriber *bool `json:"hasSubscriber,omitempty"` - HasSubscriberWith []*SubscriberWhereInput `json:"hasSubscriberWith,omitempty"` - // file edge predicates - HasFile *bool `json:"hasFile,omitempty"` - HasFileWith []*FileWhereInput `json:"hasFileWith,omitempty"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + // template_id field predicates + TemplateID *string `json:"templateID,omitempty"` + TemplateIdneq *string `json:"templateIDNEQ,omitempty"` + TemplateIDIn []string `json:"templateIDIn,omitempty"` + TemplateIDNotIn []string `json:"templateIDNotIn,omitempty"` + TemplateIdgt *string `json:"templateIDGT,omitempty"` + TemplateIdgte *string `json:"templateIDGTE,omitempty"` + TemplateIdlt *string `json:"templateIDLT,omitempty"` + TemplateIdlte *string `json:"templateIDLTE,omitempty"` + TemplateIDContains *string `json:"templateIDContains,omitempty"` + TemplateIDHasPrefix *string `json:"templateIDHasPrefix,omitempty"` + TemplateIDHasSuffix *string `json:"templateIDHasSuffix,omitempty"` + TemplateIDEqualFold *string `json:"templateIDEqualFold,omitempty"` + TemplateIDContainsFold *string `json:"templateIDContainsFold,omitempty"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // template edge predicates + HasTemplate *bool `json:"hasTemplate,omitempty"` + HasTemplateWith []*TemplateWhereInput `json:"hasTemplateWith,omitempty"` + // entity edge predicates + HasEntity *bool `json:"hasEntity,omitempty"` + HasEntityWith []*EntityWhereInput `json:"hasEntityWith,omitempty"` + // files edge predicates + HasFiles *bool `json:"hasFiles,omitempty"` + HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` } -type Feature struct { +type Entitlement 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"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy *string `json:"deletedBy,omitempty"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` // the organization id that owns the object OwnerID *string `json:"ownerID,omitempty"` - // the unique name of the feature - Name string `json:"name"` - // the displayed 'friendly' name of the feature - DisplayName *string `json:"displayName,omitempty"` - // enabled features are available for use - Enabled bool `json:"enabled"` - // a description of the feature - Description *string `json:"description,omitempty"` - // metadata for the feature - Metadata map[string]interface{} `json:"metadata,omitempty"` - Owner *Organization `json:"owner,omitempty"` - Plans []*EntitlementPlan `json:"plans,omitempty"` - Events []*Event `json:"events,omitempty"` - Features []*EntitlementPlanFeature `json:"features,omitempty"` + // the plan to which the entitlement belongs + PlanID string `json:"planID"` + // the organization to which the entitlement belongs + OrganizationID string `json:"organizationID"` + // used to store references to external systems, e.g. Stripe + ExternalCustomerID *string `json:"externalCustomerID,omitempty"` + // used to store references to external systems, e.g. Stripe + ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` + // whether or not the customers entitlement expires - expires_at will show the time + Expires bool `json:"expires"` + // the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + // whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + Cancelled bool `json:"cancelled"` + Owner *Organization `json:"owner,omitempty"` + Plan *EntitlementPlan `json:"plan"` + Organization *Organization `json:"organization"` + Events []*Event `json:"events,omitempty"` } -func (Feature) IsNode() {} +func (Entitlement) IsNode() {} -// Return response for createBulkFeature mutation -type FeatureBulkCreatePayload struct { - // Created features - Features []*Feature `json:"features,omitempty"` +// Return response for createBulkEntitlement mutation +type EntitlementBulkCreatePayload struct { + // Created entitlements + Entitlements []*Entitlement `json:"entitlements,omitempty"` } // A connection to a list of items. -type FeatureConnection struct { +type EntitlementConnection struct { // A list of edges. - Edges []*FeatureEdge `json:"edges,omitempty"` + Edges []*EntitlementEdge `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 createFeature mutation -type FeatureCreatePayload struct { - // Created feature - Feature *Feature `json:"feature"` +// Return response for createEntitlement mutation +type EntitlementCreatePayload struct { + // Created entitlement + Entitlement *Entitlement `json:"entitlement"` } -// Return response for deleteFeature mutation -type FeatureDeletePayload struct { - // Deleted feature ID +// Return response for deleteEntitlement mutation +type EntitlementDeletePayload struct { + // Deleted entitlement ID DeletedID string `json:"deletedID"` } // An edge in a connection. -type FeatureEdge struct { +type EntitlementEdge struct { // The item at the end of the edge. - Node *Feature `json:"node,omitempty"` + Node *Entitlement `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -type FeatureHistory struct { +type EntitlementHistory struct { ID string `json:"id"` HistoryTime time.Time `json:"historyTime"` Ref *string `json:"ref,omitempty"` @@ -4869,30 +4286,34 @@ type FeatureHistory struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` UpdatedBy *string `json:"updatedBy,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object - Tags []string `json:"tags,omitempty"` + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` // the organization id that owns the object OwnerID *string `json:"ownerID,omitempty"` - // the unique name of the feature - Name string `json:"name"` - // the displayed 'friendly' name of the feature - DisplayName *string `json:"displayName,omitempty"` - // enabled features are available for use - Enabled bool `json:"enabled"` - // a description of the feature - Description *string `json:"description,omitempty"` - // metadata for the feature - Metadata map[string]interface{} `json:"metadata,omitempty"` + // the plan to which the entitlement belongs + PlanID string `json:"planID"` + // the organization to which the entitlement belongs + OrganizationID string `json:"organizationID"` + // used to store references to external systems, e.g. Stripe + ExternalCustomerID *string `json:"externalCustomerID,omitempty"` + // used to store references to external systems, e.g. Stripe + ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` + // whether or not the customers entitlement expires - expires_at will show the time + Expires bool `json:"expires"` + // the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + // whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + Cancelled bool `json:"cancelled"` } -func (FeatureHistory) IsNode() {} +func (EntitlementHistory) IsNode() {} // A connection to a list of items. -type FeatureHistoryConnection struct { +type EntitlementHistoryConnection struct { // A list of edges. - Edges []*FeatureHistoryEdge `json:"edges,omitempty"` + Edges []*EntitlementHistoryEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. @@ -4900,19 +4321,19 @@ type FeatureHistoryConnection struct { } // An edge in a connection. -type FeatureHistoryEdge struct { +type EntitlementHistoryEdge struct { // The item at the end of the edge. - Node *FeatureHistory `json:"node,omitempty"` + Node *EntitlementHistory `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -// FeatureHistoryWhereInput is used for filtering FeatureHistory objects. +// EntitlementHistoryWhereInput is used for filtering EntitlementHistory objects. // Input was generated by ent. -type FeatureHistoryWhereInput struct { - Not *FeatureHistoryWhereInput `json:"not,omitempty"` - And []*FeatureHistoryWhereInput `json:"and,omitempty"` - Or []*FeatureHistoryWhereInput `json:"or,omitempty"` +type EntitlementHistoryWhereInput struct { + Not *EntitlementHistoryWhereInput `json:"not,omitempty"` + And []*EntitlementHistoryWhereInput `json:"and,omitempty"` + Or []*EntitlementHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -5051,247 +4472,86 @@ type FeatureHistoryWhereInput struct { 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"` - NameGt *string `json:"nameGT,omitempty"` - NameGte *string `json:"nameGTE,omitempty"` - NameLt *string `json:"nameLT,omitempty"` - NameLte *string `json:"nameLTE,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"` - // display_name field predicates - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGt *string `json:"displayNameGT,omitempty"` - DisplayNameGte *string `json:"displayNameGTE,omitempty"` - DisplayNameLt *string `json:"displayNameLT,omitempty"` - DisplayNameLte *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameIsNil *bool `json:"displayNameIsNil,omitempty"` - DisplayNameNotNil *bool `json:"displayNameNotNil,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` - // enabled field predicates - Enabled *bool `json:"enabled,omitempty"` - EnabledNeq *bool `json:"enabledNEQ,omitempty"` - // description field predicates - Description *string `json:"description,omitempty"` - DescriptionNeq *string `json:"descriptionNEQ,omitempty"` - DescriptionIn []string `json:"descriptionIn,omitempty"` - DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` - DescriptionGt *string `json:"descriptionGT,omitempty"` - DescriptionGte *string `json:"descriptionGTE,omitempty"` - DescriptionLt *string `json:"descriptionLT,omitempty"` - DescriptionLte *string `json:"descriptionLTE,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"` -} - -type FeatureSearchResult struct { - Features []*Feature `json:"features,omitempty"` -} - -func (FeatureSearchResult) IsSearchResult() {} - -// Return response for updateFeature mutation -type FeatureUpdatePayload struct { - // Updated feature - Feature *Feature `json:"feature"` -} - -// FeatureWhereInput is used for filtering Feature objects. -// Input was generated by ent. -type FeatureWhereInput struct { - Not *FeatureWhereInput `json:"not,omitempty"` - And []*FeatureWhereInput `json:"and,omitempty"` - Or []*FeatureWhereInput `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"` - IDGt *string `json:"idGT,omitempty"` - IDGte *string `json:"idGTE,omitempty"` - IDLt *string `json:"idLT,omitempty"` - IDLte *string `json:"idLTE,omitempty"` - IDEqualFold *string `json:"idEqualFold,omitempty"` - IDContainsFold *string `json:"idContainsFold,omitempty"` - // created_at field predicates - CreatedAt *time.Time `json:"createdAt,omitempty"` - CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` - CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` - CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` - UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` - UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` - UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` - CreatedByGt *string `json:"createdByGT,omitempty"` - CreatedByGte *string `json:"createdByGTE,omitempty"` - CreatedByLt *string `json:"createdByLT,omitempty"` - CreatedByLte *string `json:"createdByLTE,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"` - UpdatedByGt *string `json:"updatedByGT,omitempty"` - UpdatedByGte *string `json:"updatedByGTE,omitempty"` - UpdatedByLt *string `json:"updatedByLT,omitempty"` - UpdatedByLte *string `json:"updatedByLTE,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"` - // deleted_at field predicates - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` - // deleted_by field predicates - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNeq *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGt *string `json:"deletedByGT,omitempty"` - DeletedByGte *string `json:"deletedByGTE,omitempty"` - DeletedByLt *string `json:"deletedByLT,omitempty"` - DeletedByLte *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - NameGt *string `json:"nameGT,omitempty"` - NameGte *string `json:"nameGTE,omitempty"` - NameLt *string `json:"nameLT,omitempty"` - NameLte *string `json:"nameLTE,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"` - // display_name field predicates - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGt *string `json:"displayNameGT,omitempty"` - DisplayNameGte *string `json:"displayNameGTE,omitempty"` - DisplayNameLt *string `json:"displayNameLT,omitempty"` - DisplayNameLte *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameIsNil *bool `json:"displayNameIsNil,omitempty"` - DisplayNameNotNil *bool `json:"displayNameNotNil,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` - // enabled field predicates - Enabled *bool `json:"enabled,omitempty"` - EnabledNeq *bool `json:"enabledNEQ,omitempty"` - // description field predicates - Description *string `json:"description,omitempty"` - DescriptionNeq *string `json:"descriptionNEQ,omitempty"` - DescriptionIn []string `json:"descriptionIn,omitempty"` - DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` - DescriptionGt *string `json:"descriptionGT,omitempty"` - DescriptionGte *string `json:"descriptionGTE,omitempty"` - DescriptionLt *string `json:"descriptionLT,omitempty"` - DescriptionLte *string `json:"descriptionLTE,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"` - // owner edge predicates - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // plans edge predicates - HasPlans *bool `json:"hasPlans,omitempty"` - HasPlansWith []*EntitlementPlanWhereInput `json:"hasPlansWith,omitempty"` - // events edge predicates - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` - // features edge predicates - HasFeatures *bool `json:"hasFeatures,omitempty"` - HasFeaturesWith []*EntitlementPlanFeatureWhereInput `json:"hasFeaturesWith,omitempty"` + // plan_id field predicates + PlanID *string `json:"planID,omitempty"` + PlanIdneq *string `json:"planIDNEQ,omitempty"` + PlanIDIn []string `json:"planIDIn,omitempty"` + PlanIDNotIn []string `json:"planIDNotIn,omitempty"` + PlanIdgt *string `json:"planIDGT,omitempty"` + PlanIdgte *string `json:"planIDGTE,omitempty"` + PlanIdlt *string `json:"planIDLT,omitempty"` + PlanIdlte *string `json:"planIDLTE,omitempty"` + PlanIDContains *string `json:"planIDContains,omitempty"` + PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` + PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` + PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` + PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` + // organization_id field predicates + OrganizationID *string `json:"organizationID,omitempty"` + OrganizationIdneq *string `json:"organizationIDNEQ,omitempty"` + OrganizationIDIn []string `json:"organizationIDIn,omitempty"` + OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` + OrganizationIdgt *string `json:"organizationIDGT,omitempty"` + OrganizationIdgte *string `json:"organizationIDGTE,omitempty"` + OrganizationIdlt *string `json:"organizationIDLT,omitempty"` + OrganizationIdlte *string `json:"organizationIDLTE,omitempty"` + OrganizationIDContains *string `json:"organizationIDContains,omitempty"` + OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` + OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` + OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` + OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` + // external_customer_id field predicates + ExternalCustomerID *string `json:"externalCustomerID,omitempty"` + ExternalCustomerIdneq *string `json:"externalCustomerIDNEQ,omitempty"` + ExternalCustomerIDIn []string `json:"externalCustomerIDIn,omitempty"` + ExternalCustomerIDNotIn []string `json:"externalCustomerIDNotIn,omitempty"` + ExternalCustomerIdgt *string `json:"externalCustomerIDGT,omitempty"` + ExternalCustomerIdgte *string `json:"externalCustomerIDGTE,omitempty"` + ExternalCustomerIdlt *string `json:"externalCustomerIDLT,omitempty"` + ExternalCustomerIdlte *string `json:"externalCustomerIDLTE,omitempty"` + ExternalCustomerIDContains *string `json:"externalCustomerIDContains,omitempty"` + ExternalCustomerIDHasPrefix *string `json:"externalCustomerIDHasPrefix,omitempty"` + ExternalCustomerIDHasSuffix *string `json:"externalCustomerIDHasSuffix,omitempty"` + ExternalCustomerIDIsNil *bool `json:"externalCustomerIDIsNil,omitempty"` + ExternalCustomerIDNotNil *bool `json:"externalCustomerIDNotNil,omitempty"` + ExternalCustomerIDEqualFold *string `json:"externalCustomerIDEqualFold,omitempty"` + ExternalCustomerIDContainsFold *string `json:"externalCustomerIDContainsFold,omitempty"` + // external_subscription_id field predicates + ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` + ExternalSubscriptionIdneq *string `json:"externalSubscriptionIDNEQ,omitempty"` + ExternalSubscriptionIDIn []string `json:"externalSubscriptionIDIn,omitempty"` + ExternalSubscriptionIDNotIn []string `json:"externalSubscriptionIDNotIn,omitempty"` + ExternalSubscriptionIdgt *string `json:"externalSubscriptionIDGT,omitempty"` + ExternalSubscriptionIdgte *string `json:"externalSubscriptionIDGTE,omitempty"` + ExternalSubscriptionIdlt *string `json:"externalSubscriptionIDLT,omitempty"` + ExternalSubscriptionIdlte *string `json:"externalSubscriptionIDLTE,omitempty"` + ExternalSubscriptionIDContains *string `json:"externalSubscriptionIDContains,omitempty"` + ExternalSubscriptionIDHasPrefix *string `json:"externalSubscriptionIDHasPrefix,omitempty"` + ExternalSubscriptionIDHasSuffix *string `json:"externalSubscriptionIDHasSuffix,omitempty"` + ExternalSubscriptionIDIsNil *bool `json:"externalSubscriptionIDIsNil,omitempty"` + ExternalSubscriptionIDNotNil *bool `json:"externalSubscriptionIDNotNil,omitempty"` + ExternalSubscriptionIDEqualFold *string `json:"externalSubscriptionIDEqualFold,omitempty"` + ExternalSubscriptionIDContainsFold *string `json:"externalSubscriptionIDContainsFold,omitempty"` + // expires field predicates + Expires *bool `json:"expires,omitempty"` + ExpiresNeq *bool `json:"expiresNEQ,omitempty"` + // expires_at field predicates + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + ExpiresAtNeq *time.Time `json:"expiresAtNEQ,omitempty"` + ExpiresAtIn []*time.Time `json:"expiresAtIn,omitempty"` + ExpiresAtNotIn []*time.Time `json:"expiresAtNotIn,omitempty"` + ExpiresAtGt *time.Time `json:"expiresAtGT,omitempty"` + ExpiresAtGte *time.Time `json:"expiresAtGTE,omitempty"` + ExpiresAtLt *time.Time `json:"expiresAtLT,omitempty"` + ExpiresAtLte *time.Time `json:"expiresAtLTE,omitempty"` + ExpiresAtIsNil *bool `json:"expiresAtIsNil,omitempty"` + ExpiresAtNotNil *bool `json:"expiresAtNotNil,omitempty"` + // cancelled field predicates + Cancelled *bool `json:"cancelled,omitempty"` + CancelledNeq *bool `json:"cancelledNEQ,omitempty"` } -type File struct { +type EntitlementPlan struct { ID string `json:"id"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` @@ -5301,70 +4561,124 @@ type File struct { DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` - // the name of the file provided in the payload key without the extension - ProvidedFileName string `json:"providedFileName"` - // the extension of the file provided - ProvidedFileExtension string `json:"providedFileExtension"` - // the computed size of the file in the original http request - ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` - PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` - // the mime type detected by the system - DetectedMimeType *string `json:"detectedMimeType,omitempty"` - // the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage - Md5Hash *string `json:"md5Hash,omitempty"` - // the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types - DetectedContentType string `json:"detectedContentType"` - // the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key - StoreKey *string `json:"storeKey,omitempty"` - // the category type of the file, if any (e.g. evidence, invoice, etc.) - CategoryType *string `json:"categoryType,omitempty"` - // the full URI of the file - URI *string `json:"uri,omitempty"` - // the storage scheme of the file, e.g. file://, s3://, etc. - StorageScheme *string `json:"storageScheme,omitempty"` - // the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping - StorageVolume *string `json:"storageVolume,omitempty"` - // the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty - StoragePath *string `json:"storagePath,omitempty"` - User []*User `json:"user,omitempty"` - Organization []*Organization `json:"organization,omitempty"` - Group []*Group `json:"group,omitempty"` - Contact []*Contact `json:"contact,omitempty"` - Entity []*Entity `json:"entity,omitempty"` - Usersetting []*UserSetting `json:"usersetting,omitempty"` - Organizationsetting []*OrganizationSetting `json:"organizationsetting,omitempty"` - Template []*Template `json:"template,omitempty"` - Documentdata []*DocumentData `json:"documentdata,omitempty"` - Events []*Event `json:"events,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the displayed 'friendly' name of the plan + DisplayName *string `json:"displayName,omitempty"` + // the unique name of the plan + Name string `json:"name"` + // a description of the plan + Description *string `json:"description,omitempty"` + // the version of the plan + Version string `json:"version"` + // metadata for the plan + Metadata map[string]interface{} `json:"metadata,omitempty"` + Owner *Organization `json:"owner,omitempty"` + Entitlements []*Entitlement `json:"entitlements,omitempty"` + BaseFeatures []*Feature `json:"baseFeatures,omitempty"` + Events []*Event `json:"events,omitempty"` + Features []*EntitlementPlanFeature `json:"features,omitempty"` } -func (File) IsNode() {} +func (EntitlementPlan) IsNode() {} + +// Return response for createBulkEntitlementPlan mutation +type EntitlementPlanBulkCreatePayload struct { + // Created entitlementPlans + EntitlementPlans []*EntitlementPlan `json:"entitlementPlans,omitempty"` +} // A connection to a list of items. -type FileConnection struct { +type EntitlementPlanConnection struct { // A list of edges. - Edges []*FileEdge `json:"edges,omitempty"` + Edges []*EntitlementPlanEdge `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 deleteFile mutation -type FileDeletePayload struct { - // Deleted file ID +// Return response for createEntitlementPlan mutation +type EntitlementPlanCreatePayload struct { + // Created entitlementPlan + EntitlementPlan *EntitlementPlan `json:"entitlementPlan"` +} + +// Return response for deleteEntitlementPlan mutation +type EntitlementPlanDeletePayload struct { + // Deleted entitlementPlan ID DeletedID string `json:"deletedID"` } // An edge in a connection. -type FileEdge struct { +type EntitlementPlanEdge struct { // The item at the end of the edge. - Node *File `json:"node,omitempty"` + Node *EntitlementPlan `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -type FileHistory struct { +type EntitlementPlanFeature 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // metadata for the entitlement plan feature such as usage limits + Metadata map[string]interface{} `json:"metadata,omitempty"` + PlanID string `json:"planID"` + FeatureID string `json:"featureID"` + Owner *Organization `json:"owner,omitempty"` + Plan *EntitlementPlan `json:"plan"` + Feature *Feature `json:"feature"` + Events []*Event `json:"events,omitempty"` +} + +func (EntitlementPlanFeature) IsNode() {} + +// Return response for createBulkEntitlementPlanFeature mutation +type EntitlementPlanFeatureBulkCreatePayload struct { + // Created entitlementPlanFeatures + EntitlementPlanFeatures []*EntitlementPlanFeature `json:"entitlementPlanFeatures,omitempty"` +} + +// A connection to a list of items. +type EntitlementPlanFeatureConnection struct { + // A list of edges. + Edges []*EntitlementPlanFeatureEdge `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 createEntitlementPlanFeature mutation +type EntitlementPlanFeatureCreatePayload struct { + // Created entitlementPlanFeature + EntitlementPlanFeature *EntitlementPlanFeature `json:"entitlementPlanFeature"` +} + +// Return response for deleteEntitlementPlanFeature mutation +type EntitlementPlanFeatureDeletePayload struct { + // Deleted entitlementPlanFeature ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type EntitlementPlanFeatureEdge struct { + // The item at the end of the edge. + Node *EntitlementPlanFeature `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type EntitlementPlanFeatureHistory struct { ID string `json:"id"` HistoryTime time.Time `json:"historyTime"` Ref *string `json:"ref,omitempty"` @@ -5377,39 +4691,20 @@ type FileHistory struct { DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object Tags []string `json:"tags,omitempty"` - // the name of the file provided in the payload key without the extension - ProvidedFileName string `json:"providedFileName"` - // the extension of the file provided - ProvidedFileExtension string `json:"providedFileExtension"` - // the computed size of the file in the original http request - ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` - PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` - // the mime type detected by the system - DetectedMimeType *string `json:"detectedMimeType,omitempty"` - // the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage - Md5Hash *string `json:"md5Hash,omitempty"` - // the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types - DetectedContentType string `json:"detectedContentType"` - // the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key - StoreKey *string `json:"storeKey,omitempty"` - // the category type of the file, if any (e.g. evidence, invoice, etc.) - CategoryType *string `json:"categoryType,omitempty"` - // the full URI of the file - URI *string `json:"uri,omitempty"` - // the storage scheme of the file, e.g. file://, s3://, etc. - StorageScheme *string `json:"storageScheme,omitempty"` - // the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping - StorageVolume *string `json:"storageVolume,omitempty"` - // the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty - StoragePath *string `json:"storagePath,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // metadata for the entitlement plan feature such as usage limits + Metadata map[string]interface{} `json:"metadata,omitempty"` + PlanID string `json:"planID"` + FeatureID string `json:"featureID"` } -func (FileHistory) IsNode() {} +func (EntitlementPlanFeatureHistory) IsNode() {} // A connection to a list of items. -type FileHistoryConnection struct { +type EntitlementPlanFeatureHistoryConnection struct { // A list of edges. - Edges []*FileHistoryEdge `json:"edges,omitempty"` + Edges []*EntitlementPlanFeatureHistoryEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. @@ -5417,19 +4712,19 @@ type FileHistoryConnection struct { } // An edge in a connection. -type FileHistoryEdge struct { +type EntitlementPlanFeatureHistoryEdge struct { // The item at the end of the edge. - Node *FileHistory `json:"node,omitempty"` + Node *EntitlementPlanFeatureHistory `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -// FileHistoryWhereInput is used for filtering FileHistory objects. +// EntitlementPlanFeatureHistoryWhereInput is used for filtering EntitlementPlanFeatureHistory objects. // Input was generated by ent. -type FileHistoryWhereInput struct { - Not *FileHistoryWhereInput `json:"not,omitempty"` - And []*FileHistoryWhereInput `json:"and,omitempty"` - Or []*FileHistoryWhereInput `json:"or,omitempty"` +type EntitlementPlanFeatureHistoryWhereInput struct { + Not *EntitlementPlanFeatureHistoryWhereInput `json:"not,omitempty"` + And []*EntitlementPlanFeatureHistoryWhereInput `json:"and,omitempty"` + Or []*EntitlementPlanFeatureHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -5552,212 +4847,70 @@ type FileHistoryWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // provided_file_name field predicates - ProvidedFileName *string `json:"providedFileName,omitempty"` - ProvidedFileNameNeq *string `json:"providedFileNameNEQ,omitempty"` - ProvidedFileNameIn []string `json:"providedFileNameIn,omitempty"` - ProvidedFileNameNotIn []string `json:"providedFileNameNotIn,omitempty"` - ProvidedFileNameGt *string `json:"providedFileNameGT,omitempty"` - ProvidedFileNameGte *string `json:"providedFileNameGTE,omitempty"` - ProvidedFileNameLt *string `json:"providedFileNameLT,omitempty"` - ProvidedFileNameLte *string `json:"providedFileNameLTE,omitempty"` - ProvidedFileNameContains *string `json:"providedFileNameContains,omitempty"` - ProvidedFileNameHasPrefix *string `json:"providedFileNameHasPrefix,omitempty"` - ProvidedFileNameHasSuffix *string `json:"providedFileNameHasSuffix,omitempty"` - ProvidedFileNameEqualFold *string `json:"providedFileNameEqualFold,omitempty"` - ProvidedFileNameContainsFold *string `json:"providedFileNameContainsFold,omitempty"` - // provided_file_extension field predicates - ProvidedFileExtension *string `json:"providedFileExtension,omitempty"` - ProvidedFileExtensionNeq *string `json:"providedFileExtensionNEQ,omitempty"` - ProvidedFileExtensionIn []string `json:"providedFileExtensionIn,omitempty"` - ProvidedFileExtensionNotIn []string `json:"providedFileExtensionNotIn,omitempty"` - ProvidedFileExtensionGt *string `json:"providedFileExtensionGT,omitempty"` - ProvidedFileExtensionGte *string `json:"providedFileExtensionGTE,omitempty"` - ProvidedFileExtensionLt *string `json:"providedFileExtensionLT,omitempty"` - ProvidedFileExtensionLte *string `json:"providedFileExtensionLTE,omitempty"` - ProvidedFileExtensionContains *string `json:"providedFileExtensionContains,omitempty"` - ProvidedFileExtensionHasPrefix *string `json:"providedFileExtensionHasPrefix,omitempty"` - ProvidedFileExtensionHasSuffix *string `json:"providedFileExtensionHasSuffix,omitempty"` - ProvidedFileExtensionEqualFold *string `json:"providedFileExtensionEqualFold,omitempty"` - ProvidedFileExtensionContainsFold *string `json:"providedFileExtensionContainsFold,omitempty"` - // provided_file_size field predicates - ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` - ProvidedFileSizeNeq *int64 `json:"providedFileSizeNEQ,omitempty"` - ProvidedFileSizeIn []int64 `json:"providedFileSizeIn,omitempty"` - ProvidedFileSizeNotIn []int64 `json:"providedFileSizeNotIn,omitempty"` - ProvidedFileSizeGt *int64 `json:"providedFileSizeGT,omitempty"` - ProvidedFileSizeGte *int64 `json:"providedFileSizeGTE,omitempty"` - ProvidedFileSizeLt *int64 `json:"providedFileSizeLT,omitempty"` - ProvidedFileSizeLte *int64 `json:"providedFileSizeLTE,omitempty"` - ProvidedFileSizeIsNil *bool `json:"providedFileSizeIsNil,omitempty"` - ProvidedFileSizeNotNil *bool `json:"providedFileSizeNotNil,omitempty"` - // persisted_file_size field predicates - PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` - PersistedFileSizeNeq *int64 `json:"persistedFileSizeNEQ,omitempty"` - PersistedFileSizeIn []int64 `json:"persistedFileSizeIn,omitempty"` - PersistedFileSizeNotIn []int64 `json:"persistedFileSizeNotIn,omitempty"` - PersistedFileSizeGt *int64 `json:"persistedFileSizeGT,omitempty"` - PersistedFileSizeGte *int64 `json:"persistedFileSizeGTE,omitempty"` - PersistedFileSizeLt *int64 `json:"persistedFileSizeLT,omitempty"` - PersistedFileSizeLte *int64 `json:"persistedFileSizeLTE,omitempty"` - PersistedFileSizeIsNil *bool `json:"persistedFileSizeIsNil,omitempty"` - PersistedFileSizeNotNil *bool `json:"persistedFileSizeNotNil,omitempty"` - // detected_mime_type field predicates - DetectedMimeType *string `json:"detectedMimeType,omitempty"` - DetectedMimeTypeNeq *string `json:"detectedMimeTypeNEQ,omitempty"` - DetectedMimeTypeIn []string `json:"detectedMimeTypeIn,omitempty"` - DetectedMimeTypeNotIn []string `json:"detectedMimeTypeNotIn,omitempty"` - DetectedMimeTypeGt *string `json:"detectedMimeTypeGT,omitempty"` - DetectedMimeTypeGte *string `json:"detectedMimeTypeGTE,omitempty"` - DetectedMimeTypeLt *string `json:"detectedMimeTypeLT,omitempty"` - DetectedMimeTypeLte *string `json:"detectedMimeTypeLTE,omitempty"` - DetectedMimeTypeContains *string `json:"detectedMimeTypeContains,omitempty"` - DetectedMimeTypeHasPrefix *string `json:"detectedMimeTypeHasPrefix,omitempty"` - DetectedMimeTypeHasSuffix *string `json:"detectedMimeTypeHasSuffix,omitempty"` - DetectedMimeTypeIsNil *bool `json:"detectedMimeTypeIsNil,omitempty"` - DetectedMimeTypeNotNil *bool `json:"detectedMimeTypeNotNil,omitempty"` - DetectedMimeTypeEqualFold *string `json:"detectedMimeTypeEqualFold,omitempty"` - DetectedMimeTypeContainsFold *string `json:"detectedMimeTypeContainsFold,omitempty"` - // md5_hash field predicates - Md5Hash *string `json:"md5Hash,omitempty"` - Md5HashNeq *string `json:"md5HashNEQ,omitempty"` - Md5HashIn []string `json:"md5HashIn,omitempty"` - Md5HashNotIn []string `json:"md5HashNotIn,omitempty"` - Md5HashGt *string `json:"md5HashGT,omitempty"` - Md5HashGte *string `json:"md5HashGTE,omitempty"` - Md5HashLt *string `json:"md5HashLT,omitempty"` - Md5HashLte *string `json:"md5HashLTE,omitempty"` - Md5HashContains *string `json:"md5HashContains,omitempty"` - Md5HashHasPrefix *string `json:"md5HashHasPrefix,omitempty"` - Md5HashHasSuffix *string `json:"md5HashHasSuffix,omitempty"` - Md5HashIsNil *bool `json:"md5HashIsNil,omitempty"` - Md5HashNotNil *bool `json:"md5HashNotNil,omitempty"` - Md5HashEqualFold *string `json:"md5HashEqualFold,omitempty"` - Md5HashContainsFold *string `json:"md5HashContainsFold,omitempty"` - // detected_content_type field predicates - DetectedContentType *string `json:"detectedContentType,omitempty"` - DetectedContentTypeNeq *string `json:"detectedContentTypeNEQ,omitempty"` - DetectedContentTypeIn []string `json:"detectedContentTypeIn,omitempty"` - DetectedContentTypeNotIn []string `json:"detectedContentTypeNotIn,omitempty"` - DetectedContentTypeGt *string `json:"detectedContentTypeGT,omitempty"` - DetectedContentTypeGte *string `json:"detectedContentTypeGTE,omitempty"` - DetectedContentTypeLt *string `json:"detectedContentTypeLT,omitempty"` - DetectedContentTypeLte *string `json:"detectedContentTypeLTE,omitempty"` - DetectedContentTypeContains *string `json:"detectedContentTypeContains,omitempty"` - DetectedContentTypeHasPrefix *string `json:"detectedContentTypeHasPrefix,omitempty"` - DetectedContentTypeHasSuffix *string `json:"detectedContentTypeHasSuffix,omitempty"` - DetectedContentTypeEqualFold *string `json:"detectedContentTypeEqualFold,omitempty"` - DetectedContentTypeContainsFold *string `json:"detectedContentTypeContainsFold,omitempty"` - // store_key field predicates - StoreKey *string `json:"storeKey,omitempty"` - StoreKeyNeq *string `json:"storeKeyNEQ,omitempty"` - StoreKeyIn []string `json:"storeKeyIn,omitempty"` - StoreKeyNotIn []string `json:"storeKeyNotIn,omitempty"` - StoreKeyGt *string `json:"storeKeyGT,omitempty"` - StoreKeyGte *string `json:"storeKeyGTE,omitempty"` - StoreKeyLt *string `json:"storeKeyLT,omitempty"` - StoreKeyLte *string `json:"storeKeyLTE,omitempty"` - StoreKeyContains *string `json:"storeKeyContains,omitempty"` - StoreKeyHasPrefix *string `json:"storeKeyHasPrefix,omitempty"` - StoreKeyHasSuffix *string `json:"storeKeyHasSuffix,omitempty"` - StoreKeyIsNil *bool `json:"storeKeyIsNil,omitempty"` - StoreKeyNotNil *bool `json:"storeKeyNotNil,omitempty"` - StoreKeyEqualFold *string `json:"storeKeyEqualFold,omitempty"` - StoreKeyContainsFold *string `json:"storeKeyContainsFold,omitempty"` - // category_type field predicates - CategoryType *string `json:"categoryType,omitempty"` - CategoryTypeNeq *string `json:"categoryTypeNEQ,omitempty"` - CategoryTypeIn []string `json:"categoryTypeIn,omitempty"` - CategoryTypeNotIn []string `json:"categoryTypeNotIn,omitempty"` - CategoryTypeGt *string `json:"categoryTypeGT,omitempty"` - CategoryTypeGte *string `json:"categoryTypeGTE,omitempty"` - CategoryTypeLt *string `json:"categoryTypeLT,omitempty"` - CategoryTypeLte *string `json:"categoryTypeLTE,omitempty"` - CategoryTypeContains *string `json:"categoryTypeContains,omitempty"` - CategoryTypeHasPrefix *string `json:"categoryTypeHasPrefix,omitempty"` - CategoryTypeHasSuffix *string `json:"categoryTypeHasSuffix,omitempty"` - CategoryTypeIsNil *bool `json:"categoryTypeIsNil,omitempty"` - CategoryTypeNotNil *bool `json:"categoryTypeNotNil,omitempty"` - CategoryTypeEqualFold *string `json:"categoryTypeEqualFold,omitempty"` - CategoryTypeContainsFold *string `json:"categoryTypeContainsFold,omitempty"` - // uri field predicates - URI *string `json:"uri,omitempty"` - URINeq *string `json:"uriNEQ,omitempty"` - URIIn []string `json:"uriIn,omitempty"` - URINotIn []string `json:"uriNotIn,omitempty"` - URIGt *string `json:"uriGT,omitempty"` - URIGte *string `json:"uriGTE,omitempty"` - URILt *string `json:"uriLT,omitempty"` - URILte *string `json:"uriLTE,omitempty"` - URIContains *string `json:"uriContains,omitempty"` - URIHasPrefix *string `json:"uriHasPrefix,omitempty"` - URIHasSuffix *string `json:"uriHasSuffix,omitempty"` - URIIsNil *bool `json:"uriIsNil,omitempty"` - URINotNil *bool `json:"uriNotNil,omitempty"` - URIEqualFold *string `json:"uriEqualFold,omitempty"` - URIContainsFold *string `json:"uriContainsFold,omitempty"` - // storage_scheme field predicates - StorageScheme *string `json:"storageScheme,omitempty"` - StorageSchemeNeq *string `json:"storageSchemeNEQ,omitempty"` - StorageSchemeIn []string `json:"storageSchemeIn,omitempty"` - StorageSchemeNotIn []string `json:"storageSchemeNotIn,omitempty"` - StorageSchemeGt *string `json:"storageSchemeGT,omitempty"` - StorageSchemeGte *string `json:"storageSchemeGTE,omitempty"` - StorageSchemeLt *string `json:"storageSchemeLT,omitempty"` - StorageSchemeLte *string `json:"storageSchemeLTE,omitempty"` - StorageSchemeContains *string `json:"storageSchemeContains,omitempty"` - StorageSchemeHasPrefix *string `json:"storageSchemeHasPrefix,omitempty"` - StorageSchemeHasSuffix *string `json:"storageSchemeHasSuffix,omitempty"` - StorageSchemeIsNil *bool `json:"storageSchemeIsNil,omitempty"` - StorageSchemeNotNil *bool `json:"storageSchemeNotNil,omitempty"` - StorageSchemeEqualFold *string `json:"storageSchemeEqualFold,omitempty"` - StorageSchemeContainsFold *string `json:"storageSchemeContainsFold,omitempty"` - // storage_volume field predicates - StorageVolume *string `json:"storageVolume,omitempty"` - StorageVolumeNeq *string `json:"storageVolumeNEQ,omitempty"` - StorageVolumeIn []string `json:"storageVolumeIn,omitempty"` - StorageVolumeNotIn []string `json:"storageVolumeNotIn,omitempty"` - StorageVolumeGt *string `json:"storageVolumeGT,omitempty"` - StorageVolumeGte *string `json:"storageVolumeGTE,omitempty"` - StorageVolumeLt *string `json:"storageVolumeLT,omitempty"` - StorageVolumeLte *string `json:"storageVolumeLTE,omitempty"` - StorageVolumeContains *string `json:"storageVolumeContains,omitempty"` - StorageVolumeHasPrefix *string `json:"storageVolumeHasPrefix,omitempty"` - StorageVolumeHasSuffix *string `json:"storageVolumeHasSuffix,omitempty"` - StorageVolumeIsNil *bool `json:"storageVolumeIsNil,omitempty"` - StorageVolumeNotNil *bool `json:"storageVolumeNotNil,omitempty"` - StorageVolumeEqualFold *string `json:"storageVolumeEqualFold,omitempty"` - StorageVolumeContainsFold *string `json:"storageVolumeContainsFold,omitempty"` - // storage_path field predicates - StoragePath *string `json:"storagePath,omitempty"` - StoragePathNeq *string `json:"storagePathNEQ,omitempty"` - StoragePathIn []string `json:"storagePathIn,omitempty"` - StoragePathNotIn []string `json:"storagePathNotIn,omitempty"` - StoragePathGt *string `json:"storagePathGT,omitempty"` - StoragePathGte *string `json:"storagePathGTE,omitempty"` - StoragePathLt *string `json:"storagePathLT,omitempty"` - StoragePathLte *string `json:"storagePathLTE,omitempty"` - StoragePathContains *string `json:"storagePathContains,omitempty"` - StoragePathHasPrefix *string `json:"storagePathHasPrefix,omitempty"` - StoragePathHasSuffix *string `json:"storagePathHasSuffix,omitempty"` - StoragePathIsNil *bool `json:"storagePathIsNil,omitempty"` - StoragePathNotNil *bool `json:"storagePathNotNil,omitempty"` - StoragePathEqualFold *string `json:"storagePathEqualFold,omitempty"` - StoragePathContainsFold *string `json:"storagePathContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + // plan_id field predicates + PlanID *string `json:"planID,omitempty"` + PlanIdneq *string `json:"planIDNEQ,omitempty"` + PlanIDIn []string `json:"planIDIn,omitempty"` + PlanIDNotIn []string `json:"planIDNotIn,omitempty"` + PlanIdgt *string `json:"planIDGT,omitempty"` + PlanIdgte *string `json:"planIDGTE,omitempty"` + PlanIdlt *string `json:"planIDLT,omitempty"` + PlanIdlte *string `json:"planIDLTE,omitempty"` + PlanIDContains *string `json:"planIDContains,omitempty"` + PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` + PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` + PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` + PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` + // feature_id field predicates + FeatureID *string `json:"featureID,omitempty"` + FeatureIdneq *string `json:"featureIDNEQ,omitempty"` + FeatureIDIn []string `json:"featureIDIn,omitempty"` + FeatureIDNotIn []string `json:"featureIDNotIn,omitempty"` + FeatureIdgt *string `json:"featureIDGT,omitempty"` + FeatureIdgte *string `json:"featureIDGTE,omitempty"` + FeatureIdlt *string `json:"featureIDLT,omitempty"` + FeatureIdlte *string `json:"featureIDLTE,omitempty"` + FeatureIDContains *string `json:"featureIDContains,omitempty"` + FeatureIDHasPrefix *string `json:"featureIDHasPrefix,omitempty"` + FeatureIDHasSuffix *string `json:"featureIDHasSuffix,omitempty"` + FeatureIDEqualFold *string `json:"featureIDEqualFold,omitempty"` + FeatureIDContainsFold *string `json:"featureIDContainsFold,omitempty"` } -type FileSearchResult struct { - Files []*File `json:"files,omitempty"` +type EntitlementPlanFeatureSearchResult struct { + EntitlementPlanFeatures []*EntitlementPlanFeature `json:"entitlementPlanFeatures,omitempty"` } -func (FileSearchResult) IsSearchResult() {} +func (EntitlementPlanFeatureSearchResult) IsSearchResult() {} -// FileWhereInput is used for filtering File objects. +// Return response for updateEntitlementPlanFeature mutation +type EntitlementPlanFeatureUpdatePayload struct { + // Updated entitlementPlanFeature + EntitlementPlanFeature *EntitlementPlanFeature `json:"entitlementPlanFeature"` +} + +// EntitlementPlanFeatureWhereInput is used for filtering EntitlementPlanFeature objects. // Input was generated by ent. -type FileWhereInput struct { - Not *FileWhereInput `json:"not,omitempty"` - And []*FileWhereInput `json:"and,omitempty"` - Or []*FileWhereInput `json:"or,omitempty"` +type EntitlementPlanFeatureWhereInput struct { + Not *EntitlementPlanFeatureWhereInput `json:"not,omitempty"` + And []*EntitlementPlanFeatureWhereInput `json:"and,omitempty"` + Or []*EntitlementPlanFeatureWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -5850,300 +5003,9 @@ type FileWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // provided_file_name field predicates - ProvidedFileName *string `json:"providedFileName,omitempty"` - ProvidedFileNameNeq *string `json:"providedFileNameNEQ,omitempty"` - ProvidedFileNameIn []string `json:"providedFileNameIn,omitempty"` - ProvidedFileNameNotIn []string `json:"providedFileNameNotIn,omitempty"` - ProvidedFileNameGt *string `json:"providedFileNameGT,omitempty"` - ProvidedFileNameGte *string `json:"providedFileNameGTE,omitempty"` - ProvidedFileNameLt *string `json:"providedFileNameLT,omitempty"` - ProvidedFileNameLte *string `json:"providedFileNameLTE,omitempty"` - ProvidedFileNameContains *string `json:"providedFileNameContains,omitempty"` - ProvidedFileNameHasPrefix *string `json:"providedFileNameHasPrefix,omitempty"` - ProvidedFileNameHasSuffix *string `json:"providedFileNameHasSuffix,omitempty"` - ProvidedFileNameEqualFold *string `json:"providedFileNameEqualFold,omitempty"` - ProvidedFileNameContainsFold *string `json:"providedFileNameContainsFold,omitempty"` - // provided_file_extension field predicates - ProvidedFileExtension *string `json:"providedFileExtension,omitempty"` - ProvidedFileExtensionNeq *string `json:"providedFileExtensionNEQ,omitempty"` - ProvidedFileExtensionIn []string `json:"providedFileExtensionIn,omitempty"` - ProvidedFileExtensionNotIn []string `json:"providedFileExtensionNotIn,omitempty"` - ProvidedFileExtensionGt *string `json:"providedFileExtensionGT,omitempty"` - ProvidedFileExtensionGte *string `json:"providedFileExtensionGTE,omitempty"` - ProvidedFileExtensionLt *string `json:"providedFileExtensionLT,omitempty"` - ProvidedFileExtensionLte *string `json:"providedFileExtensionLTE,omitempty"` - ProvidedFileExtensionContains *string `json:"providedFileExtensionContains,omitempty"` - ProvidedFileExtensionHasPrefix *string `json:"providedFileExtensionHasPrefix,omitempty"` - ProvidedFileExtensionHasSuffix *string `json:"providedFileExtensionHasSuffix,omitempty"` - ProvidedFileExtensionEqualFold *string `json:"providedFileExtensionEqualFold,omitempty"` - ProvidedFileExtensionContainsFold *string `json:"providedFileExtensionContainsFold,omitempty"` - // provided_file_size field predicates - ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` - ProvidedFileSizeNeq *int64 `json:"providedFileSizeNEQ,omitempty"` - ProvidedFileSizeIn []int64 `json:"providedFileSizeIn,omitempty"` - ProvidedFileSizeNotIn []int64 `json:"providedFileSizeNotIn,omitempty"` - ProvidedFileSizeGt *int64 `json:"providedFileSizeGT,omitempty"` - ProvidedFileSizeGte *int64 `json:"providedFileSizeGTE,omitempty"` - ProvidedFileSizeLt *int64 `json:"providedFileSizeLT,omitempty"` - ProvidedFileSizeLte *int64 `json:"providedFileSizeLTE,omitempty"` - ProvidedFileSizeIsNil *bool `json:"providedFileSizeIsNil,omitempty"` - ProvidedFileSizeNotNil *bool `json:"providedFileSizeNotNil,omitempty"` - // persisted_file_size field predicates - PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` - PersistedFileSizeNeq *int64 `json:"persistedFileSizeNEQ,omitempty"` - PersistedFileSizeIn []int64 `json:"persistedFileSizeIn,omitempty"` - PersistedFileSizeNotIn []int64 `json:"persistedFileSizeNotIn,omitempty"` - PersistedFileSizeGt *int64 `json:"persistedFileSizeGT,omitempty"` - PersistedFileSizeGte *int64 `json:"persistedFileSizeGTE,omitempty"` - PersistedFileSizeLt *int64 `json:"persistedFileSizeLT,omitempty"` - PersistedFileSizeLte *int64 `json:"persistedFileSizeLTE,omitempty"` - PersistedFileSizeIsNil *bool `json:"persistedFileSizeIsNil,omitempty"` - PersistedFileSizeNotNil *bool `json:"persistedFileSizeNotNil,omitempty"` - // detected_mime_type field predicates - DetectedMimeType *string `json:"detectedMimeType,omitempty"` - DetectedMimeTypeNeq *string `json:"detectedMimeTypeNEQ,omitempty"` - DetectedMimeTypeIn []string `json:"detectedMimeTypeIn,omitempty"` - DetectedMimeTypeNotIn []string `json:"detectedMimeTypeNotIn,omitempty"` - DetectedMimeTypeGt *string `json:"detectedMimeTypeGT,omitempty"` - DetectedMimeTypeGte *string `json:"detectedMimeTypeGTE,omitempty"` - DetectedMimeTypeLt *string `json:"detectedMimeTypeLT,omitempty"` - DetectedMimeTypeLte *string `json:"detectedMimeTypeLTE,omitempty"` - DetectedMimeTypeContains *string `json:"detectedMimeTypeContains,omitempty"` - DetectedMimeTypeHasPrefix *string `json:"detectedMimeTypeHasPrefix,omitempty"` - DetectedMimeTypeHasSuffix *string `json:"detectedMimeTypeHasSuffix,omitempty"` - DetectedMimeTypeIsNil *bool `json:"detectedMimeTypeIsNil,omitempty"` - DetectedMimeTypeNotNil *bool `json:"detectedMimeTypeNotNil,omitempty"` - DetectedMimeTypeEqualFold *string `json:"detectedMimeTypeEqualFold,omitempty"` - DetectedMimeTypeContainsFold *string `json:"detectedMimeTypeContainsFold,omitempty"` - // md5_hash field predicates - Md5Hash *string `json:"md5Hash,omitempty"` - Md5HashNeq *string `json:"md5HashNEQ,omitempty"` - Md5HashIn []string `json:"md5HashIn,omitempty"` - Md5HashNotIn []string `json:"md5HashNotIn,omitempty"` - Md5HashGt *string `json:"md5HashGT,omitempty"` - Md5HashGte *string `json:"md5HashGTE,omitempty"` - Md5HashLt *string `json:"md5HashLT,omitempty"` - Md5HashLte *string `json:"md5HashLTE,omitempty"` - Md5HashContains *string `json:"md5HashContains,omitempty"` - Md5HashHasPrefix *string `json:"md5HashHasPrefix,omitempty"` - Md5HashHasSuffix *string `json:"md5HashHasSuffix,omitempty"` - Md5HashIsNil *bool `json:"md5HashIsNil,omitempty"` - Md5HashNotNil *bool `json:"md5HashNotNil,omitempty"` - Md5HashEqualFold *string `json:"md5HashEqualFold,omitempty"` - Md5HashContainsFold *string `json:"md5HashContainsFold,omitempty"` - // detected_content_type field predicates - DetectedContentType *string `json:"detectedContentType,omitempty"` - DetectedContentTypeNeq *string `json:"detectedContentTypeNEQ,omitempty"` - DetectedContentTypeIn []string `json:"detectedContentTypeIn,omitempty"` - DetectedContentTypeNotIn []string `json:"detectedContentTypeNotIn,omitempty"` - DetectedContentTypeGt *string `json:"detectedContentTypeGT,omitempty"` - DetectedContentTypeGte *string `json:"detectedContentTypeGTE,omitempty"` - DetectedContentTypeLt *string `json:"detectedContentTypeLT,omitempty"` - DetectedContentTypeLte *string `json:"detectedContentTypeLTE,omitempty"` - DetectedContentTypeContains *string `json:"detectedContentTypeContains,omitempty"` - DetectedContentTypeHasPrefix *string `json:"detectedContentTypeHasPrefix,omitempty"` - DetectedContentTypeHasSuffix *string `json:"detectedContentTypeHasSuffix,omitempty"` - DetectedContentTypeEqualFold *string `json:"detectedContentTypeEqualFold,omitempty"` - DetectedContentTypeContainsFold *string `json:"detectedContentTypeContainsFold,omitempty"` - // store_key field predicates - StoreKey *string `json:"storeKey,omitempty"` - StoreKeyNeq *string `json:"storeKeyNEQ,omitempty"` - StoreKeyIn []string `json:"storeKeyIn,omitempty"` - StoreKeyNotIn []string `json:"storeKeyNotIn,omitempty"` - StoreKeyGt *string `json:"storeKeyGT,omitempty"` - StoreKeyGte *string `json:"storeKeyGTE,omitempty"` - StoreKeyLt *string `json:"storeKeyLT,omitempty"` - StoreKeyLte *string `json:"storeKeyLTE,omitempty"` - StoreKeyContains *string `json:"storeKeyContains,omitempty"` - StoreKeyHasPrefix *string `json:"storeKeyHasPrefix,omitempty"` - StoreKeyHasSuffix *string `json:"storeKeyHasSuffix,omitempty"` - StoreKeyIsNil *bool `json:"storeKeyIsNil,omitempty"` - StoreKeyNotNil *bool `json:"storeKeyNotNil,omitempty"` - StoreKeyEqualFold *string `json:"storeKeyEqualFold,omitempty"` - StoreKeyContainsFold *string `json:"storeKeyContainsFold,omitempty"` - // category_type field predicates - CategoryType *string `json:"categoryType,omitempty"` - CategoryTypeNeq *string `json:"categoryTypeNEQ,omitempty"` - CategoryTypeIn []string `json:"categoryTypeIn,omitempty"` - CategoryTypeNotIn []string `json:"categoryTypeNotIn,omitempty"` - CategoryTypeGt *string `json:"categoryTypeGT,omitempty"` - CategoryTypeGte *string `json:"categoryTypeGTE,omitempty"` - CategoryTypeLt *string `json:"categoryTypeLT,omitempty"` - CategoryTypeLte *string `json:"categoryTypeLTE,omitempty"` - CategoryTypeContains *string `json:"categoryTypeContains,omitempty"` - CategoryTypeHasPrefix *string `json:"categoryTypeHasPrefix,omitempty"` - CategoryTypeHasSuffix *string `json:"categoryTypeHasSuffix,omitempty"` - CategoryTypeIsNil *bool `json:"categoryTypeIsNil,omitempty"` - CategoryTypeNotNil *bool `json:"categoryTypeNotNil,omitempty"` - CategoryTypeEqualFold *string `json:"categoryTypeEqualFold,omitempty"` - CategoryTypeContainsFold *string `json:"categoryTypeContainsFold,omitempty"` - // uri field predicates - URI *string `json:"uri,omitempty"` - URINeq *string `json:"uriNEQ,omitempty"` - URIIn []string `json:"uriIn,omitempty"` - URINotIn []string `json:"uriNotIn,omitempty"` - URIGt *string `json:"uriGT,omitempty"` - URIGte *string `json:"uriGTE,omitempty"` - URILt *string `json:"uriLT,omitempty"` - URILte *string `json:"uriLTE,omitempty"` - URIContains *string `json:"uriContains,omitempty"` - URIHasPrefix *string `json:"uriHasPrefix,omitempty"` - URIHasSuffix *string `json:"uriHasSuffix,omitempty"` - URIIsNil *bool `json:"uriIsNil,omitempty"` - URINotNil *bool `json:"uriNotNil,omitempty"` - URIEqualFold *string `json:"uriEqualFold,omitempty"` - URIContainsFold *string `json:"uriContainsFold,omitempty"` - // storage_scheme field predicates - StorageScheme *string `json:"storageScheme,omitempty"` - StorageSchemeNeq *string `json:"storageSchemeNEQ,omitempty"` - StorageSchemeIn []string `json:"storageSchemeIn,omitempty"` - StorageSchemeNotIn []string `json:"storageSchemeNotIn,omitempty"` - StorageSchemeGt *string `json:"storageSchemeGT,omitempty"` - StorageSchemeGte *string `json:"storageSchemeGTE,omitempty"` - StorageSchemeLt *string `json:"storageSchemeLT,omitempty"` - StorageSchemeLte *string `json:"storageSchemeLTE,omitempty"` - StorageSchemeContains *string `json:"storageSchemeContains,omitempty"` - StorageSchemeHasPrefix *string `json:"storageSchemeHasPrefix,omitempty"` - StorageSchemeHasSuffix *string `json:"storageSchemeHasSuffix,omitempty"` - StorageSchemeIsNil *bool `json:"storageSchemeIsNil,omitempty"` - StorageSchemeNotNil *bool `json:"storageSchemeNotNil,omitempty"` - StorageSchemeEqualFold *string `json:"storageSchemeEqualFold,omitempty"` - StorageSchemeContainsFold *string `json:"storageSchemeContainsFold,omitempty"` - // storage_volume field predicates - StorageVolume *string `json:"storageVolume,omitempty"` - StorageVolumeNeq *string `json:"storageVolumeNEQ,omitempty"` - StorageVolumeIn []string `json:"storageVolumeIn,omitempty"` - StorageVolumeNotIn []string `json:"storageVolumeNotIn,omitempty"` - StorageVolumeGt *string `json:"storageVolumeGT,omitempty"` - StorageVolumeGte *string `json:"storageVolumeGTE,omitempty"` - StorageVolumeLt *string `json:"storageVolumeLT,omitempty"` - StorageVolumeLte *string `json:"storageVolumeLTE,omitempty"` - StorageVolumeContains *string `json:"storageVolumeContains,omitempty"` - StorageVolumeHasPrefix *string `json:"storageVolumeHasPrefix,omitempty"` - StorageVolumeHasSuffix *string `json:"storageVolumeHasSuffix,omitempty"` - StorageVolumeIsNil *bool `json:"storageVolumeIsNil,omitempty"` - StorageVolumeNotNil *bool `json:"storageVolumeNotNil,omitempty"` - StorageVolumeEqualFold *string `json:"storageVolumeEqualFold,omitempty"` - StorageVolumeContainsFold *string `json:"storageVolumeContainsFold,omitempty"` - // storage_path field predicates - StoragePath *string `json:"storagePath,omitempty"` - StoragePathNeq *string `json:"storagePathNEQ,omitempty"` - StoragePathIn []string `json:"storagePathIn,omitempty"` - StoragePathNotIn []string `json:"storagePathNotIn,omitempty"` - StoragePathGt *string `json:"storagePathGT,omitempty"` - StoragePathGte *string `json:"storagePathGTE,omitempty"` - StoragePathLt *string `json:"storagePathLT,omitempty"` - StoragePathLte *string `json:"storagePathLTE,omitempty"` - StoragePathContains *string `json:"storagePathContains,omitempty"` - StoragePathHasPrefix *string `json:"storagePathHasPrefix,omitempty"` - StoragePathHasSuffix *string `json:"storagePathHasSuffix,omitempty"` - StoragePathIsNil *bool `json:"storagePathIsNil,omitempty"` - StoragePathNotNil *bool `json:"storagePathNotNil,omitempty"` - StoragePathEqualFold *string `json:"storagePathEqualFold,omitempty"` - StoragePathContainsFold *string `json:"storagePathContainsFold,omitempty"` - // user edge predicates - HasUser *bool `json:"hasUser,omitempty"` - HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` - // organization edge predicates - HasOrganization *bool `json:"hasOrganization,omitempty"` - HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` - // group edge predicates - HasGroup *bool `json:"hasGroup,omitempty"` - HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` - // contact edge predicates - HasContact *bool `json:"hasContact,omitempty"` - HasContactWith []*ContactWhereInput `json:"hasContactWith,omitempty"` - // entity edge predicates - HasEntity *bool `json:"hasEntity,omitempty"` - HasEntityWith []*EntityWhereInput `json:"hasEntityWith,omitempty"` - // usersetting edge predicates - HasUsersetting *bool `json:"hasUsersetting,omitempty"` - HasUsersettingWith []*UserSettingWhereInput `json:"hasUsersettingWith,omitempty"` - // organizationsetting edge predicates - HasOrganizationsetting *bool `json:"hasOrganizationsetting,omitempty"` - HasOrganizationsettingWith []*OrganizationSettingWhereInput `json:"hasOrganizationsettingWith,omitempty"` - // template edge predicates - HasTemplate *bool `json:"hasTemplate,omitempty"` - HasTemplateWith []*TemplateWhereInput `json:"hasTemplateWith,omitempty"` - // documentdata edge predicates - HasDocumentdata *bool `json:"hasDocumentdata,omitempty"` - HasDocumentdataWith []*DocumentDataWhereInput `json:"hasDocumentdataWith,omitempty"` - // events edge predicates - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` -} - -type Group 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"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // 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 group - must be unique within the organization - Name string `json:"name"` - // the groups description - Description *string `json:"description,omitempty"` - // the URL to an auto generated gravatar image for the group - GravatarLogoURL *string `json:"gravatarLogoURL,omitempty"` - // the URL to an image uploaded by the customer for the groups avatar image - LogoURL *string `json:"logoURL,omitempty"` - // The group's displayed 'friendly' name - DisplayName string `json:"displayName"` - Owner *Organization `json:"owner,omitempty"` - Setting *GroupSetting `json:"setting"` - Users []*User `json:"users,omitempty"` - Events []*Event `json:"events,omitempty"` - Integrations []*Integration `json:"integrations,omitempty"` - Files []*File `json:"files,omitempty"` - Members []*GroupMembership `json:"members,omitempty"` -} - -func (Group) IsNode() {} - -// Return response for createBulkGroup mutation -type GroupBulkCreatePayload struct { - // Created groups - Groups []*Group `json:"groups,omitempty"` -} - -// A connection to a list of items. -type GroupConnection struct { - // A list of edges. - Edges []*GroupEdge `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 createGroup mutation -type GroupCreatePayload struct { - // Created group - Group *Group `json:"group"` -} - -// Return response for deleteGroup mutation -type GroupDeletePayload struct { - // Deleted group ID - DeletedID string `json:"deletedID"` -} - -// An edge in a connection. -type GroupEdge struct { - // The item at the end of the edge. - Node *Group `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` } -type GroupHistory struct { +type EntitlementPlanHistory struct { ID string `json:"id"` HistoryTime time.Time `json:"historyTime"` Ref *string `json:"ref,omitempty"` @@ -6158,24 +5020,24 @@ type GroupHistory struct { Tags []string `json:"tags,omitempty"` // the organization id that owns the object OwnerID *string `json:"ownerID,omitempty"` - // the name of the group - must be unique within the organization + // the displayed 'friendly' name of the plan + DisplayName *string `json:"displayName,omitempty"` + // the unique name of the plan Name string `json:"name"` - // the groups description + // a description of the plan Description *string `json:"description,omitempty"` - // the URL to an auto generated gravatar image for the group - GravatarLogoURL *string `json:"gravatarLogoURL,omitempty"` - // the URL to an image uploaded by the customer for the groups avatar image - LogoURL *string `json:"logoURL,omitempty"` - // The group's displayed 'friendly' name - DisplayName string `json:"displayName"` + // the version of the plan + Version string `json:"version"` + // metadata for the plan + Metadata map[string]interface{} `json:"metadata,omitempty"` } -func (GroupHistory) IsNode() {} +func (EntitlementPlanHistory) IsNode() {} // A connection to a list of items. -type GroupHistoryConnection struct { +type EntitlementPlanHistoryConnection struct { // A list of edges. - Edges []*GroupHistoryEdge `json:"edges,omitempty"` + Edges []*EntitlementPlanHistoryEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. @@ -6183,27 +5045,19 @@ type GroupHistoryConnection struct { } // An edge in a connection. -type GroupHistoryEdge struct { +type EntitlementPlanHistoryEdge struct { // The item at the end of the edge. - Node *GroupHistory `json:"node,omitempty"` + Node *EntitlementPlanHistory `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -// Ordering options for GroupHistory connections -type GroupHistoryOrder struct { - // The ordering direction. - Direction OrderDirection `json:"direction"` - // The field by which to order GroupHistories. - Field GroupHistoryOrderField `json:"field"` -} - -// GroupHistoryWhereInput is used for filtering GroupHistory objects. +// EntitlementPlanHistoryWhereInput is used for filtering EntitlementPlanHistory objects. // Input was generated by ent. -type GroupHistoryWhereInput struct { - Not *GroupHistoryWhereInput `json:"not,omitempty"` - And []*GroupHistoryWhereInput `json:"and,omitempty"` - Or []*GroupHistoryWhereInput `json:"or,omitempty"` +type EntitlementPlanHistoryWhereInput struct { + Not *EntitlementPlanHistoryWhereInput `json:"not,omitempty"` + And []*EntitlementPlanHistoryWhereInput `json:"and,omitempty"` + Or []*EntitlementPlanHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -6342,20 +5196,6 @@ type GroupHistoryWhereInput struct { 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"` - NameGt *string `json:"nameGT,omitempty"` - NameGte *string `json:"nameGTE,omitempty"` - NameLt *string `json:"nameLT,omitempty"` - NameLte *string `json:"nameLTE,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"` // display_name field predicates DisplayName *string `json:"displayName,omitempty"` DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` @@ -6368,106 +5208,74 @@ type GroupHistoryWhereInput struct { DisplayNameContains *string `json:"displayNameContains,omitempty"` DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameIsNil *bool `json:"displayNameIsNil,omitempty"` + DisplayNameNotNil *bool `json:"displayNameNotNil,omitempty"` DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // version field predicates + Version *string `json:"version,omitempty"` + VersionNeq *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGt *string `json:"versionGT,omitempty"` + VersionGte *string `json:"versionGTE,omitempty"` + VersionLt *string `json:"versionLT,omitempty"` + VersionLte *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` } -type GroupMembership 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"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - Role enums.Role `json:"role"` - GroupID string `json:"groupID"` - UserID string `json:"userID"` - Group *Group `json:"group"` - User *User `json:"user"` - Events []*Event `json:"events,omitempty"` -} - -func (GroupMembership) IsNode() {} - -// Return response for createBulkGroupMembership mutation -type GroupMembershipBulkCreatePayload struct { - // Created groupMemberships - GroupMemberships []*GroupMembership `json:"groupMemberships,omitempty"` -} - -// A connection to a list of items. -type GroupMembershipConnection struct { - // A list of edges. - Edges []*GroupMembershipEdge `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 createGroupMembership mutation -type GroupMembershipCreatePayload struct { - // Created groupMembership - GroupMembership *GroupMembership `json:"groupMembership"` -} - -// Return response for deleteGroupMembership mutation -type GroupMembershipDeletePayload struct { - // Deleted groupMembership ID - DeletedID string `json:"deletedID"` -} - -// An edge in a connection. -type GroupMembershipEdge struct { - // The item at the end of the edge. - Node *GroupMembership `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` -} - -type GroupMembershipHistory struct { - ID string `json:"id"` - HistoryTime time.Time `json:"historyTime"` - Ref *string `json:"ref,omitempty"` - Operation history.OpType `json:"operation"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - CreatedBy *string `json:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - Role enums.Role `json:"role"` - GroupID string `json:"groupID"` - UserID string `json:"userID"` +type EntitlementPlanSearchResult struct { + EntitlementPlans []*EntitlementPlan `json:"entitlementPlans,omitempty"` } -func (GroupMembershipHistory) IsNode() {} - -// A connection to a list of items. -type GroupMembershipHistoryConnection struct { - // A list of edges. - Edges []*GroupMembershipHistoryEdge `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"` -} +func (EntitlementPlanSearchResult) IsSearchResult() {} -// An edge in a connection. -type GroupMembershipHistoryEdge struct { - // The item at the end of the edge. - Node *GroupMembershipHistory `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` +// Return response for updateEntitlementPlan mutation +type EntitlementPlanUpdatePayload struct { + // Updated entitlementPlan + EntitlementPlan *EntitlementPlan `json:"entitlementPlan"` } -// GroupMembershipHistoryWhereInput is used for filtering GroupMembershipHistory objects. +// EntitlementPlanWhereInput is used for filtering EntitlementPlan objects. // Input was generated by ent. -type GroupMembershipHistoryWhereInput struct { - Not *GroupMembershipHistoryWhereInput `json:"not,omitempty"` - And []*GroupMembershipHistoryWhereInput `json:"and,omitempty"` - Or []*GroupMembershipHistoryWhereInput `json:"or,omitempty"` +type EntitlementPlanWhereInput struct { + Not *EntitlementPlanWhereInput `json:"not,omitempty"` + And []*EntitlementPlanWhereInput `json:"and,omitempty"` + Or []*EntitlementPlanWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -6479,36 +5287,6 @@ type GroupMembershipHistoryWhereInput struct { IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // history_time field predicates - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` - RefGt *string `json:"refGT,omitempty"` - RefGte *string `json:"refGTE,omitempty"` - RefLt *string `json:"refLT,omitempty"` - RefLte *string `json:"refLTE,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"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` @@ -6590,54 +5368,118 @@ type GroupMembershipHistoryWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // role field predicates - Role *enums.Role `json:"role,omitempty"` - RoleNeq *enums.Role `json:"roleNEQ,omitempty"` - RoleIn []enums.Role `json:"roleIn,omitempty"` - RoleNotIn []enums.Role `json:"roleNotIn,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"` - GroupIdgt *string `json:"groupIDGT,omitempty"` - GroupIdgte *string `json:"groupIDGTE,omitempty"` - GroupIdlt *string `json:"groupIDLT,omitempty"` - GroupIdlte *string `json:"groupIDLTE,omitempty"` - GroupIDContains *string `json:"groupIDContains,omitempty"` - GroupIDHasPrefix *string `json:"groupIDHasPrefix,omitempty"` - GroupIDHasSuffix *string `json:"groupIDHasSuffix,omitempty"` - GroupIDEqualFold *string `json:"groupIDEqualFold,omitempty"` - GroupIDContainsFold *string `json:"groupIDContainsFold,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"` - UserIdgt *string `json:"userIDGT,omitempty"` - UserIdgte *string `json:"userIDGTE,omitempty"` - UserIdlt *string `json:"userIDLT,omitempty"` - UserIdlte *string `json:"userIDLTE,omitempty"` - UserIDContains *string `json:"userIDContains,omitempty"` - UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` - UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` - UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` - UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` -} - -// Return response for updateGroupMembership mutation -type GroupMembershipUpdatePayload struct { - // Updated groupMembership - GroupMembership *GroupMembership `json:"groupMembership"` -} - -// GroupMembershipWhereInput is used for filtering GroupMembership objects. -// Input was generated by ent. -type GroupMembershipWhereInput struct { - Not *GroupMembershipWhereInput `json:"not,omitempty"` - And []*GroupMembershipWhereInput `json:"and,omitempty"` - Or []*GroupMembershipWhereInput `json:"or,omitempty"` - // id field predicates + // owner_id field predicates + OwnerID *string `json:"ownerID,omitempty"` + OwnerIdneq *string `json:"ownerIDNEQ,omitempty"` + OwnerIDIn []string `json:"ownerIDIn,omitempty"` + OwnerIDNotIn []string `json:"ownerIDNotIn,omitempty"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + // display_name field predicates + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGt *string `json:"displayNameGT,omitempty"` + DisplayNameGte *string `json:"displayNameGTE,omitempty"` + DisplayNameLt *string `json:"displayNameLT,omitempty"` + DisplayNameLte *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameIsNil *bool `json:"displayNameIsNil,omitempty"` + DisplayNameNotNil *bool `json:"displayNameNotNil,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // version field predicates + Version *string `json:"version,omitempty"` + VersionNeq *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGt *string `json:"versionGT,omitempty"` + VersionGte *string `json:"versionGTE,omitempty"` + VersionLt *string `json:"versionLT,omitempty"` + VersionLte *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // entitlements edge predicates + HasEntitlements *bool `json:"hasEntitlements,omitempty"` + HasEntitlementsWith []*EntitlementWhereInput `json:"hasEntitlementsWith,omitempty"` + // base_features edge predicates + HasBaseFeatures *bool `json:"hasBaseFeatures,omitempty"` + HasBaseFeaturesWith []*FeatureWhereInput `json:"hasBaseFeaturesWith,omitempty"` + // events edge predicates + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // features edge predicates + HasFeatures *bool `json:"hasFeatures,omitempty"` + HasFeaturesWith []*EntitlementPlanFeatureWhereInput `json:"hasFeaturesWith,omitempty"` +} + +type EntitlementSearchResult struct { + Entitlements []*Entitlement `json:"entitlements,omitempty"` +} + +func (EntitlementSearchResult) IsSearchResult() {} + +// Return response for updateEntitlement mutation +type EntitlementUpdatePayload struct { + // Updated entitlement + Entitlement *Entitlement `json:"entitlement"` +} + +// EntitlementWhereInput is used for filtering Entitlement objects. +// Input was generated by ent. +type EntitlementWhereInput struct { + Not *EntitlementWhereInput `json:"not,omitempty"` + And []*EntitlementWhereInput `json:"and,omitempty"` + Or []*EntitlementWhereInput `json:"or,omitempty"` + // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` @@ -6729,91 +5571,184 @@ type GroupMembershipWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // role field predicates - Role *enums.Role `json:"role,omitempty"` - RoleNeq *enums.Role `json:"roleNEQ,omitempty"` - RoleIn []enums.Role `json:"roleIn,omitempty"` - RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` - GroupID *string `json:"groupID,omitempty"` - UserID *string `json:"userID,omitempty"` -} - -// Ordering options for Group connections -type GroupOrder struct { - // The ordering direction. - Direction OrderDirection `json:"direction"` - // The field by which to order Groups. - Field GroupOrderField `json:"field"` -} - -type GroupSearchResult struct { - Groups []*Group `json:"groups,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + // plan_id field predicates + PlanID *string `json:"planID,omitempty"` + PlanIdneq *string `json:"planIDNEQ,omitempty"` + PlanIDIn []string `json:"planIDIn,omitempty"` + PlanIDNotIn []string `json:"planIDNotIn,omitempty"` + PlanIdgt *string `json:"planIDGT,omitempty"` + PlanIdgte *string `json:"planIDGTE,omitempty"` + PlanIdlt *string `json:"planIDLT,omitempty"` + PlanIdlte *string `json:"planIDLTE,omitempty"` + PlanIDContains *string `json:"planIDContains,omitempty"` + PlanIDHasPrefix *string `json:"planIDHasPrefix,omitempty"` + PlanIDHasSuffix *string `json:"planIDHasSuffix,omitempty"` + PlanIDEqualFold *string `json:"planIDEqualFold,omitempty"` + PlanIDContainsFold *string `json:"planIDContainsFold,omitempty"` + // organization_id field predicates + OrganizationID *string `json:"organizationID,omitempty"` + OrganizationIdneq *string `json:"organizationIDNEQ,omitempty"` + OrganizationIDIn []string `json:"organizationIDIn,omitempty"` + OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` + OrganizationIdgt *string `json:"organizationIDGT,omitempty"` + OrganizationIdgte *string `json:"organizationIDGTE,omitempty"` + OrganizationIdlt *string `json:"organizationIDLT,omitempty"` + OrganizationIdlte *string `json:"organizationIDLTE,omitempty"` + OrganizationIDContains *string `json:"organizationIDContains,omitempty"` + OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` + OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` + OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` + OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` + // external_customer_id field predicates + ExternalCustomerID *string `json:"externalCustomerID,omitempty"` + ExternalCustomerIdneq *string `json:"externalCustomerIDNEQ,omitempty"` + ExternalCustomerIDIn []string `json:"externalCustomerIDIn,omitempty"` + ExternalCustomerIDNotIn []string `json:"externalCustomerIDNotIn,omitempty"` + ExternalCustomerIdgt *string `json:"externalCustomerIDGT,omitempty"` + ExternalCustomerIdgte *string `json:"externalCustomerIDGTE,omitempty"` + ExternalCustomerIdlt *string `json:"externalCustomerIDLT,omitempty"` + ExternalCustomerIdlte *string `json:"externalCustomerIDLTE,omitempty"` + ExternalCustomerIDContains *string `json:"externalCustomerIDContains,omitempty"` + ExternalCustomerIDHasPrefix *string `json:"externalCustomerIDHasPrefix,omitempty"` + ExternalCustomerIDHasSuffix *string `json:"externalCustomerIDHasSuffix,omitempty"` + ExternalCustomerIDIsNil *bool `json:"externalCustomerIDIsNil,omitempty"` + ExternalCustomerIDNotNil *bool `json:"externalCustomerIDNotNil,omitempty"` + ExternalCustomerIDEqualFold *string `json:"externalCustomerIDEqualFold,omitempty"` + ExternalCustomerIDContainsFold *string `json:"externalCustomerIDContainsFold,omitempty"` + // external_subscription_id field predicates + ExternalSubscriptionID *string `json:"externalSubscriptionID,omitempty"` + ExternalSubscriptionIdneq *string `json:"externalSubscriptionIDNEQ,omitempty"` + ExternalSubscriptionIDIn []string `json:"externalSubscriptionIDIn,omitempty"` + ExternalSubscriptionIDNotIn []string `json:"externalSubscriptionIDNotIn,omitempty"` + ExternalSubscriptionIdgt *string `json:"externalSubscriptionIDGT,omitempty"` + ExternalSubscriptionIdgte *string `json:"externalSubscriptionIDGTE,omitempty"` + ExternalSubscriptionIdlt *string `json:"externalSubscriptionIDLT,omitempty"` + ExternalSubscriptionIdlte *string `json:"externalSubscriptionIDLTE,omitempty"` + ExternalSubscriptionIDContains *string `json:"externalSubscriptionIDContains,omitempty"` + ExternalSubscriptionIDHasPrefix *string `json:"externalSubscriptionIDHasPrefix,omitempty"` + ExternalSubscriptionIDHasSuffix *string `json:"externalSubscriptionIDHasSuffix,omitempty"` + ExternalSubscriptionIDIsNil *bool `json:"externalSubscriptionIDIsNil,omitempty"` + ExternalSubscriptionIDNotNil *bool `json:"externalSubscriptionIDNotNil,omitempty"` + ExternalSubscriptionIDEqualFold *string `json:"externalSubscriptionIDEqualFold,omitempty"` + ExternalSubscriptionIDContainsFold *string `json:"externalSubscriptionIDContainsFold,omitempty"` + // expires field predicates + Expires *bool `json:"expires,omitempty"` + ExpiresNeq *bool `json:"expiresNEQ,omitempty"` + // expires_at field predicates + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + ExpiresAtNeq *time.Time `json:"expiresAtNEQ,omitempty"` + ExpiresAtIn []*time.Time `json:"expiresAtIn,omitempty"` + ExpiresAtNotIn []*time.Time `json:"expiresAtNotIn,omitempty"` + ExpiresAtGt *time.Time `json:"expiresAtGT,omitempty"` + ExpiresAtGte *time.Time `json:"expiresAtGTE,omitempty"` + ExpiresAtLt *time.Time `json:"expiresAtLT,omitempty"` + ExpiresAtLte *time.Time `json:"expiresAtLTE,omitempty"` + ExpiresAtIsNil *bool `json:"expiresAtIsNil,omitempty"` + ExpiresAtNotNil *bool `json:"expiresAtNotNil,omitempty"` + // cancelled field predicates + Cancelled *bool `json:"cancelled,omitempty"` + CancelledNeq *bool `json:"cancelledNEQ,omitempty"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // plan edge predicates + HasPlan *bool `json:"hasPlan,omitempty"` + HasPlanWith []*EntitlementPlanWhereInput `json:"hasPlanWith,omitempty"` + // organization edge predicates + HasOrganization *bool `json:"hasOrganization,omitempty"` + HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` + // events edge predicates + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` } -func (GroupSearchResult) IsSearchResult() {} - -type GroupSetting struct { +type Entity 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"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy *string `json:"deletedBy,omitempty"` - // whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization - Visibility enums.Visibility `json:"visibility"` - // the policy governing ability to freely join a group, whether it requires an invitation, application, or either - JoinPolicy enums.JoinPolicy `json:"joinPolicy"` - // whether to sync group members to slack groups - SyncToSlack *bool `json:"syncToSlack,omitempty"` - // whether to sync group members to github groups - SyncToGithub *bool `json:"syncToGithub,omitempty"` - // the group id associated with the settings - GroupID *string `json:"groupID,omitempty"` - Group *Group `json:"group,omitempty"` -} - -func (GroupSetting) IsNode() {} + // 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 entity + Name *string `json:"name,omitempty"` + // The entity's displayed 'friendly' name + DisplayName *string `json:"displayName,omitempty"` + // An optional description of the entity + Description *string `json:"description,omitempty"` + // domains associated with the entity + Domains []string `json:"domains,omitempty"` + // The type of the entity + EntityTypeID *string `json:"entityTypeID,omitempty"` + // status of the entity + Status *string `json:"status,omitempty"` + Owner *Organization `json:"owner,omitempty"` + Contacts []*Contact `json:"contacts,omitempty"` + Documents []*DocumentData `json:"documents,omitempty"` + Notes []*Note `json:"notes,omitempty"` + Files []*File `json:"files,omitempty"` + EntityType *EntityType `json:"entityType,omitempty"` +} -// Return response for createBulkGroupSetting mutation -type GroupSettingBulkCreatePayload struct { - // Created groupSettings - GroupSettings []*GroupSetting `json:"groupSettings,omitempty"` +func (Entity) IsNode() {} + +// Return response for createBulkEntity mutation +type EntityBulkCreatePayload struct { + // Created entities + Entities []*Entity `json:"entities,omitempty"` } // A connection to a list of items. -type GroupSettingConnection struct { +type EntityConnection struct { // A list of edges. - Edges []*GroupSettingEdge `json:"edges,omitempty"` + Edges []*EntityEdge `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 createGroupSetting mutation -type GroupSettingCreatePayload struct { - // Created groupSetting - GroupSetting *GroupSetting `json:"groupSetting"` +// Return response for createEntity mutation +type EntityCreatePayload struct { + // Created entity + Entity *Entity `json:"entity"` } -// Return response for deleteGroupSetting mutation -type GroupSettingDeletePayload struct { - // Deleted groupSetting ID +// Return response for deleteEntity mutation +type EntityDeletePayload struct { + // Deleted entity ID DeletedID string `json:"deletedID"` } // An edge in a connection. -type GroupSettingEdge struct { +type EntityEdge struct { // The item at the end of the edge. - Node *GroupSetting `json:"node,omitempty"` + Node *Entity `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -type GroupSettingHistory struct { +type EntityHistory struct { ID string `json:"id"` HistoryTime time.Time `json:"historyTime"` Ref *string `json:"ref,omitempty"` @@ -6822,28 +5757,32 @@ type GroupSettingHistory struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object - Tags []string `json:"tags,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization - Visibility enums.Visibility `json:"visibility"` - // the policy governing ability to freely join a group, whether it requires an invitation, application, or either - JoinPolicy enums.JoinPolicy `json:"joinPolicy"` - // whether to sync group members to slack groups - SyncToSlack *bool `json:"syncToSlack,omitempty"` - // whether to sync group members to github groups - SyncToGithub *bool `json:"syncToGithub,omitempty"` - // the group id associated with the settings - GroupID *string `json:"groupID,omitempty"` + Tags []string `json:"tags,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the name of the entity + Name *string `json:"name,omitempty"` + // The entity's displayed 'friendly' name + DisplayName *string `json:"displayName,omitempty"` + // An optional description of the entity + Description *string `json:"description,omitempty"` + // domains associated with the entity + Domains []string `json:"domains,omitempty"` + // The type of the entity + EntityTypeID *string `json:"entityTypeID,omitempty"` + // status of the entity + Status *string `json:"status,omitempty"` } -func (GroupSettingHistory) IsNode() {} +func (EntityHistory) IsNode() {} // A connection to a list of items. -type GroupSettingHistoryConnection struct { +type EntityHistoryConnection struct { // A list of edges. - Edges []*GroupSettingHistoryEdge `json:"edges,omitempty"` + Edges []*EntityHistoryEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. @@ -6851,19 +5790,27 @@ type GroupSettingHistoryConnection struct { } // An edge in a connection. -type GroupSettingHistoryEdge struct { +type EntityHistoryEdge struct { // The item at the end of the edge. - Node *GroupSettingHistory `json:"node,omitempty"` + Node *EntityHistory `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -// GroupSettingHistoryWhereInput is used for filtering GroupSettingHistory objects. +// Ordering options for EntityHistory connections +type EntityHistoryOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order EntityHistories. + Field EntityHistoryOrderField `json:"field"` +} + +// EntityHistoryWhereInput is used for filtering EntityHistory objects. // Input was generated by ent. -type GroupSettingHistoryWhereInput struct { - Not *GroupSettingHistoryWhereInput `json:"not,omitempty"` - And []*GroupSettingHistoryWhereInput `json:"and,omitempty"` - Or []*GroupSettingHistoryWhereInput `json:"or,omitempty"` +type EntityHistoryWhereInput struct { + Not *EntityHistoryWhereInput `json:"not,omitempty"` + And []*EntityHistoryWhereInput `json:"and,omitempty"` + Or []*EntityHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -6986,65 +5933,214 @@ type GroupSettingHistoryWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // visibility field predicates - Visibility *enums.Visibility `json:"visibility,omitempty"` - VisibilityNeq *enums.Visibility `json:"visibilityNEQ,omitempty"` - VisibilityIn []enums.Visibility `json:"visibilityIn,omitempty"` - VisibilityNotIn []enums.Visibility `json:"visibilityNotIn,omitempty"` - // join_policy field predicates - JoinPolicy *enums.JoinPolicy `json:"joinPolicy,omitempty"` - JoinPolicyNeq *enums.JoinPolicy `json:"joinPolicyNEQ,omitempty"` - JoinPolicyIn []enums.JoinPolicy `json:"joinPolicyIn,omitempty"` - JoinPolicyNotIn []enums.JoinPolicy `json:"joinPolicyNotIn,omitempty"` - // sync_to_slack field predicates - SyncToSlack *bool `json:"syncToSlack,omitempty"` - SyncToSlackNeq *bool `json:"syncToSlackNEQ,omitempty"` - SyncToSlackIsNil *bool `json:"syncToSlackIsNil,omitempty"` - SyncToSlackNotNil *bool `json:"syncToSlackNotNil,omitempty"` - // sync_to_github field predicates - SyncToGithub *bool `json:"syncToGithub,omitempty"` - SyncToGithubNeq *bool `json:"syncToGithubNEQ,omitempty"` - SyncToGithubIsNil *bool `json:"syncToGithubIsNil,omitempty"` - SyncToGithubNotNil *bool `json:"syncToGithubNotNil,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"` - GroupIdgt *string `json:"groupIDGT,omitempty"` - GroupIdgte *string `json:"groupIDGTE,omitempty"` - GroupIdlt *string `json:"groupIDLT,omitempty"` - GroupIdlte *string `json:"groupIDLTE,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"` + // owner_id field predicates + OwnerID *string `json:"ownerID,omitempty"` + OwnerIdneq *string `json:"ownerIDNEQ,omitempty"` + OwnerIDIn []string `json:"ownerIDIn,omitempty"` + OwnerIDNotIn []string `json:"ownerIDNotIn,omitempty"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,omitempty"` + NameContains *string `json:"nameContains,omitempty"` + NameHasPrefix *string `json:"nameHasPrefix,omitempty"` + NameHasSuffix *string `json:"nameHasSuffix,omitempty"` + NameIsNil *bool `json:"nameIsNil,omitempty"` + NameNotNil *bool `json:"nameNotNil,omitempty"` + NameEqualFold *string `json:"nameEqualFold,omitempty"` + NameContainsFold *string `json:"nameContainsFold,omitempty"` + // display_name field predicates + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGt *string `json:"displayNameGT,omitempty"` + DisplayNameGte *string `json:"displayNameGTE,omitempty"` + DisplayNameLt *string `json:"displayNameLT,omitempty"` + DisplayNameLte *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameIsNil *bool `json:"displayNameIsNil,omitempty"` + DisplayNameNotNil *bool `json:"displayNameNotNil,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // entity_type_id field predicates + EntityTypeID *string `json:"entityTypeID,omitempty"` + EntityTypeIdneq *string `json:"entityTypeIDNEQ,omitempty"` + EntityTypeIDIn []string `json:"entityTypeIDIn,omitempty"` + EntityTypeIDNotIn []string `json:"entityTypeIDNotIn,omitempty"` + EntityTypeIdgt *string `json:"entityTypeIDGT,omitempty"` + EntityTypeIdgte *string `json:"entityTypeIDGTE,omitempty"` + EntityTypeIdlt *string `json:"entityTypeIDLT,omitempty"` + EntityTypeIdlte *string `json:"entityTypeIDLTE,omitempty"` + EntityTypeIDContains *string `json:"entityTypeIDContains,omitempty"` + EntityTypeIDHasPrefix *string `json:"entityTypeIDHasPrefix,omitempty"` + EntityTypeIDHasSuffix *string `json:"entityTypeIDHasSuffix,omitempty"` + EntityTypeIDIsNil *bool `json:"entityTypeIDIsNil,omitempty"` + EntityTypeIDNotNil *bool `json:"entityTypeIDNotNil,omitempty"` + EntityTypeIDEqualFold *string `json:"entityTypeIDEqualFold,omitempty"` + EntityTypeIDContainsFold *string `json:"entityTypeIDContainsFold,omitempty"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` } -type GroupSettingSearchResult struct { - GroupSettings []*GroupSetting `json:"groupSettings,omitempty"` +// Ordering options for Entity connections +type EntityOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order Entities. + Field EntityOrderField `json:"field"` } -func (GroupSettingSearchResult) IsSearchResult() {} - -// Return response for updateGroupSetting mutation -type GroupSettingUpdatePayload struct { - // Updated groupSetting - GroupSetting *GroupSetting `json:"groupSetting"` +type EntitySearchResult struct { + Entities []*Entity `json:"entities,omitempty"` } -// GroupSettingWhereInput is used for filtering GroupSetting objects. -// Input was generated by ent. -type GroupSettingWhereInput struct { - Not *GroupSettingWhereInput `json:"not,omitempty"` - And []*GroupSettingWhereInput `json:"and,omitempty"` - Or []*GroupSettingWhereInput `json:"or,omitempty"` - // id field predicates - ID *string `json:"id,omitempty"` - IDNeq *string `json:"idNEQ,omitempty"` +func (EntitySearchResult) IsSearchResult() {} + +type EntityType 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // 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 entity + Name string `json:"name"` + Owner *Organization `json:"owner,omitempty"` + Entities []*Entity `json:"entities,omitempty"` +} + +func (EntityType) IsNode() {} + +// Return response for createBulkEntityType mutation +type EntityTypeBulkCreatePayload struct { + // Created entityTypes + EntityTypes []*EntityType `json:"entityTypes,omitempty"` +} + +// A connection to a list of items. +type EntityTypeConnection struct { + // A list of edges. + Edges []*EntityTypeEdge `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 createEntityType mutation +type EntityTypeCreatePayload struct { + // Created entityType + EntityType *EntityType `json:"entityType"` +} + +// Return response for deleteEntityType mutation +type EntityTypeDeletePayload struct { + // Deleted entityType ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type EntityTypeEdge struct { + // The item at the end of the edge. + Node *EntityType `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type EntityTypeHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // 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 entity + Name string `json:"name"` +} + +func (EntityTypeHistory) IsNode() {} + +// A connection to a list of items. +type EntityTypeHistoryConnection struct { + // A list of edges. + Edges []*EntityTypeHistoryEdge `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"` +} + +// An edge in a connection. +type EntityTypeHistoryEdge struct { + // The item at the end of the edge. + Node *EntityTypeHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// Ordering options for EntityTypeHistory connections +type EntityTypeHistoryOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order EntityTypeHistories. + Field EntityTypeHistoryOrderField `json:"field"` +} + +// EntityTypeHistoryWhereInput is used for filtering EntityTypeHistory objects. +// Input was generated by ent. +type EntityTypeHistoryWhereInput struct { + Not *EntityTypeHistoryWhereInput `json:"not,omitempty"` + And []*EntityTypeHistoryWhereInput `json:"and,omitempty"` + Or []*EntityTypeHistoryWhereInput `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"` IDGt *string `json:"idGT,omitempty"` @@ -7053,6 +6149,36 @@ type GroupSettingWhereInput struct { IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` @@ -7134,59 +6260,64 @@ type GroupSettingWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // visibility field predicates - Visibility *enums.Visibility `json:"visibility,omitempty"` - VisibilityNeq *enums.Visibility `json:"visibilityNEQ,omitempty"` - VisibilityIn []enums.Visibility `json:"visibilityIn,omitempty"` - VisibilityNotIn []enums.Visibility `json:"visibilityNotIn,omitempty"` - // join_policy field predicates - JoinPolicy *enums.JoinPolicy `json:"joinPolicy,omitempty"` - JoinPolicyNeq *enums.JoinPolicy `json:"joinPolicyNEQ,omitempty"` - JoinPolicyIn []enums.JoinPolicy `json:"joinPolicyIn,omitempty"` - JoinPolicyNotIn []enums.JoinPolicy `json:"joinPolicyNotIn,omitempty"` - // sync_to_slack field predicates - SyncToSlack *bool `json:"syncToSlack,omitempty"` - SyncToSlackNeq *bool `json:"syncToSlackNEQ,omitempty"` - SyncToSlackIsNil *bool `json:"syncToSlackIsNil,omitempty"` - SyncToSlackNotNil *bool `json:"syncToSlackNotNil,omitempty"` - // sync_to_github field predicates - SyncToGithub *bool `json:"syncToGithub,omitempty"` - SyncToGithubNeq *bool `json:"syncToGithubNEQ,omitempty"` - SyncToGithubIsNil *bool `json:"syncToGithubIsNil,omitempty"` - SyncToGithubNotNil *bool `json:"syncToGithubNotNil,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"` - GroupIdgt *string `json:"groupIDGT,omitempty"` - GroupIdgte *string `json:"groupIDGTE,omitempty"` - GroupIdlt *string `json:"groupIDLT,omitempty"` - GroupIdlte *string `json:"groupIDLTE,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"` - // group edge predicates - HasGroup *bool `json:"hasGroup,omitempty"` - HasGroupWith []*GroupWhereInput `json:"hasGroupWith,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` } -// Return response for updateGroup mutation -type GroupUpdatePayload struct { - // Updated group - Group *Group `json:"group"` +// Ordering options for EntityType connections +type EntityTypeOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order EntityTypes. + Field EntityTypeOrderField `json:"field"` } -// GroupWhereInput is used for filtering Group objects. +type EntityTypeSearchResult struct { + EntityTypes []*EntityType `json:"entityTypes,omitempty"` +} + +func (EntityTypeSearchResult) IsSearchResult() {} + +// Return response for updateEntityType mutation +type EntityTypeUpdatePayload struct { + // Updated entityType + EntityType *EntityType `json:"entityType"` +} + +// EntityTypeWhereInput is used for filtering EntityType objects. // Input was generated by ent. -type GroupWhereInput struct { - Not *GroupWhereInput `json:"not,omitempty"` - And []*GroupWhereInput `json:"and,omitempty"` - Or []*GroupWhereInput `json:"or,omitempty"` +type EntityTypeWhereInput struct { + Not *EntityTypeWhereInput `json:"not,omitempty"` + And []*EntityTypeWhereInput `json:"and,omitempty"` + Or []*EntityTypeWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -7309,158 +6440,26 @@ type GroupWhereInput struct { NameHasSuffix *string `json:"nameHasSuffix,omitempty"` NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` - // display_name field predicates - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGt *string `json:"displayNameGT,omitempty"` - DisplayNameGte *string `json:"displayNameGTE,omitempty"` - DisplayNameLt *string `json:"displayNameLT,omitempty"` - DisplayNameLte *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` // owner edge predicates HasOwner *bool `json:"hasOwner,omitempty"` HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // setting edge predicates - HasSetting *bool `json:"hasSetting,omitempty"` - HasSettingWith []*GroupSettingWhereInput `json:"hasSettingWith,omitempty"` - // users edge predicates - HasUsers *bool `json:"hasUsers,omitempty"` - HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"` - // events edge predicates - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` - // integrations edge predicates - HasIntegrations *bool `json:"hasIntegrations,omitempty"` - HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` - // files edge predicates - HasFiles *bool `json:"hasFiles,omitempty"` - HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` - // members edge predicates - HasMembers *bool `json:"hasMembers,omitempty"` - HasMembersWith []*GroupMembershipWhereInput `json:"hasMembersWith,omitempty"` -} - -type Hush 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"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // the logical name of the corresponding hush secret or it's general grouping - Name string `json:"name"` - // a description of the hush value or purpose, such as github PAT - Description *string `json:"description,omitempty"` - // the kind of secret, such as sshkey, certificate, api token, etc. - Kind *string `json:"kind,omitempty"` - // the generic name of a secret associated with the organization - SecretName *string `json:"secretName,omitempty"` - // the integration associated with the secret - Integrations []*Integration `json:"integrations,omitempty"` - Organization []*Organization `json:"organization,omitempty"` - Events []*Event `json:"events,omitempty"` -} - -func (Hush) IsNode() {} - -// Return response for createBulkHush mutation -type HushBulkCreatePayload struct { - // Created hushs - Hushes []*Hush `json:"hushes,omitempty"` -} - -// A connection to a list of items. -type HushConnection struct { - // A list of edges. - Edges []*HushEdge `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 createHush mutation -type HushCreatePayload struct { - // Created hush - Hush *Hush `json:"hush"` -} - -// Return response for deleteHush mutation -type HushDeletePayload struct { - // Deleted hush ID - DeletedID string `json:"deletedID"` -} - -// An edge in a connection. -type HushEdge struct { - // The item at the end of the edge. - Node *Hush `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` -} - -type HushHistory struct { - ID string `json:"id"` - HistoryTime time.Time `json:"historyTime"` - Ref *string `json:"ref,omitempty"` - Operation history.OpType `json:"operation"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - CreatedBy *string `json:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // the logical name of the corresponding hush secret or it's general grouping - Name string `json:"name"` - // a description of the hush value or purpose, such as github PAT - Description *string `json:"description,omitempty"` - // the kind of secret, such as sshkey, certificate, api token, etc. - Kind *string `json:"kind,omitempty"` - // the generic name of a secret associated with the organization - SecretName *string `json:"secretName,omitempty"` -} - -func (HushHistory) IsNode() {} - -// A connection to a list of items. -type HushHistoryConnection struct { - // A list of edges. - Edges []*HushHistoryEdge `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"` -} - -// An edge in a connection. -type HushHistoryEdge struct { - // The item at the end of the edge. - Node *HushHistory `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` + // entities edge predicates + HasEntities *bool `json:"hasEntities,omitempty"` + HasEntitiesWith []*EntityWhereInput `json:"hasEntitiesWith,omitempty"` } -// Ordering options for HushHistory connections -type HushHistoryOrder struct { - // The ordering direction. - Direction OrderDirection `json:"direction"` - // The field by which to order HushHistories. - Field HushHistoryOrderField `json:"field"` +// Return response for updateEntity mutation +type EntityUpdatePayload struct { + // Updated entity + Entity *Entity `json:"entity"` } -// HushHistoryWhereInput is used for filtering HushHistory objects. +// EntityWhereInput is used for filtering Entity objects. // Input was generated by ent. -type HushHistoryWhereInput struct { - Not *HushHistoryWhereInput `json:"not,omitempty"` - And []*HushHistoryWhereInput `json:"and,omitempty"` - Or []*HushHistoryWhereInput `json:"or,omitempty"` +type EntityWhereInput struct { + Not *EntityWhereInput `json:"not,omitempty"` + And []*EntityWhereInput `json:"and,omitempty"` + Or []*EntityWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -7472,36 +6471,6 @@ type HushHistoryWhereInput struct { IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // history_time field predicates - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` - RefGt *string `json:"refGT,omitempty"` - RefGte *string `json:"refGTE,omitempty"` - RefLt *string `json:"refLT,omitempty"` - RefLte *string `json:"refLTE,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"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` @@ -7583,6 +6552,22 @@ type HushHistoryWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` @@ -7595,73 +6580,231 @@ type HushHistoryWhereInput struct { NameContains *string `json:"nameContains,omitempty"` NameHasPrefix *string `json:"nameHasPrefix,omitempty"` NameHasSuffix *string `json:"nameHasSuffix,omitempty"` + NameIsNil *bool `json:"nameIsNil,omitempty"` + NameNotNil *bool `json:"nameNotNil,omitempty"` NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` - // kind field predicates - Kind *string `json:"kind,omitempty"` - KindNeq *string `json:"kindNEQ,omitempty"` - KindIn []string `json:"kindIn,omitempty"` - KindNotIn []string `json:"kindNotIn,omitempty"` - KindGt *string `json:"kindGT,omitempty"` - KindGte *string `json:"kindGTE,omitempty"` - KindLt *string `json:"kindLT,omitempty"` - KindLte *string `json:"kindLTE,omitempty"` - KindContains *string `json:"kindContains,omitempty"` - KindHasPrefix *string `json:"kindHasPrefix,omitempty"` - KindHasSuffix *string `json:"kindHasSuffix,omitempty"` - KindIsNil *bool `json:"kindIsNil,omitempty"` - KindNotNil *bool `json:"kindNotNil,omitempty"` - KindEqualFold *string `json:"kindEqualFold,omitempty"` - KindContainsFold *string `json:"kindContainsFold,omitempty"` - // secret_name field predicates - SecretName *string `json:"secretName,omitempty"` - SecretNameNeq *string `json:"secretNameNEQ,omitempty"` - SecretNameIn []string `json:"secretNameIn,omitempty"` - SecretNameNotIn []string `json:"secretNameNotIn,omitempty"` - SecretNameGt *string `json:"secretNameGT,omitempty"` - SecretNameGte *string `json:"secretNameGTE,omitempty"` - SecretNameLt *string `json:"secretNameLT,omitempty"` - SecretNameLte *string `json:"secretNameLTE,omitempty"` - SecretNameContains *string `json:"secretNameContains,omitempty"` - SecretNameHasPrefix *string `json:"secretNameHasPrefix,omitempty"` - SecretNameHasSuffix *string `json:"secretNameHasSuffix,omitempty"` - SecretNameIsNil *bool `json:"secretNameIsNil,omitempty"` - SecretNameNotNil *bool `json:"secretNameNotNil,omitempty"` - SecretNameEqualFold *string `json:"secretNameEqualFold,omitempty"` - SecretNameContainsFold *string `json:"secretNameContainsFold,omitempty"` -} - -// Ordering options for Hush connections -type HushOrder struct { - // The ordering direction. - Direction OrderDirection `json:"direction"` - // The field by which to order Hushes. - Field HushOrderField `json:"field"` -} - -// Return response for updateHush mutation -type HushUpdatePayload struct { - // Updated hush - Hush *Hush `json:"hush"` -} - -// HushWhereInput is used for filtering Hush objects. -// Input was generated by ent. -type HushWhereInput struct { - Not *HushWhereInput `json:"not,omitempty"` - And []*HushWhereInput `json:"and,omitempty"` - Or []*HushWhereInput `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"` - IDGt *string `json:"idGT,omitempty"` - IDGte *string `json:"idGTE,omitempty"` - IDLt *string `json:"idLT,omitempty"` - IDLte *string `json:"idLTE,omitempty"` + // display_name field predicates + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGt *string `json:"displayNameGT,omitempty"` + DisplayNameGte *string `json:"displayNameGTE,omitempty"` + DisplayNameLt *string `json:"displayNameLT,omitempty"` + DisplayNameLte *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameIsNil *bool `json:"displayNameIsNil,omitempty"` + DisplayNameNotNil *bool `json:"displayNameNotNil,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // entity_type_id field predicates + EntityTypeID *string `json:"entityTypeID,omitempty"` + EntityTypeIdneq *string `json:"entityTypeIDNEQ,omitempty"` + EntityTypeIDIn []string `json:"entityTypeIDIn,omitempty"` + EntityTypeIDNotIn []string `json:"entityTypeIDNotIn,omitempty"` + EntityTypeIdgt *string `json:"entityTypeIDGT,omitempty"` + EntityTypeIdgte *string `json:"entityTypeIDGTE,omitempty"` + EntityTypeIdlt *string `json:"entityTypeIDLT,omitempty"` + EntityTypeIdlte *string `json:"entityTypeIDLTE,omitempty"` + EntityTypeIDContains *string `json:"entityTypeIDContains,omitempty"` + EntityTypeIDHasPrefix *string `json:"entityTypeIDHasPrefix,omitempty"` + EntityTypeIDHasSuffix *string `json:"entityTypeIDHasSuffix,omitempty"` + EntityTypeIDIsNil *bool `json:"entityTypeIDIsNil,omitempty"` + EntityTypeIDNotNil *bool `json:"entityTypeIDNotNil,omitempty"` + EntityTypeIDEqualFold *string `json:"entityTypeIDEqualFold,omitempty"` + EntityTypeIDContainsFold *string `json:"entityTypeIDContainsFold,omitempty"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // contacts edge predicates + HasContacts *bool `json:"hasContacts,omitempty"` + HasContactsWith []*ContactWhereInput `json:"hasContactsWith,omitempty"` + // documents edge predicates + HasDocuments *bool `json:"hasDocuments,omitempty"` + HasDocumentsWith []*DocumentDataWhereInput `json:"hasDocumentsWith,omitempty"` + // notes edge predicates + HasNotes *bool `json:"hasNotes,omitempty"` + HasNotesWith []*NoteWhereInput `json:"hasNotesWith,omitempty"` + // files edge predicates + HasFiles *bool `json:"hasFiles,omitempty"` + HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` + // entity_type edge predicates + HasEntityType *bool `json:"hasEntityType,omitempty"` + HasEntityTypeWith []*EntityTypeWhereInput `json:"hasEntityTypeWith,omitempty"` +} + +type Event 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"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + EventID *string `json:"eventID,omitempty"` + CorrelationID *string `json:"correlationID,omitempty"` + EventType string `json:"eventType"` + Metadata map[string]interface{} `json:"metadata,omitempty"` + User []*User `json:"user,omitempty"` + Group []*Group `json:"group,omitempty"` + Integration []*Integration `json:"integration,omitempty"` + Organization []*Organization `json:"organization,omitempty"` + Invite []*Invite `json:"invite,omitempty"` + Feature []*Feature `json:"feature,omitempty"` + Entitlementplan []*EntitlementPlan `json:"entitlementplan,omitempty"` + Entitlementplanfeature []*EntitlementPlanFeature `json:"entitlementplanfeature,omitempty"` + PersonalAccessToken []*PersonalAccessToken `json:"personalAccessToken,omitempty"` + Oauth2token []*OhAuthTooToken `json:"oauth2token,omitempty"` + Hush []*Hush `json:"hush,omitempty"` + Orgmembership []*OrgMembership `json:"orgmembership,omitempty"` + Groupmembership []*GroupMembership `json:"groupmembership,omitempty"` + Entitlement []*Entitlement `json:"entitlement,omitempty"` + Webhook []*Webhook `json:"webhook,omitempty"` + Subscriber []*Subscriber `json:"subscriber,omitempty"` + File []*File `json:"file,omitempty"` +} + +func (Event) IsNode() {} + +// Return response for createBulkEvent mutation +type EventBulkCreatePayload struct { + // Created events + Events []*Event `json:"events,omitempty"` +} + +// A connection to a list of items. +type EventConnection struct { + // A list of edges. + Edges []*EventEdge `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 createEvent mutation +type EventCreatePayload struct { + // Created event + Event *Event `json:"event"` +} + +// Return response for deleteEvent mutation +type EventDeletePayload struct { + // Deleted event ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type EventEdge struct { + // The item at the end of the edge. + Node *Event `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type EventHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + EventID *string `json:"eventID,omitempty"` + CorrelationID *string `json:"correlationID,omitempty"` + EventType string `json:"eventType"` + Metadata map[string]interface{} `json:"metadata,omitempty"` +} + +func (EventHistory) IsNode() {} + +// A connection to a list of items. +type EventHistoryConnection struct { + // A list of edges. + Edges []*EventHistoryEdge `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"` +} + +// An edge in a connection. +type EventHistoryEdge struct { + // The item at the end of the edge. + Node *EventHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// EventHistoryWhereInput is used for filtering EventHistory objects. +// Input was generated by ent. +type EventHistoryWhereInput struct { + Not *EventHistoryWhereInput `json:"not,omitempty"` + And []*EventHistoryWhereInput `json:"and,omitempty"` + Or []*EventHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` @@ -7716,210 +6859,72 @@ type HushWhereInput struct { UpdatedByNotNil *bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` - // deleted_at field predicates - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` - // deleted_by field predicates - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNeq *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGt *string `json:"deletedByGT,omitempty"` - DeletedByGte *string `json:"deletedByGTE,omitempty"` - DeletedByLt *string `json:"deletedByLT,omitempty"` - DeletedByLte *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // name field predicates - Name *string `json:"name,omitempty"` - NameNeq *string `json:"nameNEQ,omitempty"` - NameIn []string `json:"nameIn,omitempty"` - NameNotIn []string `json:"nameNotIn,omitempty"` - NameGt *string `json:"nameGT,omitempty"` - NameGte *string `json:"nameGTE,omitempty"` - NameLt *string `json:"nameLT,omitempty"` - NameLte *string `json:"nameLTE,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"` - // kind field predicates - Kind *string `json:"kind,omitempty"` - KindNeq *string `json:"kindNEQ,omitempty"` - KindIn []string `json:"kindIn,omitempty"` - KindNotIn []string `json:"kindNotIn,omitempty"` - KindGt *string `json:"kindGT,omitempty"` - KindGte *string `json:"kindGTE,omitempty"` - KindLt *string `json:"kindLT,omitempty"` - KindLte *string `json:"kindLTE,omitempty"` - KindContains *string `json:"kindContains,omitempty"` - KindHasPrefix *string `json:"kindHasPrefix,omitempty"` - KindHasSuffix *string `json:"kindHasSuffix,omitempty"` - KindIsNil *bool `json:"kindIsNil,omitempty"` - KindNotNil *bool `json:"kindNotNil,omitempty"` - KindEqualFold *string `json:"kindEqualFold,omitempty"` - KindContainsFold *string `json:"kindContainsFold,omitempty"` - // secret_name field predicates - SecretName *string `json:"secretName,omitempty"` - SecretNameNeq *string `json:"secretNameNEQ,omitempty"` - SecretNameIn []string `json:"secretNameIn,omitempty"` - SecretNameNotIn []string `json:"secretNameNotIn,omitempty"` - SecretNameGt *string `json:"secretNameGT,omitempty"` - SecretNameGte *string `json:"secretNameGTE,omitempty"` - SecretNameLt *string `json:"secretNameLT,omitempty"` - SecretNameLte *string `json:"secretNameLTE,omitempty"` - SecretNameContains *string `json:"secretNameContains,omitempty"` - SecretNameHasPrefix *string `json:"secretNameHasPrefix,omitempty"` - SecretNameHasSuffix *string `json:"secretNameHasSuffix,omitempty"` - SecretNameIsNil *bool `json:"secretNameIsNil,omitempty"` - SecretNameNotNil *bool `json:"secretNameNotNil,omitempty"` - SecretNameEqualFold *string `json:"secretNameEqualFold,omitempty"` - SecretNameContainsFold *string `json:"secretNameContainsFold,omitempty"` - // integrations edge predicates - HasIntegrations *bool `json:"hasIntegrations,omitempty"` - HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` - // organization edge predicates - HasOrganization *bool `json:"hasOrganization,omitempty"` - HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` - // events edge predicates - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` -} - -type Integration 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"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the name of the integration - must be unique within the organization - Name string `json:"name"` - // a description of the integration - Description *string `json:"description,omitempty"` - Kind *string `json:"kind,omitempty"` - Owner *Organization `json:"owner,omitempty"` - // the secrets associated with the integration - Secrets []*Hush `json:"secrets,omitempty"` - // the oauth2 tokens associated with the integration - Oauth2tokens []*OhAuthTooToken `json:"oauth2tokens,omitempty"` - Events []*Event `json:"events,omitempty"` - Webhooks []*Webhook `json:"webhooks,omitempty"` -} - -func (Integration) IsNode() {} - -// Return response for createBulkIntegration mutation -type IntegrationBulkCreatePayload struct { - // Created integrations - Integrations []*Integration `json:"integrations,omitempty"` -} - -// A connection to a list of items. -type IntegrationConnection struct { - // A list of edges. - Edges []*IntegrationEdge `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 createIntegration mutation -type IntegrationCreatePayload struct { - // Created integration - Integration *Integration `json:"integration"` -} - -// Return response for deleteIntegration mutation -type IntegrationDeletePayload struct { - // Deleted integration ID - DeletedID string `json:"deletedID"` -} - -// An edge in a connection. -type IntegrationEdge struct { - // The item at the end of the edge. - Node *Integration `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` -} - -type IntegrationHistory struct { - ID string `json:"id"` - HistoryTime time.Time `json:"historyTime"` - Ref *string `json:"ref,omitempty"` - Operation history.OpType `json:"operation"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - CreatedBy *string `json:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the name of the integration - must be unique within the organization - Name string `json:"name"` - // a description of the integration - Description *string `json:"description,omitempty"` - Kind *string `json:"kind,omitempty"` + // event_id field predicates + EventID *string `json:"eventID,omitempty"` + EventIdneq *string `json:"eventIDNEQ,omitempty"` + EventIDIn []string `json:"eventIDIn,omitempty"` + EventIDNotIn []string `json:"eventIDNotIn,omitempty"` + EventIdgt *string `json:"eventIDGT,omitempty"` + EventIdgte *string `json:"eventIDGTE,omitempty"` + EventIdlt *string `json:"eventIDLT,omitempty"` + EventIdlte *string `json:"eventIDLTE,omitempty"` + EventIDContains *string `json:"eventIDContains,omitempty"` + EventIDHasPrefix *string `json:"eventIDHasPrefix,omitempty"` + EventIDHasSuffix *string `json:"eventIDHasSuffix,omitempty"` + EventIDIsNil *bool `json:"eventIDIsNil,omitempty"` + EventIDNotNil *bool `json:"eventIDNotNil,omitempty"` + EventIDEqualFold *string `json:"eventIDEqualFold,omitempty"` + EventIDContainsFold *string `json:"eventIDContainsFold,omitempty"` + // correlation_id field predicates + CorrelationID *string `json:"correlationID,omitempty"` + CorrelationIdneq *string `json:"correlationIDNEQ,omitempty"` + CorrelationIDIn []string `json:"correlationIDIn,omitempty"` + CorrelationIDNotIn []string `json:"correlationIDNotIn,omitempty"` + CorrelationIdgt *string `json:"correlationIDGT,omitempty"` + CorrelationIdgte *string `json:"correlationIDGTE,omitempty"` + CorrelationIdlt *string `json:"correlationIDLT,omitempty"` + CorrelationIdlte *string `json:"correlationIDLTE,omitempty"` + CorrelationIDContains *string `json:"correlationIDContains,omitempty"` + CorrelationIDHasPrefix *string `json:"correlationIDHasPrefix,omitempty"` + CorrelationIDHasSuffix *string `json:"correlationIDHasSuffix,omitempty"` + CorrelationIDIsNil *bool `json:"correlationIDIsNil,omitempty"` + CorrelationIDNotNil *bool `json:"correlationIDNotNil,omitempty"` + CorrelationIDEqualFold *string `json:"correlationIDEqualFold,omitempty"` + CorrelationIDContainsFold *string `json:"correlationIDContainsFold,omitempty"` + // event_type field predicates + EventType *string `json:"eventType,omitempty"` + EventTypeNeq *string `json:"eventTypeNEQ,omitempty"` + EventTypeIn []string `json:"eventTypeIn,omitempty"` + EventTypeNotIn []string `json:"eventTypeNotIn,omitempty"` + EventTypeGt *string `json:"eventTypeGT,omitempty"` + EventTypeGte *string `json:"eventTypeGTE,omitempty"` + EventTypeLt *string `json:"eventTypeLT,omitempty"` + EventTypeLte *string `json:"eventTypeLTE,omitempty"` + EventTypeContains *string `json:"eventTypeContains,omitempty"` + EventTypeHasPrefix *string `json:"eventTypeHasPrefix,omitempty"` + EventTypeHasSuffix *string `json:"eventTypeHasSuffix,omitempty"` + EventTypeEqualFold *string `json:"eventTypeEqualFold,omitempty"` + EventTypeContainsFold *string `json:"eventTypeContainsFold,omitempty"` } -func (IntegrationHistory) IsNode() {} - -// A connection to a list of items. -type IntegrationHistoryConnection struct { - // A list of edges. - Edges []*IntegrationHistoryEdge `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"` +type EventSearchResult struct { + Events []*Event `json:"events,omitempty"` } -// An edge in a connection. -type IntegrationHistoryEdge struct { - // The item at the end of the edge. - Node *IntegrationHistory `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` -} +func (EventSearchResult) IsSearchResult() {} -// Ordering options for IntegrationHistory connections -type IntegrationHistoryOrder struct { - // The ordering direction. - Direction OrderDirection `json:"direction"` - // The field by which to order IntegrationHistories. - Field IntegrationHistoryOrderField `json:"field"` +// Return response for updateEvent mutation +type EventUpdatePayload struct { + // Updated event + Event *Event `json:"event"` } -// IntegrationHistoryWhereInput is used for filtering IntegrationHistory objects. +// EventWhereInput is used for filtering Event objects. // Input was generated by ent. -type IntegrationHistoryWhereInput struct { - Not *IntegrationHistoryWhereInput `json:"not,omitempty"` - And []*IntegrationHistoryWhereInput `json:"and,omitempty"` - Or []*IntegrationHistoryWhereInput `json:"or,omitempty"` +type EventWhereInput struct { + Not *EventWhereInput `json:"not,omitempty"` + And []*EventWhereInput `json:"and,omitempty"` + Or []*EventWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -7931,36 +6936,6 @@ type IntegrationHistoryWhereInput struct { IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // history_time field predicates - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` - RefGt *string `json:"refGT,omitempty"` - RefGte *string `json:"refGTE,omitempty"` - RefLt *string `json:"refLT,omitempty"` - RefLte *string `json:"refLTE,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"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` @@ -8015,337 +6990,224 @@ type IntegrationHistoryWhereInput struct { UpdatedByNotNil *bool `json:"updatedByNotNil,omitempty"` UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` - // deleted_at field predicates - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` - // deleted_by field predicates - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNeq *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGt *string `json:"deletedByGT,omitempty"` - DeletedByGte *string `json:"deletedByGTE,omitempty"` - DeletedByLt *string `json:"deletedByLT,omitempty"` - DeletedByLte *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - NameGt *string `json:"nameGT,omitempty"` - NameGte *string `json:"nameGTE,omitempty"` - NameLt *string `json:"nameLT,omitempty"` - NameLte *string `json:"nameLTE,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"` - // kind field predicates - Kind *string `json:"kind,omitempty"` - KindNeq *string `json:"kindNEQ,omitempty"` - KindIn []string `json:"kindIn,omitempty"` - KindNotIn []string `json:"kindNotIn,omitempty"` - KindGt *string `json:"kindGT,omitempty"` - KindGte *string `json:"kindGTE,omitempty"` - KindLt *string `json:"kindLT,omitempty"` - KindLte *string `json:"kindLTE,omitempty"` - KindContains *string `json:"kindContains,omitempty"` - KindHasPrefix *string `json:"kindHasPrefix,omitempty"` - KindHasSuffix *string `json:"kindHasSuffix,omitempty"` - KindIsNil *bool `json:"kindIsNil,omitempty"` - KindNotNil *bool `json:"kindNotNil,omitempty"` - KindEqualFold *string `json:"kindEqualFold,omitempty"` - KindContainsFold *string `json:"kindContainsFold,omitempty"` + // event_id field predicates + EventID *string `json:"eventID,omitempty"` + EventIdneq *string `json:"eventIDNEQ,omitempty"` + EventIDIn []string `json:"eventIDIn,omitempty"` + EventIDNotIn []string `json:"eventIDNotIn,omitempty"` + EventIdgt *string `json:"eventIDGT,omitempty"` + EventIdgte *string `json:"eventIDGTE,omitempty"` + EventIdlt *string `json:"eventIDLT,omitempty"` + EventIdlte *string `json:"eventIDLTE,omitempty"` + EventIDContains *string `json:"eventIDContains,omitempty"` + EventIDHasPrefix *string `json:"eventIDHasPrefix,omitempty"` + EventIDHasSuffix *string `json:"eventIDHasSuffix,omitempty"` + EventIDIsNil *bool `json:"eventIDIsNil,omitempty"` + EventIDNotNil *bool `json:"eventIDNotNil,omitempty"` + EventIDEqualFold *string `json:"eventIDEqualFold,omitempty"` + EventIDContainsFold *string `json:"eventIDContainsFold,omitempty"` + // correlation_id field predicates + CorrelationID *string `json:"correlationID,omitempty"` + CorrelationIdneq *string `json:"correlationIDNEQ,omitempty"` + CorrelationIDIn []string `json:"correlationIDIn,omitempty"` + CorrelationIDNotIn []string `json:"correlationIDNotIn,omitempty"` + CorrelationIdgt *string `json:"correlationIDGT,omitempty"` + CorrelationIdgte *string `json:"correlationIDGTE,omitempty"` + CorrelationIdlt *string `json:"correlationIDLT,omitempty"` + CorrelationIdlte *string `json:"correlationIDLTE,omitempty"` + CorrelationIDContains *string `json:"correlationIDContains,omitempty"` + CorrelationIDHasPrefix *string `json:"correlationIDHasPrefix,omitempty"` + CorrelationIDHasSuffix *string `json:"correlationIDHasSuffix,omitempty"` + CorrelationIDIsNil *bool `json:"correlationIDIsNil,omitempty"` + CorrelationIDNotNil *bool `json:"correlationIDNotNil,omitempty"` + CorrelationIDEqualFold *string `json:"correlationIDEqualFold,omitempty"` + CorrelationIDContainsFold *string `json:"correlationIDContainsFold,omitempty"` + // event_type field predicates + EventType *string `json:"eventType,omitempty"` + EventTypeNeq *string `json:"eventTypeNEQ,omitempty"` + EventTypeIn []string `json:"eventTypeIn,omitempty"` + EventTypeNotIn []string `json:"eventTypeNotIn,omitempty"` + EventTypeGt *string `json:"eventTypeGT,omitempty"` + EventTypeGte *string `json:"eventTypeGTE,omitempty"` + EventTypeLt *string `json:"eventTypeLT,omitempty"` + EventTypeLte *string `json:"eventTypeLTE,omitempty"` + EventTypeContains *string `json:"eventTypeContains,omitempty"` + EventTypeHasPrefix *string `json:"eventTypeHasPrefix,omitempty"` + EventTypeHasSuffix *string `json:"eventTypeHasSuffix,omitempty"` + EventTypeEqualFold *string `json:"eventTypeEqualFold,omitempty"` + EventTypeContainsFold *string `json:"eventTypeContainsFold,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"` + // integration edge predicates + HasIntegration *bool `json:"hasIntegration,omitempty"` + HasIntegrationWith []*IntegrationWhereInput `json:"hasIntegrationWith,omitempty"` + // organization edge predicates + HasOrganization *bool `json:"hasOrganization,omitempty"` + HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` + // invite edge predicates + HasInvite *bool `json:"hasInvite,omitempty"` + HasInviteWith []*InviteWhereInput `json:"hasInviteWith,omitempty"` + // feature edge predicates + HasFeature *bool `json:"hasFeature,omitempty"` + HasFeatureWith []*FeatureWhereInput `json:"hasFeatureWith,omitempty"` + // entitlementplan edge predicates + HasEntitlementplan *bool `json:"hasEntitlementplan,omitempty"` + HasEntitlementplanWith []*EntitlementPlanWhereInput `json:"hasEntitlementplanWith,omitempty"` + // entitlementplanfeature edge predicates + HasEntitlementplanfeature *bool `json:"hasEntitlementplanfeature,omitempty"` + HasEntitlementplanfeatureWith []*EntitlementPlanFeatureWhereInput `json:"hasEntitlementplanfeatureWith,omitempty"` + // personal_access_token edge predicates + HasPersonalAccessToken *bool `json:"hasPersonalAccessToken,omitempty"` + HasPersonalAccessTokenWith []*PersonalAccessTokenWhereInput `json:"hasPersonalAccessTokenWith,omitempty"` + // oauth2token edge predicates + HasOauth2token *bool `json:"hasOauth2token,omitempty"` + HasOauth2tokenWith []*OhAuthTooTokenWhereInput `json:"hasOauth2tokenWith,omitempty"` + // hush edge predicates + HasHush *bool `json:"hasHush,omitempty"` + HasHushWith []*HushWhereInput `json:"hasHushWith,omitempty"` + // orgmembership edge predicates + HasOrgmembership *bool `json:"hasOrgmembership,omitempty"` + HasOrgmembershipWith []*OrgMembershipWhereInput `json:"hasOrgmembershipWith,omitempty"` + // groupmembership edge predicates + HasGroupmembership *bool `json:"hasGroupmembership,omitempty"` + HasGroupmembershipWith []*GroupMembershipWhereInput `json:"hasGroupmembershipWith,omitempty"` + // entitlement edge predicates + HasEntitlement *bool `json:"hasEntitlement,omitempty"` + HasEntitlementWith []*EntitlementWhereInput `json:"hasEntitlementWith,omitempty"` + // webhook edge predicates + HasWebhook *bool `json:"hasWebhook,omitempty"` + HasWebhookWith []*WebhookWhereInput `json:"hasWebhookWith,omitempty"` + // subscriber edge predicates + HasSubscriber *bool `json:"hasSubscriber,omitempty"` + HasSubscriberWith []*SubscriberWhereInput `json:"hasSubscriberWith,omitempty"` + // file edge predicates + HasFile *bool `json:"hasFile,omitempty"` + HasFileWith []*FileWhereInput `json:"hasFileWith,omitempty"` } -// Ordering options for Integration connections -type IntegrationOrder struct { - // The ordering direction. - Direction OrderDirection `json:"direction"` - // The field by which to order Integrations. - Field IntegrationOrderField `json:"field"` +type Feature 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the unique name of the feature + Name string `json:"name"` + // the displayed 'friendly' name of the feature + DisplayName *string `json:"displayName,omitempty"` + // enabled features are available for use + Enabled bool `json:"enabled"` + // a description of the feature + Description *string `json:"description,omitempty"` + // metadata for the feature + Metadata map[string]interface{} `json:"metadata,omitempty"` + Owner *Organization `json:"owner,omitempty"` + Plans []*EntitlementPlan `json:"plans,omitempty"` + Events []*Event `json:"events,omitempty"` + Features []*EntitlementPlanFeature `json:"features,omitempty"` } -type IntegrationSearchResult struct { - Integrations []*Integration `json:"integrations,omitempty"` +func (Feature) IsNode() {} + +// Return response for createBulkFeature mutation +type FeatureBulkCreatePayload struct { + // Created features + Features []*Feature `json:"features,omitempty"` } -func (IntegrationSearchResult) IsSearchResult() {} +// A connection to a list of items. +type FeatureConnection struct { + // A list of edges. + Edges []*FeatureEdge `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 updateIntegration mutation -type IntegrationUpdatePayload struct { - // Updated integration - Integration *Integration `json:"integration"` +// Return response for createFeature mutation +type FeatureCreatePayload struct { + // Created feature + Feature *Feature `json:"feature"` } -// IntegrationWhereInput is used for filtering Integration objects. -// Input was generated by ent. -type IntegrationWhereInput struct { - Not *IntegrationWhereInput `json:"not,omitempty"` - And []*IntegrationWhereInput `json:"and,omitempty"` - Or []*IntegrationWhereInput `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"` - IDGt *string `json:"idGT,omitempty"` - IDGte *string `json:"idGTE,omitempty"` - IDLt *string `json:"idLT,omitempty"` - IDLte *string `json:"idLTE,omitempty"` - IDEqualFold *string `json:"idEqualFold,omitempty"` - IDContainsFold *string `json:"idContainsFold,omitempty"` - // created_at field predicates - CreatedAt *time.Time `json:"createdAt,omitempty"` - CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` - CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` - CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` - UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` - UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` - UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` - CreatedByGt *string `json:"createdByGT,omitempty"` - CreatedByGte *string `json:"createdByGTE,omitempty"` - CreatedByLt *string `json:"createdByLT,omitempty"` - CreatedByLte *string `json:"createdByLTE,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"` - UpdatedByGt *string `json:"updatedByGT,omitempty"` - UpdatedByGte *string `json:"updatedByGTE,omitempty"` - UpdatedByLt *string `json:"updatedByLT,omitempty"` - UpdatedByLte *string `json:"updatedByLTE,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"` - // deleted_at field predicates - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` - // deleted_by field predicates - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNeq *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGt *string `json:"deletedByGT,omitempty"` - DeletedByGte *string `json:"deletedByGTE,omitempty"` - DeletedByLt *string `json:"deletedByLT,omitempty"` - DeletedByLte *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - NameGt *string `json:"nameGT,omitempty"` - NameGte *string `json:"nameGTE,omitempty"` - NameLt *string `json:"nameLT,omitempty"` - NameLte *string `json:"nameLTE,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"` - // kind field predicates - Kind *string `json:"kind,omitempty"` - KindNeq *string `json:"kindNEQ,omitempty"` - KindIn []string `json:"kindIn,omitempty"` - KindNotIn []string `json:"kindNotIn,omitempty"` - KindGt *string `json:"kindGT,omitempty"` - KindGte *string `json:"kindGTE,omitempty"` - KindLt *string `json:"kindLT,omitempty"` - KindLte *string `json:"kindLTE,omitempty"` - KindContains *string `json:"kindContains,omitempty"` - KindHasPrefix *string `json:"kindHasPrefix,omitempty"` - KindHasSuffix *string `json:"kindHasSuffix,omitempty"` - KindIsNil *bool `json:"kindIsNil,omitempty"` - KindNotNil *bool `json:"kindNotNil,omitempty"` - KindEqualFold *string `json:"kindEqualFold,omitempty"` - KindContainsFold *string `json:"kindContainsFold,omitempty"` - // owner edge predicates - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // secrets edge predicates - HasSecrets *bool `json:"hasSecrets,omitempty"` - HasSecretsWith []*HushWhereInput `json:"hasSecretsWith,omitempty"` - // oauth2tokens edge predicates - HasOauth2tokens *bool `json:"hasOauth2tokens,omitempty"` - HasOauth2tokensWith []*OhAuthTooTokenWhereInput `json:"hasOauth2tokensWith,omitempty"` - // events edge predicates - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` - // webhooks edge predicates - HasWebhooks *bool `json:"hasWebhooks,omitempty"` - HasWebhooksWith []*WebhookWhereInput `json:"hasWebhooksWith,omitempty"` +// Return response for deleteFeature mutation +type FeatureDeletePayload struct { + // Deleted feature ID + DeletedID string `json:"deletedID"` } -type Invite 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"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` +// An edge in a connection. +type FeatureEdge struct { + // The item at the end of the edge. + Node *Feature `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type FeatureHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` // the organization id that owns the object OwnerID *string `json:"ownerID,omitempty"` - // the expiration date of the invitation token which defaults to 14 days in the future from creation - Expires *time.Time `json:"expires,omitempty"` - // the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization - Recipient string `json:"recipient"` - // the status of the invitation - Status enums.InviteStatus `json:"status"` - Role enums.Role `json:"role"` - // the number of attempts made to perform email send of the invitation, maximum of 5 - SendAttempts int64 `json:"sendAttempts"` - // the user who initiated the invitation - RequestorID *string `json:"requestorID,omitempty"` - Owner *Organization `json:"owner,omitempty"` - Events []*Event `json:"events,omitempty"` + // the unique name of the feature + Name string `json:"name"` + // the displayed 'friendly' name of the feature + DisplayName *string `json:"displayName,omitempty"` + // enabled features are available for use + Enabled bool `json:"enabled"` + // a description of the feature + Description *string `json:"description,omitempty"` + // metadata for the feature + Metadata map[string]interface{} `json:"metadata,omitempty"` } -func (Invite) IsNode() {} - -// Return response for createBulkInvite mutation -type InviteBulkCreatePayload struct { - // Created invites - Invites []*Invite `json:"invites,omitempty"` -} +func (FeatureHistory) IsNode() {} // A connection to a list of items. -type InviteConnection struct { +type FeatureHistoryConnection struct { // A list of edges. - Edges []*InviteEdge `json:"edges,omitempty"` + Edges []*FeatureHistoryEdge `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 createInvite mutation -type InviteCreatePayload struct { - // Created invite - Invite *Invite `json:"invite"` -} - -// Return response for deleteInvite mutation -type InviteDeletePayload struct { - // Deleted invite ID - DeletedID string `json:"deletedID"` -} - // An edge in a connection. -type InviteEdge struct { +type FeatureHistoryEdge struct { // The item at the end of the edge. - Node *Invite `json:"node,omitempty"` + Node *FeatureHistory `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -// Return response for updateInvite mutation -type InviteUpdatePayload struct { - // Updated invite - Invite *Invite `json:"invite"` -} - -// InviteWhereInput is used for filtering Invite objects. +// FeatureHistoryWhereInput is used for filtering FeatureHistory objects. // Input was generated by ent. -type InviteWhereInput struct { - Not *InviteWhereInput `json:"not,omitempty"` - And []*InviteWhereInput `json:"and,omitempty"` - Or []*InviteWhereInput `json:"or,omitempty"` +type FeatureHistoryWhereInput struct { + Not *FeatureHistoryWhereInput `json:"not,omitempty"` + And []*FeatureHistoryWhereInput `json:"and,omitempty"` + Or []*FeatureHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -8357,6 +7219,36 @@ type InviteWhereInput struct { IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` @@ -8454,160 +7346,75 @@ type InviteWhereInput struct { OwnerIDNotNil *bool `json:"ownerIDNotNil,omitempty"` OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` - // expires field predicates - Expires *time.Time `json:"expires,omitempty"` - ExpiresNeq *time.Time `json:"expiresNEQ,omitempty"` - ExpiresIn []*time.Time `json:"expiresIn,omitempty"` - ExpiresNotIn []*time.Time `json:"expiresNotIn,omitempty"` - ExpiresGt *time.Time `json:"expiresGT,omitempty"` - ExpiresGte *time.Time `json:"expiresGTE,omitempty"` - ExpiresLt *time.Time `json:"expiresLT,omitempty"` - ExpiresLte *time.Time `json:"expiresLTE,omitempty"` - ExpiresIsNil *bool `json:"expiresIsNil,omitempty"` - ExpiresNotNil *bool `json:"expiresNotNil,omitempty"` - // recipient field predicates - Recipient *string `json:"recipient,omitempty"` - RecipientNeq *string `json:"recipientNEQ,omitempty"` - RecipientIn []string `json:"recipientIn,omitempty"` - RecipientNotIn []string `json:"recipientNotIn,omitempty"` - RecipientGt *string `json:"recipientGT,omitempty"` - RecipientGte *string `json:"recipientGTE,omitempty"` - RecipientLt *string `json:"recipientLT,omitempty"` - RecipientLte *string `json:"recipientLTE,omitempty"` - RecipientContains *string `json:"recipientContains,omitempty"` - RecipientHasPrefix *string `json:"recipientHasPrefix,omitempty"` - RecipientHasSuffix *string `json:"recipientHasSuffix,omitempty"` - RecipientEqualFold *string `json:"recipientEqualFold,omitempty"` - RecipientContainsFold *string `json:"recipientContainsFold,omitempty"` - // status field predicates - Status *enums.InviteStatus `json:"status,omitempty"` - StatusNeq *enums.InviteStatus `json:"statusNEQ,omitempty"` - StatusIn []enums.InviteStatus `json:"statusIn,omitempty"` - StatusNotIn []enums.InviteStatus `json:"statusNotIn,omitempty"` - // role field predicates - Role *enums.Role `json:"role,omitempty"` - RoleNeq *enums.Role `json:"roleNEQ,omitempty"` - RoleIn []enums.Role `json:"roleIn,omitempty"` - RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` - // send_attempts field predicates - SendAttempts *int64 `json:"sendAttempts,omitempty"` - SendAttemptsNeq *int64 `json:"sendAttemptsNEQ,omitempty"` - SendAttemptsIn []int64 `json:"sendAttemptsIn,omitempty"` - SendAttemptsNotIn []int64 `json:"sendAttemptsNotIn,omitempty"` - SendAttemptsGt *int64 `json:"sendAttemptsGT,omitempty"` - SendAttemptsGte *int64 `json:"sendAttemptsGTE,omitempty"` - SendAttemptsLt *int64 `json:"sendAttemptsLT,omitempty"` - SendAttemptsLte *int64 `json:"sendAttemptsLTE,omitempty"` - // requestor_id field predicates - RequestorID *string `json:"requestorID,omitempty"` - RequestorIdneq *string `json:"requestorIDNEQ,omitempty"` - RequestorIDIn []string `json:"requestorIDIn,omitempty"` - RequestorIDNotIn []string `json:"requestorIDNotIn,omitempty"` - RequestorIdgt *string `json:"requestorIDGT,omitempty"` - RequestorIdgte *string `json:"requestorIDGTE,omitempty"` - RequestorIdlt *string `json:"requestorIDLT,omitempty"` - RequestorIdlte *string `json:"requestorIDLTE,omitempty"` - RequestorIDContains *string `json:"requestorIDContains,omitempty"` - RequestorIDHasPrefix *string `json:"requestorIDHasPrefix,omitempty"` - RequestorIDHasSuffix *string `json:"requestorIDHasSuffix,omitempty"` - RequestorIDIsNil *bool `json:"requestorIDIsNil,omitempty"` - RequestorIDNotNil *bool `json:"requestorIDNotNil,omitempty"` - RequestorIDEqualFold *string `json:"requestorIDEqualFold,omitempty"` - RequestorIDContainsFold *string `json:"requestorIDContainsFold,omitempty"` - // owner edge predicates - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // events edge predicates - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` -} - -type Mutation struct { -} - -type Note 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"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the text of the note - Text string `json:"text"` - Owner *Organization `json:"owner,omitempty"` - Entity *Entity `json:"entity,omitempty"` -} - -func (Note) IsNode() {} - -// A connection to a list of items. -type NoteConnection struct { - // A list of edges. - Edges []*NoteEdge `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"` -} - -// An edge in a connection. -type NoteEdge struct { - // The item at the end of the edge. - Node *Note `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + // display_name field predicates + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGt *string `json:"displayNameGT,omitempty"` + DisplayNameGte *string `json:"displayNameGTE,omitempty"` + DisplayNameLt *string `json:"displayNameLT,omitempty"` + DisplayNameLte *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameIsNil *bool `json:"displayNameIsNil,omitempty"` + DisplayNameNotNil *bool `json:"displayNameNotNil,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // enabled field predicates + Enabled *bool `json:"enabled,omitempty"` + EnabledNeq *bool `json:"enabledNEQ,omitempty"` + // description field predicates + Description *string `json:"description,omitempty"` + DescriptionNeq *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` } -type NoteHistory struct { - ID string `json:"id"` - HistoryTime time.Time `json:"historyTime"` - Ref *string `json:"ref,omitempty"` - Operation history.OpType `json:"operation"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - CreatedBy *string `json:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the text of the note - Text string `json:"text"` +type FeatureSearchResult struct { + Features []*Feature `json:"features,omitempty"` } -func (NoteHistory) IsNode() {} - -// A connection to a list of items. -type NoteHistoryConnection struct { - // A list of edges. - Edges []*NoteHistoryEdge `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"` -} +func (FeatureSearchResult) IsSearchResult() {} -// An edge in a connection. -type NoteHistoryEdge struct { - // The item at the end of the edge. - Node *NoteHistory `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` +// Return response for updateFeature mutation +type FeatureUpdatePayload struct { + // Updated feature + Feature *Feature `json:"feature"` } -// NoteHistoryWhereInput is used for filtering NoteHistory objects. +// FeatureWhereInput is used for filtering Feature objects. // Input was generated by ent. -type NoteHistoryWhereInput struct { - Not *NoteHistoryWhereInput `json:"not,omitempty"` - And []*NoteHistoryWhereInput `json:"and,omitempty"` - Or []*NoteHistoryWhereInput `json:"or,omitempty"` +type FeatureWhereInput struct { + Not *FeatureWhereInput `json:"not,omitempty"` + And []*FeatureWhereInput `json:"and,omitempty"` + Or []*FeatureWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -8619,36 +7426,6 @@ type NoteHistoryWhereInput struct { IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // history_time field predicates - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` - RefGt *string `json:"refGT,omitempty"` - RefGte *string `json:"refGTE,omitempty"` - RefLt *string `json:"refLT,omitempty"` - RefLte *string `json:"refLTE,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"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` @@ -8746,31 +7523,211 @@ type NoteHistoryWhereInput struct { OwnerIDNotNil *bool `json:"ownerIDNotNil,omitempty"` OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` - // text field predicates - Text *string `json:"text,omitempty"` - TextNeq *string `json:"textNEQ,omitempty"` - TextIn []string `json:"textIn,omitempty"` - TextNotIn []string `json:"textNotIn,omitempty"` - TextGt *string `json:"textGT,omitempty"` - TextGte *string `json:"textGTE,omitempty"` - TextLt *string `json:"textLT,omitempty"` - TextLte *string `json:"textLTE,omitempty"` - TextContains *string `json:"textContains,omitempty"` - TextHasPrefix *string `json:"textHasPrefix,omitempty"` - TextHasSuffix *string `json:"textHasSuffix,omitempty"` - TextEqualFold *string `json:"textEqualFold,omitempty"` - TextContainsFold *string `json:"textContainsFold,omitempty"` -} - -// NoteWhereInput is used for filtering Note objects. -// Input was generated by ent. -type NoteWhereInput struct { - Not *NoteWhereInput `json:"not,omitempty"` - And []*NoteWhereInput `json:"and,omitempty"` - Or []*NoteWhereInput `json:"or,omitempty"` - // id field predicates - ID *string `json:"id,omitempty"` - IDNeq *string `json:"idNEQ,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + // display_name field predicates + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGt *string `json:"displayNameGT,omitempty"` + DisplayNameGte *string `json:"displayNameGTE,omitempty"` + DisplayNameLt *string `json:"displayNameLT,omitempty"` + DisplayNameLte *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameIsNil *bool `json:"displayNameIsNil,omitempty"` + DisplayNameNotNil *bool `json:"displayNameNotNil,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // enabled field predicates + Enabled *bool `json:"enabled,omitempty"` + EnabledNeq *bool `json:"enabledNEQ,omitempty"` + // description field predicates + Description *string `json:"description,omitempty"` + DescriptionNeq *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // plans edge predicates + HasPlans *bool `json:"hasPlans,omitempty"` + HasPlansWith []*EntitlementPlanWhereInput `json:"hasPlansWith,omitempty"` + // events edge predicates + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // features edge predicates + HasFeatures *bool `json:"hasFeatures,omitempty"` + HasFeaturesWith []*EntitlementPlanFeatureWhereInput `json:"hasFeaturesWith,omitempty"` +} + +type File 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the file provided in the payload key without the extension + ProvidedFileName string `json:"providedFileName"` + // the extension of the file provided + ProvidedFileExtension string `json:"providedFileExtension"` + // the computed size of the file in the original http request + ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` + PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` + // the mime type detected by the system + DetectedMimeType *string `json:"detectedMimeType,omitempty"` + // the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + Md5Hash *string `json:"md5Hash,omitempty"` + // the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + DetectedContentType string `json:"detectedContentType"` + // the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + StoreKey *string `json:"storeKey,omitempty"` + // the category type of the file, if any (e.g. evidence, invoice, etc.) + CategoryType *string `json:"categoryType,omitempty"` + // the full URI of the file + URI *string `json:"uri,omitempty"` + // the storage scheme of the file, e.g. file://, s3://, etc. + StorageScheme *string `json:"storageScheme,omitempty"` + // the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + StorageVolume *string `json:"storageVolume,omitempty"` + // the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + StoragePath *string `json:"storagePath,omitempty"` + User []*User `json:"user,omitempty"` + Organization []*Organization `json:"organization,omitempty"` + Group []*Group `json:"group,omitempty"` + Contact []*Contact `json:"contact,omitempty"` + Entity []*Entity `json:"entity,omitempty"` + Usersetting []*UserSetting `json:"usersetting,omitempty"` + Organizationsetting []*OrganizationSetting `json:"organizationsetting,omitempty"` + Template []*Template `json:"template,omitempty"` + Documentdata []*DocumentData `json:"documentdata,omitempty"` + Events []*Event `json:"events,omitempty"` +} + +func (File) IsNode() {} + +// A connection to a list of items. +type FileConnection struct { + // A list of edges. + Edges []*FileEdge `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 deleteFile mutation +type FileDeletePayload struct { + // Deleted file ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type FileEdge struct { + // The item at the end of the edge. + Node *File `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type FileHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the file provided in the payload key without the extension + ProvidedFileName string `json:"providedFileName"` + // the extension of the file provided + ProvidedFileExtension string `json:"providedFileExtension"` + // the computed size of the file in the original http request + ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` + PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` + // the mime type detected by the system + DetectedMimeType *string `json:"detectedMimeType,omitempty"` + // the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + Md5Hash *string `json:"md5Hash,omitempty"` + // the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + DetectedContentType string `json:"detectedContentType"` + // the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + StoreKey *string `json:"storeKey,omitempty"` + // the category type of the file, if any (e.g. evidence, invoice, etc.) + CategoryType *string `json:"categoryType,omitempty"` + // the full URI of the file + URI *string `json:"uri,omitempty"` + // the storage scheme of the file, e.g. file://, s3://, etc. + StorageScheme *string `json:"storageScheme,omitempty"` + // the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + StorageVolume *string `json:"storageVolume,omitempty"` + // the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + StoragePath *string `json:"storagePath,omitempty"` +} + +func (FileHistory) IsNode() {} + +// A connection to a list of items. +type FileHistoryConnection struct { + // A list of edges. + Edges []*FileHistoryEdge `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"` +} + +// An edge in a connection. +type FileHistoryEdge struct { + // The item at the end of the edge. + Node *FileHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// FileHistoryWhereInput is used for filtering FileHistory objects. +// Input was generated by ent. +type FileHistoryWhereInput struct { + Not *FileHistoryWhereInput `json:"not,omitempty"` + And []*FileHistoryWhereInput `json:"and,omitempty"` + Or []*FileHistoryWhereInput `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"` IDGt *string `json:"idGT,omitempty"` @@ -8779,6 +7736,36 @@ type NoteWhereInput struct { IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` @@ -8860,176 +7847,212 @@ type NoteWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - // text field predicates - Text *string `json:"text,omitempty"` - TextNeq *string `json:"textNEQ,omitempty"` - TextIn []string `json:"textIn,omitempty"` - TextNotIn []string `json:"textNotIn,omitempty"` - TextGt *string `json:"textGT,omitempty"` - TextGte *string `json:"textGTE,omitempty"` - TextLt *string `json:"textLT,omitempty"` - TextLte *string `json:"textLTE,omitempty"` - TextContains *string `json:"textContains,omitempty"` - TextHasPrefix *string `json:"textHasPrefix,omitempty"` - TextHasSuffix *string `json:"textHasSuffix,omitempty"` - TextEqualFold *string `json:"textEqualFold,omitempty"` - TextContainsFold *string `json:"textContainsFold,omitempty"` - // owner edge predicates - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` - // entity edge predicates - HasEntity *bool `json:"hasEntity,omitempty"` - HasEntityWith []*EntityWhereInput `json:"hasEntityWith,omitempty"` + // provided_file_name field predicates + ProvidedFileName *string `json:"providedFileName,omitempty"` + ProvidedFileNameNeq *string `json:"providedFileNameNEQ,omitempty"` + ProvidedFileNameIn []string `json:"providedFileNameIn,omitempty"` + ProvidedFileNameNotIn []string `json:"providedFileNameNotIn,omitempty"` + ProvidedFileNameGt *string `json:"providedFileNameGT,omitempty"` + ProvidedFileNameGte *string `json:"providedFileNameGTE,omitempty"` + ProvidedFileNameLt *string `json:"providedFileNameLT,omitempty"` + ProvidedFileNameLte *string `json:"providedFileNameLTE,omitempty"` + ProvidedFileNameContains *string `json:"providedFileNameContains,omitempty"` + ProvidedFileNameHasPrefix *string `json:"providedFileNameHasPrefix,omitempty"` + ProvidedFileNameHasSuffix *string `json:"providedFileNameHasSuffix,omitempty"` + ProvidedFileNameEqualFold *string `json:"providedFileNameEqualFold,omitempty"` + ProvidedFileNameContainsFold *string `json:"providedFileNameContainsFold,omitempty"` + // provided_file_extension field predicates + ProvidedFileExtension *string `json:"providedFileExtension,omitempty"` + ProvidedFileExtensionNeq *string `json:"providedFileExtensionNEQ,omitempty"` + ProvidedFileExtensionIn []string `json:"providedFileExtensionIn,omitempty"` + ProvidedFileExtensionNotIn []string `json:"providedFileExtensionNotIn,omitempty"` + ProvidedFileExtensionGt *string `json:"providedFileExtensionGT,omitempty"` + ProvidedFileExtensionGte *string `json:"providedFileExtensionGTE,omitempty"` + ProvidedFileExtensionLt *string `json:"providedFileExtensionLT,omitempty"` + ProvidedFileExtensionLte *string `json:"providedFileExtensionLTE,omitempty"` + ProvidedFileExtensionContains *string `json:"providedFileExtensionContains,omitempty"` + ProvidedFileExtensionHasPrefix *string `json:"providedFileExtensionHasPrefix,omitempty"` + ProvidedFileExtensionHasSuffix *string `json:"providedFileExtensionHasSuffix,omitempty"` + ProvidedFileExtensionEqualFold *string `json:"providedFileExtensionEqualFold,omitempty"` + ProvidedFileExtensionContainsFold *string `json:"providedFileExtensionContainsFold,omitempty"` + // provided_file_size field predicates + ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` + ProvidedFileSizeNeq *int64 `json:"providedFileSizeNEQ,omitempty"` + ProvidedFileSizeIn []int64 `json:"providedFileSizeIn,omitempty"` + ProvidedFileSizeNotIn []int64 `json:"providedFileSizeNotIn,omitempty"` + ProvidedFileSizeGt *int64 `json:"providedFileSizeGT,omitempty"` + ProvidedFileSizeGte *int64 `json:"providedFileSizeGTE,omitempty"` + ProvidedFileSizeLt *int64 `json:"providedFileSizeLT,omitempty"` + ProvidedFileSizeLte *int64 `json:"providedFileSizeLTE,omitempty"` + ProvidedFileSizeIsNil *bool `json:"providedFileSizeIsNil,omitempty"` + ProvidedFileSizeNotNil *bool `json:"providedFileSizeNotNil,omitempty"` + // persisted_file_size field predicates + PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` + PersistedFileSizeNeq *int64 `json:"persistedFileSizeNEQ,omitempty"` + PersistedFileSizeIn []int64 `json:"persistedFileSizeIn,omitempty"` + PersistedFileSizeNotIn []int64 `json:"persistedFileSizeNotIn,omitempty"` + PersistedFileSizeGt *int64 `json:"persistedFileSizeGT,omitempty"` + PersistedFileSizeGte *int64 `json:"persistedFileSizeGTE,omitempty"` + PersistedFileSizeLt *int64 `json:"persistedFileSizeLT,omitempty"` + PersistedFileSizeLte *int64 `json:"persistedFileSizeLTE,omitempty"` + PersistedFileSizeIsNil *bool `json:"persistedFileSizeIsNil,omitempty"` + PersistedFileSizeNotNil *bool `json:"persistedFileSizeNotNil,omitempty"` + // detected_mime_type field predicates + DetectedMimeType *string `json:"detectedMimeType,omitempty"` + DetectedMimeTypeNeq *string `json:"detectedMimeTypeNEQ,omitempty"` + DetectedMimeTypeIn []string `json:"detectedMimeTypeIn,omitempty"` + DetectedMimeTypeNotIn []string `json:"detectedMimeTypeNotIn,omitempty"` + DetectedMimeTypeGt *string `json:"detectedMimeTypeGT,omitempty"` + DetectedMimeTypeGte *string `json:"detectedMimeTypeGTE,omitempty"` + DetectedMimeTypeLt *string `json:"detectedMimeTypeLT,omitempty"` + DetectedMimeTypeLte *string `json:"detectedMimeTypeLTE,omitempty"` + DetectedMimeTypeContains *string `json:"detectedMimeTypeContains,omitempty"` + DetectedMimeTypeHasPrefix *string `json:"detectedMimeTypeHasPrefix,omitempty"` + DetectedMimeTypeHasSuffix *string `json:"detectedMimeTypeHasSuffix,omitempty"` + DetectedMimeTypeIsNil *bool `json:"detectedMimeTypeIsNil,omitempty"` + DetectedMimeTypeNotNil *bool `json:"detectedMimeTypeNotNil,omitempty"` + DetectedMimeTypeEqualFold *string `json:"detectedMimeTypeEqualFold,omitempty"` + DetectedMimeTypeContainsFold *string `json:"detectedMimeTypeContainsFold,omitempty"` + // md5_hash field predicates + Md5Hash *string `json:"md5Hash,omitempty"` + Md5HashNeq *string `json:"md5HashNEQ,omitempty"` + Md5HashIn []string `json:"md5HashIn,omitempty"` + Md5HashNotIn []string `json:"md5HashNotIn,omitempty"` + Md5HashGt *string `json:"md5HashGT,omitempty"` + Md5HashGte *string `json:"md5HashGTE,omitempty"` + Md5HashLt *string `json:"md5HashLT,omitempty"` + Md5HashLte *string `json:"md5HashLTE,omitempty"` + Md5HashContains *string `json:"md5HashContains,omitempty"` + Md5HashHasPrefix *string `json:"md5HashHasPrefix,omitempty"` + Md5HashHasSuffix *string `json:"md5HashHasSuffix,omitempty"` + Md5HashIsNil *bool `json:"md5HashIsNil,omitempty"` + Md5HashNotNil *bool `json:"md5HashNotNil,omitempty"` + Md5HashEqualFold *string `json:"md5HashEqualFold,omitempty"` + Md5HashContainsFold *string `json:"md5HashContainsFold,omitempty"` + // detected_content_type field predicates + DetectedContentType *string `json:"detectedContentType,omitempty"` + DetectedContentTypeNeq *string `json:"detectedContentTypeNEQ,omitempty"` + DetectedContentTypeIn []string `json:"detectedContentTypeIn,omitempty"` + DetectedContentTypeNotIn []string `json:"detectedContentTypeNotIn,omitempty"` + DetectedContentTypeGt *string `json:"detectedContentTypeGT,omitempty"` + DetectedContentTypeGte *string `json:"detectedContentTypeGTE,omitempty"` + DetectedContentTypeLt *string `json:"detectedContentTypeLT,omitempty"` + DetectedContentTypeLte *string `json:"detectedContentTypeLTE,omitempty"` + DetectedContentTypeContains *string `json:"detectedContentTypeContains,omitempty"` + DetectedContentTypeHasPrefix *string `json:"detectedContentTypeHasPrefix,omitempty"` + DetectedContentTypeHasSuffix *string `json:"detectedContentTypeHasSuffix,omitempty"` + DetectedContentTypeEqualFold *string `json:"detectedContentTypeEqualFold,omitempty"` + DetectedContentTypeContainsFold *string `json:"detectedContentTypeContainsFold,omitempty"` + // store_key field predicates + StoreKey *string `json:"storeKey,omitempty"` + StoreKeyNeq *string `json:"storeKeyNEQ,omitempty"` + StoreKeyIn []string `json:"storeKeyIn,omitempty"` + StoreKeyNotIn []string `json:"storeKeyNotIn,omitempty"` + StoreKeyGt *string `json:"storeKeyGT,omitempty"` + StoreKeyGte *string `json:"storeKeyGTE,omitempty"` + StoreKeyLt *string `json:"storeKeyLT,omitempty"` + StoreKeyLte *string `json:"storeKeyLTE,omitempty"` + StoreKeyContains *string `json:"storeKeyContains,omitempty"` + StoreKeyHasPrefix *string `json:"storeKeyHasPrefix,omitempty"` + StoreKeyHasSuffix *string `json:"storeKeyHasSuffix,omitempty"` + StoreKeyIsNil *bool `json:"storeKeyIsNil,omitempty"` + StoreKeyNotNil *bool `json:"storeKeyNotNil,omitempty"` + StoreKeyEqualFold *string `json:"storeKeyEqualFold,omitempty"` + StoreKeyContainsFold *string `json:"storeKeyContainsFold,omitempty"` + // category_type field predicates + CategoryType *string `json:"categoryType,omitempty"` + CategoryTypeNeq *string `json:"categoryTypeNEQ,omitempty"` + CategoryTypeIn []string `json:"categoryTypeIn,omitempty"` + CategoryTypeNotIn []string `json:"categoryTypeNotIn,omitempty"` + CategoryTypeGt *string `json:"categoryTypeGT,omitempty"` + CategoryTypeGte *string `json:"categoryTypeGTE,omitempty"` + CategoryTypeLt *string `json:"categoryTypeLT,omitempty"` + CategoryTypeLte *string `json:"categoryTypeLTE,omitempty"` + CategoryTypeContains *string `json:"categoryTypeContains,omitempty"` + CategoryTypeHasPrefix *string `json:"categoryTypeHasPrefix,omitempty"` + CategoryTypeHasSuffix *string `json:"categoryTypeHasSuffix,omitempty"` + CategoryTypeIsNil *bool `json:"categoryTypeIsNil,omitempty"` + CategoryTypeNotNil *bool `json:"categoryTypeNotNil,omitempty"` + CategoryTypeEqualFold *string `json:"categoryTypeEqualFold,omitempty"` + CategoryTypeContainsFold *string `json:"categoryTypeContainsFold,omitempty"` + // uri field predicates + URI *string `json:"uri,omitempty"` + URINeq *string `json:"uriNEQ,omitempty"` + URIIn []string `json:"uriIn,omitempty"` + URINotIn []string `json:"uriNotIn,omitempty"` + URIGt *string `json:"uriGT,omitempty"` + URIGte *string `json:"uriGTE,omitempty"` + URILt *string `json:"uriLT,omitempty"` + URILte *string `json:"uriLTE,omitempty"` + URIContains *string `json:"uriContains,omitempty"` + URIHasPrefix *string `json:"uriHasPrefix,omitempty"` + URIHasSuffix *string `json:"uriHasSuffix,omitempty"` + URIIsNil *bool `json:"uriIsNil,omitempty"` + URINotNil *bool `json:"uriNotNil,omitempty"` + URIEqualFold *string `json:"uriEqualFold,omitempty"` + URIContainsFold *string `json:"uriContainsFold,omitempty"` + // storage_scheme field predicates + StorageScheme *string `json:"storageScheme,omitempty"` + StorageSchemeNeq *string `json:"storageSchemeNEQ,omitempty"` + StorageSchemeIn []string `json:"storageSchemeIn,omitempty"` + StorageSchemeNotIn []string `json:"storageSchemeNotIn,omitempty"` + StorageSchemeGt *string `json:"storageSchemeGT,omitempty"` + StorageSchemeGte *string `json:"storageSchemeGTE,omitempty"` + StorageSchemeLt *string `json:"storageSchemeLT,omitempty"` + StorageSchemeLte *string `json:"storageSchemeLTE,omitempty"` + StorageSchemeContains *string `json:"storageSchemeContains,omitempty"` + StorageSchemeHasPrefix *string `json:"storageSchemeHasPrefix,omitempty"` + StorageSchemeHasSuffix *string `json:"storageSchemeHasSuffix,omitempty"` + StorageSchemeIsNil *bool `json:"storageSchemeIsNil,omitempty"` + StorageSchemeNotNil *bool `json:"storageSchemeNotNil,omitempty"` + StorageSchemeEqualFold *string `json:"storageSchemeEqualFold,omitempty"` + StorageSchemeContainsFold *string `json:"storageSchemeContainsFold,omitempty"` + // storage_volume field predicates + StorageVolume *string `json:"storageVolume,omitempty"` + StorageVolumeNeq *string `json:"storageVolumeNEQ,omitempty"` + StorageVolumeIn []string `json:"storageVolumeIn,omitempty"` + StorageVolumeNotIn []string `json:"storageVolumeNotIn,omitempty"` + StorageVolumeGt *string `json:"storageVolumeGT,omitempty"` + StorageVolumeGte *string `json:"storageVolumeGTE,omitempty"` + StorageVolumeLt *string `json:"storageVolumeLT,omitempty"` + StorageVolumeLte *string `json:"storageVolumeLTE,omitempty"` + StorageVolumeContains *string `json:"storageVolumeContains,omitempty"` + StorageVolumeHasPrefix *string `json:"storageVolumeHasPrefix,omitempty"` + StorageVolumeHasSuffix *string `json:"storageVolumeHasSuffix,omitempty"` + StorageVolumeIsNil *bool `json:"storageVolumeIsNil,omitempty"` + StorageVolumeNotNil *bool `json:"storageVolumeNotNil,omitempty"` + StorageVolumeEqualFold *string `json:"storageVolumeEqualFold,omitempty"` + StorageVolumeContainsFold *string `json:"storageVolumeContainsFold,omitempty"` + // storage_path field predicates + StoragePath *string `json:"storagePath,omitempty"` + StoragePathNeq *string `json:"storagePathNEQ,omitempty"` + StoragePathIn []string `json:"storagePathIn,omitempty"` + StoragePathNotIn []string `json:"storagePathNotIn,omitempty"` + StoragePathGt *string `json:"storagePathGT,omitempty"` + StoragePathGte *string `json:"storagePathGTE,omitempty"` + StoragePathLt *string `json:"storagePathLT,omitempty"` + StoragePathLte *string `json:"storagePathLTE,omitempty"` + StoragePathContains *string `json:"storagePathContains,omitempty"` + StoragePathHasPrefix *string `json:"storagePathHasPrefix,omitempty"` + StoragePathHasSuffix *string `json:"storagePathHasSuffix,omitempty"` + StoragePathIsNil *bool `json:"storagePathIsNil,omitempty"` + StoragePathNotNil *bool `json:"storagePathNotNil,omitempty"` + StoragePathEqualFold *string `json:"storagePathEqualFold,omitempty"` + StoragePathContainsFold *string `json:"storagePathContainsFold,omitempty"` } -type OauthProvider 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"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the oauth provider's name - Name string `json:"name"` - // the client id for the oauth provider - ClientID string `json:"clientID"` - // the client secret - ClientSecret string `json:"clientSecret"` - // the redirect url - RedirectURL string `json:"redirectURL"` - // the scopes - Scopes string `json:"scopes"` - // the auth url of the provider - AuthURL string `json:"authURL"` - // the token url of the provider - TokenURL string `json:"tokenURL"` - // the auth style, 0: auto detect 1: third party log in 2: log in with username and password - AuthStyle string `json:"authStyle"` - // the URL to request user information by token - InfoURL string `json:"infoURL"` - Owner *Organization `json:"owner,omitempty"` +type FileSearchResult struct { + Files []*File `json:"files,omitempty"` } -func (OauthProvider) IsNode() {} - -// Return response for createBulkOauthProvider mutation -type OauthProviderBulkCreatePayload struct { - // Created oauthProviders - OauthProviders []*OauthProvider `json:"oauthProviders,omitempty"` -} +func (FileSearchResult) IsSearchResult() {} -// A connection to a list of items. -type OauthProviderConnection struct { - // A list of edges. - Edges []*OauthProviderEdge `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 createOauthProvider mutation -type OauthProviderCreatePayload struct { - // Created oauthProvider - OauthProvider *OauthProvider `json:"oauthProvider"` -} - -// Return response for deleteOauthProvider mutation -type OauthProviderDeletePayload struct { - // Deleted oauthProvider ID - DeletedID string `json:"deletedID"` -} - -// An edge in a connection. -type OauthProviderEdge struct { - // The item at the end of the edge. - Node *OauthProvider `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` -} - -type OauthProviderHistory struct { - ID string `json:"id"` - HistoryTime time.Time `json:"historyTime"` - Ref *string `json:"ref,omitempty"` - Operation history.OpType `json:"operation"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - CreatedBy *string `json:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // the organization id that owns the object - OwnerID *string `json:"ownerID,omitempty"` - // the oauth provider's name - Name string `json:"name"` - // the client id for the oauth provider - ClientID string `json:"clientID"` - // the client secret - ClientSecret string `json:"clientSecret"` - // the redirect url - RedirectURL string `json:"redirectURL"` - // the scopes - Scopes string `json:"scopes"` - // the auth url of the provider - AuthURL string `json:"authURL"` - // the token url of the provider - TokenURL string `json:"tokenURL"` - // the auth style, 0: auto detect 1: third party log in 2: log in with username and password - AuthStyle string `json:"authStyle"` - // the URL to request user information by token - InfoURL string `json:"infoURL"` -} - -func (OauthProviderHistory) IsNode() {} - -// A connection to a list of items. -type OauthProviderHistoryConnection struct { - // A list of edges. - Edges []*OauthProviderHistoryEdge `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"` -} - -// An edge in a connection. -type OauthProviderHistoryEdge struct { - // The item at the end of the edge. - Node *OauthProviderHistory `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` -} - -// OauthProviderHistoryWhereInput is used for filtering OauthProviderHistory objects. +// FileWhereInput is used for filtering File objects. // Input was generated by ent. -type OauthProviderHistoryWhereInput struct { - Not *OauthProviderHistoryWhereInput `json:"not,omitempty"` - And []*OauthProviderHistoryWhereInput `json:"and,omitempty"` - Or []*OauthProviderHistoryWhereInput `json:"or,omitempty"` +type FileWhereInput struct { + Not *FileWhereInput `json:"not,omitempty"` + And []*FileWhereInput `json:"and,omitempty"` + Or []*FileWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -9041,36 +8064,6 @@ type OauthProviderHistoryWhereInput struct { IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // history_time field predicates - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` - RefGt *string `json:"refGT,omitempty"` - RefGte *string `json:"refGTE,omitempty"` - RefLt *string `json:"refLT,omitempty"` - RefLte *string `json:"refLTE,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"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` @@ -9152,473 +8145,6560 @@ type OauthProviderHistoryWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - NameGt *string `json:"nameGT,omitempty"` - NameGte *string `json:"nameGTE,omitempty"` - NameLt *string `json:"nameLT,omitempty"` - NameLte *string `json:"nameLTE,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"` - // client_id field predicates - ClientID *string `json:"clientID,omitempty"` - ClientIdneq *string `json:"clientIDNEQ,omitempty"` - ClientIDIn []string `json:"clientIDIn,omitempty"` - ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` - ClientIdgt *string `json:"clientIDGT,omitempty"` - ClientIdgte *string `json:"clientIDGTE,omitempty"` - ClientIdlt *string `json:"clientIDLT,omitempty"` - ClientIdlte *string `json:"clientIDLTE,omitempty"` - ClientIDContains *string `json:"clientIDContains,omitempty"` - ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` - ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` - ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` - ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` - // client_secret field predicates - ClientSecret *string `json:"clientSecret,omitempty"` - ClientSecretNeq *string `json:"clientSecretNEQ,omitempty"` - ClientSecretIn []string `json:"clientSecretIn,omitempty"` - ClientSecretNotIn []string `json:"clientSecretNotIn,omitempty"` - ClientSecretGt *string `json:"clientSecretGT,omitempty"` - ClientSecretGte *string `json:"clientSecretGTE,omitempty"` - ClientSecretLt *string `json:"clientSecretLT,omitempty"` - ClientSecretLte *string `json:"clientSecretLTE,omitempty"` - ClientSecretContains *string `json:"clientSecretContains,omitempty"` - ClientSecretHasPrefix *string `json:"clientSecretHasPrefix,omitempty"` - ClientSecretHasSuffix *string `json:"clientSecretHasSuffix,omitempty"` - ClientSecretEqualFold *string `json:"clientSecretEqualFold,omitempty"` - ClientSecretContainsFold *string `json:"clientSecretContainsFold,omitempty"` - // redirect_url field predicates - RedirectURL *string `json:"redirectURL,omitempty"` - RedirectURLNeq *string `json:"redirectURLNEQ,omitempty"` - RedirectURLIn []string `json:"redirectURLIn,omitempty"` - RedirectURLNotIn []string `json:"redirectURLNotIn,omitempty"` - RedirectURLGt *string `json:"redirectURLGT,omitempty"` - RedirectURLGte *string `json:"redirectURLGTE,omitempty"` - RedirectURLLt *string `json:"redirectURLLT,omitempty"` - RedirectURLLte *string `json:"redirectURLLTE,omitempty"` - RedirectURLContains *string `json:"redirectURLContains,omitempty"` - RedirectURLHasPrefix *string `json:"redirectURLHasPrefix,omitempty"` - RedirectURLHasSuffix *string `json:"redirectURLHasSuffix,omitempty"` - RedirectURLEqualFold *string `json:"redirectURLEqualFold,omitempty"` - RedirectURLContainsFold *string `json:"redirectURLContainsFold,omitempty"` - // scopes field predicates - Scopes *string `json:"scopes,omitempty"` - ScopesNeq *string `json:"scopesNEQ,omitempty"` - ScopesIn []string `json:"scopesIn,omitempty"` - ScopesNotIn []string `json:"scopesNotIn,omitempty"` - ScopesGt *string `json:"scopesGT,omitempty"` - ScopesGte *string `json:"scopesGTE,omitempty"` - ScopesLt *string `json:"scopesLT,omitempty"` - ScopesLte *string `json:"scopesLTE,omitempty"` - ScopesContains *string `json:"scopesContains,omitempty"` - ScopesHasPrefix *string `json:"scopesHasPrefix,omitempty"` - ScopesHasSuffix *string `json:"scopesHasSuffix,omitempty"` - ScopesEqualFold *string `json:"scopesEqualFold,omitempty"` - ScopesContainsFold *string `json:"scopesContainsFold,omitempty"` - // auth_url field predicates - AuthURL *string `json:"authURL,omitempty"` - AuthURLNeq *string `json:"authURLNEQ,omitempty"` - AuthURLIn []string `json:"authURLIn,omitempty"` - AuthURLNotIn []string `json:"authURLNotIn,omitempty"` - AuthURLGt *string `json:"authURLGT,omitempty"` - AuthURLGte *string `json:"authURLGTE,omitempty"` - AuthURLLt *string `json:"authURLLT,omitempty"` - AuthURLLte *string `json:"authURLLTE,omitempty"` - AuthURLContains *string `json:"authURLContains,omitempty"` - AuthURLHasPrefix *string `json:"authURLHasPrefix,omitempty"` - AuthURLHasSuffix *string `json:"authURLHasSuffix,omitempty"` - AuthURLEqualFold *string `json:"authURLEqualFold,omitempty"` - AuthURLContainsFold *string `json:"authURLContainsFold,omitempty"` - // token_url field predicates - TokenURL *string `json:"tokenURL,omitempty"` - TokenURLNeq *string `json:"tokenURLNEQ,omitempty"` - TokenURLIn []string `json:"tokenURLIn,omitempty"` - TokenURLNotIn []string `json:"tokenURLNotIn,omitempty"` - TokenURLGt *string `json:"tokenURLGT,omitempty"` - TokenURLGte *string `json:"tokenURLGTE,omitempty"` - TokenURLLt *string `json:"tokenURLLT,omitempty"` - TokenURLLte *string `json:"tokenURLLTE,omitempty"` - TokenURLContains *string `json:"tokenURLContains,omitempty"` - TokenURLHasPrefix *string `json:"tokenURLHasPrefix,omitempty"` - TokenURLHasSuffix *string `json:"tokenURLHasSuffix,omitempty"` - TokenURLEqualFold *string `json:"tokenURLEqualFold,omitempty"` - TokenURLContainsFold *string `json:"tokenURLContainsFold,omitempty"` - // auth_style field predicates - AuthStyle *string `json:"authStyle,omitempty"` - AuthStyleNeq *string `json:"authStyleNEQ,omitempty"` - AuthStyleIn []string `json:"authStyleIn,omitempty"` - AuthStyleNotIn []string `json:"authStyleNotIn,omitempty"` - AuthStyleGt *string `json:"authStyleGT,omitempty"` - AuthStyleGte *string `json:"authStyleGTE,omitempty"` - AuthStyleLt *string `json:"authStyleLT,omitempty"` - AuthStyleLte *string `json:"authStyleLTE,omitempty"` - // info_url field predicates - InfoURL *string `json:"infoURL,omitempty"` - InfoURLNeq *string `json:"infoURLNEQ,omitempty"` - InfoURLIn []string `json:"infoURLIn,omitempty"` - InfoURLNotIn []string `json:"infoURLNotIn,omitempty"` - InfoURLGt *string `json:"infoURLGT,omitempty"` - InfoURLGte *string `json:"infoURLGTE,omitempty"` - InfoURLLt *string `json:"infoURLLT,omitempty"` - InfoURLLte *string `json:"infoURLLTE,omitempty"` - InfoURLContains *string `json:"infoURLContains,omitempty"` - InfoURLHasPrefix *string `json:"infoURLHasPrefix,omitempty"` - InfoURLHasSuffix *string `json:"infoURLHasSuffix,omitempty"` - InfoURLEqualFold *string `json:"infoURLEqualFold,omitempty"` - InfoURLContainsFold *string `json:"infoURLContainsFold,omitempty"` -} - + // provided_file_name field predicates + ProvidedFileName *string `json:"providedFileName,omitempty"` + ProvidedFileNameNeq *string `json:"providedFileNameNEQ,omitempty"` + ProvidedFileNameIn []string `json:"providedFileNameIn,omitempty"` + ProvidedFileNameNotIn []string `json:"providedFileNameNotIn,omitempty"` + ProvidedFileNameGt *string `json:"providedFileNameGT,omitempty"` + ProvidedFileNameGte *string `json:"providedFileNameGTE,omitempty"` + ProvidedFileNameLt *string `json:"providedFileNameLT,omitempty"` + ProvidedFileNameLte *string `json:"providedFileNameLTE,omitempty"` + ProvidedFileNameContains *string `json:"providedFileNameContains,omitempty"` + ProvidedFileNameHasPrefix *string `json:"providedFileNameHasPrefix,omitempty"` + ProvidedFileNameHasSuffix *string `json:"providedFileNameHasSuffix,omitempty"` + ProvidedFileNameEqualFold *string `json:"providedFileNameEqualFold,omitempty"` + ProvidedFileNameContainsFold *string `json:"providedFileNameContainsFold,omitempty"` + // provided_file_extension field predicates + ProvidedFileExtension *string `json:"providedFileExtension,omitempty"` + ProvidedFileExtensionNeq *string `json:"providedFileExtensionNEQ,omitempty"` + ProvidedFileExtensionIn []string `json:"providedFileExtensionIn,omitempty"` + ProvidedFileExtensionNotIn []string `json:"providedFileExtensionNotIn,omitempty"` + ProvidedFileExtensionGt *string `json:"providedFileExtensionGT,omitempty"` + ProvidedFileExtensionGte *string `json:"providedFileExtensionGTE,omitempty"` + ProvidedFileExtensionLt *string `json:"providedFileExtensionLT,omitempty"` + ProvidedFileExtensionLte *string `json:"providedFileExtensionLTE,omitempty"` + ProvidedFileExtensionContains *string `json:"providedFileExtensionContains,omitempty"` + ProvidedFileExtensionHasPrefix *string `json:"providedFileExtensionHasPrefix,omitempty"` + ProvidedFileExtensionHasSuffix *string `json:"providedFileExtensionHasSuffix,omitempty"` + ProvidedFileExtensionEqualFold *string `json:"providedFileExtensionEqualFold,omitempty"` + ProvidedFileExtensionContainsFold *string `json:"providedFileExtensionContainsFold,omitempty"` + // provided_file_size field predicates + ProvidedFileSize *int64 `json:"providedFileSize,omitempty"` + ProvidedFileSizeNeq *int64 `json:"providedFileSizeNEQ,omitempty"` + ProvidedFileSizeIn []int64 `json:"providedFileSizeIn,omitempty"` + ProvidedFileSizeNotIn []int64 `json:"providedFileSizeNotIn,omitempty"` + ProvidedFileSizeGt *int64 `json:"providedFileSizeGT,omitempty"` + ProvidedFileSizeGte *int64 `json:"providedFileSizeGTE,omitempty"` + ProvidedFileSizeLt *int64 `json:"providedFileSizeLT,omitempty"` + ProvidedFileSizeLte *int64 `json:"providedFileSizeLTE,omitempty"` + ProvidedFileSizeIsNil *bool `json:"providedFileSizeIsNil,omitempty"` + ProvidedFileSizeNotNil *bool `json:"providedFileSizeNotNil,omitempty"` + // persisted_file_size field predicates + PersistedFileSize *int64 `json:"persistedFileSize,omitempty"` + PersistedFileSizeNeq *int64 `json:"persistedFileSizeNEQ,omitempty"` + PersistedFileSizeIn []int64 `json:"persistedFileSizeIn,omitempty"` + PersistedFileSizeNotIn []int64 `json:"persistedFileSizeNotIn,omitempty"` + PersistedFileSizeGt *int64 `json:"persistedFileSizeGT,omitempty"` + PersistedFileSizeGte *int64 `json:"persistedFileSizeGTE,omitempty"` + PersistedFileSizeLt *int64 `json:"persistedFileSizeLT,omitempty"` + PersistedFileSizeLte *int64 `json:"persistedFileSizeLTE,omitempty"` + PersistedFileSizeIsNil *bool `json:"persistedFileSizeIsNil,omitempty"` + PersistedFileSizeNotNil *bool `json:"persistedFileSizeNotNil,omitempty"` + // detected_mime_type field predicates + DetectedMimeType *string `json:"detectedMimeType,omitempty"` + DetectedMimeTypeNeq *string `json:"detectedMimeTypeNEQ,omitempty"` + DetectedMimeTypeIn []string `json:"detectedMimeTypeIn,omitempty"` + DetectedMimeTypeNotIn []string `json:"detectedMimeTypeNotIn,omitempty"` + DetectedMimeTypeGt *string `json:"detectedMimeTypeGT,omitempty"` + DetectedMimeTypeGte *string `json:"detectedMimeTypeGTE,omitempty"` + DetectedMimeTypeLt *string `json:"detectedMimeTypeLT,omitempty"` + DetectedMimeTypeLte *string `json:"detectedMimeTypeLTE,omitempty"` + DetectedMimeTypeContains *string `json:"detectedMimeTypeContains,omitempty"` + DetectedMimeTypeHasPrefix *string `json:"detectedMimeTypeHasPrefix,omitempty"` + DetectedMimeTypeHasSuffix *string `json:"detectedMimeTypeHasSuffix,omitempty"` + DetectedMimeTypeIsNil *bool `json:"detectedMimeTypeIsNil,omitempty"` + DetectedMimeTypeNotNil *bool `json:"detectedMimeTypeNotNil,omitempty"` + DetectedMimeTypeEqualFold *string `json:"detectedMimeTypeEqualFold,omitempty"` + DetectedMimeTypeContainsFold *string `json:"detectedMimeTypeContainsFold,omitempty"` + // md5_hash field predicates + Md5Hash *string `json:"md5Hash,omitempty"` + Md5HashNeq *string `json:"md5HashNEQ,omitempty"` + Md5HashIn []string `json:"md5HashIn,omitempty"` + Md5HashNotIn []string `json:"md5HashNotIn,omitempty"` + Md5HashGt *string `json:"md5HashGT,omitempty"` + Md5HashGte *string `json:"md5HashGTE,omitempty"` + Md5HashLt *string `json:"md5HashLT,omitempty"` + Md5HashLte *string `json:"md5HashLTE,omitempty"` + Md5HashContains *string `json:"md5HashContains,omitempty"` + Md5HashHasPrefix *string `json:"md5HashHasPrefix,omitempty"` + Md5HashHasSuffix *string `json:"md5HashHasSuffix,omitempty"` + Md5HashIsNil *bool `json:"md5HashIsNil,omitempty"` + Md5HashNotNil *bool `json:"md5HashNotNil,omitempty"` + Md5HashEqualFold *string `json:"md5HashEqualFold,omitempty"` + Md5HashContainsFold *string `json:"md5HashContainsFold,omitempty"` + // detected_content_type field predicates + DetectedContentType *string `json:"detectedContentType,omitempty"` + DetectedContentTypeNeq *string `json:"detectedContentTypeNEQ,omitempty"` + DetectedContentTypeIn []string `json:"detectedContentTypeIn,omitempty"` + DetectedContentTypeNotIn []string `json:"detectedContentTypeNotIn,omitempty"` + DetectedContentTypeGt *string `json:"detectedContentTypeGT,omitempty"` + DetectedContentTypeGte *string `json:"detectedContentTypeGTE,omitempty"` + DetectedContentTypeLt *string `json:"detectedContentTypeLT,omitempty"` + DetectedContentTypeLte *string `json:"detectedContentTypeLTE,omitempty"` + DetectedContentTypeContains *string `json:"detectedContentTypeContains,omitempty"` + DetectedContentTypeHasPrefix *string `json:"detectedContentTypeHasPrefix,omitempty"` + DetectedContentTypeHasSuffix *string `json:"detectedContentTypeHasSuffix,omitempty"` + DetectedContentTypeEqualFold *string `json:"detectedContentTypeEqualFold,omitempty"` + DetectedContentTypeContainsFold *string `json:"detectedContentTypeContainsFold,omitempty"` + // store_key field predicates + StoreKey *string `json:"storeKey,omitempty"` + StoreKeyNeq *string `json:"storeKeyNEQ,omitempty"` + StoreKeyIn []string `json:"storeKeyIn,omitempty"` + StoreKeyNotIn []string `json:"storeKeyNotIn,omitempty"` + StoreKeyGt *string `json:"storeKeyGT,omitempty"` + StoreKeyGte *string `json:"storeKeyGTE,omitempty"` + StoreKeyLt *string `json:"storeKeyLT,omitempty"` + StoreKeyLte *string `json:"storeKeyLTE,omitempty"` + StoreKeyContains *string `json:"storeKeyContains,omitempty"` + StoreKeyHasPrefix *string `json:"storeKeyHasPrefix,omitempty"` + StoreKeyHasSuffix *string `json:"storeKeyHasSuffix,omitempty"` + StoreKeyIsNil *bool `json:"storeKeyIsNil,omitempty"` + StoreKeyNotNil *bool `json:"storeKeyNotNil,omitempty"` + StoreKeyEqualFold *string `json:"storeKeyEqualFold,omitempty"` + StoreKeyContainsFold *string `json:"storeKeyContainsFold,omitempty"` + // category_type field predicates + CategoryType *string `json:"categoryType,omitempty"` + CategoryTypeNeq *string `json:"categoryTypeNEQ,omitempty"` + CategoryTypeIn []string `json:"categoryTypeIn,omitempty"` + CategoryTypeNotIn []string `json:"categoryTypeNotIn,omitempty"` + CategoryTypeGt *string `json:"categoryTypeGT,omitempty"` + CategoryTypeGte *string `json:"categoryTypeGTE,omitempty"` + CategoryTypeLt *string `json:"categoryTypeLT,omitempty"` + CategoryTypeLte *string `json:"categoryTypeLTE,omitempty"` + CategoryTypeContains *string `json:"categoryTypeContains,omitempty"` + CategoryTypeHasPrefix *string `json:"categoryTypeHasPrefix,omitempty"` + CategoryTypeHasSuffix *string `json:"categoryTypeHasSuffix,omitempty"` + CategoryTypeIsNil *bool `json:"categoryTypeIsNil,omitempty"` + CategoryTypeNotNil *bool `json:"categoryTypeNotNil,omitempty"` + CategoryTypeEqualFold *string `json:"categoryTypeEqualFold,omitempty"` + CategoryTypeContainsFold *string `json:"categoryTypeContainsFold,omitempty"` + // uri field predicates + URI *string `json:"uri,omitempty"` + URINeq *string `json:"uriNEQ,omitempty"` + URIIn []string `json:"uriIn,omitempty"` + URINotIn []string `json:"uriNotIn,omitempty"` + URIGt *string `json:"uriGT,omitempty"` + URIGte *string `json:"uriGTE,omitempty"` + URILt *string `json:"uriLT,omitempty"` + URILte *string `json:"uriLTE,omitempty"` + URIContains *string `json:"uriContains,omitempty"` + URIHasPrefix *string `json:"uriHasPrefix,omitempty"` + URIHasSuffix *string `json:"uriHasSuffix,omitempty"` + URIIsNil *bool `json:"uriIsNil,omitempty"` + URINotNil *bool `json:"uriNotNil,omitempty"` + URIEqualFold *string `json:"uriEqualFold,omitempty"` + URIContainsFold *string `json:"uriContainsFold,omitempty"` + // storage_scheme field predicates + StorageScheme *string `json:"storageScheme,omitempty"` + StorageSchemeNeq *string `json:"storageSchemeNEQ,omitempty"` + StorageSchemeIn []string `json:"storageSchemeIn,omitempty"` + StorageSchemeNotIn []string `json:"storageSchemeNotIn,omitempty"` + StorageSchemeGt *string `json:"storageSchemeGT,omitempty"` + StorageSchemeGte *string `json:"storageSchemeGTE,omitempty"` + StorageSchemeLt *string `json:"storageSchemeLT,omitempty"` + StorageSchemeLte *string `json:"storageSchemeLTE,omitempty"` + StorageSchemeContains *string `json:"storageSchemeContains,omitempty"` + StorageSchemeHasPrefix *string `json:"storageSchemeHasPrefix,omitempty"` + StorageSchemeHasSuffix *string `json:"storageSchemeHasSuffix,omitempty"` + StorageSchemeIsNil *bool `json:"storageSchemeIsNil,omitempty"` + StorageSchemeNotNil *bool `json:"storageSchemeNotNil,omitempty"` + StorageSchemeEqualFold *string `json:"storageSchemeEqualFold,omitempty"` + StorageSchemeContainsFold *string `json:"storageSchemeContainsFold,omitempty"` + // storage_volume field predicates + StorageVolume *string `json:"storageVolume,omitempty"` + StorageVolumeNeq *string `json:"storageVolumeNEQ,omitempty"` + StorageVolumeIn []string `json:"storageVolumeIn,omitempty"` + StorageVolumeNotIn []string `json:"storageVolumeNotIn,omitempty"` + StorageVolumeGt *string `json:"storageVolumeGT,omitempty"` + StorageVolumeGte *string `json:"storageVolumeGTE,omitempty"` + StorageVolumeLt *string `json:"storageVolumeLT,omitempty"` + StorageVolumeLte *string `json:"storageVolumeLTE,omitempty"` + StorageVolumeContains *string `json:"storageVolumeContains,omitempty"` + StorageVolumeHasPrefix *string `json:"storageVolumeHasPrefix,omitempty"` + StorageVolumeHasSuffix *string `json:"storageVolumeHasSuffix,omitempty"` + StorageVolumeIsNil *bool `json:"storageVolumeIsNil,omitempty"` + StorageVolumeNotNil *bool `json:"storageVolumeNotNil,omitempty"` + StorageVolumeEqualFold *string `json:"storageVolumeEqualFold,omitempty"` + StorageVolumeContainsFold *string `json:"storageVolumeContainsFold,omitempty"` + // storage_path field predicates + StoragePath *string `json:"storagePath,omitempty"` + StoragePathNeq *string `json:"storagePathNEQ,omitempty"` + StoragePathIn []string `json:"storagePathIn,omitempty"` + StoragePathNotIn []string `json:"storagePathNotIn,omitempty"` + StoragePathGt *string `json:"storagePathGT,omitempty"` + StoragePathGte *string `json:"storagePathGTE,omitempty"` + StoragePathLt *string `json:"storagePathLT,omitempty"` + StoragePathLte *string `json:"storagePathLTE,omitempty"` + StoragePathContains *string `json:"storagePathContains,omitempty"` + StoragePathHasPrefix *string `json:"storagePathHasPrefix,omitempty"` + StoragePathHasSuffix *string `json:"storagePathHasSuffix,omitempty"` + StoragePathIsNil *bool `json:"storagePathIsNil,omitempty"` + StoragePathNotNil *bool `json:"storagePathNotNil,omitempty"` + StoragePathEqualFold *string `json:"storagePathEqualFold,omitempty"` + StoragePathContainsFold *string `json:"storagePathContainsFold,omitempty"` + // user edge predicates + HasUser *bool `json:"hasUser,omitempty"` + HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` + // organization edge predicates + HasOrganization *bool `json:"hasOrganization,omitempty"` + HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` + // group edge predicates + HasGroup *bool `json:"hasGroup,omitempty"` + HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` + // contact edge predicates + HasContact *bool `json:"hasContact,omitempty"` + HasContactWith []*ContactWhereInput `json:"hasContactWith,omitempty"` + // entity edge predicates + HasEntity *bool `json:"hasEntity,omitempty"` + HasEntityWith []*EntityWhereInput `json:"hasEntityWith,omitempty"` + // usersetting edge predicates + HasUsersetting *bool `json:"hasUsersetting,omitempty"` + HasUsersettingWith []*UserSettingWhereInput `json:"hasUsersettingWith,omitempty"` + // organizationsetting edge predicates + HasOrganizationsetting *bool `json:"hasOrganizationsetting,omitempty"` + HasOrganizationsettingWith []*OrganizationSettingWhereInput `json:"hasOrganizationsettingWith,omitempty"` + // template edge predicates + HasTemplate *bool `json:"hasTemplate,omitempty"` + HasTemplateWith []*TemplateWhereInput `json:"hasTemplateWith,omitempty"` + // documentdata edge predicates + HasDocumentdata *bool `json:"hasDocumentdata,omitempty"` + HasDocumentdataWith []*DocumentDataWhereInput `json:"hasDocumentdataWith,omitempty"` + // events edge predicates + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` +} + +type Group 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // 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 group - must be unique within the organization + Name string `json:"name"` + // the groups description + Description *string `json:"description,omitempty"` + // the URL to an auto generated gravatar image for the group + GravatarLogoURL *string `json:"gravatarLogoURL,omitempty"` + // the URL to an image uploaded by the customer for the groups avatar image + LogoURL *string `json:"logoURL,omitempty"` + // The group's displayed 'friendly' name + DisplayName string `json:"displayName"` + Owner *Organization `json:"owner,omitempty"` + Setting *GroupSetting `json:"setting"` + Users []*User `json:"users,omitempty"` + Events []*Event `json:"events,omitempty"` + Integrations []*Integration `json:"integrations,omitempty"` + Files []*File `json:"files,omitempty"` + Members []*GroupMembership `json:"members,omitempty"` +} + +func (Group) IsNode() {} + +// Return response for createBulkGroup mutation +type GroupBulkCreatePayload struct { + // Created groups + Groups []*Group `json:"groups,omitempty"` +} + +// A connection to a list of items. +type GroupConnection struct { + // A list of edges. + Edges []*GroupEdge `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 createGroup mutation +type GroupCreatePayload struct { + // Created group + Group *Group `json:"group"` +} + +// Return response for deleteGroup mutation +type GroupDeletePayload struct { + // Deleted group ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type GroupEdge struct { + // The item at the end of the edge. + Node *Group `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type GroupHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // 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 group - must be unique within the organization + Name string `json:"name"` + // the groups description + Description *string `json:"description,omitempty"` + // the URL to an auto generated gravatar image for the group + GravatarLogoURL *string `json:"gravatarLogoURL,omitempty"` + // the URL to an image uploaded by the customer for the groups avatar image + LogoURL *string `json:"logoURL,omitempty"` + // The group's displayed 'friendly' name + DisplayName string `json:"displayName"` +} + +func (GroupHistory) IsNode() {} + +// A connection to a list of items. +type GroupHistoryConnection struct { + // A list of edges. + Edges []*GroupHistoryEdge `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"` +} + +// An edge in a connection. +type GroupHistoryEdge struct { + // The item at the end of the edge. + Node *GroupHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// Ordering options for GroupHistory connections +type GroupHistoryOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order GroupHistories. + Field GroupHistoryOrderField `json:"field"` +} + +// GroupHistoryWhereInput is used for filtering GroupHistory objects. +// Input was generated by ent. +type GroupHistoryWhereInput struct { + Not *GroupHistoryWhereInput `json:"not,omitempty"` + And []*GroupHistoryWhereInput `json:"and,omitempty"` + Or []*GroupHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + // display_name field predicates + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGt *string `json:"displayNameGT,omitempty"` + DisplayNameGte *string `json:"displayNameGTE,omitempty"` + DisplayNameLt *string `json:"displayNameLT,omitempty"` + DisplayNameLte *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` +} + +type GroupMembership 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + Role enums.Role `json:"role"` + GroupID string `json:"groupID"` + UserID string `json:"userID"` + Group *Group `json:"group"` + User *User `json:"user"` + Events []*Event `json:"events,omitempty"` +} + +func (GroupMembership) IsNode() {} + +// Return response for createBulkGroupMembership mutation +type GroupMembershipBulkCreatePayload struct { + // Created groupMemberships + GroupMemberships []*GroupMembership `json:"groupMemberships,omitempty"` +} + +// A connection to a list of items. +type GroupMembershipConnection struct { + // A list of edges. + Edges []*GroupMembershipEdge `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 createGroupMembership mutation +type GroupMembershipCreatePayload struct { + // Created groupMembership + GroupMembership *GroupMembership `json:"groupMembership"` +} + +// Return response for deleteGroupMembership mutation +type GroupMembershipDeletePayload struct { + // Deleted groupMembership ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type GroupMembershipEdge struct { + // The item at the end of the edge. + Node *GroupMembership `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type GroupMembershipHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + Role enums.Role `json:"role"` + GroupID string `json:"groupID"` + UserID string `json:"userID"` +} + +func (GroupMembershipHistory) IsNode() {} + +// A connection to a list of items. +type GroupMembershipHistoryConnection struct { + // A list of edges. + Edges []*GroupMembershipHistoryEdge `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"` +} + +// An edge in a connection. +type GroupMembershipHistoryEdge struct { + // The item at the end of the edge. + Node *GroupMembershipHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// GroupMembershipHistoryWhereInput is used for filtering GroupMembershipHistory objects. +// Input was generated by ent. +type GroupMembershipHistoryWhereInput struct { + Not *GroupMembershipHistoryWhereInput `json:"not,omitempty"` + And []*GroupMembershipHistoryWhereInput `json:"and,omitempty"` + Or []*GroupMembershipHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // role field predicates + Role *enums.Role `json:"role,omitempty"` + RoleNeq *enums.Role `json:"roleNEQ,omitempty"` + RoleIn []enums.Role `json:"roleIn,omitempty"` + RoleNotIn []enums.Role `json:"roleNotIn,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"` + GroupIdgt *string `json:"groupIDGT,omitempty"` + GroupIdgte *string `json:"groupIDGTE,omitempty"` + GroupIdlt *string `json:"groupIDLT,omitempty"` + GroupIdlte *string `json:"groupIDLTE,omitempty"` + GroupIDContains *string `json:"groupIDContains,omitempty"` + GroupIDHasPrefix *string `json:"groupIDHasPrefix,omitempty"` + GroupIDHasSuffix *string `json:"groupIDHasSuffix,omitempty"` + GroupIDEqualFold *string `json:"groupIDEqualFold,omitempty"` + GroupIDContainsFold *string `json:"groupIDContainsFold,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"` + UserIdgt *string `json:"userIDGT,omitempty"` + UserIdgte *string `json:"userIDGTE,omitempty"` + UserIdlt *string `json:"userIDLT,omitempty"` + UserIdlte *string `json:"userIDLTE,omitempty"` + UserIDContains *string `json:"userIDContains,omitempty"` + UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` + UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` + UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` + UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` +} + +// Return response for updateGroupMembership mutation +type GroupMembershipUpdatePayload struct { + // Updated groupMembership + GroupMembership *GroupMembership `json:"groupMembership"` +} + +// GroupMembershipWhereInput is used for filtering GroupMembership objects. +// Input was generated by ent. +type GroupMembershipWhereInput struct { + Not *GroupMembershipWhereInput `json:"not,omitempty"` + And []*GroupMembershipWhereInput `json:"and,omitempty"` + Or []*GroupMembershipWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // role field predicates + Role *enums.Role `json:"role,omitempty"` + RoleNeq *enums.Role `json:"roleNEQ,omitempty"` + RoleIn []enums.Role `json:"roleIn,omitempty"` + RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` + GroupID *string `json:"groupID,omitempty"` + UserID *string `json:"userID,omitempty"` +} + +// Ordering options for Group connections +type GroupOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order Groups. + Field GroupOrderField `json:"field"` +} + +type GroupSearchResult struct { + Groups []*Group `json:"groups,omitempty"` +} + +func (GroupSearchResult) IsSearchResult() {} + +type GroupSetting 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"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + Visibility enums.Visibility `json:"visibility"` + // the policy governing ability to freely join a group, whether it requires an invitation, application, or either + JoinPolicy enums.JoinPolicy `json:"joinPolicy"` + // whether to sync group members to slack groups + SyncToSlack *bool `json:"syncToSlack,omitempty"` + // whether to sync group members to github groups + SyncToGithub *bool `json:"syncToGithub,omitempty"` + // the group id associated with the settings + GroupID *string `json:"groupID,omitempty"` + Group *Group `json:"group,omitempty"` +} + +func (GroupSetting) IsNode() {} + +// Return response for createBulkGroupSetting mutation +type GroupSettingBulkCreatePayload struct { + // Created groupSettings + GroupSettings []*GroupSetting `json:"groupSettings,omitempty"` +} + +// A connection to a list of items. +type GroupSettingConnection struct { + // A list of edges. + Edges []*GroupSettingEdge `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 createGroupSetting mutation +type GroupSettingCreatePayload struct { + // Created groupSetting + GroupSetting *GroupSetting `json:"groupSetting"` +} + +// Return response for deleteGroupSetting mutation +type GroupSettingDeletePayload struct { + // Deleted groupSetting ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type GroupSettingEdge struct { + // The item at the end of the edge. + Node *GroupSetting `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type GroupSettingHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + Visibility enums.Visibility `json:"visibility"` + // the policy governing ability to freely join a group, whether it requires an invitation, application, or either + JoinPolicy enums.JoinPolicy `json:"joinPolicy"` + // whether to sync group members to slack groups + SyncToSlack *bool `json:"syncToSlack,omitempty"` + // whether to sync group members to github groups + SyncToGithub *bool `json:"syncToGithub,omitempty"` + // the group id associated with the settings + GroupID *string `json:"groupID,omitempty"` +} + +func (GroupSettingHistory) IsNode() {} + +// A connection to a list of items. +type GroupSettingHistoryConnection struct { + // A list of edges. + Edges []*GroupSettingHistoryEdge `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"` +} + +// An edge in a connection. +type GroupSettingHistoryEdge struct { + // The item at the end of the edge. + Node *GroupSettingHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// GroupSettingHistoryWhereInput is used for filtering GroupSettingHistory objects. +// Input was generated by ent. +type GroupSettingHistoryWhereInput struct { + Not *GroupSettingHistoryWhereInput `json:"not,omitempty"` + And []*GroupSettingHistoryWhereInput `json:"and,omitempty"` + Or []*GroupSettingHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // visibility field predicates + Visibility *enums.Visibility `json:"visibility,omitempty"` + VisibilityNeq *enums.Visibility `json:"visibilityNEQ,omitempty"` + VisibilityIn []enums.Visibility `json:"visibilityIn,omitempty"` + VisibilityNotIn []enums.Visibility `json:"visibilityNotIn,omitempty"` + // join_policy field predicates + JoinPolicy *enums.JoinPolicy `json:"joinPolicy,omitempty"` + JoinPolicyNeq *enums.JoinPolicy `json:"joinPolicyNEQ,omitempty"` + JoinPolicyIn []enums.JoinPolicy `json:"joinPolicyIn,omitempty"` + JoinPolicyNotIn []enums.JoinPolicy `json:"joinPolicyNotIn,omitempty"` + // sync_to_slack field predicates + SyncToSlack *bool `json:"syncToSlack,omitempty"` + SyncToSlackNeq *bool `json:"syncToSlackNEQ,omitempty"` + SyncToSlackIsNil *bool `json:"syncToSlackIsNil,omitempty"` + SyncToSlackNotNil *bool `json:"syncToSlackNotNil,omitempty"` + // sync_to_github field predicates + SyncToGithub *bool `json:"syncToGithub,omitempty"` + SyncToGithubNeq *bool `json:"syncToGithubNEQ,omitempty"` + SyncToGithubIsNil *bool `json:"syncToGithubIsNil,omitempty"` + SyncToGithubNotNil *bool `json:"syncToGithubNotNil,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"` + GroupIdgt *string `json:"groupIDGT,omitempty"` + GroupIdgte *string `json:"groupIDGTE,omitempty"` + GroupIdlt *string `json:"groupIDLT,omitempty"` + GroupIdlte *string `json:"groupIDLTE,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"` +} + +type GroupSettingSearchResult struct { + GroupSettings []*GroupSetting `json:"groupSettings,omitempty"` +} + +func (GroupSettingSearchResult) IsSearchResult() {} + +// Return response for updateGroupSetting mutation +type GroupSettingUpdatePayload struct { + // Updated groupSetting + GroupSetting *GroupSetting `json:"groupSetting"` +} + +// GroupSettingWhereInput is used for filtering GroupSetting objects. +// Input was generated by ent. +type GroupSettingWhereInput struct { + Not *GroupSettingWhereInput `json:"not,omitempty"` + And []*GroupSettingWhereInput `json:"and,omitempty"` + Or []*GroupSettingWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // visibility field predicates + Visibility *enums.Visibility `json:"visibility,omitempty"` + VisibilityNeq *enums.Visibility `json:"visibilityNEQ,omitempty"` + VisibilityIn []enums.Visibility `json:"visibilityIn,omitempty"` + VisibilityNotIn []enums.Visibility `json:"visibilityNotIn,omitempty"` + // join_policy field predicates + JoinPolicy *enums.JoinPolicy `json:"joinPolicy,omitempty"` + JoinPolicyNeq *enums.JoinPolicy `json:"joinPolicyNEQ,omitempty"` + JoinPolicyIn []enums.JoinPolicy `json:"joinPolicyIn,omitempty"` + JoinPolicyNotIn []enums.JoinPolicy `json:"joinPolicyNotIn,omitempty"` + // sync_to_slack field predicates + SyncToSlack *bool `json:"syncToSlack,omitempty"` + SyncToSlackNeq *bool `json:"syncToSlackNEQ,omitempty"` + SyncToSlackIsNil *bool `json:"syncToSlackIsNil,omitempty"` + SyncToSlackNotNil *bool `json:"syncToSlackNotNil,omitempty"` + // sync_to_github field predicates + SyncToGithub *bool `json:"syncToGithub,omitempty"` + SyncToGithubNeq *bool `json:"syncToGithubNEQ,omitempty"` + SyncToGithubIsNil *bool `json:"syncToGithubIsNil,omitempty"` + SyncToGithubNotNil *bool `json:"syncToGithubNotNil,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"` + GroupIdgt *string `json:"groupIDGT,omitempty"` + GroupIdgte *string `json:"groupIDGTE,omitempty"` + GroupIdlt *string `json:"groupIDLT,omitempty"` + GroupIdlte *string `json:"groupIDLTE,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"` + // group edge predicates + HasGroup *bool `json:"hasGroup,omitempty"` + HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` +} + +// Return response for updateGroup mutation +type GroupUpdatePayload struct { + // Updated group + Group *Group `json:"group"` +} + +// GroupWhereInput is used for filtering Group objects. +// Input was generated by ent. +type GroupWhereInput struct { + Not *GroupWhereInput `json:"not,omitempty"` + And []*GroupWhereInput `json:"and,omitempty"` + Or []*GroupWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + // display_name field predicates + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGt *string `json:"displayNameGT,omitempty"` + DisplayNameGte *string `json:"displayNameGTE,omitempty"` + DisplayNameLt *string `json:"displayNameLT,omitempty"` + DisplayNameLte *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // setting edge predicates + HasSetting *bool `json:"hasSetting,omitempty"` + HasSettingWith []*GroupSettingWhereInput `json:"hasSettingWith,omitempty"` + // users edge predicates + HasUsers *bool `json:"hasUsers,omitempty"` + HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"` + // events edge predicates + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // integrations edge predicates + HasIntegrations *bool `json:"hasIntegrations,omitempty"` + HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` + // files edge predicates + HasFiles *bool `json:"hasFiles,omitempty"` + HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` + // members edge predicates + HasMembers *bool `json:"hasMembers,omitempty"` + HasMembersWith []*GroupMembershipWhereInput `json:"hasMembersWith,omitempty"` +} + +type Hush 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // the logical name of the corresponding hush secret or it's general grouping + Name string `json:"name"` + // a description of the hush value or purpose, such as github PAT + Description *string `json:"description,omitempty"` + // the kind of secret, such as sshkey, certificate, api token, etc. + Kind *string `json:"kind,omitempty"` + // the generic name of a secret associated with the organization + SecretName *string `json:"secretName,omitempty"` + // the integration associated with the secret + Integrations []*Integration `json:"integrations,omitempty"` + Organization []*Organization `json:"organization,omitempty"` + Events []*Event `json:"events,omitempty"` +} + +func (Hush) IsNode() {} + +// Return response for createBulkHush mutation +type HushBulkCreatePayload struct { + // Created hushs + Hushes []*Hush `json:"hushes,omitempty"` +} + +// A connection to a list of items. +type HushConnection struct { + // A list of edges. + Edges []*HushEdge `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 createHush mutation +type HushCreatePayload struct { + // Created hush + Hush *Hush `json:"hush"` +} + +// Return response for deleteHush mutation +type HushDeletePayload struct { + // Deleted hush ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type HushEdge struct { + // The item at the end of the edge. + Node *Hush `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type HushHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // the logical name of the corresponding hush secret or it's general grouping + Name string `json:"name"` + // a description of the hush value or purpose, such as github PAT + Description *string `json:"description,omitempty"` + // the kind of secret, such as sshkey, certificate, api token, etc. + Kind *string `json:"kind,omitempty"` + // the generic name of a secret associated with the organization + SecretName *string `json:"secretName,omitempty"` +} + +func (HushHistory) IsNode() {} + +// A connection to a list of items. +type HushHistoryConnection struct { + // A list of edges. + Edges []*HushHistoryEdge `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"` +} + +// An edge in a connection. +type HushHistoryEdge struct { + // The item at the end of the edge. + Node *HushHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// Ordering options for HushHistory connections +type HushHistoryOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order HushHistories. + Field HushHistoryOrderField `json:"field"` +} + +// HushHistoryWhereInput is used for filtering HushHistory objects. +// Input was generated by ent. +type HushHistoryWhereInput struct { + Not *HushHistoryWhereInput `json:"not,omitempty"` + And []*HushHistoryWhereInput `json:"and,omitempty"` + Or []*HushHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + // kind field predicates + Kind *string `json:"kind,omitempty"` + KindNeq *string `json:"kindNEQ,omitempty"` + KindIn []string `json:"kindIn,omitempty"` + KindNotIn []string `json:"kindNotIn,omitempty"` + KindGt *string `json:"kindGT,omitempty"` + KindGte *string `json:"kindGTE,omitempty"` + KindLt *string `json:"kindLT,omitempty"` + KindLte *string `json:"kindLTE,omitempty"` + KindContains *string `json:"kindContains,omitempty"` + KindHasPrefix *string `json:"kindHasPrefix,omitempty"` + KindHasSuffix *string `json:"kindHasSuffix,omitempty"` + KindIsNil *bool `json:"kindIsNil,omitempty"` + KindNotNil *bool `json:"kindNotNil,omitempty"` + KindEqualFold *string `json:"kindEqualFold,omitempty"` + KindContainsFold *string `json:"kindContainsFold,omitempty"` + // secret_name field predicates + SecretName *string `json:"secretName,omitempty"` + SecretNameNeq *string `json:"secretNameNEQ,omitempty"` + SecretNameIn []string `json:"secretNameIn,omitempty"` + SecretNameNotIn []string `json:"secretNameNotIn,omitempty"` + SecretNameGt *string `json:"secretNameGT,omitempty"` + SecretNameGte *string `json:"secretNameGTE,omitempty"` + SecretNameLt *string `json:"secretNameLT,omitempty"` + SecretNameLte *string `json:"secretNameLTE,omitempty"` + SecretNameContains *string `json:"secretNameContains,omitempty"` + SecretNameHasPrefix *string `json:"secretNameHasPrefix,omitempty"` + SecretNameHasSuffix *string `json:"secretNameHasSuffix,omitempty"` + SecretNameIsNil *bool `json:"secretNameIsNil,omitempty"` + SecretNameNotNil *bool `json:"secretNameNotNil,omitempty"` + SecretNameEqualFold *string `json:"secretNameEqualFold,omitempty"` + SecretNameContainsFold *string `json:"secretNameContainsFold,omitempty"` +} + +// Ordering options for Hush connections +type HushOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order Hushes. + Field HushOrderField `json:"field"` +} + +// Return response for updateHush mutation +type HushUpdatePayload struct { + // Updated hush + Hush *Hush `json:"hush"` +} + +// HushWhereInput is used for filtering Hush objects. +// Input was generated by ent. +type HushWhereInput struct { + Not *HushWhereInput `json:"not,omitempty"` + And []*HushWhereInput `json:"and,omitempty"` + Or []*HushWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + // kind field predicates + Kind *string `json:"kind,omitempty"` + KindNeq *string `json:"kindNEQ,omitempty"` + KindIn []string `json:"kindIn,omitempty"` + KindNotIn []string `json:"kindNotIn,omitempty"` + KindGt *string `json:"kindGT,omitempty"` + KindGte *string `json:"kindGTE,omitempty"` + KindLt *string `json:"kindLT,omitempty"` + KindLte *string `json:"kindLTE,omitempty"` + KindContains *string `json:"kindContains,omitempty"` + KindHasPrefix *string `json:"kindHasPrefix,omitempty"` + KindHasSuffix *string `json:"kindHasSuffix,omitempty"` + KindIsNil *bool `json:"kindIsNil,omitempty"` + KindNotNil *bool `json:"kindNotNil,omitempty"` + KindEqualFold *string `json:"kindEqualFold,omitempty"` + KindContainsFold *string `json:"kindContainsFold,omitempty"` + // secret_name field predicates + SecretName *string `json:"secretName,omitempty"` + SecretNameNeq *string `json:"secretNameNEQ,omitempty"` + SecretNameIn []string `json:"secretNameIn,omitempty"` + SecretNameNotIn []string `json:"secretNameNotIn,omitempty"` + SecretNameGt *string `json:"secretNameGT,omitempty"` + SecretNameGte *string `json:"secretNameGTE,omitempty"` + SecretNameLt *string `json:"secretNameLT,omitempty"` + SecretNameLte *string `json:"secretNameLTE,omitempty"` + SecretNameContains *string `json:"secretNameContains,omitempty"` + SecretNameHasPrefix *string `json:"secretNameHasPrefix,omitempty"` + SecretNameHasSuffix *string `json:"secretNameHasSuffix,omitempty"` + SecretNameIsNil *bool `json:"secretNameIsNil,omitempty"` + SecretNameNotNil *bool `json:"secretNameNotNil,omitempty"` + SecretNameEqualFold *string `json:"secretNameEqualFold,omitempty"` + SecretNameContainsFold *string `json:"secretNameContainsFold,omitempty"` + // integrations edge predicates + HasIntegrations *bool `json:"hasIntegrations,omitempty"` + HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` + // organization edge predicates + HasOrganization *bool `json:"hasOrganization,omitempty"` + HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` + // events edge predicates + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` +} + +type Integration 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"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the name of the integration - must be unique within the organization + Name string `json:"name"` + // a description of the integration + Description *string `json:"description,omitempty"` + Kind *string `json:"kind,omitempty"` + Owner *Organization `json:"owner,omitempty"` + // the secrets associated with the integration + Secrets []*Hush `json:"secrets,omitempty"` + // the oauth2 tokens associated with the integration + Oauth2tokens []*OhAuthTooToken `json:"oauth2tokens,omitempty"` + Events []*Event `json:"events,omitempty"` + Webhooks []*Webhook `json:"webhooks,omitempty"` +} + +func (Integration) IsNode() {} + +// Return response for createBulkIntegration mutation +type IntegrationBulkCreatePayload struct { + // Created integrations + Integrations []*Integration `json:"integrations,omitempty"` +} + +// A connection to a list of items. +type IntegrationConnection struct { + // A list of edges. + Edges []*IntegrationEdge `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 createIntegration mutation +type IntegrationCreatePayload struct { + // Created integration + Integration *Integration `json:"integration"` +} + +// Return response for deleteIntegration mutation +type IntegrationDeletePayload struct { + // Deleted integration ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type IntegrationEdge struct { + // The item at the end of the edge. + Node *Integration `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type IntegrationHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the name of the integration - must be unique within the organization + Name string `json:"name"` + // a description of the integration + Description *string `json:"description,omitempty"` + Kind *string `json:"kind,omitempty"` +} + +func (IntegrationHistory) IsNode() {} + +// A connection to a list of items. +type IntegrationHistoryConnection struct { + // A list of edges. + Edges []*IntegrationHistoryEdge `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"` +} + +// An edge in a connection. +type IntegrationHistoryEdge struct { + // The item at the end of the edge. + Node *IntegrationHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// Ordering options for IntegrationHistory connections +type IntegrationHistoryOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order IntegrationHistories. + Field IntegrationHistoryOrderField `json:"field"` +} + +// IntegrationHistoryWhereInput is used for filtering IntegrationHistory objects. +// Input was generated by ent. +type IntegrationHistoryWhereInput struct { + Not *IntegrationHistoryWhereInput `json:"not,omitempty"` + And []*IntegrationHistoryWhereInput `json:"and,omitempty"` + Or []*IntegrationHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + // kind field predicates + Kind *string `json:"kind,omitempty"` + KindNeq *string `json:"kindNEQ,omitempty"` + KindIn []string `json:"kindIn,omitempty"` + KindNotIn []string `json:"kindNotIn,omitempty"` + KindGt *string `json:"kindGT,omitempty"` + KindGte *string `json:"kindGTE,omitempty"` + KindLt *string `json:"kindLT,omitempty"` + KindLte *string `json:"kindLTE,omitempty"` + KindContains *string `json:"kindContains,omitempty"` + KindHasPrefix *string `json:"kindHasPrefix,omitempty"` + KindHasSuffix *string `json:"kindHasSuffix,omitempty"` + KindIsNil *bool `json:"kindIsNil,omitempty"` + KindNotNil *bool `json:"kindNotNil,omitempty"` + KindEqualFold *string `json:"kindEqualFold,omitempty"` + KindContainsFold *string `json:"kindContainsFold,omitempty"` +} + +// Ordering options for Integration connections +type IntegrationOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order Integrations. + Field IntegrationOrderField `json:"field"` +} + +type IntegrationSearchResult struct { + Integrations []*Integration `json:"integrations,omitempty"` +} + +func (IntegrationSearchResult) IsSearchResult() {} + +// Return response for updateIntegration mutation +type IntegrationUpdatePayload struct { + // Updated integration + Integration *Integration `json:"integration"` +} + +// IntegrationWhereInput is used for filtering Integration objects. +// Input was generated by ent. +type IntegrationWhereInput struct { + Not *IntegrationWhereInput `json:"not,omitempty"` + And []*IntegrationWhereInput `json:"and,omitempty"` + Or []*IntegrationWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + // kind field predicates + Kind *string `json:"kind,omitempty"` + KindNeq *string `json:"kindNEQ,omitempty"` + KindIn []string `json:"kindIn,omitempty"` + KindNotIn []string `json:"kindNotIn,omitempty"` + KindGt *string `json:"kindGT,omitempty"` + KindGte *string `json:"kindGTE,omitempty"` + KindLt *string `json:"kindLT,omitempty"` + KindLte *string `json:"kindLTE,omitempty"` + KindContains *string `json:"kindContains,omitempty"` + KindHasPrefix *string `json:"kindHasPrefix,omitempty"` + KindHasSuffix *string `json:"kindHasSuffix,omitempty"` + KindIsNil *bool `json:"kindIsNil,omitempty"` + KindNotNil *bool `json:"kindNotNil,omitempty"` + KindEqualFold *string `json:"kindEqualFold,omitempty"` + KindContainsFold *string `json:"kindContainsFold,omitempty"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // secrets edge predicates + HasSecrets *bool `json:"hasSecrets,omitempty"` + HasSecretsWith []*HushWhereInput `json:"hasSecretsWith,omitempty"` + // oauth2tokens edge predicates + HasOauth2tokens *bool `json:"hasOauth2tokens,omitempty"` + HasOauth2tokensWith []*OhAuthTooTokenWhereInput `json:"hasOauth2tokensWith,omitempty"` + // events edge predicates + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // webhooks edge predicates + HasWebhooks *bool `json:"hasWebhooks,omitempty"` + HasWebhooksWith []*WebhookWhereInput `json:"hasWebhooksWith,omitempty"` +} + +type InternalPolicy 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the policy + Name string `json:"name"` + // description of the policy + Description string `json:"description"` + // status of the policy + Status *string `json:"status,omitempty"` + // type of the policy + PolicyType *string `json:"policyType,omitempty"` + // version of the policy + Version *string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + // background of the policy + Background *string `json:"background,omitempty"` + // json data for the policy document + Details map[string]interface{} `json:"details,omitempty"` + Controlobjectives []*ControlObjective `json:"controlobjectives,omitempty"` + Controls []*Control `json:"controls,omitempty"` + Procedures []*Procedure `json:"procedures,omitempty"` + Narratives []*Narrative `json:"narratives,omitempty"` +} + +func (InternalPolicy) IsNode() {} + +// Return response for createBulkInternalPolicy mutation +type InternalPolicyBulkCreatePayload struct { + // Created internalPolicys + InternalPolicies []*InternalPolicy `json:"internalPolicies,omitempty"` +} + +// A connection to a list of items. +type InternalPolicyConnection struct { + // A list of edges. + Edges []*InternalPolicyEdge `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 createInternalPolicy mutation +type InternalPolicyCreatePayload struct { + // Created internalPolicy + InternalPolicy *InternalPolicy `json:"internalPolicy"` +} + +// Return response for deleteInternalPolicy mutation +type InternalPolicyDeletePayload struct { + // Deleted internalPolicy ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type InternalPolicyEdge struct { + // The item at the end of the edge. + Node *InternalPolicy `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type InternalPolicyHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the policy + Name string `json:"name"` + // description of the policy + Description string `json:"description"` + // status of the policy + Status *string `json:"status,omitempty"` + // type of the policy + PolicyType *string `json:"policyType,omitempty"` + // version of the policy + Version *string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + // background of the policy + Background *string `json:"background,omitempty"` + // json data for the policy document + Details map[string]interface{} `json:"details,omitempty"` +} + +func (InternalPolicyHistory) IsNode() {} + +// A connection to a list of items. +type InternalPolicyHistoryConnection struct { + // A list of edges. + Edges []*InternalPolicyHistoryEdge `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"` +} + +// An edge in a connection. +type InternalPolicyHistoryEdge struct { + // The item at the end of the edge. + Node *InternalPolicyHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// InternalPolicyHistoryWhereInput is used for filtering InternalPolicyHistory objects. +// Input was generated by ent. +type InternalPolicyHistoryWhereInput struct { + Not *InternalPolicyHistoryWhereInput `json:"not,omitempty"` + And []*InternalPolicyHistoryWhereInput `json:"and,omitempty"` + Or []*InternalPolicyHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,omitempty"` + DescriptionContains *string `json:"descriptionContains,omitempty"` + DescriptionHasPrefix *string `json:"descriptionHasPrefix,omitempty"` + DescriptionHasSuffix *string `json:"descriptionHasSuffix,omitempty"` + DescriptionEqualFold *string `json:"descriptionEqualFold,omitempty"` + DescriptionContainsFold *string `json:"descriptionContainsFold,omitempty"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // policy_type field predicates + PolicyType *string `json:"policyType,omitempty"` + PolicyTypeNeq *string `json:"policyTypeNEQ,omitempty"` + PolicyTypeIn []string `json:"policyTypeIn,omitempty"` + PolicyTypeNotIn []string `json:"policyTypeNotIn,omitempty"` + PolicyTypeGt *string `json:"policyTypeGT,omitempty"` + PolicyTypeGte *string `json:"policyTypeGTE,omitempty"` + PolicyTypeLt *string `json:"policyTypeLT,omitempty"` + PolicyTypeLte *string `json:"policyTypeLTE,omitempty"` + PolicyTypeContains *string `json:"policyTypeContains,omitempty"` + PolicyTypeHasPrefix *string `json:"policyTypeHasPrefix,omitempty"` + PolicyTypeHasSuffix *string `json:"policyTypeHasSuffix,omitempty"` + PolicyTypeIsNil *bool `json:"policyTypeIsNil,omitempty"` + PolicyTypeNotNil *bool `json:"policyTypeNotNil,omitempty"` + PolicyTypeEqualFold *string `json:"policyTypeEqualFold,omitempty"` + PolicyTypeContainsFold *string `json:"policyTypeContainsFold,omitempty"` + // version field predicates + Version *string `json:"version,omitempty"` + VersionNeq *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGt *string `json:"versionGT,omitempty"` + VersionGte *string `json:"versionGTE,omitempty"` + VersionLt *string `json:"versionLT,omitempty"` + VersionLte *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil *bool `json:"versionIsNil,omitempty"` + VersionNotNil *bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // purpose_and_scope field predicates + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + PurposeAndScopeNeq *string `json:"purposeAndScopeNEQ,omitempty"` + PurposeAndScopeIn []string `json:"purposeAndScopeIn,omitempty"` + PurposeAndScopeNotIn []string `json:"purposeAndScopeNotIn,omitempty"` + PurposeAndScopeGt *string `json:"purposeAndScopeGT,omitempty"` + PurposeAndScopeGte *string `json:"purposeAndScopeGTE,omitempty"` + PurposeAndScopeLt *string `json:"purposeAndScopeLT,omitempty"` + PurposeAndScopeLte *string `json:"purposeAndScopeLTE,omitempty"` + PurposeAndScopeContains *string `json:"purposeAndScopeContains,omitempty"` + PurposeAndScopeHasPrefix *string `json:"purposeAndScopeHasPrefix,omitempty"` + PurposeAndScopeHasSuffix *string `json:"purposeAndScopeHasSuffix,omitempty"` + PurposeAndScopeIsNil *bool `json:"purposeAndScopeIsNil,omitempty"` + PurposeAndScopeNotNil *bool `json:"purposeAndScopeNotNil,omitempty"` + PurposeAndScopeEqualFold *string `json:"purposeAndScopeEqualFold,omitempty"` + PurposeAndScopeContainsFold *string `json:"purposeAndScopeContainsFold,omitempty"` + // background field predicates + Background *string `json:"background,omitempty"` + BackgroundNeq *string `json:"backgroundNEQ,omitempty"` + BackgroundIn []string `json:"backgroundIn,omitempty"` + BackgroundNotIn []string `json:"backgroundNotIn,omitempty"` + BackgroundGt *string `json:"backgroundGT,omitempty"` + BackgroundGte *string `json:"backgroundGTE,omitempty"` + BackgroundLt *string `json:"backgroundLT,omitempty"` + BackgroundLte *string `json:"backgroundLTE,omitempty"` + BackgroundContains *string `json:"backgroundContains,omitempty"` + BackgroundHasPrefix *string `json:"backgroundHasPrefix,omitempty"` + BackgroundHasSuffix *string `json:"backgroundHasSuffix,omitempty"` + BackgroundIsNil *bool `json:"backgroundIsNil,omitempty"` + BackgroundNotNil *bool `json:"backgroundNotNil,omitempty"` + BackgroundEqualFold *string `json:"backgroundEqualFold,omitempty"` + BackgroundContainsFold *string `json:"backgroundContainsFold,omitempty"` +} + +type InternalPolicySearchResult struct { + InternalPolicies []*InternalPolicy `json:"internalPolicies,omitempty"` +} + +func (InternalPolicySearchResult) IsSearchResult() {} + +// Return response for updateInternalPolicy mutation +type InternalPolicyUpdatePayload struct { + // Updated internalPolicy + InternalPolicy *InternalPolicy `json:"internalPolicy"` +} + +// InternalPolicyWhereInput is used for filtering InternalPolicy objects. +// Input was generated by ent. +type InternalPolicyWhereInput struct { + Not *InternalPolicyWhereInput `json:"not,omitempty"` + And []*InternalPolicyWhereInput `json:"and,omitempty"` + Or []*InternalPolicyWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,omitempty"` + DescriptionContains *string `json:"descriptionContains,omitempty"` + DescriptionHasPrefix *string `json:"descriptionHasPrefix,omitempty"` + DescriptionHasSuffix *string `json:"descriptionHasSuffix,omitempty"` + DescriptionEqualFold *string `json:"descriptionEqualFold,omitempty"` + DescriptionContainsFold *string `json:"descriptionContainsFold,omitempty"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // policy_type field predicates + PolicyType *string `json:"policyType,omitempty"` + PolicyTypeNeq *string `json:"policyTypeNEQ,omitempty"` + PolicyTypeIn []string `json:"policyTypeIn,omitempty"` + PolicyTypeNotIn []string `json:"policyTypeNotIn,omitempty"` + PolicyTypeGt *string `json:"policyTypeGT,omitempty"` + PolicyTypeGte *string `json:"policyTypeGTE,omitempty"` + PolicyTypeLt *string `json:"policyTypeLT,omitempty"` + PolicyTypeLte *string `json:"policyTypeLTE,omitempty"` + PolicyTypeContains *string `json:"policyTypeContains,omitempty"` + PolicyTypeHasPrefix *string `json:"policyTypeHasPrefix,omitempty"` + PolicyTypeHasSuffix *string `json:"policyTypeHasSuffix,omitempty"` + PolicyTypeIsNil *bool `json:"policyTypeIsNil,omitempty"` + PolicyTypeNotNil *bool `json:"policyTypeNotNil,omitempty"` + PolicyTypeEqualFold *string `json:"policyTypeEqualFold,omitempty"` + PolicyTypeContainsFold *string `json:"policyTypeContainsFold,omitempty"` + // version field predicates + Version *string `json:"version,omitempty"` + VersionNeq *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGt *string `json:"versionGT,omitempty"` + VersionGte *string `json:"versionGTE,omitempty"` + VersionLt *string `json:"versionLT,omitempty"` + VersionLte *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil *bool `json:"versionIsNil,omitempty"` + VersionNotNil *bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // purpose_and_scope field predicates + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + PurposeAndScopeNeq *string `json:"purposeAndScopeNEQ,omitempty"` + PurposeAndScopeIn []string `json:"purposeAndScopeIn,omitempty"` + PurposeAndScopeNotIn []string `json:"purposeAndScopeNotIn,omitempty"` + PurposeAndScopeGt *string `json:"purposeAndScopeGT,omitempty"` + PurposeAndScopeGte *string `json:"purposeAndScopeGTE,omitempty"` + PurposeAndScopeLt *string `json:"purposeAndScopeLT,omitempty"` + PurposeAndScopeLte *string `json:"purposeAndScopeLTE,omitempty"` + PurposeAndScopeContains *string `json:"purposeAndScopeContains,omitempty"` + PurposeAndScopeHasPrefix *string `json:"purposeAndScopeHasPrefix,omitempty"` + PurposeAndScopeHasSuffix *string `json:"purposeAndScopeHasSuffix,omitempty"` + PurposeAndScopeIsNil *bool `json:"purposeAndScopeIsNil,omitempty"` + PurposeAndScopeNotNil *bool `json:"purposeAndScopeNotNil,omitempty"` + PurposeAndScopeEqualFold *string `json:"purposeAndScopeEqualFold,omitempty"` + PurposeAndScopeContainsFold *string `json:"purposeAndScopeContainsFold,omitempty"` + // background field predicates + Background *string `json:"background,omitempty"` + BackgroundNeq *string `json:"backgroundNEQ,omitempty"` + BackgroundIn []string `json:"backgroundIn,omitempty"` + BackgroundNotIn []string `json:"backgroundNotIn,omitempty"` + BackgroundGt *string `json:"backgroundGT,omitempty"` + BackgroundGte *string `json:"backgroundGTE,omitempty"` + BackgroundLt *string `json:"backgroundLT,omitempty"` + BackgroundLte *string `json:"backgroundLTE,omitempty"` + BackgroundContains *string `json:"backgroundContains,omitempty"` + BackgroundHasPrefix *string `json:"backgroundHasPrefix,omitempty"` + BackgroundHasSuffix *string `json:"backgroundHasSuffix,omitempty"` + BackgroundIsNil *bool `json:"backgroundIsNil,omitempty"` + BackgroundNotNil *bool `json:"backgroundNotNil,omitempty"` + BackgroundEqualFold *string `json:"backgroundEqualFold,omitempty"` + BackgroundContainsFold *string `json:"backgroundContainsFold,omitempty"` + // controlobjectives edge predicates + HasControlobjectives *bool `json:"hasControlobjectives,omitempty"` + HasControlobjectivesWith []*ControlObjectiveWhereInput `json:"hasControlobjectivesWith,omitempty"` + // controls edge predicates + HasControls *bool `json:"hasControls,omitempty"` + HasControlsWith []*ControlWhereInput `json:"hasControlsWith,omitempty"` + // procedures edge predicates + HasProcedures *bool `json:"hasProcedures,omitempty"` + HasProceduresWith []*ProcedureWhereInput `json:"hasProceduresWith,omitempty"` + // narratives edge predicates + HasNarratives *bool `json:"hasNarratives,omitempty"` + HasNarrativesWith []*NarrativeWhereInput `json:"hasNarrativesWith,omitempty"` +} + +type Invite 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the expiration date of the invitation token which defaults to 14 days in the future from creation + Expires *time.Time `json:"expires,omitempty"` + // the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + Recipient string `json:"recipient"` + // the status of the invitation + Status enums.InviteStatus `json:"status"` + Role enums.Role `json:"role"` + // the number of attempts made to perform email send of the invitation, maximum of 5 + SendAttempts int64 `json:"sendAttempts"` + // the user who initiated the invitation + RequestorID *string `json:"requestorID,omitempty"` + Owner *Organization `json:"owner,omitempty"` + Events []*Event `json:"events,omitempty"` +} + +func (Invite) IsNode() {} + +// Return response for createBulkInvite mutation +type InviteBulkCreatePayload struct { + // Created invites + Invites []*Invite `json:"invites,omitempty"` +} + +// A connection to a list of items. +type InviteConnection struct { + // A list of edges. + Edges []*InviteEdge `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 createInvite mutation +type InviteCreatePayload struct { + // Created invite + Invite *Invite `json:"invite"` +} + +// Return response for deleteInvite mutation +type InviteDeletePayload struct { + // Deleted invite ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type InviteEdge struct { + // The item at the end of the edge. + Node *Invite `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// Return response for updateInvite mutation +type InviteUpdatePayload struct { + // Updated invite + Invite *Invite `json:"invite"` +} + +// InviteWhereInput is used for filtering Invite objects. +// Input was generated by ent. +type InviteWhereInput struct { + Not *InviteWhereInput `json:"not,omitempty"` + And []*InviteWhereInput `json:"and,omitempty"` + Or []*InviteWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + // expires field predicates + Expires *time.Time `json:"expires,omitempty"` + ExpiresNeq *time.Time `json:"expiresNEQ,omitempty"` + ExpiresIn []*time.Time `json:"expiresIn,omitempty"` + ExpiresNotIn []*time.Time `json:"expiresNotIn,omitempty"` + ExpiresGt *time.Time `json:"expiresGT,omitempty"` + ExpiresGte *time.Time `json:"expiresGTE,omitempty"` + ExpiresLt *time.Time `json:"expiresLT,omitempty"` + ExpiresLte *time.Time `json:"expiresLTE,omitempty"` + ExpiresIsNil *bool `json:"expiresIsNil,omitempty"` + ExpiresNotNil *bool `json:"expiresNotNil,omitempty"` + // recipient field predicates + Recipient *string `json:"recipient,omitempty"` + RecipientNeq *string `json:"recipientNEQ,omitempty"` + RecipientIn []string `json:"recipientIn,omitempty"` + RecipientNotIn []string `json:"recipientNotIn,omitempty"` + RecipientGt *string `json:"recipientGT,omitempty"` + RecipientGte *string `json:"recipientGTE,omitempty"` + RecipientLt *string `json:"recipientLT,omitempty"` + RecipientLte *string `json:"recipientLTE,omitempty"` + RecipientContains *string `json:"recipientContains,omitempty"` + RecipientHasPrefix *string `json:"recipientHasPrefix,omitempty"` + RecipientHasSuffix *string `json:"recipientHasSuffix,omitempty"` + RecipientEqualFold *string `json:"recipientEqualFold,omitempty"` + RecipientContainsFold *string `json:"recipientContainsFold,omitempty"` + // status field predicates + Status *enums.InviteStatus `json:"status,omitempty"` + StatusNeq *enums.InviteStatus `json:"statusNEQ,omitempty"` + StatusIn []enums.InviteStatus `json:"statusIn,omitempty"` + StatusNotIn []enums.InviteStatus `json:"statusNotIn,omitempty"` + // role field predicates + Role *enums.Role `json:"role,omitempty"` + RoleNeq *enums.Role `json:"roleNEQ,omitempty"` + RoleIn []enums.Role `json:"roleIn,omitempty"` + RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` + // send_attempts field predicates + SendAttempts *int64 `json:"sendAttempts,omitempty"` + SendAttemptsNeq *int64 `json:"sendAttemptsNEQ,omitempty"` + SendAttemptsIn []int64 `json:"sendAttemptsIn,omitempty"` + SendAttemptsNotIn []int64 `json:"sendAttemptsNotIn,omitempty"` + SendAttemptsGt *int64 `json:"sendAttemptsGT,omitempty"` + SendAttemptsGte *int64 `json:"sendAttemptsGTE,omitempty"` + SendAttemptsLt *int64 `json:"sendAttemptsLT,omitempty"` + SendAttemptsLte *int64 `json:"sendAttemptsLTE,omitempty"` + // requestor_id field predicates + RequestorID *string `json:"requestorID,omitempty"` + RequestorIdneq *string `json:"requestorIDNEQ,omitempty"` + RequestorIDIn []string `json:"requestorIDIn,omitempty"` + RequestorIDNotIn []string `json:"requestorIDNotIn,omitempty"` + RequestorIdgt *string `json:"requestorIDGT,omitempty"` + RequestorIdgte *string `json:"requestorIDGTE,omitempty"` + RequestorIdlt *string `json:"requestorIDLT,omitempty"` + RequestorIdlte *string `json:"requestorIDLTE,omitempty"` + RequestorIDContains *string `json:"requestorIDContains,omitempty"` + RequestorIDHasPrefix *string `json:"requestorIDHasPrefix,omitempty"` + RequestorIDHasSuffix *string `json:"requestorIDHasSuffix,omitempty"` + RequestorIDIsNil *bool `json:"requestorIDIsNil,omitempty"` + RequestorIDNotNil *bool `json:"requestorIDNotNil,omitempty"` + RequestorIDEqualFold *string `json:"requestorIDEqualFold,omitempty"` + RequestorIDContainsFold *string `json:"requestorIDContainsFold,omitempty"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // events edge predicates + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` +} + +type Mutation struct { +} + +type Narrative 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the narrative + Name string `json:"name"` + // the description of the narrative + Description *string `json:"description,omitempty"` + // which controls are satisfied by the narrative + Satisfies *string `json:"satisfies,omitempty"` + // json data for the narrative document + Details map[string]interface{} `json:"details,omitempty"` + Policy []*InternalPolicy `json:"policy,omitempty"` + Control []*Control `json:"control,omitempty"` + Procedure []*Procedure `json:"procedure,omitempty"` + Controlobjective []*ControlObjective `json:"controlobjective,omitempty"` +} + +func (Narrative) IsNode() {} + +// Return response for createBulkNarrative mutation +type NarrativeBulkCreatePayload struct { + // Created narratives + Narratives []*Narrative `json:"narratives,omitempty"` +} + +// A connection to a list of items. +type NarrativeConnection struct { + // A list of edges. + Edges []*NarrativeEdge `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 createNarrative mutation +type NarrativeCreatePayload struct { + // Created narrative + Narrative *Narrative `json:"narrative"` +} + +// Return response for deleteNarrative mutation +type NarrativeDeletePayload struct { + // Deleted narrative ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type NarrativeEdge struct { + // The item at the end of the edge. + Node *Narrative `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type NarrativeHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the narrative + Name string `json:"name"` + // the description of the narrative + Description *string `json:"description,omitempty"` + // which controls are satisfied by the narrative + Satisfies *string `json:"satisfies,omitempty"` + // json data for the narrative document + Details map[string]interface{} `json:"details,omitempty"` +} + +func (NarrativeHistory) IsNode() {} + +// A connection to a list of items. +type NarrativeHistoryConnection struct { + // A list of edges. + Edges []*NarrativeHistoryEdge `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"` +} + +// An edge in a connection. +type NarrativeHistoryEdge struct { + // The item at the end of the edge. + Node *NarrativeHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// NarrativeHistoryWhereInput is used for filtering NarrativeHistory objects. +// Input was generated by ent. +type NarrativeHistoryWhereInput struct { + Not *NarrativeHistoryWhereInput `json:"not,omitempty"` + And []*NarrativeHistoryWhereInput `json:"and,omitempty"` + Or []*NarrativeHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // satisfies field predicates + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNeq *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGt *string `json:"satisfiesGT,omitempty"` + SatisfiesGte *string `json:"satisfiesGTE,omitempty"` + SatisfiesLt *string `json:"satisfiesLT,omitempty"` + SatisfiesLte *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil *bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil *bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` +} + +type NarrativeSearchResult struct { + Narratives []*Narrative `json:"narratives,omitempty"` +} + +func (NarrativeSearchResult) IsSearchResult() {} + +// Return response for updateNarrative mutation +type NarrativeUpdatePayload struct { + // Updated narrative + Narrative *Narrative `json:"narrative"` +} + +// NarrativeWhereInput is used for filtering Narrative objects. +// Input was generated by ent. +type NarrativeWhereInput struct { + Not *NarrativeWhereInput `json:"not,omitempty"` + And []*NarrativeWhereInput `json:"and,omitempty"` + Or []*NarrativeWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // satisfies field predicates + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNeq *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGt *string `json:"satisfiesGT,omitempty"` + SatisfiesGte *string `json:"satisfiesGTE,omitempty"` + SatisfiesLt *string `json:"satisfiesLT,omitempty"` + SatisfiesLte *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil *bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil *bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` + // policy edge predicates + HasPolicy *bool `json:"hasPolicy,omitempty"` + HasPolicyWith []*InternalPolicyWhereInput `json:"hasPolicyWith,omitempty"` + // control edge predicates + HasControl *bool `json:"hasControl,omitempty"` + HasControlWith []*ControlWhereInput `json:"hasControlWith,omitempty"` + // procedure edge predicates + HasProcedure *bool `json:"hasProcedure,omitempty"` + HasProcedureWith []*ProcedureWhereInput `json:"hasProcedureWith,omitempty"` + // controlobjective edge predicates + HasControlobjective *bool `json:"hasControlobjective,omitempty"` + HasControlobjectiveWith []*ControlObjectiveWhereInput `json:"hasControlobjectiveWith,omitempty"` +} + +type Note 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the text of the note + Text string `json:"text"` + Owner *Organization `json:"owner,omitempty"` + Entity *Entity `json:"entity,omitempty"` + Subcontrols []*Subcontrol `json:"subcontrols,omitempty"` +} + +func (Note) IsNode() {} + +// A connection to a list of items. +type NoteConnection struct { + // A list of edges. + Edges []*NoteEdge `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"` +} + +// An edge in a connection. +type NoteEdge struct { + // The item at the end of the edge. + Node *Note `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type NoteHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the text of the note + Text string `json:"text"` +} + +func (NoteHistory) IsNode() {} + +// A connection to a list of items. +type NoteHistoryConnection struct { + // A list of edges. + Edges []*NoteHistoryEdge `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"` +} + +// An edge in a connection. +type NoteHistoryEdge struct { + // The item at the end of the edge. + Node *NoteHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// NoteHistoryWhereInput is used for filtering NoteHistory objects. +// Input was generated by ent. +type NoteHistoryWhereInput struct { + Not *NoteHistoryWhereInput `json:"not,omitempty"` + And []*NoteHistoryWhereInput `json:"and,omitempty"` + Or []*NoteHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + // text field predicates + Text *string `json:"text,omitempty"` + TextNeq *string `json:"textNEQ,omitempty"` + TextIn []string `json:"textIn,omitempty"` + TextNotIn []string `json:"textNotIn,omitempty"` + TextGt *string `json:"textGT,omitempty"` + TextGte *string `json:"textGTE,omitempty"` + TextLt *string `json:"textLT,omitempty"` + TextLte *string `json:"textLTE,omitempty"` + TextContains *string `json:"textContains,omitempty"` + TextHasPrefix *string `json:"textHasPrefix,omitempty"` + TextHasSuffix *string `json:"textHasSuffix,omitempty"` + TextEqualFold *string `json:"textEqualFold,omitempty"` + TextContainsFold *string `json:"textContainsFold,omitempty"` +} + +// NoteWhereInput is used for filtering Note objects. +// Input was generated by ent. +type NoteWhereInput struct { + Not *NoteWhereInput `json:"not,omitempty"` + And []*NoteWhereInput `json:"and,omitempty"` + Or []*NoteWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + // text field predicates + Text *string `json:"text,omitempty"` + TextNeq *string `json:"textNEQ,omitempty"` + TextIn []string `json:"textIn,omitempty"` + TextNotIn []string `json:"textNotIn,omitempty"` + TextGt *string `json:"textGT,omitempty"` + TextGte *string `json:"textGTE,omitempty"` + TextLt *string `json:"textLT,omitempty"` + TextLte *string `json:"textLTE,omitempty"` + TextContains *string `json:"textContains,omitempty"` + TextHasPrefix *string `json:"textHasPrefix,omitempty"` + TextHasSuffix *string `json:"textHasSuffix,omitempty"` + TextEqualFold *string `json:"textEqualFold,omitempty"` + TextContainsFold *string `json:"textContainsFold,omitempty"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // entity edge predicates + HasEntity *bool `json:"hasEntity,omitempty"` + HasEntityWith []*EntityWhereInput `json:"hasEntityWith,omitempty"` + // subcontrols edge predicates + HasSubcontrols *bool `json:"hasSubcontrols,omitempty"` + HasSubcontrolsWith []*SubcontrolWhereInput `json:"hasSubcontrolsWith,omitempty"` +} + +type OauthProvider 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"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the oauth provider's name + Name string `json:"name"` + // the client id for the oauth provider + ClientID string `json:"clientID"` + // the client secret + ClientSecret string `json:"clientSecret"` + // the redirect url + RedirectURL string `json:"redirectURL"` + // the scopes + Scopes string `json:"scopes"` + // the auth url of the provider + AuthURL string `json:"authURL"` + // the token url of the provider + TokenURL string `json:"tokenURL"` + // the auth style, 0: auto detect 1: third party log in 2: log in with username and password + AuthStyle string `json:"authStyle"` + // the URL to request user information by token + InfoURL string `json:"infoURL"` + Owner *Organization `json:"owner,omitempty"` +} + +func (OauthProvider) IsNode() {} + +// Return response for createBulkOauthProvider mutation +type OauthProviderBulkCreatePayload struct { + // Created oauthProviders + OauthProviders []*OauthProvider `json:"oauthProviders,omitempty"` +} + +// A connection to a list of items. +type OauthProviderConnection struct { + // A list of edges. + Edges []*OauthProviderEdge `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 createOauthProvider mutation +type OauthProviderCreatePayload struct { + // Created oauthProvider + OauthProvider *OauthProvider `json:"oauthProvider"` +} + +// Return response for deleteOauthProvider mutation +type OauthProviderDeletePayload struct { + // Deleted oauthProvider ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type OauthProviderEdge struct { + // The item at the end of the edge. + Node *OauthProvider `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type OauthProviderHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the oauth provider's name + Name string `json:"name"` + // the client id for the oauth provider + ClientID string `json:"clientID"` + // the client secret + ClientSecret string `json:"clientSecret"` + // the redirect url + RedirectURL string `json:"redirectURL"` + // the scopes + Scopes string `json:"scopes"` + // the auth url of the provider + AuthURL string `json:"authURL"` + // the token url of the provider + TokenURL string `json:"tokenURL"` + // the auth style, 0: auto detect 1: third party log in 2: log in with username and password + AuthStyle string `json:"authStyle"` + // the URL to request user information by token + InfoURL string `json:"infoURL"` +} + +func (OauthProviderHistory) IsNode() {} + +// A connection to a list of items. +type OauthProviderHistoryConnection struct { + // A list of edges. + Edges []*OauthProviderHistoryEdge `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"` +} + +// An edge in a connection. +type OauthProviderHistoryEdge struct { + // The item at the end of the edge. + Node *OauthProviderHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// OauthProviderHistoryWhereInput is used for filtering OauthProviderHistory objects. +// Input was generated by ent. +type OauthProviderHistoryWhereInput struct { + Not *OauthProviderHistoryWhereInput `json:"not,omitempty"` + And []*OauthProviderHistoryWhereInput `json:"and,omitempty"` + Or []*OauthProviderHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + // client_id field predicates + ClientID *string `json:"clientID,omitempty"` + ClientIdneq *string `json:"clientIDNEQ,omitempty"` + ClientIDIn []string `json:"clientIDIn,omitempty"` + ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` + ClientIdgt *string `json:"clientIDGT,omitempty"` + ClientIdgte *string `json:"clientIDGTE,omitempty"` + ClientIdlt *string `json:"clientIDLT,omitempty"` + ClientIdlte *string `json:"clientIDLTE,omitempty"` + ClientIDContains *string `json:"clientIDContains,omitempty"` + ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` + ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` + ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` + ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` + // client_secret field predicates + ClientSecret *string `json:"clientSecret,omitempty"` + ClientSecretNeq *string `json:"clientSecretNEQ,omitempty"` + ClientSecretIn []string `json:"clientSecretIn,omitempty"` + ClientSecretNotIn []string `json:"clientSecretNotIn,omitempty"` + ClientSecretGt *string `json:"clientSecretGT,omitempty"` + ClientSecretGte *string `json:"clientSecretGTE,omitempty"` + ClientSecretLt *string `json:"clientSecretLT,omitempty"` + ClientSecretLte *string `json:"clientSecretLTE,omitempty"` + ClientSecretContains *string `json:"clientSecretContains,omitempty"` + ClientSecretHasPrefix *string `json:"clientSecretHasPrefix,omitempty"` + ClientSecretHasSuffix *string `json:"clientSecretHasSuffix,omitempty"` + ClientSecretEqualFold *string `json:"clientSecretEqualFold,omitempty"` + ClientSecretContainsFold *string `json:"clientSecretContainsFold,omitempty"` + // redirect_url field predicates + RedirectURL *string `json:"redirectURL,omitempty"` + RedirectURLNeq *string `json:"redirectURLNEQ,omitempty"` + RedirectURLIn []string `json:"redirectURLIn,omitempty"` + RedirectURLNotIn []string `json:"redirectURLNotIn,omitempty"` + RedirectURLGt *string `json:"redirectURLGT,omitempty"` + RedirectURLGte *string `json:"redirectURLGTE,omitempty"` + RedirectURLLt *string `json:"redirectURLLT,omitempty"` + RedirectURLLte *string `json:"redirectURLLTE,omitempty"` + RedirectURLContains *string `json:"redirectURLContains,omitempty"` + RedirectURLHasPrefix *string `json:"redirectURLHasPrefix,omitempty"` + RedirectURLHasSuffix *string `json:"redirectURLHasSuffix,omitempty"` + RedirectURLEqualFold *string `json:"redirectURLEqualFold,omitempty"` + RedirectURLContainsFold *string `json:"redirectURLContainsFold,omitempty"` + // scopes field predicates + Scopes *string `json:"scopes,omitempty"` + ScopesNeq *string `json:"scopesNEQ,omitempty"` + ScopesIn []string `json:"scopesIn,omitempty"` + ScopesNotIn []string `json:"scopesNotIn,omitempty"` + ScopesGt *string `json:"scopesGT,omitempty"` + ScopesGte *string `json:"scopesGTE,omitempty"` + ScopesLt *string `json:"scopesLT,omitempty"` + ScopesLte *string `json:"scopesLTE,omitempty"` + ScopesContains *string `json:"scopesContains,omitempty"` + ScopesHasPrefix *string `json:"scopesHasPrefix,omitempty"` + ScopesHasSuffix *string `json:"scopesHasSuffix,omitempty"` + ScopesEqualFold *string `json:"scopesEqualFold,omitempty"` + ScopesContainsFold *string `json:"scopesContainsFold,omitempty"` + // auth_url field predicates + AuthURL *string `json:"authURL,omitempty"` + AuthURLNeq *string `json:"authURLNEQ,omitempty"` + AuthURLIn []string `json:"authURLIn,omitempty"` + AuthURLNotIn []string `json:"authURLNotIn,omitempty"` + AuthURLGt *string `json:"authURLGT,omitempty"` + AuthURLGte *string `json:"authURLGTE,omitempty"` + AuthURLLt *string `json:"authURLLT,omitempty"` + AuthURLLte *string `json:"authURLLTE,omitempty"` + AuthURLContains *string `json:"authURLContains,omitempty"` + AuthURLHasPrefix *string `json:"authURLHasPrefix,omitempty"` + AuthURLHasSuffix *string `json:"authURLHasSuffix,omitempty"` + AuthURLEqualFold *string `json:"authURLEqualFold,omitempty"` + AuthURLContainsFold *string `json:"authURLContainsFold,omitempty"` + // token_url field predicates + TokenURL *string `json:"tokenURL,omitempty"` + TokenURLNeq *string `json:"tokenURLNEQ,omitempty"` + TokenURLIn []string `json:"tokenURLIn,omitempty"` + TokenURLNotIn []string `json:"tokenURLNotIn,omitempty"` + TokenURLGt *string `json:"tokenURLGT,omitempty"` + TokenURLGte *string `json:"tokenURLGTE,omitempty"` + TokenURLLt *string `json:"tokenURLLT,omitempty"` + TokenURLLte *string `json:"tokenURLLTE,omitempty"` + TokenURLContains *string `json:"tokenURLContains,omitempty"` + TokenURLHasPrefix *string `json:"tokenURLHasPrefix,omitempty"` + TokenURLHasSuffix *string `json:"tokenURLHasSuffix,omitempty"` + TokenURLEqualFold *string `json:"tokenURLEqualFold,omitempty"` + TokenURLContainsFold *string `json:"tokenURLContainsFold,omitempty"` + // auth_style field predicates + AuthStyle *string `json:"authStyle,omitempty"` + AuthStyleNeq *string `json:"authStyleNEQ,omitempty"` + AuthStyleIn []string `json:"authStyleIn,omitempty"` + AuthStyleNotIn []string `json:"authStyleNotIn,omitempty"` + AuthStyleGt *string `json:"authStyleGT,omitempty"` + AuthStyleGte *string `json:"authStyleGTE,omitempty"` + AuthStyleLt *string `json:"authStyleLT,omitempty"` + AuthStyleLte *string `json:"authStyleLTE,omitempty"` + // info_url field predicates + InfoURL *string `json:"infoURL,omitempty"` + InfoURLNeq *string `json:"infoURLNEQ,omitempty"` + InfoURLIn []string `json:"infoURLIn,omitempty"` + InfoURLNotIn []string `json:"infoURLNotIn,omitempty"` + InfoURLGt *string `json:"infoURLGT,omitempty"` + InfoURLGte *string `json:"infoURLGTE,omitempty"` + InfoURLLt *string `json:"infoURLLT,omitempty"` + InfoURLLte *string `json:"infoURLLTE,omitempty"` + InfoURLContains *string `json:"infoURLContains,omitempty"` + InfoURLHasPrefix *string `json:"infoURLHasPrefix,omitempty"` + InfoURLHasSuffix *string `json:"infoURLHasSuffix,omitempty"` + InfoURLEqualFold *string `json:"infoURLEqualFold,omitempty"` + InfoURLContainsFold *string `json:"infoURLContainsFold,omitempty"` +} + type OauthProviderSearchResult struct { OauthProviders []*OauthProvider `json:"oauthProviders,omitempty"` } -func (OauthProviderSearchResult) IsSearchResult() {} +func (OauthProviderSearchResult) IsSearchResult() {} + +// Return response for updateOauthProvider mutation +type OauthProviderUpdatePayload struct { + // Updated oauthProvider + OauthProvider *OauthProvider `json:"oauthProvider"` +} + +// OauthProviderWhereInput is used for filtering OauthProvider objects. +// Input was generated by ent. +type OauthProviderWhereInput struct { + Not *OauthProviderWhereInput `json:"not,omitempty"` + And []*OauthProviderWhereInput `json:"and,omitempty"` + Or []*OauthProviderWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,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"` + OwnerIdgt *string `json:"ownerIDGT,omitempty"` + OwnerIdgte *string `json:"ownerIDGTE,omitempty"` + OwnerIdlt *string `json:"ownerIDLT,omitempty"` + OwnerIdlte *string `json:"ownerIDLTE,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"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + // client_id field predicates + ClientID *string `json:"clientID,omitempty"` + ClientIdneq *string `json:"clientIDNEQ,omitempty"` + ClientIDIn []string `json:"clientIDIn,omitempty"` + ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` + ClientIdgt *string `json:"clientIDGT,omitempty"` + ClientIdgte *string `json:"clientIDGTE,omitempty"` + ClientIdlt *string `json:"clientIDLT,omitempty"` + ClientIdlte *string `json:"clientIDLTE,omitempty"` + ClientIDContains *string `json:"clientIDContains,omitempty"` + ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` + ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` + ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` + ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` + // client_secret field predicates + ClientSecret *string `json:"clientSecret,omitempty"` + ClientSecretNeq *string `json:"clientSecretNEQ,omitempty"` + ClientSecretIn []string `json:"clientSecretIn,omitempty"` + ClientSecretNotIn []string `json:"clientSecretNotIn,omitempty"` + ClientSecretGt *string `json:"clientSecretGT,omitempty"` + ClientSecretGte *string `json:"clientSecretGTE,omitempty"` + ClientSecretLt *string `json:"clientSecretLT,omitempty"` + ClientSecretLte *string `json:"clientSecretLTE,omitempty"` + ClientSecretContains *string `json:"clientSecretContains,omitempty"` + ClientSecretHasPrefix *string `json:"clientSecretHasPrefix,omitempty"` + ClientSecretHasSuffix *string `json:"clientSecretHasSuffix,omitempty"` + ClientSecretEqualFold *string `json:"clientSecretEqualFold,omitempty"` + ClientSecretContainsFold *string `json:"clientSecretContainsFold,omitempty"` + // redirect_url field predicates + RedirectURL *string `json:"redirectURL,omitempty"` + RedirectURLNeq *string `json:"redirectURLNEQ,omitempty"` + RedirectURLIn []string `json:"redirectURLIn,omitempty"` + RedirectURLNotIn []string `json:"redirectURLNotIn,omitempty"` + RedirectURLGt *string `json:"redirectURLGT,omitempty"` + RedirectURLGte *string `json:"redirectURLGTE,omitempty"` + RedirectURLLt *string `json:"redirectURLLT,omitempty"` + RedirectURLLte *string `json:"redirectURLLTE,omitempty"` + RedirectURLContains *string `json:"redirectURLContains,omitempty"` + RedirectURLHasPrefix *string `json:"redirectURLHasPrefix,omitempty"` + RedirectURLHasSuffix *string `json:"redirectURLHasSuffix,omitempty"` + RedirectURLEqualFold *string `json:"redirectURLEqualFold,omitempty"` + RedirectURLContainsFold *string `json:"redirectURLContainsFold,omitempty"` + // scopes field predicates + Scopes *string `json:"scopes,omitempty"` + ScopesNeq *string `json:"scopesNEQ,omitempty"` + ScopesIn []string `json:"scopesIn,omitempty"` + ScopesNotIn []string `json:"scopesNotIn,omitempty"` + ScopesGt *string `json:"scopesGT,omitempty"` + ScopesGte *string `json:"scopesGTE,omitempty"` + ScopesLt *string `json:"scopesLT,omitempty"` + ScopesLte *string `json:"scopesLTE,omitempty"` + ScopesContains *string `json:"scopesContains,omitempty"` + ScopesHasPrefix *string `json:"scopesHasPrefix,omitempty"` + ScopesHasSuffix *string `json:"scopesHasSuffix,omitempty"` + ScopesEqualFold *string `json:"scopesEqualFold,omitempty"` + ScopesContainsFold *string `json:"scopesContainsFold,omitempty"` + // auth_url field predicates + AuthURL *string `json:"authURL,omitempty"` + AuthURLNeq *string `json:"authURLNEQ,omitempty"` + AuthURLIn []string `json:"authURLIn,omitempty"` + AuthURLNotIn []string `json:"authURLNotIn,omitempty"` + AuthURLGt *string `json:"authURLGT,omitempty"` + AuthURLGte *string `json:"authURLGTE,omitempty"` + AuthURLLt *string `json:"authURLLT,omitempty"` + AuthURLLte *string `json:"authURLLTE,omitempty"` + AuthURLContains *string `json:"authURLContains,omitempty"` + AuthURLHasPrefix *string `json:"authURLHasPrefix,omitempty"` + AuthURLHasSuffix *string `json:"authURLHasSuffix,omitempty"` + AuthURLEqualFold *string `json:"authURLEqualFold,omitempty"` + AuthURLContainsFold *string `json:"authURLContainsFold,omitempty"` + // token_url field predicates + TokenURL *string `json:"tokenURL,omitempty"` + TokenURLNeq *string `json:"tokenURLNEQ,omitempty"` + TokenURLIn []string `json:"tokenURLIn,omitempty"` + TokenURLNotIn []string `json:"tokenURLNotIn,omitempty"` + TokenURLGt *string `json:"tokenURLGT,omitempty"` + TokenURLGte *string `json:"tokenURLGTE,omitempty"` + TokenURLLt *string `json:"tokenURLLT,omitempty"` + TokenURLLte *string `json:"tokenURLLTE,omitempty"` + TokenURLContains *string `json:"tokenURLContains,omitempty"` + TokenURLHasPrefix *string `json:"tokenURLHasPrefix,omitempty"` + TokenURLHasSuffix *string `json:"tokenURLHasSuffix,omitempty"` + TokenURLEqualFold *string `json:"tokenURLEqualFold,omitempty"` + TokenURLContainsFold *string `json:"tokenURLContainsFold,omitempty"` + // auth_style field predicates + AuthStyle *string `json:"authStyle,omitempty"` + AuthStyleNeq *string `json:"authStyleNEQ,omitempty"` + AuthStyleIn []string `json:"authStyleIn,omitempty"` + AuthStyleNotIn []string `json:"authStyleNotIn,omitempty"` + AuthStyleGt *string `json:"authStyleGT,omitempty"` + AuthStyleGte *string `json:"authStyleGTE,omitempty"` + AuthStyleLt *string `json:"authStyleLT,omitempty"` + AuthStyleLte *string `json:"authStyleLTE,omitempty"` + // info_url field predicates + InfoURL *string `json:"infoURL,omitempty"` + InfoURLNeq *string `json:"infoURLNEQ,omitempty"` + InfoURLIn []string `json:"infoURLIn,omitempty"` + InfoURLNotIn []string `json:"infoURLNotIn,omitempty"` + InfoURLGt *string `json:"infoURLGT,omitempty"` + InfoURLGte *string `json:"infoURLGTE,omitempty"` + InfoURLLt *string `json:"infoURLLT,omitempty"` + InfoURLLte *string `json:"infoURLLTE,omitempty"` + InfoURLContains *string `json:"infoURLContains,omitempty"` + InfoURLHasPrefix *string `json:"infoURLHasPrefix,omitempty"` + InfoURLHasSuffix *string `json:"infoURLHasSuffix,omitempty"` + InfoURLEqualFold *string `json:"infoURLEqualFold,omitempty"` + InfoURLContainsFold *string `json:"infoURLContainsFold,omitempty"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` +} + +type OhAuthTooToken struct { + ID string `json:"id"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + ClientID string `json:"clientID"` + Scopes []string `json:"scopes,omitempty"` + Nonce string `json:"nonce"` + ClaimsUserID string `json:"claimsUserID"` + ClaimsUsername string `json:"claimsUsername"` + ClaimsEmail string `json:"claimsEmail"` + ClaimsEmailVerified bool `json:"claimsEmailVerified"` + ClaimsGroups []string `json:"claimsGroups,omitempty"` + ClaimsPreferredUsername string `json:"claimsPreferredUsername"` + ConnectorID string `json:"connectorID"` + ConnectorData []string `json:"connectorData,omitempty"` + LastUsed time.Time `json:"lastUsed"` + Integration []*Integration `json:"integration,omitempty"` + Events []*Event `json:"events,omitempty"` +} + +func (OhAuthTooToken) IsNode() {} + +// Return response for createBulkOhAuthTooToken mutation +type OhAuthTooTokenBulkCreatePayload struct { + // Created ohAuthTooTokens + OhAuthTooTokens []*OhAuthTooToken `json:"ohAuthTooTokens,omitempty"` +} + +// A connection to a list of items. +type OhAuthTooTokenConnection struct { + // A list of edges. + Edges []*OhAuthTooTokenEdge `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 createOhAuthTooToken mutation +type OhAuthTooTokenCreatePayload struct { + // Created ohAuthTooToken + OhAuthTooToken *OhAuthTooToken `json:"ohAuthTooToken"` +} + +// Return response for deleteOhAuthTooToken mutation +type OhAuthTooTokenDeletePayload struct { + // Deleted ohAuthTooToken ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type OhAuthTooTokenEdge struct { + // The item at the end of the edge. + Node *OhAuthTooToken `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type OhAuthTooTokenSearchResult struct { + OhAuthTooTokens []*OhAuthTooToken `json:"ohAuthTooTokens,omitempty"` +} + +func (OhAuthTooTokenSearchResult) IsSearchResult() {} + +// Return response for updateOhAuthTooToken mutation +type OhAuthTooTokenUpdatePayload struct { + // Updated ohAuthTooToken + OhAuthTooToken *OhAuthTooToken `json:"ohAuthTooToken"` +} + +// OhAuthTooTokenWhereInput is used for filtering OhAuthTooToken objects. +// Input was generated by ent. +type OhAuthTooTokenWhereInput struct { + Not *OhAuthTooTokenWhereInput `json:"not,omitempty"` + And []*OhAuthTooTokenWhereInput `json:"and,omitempty"` + Or []*OhAuthTooTokenWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // client_id field predicates + ClientID *string `json:"clientID,omitempty"` + ClientIdneq *string `json:"clientIDNEQ,omitempty"` + ClientIDIn []string `json:"clientIDIn,omitempty"` + ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` + ClientIdgt *string `json:"clientIDGT,omitempty"` + ClientIdgte *string `json:"clientIDGTE,omitempty"` + ClientIdlt *string `json:"clientIDLT,omitempty"` + ClientIdlte *string `json:"clientIDLTE,omitempty"` + ClientIDContains *string `json:"clientIDContains,omitempty"` + ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` + ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` + ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` + ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` + // nonce field predicates + Nonce *string `json:"nonce,omitempty"` + NonceNeq *string `json:"nonceNEQ,omitempty"` + NonceIn []string `json:"nonceIn,omitempty"` + NonceNotIn []string `json:"nonceNotIn,omitempty"` + NonceGt *string `json:"nonceGT,omitempty"` + NonceGte *string `json:"nonceGTE,omitempty"` + NonceLt *string `json:"nonceLT,omitempty"` + NonceLte *string `json:"nonceLTE,omitempty"` + NonceContains *string `json:"nonceContains,omitempty"` + NonceHasPrefix *string `json:"nonceHasPrefix,omitempty"` + NonceHasSuffix *string `json:"nonceHasSuffix,omitempty"` + NonceEqualFold *string `json:"nonceEqualFold,omitempty"` + NonceContainsFold *string `json:"nonceContainsFold,omitempty"` + // claims_user_id field predicates + ClaimsUserID *string `json:"claimsUserID,omitempty"` + ClaimsUserIdneq *string `json:"claimsUserIDNEQ,omitempty"` + ClaimsUserIDIn []string `json:"claimsUserIDIn,omitempty"` + ClaimsUserIDNotIn []string `json:"claimsUserIDNotIn,omitempty"` + ClaimsUserIdgt *string `json:"claimsUserIDGT,omitempty"` + ClaimsUserIdgte *string `json:"claimsUserIDGTE,omitempty"` + ClaimsUserIdlt *string `json:"claimsUserIDLT,omitempty"` + ClaimsUserIdlte *string `json:"claimsUserIDLTE,omitempty"` + ClaimsUserIDContains *string `json:"claimsUserIDContains,omitempty"` + ClaimsUserIDHasPrefix *string `json:"claimsUserIDHasPrefix,omitempty"` + ClaimsUserIDHasSuffix *string `json:"claimsUserIDHasSuffix,omitempty"` + ClaimsUserIDEqualFold *string `json:"claimsUserIDEqualFold,omitempty"` + ClaimsUserIDContainsFold *string `json:"claimsUserIDContainsFold,omitempty"` + // claims_username field predicates + ClaimsUsername *string `json:"claimsUsername,omitempty"` + ClaimsUsernameNeq *string `json:"claimsUsernameNEQ,omitempty"` + ClaimsUsernameIn []string `json:"claimsUsernameIn,omitempty"` + ClaimsUsernameNotIn []string `json:"claimsUsernameNotIn,omitempty"` + ClaimsUsernameGt *string `json:"claimsUsernameGT,omitempty"` + ClaimsUsernameGte *string `json:"claimsUsernameGTE,omitempty"` + ClaimsUsernameLt *string `json:"claimsUsernameLT,omitempty"` + ClaimsUsernameLte *string `json:"claimsUsernameLTE,omitempty"` + ClaimsUsernameContains *string `json:"claimsUsernameContains,omitempty"` + ClaimsUsernameHasPrefix *string `json:"claimsUsernameHasPrefix,omitempty"` + ClaimsUsernameHasSuffix *string `json:"claimsUsernameHasSuffix,omitempty"` + ClaimsUsernameEqualFold *string `json:"claimsUsernameEqualFold,omitempty"` + ClaimsUsernameContainsFold *string `json:"claimsUsernameContainsFold,omitempty"` + // claims_email field predicates + ClaimsEmail *string `json:"claimsEmail,omitempty"` + ClaimsEmailNeq *string `json:"claimsEmailNEQ,omitempty"` + ClaimsEmailIn []string `json:"claimsEmailIn,omitempty"` + ClaimsEmailNotIn []string `json:"claimsEmailNotIn,omitempty"` + ClaimsEmailGt *string `json:"claimsEmailGT,omitempty"` + ClaimsEmailGte *string `json:"claimsEmailGTE,omitempty"` + ClaimsEmailLt *string `json:"claimsEmailLT,omitempty"` + ClaimsEmailLte *string `json:"claimsEmailLTE,omitempty"` + ClaimsEmailContains *string `json:"claimsEmailContains,omitempty"` + ClaimsEmailHasPrefix *string `json:"claimsEmailHasPrefix,omitempty"` + ClaimsEmailHasSuffix *string `json:"claimsEmailHasSuffix,omitempty"` + ClaimsEmailEqualFold *string `json:"claimsEmailEqualFold,omitempty"` + ClaimsEmailContainsFold *string `json:"claimsEmailContainsFold,omitempty"` + // claims_email_verified field predicates + ClaimsEmailVerified *bool `json:"claimsEmailVerified,omitempty"` + ClaimsEmailVerifiedNeq *bool `json:"claimsEmailVerifiedNEQ,omitempty"` + // claims_preferred_username field predicates + ClaimsPreferredUsername *string `json:"claimsPreferredUsername,omitempty"` + ClaimsPreferredUsernameNeq *string `json:"claimsPreferredUsernameNEQ,omitempty"` + ClaimsPreferredUsernameIn []string `json:"claimsPreferredUsernameIn,omitempty"` + ClaimsPreferredUsernameNotIn []string `json:"claimsPreferredUsernameNotIn,omitempty"` + ClaimsPreferredUsernameGt *string `json:"claimsPreferredUsernameGT,omitempty"` + ClaimsPreferredUsernameGte *string `json:"claimsPreferredUsernameGTE,omitempty"` + ClaimsPreferredUsernameLt *string `json:"claimsPreferredUsernameLT,omitempty"` + ClaimsPreferredUsernameLte *string `json:"claimsPreferredUsernameLTE,omitempty"` + ClaimsPreferredUsernameContains *string `json:"claimsPreferredUsernameContains,omitempty"` + ClaimsPreferredUsernameHasPrefix *string `json:"claimsPreferredUsernameHasPrefix,omitempty"` + ClaimsPreferredUsernameHasSuffix *string `json:"claimsPreferredUsernameHasSuffix,omitempty"` + ClaimsPreferredUsernameEqualFold *string `json:"claimsPreferredUsernameEqualFold,omitempty"` + ClaimsPreferredUsernameContainsFold *string `json:"claimsPreferredUsernameContainsFold,omitempty"` + // connector_id field predicates + ConnectorID *string `json:"connectorID,omitempty"` + ConnectorIdneq *string `json:"connectorIDNEQ,omitempty"` + ConnectorIDIn []string `json:"connectorIDIn,omitempty"` + ConnectorIDNotIn []string `json:"connectorIDNotIn,omitempty"` + ConnectorIdgt *string `json:"connectorIDGT,omitempty"` + ConnectorIdgte *string `json:"connectorIDGTE,omitempty"` + ConnectorIdlt *string `json:"connectorIDLT,omitempty"` + ConnectorIdlte *string `json:"connectorIDLTE,omitempty"` + ConnectorIDContains *string `json:"connectorIDContains,omitempty"` + ConnectorIDHasPrefix *string `json:"connectorIDHasPrefix,omitempty"` + ConnectorIDHasSuffix *string `json:"connectorIDHasSuffix,omitempty"` + ConnectorIDEqualFold *string `json:"connectorIDEqualFold,omitempty"` + ConnectorIDContainsFold *string `json:"connectorIDContainsFold,omitempty"` + // last_used field predicates + LastUsed *time.Time `json:"lastUsed,omitempty"` + LastUsedNeq *time.Time `json:"lastUsedNEQ,omitempty"` + LastUsedIn []*time.Time `json:"lastUsedIn,omitempty"` + LastUsedNotIn []*time.Time `json:"lastUsedNotIn,omitempty"` + LastUsedGt *time.Time `json:"lastUsedGT,omitempty"` + LastUsedGte *time.Time `json:"lastUsedGTE,omitempty"` + LastUsedLt *time.Time `json:"lastUsedLT,omitempty"` + LastUsedLte *time.Time `json:"lastUsedLTE,omitempty"` + // integration edge predicates + HasIntegration *bool `json:"hasIntegration,omitempty"` + HasIntegrationWith []*IntegrationWhereInput `json:"hasIntegrationWith,omitempty"` + // events edge predicates + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` +} + +type OrgMembership 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + Role enums.Role `json:"role"` + OrganizationID string `json:"organizationID"` + UserID string `json:"userID"` + Organization *Organization `json:"organization"` + User *User `json:"user"` + Events []*Event `json:"events,omitempty"` +} + +func (OrgMembership) IsNode() {} + +// Return response for createBulkOrgMembership mutation +type OrgMembershipBulkCreatePayload struct { + // Created orgMemberships + OrgMemberships []*OrgMembership `json:"orgMemberships,omitempty"` +} + +// A connection to a list of items. +type OrgMembershipConnection struct { + // A list of edges. + Edges []*OrgMembershipEdge `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 createOrgMembership mutation +type OrgMembershipCreatePayload struct { + // Created orgMembership + OrgMembership *OrgMembership `json:"orgMembership"` +} + +// Return response for deleteOrgMembership mutation +type OrgMembershipDeletePayload struct { + // Deleted orgMembership ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type OrgMembershipEdge struct { + // The item at the end of the edge. + Node *OrgMembership `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type OrgMembershipHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + Role enums.Role `json:"role"` + OrganizationID string `json:"organizationID"` + UserID string `json:"userID"` +} + +func (OrgMembershipHistory) IsNode() {} + +// A connection to a list of items. +type OrgMembershipHistoryConnection struct { + // A list of edges. + Edges []*OrgMembershipHistoryEdge `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"` +} + +// An edge in a connection. +type OrgMembershipHistoryEdge struct { + // The item at the end of the edge. + Node *OrgMembershipHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. +// Input was generated by ent. +type OrgMembershipHistoryWhereInput struct { + Not *OrgMembershipHistoryWhereInput `json:"not,omitempty"` + And []*OrgMembershipHistoryWhereInput `json:"and,omitempty"` + Or []*OrgMembershipHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // role field predicates + Role *enums.Role `json:"role,omitempty"` + RoleNeq *enums.Role `json:"roleNEQ,omitempty"` + RoleIn []enums.Role `json:"roleIn,omitempty"` + RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` + // organization_id field predicates + OrganizationID *string `json:"organizationID,omitempty"` + OrganizationIdneq *string `json:"organizationIDNEQ,omitempty"` + OrganizationIDIn []string `json:"organizationIDIn,omitempty"` + OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` + OrganizationIdgt *string `json:"organizationIDGT,omitempty"` + OrganizationIdgte *string `json:"organizationIDGTE,omitempty"` + OrganizationIdlt *string `json:"organizationIDLT,omitempty"` + OrganizationIdlte *string `json:"organizationIDLTE,omitempty"` + OrganizationIDContains *string `json:"organizationIDContains,omitempty"` + OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` + OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` + OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` + OrganizationIDContainsFold *string `json:"organizationIDContainsFold,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"` + UserIdgt *string `json:"userIDGT,omitempty"` + UserIdgte *string `json:"userIDGTE,omitempty"` + UserIdlt *string `json:"userIDLT,omitempty"` + UserIdlte *string `json:"userIDLTE,omitempty"` + UserIDContains *string `json:"userIDContains,omitempty"` + UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` + UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` + UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` + UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` +} + +// Return response for updateOrgMembership mutation +type OrgMembershipUpdatePayload struct { + // Updated orgMembership + OrgMembership *OrgMembership `json:"orgMembership"` +} + +// OrgMembershipWhereInput is used for filtering OrgMembership objects. +// Input was generated by ent. +type OrgMembershipWhereInput struct { + Not *OrgMembershipWhereInput `json:"not,omitempty"` + And []*OrgMembershipWhereInput `json:"and,omitempty"` + Or []*OrgMembershipWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // role field predicates + Role *enums.Role `json:"role,omitempty"` + RoleNeq *enums.Role `json:"roleNEQ,omitempty"` + RoleIn []enums.Role `json:"roleIn,omitempty"` + RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` + OrganizationID *string `json:"organizationID,omitempty"` + UserID *string `json:"userID,omitempty"` +} + +type Organization 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"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // the name of the organization + Name string `json:"name"` + // The organization's displayed 'friendly' name + DisplayName string `json:"displayName"` + // An optional description of the organization + Description *string `json:"description,omitempty"` + // orgs directly associated with a user + PersonalOrg *bool `json:"personalOrg,omitempty"` + // URL of the user's remote avatar + AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` + // Whether the organization has a dedicated database + DedicatedDb bool `json:"dedicatedDb"` + Parent *Organization `json:"parent,omitempty"` + Children *OrganizationConnection `json:"children"` + Groups []*Group `json:"groups,omitempty"` + Templates []*Template `json:"templates,omitempty"` + Integrations []*Integration `json:"integrations,omitempty"` + Setting *OrganizationSetting `json:"setting,omitempty"` + Documentdata []*DocumentData `json:"documentdata,omitempty"` + Entitlements []*Entitlement `json:"entitlements,omitempty"` + OrganizationEntitlement []*Entitlement `json:"organizationEntitlement,omitempty"` + PersonalAccessTokens []*PersonalAccessToken `json:"personalAccessTokens,omitempty"` + APITokens []*APIToken `json:"apiTokens,omitempty"` + Oauthprovider []*OauthProvider `json:"oauthprovider,omitempty"` + Users []*User `json:"users,omitempty"` + Invites []*Invite `json:"invites,omitempty"` + Subscribers []*Subscriber `json:"subscribers,omitempty"` + Webhooks []*Webhook `json:"webhooks,omitempty"` + Events []*Event `json:"events,omitempty"` + Secrets []*Hush `json:"secrets,omitempty"` + Features []*Feature `json:"features,omitempty"` + Files []*File `json:"files,omitempty"` + Entitlementplans []*EntitlementPlan `json:"entitlementplans,omitempty"` + Entitlementplanfeatures []*EntitlementPlanFeature `json:"entitlementplanfeatures,omitempty"` + Entities []*Entity `json:"entities,omitempty"` + Entitytypes []*EntityType `json:"entitytypes,omitempty"` + Contacts []*Contact `json:"contacts,omitempty"` + Notes []*Note `json:"notes,omitempty"` + Members []*OrgMembership `json:"members,omitempty"` +} + +func (Organization) IsNode() {} + +// Return response for createBulkOrganization mutation +type OrganizationBulkCreatePayload struct { + // Created organizations + Organizations []*Organization `json:"organizations,omitempty"` +} + +// A connection to a list of items. +type OrganizationConnection struct { + // A list of edges. + Edges []*OrganizationEdge `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 createOrganization mutation +type OrganizationCreatePayload struct { + // Created organization + Organization *Organization `json:"organization"` +} + +// Return response for deleteOrganization mutation +type OrganizationDeletePayload struct { + // Deleted organization ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type OrganizationEdge struct { + // The item at the end of the edge. + Node *Organization `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type OrganizationHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // the name of the organization + Name string `json:"name"` + // The organization's displayed 'friendly' name + DisplayName string `json:"displayName"` + // An optional description of the organization + Description *string `json:"description,omitempty"` + // orgs directly associated with a user + PersonalOrg *bool `json:"personalOrg,omitempty"` + // URL of the user's remote avatar + AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` + // Whether the organization has a dedicated database + DedicatedDb bool `json:"dedicatedDb"` +} + +func (OrganizationHistory) IsNode() {} + +// A connection to a list of items. +type OrganizationHistoryConnection struct { + // A list of edges. + Edges []*OrganizationHistoryEdge `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"` +} + +// An edge in a connection. +type OrganizationHistoryEdge struct { + // The item at the end of the edge. + Node *OrganizationHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// Ordering options for OrganizationHistory connections +type OrganizationHistoryOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order OrganizationHistories. + Field OrganizationHistoryOrderField `json:"field"` +} + +// OrganizationHistoryWhereInput is used for filtering OrganizationHistory objects. +// Input was generated by ent. +type OrganizationHistoryWhereInput struct { + Not *OrganizationHistoryWhereInput `json:"not,omitempty"` + And []*OrganizationHistoryWhereInput `json:"and,omitempty"` + Or []*OrganizationHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // display_name field predicates + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGt *string `json:"displayNameGT,omitempty"` + DisplayNameGte *string `json:"displayNameGTE,omitempty"` + DisplayNameLt *string `json:"displayNameLT,omitempty"` + DisplayNameLte *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // parent_organization_id field predicates + ParentOrganizationID *string `json:"parentOrganizationID,omitempty"` + ParentOrganizationIdneq *string `json:"parentOrganizationIDNEQ,omitempty"` + ParentOrganizationIDIn []string `json:"parentOrganizationIDIn,omitempty"` + ParentOrganizationIDNotIn []string `json:"parentOrganizationIDNotIn,omitempty"` + ParentOrganizationIdgt *string `json:"parentOrganizationIDGT,omitempty"` + ParentOrganizationIdgte *string `json:"parentOrganizationIDGTE,omitempty"` + ParentOrganizationIdlt *string `json:"parentOrganizationIDLT,omitempty"` + ParentOrganizationIdlte *string `json:"parentOrganizationIDLTE,omitempty"` + ParentOrganizationIDContains *string `json:"parentOrganizationIDContains,omitempty"` + ParentOrganizationIDHasPrefix *string `json:"parentOrganizationIDHasPrefix,omitempty"` + ParentOrganizationIDHasSuffix *string `json:"parentOrganizationIDHasSuffix,omitempty"` + ParentOrganizationIDIsNil *bool `json:"parentOrganizationIDIsNil,omitempty"` + ParentOrganizationIDNotNil *bool `json:"parentOrganizationIDNotNil,omitempty"` + ParentOrganizationIDEqualFold *string `json:"parentOrganizationIDEqualFold,omitempty"` + ParentOrganizationIDContainsFold *string `json:"parentOrganizationIDContainsFold,omitempty"` + // personal_org field predicates + PersonalOrg *bool `json:"personalOrg,omitempty"` + PersonalOrgNeq *bool `json:"personalOrgNEQ,omitempty"` + PersonalOrgIsNil *bool `json:"personalOrgIsNil,omitempty"` + PersonalOrgNotNil *bool `json:"personalOrgNotNil,omitempty"` + // avatar_remote_url field predicates + AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` + AvatarRemoteURLNeq *string `json:"avatarRemoteURLNEQ,omitempty"` + AvatarRemoteURLIn []string `json:"avatarRemoteURLIn,omitempty"` + AvatarRemoteURLNotIn []string `json:"avatarRemoteURLNotIn,omitempty"` + AvatarRemoteURLGt *string `json:"avatarRemoteURLGT,omitempty"` + AvatarRemoteURLGte *string `json:"avatarRemoteURLGTE,omitempty"` + AvatarRemoteURLLt *string `json:"avatarRemoteURLLT,omitempty"` + AvatarRemoteURLLte *string `json:"avatarRemoteURLLTE,omitempty"` + AvatarRemoteURLContains *string `json:"avatarRemoteURLContains,omitempty"` + AvatarRemoteURLHasPrefix *string `json:"avatarRemoteURLHasPrefix,omitempty"` + AvatarRemoteURLHasSuffix *string `json:"avatarRemoteURLHasSuffix,omitempty"` + AvatarRemoteURLIsNil *bool `json:"avatarRemoteURLIsNil,omitempty"` + AvatarRemoteURLNotNil *bool `json:"avatarRemoteURLNotNil,omitempty"` + AvatarRemoteURLEqualFold *string `json:"avatarRemoteURLEqualFold,omitempty"` + AvatarRemoteURLContainsFold *string `json:"avatarRemoteURLContainsFold,omitempty"` +} + +// Ordering options for Organization connections +type OrganizationOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order Organizations. + Field OrganizationOrderField `json:"field"` +} + +type OrganizationSearchResult struct { + Organizations []*Organization `json:"organizations,omitempty"` +} + +func (OrganizationSearchResult) IsSearchResult() {} + +type OrganizationSetting 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"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // domains associated with the organization + Domains []string `json:"domains,omitempty"` + // Name of the person to contact for billing + BillingContact *string `json:"billingContact,omitempty"` + // Email address of the person to contact for billing + BillingEmail *string `json:"billingEmail,omitempty"` + // Phone number to contact for billing + BillingPhone *string `json:"billingPhone,omitempty"` + // Address to send billing information to + BillingAddress *string `json:"billingAddress,omitempty"` + // Usually government-issued tax ID or business ID such as ABN in Australia + TaxIdentifier *string `json:"taxIdentifier,omitempty"` + // geographical location of the organization + GeoLocation *enums.Region `json:"geoLocation,omitempty"` + // the ID of the organization the settings belong to + OrganizationID *string `json:"organizationID,omitempty"` + Organization *Organization `json:"organization,omitempty"` + Files []*File `json:"files,omitempty"` +} + +func (OrganizationSetting) IsNode() {} + +// Return response for createBulkOrganizationSetting mutation +type OrganizationSettingBulkCreatePayload struct { + // Created organizationSettings + OrganizationSettings []*OrganizationSetting `json:"organizationSettings,omitempty"` +} + +// A connection to a list of items. +type OrganizationSettingConnection struct { + // A list of edges. + Edges []*OrganizationSettingEdge `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 createOrganizationSetting mutation +type OrganizationSettingCreatePayload struct { + // Created organizationSetting + OrganizationSetting *OrganizationSetting `json:"organizationSetting"` +} + +// Return response for deleteOrganizationSetting mutation +type OrganizationSettingDeletePayload struct { + // Deleted organizationSetting ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type OrganizationSettingEdge struct { + // The item at the end of the edge. + Node *OrganizationSetting `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type OrganizationSettingHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // domains associated with the organization + Domains []string `json:"domains,omitempty"` + // Name of the person to contact for billing + BillingContact *string `json:"billingContact,omitempty"` + // Email address of the person to contact for billing + BillingEmail *string `json:"billingEmail,omitempty"` + // Phone number to contact for billing + BillingPhone *string `json:"billingPhone,omitempty"` + // Address to send billing information to + BillingAddress *string `json:"billingAddress,omitempty"` + // Usually government-issued tax ID or business ID such as ABN in Australia + TaxIdentifier *string `json:"taxIdentifier,omitempty"` + // geographical location of the organization + GeoLocation *enums.Region `json:"geoLocation,omitempty"` + // the ID of the organization the settings belong to + OrganizationID *string `json:"organizationID,omitempty"` +} + +func (OrganizationSettingHistory) IsNode() {} + +// A connection to a list of items. +type OrganizationSettingHistoryConnection struct { + // A list of edges. + Edges []*OrganizationSettingHistoryEdge `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"` +} + +// An edge in a connection. +type OrganizationSettingHistoryEdge struct { + // The item at the end of the edge. + Node *OrganizationSettingHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// OrganizationSettingHistoryWhereInput is used for filtering OrganizationSettingHistory objects. +// Input was generated by ent. +type OrganizationSettingHistoryWhereInput struct { + Not *OrganizationSettingHistoryWhereInput `json:"not,omitempty"` + And []*OrganizationSettingHistoryWhereInput `json:"and,omitempty"` + Or []*OrganizationSettingHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // billing_contact field predicates + BillingContact *string `json:"billingContact,omitempty"` + BillingContactNeq *string `json:"billingContactNEQ,omitempty"` + BillingContactIn []string `json:"billingContactIn,omitempty"` + BillingContactNotIn []string `json:"billingContactNotIn,omitempty"` + BillingContactGt *string `json:"billingContactGT,omitempty"` + BillingContactGte *string `json:"billingContactGTE,omitempty"` + BillingContactLt *string `json:"billingContactLT,omitempty"` + BillingContactLte *string `json:"billingContactLTE,omitempty"` + BillingContactContains *string `json:"billingContactContains,omitempty"` + BillingContactHasPrefix *string `json:"billingContactHasPrefix,omitempty"` + BillingContactHasSuffix *string `json:"billingContactHasSuffix,omitempty"` + BillingContactIsNil *bool `json:"billingContactIsNil,omitempty"` + BillingContactNotNil *bool `json:"billingContactNotNil,omitempty"` + BillingContactEqualFold *string `json:"billingContactEqualFold,omitempty"` + BillingContactContainsFold *string `json:"billingContactContainsFold,omitempty"` + // billing_email field predicates + BillingEmail *string `json:"billingEmail,omitempty"` + BillingEmailNeq *string `json:"billingEmailNEQ,omitempty"` + BillingEmailIn []string `json:"billingEmailIn,omitempty"` + BillingEmailNotIn []string `json:"billingEmailNotIn,omitempty"` + BillingEmailGt *string `json:"billingEmailGT,omitempty"` + BillingEmailGte *string `json:"billingEmailGTE,omitempty"` + BillingEmailLt *string `json:"billingEmailLT,omitempty"` + BillingEmailLte *string `json:"billingEmailLTE,omitempty"` + BillingEmailContains *string `json:"billingEmailContains,omitempty"` + BillingEmailHasPrefix *string `json:"billingEmailHasPrefix,omitempty"` + BillingEmailHasSuffix *string `json:"billingEmailHasSuffix,omitempty"` + BillingEmailIsNil *bool `json:"billingEmailIsNil,omitempty"` + BillingEmailNotNil *bool `json:"billingEmailNotNil,omitempty"` + BillingEmailEqualFold *string `json:"billingEmailEqualFold,omitempty"` + BillingEmailContainsFold *string `json:"billingEmailContainsFold,omitempty"` + // billing_phone field predicates + BillingPhone *string `json:"billingPhone,omitempty"` + BillingPhoneNeq *string `json:"billingPhoneNEQ,omitempty"` + BillingPhoneIn []string `json:"billingPhoneIn,omitempty"` + BillingPhoneNotIn []string `json:"billingPhoneNotIn,omitempty"` + BillingPhoneGt *string `json:"billingPhoneGT,omitempty"` + BillingPhoneGte *string `json:"billingPhoneGTE,omitempty"` + BillingPhoneLt *string `json:"billingPhoneLT,omitempty"` + BillingPhoneLte *string `json:"billingPhoneLTE,omitempty"` + BillingPhoneContains *string `json:"billingPhoneContains,omitempty"` + BillingPhoneHasPrefix *string `json:"billingPhoneHasPrefix,omitempty"` + BillingPhoneHasSuffix *string `json:"billingPhoneHasSuffix,omitempty"` + BillingPhoneIsNil *bool `json:"billingPhoneIsNil,omitempty"` + BillingPhoneNotNil *bool `json:"billingPhoneNotNil,omitempty"` + BillingPhoneEqualFold *string `json:"billingPhoneEqualFold,omitempty"` + BillingPhoneContainsFold *string `json:"billingPhoneContainsFold,omitempty"` + // billing_address field predicates + BillingAddress *string `json:"billingAddress,omitempty"` + BillingAddressNeq *string `json:"billingAddressNEQ,omitempty"` + BillingAddressIn []string `json:"billingAddressIn,omitempty"` + BillingAddressNotIn []string `json:"billingAddressNotIn,omitempty"` + BillingAddressGt *string `json:"billingAddressGT,omitempty"` + BillingAddressGte *string `json:"billingAddressGTE,omitempty"` + BillingAddressLt *string `json:"billingAddressLT,omitempty"` + BillingAddressLte *string `json:"billingAddressLTE,omitempty"` + BillingAddressContains *string `json:"billingAddressContains,omitempty"` + BillingAddressHasPrefix *string `json:"billingAddressHasPrefix,omitempty"` + BillingAddressHasSuffix *string `json:"billingAddressHasSuffix,omitempty"` + BillingAddressIsNil *bool `json:"billingAddressIsNil,omitempty"` + BillingAddressNotNil *bool `json:"billingAddressNotNil,omitempty"` + BillingAddressEqualFold *string `json:"billingAddressEqualFold,omitempty"` + BillingAddressContainsFold *string `json:"billingAddressContainsFold,omitempty"` + // tax_identifier field predicates + TaxIdentifier *string `json:"taxIdentifier,omitempty"` + TaxIdentifierNeq *string `json:"taxIdentifierNEQ,omitempty"` + TaxIdentifierIn []string `json:"taxIdentifierIn,omitempty"` + TaxIdentifierNotIn []string `json:"taxIdentifierNotIn,omitempty"` + TaxIdentifierGt *string `json:"taxIdentifierGT,omitempty"` + TaxIdentifierGte *string `json:"taxIdentifierGTE,omitempty"` + TaxIdentifierLt *string `json:"taxIdentifierLT,omitempty"` + TaxIdentifierLte *string `json:"taxIdentifierLTE,omitempty"` + TaxIdentifierContains *string `json:"taxIdentifierContains,omitempty"` + TaxIdentifierHasPrefix *string `json:"taxIdentifierHasPrefix,omitempty"` + TaxIdentifierHasSuffix *string `json:"taxIdentifierHasSuffix,omitempty"` + TaxIdentifierIsNil *bool `json:"taxIdentifierIsNil,omitempty"` + TaxIdentifierNotNil *bool `json:"taxIdentifierNotNil,omitempty"` + TaxIdentifierEqualFold *string `json:"taxIdentifierEqualFold,omitempty"` + TaxIdentifierContainsFold *string `json:"taxIdentifierContainsFold,omitempty"` + // geo_location field predicates + GeoLocation *enums.Region `json:"geoLocation,omitempty"` + GeoLocationNeq *enums.Region `json:"geoLocationNEQ,omitempty"` + GeoLocationIn []enums.Region `json:"geoLocationIn,omitempty"` + GeoLocationNotIn []enums.Region `json:"geoLocationNotIn,omitempty"` + GeoLocationIsNil *bool `json:"geoLocationIsNil,omitempty"` + GeoLocationNotNil *bool `json:"geoLocationNotNil,omitempty"` + // organization_id field predicates + OrganizationID *string `json:"organizationID,omitempty"` + OrganizationIdneq *string `json:"organizationIDNEQ,omitempty"` + OrganizationIDIn []string `json:"organizationIDIn,omitempty"` + OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` + OrganizationIdgt *string `json:"organizationIDGT,omitempty"` + OrganizationIdgte *string `json:"organizationIDGTE,omitempty"` + OrganizationIdlt *string `json:"organizationIDLT,omitempty"` + OrganizationIdlte *string `json:"organizationIDLTE,omitempty"` + OrganizationIDContains *string `json:"organizationIDContains,omitempty"` + OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` + OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` + OrganizationIDIsNil *bool `json:"organizationIDIsNil,omitempty"` + OrganizationIDNotNil *bool `json:"organizationIDNotNil,omitempty"` + OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` + OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` +} + +type OrganizationSettingSearchResult struct { + OrganizationSettings []*OrganizationSetting `json:"organizationSettings,omitempty"` +} + +func (OrganizationSettingSearchResult) IsSearchResult() {} + +// Return response for updateOrganizationSetting mutation +type OrganizationSettingUpdatePayload struct { + // Updated organizationSetting + OrganizationSetting *OrganizationSetting `json:"organizationSetting"` +} + +// OrganizationSettingWhereInput is used for filtering OrganizationSetting objects. +// Input was generated by ent. +type OrganizationSettingWhereInput struct { + Not *OrganizationSettingWhereInput `json:"not,omitempty"` + And []*OrganizationSettingWhereInput `json:"and,omitempty"` + Or []*OrganizationSettingWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // billing_contact field predicates + BillingContact *string `json:"billingContact,omitempty"` + BillingContactNeq *string `json:"billingContactNEQ,omitempty"` + BillingContactIn []string `json:"billingContactIn,omitempty"` + BillingContactNotIn []string `json:"billingContactNotIn,omitempty"` + BillingContactGt *string `json:"billingContactGT,omitempty"` + BillingContactGte *string `json:"billingContactGTE,omitempty"` + BillingContactLt *string `json:"billingContactLT,omitempty"` + BillingContactLte *string `json:"billingContactLTE,omitempty"` + BillingContactContains *string `json:"billingContactContains,omitempty"` + BillingContactHasPrefix *string `json:"billingContactHasPrefix,omitempty"` + BillingContactHasSuffix *string `json:"billingContactHasSuffix,omitempty"` + BillingContactIsNil *bool `json:"billingContactIsNil,omitempty"` + BillingContactNotNil *bool `json:"billingContactNotNil,omitempty"` + BillingContactEqualFold *string `json:"billingContactEqualFold,omitempty"` + BillingContactContainsFold *string `json:"billingContactContainsFold,omitempty"` + // billing_email field predicates + BillingEmail *string `json:"billingEmail,omitempty"` + BillingEmailNeq *string `json:"billingEmailNEQ,omitempty"` + BillingEmailIn []string `json:"billingEmailIn,omitempty"` + BillingEmailNotIn []string `json:"billingEmailNotIn,omitempty"` + BillingEmailGt *string `json:"billingEmailGT,omitempty"` + BillingEmailGte *string `json:"billingEmailGTE,omitempty"` + BillingEmailLt *string `json:"billingEmailLT,omitempty"` + BillingEmailLte *string `json:"billingEmailLTE,omitempty"` + BillingEmailContains *string `json:"billingEmailContains,omitempty"` + BillingEmailHasPrefix *string `json:"billingEmailHasPrefix,omitempty"` + BillingEmailHasSuffix *string `json:"billingEmailHasSuffix,omitempty"` + BillingEmailIsNil *bool `json:"billingEmailIsNil,omitempty"` + BillingEmailNotNil *bool `json:"billingEmailNotNil,omitempty"` + BillingEmailEqualFold *string `json:"billingEmailEqualFold,omitempty"` + BillingEmailContainsFold *string `json:"billingEmailContainsFold,omitempty"` + // billing_phone field predicates + BillingPhone *string `json:"billingPhone,omitempty"` + BillingPhoneNeq *string `json:"billingPhoneNEQ,omitempty"` + BillingPhoneIn []string `json:"billingPhoneIn,omitempty"` + BillingPhoneNotIn []string `json:"billingPhoneNotIn,omitempty"` + BillingPhoneGt *string `json:"billingPhoneGT,omitempty"` + BillingPhoneGte *string `json:"billingPhoneGTE,omitempty"` + BillingPhoneLt *string `json:"billingPhoneLT,omitempty"` + BillingPhoneLte *string `json:"billingPhoneLTE,omitempty"` + BillingPhoneContains *string `json:"billingPhoneContains,omitempty"` + BillingPhoneHasPrefix *string `json:"billingPhoneHasPrefix,omitempty"` + BillingPhoneHasSuffix *string `json:"billingPhoneHasSuffix,omitempty"` + BillingPhoneIsNil *bool `json:"billingPhoneIsNil,omitempty"` + BillingPhoneNotNil *bool `json:"billingPhoneNotNil,omitempty"` + BillingPhoneEqualFold *string `json:"billingPhoneEqualFold,omitempty"` + BillingPhoneContainsFold *string `json:"billingPhoneContainsFold,omitempty"` + // billing_address field predicates + BillingAddress *string `json:"billingAddress,omitempty"` + BillingAddressNeq *string `json:"billingAddressNEQ,omitempty"` + BillingAddressIn []string `json:"billingAddressIn,omitempty"` + BillingAddressNotIn []string `json:"billingAddressNotIn,omitempty"` + BillingAddressGt *string `json:"billingAddressGT,omitempty"` + BillingAddressGte *string `json:"billingAddressGTE,omitempty"` + BillingAddressLt *string `json:"billingAddressLT,omitempty"` + BillingAddressLte *string `json:"billingAddressLTE,omitempty"` + BillingAddressContains *string `json:"billingAddressContains,omitempty"` + BillingAddressHasPrefix *string `json:"billingAddressHasPrefix,omitempty"` + BillingAddressHasSuffix *string `json:"billingAddressHasSuffix,omitempty"` + BillingAddressIsNil *bool `json:"billingAddressIsNil,omitempty"` + BillingAddressNotNil *bool `json:"billingAddressNotNil,omitempty"` + BillingAddressEqualFold *string `json:"billingAddressEqualFold,omitempty"` + BillingAddressContainsFold *string `json:"billingAddressContainsFold,omitempty"` + // tax_identifier field predicates + TaxIdentifier *string `json:"taxIdentifier,omitempty"` + TaxIdentifierNeq *string `json:"taxIdentifierNEQ,omitempty"` + TaxIdentifierIn []string `json:"taxIdentifierIn,omitempty"` + TaxIdentifierNotIn []string `json:"taxIdentifierNotIn,omitempty"` + TaxIdentifierGt *string `json:"taxIdentifierGT,omitempty"` + TaxIdentifierGte *string `json:"taxIdentifierGTE,omitempty"` + TaxIdentifierLt *string `json:"taxIdentifierLT,omitempty"` + TaxIdentifierLte *string `json:"taxIdentifierLTE,omitempty"` + TaxIdentifierContains *string `json:"taxIdentifierContains,omitempty"` + TaxIdentifierHasPrefix *string `json:"taxIdentifierHasPrefix,omitempty"` + TaxIdentifierHasSuffix *string `json:"taxIdentifierHasSuffix,omitempty"` + TaxIdentifierIsNil *bool `json:"taxIdentifierIsNil,omitempty"` + TaxIdentifierNotNil *bool `json:"taxIdentifierNotNil,omitempty"` + TaxIdentifierEqualFold *string `json:"taxIdentifierEqualFold,omitempty"` + TaxIdentifierContainsFold *string `json:"taxIdentifierContainsFold,omitempty"` + // geo_location field predicates + GeoLocation *enums.Region `json:"geoLocation,omitempty"` + GeoLocationNeq *enums.Region `json:"geoLocationNEQ,omitempty"` + GeoLocationIn []enums.Region `json:"geoLocationIn,omitempty"` + GeoLocationNotIn []enums.Region `json:"geoLocationNotIn,omitempty"` + GeoLocationIsNil *bool `json:"geoLocationIsNil,omitempty"` + GeoLocationNotNil *bool `json:"geoLocationNotNil,omitempty"` + // organization_id field predicates + OrganizationID *string `json:"organizationID,omitempty"` + OrganizationIdneq *string `json:"organizationIDNEQ,omitempty"` + OrganizationIDIn []string `json:"organizationIDIn,omitempty"` + OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` + OrganizationIdgt *string `json:"organizationIDGT,omitempty"` + OrganizationIdgte *string `json:"organizationIDGTE,omitempty"` + OrganizationIdlt *string `json:"organizationIDLT,omitempty"` + OrganizationIdlte *string `json:"organizationIDLTE,omitempty"` + OrganizationIDContains *string `json:"organizationIDContains,omitempty"` + OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` + OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` + OrganizationIDIsNil *bool `json:"organizationIDIsNil,omitempty"` + OrganizationIDNotNil *bool `json:"organizationIDNotNil,omitempty"` + OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` + OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` + // organization edge predicates + HasOrganization *bool `json:"hasOrganization,omitempty"` + HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` + // files edge predicates + HasFiles *bool `json:"hasFiles,omitempty"` + HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` +} + +// Return response for updateOrganization mutation +type OrganizationUpdatePayload struct { + // Updated organization + Organization *Organization `json:"organization"` +} -// Return response for updateOauthProvider mutation -type OauthProviderUpdatePayload struct { - // Updated oauthProvider - OauthProvider *OauthProvider `json:"oauthProvider"` +// OrganizationWhereInput is used for filtering Organization objects. +// Input was generated by ent. +type OrganizationWhereInput struct { + Not *OrganizationWhereInput `json:"not,omitempty"` + And []*OrganizationWhereInput `json:"and,omitempty"` + Or []*OrganizationWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // display_name field predicates + DisplayName *string `json:"displayName,omitempty"` + DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` + DisplayNameIn []string `json:"displayNameIn,omitempty"` + DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` + DisplayNameGt *string `json:"displayNameGT,omitempty"` + DisplayNameGte *string `json:"displayNameGTE,omitempty"` + DisplayNameLt *string `json:"displayNameLT,omitempty"` + DisplayNameLte *string `json:"displayNameLTE,omitempty"` + DisplayNameContains *string `json:"displayNameContains,omitempty"` + DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` + DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` + DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` + DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` + // parent_organization_id field predicates + ParentOrganizationID *string `json:"parentOrganizationID,omitempty"` + ParentOrganizationIdneq *string `json:"parentOrganizationIDNEQ,omitempty"` + ParentOrganizationIDIn []string `json:"parentOrganizationIDIn,omitempty"` + ParentOrganizationIDNotIn []string `json:"parentOrganizationIDNotIn,omitempty"` + ParentOrganizationIdgt *string `json:"parentOrganizationIDGT,omitempty"` + ParentOrganizationIdgte *string `json:"parentOrganizationIDGTE,omitempty"` + ParentOrganizationIdlt *string `json:"parentOrganizationIDLT,omitempty"` + ParentOrganizationIdlte *string `json:"parentOrganizationIDLTE,omitempty"` + ParentOrganizationIDContains *string `json:"parentOrganizationIDContains,omitempty"` + ParentOrganizationIDHasPrefix *string `json:"parentOrganizationIDHasPrefix,omitempty"` + ParentOrganizationIDHasSuffix *string `json:"parentOrganizationIDHasSuffix,omitempty"` + ParentOrganizationIDIsNil *bool `json:"parentOrganizationIDIsNil,omitempty"` + ParentOrganizationIDNotNil *bool `json:"parentOrganizationIDNotNil,omitempty"` + ParentOrganizationIDEqualFold *string `json:"parentOrganizationIDEqualFold,omitempty"` + ParentOrganizationIDContainsFold *string `json:"parentOrganizationIDContainsFold,omitempty"` + // personal_org field predicates + PersonalOrg *bool `json:"personalOrg,omitempty"` + PersonalOrgNeq *bool `json:"personalOrgNEQ,omitempty"` + PersonalOrgIsNil *bool `json:"personalOrgIsNil,omitempty"` + PersonalOrgNotNil *bool `json:"personalOrgNotNil,omitempty"` + // avatar_remote_url field predicates + AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` + AvatarRemoteURLNeq *string `json:"avatarRemoteURLNEQ,omitempty"` + AvatarRemoteURLIn []string `json:"avatarRemoteURLIn,omitempty"` + AvatarRemoteURLNotIn []string `json:"avatarRemoteURLNotIn,omitempty"` + AvatarRemoteURLGt *string `json:"avatarRemoteURLGT,omitempty"` + AvatarRemoteURLGte *string `json:"avatarRemoteURLGTE,omitempty"` + AvatarRemoteURLLt *string `json:"avatarRemoteURLLT,omitempty"` + AvatarRemoteURLLte *string `json:"avatarRemoteURLLTE,omitempty"` + AvatarRemoteURLContains *string `json:"avatarRemoteURLContains,omitempty"` + AvatarRemoteURLHasPrefix *string `json:"avatarRemoteURLHasPrefix,omitempty"` + AvatarRemoteURLHasSuffix *string `json:"avatarRemoteURLHasSuffix,omitempty"` + AvatarRemoteURLIsNil *bool `json:"avatarRemoteURLIsNil,omitempty"` + AvatarRemoteURLNotNil *bool `json:"avatarRemoteURLNotNil,omitempty"` + AvatarRemoteURLEqualFold *string `json:"avatarRemoteURLEqualFold,omitempty"` + AvatarRemoteURLContainsFold *string `json:"avatarRemoteURLContainsFold,omitempty"` + // parent edge predicates + HasParent *bool `json:"hasParent,omitempty"` + HasParentWith []*OrganizationWhereInput `json:"hasParentWith,omitempty"` + // children edge predicates + HasChildren *bool `json:"hasChildren,omitempty"` + HasChildrenWith []*OrganizationWhereInput `json:"hasChildrenWith,omitempty"` + // groups edge predicates + HasGroups *bool `json:"hasGroups,omitempty"` + HasGroupsWith []*GroupWhereInput `json:"hasGroupsWith,omitempty"` + // templates edge predicates + HasTemplates *bool `json:"hasTemplates,omitempty"` + HasTemplatesWith []*TemplateWhereInput `json:"hasTemplatesWith,omitempty"` + // integrations edge predicates + HasIntegrations *bool `json:"hasIntegrations,omitempty"` + HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` + // setting edge predicates + HasSetting *bool `json:"hasSetting,omitempty"` + HasSettingWith []*OrganizationSettingWhereInput `json:"hasSettingWith,omitempty"` + // documentdata edge predicates + HasDocumentdata *bool `json:"hasDocumentdata,omitempty"` + HasDocumentdataWith []*DocumentDataWhereInput `json:"hasDocumentdataWith,omitempty"` + // entitlements edge predicates + HasEntitlements *bool `json:"hasEntitlements,omitempty"` + HasEntitlementsWith []*EntitlementWhereInput `json:"hasEntitlementsWith,omitempty"` + // organization_entitlement edge predicates + HasOrganizationEntitlement *bool `json:"hasOrganizationEntitlement,omitempty"` + HasOrganizationEntitlementWith []*EntitlementWhereInput `json:"hasOrganizationEntitlementWith,omitempty"` + // personal_access_tokens edge predicates + HasPersonalAccessTokens *bool `json:"hasPersonalAccessTokens,omitempty"` + HasPersonalAccessTokensWith []*PersonalAccessTokenWhereInput `json:"hasPersonalAccessTokensWith,omitempty"` + // api_tokens edge predicates + HasAPITokens *bool `json:"hasAPITokens,omitempty"` + HasAPITokensWith []*APITokenWhereInput `json:"hasAPITokensWith,omitempty"` + // oauthprovider edge predicates + HasOauthprovider *bool `json:"hasOauthprovider,omitempty"` + HasOauthproviderWith []*OauthProviderWhereInput `json:"hasOauthproviderWith,omitempty"` + // users edge predicates + HasUsers *bool `json:"hasUsers,omitempty"` + HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"` + // invites edge predicates + HasInvites *bool `json:"hasInvites,omitempty"` + HasInvitesWith []*InviteWhereInput `json:"hasInvitesWith,omitempty"` + // subscribers edge predicates + HasSubscribers *bool `json:"hasSubscribers,omitempty"` + HasSubscribersWith []*SubscriberWhereInput `json:"hasSubscribersWith,omitempty"` + // webhooks edge predicates + HasWebhooks *bool `json:"hasWebhooks,omitempty"` + HasWebhooksWith []*WebhookWhereInput `json:"hasWebhooksWith,omitempty"` + // events edge predicates + HasEvents *bool `json:"hasEvents,omitempty"` + HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // secrets edge predicates + HasSecrets *bool `json:"hasSecrets,omitempty"` + HasSecretsWith []*HushWhereInput `json:"hasSecretsWith,omitempty"` + // features edge predicates + HasFeatures *bool `json:"hasFeatures,omitempty"` + HasFeaturesWith []*FeatureWhereInput `json:"hasFeaturesWith,omitempty"` + // files edge predicates + HasFiles *bool `json:"hasFiles,omitempty"` + HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` + // entitlementplans edge predicates + HasEntitlementplans *bool `json:"hasEntitlementplans,omitempty"` + HasEntitlementplansWith []*EntitlementPlanWhereInput `json:"hasEntitlementplansWith,omitempty"` + // entitlementplanfeatures edge predicates + HasEntitlementplanfeatures *bool `json:"hasEntitlementplanfeatures,omitempty"` + HasEntitlementplanfeaturesWith []*EntitlementPlanFeatureWhereInput `json:"hasEntitlementplanfeaturesWith,omitempty"` + // entities edge predicates + HasEntities *bool `json:"hasEntities,omitempty"` + HasEntitiesWith []*EntityWhereInput `json:"hasEntitiesWith,omitempty"` + // entitytypes edge predicates + HasEntitytypes *bool `json:"hasEntitytypes,omitempty"` + HasEntitytypesWith []*EntityTypeWhereInput `json:"hasEntitytypesWith,omitempty"` + // contacts edge predicates + HasContacts *bool `json:"hasContacts,omitempty"` + HasContactsWith []*ContactWhereInput `json:"hasContactsWith,omitempty"` + // notes edge predicates + HasNotes *bool `json:"hasNotes,omitempty"` + HasNotesWith []*NoteWhereInput `json:"hasNotesWith,omitempty"` + // members edge predicates + HasMembers *bool `json:"hasMembers,omitempty"` + HasMembersWith []*OrgMembershipWhereInput `json:"hasMembersWith,omitempty"` } -// OauthProviderWhereInput is used for filtering OauthProvider objects. -// Input was generated by ent. -type OauthProviderWhereInput struct { - Not *OauthProviderWhereInput `json:"not,omitempty"` - And []*OauthProviderWhereInput `json:"and,omitempty"` - Or []*OauthProviderWhereInput `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"` - IDGt *string `json:"idGT,omitempty"` - IDGte *string `json:"idGTE,omitempty"` - IDLt *string `json:"idLT,omitempty"` - IDLte *string `json:"idLTE,omitempty"` - IDEqualFold *string `json:"idEqualFold,omitempty"` - IDContainsFold *string `json:"idContainsFold,omitempty"` - // created_at field predicates - CreatedAt *time.Time `json:"createdAt,omitempty"` - CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` - CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` - CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` - UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` - UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` - UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` - CreatedByGt *string `json:"createdByGT,omitempty"` - CreatedByGte *string `json:"createdByGTE,omitempty"` - CreatedByLt *string `json:"createdByLT,omitempty"` - CreatedByLte *string `json:"createdByLTE,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"` - UpdatedByGt *string `json:"updatedByGT,omitempty"` - UpdatedByGte *string `json:"updatedByGTE,omitempty"` - UpdatedByLt *string `json:"updatedByLT,omitempty"` - UpdatedByLte *string `json:"updatedByLTE,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"` - // deleted_at field predicates - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` - DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` - DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` - DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` - DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` - DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` - DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` - // deleted_by field predicates - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNeq *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGt *string `json:"deletedByGT,omitempty"` - DeletedByGte *string `json:"deletedByGTE,omitempty"` - DeletedByLt *string `json:"deletedByLT,omitempty"` - DeletedByLte *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,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"` - OwnerIdgt *string `json:"ownerIDGT,omitempty"` - OwnerIdgte *string `json:"ownerIDGTE,omitempty"` - OwnerIdlt *string `json:"ownerIDLT,omitempty"` - OwnerIdlte *string `json:"ownerIDLTE,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"` - NameGt *string `json:"nameGT,omitempty"` - NameGte *string `json:"nameGTE,omitempty"` - NameLt *string `json:"nameLT,omitempty"` - NameLte *string `json:"nameLTE,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"` - // client_id field predicates - ClientID *string `json:"clientID,omitempty"` - ClientIdneq *string `json:"clientIDNEQ,omitempty"` - ClientIDIn []string `json:"clientIDIn,omitempty"` - ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` - ClientIdgt *string `json:"clientIDGT,omitempty"` - ClientIdgte *string `json:"clientIDGTE,omitempty"` - ClientIdlt *string `json:"clientIDLT,omitempty"` - ClientIdlte *string `json:"clientIDLTE,omitempty"` - ClientIDContains *string `json:"clientIDContains,omitempty"` - ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` - ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` - ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` - ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` - // client_secret field predicates - ClientSecret *string `json:"clientSecret,omitempty"` - ClientSecretNeq *string `json:"clientSecretNEQ,omitempty"` - ClientSecretIn []string `json:"clientSecretIn,omitempty"` - ClientSecretNotIn []string `json:"clientSecretNotIn,omitempty"` - ClientSecretGt *string `json:"clientSecretGT,omitempty"` - ClientSecretGte *string `json:"clientSecretGTE,omitempty"` - ClientSecretLt *string `json:"clientSecretLT,omitempty"` - ClientSecretLte *string `json:"clientSecretLTE,omitempty"` - ClientSecretContains *string `json:"clientSecretContains,omitempty"` - ClientSecretHasPrefix *string `json:"clientSecretHasPrefix,omitempty"` - ClientSecretHasSuffix *string `json:"clientSecretHasSuffix,omitempty"` - ClientSecretEqualFold *string `json:"clientSecretEqualFold,omitempty"` - ClientSecretContainsFold *string `json:"clientSecretContainsFold,omitempty"` - // redirect_url field predicates - RedirectURL *string `json:"redirectURL,omitempty"` - RedirectURLNeq *string `json:"redirectURLNEQ,omitempty"` - RedirectURLIn []string `json:"redirectURLIn,omitempty"` - RedirectURLNotIn []string `json:"redirectURLNotIn,omitempty"` - RedirectURLGt *string `json:"redirectURLGT,omitempty"` - RedirectURLGte *string `json:"redirectURLGTE,omitempty"` - RedirectURLLt *string `json:"redirectURLLT,omitempty"` - RedirectURLLte *string `json:"redirectURLLTE,omitempty"` - RedirectURLContains *string `json:"redirectURLContains,omitempty"` - RedirectURLHasPrefix *string `json:"redirectURLHasPrefix,omitempty"` - RedirectURLHasSuffix *string `json:"redirectURLHasSuffix,omitempty"` - RedirectURLEqualFold *string `json:"redirectURLEqualFold,omitempty"` - RedirectURLContainsFold *string `json:"redirectURLContainsFold,omitempty"` - // scopes field predicates - Scopes *string `json:"scopes,omitempty"` - ScopesNeq *string `json:"scopesNEQ,omitempty"` - ScopesIn []string `json:"scopesIn,omitempty"` - ScopesNotIn []string `json:"scopesNotIn,omitempty"` - ScopesGt *string `json:"scopesGT,omitempty"` - ScopesGte *string `json:"scopesGTE,omitempty"` - ScopesLt *string `json:"scopesLT,omitempty"` - ScopesLte *string `json:"scopesLTE,omitempty"` - ScopesContains *string `json:"scopesContains,omitempty"` - ScopesHasPrefix *string `json:"scopesHasPrefix,omitempty"` - ScopesHasSuffix *string `json:"scopesHasSuffix,omitempty"` - ScopesEqualFold *string `json:"scopesEqualFold,omitempty"` - ScopesContainsFold *string `json:"scopesContainsFold,omitempty"` - // auth_url field predicates - AuthURL *string `json:"authURL,omitempty"` - AuthURLNeq *string `json:"authURLNEQ,omitempty"` - AuthURLIn []string `json:"authURLIn,omitempty"` - AuthURLNotIn []string `json:"authURLNotIn,omitempty"` - AuthURLGt *string `json:"authURLGT,omitempty"` - AuthURLGte *string `json:"authURLGTE,omitempty"` - AuthURLLt *string `json:"authURLLT,omitempty"` - AuthURLLte *string `json:"authURLLTE,omitempty"` - AuthURLContains *string `json:"authURLContains,omitempty"` - AuthURLHasPrefix *string `json:"authURLHasPrefix,omitempty"` - AuthURLHasSuffix *string `json:"authURLHasSuffix,omitempty"` - AuthURLEqualFold *string `json:"authURLEqualFold,omitempty"` - AuthURLContainsFold *string `json:"authURLContainsFold,omitempty"` - // token_url field predicates - TokenURL *string `json:"tokenURL,omitempty"` - TokenURLNeq *string `json:"tokenURLNEQ,omitempty"` - TokenURLIn []string `json:"tokenURLIn,omitempty"` - TokenURLNotIn []string `json:"tokenURLNotIn,omitempty"` - TokenURLGt *string `json:"tokenURLGT,omitempty"` - TokenURLGte *string `json:"tokenURLGTE,omitempty"` - TokenURLLt *string `json:"tokenURLLT,omitempty"` - TokenURLLte *string `json:"tokenURLLTE,omitempty"` - TokenURLContains *string `json:"tokenURLContains,omitempty"` - TokenURLHasPrefix *string `json:"tokenURLHasPrefix,omitempty"` - TokenURLHasSuffix *string `json:"tokenURLHasSuffix,omitempty"` - TokenURLEqualFold *string `json:"tokenURLEqualFold,omitempty"` - TokenURLContainsFold *string `json:"tokenURLContainsFold,omitempty"` - // auth_style field predicates - AuthStyle *string `json:"authStyle,omitempty"` - AuthStyleNeq *string `json:"authStyleNEQ,omitempty"` - AuthStyleIn []string `json:"authStyleIn,omitempty"` - AuthStyleNotIn []string `json:"authStyleNotIn,omitempty"` - AuthStyleGt *string `json:"authStyleGT,omitempty"` - AuthStyleGte *string `json:"authStyleGTE,omitempty"` - AuthStyleLt *string `json:"authStyleLT,omitempty"` - AuthStyleLte *string `json:"authStyleLTE,omitempty"` - // info_url field predicates - InfoURL *string `json:"infoURL,omitempty"` - InfoURLNeq *string `json:"infoURLNEQ,omitempty"` - InfoURLIn []string `json:"infoURLIn,omitempty"` - InfoURLNotIn []string `json:"infoURLNotIn,omitempty"` - InfoURLGt *string `json:"infoURLGT,omitempty"` - InfoURLGte *string `json:"infoURLGTE,omitempty"` - InfoURLLt *string `json:"infoURLLT,omitempty"` - InfoURLLte *string `json:"infoURLLTE,omitempty"` - InfoURLContains *string `json:"infoURLContains,omitempty"` - InfoURLHasPrefix *string `json:"infoURLHasPrefix,omitempty"` - InfoURLHasSuffix *string `json:"infoURLHasSuffix,omitempty"` - InfoURLEqualFold *string `json:"infoURLEqualFold,omitempty"` - InfoURLContainsFold *string `json:"infoURLContainsFold,omitempty"` - // owner edge predicates - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` +// Information about pagination in a connection. +// https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo +type PageInfo struct { + // When paginating forwards, are there more items? + HasNextPage bool `json:"hasNextPage"` + // When paginating backwards, are there more items? + HasPreviousPage bool `json:"hasPreviousPage"` + // When paginating backwards, the cursor to continue. + StartCursor *string `json:"startCursor,omitempty"` + // When paginating forwards, the cursor to continue. + EndCursor *string `json:"endCursor,omitempty"` } - -type OhAuthTooToken struct { - ID string `json:"id"` + +type PersonalAccessToken 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object - Tags []string `json:"tags,omitempty"` - ClientID string `json:"clientID"` - Scopes []string `json:"scopes,omitempty"` - Nonce string `json:"nonce"` - ClaimsUserID string `json:"claimsUserID"` - ClaimsUsername string `json:"claimsUsername"` - ClaimsEmail string `json:"claimsEmail"` - ClaimsEmailVerified bool `json:"claimsEmailVerified"` - ClaimsGroups []string `json:"claimsGroups,omitempty"` - ClaimsPreferredUsername string `json:"claimsPreferredUsername"` - ConnectorID string `json:"connectorID"` - ConnectorData []string `json:"connectorData,omitempty"` - LastUsed time.Time `json:"lastUsed"` - Integration []*Integration `json:"integration,omitempty"` - Events []*Event `json:"events,omitempty"` + Tags []string `json:"tags,omitempty"` + // the name associated with the token + Name string `json:"name"` + Token string `json:"token"` + // when the token expires + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + // a description of the token's purpose + Description *string `json:"description,omitempty"` + Scopes []string `json:"scopes,omitempty"` + LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` + Owner *User `json:"owner"` + // the organization(s) the token is associated with + Organizations []*Organization `json:"organizations,omitempty"` + Events []*Event `json:"events,omitempty"` } -func (OhAuthTooToken) IsNode() {} +func (PersonalAccessToken) IsNode() {} -// Return response for createBulkOhAuthTooToken mutation -type OhAuthTooTokenBulkCreatePayload struct { - // Created ohAuthTooTokens - OhAuthTooTokens []*OhAuthTooToken `json:"ohAuthTooTokens,omitempty"` +// Return response for createBulkPersonalAccessToken mutation +type PersonalAccessTokenBulkCreatePayload struct { + // Created personalAccessTokens + PersonalAccessTokens []*PersonalAccessToken `json:"personalAccessTokens,omitempty"` } // A connection to a list of items. -type OhAuthTooTokenConnection struct { +type PersonalAccessTokenConnection struct { // A list of edges. - Edges []*OhAuthTooTokenEdge `json:"edges,omitempty"` + Edges []*PersonalAccessTokenEdge `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 createOhAuthTooToken mutation -type OhAuthTooTokenCreatePayload struct { - // Created ohAuthTooToken - OhAuthTooToken *OhAuthTooToken `json:"ohAuthTooToken"` +// Return response for createPersonalAccessToken mutation +type PersonalAccessTokenCreatePayload struct { + // Created personalAccessToken + PersonalAccessToken *PersonalAccessToken `json:"personalAccessToken"` } -// Return response for deleteOhAuthTooToken mutation -type OhAuthTooTokenDeletePayload struct { - // Deleted ohAuthTooToken ID +// Return response for deletePersonalAccessToken mutation +type PersonalAccessTokenDeletePayload struct { + // Deleted personalAccessToken ID DeletedID string `json:"deletedID"` } // An edge in a connection. -type OhAuthTooTokenEdge struct { +type PersonalAccessTokenEdge struct { // The item at the end of the edge. - Node *OhAuthTooToken `json:"node,omitempty"` + Node *PersonalAccessToken `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -type OhAuthTooTokenSearchResult struct { - OhAuthTooTokens []*OhAuthTooToken `json:"ohAuthTooTokens,omitempty"` +type PersonalAccessTokenSearchResult struct { + PersonalAccessTokens []*PersonalAccessToken `json:"personalAccessTokens,omitempty"` } -func (OhAuthTooTokenSearchResult) IsSearchResult() {} +func (PersonalAccessTokenSearchResult) IsSearchResult() {} -// Return response for updateOhAuthTooToken mutation -type OhAuthTooTokenUpdatePayload struct { - // Updated ohAuthTooToken - OhAuthTooToken *OhAuthTooToken `json:"ohAuthTooToken"` +// Return response for updatePersonalAccessToken mutation +type PersonalAccessTokenUpdatePayload struct { + // Updated personalAccessToken + PersonalAccessToken *PersonalAccessToken `json:"personalAccessToken"` } -// OhAuthTooTokenWhereInput is used for filtering OhAuthTooToken objects. +// PersonalAccessTokenWhereInput is used for filtering PersonalAccessToken objects. // Input was generated by ent. -type OhAuthTooTokenWhereInput struct { - Not *OhAuthTooTokenWhereInput `json:"not,omitempty"` - And []*OhAuthTooTokenWhereInput `json:"and,omitempty"` - Or []*OhAuthTooTokenWhereInput `json:"or,omitempty"` +type PersonalAccessTokenWhereInput struct { + Not *PersonalAccessTokenWhereInput `json:"not,omitempty"` + And []*PersonalAccessTokenWhereInput `json:"and,omitempty"` + Or []*PersonalAccessTokenWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -9630,200 +14710,245 @@ type OhAuthTooTokenWhereInput struct { IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // client_id field predicates - ClientID *string `json:"clientID,omitempty"` - ClientIdneq *string `json:"clientIDNEQ,omitempty"` - ClientIDIn []string `json:"clientIDIn,omitempty"` - ClientIDNotIn []string `json:"clientIDNotIn,omitempty"` - ClientIdgt *string `json:"clientIDGT,omitempty"` - ClientIdgte *string `json:"clientIDGTE,omitempty"` - ClientIdlt *string `json:"clientIDLT,omitempty"` - ClientIdlte *string `json:"clientIDLTE,omitempty"` - ClientIDContains *string `json:"clientIDContains,omitempty"` - ClientIDHasPrefix *string `json:"clientIDHasPrefix,omitempty"` - ClientIDHasSuffix *string `json:"clientIDHasSuffix,omitempty"` - ClientIDEqualFold *string `json:"clientIDEqualFold,omitempty"` - ClientIDContainsFold *string `json:"clientIDContainsFold,omitempty"` - // nonce field predicates - Nonce *string `json:"nonce,omitempty"` - NonceNeq *string `json:"nonceNEQ,omitempty"` - NonceIn []string `json:"nonceIn,omitempty"` - NonceNotIn []string `json:"nonceNotIn,omitempty"` - NonceGt *string `json:"nonceGT,omitempty"` - NonceGte *string `json:"nonceGTE,omitempty"` - NonceLt *string `json:"nonceLT,omitempty"` - NonceLte *string `json:"nonceLTE,omitempty"` - NonceContains *string `json:"nonceContains,omitempty"` - NonceHasPrefix *string `json:"nonceHasPrefix,omitempty"` - NonceHasSuffix *string `json:"nonceHasSuffix,omitempty"` - NonceEqualFold *string `json:"nonceEqualFold,omitempty"` - NonceContainsFold *string `json:"nonceContainsFold,omitempty"` - // claims_user_id field predicates - ClaimsUserID *string `json:"claimsUserID,omitempty"` - ClaimsUserIdneq *string `json:"claimsUserIDNEQ,omitempty"` - ClaimsUserIDIn []string `json:"claimsUserIDIn,omitempty"` - ClaimsUserIDNotIn []string `json:"claimsUserIDNotIn,omitempty"` - ClaimsUserIdgt *string `json:"claimsUserIDGT,omitempty"` - ClaimsUserIdgte *string `json:"claimsUserIDGTE,omitempty"` - ClaimsUserIdlt *string `json:"claimsUserIDLT,omitempty"` - ClaimsUserIdlte *string `json:"claimsUserIDLTE,omitempty"` - ClaimsUserIDContains *string `json:"claimsUserIDContains,omitempty"` - ClaimsUserIDHasPrefix *string `json:"claimsUserIDHasPrefix,omitempty"` - ClaimsUserIDHasSuffix *string `json:"claimsUserIDHasSuffix,omitempty"` - ClaimsUserIDEqualFold *string `json:"claimsUserIDEqualFold,omitempty"` - ClaimsUserIDContainsFold *string `json:"claimsUserIDContainsFold,omitempty"` - // claims_username field predicates - ClaimsUsername *string `json:"claimsUsername,omitempty"` - ClaimsUsernameNeq *string `json:"claimsUsernameNEQ,omitempty"` - ClaimsUsernameIn []string `json:"claimsUsernameIn,omitempty"` - ClaimsUsernameNotIn []string `json:"claimsUsernameNotIn,omitempty"` - ClaimsUsernameGt *string `json:"claimsUsernameGT,omitempty"` - ClaimsUsernameGte *string `json:"claimsUsernameGTE,omitempty"` - ClaimsUsernameLt *string `json:"claimsUsernameLT,omitempty"` - ClaimsUsernameLte *string `json:"claimsUsernameLTE,omitempty"` - ClaimsUsernameContains *string `json:"claimsUsernameContains,omitempty"` - ClaimsUsernameHasPrefix *string `json:"claimsUsernameHasPrefix,omitempty"` - ClaimsUsernameHasSuffix *string `json:"claimsUsernameHasSuffix,omitempty"` - ClaimsUsernameEqualFold *string `json:"claimsUsernameEqualFold,omitempty"` - ClaimsUsernameContainsFold *string `json:"claimsUsernameContainsFold,omitempty"` - // claims_email field predicates - ClaimsEmail *string `json:"claimsEmail,omitempty"` - ClaimsEmailNeq *string `json:"claimsEmailNEQ,omitempty"` - ClaimsEmailIn []string `json:"claimsEmailIn,omitempty"` - ClaimsEmailNotIn []string `json:"claimsEmailNotIn,omitempty"` - ClaimsEmailGt *string `json:"claimsEmailGT,omitempty"` - ClaimsEmailGte *string `json:"claimsEmailGTE,omitempty"` - ClaimsEmailLt *string `json:"claimsEmailLT,omitempty"` - ClaimsEmailLte *string `json:"claimsEmailLTE,omitempty"` - ClaimsEmailContains *string `json:"claimsEmailContains,omitempty"` - ClaimsEmailHasPrefix *string `json:"claimsEmailHasPrefix,omitempty"` - ClaimsEmailHasSuffix *string `json:"claimsEmailHasSuffix,omitempty"` - ClaimsEmailEqualFold *string `json:"claimsEmailEqualFold,omitempty"` - ClaimsEmailContainsFold *string `json:"claimsEmailContainsFold,omitempty"` - // claims_email_verified field predicates - ClaimsEmailVerified *bool `json:"claimsEmailVerified,omitempty"` - ClaimsEmailVerifiedNeq *bool `json:"claimsEmailVerifiedNEQ,omitempty"` - // claims_preferred_username field predicates - ClaimsPreferredUsername *string `json:"claimsPreferredUsername,omitempty"` - ClaimsPreferredUsernameNeq *string `json:"claimsPreferredUsernameNEQ,omitempty"` - ClaimsPreferredUsernameIn []string `json:"claimsPreferredUsernameIn,omitempty"` - ClaimsPreferredUsernameNotIn []string `json:"claimsPreferredUsernameNotIn,omitempty"` - ClaimsPreferredUsernameGt *string `json:"claimsPreferredUsernameGT,omitempty"` - ClaimsPreferredUsernameGte *string `json:"claimsPreferredUsernameGTE,omitempty"` - ClaimsPreferredUsernameLt *string `json:"claimsPreferredUsernameLT,omitempty"` - ClaimsPreferredUsernameLte *string `json:"claimsPreferredUsernameLTE,omitempty"` - ClaimsPreferredUsernameContains *string `json:"claimsPreferredUsernameContains,omitempty"` - ClaimsPreferredUsernameHasPrefix *string `json:"claimsPreferredUsernameHasPrefix,omitempty"` - ClaimsPreferredUsernameHasSuffix *string `json:"claimsPreferredUsernameHasSuffix,omitempty"` - ClaimsPreferredUsernameEqualFold *string `json:"claimsPreferredUsernameEqualFold,omitempty"` - ClaimsPreferredUsernameContainsFold *string `json:"claimsPreferredUsernameContainsFold,omitempty"` - // connector_id field predicates - ConnectorID *string `json:"connectorID,omitempty"` - ConnectorIdneq *string `json:"connectorIDNEQ,omitempty"` - ConnectorIDIn []string `json:"connectorIDIn,omitempty"` - ConnectorIDNotIn []string `json:"connectorIDNotIn,omitempty"` - ConnectorIdgt *string `json:"connectorIDGT,omitempty"` - ConnectorIdgte *string `json:"connectorIDGTE,omitempty"` - ConnectorIdlt *string `json:"connectorIDLT,omitempty"` - ConnectorIdlte *string `json:"connectorIDLTE,omitempty"` - ConnectorIDContains *string `json:"connectorIDContains,omitempty"` - ConnectorIDHasPrefix *string `json:"connectorIDHasPrefix,omitempty"` - ConnectorIDHasSuffix *string `json:"connectorIDHasSuffix,omitempty"` - ConnectorIDEqualFold *string `json:"connectorIDEqualFold,omitempty"` - ConnectorIDContainsFold *string `json:"connectorIDContainsFold,omitempty"` - // last_used field predicates - LastUsed *time.Time `json:"lastUsed,omitempty"` - LastUsedNeq *time.Time `json:"lastUsedNEQ,omitempty"` - LastUsedIn []*time.Time `json:"lastUsedIn,omitempty"` - LastUsedNotIn []*time.Time `json:"lastUsedNotIn,omitempty"` - LastUsedGt *time.Time `json:"lastUsedGT,omitempty"` - LastUsedGte *time.Time `json:"lastUsedGTE,omitempty"` - LastUsedLt *time.Time `json:"lastUsedLT,omitempty"` - LastUsedLte *time.Time `json:"lastUsedLTE,omitempty"` - // integration edge predicates - HasIntegration *bool `json:"hasIntegration,omitempty"` - HasIntegrationWith []*IntegrationWhereInput `json:"hasIntegrationWith,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + // expires_at field predicates + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + ExpiresAtNeq *time.Time `json:"expiresAtNEQ,omitempty"` + ExpiresAtIn []*time.Time `json:"expiresAtIn,omitempty"` + ExpiresAtNotIn []*time.Time `json:"expiresAtNotIn,omitempty"` + ExpiresAtGt *time.Time `json:"expiresAtGT,omitempty"` + ExpiresAtGte *time.Time `json:"expiresAtGTE,omitempty"` + ExpiresAtLt *time.Time `json:"expiresAtLT,omitempty"` + ExpiresAtLte *time.Time `json:"expiresAtLTE,omitempty"` + ExpiresAtIsNil *bool `json:"expiresAtIsNil,omitempty"` + ExpiresAtNotNil *bool `json:"expiresAtNotNil,omitempty"` + // last_used_at field predicates + LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` + LastUsedAtNeq *time.Time `json:"lastUsedAtNEQ,omitempty"` + LastUsedAtIn []*time.Time `json:"lastUsedAtIn,omitempty"` + LastUsedAtNotIn []*time.Time `json:"lastUsedAtNotIn,omitempty"` + LastUsedAtGt *time.Time `json:"lastUsedAtGT,omitempty"` + LastUsedAtGte *time.Time `json:"lastUsedAtGTE,omitempty"` + LastUsedAtLt *time.Time `json:"lastUsedAtLT,omitempty"` + LastUsedAtLte *time.Time `json:"lastUsedAtLTE,omitempty"` + LastUsedAtIsNil *bool `json:"lastUsedAtIsNil,omitempty"` + LastUsedAtNotNil *bool `json:"lastUsedAtNotNil,omitempty"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*UserWhereInput `json:"hasOwnerWith,omitempty"` + // organizations edge predicates + HasOrganizations *bool `json:"hasOrganizations,omitempty"` + HasOrganizationsWith []*OrganizationWhereInput `json:"hasOrganizationsWith,omitempty"` // events edge predicates HasEvents *bool `json:"hasEvents,omitempty"` HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` } -type OrgMembership 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"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - Role enums.Role `json:"role"` - OrganizationID string `json:"organizationID"` - UserID string `json:"userID"` - Organization *Organization `json:"organization"` - User *User `json:"user"` - Events []*Event `json:"events,omitempty"` -} - -func (OrgMembership) IsNode() {} - -// Return response for createBulkOrgMembership mutation -type OrgMembershipBulkCreatePayload struct { - // Created orgMemberships - OrgMemberships []*OrgMembership `json:"orgMemberships,omitempty"` +type Procedure 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the procedure + Name string `json:"name"` + // description of the procedure + Description *string `json:"description,omitempty"` + // status of the procedure + Status *string `json:"status,omitempty"` + // type of the procedure + ProcedureType *string `json:"procedureType,omitempty"` + // version of the procedure + Version *string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + // background of the procedure + Background *string `json:"background,omitempty"` + // which controls are satisfied by the procedure + Satisfies *string `json:"satisfies,omitempty"` + // json data for the procedure document + Details map[string]interface{} `json:"details,omitempty"` + Control []*Control `json:"control,omitempty"` + Internalpolicy []*InternalPolicy `json:"internalpolicy,omitempty"` + Narratives []*Narrative `json:"narratives,omitempty"` + Risks []*Risk `json:"risks,omitempty"` +} + +func (Procedure) IsNode() {} + +// Return response for createBulkProcedure mutation +type ProcedureBulkCreatePayload struct { + // Created procedures + Procedures []*Procedure `json:"procedures,omitempty"` } // A connection to a list of items. -type OrgMembershipConnection struct { +type ProcedureConnection struct { // A list of edges. - Edges []*OrgMembershipEdge `json:"edges,omitempty"` + Edges []*ProcedureEdge `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 createOrgMembership mutation -type OrgMembershipCreatePayload struct { - // Created orgMembership - OrgMembership *OrgMembership `json:"orgMembership"` +// Return response for createProcedure mutation +type ProcedureCreatePayload struct { + // Created procedure + Procedure *Procedure `json:"procedure"` } -// Return response for deleteOrgMembership mutation -type OrgMembershipDeletePayload struct { - // Deleted orgMembership ID +// Return response for deleteProcedure mutation +type ProcedureDeletePayload struct { + // Deleted procedure ID DeletedID string `json:"deletedID"` } // An edge in a connection. -type OrgMembershipEdge struct { +type ProcedureEdge struct { // The item at the end of the edge. - Node *OrgMembership `json:"node,omitempty"` + Node *Procedure `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -type OrgMembershipHistory struct { - ID string `json:"id"` - HistoryTime time.Time `json:"historyTime"` - Ref *string `json:"ref,omitempty"` - Operation history.OpType `json:"operation"` - CreatedAt *time.Time `json:"createdAt,omitempty"` - UpdatedAt *time.Time `json:"updatedAt,omitempty"` - CreatedBy *string `json:"createdBy,omitempty"` - UpdatedBy *string `json:"updatedBy,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - Role enums.Role `json:"role"` - OrganizationID string `json:"organizationID"` - UserID string `json:"userID"` -} - -func (OrgMembershipHistory) IsNode() {} +type ProcedureHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the procedure + Name string `json:"name"` + // description of the procedure + Description *string `json:"description,omitempty"` + // status of the procedure + Status *string `json:"status,omitempty"` + // type of the procedure + ProcedureType *string `json:"procedureType,omitempty"` + // version of the procedure + Version *string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + // background of the procedure + Background *string `json:"background,omitempty"` + // which controls are satisfied by the procedure + Satisfies *string `json:"satisfies,omitempty"` + // json data for the procedure document + Details map[string]interface{} `json:"details,omitempty"` +} + +func (ProcedureHistory) IsNode() {} // A connection to a list of items. -type OrgMembershipHistoryConnection struct { +type ProcedureHistoryConnection struct { // A list of edges. - Edges []*OrgMembershipHistoryEdge `json:"edges,omitempty"` + Edges []*ProcedureHistoryEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. @@ -9831,19 +14956,19 @@ type OrgMembershipHistoryConnection struct { } // An edge in a connection. -type OrgMembershipHistoryEdge struct { +type ProcedureHistoryEdge struct { // The item at the end of the edge. - Node *OrgMembershipHistory `json:"node,omitempty"` + Node *ProcedureHistory `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -// OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. +// ProcedureHistoryWhereInput is used for filtering ProcedureHistory objects. // Input was generated by ent. -type OrgMembershipHistoryWhereInput struct { - Not *OrgMembershipHistoryWhereInput `json:"not,omitempty"` - And []*OrgMembershipHistoryWhereInput `json:"and,omitempty"` - Or []*OrgMembershipHistoryWhereInput `json:"or,omitempty"` +type ProcedureHistoryWhereInput struct { + Not *ProcedureHistoryWhereInput `json:"not,omitempty"` + And []*ProcedureHistoryWhereInput `json:"and,omitempty"` + Or []*ProcedureHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -9966,53 +15091,152 @@ type OrgMembershipHistoryWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // role field predicates - Role *enums.Role `json:"role,omitempty"` - RoleNeq *enums.Role `json:"roleNEQ,omitempty"` - RoleIn []enums.Role `json:"roleIn,omitempty"` - RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` - // organization_id field predicates - OrganizationID *string `json:"organizationID,omitempty"` - OrganizationIdneq *string `json:"organizationIDNEQ,omitempty"` - OrganizationIDIn []string `json:"organizationIDIn,omitempty"` - OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` - OrganizationIdgt *string `json:"organizationIDGT,omitempty"` - OrganizationIdgte *string `json:"organizationIDGTE,omitempty"` - OrganizationIdlt *string `json:"organizationIDLT,omitempty"` - OrganizationIdlte *string `json:"organizationIDLTE,omitempty"` - OrganizationIDContains *string `json:"organizationIDContains,omitempty"` - OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` - OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` - OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` - OrganizationIDContainsFold *string `json:"organizationIDContainsFold,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"` - UserIdgt *string `json:"userIDGT,omitempty"` - UserIdgte *string `json:"userIDGTE,omitempty"` - UserIdlt *string `json:"userIDLT,omitempty"` - UserIdlte *string `json:"userIDLTE,omitempty"` - UserIDContains *string `json:"userIDContains,omitempty"` - UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` - UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` - UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` - UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` -} - -// Return response for updateOrgMembership mutation -type OrgMembershipUpdatePayload struct { - // Updated orgMembership - OrgMembership *OrgMembership `json:"orgMembership"` -} - -// OrgMembershipWhereInput is used for filtering OrgMembership objects. + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // procedure_type field predicates + ProcedureType *string `json:"procedureType,omitempty"` + ProcedureTypeNeq *string `json:"procedureTypeNEQ,omitempty"` + ProcedureTypeIn []string `json:"procedureTypeIn,omitempty"` + ProcedureTypeNotIn []string `json:"procedureTypeNotIn,omitempty"` + ProcedureTypeGt *string `json:"procedureTypeGT,omitempty"` + ProcedureTypeGte *string `json:"procedureTypeGTE,omitempty"` + ProcedureTypeLt *string `json:"procedureTypeLT,omitempty"` + ProcedureTypeLte *string `json:"procedureTypeLTE,omitempty"` + ProcedureTypeContains *string `json:"procedureTypeContains,omitempty"` + ProcedureTypeHasPrefix *string `json:"procedureTypeHasPrefix,omitempty"` + ProcedureTypeHasSuffix *string `json:"procedureTypeHasSuffix,omitempty"` + ProcedureTypeIsNil *bool `json:"procedureTypeIsNil,omitempty"` + ProcedureTypeNotNil *bool `json:"procedureTypeNotNil,omitempty"` + ProcedureTypeEqualFold *string `json:"procedureTypeEqualFold,omitempty"` + ProcedureTypeContainsFold *string `json:"procedureTypeContainsFold,omitempty"` + // version field predicates + Version *string `json:"version,omitempty"` + VersionNeq *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGt *string `json:"versionGT,omitempty"` + VersionGte *string `json:"versionGTE,omitempty"` + VersionLt *string `json:"versionLT,omitempty"` + VersionLte *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil *bool `json:"versionIsNil,omitempty"` + VersionNotNil *bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // purpose_and_scope field predicates + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + PurposeAndScopeNeq *string `json:"purposeAndScopeNEQ,omitempty"` + PurposeAndScopeIn []string `json:"purposeAndScopeIn,omitempty"` + PurposeAndScopeNotIn []string `json:"purposeAndScopeNotIn,omitempty"` + PurposeAndScopeGt *string `json:"purposeAndScopeGT,omitempty"` + PurposeAndScopeGte *string `json:"purposeAndScopeGTE,omitempty"` + PurposeAndScopeLt *string `json:"purposeAndScopeLT,omitempty"` + PurposeAndScopeLte *string `json:"purposeAndScopeLTE,omitempty"` + PurposeAndScopeContains *string `json:"purposeAndScopeContains,omitempty"` + PurposeAndScopeHasPrefix *string `json:"purposeAndScopeHasPrefix,omitempty"` + PurposeAndScopeHasSuffix *string `json:"purposeAndScopeHasSuffix,omitempty"` + PurposeAndScopeIsNil *bool `json:"purposeAndScopeIsNil,omitempty"` + PurposeAndScopeNotNil *bool `json:"purposeAndScopeNotNil,omitempty"` + PurposeAndScopeEqualFold *string `json:"purposeAndScopeEqualFold,omitempty"` + PurposeAndScopeContainsFold *string `json:"purposeAndScopeContainsFold,omitempty"` + // background field predicates + Background *string `json:"background,omitempty"` + BackgroundNeq *string `json:"backgroundNEQ,omitempty"` + BackgroundIn []string `json:"backgroundIn,omitempty"` + BackgroundNotIn []string `json:"backgroundNotIn,omitempty"` + BackgroundGt *string `json:"backgroundGT,omitempty"` + BackgroundGte *string `json:"backgroundGTE,omitempty"` + BackgroundLt *string `json:"backgroundLT,omitempty"` + BackgroundLte *string `json:"backgroundLTE,omitempty"` + BackgroundContains *string `json:"backgroundContains,omitempty"` + BackgroundHasPrefix *string `json:"backgroundHasPrefix,omitempty"` + BackgroundHasSuffix *string `json:"backgroundHasSuffix,omitempty"` + BackgroundIsNil *bool `json:"backgroundIsNil,omitempty"` + BackgroundNotNil *bool `json:"backgroundNotNil,omitempty"` + BackgroundEqualFold *string `json:"backgroundEqualFold,omitempty"` + BackgroundContainsFold *string `json:"backgroundContainsFold,omitempty"` + // satisfies field predicates + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNeq *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGt *string `json:"satisfiesGT,omitempty"` + SatisfiesGte *string `json:"satisfiesGTE,omitempty"` + SatisfiesLt *string `json:"satisfiesLT,omitempty"` + SatisfiesLte *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil *bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil *bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` +} + +type ProcedureSearchResult struct { + Procedures []*Procedure `json:"procedures,omitempty"` +} + +func (ProcedureSearchResult) IsSearchResult() {} + +// Return response for updateProcedure mutation +type ProcedureUpdatePayload struct { + // Updated procedure + Procedure *Procedure `json:"procedure"` +} + +// ProcedureWhereInput is used for filtering Procedure objects. // Input was generated by ent. -type OrgMembershipWhereInput struct { - Not *OrgMembershipWhereInput `json:"not,omitempty"` - And []*OrgMembershipWhereInput `json:"and,omitempty"` - Or []*OrgMembershipWhereInput `json:"or,omitempty"` +type ProcedureWhereInput struct { + Not *ProcedureWhereInput `json:"not,omitempty"` + And []*ProcedureWhereInput `json:"and,omitempty"` + Or []*ProcedureWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -10105,105 +15329,223 @@ type OrgMembershipWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // role field predicates - Role *enums.Role `json:"role,omitempty"` - RoleNeq *enums.Role `json:"roleNEQ,omitempty"` - RoleIn []enums.Role `json:"roleIn,omitempty"` - RoleNotIn []enums.Role `json:"roleNotIn,omitempty"` - OrganizationID *string `json:"organizationID,omitempty"` - UserID *string `json:"userID,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // procedure_type field predicates + ProcedureType *string `json:"procedureType,omitempty"` + ProcedureTypeNeq *string `json:"procedureTypeNEQ,omitempty"` + ProcedureTypeIn []string `json:"procedureTypeIn,omitempty"` + ProcedureTypeNotIn []string `json:"procedureTypeNotIn,omitempty"` + ProcedureTypeGt *string `json:"procedureTypeGT,omitempty"` + ProcedureTypeGte *string `json:"procedureTypeGTE,omitempty"` + ProcedureTypeLt *string `json:"procedureTypeLT,omitempty"` + ProcedureTypeLte *string `json:"procedureTypeLTE,omitempty"` + ProcedureTypeContains *string `json:"procedureTypeContains,omitempty"` + ProcedureTypeHasPrefix *string `json:"procedureTypeHasPrefix,omitempty"` + ProcedureTypeHasSuffix *string `json:"procedureTypeHasSuffix,omitempty"` + ProcedureTypeIsNil *bool `json:"procedureTypeIsNil,omitempty"` + ProcedureTypeNotNil *bool `json:"procedureTypeNotNil,omitempty"` + ProcedureTypeEqualFold *string `json:"procedureTypeEqualFold,omitempty"` + ProcedureTypeContainsFold *string `json:"procedureTypeContainsFold,omitempty"` + // version field predicates + Version *string `json:"version,omitempty"` + VersionNeq *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGt *string `json:"versionGT,omitempty"` + VersionGte *string `json:"versionGTE,omitempty"` + VersionLt *string `json:"versionLT,omitempty"` + VersionLte *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil *bool `json:"versionIsNil,omitempty"` + VersionNotNil *bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // purpose_and_scope field predicates + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + PurposeAndScopeNeq *string `json:"purposeAndScopeNEQ,omitempty"` + PurposeAndScopeIn []string `json:"purposeAndScopeIn,omitempty"` + PurposeAndScopeNotIn []string `json:"purposeAndScopeNotIn,omitempty"` + PurposeAndScopeGt *string `json:"purposeAndScopeGT,omitempty"` + PurposeAndScopeGte *string `json:"purposeAndScopeGTE,omitempty"` + PurposeAndScopeLt *string `json:"purposeAndScopeLT,omitempty"` + PurposeAndScopeLte *string `json:"purposeAndScopeLTE,omitempty"` + PurposeAndScopeContains *string `json:"purposeAndScopeContains,omitempty"` + PurposeAndScopeHasPrefix *string `json:"purposeAndScopeHasPrefix,omitempty"` + PurposeAndScopeHasSuffix *string `json:"purposeAndScopeHasSuffix,omitempty"` + PurposeAndScopeIsNil *bool `json:"purposeAndScopeIsNil,omitempty"` + PurposeAndScopeNotNil *bool `json:"purposeAndScopeNotNil,omitempty"` + PurposeAndScopeEqualFold *string `json:"purposeAndScopeEqualFold,omitempty"` + PurposeAndScopeContainsFold *string `json:"purposeAndScopeContainsFold,omitempty"` + // background field predicates + Background *string `json:"background,omitempty"` + BackgroundNeq *string `json:"backgroundNEQ,omitempty"` + BackgroundIn []string `json:"backgroundIn,omitempty"` + BackgroundNotIn []string `json:"backgroundNotIn,omitempty"` + BackgroundGt *string `json:"backgroundGT,omitempty"` + BackgroundGte *string `json:"backgroundGTE,omitempty"` + BackgroundLt *string `json:"backgroundLT,omitempty"` + BackgroundLte *string `json:"backgroundLTE,omitempty"` + BackgroundContains *string `json:"backgroundContains,omitempty"` + BackgroundHasPrefix *string `json:"backgroundHasPrefix,omitempty"` + BackgroundHasSuffix *string `json:"backgroundHasSuffix,omitempty"` + BackgroundIsNil *bool `json:"backgroundIsNil,omitempty"` + BackgroundNotNil *bool `json:"backgroundNotNil,omitempty"` + BackgroundEqualFold *string `json:"backgroundEqualFold,omitempty"` + BackgroundContainsFold *string `json:"backgroundContainsFold,omitempty"` + // satisfies field predicates + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNeq *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGt *string `json:"satisfiesGT,omitempty"` + SatisfiesGte *string `json:"satisfiesGTE,omitempty"` + SatisfiesLt *string `json:"satisfiesLT,omitempty"` + SatisfiesLte *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil *bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil *bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` + // control edge predicates + HasControl *bool `json:"hasControl,omitempty"` + HasControlWith []*ControlWhereInput `json:"hasControlWith,omitempty"` + // internalpolicy edge predicates + HasInternalpolicy *bool `json:"hasInternalpolicy,omitempty"` + HasInternalpolicyWith []*InternalPolicyWhereInput `json:"hasInternalpolicyWith,omitempty"` + // narratives edge predicates + HasNarratives *bool `json:"hasNarratives,omitempty"` + HasNarrativesWith []*NarrativeWhereInput `json:"hasNarrativesWith,omitempty"` + // risks edge predicates + HasRisks *bool `json:"hasRisks,omitempty"` + HasRisksWith []*RiskWhereInput `json:"hasRisksWith,omitempty"` } -type Organization struct { +type Query struct { +} + +type Risk 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"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy *string `json:"deletedBy,omitempty"` - // the name of the organization + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the risk Name string `json:"name"` - // The organization's displayed 'friendly' name - DisplayName string `json:"displayName"` - // An optional description of the organization + // description of the risk Description *string `json:"description,omitempty"` - // orgs directly associated with a user - PersonalOrg *bool `json:"personalOrg,omitempty"` - // URL of the user's remote avatar - AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` - // Whether the organization has a dedicated database - DedicatedDb bool `json:"dedicatedDb"` - Parent *Organization `json:"parent,omitempty"` - Children *OrganizationConnection `json:"children"` - Groups []*Group `json:"groups,omitempty"` - Templates []*Template `json:"templates,omitempty"` - Integrations []*Integration `json:"integrations,omitempty"` - Setting *OrganizationSetting `json:"setting,omitempty"` - Documentdata []*DocumentData `json:"documentdata,omitempty"` - Entitlements []*Entitlement `json:"entitlements,omitempty"` - OrganizationEntitlement []*Entitlement `json:"organizationEntitlement,omitempty"` - PersonalAccessTokens []*PersonalAccessToken `json:"personalAccessTokens,omitempty"` - APITokens []*APIToken `json:"apiTokens,omitempty"` - Oauthprovider []*OauthProvider `json:"oauthprovider,omitempty"` - Users []*User `json:"users,omitempty"` - Invites []*Invite `json:"invites,omitempty"` - Subscribers []*Subscriber `json:"subscribers,omitempty"` - Webhooks []*Webhook `json:"webhooks,omitempty"` - Events []*Event `json:"events,omitempty"` - Secrets []*Hush `json:"secrets,omitempty"` - Features []*Feature `json:"features,omitempty"` - Files []*File `json:"files,omitempty"` - Entitlementplans []*EntitlementPlan `json:"entitlementplans,omitempty"` - Entitlementplanfeatures []*EntitlementPlanFeature `json:"entitlementplanfeatures,omitempty"` - Entities []*Entity `json:"entities,omitempty"` - Entitytypes []*EntityType `json:"entitytypes,omitempty"` - Contacts []*Contact `json:"contacts,omitempty"` - Notes []*Note `json:"notes,omitempty"` - Members []*OrgMembership `json:"members,omitempty"` -} - -func (Organization) IsNode() {} - -// Return response for createBulkOrganization mutation -type OrganizationBulkCreatePayload struct { - // Created organizations - Organizations []*Organization `json:"organizations,omitempty"` + // status of the risk - mitigated or not, inflight, etc. + Status *string `json:"status,omitempty"` + // type of the risk, e.g. strategic, operational, financial, external, etc. + RiskType *string `json:"riskType,omitempty"` + // business costs associated with the risk + BusinessCosts *string `json:"businessCosts,omitempty"` + // impact of the risk - high, medium, low + Impact *enums.RiskImpact `json:"impact,omitempty"` + // likelihood of the risk occurring; unlikely, likely, highly likely + Likelihood *enums.RiskLikelihood `json:"likelihood,omitempty"` + // mitigation for the risk + Mitigation *string `json:"mitigation,omitempty"` + // which controls are satisfied by the risk + Satisfies *string `json:"satisfies,omitempty"` + // json data for the risk document + Details map[string]interface{} `json:"details,omitempty"` + Control []*Control `json:"control,omitempty"` + Procedure []*Procedure `json:"procedure,omitempty"` + Actionplans []*ActionPlan `json:"actionplans,omitempty"` +} + +func (Risk) IsNode() {} + +// Return response for createBulkRisk mutation +type RiskBulkCreatePayload struct { + // Created risks + Risks []*Risk `json:"risks,omitempty"` } // A connection to a list of items. -type OrganizationConnection struct { +type RiskConnection struct { // A list of edges. - Edges []*OrganizationEdge `json:"edges,omitempty"` + Edges []*RiskEdge `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 createOrganization mutation -type OrganizationCreatePayload struct { - // Created organization - Organization *Organization `json:"organization"` +// Return response for createRisk mutation +type RiskCreatePayload struct { + // Created risk + Risk *Risk `json:"risk"` } -// Return response for deleteOrganization mutation -type OrganizationDeletePayload struct { - // Deleted organization ID +// Return response for deleteRisk mutation +type RiskDeletePayload struct { + // Deleted risk ID DeletedID string `json:"deletedID"` } // An edge in a connection. -type OrganizationEdge struct { +type RiskEdge struct { // The item at the end of the edge. - Node *Organization `json:"node,omitempty"` + Node *Risk `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -type OrganizationHistory struct { +type RiskHistory struct { ID string `json:"id"` HistoryTime time.Time `json:"historyTime"` Ref *string `json:"ref,omitempty"` @@ -10212,30 +15554,38 @@ type OrganizationHistory struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object - Tags []string `json:"tags,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // the name of the organization + Tags []string `json:"tags,omitempty"` + // the name of the risk Name string `json:"name"` - // The organization's displayed 'friendly' name - DisplayName string `json:"displayName"` - // An optional description of the organization + // description of the risk Description *string `json:"description,omitempty"` - // orgs directly associated with a user - PersonalOrg *bool `json:"personalOrg,omitempty"` - // URL of the user's remote avatar - AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` - // Whether the organization has a dedicated database - DedicatedDb bool `json:"dedicatedDb"` -} - -func (OrganizationHistory) IsNode() {} + // status of the risk - mitigated or not, inflight, etc. + Status *string `json:"status,omitempty"` + // type of the risk, e.g. strategic, operational, financial, external, etc. + RiskType *string `json:"riskType,omitempty"` + // business costs associated with the risk + BusinessCosts *string `json:"businessCosts,omitempty"` + // impact of the risk - high, medium, low + Impact *enums.RiskImpact `json:"impact,omitempty"` + // likelihood of the risk occurring; unlikely, likely, highly likely + Likelihood *enums.RiskLikelihood `json:"likelihood,omitempty"` + // mitigation for the risk + Mitigation *string `json:"mitigation,omitempty"` + // which controls are satisfied by the risk + Satisfies *string `json:"satisfies,omitempty"` + // json data for the risk document + Details map[string]interface{} `json:"details,omitempty"` +} + +func (RiskHistory) IsNode() {} // A connection to a list of items. -type OrganizationHistoryConnection struct { +type RiskHistoryConnection struct { // A list of edges. - Edges []*OrganizationHistoryEdge `json:"edges,omitempty"` + Edges []*RiskHistoryEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. @@ -10243,27 +15593,285 @@ type OrganizationHistoryConnection struct { } // An edge in a connection. -type OrganizationHistoryEdge struct { +type RiskHistoryEdge struct { // The item at the end of the edge. - Node *OrganizationHistory `json:"node,omitempty"` + Node *RiskHistory `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -// Ordering options for OrganizationHistory connections -type OrganizationHistoryOrder struct { - // The ordering direction. - Direction OrderDirection `json:"direction"` - // The field by which to order OrganizationHistories. - Field OrganizationHistoryOrderField `json:"field"` -} - -// OrganizationHistoryWhereInput is used for filtering OrganizationHistory objects. +// RiskHistoryWhereInput is used for filtering RiskHistory objects. +// Input was generated by ent. +type RiskHistoryWhereInput struct { + Not *RiskHistoryWhereInput `json:"not,omitempty"` + And []*RiskHistoryWhereInput `json:"and,omitempty"` + Or []*RiskHistoryWhereInput `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"` + IDGt *string `json:"idGT,omitempty"` + IDGte *string `json:"idGTE,omitempty"` + IDLt *string `json:"idLT,omitempty"` + IDLte *string `json:"idLTE,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` + CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` + CreatedAtIn []*time.Time `json:"createdAtIn,omitempty"` + CreatedAtNotIn []*time.Time `json:"createdAtNotIn,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"` + UpdatedAtNeq *time.Time `json:"updatedAtNEQ,omitempty"` + UpdatedAtIn []*time.Time `json:"updatedAtIn,omitempty"` + UpdatedAtNotIn []*time.Time `json:"updatedAtNotIn,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"` + CreatedByGt *string `json:"createdByGT,omitempty"` + CreatedByGte *string `json:"createdByGTE,omitempty"` + CreatedByLt *string `json:"createdByLT,omitempty"` + CreatedByLte *string `json:"createdByLTE,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"` + UpdatedByGt *string `json:"updatedByGT,omitempty"` + UpdatedByGte *string `json:"updatedByGTE,omitempty"` + UpdatedByLt *string `json:"updatedByLT,omitempty"` + UpdatedByLte *string `json:"updatedByLTE,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"` + // deleted_at field predicates + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedAtNeq *time.Time `json:"deletedAtNEQ,omitempty"` + DeletedAtIn []*time.Time `json:"deletedAtIn,omitempty"` + DeletedAtNotIn []*time.Time `json:"deletedAtNotIn,omitempty"` + DeletedAtGt *time.Time `json:"deletedAtGT,omitempty"` + DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` + DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` + DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // risk_type field predicates + RiskType *string `json:"riskType,omitempty"` + RiskTypeNeq *string `json:"riskTypeNEQ,omitempty"` + RiskTypeIn []string `json:"riskTypeIn,omitempty"` + RiskTypeNotIn []string `json:"riskTypeNotIn,omitempty"` + RiskTypeGt *string `json:"riskTypeGT,omitempty"` + RiskTypeGte *string `json:"riskTypeGTE,omitempty"` + RiskTypeLt *string `json:"riskTypeLT,omitempty"` + RiskTypeLte *string `json:"riskTypeLTE,omitempty"` + RiskTypeContains *string `json:"riskTypeContains,omitempty"` + RiskTypeHasPrefix *string `json:"riskTypeHasPrefix,omitempty"` + RiskTypeHasSuffix *string `json:"riskTypeHasSuffix,omitempty"` + RiskTypeIsNil *bool `json:"riskTypeIsNil,omitempty"` + RiskTypeNotNil *bool `json:"riskTypeNotNil,omitempty"` + RiskTypeEqualFold *string `json:"riskTypeEqualFold,omitempty"` + RiskTypeContainsFold *string `json:"riskTypeContainsFold,omitempty"` + // business_costs field predicates + BusinessCosts *string `json:"businessCosts,omitempty"` + BusinessCostsNeq *string `json:"businessCostsNEQ,omitempty"` + BusinessCostsIn []string `json:"businessCostsIn,omitempty"` + BusinessCostsNotIn []string `json:"businessCostsNotIn,omitempty"` + BusinessCostsGt *string `json:"businessCostsGT,omitempty"` + BusinessCostsGte *string `json:"businessCostsGTE,omitempty"` + BusinessCostsLt *string `json:"businessCostsLT,omitempty"` + BusinessCostsLte *string `json:"businessCostsLTE,omitempty"` + BusinessCostsContains *string `json:"businessCostsContains,omitempty"` + BusinessCostsHasPrefix *string `json:"businessCostsHasPrefix,omitempty"` + BusinessCostsHasSuffix *string `json:"businessCostsHasSuffix,omitempty"` + BusinessCostsIsNil *bool `json:"businessCostsIsNil,omitempty"` + BusinessCostsNotNil *bool `json:"businessCostsNotNil,omitempty"` + BusinessCostsEqualFold *string `json:"businessCostsEqualFold,omitempty"` + BusinessCostsContainsFold *string `json:"businessCostsContainsFold,omitempty"` + // impact field predicates + Impact *enums.RiskImpact `json:"impact,omitempty"` + ImpactNeq *enums.RiskImpact `json:"impactNEQ,omitempty"` + ImpactIn []enums.RiskImpact `json:"impactIn,omitempty"` + ImpactNotIn []enums.RiskImpact `json:"impactNotIn,omitempty"` + ImpactIsNil *bool `json:"impactIsNil,omitempty"` + ImpactNotNil *bool `json:"impactNotNil,omitempty"` + // likelihood field predicates + Likelihood *enums.RiskLikelihood `json:"likelihood,omitempty"` + LikelihoodNeq *enums.RiskLikelihood `json:"likelihoodNEQ,omitempty"` + LikelihoodIn []enums.RiskLikelihood `json:"likelihoodIn,omitempty"` + LikelihoodNotIn []enums.RiskLikelihood `json:"likelihoodNotIn,omitempty"` + LikelihoodIsNil *bool `json:"likelihoodIsNil,omitempty"` + LikelihoodNotNil *bool `json:"likelihoodNotNil,omitempty"` + // mitigation field predicates + Mitigation *string `json:"mitigation,omitempty"` + MitigationNeq *string `json:"mitigationNEQ,omitempty"` + MitigationIn []string `json:"mitigationIn,omitempty"` + MitigationNotIn []string `json:"mitigationNotIn,omitempty"` + MitigationGt *string `json:"mitigationGT,omitempty"` + MitigationGte *string `json:"mitigationGTE,omitempty"` + MitigationLt *string `json:"mitigationLT,omitempty"` + MitigationLte *string `json:"mitigationLTE,omitempty"` + MitigationContains *string `json:"mitigationContains,omitempty"` + MitigationHasPrefix *string `json:"mitigationHasPrefix,omitempty"` + MitigationHasSuffix *string `json:"mitigationHasSuffix,omitempty"` + MitigationIsNil *bool `json:"mitigationIsNil,omitempty"` + MitigationNotNil *bool `json:"mitigationNotNil,omitempty"` + MitigationEqualFold *string `json:"mitigationEqualFold,omitempty"` + MitigationContainsFold *string `json:"mitigationContainsFold,omitempty"` + // satisfies field predicates + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNeq *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGt *string `json:"satisfiesGT,omitempty"` + SatisfiesGte *string `json:"satisfiesGTE,omitempty"` + SatisfiesLt *string `json:"satisfiesLT,omitempty"` + SatisfiesLte *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil *bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil *bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` +} + +type RiskSearchResult struct { + Risks []*Risk `json:"risks,omitempty"` +} + +func (RiskSearchResult) IsSearchResult() {} + +// Return response for updateRisk mutation +type RiskUpdatePayload struct { + // Updated risk + Risk *Risk `json:"risk"` +} + +// RiskWhereInput is used for filtering Risk objects. // Input was generated by ent. -type OrganizationHistoryWhereInput struct { - Not *OrganizationHistoryWhereInput `json:"not,omitempty"` - And []*OrganizationHistoryWhereInput `json:"and,omitempty"` - Or []*OrganizationHistoryWhereInput `json:"or,omitempty"` +type RiskWhereInput struct { + Not *RiskWhereInput `json:"not,omitempty"` + And []*RiskWhereInput `json:"and,omitempty"` + Or []*RiskWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -10275,36 +15883,6 @@ type OrganizationHistoryWhereInput struct { IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` - // history_time field predicates - HistoryTime *time.Time `json:"historyTime,omitempty"` - HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` - HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` - HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` - RefGt *string `json:"refGT,omitempty"` - RefGte *string `json:"refGTE,omitempty"` - RefLt *string `json:"refLT,omitempty"` - RefLte *string `json:"refLTE,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"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` @@ -10386,142 +15964,221 @@ type OrganizationHistoryWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // display_name field predicates - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGt *string `json:"displayNameGT,omitempty"` - DisplayNameGte *string `json:"displayNameGTE,omitempty"` - DisplayNameLt *string `json:"displayNameLT,omitempty"` - DisplayNameLte *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` - // parent_organization_id field predicates - ParentOrganizationID *string `json:"parentOrganizationID,omitempty"` - ParentOrganizationIdneq *string `json:"parentOrganizationIDNEQ,omitempty"` - ParentOrganizationIDIn []string `json:"parentOrganizationIDIn,omitempty"` - ParentOrganizationIDNotIn []string `json:"parentOrganizationIDNotIn,omitempty"` - ParentOrganizationIdgt *string `json:"parentOrganizationIDGT,omitempty"` - ParentOrganizationIdgte *string `json:"parentOrganizationIDGTE,omitempty"` - ParentOrganizationIdlt *string `json:"parentOrganizationIDLT,omitempty"` - ParentOrganizationIdlte *string `json:"parentOrganizationIDLTE,omitempty"` - ParentOrganizationIDContains *string `json:"parentOrganizationIDContains,omitempty"` - ParentOrganizationIDHasPrefix *string `json:"parentOrganizationIDHasPrefix,omitempty"` - ParentOrganizationIDHasSuffix *string `json:"parentOrganizationIDHasSuffix,omitempty"` - ParentOrganizationIDIsNil *bool `json:"parentOrganizationIDIsNil,omitempty"` - ParentOrganizationIDNotNil *bool `json:"parentOrganizationIDNotNil,omitempty"` - ParentOrganizationIDEqualFold *string `json:"parentOrganizationIDEqualFold,omitempty"` - ParentOrganizationIDContainsFold *string `json:"parentOrganizationIDContainsFold,omitempty"` - // personal_org field predicates - PersonalOrg *bool `json:"personalOrg,omitempty"` - PersonalOrgNeq *bool `json:"personalOrgNEQ,omitempty"` - PersonalOrgIsNil *bool `json:"personalOrgIsNil,omitempty"` - PersonalOrgNotNil *bool `json:"personalOrgNotNil,omitempty"` - // avatar_remote_url field predicates - AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` - AvatarRemoteURLNeq *string `json:"avatarRemoteURLNEQ,omitempty"` - AvatarRemoteURLIn []string `json:"avatarRemoteURLIn,omitempty"` - AvatarRemoteURLNotIn []string `json:"avatarRemoteURLNotIn,omitempty"` - AvatarRemoteURLGt *string `json:"avatarRemoteURLGT,omitempty"` - AvatarRemoteURLGte *string `json:"avatarRemoteURLGTE,omitempty"` - AvatarRemoteURLLt *string `json:"avatarRemoteURLLT,omitempty"` - AvatarRemoteURLLte *string `json:"avatarRemoteURLLTE,omitempty"` - AvatarRemoteURLContains *string `json:"avatarRemoteURLContains,omitempty"` - AvatarRemoteURLHasPrefix *string `json:"avatarRemoteURLHasPrefix,omitempty"` - AvatarRemoteURLHasSuffix *string `json:"avatarRemoteURLHasSuffix,omitempty"` - AvatarRemoteURLIsNil *bool `json:"avatarRemoteURLIsNil,omitempty"` - AvatarRemoteURLNotNil *bool `json:"avatarRemoteURLNotNil,omitempty"` - AvatarRemoteURLEqualFold *string `json:"avatarRemoteURLEqualFold,omitempty"` - AvatarRemoteURLContainsFold *string `json:"avatarRemoteURLContainsFold,omitempty"` -} - -// Ordering options for Organization connections -type OrganizationOrder struct { - // The ordering direction. - Direction OrderDirection `json:"direction"` - // The field by which to order Organizations. - Field OrganizationOrderField `json:"field"` -} - -type OrganizationSearchResult struct { - Organizations []*Organization `json:"organizations,omitempty"` -} - -func (OrganizationSearchResult) IsSearchResult() {} - -type OrganizationSetting 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"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // domains associated with the organization - Domains []string `json:"domains,omitempty"` - // Name of the person to contact for billing - BillingContact *string `json:"billingContact,omitempty"` - // Email address of the person to contact for billing - BillingEmail *string `json:"billingEmail,omitempty"` - // Phone number to contact for billing - BillingPhone *string `json:"billingPhone,omitempty"` - // Address to send billing information to - BillingAddress *string `json:"billingAddress,omitempty"` - // Usually government-issued tax ID or business ID such as ABN in Australia - TaxIdentifier *string `json:"taxIdentifier,omitempty"` - // geographical location of the organization - GeoLocation *enums.Region `json:"geoLocation,omitempty"` - // the ID of the organization the settings belong to - OrganizationID *string `json:"organizationID,omitempty"` - Organization *Organization `json:"organization,omitempty"` - Files []*File `json:"files,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // risk_type field predicates + RiskType *string `json:"riskType,omitempty"` + RiskTypeNeq *string `json:"riskTypeNEQ,omitempty"` + RiskTypeIn []string `json:"riskTypeIn,omitempty"` + RiskTypeNotIn []string `json:"riskTypeNotIn,omitempty"` + RiskTypeGt *string `json:"riskTypeGT,omitempty"` + RiskTypeGte *string `json:"riskTypeGTE,omitempty"` + RiskTypeLt *string `json:"riskTypeLT,omitempty"` + RiskTypeLte *string `json:"riskTypeLTE,omitempty"` + RiskTypeContains *string `json:"riskTypeContains,omitempty"` + RiskTypeHasPrefix *string `json:"riskTypeHasPrefix,omitempty"` + RiskTypeHasSuffix *string `json:"riskTypeHasSuffix,omitempty"` + RiskTypeIsNil *bool `json:"riskTypeIsNil,omitempty"` + RiskTypeNotNil *bool `json:"riskTypeNotNil,omitempty"` + RiskTypeEqualFold *string `json:"riskTypeEqualFold,omitempty"` + RiskTypeContainsFold *string `json:"riskTypeContainsFold,omitempty"` + // business_costs field predicates + BusinessCosts *string `json:"businessCosts,omitempty"` + BusinessCostsNeq *string `json:"businessCostsNEQ,omitempty"` + BusinessCostsIn []string `json:"businessCostsIn,omitempty"` + BusinessCostsNotIn []string `json:"businessCostsNotIn,omitempty"` + BusinessCostsGt *string `json:"businessCostsGT,omitempty"` + BusinessCostsGte *string `json:"businessCostsGTE,omitempty"` + BusinessCostsLt *string `json:"businessCostsLT,omitempty"` + BusinessCostsLte *string `json:"businessCostsLTE,omitempty"` + BusinessCostsContains *string `json:"businessCostsContains,omitempty"` + BusinessCostsHasPrefix *string `json:"businessCostsHasPrefix,omitempty"` + BusinessCostsHasSuffix *string `json:"businessCostsHasSuffix,omitempty"` + BusinessCostsIsNil *bool `json:"businessCostsIsNil,omitempty"` + BusinessCostsNotNil *bool `json:"businessCostsNotNil,omitempty"` + BusinessCostsEqualFold *string `json:"businessCostsEqualFold,omitempty"` + BusinessCostsContainsFold *string `json:"businessCostsContainsFold,omitempty"` + // impact field predicates + Impact *enums.RiskImpact `json:"impact,omitempty"` + ImpactNeq *enums.RiskImpact `json:"impactNEQ,omitempty"` + ImpactIn []enums.RiskImpact `json:"impactIn,omitempty"` + ImpactNotIn []enums.RiskImpact `json:"impactNotIn,omitempty"` + ImpactIsNil *bool `json:"impactIsNil,omitempty"` + ImpactNotNil *bool `json:"impactNotNil,omitempty"` + // likelihood field predicates + Likelihood *enums.RiskLikelihood `json:"likelihood,omitempty"` + LikelihoodNeq *enums.RiskLikelihood `json:"likelihoodNEQ,omitempty"` + LikelihoodIn []enums.RiskLikelihood `json:"likelihoodIn,omitempty"` + LikelihoodNotIn []enums.RiskLikelihood `json:"likelihoodNotIn,omitempty"` + LikelihoodIsNil *bool `json:"likelihoodIsNil,omitempty"` + LikelihoodNotNil *bool `json:"likelihoodNotNil,omitempty"` + // mitigation field predicates + Mitigation *string `json:"mitigation,omitempty"` + MitigationNeq *string `json:"mitigationNEQ,omitempty"` + MitigationIn []string `json:"mitigationIn,omitempty"` + MitigationNotIn []string `json:"mitigationNotIn,omitempty"` + MitigationGt *string `json:"mitigationGT,omitempty"` + MitigationGte *string `json:"mitigationGTE,omitempty"` + MitigationLt *string `json:"mitigationLT,omitempty"` + MitigationLte *string `json:"mitigationLTE,omitempty"` + MitigationContains *string `json:"mitigationContains,omitempty"` + MitigationHasPrefix *string `json:"mitigationHasPrefix,omitempty"` + MitigationHasSuffix *string `json:"mitigationHasSuffix,omitempty"` + MitigationIsNil *bool `json:"mitigationIsNil,omitempty"` + MitigationNotNil *bool `json:"mitigationNotNil,omitempty"` + MitigationEqualFold *string `json:"mitigationEqualFold,omitempty"` + MitigationContainsFold *string `json:"mitigationContainsFold,omitempty"` + // satisfies field predicates + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNeq *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGt *string `json:"satisfiesGT,omitempty"` + SatisfiesGte *string `json:"satisfiesGTE,omitempty"` + SatisfiesLt *string `json:"satisfiesLT,omitempty"` + SatisfiesLte *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil *bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil *bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` + // control edge predicates + HasControl *bool `json:"hasControl,omitempty"` + HasControlWith []*ControlWhereInput `json:"hasControlWith,omitempty"` + // procedure edge predicates + HasProcedure *bool `json:"hasProcedure,omitempty"` + HasProcedureWith []*ProcedureWhereInput `json:"hasProcedureWith,omitempty"` + // actionplans edge predicates + HasActionplans *bool `json:"hasActionplans,omitempty"` + HasActionplansWith []*ActionPlanWhereInput `json:"hasActionplansWith,omitempty"` } -func (OrganizationSetting) IsNode() {} +type SearchResultConnection struct { + Page *PageInfo `json:"page"` + Nodes []SearchResult `json:"nodes"` +} -// Return response for createBulkOrganizationSetting mutation -type OrganizationSettingBulkCreatePayload struct { - // Created organizationSettings - OrganizationSettings []*OrganizationSetting `json:"organizationSettings,omitempty"` +type Standard 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + Name string `json:"name"` + // description of the standard + Description *string `json:"description,omitempty"` + // family of the standard, e.g. 800-53, 800-171, 27001, etc. + Family *string `json:"family,omitempty"` + // status of the standard - active, deprecated, etc. + Status *string `json:"status,omitempty"` + // type of the standard - security, privacy, etc. + StandardType *string `json:"standardType,omitempty"` + // version of the standard + Version *string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + // background of the standard + Background *string `json:"background,omitempty"` + // which controls are satisfied by the standard + Satisfies *string `json:"satisfies,omitempty"` + // json data with details of the standard + Details map[string]interface{} `json:"details,omitempty"` + Controlobjectives []*ControlObjective `json:"controlobjectives,omitempty"` + Controls []*Control `json:"controls,omitempty"` + Procedures []*Procedure `json:"procedures,omitempty"` + Actionplans []*ActionPlan `json:"actionplans,omitempty"` +} + +func (Standard) IsNode() {} + +// Return response for createBulkStandard mutation +type StandardBulkCreatePayload struct { + // Created standards + Standards []*Standard `json:"standards,omitempty"` } // A connection to a list of items. -type OrganizationSettingConnection struct { +type StandardConnection struct { // A list of edges. - Edges []*OrganizationSettingEdge `json:"edges,omitempty"` + Edges []*StandardEdge `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 createOrganizationSetting mutation -type OrganizationSettingCreatePayload struct { - // Created organizationSetting - OrganizationSetting *OrganizationSetting `json:"organizationSetting"` +// Return response for createStandard mutation +type StandardCreatePayload struct { + // Created standard + Standard *Standard `json:"standard"` } -// Return response for deleteOrganizationSetting mutation -type OrganizationSettingDeletePayload struct { - // Deleted organizationSetting ID +// Return response for deleteStandard mutation +type StandardDeletePayload struct { + // Deleted standard ID DeletedID string `json:"deletedID"` } // An edge in a connection. -type OrganizationSettingEdge struct { +type StandardEdge struct { // The item at the end of the edge. - Node *OrganizationSetting `json:"node,omitempty"` + Node *Standard `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -type OrganizationSettingHistory struct { +type StandardHistory struct { ID string `json:"id"` HistoryTime time.Time `json:"historyTime"` Ref *string `json:"ref,omitempty"` @@ -10530,34 +16187,38 @@ type OrganizationSettingHistory struct { UpdatedAt *time.Time `json:"updatedAt,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` // tags associated with the object - Tags []string `json:"tags,omitempty"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // domains associated with the organization - Domains []string `json:"domains,omitempty"` - // Name of the person to contact for billing - BillingContact *string `json:"billingContact,omitempty"` - // Email address of the person to contact for billing - BillingEmail *string `json:"billingEmail,omitempty"` - // Phone number to contact for billing - BillingPhone *string `json:"billingPhone,omitempty"` - // Address to send billing information to - BillingAddress *string `json:"billingAddress,omitempty"` - // Usually government-issued tax ID or business ID such as ABN in Australia - TaxIdentifier *string `json:"taxIdentifier,omitempty"` - // geographical location of the organization - GeoLocation *enums.Region `json:"geoLocation,omitempty"` - // the ID of the organization the settings belong to - OrganizationID *string `json:"organizationID,omitempty"` -} - -func (OrganizationSettingHistory) IsNode() {} + Tags []string `json:"tags,omitempty"` + // the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + Name string `json:"name"` + // description of the standard + Description *string `json:"description,omitempty"` + // family of the standard, e.g. 800-53, 800-171, 27001, etc. + Family *string `json:"family,omitempty"` + // status of the standard - active, deprecated, etc. + Status *string `json:"status,omitempty"` + // type of the standard - security, privacy, etc. + StandardType *string `json:"standardType,omitempty"` + // version of the standard + Version *string `json:"version,omitempty"` + // purpose and scope + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + // background of the standard + Background *string `json:"background,omitempty"` + // which controls are satisfied by the standard + Satisfies *string `json:"satisfies,omitempty"` + // json data with details of the standard + Details map[string]interface{} `json:"details,omitempty"` +} + +func (StandardHistory) IsNode() {} // A connection to a list of items. -type OrganizationSettingHistoryConnection struct { +type StandardHistoryConnection struct { // A list of edges. - Edges []*OrganizationSettingHistoryEdge `json:"edges,omitempty"` + Edges []*StandardHistoryEdge `json:"edges,omitempty"` // Information to aid in pagination. PageInfo *PageInfo `json:"pageInfo"` // Identifies the total count of items in the connection. @@ -10565,19 +16226,19 @@ type OrganizationSettingHistoryConnection struct { } // An edge in a connection. -type OrganizationSettingHistoryEdge struct { +type StandardHistoryEdge struct { // The item at the end of the edge. - Node *OrganizationSettingHistory `json:"node,omitempty"` + Node *StandardHistory `json:"node,omitempty"` // A cursor for use in pagination. Cursor string `json:"cursor"` } -// OrganizationSettingHistoryWhereInput is used for filtering OrganizationSettingHistory objects. +// StandardHistoryWhereInput is used for filtering StandardHistory objects. // Input was generated by ent. -type OrganizationSettingHistoryWhereInput struct { - Not *OrganizationSettingHistoryWhereInput `json:"not,omitempty"` - And []*OrganizationSettingHistoryWhereInput `json:"and,omitempty"` - Or []*OrganizationSettingHistoryWhereInput `json:"or,omitempty"` +type StandardHistoryWhereInput struct { + Not *StandardHistoryWhereInput `json:"not,omitempty"` + And []*StandardHistoryWhereInput `json:"and,omitempty"` + Or []*StandardHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -10700,129 +16361,168 @@ type OrganizationSettingHistoryWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // billing_contact field predicates - BillingContact *string `json:"billingContact,omitempty"` - BillingContactNeq *string `json:"billingContactNEQ,omitempty"` - BillingContactIn []string `json:"billingContactIn,omitempty"` - BillingContactNotIn []string `json:"billingContactNotIn,omitempty"` - BillingContactGt *string `json:"billingContactGT,omitempty"` - BillingContactGte *string `json:"billingContactGTE,omitempty"` - BillingContactLt *string `json:"billingContactLT,omitempty"` - BillingContactLte *string `json:"billingContactLTE,omitempty"` - BillingContactContains *string `json:"billingContactContains,omitempty"` - BillingContactHasPrefix *string `json:"billingContactHasPrefix,omitempty"` - BillingContactHasSuffix *string `json:"billingContactHasSuffix,omitempty"` - BillingContactIsNil *bool `json:"billingContactIsNil,omitempty"` - BillingContactNotNil *bool `json:"billingContactNotNil,omitempty"` - BillingContactEqualFold *string `json:"billingContactEqualFold,omitempty"` - BillingContactContainsFold *string `json:"billingContactContainsFold,omitempty"` - // billing_email field predicates - BillingEmail *string `json:"billingEmail,omitempty"` - BillingEmailNeq *string `json:"billingEmailNEQ,omitempty"` - BillingEmailIn []string `json:"billingEmailIn,omitempty"` - BillingEmailNotIn []string `json:"billingEmailNotIn,omitempty"` - BillingEmailGt *string `json:"billingEmailGT,omitempty"` - BillingEmailGte *string `json:"billingEmailGTE,omitempty"` - BillingEmailLt *string `json:"billingEmailLT,omitempty"` - BillingEmailLte *string `json:"billingEmailLTE,omitempty"` - BillingEmailContains *string `json:"billingEmailContains,omitempty"` - BillingEmailHasPrefix *string `json:"billingEmailHasPrefix,omitempty"` - BillingEmailHasSuffix *string `json:"billingEmailHasSuffix,omitempty"` - BillingEmailIsNil *bool `json:"billingEmailIsNil,omitempty"` - BillingEmailNotNil *bool `json:"billingEmailNotNil,omitempty"` - BillingEmailEqualFold *string `json:"billingEmailEqualFold,omitempty"` - BillingEmailContainsFold *string `json:"billingEmailContainsFold,omitempty"` - // billing_phone field predicates - BillingPhone *string `json:"billingPhone,omitempty"` - BillingPhoneNeq *string `json:"billingPhoneNEQ,omitempty"` - BillingPhoneIn []string `json:"billingPhoneIn,omitempty"` - BillingPhoneNotIn []string `json:"billingPhoneNotIn,omitempty"` - BillingPhoneGt *string `json:"billingPhoneGT,omitempty"` - BillingPhoneGte *string `json:"billingPhoneGTE,omitempty"` - BillingPhoneLt *string `json:"billingPhoneLT,omitempty"` - BillingPhoneLte *string `json:"billingPhoneLTE,omitempty"` - BillingPhoneContains *string `json:"billingPhoneContains,omitempty"` - BillingPhoneHasPrefix *string `json:"billingPhoneHasPrefix,omitempty"` - BillingPhoneHasSuffix *string `json:"billingPhoneHasSuffix,omitempty"` - BillingPhoneIsNil *bool `json:"billingPhoneIsNil,omitempty"` - BillingPhoneNotNil *bool `json:"billingPhoneNotNil,omitempty"` - BillingPhoneEqualFold *string `json:"billingPhoneEqualFold,omitempty"` - BillingPhoneContainsFold *string `json:"billingPhoneContainsFold,omitempty"` - // billing_address field predicates - BillingAddress *string `json:"billingAddress,omitempty"` - BillingAddressNeq *string `json:"billingAddressNEQ,omitempty"` - BillingAddressIn []string `json:"billingAddressIn,omitempty"` - BillingAddressNotIn []string `json:"billingAddressNotIn,omitempty"` - BillingAddressGt *string `json:"billingAddressGT,omitempty"` - BillingAddressGte *string `json:"billingAddressGTE,omitempty"` - BillingAddressLt *string `json:"billingAddressLT,omitempty"` - BillingAddressLte *string `json:"billingAddressLTE,omitempty"` - BillingAddressContains *string `json:"billingAddressContains,omitempty"` - BillingAddressHasPrefix *string `json:"billingAddressHasPrefix,omitempty"` - BillingAddressHasSuffix *string `json:"billingAddressHasSuffix,omitempty"` - BillingAddressIsNil *bool `json:"billingAddressIsNil,omitempty"` - BillingAddressNotNil *bool `json:"billingAddressNotNil,omitempty"` - BillingAddressEqualFold *string `json:"billingAddressEqualFold,omitempty"` - BillingAddressContainsFold *string `json:"billingAddressContainsFold,omitempty"` - // tax_identifier field predicates - TaxIdentifier *string `json:"taxIdentifier,omitempty"` - TaxIdentifierNeq *string `json:"taxIdentifierNEQ,omitempty"` - TaxIdentifierIn []string `json:"taxIdentifierIn,omitempty"` - TaxIdentifierNotIn []string `json:"taxIdentifierNotIn,omitempty"` - TaxIdentifierGt *string `json:"taxIdentifierGT,omitempty"` - TaxIdentifierGte *string `json:"taxIdentifierGTE,omitempty"` - TaxIdentifierLt *string `json:"taxIdentifierLT,omitempty"` - TaxIdentifierLte *string `json:"taxIdentifierLTE,omitempty"` - TaxIdentifierContains *string `json:"taxIdentifierContains,omitempty"` - TaxIdentifierHasPrefix *string `json:"taxIdentifierHasPrefix,omitempty"` - TaxIdentifierHasSuffix *string `json:"taxIdentifierHasSuffix,omitempty"` - TaxIdentifierIsNil *bool `json:"taxIdentifierIsNil,omitempty"` - TaxIdentifierNotNil *bool `json:"taxIdentifierNotNil,omitempty"` - TaxIdentifierEqualFold *string `json:"taxIdentifierEqualFold,omitempty"` - TaxIdentifierContainsFold *string `json:"taxIdentifierContainsFold,omitempty"` - // geo_location field predicates - GeoLocation *enums.Region `json:"geoLocation,omitempty"` - GeoLocationNeq *enums.Region `json:"geoLocationNEQ,omitempty"` - GeoLocationIn []enums.Region `json:"geoLocationIn,omitempty"` - GeoLocationNotIn []enums.Region `json:"geoLocationNotIn,omitempty"` - GeoLocationIsNil *bool `json:"geoLocationIsNil,omitempty"` - GeoLocationNotNil *bool `json:"geoLocationNotNil,omitempty"` - // organization_id field predicates - OrganizationID *string `json:"organizationID,omitempty"` - OrganizationIdneq *string `json:"organizationIDNEQ,omitempty"` - OrganizationIDIn []string `json:"organizationIDIn,omitempty"` - OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` - OrganizationIdgt *string `json:"organizationIDGT,omitempty"` - OrganizationIdgte *string `json:"organizationIDGTE,omitempty"` - OrganizationIdlt *string `json:"organizationIDLT,omitempty"` - OrganizationIdlte *string `json:"organizationIDLTE,omitempty"` - OrganizationIDContains *string `json:"organizationIDContains,omitempty"` - OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` - OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` - OrganizationIDIsNil *bool `json:"organizationIDIsNil,omitempty"` - OrganizationIDNotNil *bool `json:"organizationIDNotNil,omitempty"` - OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` - OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` -} - -type OrganizationSettingSearchResult struct { - OrganizationSettings []*OrganizationSetting `json:"organizationSettings,omitempty"` -} - -func (OrganizationSettingSearchResult) IsSearchResult() {} - -// Return response for updateOrganizationSetting mutation -type OrganizationSettingUpdatePayload struct { - // Updated organizationSetting - OrganizationSetting *OrganizationSetting `json:"organizationSetting"` -} - -// OrganizationSettingWhereInput is used for filtering OrganizationSetting objects. + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // family field predicates + Family *string `json:"family,omitempty"` + FamilyNeq *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGt *string `json:"familyGT,omitempty"` + FamilyGte *string `json:"familyGTE,omitempty"` + FamilyLt *string `json:"familyLT,omitempty"` + FamilyLte *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil *bool `json:"familyIsNil,omitempty"` + FamilyNotNil *bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // standard_type field predicates + StandardType *string `json:"standardType,omitempty"` + StandardTypeNeq *string `json:"standardTypeNEQ,omitempty"` + StandardTypeIn []string `json:"standardTypeIn,omitempty"` + StandardTypeNotIn []string `json:"standardTypeNotIn,omitempty"` + StandardTypeGt *string `json:"standardTypeGT,omitempty"` + StandardTypeGte *string `json:"standardTypeGTE,omitempty"` + StandardTypeLt *string `json:"standardTypeLT,omitempty"` + StandardTypeLte *string `json:"standardTypeLTE,omitempty"` + StandardTypeContains *string `json:"standardTypeContains,omitempty"` + StandardTypeHasPrefix *string `json:"standardTypeHasPrefix,omitempty"` + StandardTypeHasSuffix *string `json:"standardTypeHasSuffix,omitempty"` + StandardTypeIsNil *bool `json:"standardTypeIsNil,omitempty"` + StandardTypeNotNil *bool `json:"standardTypeNotNil,omitempty"` + StandardTypeEqualFold *string `json:"standardTypeEqualFold,omitempty"` + StandardTypeContainsFold *string `json:"standardTypeContainsFold,omitempty"` + // version field predicates + Version *string `json:"version,omitempty"` + VersionNeq *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGt *string `json:"versionGT,omitempty"` + VersionGte *string `json:"versionGTE,omitempty"` + VersionLt *string `json:"versionLT,omitempty"` + VersionLte *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil *bool `json:"versionIsNil,omitempty"` + VersionNotNil *bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // purpose_and_scope field predicates + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + PurposeAndScopeNeq *string `json:"purposeAndScopeNEQ,omitempty"` + PurposeAndScopeIn []string `json:"purposeAndScopeIn,omitempty"` + PurposeAndScopeNotIn []string `json:"purposeAndScopeNotIn,omitempty"` + PurposeAndScopeGt *string `json:"purposeAndScopeGT,omitempty"` + PurposeAndScopeGte *string `json:"purposeAndScopeGTE,omitempty"` + PurposeAndScopeLt *string `json:"purposeAndScopeLT,omitempty"` + PurposeAndScopeLte *string `json:"purposeAndScopeLTE,omitempty"` + PurposeAndScopeContains *string `json:"purposeAndScopeContains,omitempty"` + PurposeAndScopeHasPrefix *string `json:"purposeAndScopeHasPrefix,omitempty"` + PurposeAndScopeHasSuffix *string `json:"purposeAndScopeHasSuffix,omitempty"` + PurposeAndScopeIsNil *bool `json:"purposeAndScopeIsNil,omitempty"` + PurposeAndScopeNotNil *bool `json:"purposeAndScopeNotNil,omitempty"` + PurposeAndScopeEqualFold *string `json:"purposeAndScopeEqualFold,omitempty"` + PurposeAndScopeContainsFold *string `json:"purposeAndScopeContainsFold,omitempty"` + // background field predicates + Background *string `json:"background,omitempty"` + BackgroundNeq *string `json:"backgroundNEQ,omitempty"` + BackgroundIn []string `json:"backgroundIn,omitempty"` + BackgroundNotIn []string `json:"backgroundNotIn,omitempty"` + BackgroundGt *string `json:"backgroundGT,omitempty"` + BackgroundGte *string `json:"backgroundGTE,omitempty"` + BackgroundLt *string `json:"backgroundLT,omitempty"` + BackgroundLte *string `json:"backgroundLTE,omitempty"` + BackgroundContains *string `json:"backgroundContains,omitempty"` + BackgroundHasPrefix *string `json:"backgroundHasPrefix,omitempty"` + BackgroundHasSuffix *string `json:"backgroundHasSuffix,omitempty"` + BackgroundIsNil *bool `json:"backgroundIsNil,omitempty"` + BackgroundNotNil *bool `json:"backgroundNotNil,omitempty"` + BackgroundEqualFold *string `json:"backgroundEqualFold,omitempty"` + BackgroundContainsFold *string `json:"backgroundContainsFold,omitempty"` + // satisfies field predicates + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNeq *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGt *string `json:"satisfiesGT,omitempty"` + SatisfiesGte *string `json:"satisfiesGTE,omitempty"` + SatisfiesLt *string `json:"satisfiesLT,omitempty"` + SatisfiesLte *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil *bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil *bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` +} + +type StandardSearchResult struct { + Standards []*Standard `json:"standards,omitempty"` +} + +func (StandardSearchResult) IsSearchResult() {} + +// Return response for updateStandard mutation +type StandardUpdatePayload struct { + // Updated standard + Standard *Standard `json:"standard"` +} + +// StandardWhereInput is used for filtering Standard objects. // Input was generated by ent. -type OrganizationSettingWhereInput struct { - Not *OrganizationSettingWhereInput `json:"not,omitempty"` - And []*OrganizationSettingWhereInput `json:"and,omitempty"` - Or []*OrganizationSettingWhereInput `json:"or,omitempty"` +type StandardWhereInput struct { + Not *StandardWhereInput `json:"not,omitempty"` + And []*StandardWhereInput `json:"and,omitempty"` + Or []*StandardWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -10915,129 +16615,320 @@ type OrganizationSettingWhereInput struct { DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // billing_contact field predicates - BillingContact *string `json:"billingContact,omitempty"` - BillingContactNeq *string `json:"billingContactNEQ,omitempty"` - BillingContactIn []string `json:"billingContactIn,omitempty"` - BillingContactNotIn []string `json:"billingContactNotIn,omitempty"` - BillingContactGt *string `json:"billingContactGT,omitempty"` - BillingContactGte *string `json:"billingContactGTE,omitempty"` - BillingContactLt *string `json:"billingContactLT,omitempty"` - BillingContactLte *string `json:"billingContactLTE,omitempty"` - BillingContactContains *string `json:"billingContactContains,omitempty"` - BillingContactHasPrefix *string `json:"billingContactHasPrefix,omitempty"` - BillingContactHasSuffix *string `json:"billingContactHasSuffix,omitempty"` - BillingContactIsNil *bool `json:"billingContactIsNil,omitempty"` - BillingContactNotNil *bool `json:"billingContactNotNil,omitempty"` - BillingContactEqualFold *string `json:"billingContactEqualFold,omitempty"` - BillingContactContainsFold *string `json:"billingContactContainsFold,omitempty"` - // billing_email field predicates - BillingEmail *string `json:"billingEmail,omitempty"` - BillingEmailNeq *string `json:"billingEmailNEQ,omitempty"` - BillingEmailIn []string `json:"billingEmailIn,omitempty"` - BillingEmailNotIn []string `json:"billingEmailNotIn,omitempty"` - BillingEmailGt *string `json:"billingEmailGT,omitempty"` - BillingEmailGte *string `json:"billingEmailGTE,omitempty"` - BillingEmailLt *string `json:"billingEmailLT,omitempty"` - BillingEmailLte *string `json:"billingEmailLTE,omitempty"` - BillingEmailContains *string `json:"billingEmailContains,omitempty"` - BillingEmailHasPrefix *string `json:"billingEmailHasPrefix,omitempty"` - BillingEmailHasSuffix *string `json:"billingEmailHasSuffix,omitempty"` - BillingEmailIsNil *bool `json:"billingEmailIsNil,omitempty"` - BillingEmailNotNil *bool `json:"billingEmailNotNil,omitempty"` - BillingEmailEqualFold *string `json:"billingEmailEqualFold,omitempty"` - BillingEmailContainsFold *string `json:"billingEmailContainsFold,omitempty"` - // billing_phone field predicates - BillingPhone *string `json:"billingPhone,omitempty"` - BillingPhoneNeq *string `json:"billingPhoneNEQ,omitempty"` - BillingPhoneIn []string `json:"billingPhoneIn,omitempty"` - BillingPhoneNotIn []string `json:"billingPhoneNotIn,omitempty"` - BillingPhoneGt *string `json:"billingPhoneGT,omitempty"` - BillingPhoneGte *string `json:"billingPhoneGTE,omitempty"` - BillingPhoneLt *string `json:"billingPhoneLT,omitempty"` - BillingPhoneLte *string `json:"billingPhoneLTE,omitempty"` - BillingPhoneContains *string `json:"billingPhoneContains,omitempty"` - BillingPhoneHasPrefix *string `json:"billingPhoneHasPrefix,omitempty"` - BillingPhoneHasSuffix *string `json:"billingPhoneHasSuffix,omitempty"` - BillingPhoneIsNil *bool `json:"billingPhoneIsNil,omitempty"` - BillingPhoneNotNil *bool `json:"billingPhoneNotNil,omitempty"` - BillingPhoneEqualFold *string `json:"billingPhoneEqualFold,omitempty"` - BillingPhoneContainsFold *string `json:"billingPhoneContainsFold,omitempty"` - // billing_address field predicates - BillingAddress *string `json:"billingAddress,omitempty"` - BillingAddressNeq *string `json:"billingAddressNEQ,omitempty"` - BillingAddressIn []string `json:"billingAddressIn,omitempty"` - BillingAddressNotIn []string `json:"billingAddressNotIn,omitempty"` - BillingAddressGt *string `json:"billingAddressGT,omitempty"` - BillingAddressGte *string `json:"billingAddressGTE,omitempty"` - BillingAddressLt *string `json:"billingAddressLT,omitempty"` - BillingAddressLte *string `json:"billingAddressLTE,omitempty"` - BillingAddressContains *string `json:"billingAddressContains,omitempty"` - BillingAddressHasPrefix *string `json:"billingAddressHasPrefix,omitempty"` - BillingAddressHasSuffix *string `json:"billingAddressHasSuffix,omitempty"` - BillingAddressIsNil *bool `json:"billingAddressIsNil,omitempty"` - BillingAddressNotNil *bool `json:"billingAddressNotNil,omitempty"` - BillingAddressEqualFold *string `json:"billingAddressEqualFold,omitempty"` - BillingAddressContainsFold *string `json:"billingAddressContainsFold,omitempty"` - // tax_identifier field predicates - TaxIdentifier *string `json:"taxIdentifier,omitempty"` - TaxIdentifierNeq *string `json:"taxIdentifierNEQ,omitempty"` - TaxIdentifierIn []string `json:"taxIdentifierIn,omitempty"` - TaxIdentifierNotIn []string `json:"taxIdentifierNotIn,omitempty"` - TaxIdentifierGt *string `json:"taxIdentifierGT,omitempty"` - TaxIdentifierGte *string `json:"taxIdentifierGTE,omitempty"` - TaxIdentifierLt *string `json:"taxIdentifierLT,omitempty"` - TaxIdentifierLte *string `json:"taxIdentifierLTE,omitempty"` - TaxIdentifierContains *string `json:"taxIdentifierContains,omitempty"` - TaxIdentifierHasPrefix *string `json:"taxIdentifierHasPrefix,omitempty"` - TaxIdentifierHasSuffix *string `json:"taxIdentifierHasSuffix,omitempty"` - TaxIdentifierIsNil *bool `json:"taxIdentifierIsNil,omitempty"` - TaxIdentifierNotNil *bool `json:"taxIdentifierNotNil,omitempty"` - TaxIdentifierEqualFold *string `json:"taxIdentifierEqualFold,omitempty"` - TaxIdentifierContainsFold *string `json:"taxIdentifierContainsFold,omitempty"` - // geo_location field predicates - GeoLocation *enums.Region `json:"geoLocation,omitempty"` - GeoLocationNeq *enums.Region `json:"geoLocationNEQ,omitempty"` - GeoLocationIn []enums.Region `json:"geoLocationIn,omitempty"` - GeoLocationNotIn []enums.Region `json:"geoLocationNotIn,omitempty"` - GeoLocationIsNil *bool `json:"geoLocationIsNil,omitempty"` - GeoLocationNotNil *bool `json:"geoLocationNotNil,omitempty"` - // organization_id field predicates - OrganizationID *string `json:"organizationID,omitempty"` - OrganizationIdneq *string `json:"organizationIDNEQ,omitempty"` - OrganizationIDIn []string `json:"organizationIDIn,omitempty"` - OrganizationIDNotIn []string `json:"organizationIDNotIn,omitempty"` - OrganizationIdgt *string `json:"organizationIDGT,omitempty"` - OrganizationIdgte *string `json:"organizationIDGTE,omitempty"` - OrganizationIdlt *string `json:"organizationIDLT,omitempty"` - OrganizationIdlte *string `json:"organizationIDLTE,omitempty"` - OrganizationIDContains *string `json:"organizationIDContains,omitempty"` - OrganizationIDHasPrefix *string `json:"organizationIDHasPrefix,omitempty"` - OrganizationIDHasSuffix *string `json:"organizationIDHasSuffix,omitempty"` - OrganizationIDIsNil *bool `json:"organizationIDIsNil,omitempty"` - OrganizationIDNotNil *bool `json:"organizationIDNotNil,omitempty"` - OrganizationIDEqualFold *string `json:"organizationIDEqualFold,omitempty"` - OrganizationIDContainsFold *string `json:"organizationIDContainsFold,omitempty"` - // organization edge predicates - HasOrganization *bool `json:"hasOrganization,omitempty"` - HasOrganizationWith []*OrganizationWhereInput `json:"hasOrganizationWith,omitempty"` - // files edge predicates - HasFiles *bool `json:"hasFiles,omitempty"` - HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // family field predicates + Family *string `json:"family,omitempty"` + FamilyNeq *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGt *string `json:"familyGT,omitempty"` + FamilyGte *string `json:"familyGTE,omitempty"` + FamilyLt *string `json:"familyLT,omitempty"` + FamilyLte *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil *bool `json:"familyIsNil,omitempty"` + FamilyNotNil *bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // standard_type field predicates + StandardType *string `json:"standardType,omitempty"` + StandardTypeNeq *string `json:"standardTypeNEQ,omitempty"` + StandardTypeIn []string `json:"standardTypeIn,omitempty"` + StandardTypeNotIn []string `json:"standardTypeNotIn,omitempty"` + StandardTypeGt *string `json:"standardTypeGT,omitempty"` + StandardTypeGte *string `json:"standardTypeGTE,omitempty"` + StandardTypeLt *string `json:"standardTypeLT,omitempty"` + StandardTypeLte *string `json:"standardTypeLTE,omitempty"` + StandardTypeContains *string `json:"standardTypeContains,omitempty"` + StandardTypeHasPrefix *string `json:"standardTypeHasPrefix,omitempty"` + StandardTypeHasSuffix *string `json:"standardTypeHasSuffix,omitempty"` + StandardTypeIsNil *bool `json:"standardTypeIsNil,omitempty"` + StandardTypeNotNil *bool `json:"standardTypeNotNil,omitempty"` + StandardTypeEqualFold *string `json:"standardTypeEqualFold,omitempty"` + StandardTypeContainsFold *string `json:"standardTypeContainsFold,omitempty"` + // version field predicates + Version *string `json:"version,omitempty"` + VersionNeq *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGt *string `json:"versionGT,omitempty"` + VersionGte *string `json:"versionGTE,omitempty"` + VersionLt *string `json:"versionLT,omitempty"` + VersionLte *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil *bool `json:"versionIsNil,omitempty"` + VersionNotNil *bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // purpose_and_scope field predicates + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + PurposeAndScopeNeq *string `json:"purposeAndScopeNEQ,omitempty"` + PurposeAndScopeIn []string `json:"purposeAndScopeIn,omitempty"` + PurposeAndScopeNotIn []string `json:"purposeAndScopeNotIn,omitempty"` + PurposeAndScopeGt *string `json:"purposeAndScopeGT,omitempty"` + PurposeAndScopeGte *string `json:"purposeAndScopeGTE,omitempty"` + PurposeAndScopeLt *string `json:"purposeAndScopeLT,omitempty"` + PurposeAndScopeLte *string `json:"purposeAndScopeLTE,omitempty"` + PurposeAndScopeContains *string `json:"purposeAndScopeContains,omitempty"` + PurposeAndScopeHasPrefix *string `json:"purposeAndScopeHasPrefix,omitempty"` + PurposeAndScopeHasSuffix *string `json:"purposeAndScopeHasSuffix,omitempty"` + PurposeAndScopeIsNil *bool `json:"purposeAndScopeIsNil,omitempty"` + PurposeAndScopeNotNil *bool `json:"purposeAndScopeNotNil,omitempty"` + PurposeAndScopeEqualFold *string `json:"purposeAndScopeEqualFold,omitempty"` + PurposeAndScopeContainsFold *string `json:"purposeAndScopeContainsFold,omitempty"` + // background field predicates + Background *string `json:"background,omitempty"` + BackgroundNeq *string `json:"backgroundNEQ,omitempty"` + BackgroundIn []string `json:"backgroundIn,omitempty"` + BackgroundNotIn []string `json:"backgroundNotIn,omitempty"` + BackgroundGt *string `json:"backgroundGT,omitempty"` + BackgroundGte *string `json:"backgroundGTE,omitempty"` + BackgroundLt *string `json:"backgroundLT,omitempty"` + BackgroundLte *string `json:"backgroundLTE,omitempty"` + BackgroundContains *string `json:"backgroundContains,omitempty"` + BackgroundHasPrefix *string `json:"backgroundHasPrefix,omitempty"` + BackgroundHasSuffix *string `json:"backgroundHasSuffix,omitempty"` + BackgroundIsNil *bool `json:"backgroundIsNil,omitempty"` + BackgroundNotNil *bool `json:"backgroundNotNil,omitempty"` + BackgroundEqualFold *string `json:"backgroundEqualFold,omitempty"` + BackgroundContainsFold *string `json:"backgroundContainsFold,omitempty"` + // satisfies field predicates + Satisfies *string `json:"satisfies,omitempty"` + SatisfiesNeq *string `json:"satisfiesNEQ,omitempty"` + SatisfiesIn []string `json:"satisfiesIn,omitempty"` + SatisfiesNotIn []string `json:"satisfiesNotIn,omitempty"` + SatisfiesGt *string `json:"satisfiesGT,omitempty"` + SatisfiesGte *string `json:"satisfiesGTE,omitempty"` + SatisfiesLt *string `json:"satisfiesLT,omitempty"` + SatisfiesLte *string `json:"satisfiesLTE,omitempty"` + SatisfiesContains *string `json:"satisfiesContains,omitempty"` + SatisfiesHasPrefix *string `json:"satisfiesHasPrefix,omitempty"` + SatisfiesHasSuffix *string `json:"satisfiesHasSuffix,omitempty"` + SatisfiesIsNil *bool `json:"satisfiesIsNil,omitempty"` + SatisfiesNotNil *bool `json:"satisfiesNotNil,omitempty"` + SatisfiesEqualFold *string `json:"satisfiesEqualFold,omitempty"` + SatisfiesContainsFold *string `json:"satisfiesContainsFold,omitempty"` + // controlobjectives edge predicates + HasControlobjectives *bool `json:"hasControlobjectives,omitempty"` + HasControlobjectivesWith []*ControlObjectiveWhereInput `json:"hasControlobjectivesWith,omitempty"` + // controls edge predicates + HasControls *bool `json:"hasControls,omitempty"` + HasControlsWith []*ControlWhereInput `json:"hasControlsWith,omitempty"` + // procedures edge predicates + HasProcedures *bool `json:"hasProcedures,omitempty"` + HasProceduresWith []*ProcedureWhereInput `json:"hasProceduresWith,omitempty"` + // actionplans edge predicates + HasActionplans *bool `json:"hasActionplans,omitempty"` + HasActionplansWith []*ActionPlanWhereInput `json:"hasActionplansWith,omitempty"` +} + +type Subcontrol 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"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the subcontrol + Name string `json:"name"` + // description of the subcontrol + Description *string `json:"description,omitempty"` + // status of the subcontrol + Status *string `json:"status,omitempty"` + // type of the subcontrol + SubcontrolType *string `json:"subcontrolType,omitempty"` + // version of the control + Version *string `json:"version,omitempty"` + // number of the subcontrol + SubcontrolNumber *string `json:"subcontrolNumber,omitempty"` + // subcontrol family + Family *string `json:"family,omitempty"` + // subcontrol class + Class *string `json:"class,omitempty"` + // source of the control, e.g. framework, template, user-defined, etc. + Source *string `json:"source,omitempty"` + // mapped frameworks that the subcontrol is part of + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + // implementation evidence of the subcontrol + ImplementationEvidence *string `json:"implementationEvidence,omitempty"` + // implementation status + ImplementationStatus *string `json:"implementationStatus,omitempty"` + // date the subcontrol was implemented + ImplementationDate *time.Time `json:"implementationDate,omitempty"` + // implementation verification + ImplementationVerification *string `json:"implementationVerification,omitempty"` + // date the subcontrol implementation was verified + ImplementationVerificationDate *time.Time `json:"implementationVerificationDate,omitempty"` + // json data details of the subcontrol + Details map[string]interface{} `json:"details,omitempty"` + Control []*Control `json:"control,omitempty"` + User []*User `json:"user,omitempty"` + Notes *Note `json:"notes,omitempty"` +} + +func (Subcontrol) IsNode() {} + +// Return response for createBulkSubcontrol mutation +type SubcontrolBulkCreatePayload struct { + // Created subcontrols + Subcontrols []*Subcontrol `json:"subcontrols,omitempty"` } -// Return response for updateOrganization mutation -type OrganizationUpdatePayload struct { - // Updated organization - Organization *Organization `json:"organization"` +// A connection to a list of items. +type SubcontrolConnection struct { + // A list of edges. + Edges []*SubcontrolEdge `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"` } -// OrganizationWhereInput is used for filtering Organization objects. +// Return response for createSubcontrol mutation +type SubcontrolCreatePayload struct { + // Created subcontrol + Subcontrol *Subcontrol `json:"subcontrol"` +} + +// Return response for deleteSubcontrol mutation +type SubcontrolDeletePayload struct { + // Deleted subcontrol ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type SubcontrolEdge struct { + // The item at the end of the edge. + Node *Subcontrol `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type SubcontrolHistory struct { + ID string `json:"id"` + HistoryTime time.Time `json:"historyTime"` + Ref *string `json:"ref,omitempty"` + Operation history.OpType `json:"operation"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + DeletedAt *time.Time `json:"deletedAt,omitempty"` + DeletedBy *string `json:"deletedBy,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the subcontrol + Name string `json:"name"` + // description of the subcontrol + Description *string `json:"description,omitempty"` + // status of the subcontrol + Status *string `json:"status,omitempty"` + // type of the subcontrol + SubcontrolType *string `json:"subcontrolType,omitempty"` + // version of the control + Version *string `json:"version,omitempty"` + // number of the subcontrol + SubcontrolNumber *string `json:"subcontrolNumber,omitempty"` + // subcontrol family + Family *string `json:"family,omitempty"` + // subcontrol class + Class *string `json:"class,omitempty"` + // source of the control, e.g. framework, template, user-defined, etc. + Source *string `json:"source,omitempty"` + // mapped frameworks that the subcontrol is part of + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + // implementation evidence of the subcontrol + ImplementationEvidence *string `json:"implementationEvidence,omitempty"` + // implementation status + ImplementationStatus *string `json:"implementationStatus,omitempty"` + // date the subcontrol was implemented + ImplementationDate *time.Time `json:"implementationDate,omitempty"` + // implementation verification + ImplementationVerification *string `json:"implementationVerification,omitempty"` + // date the subcontrol implementation was verified + ImplementationVerificationDate *time.Time `json:"implementationVerificationDate,omitempty"` + // json data details of the subcontrol + Details map[string]interface{} `json:"details,omitempty"` +} + +func (SubcontrolHistory) IsNode() {} + +// A connection to a list of items. +type SubcontrolHistoryConnection struct { + // A list of edges. + Edges []*SubcontrolHistoryEdge `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"` +} + +// An edge in a connection. +type SubcontrolHistoryEdge struct { + // The item at the end of the edge. + Node *SubcontrolHistory `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// SubcontrolHistoryWhereInput is used for filtering SubcontrolHistory objects. // Input was generated by ent. -type OrganizationWhereInput struct { - Not *OrganizationWhereInput `json:"not,omitempty"` - And []*OrganizationWhereInput `json:"and,omitempty"` - Or []*OrganizationWhereInput `json:"or,omitempty"` +type SubcontrolHistoryWhereInput struct { + Not *SubcontrolHistoryWhereInput `json:"not,omitempty"` + And []*SubcontrolHistoryWhereInput `json:"and,omitempty"` + Or []*SubcontrolHistoryWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -11049,6 +16940,36 @@ type OrganizationWhereInput struct { IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` + // history_time field predicates + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeNeq *time.Time `json:"historyTimeNEQ,omitempty"` + HistoryTimeIn []*time.Time `json:"historyTimeIn,omitempty"` + HistoryTimeNotIn []*time.Time `json:"historyTimeNotIn,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"` + RefGt *string `json:"refGT,omitempty"` + RefGte *string `json:"refGTE,omitempty"` + RefLt *string `json:"refLT,omitempty"` + RefLte *string `json:"refLTE,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"` CreatedAtNeq *time.Time `json:"createdAtNEQ,omitempty"` @@ -11112,252 +17033,272 @@ type OrganizationWhereInput struct { DeletedAtGte *time.Time `json:"deletedAtGTE,omitempty"` DeletedAtLt *time.Time `json:"deletedAtLT,omitempty"` DeletedAtLte *time.Time `json:"deletedAtLTE,omitempty"` - DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` - DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` - // deleted_by field predicates - DeletedBy *string `json:"deletedBy,omitempty"` - DeletedByNeq *string `json:"deletedByNEQ,omitempty"` - DeletedByIn []string `json:"deletedByIn,omitempty"` - DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` - DeletedByGt *string `json:"deletedByGT,omitempty"` - DeletedByGte *string `json:"deletedByGTE,omitempty"` - DeletedByLt *string `json:"deletedByLT,omitempty"` - DeletedByLte *string `json:"deletedByLTE,omitempty"` - DeletedByContains *string `json:"deletedByContains,omitempty"` - DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` - DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` - DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` - DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` - DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` - DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` - // display_name field predicates - DisplayName *string `json:"displayName,omitempty"` - DisplayNameNeq *string `json:"displayNameNEQ,omitempty"` - DisplayNameIn []string `json:"displayNameIn,omitempty"` - DisplayNameNotIn []string `json:"displayNameNotIn,omitempty"` - DisplayNameGt *string `json:"displayNameGT,omitempty"` - DisplayNameGte *string `json:"displayNameGTE,omitempty"` - DisplayNameLt *string `json:"displayNameLT,omitempty"` - DisplayNameLte *string `json:"displayNameLTE,omitempty"` - DisplayNameContains *string `json:"displayNameContains,omitempty"` - DisplayNameHasPrefix *string `json:"displayNameHasPrefix,omitempty"` - DisplayNameHasSuffix *string `json:"displayNameHasSuffix,omitempty"` - DisplayNameEqualFold *string `json:"displayNameEqualFold,omitempty"` - DisplayNameContainsFold *string `json:"displayNameContainsFold,omitempty"` - // parent_organization_id field predicates - ParentOrganizationID *string `json:"parentOrganizationID,omitempty"` - ParentOrganizationIdneq *string `json:"parentOrganizationIDNEQ,omitempty"` - ParentOrganizationIDIn []string `json:"parentOrganizationIDIn,omitempty"` - ParentOrganizationIDNotIn []string `json:"parentOrganizationIDNotIn,omitempty"` - ParentOrganizationIdgt *string `json:"parentOrganizationIDGT,omitempty"` - ParentOrganizationIdgte *string `json:"parentOrganizationIDGTE,omitempty"` - ParentOrganizationIdlt *string `json:"parentOrganizationIDLT,omitempty"` - ParentOrganizationIdlte *string `json:"parentOrganizationIDLTE,omitempty"` - ParentOrganizationIDContains *string `json:"parentOrganizationIDContains,omitempty"` - ParentOrganizationIDHasPrefix *string `json:"parentOrganizationIDHasPrefix,omitempty"` - ParentOrganizationIDHasSuffix *string `json:"parentOrganizationIDHasSuffix,omitempty"` - ParentOrganizationIDIsNil *bool `json:"parentOrganizationIDIsNil,omitempty"` - ParentOrganizationIDNotNil *bool `json:"parentOrganizationIDNotNil,omitempty"` - ParentOrganizationIDEqualFold *string `json:"parentOrganizationIDEqualFold,omitempty"` - ParentOrganizationIDContainsFold *string `json:"parentOrganizationIDContainsFold,omitempty"` - // personal_org field predicates - PersonalOrg *bool `json:"personalOrg,omitempty"` - PersonalOrgNeq *bool `json:"personalOrgNEQ,omitempty"` - PersonalOrgIsNil *bool `json:"personalOrgIsNil,omitempty"` - PersonalOrgNotNil *bool `json:"personalOrgNotNil,omitempty"` - // avatar_remote_url field predicates - AvatarRemoteURL *string `json:"avatarRemoteURL,omitempty"` - AvatarRemoteURLNeq *string `json:"avatarRemoteURLNEQ,omitempty"` - AvatarRemoteURLIn []string `json:"avatarRemoteURLIn,omitempty"` - AvatarRemoteURLNotIn []string `json:"avatarRemoteURLNotIn,omitempty"` - AvatarRemoteURLGt *string `json:"avatarRemoteURLGT,omitempty"` - AvatarRemoteURLGte *string `json:"avatarRemoteURLGTE,omitempty"` - AvatarRemoteURLLt *string `json:"avatarRemoteURLLT,omitempty"` - AvatarRemoteURLLte *string `json:"avatarRemoteURLLTE,omitempty"` - AvatarRemoteURLContains *string `json:"avatarRemoteURLContains,omitempty"` - AvatarRemoteURLHasPrefix *string `json:"avatarRemoteURLHasPrefix,omitempty"` - AvatarRemoteURLHasSuffix *string `json:"avatarRemoteURLHasSuffix,omitempty"` - AvatarRemoteURLIsNil *bool `json:"avatarRemoteURLIsNil,omitempty"` - AvatarRemoteURLNotNil *bool `json:"avatarRemoteURLNotNil,omitempty"` - AvatarRemoteURLEqualFold *string `json:"avatarRemoteURLEqualFold,omitempty"` - AvatarRemoteURLContainsFold *string `json:"avatarRemoteURLContainsFold,omitempty"` - // parent edge predicates - HasParent *bool `json:"hasParent,omitempty"` - HasParentWith []*OrganizationWhereInput `json:"hasParentWith,omitempty"` - // children edge predicates - HasChildren *bool `json:"hasChildren,omitempty"` - HasChildrenWith []*OrganizationWhereInput `json:"hasChildrenWith,omitempty"` - // groups edge predicates - HasGroups *bool `json:"hasGroups,omitempty"` - HasGroupsWith []*GroupWhereInput `json:"hasGroupsWith,omitempty"` - // templates edge predicates - HasTemplates *bool `json:"hasTemplates,omitempty"` - HasTemplatesWith []*TemplateWhereInput `json:"hasTemplatesWith,omitempty"` - // integrations edge predicates - HasIntegrations *bool `json:"hasIntegrations,omitempty"` - HasIntegrationsWith []*IntegrationWhereInput `json:"hasIntegrationsWith,omitempty"` - // setting edge predicates - HasSetting *bool `json:"hasSetting,omitempty"` - HasSettingWith []*OrganizationSettingWhereInput `json:"hasSettingWith,omitempty"` - // documentdata edge predicates - HasDocumentdata *bool `json:"hasDocumentdata,omitempty"` - HasDocumentdataWith []*DocumentDataWhereInput `json:"hasDocumentdataWith,omitempty"` - // entitlements edge predicates - HasEntitlements *bool `json:"hasEntitlements,omitempty"` - HasEntitlementsWith []*EntitlementWhereInput `json:"hasEntitlementsWith,omitempty"` - // organization_entitlement edge predicates - HasOrganizationEntitlement *bool `json:"hasOrganizationEntitlement,omitempty"` - HasOrganizationEntitlementWith []*EntitlementWhereInput `json:"hasOrganizationEntitlementWith,omitempty"` - // personal_access_tokens edge predicates - HasPersonalAccessTokens *bool `json:"hasPersonalAccessTokens,omitempty"` - HasPersonalAccessTokensWith []*PersonalAccessTokenWhereInput `json:"hasPersonalAccessTokensWith,omitempty"` - // api_tokens edge predicates - HasAPITokens *bool `json:"hasAPITokens,omitempty"` - HasAPITokensWith []*APITokenWhereInput `json:"hasAPITokensWith,omitempty"` - // oauthprovider edge predicates - HasOauthprovider *bool `json:"hasOauthprovider,omitempty"` - HasOauthproviderWith []*OauthProviderWhereInput `json:"hasOauthproviderWith,omitempty"` - // users edge predicates - HasUsers *bool `json:"hasUsers,omitempty"` - HasUsersWith []*UserWhereInput `json:"hasUsersWith,omitempty"` - // invites edge predicates - HasInvites *bool `json:"hasInvites,omitempty"` - HasInvitesWith []*InviteWhereInput `json:"hasInvitesWith,omitempty"` - // subscribers edge predicates - HasSubscribers *bool `json:"hasSubscribers,omitempty"` - HasSubscribersWith []*SubscriberWhereInput `json:"hasSubscribersWith,omitempty"` - // webhooks edge predicates - HasWebhooks *bool `json:"hasWebhooks,omitempty"` - HasWebhooksWith []*WebhookWhereInput `json:"hasWebhooksWith,omitempty"` - // events edge predicates - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` - // secrets edge predicates - HasSecrets *bool `json:"hasSecrets,omitempty"` - HasSecretsWith []*HushWhereInput `json:"hasSecretsWith,omitempty"` - // features edge predicates - HasFeatures *bool `json:"hasFeatures,omitempty"` - HasFeaturesWith []*FeatureWhereInput `json:"hasFeaturesWith,omitempty"` - // files edge predicates - HasFiles *bool `json:"hasFiles,omitempty"` - HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` - // entitlementplans edge predicates - HasEntitlementplans *bool `json:"hasEntitlementplans,omitempty"` - HasEntitlementplansWith []*EntitlementPlanWhereInput `json:"hasEntitlementplansWith,omitempty"` - // entitlementplanfeatures edge predicates - HasEntitlementplanfeatures *bool `json:"hasEntitlementplanfeatures,omitempty"` - HasEntitlementplanfeaturesWith []*EntitlementPlanFeatureWhereInput `json:"hasEntitlementplanfeaturesWith,omitempty"` - // entities edge predicates - HasEntities *bool `json:"hasEntities,omitempty"` - HasEntitiesWith []*EntityWhereInput `json:"hasEntitiesWith,omitempty"` - // entitytypes edge predicates - HasEntitytypes *bool `json:"hasEntitytypes,omitempty"` - HasEntitytypesWith []*EntityTypeWhereInput `json:"hasEntitytypesWith,omitempty"` - // contacts edge predicates - HasContacts *bool `json:"hasContacts,omitempty"` - HasContactsWith []*ContactWhereInput `json:"hasContactsWith,omitempty"` - // notes edge predicates - HasNotes *bool `json:"hasNotes,omitempty"` - HasNotesWith []*NoteWhereInput `json:"hasNotesWith,omitempty"` - // members edge predicates - HasMembers *bool `json:"hasMembers,omitempty"` - HasMembersWith []*OrgMembershipWhereInput `json:"hasMembersWith,omitempty"` -} - -// Information about pagination in a connection. -// https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo -type PageInfo struct { - // When paginating forwards, are there more items? - HasNextPage bool `json:"hasNextPage"` - // When paginating backwards, are there more items? - HasPreviousPage bool `json:"hasPreviousPage"` - // When paginating backwards, the cursor to continue. - StartCursor *string `json:"startCursor,omitempty"` - // When paginating forwards, the cursor to continue. - EndCursor *string `json:"endCursor,omitempty"` -} - -type PersonalAccessToken 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"` - DeletedAt *time.Time `json:"deletedAt,omitempty"` - DeletedBy *string `json:"deletedBy,omitempty"` - // tags associated with the object - Tags []string `json:"tags,omitempty"` - // the name associated with the token - Name string `json:"name"` - Token string `json:"token"` - // when the token expires - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - // a description of the token's purpose - Description *string `json:"description,omitempty"` - Scopes []string `json:"scopes,omitempty"` - LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` - Owner *User `json:"owner"` - // the organization(s) the token is associated with - Organizations []*Organization `json:"organizations,omitempty"` - Events []*Event `json:"events,omitempty"` -} - -func (PersonalAccessToken) IsNode() {} - -// Return response for createBulkPersonalAccessToken mutation -type PersonalAccessTokenBulkCreatePayload struct { - // Created personalAccessTokens - PersonalAccessTokens []*PersonalAccessToken `json:"personalAccessTokens,omitempty"` -} - -// A connection to a list of items. -type PersonalAccessTokenConnection struct { - // A list of edges. - Edges []*PersonalAccessTokenEdge `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 createPersonalAccessToken mutation -type PersonalAccessTokenCreatePayload struct { - // Created personalAccessToken - PersonalAccessToken *PersonalAccessToken `json:"personalAccessToken"` -} - -// Return response for deletePersonalAccessToken mutation -type PersonalAccessTokenDeletePayload struct { - // Deleted personalAccessToken ID - DeletedID string `json:"deletedID"` -} - -// An edge in a connection. -type PersonalAccessTokenEdge struct { - // The item at the end of the edge. - Node *PersonalAccessToken `json:"node,omitempty"` - // A cursor for use in pagination. - Cursor string `json:"cursor"` -} - -type PersonalAccessTokenSearchResult struct { - PersonalAccessTokens []*PersonalAccessToken `json:"personalAccessTokens,omitempty"` -} - -func (PersonalAccessTokenSearchResult) IsSearchResult() {} - -// Return response for updatePersonalAccessToken mutation -type PersonalAccessTokenUpdatePayload struct { - // Updated personalAccessToken - PersonalAccessToken *PersonalAccessToken `json:"personalAccessToken"` -} - -// PersonalAccessTokenWhereInput is used for filtering PersonalAccessToken objects. + DeletedAtIsNil *bool `json:"deletedAtIsNil,omitempty"` + DeletedAtNotNil *bool `json:"deletedAtNotNil,omitempty"` + // deleted_by field predicates + DeletedBy *string `json:"deletedBy,omitempty"` + DeletedByNeq *string `json:"deletedByNEQ,omitempty"` + DeletedByIn []string `json:"deletedByIn,omitempty"` + DeletedByNotIn []string `json:"deletedByNotIn,omitempty"` + DeletedByGt *string `json:"deletedByGT,omitempty"` + DeletedByGte *string `json:"deletedByGTE,omitempty"` + DeletedByLt *string `json:"deletedByLT,omitempty"` + DeletedByLte *string `json:"deletedByLTE,omitempty"` + DeletedByContains *string `json:"deletedByContains,omitempty"` + DeletedByHasPrefix *string `json:"deletedByHasPrefix,omitempty"` + DeletedByHasSuffix *string `json:"deletedByHasSuffix,omitempty"` + DeletedByIsNil *bool `json:"deletedByIsNil,omitempty"` + DeletedByNotNil *bool `json:"deletedByNotNil,omitempty"` + DeletedByEqualFold *string `json:"deletedByEqualFold,omitempty"` + DeletedByContainsFold *string `json:"deletedByContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameGt *string `json:"nameGT,omitempty"` + NameGte *string `json:"nameGTE,omitempty"` + NameLt *string `json:"nameLT,omitempty"` + NameLte *string `json:"nameLTE,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"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // subcontrol_type field predicates + SubcontrolType *string `json:"subcontrolType,omitempty"` + SubcontrolTypeNeq *string `json:"subcontrolTypeNEQ,omitempty"` + SubcontrolTypeIn []string `json:"subcontrolTypeIn,omitempty"` + SubcontrolTypeNotIn []string `json:"subcontrolTypeNotIn,omitempty"` + SubcontrolTypeGt *string `json:"subcontrolTypeGT,omitempty"` + SubcontrolTypeGte *string `json:"subcontrolTypeGTE,omitempty"` + SubcontrolTypeLt *string `json:"subcontrolTypeLT,omitempty"` + SubcontrolTypeLte *string `json:"subcontrolTypeLTE,omitempty"` + SubcontrolTypeContains *string `json:"subcontrolTypeContains,omitempty"` + SubcontrolTypeHasPrefix *string `json:"subcontrolTypeHasPrefix,omitempty"` + SubcontrolTypeHasSuffix *string `json:"subcontrolTypeHasSuffix,omitempty"` + SubcontrolTypeIsNil *bool `json:"subcontrolTypeIsNil,omitempty"` + SubcontrolTypeNotNil *bool `json:"subcontrolTypeNotNil,omitempty"` + SubcontrolTypeEqualFold *string `json:"subcontrolTypeEqualFold,omitempty"` + SubcontrolTypeContainsFold *string `json:"subcontrolTypeContainsFold,omitempty"` + // version field predicates + Version *string `json:"version,omitempty"` + VersionNeq *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGt *string `json:"versionGT,omitempty"` + VersionGte *string `json:"versionGTE,omitempty"` + VersionLt *string `json:"versionLT,omitempty"` + VersionLte *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil *bool `json:"versionIsNil,omitempty"` + VersionNotNil *bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // subcontrol_number field predicates + SubcontrolNumber *string `json:"subcontrolNumber,omitempty"` + SubcontrolNumberNeq *string `json:"subcontrolNumberNEQ,omitempty"` + SubcontrolNumberIn []string `json:"subcontrolNumberIn,omitempty"` + SubcontrolNumberNotIn []string `json:"subcontrolNumberNotIn,omitempty"` + SubcontrolNumberGt *string `json:"subcontrolNumberGT,omitempty"` + SubcontrolNumberGte *string `json:"subcontrolNumberGTE,omitempty"` + SubcontrolNumberLt *string `json:"subcontrolNumberLT,omitempty"` + SubcontrolNumberLte *string `json:"subcontrolNumberLTE,omitempty"` + SubcontrolNumberContains *string `json:"subcontrolNumberContains,omitempty"` + SubcontrolNumberHasPrefix *string `json:"subcontrolNumberHasPrefix,omitempty"` + SubcontrolNumberHasSuffix *string `json:"subcontrolNumberHasSuffix,omitempty"` + SubcontrolNumberIsNil *bool `json:"subcontrolNumberIsNil,omitempty"` + SubcontrolNumberNotNil *bool `json:"subcontrolNumberNotNil,omitempty"` + SubcontrolNumberEqualFold *string `json:"subcontrolNumberEqualFold,omitempty"` + SubcontrolNumberContainsFold *string `json:"subcontrolNumberContainsFold,omitempty"` + // family field predicates + Family *string `json:"family,omitempty"` + FamilyNeq *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGt *string `json:"familyGT,omitempty"` + FamilyGte *string `json:"familyGTE,omitempty"` + FamilyLt *string `json:"familyLT,omitempty"` + FamilyLte *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil *bool `json:"familyIsNil,omitempty"` + FamilyNotNil *bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + // class field predicates + Class *string `json:"class,omitempty"` + ClassNeq *string `json:"classNEQ,omitempty"` + ClassIn []string `json:"classIn,omitempty"` + ClassNotIn []string `json:"classNotIn,omitempty"` + ClassGt *string `json:"classGT,omitempty"` + ClassGte *string `json:"classGTE,omitempty"` + ClassLt *string `json:"classLT,omitempty"` + ClassLte *string `json:"classLTE,omitempty"` + ClassContains *string `json:"classContains,omitempty"` + ClassHasPrefix *string `json:"classHasPrefix,omitempty"` + ClassHasSuffix *string `json:"classHasSuffix,omitempty"` + ClassIsNil *bool `json:"classIsNil,omitempty"` + ClassNotNil *bool `json:"classNotNil,omitempty"` + ClassEqualFold *string `json:"classEqualFold,omitempty"` + ClassContainsFold *string `json:"classContainsFold,omitempty"` + // source field predicates + Source *string `json:"source,omitempty"` + SourceNeq *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGt *string `json:"sourceGT,omitempty"` + SourceGte *string `json:"sourceGTE,omitempty"` + SourceLt *string `json:"sourceLT,omitempty"` + SourceLte *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil *bool `json:"sourceIsNil,omitempty"` + SourceNotNil *bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + // mapped_frameworks field predicates + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + MappedFrameworksNeq *string `json:"mappedFrameworksNEQ,omitempty"` + MappedFrameworksIn []string `json:"mappedFrameworksIn,omitempty"` + MappedFrameworksNotIn []string `json:"mappedFrameworksNotIn,omitempty"` + MappedFrameworksGt *string `json:"mappedFrameworksGT,omitempty"` + MappedFrameworksGte *string `json:"mappedFrameworksGTE,omitempty"` + MappedFrameworksLt *string `json:"mappedFrameworksLT,omitempty"` + MappedFrameworksLte *string `json:"mappedFrameworksLTE,omitempty"` + MappedFrameworksContains *string `json:"mappedFrameworksContains,omitempty"` + MappedFrameworksHasPrefix *string `json:"mappedFrameworksHasPrefix,omitempty"` + MappedFrameworksHasSuffix *string `json:"mappedFrameworksHasSuffix,omitempty"` + MappedFrameworksIsNil *bool `json:"mappedFrameworksIsNil,omitempty"` + MappedFrameworksNotNil *bool `json:"mappedFrameworksNotNil,omitempty"` + MappedFrameworksEqualFold *string `json:"mappedFrameworksEqualFold,omitempty"` + MappedFrameworksContainsFold *string `json:"mappedFrameworksContainsFold,omitempty"` + // implementation_evidence field predicates + ImplementationEvidence *string `json:"implementationEvidence,omitempty"` + ImplementationEvidenceNeq *string `json:"implementationEvidenceNEQ,omitempty"` + ImplementationEvidenceIn []string `json:"implementationEvidenceIn,omitempty"` + ImplementationEvidenceNotIn []string `json:"implementationEvidenceNotIn,omitempty"` + ImplementationEvidenceGt *string `json:"implementationEvidenceGT,omitempty"` + ImplementationEvidenceGte *string `json:"implementationEvidenceGTE,omitempty"` + ImplementationEvidenceLt *string `json:"implementationEvidenceLT,omitempty"` + ImplementationEvidenceLte *string `json:"implementationEvidenceLTE,omitempty"` + ImplementationEvidenceContains *string `json:"implementationEvidenceContains,omitempty"` + ImplementationEvidenceHasPrefix *string `json:"implementationEvidenceHasPrefix,omitempty"` + ImplementationEvidenceHasSuffix *string `json:"implementationEvidenceHasSuffix,omitempty"` + ImplementationEvidenceIsNil *bool `json:"implementationEvidenceIsNil,omitempty"` + ImplementationEvidenceNotNil *bool `json:"implementationEvidenceNotNil,omitempty"` + ImplementationEvidenceEqualFold *string `json:"implementationEvidenceEqualFold,omitempty"` + ImplementationEvidenceContainsFold *string `json:"implementationEvidenceContainsFold,omitempty"` + // implementation_status field predicates + ImplementationStatus *string `json:"implementationStatus,omitempty"` + ImplementationStatusNeq *string `json:"implementationStatusNEQ,omitempty"` + ImplementationStatusIn []string `json:"implementationStatusIn,omitempty"` + ImplementationStatusNotIn []string `json:"implementationStatusNotIn,omitempty"` + ImplementationStatusGt *string `json:"implementationStatusGT,omitempty"` + ImplementationStatusGte *string `json:"implementationStatusGTE,omitempty"` + ImplementationStatusLt *string `json:"implementationStatusLT,omitempty"` + ImplementationStatusLte *string `json:"implementationStatusLTE,omitempty"` + ImplementationStatusContains *string `json:"implementationStatusContains,omitempty"` + ImplementationStatusHasPrefix *string `json:"implementationStatusHasPrefix,omitempty"` + ImplementationStatusHasSuffix *string `json:"implementationStatusHasSuffix,omitempty"` + ImplementationStatusIsNil *bool `json:"implementationStatusIsNil,omitempty"` + ImplementationStatusNotNil *bool `json:"implementationStatusNotNil,omitempty"` + ImplementationStatusEqualFold *string `json:"implementationStatusEqualFold,omitempty"` + ImplementationStatusContainsFold *string `json:"implementationStatusContainsFold,omitempty"` + // implementation_date field predicates + ImplementationDate *time.Time `json:"implementationDate,omitempty"` + ImplementationDateNeq *time.Time `json:"implementationDateNEQ,omitempty"` + ImplementationDateIn []*time.Time `json:"implementationDateIn,omitempty"` + ImplementationDateNotIn []*time.Time `json:"implementationDateNotIn,omitempty"` + ImplementationDateGt *time.Time `json:"implementationDateGT,omitempty"` + ImplementationDateGte *time.Time `json:"implementationDateGTE,omitempty"` + ImplementationDateLt *time.Time `json:"implementationDateLT,omitempty"` + ImplementationDateLte *time.Time `json:"implementationDateLTE,omitempty"` + ImplementationDateIsNil *bool `json:"implementationDateIsNil,omitempty"` + ImplementationDateNotNil *bool `json:"implementationDateNotNil,omitempty"` + // implementation_verification field predicates + ImplementationVerification *string `json:"implementationVerification,omitempty"` + ImplementationVerificationNeq *string `json:"implementationVerificationNEQ,omitempty"` + ImplementationVerificationIn []string `json:"implementationVerificationIn,omitempty"` + ImplementationVerificationNotIn []string `json:"implementationVerificationNotIn,omitempty"` + ImplementationVerificationGt *string `json:"implementationVerificationGT,omitempty"` + ImplementationVerificationGte *string `json:"implementationVerificationGTE,omitempty"` + ImplementationVerificationLt *string `json:"implementationVerificationLT,omitempty"` + ImplementationVerificationLte *string `json:"implementationVerificationLTE,omitempty"` + ImplementationVerificationContains *string `json:"implementationVerificationContains,omitempty"` + ImplementationVerificationHasPrefix *string `json:"implementationVerificationHasPrefix,omitempty"` + ImplementationVerificationHasSuffix *string `json:"implementationVerificationHasSuffix,omitempty"` + ImplementationVerificationIsNil *bool `json:"implementationVerificationIsNil,omitempty"` + ImplementationVerificationNotNil *bool `json:"implementationVerificationNotNil,omitempty"` + ImplementationVerificationEqualFold *string `json:"implementationVerificationEqualFold,omitempty"` + ImplementationVerificationContainsFold *string `json:"implementationVerificationContainsFold,omitempty"` + // implementation_verification_date field predicates + ImplementationVerificationDate *time.Time `json:"implementationVerificationDate,omitempty"` + ImplementationVerificationDateNeq *time.Time `json:"implementationVerificationDateNEQ,omitempty"` + ImplementationVerificationDateIn []*time.Time `json:"implementationVerificationDateIn,omitempty"` + ImplementationVerificationDateNotIn []*time.Time `json:"implementationVerificationDateNotIn,omitempty"` + ImplementationVerificationDateGt *time.Time `json:"implementationVerificationDateGT,omitempty"` + ImplementationVerificationDateGte *time.Time `json:"implementationVerificationDateGTE,omitempty"` + ImplementationVerificationDateLt *time.Time `json:"implementationVerificationDateLT,omitempty"` + ImplementationVerificationDateLte *time.Time `json:"implementationVerificationDateLTE,omitempty"` + ImplementationVerificationDateIsNil *bool `json:"implementationVerificationDateIsNil,omitempty"` + ImplementationVerificationDateNotNil *bool `json:"implementationVerificationDateNotNil,omitempty"` +} + +type SubcontrolSearchResult struct { + Subcontrols []*Subcontrol `json:"subcontrols,omitempty"` +} + +func (SubcontrolSearchResult) IsSearchResult() {} + +// Return response for updateSubcontrol mutation +type SubcontrolUpdatePayload struct { + // Updated subcontrol + Subcontrol *Subcontrol `json:"subcontrol"` +} + +// SubcontrolWhereInput is used for filtering Subcontrol objects. // Input was generated by ent. -type PersonalAccessTokenWhereInput struct { - Not *PersonalAccessTokenWhereInput `json:"not,omitempty"` - And []*PersonalAccessTokenWhereInput `json:"and,omitempty"` - Or []*PersonalAccessTokenWhereInput `json:"or,omitempty"` +type SubcontrolWhereInput struct { + Not *SubcontrolWhereInput `json:"not,omitempty"` + And []*SubcontrolWhereInput `json:"and,omitempty"` + Or []*SubcontrolWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` @@ -11464,45 +17405,229 @@ type PersonalAccessTokenWhereInput struct { NameHasSuffix *string `json:"nameHasSuffix,omitempty"` NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` - // expires_at field predicates - ExpiresAt *time.Time `json:"expiresAt,omitempty"` - ExpiresAtNeq *time.Time `json:"expiresAtNEQ,omitempty"` - ExpiresAtIn []*time.Time `json:"expiresAtIn,omitempty"` - ExpiresAtNotIn []*time.Time `json:"expiresAtNotIn,omitempty"` - ExpiresAtGt *time.Time `json:"expiresAtGT,omitempty"` - ExpiresAtGte *time.Time `json:"expiresAtGTE,omitempty"` - ExpiresAtLt *time.Time `json:"expiresAtLT,omitempty"` - ExpiresAtLte *time.Time `json:"expiresAtLTE,omitempty"` - ExpiresAtIsNil *bool `json:"expiresAtIsNil,omitempty"` - ExpiresAtNotNil *bool `json:"expiresAtNotNil,omitempty"` - // last_used_at field predicates - LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` - LastUsedAtNeq *time.Time `json:"lastUsedAtNEQ,omitempty"` - LastUsedAtIn []*time.Time `json:"lastUsedAtIn,omitempty"` - LastUsedAtNotIn []*time.Time `json:"lastUsedAtNotIn,omitempty"` - LastUsedAtGt *time.Time `json:"lastUsedAtGT,omitempty"` - LastUsedAtGte *time.Time `json:"lastUsedAtGTE,omitempty"` - LastUsedAtLt *time.Time `json:"lastUsedAtLT,omitempty"` - LastUsedAtLte *time.Time `json:"lastUsedAtLTE,omitempty"` - LastUsedAtIsNil *bool `json:"lastUsedAtIsNil,omitempty"` - LastUsedAtNotNil *bool `json:"lastUsedAtNotNil,omitempty"` - // owner edge predicates - HasOwner *bool `json:"hasOwner,omitempty"` - HasOwnerWith []*UserWhereInput `json:"hasOwnerWith,omitempty"` - // organizations edge predicates - HasOrganizations *bool `json:"hasOrganizations,omitempty"` - HasOrganizationsWith []*OrganizationWhereInput `json:"hasOrganizationsWith,omitempty"` - // events edge predicates - HasEvents *bool `json:"hasEvents,omitempty"` - HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` -} - -type Query struct { -} - -type SearchResultConnection struct { - Page *PageInfo `json:"page"` - Nodes []SearchResult `json:"nodes"` + // description field predicates + Description *string `json:"description,omitempty"` + DescriptionNeq *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionGt *string `json:"descriptionGT,omitempty"` + DescriptionGte *string `json:"descriptionGTE,omitempty"` + DescriptionLt *string `json:"descriptionLT,omitempty"` + DescriptionLte *string `json:"descriptionLTE,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"` + // status field predicates + Status *string `json:"status,omitempty"` + StatusNeq *string `json:"statusNEQ,omitempty"` + StatusIn []string `json:"statusIn,omitempty"` + StatusNotIn []string `json:"statusNotIn,omitempty"` + StatusGt *string `json:"statusGT,omitempty"` + StatusGte *string `json:"statusGTE,omitempty"` + StatusLt *string `json:"statusLT,omitempty"` + StatusLte *string `json:"statusLTE,omitempty"` + StatusContains *string `json:"statusContains,omitempty"` + StatusHasPrefix *string `json:"statusHasPrefix,omitempty"` + StatusHasSuffix *string `json:"statusHasSuffix,omitempty"` + StatusIsNil *bool `json:"statusIsNil,omitempty"` + StatusNotNil *bool `json:"statusNotNil,omitempty"` + StatusEqualFold *string `json:"statusEqualFold,omitempty"` + StatusContainsFold *string `json:"statusContainsFold,omitempty"` + // subcontrol_type field predicates + SubcontrolType *string `json:"subcontrolType,omitempty"` + SubcontrolTypeNeq *string `json:"subcontrolTypeNEQ,omitempty"` + SubcontrolTypeIn []string `json:"subcontrolTypeIn,omitempty"` + SubcontrolTypeNotIn []string `json:"subcontrolTypeNotIn,omitempty"` + SubcontrolTypeGt *string `json:"subcontrolTypeGT,omitempty"` + SubcontrolTypeGte *string `json:"subcontrolTypeGTE,omitempty"` + SubcontrolTypeLt *string `json:"subcontrolTypeLT,omitempty"` + SubcontrolTypeLte *string `json:"subcontrolTypeLTE,omitempty"` + SubcontrolTypeContains *string `json:"subcontrolTypeContains,omitempty"` + SubcontrolTypeHasPrefix *string `json:"subcontrolTypeHasPrefix,omitempty"` + SubcontrolTypeHasSuffix *string `json:"subcontrolTypeHasSuffix,omitempty"` + SubcontrolTypeIsNil *bool `json:"subcontrolTypeIsNil,omitempty"` + SubcontrolTypeNotNil *bool `json:"subcontrolTypeNotNil,omitempty"` + SubcontrolTypeEqualFold *string `json:"subcontrolTypeEqualFold,omitempty"` + SubcontrolTypeContainsFold *string `json:"subcontrolTypeContainsFold,omitempty"` + // version field predicates + Version *string `json:"version,omitempty"` + VersionNeq *string `json:"versionNEQ,omitempty"` + VersionIn []string `json:"versionIn,omitempty"` + VersionNotIn []string `json:"versionNotIn,omitempty"` + VersionGt *string `json:"versionGT,omitempty"` + VersionGte *string `json:"versionGTE,omitempty"` + VersionLt *string `json:"versionLT,omitempty"` + VersionLte *string `json:"versionLTE,omitempty"` + VersionContains *string `json:"versionContains,omitempty"` + VersionHasPrefix *string `json:"versionHasPrefix,omitempty"` + VersionHasSuffix *string `json:"versionHasSuffix,omitempty"` + VersionIsNil *bool `json:"versionIsNil,omitempty"` + VersionNotNil *bool `json:"versionNotNil,omitempty"` + VersionEqualFold *string `json:"versionEqualFold,omitempty"` + VersionContainsFold *string `json:"versionContainsFold,omitempty"` + // subcontrol_number field predicates + SubcontrolNumber *string `json:"subcontrolNumber,omitempty"` + SubcontrolNumberNeq *string `json:"subcontrolNumberNEQ,omitempty"` + SubcontrolNumberIn []string `json:"subcontrolNumberIn,omitempty"` + SubcontrolNumberNotIn []string `json:"subcontrolNumberNotIn,omitempty"` + SubcontrolNumberGt *string `json:"subcontrolNumberGT,omitempty"` + SubcontrolNumberGte *string `json:"subcontrolNumberGTE,omitempty"` + SubcontrolNumberLt *string `json:"subcontrolNumberLT,omitempty"` + SubcontrolNumberLte *string `json:"subcontrolNumberLTE,omitempty"` + SubcontrolNumberContains *string `json:"subcontrolNumberContains,omitempty"` + SubcontrolNumberHasPrefix *string `json:"subcontrolNumberHasPrefix,omitempty"` + SubcontrolNumberHasSuffix *string `json:"subcontrolNumberHasSuffix,omitempty"` + SubcontrolNumberIsNil *bool `json:"subcontrolNumberIsNil,omitempty"` + SubcontrolNumberNotNil *bool `json:"subcontrolNumberNotNil,omitempty"` + SubcontrolNumberEqualFold *string `json:"subcontrolNumberEqualFold,omitempty"` + SubcontrolNumberContainsFold *string `json:"subcontrolNumberContainsFold,omitempty"` + // family field predicates + Family *string `json:"family,omitempty"` + FamilyNeq *string `json:"familyNEQ,omitempty"` + FamilyIn []string `json:"familyIn,omitempty"` + FamilyNotIn []string `json:"familyNotIn,omitempty"` + FamilyGt *string `json:"familyGT,omitempty"` + FamilyGte *string `json:"familyGTE,omitempty"` + FamilyLt *string `json:"familyLT,omitempty"` + FamilyLte *string `json:"familyLTE,omitempty"` + FamilyContains *string `json:"familyContains,omitempty"` + FamilyHasPrefix *string `json:"familyHasPrefix,omitempty"` + FamilyHasSuffix *string `json:"familyHasSuffix,omitempty"` + FamilyIsNil *bool `json:"familyIsNil,omitempty"` + FamilyNotNil *bool `json:"familyNotNil,omitempty"` + FamilyEqualFold *string `json:"familyEqualFold,omitempty"` + FamilyContainsFold *string `json:"familyContainsFold,omitempty"` + // class field predicates + Class *string `json:"class,omitempty"` + ClassNeq *string `json:"classNEQ,omitempty"` + ClassIn []string `json:"classIn,omitempty"` + ClassNotIn []string `json:"classNotIn,omitempty"` + ClassGt *string `json:"classGT,omitempty"` + ClassGte *string `json:"classGTE,omitempty"` + ClassLt *string `json:"classLT,omitempty"` + ClassLte *string `json:"classLTE,omitempty"` + ClassContains *string `json:"classContains,omitempty"` + ClassHasPrefix *string `json:"classHasPrefix,omitempty"` + ClassHasSuffix *string `json:"classHasSuffix,omitempty"` + ClassIsNil *bool `json:"classIsNil,omitempty"` + ClassNotNil *bool `json:"classNotNil,omitempty"` + ClassEqualFold *string `json:"classEqualFold,omitempty"` + ClassContainsFold *string `json:"classContainsFold,omitempty"` + // source field predicates + Source *string `json:"source,omitempty"` + SourceNeq *string `json:"sourceNEQ,omitempty"` + SourceIn []string `json:"sourceIn,omitempty"` + SourceNotIn []string `json:"sourceNotIn,omitempty"` + SourceGt *string `json:"sourceGT,omitempty"` + SourceGte *string `json:"sourceGTE,omitempty"` + SourceLt *string `json:"sourceLT,omitempty"` + SourceLte *string `json:"sourceLTE,omitempty"` + SourceContains *string `json:"sourceContains,omitempty"` + SourceHasPrefix *string `json:"sourceHasPrefix,omitempty"` + SourceHasSuffix *string `json:"sourceHasSuffix,omitempty"` + SourceIsNil *bool `json:"sourceIsNil,omitempty"` + SourceNotNil *bool `json:"sourceNotNil,omitempty"` + SourceEqualFold *string `json:"sourceEqualFold,omitempty"` + SourceContainsFold *string `json:"sourceContainsFold,omitempty"` + // mapped_frameworks field predicates + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + MappedFrameworksNeq *string `json:"mappedFrameworksNEQ,omitempty"` + MappedFrameworksIn []string `json:"mappedFrameworksIn,omitempty"` + MappedFrameworksNotIn []string `json:"mappedFrameworksNotIn,omitempty"` + MappedFrameworksGt *string `json:"mappedFrameworksGT,omitempty"` + MappedFrameworksGte *string `json:"mappedFrameworksGTE,omitempty"` + MappedFrameworksLt *string `json:"mappedFrameworksLT,omitempty"` + MappedFrameworksLte *string `json:"mappedFrameworksLTE,omitempty"` + MappedFrameworksContains *string `json:"mappedFrameworksContains,omitempty"` + MappedFrameworksHasPrefix *string `json:"mappedFrameworksHasPrefix,omitempty"` + MappedFrameworksHasSuffix *string `json:"mappedFrameworksHasSuffix,omitempty"` + MappedFrameworksIsNil *bool `json:"mappedFrameworksIsNil,omitempty"` + MappedFrameworksNotNil *bool `json:"mappedFrameworksNotNil,omitempty"` + MappedFrameworksEqualFold *string `json:"mappedFrameworksEqualFold,omitempty"` + MappedFrameworksContainsFold *string `json:"mappedFrameworksContainsFold,omitempty"` + // implementation_evidence field predicates + ImplementationEvidence *string `json:"implementationEvidence,omitempty"` + ImplementationEvidenceNeq *string `json:"implementationEvidenceNEQ,omitempty"` + ImplementationEvidenceIn []string `json:"implementationEvidenceIn,omitempty"` + ImplementationEvidenceNotIn []string `json:"implementationEvidenceNotIn,omitempty"` + ImplementationEvidenceGt *string `json:"implementationEvidenceGT,omitempty"` + ImplementationEvidenceGte *string `json:"implementationEvidenceGTE,omitempty"` + ImplementationEvidenceLt *string `json:"implementationEvidenceLT,omitempty"` + ImplementationEvidenceLte *string `json:"implementationEvidenceLTE,omitempty"` + ImplementationEvidenceContains *string `json:"implementationEvidenceContains,omitempty"` + ImplementationEvidenceHasPrefix *string `json:"implementationEvidenceHasPrefix,omitempty"` + ImplementationEvidenceHasSuffix *string `json:"implementationEvidenceHasSuffix,omitempty"` + ImplementationEvidenceIsNil *bool `json:"implementationEvidenceIsNil,omitempty"` + ImplementationEvidenceNotNil *bool `json:"implementationEvidenceNotNil,omitempty"` + ImplementationEvidenceEqualFold *string `json:"implementationEvidenceEqualFold,omitempty"` + ImplementationEvidenceContainsFold *string `json:"implementationEvidenceContainsFold,omitempty"` + // implementation_status field predicates + ImplementationStatus *string `json:"implementationStatus,omitempty"` + ImplementationStatusNeq *string `json:"implementationStatusNEQ,omitempty"` + ImplementationStatusIn []string `json:"implementationStatusIn,omitempty"` + ImplementationStatusNotIn []string `json:"implementationStatusNotIn,omitempty"` + ImplementationStatusGt *string `json:"implementationStatusGT,omitempty"` + ImplementationStatusGte *string `json:"implementationStatusGTE,omitempty"` + ImplementationStatusLt *string `json:"implementationStatusLT,omitempty"` + ImplementationStatusLte *string `json:"implementationStatusLTE,omitempty"` + ImplementationStatusContains *string `json:"implementationStatusContains,omitempty"` + ImplementationStatusHasPrefix *string `json:"implementationStatusHasPrefix,omitempty"` + ImplementationStatusHasSuffix *string `json:"implementationStatusHasSuffix,omitempty"` + ImplementationStatusIsNil *bool `json:"implementationStatusIsNil,omitempty"` + ImplementationStatusNotNil *bool `json:"implementationStatusNotNil,omitempty"` + ImplementationStatusEqualFold *string `json:"implementationStatusEqualFold,omitempty"` + ImplementationStatusContainsFold *string `json:"implementationStatusContainsFold,omitempty"` + // implementation_date field predicates + ImplementationDate *time.Time `json:"implementationDate,omitempty"` + ImplementationDateNeq *time.Time `json:"implementationDateNEQ,omitempty"` + ImplementationDateIn []*time.Time `json:"implementationDateIn,omitempty"` + ImplementationDateNotIn []*time.Time `json:"implementationDateNotIn,omitempty"` + ImplementationDateGt *time.Time `json:"implementationDateGT,omitempty"` + ImplementationDateGte *time.Time `json:"implementationDateGTE,omitempty"` + ImplementationDateLt *time.Time `json:"implementationDateLT,omitempty"` + ImplementationDateLte *time.Time `json:"implementationDateLTE,omitempty"` + ImplementationDateIsNil *bool `json:"implementationDateIsNil,omitempty"` + ImplementationDateNotNil *bool `json:"implementationDateNotNil,omitempty"` + // implementation_verification field predicates + ImplementationVerification *string `json:"implementationVerification,omitempty"` + ImplementationVerificationNeq *string `json:"implementationVerificationNEQ,omitempty"` + ImplementationVerificationIn []string `json:"implementationVerificationIn,omitempty"` + ImplementationVerificationNotIn []string `json:"implementationVerificationNotIn,omitempty"` + ImplementationVerificationGt *string `json:"implementationVerificationGT,omitempty"` + ImplementationVerificationGte *string `json:"implementationVerificationGTE,omitempty"` + ImplementationVerificationLt *string `json:"implementationVerificationLT,omitempty"` + ImplementationVerificationLte *string `json:"implementationVerificationLTE,omitempty"` + ImplementationVerificationContains *string `json:"implementationVerificationContains,omitempty"` + ImplementationVerificationHasPrefix *string `json:"implementationVerificationHasPrefix,omitempty"` + ImplementationVerificationHasSuffix *string `json:"implementationVerificationHasSuffix,omitempty"` + ImplementationVerificationIsNil *bool `json:"implementationVerificationIsNil,omitempty"` + ImplementationVerificationNotNil *bool `json:"implementationVerificationNotNil,omitempty"` + ImplementationVerificationEqualFold *string `json:"implementationVerificationEqualFold,omitempty"` + ImplementationVerificationContainsFold *string `json:"implementationVerificationContainsFold,omitempty"` + // implementation_verification_date field predicates + ImplementationVerificationDate *time.Time `json:"implementationVerificationDate,omitempty"` + ImplementationVerificationDateNeq *time.Time `json:"implementationVerificationDateNEQ,omitempty"` + ImplementationVerificationDateIn []*time.Time `json:"implementationVerificationDateIn,omitempty"` + ImplementationVerificationDateNotIn []*time.Time `json:"implementationVerificationDateNotIn,omitempty"` + ImplementationVerificationDateGt *time.Time `json:"implementationVerificationDateGT,omitempty"` + ImplementationVerificationDateGte *time.Time `json:"implementationVerificationDateGTE,omitempty"` + ImplementationVerificationDateLt *time.Time `json:"implementationVerificationDateLT,omitempty"` + ImplementationVerificationDateLte *time.Time `json:"implementationVerificationDateLTE,omitempty"` + ImplementationVerificationDateIsNil *bool `json:"implementationVerificationDateIsNil,omitempty"` + ImplementationVerificationDateNotNil *bool `json:"implementationVerificationDateNotNil,omitempty"` + // control edge predicates + HasControl *bool `json:"hasControl,omitempty"` + HasControlWith []*ControlWhereInput `json:"hasControlWith,omitempty"` + // user edge predicates + HasUser *bool `json:"hasUser,omitempty"` + HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` + // notes edge predicates + HasNotes *bool `json:"hasNotes,omitempty"` + HasNotesWith []*NoteWhereInput `json:"hasNotesWith,omitempty"` } type Subscriber struct { @@ -12430,6 +18555,47 @@ type UpdateAPITokenInput struct { ClearOwner *bool `json:"clearOwner,omitempty"` } +// UpdateActionPlanInput is used for update ActionPlan object. +// Input was generated by ent. +type UpdateActionPlanInput 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 action plan + Name *string `json:"name,omitempty"` + // description of the action plan + Description *string `json:"description,omitempty"` + ClearDescription *bool `json:"clearDescription,omitempty"` + // status of the action plan + Status *string `json:"status,omitempty"` + ClearStatus *bool `json:"clearStatus,omitempty"` + // due date of the action plan + DueDate *time.Time `json:"dueDate,omitempty"` + ClearDueDate *bool `json:"clearDueDate,omitempty"` + // priority of the action plan + Priority *string `json:"priority,omitempty"` + ClearPriority *bool `json:"clearPriority,omitempty"` + // source of the action plan + Source *string `json:"source,omitempty"` + ClearSource *bool `json:"clearSource,omitempty"` + // json data including details of the action plan + Details map[string]interface{} `json:"details,omitempty"` + ClearDetails *bool `json:"clearDetails,omitempty"` + AddStandardIDs []string `json:"addStandardIDs,omitempty"` + RemoveStandardIDs []string `json:"removeStandardIDs,omitempty"` + ClearStandard *bool `json:"clearStandard,omitempty"` + AddRiskIDs []string `json:"addRiskIDs,omitempty"` + RemoveRiskIDs []string `json:"removeRiskIDs,omitempty"` + ClearRisk *bool `json:"clearRisk,omitempty"` + AddControlIDs []string `json:"addControlIDs,omitempty"` + RemoveControlIDs []string `json:"removeControlIDs,omitempty"` + ClearControl *bool `json:"clearControl,omitempty"` + AddUserIDs []string `json:"addUserIDs,omitempty"` + RemoveUserIDs []string `json:"removeUserIDs,omitempty"` + ClearUser *bool `json:"clearUser,omitempty"` +} + // UpdateContactInput is used for update Contact object. // Input was generated by ent. type UpdateContactInput struct { @@ -12466,6 +18632,133 @@ type UpdateContactInput struct { ClearFiles *bool `json:"clearFiles,omitempty"` } +// UpdateControlInput is used for update Control object. +// Input was generated by ent. +type UpdateControlInput 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 control + Name *string `json:"name,omitempty"` + // description of the control + Description *string `json:"description,omitempty"` + ClearDescription *bool `json:"clearDescription,omitempty"` + // status of the control + Status *string `json:"status,omitempty"` + ClearStatus *bool `json:"clearStatus,omitempty"` + // type of the control + ControlType *string `json:"controlType,omitempty"` + ClearControlType *bool `json:"clearControlType,omitempty"` + // version of the control + Version *string `json:"version,omitempty"` + ClearVersion *bool `json:"clearVersion,omitempty"` + // control number or identifier + ControlNumber *string `json:"controlNumber,omitempty"` + ClearControlNumber *bool `json:"clearControlNumber,omitempty"` + // family associated with the control + Family *string `json:"family,omitempty"` + ClearFamily *bool `json:"clearFamily,omitempty"` + // class associated with the control + Class *string `json:"class,omitempty"` + ClearClass *bool `json:"clearClass,omitempty"` + // source of the control, e.g. framework, template, custom, etc. + Source *string `json:"source,omitempty"` + ClearSource *bool `json:"clearSource,omitempty"` + // which control objectives are satisfied by the control + Satisfies *string `json:"satisfies,omitempty"` + ClearSatisfies *bool `json:"clearSatisfies,omitempty"` + // mapped frameworks + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + ClearMappedFrameworks *bool `json:"clearMappedFrameworks,omitempty"` + // json data including details of the control + Details map[string]interface{} `json:"details,omitempty"` + ClearDetails *bool `json:"clearDetails,omitempty"` + AddProcedureIDs []string `json:"addProcedureIDs,omitempty"` + RemoveProcedureIDs []string `json:"removeProcedureIDs,omitempty"` + ClearProcedures *bool `json:"clearProcedures,omitempty"` + AddSubcontrolIDs []string `json:"addSubcontrolIDs,omitempty"` + RemoveSubcontrolIDs []string `json:"removeSubcontrolIDs,omitempty"` + ClearSubcontrols *bool `json:"clearSubcontrols,omitempty"` + AddControlobjectiveIDs []string `json:"addControlobjectiveIDs,omitempty"` + RemoveControlobjectiveIDs []string `json:"removeControlobjectiveIDs,omitempty"` + ClearControlobjectives *bool `json:"clearControlobjectives,omitempty"` + AddStandardIDs []string `json:"addStandardIDs,omitempty"` + RemoveStandardIDs []string `json:"removeStandardIDs,omitempty"` + ClearStandard *bool `json:"clearStandard,omitempty"` + AddNarrativeIDs []string `json:"addNarrativeIDs,omitempty"` + RemoveNarrativeIDs []string `json:"removeNarrativeIDs,omitempty"` + ClearNarratives *bool `json:"clearNarratives,omitempty"` + AddRiskIDs []string `json:"addRiskIDs,omitempty"` + RemoveRiskIDs []string `json:"removeRiskIDs,omitempty"` + ClearRisks *bool `json:"clearRisks,omitempty"` + AddActionplanIDs []string `json:"addActionplanIDs,omitempty"` + RemoveActionplanIDs []string `json:"removeActionplanIDs,omitempty"` + ClearActionplans *bool `json:"clearActionplans,omitempty"` +} + +// UpdateControlObjectiveInput is used for update ControlObjective object. +// Input was generated by ent. +type UpdateControlObjectiveInput 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 control objective + Name *string `json:"name,omitempty"` + // description of the control objective + Description *string `json:"description,omitempty"` + ClearDescription *bool `json:"clearDescription,omitempty"` + // status of the control objective + Status *string `json:"status,omitempty"` + ClearStatus *bool `json:"clearStatus,omitempty"` + // type of the control objective + ControlObjectiveType *string `json:"controlObjectiveType,omitempty"` + ClearControlObjectiveType *bool `json:"clearControlObjectiveType,omitempty"` + // version of the control objective + Version *string `json:"version,omitempty"` + ClearVersion *bool `json:"clearVersion,omitempty"` + // number of the control objective + ControlNumber *string `json:"controlNumber,omitempty"` + ClearControlNumber *bool `json:"clearControlNumber,omitempty"` + // family of the control objective + Family *string `json:"family,omitempty"` + ClearFamily *bool `json:"clearFamily,omitempty"` + // class associated with the control objective + Class *string `json:"class,omitempty"` + ClearClass *bool `json:"clearClass,omitempty"` + // source of the control objective, e.g. framework, template, user-defined, etc. + Source *string `json:"source,omitempty"` + ClearSource *bool `json:"clearSource,omitempty"` + // mapped frameworks + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + ClearMappedFrameworks *bool `json:"clearMappedFrameworks,omitempty"` + // json data including details of the control objective + Details map[string]interface{} `json:"details,omitempty"` + ClearDetails *bool `json:"clearDetails,omitempty"` + AddPolicyIDs []string `json:"addPolicyIDs,omitempty"` + RemovePolicyIDs []string `json:"removePolicyIDs,omitempty"` + ClearPolicy *bool `json:"clearPolicy,omitempty"` + AddControlIDs []string `json:"addControlIDs,omitempty"` + RemoveControlIDs []string `json:"removeControlIDs,omitempty"` + ClearControls *bool `json:"clearControls,omitempty"` + AddProcedureIDs []string `json:"addProcedureIDs,omitempty"` + RemoveProcedureIDs []string `json:"removeProcedureIDs,omitempty"` + ClearProcedures *bool `json:"clearProcedures,omitempty"` + AddRiskIDs []string `json:"addRiskIDs,omitempty"` + RemoveRiskIDs []string `json:"removeRiskIDs,omitempty"` + ClearRisks *bool `json:"clearRisks,omitempty"` + AddSubcontrolIDs []string `json:"addSubcontrolIDs,omitempty"` + RemoveSubcontrolIDs []string `json:"removeSubcontrolIDs,omitempty"` + ClearSubcontrols *bool `json:"clearSubcontrols,omitempty"` + AddStandardIDs []string `json:"addStandardIDs,omitempty"` + RemoveStandardIDs []string `json:"removeStandardIDs,omitempty"` + ClearStandard *bool `json:"clearStandard,omitempty"` + AddNarrativeIDs []string `json:"addNarrativeIDs,omitempty"` + RemoveNarrativeIDs []string `json:"removeNarrativeIDs,omitempty"` + ClearNarratives *bool `json:"clearNarratives,omitempty"` +} + // UpdateDocumentDataInput is used for update DocumentData object. // Input was generated by ent. type UpdateDocumentDataInput struct { @@ -12896,6 +19189,49 @@ type UpdateIntegrationInput struct { ClearWebhooks *bool `json:"clearWebhooks,omitempty"` } +// UpdateInternalPolicyInput is used for update InternalPolicy object. +// Input was generated by ent. +type UpdateInternalPolicyInput 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 policy + Name *string `json:"name,omitempty"` + // description of the policy + Description *string `json:"description,omitempty"` + // status of the policy + Status *string `json:"status,omitempty"` + ClearStatus *bool `json:"clearStatus,omitempty"` + // type of the policy + PolicyType *string `json:"policyType,omitempty"` + ClearPolicyType *bool `json:"clearPolicyType,omitempty"` + // version of the policy + Version *string `json:"version,omitempty"` + ClearVersion *bool `json:"clearVersion,omitempty"` + // purpose and scope + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + ClearPurposeAndScope *bool `json:"clearPurposeAndScope,omitempty"` + // background of the policy + Background *string `json:"background,omitempty"` + ClearBackground *bool `json:"clearBackground,omitempty"` + // json data for the policy document + Details map[string]interface{} `json:"details,omitempty"` + ClearDetails *bool `json:"clearDetails,omitempty"` + AddControlobjectiveIDs []string `json:"addControlobjectiveIDs,omitempty"` + RemoveControlobjectiveIDs []string `json:"removeControlobjectiveIDs,omitempty"` + ClearControlobjectives *bool `json:"clearControlobjectives,omitempty"` + AddControlIDs []string `json:"addControlIDs,omitempty"` + RemoveControlIDs []string `json:"removeControlIDs,omitempty"` + ClearControls *bool `json:"clearControls,omitempty"` + AddProcedureIDs []string `json:"addProcedureIDs,omitempty"` + RemoveProcedureIDs []string `json:"removeProcedureIDs,omitempty"` + ClearProcedures *bool `json:"clearProcedures,omitempty"` + AddNarrativeIDs []string `json:"addNarrativeIDs,omitempty"` + RemoveNarrativeIDs []string `json:"removeNarrativeIDs,omitempty"` + ClearNarratives *bool `json:"clearNarratives,omitempty"` +} + // UpdateInviteInput is used for update Invite object. // Input was generated by ent. type UpdateInviteInput struct { @@ -12914,6 +19250,38 @@ type UpdateInviteInput struct { ClearEvents *bool `json:"clearEvents,omitempty"` } +// UpdateNarrativeInput is used for update Narrative object. +// Input was generated by ent. +type UpdateNarrativeInput 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 narrative + Name *string `json:"name,omitempty"` + // the description of the narrative + Description *string `json:"description,omitempty"` + ClearDescription *bool `json:"clearDescription,omitempty"` + // which controls are satisfied by the narrative + Satisfies *string `json:"satisfies,omitempty"` + ClearSatisfies *bool `json:"clearSatisfies,omitempty"` + // json data for the narrative document + Details map[string]interface{} `json:"details,omitempty"` + ClearDetails *bool `json:"clearDetails,omitempty"` + AddPolicyIDs []string `json:"addPolicyIDs,omitempty"` + RemovePolicyIDs []string `json:"removePolicyIDs,omitempty"` + ClearPolicy *bool `json:"clearPolicy,omitempty"` + AddControlIDs []string `json:"addControlIDs,omitempty"` + RemoveControlIDs []string `json:"removeControlIDs,omitempty"` + ClearControl *bool `json:"clearControl,omitempty"` + AddProcedureIDs []string `json:"addProcedureIDs,omitempty"` + RemoveProcedureIDs []string `json:"removeProcedureIDs,omitempty"` + ClearProcedure *bool `json:"clearProcedure,omitempty"` + AddControlobjectiveIDs []string `json:"addControlobjectiveIDs,omitempty"` + RemoveControlobjectiveIDs []string `json:"removeControlobjectiveIDs,omitempty"` + ClearControlobjective *bool `json:"clearControlobjective,omitempty"` +} + // UpdateNoteInput is used for update Note object. // Input was generated by ent. type UpdateNoteInput struct { @@ -12922,11 +19290,14 @@ type UpdateNoteInput struct { AppendTags []string `json:"appendTags,omitempty"` ClearTags *bool `json:"clearTags,omitempty"` // the text of the note - Text *string `json:"text,omitempty"` - OwnerID *string `json:"ownerID,omitempty"` - ClearOwner *bool `json:"clearOwner,omitempty"` - EntityID *string `json:"entityID,omitempty"` - ClearEntity *bool `json:"clearEntity,omitempty"` + Text *string `json:"text,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + ClearOwner *bool `json:"clearOwner,omitempty"` + EntityID *string `json:"entityID,omitempty"` + ClearEntity *bool `json:"clearEntity,omitempty"` + AddSubcontrolIDs []string `json:"addSubcontrolIDs,omitempty"` + RemoveSubcontrolIDs []string `json:"removeSubcontrolIDs,omitempty"` + ClearSubcontrols *bool `json:"clearSubcontrols,omitempty"` } // UpdateOauthProviderInput is used for update OauthProvider object. @@ -13150,6 +19521,214 @@ type UpdatePersonalAccessTokenInput struct { ClearEvents *bool `json:"clearEvents,omitempty"` } +// UpdateProcedureInput is used for update Procedure object. +// Input was generated by ent. +type UpdateProcedureInput 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 procedure + Name *string `json:"name,omitempty"` + // description of the procedure + Description *string `json:"description,omitempty"` + ClearDescription *bool `json:"clearDescription,omitempty"` + // status of the procedure + Status *string `json:"status,omitempty"` + ClearStatus *bool `json:"clearStatus,omitempty"` + // type of the procedure + ProcedureType *string `json:"procedureType,omitempty"` + ClearProcedureType *bool `json:"clearProcedureType,omitempty"` + // version of the procedure + Version *string `json:"version,omitempty"` + ClearVersion *bool `json:"clearVersion,omitempty"` + // purpose and scope + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + ClearPurposeAndScope *bool `json:"clearPurposeAndScope,omitempty"` + // background of the procedure + Background *string `json:"background,omitempty"` + ClearBackground *bool `json:"clearBackground,omitempty"` + // which controls are satisfied by the procedure + Satisfies *string `json:"satisfies,omitempty"` + ClearSatisfies *bool `json:"clearSatisfies,omitempty"` + // json data for the procedure document + Details map[string]interface{} `json:"details,omitempty"` + ClearDetails *bool `json:"clearDetails,omitempty"` + AddControlIDs []string `json:"addControlIDs,omitempty"` + RemoveControlIDs []string `json:"removeControlIDs,omitempty"` + ClearControl *bool `json:"clearControl,omitempty"` + AddInternalpolicyIDs []string `json:"addInternalpolicyIDs,omitempty"` + RemoveInternalpolicyIDs []string `json:"removeInternalpolicyIDs,omitempty"` + ClearInternalpolicy *bool `json:"clearInternalpolicy,omitempty"` + AddNarrativeIDs []string `json:"addNarrativeIDs,omitempty"` + RemoveNarrativeIDs []string `json:"removeNarrativeIDs,omitempty"` + ClearNarratives *bool `json:"clearNarratives,omitempty"` + AddRiskIDs []string `json:"addRiskIDs,omitempty"` + RemoveRiskIDs []string `json:"removeRiskIDs,omitempty"` + ClearRisks *bool `json:"clearRisks,omitempty"` +} + +// UpdateRiskInput is used for update Risk object. +// Input was generated by ent. +type UpdateRiskInput 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 risk + Name *string `json:"name,omitempty"` + // description of the risk + Description *string `json:"description,omitempty"` + ClearDescription *bool `json:"clearDescription,omitempty"` + // status of the risk - mitigated or not, inflight, etc. + Status *string `json:"status,omitempty"` + ClearStatus *bool `json:"clearStatus,omitempty"` + // type of the risk, e.g. strategic, operational, financial, external, etc. + RiskType *string `json:"riskType,omitempty"` + ClearRiskType *bool `json:"clearRiskType,omitempty"` + // business costs associated with the risk + BusinessCosts *string `json:"businessCosts,omitempty"` + ClearBusinessCosts *bool `json:"clearBusinessCosts,omitempty"` + // impact of the risk - high, medium, low + Impact *enums.RiskImpact `json:"impact,omitempty"` + ClearImpact *bool `json:"clearImpact,omitempty"` + // likelihood of the risk occurring; unlikely, likely, highly likely + Likelihood *enums.RiskLikelihood `json:"likelihood,omitempty"` + ClearLikelihood *bool `json:"clearLikelihood,omitempty"` + // mitigation for the risk + Mitigation *string `json:"mitigation,omitempty"` + ClearMitigation *bool `json:"clearMitigation,omitempty"` + // which controls are satisfied by the risk + Satisfies *string `json:"satisfies,omitempty"` + ClearSatisfies *bool `json:"clearSatisfies,omitempty"` + // json data for the risk document + Details map[string]interface{} `json:"details,omitempty"` + ClearDetails *bool `json:"clearDetails,omitempty"` + AddControlIDs []string `json:"addControlIDs,omitempty"` + RemoveControlIDs []string `json:"removeControlIDs,omitempty"` + ClearControl *bool `json:"clearControl,omitempty"` + AddProcedureIDs []string `json:"addProcedureIDs,omitempty"` + RemoveProcedureIDs []string `json:"removeProcedureIDs,omitempty"` + ClearProcedure *bool `json:"clearProcedure,omitempty"` + AddActionplanIDs []string `json:"addActionplanIDs,omitempty"` + RemoveActionplanIDs []string `json:"removeActionplanIDs,omitempty"` + ClearActionplans *bool `json:"clearActionplans,omitempty"` +} + +// UpdateStandardInput is used for update Standard object. +// Input was generated by ent. +type UpdateStandardInput 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 standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + Name *string `json:"name,omitempty"` + // description of the standard + Description *string `json:"description,omitempty"` + ClearDescription *bool `json:"clearDescription,omitempty"` + // family of the standard, e.g. 800-53, 800-171, 27001, etc. + Family *string `json:"family,omitempty"` + ClearFamily *bool `json:"clearFamily,omitempty"` + // status of the standard - active, deprecated, etc. + Status *string `json:"status,omitempty"` + ClearStatus *bool `json:"clearStatus,omitempty"` + // type of the standard - security, privacy, etc. + StandardType *string `json:"standardType,omitempty"` + ClearStandardType *bool `json:"clearStandardType,omitempty"` + // version of the standard + Version *string `json:"version,omitempty"` + ClearVersion *bool `json:"clearVersion,omitempty"` + // purpose and scope + PurposeAndScope *string `json:"purposeAndScope,omitempty"` + ClearPurposeAndScope *bool `json:"clearPurposeAndScope,omitempty"` + // background of the standard + Background *string `json:"background,omitempty"` + ClearBackground *bool `json:"clearBackground,omitempty"` + // which controls are satisfied by the standard + Satisfies *string `json:"satisfies,omitempty"` + ClearSatisfies *bool `json:"clearSatisfies,omitempty"` + // json data with details of the standard + Details map[string]interface{} `json:"details,omitempty"` + ClearDetails *bool `json:"clearDetails,omitempty"` + AddControlobjectiveIDs []string `json:"addControlobjectiveIDs,omitempty"` + RemoveControlobjectiveIDs []string `json:"removeControlobjectiveIDs,omitempty"` + ClearControlobjectives *bool `json:"clearControlobjectives,omitempty"` + AddControlIDs []string `json:"addControlIDs,omitempty"` + RemoveControlIDs []string `json:"removeControlIDs,omitempty"` + ClearControls *bool `json:"clearControls,omitempty"` + AddProcedureIDs []string `json:"addProcedureIDs,omitempty"` + RemoveProcedureIDs []string `json:"removeProcedureIDs,omitempty"` + ClearProcedures *bool `json:"clearProcedures,omitempty"` + AddActionplanIDs []string `json:"addActionplanIDs,omitempty"` + RemoveActionplanIDs []string `json:"removeActionplanIDs,omitempty"` + ClearActionplans *bool `json:"clearActionplans,omitempty"` +} + +// UpdateSubcontrolInput is used for update Subcontrol object. +// Input was generated by ent. +type UpdateSubcontrolInput 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 subcontrol + Name *string `json:"name,omitempty"` + // description of the subcontrol + Description *string `json:"description,omitempty"` + ClearDescription *bool `json:"clearDescription,omitempty"` + // status of the subcontrol + Status *string `json:"status,omitempty"` + ClearStatus *bool `json:"clearStatus,omitempty"` + // type of the subcontrol + SubcontrolType *string `json:"subcontrolType,omitempty"` + ClearSubcontrolType *bool `json:"clearSubcontrolType,omitempty"` + // version of the control + Version *string `json:"version,omitempty"` + ClearVersion *bool `json:"clearVersion,omitempty"` + // number of the subcontrol + SubcontrolNumber *string `json:"subcontrolNumber,omitempty"` + ClearSubcontrolNumber *bool `json:"clearSubcontrolNumber,omitempty"` + // subcontrol family + Family *string `json:"family,omitempty"` + ClearFamily *bool `json:"clearFamily,omitempty"` + // subcontrol class + Class *string `json:"class,omitempty"` + ClearClass *bool `json:"clearClass,omitempty"` + // source of the control, e.g. framework, template, user-defined, etc. + Source *string `json:"source,omitempty"` + ClearSource *bool `json:"clearSource,omitempty"` + // mapped frameworks that the subcontrol is part of + MappedFrameworks *string `json:"mappedFrameworks,omitempty"` + ClearMappedFrameworks *bool `json:"clearMappedFrameworks,omitempty"` + // implementation evidence of the subcontrol + ImplementationEvidence *string `json:"implementationEvidence,omitempty"` + ClearImplementationEvidence *bool `json:"clearImplementationEvidence,omitempty"` + // implementation status + ImplementationStatus *string `json:"implementationStatus,omitempty"` + ClearImplementationStatus *bool `json:"clearImplementationStatus,omitempty"` + // date the subcontrol was implemented + ImplementationDate *time.Time `json:"implementationDate,omitempty"` + ClearImplementationDate *bool `json:"clearImplementationDate,omitempty"` + // implementation verification + ImplementationVerification *string `json:"implementationVerification,omitempty"` + ClearImplementationVerification *bool `json:"clearImplementationVerification,omitempty"` + // date the subcontrol implementation was verified + ImplementationVerificationDate *time.Time `json:"implementationVerificationDate,omitempty"` + ClearImplementationVerificationDate *bool `json:"clearImplementationVerificationDate,omitempty"` + // json data details of the subcontrol + Details map[string]interface{} `json:"details,omitempty"` + ClearDetails *bool `json:"clearDetails,omitempty"` + AddControlIDs []string `json:"addControlIDs,omitempty"` + RemoveControlIDs []string `json:"removeControlIDs,omitempty"` + ClearControl *bool `json:"clearControl,omitempty"` + AddUserIDs []string `json:"addUserIDs,omitempty"` + RemoveUserIDs []string `json:"removeUserIDs,omitempty"` + ClearUser *bool `json:"clearUser,omitempty"` + NotesID *string `json:"notesID,omitempty"` + ClearNotes *bool `json:"clearNotes,omitempty"` +} + // UpdateSubscriberInput is used for update Subscriber object. // Input was generated by ent. type UpdateSubscriberInput struct { @@ -13281,6 +19860,12 @@ type UpdateUserInput struct { AddEventIDs []string `json:"addEventIDs,omitempty"` RemoveEventIDs []string `json:"removeEventIDs,omitempty"` ClearEvents *bool `json:"clearEvents,omitempty"` + AddActionplanIDs []string `json:"addActionplanIDs,omitempty"` + RemoveActionplanIDs []string `json:"removeActionplanIDs,omitempty"` + ClearActionplans *bool `json:"clearActionplans,omitempty"` + AddSubcontrolIDs []string `json:"addSubcontrolIDs,omitempty"` + RemoveSubcontrolIDs []string `json:"removeSubcontrolIDs,omitempty"` + ClearSubcontrols *bool `json:"clearSubcontrols,omitempty"` } // UpdateUserSettingInput is used for update UserSetting object. @@ -13391,6 +19976,8 @@ type User struct { Files []*File `json:"files,omitempty"` File *File `json:"file,omitempty"` Events []*Event `json:"events,omitempty"` + Actionplans []*ActionPlan `json:"actionplans,omitempty"` + Subcontrols []*Subcontrol `json:"subcontrols,omitempty"` GroupMemberships []*GroupMembership `json:"groupMemberships,omitempty"` OrgMemberships []*OrgMembership `json:"orgMemberships,omitempty"` } @@ -14567,6 +21154,12 @@ type UserWhereInput struct { // events edge predicates HasEvents *bool `json:"hasEvents,omitempty"` HasEventsWith []*EventWhereInput `json:"hasEventsWith,omitempty"` + // actionplans edge predicates + HasActionplans *bool `json:"hasActionplans,omitempty"` + HasActionplansWith []*ActionPlanWhereInput `json:"hasActionplansWith,omitempty"` + // subcontrols edge predicates + HasSubcontrols *bool `json:"hasSubcontrols,omitempty"` + HasSubcontrolsWith []*SubcontrolWhereInput `json:"hasSubcontrolsWith,omitempty"` // group_memberships edge predicates HasGroupMemberships *bool `json:"hasGroupMemberships,omitempty"` HasGroupMembershipsWith []*GroupMembershipWhereInput `json:"hasGroupMembershipsWith,omitempty"` diff --git a/query/actionplan.graphql b/query/actionplan.graphql new file mode 100644 index 00000000..36ab5923 --- /dev/null +++ b/query/actionplan.graphql @@ -0,0 +1,146 @@ + +mutation CreateBulkCSVActionPlan($input: Upload!) { + createBulkCSVActionPlan(input: $input) { + actionPlans { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } + } +} + +mutation CreateBulkActionPlan($input: [CreateActionPlanInput!]) { + createBulkActionPlan(input: $input) { + actionPlans { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } + } +} + +mutation CreateActionPlan($input: CreateActionPlanInput!) { + createActionPlan(input: $input) { + actionPlan { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } + } +} + +mutation DeleteActionPlan($deleteActionPlanId: ID!) { + deleteActionPlan(id: $deleteActionPlanId) { + deletedID + } +} + +query GetAllActionPlans { + actionPlans { + edges { + node { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } + } + } +} +query GetActionPlanByID($actionPlanId: ID!) { + actionPlan(id: $actionPlanId) { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } +} + +query GetActionPlans($where: ActionPlanWhereInput) { + actionPlans(where: $where) { + edges { + node { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } + } + } +} +mutation UpdateActionPlan($updateActionPlanId: ID!, $input: UpdateActionPlanInput!) { + updateActionPlan(id: $updateActionPlanId, input: $input) { + actionPlan { + createdAt + createdBy + description + details + dueDate + id + name + priority + source + status + tags + updatedAt + updatedBy + } + } +} diff --git a/query/actionplanhistory.graphql b/query/actionplanhistory.graphql new file mode 100644 index 00000000..a65a320e --- /dev/null +++ b/query/actionplanhistory.graphql @@ -0,0 +1,51 @@ + + +query GetAllActionPlanHistories { + actionPlanHistories { + edges { + node { + createdAt + createdBy + description + details + dueDate + historyTime + id + name + operation + priority + ref + source + status + tags + updatedAt + updatedBy + } + } + } +} + +query GetActionPlanHistories($where: ActionPlanHistoryWhereInput) { + actionPlanHistories(where: $where) { + edges { + node { + createdAt + createdBy + description + details + dueDate + historyTime + id + name + operation + priority + ref + source + status + tags + updatedAt + updatedBy + } + } + } +} diff --git a/query/adminsearch.graphql b/query/adminsearch.graphql index 95c7879e..7142f3a5 100644 --- a/query/adminsearch.graphql +++ b/query/adminsearch.graphql @@ -11,6 +11,19 @@ query AdminSearch($query: String!) { scopes } } + ... on ActionPlanSearchResult { + actionPlans { + deletedBy + id + tags + name + description + status + priority + source + details + } + } ... on ContactSearchResult { contacts { id @@ -25,6 +38,43 @@ query AdminSearch($query: String!) { address } } + ... on ControlSearchResult { + controls { + deletedBy + id + tags + name + description + status + controlType + version + controlNumber + family + class + source + satisfies + mappedFrameworks + details + } + } + ... on ControlObjectiveSearchResult { + controlObjectives { + deletedBy + id + tags + name + description + status + controlObjectiveType + version + controlNumber + family + class + source + mappedFrameworks + details + } + } ... on DocumentDataSearchResult { documentData { id @@ -162,6 +212,32 @@ query AdminSearch($query: String!) { kind } } + ... on InternalPolicySearchResult { + internalPolicies { + deletedBy + id + tags + name + description + status + policyType + version + purposeAndScope + background + details + } + } + ... on NarrativeSearchResult { + narratives { + deletedBy + id + tags + name + description + satisfies + details + } + } ... on OauthProviderSearchResult { oauthProviders { id @@ -227,6 +303,75 @@ query AdminSearch($query: String!) { scopes } } + ... on ProcedureSearchResult { + procedures { + deletedBy + id + tags + name + description + status + procedureType + version + purposeAndScope + background + satisfies + details + } + } + ... on RiskSearchResult { + risks { + deletedBy + id + tags + name + description + status + riskType + businessCosts + mitigation + satisfies + details + } + } + ... on StandardSearchResult { + standards { + deletedBy + id + tags + name + description + family + status + standardType + version + purposeAndScope + background + satisfies + details + } + } + ... on SubcontrolSearchResult { + subcontrols { + deletedBy + id + tags + name + description + status + subcontrolType + version + subcontrolNumber + family + class + source + mappedFrameworks + implementationEvidence + implementationStatus + implementationVerification + details + } + } ... on SubscriberSearchResult { subscribers { id diff --git a/query/control.graphql b/query/control.graphql new file mode 100644 index 00000000..b0c24efd --- /dev/null +++ b/query/control.graphql @@ -0,0 +1,181 @@ + +mutation CreateBulkCSVControl($input: Upload!) { + createBulkCSVControl(input: $input) { + controls { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation CreateBulkControl($input: [CreateControlInput!]) { + createBulkControl(input: $input) { + controls { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation CreateControl($input: CreateControlInput!) { + createControl(input: $input) { + control { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation DeleteControl($deleteControlId: ID!) { + deleteControl(id: $deleteControlId) { + deletedID + } +} + +query GetAllControls { + controls { + edges { + node { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } + } +} +query GetControlByID($controlId: ID!) { + control(id: $controlId) { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } +} + +query GetControls($where: ControlWhereInput) { + controls(where: $where) { + edges { + node { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } + } +} +mutation UpdateControl($updateControlId: ID!, $input: UpdateControlInput!) { + updateControl(id: $updateControlId, input: $input) { + control { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } +} diff --git a/query/controlhistory.graphql b/query/controlhistory.graphql new file mode 100644 index 00000000..d0d4fd96 --- /dev/null +++ b/query/controlhistory.graphql @@ -0,0 +1,61 @@ + + +query GetAllControlHistories { + controlHistories { + edges { + node { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + historyTime + id + mappedFrameworks + name + operation + ref + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } + } +} + +query GetControlHistories($where: ControlHistoryWhereInput) { + controlHistories(where: $where) { + edges { + node { + class + controlNumber + controlType + createdAt + createdBy + description + details + family + historyTime + id + mappedFrameworks + name + operation + ref + satisfies + source + status + tags + updatedAt + updatedBy + version + } + } + } +} diff --git a/query/controlobjective.graphql b/query/controlobjective.graphql new file mode 100644 index 00000000..9f19f61e --- /dev/null +++ b/query/controlobjective.graphql @@ -0,0 +1,174 @@ + +mutation CreateBulkCSVControlObjective($input: Upload!) { + createBulkCSVControlObjective(input: $input) { + controlObjectives { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation CreateBulkControlObjective($input: [CreateControlObjectiveInput!]) { + createBulkControlObjective(input: $input) { + controlObjectives { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation CreateControlObjective($input: CreateControlObjectiveInput!) { + createControlObjective(input: $input) { + controlObjective { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation DeleteControlObjective($deleteControlObjectiveId: ID!) { + deleteControlObjective(id: $deleteControlObjectiveId) { + deletedID + } +} + +query GetAllControlObjectives { + controlObjectives { + edges { + node { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } + } + } +} +query GetControlObjectiveByID($controlObjectiveId: ID!) { + controlObjective(id: $controlObjectiveId) { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } +} + +query GetControlObjectives($where: ControlObjectiveWhereInput) { + controlObjectives(where: $where) { + edges { + node { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } + } + } +} +mutation UpdateControlObjective($updateControlObjectiveId: ID!, $input: UpdateControlObjectiveInput!) { + updateControlObjective(id: $updateControlObjectiveId, input: $input) { + controlObjective { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + id + mappedFrameworks + name + source + status + tags + updatedAt + updatedBy + version + } + } +} diff --git a/query/controlobjectivehistory.graphql b/query/controlobjectivehistory.graphql new file mode 100644 index 00000000..0e1917ee --- /dev/null +++ b/query/controlobjectivehistory.graphql @@ -0,0 +1,59 @@ + + +query GetAllControlObjectiveHistories { + controlObjectiveHistories { + edges { + node { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + historyTime + id + mappedFrameworks + name + operation + ref + source + status + tags + updatedAt + updatedBy + version + } + } + } +} + +query GetControlObjectiveHistories($where: ControlObjectiveHistoryWhereInput) { + controlObjectiveHistories(where: $where) { + edges { + node { + class + controlNumber + controlObjectiveType + createdAt + createdBy + description + details + family + historyTime + id + mappedFrameworks + name + operation + ref + source + status + tags + updatedAt + updatedBy + version + } + } + } +} diff --git a/query/internalpolicy.graphql b/query/internalpolicy.graphql new file mode 100644 index 00000000..69e46c10 --- /dev/null +++ b/query/internalpolicy.graphql @@ -0,0 +1,153 @@ + +mutation CreateBulkCSVInternalPolicy($input: Upload!) { + createBulkCSVInternalPolicy(input: $input) { + internalPolicies { + background + createdAt + createdBy + description + details + id + name + policyType + purposeAndScope + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation CreateBulkInternalPolicy($input: [CreateInternalPolicyInput!]) { + createBulkInternalPolicy(input: $input) { + internalPolicies { + background + createdAt + createdBy + description + details + id + name + policyType + purposeAndScope + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation CreateInternalPolicy($input: CreateInternalPolicyInput!) { + createInternalPolicy(input: $input) { + internalPolicy { + background + createdAt + createdBy + description + details + id + name + policyType + purposeAndScope + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation DeleteInternalPolicy($deleteInternalPolicyId: ID!) { + deleteInternalPolicy(id: $deleteInternalPolicyId) { + deletedID + } +} + +query GetAllInternalPolicies { + internalPolicies { + edges { + node { + background + createdAt + createdBy + description + details + id + name + policyType + purposeAndScope + status + tags + updatedAt + updatedBy + version + } + } + } +} +query GetInternalPolicyByID($internalPolicyId: ID!) { + internalPolicy(id: $internalPolicyId) { + background + createdAt + createdBy + description + details + id + name + policyType + purposeAndScope + status + tags + updatedAt + updatedBy + version + } +} + +query GetInternalPolicies($where: InternalPolicyWhereInput) { + internalPolicies(where: $where) { + edges { + node { + background + createdAt + createdBy + description + details + id + name + policyType + purposeAndScope + status + tags + updatedAt + updatedBy + version + } + } + } +} +mutation UpdateInternalPolicy($updateInternalPolicyId: ID!, $input: UpdateInternalPolicyInput!) { + updateInternalPolicy(id: $updateInternalPolicyId, input: $input) { + internalPolicy { + background + createdAt + createdBy + description + details + id + name + policyType + purposeAndScope + status + tags + updatedAt + updatedBy + version + } + } +} diff --git a/query/internalpolicyhistory.graphql b/query/internalpolicyhistory.graphql new file mode 100644 index 00000000..f17c56d3 --- /dev/null +++ b/query/internalpolicyhistory.graphql @@ -0,0 +1,53 @@ + + +query GetAllInternalPolicyHistories { + internalPolicyHistories { + edges { + node { + background + createdAt + createdBy + description + details + historyTime + id + name + operation + policyType + purposeAndScope + ref + status + tags + updatedAt + updatedBy + version + } + } + } +} + +query GetInternalPolicyHistories($where: InternalPolicyHistoryWhereInput) { + internalPolicyHistories(where: $where) { + edges { + node { + background + createdAt + createdBy + description + details + historyTime + id + name + operation + policyType + purposeAndScope + ref + status + tags + updatedAt + updatedBy + version + } + } + } +} diff --git a/query/narrative.graphql b/query/narrative.graphql new file mode 100644 index 00000000..436492b4 --- /dev/null +++ b/query/narrative.graphql @@ -0,0 +1,125 @@ + +mutation CreateBulkCSVNarrative($input: Upload!) { + createBulkCSVNarrative(input: $input) { + narratives { + createdAt + createdBy + description + details + id + name + satisfies + tags + updatedAt + updatedBy + } + } +} + +mutation CreateBulkNarrative($input: [CreateNarrativeInput!]) { + createBulkNarrative(input: $input) { + narratives { + createdAt + createdBy + description + details + id + name + satisfies + tags + updatedAt + updatedBy + } + } +} + +mutation CreateNarrative($input: CreateNarrativeInput!) { + createNarrative(input: $input) { + narrative { + createdAt + createdBy + description + details + id + name + satisfies + tags + updatedAt + updatedBy + } + } +} + +mutation DeleteNarrative($deleteNarrativeId: ID!) { + deleteNarrative(id: $deleteNarrativeId) { + deletedID + } +} + +query GetAllNarratives { + narratives { + edges { + node { + createdAt + createdBy + description + details + id + name + satisfies + tags + updatedAt + updatedBy + } + } + } +} +query GetNarrativeByID($narrativeId: ID!) { + narrative(id: $narrativeId) { + createdAt + createdBy + description + details + id + name + satisfies + tags + updatedAt + updatedBy + } +} + +query GetNarratives($where: NarrativeWhereInput) { + narratives(where: $where) { + edges { + node { + createdAt + createdBy + description + details + id + name + satisfies + tags + updatedAt + updatedBy + } + } + } +} +mutation UpdateNarrative($updateNarrativeId: ID!, $input: UpdateNarrativeInput!) { + updateNarrative(id: $updateNarrativeId, input: $input) { + narrative { + createdAt + createdBy + description + details + id + name + satisfies + tags + updatedAt + updatedBy + } + } +} diff --git a/query/narrativehistory.graphql b/query/narrativehistory.graphql new file mode 100644 index 00000000..bcf447a8 --- /dev/null +++ b/query/narrativehistory.graphql @@ -0,0 +1,45 @@ + + +query GetAllNarrativeHistories { + narrativeHistories { + edges { + node { + createdAt + createdBy + description + details + historyTime + id + name + operation + ref + satisfies + tags + updatedAt + updatedBy + } + } + } +} + +query GetNarrativeHistories($where: NarrativeHistoryWhereInput) { + narrativeHistories(where: $where) { + edges { + node { + createdAt + createdBy + description + details + historyTime + id + name + operation + ref + satisfies + tags + updatedAt + updatedBy + } + } + } +} diff --git a/query/procedure.graphql b/query/procedure.graphql new file mode 100644 index 00000000..39cc49ce --- /dev/null +++ b/query/procedure.graphql @@ -0,0 +1,160 @@ + +mutation CreateBulkCSVProcedure($input: Upload!) { + createBulkCSVProcedure(input: $input) { + procedures { + background + createdAt + createdBy + description + details + id + name + procedureType + purposeAndScope + satisfies + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation CreateBulkProcedure($input: [CreateProcedureInput!]) { + createBulkProcedure(input: $input) { + procedures { + background + createdAt + createdBy + description + details + id + name + procedureType + purposeAndScope + satisfies + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation CreateProcedure($input: CreateProcedureInput!) { + createProcedure(input: $input) { + procedure { + background + createdAt + createdBy + description + details + id + name + procedureType + purposeAndScope + satisfies + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation DeleteProcedure($deleteProcedureId: ID!) { + deleteProcedure(id: $deleteProcedureId) { + deletedID + } +} + +query GetAllProcedures { + procedures { + edges { + node { + background + createdAt + createdBy + description + details + id + name + procedureType + purposeAndScope + satisfies + status + tags + updatedAt + updatedBy + version + } + } + } +} +query GetProcedureByID($procedureId: ID!) { + procedure(id: $procedureId) { + background + createdAt + createdBy + description + details + id + name + procedureType + purposeAndScope + satisfies + status + tags + updatedAt + updatedBy + version + } +} + +query GetProcedures($where: ProcedureWhereInput) { + procedures(where: $where) { + edges { + node { + background + createdAt + createdBy + description + details + id + name + procedureType + purposeAndScope + satisfies + status + tags + updatedAt + updatedBy + version + } + } + } +} +mutation UpdateProcedure($updateProcedureId: ID!, $input: UpdateProcedureInput!) { + updateProcedure(id: $updateProcedureId, input: $input) { + procedure { + background + createdAt + createdBy + description + details + id + name + procedureType + purposeAndScope + satisfies + status + tags + updatedAt + updatedBy + version + } + } +} diff --git a/query/procedurehistory.graphql b/query/procedurehistory.graphql new file mode 100644 index 00000000..6eacf0f0 --- /dev/null +++ b/query/procedurehistory.graphql @@ -0,0 +1,55 @@ + + +query GetAllProcedureHistories { + procedureHistories { + edges { + node { + background + createdAt + createdBy + description + details + historyTime + id + name + operation + procedureType + purposeAndScope + ref + satisfies + status + tags + updatedAt + updatedBy + version + } + } + } +} + +query GetProcedureHistories($where: ProcedureHistoryWhereInput) { + procedureHistories(where: $where) { + edges { + node { + background + createdAt + createdBy + description + details + historyTime + id + name + operation + procedureType + purposeAndScope + ref + satisfies + status + tags + updatedAt + updatedBy + version + } + } + } +} diff --git a/query/risk.graphql b/query/risk.graphql new file mode 100644 index 00000000..dd5e1ec0 --- /dev/null +++ b/query/risk.graphql @@ -0,0 +1,167 @@ + +mutation CreateBulkCSVRisk($input: Upload!) { + createBulkCSVRisk(input: $input) { + risks { + businessCosts + createdAt + createdBy + description + details + id + impact + likelihood + mitigation + name + riskType + satisfies + status + tags + updatedAt + updatedBy + } + } +} + +mutation CreateBulkRisk($input: [CreateRiskInput!]) { + createBulkRisk(input: $input) { + risks { + businessCosts + createdAt + createdBy + description + details + id + impact + likelihood + mitigation + name + riskType + satisfies + status + tags + updatedAt + updatedBy + } + } +} + +mutation CreateRisk($input: CreateRiskInput!) { + createRisk(input: $input) { + risk { + businessCosts + createdAt + createdBy + description + details + id + impact + likelihood + mitigation + name + riskType + satisfies + status + tags + updatedAt + updatedBy + } + } +} + +mutation DeleteRisk($deleteRiskId: ID!) { + deleteRisk(id: $deleteRiskId) { + deletedID + } +} + +query GetAllRisks { + risks { + edges { + node { + businessCosts + createdAt + createdBy + description + details + id + impact + likelihood + mitigation + name + riskType + satisfies + status + tags + updatedAt + updatedBy + } + } + } +} +query GetRiskByID($riskId: ID!) { + risk(id: $riskId) { + businessCosts + createdAt + createdBy + description + details + id + impact + likelihood + mitigation + name + riskType + satisfies + status + tags + updatedAt + updatedBy + } +} + +query GetRisks($where: RiskWhereInput) { + risks(where: $where) { + edges { + node { + businessCosts + createdAt + createdBy + description + details + id + impact + likelihood + mitigation + name + riskType + satisfies + status + tags + updatedAt + updatedBy + } + } + } +} +mutation UpdateRisk($updateRiskId: ID!, $input: UpdateRiskInput!) { + updateRisk(id: $updateRiskId, input: $input) { + risk { + businessCosts + createdAt + createdBy + description + details + id + impact + likelihood + mitigation + name + riskType + satisfies + status + tags + updatedAt + updatedBy + } + } +} diff --git a/query/riskhistory.graphql b/query/riskhistory.graphql new file mode 100644 index 00000000..67ce8f3a --- /dev/null +++ b/query/riskhistory.graphql @@ -0,0 +1,57 @@ + + +query GetAllRiskHistories { + riskHistories { + edges { + node { + businessCosts + createdAt + createdBy + description + details + historyTime + id + impact + likelihood + mitigation + name + operation + ref + riskType + satisfies + status + tags + updatedAt + updatedBy + } + } + } +} + +query GetRiskHistories($where: RiskHistoryWhereInput) { + riskHistories(where: $where) { + edges { + node { + businessCosts + createdAt + createdBy + description + details + historyTime + id + impact + likelihood + mitigation + name + operation + ref + riskType + satisfies + status + tags + updatedAt + updatedBy + } + } + } +} diff --git a/query/search.graphql b/query/search.graphql index 4da6a241..f3bd9312 100644 --- a/query/search.graphql +++ b/query/search.graphql @@ -7,6 +7,12 @@ query GlobalSearch($query: String!) { tags } } + ... on ActionPlanSearchResult { + actionPlans { + id + tags + } + } ... on ContactSearchResult { contacts { fullName @@ -14,6 +20,18 @@ query GlobalSearch($query: String!) { tags } } + ... on ControlSearchResult { + controls { + id + tags + } + } + ... on ControlObjectiveSearchResult { + controlObjectives { + id + tags + } + } ... on DocumentDataSearchResult { documentData { id @@ -91,6 +109,18 @@ query GlobalSearch($query: String!) { tags } } + ... on InternalPolicySearchResult { + internalPolicies { + id + tags + } + } + ... on NarrativeSearchResult { + narratives { + id + tags + } + } ... on OauthProviderSearchResult { oauthProviders { id @@ -123,6 +153,30 @@ query GlobalSearch($query: String!) { tags } } + ... on ProcedureSearchResult { + procedures { + id + tags + } + } + ... on RiskSearchResult { + risks { + id + tags + } + } + ... on StandardSearchResult { + standards { + id + tags + } + } + ... on SubcontrolSearchResult { + subcontrols { + id + tags + } + } ... on SubscriberSearchResult { subscribers { email diff --git a/query/standard.graphql b/query/standard.graphql new file mode 100644 index 00000000..052b9aeb --- /dev/null +++ b/query/standard.graphql @@ -0,0 +1,167 @@ + +mutation CreateBulkCSVStandard($input: Upload!) { + createBulkCSVStandard(input: $input) { + standards { + background + createdAt + createdBy + description + details + family + id + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation CreateBulkStandard($input: [CreateStandardInput!]) { + createBulkStandard(input: $input) { + standards { + background + createdAt + createdBy + description + details + family + id + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation CreateStandard($input: CreateStandardInput!) { + createStandard(input: $input) { + standard { + background + createdAt + createdBy + description + details + family + id + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } + } +} + +mutation DeleteStandard($deleteStandardId: ID!) { + deleteStandard(id: $deleteStandardId) { + deletedID + } +} + +query GetAllStandards { + standards { + edges { + node { + background + createdAt + createdBy + description + details + family + id + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } + } + } +} +query GetStandardByID($standardId: ID!) { + standard(id: $standardId) { + background + createdAt + createdBy + description + details + family + id + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } +} + +query GetStandards($where: StandardWhereInput) { + standards(where: $where) { + edges { + node { + background + createdAt + createdBy + description + details + family + id + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } + } + } +} +mutation UpdateStandard($updateStandardId: ID!, $input: UpdateStandardInput!) { + updateStandard(id: $updateStandardId, input: $input) { + standard { + background + createdAt + createdBy + description + details + family + id + name + purposeAndScope + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } + } +} diff --git a/query/standardhistory.graphql b/query/standardhistory.graphql new file mode 100644 index 00000000..8fcce57b --- /dev/null +++ b/query/standardhistory.graphql @@ -0,0 +1,57 @@ + + +query GetAllStandardHistories { + standardHistories { + edges { + node { + background + createdAt + createdBy + description + details + family + historyTime + id + name + operation + purposeAndScope + ref + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } + } + } +} + +query GetStandardHistories($where: StandardHistoryWhereInput) { + standardHistories(where: $where) { + edges { + node { + background + createdAt + createdBy + description + details + family + historyTime + id + name + operation + purposeAndScope + ref + satisfies + standardType + status + tags + updatedAt + updatedBy + version + } + } + } +} diff --git a/query/subcontrol.graphql b/query/subcontrol.graphql new file mode 100644 index 00000000..ff0a6491 --- /dev/null +++ b/query/subcontrol.graphql @@ -0,0 +1,209 @@ + +mutation CreateBulkCSVSubcontrol($input: Upload!) { + createBulkCSVSubcontrol(input: $input) { + subcontrols { + class + createdAt + createdBy + description + details + family + id + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks + name + source + status + subcontrolNumber + subcontrolType + tags + updatedAt + updatedBy + version + } + } +} + +mutation CreateBulkSubcontrol($input: [CreateSubcontrolInput!]) { + createBulkSubcontrol(input: $input) { + subcontrols { + class + createdAt + createdBy + description + details + family + id + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks + name + source + status + subcontrolNumber + subcontrolType + tags + updatedAt + updatedBy + version + } + } +} + +mutation CreateSubcontrol($input: CreateSubcontrolInput!) { + createSubcontrol(input: $input) { + subcontrol { + class + createdAt + createdBy + description + details + family + id + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks + name + source + status + subcontrolNumber + subcontrolType + tags + updatedAt + updatedBy + version + } + } +} + +mutation DeleteSubcontrol($deleteSubcontrolId: ID!) { + deleteSubcontrol(id: $deleteSubcontrolId) { + deletedID + } +} + +query GetAllSubcontrols { + subcontrols { + edges { + node { + class + createdAt + createdBy + description + details + family + id + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks + name + source + status + subcontrolNumber + subcontrolType + tags + updatedAt + updatedBy + version + } + } + } +} +query GetSubcontrolByID($subcontrolId: ID!) { + subcontrol(id: $subcontrolId) { + class + createdAt + createdBy + description + details + family + id + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks + name + source + status + subcontrolNumber + subcontrolType + tags + updatedAt + updatedBy + version + } +} + +query GetSubcontrols($where: SubcontrolWhereInput) { + subcontrols(where: $where) { + edges { + node { + class + createdAt + createdBy + description + details + family + id + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks + name + source + status + subcontrolNumber + subcontrolType + tags + updatedAt + updatedBy + version + } + } + } +} +mutation UpdateSubcontrol($updateSubcontrolId: ID!, $input: UpdateSubcontrolInput!) { + updateSubcontrol(id: $updateSubcontrolId, input: $input) { + subcontrol { + class + createdAt + createdBy + description + details + family + id + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks + name + source + status + subcontrolNumber + subcontrolType + tags + updatedAt + updatedBy + version + } + } +} diff --git a/query/subcontrolhistory.graphql b/query/subcontrolhistory.graphql new file mode 100644 index 00000000..797ff1c2 --- /dev/null +++ b/query/subcontrolhistory.graphql @@ -0,0 +1,69 @@ + + +query GetAllSubcontrolHistories { + subcontrolHistories { + edges { + node { + class + createdAt + createdBy + description + details + family + historyTime + id + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks + name + operation + ref + source + status + subcontrolNumber + subcontrolType + tags + updatedAt + updatedBy + version + } + } + } +} + +query GetSubcontrolHistories($where: SubcontrolHistoryWhereInput) { + subcontrolHistories(where: $where) { + edges { + node { + class + createdAt + createdBy + description + details + family + historyTime + id + implementationDate + implementationEvidence + implementationStatus + implementationVerification + implementationVerificationDate + mappedFrameworks + name + operation + ref + source + status + subcontrolNumber + subcontrolType + tags + updatedAt + updatedBy + version + } + } + } +} diff --git a/schema.graphql b/schema.graphql index 1d5ea452..aded3ce8 100644 --- a/schema.graphql +++ b/schema.graphql @@ -282,53 +282,7 @@ input APITokenWhereInput { hasOwner: Boolean hasOwnerWith: [OrganizationWhereInput!] } -type AuditLog implements Node { - table: String - time: Time - id: ID! - operation: String - changes: [String!] - updatedBy: ID -} -""" -A connection to a list of items. -""" -type AuditLogConnection { - """ - A list of edges. - """ - edges: [AuditLogEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type AuditLogEdge { - """ - The item at the end of the edge. - """ - node: AuditLog - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -input AuditLogWhereInput { - refID: ID - updatedBy: ID - operation: String - table: ID - before: Time - after: Time -} -type Contact implements Node { +type ActionPlan implements Node { id: ID! createdAt: Time updatedAt: Time @@ -341,58 +295,55 @@ type Contact implements Node { """ tags: [String!] """ - the organization id that owns the object - """ - ownerID: ID - """ - the full name of the contact + the name of the action plan """ - fullName: String! + name: String! """ - the title of the contact + description of the action plan """ - title: String + description: String """ - the company of the contact + status of the action plan """ - company: String + status: String """ - the email of the contact + due date of the action plan """ - email: String + dueDate: Time """ - the phone number of the contact + priority of the action plan """ - phoneNumber: String + priority: String """ - the address of the contact + source of the action plan """ - address: String + source: String """ - status of the contact + json data including details of the action plan """ - status: ContactUserStatus! - owner: Organization - entities: [Entity!] - files: [File!] + details: Map + standard: [Standard!] + risk: [Risk!] + control: [Control!] + user: [User!] } """ -Return response for createBulkContact mutation +Return response for createBulkActionPlan mutation """ -type ContactBulkCreatePayload { +type ActionPlanBulkCreatePayload { """ - Created contacts + Created actionPlans """ - contacts: [Contact!] + actionPlans: [ActionPlan!] } """ A connection to a list of items. """ -type ContactConnection { +type ActionPlanConnection { """ A list of edges. """ - edges: [ContactEdge] + edges: [ActionPlanEdge] """ Information to aid in pagination. """ @@ -403,41 +354,41 @@ type ContactConnection { totalCount: Int! } """ -Return response for createContact mutation +Return response for createActionPlan mutation """ -type ContactCreatePayload { +type ActionPlanCreatePayload { """ - Created contact + Created actionPlan """ - contact: Contact! + actionPlan: ActionPlan! } """ -Return response for deleteContact mutation +Return response for deleteActionPlan mutation """ -type ContactDeletePayload { +type ActionPlanDeletePayload { """ - Deleted contact ID + Deleted actionPlan ID """ deletedID: ID! } """ An edge in a connection. """ -type ContactEdge { +type ActionPlanEdge { """ The item at the end of the edge. """ - node: Contact + node: ActionPlan """ A cursor for use in pagination. """ cursor: Cursor! } -type ContactHistory implements Node { +type ActionPlanHistory implements Node { id: ID! historyTime: Time! ref: String - operation: ContactHistoryOpType! + operation: ActionPlanHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -449,46 +400,42 @@ type ContactHistory implements Node { """ tags: [String!] """ - the organization id that owns the object - """ - ownerID: String - """ - the full name of the contact + the name of the action plan """ - fullName: String! + name: String! """ - the title of the contact + description of the action plan """ - title: String + description: String """ - the company of the contact + status of the action plan """ - company: String + status: String """ - the email of the contact + due date of the action plan """ - email: String + dueDate: Time """ - the phone number of the contact + priority of the action plan """ - phoneNumber: String + priority: String """ - the address of the contact + source of the action plan """ - address: String + source: String """ - status of the contact + json data including details of the action plan """ - status: ContactHistoryUserStatus! + details: Map } """ A connection to a list of items. """ -type ContactHistoryConnection { +type ActionPlanHistoryConnection { """ A list of edges. """ - edges: [ContactHistoryEdge] + edges: [ActionPlanHistoryEdge] """ Information to aid in pagination. """ @@ -501,42 +448,32 @@ type ContactHistoryConnection { """ An edge in a connection. """ -type ContactHistoryEdge { +type ActionPlanHistoryEdge { """ The item at the end of the edge. """ - node: ContactHistory + node: ActionPlanHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -ContactHistoryOpType is enum for the field operation +ActionPlanHistoryOpType is enum for the field operation """ -enum ContactHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum ActionPlanHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -ContactHistoryUserStatus is enum for the field status -""" -enum ContactHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { - ACTIVE - INACTIVE - DEACTIVATED - SUSPENDED - ONBOARDING -} -""" -ContactHistoryWhereInput is used for filtering ContactHistory objects. +ActionPlanHistoryWhereInput is used for filtering ActionPlanHistory objects. Input was generated by ent. """ -input ContactHistoryWhereInput { - not: ContactHistoryWhereInput - and: [ContactHistoryWhereInput!] - or: [ContactHistoryWhereInput!] +input ActionPlanHistoryWhereInput { + not: ActionPlanHistoryWhereInput + and: [ActionPlanHistoryWhereInput!] + or: [ActionPlanHistoryWhereInput!] """ id field predicates """ @@ -582,10 +519,10 @@ input ContactHistoryWhereInput { """ operation field predicates """ - operation: ContactHistoryOpType - operationNEQ: ContactHistoryOpType - operationIn: [ContactHistoryOpType!] - operationNotIn: [ContactHistoryOpType!] + operation: ActionPlanHistoryOpType + operationNEQ: ActionPlanHistoryOpType + operationIn: [ActionPlanHistoryOpType!] + operationNotIn: [ActionPlanHistoryOpType!] """ created_at field predicates """ @@ -680,169 +617,129 @@ input ContactHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + name field predicates """ - full_name field predicates + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - fullName: String - fullNameNEQ: String - fullNameIn: [String!] - fullNameNotIn: [String!] - fullNameGT: String - fullNameGTE: String - fullNameLT: String - fullNameLTE: String - fullNameContains: String - fullNameHasPrefix: String - fullNameHasSuffix: String - fullNameEqualFold: String - fullNameContainsFold: String + description field predicates """ - title field predicates + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - title: String - titleNEQ: String - titleIn: [String!] - titleNotIn: [String!] - titleGT: String - titleGTE: String - titleLT: String - titleLTE: String - titleContains: String - titleHasPrefix: String - titleHasSuffix: String - titleIsNil: Boolean - titleNotNil: Boolean - titleEqualFold: String - titleContainsFold: String + status field predicates """ - company field predicates + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - company: String - companyNEQ: String - companyIn: [String!] - companyNotIn: [String!] - companyGT: String - companyGTE: String - companyLT: String - companyLTE: String - companyContains: String - companyHasPrefix: String - companyHasSuffix: String - companyIsNil: Boolean - companyNotNil: Boolean - companyEqualFold: String - companyContainsFold: String + due_date field predicates + """ + dueDate: Time + dueDateNEQ: Time + dueDateIn: [Time!] + dueDateNotIn: [Time!] + dueDateGT: Time + dueDateGTE: Time + dueDateLT: Time + dueDateLTE: Time + dueDateIsNil: Boolean + dueDateNotNil: Boolean + """ + priority field predicates + """ + priority: String + priorityNEQ: String + priorityIn: [String!] + priorityNotIn: [String!] + priorityGT: String + priorityGTE: String + priorityLT: String + priorityLTE: String + priorityContains: String + priorityHasPrefix: String + priorityHasSuffix: String + priorityIsNil: Boolean + priorityNotNil: Boolean + priorityEqualFold: String + priorityContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String +} +type ActionPlanSearchResult { + actionPlans: [ActionPlan!] +} +""" +Return response for updateActionPlan mutation +""" +type ActionPlanUpdatePayload { + """ + Updated actionPlan + """ + actionPlan: ActionPlan! +} +""" +ActionPlanWhereInput is used for filtering ActionPlan objects. +Input was generated by ent. +""" +input ActionPlanWhereInput { + not: ActionPlanWhereInput + and: [ActionPlanWhereInput!] + or: [ActionPlanWhereInput!] """ - email field predicates - """ - email: String - emailNEQ: String - emailIn: [String!] - emailNotIn: [String!] - emailGT: String - emailGTE: String - emailLT: String - emailLTE: String - emailContains: String - emailHasPrefix: String - emailHasSuffix: String - emailIsNil: Boolean - emailNotNil: Boolean - emailEqualFold: String - emailContainsFold: String - """ - phone_number field predicates - """ - phoneNumber: String - phoneNumberNEQ: String - phoneNumberIn: [String!] - phoneNumberNotIn: [String!] - phoneNumberGT: String - phoneNumberGTE: String - phoneNumberLT: String - phoneNumberLTE: String - phoneNumberContains: String - phoneNumberHasPrefix: String - phoneNumberHasSuffix: String - phoneNumberIsNil: Boolean - phoneNumberNotNil: Boolean - phoneNumberEqualFold: String - phoneNumberContainsFold: String - """ - address field predicates - """ - address: String - addressNEQ: String - addressIn: [String!] - addressNotIn: [String!] - addressGT: String - addressGTE: String - addressLT: String - addressLTE: String - addressContains: String - addressHasPrefix: String - addressHasSuffix: String - addressIsNil: Boolean - addressNotNil: Boolean - addressEqualFold: String - addressContainsFold: String - """ - status field predicates - """ - status: ContactHistoryUserStatus - statusNEQ: ContactHistoryUserStatus - statusIn: [ContactHistoryUserStatus!] - statusNotIn: [ContactHistoryUserStatus!] -} -type ContactSearchResult { - contacts: [Contact!] -} -""" -Return response for updateContact mutation -""" -type ContactUpdatePayload { - """ - Updated contact - """ - contact: Contact! -} -""" -ContactUserStatus is enum for the field status -""" -enum ContactUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { - ACTIVE - INACTIVE - DEACTIVATED - SUSPENDED - ONBOARDING -} -""" -ContactWhereInput is used for filtering Contact objects. -Input was generated by ent. -""" -input ContactWhereInput { - not: ContactWhereInput - and: [ContactWhereInput!] - or: [ContactWhereInput!] - """ - id field predicates + id field predicates """ id: ID idNEQ: ID @@ -948,187 +845,190 @@ input ContactWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + name field predicates """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - full_name field predicates + description field predicates """ - fullName: String - fullNameNEQ: String - fullNameIn: [String!] - fullNameNotIn: [String!] - fullNameGT: String - fullNameGTE: String - fullNameLT: String - fullNameLTE: String - fullNameContains: String - fullNameHasPrefix: String - fullNameHasSuffix: String - fullNameEqualFold: String - fullNameContainsFold: String + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - title field predicates + status field predicates """ - title: String - titleNEQ: String - titleIn: [String!] - titleNotIn: [String!] - titleGT: String - titleGTE: String - titleLT: String - titleLTE: String - titleContains: String - titleHasPrefix: String - titleHasSuffix: String - titleIsNil: Boolean - titleNotNil: Boolean - titleEqualFold: String - titleContainsFold: String + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - company field predicates + due_date field predicates + """ + dueDate: Time + dueDateNEQ: Time + dueDateIn: [Time!] + dueDateNotIn: [Time!] + dueDateGT: Time + dueDateGTE: Time + dueDateLT: Time + dueDateLTE: Time + dueDateIsNil: Boolean + dueDateNotNil: Boolean + """ + priority field predicates + """ + priority: String + priorityNEQ: String + priorityIn: [String!] + priorityNotIn: [String!] + priorityGT: String + priorityGTE: String + priorityLT: String + priorityLTE: String + priorityContains: String + priorityHasPrefix: String + priorityHasSuffix: String + priorityIsNil: Boolean + priorityNotNil: Boolean + priorityEqualFold: String + priorityContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + risk edge predicates + """ + hasRisk: Boolean + hasRiskWith: [RiskWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] """ - company: String - companyNEQ: String - companyIn: [String!] - companyNotIn: [String!] - companyGT: String - companyGTE: String - companyLT: String - companyLTE: String - companyContains: String - companyHasPrefix: String - companyHasSuffix: String - companyIsNil: Boolean - companyNotNil: Boolean - companyEqualFold: String - companyContainsFold: String + user edge predicates """ - email field predicates + hasUser: Boolean + hasUserWith: [UserWhereInput!] +} +type AuditLog implements Node { + table: String + time: Time + id: ID! + operation: String + changes: [String!] + updatedBy: ID +} +""" +A connection to a list of items. +""" +type AuditLogConnection { """ - email: String - emailNEQ: String - emailIn: [String!] - emailNotIn: [String!] - emailGT: String - emailGTE: String - emailLT: String - emailLTE: String - emailContains: String - emailHasPrefix: String - emailHasSuffix: String - emailIsNil: Boolean - emailNotNil: Boolean - emailEqualFold: String - emailContainsFold: String + A list of edges. """ - phone_number field predicates + edges: [AuditLogEdge] """ - phoneNumber: String - phoneNumberNEQ: String - phoneNumberIn: [String!] - phoneNumberNotIn: [String!] - phoneNumberGT: String - phoneNumberGTE: String - phoneNumberLT: String - phoneNumberLTE: String - phoneNumberContains: String - phoneNumberHasPrefix: String - phoneNumberHasSuffix: String - phoneNumberIsNil: Boolean - phoneNumberNotNil: Boolean - phoneNumberEqualFold: String - phoneNumberContainsFold: String + Information to aid in pagination. """ - address field predicates + pageInfo: PageInfo! """ - address: String - addressNEQ: String - addressIn: [String!] - addressNotIn: [String!] - addressGT: String - addressGTE: String - addressLT: String - addressLTE: String - addressContains: String - addressHasPrefix: String - addressHasSuffix: String - addressIsNil: Boolean - addressNotNil: Boolean - addressEqualFold: String - addressContainsFold: String - """ - status field predicates - """ - status: ContactUserStatus - statusNEQ: ContactUserStatus - statusIn: [ContactUserStatus!] - statusNotIn: [ContactUserStatus!] - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - entities edge predicates - """ - hasEntities: Boolean - hasEntitiesWith: [EntityWhereInput!] - """ - files edge predicates + Identifies the total count of items in the connection. """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] + totalCount: Int! } """ -CreateAPITokenInput is used for create APIToken object. -Input was generated by ent. +An edge in a connection. """ -input CreateAPITokenInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name associated with the token - """ - name: String! +type AuditLogEdge { """ - when the token expires + The item at the end of the edge. """ - expiresAt: Time + node: AuditLog """ - a description of the token's purpose + A cursor for use in pagination. """ - description: String - scopes: [String!] - lastUsedAt: Time - ownerID: ID + cursor: Cursor! } -""" -CreateContactInput is used for create Contact object. -Input was generated by ent. -""" -input CreateContactInput { +input AuditLogWhereInput { + refID: ID + updatedBy: ID + operation: String + table: ID + before: Time + after: Time +} +type Contact implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] """ + the organization id that owns the object + """ + ownerID: ID + """ the full name of the contact """ fullName: String! @@ -1155,934 +1055,1384 @@ input CreateContactInput { """ status of the contact """ - status: ContactUserStatus - ownerID: ID - entityIDs: [ID!] - fileIDs: [ID!] + status: ContactUserStatus! + owner: Organization + entities: [Entity!] + files: [File!] } """ -CreateDocumentDataInput is used for create DocumentData object. -Input was generated by ent. +Return response for createBulkContact mutation """ -input CreateDocumentDataInput { - """ - tags associated with the object - """ - tags: [String!] +type ContactBulkCreatePayload { """ - the json data of the document + Created contacts """ - data: JSON! - ownerID: ID - templateID: ID! - entityIDs: [ID!] - fileIDs: [ID!] + contacts: [Contact!] } """ -CreateEntitlementInput is used for create Entitlement object. -Input was generated by ent. +A connection to a list of items. """ -input CreateEntitlementInput { +type ContactConnection { """ - tags associated with the object + A list of edges. """ - tags: [String!] + edges: [ContactEdge] """ - used to store references to external systems, e.g. Stripe + Information to aid in pagination. """ - externalCustomerID: String + pageInfo: PageInfo! """ - used to store references to external systems, e.g. Stripe + Identifies the total count of items in the connection. """ - externalSubscriptionID: String + totalCount: Int! +} +""" +Return response for createContact mutation +""" +type ContactCreatePayload { """ - the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + Created contact """ - expiresAt: Time + contact: Contact! +} +""" +Return response for deleteContact mutation +""" +type ContactDeletePayload { """ - whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + Deleted contact ID """ - cancelled: Boolean - ownerID: ID - planID: ID! - organizationID: ID! - eventIDs: [ID!] + deletedID: ID! } """ -CreateEntitlementPlanFeatureInput is used for create EntitlementPlanFeature object. -Input was generated by ent. +An edge in a connection. """ -input CreateEntitlementPlanFeatureInput { +type ContactEdge { """ - tags associated with the object + The item at the end of the edge. """ - tags: [String!] + node: Contact """ - metadata for the entitlement plan feature such as usage limits + A cursor for use in pagination. """ - metadata: Map - ownerID: ID - planID: ID! - featureID: ID! - eventIDs: [ID!] + cursor: Cursor! } -""" -CreateEntitlementPlanInput is used for create EntitlementPlan object. -Input was generated by ent. -""" -input CreateEntitlementPlanInput { +type ContactHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ContactHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] """ - the displayed 'friendly' name of the plan + the organization id that owns the object """ - displayName: String + ownerID: String """ - the unique name of the plan + the full name of the contact """ - name: String! + fullName: String! """ - a description of the plan + the title of the contact """ - description: String + title: String """ - the version of the plan + the company of the contact """ - version: String! + company: String """ - metadata for the plan + the email of the contact """ - metadata: Map - ownerID: ID - entitlementIDs: [ID!] - baseFeatureIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateEntityInput is used for create Entity object. -Input was generated by ent. -""" -input CreateEntityInput { + email: String """ - tags associated with the object + the phone number of the contact """ - tags: [String!] + phoneNumber: String """ - the name of the entity + the address of the contact """ - name: String + address: String """ - The entity's displayed 'friendly' name + status of the contact """ - displayName: String + status: ContactHistoryUserStatus! +} +""" +A connection to a list of items. +""" +type ContactHistoryConnection { """ - An optional description of the entity + A list of edges. """ - description: String + edges: [ContactHistoryEdge] """ - domains associated with the entity + Information to aid in pagination. """ - domains: [String!] + pageInfo: PageInfo! """ - status of the entity + Identifies the total count of items in the connection. """ - status: String - ownerID: ID - contactIDs: [ID!] - documentIDs: [ID!] - noteIDs: [ID!] - fileIDs: [ID!] - entityTypeID: ID - note: CreateNoteInput + totalCount: Int! } """ -CreateEntityTypeInput is used for create EntityType object. -Input was generated by ent. +An edge in a connection. """ -input CreateEntityTypeInput { +type ContactHistoryEdge { """ - tags associated with the object + The item at the end of the edge. """ - tags: [String!] + node: ContactHistory """ - the name of the entity + A cursor for use in pagination. """ - name: String! - ownerID: ID - entityIDs: [ID!] + cursor: Cursor! } """ -CreateEventInput is used for create Event object. -Input was generated by ent. +ContactHistoryOpType is enum for the field operation """ -input CreateEventInput { - """ - tags associated with the object - """ - tags: [String!] - eventID: String - correlationID: String - eventType: String! - metadata: Map - userIDs: [ID!] - groupIDs: [ID!] - integrationIDs: [ID!] - organizationIDs: [ID!] - inviteIDs: [ID!] - featureIDs: [ID!] - entitlementplanIDs: [ID!] - personalAccessTokenIDs: [ID!] - oauth2tokenIDs: [ID!] - hushIDs: [ID!] - entitlementIDs: [ID!] - webhookIDs: [ID!] - subscriberIDs: [ID!] - fileIDs: [ID!] +enum ContactHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE } """ -CreateFeatureInput is used for create Feature object. -Input was generated by ent. +ContactHistoryUserStatus is enum for the field status """ -input CreateFeatureInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the unique name of the feature - """ - name: String! - """ - the displayed 'friendly' name of the feature - """ - displayName: String - """ - enabled features are available for use - """ - enabled: Boolean - """ - a description of the feature - """ - description: String - """ - metadata for the feature - """ - metadata: Map - ownerID: ID - planIDs: [ID!] - eventIDs: [ID!] +enum ContactHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING } """ -CreateFileInput is used for create File object. +ContactHistoryWhereInput is used for filtering ContactHistory objects. Input was generated by ent. """ -input CreateFileInput { +input ContactHistoryWhereInput { + not: ContactHistoryWhereInput + and: [ContactHistoryWhereInput!] + or: [ContactHistoryWhereInput!] """ - tags associated with the object + id field predicates """ - tags: [String!] + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - the name of the file provided in the payload key without the extension + history_time field predicates """ - providedFileName: String! + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time """ - the extension of the file provided + ref field predicates """ - providedFileExtension: String! + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String """ - the computed size of the file in the original http request + operation field predicates """ - providedFileSize: Int - persistedFileSize: Int + operation: ContactHistoryOpType + operationNEQ: ContactHistoryOpType + operationIn: [ContactHistoryOpType!] + operationNotIn: [ContactHistoryOpType!] """ - the mime type detected by the system + created_at field predicates """ - detectedMimeType: String + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + updated_at field predicates """ - md5Hash: String + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + created_by field predicates """ - detectedContentType: String! + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + updated_by field predicates """ - storeKey: String + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - the category type of the file, if any (e.g. evidence, invoice, etc.) + deleted_at field predicates """ - categoryType: String + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - the full URI of the file + deleted_by field predicates """ - uri: String + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - the storage scheme of the file, e.g. file://, s3://, etc. + owner_id field predicates """ - storageScheme: String + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + full_name field predicates """ - storageVolume: String + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameGT: String + fullNameGTE: String + fullNameLT: String + fullNameLTE: String + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameEqualFold: String + fullNameContainsFold: String """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + title field predicates """ - storagePath: String - userIDs: [ID!] - organizationIDs: [ID!] - groupIDs: [ID!] - contactIDs: [ID!] - entityIDs: [ID!] - usersettingIDs: [ID!] - organizationsettingIDs: [ID!] - templateIDs: [ID!] - documentdatumIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateGroupInput is used for create Group object. -Input was generated by ent. -""" -input CreateGroupInput { + title: String + titleNEQ: String + titleIn: [String!] + titleNotIn: [String!] + titleGT: String + titleGTE: String + titleLT: String + titleLTE: String + titleContains: String + titleHasPrefix: String + titleHasSuffix: String + titleIsNil: Boolean + titleNotNil: Boolean + titleEqualFold: String + titleContainsFold: String """ - tags associated with the object + company field predicates """ - tags: [String!] + company: String + companyNEQ: String + companyIn: [String!] + companyNotIn: [String!] + companyGT: String + companyGTE: String + companyLT: String + companyLTE: String + companyContains: String + companyHasPrefix: String + companyHasSuffix: String + companyIsNil: Boolean + companyNotNil: Boolean + companyEqualFold: String + companyContainsFold: String """ - the name of the group - must be unique within the organization + email field predicates """ - name: String! + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailIsNil: Boolean + emailNotNil: Boolean + emailEqualFold: String + emailContainsFold: String """ - the groups description + phone_number field predicates """ - description: String + phoneNumber: String + phoneNumberNEQ: String + phoneNumberIn: [String!] + phoneNumberNotIn: [String!] + phoneNumberGT: String + phoneNumberGTE: String + phoneNumberLT: String + phoneNumberLTE: String + phoneNumberContains: String + phoneNumberHasPrefix: String + phoneNumberHasSuffix: String + phoneNumberIsNil: Boolean + phoneNumberNotNil: Boolean + phoneNumberEqualFold: String + phoneNumberContainsFold: String """ - the URL to an auto generated gravatar image for the group + address field predicates """ - gravatarLogoURL: String + address: String + addressNEQ: String + addressIn: [String!] + addressNotIn: [String!] + addressGT: String + addressGTE: String + addressLT: String + addressLTE: String + addressContains: String + addressHasPrefix: String + addressHasSuffix: String + addressIsNil: Boolean + addressNotNil: Boolean + addressEqualFold: String + addressContainsFold: String """ - the URL to an image uploaded by the customer for the groups avatar image + status field predicates """ - logoURL: String + status: ContactHistoryUserStatus + statusNEQ: ContactHistoryUserStatus + statusIn: [ContactHistoryUserStatus!] + statusNotIn: [ContactHistoryUserStatus!] +} +type ContactSearchResult { + contacts: [Contact!] +} +""" +Return response for updateContact mutation +""" +type ContactUpdatePayload { """ - The group's displayed 'friendly' name + Updated contact """ - displayName: String - ownerID: ID - settingID: ID! - userIDs: [ID!] - eventIDs: [ID!] - integrationIDs: [ID!] - fileIDs: [ID!] - createGroupSettings: CreateGroupSettingInput + contact: Contact! } """ -CreateGroupMembershipInput is used for create GroupMembership object. -Input was generated by ent. +ContactUserStatus is enum for the field status """ -input CreateGroupMembershipInput { - role: GroupMembershipRole - groupID: ID! - userID: ID! - eventIDs: [ID!] +enum ContactUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING } """ -CreateGroupSettingInput is used for create GroupSetting object. +ContactWhereInput is used for filtering Contact objects. Input was generated by ent. """ -input CreateGroupSettingInput { - """ - tags associated with the object - """ - tags: [String!] - """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization - """ - visibility: GroupSettingVisibility - """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either - """ - joinPolicy: GroupSettingJoinPolicy +input ContactWhereInput { + not: ContactWhereInput + and: [ContactWhereInput!] + or: [ContactWhereInput!] """ - whether to sync group members to slack groups + id field predicates """ - syncToSlack: Boolean + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - whether to sync group members to github groups + created_at field predicates """ - syncToGithub: Boolean - groupID: ID -} -""" -CreateHushInput is used for create Hush object. -Input was generated by ent. -""" -input CreateHushInput { + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - the logical name of the corresponding hush secret or it's general grouping + updated_at field predicates """ - name: String! + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - a description of the hush value or purpose, such as github PAT + created_by field predicates """ - description: String + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - the kind of secret, such as sshkey, certificate, api token, etc. + updated_by field predicates """ - kind: String + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - the generic name of a secret associated with the organization + deleted_at field predicates """ - secretName: String + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - the secret value + deleted_by field predicates """ - secretValue: String - integrationIDs: [ID!] - organizationIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateIntegrationInput is used for create Integration object. -Input was generated by ent. -""" -input CreateIntegrationInput { + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - tags associated with the object + owner_id field predicates """ - tags: [String!] + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - the name of the integration - must be unique within the organization + full_name field predicates """ - name: String! + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameGT: String + fullNameGTE: String + fullNameLT: String + fullNameLTE: String + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameEqualFold: String + fullNameContainsFold: String """ - a description of the integration + title field predicates """ - description: String - kind: String - ownerID: ID - secretIDs: [ID!] - oauth2tokenIDs: [ID!] - eventIDs: [ID!] - webhookIDs: [ID!] -} -""" -CreateInviteInput is used for create Invite object. -Input was generated by ent. -""" -input CreateInviteInput { + title: String + titleNEQ: String + titleIn: [String!] + titleNotIn: [String!] + titleGT: String + titleGTE: String + titleLT: String + titleLTE: String + titleContains: String + titleHasPrefix: String + titleHasSuffix: String + titleIsNil: Boolean + titleNotNil: Boolean + titleEqualFold: String + titleContainsFold: String """ - the expiration date of the invitation token which defaults to 14 days in the future from creation + company field predicates """ - expires: Time + company: String + companyNEQ: String + companyIn: [String!] + companyNotIn: [String!] + companyGT: String + companyGTE: String + companyLT: String + companyLTE: String + companyContains: String + companyHasPrefix: String + companyHasSuffix: String + companyIsNil: Boolean + companyNotNil: Boolean + companyEqualFold: String + companyContainsFold: String """ - the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + email field predicates """ - recipient: String! + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailIsNil: Boolean + emailNotNil: Boolean + emailEqualFold: String + emailContainsFold: String """ - the status of the invitation + phone_number field predicates """ - status: InviteInviteStatus - role: InviteRole + phoneNumber: String + phoneNumberNEQ: String + phoneNumberIn: [String!] + phoneNumberNotIn: [String!] + phoneNumberGT: String + phoneNumberGTE: String + phoneNumberLT: String + phoneNumberLTE: String + phoneNumberContains: String + phoneNumberHasPrefix: String + phoneNumberHasSuffix: String + phoneNumberIsNil: Boolean + phoneNumberNotNil: Boolean + phoneNumberEqualFold: String + phoneNumberContainsFold: String """ - the number of attempts made to perform email send of the invitation, maximum of 5 + address field predicates """ - sendAttempts: Int + address: String + addressNEQ: String + addressIn: [String!] + addressNotIn: [String!] + addressGT: String + addressGTE: String + addressLT: String + addressLTE: String + addressContains: String + addressHasPrefix: String + addressHasSuffix: String + addressIsNil: Boolean + addressNotNil: Boolean + addressEqualFold: String + addressContainsFold: String """ - the user who initiated the invitation + status field predicates """ - requestorID: String - ownerID: ID - eventIDs: [ID!] -} -""" -CreateNoteInput is used for create Note object. -Input was generated by ent. -""" -input CreateNoteInput { + status: ContactUserStatus + statusNEQ: ContactUserStatus + statusIn: [ContactUserStatus!] + statusNotIn: [ContactUserStatus!] """ - tags associated with the object + owner edge predicates """ - tags: [String!] + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - the text of the note + entities edge predicates """ - text: String! - ownerID: ID - entityID: ID + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] } -""" -CreateOauthProviderInput is used for create OauthProvider object. -Input was generated by ent. -""" -input CreateOauthProviderInput { +type Control implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] """ - the oauth provider's name + the name of the control """ name: String! """ - the client id for the oauth provider + description of the control """ - clientID: String! + description: String """ - the client secret + status of the control """ - clientSecret: String! + status: String """ - the redirect url + type of the control """ - redirectURL: String! + controlType: String """ - the scopes + version of the control """ - scopes: String! + version: String """ - the auth url of the provider + control number or identifier """ - authURL: String! + controlNumber: String """ - the token url of the provider + family associated with the control """ - tokenURL: String! + family: String """ - the auth style, 0: auto detect 1: third party log in 2: log in with username and password + class associated with the control """ - authStyle: Uint! + class: String """ - the URL to request user information by token + source of the control, e.g. framework, template, custom, etc. """ - infoURL: String! - ownerID: ID + source: String + """ + which control objectives are satisfied by the control + """ + satisfies: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control + """ + details: Map + procedures: [Procedure!] + subcontrols: [Subcontrol!] + controlobjectives: [ControlObjective!] + standard: [Standard!] + narratives: [Narrative!] + risks: [Risk!] + actionplans: [ActionPlan!] } """ -CreateOhAuthTooTokenInput is used for create OhAuthTooToken object. -Input was generated by ent. +Return response for createBulkControl mutation """ -input CreateOhAuthTooTokenInput { +type ControlBulkCreatePayload { """ - tags associated with the object + Created controls """ - tags: [String!] - clientID: String! - scopes: [String!] - nonce: String! - claimsUserID: String! - claimsUsername: String! - claimsEmail: String! - claimsEmailVerified: Boolean! - claimsGroups: [String!] - claimsPreferredUsername: String! - connectorID: String! - connectorData: [String!] - lastUsed: Time - integrationIDs: [ID!] - eventIDs: [ID!] + controls: [Control!] } """ -CreateOrgMembershipInput is used for create OrgMembership object. -Input was generated by ent. +A connection to a list of items. """ -input CreateOrgMembershipInput { - role: OrgMembershipRole - organizationID: ID! - userID: ID! - eventIDs: [ID!] -} -""" -CreateOrganizationInput is used for create Organization object. -Input was generated by ent. -""" -input CreateOrganizationInput { +type ControlConnection { """ - tags associated with the object + A list of edges. """ - tags: [String!] + edges: [ControlEdge] """ - the name of the organization + Information to aid in pagination. """ - name: String! + pageInfo: PageInfo! """ - The organization's displayed 'friendly' name + Identifies the total count of items in the connection. """ - displayName: String + totalCount: Int! +} +""" +Return response for createControl mutation +""" +type ControlCreatePayload { """ - An optional description of the organization + Created control """ - description: String + control: Control! +} +""" +Return response for deleteControl mutation +""" +type ControlDeletePayload { """ - orgs directly associated with a user + Deleted control ID """ - personalOrg: Boolean + deletedID: ID! +} +""" +An edge in a connection. +""" +type ControlEdge { """ - URL of the user's remote avatar + The item at the end of the edge. """ - avatarRemoteURL: String + node: Control """ - Whether the organization has a dedicated database + A cursor for use in pagination. """ - dedicatedDb: Boolean - parentID: ID - groupIDs: [ID!] - templateIDs: [ID!] - integrationIDs: [ID!] - settingID: ID - documentdatumIDs: [ID!] - entitlementIDs: [ID!] - organizationEntitlementIDs: [ID!] - personalAccessTokenIDs: [ID!] - apiTokenIDs: [ID!] - oauthproviderIDs: [ID!] - userIDs: [ID!] - inviteIDs: [ID!] - subscriberIDs: [ID!] - webhookIDs: [ID!] - eventIDs: [ID!] - secretIDs: [ID!] - featureIDs: [ID!] - fileIDs: [ID!] - entitlementplanIDs: [ID!] - entityIDs: [ID!] - entitytypeIDs: [ID!] - contactIDs: [ID!] - noteIDs: [ID!] - createOrgSettings: CreateOrganizationSettingInput + cursor: Cursor! } -""" -CreateOrganizationSettingInput is used for create OrganizationSetting object. -Input was generated by ent. -""" -input CreateOrganizationSettingInput { +type ControlHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ControlHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] """ - domains associated with the organization + the name of the control """ - domains: [String!] + name: String! """ - Name of the person to contact for billing + description of the control """ - billingContact: String + description: String """ - Email address of the person to contact for billing + status of the control """ - billingEmail: String + status: String """ - Phone number to contact for billing + type of the control """ - billingPhone: String + controlType: String """ - Address to send billing information to + version of the control """ - billingAddress: String + version: String """ - Usually government-issued tax ID or business ID such as ABN in Australia + control number or identifier """ - taxIdentifier: String + controlNumber: String """ - geographical location of the organization + family associated with the control """ - geoLocation: OrganizationSettingRegion - organizationID: ID - fileIDs: [ID!] -} -""" -CreatePersonalAccessTokenInput is used for create PersonalAccessToken object. -Input was generated by ent. -""" -input CreatePersonalAccessTokenInput { + family: String """ - tags associated with the object + class associated with the control """ - tags: [String!] + class: String """ - the name associated with the token + source of the control, e.g. framework, template, custom, etc. """ - name: String! + source: String """ - when the token expires + which control objectives are satisfied by the control """ - expiresAt: Time + satisfies: String """ - a description of the token's purpose + mapped frameworks """ - description: String - scopes: [String!] - lastUsedAt: Time - ownerID: ID! - organizationIDs: [ID!] - eventIDs: [ID!] + mappedFrameworks: String + """ + json data including details of the control + """ + details: Map } """ -CreateSubscriberInput is used for create Subscriber object. -Input was generated by ent. +A connection to a list of items. """ -input CreateSubscriberInput { +type ControlHistoryConnection { """ - tags associated with the object + A list of edges. """ - tags: [String!] + edges: [ControlHistoryEdge] """ - email address of the subscriber + Information to aid in pagination. """ - email: String! + pageInfo: PageInfo! """ - phone number of the subscriber + Identifies the total count of items in the connection. """ - phoneNumber: String - ownerID: ID - eventIDs: [ID!] + totalCount: Int! } """ -CreateTFASettingInput is used for create TFASetting object. -Input was generated by ent. +An edge in a connection. """ -input CreateTFASettingInput { +type ControlHistoryEdge { """ - tags associated with the object + The item at the end of the edge. """ - tags: [String!] + node: ControlHistory """ - specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + A cursor for use in pagination. """ - totpAllowed: Boolean - ownerID: ID + cursor: Cursor! } """ -CreateTemplateInput is used for create Template object. -Input was generated by ent. +ControlHistoryOpType is enum for the field operation """ -input CreateTemplateInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the template - """ - name: String! - """ - the type of the template, either a provided template or an implementation (document) - """ - templateType: TemplateDocumentType - """ - the description of the template - """ - description: String - """ - the jsonschema object of the template - """ - jsonconfig: JSON! - """ - the uischema for the template to render in the UI - """ - uischema: JSON - ownerID: ID - documentIDs: [ID!] - fileIDs: [ID!] +enum ControlHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE } """ -CreateUserInput is used for create User object. +ControlHistoryWhereInput is used for filtering ControlHistory objects. Input was generated by ent. """ -input CreateUserInput { - """ - tags associated with the object - """ - tags: [String!] - email: String! - firstName: String - lastName: String - """ - The user's displayed 'friendly' name +input ControlHistoryWhereInput { + not: ControlHistoryWhereInput + and: [ControlHistoryWhereInput!] + or: [ControlHistoryWhereInput!] """ - displayName: String! + id field predicates """ - URL of the user's remote avatar + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - avatarRemoteURL: String + history_time field predicates """ - The user's local avatar file + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time """ - avatarLocalFile: String + ref field predicates """ - The time the user's (local) avatar was last updated + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String """ - avatarUpdatedAt: Time + operation field predicates """ - the time the user was last seen + operation: ControlHistoryOpType + operationNEQ: ControlHistoryOpType + operationIn: [ControlHistoryOpType!] + operationNotIn: [ControlHistoryOpType!] """ - lastSeen: Time + created_at field predicates """ - user password hash + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - password: String + updated_at field predicates """ - the Subject of the user JWT - """ - sub: String - """ - auth provider used to register the account - """ - authProvider: UserAuthProvider + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - the user's role + created_by field predicates """ - role: UserRole - personalAccessTokenIDs: [ID!] - tfaSettingIDs: [ID!] - settingID: ID! - emailVerificationTokenIDs: [ID!] - passwordResetTokenIDs: [ID!] - groupIDs: [ID!] - organizationIDs: [ID!] - webauthnIDs: [ID!] - fileIDs: [ID!] - fileID: ID - eventIDs: [ID!] -} -""" -CreateUserSettingInput is used for create UserSetting object. -Input was generated by ent. -""" -input CreateUserSettingInput { + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - tags associated with the object + updated_by field predicates """ - tags: [String!] + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - user account is locked if unconfirmed or explicitly locked + deleted_at field predicates """ - locked: Boolean + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - The time notifications regarding the user were silenced + deleted_by field predicates """ - silencedAt: Time + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - The time the user was suspended + name field predicates """ - suspendedAt: Time + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - status of the user account + description field predicates """ - status: UserSettingUserStatus + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - whether the user has confirmed their email address + status field predicates """ - emailConfirmed: Boolean + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - specifies a user may complete authentication by verifying a WebAuthn capable device + control_type field predicates + """ + controlType: String + controlTypeNEQ: String + controlTypeIn: [String!] + controlTypeNotIn: [String!] + controlTypeGT: String + controlTypeGTE: String + controlTypeLT: String + controlTypeLTE: String + controlTypeContains: String + controlTypeHasPrefix: String + controlTypeHasSuffix: String + controlTypeIsNil: Boolean + controlTypeNotNil: Boolean + controlTypeEqualFold: String + controlTypeContainsFold: String """ - isWebauthnAllowed: Boolean + version field predicates """ - whether the user has two factor authentication enabled + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - isTfaEnabled: Boolean - userID: ID - defaultOrgID: ID - fileIDs: [ID!] -} -""" -CreateWebhookInput is used for create Webhook object. -Input was generated by ent. -""" -input CreateWebhookInput { + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String +} +type ControlObjective implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] """ - the name of the webhook + the name of the control objective """ name: String! """ - a description of the webhook + description of the control objective """ description: String """ - the url to send the webhook to + status of the control objective """ - destinationURL: String! + status: String """ - indicates if the webhook is active and enabled + type of the control objective """ - enabled: Boolean + controlObjectiveType: String """ - the number of failures + version of the control objective """ - failures: Int + version: String """ - the last error message + number of the control objective """ - lastError: String + controlNumber: String """ - the last response + family of the control objective """ - lastResponse: String - ownerID: ID - eventIDs: [ID!] - integrationIDs: [ID!] -} -""" -Define a Relay Cursor type: -https://relay.dev/graphql/connections.htm#sec-Cursor -""" -scalar Cursor -type DocumentData implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String + family: String """ - tags associated with the object + class associated with the control objective """ - tags: [String!] - deletedAt: Time - deletedBy: String + class: String """ - the organization id that owns the object + source of the control objective, e.g. framework, template, user-defined, etc. """ - ownerID: ID + source: String """ - the template id of the document + mapped frameworks """ - templateID: ID! + mappedFrameworks: String """ - the json data of the document + json data including details of the control objective """ - data: JSON! - owner: Organization - template: Template! - entity: [Entity!] - files: [File!] + details: Map + policy: [InternalPolicy!] + controls: [Control!] + procedures: [Procedure!] + risks: [Risk!] + subcontrols: [Subcontrol!] + standard: [Standard!] + narratives: [Narrative!] } """ -Return response for createBulkDocumentData mutation +Return response for createBulkControlObjective mutation """ -type DocumentDataBulkCreatePayload { +type ControlObjectiveBulkCreatePayload { """ - Created documentData + Created controlObjectives """ - documentData: [DocumentData!] + controlObjectives: [ControlObjective!] } """ A connection to a list of items. """ -type DocumentDataConnection { +type ControlObjectiveConnection { """ A list of edges. """ - edges: [DocumentDataEdge] + edges: [ControlObjectiveEdge] """ Information to aid in pagination. """ @@ -2093,72 +2443,104 @@ type DocumentDataConnection { totalCount: Int! } """ -Return response for createDocumentData mutation +Return response for createControlObjective mutation """ -type DocumentDataCreatePayload { +type ControlObjectiveCreatePayload { """ - Created documentData + Created controlObjective """ - documentData: DocumentData! + controlObjective: ControlObjective! } """ -Return response for deleteDocumentData mutation +Return response for deleteControlObjective mutation """ -type DocumentDataDeletePayload { +type ControlObjectiveDeletePayload { """ - Deleted documentData ID + Deleted controlObjective ID """ deletedID: ID! } """ An edge in a connection. """ -type DocumentDataEdge { +type ControlObjectiveEdge { """ The item at the end of the edge. """ - node: DocumentData + node: ControlObjective """ A cursor for use in pagination. """ cursor: Cursor! } -type DocumentDataHistory implements Node { +type ControlObjectiveHistory implements Node { id: ID! historyTime: Time! ref: String - operation: DocumentDataHistoryOpType! + operation: ControlObjectiveHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] - deletedAt: Time - deletedBy: String """ - the organization id that owns the object + the name of the control objective """ - ownerID: String + name: String! """ - the template id of the document + description of the control objective """ - templateID: String! + description: String """ - the json data of the document + status of the control objective """ - data: JSON! + status: String + """ + type of the control objective + """ + controlObjectiveType: String + """ + version of the control objective + """ + version: String + """ + number of the control objective + """ + controlNumber: String + """ + family of the control objective + """ + family: String + """ + class associated with the control objective + """ + class: String + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control objective + """ + details: Map } """ A connection to a list of items. """ -type DocumentDataHistoryConnection { +type ControlObjectiveHistoryConnection { """ A list of edges. """ - edges: [DocumentDataHistoryEdge] + edges: [ControlObjectiveHistoryEdge] """ Information to aid in pagination. """ @@ -2171,32 +2553,32 @@ type DocumentDataHistoryConnection { """ An edge in a connection. """ -type DocumentDataHistoryEdge { +type ControlObjectiveHistoryEdge { """ The item at the end of the edge. """ - node: DocumentDataHistory + node: ControlObjectiveHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -DocumentDataHistoryOpType is enum for the field operation +ControlObjectiveHistoryOpType is enum for the field operation """ -enum DocumentDataHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum ControlObjectiveHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -DocumentDataHistoryWhereInput is used for filtering DocumentDataHistory objects. +ControlObjectiveHistoryWhereInput is used for filtering ControlObjectiveHistory objects. Input was generated by ent. """ -input DocumentDataHistoryWhereInput { - not: DocumentDataHistoryWhereInput - and: [DocumentDataHistoryWhereInput!] - or: [DocumentDataHistoryWhereInput!] +input ControlObjectiveHistoryWhereInput { + not: ControlObjectiveHistoryWhereInput + and: [ControlObjectiveHistoryWhereInput!] + or: [ControlObjectiveHistoryWhereInput!] """ id field predicates """ @@ -2242,10 +2624,10 @@ input DocumentDataHistoryWhereInput { """ operation field predicates """ - operation: DocumentDataHistoryOpType - operationNEQ: DocumentDataHistoryOpType - operationIn: [DocumentDataHistoryOpType!] - operationNotIn: [DocumentDataHistoryOpType!] + operation: ControlObjectiveHistoryOpType + operationNEQ: ControlObjectiveHistoryOpType + operationIn: [ControlObjectiveHistoryOpType!] + operationNotIn: [ControlObjectiveHistoryOpType!] """ created_at field predicates """ @@ -2340,60 +2722,204 @@ input DocumentDataHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + name field predicates """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - template_id field predicates + description field predicates """ - templateID: String - templateIDNEQ: String - templateIDIn: [String!] - templateIDNotIn: [String!] - templateIDGT: String - templateIDGTE: String - templateIDLT: String - templateIDLTE: String - templateIDContains: String - templateIDHasPrefix: String - templateIDHasSuffix: String - templateIDEqualFold: String - templateIDContainsFold: String -} -type DocumentDataSearchResult { - documentData: [DocumentData!] -} -""" -Return response for updateDocumentData mutation -""" -type DocumentDataUpdatePayload { + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - Updated documentData + status field predicates """ - documentData: DocumentData! -} -""" -DocumentDataWhereInput is used for filtering DocumentData objects. + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + control_objective_type field predicates + """ + controlObjectiveType: String + controlObjectiveTypeNEQ: String + controlObjectiveTypeIn: [String!] + controlObjectiveTypeNotIn: [String!] + controlObjectiveTypeGT: String + controlObjectiveTypeGTE: String + controlObjectiveTypeLT: String + controlObjectiveTypeLTE: String + controlObjectiveTypeContains: String + controlObjectiveTypeHasPrefix: String + controlObjectiveTypeHasSuffix: String + controlObjectiveTypeIsNil: Boolean + controlObjectiveTypeNotNil: Boolean + controlObjectiveTypeEqualFold: String + controlObjectiveTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String +} +type ControlObjectiveSearchResult { + controlObjectives: [ControlObjective!] +} +""" +Return response for updateControlObjective mutation +""" +type ControlObjectiveUpdatePayload { + """ + Updated controlObjective + """ + controlObjective: ControlObjective! +} +""" +ControlObjectiveWhereInput is used for filtering ControlObjective objects. Input was generated by ent. """ -input DocumentDataWhereInput { - not: DocumentDataWhereInput - and: [DocumentDataWhereInput!] - or: [DocumentDataWhereInput!] +input ControlObjectiveWhereInput { + not: ControlObjectiveWhereInput + and: [ControlObjectiveWhereInput!] + or: [ControlObjectiveWhereInput!] """ id field predicates """ @@ -2501,260 +3027,239 @@ input DocumentDataWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + name field predicates """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - template_id field predicates + description field predicates """ - templateID: ID - templateIDNEQ: ID - templateIDIn: [ID!] - templateIDNotIn: [ID!] - templateIDGT: ID - templateIDGTE: ID - templateIDLT: ID - templateIDLTE: ID - templateIDContains: ID - templateIDHasPrefix: ID - templateIDHasSuffix: ID - templateIDEqualFold: ID - templateIDContainsFold: ID + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - owner edge predicates + status field predicates """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - template edge predicates + control_objective_type field predicates + """ + controlObjectiveType: String + controlObjectiveTypeNEQ: String + controlObjectiveTypeIn: [String!] + controlObjectiveTypeNotIn: [String!] + controlObjectiveTypeGT: String + controlObjectiveTypeGTE: String + controlObjectiveTypeLT: String + controlObjectiveTypeLTE: String + controlObjectiveTypeContains: String + controlObjectiveTypeHasPrefix: String + controlObjectiveTypeHasSuffix: String + controlObjectiveTypeIsNil: Boolean + controlObjectiveTypeNotNil: Boolean + controlObjectiveTypeEqualFold: String + controlObjectiveTypeContainsFold: String """ - hasTemplate: Boolean - hasTemplateWith: [TemplateWhereInput!] + version field predicates """ - entity edge predicates + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - hasEntity: Boolean - hasEntityWith: [EntityWhereInput!] + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + policy edge predicates + """ + hasPolicy: Boolean + hasPolicyWith: [InternalPolicyWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + standard edge predicates """ - files edge predicates + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] +} +type ControlSearchResult { + controls: [Control!] +} +""" +Return response for updateControl mutation +""" +type ControlUpdatePayload { """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] -} -type Entitlement implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: ID - """ - the plan to which the entitlement belongs - """ - planID: ID! - """ - the organization to which the entitlement belongs - """ - organizationID: ID! - """ - used to store references to external systems, e.g. Stripe - """ - externalCustomerID: String - """ - used to store references to external systems, e.g. Stripe - """ - externalSubscriptionID: String - """ - whether or not the customers entitlement expires - expires_at will show the time - """ - expires: Boolean! - """ - the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month - """ - expiresAt: Time - """ - whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at - """ - cancelled: Boolean! - owner: Organization - plan: EntitlementPlan! - organization: Organization! - events: [Event!] -} -""" -Return response for createBulkEntitlement mutation -""" -type EntitlementBulkCreatePayload { - """ - Created entitlements - """ - entitlements: [Entitlement!] -} -""" -A connection to a list of items. -""" -type EntitlementConnection { - """ - A list of edges. - """ - edges: [EntitlementEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -Return response for createEntitlement mutation -""" -type EntitlementCreatePayload { - """ - Created entitlement - """ - entitlement: Entitlement! -} -""" -Return response for deleteEntitlement mutation -""" -type EntitlementDeletePayload { - """ - Deleted entitlement ID - """ - deletedID: ID! -} -""" -An edge in a connection. -""" -type EntitlementEdge { - """ - The item at the end of the edge. - """ - node: Entitlement - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type EntitlementHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntitlementHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: String - """ - the plan to which the entitlement belongs - """ - planID: String! - """ - the organization to which the entitlement belongs - """ - organizationID: String! - """ - used to store references to external systems, e.g. Stripe - """ - externalCustomerID: String - """ - used to store references to external systems, e.g. Stripe - """ - externalSubscriptionID: String - """ - whether or not the customers entitlement expires - expires_at will show the time - """ - expires: Boolean! - """ - the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month - """ - expiresAt: Time - """ - whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at - """ - cancelled: Boolean! -} -""" -A connection to a list of items. -""" -type EntitlementHistoryConnection { - """ - A list of edges. - """ - edges: [EntitlementHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntitlementHistoryEdge { - """ - The item at the end of the edge. - """ - node: EntitlementHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -EntitlementHistoryOpType is enum for the field operation -""" -enum EntitlementHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE + Updated control + """ + control: Control! } """ -EntitlementHistoryWhereInput is used for filtering EntitlementHistory objects. +ControlWhereInput is used for filtering Control objects. Input was generated by ent. """ -input EntitlementHistoryWhereInput { - not: EntitlementHistoryWhereInput - and: [EntitlementHistoryWhereInput!] - or: [EntitlementHistoryWhereInput!] +input ControlWhereInput { + not: ControlWhereInput + and: [ControlWhereInput!] + or: [ControlWhereInput!] """ id field predicates """ @@ -2769,42 +3274,6 @@ input EntitlementHistoryWhereInput { idEqualFold: ID idContainsFold: ID """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: EntitlementHistoryOpType - operationNEQ: EntitlementHistoryOpType - operationIn: [EntitlementHistoryOpType!] - operationNotIn: [EntitlementHistoryOpType!] - """ created_at field predicates """ createdAt: Time @@ -2898,2354 +3367,1821 @@ input EntitlementHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - plan_id field predicates + name field predicates """ - planID: String - planIDNEQ: String - planIDIn: [String!] - planIDNotIn: [String!] - planIDGT: String - planIDGTE: String - planIDLT: String - planIDLTE: String - planIDContains: String - planIDHasPrefix: String - planIDHasSuffix: String - planIDEqualFold: String - planIDContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - organization_id field predicates + description field predicates """ - organizationID: String - organizationIDNEQ: String - organizationIDIn: [String!] - organizationIDNotIn: [String!] - organizationIDGT: String - organizationIDGTE: String - organizationIDLT: String - organizationIDLTE: String - organizationIDContains: String - organizationIDHasPrefix: String - organizationIDHasSuffix: String - organizationIDEqualFold: String - organizationIDContainsFold: String + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - external_customer_id field predicates + status field predicates """ - externalCustomerID: String - externalCustomerIDNEQ: String - externalCustomerIDIn: [String!] - externalCustomerIDNotIn: [String!] - externalCustomerIDGT: String - externalCustomerIDGTE: String - externalCustomerIDLT: String - externalCustomerIDLTE: String - externalCustomerIDContains: String - externalCustomerIDHasPrefix: String - externalCustomerIDHasSuffix: String - externalCustomerIDIsNil: Boolean - externalCustomerIDNotNil: Boolean - externalCustomerIDEqualFold: String - externalCustomerIDContainsFold: String + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - external_subscription_id field predicates + control_type field predicates + """ + controlType: String + controlTypeNEQ: String + controlTypeIn: [String!] + controlTypeNotIn: [String!] + controlTypeGT: String + controlTypeGTE: String + controlTypeLT: String + controlTypeLTE: String + controlTypeContains: String + controlTypeHasPrefix: String + controlTypeHasSuffix: String + controlTypeIsNil: Boolean + controlTypeNotNil: Boolean + controlTypeEqualFold: String + controlTypeContainsFold: String """ - externalSubscriptionID: String - externalSubscriptionIDNEQ: String - externalSubscriptionIDIn: [String!] - externalSubscriptionIDNotIn: [String!] - externalSubscriptionIDGT: String - externalSubscriptionIDGTE: String - externalSubscriptionIDLT: String - externalSubscriptionIDLTE: String - externalSubscriptionIDContains: String - externalSubscriptionIDHasPrefix: String - externalSubscriptionIDHasSuffix: String - externalSubscriptionIDIsNil: Boolean - externalSubscriptionIDNotNil: Boolean - externalSubscriptionIDEqualFold: String - externalSubscriptionIDContainsFold: String + version field predicates """ - expires field predicates + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - expires: Boolean - expiresNEQ: Boolean + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + controlobjectives edge predicates + """ + hasControlobjectives: Boolean + hasControlobjectivesWith: [ControlObjectiveWhereInput!] + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + actionplans edge predicates + """ + hasActionplans: Boolean + hasActionplansWith: [ActionPlanWhereInput!] +} +""" +CreateAPITokenInput is used for create APIToken object. +Input was generated by ent. +""" +input CreateAPITokenInput { """ - expires_at field predicates + tags associated with the object + """ + tags: [String!] + """ + the name associated with the token + """ + name: String! + """ + when the token expires """ expiresAt: Time - expiresAtNEQ: Time - expiresAtIn: [Time!] - expiresAtNotIn: [Time!] - expiresAtGT: Time - expiresAtGTE: Time - expiresAtLT: Time - expiresAtLTE: Time - expiresAtIsNil: Boolean - expiresAtNotNil: Boolean """ - cancelled field predicates + a description of the token's purpose """ - cancelled: Boolean - cancelledNEQ: Boolean + description: String + scopes: [String!] + lastUsedAt: Time + ownerID: ID } -type EntitlementPlan implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String +""" +CreateActionPlanInput is used for create ActionPlan object. +Input was generated by ent. +""" +input CreateActionPlanInput { """ tags associated with the object """ tags: [String!] """ - the organization id that owns the object + the name of the action plan """ - ownerID: ID + name: String! """ - the displayed 'friendly' name of the plan + description of the action plan """ - displayName: String + description: String """ - the unique name of the plan + status of the action plan """ - name: String! + status: String """ - a description of the plan + due date of the action plan """ - description: String + dueDate: Time """ - the version of the plan + priority of the action plan """ - version: String! + priority: String """ - metadata for the plan + source of the action plan """ - metadata: Map - owner: Organization - entitlements: [Entitlement!] - baseFeatures: [Feature!] - events: [Event!] - features: [EntitlementPlanFeature!] -} -""" -Return response for createBulkEntitlementPlan mutation -""" -type EntitlementPlanBulkCreatePayload { + source: String """ - Created entitlementPlans + json data including details of the action plan """ - entitlementPlans: [EntitlementPlan!] + details: Map + standardIDs: [ID!] + riskIDs: [ID!] + controlIDs: [ID!] + userIDs: [ID!] } """ -A connection to a list of items. +CreateContactInput is used for create Contact object. +Input was generated by ent. """ -type EntitlementPlanConnection { +input CreateContactInput { """ - A list of edges. + tags associated with the object """ - edges: [EntitlementPlanEdge] + tags: [String!] """ - Information to aid in pagination. + the full name of the contact """ - pageInfo: PageInfo! + fullName: String! """ - Identifies the total count of items in the connection. + the title of the contact """ - totalCount: Int! -} -""" -Return response for createEntitlementPlan mutation -""" -type EntitlementPlanCreatePayload { + title: String """ - Created entitlementPlan + the company of the contact """ - entitlementPlan: EntitlementPlan! -} -""" -Return response for deleteEntitlementPlan mutation -""" -type EntitlementPlanDeletePayload { + company: String """ - Deleted entitlementPlan ID + the email of the contact """ - deletedID: ID! -} -""" -An edge in a connection. -""" -type EntitlementPlanEdge { + email: String """ - The item at the end of the edge. + the phone number of the contact """ - node: EntitlementPlan + phoneNumber: String """ - A cursor for use in pagination. + the address of the contact """ - cursor: Cursor! + address: String + """ + status of the contact + """ + status: ContactUserStatus + ownerID: ID + entityIDs: [ID!] + fileIDs: [ID!] } -type EntitlementPlanFeature implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String +""" +CreateControlInput is used for create Control object. +Input was generated by ent. +""" +input CreateControlInput { """ tags associated with the object """ tags: [String!] """ - the organization id that owns the object + the name of the control """ - ownerID: ID + name: String! """ - metadata for the entitlement plan feature such as usage limits + description of the control """ - metadata: Map - planID: ID! - featureID: ID! - owner: Organization - plan: EntitlementPlan! - feature: Feature! - events: [Event!] -} -""" -Return response for createBulkEntitlementPlanFeature mutation -""" -type EntitlementPlanFeatureBulkCreatePayload { + description: String """ - Created entitlementPlanFeatures + status of the control """ - entitlementPlanFeatures: [EntitlementPlanFeature!] -} -""" -A connection to a list of items. -""" -type EntitlementPlanFeatureConnection { + status: String """ - A list of edges. + type of the control """ - edges: [EntitlementPlanFeatureEdge] + controlType: String """ - Information to aid in pagination. + version of the control """ - pageInfo: PageInfo! + version: String """ - Identifies the total count of items in the connection. + control number or identifier """ - totalCount: Int! + controlNumber: String + """ + family associated with the control + """ + family: String + """ + class associated with the control + """ + class: String + """ + source of the control, e.g. framework, template, custom, etc. + """ + source: String + """ + which control objectives are satisfied by the control + """ + satisfies: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control + """ + details: Map + procedureIDs: [ID!] + subcontrolIDs: [ID!] + controlobjectiveIDs: [ID!] + standardIDs: [ID!] + narrativeIDs: [ID!] + riskIDs: [ID!] + actionplanIDs: [ID!] } """ -Return response for createEntitlementPlanFeature mutation +CreateControlObjectiveInput is used for create ControlObjective object. +Input was generated by ent. """ -type EntitlementPlanFeatureCreatePayload { +input CreateControlObjectiveInput { """ - Created entitlementPlanFeature + tags associated with the object """ - entitlementPlanFeature: EntitlementPlanFeature! + tags: [String!] + """ + the name of the control objective + """ + name: String! + """ + description of the control objective + """ + description: String + """ + status of the control objective + """ + status: String + """ + type of the control objective + """ + controlObjectiveType: String + """ + version of the control objective + """ + version: String + """ + number of the control objective + """ + controlNumber: String + """ + family of the control objective + """ + family: String + """ + class associated with the control objective + """ + class: String + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control objective + """ + details: Map + policyIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + riskIDs: [ID!] + subcontrolIDs: [ID!] + standardIDs: [ID!] + narrativeIDs: [ID!] } """ -Return response for deleteEntitlementPlanFeature mutation +CreateDocumentDataInput is used for create DocumentData object. +Input was generated by ent. """ -type EntitlementPlanFeatureDeletePayload { +input CreateDocumentDataInput { """ - Deleted entitlementPlanFeature ID + tags associated with the object """ - deletedID: ID! + tags: [String!] + """ + the json data of the document + """ + data: JSON! + ownerID: ID + templateID: ID! + entityIDs: [ID!] + fileIDs: [ID!] } """ -An edge in a connection. +CreateEntitlementInput is used for create Entitlement object. +Input was generated by ent. """ -type EntitlementPlanFeatureEdge { +input CreateEntitlementInput { """ - The item at the end of the edge. + tags associated with the object """ - node: EntitlementPlanFeature + tags: [String!] """ - A cursor for use in pagination. + used to store references to external systems, e.g. Stripe """ - cursor: Cursor! + externalCustomerID: String + """ + used to store references to external systems, e.g. Stripe + """ + externalSubscriptionID: String + """ + the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + """ + expiresAt: Time + """ + whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + """ + cancelled: Boolean + ownerID: ID + planID: ID! + organizationID: ID! + eventIDs: [ID!] } -type EntitlementPlanFeatureHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntitlementPlanFeatureHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String +""" +CreateEntitlementPlanFeatureInput is used for create EntitlementPlanFeature object. +Input was generated by ent. +""" +input CreateEntitlementPlanFeatureInput { """ tags associated with the object """ tags: [String!] """ - the organization id that owns the object - """ - ownerID: String - """ metadata for the entitlement plan feature such as usage limits """ metadata: Map - planID: String! - featureID: String! + ownerID: ID + planID: ID! + featureID: ID! + eventIDs: [ID!] } """ -A connection to a list of items. +CreateEntitlementPlanInput is used for create EntitlementPlan object. +Input was generated by ent. """ -type EntitlementPlanFeatureHistoryConnection { +input CreateEntitlementPlanInput { """ - A list of edges. + tags associated with the object """ - edges: [EntitlementPlanFeatureHistoryEdge] + tags: [String!] """ - Information to aid in pagination. + the displayed 'friendly' name of the plan """ - pageInfo: PageInfo! + displayName: String """ - Identifies the total count of items in the connection. + the unique name of the plan """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntitlementPlanFeatureHistoryEdge { + name: String! """ - The item at the end of the edge. + a description of the plan """ - node: EntitlementPlanFeatureHistory + description: String """ - A cursor for use in pagination. + the version of the plan """ - cursor: Cursor! -} -""" -EntitlementPlanFeatureHistoryOpType is enum for the field operation -""" -enum EntitlementPlanFeatureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE + version: String! + """ + metadata for the plan + """ + metadata: Map + ownerID: ID + entitlementIDs: [ID!] + baseFeatureIDs: [ID!] + eventIDs: [ID!] } """ -EntitlementPlanFeatureHistoryWhereInput is used for filtering EntitlementPlanFeatureHistory objects. +CreateEntityInput is used for create Entity object. Input was generated by ent. """ -input EntitlementPlanFeatureHistoryWhereInput { - not: EntitlementPlanFeatureHistoryWhereInput - and: [EntitlementPlanFeatureHistoryWhereInput!] - or: [EntitlementPlanFeatureHistoryWhereInput!] +input CreateEntityInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - history_time field predicates + the name of the entity """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time + name: String """ - ref field predicates + The entity's displayed 'friendly' name """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String + displayName: String """ - operation field predicates + An optional description of the entity """ - operation: EntitlementPlanFeatureHistoryOpType - operationNEQ: EntitlementPlanFeatureHistoryOpType - operationIn: [EntitlementPlanFeatureHistoryOpType!] - operationNotIn: [EntitlementPlanFeatureHistoryOpType!] + description: String """ - created_at field predicates + domains associated with the entity """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + domains: [String!] """ - updated_at field predicates + status of the entity """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + status: String + ownerID: ID + contactIDs: [ID!] + documentIDs: [ID!] + noteIDs: [ID!] + fileIDs: [ID!] + entityTypeID: ID + note: CreateNoteInput +} +""" +CreateEntityTypeInput is used for create EntityType object. +Input was generated by ent. +""" +input CreateEntityTypeInput { """ - created_by field predicates + tags associated with the object """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + tags: [String!] """ - updated_by field predicates + the name of the entity """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + name: String! + ownerID: ID + entityIDs: [ID!] +} +""" +CreateEventInput is used for create Event object. +Input was generated by ent. +""" +input CreateEventInput { """ - deleted_at field predicates + tags associated with the object """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map + userIDs: [ID!] + groupIDs: [ID!] + integrationIDs: [ID!] + organizationIDs: [ID!] + inviteIDs: [ID!] + featureIDs: [ID!] + entitlementplanIDs: [ID!] + personalAccessTokenIDs: [ID!] + oauth2tokenIDs: [ID!] + hushIDs: [ID!] + entitlementIDs: [ID!] + webhookIDs: [ID!] + subscriberIDs: [ID!] + fileIDs: [ID!] +} +""" +CreateFeatureInput is used for create Feature object. +Input was generated by ent. +""" +input CreateFeatureInput { """ - deleted_by field predicates + tags associated with the object """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + tags: [String!] """ - owner_id field predicates + the unique name of the feature """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + name: String! """ - plan_id field predicates + the displayed 'friendly' name of the feature """ - planID: String - planIDNEQ: String - planIDIn: [String!] - planIDNotIn: [String!] - planIDGT: String - planIDGTE: String - planIDLT: String - planIDLTE: String - planIDContains: String - planIDHasPrefix: String - planIDHasSuffix: String - planIDEqualFold: String - planIDContainsFold: String + displayName: String """ - feature_id field predicates + enabled features are available for use """ - featureID: String - featureIDNEQ: String - featureIDIn: [String!] - featureIDNotIn: [String!] - featureIDGT: String - featureIDGTE: String - featureIDLT: String - featureIDLTE: String - featureIDContains: String - featureIDHasPrefix: String - featureIDHasSuffix: String - featureIDEqualFold: String - featureIDContainsFold: String -} -type EntitlementPlanFeatureSearchResult { - entitlementPlanFeatures: [EntitlementPlanFeature!] -} -""" -Return response for updateEntitlementPlanFeature mutation -""" -type EntitlementPlanFeatureUpdatePayload { + enabled: Boolean """ - Updated entitlementPlanFeature + a description of the feature """ - entitlementPlanFeature: EntitlementPlanFeature! + description: String + """ + metadata for the feature + """ + metadata: Map + ownerID: ID + planIDs: [ID!] + eventIDs: [ID!] } """ -EntitlementPlanFeatureWhereInput is used for filtering EntitlementPlanFeature objects. +CreateFileInput is used for create File object. Input was generated by ent. """ -input EntitlementPlanFeatureWhereInput { - not: EntitlementPlanFeatureWhereInput - and: [EntitlementPlanFeatureWhereInput!] - or: [EntitlementPlanFeatureWhereInput!] +input CreateFileInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - created_at field predicates + the name of the file provided in the payload key without the extension """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + providedFileName: String! """ - updated_at field predicates + the extension of the file provided """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + providedFileExtension: String! """ - created_by field predicates + the computed size of the file in the original http request """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + providedFileSize: Int + persistedFileSize: Int """ - deleted_at field predicates + the mime type detected by the system """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + detectedMimeType: String """ - deleted_by field predicates + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String -} -type EntitlementPlanHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntitlementPlanHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String + md5Hash: String """ - tags associated with the object + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types """ - tags: [String!] + detectedContentType: String! """ - the organization id that owns the object + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key """ - ownerID: String + storeKey: String """ - the displayed 'friendly' name of the plan + the category type of the file, if any (e.g. evidence, invoice, etc.) """ - displayName: String + categoryType: String """ - the unique name of the plan + the full URI of the file """ - name: String! + uri: String """ - a description of the plan + the storage scheme of the file, e.g. file://, s3://, etc. """ - description: String + storageScheme: String """ - the version of the plan + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping """ - version: String! + storageVolume: String """ - metadata for the plan + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty """ - metadata: Map + storagePath: String + userIDs: [ID!] + organizationIDs: [ID!] + groupIDs: [ID!] + contactIDs: [ID!] + entityIDs: [ID!] + usersettingIDs: [ID!] + organizationsettingIDs: [ID!] + templateIDs: [ID!] + documentdatumIDs: [ID!] + eventIDs: [ID!] } """ -A connection to a list of items. +CreateGroupInput is used for create Group object. +Input was generated by ent. """ -type EntitlementPlanHistoryConnection { +input CreateGroupInput { """ - A list of edges. + tags associated with the object """ - edges: [EntitlementPlanHistoryEdge] + tags: [String!] """ - Information to aid in pagination. + the name of the group - must be unique within the organization """ - pageInfo: PageInfo! + name: String! """ - Identifies the total count of items in the connection. + the groups description """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntitlementPlanHistoryEdge { + description: String """ - The item at the end of the edge. + the URL to an auto generated gravatar image for the group """ - node: EntitlementPlanHistory + gravatarLogoURL: String """ - A cursor for use in pagination. + the URL to an image uploaded by the customer for the groups avatar image """ - cursor: Cursor! + logoURL: String + """ + The group's displayed 'friendly' name + """ + displayName: String + ownerID: ID + settingID: ID! + userIDs: [ID!] + eventIDs: [ID!] + integrationIDs: [ID!] + fileIDs: [ID!] + createGroupSettings: CreateGroupSettingInput } """ -EntitlementPlanHistoryOpType is enum for the field operation +CreateGroupMembershipInput is used for create GroupMembership object. +Input was generated by ent. """ -enum EntitlementPlanHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE +input CreateGroupMembershipInput { + role: GroupMembershipRole + groupID: ID! + userID: ID! + eventIDs: [ID!] } """ -EntitlementPlanHistoryWhereInput is used for filtering EntitlementPlanHistory objects. +CreateGroupSettingInput is used for create GroupSetting object. Input was generated by ent. """ -input EntitlementPlanHistoryWhereInput { - not: EntitlementPlanHistoryWhereInput - and: [EntitlementPlanHistoryWhereInput!] - or: [EntitlementPlanHistoryWhereInput!] +input CreateGroupSettingInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - history_time field predicates + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time + visibility: GroupSettingVisibility """ - ref field predicates + the policy governing ability to freely join a group, whether it requires an invitation, application, or either """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String + joinPolicy: GroupSettingJoinPolicy """ - operation field predicates + whether to sync group members to slack groups """ - operation: EntitlementPlanHistoryOpType - operationNEQ: EntitlementPlanHistoryOpType - operationIn: [EntitlementPlanHistoryOpType!] - operationNotIn: [EntitlementPlanHistoryOpType!] + syncToSlack: Boolean """ - created_at field predicates + whether to sync group members to github groups """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + syncToGithub: Boolean + groupID: ID +} +""" +CreateHushInput is used for create Hush object. +Input was generated by ent. +""" +input CreateHushInput { """ - updated_at field predicates + the logical name of the corresponding hush secret or it's general grouping """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + name: String! """ - created_by field predicates + a description of the hush value or purpose, such as github PAT """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + description: String """ - updated_by field predicates + the kind of secret, such as sshkey, certificate, api token, etc. """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + kind: String """ - deleted_at field predicates + the generic name of a secret associated with the organization """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + secretName: String """ - deleted_by field predicates + the secret value """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + secretValue: String + integrationIDs: [ID!] + organizationIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateIntegrationInput is used for create Integration object. +Input was generated by ent. +""" +input CreateIntegrationInput { """ - owner_id field predicates + tags associated with the object """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + tags: [String!] """ - display_name field predicates + the name of the integration - must be unique within the organization """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String + name: String! """ - name field predicates + a description of the integration """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + description: String + kind: String + ownerID: ID + secretIDs: [ID!] + oauth2tokenIDs: [ID!] + eventIDs: [ID!] + webhookIDs: [ID!] +} +""" +CreateInternalPolicyInput is used for create InternalPolicy object. +Input was generated by ent. +""" +input CreateInternalPolicyInput { """ - description field predicates + tags associated with the object """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String + tags: [String!] """ - version field predicates + the name of the policy + """ + name: String! + """ + description of the policy + """ + description: String! + """ + status of the policy + """ + status: String + """ + type of the policy + """ + policyType: String + """ + version of the policy """ version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionEqualFold: String - versionContainsFold: String -} -type EntitlementPlanSearchResult { - entitlementPlans: [EntitlementPlan!] + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the policy + """ + background: String + """ + json data for the policy document + """ + details: Map + controlobjectiveIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + narrativeIDs: [ID!] } """ -Return response for updateEntitlementPlan mutation +CreateInviteInput is used for create Invite object. +Input was generated by ent. """ -type EntitlementPlanUpdatePayload { +input CreateInviteInput { """ - Updated entitlementPlan + the expiration date of the invitation token which defaults to 14 days in the future from creation """ - entitlementPlan: EntitlementPlan! + expires: Time + """ + the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + """ + recipient: String! + """ + the status of the invitation + """ + status: InviteInviteStatus + role: InviteRole + """ + the number of attempts made to perform email send of the invitation, maximum of 5 + """ + sendAttempts: Int + """ + the user who initiated the invitation + """ + requestorID: String + ownerID: ID + eventIDs: [ID!] } """ -EntitlementPlanWhereInput is used for filtering EntitlementPlan objects. +CreateNarrativeInput is used for create Narrative object. Input was generated by ent. """ -input EntitlementPlanWhereInput { - not: EntitlementPlanWhereInput - and: [EntitlementPlanWhereInput!] - or: [EntitlementPlanWhereInput!] +input CreateNarrativeInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - created_at field predicates + the name of the narrative """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + name: String! """ - updated_at field predicates + the description of the narrative """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + description: String """ - created_by field predicates + which controls are satisfied by the narrative """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + satisfies: String """ - updated_by field predicates + json data for the narrative document """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + details: Map + policyIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + controlobjectiveIDs: [ID!] +} +""" +CreateNoteInput is used for create Note object. +Input was generated by ent. +""" +input CreateNoteInput { """ - deleted_at field predicates + tags associated with the object """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + tags: [String!] """ - deleted_by field predicates + the text of the note """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + text: String! + ownerID: ID + entityID: ID + subcontrolIDs: [ID!] +} +""" +CreateOauthProviderInput is used for create OauthProvider object. +Input was generated by ent. +""" +input CreateOauthProviderInput { """ - owner_id field predicates + tags associated with the object """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + tags: [String!] """ - display_name field predicates + the oauth provider's name """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String + name: String! """ - name field predicates + the client id for the oauth provider """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + clientID: String! """ - description field predicates + the client secret """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String + clientSecret: String! """ - version field predicates + the redirect url """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionEqualFold: String - versionContainsFold: String + redirectURL: String! """ - owner edge predicates + the scopes """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + scopes: String! """ - entitlements edge predicates + the auth url of the provider """ - hasEntitlements: Boolean - hasEntitlementsWith: [EntitlementWhereInput!] + authURL: String! """ - base_features edge predicates + the token url of the provider """ - hasBaseFeatures: Boolean - hasBaseFeaturesWith: [FeatureWhereInput!] + tokenURL: String! """ - events edge predicates + the auth style, 0: auto detect 1: third party log in 2: log in with username and password """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + authStyle: Uint! """ - features edge predicates + the URL to request user information by token """ - hasFeatures: Boolean - hasFeaturesWith: [EntitlementPlanFeatureWhereInput!] -} -type EntitlementSearchResult { - entitlements: [Entitlement!] + infoURL: String! + ownerID: ID } """ -Return response for updateEntitlement mutation +CreateOhAuthTooTokenInput is used for create OhAuthTooToken object. +Input was generated by ent. """ -type EntitlementUpdatePayload { +input CreateOhAuthTooTokenInput { """ - Updated entitlement + tags associated with the object """ - entitlement: Entitlement! + tags: [String!] + clientID: String! + scopes: [String!] + nonce: String! + claimsUserID: String! + claimsUsername: String! + claimsEmail: String! + claimsEmailVerified: Boolean! + claimsGroups: [String!] + claimsPreferredUsername: String! + connectorID: String! + connectorData: [String!] + lastUsed: Time + integrationIDs: [ID!] + eventIDs: [ID!] } """ -EntitlementWhereInput is used for filtering Entitlement objects. +CreateOrgMembershipInput is used for create OrgMembership object. Input was generated by ent. """ -input EntitlementWhereInput { - not: EntitlementWhereInput - and: [EntitlementWhereInput!] - or: [EntitlementWhereInput!] +input CreateOrgMembershipInput { + role: OrgMembershipRole + organizationID: ID! + userID: ID! + eventIDs: [ID!] +} +""" +CreateOrganizationInput is used for create Organization object. +Input was generated by ent. +""" +input CreateOrganizationInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - created_at field predicates + the name of the organization """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + name: String! """ - updated_at field predicates + The organization's displayed 'friendly' name """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + displayName: String """ - created_by field predicates + An optional description of the organization """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + description: String """ - updated_by field predicates + orgs directly associated with a user """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + personalOrg: Boolean """ - deleted_at field predicates + URL of the user's remote avatar """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + avatarRemoteURL: String """ - deleted_by field predicates + Whether the organization has a dedicated database """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + dedicatedDb: Boolean + parentID: ID + groupIDs: [ID!] + templateIDs: [ID!] + integrationIDs: [ID!] + settingID: ID + documentdatumIDs: [ID!] + entitlementIDs: [ID!] + organizationEntitlementIDs: [ID!] + personalAccessTokenIDs: [ID!] + apiTokenIDs: [ID!] + oauthproviderIDs: [ID!] + userIDs: [ID!] + inviteIDs: [ID!] + subscriberIDs: [ID!] + webhookIDs: [ID!] + eventIDs: [ID!] + secretIDs: [ID!] + featureIDs: [ID!] + fileIDs: [ID!] + entitlementplanIDs: [ID!] + entityIDs: [ID!] + entitytypeIDs: [ID!] + contactIDs: [ID!] + noteIDs: [ID!] + createOrgSettings: CreateOrganizationSettingInput +} +""" +CreateOrganizationSettingInput is used for create OrganizationSetting object. +Input was generated by ent. +""" +input CreateOrganizationSettingInput { """ - owner_id field predicates + tags associated with the object """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + tags: [String!] """ - plan_id field predicates + domains associated with the organization """ - planID: ID - planIDNEQ: ID - planIDIn: [ID!] - planIDNotIn: [ID!] - planIDGT: ID - planIDGTE: ID - planIDLT: ID - planIDLTE: ID - planIDContains: ID - planIDHasPrefix: ID - planIDHasSuffix: ID - planIDEqualFold: ID - planIDContainsFold: ID + domains: [String!] """ - organization_id field predicates + Name of the person to contact for billing """ - organizationID: ID - organizationIDNEQ: ID - organizationIDIn: [ID!] - organizationIDNotIn: [ID!] - organizationIDGT: ID - organizationIDGTE: ID - organizationIDLT: ID - organizationIDLTE: ID - organizationIDContains: ID - organizationIDHasPrefix: ID - organizationIDHasSuffix: ID - organizationIDEqualFold: ID - organizationIDContainsFold: ID + billingContact: String """ - external_customer_id field predicates + Email address of the person to contact for billing """ - externalCustomerID: String - externalCustomerIDNEQ: String - externalCustomerIDIn: [String!] - externalCustomerIDNotIn: [String!] - externalCustomerIDGT: String - externalCustomerIDGTE: String - externalCustomerIDLT: String - externalCustomerIDLTE: String - externalCustomerIDContains: String - externalCustomerIDHasPrefix: String - externalCustomerIDHasSuffix: String - externalCustomerIDIsNil: Boolean - externalCustomerIDNotNil: Boolean - externalCustomerIDEqualFold: String - externalCustomerIDContainsFold: String + billingEmail: String """ - external_subscription_id field predicates + Phone number to contact for billing """ - externalSubscriptionID: String - externalSubscriptionIDNEQ: String - externalSubscriptionIDIn: [String!] - externalSubscriptionIDNotIn: [String!] - externalSubscriptionIDGT: String - externalSubscriptionIDGTE: String - externalSubscriptionIDLT: String - externalSubscriptionIDLTE: String - externalSubscriptionIDContains: String - externalSubscriptionIDHasPrefix: String - externalSubscriptionIDHasSuffix: String - externalSubscriptionIDIsNil: Boolean - externalSubscriptionIDNotNil: Boolean - externalSubscriptionIDEqualFold: String - externalSubscriptionIDContainsFold: String + billingPhone: String """ - expires field predicates + Address to send billing information to """ - expires: Boolean - expiresNEQ: Boolean + billingAddress: String """ - expires_at field predicates + Usually government-issued tax ID or business ID such as ABN in Australia """ - expiresAt: Time - expiresAtNEQ: Time - expiresAtIn: [Time!] - expiresAtNotIn: [Time!] - expiresAtGT: Time - expiresAtGTE: Time - expiresAtLT: Time - expiresAtLTE: Time - expiresAtIsNil: Boolean - expiresAtNotNil: Boolean + taxIdentifier: String """ - cancelled field predicates + geographical location of the organization """ - cancelled: Boolean - cancelledNEQ: Boolean + geoLocation: OrganizationSettingRegion + organizationID: ID + fileIDs: [ID!] +} +""" +CreatePersonalAccessTokenInput is used for create PersonalAccessToken object. +Input was generated by ent. +""" +input CreatePersonalAccessTokenInput { """ - owner edge predicates + tags associated with the object """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + tags: [String!] """ - plan edge predicates + the name associated with the token """ - hasPlan: Boolean - hasPlanWith: [EntitlementPlanWhereInput!] + name: String! """ - organization edge predicates + when the token expires """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] + expiresAt: Time """ - events edge predicates + a description of the token's purpose """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + description: String + scopes: [String!] + lastUsedAt: Time + ownerID: ID! + organizationIDs: [ID!] + eventIDs: [ID!] } -type Entity implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String +""" +CreateProcedureInput is used for create Procedure object. +Input was generated by ent. +""" +input CreateProcedureInput { """ tags associated with the object """ tags: [String!] """ - the organization id that owns the object + the name of the procedure """ - ownerID: ID + name: String! """ - the name of the entity + description of the procedure """ - name: String + description: String """ - The entity's displayed 'friendly' name + status of the procedure """ - displayName: String + status: String """ - An optional description of the entity + type of the procedure """ - description: String + procedureType: String """ - domains associated with the entity + version of the procedure """ - domains: [String!] + version: String """ - The type of the entity + purpose and scope """ - entityTypeID: ID + purposeAndScope: String """ - status of the entity + background of the procedure """ - status: String - owner: Organization - contacts: [Contact!] - documents: [DocumentData!] - notes: [Note!] - files: [File!] - entityType: EntityType -} -""" -Return response for createBulkEntity mutation -""" -type EntityBulkCreatePayload { + background: String """ - Created entities + which controls are satisfied by the procedure """ - entities: [Entity!] + satisfies: String + """ + json data for the procedure document + """ + details: Map + controlIDs: [ID!] + internalpolicyIDs: [ID!] + narrativeIDs: [ID!] + riskIDs: [ID!] } """ -A connection to a list of items. +CreateRiskInput is used for create Risk object. +Input was generated by ent. """ -type EntityConnection { +input CreateRiskInput { """ - A list of edges. + tags associated with the object """ - edges: [EntityEdge] + tags: [String!] """ - Information to aid in pagination. + the name of the risk """ - pageInfo: PageInfo! + name: String! """ - Identifies the total count of items in the connection. + description of the risk """ - totalCount: Int! -} -""" -Return response for createEntity mutation -""" -type EntityCreatePayload { + description: String """ - Created entity + status of the risk - mitigated or not, inflight, etc. """ - entity: Entity! -} -""" -Return response for deleteEntity mutation -""" -type EntityDeletePayload { + status: String """ - Deleted entity ID + type of the risk, e.g. strategic, operational, financial, external, etc. """ - deletedID: ID! -} -""" -An edge in a connection. -""" -type EntityEdge { + riskType: String """ - The item at the end of the edge. + business costs associated with the risk """ - node: Entity + businessCosts: String """ - A cursor for use in pagination. + impact of the risk - high, medium, low """ - cursor: Cursor! + impact: RiskRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map + controlIDs: [ID!] + procedureIDs: [ID!] + actionplanIDs: [ID!] } -type EntityHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntityHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String +""" +CreateStandardInput is used for create Standard object. +Input was generated by ent. +""" +input CreateStandardInput { """ tags associated with the object """ tags: [String!] """ - the organization id that owns the object + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. """ - ownerID: String + name: String! """ - the name of the entity + description of the standard """ - name: String + description: String """ - The entity's displayed 'friendly' name + family of the standard, e.g. 800-53, 800-171, 27001, etc. """ - displayName: String + family: String """ - An optional description of the entity + status of the standard - active, deprecated, etc. """ - description: String + status: String """ - domains associated with the entity + type of the standard - security, privacy, etc. """ - domains: [String!] + standardType: String """ - The type of the entity + version of the standard """ - entityTypeID: String + version: String """ - status of the entity + purpose and scope """ - status: String -} -""" -A connection to a list of items. -""" -type EntityHistoryConnection { + purposeAndScope: String """ - A list of edges. + background of the standard """ - edges: [EntityHistoryEdge] + background: String """ - Information to aid in pagination. + which controls are satisfied by the standard """ - pageInfo: PageInfo! + satisfies: String """ - Identifies the total count of items in the connection. + json data with details of the standard """ - totalCount: Int! + details: Map + controlobjectiveIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + actionplanIDs: [ID!] } """ -An edge in a connection. +CreateSubcontrolInput is used for create Subcontrol object. +Input was generated by ent. """ -type EntityHistoryEdge { +input CreateSubcontrolInput { """ - The item at the end of the edge. + tags associated with the object """ - node: EntityHistory + tags: [String!] """ - A cursor for use in pagination. + the name of the subcontrol """ - cursor: Cursor! -} -""" -EntityHistoryOpType is enum for the field operation -""" -enum EntityHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for EntityHistory connections -""" -input EntityHistoryOrder { + name: String! """ - The ordering direction. + description of the subcontrol """ - direction: OrderDirection! = ASC + description: String """ - The field by which to order EntityHistories. + status of the subcontrol """ - field: EntityHistoryOrderField! -} -""" -Properties by which EntityHistory connections can be ordered. -""" -enum EntityHistoryOrderField { - name - display_name -} -""" -EntityHistoryWhereInput is used for filtering EntityHistory objects. -Input was generated by ent. -""" -input EntityHistoryWhereInput { - not: EntityHistoryWhereInput - and: [EntityHistoryWhereInput!] - or: [EntityHistoryWhereInput!] + status: String """ - id field predicates + type of the subcontrol """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + subcontrolType: String """ - history_time field predicates + version of the control """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time + version: String """ - ref field predicates + number of the subcontrol """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String + subcontrolNumber: String """ - operation field predicates + subcontrol family """ - operation: EntityHistoryOpType - operationNEQ: EntityHistoryOpType - operationIn: [EntityHistoryOpType!] - operationNotIn: [EntityHistoryOpType!] + family: String """ - created_at field predicates + subcontrol class """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + class: String """ - updated_at field predicates + source of the control, e.g. framework, template, user-defined, etc. """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + source: String """ - created_by field predicates + mapped frameworks that the subcontrol is part of """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + mappedFrameworks: String """ - updated_by field predicates + implementation evidence of the subcontrol """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + implementationEvidence: String """ - owner_id field predicates + implementation status """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + implementationStatus: String """ - name field predicates + date the subcontrol was implemented """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameIsNil: Boolean - nameNotNil: Boolean - nameEqualFold: String - nameContainsFold: String + implementationDate: Time """ - display_name field predicates + implementation verification """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String + implementationVerification: String """ - entity_type_id field predicates + date the subcontrol implementation was verified """ - entityTypeID: String - entityTypeIDNEQ: String - entityTypeIDIn: [String!] - entityTypeIDNotIn: [String!] - entityTypeIDGT: String - entityTypeIDGTE: String - entityTypeIDLT: String - entityTypeIDLTE: String - entityTypeIDContains: String - entityTypeIDHasPrefix: String - entityTypeIDHasSuffix: String - entityTypeIDIsNil: Boolean - entityTypeIDNotNil: Boolean - entityTypeIDEqualFold: String - entityTypeIDContainsFold: String + implementationVerificationDate: Time """ - status field predicates + json data details of the subcontrol """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String + details: Map + controlIDs: [ID!] + userIDs: [ID!] + notesID: ID } """ -Ordering options for Entity connections +CreateSubscriberInput is used for create Subscriber object. +Input was generated by ent. """ -input EntityOrder { +input CreateSubscriberInput { """ - The ordering direction. + tags associated with the object """ - direction: OrderDirection! = ASC + tags: [String!] """ - The field by which to order Entities. + email address of the subscriber """ - field: EntityOrderField! + email: String! + """ + phone number of the subscriber + """ + phoneNumber: String + ownerID: ID + eventIDs: [ID!] } """ -Properties by which Entity connections can be ordered. +CreateTFASettingInput is used for create TFASetting object. +Input was generated by ent. """ -enum EntityOrderField { - name - display_name -} -type EntitySearchResult { - entities: [Entity!] -} -type EntityType implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String +input CreateTFASettingInput { """ tags associated with the object """ tags: [String!] """ - the organization id that owns the object + specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app """ + totpAllowed: Boolean ownerID: ID - """ - the name of the entity - """ - name: String! - owner: Organization - entities: [Entity!] } """ -Return response for createBulkEntityType mutation +CreateTemplateInput is used for create Template object. +Input was generated by ent. """ -type EntityTypeBulkCreatePayload { +input CreateTemplateInput { """ - Created entityTypes + tags associated with the object """ - entityTypes: [EntityType!] -} -""" -A connection to a list of items. -""" -type EntityTypeConnection { + tags: [String!] """ - A list of edges. + the name of the template """ - edges: [EntityTypeEdge] + name: String! """ - Information to aid in pagination. + the type of the template, either a provided template or an implementation (document) """ - pageInfo: PageInfo! + templateType: TemplateDocumentType """ - Identifies the total count of items in the connection. + the description of the template """ - totalCount: Int! -} -""" -Return response for createEntityType mutation -""" -type EntityTypeCreatePayload { + description: String """ - Created entityType + the jsonschema object of the template """ - entityType: EntityType! -} -""" -Return response for deleteEntityType mutation -""" -type EntityTypeDeletePayload { + jsonconfig: JSON! """ - Deleted entityType ID + the uischema for the template to render in the UI """ - deletedID: ID! + uischema: JSON + ownerID: ID + documentIDs: [ID!] + fileIDs: [ID!] } """ -An edge in a connection. +CreateUserInput is used for create User object. +Input was generated by ent. """ -type EntityTypeEdge { +input CreateUserInput { """ - The item at the end of the edge. + tags associated with the object """ - node: EntityType + tags: [String!] + email: String! + firstName: String + lastName: String """ - A cursor for use in pagination. + The user's displayed 'friendly' name """ - cursor: Cursor! -} -type EntityTypeHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntityTypeHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String + displayName: String! """ - tags associated with the object + URL of the user's remote avatar """ - tags: [String!] + avatarRemoteURL: String """ - the organization id that owns the object + The user's local avatar file """ - ownerID: String + avatarLocalFile: String """ - the name of the entity + The time the user's (local) avatar was last updated """ - name: String! -} -""" -A connection to a list of items. -""" -type EntityTypeHistoryConnection { + avatarUpdatedAt: Time """ - A list of edges. + the time the user was last seen """ - edges: [EntityTypeHistoryEdge] + lastSeen: Time """ - Information to aid in pagination. + user password hash """ - pageInfo: PageInfo! + password: String """ - Identifies the total count of items in the connection. + the Subject of the user JWT """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntityTypeHistoryEdge { + sub: String """ - The item at the end of the edge. + auth provider used to register the account """ - node: EntityTypeHistory + authProvider: UserAuthProvider """ - A cursor for use in pagination. + the user's role """ - cursor: Cursor! -} -""" -EntityTypeHistoryOpType is enum for the field operation -""" -enum EntityTypeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE + role: UserRole + personalAccessTokenIDs: [ID!] + tfaSettingIDs: [ID!] + settingID: ID! + emailVerificationTokenIDs: [ID!] + passwordResetTokenIDs: [ID!] + groupIDs: [ID!] + organizationIDs: [ID!] + webauthnIDs: [ID!] + fileIDs: [ID!] + fileID: ID + eventIDs: [ID!] + actionplanIDs: [ID!] + subcontrolIDs: [ID!] } """ -Ordering options for EntityTypeHistory connections +CreateUserSettingInput is used for create UserSetting object. +Input was generated by ent. """ -input EntityTypeHistoryOrder { +input CreateUserSettingInput { """ - The ordering direction. + tags associated with the object """ - direction: OrderDirection! = ASC + tags: [String!] """ - The field by which to order EntityTypeHistories. + user account is locked if unconfirmed or explicitly locked """ - field: EntityTypeHistoryOrderField! -} -""" -Properties by which EntityTypeHistory connections can be ordered. -""" -enum EntityTypeHistoryOrderField { - name + locked: Boolean + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + """ + The time the user was suspended + """ + suspendedAt: Time + """ + status of the user account + """ + status: UserSettingUserStatus + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean + userID: ID + defaultOrgID: ID + fileIDs: [ID!] } """ -EntityTypeHistoryWhereInput is used for filtering EntityTypeHistory objects. +CreateWebhookInput is used for create Webhook object. Input was generated by ent. """ -input EntityTypeHistoryWhereInput { - not: EntityTypeHistoryWhereInput - and: [EntityTypeHistoryWhereInput!] - or: [EntityTypeHistoryWhereInput!] +input CreateWebhookInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - history_time field predicates + the name of the webhook """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time + name: String! """ - ref field predicates + a description of the webhook """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String + description: String """ - operation field predicates + the url to send the webhook to """ - operation: EntityTypeHistoryOpType - operationNEQ: EntityTypeHistoryOpType - operationIn: [EntityTypeHistoryOpType!] - operationNotIn: [EntityTypeHistoryOpType!] + destinationURL: String! """ - created_at field predicates + indicates if the webhook is active and enabled """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + enabled: Boolean """ - updated_at field predicates + the number of failures """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + failures: Int """ - created_by field predicates + the last error message """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + lastError: String """ - updated_by field predicates + the last response """ + lastResponse: String + ownerID: ID + eventIDs: [ID!] + integrationIDs: [ID!] +} +""" +Define a Relay Cursor type: +https://relay.dev/graphql/connections.htm#sec-Cursor +""" +scalar Cursor +type DocumentData implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String """ - deleted_at field predicates + tags associated with the object """ + tags: [String!] deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String """ - owner_id field predicates + the organization id that owns the object """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + ownerID: ID """ - name field predicates + the template id of the document """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + templateID: ID! + """ + the json data of the document + """ + data: JSON! + owner: Organization + template: Template! + entity: [Entity!] + files: [File!] } """ -Ordering options for EntityType connections +Return response for createBulkDocumentData mutation """ -input EntityTypeOrder { +type DocumentDataBulkCreatePayload { """ - The ordering direction. + Created documentData """ - direction: OrderDirection! = ASC + documentData: [DocumentData!] +} +""" +A connection to a list of items. +""" +type DocumentDataConnection { """ - The field by which to order EntityTypes. + A list of edges. """ - field: EntityTypeOrderField! + edges: [DocumentDataEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! } """ -Properties by which EntityType connections can be ordered. +Return response for createDocumentData mutation """ -enum EntityTypeOrderField { - name +type DocumentDataCreatePayload { + """ + Created documentData + """ + documentData: DocumentData! } -type EntityTypeSearchResult { - entityTypes: [EntityType!] +""" +Return response for deleteDocumentData mutation +""" +type DocumentDataDeletePayload { + """ + Deleted documentData ID + """ + deletedID: ID! } """ -Return response for updateEntityType mutation +An edge in a connection. """ -type EntityTypeUpdatePayload { +type DocumentDataEdge { """ - Updated entityType + The item at the end of the edge. """ - entityType: EntityType! + node: DocumentData + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type DocumentDataHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: DocumentDataHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the template id of the document + """ + templateID: String! + """ + the json data of the document + """ + data: JSON! } """ -EntityTypeWhereInput is used for filtering EntityType objects. +A connection to a list of items. +""" +type DocumentDataHistoryConnection { + """ + A list of edges. + """ + edges: [DocumentDataHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type DocumentDataHistoryEdge { + """ + The item at the end of the edge. + """ + node: DocumentDataHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +DocumentDataHistoryOpType is enum for the field operation +""" +enum DocumentDataHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +DocumentDataHistoryWhereInput is used for filtering DocumentDataHistory objects. Input was generated by ent. """ -input EntityTypeWhereInput { - not: EntityTypeWhereInput - and: [EntityTypeWhereInput!] - or: [EntityTypeWhereInput!] +input DocumentDataHistoryWhereInput { + not: DocumentDataHistoryWhereInput + and: [DocumentDataHistoryWhereInput!] + or: [DocumentDataHistoryWhereInput!] """ id field predicates """ @@ -5260,6 +5196,42 @@ input EntityTypeWhereInput { idEqualFold: ID idContainsFold: ID """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: DocumentDataHistoryOpType + operationNEQ: DocumentDataHistoryOpType + operationIn: [DocumentDataHistoryOpType!] + operationNotIn: [DocumentDataHistoryOpType!] + """ created_at field predicates """ createdAt: Time @@ -5355,65 +5327,58 @@ input EntityTypeWhereInput { """ owner_id field predicates """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String ownerIDIsNil: Boolean ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + ownerIDEqualFold: String + ownerIDContainsFold: String """ - owner edge predicates + template_id field predicates """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - entities edge predicates - """ - hasEntities: Boolean - hasEntitiesWith: [EntityWhereInput!] + templateID: String + templateIDNEQ: String + templateIDIn: [String!] + templateIDNotIn: [String!] + templateIDGT: String + templateIDGTE: String + templateIDLT: String + templateIDLTE: String + templateIDContains: String + templateIDHasPrefix: String + templateIDHasSuffix: String + templateIDEqualFold: String + templateIDContainsFold: String +} +type DocumentDataSearchResult { + documentData: [DocumentData!] } """ -Return response for updateEntity mutation +Return response for updateDocumentData mutation """ -type EntityUpdatePayload { +type DocumentDataUpdatePayload { """ - Updated entity + Updated documentData """ - entity: Entity! + documentData: DocumentData! } """ -EntityWhereInput is used for filtering Entity objects. +DocumentDataWhereInput is used for filtering DocumentData objects. Input was generated by ent. """ -input EntityWhereInput { - not: EntityWhereInput - and: [EntityWhereInput!] - or: [EntityWhereInput!] +input DocumentDataWhereInput { + not: DocumentDataWhereInput + and: [DocumentDataWhereInput!] + or: [DocumentDataWhereInput!] """ id field predicates """ @@ -5539,109 +5504,43 @@ input EntityWhereInput { ownerIDEqualFold: ID ownerIDContainsFold: ID """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameIsNil: Boolean - nameNotNil: Boolean - nameEqualFold: String - nameContainsFold: String - """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String - """ - entity_type_id field predicates - """ - entityTypeID: ID - entityTypeIDNEQ: ID - entityTypeIDIn: [ID!] - entityTypeIDNotIn: [ID!] - entityTypeIDGT: ID - entityTypeIDGTE: ID - entityTypeIDLT: ID - entityTypeIDLTE: ID - entityTypeIDContains: ID - entityTypeIDHasPrefix: ID - entityTypeIDHasSuffix: ID - entityTypeIDIsNil: Boolean - entityTypeIDNotNil: Boolean - entityTypeIDEqualFold: ID - entityTypeIDContainsFold: ID - """ - status field predicates + template_id field predicates """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String + templateID: ID + templateIDNEQ: ID + templateIDIn: [ID!] + templateIDNotIn: [ID!] + templateIDGT: ID + templateIDGTE: ID + templateIDLT: ID + templateIDLTE: ID + templateIDContains: ID + templateIDHasPrefix: ID + templateIDHasSuffix: ID + templateIDEqualFold: ID + templateIDContainsFold: ID """ owner edge predicates """ hasOwner: Boolean hasOwnerWith: [OrganizationWhereInput!] """ - contacts edge predicates - """ - hasContacts: Boolean - hasContactsWith: [ContactWhereInput!] - """ - documents edge predicates + template edge predicates """ - hasDocuments: Boolean - hasDocumentsWith: [DocumentDataWhereInput!] + hasTemplate: Boolean + hasTemplateWith: [TemplateWhereInput!] """ - notes edge predicates + entity edge predicates """ - hasNotes: Boolean - hasNotesWith: [NoteWhereInput!] + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] """ files edge predicates """ hasFiles: Boolean hasFilesWith: [FileWhereInput!] - """ - entity_type edge predicates - """ - hasEntityType: Boolean - hasEntityTypeWith: [EntityTypeWhereInput!] } -type Event implements Node { +type Entitlement implements Node { id: ID! createdAt: Time updatedAt: Time @@ -5651,45 +5550,62 @@ type Event implements Node { tags associated with the object """ tags: [String!] - eventID: String - correlationID: String - eventType: String! - metadata: Map - user: [User!] - group: [Group!] - integration: [Integration!] - organization: [Organization!] - invite: [Invite!] - feature: [Feature!] - entitlementplan: [EntitlementPlan!] - entitlementplanfeature: [EntitlementPlanFeature!] - personalAccessToken: [PersonalAccessToken!] - oauth2token: [OhAuthTooToken!] - hush: [Hush!] - orgmembership: [OrgMembership!] - groupmembership: [GroupMembership!] - entitlement: [Entitlement!] - webhook: [Webhook!] - subscriber: [Subscriber!] - file: [File!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the plan to which the entitlement belongs + """ + planID: ID! + """ + the organization to which the entitlement belongs + """ + organizationID: ID! + """ + used to store references to external systems, e.g. Stripe + """ + externalCustomerID: String + """ + used to store references to external systems, e.g. Stripe + """ + externalSubscriptionID: String + """ + whether or not the customers entitlement expires - expires_at will show the time + """ + expires: Boolean! + """ + the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + """ + expiresAt: Time + """ + whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + """ + cancelled: Boolean! + owner: Organization + plan: EntitlementPlan! + organization: Organization! + events: [Event!] } """ -Return response for createBulkEvent mutation +Return response for createBulkEntitlement mutation """ -type EventBulkCreatePayload { +type EntitlementBulkCreatePayload { """ - Created events + Created entitlements """ - events: [Event!] + entitlements: [Entitlement!] } """ A connection to a list of items. """ -type EventConnection { +type EntitlementConnection { """ A list of edges. """ - edges: [EventEdge] + edges: [EntitlementEdge] """ Information to aid in pagination. """ @@ -5700,41 +5616,41 @@ type EventConnection { totalCount: Int! } """ -Return response for createEvent mutation +Return response for createEntitlement mutation """ -type EventCreatePayload { +type EntitlementCreatePayload { """ - Created event + Created entitlement """ - event: Event! + entitlement: Entitlement! } """ -Return response for deleteEvent mutation +Return response for deleteEntitlement mutation """ -type EventDeletePayload { +type EntitlementDeletePayload { """ - Deleted event ID + Deleted entitlement ID """ deletedID: ID! } """ An edge in a connection. """ -type EventEdge { +type EntitlementEdge { """ The item at the end of the edge. """ - node: Event + node: Entitlement """ A cursor for use in pagination. """ cursor: Cursor! } -type EventHistory implements Node { +type EntitlementHistory implements Node { id: ID! historyTime: Time! ref: String - operation: EventHistoryOpType! + operation: EntitlementHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -5743,21 +5659,51 @@ type EventHistory implements Node { tags associated with the object """ tags: [String!] - eventID: String - correlationID: String - eventType: String! - metadata: Map -} -""" -A connection to a list of items. -""" -type EventHistoryConnection { + deletedAt: Time + deletedBy: String """ - A list of edges. + the organization id that owns the object """ - edges: [EventHistoryEdge] + ownerID: String """ - Information to aid in pagination. + the plan to which the entitlement belongs + """ + planID: String! + """ + the organization to which the entitlement belongs + """ + organizationID: String! + """ + used to store references to external systems, e.g. Stripe + """ + externalCustomerID: String + """ + used to store references to external systems, e.g. Stripe + """ + externalSubscriptionID: String + """ + whether or not the customers entitlement expires - expires_at will show the time + """ + expires: Boolean! + """ + the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + """ + expiresAt: Time + """ + whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + """ + cancelled: Boolean! +} +""" +A connection to a list of items. +""" +type EntitlementHistoryConnection { + """ + A list of edges. + """ + edges: [EntitlementHistoryEdge] + """ + Information to aid in pagination. """ pageInfo: PageInfo! """ @@ -5768,32 +5714,32 @@ type EventHistoryConnection { """ An edge in a connection. """ -type EventHistoryEdge { +type EntitlementHistoryEdge { """ The item at the end of the edge. """ - node: EventHistory + node: EntitlementHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -EventHistoryOpType is enum for the field operation +EntitlementHistoryOpType is enum for the field operation """ -enum EventHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EntitlementHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -EventHistoryWhereInput is used for filtering EventHistory objects. +EntitlementHistoryWhereInput is used for filtering EntitlementHistory objects. Input was generated by ent. """ -input EventHistoryWhereInput { - not: EventHistoryWhereInput - and: [EventHistoryWhereInput!] - or: [EventHistoryWhereInput!] +input EntitlementHistoryWhereInput { + not: EntitlementHistoryWhereInput + and: [EntitlementHistoryWhereInput!] + or: [EntitlementHistoryWhereInput!] """ id field predicates """ @@ -5839,10 +5785,10 @@ input EventHistoryWhereInput { """ operation field predicates """ - operation: EventHistoryOpType - operationNEQ: EventHistoryOpType - operationIn: [EventHistoryOpType!] - operationNotIn: [EventHistoryOpType!] + operation: EntitlementHistoryOpType + operationNEQ: EntitlementHistoryOpType + operationIn: [EntitlementHistoryOpType!] + operationNotIn: [EntitlementHistoryOpType!] """ created_at field predicates """ @@ -5906,292 +5852,147 @@ input EventHistoryWhereInput { updatedByEqualFold: String updatedByContainsFold: String """ - event_id field predicates - """ - eventID: String - eventIDNEQ: String - eventIDIn: [String!] - eventIDNotIn: [String!] - eventIDGT: String - eventIDGTE: String - eventIDLT: String - eventIDLTE: String - eventIDContains: String - eventIDHasPrefix: String - eventIDHasSuffix: String - eventIDIsNil: Boolean - eventIDNotNil: Boolean - eventIDEqualFold: String - eventIDContainsFold: String - """ - correlation_id field predicates + deleted_at field predicates """ - correlationID: String - correlationIDNEQ: String - correlationIDIn: [String!] - correlationIDNotIn: [String!] - correlationIDGT: String - correlationIDGTE: String - correlationIDLT: String - correlationIDLTE: String - correlationIDContains: String - correlationIDHasPrefix: String - correlationIDHasSuffix: String - correlationIDIsNil: Boolean - correlationIDNotNil: Boolean - correlationIDEqualFold: String - correlationIDContainsFold: String + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - event_type field predicates + deleted_by field predicates """ - eventType: String - eventTypeNEQ: String - eventTypeIn: [String!] - eventTypeNotIn: [String!] - eventTypeGT: String - eventTypeGTE: String - eventTypeLT: String - eventTypeLTE: String - eventTypeContains: String - eventTypeHasPrefix: String - eventTypeHasSuffix: String - eventTypeEqualFold: String - eventTypeContainsFold: String -} -type EventSearchResult { - events: [Event!] -} -""" -Return response for updateEvent mutation -""" -type EventUpdatePayload { + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - Updated event + owner_id field predicates """ - event: Event! -} -""" -EventWhereInput is used for filtering Event objects. -Input was generated by ent. -""" -input EventWhereInput { - not: EventWhereInput - and: [EventWhereInput!] - or: [EventWhereInput!] + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ - id field predicates + plan_id field predicates """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + planID: String + planIDNEQ: String + planIDIn: [String!] + planIDNotIn: [String!] + planIDGT: String + planIDGTE: String + planIDLT: String + planIDLTE: String + planIDContains: String + planIDHasPrefix: String + planIDHasSuffix: String + planIDEqualFold: String + planIDContainsFold: String """ - created_at field predicates + organization_id field predicates """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDEqualFold: String + organizationIDContainsFold: String """ - updated_at field predicates + external_customer_id field predicates """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + externalCustomerID: String + externalCustomerIDNEQ: String + externalCustomerIDIn: [String!] + externalCustomerIDNotIn: [String!] + externalCustomerIDGT: String + externalCustomerIDGTE: String + externalCustomerIDLT: String + externalCustomerIDLTE: String + externalCustomerIDContains: String + externalCustomerIDHasPrefix: String + externalCustomerIDHasSuffix: String + externalCustomerIDIsNil: Boolean + externalCustomerIDNotNil: Boolean + externalCustomerIDEqualFold: String + externalCustomerIDContainsFold: String """ - created_by field predicates + external_subscription_id field predicates """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - event_id field predicates - """ - eventID: String - eventIDNEQ: String - eventIDIn: [String!] - eventIDNotIn: [String!] - eventIDGT: String - eventIDGTE: String - eventIDLT: String - eventIDLTE: String - eventIDContains: String - eventIDHasPrefix: String - eventIDHasSuffix: String - eventIDIsNil: Boolean - eventIDNotNil: Boolean - eventIDEqualFold: String - eventIDContainsFold: String - """ - correlation_id field predicates - """ - correlationID: String - correlationIDNEQ: String - correlationIDIn: [String!] - correlationIDNotIn: [String!] - correlationIDGT: String - correlationIDGTE: String - correlationIDLT: String - correlationIDLTE: String - correlationIDContains: String - correlationIDHasPrefix: String - correlationIDHasSuffix: String - correlationIDIsNil: Boolean - correlationIDNotNil: Boolean - correlationIDEqualFold: String - correlationIDContainsFold: String - """ - event_type field predicates - """ - eventType: String - eventTypeNEQ: String - eventTypeIn: [String!] - eventTypeNotIn: [String!] - eventTypeGT: String - eventTypeGTE: String - eventTypeLT: String - eventTypeLTE: String - eventTypeContains: String - eventTypeHasPrefix: String - eventTypeHasSuffix: String - eventTypeEqualFold: String - eventTypeContainsFold: String - """ - user edge predicates - """ - hasUser: Boolean - hasUserWith: [UserWhereInput!] - """ - group edge predicates - """ - hasGroup: Boolean - hasGroupWith: [GroupWhereInput!] - """ - integration edge predicates - """ - hasIntegration: Boolean - hasIntegrationWith: [IntegrationWhereInput!] - """ - organization edge predicates - """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] - """ - invite edge predicates - """ - hasInvite: Boolean - hasInviteWith: [InviteWhereInput!] - """ - feature edge predicates - """ - hasFeature: Boolean - hasFeatureWith: [FeatureWhereInput!] - """ - entitlementplan edge predicates - """ - hasEntitlementplan: Boolean - hasEntitlementplanWith: [EntitlementPlanWhereInput!] - """ - entitlementplanfeature edge predicates - """ - hasEntitlementplanfeature: Boolean - hasEntitlementplanfeatureWith: [EntitlementPlanFeatureWhereInput!] - """ - personal_access_token edge predicates - """ - hasPersonalAccessToken: Boolean - hasPersonalAccessTokenWith: [PersonalAccessTokenWhereInput!] - """ - oauth2token edge predicates - """ - hasOauth2token: Boolean - hasOauth2tokenWith: [OhAuthTooTokenWhereInput!] - """ - hush edge predicates - """ - hasHush: Boolean - hasHushWith: [HushWhereInput!] - """ - orgmembership edge predicates - """ - hasOrgmembership: Boolean - hasOrgmembershipWith: [OrgMembershipWhereInput!] - """ - groupmembership edge predicates - """ - hasGroupmembership: Boolean - hasGroupmembershipWith: [GroupMembershipWhereInput!] - """ - entitlement edge predicates - """ - hasEntitlement: Boolean - hasEntitlementWith: [EntitlementWhereInput!] + externalSubscriptionID: String + externalSubscriptionIDNEQ: String + externalSubscriptionIDIn: [String!] + externalSubscriptionIDNotIn: [String!] + externalSubscriptionIDGT: String + externalSubscriptionIDGTE: String + externalSubscriptionIDLT: String + externalSubscriptionIDLTE: String + externalSubscriptionIDContains: String + externalSubscriptionIDHasPrefix: String + externalSubscriptionIDHasSuffix: String + externalSubscriptionIDIsNil: Boolean + externalSubscriptionIDNotNil: Boolean + externalSubscriptionIDEqualFold: String + externalSubscriptionIDContainsFold: String """ - webhook edge predicates + expires field predicates """ - hasWebhook: Boolean - hasWebhookWith: [WebhookWhereInput!] + expires: Boolean + expiresNEQ: Boolean """ - subscriber edge predicates + expires_at field predicates """ - hasSubscriber: Boolean - hasSubscriberWith: [SubscriberWhereInput!] + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean """ - file edge predicates + cancelled field predicates """ - hasFile: Boolean - hasFileWith: [FileWhereInput!] + cancelled: Boolean + cancelledNEQ: Boolean } -type Feature implements Node { +type EntitlementPlan implements Node { id: ID! createdAt: Time updatedAt: Time @@ -6208,47 +6009,48 @@ type Feature implements Node { """ ownerID: ID """ - the unique name of the feature - """ - name: String! - """ - the displayed 'friendly' name of the feature + the displayed 'friendly' name of the plan """ displayName: String """ - enabled features are available for use + the unique name of the plan """ - enabled: Boolean! + name: String! """ - a description of the feature + a description of the plan """ description: String """ - metadata for the feature + the version of the plan + """ + version: String! + """ + metadata for the plan """ metadata: Map owner: Organization - plans: [EntitlementPlan!] + entitlements: [Entitlement!] + baseFeatures: [Feature!] events: [Event!] features: [EntitlementPlanFeature!] } """ -Return response for createBulkFeature mutation +Return response for createBulkEntitlementPlan mutation """ -type FeatureBulkCreatePayload { +type EntitlementPlanBulkCreatePayload { """ - Created features + Created entitlementPlans """ - features: [Feature!] + entitlementPlans: [EntitlementPlan!] } """ A connection to a list of items. """ -type FeatureConnection { +type EntitlementPlanConnection { """ A list of edges. """ - edges: [FeatureEdge] + edges: [EntitlementPlanEdge] """ Information to aid in pagination. """ @@ -6259,41 +6061,38 @@ type FeatureConnection { totalCount: Int! } """ -Return response for createFeature mutation +Return response for createEntitlementPlan mutation """ -type FeatureCreatePayload { +type EntitlementPlanCreatePayload { """ - Created feature + Created entitlementPlan """ - feature: Feature! + entitlementPlan: EntitlementPlan! } """ -Return response for deleteFeature mutation +Return response for deleteEntitlementPlan mutation """ -type FeatureDeletePayload { +type EntitlementPlanDeletePayload { """ - Deleted feature ID + Deleted entitlementPlan ID """ deletedID: ID! } """ An edge in a connection. """ -type FeatureEdge { +type EntitlementPlanEdge { """ The item at the end of the edge. """ - node: Feature + node: EntitlementPlan """ A cursor for use in pagination. """ cursor: Cursor! } -type FeatureHistory implements Node { +type EntitlementPlanFeature implements Node { id: ID! - historyTime: Time! - ref: String - operation: FeatureHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -6307,36 +6106,109 @@ type FeatureHistory implements Node { """ the organization id that owns the object """ - ownerID: String + ownerID: ID """ - the unique name of the feature + metadata for the entitlement plan feature such as usage limits """ - name: String! + metadata: Map + planID: ID! + featureID: ID! + owner: Organization + plan: EntitlementPlan! + feature: Feature! + events: [Event!] +} +""" +Return response for createBulkEntitlementPlanFeature mutation +""" +type EntitlementPlanFeatureBulkCreatePayload { """ - the displayed 'friendly' name of the feature + Created entitlementPlanFeatures """ - displayName: String + entitlementPlanFeatures: [EntitlementPlanFeature!] +} +""" +A connection to a list of items. +""" +type EntitlementPlanFeatureConnection { """ - enabled features are available for use + A list of edges. """ - enabled: Boolean! + edges: [EntitlementPlanFeatureEdge] """ - a description of the feature + Information to aid in pagination. """ - description: String + pageInfo: PageInfo! """ - metadata for the feature + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createEntitlementPlanFeature mutation +""" +type EntitlementPlanFeatureCreatePayload { + """ + Created entitlementPlanFeature + """ + entitlementPlanFeature: EntitlementPlanFeature! +} +""" +Return response for deleteEntitlementPlanFeature mutation +""" +type EntitlementPlanFeatureDeletePayload { + """ + Deleted entitlementPlanFeature ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type EntitlementPlanFeatureEdge { + """ + The item at the end of the edge. + """ + node: EntitlementPlanFeature + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type EntitlementPlanFeatureHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: EntitlementPlanFeatureHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + metadata for the entitlement plan feature such as usage limits """ metadata: Map + planID: String! + featureID: String! } """ A connection to a list of items. """ -type FeatureHistoryConnection { +type EntitlementPlanFeatureHistoryConnection { """ A list of edges. """ - edges: [FeatureHistoryEdge] + edges: [EntitlementPlanFeatureHistoryEdge] """ Information to aid in pagination. """ @@ -6349,32 +6221,32 @@ type FeatureHistoryConnection { """ An edge in a connection. """ -type FeatureHistoryEdge { +type EntitlementPlanFeatureHistoryEdge { """ The item at the end of the edge. """ - node: FeatureHistory + node: EntitlementPlanFeatureHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -FeatureHistoryOpType is enum for the field operation +EntitlementPlanFeatureHistoryOpType is enum for the field operation """ -enum FeatureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EntitlementPlanFeatureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -FeatureHistoryWhereInput is used for filtering FeatureHistory objects. +EntitlementPlanFeatureHistoryWhereInput is used for filtering EntitlementPlanFeatureHistory objects. Input was generated by ent. """ -input FeatureHistoryWhereInput { - not: FeatureHistoryWhereInput - and: [FeatureHistoryWhereInput!] - or: [FeatureHistoryWhereInput!] +input EntitlementPlanFeatureHistoryWhereInput { + not: EntitlementPlanFeatureHistoryWhereInput + and: [EntitlementPlanFeatureHistoryWhereInput!] + or: [EntitlementPlanFeatureHistoryWhereInput!] """ id field predicates """ @@ -6420,10 +6292,10 @@ input FeatureHistoryWhereInput { """ operation field predicates """ - operation: FeatureHistoryOpType - operationNEQ: FeatureHistoryOpType - operationIn: [FeatureHistoryOpType!] - operationNotIn: [FeatureHistoryOpType!] + operation: EntitlementPlanFeatureHistoryOpType + operationNEQ: EntitlementPlanFeatureHistoryOpType + operationIn: [EntitlementPlanFeatureHistoryOpType!] + operationNotIn: [EntitlementPlanFeatureHistoryOpType!] """ created_at field predicates """ @@ -6536,83 +6408,58 @@ input FeatureHistoryWhereInput { ownerIDEqualFold: String ownerIDContainsFold: String """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String - """ - enabled field predicates + plan_id field predicates """ - enabled: Boolean - enabledNEQ: Boolean + planID: String + planIDNEQ: String + planIDIn: [String!] + planIDNotIn: [String!] + planIDGT: String + planIDGTE: String + planIDLT: String + planIDLTE: String + planIDContains: String + planIDHasPrefix: String + planIDHasSuffix: String + planIDEqualFold: String + planIDContainsFold: String """ - description field predicates + feature_id field predicates """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String + featureID: String + featureIDNEQ: String + featureIDIn: [String!] + featureIDNotIn: [String!] + featureIDGT: String + featureIDGTE: String + featureIDLT: String + featureIDLTE: String + featureIDContains: String + featureIDHasPrefix: String + featureIDHasSuffix: String + featureIDEqualFold: String + featureIDContainsFold: String } -type FeatureSearchResult { - features: [Feature!] +type EntitlementPlanFeatureSearchResult { + entitlementPlanFeatures: [EntitlementPlanFeature!] } """ -Return response for updateFeature mutation +Return response for updateEntitlementPlanFeature mutation """ -type FeatureUpdatePayload { +type EntitlementPlanFeatureUpdatePayload { """ - Updated feature + Updated entitlementPlanFeature """ - feature: Feature! + entitlementPlanFeature: EntitlementPlanFeature! } """ -FeatureWhereInput is used for filtering Feature objects. +EntitlementPlanFeatureWhereInput is used for filtering EntitlementPlanFeature objects. Input was generated by ent. """ -input FeatureWhereInput { - not: FeatureWhereInput - and: [FeatureWhereInput!] - or: [FeatureWhereInput!] +input EntitlementPlanFeatureWhereInput { + not: EntitlementPlanFeatureWhereInput + and: [EntitlementPlanFeatureWhereInput!] + or: [EntitlementPlanFeatureWhereInput!] """ id field predicates """ @@ -6719,182 +6566,55 @@ input FeatureWhereInput { deletedByNotNil: Boolean deletedByEqualFold: String deletedByContainsFold: String +} +type EntitlementPlanHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: EntitlementPlanHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - owner_id field predicates + tags associated with the object """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + tags: [String!] """ - name field predicates + the organization id that owns the object """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + ownerID: String """ - display_name field predicates + the displayed 'friendly' name of the plan """ displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String """ - enabled field predicates + the unique name of the plan """ - enabled: Boolean - enabledNEQ: Boolean + name: String! """ - description field predicates + a description of the plan """ description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - plans edge predicates - """ - hasPlans: Boolean - hasPlansWith: [EntitlementPlanWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] - """ - features edge predicates - """ - hasFeatures: Boolean - hasFeaturesWith: [EntitlementPlanFeatureWhereInput!] -} -type File implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the file provided in the payload key without the extension - """ - providedFileName: String! - """ - the extension of the file provided - """ - providedFileExtension: String! - """ - the computed size of the file in the original http request - """ - providedFileSize: Int - persistedFileSize: Int - """ - the mime type detected by the system """ - detectedMimeType: String - """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage - """ - md5Hash: String - """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types - """ - detectedContentType: String! - """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key - """ - storeKey: String - """ - the category type of the file, if any (e.g. evidence, invoice, etc.) - """ - categoryType: String - """ - the full URI of the file - """ - uri: String - """ - the storage scheme of the file, e.g. file://, s3://, etc. - """ - storageScheme: String - """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + the version of the plan """ - storageVolume: String + version: String! """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + metadata for the plan """ - storagePath: String - user: [User!] - organization: [Organization!] - group: [Group!] - contact: [Contact!] - entity: [Entity!] - usersetting: [UserSetting!] - organizationsetting: [OrganizationSetting!] - template: [Template!] - documentdata: [DocumentData!] - events: [Event!] + metadata: Map } """ A connection to a list of items. """ -type FileConnection { +type EntitlementPlanHistoryConnection { """ A list of edges. """ - edges: [FileEdge] + edges: [EntitlementPlanHistoryEdge] """ Information to aid in pagination. """ @@ -6905,138 +6625,283 @@ type FileConnection { totalCount: Int! } """ -Return response for deleteFile mutation -""" -type FileDeletePayload { - """ - Deleted file ID - """ - deletedID: ID! -} -""" An edge in a connection. """ -type FileEdge { +type EntitlementPlanHistoryEdge { """ The item at the end of the edge. """ - node: File + node: EntitlementPlanHistory """ A cursor for use in pagination. """ cursor: Cursor! } -type FileHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: FileHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the file provided in the payload key without the extension +""" +EntitlementPlanHistoryOpType is enum for the field operation +""" +enum EntitlementPlanHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +EntitlementPlanHistoryWhereInput is used for filtering EntitlementPlanHistory objects. +Input was generated by ent. +""" +input EntitlementPlanHistoryWhereInput { + not: EntitlementPlanHistoryWhereInput + and: [EntitlementPlanHistoryWhereInput!] + or: [EntitlementPlanHistoryWhereInput!] """ - providedFileName: String! + id field predicates """ - the extension of the file provided + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - providedFileExtension: String! + history_time field predicates """ - the computed size of the file in the original http request + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time """ - providedFileSize: Int - persistedFileSize: Int + ref field predicates """ - the mime type detected by the system + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String """ - detectedMimeType: String + operation field predicates """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + operation: EntitlementPlanHistoryOpType + operationNEQ: EntitlementPlanHistoryOpType + operationIn: [EntitlementPlanHistoryOpType!] + operationNotIn: [EntitlementPlanHistoryOpType!] """ - md5Hash: String + created_at field predicates """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - detectedContentType: String! + updated_at field predicates """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - storeKey: String + created_by field predicates """ - the category type of the file, if any (e.g. evidence, invoice, etc.) + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - categoryType: String + updated_by field predicates """ - the full URI of the file + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - uri: String + deleted_at field predicates """ - the storage scheme of the file, e.g. file://, s3://, etc. + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - storageScheme: String + deleted_by field predicates """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - storageVolume: String + owner_id field predicates """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ - storagePath: String -} -""" -A connection to a list of items. -""" -type FileHistoryConnection { + display_name field predicates """ - A list of edges. + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String """ - edges: [FileHistoryEdge] + name field predicates """ - Information to aid in pagination. + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - pageInfo: PageInfo! + description field predicates """ - Identifies the total count of items in the connection. + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - totalCount: Int! + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionEqualFold: String + versionContainsFold: String +} +type EntitlementPlanSearchResult { + entitlementPlans: [EntitlementPlan!] } """ -An edge in a connection. +Return response for updateEntitlementPlan mutation """ -type FileHistoryEdge { - """ - The item at the end of the edge. - """ - node: FileHistory +type EntitlementPlanUpdatePayload { """ - A cursor for use in pagination. + Updated entitlementPlan """ - cursor: Cursor! -} -""" -FileHistoryOpType is enum for the field operation -""" -enum FileHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE + entitlementPlan: EntitlementPlan! } """ -FileHistoryWhereInput is used for filtering FileHistory objects. +EntitlementPlanWhereInput is used for filtering EntitlementPlan objects. Input was generated by ent. """ -input FileHistoryWhereInput { - not: FileHistoryWhereInput - and: [FileHistoryWhereInput!] - or: [FileHistoryWhereInput!] +input EntitlementPlanWhereInput { + not: EntitlementPlanWhereInput + and: [EntitlementPlanWhereInput!] + or: [EntitlementPlanWhereInput!] """ id field predicates """ @@ -7051,42 +6916,6 @@ input FileHistoryWhereInput { idEqualFold: ID idContainsFold: ID """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: FileHistoryOpType - operationNEQ: FileHistoryOpType - operationIn: [FileHistoryOpType!] - operationNotIn: [FileHistoryOpType!] - """ created_at field predicates """ createdAt: Time @@ -7180,235 +7009,137 @@ input FileHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - provided_file_name field predicates - """ - providedFileName: String - providedFileNameNEQ: String - providedFileNameIn: [String!] - providedFileNameNotIn: [String!] - providedFileNameGT: String - providedFileNameGTE: String - providedFileNameLT: String - providedFileNameLTE: String - providedFileNameContains: String - providedFileNameHasPrefix: String - providedFileNameHasSuffix: String - providedFileNameEqualFold: String - providedFileNameContainsFold: String - """ - provided_file_extension field predicates + owner_id field predicates """ - providedFileExtension: String - providedFileExtensionNEQ: String - providedFileExtensionIn: [String!] - providedFileExtensionNotIn: [String!] - providedFileExtensionGT: String - providedFileExtensionGTE: String - providedFileExtensionLT: String - providedFileExtensionLTE: String - providedFileExtensionContains: String - providedFileExtensionHasPrefix: String - providedFileExtensionHasSuffix: String - providedFileExtensionEqualFold: String - providedFileExtensionContainsFold: String + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - provided_file_size field predicates + display_name field predicates """ - providedFileSize: Int - providedFileSizeNEQ: Int - providedFileSizeIn: [Int!] - providedFileSizeNotIn: [Int!] - providedFileSizeGT: Int - providedFileSizeGTE: Int - providedFileSizeLT: Int - providedFileSizeLTE: Int - providedFileSizeIsNil: Boolean - providedFileSizeNotNil: Boolean + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String """ - persisted_file_size field predicates + name field predicates """ - persistedFileSize: Int - persistedFileSizeNEQ: Int - persistedFileSizeIn: [Int!] - persistedFileSizeNotIn: [Int!] - persistedFileSizeGT: Int - persistedFileSizeGTE: Int - persistedFileSizeLT: Int - persistedFileSizeLTE: Int - persistedFileSizeIsNil: Boolean - persistedFileSizeNotNil: Boolean + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - detected_mime_type field predicates + description field predicates """ - detectedMimeType: String - detectedMimeTypeNEQ: String - detectedMimeTypeIn: [String!] - detectedMimeTypeNotIn: [String!] - detectedMimeTypeGT: String - detectedMimeTypeGTE: String - detectedMimeTypeLT: String - detectedMimeTypeLTE: String - detectedMimeTypeContains: String - detectedMimeTypeHasPrefix: String - detectedMimeTypeHasSuffix: String - detectedMimeTypeIsNil: Boolean - detectedMimeTypeNotNil: Boolean - detectedMimeTypeEqualFold: String - detectedMimeTypeContainsFold: String + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - md5_hash field predicates + version field predicates """ - md5Hash: String - md5HashNEQ: String - md5HashIn: [String!] - md5HashNotIn: [String!] - md5HashGT: String - md5HashGTE: String - md5HashLT: String - md5HashLTE: String - md5HashContains: String - md5HashHasPrefix: String - md5HashHasSuffix: String - md5HashIsNil: Boolean - md5HashNotNil: Boolean - md5HashEqualFold: String - md5HashContainsFold: String + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionEqualFold: String + versionContainsFold: String """ - detected_content_type field predicates + owner edge predicates """ - detectedContentType: String - detectedContentTypeNEQ: String - detectedContentTypeIn: [String!] - detectedContentTypeNotIn: [String!] - detectedContentTypeGT: String - detectedContentTypeGTE: String - detectedContentTypeLT: String - detectedContentTypeLTE: String - detectedContentTypeContains: String - detectedContentTypeHasPrefix: String - detectedContentTypeHasSuffix: String - detectedContentTypeEqualFold: String - detectedContentTypeContainsFold: String + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - store_key field predicates + entitlements edge predicates """ - storeKey: String - storeKeyNEQ: String - storeKeyIn: [String!] - storeKeyNotIn: [String!] - storeKeyGT: String - storeKeyGTE: String - storeKeyLT: String - storeKeyLTE: String - storeKeyContains: String - storeKeyHasPrefix: String - storeKeyHasSuffix: String - storeKeyIsNil: Boolean - storeKeyNotNil: Boolean - storeKeyEqualFold: String - storeKeyContainsFold: String + hasEntitlements: Boolean + hasEntitlementsWith: [EntitlementWhereInput!] """ - category_type field predicates + base_features edge predicates """ - categoryType: String - categoryTypeNEQ: String - categoryTypeIn: [String!] - categoryTypeNotIn: [String!] - categoryTypeGT: String - categoryTypeGTE: String - categoryTypeLT: String - categoryTypeLTE: String - categoryTypeContains: String - categoryTypeHasPrefix: String - categoryTypeHasSuffix: String - categoryTypeIsNil: Boolean - categoryTypeNotNil: Boolean - categoryTypeEqualFold: String - categoryTypeContainsFold: String + hasBaseFeatures: Boolean + hasBaseFeaturesWith: [FeatureWhereInput!] """ - uri field predicates + events edge predicates """ - uri: String - uriNEQ: String - uriIn: [String!] - uriNotIn: [String!] - uriGT: String - uriGTE: String - uriLT: String - uriLTE: String - uriContains: String - uriHasPrefix: String - uriHasSuffix: String - uriIsNil: Boolean - uriNotNil: Boolean - uriEqualFold: String - uriContainsFold: String + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] """ - storage_scheme field predicates + features edge predicates """ - storageScheme: String - storageSchemeNEQ: String - storageSchemeIn: [String!] - storageSchemeNotIn: [String!] - storageSchemeGT: String - storageSchemeGTE: String - storageSchemeLT: String - storageSchemeLTE: String - storageSchemeContains: String - storageSchemeHasPrefix: String - storageSchemeHasSuffix: String - storageSchemeIsNil: Boolean - storageSchemeNotNil: Boolean - storageSchemeEqualFold: String - storageSchemeContainsFold: String + hasFeatures: Boolean + hasFeaturesWith: [EntitlementPlanFeatureWhereInput!] +} +type EntitlementSearchResult { + entitlements: [Entitlement!] +} +""" +Return response for updateEntitlement mutation +""" +type EntitlementUpdatePayload { """ - storage_volume field predicates + Updated entitlement """ - storageVolume: String - storageVolumeNEQ: String - storageVolumeIn: [String!] - storageVolumeNotIn: [String!] - storageVolumeGT: String - storageVolumeGTE: String - storageVolumeLT: String - storageVolumeLTE: String - storageVolumeContains: String - storageVolumeHasPrefix: String - storageVolumeHasSuffix: String - storageVolumeIsNil: Boolean - storageVolumeNotNil: Boolean - storageVolumeEqualFold: String - storageVolumeContainsFold: String - """ - storage_path field predicates - """ - storagePath: String - storagePathNEQ: String - storagePathIn: [String!] - storagePathNotIn: [String!] - storagePathGT: String - storagePathGTE: String - storagePathLT: String - storagePathLTE: String - storagePathContains: String - storagePathHasPrefix: String - storagePathHasSuffix: String - storagePathIsNil: Boolean - storagePathNotNil: Boolean - storagePathEqualFold: String - storagePathContainsFold: String -} -type FileSearchResult { - files: [File!] + entitlement: Entitlement! } """ -FileWhereInput is used for filtering File objects. +EntitlementWhereInput is used for filtering Entitlement objects. Input was generated by ent. """ -input FileWhereInput { - not: FileWhereInput - and: [FileWhereInput!] - or: [FileWhereInput!] +input EntitlementWhereInput { + not: EntitlementWhereInput + and: [EntitlementWhereInput!] + or: [EntitlementWhereInput!] """ id field predicates """ @@ -7516,275 +7247,136 @@ input FileWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - provided_file_name field predicates + owner_id field predicates """ - providedFileName: String - providedFileNameNEQ: String - providedFileNameIn: [String!] - providedFileNameNotIn: [String!] - providedFileNameGT: String - providedFileNameGTE: String - providedFileNameLT: String - providedFileNameLTE: String - providedFileNameContains: String - providedFileNameHasPrefix: String - providedFileNameHasSuffix: String - providedFileNameEqualFold: String - providedFileNameContainsFold: String + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - provided_file_extension field predicates + plan_id field predicates """ - providedFileExtension: String - providedFileExtensionNEQ: String - providedFileExtensionIn: [String!] - providedFileExtensionNotIn: [String!] - providedFileExtensionGT: String - providedFileExtensionGTE: String - providedFileExtensionLT: String - providedFileExtensionLTE: String - providedFileExtensionContains: String - providedFileExtensionHasPrefix: String - providedFileExtensionHasSuffix: String - providedFileExtensionEqualFold: String - providedFileExtensionContainsFold: String + planID: ID + planIDNEQ: ID + planIDIn: [ID!] + planIDNotIn: [ID!] + planIDGT: ID + planIDGTE: ID + planIDLT: ID + planIDLTE: ID + planIDContains: ID + planIDHasPrefix: ID + planIDHasSuffix: ID + planIDEqualFold: ID + planIDContainsFold: ID """ - provided_file_size field predicates + organization_id field predicates """ - providedFileSize: Int - providedFileSizeNEQ: Int - providedFileSizeIn: [Int!] - providedFileSizeNotIn: [Int!] - providedFileSizeGT: Int - providedFileSizeGTE: Int - providedFileSizeLT: Int - providedFileSizeLTE: Int - providedFileSizeIsNil: Boolean - providedFileSizeNotNil: Boolean + organizationID: ID + organizationIDNEQ: ID + organizationIDIn: [ID!] + organizationIDNotIn: [ID!] + organizationIDGT: ID + organizationIDGTE: ID + organizationIDLT: ID + organizationIDLTE: ID + organizationIDContains: ID + organizationIDHasPrefix: ID + organizationIDHasSuffix: ID + organizationIDEqualFold: ID + organizationIDContainsFold: ID """ - persisted_file_size field predicates + external_customer_id field predicates """ - persistedFileSize: Int - persistedFileSizeNEQ: Int - persistedFileSizeIn: [Int!] - persistedFileSizeNotIn: [Int!] - persistedFileSizeGT: Int - persistedFileSizeGTE: Int - persistedFileSizeLT: Int - persistedFileSizeLTE: Int - persistedFileSizeIsNil: Boolean - persistedFileSizeNotNil: Boolean + externalCustomerID: String + externalCustomerIDNEQ: String + externalCustomerIDIn: [String!] + externalCustomerIDNotIn: [String!] + externalCustomerIDGT: String + externalCustomerIDGTE: String + externalCustomerIDLT: String + externalCustomerIDLTE: String + externalCustomerIDContains: String + externalCustomerIDHasPrefix: String + externalCustomerIDHasSuffix: String + externalCustomerIDIsNil: Boolean + externalCustomerIDNotNil: Boolean + externalCustomerIDEqualFold: String + externalCustomerIDContainsFold: String """ - detected_mime_type field predicates + external_subscription_id field predicates """ - detectedMimeType: String - detectedMimeTypeNEQ: String - detectedMimeTypeIn: [String!] - detectedMimeTypeNotIn: [String!] - detectedMimeTypeGT: String - detectedMimeTypeGTE: String - detectedMimeTypeLT: String - detectedMimeTypeLTE: String - detectedMimeTypeContains: String - detectedMimeTypeHasPrefix: String - detectedMimeTypeHasSuffix: String - detectedMimeTypeIsNil: Boolean - detectedMimeTypeNotNil: Boolean - detectedMimeTypeEqualFold: String - detectedMimeTypeContainsFold: String + externalSubscriptionID: String + externalSubscriptionIDNEQ: String + externalSubscriptionIDIn: [String!] + externalSubscriptionIDNotIn: [String!] + externalSubscriptionIDGT: String + externalSubscriptionIDGTE: String + externalSubscriptionIDLT: String + externalSubscriptionIDLTE: String + externalSubscriptionIDContains: String + externalSubscriptionIDHasPrefix: String + externalSubscriptionIDHasSuffix: String + externalSubscriptionIDIsNil: Boolean + externalSubscriptionIDNotNil: Boolean + externalSubscriptionIDEqualFold: String + externalSubscriptionIDContainsFold: String """ - md5_hash field predicates + expires field predicates """ - md5Hash: String - md5HashNEQ: String - md5HashIn: [String!] - md5HashNotIn: [String!] - md5HashGT: String - md5HashGTE: String - md5HashLT: String - md5HashLTE: String - md5HashContains: String - md5HashHasPrefix: String - md5HashHasSuffix: String - md5HashIsNil: Boolean - md5HashNotNil: Boolean - md5HashEqualFold: String - md5HashContainsFold: String + expires: Boolean + expiresNEQ: Boolean """ - detected_content_type field predicates + expires_at field predicates """ - detectedContentType: String - detectedContentTypeNEQ: String - detectedContentTypeIn: [String!] - detectedContentTypeNotIn: [String!] - detectedContentTypeGT: String - detectedContentTypeGTE: String - detectedContentTypeLT: String - detectedContentTypeLTE: String - detectedContentTypeContains: String - detectedContentTypeHasPrefix: String - detectedContentTypeHasSuffix: String - detectedContentTypeEqualFold: String - detectedContentTypeContainsFold: String + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean """ - store_key field predicates + cancelled field predicates """ - storeKey: String - storeKeyNEQ: String - storeKeyIn: [String!] - storeKeyNotIn: [String!] - storeKeyGT: String - storeKeyGTE: String - storeKeyLT: String - storeKeyLTE: String - storeKeyContains: String - storeKeyHasPrefix: String - storeKeyHasSuffix: String - storeKeyIsNil: Boolean - storeKeyNotNil: Boolean - storeKeyEqualFold: String - storeKeyContainsFold: String + cancelled: Boolean + cancelledNEQ: Boolean """ - category_type field predicates + owner edge predicates """ - categoryType: String - categoryTypeNEQ: String - categoryTypeIn: [String!] - categoryTypeNotIn: [String!] - categoryTypeGT: String - categoryTypeGTE: String - categoryTypeLT: String - categoryTypeLTE: String - categoryTypeContains: String - categoryTypeHasPrefix: String - categoryTypeHasSuffix: String - categoryTypeIsNil: Boolean - categoryTypeNotNil: Boolean - categoryTypeEqualFold: String - categoryTypeContainsFold: String - """ - uri field predicates - """ - uri: String - uriNEQ: String - uriIn: [String!] - uriNotIn: [String!] - uriGT: String - uriGTE: String - uriLT: String - uriLTE: String - uriContains: String - uriHasPrefix: String - uriHasSuffix: String - uriIsNil: Boolean - uriNotNil: Boolean - uriEqualFold: String - uriContainsFold: String - """ - storage_scheme field predicates - """ - storageScheme: String - storageSchemeNEQ: String - storageSchemeIn: [String!] - storageSchemeNotIn: [String!] - storageSchemeGT: String - storageSchemeGTE: String - storageSchemeLT: String - storageSchemeLTE: String - storageSchemeContains: String - storageSchemeHasPrefix: String - storageSchemeHasSuffix: String - storageSchemeIsNil: Boolean - storageSchemeNotNil: Boolean - storageSchemeEqualFold: String - storageSchemeContainsFold: String - """ - storage_volume field predicates - """ - storageVolume: String - storageVolumeNEQ: String - storageVolumeIn: [String!] - storageVolumeNotIn: [String!] - storageVolumeGT: String - storageVolumeGTE: String - storageVolumeLT: String - storageVolumeLTE: String - storageVolumeContains: String - storageVolumeHasPrefix: String - storageVolumeHasSuffix: String - storageVolumeIsNil: Boolean - storageVolumeNotNil: Boolean - storageVolumeEqualFold: String - storageVolumeContainsFold: String - """ - storage_path field predicates - """ - storagePath: String - storagePathNEQ: String - storagePathIn: [String!] - storagePathNotIn: [String!] - storagePathGT: String - storagePathGTE: String - storagePathLT: String - storagePathLTE: String - storagePathContains: String - storagePathHasPrefix: String - storagePathHasSuffix: String - storagePathIsNil: Boolean - storagePathNotNil: Boolean - storagePathEqualFold: String - storagePathContainsFold: String + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - user edge predicates + plan edge predicates """ - hasUser: Boolean - hasUserWith: [UserWhereInput!] + hasPlan: Boolean + hasPlanWith: [EntitlementPlanWhereInput!] """ organization edge predicates """ hasOrganization: Boolean hasOrganizationWith: [OrganizationWhereInput!] """ - group edge predicates - """ - hasGroup: Boolean - hasGroupWith: [GroupWhereInput!] - """ - contact edge predicates - """ - hasContact: Boolean - hasContactWith: [ContactWhereInput!] - """ - entity edge predicates - """ - hasEntity: Boolean - hasEntityWith: [EntityWhereInput!] - """ - usersetting edge predicates - """ - hasUsersetting: Boolean - hasUsersettingWith: [UserSettingWhereInput!] - """ - organizationsetting edge predicates - """ - hasOrganizationsetting: Boolean - hasOrganizationsettingWith: [OrganizationSettingWhereInput!] - """ - template edge predicates - """ - hasTemplate: Boolean - hasTemplateWith: [TemplateWhereInput!] - """ - documentdata edge predicates - """ - hasDocumentdata: Boolean - hasDocumentdataWith: [DocumentDataWhereInput!] - """ events edge predicates """ hasEvents: Boolean hasEventsWith: [EventWhereInput!] } -type Group implements Node { +type Entity implements Node { id: ID! createdAt: Time updatedAt: Time @@ -7801,50 +7393,53 @@ type Group implements Node { """ ownerID: ID """ - the name of the group - must be unique within the organization + the name of the entity """ - name: String! + name: String """ - the groups description + The entity's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the entity """ description: String """ - the URL to an auto generated gravatar image for the group + domains associated with the entity """ - gravatarLogoURL: String + domains: [String!] """ - the URL to an image uploaded by the customer for the groups avatar image + The type of the entity """ - logoURL: String + entityTypeID: ID """ - The group's displayed 'friendly' name + status of the entity """ - displayName: String! + status: String owner: Organization - setting: GroupSetting! - users: [User!] - events: [Event!] - integrations: [Integration!] + contacts: [Contact!] + documents: [DocumentData!] + notes: [Note!] files: [File!] - members: [GroupMembership!] + entityType: EntityType } """ -Return response for createBulkGroup mutation +Return response for createBulkEntity mutation """ -type GroupBulkCreatePayload { +type EntityBulkCreatePayload { """ - Created groups + Created entities """ - groups: [Group!] + entities: [Entity!] } """ A connection to a list of items. """ -type GroupConnection { +type EntityConnection { """ A list of edges. """ - edges: [GroupEdge] + edges: [EntityEdge] """ Information to aid in pagination. """ @@ -7855,41 +7450,41 @@ type GroupConnection { totalCount: Int! } """ -Return response for createGroup mutation +Return response for createEntity mutation """ -type GroupCreatePayload { +type EntityCreatePayload { """ - Created group + Created entity """ - group: Group! + entity: Entity! } """ -Return response for deleteGroup mutation +Return response for deleteEntity mutation """ -type GroupDeletePayload { +type EntityDeletePayload { """ - Deleted group ID + Deleted entity ID """ deletedID: ID! } """ An edge in a connection. """ -type GroupEdge { +type EntityEdge { """ The item at the end of the edge. """ - node: Group + node: Entity """ A cursor for use in pagination. """ cursor: Cursor! } -type GroupHistory implements Node { +type EntityHistory implements Node { id: ID! historyTime: Time! ref: String - operation: GroupHistoryOpType! + operation: EntityHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -7905,34 +7500,38 @@ type GroupHistory implements Node { """ ownerID: String """ - the name of the group - must be unique within the organization + the name of the entity """ - name: String! + name: String """ - the groups description + The entity's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the entity """ description: String """ - the URL to an auto generated gravatar image for the group + domains associated with the entity """ - gravatarLogoURL: String + domains: [String!] """ - the URL to an image uploaded by the customer for the groups avatar image + The type of the entity """ - logoURL: String + entityTypeID: String """ - The group's displayed 'friendly' name + status of the entity """ - displayName: String! + status: String } """ A connection to a list of items. """ -type GroupHistoryConnection { +type EntityHistoryConnection { """ A list of edges. """ - edges: [GroupHistoryEdge] + edges: [EntityHistoryEdge] """ Information to aid in pagination. """ @@ -7945,52 +7544,52 @@ type GroupHistoryConnection { """ An edge in a connection. """ -type GroupHistoryEdge { +type EntityHistoryEdge { """ The item at the end of the edge. """ - node: GroupHistory + node: EntityHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -GroupHistoryOpType is enum for the field operation +EntityHistoryOpType is enum for the field operation """ -enum GroupHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EntityHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -Ordering options for GroupHistory connections +Ordering options for EntityHistory connections """ -input GroupHistoryOrder { +input EntityHistoryOrder { """ The ordering direction. """ direction: OrderDirection! = ASC """ - The field by which to order GroupHistories. + The field by which to order EntityHistories. """ - field: GroupHistoryOrderField! + field: EntityHistoryOrderField! } """ -Properties by which GroupHistory connections can be ordered. +Properties by which EntityHistory connections can be ordered. """ -enum GroupHistoryOrderField { +enum EntityHistoryOrderField { name display_name } """ -GroupHistoryWhereInput is used for filtering GroupHistory objects. +EntityHistoryWhereInput is used for filtering EntityHistory objects. Input was generated by ent. """ -input GroupHistoryWhereInput { - not: GroupHistoryWhereInput - and: [GroupHistoryWhereInput!] - or: [GroupHistoryWhereInput!] +input EntityHistoryWhereInput { + not: EntityHistoryWhereInput + and: [EntityHistoryWhereInput!] + or: [EntityHistoryWhereInput!] """ id field predicates """ @@ -8036,10 +7635,10 @@ input GroupHistoryWhereInput { """ operation field predicates """ - operation: GroupHistoryOpType - operationNEQ: GroupHistoryOpType - operationIn: [GroupHistoryOpType!] - operationNotIn: [GroupHistoryOpType!] + operation: EntityHistoryOpType + operationNEQ: EntityHistoryOpType + operationIn: [EntityHistoryOpType!] + operationNotIn: [EntityHistoryOpType!] """ created_at field predicates """ @@ -8165,6 +7764,8 @@ input GroupHistoryWhereInput { nameContains: String nameHasPrefix: String nameHasSuffix: String + nameIsNil: Boolean + nameNotNil: Boolean nameEqualFold: String nameContainsFold: String """ @@ -8181,41 +7782,110 @@ input GroupHistoryWhereInput { displayNameContains: String displayNameHasPrefix: String displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean displayNameEqualFold: String displayNameContainsFold: String -} -type GroupMembership implements Node { - id: ID! - createdAt: Time - updatedAt: Time + """ + entity_type_id field predicates + """ + entityTypeID: String + entityTypeIDNEQ: String + entityTypeIDIn: [String!] + entityTypeIDNotIn: [String!] + entityTypeIDGT: String + entityTypeIDGTE: String + entityTypeIDLT: String + entityTypeIDLTE: String + entityTypeIDContains: String + entityTypeIDHasPrefix: String + entityTypeIDHasSuffix: String + entityTypeIDIsNil: Boolean + entityTypeIDNotNil: Boolean + entityTypeIDEqualFold: String + entityTypeIDContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String +} +""" +Ordering options for Entity connections +""" +input EntityOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Entities. + """ + field: EntityOrderField! +} +""" +Properties by which Entity connections can be ordered. +""" +enum EntityOrderField { + name + display_name +} +type EntitySearchResult { + entities: [Entity!] +} +type EntityType implements Node { + id: ID! + createdAt: Time + updatedAt: Time createdBy: String updatedBy: String deletedAt: Time deletedBy: String - role: GroupMembershipRole! - groupID: ID! - userID: ID! - group: Group! - user: User! - events: [Event!] + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the entity + """ + name: String! + owner: Organization + entities: [Entity!] } """ -Return response for createBulkGroupMembership mutation +Return response for createBulkEntityType mutation """ -type GroupMembershipBulkCreatePayload { +type EntityTypeBulkCreatePayload { """ - Created groupMemberships + Created entityTypes """ - groupMemberships: [GroupMembership!] + entityTypes: [EntityType!] } """ A connection to a list of items. """ -type GroupMembershipConnection { +type EntityTypeConnection { """ A list of edges. """ - edges: [GroupMembershipEdge] + edges: [EntityTypeEdge] """ Information to aid in pagination. """ @@ -8226,59 +7896,68 @@ type GroupMembershipConnection { totalCount: Int! } """ -Return response for createGroupMembership mutation +Return response for createEntityType mutation """ -type GroupMembershipCreatePayload { +type EntityTypeCreatePayload { """ - Created groupMembership + Created entityType """ - groupMembership: GroupMembership! + entityType: EntityType! } """ -Return response for deleteGroupMembership mutation +Return response for deleteEntityType mutation """ -type GroupMembershipDeletePayload { +type EntityTypeDeletePayload { """ - Deleted groupMembership ID + Deleted entityType ID """ deletedID: ID! } """ An edge in a connection. """ -type GroupMembershipEdge { +type EntityTypeEdge { """ The item at the end of the edge. """ - node: GroupMembership + node: EntityType """ A cursor for use in pagination. """ cursor: Cursor! } -type GroupMembershipHistory implements Node { +type EntityTypeHistory implements Node { id: ID! historyTime: Time! ref: String - operation: GroupMembershipHistoryOpType! + operation: EntityTypeHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String deletedAt: Time deletedBy: String - role: GroupMembershipHistoryRole! - groupID: String! - userID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the entity + """ + name: String! } """ A connection to a list of items. """ -type GroupMembershipHistoryConnection { +type EntityTypeHistoryConnection { """ A list of edges. """ - edges: [GroupMembershipHistoryEdge] + edges: [EntityTypeHistoryEdge] """ Information to aid in pagination. """ @@ -8291,40 +7970,51 @@ type GroupMembershipHistoryConnection { """ An edge in a connection. """ -type GroupMembershipHistoryEdge { +type EntityTypeHistoryEdge { """ The item at the end of the edge. """ - node: GroupMembershipHistory + node: EntityTypeHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -GroupMembershipHistoryOpType is enum for the field operation +EntityTypeHistoryOpType is enum for the field operation """ -enum GroupMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EntityTypeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -GroupMembershipHistoryRole is enum for the field role +Ordering options for EntityTypeHistory connections """ -enum GroupMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER +input EntityTypeHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order EntityTypeHistories. + """ + field: EntityTypeHistoryOrderField! } """ -GroupMembershipHistoryWhereInput is used for filtering GroupMembershipHistory objects. +Properties by which EntityTypeHistory connections can be ordered. +""" +enum EntityTypeHistoryOrderField { + name +} +""" +EntityTypeHistoryWhereInput is used for filtering EntityTypeHistory objects. Input was generated by ent. """ -input GroupMembershipHistoryWhereInput { - not: GroupMembershipHistoryWhereInput - and: [GroupMembershipHistoryWhereInput!] - or: [GroupMembershipHistoryWhereInput!] +input EntityTypeHistoryWhereInput { + not: EntityTypeHistoryWhereInput + and: [EntityTypeHistoryWhereInput!] + or: [EntityTypeHistoryWhereInput!] """ id field predicates """ @@ -8370,10 +8060,10 @@ input GroupMembershipHistoryWhereInput { """ operation field predicates """ - operation: GroupMembershipHistoryOpType - operationNEQ: GroupMembershipHistoryOpType - operationIn: [GroupMembershipHistoryOpType!] - operationNotIn: [GroupMembershipHistoryOpType!] + operation: EntityTypeHistoryOpType + operationNEQ: EntityTypeHistoryOpType + operationIn: [EntityTypeHistoryOpType!] + operationNotIn: [EntityTypeHistoryOpType!] """ created_at field predicates """ @@ -8468,70 +8158,79 @@ input GroupMembershipHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - role field predicates - """ - role: GroupMembershipHistoryRole - roleNEQ: GroupMembershipHistoryRole - roleIn: [GroupMembershipHistoryRole!] - roleNotIn: [GroupMembershipHistoryRole!] - """ - group_id field predicates + owner_id field predicates """ - groupID: String - groupIDNEQ: String - groupIDIn: [String!] - groupIDNotIn: [String!] - groupIDGT: String - groupIDGTE: String - groupIDLT: String - groupIDLTE: String - groupIDContains: String - groupIDHasPrefix: String - groupIDHasSuffix: String - groupIDEqualFold: String - groupIDContainsFold: String + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ - user_id field predicates + name field predicates """ - userID: String - userIDNEQ: String - userIDIn: [String!] - userIDNotIn: [String!] - userIDGT: String - userIDGTE: String - userIDLT: String - userIDLTE: String - userIDContains: String - userIDHasPrefix: String - userIDHasSuffix: String - userIDEqualFold: String - userIDContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String } """ -GroupMembershipRole is enum for the field role +Ordering options for EntityType connections """ -enum GroupMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER -} +input EntityTypeOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order EntityTypes. + """ + field: EntityTypeOrderField! +} """ -Return response for updateGroupMembership mutation +Properties by which EntityType connections can be ordered. """ -type GroupMembershipUpdatePayload { +enum EntityTypeOrderField { + name +} +type EntityTypeSearchResult { + entityTypes: [EntityType!] +} +""" +Return response for updateEntityType mutation +""" +type EntityTypeUpdatePayload { """ - Updated groupMembership + Updated entityType """ - groupMembership: GroupMembership! + entityType: EntityType! } """ -GroupMembershipWhereInput is used for filtering GroupMembership objects. +EntityTypeWhereInput is used for filtering EntityType objects. Input was generated by ent. """ -input GroupMembershipWhereInput { - not: GroupMembershipWhereInput - and: [GroupMembershipWhereInput!] - or: [GroupMembershipWhereInput!] +input EntityTypeWhereInput { + not: EntityTypeWhereInput + and: [EntityTypeWhereInput!] + or: [EntityTypeWhereInput!] """ id field predicates """ @@ -8639,173 +8338,343 @@ input GroupMembershipWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - role field predicates - """ - role: GroupMembershipRole - roleNEQ: GroupMembershipRole - roleIn: [GroupMembershipRole!] - roleNotIn: [GroupMembershipRole!] - groupID: String - userID: String -} -""" -Ordering options for Group connections -""" -input GroupOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Groups. - """ - field: GroupOrderField! -} -""" -Properties by which Group connections can be ordered. -""" -enum GroupOrderField { - name - display_name -} -type GroupSearchResult { - groups: [Group!] -} -type GroupSetting implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization - """ - visibility: GroupSettingVisibility! - """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either + owner_id field predicates """ - joinPolicy: GroupSettingJoinPolicy! + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - whether to sync group members to slack groups + name field predicates """ - syncToSlack: Boolean + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - whether to sync group members to github groups + owner edge predicates """ - syncToGithub: Boolean + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - the group id associated with the settings + entities edge predicates """ - groupID: ID - group: Group + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] } """ -Return response for createBulkGroupSetting mutation +Return response for updateEntity mutation """ -type GroupSettingBulkCreatePayload { +type EntityUpdatePayload { """ - Created groupSettings + Updated entity """ - groupSettings: [GroupSetting!] + entity: Entity! } """ -A connection to a list of items. +EntityWhereInput is used for filtering Entity objects. +Input was generated by ent. """ -type GroupSettingConnection { - """ - A list of edges. - """ - edges: [GroupSettingEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! +input EntityWhereInput { + not: EntityWhereInput + and: [EntityWhereInput!] + or: [EntityWhereInput!] """ - Identifies the total count of items in the connection. + id field predicates """ - totalCount: Int! -} -""" -Return response for createGroupSetting mutation -""" -type GroupSettingCreatePayload { + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - Created groupSetting + created_at field predicates """ - groupSetting: GroupSetting! -} -""" -Return response for deleteGroupSetting mutation -""" -type GroupSettingDeletePayload { + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - Deleted groupSetting ID + updated_at field predicates """ - deletedID: ID! -} -""" -An edge in a connection. -""" -type GroupSettingEdge { + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - The item at the end of the edge. + created_by field predicates """ - node: GroupSetting + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - A cursor for use in pagination. + updated_by field predicates """ - cursor: Cursor! -} -type GroupSettingHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: GroupSettingHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - tags associated with the object + deleted_at field predicates """ - tags: [String!] deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + owner_id field predicates """ - visibility: GroupSettingHistoryVisibility! + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either + name field predicates """ - joinPolicy: GroupSettingHistoryJoinPolicy! + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameIsNil: Boolean + nameNotNil: Boolean + nameEqualFold: String + nameContainsFold: String """ - whether to sync group members to slack groups + display_name field predicates """ - syncToSlack: Boolean + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String """ - whether to sync group members to github groups + entity_type_id field predicates """ - syncToGithub: Boolean + entityTypeID: ID + entityTypeIDNEQ: ID + entityTypeIDIn: [ID!] + entityTypeIDNotIn: [ID!] + entityTypeIDGT: ID + entityTypeIDGTE: ID + entityTypeIDLT: ID + entityTypeIDLTE: ID + entityTypeIDContains: ID + entityTypeIDHasPrefix: ID + entityTypeIDHasSuffix: ID + entityTypeIDIsNil: Boolean + entityTypeIDNotNil: Boolean + entityTypeIDEqualFold: ID + entityTypeIDContainsFold: ID """ - the group id associated with the settings + status field predicates """ - groupID: String + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + contacts edge predicates + """ + hasContacts: Boolean + hasContactsWith: [ContactWhereInput!] + """ + documents edge predicates + """ + hasDocuments: Boolean + hasDocumentsWith: [DocumentDataWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + entity_type edge predicates + """ + hasEntityType: Boolean + hasEntityTypeWith: [EntityTypeWhereInput!] +} +type Event implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map + user: [User!] + group: [Group!] + integration: [Integration!] + organization: [Organization!] + invite: [Invite!] + feature: [Feature!] + entitlementplan: [EntitlementPlan!] + entitlementplanfeature: [EntitlementPlanFeature!] + personalAccessToken: [PersonalAccessToken!] + oauth2token: [OhAuthTooToken!] + hush: [Hush!] + orgmembership: [OrgMembership!] + groupmembership: [GroupMembership!] + entitlement: [Entitlement!] + webhook: [Webhook!] + subscriber: [Subscriber!] + file: [File!] +} +""" +Return response for createBulkEvent mutation +""" +type EventBulkCreatePayload { + """ + Created events + """ + events: [Event!] } """ A connection to a list of items. """ -type GroupSettingHistoryConnection { +type EventConnection { """ A list of edges. """ - edges: [GroupSettingHistoryEdge] + edges: [EventEdge] """ Information to aid in pagination. """ @@ -8816,50 +8685,100 @@ type GroupSettingHistoryConnection { totalCount: Int! } """ +Return response for createEvent mutation +""" +type EventCreatePayload { + """ + Created event + """ + event: Event! +} +""" +Return response for deleteEvent mutation +""" +type EventDeletePayload { + """ + Deleted event ID + """ + deletedID: ID! +} +""" An edge in a connection. """ -type GroupSettingHistoryEdge { +type EventEdge { """ The item at the end of the edge. """ - node: GroupSettingHistory + node: Event """ A cursor for use in pagination. """ cursor: Cursor! } +type EventHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: EventHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map +} """ -GroupSettingHistoryJoinPolicy is enum for the field join_policy +A connection to a list of items. """ -enum GroupSettingHistoryJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { - OPEN - INVITE_ONLY - APPLICATION_ONLY - INVITE_OR_APPLICATION +type EventHistoryConnection { + """ + A list of edges. + """ + edges: [EventHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! } """ -GroupSettingHistoryOpType is enum for the field operation +An edge in a connection. """ -enum GroupSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE +type EventHistoryEdge { + """ + The item at the end of the edge. + """ + node: EventHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! } """ -GroupSettingHistoryVisibility is enum for the field visibility +EventHistoryOpType is enum for the field operation """ -enum GroupSettingHistoryVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { - PUBLIC - PRIVATE +enum EventHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE } """ -GroupSettingHistoryWhereInput is used for filtering GroupSettingHistory objects. +EventHistoryWhereInput is used for filtering EventHistory objects. Input was generated by ent. """ -input GroupSettingHistoryWhereInput { - not: GroupSettingHistoryWhereInput - and: [GroupSettingHistoryWhereInput!] - or: [GroupSettingHistoryWhereInput!] +input EventHistoryWhereInput { + not: EventHistoryWhereInput + and: [EventHistoryWhereInput!] + or: [EventHistoryWhereInput!] """ id field predicates """ @@ -8905,10 +8824,10 @@ input GroupSettingHistoryWhereInput { """ operation field predicates """ - operation: GroupSettingHistoryOpType - operationNEQ: GroupSettingHistoryOpType - operationIn: [GroupSettingHistoryOpType!] - operationNotIn: [GroupSettingHistoryOpType!] + operation: EventHistoryOpType + operationNEQ: EventHistoryOpType + operationIn: [EventHistoryOpType!] + operationNotIn: [EventHistoryOpType!] """ created_at field predicates """ @@ -8972,119 +8891,78 @@ input GroupSettingHistoryWhereInput { updatedByEqualFold: String updatedByContainsFold: String """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - visibility field predicates - """ - visibility: GroupSettingHistoryVisibility - visibilityNEQ: GroupSettingHistoryVisibility - visibilityIn: [GroupSettingHistoryVisibility!] - visibilityNotIn: [GroupSettingHistoryVisibility!] - """ - join_policy field predicates - """ - joinPolicy: GroupSettingHistoryJoinPolicy - joinPolicyNEQ: GroupSettingHistoryJoinPolicy - joinPolicyIn: [GroupSettingHistoryJoinPolicy!] - joinPolicyNotIn: [GroupSettingHistoryJoinPolicy!] - """ - sync_to_slack field predicates + event_id field predicates """ - syncToSlack: Boolean - syncToSlackNEQ: Boolean - syncToSlackIsNil: Boolean - syncToSlackNotNil: Boolean + eventID: String + eventIDNEQ: String + eventIDIn: [String!] + eventIDNotIn: [String!] + eventIDGT: String + eventIDGTE: String + eventIDLT: String + eventIDLTE: String + eventIDContains: String + eventIDHasPrefix: String + eventIDHasSuffix: String + eventIDIsNil: Boolean + eventIDNotNil: Boolean + eventIDEqualFold: String + eventIDContainsFold: String """ - sync_to_github field predicates + correlation_id field predicates """ - syncToGithub: Boolean - syncToGithubNEQ: Boolean - syncToGithubIsNil: Boolean - syncToGithubNotNil: Boolean + correlationID: String + correlationIDNEQ: String + correlationIDIn: [String!] + correlationIDNotIn: [String!] + correlationIDGT: String + correlationIDGTE: String + correlationIDLT: String + correlationIDLTE: String + correlationIDContains: String + correlationIDHasPrefix: String + correlationIDHasSuffix: String + correlationIDIsNil: Boolean + correlationIDNotNil: Boolean + correlationIDEqualFold: String + correlationIDContainsFold: String """ - group_id field predicates + event_type field predicates """ - groupID: String - groupIDNEQ: String - groupIDIn: [String!] - groupIDNotIn: [String!] - groupIDGT: String - groupIDGTE: String - groupIDLT: String - groupIDLTE: String - groupIDContains: String - groupIDHasPrefix: String - groupIDHasSuffix: String - groupIDIsNil: Boolean - groupIDNotNil: Boolean - groupIDEqualFold: String - groupIDContainsFold: String -} -""" -GroupSettingJoinPolicy is enum for the field join_policy -""" -enum GroupSettingJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { - OPEN - INVITE_ONLY - APPLICATION_ONLY - INVITE_OR_APPLICATION + eventType: String + eventTypeNEQ: String + eventTypeIn: [String!] + eventTypeNotIn: [String!] + eventTypeGT: String + eventTypeGTE: String + eventTypeLT: String + eventTypeLTE: String + eventTypeContains: String + eventTypeHasPrefix: String + eventTypeHasSuffix: String + eventTypeEqualFold: String + eventTypeContainsFold: String } -type GroupSettingSearchResult { - groupSettings: [GroupSetting!] +type EventSearchResult { + events: [Event!] } """ -Return response for updateGroupSetting mutation +Return response for updateEvent mutation """ -type GroupSettingUpdatePayload { +type EventUpdatePayload { """ - Updated groupSetting + Updated event """ - groupSetting: GroupSetting! -} -""" -GroupSettingVisibility is enum for the field visibility -""" -enum GroupSettingVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { - PUBLIC - PRIVATE + event: Event! } """ -GroupSettingWhereInput is used for filtering GroupSetting objects. +EventWhereInput is used for filtering Event objects. Input was generated by ent. """ -input GroupSettingWhereInput { - not: GroupSettingWhereInput - and: [GroupSettingWhereInput!] - or: [GroupSettingWhereInput!] +input EventWhereInput { + not: EventWhereInput + and: [EventWhereInput!] + or: [EventWhereInput!] """ id field predicates """ @@ -9161,298 +9039,144 @@ input GroupSettingWhereInput { updatedByEqualFold: String updatedByContainsFold: String """ - deleted_at field predicates + event_id field predicates """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + eventID: String + eventIDNEQ: String + eventIDIn: [String!] + eventIDNotIn: [String!] + eventIDGT: String + eventIDGTE: String + eventIDLT: String + eventIDLTE: String + eventIDContains: String + eventIDHasPrefix: String + eventIDHasSuffix: String + eventIDIsNil: Boolean + eventIDNotNil: Boolean + eventIDEqualFold: String + eventIDContainsFold: String """ - deleted_by field predicates + correlation_id field predicates """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + correlationID: String + correlationIDNEQ: String + correlationIDIn: [String!] + correlationIDNotIn: [String!] + correlationIDGT: String + correlationIDGTE: String + correlationIDLT: String + correlationIDLTE: String + correlationIDContains: String + correlationIDHasPrefix: String + correlationIDHasSuffix: String + correlationIDIsNil: Boolean + correlationIDNotNil: Boolean + correlationIDEqualFold: String + correlationIDContainsFold: String """ - visibility field predicates + event_type field predicates """ - visibility: GroupSettingVisibility - visibilityNEQ: GroupSettingVisibility - visibilityIn: [GroupSettingVisibility!] - visibilityNotIn: [GroupSettingVisibility!] - """ - join_policy field predicates - """ - joinPolicy: GroupSettingJoinPolicy - joinPolicyNEQ: GroupSettingJoinPolicy - joinPolicyIn: [GroupSettingJoinPolicy!] - joinPolicyNotIn: [GroupSettingJoinPolicy!] - """ - sync_to_slack field predicates - """ - syncToSlack: Boolean - syncToSlackNEQ: Boolean - syncToSlackIsNil: Boolean - syncToSlackNotNil: Boolean - """ - sync_to_github field predicates - """ - syncToGithub: Boolean - syncToGithubNEQ: Boolean - syncToGithubIsNil: Boolean - syncToGithubNotNil: Boolean + eventType: String + eventTypeNEQ: String + eventTypeIn: [String!] + eventTypeNotIn: [String!] + eventTypeGT: String + eventTypeGTE: String + eventTypeLT: String + eventTypeLTE: String + eventTypeContains: String + eventTypeHasPrefix: String + eventTypeHasSuffix: String + eventTypeEqualFold: String + eventTypeContainsFold: String """ - group_id field predicates + user edge predicates """ - groupID: ID - groupIDNEQ: ID - groupIDIn: [ID!] - groupIDNotIn: [ID!] - groupIDGT: ID - groupIDGTE: ID - groupIDLT: ID - groupIDLTE: ID - groupIDContains: ID - groupIDHasPrefix: ID - groupIDHasSuffix: ID - groupIDIsNil: Boolean - groupIDNotNil: Boolean - groupIDEqualFold: ID - groupIDContainsFold: ID + hasUser: Boolean + hasUserWith: [UserWhereInput!] """ group edge predicates """ hasGroup: Boolean hasGroupWith: [GroupWhereInput!] -} -""" -Return response for updateGroup mutation -""" -type GroupUpdatePayload { - """ - Updated group """ - group: Group! -} -""" -GroupWhereInput is used for filtering Group objects. -Input was generated by ent. -""" -input GroupWhereInput { - not: GroupWhereInput - and: [GroupWhereInput!] - or: [GroupWhereInput!] + integration edge predicates """ - id field predicates + hasIntegration: Boolean + hasIntegrationWith: [IntegrationWhereInput!] """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + organization edge predicates """ - created_at field predicates + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + invite edge predicates """ - updated_at field predicates + hasInvite: Boolean + hasInviteWith: [InviteWhereInput!] """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + feature edge predicates """ - created_by field predicates + hasFeature: Boolean + hasFeatureWith: [FeatureWhereInput!] """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + entitlementplan edge predicates """ - updated_by field predicates + hasEntitlementplan: Boolean + hasEntitlementplanWith: [EntitlementPlanWhereInput!] """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + entitlementplanfeature edge predicates """ - deleted_at field predicates + hasEntitlementplanfeature: Boolean + hasEntitlementplanfeatureWith: [EntitlementPlanFeatureWhereInput!] """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + personal_access_token edge predicates """ - deleted_by field predicates + hasPersonalAccessToken: Boolean + hasPersonalAccessTokenWith: [PersonalAccessTokenWhereInput!] """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + oauth2token edge predicates """ - owner_id field predicates + hasOauth2token: Boolean + hasOauth2tokenWith: [OhAuthTooTokenWhereInput!] """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + hush edge predicates """ - name field predicates + hasHush: Boolean + hasHushWith: [HushWhereInput!] """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + orgmembership edge predicates """ - display_name field predicates + hasOrgmembership: Boolean + hasOrgmembershipWith: [OrgMembershipWhereInput!] """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String + groupmembership edge predicates """ - owner edge predicates + hasGroupmembership: Boolean + hasGroupmembershipWith: [GroupMembershipWhereInput!] """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + entitlement edge predicates """ - setting edge predicates + hasEntitlement: Boolean + hasEntitlementWith: [EntitlementWhereInput!] """ - hasSetting: Boolean - hasSettingWith: [GroupSettingWhereInput!] + webhook edge predicates """ - users edge predicates + hasWebhook: Boolean + hasWebhookWith: [WebhookWhereInput!] """ - hasUsers: Boolean - hasUsersWith: [UserWhereInput!] + subscriber edge predicates """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] - """ - integrations edge predicates - """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] + hasSubscriber: Boolean + hasSubscriberWith: [SubscriberWhereInput!] """ - members edge predicates + file edge predicates """ - hasMembers: Boolean - hasMembersWith: [GroupMembershipWhereInput!] + hasFile: Boolean + hasFileWith: [FileWhereInput!] } -type Hush implements Node { +type Feature implements Node { id: ID! createdAt: Time updatedAt: Time @@ -9461,45 +9185,55 @@ type Hush implements Node { deletedAt: Time deletedBy: String """ - the logical name of the corresponding hush secret or it's general grouping + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the unique name of the feature """ name: String! """ - a description of the hush value or purpose, such as github PAT + the displayed 'friendly' name of the feature """ - description: String + displayName: String """ - the kind of secret, such as sshkey, certificate, api token, etc. + enabled features are available for use """ - kind: String + enabled: Boolean! """ - the generic name of a secret associated with the organization + a description of the feature """ - secretName: String + description: String """ - the integration associated with the secret + metadata for the feature """ - integrations: [Integration!] - organization: [Organization!] + metadata: Map + owner: Organization + plans: [EntitlementPlan!] events: [Event!] + features: [EntitlementPlanFeature!] } """ -Return response for createBulkHush mutation +Return response for createBulkFeature mutation """ -type HushBulkCreatePayload { +type FeatureBulkCreatePayload { """ - Created hushs + Created features """ - hushes: [Hush!] + features: [Feature!] } """ A connection to a list of items. """ -type HushConnection { +type FeatureConnection { """ A list of edges. """ - edges: [HushEdge] + edges: [FeatureEdge] """ Information to aid in pagination. """ @@ -9510,41 +9244,41 @@ type HushConnection { totalCount: Int! } """ -Return response for createHush mutation +Return response for createFeature mutation """ -type HushCreatePayload { +type FeatureCreatePayload { """ - Created hush + Created feature """ - hush: Hush! + feature: Feature! } """ -Return response for deleteHush mutation +Return response for deleteFeature mutation """ -type HushDeletePayload { +type FeatureDeletePayload { """ - Deleted hush ID + Deleted feature ID """ deletedID: ID! } """ An edge in a connection. """ -type HushEdge { +type FeatureEdge { """ The item at the end of the edge. """ - node: Hush + node: Feature """ A cursor for use in pagination. """ cursor: Cursor! } -type HushHistory implements Node { +type FeatureHistory implements Node { id: ID! historyTime: Time! ref: String - operation: HushHistoryOpType! + operation: FeatureHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -9552,30 +9286,42 @@ type HushHistory implements Node { deletedAt: Time deletedBy: String """ - the logical name of the corresponding hush secret or it's general grouping + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the unique name of the feature """ name: String! """ - a description of the hush value or purpose, such as github PAT + the displayed 'friendly' name of the feature """ - description: String + displayName: String """ - the kind of secret, such as sshkey, certificate, api token, etc. + enabled features are available for use """ - kind: String + enabled: Boolean! """ - the generic name of a secret associated with the organization + a description of the feature """ - secretName: String + description: String + """ + metadata for the feature + """ + metadata: Map } """ A connection to a list of items. """ -type HushHistoryConnection { +type FeatureHistoryConnection { """ A list of edges. """ - edges: [HushHistoryEdge] + edges: [FeatureHistoryEdge] """ Information to aid in pagination. """ @@ -9588,52 +9334,32 @@ type HushHistoryConnection { """ An edge in a connection. """ -type HushHistoryEdge { +type FeatureHistoryEdge { """ The item at the end of the edge. """ - node: HushHistory + node: FeatureHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -HushHistoryOpType is enum for the field operation +FeatureHistoryOpType is enum for the field operation """ -enum HushHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum FeatureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -Ordering options for HushHistory connections -""" -input HushHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order HushHistories. - """ - field: HushHistoryOrderField! -} -""" -Properties by which HushHistory connections can be ordered. -""" -enum HushHistoryOrderField { - name - kind -} -""" -HushHistoryWhereInput is used for filtering HushHistory objects. +FeatureHistoryWhereInput is used for filtering FeatureHistory objects. Input was generated by ent. """ -input HushHistoryWhereInput { - not: HushHistoryWhereInput - and: [HushHistoryWhereInput!] - or: [HushHistoryWhereInput!] +input FeatureHistoryWhereInput { + not: FeatureHistoryWhereInput + and: [FeatureHistoryWhereInput!] + or: [FeatureHistoryWhereInput!] """ id field predicates """ @@ -9679,10 +9405,10 @@ input HushHistoryWhereInput { """ operation field predicates """ - operation: HushHistoryOpType - operationNEQ: HushHistoryOpType - operationIn: [HushHistoryOpType!] - operationNotIn: [HushHistoryOpType!] + operation: FeatureHistoryOpType + operationNEQ: FeatureHistoryOpType + operationIn: [FeatureHistoryOpType!] + operationNotIn: [FeatureHistoryOpType!] """ created_at field predicates """ @@ -9777,6 +9503,24 @@ input HushHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ name field predicates """ name: String @@ -9793,79 +9537,67 @@ input HushHistoryWhereInput { nameEqualFold: String nameContainsFold: String """ - kind field predicates + display_name field predicates """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String """ - secret_name field predicates + enabled field predicates """ - secretName: String - secretNameNEQ: String - secretNameIn: [String!] - secretNameNotIn: [String!] - secretNameGT: String - secretNameGTE: String - secretNameLT: String - secretNameLTE: String - secretNameContains: String - secretNameHasPrefix: String - secretNameHasSuffix: String - secretNameIsNil: Boolean - secretNameNotNil: Boolean - secretNameEqualFold: String - secretNameContainsFold: String + enabled: Boolean + enabledNEQ: Boolean + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String +} +type FeatureSearchResult { + features: [Feature!] } """ -Ordering options for Hush connections +Return response for updateFeature mutation """ -input HushOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Hushes. - """ - field: HushOrderField! -} -""" -Properties by which Hush connections can be ordered. -""" -enum HushOrderField { - name - kind -} -""" -Return response for updateHush mutation -""" -type HushUpdatePayload { +type FeatureUpdatePayload { """ - Updated hush + Updated feature """ - hush: Hush! + feature: Feature! } """ -HushWhereInput is used for filtering Hush objects. +FeatureWhereInput is used for filtering Feature objects. Input was generated by ent. """ -input HushWhereInput { - not: HushWhereInput - and: [HushWhereInput!] - or: [HushWhereInput!] +input FeatureWhereInput { + not: FeatureWhereInput + and: [FeatureWhereInput!] + or: [FeatureWhereInput!] """ id field predicates """ @@ -9973,6 +9705,24 @@ input HushWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ name field predicates """ name: String @@ -9989,111 +9739,147 @@ input HushWhereInput { nameEqualFold: String nameContainsFold: String """ - kind field predicates + display_name field predicates """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String """ - secret_name field predicates + enabled field predicates """ - secretName: String - secretNameNEQ: String - secretNameIn: [String!] - secretNameNotIn: [String!] - secretNameGT: String - secretNameGTE: String - secretNameLT: String - secretNameLTE: String - secretNameContains: String - secretNameHasPrefix: String - secretNameHasSuffix: String - secretNameIsNil: Boolean - secretNameNotNil: Boolean - secretNameEqualFold: String - secretNameContainsFold: String + enabled: Boolean + enabledNEQ: Boolean """ - integrations edge predicates + description field predicates """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - organization edge predicates + owner edge predicates """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + plans edge predicates + """ + hasPlans: Boolean + hasPlansWith: [EntitlementPlanWhereInput!] """ events edge predicates """ hasEvents: Boolean hasEventsWith: [EventWhereInput!] + """ + features edge predicates + """ + hasFeatures: Boolean + hasFeaturesWith: [EntitlementPlanFeatureWhereInput!] } -type Integration implements Node { +type File implements Node { id: ID! createdAt: Time updatedAt: Time createdBy: String updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] - deletedAt: Time - deletedBy: String """ - the organization id that owns the object + the name of the file provided in the payload key without the extension """ - ownerID: ID + providedFileName: String! """ - the name of the integration - must be unique within the organization + the extension of the file provided """ - name: String! + providedFileExtension: String! """ - a description of the integration + the computed size of the file in the original http request """ - description: String - kind: String - owner: Organization + providedFileSize: Int + persistedFileSize: Int """ - the secrets associated with the integration + the mime type detected by the system """ - secrets: [Hush!] + detectedMimeType: String """ - the oauth2 tokens associated with the integration + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage """ - oauth2tokens: [OhAuthTooToken!] - events: [Event!] - webhooks: [Webhook!] -} -""" -Return response for createBulkIntegration mutation -""" -type IntegrationBulkCreatePayload { + md5Hash: String """ - Created integrations + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types """ - integrations: [Integration!] + detectedContentType: String! + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + """ + the full URI of the file + """ + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String + user: [User!] + organization: [Organization!] + group: [Group!] + contact: [Contact!] + entity: [Entity!] + usersetting: [UserSetting!] + organizationsetting: [OrganizationSetting!] + template: [Template!] + documentdata: [DocumentData!] + events: [Event!] } """ A connection to a list of items. """ -type IntegrationConnection { +type FileConnection { """ A list of edges. """ - edges: [IntegrationEdge] + edges: [FileEdge] """ Information to aid in pagination. """ @@ -10104,73 +9890,100 @@ type IntegrationConnection { totalCount: Int! } """ -Return response for createIntegration mutation -""" -type IntegrationCreatePayload { - """ - Created integration - """ - integration: Integration! -} -""" -Return response for deleteIntegration mutation +Return response for deleteFile mutation """ -type IntegrationDeletePayload { +type FileDeletePayload { """ - Deleted integration ID + Deleted file ID """ deletedID: ID! } """ An edge in a connection. """ -type IntegrationEdge { +type FileEdge { """ The item at the end of the edge. """ - node: Integration + node: File """ A cursor for use in pagination. """ cursor: Cursor! } -type IntegrationHistory implements Node { +type FileHistory implements Node { id: ID! historyTime: Time! ref: String - operation: IntegrationHistoryOpType! + operation: FileHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] - deletedAt: Time - deletedBy: String """ - the organization id that owns the object + the name of the file provided in the payload key without the extension """ - ownerID: String + providedFileName: String! """ - the name of the integration - must be unique within the organization + the extension of the file provided """ - name: String! + providedFileExtension: String! """ - a description of the integration + the computed size of the file in the original http request """ - description: String - kind: String + providedFileSize: Int + persistedFileSize: Int + """ + the mime type detected by the system + """ + detectedMimeType: String + """ + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + """ + md5Hash: String + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String! + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + """ + the full URI of the file + """ + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String } """ A connection to a list of items. """ -type IntegrationHistoryConnection { +type FileHistoryConnection { """ A list of edges. """ - edges: [IntegrationHistoryEdge] + edges: [FileHistoryEdge] """ Information to aid in pagination. """ @@ -10183,52 +9996,32 @@ type IntegrationHistoryConnection { """ An edge in a connection. """ -type IntegrationHistoryEdge { +type FileHistoryEdge { """ The item at the end of the edge. """ - node: IntegrationHistory + node: FileHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -IntegrationHistoryOpType is enum for the field operation +FileHistoryOpType is enum for the field operation """ -enum IntegrationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum FileHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -Ordering options for IntegrationHistory connections -""" -input IntegrationHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order IntegrationHistories. - """ - field: IntegrationHistoryOrderField! -} -""" -Properties by which IntegrationHistory connections can be ordered. -""" -enum IntegrationHistoryOrderField { - name - kind -} -""" -IntegrationHistoryWhereInput is used for filtering IntegrationHistory objects. +FileHistoryWhereInput is used for filtering FileHistory objects. Input was generated by ent. """ -input IntegrationHistoryWhereInput { - not: IntegrationHistoryWhereInput - and: [IntegrationHistoryWhereInput!] - or: [IntegrationHistoryWhereInput!] +input FileHistoryWhereInput { + not: FileHistoryWhereInput + and: [FileHistoryWhereInput!] + or: [FileHistoryWhereInput!] """ id field predicates """ @@ -10274,10 +10067,10 @@ input IntegrationHistoryWhereInput { """ operation field predicates """ - operation: IntegrationHistoryOpType - operationNEQ: IntegrationHistoryOpType - operationIn: [IntegrationHistoryOpType!] - operationNotIn: [IntegrationHistoryOpType!] + operation: FileHistoryOpType + operationNEQ: FileHistoryOpType + operationIn: [FileHistoryOpType!] + operationNotIn: [FileHistoryOpType!] """ created_at field predicates """ @@ -10372,103 +10165,240 @@ input IntegrationHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + provided_file_name field predicates """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + providedFileName: String + providedFileNameNEQ: String + providedFileNameIn: [String!] + providedFileNameNotIn: [String!] + providedFileNameGT: String + providedFileNameGTE: String + providedFileNameLT: String + providedFileNameLTE: String + providedFileNameContains: String + providedFileNameHasPrefix: String + providedFileNameHasSuffix: String + providedFileNameEqualFold: String + providedFileNameContainsFold: String """ - name field predicates + provided_file_extension field predicates """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + providedFileExtension: String + providedFileExtensionNEQ: String + providedFileExtensionIn: [String!] + providedFileExtensionNotIn: [String!] + providedFileExtensionGT: String + providedFileExtensionGTE: String + providedFileExtensionLT: String + providedFileExtensionLTE: String + providedFileExtensionContains: String + providedFileExtensionHasPrefix: String + providedFileExtensionHasSuffix: String + providedFileExtensionEqualFold: String + providedFileExtensionContainsFold: String """ - kind field predicates + provided_file_size field predicates """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String -} -""" -Ordering options for Integration connections -""" -input IntegrationOrder { + providedFileSize: Int + providedFileSizeNEQ: Int + providedFileSizeIn: [Int!] + providedFileSizeNotIn: [Int!] + providedFileSizeGT: Int + providedFileSizeGTE: Int + providedFileSizeLT: Int + providedFileSizeLTE: Int + providedFileSizeIsNil: Boolean + providedFileSizeNotNil: Boolean """ - The ordering direction. + persisted_file_size field predicates """ - direction: OrderDirection! = ASC + persistedFileSize: Int + persistedFileSizeNEQ: Int + persistedFileSizeIn: [Int!] + persistedFileSizeNotIn: [Int!] + persistedFileSizeGT: Int + persistedFileSizeGTE: Int + persistedFileSizeLT: Int + persistedFileSizeLTE: Int + persistedFileSizeIsNil: Boolean + persistedFileSizeNotNil: Boolean """ - The field by which to order Integrations. + detected_mime_type field predicates """ - field: IntegrationOrderField! -} -""" -Properties by which Integration connections can be ordered. -""" -enum IntegrationOrderField { - name - kind -} -type IntegrationSearchResult { - integrations: [Integration!] -} -""" -Return response for updateIntegration mutation -""" -type IntegrationUpdatePayload { + detectedMimeType: String + detectedMimeTypeNEQ: String + detectedMimeTypeIn: [String!] + detectedMimeTypeNotIn: [String!] + detectedMimeTypeGT: String + detectedMimeTypeGTE: String + detectedMimeTypeLT: String + detectedMimeTypeLTE: String + detectedMimeTypeContains: String + detectedMimeTypeHasPrefix: String + detectedMimeTypeHasSuffix: String + detectedMimeTypeIsNil: Boolean + detectedMimeTypeNotNil: Boolean + detectedMimeTypeEqualFold: String + detectedMimeTypeContainsFold: String """ - Updated integration + md5_hash field predicates """ - integration: Integration! -} -""" -IntegrationWhereInput is used for filtering Integration objects. -Input was generated by ent. -""" -input IntegrationWhereInput { - not: IntegrationWhereInput - and: [IntegrationWhereInput!] - or: [IntegrationWhereInput!] + md5Hash: String + md5HashNEQ: String + md5HashIn: [String!] + md5HashNotIn: [String!] + md5HashGT: String + md5HashGTE: String + md5HashLT: String + md5HashLTE: String + md5HashContains: String + md5HashHasPrefix: String + md5HashHasSuffix: String + md5HashIsNil: Boolean + md5HashNotNil: Boolean + md5HashEqualFold: String + md5HashContainsFold: String """ - id field predicates + detected_content_type field predicates """ - id: ID - idNEQ: ID + detectedContentType: String + detectedContentTypeNEQ: String + detectedContentTypeIn: [String!] + detectedContentTypeNotIn: [String!] + detectedContentTypeGT: String + detectedContentTypeGTE: String + detectedContentTypeLT: String + detectedContentTypeLTE: String + detectedContentTypeContains: String + detectedContentTypeHasPrefix: String + detectedContentTypeHasSuffix: String + detectedContentTypeEqualFold: String + detectedContentTypeContainsFold: String + """ + store_key field predicates + """ + storeKey: String + storeKeyNEQ: String + storeKeyIn: [String!] + storeKeyNotIn: [String!] + storeKeyGT: String + storeKeyGTE: String + storeKeyLT: String + storeKeyLTE: String + storeKeyContains: String + storeKeyHasPrefix: String + storeKeyHasSuffix: String + storeKeyIsNil: Boolean + storeKeyNotNil: Boolean + storeKeyEqualFold: String + storeKeyContainsFold: String + """ + category_type field predicates + """ + categoryType: String + categoryTypeNEQ: String + categoryTypeIn: [String!] + categoryTypeNotIn: [String!] + categoryTypeGT: String + categoryTypeGTE: String + categoryTypeLT: String + categoryTypeLTE: String + categoryTypeContains: String + categoryTypeHasPrefix: String + categoryTypeHasSuffix: String + categoryTypeIsNil: Boolean + categoryTypeNotNil: Boolean + categoryTypeEqualFold: String + categoryTypeContainsFold: String + """ + uri field predicates + """ + uri: String + uriNEQ: String + uriIn: [String!] + uriNotIn: [String!] + uriGT: String + uriGTE: String + uriLT: String + uriLTE: String + uriContains: String + uriHasPrefix: String + uriHasSuffix: String + uriIsNil: Boolean + uriNotNil: Boolean + uriEqualFold: String + uriContainsFold: String + """ + storage_scheme field predicates + """ + storageScheme: String + storageSchemeNEQ: String + storageSchemeIn: [String!] + storageSchemeNotIn: [String!] + storageSchemeGT: String + storageSchemeGTE: String + storageSchemeLT: String + storageSchemeLTE: String + storageSchemeContains: String + storageSchemeHasPrefix: String + storageSchemeHasSuffix: String + storageSchemeIsNil: Boolean + storageSchemeNotNil: Boolean + storageSchemeEqualFold: String + storageSchemeContainsFold: String + """ + storage_volume field predicates + """ + storageVolume: String + storageVolumeNEQ: String + storageVolumeIn: [String!] + storageVolumeNotIn: [String!] + storageVolumeGT: String + storageVolumeGTE: String + storageVolumeLT: String + storageVolumeLTE: String + storageVolumeContains: String + storageVolumeHasPrefix: String + storageVolumeHasSuffix: String + storageVolumeIsNil: Boolean + storageVolumeNotNil: Boolean + storageVolumeEqualFold: String + storageVolumeContainsFold: String + """ + storage_path field predicates + """ + storagePath: String + storagePathNEQ: String + storagePathIn: [String!] + storagePathNotIn: [String!] + storagePathGT: String + storagePathGTE: String + storagePathLT: String + storagePathLTE: String + storagePathContains: String + storagePathHasPrefix: String + storagePathHasSuffix: String + storagePathIsNil: Boolean + storagePathNotNil: Boolean + storagePathEqualFold: String + storagePathContainsFold: String +} +type FileSearchResult { + files: [File!] +} +""" +FileWhereInput is used for filtering File objects. +Input was generated by ent. +""" +input FileWhereInput { + not: FileWhereInput + and: [FileWhereInput!] + or: [FileWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID idIn: [ID!] idNotIn: [ID!] idGT: ID @@ -10571,84 +10501,275 @@ input IntegrationWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + provided_file_name field predicates """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + providedFileName: String + providedFileNameNEQ: String + providedFileNameIn: [String!] + providedFileNameNotIn: [String!] + providedFileNameGT: String + providedFileNameGTE: String + providedFileNameLT: String + providedFileNameLTE: String + providedFileNameContains: String + providedFileNameHasPrefix: String + providedFileNameHasSuffix: String + providedFileNameEqualFold: String + providedFileNameContainsFold: String """ - name field predicates + provided_file_extension field predicates """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + providedFileExtension: String + providedFileExtensionNEQ: String + providedFileExtensionIn: [String!] + providedFileExtensionNotIn: [String!] + providedFileExtensionGT: String + providedFileExtensionGTE: String + providedFileExtensionLT: String + providedFileExtensionLTE: String + providedFileExtensionContains: String + providedFileExtensionHasPrefix: String + providedFileExtensionHasSuffix: String + providedFileExtensionEqualFold: String + providedFileExtensionContainsFold: String """ - kind field predicates + provided_file_size field predicates """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String + providedFileSize: Int + providedFileSizeNEQ: Int + providedFileSizeIn: [Int!] + providedFileSizeNotIn: [Int!] + providedFileSizeGT: Int + providedFileSizeGTE: Int + providedFileSizeLT: Int + providedFileSizeLTE: Int + providedFileSizeIsNil: Boolean + providedFileSizeNotNil: Boolean """ - owner edge predicates + persisted_file_size field predicates """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + persistedFileSize: Int + persistedFileSizeNEQ: Int + persistedFileSizeIn: [Int!] + persistedFileSizeNotIn: [Int!] + persistedFileSizeGT: Int + persistedFileSizeGTE: Int + persistedFileSizeLT: Int + persistedFileSizeLTE: Int + persistedFileSizeIsNil: Boolean + persistedFileSizeNotNil: Boolean """ - secrets edge predicates + detected_mime_type field predicates """ - hasSecrets: Boolean - hasSecretsWith: [HushWhereInput!] + detectedMimeType: String + detectedMimeTypeNEQ: String + detectedMimeTypeIn: [String!] + detectedMimeTypeNotIn: [String!] + detectedMimeTypeGT: String + detectedMimeTypeGTE: String + detectedMimeTypeLT: String + detectedMimeTypeLTE: String + detectedMimeTypeContains: String + detectedMimeTypeHasPrefix: String + detectedMimeTypeHasSuffix: String + detectedMimeTypeIsNil: Boolean + detectedMimeTypeNotNil: Boolean + detectedMimeTypeEqualFold: String + detectedMimeTypeContainsFold: String """ - oauth2tokens edge predicates + md5_hash field predicates """ - hasOauth2tokens: Boolean - hasOauth2tokensWith: [OhAuthTooTokenWhereInput!] + md5Hash: String + md5HashNEQ: String + md5HashIn: [String!] + md5HashNotIn: [String!] + md5HashGT: String + md5HashGTE: String + md5HashLT: String + md5HashLTE: String + md5HashContains: String + md5HashHasPrefix: String + md5HashHasSuffix: String + md5HashIsNil: Boolean + md5HashNotNil: Boolean + md5HashEqualFold: String + md5HashContainsFold: String + """ + detected_content_type field predicates + """ + detectedContentType: String + detectedContentTypeNEQ: String + detectedContentTypeIn: [String!] + detectedContentTypeNotIn: [String!] + detectedContentTypeGT: String + detectedContentTypeGTE: String + detectedContentTypeLT: String + detectedContentTypeLTE: String + detectedContentTypeContains: String + detectedContentTypeHasPrefix: String + detectedContentTypeHasSuffix: String + detectedContentTypeEqualFold: String + detectedContentTypeContainsFold: String + """ + store_key field predicates + """ + storeKey: String + storeKeyNEQ: String + storeKeyIn: [String!] + storeKeyNotIn: [String!] + storeKeyGT: String + storeKeyGTE: String + storeKeyLT: String + storeKeyLTE: String + storeKeyContains: String + storeKeyHasPrefix: String + storeKeyHasSuffix: String + storeKeyIsNil: Boolean + storeKeyNotNil: Boolean + storeKeyEqualFold: String + storeKeyContainsFold: String + """ + category_type field predicates + """ + categoryType: String + categoryTypeNEQ: String + categoryTypeIn: [String!] + categoryTypeNotIn: [String!] + categoryTypeGT: String + categoryTypeGTE: String + categoryTypeLT: String + categoryTypeLTE: String + categoryTypeContains: String + categoryTypeHasPrefix: String + categoryTypeHasSuffix: String + categoryTypeIsNil: Boolean + categoryTypeNotNil: Boolean + categoryTypeEqualFold: String + categoryTypeContainsFold: String + """ + uri field predicates + """ + uri: String + uriNEQ: String + uriIn: [String!] + uriNotIn: [String!] + uriGT: String + uriGTE: String + uriLT: String + uriLTE: String + uriContains: String + uriHasPrefix: String + uriHasSuffix: String + uriIsNil: Boolean + uriNotNil: Boolean + uriEqualFold: String + uriContainsFold: String + """ + storage_scheme field predicates + """ + storageScheme: String + storageSchemeNEQ: String + storageSchemeIn: [String!] + storageSchemeNotIn: [String!] + storageSchemeGT: String + storageSchemeGTE: String + storageSchemeLT: String + storageSchemeLTE: String + storageSchemeContains: String + storageSchemeHasPrefix: String + storageSchemeHasSuffix: String + storageSchemeIsNil: Boolean + storageSchemeNotNil: Boolean + storageSchemeEqualFold: String + storageSchemeContainsFold: String + """ + storage_volume field predicates + """ + storageVolume: String + storageVolumeNEQ: String + storageVolumeIn: [String!] + storageVolumeNotIn: [String!] + storageVolumeGT: String + storageVolumeGTE: String + storageVolumeLT: String + storageVolumeLTE: String + storageVolumeContains: String + storageVolumeHasPrefix: String + storageVolumeHasSuffix: String + storageVolumeIsNil: Boolean + storageVolumeNotNil: Boolean + storageVolumeEqualFold: String + storageVolumeContainsFold: String + """ + storage_path field predicates + """ + storagePath: String + storagePathNEQ: String + storagePathIn: [String!] + storagePathNotIn: [String!] + storagePathGT: String + storagePathGTE: String + storagePathLT: String + storagePathLTE: String + storagePathContains: String + storagePathHasPrefix: String + storagePathHasSuffix: String + storagePathIsNil: Boolean + storagePathNotNil: Boolean + storagePathEqualFold: String + storagePathContainsFold: String + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] + """ + contact edge predicates + """ + hasContact: Boolean + hasContactWith: [ContactWhereInput!] + """ + entity edge predicates + """ + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] + """ + usersetting edge predicates + """ + hasUsersetting: Boolean + hasUsersettingWith: [UserSettingWhereInput!] + """ + organizationsetting edge predicates + """ + hasOrganizationsetting: Boolean + hasOrganizationsettingWith: [OrganizationSettingWhereInput!] + """ + template edge predicates + """ + hasTemplate: Boolean + hasTemplateWith: [TemplateWhereInput!] + """ + documentdata edge predicates + """ + hasDocumentdata: Boolean + hasDocumentdataWith: [DocumentDataWhereInput!] """ events edge predicates """ hasEvents: Boolean hasEventsWith: [EventWhereInput!] - """ - webhooks edge predicates - """ - hasWebhooks: Boolean - hasWebhooksWith: [WebhookWhereInput!] } -type Invite implements Node { +type Group implements Node { id: ID! createdAt: Time updatedAt: Time @@ -10657,50 +10778,58 @@ type Invite implements Node { deletedAt: Time deletedBy: String """ + tags associated with the object + """ + tags: [String!] + """ the organization id that owns the object """ ownerID: ID """ - the expiration date of the invitation token which defaults to 14 days in the future from creation + the name of the group - must be unique within the organization """ - expires: Time + name: String! """ - the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + the groups description """ - recipient: String! + description: String """ - the status of the invitation + the URL to an auto generated gravatar image for the group """ - status: InviteInviteStatus! - role: InviteRole! + gravatarLogoURL: String """ - the number of attempts made to perform email send of the invitation, maximum of 5 + the URL to an image uploaded by the customer for the groups avatar image """ - sendAttempts: Int! + logoURL: String """ - the user who initiated the invitation + The group's displayed 'friendly' name """ - requestorID: String + displayName: String! owner: Organization + setting: GroupSetting! + users: [User!] events: [Event!] + integrations: [Integration!] + files: [File!] + members: [GroupMembership!] } """ -Return response for createBulkInvite mutation +Return response for createBulkGroup mutation """ -type InviteBulkCreatePayload { +type GroupBulkCreatePayload { """ - Created invites + Created groups """ - invites: [Invite!] + groups: [Group!] } """ A connection to a list of items. """ -type InviteConnection { +type GroupConnection { """ A list of edges. """ - edges: [InviteEdge] + edges: [GroupEdge] """ Information to aid in pagination. """ @@ -10711,70 +10840,142 @@ type InviteConnection { totalCount: Int! } """ -Return response for createInvite mutation +Return response for createGroup mutation """ -type InviteCreatePayload { +type GroupCreatePayload { """ - Created invite + Created group """ - invite: Invite! + group: Group! } """ -Return response for deleteInvite mutation +Return response for deleteGroup mutation """ -type InviteDeletePayload { +type GroupDeletePayload { """ - Deleted invite ID + Deleted group ID """ deletedID: ID! } """ An edge in a connection. """ -type InviteEdge { +type GroupEdge { """ The item at the end of the edge. """ - node: Invite + node: Group """ A cursor for use in pagination. """ cursor: Cursor! } +type GroupHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: GroupHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the group - must be unique within the organization + """ + name: String! + """ + the groups description + """ + description: String + """ + the URL to an auto generated gravatar image for the group + """ + gravatarLogoURL: String + """ + the URL to an image uploaded by the customer for the groups avatar image + """ + logoURL: String + """ + The group's displayed 'friendly' name + """ + displayName: String! +} """ -InviteInviteStatus is enum for the field status -""" -enum InviteInviteStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.InviteStatus") { - INVITATION_SENT - APPROVAL_REQUIRED - INVITATION_ACCEPTED - INVITATION_EXPIRED +A connection to a list of items. +""" +type GroupHistoryConnection { + """ + A list of edges. + """ + edges: [GroupHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! } """ -InviteRole is enum for the field role +An edge in a connection. """ -enum InviteRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER +type GroupHistoryEdge { + """ + The item at the end of the edge. + """ + node: GroupHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! } """ -Return response for updateInvite mutation +GroupHistoryOpType is enum for the field operation """ -type InviteUpdatePayload { +enum GroupHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for GroupHistory connections +""" +input GroupHistoryOrder { """ - Updated invite + The ordering direction. """ - invite: Invite! + direction: OrderDirection! = ASC + """ + The field by which to order GroupHistories. + """ + field: GroupHistoryOrderField! } """ -InviteWhereInput is used for filtering Invite objects. +Properties by which GroupHistory connections can be ordered. +""" +enum GroupHistoryOrderField { + name + display_name +} +""" +GroupHistoryWhereInput is used for filtering GroupHistory objects. Input was generated by ent. """ -input InviteWhereInput { - not: InviteWhereInput - and: [InviteWhereInput!] - or: [InviteWhereInput!] +input GroupHistoryWhereInput { + not: GroupHistoryWhereInput + and: [GroupHistoryWhereInput!] + or: [GroupHistoryWhereInput!] """ id field predicates """ @@ -10789,6 +10990,42 @@ input InviteWhereInput { idEqualFold: ID idContainsFold: ID """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: GroupHistoryOpType + operationNEQ: GroupHistoryOpType + operationIn: [GroupHistoryOpType!] + operationNotIn: [GroupHistoryOpType!] + """ created_at field predicates """ createdAt: Time @@ -10884,1481 +11121,1415 @@ input InviteWhereInput { """ owner_id field predicates """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String ownerIDIsNil: Boolean ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - expires field predicates + ownerIDEqualFold: String + ownerIDContainsFold: String """ - expires: Time - expiresNEQ: Time - expiresIn: [Time!] - expiresNotIn: [Time!] - expiresGT: Time - expiresGTE: Time - expiresLT: Time - expiresLTE: Time - expiresIsNil: Boolean - expiresNotNil: Boolean + name field predicates """ - recipient field predicates + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - recipient: String - recipientNEQ: String - recipientIn: [String!] - recipientNotIn: [String!] - recipientGT: String - recipientGTE: String - recipientLT: String - recipientLTE: String - recipientContains: String - recipientHasPrefix: String - recipientHasSuffix: String - recipientEqualFold: String - recipientContainsFold: String + display_name field predicates """ - status field predicates + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String +} +type GroupMembership implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: GroupMembershipRole! + groupID: ID! + userID: ID! + group: Group! + user: User! + events: [Event!] +} +""" +Return response for createBulkGroupMembership mutation +""" +type GroupMembershipBulkCreatePayload { """ - status: InviteInviteStatus - statusNEQ: InviteInviteStatus - statusIn: [InviteInviteStatus!] - statusNotIn: [InviteInviteStatus!] + Created groupMemberships """ - role field predicates - """ - role: InviteRole - roleNEQ: InviteRole - roleIn: [InviteRole!] - roleNotIn: [InviteRole!] + groupMemberships: [GroupMembership!] +} +""" +A connection to a list of items. +""" +type GroupMembershipConnection { """ - send_attempts field predicates + A list of edges. """ - sendAttempts: Int - sendAttemptsNEQ: Int - sendAttemptsIn: [Int!] - sendAttemptsNotIn: [Int!] - sendAttemptsGT: Int - sendAttemptsGTE: Int - sendAttemptsLT: Int - sendAttemptsLTE: Int + edges: [GroupMembershipEdge] """ - requestor_id field predicates + Information to aid in pagination. """ - requestorID: String - requestorIDNEQ: String - requestorIDIn: [String!] - requestorIDNotIn: [String!] - requestorIDGT: String - requestorIDGTE: String - requestorIDLT: String - requestorIDLTE: String - requestorIDContains: String - requestorIDHasPrefix: String - requestorIDHasSuffix: String - requestorIDIsNil: Boolean - requestorIDNotNil: Boolean - requestorIDEqualFold: String - requestorIDContainsFold: String + pageInfo: PageInfo! """ - owner edge predicates + Identifies the total count of items in the connection. """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + totalCount: Int! +} +""" +Return response for createGroupMembership mutation +""" +type GroupMembershipCreatePayload { """ - events edge predicates + Created groupMembership """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + groupMembership: GroupMembership! } """ -A valid JSON string. +Return response for deleteGroupMembership mutation """ -scalar JSON +type GroupMembershipDeletePayload { + """ + Deleted groupMembership ID + """ + deletedID: ID! +} """ -The builtin Map type +An edge in a connection. """ -scalar Map -type Mutation { +type GroupMembershipEdge { """ - Create a new apiToken + The item at the end of the edge. """ - createAPIToken( - """ - values of the apiToken - """ - input: CreateAPITokenInput! - ): APITokenCreatePayload! + node: GroupMembership """ - Create multiple new apiTokens + A cursor for use in pagination. """ - createBulkAPIToken( - """ - values of the apiToken - """ - input: [CreateAPITokenInput!] - ): APITokenBulkCreatePayload! + cursor: Cursor! +} +type GroupMembershipHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: GroupMembershipHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: GroupMembershipHistoryRole! + groupID: String! + userID: String! +} +""" +A connection to a list of items. +""" +type GroupMembershipHistoryConnection { """ - Create multiple new apiTokens via file upload + A list of edges. """ - createBulkCSVAPIToken( - """ - csv file containing values of the apiToken - """ - input: Upload! - ): APITokenBulkCreatePayload! + edges: [GroupMembershipHistoryEdge] """ - Update an existing apiToken + Information to aid in pagination. """ - updateAPIToken( - """ - ID of the apiToken - """ - id: ID! - - """ - New values for the apiToken - """ - input: UpdateAPITokenInput! - ): APITokenUpdatePayload! + pageInfo: PageInfo! """ - Delete an existing apiToken + Identifies the total count of items in the connection. """ - deleteAPIToken( - """ - ID of the apiToken - """ - id: ID! - ): APITokenDeletePayload! + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupMembershipHistoryEdge { """ - Create a new contact + The item at the end of the edge. """ - createContact( - """ - values of the contact - """ - input: CreateContactInput! - ): ContactCreatePayload! + node: GroupMembershipHistory """ - Create multiple new contacts + A cursor for use in pagination. """ - createBulkContact( - """ - values of the contact - """ - input: [CreateContactInput!] - ): ContactBulkCreatePayload! + cursor: Cursor! +} +""" +GroupMembershipHistoryOpType is enum for the field operation +""" +enum GroupMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +GroupMembershipHistoryRole is enum for the field role +""" +enum GroupMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER +} +""" +GroupMembershipHistoryWhereInput is used for filtering GroupMembershipHistory objects. +Input was generated by ent. +""" +input GroupMembershipHistoryWhereInput { + not: GroupMembershipHistoryWhereInput + and: [GroupMembershipHistoryWhereInput!] + or: [GroupMembershipHistoryWhereInput!] """ - Create multiple new contacts via file upload + id field predicates """ - createBulkCSVContact( - """ - csv file containing values of the contact - """ - input: Upload! - ): ContactBulkCreatePayload! + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - Update an existing contact + history_time field predicates """ - updateContact( - """ - ID of the contact - """ - id: ID! - - """ - New values for the contact - """ - input: UpdateContactInput! - ): ContactUpdatePayload! + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time """ - Delete an existing contact + ref field predicates """ - deleteContact( - """ - ID of the contact - """ - id: ID! - ): ContactDeletePayload! + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String """ - Create a new documentData + operation field predicates """ - createDocumentData( - """ - values of the documentData - """ - input: CreateDocumentDataInput! - ): DocumentDataCreatePayload! - """ - Create multiple new documentData - """ - createBulkDocumentData( - """ - values of the documentData - """ - input: [CreateDocumentDataInput!] - ): DocumentDataBulkCreatePayload! + operation: GroupMembershipHistoryOpType + operationNEQ: GroupMembershipHistoryOpType + operationIn: [GroupMembershipHistoryOpType!] + operationNotIn: [GroupMembershipHistoryOpType!] """ - Create multiple new documentData via file upload + created_at field predicates """ - createBulkCSVDocumentData( - """ - csv file containing values of the documentData - """ - input: Upload! - ): DocumentDataBulkCreatePayload! + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - Update an existing documentData + updated_at field predicates """ - updateDocumentData( - """ - ID of the documentData - """ - id: ID! - - """ - New values for the documentData - """ - input: UpdateDocumentDataInput! - ): DocumentDataUpdatePayload! + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - Delete an existing documentData + created_by field predicates """ - deleteDocumentData( - """ - ID of the documentData - """ - id: ID! - ): DocumentDataDeletePayload! + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - Create a new entitlement + updated_by field predicates """ - createEntitlement( - """ - values of the entitlement - """ - input: CreateEntitlementInput! - ): EntitlementCreatePayload! + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - Create multiple new entitlements + deleted_at field predicates """ - createBulkEntitlement( - """ - values of the entitlement - """ - input: [CreateEntitlementInput!] - ): EntitlementBulkCreatePayload! + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - Create multiple new entitlements via file upload + deleted_by field predicates """ - createBulkCSVEntitlement( - """ - csv file containing values of the entitlement - """ - input: Upload! - ): EntitlementBulkCreatePayload! + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - Update an existing entitlement + role field predicates """ - updateEntitlement( - """ - ID of the entitlement - """ - id: ID! - - """ - New values for the entitlement - """ - input: UpdateEntitlementInput! - ): EntitlementUpdatePayload! + role: GroupMembershipHistoryRole + roleNEQ: GroupMembershipHistoryRole + roleIn: [GroupMembershipHistoryRole!] + roleNotIn: [GroupMembershipHistoryRole!] """ - Delete an existing entitlement + group_id field predicates """ - deleteEntitlement( - """ - ID of the entitlement - """ - id: ID! - ): EntitlementDeletePayload! + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDGT: String + groupIDGTE: String + groupIDLT: String + groupIDLTE: String + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDEqualFold: String + groupIDContainsFold: String """ - Create a new entitlementPlan + user_id field predicates """ - createEntitlementPlan( - """ - values of the entitlementPlan - """ - input: CreateEntitlementPlanInput! - ): EntitlementPlanCreatePayload! + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDEqualFold: String + userIDContainsFold: String +} +""" +GroupMembershipRole is enum for the field role +""" +enum GroupMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER +} +""" +Return response for updateGroupMembership mutation +""" +type GroupMembershipUpdatePayload { """ - Create multiple new entitlementPlans + Updated groupMembership """ - createBulkEntitlementPlan( - """ - values of the entitlementPlan - """ - input: [CreateEntitlementPlanInput!] - ): EntitlementPlanBulkCreatePayload! + groupMembership: GroupMembership! +} +""" +GroupMembershipWhereInput is used for filtering GroupMembership objects. +Input was generated by ent. +""" +input GroupMembershipWhereInput { + not: GroupMembershipWhereInput + and: [GroupMembershipWhereInput!] + or: [GroupMembershipWhereInput!] """ - Create multiple new entitlementPlans via file upload + id field predicates """ - createBulkCSVEntitlementPlan( - """ - csv file containing values of the entitlementPlan - """ - input: Upload! - ): EntitlementPlanBulkCreatePayload! + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - Update an existing entitlementPlan + created_at field predicates """ - updateEntitlementPlan( - """ - ID of the entitlementPlan - """ - id: ID! - - """ - New values for the entitlementPlan - """ - input: UpdateEntitlementPlanInput! - ): EntitlementPlanUpdatePayload! + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - Delete an existing entitlementPlan + updated_at field predicates """ - deleteEntitlementPlan( - """ - ID of the entitlementPlan - """ - id: ID! - ): EntitlementPlanDeletePayload! + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - Create a new entitlementPlanFeature + created_by field predicates """ - createEntitlementPlanFeature( - """ - values of the entitlementPlanFeature - """ - input: CreateEntitlementPlanFeatureInput! - ): EntitlementPlanFeatureCreatePayload! + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - Create multiple new entitlementPlanFeatures + updated_by field predicates """ - createBulkEntitlementPlanFeature( - """ - values of the entitlementPlanFeature - """ - input: [CreateEntitlementPlanFeatureInput!] - ): EntitlementPlanFeatureBulkCreatePayload! + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - Create multiple new entitlementPlanFeatures via file upload + deleted_at field predicates """ - createBulkCSVEntitlementPlanFeature( - """ - csv file containing values of the entitlementPlanFeature - """ - input: Upload! - ): EntitlementPlanFeatureBulkCreatePayload! + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - Update an existing entitlementPlanFeature + deleted_by field predicates """ - updateEntitlementPlanFeature( - """ - ID of the entitlementPlanFeature - """ - id: ID! - - """ - New values for the entitlementPlanFeature - """ - input: UpdateEntitlementPlanFeatureInput! - ): EntitlementPlanFeatureUpdatePayload! + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - Delete an existing entitlementPlanFeature + role field predicates """ - deleteEntitlementPlanFeature( - """ - ID of the entitlementPlanFeature - """ - id: ID! - ): EntitlementPlanFeatureDeletePayload! + role: GroupMembershipRole + roleNEQ: GroupMembershipRole + roleIn: [GroupMembershipRole!] + roleNotIn: [GroupMembershipRole!] + groupID: String + userID: String +} +""" +Ordering options for Group connections +""" +input GroupOrder { """ - Create a new entity + The ordering direction. """ - createEntity( - """ - values of the entity - """ - input: CreateEntityInput! - ): EntityCreatePayload! + direction: OrderDirection! = ASC """ - Create multiple new entities + The field by which to order Groups. """ - createBulkEntity( - """ - values of the entity - """ - input: [CreateEntityInput!] - ): EntityBulkCreatePayload! + field: GroupOrderField! +} +""" +Properties by which Group connections can be ordered. +""" +enum GroupOrderField { + name + display_name +} +type GroupSearchResult { + groups: [Group!] +} +type GroupSetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String """ - Create multiple new entities via file upload + tags associated with the object """ - createBulkCSVEntity( - """ - csv file containing values of the entity - """ - input: Upload! - ): EntityBulkCreatePayload! + tags: [String!] + deletedAt: Time + deletedBy: String """ - Update an existing entity + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization """ - updateEntity( - """ - ID of the entity - """ - id: ID! - - """ - New values for the entity - """ - input: UpdateEntityInput! - ): EntityUpdatePayload! + visibility: GroupSettingVisibility! """ - Delete an existing entity + the policy governing ability to freely join a group, whether it requires an invitation, application, or either """ - deleteEntity( - """ - ID of the entity - """ - id: ID! - ): EntityDeletePayload! + joinPolicy: GroupSettingJoinPolicy! """ - Create a new entityType + whether to sync group members to slack groups """ - createEntityType( - """ - values of the entityType - """ - input: CreateEntityTypeInput! - ): EntityTypeCreatePayload! + syncToSlack: Boolean """ - Create multiple new entityTypes + whether to sync group members to github groups """ - createBulkEntityType( - """ - values of the entityType - """ - input: [CreateEntityTypeInput!] - ): EntityTypeBulkCreatePayload! + syncToGithub: Boolean """ - Create multiple new entityTypes via file upload + the group id associated with the settings """ - createBulkCSVEntityType( - """ - csv file containing values of the entityType - """ - input: Upload! - ): EntityTypeBulkCreatePayload! + groupID: ID + group: Group +} +""" +Return response for createBulkGroupSetting mutation +""" +type GroupSettingBulkCreatePayload { """ - Update an existing entityType + Created groupSettings """ - updateEntityType( - """ - ID of the entityType - """ - id: ID! - - """ - New values for the entityType - """ - input: UpdateEntityTypeInput! - ): EntityTypeUpdatePayload! - """ - Delete an existing entityType - """ - deleteEntityType( - """ - ID of the entityType - """ - id: ID! - ): EntityTypeDeletePayload! - """ - Create a new event - """ - createEvent( - """ - values of the event - """ - input: CreateEventInput! - ): EventCreatePayload! - """ - Create multiple new events - """ - createBulkEvent( - """ - values of the event - """ - input: [CreateEventInput!] - ): EventBulkCreatePayload! + groupSettings: [GroupSetting!] +} +""" +A connection to a list of items. +""" +type GroupSettingConnection { """ - Create multiple new events via file upload + A list of edges. """ - createBulkCSVEvent( - """ - csv file containing values of the event - """ - input: Upload! - ): EventBulkCreatePayload! + edges: [GroupSettingEdge] """ - Update an existing event + Information to aid in pagination. """ - updateEvent( - """ - ID of the event - """ - id: ID! - - """ - New values for the event - """ - input: UpdateEventInput! - ): EventUpdatePayload! + pageInfo: PageInfo! """ - Delete an existing event + Identifies the total count of items in the connection. """ - deleteEvent( - """ - ID of the event - """ - id: ID! - ): EventDeletePayload! + totalCount: Int! +} +""" +Return response for createGroupSetting mutation +""" +type GroupSettingCreatePayload { """ - Create a new feature + Created groupSetting """ - createFeature( - """ - values of the feature - """ - input: CreateFeatureInput! - ): FeatureCreatePayload! + groupSetting: GroupSetting! +} +""" +Return response for deleteGroupSetting mutation +""" +type GroupSettingDeletePayload { """ - Create multiple new features + Deleted groupSetting ID """ - createBulkFeature( - """ - values of the feature - """ - input: [CreateFeatureInput!] - ): FeatureBulkCreatePayload! + deletedID: ID! +} +""" +An edge in a connection. +""" +type GroupSettingEdge { """ - Create multiple new features via file upload + The item at the end of the edge. """ - createBulkCSVFeature( - """ - csv file containing values of the feature - """ - input: Upload! - ): FeatureBulkCreatePayload! + node: GroupSetting """ - Update an existing feature + A cursor for use in pagination. """ - updateFeature( - """ - ID of the feature - """ - id: ID! - - """ - New values for the feature - """ - input: UpdateFeatureInput! - ): FeatureUpdatePayload! + cursor: Cursor! +} +type GroupSettingHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: GroupSettingHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String """ - Delete an existing feature + tags associated with the object """ - deleteFeature( - """ - ID of the feature - """ - id: ID! - ): FeatureDeletePayload! + tags: [String!] + deletedAt: Time + deletedBy: String """ - Delete an existing file + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization """ - deleteFile( - """ - ID of the file - """ - id: ID! - ): FileDeletePayload! + visibility: GroupSettingHistoryVisibility! """ - Create a new group + the policy governing ability to freely join a group, whether it requires an invitation, application, or either """ - createGroup( - """ - values of the group - """ - input: CreateGroupInput! - ): GroupCreatePayload! + joinPolicy: GroupSettingHistoryJoinPolicy! """ - Create multiple new groups + whether to sync group members to slack groups """ - createBulkGroup( - """ - values of the group - """ - input: [CreateGroupInput!] - ): GroupBulkCreatePayload! + syncToSlack: Boolean """ - Create multiple new groups via file upload + whether to sync group members to github groups """ - createBulkCSVGroup( - """ - csv file containing values of the group - """ - input: Upload! - ): GroupBulkCreatePayload! + syncToGithub: Boolean """ - Update an existing group + the group id associated with the settings """ - updateGroup( - """ - ID of the group - """ - id: ID! - - """ - New values for the group - """ - input: UpdateGroupInput! - ): GroupUpdatePayload! + groupID: String +} +""" +A connection to a list of items. +""" +type GroupSettingHistoryConnection { """ - Delete an existing group + A list of edges. """ - deleteGroup( - """ - ID of the group - """ - id: ID! - ): GroupDeletePayload! + edges: [GroupSettingHistoryEdge] """ - Create a new groupMembership + Information to aid in pagination. """ - createGroupMembership( - """ - values of the groupMembership - """ - input: CreateGroupMembershipInput! - ): GroupMembershipCreatePayload! + pageInfo: PageInfo! """ - Create multiple new groupMemberships + Identifies the total count of items in the connection. """ - createBulkGroupMembership( - """ - values of the groupMembership - """ - input: [CreateGroupMembershipInput!] - ): GroupMembershipBulkCreatePayload! + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupSettingHistoryEdge { """ - Create multiple new groupMemberships via file upload + The item at the end of the edge. """ - createBulkCSVGroupMembership( - """ - csv file containing values of the groupMembership - """ - input: Upload! - ): GroupMembershipBulkCreatePayload! + node: GroupSettingHistory """ - Update an existing groupMembership + A cursor for use in pagination. """ - updateGroupMembership( - """ - ID of the groupMembership - """ - id: ID! - - """ - New values for the groupMembership - """ - input: UpdateGroupMembershipInput! - ): GroupMembershipUpdatePayload! + cursor: Cursor! +} +""" +GroupSettingHistoryJoinPolicy is enum for the field join_policy +""" +enum GroupSettingHistoryJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { + OPEN + INVITE_ONLY + APPLICATION_ONLY + INVITE_OR_APPLICATION +} +""" +GroupSettingHistoryOpType is enum for the field operation +""" +enum GroupSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +GroupSettingHistoryVisibility is enum for the field visibility +""" +enum GroupSettingHistoryVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { + PUBLIC + PRIVATE +} +""" +GroupSettingHistoryWhereInput is used for filtering GroupSettingHistory objects. +Input was generated by ent. +""" +input GroupSettingHistoryWhereInput { + not: GroupSettingHistoryWhereInput + and: [GroupSettingHistoryWhereInput!] + or: [GroupSettingHistoryWhereInput!] """ - Delete an existing groupMembership + id field predicates """ - deleteGroupMembership( - """ - ID of the groupMembership - """ - id: ID! - ): GroupMembershipDeletePayload! + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - Create a new groupSetting + history_time field predicates """ - createGroupSetting( - """ - values of the groupSetting - """ - input: CreateGroupSettingInput! - ): GroupSettingCreatePayload! + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time """ - Create multiple new groupSettings + ref field predicates """ - createBulkGroupSetting( - """ - values of the groupSetting - """ - input: [CreateGroupSettingInput!] - ): GroupSettingBulkCreatePayload! + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String """ - Create multiple new groupSettings via file upload + operation field predicates """ - createBulkCSVGroupSetting( - """ - csv file containing values of the groupSetting - """ - input: Upload! - ): GroupSettingBulkCreatePayload! + operation: GroupSettingHistoryOpType + operationNEQ: GroupSettingHistoryOpType + operationIn: [GroupSettingHistoryOpType!] + operationNotIn: [GroupSettingHistoryOpType!] """ - Update an existing groupSetting + created_at field predicates """ - updateGroupSetting( - """ - ID of the groupSetting - """ - id: ID! - - """ - New values for the groupSetting - """ - input: UpdateGroupSettingInput! - ): GroupSettingUpdatePayload! + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - Delete an existing groupSetting + updated_at field predicates """ - deleteGroupSetting( - """ - ID of the groupSetting - """ - id: ID! - ): GroupSettingDeletePayload! + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - Create a new hush + created_by field predicates """ - createHush( - """ - values of the hush - """ - input: CreateHushInput! - ): HushCreatePayload! + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - Create multiple new hushs + updated_by field predicates """ - createBulkHush( - """ - values of the hush - """ - input: [CreateHushInput!] - ): HushBulkCreatePayload! + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - Create multiple new hushs via file upload + deleted_at field predicates """ - createBulkCSVHush( - """ - csv file containing values of the hush - """ - input: Upload! - ): HushBulkCreatePayload! + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - Update an existing hush + deleted_by field predicates """ - updateHush( - """ - ID of the hush - """ - id: ID! - - """ - New values for the hush - """ - input: UpdateHushInput! - ): HushUpdatePayload! + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - Delete an existing hush + visibility field predicates """ - deleteHush( - """ - ID of the hush - """ - id: ID! - ): HushDeletePayload! + visibility: GroupSettingHistoryVisibility + visibilityNEQ: GroupSettingHistoryVisibility + visibilityIn: [GroupSettingHistoryVisibility!] + visibilityNotIn: [GroupSettingHistoryVisibility!] """ - Create a new integration + join_policy field predicates """ - createIntegration( - """ - values of the integration - """ - input: CreateIntegrationInput! - ): IntegrationCreatePayload! + joinPolicy: GroupSettingHistoryJoinPolicy + joinPolicyNEQ: GroupSettingHistoryJoinPolicy + joinPolicyIn: [GroupSettingHistoryJoinPolicy!] + joinPolicyNotIn: [GroupSettingHistoryJoinPolicy!] """ - Create multiple new integrations + sync_to_slack field predicates """ - createBulkIntegration( - """ - values of the integration - """ - input: [CreateIntegrationInput!] - ): IntegrationBulkCreatePayload! + syncToSlack: Boolean + syncToSlackNEQ: Boolean + syncToSlackIsNil: Boolean + syncToSlackNotNil: Boolean """ - Create multiple new integrations via file upload + sync_to_github field predicates """ - createBulkCSVIntegration( - """ - csv file containing values of the integration - """ - input: Upload! - ): IntegrationBulkCreatePayload! + syncToGithub: Boolean + syncToGithubNEQ: Boolean + syncToGithubIsNil: Boolean + syncToGithubNotNil: Boolean """ - Update an existing integration + group_id field predicates """ - updateIntegration( - """ - ID of the integration - """ - id: ID! - - """ - New values for the integration - """ - input: UpdateIntegrationInput! - ): IntegrationUpdatePayload! + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDGT: String + groupIDGTE: String + groupIDLT: String + groupIDLTE: String + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: String + groupIDContainsFold: String +} +""" +GroupSettingJoinPolicy is enum for the field join_policy +""" +enum GroupSettingJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { + OPEN + INVITE_ONLY + APPLICATION_ONLY + INVITE_OR_APPLICATION +} +type GroupSettingSearchResult { + groupSettings: [GroupSetting!] +} +""" +Return response for updateGroupSetting mutation +""" +type GroupSettingUpdatePayload { """ - Delete an existing integration + Updated groupSetting """ - deleteIntegration( - """ - ID of the integration - """ - id: ID! - ): IntegrationDeletePayload! + groupSetting: GroupSetting! +} +""" +GroupSettingVisibility is enum for the field visibility +""" +enum GroupSettingVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { + PUBLIC + PRIVATE +} +""" +GroupSettingWhereInput is used for filtering GroupSetting objects. +Input was generated by ent. +""" +input GroupSettingWhereInput { + not: GroupSettingWhereInput + and: [GroupSettingWhereInput!] + or: [GroupSettingWhereInput!] """ - Create a new invite + id field predicates """ - createInvite( - """ - values of the invite - """ - input: CreateInviteInput! - ): InviteCreatePayload! + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - Create multiple new invites + created_at field predicates """ - createBulkInvite( - """ - values of the invite - """ - input: [CreateInviteInput!] - ): InviteBulkCreatePayload! + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - Create multiple new invites via file upload + updated_at field predicates """ - createBulkCSVInvite( - """ - csv file containing values of the invite - """ - input: Upload! - ): InviteBulkCreatePayload! + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - Update an existing invite + created_by field predicates """ - updateInvite( - """ - ID of the invite - """ - id: ID! - - """ - New values for the invite - """ - input: UpdateInviteInput! - ): InviteUpdatePayload! + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - Delete an existing invite + updated_by field predicates """ - deleteInvite( - """ - ID of the invite - """ - id: ID! - ): InviteDeletePayload! + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - Create a new oauthProvider + deleted_at field predicates """ - createOauthProvider( - """ - values of the oauthProvider - """ - input: CreateOauthProviderInput! - ): OauthProviderCreatePayload! + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - Create multiple new oauthProviders + deleted_by field predicates """ - createBulkOauthProvider( - """ - values of the oauthProvider - """ - input: [CreateOauthProviderInput!] - ): OauthProviderBulkCreatePayload! + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - Create multiple new oauthProviders via file upload + visibility field predicates """ - createBulkCSVOauthProvider( - """ - csv file containing values of the oauthProvider - """ - input: Upload! - ): OauthProviderBulkCreatePayload! + visibility: GroupSettingVisibility + visibilityNEQ: GroupSettingVisibility + visibilityIn: [GroupSettingVisibility!] + visibilityNotIn: [GroupSettingVisibility!] """ - Update an existing oauthProvider + join_policy field predicates """ - updateOauthProvider( - """ - ID of the oauthProvider - """ - id: ID! - - """ - New values for the oauthProvider - """ - input: UpdateOauthProviderInput! - ): OauthProviderUpdatePayload! + joinPolicy: GroupSettingJoinPolicy + joinPolicyNEQ: GroupSettingJoinPolicy + joinPolicyIn: [GroupSettingJoinPolicy!] + joinPolicyNotIn: [GroupSettingJoinPolicy!] """ - Delete an existing oauthProvider + sync_to_slack field predicates """ - deleteOauthProvider( - """ - ID of the oauthProvider - """ - id: ID! - ): OauthProviderDeletePayload! + syncToSlack: Boolean + syncToSlackNEQ: Boolean + syncToSlackIsNil: Boolean + syncToSlackNotNil: Boolean """ - Create a new ohAuthTooToken + sync_to_github field predicates """ - createOhAuthTooToken( - """ - values of the ohAuthTooToken - """ - input: CreateOhAuthTooTokenInput! - ): OhAuthTooTokenCreatePayload! + syncToGithub: Boolean + syncToGithubNEQ: Boolean + syncToGithubIsNil: Boolean + syncToGithubNotNil: Boolean """ - Create multiple new ohAuthTooTokens + group_id field predicates """ - createBulkOhAuthTooToken( - """ - values of the ohAuthTooToken - """ - input: [CreateOhAuthTooTokenInput!] - ): OhAuthTooTokenBulkCreatePayload! + groupID: ID + groupIDNEQ: ID + groupIDIn: [ID!] + groupIDNotIn: [ID!] + groupIDGT: ID + groupIDGTE: ID + groupIDLT: ID + groupIDLTE: ID + groupIDContains: ID + groupIDHasPrefix: ID + groupIDHasSuffix: ID + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: ID + groupIDContainsFold: ID """ - Create multiple new ohAuthTooTokens via file upload + group edge predicates """ - createBulkCSVOhAuthTooToken( - """ - csv file containing values of the ohAuthTooToken - """ - input: Upload! - ): OhAuthTooTokenBulkCreatePayload! + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] +} +""" +Return response for updateGroup mutation +""" +type GroupUpdatePayload { """ - Update an existing ohAuthTooToken + Updated group """ - updateOhAuthTooToken( - """ - ID of the ohAuthTooToken - """ - id: ID! - - """ - New values for the ohAuthTooToken - """ - input: UpdateOhAuthTooTokenInput! - ): OhAuthTooTokenUpdatePayload! + group: Group! +} +""" +GroupWhereInput is used for filtering Group objects. +Input was generated by ent. +""" +input GroupWhereInput { + not: GroupWhereInput + and: [GroupWhereInput!] + or: [GroupWhereInput!] """ - Delete an existing ohAuthTooToken + id field predicates """ - deleteOhAuthTooToken( - """ - ID of the ohAuthTooToken - """ - id: ID! - ): OhAuthTooTokenDeletePayload! + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - Create a new organization + created_at field predicates """ - createOrganization( - """ - values of the organization - """ - input: CreateOrganizationInput! - ): OrganizationCreatePayload! + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - Create multiple new organizations + updated_at field predicates """ - createBulkOrganization( - """ - values of the organization - """ - input: [CreateOrganizationInput!] - ): OrganizationBulkCreatePayload! + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - Create multiple new organizations via file upload + created_by field predicates """ - createBulkCSVOrganization( - """ - csv file containing values of the organization - """ - input: Upload! - ): OrganizationBulkCreatePayload! + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - Update an existing organization + updated_by field predicates """ - updateOrganization( - """ - ID of the organization - """ - id: ID! - - """ - New values for the organization - """ - input: UpdateOrganizationInput! - ): OrganizationUpdatePayload! + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - Delete an existing organization + deleted_at field predicates """ - deleteOrganization( - """ - ID of the organization - """ - id: ID! - ): OrganizationDeletePayload! + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - Create a new organizationSetting + deleted_by field predicates """ - createOrganizationSetting( - """ - values of the organizationSetting - """ - input: CreateOrganizationSettingInput! - ): OrganizationSettingCreatePayload! + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - Create multiple new organizationSettings + owner_id field predicates """ - createBulkOrganizationSetting( - """ - values of the organizationSetting - """ - input: [CreateOrganizationSettingInput!] - ): OrganizationSettingBulkCreatePayload! - """ - Create multiple new organizationSettings via file upload - """ - createBulkCSVOrganizationSetting( - """ - csv file containing values of the organizationSetting - """ - input: Upload! - ): OrganizationSettingBulkCreatePayload! + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - Update an existing organizationSetting + name field predicates """ - updateOrganizationSetting( - """ - ID of the organizationSetting - """ - id: ID! - - """ - New values for the organizationSetting - """ - input: UpdateOrganizationSettingInput! - ): OrganizationSettingUpdatePayload! + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - Delete an existing organizationSetting + display_name field predicates """ - deleteOrganizationSetting( - """ - ID of the organizationSetting - """ - id: ID! - ): OrganizationSettingDeletePayload! + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String """ - Create a new orgMembership + owner edge predicates """ - createOrgMembership( - """ - values of the orgMembership - """ - input: CreateOrgMembershipInput! - ): OrgMembershipCreatePayload! + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - Create multiple new orgMemberships + setting edge predicates """ - createBulkOrgMembership( - """ - values of the orgMembership - """ - input: [CreateOrgMembershipInput!] - ): OrgMembershipBulkCreatePayload! + hasSetting: Boolean + hasSettingWith: [GroupSettingWhereInput!] """ - Create multiple new orgMemberships via file upload + users edge predicates """ - createBulkCSVOrgMembership( - """ - csv file containing values of the orgMembership - """ - input: Upload! - ): OrgMembershipBulkCreatePayload! + hasUsers: Boolean + hasUsersWith: [UserWhereInput!] """ - Update an existing orgMembership + events edge predicates """ - updateOrgMembership( - """ - ID of the orgMembership - """ - id: ID! - - """ - New values for the orgMembership - """ - input: UpdateOrgMembershipInput! - ): OrgMembershipUpdatePayload! + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] """ - Delete an existing orgMembership + integrations edge predicates """ - deleteOrgMembership( - """ - ID of the orgMembership - """ - id: ID! - ): OrgMembershipDeletePayload! + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] """ - Create a new personalAccessToken + files edge predicates """ - createPersonalAccessToken( - """ - values of the personalAccessToken - """ - input: CreatePersonalAccessTokenInput! - ): PersonalAccessTokenCreatePayload! + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] """ - Create multiple new personalAccessTokens + members edge predicates """ - createBulkPersonalAccessToken( - """ - values of the personalAccessToken - """ - input: [CreatePersonalAccessTokenInput!] - ): PersonalAccessTokenBulkCreatePayload! + hasMembers: Boolean + hasMembersWith: [GroupMembershipWhereInput!] +} +type Hush implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - Create multiple new personalAccessTokens via file upload + the logical name of the corresponding hush secret or it's general grouping """ - createBulkCSVPersonalAccessToken( - """ - csv file containing values of the personalAccessToken - """ - input: Upload! - ): PersonalAccessTokenBulkCreatePayload! + name: String! """ - Update an existing personalAccessToken + a description of the hush value or purpose, such as github PAT """ - updatePersonalAccessToken( - """ - ID of the personalAccessToken - """ - id: ID! - - """ - New values for the personalAccessToken - """ - input: UpdatePersonalAccessTokenInput! - ): PersonalAccessTokenUpdatePayload! + description: String """ - Delete an existing personalAccessToken + the kind of secret, such as sshkey, certificate, api token, etc. """ - deletePersonalAccessToken( - """ - ID of the personalAccessToken - """ - id: ID! - ): PersonalAccessTokenDeletePayload! + kind: String """ - Create a new subscriber + the generic name of a secret associated with the organization """ - createSubscriber( - """ - values of the subscriber - """ - input: CreateSubscriberInput! - ): SubscriberCreatePayload! + secretName: String """ - Create new subscribers + the integration associated with the secret """ - createBulkSubscriber( - """ - values of the subscriber - """ - input: [CreateSubscriberInput!] - ): SubscriberBulkCreatePayload! + integrations: [Integration!] + organization: [Organization!] + events: [Event!] +} +""" +Return response for createBulkHush mutation +""" +type HushBulkCreatePayload { """ - Create new subscribers via CSV file + Created hushs """ - createBulkCSVSubscriber( - """ - values of the subscriber - """ - input: Upload! - ): SubscriberBulkCreatePayload! + hushes: [Hush!] +} +""" +A connection to a list of items. +""" +type HushConnection { """ - Update an existing subscriber + A list of edges. """ - updateSubscriber( - """ - Email of the subscriber - """ - email: String! - - """ - New values for the subscriber - """ - input: UpdateSubscriberInput! - ): SubscriberUpdatePayload! + edges: [HushEdge] """ - Delete an existing subscriber by Email + Information to aid in pagination. """ - deleteSubscriber( - """ - Email of the subscriber - """ - email: String! - - """ - OwnerID of the subscriber - """ - ownerID: ID - ): SubscriberDeletePayload! + pageInfo: PageInfo! """ - Create a new template + Identifies the total count of items in the connection. """ - createTemplate( - """ - values of the template - """ - input: CreateTemplateInput! - ): TemplateCreatePayload! - """ - Create multiple new templates - """ - createBulkTemplate( - """ - values of the template - """ - input: [CreateTemplateInput!] - ): TemplateBulkCreatePayload! - """ - Create multiple new templates via file upload - """ - createBulkCSVTemplate( - """ - csv file containing values of the template - """ - input: Upload! - ): TemplateBulkCreatePayload! - """ - Update an existing template - """ - updateTemplate( - """ - ID of the template - """ - id: ID! - - """ - New values for the template - """ - input: UpdateTemplateInput! - ): TemplateUpdatePayload! - """ - Delete an existing template - """ - deleteTemplate( - """ - ID of the template - """ - id: ID! - ): TemplateDeletePayload! - """ - Create a new tfaSetting - """ - createTFASetting( - """ - values of the tfaSetting - """ - input: CreateTFASettingInput! - ): TFASettingCreatePayload! - """ - Update an existing tfaSetting - """ - updateTFASetting( - """ - New values for the tfaSetting - """ - input: UpdateTFASettingInput! - ): TFASettingUpdatePayload! - """ - Create a new user - """ - createUser( - """ - values of the user - """ - input: CreateUserInput! - avatarFile: Upload): UserCreatePayload! - """ - Update an existing user - """ - updateUser( - """ - ID of the user - """ - id: ID! - - """ - New values for the user - """ - input: UpdateUserInput! - avatarFile: Upload): UserUpdatePayload! - """ - Delete an existing user - """ - deleteUser( - """ - ID of the user - """ - id: ID! - ): UserDeletePayload! - """ - Create a new userSetting - """ - createUserSetting( - """ - values of the userSetting - """ - input: CreateUserSettingInput! - ): UserSettingCreatePayload! - """ - Create multiple new userSettings - """ - createBulkUserSetting( - """ - values of the userSetting - """ - input: [CreateUserSettingInput!] - ): UserSettingBulkCreatePayload! - """ - Create multiple new userSettings via file upload - """ - createBulkCSVUserSetting( - """ - csv file containing values of the userSetting - """ - input: Upload! - ): UserSettingBulkCreatePayload! - """ - Update an existing userSetting - """ - updateUserSetting( - """ - ID of the userSetting - """ - id: ID! - - """ - New values for the userSetting - """ - input: UpdateUserSettingInput! - ): UserSettingUpdatePayload! - """ - Create a new webhook - """ - createWebhook( - """ - values of the webhook - """ - input: CreateWebhookInput! - ): WebhookCreatePayload! - """ - Create multiple new webhooks - """ - createBulkWebhook( - """ - values of the webhook - """ - input: [CreateWebhookInput!] - ): WebhookBulkCreatePayload! - """ - Create multiple new webhooks via file upload - """ - createBulkCSVWebhook( - """ - csv file containing values of the webhook - """ - input: Upload! - ): WebhookBulkCreatePayload! + totalCount: Int! +} +""" +Return response for createHush mutation +""" +type HushCreatePayload { """ - Update an existing webhook + Created hush """ - updateWebhook( - """ - ID of the webhook - """ - id: ID! - - """ - New values for the webhook - """ - input: UpdateWebhookInput! - ): WebhookUpdatePayload! + hush: Hush! +} +""" +Return response for deleteHush mutation +""" +type HushDeletePayload { """ - Delete an existing webhook + Deleted hush ID """ - deleteWebhook( - """ - ID of the webhook - """ - id: ID! - ): WebhookDeletePayload! + deletedID: ID! } """ -An object with an ID. -Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) +An edge in a connection. """ -interface Node @goModel(model: "github.com/theopenlane/core/internal/ent/generated.Noder") { +type HushEdge { """ - The id of the object. + The item at the end of the edge. """ - id: ID! + node: Hush + """ + A cursor for use in pagination. + """ + cursor: Cursor! } -type Note implements Node { +type HushHistory implements Node { id: ID! + historyTime: Time! + ref: String + operation: HushHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -12366,28 +12537,30 @@ type Note implements Node { deletedAt: Time deletedBy: String """ - tags associated with the object + the logical name of the corresponding hush secret or it's general grouping """ - tags: [String!] + name: String! """ - the organization id that owns the object + a description of the hush value or purpose, such as github PAT """ - ownerID: ID + description: String """ - the text of the note + the kind of secret, such as sshkey, certificate, api token, etc. """ - text: String! - owner: Organization - entity: Entity + kind: String + """ + the generic name of a secret associated with the organization + """ + secretName: String } """ A connection to a list of items. """ -type NoteConnection { +type HushHistoryConnection { """ A list of edges. """ - edges: [NoteEdge] + edges: [HushHistoryEdge] """ Information to aid in pagination. """ @@ -12400,86 +12573,52 @@ type NoteConnection { """ An edge in a connection. """ -type NoteEdge { +type HushHistoryEdge { """ The item at the end of the edge. """ - node: Note + node: HushHistory """ A cursor for use in pagination. """ cursor: Cursor! } -type NoteHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: NoteHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: String - """ - the text of the note - """ - text: String! -} """ -A connection to a list of items. +HushHistoryOpType is enum for the field operation """ -type NoteHistoryConnection { - """ - A list of edges. - """ - edges: [NoteHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! +enum HushHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE } """ -An edge in a connection. +Ordering options for HushHistory connections """ -type NoteHistoryEdge { +input HushHistoryOrder { """ - The item at the end of the edge. + The ordering direction. """ - node: NoteHistory + direction: OrderDirection! = ASC """ - A cursor for use in pagination. + The field by which to order HushHistories. """ - cursor: Cursor! + field: HushHistoryOrderField! } """ -NoteHistoryOpType is enum for the field operation +Properties by which HushHistory connections can be ordered. """ -enum NoteHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE +enum HushHistoryOrderField { + name + kind } """ -NoteHistoryWhereInput is used for filtering NoteHistory objects. +HushHistoryWhereInput is used for filtering HushHistory objects. Input was generated by ent. """ -input NoteHistoryWhereInput { - not: NoteHistoryWhereInput - and: [NoteHistoryWhereInput!] - or: [NoteHistoryWhereInput!] +input HushHistoryWhereInput { + not: HushHistoryWhereInput + and: [HushHistoryWhereInput!] + or: [HushHistoryWhereInput!] """ id field predicates """ @@ -12525,10 +12664,10 @@ input NoteHistoryWhereInput { """ operation field predicates """ - operation: NoteHistoryOpType - operationNEQ: NoteHistoryOpType - operationIn: [NoteHistoryOpType!] - operationNotIn: [NoteHistoryOpType!] + operation: HushHistoryOpType + operationNEQ: HushHistoryOpType + operationIn: [HushHistoryOpType!] + operationNotIn: [HushHistoryOpType!] """ created_at field predicates """ @@ -12623,48 +12762,95 @@ input NoteHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + name field predicates """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - text field predicates + kind field predicates """ - text: String - textNEQ: String - textIn: [String!] - textNotIn: [String!] - textGT: String - textGTE: String - textLT: String - textLTE: String - textContains: String - textHasPrefix: String - textHasSuffix: String - textEqualFold: String - textContainsFold: String + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String + """ + secret_name field predicates + """ + secretName: String + secretNameNEQ: String + secretNameIn: [String!] + secretNameNotIn: [String!] + secretNameGT: String + secretNameGTE: String + secretNameLT: String + secretNameLTE: String + secretNameContains: String + secretNameHasPrefix: String + secretNameHasSuffix: String + secretNameIsNil: Boolean + secretNameNotNil: Boolean + secretNameEqualFold: String + secretNameContainsFold: String } """ -NoteWhereInput is used for filtering Note objects. +Ordering options for Hush connections +""" +input HushOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Hushes. + """ + field: HushOrderField! +} +""" +Properties by which Hush connections can be ordered. +""" +enum HushOrderField { + name + kind +} +""" +Return response for updateHush mutation +""" +type HushUpdatePayload { + """ + Updated hush + """ + hush: Hush! +} +""" +HushWhereInput is used for filtering Hush objects. Input was generated by ent. """ -input NoteWhereInput { - not: NoteWhereInput - and: [NoteWhereInput!] - or: [NoteWhereInput!] +input HushWhereInput { + not: HushWhereInput + and: [HushWhereInput!] + or: [HushWhereInput!] """ id field predicates """ @@ -12772,51 +12958,74 @@ input NoteWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - text field predicates + name field predicates """ - text: String - textNEQ: String - textIn: [String!] - textNotIn: [String!] - textGT: String - textGTE: String - textLT: String - textLTE: String - textContains: String - textHasPrefix: String - textHasSuffix: String - textEqualFold: String - textContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - owner edge predicates + kind field predicates """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String """ - entity edge predicates + secret_name field predicates """ - hasEntity: Boolean - hasEntityWith: [EntityWhereInput!] -} -type OauthProvider implements Node { + secretName: String + secretNameNEQ: String + secretNameIn: [String!] + secretNameNotIn: [String!] + secretNameGT: String + secretNameGTE: String + secretNameLT: String + secretNameLTE: String + secretNameContains: String + secretNameHasPrefix: String + secretNameHasSuffix: String + secretNameIsNil: Boolean + secretNameNotNil: Boolean + secretNameEqualFold: String + secretNameContainsFold: String + """ + integrations edge predicates + """ + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type Integration implements Node { id: ID! createdAt: Time updatedAt: Time @@ -12833,60 +13042,43 @@ type OauthProvider implements Node { """ ownerID: ID """ - the oauth provider's name + the name of the integration - must be unique within the organization """ name: String! """ - the client id for the oauth provider - """ - clientID: String! - """ - the client secret - """ - clientSecret: String! - """ - the redirect url - """ - redirectURL: String! - """ - the scopes - """ - scopes: String! - """ - the auth url of the provider - """ - authURL: String! - """ - the token url of the provider + a description of the integration """ - tokenURL: String! + description: String + kind: String + owner: Organization """ - the auth style, 0: auto detect 1: third party log in 2: log in with username and password + the secrets associated with the integration """ - authStyle: Uint! + secrets: [Hush!] """ - the URL to request user information by token + the oauth2 tokens associated with the integration """ - infoURL: String! - owner: Organization + oauth2tokens: [OhAuthTooToken!] + events: [Event!] + webhooks: [Webhook!] } """ -Return response for createBulkOauthProvider mutation +Return response for createBulkIntegration mutation """ -type OauthProviderBulkCreatePayload { +type IntegrationBulkCreatePayload { """ - Created oauthProviders + Created integrations """ - oauthProviders: [OauthProvider!] + integrations: [Integration!] } """ A connection to a list of items. """ -type OauthProviderConnection { +type IntegrationConnection { """ A list of edges. """ - edges: [OauthProviderEdge] + edges: [IntegrationEdge] """ Information to aid in pagination. """ @@ -12897,41 +13089,41 @@ type OauthProviderConnection { totalCount: Int! } """ -Return response for createOauthProvider mutation +Return response for createIntegration mutation """ -type OauthProviderCreatePayload { +type IntegrationCreatePayload { """ - Created oauthProvider + Created integration """ - oauthProvider: OauthProvider! + integration: Integration! } """ -Return response for deleteOauthProvider mutation +Return response for deleteIntegration mutation """ -type OauthProviderDeletePayload { +type IntegrationDeletePayload { """ - Deleted oauthProvider ID + Deleted integration ID """ deletedID: ID! } """ An edge in a connection. """ -type OauthProviderEdge { +type IntegrationEdge { """ The item at the end of the edge. """ - node: OauthProvider + node: Integration """ A cursor for use in pagination. """ cursor: Cursor! } -type OauthProviderHistory implements Node { +type IntegrationHistory implements Node { id: ID! historyTime: Time! ref: String - operation: OauthProviderHistoryOpType! + operation: IntegrationHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -12947,50 +13139,23 @@ type OauthProviderHistory implements Node { """ ownerID: String """ - the oauth provider's name + the name of the integration - must be unique within the organization """ name: String! """ - the client id for the oauth provider - """ - clientID: String! - """ - the client secret - """ - clientSecret: String! - """ - the redirect url - """ - redirectURL: String! - """ - the scopes - """ - scopes: String! - """ - the auth url of the provider - """ - authURL: String! - """ - the token url of the provider - """ - tokenURL: String! - """ - the auth style, 0: auto detect 1: third party log in 2: log in with username and password - """ - authStyle: Uint! - """ - the URL to request user information by token + a description of the integration """ - infoURL: String! + description: String + kind: String } """ A connection to a list of items. """ -type OauthProviderHistoryConnection { +type IntegrationHistoryConnection { """ A list of edges. """ - edges: [OauthProviderHistoryEdge] + edges: [IntegrationHistoryEdge] """ Information to aid in pagination. """ @@ -13003,32 +13168,52 @@ type OauthProviderHistoryConnection { """ An edge in a connection. """ -type OauthProviderHistoryEdge { +type IntegrationHistoryEdge { """ The item at the end of the edge. """ - node: OauthProviderHistory + node: IntegrationHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -OauthProviderHistoryOpType is enum for the field operation +IntegrationHistoryOpType is enum for the field operation """ -enum OauthProviderHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum IntegrationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -OauthProviderHistoryWhereInput is used for filtering OauthProviderHistory objects. +Ordering options for IntegrationHistory connections +""" +input IntegrationHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order IntegrationHistories. + """ + field: IntegrationHistoryOrderField! +} +""" +Properties by which IntegrationHistory connections can be ordered. +""" +enum IntegrationHistoryOrderField { + name + kind +} +""" +IntegrationHistoryWhereInput is used for filtering IntegrationHistory objects. Input was generated by ent. """ -input OauthProviderHistoryWhereInput { - not: OauthProviderHistoryWhereInput - and: [OauthProviderHistoryWhereInput!] - or: [OauthProviderHistoryWhereInput!] +input IntegrationHistoryWhereInput { + not: IntegrationHistoryWhereInput + and: [IntegrationHistoryWhereInput!] + or: [IntegrationHistoryWhereInput!] """ id field predicates """ @@ -13074,10 +13259,10 @@ input OauthProviderHistoryWhereInput { """ operation field predicates """ - operation: OauthProviderHistoryOpType - operationNEQ: OauthProviderHistoryOpType - operationIn: [OauthProviderHistoryOpType!] - operationNotIn: [OauthProviderHistoryOpType!] + operation: IntegrationHistoryOpType + operationNEQ: IntegrationHistoryOpType + operationIn: [IntegrationHistoryOpType!] + operationNotIn: [IntegrationHistoryOpType!] """ created_at field predicates """ @@ -13206,149 +13391,64 @@ input OauthProviderHistoryWhereInput { nameEqualFold: String nameContainsFold: String """ - client_id field predicates + kind field predicates """ - clientID: String - clientIDNEQ: String - clientIDIn: [String!] - clientIDNotIn: [String!] - clientIDGT: String - clientIDGTE: String - clientIDLT: String - clientIDLTE: String - clientIDContains: String - clientIDHasPrefix: String - clientIDHasSuffix: String - clientIDEqualFold: String - clientIDContainsFold: String + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String +} +""" +Ordering options for Integration connections +""" +input IntegrationOrder { """ - client_secret field predicates + The ordering direction. """ - clientSecret: String - clientSecretNEQ: String - clientSecretIn: [String!] - clientSecretNotIn: [String!] - clientSecretGT: String - clientSecretGTE: String - clientSecretLT: String - clientSecretLTE: String - clientSecretContains: String - clientSecretHasPrefix: String - clientSecretHasSuffix: String - clientSecretEqualFold: String - clientSecretContainsFold: String + direction: OrderDirection! = ASC """ - redirect_url field predicates + The field by which to order Integrations. """ - redirectURL: String - redirectURLNEQ: String - redirectURLIn: [String!] - redirectURLNotIn: [String!] - redirectURLGT: String - redirectURLGTE: String - redirectURLLT: String - redirectURLLTE: String - redirectURLContains: String - redirectURLHasPrefix: String - redirectURLHasSuffix: String - redirectURLEqualFold: String - redirectURLContainsFold: String - """ - scopes field predicates - """ - scopes: String - scopesNEQ: String - scopesIn: [String!] - scopesNotIn: [String!] - scopesGT: String - scopesGTE: String - scopesLT: String - scopesLTE: String - scopesContains: String - scopesHasPrefix: String - scopesHasSuffix: String - scopesEqualFold: String - scopesContainsFold: String - """ - auth_url field predicates - """ - authURL: String - authURLNEQ: String - authURLIn: [String!] - authURLNotIn: [String!] - authURLGT: String - authURLGTE: String - authURLLT: String - authURLLTE: String - authURLContains: String - authURLHasPrefix: String - authURLHasSuffix: String - authURLEqualFold: String - authURLContainsFold: String - """ - token_url field predicates - """ - tokenURL: String - tokenURLNEQ: String - tokenURLIn: [String!] - tokenURLNotIn: [String!] - tokenURLGT: String - tokenURLGTE: String - tokenURLLT: String - tokenURLLTE: String - tokenURLContains: String - tokenURLHasPrefix: String - tokenURLHasSuffix: String - tokenURLEqualFold: String - tokenURLContainsFold: String - """ - auth_style field predicates - """ - authStyle: Uint - authStyleNEQ: Uint - authStyleIn: [Uint!] - authStyleNotIn: [Uint!] - authStyleGT: Uint - authStyleGTE: Uint - authStyleLT: Uint - authStyleLTE: Uint - """ - info_url field predicates - """ - infoURL: String - infoURLNEQ: String - infoURLIn: [String!] - infoURLNotIn: [String!] - infoURLGT: String - infoURLGTE: String - infoURLLT: String - infoURLLTE: String - infoURLContains: String - infoURLHasPrefix: String - infoURLHasSuffix: String - infoURLEqualFold: String - infoURLContainsFold: String + field: IntegrationOrderField! } -type OauthProviderSearchResult { - oauthProviders: [OauthProvider!] +""" +Properties by which Integration connections can be ordered. +""" +enum IntegrationOrderField { + name + kind +} +type IntegrationSearchResult { + integrations: [Integration!] } """ -Return response for updateOauthProvider mutation +Return response for updateIntegration mutation """ -type OauthProviderUpdatePayload { +type IntegrationUpdatePayload { """ - Updated oauthProvider + Updated integration """ - oauthProvider: OauthProvider! + integration: Integration! } """ -OauthProviderWhereInput is used for filtering OauthProvider objects. +IntegrationWhereInput is used for filtering Integration objects. Input was generated by ent. """ -input OauthProviderWhereInput { - not: OauthProviderWhereInput - and: [OauthProviderWhereInput!] - or: [OauthProviderWhereInput!] +input IntegrationWhereInput { + not: IntegrationWhereInput + and: [IntegrationWhereInput!] + or: [IntegrationWhereInput!] """ id field predicates """ @@ -13490,172 +13590,115 @@ input OauthProviderWhereInput { nameEqualFold: String nameContainsFold: String """ - client_id field predicates + kind field predicates """ - clientID: String - clientIDNEQ: String - clientIDIn: [String!] - clientIDNotIn: [String!] - clientIDGT: String - clientIDGTE: String - clientIDLT: String - clientIDLTE: String - clientIDContains: String - clientIDHasPrefix: String - clientIDHasSuffix: String - clientIDEqualFold: String - clientIDContainsFold: String + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String """ - client_secret field predicates + owner edge predicates """ - clientSecret: String - clientSecretNEQ: String - clientSecretIn: [String!] - clientSecretNotIn: [String!] - clientSecretGT: String - clientSecretGTE: String - clientSecretLT: String - clientSecretLTE: String - clientSecretContains: String - clientSecretHasPrefix: String - clientSecretHasSuffix: String - clientSecretEqualFold: String - clientSecretContainsFold: String + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - redirect_url field predicates + secrets edge predicates """ - redirectURL: String - redirectURLNEQ: String - redirectURLIn: [String!] - redirectURLNotIn: [String!] - redirectURLGT: String - redirectURLGTE: String - redirectURLLT: String - redirectURLLTE: String - redirectURLContains: String - redirectURLHasPrefix: String - redirectURLHasSuffix: String - redirectURLEqualFold: String - redirectURLContainsFold: String + hasSecrets: Boolean + hasSecretsWith: [HushWhereInput!] """ - scopes field predicates + oauth2tokens edge predicates """ - scopes: String - scopesNEQ: String - scopesIn: [String!] - scopesNotIn: [String!] - scopesGT: String - scopesGTE: String - scopesLT: String - scopesLTE: String - scopesContains: String - scopesHasPrefix: String - scopesHasSuffix: String - scopesEqualFold: String - scopesContainsFold: String + hasOauth2tokens: Boolean + hasOauth2tokensWith: [OhAuthTooTokenWhereInput!] """ - auth_url field predicates + events edge predicates """ - authURL: String - authURLNEQ: String - authURLIn: [String!] - authURLNotIn: [String!] - authURLGT: String - authURLGTE: String - authURLLT: String - authURLLTE: String - authURLContains: String - authURLHasPrefix: String - authURLHasSuffix: String - authURLEqualFold: String - authURLContainsFold: String + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] """ - token_url field predicates + webhooks edge predicates """ - tokenURL: String - tokenURLNEQ: String - tokenURLIn: [String!] - tokenURLNotIn: [String!] - tokenURLGT: String - tokenURLGTE: String - tokenURLLT: String - tokenURLLTE: String - tokenURLContains: String - tokenURLHasPrefix: String - tokenURLHasSuffix: String - tokenURLEqualFold: String - tokenURLContainsFold: String + hasWebhooks: Boolean + hasWebhooksWith: [WebhookWhereInput!] +} +type InternalPolicy implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - auth_style field predicates + tags associated with the object """ - authStyle: Uint - authStyleNEQ: Uint - authStyleIn: [Uint!] - authStyleNotIn: [Uint!] - authStyleGT: Uint - authStyleGTE: Uint - authStyleLT: Uint - authStyleLTE: Uint + tags: [String!] """ - info_url field predicates + the name of the policy """ - infoURL: String - infoURLNEQ: String - infoURLIn: [String!] - infoURLNotIn: [String!] - infoURLGT: String - infoURLGTE: String - infoURLLT: String - infoURLLTE: String - infoURLContains: String - infoURLHasPrefix: String - infoURLHasSuffix: String - infoURLEqualFold: String - infoURLContainsFold: String + name: String! """ - owner edge predicates + description of the policy """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] -} -type OhAuthTooToken implements Node { - id: ID! + description: String! """ - tags associated with the object + status of the policy """ - tags: [String!] - clientID: String! - scopes: [String!] - nonce: String! - claimsUserID: String! - claimsUsername: String! - claimsEmail: String! - claimsEmailVerified: Boolean! - claimsGroups: [String!] - claimsPreferredUsername: String! - connectorID: String! - connectorData: [String!] - lastUsed: Time! - integration: [Integration!] - events: [Event!] + status: String + """ + type of the policy + """ + policyType: String + """ + version of the policy + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the policy + """ + background: String + """ + json data for the policy document + """ + details: Map + controlobjectives: [ControlObjective!] + controls: [Control!] + procedures: [Procedure!] + narratives: [Narrative!] } """ -Return response for createBulkOhAuthTooToken mutation +Return response for createBulkInternalPolicy mutation """ -type OhAuthTooTokenBulkCreatePayload { +type InternalPolicyBulkCreatePayload { """ - Created ohAuthTooTokens + Created internalPolicys """ - ohAuthTooTokens: [OhAuthTooToken!] + internalPolicies: [InternalPolicy!] } """ A connection to a list of items. """ -type OhAuthTooTokenConnection { +type InternalPolicyConnection { """ A list of edges. """ - edges: [OhAuthTooTokenEdge] + edges: [InternalPolicyEdge] """ Information to aid in pagination. """ @@ -13666,363 +13709,130 @@ type OhAuthTooTokenConnection { totalCount: Int! } """ -Return response for createOhAuthTooToken mutation +Return response for createInternalPolicy mutation """ -type OhAuthTooTokenCreatePayload { +type InternalPolicyCreatePayload { """ - Created ohAuthTooToken + Created internalPolicy """ - ohAuthTooToken: OhAuthTooToken! + internalPolicy: InternalPolicy! } """ -Return response for deleteOhAuthTooToken mutation +Return response for deleteInternalPolicy mutation """ -type OhAuthTooTokenDeletePayload { +type InternalPolicyDeletePayload { """ - Deleted ohAuthTooToken ID + Deleted internalPolicy ID """ deletedID: ID! } """ An edge in a connection. """ -type OhAuthTooTokenEdge { +type InternalPolicyEdge { """ The item at the end of the edge. """ - node: OhAuthTooToken + node: InternalPolicy """ A cursor for use in pagination. """ cursor: Cursor! } -type OhAuthTooTokenSearchResult { - ohAuthTooTokens: [OhAuthTooToken!] -} -""" -Return response for updateOhAuthTooToken mutation -""" -type OhAuthTooTokenUpdatePayload { - """ - Updated ohAuthTooToken - """ - ohAuthTooToken: OhAuthTooToken! -} -""" -OhAuthTooTokenWhereInput is used for filtering OhAuthTooToken objects. -Input was generated by ent. -""" -input OhAuthTooTokenWhereInput { - not: OhAuthTooTokenWhereInput - and: [OhAuthTooTokenWhereInput!] - or: [OhAuthTooTokenWhereInput!] +type InternalPolicyHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: InternalPolicyHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - client_id field predicates + the name of the policy """ - clientID: String - clientIDNEQ: String - clientIDIn: [String!] - clientIDNotIn: [String!] - clientIDGT: String - clientIDGTE: String - clientIDLT: String - clientIDLTE: String - clientIDContains: String - clientIDHasPrefix: String - clientIDHasSuffix: String - clientIDEqualFold: String - clientIDContainsFold: String + name: String! """ - nonce field predicates + description of the policy """ - nonce: String - nonceNEQ: String - nonceIn: [String!] - nonceNotIn: [String!] - nonceGT: String - nonceGTE: String - nonceLT: String - nonceLTE: String - nonceContains: String - nonceHasPrefix: String - nonceHasSuffix: String - nonceEqualFold: String - nonceContainsFold: String + description: String! """ - claims_user_id field predicates + status of the policy """ - claimsUserID: String - claimsUserIDNEQ: String - claimsUserIDIn: [String!] - claimsUserIDNotIn: [String!] - claimsUserIDGT: String - claimsUserIDGTE: String - claimsUserIDLT: String - claimsUserIDLTE: String - claimsUserIDContains: String - claimsUserIDHasPrefix: String - claimsUserIDHasSuffix: String - claimsUserIDEqualFold: String - claimsUserIDContainsFold: String + status: String """ - claims_username field predicates + type of the policy """ - claimsUsername: String - claimsUsernameNEQ: String - claimsUsernameIn: [String!] - claimsUsernameNotIn: [String!] - claimsUsernameGT: String - claimsUsernameGTE: String - claimsUsernameLT: String - claimsUsernameLTE: String - claimsUsernameContains: String - claimsUsernameHasPrefix: String - claimsUsernameHasSuffix: String - claimsUsernameEqualFold: String - claimsUsernameContainsFold: String + policyType: String """ - claims_email field predicates + version of the policy """ - claimsEmail: String - claimsEmailNEQ: String - claimsEmailIn: [String!] - claimsEmailNotIn: [String!] - claimsEmailGT: String - claimsEmailGTE: String - claimsEmailLT: String - claimsEmailLTE: String - claimsEmailContains: String - claimsEmailHasPrefix: String - claimsEmailHasSuffix: String - claimsEmailEqualFold: String - claimsEmailContainsFold: String + version: String """ - claims_email_verified field predicates + purpose and scope """ - claimsEmailVerified: Boolean - claimsEmailVerifiedNEQ: Boolean + purposeAndScope: String """ - claims_preferred_username field predicates + background of the policy """ - claimsPreferredUsername: String - claimsPreferredUsernameNEQ: String - claimsPreferredUsernameIn: [String!] - claimsPreferredUsernameNotIn: [String!] - claimsPreferredUsernameGT: String - claimsPreferredUsernameGTE: String - claimsPreferredUsernameLT: String - claimsPreferredUsernameLTE: String - claimsPreferredUsernameContains: String - claimsPreferredUsernameHasPrefix: String - claimsPreferredUsernameHasSuffix: String - claimsPreferredUsernameEqualFold: String - claimsPreferredUsernameContainsFold: String + background: String """ - connector_id field predicates + json data for the policy document """ - connectorID: String - connectorIDNEQ: String - connectorIDIn: [String!] - connectorIDNotIn: [String!] - connectorIDGT: String - connectorIDGTE: String - connectorIDLT: String - connectorIDLTE: String - connectorIDContains: String - connectorIDHasPrefix: String - connectorIDHasSuffix: String - connectorIDEqualFold: String - connectorIDContainsFold: String + details: Map +} +""" +A connection to a list of items. +""" +type InternalPolicyHistoryConnection { """ - last_used field predicates + A list of edges. """ - lastUsed: Time - lastUsedNEQ: Time - lastUsedIn: [Time!] - lastUsedNotIn: [Time!] - lastUsedGT: Time - lastUsedGTE: Time - lastUsedLT: Time - lastUsedLTE: Time + edges: [InternalPolicyHistoryEdge] """ - integration edge predicates + Information to aid in pagination. """ - hasIntegration: Boolean - hasIntegrationWith: [IntegrationWhereInput!] + pageInfo: PageInfo! """ - events edge predicates + Identifies the total count of items in the connection. """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + totalCount: Int! } """ -Possible directions in which to order a list of items when provided an `orderBy` argument. +An edge in a connection. """ -enum OrderDirection { +type InternalPolicyHistoryEdge { """ - Specifies an ascending order for a given `orderBy` argument. + The item at the end of the edge. """ - ASC + node: InternalPolicyHistory """ - Specifies a descending order for a given `orderBy` argument. + A cursor for use in pagination. """ - DESC -} -type OrgMembership implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - role: OrgMembershipRole! - organizationID: ID! - userID: ID! - organization: Organization! - user: User! - events: [Event!] + cursor: Cursor! } """ -Return response for createBulkOrgMembership mutation +InternalPolicyHistoryOpType is enum for the field operation """ -type OrgMembershipBulkCreatePayload { - """ - Created orgMemberships - """ - orgMemberships: [OrgMembership!] +enum InternalPolicyHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE } """ -A connection to a list of items. +InternalPolicyHistoryWhereInput is used for filtering InternalPolicyHistory objects. +Input was generated by ent. """ -type OrgMembershipConnection { - """ - A list of edges. - """ - edges: [OrgMembershipEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -Return response for createOrgMembership mutation -""" -type OrgMembershipCreatePayload { - """ - Created orgMembership - """ - orgMembership: OrgMembership! -} -""" -Return response for deleteOrgMembership mutation -""" -type OrgMembershipDeletePayload { - """ - Deleted orgMembership ID - """ - deletedID: ID! -} -""" -An edge in a connection. -""" -type OrgMembershipEdge { - """ - The item at the end of the edge. - """ - node: OrgMembership - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type OrgMembershipHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: OrgMembershipHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - role: OrgMembershipHistoryRole! - organizationID: String! - userID: String! -} -""" -A connection to a list of items. -""" -type OrgMembershipHistoryConnection { - """ - A list of edges. - """ - edges: [OrgMembershipHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrgMembershipHistoryEdge { - """ - The item at the end of the edge. - """ - node: OrgMembershipHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -OrgMembershipHistoryOpType is enum for the field operation -""" -enum OrgMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -OrgMembershipHistoryRole is enum for the field role -""" -enum OrgMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER - OWNER -} -""" -OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. -Input was generated by ent. -""" -input OrgMembershipHistoryWhereInput { - not: OrgMembershipHistoryWhereInput - and: [OrgMembershipHistoryWhereInput!] - or: [OrgMembershipHistoryWhereInput!] +input InternalPolicyHistoryWhereInput { + not: InternalPolicyHistoryWhereInput + and: [InternalPolicyHistoryWhereInput!] + or: [InternalPolicyHistoryWhereInput!] """ id field predicates """ @@ -14068,10 +13878,10 @@ input OrgMembershipHistoryWhereInput { """ operation field predicates """ - operation: OrgMembershipHistoryOpType - operationNEQ: OrgMembershipHistoryOpType - operationIn: [OrgMembershipHistoryOpType!] - operationNotIn: [OrgMembershipHistoryOpType!] + operation: InternalPolicyHistoryOpType + operationNEQ: InternalPolicyHistoryOpType + operationIn: [InternalPolicyHistoryOpType!] + operationNotIn: [InternalPolicyHistoryOpType!] """ created_at field predicates """ @@ -14166,71 +13976,148 @@ input OrgMembershipHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - role field predicates + name field predicates """ - role: OrgMembershipHistoryRole - roleNEQ: OrgMembershipHistoryRole - roleIn: [OrgMembershipHistoryRole!] - roleNotIn: [OrgMembershipHistoryRole!] + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - organization_id field predicates + description field predicates """ - organizationID: String - organizationIDNEQ: String - organizationIDIn: [String!] - organizationIDNotIn: [String!] - organizationIDGT: String - organizationIDGTE: String - organizationIDLT: String - organizationIDLTE: String - organizationIDContains: String - organizationIDHasPrefix: String - organizationIDHasSuffix: String - organizationIDEqualFold: String - organizationIDContainsFold: String + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionEqualFold: String + descriptionContainsFold: String """ - user_id field predicates + status field predicates """ - userID: String - userIDNEQ: String - userIDIn: [String!] - userIDNotIn: [String!] - userIDGT: String - userIDGTE: String - userIDLT: String - userIDLTE: String - userIDContains: String - userIDHasPrefix: String - userIDHasSuffix: String - userIDEqualFold: String - userIDContainsFold: String + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + policy_type field predicates + """ + policyType: String + policyTypeNEQ: String + policyTypeIn: [String!] + policyTypeNotIn: [String!] + policyTypeGT: String + policyTypeGTE: String + policyTypeLT: String + policyTypeLTE: String + policyTypeContains: String + policyTypeHasPrefix: String + policyTypeHasSuffix: String + policyTypeIsNil: Boolean + policyTypeNotNil: Boolean + policyTypeEqualFold: String + policyTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String } -""" -OrgMembershipRole is enum for the field role -""" -enum OrgMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER - OWNER +type InternalPolicySearchResult { + internalPolicies: [InternalPolicy!] } """ -Return response for updateOrgMembership mutation +Return response for updateInternalPolicy mutation """ -type OrgMembershipUpdatePayload { +type InternalPolicyUpdatePayload { """ - Updated orgMembership + Updated internalPolicy """ - orgMembership: OrgMembership! + internalPolicy: InternalPolicy! } """ -OrgMembershipWhereInput is used for filtering OrgMembership objects. +InternalPolicyWhereInput is used for filtering InternalPolicy objects. Input was generated by ent. """ -input OrgMembershipWhereInput { - not: OrgMembershipWhereInput - and: [OrgMembershipWhereInput!] - or: [OrgMembershipWhereInput!] +input InternalPolicyWhereInput { + not: InternalPolicyWhereInput + and: [InternalPolicyWhereInput!] + or: [InternalPolicyWhereInput!] """ id field predicates """ @@ -14338,126 +14225,201 @@ input OrgMembershipWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - role field predicates - """ - role: OrgMembershipRole - roleNEQ: OrgMembershipRole - roleIn: [OrgMembershipRole!] - roleNotIn: [OrgMembershipRole!] - organizationID: String - userID: String -} -type Organization implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the name of the organization + name field predicates """ - name: String! + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - The organization's displayed 'friendly' name + description field predicates """ - displayName: String! + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionEqualFold: String + descriptionContainsFold: String """ - An optional description of the organization + status field predicates """ - description: String + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - orgs directly associated with a user + policy_type field predicates + """ + policyType: String + policyTypeNEQ: String + policyTypeIn: [String!] + policyTypeNotIn: [String!] + policyTypeGT: String + policyTypeGTE: String + policyTypeLT: String + policyTypeLTE: String + policyTypeContains: String + policyTypeHasPrefix: String + policyTypeHasSuffix: String + policyTypeIsNil: Boolean + policyTypeNotNil: Boolean + policyTypeEqualFold: String + policyTypeContainsFold: String """ - personalOrg: Boolean + version field predicates """ - URL of the user's remote avatar + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - avatarRemoteURL: String + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + controlobjectives edge predicates + """ + hasControlobjectives: Boolean + hasControlobjectivesWith: [ControlObjectiveWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] +} +type Invite implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - Whether the organization has a dedicated database + the organization id that owns the object """ - dedicatedDb: Boolean! - parent: Organization - children( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Organizations returned from the connection. - """ - orderBy: OrganizationOrder - - """ - Filtering options for Organizations returned from the connection. - """ - where: OrganizationWhereInput - ): OrganizationConnection! - groups: [Group!] - templates: [Template!] - integrations: [Integration!] - setting: OrganizationSetting - documentdata: [DocumentData!] - entitlements: [Entitlement!] - organizationEntitlement: [Entitlement!] - personalAccessTokens: [PersonalAccessToken!] - apiTokens: [APIToken!] - oauthprovider: [OauthProvider!] - users: [User!] - invites: [Invite!] - subscribers: [Subscriber!] - webhooks: [Webhook!] + ownerID: ID + """ + the expiration date of the invitation token which defaults to 14 days in the future from creation + """ + expires: Time + """ + the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + """ + recipient: String! + """ + the status of the invitation + """ + status: InviteInviteStatus! + role: InviteRole! + """ + the number of attempts made to perform email send of the invitation, maximum of 5 + """ + sendAttempts: Int! + """ + the user who initiated the invitation + """ + requestorID: String + owner: Organization events: [Event!] - secrets: [Hush!] - features: [Feature!] - files: [File!] - entitlementplans: [EntitlementPlan!] - entitlementplanfeatures: [EntitlementPlanFeature!] - entities: [Entity!] - entitytypes: [EntityType!] - contacts: [Contact!] - notes: [Note!] - members: [OrgMembership!] } """ -Return response for createBulkOrganization mutation +Return response for createBulkInvite mutation """ -type OrganizationBulkCreatePayload { +type InviteBulkCreatePayload { """ - Created organizations + Created invites """ - organizations: [Organization!] + invites: [Invite!] } """ A connection to a list of items. """ -type OrganizationConnection { +type InviteConnection { """ A list of edges. """ - edges: [OrganizationEdge] + edges: [InviteEdge] """ Information to aid in pagination. """ @@ -14468,142 +14430,70 @@ type OrganizationConnection { totalCount: Int! } """ -Return response for createOrganization mutation +Return response for createInvite mutation """ -type OrganizationCreatePayload { +type InviteCreatePayload { """ - Created organization + Created invite """ - organization: Organization! + invite: Invite! } """ -Return response for deleteOrganization mutation +Return response for deleteInvite mutation """ -type OrganizationDeletePayload { +type InviteDeletePayload { """ - Deleted organization ID + Deleted invite ID """ deletedID: ID! } """ An edge in a connection. """ -type OrganizationEdge { +type InviteEdge { """ The item at the end of the edge. """ - node: Organization + node: Invite """ A cursor for use in pagination. """ cursor: Cursor! } -type OrganizationHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: OrganizationHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the name of the organization - """ - name: String! - """ - The organization's displayed 'friendly' name - """ - displayName: String! - """ - An optional description of the organization - """ - description: String - """ - orgs directly associated with a user - """ - personalOrg: Boolean - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - Whether the organization has a dedicated database - """ - dedicatedDb: Boolean! +""" +InviteInviteStatus is enum for the field status +""" +enum InviteInviteStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.InviteStatus") { + INVITATION_SENT + APPROVAL_REQUIRED + INVITATION_ACCEPTED + INVITATION_EXPIRED } """ -A connection to a list of items. +InviteRole is enum for the field role """ -type OrganizationHistoryConnection { - """ - A list of edges. - """ - edges: [OrganizationHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! +enum InviteRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER } """ -An edge in a connection. +Return response for updateInvite mutation """ -type OrganizationHistoryEdge { - """ - The item at the end of the edge. - """ - node: OrganizationHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -OrganizationHistoryOpType is enum for the field operation -""" -enum OrganizationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for OrganizationHistory connections -""" -input OrganizationHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC +type InviteUpdatePayload { """ - The field by which to order OrganizationHistories. + Updated invite """ - field: OrganizationHistoryOrderField! -} -""" -Properties by which OrganizationHistory connections can be ordered. -""" -enum OrganizationHistoryOrderField { - name - display_name + invite: Invite! } """ -OrganizationHistoryWhereInput is used for filtering OrganizationHistory objects. +InviteWhereInput is used for filtering Invite objects. Input was generated by ent. """ -input OrganizationHistoryWhereInput { - not: OrganizationHistoryWhereInput - and: [OrganizationHistoryWhereInput!] - or: [OrganizationHistoryWhereInput!] +input InviteWhereInput { + not: InviteWhereInput + and: [InviteWhereInput!] + or: [InviteWhereInput!] """ id field predicates """ @@ -14618,42 +14508,6 @@ input OrganizationHistoryWhereInput { idEqualFold: ID idContainsFold: ID """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: OrganizationHistoryOpType - operationNEQ: OrganizationHistoryOpType - operationIn: [OrganizationHistoryOpType!] - operationNotIn: [OrganizationHistoryOpType!] - """ created_at field predicates """ createdAt: Time @@ -14747,1873 +14601,8322 @@ input OrganizationHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String - """ - parent_organization_id field predicates - """ - parentOrganizationID: ID - parentOrganizationIDNEQ: ID - parentOrganizationIDIn: [ID!] - parentOrganizationIDNotIn: [ID!] - parentOrganizationIDGT: ID - parentOrganizationIDGTE: ID - parentOrganizationIDLT: ID - parentOrganizationIDLTE: ID - parentOrganizationIDContains: ID - parentOrganizationIDHasPrefix: ID - parentOrganizationIDHasSuffix: ID - parentOrganizationIDIsNil: Boolean - parentOrganizationIDNotNil: Boolean - parentOrganizationIDEqualFold: ID - parentOrganizationIDContainsFold: ID - """ - personal_org field predicates + owner_id field predicates """ - personalOrg: Boolean - personalOrgNEQ: Boolean - personalOrgIsNil: Boolean - personalOrgNotNil: Boolean + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - avatar_remote_url field predicates + expires field predicates """ - avatarRemoteURL: String - avatarRemoteURLNEQ: String - avatarRemoteURLIn: [String!] - avatarRemoteURLNotIn: [String!] - avatarRemoteURLGT: String - avatarRemoteURLGTE: String - avatarRemoteURLLT: String - avatarRemoteURLLTE: String - avatarRemoteURLContains: String - avatarRemoteURLHasPrefix: String - avatarRemoteURLHasSuffix: String - avatarRemoteURLIsNil: Boolean - avatarRemoteURLNotNil: Boolean - avatarRemoteURLEqualFold: String - avatarRemoteURLContainsFold: String -} -""" -Ordering options for Organization connections -""" -input OrganizationOrder { + expires: Time + expiresNEQ: Time + expiresIn: [Time!] + expiresNotIn: [Time!] + expiresGT: Time + expiresGTE: Time + expiresLT: Time + expiresLTE: Time + expiresIsNil: Boolean + expiresNotNil: Boolean """ - The ordering direction. + recipient field predicates """ - direction: OrderDirection! = ASC + recipient: String + recipientNEQ: String + recipientIn: [String!] + recipientNotIn: [String!] + recipientGT: String + recipientGTE: String + recipientLT: String + recipientLTE: String + recipientContains: String + recipientHasPrefix: String + recipientHasSuffix: String + recipientEqualFold: String + recipientContainsFold: String """ - The field by which to order Organizations. + status field predicates """ - field: OrganizationOrderField! -} -""" -Properties by which Organization connections can be ordered. -""" -enum OrganizationOrderField { - name - display_name -} -type OrganizationSearchResult { - organizations: [Organization!] -} -type OrganizationSetting implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String + status: InviteInviteStatus + statusNEQ: InviteInviteStatus + statusIn: [InviteInviteStatus!] + statusNotIn: [InviteInviteStatus!] """ - tags associated with the object + role field predicates """ - tags: [String!] - deletedAt: Time - deletedBy: String + role: InviteRole + roleNEQ: InviteRole + roleIn: [InviteRole!] + roleNotIn: [InviteRole!] """ - domains associated with the organization + send_attempts field predicates """ - domains: [String!] + sendAttempts: Int + sendAttemptsNEQ: Int + sendAttemptsIn: [Int!] + sendAttemptsNotIn: [Int!] + sendAttemptsGT: Int + sendAttemptsGTE: Int + sendAttemptsLT: Int + sendAttemptsLTE: Int """ - Name of the person to contact for billing + requestor_id field predicates """ - billingContact: String + requestorID: String + requestorIDNEQ: String + requestorIDIn: [String!] + requestorIDNotIn: [String!] + requestorIDGT: String + requestorIDGTE: String + requestorIDLT: String + requestorIDLTE: String + requestorIDContains: String + requestorIDHasPrefix: String + requestorIDHasSuffix: String + requestorIDIsNil: Boolean + requestorIDNotNil: Boolean + requestorIDEqualFold: String + requestorIDContainsFold: String """ - Email address of the person to contact for billing + owner edge predicates """ - billingEmail: String + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - Phone number to contact for billing + events edge predicates """ - billingPhone: String + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +""" +A valid JSON string. +""" +scalar JSON +""" +The builtin Map type +""" +scalar Map +type Mutation { """ - Address to send billing information to + Create a new actionPlan """ - billingAddress: String + createActionPlan( + """ + values of the actionPlan + """ + input: CreateActionPlanInput! + ): ActionPlanCreatePayload! """ - Usually government-issued tax ID or business ID such as ABN in Australia + Create multiple new actionPlans """ - taxIdentifier: String + createBulkActionPlan( + """ + values of the actionPlan + """ + input: [CreateActionPlanInput!] + ): ActionPlanBulkCreatePayload! """ - geographical location of the organization + Create multiple new actionPlans via file upload """ - geoLocation: OrganizationSettingRegion + createBulkCSVActionPlan( + """ + csv file containing values of the actionPlan + """ + input: Upload! + ): ActionPlanBulkCreatePayload! """ - the ID of the organization the settings belong to + Update an existing actionPlan """ - organizationID: ID - organization: Organization - files: [File!] -} -""" -Return response for createBulkOrganizationSetting mutation -""" -type OrganizationSettingBulkCreatePayload { + updateActionPlan( + """ + ID of the actionPlan + """ + id: ID! + + """ + New values for the actionPlan + """ + input: UpdateActionPlanInput! + ): ActionPlanUpdatePayload! """ - Created organizationSettings + Delete an existing actionPlan """ - organizationSettings: [OrganizationSetting!] -} -""" -A connection to a list of items. -""" -type OrganizationSettingConnection { + deleteActionPlan( + """ + ID of the actionPlan + """ + id: ID! + ): ActionPlanDeletePayload! """ - A list of edges. + Create a new apiToken """ - edges: [OrganizationSettingEdge] + createAPIToken( + """ + values of the apiToken + """ + input: CreateAPITokenInput! + ): APITokenCreatePayload! """ - Information to aid in pagination. + Create multiple new apiTokens """ - pageInfo: PageInfo! + createBulkAPIToken( + """ + values of the apiToken + """ + input: [CreateAPITokenInput!] + ): APITokenBulkCreatePayload! """ - Identifies the total count of items in the connection. + Create multiple new apiTokens via file upload """ - totalCount: Int! -} -""" -Return response for createOrganizationSetting mutation -""" -type OrganizationSettingCreatePayload { + createBulkCSVAPIToken( + """ + csv file containing values of the apiToken + """ + input: Upload! + ): APITokenBulkCreatePayload! """ - Created organizationSetting + Update an existing apiToken """ - organizationSetting: OrganizationSetting! -} -""" -Return response for deleteOrganizationSetting mutation -""" -type OrganizationSettingDeletePayload { + updateAPIToken( + """ + ID of the apiToken + """ + id: ID! + + """ + New values for the apiToken + """ + input: UpdateAPITokenInput! + ): APITokenUpdatePayload! """ - Deleted organizationSetting ID + Delete an existing apiToken """ - deletedID: ID! -} -""" -An edge in a connection. -""" -type OrganizationSettingEdge { + deleteAPIToken( + """ + ID of the apiToken + """ + id: ID! + ): APITokenDeletePayload! """ - The item at the end of the edge. + Create a new contact """ - node: OrganizationSetting + createContact( + """ + values of the contact + """ + input: CreateContactInput! + ): ContactCreatePayload! """ - A cursor for use in pagination. + Create multiple new contacts """ - cursor: Cursor! -} -type OrganizationSettingHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: OrganizationSettingHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String + createBulkContact( + """ + values of the contact + """ + input: [CreateContactInput!] + ): ContactBulkCreatePayload! """ - tags associated with the object + Create multiple new contacts via file upload """ - tags: [String!] - deletedAt: Time - deletedBy: String + createBulkCSVContact( + """ + csv file containing values of the contact + """ + input: Upload! + ): ContactBulkCreatePayload! """ - domains associated with the organization + Update an existing contact """ - domains: [String!] + updateContact( + """ + ID of the contact + """ + id: ID! + + """ + New values for the contact + """ + input: UpdateContactInput! + ): ContactUpdatePayload! """ - Name of the person to contact for billing + Delete an existing contact """ - billingContact: String + deleteContact( + """ + ID of the contact + """ + id: ID! + ): ContactDeletePayload! """ - Email address of the person to contact for billing + Create a new control """ - billingEmail: String + createControl( + """ + values of the control + """ + input: CreateControlInput! + ): ControlCreatePayload! """ - Phone number to contact for billing + Create multiple new controls """ - billingPhone: String + createBulkControl( + """ + values of the control + """ + input: [CreateControlInput!] + ): ControlBulkCreatePayload! """ - Address to send billing information to + Create multiple new controls via file upload """ - billingAddress: String + createBulkCSVControl( + """ + csv file containing values of the control + """ + input: Upload! + ): ControlBulkCreatePayload! """ - Usually government-issued tax ID or business ID such as ABN in Australia + Update an existing control """ - taxIdentifier: String + updateControl( + """ + ID of the control + """ + id: ID! + + """ + New values for the control + """ + input: UpdateControlInput! + ): ControlUpdatePayload! """ - geographical location of the organization + Delete an existing control """ - geoLocation: OrganizationSettingHistoryRegion + deleteControl( + """ + ID of the control + """ + id: ID! + ): ControlDeletePayload! """ - the ID of the organization the settings belong to + Create a new controlObjective """ - organizationID: String -} -""" -A connection to a list of items. -""" -type OrganizationSettingHistoryConnection { + createControlObjective( + """ + values of the controlObjective + """ + input: CreateControlObjectiveInput! + ): ControlObjectiveCreatePayload! """ - A list of edges. + Create multiple new controlObjectives """ - edges: [OrganizationSettingHistoryEdge] + createBulkControlObjective( + """ + values of the controlObjective + """ + input: [CreateControlObjectiveInput!] + ): ControlObjectiveBulkCreatePayload! """ - Information to aid in pagination. + Create multiple new controlObjectives via file upload """ - pageInfo: PageInfo! + createBulkCSVControlObjective( + """ + csv file containing values of the controlObjective + """ + input: Upload! + ): ControlObjectiveBulkCreatePayload! """ - Identifies the total count of items in the connection. + Update an existing controlObjective """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrganizationSettingHistoryEdge { + updateControlObjective( + """ + ID of the controlObjective + """ + id: ID! + + """ + New values for the controlObjective + """ + input: UpdateControlObjectiveInput! + ): ControlObjectiveUpdatePayload! """ - The item at the end of the edge. + Delete an existing controlObjective """ - node: OrganizationSettingHistory + deleteControlObjective( + """ + ID of the controlObjective + """ + id: ID! + ): ControlObjectiveDeletePayload! """ - A cursor for use in pagination. + Create a new documentData """ - cursor: Cursor! -} -""" -OrganizationSettingHistoryOpType is enum for the field operation -""" -enum OrganizationSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -OrganizationSettingHistoryRegion is enum for the field geo_location -""" -enum OrganizationSettingHistoryRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { - AMER - EMEA - APAC -} -""" -OrganizationSettingHistoryWhereInput is used for filtering OrganizationSettingHistory objects. -Input was generated by ent. -""" -input OrganizationSettingHistoryWhereInput { - not: OrganizationSettingHistoryWhereInput - and: [OrganizationSettingHistoryWhereInput!] - or: [OrganizationSettingHistoryWhereInput!] + createDocumentData( + """ + values of the documentData + """ + input: CreateDocumentDataInput! + ): DocumentDataCreatePayload! """ - id field predicates + Create multiple new documentData """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + createBulkDocumentData( + """ + values of the documentData + """ + input: [CreateDocumentDataInput!] + ): DocumentDataBulkCreatePayload! """ - history_time field predicates + Create multiple new documentData via file upload """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time + createBulkCSVDocumentData( + """ + csv file containing values of the documentData + """ + input: Upload! + ): DocumentDataBulkCreatePayload! """ - ref field predicates + Update an existing documentData """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String + updateDocumentData( + """ + ID of the documentData + """ + id: ID! + + """ + New values for the documentData + """ + input: UpdateDocumentDataInput! + ): DocumentDataUpdatePayload! """ - operation field predicates + Delete an existing documentData """ - operation: OrganizationSettingHistoryOpType - operationNEQ: OrganizationSettingHistoryOpType - operationIn: [OrganizationSettingHistoryOpType!] - operationNotIn: [OrganizationSettingHistoryOpType!] + deleteDocumentData( + """ + ID of the documentData + """ + id: ID! + ): DocumentDataDeletePayload! """ - created_at field predicates + Create a new entitlement """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + createEntitlement( + """ + values of the entitlement + """ + input: CreateEntitlementInput! + ): EntitlementCreatePayload! """ - updated_at field predicates + Create multiple new entitlements """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + createBulkEntitlement( + """ + values of the entitlement + """ + input: [CreateEntitlementInput!] + ): EntitlementBulkCreatePayload! """ - created_by field predicates + Create multiple new entitlements via file upload """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + createBulkCSVEntitlement( + """ + csv file containing values of the entitlement + """ + input: Upload! + ): EntitlementBulkCreatePayload! """ - updated_by field predicates + Update an existing entitlement """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + updateEntitlement( + """ + ID of the entitlement + """ + id: ID! + + """ + New values for the entitlement + """ + input: UpdateEntitlementInput! + ): EntitlementUpdatePayload! """ - deleted_at field predicates + Delete an existing entitlement """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + deleteEntitlement( + """ + ID of the entitlement + """ + id: ID! + ): EntitlementDeletePayload! """ - deleted_by field predicates + Create a new entitlementPlan """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + createEntitlementPlan( + """ + values of the entitlementPlan + """ + input: CreateEntitlementPlanInput! + ): EntitlementPlanCreatePayload! """ - billing_contact field predicates + Create multiple new entitlementPlans """ - billingContact: String - billingContactNEQ: String - billingContactIn: [String!] - billingContactNotIn: [String!] - billingContactGT: String - billingContactGTE: String - billingContactLT: String - billingContactLTE: String - billingContactContains: String - billingContactHasPrefix: String - billingContactHasSuffix: String - billingContactIsNil: Boolean - billingContactNotNil: Boolean - billingContactEqualFold: String - billingContactContainsFold: String + createBulkEntitlementPlan( + """ + values of the entitlementPlan + """ + input: [CreateEntitlementPlanInput!] + ): EntitlementPlanBulkCreatePayload! """ - billing_email field predicates + Create multiple new entitlementPlans via file upload """ - billingEmail: String - billingEmailNEQ: String - billingEmailIn: [String!] - billingEmailNotIn: [String!] - billingEmailGT: String - billingEmailGTE: String - billingEmailLT: String - billingEmailLTE: String - billingEmailContains: String - billingEmailHasPrefix: String - billingEmailHasSuffix: String - billingEmailIsNil: Boolean - billingEmailNotNil: Boolean - billingEmailEqualFold: String - billingEmailContainsFold: String - """ - billing_phone field predicates - """ - billingPhone: String - billingPhoneNEQ: String - billingPhoneIn: [String!] - billingPhoneNotIn: [String!] - billingPhoneGT: String - billingPhoneGTE: String - billingPhoneLT: String - billingPhoneLTE: String - billingPhoneContains: String - billingPhoneHasPrefix: String - billingPhoneHasSuffix: String - billingPhoneIsNil: Boolean - billingPhoneNotNil: Boolean - billingPhoneEqualFold: String - billingPhoneContainsFold: String + createBulkCSVEntitlementPlan( + """ + csv file containing values of the entitlementPlan + """ + input: Upload! + ): EntitlementPlanBulkCreatePayload! """ - billing_address field predicates + Update an existing entitlementPlan """ - billingAddress: String - billingAddressNEQ: String - billingAddressIn: [String!] - billingAddressNotIn: [String!] - billingAddressGT: String - billingAddressGTE: String - billingAddressLT: String - billingAddressLTE: String - billingAddressContains: String - billingAddressHasPrefix: String - billingAddressHasSuffix: String - billingAddressIsNil: Boolean - billingAddressNotNil: Boolean - billingAddressEqualFold: String - billingAddressContainsFold: String + updateEntitlementPlan( + """ + ID of the entitlementPlan + """ + id: ID! + + """ + New values for the entitlementPlan + """ + input: UpdateEntitlementPlanInput! + ): EntitlementPlanUpdatePayload! """ - tax_identifier field predicates + Delete an existing entitlementPlan """ - taxIdentifier: String - taxIdentifierNEQ: String - taxIdentifierIn: [String!] - taxIdentifierNotIn: [String!] - taxIdentifierGT: String - taxIdentifierGTE: String - taxIdentifierLT: String - taxIdentifierLTE: String - taxIdentifierContains: String - taxIdentifierHasPrefix: String - taxIdentifierHasSuffix: String - taxIdentifierIsNil: Boolean - taxIdentifierNotNil: Boolean - taxIdentifierEqualFold: String - taxIdentifierContainsFold: String + deleteEntitlementPlan( + """ + ID of the entitlementPlan + """ + id: ID! + ): EntitlementPlanDeletePayload! """ - geo_location field predicates + Create a new entitlementPlanFeature """ - geoLocation: OrganizationSettingHistoryRegion - geoLocationNEQ: OrganizationSettingHistoryRegion - geoLocationIn: [OrganizationSettingHistoryRegion!] - geoLocationNotIn: [OrganizationSettingHistoryRegion!] - geoLocationIsNil: Boolean - geoLocationNotNil: Boolean + createEntitlementPlanFeature( + """ + values of the entitlementPlanFeature + """ + input: CreateEntitlementPlanFeatureInput! + ): EntitlementPlanFeatureCreatePayload! """ - organization_id field predicates + Create multiple new entitlementPlanFeatures """ - organizationID: String - organizationIDNEQ: String - organizationIDIn: [String!] - organizationIDNotIn: [String!] - organizationIDGT: String - organizationIDGTE: String - organizationIDLT: String - organizationIDLTE: String - organizationIDContains: String - organizationIDHasPrefix: String - organizationIDHasSuffix: String - organizationIDIsNil: Boolean - organizationIDNotNil: Boolean - organizationIDEqualFold: String - organizationIDContainsFold: String -} -""" -OrganizationSettingRegion is enum for the field geo_location -""" -enum OrganizationSettingRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { - AMER - EMEA - APAC -} -type OrganizationSettingSearchResult { - organizationSettings: [OrganizationSetting!] -} -""" -Return response for updateOrganizationSetting mutation -""" -type OrganizationSettingUpdatePayload { + createBulkEntitlementPlanFeature( + """ + values of the entitlementPlanFeature + """ + input: [CreateEntitlementPlanFeatureInput!] + ): EntitlementPlanFeatureBulkCreatePayload! """ - Updated organizationSetting + Create multiple new entitlementPlanFeatures via file upload """ - organizationSetting: OrganizationSetting! -} -""" -OrganizationSettingWhereInput is used for filtering OrganizationSetting objects. -Input was generated by ent. -""" -input OrganizationSettingWhereInput { - not: OrganizationSettingWhereInput - and: [OrganizationSettingWhereInput!] - or: [OrganizationSettingWhereInput!] + createBulkCSVEntitlementPlanFeature( + """ + csv file containing values of the entitlementPlanFeature + """ + input: Upload! + ): EntitlementPlanFeatureBulkCreatePayload! """ - id field predicates + Update an existing entitlementPlanFeature """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + updateEntitlementPlanFeature( + """ + ID of the entitlementPlanFeature + """ + id: ID! + + """ + New values for the entitlementPlanFeature + """ + input: UpdateEntitlementPlanFeatureInput! + ): EntitlementPlanFeatureUpdatePayload! """ - created_at field predicates + Delete an existing entitlementPlanFeature """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + deleteEntitlementPlanFeature( + """ + ID of the entitlementPlanFeature + """ + id: ID! + ): EntitlementPlanFeatureDeletePayload! """ - updated_at field predicates + Create a new entity """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + createEntity( + """ + values of the entity + """ + input: CreateEntityInput! + ): EntityCreatePayload! """ - created_by field predicates + Create multiple new entities """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + createBulkEntity( + """ + values of the entity + """ + input: [CreateEntityInput!] + ): EntityBulkCreatePayload! """ - updated_by field predicates + Create multiple new entities via file upload """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + createBulkCSVEntity( + """ + csv file containing values of the entity + """ + input: Upload! + ): EntityBulkCreatePayload! """ - deleted_at field predicates + Update an existing entity """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + updateEntity( + """ + ID of the entity + """ + id: ID! + + """ + New values for the entity + """ + input: UpdateEntityInput! + ): EntityUpdatePayload! """ - deleted_by field predicates + Delete an existing entity """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + deleteEntity( + """ + ID of the entity + """ + id: ID! + ): EntityDeletePayload! """ - billing_contact field predicates + Create a new entityType """ - billingContact: String - billingContactNEQ: String - billingContactIn: [String!] - billingContactNotIn: [String!] - billingContactGT: String - billingContactGTE: String - billingContactLT: String - billingContactLTE: String - billingContactContains: String - billingContactHasPrefix: String - billingContactHasSuffix: String - billingContactIsNil: Boolean - billingContactNotNil: Boolean - billingContactEqualFold: String - billingContactContainsFold: String + createEntityType( + """ + values of the entityType + """ + input: CreateEntityTypeInput! + ): EntityTypeCreatePayload! """ - billing_email field predicates + Create multiple new entityTypes """ - billingEmail: String - billingEmailNEQ: String - billingEmailIn: [String!] - billingEmailNotIn: [String!] - billingEmailGT: String - billingEmailGTE: String - billingEmailLT: String - billingEmailLTE: String - billingEmailContains: String - billingEmailHasPrefix: String - billingEmailHasSuffix: String - billingEmailIsNil: Boolean - billingEmailNotNil: Boolean - billingEmailEqualFold: String - billingEmailContainsFold: String + createBulkEntityType( + """ + values of the entityType + """ + input: [CreateEntityTypeInput!] + ): EntityTypeBulkCreatePayload! """ - billing_phone field predicates + Create multiple new entityTypes via file upload """ - billingPhone: String - billingPhoneNEQ: String - billingPhoneIn: [String!] - billingPhoneNotIn: [String!] - billingPhoneGT: String - billingPhoneGTE: String - billingPhoneLT: String - billingPhoneLTE: String - billingPhoneContains: String - billingPhoneHasPrefix: String - billingPhoneHasSuffix: String - billingPhoneIsNil: Boolean - billingPhoneNotNil: Boolean - billingPhoneEqualFold: String - billingPhoneContainsFold: String + createBulkCSVEntityType( + """ + csv file containing values of the entityType + """ + input: Upload! + ): EntityTypeBulkCreatePayload! """ - billing_address field predicates + Update an existing entityType """ - billingAddress: String - billingAddressNEQ: String - billingAddressIn: [String!] - billingAddressNotIn: [String!] - billingAddressGT: String - billingAddressGTE: String - billingAddressLT: String - billingAddressLTE: String - billingAddressContains: String - billingAddressHasPrefix: String - billingAddressHasSuffix: String - billingAddressIsNil: Boolean - billingAddressNotNil: Boolean - billingAddressEqualFold: String - billingAddressContainsFold: String + updateEntityType( + """ + ID of the entityType + """ + id: ID! + + """ + New values for the entityType + """ + input: UpdateEntityTypeInput! + ): EntityTypeUpdatePayload! """ - tax_identifier field predicates + Delete an existing entityType """ - taxIdentifier: String - taxIdentifierNEQ: String - taxIdentifierIn: [String!] - taxIdentifierNotIn: [String!] - taxIdentifierGT: String - taxIdentifierGTE: String - taxIdentifierLT: String - taxIdentifierLTE: String - taxIdentifierContains: String - taxIdentifierHasPrefix: String - taxIdentifierHasSuffix: String - taxIdentifierIsNil: Boolean - taxIdentifierNotNil: Boolean - taxIdentifierEqualFold: String - taxIdentifierContainsFold: String + deleteEntityType( + """ + ID of the entityType + """ + id: ID! + ): EntityTypeDeletePayload! """ - geo_location field predicates + Create a new event """ - geoLocation: OrganizationSettingRegion - geoLocationNEQ: OrganizationSettingRegion - geoLocationIn: [OrganizationSettingRegion!] - geoLocationNotIn: [OrganizationSettingRegion!] - geoLocationIsNil: Boolean - geoLocationNotNil: Boolean + createEvent( + """ + values of the event + """ + input: CreateEventInput! + ): EventCreatePayload! """ - organization_id field predicates + Create multiple new events """ - organizationID: ID - organizationIDNEQ: ID - organizationIDIn: [ID!] - organizationIDNotIn: [ID!] - organizationIDGT: ID - organizationIDGTE: ID - organizationIDLT: ID - organizationIDLTE: ID - organizationIDContains: ID - organizationIDHasPrefix: ID - organizationIDHasSuffix: ID - organizationIDIsNil: Boolean - organizationIDNotNil: Boolean - organizationIDEqualFold: ID - organizationIDContainsFold: ID + createBulkEvent( + """ + values of the event + """ + input: [CreateEventInput!] + ): EventBulkCreatePayload! """ - organization edge predicates + Create multiple new events via file upload """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] + createBulkCSVEvent( + """ + csv file containing values of the event + """ + input: Upload! + ): EventBulkCreatePayload! """ - files edge predicates + Update an existing event """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] -} -""" -Return response for updateOrganization mutation -""" -type OrganizationUpdatePayload { + updateEvent( + """ + ID of the event + """ + id: ID! + + """ + New values for the event + """ + input: UpdateEventInput! + ): EventUpdatePayload! """ - Updated organization + Delete an existing event """ - organization: Organization! -} -""" -OrganizationWhereInput is used for filtering Organization objects. -Input was generated by ent. -""" -input OrganizationWhereInput { - not: OrganizationWhereInput - and: [OrganizationWhereInput!] - or: [OrganizationWhereInput!] + deleteEvent( + """ + ID of the event + """ + id: ID! + ): EventDeletePayload! """ - id field predicates + Create a new feature """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + createFeature( + """ + values of the feature + """ + input: CreateFeatureInput! + ): FeatureCreatePayload! """ - created_at field predicates + Create multiple new features """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + createBulkFeature( + """ + values of the feature + """ + input: [CreateFeatureInput!] + ): FeatureBulkCreatePayload! """ - updated_at field predicates + Create multiple new features via file upload """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + createBulkCSVFeature( + """ + csv file containing values of the feature + """ + input: Upload! + ): FeatureBulkCreatePayload! """ - created_by field predicates + Update an existing feature """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + updateFeature( + """ + ID of the feature + """ + id: ID! + + """ + New values for the feature + """ + input: UpdateFeatureInput! + ): FeatureUpdatePayload! """ - updated_by field predicates + Delete an existing feature """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + deleteFeature( + """ + ID of the feature + """ + id: ID! + ): FeatureDeletePayload! """ - deleted_at field predicates + Delete an existing file """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + deleteFile( + """ + ID of the file + """ + id: ID! + ): FileDeletePayload! """ - deleted_by field predicates + Create a new group """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + createGroup( + """ + values of the group + """ + input: CreateGroupInput! + ): GroupCreatePayload! """ - display_name field predicates + Create multiple new groups """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String + createBulkGroup( + """ + values of the group + """ + input: [CreateGroupInput!] + ): GroupBulkCreatePayload! """ - parent_organization_id field predicates + Create multiple new groups via file upload """ - parentOrganizationID: ID - parentOrganizationIDNEQ: ID - parentOrganizationIDIn: [ID!] - parentOrganizationIDNotIn: [ID!] - parentOrganizationIDGT: ID - parentOrganizationIDGTE: ID - parentOrganizationIDLT: ID - parentOrganizationIDLTE: ID - parentOrganizationIDContains: ID - parentOrganizationIDHasPrefix: ID - parentOrganizationIDHasSuffix: ID - parentOrganizationIDIsNil: Boolean - parentOrganizationIDNotNil: Boolean - parentOrganizationIDEqualFold: ID - parentOrganizationIDContainsFold: ID + createBulkCSVGroup( + """ + csv file containing values of the group + """ + input: Upload! + ): GroupBulkCreatePayload! """ - personal_org field predicates + Update an existing group """ - personalOrg: Boolean - personalOrgNEQ: Boolean - personalOrgIsNil: Boolean - personalOrgNotNil: Boolean + updateGroup( + """ + ID of the group + """ + id: ID! + + """ + New values for the group + """ + input: UpdateGroupInput! + ): GroupUpdatePayload! """ - avatar_remote_url field predicates + Delete an existing group """ - avatarRemoteURL: String - avatarRemoteURLNEQ: String - avatarRemoteURLIn: [String!] - avatarRemoteURLNotIn: [String!] - avatarRemoteURLGT: String - avatarRemoteURLGTE: String - avatarRemoteURLLT: String - avatarRemoteURLLTE: String - avatarRemoteURLContains: String - avatarRemoteURLHasPrefix: String - avatarRemoteURLHasSuffix: String - avatarRemoteURLIsNil: Boolean - avatarRemoteURLNotNil: Boolean - avatarRemoteURLEqualFold: String - avatarRemoteURLContainsFold: String + deleteGroup( + """ + ID of the group + """ + id: ID! + ): GroupDeletePayload! """ - parent edge predicates + Create a new groupMembership """ - hasParent: Boolean - hasParentWith: [OrganizationWhereInput!] + createGroupMembership( + """ + values of the groupMembership + """ + input: CreateGroupMembershipInput! + ): GroupMembershipCreatePayload! """ - children edge predicates + Create multiple new groupMemberships """ - hasChildren: Boolean - hasChildrenWith: [OrganizationWhereInput!] + createBulkGroupMembership( + """ + values of the groupMembership + """ + input: [CreateGroupMembershipInput!] + ): GroupMembershipBulkCreatePayload! """ - groups edge predicates + Create multiple new groupMemberships via file upload """ - hasGroups: Boolean - hasGroupsWith: [GroupWhereInput!] + createBulkCSVGroupMembership( + """ + csv file containing values of the groupMembership + """ + input: Upload! + ): GroupMembershipBulkCreatePayload! """ - templates edge predicates + Update an existing groupMembership """ - hasTemplates: Boolean - hasTemplatesWith: [TemplateWhereInput!] + updateGroupMembership( + """ + ID of the groupMembership + """ + id: ID! + + """ + New values for the groupMembership + """ + input: UpdateGroupMembershipInput! + ): GroupMembershipUpdatePayload! """ - integrations edge predicates + Delete an existing groupMembership """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] + deleteGroupMembership( + """ + ID of the groupMembership + """ + id: ID! + ): GroupMembershipDeletePayload! """ - setting edge predicates + Create a new groupSetting """ - hasSetting: Boolean - hasSettingWith: [OrganizationSettingWhereInput!] + createGroupSetting( + """ + values of the groupSetting + """ + input: CreateGroupSettingInput! + ): GroupSettingCreatePayload! """ - documentdata edge predicates + Create multiple new groupSettings """ - hasDocumentdata: Boolean - hasDocumentdataWith: [DocumentDataWhereInput!] + createBulkGroupSetting( + """ + values of the groupSetting + """ + input: [CreateGroupSettingInput!] + ): GroupSettingBulkCreatePayload! """ - entitlements edge predicates + Create multiple new groupSettings via file upload """ - hasEntitlements: Boolean - hasEntitlementsWith: [EntitlementWhereInput!] + createBulkCSVGroupSetting( + """ + csv file containing values of the groupSetting + """ + input: Upload! + ): GroupSettingBulkCreatePayload! """ - organization_entitlement edge predicates + Update an existing groupSetting """ - hasOrganizationEntitlement: Boolean - hasOrganizationEntitlementWith: [EntitlementWhereInput!] + updateGroupSetting( + """ + ID of the groupSetting + """ + id: ID! + + """ + New values for the groupSetting + """ + input: UpdateGroupSettingInput! + ): GroupSettingUpdatePayload! """ - personal_access_tokens edge predicates + Delete an existing groupSetting """ - hasPersonalAccessTokens: Boolean - hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] + deleteGroupSetting( + """ + ID of the groupSetting + """ + id: ID! + ): GroupSettingDeletePayload! """ - api_tokens edge predicates + Create a new hush """ - hasAPITokens: Boolean - hasAPITokensWith: [APITokenWhereInput!] + createHush( + """ + values of the hush + """ + input: CreateHushInput! + ): HushCreatePayload! """ - oauthprovider edge predicates + Create multiple new hushs """ - hasOauthprovider: Boolean - hasOauthproviderWith: [OauthProviderWhereInput!] + createBulkHush( + """ + values of the hush + """ + input: [CreateHushInput!] + ): HushBulkCreatePayload! """ - users edge predicates + Create multiple new hushs via file upload """ - hasUsers: Boolean - hasUsersWith: [UserWhereInput!] + createBulkCSVHush( + """ + csv file containing values of the hush + """ + input: Upload! + ): HushBulkCreatePayload! """ - invites edge predicates + Update an existing hush """ - hasInvites: Boolean - hasInvitesWith: [InviteWhereInput!] + updateHush( + """ + ID of the hush + """ + id: ID! + + """ + New values for the hush + """ + input: UpdateHushInput! + ): HushUpdatePayload! """ - subscribers edge predicates + Delete an existing hush """ - hasSubscribers: Boolean - hasSubscribersWith: [SubscriberWhereInput!] + deleteHush( + """ + ID of the hush + """ + id: ID! + ): HushDeletePayload! """ - webhooks edge predicates + Create a new integration """ - hasWebhooks: Boolean - hasWebhooksWith: [WebhookWhereInput!] + createIntegration( + """ + values of the integration + """ + input: CreateIntegrationInput! + ): IntegrationCreatePayload! """ - events edge predicates + Create multiple new integrations """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + createBulkIntegration( + """ + values of the integration + """ + input: [CreateIntegrationInput!] + ): IntegrationBulkCreatePayload! """ - secrets edge predicates + Create multiple new integrations via file upload """ - hasSecrets: Boolean - hasSecretsWith: [HushWhereInput!] + createBulkCSVIntegration( + """ + csv file containing values of the integration + """ + input: Upload! + ): IntegrationBulkCreatePayload! """ - features edge predicates + Update an existing integration """ - hasFeatures: Boolean - hasFeaturesWith: [FeatureWhereInput!] + updateIntegration( + """ + ID of the integration + """ + id: ID! + + """ + New values for the integration + """ + input: UpdateIntegrationInput! + ): IntegrationUpdatePayload! """ - files edge predicates + Delete an existing integration """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] + deleteIntegration( + """ + ID of the integration + """ + id: ID! + ): IntegrationDeletePayload! """ - entitlementplans edge predicates + Create a new internalPolicy """ - hasEntitlementplans: Boolean - hasEntitlementplansWith: [EntitlementPlanWhereInput!] + createInternalPolicy( + """ + values of the internalPolicy + """ + input: CreateInternalPolicyInput! + ): InternalPolicyCreatePayload! """ - entitlementplanfeatures edge predicates + Create multiple new internalPolicys """ - hasEntitlementplanfeatures: Boolean - hasEntitlementplanfeaturesWith: [EntitlementPlanFeatureWhereInput!] + createBulkInternalPolicy( + """ + values of the internalPolicy + """ + input: [CreateInternalPolicyInput!] + ): InternalPolicyBulkCreatePayload! """ - entities edge predicates + Create multiple new internalPolicys via file upload """ - hasEntities: Boolean - hasEntitiesWith: [EntityWhereInput!] + createBulkCSVInternalPolicy( + """ + csv file containing values of the internalPolicy + """ + input: Upload! + ): InternalPolicyBulkCreatePayload! """ - entitytypes edge predicates + Update an existing internalPolicy """ - hasEntitytypes: Boolean - hasEntitytypesWith: [EntityTypeWhereInput!] + updateInternalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + + """ + New values for the internalPolicy + """ + input: UpdateInternalPolicyInput! + ): InternalPolicyUpdatePayload! """ - contacts edge predicates + Delete an existing internalPolicy """ - hasContacts: Boolean - hasContactsWith: [ContactWhereInput!] + deleteInternalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + ): InternalPolicyDeletePayload! """ - notes edge predicates + Create a new invite """ - hasNotes: Boolean - hasNotesWith: [NoteWhereInput!] + createInvite( + """ + values of the invite + """ + input: CreateInviteInput! + ): InviteCreatePayload! """ - members edge predicates + Create multiple new invites """ - hasMembers: Boolean - hasMembersWith: [OrgMembershipWhereInput!] -} -""" -Information about pagination in a connection. -https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo -""" -type PageInfo { + createBulkInvite( + """ + values of the invite + """ + input: [CreateInviteInput!] + ): InviteBulkCreatePayload! """ - When paginating forwards, are there more items? + Create multiple new invites via file upload """ - hasNextPage: Boolean! + createBulkCSVInvite( + """ + csv file containing values of the invite + """ + input: Upload! + ): InviteBulkCreatePayload! """ - When paginating backwards, are there more items? + Update an existing invite """ - hasPreviousPage: Boolean! + updateInvite( + """ + ID of the invite + """ + id: ID! + + """ + New values for the invite + """ + input: UpdateInviteInput! + ): InviteUpdatePayload! """ - When paginating backwards, the cursor to continue. + Delete an existing invite """ - startCursor: Cursor + deleteInvite( + """ + ID of the invite + """ + id: ID! + ): InviteDeletePayload! """ - When paginating forwards, the cursor to continue. + Create a new narrative """ - endCursor: Cursor -} -type PersonalAccessToken implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String + createNarrative( + """ + values of the narrative + """ + input: CreateNarrativeInput! + ): NarrativeCreatePayload! """ - tags associated with the object + Create multiple new narratives """ - tags: [String!] + createBulkNarrative( + """ + values of the narrative + """ + input: [CreateNarrativeInput!] + ): NarrativeBulkCreatePayload! """ - the name associated with the token + Create multiple new narratives via file upload """ - name: String! - token: String! + createBulkCSVNarrative( + """ + csv file containing values of the narrative + """ + input: Upload! + ): NarrativeBulkCreatePayload! """ - when the token expires + Update an existing narrative """ - expiresAt: Time + updateNarrative( + """ + ID of the narrative + """ + id: ID! + + """ + New values for the narrative + """ + input: UpdateNarrativeInput! + ): NarrativeUpdatePayload! """ - a description of the token's purpose + Delete an existing narrative """ - description: String - scopes: [String!] - lastUsedAt: Time - owner: User! + deleteNarrative( + """ + ID of the narrative + """ + id: ID! + ): NarrativeDeletePayload! """ - the organization(s) the token is associated with + Create a new oauthProvider """ - organizations: [Organization!] - events: [Event!] -} -""" -Return response for createBulkPersonalAccessToken mutation -""" -type PersonalAccessTokenBulkCreatePayload { + createOauthProvider( + """ + values of the oauthProvider + """ + input: CreateOauthProviderInput! + ): OauthProviderCreatePayload! """ - Created personalAccessTokens + Create multiple new oauthProviders """ - personalAccessTokens: [PersonalAccessToken!] -} -""" -A connection to a list of items. -""" -type PersonalAccessTokenConnection { + createBulkOauthProvider( + """ + values of the oauthProvider + """ + input: [CreateOauthProviderInput!] + ): OauthProviderBulkCreatePayload! """ - A list of edges. + Create multiple new oauthProviders via file upload """ - edges: [PersonalAccessTokenEdge] + createBulkCSVOauthProvider( + """ + csv file containing values of the oauthProvider + """ + input: Upload! + ): OauthProviderBulkCreatePayload! """ - Information to aid in pagination. + Update an existing oauthProvider """ - pageInfo: PageInfo! + updateOauthProvider( + """ + ID of the oauthProvider + """ + id: ID! + + """ + New values for the oauthProvider + """ + input: UpdateOauthProviderInput! + ): OauthProviderUpdatePayload! """ - Identifies the total count of items in the connection. + Delete an existing oauthProvider """ - totalCount: Int! -} -""" -Return response for createPersonalAccessToken mutation -""" -type PersonalAccessTokenCreatePayload { + deleteOauthProvider( + """ + ID of the oauthProvider + """ + id: ID! + ): OauthProviderDeletePayload! """ - Created personalAccessToken + Create a new ohAuthTooToken """ - personalAccessToken: PersonalAccessToken! -} -""" -Return response for deletePersonalAccessToken mutation -""" -type PersonalAccessTokenDeletePayload { + createOhAuthTooToken( + """ + values of the ohAuthTooToken + """ + input: CreateOhAuthTooTokenInput! + ): OhAuthTooTokenCreatePayload! """ - Deleted personalAccessToken ID + Create multiple new ohAuthTooTokens """ - deletedID: ID! -} -""" -An edge in a connection. -""" -type PersonalAccessTokenEdge { + createBulkOhAuthTooToken( + """ + values of the ohAuthTooToken + """ + input: [CreateOhAuthTooTokenInput!] + ): OhAuthTooTokenBulkCreatePayload! """ - The item at the end of the edge. + Create multiple new ohAuthTooTokens via file upload """ - node: PersonalAccessToken + createBulkCSVOhAuthTooToken( + """ + csv file containing values of the ohAuthTooToken + """ + input: Upload! + ): OhAuthTooTokenBulkCreatePayload! """ - A cursor for use in pagination. + Update an existing ohAuthTooToken """ - cursor: Cursor! -} -type PersonalAccessTokenSearchResult { - personalAccessTokens: [PersonalAccessToken!] -} -""" -Return response for updatePersonalAccessToken mutation -""" -type PersonalAccessTokenUpdatePayload { + updateOhAuthTooToken( + """ + ID of the ohAuthTooToken + """ + id: ID! + + """ + New values for the ohAuthTooToken + """ + input: UpdateOhAuthTooTokenInput! + ): OhAuthTooTokenUpdatePayload! """ - Updated personalAccessToken + Delete an existing ohAuthTooToken """ - personalAccessToken: PersonalAccessToken! -} -""" -PersonalAccessTokenWhereInput is used for filtering PersonalAccessToken objects. -Input was generated by ent. -""" -input PersonalAccessTokenWhereInput { - not: PersonalAccessTokenWhereInput - and: [PersonalAccessTokenWhereInput!] - or: [PersonalAccessTokenWhereInput!] + deleteOhAuthTooToken( + """ + ID of the ohAuthTooToken + """ + id: ID! + ): OhAuthTooTokenDeletePayload! """ - id field predicates + Create a new organization """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + createOrganization( + """ + values of the organization + """ + input: CreateOrganizationInput! + ): OrganizationCreatePayload! """ - created_at field predicates + Create multiple new organizations """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + createBulkOrganization( + """ + values of the organization + """ + input: [CreateOrganizationInput!] + ): OrganizationBulkCreatePayload! """ - updated_at field predicates + Create multiple new organizations via file upload """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + createBulkCSVOrganization( + """ + csv file containing values of the organization + """ + input: Upload! + ): OrganizationBulkCreatePayload! """ - created_by field predicates + Update an existing organization """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + updateOrganization( + """ + ID of the organization + """ + id: ID! + + """ + New values for the organization + """ + input: UpdateOrganizationInput! + ): OrganizationUpdatePayload! """ - updated_by field predicates + Delete an existing organization """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + deleteOrganization( + """ + ID of the organization + """ + id: ID! + ): OrganizationDeletePayload! """ - deleted_at field predicates + Create a new organizationSetting """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + createOrganizationSetting( + """ + values of the organizationSetting + """ + input: CreateOrganizationSettingInput! + ): OrganizationSettingCreatePayload! """ - deleted_by field predicates + Create multiple new organizationSettings """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + createBulkOrganizationSetting( + """ + values of the organizationSetting + """ + input: [CreateOrganizationSettingInput!] + ): OrganizationSettingBulkCreatePayload! """ - name field predicates + Create multiple new organizationSettings via file upload """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + createBulkCSVOrganizationSetting( + """ + csv file containing values of the organizationSetting + """ + input: Upload! + ): OrganizationSettingBulkCreatePayload! """ - expires_at field predicates + Update an existing organizationSetting """ - expiresAt: Time - expiresAtNEQ: Time - expiresAtIn: [Time!] - expiresAtNotIn: [Time!] - expiresAtGT: Time - expiresAtGTE: Time - expiresAtLT: Time - expiresAtLTE: Time - expiresAtIsNil: Boolean - expiresAtNotNil: Boolean + updateOrganizationSetting( + """ + ID of the organizationSetting + """ + id: ID! + + """ + New values for the organizationSetting + """ + input: UpdateOrganizationSettingInput! + ): OrganizationSettingUpdatePayload! """ - last_used_at field predicates + Delete an existing organizationSetting """ - lastUsedAt: Time - lastUsedAtNEQ: Time - lastUsedAtIn: [Time!] - lastUsedAtNotIn: [Time!] - lastUsedAtGT: Time - lastUsedAtGTE: Time - lastUsedAtLT: Time - lastUsedAtLTE: Time - lastUsedAtIsNil: Boolean - lastUsedAtNotNil: Boolean + deleteOrganizationSetting( + """ + ID of the organizationSetting + """ + id: ID! + ): OrganizationSettingDeletePayload! """ - owner edge predicates + Create a new orgMembership """ - hasOwner: Boolean - hasOwnerWith: [UserWhereInput!] + createOrgMembership( + """ + values of the orgMembership + """ + input: CreateOrgMembershipInput! + ): OrgMembershipCreatePayload! """ - organizations edge predicates + Create multiple new orgMemberships """ - hasOrganizations: Boolean - hasOrganizationsWith: [OrganizationWhereInput!] + createBulkOrgMembership( + """ + values of the orgMembership + """ + input: [CreateOrgMembershipInput!] + ): OrgMembershipBulkCreatePayload! """ - events edge predicates + Create multiple new orgMemberships via file upload """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] -} -type Query { + createBulkCSVOrgMembership( + """ + csv file containing values of the orgMembership + """ + input: Upload! + ): OrgMembershipBulkCreatePayload! """ - Fetches an object given its ID. + Update an existing orgMembership """ - node( + updateOrgMembership( """ - ID of the object. + ID of the orgMembership """ id: ID! - ): Node + + """ + New values for the orgMembership + """ + input: UpdateOrgMembershipInput! + ): OrgMembershipUpdatePayload! """ - Lookup nodes by a list of IDs. + Delete an existing orgMembership """ - nodes( + deleteOrgMembership( """ - The list of node IDs. + ID of the orgMembership """ - ids: [ID!]! - ): [Node]! - apiTokens( + id: ID! + ): OrgMembershipDeletePayload! + """ + Create a new personalAccessToken + """ + createPersonalAccessToken( """ - Returns the elements in the list that come after the specified cursor. + values of the personalAccessToken """ - after: Cursor - + input: CreatePersonalAccessTokenInput! + ): PersonalAccessTokenCreatePayload! + """ + Create multiple new personalAccessTokens + """ + createBulkPersonalAccessToken( """ - Returns the first _n_ elements from the list. + values of the personalAccessToken """ - first: Int - + input: [CreatePersonalAccessTokenInput!] + ): PersonalAccessTokenBulkCreatePayload! + """ + Create multiple new personalAccessTokens via file upload + """ + createBulkCSVPersonalAccessToken( """ - Returns the elements in the list that come before the specified cursor. + csv file containing values of the personalAccessToken """ - before: Cursor - + input: Upload! + ): PersonalAccessTokenBulkCreatePayload! + """ + Update an existing personalAccessToken + """ + updatePersonalAccessToken( """ - Returns the last _n_ elements from the list. + ID of the personalAccessToken """ - last: Int + id: ID! """ - Filtering options for APITokens returned from the connection. - """ - where: APITokenWhereInput - ): APITokenConnection! - contacts( - """ - Returns the elements in the list that come after the specified cursor. + New values for the personalAccessToken """ - after: Cursor - + input: UpdatePersonalAccessTokenInput! + ): PersonalAccessTokenUpdatePayload! + """ + Delete an existing personalAccessToken + """ + deletePersonalAccessToken( """ - Returns the first _n_ elements from the list. + ID of the personalAccessToken """ - first: Int - + id: ID! + ): PersonalAccessTokenDeletePayload! + """ + Create a new procedure + """ + createProcedure( """ - Returns the elements in the list that come before the specified cursor. + values of the procedure """ - before: Cursor - + input: CreateProcedureInput! + ): ProcedureCreatePayload! + """ + Create multiple new procedures + """ + createBulkProcedure( """ - Returns the last _n_ elements from the list. + values of the procedure """ - last: Int - + input: [CreateProcedureInput!] + ): ProcedureBulkCreatePayload! + """ + Create multiple new procedures via file upload + """ + createBulkCSVProcedure( """ - Filtering options for Contacts returned from the connection. + csv file containing values of the procedure """ - where: ContactWhereInput - ): ContactConnection! - contactHistories( + input: Upload! + ): ProcedureBulkCreatePayload! + """ + Update an existing procedure + """ + updateProcedure( """ - Returns the elements in the list that come after the specified cursor. + ID of the procedure """ - after: Cursor + id: ID! """ - Returns the first _n_ elements from the list. + New values for the procedure """ - first: Int - + input: UpdateProcedureInput! + ): ProcedureUpdatePayload! + """ + Delete an existing procedure + """ + deleteProcedure( """ - Returns the elements in the list that come before the specified cursor. + ID of the procedure """ - before: Cursor - + id: ID! + ): ProcedureDeletePayload! + """ + Create a new risk + """ + createRisk( """ - Returns the last _n_ elements from the list. + values of the risk """ - last: Int - + input: CreateRiskInput! + ): RiskCreatePayload! + """ + Create multiple new risks + """ + createBulkRisk( """ - Filtering options for ContactHistories returned from the connection. + values of the risk """ - where: ContactHistoryWhereInput - ): ContactHistoryConnection! - documentDataSlice( + input: [CreateRiskInput!] + ): RiskBulkCreatePayload! + """ + Create multiple new risks via file upload + """ + createBulkCSVRisk( """ - Returns the elements in the list that come after the specified cursor. + csv file containing values of the risk """ - after: Cursor - + input: Upload! + ): RiskBulkCreatePayload! + """ + Update an existing risk + """ + updateRisk( """ - Returns the first _n_ elements from the list. + ID of the risk """ - first: Int + id: ID! """ - Returns the elements in the list that come before the specified cursor. + New values for the risk """ - before: Cursor - + input: UpdateRiskInput! + ): RiskUpdatePayload! + """ + Delete an existing risk + """ + deleteRisk( """ - Returns the last _n_ elements from the list. + ID of the risk """ - last: Int - + id: ID! + ): RiskDeletePayload! + """ + Create a new standard + """ + createStandard( """ - Filtering options for DocumentDataSlice returned from the connection. + values of the standard """ - where: DocumentDataWhereInput - ): DocumentDataConnection! - documentDataHistories( + input: CreateStandardInput! + ): StandardCreatePayload! + """ + Create multiple new standards + """ + createBulkStandard( """ - Returns the elements in the list that come after the specified cursor. + values of the standard """ - after: Cursor - + input: [CreateStandardInput!] + ): StandardBulkCreatePayload! + """ + Create multiple new standards via file upload + """ + createBulkCSVStandard( """ - Returns the first _n_ elements from the list. + csv file containing values of the standard """ - first: Int - + input: Upload! + ): StandardBulkCreatePayload! + """ + Update an existing standard + """ + updateStandard( """ - Returns the elements in the list that come before the specified cursor. + ID of the standard """ - before: Cursor + id: ID! """ - Returns the last _n_ elements from the list. + New values for the standard """ - last: Int - + input: UpdateStandardInput! + ): StandardUpdatePayload! + """ + Delete an existing standard + """ + deleteStandard( """ - Filtering options for DocumentDataHistories returned from the connection. + ID of the standard """ - where: DocumentDataHistoryWhereInput - ): DocumentDataHistoryConnection! - entitlements( + id: ID! + ): StandardDeletePayload! + """ + Create a new subcontrol + """ + createSubcontrol( """ - Returns the elements in the list that come after the specified cursor. + values of the subcontrol """ - after: Cursor - + input: CreateSubcontrolInput! + ): SubcontrolCreatePayload! + """ + Create multiple new subcontrols + """ + createBulkSubcontrol( """ - Returns the first _n_ elements from the list. + values of the subcontrol """ - first: Int - + input: [CreateSubcontrolInput!] + ): SubcontrolBulkCreatePayload! + """ + Create multiple new subcontrols via file upload + """ + createBulkCSVSubcontrol( """ - Returns the elements in the list that come before the specified cursor. + csv file containing values of the subcontrol """ - before: Cursor - + input: Upload! + ): SubcontrolBulkCreatePayload! + """ + Update an existing subcontrol + """ + updateSubcontrol( """ - Returns the last _n_ elements from the list. + ID of the subcontrol """ - last: Int + id: ID! """ - Filtering options for Entitlements returned from the connection. - """ - where: EntitlementWhereInput - ): EntitlementConnection! - entitlementHistories( - """ - Returns the elements in the list that come after the specified cursor. + New values for the subcontrol """ - after: Cursor - + input: UpdateSubcontrolInput! + ): SubcontrolUpdatePayload! + """ + Delete an existing subcontrol + """ + deleteSubcontrol( """ - Returns the first _n_ elements from the list. + ID of the subcontrol """ - first: Int - + id: ID! + ): SubcontrolDeletePayload! + """ + Create a new subscriber + """ + createSubscriber( """ - Returns the elements in the list that come before the specified cursor. + values of the subscriber """ - before: Cursor - + input: CreateSubscriberInput! + ): SubscriberCreatePayload! + """ + Create new subscribers + """ + createBulkSubscriber( """ - Returns the last _n_ elements from the list. + values of the subscriber """ - last: Int - + input: [CreateSubscriberInput!] + ): SubscriberBulkCreatePayload! + """ + Create new subscribers via CSV file + """ + createBulkCSVSubscriber( """ - Filtering options for EntitlementHistories returned from the connection. + values of the subscriber """ - where: EntitlementHistoryWhereInput - ): EntitlementHistoryConnection! - entitlementPlans( + input: Upload! + ): SubscriberBulkCreatePayload! + """ + Update an existing subscriber + """ + updateSubscriber( """ - Returns the elements in the list that come after the specified cursor. + Email of the subscriber """ - after: Cursor + email: String! """ - Returns the first _n_ elements from the list. + New values for the subscriber """ - first: Int - + input: UpdateSubscriberInput! + ): SubscriberUpdatePayload! + """ + Delete an existing subscriber by Email + """ + deleteSubscriber( """ - Returns the elements in the list that come before the specified cursor. + Email of the subscriber """ - before: Cursor + email: String! """ - Returns the last _n_ elements from the list. + OwnerID of the subscriber """ - last: Int - + ownerID: ID + ): SubscriberDeletePayload! + """ + Create a new template + """ + createTemplate( """ - Filtering options for EntitlementPlans returned from the connection. + values of the template """ - where: EntitlementPlanWhereInput - ): EntitlementPlanConnection! - entitlementPlanFeatures( + input: CreateTemplateInput! + ): TemplateCreatePayload! + """ + Create multiple new templates + """ + createBulkTemplate( """ - Returns the elements in the list that come after the specified cursor. + values of the template """ - after: Cursor - + input: [CreateTemplateInput!] + ): TemplateBulkCreatePayload! + """ + Create multiple new templates via file upload + """ + createBulkCSVTemplate( """ - Returns the first _n_ elements from the list. + csv file containing values of the template """ - first: Int - + input: Upload! + ): TemplateBulkCreatePayload! + """ + Update an existing template + """ + updateTemplate( """ - Returns the elements in the list that come before the specified cursor. + ID of the template """ - before: Cursor + id: ID! """ - Returns the last _n_ elements from the list. + New values for the template """ - last: Int - + input: UpdateTemplateInput! + ): TemplateUpdatePayload! + """ + Delete an existing template + """ + deleteTemplate( """ - Filtering options for EntitlementPlanFeatures returned from the connection. + ID of the template """ - where: EntitlementPlanFeatureWhereInput - ): EntitlementPlanFeatureConnection! - entitlementPlanFeatureHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for EntitlementPlanFeatureHistories returned from the connection. - """ - where: EntitlementPlanFeatureHistoryWhereInput - ): EntitlementPlanFeatureHistoryConnection! - entitlementPlanHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for EntitlementPlanHistories returned from the connection. - """ - where: EntitlementPlanHistoryWhereInput - ): EntitlementPlanHistoryConnection! - entities( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Entities returned from the connection. - """ - orderBy: EntityOrder - - """ - Filtering options for Entities returned from the connection. - """ - where: EntityWhereInput - ): EntityConnection! - entityHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - + id: ID! + ): TemplateDeletePayload! + """ + Create a new tfaSetting + """ + createTFASetting( """ - Returns the first _n_ elements from the list. + values of the tfaSetting """ - first: Int - + input: CreateTFASettingInput! + ): TFASettingCreatePayload! + """ + Update an existing tfaSetting + """ + updateTFASetting( """ - Returns the elements in the list that come before the specified cursor. + New values for the tfaSetting """ - before: Cursor - + input: UpdateTFASettingInput! + ): TFASettingUpdatePayload! + """ + Create a new user + """ + createUser( """ - Returns the last _n_ elements from the list. + values of the user """ - last: Int - + input: CreateUserInput! + avatarFile: Upload): UserCreatePayload! + """ + Update an existing user + """ + updateUser( """ - Ordering options for EntityHistories returned from the connection. + ID of the user """ - orderBy: EntityHistoryOrder + id: ID! """ - Filtering options for EntityHistories returned from the connection. + New values for the user """ - where: EntityHistoryWhereInput - ): EntityHistoryConnection! - entityTypes( + input: UpdateUserInput! + avatarFile: Upload): UserUpdatePayload! + """ + Delete an existing user + """ + deleteUser( """ - Returns the elements in the list that come after the specified cursor. + ID of the user """ - after: Cursor - + id: ID! + ): UserDeletePayload! + """ + Create a new userSetting + """ + createUserSetting( """ - Returns the first _n_ elements from the list. + values of the userSetting """ - first: Int - + input: CreateUserSettingInput! + ): UserSettingCreatePayload! + """ + Create multiple new userSettings + """ + createBulkUserSetting( """ - Returns the elements in the list that come before the specified cursor. + values of the userSetting """ - before: Cursor - + input: [CreateUserSettingInput!] + ): UserSettingBulkCreatePayload! + """ + Create multiple new userSettings via file upload + """ + createBulkCSVUserSetting( """ - Returns the last _n_ elements from the list. + csv file containing values of the userSetting """ - last: Int - + input: Upload! + ): UserSettingBulkCreatePayload! + """ + Update an existing userSetting + """ + updateUserSetting( """ - Ordering options for EntityTypes returned from the connection. + ID of the userSetting """ - orderBy: EntityTypeOrder + id: ID! """ - Filtering options for EntityTypes returned from the connection. - """ - where: EntityTypeWhereInput - ): EntityTypeConnection! - entityTypeHistories( - """ - Returns the elements in the list that come after the specified cursor. + New values for the userSetting """ - after: Cursor - + input: UpdateUserSettingInput! + ): UserSettingUpdatePayload! + """ + Create a new webhook + """ + createWebhook( """ - Returns the first _n_ elements from the list. + values of the webhook """ - first: Int - + input: CreateWebhookInput! + ): WebhookCreatePayload! + """ + Create multiple new webhooks + """ + createBulkWebhook( """ - Returns the elements in the list that come before the specified cursor. + values of the webhook """ - before: Cursor - + input: [CreateWebhookInput!] + ): WebhookBulkCreatePayload! + """ + Create multiple new webhooks via file upload + """ + createBulkCSVWebhook( """ - Returns the last _n_ elements from the list. + csv file containing values of the webhook """ - last: Int - + input: Upload! + ): WebhookBulkCreatePayload! + """ + Update an existing webhook + """ + updateWebhook( """ - Ordering options for EntityTypeHistories returned from the connection. + ID of the webhook """ - orderBy: EntityTypeHistoryOrder + id: ID! """ - Filtering options for EntityTypeHistories returned from the connection. - """ - where: EntityTypeHistoryWhereInput - ): EntityTypeHistoryConnection! - events( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - + New values for the webhook """ - Returns the first _n_ elements from the list. + input: UpdateWebhookInput! + ): WebhookUpdatePayload! + """ + Delete an existing webhook + """ + deleteWebhook( """ - first: Int - + ID of the webhook """ - Returns the elements in the list that come before the specified cursor. + id: ID! + ): WebhookDeletePayload! +} +type Narrative implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the narrative + """ + name: String! + """ + the description of the narrative + """ + description: String + """ + which controls are satisfied by the narrative + """ + satisfies: String + """ + json data for the narrative document + """ + details: Map + policy: [InternalPolicy!] + control: [Control!] + procedure: [Procedure!] + controlobjective: [ControlObjective!] +} +""" +Return response for createBulkNarrative mutation +""" +type NarrativeBulkCreatePayload { + """ + Created narratives + """ + narratives: [Narrative!] +} +""" +A connection to a list of items. +""" +type NarrativeConnection { + """ + A list of edges. + """ + edges: [NarrativeEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createNarrative mutation +""" +type NarrativeCreatePayload { + """ + Created narrative + """ + narrative: Narrative! +} +""" +Return response for deleteNarrative mutation +""" +type NarrativeDeletePayload { + """ + Deleted narrative ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type NarrativeEdge { + """ + The item at the end of the edge. + """ + node: Narrative + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type NarrativeHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: NarrativeHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the narrative + """ + name: String! + """ + the description of the narrative + """ + description: String + """ + which controls are satisfied by the narrative + """ + satisfies: String + """ + json data for the narrative document + """ + details: Map +} +""" +A connection to a list of items. +""" +type NarrativeHistoryConnection { + """ + A list of edges. + """ + edges: [NarrativeHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NarrativeHistoryEdge { + """ + The item at the end of the edge. + """ + node: NarrativeHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +NarrativeHistoryOpType is enum for the field operation +""" +enum NarrativeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +NarrativeHistoryWhereInput is used for filtering NarrativeHistory objects. +Input was generated by ent. +""" +input NarrativeHistoryWhereInput { + not: NarrativeHistoryWhereInput + and: [NarrativeHistoryWhereInput!] + or: [NarrativeHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: NarrativeHistoryOpType + operationNEQ: NarrativeHistoryOpType + operationIn: [NarrativeHistoryOpType!] + operationNotIn: [NarrativeHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +type NarrativeSearchResult { + narratives: [Narrative!] +} +""" +Return response for updateNarrative mutation +""" +type NarrativeUpdatePayload { + """ + Updated narrative + """ + narrative: Narrative! +} +""" +NarrativeWhereInput is used for filtering Narrative objects. +Input was generated by ent. +""" +input NarrativeWhereInput { + not: NarrativeWhereInput + and: [NarrativeWhereInput!] + or: [NarrativeWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + policy edge predicates + """ + hasPolicy: Boolean + hasPolicyWith: [InternalPolicyWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + procedure edge predicates + """ + hasProcedure: Boolean + hasProcedureWith: [ProcedureWhereInput!] + """ + controlobjective edge predicates + """ + hasControlobjective: Boolean + hasControlobjectiveWith: [ControlObjectiveWhereInput!] +} +""" +An object with an ID. +Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) +""" +interface Node @goModel(model: "github.com/theopenlane/core/internal/ent/generated.Noder") { + """ + The id of the object. + """ + id: ID! +} +type Note implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the text of the note + """ + text: String! + owner: Organization + entity: Entity + subcontrols: [Subcontrol!] +} +""" +A connection to a list of items. +""" +type NoteConnection { + """ + A list of edges. + """ + edges: [NoteEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NoteEdge { + """ + The item at the end of the edge. + """ + node: Note + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type NoteHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: NoteHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the text of the note + """ + text: String! +} +""" +A connection to a list of items. +""" +type NoteHistoryConnection { + """ + A list of edges. + """ + edges: [NoteHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NoteHistoryEdge { + """ + The item at the end of the edge. + """ + node: NoteHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +NoteHistoryOpType is enum for the field operation +""" +enum NoteHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +NoteHistoryWhereInput is used for filtering NoteHistory objects. +Input was generated by ent. +""" +input NoteHistoryWhereInput { + not: NoteHistoryWhereInput + and: [NoteHistoryWhereInput!] + or: [NoteHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: NoteHistoryOpType + operationNEQ: NoteHistoryOpType + operationIn: [NoteHistoryOpType!] + operationNotIn: [NoteHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + text field predicates + """ + text: String + textNEQ: String + textIn: [String!] + textNotIn: [String!] + textGT: String + textGTE: String + textLT: String + textLTE: String + textContains: String + textHasPrefix: String + textHasSuffix: String + textEqualFold: String + textContainsFold: String +} +""" +NoteWhereInput is used for filtering Note objects. +Input was generated by ent. +""" +input NoteWhereInput { + not: NoteWhereInput + and: [NoteWhereInput!] + or: [NoteWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + text field predicates + """ + text: String + textNEQ: String + textIn: [String!] + textNotIn: [String!] + textGT: String + textGTE: String + textLT: String + textLTE: String + textContains: String + textHasPrefix: String + textHasSuffix: String + textEqualFold: String + textContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + entity edge predicates + """ + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] +} +type OauthProvider implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the oauth provider's name + """ + name: String! + """ + the client id for the oauth provider + """ + clientID: String! + """ + the client secret + """ + clientSecret: String! + """ + the redirect url + """ + redirectURL: String! + """ + the scopes + """ + scopes: String! + """ + the auth url of the provider + """ + authURL: String! + """ + the token url of the provider + """ + tokenURL: String! + """ + the auth style, 0: auto detect 1: third party log in 2: log in with username and password + """ + authStyle: Uint! + """ + the URL to request user information by token + """ + infoURL: String! + owner: Organization +} +""" +Return response for createBulkOauthProvider mutation +""" +type OauthProviderBulkCreatePayload { + """ + Created oauthProviders + """ + oauthProviders: [OauthProvider!] +} +""" +A connection to a list of items. +""" +type OauthProviderConnection { + """ + A list of edges. + """ + edges: [OauthProviderEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createOauthProvider mutation +""" +type OauthProviderCreatePayload { + """ + Created oauthProvider + """ + oauthProvider: OauthProvider! +} +""" +Return response for deleteOauthProvider mutation +""" +type OauthProviderDeletePayload { + """ + Deleted oauthProvider ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type OauthProviderEdge { + """ + The item at the end of the edge. + """ + node: OauthProvider + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OauthProviderHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OauthProviderHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the oauth provider's name + """ + name: String! + """ + the client id for the oauth provider + """ + clientID: String! + """ + the client secret + """ + clientSecret: String! + """ + the redirect url + """ + redirectURL: String! + """ + the scopes + """ + scopes: String! + """ + the auth url of the provider + """ + authURL: String! + """ + the token url of the provider + """ + tokenURL: String! + """ + the auth style, 0: auto detect 1: third party log in 2: log in with username and password + """ + authStyle: Uint! + """ + the URL to request user information by token + """ + infoURL: String! +} +""" +A connection to a list of items. +""" +type OauthProviderHistoryConnection { + """ + A list of edges. + """ + edges: [OauthProviderHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OauthProviderHistoryEdge { + """ + The item at the end of the edge. + """ + node: OauthProviderHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OauthProviderHistoryOpType is enum for the field operation +""" +enum OauthProviderHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OauthProviderHistoryWhereInput is used for filtering OauthProviderHistory objects. +Input was generated by ent. +""" +input OauthProviderHistoryWhereInput { + not: OauthProviderHistoryWhereInput + and: [OauthProviderHistoryWhereInput!] + or: [OauthProviderHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OauthProviderHistoryOpType + operationNEQ: OauthProviderHistoryOpType + operationIn: [OauthProviderHistoryOpType!] + operationNotIn: [OauthProviderHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + client_id field predicates + """ + clientID: String + clientIDNEQ: String + clientIDIn: [String!] + clientIDNotIn: [String!] + clientIDGT: String + clientIDGTE: String + clientIDLT: String + clientIDLTE: String + clientIDContains: String + clientIDHasPrefix: String + clientIDHasSuffix: String + clientIDEqualFold: String + clientIDContainsFold: String + """ + client_secret field predicates + """ + clientSecret: String + clientSecretNEQ: String + clientSecretIn: [String!] + clientSecretNotIn: [String!] + clientSecretGT: String + clientSecretGTE: String + clientSecretLT: String + clientSecretLTE: String + clientSecretContains: String + clientSecretHasPrefix: String + clientSecretHasSuffix: String + clientSecretEqualFold: String + clientSecretContainsFold: String + """ + redirect_url field predicates + """ + redirectURL: String + redirectURLNEQ: String + redirectURLIn: [String!] + redirectURLNotIn: [String!] + redirectURLGT: String + redirectURLGTE: String + redirectURLLT: String + redirectURLLTE: String + redirectURLContains: String + redirectURLHasPrefix: String + redirectURLHasSuffix: String + redirectURLEqualFold: String + redirectURLContainsFold: String + """ + scopes field predicates + """ + scopes: String + scopesNEQ: String + scopesIn: [String!] + scopesNotIn: [String!] + scopesGT: String + scopesGTE: String + scopesLT: String + scopesLTE: String + scopesContains: String + scopesHasPrefix: String + scopesHasSuffix: String + scopesEqualFold: String + scopesContainsFold: String + """ + auth_url field predicates + """ + authURL: String + authURLNEQ: String + authURLIn: [String!] + authURLNotIn: [String!] + authURLGT: String + authURLGTE: String + authURLLT: String + authURLLTE: String + authURLContains: String + authURLHasPrefix: String + authURLHasSuffix: String + authURLEqualFold: String + authURLContainsFold: String + """ + token_url field predicates + """ + tokenURL: String + tokenURLNEQ: String + tokenURLIn: [String!] + tokenURLNotIn: [String!] + tokenURLGT: String + tokenURLGTE: String + tokenURLLT: String + tokenURLLTE: String + tokenURLContains: String + tokenURLHasPrefix: String + tokenURLHasSuffix: String + tokenURLEqualFold: String + tokenURLContainsFold: String + """ + auth_style field predicates + """ + authStyle: Uint + authStyleNEQ: Uint + authStyleIn: [Uint!] + authStyleNotIn: [Uint!] + authStyleGT: Uint + authStyleGTE: Uint + authStyleLT: Uint + authStyleLTE: Uint + """ + info_url field predicates + """ + infoURL: String + infoURLNEQ: String + infoURLIn: [String!] + infoURLNotIn: [String!] + infoURLGT: String + infoURLGTE: String + infoURLLT: String + infoURLLTE: String + infoURLContains: String + infoURLHasPrefix: String + infoURLHasSuffix: String + infoURLEqualFold: String + infoURLContainsFold: String +} +type OauthProviderSearchResult { + oauthProviders: [OauthProvider!] +} +""" +Return response for updateOauthProvider mutation +""" +type OauthProviderUpdatePayload { + """ + Updated oauthProvider + """ + oauthProvider: OauthProvider! +} +""" +OauthProviderWhereInput is used for filtering OauthProvider objects. +Input was generated by ent. +""" +input OauthProviderWhereInput { + not: OauthProviderWhereInput + and: [OauthProviderWhereInput!] + or: [OauthProviderWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + client_id field predicates + """ + clientID: String + clientIDNEQ: String + clientIDIn: [String!] + clientIDNotIn: [String!] + clientIDGT: String + clientIDGTE: String + clientIDLT: String + clientIDLTE: String + clientIDContains: String + clientIDHasPrefix: String + clientIDHasSuffix: String + clientIDEqualFold: String + clientIDContainsFold: String + """ + client_secret field predicates + """ + clientSecret: String + clientSecretNEQ: String + clientSecretIn: [String!] + clientSecretNotIn: [String!] + clientSecretGT: String + clientSecretGTE: String + clientSecretLT: String + clientSecretLTE: String + clientSecretContains: String + clientSecretHasPrefix: String + clientSecretHasSuffix: String + clientSecretEqualFold: String + clientSecretContainsFold: String + """ + redirect_url field predicates + """ + redirectURL: String + redirectURLNEQ: String + redirectURLIn: [String!] + redirectURLNotIn: [String!] + redirectURLGT: String + redirectURLGTE: String + redirectURLLT: String + redirectURLLTE: String + redirectURLContains: String + redirectURLHasPrefix: String + redirectURLHasSuffix: String + redirectURLEqualFold: String + redirectURLContainsFold: String + """ + scopes field predicates + """ + scopes: String + scopesNEQ: String + scopesIn: [String!] + scopesNotIn: [String!] + scopesGT: String + scopesGTE: String + scopesLT: String + scopesLTE: String + scopesContains: String + scopesHasPrefix: String + scopesHasSuffix: String + scopesEqualFold: String + scopesContainsFold: String + """ + auth_url field predicates + """ + authURL: String + authURLNEQ: String + authURLIn: [String!] + authURLNotIn: [String!] + authURLGT: String + authURLGTE: String + authURLLT: String + authURLLTE: String + authURLContains: String + authURLHasPrefix: String + authURLHasSuffix: String + authURLEqualFold: String + authURLContainsFold: String + """ + token_url field predicates + """ + tokenURL: String + tokenURLNEQ: String + tokenURLIn: [String!] + tokenURLNotIn: [String!] + tokenURLGT: String + tokenURLGTE: String + tokenURLLT: String + tokenURLLTE: String + tokenURLContains: String + tokenURLHasPrefix: String + tokenURLHasSuffix: String + tokenURLEqualFold: String + tokenURLContainsFold: String + """ + auth_style field predicates + """ + authStyle: Uint + authStyleNEQ: Uint + authStyleIn: [Uint!] + authStyleNotIn: [Uint!] + authStyleGT: Uint + authStyleGTE: Uint + authStyleLT: Uint + authStyleLTE: Uint + """ + info_url field predicates + """ + infoURL: String + infoURLNEQ: String + infoURLIn: [String!] + infoURLNotIn: [String!] + infoURLGT: String + infoURLGTE: String + infoURLLT: String + infoURLLTE: String + infoURLContains: String + infoURLHasPrefix: String + infoURLHasSuffix: String + infoURLEqualFold: String + infoURLContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] +} +type OhAuthTooToken implements Node { + id: ID! + """ + tags associated with the object + """ + tags: [String!] + clientID: String! + scopes: [String!] + nonce: String! + claimsUserID: String! + claimsUsername: String! + claimsEmail: String! + claimsEmailVerified: Boolean! + claimsGroups: [String!] + claimsPreferredUsername: String! + connectorID: String! + connectorData: [String!] + lastUsed: Time! + integration: [Integration!] + events: [Event!] +} +""" +Return response for createBulkOhAuthTooToken mutation +""" +type OhAuthTooTokenBulkCreatePayload { + """ + Created ohAuthTooTokens + """ + ohAuthTooTokens: [OhAuthTooToken!] +} +""" +A connection to a list of items. +""" +type OhAuthTooTokenConnection { + """ + A list of edges. + """ + edges: [OhAuthTooTokenEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createOhAuthTooToken mutation +""" +type OhAuthTooTokenCreatePayload { + """ + Created ohAuthTooToken + """ + ohAuthTooToken: OhAuthTooToken! +} +""" +Return response for deleteOhAuthTooToken mutation +""" +type OhAuthTooTokenDeletePayload { + """ + Deleted ohAuthTooToken ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type OhAuthTooTokenEdge { + """ + The item at the end of the edge. + """ + node: OhAuthTooToken + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OhAuthTooTokenSearchResult { + ohAuthTooTokens: [OhAuthTooToken!] +} +""" +Return response for updateOhAuthTooToken mutation +""" +type OhAuthTooTokenUpdatePayload { + """ + Updated ohAuthTooToken + """ + ohAuthTooToken: OhAuthTooToken! +} +""" +OhAuthTooTokenWhereInput is used for filtering OhAuthTooToken objects. +Input was generated by ent. +""" +input OhAuthTooTokenWhereInput { + not: OhAuthTooTokenWhereInput + and: [OhAuthTooTokenWhereInput!] + or: [OhAuthTooTokenWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + client_id field predicates + """ + clientID: String + clientIDNEQ: String + clientIDIn: [String!] + clientIDNotIn: [String!] + clientIDGT: String + clientIDGTE: String + clientIDLT: String + clientIDLTE: String + clientIDContains: String + clientIDHasPrefix: String + clientIDHasSuffix: String + clientIDEqualFold: String + clientIDContainsFold: String + """ + nonce field predicates + """ + nonce: String + nonceNEQ: String + nonceIn: [String!] + nonceNotIn: [String!] + nonceGT: String + nonceGTE: String + nonceLT: String + nonceLTE: String + nonceContains: String + nonceHasPrefix: String + nonceHasSuffix: String + nonceEqualFold: String + nonceContainsFold: String + """ + claims_user_id field predicates + """ + claimsUserID: String + claimsUserIDNEQ: String + claimsUserIDIn: [String!] + claimsUserIDNotIn: [String!] + claimsUserIDGT: String + claimsUserIDGTE: String + claimsUserIDLT: String + claimsUserIDLTE: String + claimsUserIDContains: String + claimsUserIDHasPrefix: String + claimsUserIDHasSuffix: String + claimsUserIDEqualFold: String + claimsUserIDContainsFold: String + """ + claims_username field predicates + """ + claimsUsername: String + claimsUsernameNEQ: String + claimsUsernameIn: [String!] + claimsUsernameNotIn: [String!] + claimsUsernameGT: String + claimsUsernameGTE: String + claimsUsernameLT: String + claimsUsernameLTE: String + claimsUsernameContains: String + claimsUsernameHasPrefix: String + claimsUsernameHasSuffix: String + claimsUsernameEqualFold: String + claimsUsernameContainsFold: String + """ + claims_email field predicates + """ + claimsEmail: String + claimsEmailNEQ: String + claimsEmailIn: [String!] + claimsEmailNotIn: [String!] + claimsEmailGT: String + claimsEmailGTE: String + claimsEmailLT: String + claimsEmailLTE: String + claimsEmailContains: String + claimsEmailHasPrefix: String + claimsEmailHasSuffix: String + claimsEmailEqualFold: String + claimsEmailContainsFold: String + """ + claims_email_verified field predicates + """ + claimsEmailVerified: Boolean + claimsEmailVerifiedNEQ: Boolean + """ + claims_preferred_username field predicates + """ + claimsPreferredUsername: String + claimsPreferredUsernameNEQ: String + claimsPreferredUsernameIn: [String!] + claimsPreferredUsernameNotIn: [String!] + claimsPreferredUsernameGT: String + claimsPreferredUsernameGTE: String + claimsPreferredUsernameLT: String + claimsPreferredUsernameLTE: String + claimsPreferredUsernameContains: String + claimsPreferredUsernameHasPrefix: String + claimsPreferredUsernameHasSuffix: String + claimsPreferredUsernameEqualFold: String + claimsPreferredUsernameContainsFold: String + """ + connector_id field predicates + """ + connectorID: String + connectorIDNEQ: String + connectorIDIn: [String!] + connectorIDNotIn: [String!] + connectorIDGT: String + connectorIDGTE: String + connectorIDLT: String + connectorIDLTE: String + connectorIDContains: String + connectorIDHasPrefix: String + connectorIDHasSuffix: String + connectorIDEqualFold: String + connectorIDContainsFold: String + """ + last_used field predicates + """ + lastUsed: Time + lastUsedNEQ: Time + lastUsedIn: [Time!] + lastUsedNotIn: [Time!] + lastUsedGT: Time + lastUsedGTE: Time + lastUsedLT: Time + lastUsedLTE: Time + """ + integration edge predicates + """ + hasIntegration: Boolean + hasIntegrationWith: [IntegrationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +""" +Possible directions in which to order a list of items when provided an `orderBy` argument. +""" +enum OrderDirection { + """ + Specifies an ascending order for a given `orderBy` argument. + """ + ASC + """ + Specifies a descending order for a given `orderBy` argument. + """ + DESC +} +type OrgMembership implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: OrgMembershipRole! + organizationID: ID! + userID: ID! + organization: Organization! + user: User! + events: [Event!] +} +""" +Return response for createBulkOrgMembership mutation +""" +type OrgMembershipBulkCreatePayload { + """ + Created orgMemberships + """ + orgMemberships: [OrgMembership!] +} +""" +A connection to a list of items. +""" +type OrgMembershipConnection { + """ + A list of edges. + """ + edges: [OrgMembershipEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createOrgMembership mutation +""" +type OrgMembershipCreatePayload { + """ + Created orgMembership + """ + orgMembership: OrgMembership! +} +""" +Return response for deleteOrgMembership mutation +""" +type OrgMembershipDeletePayload { + """ + Deleted orgMembership ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type OrgMembershipEdge { + """ + The item at the end of the edge. + """ + node: OrgMembership + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrgMembershipHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrgMembershipHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: OrgMembershipHistoryRole! + organizationID: String! + userID: String! +} +""" +A connection to a list of items. +""" +type OrgMembershipHistoryConnection { + """ + A list of edges. + """ + edges: [OrgMembershipHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrgMembershipHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrgMembershipHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrgMembershipHistoryOpType is enum for the field operation +""" +enum OrgMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OrgMembershipHistoryRole is enum for the field role +""" +enum OrgMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER + OWNER +} +""" +OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. +Input was generated by ent. +""" +input OrgMembershipHistoryWhereInput { + not: OrgMembershipHistoryWhereInput + and: [OrgMembershipHistoryWhereInput!] + or: [OrgMembershipHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrgMembershipHistoryOpType + operationNEQ: OrgMembershipHistoryOpType + operationIn: [OrgMembershipHistoryOpType!] + operationNotIn: [OrgMembershipHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: OrgMembershipHistoryRole + roleNEQ: OrgMembershipHistoryRole + roleIn: [OrgMembershipHistoryRole!] + roleNotIn: [OrgMembershipHistoryRole!] + """ + organization_id field predicates + """ + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDEqualFold: String + organizationIDContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDEqualFold: String + userIDContainsFold: String +} +""" +OrgMembershipRole is enum for the field role +""" +enum OrgMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER + OWNER +} +""" +Return response for updateOrgMembership mutation +""" +type OrgMembershipUpdatePayload { + """ + Updated orgMembership + """ + orgMembership: OrgMembership! +} +""" +OrgMembershipWhereInput is used for filtering OrgMembership objects. +Input was generated by ent. +""" +input OrgMembershipWhereInput { + not: OrgMembershipWhereInput + and: [OrgMembershipWhereInput!] + or: [OrgMembershipWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: OrgMembershipRole + roleNEQ: OrgMembershipRole + roleIn: [OrgMembershipRole!] + roleNotIn: [OrgMembershipRole!] + organizationID: String + userID: String +} +type Organization implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the name of the organization + """ + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String! + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean! + parent: Organization + children( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Organizations returned from the connection. + """ + orderBy: OrganizationOrder + + """ + Filtering options for Organizations returned from the connection. + """ + where: OrganizationWhereInput + ): OrganizationConnection! + groups: [Group!] + templates: [Template!] + integrations: [Integration!] + setting: OrganizationSetting + documentdata: [DocumentData!] + entitlements: [Entitlement!] + organizationEntitlement: [Entitlement!] + personalAccessTokens: [PersonalAccessToken!] + apiTokens: [APIToken!] + oauthprovider: [OauthProvider!] + users: [User!] + invites: [Invite!] + subscribers: [Subscriber!] + webhooks: [Webhook!] + events: [Event!] + secrets: [Hush!] + features: [Feature!] + files: [File!] + entitlementplans: [EntitlementPlan!] + entitlementplanfeatures: [EntitlementPlanFeature!] + entities: [Entity!] + entitytypes: [EntityType!] + contacts: [Contact!] + notes: [Note!] + members: [OrgMembership!] +} +""" +Return response for createBulkOrganization mutation +""" +type OrganizationBulkCreatePayload { + """ + Created organizations + """ + organizations: [Organization!] +} +""" +A connection to a list of items. +""" +type OrganizationConnection { + """ + A list of edges. + """ + edges: [OrganizationEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createOrganization mutation +""" +type OrganizationCreatePayload { + """ + Created organization + """ + organization: Organization! +} +""" +Return response for deleteOrganization mutation +""" +type OrganizationDeletePayload { + """ + Deleted organization ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type OrganizationEdge { + """ + The item at the end of the edge. + """ + node: Organization + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrganizationHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrganizationHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the name of the organization + """ + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String! + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean! +} +""" +A connection to a list of items. +""" +type OrganizationHistoryConnection { + """ + A list of edges. + """ + edges: [OrganizationHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrganizationHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrganizationHistoryOpType is enum for the field operation +""" +enum OrganizationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for OrganizationHistory connections +""" +input OrganizationHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order OrganizationHistories. + """ + field: OrganizationHistoryOrderField! +} +""" +Properties by which OrganizationHistory connections can be ordered. +""" +enum OrganizationHistoryOrderField { + name + display_name +} +""" +OrganizationHistoryWhereInput is used for filtering OrganizationHistory objects. +Input was generated by ent. +""" +input OrganizationHistoryWhereInput { + not: OrganizationHistoryWhereInput + and: [OrganizationHistoryWhereInput!] + or: [OrganizationHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrganizationHistoryOpType + operationNEQ: OrganizationHistoryOpType + operationIn: [OrganizationHistoryOpType!] + operationNotIn: [OrganizationHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + parent_organization_id field predicates + """ + parentOrganizationID: ID + parentOrganizationIDNEQ: ID + parentOrganizationIDIn: [ID!] + parentOrganizationIDNotIn: [ID!] + parentOrganizationIDGT: ID + parentOrganizationIDGTE: ID + parentOrganizationIDLT: ID + parentOrganizationIDLTE: ID + parentOrganizationIDContains: ID + parentOrganizationIDHasPrefix: ID + parentOrganizationIDHasSuffix: ID + parentOrganizationIDIsNil: Boolean + parentOrganizationIDNotNil: Boolean + parentOrganizationIDEqualFold: ID + parentOrganizationIDContainsFold: ID + """ + personal_org field predicates + """ + personalOrg: Boolean + personalOrgNEQ: Boolean + personalOrgIsNil: Boolean + personalOrgNotNil: Boolean + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String +} +""" +Ordering options for Organization connections +""" +input OrganizationOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Organizations. + """ + field: OrganizationOrderField! +} +""" +Properties by which Organization connections can be ordered. +""" +enum OrganizationOrderField { + name + display_name +} +type OrganizationSearchResult { + organizations: [Organization!] +} +type OrganizationSetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + domains associated with the organization + """ + domains: [String!] + """ + Name of the person to contact for billing + """ + billingContact: String + """ + Email address of the person to contact for billing + """ + billingEmail: String + """ + Phone number to contact for billing + """ + billingPhone: String + """ + Address to send billing information to + """ + billingAddress: String + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingRegion + """ + the ID of the organization the settings belong to + """ + organizationID: ID + organization: Organization + files: [File!] +} +""" +Return response for createBulkOrganizationSetting mutation +""" +type OrganizationSettingBulkCreatePayload { + """ + Created organizationSettings + """ + organizationSettings: [OrganizationSetting!] +} +""" +A connection to a list of items. +""" +type OrganizationSettingConnection { + """ + A list of edges. + """ + edges: [OrganizationSettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createOrganizationSetting mutation +""" +type OrganizationSettingCreatePayload { + """ + Created organizationSetting + """ + organizationSetting: OrganizationSetting! +} +""" +Return response for deleteOrganizationSetting mutation +""" +type OrganizationSettingDeletePayload { + """ + Deleted organizationSetting ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type OrganizationSettingEdge { + """ + The item at the end of the edge. + """ + node: OrganizationSetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrganizationSettingHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrganizationSettingHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + domains associated with the organization + """ + domains: [String!] + """ + Name of the person to contact for billing + """ + billingContact: String + """ + Email address of the person to contact for billing + """ + billingEmail: String + """ + Phone number to contact for billing + """ + billingPhone: String + """ + Address to send billing information to + """ + billingAddress: String + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingHistoryRegion + """ + the ID of the organization the settings belong to + """ + organizationID: String +} +""" +A connection to a list of items. +""" +type OrganizationSettingHistoryConnection { + """ + A list of edges. + """ + edges: [OrganizationSettingHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationSettingHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrganizationSettingHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrganizationSettingHistoryOpType is enum for the field operation +""" +enum OrganizationSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OrganizationSettingHistoryRegion is enum for the field geo_location +""" +enum OrganizationSettingHistoryRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { + AMER + EMEA + APAC +} +""" +OrganizationSettingHistoryWhereInput is used for filtering OrganizationSettingHistory objects. +Input was generated by ent. +""" +input OrganizationSettingHistoryWhereInput { + not: OrganizationSettingHistoryWhereInput + and: [OrganizationSettingHistoryWhereInput!] + or: [OrganizationSettingHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrganizationSettingHistoryOpType + operationNEQ: OrganizationSettingHistoryOpType + operationIn: [OrganizationSettingHistoryOpType!] + operationNotIn: [OrganizationSettingHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + billing_contact field predicates + """ + billingContact: String + billingContactNEQ: String + billingContactIn: [String!] + billingContactNotIn: [String!] + billingContactGT: String + billingContactGTE: String + billingContactLT: String + billingContactLTE: String + billingContactContains: String + billingContactHasPrefix: String + billingContactHasSuffix: String + billingContactIsNil: Boolean + billingContactNotNil: Boolean + billingContactEqualFold: String + billingContactContainsFold: String + """ + billing_email field predicates + """ + billingEmail: String + billingEmailNEQ: String + billingEmailIn: [String!] + billingEmailNotIn: [String!] + billingEmailGT: String + billingEmailGTE: String + billingEmailLT: String + billingEmailLTE: String + billingEmailContains: String + billingEmailHasPrefix: String + billingEmailHasSuffix: String + billingEmailIsNil: Boolean + billingEmailNotNil: Boolean + billingEmailEqualFold: String + billingEmailContainsFold: String + """ + billing_phone field predicates + """ + billingPhone: String + billingPhoneNEQ: String + billingPhoneIn: [String!] + billingPhoneNotIn: [String!] + billingPhoneGT: String + billingPhoneGTE: String + billingPhoneLT: String + billingPhoneLTE: String + billingPhoneContains: String + billingPhoneHasPrefix: String + billingPhoneHasSuffix: String + billingPhoneIsNil: Boolean + billingPhoneNotNil: Boolean + billingPhoneEqualFold: String + billingPhoneContainsFold: String + """ + billing_address field predicates + """ + billingAddress: String + billingAddressNEQ: String + billingAddressIn: [String!] + billingAddressNotIn: [String!] + billingAddressGT: String + billingAddressGTE: String + billingAddressLT: String + billingAddressLTE: String + billingAddressContains: String + billingAddressHasPrefix: String + billingAddressHasSuffix: String + billingAddressIsNil: Boolean + billingAddressNotNil: Boolean + billingAddressEqualFold: String + billingAddressContainsFold: String + """ + tax_identifier field predicates + """ + taxIdentifier: String + taxIdentifierNEQ: String + taxIdentifierIn: [String!] + taxIdentifierNotIn: [String!] + taxIdentifierGT: String + taxIdentifierGTE: String + taxIdentifierLT: String + taxIdentifierLTE: String + taxIdentifierContains: String + taxIdentifierHasPrefix: String + taxIdentifierHasSuffix: String + taxIdentifierIsNil: Boolean + taxIdentifierNotNil: Boolean + taxIdentifierEqualFold: String + taxIdentifierContainsFold: String + """ + geo_location field predicates + """ + geoLocation: OrganizationSettingHistoryRegion + geoLocationNEQ: OrganizationSettingHistoryRegion + geoLocationIn: [OrganizationSettingHistoryRegion!] + geoLocationNotIn: [OrganizationSettingHistoryRegion!] + geoLocationIsNil: Boolean + geoLocationNotNil: Boolean + """ + organization_id field predicates + """ + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDIsNil: Boolean + organizationIDNotNil: Boolean + organizationIDEqualFold: String + organizationIDContainsFold: String +} +""" +OrganizationSettingRegion is enum for the field geo_location +""" +enum OrganizationSettingRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { + AMER + EMEA + APAC +} +type OrganizationSettingSearchResult { + organizationSettings: [OrganizationSetting!] +} +""" +Return response for updateOrganizationSetting mutation +""" +type OrganizationSettingUpdatePayload { + """ + Updated organizationSetting + """ + organizationSetting: OrganizationSetting! +} +""" +OrganizationSettingWhereInput is used for filtering OrganizationSetting objects. +Input was generated by ent. +""" +input OrganizationSettingWhereInput { + not: OrganizationSettingWhereInput + and: [OrganizationSettingWhereInput!] + or: [OrganizationSettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + billing_contact field predicates + """ + billingContact: String + billingContactNEQ: String + billingContactIn: [String!] + billingContactNotIn: [String!] + billingContactGT: String + billingContactGTE: String + billingContactLT: String + billingContactLTE: String + billingContactContains: String + billingContactHasPrefix: String + billingContactHasSuffix: String + billingContactIsNil: Boolean + billingContactNotNil: Boolean + billingContactEqualFold: String + billingContactContainsFold: String + """ + billing_email field predicates + """ + billingEmail: String + billingEmailNEQ: String + billingEmailIn: [String!] + billingEmailNotIn: [String!] + billingEmailGT: String + billingEmailGTE: String + billingEmailLT: String + billingEmailLTE: String + billingEmailContains: String + billingEmailHasPrefix: String + billingEmailHasSuffix: String + billingEmailIsNil: Boolean + billingEmailNotNil: Boolean + billingEmailEqualFold: String + billingEmailContainsFold: String + """ + billing_phone field predicates + """ + billingPhone: String + billingPhoneNEQ: String + billingPhoneIn: [String!] + billingPhoneNotIn: [String!] + billingPhoneGT: String + billingPhoneGTE: String + billingPhoneLT: String + billingPhoneLTE: String + billingPhoneContains: String + billingPhoneHasPrefix: String + billingPhoneHasSuffix: String + billingPhoneIsNil: Boolean + billingPhoneNotNil: Boolean + billingPhoneEqualFold: String + billingPhoneContainsFold: String + """ + billing_address field predicates + """ + billingAddress: String + billingAddressNEQ: String + billingAddressIn: [String!] + billingAddressNotIn: [String!] + billingAddressGT: String + billingAddressGTE: String + billingAddressLT: String + billingAddressLTE: String + billingAddressContains: String + billingAddressHasPrefix: String + billingAddressHasSuffix: String + billingAddressIsNil: Boolean + billingAddressNotNil: Boolean + billingAddressEqualFold: String + billingAddressContainsFold: String + """ + tax_identifier field predicates + """ + taxIdentifier: String + taxIdentifierNEQ: String + taxIdentifierIn: [String!] + taxIdentifierNotIn: [String!] + taxIdentifierGT: String + taxIdentifierGTE: String + taxIdentifierLT: String + taxIdentifierLTE: String + taxIdentifierContains: String + taxIdentifierHasPrefix: String + taxIdentifierHasSuffix: String + taxIdentifierIsNil: Boolean + taxIdentifierNotNil: Boolean + taxIdentifierEqualFold: String + taxIdentifierContainsFold: String + """ + geo_location field predicates + """ + geoLocation: OrganizationSettingRegion + geoLocationNEQ: OrganizationSettingRegion + geoLocationIn: [OrganizationSettingRegion!] + geoLocationNotIn: [OrganizationSettingRegion!] + geoLocationIsNil: Boolean + geoLocationNotNil: Boolean + """ + organization_id field predicates + """ + organizationID: ID + organizationIDNEQ: ID + organizationIDIn: [ID!] + organizationIDNotIn: [ID!] + organizationIDGT: ID + organizationIDGTE: ID + organizationIDLT: ID + organizationIDLTE: ID + organizationIDContains: ID + organizationIDHasPrefix: ID + organizationIDHasSuffix: ID + organizationIDIsNil: Boolean + organizationIDNotNil: Boolean + organizationIDEqualFold: ID + organizationIDContainsFold: ID + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +""" +Return response for updateOrganization mutation +""" +type OrganizationUpdatePayload { + """ + Updated organization + """ + organization: Organization! +} +""" +OrganizationWhereInput is used for filtering Organization objects. +Input was generated by ent. +""" +input OrganizationWhereInput { + not: OrganizationWhereInput + and: [OrganizationWhereInput!] + or: [OrganizationWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + parent_organization_id field predicates + """ + parentOrganizationID: ID + parentOrganizationIDNEQ: ID + parentOrganizationIDIn: [ID!] + parentOrganizationIDNotIn: [ID!] + parentOrganizationIDGT: ID + parentOrganizationIDGTE: ID + parentOrganizationIDLT: ID + parentOrganizationIDLTE: ID + parentOrganizationIDContains: ID + parentOrganizationIDHasPrefix: ID + parentOrganizationIDHasSuffix: ID + parentOrganizationIDIsNil: Boolean + parentOrganizationIDNotNil: Boolean + parentOrganizationIDEqualFold: ID + parentOrganizationIDContainsFold: ID + """ + personal_org field predicates + """ + personalOrg: Boolean + personalOrgNEQ: Boolean + personalOrgIsNil: Boolean + personalOrgNotNil: Boolean + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String + """ + parent edge predicates + """ + hasParent: Boolean + hasParentWith: [OrganizationWhereInput!] + """ + children edge predicates + """ + hasChildren: Boolean + hasChildrenWith: [OrganizationWhereInput!] + """ + groups edge predicates + """ + hasGroups: Boolean + hasGroupsWith: [GroupWhereInput!] + """ + templates edge predicates + """ + hasTemplates: Boolean + hasTemplatesWith: [TemplateWhereInput!] + """ + integrations edge predicates + """ + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] + """ + setting edge predicates + """ + hasSetting: Boolean + hasSettingWith: [OrganizationSettingWhereInput!] + """ + documentdata edge predicates + """ + hasDocumentdata: Boolean + hasDocumentdataWith: [DocumentDataWhereInput!] + """ + entitlements edge predicates + """ + hasEntitlements: Boolean + hasEntitlementsWith: [EntitlementWhereInput!] + """ + organization_entitlement edge predicates + """ + hasOrganizationEntitlement: Boolean + hasOrganizationEntitlementWith: [EntitlementWhereInput!] + """ + personal_access_tokens edge predicates + """ + hasPersonalAccessTokens: Boolean + hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] + """ + api_tokens edge predicates + """ + hasAPITokens: Boolean + hasAPITokensWith: [APITokenWhereInput!] + """ + oauthprovider edge predicates + """ + hasOauthprovider: Boolean + hasOauthproviderWith: [OauthProviderWhereInput!] + """ + users edge predicates + """ + hasUsers: Boolean + hasUsersWith: [UserWhereInput!] + """ + invites edge predicates + """ + hasInvites: Boolean + hasInvitesWith: [InviteWhereInput!] + """ + subscribers edge predicates + """ + hasSubscribers: Boolean + hasSubscribersWith: [SubscriberWhereInput!] + """ + webhooks edge predicates + """ + hasWebhooks: Boolean + hasWebhooksWith: [WebhookWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + secrets edge predicates + """ + hasSecrets: Boolean + hasSecretsWith: [HushWhereInput!] + """ + features edge predicates + """ + hasFeatures: Boolean + hasFeaturesWith: [FeatureWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + entitlementplans edge predicates + """ + hasEntitlementplans: Boolean + hasEntitlementplansWith: [EntitlementPlanWhereInput!] + """ + entitlementplanfeatures edge predicates + """ + hasEntitlementplanfeatures: Boolean + hasEntitlementplanfeaturesWith: [EntitlementPlanFeatureWhereInput!] + """ + entities edge predicates + """ + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] + """ + entitytypes edge predicates + """ + hasEntitytypes: Boolean + hasEntitytypesWith: [EntityTypeWhereInput!] + """ + contacts edge predicates + """ + hasContacts: Boolean + hasContactsWith: [ContactWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + members edge predicates + """ + hasMembers: Boolean + hasMembersWith: [OrgMembershipWhereInput!] +} +""" +Information about pagination in a connection. +https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo +""" +type PageInfo { + """ + When paginating forwards, are there more items? + """ + hasNextPage: Boolean! + """ + When paginating backwards, are there more items? + """ + hasPreviousPage: Boolean! + """ + When paginating backwards, the cursor to continue. + """ + startCursor: Cursor + """ + When paginating forwards, the cursor to continue. + """ + endCursor: Cursor +} +type PersonalAccessToken implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name associated with the token + """ + name: String! + token: String! + """ + when the token expires + """ + expiresAt: Time + """ + a description of the token's purpose + """ + description: String + scopes: [String!] + lastUsedAt: Time + owner: User! + """ + the organization(s) the token is associated with + """ + organizations: [Organization!] + events: [Event!] +} +""" +Return response for createBulkPersonalAccessToken mutation +""" +type PersonalAccessTokenBulkCreatePayload { + """ + Created personalAccessTokens + """ + personalAccessTokens: [PersonalAccessToken!] +} +""" +A connection to a list of items. +""" +type PersonalAccessTokenConnection { + """ + A list of edges. + """ + edges: [PersonalAccessTokenEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createPersonalAccessToken mutation +""" +type PersonalAccessTokenCreatePayload { + """ + Created personalAccessToken + """ + personalAccessToken: PersonalAccessToken! +} +""" +Return response for deletePersonalAccessToken mutation +""" +type PersonalAccessTokenDeletePayload { + """ + Deleted personalAccessToken ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type PersonalAccessTokenEdge { + """ + The item at the end of the edge. + """ + node: PersonalAccessToken + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type PersonalAccessTokenSearchResult { + personalAccessTokens: [PersonalAccessToken!] +} +""" +Return response for updatePersonalAccessToken mutation +""" +type PersonalAccessTokenUpdatePayload { + """ + Updated personalAccessToken + """ + personalAccessToken: PersonalAccessToken! +} +""" +PersonalAccessTokenWhereInput is used for filtering PersonalAccessToken objects. +Input was generated by ent. +""" +input PersonalAccessTokenWhereInput { + not: PersonalAccessTokenWhereInput + and: [PersonalAccessTokenWhereInput!] + or: [PersonalAccessTokenWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + expires_at field predicates + """ + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean + """ + last_used_at field predicates + """ + lastUsedAt: Time + lastUsedAtNEQ: Time + lastUsedAtIn: [Time!] + lastUsedAtNotIn: [Time!] + lastUsedAtGT: Time + lastUsedAtGTE: Time + lastUsedAtLT: Time + lastUsedAtLTE: Time + lastUsedAtIsNil: Boolean + lastUsedAtNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [UserWhereInput!] + """ + organizations edge predicates + """ + hasOrganizations: Boolean + hasOrganizationsWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type Procedure implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the procedure + """ + name: String! + """ + description of the procedure + """ + description: String + """ + status of the procedure + """ + status: String + """ + type of the procedure + """ + procedureType: String + """ + version of the procedure + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map + control: [Control!] + internalpolicy: [InternalPolicy!] + narratives: [Narrative!] + risks: [Risk!] +} +""" +Return response for createBulkProcedure mutation +""" +type ProcedureBulkCreatePayload { + """ + Created procedures + """ + procedures: [Procedure!] +} +""" +A connection to a list of items. +""" +type ProcedureConnection { + """ + A list of edges. + """ + edges: [ProcedureEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createProcedure mutation +""" +type ProcedureCreatePayload { + """ + Created procedure + """ + procedure: Procedure! +} +""" +Return response for deleteProcedure mutation +""" +type ProcedureDeletePayload { + """ + Deleted procedure ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type ProcedureEdge { + """ + The item at the end of the edge. + """ + node: Procedure + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ProcedureHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ProcedureHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the procedure + """ + name: String! + """ + description of the procedure + """ + description: String + """ + status of the procedure + """ + status: String + """ + type of the procedure + """ + procedureType: String + """ + version of the procedure + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map +} +""" +A connection to a list of items. +""" +type ProcedureHistoryConnection { + """ + A list of edges. + """ + edges: [ProcedureHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ProcedureHistoryEdge { + """ + The item at the end of the edge. + """ + node: ProcedureHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ProcedureHistoryOpType is enum for the field operation +""" +enum ProcedureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ProcedureHistoryWhereInput is used for filtering ProcedureHistory objects. +Input was generated by ent. +""" +input ProcedureHistoryWhereInput { + not: ProcedureHistoryWhereInput + and: [ProcedureHistoryWhereInput!] + or: [ProcedureHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ProcedureHistoryOpType + operationNEQ: ProcedureHistoryOpType + operationIn: [ProcedureHistoryOpType!] + operationNotIn: [ProcedureHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + procedure_type field predicates + """ + procedureType: String + procedureTypeNEQ: String + procedureTypeIn: [String!] + procedureTypeNotIn: [String!] + procedureTypeGT: String + procedureTypeGTE: String + procedureTypeLT: String + procedureTypeLTE: String + procedureTypeContains: String + procedureTypeHasPrefix: String + procedureTypeHasSuffix: String + procedureTypeIsNil: Boolean + procedureTypeNotNil: Boolean + procedureTypeEqualFold: String + procedureTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +type ProcedureSearchResult { + procedures: [Procedure!] +} +""" +Return response for updateProcedure mutation +""" +type ProcedureUpdatePayload { + """ + Updated procedure + """ + procedure: Procedure! +} +""" +ProcedureWhereInput is used for filtering Procedure objects. +Input was generated by ent. +""" +input ProcedureWhereInput { + not: ProcedureWhereInput + and: [ProcedureWhereInput!] + or: [ProcedureWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + procedure_type field predicates + """ + procedureType: String + procedureTypeNEQ: String + procedureTypeIn: [String!] + procedureTypeNotIn: [String!] + procedureTypeGT: String + procedureTypeGTE: String + procedureTypeLT: String + procedureTypeLTE: String + procedureTypeContains: String + procedureTypeHasPrefix: String + procedureTypeHasSuffix: String + procedureTypeIsNil: Boolean + procedureTypeNotNil: Boolean + procedureTypeEqualFold: String + procedureTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + internalpolicy edge predicates + """ + hasInternalpolicy: Boolean + hasInternalpolicyWith: [InternalPolicyWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] +} +type Query { + """ + Fetches an object given its ID. + """ + node( + """ + ID of the object. + """ + id: ID! + ): Node + """ + Lookup nodes by a list of IDs. + """ + nodes( + """ + The list of node IDs. + """ + ids: [ID!]! + ): [Node]! + apiTokens( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for APITokens returned from the connection. + """ + where: APITokenWhereInput + ): APITokenConnection! + actionPlans( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ActionPlans returned from the connection. + """ + where: ActionPlanWhereInput + ): ActionPlanConnection! + actionPlanHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ActionPlanHistories returned from the connection. + """ + where: ActionPlanHistoryWhereInput + ): ActionPlanHistoryConnection! + contacts( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Contacts returned from the connection. + """ + where: ContactWhereInput + ): ContactConnection! + contactHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ContactHistories returned from the connection. + """ + where: ContactHistoryWhereInput + ): ContactHistoryConnection! + controls( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Controls returned from the connection. + """ + where: ControlWhereInput + ): ControlConnection! + controlHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlHistories returned from the connection. + """ + where: ControlHistoryWhereInput + ): ControlHistoryConnection! + controlObjectives( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlObjectives returned from the connection. + """ + where: ControlObjectiveWhereInput + ): ControlObjectiveConnection! + controlObjectiveHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlObjectiveHistories returned from the connection. + """ + where: ControlObjectiveHistoryWhereInput + ): ControlObjectiveHistoryConnection! + documentDataSlice( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for DocumentDataSlice returned from the connection. + """ + where: DocumentDataWhereInput + ): DocumentDataConnection! + documentDataHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for DocumentDataHistories returned from the connection. + """ + where: DocumentDataHistoryWhereInput + ): DocumentDataHistoryConnection! + entitlements( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Entitlements returned from the connection. + """ + where: EntitlementWhereInput + ): EntitlementConnection! + entitlementHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EntitlementHistories returned from the connection. + """ + where: EntitlementHistoryWhereInput + ): EntitlementHistoryConnection! + entitlementPlans( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EntitlementPlans returned from the connection. + """ + where: EntitlementPlanWhereInput + ): EntitlementPlanConnection! + entitlementPlanFeatures( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EntitlementPlanFeatures returned from the connection. + """ + where: EntitlementPlanFeatureWhereInput + ): EntitlementPlanFeatureConnection! + entitlementPlanFeatureHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EntitlementPlanFeatureHistories returned from the connection. + """ + where: EntitlementPlanFeatureHistoryWhereInput + ): EntitlementPlanFeatureHistoryConnection! + entitlementPlanHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EntitlementPlanHistories returned from the connection. + """ + where: EntitlementPlanHistoryWhereInput + ): EntitlementPlanHistoryConnection! + entities( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Entities returned from the connection. + """ + orderBy: EntityOrder + + """ + Filtering options for Entities returned from the connection. + """ + where: EntityWhereInput + ): EntityConnection! + entityHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityHistories returned from the connection. + """ + orderBy: EntityHistoryOrder + + """ + Filtering options for EntityHistories returned from the connection. + """ + where: EntityHistoryWhereInput + ): EntityHistoryConnection! + entityTypes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityTypes returned from the connection. + """ + orderBy: EntityTypeOrder + + """ + Filtering options for EntityTypes returned from the connection. + """ + where: EntityTypeWhereInput + ): EntityTypeConnection! + entityTypeHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityTypeHistories returned from the connection. + """ + orderBy: EntityTypeHistoryOrder + + """ + Filtering options for EntityTypeHistories returned from the connection. + """ + where: EntityTypeHistoryWhereInput + ): EntityTypeHistoryConnection! + events( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Events returned from the connection. + """ + where: EventWhereInput + ): EventConnection! + eventHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EventHistories returned from the connection. + """ + where: EventHistoryWhereInput + ): EventHistoryConnection! + features( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Features returned from the connection. + """ + where: FeatureWhereInput + ): FeatureConnection! + featureHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for FeatureHistories returned from the connection. + """ + where: FeatureHistoryWhereInput + ): FeatureHistoryConnection! + files( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Files returned from the connection. + """ + where: FileWhereInput + ): FileConnection! + fileHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for FileHistories returned from the connection. + """ + where: FileHistoryWhereInput + ): FileHistoryConnection! + groups( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Groups returned from the connection. + """ + orderBy: GroupOrder + + """ + Filtering options for Groups returned from the connection. + """ + where: GroupWhereInput + ): GroupConnection! + groupHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for GroupHistories returned from the connection. + """ + orderBy: GroupHistoryOrder + + """ + Filtering options for GroupHistories returned from the connection. + """ + where: GroupHistoryWhereInput + ): GroupHistoryConnection! + groupMemberships( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupMemberships returned from the connection. + """ + where: GroupMembershipWhereInput + ): GroupMembershipConnection! + groupMembershipHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupMembershipHistories returned from the connection. + """ + where: GroupMembershipHistoryWhereInput + ): GroupMembershipHistoryConnection! + groupSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupSettings returned from the connection. + """ + where: GroupSettingWhereInput + ): GroupSettingConnection! + groupSettingHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupSettingHistories returned from the connection. + """ + where: GroupSettingHistoryWhereInput + ): GroupSettingHistoryConnection! + hushes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Hushes returned from the connection. + """ + orderBy: HushOrder + + """ + Filtering options for Hushes returned from the connection. + """ + where: HushWhereInput + ): HushConnection! + hushHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for HushHistories returned from the connection. + """ + orderBy: HushHistoryOrder + + """ + Filtering options for HushHistories returned from the connection. + """ + where: HushHistoryWhereInput + ): HushHistoryConnection! + integrations( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Integrations returned from the connection. + """ + orderBy: IntegrationOrder + + """ + Filtering options for Integrations returned from the connection. + """ + where: IntegrationWhereInput + ): IntegrationConnection! + integrationHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for IntegrationHistories returned from the connection. + """ + orderBy: IntegrationHistoryOrder + + """ + Filtering options for IntegrationHistories returned from the connection. + """ + where: IntegrationHistoryWhereInput + ): IntegrationHistoryConnection! + internalPolicies( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for InternalPolicies returned from the connection. + """ + where: InternalPolicyWhereInput + ): InternalPolicyConnection! + internalPolicyHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for InternalPolicyHistories returned from the connection. + """ + where: InternalPolicyHistoryWhereInput + ): InternalPolicyHistoryConnection! + invites( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Invites returned from the connection. + """ + where: InviteWhereInput + ): InviteConnection! + narratives( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Narratives returned from the connection. + """ + where: NarrativeWhereInput + ): NarrativeConnection! + narrativeHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for NarrativeHistories returned from the connection. + """ + where: NarrativeHistoryWhereInput + ): NarrativeHistoryConnection! + notes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Notes returned from the connection. + """ + where: NoteWhereInput + ): NoteConnection! + noteHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for NoteHistories returned from the connection. + """ + where: NoteHistoryWhereInput + ): NoteHistoryConnection! + oauthProviders( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. """ before: Cursor @@ -16623,11 +22926,11 @@ type Query { last: Int """ - Filtering options for Events returned from the connection. + Filtering options for OauthProviders returned from the connection. """ - where: EventWhereInput - ): EventConnection! - eventHistories( + where: OauthProviderWhereInput + ): OauthProviderConnection! + oauthProviderHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -16649,11 +22952,11 @@ type Query { last: Int """ - Filtering options for EventHistories returned from the connection. + Filtering options for OauthProviderHistories returned from the connection. """ - where: EventHistoryWhereInput - ): EventHistoryConnection! - features( + where: OauthProviderHistoryWhereInput + ): OauthProviderHistoryConnection! + ohAuthTooTokens( """ Returns the elements in the list that come after the specified cursor. """ @@ -16675,11 +22978,11 @@ type Query { last: Int """ - Filtering options for Features returned from the connection. + Filtering options for OhAuthTooTokens returned from the connection. """ - where: FeatureWhereInput - ): FeatureConnection! - featureHistories( + where: OhAuthTooTokenWhereInput + ): OhAuthTooTokenConnection! + orgMemberships( """ Returns the elements in the list that come after the specified cursor. """ @@ -16701,11 +23004,229 @@ type Query { last: Int """ - Filtering options for FeatureHistories returned from the connection. + Filtering options for OrgMemberships returned from the connection. """ - where: FeatureHistoryWhereInput - ): FeatureHistoryConnection! - files( + where: OrgMembershipWhereInput + ): OrgMembershipConnection! + orgMembershipHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrgMembershipHistories returned from the connection. + """ + where: OrgMembershipHistoryWhereInput + ): OrgMembershipHistoryConnection! + organizations( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Organizations returned from the connection. + """ + orderBy: OrganizationOrder + + """ + Filtering options for Organizations returned from the connection. + """ + where: OrganizationWhereInput + ): OrganizationConnection! + organizationHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for OrganizationHistories returned from the connection. + """ + orderBy: OrganizationHistoryOrder + + """ + Filtering options for OrganizationHistories returned from the connection. + """ + where: OrganizationHistoryWhereInput + ): OrganizationHistoryConnection! + organizationSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrganizationSettings returned from the connection. + """ + where: OrganizationSettingWhereInput + ): OrganizationSettingConnection! + organizationSettingHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrganizationSettingHistories returned from the connection. + """ + where: OrganizationSettingHistoryWhereInput + ): OrganizationSettingHistoryConnection! + personalAccessTokens( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for PersonalAccessTokens returned from the connection. + """ + where: PersonalAccessTokenWhereInput + ): PersonalAccessTokenConnection! + procedures( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Procedures returned from the connection. + """ + where: ProcedureWhereInput + ): ProcedureConnection! + procedureHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ProcedureHistories returned from the connection. + """ + where: ProcedureHistoryWhereInput + ): ProcedureHistoryConnection! + risks( """ Returns the elements in the list that come after the specified cursor. """ @@ -16727,11 +23248,11 @@ type Query { last: Int """ - Filtering options for Files returned from the connection. + Filtering options for Risks returned from the connection. """ - where: FileWhereInput - ): FileConnection! - fileHistories( + where: RiskWhereInput + ): RiskConnection! + riskHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -16753,11 +23274,11 @@ type Query { last: Int """ - Filtering options for FileHistories returned from the connection. + Filtering options for RiskHistories returned from the connection. """ - where: FileHistoryWhereInput - ): FileHistoryConnection! - groups( + where: RiskHistoryWhereInput + ): RiskHistoryConnection! + standards( """ Returns the elements in the list that come after the specified cursor. """ @@ -16779,16 +23300,11 @@ type Query { last: Int """ - Ordering options for Groups returned from the connection. - """ - orderBy: GroupOrder - + Filtering options for Standards returned from the connection. """ - Filtering options for Groups returned from the connection. - """ - where: GroupWhereInput - ): GroupConnection! - groupHistories( + where: StandardWhereInput + ): StandardConnection! + standardHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -16810,16 +23326,11 @@ type Query { last: Int """ - Ordering options for GroupHistories returned from the connection. - """ - orderBy: GroupHistoryOrder - - """ - Filtering options for GroupHistories returned from the connection. + Filtering options for StandardHistories returned from the connection. """ - where: GroupHistoryWhereInput - ): GroupHistoryConnection! - groupMemberships( + where: StandardHistoryWhereInput + ): StandardHistoryConnection! + subcontrols( """ Returns the elements in the list that come after the specified cursor. """ @@ -16841,11 +23352,11 @@ type Query { last: Int """ - Filtering options for GroupMemberships returned from the connection. + Filtering options for Subcontrols returned from the connection. """ - where: GroupMembershipWhereInput - ): GroupMembershipConnection! - groupMembershipHistories( + where: SubcontrolWhereInput + ): SubcontrolConnection! + subcontrolHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -16867,11 +23378,11 @@ type Query { last: Int """ - Filtering options for GroupMembershipHistories returned from the connection. + Filtering options for SubcontrolHistories returned from the connection. """ - where: GroupMembershipHistoryWhereInput - ): GroupMembershipHistoryConnection! - groupSettings( + where: SubcontrolHistoryWhereInput + ): SubcontrolHistoryConnection! + subscribers( """ Returns the elements in the list that come after the specified cursor. """ @@ -16893,11 +23404,11 @@ type Query { last: Int """ - Filtering options for GroupSettings returned from the connection. + Filtering options for Subscribers returned from the connection. """ - where: GroupSettingWhereInput - ): GroupSettingConnection! - groupSettingHistories( + where: SubscriberWhereInput + ): SubscriberConnection! + tfaSettings( """ Returns the elements in the list that come after the specified cursor. """ @@ -16919,11 +23430,11 @@ type Query { last: Int """ - Filtering options for GroupSettingHistories returned from the connection. + Filtering options for TFASettings returned from the connection. """ - where: GroupSettingHistoryWhereInput - ): GroupSettingHistoryConnection! - hushes( + where: TFASettingWhereInput + ): TFASettingConnection! + templates( """ Returns the elements in the list that come after the specified cursor. """ @@ -16945,16 +23456,16 @@ type Query { last: Int """ - Ordering options for Hushes returned from the connection. + Ordering options for Templates returned from the connection. """ - orderBy: HushOrder + orderBy: TemplateOrder """ - Filtering options for Hushes returned from the connection. + Filtering options for Templates returned from the connection. """ - where: HushWhereInput - ): HushConnection! - hushHistories( + where: TemplateWhereInput + ): TemplateConnection! + templateHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -16976,16 +23487,16 @@ type Query { last: Int """ - Ordering options for HushHistories returned from the connection. + Ordering options for TemplateHistories returned from the connection. """ - orderBy: HushHistoryOrder + orderBy: TemplateHistoryOrder """ - Filtering options for HushHistories returned from the connection. + Filtering options for TemplateHistories returned from the connection. """ - where: HushHistoryWhereInput - ): HushHistoryConnection! - integrations( + where: TemplateHistoryWhereInput + ): TemplateHistoryConnection! + users( """ Returns the elements in the list that come after the specified cursor. """ @@ -17007,16 +23518,16 @@ type Query { last: Int """ - Ordering options for Integrations returned from the connection. + Ordering options for Users returned from the connection. """ - orderBy: IntegrationOrder + orderBy: UserOrder """ - Filtering options for Integrations returned from the connection. + Filtering options for Users returned from the connection. """ - where: IntegrationWhereInput - ): IntegrationConnection! - integrationHistories( + where: UserWhereInput + ): UserConnection! + userHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -17038,16 +23549,16 @@ type Query { last: Int """ - Ordering options for IntegrationHistories returned from the connection. + Ordering options for UserHistories returned from the connection. """ - orderBy: IntegrationHistoryOrder + orderBy: UserHistoryOrder """ - Filtering options for IntegrationHistories returned from the connection. + Filtering options for UserHistories returned from the connection. """ - where: IntegrationHistoryWhereInput - ): IntegrationHistoryConnection! - invites( + where: UserHistoryWhereInput + ): UserHistoryConnection! + userSettings( """ Returns the elements in the list that come after the specified cursor. """ @@ -17069,11 +23580,11 @@ type Query { last: Int """ - Filtering options for Invites returned from the connection. + Filtering options for UserSettings returned from the connection. """ - where: InviteWhereInput - ): InviteConnection! - notes( + where: UserSettingWhereInput + ): UserSettingConnection! + userSettingHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -17095,11 +23606,11 @@ type Query { last: Int """ - Filtering options for Notes returned from the connection. + Filtering options for UserSettingHistories returned from the connection. """ - where: NoteWhereInput - ): NoteConnection! - noteHistories( + where: UserSettingHistoryWhereInput + ): UserSettingHistoryConnection! + webhooks( """ Returns the elements in the list that come after the specified cursor. """ @@ -17121,11 +23632,16 @@ type Query { last: Int """ - Filtering options for NoteHistories returned from the connection. + Ordering options for Webhooks returned from the connection. """ - where: NoteHistoryWhereInput - ): NoteHistoryConnection! - oauthProviders( + orderBy: WebhookOrder + + """ + Filtering options for Webhooks returned from the connection. + """ + where: WebhookWhereInput + ): WebhookConnection! + webhookHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -17147,146 +23663,340 @@ type Query { last: Int """ - Filtering options for OauthProviders returned from the connection. + Ordering options for WebhookHistories returned from the connection. """ - where: OauthProviderWhereInput - ): OauthProviderConnection! - oauthProviderHistories( + orderBy: WebhookHistoryOrder + """ - Returns the elements in the list that come after the specified cursor. + Filtering options for WebhookHistories returned from the connection. """ - after: Cursor - + where: WebhookHistoryWhereInput + ): WebhookHistoryConnection! + """ + Look up actionPlan by ID + """ + actionPlan( """ - Returns the first _n_ elements from the list. + ID of the actionPlan """ - first: Int - + id: ID! + ): ActionPlan! + """ + Search across APIToken objects + """ + adminAPITokenSearch( """ - Returns the elements in the list that come before the specified cursor. + Search query """ - before: Cursor - + query: String! + ): APITokenSearchResult + """ + Search across ActionPlan objects + """ + adminActionPlanSearch( """ - Returns the last _n_ elements from the list. + Search query """ - last: Int - + query: String! + ): ActionPlanSearchResult + """ + Search across Contact objects + """ + adminContactSearch( + """ + Search query + """ + query: String! + ): ContactSearchResult + """ + Search across Control objects + """ + adminControlSearch( + """ + Search query + """ + query: String! + ): ControlSearchResult + """ + Search across ControlObjective objects + """ + adminControlObjectiveSearch( + """ + Search query + """ + query: String! + ): ControlObjectiveSearchResult + """ + Search across DocumentData objects + """ + adminDocumentDataSearch( + """ + Search query + """ + query: String! + ): DocumentDataSearchResult + """ + Search across Entitlement objects + """ + adminEntitlementSearch( + """ + Search query + """ + query: String! + ): EntitlementSearchResult + """ + Search across EntitlementPlan objects + """ + adminEntitlementPlanSearch( + """ + Search query + """ + query: String! + ): EntitlementPlanSearchResult + """ + Search across EntitlementPlanFeature objects + """ + adminEntitlementPlanFeatureSearch( + """ + Search query + """ + query: String! + ): EntitlementPlanFeatureSearchResult + """ + Search across Entity objects + """ + adminEntitySearch( + """ + Search query + """ + query: String! + ): EntitySearchResult + """ + Search across EntityType objects + """ + adminEntityTypeSearch( + """ + Search query + """ + query: String! + ): EntityTypeSearchResult + """ + Search across Event objects + """ + adminEventSearch( + """ + Search query + """ + query: String! + ): EventSearchResult + """ + Search across Feature objects + """ + adminFeatureSearch( + """ + Search query + """ + query: String! + ): FeatureSearchResult + """ + Search across File objects + """ + adminFileSearch( """ - Filtering options for OauthProviderHistories returned from the connection. + Search query """ - where: OauthProviderHistoryWhereInput - ): OauthProviderHistoryConnection! - ohAuthTooTokens( + query: String! + ): FileSearchResult + """ + Search across Group objects + """ + adminGroupSearch( """ - Returns the elements in the list that come after the specified cursor. + Search query """ - after: Cursor - + query: String! + ): GroupSearchResult + """ + Search across GroupSetting objects + """ + adminGroupSettingSearch( """ - Returns the first _n_ elements from the list. + Search query """ - first: Int - + query: String! + ): GroupSettingSearchResult + """ + Search across Integration objects + """ + adminIntegrationSearch( """ - Returns the elements in the list that come before the specified cursor. + Search query """ - before: Cursor - + query: String! + ): IntegrationSearchResult + """ + Search across InternalPolicy objects + """ + adminInternalPolicySearch( """ - Returns the last _n_ elements from the list. + Search query """ - last: Int - + query: String! + ): InternalPolicySearchResult + """ + Search across Narrative objects + """ + adminNarrativeSearch( """ - Filtering options for OhAuthTooTokens returned from the connection. + Search query """ - where: OhAuthTooTokenWhereInput - ): OhAuthTooTokenConnection! - orgMemberships( + query: String! + ): NarrativeSearchResult + """ + Search across OauthProvider objects + """ + adminOauthProviderSearch( """ - Returns the elements in the list that come after the specified cursor. + Search query """ - after: Cursor - + query: String! + ): OauthProviderSearchResult + """ + Search across OhAuthTooToken objects + """ + adminOhAuthTooTokenSearch( """ - Returns the first _n_ elements from the list. + Search query """ - first: Int - + query: String! + ): OhAuthTooTokenSearchResult + """ + Search across Organization objects + """ + adminOrganizationSearch( """ - Returns the elements in the list that come before the specified cursor. + Search query """ - before: Cursor - + query: String! + ): OrganizationSearchResult + """ + Search across OrganizationSetting objects + """ + adminOrganizationSettingSearch( """ - Returns the last _n_ elements from the list. + Search query """ - last: Int - + query: String! + ): OrganizationSettingSearchResult + """ + Search across PersonalAccessToken objects + """ + adminPersonalAccessTokenSearch( """ - Filtering options for OrgMemberships returned from the connection. + Search query """ - where: OrgMembershipWhereInput - ): OrgMembershipConnection! - orgMembershipHistories( + query: String! + ): PersonalAccessTokenSearchResult + """ + Search across Procedure objects + """ + adminProcedureSearch( """ - Returns the elements in the list that come after the specified cursor. + Search query """ - after: Cursor - + query: String! + ): ProcedureSearchResult + """ + Search across Risk objects + """ + adminRiskSearch( """ - Returns the first _n_ elements from the list. + Search query """ - first: Int - + query: String! + ): RiskSearchResult + """ + Search across Standard objects + """ + adminStandardSearch( """ - Returns the elements in the list that come before the specified cursor. + Search query """ - before: Cursor - + query: String! + ): StandardSearchResult + """ + Search across Subcontrol objects + """ + adminSubcontrolSearch( """ - Returns the last _n_ elements from the list. + Search query """ - last: Int - + query: String! + ): SubcontrolSearchResult + """ + Search across Subscriber objects + """ + adminSubscriberSearch( """ - Filtering options for OrgMembershipHistories returned from the connection. + Search query """ - where: OrgMembershipHistoryWhereInput - ): OrgMembershipHistoryConnection! - organizations( + query: String! + ): SubscriberSearchResult + """ + Search across TFASetting objects + """ + adminTFASettingSearch( """ - Returns the elements in the list that come after the specified cursor. + Search query """ - after: Cursor - + query: String! + ): TFASettingSearchResult + """ + Search across Template objects + """ + adminTemplateSearch( """ - Returns the first _n_ elements from the list. + Search query """ - first: Int - + query: String! + ): TemplateSearchResult + """ + Search across User objects + """ + adminUserSearch( """ - Returns the elements in the list that come before the specified cursor. + Search query """ - before: Cursor - + query: String! + ): UserSearchResult + """ + Search across UserSetting objects + """ + adminUserSettingSearch( """ - Returns the last _n_ elements from the list. + Search query """ - last: Int - + query: String! + ): UserSettingSearchResult + """ + Search across Webhook objects + """ + adminWebhookSearch( """ - Ordering options for Organizations returned from the connection. + Search query """ - orderBy: OrganizationOrder - + query: String! + ): WebhookSearchResult + """ + Look up apiToken by ID + """ + apiToken( """ - Filtering options for Organizations returned from the connection. + ID of the apiToken """ - where: OrganizationWhereInput - ): OrganizationConnection! - organizationHistories( + id: ID! + ): APIToken! + auditLogs( """ Returns the elements in the list that come after the specified cursor. """ @@ -17308,1143 +24018,3369 @@ type Query { last: Int """ - Ordering options for OrganizationHistories returned from the connection. + Filtering options for AuditLogs returned from the connection. """ - orderBy: OrganizationHistoryOrder - + where: AuditLogWhereInput + ): AuditLogConnection! + """ + Look up contact by ID + """ + contact( """ - Filtering options for OrganizationHistories returned from the connection. + ID of the contact """ - where: OrganizationHistoryWhereInput - ): OrganizationHistoryConnection! - organizationSettings( + id: ID! + ): Contact! + """ + Look up control by ID + """ + control( """ - Returns the elements in the list that come after the specified cursor. + ID of the control """ - after: Cursor - + id: ID! + ): Control! + """ + Look up controlObjective by ID + """ + controlObjective( """ - Returns the first _n_ elements from the list. + ID of the controlObjective """ - first: Int - + id: ID! + ): ControlObjective! + """ + Look up documentData by ID + """ + documentData( """ - Returns the elements in the list that come before the specified cursor. + ID of the documentData """ - before: Cursor - + id: ID! + ): DocumentData! + """ + Look up entitlement by ID + """ + entitlement( """ - Returns the last _n_ elements from the list. + ID of the entitlement """ - last: Int - + id: ID! + ): Entitlement! + """ + Look up entitlementPlan by ID + """ + entitlementPlan( """ - Filtering options for OrganizationSettings returned from the connection. + ID of the entitlementPlan """ - where: OrganizationSettingWhereInput - ): OrganizationSettingConnection! - organizationSettingHistories( + id: ID! + ): EntitlementPlan! + """ + Look up entitlementPlanFeature by ID + """ + entitlementPlanFeature( """ - Returns the elements in the list that come after the specified cursor. + ID of the entitlementPlanFeature """ - after: Cursor - + id: ID! + ): EntitlementPlanFeature! + """ + Look up entity by ID + """ + entity( """ - Returns the first _n_ elements from the list. + ID of the entity """ - first: Int - + id: ID! + ): Entity! + """ + Look up entityType by ID + """ + entityType( """ - Returns the elements in the list that come before the specified cursor. + ID of the entityType """ - before: Cursor - + id: ID! + ): EntityType! + """ + Look up event by ID + """ + event( """ - Returns the last _n_ elements from the list. + ID of the event """ - last: Int - + id: ID! + ): Event! + """ + Look up feature by ID + """ + feature( """ - Filtering options for OrganizationSettingHistories returned from the connection. + ID of the feature """ - where: OrganizationSettingHistoryWhereInput - ): OrganizationSettingHistoryConnection! - personalAccessTokens( + id: ID! + ): Feature! + """ + Look up file by ID + """ + file( """ - Returns the elements in the list that come after the specified cursor. + ID of the file """ - after: Cursor - + id: ID! + ): File! + """ + Look up group by ID + """ + group( """ - Returns the first _n_ elements from the list. + ID of the group """ - first: Int - + id: ID! + ): Group! + """ + Look up groupMembership by ID + """ + groupMembership( """ - Returns the elements in the list that come before the specified cursor. + ID of the groupMembership """ - before: Cursor - + id: ID! + ): GroupMembership! + """ + Look up groupSetting by ID + """ + groupSetting( """ - Returns the last _n_ elements from the list. + ID of the groupSetting """ - last: Int - + id: ID! + ): GroupSetting! + """ + Look up hush by ID + """ + hush( """ - Filtering options for PersonalAccessTokens returned from the connection. + ID of the hush """ - where: PersonalAccessTokenWhereInput - ): PersonalAccessTokenConnection! - subscribers( + id: ID! + ): Hush! + """ + Look up integration by ID + """ + integration( """ - Returns the elements in the list that come after the specified cursor. + ID of the integration """ - after: Cursor - + id: ID! + ): Integration! + """ + Look up internalPolicy by ID + """ + internalPolicy( """ - Returns the first _n_ elements from the list. + ID of the internalPolicy """ - first: Int - + id: ID! + ): InternalPolicy! + """ + Look up invite by ID + """ + invite( """ - Returns the elements in the list that come before the specified cursor. + ID of the invite """ - before: Cursor - + id: ID! + ): Invite! + """ + Look up narrative by ID + """ + narrative( """ - Returns the last _n_ elements from the list. + ID of the narrative """ - last: Int - + id: ID! + ): Narrative! + """ + Look up oauthProvider by ID + """ + oauthProvider( """ - Filtering options for Subscribers returned from the connection. + ID of the oauthProvider """ - where: SubscriberWhereInput - ): SubscriberConnection! - tfaSettings( + id: ID! + ): OauthProvider! + """ + Look up ohAuthTooToken by ID + """ + ohAuthTooToken( """ - Returns the elements in the list that come after the specified cursor. + ID of the ohAuthTooToken """ - after: Cursor - + id: ID! + ): OhAuthTooToken! + """ + Look up organization by ID + """ + organization( """ - Returns the first _n_ elements from the list. + ID of the organization """ - first: Int - + id: ID! + ): Organization! + """ + Look up organizationSetting by ID + """ + organizationSetting( """ - Returns the elements in the list that come before the specified cursor. + ID of the organizationSetting """ - before: Cursor - + id: ID! + ): OrganizationSetting! + """ + Look up orgMembership by ID + """ + orgMembership( """ - Returns the last _n_ elements from the list. + ID of the orgMembership """ - last: Int - + id: ID! + ): OrgMembership! + """ + Look up personalAccessToken by ID + """ + personalAccessToken( """ - Filtering options for TFASettings returned from the connection. + ID of the personalAccessToken """ - where: TFASettingWhereInput - ): TFASettingConnection! - templates( + id: ID! + ): PersonalAccessToken! + """ + Look up procedure by ID + """ + procedure( """ - Returns the elements in the list that come after the specified cursor. + ID of the procedure """ - after: Cursor - + id: ID! + ): Procedure! + """ + Look up risk by ID + """ + risk( """ - Returns the first _n_ elements from the list. + ID of the risk """ - first: Int - + id: ID! + ): Risk! + """ + Search across APIToken objects + """ + apiTokenSearch( """ - Returns the elements in the list that come before the specified cursor. + Search query """ - before: Cursor - + query: String! + ): APITokenSearchResult + """ + Search across ActionPlan objects + """ + actionPlanSearch( """ - Returns the last _n_ elements from the list. + Search query """ - last: Int - + query: String! + ): ActionPlanSearchResult + """ + Search across Contact objects + """ + contactSearch( """ - Ordering options for Templates returned from the connection. + Search query """ - orderBy: TemplateOrder - + query: String! + ): ContactSearchResult + """ + Search across Control objects + """ + controlSearch( """ - Filtering options for Templates returned from the connection. + Search query """ - where: TemplateWhereInput - ): TemplateConnection! - templateHistories( + query: String! + ): ControlSearchResult + """ + Search across ControlObjective objects + """ + controlObjectiveSearch( """ - Returns the elements in the list that come after the specified cursor. + Search query """ - after: Cursor - + query: String! + ): ControlObjectiveSearchResult + """ + Search across DocumentData objects + """ + documentDataSearch( """ - Returns the first _n_ elements from the list. + Search query """ - first: Int - + query: String! + ): DocumentDataSearchResult + """ + Search across Entitlement objects + """ + entitlementSearch( """ - Returns the elements in the list that come before the specified cursor. + Search query """ - before: Cursor - + query: String! + ): EntitlementSearchResult + """ + Search across EntitlementPlan objects + """ + entitlementPlanSearch( """ - Returns the last _n_ elements from the list. + Search query """ - last: Int - + query: String! + ): EntitlementPlanSearchResult + """ + Search across EntitlementPlanFeature objects + """ + entitlementPlanFeatureSearch( """ - Ordering options for TemplateHistories returned from the connection. + Search query """ - orderBy: TemplateHistoryOrder - + query: String! + ): EntitlementPlanFeatureSearchResult + """ + Search across Entity objects + """ + entitySearch( """ - Filtering options for TemplateHistories returned from the connection. + Search query """ - where: TemplateHistoryWhereInput - ): TemplateHistoryConnection! - users( + query: String! + ): EntitySearchResult + """ + Search across EntityType objects + """ + entityTypeSearch( """ - Returns the elements in the list that come after the specified cursor. + Search query """ - after: Cursor - + query: String! + ): EntityTypeSearchResult + """ + Search across Event objects + """ + eventSearch( """ - Returns the first _n_ elements from the list. + Search query """ - first: Int - + query: String! + ): EventSearchResult + """ + Search across Feature objects + """ + featureSearch( """ - Returns the elements in the list that come before the specified cursor. + Search query """ - before: Cursor - + query: String! + ): FeatureSearchResult + """ + Search across File objects + """ + fileSearch( """ - Returns the last _n_ elements from the list. + Search query """ - last: Int - + query: String! + ): FileSearchResult + """ + Search across Group objects + """ + groupSearch( """ - Ordering options for Users returned from the connection. + Search query """ - orderBy: UserOrder - + query: String! + ): GroupSearchResult + """ + Search across GroupSetting objects + """ + groupSettingSearch( """ - Filtering options for Users returned from the connection. + Search query """ - where: UserWhereInput - ): UserConnection! - userHistories( + query: String! + ): GroupSettingSearchResult + """ + Search across Integration objects + """ + integrationSearch( """ - Returns the elements in the list that come after the specified cursor. + Search query """ - after: Cursor - + query: String! + ): IntegrationSearchResult + """ + Search across InternalPolicy objects + """ + internalPolicySearch( """ - Returns the first _n_ elements from the list. + Search query """ - first: Int - + query: String! + ): InternalPolicySearchResult + """ + Search across Narrative objects + """ + narrativeSearch( """ - Returns the elements in the list that come before the specified cursor. + Search query """ - before: Cursor - + query: String! + ): NarrativeSearchResult + """ + Search across OauthProvider objects + """ + oauthProviderSearch( """ - Returns the last _n_ elements from the list. + Search query """ - last: Int - + query: String! + ): OauthProviderSearchResult + """ + Search across OhAuthTooToken objects + """ + ohAuthTooTokenSearch( """ - Ordering options for UserHistories returned from the connection. + Search query """ - orderBy: UserHistoryOrder - + query: String! + ): OhAuthTooTokenSearchResult + """ + Search across Organization objects + """ + organizationSearch( """ - Filtering options for UserHistories returned from the connection. + Search query """ - where: UserHistoryWhereInput - ): UserHistoryConnection! - userSettings( + query: String! + ): OrganizationSearchResult + """ + Search across OrganizationSetting objects + """ + organizationSettingSearch( """ - Returns the elements in the list that come after the specified cursor. + Search query """ - after: Cursor - + query: String! + ): OrganizationSettingSearchResult + """ + Search across PersonalAccessToken objects + """ + personalAccessTokenSearch( """ - Returns the first _n_ elements from the list. + Search query """ - first: Int - + query: String! + ): PersonalAccessTokenSearchResult + """ + Search across Procedure objects + """ + procedureSearch( """ - Returns the elements in the list that come before the specified cursor. + Search query """ - before: Cursor - + query: String! + ): ProcedureSearchResult + """ + Search across Risk objects + """ + riskSearch( """ - Returns the last _n_ elements from the list. + Search query """ - last: Int - + query: String! + ): RiskSearchResult + """ + Search across Standard objects + """ + standardSearch( """ - Filtering options for UserSettings returned from the connection. + Search query """ - where: UserSettingWhereInput - ): UserSettingConnection! - userSettingHistories( + query: String! + ): StandardSearchResult + """ + Search across Subcontrol objects + """ + subcontrolSearch( """ - Returns the elements in the list that come after the specified cursor. + Search query """ - after: Cursor - + query: String! + ): SubcontrolSearchResult + """ + Search across Subscriber objects + """ + subscriberSearch( """ - Returns the first _n_ elements from the list. + Search query """ - first: Int - + query: String! + ): SubscriberSearchResult + """ + Search across TFASetting objects + """ + tFASettingSearch( """ - Returns the elements in the list that come before the specified cursor. + Search query """ - before: Cursor - + query: String! + ): TFASettingSearchResult + """ + Search across Template objects + """ + templateSearch( """ - Returns the last _n_ elements from the list. + Search query """ - last: Int - + query: String! + ): TemplateSearchResult + """ + Search across User objects + """ + userSearch( """ - Filtering options for UserSettingHistories returned from the connection. + Search query """ - where: UserSettingHistoryWhereInput - ): UserSettingHistoryConnection! - webhooks( + query: String! + ): UserSearchResult + """ + Search across UserSetting objects + """ + userSettingSearch( """ - Returns the elements in the list that come after the specified cursor. + Search query """ - after: Cursor - + query: String! + ): UserSettingSearchResult + """ + Search across Webhook objects + """ + webhookSearch( """ - Returns the first _n_ elements from the list. + Search query """ - first: Int - + query: String! + ): WebhookSearchResult + """ + Search across all objects + """ + search( """ - Returns the elements in the list that come before the specified cursor. + Search query """ - before: Cursor - + query: String! + ): SearchResultConnection + """ + Admin search across all objects + """ + adminSearch( """ - Returns the last _n_ elements from the list. + Search query """ - last: Int - + query: String! + ): SearchResultConnection + """ + Look up standard by ID + """ + standard( """ - Ordering options for Webhooks returned from the connection. + ID of the standard """ - orderBy: WebhookOrder - + id: ID! + ): Standard! + """ + Look up subcontrol by ID + """ + subcontrol( """ - Filtering options for Webhooks returned from the connection. + ID of the subcontrol """ - where: WebhookWhereInput - ): WebhookConnection! - webhookHistories( + id: ID! + ): Subcontrol! + """ + Look up subscriber by Email + """ + subscriber( """ - Returns the elements in the list that come after the specified cursor. + Email of the subscriber """ - after: Cursor - + email: String! + ): Subscriber! + """ + Look up template by ID + """ + template( """ - Returns the first _n_ elements from the list. + ID of the template """ - first: Int - + id: ID! + ): Template! + """ + Look up tfaSetting for the current user + """ + tfaSetting( """ - Returns the elements in the list that come before the specified cursor. + ID of the tfaSetting """ - before: Cursor - + id: ID + ): TFASetting! + """ + Look up user by ID + """ + user( """ - Returns the last _n_ elements from the list. + ID of the user """ - last: Int - + id: ID! + ): User! + """ + Look up userSetting by ID + """ + userSetting( """ - Ordering options for WebhookHistories returned from the connection. + ID of the userSetting """ - orderBy: WebhookHistoryOrder - + id: ID! + ): UserSetting! + """ + Look up webhook by ID + """ + webhook( """ - Filtering options for WebhookHistories returned from the connection. + ID of the webhook """ - where: WebhookHistoryWhereInput - ): WebhookHistoryConnection! + id: ID! + ): Webhook! +} +type Risk implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map + control: [Control!] + procedure: [Procedure!] + actionplans: [ActionPlan!] +} +""" +Return response for createBulkRisk mutation +""" +type RiskBulkCreatePayload { + """ + Created risks + """ + risks: [Risk!] +} +""" +A connection to a list of items. +""" +type RiskConnection { + """ + A list of edges. + """ + edges: [RiskEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createRisk mutation +""" +type RiskCreatePayload { + """ + Created risk + """ + risk: Risk! +} +""" +Return response for deleteRisk mutation +""" +type RiskDeletePayload { + """ + Deleted risk ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type RiskEdge { + """ + The item at the end of the edge. + """ + node: Risk + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type RiskHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: RiskHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskHistoryRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskHistoryRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map +} +""" +A connection to a list of items. +""" +type RiskHistoryConnection { + """ + A list of edges. + """ + edges: [RiskHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type RiskHistoryEdge { + """ + The item at the end of the edge. + """ + node: RiskHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +RiskHistoryOpType is enum for the field operation +""" +enum RiskHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +RiskHistoryRiskImpact is enum for the field impact +""" +enum RiskHistoryRiskImpact @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskImpact") { + LOW + MODERATE + HIGH +} +""" +RiskHistoryRiskLikelihood is enum for the field likelihood +""" +enum RiskHistoryRiskLikelihood @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskLikelihood") { + UNLIKELY + LIKELY + HIGHLY_LIKELY +} +""" +RiskHistoryWhereInput is used for filtering RiskHistory objects. +Input was generated by ent. +""" +input RiskHistoryWhereInput { + not: RiskHistoryWhereInput + and: [RiskHistoryWhereInput!] + or: [RiskHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: RiskHistoryOpType + operationNEQ: RiskHistoryOpType + operationIn: [RiskHistoryOpType!] + operationNotIn: [RiskHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + risk_type field predicates + """ + riskType: String + riskTypeNEQ: String + riskTypeIn: [String!] + riskTypeNotIn: [String!] + riskTypeGT: String + riskTypeGTE: String + riskTypeLT: String + riskTypeLTE: String + riskTypeContains: String + riskTypeHasPrefix: String + riskTypeHasSuffix: String + riskTypeIsNil: Boolean + riskTypeNotNil: Boolean + riskTypeEqualFold: String + riskTypeContainsFold: String + """ + business_costs field predicates + """ + businessCosts: String + businessCostsNEQ: String + businessCostsIn: [String!] + businessCostsNotIn: [String!] + businessCostsGT: String + businessCostsGTE: String + businessCostsLT: String + businessCostsLTE: String + businessCostsContains: String + businessCostsHasPrefix: String + businessCostsHasSuffix: String + businessCostsIsNil: Boolean + businessCostsNotNil: Boolean + businessCostsEqualFold: String + businessCostsContainsFold: String + """ + impact field predicates + """ + impact: RiskHistoryRiskImpact + impactNEQ: RiskHistoryRiskImpact + impactIn: [RiskHistoryRiskImpact!] + impactNotIn: [RiskHistoryRiskImpact!] + impactIsNil: Boolean + impactNotNil: Boolean + """ + likelihood field predicates + """ + likelihood: RiskHistoryRiskLikelihood + likelihoodNEQ: RiskHistoryRiskLikelihood + likelihoodIn: [RiskHistoryRiskLikelihood!] + likelihoodNotIn: [RiskHistoryRiskLikelihood!] + likelihoodIsNil: Boolean + likelihoodNotNil: Boolean + """ + mitigation field predicates + """ + mitigation: String + mitigationNEQ: String + mitigationIn: [String!] + mitigationNotIn: [String!] + mitigationGT: String + mitigationGTE: String + mitigationLT: String + mitigationLTE: String + mitigationContains: String + mitigationHasPrefix: String + mitigationHasSuffix: String + mitigationIsNil: Boolean + mitigationNotNil: Boolean + mitigationEqualFold: String + mitigationContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +""" +RiskRiskImpact is enum for the field impact +""" +enum RiskRiskImpact @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskImpact") { + LOW + MODERATE + HIGH +} +""" +RiskRiskLikelihood is enum for the field likelihood +""" +enum RiskRiskLikelihood @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskLikelihood") { + UNLIKELY + LIKELY + HIGHLY_LIKELY +} +type RiskSearchResult { + risks: [Risk!] +} +""" +Return response for updateRisk mutation +""" +type RiskUpdatePayload { + """ + Updated risk + """ + risk: Risk! +} +""" +RiskWhereInput is used for filtering Risk objects. +Input was generated by ent. +""" +input RiskWhereInput { + not: RiskWhereInput + and: [RiskWhereInput!] + or: [RiskWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + risk_type field predicates + """ + riskType: String + riskTypeNEQ: String + riskTypeIn: [String!] + riskTypeNotIn: [String!] + riskTypeGT: String + riskTypeGTE: String + riskTypeLT: String + riskTypeLTE: String + riskTypeContains: String + riskTypeHasPrefix: String + riskTypeHasSuffix: String + riskTypeIsNil: Boolean + riskTypeNotNil: Boolean + riskTypeEqualFold: String + riskTypeContainsFold: String + """ + business_costs field predicates + """ + businessCosts: String + businessCostsNEQ: String + businessCostsIn: [String!] + businessCostsNotIn: [String!] + businessCostsGT: String + businessCostsGTE: String + businessCostsLT: String + businessCostsLTE: String + businessCostsContains: String + businessCostsHasPrefix: String + businessCostsHasSuffix: String + businessCostsIsNil: Boolean + businessCostsNotNil: Boolean + businessCostsEqualFold: String + businessCostsContainsFold: String + """ + impact field predicates + """ + impact: RiskRiskImpact + impactNEQ: RiskRiskImpact + impactIn: [RiskRiskImpact!] + impactNotIn: [RiskRiskImpact!] + impactIsNil: Boolean + impactNotNil: Boolean + """ + likelihood field predicates + """ + likelihood: RiskRiskLikelihood + likelihoodNEQ: RiskRiskLikelihood + likelihoodIn: [RiskRiskLikelihood!] + likelihoodNotIn: [RiskRiskLikelihood!] + likelihoodIsNil: Boolean + likelihoodNotNil: Boolean + """ + mitigation field predicates + """ + mitigation: String + mitigationNEQ: String + mitigationIn: [String!] + mitigationNotIn: [String!] + mitigationGT: String + mitigationGTE: String + mitigationLT: String + mitigationLTE: String + mitigationContains: String + mitigationHasPrefix: String + mitigationHasSuffix: String + mitigationIsNil: Boolean + mitigationNotNil: Boolean + mitigationEqualFold: String + mitigationContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + procedure edge predicates + """ + hasProcedure: Boolean + hasProcedureWith: [ProcedureWhereInput!] + """ + actionplans edge predicates + """ + hasActionplans: Boolean + hasActionplansWith: [ActionPlanWhereInput!] +} +union SearchResult = APITokenSearchResult | ActionPlanSearchResult | ContactSearchResult | ControlSearchResult | ControlObjectiveSearchResult | DocumentDataSearchResult | EntitlementSearchResult | EntitlementPlanSearchResult | EntitlementPlanFeatureSearchResult | EntitySearchResult | EntityTypeSearchResult | EventSearchResult | FeatureSearchResult | FileSearchResult | GroupSearchResult | GroupSettingSearchResult | IntegrationSearchResult | InternalPolicySearchResult | NarrativeSearchResult | OauthProviderSearchResult | OhAuthTooTokenSearchResult | OrganizationSearchResult | OrganizationSettingSearchResult | PersonalAccessTokenSearchResult | ProcedureSearchResult | RiskSearchResult | StandardSearchResult | SubcontrolSearchResult | SubscriberSearchResult | TFASettingSearchResult | TemplateSearchResult | UserSearchResult | UserSettingSearchResult | WebhookSearchResult +type SearchResultConnection { + page: PageInfo! + nodes: [SearchResult!]! +} +type Standard implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map + controlobjectives: [ControlObjective!] + controls: [Control!] + procedures: [Procedure!] + actionplans: [ActionPlan!] +} +""" +Return response for createBulkStandard mutation +""" +type StandardBulkCreatePayload { + """ + Created standards + """ + standards: [Standard!] +} +""" +A connection to a list of items. +""" +type StandardConnection { + """ + A list of edges. + """ + edges: [StandardEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createStandard mutation +""" +type StandardCreatePayload { + """ + Created standard + """ + standard: Standard! +} +""" +Return response for deleteStandard mutation +""" +type StandardDeletePayload { + """ + Deleted standard ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type StandardEdge { + """ + The item at the end of the edge. + """ + node: Standard + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type StandardHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: StandardHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map +} +""" +A connection to a list of items. +""" +type StandardHistoryConnection { + """ + A list of edges. + """ + edges: [StandardHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type StandardHistoryEdge { + """ + The item at the end of the edge. + """ + node: StandardHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +StandardHistoryOpType is enum for the field operation +""" +enum StandardHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +StandardHistoryWhereInput is used for filtering StandardHistory objects. +Input was generated by ent. +""" +input StandardHistoryWhereInput { + not: StandardHistoryWhereInput + and: [StandardHistoryWhereInput!] + or: [StandardHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: StandardHistoryOpType + operationNEQ: StandardHistoryOpType + operationIn: [StandardHistoryOpType!] + operationNotIn: [StandardHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + standard_type field predicates + """ + standardType: String + standardTypeNEQ: String + standardTypeIn: [String!] + standardTypeNotIn: [String!] + standardTypeGT: String + standardTypeGTE: String + standardTypeLT: String + standardTypeLTE: String + standardTypeContains: String + standardTypeHasPrefix: String + standardTypeHasSuffix: String + standardTypeIsNil: Boolean + standardTypeNotNil: Boolean + standardTypeEqualFold: String + standardTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +type StandardSearchResult { + standards: [Standard!] +} +""" +Return response for updateStandard mutation +""" +type StandardUpdatePayload { + """ + Updated standard + """ + standard: Standard! +} +""" +StandardWhereInput is used for filtering Standard objects. +Input was generated by ent. +""" +input StandardWhereInput { + not: StandardWhereInput + and: [StandardWhereInput!] + or: [StandardWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - Search across APIToken objects + created_by field predicates """ - adminAPITokenSearch( - """ - Search query - """ - query: String! - ): APITokenSearchResult + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - Search across Contact objects + updated_by field predicates """ - adminContactSearch( - """ - Search query - """ - query: String! - ): ContactSearchResult + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - Search across DocumentData objects + deleted_at field predicates """ - adminDocumentDataSearch( - """ - Search query - """ - query: String! - ): DocumentDataSearchResult + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - Search across Entitlement objects + deleted_by field predicates """ - adminEntitlementSearch( - """ - Search query - """ - query: String! - ): EntitlementSearchResult + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - Search across EntitlementPlan objects + name field predicates """ - adminEntitlementPlanSearch( - """ - Search query - """ - query: String! - ): EntitlementPlanSearchResult + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - Search across EntitlementPlanFeature objects + description field predicates """ - adminEntitlementPlanFeatureSearch( - """ - Search query - """ - query: String! - ): EntitlementPlanFeatureSearchResult + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - Search across Entity objects + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String """ - adminEntitySearch( - """ - Search query - """ - query: String! - ): EntitySearchResult + status field predicates """ - Search across EntityType objects + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - adminEntityTypeSearch( - """ - Search query - """ - query: String! - ): EntityTypeSearchResult + standard_type field predicates + """ + standardType: String + standardTypeNEQ: String + standardTypeIn: [String!] + standardTypeNotIn: [String!] + standardTypeGT: String + standardTypeGTE: String + standardTypeLT: String + standardTypeLTE: String + standardTypeContains: String + standardTypeHasPrefix: String + standardTypeHasSuffix: String + standardTypeIsNil: Boolean + standardTypeNotNil: Boolean + standardTypeEqualFold: String + standardTypeContainsFold: String """ - Search across Event objects + version field predicates """ - adminEventSearch( - """ - Search query - """ - query: String! - ): EventSearchResult + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - Search across Feature objects + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + controlobjectives edge predicates + """ + hasControlobjectives: Boolean + hasControlobjectivesWith: [ControlObjectiveWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + actionplans edge predicates + """ + hasActionplans: Boolean + hasActionplansWith: [ActionPlanWhereInput!] +} +type Subcontrol implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - adminFeatureSearch( - """ - Search query - """ - query: String! - ): FeatureSearchResult + tags associated with the object """ - Search across File objects + tags: [String!] """ - adminFileSearch( - """ - Search query - """ - query: String! - ): FileSearchResult + the name of the subcontrol """ - Search across Group objects + name: String! """ - adminGroupSearch( - """ - Search query - """ - query: String! - ): GroupSearchResult + description of the subcontrol """ - Search across GroupSetting objects + description: String """ - adminGroupSettingSearch( - """ - Search query - """ - query: String! - ): GroupSettingSearchResult + status of the subcontrol """ - Search across Integration objects + status: String """ - adminIntegrationSearch( - """ - Search query - """ - query: String! - ): IntegrationSearchResult + type of the subcontrol """ - Search across OauthProvider objects + subcontrolType: String """ - adminOauthProviderSearch( - """ - Search query - """ - query: String! - ): OauthProviderSearchResult + version of the control """ - Search across OhAuthTooToken objects + version: String """ - adminOhAuthTooTokenSearch( - """ - Search query - """ - query: String! - ): OhAuthTooTokenSearchResult + number of the subcontrol + """ + subcontrolNumber: String + """ + subcontrol family """ - Search across Organization objects + family: String """ - adminOrganizationSearch( - """ - Search query - """ - query: String! - ): OrganizationSearchResult + subcontrol class """ - Search across OrganizationSetting objects + class: String """ - adminOrganizationSettingSearch( - """ - Search query - """ - query: String! - ): OrganizationSettingSearchResult + source of the control, e.g. framework, template, user-defined, etc. """ - Search across PersonalAccessToken objects + source: String """ - adminPersonalAccessTokenSearch( - """ - Search query - """ - query: String! - ): PersonalAccessTokenSearchResult + mapped frameworks that the subcontrol is part of """ - Search across Subscriber objects + mappedFrameworks: String """ - adminSubscriberSearch( - """ - Search query - """ - query: String! - ): SubscriberSearchResult + implementation evidence of the subcontrol """ - Search across TFASetting objects + implementationEvidence: String """ - adminTFASettingSearch( - """ - Search query - """ - query: String! - ): TFASettingSearchResult + implementation status """ - Search across Template objects + implementationStatus: String """ - adminTemplateSearch( - """ - Search query - """ - query: String! - ): TemplateSearchResult + date the subcontrol was implemented """ - Search across User objects + implementationDate: Time """ - adminUserSearch( - """ - Search query - """ - query: String! - ): UserSearchResult + implementation verification """ - Search across UserSetting objects + implementationVerification: String """ - adminUserSettingSearch( - """ - Search query - """ - query: String! - ): UserSettingSearchResult + date the subcontrol implementation was verified """ - Search across Webhook objects + implementationVerificationDate: Time """ - adminWebhookSearch( - """ - Search query - """ - query: String! - ): WebhookSearchResult + json data details of the subcontrol """ - Look up apiToken by ID + details: Map + control: [Control!] + user: [User!] + notes: Note +} +""" +Return response for createBulkSubcontrol mutation +""" +type SubcontrolBulkCreatePayload { """ - apiToken( - """ - ID of the apiToken - """ - id: ID! - ): APIToken! - auditLogs( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for AuditLogs returned from the connection. - """ - where: AuditLogWhereInput - ): AuditLogConnection! + Created subcontrols """ - Look up contact by ID + subcontrols: [Subcontrol!] +} +""" +A connection to a list of items. +""" +type SubcontrolConnection { """ - contact( - """ - ID of the contact - """ - id: ID! - ): Contact! + A list of edges. """ - Look up documentData by ID + edges: [SubcontrolEdge] """ - documentData( - """ - ID of the documentData - """ - id: ID! - ): DocumentData! + Information to aid in pagination. """ - Look up entitlement by ID + pageInfo: PageInfo! """ - entitlement( - """ - ID of the entitlement - """ - id: ID! - ): Entitlement! + Identifies the total count of items in the connection. """ - Look up entitlementPlan by ID + totalCount: Int! +} +""" +Return response for createSubcontrol mutation +""" +type SubcontrolCreatePayload { """ - entitlementPlan( - """ - ID of the entitlementPlan - """ - id: ID! - ): EntitlementPlan! + Created subcontrol """ - Look up entitlementPlanFeature by ID + subcontrol: Subcontrol! +} +""" +Return response for deleteSubcontrol mutation +""" +type SubcontrolDeletePayload { """ - entitlementPlanFeature( - """ - ID of the entitlementPlanFeature - """ - id: ID! - ): EntitlementPlanFeature! + Deleted subcontrol ID """ - Look up entity by ID + deletedID: ID! +} +""" +An edge in a connection. +""" +type SubcontrolEdge { """ - entity( - """ - ID of the entity - """ - id: ID! - ): Entity! + The item at the end of the edge. """ - Look up entityType by ID + node: Subcontrol """ - entityType( - """ - ID of the entityType - """ - id: ID! - ): EntityType! + A cursor for use in pagination. """ - Look up event by ID + cursor: Cursor! +} +type SubcontrolHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: SubcontrolHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - event( - """ - ID of the event - """ - id: ID! - ): Event! + tags associated with the object """ - Look up feature by ID + tags: [String!] """ - feature( - """ - ID of the feature - """ - id: ID! - ): Feature! + the name of the subcontrol """ - Look up file by ID + name: String! """ - file( - """ - ID of the file - """ - id: ID! - ): File! + description of the subcontrol """ - Look up group by ID + description: String """ - group( - """ - ID of the group - """ - id: ID! - ): Group! + status of the subcontrol """ - Look up groupMembership by ID + status: String """ - groupMembership( - """ - ID of the groupMembership - """ - id: ID! - ): GroupMembership! + type of the subcontrol """ - Look up groupSetting by ID + subcontrolType: String """ - groupSetting( - """ - ID of the groupSetting - """ - id: ID! - ): GroupSetting! + version of the control """ - Look up hush by ID + version: String """ - hush( - """ - ID of the hush - """ - id: ID! - ): Hush! + number of the subcontrol """ - Look up integration by ID + subcontrolNumber: String """ - integration( - """ - ID of the integration - """ - id: ID! - ): Integration! + subcontrol family """ - Look up invite by ID + family: String """ - invite( - """ - ID of the invite - """ - id: ID! - ): Invite! + subcontrol class + """ + class: String + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String """ - Look up oauthProvider by ID + implementation evidence of the subcontrol """ - oauthProvider( - """ - ID of the oauthProvider - """ - id: ID! - ): OauthProvider! + implementationEvidence: String """ - Look up ohAuthTooToken by ID + implementation status """ - ohAuthTooToken( - """ - ID of the ohAuthTooToken - """ - id: ID! - ): OhAuthTooToken! + implementationStatus: String """ - Look up organization by ID + date the subcontrol was implemented """ - organization( - """ - ID of the organization - """ - id: ID! - ): Organization! + implementationDate: Time """ - Look up organizationSetting by ID + implementation verification """ - organizationSetting( - """ - ID of the organizationSetting - """ - id: ID! - ): OrganizationSetting! + implementationVerification: String """ - Look up orgMembership by ID + date the subcontrol implementation was verified """ - orgMembership( - """ - ID of the orgMembership - """ - id: ID! - ): OrgMembership! + implementationVerificationDate: Time """ - Look up personalAccessToken by ID + json data details of the subcontrol """ - personalAccessToken( - """ - ID of the personalAccessToken - """ - id: ID! - ): PersonalAccessToken! + details: Map +} +""" +A connection to a list of items. +""" +type SubcontrolHistoryConnection { """ - Search across APIToken objects + A list of edges. """ - apiTokenSearch( - """ - Search query - """ - query: String! - ): APITokenSearchResult + edges: [SubcontrolHistoryEdge] """ - Search across Contact objects + Information to aid in pagination. """ - contactSearch( - """ - Search query - """ - query: String! - ): ContactSearchResult + pageInfo: PageInfo! """ - Search across DocumentData objects + Identifies the total count of items in the connection. """ - documentDataSearch( - """ - Search query - """ - query: String! - ): DocumentDataSearchResult + totalCount: Int! +} +""" +An edge in a connection. +""" +type SubcontrolHistoryEdge { """ - Search across Entitlement objects + The item at the end of the edge. """ - entitlementSearch( - """ - Search query - """ - query: String! - ): EntitlementSearchResult + node: SubcontrolHistory """ - Search across EntitlementPlan objects + A cursor for use in pagination. """ - entitlementPlanSearch( - """ - Search query - """ - query: String! - ): EntitlementPlanSearchResult + cursor: Cursor! +} +""" +SubcontrolHistoryOpType is enum for the field operation +""" +enum SubcontrolHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +SubcontrolHistoryWhereInput is used for filtering SubcontrolHistory objects. +Input was generated by ent. +""" +input SubcontrolHistoryWhereInput { + not: SubcontrolHistoryWhereInput + and: [SubcontrolHistoryWhereInput!] + or: [SubcontrolHistoryWhereInput!] """ - Search across EntitlementPlanFeature objects + id field predicates """ - entitlementPlanFeatureSearch( - """ - Search query - """ - query: String! - ): EntitlementPlanFeatureSearchResult + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - Search across Entity objects + history_time field predicates """ - entitySearch( - """ - Search query - """ - query: String! - ): EntitySearchResult + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time """ - Search across EntityType objects + ref field predicates """ - entityTypeSearch( - """ - Search query - """ - query: String! - ): EntityTypeSearchResult + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String """ - Search across Event objects + operation field predicates """ - eventSearch( - """ - Search query - """ - query: String! - ): EventSearchResult + operation: SubcontrolHistoryOpType + operationNEQ: SubcontrolHistoryOpType + operationIn: [SubcontrolHistoryOpType!] + operationNotIn: [SubcontrolHistoryOpType!] """ - Search across Feature objects + created_at field predicates """ - featureSearch( - """ - Search query - """ - query: String! - ): FeatureSearchResult + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - Search across File objects + updated_at field predicates """ - fileSearch( - """ - Search query - """ - query: String! - ): FileSearchResult + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - Search across Group objects + created_by field predicates """ - groupSearch( - """ - Search query - """ - query: String! - ): GroupSearchResult + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - Search across GroupSetting objects + updated_by field predicates """ - groupSettingSearch( - """ - Search query - """ - query: String! - ): GroupSettingSearchResult + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - Search across Integration objects + deleted_by field predicates """ - integrationSearch( - """ - Search query - """ - query: String! - ): IntegrationSearchResult + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - Search across OauthProvider objects + name field predicates """ - oauthProviderSearch( - """ - Search query - """ - query: String! - ): OauthProviderSearchResult + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - Search across OhAuthTooToken objects + description field predicates """ - ohAuthTooTokenSearch( - """ - Search query - """ - query: String! - ): OhAuthTooTokenSearchResult + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - Search across Organization objects + status field predicates """ - organizationSearch( - """ - Search query - """ - query: String! - ): OrganizationSearchResult + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - Search across OrganizationSetting objects + subcontrol_type field predicates + """ + subcontrolType: String + subcontrolTypeNEQ: String + subcontrolTypeIn: [String!] + subcontrolTypeNotIn: [String!] + subcontrolTypeGT: String + subcontrolTypeGTE: String + subcontrolTypeLT: String + subcontrolTypeLTE: String + subcontrolTypeContains: String + subcontrolTypeHasPrefix: String + subcontrolTypeHasSuffix: String + subcontrolTypeIsNil: Boolean + subcontrolTypeNotNil: Boolean + subcontrolTypeEqualFold: String + subcontrolTypeContainsFold: String """ - organizationSettingSearch( - """ - Search query - """ - query: String! - ): OrganizationSettingSearchResult + version field predicates """ - Search across PersonalAccessToken objects + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - personalAccessTokenSearch( - """ - Search query - """ - query: String! - ): PersonalAccessTokenSearchResult + subcontrol_number field predicates + """ + subcontrolNumber: String + subcontrolNumberNEQ: String + subcontrolNumberIn: [String!] + subcontrolNumberNotIn: [String!] + subcontrolNumberGT: String + subcontrolNumberGTE: String + subcontrolNumberLT: String + subcontrolNumberLTE: String + subcontrolNumberContains: String + subcontrolNumberHasPrefix: String + subcontrolNumberHasSuffix: String + subcontrolNumberIsNil: Boolean + subcontrolNumberNotNil: Boolean + subcontrolNumberEqualFold: String + subcontrolNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + implementation_evidence field predicates + """ + implementationEvidence: String + implementationEvidenceNEQ: String + implementationEvidenceIn: [String!] + implementationEvidenceNotIn: [String!] + implementationEvidenceGT: String + implementationEvidenceGTE: String + implementationEvidenceLT: String + implementationEvidenceLTE: String + implementationEvidenceContains: String + implementationEvidenceHasPrefix: String + implementationEvidenceHasSuffix: String + implementationEvidenceIsNil: Boolean + implementationEvidenceNotNil: Boolean + implementationEvidenceEqualFold: String + implementationEvidenceContainsFold: String + """ + implementation_status field predicates + """ + implementationStatus: String + implementationStatusNEQ: String + implementationStatusIn: [String!] + implementationStatusNotIn: [String!] + implementationStatusGT: String + implementationStatusGTE: String + implementationStatusLT: String + implementationStatusLTE: String + implementationStatusContains: String + implementationStatusHasPrefix: String + implementationStatusHasSuffix: String + implementationStatusIsNil: Boolean + implementationStatusNotNil: Boolean + implementationStatusEqualFold: String + implementationStatusContainsFold: String + """ + implementation_date field predicates + """ + implementationDate: Time + implementationDateNEQ: Time + implementationDateIn: [Time!] + implementationDateNotIn: [Time!] + implementationDateGT: Time + implementationDateGTE: Time + implementationDateLT: Time + implementationDateLTE: Time + implementationDateIsNil: Boolean + implementationDateNotNil: Boolean + """ + implementation_verification field predicates + """ + implementationVerification: String + implementationVerificationNEQ: String + implementationVerificationIn: [String!] + implementationVerificationNotIn: [String!] + implementationVerificationGT: String + implementationVerificationGTE: String + implementationVerificationLT: String + implementationVerificationLTE: String + implementationVerificationContains: String + implementationVerificationHasPrefix: String + implementationVerificationHasSuffix: String + implementationVerificationIsNil: Boolean + implementationVerificationNotNil: Boolean + implementationVerificationEqualFold: String + implementationVerificationContainsFold: String + """ + implementation_verification_date field predicates + """ + implementationVerificationDate: Time + implementationVerificationDateNEQ: Time + implementationVerificationDateIn: [Time!] + implementationVerificationDateNotIn: [Time!] + implementationVerificationDateGT: Time + implementationVerificationDateGTE: Time + implementationVerificationDateLT: Time + implementationVerificationDateLTE: Time + implementationVerificationDateIsNil: Boolean + implementationVerificationDateNotNil: Boolean +} +type SubcontrolSearchResult { + subcontrols: [Subcontrol!] +} +""" +Return response for updateSubcontrol mutation +""" +type SubcontrolUpdatePayload { + """ + Updated subcontrol + """ + subcontrol: Subcontrol! +} +""" +SubcontrolWhereInput is used for filtering Subcontrol objects. +Input was generated by ent. +""" +input SubcontrolWhereInput { + not: SubcontrolWhereInput + and: [SubcontrolWhereInput!] + or: [SubcontrolWhereInput!] """ - Search across Subscriber objects + id field predicates """ - subscriberSearch( - """ - Search query - """ - query: String! - ): SubscriberSearchResult + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - Search across TFASetting objects + created_at field predicates """ - tFASettingSearch( - """ - Search query - """ - query: String! - ): TFASettingSearchResult + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - Search across Template objects + updated_at field predicates """ - templateSearch( - """ - Search query - """ - query: String! - ): TemplateSearchResult + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - Search across User objects + created_by field predicates """ - userSearch( - """ - Search query - """ - query: String! - ): UserSearchResult + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - Search across UserSetting objects + updated_by field predicates """ - userSettingSearch( - """ - Search query - """ - query: String! - ): UserSettingSearchResult + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - Search across Webhook objects + deleted_at field predicates """ - webhookSearch( - """ - Search query - """ - query: String! - ): WebhookSearchResult + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - Search across all objects + deleted_by field predicates """ - search( - """ - Search query - """ - query: String! - ): SearchResultConnection + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - Admin search across all objects + name field predicates """ - adminSearch( - """ - Search query - """ - query: String! - ): SearchResultConnection + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - Look up subscriber by Email + description field predicates """ - subscriber( - """ - Email of the subscriber - """ - email: String! - ): Subscriber! + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - Look up template by ID + status field predicates """ - template( - """ - ID of the template - """ - id: ID! - ): Template! + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - Look up tfaSetting for the current user + subcontrol_type field predicates + """ + subcontrolType: String + subcontrolTypeNEQ: String + subcontrolTypeIn: [String!] + subcontrolTypeNotIn: [String!] + subcontrolTypeGT: String + subcontrolTypeGTE: String + subcontrolTypeLT: String + subcontrolTypeLTE: String + subcontrolTypeContains: String + subcontrolTypeHasPrefix: String + subcontrolTypeHasSuffix: String + subcontrolTypeIsNil: Boolean + subcontrolTypeNotNil: Boolean + subcontrolTypeEqualFold: String + subcontrolTypeContainsFold: String """ - tfaSetting( - """ - ID of the tfaSetting - """ - id: ID - ): TFASetting! + version field predicates """ - Look up user by ID + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - user( - """ - ID of the user - """ - id: ID! - ): User! + subcontrol_number field predicates + """ + subcontrolNumber: String + subcontrolNumberNEQ: String + subcontrolNumberIn: [String!] + subcontrolNumberNotIn: [String!] + subcontrolNumberGT: String + subcontrolNumberGTE: String + subcontrolNumberLT: String + subcontrolNumberLTE: String + subcontrolNumberContains: String + subcontrolNumberHasPrefix: String + subcontrolNumberHasSuffix: String + subcontrolNumberIsNil: Boolean + subcontrolNumberNotNil: Boolean + subcontrolNumberEqualFold: String + subcontrolNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + implementation_evidence field predicates + """ + implementationEvidence: String + implementationEvidenceNEQ: String + implementationEvidenceIn: [String!] + implementationEvidenceNotIn: [String!] + implementationEvidenceGT: String + implementationEvidenceGTE: String + implementationEvidenceLT: String + implementationEvidenceLTE: String + implementationEvidenceContains: String + implementationEvidenceHasPrefix: String + implementationEvidenceHasSuffix: String + implementationEvidenceIsNil: Boolean + implementationEvidenceNotNil: Boolean + implementationEvidenceEqualFold: String + implementationEvidenceContainsFold: String + """ + implementation_status field predicates + """ + implementationStatus: String + implementationStatusNEQ: String + implementationStatusIn: [String!] + implementationStatusNotIn: [String!] + implementationStatusGT: String + implementationStatusGTE: String + implementationStatusLT: String + implementationStatusLTE: String + implementationStatusContains: String + implementationStatusHasPrefix: String + implementationStatusHasSuffix: String + implementationStatusIsNil: Boolean + implementationStatusNotNil: Boolean + implementationStatusEqualFold: String + implementationStatusContainsFold: String + """ + implementation_date field predicates + """ + implementationDate: Time + implementationDateNEQ: Time + implementationDateIn: [Time!] + implementationDateNotIn: [Time!] + implementationDateGT: Time + implementationDateGTE: Time + implementationDateLT: Time + implementationDateLTE: Time + implementationDateIsNil: Boolean + implementationDateNotNil: Boolean + """ + implementation_verification field predicates + """ + implementationVerification: String + implementationVerificationNEQ: String + implementationVerificationIn: [String!] + implementationVerificationNotIn: [String!] + implementationVerificationGT: String + implementationVerificationGTE: String + implementationVerificationLT: String + implementationVerificationLTE: String + implementationVerificationContains: String + implementationVerificationHasPrefix: String + implementationVerificationHasSuffix: String + implementationVerificationIsNil: Boolean + implementationVerificationNotNil: Boolean + implementationVerificationEqualFold: String + implementationVerificationContainsFold: String + """ + implementation_verification_date field predicates + """ + implementationVerificationDate: Time + implementationVerificationDateNEQ: Time + implementationVerificationDateIn: [Time!] + implementationVerificationDateNotIn: [Time!] + implementationVerificationDateGT: Time + implementationVerificationDateGTE: Time + implementationVerificationDateLT: Time + implementationVerificationDateLTE: Time + implementationVerificationDateIsNil: Boolean + implementationVerificationDateNotNil: Boolean + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] """ - Look up userSetting by ID + user edge predicates """ - userSetting( - """ - ID of the userSetting - """ - id: ID! - ): UserSetting! + hasUser: Boolean + hasUserWith: [UserWhereInput!] """ - Look up webhook by ID + notes edge predicates """ - webhook( - """ - ID of the webhook - """ - id: ID! - ): Webhook! -} -union SearchResult = APITokenSearchResult | ContactSearchResult | DocumentDataSearchResult | EntitlementSearchResult | EntitlementPlanSearchResult | EntitlementPlanFeatureSearchResult | EntitySearchResult | EntityTypeSearchResult | EventSearchResult | FeatureSearchResult | FileSearchResult | GroupSearchResult | GroupSettingSearchResult | IntegrationSearchResult | OauthProviderSearchResult | OhAuthTooTokenSearchResult | OrganizationSearchResult | OrganizationSettingSearchResult | PersonalAccessTokenSearchResult | SubscriberSearchResult | TFASettingSearchResult | TemplateSearchResult | UserSearchResult | UserSettingSearchResult | WebhookSearchResult -type SearchResultConnection { - page: PageInfo! - nodes: [SearchResult!]! + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] } type Subscriber implements Node { id: ID! @@ -19652,10 +28588,213 @@ input UpdateAPITokenInput { clearOwner: Boolean } """ -UpdateContactInput is used for update Contact object. +UpdateActionPlanInput is used for update ActionPlan object. +Input was generated by ent. +""" +input UpdateActionPlanInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the action plan + """ + name: String + """ + description of the action plan + """ + description: String + clearDescription: Boolean + """ + status of the action plan + """ + status: String + clearStatus: Boolean + """ + due date of the action plan + """ + dueDate: Time + clearDueDate: Boolean + """ + priority of the action plan + """ + priority: String + clearPriority: Boolean + """ + source of the action plan + """ + source: String + clearSource: Boolean + """ + json data including details of the action plan + """ + details: Map + clearDetails: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisk: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean +} +""" +UpdateContactInput is used for update Contact object. +Input was generated by ent. +""" +input UpdateContactInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the full name of the contact + """ + fullName: String + """ + the title of the contact + """ + title: String + clearTitle: Boolean + """ + the company of the contact + """ + company: String + clearCompany: Boolean + """ + the email of the contact + """ + email: String + clearEmail: Boolean + """ + the phone number of the contact + """ + phoneNumber: String + clearPhoneNumber: Boolean + """ + the address of the contact + """ + address: String + clearAddress: Boolean + """ + status of the contact + """ + status: ContactUserStatus + ownerID: ID + clearOwner: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntities: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateControlInput is used for update Control object. +Input was generated by ent. +""" +input UpdateControlInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the control + """ + name: String + """ + description of the control + """ + description: String + clearDescription: Boolean + """ + status of the control + """ + status: String + clearStatus: Boolean + """ + type of the control + """ + controlType: String + clearControlType: Boolean + """ + version of the control + """ + version: String + clearVersion: Boolean + """ + control number or identifier + """ + controlNumber: String + clearControlNumber: Boolean + """ + family associated with the control + """ + family: String + clearFamily: Boolean + """ + class associated with the control + """ + class: String + clearClass: Boolean + """ + source of the control, e.g. framework, template, custom, etc. + """ + source: String + clearSource: Boolean + """ + which control objectives are satisfied by the control + """ + satisfies: String + clearSatisfies: Boolean + """ + mapped frameworks + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + json data including details of the control + """ + details: Map + clearDetails: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addControlobjectiveIDs: [ID!] + removeControlobjectiveIDs: [ID!] + clearControlobjectives: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addActionplanIDs: [ID!] + removeActionplanIDs: [ID!] + clearActionplans: Boolean +} +""" +UpdateControlObjectiveInput is used for update ControlObjective object. Input was generated by ent. """ -input UpdateContactInput { +input UpdateControlObjectiveInput { """ tags associated with the object """ @@ -19663,46 +28802,80 @@ input UpdateContactInput { appendTags: [String!] clearTags: Boolean """ - the full name of the contact + the name of the control objective """ - fullName: String + name: String """ - the title of the contact + description of the control objective """ - title: String - clearTitle: Boolean + description: String + clearDescription: Boolean """ - the company of the contact + status of the control objective """ - company: String - clearCompany: Boolean + status: String + clearStatus: Boolean """ - the email of the contact + type of the control objective """ - email: String - clearEmail: Boolean + controlObjectiveType: String + clearControlObjectiveType: Boolean """ - the phone number of the contact + version of the control objective """ - phoneNumber: String - clearPhoneNumber: Boolean + version: String + clearVersion: Boolean """ - the address of the contact + number of the control objective """ - address: String - clearAddress: Boolean + controlNumber: String + clearControlNumber: Boolean """ - status of the contact + family of the control objective """ - status: ContactUserStatus - ownerID: ID - clearOwner: Boolean - addEntityIDs: [ID!] - removeEntityIDs: [ID!] - clearEntities: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean + family: String + clearFamily: Boolean + """ + class associated with the control objective + """ + class: String + clearClass: Boolean + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + clearSource: Boolean + """ + mapped frameworks + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + json data including details of the control objective + """ + details: Map + clearDetails: Boolean + addPolicyIDs: [ID!] + removePolicyIDs: [ID!] + clearPolicy: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean } """ UpdateDocumentDataInput is used for update DocumentData object. @@ -20263,6 +29436,68 @@ input UpdateIntegrationInput { clearWebhooks: Boolean } """ +UpdateInternalPolicyInput is used for update InternalPolicy object. +Input was generated by ent. +""" +input UpdateInternalPolicyInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the policy + """ + name: String + """ + description of the policy + """ + description: String + """ + status of the policy + """ + status: String + clearStatus: Boolean + """ + type of the policy + """ + policyType: String + clearPolicyType: Boolean + """ + version of the policy + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the policy + """ + background: String + clearBackground: Boolean + """ + json data for the policy document + """ + details: Map + clearDetails: Boolean + addControlobjectiveIDs: [ID!] + removeControlobjectiveIDs: [ID!] + clearControlobjectives: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean +} +""" UpdateInviteInput is used for update Invite object. Input was generated by ent. """ @@ -20288,6 +29523,49 @@ input UpdateInviteInput { clearEvents: Boolean } """ +UpdateNarrativeInput is used for update Narrative object. +Input was generated by ent. +""" +input UpdateNarrativeInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the narrative + """ + name: String + """ + the description of the narrative + """ + description: String + clearDescription: Boolean + """ + which controls are satisfied by the narrative + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the narrative document + """ + details: Map + clearDetails: Boolean + addPolicyIDs: [ID!] + removePolicyIDs: [ID!] + clearPolicy: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedure: Boolean + addControlobjectiveIDs: [ID!] + removeControlobjectiveIDs: [ID!] + clearControlobjective: Boolean +} +""" UpdateNoteInput is used for update Note object. Input was generated by ent. """ @@ -20306,6 +29584,9 @@ input UpdateNoteInput { clearOwner: Boolean entityID: ID clearEntity: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean } """ UpdateOauthProviderInput is used for update OauthProvider object. @@ -20589,6 +29870,316 @@ input UpdatePersonalAccessTokenInput { clearEvents: Boolean } """ +UpdateProcedureInput is used for update Procedure object. +Input was generated by ent. +""" +input UpdateProcedureInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the procedure + """ + name: String + """ + description of the procedure + """ + description: String + clearDescription: Boolean + """ + status of the procedure + """ + status: String + clearStatus: Boolean + """ + type of the procedure + """ + procedureType: String + clearProcedureType: Boolean + """ + version of the procedure + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the procedure + """ + background: String + clearBackground: Boolean + """ + which controls are satisfied by the procedure + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the procedure document + """ + details: Map + clearDetails: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addInternalpolicyIDs: [ID!] + removeInternalpolicyIDs: [ID!] + clearInternalpolicy: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean +} +""" +UpdateRiskInput is used for update Risk object. +Input was generated by ent. +""" +input UpdateRiskInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the risk + """ + name: String + """ + description of the risk + """ + description: String + clearDescription: Boolean + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + clearStatus: Boolean + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + clearRiskType: Boolean + """ + business costs associated with the risk + """ + businessCosts: String + clearBusinessCosts: Boolean + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + clearImpact: Boolean + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + clearLikelihood: Boolean + """ + mitigation for the risk + """ + mitigation: String + clearMitigation: Boolean + """ + which controls are satisfied by the risk + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the risk document + """ + details: Map + clearDetails: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedure: Boolean + addActionplanIDs: [ID!] + removeActionplanIDs: [ID!] + clearActionplans: Boolean +} +""" +UpdateStandardInput is used for update Standard object. +Input was generated by ent. +""" +input UpdateStandardInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String + """ + description of the standard + """ + description: String + clearDescription: Boolean + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + clearFamily: Boolean + """ + status of the standard - active, deprecated, etc. + """ + status: String + clearStatus: Boolean + """ + type of the standard - security, privacy, etc. + """ + standardType: String + clearStandardType: Boolean + """ + version of the standard + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the standard + """ + background: String + clearBackground: Boolean + """ + which controls are satisfied by the standard + """ + satisfies: String + clearSatisfies: Boolean + """ + json data with details of the standard + """ + details: Map + clearDetails: Boolean + addControlobjectiveIDs: [ID!] + removeControlobjectiveIDs: [ID!] + clearControlobjectives: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addActionplanIDs: [ID!] + removeActionplanIDs: [ID!] + clearActionplans: Boolean +} +""" +UpdateSubcontrolInput is used for update Subcontrol object. +Input was generated by ent. +""" +input UpdateSubcontrolInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the subcontrol + """ + name: String + """ + description of the subcontrol + """ + description: String + clearDescription: Boolean + """ + status of the subcontrol + """ + status: String + clearStatus: Boolean + """ + type of the subcontrol + """ + subcontrolType: String + clearSubcontrolType: Boolean + """ + version of the control + """ + version: String + clearVersion: Boolean + """ + number of the subcontrol + """ + subcontrolNumber: String + clearSubcontrolNumber: Boolean + """ + subcontrol family + """ + family: String + clearFamily: Boolean + """ + subcontrol class + """ + class: String + clearClass: Boolean + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + clearSource: Boolean + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + clearImplementationEvidence: Boolean + """ + implementation status + """ + implementationStatus: String + clearImplementationStatus: Boolean + """ + date the subcontrol was implemented + """ + implementationDate: Time + clearImplementationDate: Boolean + """ + implementation verification + """ + implementationVerification: String + clearImplementationVerification: Boolean + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + clearImplementationVerificationDate: Boolean + """ + json data details of the subcontrol + """ + details: Map + clearDetails: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + notesID: ID + clearNotes: Boolean +} +""" UpdateSubscriberInput is used for update Subscriber object. Input was generated by ent. """ @@ -20770,6 +30361,12 @@ input UpdateUserInput { addEventIDs: [ID!] removeEventIDs: [ID!] clearEvents: Boolean + addActionplanIDs: [ID!] + removeActionplanIDs: [ID!] + clearActionplans: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean } """ UpdateUserSettingInput is used for update UserSetting object. @@ -20934,6 +30531,8 @@ type User implements Node { files: [File!] file: File events: [Event!] + actionplans: [ActionPlan!] + subcontrols: [Subcontrol!] groupMemberships: [GroupMembership!] orgMemberships: [OrgMembership!] } @@ -22487,6 +32086,16 @@ input UserWhereInput { hasEvents: Boolean hasEventsWith: [EventWhereInput!] """ + actionplans edge predicates + """ + hasActionplans: Boolean + hasActionplansWith: [ActionPlanWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ group_memberships edge predicates """ hasGroupMemberships: Boolean diff --git a/schema/actionplan.graphql b/schema/actionplan.graphql new file mode 100644 index 00000000..9f1a70c4 --- /dev/null +++ b/schema/actionplan.graphql @@ -0,0 +1,103 @@ +extend type Query { + """ + Look up actionPlan by ID + """ + actionPlan( + """ + ID of the actionPlan + """ + id: ID! + ): ActionPlan! +} + +extend type Mutation{ + """ + Create a new actionPlan + """ + createActionPlan( + """ + values of the actionPlan + """ + input: CreateActionPlanInput! + ): ActionPlanCreatePayload! + """ + Create multiple new actionPlans + """ + createBulkActionPlan( + """ + values of the actionPlan + """ + input: [CreateActionPlanInput!] + ): ActionPlanBulkCreatePayload! + """ + Create multiple new actionPlans via file upload + """ + createBulkCSVActionPlan( + """ + csv file containing values of the actionPlan + """ + input: Upload! + ): ActionPlanBulkCreatePayload! + """ + Update an existing actionPlan + """ + updateActionPlan( + """ + ID of the actionPlan + """ + id: ID! + """ + New values for the actionPlan + """ + input: UpdateActionPlanInput! + ): ActionPlanUpdatePayload! + """ + Delete an existing actionPlan + """ + deleteActionPlan( + """ + ID of the actionPlan + """ + id: ID! + ): ActionPlanDeletePayload! +} + +""" +Return response for createActionPlan mutation +""" +type ActionPlanCreatePayload { + """ + Created actionPlan + """ + actionPlan: ActionPlan! +} + +""" +Return response for updateActionPlan mutation +""" +type ActionPlanUpdatePayload { + """ + Updated actionPlan + """ + actionPlan: ActionPlan! +} + +""" +Return response for deleteActionPlan mutation +""" +type ActionPlanDeletePayload { + """ + Deleted actionPlan ID + """ + deletedID: ID! +} + +""" +Return response for createBulkActionPlan mutation +""" +type ActionPlanBulkCreatePayload { + """ + Created actionPlans + """ + actionPlans: [ActionPlan!] +} \ No newline at end of file diff --git a/schema/adminsearch.graphql b/schema/adminsearch.graphql index c5da8ba6..c7bd91ed 100644 --- a/schema/adminsearch.graphql +++ b/schema/adminsearch.graphql @@ -9,6 +9,15 @@ extend type Query{ query: String! ): APITokenSearchResult """ + Search across ActionPlan objects + """ + adminActionPlanSearch( + """ + Search query + """ + query: String! + ): ActionPlanSearchResult + """ Search across Contact objects """ adminContactSearch( @@ -18,6 +27,24 @@ extend type Query{ query: String! ): ContactSearchResult """ + Search across Control objects + """ + adminControlSearch( + """ + Search query + """ + query: String! + ): ControlSearchResult + """ + Search across ControlObjective objects + """ + adminControlObjectiveSearch( + """ + Search query + """ + query: String! + ): ControlObjectiveSearchResult + """ Search across DocumentData objects """ adminDocumentDataSearch( @@ -126,6 +153,24 @@ extend type Query{ query: String! ): IntegrationSearchResult """ + Search across InternalPolicy objects + """ + adminInternalPolicySearch( + """ + Search query + """ + query: String! + ): InternalPolicySearchResult + """ + Search across Narrative objects + """ + adminNarrativeSearch( + """ + Search query + """ + query: String! + ): NarrativeSearchResult + """ Search across OauthProvider objects """ adminOauthProviderSearch( @@ -171,6 +216,42 @@ extend type Query{ query: String! ): PersonalAccessTokenSearchResult """ + Search across Procedure objects + """ + adminProcedureSearch( + """ + Search query + """ + query: String! + ): ProcedureSearchResult + """ + Search across Risk objects + """ + adminRiskSearch( + """ + Search query + """ + query: String! + ): RiskSearchResult + """ + Search across Standard objects + """ + adminStandardSearch( + """ + Search query + """ + query: String! + ): StandardSearchResult + """ + Search across Subcontrol objects + """ + adminSubcontrolSearch( + """ + Search query + """ + query: String! + ): SubcontrolSearchResult + """ Search across Subscriber objects """ adminSubscriberSearch( diff --git a/schema/control.graphql b/schema/control.graphql new file mode 100644 index 00000000..97b36880 --- /dev/null +++ b/schema/control.graphql @@ -0,0 +1,103 @@ +extend type Query { + """ + Look up control by ID + """ + control( + """ + ID of the control + """ + id: ID! + ): Control! +} + +extend type Mutation{ + """ + Create a new control + """ + createControl( + """ + values of the control + """ + input: CreateControlInput! + ): ControlCreatePayload! + """ + Create multiple new controls + """ + createBulkControl( + """ + values of the control + """ + input: [CreateControlInput!] + ): ControlBulkCreatePayload! + """ + Create multiple new controls via file upload + """ + createBulkCSVControl( + """ + csv file containing values of the control + """ + input: Upload! + ): ControlBulkCreatePayload! + """ + Update an existing control + """ + updateControl( + """ + ID of the control + """ + id: ID! + """ + New values for the control + """ + input: UpdateControlInput! + ): ControlUpdatePayload! + """ + Delete an existing control + """ + deleteControl( + """ + ID of the control + """ + id: ID! + ): ControlDeletePayload! +} + +""" +Return response for createControl mutation +""" +type ControlCreatePayload { + """ + Created control + """ + control: Control! +} + +""" +Return response for updateControl mutation +""" +type ControlUpdatePayload { + """ + Updated control + """ + control: Control! +} + +""" +Return response for deleteControl mutation +""" +type ControlDeletePayload { + """ + Deleted control ID + """ + deletedID: ID! +} + +""" +Return response for createBulkControl mutation +""" +type ControlBulkCreatePayload { + """ + Created controls + """ + controls: [Control!] +} \ No newline at end of file diff --git a/schema/controlobjective.graphql b/schema/controlobjective.graphql new file mode 100644 index 00000000..6ebf0688 --- /dev/null +++ b/schema/controlobjective.graphql @@ -0,0 +1,103 @@ +extend type Query { + """ + Look up controlObjective by ID + """ + controlObjective( + """ + ID of the controlObjective + """ + id: ID! + ): ControlObjective! +} + +extend type Mutation{ + """ + Create a new controlObjective + """ + createControlObjective( + """ + values of the controlObjective + """ + input: CreateControlObjectiveInput! + ): ControlObjectiveCreatePayload! + """ + Create multiple new controlObjectives + """ + createBulkControlObjective( + """ + values of the controlObjective + """ + input: [CreateControlObjectiveInput!] + ): ControlObjectiveBulkCreatePayload! + """ + Create multiple new controlObjectives via file upload + """ + createBulkCSVControlObjective( + """ + csv file containing values of the controlObjective + """ + input: Upload! + ): ControlObjectiveBulkCreatePayload! + """ + Update an existing controlObjective + """ + updateControlObjective( + """ + ID of the controlObjective + """ + id: ID! + """ + New values for the controlObjective + """ + input: UpdateControlObjectiveInput! + ): ControlObjectiveUpdatePayload! + """ + Delete an existing controlObjective + """ + deleteControlObjective( + """ + ID of the controlObjective + """ + id: ID! + ): ControlObjectiveDeletePayload! +} + +""" +Return response for createControlObjective mutation +""" +type ControlObjectiveCreatePayload { + """ + Created controlObjective + """ + controlObjective: ControlObjective! +} + +""" +Return response for updateControlObjective mutation +""" +type ControlObjectiveUpdatePayload { + """ + Updated controlObjective + """ + controlObjective: ControlObjective! +} + +""" +Return response for deleteControlObjective mutation +""" +type ControlObjectiveDeletePayload { + """ + Deleted controlObjective ID + """ + deletedID: ID! +} + +""" +Return response for createBulkControlObjective mutation +""" +type ControlObjectiveBulkCreatePayload { + """ + Created controlObjectives + """ + controlObjectives: [ControlObjective!] +} \ No newline at end of file diff --git a/schema/ent.graphql b/schema/ent.graphql index aef453a5..2a8d97e0 100644 --- a/schema/ent.graphql +++ b/schema/ent.graphql @@ -243,7 +243,7 @@ input APITokenWhereInput { hasOwner: Boolean hasOwnerWith: [OrganizationWhereInput!] } -type Contact implements Node { +type ActionPlan implements Node { id: ID! createdAt: Time updatedAt: Time @@ -256,49 +256,46 @@ type Contact implements Node { """ tags: [String!] """ - the organization id that owns the object - """ - ownerID: ID - """ - the full name of the contact + the name of the action plan """ - fullName: String! + name: String! """ - the title of the contact + description of the action plan """ - title: String + description: String """ - the company of the contact + status of the action plan """ - company: String + status: String """ - the email of the contact + due date of the action plan """ - email: String + dueDate: Time """ - the phone number of the contact + priority of the action plan """ - phoneNumber: String + priority: String """ - the address of the contact + source of the action plan """ - address: String + source: String """ - status of the contact + json data including details of the action plan """ - status: ContactUserStatus! - owner: Organization - entities: [Entity!] - files: [File!] + details: Map + standard: [Standard!] + risk: [Risk!] + control: [Control!] + user: [User!] } """ A connection to a list of items. """ -type ContactConnection { +type ActionPlanConnection { """ A list of edges. """ - edges: [ContactEdge] + edges: [ActionPlanEdge] """ Information to aid in pagination. """ @@ -311,21 +308,21 @@ type ContactConnection { """ An edge in a connection. """ -type ContactEdge { +type ActionPlanEdge { """ The item at the end of the edge. """ - node: Contact + node: ActionPlan """ A cursor for use in pagination. """ cursor: Cursor! } -type ContactHistory implements Node { +type ActionPlanHistory implements Node { id: ID! historyTime: Time! ref: String - operation: ContactHistoryOpType! + operation: ActionPlanHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -337,46 +334,42 @@ type ContactHistory implements Node { """ tags: [String!] """ - the organization id that owns the object - """ - ownerID: String - """ - the full name of the contact + the name of the action plan """ - fullName: String! + name: String! """ - the title of the contact + description of the action plan """ - title: String + description: String """ - the company of the contact + status of the action plan """ - company: String + status: String """ - the email of the contact + due date of the action plan """ - email: String + dueDate: Time """ - the phone number of the contact + priority of the action plan """ - phoneNumber: String + priority: String """ - the address of the contact + source of the action plan """ - address: String + source: String """ - status of the contact + json data including details of the action plan """ - status: ContactHistoryUserStatus! + details: Map } """ A connection to a list of items. """ -type ContactHistoryConnection { +type ActionPlanHistoryConnection { """ A list of edges. """ - edges: [ContactHistoryEdge] + edges: [ActionPlanHistoryEdge] """ Information to aid in pagination. """ @@ -389,42 +382,32 @@ type ContactHistoryConnection { """ An edge in a connection. """ -type ContactHistoryEdge { +type ActionPlanHistoryEdge { """ The item at the end of the edge. """ - node: ContactHistory + node: ActionPlanHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -ContactHistoryOpType is enum for the field operation +ActionPlanHistoryOpType is enum for the field operation """ -enum ContactHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum ActionPlanHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -ContactHistoryUserStatus is enum for the field status -""" -enum ContactHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { - ACTIVE - INACTIVE - DEACTIVATED - SUSPENDED - ONBOARDING -} -""" -ContactHistoryWhereInput is used for filtering ContactHistory objects. +ActionPlanHistoryWhereInput is used for filtering ActionPlanHistory objects. Input was generated by ent. """ -input ContactHistoryWhereInput { - not: ContactHistoryWhereInput - and: [ContactHistoryWhereInput!] - or: [ContactHistoryWhereInput!] +input ActionPlanHistoryWhereInput { + not: ActionPlanHistoryWhereInput + and: [ActionPlanHistoryWhereInput!] + or: [ActionPlanHistoryWhereInput!] """ id field predicates """ @@ -470,10 +453,10 @@ input ContactHistoryWhereInput { """ operation field predicates """ - operation: ContactHistoryOpType - operationNEQ: ContactHistoryOpType - operationIn: [ContactHistoryOpType!] - operationNotIn: [ContactHistoryOpType!] + operation: ActionPlanHistoryOpType + operationNEQ: ActionPlanHistoryOpType + operationIn: [ActionPlanHistoryOpType!] + operationNotIn: [ActionPlanHistoryOpType!] """ created_at field predicates """ @@ -568,194 +551,154 @@ input ContactHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + name field predicates """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - full_name field predicates + description field predicates """ - fullName: String - fullNameNEQ: String - fullNameIn: [String!] - fullNameNotIn: [String!] - fullNameGT: String - fullNameGTE: String - fullNameLT: String - fullNameLTE: String - fullNameContains: String - fullNameHasPrefix: String - fullNameHasSuffix: String - fullNameEqualFold: String - fullNameContainsFold: String + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - title field predicates + status field predicates """ - title: String - titleNEQ: String - titleIn: [String!] - titleNotIn: [String!] - titleGT: String - titleGTE: String - titleLT: String - titleLTE: String - titleContains: String - titleHasPrefix: String - titleHasSuffix: String - titleIsNil: Boolean - titleNotNil: Boolean - titleEqualFold: String - titleContainsFold: String + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - company field predicates + due_date field predicates + """ + dueDate: Time + dueDateNEQ: Time + dueDateIn: [Time!] + dueDateNotIn: [Time!] + dueDateGT: Time + dueDateGTE: Time + dueDateLT: Time + dueDateLTE: Time + dueDateIsNil: Boolean + dueDateNotNil: Boolean + """ + priority field predicates + """ + priority: String + priorityNEQ: String + priorityIn: [String!] + priorityNotIn: [String!] + priorityGT: String + priorityGTE: String + priorityLT: String + priorityLTE: String + priorityContains: String + priorityHasPrefix: String + priorityHasSuffix: String + priorityIsNil: Boolean + priorityNotNil: Boolean + priorityEqualFold: String + priorityContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String +} +""" +ActionPlanWhereInput is used for filtering ActionPlan objects. +Input was generated by ent. +""" +input ActionPlanWhereInput { + not: ActionPlanWhereInput + and: [ActionPlanWhereInput!] + or: [ActionPlanWhereInput!] """ - company: String - companyNEQ: String - companyIn: [String!] - companyNotIn: [String!] - companyGT: String - companyGTE: String - companyLT: String - companyLTE: String - companyContains: String - companyHasPrefix: String - companyHasSuffix: String - companyIsNil: Boolean - companyNotNil: Boolean - companyEqualFold: String - companyContainsFold: String + id field predicates """ - email field predicates + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - email: String - emailNEQ: String - emailIn: [String!] - emailNotIn: [String!] - emailGT: String - emailGTE: String - emailLT: String - emailLTE: String - emailContains: String - emailHasPrefix: String - emailHasSuffix: String - emailIsNil: Boolean - emailNotNil: Boolean - emailEqualFold: String - emailContainsFold: String + created_at field predicates """ - phone_number field predicates + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - phoneNumber: String - phoneNumberNEQ: String - phoneNumberIn: [String!] - phoneNumberNotIn: [String!] - phoneNumberGT: String - phoneNumberGTE: String - phoneNumberLT: String - phoneNumberLTE: String - phoneNumberContains: String - phoneNumberHasPrefix: String - phoneNumberHasSuffix: String - phoneNumberIsNil: Boolean - phoneNumberNotNil: Boolean - phoneNumberEqualFold: String - phoneNumberContainsFold: String + updated_at field predicates """ - address field predicates - """ - address: String - addressNEQ: String - addressIn: [String!] - addressNotIn: [String!] - addressGT: String - addressGTE: String - addressLT: String - addressLTE: String - addressContains: String - addressHasPrefix: String - addressHasSuffix: String - addressIsNil: Boolean - addressNotNil: Boolean - addressEqualFold: String - addressContainsFold: String - """ - status field predicates - """ - status: ContactHistoryUserStatus - statusNEQ: ContactHistoryUserStatus - statusIn: [ContactHistoryUserStatus!] - statusNotIn: [ContactHistoryUserStatus!] -} -""" -ContactUserStatus is enum for the field status -""" -enum ContactUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { - ACTIVE - INACTIVE - DEACTIVATED - SUSPENDED - ONBOARDING -} -""" -ContactWhereInput is used for filtering Contact objects. -Input was generated by ent. -""" -input ContactWhereInput { - not: ContactWhereInput - and: [ContactWhereInput!] - or: [ContactWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ created_by field predicates """ @@ -824,187 +767,225 @@ input ContactWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + due_date field predicates + """ + dueDate: Time + dueDateNEQ: Time + dueDateIn: [Time!] + dueDateNotIn: [Time!] + dueDateGT: Time + dueDateGTE: Time + dueDateLT: Time + dueDateLTE: Time + dueDateIsNil: Boolean + dueDateNotNil: Boolean + """ + priority field predicates + """ + priority: String + priorityNEQ: String + priorityIn: [String!] + priorityNotIn: [String!] + priorityGT: String + priorityGTE: String + priorityLT: String + priorityLTE: String + priorityContains: String + priorityHasPrefix: String + priorityHasSuffix: String + priorityIsNil: Boolean + priorityNotNil: Boolean + priorityEqualFold: String + priorityContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + risk edge predicates + """ + hasRisk: Boolean + hasRiskWith: [RiskWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] +} +type Contact implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object """ ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID """ - full_name field predicates + the full name of the contact """ - fullName: String - fullNameNEQ: String - fullNameIn: [String!] - fullNameNotIn: [String!] - fullNameGT: String - fullNameGTE: String - fullNameLT: String - fullNameLTE: String - fullNameContains: String - fullNameHasPrefix: String - fullNameHasSuffix: String - fullNameEqualFold: String - fullNameContainsFold: String + fullName: String! """ - title field predicates + the title of the contact """ title: String - titleNEQ: String - titleIn: [String!] - titleNotIn: [String!] - titleGT: String - titleGTE: String - titleLT: String - titleLTE: String - titleContains: String - titleHasPrefix: String - titleHasSuffix: String - titleIsNil: Boolean - titleNotNil: Boolean - titleEqualFold: String - titleContainsFold: String """ - company field predicates + the company of the contact """ company: String - companyNEQ: String - companyIn: [String!] - companyNotIn: [String!] - companyGT: String - companyGTE: String - companyLT: String - companyLTE: String - companyContains: String - companyHasPrefix: String - companyHasSuffix: String - companyIsNil: Boolean - companyNotNil: Boolean - companyEqualFold: String - companyContainsFold: String """ - email field predicates + the email of the contact """ email: String - emailNEQ: String - emailIn: [String!] - emailNotIn: [String!] - emailGT: String - emailGTE: String - emailLT: String - emailLTE: String - emailContains: String - emailHasPrefix: String - emailHasSuffix: String - emailIsNil: Boolean - emailNotNil: Boolean - emailEqualFold: String - emailContainsFold: String """ - phone_number field predicates + the phone number of the contact """ phoneNumber: String - phoneNumberNEQ: String - phoneNumberIn: [String!] - phoneNumberNotIn: [String!] - phoneNumberGT: String - phoneNumberGTE: String - phoneNumberLT: String - phoneNumberLTE: String - phoneNumberContains: String - phoneNumberHasPrefix: String - phoneNumberHasSuffix: String - phoneNumberIsNil: Boolean - phoneNumberNotNil: Boolean - phoneNumberEqualFold: String - phoneNumberContainsFold: String """ - address field predicates + the address of the contact """ address: String - addressNEQ: String - addressIn: [String!] - addressNotIn: [String!] - addressGT: String - addressGTE: String - addressLT: String - addressLTE: String - addressContains: String - addressHasPrefix: String - addressHasSuffix: String - addressIsNil: Boolean - addressNotNil: Boolean - addressEqualFold: String - addressContainsFold: String """ - status field predicates + status of the contact """ - status: ContactUserStatus - statusNEQ: ContactUserStatus - statusIn: [ContactUserStatus!] - statusNotIn: [ContactUserStatus!] + status: ContactUserStatus! + owner: Organization + entities: [Entity!] + files: [File!] +} +""" +A connection to a list of items. +""" +type ContactConnection { """ - owner edge predicates + A list of edges. """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + edges: [ContactEdge] """ - entities edge predicates + Information to aid in pagination. """ - hasEntities: Boolean - hasEntitiesWith: [EntityWhereInput!] + pageInfo: PageInfo! """ - files edge predicates + Identifies the total count of items in the connection. """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] + totalCount: Int! } """ -CreateAPITokenInput is used for create APIToken object. -Input was generated by ent. +An edge in a connection. """ -input CreateAPITokenInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name associated with the token - """ - name: String! +type ContactEdge { """ - when the token expires + The item at the end of the edge. """ - expiresAt: Time + node: Contact """ - a description of the token's purpose + A cursor for use in pagination. """ - description: String - scopes: [String!] - lastUsedAt: Time - ownerID: ID + cursor: Cursor! } -""" -CreateContactInput is used for create Contact object. -Input was generated by ent. -""" -input CreateContactInput { +type ContactHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ContactHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] """ + the organization id that owns the object + """ + ownerID: String + """ the full name of the contact """ fullName: String! @@ -1031,922 +1012,1318 @@ input CreateContactInput { """ status of the contact """ - status: ContactUserStatus - ownerID: ID - entityIDs: [ID!] - fileIDs: [ID!] + status: ContactHistoryUserStatus! } """ -CreateDocumentDataInput is used for create DocumentData object. -Input was generated by ent. +A connection to a list of items. """ -input CreateDocumentDataInput { +type ContactHistoryConnection { """ - tags associated with the object + A list of edges. """ - tags: [String!] + edges: [ContactHistoryEdge] """ - the json data of the document + Information to aid in pagination. """ - data: JSON! - ownerID: ID - templateID: ID! - entityIDs: [ID!] - fileIDs: [ID!] + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! } """ -CreateEntitlementInput is used for create Entitlement object. -Input was generated by ent. +An edge in a connection. """ -input CreateEntitlementInput { - """ - tags associated with the object - """ - tags: [String!] - """ - used to store references to external systems, e.g. Stripe - """ - externalCustomerID: String - """ - used to store references to external systems, e.g. Stripe - """ - externalSubscriptionID: String +type ContactHistoryEdge { """ - the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + The item at the end of the edge. """ - expiresAt: Time + node: ContactHistory """ - whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + A cursor for use in pagination. """ - cancelled: Boolean - ownerID: ID - planID: ID! - organizationID: ID! - eventIDs: [ID!] + cursor: Cursor! } """ -CreateEntitlementPlanFeatureInput is used for create EntitlementPlanFeature object. -Input was generated by ent. +ContactHistoryOpType is enum for the field operation """ -input CreateEntitlementPlanFeatureInput { - """ - tags associated with the object - """ - tags: [String!] - """ - metadata for the entitlement plan feature such as usage limits - """ - metadata: Map - ownerID: ID - planID: ID! - featureID: ID! - eventIDs: [ID!] +enum ContactHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE } """ -CreateEntitlementPlanInput is used for create EntitlementPlan object. -Input was generated by ent. +ContactHistoryUserStatus is enum for the field status """ -input CreateEntitlementPlanInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the displayed 'friendly' name of the plan - """ - displayName: String - """ - the unique name of the plan - """ - name: String! - """ - a description of the plan - """ - description: String - """ - the version of the plan - """ - version: String! - """ - metadata for the plan - """ - metadata: Map - ownerID: ID - entitlementIDs: [ID!] - baseFeatureIDs: [ID!] - eventIDs: [ID!] +enum ContactHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING } """ -CreateEntityInput is used for create Entity object. +ContactHistoryWhereInput is used for filtering ContactHistory objects. Input was generated by ent. """ -input CreateEntityInput { - """ - tags associated with the object - """ - tags: [String!] +input ContactHistoryWhereInput { + not: ContactHistoryWhereInput + and: [ContactHistoryWhereInput!] + or: [ContactHistoryWhereInput!] """ - the name of the entity + id field predicates """ - name: String + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - The entity's displayed 'friendly' name + history_time field predicates """ - displayName: String + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time """ - An optional description of the entity + ref field predicates """ - description: String + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String """ - domains associated with the entity + operation field predicates """ - domains: [String!] + operation: ContactHistoryOpType + operationNEQ: ContactHistoryOpType + operationIn: [ContactHistoryOpType!] + operationNotIn: [ContactHistoryOpType!] """ - status of the entity + created_at field predicates """ - status: String - ownerID: ID - contactIDs: [ID!] - documentIDs: [ID!] - noteIDs: [ID!] - fileIDs: [ID!] - entityTypeID: ID -} -""" -CreateEntityTypeInput is used for create EntityType object. -Input was generated by ent. -""" -input CreateEntityTypeInput { - """ - tags associated with the object - """ - tags: [String!] + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - the name of the entity + updated_at field predicates """ - name: String! - ownerID: ID - entityIDs: [ID!] -} -""" -CreateEventInput is used for create Event object. -Input was generated by ent. -""" -input CreateEventInput { + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - tags associated with the object + created_by field predicates """ - tags: [String!] - eventID: String - correlationID: String - eventType: String! - metadata: Map - userIDs: [ID!] - groupIDs: [ID!] - integrationIDs: [ID!] - organizationIDs: [ID!] - inviteIDs: [ID!] - featureIDs: [ID!] - entitlementplanIDs: [ID!] - personalAccessTokenIDs: [ID!] - oauth2tokenIDs: [ID!] - hushIDs: [ID!] - entitlementIDs: [ID!] - webhookIDs: [ID!] - subscriberIDs: [ID!] - fileIDs: [ID!] -} -""" -CreateFeatureInput is used for create Feature object. -Input was generated by ent. -""" -input CreateFeatureInput { + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - tags associated with the object + updated_by field predicates """ - tags: [String!] + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - the unique name of the feature + deleted_at field predicates """ - name: String! + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - the displayed 'friendly' name of the feature + deleted_by field predicates """ - displayName: String + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - enabled features are available for use + owner_id field predicates """ - enabled: Boolean + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ - a description of the feature + full_name field predicates """ - description: String + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameGT: String + fullNameGTE: String + fullNameLT: String + fullNameLTE: String + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameEqualFold: String + fullNameContainsFold: String """ - metadata for the feature + title field predicates """ - metadata: Map - ownerID: ID - planIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateFileInput is used for create File object. -Input was generated by ent. -""" -input CreateFileInput { + title: String + titleNEQ: String + titleIn: [String!] + titleNotIn: [String!] + titleGT: String + titleGTE: String + titleLT: String + titleLTE: String + titleContains: String + titleHasPrefix: String + titleHasSuffix: String + titleIsNil: Boolean + titleNotNil: Boolean + titleEqualFold: String + titleContainsFold: String """ - tags associated with the object + company field predicates """ - tags: [String!] + company: String + companyNEQ: String + companyIn: [String!] + companyNotIn: [String!] + companyGT: String + companyGTE: String + companyLT: String + companyLTE: String + companyContains: String + companyHasPrefix: String + companyHasSuffix: String + companyIsNil: Boolean + companyNotNil: Boolean + companyEqualFold: String + companyContainsFold: String """ - the name of the file provided in the payload key without the extension + email field predicates """ - providedFileName: String! + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailIsNil: Boolean + emailNotNil: Boolean + emailEqualFold: String + emailContainsFold: String """ - the extension of the file provided + phone_number field predicates """ - providedFileExtension: String! + phoneNumber: String + phoneNumberNEQ: String + phoneNumberIn: [String!] + phoneNumberNotIn: [String!] + phoneNumberGT: String + phoneNumberGTE: String + phoneNumberLT: String + phoneNumberLTE: String + phoneNumberContains: String + phoneNumberHasPrefix: String + phoneNumberHasSuffix: String + phoneNumberIsNil: Boolean + phoneNumberNotNil: Boolean + phoneNumberEqualFold: String + phoneNumberContainsFold: String """ - the computed size of the file in the original http request + address field predicates """ - providedFileSize: Int - persistedFileSize: Int - """ - the mime type detected by the system + address: String + addressNEQ: String + addressIn: [String!] + addressNotIn: [String!] + addressGT: String + addressGTE: String + addressLT: String + addressLTE: String + addressContains: String + addressHasPrefix: String + addressHasSuffix: String + addressIsNil: Boolean + addressNotNil: Boolean + addressEqualFold: String + addressContainsFold: String """ - detectedMimeType: String + status field predicates """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + status: ContactHistoryUserStatus + statusNEQ: ContactHistoryUserStatus + statusIn: [ContactHistoryUserStatus!] + statusNotIn: [ContactHistoryUserStatus!] +} +""" +ContactUserStatus is enum for the field status +""" +enum ContactUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING +} +""" +ContactWhereInput is used for filtering Contact objects. +Input was generated by ent. +""" +input ContactWhereInput { + not: ContactWhereInput + and: [ContactWhereInput!] + or: [ContactWhereInput!] """ - md5Hash: String + id field predicates """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - detectedContentType: String! + created_at field predicates """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - storeKey: String + updated_at field predicates """ - the category type of the file, if any (e.g. evidence, invoice, etc.) + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - categoryType: String + created_by field predicates """ - the full URI of the file + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - uri: String + updated_by field predicates """ - the storage scheme of the file, e.g. file://, s3://, etc. + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - storageScheme: String + deleted_at field predicates """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - storageVolume: String + deleted_by field predicates """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - storagePath: String - userIDs: [ID!] - organizationIDs: [ID!] - groupIDs: [ID!] - contactIDs: [ID!] - entityIDs: [ID!] - usersettingIDs: [ID!] - organizationsettingIDs: [ID!] - templateIDs: [ID!] - documentdatumIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateGroupInput is used for create Group object. -Input was generated by ent. -""" -input CreateGroupInput { + owner_id field predicates """ - tags associated with the object + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - tags: [String!] + full_name field predicates """ - the name of the group - must be unique within the organization + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameGT: String + fullNameGTE: String + fullNameLT: String + fullNameLTE: String + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameEqualFold: String + fullNameContainsFold: String """ - name: String! + title field predicates """ - the groups description + title: String + titleNEQ: String + titleIn: [String!] + titleNotIn: [String!] + titleGT: String + titleGTE: String + titleLT: String + titleLTE: String + titleContains: String + titleHasPrefix: String + titleHasSuffix: String + titleIsNil: Boolean + titleNotNil: Boolean + titleEqualFold: String + titleContainsFold: String """ - description: String + company field predicates """ - the URL to an auto generated gravatar image for the group + company: String + companyNEQ: String + companyIn: [String!] + companyNotIn: [String!] + companyGT: String + companyGTE: String + companyLT: String + companyLTE: String + companyContains: String + companyHasPrefix: String + companyHasSuffix: String + companyIsNil: Boolean + companyNotNil: Boolean + companyEqualFold: String + companyContainsFold: String """ - gravatarLogoURL: String + email field predicates """ - the URL to an image uploaded by the customer for the groups avatar image + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailIsNil: Boolean + emailNotNil: Boolean + emailEqualFold: String + emailContainsFold: String """ - logoURL: String + phone_number field predicates """ - The group's displayed 'friendly' name - """ - displayName: String - ownerID: ID - settingID: ID! - userIDs: [ID!] - eventIDs: [ID!] - integrationIDs: [ID!] - fileIDs: [ID!] -} -""" -CreateGroupMembershipInput is used for create GroupMembership object. -Input was generated by ent. -""" -input CreateGroupMembershipInput { - role: GroupMembershipRole - groupID: ID! - userID: ID! - eventIDs: [ID!] -} -""" -CreateGroupSettingInput is used for create GroupSetting object. -Input was generated by ent. -""" -input CreateGroupSettingInput { + phoneNumber: String + phoneNumberNEQ: String + phoneNumberIn: [String!] + phoneNumberNotIn: [String!] + phoneNumberGT: String + phoneNumberGTE: String + phoneNumberLT: String + phoneNumberLTE: String + phoneNumberContains: String + phoneNumberHasPrefix: String + phoneNumberHasSuffix: String + phoneNumberIsNil: Boolean + phoneNumberNotNil: Boolean + phoneNumberEqualFold: String + phoneNumberContainsFold: String """ - tags associated with the object + address field predicates """ - tags: [String!] + address: String + addressNEQ: String + addressIn: [String!] + addressNotIn: [String!] + addressGT: String + addressGTE: String + addressLT: String + addressLTE: String + addressContains: String + addressHasPrefix: String + addressHasSuffix: String + addressIsNil: Boolean + addressNotNil: Boolean + addressEqualFold: String + addressContainsFold: String """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + status field predicates """ - visibility: GroupSettingVisibility + status: ContactUserStatus + statusNEQ: ContactUserStatus + statusIn: [ContactUserStatus!] + statusNotIn: [ContactUserStatus!] """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either + owner edge predicates """ - joinPolicy: GroupSettingJoinPolicy + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - whether to sync group members to slack groups + entities edge predicates """ - syncToSlack: Boolean + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] """ - whether to sync group members to github groups + files edge predicates """ - syncToGithub: Boolean - groupID: ID + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] } -""" -CreateHushInput is used for create Hush object. -Input was generated by ent. -""" -input CreateHushInput { +type Control implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - the logical name of the corresponding hush secret or it's general grouping + tags associated with the object """ - name: String! + tags: [String!] """ - a description of the hush value or purpose, such as github PAT + the name of the control """ - description: String + name: String! """ - the kind of secret, such as sshkey, certificate, api token, etc. + description of the control """ - kind: String + description: String """ - the generic name of a secret associated with the organization + status of the control """ - secretName: String + status: String """ - the secret value + type of the control """ - secretValue: String - integrationIDs: [ID!] - organizationIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateIntegrationInput is used for create Integration object. -Input was generated by ent. -""" -input CreateIntegrationInput { + controlType: String """ - tags associated with the object + version of the control """ - tags: [String!] + version: String """ - the name of the integration - must be unique within the organization + control number or identifier """ - name: String! + controlNumber: String """ - a description of the integration + family associated with the control """ - description: String - kind: String - ownerID: ID - secretIDs: [ID!] - oauth2tokenIDs: [ID!] - eventIDs: [ID!] - webhookIDs: [ID!] -} -""" -CreateInviteInput is used for create Invite object. -Input was generated by ent. -""" -input CreateInviteInput { + family: String """ - the expiration date of the invitation token which defaults to 14 days in the future from creation + class associated with the control """ - expires: Time + class: String """ - the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + source of the control, e.g. framework, template, custom, etc. """ - recipient: String! + source: String """ - the status of the invitation + which control objectives are satisfied by the control """ - status: InviteInviteStatus - role: InviteRole + satisfies: String """ - the number of attempts made to perform email send of the invitation, maximum of 5 + mapped frameworks """ - sendAttempts: Int + mappedFrameworks: String """ - the user who initiated the invitation + json data including details of the control """ - requestorID: String - ownerID: ID - eventIDs: [ID!] + details: Map + procedures: [Procedure!] + subcontrols: [Subcontrol!] + controlobjectives: [ControlObjective!] + standard: [Standard!] + narratives: [Narrative!] + risks: [Risk!] + actionplans: [ActionPlan!] } """ -CreateNoteInput is used for create Note object. -Input was generated by ent. +A connection to a list of items. """ -input CreateNoteInput { +type ControlConnection { """ - tags associated with the object + A list of edges. """ - tags: [String!] + edges: [ControlEdge] """ - the text of the note + Information to aid in pagination. """ - text: String! - ownerID: ID - entityID: ID + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! } """ -CreateOauthProviderInput is used for create OauthProvider object. -Input was generated by ent. +An edge in a connection. """ -input CreateOauthProviderInput { +type ControlEdge { + """ + The item at the end of the edge. + """ + node: Control + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ControlHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ControlHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] """ - the oauth provider's name + the name of the control """ name: String! """ - the client id for the oauth provider + description of the control """ - clientID: String! + description: String """ - the client secret + status of the control """ - clientSecret: String! + status: String """ - the redirect url + type of the control """ - redirectURL: String! + controlType: String """ - the scopes + version of the control """ - scopes: String! + version: String """ - the auth url of the provider + control number or identifier """ - authURL: String! + controlNumber: String """ - the token url of the provider + family associated with the control """ - tokenURL: String! + family: String """ - the auth style, 0: auto detect 1: third party log in 2: log in with username and password + class associated with the control """ - authStyle: Uint! + class: String """ - the URL to request user information by token + source of the control, e.g. framework, template, custom, etc. """ - infoURL: String! - ownerID: ID -} -""" -CreateOhAuthTooTokenInput is used for create OhAuthTooToken object. -Input was generated by ent. -""" -input CreateOhAuthTooTokenInput { + source: String """ - tags associated with the object + which control objectives are satisfied by the control """ - tags: [String!] - clientID: String! - scopes: [String!] - nonce: String! - claimsUserID: String! - claimsUsername: String! - claimsEmail: String! - claimsEmailVerified: Boolean! - claimsGroups: [String!] - claimsPreferredUsername: String! - connectorID: String! - connectorData: [String!] - lastUsed: Time - integrationIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateOrgMembershipInput is used for create OrgMembership object. -Input was generated by ent. -""" -input CreateOrgMembershipInput { - role: OrgMembershipRole - organizationID: ID! - userID: ID! - eventIDs: [ID!] + satisfies: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control + """ + details: Map } """ -CreateOrganizationInput is used for create Organization object. -Input was generated by ent. +A connection to a list of items. """ -input CreateOrganizationInput { +type ControlHistoryConnection { """ - tags associated with the object + A list of edges. """ - tags: [String!] + edges: [ControlHistoryEdge] """ - the name of the organization + Information to aid in pagination. """ - name: String! + pageInfo: PageInfo! """ - The organization's displayed 'friendly' name - """ - displayName: String - """ - An optional description of the organization - """ - description: String - """ - orgs directly associated with a user + Identifies the total count of items in the connection. """ - personalOrg: Boolean + totalCount: Int! +} +""" +An edge in a connection. +""" +type ControlHistoryEdge { """ - URL of the user's remote avatar + The item at the end of the edge. """ - avatarRemoteURL: String + node: ControlHistory """ - Whether the organization has a dedicated database + A cursor for use in pagination. """ - dedicatedDb: Boolean - parentID: ID - groupIDs: [ID!] - templateIDs: [ID!] - integrationIDs: [ID!] - settingID: ID - documentdatumIDs: [ID!] - entitlementIDs: [ID!] - organizationEntitlementIDs: [ID!] - personalAccessTokenIDs: [ID!] - apiTokenIDs: [ID!] - oauthproviderIDs: [ID!] - userIDs: [ID!] - inviteIDs: [ID!] - subscriberIDs: [ID!] - webhookIDs: [ID!] - eventIDs: [ID!] - secretIDs: [ID!] - featureIDs: [ID!] - fileIDs: [ID!] - entitlementplanIDs: [ID!] - entityIDs: [ID!] - entitytypeIDs: [ID!] - contactIDs: [ID!] - noteIDs: [ID!] + cursor: Cursor! } """ -CreateOrganizationSettingInput is used for create OrganizationSetting object. +ControlHistoryOpType is enum for the field operation +""" +enum ControlHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ControlHistoryWhereInput is used for filtering ControlHistory objects. Input was generated by ent. """ -input CreateOrganizationSettingInput { +input ControlHistoryWhereInput { + not: ControlHistoryWhereInput + and: [ControlHistoryWhereInput!] + or: [ControlHistoryWhereInput!] """ - tags associated with the object + id field predicates """ - tags: [String!] + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - domains associated with the organization + history_time field predicates """ - domains: [String!] + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time """ - Name of the person to contact for billing + ref field predicates """ - billingContact: String + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String """ - Email address of the person to contact for billing + operation field predicates """ - billingEmail: String + operation: ControlHistoryOpType + operationNEQ: ControlHistoryOpType + operationIn: [ControlHistoryOpType!] + operationNotIn: [ControlHistoryOpType!] """ - Phone number to contact for billing + created_at field predicates """ - billingPhone: String + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - Address to send billing information to + updated_at field predicates """ - billingAddress: String + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - Usually government-issued tax ID or business ID such as ABN in Australia + created_by field predicates """ - taxIdentifier: String + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - geographical location of the organization + updated_by field predicates """ - geoLocation: OrganizationSettingRegion - organizationID: ID - fileIDs: [ID!] -} -""" -CreatePersonalAccessTokenInput is used for create PersonalAccessToken object. -Input was generated by ent. -""" -input CreatePersonalAccessTokenInput { + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - tags associated with the object + deleted_at field predicates """ - tags: [String!] + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - the name associated with the token + deleted_by field predicates """ - name: String! + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - when the token expires + name field predicates """ - expiresAt: Time + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - a description of the token's purpose + description field predicates """ description: String - scopes: [String!] - lastUsedAt: Time - ownerID: ID! - organizationIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateSubscriberInput is used for create Subscriber object. -Input was generated by ent. -""" -input CreateSubscriberInput { - """ - tags associated with the object - """ - tags: [String!] - """ - email address of the subscriber - """ - email: String! + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - phone number of the subscriber + status field predicates """ - phoneNumber: String - ownerID: ID - eventIDs: [ID!] -} -""" -CreateTFASettingInput is used for create TFASetting object. -Input was generated by ent. -""" -input CreateTFASettingInput { + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - tags associated with the object + control_type field predicates + """ + controlType: String + controlTypeNEQ: String + controlTypeIn: [String!] + controlTypeNotIn: [String!] + controlTypeGT: String + controlTypeGTE: String + controlTypeLT: String + controlTypeLTE: String + controlTypeContains: String + controlTypeHasPrefix: String + controlTypeHasSuffix: String + controlTypeIsNil: Boolean + controlTypeNotNil: Boolean + controlTypeEqualFold: String + controlTypeContainsFold: String """ - tags: [String!] + version field predicates """ - specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - totpAllowed: Boolean - ownerID: ID -} -""" -CreateTemplateInput is used for create Template object. -Input was generated by ent. -""" -input CreateTemplateInput { + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String +} +type ControlObjective implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] """ - the name of the template + the name of the control objective """ name: String! """ - the type of the template, either a provided template or an implementation (document) - """ - templateType: TemplateDocumentType - """ - the description of the template + description of the control objective """ description: String """ - the jsonschema object of the template - """ - jsonconfig: JSON! - """ - the uischema for the template to render in the UI - """ - uischema: JSON - ownerID: ID - documentIDs: [ID!] - fileIDs: [ID!] -} -""" -CreateUserInput is used for create User object. -Input was generated by ent. -""" -input CreateUserInput { - """ - tags associated with the object - """ - tags: [String!] - email: String! - firstName: String - lastName: String - """ - The user's displayed 'friendly' name + status of the control objective """ - displayName: String! + status: String """ - URL of the user's remote avatar + type of the control objective """ - avatarRemoteURL: String + controlObjectiveType: String """ - The user's local avatar file + version of the control objective """ - avatarLocalFile: String + version: String """ - The time the user's (local) avatar was last updated + number of the control objective """ - avatarUpdatedAt: Time + controlNumber: String """ - the time the user was last seen + family of the control objective """ - lastSeen: Time + family: String """ - user password hash + class associated with the control objective """ - password: String + class: String """ - the Subject of the user JWT + source of the control objective, e.g. framework, template, user-defined, etc. """ - sub: String + source: String """ - auth provider used to register the account + mapped frameworks """ - authProvider: UserAuthProvider + mappedFrameworks: String """ - the user's role + json data including details of the control objective """ - role: UserRole - personalAccessTokenIDs: [ID!] - tfaSettingIDs: [ID!] - settingID: ID! - emailVerificationTokenIDs: [ID!] - passwordResetTokenIDs: [ID!] - groupIDs: [ID!] - organizationIDs: [ID!] - webauthnIDs: [ID!] - fileIDs: [ID!] - fileID: ID - eventIDs: [ID!] + details: Map + policy: [InternalPolicy!] + controls: [Control!] + procedures: [Procedure!] + risks: [Risk!] + subcontrols: [Subcontrol!] + standard: [Standard!] + narratives: [Narrative!] } """ -CreateUserSettingInput is used for create UserSetting object. -Input was generated by ent. +A connection to a list of items. """ -input CreateUserSettingInput { - """ - tags associated with the object - """ - tags: [String!] - """ - user account is locked if unconfirmed or explicitly locked - """ - locked: Boolean - """ - The time notifications regarding the user were silenced +type ControlObjectiveConnection { """ - silencedAt: Time - """ - The time the user was suspended + A list of edges. """ - suspendedAt: Time + edges: [ControlObjectiveEdge] """ - status of the user account + Information to aid in pagination. """ - status: UserSettingUserStatus + pageInfo: PageInfo! """ - whether the user has confirmed their email address + Identifies the total count of items in the connection. """ - emailConfirmed: Boolean + totalCount: Int! +} +""" +An edge in a connection. +""" +type ControlObjectiveEdge { """ - specifies a user may complete authentication by verifying a WebAuthn capable device + The item at the end of the edge. """ - isWebauthnAllowed: Boolean + node: ControlObjective """ - whether the user has two factor authentication enabled + A cursor for use in pagination. """ - isTfaEnabled: Boolean - userID: ID - defaultOrgID: ID - fileIDs: [ID!] + cursor: Cursor! } -""" -CreateWebhookInput is used for create Webhook object. -Input was generated by ent. -""" -input CreateWebhookInput { +type ControlObjectiveHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ControlObjectiveHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] """ - the name of the webhook + the name of the control objective """ name: String! """ - a description of the webhook + description of the control objective """ description: String """ - the url to send the webhook to + status of the control objective """ - destinationURL: String! + status: String """ - indicates if the webhook is active and enabled + type of the control objective """ - enabled: Boolean + controlObjectiveType: String """ - the number of failures + version of the control objective """ - failures: Int + version: String """ - the last error message + number of the control objective """ - lastError: String + controlNumber: String """ - the last response + family of the control objective """ - lastResponse: String - ownerID: ID - eventIDs: [ID!] - integrationIDs: [ID!] -} -""" -Define a Relay Cursor type: -https://relay.dev/graphql/connections.htm#sec-Cursor -""" -scalar Cursor -type DocumentData implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String + family: String """ - tags associated with the object + class associated with the control objective """ - tags: [String!] - deletedAt: Time - deletedBy: String + class: String """ - the organization id that owns the object + source of the control objective, e.g. framework, template, user-defined, etc. """ - ownerID: ID + source: String """ - the template id of the document + mapped frameworks """ - templateID: ID! + mappedFrameworks: String """ - the json data of the document + json data including details of the control objective """ - data: JSON! - owner: Organization - template: Template! - entity: [Entity!] - files: [File!] + details: Map } """ A connection to a list of items. """ -type DocumentDataConnection { +type ControlObjectiveHistoryConnection { """ A list of edges. """ - edges: [DocumentDataEdge] + edges: [ControlObjectiveHistoryEdge] """ Information to aid in pagination. """ @@ -1959,92 +2336,34 @@ type DocumentDataConnection { """ An edge in a connection. """ -type DocumentDataEdge { +type ControlObjectiveHistoryEdge { """ The item at the end of the edge. """ - node: DocumentData + node: ControlObjectiveHistory """ A cursor for use in pagination. """ cursor: Cursor! } -type DocumentDataHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: DocumentDataHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: String - """ - the template id of the document - """ - templateID: String! - """ - the json data of the document - """ - data: JSON! +""" +ControlObjectiveHistoryOpType is enum for the field operation +""" +enum ControlObjectiveHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE } """ -A connection to a list of items. +ControlObjectiveHistoryWhereInput is used for filtering ControlObjectiveHistory objects. +Input was generated by ent. """ -type DocumentDataHistoryConnection { - """ - A list of edges. +input ControlObjectiveHistoryWhereInput { + not: ControlObjectiveHistoryWhereInput + and: [ControlObjectiveHistoryWhereInput!] + or: [ControlObjectiveHistoryWhereInput!] """ - edges: [DocumentDataHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type DocumentDataHistoryEdge { - """ - The item at the end of the edge. - """ - node: DocumentDataHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -DocumentDataHistoryOpType is enum for the field operation -""" -enum DocumentDataHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -DocumentDataHistoryWhereInput is used for filtering DocumentDataHistory objects. -Input was generated by ent. -""" -input DocumentDataHistoryWhereInput { - not: DocumentDataHistoryWhereInput - and: [DocumentDataHistoryWhereInput!] - or: [DocumentDataHistoryWhereInput!] - """ - id field predicates + id field predicates """ id: ID idNEQ: ID @@ -2088,10 +2407,10 @@ input DocumentDataHistoryWhereInput { """ operation field predicates """ - operation: DocumentDataHistoryOpType - operationNEQ: DocumentDataHistoryOpType - operationIn: [DocumentDataHistoryOpType!] - operationNotIn: [DocumentDataHistoryOpType!] + operation: ControlObjectiveHistoryOpType + operationNEQ: ControlObjectiveHistoryOpType + operationIn: [ControlObjectiveHistoryOpType!] + operationNotIn: [ControlObjectiveHistoryOpType!] """ created_at field predicates """ @@ -2186,48 +2505,192 @@ input DocumentDataHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + name field predicates """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - template_id field predicates + description field predicates """ - templateID: String - templateIDNEQ: String - templateIDIn: [String!] - templateIDNotIn: [String!] - templateIDGT: String - templateIDGTE: String - templateIDLT: String - templateIDLTE: String - templateIDContains: String - templateIDHasPrefix: String - templateIDHasSuffix: String - templateIDEqualFold: String - templateIDContainsFold: String -} -""" -DocumentDataWhereInput is used for filtering DocumentData objects. + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + control_objective_type field predicates + """ + controlObjectiveType: String + controlObjectiveTypeNEQ: String + controlObjectiveTypeIn: [String!] + controlObjectiveTypeNotIn: [String!] + controlObjectiveTypeGT: String + controlObjectiveTypeGTE: String + controlObjectiveTypeLT: String + controlObjectiveTypeLTE: String + controlObjectiveTypeContains: String + controlObjectiveTypeHasPrefix: String + controlObjectiveTypeHasSuffix: String + controlObjectiveTypeIsNil: Boolean + controlObjectiveTypeNotNil: Boolean + controlObjectiveTypeEqualFold: String + controlObjectiveTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String +} +""" +ControlObjectiveWhereInput is used for filtering ControlObjective objects. Input was generated by ent. """ -input DocumentDataWhereInput { - not: DocumentDataWhereInput - and: [DocumentDataWhereInput!] - or: [DocumentDataWhereInput!] +input ControlObjectiveWhereInput { + not: ControlObjectiveWhereInput + and: [ControlObjectiveWhereInput!] + or: [ControlObjectiveWhereInput!] """ id field predicates """ @@ -2335,235 +2798,229 @@ input DocumentDataWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + name field predicates """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - template_id field predicates + description field predicates """ - templateID: ID - templateIDNEQ: ID - templateIDIn: [ID!] - templateIDNotIn: [ID!] - templateIDGT: ID - templateIDGTE: ID - templateIDLT: ID - templateIDLTE: ID - templateIDContains: ID - templateIDHasPrefix: ID - templateIDHasSuffix: ID - templateIDEqualFold: ID - templateIDContainsFold: ID + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - owner edge predicates + status field predicates """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - template edge predicates + control_objective_type field predicates + """ + controlObjectiveType: String + controlObjectiveTypeNEQ: String + controlObjectiveTypeIn: [String!] + controlObjectiveTypeNotIn: [String!] + controlObjectiveTypeGT: String + controlObjectiveTypeGTE: String + controlObjectiveTypeLT: String + controlObjectiveTypeLTE: String + controlObjectiveTypeContains: String + controlObjectiveTypeHasPrefix: String + controlObjectiveTypeHasSuffix: String + controlObjectiveTypeIsNil: Boolean + controlObjectiveTypeNotNil: Boolean + controlObjectiveTypeEqualFold: String + controlObjectiveTypeContainsFold: String """ - hasTemplate: Boolean - hasTemplateWith: [TemplateWhereInput!] + version field predicates """ - entity edge predicates + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - hasEntity: Boolean - hasEntityWith: [EntityWhereInput!] + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + policy edge predicates + """ + hasPolicy: Boolean + hasPolicyWith: [InternalPolicyWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] +} +""" +ControlWhereInput is used for filtering Control objects. +Input was generated by ent. +""" +input ControlWhereInput { + not: ControlWhereInput + and: [ControlWhereInput!] + or: [ControlWhereInput!] """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] -} -type Entitlement implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: ID - """ - the plan to which the entitlement belongs - """ - planID: ID! - """ - the organization to which the entitlement belongs - """ - organizationID: ID! - """ - used to store references to external systems, e.g. Stripe - """ - externalCustomerID: String - """ - used to store references to external systems, e.g. Stripe - """ - externalSubscriptionID: String - """ - whether or not the customers entitlement expires - expires_at will show the time - """ - expires: Boolean! - """ - the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month - """ - expiresAt: Time - """ - whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at - """ - cancelled: Boolean! - owner: Organization - plan: EntitlementPlan! - organization: Organization! - events: [Event!] -} -""" -A connection to a list of items. -""" -type EntitlementConnection { - """ - A list of edges. - """ - edges: [EntitlementEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntitlementEdge { - """ - The item at the end of the edge. - """ - node: Entitlement - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type EntitlementHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntitlementHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: String - """ - the plan to which the entitlement belongs - """ - planID: String! - """ - the organization to which the entitlement belongs - """ - organizationID: String! - """ - used to store references to external systems, e.g. Stripe - """ - externalCustomerID: String - """ - used to store references to external systems, e.g. Stripe - """ - externalSubscriptionID: String - """ - whether or not the customers entitlement expires - expires_at will show the time - """ - expires: Boolean! - """ - the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month - """ - expiresAt: Time - """ - whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at - """ - cancelled: Boolean! -} -""" -A connection to a list of items. -""" -type EntitlementHistoryConnection { - """ - A list of edges. - """ - edges: [EntitlementHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntitlementHistoryEdge { - """ - The item at the end of the edge. - """ - node: EntitlementHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -EntitlementHistoryOpType is enum for the field operation -""" -enum EntitlementHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -EntitlementHistoryWhereInput is used for filtering EntitlementHistory objects. -Input was generated by ent. -""" -input EntitlementHistoryWhereInput { - not: EntitlementHistoryWhereInput - and: [EntitlementHistoryWhereInput!] - or: [EntitlementHistoryWhereInput!] - """ - id field predicates + id field predicates """ id: ID idNEQ: ID @@ -2576,42 +3033,6 @@ input EntitlementHistoryWhereInput { idEqualFold: ID idContainsFold: ID """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: EntitlementHistoryOpType - operationNEQ: EntitlementHistoryOpType - operationIn: [EntitlementHistoryOpType!] - operationNotIn: [EntitlementHistoryOpType!] - """ created_at field predicates """ createdAt: Time @@ -2705,644 +3126,547 @@ input EntitlementHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - plan_id field predicates + name field predicates """ - planID: String - planIDNEQ: String - planIDIn: [String!] - planIDNotIn: [String!] - planIDGT: String - planIDGTE: String - planIDLT: String - planIDLTE: String - planIDContains: String - planIDHasPrefix: String - planIDHasSuffix: String - planIDEqualFold: String - planIDContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - organization_id field predicates + description field predicates """ - organizationID: String - organizationIDNEQ: String - organizationIDIn: [String!] - organizationIDNotIn: [String!] - organizationIDGT: String - organizationIDGTE: String - organizationIDLT: String - organizationIDLTE: String - organizationIDContains: String - organizationIDHasPrefix: String - organizationIDHasSuffix: String - organizationIDEqualFold: String - organizationIDContainsFold: String + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - external_customer_id field predicates + status field predicates """ - externalCustomerID: String - externalCustomerIDNEQ: String - externalCustomerIDIn: [String!] - externalCustomerIDNotIn: [String!] - externalCustomerIDGT: String - externalCustomerIDGTE: String - externalCustomerIDLT: String - externalCustomerIDLTE: String - externalCustomerIDContains: String - externalCustomerIDHasPrefix: String - externalCustomerIDHasSuffix: String - externalCustomerIDIsNil: Boolean - externalCustomerIDNotNil: Boolean - externalCustomerIDEqualFold: String - externalCustomerIDContainsFold: String + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - external_subscription_id field predicates + control_type field predicates + """ + controlType: String + controlTypeNEQ: String + controlTypeIn: [String!] + controlTypeNotIn: [String!] + controlTypeGT: String + controlTypeGTE: String + controlTypeLT: String + controlTypeLTE: String + controlTypeContains: String + controlTypeHasPrefix: String + controlTypeHasSuffix: String + controlTypeIsNil: Boolean + controlTypeNotNil: Boolean + controlTypeEqualFold: String + controlTypeContainsFold: String """ - externalSubscriptionID: String - externalSubscriptionIDNEQ: String - externalSubscriptionIDIn: [String!] - externalSubscriptionIDNotIn: [String!] - externalSubscriptionIDGT: String - externalSubscriptionIDGTE: String - externalSubscriptionIDLT: String - externalSubscriptionIDLTE: String - externalSubscriptionIDContains: String - externalSubscriptionIDHasPrefix: String - externalSubscriptionIDHasSuffix: String - externalSubscriptionIDIsNil: Boolean - externalSubscriptionIDNotNil: Boolean - externalSubscriptionIDEqualFold: String - externalSubscriptionIDContainsFold: String + version field predicates """ - expires field predicates + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - expires: Boolean - expiresNEQ: Boolean + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + controlobjectives edge predicates + """ + hasControlobjectives: Boolean + hasControlobjectivesWith: [ControlObjectiveWhereInput!] + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + actionplans edge predicates + """ + hasActionplans: Boolean + hasActionplansWith: [ActionPlanWhereInput!] +} +""" +CreateAPITokenInput is used for create APIToken object. +Input was generated by ent. +""" +input CreateAPITokenInput { """ - expires_at field predicates + tags associated with the object """ - expiresAt: Time - expiresAtNEQ: Time - expiresAtIn: [Time!] - expiresAtNotIn: [Time!] - expiresAtGT: Time - expiresAtGTE: Time - expiresAtLT: Time - expiresAtLTE: Time - expiresAtIsNil: Boolean - expiresAtNotNil: Boolean + tags: [String!] """ - cancelled field predicates + the name associated with the token """ - cancelled: Boolean - cancelledNEQ: Boolean -} -type EntitlementPlan implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String + name: String! """ - tags associated with the object + when the token expires """ - tags: [String!] + expiresAt: Time """ - the organization id that owns the object + a description of the token's purpose """ + description: String + scopes: [String!] + lastUsedAt: Time ownerID: ID +} +""" +CreateActionPlanInput is used for create ActionPlan object. +Input was generated by ent. +""" +input CreateActionPlanInput { """ - the displayed 'friendly' name of the plan + tags associated with the object """ - displayName: String + tags: [String!] """ - the unique name of the plan + the name of the action plan """ name: String! """ - a description of the plan + description of the action plan """ description: String """ - the version of the plan + status of the action plan """ - version: String! + status: String """ - metadata for the plan + due date of the action plan """ - metadata: Map - owner: Organization - entitlements: [Entitlement!] - baseFeatures: [Feature!] - events: [Event!] - features: [EntitlementPlanFeature!] -} -""" -A connection to a list of items. -""" -type EntitlementPlanConnection { + dueDate: Time """ - A list of edges. + priority of the action plan """ - edges: [EntitlementPlanEdge] + priority: String """ - Information to aid in pagination. + source of the action plan """ - pageInfo: PageInfo! + source: String """ - Identifies the total count of items in the connection. + json data including details of the action plan """ - totalCount: Int! + details: Map + standardIDs: [ID!] + riskIDs: [ID!] + controlIDs: [ID!] + userIDs: [ID!] } """ -An edge in a connection. +CreateContactInput is used for create Contact object. +Input was generated by ent. """ -type EntitlementPlanEdge { +input CreateContactInput { """ - The item at the end of the edge. + tags associated with the object """ - node: EntitlementPlan + tags: [String!] """ - A cursor for use in pagination. + the full name of the contact """ - cursor: Cursor! -} -type EntitlementPlanFeature implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String + fullName: String! """ - tags associated with the object + the title of the contact """ - tags: [String!] + title: String """ - the organization id that owns the object + the company of the contact """ - ownerID: ID + company: String """ - metadata for the entitlement plan feature such as usage limits + the email of the contact """ - metadata: Map - planID: ID! - featureID: ID! - owner: Organization - plan: EntitlementPlan! - feature: Feature! - events: [Event!] -} -""" -A connection to a list of items. -""" -type EntitlementPlanFeatureConnection { + email: String """ - A list of edges. + the phone number of the contact """ - edges: [EntitlementPlanFeatureEdge] + phoneNumber: String """ - Information to aid in pagination. + the address of the contact """ - pageInfo: PageInfo! + address: String """ - Identifies the total count of items in the connection. + status of the contact """ - totalCount: Int! + status: ContactUserStatus + ownerID: ID + entityIDs: [ID!] + fileIDs: [ID!] } """ -An edge in a connection. +CreateControlInput is used for create Control object. +Input was generated by ent. """ -type EntitlementPlanFeatureEdge { +input CreateControlInput { """ - The item at the end of the edge. + tags associated with the object """ - node: EntitlementPlanFeature + tags: [String!] """ - A cursor for use in pagination. + the name of the control """ - cursor: Cursor! -} -type EntitlementPlanFeatureHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntitlementPlanFeatureHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String + name: String! """ - tags associated with the object + description of the control """ - tags: [String!] + description: String """ - the organization id that owns the object + status of the control """ - ownerID: String + status: String """ - metadata for the entitlement plan feature such as usage limits + type of the control """ - metadata: Map - planID: String! - featureID: String! -} -""" -A connection to a list of items. -""" -type EntitlementPlanFeatureHistoryConnection { + controlType: String """ - A list of edges. + version of the control """ - edges: [EntitlementPlanFeatureHistoryEdge] + version: String """ - Information to aid in pagination. + control number or identifier """ - pageInfo: PageInfo! + controlNumber: String """ - Identifies the total count of items in the connection. + family associated with the control """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntitlementPlanFeatureHistoryEdge { + family: String """ - The item at the end of the edge. + class associated with the control """ - node: EntitlementPlanFeatureHistory + class: String """ - A cursor for use in pagination. + source of the control, e.g. framework, template, custom, etc. """ - cursor: Cursor! -} -""" -EntitlementPlanFeatureHistoryOpType is enum for the field operation -""" -enum EntitlementPlanFeatureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE + source: String + """ + which control objectives are satisfied by the control + """ + satisfies: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control + """ + details: Map + procedureIDs: [ID!] + subcontrolIDs: [ID!] + controlobjectiveIDs: [ID!] + standardIDs: [ID!] + narrativeIDs: [ID!] + riskIDs: [ID!] + actionplanIDs: [ID!] } """ -EntitlementPlanFeatureHistoryWhereInput is used for filtering EntitlementPlanFeatureHistory objects. +CreateControlObjectiveInput is used for create ControlObjective object. Input was generated by ent. """ -input EntitlementPlanFeatureHistoryWhereInput { - not: EntitlementPlanFeatureHistoryWhereInput - and: [EntitlementPlanFeatureHistoryWhereInput!] - or: [EntitlementPlanFeatureHistoryWhereInput!] +input CreateControlObjectiveInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - history_time field predicates + the name of the control objective """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time + name: String! """ - ref field predicates + description of the control objective """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String + description: String """ - operation field predicates + status of the control objective """ - operation: EntitlementPlanFeatureHistoryOpType - operationNEQ: EntitlementPlanFeatureHistoryOpType - operationIn: [EntitlementPlanFeatureHistoryOpType!] - operationNotIn: [EntitlementPlanFeatureHistoryOpType!] + status: String """ - created_at field predicates + type of the control objective """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + controlObjectiveType: String """ - updated_at field predicates + version of the control objective """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + version: String """ - created_by field predicates + number of the control objective """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + controlNumber: String """ - updated_by field predicates + family of the control objective """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + family: String """ - deleted_at field predicates + class associated with the control objective """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + class: String """ - deleted_by field predicates + source of the control objective, e.g. framework, template, user-defined, etc. """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + source: String """ - owner_id field predicates + mapped frameworks """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + mappedFrameworks: String """ - plan_id field predicates + json data including details of the control objective """ - planID: String - planIDNEQ: String - planIDIn: [String!] - planIDNotIn: [String!] - planIDGT: String - planIDGTE: String - planIDLT: String - planIDLTE: String - planIDContains: String - planIDHasPrefix: String - planIDHasSuffix: String - planIDEqualFold: String - planIDContainsFold: String + details: Map + policyIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + riskIDs: [ID!] + subcontrolIDs: [ID!] + standardIDs: [ID!] + narrativeIDs: [ID!] +} +""" +CreateDocumentDataInput is used for create DocumentData object. +Input was generated by ent. +""" +input CreateDocumentDataInput { """ - feature_id field predicates + tags associated with the object """ - featureID: String - featureIDNEQ: String - featureIDIn: [String!] - featureIDNotIn: [String!] - featureIDGT: String - featureIDGTE: String - featureIDLT: String - featureIDLTE: String - featureIDContains: String - featureIDHasPrefix: String - featureIDHasSuffix: String - featureIDEqualFold: String - featureIDContainsFold: String + tags: [String!] + """ + the json data of the document + """ + data: JSON! + ownerID: ID + templateID: ID! + entityIDs: [ID!] + fileIDs: [ID!] } """ -EntitlementPlanFeatureWhereInput is used for filtering EntitlementPlanFeature objects. +CreateEntitlementInput is used for create Entitlement object. Input was generated by ent. """ -input EntitlementPlanFeatureWhereInput { - not: EntitlementPlanFeatureWhereInput - and: [EntitlementPlanFeatureWhereInput!] - or: [EntitlementPlanFeatureWhereInput!] +input CreateEntitlementInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - created_at field predicates + used to store references to external systems, e.g. Stripe """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + externalCustomerID: String """ - updated_at field predicates + used to store references to external systems, e.g. Stripe """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + externalSubscriptionID: String """ - created_by field predicates + the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + expiresAt: Time """ - updated_by field predicates + whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + cancelled: Boolean + ownerID: ID + planID: ID! + organizationID: ID! + eventIDs: [ID!] +} +""" +CreateEntitlementPlanFeatureInput is used for create EntitlementPlanFeature object. +Input was generated by ent. +""" +input CreateEntitlementPlanFeatureInput { """ - deleted_at field predicates + tags associated with the object """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + tags: [String!] """ - deleted_by field predicates + metadata for the entitlement plan feature such as usage limits """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + metadata: Map + ownerID: ID + planID: ID! + featureID: ID! + eventIDs: [ID!] } -type EntitlementPlanHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntitlementPlanHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String +""" +CreateEntitlementPlanInput is used for create EntitlementPlan object. +Input was generated by ent. +""" +input CreateEntitlementPlanInput { """ tags associated with the object """ tags: [String!] """ - the organization id that owns the object - """ - ownerID: String - """ the displayed 'friendly' name of the plan """ displayName: String @@ -3362,1991 +3686,1100 @@ type EntitlementPlanHistory implements Node { metadata for the plan """ metadata: Map + ownerID: ID + entitlementIDs: [ID!] + baseFeatureIDs: [ID!] + eventIDs: [ID!] } """ -A connection to a list of items. +CreateEntityInput is used for create Entity object. +Input was generated by ent. """ -type EntitlementPlanHistoryConnection { +input CreateEntityInput { """ - A list of edges. + tags associated with the object """ - edges: [EntitlementPlanHistoryEdge] + tags: [String!] """ - Information to aid in pagination. + the name of the entity """ - pageInfo: PageInfo! + name: String """ - Identifies the total count of items in the connection. + The entity's displayed 'friendly' name """ - totalCount: Int! + displayName: String + """ + An optional description of the entity + """ + description: String + """ + domains associated with the entity + """ + domains: [String!] + """ + status of the entity + """ + status: String + ownerID: ID + contactIDs: [ID!] + documentIDs: [ID!] + noteIDs: [ID!] + fileIDs: [ID!] + entityTypeID: ID } """ -An edge in a connection. +CreateEntityTypeInput is used for create EntityType object. +Input was generated by ent. """ -type EntitlementPlanHistoryEdge { +input CreateEntityTypeInput { """ - The item at the end of the edge. + tags associated with the object """ - node: EntitlementPlanHistory + tags: [String!] """ - A cursor for use in pagination. + the name of the entity """ - cursor: Cursor! + name: String! + ownerID: ID + entityIDs: [ID!] } """ -EntitlementPlanHistoryOpType is enum for the field operation +CreateEventInput is used for create Event object. +Input was generated by ent. """ -enum EntitlementPlanHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE +input CreateEventInput { + """ + tags associated with the object + """ + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map + userIDs: [ID!] + groupIDs: [ID!] + integrationIDs: [ID!] + organizationIDs: [ID!] + inviteIDs: [ID!] + featureIDs: [ID!] + entitlementplanIDs: [ID!] + personalAccessTokenIDs: [ID!] + oauth2tokenIDs: [ID!] + hushIDs: [ID!] + entitlementIDs: [ID!] + webhookIDs: [ID!] + subscriberIDs: [ID!] + fileIDs: [ID!] } """ -EntitlementPlanHistoryWhereInput is used for filtering EntitlementPlanHistory objects. +CreateFeatureInput is used for create Feature object. Input was generated by ent. """ -input EntitlementPlanHistoryWhereInput { - not: EntitlementPlanHistoryWhereInput - and: [EntitlementPlanHistoryWhereInput!] - or: [EntitlementPlanHistoryWhereInput!] +input CreateFeatureInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - history_time field predicates + the unique name of the feature """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time + name: String! """ - ref field predicates + the displayed 'friendly' name of the feature """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String + displayName: String """ - operation field predicates + enabled features are available for use """ - operation: EntitlementPlanHistoryOpType - operationNEQ: EntitlementPlanHistoryOpType - operationIn: [EntitlementPlanHistoryOpType!] - operationNotIn: [EntitlementPlanHistoryOpType!] + enabled: Boolean """ - created_at field predicates + a description of the feature """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + description: String """ - updated_at field predicates + metadata for the feature """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + metadata: Map + ownerID: ID + planIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateFileInput is used for create File object. +Input was generated by ent. +""" +input CreateFileInput { """ - created_by field predicates + tags associated with the object """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + tags: [String!] """ - updated_by field predicates + the name of the file provided in the payload key without the extension """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + providedFileName: String! """ - deleted_at field predicates + the extension of the file provided """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + providedFileExtension: String! """ - deleted_by field predicates + the computed size of the file in the original http request """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + providedFileSize: Int + persistedFileSize: Int """ - owner_id field predicates + the mime type detected by the system """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + detectedMimeType: String """ - display_name field predicates + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String + md5Hash: String """ - name field predicates + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + detectedContentType: String! """ - description field predicates + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String + storeKey: String """ - version field predicates + the category type of the file, if any (e.g. evidence, invoice, etc.) """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionEqualFold: String - versionContainsFold: String + categoryType: String + """ + the full URI of the file + """ + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String + userIDs: [ID!] + organizationIDs: [ID!] + groupIDs: [ID!] + contactIDs: [ID!] + entityIDs: [ID!] + usersettingIDs: [ID!] + organizationsettingIDs: [ID!] + templateIDs: [ID!] + documentdatumIDs: [ID!] + eventIDs: [ID!] } """ -EntitlementPlanWhereInput is used for filtering EntitlementPlan objects. +CreateGroupInput is used for create Group object. Input was generated by ent. """ -input EntitlementPlanWhereInput { - not: EntitlementPlanWhereInput - and: [EntitlementPlanWhereInput!] - or: [EntitlementPlanWhereInput!] +input CreateGroupInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - created_at field predicates + the name of the group - must be unique within the organization """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + name: String! """ - updated_at field predicates + the groups description """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + description: String """ - updated_by field predicates + the URL to an auto generated gravatar image for the group """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + gravatarLogoURL: String """ - deleted_at field predicates + the URL to an image uploaded by the customer for the groups avatar image """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + logoURL: String """ - deleted_by field predicates + The group's displayed 'friendly' name """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + displayName: String + ownerID: ID + settingID: ID! + userIDs: [ID!] + eventIDs: [ID!] + integrationIDs: [ID!] + fileIDs: [ID!] +} +""" +CreateGroupMembershipInput is used for create GroupMembership object. +Input was generated by ent. +""" +input CreateGroupMembershipInput { + role: GroupMembershipRole + groupID: ID! + userID: ID! + eventIDs: [ID!] +} +""" +CreateGroupSettingInput is used for create GroupSetting object. +Input was generated by ent. +""" +input CreateGroupSettingInput { """ - owner_id field predicates + tags associated with the object """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + tags: [String!] """ - display_name field predicates + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String + visibility: GroupSettingVisibility """ - name field predicates + the policy governing ability to freely join a group, whether it requires an invitation, application, or either """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + joinPolicy: GroupSettingJoinPolicy """ - description field predicates + whether to sync group members to slack groups """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String + syncToSlack: Boolean """ - version field predicates + whether to sync group members to github groups """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionEqualFold: String - versionContainsFold: String + syncToGithub: Boolean + groupID: ID +} +""" +CreateHushInput is used for create Hush object. +Input was generated by ent. +""" +input CreateHushInput { """ - owner edge predicates + the logical name of the corresponding hush secret or it's general grouping """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + name: String! """ - entitlements edge predicates + a description of the hush value or purpose, such as github PAT """ - hasEntitlements: Boolean - hasEntitlementsWith: [EntitlementWhereInput!] + description: String """ - base_features edge predicates + the kind of secret, such as sshkey, certificate, api token, etc. """ - hasBaseFeatures: Boolean - hasBaseFeaturesWith: [FeatureWhereInput!] + kind: String """ - events edge predicates + the generic name of a secret associated with the organization """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + secretName: String """ - features edge predicates + the secret value """ - hasFeatures: Boolean - hasFeaturesWith: [EntitlementPlanFeatureWhereInput!] + secretValue: String + integrationIDs: [ID!] + organizationIDs: [ID!] + eventIDs: [ID!] } """ -EntitlementWhereInput is used for filtering Entitlement objects. +CreateIntegrationInput is used for create Integration object. Input was generated by ent. """ -input EntitlementWhereInput { - not: EntitlementWhereInput - and: [EntitlementWhereInput!] - or: [EntitlementWhereInput!] +input CreateIntegrationInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - created_at field predicates + the name of the integration - must be unique within the organization """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + name: String! """ - updated_at field predicates + a description of the integration """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + description: String + kind: String + ownerID: ID + secretIDs: [ID!] + oauth2tokenIDs: [ID!] + eventIDs: [ID!] + webhookIDs: [ID!] +} +""" +CreateInternalPolicyInput is used for create InternalPolicy object. +Input was generated by ent. +""" +input CreateInternalPolicyInput { """ - deleted_at field predicates + tags associated with the object """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + tags: [String!] """ - deleted_by field predicates + the name of the policy """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + name: String! """ - owner_id field predicates + description of the policy """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + description: String! """ - plan_id field predicates + status of the policy """ - planID: ID - planIDNEQ: ID - planIDIn: [ID!] - planIDNotIn: [ID!] - planIDGT: ID - planIDGTE: ID - planIDLT: ID - planIDLTE: ID - planIDContains: ID - planIDHasPrefix: ID - planIDHasSuffix: ID - planIDEqualFold: ID - planIDContainsFold: ID + status: String """ - organization_id field predicates + type of the policy """ - organizationID: ID - organizationIDNEQ: ID - organizationIDIn: [ID!] - organizationIDNotIn: [ID!] - organizationIDGT: ID - organizationIDGTE: ID - organizationIDLT: ID - organizationIDLTE: ID - organizationIDContains: ID - organizationIDHasPrefix: ID - organizationIDHasSuffix: ID - organizationIDEqualFold: ID - organizationIDContainsFold: ID + policyType: String """ - external_customer_id field predicates + version of the policy """ - externalCustomerID: String - externalCustomerIDNEQ: String - externalCustomerIDIn: [String!] - externalCustomerIDNotIn: [String!] - externalCustomerIDGT: String - externalCustomerIDGTE: String - externalCustomerIDLT: String - externalCustomerIDLTE: String - externalCustomerIDContains: String - externalCustomerIDHasPrefix: String - externalCustomerIDHasSuffix: String - externalCustomerIDIsNil: Boolean - externalCustomerIDNotNil: Boolean - externalCustomerIDEqualFold: String - externalCustomerIDContainsFold: String + version: String """ - external_subscription_id field predicates + purpose and scope """ - externalSubscriptionID: String - externalSubscriptionIDNEQ: String - externalSubscriptionIDIn: [String!] - externalSubscriptionIDNotIn: [String!] - externalSubscriptionIDGT: String - externalSubscriptionIDGTE: String - externalSubscriptionIDLT: String - externalSubscriptionIDLTE: String - externalSubscriptionIDContains: String - externalSubscriptionIDHasPrefix: String - externalSubscriptionIDHasSuffix: String - externalSubscriptionIDIsNil: Boolean - externalSubscriptionIDNotNil: Boolean - externalSubscriptionIDEqualFold: String - externalSubscriptionIDContainsFold: String + purposeAndScope: String """ - expires field predicates + background of the policy """ - expires: Boolean - expiresNEQ: Boolean + background: String """ - expires_at field predicates + json data for the policy document """ - expiresAt: Time - expiresAtNEQ: Time - expiresAtIn: [Time!] - expiresAtNotIn: [Time!] - expiresAtGT: Time - expiresAtGTE: Time - expiresAtLT: Time - expiresAtLTE: Time - expiresAtIsNil: Boolean - expiresAtNotNil: Boolean + details: Map + controlobjectiveIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + narrativeIDs: [ID!] +} +""" +CreateInviteInput is used for create Invite object. +Input was generated by ent. +""" +input CreateInviteInput { """ - cancelled field predicates + the expiration date of the invitation token which defaults to 14 days in the future from creation """ - cancelled: Boolean - cancelledNEQ: Boolean + expires: Time """ - owner edge predicates + the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + recipient: String! """ - plan edge predicates + the status of the invitation """ - hasPlan: Boolean - hasPlanWith: [EntitlementPlanWhereInput!] + status: InviteInviteStatus + role: InviteRole """ - organization edge predicates + the number of attempts made to perform email send of the invitation, maximum of 5 """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] + sendAttempts: Int """ - events edge predicates + the user who initiated the invitation """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + requestorID: String + ownerID: ID + eventIDs: [ID!] } -type Entity implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String +""" +CreateNarrativeInput is used for create Narrative object. +Input was generated by ent. +""" +input CreateNarrativeInput { """ tags associated with the object """ tags: [String!] """ - the organization id that owns the object - """ - ownerID: ID - """ - the name of the entity - """ - name: String - """ - The entity's displayed 'friendly' name + the name of the narrative """ - displayName: String + name: String! """ - An optional description of the entity + the description of the narrative """ description: String """ - domains associated with the entity - """ - domains: [String!] - """ - The type of the entity + which controls are satisfied by the narrative """ - entityTypeID: ID + satisfies: String """ - status of the entity + json data for the narrative document """ - status: String - owner: Organization - contacts: [Contact!] - documents: [DocumentData!] - notes: [Note!] - files: [File!] - entityType: EntityType + details: Map + policyIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + controlobjectiveIDs: [ID!] } """ -A connection to a list of items. +CreateNoteInput is used for create Note object. +Input was generated by ent. """ -type EntityConnection { +input CreateNoteInput { """ - A list of edges. - """ - edges: [EntityEdge] - """ - Information to aid in pagination. + tags associated with the object """ - pageInfo: PageInfo! + tags: [String!] """ - Identifies the total count of items in the connection. + the text of the note """ - totalCount: Int! + text: String! + ownerID: ID + entityID: ID + subcontrolIDs: [ID!] } """ -An edge in a connection. +CreateOauthProviderInput is used for create OauthProvider object. +Input was generated by ent. """ -type EntityEdge { - """ - The item at the end of the edge. - """ - node: Entity - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type EntityHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntityHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String +input CreateOauthProviderInput { """ tags associated with the object """ tags: [String!] """ - the organization id that owns the object - """ - ownerID: String - """ - the name of the entity + the oauth provider's name """ - name: String + name: String! """ - The entity's displayed 'friendly' name + the client id for the oauth provider """ - displayName: String + clientID: String! """ - An optional description of the entity + the client secret """ - description: String + clientSecret: String! """ - domains associated with the entity + the redirect url """ - domains: [String!] + redirectURL: String! """ - The type of the entity + the scopes """ - entityTypeID: String + scopes: String! """ - status of the entity + the auth url of the provider """ - status: String -} -""" -A connection to a list of items. -""" -type EntityHistoryConnection { + authURL: String! """ - A list of edges. + the token url of the provider """ - edges: [EntityHistoryEdge] + tokenURL: String! """ - Information to aid in pagination. + the auth style, 0: auto detect 1: third party log in 2: log in with username and password """ - pageInfo: PageInfo! + authStyle: Uint! """ - Identifies the total count of items in the connection. + the URL to request user information by token """ - totalCount: Int! + infoURL: String! + ownerID: ID } """ -An edge in a connection. +CreateOhAuthTooTokenInput is used for create OhAuthTooToken object. +Input was generated by ent. """ -type EntityHistoryEdge { - """ - The item at the end of the edge. - """ - node: EntityHistory +input CreateOhAuthTooTokenInput { """ - A cursor for use in pagination. + tags associated with the object """ - cursor: Cursor! + tags: [String!] + clientID: String! + scopes: [String!] + nonce: String! + claimsUserID: String! + claimsUsername: String! + claimsEmail: String! + claimsEmailVerified: Boolean! + claimsGroups: [String!] + claimsPreferredUsername: String! + connectorID: String! + connectorData: [String!] + lastUsed: Time + integrationIDs: [ID!] + eventIDs: [ID!] } """ -EntityHistoryOpType is enum for the field operation +CreateOrgMembershipInput is used for create OrgMembership object. +Input was generated by ent. """ -enum EntityHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE +input CreateOrgMembershipInput { + role: OrgMembershipRole + organizationID: ID! + userID: ID! + eventIDs: [ID!] } """ -Ordering options for EntityHistory connections +CreateOrganizationInput is used for create Organization object. +Input was generated by ent. """ -input EntityHistoryOrder { +input CreateOrganizationInput { """ - The ordering direction. + tags associated with the object """ - direction: OrderDirection! = ASC + tags: [String!] """ - The field by which to order EntityHistories. + the name of the organization """ - field: EntityHistoryOrderField! -} -""" -Properties by which EntityHistory connections can be ordered. -""" -enum EntityHistoryOrderField { - name - display_name + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean + parentID: ID + groupIDs: [ID!] + templateIDs: [ID!] + integrationIDs: [ID!] + settingID: ID + documentdatumIDs: [ID!] + entitlementIDs: [ID!] + organizationEntitlementIDs: [ID!] + personalAccessTokenIDs: [ID!] + apiTokenIDs: [ID!] + oauthproviderIDs: [ID!] + userIDs: [ID!] + inviteIDs: [ID!] + subscriberIDs: [ID!] + webhookIDs: [ID!] + eventIDs: [ID!] + secretIDs: [ID!] + featureIDs: [ID!] + fileIDs: [ID!] + entitlementplanIDs: [ID!] + entityIDs: [ID!] + entitytypeIDs: [ID!] + contactIDs: [ID!] + noteIDs: [ID!] } """ -EntityHistoryWhereInput is used for filtering EntityHistory objects. +CreateOrganizationSettingInput is used for create OrganizationSetting object. Input was generated by ent. """ -input EntityHistoryWhereInput { - not: EntityHistoryWhereInput - and: [EntityHistoryWhereInput!] - or: [EntityHistoryWhereInput!] +input CreateOrganizationSettingInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - history_time field predicates + domains associated with the organization """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time + domains: [String!] """ - ref field predicates + Name of the person to contact for billing """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String + billingContact: String """ - operation field predicates + Email address of the person to contact for billing """ - operation: EntityHistoryOpType - operationNEQ: EntityHistoryOpType - operationIn: [EntityHistoryOpType!] - operationNotIn: [EntityHistoryOpType!] + billingEmail: String """ - created_at field predicates + Phone number to contact for billing """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + billingPhone: String """ - updated_at field predicates + Address to send billing information to """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + billingAddress: String """ - created_by field predicates + Usually government-issued tax ID or business ID such as ABN in Australia """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + taxIdentifier: String """ - updated_by field predicates + geographical location of the organization """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + geoLocation: OrganizationSettingRegion + organizationID: ID + fileIDs: [ID!] +} +""" +CreatePersonalAccessTokenInput is used for create PersonalAccessToken object. +Input was generated by ent. +""" +input CreatePersonalAccessTokenInput { """ - deleted_at field predicates + tags associated with the object """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + tags: [String!] """ - deleted_by field predicates + the name associated with the token """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + name: String! """ - owner_id field predicates + when the token expires """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + expiresAt: Time """ - name field predicates + a description of the token's purpose """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameIsNil: Boolean - nameNotNil: Boolean - nameEqualFold: String - nameContainsFold: String + description: String + scopes: [String!] + lastUsedAt: Time + ownerID: ID! + organizationIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateProcedureInput is used for create Procedure object. +Input was generated by ent. +""" +input CreateProcedureInput { """ - display_name field predicates + tags associated with the object """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String + tags: [String!] """ - entity_type_id field predicates + the name of the procedure """ - entityTypeID: String - entityTypeIDNEQ: String - entityTypeIDIn: [String!] - entityTypeIDNotIn: [String!] - entityTypeIDGT: String - entityTypeIDGTE: String - entityTypeIDLT: String - entityTypeIDLTE: String - entityTypeIDContains: String - entityTypeIDHasPrefix: String - entityTypeIDHasSuffix: String - entityTypeIDIsNil: Boolean - entityTypeIDNotNil: Boolean - entityTypeIDEqualFold: String - entityTypeIDContainsFold: String + name: String! """ - status field predicates + description of the procedure + """ + description: String + """ + status of the procedure """ status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String -} -""" -Ordering options for Entity connections -""" -input EntityOrder { """ - The ordering direction. + type of the procedure """ - direction: OrderDirection! = ASC + procedureType: String """ - The field by which to order Entities. + version of the procedure """ - field: EntityOrderField! + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map + controlIDs: [ID!] + internalpolicyIDs: [ID!] + narrativeIDs: [ID!] + riskIDs: [ID!] } """ -Properties by which Entity connections can be ordered. +CreateRiskInput is used for create Risk object. +Input was generated by ent. """ -enum EntityOrderField { - name - display_name -} -type EntityType implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String +input CreateRiskInput { """ tags associated with the object """ tags: [String!] """ - the organization id that owns the object + the name of the risk """ - ownerID: ID + name: String! """ - the name of the entity + description of the risk """ - name: String! - owner: Organization - entities: [Entity!] -} -""" -A connection to a list of items. -""" -type EntityTypeConnection { + description: String """ - A list of edges. + status of the risk - mitigated or not, inflight, etc. """ - edges: [EntityTypeEdge] + status: String """ - Information to aid in pagination. + type of the risk, e.g. strategic, operational, financial, external, etc. """ - pageInfo: PageInfo! + riskType: String """ - Identifies the total count of items in the connection. + business costs associated with the risk """ - totalCount: Int! + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map + controlIDs: [ID!] + procedureIDs: [ID!] + actionplanIDs: [ID!] } """ -An edge in a connection. +CreateStandardInput is used for create Standard object. +Input was generated by ent. """ -type EntityTypeEdge { +input CreateStandardInput { """ - The item at the end of the edge. + tags associated with the object """ - node: EntityType + tags: [String!] """ - A cursor for use in pagination. + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. """ - cursor: Cursor! -} -type EntityTypeHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntityTypeHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String + name: String! """ - tags associated with the object + description of the standard """ - tags: [String!] + description: String """ - the organization id that owns the object + family of the standard, e.g. 800-53, 800-171, 27001, etc. """ - ownerID: String + family: String """ - the name of the entity + status of the standard - active, deprecated, etc. """ - name: String! -} -""" -A connection to a list of items. -""" -type EntityTypeHistoryConnection { + status: String """ - A list of edges. + type of the standard - security, privacy, etc. """ - edges: [EntityTypeHistoryEdge] + standardType: String """ - Information to aid in pagination. + version of the standard """ - pageInfo: PageInfo! + version: String """ - Identifies the total count of items in the connection. + purpose and scope """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntityTypeHistoryEdge { + purposeAndScope: String """ - The item at the end of the edge. + background of the standard """ - node: EntityTypeHistory + background: String """ - A cursor for use in pagination. + which controls are satisfied by the standard """ - cursor: Cursor! -} -""" -EntityTypeHistoryOpType is enum for the field operation -""" -enum EntityTypeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE + satisfies: String + """ + json data with details of the standard + """ + details: Map + controlobjectiveIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + actionplanIDs: [ID!] } """ -Ordering options for EntityTypeHistory connections +CreateSubcontrolInput is used for create Subcontrol object. +Input was generated by ent. """ -input EntityTypeHistoryOrder { +input CreateSubcontrolInput { """ - The ordering direction. + tags associated with the object """ - direction: OrderDirection! = ASC + tags: [String!] """ - The field by which to order EntityTypeHistories. + the name of the subcontrol """ - field: EntityTypeHistoryOrderField! -} -""" -Properties by which EntityTypeHistory connections can be ordered. -""" -enum EntityTypeHistoryOrderField { - name -} -""" -EntityTypeHistoryWhereInput is used for filtering EntityTypeHistory objects. -Input was generated by ent. -""" -input EntityTypeHistoryWhereInput { - not: EntityTypeHistoryWhereInput - and: [EntityTypeHistoryWhereInput!] - or: [EntityTypeHistoryWhereInput!] + name: String! """ - id field predicates + description of the subcontrol """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + description: String """ - history_time field predicates + status of the subcontrol """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time + status: String """ - ref field predicates + type of the subcontrol """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String + subcontrolType: String """ - operation field predicates + version of the control """ - operation: EntityTypeHistoryOpType - operationNEQ: EntityTypeHistoryOpType - operationIn: [EntityTypeHistoryOpType!] - operationNotIn: [EntityTypeHistoryOpType!] + version: String """ - created_at field predicates + number of the subcontrol """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + subcontrolNumber: String """ - updated_at field predicates + subcontrol family """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + family: String """ - created_by field predicates + subcontrol class """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + class: String """ - updated_by field predicates + source of the control, e.g. framework, template, user-defined, etc. """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + source: String """ - deleted_at field predicates + mapped frameworks that the subcontrol is part of """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + mappedFrameworks: String """ - deleted_by field predicates + implementation evidence of the subcontrol """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + implementationEvidence: String """ - owner_id field predicates + implementation status """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + implementationStatus: String """ - name field predicates + date the subcontrol was implemented """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String -} -""" -Ordering options for EntityType connections -""" -input EntityTypeOrder { + implementationDate: Time """ - The ordering direction. + implementation verification """ - direction: OrderDirection! = ASC + implementationVerification: String """ - The field by which to order EntityTypes. + date the subcontrol implementation was verified """ - field: EntityTypeOrderField! -} -""" -Properties by which EntityType connections can be ordered. -""" -enum EntityTypeOrderField { - name + implementationVerificationDate: Time + """ + json data details of the subcontrol + """ + details: Map + controlIDs: [ID!] + userIDs: [ID!] + notesID: ID } """ -EntityTypeWhereInput is used for filtering EntityType objects. +CreateSubscriberInput is used for create Subscriber object. Input was generated by ent. """ -input EntityTypeWhereInput { - not: EntityTypeWhereInput - and: [EntityTypeWhereInput!] - or: [EntityTypeWhereInput!] +input CreateSubscriberInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - created_at field predicates + email address of the subscriber """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + email: String! """ - updated_at field predicates + phone number of the subscriber """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + phoneNumber: String + ownerID: ID + eventIDs: [ID!] +} +""" +CreateTFASettingInput is used for create TFASetting object. +Input was generated by ent. +""" +input CreateTFASettingInput { """ - created_by field predicates + tags associated with the object """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + tags: [String!] """ - updated_by field predicates + specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + totpAllowed: Boolean + ownerID: ID +} +""" +CreateTemplateInput is used for create Template object. +Input was generated by ent. +""" +input CreateTemplateInput { """ - deleted_at field predicates + tags associated with the object """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + tags: [String!] """ - deleted_by field predicates + the name of the template """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + name: String! """ - owner_id field predicates + the type of the template, either a provided template or an implementation (document) """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + templateType: TemplateDocumentType """ - name field predicates + the description of the template """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + description: String """ - owner edge predicates + the jsonschema object of the template """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + jsonconfig: JSON! """ - entities edge predicates + the uischema for the template to render in the UI """ - hasEntities: Boolean - hasEntitiesWith: [EntityWhereInput!] + uischema: JSON + ownerID: ID + documentIDs: [ID!] + fileIDs: [ID!] } """ -EntityWhereInput is used for filtering Entity objects. +CreateUserInput is used for create User object. Input was generated by ent. """ -input EntityWhereInput { - not: EntityWhereInput - and: [EntityWhereInput!] - or: [EntityWhereInput!] +input CreateUserInput { """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] + email: String! + firstName: String + lastName: String """ - created_at field predicates + The user's displayed 'friendly' name """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + displayName: String! """ - updated_at field predicates + URL of the user's remote avatar """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + avatarRemoteURL: String """ - created_by field predicates + The user's local avatar file """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + avatarLocalFile: String """ - updated_by field predicates + The time the user's (local) avatar was last updated """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + avatarUpdatedAt: Time """ - deleted_at field predicates + the time the user was last seen """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + lastSeen: Time """ - deleted_by field predicates + user password hash """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + password: String """ - owner_id field predicates + the Subject of the user JWT """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + sub: String """ - name field predicates + auth provider used to register the account """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameIsNil: Boolean - nameNotNil: Boolean - nameEqualFold: String - nameContainsFold: String + authProvider: UserAuthProvider """ - display_name field predicates + the user's role """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String + role: UserRole + personalAccessTokenIDs: [ID!] + tfaSettingIDs: [ID!] + settingID: ID! + emailVerificationTokenIDs: [ID!] + passwordResetTokenIDs: [ID!] + groupIDs: [ID!] + organizationIDs: [ID!] + webauthnIDs: [ID!] + fileIDs: [ID!] + fileID: ID + eventIDs: [ID!] + actionplanIDs: [ID!] + subcontrolIDs: [ID!] +} +""" +CreateUserSettingInput is used for create UserSetting object. +Input was generated by ent. +""" +input CreateUserSettingInput { """ - entity_type_id field predicates + tags associated with the object """ - entityTypeID: ID - entityTypeIDNEQ: ID - entityTypeIDIn: [ID!] - entityTypeIDNotIn: [ID!] - entityTypeIDGT: ID - entityTypeIDGTE: ID - entityTypeIDLT: ID - entityTypeIDLTE: ID - entityTypeIDContains: ID - entityTypeIDHasPrefix: ID - entityTypeIDHasSuffix: ID - entityTypeIDIsNil: Boolean - entityTypeIDNotNil: Boolean - entityTypeIDEqualFold: ID - entityTypeIDContainsFold: ID + tags: [String!] """ - status field predicates + user account is locked if unconfirmed or explicitly locked """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String + locked: Boolean """ - owner edge predicates + The time notifications regarding the user were silenced """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + silencedAt: Time """ - contacts edge predicates + The time the user was suspended """ - hasContacts: Boolean - hasContactsWith: [ContactWhereInput!] + suspendedAt: Time """ - documents edge predicates + status of the user account """ - hasDocuments: Boolean - hasDocumentsWith: [DocumentDataWhereInput!] + status: UserSettingUserStatus """ - notes edge predicates + whether the user has confirmed their email address """ - hasNotes: Boolean - hasNotesWith: [NoteWhereInput!] + emailConfirmed: Boolean """ - files edge predicates + specifies a user may complete authentication by verifying a WebAuthn capable device """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] + isWebauthnAllowed: Boolean """ - entity_type edge predicates + whether the user has two factor authentication enabled """ - hasEntityType: Boolean - hasEntityTypeWith: [EntityTypeWhereInput!] + isTfaEnabled: Boolean + userID: ID + defaultOrgID: ID + fileIDs: [ID!] } -type Event implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String +""" +CreateWebhookInput is used for create Webhook object. +Input was generated by ent. +""" +input CreateWebhookInput { """ tags associated with the object """ tags: [String!] - eventID: String - correlationID: String - eventType: String! - metadata: Map - user: [User!] - group: [Group!] - integration: [Integration!] - organization: [Organization!] - invite: [Invite!] - feature: [Feature!] - entitlementplan: [EntitlementPlan!] - entitlementplanfeature: [EntitlementPlanFeature!] - personalAccessToken: [PersonalAccessToken!] - oauth2token: [OhAuthTooToken!] - hush: [Hush!] - orgmembership: [OrgMembership!] - groupmembership: [GroupMembership!] - entitlement: [Entitlement!] - webhook: [Webhook!] - subscriber: [Subscriber!] - file: [File!] -} -""" -A connection to a list of items. -""" -type EventConnection { """ - A list of edges. + the name of the webhook """ - edges: [EventEdge] + name: String! """ - Information to aid in pagination. + a description of the webhook """ - pageInfo: PageInfo! + description: String """ - Identifies the total count of items in the connection. + the url to send the webhook to """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EventEdge { + destinationURL: String! """ - The item at the end of the edge. + indicates if the webhook is active and enabled """ - node: Event + enabled: Boolean """ - A cursor for use in pagination. + the number of failures """ - cursor: Cursor! + failures: Int + """ + the last error message + """ + lastError: String + """ + the last response + """ + lastResponse: String + ownerID: ID + eventIDs: [ID!] + integrationIDs: [ID!] } -type EventHistory implements Node { +""" +Define a Relay Cursor type: +https://relay.dev/graphql/connections.htm#sec-Cursor +""" +scalar Cursor +type DocumentData implements Node { id: ID! - historyTime: Time! - ref: String - operation: EventHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -5355,19 +4788,33 @@ type EventHistory implements Node { tags associated with the object """ tags: [String!] - eventID: String - correlationID: String - eventType: String! - metadata: Map + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the template id of the document + """ + templateID: ID! + """ + the json data of the document + """ + data: JSON! + owner: Organization + template: Template! + entity: [Entity!] + files: [File!] } """ A connection to a list of items. """ -type EventHistoryConnection { +type DocumentDataConnection { """ A list of edges. """ - edges: [EventHistoryEdge] + edges: [DocumentDataEdge] """ Information to aid in pagination. """ @@ -5380,32 +4827,90 @@ type EventHistoryConnection { """ An edge in a connection. """ -type EventHistoryEdge { +type DocumentDataEdge { """ The item at the end of the edge. """ - node: EventHistory + node: DocumentData """ A cursor for use in pagination. """ cursor: Cursor! } +type DocumentDataHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: DocumentDataHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the template id of the document + """ + templateID: String! + """ + the json data of the document + """ + data: JSON! +} """ -EventHistoryOpType is enum for the field operation +A connection to a list of items. """ -enum EventHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +type DocumentDataHistoryConnection { + """ + A list of edges. + """ + edges: [DocumentDataHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type DocumentDataHistoryEdge { + """ + The item at the end of the edge. + """ + node: DocumentDataHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +DocumentDataHistoryOpType is enum for the field operation +""" +enum DocumentDataHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -EventHistoryWhereInput is used for filtering EventHistory objects. +DocumentDataHistoryWhereInput is used for filtering DocumentDataHistory objects. Input was generated by ent. """ -input EventHistoryWhereInput { - not: EventHistoryWhereInput - and: [EventHistoryWhereInput!] - or: [EventHistoryWhereInput!] +input DocumentDataHistoryWhereInput { + not: DocumentDataHistoryWhereInput + and: [DocumentDataHistoryWhereInput!] + or: [DocumentDataHistoryWhereInput!] """ id field predicates """ @@ -5451,10 +4956,10 @@ input EventHistoryWhereInput { """ operation field predicates """ - operation: EventHistoryOpType - operationNEQ: EventHistoryOpType - operationIn: [EventHistoryOpType!] - operationNotIn: [EventHistoryOpType!] + operation: DocumentDataHistoryOpType + operationNEQ: DocumentDataHistoryOpType + operationIn: [DocumentDataHistoryOpType!] + operationNotIn: [DocumentDataHistoryOpType!] """ created_at field predicates """ @@ -5518,66 +5023,79 @@ input EventHistoryWhereInput { updatedByEqualFold: String updatedByContainsFold: String """ - event_id field predicates + deleted_at field predicates """ - eventID: String - eventIDNEQ: String - eventIDIn: [String!] - eventIDNotIn: [String!] - eventIDGT: String - eventIDGTE: String - eventIDLT: String - eventIDLTE: String - eventIDContains: String - eventIDHasPrefix: String - eventIDHasSuffix: String - eventIDIsNil: Boolean - eventIDNotNil: Boolean - eventIDEqualFold: String - eventIDContainsFold: String + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - correlation_id field predicates + deleted_by field predicates """ - correlationID: String - correlationIDNEQ: String - correlationIDIn: [String!] - correlationIDNotIn: [String!] - correlationIDGT: String - correlationIDGTE: String - correlationIDLT: String - correlationIDLTE: String - correlationIDContains: String - correlationIDHasPrefix: String - correlationIDHasSuffix: String - correlationIDIsNil: Boolean - correlationIDNotNil: Boolean - correlationIDEqualFold: String - correlationIDContainsFold: String + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - event_type field predicates + owner_id field predicates """ - eventType: String - eventTypeNEQ: String - eventTypeIn: [String!] - eventTypeNotIn: [String!] - eventTypeGT: String - eventTypeGTE: String - eventTypeLT: String - eventTypeLTE: String - eventTypeContains: String - eventTypeHasPrefix: String - eventTypeHasSuffix: String - eventTypeEqualFold: String - eventTypeContainsFold: String + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + template_id field predicates + """ + templateID: String + templateIDNEQ: String + templateIDIn: [String!] + templateIDNotIn: [String!] + templateIDGT: String + templateIDGTE: String + templateIDLT: String + templateIDLTE: String + templateIDContains: String + templateIDHasPrefix: String + templateIDHasSuffix: String + templateIDEqualFold: String + templateIDContainsFold: String } """ -EventWhereInput is used for filtering Event objects. +DocumentDataWhereInput is used for filtering DocumentData objects. Input was generated by ent. """ -input EventWhereInput { - not: EventWhereInput - and: [EventWhereInput!] - or: [EventWhereInput!] +input DocumentDataWhereInput { + not: DocumentDataWhereInput + and: [DocumentDataWhereInput!] + or: [DocumentDataWhereInput!] """ id field predicates """ @@ -5654,192 +5172,148 @@ input EventWhereInput { updatedByEqualFold: String updatedByContainsFold: String """ - event_id field predicates + deleted_at field predicates """ - eventID: String - eventIDNEQ: String - eventIDIn: [String!] - eventIDNotIn: [String!] - eventIDGT: String - eventIDGTE: String - eventIDLT: String - eventIDLTE: String - eventIDContains: String - eventIDHasPrefix: String - eventIDHasSuffix: String - eventIDIsNil: Boolean - eventIDNotNil: Boolean - eventIDEqualFold: String - eventIDContainsFold: String + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - correlation_id field predicates + deleted_by field predicates """ - correlationID: String - correlationIDNEQ: String - correlationIDIn: [String!] - correlationIDNotIn: [String!] - correlationIDGT: String - correlationIDGTE: String - correlationIDLT: String - correlationIDLTE: String - correlationIDContains: String - correlationIDHasPrefix: String - correlationIDHasSuffix: String - correlationIDIsNil: Boolean - correlationIDNotNil: Boolean - correlationIDEqualFold: String - correlationIDContainsFold: String - """ - event_type field predicates - """ - eventType: String - eventTypeNEQ: String - eventTypeIn: [String!] - eventTypeNotIn: [String!] - eventTypeGT: String - eventTypeGTE: String - eventTypeLT: String - eventTypeLTE: String - eventTypeContains: String - eventTypeHasPrefix: String - eventTypeHasSuffix: String - eventTypeEqualFold: String - eventTypeContainsFold: String - """ - user edge predicates - """ - hasUser: Boolean - hasUserWith: [UserWhereInput!] - """ - group edge predicates - """ - hasGroup: Boolean - hasGroupWith: [GroupWhereInput!] - """ - integration edge predicates - """ - hasIntegration: Boolean - hasIntegrationWith: [IntegrationWhereInput!] - """ - organization edge predicates - """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] - """ - invite edge predicates - """ - hasInvite: Boolean - hasInviteWith: [InviteWhereInput!] - """ - feature edge predicates - """ - hasFeature: Boolean - hasFeatureWith: [FeatureWhereInput!] - """ - entitlementplan edge predicates - """ - hasEntitlementplan: Boolean - hasEntitlementplanWith: [EntitlementPlanWhereInput!] - """ - entitlementplanfeature edge predicates - """ - hasEntitlementplanfeature: Boolean - hasEntitlementplanfeatureWith: [EntitlementPlanFeatureWhereInput!] - """ - personal_access_token edge predicates - """ - hasPersonalAccessToken: Boolean - hasPersonalAccessTokenWith: [PersonalAccessTokenWhereInput!] - """ - oauth2token edge predicates - """ - hasOauth2token: Boolean - hasOauth2tokenWith: [OhAuthTooTokenWhereInput!] - """ - hush edge predicates - """ - hasHush: Boolean - hasHushWith: [HushWhereInput!] + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - orgmembership edge predicates + owner_id field predicates """ - hasOrgmembership: Boolean - hasOrgmembershipWith: [OrgMembershipWhereInput!] + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - groupmembership edge predicates + template_id field predicates """ - hasGroupmembership: Boolean - hasGroupmembershipWith: [GroupMembershipWhereInput!] + templateID: ID + templateIDNEQ: ID + templateIDIn: [ID!] + templateIDNotIn: [ID!] + templateIDGT: ID + templateIDGTE: ID + templateIDLT: ID + templateIDLTE: ID + templateIDContains: ID + templateIDHasPrefix: ID + templateIDHasSuffix: ID + templateIDEqualFold: ID + templateIDContainsFold: ID """ - entitlement edge predicates + owner edge predicates """ - hasEntitlement: Boolean - hasEntitlementWith: [EntitlementWhereInput!] + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - webhook edge predicates + template edge predicates """ - hasWebhook: Boolean - hasWebhookWith: [WebhookWhereInput!] + hasTemplate: Boolean + hasTemplateWith: [TemplateWhereInput!] """ - subscriber edge predicates + entity edge predicates """ - hasSubscriber: Boolean - hasSubscriberWith: [SubscriberWhereInput!] + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] """ - file edge predicates + files edge predicates """ - hasFile: Boolean - hasFileWith: [FileWhereInput!] + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] } -type Feature implements Node { +type Entitlement implements Node { id: ID! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - deletedAt: Time - deletedBy: String """ tags associated with the object """ tags: [String!] + deletedAt: Time + deletedBy: String """ the organization id that owns the object """ ownerID: ID """ - the unique name of the feature + the plan to which the entitlement belongs """ - name: String! + planID: ID! """ - the displayed 'friendly' name of the feature + the organization to which the entitlement belongs """ - displayName: String + organizationID: ID! """ - enabled features are available for use + used to store references to external systems, e.g. Stripe """ - enabled: Boolean! + externalCustomerID: String """ - a description of the feature + used to store references to external systems, e.g. Stripe """ - description: String + externalSubscriptionID: String """ - metadata for the feature + whether or not the customers entitlement expires - expires_at will show the time """ - metadata: Map + expires: Boolean! + """ + the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + """ + expiresAt: Time + """ + whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + """ + cancelled: Boolean! owner: Organization - plans: [EntitlementPlan!] + plan: EntitlementPlan! + organization: Organization! events: [Event!] - features: [EntitlementPlanFeature!] } """ A connection to a list of items. """ -type FeatureConnection { +type EntitlementConnection { """ A list of edges. """ - edges: [FeatureEdge] + edges: [EntitlementEdge] """ Information to aid in pagination. """ @@ -5852,64 +5326,72 @@ type FeatureConnection { """ An edge in a connection. """ -type FeatureEdge { +type EntitlementEdge { """ The item at the end of the edge. """ - node: Feature + node: Entitlement """ A cursor for use in pagination. """ cursor: Cursor! } -type FeatureHistory implements Node { +type EntitlementHistory implements Node { id: ID! historyTime: Time! ref: String - operation: FeatureHistoryOpType! + operation: EntitlementHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - deletedAt: Time - deletedBy: String """ tags associated with the object """ tags: [String!] + deletedAt: Time + deletedBy: String """ the organization id that owns the object """ ownerID: String """ - the unique name of the feature + the plan to which the entitlement belongs """ - name: String! + planID: String! """ - the displayed 'friendly' name of the feature + the organization to which the entitlement belongs """ - displayName: String + organizationID: String! """ - enabled features are available for use + used to store references to external systems, e.g. Stripe """ - enabled: Boolean! + externalCustomerID: String """ - a description of the feature + used to store references to external systems, e.g. Stripe """ - description: String + externalSubscriptionID: String """ - metadata for the feature + whether or not the customers entitlement expires - expires_at will show the time """ - metadata: Map + expires: Boolean! + """ + the time at which a customer's entitlement will expire, e.g. they've cancelled but paid through the end of the month + """ + expiresAt: Time + """ + whether or not the customer has cancelled their entitlement - usually used in conjunction with expires and expires at + """ + cancelled: Boolean! } """ A connection to a list of items. """ -type FeatureHistoryConnection { +type EntitlementHistoryConnection { """ A list of edges. """ - edges: [FeatureHistoryEdge] + edges: [EntitlementHistoryEdge] """ Information to aid in pagination. """ @@ -5922,32 +5404,32 @@ type FeatureHistoryConnection { """ An edge in a connection. """ -type FeatureHistoryEdge { +type EntitlementHistoryEdge { """ The item at the end of the edge. """ - node: FeatureHistory + node: EntitlementHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -FeatureHistoryOpType is enum for the field operation +EntitlementHistoryOpType is enum for the field operation """ -enum FeatureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EntitlementHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -FeatureHistoryWhereInput is used for filtering FeatureHistory objects. +EntitlementHistoryWhereInput is used for filtering EntitlementHistory objects. Input was generated by ent. """ -input FeatureHistoryWhereInput { - not: FeatureHistoryWhereInput - and: [FeatureHistoryWhereInput!] - or: [FeatureHistoryWhereInput!] +input EntitlementHistoryWhereInput { + not: EntitlementHistoryWhereInput + and: [EntitlementHistoryWhereInput!] + or: [EntitlementHistoryWhereInput!] """ id field predicates """ @@ -5993,10 +5475,10 @@ input FeatureHistoryWhereInput { """ operation field predicates """ - operation: FeatureHistoryOpType - operationNEQ: FeatureHistoryOpType - operationIn: [FeatureHistoryOpType!] - operationNotIn: [FeatureHistoryOpType!] + operation: EntitlementHistoryOpType + operationNEQ: EntitlementHistoryOpType + operationIn: [EntitlementHistoryOpType!] + operationNotIn: [EntitlementHistoryOpType!] """ created_at field predicates """ @@ -6109,274 +5591,170 @@ input FeatureHistoryWhereInput { ownerIDEqualFold: String ownerIDContainsFold: String """ - name field predicates + plan_id field predicates """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + planID: String + planIDNEQ: String + planIDIn: [String!] + planIDNotIn: [String!] + planIDGT: String + planIDGTE: String + planIDLT: String + planIDLTE: String + planIDContains: String + planIDHasPrefix: String + planIDHasSuffix: String + planIDEqualFold: String + planIDContainsFold: String """ - display_name field predicates + organization_id field predicates """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDEqualFold: String + organizationIDContainsFold: String """ - enabled field predicates + external_customer_id field predicates """ - enabled: Boolean - enabledNEQ: Boolean + externalCustomerID: String + externalCustomerIDNEQ: String + externalCustomerIDIn: [String!] + externalCustomerIDNotIn: [String!] + externalCustomerIDGT: String + externalCustomerIDGTE: String + externalCustomerIDLT: String + externalCustomerIDLTE: String + externalCustomerIDContains: String + externalCustomerIDHasPrefix: String + externalCustomerIDHasSuffix: String + externalCustomerIDIsNil: Boolean + externalCustomerIDNotNil: Boolean + externalCustomerIDEqualFold: String + externalCustomerIDContainsFold: String """ - description field predicates + external_subscription_id field predicates """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String -} -""" -FeatureWhereInput is used for filtering Feature objects. -Input was generated by ent. -""" -input FeatureWhereInput { - not: FeatureWhereInput - and: [FeatureWhereInput!] - or: [FeatureWhereInput!] + externalSubscriptionID: String + externalSubscriptionIDNEQ: String + externalSubscriptionIDIn: [String!] + externalSubscriptionIDNotIn: [String!] + externalSubscriptionIDGT: String + externalSubscriptionIDGTE: String + externalSubscriptionIDLT: String + externalSubscriptionIDLTE: String + externalSubscriptionIDContains: String + externalSubscriptionIDHasPrefix: String + externalSubscriptionIDHasSuffix: String + externalSubscriptionIDIsNil: Boolean + externalSubscriptionIDNotNil: Boolean + externalSubscriptionIDEqualFold: String + externalSubscriptionIDContainsFold: String """ - id field predicates + expires field predicates """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + expires: Boolean + expiresNEQ: Boolean """ - created_at field predicates + expires_at field predicates """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean """ - updated_at field predicates + cancelled field predicates """ + cancelled: Boolean + cancelledNEQ: Boolean +} +type EntitlementPlan implements Node { + id: ID! + createdAt: Time updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - created_by field predicates + tags associated with the object """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + tags: [String!] """ - updated_by field predicates + the organization id that owns the object """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + ownerID: ID """ - deleted_at field predicates + the displayed 'friendly' name of the plan """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + displayName: String """ - deleted_by field predicates + the unique name of the plan """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + name: String! """ - owner_id field predicates + a description of the plan """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + description: String """ - display_name field predicates + the version of the plan """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String + version: String! """ - enabled field predicates + metadata for the plan """ - enabled: Boolean - enabledNEQ: Boolean + metadata: Map + owner: Organization + entitlements: [Entitlement!] + baseFeatures: [Feature!] + events: [Event!] + features: [EntitlementPlanFeature!] +} +""" +A connection to a list of items. +""" +type EntitlementPlanConnection { """ - description field predicates + A list of edges. """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String + edges: [EntitlementPlanEdge] """ - owner edge predicates + Information to aid in pagination. """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + pageInfo: PageInfo! """ - plans edge predicates + Identifies the total count of items in the connection. """ - hasPlans: Boolean - hasPlansWith: [EntitlementPlanWhereInput!] + totalCount: Int! +} +""" +An edge in a connection. +""" +type EntitlementPlanEdge { """ - events edge predicates + The item at the end of the edge. """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + node: EntitlementPlan """ - features edge predicates + A cursor for use in pagination. """ - hasFeatures: Boolean - hasFeaturesWith: [EntitlementPlanFeatureWhereInput!] + cursor: Cursor! } -type File implements Node { +type EntitlementPlanFeature implements Node { id: ID! createdAt: Time updatedAt: Time @@ -6389,73 +5767,28 @@ type File implements Node { """ tags: [String!] """ - the name of the file provided in the payload key without the extension - """ - providedFileName: String! - """ - the extension of the file provided - """ - providedFileExtension: String! - """ - the computed size of the file in the original http request - """ - providedFileSize: Int - persistedFileSize: Int - """ - the mime type detected by the system - """ - detectedMimeType: String - """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage - """ - md5Hash: String - """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types - """ - detectedContentType: String! - """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key - """ - storeKey: String - """ - the category type of the file, if any (e.g. evidence, invoice, etc.) - """ - categoryType: String - """ - the full URI of the file - """ - uri: String - """ - the storage scheme of the file, e.g. file://, s3://, etc. - """ - storageScheme: String - """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + the organization id that owns the object """ - storageVolume: String + ownerID: ID """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + metadata for the entitlement plan feature such as usage limits """ - storagePath: String - user: [User!] - organization: [Organization!] - group: [Group!] - contact: [Contact!] - entity: [Entity!] - usersetting: [UserSetting!] - organizationsetting: [OrganizationSetting!] - template: [Template!] - documentdata: [DocumentData!] + metadata: Map + planID: ID! + featureID: ID! + owner: Organization + plan: EntitlementPlan! + feature: Feature! events: [Event!] } """ A connection to a list of items. """ -type FileConnection { +type EntitlementPlanFeatureConnection { """ A list of edges. """ - edges: [FileEdge] + edges: [EntitlementPlanFeatureEdge] """ Information to aid in pagination. """ @@ -6468,21 +5801,21 @@ type FileConnection { """ An edge in a connection. """ -type FileEdge { +type EntitlementPlanFeatureEdge { """ The item at the end of the edge. """ - node: File + node: EntitlementPlanFeature """ A cursor for use in pagination. """ cursor: Cursor! } -type FileHistory implements Node { +type EntitlementPlanFeatureHistory implements Node { id: ID! historyTime: Time! ref: String - operation: FileHistoryOpType! + operation: EntitlementPlanFeatureHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -6494,63 +5827,24 @@ type FileHistory implements Node { """ tags: [String!] """ - the name of the file provided in the payload key without the extension - """ - providedFileName: String! - """ - the extension of the file provided - """ - providedFileExtension: String! - """ - the computed size of the file in the original http request - """ - providedFileSize: Int - persistedFileSize: Int - """ - the mime type detected by the system - """ - detectedMimeType: String - """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage - """ - md5Hash: String - """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types - """ - detectedContentType: String! - """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key - """ - storeKey: String - """ - the category type of the file, if any (e.g. evidence, invoice, etc.) - """ - categoryType: String - """ - the full URI of the file - """ - uri: String - """ - the storage scheme of the file, e.g. file://, s3://, etc. - """ - storageScheme: String - """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + the organization id that owns the object """ - storageVolume: String + ownerID: String """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + metadata for the entitlement plan feature such as usage limits """ - storagePath: String + metadata: Map + planID: String! + featureID: String! } """ A connection to a list of items. """ -type FileHistoryConnection { +type EntitlementPlanFeatureHistoryConnection { """ A list of edges. """ - edges: [FileHistoryEdge] + edges: [EntitlementPlanFeatureHistoryEdge] """ Information to aid in pagination. """ @@ -6563,34 +5857,34 @@ type FileHistoryConnection { """ An edge in a connection. """ -type FileHistoryEdge { +type EntitlementPlanFeatureHistoryEdge { """ The item at the end of the edge. """ - node: FileHistory + node: EntitlementPlanFeatureHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -FileHistoryOpType is enum for the field operation +EntitlementPlanFeatureHistoryOpType is enum for the field operation """ -enum FileHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EntitlementPlanFeatureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -FileHistoryWhereInput is used for filtering FileHistory objects. +EntitlementPlanFeatureHistoryWhereInput is used for filtering EntitlementPlanFeatureHistory objects. Input was generated by ent. """ -input FileHistoryWhereInput { - not: FileHistoryWhereInput - and: [FileHistoryWhereInput!] - or: [FileHistoryWhereInput!] - """ - id field predicates +input EntitlementPlanFeatureHistoryWhereInput { + not: EntitlementPlanFeatureHistoryWhereInput + and: [EntitlementPlanFeatureHistoryWhereInput!] + or: [EntitlementPlanFeatureHistoryWhereInput!] + """ + id field predicates """ id: ID idNEQ: ID @@ -6634,10 +5928,10 @@ input FileHistoryWhereInput { """ operation field predicates """ - operation: FileHistoryOpType - operationNEQ: FileHistoryOpType - operationIn: [FileHistoryOpType!] - operationNotIn: [FileHistoryOpType!] + operation: EntitlementPlanFeatureHistoryOpType + operationNEQ: EntitlementPlanFeatureHistoryOpType + operationIn: [EntitlementPlanFeatureHistoryOpType!] + operationNotIn: [EntitlementPlanFeatureHistoryOpType!] """ created_at field predicates """ @@ -6732,232 +6026,257 @@ input FileHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - provided_file_name field predicates + owner_id field predicates """ - providedFileName: String - providedFileNameNEQ: String - providedFileNameIn: [String!] - providedFileNameNotIn: [String!] - providedFileNameGT: String - providedFileNameGTE: String - providedFileNameLT: String - providedFileNameLTE: String - providedFileNameContains: String - providedFileNameHasPrefix: String - providedFileNameHasSuffix: String - providedFileNameEqualFold: String - providedFileNameContainsFold: String + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ - provided_file_extension field predicates + plan_id field predicates """ - providedFileExtension: String - providedFileExtensionNEQ: String - providedFileExtensionIn: [String!] - providedFileExtensionNotIn: [String!] - providedFileExtensionGT: String - providedFileExtensionGTE: String - providedFileExtensionLT: String - providedFileExtensionLTE: String - providedFileExtensionContains: String - providedFileExtensionHasPrefix: String - providedFileExtensionHasSuffix: String - providedFileExtensionEqualFold: String - providedFileExtensionContainsFold: String + planID: String + planIDNEQ: String + planIDIn: [String!] + planIDNotIn: [String!] + planIDGT: String + planIDGTE: String + planIDLT: String + planIDLTE: String + planIDContains: String + planIDHasPrefix: String + planIDHasSuffix: String + planIDEqualFold: String + planIDContainsFold: String """ - provided_file_size field predicates + feature_id field predicates """ - providedFileSize: Int - providedFileSizeNEQ: Int - providedFileSizeIn: [Int!] - providedFileSizeNotIn: [Int!] - providedFileSizeGT: Int - providedFileSizeGTE: Int - providedFileSizeLT: Int - providedFileSizeLTE: Int - providedFileSizeIsNil: Boolean - providedFileSizeNotNil: Boolean + featureID: String + featureIDNEQ: String + featureIDIn: [String!] + featureIDNotIn: [String!] + featureIDGT: String + featureIDGTE: String + featureIDLT: String + featureIDLTE: String + featureIDContains: String + featureIDHasPrefix: String + featureIDHasSuffix: String + featureIDEqualFold: String + featureIDContainsFold: String +} +""" +EntitlementPlanFeatureWhereInput is used for filtering EntitlementPlanFeature objects. +Input was generated by ent. +""" +input EntitlementPlanFeatureWhereInput { + not: EntitlementPlanFeatureWhereInput + and: [EntitlementPlanFeatureWhereInput!] + or: [EntitlementPlanFeatureWhereInput!] """ - persisted_file_size field predicates + id field predicates """ - persistedFileSize: Int - persistedFileSizeNEQ: Int - persistedFileSizeIn: [Int!] - persistedFileSizeNotIn: [Int!] - persistedFileSizeGT: Int - persistedFileSizeGTE: Int - persistedFileSizeLT: Int - persistedFileSizeLTE: Int - persistedFileSizeIsNil: Boolean - persistedFileSizeNotNil: Boolean + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - detected_mime_type field predicates + created_at field predicates """ - detectedMimeType: String - detectedMimeTypeNEQ: String - detectedMimeTypeIn: [String!] - detectedMimeTypeNotIn: [String!] - detectedMimeTypeGT: String - detectedMimeTypeGTE: String - detectedMimeTypeLT: String - detectedMimeTypeLTE: String - detectedMimeTypeContains: String - detectedMimeTypeHasPrefix: String - detectedMimeTypeHasSuffix: String - detectedMimeTypeIsNil: Boolean - detectedMimeTypeNotNil: Boolean - detectedMimeTypeEqualFold: String - detectedMimeTypeContainsFold: String + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - md5_hash field predicates + updated_at field predicates """ - md5Hash: String - md5HashNEQ: String - md5HashIn: [String!] - md5HashNotIn: [String!] - md5HashGT: String - md5HashGTE: String - md5HashLT: String - md5HashLTE: String - md5HashContains: String - md5HashHasPrefix: String - md5HashHasSuffix: String - md5HashIsNil: Boolean - md5HashNotNil: Boolean - md5HashEqualFold: String - md5HashContainsFold: String + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - detected_content_type field predicates + created_by field predicates """ - detectedContentType: String - detectedContentTypeNEQ: String - detectedContentTypeIn: [String!] - detectedContentTypeNotIn: [String!] - detectedContentTypeGT: String - detectedContentTypeGTE: String - detectedContentTypeLT: String - detectedContentTypeLTE: String - detectedContentTypeContains: String - detectedContentTypeHasPrefix: String - detectedContentTypeHasSuffix: String - detectedContentTypeEqualFold: String - detectedContentTypeContainsFold: String + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - store_key field predicates + updated_by field predicates """ - storeKey: String - storeKeyNEQ: String - storeKeyIn: [String!] - storeKeyNotIn: [String!] - storeKeyGT: String - storeKeyGTE: String - storeKeyLT: String - storeKeyLTE: String - storeKeyContains: String - storeKeyHasPrefix: String - storeKeyHasSuffix: String - storeKeyIsNil: Boolean - storeKeyNotNil: Boolean - storeKeyEqualFold: String - storeKeyContainsFold: String + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - category_type field predicates + deleted_at field predicates """ - categoryType: String - categoryTypeNEQ: String - categoryTypeIn: [String!] - categoryTypeNotIn: [String!] - categoryTypeGT: String - categoryTypeGTE: String - categoryTypeLT: String - categoryTypeLTE: String - categoryTypeContains: String - categoryTypeHasPrefix: String - categoryTypeHasSuffix: String - categoryTypeIsNil: Boolean - categoryTypeNotNil: Boolean - categoryTypeEqualFold: String - categoryTypeContainsFold: String + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - uri field predicates + deleted_by field predicates """ - uri: String - uriNEQ: String - uriIn: [String!] - uriNotIn: [String!] - uriGT: String - uriGTE: String - uriLT: String - uriLTE: String - uriContains: String - uriHasPrefix: String - uriHasSuffix: String - uriIsNil: Boolean - uriNotNil: Boolean - uriEqualFold: String - uriContainsFold: String + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String +} +type EntitlementPlanHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: EntitlementPlanHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - storage_scheme field predicates + tags associated with the object """ - storageScheme: String - storageSchemeNEQ: String - storageSchemeIn: [String!] - storageSchemeNotIn: [String!] - storageSchemeGT: String - storageSchemeGTE: String - storageSchemeLT: String - storageSchemeLTE: String - storageSchemeContains: String - storageSchemeHasPrefix: String - storageSchemeHasSuffix: String - storageSchemeIsNil: Boolean - storageSchemeNotNil: Boolean - storageSchemeEqualFold: String - storageSchemeContainsFold: String + tags: [String!] """ - storage_volume field predicates + the organization id that owns the object """ - storageVolume: String - storageVolumeNEQ: String - storageVolumeIn: [String!] - storageVolumeNotIn: [String!] - storageVolumeGT: String - storageVolumeGTE: String - storageVolumeLT: String - storageVolumeLTE: String - storageVolumeContains: String - storageVolumeHasPrefix: String - storageVolumeHasSuffix: String - storageVolumeIsNil: Boolean - storageVolumeNotNil: Boolean - storageVolumeEqualFold: String - storageVolumeContainsFold: String + ownerID: String """ - storage_path field predicates + the displayed 'friendly' name of the plan """ - storagePath: String - storagePathNEQ: String - storagePathIn: [String!] - storagePathNotIn: [String!] - storagePathGT: String - storagePathGTE: String - storagePathLT: String - storagePathLTE: String - storagePathContains: String - storagePathHasPrefix: String - storagePathHasSuffix: String - storagePathIsNil: Boolean - storagePathNotNil: Boolean - storagePathEqualFold: String - storagePathContainsFold: String + displayName: String + """ + the unique name of the plan + """ + name: String! + """ + a description of the plan + """ + description: String + """ + the version of the plan + """ + version: String! + """ + metadata for the plan + """ + metadata: Map } """ -FileWhereInput is used for filtering File objects. +A connection to a list of items. +""" +type EntitlementPlanHistoryConnection { + """ + A list of edges. + """ + edges: [EntitlementPlanHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type EntitlementPlanHistoryEdge { + """ + The item at the end of the edge. + """ + node: EntitlementPlanHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +EntitlementPlanHistoryOpType is enum for the field operation +""" +enum EntitlementPlanHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +EntitlementPlanHistoryWhereInput is used for filtering EntitlementPlanHistory objects. Input was generated by ent. """ -input FileWhereInput { - not: FileWhereInput - and: [FileWhereInput!] - or: [FileWhereInput!] +input EntitlementPlanHistoryWhereInput { + not: EntitlementPlanHistoryWhereInput + and: [EntitlementPlanHistoryWhereInput!] + or: [EntitlementPlanHistoryWhereInput!] """ id field predicates """ @@ -6972,6 +6291,42 @@ input FileWhereInput { idEqualFold: ID idContainsFold: ID """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: EntitlementPlanHistoryOpType + operationNEQ: EntitlementPlanHistoryOpType + operationIn: [EntitlementPlanHistoryOpType!] + operationNotIn: [EntitlementPlanHistoryOpType!] + """ created_at field predicates """ createdAt: Time @@ -7065,531 +6420,367 @@ input FileWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - provided_file_name field predicates + owner_id field predicates """ - providedFileName: String - providedFileNameNEQ: String - providedFileNameIn: [String!] - providedFileNameNotIn: [String!] - providedFileNameGT: String - providedFileNameGTE: String - providedFileNameLT: String - providedFileNameLTE: String - providedFileNameContains: String - providedFileNameHasPrefix: String - providedFileNameHasSuffix: String - providedFileNameEqualFold: String - providedFileNameContainsFold: String + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ - provided_file_extension field predicates + display_name field predicates """ - providedFileExtension: String - providedFileExtensionNEQ: String - providedFileExtensionIn: [String!] - providedFileExtensionNotIn: [String!] - providedFileExtensionGT: String - providedFileExtensionGTE: String - providedFileExtensionLT: String - providedFileExtensionLTE: String - providedFileExtensionContains: String - providedFileExtensionHasPrefix: String - providedFileExtensionHasSuffix: String - providedFileExtensionEqualFold: String - providedFileExtensionContainsFold: String + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String """ - provided_file_size field predicates + name field predicates """ - providedFileSize: Int - providedFileSizeNEQ: Int - providedFileSizeIn: [Int!] - providedFileSizeNotIn: [Int!] - providedFileSizeGT: Int - providedFileSizeGTE: Int - providedFileSizeLT: Int - providedFileSizeLTE: Int - providedFileSizeIsNil: Boolean - providedFileSizeNotNil: Boolean + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - persisted_file_size field predicates + description field predicates """ - persistedFileSize: Int - persistedFileSizeNEQ: Int - persistedFileSizeIn: [Int!] - persistedFileSizeNotIn: [Int!] - persistedFileSizeGT: Int - persistedFileSizeGTE: Int - persistedFileSizeLT: Int - persistedFileSizeLTE: Int - persistedFileSizeIsNil: Boolean - persistedFileSizeNotNil: Boolean + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - detected_mime_type field predicates + version field predicates """ - detectedMimeType: String - detectedMimeTypeNEQ: String - detectedMimeTypeIn: [String!] - detectedMimeTypeNotIn: [String!] - detectedMimeTypeGT: String - detectedMimeTypeGTE: String - detectedMimeTypeLT: String - detectedMimeTypeLTE: String - detectedMimeTypeContains: String - detectedMimeTypeHasPrefix: String - detectedMimeTypeHasSuffix: String - detectedMimeTypeIsNil: Boolean - detectedMimeTypeNotNil: Boolean - detectedMimeTypeEqualFold: String - detectedMimeTypeContainsFold: String + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionEqualFold: String + versionContainsFold: String +} +""" +EntitlementPlanWhereInput is used for filtering EntitlementPlan objects. +Input was generated by ent. +""" +input EntitlementPlanWhereInput { + not: EntitlementPlanWhereInput + and: [EntitlementPlanWhereInput!] + or: [EntitlementPlanWhereInput!] """ - md5_hash field predicates + id field predicates """ - md5Hash: String - md5HashNEQ: String - md5HashIn: [String!] - md5HashNotIn: [String!] - md5HashGT: String - md5HashGTE: String - md5HashLT: String - md5HashLTE: String - md5HashContains: String - md5HashHasPrefix: String - md5HashHasSuffix: String - md5HashIsNil: Boolean - md5HashNotNil: Boolean - md5HashEqualFold: String - md5HashContainsFold: String + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - detected_content_type field predicates + created_at field predicates """ - detectedContentType: String - detectedContentTypeNEQ: String - detectedContentTypeIn: [String!] - detectedContentTypeNotIn: [String!] - detectedContentTypeGT: String - detectedContentTypeGTE: String - detectedContentTypeLT: String - detectedContentTypeLTE: String - detectedContentTypeContains: String - detectedContentTypeHasPrefix: String - detectedContentTypeHasSuffix: String - detectedContentTypeEqualFold: String - detectedContentTypeContainsFold: String + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - store_key field predicates + updated_at field predicates """ - storeKey: String - storeKeyNEQ: String - storeKeyIn: [String!] - storeKeyNotIn: [String!] - storeKeyGT: String - storeKeyGTE: String - storeKeyLT: String - storeKeyLTE: String - storeKeyContains: String - storeKeyHasPrefix: String - storeKeyHasSuffix: String - storeKeyIsNil: Boolean - storeKeyNotNil: Boolean - storeKeyEqualFold: String - storeKeyContainsFold: String + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - category_type field predicates + created_by field predicates """ - categoryType: String - categoryTypeNEQ: String - categoryTypeIn: [String!] - categoryTypeNotIn: [String!] - categoryTypeGT: String - categoryTypeGTE: String - categoryTypeLT: String - categoryTypeLTE: String - categoryTypeContains: String - categoryTypeHasPrefix: String - categoryTypeHasSuffix: String - categoryTypeIsNil: Boolean - categoryTypeNotNil: Boolean - categoryTypeEqualFold: String - categoryTypeContainsFold: String + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - uri field predicates + updated_by field predicates """ - uri: String - uriNEQ: String - uriIn: [String!] - uriNotIn: [String!] - uriGT: String - uriGTE: String - uriLT: String - uriLTE: String - uriContains: String - uriHasPrefix: String - uriHasSuffix: String - uriIsNil: Boolean - uriNotNil: Boolean - uriEqualFold: String - uriContainsFold: String + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - storage_scheme field predicates + deleted_at field predicates """ - storageScheme: String - storageSchemeNEQ: String - storageSchemeIn: [String!] - storageSchemeNotIn: [String!] - storageSchemeGT: String - storageSchemeGTE: String - storageSchemeLT: String - storageSchemeLTE: String - storageSchemeContains: String - storageSchemeHasPrefix: String - storageSchemeHasSuffix: String - storageSchemeIsNil: Boolean - storageSchemeNotNil: Boolean - storageSchemeEqualFold: String - storageSchemeContainsFold: String - """ - storage_volume field predicates - """ - storageVolume: String - storageVolumeNEQ: String - storageVolumeIn: [String!] - storageVolumeNotIn: [String!] - storageVolumeGT: String - storageVolumeGTE: String - storageVolumeLT: String - storageVolumeLTE: String - storageVolumeContains: String - storageVolumeHasPrefix: String - storageVolumeHasSuffix: String - storageVolumeIsNil: Boolean - storageVolumeNotNil: Boolean - storageVolumeEqualFold: String - storageVolumeContainsFold: String - """ - storage_path field predicates - """ - storagePath: String - storagePathNEQ: String - storagePathIn: [String!] - storagePathNotIn: [String!] - storagePathGT: String - storagePathGTE: String - storagePathLT: String - storagePathLTE: String - storagePathContains: String - storagePathHasPrefix: String - storagePathHasSuffix: String - storagePathIsNil: Boolean - storagePathNotNil: Boolean - storagePathEqualFold: String - storagePathContainsFold: String + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - user edge predicates + deleted_by field predicates """ - hasUser: Boolean - hasUserWith: [UserWhereInput!] + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - organization edge predicates + owner_id field predicates """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - group edge predicates + display_name field predicates """ - hasGroup: Boolean - hasGroupWith: [GroupWhereInput!] + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String """ - contact edge predicates + name field predicates """ - hasContact: Boolean - hasContactWith: [ContactWhereInput!] + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - entity edge predicates + description field predicates """ - hasEntity: Boolean - hasEntityWith: [EntityWhereInput!] + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ - usersetting edge predicates + version field predicates """ - hasUsersetting: Boolean - hasUsersettingWith: [UserSettingWhereInput!] + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionEqualFold: String + versionContainsFold: String """ - organizationsetting edge predicates + owner edge predicates """ - hasOrganizationsetting: Boolean - hasOrganizationsettingWith: [OrganizationSettingWhereInput!] + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - template edge predicates + entitlements edge predicates """ - hasTemplate: Boolean - hasTemplateWith: [TemplateWhereInput!] + hasEntitlements: Boolean + hasEntitlementsWith: [EntitlementWhereInput!] """ - documentdata edge predicates + base_features edge predicates """ - hasDocumentdata: Boolean - hasDocumentdataWith: [DocumentDataWhereInput!] + hasBaseFeatures: Boolean + hasBaseFeaturesWith: [FeatureWhereInput!] """ events edge predicates """ hasEvents: Boolean hasEventsWith: [EventWhereInput!] -} -type Group implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object """ - ownerID: ID + features edge predicates """ - the name of the group - must be unique within the organization + hasFeatures: Boolean + hasFeaturesWith: [EntitlementPlanFeatureWhereInput!] +} +""" +EntitlementWhereInput is used for filtering Entitlement objects. +Input was generated by ent. +""" +input EntitlementWhereInput { + not: EntitlementWhereInput + and: [EntitlementWhereInput!] + or: [EntitlementWhereInput!] """ - name: String! + id field predicates """ - the groups description + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - description: String + created_at field predicates """ - the URL to an auto generated gravatar image for the group + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - gravatarLogoURL: String + updated_at field predicates """ - the URL to an image uploaded by the customer for the groups avatar image + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - logoURL: String - """ - The group's displayed 'friendly' name - """ - displayName: String! - owner: Organization - setting: GroupSetting! - users: [User!] - events: [Event!] - integrations: [Integration!] - files: [File!] - members: [GroupMembership!] -} -""" -A connection to a list of items. -""" -type GroupConnection { - """ - A list of edges. - """ - edges: [GroupEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type GroupEdge { - """ - The item at the end of the edge. - """ - node: Group - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type GroupHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: GroupHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: String - """ - the name of the group - must be unique within the organization - """ - name: String! - """ - the groups description - """ - description: String - """ - the URL to an auto generated gravatar image for the group - """ - gravatarLogoURL: String - """ - the URL to an image uploaded by the customer for the groups avatar image - """ - logoURL: String - """ - The group's displayed 'friendly' name - """ - displayName: String! -} -""" -A connection to a list of items. -""" -type GroupHistoryConnection { - """ - A list of edges. - """ - edges: [GroupHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type GroupHistoryEdge { - """ - The item at the end of the edge. - """ - node: GroupHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -GroupHistoryOpType is enum for the field operation -""" -enum GroupHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for GroupHistory connections -""" -input GroupHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order GroupHistories. - """ - field: GroupHistoryOrderField! -} -""" -Properties by which GroupHistory connections can be ordered. -""" -enum GroupHistoryOrderField { - name - display_name -} -""" -GroupHistoryWhereInput is used for filtering GroupHistory objects. -Input was generated by ent. -""" -input GroupHistoryWhereInput { - not: GroupHistoryWhereInput - and: [GroupHistoryWhereInput!] - or: [GroupHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: GroupHistoryOpType - operationNEQ: GroupHistoryOpType - operationIn: [GroupHistoryOpType!] - operationNotIn: [GroupHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates + created_by field predicates """ createdBy: String createdByNEQ: String @@ -7658,55 +6849,134 @@ input GroupHistoryWhereInput { """ owner_id field predicates """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID ownerIDIsNil: Boolean ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - name field predicates + plan_id field predicates """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + planID: ID + planIDNEQ: ID + planIDIn: [ID!] + planIDNotIn: [ID!] + planIDGT: ID + planIDGTE: ID + planIDLT: ID + planIDLTE: ID + planIDContains: ID + planIDHasPrefix: ID + planIDHasSuffix: ID + planIDEqualFold: ID + planIDContainsFold: ID """ - display_name field predicates + organization_id field predicates """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String + organizationID: ID + organizationIDNEQ: ID + organizationIDIn: [ID!] + organizationIDNotIn: [ID!] + organizationIDGT: ID + organizationIDGTE: ID + organizationIDLT: ID + organizationIDLTE: ID + organizationIDContains: ID + organizationIDHasPrefix: ID + organizationIDHasSuffix: ID + organizationIDEqualFold: ID + organizationIDContainsFold: ID + """ + external_customer_id field predicates + """ + externalCustomerID: String + externalCustomerIDNEQ: String + externalCustomerIDIn: [String!] + externalCustomerIDNotIn: [String!] + externalCustomerIDGT: String + externalCustomerIDGTE: String + externalCustomerIDLT: String + externalCustomerIDLTE: String + externalCustomerIDContains: String + externalCustomerIDHasPrefix: String + externalCustomerIDHasSuffix: String + externalCustomerIDIsNil: Boolean + externalCustomerIDNotNil: Boolean + externalCustomerIDEqualFold: String + externalCustomerIDContainsFold: String + """ + external_subscription_id field predicates + """ + externalSubscriptionID: String + externalSubscriptionIDNEQ: String + externalSubscriptionIDIn: [String!] + externalSubscriptionIDNotIn: [String!] + externalSubscriptionIDGT: String + externalSubscriptionIDGTE: String + externalSubscriptionIDLT: String + externalSubscriptionIDLTE: String + externalSubscriptionIDContains: String + externalSubscriptionIDHasPrefix: String + externalSubscriptionIDHasSuffix: String + externalSubscriptionIDIsNil: Boolean + externalSubscriptionIDNotNil: Boolean + externalSubscriptionIDEqualFold: String + externalSubscriptionIDContainsFold: String + """ + expires field predicates + """ + expires: Boolean + expiresNEQ: Boolean + """ + expires_at field predicates + """ + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean + """ + cancelled field predicates + """ + cancelled: Boolean + cancelledNEQ: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + plan edge predicates + """ + hasPlan: Boolean + hasPlanWith: [EntitlementPlanWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] } -type GroupMembership implements Node { +type Entity implements Node { id: ID! createdAt: Time updatedAt: Time @@ -7714,21 +6984,53 @@ type GroupMembership implements Node { updatedBy: String deletedAt: Time deletedBy: String - role: GroupMembershipRole! - groupID: ID! - userID: ID! - group: Group! - user: User! - events: [Event!] + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the entity + """ + name: String + """ + The entity's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the entity + """ + description: String + """ + domains associated with the entity + """ + domains: [String!] + """ + The type of the entity + """ + entityTypeID: ID + """ + status of the entity + """ + status: String + owner: Organization + contacts: [Contact!] + documents: [DocumentData!] + notes: [Note!] + files: [File!] + entityType: EntityType } """ A connection to a list of items. """ -type GroupMembershipConnection { +type EntityConnection { """ A list of edges. """ - edges: [GroupMembershipEdge] + edges: [EntityEdge] """ Information to aid in pagination. """ @@ -7741,39 +7043,68 @@ type GroupMembershipConnection { """ An edge in a connection. """ -type GroupMembershipEdge { +type EntityEdge { """ The item at the end of the edge. """ - node: GroupMembership + node: Entity """ A cursor for use in pagination. """ cursor: Cursor! } -type GroupMembershipHistory implements Node { +type EntityHistory implements Node { id: ID! historyTime: Time! ref: String - operation: GroupMembershipHistoryOpType! + operation: EntityHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String deletedAt: Time deletedBy: String - role: GroupMembershipHistoryRole! - groupID: String! - userID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the entity + """ + name: String + """ + The entity's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the entity + """ + description: String + """ + domains associated with the entity + """ + domains: [String!] + """ + The type of the entity + """ + entityTypeID: String + """ + status of the entity + """ + status: String } """ A connection to a list of items. """ -type GroupMembershipHistoryConnection { +type EntityHistoryConnection { """ A list of edges. """ - edges: [GroupMembershipHistoryEdge] + edges: [EntityHistoryEdge] """ Information to aid in pagination. """ @@ -7786,40 +7117,52 @@ type GroupMembershipHistoryConnection { """ An edge in a connection. """ -type GroupMembershipHistoryEdge { +type EntityHistoryEdge { """ The item at the end of the edge. """ - node: GroupMembershipHistory + node: EntityHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -GroupMembershipHistoryOpType is enum for the field operation +EntityHistoryOpType is enum for the field operation """ -enum GroupMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EntityHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -GroupMembershipHistoryRole is enum for the field role +Ordering options for EntityHistory connections """ -enum GroupMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER +input EntityHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order EntityHistories. + """ + field: EntityHistoryOrderField! } """ -GroupMembershipHistoryWhereInput is used for filtering GroupMembershipHistory objects. -Input was generated by ent. +Properties by which EntityHistory connections can be ordered. """ -input GroupMembershipHistoryWhereInput { - not: GroupMembershipHistoryWhereInput - and: [GroupMembershipHistoryWhereInput!] - or: [GroupMembershipHistoryWhereInput!] +enum EntityHistoryOrderField { + name + display_name +} +""" +EntityHistoryWhereInput is used for filtering EntityHistory objects. +Input was generated by ent. +""" +input EntityHistoryWhereInput { + not: EntityHistoryWhereInput + and: [EntityHistoryWhereInput!] + or: [EntityHistoryWhereInput!] """ id field predicates """ @@ -7865,10 +7208,10 @@ input GroupMembershipHistoryWhereInput { """ operation field predicates """ - operation: GroupMembershipHistoryOpType - operationNEQ: GroupMembershipHistoryOpType - operationIn: [GroupMembershipHistoryOpType!] - operationNotIn: [GroupMembershipHistoryOpType!] + operation: EntityHistoryOpType + operationNEQ: EntityHistoryOpType + operationIn: [EntityHistoryOpType!] + operationNotIn: [EntityHistoryOpType!] """ created_at field predicates """ @@ -7963,303 +7306,201 @@ input GroupMembershipHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - role field predicates + owner_id field predicates """ - role: GroupMembershipHistoryRole - roleNEQ: GroupMembershipHistoryRole - roleIn: [GroupMembershipHistoryRole!] - roleNotIn: [GroupMembershipHistoryRole!] + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ - group_id field predicates + name field predicates """ - groupID: String - groupIDNEQ: String - groupIDIn: [String!] - groupIDNotIn: [String!] - groupIDGT: String - groupIDGTE: String - groupIDLT: String - groupIDLTE: String - groupIDContains: String - groupIDHasPrefix: String - groupIDHasSuffix: String - groupIDEqualFold: String - groupIDContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameIsNil: Boolean + nameNotNil: Boolean + nameEqualFold: String + nameContainsFold: String """ - user_id field predicates + display_name field predicates """ - userID: String - userIDNEQ: String - userIDIn: [String!] - userIDNotIn: [String!] - userIDGT: String - userIDGTE: String - userIDLT: String - userIDLTE: String - userIDContains: String - userIDHasPrefix: String - userIDHasSuffix: String - userIDEqualFold: String - userIDContainsFold: String + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String + """ + entity_type_id field predicates + """ + entityTypeID: String + entityTypeIDNEQ: String + entityTypeIDIn: [String!] + entityTypeIDNotIn: [String!] + entityTypeIDGT: String + entityTypeIDGTE: String + entityTypeIDLT: String + entityTypeIDLTE: String + entityTypeIDContains: String + entityTypeIDHasPrefix: String + entityTypeIDHasSuffix: String + entityTypeIDIsNil: Boolean + entityTypeIDNotNil: Boolean + entityTypeIDEqualFold: String + entityTypeIDContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String } """ -GroupMembershipRole is enum for the field role +Ordering options for Entity connections """ -enum GroupMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER +input EntityOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Entities. + """ + field: EntityOrderField! } """ -GroupMembershipWhereInput is used for filtering GroupMembership objects. -Input was generated by ent. +Properties by which Entity connections can be ordered. """ -input GroupMembershipWhereInput { - not: GroupMembershipWhereInput - and: [GroupMembershipWhereInput!] - or: [GroupMembershipWhereInput!] +enum EntityOrderField { + name + display_name +} +type EntityType implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - id field predicates + tags associated with the object """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + tags: [String!] """ - created_at field predicates + the organization id that owns the object """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + ownerID: ID """ - updated_at field predicates + the name of the entity """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean + name: String! + owner: Organization + entities: [Entity!] +} +""" +A connection to a list of items. +""" +type EntityTypeConnection { """ - created_by field predicates + A list of edges. """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + edges: [EntityTypeEdge] """ - updated_by field predicates + Information to aid in pagination. """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + pageInfo: PageInfo! """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - role field predicates - """ - role: GroupMembershipRole - roleNEQ: GroupMembershipRole - roleIn: [GroupMembershipRole!] - roleNotIn: [GroupMembershipRole!] -} -""" -Ordering options for Group connections -""" -input GroupOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Groups. - """ - field: GroupOrderField! -} -""" -Properties by which Group connections can be ordered. -""" -enum GroupOrderField { - name - display_name -} -type GroupSetting implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization - """ - visibility: GroupSettingVisibility! - """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either - """ - joinPolicy: GroupSettingJoinPolicy! - """ - whether to sync group members to slack groups - """ - syncToSlack: Boolean - """ - whether to sync group members to github groups - """ - syncToGithub: Boolean - """ - the group id associated with the settings - """ - groupID: ID - group: Group -} -""" -A connection to a list of items. -""" -type GroupSettingConnection { - """ - A list of edges. - """ - edges: [GroupSettingEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. + Identifies the total count of items in the connection. """ totalCount: Int! } """ An edge in a connection. """ -type GroupSettingEdge { +type EntityTypeEdge { """ The item at the end of the edge. """ - node: GroupSetting + node: EntityType """ A cursor for use in pagination. """ cursor: Cursor! } -type GroupSettingHistory implements Node { +type EntityTypeHistory implements Node { id: ID! historyTime: Time! ref: String - operation: GroupSettingHistoryOpType! + operation: EntityTypeHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - """ - tags associated with the object - """ - tags: [String!] deletedAt: Time deletedBy: String """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization - """ - visibility: GroupSettingHistoryVisibility! - """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either - """ - joinPolicy: GroupSettingHistoryJoinPolicy! - """ - whether to sync group members to slack groups + tags associated with the object """ - syncToSlack: Boolean + tags: [String!] """ - whether to sync group members to github groups + the organization id that owns the object """ - syncToGithub: Boolean + ownerID: String """ - the group id associated with the settings + the name of the entity """ - groupID: String + name: String! } """ A connection to a list of items. """ -type GroupSettingHistoryConnection { +type EntityTypeHistoryConnection { """ A list of edges. """ - edges: [GroupSettingHistoryEdge] + edges: [EntityTypeHistoryEdge] """ Information to aid in pagination. """ @@ -8272,48 +7513,51 @@ type GroupSettingHistoryConnection { """ An edge in a connection. """ -type GroupSettingHistoryEdge { +type EntityTypeHistoryEdge { """ The item at the end of the edge. """ - node: GroupSettingHistory + node: EntityTypeHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -GroupSettingHistoryJoinPolicy is enum for the field join_policy -""" -enum GroupSettingHistoryJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { - OPEN - INVITE_ONLY - APPLICATION_ONLY - INVITE_OR_APPLICATION -} -""" -GroupSettingHistoryOpType is enum for the field operation +EntityTypeHistoryOpType is enum for the field operation """ -enum GroupSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EntityTypeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -GroupSettingHistoryVisibility is enum for the field visibility +Ordering options for EntityTypeHistory connections """ -enum GroupSettingHistoryVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { - PUBLIC - PRIVATE +input EntityTypeHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order EntityTypeHistories. + """ + field: EntityTypeHistoryOrderField! } """ -GroupSettingHistoryWhereInput is used for filtering GroupSettingHistory objects. +Properties by which EntityTypeHistory connections can be ordered. +""" +enum EntityTypeHistoryOrderField { + name +} +""" +EntityTypeHistoryWhereInput is used for filtering EntityTypeHistory objects. Input was generated by ent. """ -input GroupSettingHistoryWhereInput { - not: GroupSettingHistoryWhereInput - and: [GroupSettingHistoryWhereInput!] - or: [GroupSettingHistoryWhereInput!] +input EntityTypeHistoryWhereInput { + not: EntityTypeHistoryWhereInput + and: [EntityTypeHistoryWhereInput!] + or: [EntityTypeHistoryWhereInput!] """ id field predicates """ @@ -8359,10 +7603,10 @@ input GroupSettingHistoryWhereInput { """ operation field predicates """ - operation: GroupSettingHistoryOpType - operationNEQ: GroupSettingHistoryOpType - operationIn: [GroupSettingHistoryOpType!] - operationNotIn: [GroupSettingHistoryOpType!] + operation: EntityTypeHistoryOpType + operationNEQ: EntityTypeHistoryOpType + operationIn: [EntityTypeHistoryOpType!] + operationNotIn: [EntityTypeHistoryOpType!] """ created_at field predicates """ @@ -8457,76 +7701,67 @@ input GroupSettingHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - visibility field predicates - """ - visibility: GroupSettingHistoryVisibility - visibilityNEQ: GroupSettingHistoryVisibility - visibilityIn: [GroupSettingHistoryVisibility!] - visibilityNotIn: [GroupSettingHistoryVisibility!] + owner_id field predicates """ - join_policy field predicates + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ - joinPolicy: GroupSettingHistoryJoinPolicy - joinPolicyNEQ: GroupSettingHistoryJoinPolicy - joinPolicyIn: [GroupSettingHistoryJoinPolicy!] - joinPolicyNotIn: [GroupSettingHistoryJoinPolicy!] + name field predicates """ - sync_to_slack field predicates + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String +} +""" +Ordering options for EntityType connections +""" +input EntityTypeOrder { """ - syncToSlack: Boolean - syncToSlackNEQ: Boolean - syncToSlackIsNil: Boolean - syncToSlackNotNil: Boolean + The ordering direction. """ - sync_to_github field predicates + direction: OrderDirection! = ASC """ - syncToGithub: Boolean - syncToGithubNEQ: Boolean - syncToGithubIsNil: Boolean - syncToGithubNotNil: Boolean + The field by which to order EntityTypes. """ - group_id field predicates - """ - groupID: String - groupIDNEQ: String - groupIDIn: [String!] - groupIDNotIn: [String!] - groupIDGT: String - groupIDGTE: String - groupIDLT: String - groupIDLTE: String - groupIDContains: String - groupIDHasPrefix: String - groupIDHasSuffix: String - groupIDIsNil: Boolean - groupIDNotNil: Boolean - groupIDEqualFold: String - groupIDContainsFold: String -} -""" -GroupSettingJoinPolicy is enum for the field join_policy -""" -enum GroupSettingJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { - OPEN - INVITE_ONLY - APPLICATION_ONLY - INVITE_OR_APPLICATION + field: EntityTypeOrderField! } """ -GroupSettingVisibility is enum for the field visibility +Properties by which EntityType connections can be ordered. """ -enum GroupSettingVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { - PUBLIC - PRIVATE +enum EntityTypeOrderField { + name } """ -GroupSettingWhereInput is used for filtering GroupSetting objects. +EntityTypeWhereInput is used for filtering EntityType objects. Input was generated by ent. """ -input GroupSettingWhereInput { - not: GroupSettingWhereInput - and: [GroupSettingWhereInput!] - or: [GroupSettingWhereInput!] +input EntityTypeWhereInput { + not: EntityTypeWhereInput + and: [EntityTypeWhereInput!] + or: [EntityTypeWhereInput!] """ id field predicates """ @@ -8634,65 +7869,58 @@ input GroupSettingWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - visibility field predicates - """ - visibility: GroupSettingVisibility - visibilityNEQ: GroupSettingVisibility - visibilityIn: [GroupSettingVisibility!] - visibilityNotIn: [GroupSettingVisibility!] - """ - join_policy field predicates - """ - joinPolicy: GroupSettingJoinPolicy - joinPolicyNEQ: GroupSettingJoinPolicy - joinPolicyIn: [GroupSettingJoinPolicy!] - joinPolicyNotIn: [GroupSettingJoinPolicy!] - """ - sync_to_slack field predicates + owner_id field predicates """ - syncToSlack: Boolean - syncToSlackNEQ: Boolean - syncToSlackIsNil: Boolean - syncToSlackNotNil: Boolean + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - sync_to_github field predicates + name field predicates """ - syncToGithub: Boolean - syncToGithubNEQ: Boolean - syncToGithubIsNil: Boolean - syncToGithubNotNil: Boolean + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - group_id field predicates + owner edge predicates """ - groupID: ID - groupIDNEQ: ID - groupIDIn: [ID!] - groupIDNotIn: [ID!] - groupIDGT: ID - groupIDGTE: ID - groupIDLT: ID - groupIDLTE: ID - groupIDContains: ID - groupIDHasPrefix: ID - groupIDHasSuffix: ID - groupIDIsNil: Boolean - groupIDNotNil: Boolean - groupIDEqualFold: ID - groupIDContainsFold: ID + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - group edge predicates + entities edge predicates """ - hasGroup: Boolean - hasGroupWith: [GroupWhereInput!] + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] } """ -GroupWhereInput is used for filtering Group objects. +EntityWhereInput is used for filtering Entity objects. Input was generated by ent. """ -input GroupWhereInput { - not: GroupWhereInput - and: [GroupWhereInput!] - or: [GroupWhereInput!] +input EntityWhereInput { + not: EntityWhereInput + and: [EntityWhereInput!] + or: [EntityWhereInput!] """ id field predicates """ @@ -8831,6 +8059,8 @@ input GroupWhereInput { nameContains: String nameHasPrefix: String nameHasSuffix: String + nameIsNil: Boolean + nameNotNil: Boolean nameEqualFold: String nameContainsFold: String """ @@ -8847,83 +8077,117 @@ input GroupWhereInput { displayNameContains: String displayNameHasPrefix: String displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean displayNameEqualFold: String displayNameContainsFold: String """ + entity_type_id field predicates + """ + entityTypeID: ID + entityTypeIDNEQ: ID + entityTypeIDIn: [ID!] + entityTypeIDNotIn: [ID!] + entityTypeIDGT: ID + entityTypeIDGTE: ID + entityTypeIDLT: ID + entityTypeIDLTE: ID + entityTypeIDContains: ID + entityTypeIDHasPrefix: ID + entityTypeIDHasSuffix: ID + entityTypeIDIsNil: Boolean + entityTypeIDNotNil: Boolean + entityTypeIDEqualFold: ID + entityTypeIDContainsFold: ID + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ owner edge predicates """ hasOwner: Boolean hasOwnerWith: [OrganizationWhereInput!] """ - setting edge predicates - """ - hasSetting: Boolean - hasSettingWith: [GroupSettingWhereInput!] - """ - users edge predicates + contacts edge predicates """ - hasUsers: Boolean - hasUsersWith: [UserWhereInput!] + hasContacts: Boolean + hasContactsWith: [ContactWhereInput!] """ - events edge predicates + documents edge predicates """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + hasDocuments: Boolean + hasDocumentsWith: [DocumentDataWhereInput!] """ - integrations edge predicates + notes edge predicates """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] """ files edge predicates """ hasFiles: Boolean hasFilesWith: [FileWhereInput!] """ - members edge predicates + entity_type edge predicates """ - hasMembers: Boolean - hasMembersWith: [GroupMembershipWhereInput!] + hasEntityType: Boolean + hasEntityTypeWith: [EntityTypeWhereInput!] } -type Hush implements Node { +type Event implements Node { id: ID! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - deletedAt: Time - deletedBy: String - """ - the logical name of the corresponding hush secret or it's general grouping - """ - name: String! - """ - a description of the hush value or purpose, such as github PAT - """ - description: String - """ - the kind of secret, such as sshkey, certificate, api token, etc. - """ - kind: String - """ - the generic name of a secret associated with the organization - """ - secretName: String """ - the integration associated with the secret + tags associated with the object """ - integrations: [Integration!] + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map + user: [User!] + group: [Group!] + integration: [Integration!] organization: [Organization!] - events: [Event!] + invite: [Invite!] + feature: [Feature!] + entitlementplan: [EntitlementPlan!] + entitlementplanfeature: [EntitlementPlanFeature!] + personalAccessToken: [PersonalAccessToken!] + oauth2token: [OhAuthTooToken!] + hush: [Hush!] + orgmembership: [OrgMembership!] + groupmembership: [GroupMembership!] + entitlement: [Entitlement!] + webhook: [Webhook!] + subscriber: [Subscriber!] + file: [File!] } """ A connection to a list of items. """ -type HushConnection { +type EventConnection { """ A list of edges. """ - edges: [HushEdge] + edges: [EventEdge] """ Information to aid in pagination. """ @@ -8936,52 +8200,42 @@ type HushConnection { """ An edge in a connection. """ -type HushEdge { +type EventEdge { """ The item at the end of the edge. """ - node: Hush + node: Event """ A cursor for use in pagination. """ cursor: Cursor! } -type HushHistory implements Node { +type EventHistory implements Node { id: ID! historyTime: Time! ref: String - operation: HushHistoryOpType! + operation: EventHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - deletedAt: Time - deletedBy: String - """ - the logical name of the corresponding hush secret or it's general grouping - """ - name: String! - """ - a description of the hush value or purpose, such as github PAT - """ - description: String - """ - the kind of secret, such as sshkey, certificate, api token, etc. - """ - kind: String """ - the generic name of a secret associated with the organization + tags associated with the object """ - secretName: String + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map } """ A connection to a list of items. """ -type HushHistoryConnection { +type EventHistoryConnection { """ A list of edges. """ - edges: [HushHistoryEdge] + edges: [EventHistoryEdge] """ Information to aid in pagination. """ @@ -8994,52 +8248,32 @@ type HushHistoryConnection { """ An edge in a connection. """ -type HushHistoryEdge { +type EventHistoryEdge { """ The item at the end of the edge. """ - node: HushHistory + node: EventHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -HushHistoryOpType is enum for the field operation +EventHistoryOpType is enum for the field operation """ -enum HushHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum EventHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -Ordering options for HushHistory connections -""" -input HushHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order HushHistories. - """ - field: HushHistoryOrderField! -} -""" -Properties by which HushHistory connections can be ordered. -""" -enum HushHistoryOrderField { - name - kind -} -""" -HushHistoryWhereInput is used for filtering HushHistory objects. +EventHistoryWhereInput is used for filtering EventHistory objects. Input was generated by ent. """ -input HushHistoryWhereInput { - not: HushHistoryWhereInput - and: [HushHistoryWhereInput!] - or: [HushHistoryWhereInput!] +input EventHistoryWhereInput { + not: EventHistoryWhereInput + and: [EventHistoryWhereInput!] + or: [EventHistoryWhereInput!] """ id field predicates """ @@ -9085,10 +8319,10 @@ input HushHistoryWhereInput { """ operation field predicates """ - operation: HushHistoryOpType - operationNEQ: HushHistoryOpType - operationIn: [HushHistoryOpType!] - operationNotIn: [HushHistoryOpType!] + operation: EventHistoryOpType + operationNEQ: EventHistoryOpType + operationIn: [EventHistoryOpType!] + operationNotIn: [EventHistoryOpType!] """ created_at field predicates """ @@ -9152,117 +8386,66 @@ input HushHistoryWhereInput { updatedByEqualFold: String updatedByContainsFold: String """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - kind field predicates - """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String - """ - secret_name field predicates + event_id field predicates """ - secretName: String - secretNameNEQ: String - secretNameIn: [String!] - secretNameNotIn: [String!] - secretNameGT: String - secretNameGTE: String - secretNameLT: String - secretNameLTE: String - secretNameContains: String - secretNameHasPrefix: String - secretNameHasSuffix: String - secretNameIsNil: Boolean - secretNameNotNil: Boolean - secretNameEqualFold: String - secretNameContainsFold: String -} -""" -Ordering options for Hush connections -""" -input HushOrder { + eventID: String + eventIDNEQ: String + eventIDIn: [String!] + eventIDNotIn: [String!] + eventIDGT: String + eventIDGTE: String + eventIDLT: String + eventIDLTE: String + eventIDContains: String + eventIDHasPrefix: String + eventIDHasSuffix: String + eventIDIsNil: Boolean + eventIDNotNil: Boolean + eventIDEqualFold: String + eventIDContainsFold: String """ - The ordering direction. + correlation_id field predicates """ - direction: OrderDirection! = ASC + correlationID: String + correlationIDNEQ: String + correlationIDIn: [String!] + correlationIDNotIn: [String!] + correlationIDGT: String + correlationIDGTE: String + correlationIDLT: String + correlationIDLTE: String + correlationIDContains: String + correlationIDHasPrefix: String + correlationIDHasSuffix: String + correlationIDIsNil: Boolean + correlationIDNotNil: Boolean + correlationIDEqualFold: String + correlationIDContainsFold: String """ - The field by which to order Hushes. + event_type field predicates """ - field: HushOrderField! -} -""" -Properties by which Hush connections can be ordered. -""" -enum HushOrderField { - name - kind + eventType: String + eventTypeNEQ: String + eventTypeIn: [String!] + eventTypeNotIn: [String!] + eventTypeGT: String + eventTypeGTE: String + eventTypeLT: String + eventTypeLTE: String + eventTypeContains: String + eventTypeHasPrefix: String + eventTypeHasSuffix: String + eventTypeEqualFold: String + eventTypeContainsFold: String } """ -HushWhereInput is used for filtering Hush objects. +EventWhereInput is used for filtering Event objects. Input was generated by ent. """ -input HushWhereInput { - not: HushWhereInput - and: [HushWhereInput!] - or: [HushWhereInput!] +input EventWhereInput { + not: EventWhereInput + and: [EventWhereInput!] + or: [EventWhereInput!] """ id field predicates """ @@ -9339,149 +8522,192 @@ input HushWhereInput { updatedByEqualFold: String updatedByContainsFold: String """ - deleted_at field predicates + event_id field predicates """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + eventID: String + eventIDNEQ: String + eventIDIn: [String!] + eventIDNotIn: [String!] + eventIDGT: String + eventIDGTE: String + eventIDLT: String + eventIDLTE: String + eventIDContains: String + eventIDHasPrefix: String + eventIDHasSuffix: String + eventIDIsNil: Boolean + eventIDNotNil: Boolean + eventIDEqualFold: String + eventIDContainsFold: String """ - deleted_by field predicates + correlation_id field predicates """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + correlationID: String + correlationIDNEQ: String + correlationIDIn: [String!] + correlationIDNotIn: [String!] + correlationIDGT: String + correlationIDGTE: String + correlationIDLT: String + correlationIDLTE: String + correlationIDContains: String + correlationIDHasPrefix: String + correlationIDHasSuffix: String + correlationIDIsNil: Boolean + correlationIDNotNil: Boolean + correlationIDEqualFold: String + correlationIDContainsFold: String """ - name field predicates + event_type field predicates """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + eventType: String + eventTypeNEQ: String + eventTypeIn: [String!] + eventTypeNotIn: [String!] + eventTypeGT: String + eventTypeGTE: String + eventTypeLT: String + eventTypeLTE: String + eventTypeContains: String + eventTypeHasPrefix: String + eventTypeHasSuffix: String + eventTypeEqualFold: String + eventTypeContainsFold: String """ - kind field predicates + user edge predicates """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String + hasUser: Boolean + hasUserWith: [UserWhereInput!] """ - secret_name field predicates + group edge predicates """ - secretName: String - secretNameNEQ: String - secretNameIn: [String!] - secretNameNotIn: [String!] - secretNameGT: String - secretNameGTE: String - secretNameLT: String - secretNameLTE: String - secretNameContains: String - secretNameHasPrefix: String - secretNameHasSuffix: String - secretNameIsNil: Boolean - secretNameNotNil: Boolean - secretNameEqualFold: String - secretNameContainsFold: String + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] """ - integrations edge predicates + integration edge predicates """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] + hasIntegration: Boolean + hasIntegrationWith: [IntegrationWhereInput!] """ organization edge predicates """ hasOrganization: Boolean hasOrganizationWith: [OrganizationWhereInput!] """ - events edge predicates + invite edge predicates """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + hasInvite: Boolean + hasInviteWith: [InviteWhereInput!] + """ + feature edge predicates + """ + hasFeature: Boolean + hasFeatureWith: [FeatureWhereInput!] + """ + entitlementplan edge predicates + """ + hasEntitlementplan: Boolean + hasEntitlementplanWith: [EntitlementPlanWhereInput!] + """ + entitlementplanfeature edge predicates + """ + hasEntitlementplanfeature: Boolean + hasEntitlementplanfeatureWith: [EntitlementPlanFeatureWhereInput!] + """ + personal_access_token edge predicates + """ + hasPersonalAccessToken: Boolean + hasPersonalAccessTokenWith: [PersonalAccessTokenWhereInput!] + """ + oauth2token edge predicates + """ + hasOauth2token: Boolean + hasOauth2tokenWith: [OhAuthTooTokenWhereInput!] + """ + hush edge predicates + """ + hasHush: Boolean + hasHushWith: [HushWhereInput!] + """ + orgmembership edge predicates + """ + hasOrgmembership: Boolean + hasOrgmembershipWith: [OrgMembershipWhereInput!] + """ + groupmembership edge predicates + """ + hasGroupmembership: Boolean + hasGroupmembershipWith: [GroupMembershipWhereInput!] + """ + entitlement edge predicates + """ + hasEntitlement: Boolean + hasEntitlementWith: [EntitlementWhereInput!] + """ + webhook edge predicates + """ + hasWebhook: Boolean + hasWebhookWith: [WebhookWhereInput!] + """ + subscriber edge predicates + """ + hasSubscriber: Boolean + hasSubscriberWith: [SubscriberWhereInput!] + """ + file edge predicates + """ + hasFile: Boolean + hasFileWith: [FileWhereInput!] } -type Integration implements Node { +type Feature implements Node { id: ID! createdAt: Time updatedAt: Time createdBy: String updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] - deletedAt: Time - deletedBy: String """ the organization id that owns the object """ ownerID: ID """ - the name of the integration - must be unique within the organization + the unique name of the feature """ name: String! """ - a description of the integration + the displayed 'friendly' name of the feature """ - description: String - kind: String - owner: Organization + displayName: String """ - the secrets associated with the integration + enabled features are available for use """ - secrets: [Hush!] + enabled: Boolean! """ - the oauth2 tokens associated with the integration + a description of the feature """ - oauth2tokens: [OhAuthTooToken!] + description: String + """ + metadata for the feature + """ + metadata: Map + owner: Organization + plans: [EntitlementPlan!] events: [Event!] - webhooks: [Webhook!] + features: [EntitlementPlanFeature!] } """ A connection to a list of items. """ -type IntegrationConnection { +type FeatureConnection { """ A list of edges. """ - edges: [IntegrationEdge] + edges: [FeatureEdge] """ Information to aid in pagination. """ @@ -9494,53 +8720,64 @@ type IntegrationConnection { """ An edge in a connection. """ -type IntegrationEdge { +type FeatureEdge { """ The item at the end of the edge. """ - node: Integration + node: Feature """ A cursor for use in pagination. """ cursor: Cursor! } -type IntegrationHistory implements Node { +type FeatureHistory implements Node { id: ID! historyTime: Time! ref: String - operation: IntegrationHistoryOpType! + operation: FeatureHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] - deletedAt: Time - deletedBy: String """ the organization id that owns the object """ ownerID: String """ - the name of the integration - must be unique within the organization + the unique name of the feature """ name: String! """ - a description of the integration + the displayed 'friendly' name of the feature + """ + displayName: String + """ + enabled features are available for use + """ + enabled: Boolean! + """ + a description of the feature """ description: String - kind: String + """ + metadata for the feature + """ + metadata: Map } """ A connection to a list of items. """ -type IntegrationHistoryConnection { +type FeatureHistoryConnection { """ A list of edges. """ - edges: [IntegrationHistoryEdge] + edges: [FeatureHistoryEdge] """ Information to aid in pagination. """ @@ -9553,54 +8790,34 @@ type IntegrationHistoryConnection { """ An edge in a connection. """ -type IntegrationHistoryEdge { +type FeatureHistoryEdge { """ The item at the end of the edge. """ - node: IntegrationHistory + node: FeatureHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -IntegrationHistoryOpType is enum for the field operation +FeatureHistoryOpType is enum for the field operation """ -enum IntegrationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum FeatureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -Ordering options for IntegrationHistory connections +FeatureHistoryWhereInput is used for filtering FeatureHistory objects. +Input was generated by ent. """ -input IntegrationHistoryOrder { - """ - The ordering direction. +input FeatureHistoryWhereInput { + not: FeatureHistoryWhereInput + and: [FeatureHistoryWhereInput!] + or: [FeatureHistoryWhereInput!] """ - direction: OrderDirection! = ASC - """ - The field by which to order IntegrationHistories. - """ - field: IntegrationHistoryOrderField! -} -""" -Properties by which IntegrationHistory connections can be ordered. -""" -enum IntegrationHistoryOrderField { - name - kind -} -""" -IntegrationHistoryWhereInput is used for filtering IntegrationHistory objects. -Input was generated by ent. -""" -input IntegrationHistoryWhereInput { - not: IntegrationHistoryWhereInput - and: [IntegrationHistoryWhereInput!] - or: [IntegrationHistoryWhereInput!] - """ - id field predicates + id field predicates """ id: ID idNEQ: ID @@ -9644,10 +8861,10 @@ input IntegrationHistoryWhereInput { """ operation field predicates """ - operation: IntegrationHistoryOpType - operationNEQ: IntegrationHistoryOpType - operationIn: [IntegrationHistoryOpType!] - operationNotIn: [IntegrationHistoryOpType!] + operation: FeatureHistoryOpType + operationNEQ: FeatureHistoryOpType + operationIn: [FeatureHistoryOpType!] + operationNotIn: [FeatureHistoryOpType!] """ created_at field predicates """ @@ -9776,52 +8993,55 @@ input IntegrationHistoryWhereInput { nameEqualFold: String nameContainsFold: String """ - kind field predicates + display_name field predicates """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String -} -""" -Ordering options for Integration connections -""" -input IntegrationOrder { + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String """ - The ordering direction. + enabled field predicates """ - direction: OrderDirection! = ASC + enabled: Boolean + enabledNEQ: Boolean """ - The field by which to order Integrations. + description field predicates """ - field: IntegrationOrderField! -} -""" -Properties by which Integration connections can be ordered. -""" -enum IntegrationOrderField { - name - kind + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String } """ -IntegrationWhereInput is used for filtering Integration objects. +FeatureWhereInput is used for filtering Feature objects. Input was generated by ent. """ -input IntegrationWhereInput { - not: IntegrationWhereInput - and: [IntegrationWhereInput!] - or: [IntegrationWhereInput!] +input FeatureWhereInput { + not: FeatureWhereInput + and: [FeatureWhereInput!] + or: [FeatureWhereInput!] """ id field predicates """ @@ -9963,50 +9183,68 @@ input IntegrationWhereInput { nameEqualFold: String nameContainsFold: String """ - kind field predicates + display_name field predicates """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String + """ + enabled field predicates + """ + enabled: Boolean + enabledNEQ: Boolean + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String """ owner edge predicates """ hasOwner: Boolean hasOwnerWith: [OrganizationWhereInput!] """ - secrets edge predicates - """ - hasSecrets: Boolean - hasSecretsWith: [HushWhereInput!] - """ - oauth2tokens edge predicates + plans edge predicates """ - hasOauth2tokens: Boolean - hasOauth2tokensWith: [OhAuthTooTokenWhereInput!] + hasPlans: Boolean + hasPlansWith: [EntitlementPlanWhereInput!] """ events edge predicates """ hasEvents: Boolean hasEventsWith: [EventWhereInput!] """ - webhooks edge predicates + features edge predicates """ - hasWebhooks: Boolean - hasWebhooksWith: [WebhookWhereInput!] + hasFeatures: Boolean + hasFeaturesWith: [EntitlementPlanFeatureWhereInput!] } -type Invite implements Node { +type File implements Node { id: ID! createdAt: Time updatedAt: Time @@ -10015,41 +9253,77 @@ type Invite implements Node { deletedAt: Time deletedBy: String """ - the organization id that owns the object + tags associated with the object """ - ownerID: ID + tags: [String!] """ - the expiration date of the invitation token which defaults to 14 days in the future from creation + the name of the file provided in the payload key without the extension """ - expires: Time + providedFileName: String! """ - the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + the extension of the file provided """ - recipient: String! + providedFileExtension: String! """ - the status of the invitation + the computed size of the file in the original http request """ - status: InviteInviteStatus! - role: InviteRole! + providedFileSize: Int + persistedFileSize: Int """ - the number of attempts made to perform email send of the invitation, maximum of 5 + the mime type detected by the system """ - sendAttempts: Int! + detectedMimeType: String """ - the user who initiated the invitation + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage """ - requestorID: String - owner: Organization + md5Hash: String + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String! + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + """ + the full URI of the file + """ + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String + user: [User!] + organization: [Organization!] + group: [Group!] + contact: [Contact!] + entity: [Entity!] + usersetting: [UserSetting!] + organizationsetting: [OrganizationSetting!] + template: [Template!] + documentdata: [DocumentData!] events: [Event!] } """ A connection to a list of items. """ -type InviteConnection { +type FileConnection { """ A list of edges. """ - edges: [InviteEdge] + edges: [FileEdge] """ Information to aid in pagination. """ @@ -10062,41 +9336,127 @@ type InviteConnection { """ An edge in a connection. """ -type InviteEdge { +type FileEdge { """ The item at the end of the edge. """ - node: Invite + node: File """ A cursor for use in pagination. """ cursor: Cursor! } -""" -InviteInviteStatus is enum for the field status -""" -enum InviteInviteStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.InviteStatus") { - INVITATION_SENT - APPROVAL_REQUIRED - INVITATION_ACCEPTED - INVITATION_EXPIRED +type FileHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: FileHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the file provided in the payload key without the extension + """ + providedFileName: String! + """ + the extension of the file provided + """ + providedFileExtension: String! + """ + the computed size of the file in the original http request + """ + providedFileSize: Int + persistedFileSize: Int + """ + the mime type detected by the system + """ + detectedMimeType: String + """ + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + """ + md5Hash: String + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String! + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + """ + the full URI of the file + """ + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String } """ -InviteRole is enum for the field role +A connection to a list of items. """ -enum InviteRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER +type FileHistoryConnection { + """ + A list of edges. + """ + edges: [FileHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! } """ -InviteWhereInput is used for filtering Invite objects. +An edge in a connection. +""" +type FileHistoryEdge { + """ + The item at the end of the edge. + """ + node: FileHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +FileHistoryOpType is enum for the field operation +""" +enum FileHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +FileHistoryWhereInput is used for filtering FileHistory objects. Input was generated by ent. """ -input InviteWhereInput { - not: InviteWhereInput - and: [InviteWhereInput!] - or: [InviteWhereInput!] +input FileHistoryWhereInput { + not: FileHistoryWhereInput + and: [FileHistoryWhereInput!] + or: [FileHistoryWhereInput!] """ id field predicates """ @@ -10111,6 +9471,42 @@ input InviteWhereInput { idEqualFold: ID idContainsFold: ID """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: FileHistoryOpType + operationNEQ: FileHistoryOpType + operationIn: [FileHistoryOpType!] + operationNotIn: [FileHistoryOpType!] + """ created_at field predicates """ createdAt: Time @@ -10204,311 +9600,260 @@ input InviteWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + provided_file_name field predicates """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + providedFileName: String + providedFileNameNEQ: String + providedFileNameIn: [String!] + providedFileNameNotIn: [String!] + providedFileNameGT: String + providedFileNameGTE: String + providedFileNameLT: String + providedFileNameLTE: String + providedFileNameContains: String + providedFileNameHasPrefix: String + providedFileNameHasSuffix: String + providedFileNameEqualFold: String + providedFileNameContainsFold: String """ - expires field predicates + provided_file_extension field predicates """ - expires: Time - expiresNEQ: Time - expiresIn: [Time!] - expiresNotIn: [Time!] - expiresGT: Time - expiresGTE: Time - expiresLT: Time - expiresLTE: Time - expiresIsNil: Boolean - expiresNotNil: Boolean + providedFileExtension: String + providedFileExtensionNEQ: String + providedFileExtensionIn: [String!] + providedFileExtensionNotIn: [String!] + providedFileExtensionGT: String + providedFileExtensionGTE: String + providedFileExtensionLT: String + providedFileExtensionLTE: String + providedFileExtensionContains: String + providedFileExtensionHasPrefix: String + providedFileExtensionHasSuffix: String + providedFileExtensionEqualFold: String + providedFileExtensionContainsFold: String """ - recipient field predicates + provided_file_size field predicates """ - recipient: String - recipientNEQ: String - recipientIn: [String!] - recipientNotIn: [String!] - recipientGT: String - recipientGTE: String - recipientLT: String - recipientLTE: String - recipientContains: String - recipientHasPrefix: String - recipientHasSuffix: String - recipientEqualFold: String - recipientContainsFold: String + providedFileSize: Int + providedFileSizeNEQ: Int + providedFileSizeIn: [Int!] + providedFileSizeNotIn: [Int!] + providedFileSizeGT: Int + providedFileSizeGTE: Int + providedFileSizeLT: Int + providedFileSizeLTE: Int + providedFileSizeIsNil: Boolean + providedFileSizeNotNil: Boolean """ - status field predicates + persisted_file_size field predicates """ - status: InviteInviteStatus - statusNEQ: InviteInviteStatus - statusIn: [InviteInviteStatus!] - statusNotIn: [InviteInviteStatus!] + persistedFileSize: Int + persistedFileSizeNEQ: Int + persistedFileSizeIn: [Int!] + persistedFileSizeNotIn: [Int!] + persistedFileSizeGT: Int + persistedFileSizeGTE: Int + persistedFileSizeLT: Int + persistedFileSizeLTE: Int + persistedFileSizeIsNil: Boolean + persistedFileSizeNotNil: Boolean """ - role field predicates + detected_mime_type field predicates """ - role: InviteRole - roleNEQ: InviteRole - roleIn: [InviteRole!] - roleNotIn: [InviteRole!] + detectedMimeType: String + detectedMimeTypeNEQ: String + detectedMimeTypeIn: [String!] + detectedMimeTypeNotIn: [String!] + detectedMimeTypeGT: String + detectedMimeTypeGTE: String + detectedMimeTypeLT: String + detectedMimeTypeLTE: String + detectedMimeTypeContains: String + detectedMimeTypeHasPrefix: String + detectedMimeTypeHasSuffix: String + detectedMimeTypeIsNil: Boolean + detectedMimeTypeNotNil: Boolean + detectedMimeTypeEqualFold: String + detectedMimeTypeContainsFold: String """ - send_attempts field predicates + md5_hash field predicates """ - sendAttempts: Int - sendAttemptsNEQ: Int - sendAttemptsIn: [Int!] - sendAttemptsNotIn: [Int!] - sendAttemptsGT: Int - sendAttemptsGTE: Int - sendAttemptsLT: Int - sendAttemptsLTE: Int + md5Hash: String + md5HashNEQ: String + md5HashIn: [String!] + md5HashNotIn: [String!] + md5HashGT: String + md5HashGTE: String + md5HashLT: String + md5HashLTE: String + md5HashContains: String + md5HashHasPrefix: String + md5HashHasSuffix: String + md5HashIsNil: Boolean + md5HashNotNil: Boolean + md5HashEqualFold: String + md5HashContainsFold: String """ - requestor_id field predicates + detected_content_type field predicates """ - requestorID: String - requestorIDNEQ: String - requestorIDIn: [String!] - requestorIDNotIn: [String!] - requestorIDGT: String - requestorIDGTE: String - requestorIDLT: String - requestorIDLTE: String - requestorIDContains: String - requestorIDHasPrefix: String - requestorIDHasSuffix: String - requestorIDIsNil: Boolean - requestorIDNotNil: Boolean - requestorIDEqualFold: String - requestorIDContainsFold: String + detectedContentType: String + detectedContentTypeNEQ: String + detectedContentTypeIn: [String!] + detectedContentTypeNotIn: [String!] + detectedContentTypeGT: String + detectedContentTypeGTE: String + detectedContentTypeLT: String + detectedContentTypeLTE: String + detectedContentTypeContains: String + detectedContentTypeHasPrefix: String + detectedContentTypeHasSuffix: String + detectedContentTypeEqualFold: String + detectedContentTypeContainsFold: String """ - owner edge predicates + store_key field predicates """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + storeKey: String + storeKeyNEQ: String + storeKeyIn: [String!] + storeKeyNotIn: [String!] + storeKeyGT: String + storeKeyGTE: String + storeKeyLT: String + storeKeyLTE: String + storeKeyContains: String + storeKeyHasPrefix: String + storeKeyHasSuffix: String + storeKeyIsNil: Boolean + storeKeyNotNil: Boolean + storeKeyEqualFold: String + storeKeyContainsFold: String """ - events edge predicates + category_type field predicates """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] -} -""" -A valid JSON string. -""" -scalar JSON -""" -The builtin Map type -""" -scalar Map -""" -An object with an ID. -Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) -""" -interface Node @goModel(model: "github.com/theopenlane/core/internal/ent/generated.Noder") { + categoryType: String + categoryTypeNEQ: String + categoryTypeIn: [String!] + categoryTypeNotIn: [String!] + categoryTypeGT: String + categoryTypeGTE: String + categoryTypeLT: String + categoryTypeLTE: String + categoryTypeContains: String + categoryTypeHasPrefix: String + categoryTypeHasSuffix: String + categoryTypeIsNil: Boolean + categoryTypeNotNil: Boolean + categoryTypeEqualFold: String + categoryTypeContainsFold: String """ - The id of the object. + uri field predicates """ - id: ID! -} -type Note implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String + uri: String + uriNEQ: String + uriIn: [String!] + uriNotIn: [String!] + uriGT: String + uriGTE: String + uriLT: String + uriLTE: String + uriContains: String + uriHasPrefix: String + uriHasSuffix: String + uriIsNil: Boolean + uriNotNil: Boolean + uriEqualFold: String + uriContainsFold: String """ - tags associated with the object + storage_scheme field predicates """ - tags: [String!] + storageScheme: String + storageSchemeNEQ: String + storageSchemeIn: [String!] + storageSchemeNotIn: [String!] + storageSchemeGT: String + storageSchemeGTE: String + storageSchemeLT: String + storageSchemeLTE: String + storageSchemeContains: String + storageSchemeHasPrefix: String + storageSchemeHasSuffix: String + storageSchemeIsNil: Boolean + storageSchemeNotNil: Boolean + storageSchemeEqualFold: String + storageSchemeContainsFold: String """ - the organization id that owns the object + storage_volume field predicates """ - ownerID: ID + storageVolume: String + storageVolumeNEQ: String + storageVolumeIn: [String!] + storageVolumeNotIn: [String!] + storageVolumeGT: String + storageVolumeGTE: String + storageVolumeLT: String + storageVolumeLTE: String + storageVolumeContains: String + storageVolumeHasPrefix: String + storageVolumeHasSuffix: String + storageVolumeIsNil: Boolean + storageVolumeNotNil: Boolean + storageVolumeEqualFold: String + storageVolumeContainsFold: String """ - the text of the note + storage_path field predicates """ - text: String! - owner: Organization - entity: Entity + storagePath: String + storagePathNEQ: String + storagePathIn: [String!] + storagePathNotIn: [String!] + storagePathGT: String + storagePathGTE: String + storagePathLT: String + storagePathLTE: String + storagePathContains: String + storagePathHasPrefix: String + storagePathHasSuffix: String + storagePathIsNil: Boolean + storagePathNotNil: Boolean + storagePathEqualFold: String + storagePathContainsFold: String } """ -A connection to a list of items. +FileWhereInput is used for filtering File objects. +Input was generated by ent. """ -type NoteConnection { - """ - A list of edges. - """ - edges: [NoteEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! +input FileWhereInput { + not: FileWhereInput + and: [FileWhereInput!] + or: [FileWhereInput!] """ - Identifies the total count of items in the connection. + id field predicates """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type NoteEdge { + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - The item at the end of the edge. + created_at field predicates """ - node: Note + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type NoteHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: NoteHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: String - """ - the text of the note - """ - text: String! -} -""" -A connection to a list of items. -""" -type NoteHistoryConnection { - """ - A list of edges. - """ - edges: [NoteHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type NoteHistoryEdge { - """ - The item at the end of the edge. - """ - node: NoteHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -NoteHistoryOpType is enum for the field operation -""" -enum NoteHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -NoteHistoryWhereInput is used for filtering NoteHistory objects. -Input was generated by ent. -""" -input NoteHistoryWhereInput { - not: NoteHistoryWhereInput - and: [NoteHistoryWhereInput!] - or: [NoteHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: NoteHistoryOpType - operationNEQ: NoteHistoryOpType - operationIn: [NoteHistoryOpType!] - operationNotIn: [NoteHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates + updated_at field predicates """ updatedAt: Time updatedAtNEQ: Time @@ -10588,261 +9933,326 @@ input NoteHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates + provided_file_name field predicates """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String + providedFileName: String + providedFileNameNEQ: String + providedFileNameIn: [String!] + providedFileNameNotIn: [String!] + providedFileNameGT: String + providedFileNameGTE: String + providedFileNameLT: String + providedFileNameLTE: String + providedFileNameContains: String + providedFileNameHasPrefix: String + providedFileNameHasSuffix: String + providedFileNameEqualFold: String + providedFileNameContainsFold: String """ - text field predicates + provided_file_extension field predicates """ - text: String - textNEQ: String - textIn: [String!] - textNotIn: [String!] - textGT: String - textGTE: String - textLT: String - textLTE: String - textContains: String - textHasPrefix: String - textHasSuffix: String - textEqualFold: String - textContainsFold: String -} -""" -NoteWhereInput is used for filtering Note objects. -Input was generated by ent. -""" -input NoteWhereInput { - not: NoteWhereInput - and: [NoteWhereInput!] - or: [NoteWhereInput!] + providedFileExtension: String + providedFileExtensionNEQ: String + providedFileExtensionIn: [String!] + providedFileExtensionNotIn: [String!] + providedFileExtensionGT: String + providedFileExtensionGTE: String + providedFileExtensionLT: String + providedFileExtensionLTE: String + providedFileExtensionContains: String + providedFileExtensionHasPrefix: String + providedFileExtensionHasSuffix: String + providedFileExtensionEqualFold: String + providedFileExtensionContainsFold: String """ - id field predicates + provided_file_size field predicates """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID + providedFileSize: Int + providedFileSizeNEQ: Int + providedFileSizeIn: [Int!] + providedFileSizeNotIn: [Int!] + providedFileSizeGT: Int + providedFileSizeGTE: Int + providedFileSizeLT: Int + providedFileSizeLTE: Int + providedFileSizeIsNil: Boolean + providedFileSizeNotNil: Boolean """ - created_at field predicates + persisted_file_size field predicates """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean + persistedFileSize: Int + persistedFileSizeNEQ: Int + persistedFileSizeIn: [Int!] + persistedFileSizeNotIn: [Int!] + persistedFileSizeGT: Int + persistedFileSizeGTE: Int + persistedFileSizeLT: Int + persistedFileSizeLTE: Int + persistedFileSizeIsNil: Boolean + persistedFileSizeNotNil: Boolean """ - updated_at field predicates + detected_mime_type field predicates """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates + detectedMimeType: String + detectedMimeTypeNEQ: String + detectedMimeTypeIn: [String!] + detectedMimeTypeNotIn: [String!] + detectedMimeTypeGT: String + detectedMimeTypeGTE: String + detectedMimeTypeLT: String + detectedMimeTypeLTE: String + detectedMimeTypeContains: String + detectedMimeTypeHasPrefix: String + detectedMimeTypeHasSuffix: String + detectedMimeTypeIsNil: Boolean + detectedMimeTypeNotNil: Boolean + detectedMimeTypeEqualFold: String + detectedMimeTypeContainsFold: String """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String + md5_hash field predicates """ - updated_by field predicates + md5Hash: String + md5HashNEQ: String + md5HashIn: [String!] + md5HashNotIn: [String!] + md5HashGT: String + md5HashGTE: String + md5HashLT: String + md5HashLTE: String + md5HashContains: String + md5HashHasPrefix: String + md5HashHasSuffix: String + md5HashIsNil: Boolean + md5HashNotNil: Boolean + md5HashEqualFold: String + md5HashContainsFold: String """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String + detected_content_type field predicates """ - deleted_at field predicates + detectedContentType: String + detectedContentTypeNEQ: String + detectedContentTypeIn: [String!] + detectedContentTypeNotIn: [String!] + detectedContentTypeGT: String + detectedContentTypeGTE: String + detectedContentTypeLT: String + detectedContentTypeLTE: String + detectedContentTypeContains: String + detectedContentTypeHasPrefix: String + detectedContentTypeHasSuffix: String + detectedContentTypeEqualFold: String + detectedContentTypeContainsFold: String """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean + store_key field predicates """ - deleted_by field predicates + storeKey: String + storeKeyNEQ: String + storeKeyIn: [String!] + storeKeyNotIn: [String!] + storeKeyGT: String + storeKeyGTE: String + storeKeyLT: String + storeKeyLTE: String + storeKeyContains: String + storeKeyHasPrefix: String + storeKeyHasSuffix: String + storeKeyIsNil: Boolean + storeKeyNotNil: Boolean + storeKeyEqualFold: String + storeKeyContainsFold: String """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String + category_type field predicates """ - owner_id field predicates + categoryType: String + categoryTypeNEQ: String + categoryTypeIn: [String!] + categoryTypeNotIn: [String!] + categoryTypeGT: String + categoryTypeGTE: String + categoryTypeLT: String + categoryTypeLTE: String + categoryTypeContains: String + categoryTypeHasPrefix: String + categoryTypeHasSuffix: String + categoryTypeIsNil: Boolean + categoryTypeNotNil: Boolean + categoryTypeEqualFold: String + categoryTypeContainsFold: String """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID + uri field predicates """ - text field predicates + uri: String + uriNEQ: String + uriIn: [String!] + uriNotIn: [String!] + uriGT: String + uriGTE: String + uriLT: String + uriLTE: String + uriContains: String + uriHasPrefix: String + uriHasSuffix: String + uriIsNil: Boolean + uriNotNil: Boolean + uriEqualFold: String + uriContainsFold: String """ - text: String - textNEQ: String - textIn: [String!] - textNotIn: [String!] - textGT: String - textGTE: String - textLT: String - textLTE: String - textContains: String - textHasPrefix: String - textHasSuffix: String - textEqualFold: String - textContainsFold: String + storage_scheme field predicates """ - owner edge predicates + storageScheme: String + storageSchemeNEQ: String + storageSchemeIn: [String!] + storageSchemeNotIn: [String!] + storageSchemeGT: String + storageSchemeGTE: String + storageSchemeLT: String + storageSchemeLTE: String + storageSchemeContains: String + storageSchemeHasPrefix: String + storageSchemeHasSuffix: String + storageSchemeIsNil: Boolean + storageSchemeNotNil: Boolean + storageSchemeEqualFold: String + storageSchemeContainsFold: String """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] + storage_volume field predicates """ - entity edge predicates + storageVolume: String + storageVolumeNEQ: String + storageVolumeIn: [String!] + storageVolumeNotIn: [String!] + storageVolumeGT: String + storageVolumeGTE: String + storageVolumeLT: String + storageVolumeLTE: String + storageVolumeContains: String + storageVolumeHasPrefix: String + storageVolumeHasSuffix: String + storageVolumeIsNil: Boolean + storageVolumeNotNil: Boolean + storageVolumeEqualFold: String + storageVolumeContainsFold: String """ - hasEntity: Boolean - hasEntityWith: [EntityWhereInput!] -} -type OauthProvider implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String + storage_path field predicates """ - tags associated with the object + storagePath: String + storagePathNEQ: String + storagePathIn: [String!] + storagePathNotIn: [String!] + storagePathGT: String + storagePathGTE: String + storagePathLT: String + storagePathLTE: String + storagePathContains: String + storagePathHasPrefix: String + storagePathHasSuffix: String + storagePathIsNil: Boolean + storagePathNotNil: Boolean + storagePathEqualFold: String + storagePathContainsFold: String """ - tags: [String!] - deletedAt: Time - deletedBy: String + user edge predicates """ - the organization id that owns the object + hasUser: Boolean + hasUserWith: [UserWhereInput!] """ - ownerID: ID + organization edge predicates """ - the oauth provider's name + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] """ - name: String! + group edge predicates """ - the client id for the oauth provider + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] """ - clientID: String! + contact edge predicates """ - the client secret + hasContact: Boolean + hasContactWith: [ContactWhereInput!] """ - clientSecret: String! + entity edge predicates """ - the redirect url + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] """ - redirectURL: String! + usersetting edge predicates """ - the scopes + hasUsersetting: Boolean + hasUsersettingWith: [UserSettingWhereInput!] """ - scopes: String! + organizationsetting edge predicates """ - the auth url of the provider + hasOrganizationsetting: Boolean + hasOrganizationsettingWith: [OrganizationSettingWhereInput!] """ - authURL: String! + template edge predicates """ - the token url of the provider + hasTemplate: Boolean + hasTemplateWith: [TemplateWhereInput!] """ - tokenURL: String! + documentdata edge predicates """ - the auth style, 0: auto detect 1: third party log in 2: log in with username and password + hasDocumentdata: Boolean + hasDocumentdataWith: [DocumentDataWhereInput!] """ - authStyle: Uint! + events edge predicates """ - the URL to request user information by token + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type Group implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - infoURL: String! + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the group - must be unique within the organization + """ + name: String! + """ + the groups description + """ + description: String + """ + the URL to an auto generated gravatar image for the group + """ + gravatarLogoURL: String + """ + the URL to an image uploaded by the customer for the groups avatar image + """ + logoURL: String + """ + The group's displayed 'friendly' name + """ + displayName: String! owner: Organization + setting: GroupSetting! + users: [User!] + events: [Event!] + integrations: [Integration!] + files: [File!] + members: [GroupMembership!] } """ A connection to a list of items. """ -type OauthProviderConnection { +type GroupConnection { """ A list of edges. """ - edges: [OauthProviderEdge] + edges: [GroupEdge] """ Information to aid in pagination. """ @@ -10855,80 +10265,64 @@ type OauthProviderConnection { """ An edge in a connection. """ -type OauthProviderEdge { +type GroupEdge { """ The item at the end of the edge. """ - node: OauthProvider + node: Group """ A cursor for use in pagination. """ cursor: Cursor! } -type OauthProviderHistory implements Node { +type GroupHistory implements Node { id: ID! historyTime: Time! ref: String - operation: OauthProviderHistoryOpType! + operation: GroupHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String + deletedAt: Time + deletedBy: String """ tags associated with the object """ tags: [String!] - deletedAt: Time - deletedBy: String """ the organization id that owns the object """ ownerID: String """ - the oauth provider's name + the name of the group - must be unique within the organization """ name: String! """ - the client id for the oauth provider - """ - clientID: String! - """ - the client secret - """ - clientSecret: String! - """ - the redirect url - """ - redirectURL: String! - """ - the scopes - """ - scopes: String! - """ - the auth url of the provider + the groups description """ - authURL: String! + description: String """ - the token url of the provider + the URL to an auto generated gravatar image for the group """ - tokenURL: String! + gravatarLogoURL: String """ - the auth style, 0: auto detect 1: third party log in 2: log in with username and password + the URL to an image uploaded by the customer for the groups avatar image """ - authStyle: Uint! + logoURL: String """ - the URL to request user information by token + The group's displayed 'friendly' name """ - infoURL: String! + displayName: String! } """ A connection to a list of items. """ -type OauthProviderHistoryConnection { +type GroupHistoryConnection { """ A list of edges. """ - edges: [OauthProviderHistoryEdge] + edges: [GroupHistoryEdge] """ Information to aid in pagination. """ @@ -10941,32 +10335,52 @@ type OauthProviderHistoryConnection { """ An edge in a connection. """ -type OauthProviderHistoryEdge { +type GroupHistoryEdge { """ The item at the end of the edge. """ - node: OauthProviderHistory + node: GroupHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -OauthProviderHistoryOpType is enum for the field operation +GroupHistoryOpType is enum for the field operation """ -enum OauthProviderHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum GroupHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -OauthProviderHistoryWhereInput is used for filtering OauthProviderHistory objects. +Ordering options for GroupHistory connections +""" +input GroupHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order GroupHistories. + """ + field: GroupHistoryOrderField! +} +""" +Properties by which GroupHistory connections can be ordered. +""" +enum GroupHistoryOrderField { + name + display_name +} +""" +GroupHistoryWhereInput is used for filtering GroupHistory objects. Input was generated by ent. """ -input OauthProviderHistoryWhereInput { - not: OauthProviderHistoryWhereInput - and: [OauthProviderHistoryWhereInput!] - or: [OauthProviderHistoryWhereInput!] +input GroupHistoryWhereInput { + not: GroupHistoryWhereInput + and: [GroupHistoryWhereInput!] + or: [GroupHistoryWhereInput!] """ id field predicates """ @@ -11012,10 +10426,10 @@ input OauthProviderHistoryWhereInput { """ operation field predicates """ - operation: OauthProviderHistoryOpType - operationNEQ: OauthProviderHistoryOpType - operationIn: [OauthProviderHistoryOpType!] - operationNotIn: [OauthProviderHistoryOpType!] + operation: GroupHistoryOpType + operationNEQ: GroupHistoryOpType + operationIn: [GroupHistoryOpType!] + operationNotIn: [GroupHistoryOpType!] """ created_at field predicates """ @@ -11144,137 +10558,136 @@ input OauthProviderHistoryWhereInput { nameEqualFold: String nameContainsFold: String """ - client_id field predicates + display_name field predicates """ - clientID: String - clientIDNEQ: String - clientIDIn: [String!] - clientIDNotIn: [String!] - clientIDGT: String - clientIDGTE: String - clientIDLT: String - clientIDLTE: String - clientIDContains: String - clientIDHasPrefix: String - clientIDHasSuffix: String - clientIDEqualFold: String - clientIDContainsFold: String + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String +} +type GroupMembership implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: GroupMembershipRole! + groupID: ID! + userID: ID! + group: Group! + user: User! + events: [Event!] +} +""" +A connection to a list of items. +""" +type GroupMembershipConnection { """ - client_secret field predicates + A list of edges. """ - clientSecret: String - clientSecretNEQ: String - clientSecretIn: [String!] - clientSecretNotIn: [String!] - clientSecretGT: String - clientSecretGTE: String - clientSecretLT: String - clientSecretLTE: String - clientSecretContains: String - clientSecretHasPrefix: String - clientSecretHasSuffix: String - clientSecretEqualFold: String - clientSecretContainsFold: String + edges: [GroupMembershipEdge] """ - redirect_url field predicates + Information to aid in pagination. """ - redirectURL: String - redirectURLNEQ: String - redirectURLIn: [String!] - redirectURLNotIn: [String!] - redirectURLGT: String - redirectURLGTE: String - redirectURLLT: String - redirectURLLTE: String - redirectURLContains: String - redirectURLHasPrefix: String - redirectURLHasSuffix: String - redirectURLEqualFold: String - redirectURLContainsFold: String + pageInfo: PageInfo! """ - scopes field predicates + Identifies the total count of items in the connection. """ - scopes: String - scopesNEQ: String - scopesIn: [String!] - scopesNotIn: [String!] - scopesGT: String - scopesGTE: String - scopesLT: String - scopesLTE: String - scopesContains: String - scopesHasPrefix: String - scopesHasSuffix: String - scopesEqualFold: String - scopesContainsFold: String + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupMembershipEdge { """ - auth_url field predicates + The item at the end of the edge. """ - authURL: String - authURLNEQ: String - authURLIn: [String!] - authURLNotIn: [String!] - authURLGT: String - authURLGTE: String - authURLLT: String - authURLLTE: String - authURLContains: String - authURLHasPrefix: String - authURLHasSuffix: String - authURLEqualFold: String - authURLContainsFold: String + node: GroupMembership """ - token_url field predicates + A cursor for use in pagination. """ - tokenURL: String - tokenURLNEQ: String - tokenURLIn: [String!] - tokenURLNotIn: [String!] - tokenURLGT: String - tokenURLGTE: String - tokenURLLT: String - tokenURLLTE: String - tokenURLContains: String - tokenURLHasPrefix: String - tokenURLHasSuffix: String - tokenURLEqualFold: String - tokenURLContainsFold: String + cursor: Cursor! +} +type GroupMembershipHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: GroupMembershipHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: GroupMembershipHistoryRole! + groupID: String! + userID: String! +} +""" +A connection to a list of items. +""" +type GroupMembershipHistoryConnection { """ - auth_style field predicates + A list of edges. """ - authStyle: Uint - authStyleNEQ: Uint - authStyleIn: [Uint!] - authStyleNotIn: [Uint!] - authStyleGT: Uint - authStyleGTE: Uint - authStyleLT: Uint - authStyleLTE: Uint + edges: [GroupMembershipHistoryEdge] """ - info_url field predicates + Information to aid in pagination. """ - infoURL: String - infoURLNEQ: String - infoURLIn: [String!] - infoURLNotIn: [String!] - infoURLGT: String - infoURLGTE: String - infoURLLT: String - infoURLLTE: String - infoURLContains: String - infoURLHasPrefix: String - infoURLHasSuffix: String - infoURLEqualFold: String - infoURLContainsFold: String + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! } """ -OauthProviderWhereInput is used for filtering OauthProvider objects. +An edge in a connection. +""" +type GroupMembershipHistoryEdge { + """ + The item at the end of the edge. + """ + node: GroupMembershipHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +GroupMembershipHistoryOpType is enum for the field operation +""" +enum GroupMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +GroupMembershipHistoryRole is enum for the field role +""" +enum GroupMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER +} +""" +GroupMembershipHistoryWhereInput is used for filtering GroupMembershipHistory objects. Input was generated by ent. """ -input OauthProviderWhereInput { - not: OauthProviderWhereInput - and: [OauthProviderWhereInput!] - or: [OauthProviderWhereInput!] +input GroupMembershipHistoryWhereInput { + not: GroupMembershipHistoryWhereInput + and: [GroupMembershipHistoryWhereInput!] + or: [GroupMembershipHistoryWhereInput!] """ id field predicates """ @@ -11289,6 +10702,42 @@ input OauthProviderWhereInput { idEqualFold: ID idContainsFold: ID """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: GroupMembershipHistoryOpType + operationNEQ: GroupMembershipHistoryOpType + operationIn: [GroupMembershipHistoryOpType!] + operationNotIn: [GroupMembershipHistoryOpType!] + """ created_at field predicates """ createdAt: Time @@ -11382,227 +10831,61 @@ input OauthProviderWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates + role field predicates """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String + role: GroupMembershipHistoryRole + roleNEQ: GroupMembershipHistoryRole + roleIn: [GroupMembershipHistoryRole!] + roleNotIn: [GroupMembershipHistoryRole!] """ - client_id field predicates + group_id field predicates """ - clientID: String - clientIDNEQ: String - clientIDIn: [String!] - clientIDNotIn: [String!] - clientIDGT: String - clientIDGTE: String - clientIDLT: String - clientIDLTE: String - clientIDContains: String - clientIDHasPrefix: String - clientIDHasSuffix: String - clientIDEqualFold: String - clientIDContainsFold: String + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDGT: String + groupIDGTE: String + groupIDLT: String + groupIDLTE: String + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDEqualFold: String + groupIDContainsFold: String """ - client_secret field predicates + user_id field predicates """ - clientSecret: String - clientSecretNEQ: String - clientSecretIn: [String!] - clientSecretNotIn: [String!] - clientSecretGT: String - clientSecretGTE: String - clientSecretLT: String - clientSecretLTE: String - clientSecretContains: String - clientSecretHasPrefix: String - clientSecretHasSuffix: String - clientSecretEqualFold: String - clientSecretContainsFold: String - """ - redirect_url field predicates - """ - redirectURL: String - redirectURLNEQ: String - redirectURLIn: [String!] - redirectURLNotIn: [String!] - redirectURLGT: String - redirectURLGTE: String - redirectURLLT: String - redirectURLLTE: String - redirectURLContains: String - redirectURLHasPrefix: String - redirectURLHasSuffix: String - redirectURLEqualFold: String - redirectURLContainsFold: String - """ - scopes field predicates - """ - scopes: String - scopesNEQ: String - scopesIn: [String!] - scopesNotIn: [String!] - scopesGT: String - scopesGTE: String - scopesLT: String - scopesLTE: String - scopesContains: String - scopesHasPrefix: String - scopesHasSuffix: String - scopesEqualFold: String - scopesContainsFold: String - """ - auth_url field predicates - """ - authURL: String - authURLNEQ: String - authURLIn: [String!] - authURLNotIn: [String!] - authURLGT: String - authURLGTE: String - authURLLT: String - authURLLTE: String - authURLContains: String - authURLHasPrefix: String - authURLHasSuffix: String - authURLEqualFold: String - authURLContainsFold: String - """ - token_url field predicates - """ - tokenURL: String - tokenURLNEQ: String - tokenURLIn: [String!] - tokenURLNotIn: [String!] - tokenURLGT: String - tokenURLGTE: String - tokenURLLT: String - tokenURLLTE: String - tokenURLContains: String - tokenURLHasPrefix: String - tokenURLHasSuffix: String - tokenURLEqualFold: String - tokenURLContainsFold: String - """ - auth_style field predicates - """ - authStyle: Uint - authStyleNEQ: Uint - authStyleIn: [Uint!] - authStyleNotIn: [Uint!] - authStyleGT: Uint - authStyleGTE: Uint - authStyleLT: Uint - authStyleLTE: Uint - """ - info_url field predicates - """ - infoURL: String - infoURLNEQ: String - infoURLIn: [String!] - infoURLNotIn: [String!] - infoURLGT: String - infoURLGTE: String - infoURLLT: String - infoURLLTE: String - infoURLContains: String - infoURLHasPrefix: String - infoURLHasSuffix: String - infoURLEqualFold: String - infoURLContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] -} -type OhAuthTooToken implements Node { - id: ID! - """ - tags associated with the object - """ - tags: [String!] - clientID: String! - scopes: [String!] - nonce: String! - claimsUserID: String! - claimsUsername: String! - claimsEmail: String! - claimsEmailVerified: Boolean! - claimsGroups: [String!] - claimsPreferredUsername: String! - connectorID: String! - connectorData: [String!] - lastUsed: Time! - integration: [Integration!] - events: [Event!] -} -""" -A connection to a list of items. -""" -type OhAuthTooTokenConnection { - """ - A list of edges. - """ - edges: [OhAuthTooTokenEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDEqualFold: String + userIDContainsFold: String } """ -An edge in a connection. +GroupMembershipRole is enum for the field role """ -type OhAuthTooTokenEdge { - """ - The item at the end of the edge. - """ - node: OhAuthTooToken - """ - A cursor for use in pagination. - """ - cursor: Cursor! +enum GroupMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER } """ -OhAuthTooTokenWhereInput is used for filtering OhAuthTooToken objects. +GroupMembershipWhereInput is used for filtering GroupMembership objects. Input was generated by ent. """ -input OhAuthTooTokenWhereInput { - not: OhAuthTooTokenWhereInput - and: [OhAuthTooTokenWhereInput!] - or: [OhAuthTooTokenWhereInput!] +input GroupMembershipWhereInput { + not: GroupMembershipWhereInput + and: [GroupMembershipWhereInput!] + or: [GroupMembershipWhereInput!] """ id field predicates """ @@ -11617,180 +10900,168 @@ input OhAuthTooTokenWhereInput { idEqualFold: ID idContainsFold: ID """ - client_id field predicates - """ - clientID: String - clientIDNEQ: String - clientIDIn: [String!] - clientIDNotIn: [String!] - clientIDGT: String - clientIDGTE: String - clientIDLT: String - clientIDLTE: String - clientIDContains: String - clientIDHasPrefix: String - clientIDHasSuffix: String - clientIDEqualFold: String - clientIDContainsFold: String - """ - nonce field predicates + created_at field predicates """ - nonce: String - nonceNEQ: String - nonceIn: [String!] - nonceNotIn: [String!] - nonceGT: String - nonceGTE: String - nonceLT: String - nonceLTE: String - nonceContains: String - nonceHasPrefix: String - nonceHasSuffix: String - nonceEqualFold: String - nonceContainsFold: String + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - claims_user_id field predicates + updated_at field predicates """ - claimsUserID: String - claimsUserIDNEQ: String - claimsUserIDIn: [String!] - claimsUserIDNotIn: [String!] - claimsUserIDGT: String - claimsUserIDGTE: String - claimsUserIDLT: String - claimsUserIDLTE: String - claimsUserIDContains: String - claimsUserIDHasPrefix: String - claimsUserIDHasSuffix: String - claimsUserIDEqualFold: String - claimsUserIDContainsFold: String + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - claims_username field predicates + created_by field predicates """ - claimsUsername: String - claimsUsernameNEQ: String - claimsUsernameIn: [String!] - claimsUsernameNotIn: [String!] - claimsUsernameGT: String - claimsUsernameGTE: String - claimsUsernameLT: String - claimsUsernameLTE: String - claimsUsernameContains: String - claimsUsernameHasPrefix: String - claimsUsernameHasSuffix: String - claimsUsernameEqualFold: String - claimsUsernameContainsFold: String - """ - claims_email field predicates - """ - claimsEmail: String - claimsEmailNEQ: String - claimsEmailIn: [String!] - claimsEmailNotIn: [String!] - claimsEmailGT: String - claimsEmailGTE: String - claimsEmailLT: String - claimsEmailLTE: String - claimsEmailContains: String - claimsEmailHasPrefix: String - claimsEmailHasSuffix: String - claimsEmailEqualFold: String - claimsEmailContainsFold: String - """ - claims_email_verified field predicates - """ - claimsEmailVerified: Boolean - claimsEmailVerifiedNEQ: Boolean - """ - claims_preferred_username field predicates - """ - claimsPreferredUsername: String - claimsPreferredUsernameNEQ: String - claimsPreferredUsernameIn: [String!] - claimsPreferredUsernameNotIn: [String!] - claimsPreferredUsernameGT: String - claimsPreferredUsernameGTE: String - claimsPreferredUsernameLT: String - claimsPreferredUsernameLTE: String - claimsPreferredUsernameContains: String - claimsPreferredUsernameHasPrefix: String - claimsPreferredUsernameHasSuffix: String - claimsPreferredUsernameEqualFold: String - claimsPreferredUsernameContainsFold: String + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - connector_id field predicates + updated_by field predicates """ - connectorID: String - connectorIDNEQ: String - connectorIDIn: [String!] - connectorIDNotIn: [String!] - connectorIDGT: String - connectorIDGTE: String - connectorIDLT: String - connectorIDLTE: String - connectorIDContains: String - connectorIDHasPrefix: String - connectorIDHasSuffix: String - connectorIDEqualFold: String - connectorIDContainsFold: String + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - last_used field predicates + deleted_at field predicates """ - lastUsed: Time - lastUsedNEQ: Time - lastUsedIn: [Time!] - lastUsedNotIn: [Time!] - lastUsedGT: Time - lastUsedGTE: Time - lastUsedLT: Time - lastUsedLTE: Time + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - integration edge predicates + deleted_by field predicates """ - hasIntegration: Boolean - hasIntegrationWith: [IntegrationWhereInput!] + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - events edge predicates + role field predicates """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + role: GroupMembershipRole + roleNEQ: GroupMembershipRole + roleIn: [GroupMembershipRole!] + roleNotIn: [GroupMembershipRole!] } """ -Possible directions in which to order a list of items when provided an `orderBy` argument. +Ordering options for Group connections """ -enum OrderDirection { +input GroupOrder { """ - Specifies an ascending order for a given `orderBy` argument. + The ordering direction. """ - ASC + direction: OrderDirection! = ASC """ - Specifies a descending order for a given `orderBy` argument. + The field by which to order Groups. """ - DESC + field: GroupOrderField! } -type OrgMembership implements Node { +""" +Properties by which Group connections can be ordered. +""" +enum GroupOrderField { + name + display_name +} +type GroupSetting implements Node { id: ID! createdAt: Time updatedAt: Time createdBy: String updatedBy: String + """ + tags associated with the object + """ + tags: [String!] deletedAt: Time deletedBy: String - role: OrgMembershipRole! - organizationID: ID! - userID: ID! - organization: Organization! - user: User! - events: [Event!] + """ + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + """ + visibility: GroupSettingVisibility! + """ + the policy governing ability to freely join a group, whether it requires an invitation, application, or either + """ + joinPolicy: GroupSettingJoinPolicy! + """ + whether to sync group members to slack groups + """ + syncToSlack: Boolean + """ + whether to sync group members to github groups + """ + syncToGithub: Boolean + """ + the group id associated with the settings + """ + groupID: ID + group: Group } """ A connection to a list of items. """ -type OrgMembershipConnection { +type GroupSettingConnection { """ A list of edges. """ - edges: [OrgMembershipEdge] + edges: [GroupSettingEdge] """ Information to aid in pagination. """ @@ -11803,39 +11074,60 @@ type OrgMembershipConnection { """ An edge in a connection. """ -type OrgMembershipEdge { +type GroupSettingEdge { """ The item at the end of the edge. """ - node: OrgMembership + node: GroupSetting """ A cursor for use in pagination. """ cursor: Cursor! } -type OrgMembershipHistory implements Node { +type GroupSettingHistory implements Node { id: ID! historyTime: Time! ref: String - operation: OrgMembershipHistoryOpType! + operation: GroupSettingHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String + """ + tags associated with the object + """ + tags: [String!] deletedAt: Time deletedBy: String - role: OrgMembershipHistoryRole! - organizationID: String! - userID: String! + """ + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + """ + visibility: GroupSettingHistoryVisibility! + """ + the policy governing ability to freely join a group, whether it requires an invitation, application, or either + """ + joinPolicy: GroupSettingHistoryJoinPolicy! + """ + whether to sync group members to slack groups + """ + syncToSlack: Boolean + """ + whether to sync group members to github groups + """ + syncToGithub: Boolean + """ + the group id associated with the settings + """ + groupID: String } """ A connection to a list of items. """ -type OrgMembershipHistoryConnection { +type GroupSettingHistoryConnection { """ A list of edges. """ - edges: [OrgMembershipHistoryEdge] + edges: [GroupSettingHistoryEdge] """ Information to aid in pagination. """ @@ -11848,41 +11140,48 @@ type OrgMembershipHistoryConnection { """ An edge in a connection. """ -type OrgMembershipHistoryEdge { +type GroupSettingHistoryEdge { """ The item at the end of the edge. """ - node: OrgMembershipHistory + node: GroupSettingHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -OrgMembershipHistoryOpType is enum for the field operation +GroupSettingHistoryJoinPolicy is enum for the field join_policy """ -enum OrgMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum GroupSettingHistoryJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { + OPEN + INVITE_ONLY + APPLICATION_ONLY + INVITE_OR_APPLICATION +} +""" +GroupSettingHistoryOpType is enum for the field operation +""" +enum GroupSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -OrgMembershipHistoryRole is enum for the field role +GroupSettingHistoryVisibility is enum for the field visibility """ -enum OrgMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER - OWNER +enum GroupSettingHistoryVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { + PUBLIC + PRIVATE } """ -OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. +GroupSettingHistoryWhereInput is used for filtering GroupSettingHistory objects. Input was generated by ent. """ -input OrgMembershipHistoryWhereInput { - not: OrgMembershipHistoryWhereInput - and: [OrgMembershipHistoryWhereInput!] - or: [OrgMembershipHistoryWhereInput!] +input GroupSettingHistoryWhereInput { + not: GroupSettingHistoryWhereInput + and: [GroupSettingHistoryWhereInput!] + or: [GroupSettingHistoryWhereInput!] """ id field predicates """ @@ -11928,10 +11227,10 @@ input OrgMembershipHistoryWhereInput { """ operation field predicates """ - operation: OrgMembershipHistoryOpType - operationNEQ: OrgMembershipHistoryOpType - operationIn: [OrgMembershipHistoryOpType!] - operationNotIn: [OrgMembershipHistoryOpType!] + operation: GroupSettingHistoryOpType + operationNEQ: GroupSettingHistoryOpType + operationIn: [GroupSettingHistoryOpType!] + operationNotIn: [GroupSettingHistoryOpType!] """ created_at field predicates """ @@ -12026,62 +11325,76 @@ input OrgMembershipHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - role field predicates + visibility field predicates """ - role: OrgMembershipHistoryRole - roleNEQ: OrgMembershipHistoryRole - roleIn: [OrgMembershipHistoryRole!] - roleNotIn: [OrgMembershipHistoryRole!] + visibility: GroupSettingHistoryVisibility + visibilityNEQ: GroupSettingHistoryVisibility + visibilityIn: [GroupSettingHistoryVisibility!] + visibilityNotIn: [GroupSettingHistoryVisibility!] """ - organization_id field predicates + join_policy field predicates """ - organizationID: String - organizationIDNEQ: String - organizationIDIn: [String!] - organizationIDNotIn: [String!] - organizationIDGT: String - organizationIDGTE: String - organizationIDLT: String - organizationIDLTE: String - organizationIDContains: String - organizationIDHasPrefix: String - organizationIDHasSuffix: String - organizationIDEqualFold: String - organizationIDContainsFold: String + joinPolicy: GroupSettingHistoryJoinPolicy + joinPolicyNEQ: GroupSettingHistoryJoinPolicy + joinPolicyIn: [GroupSettingHistoryJoinPolicy!] + joinPolicyNotIn: [GroupSettingHistoryJoinPolicy!] """ - user_id field predicates + sync_to_slack field predicates """ - userID: String - userIDNEQ: String - userIDIn: [String!] - userIDNotIn: [String!] - userIDGT: String - userIDGTE: String - userIDLT: String - userIDLTE: String - userIDContains: String - userIDHasPrefix: String - userIDHasSuffix: String - userIDEqualFold: String - userIDContainsFold: String + syncToSlack: Boolean + syncToSlackNEQ: Boolean + syncToSlackIsNil: Boolean + syncToSlackNotNil: Boolean + """ + sync_to_github field predicates + """ + syncToGithub: Boolean + syncToGithubNEQ: Boolean + syncToGithubIsNil: Boolean + syncToGithubNotNil: Boolean + """ + group_id field predicates + """ + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDGT: String + groupIDGTE: String + groupIDLT: String + groupIDLTE: String + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: String + groupIDContainsFold: String } """ -OrgMembershipRole is enum for the field role +GroupSettingJoinPolicy is enum for the field join_policy """ -enum OrgMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER - OWNER +enum GroupSettingJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { + OPEN + INVITE_ONLY + APPLICATION_ONLY + INVITE_OR_APPLICATION } """ -OrgMembershipWhereInput is used for filtering OrgMembership objects. +GroupSettingVisibility is enum for the field visibility +""" +enum GroupSettingVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { + PUBLIC + PRIVATE +} +""" +GroupSettingWhereInput is used for filtering GroupSetting objects. Input was generated by ent. """ -input OrgMembershipWhereInput { - not: OrgMembershipWhereInput - and: [OrgMembershipWhereInput!] - or: [OrgMembershipWhereInput!] +input GroupSettingWhereInput { + not: GroupSettingWhereInput + and: [GroupSettingWhereInput!] + or: [GroupSettingWhereInput!] """ id field predicates """ @@ -12189,294 +11502,80 @@ input OrgMembershipWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - role field predicates + visibility field predicates """ - role: OrgMembershipRole - roleNEQ: OrgMembershipRole - roleIn: [OrgMembershipRole!] - roleNotIn: [OrgMembershipRole!] -} -type Organization implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String + visibility: GroupSettingVisibility + visibilityNEQ: GroupSettingVisibility + visibilityIn: [GroupSettingVisibility!] + visibilityNotIn: [GroupSettingVisibility!] """ - tags associated with the object + join_policy field predicates """ - tags: [String!] - deletedAt: Time - deletedBy: String + joinPolicy: GroupSettingJoinPolicy + joinPolicyNEQ: GroupSettingJoinPolicy + joinPolicyIn: [GroupSettingJoinPolicy!] + joinPolicyNotIn: [GroupSettingJoinPolicy!] """ - the name of the organization + sync_to_slack field predicates """ - name: String! + syncToSlack: Boolean + syncToSlackNEQ: Boolean + syncToSlackIsNil: Boolean + syncToSlackNotNil: Boolean """ - The organization's displayed 'friendly' name + sync_to_github field predicates """ - displayName: String! + syncToGithub: Boolean + syncToGithubNEQ: Boolean + syncToGithubIsNil: Boolean + syncToGithubNotNil: Boolean """ - An optional description of the organization + group_id field predicates """ - description: String + groupID: ID + groupIDNEQ: ID + groupIDIn: [ID!] + groupIDNotIn: [ID!] + groupIDGT: ID + groupIDGTE: ID + groupIDLT: ID + groupIDLTE: ID + groupIDContains: ID + groupIDHasPrefix: ID + groupIDHasSuffix: ID + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: ID + groupIDContainsFold: ID """ - orgs directly associated with a user + group edge predicates """ - personalOrg: Boolean + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] +} +""" +GroupWhereInput is used for filtering Group objects. +Input was generated by ent. +""" +input GroupWhereInput { + not: GroupWhereInput + and: [GroupWhereInput!] + or: [GroupWhereInput!] """ - URL of the user's remote avatar + id field predicates """ - avatarRemoteURL: String + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - Whether the organization has a dedicated database - """ - dedicatedDb: Boolean! - parent: Organization - children( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Organizations returned from the connection. - """ - orderBy: OrganizationOrder - - """ - Filtering options for Organizations returned from the connection. - """ - where: OrganizationWhereInput - ): OrganizationConnection! - groups: [Group!] - templates: [Template!] - integrations: [Integration!] - setting: OrganizationSetting - documentdata: [DocumentData!] - entitlements: [Entitlement!] - organizationEntitlement: [Entitlement!] - personalAccessTokens: [PersonalAccessToken!] - apiTokens: [APIToken!] - oauthprovider: [OauthProvider!] - users: [User!] - invites: [Invite!] - subscribers: [Subscriber!] - webhooks: [Webhook!] - events: [Event!] - secrets: [Hush!] - features: [Feature!] - files: [File!] - entitlementplans: [EntitlementPlan!] - entitlementplanfeatures: [EntitlementPlanFeature!] - entities: [Entity!] - entitytypes: [EntityType!] - contacts: [Contact!] - notes: [Note!] - members: [OrgMembership!] -} -""" -A connection to a list of items. -""" -type OrganizationConnection { - """ - A list of edges. - """ - edges: [OrganizationEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrganizationEdge { - """ - The item at the end of the edge. - """ - node: Organization - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type OrganizationHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: OrganizationHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the name of the organization - """ - name: String! - """ - The organization's displayed 'friendly' name - """ - displayName: String! - """ - An optional description of the organization - """ - description: String - """ - orgs directly associated with a user - """ - personalOrg: Boolean - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - Whether the organization has a dedicated database - """ - dedicatedDb: Boolean! -} -""" -A connection to a list of items. -""" -type OrganizationHistoryConnection { - """ - A list of edges. - """ - edges: [OrganizationHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrganizationHistoryEdge { - """ - The item at the end of the edge. - """ - node: OrganizationHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -OrganizationHistoryOpType is enum for the field operation -""" -enum OrganizationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for OrganizationHistory connections -""" -input OrganizationHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order OrganizationHistories. - """ - field: OrganizationHistoryOrderField! -} -""" -Properties by which OrganizationHistory connections can be ordered. -""" -enum OrganizationHistoryOrderField { - name - display_name -} -""" -OrganizationHistoryWhereInput is used for filtering OrganizationHistory objects. -Input was generated by ent. -""" -input OrganizationHistoryWhereInput { - not: OrganizationHistoryWhereInput - and: [OrganizationHistoryWhereInput!] - or: [OrganizationHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: OrganizationHistoryOpType - operationNEQ: OrganizationHistoryOpType - operationIn: [OrganizationHistoryOpType!] - operationNotIn: [OrganizationHistoryOpType!] - """ - created_at field predicates + created_at field predicates """ createdAt: Time createdAtNEQ: Time @@ -12569,6 +11668,40 @@ input OrganizationHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ display_name field predicates """ displayName: String @@ -12585,124 +11718,80 @@ input OrganizationHistoryWhereInput { displayNameEqualFold: String displayNameContainsFold: String """ - parent_organization_id field predicates + owner edge predicates """ - parentOrganizationID: ID - parentOrganizationIDNEQ: ID - parentOrganizationIDIn: [ID!] - parentOrganizationIDNotIn: [ID!] - parentOrganizationIDGT: ID - parentOrganizationIDGTE: ID - parentOrganizationIDLT: ID - parentOrganizationIDLTE: ID - parentOrganizationIDContains: ID - parentOrganizationIDHasPrefix: ID - parentOrganizationIDHasSuffix: ID - parentOrganizationIDIsNil: Boolean - parentOrganizationIDNotNil: Boolean - parentOrganizationIDEqualFold: ID - parentOrganizationIDContainsFold: ID + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - personal_org field predicates + setting edge predicates """ - personalOrg: Boolean - personalOrgNEQ: Boolean - personalOrgIsNil: Boolean - personalOrgNotNil: Boolean + hasSetting: Boolean + hasSettingWith: [GroupSettingWhereInput!] """ - avatar_remote_url field predicates + users edge predicates """ - avatarRemoteURL: String - avatarRemoteURLNEQ: String - avatarRemoteURLIn: [String!] - avatarRemoteURLNotIn: [String!] - avatarRemoteURLGT: String - avatarRemoteURLGTE: String - avatarRemoteURLLT: String - avatarRemoteURLLTE: String - avatarRemoteURLContains: String - avatarRemoteURLHasPrefix: String - avatarRemoteURLHasSuffix: String - avatarRemoteURLIsNil: Boolean - avatarRemoteURLNotNil: Boolean - avatarRemoteURLEqualFold: String - avatarRemoteURLContainsFold: String -} -""" -Ordering options for Organization connections -""" -input OrganizationOrder { + hasUsers: Boolean + hasUsersWith: [UserWhereInput!] """ - The ordering direction. + events edge predicates """ - direction: OrderDirection! = ASC + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] """ - The field by which to order Organizations. + integrations edge predicates """ - field: OrganizationOrderField! -} -""" -Properties by which Organization connections can be ordered. -""" -enum OrganizationOrderField { - name - display_name + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + members edge predicates + """ + hasMembers: Boolean + hasMembersWith: [GroupMembershipWhereInput!] } -type OrganizationSetting implements Node { +type Hush implements Node { id: ID! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - """ - tags associated with the object - """ - tags: [String!] deletedAt: Time deletedBy: String """ - domains associated with the organization - """ - domains: [String!] - """ - Name of the person to contact for billing - """ - billingContact: String - """ - Email address of the person to contact for billing - """ - billingEmail: String - """ - Phone number to contact for billing + the logical name of the corresponding hush secret or it's general grouping """ - billingPhone: String + name: String! """ - Address to send billing information to + a description of the hush value or purpose, such as github PAT """ - billingAddress: String + description: String """ - Usually government-issued tax ID or business ID such as ABN in Australia + the kind of secret, such as sshkey, certificate, api token, etc. """ - taxIdentifier: String + kind: String """ - geographical location of the organization + the generic name of a secret associated with the organization """ - geoLocation: OrganizationSettingRegion + secretName: String """ - the ID of the organization the settings belong to + the integration associated with the secret """ - organizationID: ID - organization: Organization - files: [File!] + integrations: [Integration!] + organization: [Organization!] + events: [Event!] } """ A connection to a list of items. """ -type OrganizationSettingConnection { +type HushConnection { """ A list of edges. """ - edges: [OrganizationSettingEdge] + edges: [HushEdge] """ Information to aid in pagination. """ @@ -12715,72 +11804,52 @@ type OrganizationSettingConnection { """ An edge in a connection. """ -type OrganizationSettingEdge { +type HushEdge { """ The item at the end of the edge. """ - node: OrganizationSetting + node: Hush """ A cursor for use in pagination. """ cursor: Cursor! } -type OrganizationSettingHistory implements Node { +type HushHistory implements Node { id: ID! historyTime: Time! ref: String - operation: OrganizationSettingHistoryOpType! + operation: HushHistoryOpType! createdAt: Time updatedAt: Time createdBy: String updatedBy: String - """ - tags associated with the object - """ - tags: [String!] deletedAt: Time deletedBy: String """ - domains associated with the organization - """ - domains: [String!] - """ - Name of the person to contact for billing - """ - billingContact: String - """ - Email address of the person to contact for billing - """ - billingEmail: String - """ - Phone number to contact for billing - """ - billingPhone: String - """ - Address to send billing information to + the logical name of the corresponding hush secret or it's general grouping """ - billingAddress: String + name: String! """ - Usually government-issued tax ID or business ID such as ABN in Australia + a description of the hush value or purpose, such as github PAT """ - taxIdentifier: String + description: String """ - geographical location of the organization + the kind of secret, such as sshkey, certificate, api token, etc. """ - geoLocation: OrganizationSettingHistoryRegion + kind: String """ - the ID of the organization the settings belong to + the generic name of a secret associated with the organization """ - organizationID: String + secretName: String } """ A connection to a list of items. """ -type OrganizationSettingHistoryConnection { +type HushHistoryConnection { """ A list of edges. """ - edges: [OrganizationSettingHistoryEdge] + edges: [HushHistoryEdge] """ Information to aid in pagination. """ @@ -12793,40 +11862,52 @@ type OrganizationSettingHistoryConnection { """ An edge in a connection. """ -type OrganizationSettingHistoryEdge { +type HushHistoryEdge { """ The item at the end of the edge. """ - node: OrganizationSettingHistory + node: HushHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -OrganizationSettingHistoryOpType is enum for the field operation +HushHistoryOpType is enum for the field operation """ -enum OrganizationSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum HushHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -OrganizationSettingHistoryRegion is enum for the field geo_location +Ordering options for HushHistory connections """ -enum OrganizationSettingHistoryRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { - AMER - EMEA - APAC +input HushHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order HushHistories. + """ + field: HushHistoryOrderField! } """ -OrganizationSettingHistoryWhereInput is used for filtering OrganizationSettingHistory objects. +Properties by which HushHistory connections can be ordered. +""" +enum HushHistoryOrderField { + name + kind +} +""" +HushHistoryWhereInput is used for filtering HushHistory objects. Input was generated by ent. """ -input OrganizationSettingHistoryWhereInput { - not: OrganizationSettingHistoryWhereInput - and: [OrganizationSettingHistoryWhereInput!] - or: [OrganizationSettingHistoryWhereInput!] +input HushHistoryWhereInput { + not: HushHistoryWhereInput + and: [HushHistoryWhereInput!] + or: [HushHistoryWhereInput!] """ id field predicates """ @@ -12872,10 +11953,10 @@ input OrganizationSettingHistoryWhereInput { """ operation field predicates """ - operation: OrganizationSettingHistoryOpType - operationNEQ: OrganizationSettingHistoryOpType - operationIn: [OrganizationSettingHistoryOpType!] - operationNotIn: [OrganizationSettingHistoryOpType!] + operation: HushHistoryOpType + operationNEQ: HushHistoryOpType + operationIn: [HushHistoryOpType!] + operationNotIn: [HushHistoryOpType!] """ created_at field predicates """ @@ -12970,139 +12051,86 @@ input OrganizationSettingHistoryWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - billing_contact field predicates - """ - billingContact: String - billingContactNEQ: String - billingContactIn: [String!] - billingContactNotIn: [String!] - billingContactGT: String - billingContactGTE: String - billingContactLT: String - billingContactLTE: String - billingContactContains: String - billingContactHasPrefix: String - billingContactHasSuffix: String - billingContactIsNil: Boolean - billingContactNotNil: Boolean - billingContactEqualFold: String - billingContactContainsFold: String - """ - billing_email field predicates + name field predicates """ - billingEmail: String - billingEmailNEQ: String - billingEmailIn: [String!] - billingEmailNotIn: [String!] - billingEmailGT: String - billingEmailGTE: String - billingEmailLT: String - billingEmailLTE: String - billingEmailContains: String - billingEmailHasPrefix: String - billingEmailHasSuffix: String - billingEmailIsNil: Boolean - billingEmailNotNil: Boolean - billingEmailEqualFold: String - billingEmailContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - billing_phone field predicates + kind field predicates """ - billingPhone: String - billingPhoneNEQ: String - billingPhoneIn: [String!] - billingPhoneNotIn: [String!] - billingPhoneGT: String - billingPhoneGTE: String - billingPhoneLT: String - billingPhoneLTE: String - billingPhoneContains: String - billingPhoneHasPrefix: String - billingPhoneHasSuffix: String - billingPhoneIsNil: Boolean - billingPhoneNotNil: Boolean - billingPhoneEqualFold: String - billingPhoneContainsFold: String - """ - billing_address field predicates - """ - billingAddress: String - billingAddressNEQ: String - billingAddressIn: [String!] - billingAddressNotIn: [String!] - billingAddressGT: String - billingAddressGTE: String - billingAddressLT: String - billingAddressLTE: String - billingAddressContains: String - billingAddressHasPrefix: String - billingAddressHasSuffix: String - billingAddressIsNil: Boolean - billingAddressNotNil: Boolean - billingAddressEqualFold: String - billingAddressContainsFold: String + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String """ - tax_identifier field predicates + secret_name field predicates """ - taxIdentifier: String - taxIdentifierNEQ: String - taxIdentifierIn: [String!] - taxIdentifierNotIn: [String!] - taxIdentifierGT: String - taxIdentifierGTE: String - taxIdentifierLT: String - taxIdentifierLTE: String - taxIdentifierContains: String - taxIdentifierHasPrefix: String - taxIdentifierHasSuffix: String - taxIdentifierIsNil: Boolean - taxIdentifierNotNil: Boolean - taxIdentifierEqualFold: String - taxIdentifierContainsFold: String + secretName: String + secretNameNEQ: String + secretNameIn: [String!] + secretNameNotIn: [String!] + secretNameGT: String + secretNameGTE: String + secretNameLT: String + secretNameLTE: String + secretNameContains: String + secretNameHasPrefix: String + secretNameHasSuffix: String + secretNameIsNil: Boolean + secretNameNotNil: Boolean + secretNameEqualFold: String + secretNameContainsFold: String +} +""" +Ordering options for Hush connections +""" +input HushOrder { """ - geo_location field predicates + The ordering direction. """ - geoLocation: OrganizationSettingHistoryRegion - geoLocationNEQ: OrganizationSettingHistoryRegion - geoLocationIn: [OrganizationSettingHistoryRegion!] - geoLocationNotIn: [OrganizationSettingHistoryRegion!] - geoLocationIsNil: Boolean - geoLocationNotNil: Boolean + direction: OrderDirection! = ASC """ - organization_id field predicates + The field by which to order Hushes. """ - organizationID: String - organizationIDNEQ: String - organizationIDIn: [String!] - organizationIDNotIn: [String!] - organizationIDGT: String - organizationIDGTE: String - organizationIDLT: String - organizationIDLTE: String - organizationIDContains: String - organizationIDHasPrefix: String - organizationIDHasSuffix: String - organizationIDIsNil: Boolean - organizationIDNotNil: Boolean - organizationIDEqualFold: String - organizationIDContainsFold: String + field: HushOrderField! } """ -OrganizationSettingRegion is enum for the field geo_location +Properties by which Hush connections can be ordered. """ -enum OrganizationSettingRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { - AMER - EMEA - APAC +enum HushOrderField { + name + kind } """ -OrganizationSettingWhereInput is used for filtering OrganizationSetting objects. +HushWhereInput is used for filtering Hush objects. Input was generated by ent. """ -input OrganizationSettingWhereInput { - not: OrganizationSettingWhereInput - and: [OrganizationSettingWhereInput!] - or: [OrganizationSettingWhereInput!] +input HushWhereInput { + not: HushWhereInput + and: [HushWhereInput!] + or: [HushWhereInput!] """ id field predicates """ @@ -13210,141 +12238,235 @@ input OrganizationSettingWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - billing_contact field predicates + name field predicates """ - billingContact: String - billingContactNEQ: String - billingContactIn: [String!] - billingContactNotIn: [String!] - billingContactGT: String - billingContactGTE: String - billingContactLT: String - billingContactLTE: String - billingContactContains: String - billingContactHasPrefix: String - billingContactHasSuffix: String - billingContactIsNil: Boolean - billingContactNotNil: Boolean - billingContactEqualFold: String - billingContactContainsFold: String + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - billing_email field predicates + kind field predicates """ - billingEmail: String - billingEmailNEQ: String - billingEmailIn: [String!] - billingEmailNotIn: [String!] - billingEmailGT: String - billingEmailGTE: String - billingEmailLT: String - billingEmailLTE: String - billingEmailContains: String - billingEmailHasPrefix: String - billingEmailHasSuffix: String - billingEmailIsNil: Boolean - billingEmailNotNil: Boolean - billingEmailEqualFold: String - billingEmailContainsFold: String + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String """ - billing_phone field predicates + secret_name field predicates """ - billingPhone: String - billingPhoneNEQ: String - billingPhoneIn: [String!] - billingPhoneNotIn: [String!] - billingPhoneGT: String - billingPhoneGTE: String - billingPhoneLT: String - billingPhoneLTE: String - billingPhoneContains: String - billingPhoneHasPrefix: String - billingPhoneHasSuffix: String - billingPhoneIsNil: Boolean - billingPhoneNotNil: Boolean - billingPhoneEqualFold: String - billingPhoneContainsFold: String + secretName: String + secretNameNEQ: String + secretNameIn: [String!] + secretNameNotIn: [String!] + secretNameGT: String + secretNameGTE: String + secretNameLT: String + secretNameLTE: String + secretNameContains: String + secretNameHasPrefix: String + secretNameHasSuffix: String + secretNameIsNil: Boolean + secretNameNotNil: Boolean + secretNameEqualFold: String + secretNameContainsFold: String """ - billing_address field predicates + integrations edge predicates """ - billingAddress: String - billingAddressNEQ: String - billingAddressIn: [String!] - billingAddressNotIn: [String!] - billingAddressGT: String - billingAddressGTE: String - billingAddressLT: String - billingAddressLTE: String - billingAddressContains: String - billingAddressHasPrefix: String - billingAddressHasSuffix: String - billingAddressIsNil: Boolean - billingAddressNotNil: Boolean - billingAddressEqualFold: String - billingAddressContainsFold: String + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] """ - tax_identifier field predicates + organization edge predicates """ - taxIdentifier: String - taxIdentifierNEQ: String - taxIdentifierIn: [String!] - taxIdentifierNotIn: [String!] - taxIdentifierGT: String - taxIdentifierGTE: String - taxIdentifierLT: String - taxIdentifierLTE: String - taxIdentifierContains: String - taxIdentifierHasPrefix: String - taxIdentifierHasSuffix: String - taxIdentifierIsNil: Boolean - taxIdentifierNotNil: Boolean - taxIdentifierEqualFold: String - taxIdentifierContainsFold: String + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] """ - geo_location field predicates + events edge predicates """ - geoLocation: OrganizationSettingRegion - geoLocationNEQ: OrganizationSettingRegion - geoLocationIn: [OrganizationSettingRegion!] - geoLocationNotIn: [OrganizationSettingRegion!] - geoLocationIsNil: Boolean - geoLocationNotNil: Boolean + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type Integration implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String """ - organization_id field predicates + tags associated with the object """ - organizationID: ID - organizationIDNEQ: ID - organizationIDIn: [ID!] - organizationIDNotIn: [ID!] - organizationIDGT: ID - organizationIDGTE: ID - organizationIDLT: ID - organizationIDLTE: ID - organizationIDContains: ID - organizationIDHasPrefix: ID - organizationIDHasSuffix: ID - organizationIDIsNil: Boolean - organizationIDNotNil: Boolean - organizationIDEqualFold: ID - organizationIDContainsFold: ID + tags: [String!] + deletedAt: Time + deletedBy: String """ - organization edge predicates + the organization id that owns the object """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] + ownerID: ID """ - files edge predicates + the name of the integration - must be unique within the organization """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] + name: String! + """ + a description of the integration + """ + description: String + kind: String + owner: Organization + """ + the secrets associated with the integration + """ + secrets: [Hush!] + """ + the oauth2 tokens associated with the integration + """ + oauth2tokens: [OhAuthTooToken!] + events: [Event!] + webhooks: [Webhook!] } """ -OrganizationWhereInput is used for filtering Organization objects. +A connection to a list of items. +""" +type IntegrationConnection { + """ + A list of edges. + """ + edges: [IntegrationEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type IntegrationEdge { + """ + The item at the end of the edge. + """ + node: Integration + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type IntegrationHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: IntegrationHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the integration - must be unique within the organization + """ + name: String! + """ + a description of the integration + """ + description: String + kind: String +} +""" +A connection to a list of items. +""" +type IntegrationHistoryConnection { + """ + A list of edges. + """ + edges: [IntegrationHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type IntegrationHistoryEdge { + """ + The item at the end of the edge. + """ + node: IntegrationHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +IntegrationHistoryOpType is enum for the field operation +""" +enum IntegrationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for IntegrationHistory connections +""" +input IntegrationHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order IntegrationHistories. + """ + field: IntegrationHistoryOrderField! +} +""" +Properties by which IntegrationHistory connections can be ordered. +""" +enum IntegrationHistoryOrderField { + name + kind +} +""" +IntegrationHistoryWhereInput is used for filtering IntegrationHistory objects. Input was generated by ent. """ -input OrganizationWhereInput { - not: OrganizationWhereInput - and: [OrganizationWhereInput!] - or: [OrganizationWhereInput!] +input IntegrationHistoryWhereInput { + not: IntegrationHistoryWhereInput + and: [IntegrationHistoryWhereInput!] + or: [IntegrationHistoryWhereInput!] """ id field predicates """ @@ -13359,6 +12481,42 @@ input OrganizationWhereInput { idEqualFold: ID idContainsFold: ID """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: IntegrationHistoryOpType + operationNEQ: IntegrationHistoryOpType + operationIn: [IntegrationHistoryOpType!] + operationNotIn: [IntegrationHistoryOpType!] + """ created_at field predicates """ createdAt: Time @@ -13452,224 +12610,354 @@ input OrganizationWhereInput { deletedByEqualFold: String deletedByContainsFold: String """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String - """ - parent_organization_id field predicates + owner_id field predicates """ - parentOrganizationID: ID - parentOrganizationIDNEQ: ID - parentOrganizationIDIn: [ID!] - parentOrganizationIDNotIn: [ID!] - parentOrganizationIDGT: ID - parentOrganizationIDGTE: ID - parentOrganizationIDLT: ID - parentOrganizationIDLTE: ID - parentOrganizationIDContains: ID - parentOrganizationIDHasPrefix: ID - parentOrganizationIDHasSuffix: ID - parentOrganizationIDIsNil: Boolean - parentOrganizationIDNotNil: Boolean - parentOrganizationIDEqualFold: ID - parentOrganizationIDContainsFold: ID - """ - personal_org field predicates + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String """ - personalOrg: Boolean - personalOrgNEQ: Boolean - personalOrgIsNil: Boolean - personalOrgNotNil: Boolean + name field predicates """ - avatar_remote_url field predicates + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - avatarRemoteURL: String - avatarRemoteURLNEQ: String - avatarRemoteURLIn: [String!] - avatarRemoteURLNotIn: [String!] - avatarRemoteURLGT: String - avatarRemoteURLGTE: String - avatarRemoteURLLT: String - avatarRemoteURLLTE: String - avatarRemoteURLContains: String - avatarRemoteURLHasPrefix: String - avatarRemoteURLHasSuffix: String - avatarRemoteURLIsNil: Boolean - avatarRemoteURLNotNil: Boolean - avatarRemoteURLEqualFold: String - avatarRemoteURLContainsFold: String + kind field predicates """ - parent edge predicates + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String +} +""" +Ordering options for Integration connections +""" +input IntegrationOrder { """ - hasParent: Boolean - hasParentWith: [OrganizationWhereInput!] + The ordering direction. """ - children edge predicates + direction: OrderDirection! = ASC """ - hasChildren: Boolean - hasChildrenWith: [OrganizationWhereInput!] + The field by which to order Integrations. """ - groups edge predicates + field: IntegrationOrderField! +} +""" +Properties by which Integration connections can be ordered. +""" +enum IntegrationOrderField { + name + kind +} +""" +IntegrationWhereInput is used for filtering Integration objects. +Input was generated by ent. +""" +input IntegrationWhereInput { + not: IntegrationWhereInput + and: [IntegrationWhereInput!] + or: [IntegrationWhereInput!] """ - hasGroups: Boolean - hasGroupsWith: [GroupWhereInput!] + id field predicates """ - templates edge predicates + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID """ - hasTemplates: Boolean - hasTemplatesWith: [TemplateWhereInput!] + created_at field predicates """ - integrations edge predicates + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] + updated_at field predicates """ - setting edge predicates + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean """ - hasSetting: Boolean - hasSettingWith: [OrganizationSettingWhereInput!] + created_by field predicates """ - documentdata edge predicates + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String """ - hasDocumentdata: Boolean - hasDocumentdataWith: [DocumentDataWhereInput!] + updated_by field predicates """ - entitlements edge predicates + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String """ - hasEntitlements: Boolean - hasEntitlementsWith: [EntitlementWhereInput!] + deleted_at field predicates """ - organization_entitlement edge predicates + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean """ - hasOrganizationEntitlement: Boolean - hasOrganizationEntitlementWith: [EntitlementWhereInput!] + deleted_by field predicates """ - personal_access_tokens edge predicates + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String """ - hasPersonalAccessTokens: Boolean - hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] + owner_id field predicates """ - api_tokens edge predicates + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID """ - hasAPITokens: Boolean - hasAPITokensWith: [APITokenWhereInput!] + name field predicates """ - oauthprovider edge predicates + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String """ - hasOauthprovider: Boolean - hasOauthproviderWith: [OauthProviderWhereInput!] + kind field predicates """ - users edge predicates - """ - hasUsers: Boolean - hasUsersWith: [UserWhereInput!] + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String """ - invites edge predicates + owner edge predicates """ - hasInvites: Boolean - hasInvitesWith: [InviteWhereInput!] + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] """ - subscribers edge predicates + secrets edge predicates """ - hasSubscribers: Boolean - hasSubscribersWith: [SubscriberWhereInput!] + hasSecrets: Boolean + hasSecretsWith: [HushWhereInput!] """ - webhooks edge predicates + oauth2tokens edge predicates """ - hasWebhooks: Boolean - hasWebhooksWith: [WebhookWhereInput!] + hasOauth2tokens: Boolean + hasOauth2tokensWith: [OhAuthTooTokenWhereInput!] """ events edge predicates """ hasEvents: Boolean hasEventsWith: [EventWhereInput!] """ - secrets edge predicates + webhooks edge predicates """ - hasSecrets: Boolean - hasSecretsWith: [HushWhereInput!] + hasWebhooks: Boolean + hasWebhooksWith: [WebhookWhereInput!] +} +type InternalPolicy implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - features edge predicates + tags associated with the object """ - hasFeatures: Boolean - hasFeaturesWith: [FeatureWhereInput!] + tags: [String!] """ - files edge predicates + the name of the policy """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] + name: String! """ - entitlementplans edge predicates + description of the policy """ - hasEntitlementplans: Boolean - hasEntitlementplansWith: [EntitlementPlanWhereInput!] + description: String! """ - entitlementplanfeatures edge predicates + status of the policy """ - hasEntitlementplanfeatures: Boolean - hasEntitlementplanfeaturesWith: [EntitlementPlanFeatureWhereInput!] + status: String """ - entities edge predicates + type of the policy """ - hasEntities: Boolean - hasEntitiesWith: [EntityWhereInput!] + policyType: String """ - entitytypes edge predicates + version of the policy """ - hasEntitytypes: Boolean - hasEntitytypesWith: [EntityTypeWhereInput!] + version: String """ - contacts edge predicates + purpose and scope """ - hasContacts: Boolean - hasContactsWith: [ContactWhereInput!] + purposeAndScope: String """ - notes edge predicates + background of the policy """ - hasNotes: Boolean - hasNotesWith: [NoteWhereInput!] + background: String """ - members edge predicates + json data for the policy document """ - hasMembers: Boolean - hasMembersWith: [OrgMembershipWhereInput!] + details: Map + controlobjectives: [ControlObjective!] + controls: [Control!] + procedures: [Procedure!] + narratives: [Narrative!] } """ -Information about pagination in a connection. -https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo +A connection to a list of items. """ -type PageInfo { +type InternalPolicyConnection { """ - When paginating forwards, are there more items? + A list of edges. """ - hasNextPage: Boolean! + edges: [InternalPolicyEdge] """ - When paginating backwards, are there more items? + Information to aid in pagination. """ - hasPreviousPage: Boolean! + pageInfo: PageInfo! """ - When paginating backwards, the cursor to continue. + Identifies the total count of items in the connection. """ - startCursor: Cursor + totalCount: Int! +} +""" +An edge in a connection. +""" +type InternalPolicyEdge { """ - When paginating forwards, the cursor to continue. + The item at the end of the edge. """ - endCursor: Cursor + node: InternalPolicy + """ + A cursor for use in pagination. + """ + cursor: Cursor! } -type PersonalAccessToken implements Node { +type InternalPolicyHistory implements Node { id: ID! + historyTime: Time! + ref: String + operation: InternalPolicyHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -13681,35 +12969,46 @@ type PersonalAccessToken implements Node { """ tags: [String!] """ - the name associated with the token + the name of the policy """ name: String! - token: String! """ - when the token expires + description of the policy """ - expiresAt: Time + description: String! """ - a description of the token's purpose + status of the policy """ - description: String - scopes: [String!] - lastUsedAt: Time - owner: User! + status: String """ - the organization(s) the token is associated with + type of the policy """ - organizations: [Organization!] - events: [Event!] + policyType: String + """ + version of the policy + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the policy + """ + background: String + """ + json data for the policy document + """ + details: Map } """ A connection to a list of items. """ -type PersonalAccessTokenConnection { +type InternalPolicyHistoryConnection { """ A list of edges. """ - edges: [PersonalAccessTokenEdge] + edges: [InternalPolicyHistoryEdge] """ Information to aid in pagination. """ @@ -13722,24 +13021,32 @@ type PersonalAccessTokenConnection { """ An edge in a connection. """ -type PersonalAccessTokenEdge { +type InternalPolicyHistoryEdge { """ The item at the end of the edge. """ - node: PersonalAccessToken + node: InternalPolicyHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -PersonalAccessTokenWhereInput is used for filtering PersonalAccessToken objects. +InternalPolicyHistoryOpType is enum for the field operation +""" +enum InternalPolicyHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +InternalPolicyHistoryWhereInput is used for filtering InternalPolicyHistory objects. Input was generated by ent. """ -input PersonalAccessTokenWhereInput { - not: PersonalAccessTokenWhereInput - and: [PersonalAccessTokenWhereInput!] - or: [PersonalAccessTokenWhereInput!] +input InternalPolicyHistoryWhereInput { + not: InternalPolicyHistoryWhereInput + and: [InternalPolicyHistoryWhereInput!] + or: [InternalPolicyHistoryWhereInput!] """ id field predicates """ @@ -13754,6 +13061,42 @@ input PersonalAccessTokenWhereInput { idEqualFold: ID idContainsFold: ID """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: InternalPolicyHistoryOpType + operationNEQ: InternalPolicyHistoryOpType + operationIn: [InternalPolicyHistoryOpType!] + operationNotIn: [InternalPolicyHistoryOpType!] + """ created_at field predicates """ createdAt: Time @@ -13863,122 +13206,5900 @@ input PersonalAccessTokenWhereInput { nameEqualFold: String nameContainsFold: String """ - expires_at field predicates + description field predicates """ - expiresAt: Time - expiresAtNEQ: Time - expiresAtIn: [Time!] - expiresAtNotIn: [Time!] - expiresAtGT: Time - expiresAtGTE: Time - expiresAtLT: Time - expiresAtLTE: Time - expiresAtIsNil: Boolean - expiresAtNotNil: Boolean + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionEqualFold: String + descriptionContainsFold: String """ - last_used_at field predicates + status field predicates """ - lastUsedAt: Time - lastUsedAtNEQ: Time - lastUsedAtIn: [Time!] - lastUsedAtNotIn: [Time!] - lastUsedAtGT: Time - lastUsedAtGTE: Time - lastUsedAtLT: Time - lastUsedAtLTE: Time - lastUsedAtIsNil: Boolean - lastUsedAtNotNil: Boolean + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String """ - owner edge predicates + policy_type field predicates + """ + policyType: String + policyTypeNEQ: String + policyTypeIn: [String!] + policyTypeNotIn: [String!] + policyTypeGT: String + policyTypeGTE: String + policyTypeLT: String + policyTypeLTE: String + policyTypeContains: String + policyTypeHasPrefix: String + policyTypeHasSuffix: String + policyTypeIsNil: Boolean + policyTypeNotNil: Boolean + policyTypeEqualFold: String + policyTypeContainsFold: String """ - hasOwner: Boolean - hasOwnerWith: [UserWhereInput!] + version field predicates """ - organizations edge predicates + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String """ - hasOrganizations: Boolean - hasOrganizationsWith: [OrganizationWhereInput!] + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String +} +""" +InternalPolicyWhereInput is used for filtering InternalPolicy objects. +Input was generated by ent. +""" +input InternalPolicyWhereInput { + not: InternalPolicyWhereInput + and: [InternalPolicyWhereInput!] + or: [InternalPolicyWhereInput!] """ - events edge predicates + id field predicates """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + policy_type field predicates + """ + policyType: String + policyTypeNEQ: String + policyTypeIn: [String!] + policyTypeNotIn: [String!] + policyTypeGT: String + policyTypeGTE: String + policyTypeLT: String + policyTypeLTE: String + policyTypeContains: String + policyTypeHasPrefix: String + policyTypeHasSuffix: String + policyTypeIsNil: Boolean + policyTypeNotNil: Boolean + policyTypeEqualFold: String + policyTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + controlobjectives edge predicates + """ + hasControlobjectives: Boolean + hasControlobjectivesWith: [ControlObjectiveWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] } -type Query { +type Invite implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String """ - Fetches an object given its ID. + the organization id that owns the object """ - node( - """ - ID of the object. - """ - id: ID! - ): Node + ownerID: ID """ - Lookup nodes by a list of IDs. + the expiration date of the invitation token which defaults to 14 days in the future from creation """ - nodes( - """ - The list of node IDs. - """ - ids: [ID!]! - ): [Node]! - apiTokens( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for APITokens returned from the connection. - """ - where: APITokenWhereInput - ): APITokenConnection! - contacts( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Contacts returned from the connection. - """ - where: ContactWhereInput - ): ContactConnection! - contactHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ + expires: Time + """ + the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + """ + recipient: String! + """ + the status of the invitation + """ + status: InviteInviteStatus! + role: InviteRole! + """ + the number of attempts made to perform email send of the invitation, maximum of 5 + """ + sendAttempts: Int! + """ + the user who initiated the invitation + """ + requestorID: String + owner: Organization + events: [Event!] +} +""" +A connection to a list of items. +""" +type InviteConnection { + """ + A list of edges. + """ + edges: [InviteEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type InviteEdge { + """ + The item at the end of the edge. + """ + node: Invite + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +InviteInviteStatus is enum for the field status +""" +enum InviteInviteStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.InviteStatus") { + INVITATION_SENT + APPROVAL_REQUIRED + INVITATION_ACCEPTED + INVITATION_EXPIRED +} +""" +InviteRole is enum for the field role +""" +enum InviteRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER +} +""" +InviteWhereInput is used for filtering Invite objects. +Input was generated by ent. +""" +input InviteWhereInput { + not: InviteWhereInput + and: [InviteWhereInput!] + or: [InviteWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + expires field predicates + """ + expires: Time + expiresNEQ: Time + expiresIn: [Time!] + expiresNotIn: [Time!] + expiresGT: Time + expiresGTE: Time + expiresLT: Time + expiresLTE: Time + expiresIsNil: Boolean + expiresNotNil: Boolean + """ + recipient field predicates + """ + recipient: String + recipientNEQ: String + recipientIn: [String!] + recipientNotIn: [String!] + recipientGT: String + recipientGTE: String + recipientLT: String + recipientLTE: String + recipientContains: String + recipientHasPrefix: String + recipientHasSuffix: String + recipientEqualFold: String + recipientContainsFold: String + """ + status field predicates + """ + status: InviteInviteStatus + statusNEQ: InviteInviteStatus + statusIn: [InviteInviteStatus!] + statusNotIn: [InviteInviteStatus!] + """ + role field predicates + """ + role: InviteRole + roleNEQ: InviteRole + roleIn: [InviteRole!] + roleNotIn: [InviteRole!] + """ + send_attempts field predicates + """ + sendAttempts: Int + sendAttemptsNEQ: Int + sendAttemptsIn: [Int!] + sendAttemptsNotIn: [Int!] + sendAttemptsGT: Int + sendAttemptsGTE: Int + sendAttemptsLT: Int + sendAttemptsLTE: Int + """ + requestor_id field predicates + """ + requestorID: String + requestorIDNEQ: String + requestorIDIn: [String!] + requestorIDNotIn: [String!] + requestorIDGT: String + requestorIDGTE: String + requestorIDLT: String + requestorIDLTE: String + requestorIDContains: String + requestorIDHasPrefix: String + requestorIDHasSuffix: String + requestorIDIsNil: Boolean + requestorIDNotNil: Boolean + requestorIDEqualFold: String + requestorIDContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +""" +A valid JSON string. +""" +scalar JSON +""" +The builtin Map type +""" +scalar Map +type Narrative implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the narrative + """ + name: String! + """ + the description of the narrative + """ + description: String + """ + which controls are satisfied by the narrative + """ + satisfies: String + """ + json data for the narrative document + """ + details: Map + policy: [InternalPolicy!] + control: [Control!] + procedure: [Procedure!] + controlobjective: [ControlObjective!] +} +""" +A connection to a list of items. +""" +type NarrativeConnection { + """ + A list of edges. + """ + edges: [NarrativeEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NarrativeEdge { + """ + The item at the end of the edge. + """ + node: Narrative + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type NarrativeHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: NarrativeHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the narrative + """ + name: String! + """ + the description of the narrative + """ + description: String + """ + which controls are satisfied by the narrative + """ + satisfies: String + """ + json data for the narrative document + """ + details: Map +} +""" +A connection to a list of items. +""" +type NarrativeHistoryConnection { + """ + A list of edges. + """ + edges: [NarrativeHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NarrativeHistoryEdge { + """ + The item at the end of the edge. + """ + node: NarrativeHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +NarrativeHistoryOpType is enum for the field operation +""" +enum NarrativeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +NarrativeHistoryWhereInput is used for filtering NarrativeHistory objects. +Input was generated by ent. +""" +input NarrativeHistoryWhereInput { + not: NarrativeHistoryWhereInput + and: [NarrativeHistoryWhereInput!] + or: [NarrativeHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: NarrativeHistoryOpType + operationNEQ: NarrativeHistoryOpType + operationIn: [NarrativeHistoryOpType!] + operationNotIn: [NarrativeHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +""" +NarrativeWhereInput is used for filtering Narrative objects. +Input was generated by ent. +""" +input NarrativeWhereInput { + not: NarrativeWhereInput + and: [NarrativeWhereInput!] + or: [NarrativeWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + policy edge predicates + """ + hasPolicy: Boolean + hasPolicyWith: [InternalPolicyWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + procedure edge predicates + """ + hasProcedure: Boolean + hasProcedureWith: [ProcedureWhereInput!] + """ + controlobjective edge predicates + """ + hasControlobjective: Boolean + hasControlobjectiveWith: [ControlObjectiveWhereInput!] +} +""" +An object with an ID. +Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) +""" +interface Node @goModel(model: "github.com/theopenlane/core/internal/ent/generated.Noder") { + """ + The id of the object. + """ + id: ID! +} +type Note implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the text of the note + """ + text: String! + owner: Organization + entity: Entity + subcontrols: [Subcontrol!] +} +""" +A connection to a list of items. +""" +type NoteConnection { + """ + A list of edges. + """ + edges: [NoteEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NoteEdge { + """ + The item at the end of the edge. + """ + node: Note + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type NoteHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: NoteHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the text of the note + """ + text: String! +} +""" +A connection to a list of items. +""" +type NoteHistoryConnection { + """ + A list of edges. + """ + edges: [NoteHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NoteHistoryEdge { + """ + The item at the end of the edge. + """ + node: NoteHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +NoteHistoryOpType is enum for the field operation +""" +enum NoteHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +NoteHistoryWhereInput is used for filtering NoteHistory objects. +Input was generated by ent. +""" +input NoteHistoryWhereInput { + not: NoteHistoryWhereInput + and: [NoteHistoryWhereInput!] + or: [NoteHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: NoteHistoryOpType + operationNEQ: NoteHistoryOpType + operationIn: [NoteHistoryOpType!] + operationNotIn: [NoteHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + text field predicates + """ + text: String + textNEQ: String + textIn: [String!] + textNotIn: [String!] + textGT: String + textGTE: String + textLT: String + textLTE: String + textContains: String + textHasPrefix: String + textHasSuffix: String + textEqualFold: String + textContainsFold: String +} +""" +NoteWhereInput is used for filtering Note objects. +Input was generated by ent. +""" +input NoteWhereInput { + not: NoteWhereInput + and: [NoteWhereInput!] + or: [NoteWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + text field predicates + """ + text: String + textNEQ: String + textIn: [String!] + textNotIn: [String!] + textGT: String + textGTE: String + textLT: String + textLTE: String + textContains: String + textHasPrefix: String + textHasSuffix: String + textEqualFold: String + textContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + entity edge predicates + """ + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] +} +type OauthProvider implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the oauth provider's name + """ + name: String! + """ + the client id for the oauth provider + """ + clientID: String! + """ + the client secret + """ + clientSecret: String! + """ + the redirect url + """ + redirectURL: String! + """ + the scopes + """ + scopes: String! + """ + the auth url of the provider + """ + authURL: String! + """ + the token url of the provider + """ + tokenURL: String! + """ + the auth style, 0: auto detect 1: third party log in 2: log in with username and password + """ + authStyle: Uint! + """ + the URL to request user information by token + """ + infoURL: String! + owner: Organization +} +""" +A connection to a list of items. +""" +type OauthProviderConnection { + """ + A list of edges. + """ + edges: [OauthProviderEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OauthProviderEdge { + """ + The item at the end of the edge. + """ + node: OauthProvider + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OauthProviderHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OauthProviderHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the oauth provider's name + """ + name: String! + """ + the client id for the oauth provider + """ + clientID: String! + """ + the client secret + """ + clientSecret: String! + """ + the redirect url + """ + redirectURL: String! + """ + the scopes + """ + scopes: String! + """ + the auth url of the provider + """ + authURL: String! + """ + the token url of the provider + """ + tokenURL: String! + """ + the auth style, 0: auto detect 1: third party log in 2: log in with username and password + """ + authStyle: Uint! + """ + the URL to request user information by token + """ + infoURL: String! +} +""" +A connection to a list of items. +""" +type OauthProviderHistoryConnection { + """ + A list of edges. + """ + edges: [OauthProviderHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OauthProviderHistoryEdge { + """ + The item at the end of the edge. + """ + node: OauthProviderHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OauthProviderHistoryOpType is enum for the field operation +""" +enum OauthProviderHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OauthProviderHistoryWhereInput is used for filtering OauthProviderHistory objects. +Input was generated by ent. +""" +input OauthProviderHistoryWhereInput { + not: OauthProviderHistoryWhereInput + and: [OauthProviderHistoryWhereInput!] + or: [OauthProviderHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OauthProviderHistoryOpType + operationNEQ: OauthProviderHistoryOpType + operationIn: [OauthProviderHistoryOpType!] + operationNotIn: [OauthProviderHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + client_id field predicates + """ + clientID: String + clientIDNEQ: String + clientIDIn: [String!] + clientIDNotIn: [String!] + clientIDGT: String + clientIDGTE: String + clientIDLT: String + clientIDLTE: String + clientIDContains: String + clientIDHasPrefix: String + clientIDHasSuffix: String + clientIDEqualFold: String + clientIDContainsFold: String + """ + client_secret field predicates + """ + clientSecret: String + clientSecretNEQ: String + clientSecretIn: [String!] + clientSecretNotIn: [String!] + clientSecretGT: String + clientSecretGTE: String + clientSecretLT: String + clientSecretLTE: String + clientSecretContains: String + clientSecretHasPrefix: String + clientSecretHasSuffix: String + clientSecretEqualFold: String + clientSecretContainsFold: String + """ + redirect_url field predicates + """ + redirectURL: String + redirectURLNEQ: String + redirectURLIn: [String!] + redirectURLNotIn: [String!] + redirectURLGT: String + redirectURLGTE: String + redirectURLLT: String + redirectURLLTE: String + redirectURLContains: String + redirectURLHasPrefix: String + redirectURLHasSuffix: String + redirectURLEqualFold: String + redirectURLContainsFold: String + """ + scopes field predicates + """ + scopes: String + scopesNEQ: String + scopesIn: [String!] + scopesNotIn: [String!] + scopesGT: String + scopesGTE: String + scopesLT: String + scopesLTE: String + scopesContains: String + scopesHasPrefix: String + scopesHasSuffix: String + scopesEqualFold: String + scopesContainsFold: String + """ + auth_url field predicates + """ + authURL: String + authURLNEQ: String + authURLIn: [String!] + authURLNotIn: [String!] + authURLGT: String + authURLGTE: String + authURLLT: String + authURLLTE: String + authURLContains: String + authURLHasPrefix: String + authURLHasSuffix: String + authURLEqualFold: String + authURLContainsFold: String + """ + token_url field predicates + """ + tokenURL: String + tokenURLNEQ: String + tokenURLIn: [String!] + tokenURLNotIn: [String!] + tokenURLGT: String + tokenURLGTE: String + tokenURLLT: String + tokenURLLTE: String + tokenURLContains: String + tokenURLHasPrefix: String + tokenURLHasSuffix: String + tokenURLEqualFold: String + tokenURLContainsFold: String + """ + auth_style field predicates + """ + authStyle: Uint + authStyleNEQ: Uint + authStyleIn: [Uint!] + authStyleNotIn: [Uint!] + authStyleGT: Uint + authStyleGTE: Uint + authStyleLT: Uint + authStyleLTE: Uint + """ + info_url field predicates + """ + infoURL: String + infoURLNEQ: String + infoURLIn: [String!] + infoURLNotIn: [String!] + infoURLGT: String + infoURLGTE: String + infoURLLT: String + infoURLLTE: String + infoURLContains: String + infoURLHasPrefix: String + infoURLHasSuffix: String + infoURLEqualFold: String + infoURLContainsFold: String +} +""" +OauthProviderWhereInput is used for filtering OauthProvider objects. +Input was generated by ent. +""" +input OauthProviderWhereInput { + not: OauthProviderWhereInput + and: [OauthProviderWhereInput!] + or: [OauthProviderWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + client_id field predicates + """ + clientID: String + clientIDNEQ: String + clientIDIn: [String!] + clientIDNotIn: [String!] + clientIDGT: String + clientIDGTE: String + clientIDLT: String + clientIDLTE: String + clientIDContains: String + clientIDHasPrefix: String + clientIDHasSuffix: String + clientIDEqualFold: String + clientIDContainsFold: String + """ + client_secret field predicates + """ + clientSecret: String + clientSecretNEQ: String + clientSecretIn: [String!] + clientSecretNotIn: [String!] + clientSecretGT: String + clientSecretGTE: String + clientSecretLT: String + clientSecretLTE: String + clientSecretContains: String + clientSecretHasPrefix: String + clientSecretHasSuffix: String + clientSecretEqualFold: String + clientSecretContainsFold: String + """ + redirect_url field predicates + """ + redirectURL: String + redirectURLNEQ: String + redirectURLIn: [String!] + redirectURLNotIn: [String!] + redirectURLGT: String + redirectURLGTE: String + redirectURLLT: String + redirectURLLTE: String + redirectURLContains: String + redirectURLHasPrefix: String + redirectURLHasSuffix: String + redirectURLEqualFold: String + redirectURLContainsFold: String + """ + scopes field predicates + """ + scopes: String + scopesNEQ: String + scopesIn: [String!] + scopesNotIn: [String!] + scopesGT: String + scopesGTE: String + scopesLT: String + scopesLTE: String + scopesContains: String + scopesHasPrefix: String + scopesHasSuffix: String + scopesEqualFold: String + scopesContainsFold: String + """ + auth_url field predicates + """ + authURL: String + authURLNEQ: String + authURLIn: [String!] + authURLNotIn: [String!] + authURLGT: String + authURLGTE: String + authURLLT: String + authURLLTE: String + authURLContains: String + authURLHasPrefix: String + authURLHasSuffix: String + authURLEqualFold: String + authURLContainsFold: String + """ + token_url field predicates + """ + tokenURL: String + tokenURLNEQ: String + tokenURLIn: [String!] + tokenURLNotIn: [String!] + tokenURLGT: String + tokenURLGTE: String + tokenURLLT: String + tokenURLLTE: String + tokenURLContains: String + tokenURLHasPrefix: String + tokenURLHasSuffix: String + tokenURLEqualFold: String + tokenURLContainsFold: String + """ + auth_style field predicates + """ + authStyle: Uint + authStyleNEQ: Uint + authStyleIn: [Uint!] + authStyleNotIn: [Uint!] + authStyleGT: Uint + authStyleGTE: Uint + authStyleLT: Uint + authStyleLTE: Uint + """ + info_url field predicates + """ + infoURL: String + infoURLNEQ: String + infoURLIn: [String!] + infoURLNotIn: [String!] + infoURLGT: String + infoURLGTE: String + infoURLLT: String + infoURLLTE: String + infoURLContains: String + infoURLHasPrefix: String + infoURLHasSuffix: String + infoURLEqualFold: String + infoURLContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] +} +type OhAuthTooToken implements Node { + id: ID! + """ + tags associated with the object + """ + tags: [String!] + clientID: String! + scopes: [String!] + nonce: String! + claimsUserID: String! + claimsUsername: String! + claimsEmail: String! + claimsEmailVerified: Boolean! + claimsGroups: [String!] + claimsPreferredUsername: String! + connectorID: String! + connectorData: [String!] + lastUsed: Time! + integration: [Integration!] + events: [Event!] +} +""" +A connection to a list of items. +""" +type OhAuthTooTokenConnection { + """ + A list of edges. + """ + edges: [OhAuthTooTokenEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OhAuthTooTokenEdge { + """ + The item at the end of the edge. + """ + node: OhAuthTooToken + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OhAuthTooTokenWhereInput is used for filtering OhAuthTooToken objects. +Input was generated by ent. +""" +input OhAuthTooTokenWhereInput { + not: OhAuthTooTokenWhereInput + and: [OhAuthTooTokenWhereInput!] + or: [OhAuthTooTokenWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + client_id field predicates + """ + clientID: String + clientIDNEQ: String + clientIDIn: [String!] + clientIDNotIn: [String!] + clientIDGT: String + clientIDGTE: String + clientIDLT: String + clientIDLTE: String + clientIDContains: String + clientIDHasPrefix: String + clientIDHasSuffix: String + clientIDEqualFold: String + clientIDContainsFold: String + """ + nonce field predicates + """ + nonce: String + nonceNEQ: String + nonceIn: [String!] + nonceNotIn: [String!] + nonceGT: String + nonceGTE: String + nonceLT: String + nonceLTE: String + nonceContains: String + nonceHasPrefix: String + nonceHasSuffix: String + nonceEqualFold: String + nonceContainsFold: String + """ + claims_user_id field predicates + """ + claimsUserID: String + claimsUserIDNEQ: String + claimsUserIDIn: [String!] + claimsUserIDNotIn: [String!] + claimsUserIDGT: String + claimsUserIDGTE: String + claimsUserIDLT: String + claimsUserIDLTE: String + claimsUserIDContains: String + claimsUserIDHasPrefix: String + claimsUserIDHasSuffix: String + claimsUserIDEqualFold: String + claimsUserIDContainsFold: String + """ + claims_username field predicates + """ + claimsUsername: String + claimsUsernameNEQ: String + claimsUsernameIn: [String!] + claimsUsernameNotIn: [String!] + claimsUsernameGT: String + claimsUsernameGTE: String + claimsUsernameLT: String + claimsUsernameLTE: String + claimsUsernameContains: String + claimsUsernameHasPrefix: String + claimsUsernameHasSuffix: String + claimsUsernameEqualFold: String + claimsUsernameContainsFold: String + """ + claims_email field predicates + """ + claimsEmail: String + claimsEmailNEQ: String + claimsEmailIn: [String!] + claimsEmailNotIn: [String!] + claimsEmailGT: String + claimsEmailGTE: String + claimsEmailLT: String + claimsEmailLTE: String + claimsEmailContains: String + claimsEmailHasPrefix: String + claimsEmailHasSuffix: String + claimsEmailEqualFold: String + claimsEmailContainsFold: String + """ + claims_email_verified field predicates + """ + claimsEmailVerified: Boolean + claimsEmailVerifiedNEQ: Boolean + """ + claims_preferred_username field predicates + """ + claimsPreferredUsername: String + claimsPreferredUsernameNEQ: String + claimsPreferredUsernameIn: [String!] + claimsPreferredUsernameNotIn: [String!] + claimsPreferredUsernameGT: String + claimsPreferredUsernameGTE: String + claimsPreferredUsernameLT: String + claimsPreferredUsernameLTE: String + claimsPreferredUsernameContains: String + claimsPreferredUsernameHasPrefix: String + claimsPreferredUsernameHasSuffix: String + claimsPreferredUsernameEqualFold: String + claimsPreferredUsernameContainsFold: String + """ + connector_id field predicates + """ + connectorID: String + connectorIDNEQ: String + connectorIDIn: [String!] + connectorIDNotIn: [String!] + connectorIDGT: String + connectorIDGTE: String + connectorIDLT: String + connectorIDLTE: String + connectorIDContains: String + connectorIDHasPrefix: String + connectorIDHasSuffix: String + connectorIDEqualFold: String + connectorIDContainsFold: String + """ + last_used field predicates + """ + lastUsed: Time + lastUsedNEQ: Time + lastUsedIn: [Time!] + lastUsedNotIn: [Time!] + lastUsedGT: Time + lastUsedGTE: Time + lastUsedLT: Time + lastUsedLTE: Time + """ + integration edge predicates + """ + hasIntegration: Boolean + hasIntegrationWith: [IntegrationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +""" +Possible directions in which to order a list of items when provided an `orderBy` argument. +""" +enum OrderDirection { + """ + Specifies an ascending order for a given `orderBy` argument. + """ + ASC + """ + Specifies a descending order for a given `orderBy` argument. + """ + DESC +} +type OrgMembership implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: OrgMembershipRole! + organizationID: ID! + userID: ID! + organization: Organization! + user: User! + events: [Event!] +} +""" +A connection to a list of items. +""" +type OrgMembershipConnection { + """ + A list of edges. + """ + edges: [OrgMembershipEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrgMembershipEdge { + """ + The item at the end of the edge. + """ + node: OrgMembership + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrgMembershipHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrgMembershipHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: OrgMembershipHistoryRole! + organizationID: String! + userID: String! +} +""" +A connection to a list of items. +""" +type OrgMembershipHistoryConnection { + """ + A list of edges. + """ + edges: [OrgMembershipHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrgMembershipHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrgMembershipHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrgMembershipHistoryOpType is enum for the field operation +""" +enum OrgMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OrgMembershipHistoryRole is enum for the field role +""" +enum OrgMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER + OWNER +} +""" +OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. +Input was generated by ent. +""" +input OrgMembershipHistoryWhereInput { + not: OrgMembershipHistoryWhereInput + and: [OrgMembershipHistoryWhereInput!] + or: [OrgMembershipHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrgMembershipHistoryOpType + operationNEQ: OrgMembershipHistoryOpType + operationIn: [OrgMembershipHistoryOpType!] + operationNotIn: [OrgMembershipHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: OrgMembershipHistoryRole + roleNEQ: OrgMembershipHistoryRole + roleIn: [OrgMembershipHistoryRole!] + roleNotIn: [OrgMembershipHistoryRole!] + """ + organization_id field predicates + """ + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDEqualFold: String + organizationIDContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDEqualFold: String + userIDContainsFold: String +} +""" +OrgMembershipRole is enum for the field role +""" +enum OrgMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER + OWNER +} +""" +OrgMembershipWhereInput is used for filtering OrgMembership objects. +Input was generated by ent. +""" +input OrgMembershipWhereInput { + not: OrgMembershipWhereInput + and: [OrgMembershipWhereInput!] + or: [OrgMembershipWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: OrgMembershipRole + roleNEQ: OrgMembershipRole + roleIn: [OrgMembershipRole!] + roleNotIn: [OrgMembershipRole!] +} +type Organization implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the name of the organization + """ + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String! + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean! + parent: Organization + children( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Organizations returned from the connection. + """ + orderBy: OrganizationOrder + + """ + Filtering options for Organizations returned from the connection. + """ + where: OrganizationWhereInput + ): OrganizationConnection! + groups: [Group!] + templates: [Template!] + integrations: [Integration!] + setting: OrganizationSetting + documentdata: [DocumentData!] + entitlements: [Entitlement!] + organizationEntitlement: [Entitlement!] + personalAccessTokens: [PersonalAccessToken!] + apiTokens: [APIToken!] + oauthprovider: [OauthProvider!] + users: [User!] + invites: [Invite!] + subscribers: [Subscriber!] + webhooks: [Webhook!] + events: [Event!] + secrets: [Hush!] + features: [Feature!] + files: [File!] + entitlementplans: [EntitlementPlan!] + entitlementplanfeatures: [EntitlementPlanFeature!] + entities: [Entity!] + entitytypes: [EntityType!] + contacts: [Contact!] + notes: [Note!] + members: [OrgMembership!] +} +""" +A connection to a list of items. +""" +type OrganizationConnection { + """ + A list of edges. + """ + edges: [OrganizationEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationEdge { + """ + The item at the end of the edge. + """ + node: Organization + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrganizationHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrganizationHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the name of the organization + """ + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String! + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean! +} +""" +A connection to a list of items. +""" +type OrganizationHistoryConnection { + """ + A list of edges. + """ + edges: [OrganizationHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrganizationHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrganizationHistoryOpType is enum for the field operation +""" +enum OrganizationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for OrganizationHistory connections +""" +input OrganizationHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order OrganizationHistories. + """ + field: OrganizationHistoryOrderField! +} +""" +Properties by which OrganizationHistory connections can be ordered. +""" +enum OrganizationHistoryOrderField { + name + display_name +} +""" +OrganizationHistoryWhereInput is used for filtering OrganizationHistory objects. +Input was generated by ent. +""" +input OrganizationHistoryWhereInput { + not: OrganizationHistoryWhereInput + and: [OrganizationHistoryWhereInput!] + or: [OrganizationHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrganizationHistoryOpType + operationNEQ: OrganizationHistoryOpType + operationIn: [OrganizationHistoryOpType!] + operationNotIn: [OrganizationHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + parent_organization_id field predicates + """ + parentOrganizationID: ID + parentOrganizationIDNEQ: ID + parentOrganizationIDIn: [ID!] + parentOrganizationIDNotIn: [ID!] + parentOrganizationIDGT: ID + parentOrganizationIDGTE: ID + parentOrganizationIDLT: ID + parentOrganizationIDLTE: ID + parentOrganizationIDContains: ID + parentOrganizationIDHasPrefix: ID + parentOrganizationIDHasSuffix: ID + parentOrganizationIDIsNil: Boolean + parentOrganizationIDNotNil: Boolean + parentOrganizationIDEqualFold: ID + parentOrganizationIDContainsFold: ID + """ + personal_org field predicates + """ + personalOrg: Boolean + personalOrgNEQ: Boolean + personalOrgIsNil: Boolean + personalOrgNotNil: Boolean + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String +} +""" +Ordering options for Organization connections +""" +input OrganizationOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Organizations. + """ + field: OrganizationOrderField! +} +""" +Properties by which Organization connections can be ordered. +""" +enum OrganizationOrderField { + name + display_name +} +type OrganizationSetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + domains associated with the organization + """ + domains: [String!] + """ + Name of the person to contact for billing + """ + billingContact: String + """ + Email address of the person to contact for billing + """ + billingEmail: String + """ + Phone number to contact for billing + """ + billingPhone: String + """ + Address to send billing information to + """ + billingAddress: String + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingRegion + """ + the ID of the organization the settings belong to + """ + organizationID: ID + organization: Organization + files: [File!] +} +""" +A connection to a list of items. +""" +type OrganizationSettingConnection { + """ + A list of edges. + """ + edges: [OrganizationSettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationSettingEdge { + """ + The item at the end of the edge. + """ + node: OrganizationSetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrganizationSettingHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrganizationSettingHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + domains associated with the organization + """ + domains: [String!] + """ + Name of the person to contact for billing + """ + billingContact: String + """ + Email address of the person to contact for billing + """ + billingEmail: String + """ + Phone number to contact for billing + """ + billingPhone: String + """ + Address to send billing information to + """ + billingAddress: String + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingHistoryRegion + """ + the ID of the organization the settings belong to + """ + organizationID: String +} +""" +A connection to a list of items. +""" +type OrganizationSettingHistoryConnection { + """ + A list of edges. + """ + edges: [OrganizationSettingHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationSettingHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrganizationSettingHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrganizationSettingHistoryOpType is enum for the field operation +""" +enum OrganizationSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OrganizationSettingHistoryRegion is enum for the field geo_location +""" +enum OrganizationSettingHistoryRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { + AMER + EMEA + APAC +} +""" +OrganizationSettingHistoryWhereInput is used for filtering OrganizationSettingHistory objects. +Input was generated by ent. +""" +input OrganizationSettingHistoryWhereInput { + not: OrganizationSettingHistoryWhereInput + and: [OrganizationSettingHistoryWhereInput!] + or: [OrganizationSettingHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrganizationSettingHistoryOpType + operationNEQ: OrganizationSettingHistoryOpType + operationIn: [OrganizationSettingHistoryOpType!] + operationNotIn: [OrganizationSettingHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + billing_contact field predicates + """ + billingContact: String + billingContactNEQ: String + billingContactIn: [String!] + billingContactNotIn: [String!] + billingContactGT: String + billingContactGTE: String + billingContactLT: String + billingContactLTE: String + billingContactContains: String + billingContactHasPrefix: String + billingContactHasSuffix: String + billingContactIsNil: Boolean + billingContactNotNil: Boolean + billingContactEqualFold: String + billingContactContainsFold: String + """ + billing_email field predicates + """ + billingEmail: String + billingEmailNEQ: String + billingEmailIn: [String!] + billingEmailNotIn: [String!] + billingEmailGT: String + billingEmailGTE: String + billingEmailLT: String + billingEmailLTE: String + billingEmailContains: String + billingEmailHasPrefix: String + billingEmailHasSuffix: String + billingEmailIsNil: Boolean + billingEmailNotNil: Boolean + billingEmailEqualFold: String + billingEmailContainsFold: String + """ + billing_phone field predicates + """ + billingPhone: String + billingPhoneNEQ: String + billingPhoneIn: [String!] + billingPhoneNotIn: [String!] + billingPhoneGT: String + billingPhoneGTE: String + billingPhoneLT: String + billingPhoneLTE: String + billingPhoneContains: String + billingPhoneHasPrefix: String + billingPhoneHasSuffix: String + billingPhoneIsNil: Boolean + billingPhoneNotNil: Boolean + billingPhoneEqualFold: String + billingPhoneContainsFold: String + """ + billing_address field predicates + """ + billingAddress: String + billingAddressNEQ: String + billingAddressIn: [String!] + billingAddressNotIn: [String!] + billingAddressGT: String + billingAddressGTE: String + billingAddressLT: String + billingAddressLTE: String + billingAddressContains: String + billingAddressHasPrefix: String + billingAddressHasSuffix: String + billingAddressIsNil: Boolean + billingAddressNotNil: Boolean + billingAddressEqualFold: String + billingAddressContainsFold: String + """ + tax_identifier field predicates + """ + taxIdentifier: String + taxIdentifierNEQ: String + taxIdentifierIn: [String!] + taxIdentifierNotIn: [String!] + taxIdentifierGT: String + taxIdentifierGTE: String + taxIdentifierLT: String + taxIdentifierLTE: String + taxIdentifierContains: String + taxIdentifierHasPrefix: String + taxIdentifierHasSuffix: String + taxIdentifierIsNil: Boolean + taxIdentifierNotNil: Boolean + taxIdentifierEqualFold: String + taxIdentifierContainsFold: String + """ + geo_location field predicates + """ + geoLocation: OrganizationSettingHistoryRegion + geoLocationNEQ: OrganizationSettingHistoryRegion + geoLocationIn: [OrganizationSettingHistoryRegion!] + geoLocationNotIn: [OrganizationSettingHistoryRegion!] + geoLocationIsNil: Boolean + geoLocationNotNil: Boolean + """ + organization_id field predicates + """ + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDIsNil: Boolean + organizationIDNotNil: Boolean + organizationIDEqualFold: String + organizationIDContainsFold: String +} +""" +OrganizationSettingRegion is enum for the field geo_location +""" +enum OrganizationSettingRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { + AMER + EMEA + APAC +} +""" +OrganizationSettingWhereInput is used for filtering OrganizationSetting objects. +Input was generated by ent. +""" +input OrganizationSettingWhereInput { + not: OrganizationSettingWhereInput + and: [OrganizationSettingWhereInput!] + or: [OrganizationSettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + billing_contact field predicates + """ + billingContact: String + billingContactNEQ: String + billingContactIn: [String!] + billingContactNotIn: [String!] + billingContactGT: String + billingContactGTE: String + billingContactLT: String + billingContactLTE: String + billingContactContains: String + billingContactHasPrefix: String + billingContactHasSuffix: String + billingContactIsNil: Boolean + billingContactNotNil: Boolean + billingContactEqualFold: String + billingContactContainsFold: String + """ + billing_email field predicates + """ + billingEmail: String + billingEmailNEQ: String + billingEmailIn: [String!] + billingEmailNotIn: [String!] + billingEmailGT: String + billingEmailGTE: String + billingEmailLT: String + billingEmailLTE: String + billingEmailContains: String + billingEmailHasPrefix: String + billingEmailHasSuffix: String + billingEmailIsNil: Boolean + billingEmailNotNil: Boolean + billingEmailEqualFold: String + billingEmailContainsFold: String + """ + billing_phone field predicates + """ + billingPhone: String + billingPhoneNEQ: String + billingPhoneIn: [String!] + billingPhoneNotIn: [String!] + billingPhoneGT: String + billingPhoneGTE: String + billingPhoneLT: String + billingPhoneLTE: String + billingPhoneContains: String + billingPhoneHasPrefix: String + billingPhoneHasSuffix: String + billingPhoneIsNil: Boolean + billingPhoneNotNil: Boolean + billingPhoneEqualFold: String + billingPhoneContainsFold: String + """ + billing_address field predicates + """ + billingAddress: String + billingAddressNEQ: String + billingAddressIn: [String!] + billingAddressNotIn: [String!] + billingAddressGT: String + billingAddressGTE: String + billingAddressLT: String + billingAddressLTE: String + billingAddressContains: String + billingAddressHasPrefix: String + billingAddressHasSuffix: String + billingAddressIsNil: Boolean + billingAddressNotNil: Boolean + billingAddressEqualFold: String + billingAddressContainsFold: String + """ + tax_identifier field predicates + """ + taxIdentifier: String + taxIdentifierNEQ: String + taxIdentifierIn: [String!] + taxIdentifierNotIn: [String!] + taxIdentifierGT: String + taxIdentifierGTE: String + taxIdentifierLT: String + taxIdentifierLTE: String + taxIdentifierContains: String + taxIdentifierHasPrefix: String + taxIdentifierHasSuffix: String + taxIdentifierIsNil: Boolean + taxIdentifierNotNil: Boolean + taxIdentifierEqualFold: String + taxIdentifierContainsFold: String + """ + geo_location field predicates + """ + geoLocation: OrganizationSettingRegion + geoLocationNEQ: OrganizationSettingRegion + geoLocationIn: [OrganizationSettingRegion!] + geoLocationNotIn: [OrganizationSettingRegion!] + geoLocationIsNil: Boolean + geoLocationNotNil: Boolean + """ + organization_id field predicates + """ + organizationID: ID + organizationIDNEQ: ID + organizationIDIn: [ID!] + organizationIDNotIn: [ID!] + organizationIDGT: ID + organizationIDGTE: ID + organizationIDLT: ID + organizationIDLTE: ID + organizationIDContains: ID + organizationIDHasPrefix: ID + organizationIDHasSuffix: ID + organizationIDIsNil: Boolean + organizationIDNotNil: Boolean + organizationIDEqualFold: ID + organizationIDContainsFold: ID + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +""" +OrganizationWhereInput is used for filtering Organization objects. +Input was generated by ent. +""" +input OrganizationWhereInput { + not: OrganizationWhereInput + and: [OrganizationWhereInput!] + or: [OrganizationWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + parent_organization_id field predicates + """ + parentOrganizationID: ID + parentOrganizationIDNEQ: ID + parentOrganizationIDIn: [ID!] + parentOrganizationIDNotIn: [ID!] + parentOrganizationIDGT: ID + parentOrganizationIDGTE: ID + parentOrganizationIDLT: ID + parentOrganizationIDLTE: ID + parentOrganizationIDContains: ID + parentOrganizationIDHasPrefix: ID + parentOrganizationIDHasSuffix: ID + parentOrganizationIDIsNil: Boolean + parentOrganizationIDNotNil: Boolean + parentOrganizationIDEqualFold: ID + parentOrganizationIDContainsFold: ID + """ + personal_org field predicates + """ + personalOrg: Boolean + personalOrgNEQ: Boolean + personalOrgIsNil: Boolean + personalOrgNotNil: Boolean + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String + """ + parent edge predicates + """ + hasParent: Boolean + hasParentWith: [OrganizationWhereInput!] + """ + children edge predicates + """ + hasChildren: Boolean + hasChildrenWith: [OrganizationWhereInput!] + """ + groups edge predicates + """ + hasGroups: Boolean + hasGroupsWith: [GroupWhereInput!] + """ + templates edge predicates + """ + hasTemplates: Boolean + hasTemplatesWith: [TemplateWhereInput!] + """ + integrations edge predicates + """ + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] + """ + setting edge predicates + """ + hasSetting: Boolean + hasSettingWith: [OrganizationSettingWhereInput!] + """ + documentdata edge predicates + """ + hasDocumentdata: Boolean + hasDocumentdataWith: [DocumentDataWhereInput!] + """ + entitlements edge predicates + """ + hasEntitlements: Boolean + hasEntitlementsWith: [EntitlementWhereInput!] + """ + organization_entitlement edge predicates + """ + hasOrganizationEntitlement: Boolean + hasOrganizationEntitlementWith: [EntitlementWhereInput!] + """ + personal_access_tokens edge predicates + """ + hasPersonalAccessTokens: Boolean + hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] + """ + api_tokens edge predicates + """ + hasAPITokens: Boolean + hasAPITokensWith: [APITokenWhereInput!] + """ + oauthprovider edge predicates + """ + hasOauthprovider: Boolean + hasOauthproviderWith: [OauthProviderWhereInput!] + """ + users edge predicates + """ + hasUsers: Boolean + hasUsersWith: [UserWhereInput!] + """ + invites edge predicates + """ + hasInvites: Boolean + hasInvitesWith: [InviteWhereInput!] + """ + subscribers edge predicates + """ + hasSubscribers: Boolean + hasSubscribersWith: [SubscriberWhereInput!] + """ + webhooks edge predicates + """ + hasWebhooks: Boolean + hasWebhooksWith: [WebhookWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + secrets edge predicates + """ + hasSecrets: Boolean + hasSecretsWith: [HushWhereInput!] + """ + features edge predicates + """ + hasFeatures: Boolean + hasFeaturesWith: [FeatureWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + entitlementplans edge predicates + """ + hasEntitlementplans: Boolean + hasEntitlementplansWith: [EntitlementPlanWhereInput!] + """ + entitlementplanfeatures edge predicates + """ + hasEntitlementplanfeatures: Boolean + hasEntitlementplanfeaturesWith: [EntitlementPlanFeatureWhereInput!] + """ + entities edge predicates + """ + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] + """ + entitytypes edge predicates + """ + hasEntitytypes: Boolean + hasEntitytypesWith: [EntityTypeWhereInput!] + """ + contacts edge predicates + """ + hasContacts: Boolean + hasContactsWith: [ContactWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + members edge predicates + """ + hasMembers: Boolean + hasMembersWith: [OrgMembershipWhereInput!] +} +""" +Information about pagination in a connection. +https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo +""" +type PageInfo { + """ + When paginating forwards, are there more items? + """ + hasNextPage: Boolean! + """ + When paginating backwards, are there more items? + """ + hasPreviousPage: Boolean! + """ + When paginating backwards, the cursor to continue. + """ + startCursor: Cursor + """ + When paginating forwards, the cursor to continue. + """ + endCursor: Cursor +} +type PersonalAccessToken implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name associated with the token + """ + name: String! + token: String! + """ + when the token expires + """ + expiresAt: Time + """ + a description of the token's purpose + """ + description: String + scopes: [String!] + lastUsedAt: Time + owner: User! + """ + the organization(s) the token is associated with + """ + organizations: [Organization!] + events: [Event!] +} +""" +A connection to a list of items. +""" +type PersonalAccessTokenConnection { + """ + A list of edges. + """ + edges: [PersonalAccessTokenEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type PersonalAccessTokenEdge { + """ + The item at the end of the edge. + """ + node: PersonalAccessToken + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +PersonalAccessTokenWhereInput is used for filtering PersonalAccessToken objects. +Input was generated by ent. +""" +input PersonalAccessTokenWhereInput { + not: PersonalAccessTokenWhereInput + and: [PersonalAccessTokenWhereInput!] + or: [PersonalAccessTokenWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + expires_at field predicates + """ + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean + """ + last_used_at field predicates + """ + lastUsedAt: Time + lastUsedAtNEQ: Time + lastUsedAtIn: [Time!] + lastUsedAtNotIn: [Time!] + lastUsedAtGT: Time + lastUsedAtGTE: Time + lastUsedAtLT: Time + lastUsedAtLTE: Time + lastUsedAtIsNil: Boolean + lastUsedAtNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [UserWhereInput!] + """ + organizations edge predicates + """ + hasOrganizations: Boolean + hasOrganizationsWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type Procedure implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the procedure + """ + name: String! + """ + description of the procedure + """ + description: String + """ + status of the procedure + """ + status: String + """ + type of the procedure + """ + procedureType: String + """ + version of the procedure + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map + control: [Control!] + internalpolicy: [InternalPolicy!] + narratives: [Narrative!] + risks: [Risk!] +} +""" +A connection to a list of items. +""" +type ProcedureConnection { + """ + A list of edges. + """ + edges: [ProcedureEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ProcedureEdge { + """ + The item at the end of the edge. + """ + node: Procedure + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ProcedureHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ProcedureHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the procedure + """ + name: String! + """ + description of the procedure + """ + description: String + """ + status of the procedure + """ + status: String + """ + type of the procedure + """ + procedureType: String + """ + version of the procedure + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map +} +""" +A connection to a list of items. +""" +type ProcedureHistoryConnection { + """ + A list of edges. + """ + edges: [ProcedureHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ProcedureHistoryEdge { + """ + The item at the end of the edge. + """ + node: ProcedureHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ProcedureHistoryOpType is enum for the field operation +""" +enum ProcedureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ProcedureHistoryWhereInput is used for filtering ProcedureHistory objects. +Input was generated by ent. +""" +input ProcedureHistoryWhereInput { + not: ProcedureHistoryWhereInput + and: [ProcedureHistoryWhereInput!] + or: [ProcedureHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ProcedureHistoryOpType + operationNEQ: ProcedureHistoryOpType + operationIn: [ProcedureHistoryOpType!] + operationNotIn: [ProcedureHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + procedure_type field predicates + """ + procedureType: String + procedureTypeNEQ: String + procedureTypeIn: [String!] + procedureTypeNotIn: [String!] + procedureTypeGT: String + procedureTypeGTE: String + procedureTypeLT: String + procedureTypeLTE: String + procedureTypeContains: String + procedureTypeHasPrefix: String + procedureTypeHasSuffix: String + procedureTypeIsNil: Boolean + procedureTypeNotNil: Boolean + procedureTypeEqualFold: String + procedureTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +""" +ProcedureWhereInput is used for filtering Procedure objects. +Input was generated by ent. +""" +input ProcedureWhereInput { + not: ProcedureWhereInput + and: [ProcedureWhereInput!] + or: [ProcedureWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + procedure_type field predicates + """ + procedureType: String + procedureTypeNEQ: String + procedureTypeIn: [String!] + procedureTypeNotIn: [String!] + procedureTypeGT: String + procedureTypeGTE: String + procedureTypeLT: String + procedureTypeLTE: String + procedureTypeContains: String + procedureTypeHasPrefix: String + procedureTypeHasSuffix: String + procedureTypeIsNil: Boolean + procedureTypeNotNil: Boolean + procedureTypeEqualFold: String + procedureTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + internalpolicy edge predicates + """ + hasInternalpolicy: Boolean + hasInternalpolicyWith: [InternalPolicyWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] +} +type Query { + """ + Fetches an object given its ID. + """ + node( + """ + ID of the object. + """ + id: ID! + ): Node + """ + Lookup nodes by a list of IDs. + """ + nodes( + """ + The list of node IDs. + """ + ids: [ID!]! + ): [Node]! + apiTokens( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for APITokens returned from the connection. + """ + where: APITokenWhereInput + ): APITokenConnection! + actionPlans( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ActionPlans returned from the connection. + """ + where: ActionPlanWhereInput + ): ActionPlanConnection! + actionPlanHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ActionPlanHistories returned from the connection. + """ + where: ActionPlanHistoryWhereInput + ): ActionPlanHistoryConnection! + contacts( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Contacts returned from the connection. + """ + where: ContactWhereInput + ): ContactConnection! + contactHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ContactHistories returned from the connection. + """ + where: ContactHistoryWhereInput + ): ContactHistoryConnection! + controls( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Controls returned from the connection. + """ + where: ControlWhereInput + ): ControlConnection! + controlHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlHistories returned from the connection. + """ + where: ControlHistoryWhereInput + ): ControlHistoryConnection! + controlObjectives( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlObjectives returned from the connection. + """ + where: ControlObjectiveWhereInput + ): ControlObjectiveConnection! + controlObjectiveHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlObjectiveHistories returned from the connection. + """ + where: ControlObjectiveHistoryWhereInput + ): ControlObjectiveHistoryConnection! + documentDataSlice( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for DocumentDataSlice returned from the connection. + """ + where: DocumentDataWhereInput + ): DocumentDataConnection! + documentDataHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for DocumentDataHistories returned from the connection. + """ + where: DocumentDataHistoryWhereInput + ): DocumentDataHistoryConnection! + entitlements( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Entitlements returned from the connection. + """ + where: EntitlementWhereInput + ): EntitlementConnection! + entitlementHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EntitlementHistories returned from the connection. + """ + where: EntitlementHistoryWhereInput + ): EntitlementHistoryConnection! + entitlementPlans( + """ + Returns the elements in the list that come after the specified cursor. + """ after: Cursor """ @@ -13997,11 +19118,11 @@ type Query { last: Int """ - Filtering options for ContactHistories returned from the connection. + Filtering options for EntitlementPlans returned from the connection. """ - where: ContactHistoryWhereInput - ): ContactHistoryConnection! - documentDataSlice( + where: EntitlementPlanWhereInput + ): EntitlementPlanConnection! + entitlementPlanFeatures( """ Returns the elements in the list that come after the specified cursor. """ @@ -14023,11 +19144,11 @@ type Query { last: Int """ - Filtering options for DocumentDataSlice returned from the connection. + Filtering options for EntitlementPlanFeatures returned from the connection. """ - where: DocumentDataWhereInput - ): DocumentDataConnection! - documentDataHistories( + where: EntitlementPlanFeatureWhereInput + ): EntitlementPlanFeatureConnection! + entitlementPlanFeatureHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14049,11 +19170,11 @@ type Query { last: Int """ - Filtering options for DocumentDataHistories returned from the connection. + Filtering options for EntitlementPlanFeatureHistories returned from the connection. """ - where: DocumentDataHistoryWhereInput - ): DocumentDataHistoryConnection! - entitlements( + where: EntitlementPlanFeatureHistoryWhereInput + ): EntitlementPlanFeatureHistoryConnection! + entitlementPlanHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14075,11 +19196,11 @@ type Query { last: Int """ - Filtering options for Entitlements returned from the connection. + Filtering options for EntitlementPlanHistories returned from the connection. """ - where: EntitlementWhereInput - ): EntitlementConnection! - entitlementHistories( + where: EntitlementPlanHistoryWhereInput + ): EntitlementPlanHistoryConnection! + entities( """ Returns the elements in the list that come after the specified cursor. """ @@ -14101,11 +19222,213 @@ type Query { last: Int """ - Filtering options for EntitlementHistories returned from the connection. + Ordering options for Entities returned from the connection. + """ + orderBy: EntityOrder + + """ + Filtering options for Entities returned from the connection. + """ + where: EntityWhereInput + ): EntityConnection! + entityHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityHistories returned from the connection. + """ + orderBy: EntityHistoryOrder + + """ + Filtering options for EntityHistories returned from the connection. + """ + where: EntityHistoryWhereInput + ): EntityHistoryConnection! + entityTypes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityTypes returned from the connection. + """ + orderBy: EntityTypeOrder + + """ + Filtering options for EntityTypes returned from the connection. + """ + where: EntityTypeWhereInput + ): EntityTypeConnection! + entityTypeHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityTypeHistories returned from the connection. + """ + orderBy: EntityTypeHistoryOrder + + """ + Filtering options for EntityTypeHistories returned from the connection. + """ + where: EntityTypeHistoryWhereInput + ): EntityTypeHistoryConnection! + events( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Events returned from the connection. + """ + where: EventWhereInput + ): EventConnection! + eventHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EventHistories returned from the connection. + """ + where: EventHistoryWhereInput + ): EventHistoryConnection! + features( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Features returned from the connection. + """ + where: FeatureWhereInput + ): FeatureConnection! + featureHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for FeatureHistories returned from the connection. """ - where: EntitlementHistoryWhereInput - ): EntitlementHistoryConnection! - entitlementPlans( + where: FeatureHistoryWhereInput + ): FeatureHistoryConnection! + files( """ Returns the elements in the list that come after the specified cursor. """ @@ -14127,11 +19450,11 @@ type Query { last: Int """ - Filtering options for EntitlementPlans returned from the connection. + Filtering options for Files returned from the connection. """ - where: EntitlementPlanWhereInput - ): EntitlementPlanConnection! - entitlementPlanFeatures( + where: FileWhereInput + ): FileConnection! + fileHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14153,11 +19476,11 @@ type Query { last: Int """ - Filtering options for EntitlementPlanFeatures returned from the connection. + Filtering options for FileHistories returned from the connection. """ - where: EntitlementPlanFeatureWhereInput - ): EntitlementPlanFeatureConnection! - entitlementPlanFeatureHistories( + where: FileHistoryWhereInput + ): FileHistoryConnection! + groups( """ Returns the elements in the list that come after the specified cursor. """ @@ -14179,11 +19502,16 @@ type Query { last: Int """ - Filtering options for EntitlementPlanFeatureHistories returned from the connection. + Ordering options for Groups returned from the connection. """ - where: EntitlementPlanFeatureHistoryWhereInput - ): EntitlementPlanFeatureHistoryConnection! - entitlementPlanHistories( + orderBy: GroupOrder + + """ + Filtering options for Groups returned from the connection. + """ + where: GroupWhereInput + ): GroupConnection! + groupHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14205,11 +19533,16 @@ type Query { last: Int """ - Filtering options for EntitlementPlanHistories returned from the connection. + Ordering options for GroupHistories returned from the connection. """ - where: EntitlementPlanHistoryWhereInput - ): EntitlementPlanHistoryConnection! - entities( + orderBy: GroupHistoryOrder + + """ + Filtering options for GroupHistories returned from the connection. + """ + where: GroupHistoryWhereInput + ): GroupHistoryConnection! + groupMemberships( """ Returns the elements in the list that come after the specified cursor. """ @@ -14231,16 +19564,11 @@ type Query { last: Int """ - Ordering options for Entities returned from the connection. - """ - orderBy: EntityOrder - - """ - Filtering options for Entities returned from the connection. + Filtering options for GroupMemberships returned from the connection. """ - where: EntityWhereInput - ): EntityConnection! - entityHistories( + where: GroupMembershipWhereInput + ): GroupMembershipConnection! + groupMembershipHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14262,16 +19590,11 @@ type Query { last: Int """ - Ordering options for EntityHistories returned from the connection. - """ - orderBy: EntityHistoryOrder - - """ - Filtering options for EntityHistories returned from the connection. + Filtering options for GroupMembershipHistories returned from the connection. """ - where: EntityHistoryWhereInput - ): EntityHistoryConnection! - entityTypes( + where: GroupMembershipHistoryWhereInput + ): GroupMembershipHistoryConnection! + groupSettings( """ Returns the elements in the list that come after the specified cursor. """ @@ -14293,16 +19616,11 @@ type Query { last: Int """ - Ordering options for EntityTypes returned from the connection. - """ - orderBy: EntityTypeOrder - - """ - Filtering options for EntityTypes returned from the connection. + Filtering options for GroupSettings returned from the connection. """ - where: EntityTypeWhereInput - ): EntityTypeConnection! - entityTypeHistories( + where: GroupSettingWhereInput + ): GroupSettingConnection! + groupSettingHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14324,16 +19642,11 @@ type Query { last: Int """ - Ordering options for EntityTypeHistories returned from the connection. - """ - orderBy: EntityTypeHistoryOrder - - """ - Filtering options for EntityTypeHistories returned from the connection. + Filtering options for GroupSettingHistories returned from the connection. """ - where: EntityTypeHistoryWhereInput - ): EntityTypeHistoryConnection! - events( + where: GroupSettingHistoryWhereInput + ): GroupSettingHistoryConnection! + hushes( """ Returns the elements in the list that come after the specified cursor. """ @@ -14355,11 +19668,16 @@ type Query { last: Int """ - Filtering options for Events returned from the connection. + Ordering options for Hushes returned from the connection. """ - where: EventWhereInput - ): EventConnection! - eventHistories( + orderBy: HushOrder + + """ + Filtering options for Hushes returned from the connection. + """ + where: HushWhereInput + ): HushConnection! + hushHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14381,11 +19699,16 @@ type Query { last: Int """ - Filtering options for EventHistories returned from the connection. + Ordering options for HushHistories returned from the connection. """ - where: EventHistoryWhereInput - ): EventHistoryConnection! - features( + orderBy: HushHistoryOrder + + """ + Filtering options for HushHistories returned from the connection. + """ + where: HushHistoryWhereInput + ): HushHistoryConnection! + integrations( """ Returns the elements in the list that come after the specified cursor. """ @@ -14407,11 +19730,16 @@ type Query { last: Int """ - Filtering options for Features returned from the connection. + Ordering options for Integrations returned from the connection. """ - where: FeatureWhereInput - ): FeatureConnection! - featureHistories( + orderBy: IntegrationOrder + + """ + Filtering options for Integrations returned from the connection. + """ + where: IntegrationWhereInput + ): IntegrationConnection! + integrationHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14433,11 +19761,16 @@ type Query { last: Int """ - Filtering options for FeatureHistories returned from the connection. + Ordering options for IntegrationHistories returned from the connection. """ - where: FeatureHistoryWhereInput - ): FeatureHistoryConnection! - files( + orderBy: IntegrationHistoryOrder + + """ + Filtering options for IntegrationHistories returned from the connection. + """ + where: IntegrationHistoryWhereInput + ): IntegrationHistoryConnection! + internalPolicies( """ Returns the elements in the list that come after the specified cursor. """ @@ -14459,11 +19792,11 @@ type Query { last: Int """ - Filtering options for Files returned from the connection. + Filtering options for InternalPolicies returned from the connection. """ - where: FileWhereInput - ): FileConnection! - fileHistories( + where: InternalPolicyWhereInput + ): InternalPolicyConnection! + internalPolicyHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14485,11 +19818,11 @@ type Query { last: Int """ - Filtering options for FileHistories returned from the connection. + Filtering options for InternalPolicyHistories returned from the connection. """ - where: FileHistoryWhereInput - ): FileHistoryConnection! - groups( + where: InternalPolicyHistoryWhereInput + ): InternalPolicyHistoryConnection! + invites( """ Returns the elements in the list that come after the specified cursor. """ @@ -14511,16 +19844,11 @@ type Query { last: Int """ - Ordering options for Groups returned from the connection. - """ - orderBy: GroupOrder - - """ - Filtering options for Groups returned from the connection. + Filtering options for Invites returned from the connection. """ - where: GroupWhereInput - ): GroupConnection! - groupHistories( + where: InviteWhereInput + ): InviteConnection! + narratives( """ Returns the elements in the list that come after the specified cursor. """ @@ -14542,16 +19870,11 @@ type Query { last: Int """ - Ordering options for GroupHistories returned from the connection. - """ - orderBy: GroupHistoryOrder - - """ - Filtering options for GroupHistories returned from the connection. + Filtering options for Narratives returned from the connection. """ - where: GroupHistoryWhereInput - ): GroupHistoryConnection! - groupMemberships( + where: NarrativeWhereInput + ): NarrativeConnection! + narrativeHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14573,11 +19896,11 @@ type Query { last: Int """ - Filtering options for GroupMemberships returned from the connection. + Filtering options for NarrativeHistories returned from the connection. """ - where: GroupMembershipWhereInput - ): GroupMembershipConnection! - groupMembershipHistories( + where: NarrativeHistoryWhereInput + ): NarrativeHistoryConnection! + notes( """ Returns the elements in the list that come after the specified cursor. """ @@ -14599,11 +19922,11 @@ type Query { last: Int """ - Filtering options for GroupMembershipHistories returned from the connection. + Filtering options for Notes returned from the connection. """ - where: GroupMembershipHistoryWhereInput - ): GroupMembershipHistoryConnection! - groupSettings( + where: NoteWhereInput + ): NoteConnection! + noteHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14625,11 +19948,11 @@ type Query { last: Int """ - Filtering options for GroupSettings returned from the connection. + Filtering options for NoteHistories returned from the connection. """ - where: GroupSettingWhereInput - ): GroupSettingConnection! - groupSettingHistories( + where: NoteHistoryWhereInput + ): NoteHistoryConnection! + oauthProviders( """ Returns the elements in the list that come after the specified cursor. """ @@ -14651,11 +19974,11 @@ type Query { last: Int """ - Filtering options for GroupSettingHistories returned from the connection. + Filtering options for OauthProviders returned from the connection. """ - where: GroupSettingHistoryWhereInput - ): GroupSettingHistoryConnection! - hushes( + where: OauthProviderWhereInput + ): OauthProviderConnection! + oauthProviderHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14677,16 +20000,11 @@ type Query { last: Int """ - Ordering options for Hushes returned from the connection. - """ - orderBy: HushOrder - - """ - Filtering options for Hushes returned from the connection. + Filtering options for OauthProviderHistories returned from the connection. """ - where: HushWhereInput - ): HushConnection! - hushHistories( + where: OauthProviderHistoryWhereInput + ): OauthProviderHistoryConnection! + ohAuthTooTokens( """ Returns the elements in the list that come after the specified cursor. """ @@ -14708,16 +20026,11 @@ type Query { last: Int """ - Ordering options for HushHistories returned from the connection. - """ - orderBy: HushHistoryOrder - - """ - Filtering options for HushHistories returned from the connection. + Filtering options for OhAuthTooTokens returned from the connection. """ - where: HushHistoryWhereInput - ): HushHistoryConnection! - integrations( + where: OhAuthTooTokenWhereInput + ): OhAuthTooTokenConnection! + orgMemberships( """ Returns the elements in the list that come after the specified cursor. """ @@ -14739,16 +20052,11 @@ type Query { last: Int """ - Ordering options for Integrations returned from the connection. - """ - orderBy: IntegrationOrder - - """ - Filtering options for Integrations returned from the connection. + Filtering options for OrgMemberships returned from the connection. """ - where: IntegrationWhereInput - ): IntegrationConnection! - integrationHistories( + where: OrgMembershipWhereInput + ): OrgMembershipConnection! + orgMembershipHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14770,16 +20078,11 @@ type Query { last: Int """ - Ordering options for IntegrationHistories returned from the connection. - """ - orderBy: IntegrationHistoryOrder - - """ - Filtering options for IntegrationHistories returned from the connection. + Filtering options for OrgMembershipHistories returned from the connection. """ - where: IntegrationHistoryWhereInput - ): IntegrationHistoryConnection! - invites( + where: OrgMembershipHistoryWhereInput + ): OrgMembershipHistoryConnection! + organizations( """ Returns the elements in the list that come after the specified cursor. """ @@ -14801,11 +20104,16 @@ type Query { last: Int """ - Filtering options for Invites returned from the connection. + Ordering options for Organizations returned from the connection. """ - where: InviteWhereInput - ): InviteConnection! - notes( + orderBy: OrganizationOrder + + """ + Filtering options for Organizations returned from the connection. + """ + where: OrganizationWhereInput + ): OrganizationConnection! + organizationHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14827,11 +20135,16 @@ type Query { last: Int """ - Filtering options for Notes returned from the connection. + Ordering options for OrganizationHistories returned from the connection. """ - where: NoteWhereInput - ): NoteConnection! - noteHistories( + orderBy: OrganizationHistoryOrder + + """ + Filtering options for OrganizationHistories returned from the connection. + """ + where: OrganizationHistoryWhereInput + ): OrganizationHistoryConnection! + organizationSettings( """ Returns the elements in the list that come after the specified cursor. """ @@ -14853,11 +20166,11 @@ type Query { last: Int """ - Filtering options for NoteHistories returned from the connection. + Filtering options for OrganizationSettings returned from the connection. """ - where: NoteHistoryWhereInput - ): NoteHistoryConnection! - oauthProviders( + where: OrganizationSettingWhereInput + ): OrganizationSettingConnection! + organizationSettingHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14879,11 +20192,11 @@ type Query { last: Int """ - Filtering options for OauthProviders returned from the connection. + Filtering options for OrganizationSettingHistories returned from the connection. """ - where: OauthProviderWhereInput - ): OauthProviderConnection! - oauthProviderHistories( + where: OrganizationSettingHistoryWhereInput + ): OrganizationSettingHistoryConnection! + personalAccessTokens( """ Returns the elements in the list that come after the specified cursor. """ @@ -14905,11 +20218,11 @@ type Query { last: Int """ - Filtering options for OauthProviderHistories returned from the connection. + Filtering options for PersonalAccessTokens returned from the connection. """ - where: OauthProviderHistoryWhereInput - ): OauthProviderHistoryConnection! - ohAuthTooTokens( + where: PersonalAccessTokenWhereInput + ): PersonalAccessTokenConnection! + procedures( """ Returns the elements in the list that come after the specified cursor. """ @@ -14931,11 +20244,11 @@ type Query { last: Int """ - Filtering options for OhAuthTooTokens returned from the connection. + Filtering options for Procedures returned from the connection. """ - where: OhAuthTooTokenWhereInput - ): OhAuthTooTokenConnection! - orgMemberships( + where: ProcedureWhereInput + ): ProcedureConnection! + procedureHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -14957,11 +20270,11 @@ type Query { last: Int """ - Filtering options for OrgMemberships returned from the connection. + Filtering options for ProcedureHistories returned from the connection. """ - where: OrgMembershipWhereInput - ): OrgMembershipConnection! - orgMembershipHistories( + where: ProcedureHistoryWhereInput + ): ProcedureHistoryConnection! + risks( """ Returns the elements in the list that come after the specified cursor. """ @@ -14983,11 +20296,11 @@ type Query { last: Int """ - Filtering options for OrgMembershipHistories returned from the connection. + Filtering options for Risks returned from the connection. """ - where: OrgMembershipHistoryWhereInput - ): OrgMembershipHistoryConnection! - organizations( + where: RiskWhereInput + ): RiskConnection! + riskHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -15009,16 +20322,11 @@ type Query { last: Int """ - Ordering options for Organizations returned from the connection. - """ - orderBy: OrganizationOrder - - """ - Filtering options for Organizations returned from the connection. + Filtering options for RiskHistories returned from the connection. """ - where: OrganizationWhereInput - ): OrganizationConnection! - organizationHistories( + where: RiskHistoryWhereInput + ): RiskHistoryConnection! + standards( """ Returns the elements in the list that come after the specified cursor. """ @@ -15040,16 +20348,11 @@ type Query { last: Int """ - Ordering options for OrganizationHistories returned from the connection. - """ - orderBy: OrganizationHistoryOrder - - """ - Filtering options for OrganizationHistories returned from the connection. + Filtering options for Standards returned from the connection. """ - where: OrganizationHistoryWhereInput - ): OrganizationHistoryConnection! - organizationSettings( + where: StandardWhereInput + ): StandardConnection! + standardHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -15071,11 +20374,11 @@ type Query { last: Int """ - Filtering options for OrganizationSettings returned from the connection. + Filtering options for StandardHistories returned from the connection. """ - where: OrganizationSettingWhereInput - ): OrganizationSettingConnection! - organizationSettingHistories( + where: StandardHistoryWhereInput + ): StandardHistoryConnection! + subcontrols( """ Returns the elements in the list that come after the specified cursor. """ @@ -15097,11 +20400,11 @@ type Query { last: Int """ - Filtering options for OrganizationSettingHistories returned from the connection. + Filtering options for Subcontrols returned from the connection. """ - where: OrganizationSettingHistoryWhereInput - ): OrganizationSettingHistoryConnection! - personalAccessTokens( + where: SubcontrolWhereInput + ): SubcontrolConnection! + subcontrolHistories( """ Returns the elements in the list that come after the specified cursor. """ @@ -15123,10 +20426,10 @@ type Query { last: Int """ - Filtering options for PersonalAccessTokens returned from the connection. + Filtering options for SubcontrolHistories returned from the connection. """ - where: PersonalAccessTokenWhereInput - ): PersonalAccessTokenConnection! + where: SubcontrolHistoryWhereInput + ): SubcontrolHistoryConnection! subscribers( """ Returns the elements in the list that come after the specified cursor. @@ -15418,6 +20721,2595 @@ type Query { where: WebhookHistoryWhereInput ): WebhookHistoryConnection! } +type Risk implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map + control: [Control!] + procedure: [Procedure!] + actionplans: [ActionPlan!] +} +""" +A connection to a list of items. +""" +type RiskConnection { + """ + A list of edges. + """ + edges: [RiskEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type RiskEdge { + """ + The item at the end of the edge. + """ + node: Risk + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type RiskHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: RiskHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskHistoryRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskHistoryRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map +} +""" +A connection to a list of items. +""" +type RiskHistoryConnection { + """ + A list of edges. + """ + edges: [RiskHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type RiskHistoryEdge { + """ + The item at the end of the edge. + """ + node: RiskHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +RiskHistoryOpType is enum for the field operation +""" +enum RiskHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +RiskHistoryRiskImpact is enum for the field impact +""" +enum RiskHistoryRiskImpact @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskImpact") { + LOW + MODERATE + HIGH +} +""" +RiskHistoryRiskLikelihood is enum for the field likelihood +""" +enum RiskHistoryRiskLikelihood @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskLikelihood") { + UNLIKELY + LIKELY + HIGHLY_LIKELY +} +""" +RiskHistoryWhereInput is used for filtering RiskHistory objects. +Input was generated by ent. +""" +input RiskHistoryWhereInput { + not: RiskHistoryWhereInput + and: [RiskHistoryWhereInput!] + or: [RiskHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: RiskHistoryOpType + operationNEQ: RiskHistoryOpType + operationIn: [RiskHistoryOpType!] + operationNotIn: [RiskHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + risk_type field predicates + """ + riskType: String + riskTypeNEQ: String + riskTypeIn: [String!] + riskTypeNotIn: [String!] + riskTypeGT: String + riskTypeGTE: String + riskTypeLT: String + riskTypeLTE: String + riskTypeContains: String + riskTypeHasPrefix: String + riskTypeHasSuffix: String + riskTypeIsNil: Boolean + riskTypeNotNil: Boolean + riskTypeEqualFold: String + riskTypeContainsFold: String + """ + business_costs field predicates + """ + businessCosts: String + businessCostsNEQ: String + businessCostsIn: [String!] + businessCostsNotIn: [String!] + businessCostsGT: String + businessCostsGTE: String + businessCostsLT: String + businessCostsLTE: String + businessCostsContains: String + businessCostsHasPrefix: String + businessCostsHasSuffix: String + businessCostsIsNil: Boolean + businessCostsNotNil: Boolean + businessCostsEqualFold: String + businessCostsContainsFold: String + """ + impact field predicates + """ + impact: RiskHistoryRiskImpact + impactNEQ: RiskHistoryRiskImpact + impactIn: [RiskHistoryRiskImpact!] + impactNotIn: [RiskHistoryRiskImpact!] + impactIsNil: Boolean + impactNotNil: Boolean + """ + likelihood field predicates + """ + likelihood: RiskHistoryRiskLikelihood + likelihoodNEQ: RiskHistoryRiskLikelihood + likelihoodIn: [RiskHistoryRiskLikelihood!] + likelihoodNotIn: [RiskHistoryRiskLikelihood!] + likelihoodIsNil: Boolean + likelihoodNotNil: Boolean + """ + mitigation field predicates + """ + mitigation: String + mitigationNEQ: String + mitigationIn: [String!] + mitigationNotIn: [String!] + mitigationGT: String + mitigationGTE: String + mitigationLT: String + mitigationLTE: String + mitigationContains: String + mitigationHasPrefix: String + mitigationHasSuffix: String + mitigationIsNil: Boolean + mitigationNotNil: Boolean + mitigationEqualFold: String + mitigationContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +""" +RiskRiskImpact is enum for the field impact +""" +enum RiskRiskImpact @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskImpact") { + LOW + MODERATE + HIGH +} +""" +RiskRiskLikelihood is enum for the field likelihood +""" +enum RiskRiskLikelihood @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskLikelihood") { + UNLIKELY + LIKELY + HIGHLY_LIKELY +} +""" +RiskWhereInput is used for filtering Risk objects. +Input was generated by ent. +""" +input RiskWhereInput { + not: RiskWhereInput + and: [RiskWhereInput!] + or: [RiskWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + risk_type field predicates + """ + riskType: String + riskTypeNEQ: String + riskTypeIn: [String!] + riskTypeNotIn: [String!] + riskTypeGT: String + riskTypeGTE: String + riskTypeLT: String + riskTypeLTE: String + riskTypeContains: String + riskTypeHasPrefix: String + riskTypeHasSuffix: String + riskTypeIsNil: Boolean + riskTypeNotNil: Boolean + riskTypeEqualFold: String + riskTypeContainsFold: String + """ + business_costs field predicates + """ + businessCosts: String + businessCostsNEQ: String + businessCostsIn: [String!] + businessCostsNotIn: [String!] + businessCostsGT: String + businessCostsGTE: String + businessCostsLT: String + businessCostsLTE: String + businessCostsContains: String + businessCostsHasPrefix: String + businessCostsHasSuffix: String + businessCostsIsNil: Boolean + businessCostsNotNil: Boolean + businessCostsEqualFold: String + businessCostsContainsFold: String + """ + impact field predicates + """ + impact: RiskRiskImpact + impactNEQ: RiskRiskImpact + impactIn: [RiskRiskImpact!] + impactNotIn: [RiskRiskImpact!] + impactIsNil: Boolean + impactNotNil: Boolean + """ + likelihood field predicates + """ + likelihood: RiskRiskLikelihood + likelihoodNEQ: RiskRiskLikelihood + likelihoodIn: [RiskRiskLikelihood!] + likelihoodNotIn: [RiskRiskLikelihood!] + likelihoodIsNil: Boolean + likelihoodNotNil: Boolean + """ + mitigation field predicates + """ + mitigation: String + mitigationNEQ: String + mitigationIn: [String!] + mitigationNotIn: [String!] + mitigationGT: String + mitigationGTE: String + mitigationLT: String + mitigationLTE: String + mitigationContains: String + mitigationHasPrefix: String + mitigationHasSuffix: String + mitigationIsNil: Boolean + mitigationNotNil: Boolean + mitigationEqualFold: String + mitigationContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + procedure edge predicates + """ + hasProcedure: Boolean + hasProcedureWith: [ProcedureWhereInput!] + """ + actionplans edge predicates + """ + hasActionplans: Boolean + hasActionplansWith: [ActionPlanWhereInput!] +} +type Standard implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map + controlobjectives: [ControlObjective!] + controls: [Control!] + procedures: [Procedure!] + actionplans: [ActionPlan!] +} +""" +A connection to a list of items. +""" +type StandardConnection { + """ + A list of edges. + """ + edges: [StandardEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type StandardEdge { + """ + The item at the end of the edge. + """ + node: Standard + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type StandardHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: StandardHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map +} +""" +A connection to a list of items. +""" +type StandardHistoryConnection { + """ + A list of edges. + """ + edges: [StandardHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type StandardHistoryEdge { + """ + The item at the end of the edge. + """ + node: StandardHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +StandardHistoryOpType is enum for the field operation +""" +enum StandardHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +StandardHistoryWhereInput is used for filtering StandardHistory objects. +Input was generated by ent. +""" +input StandardHistoryWhereInput { + not: StandardHistoryWhereInput + and: [StandardHistoryWhereInput!] + or: [StandardHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: StandardHistoryOpType + operationNEQ: StandardHistoryOpType + operationIn: [StandardHistoryOpType!] + operationNotIn: [StandardHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + standard_type field predicates + """ + standardType: String + standardTypeNEQ: String + standardTypeIn: [String!] + standardTypeNotIn: [String!] + standardTypeGT: String + standardTypeGTE: String + standardTypeLT: String + standardTypeLTE: String + standardTypeContains: String + standardTypeHasPrefix: String + standardTypeHasSuffix: String + standardTypeIsNil: Boolean + standardTypeNotNil: Boolean + standardTypeEqualFold: String + standardTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +""" +StandardWhereInput is used for filtering Standard objects. +Input was generated by ent. +""" +input StandardWhereInput { + not: StandardWhereInput + and: [StandardWhereInput!] + or: [StandardWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + standard_type field predicates + """ + standardType: String + standardTypeNEQ: String + standardTypeIn: [String!] + standardTypeNotIn: [String!] + standardTypeGT: String + standardTypeGTE: String + standardTypeLT: String + standardTypeLTE: String + standardTypeContains: String + standardTypeHasPrefix: String + standardTypeHasSuffix: String + standardTypeIsNil: Boolean + standardTypeNotNil: Boolean + standardTypeEqualFold: String + standardTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + controlobjectives edge predicates + """ + hasControlobjectives: Boolean + hasControlobjectivesWith: [ControlObjectiveWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + actionplans edge predicates + """ + hasActionplans: Boolean + hasActionplansWith: [ActionPlanWhereInput!] +} +type Subcontrol implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the subcontrol + """ + name: String! + """ + description of the subcontrol + """ + description: String + """ + status of the subcontrol + """ + status: String + """ + type of the subcontrol + """ + subcontrolType: String + """ + version of the control + """ + version: String + """ + number of the subcontrol + """ + subcontrolNumber: String + """ + subcontrol family + """ + family: String + """ + subcontrol class + """ + class: String + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + """ + implementation status + """ + implementationStatus: String + """ + date the subcontrol was implemented + """ + implementationDate: Time + """ + implementation verification + """ + implementationVerification: String + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + """ + json data details of the subcontrol + """ + details: Map + control: [Control!] + user: [User!] + notes: Note +} +""" +A connection to a list of items. +""" +type SubcontrolConnection { + """ + A list of edges. + """ + edges: [SubcontrolEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type SubcontrolEdge { + """ + The item at the end of the edge. + """ + node: Subcontrol + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type SubcontrolHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: SubcontrolHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the subcontrol + """ + name: String! + """ + description of the subcontrol + """ + description: String + """ + status of the subcontrol + """ + status: String + """ + type of the subcontrol + """ + subcontrolType: String + """ + version of the control + """ + version: String + """ + number of the subcontrol + """ + subcontrolNumber: String + """ + subcontrol family + """ + family: String + """ + subcontrol class + """ + class: String + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + """ + implementation status + """ + implementationStatus: String + """ + date the subcontrol was implemented + """ + implementationDate: Time + """ + implementation verification + """ + implementationVerification: String + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + """ + json data details of the subcontrol + """ + details: Map +} +""" +A connection to a list of items. +""" +type SubcontrolHistoryConnection { + """ + A list of edges. + """ + edges: [SubcontrolHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type SubcontrolHistoryEdge { + """ + The item at the end of the edge. + """ + node: SubcontrolHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +SubcontrolHistoryOpType is enum for the field operation +""" +enum SubcontrolHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +SubcontrolHistoryWhereInput is used for filtering SubcontrolHistory objects. +Input was generated by ent. +""" +input SubcontrolHistoryWhereInput { + not: SubcontrolHistoryWhereInput + and: [SubcontrolHistoryWhereInput!] + or: [SubcontrolHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: SubcontrolHistoryOpType + operationNEQ: SubcontrolHistoryOpType + operationIn: [SubcontrolHistoryOpType!] + operationNotIn: [SubcontrolHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + subcontrol_type field predicates + """ + subcontrolType: String + subcontrolTypeNEQ: String + subcontrolTypeIn: [String!] + subcontrolTypeNotIn: [String!] + subcontrolTypeGT: String + subcontrolTypeGTE: String + subcontrolTypeLT: String + subcontrolTypeLTE: String + subcontrolTypeContains: String + subcontrolTypeHasPrefix: String + subcontrolTypeHasSuffix: String + subcontrolTypeIsNil: Boolean + subcontrolTypeNotNil: Boolean + subcontrolTypeEqualFold: String + subcontrolTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + subcontrol_number field predicates + """ + subcontrolNumber: String + subcontrolNumberNEQ: String + subcontrolNumberIn: [String!] + subcontrolNumberNotIn: [String!] + subcontrolNumberGT: String + subcontrolNumberGTE: String + subcontrolNumberLT: String + subcontrolNumberLTE: String + subcontrolNumberContains: String + subcontrolNumberHasPrefix: String + subcontrolNumberHasSuffix: String + subcontrolNumberIsNil: Boolean + subcontrolNumberNotNil: Boolean + subcontrolNumberEqualFold: String + subcontrolNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + implementation_evidence field predicates + """ + implementationEvidence: String + implementationEvidenceNEQ: String + implementationEvidenceIn: [String!] + implementationEvidenceNotIn: [String!] + implementationEvidenceGT: String + implementationEvidenceGTE: String + implementationEvidenceLT: String + implementationEvidenceLTE: String + implementationEvidenceContains: String + implementationEvidenceHasPrefix: String + implementationEvidenceHasSuffix: String + implementationEvidenceIsNil: Boolean + implementationEvidenceNotNil: Boolean + implementationEvidenceEqualFold: String + implementationEvidenceContainsFold: String + """ + implementation_status field predicates + """ + implementationStatus: String + implementationStatusNEQ: String + implementationStatusIn: [String!] + implementationStatusNotIn: [String!] + implementationStatusGT: String + implementationStatusGTE: String + implementationStatusLT: String + implementationStatusLTE: String + implementationStatusContains: String + implementationStatusHasPrefix: String + implementationStatusHasSuffix: String + implementationStatusIsNil: Boolean + implementationStatusNotNil: Boolean + implementationStatusEqualFold: String + implementationStatusContainsFold: String + """ + implementation_date field predicates + """ + implementationDate: Time + implementationDateNEQ: Time + implementationDateIn: [Time!] + implementationDateNotIn: [Time!] + implementationDateGT: Time + implementationDateGTE: Time + implementationDateLT: Time + implementationDateLTE: Time + implementationDateIsNil: Boolean + implementationDateNotNil: Boolean + """ + implementation_verification field predicates + """ + implementationVerification: String + implementationVerificationNEQ: String + implementationVerificationIn: [String!] + implementationVerificationNotIn: [String!] + implementationVerificationGT: String + implementationVerificationGTE: String + implementationVerificationLT: String + implementationVerificationLTE: String + implementationVerificationContains: String + implementationVerificationHasPrefix: String + implementationVerificationHasSuffix: String + implementationVerificationIsNil: Boolean + implementationVerificationNotNil: Boolean + implementationVerificationEqualFold: String + implementationVerificationContainsFold: String + """ + implementation_verification_date field predicates + """ + implementationVerificationDate: Time + implementationVerificationDateNEQ: Time + implementationVerificationDateIn: [Time!] + implementationVerificationDateNotIn: [Time!] + implementationVerificationDateGT: Time + implementationVerificationDateGTE: Time + implementationVerificationDateLT: Time + implementationVerificationDateLTE: Time + implementationVerificationDateIsNil: Boolean + implementationVerificationDateNotNil: Boolean +} +""" +SubcontrolWhereInput is used for filtering Subcontrol objects. +Input was generated by ent. +""" +input SubcontrolWhereInput { + not: SubcontrolWhereInput + and: [SubcontrolWhereInput!] + or: [SubcontrolWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + subcontrol_type field predicates + """ + subcontrolType: String + subcontrolTypeNEQ: String + subcontrolTypeIn: [String!] + subcontrolTypeNotIn: [String!] + subcontrolTypeGT: String + subcontrolTypeGTE: String + subcontrolTypeLT: String + subcontrolTypeLTE: String + subcontrolTypeContains: String + subcontrolTypeHasPrefix: String + subcontrolTypeHasSuffix: String + subcontrolTypeIsNil: Boolean + subcontrolTypeNotNil: Boolean + subcontrolTypeEqualFold: String + subcontrolTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + subcontrol_number field predicates + """ + subcontrolNumber: String + subcontrolNumberNEQ: String + subcontrolNumberIn: [String!] + subcontrolNumberNotIn: [String!] + subcontrolNumberGT: String + subcontrolNumberGTE: String + subcontrolNumberLT: String + subcontrolNumberLTE: String + subcontrolNumberContains: String + subcontrolNumberHasPrefix: String + subcontrolNumberHasSuffix: String + subcontrolNumberIsNil: Boolean + subcontrolNumberNotNil: Boolean + subcontrolNumberEqualFold: String + subcontrolNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + implementation_evidence field predicates + """ + implementationEvidence: String + implementationEvidenceNEQ: String + implementationEvidenceIn: [String!] + implementationEvidenceNotIn: [String!] + implementationEvidenceGT: String + implementationEvidenceGTE: String + implementationEvidenceLT: String + implementationEvidenceLTE: String + implementationEvidenceContains: String + implementationEvidenceHasPrefix: String + implementationEvidenceHasSuffix: String + implementationEvidenceIsNil: Boolean + implementationEvidenceNotNil: Boolean + implementationEvidenceEqualFold: String + implementationEvidenceContainsFold: String + """ + implementation_status field predicates + """ + implementationStatus: String + implementationStatusNEQ: String + implementationStatusIn: [String!] + implementationStatusNotIn: [String!] + implementationStatusGT: String + implementationStatusGTE: String + implementationStatusLT: String + implementationStatusLTE: String + implementationStatusContains: String + implementationStatusHasPrefix: String + implementationStatusHasSuffix: String + implementationStatusIsNil: Boolean + implementationStatusNotNil: Boolean + implementationStatusEqualFold: String + implementationStatusContainsFold: String + """ + implementation_date field predicates + """ + implementationDate: Time + implementationDateNEQ: Time + implementationDateIn: [Time!] + implementationDateNotIn: [Time!] + implementationDateGT: Time + implementationDateGTE: Time + implementationDateLT: Time + implementationDateLTE: Time + implementationDateIsNil: Boolean + implementationDateNotNil: Boolean + """ + implementation_verification field predicates + """ + implementationVerification: String + implementationVerificationNEQ: String + implementationVerificationIn: [String!] + implementationVerificationNotIn: [String!] + implementationVerificationGT: String + implementationVerificationGTE: String + implementationVerificationLT: String + implementationVerificationLTE: String + implementationVerificationContains: String + implementationVerificationHasPrefix: String + implementationVerificationHasSuffix: String + implementationVerificationIsNil: Boolean + implementationVerificationNotNil: Boolean + implementationVerificationEqualFold: String + implementationVerificationContainsFold: String + """ + implementation_verification_date field predicates + """ + implementationVerificationDate: Time + implementationVerificationDateNEQ: Time + implementationVerificationDateIn: [Time!] + implementationVerificationDateNotIn: [Time!] + implementationVerificationDateGT: Time + implementationVerificationDateGTE: Time + implementationVerificationDateLT: Time + implementationVerificationDateLTE: Time + implementationVerificationDateIsNil: Boolean + implementationVerificationDateNotNil: Boolean + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] +} type Subscriber implements Node { id: ID! createdAt: Time @@ -16525,10 +24417,213 @@ input UpdateAPITokenInput { clearOwner: Boolean } """ -UpdateContactInput is used for update Contact object. +UpdateActionPlanInput is used for update ActionPlan object. +Input was generated by ent. +""" +input UpdateActionPlanInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the action plan + """ + name: String + """ + description of the action plan + """ + description: String + clearDescription: Boolean + """ + status of the action plan + """ + status: String + clearStatus: Boolean + """ + due date of the action plan + """ + dueDate: Time + clearDueDate: Boolean + """ + priority of the action plan + """ + priority: String + clearPriority: Boolean + """ + source of the action plan + """ + source: String + clearSource: Boolean + """ + json data including details of the action plan + """ + details: Map + clearDetails: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisk: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean +} +""" +UpdateContactInput is used for update Contact object. +Input was generated by ent. +""" +input UpdateContactInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the full name of the contact + """ + fullName: String + """ + the title of the contact + """ + title: String + clearTitle: Boolean + """ + the company of the contact + """ + company: String + clearCompany: Boolean + """ + the email of the contact + """ + email: String + clearEmail: Boolean + """ + the phone number of the contact + """ + phoneNumber: String + clearPhoneNumber: Boolean + """ + the address of the contact + """ + address: String + clearAddress: Boolean + """ + status of the contact + """ + status: ContactUserStatus + ownerID: ID + clearOwner: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntities: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateControlInput is used for update Control object. +Input was generated by ent. +""" +input UpdateControlInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the control + """ + name: String + """ + description of the control + """ + description: String + clearDescription: Boolean + """ + status of the control + """ + status: String + clearStatus: Boolean + """ + type of the control + """ + controlType: String + clearControlType: Boolean + """ + version of the control + """ + version: String + clearVersion: Boolean + """ + control number or identifier + """ + controlNumber: String + clearControlNumber: Boolean + """ + family associated with the control + """ + family: String + clearFamily: Boolean + """ + class associated with the control + """ + class: String + clearClass: Boolean + """ + source of the control, e.g. framework, template, custom, etc. + """ + source: String + clearSource: Boolean + """ + which control objectives are satisfied by the control + """ + satisfies: String + clearSatisfies: Boolean + """ + mapped frameworks + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + json data including details of the control + """ + details: Map + clearDetails: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addControlobjectiveIDs: [ID!] + removeControlobjectiveIDs: [ID!] + clearControlobjectives: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addActionplanIDs: [ID!] + removeActionplanIDs: [ID!] + clearActionplans: Boolean +} +""" +UpdateControlObjectiveInput is used for update ControlObjective object. Input was generated by ent. """ -input UpdateContactInput { +input UpdateControlObjectiveInput { """ tags associated with the object """ @@ -16536,46 +24631,80 @@ input UpdateContactInput { appendTags: [String!] clearTags: Boolean """ - the full name of the contact + the name of the control objective """ - fullName: String + name: String """ - the title of the contact + description of the control objective """ - title: String - clearTitle: Boolean + description: String + clearDescription: Boolean """ - the company of the contact + status of the control objective """ - company: String - clearCompany: Boolean + status: String + clearStatus: Boolean """ - the email of the contact + type of the control objective """ - email: String - clearEmail: Boolean + controlObjectiveType: String + clearControlObjectiveType: Boolean """ - the phone number of the contact + version of the control objective """ - phoneNumber: String - clearPhoneNumber: Boolean + version: String + clearVersion: Boolean """ - the address of the contact + number of the control objective """ - address: String - clearAddress: Boolean + controlNumber: String + clearControlNumber: Boolean """ - status of the contact + family of the control objective """ - status: ContactUserStatus - ownerID: ID - clearOwner: Boolean - addEntityIDs: [ID!] - removeEntityIDs: [ID!] - clearEntities: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean + family: String + clearFamily: Boolean + """ + class associated with the control objective + """ + class: String + clearClass: Boolean + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + clearSource: Boolean + """ + mapped frameworks + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + json data including details of the control objective + """ + details: Map + clearDetails: Boolean + addPolicyIDs: [ID!] + removePolicyIDs: [ID!] + clearPolicy: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean } """ UpdateDocumentDataInput is used for update DocumentData object. @@ -17133,6 +25262,68 @@ input UpdateIntegrationInput { clearWebhooks: Boolean } """ +UpdateInternalPolicyInput is used for update InternalPolicy object. +Input was generated by ent. +""" +input UpdateInternalPolicyInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the policy + """ + name: String + """ + description of the policy + """ + description: String + """ + status of the policy + """ + status: String + clearStatus: Boolean + """ + type of the policy + """ + policyType: String + clearPolicyType: Boolean + """ + version of the policy + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the policy + """ + background: String + clearBackground: Boolean + """ + json data for the policy document + """ + details: Map + clearDetails: Boolean + addControlobjectiveIDs: [ID!] + removeControlobjectiveIDs: [ID!] + clearControlobjectives: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean +} +""" UpdateInviteInput is used for update Invite object. Input was generated by ent. """ @@ -17158,6 +25349,49 @@ input UpdateInviteInput { clearEvents: Boolean } """ +UpdateNarrativeInput is used for update Narrative object. +Input was generated by ent. +""" +input UpdateNarrativeInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the narrative + """ + name: String + """ + the description of the narrative + """ + description: String + clearDescription: Boolean + """ + which controls are satisfied by the narrative + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the narrative document + """ + details: Map + clearDetails: Boolean + addPolicyIDs: [ID!] + removePolicyIDs: [ID!] + clearPolicy: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedure: Boolean + addControlobjectiveIDs: [ID!] + removeControlobjectiveIDs: [ID!] + clearControlobjective: Boolean +} +""" UpdateNoteInput is used for update Note object. Input was generated by ent. """ @@ -17176,6 +25410,9 @@ input UpdateNoteInput { clearOwner: Boolean entityID: ID clearEntity: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean } """ UpdateOauthProviderInput is used for update OauthProvider object. @@ -17457,6 +25694,316 @@ input UpdatePersonalAccessTokenInput { clearEvents: Boolean } """ +UpdateProcedureInput is used for update Procedure object. +Input was generated by ent. +""" +input UpdateProcedureInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the procedure + """ + name: String + """ + description of the procedure + """ + description: String + clearDescription: Boolean + """ + status of the procedure + """ + status: String + clearStatus: Boolean + """ + type of the procedure + """ + procedureType: String + clearProcedureType: Boolean + """ + version of the procedure + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the procedure + """ + background: String + clearBackground: Boolean + """ + which controls are satisfied by the procedure + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the procedure document + """ + details: Map + clearDetails: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addInternalpolicyIDs: [ID!] + removeInternalpolicyIDs: [ID!] + clearInternalpolicy: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean +} +""" +UpdateRiskInput is used for update Risk object. +Input was generated by ent. +""" +input UpdateRiskInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the risk + """ + name: String + """ + description of the risk + """ + description: String + clearDescription: Boolean + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + clearStatus: Boolean + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + clearRiskType: Boolean + """ + business costs associated with the risk + """ + businessCosts: String + clearBusinessCosts: Boolean + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + clearImpact: Boolean + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + clearLikelihood: Boolean + """ + mitigation for the risk + """ + mitigation: String + clearMitigation: Boolean + """ + which controls are satisfied by the risk + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the risk document + """ + details: Map + clearDetails: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedure: Boolean + addActionplanIDs: [ID!] + removeActionplanIDs: [ID!] + clearActionplans: Boolean +} +""" +UpdateStandardInput is used for update Standard object. +Input was generated by ent. +""" +input UpdateStandardInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String + """ + description of the standard + """ + description: String + clearDescription: Boolean + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + clearFamily: Boolean + """ + status of the standard - active, deprecated, etc. + """ + status: String + clearStatus: Boolean + """ + type of the standard - security, privacy, etc. + """ + standardType: String + clearStandardType: Boolean + """ + version of the standard + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the standard + """ + background: String + clearBackground: Boolean + """ + which controls are satisfied by the standard + """ + satisfies: String + clearSatisfies: Boolean + """ + json data with details of the standard + """ + details: Map + clearDetails: Boolean + addControlobjectiveIDs: [ID!] + removeControlobjectiveIDs: [ID!] + clearControlobjectives: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addActionplanIDs: [ID!] + removeActionplanIDs: [ID!] + clearActionplans: Boolean +} +""" +UpdateSubcontrolInput is used for update Subcontrol object. +Input was generated by ent. +""" +input UpdateSubcontrolInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the subcontrol + """ + name: String + """ + description of the subcontrol + """ + description: String + clearDescription: Boolean + """ + status of the subcontrol + """ + status: String + clearStatus: Boolean + """ + type of the subcontrol + """ + subcontrolType: String + clearSubcontrolType: Boolean + """ + version of the control + """ + version: String + clearVersion: Boolean + """ + number of the subcontrol + """ + subcontrolNumber: String + clearSubcontrolNumber: Boolean + """ + subcontrol family + """ + family: String + clearFamily: Boolean + """ + subcontrol class + """ + class: String + clearClass: Boolean + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + clearSource: Boolean + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + clearImplementationEvidence: Boolean + """ + implementation status + """ + implementationStatus: String + clearImplementationStatus: Boolean + """ + date the subcontrol was implemented + """ + implementationDate: Time + clearImplementationDate: Boolean + """ + implementation verification + """ + implementationVerification: String + clearImplementationVerification: Boolean + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + clearImplementationVerificationDate: Boolean + """ + json data details of the subcontrol + """ + details: Map + clearDetails: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + notesID: ID + clearNotes: Boolean +} +""" UpdateSubscriberInput is used for update Subscriber object. Input was generated by ent. """ @@ -17634,6 +26181,12 @@ input UpdateUserInput { addEventIDs: [ID!] removeEventIDs: [ID!] clearEvents: Boolean + addActionplanIDs: [ID!] + removeActionplanIDs: [ID!] + clearActionplans: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean } """ UpdateUserSettingInput is used for update UserSetting object. @@ -17797,6 +26350,8 @@ type User implements Node { files: [File!] file: File events: [Event!] + actionplans: [ActionPlan!] + subcontrols: [Subcontrol!] groupMemberships: [GroupMembership!] orgMemberships: [OrgMembership!] } @@ -19281,6 +27836,16 @@ input UserWhereInput { hasEvents: Boolean hasEventsWith: [EventWhereInput!] """ + actionplans edge predicates + """ + hasActionplans: Boolean + hasActionplansWith: [ActionPlanWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ group_memberships edge predicates """ hasGroupMemberships: Boolean diff --git a/schema/internalpolicy.graphql b/schema/internalpolicy.graphql new file mode 100644 index 00000000..4e519c6d --- /dev/null +++ b/schema/internalpolicy.graphql @@ -0,0 +1,103 @@ +extend type Query { + """ + Look up internalPolicy by ID + """ + internalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + ): InternalPolicy! +} + +extend type Mutation{ + """ + Create a new internalPolicy + """ + createInternalPolicy( + """ + values of the internalPolicy + """ + input: CreateInternalPolicyInput! + ): InternalPolicyCreatePayload! + """ + Create multiple new internalPolicys + """ + createBulkInternalPolicy( + """ + values of the internalPolicy + """ + input: [CreateInternalPolicyInput!] + ): InternalPolicyBulkCreatePayload! + """ + Create multiple new internalPolicys via file upload + """ + createBulkCSVInternalPolicy( + """ + csv file containing values of the internalPolicy + """ + input: Upload! + ): InternalPolicyBulkCreatePayload! + """ + Update an existing internalPolicy + """ + updateInternalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + """ + New values for the internalPolicy + """ + input: UpdateInternalPolicyInput! + ): InternalPolicyUpdatePayload! + """ + Delete an existing internalPolicy + """ + deleteInternalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + ): InternalPolicyDeletePayload! +} + +""" +Return response for createInternalPolicy mutation +""" +type InternalPolicyCreatePayload { + """ + Created internalPolicy + """ + internalPolicy: InternalPolicy! +} + +""" +Return response for updateInternalPolicy mutation +""" +type InternalPolicyUpdatePayload { + """ + Updated internalPolicy + """ + internalPolicy: InternalPolicy! +} + +""" +Return response for deleteInternalPolicy mutation +""" +type InternalPolicyDeletePayload { + """ + Deleted internalPolicy ID + """ + deletedID: ID! +} + +""" +Return response for createBulkInternalPolicy mutation +""" +type InternalPolicyBulkCreatePayload { + """ + Created internalPolicys + """ + internalPolicies: [InternalPolicy!] +} \ No newline at end of file diff --git a/schema/narrative.graphql b/schema/narrative.graphql new file mode 100644 index 00000000..e7370e70 --- /dev/null +++ b/schema/narrative.graphql @@ -0,0 +1,103 @@ +extend type Query { + """ + Look up narrative by ID + """ + narrative( + """ + ID of the narrative + """ + id: ID! + ): Narrative! +} + +extend type Mutation{ + """ + Create a new narrative + """ + createNarrative( + """ + values of the narrative + """ + input: CreateNarrativeInput! + ): NarrativeCreatePayload! + """ + Create multiple new narratives + """ + createBulkNarrative( + """ + values of the narrative + """ + input: [CreateNarrativeInput!] + ): NarrativeBulkCreatePayload! + """ + Create multiple new narratives via file upload + """ + createBulkCSVNarrative( + """ + csv file containing values of the narrative + """ + input: Upload! + ): NarrativeBulkCreatePayload! + """ + Update an existing narrative + """ + updateNarrative( + """ + ID of the narrative + """ + id: ID! + """ + New values for the narrative + """ + input: UpdateNarrativeInput! + ): NarrativeUpdatePayload! + """ + Delete an existing narrative + """ + deleteNarrative( + """ + ID of the narrative + """ + id: ID! + ): NarrativeDeletePayload! +} + +""" +Return response for createNarrative mutation +""" +type NarrativeCreatePayload { + """ + Created narrative + """ + narrative: Narrative! +} + +""" +Return response for updateNarrative mutation +""" +type NarrativeUpdatePayload { + """ + Updated narrative + """ + narrative: Narrative! +} + +""" +Return response for deleteNarrative mutation +""" +type NarrativeDeletePayload { + """ + Deleted narrative ID + """ + deletedID: ID! +} + +""" +Return response for createBulkNarrative mutation +""" +type NarrativeBulkCreatePayload { + """ + Created narratives + """ + narratives: [Narrative!] +} \ No newline at end of file diff --git a/schema/procedure.graphql b/schema/procedure.graphql new file mode 100644 index 00000000..7790dce4 --- /dev/null +++ b/schema/procedure.graphql @@ -0,0 +1,103 @@ +extend type Query { + """ + Look up procedure by ID + """ + procedure( + """ + ID of the procedure + """ + id: ID! + ): Procedure! +} + +extend type Mutation{ + """ + Create a new procedure + """ + createProcedure( + """ + values of the procedure + """ + input: CreateProcedureInput! + ): ProcedureCreatePayload! + """ + Create multiple new procedures + """ + createBulkProcedure( + """ + values of the procedure + """ + input: [CreateProcedureInput!] + ): ProcedureBulkCreatePayload! + """ + Create multiple new procedures via file upload + """ + createBulkCSVProcedure( + """ + csv file containing values of the procedure + """ + input: Upload! + ): ProcedureBulkCreatePayload! + """ + Update an existing procedure + """ + updateProcedure( + """ + ID of the procedure + """ + id: ID! + """ + New values for the procedure + """ + input: UpdateProcedureInput! + ): ProcedureUpdatePayload! + """ + Delete an existing procedure + """ + deleteProcedure( + """ + ID of the procedure + """ + id: ID! + ): ProcedureDeletePayload! +} + +""" +Return response for createProcedure mutation +""" +type ProcedureCreatePayload { + """ + Created procedure + """ + procedure: Procedure! +} + +""" +Return response for updateProcedure mutation +""" +type ProcedureUpdatePayload { + """ + Updated procedure + """ + procedure: Procedure! +} + +""" +Return response for deleteProcedure mutation +""" +type ProcedureDeletePayload { + """ + Deleted procedure ID + """ + deletedID: ID! +} + +""" +Return response for createBulkProcedure mutation +""" +type ProcedureBulkCreatePayload { + """ + Created procedures + """ + procedures: [Procedure!] +} \ No newline at end of file diff --git a/schema/risk.graphql b/schema/risk.graphql new file mode 100644 index 00000000..16ff519e --- /dev/null +++ b/schema/risk.graphql @@ -0,0 +1,103 @@ +extend type Query { + """ + Look up risk by ID + """ + risk( + """ + ID of the risk + """ + id: ID! + ): Risk! +} + +extend type Mutation{ + """ + Create a new risk + """ + createRisk( + """ + values of the risk + """ + input: CreateRiskInput! + ): RiskCreatePayload! + """ + Create multiple new risks + """ + createBulkRisk( + """ + values of the risk + """ + input: [CreateRiskInput!] + ): RiskBulkCreatePayload! + """ + Create multiple new risks via file upload + """ + createBulkCSVRisk( + """ + csv file containing values of the risk + """ + input: Upload! + ): RiskBulkCreatePayload! + """ + Update an existing risk + """ + updateRisk( + """ + ID of the risk + """ + id: ID! + """ + New values for the risk + """ + input: UpdateRiskInput! + ): RiskUpdatePayload! + """ + Delete an existing risk + """ + deleteRisk( + """ + ID of the risk + """ + id: ID! + ): RiskDeletePayload! +} + +""" +Return response for createRisk mutation +""" +type RiskCreatePayload { + """ + Created risk + """ + risk: Risk! +} + +""" +Return response for updateRisk mutation +""" +type RiskUpdatePayload { + """ + Updated risk + """ + risk: Risk! +} + +""" +Return response for deleteRisk mutation +""" +type RiskDeletePayload { + """ + Deleted risk ID + """ + deletedID: ID! +} + +""" +Return response for createBulkRisk mutation +""" +type RiskBulkCreatePayload { + """ + Created risks + """ + risks: [Risk!] +} \ No newline at end of file diff --git a/schema/search.graphql b/schema/search.graphql index e2c42ece..9d974145 100644 --- a/schema/search.graphql +++ b/schema/search.graphql @@ -9,6 +9,15 @@ extend type Query{ query: String! ): APITokenSearchResult """ + Search across ActionPlan objects + """ + actionPlanSearch( + """ + Search query + """ + query: String! + ): ActionPlanSearchResult + """ Search across Contact objects """ contactSearch( @@ -18,6 +27,24 @@ extend type Query{ query: String! ): ContactSearchResult """ + Search across Control objects + """ + controlSearch( + """ + Search query + """ + query: String! + ): ControlSearchResult + """ + Search across ControlObjective objects + """ + controlObjectiveSearch( + """ + Search query + """ + query: String! + ): ControlObjectiveSearchResult + """ Search across DocumentData objects """ documentDataSearch( @@ -126,6 +153,24 @@ extend type Query{ query: String! ): IntegrationSearchResult """ + Search across InternalPolicy objects + """ + internalPolicySearch( + """ + Search query + """ + query: String! + ): InternalPolicySearchResult + """ + Search across Narrative objects + """ + narrativeSearch( + """ + Search query + """ + query: String! + ): NarrativeSearchResult + """ Search across OauthProvider objects """ oauthProviderSearch( @@ -171,6 +216,42 @@ extend type Query{ query: String! ): PersonalAccessTokenSearchResult """ + Search across Procedure objects + """ + procedureSearch( + """ + Search query + """ + query: String! + ): ProcedureSearchResult + """ + Search across Risk objects + """ + riskSearch( + """ + Search query + """ + query: String! + ): RiskSearchResult + """ + Search across Standard objects + """ + standardSearch( + """ + Search query + """ + query: String! + ): StandardSearchResult + """ + Search across Subcontrol objects + """ + subcontrolSearch( + """ + Search query + """ + query: String! + ): SubcontrolSearchResult + """ Search across Subscriber objects """ subscriberSearch( @@ -227,7 +308,10 @@ extend type Query{ } union SearchResult = | APITokenSearchResult + | ActionPlanSearchResult | ContactSearchResult + | ControlSearchResult + | ControlObjectiveSearchResult | DocumentDataSearchResult | EntitlementSearchResult | EntitlementPlanSearchResult @@ -240,11 +324,17 @@ union SearchResult = | GroupSearchResult | GroupSettingSearchResult | IntegrationSearchResult + | InternalPolicySearchResult + | NarrativeSearchResult | OauthProviderSearchResult | OhAuthTooTokenSearchResult | OrganizationSearchResult | OrganizationSettingSearchResult | PersonalAccessTokenSearchResult + | ProcedureSearchResult + | RiskSearchResult + | StandardSearchResult + | SubcontrolSearchResult | SubscriberSearchResult | TFASettingSearchResult | TemplateSearchResult @@ -283,10 +373,22 @@ type APITokenSearchResult { apiTokens: [ APIToken!] } +type ActionPlanSearchResult { + actionPlans: [ ActionPlan!] +} + type ContactSearchResult { contacts: [ Contact!] } +type ControlSearchResult { + controls: [ Control!] +} + +type ControlObjectiveSearchResult { + controlObjectives: [ ControlObjective!] +} + type DocumentDataSearchResult { documentData: [ DocumentData!] } @@ -335,6 +437,14 @@ type IntegrationSearchResult { integrations: [ Integration!] } +type InternalPolicySearchResult { + internalPolicies: [ InternalPolicy!] +} + +type NarrativeSearchResult { + narratives: [ Narrative!] +} + type OauthProviderSearchResult { oauthProviders: [ OauthProvider!] } @@ -355,6 +465,22 @@ type PersonalAccessTokenSearchResult { personalAccessTokens: [ PersonalAccessToken!] } +type ProcedureSearchResult { + procedures: [ Procedure!] +} + +type RiskSearchResult { + risks: [ Risk!] +} + +type StandardSearchResult { + standards: [ Standard!] +} + +type SubcontrolSearchResult { + subcontrols: [ Subcontrol!] +} + type SubscriberSearchResult { subscribers: [ Subscriber!] } diff --git a/schema/standard.graphql b/schema/standard.graphql new file mode 100644 index 00000000..34f405ff --- /dev/null +++ b/schema/standard.graphql @@ -0,0 +1,103 @@ +extend type Query { + """ + Look up standard by ID + """ + standard( + """ + ID of the standard + """ + id: ID! + ): Standard! +} + +extend type Mutation{ + """ + Create a new standard + """ + createStandard( + """ + values of the standard + """ + input: CreateStandardInput! + ): StandardCreatePayload! + """ + Create multiple new standards + """ + createBulkStandard( + """ + values of the standard + """ + input: [CreateStandardInput!] + ): StandardBulkCreatePayload! + """ + Create multiple new standards via file upload + """ + createBulkCSVStandard( + """ + csv file containing values of the standard + """ + input: Upload! + ): StandardBulkCreatePayload! + """ + Update an existing standard + """ + updateStandard( + """ + ID of the standard + """ + id: ID! + """ + New values for the standard + """ + input: UpdateStandardInput! + ): StandardUpdatePayload! + """ + Delete an existing standard + """ + deleteStandard( + """ + ID of the standard + """ + id: ID! + ): StandardDeletePayload! +} + +""" +Return response for createStandard mutation +""" +type StandardCreatePayload { + """ + Created standard + """ + standard: Standard! +} + +""" +Return response for updateStandard mutation +""" +type StandardUpdatePayload { + """ + Updated standard + """ + standard: Standard! +} + +""" +Return response for deleteStandard mutation +""" +type StandardDeletePayload { + """ + Deleted standard ID + """ + deletedID: ID! +} + +""" +Return response for createBulkStandard mutation +""" +type StandardBulkCreatePayload { + """ + Created standards + """ + standards: [Standard!] +} \ No newline at end of file diff --git a/schema/subcontrol.graphql b/schema/subcontrol.graphql new file mode 100644 index 00000000..e6c4a444 --- /dev/null +++ b/schema/subcontrol.graphql @@ -0,0 +1,103 @@ +extend type Query { + """ + Look up subcontrol by ID + """ + subcontrol( + """ + ID of the subcontrol + """ + id: ID! + ): Subcontrol! +} + +extend type Mutation{ + """ + Create a new subcontrol + """ + createSubcontrol( + """ + values of the subcontrol + """ + input: CreateSubcontrolInput! + ): SubcontrolCreatePayload! + """ + Create multiple new subcontrols + """ + createBulkSubcontrol( + """ + values of the subcontrol + """ + input: [CreateSubcontrolInput!] + ): SubcontrolBulkCreatePayload! + """ + Create multiple new subcontrols via file upload + """ + createBulkCSVSubcontrol( + """ + csv file containing values of the subcontrol + """ + input: Upload! + ): SubcontrolBulkCreatePayload! + """ + Update an existing subcontrol + """ + updateSubcontrol( + """ + ID of the subcontrol + """ + id: ID! + """ + New values for the subcontrol + """ + input: UpdateSubcontrolInput! + ): SubcontrolUpdatePayload! + """ + Delete an existing subcontrol + """ + deleteSubcontrol( + """ + ID of the subcontrol + """ + id: ID! + ): SubcontrolDeletePayload! +} + +""" +Return response for createSubcontrol mutation +""" +type SubcontrolCreatePayload { + """ + Created subcontrol + """ + subcontrol: Subcontrol! +} + +""" +Return response for updateSubcontrol mutation +""" +type SubcontrolUpdatePayload { + """ + Updated subcontrol + """ + subcontrol: Subcontrol! +} + +""" +Return response for deleteSubcontrol mutation +""" +type SubcontrolDeletePayload { + """ + Deleted subcontrol ID + """ + deletedID: ID! +} + +""" +Return response for createBulkSubcontrol mutation +""" +type SubcontrolBulkCreatePayload { + """ + Created subcontrols + """ + subcontrols: [Subcontrol!] +} \ No newline at end of file